{"version":3,"file":"vendors.xxxxxxxxxxxxxxxxxxxx.js","mappings":";AAkBA;;;;;;;;;;AkKgBA;;;;;;;;AASA;;;;;;;;;;;;AAaA;;;;AAwBA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;;;;;;;AASA;;AAEA;AACA;AACA;;;AAGA;;;;;AAKA;;AAEA;;;;AAIA;;;;;;;;;;AyQ5GA;;;;;;;;AAQA;;;;;;;;;;;;AAYA;;;;AAIA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;;;;;;;AASA;;AAEA;AACA;AACA;;;AAGA;;;;;AAKA;;AAEA;;;;AAIA;;;;;;;;;;;;AAYA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;;;;AAQA;;;;AAIA;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;AAeA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;ACtKA;;;;;;;;AAQA;;;;;;;;;;;;AAYA;;;;AAIA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;;;;;;;AASA;;AAEA;AACA;AACA;;;AAGA;;;;;AAKA;;AAEA;;;;AAIA;;;;;;;;;;;;AAYA;;;;;;;;;;;;;AAaA;AACA;AACA;;;;;;;;AAQA;;;;AAIA;;;;;;;;;;;AAWA;;;;;;;;AAQA;;;;;;;;;;;;;;;AAeA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;AAeA;AACA;AACA;;AAEA;AACA;;AAEA;AACA","sources":["webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/_virtual/_tslib.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/CryptoKeyStore.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/ServerError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/JoseHeaderError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/crypto/JoseHeader.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/utils/MathUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/GuidGenerator.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/utils/BrowserStringUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/encode/Base64Encode.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/encode/Base64Decode.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/error/BrowserAuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/PkceGenerator.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/BrowserCrypto.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/DatabaseStorage.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/MemoryStorage.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/account/CcsCredential.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/crypto/ICrypto.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/request/ScopeSet.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/account/AuthToken.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/packageMetadata.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/CacheManager.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/utils/TimeUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/BrowserStorage.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/url/UrlString.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/BrowserCacheManager.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/config/ClientConfiguration.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/network/INetworkModule.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/network/FetchClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/network/XhrClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/utils/BrowserUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/navigation/NavigationClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/config/Configuration.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/packageMetadata.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/event/EventHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/network/NetworkManager.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/request/RequestValidator.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/client/BaseClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/response/ResponseHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/error/NativeAuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/Authority.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/client/SilentFlowClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/PopupClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/RedirectClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_handler/SilentHandler.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/cache/TokenCache.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/app/ClientApplication.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/app/PublicClientApplication.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/event/EventType.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/_virtual/_tslib.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/account/ClientInfo.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/AuthorityType.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/authority/ProtocolMode.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/AuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/ClientAuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/logger/Logger.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/utils/Constants.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-common/dist/utils/StringUtils.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/app/IPublicClientApplication.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-browser/dist/event/EventMessage.js","webpack://web-react-apac-backoffice/./node_modules/@azure/msal-react/dist/msal-react.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/sheet/dist/emotion-sheet.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Utility.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Tokenizer.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Enum.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Serializer.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Parser.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/stylis/src/Middleware.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/hash/dist/emotion-hash.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/ArrowForwardIosSharp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/ArrowRight.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/ExpandMore.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/KeyboardArrowDown.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/KeyboardArrowLeft.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/KeyboardArrowRight.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/Search.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/esm/Add.js","webpack://web-react-apac-backoffice/./node_modules/@mui/icons-material/utils/createSvgIcon.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Collapse/collapseClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Collapse/Collapse.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Accordion/accordionClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Accordion/Accordion.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Accordion/AccordionContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/AccordionDetails/AccordionDetails.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/AccordionSummary/AccordionSummary.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/Person.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Avatar/avatarClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Avatar/Avatar.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Box/boxClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Box/Box.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/MoreHoriz.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Breadcrumbs/breadcrumbsClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Button/buttonClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Button/Button.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/utils/ChildMapping.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/TransitionGroup.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonBase/Ripple.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonBase/touchRippleClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonBase/TouchRipple.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonBase/buttonBaseClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonBase/ButtonBase.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonGroup/buttonGroupClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonGroup/ButtonGroup.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/CheckBoxOutlineBlank.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/CheckBox.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/IndeterminateCheckBox.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Checkbox/checkboxClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Checkbox/Checkbox.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/Container/createContainer.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Container/Container.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Divider/Divider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Divider/dividerClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Slide/Slide.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Drawer/drawerClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Drawer/Drawer.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FilledInput/filledInputClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FilledInput/FilledInput.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControl/FormControlContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControl/formControlState.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControl/useFormControl.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControlLabel/FormControlLabel.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormHelperText/formHelperTextClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormHelperText/FormHelperText.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Grid/GridContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Grid/gridClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Grid/Grid.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/IconButton/iconButtonClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/IconButton/IconButton.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Input/inputClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Input/Input.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputAdornment/InputAdornment.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/GlobalStyles/GlobalStyles.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputBase/InputBase.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputBase/inputBaseClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputBase/utils.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/List/ListContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/List/listClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/List/List.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/getScrollbarSize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/MenuList/MenuList.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Grow/Grow.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Popover/popoverClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Popover/Popover.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Menu/menuClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Menu/Menu.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ListItemIcon/listItemIconClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/ListItemText/listItemTextClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/MenuItem/menuItemClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/MenuItem/MenuItem.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Portal/Portal.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Fade/Fade.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Backdrop/backdropClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Backdrop/Backdrop.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Modal/ModalManager.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Modal/useModal.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Modal/modalClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Modal/Modal.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/OutlinedInput/NotchedOutline.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/OutlinedInput/OutlinedInput.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/getOverlayAlpha.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Paper/paperClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Paper/Paper.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/RadioButtonUnchecked.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/RadioButtonChecked.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Radio/RadioButtonIcon.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/RadioGroup/RadioGroupContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Radio/radioClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Radio/Radio.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/RadioGroup/useRadioGroup.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/NativeSelect/nativeSelectClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/NativeSelect/NativeSelectInput.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Select/selectClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Select/SelectInput.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/svg-icons/ArrowDropDown.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Select/Select.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Stack/Stack.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Switch/switchClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Switch/Switch.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormLabel/formLabelClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormLabel/FormLabel.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputLabel/inputLabelClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/InputLabel/InputLabel.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControl/formControlClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/FormControl/FormControl.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/TextField/textFieldClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/TextField/TextField.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Typography/typographyClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/Typography/Typography.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/switchBaseClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/internal/SwitchBase.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js","webpack://web-react-apac-backoffice/./node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/ThemeProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/common.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/grey.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/purple.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/red.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/orange.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/blue.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/lightBlue.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/colors/green.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/createPalette.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/createTypography.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/shadows.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/zIndex.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/createTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/createMixins.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/createTransitions.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/defaultTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/identifier.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/rootShouldForwardProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/slotShouldForwardProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/styled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/styles/useTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/transitions/utils.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/capitalize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/createChainedFunction.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/SvgIcon/svgIconClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/SvgIcon/SvgIcon.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/createSvgIcon.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/debounce.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/deprecatedPropType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/deprecatedPropType/deprecatedPropType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/setRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useId.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/unsupportedProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/index.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/isMuiElement.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/ownerDocument.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/ownerWindow.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/requirePropFactory.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useControlled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useControlled/useControlled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useEnhancedEffect.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useEventCallback.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useForkRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useIsFocusVisible/useIsFocusVisible.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useIsFocusVisible.js","webpack://web-react-apac-backoffice/./node_modules/@mui/material/utils/useSlot.js","webpack://web-react-apac-backoffice/./node_modules/@mui/private-theming/ThemeProvider/nested.js","webpack://web-react-apac-backoffice/./node_modules/@mui/private-theming/useTheme/ThemeContext.js","webpack://web-react-apac-backoffice/./node_modules/@mui/private-theming/useTheme/useTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styled-engine/index.js","webpack://web-react-apac-backoffice/./node_modules/is-in-browser/dist/module.js","webpack://web-react-apac-backoffice/./node_modules/jss/dist/jss.esm.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/mergeClasses/mergeClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/makeStyles/multiKeyStore.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js","webpack://web-react-apac-backoffice/./node_modules/hyphenate-style-name/index.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://web-react-apac-backoffice/./node_modules/css-vendor/dist/css-vendor.esm.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js","webpack://web-react-apac-backoffice/./node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/jssPreset/jssPreset.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/StylesProvider/StylesProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/makeStyles/indexCounter.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/propsToClassKey/propsToClassKey.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/getStylesCreator/noopTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/getStylesCreator/getStylesCreator.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/makeStyles/makeStyles.js","webpack://web-react-apac-backoffice/./node_modules/@mui/styles/useTheme/index.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/colorManipulator.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/createStyled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/Box/boxClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/Box/Box.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/RtlProvider/index.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/Stack/Stack.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/Stack/createStack.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/breakpoints.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createBox.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createTheme/applyStyles.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createTheme/createBreakpoints.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createTheme/shape.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createTheme/createTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createTheme/createSpacing.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/merge.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/responsivePropType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/spacing.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/memoize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/style.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/compose.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/borders.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/cssGrid.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/palette.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/sizing.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/createStyled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/styled.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/useTheme.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/system/esm/useThemeWithoutDefault.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/capitalize/capitalize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/clamp/clamp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/composeClasses/composeClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/debounce/debounce.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/deepmerge/deepmerge.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/exactProp/exactProp.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/integerPropType/integerPropType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/refType/refType.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/resolveProps/resolveProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/setRef/setRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useForkRef/useForkRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useId/useId.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useOnMount/useOnMount.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/esm/useTimeout/useTimeout.js","webpack://web-react-apac-backoffice/./node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js","webpack://web-react-apac-backoffice/./node_modules/@popperjs/core/lib/enums.js","webpack://web-react-apac-backoffice/./node_modules/@remix-run/router/dist/router.js","webpack://web-react-apac-backoffice/./node_modules/@smartagro/connect-retailer/dist/ConnectRetailer.js","webpack://web-react-apac-backoffice/./node_modules/@smartagro/saksham/build/syngentasaksham.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/ag-grid-community.cjs.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/agGridReact.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/legacy/agGridReactLegacy.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/legacy/legacyReactComponent.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/agGridReactUi.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/beansContext.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/cellRenderer/detailCellRenderer.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/cellRenderer/groupCellRenderer.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/cells/cellComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/cells/popupEditorComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/cells/showJsRenderer.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/gridBodyComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/gridComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/gridHeaderComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/headerCellComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/headerFilterCellComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/headerGroupCellComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/headerRowComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/header/headerRowContainerComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/jsComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/reactComment.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/rows/rowComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/rows/rowContainerComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/tabGuardComp.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/useEffectOnce.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/reactUi/utils.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/agGridColumn.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/changeDetectionService.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/keyGenerator.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/newReactComponent.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/portalManager.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/reactComponent.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/lib/shared/reactFrameworkOverrides.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-react/main.js","webpack://web-react-apac-backoffice/./node_modules/call-bind-apply-helpers/actualApply.js","webpack://web-react-apac-backoffice/./node_modules/call-bind-apply-helpers/functionApply.js","webpack://web-react-apac-backoffice/./node_modules/call-bind-apply-helpers/functionCall.js","webpack://web-react-apac-backoffice/./node_modules/call-bind-apply-helpers/index.js","webpack://web-react-apac-backoffice/./node_modules/call-bind-apply-helpers/reflectApply.js","webpack://web-react-apac-backoffice/./node_modules/call-bound/index.js","webpack://web-react-apac-backoffice/./node_modules/charenc/charenc.js","webpack://web-react-apac-backoffice/./node_modules/crypt/crypt.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-grid.css","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-theme-alpine.css","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-theme-balham.css","webpack://web-react-apac-backoffice/./node_modules/react-quill/dist/quill.snow.css","webpack://web-react-apac-backoffice/./node_modules/react-toastify/dist/ReactToastify.css","webpack://web-react-apac-backoffice/./node_modules/css-loader/dist/runtime/api.js","webpack://web-react-apac-backoffice/./node_modules/css-loader/dist/runtime/getUrl.js","webpack://web-react-apac-backoffice/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://web-react-apac-backoffice/./node_modules/domelementtype/lib/index.js","webpack://web-react-apac-backoffice/./node_modules/domhandler/lib/index.js","webpack://web-react-apac-backoffice/./node_modules/domhandler/lib/node.js","webpack://web-react-apac-backoffice/./node_modules/dunder-proto/get.js","webpack://web-react-apac-backoffice/./node_modules/es-define-property/index.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/eval.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/index.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/range.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/ref.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/syntax.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/type.js","webpack://web-react-apac-backoffice/./node_modules/es-errors/uri.js","webpack://web-react-apac-backoffice/./node_modules/es-object-atoms/index.js","webpack://web-react-apac-backoffice/./node_modules/formik/node_modules/deepmerge/dist/es.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_freeGlobal.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_root.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Symbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getRawTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_objectToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseGetTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_overArg.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getPrototype.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isObjectLike.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isPlainObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_listCacheClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/eq.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_assocIndexOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_listCacheDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_listCacheGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_listCacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_listCacheSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_ListCache.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stackClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stackDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stackGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stackHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isFunction.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_coreJsData.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_isMasked.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_toSource.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseIsNative.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getNative.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Map.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_nativeCreate.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_hashClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_hashDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_hashGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_hashHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_hashSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Hash.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_mapCacheClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_isKeyable.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getMapData.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_mapCacheDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_mapCacheGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_mapCacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_mapCacheSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_MapCache.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stackSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Stack.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_arrayEach.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_defineProperty.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseAssignValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_assignValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_copyObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseTimes.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseIsArguments.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isArguments.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/stubFalse.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_isIndex.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isLength.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseIsTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseUnary.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_nodeUtil.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_arrayLikeKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_isPrototype.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_nativeKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isArrayLike.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/keys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseAssign.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_nativeKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/keysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseAssignIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_copyArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_arrayFilter.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/stubArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getSymbols.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_copySymbols.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_arrayPush.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getSymbolsIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_copySymbolsIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseGetAllKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getAllKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getAllKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_DataView.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Promise.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Set.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_WeakMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_getTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_initCloneArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_Uint8Array.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneArrayBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneDataView.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneRegExp.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneSymbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_cloneTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_initCloneByTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseCreate.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_initCloneObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseIsMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseIsSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseClone.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/cloneDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/clone.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_arrayMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/isSymbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/memoize.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_stringToPath.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_memoizeCapped.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_toKey.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/_baseToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/toString.js","webpack://web-react-apac-backoffice/./node_modules/lodash-es/toPath.js","webpack://web-react-apac-backoffice/./node_modules/formik/dist/formik.esm.js","webpack://web-react-apac-backoffice/./node_modules/function-bind/implementation.js","webpack://web-react-apac-backoffice/./node_modules/function-bind/index.js","webpack://web-react-apac-backoffice/./node_modules/get-intrinsic/index.js","webpack://web-react-apac-backoffice/./node_modules/get-proto/Object.getPrototypeOf.js","webpack://web-react-apac-backoffice/./node_modules/get-proto/Reflect.getPrototypeOf.js","webpack://web-react-apac-backoffice/./node_modules/get-proto/index.js","webpack://web-react-apac-backoffice/./node_modules/gopd/gOPD.js","webpack://web-react-apac-backoffice/./node_modules/gopd/index.js","webpack://web-react-apac-backoffice/./node_modules/has-symbols/index.js","webpack://web-react-apac-backoffice/./node_modules/has-symbols/shams.js","webpack://web-react-apac-backoffice/./node_modules/hasown/index.js","webpack://web-react-apac-backoffice/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://web-react-apac-backoffice/./node_modules/html-dom-parser/lib/client/constants.js","webpack://web-react-apac-backoffice/./node_modules/html-dom-parser/lib/client/domparser.js","webpack://web-react-apac-backoffice/./node_modules/html-dom-parser/lib/client/html-to-dom.js","webpack://web-react-apac-backoffice/./node_modules/html-dom-parser/lib/client/utilities.js","webpack://web-react-apac-backoffice/./node_modules/html-react-parser/index.js","webpack://web-react-apac-backoffice/./node_modules/html-react-parser/lib/attributes-to-props.js","webpack://web-react-apac-backoffice/./node_modules/html-react-parser/lib/dom-to-react.js","webpack://web-react-apac-backoffice/./node_modules/html-react-parser/lib/utilities.js","webpack://web-react-apac-backoffice/./node_modules/inline-style-parser/index.js","webpack://web-react-apac-backoffice/./node_modules/is-buffer/index.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_DataView.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Hash.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_LazyWrapper.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_ListCache.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_LodashWrapper.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Map.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_MapCache.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Promise.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Set.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_SetCache.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Stack.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Symbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_Uint8Array.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_WeakMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_apply.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayEach.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayEvery.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayFilter.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayIncludes.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayIncludesWith.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayLikeKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayPush.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arrayReduce.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arraySample.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_arraySome.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_asciiSize.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_asciiToArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_asciiWords.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_assignValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_assocIndexOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseAssign.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseAssignIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseAssignValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseClone.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseCreate.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseDelay.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseDifference.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseEach.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseEvery.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseExtremum.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseFilter.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseFindIndex.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseFlatten.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseFor.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseForOwn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseGetAllKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseGetTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseGt.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseHasIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIndexOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIntersection.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsArguments.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsEqual.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsEqualDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsMatch.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsNaN.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsNative.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsRegExp.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIsTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseIteratee.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseLodash.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseMatches.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseMatchesProperty.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseNth.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseOrderBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_basePick.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_basePickBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseProperty.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_basePropertyDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_basePropertyOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_basePullAt.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseRandom.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseReduce.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseRepeat.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseRest.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSample.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSetData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSetToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSlice.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSortBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseSum.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseTimes.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseTrim.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseUnary.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseUniq.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseUnset.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_baseValues.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_castArrayLikeObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_castFunction.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_castPath.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_castSlice.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneArrayBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneDataView.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneRegExp.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneSymbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_cloneTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_compareAscending.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_compareMultiple.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_composeArgs.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_composeArgsRight.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_copyArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_copyObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_copySymbols.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_copySymbolsIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_coreJsData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_countHolders.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createAssigner.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createBaseEach.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createBaseFor.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createBind.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createCaseFirst.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createCompounder.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createCtor.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createCurry.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createFind.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createHybrid.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createPadding.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createPartial.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createRecurry.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_createWrap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_customOmitClone.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_deburrLetter.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_defineProperty.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_equalArrays.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_equalByTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_equalObjects.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_flatRest.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_freeGlobal.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getAllKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getAllKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getFuncName.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getHolder.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getMapData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getMatchData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getNative.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getPrototype.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getRawTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getSymbols.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getSymbolsIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getValue.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_getWrapDetails.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hasPath.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hasUnicode.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hasUnicodeWord.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hashClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hashDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hashGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hashHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_hashSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_initCloneArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_initCloneByTag.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_initCloneObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_insertWrapDetails.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isFlattenable.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isIndex.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isIterateeCall.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isKey.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isKeyable.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isLaziable.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isMasked.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isPrototype.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_isStrictComparable.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_listCacheClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_listCacheDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_listCacheGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_listCacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_listCacheSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapCacheClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapCacheDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapCacheGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapCacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapCacheSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mapToArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_matchesStrictComparable.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_memoizeCapped.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_mergeData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_metaMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_nativeCreate.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_nativeKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_nativeKeysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_nodeUtil.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_objectToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_overArg.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_overRest.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_parent.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_realNames.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_reorder.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_replaceHolders.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_root.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setCacheAdd.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setCacheHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setData.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setToArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_setWrapToString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_shortOut.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stackClear.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stackDelete.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stackGet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stackHas.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stackSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_strictIndexOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stringSize.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stringToArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_stringToPath.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_toKey.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_toSource.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_trimmedEndIndex.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_unicodeSize.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_unicodeToArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_unicodeWords.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_updateWrapDetails.js","webpack://web-react-apac-backoffice/./node_modules/lodash/_wrapperClone.js","webpack://web-react-apac-backoffice/./node_modules/lodash/ary.js","webpack://web-react-apac-backoffice/./node_modules/lodash/assignIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/camelCase.js","webpack://web-react-apac-backoffice/./node_modules/lodash/capitalize.js","webpack://web-react-apac-backoffice/./node_modules/lodash/clone.js","webpack://web-react-apac-backoffice/./node_modules/lodash/cloneDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash/compact.js","webpack://web-react-apac-backoffice/./node_modules/lodash/concat.js","webpack://web-react-apac-backoffice/./node_modules/lodash/constant.js","webpack://web-react-apac-backoffice/./node_modules/lodash/debounce.js","webpack://web-react-apac-backoffice/./node_modules/lodash/deburr.js","webpack://web-react-apac-backoffice/./node_modules/lodash/defer.js","webpack://web-react-apac-backoffice/./node_modules/lodash/each.js","webpack://web-react-apac-backoffice/./node_modules/lodash/eq.js","webpack://web-react-apac-backoffice/./node_modules/lodash/every.js","webpack://web-react-apac-backoffice/./node_modules/lodash/extend.js","webpack://web-react-apac-backoffice/./node_modules/lodash/filter.js","webpack://web-react-apac-backoffice/./node_modules/lodash/find.js","webpack://web-react-apac-backoffice/./node_modules/lodash/findIndex.js","webpack://web-react-apac-backoffice/./node_modules/lodash/first.js","webpack://web-react-apac-backoffice/./node_modules/lodash/flatMapDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash/flatten.js","webpack://web-react-apac-backoffice/./node_modules/lodash/flattenDeep.js","webpack://web-react-apac-backoffice/./node_modules/lodash/forEach.js","webpack://web-react-apac-backoffice/./node_modules/lodash/get.js","webpack://web-react-apac-backoffice/./node_modules/lodash/has.js","webpack://web-react-apac-backoffice/./node_modules/lodash/hasIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/head.js","webpack://web-react-apac-backoffice/./node_modules/lodash/identity.js","webpack://web-react-apac-backoffice/./node_modules/lodash/indexOf.js","webpack://web-react-apac-backoffice/./node_modules/lodash/intersectionBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isArguments.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isArrayLike.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isArrayLikeObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isBuffer.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isEmpty.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isEqual.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isFunction.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isLength.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isMap.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isObjectLike.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isPlainObject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isRegExp.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isSet.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isSymbol.js","webpack://web-react-apac-backoffice/./node_modules/lodash/isTypedArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/join.js","webpack://web-react-apac-backoffice/./node_modules/lodash/keys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/keysIn.js","webpack://web-react-apac-backoffice/./node_modules/lodash/last.js","webpack://web-react-apac-backoffice/./node_modules/lodash/lodash.js","webpack://web-react-apac-backoffice/./node_modules/lodash/map.js","webpack://web-react-apac-backoffice/./node_modules/lodash/mapKeys.js","webpack://web-react-apac-backoffice/./node_modules/lodash/mapValues.js","webpack://web-react-apac-backoffice/./node_modules/lodash/max.js","webpack://web-react-apac-backoffice/./node_modules/lodash/maxBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/memoize.js","webpack://web-react-apac-backoffice/./node_modules/lodash/negate.js","webpack://web-react-apac-backoffice/./node_modules/lodash/noop.js","webpack://web-react-apac-backoffice/./node_modules/lodash/now.js","webpack://web-react-apac-backoffice/./node_modules/lodash/nth.js","webpack://web-react-apac-backoffice/./node_modules/lodash/omit.js","webpack://web-react-apac-backoffice/./node_modules/lodash/orderBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/padStart.js","webpack://web-react-apac-backoffice/./node_modules/lodash/partial.js","webpack://web-react-apac-backoffice/./node_modules/lodash/pick.js","webpack://web-react-apac-backoffice/./node_modules/lodash/property.js","webpack://web-react-apac-backoffice/./node_modules/lodash/reduce.js","webpack://web-react-apac-backoffice/./node_modules/lodash/reject.js","webpack://web-react-apac-backoffice/./node_modules/lodash/remove.js","webpack://web-react-apac-backoffice/./node_modules/lodash/reverse.js","webpack://web-react-apac-backoffice/./node_modules/lodash/sample.js","webpack://web-react-apac-backoffice/./node_modules/lodash/size.js","webpack://web-react-apac-backoffice/./node_modules/lodash/snakeCase.js","webpack://web-react-apac-backoffice/./node_modules/lodash/sortBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/split.js","webpack://web-react-apac-backoffice/./node_modules/lodash/stubArray.js","webpack://web-react-apac-backoffice/./node_modules/lodash/stubFalse.js","webpack://web-react-apac-backoffice/./node_modules/lodash/sum.js","webpack://web-react-apac-backoffice/./node_modules/lodash/take.js","webpack://web-react-apac-backoffice/./node_modules/lodash/toFinite.js","webpack://web-react-apac-backoffice/./node_modules/lodash/toInteger.js","webpack://web-react-apac-backoffice/./node_modules/lodash/toNumber.js","webpack://web-react-apac-backoffice/./node_modules/lodash/toString.js","webpack://web-react-apac-backoffice/./node_modules/lodash/uniqBy.js","webpack://web-react-apac-backoffice/./node_modules/lodash/upperFirst.js","webpack://web-react-apac-backoffice/./node_modules/lodash/values.js","webpack://web-react-apac-backoffice/./node_modules/lodash/without.js","webpack://web-react-apac-backoffice/./node_modules/lodash/words.js","webpack://web-react-apac-backoffice/./node_modules/lodash/wrapperLodash.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/abs.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/floor.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/isNaN.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/max.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/min.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/pow.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/round.js","webpack://web-react-apac-backoffice/./node_modules/math-intrinsics/sign.js","webpack://web-react-apac-backoffice/./node_modules/md5/md5.js","webpack://web-react-apac-backoffice/./node_modules/object-assign/index.js","webpack://web-react-apac-backoffice/./node_modules/object-inspect/index.js","webpack://web-react-apac-backoffice/./node_modules/prop-types/checkPropTypes.js","webpack://web-react-apac-backoffice/./node_modules/prop-types/factoryWithTypeCheckers.js","webpack://web-react-apac-backoffice/./node_modules/prop-types/index.js","webpack://web-react-apac-backoffice/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://web-react-apac-backoffice/./node_modules/prop-types/lib/has.js","webpack://web-react-apac-backoffice/./node_modules/property-expr/index.js","webpack://web-react-apac-backoffice/./node_modules/qs/lib/formats.js","webpack://web-react-apac-backoffice/./node_modules/qs/lib/index.js","webpack://web-react-apac-backoffice/./node_modules/qs/lib/parse.js","webpack://web-react-apac-backoffice/./node_modules/qs/lib/stringify.js","webpack://web-react-apac-backoffice/./node_modules/qs/lib/utils.js","webpack://web-react-apac-backoffice/./node_modules/quill/dist/quill.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/cjs/react-dom-server.browser.development.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/cjs/react-dom.development.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/client.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/index.js","webpack://web-react-apac-backoffice/./node_modules/react-dom/server.browser.js","webpack://web-react-apac-backoffice/./node_modules/react-fast-compare/index.js","webpack://web-react-apac-backoffice/./node_modules/react-is/cjs/react-is.development.js","webpack://web-react-apac-backoffice/./node_modules/react-is/index.js","webpack://web-react-apac-backoffice/./node_modules/react-paginate/dist/react-paginate.js","webpack://web-react-apac-backoffice/./node_modules/react-property/lib/index.js","webpack://web-react-apac-backoffice/./node_modules/react-property/lib/possibleStandardNamesOptimized.js","webpack://web-react-apac-backoffice/./node_modules/react-quill/lib/index.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/batch.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/components/Context.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/hooks/useReduxContext.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/useSyncExternalStore.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/hooks/useSelector.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/warning.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/verifySubselectors.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/selectorFactory.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/verifyPlainObject.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/isPlainObject.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/wrapMapToProps.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/invalidArgFactory.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/mergeProps.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/Subscription.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/shallowEqual.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/components/connect.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/mapStateToProps.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/connect/mapDispatchToProps.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/utils/bindActionCreators.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/components/Provider.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/hooks/useStore.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/hooks/useDispatch.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/es/index.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js","webpack://web-react-apac-backoffice/./node_modules/react-redux/node_modules/react-is/index.js","webpack://web-react-apac-backoffice/./node_modules/react-router-dom/dist/index.js","webpack://web-react-apac-backoffice/./node_modules/react-router/dist/index.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/config.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/utils/PropTypes.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/Transition.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/utils/reflow.js","webpack://web-react-apac-backoffice/./node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack://web-react-apac-backoffice/./node_modules/react/cjs/react-jsx-runtime.development.js","webpack://web-react-apac-backoffice/./node_modules/react/cjs/react.development.js","webpack://web-react-apac-backoffice/./node_modules/react/index.js","webpack://web-react-apac-backoffice/./node_modules/react/jsx-runtime.js","webpack://web-react-apac-backoffice/./node_modules/redux-devtools-extension/index.js","webpack://web-react-apac-backoffice/./node_modules/redux-logger/dist/redux-logger.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/constants.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/createPersistoid.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/getStoredState.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/purgeStoredState.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/persistReducer.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/stateReconciler/autoMergeLevel2.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/persistCombineReducers.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/persistStore.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/createMigrate.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/es/createTransform.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/lib/integration/react.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/lib/storage/createWebStorage.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/lib/storage/getStorage.js","webpack://web-react-apac-backoffice/./node_modules/redux-persist/lib/storage/index.js","webpack://web-react-apac-backoffice/./node_modules/redux-thunk/es/index.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack://web-react-apac-backoffice/./node_modules/redux/es/redux.js","webpack://web-react-apac-backoffice/./node_modules/scheduler/cjs/scheduler.development.js","webpack://web-react-apac-backoffice/./node_modules/scheduler/index.js","webpack://web-react-apac-backoffice/./node_modules/side-channel-list/index.js","webpack://web-react-apac-backoffice/./node_modules/side-channel-map/index.js","webpack://web-react-apac-backoffice/./node_modules/side-channel-weakmap/index.js","webpack://web-react-apac-backoffice/./node_modules/side-channel/index.js","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-grid.css?aded","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-theme-alpine.css?bdd8","webpack://web-react-apac-backoffice/./node_modules/ag-grid-community/dist/styles/ag-theme-balham.css?1a8b","webpack://web-react-apac-backoffice/./node_modules/react-quill/dist/quill.snow.css?a5fa","webpack://web-react-apac-backoffice/./node_modules/react-toastify/dist/ReactToastify.css?0f41","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://web-react-apac-backoffice/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://web-react-apac-backoffice/./node_modules/style-to-js/cjs/index.js","webpack://web-react-apac-backoffice/./node_modules/style-to-js/cjs/utilities.js","webpack://web-react-apac-backoffice/./node_modules/style-to-object/index.js","webpack://web-react-apac-backoffice/./node_modules/tiny-warning/dist/tiny-warning.esm.js","webpack://web-react-apac-backoffice/./node_modules/toposort/index.js","webpack://web-react-apac-backoffice/./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","webpack://web-react-apac-backoffice/./node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js","webpack://web-react-apac-backoffice/./node_modules/use-sync-external-store/shim/index.js","webpack://web-react-apac-backoffice/./node_modules/use-sync-external-store/shim/with-selector.js","webpack://web-react-apac-backoffice/./node_modules/uuid/dist/esm-browser/rng.js","webpack://web-react-apac-backoffice/./node_modules/uuid/dist/esm-browser/regex.js","webpack://web-react-apac-backoffice/./node_modules/uuid/dist/esm-browser/validate.js","webpack://web-react-apac-backoffice/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://web-react-apac-backoffice/./node_modules/uuid/dist/esm-browser/v4.js","webpack://web-react-apac-backoffice/./node_modules/void-elements/index.js","webpack://web-react-apac-backoffice/./node_modules/nanoclone/src/index.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/printValue.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/locale.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/isSchema.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/Condition.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/toArray.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/ValidationError.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/runTests.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/Reference.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/createValidation.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/reach.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/ReferenceSet.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/schema.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/mixed.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/isAbsent.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/boolean.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/string.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/number.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/isodate.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/date.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/sortByKeyOrder.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/object.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/util/sortFields.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/array.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/Lazy.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/setLocale.js","webpack://web-react-apac-backoffice/./node_modules/yup/es/index.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/extends.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/bind.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/utils.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/sanitizeHeaderValue.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/AxiosError.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/toFormData.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/buildURL.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/InterceptorManager.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/defaults/transitional.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/browser/index.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/common/utils.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/platform/index.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/defaults/index.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/transformData.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/cancel/isCancel.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/cancel/CanceledError.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/settle.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/speedometer.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/throttle.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/progressEventReducer.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/cookies.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/buildFullPath.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/combineURLs.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/mergeConfig.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/resolveConfig.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/adapters/xhr.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/composeSignals.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/trackStream.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/env/data.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/adapters/fetch.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/adapters/adapters.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/null.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/dispatchRequest.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/validator.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/core/Axios.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/cancel/CancelToken.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/axios.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/spread.js","webpack://web-react-apac-backoffice/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://web-react-apac-backoffice/./node_modules/clsx/dist/clsx.mjs","webpack://web-react-apac-backoffice/./node_modules/flatted/esm/index.js","webpack://web-react-apac-backoffice/./node_modules/html-react-parser/index.mjs","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://web-react-apac-backoffice/./node_modules/i18next/dist/esm/i18next.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/toArray.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://web-react-apac-backoffice/./node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/utils.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/unescape.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/defaults.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/i18nInstance.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/TransWithoutContext.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/initReactI18next.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/context.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/Trans.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://web-react-apac-backoffice/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/useTranslation.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/withTranslation.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/Translation.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/I18nextProvider.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/useSSR.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/withSSR.js","webpack://web-react-apac-backoffice/./node_modules/react-i18next/dist/es/index.js","webpack://web-react-apac-backoffice/./node_modules/react-toastify/node_modules/clsx/dist/clsx.m.js","webpack://web-react-apac-backoffice/./node_modules/react-toastify/dist/react-toastify.esm.mjs","webpack://web-react-apac-backoffice/./node_modules/urlcat/dist/index.mjs"],"sourcesContent":["/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nfunction __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\nfunction __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\n\nexport { __assign, __awaiter, __extends, __generator, __read, __rest, __spread };\n//# sourceMappingURL=_tslib.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.\r\n *\r\n * @export\r\n * @enum {number}\r\n */\r\nvar PerformanceEvents;\r\n(function (PerformanceEvents) {\r\n    /**\r\n     * acquireTokenByCode API (msal-browser and msal-node).\r\n     * Used to acquire tokens by trading an authorization code against the token endpoint.\r\n     */\r\n    PerformanceEvents[\"AcquireTokenByCode\"] = \"acquireTokenByCode\";\r\n    /**\r\n     * acquireTokenByRefreshToken API (msal-browser and msal-node).\r\n     * Used to renew an access token using a refresh token against the token endpoint.\r\n     */\r\n    PerformanceEvents[\"AcquireTokenByRefreshToken\"] = \"acquireTokenByRefreshToken\";\r\n    /**\r\n     * acquireTokenSilent API (msal-browser and msal-node).\r\n     * Used to silently acquire a new access token (from the cache or the network).\r\n     */\r\n    PerformanceEvents[\"AcquireTokenSilent\"] = \"acquireTokenSilent\";\r\n    /**\r\n     * acquireTokenSilentAsync (msal-browser).\r\n     * Internal API for acquireTokenSilent.\r\n     */\r\n    PerformanceEvents[\"AcquireTokenSilentAsync\"] = \"acquireTokenSilentAsync\";\r\n    /**\r\n     * acquireTokenPopup (msal-browser).\r\n     * Used to acquire a new access token interactively through pop ups\r\n     */\r\n    PerformanceEvents[\"AcquireTokenPopup\"] = \"acquireTokenPopup\";\r\n    /**\r\n     * getPublicKeyThumbprint API in CryptoOpts class (msal-browser).\r\n     * Used to generate a public/private keypair and generate a public key thumbprint for pop requests.\r\n     */\r\n    PerformanceEvents[\"CryptoOptsGetPublicKeyThumbprint\"] = \"cryptoOptsGetPublicKeyThumbprint\";\r\n    /**\r\n     * signJwt API in CryptoOpts class (msal-browser).\r\n     * Used to signed a pop token.\r\n     */\r\n    PerformanceEvents[\"CryptoOptsSignJwt\"] = \"cryptoOptsSignJwt\";\r\n    /**\r\n     * acquireToken API in the SilentCacheClient class (msal-browser).\r\n     * Used to read access tokens from the cache.\r\n     */\r\n    PerformanceEvents[\"SilentCacheClientAcquireToken\"] = \"silentCacheClientAcquireToken\";\r\n    /**\r\n     * acquireToken API in the SilentIframeClient class (msal-browser).\r\n     * Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.\r\n     */\r\n    PerformanceEvents[\"SilentIframeClientAcquireToken\"] = \"silentIframeClientAcquireToken\";\r\n    /**\r\n     * acquireToken API in SilentRereshClient (msal-browser).\r\n     * Used to acquire a new set of tokens from the token endpoint using a refresh token.\r\n     */\r\n    PerformanceEvents[\"SilentRefreshClientAcquireToken\"] = \"silentRefreshClientAcquireToken\";\r\n    /**\r\n     * ssoSilent API (msal-browser).\r\n     * Used to silently acquire an authorization code and set of tokens using a hidden iframe.\r\n     */\r\n    PerformanceEvents[\"SsoSilent\"] = \"ssoSilent\";\r\n    /**\r\n     * getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).\r\n     * Used to load authority metadata for a request.\r\n     */\r\n    PerformanceEvents[\"StandardInteractionClientGetDiscoveredAuthority\"] = \"standardInteractionClientGetDiscoveredAuthority\";\r\n    /**\r\n     * acquireToken APIs in msal-browser.\r\n     * Used to make an /authorize endpoint call with native brokering enabled.\r\n     */\r\n    PerformanceEvents[\"FetchAccountIdWithNativeBroker\"] = \"fetchAccountIdWithNativeBroker\";\r\n    /**\r\n     * acquireToken API in NativeInteractionClient class (msal-browser).\r\n     * Used to acquire a token from Native component when native brokering is enabled.\r\n     */\r\n    PerformanceEvents[\"NativeInteractionClientAcquireToken\"] = \"nativeInteractionClientAcquireToken\";\r\n    /**\r\n     * Time spent creating default headers for requests to token endpoint\r\n     */\r\n    PerformanceEvents[\"BaseClientCreateTokenRequestHeaders\"] = \"baseClientCreateTokenRequestHeaders\";\r\n    /**\r\n     * Used to measure the time taken for completing embedded-broker handshake (PW-Broker).\r\n     */\r\n    PerformanceEvents[\"BrokerHandhshake\"] = \"brokerHandshake\";\r\n    /**\r\n     * acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .\r\n     */\r\n    PerformanceEvents[\"AcquireTokenByRefreshTokenInBroker\"] = \"acquireTokenByRefreshTokenInBroker\";\r\n    /**\r\n     * Time taken for token acquisition by broker\r\n     */\r\n    PerformanceEvents[\"AcquireTokenByBroker\"] = \"acquireTokenByBroker\";\r\n    /**\r\n     * Time spent on the network for refresh token acquisition\r\n     */\r\n    PerformanceEvents[\"RefreshTokenClientExecuteTokenRequest\"] = \"refreshTokenClientExecuteTokenRequest\";\r\n    /**\r\n     * Time taken for acquiring refresh token , records RT size\r\n     */\r\n    PerformanceEvents[\"RefreshTokenClientAcquireToken\"] = \"refreshTokenClientAcquireToken\";\r\n    /**\r\n     * Time taken for acquiring cached refresh token\r\n     */\r\n    PerformanceEvents[\"RefreshTokenClientAcquireTokenWithCachedRefreshToken\"] = \"refreshTokenClientAcquireTokenWithCachedRefreshToken\";\r\n    /**\r\n     * acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).\r\n     */\r\n    PerformanceEvents[\"RefreshTokenClientAcquireTokenByRefreshToken\"] = \"refreshTokenClientAcquireTokenByRefreshToken\";\r\n    /**\r\n     * Helper function to create token request body in RefreshTokenClient (msal-common).\r\n     */\r\n    PerformanceEvents[\"RefreshTokenClientCreateTokenRequestBody\"] = \"refreshTokenClientCreateTokenRequestBody\";\r\n    /**\r\n     * acquireTokenFromCache (msal-browser).\r\n     * Internal API for acquiring token from cache\r\n     */\r\n    PerformanceEvents[\"AcquireTokenFromCache\"] = \"acquireTokenFromCache\";\r\n    /**\r\n     * acquireTokenBySilentIframe (msal-browser).\r\n     * Internal API for acquiring token by silent Iframe\r\n     */\r\n    PerformanceEvents[\"AcquireTokenBySilentIframe\"] = \"acquireTokenBySilentIframe\";\r\n    /**\r\n     * Internal API for initializing base request in BaseInteractionClient (msal-browser)\r\n     */\r\n    PerformanceEvents[\"InitializeBaseRequest\"] = \"initializeBaseRequest\";\r\n    /**\r\n     * Internal API for initializing silent request in SilentCacheClient (msal-browser)\r\n     */\r\n    PerformanceEvents[\"InitializeSilentRequest\"] = \"initializeSilentRequest\";\r\n    PerformanceEvents[\"InitializeClientApplication\"] = \"initializeClientApplication\";\r\n    /**\r\n     * Helper function in SilentIframeClient class (msal-browser).\r\n     */\r\n    PerformanceEvents[\"SilentIframeClientTokenHelper\"] = \"silentIframeClientTokenHelper\";\r\n    /**\r\n     * SilentHandler\r\n     */\r\n    PerformanceEvents[\"SilentHandlerInitiateAuthRequest\"] = \"silentHandlerInitiateAuthRequest\";\r\n    PerformanceEvents[\"SilentHandlerMonitorIframeForHash\"] = \"silentHandlerMonitorIframeForHash\";\r\n    PerformanceEvents[\"SilentHandlerLoadFrame\"] = \"silentHandlerLoadFrame\";\r\n    /**\r\n     * Helper functions in StandardInteractionClient class (msal-browser)\r\n     */\r\n    PerformanceEvents[\"StandardInteractionClientCreateAuthCodeClient\"] = \"standardInteractionClientCreateAuthCodeClient\";\r\n    PerformanceEvents[\"StandardInteractionClientGetClientConfiguration\"] = \"standardInteractionClientGetClientConfiguration\";\r\n    PerformanceEvents[\"StandardInteractionClientInitializeAuthorizationRequest\"] = \"standardInteractionClientInitializeAuthorizationRequest\";\r\n    PerformanceEvents[\"StandardInteractionClientInitializeAuthorizationCodeRequest\"] = \"standardInteractionClientInitializeAuthorizationCodeRequest\";\r\n    /**\r\n     * getAuthCodeUrl API (msal-browser and msal-node).\r\n     */\r\n    PerformanceEvents[\"GetAuthCodeUrl\"] = \"getAuthCodeUrl\";\r\n    /**\r\n     * Functions from InteractionHandler (msal-browser)\r\n     */\r\n    PerformanceEvents[\"HandleCodeResponseFromServer\"] = \"handleCodeResponseFromServer\";\r\n    PerformanceEvents[\"HandleCodeResponseFromHash\"] = \"handleCodeResponseFromHash\";\r\n    PerformanceEvents[\"UpdateTokenEndpointAuthority\"] = \"updateTokenEndpointAuthority\";\r\n    /**\r\n     * APIs in Authorization Code Client (msal-common)\r\n     */\r\n    PerformanceEvents[\"AuthClientAcquireToken\"] = \"authClientAcquireToken\";\r\n    PerformanceEvents[\"AuthClientExecuteTokenRequest\"] = \"authClientExecuteTokenRequest\";\r\n    PerformanceEvents[\"AuthClientCreateTokenRequestBody\"] = \"authClientCreateTokenRequestBody\";\r\n    PerformanceEvents[\"AuthClientCreateQueryString\"] = \"authClientCreateQueryString\";\r\n    /**\r\n     * Generate functions in PopTokenGenerator (msal-common)\r\n     */\r\n    PerformanceEvents[\"PopTokenGenerateCnf\"] = \"popTokenGenerateCnf\";\r\n    PerformanceEvents[\"PopTokenGenerateKid\"] = \"popTokenGenerateKid\";\r\n    /**\r\n     * handleServerTokenResponse API in ResponseHandler (msal-common)\r\n     */\r\n    PerformanceEvents[\"HandleServerTokenResponse\"] = \"handleServerTokenResponse\";\r\n    /**\r\n     * Authority functions\r\n     */\r\n    PerformanceEvents[\"AuthorityFactoryCreateDiscoveredInstance\"] = \"authorityFactoryCreateDiscoveredInstance\";\r\n    PerformanceEvents[\"AuthorityResolveEndpointsAsync\"] = \"authorityResolveEndpointsAsync\";\r\n    PerformanceEvents[\"AuthorityGetCloudDiscoveryMetadataFromNetwork\"] = \"authorityGetCloudDiscoveryMetadataFromNetwork\";\r\n    PerformanceEvents[\"AuthorityUpdateCloudDiscoveryMetadata\"] = \"authorityUpdateCloudDiscoveryMetadata\";\r\n    PerformanceEvents[\"AuthorityGetEndpointMetadataFromNetwork\"] = \"authorityGetEndpointMetadataFromNetwork\";\r\n    PerformanceEvents[\"AuthorityUpdateEndpointMetadata\"] = \"authorityUpdateEndpointMetadata\";\r\n    PerformanceEvents[\"AuthorityUpdateMetadataWithRegionalInformation\"] = \"authorityUpdateMetadataWithRegionalInformation\";\r\n    /**\r\n     * Region Discovery functions\r\n     */\r\n    PerformanceEvents[\"RegionDiscoveryDetectRegion\"] = \"regionDiscoveryDetectRegion\";\r\n    PerformanceEvents[\"RegionDiscoveryGetRegionFromIMDS\"] = \"regionDiscoveryGetRegionFromIMDS\";\r\n    PerformanceEvents[\"RegionDiscoveryGetCurrentVersion\"] = \"regionDiscoveryGetCurrentVersion\";\r\n    PerformanceEvents[\"AcquireTokenByCodeAsync\"] = \"acquireTokenByCodeAsync\";\r\n    PerformanceEvents[\"GetEndpointMetadataFromNetwork\"] = \"getEndpointMetadataFromNetwork\";\r\n    PerformanceEvents[\"GetCloudDiscoveryMetadataFromNetworkMeasurement\"] = \"getCloudDiscoveryMetadataFromNetworkMeasurement\";\r\n    PerformanceEvents[\"HandleRedirectPromiseMeasurement\"] = \"handleRedirectPromiseMeasurement\";\r\n    PerformanceEvents[\"UpdateCloudDiscoveryMetadataMeasurement\"] = \"updateCloudDiscoveryMetadataMeasurement\";\r\n    PerformanceEvents[\"UsernamePasswordClientAcquireToken\"] = \"usernamePasswordClientAcquireToken\";\r\n    PerformanceEvents[\"NativeMessageHandlerHandshake\"] = \"nativeMessageHandlerHandshake\";\r\n    /**\r\n     * Cache operations\r\n     */\r\n    PerformanceEvents[\"ClearTokensAndKeysWithClaims\"] = \"clearTokensAndKeysWithClaims\";\r\n})(PerformanceEvents || (PerformanceEvents = {}));\r\n/**\r\n * State of the performance event.\r\n *\r\n * @export\r\n * @enum {number}\r\n */\r\nvar PerformanceEventStatus;\r\n(function (PerformanceEventStatus) {\r\n    PerformanceEventStatus[PerformanceEventStatus[\"NotStarted\"] = 0] = \"NotStarted\";\r\n    PerformanceEventStatus[PerformanceEventStatus[\"InProgress\"] = 1] = \"InProgress\";\r\n    PerformanceEventStatus[PerformanceEventStatus[\"Completed\"] = 2] = \"Completed\";\r\n})(PerformanceEventStatus || (PerformanceEventStatus = {}));\r\nvar IntFields = new Set([\r\n    \"accessTokenSize\",\r\n    \"durationMs\",\r\n    \"idTokenSize\",\r\n    \"matsSilentStatus\",\r\n    \"matsHttpStatus\",\r\n    \"refreshTokenSize\",\r\n    \"queuedTimeMs\",\r\n    \"startTimeMs\",\r\n    \"status\",\r\n]);\n\nexport { IntFields, PerformanceEventStatus, PerformanceEvents };\n//# sourceMappingURL=PerformanceEvent.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { AsyncMemoryStorage } from './AsyncMemoryStorage.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar CryptoKeyStoreNames;\r\n(function (CryptoKeyStoreNames) {\r\n    CryptoKeyStoreNames[\"asymmetricKeys\"] = \"asymmetricKeys\";\r\n    CryptoKeyStoreNames[\"symmetricKeys\"] = \"symmetricKeys\";\r\n})(CryptoKeyStoreNames || (CryptoKeyStoreNames = {}));\r\n/**\r\n * MSAL CryptoKeyStore DB Version 2\r\n */\r\nvar CryptoKeyStore = /** @class */ (function () {\r\n    function CryptoKeyStore(logger) {\r\n        this.logger = logger;\r\n        this.asymmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.asymmetricKeys);\r\n        this.symmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.symmetricKeys);\r\n    }\r\n    CryptoKeyStore.prototype.clear = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        // Delete in-memory keystores\r\n                        this.asymmetricKeys.clearInMemory();\r\n                        this.symmetricKeys.clearInMemory();\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.asymmetricKeys.clearPersistent()];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [2 /*return*/, true];\r\n                    case 3:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof Error) {\r\n                            this.logger.error(\"Clearing keystore failed with error: \" + e_1.message);\r\n                        }\r\n                        else {\r\n                            this.logger.error(\"Clearing keystore failed with unknown error\");\r\n                        }\r\n                        return [2 /*return*/, false];\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return CryptoKeyStore;\r\n}());\n\nexport { CryptoKeyStore, CryptoKeyStoreNames };\n//# sourceMappingURL=CryptoKeyStore.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { AuthError } from './AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Error thrown when there is an error with the server code, for example, unavailability.\r\n */\r\nvar ServerError = /** @class */ (function (_super) {\r\n    __extends(ServerError, _super);\r\n    function ServerError(errorCode, errorMessage, subError) {\r\n        var _this = _super.call(this, errorCode, errorMessage, subError) || this;\r\n        _this.name = \"ServerError\";\r\n        Object.setPrototypeOf(_this, ServerError.prototype);\r\n        return _this;\r\n    }\r\n    return ServerError;\r\n}(AuthError));\n\nexport { ServerError };\n//# sourceMappingURL=ServerError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { AuthError } from './AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * ClientAuthErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar JoseHeaderErrorMessage = {\r\n    missingKidError: {\r\n        code: \"missing_kid_error\",\r\n        desc: \"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.\"\r\n    },\r\n    missingAlgError: {\r\n        code: \"missing_alg_error\",\r\n        desc: \"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided.\"\r\n    },\r\n};\r\n/**\r\n * Error thrown when there is an error in the client code running on the browser.\r\n */\r\nvar JoseHeaderError = /** @class */ (function (_super) {\r\n    __extends(JoseHeaderError, _super);\r\n    function JoseHeaderError(errorCode, errorMessage) {\r\n        var _this = _super.call(this, errorCode, errorMessage) || this;\r\n        _this.name = \"JoseHeaderError\";\r\n        Object.setPrototypeOf(_this, JoseHeaderError.prototype);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates an error thrown when keyId isn't set on JOSE header.\r\n     */\r\n    JoseHeaderError.createMissingKidError = function () {\r\n        return new JoseHeaderError(JoseHeaderErrorMessage.missingKidError.code, JoseHeaderErrorMessage.missingKidError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when algorithm isn't set on JOSE header.\r\n     */\r\n    JoseHeaderError.createMissingAlgError = function () {\r\n        return new JoseHeaderError(JoseHeaderErrorMessage.missingAlgError.code, JoseHeaderErrorMessage.missingAlgError.desc);\r\n    };\r\n    return JoseHeaderError;\r\n}(AuthError));\n\nexport { JoseHeaderError, JoseHeaderErrorMessage };\n//# sourceMappingURL=JoseHeaderError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { JoseHeaderError } from '../error/JoseHeaderError.js';\nimport { JsonTypes } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar JoseHeader = /** @class */ (function () {\r\n    function JoseHeader(options) {\r\n        this.typ = options.typ;\r\n        this.alg = options.alg;\r\n        this.kid = options.kid;\r\n    }\r\n    /**\r\n     * Builds SignedHttpRequest formatted JOSE Header from the\r\n     * JOSE Header options provided or previously set on the object and returns\r\n     * the stringified header object.\r\n     * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding.\r\n     * @param shrHeaderOptions\r\n     * @returns\r\n     */\r\n    JoseHeader.getShrHeaderString = function (shrHeaderOptions) {\r\n        // KeyID is required on the SHR header\r\n        if (!shrHeaderOptions.kid) {\r\n            throw JoseHeaderError.createMissingKidError();\r\n        }\r\n        // Alg is required on the SHR header\r\n        if (!shrHeaderOptions.alg) {\r\n            throw JoseHeaderError.createMissingAlgError();\r\n        }\r\n        var shrHeader = new JoseHeader({\r\n            // Access Token PoP headers must have type pop, but the type header can be overriden for special cases\r\n            typ: shrHeaderOptions.typ || JsonTypes.Pop,\r\n            kid: shrHeaderOptions.kid,\r\n            alg: shrHeaderOptions.alg\r\n        });\r\n        return JSON.stringify(shrHeader);\r\n    };\r\n    return JoseHeader;\r\n}());\n\nexport { JoseHeader };\n//# sourceMappingURL=JoseHeader.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility class for math specific functions in browser.\r\n */\r\nvar MathUtils = /** @class */ (function () {\r\n    function MathUtils() {\r\n    }\r\n    /**\r\n     * Decimal to Hex\r\n     *\r\n     * @param num\r\n     */\r\n    MathUtils.decimalToHex = function (num) {\r\n        var hex = num.toString(16);\r\n        while (hex.length < 2) {\r\n            hex = \"0\" + hex;\r\n        }\r\n        return hex;\r\n    };\r\n    return MathUtils;\r\n}());\n\nexport { MathUtils };\n//# sourceMappingURL=MathUtils.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { Constants } from '@azure/msal-common';\nimport { MathUtils } from '../utils/MathUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar GuidGenerator = /** @class */ (function () {\r\n    function GuidGenerator(cryptoObj) {\r\n        this.cryptoObj = cryptoObj;\r\n    }\r\n    /*\r\n     * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or\r\n     * pseudo-random numbers.\r\n     * The algorithm is as follows:\r\n     *     Set the two most significant bits (bits 6 and 7) of the\r\n     *        clock_seq_hi_and_reserved to zero and one, respectively.\r\n     *     Set the four most significant bits (bits 12 through 15) of the\r\n     *        time_hi_and_version field to the 4-bit version number from\r\n     *        Section 4.1.3. Version4\r\n     *     Set all the other bits to randomly (or pseudo-randomly) chosen\r\n     *     values.\r\n     * UUID                   = time-low \"-\" time-mid \"-\"time-high-and-version \"-\"clock-seq-reserved and low(2hexOctet)\"-\" node\r\n     * time-low               = 4hexOctet\r\n     * time-mid               = 2hexOctet\r\n     * time-high-and-version  = 2hexOctet\r\n     * clock-seq-and-reserved = hexOctet:\r\n     * clock-seq-low          = hexOctet\r\n     * node                   = 6hexOctet\r\n     * Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\r\n     * y could be 1000, 1001, 1010, 1011 since most significant two bits needs to be 10\r\n     * y values are 8, 9, A, B\r\n     */\r\n    GuidGenerator.prototype.generateGuid = function () {\r\n        try {\r\n            var buffer = new Uint8Array(16);\r\n            this.cryptoObj.getRandomValues(buffer);\r\n            // buffer[6] and buffer[7] represents the time_hi_and_version field. We will set the four most significant bits (4 through 7) of buffer[6] to represent decimal number 4 (UUID version number).\r\n            buffer[6] |= 0x40; // buffer[6] | 01000000 will set the 6 bit to 1.\r\n            buffer[6] &= 0x4f; // buffer[6] & 01001111 will set the 4, 5, and 7 bit to 0 such that bits 4-7 == 0100 = \"4\".\r\n            // buffer[8] represents the clock_seq_hi_and_reserved field. We will set the two most significant bits (6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively.\r\n            buffer[8] |= 0x80; // buffer[8] | 10000000 will set the 7 bit to 1.\r\n            buffer[8] &= 0xbf; // buffer[8] & 10111111 will set the 6 bit to 0.\r\n            return MathUtils.decimalToHex(buffer[0]) + MathUtils.decimalToHex(buffer[1])\r\n                + MathUtils.decimalToHex(buffer[2]) + MathUtils.decimalToHex(buffer[3])\r\n                + \"-\" + MathUtils.decimalToHex(buffer[4]) + MathUtils.decimalToHex(buffer[5])\r\n                + \"-\" + MathUtils.decimalToHex(buffer[6]) + MathUtils.decimalToHex(buffer[7])\r\n                + \"-\" + MathUtils.decimalToHex(buffer[8]) + MathUtils.decimalToHex(buffer[9])\r\n                + \"-\" + MathUtils.decimalToHex(buffer[10]) + MathUtils.decimalToHex(buffer[11])\r\n                + MathUtils.decimalToHex(buffer[12]) + MathUtils.decimalToHex(buffer[13])\r\n                + MathUtils.decimalToHex(buffer[14]) + MathUtils.decimalToHex(buffer[15]);\r\n        }\r\n        catch (err) {\r\n            var guidHolder = \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\";\r\n            var hex = \"0123456789abcdef\";\r\n            var r = 0;\r\n            var guidResponse = Constants.EMPTY_STRING;\r\n            for (var i = 0; i < 36; i++) {\r\n                if (guidHolder[i] !== \"-\" && guidHolder[i] !== \"4\") {\r\n                    // each x and y needs to be random\r\n                    r = Math.random() * 16 | 0;\r\n                }\r\n                if (guidHolder[i] === \"x\") {\r\n                    guidResponse += hex[r];\r\n                }\r\n                else if (guidHolder[i] === \"y\") {\r\n                    // clock-seq-and-reserved first hex is filtered and remaining hex values are random\r\n                    r &= 0x3; // bit and with 0011 to set pos 2 to zero ?0??\r\n                    r |= 0x8; // set pos 3 to 1 as 1???\r\n                    guidResponse += hex[r];\r\n                }\r\n                else {\r\n                    guidResponse += guidHolder[i];\r\n                }\r\n            }\r\n            return guidResponse;\r\n        }\r\n    };\r\n    /**\r\n     * verifies if a string is  GUID\r\n     * @param guid\r\n     */\r\n    GuidGenerator.prototype.isGuid = function (guid) {\r\n        var regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r\n        return regexGuid.test(guid);\r\n    };\r\n    return GuidGenerator;\r\n}());\n\nexport { GuidGenerator };\n//# sourceMappingURL=GuidGenerator.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { Constants } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility functions for strings in a browser. See here for implementation details:\r\n * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64\r\n */\r\nvar BrowserStringUtils = /** @class */ (function () {\r\n    function BrowserStringUtils() {\r\n    }\r\n    /**\r\n     * Converts string to Uint8Array\r\n     * @param sDOMStr\r\n     */\r\n    BrowserStringUtils.stringToUtf8Arr = function (sDOMStr) {\r\n        var nChr;\r\n        var nArrLen = 0;\r\n        var nStrLen = sDOMStr.length;\r\n        /* mapping... */\r\n        for (var nMapIdx = 0; nMapIdx < nStrLen; nMapIdx++) {\r\n            nChr = sDOMStr.charCodeAt(nMapIdx);\r\n            nArrLen += nChr < 0x80 ? 1 : nChr < 0x800 ? 2 : nChr < 0x10000 ? 3 : nChr < 0x200000 ? 4 : nChr < 0x4000000 ? 5 : 6;\r\n        }\r\n        var aBytes = new Uint8Array(nArrLen);\r\n        /* transcription... */\r\n        for (var nIdx = 0, nChrIdx = 0; nIdx < nArrLen; nChrIdx++) {\r\n            nChr = sDOMStr.charCodeAt(nChrIdx);\r\n            if (nChr < 128) {\r\n                /* one byte */\r\n                aBytes[nIdx++] = nChr;\r\n            }\r\n            else if (nChr < 0x800) {\r\n                /* two bytes */\r\n                aBytes[nIdx++] = 192 + (nChr >>> 6);\r\n                aBytes[nIdx++] = 128 + (nChr & 63);\r\n            }\r\n            else if (nChr < 0x10000) {\r\n                /* three bytes */\r\n                aBytes[nIdx++] = 224 + (nChr >>> 12);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 6 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr & 63);\r\n            }\r\n            else if (nChr < 0x200000) {\r\n                /* four bytes */\r\n                aBytes[nIdx++] = 240 + (nChr >>> 18);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 12 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 6 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr & 63);\r\n            }\r\n            else if (nChr < 0x4000000) {\r\n                /* five bytes */\r\n                aBytes[nIdx++] = 248 + (nChr >>> 24);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 18 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 12 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 6 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr & 63);\r\n            }\r\n            else /* if (nChr <= 0x7fffffff) */ {\r\n                /* six bytes */\r\n                aBytes[nIdx++] = 252 + (nChr >>> 30);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 24 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 18 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 12 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr >>> 6 & 63);\r\n                aBytes[nIdx++] = 128 + (nChr & 63);\r\n            }\r\n        }\r\n        return aBytes;\r\n    };\r\n    /**\r\n     * Converst string to ArrayBuffer\r\n     * @param dataString\r\n     */\r\n    BrowserStringUtils.stringToArrayBuffer = function (dataString) {\r\n        var data = new ArrayBuffer(dataString.length);\r\n        var dataView = new Uint8Array(data);\r\n        for (var i = 0; i < dataString.length; i++) {\r\n            dataView[i] = dataString.charCodeAt(i);\r\n        }\r\n        return data;\r\n    };\r\n    /**\r\n     * Converts Uint8Array to a string\r\n     * @param aBytes\r\n     */\r\n    BrowserStringUtils.utf8ArrToString = function (aBytes) {\r\n        var sView = Constants.EMPTY_STRING;\r\n        for (var nPart = void 0, nLen = aBytes.length, nIdx = 0; nIdx < nLen; nIdx++) {\r\n            nPart = aBytes[nIdx];\r\n            sView += String.fromCharCode(nPart > 251 && nPart < 254 && nIdx + 5 < nLen ? /* six bytes */\r\n                /* (nPart - 252 << 30) may be not so safe in ECMAScript! So...: */\r\n                (nPart - 252) * 1073741824 + (aBytes[++nIdx] - 128 << 24) + (aBytes[++nIdx] - 128 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128\r\n                : nPart > 247 && nPart < 252 && nIdx + 4 < nLen ? /* five bytes */\r\n                    (nPart - 248 << 24) + (aBytes[++nIdx] - 128 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128\r\n                    : nPart > 239 && nPart < 248 && nIdx + 3 < nLen ? /* four bytes */\r\n                        (nPart - 240 << 18) + (aBytes[++nIdx] - 128 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128\r\n                        : nPart > 223 && nPart < 240 && nIdx + 2 < nLen ? /* three bytes */\r\n                            (nPart - 224 << 12) + (aBytes[++nIdx] - 128 << 6) + aBytes[++nIdx] - 128\r\n                            : nPart > 191 && nPart < 224 && nIdx + 1 < nLen ? /* two bytes */\r\n                                (nPart - 192 << 6) + aBytes[++nIdx] - 128\r\n                                : /* nPart < 127 ? */ /* one byte */\r\n                                    nPart);\r\n        }\r\n        return sView;\r\n    };\r\n    /**\r\n     * Returns stringified jwk.\r\n     * @param jwk\r\n     */\r\n    BrowserStringUtils.getSortedObjectString = function (obj) {\r\n        return JSON.stringify(obj, Object.keys(obj).sort());\r\n    };\r\n    return BrowserStringUtils;\r\n}());\n\nexport { BrowserStringUtils };\n//# sourceMappingURL=BrowserStringUtils.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { Constants } from '@azure/msal-common';\nimport { BrowserStringUtils } from '../utils/BrowserStringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Class which exposes APIs to encode plaintext to base64 encoded string. See here for implementation details:\r\n * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64\r\n */\r\nvar Base64Encode = /** @class */ (function () {\r\n    function Base64Encode() {\r\n    }\r\n    /**\r\n     * Returns URL Safe b64 encoded string from a plaintext string.\r\n     * @param input\r\n     */\r\n    Base64Encode.prototype.urlEncode = function (input) {\r\n        return encodeURIComponent(this.encode(input)\r\n            .replace(/=/g, Constants.EMPTY_STRING)\r\n            .replace(/\\+/g, \"-\")\r\n            .replace(/\\//g, \"_\"));\r\n    };\r\n    /**\r\n     * Returns URL Safe b64 encoded string from an int8Array.\r\n     * @param inputArr\r\n     */\r\n    Base64Encode.prototype.urlEncodeArr = function (inputArr) {\r\n        return this.base64EncArr(inputArr)\r\n            .replace(/=/g, Constants.EMPTY_STRING)\r\n            .replace(/\\+/g, \"-\")\r\n            .replace(/\\//g, \"_\");\r\n    };\r\n    /**\r\n     * Returns b64 encoded string from plaintext string.\r\n     * @param input\r\n     */\r\n    Base64Encode.prototype.encode = function (input) {\r\n        var inputUtf8Arr = BrowserStringUtils.stringToUtf8Arr(input);\r\n        return this.base64EncArr(inputUtf8Arr);\r\n    };\r\n    /**\r\n     * Base64 encode byte array\r\n     * @param aBytes\r\n     */\r\n    Base64Encode.prototype.base64EncArr = function (aBytes) {\r\n        var eqLen = (3 - (aBytes.length % 3)) % 3;\r\n        var sB64Enc = Constants.EMPTY_STRING;\r\n        for (var nMod3 = void 0, nLen = aBytes.length, nUint24 = 0, nIdx = 0; nIdx < nLen; nIdx++) {\r\n            nMod3 = nIdx % 3;\r\n            /* Uncomment the following line in order to split the output in lines 76-character long: */\r\n            /*\r\n             *if (nIdx > 0 && (nIdx * 4 / 3) % 76 === 0) { sB64Enc += \"\\r\\n\"; }\r\n             */\r\n            nUint24 |= aBytes[nIdx] << (16 >>> nMod3 & 24);\r\n            if (nMod3 === 2 || aBytes.length - nIdx === 1) {\r\n                sB64Enc += String.fromCharCode(this.uint6ToB64(nUint24 >>> 18 & 63), this.uint6ToB64(nUint24 >>> 12 & 63), this.uint6ToB64(nUint24 >>> 6 & 63), this.uint6ToB64(nUint24 & 63));\r\n                nUint24 = 0;\r\n            }\r\n        }\r\n        return eqLen === 0 ? sB64Enc : sB64Enc.substring(0, sB64Enc.length - eqLen) + (eqLen === 1 ? \"=\" : \"==\");\r\n    };\r\n    /**\r\n     * Base64 string to array encoding helper\r\n     * @param nUint6\r\n     */\r\n    Base64Encode.prototype.uint6ToB64 = function (nUint6) {\r\n        return nUint6 < 26 ?\r\n            nUint6 + 65\r\n            : nUint6 < 52 ?\r\n                nUint6 + 71\r\n                : nUint6 < 62 ?\r\n                    nUint6 - 4\r\n                    : nUint6 === 62 ?\r\n                        43\r\n                        : nUint6 === 63 ?\r\n                            47\r\n                            :\r\n                                65;\r\n    };\r\n    return Base64Encode;\r\n}());\n\nexport { Base64Encode };\n//# sourceMappingURL=Base64Encode.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { Constants } from '@azure/msal-common';\nimport { BrowserStringUtils } from '../utils/BrowserStringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Class which exposes APIs to decode base64 strings to plaintext. See here for implementation details:\r\n * https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_%E2%80%93_JavaScript's_UTF-16_%3E_UTF-8_%3E_base64\r\n */\r\nvar Base64Decode = /** @class */ (function () {\r\n    function Base64Decode() {\r\n    }\r\n    /**\r\n     * Returns a URL-safe plaintext decoded string from b64 encoded input.\r\n     * @param input\r\n     */\r\n    Base64Decode.prototype.decode = function (input) {\r\n        var encodedString = input.replace(/-/g, \"+\").replace(/_/g, \"/\");\r\n        switch (encodedString.length % 4) {\r\n            case 0:\r\n                break;\r\n            case 2:\r\n                encodedString += \"==\";\r\n                break;\r\n            case 3:\r\n                encodedString += \"=\";\r\n                break;\r\n            default:\r\n                throw new Error(\"Invalid base64 string\");\r\n        }\r\n        var inputUtf8Arr = this.base64DecToArr(encodedString);\r\n        return BrowserStringUtils.utf8ArrToString(inputUtf8Arr);\r\n    };\r\n    /**\r\n     * Decodes base64 into Uint8Array\r\n     * @param base64String\r\n     * @param nBlockSize\r\n     */\r\n    Base64Decode.prototype.base64DecToArr = function (base64String, nBlockSize) {\r\n        var sB64Enc = base64String.replace(/[^A-Za-z0-9\\+\\/]/g, Constants.EMPTY_STRING);\r\n        var nInLen = sB64Enc.length;\r\n        var nOutLen = nBlockSize ? Math.ceil((nInLen * 3 + 1 >>> 2) / nBlockSize) * nBlockSize : nInLen * 3 + 1 >>> 2;\r\n        var aBytes = new Uint8Array(nOutLen);\r\n        for (var nMod3 = void 0, nMod4 = void 0, nUint24 = 0, nOutIdx = 0, nInIdx = 0; nInIdx < nInLen; nInIdx++) {\r\n            nMod4 = nInIdx & 3;\r\n            nUint24 |= this.b64ToUint6(sB64Enc.charCodeAt(nInIdx)) << 18 - 6 * nMod4;\r\n            if (nMod4 === 3 || nInLen - nInIdx === 1) {\r\n                for (nMod3 = 0; nMod3 < 3 && nOutIdx < nOutLen; nMod3++, nOutIdx++) {\r\n                    aBytes[nOutIdx] = nUint24 >>> (16 >>> nMod3 & 24) & 255;\r\n                }\r\n                nUint24 = 0;\r\n            }\r\n        }\r\n        return aBytes;\r\n    };\r\n    /**\r\n     * Base64 string to array decoding helper\r\n     * @param charNum\r\n     */\r\n    Base64Decode.prototype.b64ToUint6 = function (charNum) {\r\n        return charNum > 64 && charNum < 91 ?\r\n            charNum - 65\r\n            : charNum > 96 && charNum < 123 ?\r\n                charNum - 71\r\n                : charNum > 47 && charNum < 58 ?\r\n                    charNum + 4\r\n                    : charNum === 43 ?\r\n                        62\r\n                        : charNum === 47 ?\r\n                            63\r\n                            :\r\n                                0;\r\n    };\r\n    return Base64Decode;\r\n}());\n\nexport { Base64Decode };\n//# sourceMappingURL=Base64Decode.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { StringUtils, AuthError } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * BrowserAuthErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar BrowserAuthErrorMessage = {\r\n    pkceNotGenerated: {\r\n        code: \"pkce_not_created\",\r\n        desc: \"The PKCE code challenge and verifier could not be generated.\"\r\n    },\r\n    cryptoDoesNotExist: {\r\n        code: \"crypto_nonexistent\",\r\n        desc: \"The crypto object or function is not available.\"\r\n    },\r\n    httpMethodNotImplementedError: {\r\n        code: \"http_method_not_implemented\",\r\n        desc: \"The HTTP method given has not been implemented in this library.\"\r\n    },\r\n    emptyNavigateUriError: {\r\n        code: \"empty_navigate_uri\",\r\n        desc: \"Navigation URI is empty. Please check stack trace for more info.\"\r\n    },\r\n    hashEmptyError: {\r\n        code: \"hash_empty_error\",\r\n        desc: \"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    hashDoesNotContainStateError: {\r\n        code: \"no_state_in_hash\",\r\n        desc: \"Hash does not contain state. Please verify that the request originated from msal.\"\r\n    },\r\n    hashDoesNotContainKnownPropertiesError: {\r\n        code: \"hash_does_not_contain_known_properties\",\r\n        desc: \"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    unableToParseStateError: {\r\n        code: \"unable_to_parse_state\",\r\n        desc: \"Unable to parse state. Please verify that the request originated from msal.\"\r\n    },\r\n    stateInteractionTypeMismatchError: {\r\n        code: \"state_interaction_type_mismatch\",\r\n        desc: \"Hash contains state but the interaction type does not match the caller.\"\r\n    },\r\n    interactionInProgress: {\r\n        code: \"interaction_in_progress\",\r\n        desc: \"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    popupWindowError: {\r\n        code: \"popup_window_error\",\r\n        desc: \"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.\"\r\n    },\r\n    emptyWindowError: {\r\n        code: \"empty_window_error\",\r\n        desc: \"window.open returned null or undefined window object.\"\r\n    },\r\n    userCancelledError: {\r\n        code: \"user_cancelled\",\r\n        desc: \"User cancelled the flow.\"\r\n    },\r\n    monitorPopupTimeoutError: {\r\n        code: \"monitor_window_timeout\",\r\n        desc: \"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    monitorIframeTimeoutError: {\r\n        code: \"monitor_window_timeout\",\r\n        desc: \"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    redirectInIframeError: {\r\n        code: \"redirect_in_iframe\",\r\n        desc: \"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.\"\r\n    },\r\n    blockTokenRequestsInHiddenIframeError: {\r\n        code: \"block_iframe_reload\",\r\n        desc: \"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors\"\r\n    },\r\n    blockAcquireTokenInPopupsError: {\r\n        code: \"block_nested_popups\",\r\n        desc: \"Request was blocked inside a popup because MSAL detected it was running in a popup.\"\r\n    },\r\n    iframeClosedPrematurelyError: {\r\n        code: \"iframe_closed_prematurely\",\r\n        desc: \"The iframe being monitored was closed prematurely.\"\r\n    },\r\n    silentLogoutUnsupportedError: {\r\n        code: \"silent_logout_unsupported\",\r\n        desc: \"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.\"\r\n    },\r\n    noAccountError: {\r\n        code: \"no_account_error\",\r\n        desc: \"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.\"\r\n    },\r\n    silentPromptValueError: {\r\n        code: \"silent_prompt_value_error\",\r\n        desc: \"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.\"\r\n    },\r\n    noTokenRequestCacheError: {\r\n        code: \"no_token_request_cache_error\",\r\n        desc: \"No token request found in cache.\"\r\n    },\r\n    unableToParseTokenRequestCacheError: {\r\n        code: \"unable_to_parse_token_request_cache_error\",\r\n        desc: \"The cached token request could not be parsed.\"\r\n    },\r\n    noCachedAuthorityError: {\r\n        code: \"no_cached_authority_error\",\r\n        desc: \"No cached authority found.\"\r\n    },\r\n    authRequestNotSet: {\r\n        code: \"auth_request_not_set_error\",\r\n        desc: \"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler\"\r\n    },\r\n    invalidCacheType: {\r\n        code: \"invalid_cache_type\",\r\n        desc: \"Invalid cache type\"\r\n    },\r\n    notInBrowserEnvironment: {\r\n        code: \"non_browser_environment\",\r\n        desc: \"Login and token requests are not supported in non-browser environments.\"\r\n    },\r\n    databaseNotOpen: {\r\n        code: \"database_not_open\",\r\n        desc: \"Database is not open!\"\r\n    },\r\n    noNetworkConnectivity: {\r\n        code: \"no_network_connectivity\",\r\n        desc: \"No network connectivity. Check your internet connection.\"\r\n    },\r\n    postRequestFailed: {\r\n        code: \"post_request_failed\",\r\n        desc: \"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'\"\r\n    },\r\n    getRequestFailed: {\r\n        code: \"get_request_failed\",\r\n        desc: \"Network request failed. Please check the network trace to determine root cause.\"\r\n    },\r\n    failedToParseNetworkResponse: {\r\n        code: \"failed_to_parse_response\",\r\n        desc: \"Failed to parse network response. Check network trace.\"\r\n    },\r\n    unableToLoadTokenError: {\r\n        code: \"unable_to_load_token\",\r\n        desc: \"Error loading token to cache.\"\r\n    },\r\n    signingKeyNotFoundInStorage: {\r\n        code: \"crypto_key_not_found\",\r\n        desc: \"Cryptographic Key or Keypair not found in browser storage.\"\r\n    },\r\n    authCodeRequired: {\r\n        code: \"auth_code_required\",\r\n        desc: \"An authorization code must be provided (as the `code` property on the request) to this flow.\"\r\n    },\r\n    authCodeOrNativeAccountRequired: {\r\n        code: \"auth_code_or_nativeAccountId_required\",\r\n        desc: \"An authorization code or nativeAccountId must be provided to this flow.\"\r\n    },\r\n    spaCodeAndNativeAccountPresent: {\r\n        code: \"spa_code_and_nativeAccountId_present\",\r\n        desc: \"Request cannot contain both spa code and native account id.\"\r\n    },\r\n    databaseUnavailable: {\r\n        code: \"database_unavailable\",\r\n        desc: \"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.\"\r\n    },\r\n    unableToAcquireTokenFromNativePlatform: {\r\n        code: \"unable_to_acquire_token_from_native_platform\",\r\n        desc: \"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    nativeHandshakeTimeout: {\r\n        code: \"native_handshake_timeout\",\r\n        desc: \"Timed out while attempting to establish connection to browser extension\"\r\n    },\r\n    nativeExtensionNotInstalled: {\r\n        code: \"native_extension_not_installed\",\r\n        desc: \"Native extension is not installed. If you think this is a mistake call the initialize function.\"\r\n    },\r\n    nativeConnectionNotEstablished: {\r\n        code: \"native_connection_not_established\",\r\n        desc: \"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    nativeBrokerCalledBeforeInitialize: {\r\n        code: \"native_broker_called_before_initialize\",\r\n        desc: \"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors.\"\r\n    },\r\n    nativePromptNotSupported: {\r\n        code: \"native_prompt_not_supported\",\r\n        desc: \"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.\"\r\n    }\r\n};\r\n/**\r\n * Browser library error class thrown by the MSAL.js library for SPAs\r\n */\r\nvar BrowserAuthError = /** @class */ (function (_super) {\r\n    __extends(BrowserAuthError, _super);\r\n    function BrowserAuthError(errorCode, errorMessage) {\r\n        var _this = _super.call(this, errorCode, errorMessage) || this;\r\n        Object.setPrototypeOf(_this, BrowserAuthError.prototype);\r\n        _this.name = \"BrowserAuthError\";\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates an error thrown when PKCE is not implemented.\r\n     * @param errDetail\r\n     */\r\n    BrowserAuthError.createPkceNotGeneratedError = function (errDetail) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.pkceNotGenerated.code, BrowserAuthErrorMessage.pkceNotGenerated.desc + \" Detail:\" + errDetail);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the crypto object is unavailable.\r\n     * @param errDetail\r\n     */\r\n    BrowserAuthError.createCryptoNotAvailableError = function (errDetail) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.cryptoDoesNotExist.code, BrowserAuthErrorMessage.cryptoDoesNotExist.desc + \" Detail:\" + errDetail);\r\n    };\r\n    /**\r\n     * Creates an error thrown when an HTTP method hasn't been implemented by the browser class.\r\n     * @param method\r\n     */\r\n    BrowserAuthError.createHttpMethodNotImplementedError = function (method) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.httpMethodNotImplementedError.code, BrowserAuthErrorMessage.httpMethodNotImplementedError.desc + \" Given Method: \" + method);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the navigation URI is empty.\r\n     */\r\n    BrowserAuthError.createEmptyNavigationUriError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.emptyNavigateUriError.code, BrowserAuthErrorMessage.emptyNavigateUriError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the hash string value is unexpectedly empty.\r\n     * @param hashValue\r\n     */\r\n    BrowserAuthError.createEmptyHashError = function (hashValue) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.hashEmptyError.code, BrowserAuthErrorMessage.hashEmptyError.desc + \" Given Url: \" + hashValue);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the hash string value is unexpectedly empty.\r\n     */\r\n    BrowserAuthError.createHashDoesNotContainStateError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.hashDoesNotContainStateError.code, BrowserAuthErrorMessage.hashDoesNotContainStateError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the hash string value does not contain known properties\r\n     */\r\n    BrowserAuthError.createHashDoesNotContainKnownPropertiesError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.hashDoesNotContainKnownPropertiesError.code, BrowserAuthErrorMessage.hashDoesNotContainKnownPropertiesError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the hash string value is unexpectedly empty.\r\n     */\r\n    BrowserAuthError.createUnableToParseStateError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.unableToParseStateError.code, BrowserAuthErrorMessage.unableToParseStateError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the state value in the hash does not match the interaction type of the API attempting to consume it.\r\n     */\r\n    BrowserAuthError.createStateInteractionTypeMismatchError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.stateInteractionTypeMismatchError.code, BrowserAuthErrorMessage.stateInteractionTypeMismatchError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when a browser interaction (redirect or popup) is in progress.\r\n     */\r\n    BrowserAuthError.createInteractionInProgressError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.interactionInProgress.code, BrowserAuthErrorMessage.interactionInProgress.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the popup window could not be opened.\r\n     * @param errDetail\r\n     */\r\n    BrowserAuthError.createPopupWindowError = function (errDetail) {\r\n        var errorMessage = BrowserAuthErrorMessage.popupWindowError.desc;\r\n        errorMessage = !StringUtils.isEmpty(errDetail) ? errorMessage + \" Details: \" + errDetail : errorMessage;\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.popupWindowError.code, errorMessage);\r\n    };\r\n    /**\r\n     * Creates an error thrown when window.open returns an empty window object.\r\n     * @param errDetail\r\n     */\r\n    BrowserAuthError.createEmptyWindowCreatedError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.emptyWindowError.code, BrowserAuthErrorMessage.emptyWindowError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the user closes a popup.\r\n     */\r\n    BrowserAuthError.createUserCancelledError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.userCancelledError.code, BrowserAuthErrorMessage.userCancelledError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when monitorPopupFromHash times out for a given popup.\r\n     */\r\n    BrowserAuthError.createMonitorPopupTimeoutError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.monitorPopupTimeoutError.code, BrowserAuthErrorMessage.monitorPopupTimeoutError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when monitorIframeFromHash times out for a given iframe.\r\n     */\r\n    BrowserAuthError.createMonitorIframeTimeoutError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.monitorIframeTimeoutError.code, BrowserAuthErrorMessage.monitorIframeTimeoutError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when navigateWindow is called inside an iframe or brokered applications.\r\n     * @param windowParentCheck\r\n     */\r\n    BrowserAuthError.createRedirectInIframeError = function (windowParentCheck) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.redirectInIframeError.code, BrowserAuthErrorMessage.redirectInIframeError.desc + \" (window.parent !== window) => \" + windowParentCheck);\r\n    };\r\n    /**\r\n     * Creates an error thrown when an auth reload is done inside an iframe.\r\n     */\r\n    BrowserAuthError.createBlockReloadInHiddenIframeError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.blockTokenRequestsInHiddenIframeError.code, BrowserAuthErrorMessage.blockTokenRequestsInHiddenIframeError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when a popup attempts to call an acquireToken API\r\n     * @returns\r\n     */\r\n    BrowserAuthError.createBlockAcquireTokenInPopupsError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.blockAcquireTokenInPopupsError.code, BrowserAuthErrorMessage.blockAcquireTokenInPopupsError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when an iframe is found to be closed before the timeout is reached.\r\n     */\r\n    BrowserAuthError.createIframeClosedPrematurelyError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.iframeClosedPrematurelyError.code, BrowserAuthErrorMessage.iframeClosedPrematurelyError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the logout API is called on any of the silent interaction clients\r\n     */\r\n    BrowserAuthError.createSilentLogoutUnsupportedError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.silentLogoutUnsupportedError.code, BrowserAuthErrorMessage.silentLogoutUnsupportedError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the account object is not provided in the acquireTokenSilent API.\r\n     */\r\n    BrowserAuthError.createNoAccountError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.noAccountError.code, BrowserAuthErrorMessage.noAccountError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when a given prompt value is invalid for silent requests.\r\n     */\r\n    BrowserAuthError.createSilentPromptValueError = function (givenPrompt) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.silentPromptValueError.code, BrowserAuthErrorMessage.silentPromptValueError.desc + \" Given value: \" + givenPrompt);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the cached token request could not be retrieved from the cache\r\n     */\r\n    BrowserAuthError.createUnableToParseTokenRequestCacheError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.unableToParseTokenRequestCacheError.code, BrowserAuthErrorMessage.unableToParseTokenRequestCacheError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the token request could not be retrieved from the cache\r\n     */\r\n    BrowserAuthError.createNoTokenRequestCacheError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.noTokenRequestCacheError.code, BrowserAuthErrorMessage.noTokenRequestCacheError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when handleCodeResponse is called before initiateAuthRequest (InteractionHandler)\r\n     */\r\n    BrowserAuthError.createAuthRequestNotSetError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.authRequestNotSet.code, BrowserAuthErrorMessage.authRequestNotSet.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the authority could not be retrieved from the cache\r\n     */\r\n    BrowserAuthError.createNoCachedAuthorityError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.noCachedAuthorityError.code, BrowserAuthErrorMessage.noCachedAuthorityError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown if cache type is invalid.\r\n     */\r\n    BrowserAuthError.createInvalidCacheTypeError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.invalidCacheType.code, \"\" + BrowserAuthErrorMessage.invalidCacheType.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when login and token requests are made from a non-browser environment\r\n     */\r\n    BrowserAuthError.createNonBrowserEnvironmentError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.notInBrowserEnvironment.code, BrowserAuthErrorMessage.notInBrowserEnvironment.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when indexDB database is not open\r\n     */\r\n    BrowserAuthError.createDatabaseNotOpenError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.databaseNotOpen.code, BrowserAuthErrorMessage.databaseNotOpen.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when token fetch fails due to no internet\r\n     */\r\n    BrowserAuthError.createNoNetworkConnectivityError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.noNetworkConnectivity.code, BrowserAuthErrorMessage.noNetworkConnectivity.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when token fetch fails due to reasons other than internet connectivity\r\n     */\r\n    BrowserAuthError.createPostRequestFailedError = function (errorDesc, endpoint) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.postRequestFailed.code, BrowserAuthErrorMessage.postRequestFailed.desc + \" | Network client threw: \" + errorDesc + \" | Attempted to reach: \" + endpoint.split(\"?\")[0]);\r\n    };\r\n    /**\r\n     * Create an error thrown when get request fails due to reasons other than internet connectivity\r\n     */\r\n    BrowserAuthError.createGetRequestFailedError = function (errorDesc, endpoint) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.getRequestFailed.code, BrowserAuthErrorMessage.getRequestFailed.desc + \" | Network client threw: \" + errorDesc + \" | Attempted to reach: \" + endpoint.split(\"?\")[0]);\r\n    };\r\n    /**\r\n     * Create an error thrown when network client fails to parse network response\r\n     */\r\n    BrowserAuthError.createFailedToParseNetworkResponseError = function (endpoint) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.failedToParseNetworkResponse.code, BrowserAuthErrorMessage.failedToParseNetworkResponse.desc + \" | Attempted to reach: \" + endpoint.split(\"?\")[0]);\r\n    };\r\n    /**\r\n     * Create an error thrown when the necessary information is not available to sideload tokens\r\n     */\r\n    BrowserAuthError.createUnableToLoadTokenError = function (errorDetail) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.unableToLoadTokenError.code, BrowserAuthErrorMessage.unableToLoadTokenError.desc + \" | \" + errorDetail);\r\n    };\r\n    /**\r\n     * Create an error thrown when the queried cryptographic key is not found in IndexedDB\r\n     */\r\n    BrowserAuthError.createSigningKeyNotFoundInStorageError = function (keyId) {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.signingKeyNotFoundInStorage.code, BrowserAuthErrorMessage.signingKeyNotFoundInStorage.desc + \" | No match found for KeyId: \" + keyId);\r\n    };\r\n    /**\r\n     * Create an error when an authorization code is required but not provided\r\n     */\r\n    BrowserAuthError.createAuthCodeRequiredError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.authCodeRequired.code, BrowserAuthErrorMessage.authCodeRequired.desc);\r\n    };\r\n    /**\r\n     * Create an error when an authorization code or native account ID is required but not provided\r\n     */\r\n    BrowserAuthError.createAuthCodeOrNativeAccountIdRequiredError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.authCodeOrNativeAccountRequired.code, BrowserAuthErrorMessage.authCodeOrNativeAccountRequired.desc);\r\n    };\r\n    /**\r\n     * Create an error when both authorization code and native account ID are provided\r\n     */\r\n    BrowserAuthError.createSpaCodeAndNativeAccountIdPresentError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.spaCodeAndNativeAccountPresent.code, BrowserAuthErrorMessage.spaCodeAndNativeAccountPresent.desc);\r\n    };\r\n    /**\r\n     * Create an error when IndexedDB is unavailable\r\n     */\r\n    BrowserAuthError.createDatabaseUnavailableError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.databaseUnavailable.code, BrowserAuthErrorMessage.databaseUnavailable.desc);\r\n    };\r\n    /**\r\n     * Create an error when native token acquisition is not possible\r\n     */\r\n    BrowserAuthError.createUnableToAcquireTokenFromNativePlatformError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.unableToAcquireTokenFromNativePlatform.code, BrowserAuthErrorMessage.unableToAcquireTokenFromNativePlatform.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when Handshake with browser extension times out\r\n     */\r\n    BrowserAuthError.createNativeHandshakeTimeoutError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.nativeHandshakeTimeout.code, BrowserAuthErrorMessage.nativeHandshakeTimeout.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when browser extension is not installed\r\n     */\r\n    BrowserAuthError.createNativeExtensionNotInstalledError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.nativeExtensionNotInstalled.code, BrowserAuthErrorMessage.nativeExtensionNotInstalled.desc);\r\n    };\r\n    /**\r\n     * Create an error when native connection has not been established\r\n     * @returns\r\n     */\r\n    BrowserAuthError.createNativeConnectionNotEstablishedError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.nativeConnectionNotEstablished.code, BrowserAuthErrorMessage.nativeConnectionNotEstablished.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when the initialize function hasn't been called\r\n     */\r\n    BrowserAuthError.createNativeBrokerCalledBeforeInitialize = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.nativeBrokerCalledBeforeInitialize.code, BrowserAuthErrorMessage.nativeBrokerCalledBeforeInitialize.desc);\r\n    };\r\n    /**\r\n     * Create an error thrown when requesting a token directly from the native platform with an unsupported prompt parameter e.g. select_account, login or create\r\n     * These requests must go through eSTS to ensure eSTS is aware of the new account\r\n     */\r\n    BrowserAuthError.createNativePromptParameterNotSupportedError = function () {\r\n        return new BrowserAuthError(BrowserAuthErrorMessage.nativePromptNotSupported.code, BrowserAuthErrorMessage.nativePromptNotSupported.desc);\r\n    };\r\n    return BrowserAuthError;\r\n}(AuthError));\n\nexport { BrowserAuthError, BrowserAuthErrorMessage };\n//# sourceMappingURL=BrowserAuthError.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { Base64Encode } from '../encode/Base64Encode.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n// Constant byte array length\r\nvar RANDOM_BYTE_ARR_LENGTH = 32;\r\n/**\r\n * Class which exposes APIs to generate PKCE codes and code verifiers.\r\n */\r\nvar PkceGenerator = /** @class */ (function () {\r\n    function PkceGenerator(cryptoObj) {\r\n        this.base64Encode = new Base64Encode();\r\n        this.cryptoObj = cryptoObj;\r\n    }\r\n    /**\r\n     * Generates PKCE Codes. See the RFC for more information: https://tools.ietf.org/html/rfc7636\r\n     */\r\n    PkceGenerator.prototype.generateCodes = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var codeVerifier, codeChallenge;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        codeVerifier = this.generateCodeVerifier();\r\n                        return [4 /*yield*/, this.generateCodeChallengeFromVerifier(codeVerifier)];\r\n                    case 1:\r\n                        codeChallenge = _a.sent();\r\n                        return [2 /*return*/, {\r\n                                verifier: codeVerifier,\r\n                                challenge: codeChallenge\r\n                            }];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates a random 32 byte buffer and returns the base64\r\n     * encoded string to be used as a PKCE Code Verifier\r\n     */\r\n    PkceGenerator.prototype.generateCodeVerifier = function () {\r\n        try {\r\n            // Generate random values as utf-8\r\n            var buffer = new Uint8Array(RANDOM_BYTE_ARR_LENGTH);\r\n            this.cryptoObj.getRandomValues(buffer);\r\n            // encode verifier as base64\r\n            var pkceCodeVerifierB64 = this.base64Encode.urlEncodeArr(buffer);\r\n            return pkceCodeVerifierB64;\r\n        }\r\n        catch (e) {\r\n            throw BrowserAuthError.createPkceNotGeneratedError(e);\r\n        }\r\n    };\r\n    /**\r\n     * Creates a base64 encoded PKCE Code Challenge string from the\r\n     * hash created from the PKCE Code Verifier supplied\r\n     */\r\n    PkceGenerator.prototype.generateCodeChallengeFromVerifier = function (pkceCodeVerifier) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var pkceHashedCodeVerifier, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        _a.trys.push([0, 2, , 3]);\r\n                        return [4 /*yield*/, this.cryptoObj.sha256Digest(pkceCodeVerifier)];\r\n                    case 1:\r\n                        pkceHashedCodeVerifier = _a.sent();\r\n                        // encode hash as base64\r\n                        return [2 /*return*/, this.base64Encode.urlEncodeArr(new Uint8Array(pkceHashedCodeVerifier))];\r\n                    case 2:\r\n                        e_1 = _a.sent();\r\n                        throw BrowserAuthError.createPkceNotGeneratedError(e_1);\r\n                    case 3: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return PkceGenerator;\r\n}());\n\nexport { PkceGenerator };\n//# sourceMappingURL=PkceGenerator.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { KEY_FORMAT_JWK } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ModernBrowserCrypto = /** @class */ (function () {\r\n    function ModernBrowserCrypto() {\r\n    }\r\n    ModernBrowserCrypto.prototype.getRandomValues = function (dataBuffer) {\r\n        return window.crypto.getRandomValues(dataBuffer);\r\n    };\r\n    ModernBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.crypto.subtle.generateKey(algorithm, extractable, keyUsages)];\r\n            });\r\n        });\r\n    };\r\n    ModernBrowserCrypto.prototype.exportKey = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.crypto.subtle.exportKey(KEY_FORMAT_JWK, key)];\r\n            });\r\n        });\r\n    };\r\n    ModernBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.crypto.subtle.importKey(KEY_FORMAT_JWK, keyData, algorithm, extractable, keyUsages)];\r\n            });\r\n        });\r\n    };\r\n    ModernBrowserCrypto.prototype.sign = function (algorithm, key, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.crypto.subtle.sign(algorithm, key, data)];\r\n            });\r\n        });\r\n    };\r\n    ModernBrowserCrypto.prototype.digest = function (algorithm, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.crypto.subtle.digest(algorithm, data)];\r\n            });\r\n        });\r\n    };\r\n    return ModernBrowserCrypto;\r\n}());\n\nexport { ModernBrowserCrypto };\n//# sourceMappingURL=ModernBrowserCrypto.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __spread, __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { KEY_FORMAT_JWK } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar MsrBrowserCrypto = /** @class */ (function () {\r\n    function MsrBrowserCrypto() {\r\n    }\r\n    MsrBrowserCrypto.prototype.initPrng = function (entropy) {\r\n        // Turn into array, as initPrng seems to not always like Uint8Array (even though it should support both)\r\n        return window.msrCrypto.initPrng(__spread(entropy));\r\n    };\r\n    MsrBrowserCrypto.prototype.getRandomValues = function (dataBuffer) {\r\n        return window.msrCrypto.getRandomValues(dataBuffer);\r\n    };\r\n    MsrBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.msrCrypto.subtle.generateKey(algorithm, extractable, keyUsages)];\r\n            });\r\n        });\r\n    };\r\n    MsrBrowserCrypto.prototype.exportKey = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.msrCrypto.subtle.exportKey(KEY_FORMAT_JWK, key)];\r\n            });\r\n        });\r\n    };\r\n    MsrBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.msrCrypto.subtle.importKey(KEY_FORMAT_JWK, keyData, algorithm, extractable, keyUsages)];\r\n            });\r\n        });\r\n    };\r\n    MsrBrowserCrypto.prototype.sign = function (algorithm, key, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.msrCrypto.subtle.sign(algorithm, key, data)];\r\n            });\r\n        });\r\n    };\r\n    MsrBrowserCrypto.prototype.digest = function (algorithm, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, window.msrCrypto.subtle.digest(algorithm, data)];\r\n            });\r\n        });\r\n    };\r\n    return MsrBrowserCrypto;\r\n}());\n\nexport { MsrBrowserCrypto };\n//# sourceMappingURL=MsrBrowserCrypto.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { Constants } from '@azure/msal-common';\nimport { KEY_FORMAT_JWK } from '../utils/BrowserConstants.js';\nimport { BrowserStringUtils } from '../utils/BrowserStringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar MsBrowserCrypto = /** @class */ (function () {\r\n    function MsBrowserCrypto() {\r\n    }\r\n    MsBrowserCrypto.prototype.getRandomValues = function (dataBuffer) {\r\n        return window[\"msCrypto\"].getRandomValues(dataBuffer);\r\n    };\r\n    MsBrowserCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var msGenerateKey = window[\"msCrypto\"].subtle.generateKey(algorithm, extractable, keyUsages);\r\n                        msGenerateKey.addEventListener(\"complete\", function (e) {\r\n                            resolve(e.target.result);\r\n                        });\r\n                        msGenerateKey.addEventListener(\"error\", function (error) {\r\n                            reject(error);\r\n                        });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    MsBrowserCrypto.prototype.exportKey = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var msExportKey = window[\"msCrypto\"].subtle.exportKey(KEY_FORMAT_JWK, key);\r\n                        msExportKey.addEventListener(\"complete\", function (e) {\r\n                            var resultBuffer = e.target.result;\r\n                            var resultString = BrowserStringUtils.utf8ArrToString(new Uint8Array(resultBuffer))\r\n                                .replace(/\\r/g, Constants.EMPTY_STRING)\r\n                                .replace(/\\n/g, Constants.EMPTY_STRING)\r\n                                .replace(/\\t/g, Constants.EMPTY_STRING)\r\n                                .split(\" \").join(Constants.EMPTY_STRING)\r\n                                .replace(\"\\u0000\", Constants.EMPTY_STRING);\r\n                            try {\r\n                                resolve(JSON.parse(resultString));\r\n                            }\r\n                            catch (e) {\r\n                                reject(e);\r\n                            }\r\n                        });\r\n                        msExportKey.addEventListener(\"error\", function (error) {\r\n                            reject(error);\r\n                        });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    MsBrowserCrypto.prototype.importKey = function (keyData, algorithm, extractable, keyUsages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var keyString, keyBuffer;\r\n            return __generator(this, function (_a) {\r\n                keyString = BrowserStringUtils.getSortedObjectString(keyData);\r\n                keyBuffer = BrowserStringUtils.stringToArrayBuffer(keyString);\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var msImportKey = window[\"msCrypto\"].subtle.importKey(KEY_FORMAT_JWK, keyBuffer, algorithm, extractable, keyUsages);\r\n                        msImportKey.addEventListener(\"complete\", function (e) {\r\n                            resolve(e.target.result);\r\n                        });\r\n                        msImportKey.addEventListener(\"error\", function (error) {\r\n                            reject(error);\r\n                        });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    MsBrowserCrypto.prototype.sign = function (algorithm, key, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var msSign = window[\"msCrypto\"].subtle.sign(algorithm, key, data);\r\n                        msSign.addEventListener(\"complete\", function (e) {\r\n                            resolve(e.target.result);\r\n                        });\r\n                        msSign.addEventListener(\"error\", function (error) {\r\n                            reject(error);\r\n                        });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    MsBrowserCrypto.prototype.digest = function (algorithm, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var digestOperation = window[\"msCrypto\"].subtle.digest(algorithm, data.buffer);\r\n                        digestOperation.addEventListener(\"complete\", function (e) {\r\n                            resolve(e.target.result);\r\n                        });\r\n                        digestOperation.addEventListener(\"error\", function (error) {\r\n                            reject(error);\r\n                        });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    return MsBrowserCrypto;\r\n}());\n\nexport { MsBrowserCrypto };\n//# sourceMappingURL=MsBrowserCrypto.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BrowserStringUtils } from '../utils/BrowserStringUtils.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { ModernBrowserCrypto } from './ModernBrowserCrypto.js';\nimport { MsrBrowserCrypto } from './MsrBrowserCrypto.js';\nimport { MsBrowserCrypto } from './MsBrowserCrypto.js';\nimport { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * See here for more info on RsaHashedKeyGenParams: https://developer.mozilla.org/en-US/docs/Web/API/RsaHashedKeyGenParams\r\n */\r\n// RSA KeyGen Algorithm\r\nvar PKCS1_V15_KEYGEN_ALG = \"RSASSA-PKCS1-v1_5\";\r\n// SHA-256 hashing algorithm\r\nvar S256_HASH_ALG = \"SHA-256\";\r\n// MOD length for PoP tokens\r\nvar MODULUS_LENGTH = 2048;\r\n// Public Exponent\r\nvar PUBLIC_EXPONENT = new Uint8Array([0x01, 0x00, 0x01]);\r\n/**\r\n * This class implements functions used by the browser library to perform cryptography operations such as\r\n * hashing and encoding. It also has helper functions to validate the availability of specific APIs.\r\n */\r\nvar BrowserCrypto = /** @class */ (function () {\r\n    function BrowserCrypto(logger, cryptoOptions) {\r\n        var _a, _b;\r\n        this.logger = logger;\r\n        this.cryptoOptions = cryptoOptions;\r\n        if (this.hasBrowserCrypto()) {\r\n            // Use standard modern web crypto if available\r\n            this.logger.verbose(\"BrowserCrypto: modern crypto interface available\");\r\n            this.subtleCrypto = new ModernBrowserCrypto();\r\n        }\r\n        else if (this.hasIECrypto()) {\r\n            // For IE11, use msCrypto interface\r\n            this.logger.verbose(\"BrowserCrypto: MS crypto interface available\");\r\n            this.subtleCrypto = new MsBrowserCrypto();\r\n        }\r\n        else if (this.hasMsrCrypto() && ((_a = this.cryptoOptions) === null || _a === void 0 ? void 0 : _a.useMsrCrypto)) {\r\n            // For other browsers, use MSR Crypto if found\r\n            this.logger.verbose(\"BrowserCrypto: MSR crypto interface available\");\r\n            this.subtleCrypto = new MsrBrowserCrypto();\r\n        }\r\n        else {\r\n            if (this.hasMsrCrypto()) {\r\n                this.logger.info(\"BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled\");\r\n            }\r\n            this.logger.error(\"BrowserCrypto: No crypto interfaces available.\");\r\n            throw BrowserAuthError.createCryptoNotAvailableError(\"Browser crypto, msCrypto, or msrCrypto interfaces not available.\");\r\n        }\r\n        // Mainly needed for MSR Crypto: https://github.com/microsoft/MSR-JavaScript-Crypto#random-number-generator-prng\r\n        if (this.subtleCrypto.initPrng) {\r\n            this.logger.verbose(\"BrowserCrypto: Interface requires entropy\");\r\n            if (!((_b = this.cryptoOptions) === null || _b === void 0 ? void 0 : _b.entropy)) {\r\n                this.logger.error(\"BrowserCrypto: Interface requires entropy but none provided.\");\r\n                throw BrowserConfigurationAuthError.createEntropyNotProvided();\r\n            }\r\n            this.logger.verbose(\"BrowserCrypto: Entropy provided\");\r\n            this.subtleCrypto.initPrng(this.cryptoOptions.entropy);\r\n        }\r\n        this.keygenAlgorithmOptions = {\r\n            name: PKCS1_V15_KEYGEN_ALG,\r\n            hash: S256_HASH_ALG,\r\n            modulusLength: MODULUS_LENGTH,\r\n            publicExponent: PUBLIC_EXPONENT\r\n        };\r\n    }\r\n    /**\r\n     * Check whether IE crypto or other browser cryptography is available.\r\n     */\r\n    BrowserCrypto.prototype.hasIECrypto = function () {\r\n        return \"msCrypto\" in window;\r\n    };\r\n    /**\r\n     * Check whether browser crypto is available.\r\n     */\r\n    BrowserCrypto.prototype.hasBrowserCrypto = function () {\r\n        return \"crypto\" in window;\r\n    };\r\n    /**\r\n     * Check whether MSR crypto polyfill is available\r\n     */\r\n    BrowserCrypto.prototype.hasMsrCrypto = function () {\r\n        return \"msrCrypto\" in window;\r\n    };\r\n    /**\r\n     * Returns a sha-256 hash of the given dataString as an ArrayBuffer.\r\n     * @param dataString\r\n     */\r\n    BrowserCrypto.prototype.sha256Digest = function (dataString) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var data;\r\n            return __generator(this, function (_a) {\r\n                data = BrowserStringUtils.stringToUtf8Arr(dataString);\r\n                // MSR Crypto wants object with name property, instead of string\r\n                return [2 /*return*/, this.subtleCrypto.digest({ name: S256_HASH_ALG }, data)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Populates buffer with cryptographically random values.\r\n     * @param dataBuffer\r\n     */\r\n    BrowserCrypto.prototype.getRandomValues = function (dataBuffer) {\r\n        return this.subtleCrypto.getRandomValues(dataBuffer);\r\n    };\r\n    /**\r\n     * Generates a keypair based on current keygen algorithm config.\r\n     * @param extractable\r\n     * @param usages\r\n     */\r\n    BrowserCrypto.prototype.generateKeyPair = function (extractable, usages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.subtleCrypto.generateKey(this.keygenAlgorithmOptions, extractable, usages)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Export key as Json Web Key (JWK)\r\n     * @param key\r\n     * @param format\r\n     */\r\n    BrowserCrypto.prototype.exportJwk = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.subtleCrypto.exportKey(key)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Imports key as Json Web Key (JWK), can set extractable and usages.\r\n     * @param key\r\n     * @param format\r\n     * @param extractable\r\n     * @param usages\r\n     */\r\n    BrowserCrypto.prototype.importJwk = function (key, extractable, usages) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.subtleCrypto.importKey(key, this.keygenAlgorithmOptions, extractable, usages)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Signs given data with given key\r\n     * @param key\r\n     * @param data\r\n     */\r\n    BrowserCrypto.prototype.sign = function (key, data) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.subtleCrypto.sign(this.keygenAlgorithmOptions, key, data)];\r\n            });\r\n        });\r\n    };\r\n    return BrowserCrypto;\r\n}());\n\nexport { BrowserCrypto };\n//# sourceMappingURL=BrowserCrypto.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { DB_NAME, DB_VERSION, DB_TABLE_NAME } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Storage wrapper for IndexedDB storage in browsers: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API\r\n */\r\nvar DatabaseStorage = /** @class */ (function () {\r\n    function DatabaseStorage() {\r\n        this.dbName = DB_NAME;\r\n        this.version = DB_VERSION;\r\n        this.tableName = DB_TABLE_NAME;\r\n        this.dbOpen = false;\r\n    }\r\n    /**\r\n     * Opens IndexedDB instance.\r\n     */\r\n    DatabaseStorage.prototype.open = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var openDB = window.indexedDB.open(_this.dbName, _this.version);\r\n                        openDB.addEventListener(\"upgradeneeded\", function (e) {\r\n                            var event = e;\r\n                            event.target.result.createObjectStore(_this.tableName);\r\n                        });\r\n                        openDB.addEventListener(\"success\", function (e) {\r\n                            var event = e;\r\n                            _this.db = event.target.result;\r\n                            _this.dbOpen = true;\r\n                            resolve();\r\n                        });\r\n                        openDB.addEventListener(\"error\", function () { return reject(BrowserAuthError.createDatabaseUnavailableError()); });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Closes the connection to IndexedDB database when all pending transactions\r\n     * complete.\r\n     */\r\n    DatabaseStorage.prototype.closeConnection = function () {\r\n        var db = this.db;\r\n        if (db && this.dbOpen) {\r\n            db.close();\r\n            this.dbOpen = false;\r\n        }\r\n    };\r\n    /**\r\n     * Opens database if it's not already open\r\n     */\r\n    DatabaseStorage.prototype.validateDbIsOpen = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (!!this.dbOpen) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.open()];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                    case 2: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Retrieves item from IndexedDB instance.\r\n     * @param key\r\n     */\r\n    DatabaseStorage.prototype.getItem = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.validateDbIsOpen()];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                                // TODO: Add timeouts?\r\n                                if (!_this.db) {\r\n                                    return reject(BrowserAuthError.createDatabaseNotOpenError());\r\n                                }\r\n                                var transaction = _this.db.transaction([_this.tableName], \"readonly\");\r\n                                var objectStore = transaction.objectStore(_this.tableName);\r\n                                var dbGet = objectStore.get(key);\r\n                                dbGet.addEventListener(\"success\", function (e) {\r\n                                    var event = e;\r\n                                    _this.closeConnection();\r\n                                    resolve(event.target.result);\r\n                                });\r\n                                dbGet.addEventListener(\"error\", function (e) {\r\n                                    _this.closeConnection();\r\n                                    reject(e);\r\n                                });\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Adds item to IndexedDB under given key\r\n     * @param key\r\n     * @param payload\r\n     */\r\n    DatabaseStorage.prototype.setItem = function (key, payload) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.validateDbIsOpen()];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                                // TODO: Add timeouts?\r\n                                if (!_this.db) {\r\n                                    return reject(BrowserAuthError.createDatabaseNotOpenError());\r\n                                }\r\n                                var transaction = _this.db.transaction([_this.tableName], \"readwrite\");\r\n                                var objectStore = transaction.objectStore(_this.tableName);\r\n                                var dbPut = objectStore.put(payload, key);\r\n                                dbPut.addEventListener(\"success\", function () {\r\n                                    _this.closeConnection();\r\n                                    resolve();\r\n                                });\r\n                                dbPut.addEventListener(\"error\", function (e) {\r\n                                    _this.closeConnection();\r\n                                    reject(e);\r\n                                });\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes item from IndexedDB under given key\r\n     * @param key\r\n     */\r\n    DatabaseStorage.prototype.removeItem = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.validateDbIsOpen()];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                                if (!_this.db) {\r\n                                    return reject(BrowserAuthError.createDatabaseNotOpenError());\r\n                                }\r\n                                var transaction = _this.db.transaction([_this.tableName], \"readwrite\");\r\n                                var objectStore = transaction.objectStore(_this.tableName);\r\n                                var dbDelete = objectStore.delete(key);\r\n                                dbDelete.addEventListener(\"success\", function () {\r\n                                    _this.closeConnection();\r\n                                    resolve();\r\n                                });\r\n                                dbDelete.addEventListener(\"error\", function (e) {\r\n                                    _this.closeConnection();\r\n                                    reject(e);\r\n                                });\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get all the keys from the storage object as an iterable array of strings.\r\n     */\r\n    DatabaseStorage.prototype.getKeys = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.validateDbIsOpen()];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                                if (!_this.db) {\r\n                                    return reject(BrowserAuthError.createDatabaseNotOpenError());\r\n                                }\r\n                                var transaction = _this.db.transaction([_this.tableName], \"readonly\");\r\n                                var objectStore = transaction.objectStore(_this.tableName);\r\n                                var dbGetKeys = objectStore.getAllKeys();\r\n                                dbGetKeys.addEventListener(\"success\", function (e) {\r\n                                    var event = e;\r\n                                    _this.closeConnection();\r\n                                    resolve(event.target.result);\r\n                                });\r\n                                dbGetKeys.addEventListener(\"error\", function (e) {\r\n                                    _this.closeConnection();\r\n                                    reject(e);\r\n                                });\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     *\r\n     * Checks whether there is an object under the search key in the object store\r\n     */\r\n    DatabaseStorage.prototype.containsKey = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.validateDbIsOpen()];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                                if (!_this.db) {\r\n                                    return reject(BrowserAuthError.createDatabaseNotOpenError());\r\n                                }\r\n                                var transaction = _this.db.transaction([_this.tableName], \"readonly\");\r\n                                var objectStore = transaction.objectStore(_this.tableName);\r\n                                var dbContainsKey = objectStore.count(key);\r\n                                dbContainsKey.addEventListener(\"success\", function (e) {\r\n                                    var event = e;\r\n                                    _this.closeConnection();\r\n                                    resolve(event.target.result === 1);\r\n                                });\r\n                                dbContainsKey.addEventListener(\"error\", function (e) {\r\n                                    _this.closeConnection();\r\n                                    reject(e);\r\n                                });\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Deletes the MSAL database. The database is deleted rather than cleared to make it possible\r\n     * for client applications to downgrade to a previous MSAL version without worrying about forward compatibility issues\r\n     * with IndexedDB database versions.\r\n     */\r\n    DatabaseStorage.prototype.deleteDatabase = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                // Check if database being deleted exists\r\n                if (this.db && this.dbOpen) {\r\n                    this.closeConnection();\r\n                }\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        var deleteDbRequest = window.indexedDB.deleteDatabase(DB_NAME);\r\n                        deleteDbRequest.addEventListener(\"success\", function () { return resolve(true); });\r\n                        deleteDbRequest.addEventListener(\"blocked\", function () { return resolve(true); });\r\n                        deleteDbRequest.addEventListener(\"error\", function () { return reject(false); });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    return DatabaseStorage;\r\n}());\n\nexport { DatabaseStorage };\n//# sourceMappingURL=DatabaseStorage.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar MemoryStorage = /** @class */ (function () {\r\n    function MemoryStorage() {\r\n        this.cache = new Map();\r\n    }\r\n    MemoryStorage.prototype.getItem = function (key) {\r\n        return this.cache.get(key) || null;\r\n    };\r\n    MemoryStorage.prototype.setItem = function (key, value) {\r\n        this.cache.set(key, value);\r\n    };\r\n    MemoryStorage.prototype.removeItem = function (key) {\r\n        this.cache.delete(key);\r\n    };\r\n    MemoryStorage.prototype.getKeys = function () {\r\n        var cacheKeys = [];\r\n        this.cache.forEach(function (value, key) {\r\n            cacheKeys.push(key);\r\n        });\r\n        return cacheKeys;\r\n    };\r\n    MemoryStorage.prototype.containsKey = function (key) {\r\n        return this.cache.has(key);\r\n    };\r\n    MemoryStorage.prototype.clear = function () {\r\n        this.cache.clear();\r\n    };\r\n    return MemoryStorage;\r\n}());\n\nexport { MemoryStorage };\n//# sourceMappingURL=MemoryStorage.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BrowserAuthError, BrowserAuthErrorMessage } from '../error/BrowserAuthError.js';\nimport { DatabaseStorage } from './DatabaseStorage.js';\nimport { MemoryStorage } from './MemoryStorage.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This class allows MSAL to store artifacts asynchronously using the DatabaseStorage IndexedDB wrapper,\r\n * backed up with the more volatile MemoryStorage object for cases in which IndexedDB may be unavailable.\r\n */\r\nvar AsyncMemoryStorage = /** @class */ (function () {\r\n    function AsyncMemoryStorage(logger, storeName) {\r\n        this.inMemoryCache = new MemoryStorage();\r\n        this.indexedDBCache = new DatabaseStorage();\r\n        this.logger = logger;\r\n        this.storeName = storeName;\r\n    }\r\n    AsyncMemoryStorage.prototype.handleDatabaseAccessError = function (error) {\r\n        if (error instanceof BrowserAuthError && error.errorCode === BrowserAuthErrorMessage.databaseUnavailable.code) {\r\n            this.logger.error(\"Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.\");\r\n        }\r\n        else {\r\n            throw error;\r\n        }\r\n    };\r\n    /**\r\n     * Get the item matching the given key. Tries in-memory cache first, then in the asynchronous\r\n     * storage object if item isn't found in-memory.\r\n     * @param key\r\n     */\r\n    AsyncMemoryStorage.prototype.getItem = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var item, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        item = this.inMemoryCache.getItem(key);\r\n                        if (!!item) return [3 /*break*/, 4];\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        this.logger.verbose(\"Queried item not found in in-memory cache, now querying persistent storage.\");\r\n                        return [4 /*yield*/, this.indexedDBCache.getItem(key)];\r\n                    case 2: return [2 /*return*/, _a.sent()];\r\n                    case 3:\r\n                        e_1 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_1);\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [2 /*return*/, item];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Sets the item in the in-memory cache and then tries to set it in the asynchronous\r\n     * storage object with the given key.\r\n     * @param key\r\n     * @param value\r\n     */\r\n    AsyncMemoryStorage.prototype.setItem = function (key, value) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var e_2;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.inMemoryCache.setItem(key, value);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.indexedDBCache.setItem(key, value)];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        e_2 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_2);\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes the item matching the key from the in-memory cache, then tries to remove it from the asynchronous storage object.\r\n     * @param key\r\n     */\r\n    AsyncMemoryStorage.prototype.removeItem = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var e_3;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.inMemoryCache.removeItem(key);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.indexedDBCache.removeItem(key)];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        e_3 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_3);\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get all the keys from the in-memory cache as an iterable array of strings. If no keys are found, query the keys in the\r\n     * asynchronous storage object.\r\n     */\r\n    AsyncMemoryStorage.prototype.getKeys = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var cacheKeys, e_4;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        cacheKeys = this.inMemoryCache.getKeys();\r\n                        if (!(cacheKeys.length === 0)) return [3 /*break*/, 4];\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        this.logger.verbose(\"In-memory cache is empty, now querying persistent storage.\");\r\n                        return [4 /*yield*/, this.indexedDBCache.getKeys()];\r\n                    case 2: return [2 /*return*/, _a.sent()];\r\n                    case 3:\r\n                        e_4 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_4);\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [2 /*return*/, cacheKeys];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Returns true or false if the given key is present in the cache.\r\n     * @param key\r\n     */\r\n    AsyncMemoryStorage.prototype.containsKey = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var containsKey, e_5;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        containsKey = this.inMemoryCache.containsKey(key);\r\n                        if (!!containsKey) return [3 /*break*/, 4];\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        this.logger.verbose(\"Key not found in in-memory cache, now querying persistent storage.\");\r\n                        return [4 /*yield*/, this.indexedDBCache.containsKey(key)];\r\n                    case 2: return [2 /*return*/, _a.sent()];\r\n                    case 3:\r\n                        e_5 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_5);\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [2 /*return*/, containsKey];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Clears in-memory Map\r\n     */\r\n    AsyncMemoryStorage.prototype.clearInMemory = function () {\r\n        // InMemory cache is a Map instance, clear is straightforward\r\n        this.logger.verbose(\"Deleting in-memory keystore \" + this.storeName);\r\n        this.inMemoryCache.clear();\r\n        this.logger.verbose(\"In-memory keystore \" + this.storeName + \" deleted\");\r\n    };\r\n    /**\r\n     * Tries to delete the IndexedDB database\r\n     * @returns\r\n     */\r\n    AsyncMemoryStorage.prototype.clearPersistent = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var dbDeleted, e_6;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        _a.trys.push([0, 2, , 3]);\r\n                        this.logger.verbose(\"Deleting persistent keystore\");\r\n                        return [4 /*yield*/, this.indexedDBCache.deleteDatabase()];\r\n                    case 1:\r\n                        dbDeleted = _a.sent();\r\n                        if (dbDeleted) {\r\n                            this.logger.verbose(\"Persistent keystore deleted\");\r\n                        }\r\n                        return [2 /*return*/, dbDeleted];\r\n                    case 2:\r\n                        e_6 = _a.sent();\r\n                        this.handleDatabaseAccessError(e_6);\r\n                        return [2 /*return*/, false];\r\n                    case 3: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return AsyncMemoryStorage;\r\n}());\n\nexport { AsyncMemoryStorage };\n//# sourceMappingURL=AsyncMemoryStorage.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar CcsCredentialType;\r\n(function (CcsCredentialType) {\r\n    CcsCredentialType[\"HOME_ACCOUNT_ID\"] = \"home_account_id\";\r\n    CcsCredentialType[\"UPN\"] = \"UPN\";\r\n})(CcsCredentialType || (CcsCredentialType = {}));\n\nexport { CcsCredentialType };\n//# sourceMappingURL=CcsCredential.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { PerformanceEvents, JoseHeader } from '@azure/msal-common';\nimport { GuidGenerator } from './GuidGenerator.js';\nimport { Base64Encode } from '../encode/Base64Encode.js';\nimport { Base64Decode } from '../encode/Base64Decode.js';\nimport { PkceGenerator } from './PkceGenerator.js';\nimport { BrowserCrypto } from './BrowserCrypto.js';\nimport { BrowserStringUtils } from '../utils/BrowserStringUtils.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { CryptoKeyStore } from '../cache/CryptoKeyStore.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This class implements MSAL's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and\r\n * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).\r\n */\r\nvar CryptoOps = /** @class */ (function () {\r\n    function CryptoOps(logger, performanceClient, cryptoConfig) {\r\n        this.logger = logger;\r\n        // Browser crypto needs to be validated first before any other classes can be set.\r\n        this.browserCrypto = new BrowserCrypto(this.logger, cryptoConfig);\r\n        this.b64Encode = new Base64Encode();\r\n        this.b64Decode = new Base64Decode();\r\n        this.guidGenerator = new GuidGenerator(this.browserCrypto);\r\n        this.pkceGenerator = new PkceGenerator(this.browserCrypto);\r\n        this.cache = new CryptoKeyStore(this.logger);\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    /**\r\n     * Creates a new random GUID - used to populate state and nonce.\r\n     * @returns string (GUID)\r\n     */\r\n    CryptoOps.prototype.createNewGuid = function () {\r\n        return this.guidGenerator.generateGuid();\r\n    };\r\n    /**\r\n     * Encodes input string to base64.\r\n     * @param input\r\n     */\r\n    CryptoOps.prototype.base64Encode = function (input) {\r\n        return this.b64Encode.encode(input);\r\n    };\r\n    /**\r\n     * Decodes input string from base64.\r\n     * @param input\r\n     */\r\n    CryptoOps.prototype.base64Decode = function (input) {\r\n        return this.b64Decode.decode(input);\r\n    };\r\n    /**\r\n     * Generates PKCE codes used in Authorization Code Flow.\r\n     */\r\n    CryptoOps.prototype.generatePkceCodes = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.pkceGenerator.generateCodes()];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates a keypair, stores it and returns a thumbprint\r\n     * @param request\r\n     */\r\n    CryptoOps.prototype.getPublicKeyThumbprint = function (request) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var publicKeyThumbMeasurement, keyPair, publicKeyJwk, pubKeyThumprintObj, publicJwkString, publicJwkHash, privateKeyJwk, unextractablePrivateKey;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        publicKeyThumbMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.CryptoOptsGetPublicKeyThumbprint, request.correlationId);\r\n                        return [4 /*yield*/, this.browserCrypto.generateKeyPair(CryptoOps.EXTRACTABLE, CryptoOps.POP_KEY_USAGES)];\r\n                    case 1:\r\n                        keyPair = _b.sent();\r\n                        return [4 /*yield*/, this.browserCrypto.exportJwk(keyPair.publicKey)];\r\n                    case 2:\r\n                        publicKeyJwk = _b.sent();\r\n                        pubKeyThumprintObj = {\r\n                            e: publicKeyJwk.e,\r\n                            kty: publicKeyJwk.kty,\r\n                            n: publicKeyJwk.n\r\n                        };\r\n                        publicJwkString = BrowserStringUtils.getSortedObjectString(pubKeyThumprintObj);\r\n                        return [4 /*yield*/, this.hashString(publicJwkString)];\r\n                    case 3:\r\n                        publicJwkHash = _b.sent();\r\n                        return [4 /*yield*/, this.browserCrypto.exportJwk(keyPair.privateKey)];\r\n                    case 4:\r\n                        privateKeyJwk = _b.sent();\r\n                        return [4 /*yield*/, this.browserCrypto.importJwk(privateKeyJwk, false, [\"sign\"])];\r\n                    case 5:\r\n                        unextractablePrivateKey = _b.sent();\r\n                        // Store Keypair data in keystore\r\n                        return [4 /*yield*/, this.cache.asymmetricKeys.setItem(publicJwkHash, {\r\n                                privateKey: unextractablePrivateKey,\r\n                                publicKey: keyPair.publicKey,\r\n                                requestMethod: request.resourceRequestMethod,\r\n                                requestUri: request.resourceRequestUri\r\n                            })];\r\n                    case 6:\r\n                        // Store Keypair data in keystore\r\n                        _b.sent();\r\n                        if (publicKeyThumbMeasurement) {\r\n                            publicKeyThumbMeasurement.endMeasurement({\r\n                                success: true\r\n                            });\r\n                        }\r\n                        return [2 /*return*/, publicJwkHash];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes cryptographic keypair from key store matching the keyId passed in\r\n     * @param kid\r\n     */\r\n    CryptoOps.prototype.removeTokenBindingKey = function (kid) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var keyFound;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.cache.asymmetricKeys.removeItem(kid)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [4 /*yield*/, this.cache.asymmetricKeys.containsKey(kid)];\r\n                    case 2:\r\n                        keyFound = _a.sent();\r\n                        return [2 /*return*/, !keyFound];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes all cryptographic keys from IndexedDB storage\r\n     */\r\n    CryptoOps.prototype.clearKeystore = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.cache.clear()];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Signs the given object as a jwt payload with private key retrieved by given kid.\r\n     * @param payload\r\n     * @param kid\r\n     */\r\n    CryptoOps.prototype.signJwt = function (payload, kid, correlationId) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var signJwtMeasurement, cachedKeyPair, publicKeyJwk, publicKeyJwkString, encodedKeyIdThumbprint, shrHeader, encodedShrHeader, encodedPayload, tokenString, tokenBuffer, signatureBuffer, encodedSignature, signedJwt;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        signJwtMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.CryptoOptsSignJwt, correlationId);\r\n                        return [4 /*yield*/, this.cache.asymmetricKeys.getItem(kid)];\r\n                    case 1:\r\n                        cachedKeyPair = _b.sent();\r\n                        if (!cachedKeyPair) {\r\n                            throw BrowserAuthError.createSigningKeyNotFoundInStorageError(kid);\r\n                        }\r\n                        return [4 /*yield*/, this.browserCrypto.exportJwk(cachedKeyPair.publicKey)];\r\n                    case 2:\r\n                        publicKeyJwk = _b.sent();\r\n                        publicKeyJwkString = BrowserStringUtils.getSortedObjectString(publicKeyJwk);\r\n                        encodedKeyIdThumbprint = this.b64Encode.urlEncode(JSON.stringify({ kid: kid }));\r\n                        shrHeader = JoseHeader.getShrHeaderString({ kid: encodedKeyIdThumbprint, alg: publicKeyJwk.alg });\r\n                        encodedShrHeader = this.b64Encode.urlEncode(shrHeader);\r\n                        // Generate payload\r\n                        payload.cnf = {\r\n                            jwk: JSON.parse(publicKeyJwkString)\r\n                        };\r\n                        encodedPayload = this.b64Encode.urlEncode(JSON.stringify(payload));\r\n                        tokenString = encodedShrHeader + \".\" + encodedPayload;\r\n                        tokenBuffer = BrowserStringUtils.stringToArrayBuffer(tokenString);\r\n                        return [4 /*yield*/, this.browserCrypto.sign(cachedKeyPair.privateKey, tokenBuffer)];\r\n                    case 3:\r\n                        signatureBuffer = _b.sent();\r\n                        encodedSignature = this.b64Encode.urlEncodeArr(new Uint8Array(signatureBuffer));\r\n                        signedJwt = tokenString + \".\" + encodedSignature;\r\n                        if (signJwtMeasurement) {\r\n                            signJwtMeasurement.endMeasurement({\r\n                                success: true\r\n                            });\r\n                        }\r\n                        return [2 /*return*/, signedJwt];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Returns the SHA-256 hash of an input string\r\n     * @param plainText\r\n     */\r\n    CryptoOps.prototype.hashString = function (plainText) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var hashBuffer, hashBytes;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.browserCrypto.sha256Digest(plainText)];\r\n                    case 1:\r\n                        hashBuffer = _a.sent();\r\n                        hashBytes = new Uint8Array(hashBuffer);\r\n                        return [2 /*return*/, this.b64Encode.urlEncodeArr(hashBytes)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    CryptoOps.POP_KEY_USAGES = [\"sign\", \"verify\"];\r\n    CryptoOps.EXTRACTABLE = true;\r\n    return CryptoOps;\r\n}());\n\nexport { CryptoOps };\n//# sourceMappingURL=CryptoOps.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __assign } from '../../_virtual/_tslib.js';\nimport { IntFields, PerformanceEventStatus } from './PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar PerformanceClient = /** @class */ (function () {\r\n    /**\r\n     * Creates an instance of PerformanceClient,\r\n     * an abstract class containing core performance telemetry logic.\r\n     *\r\n     * @constructor\r\n     * @param {string} clientId Client ID of the application\r\n     * @param {string} authority Authority used by the application\r\n     * @param {Logger} logger Logger used by the application\r\n     * @param {string} libraryName Name of the library\r\n     * @param {string} libraryVersion Version of the library\r\n     */\r\n    function PerformanceClient(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) {\r\n        this.authority = authority;\r\n        this.libraryName = libraryName;\r\n        this.libraryVersion = libraryVersion;\r\n        this.applicationTelemetry = applicationTelemetry;\r\n        this.clientId = clientId;\r\n        this.logger = logger;\r\n        this.callbacks = new Map();\r\n        this.eventsByCorrelationId = new Map();\r\n        this.queueMeasurements = new Map();\r\n        this.preQueueTimeByCorrelationId = new Map();\r\n    }\r\n    /**\r\n     * Starts and returns an platform-specific implementation of IPerformanceMeasurement.\r\n     * Note: this function can be changed to abstract at the next major version bump.\r\n     *\r\n     * @param {string} measureName\r\n     * @param {string} correlationId\r\n     * @returns {IPerformanceMeasurement}\r\n     */\r\n    /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n    PerformanceClient.prototype.startPerformanceMeasurement = function (measureName, correlationId) {\r\n        return {};\r\n    };\r\n    /**\r\n     * Starts and returns an platform-specific implementation of IPerformanceMeasurement.\r\n     * Note: this incorrectly-named function will be removed at the next major version bump.\r\n     *\r\n     * @param {string} measureName\r\n     * @param {string} correlationId\r\n     * @returns {IPerformanceMeasurement}\r\n     */\r\n    /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n    PerformanceClient.prototype.startPerformanceMeasuremeant = function (measureName, correlationId) {\r\n        return {};\r\n    };\r\n    /**\r\n     * Get integral fields.\r\n     * Override to change the set.\r\n     */\r\n    PerformanceClient.prototype.getIntFields = function () {\r\n        return IntFields;\r\n    };\r\n    /**\r\n     * Gets map of pre-queue times by correlation Id\r\n     *\r\n     * @param {PerformanceEvents} eventName\r\n     * @param {string} correlationId\r\n     * @returns {number}\r\n     */\r\n    PerformanceClient.prototype.getPreQueueTime = function (eventName, correlationId) {\r\n        var preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId);\r\n        if (!preQueueEvent) {\r\n            this.logger.trace(\"PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: \" + correlationId + \", unable to add queue measurement\");\r\n            return;\r\n        }\r\n        else if (preQueueEvent.name !== eventName) {\r\n            this.logger.trace(\"PerformanceClient.getPreQueueTime: no pre-queue time found for \" + eventName + \", unable to add queue measurement\");\r\n            return;\r\n        }\r\n        return preQueueEvent.time;\r\n    };\r\n    /**\r\n     * Calculates the difference between current time and time when function was queued.\r\n     * Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.\r\n     *\r\n     * @param {number} preQueueTime\r\n     * @param {number} currentTime\r\n     * @returns {number}\r\n     */\r\n    PerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) {\r\n        if (preQueueTime < 1) {\r\n            this.logger.trace(\"PerformanceClient: preQueueTime should be a positive integer and not \" + preQueueTime);\r\n            return 0;\r\n        }\r\n        if (currentTime < 1) {\r\n            this.logger.trace(\"PerformanceClient: currentTime should be a positive integer and not \" + currentTime);\r\n            return 0;\r\n        }\r\n        if (currentTime < preQueueTime) {\r\n            this.logger.trace(\"PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved\");\r\n            return 0;\r\n        }\r\n        return currentTime - preQueueTime;\r\n    };\r\n    /**\r\n     * Adds queue measurement time to QueueMeasurements array for given correlation ID.\r\n     *\r\n     * @param {PerformanceEvents} eventName\r\n     * @param {?string} correlationId\r\n     * @param {?number} queueTime\r\n     * @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements\r\n     * @returns\r\n     */\r\n    PerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime, manuallyCompleted) {\r\n        if (!correlationId) {\r\n            this.logger.trace(\"PerformanceClient.addQueueMeasurement: correlationId not provided for \" + eventName + \", cannot add queue measurement\");\r\n            return;\r\n        }\r\n        if (queueTime === 0) {\r\n            // Possible for there to be no queue time after calculation\r\n            this.logger.trace(\"PerformanceClient.addQueueMeasurement: queue time provided for \" + eventName + \" is \" + queueTime);\r\n        }\r\n        else if (!queueTime) {\r\n            this.logger.trace(\"PerformanceClient.addQueueMeasurement: no queue time provided for \" + eventName);\r\n            return;\r\n        }\r\n        var queueMeasurement = { eventName: eventName, queueTime: queueTime, manuallyCompleted: manuallyCompleted };\r\n        // Adds to existing correlation Id if present in queueMeasurements\r\n        var existingMeasurements = this.queueMeasurements.get(correlationId);\r\n        if (existingMeasurements) {\r\n            existingMeasurements.push(queueMeasurement);\r\n            this.queueMeasurements.set(correlationId, existingMeasurements);\r\n        }\r\n        else {\r\n            // Sets new correlation Id if not present in queueMeasurements\r\n            this.logger.trace(\"PerformanceClient.addQueueMeasurement: adding correlationId \" + correlationId + \" to queue measurements\");\r\n            var measurementArray = [queueMeasurement];\r\n            this.queueMeasurements.set(correlationId, measurementArray);\r\n        }\r\n        // Delete processed pre-queue event.\r\n        this.preQueueTimeByCorrelationId.delete(correlationId);\r\n    };\r\n    /**\r\n     * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.\r\n     *\r\n     * @param {PerformanceEvents} measureName\r\n     * @param {?string} [correlationId]\r\n     * @returns {InProgressPerformanceEvent}\r\n     */\r\n    PerformanceClient.prototype.startMeasurement = function (measureName, correlationId) {\r\n        var _this = this;\r\n        var _a, _b;\r\n        // Generate a placeholder correlation if the request does not provide one\r\n        var eventCorrelationId = correlationId || this.generateId();\r\n        if (!correlationId) {\r\n            this.logger.info(\"PerformanceClient: No correlation id provided for \" + measureName + \", generating\", eventCorrelationId);\r\n        }\r\n        // Duplicate code to address spelling error will be removed at the next major version bump.\r\n        this.logger.trace(\"PerformanceClient: Performance measurement started for \" + measureName, eventCorrelationId);\r\n        var performanceMeasurement = this.startPerformanceMeasuremeant(measureName, eventCorrelationId);\r\n        performanceMeasurement.startMeasurement();\r\n        var inProgressEvent = {\r\n            eventId: this.generateId(),\r\n            status: PerformanceEventStatus.InProgress,\r\n            authority: this.authority,\r\n            libraryName: this.libraryName,\r\n            libraryVersion: this.libraryVersion,\r\n            clientId: this.clientId,\r\n            name: measureName,\r\n            startTimeMs: Date.now(),\r\n            correlationId: eventCorrelationId,\r\n            appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,\r\n            appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,\r\n        };\r\n        // Store in progress events so they can be discarded if not ended properly\r\n        this.cacheEventByCorrelationId(inProgressEvent);\r\n        // Return the event and functions the caller can use to properly end/flush the measurement\r\n        return {\r\n            endMeasurement: function (event) {\r\n                return _this.endMeasurement(__assign(__assign({}, inProgressEvent), event), performanceMeasurement);\r\n            },\r\n            discardMeasurement: function () {\r\n                return _this.discardMeasurements(inProgressEvent.correlationId);\r\n            },\r\n            addStaticFields: function (fields) {\r\n                return _this.addStaticFields(fields, inProgressEvent.correlationId);\r\n            },\r\n            increment: function (counters) {\r\n                return _this.increment(counters, inProgressEvent.correlationId);\r\n            },\r\n            measurement: performanceMeasurement,\r\n            event: inProgressEvent\r\n        };\r\n    };\r\n    /**\r\n     * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes,\r\n     * as consumers should instead use the function returned by startMeasurement.\r\n     * Adds a new field named as \"[event name]DurationMs\" for sub-measurements, completes and emits an event\r\n     * otherwise.\r\n     *\r\n     * @param {PerformanceEvent} event\r\n     * @param {IPerformanceMeasurement} measurement\r\n     * @returns {(PerformanceEvent | null)}\r\n     */\r\n    PerformanceClient.prototype.endMeasurement = function (event, measurement) {\r\n        var _this = this;\r\n        var _a, _b;\r\n        var rootEvent = this.eventsByCorrelationId.get(event.correlationId);\r\n        if (!rootEvent) {\r\n            this.logger.trace(\"PerformanceClient: Measurement not found for \" + event.eventId, event.correlationId);\r\n            return null;\r\n        }\r\n        var isRoot = event.eventId === rootEvent.eventId;\r\n        var queueInfo = {\r\n            totalQueueTime: 0,\r\n            totalQueueCount: 0,\r\n            manuallyCompletedCount: 0\r\n        };\r\n        if (isRoot) {\r\n            queueInfo = this.getQueueInfo(event.correlationId);\r\n            this.discardCache(rootEvent.correlationId);\r\n        }\r\n        else {\r\n            (_a = rootEvent.incompleteSubMeasurements) === null || _a === void 0 ? void 0 : _a.delete(event.eventId);\r\n        }\r\n        measurement === null || measurement === void 0 ? void 0 : measurement.endMeasurement();\r\n        var durationMs = measurement === null || measurement === void 0 ? void 0 : measurement.flushMeasurement();\r\n        // null indicates no measurement was taken (e.g. needed performance APIs not present)\r\n        if (!durationMs) {\r\n            this.logger.trace(\"PerformanceClient: Performance measurement not taken\", rootEvent.correlationId);\r\n            return null;\r\n        }\r\n        this.logger.trace(\"PerformanceClient: Performance measurement ended for \" + event.name + \": \" + durationMs + \" ms\", event.correlationId);\r\n        // Add sub-measurement attribute to root event.\r\n        if (!isRoot) {\r\n            rootEvent[event.name + \"DurationMs\"] = Math.floor(durationMs);\r\n            return __assign({}, rootEvent);\r\n        }\r\n        var finalEvent = __assign(__assign({}, rootEvent), event);\r\n        var incompleteSubsCount = 0;\r\n        // Incomplete sub-measurements are discarded. They are likely an instrumentation bug that should be fixed.\r\n        (_b = finalEvent.incompleteSubMeasurements) === null || _b === void 0 ? void 0 : _b.forEach(function (subMeasurement) {\r\n            _this.logger.trace(\"PerformanceClient: Incomplete submeasurement \" + subMeasurement.name + \" found for \" + event.name, finalEvent.correlationId);\r\n            incompleteSubsCount++;\r\n        });\r\n        finalEvent.incompleteSubMeasurements = undefined;\r\n        finalEvent = __assign(__assign({}, finalEvent), { durationMs: Math.round(durationMs), queuedTimeMs: queueInfo.totalQueueTime, queuedCount: queueInfo.totalQueueCount, queuedManuallyCompletedCount: queueInfo.manuallyCompletedCount, status: PerformanceEventStatus.Completed, incompleteSubsCount: incompleteSubsCount });\r\n        this.truncateIntegralFields(finalEvent, this.getIntFields());\r\n        this.emitEvents([finalEvent], event.correlationId);\r\n        return finalEvent;\r\n    };\r\n    /**\r\n     * Saves extra information to be emitted when the measurements are flushed\r\n     * @param fields\r\n     * @param correlationId\r\n     */\r\n    PerformanceClient.prototype.addStaticFields = function (fields, correlationId) {\r\n        this.logger.trace(\"PerformanceClient: Updating static fields\");\r\n        var event = this.eventsByCorrelationId.get(correlationId);\r\n        if (event) {\r\n            this.eventsByCorrelationId.set(correlationId, __assign(__assign({}, event), fields));\r\n        }\r\n        else {\r\n            this.logger.trace(\"PerformanceClient: Event not found for\", correlationId);\r\n        }\r\n    };\r\n    /**\r\n     * Increment counters to be emitted when the measurements are flushed\r\n     * @param counters {Counters}\r\n     * @param correlationId {string} correlation identifier\r\n     */\r\n    PerformanceClient.prototype.increment = function (counters, correlationId) {\r\n        this.logger.trace(\"PerformanceClient: Updating counters\");\r\n        var event = this.eventsByCorrelationId.get(correlationId);\r\n        if (event) {\r\n            for (var counter in counters) {\r\n                if (!event.hasOwnProperty(counter)) {\r\n                    event[counter] = 0;\r\n                }\r\n                event[counter] += counters[counter];\r\n            }\r\n        }\r\n        else {\r\n            this.logger.trace(\"PerformanceClient: Event not found for\", correlationId);\r\n        }\r\n    };\r\n    /**\r\n     * Upserts event into event cache.\r\n     * First key is the correlation id, second key is the event id.\r\n     * Allows for events to be grouped by correlation id,\r\n     * and to easily allow for properties on them to be updated.\r\n     *\r\n     * @private\r\n     * @param {PerformanceEvent} event\r\n     */\r\n    PerformanceClient.prototype.cacheEventByCorrelationId = function (event) {\r\n        var rootEvent = this.eventsByCorrelationId.get(event.correlationId);\r\n        if (rootEvent) {\r\n            this.logger.trace(\"PerformanceClient: Performance measurement for \" + event.name + \" added/updated\", event.correlationId);\r\n            rootEvent.incompleteSubMeasurements = rootEvent.incompleteSubMeasurements || new Map();\r\n            rootEvent.incompleteSubMeasurements.set(event.eventId, { name: event.name, startTimeMs: event.startTimeMs });\r\n        }\r\n        else {\r\n            this.logger.trace(\"PerformanceClient: Performance measurement for \" + event.name + \" started\", event.correlationId);\r\n            this.eventsByCorrelationId.set(event.correlationId, __assign({}, event));\r\n        }\r\n    };\r\n    PerformanceClient.prototype.getQueueInfo = function (correlationId) {\r\n        var queueMeasurementForCorrelationId = this.queueMeasurements.get(correlationId);\r\n        if (!queueMeasurementForCorrelationId) {\r\n            this.logger.trace(\"PerformanceClient: no queue measurements found for for correlationId: \" + correlationId);\r\n        }\r\n        var totalQueueTime = 0;\r\n        var totalQueueCount = 0;\r\n        var manuallyCompletedCount = 0;\r\n        queueMeasurementForCorrelationId === null || queueMeasurementForCorrelationId === void 0 ? void 0 : queueMeasurementForCorrelationId.forEach(function (measurement) {\r\n            totalQueueTime += measurement.queueTime;\r\n            totalQueueCount++;\r\n            manuallyCompletedCount += measurement.manuallyCompleted ? 1 : 0;\r\n        });\r\n        return {\r\n            totalQueueTime: totalQueueTime,\r\n            totalQueueCount: totalQueueCount,\r\n            manuallyCompletedCount: manuallyCompletedCount\r\n        };\r\n    };\r\n    /**\r\n     * Removes measurements for a given correlation id.\r\n     *\r\n     * @param {string} correlationId\r\n     */\r\n    PerformanceClient.prototype.discardMeasurements = function (correlationId) {\r\n        this.logger.trace(\"PerformanceClient: Performance measurements discarded\", correlationId);\r\n        this.eventsByCorrelationId.delete(correlationId);\r\n    };\r\n    /**\r\n     * Removes cache for a given correlation id.\r\n     *\r\n     * @param {string} correlationId correlation identifier\r\n     */\r\n    PerformanceClient.prototype.discardCache = function (correlationId) {\r\n        this.discardMeasurements(correlationId);\r\n        this.logger.trace(\"PerformanceClient: QueueMeasurements discarded\", correlationId);\r\n        this.queueMeasurements.delete(correlationId);\r\n        this.logger.trace(\"PerformanceClient: Pre-queue times discarded\", correlationId);\r\n        this.preQueueTimeByCorrelationId.delete(correlationId);\r\n    };\r\n    /**\r\n     * Registers a callback function to receive performance events.\r\n     *\r\n     * @param {PerformanceCallbackFunction} callback\r\n     * @returns {string}\r\n     */\r\n    PerformanceClient.prototype.addPerformanceCallback = function (callback) {\r\n        var callbackId = this.generateId();\r\n        this.callbacks.set(callbackId, callback);\r\n        this.logger.verbose(\"PerformanceClient: Performance callback registered with id: \" + callbackId);\r\n        return callbackId;\r\n    };\r\n    /**\r\n     * Removes a callback registered with addPerformanceCallback.\r\n     *\r\n     * @param {string} callbackId\r\n     * @returns {boolean}\r\n     */\r\n    PerformanceClient.prototype.removePerformanceCallback = function (callbackId) {\r\n        var result = this.callbacks.delete(callbackId);\r\n        if (result) {\r\n            this.logger.verbose(\"PerformanceClient: Performance callback \" + callbackId + \" removed.\");\r\n        }\r\n        else {\r\n            this.logger.verbose(\"PerformanceClient: Performance callback \" + callbackId + \" not removed.\");\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * Emits events to all registered callbacks.\r\n     *\r\n     * @param {PerformanceEvent[]} events\r\n     * @param {?string} [correlationId]\r\n     */\r\n    PerformanceClient.prototype.emitEvents = function (events, correlationId) {\r\n        var _this = this;\r\n        this.logger.verbose(\"PerformanceClient: Emitting performance events\", correlationId);\r\n        this.callbacks.forEach(function (callback, callbackId) {\r\n            _this.logger.trace(\"PerformanceClient: Emitting event to callback \" + callbackId, correlationId);\r\n            callback.apply(null, [events]);\r\n        });\r\n    };\r\n    /**\r\n     * Enforce truncation of integral fields in performance event.\r\n     * @param {PerformanceEvent} event performance event to update.\r\n     * @param {Set<string>} intFields integral fields.\r\n     */\r\n    PerformanceClient.prototype.truncateIntegralFields = function (event, intFields) {\r\n        intFields.forEach(function (key) {\r\n            if (key in event && typeof event[key] === \"number\") {\r\n                event[key] = Math.floor(event[key]);\r\n            }\r\n        });\r\n    };\r\n    return PerformanceClient;\r\n}());\n\nexport { PerformanceClient };\n//# sourceMappingURL=PerformanceClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../../_virtual/_tslib.js';\nimport { PerformanceClient } from './PerformanceClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar StubPerformanceMeasurement = /** @class */ (function () {\r\n    function StubPerformanceMeasurement() {\r\n    }\r\n    /* eslint-disable-next-line @typescript-eslint/no-empty-function */\r\n    StubPerformanceMeasurement.prototype.startMeasurement = function () { };\r\n    /* eslint-disable-next-line @typescript-eslint/no-empty-function */\r\n    StubPerformanceMeasurement.prototype.endMeasurement = function () { };\r\n    StubPerformanceMeasurement.prototype.flushMeasurement = function () {\r\n        return null;\r\n    };\r\n    return StubPerformanceMeasurement;\r\n}());\r\nvar StubPerformanceClient = /** @class */ (function (_super) {\r\n    __extends(StubPerformanceClient, _super);\r\n    function StubPerformanceClient() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    StubPerformanceClient.prototype.generateId = function () {\r\n        return \"callback-id\";\r\n    };\r\n    StubPerformanceClient.prototype.startPerformanceMeasuremeant = function () {\r\n        return new StubPerformanceMeasurement();\r\n    };\r\n    StubPerformanceClient.prototype.startPerformanceMeasurement = function () {\r\n        return new StubPerformanceMeasurement();\r\n    };\r\n    /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n    StubPerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) {\r\n        return 0;\r\n    };\r\n    /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n    StubPerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime) {\r\n        return;\r\n    };\r\n    /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n    StubPerformanceClient.prototype.setPreQueueTime = function (eventName, correlationId) {\r\n        return;\r\n    };\r\n    return StubPerformanceClient;\r\n}(PerformanceClient));\n\nexport { StubPerformanceClient, StubPerformanceMeasurement };\n//# sourceMappingURL=StubPerformanceClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { AuthError } from '../error/AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar DEFAULT_CRYPTO_IMPLEMENTATION = {\r\n    createNewGuid: function () {\r\n        var notImplErr = \"Crypto interface - createNewGuid() has not been implemented\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    },\r\n    base64Decode: function () {\r\n        var notImplErr = \"Crypto interface - base64Decode() has not been implemented\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    },\r\n    base64Encode: function () {\r\n        var notImplErr = \"Crypto interface - base64Encode() has not been implemented\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    },\r\n    generatePkceCodes: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - generatePkceCodes() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    getPublicKeyThumbprint: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - getPublicKeyThumbprint() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    removeTokenBindingKey: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - removeTokenBindingKey() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    clearKeystore: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - clearKeystore() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    signJwt: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - signJwt() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    hashString: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Crypto interface - hashString() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    }\r\n};\n\nexport { DEFAULT_CRYPTO_IMPLEMENTATION };\n//# sourceMappingURL=ICrypto.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { CredentialType, CacheType, Separators, Constants, AuthenticationScheme } from '../../utils/Constants.js';\nimport { ClientAuthError } from '../../error/ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Base type for credentials to be stored in the cache: eg: ACCESS_TOKEN, ID_TOKEN etc\r\n *\r\n * Key:Value Schema:\r\n *\r\n * Key: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<requestedClaims*>-<scheme*>\r\n *\r\n * Value Schema:\r\n * {\r\n *      homeAccountId: home account identifier for the auth scheme,\r\n *      environment: entity that issued the token, represented as a full host\r\n *      credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other\r\n *      clientId: client ID of the application\r\n *      secret: Actual credential as a string\r\n *      familyId: Family ID identifier, usually only used for refresh tokens\r\n *      realm: Full tenant or organizational identifier that the account belongs to\r\n *      target: Permissions that are included in the token, or for refresh tokens, the resource identifier.\r\n *      tokenType: Matches the authentication scheme for which the token was issued (i.e. Bearer or pop)\r\n *      requestedClaimsHash: Matches the SHA 256 hash of the claims object included in the token request\r\n *      userAssertionHash: Matches the SHA 256 hash of the obo_assertion for the OBO flow\r\n * }\r\n */\r\nvar CredentialEntity = /** @class */ (function () {\r\n    function CredentialEntity() {\r\n    }\r\n    /**\r\n     * Generate Account Id key component as per the schema: <home_account_id>-<environment>\r\n     */\r\n    CredentialEntity.prototype.generateAccountId = function () {\r\n        return CredentialEntity.generateAccountIdForCacheKey(this.homeAccountId, this.environment);\r\n    };\r\n    /**\r\n     * Generate Credential Id key component as per the schema: <credential_type>-<client_id>-<realm>\r\n     */\r\n    CredentialEntity.prototype.generateCredentialId = function () {\r\n        return CredentialEntity.generateCredentialIdForCacheKey(this.credentialType, this.clientId, this.realm, this.familyId);\r\n    };\r\n    /**\r\n     * Generate target key component as per schema: <target>\r\n     */\r\n    CredentialEntity.prototype.generateTarget = function () {\r\n        return CredentialEntity.generateTargetForCacheKey(this.target);\r\n    };\r\n    /**\r\n     * generates credential key\r\n     */\r\n    CredentialEntity.prototype.generateCredentialKey = function () {\r\n        return CredentialEntity.generateCredentialCacheKey(this.homeAccountId, this.environment, this.credentialType, this.clientId, this.realm, this.target, this.familyId, this.tokenType, this.requestedClaimsHash);\r\n    };\r\n    /**\r\n     * returns the type of the cache (in this case credential)\r\n     */\r\n    CredentialEntity.prototype.generateType = function () {\r\n        switch (this.credentialType) {\r\n            case CredentialType.ID_TOKEN:\r\n                return CacheType.ID_TOKEN;\r\n            case CredentialType.ACCESS_TOKEN:\r\n            case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:\r\n                return CacheType.ACCESS_TOKEN;\r\n            case CredentialType.REFRESH_TOKEN:\r\n                return CacheType.REFRESH_TOKEN;\r\n            default: {\r\n                throw ClientAuthError.createUnexpectedCredentialTypeError();\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * generates credential key\r\n     * <home_account_id*>-\\<environment>-<credential_type>-<client_id>-<realm\\*>-<target\\*>-<scheme\\*>\r\n     */\r\n    CredentialEntity.generateCredentialCacheKey = function (homeAccountId, environment, credentialType, clientId, realm, target, familyId, tokenType, requestedClaimsHash) {\r\n        var credentialKey = [\r\n            this.generateAccountIdForCacheKey(homeAccountId, environment),\r\n            this.generateCredentialIdForCacheKey(credentialType, clientId, realm, familyId),\r\n            this.generateTargetForCacheKey(target),\r\n            this.generateClaimsHashForCacheKey(requestedClaimsHash),\r\n            this.generateSchemeForCacheKey(tokenType)\r\n        ];\r\n        return credentialKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * generates Account Id for keys\r\n     * @param homeAccountId\r\n     * @param environment\r\n     */\r\n    CredentialEntity.generateAccountIdForCacheKey = function (homeAccountId, environment) {\r\n        var accountId = [homeAccountId, environment];\r\n        return accountId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * Generates Credential Id for keys\r\n     * @param credentialType\r\n     * @param realm\r\n     * @param clientId\r\n     * @param familyId\r\n     */\r\n    CredentialEntity.generateCredentialIdForCacheKey = function (credentialType, clientId, realm, familyId) {\r\n        var clientOrFamilyId = credentialType === CredentialType.REFRESH_TOKEN\r\n            ? familyId || clientId\r\n            : clientId;\r\n        var credentialId = [\r\n            credentialType,\r\n            clientOrFamilyId,\r\n            realm || Constants.EMPTY_STRING,\r\n        ];\r\n        return credentialId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * Generate target key component as per schema: <target>\r\n     */\r\n    CredentialEntity.generateTargetForCacheKey = function (scopes) {\r\n        return (scopes || Constants.EMPTY_STRING).toLowerCase();\r\n    };\r\n    /**\r\n     * Generate requested claims key component as per schema: <requestedClaims>\r\n     */\r\n    CredentialEntity.generateClaimsHashForCacheKey = function (requestedClaimsHash) {\r\n        return (requestedClaimsHash || Constants.EMPTY_STRING).toLowerCase();\r\n    };\r\n    /**\r\n     * Generate scheme key componenet as per schema: <scheme>\r\n     */\r\n    CredentialEntity.generateSchemeForCacheKey = function (tokenType) {\r\n        /*\r\n         * PoP Tokens and SSH certs include scheme in cache key\r\n         * Cast to lowercase to handle \"bearer\" from ADFS\r\n         */\r\n        return (tokenType && tokenType.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) ? tokenType.toLowerCase() : Constants.EMPTY_STRING;\r\n    };\r\n    return CredentialEntity;\r\n}());\n\nexport { CredentialEntity };\n//# sourceMappingURL=CredentialEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../../_virtual/_tslib.js';\nimport { CredentialEntity } from './CredentialEntity.js';\nimport { CredentialType } from '../../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * ID_TOKEN Cache\r\n *\r\n * Key:Value Schema:\r\n *\r\n * Key Example: uid.utid-login.microsoftonline.com-idtoken-clientId-contoso.com-\r\n *\r\n * Value Schema:\r\n * {\r\n *      homeAccountId: home account identifier for the auth scheme,\r\n *      environment: entity that issued the token, represented as a full host\r\n *      credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other\r\n *      clientId: client ID of the application\r\n *      secret: Actual credential as a string\r\n *      realm: Full tenant or organizational identifier that the account belongs to\r\n * }\r\n */\r\nvar IdTokenEntity = /** @class */ (function (_super) {\r\n    __extends(IdTokenEntity, _super);\r\n    function IdTokenEntity() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Create IdTokenEntity\r\n     * @param homeAccountId\r\n     * @param authenticationResult\r\n     * @param clientId\r\n     * @param authority\r\n     */\r\n    IdTokenEntity.createIdTokenEntity = function (homeAccountId, environment, idToken, clientId, tenantId) {\r\n        var idTokenEntity = new IdTokenEntity();\r\n        idTokenEntity.credentialType = CredentialType.ID_TOKEN;\r\n        idTokenEntity.homeAccountId = homeAccountId;\r\n        idTokenEntity.environment = environment;\r\n        idTokenEntity.clientId = clientId;\r\n        idTokenEntity.secret = idToken;\r\n        idTokenEntity.realm = tenantId;\r\n        return idTokenEntity;\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    IdTokenEntity.isIdTokenEntity = function (entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (entity.hasOwnProperty(\"homeAccountId\") &&\r\n            entity.hasOwnProperty(\"environment\") &&\r\n            entity.hasOwnProperty(\"credentialType\") &&\r\n            entity.hasOwnProperty(\"realm\") &&\r\n            entity.hasOwnProperty(\"clientId\") &&\r\n            entity.hasOwnProperty(\"secret\") &&\r\n            entity[\"credentialType\"] === CredentialType.ID_TOKEN);\r\n    };\r\n    return IdTokenEntity;\r\n}(CredentialEntity));\n\nexport { IdTokenEntity };\n//# sourceMappingURL=IdTokenEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { ClientAuthError } from './ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * ClientConfigurationErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar ClientConfigurationErrorMessage = {\r\n    redirectUriNotSet: {\r\n        code: \"redirect_uri_empty\",\r\n        desc: \"A redirect URI is required for all calls, and none has been set.\"\r\n    },\r\n    postLogoutUriNotSet: {\r\n        code: \"post_logout_uri_empty\",\r\n        desc: \"A post logout redirect has not been set.\"\r\n    },\r\n    claimsRequestParsingError: {\r\n        code: \"claims_request_parsing_error\",\r\n        desc: \"Could not parse the given claims request object.\"\r\n    },\r\n    authorityUriInsecure: {\r\n        code: \"authority_uri_insecure\",\r\n        desc: \"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options\"\r\n    },\r\n    urlParseError: {\r\n        code: \"url_parse_error\",\r\n        desc: \"URL could not be parsed into appropriate segments.\"\r\n    },\r\n    urlEmptyError: {\r\n        code: \"empty_url_error\",\r\n        desc: \"URL was empty or null.\"\r\n    },\r\n    emptyScopesError: {\r\n        code: \"empty_input_scopes_error\",\r\n        desc: \"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.\"\r\n    },\r\n    nonArrayScopesError: {\r\n        code: \"nonarray_input_scopes_error\",\r\n        desc: \"Scopes cannot be passed as non-array.\"\r\n    },\r\n    clientIdSingleScopeError: {\r\n        code: \"clientid_input_scopes_error\",\r\n        desc: \"Client ID can only be provided as a single scope.\"\r\n    },\r\n    invalidPrompt: {\r\n        code: \"invalid_prompt_value\",\r\n        desc: \"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest\",\r\n    },\r\n    invalidClaimsRequest: {\r\n        code: \"invalid_claims\",\r\n        desc: \"Given claims parameter must be a stringified JSON object.\"\r\n    },\r\n    tokenRequestEmptyError: {\r\n        code: \"token_request_empty\",\r\n        desc: \"Token request was empty and not found in cache.\"\r\n    },\r\n    logoutRequestEmptyError: {\r\n        code: \"logout_request_empty\",\r\n        desc: \"The logout request was null or undefined.\"\r\n    },\r\n    invalidCodeChallengeMethod: {\r\n        code: \"invalid_code_challenge_method\",\r\n        desc: \"code_challenge_method passed is invalid. Valid values are \\\"plain\\\" and \\\"S256\\\".\"\r\n    },\r\n    invalidCodeChallengeParams: {\r\n        code: \"pkce_params_missing\",\r\n        desc: \"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request\"\r\n    },\r\n    invalidCloudDiscoveryMetadata: {\r\n        code: \"invalid_cloud_discovery_metadata\",\r\n        desc: \"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields\"\r\n    },\r\n    invalidAuthorityMetadata: {\r\n        code: \"invalid_authority_metadata\",\r\n        desc: \"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.\"\r\n    },\r\n    untrustedAuthority: {\r\n        code: \"untrusted_authority\",\r\n        desc: \"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.\"\r\n    },\r\n    invalidAzureCloudInstance: {\r\n        code: \"invalid_azure_cloud_instance\",\r\n        desc: \"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values\"\r\n    },\r\n    missingSshJwk: {\r\n        code: \"missing_ssh_jwk\",\r\n        desc: \"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.\"\r\n    },\r\n    missingSshKid: {\r\n        code: \"missing_ssh_kid\",\r\n        desc: \"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.\"\r\n    },\r\n    missingNonceAuthenticationHeader: {\r\n        code: \"missing_nonce_authentication_header\",\r\n        desc: \"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.\"\r\n    },\r\n    invalidAuthenticationHeader: {\r\n        code: \"invalid_authentication_header\",\r\n        desc: \"Invalid authentication header provided\"\r\n    },\r\n    authorityMismatch: {\r\n        code: \"authority_mismatch\",\r\n        desc: \"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority.\"\r\n    }\r\n};\r\n/**\r\n * Error thrown when there is an error in configuration of the MSAL.js library.\r\n */\r\nvar ClientConfigurationError = /** @class */ (function (_super) {\r\n    __extends(ClientConfigurationError, _super);\r\n    function ClientConfigurationError(errorCode, errorMessage) {\r\n        var _this = _super.call(this, errorCode, errorMessage) || this;\r\n        _this.name = \"ClientConfigurationError\";\r\n        Object.setPrototypeOf(_this, ClientConfigurationError.prototype);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates an error thrown when the redirect uri is empty (not set by caller)\r\n     */\r\n    ClientConfigurationError.createRedirectUriEmptyError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.redirectUriNotSet.code, ClientConfigurationErrorMessage.redirectUriNotSet.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the post-logout redirect uri is empty (not set by caller)\r\n     */\r\n    ClientConfigurationError.createPostLogoutRedirectUriEmptyError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.postLogoutUriNotSet.code, ClientConfigurationErrorMessage.postLogoutUriNotSet.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the claims request could not be successfully parsed\r\n     */\r\n    ClientConfigurationError.createClaimsRequestParsingError = function (claimsRequestParseError) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.claimsRequestParsingError.code, ClientConfigurationErrorMessage.claimsRequestParsingError.desc + \" Given value: \" + claimsRequestParseError);\r\n    };\r\n    /**\r\n     * Creates an error thrown if authority uri is given an insecure protocol.\r\n     * @param urlString\r\n     */\r\n    ClientConfigurationError.createInsecureAuthorityUriError = function (urlString) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.authorityUriInsecure.code, ClientConfigurationErrorMessage.authorityUriInsecure.desc + \" Given URI: \" + urlString);\r\n    };\r\n    /**\r\n     * Creates an error thrown if URL string does not parse into separate segments.\r\n     * @param urlString\r\n     */\r\n    ClientConfigurationError.createUrlParseError = function (urlParseError) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.urlParseError.code, ClientConfigurationErrorMessage.urlParseError.desc + \" Given Error: \" + urlParseError);\r\n    };\r\n    /**\r\n     * Creates an error thrown if URL string is empty or null.\r\n     * @param urlString\r\n     */\r\n    ClientConfigurationError.createUrlEmptyError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.urlEmptyError.code, ClientConfigurationErrorMessage.urlEmptyError.desc);\r\n    };\r\n    /**\r\n     * Error thrown when scopes are empty.\r\n     * @param scopesValue\r\n     */\r\n    ClientConfigurationError.createEmptyScopesArrayError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.emptyScopesError.code, \"\" + ClientConfigurationErrorMessage.emptyScopesError.desc);\r\n    };\r\n    /**\r\n     * Error thrown when client id scope is not provided as single scope.\r\n     * @param inputScopes\r\n     */\r\n    ClientConfigurationError.createClientIdSingleScopeError = function (inputScopes) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.clientIdSingleScopeError.code, ClientConfigurationErrorMessage.clientIdSingleScopeError.desc + \" Given Scopes: \" + inputScopes);\r\n    };\r\n    /**\r\n     * Error thrown when prompt is not an allowed type.\r\n     * @param promptValue\r\n     */\r\n    ClientConfigurationError.createInvalidPromptError = function (promptValue) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidPrompt.code, ClientConfigurationErrorMessage.invalidPrompt.desc + \" Given value: \" + promptValue);\r\n    };\r\n    /**\r\n     * Creates error thrown when claims parameter is not a stringified JSON object\r\n     */\r\n    ClientConfigurationError.createInvalidClaimsRequestError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidClaimsRequest.code, ClientConfigurationErrorMessage.invalidClaimsRequest.desc);\r\n    };\r\n    /**\r\n     * Throws error when token request is empty and nothing cached in storage.\r\n     */\r\n    ClientConfigurationError.createEmptyLogoutRequestError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.logoutRequestEmptyError.code, ClientConfigurationErrorMessage.logoutRequestEmptyError.desc);\r\n    };\r\n    /**\r\n     * Throws error when token request is empty and nothing cached in storage.\r\n     */\r\n    ClientConfigurationError.createEmptyTokenRequestError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.tokenRequestEmptyError.code, ClientConfigurationErrorMessage.tokenRequestEmptyError.desc);\r\n    };\r\n    /**\r\n     * Throws error when an invalid code_challenge_method is passed by the user\r\n     */\r\n    ClientConfigurationError.createInvalidCodeChallengeMethodError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCodeChallengeMethod.code, ClientConfigurationErrorMessage.invalidCodeChallengeMethod.desc);\r\n    };\r\n    /**\r\n     * Throws error when both params: code_challenge and code_challenge_method are not passed together\r\n     */\r\n    ClientConfigurationError.createInvalidCodeChallengeParamsError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCodeChallengeParams.code, ClientConfigurationErrorMessage.invalidCodeChallengeParams.desc);\r\n    };\r\n    /**\r\n     * Throws an error when the user passes invalid cloudDiscoveryMetadata\r\n     */\r\n    ClientConfigurationError.createInvalidCloudDiscoveryMetadataError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidCloudDiscoveryMetadata.code, ClientConfigurationErrorMessage.invalidCloudDiscoveryMetadata.desc);\r\n    };\r\n    /**\r\n     * Throws an error when the user passes invalid cloudDiscoveryMetadata\r\n     */\r\n    ClientConfigurationError.createInvalidAuthorityMetadataError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAuthorityMetadata.code, ClientConfigurationErrorMessage.invalidAuthorityMetadata.desc);\r\n    };\r\n    /**\r\n     * Throws error when provided authority is not a member of the trusted host list\r\n     */\r\n    ClientConfigurationError.createUntrustedAuthorityError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.untrustedAuthority.code, ClientConfigurationErrorMessage.untrustedAuthority.desc);\r\n    };\r\n    /**\r\n     * Throws error when the AzureCloudInstance is set to an invalid value\r\n     */\r\n    ClientConfigurationError.createInvalidAzureCloudInstanceError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAzureCloudInstance.code, ClientConfigurationErrorMessage.invalidAzureCloudInstance.desc);\r\n    };\r\n    /**\r\n     * Throws an error when the authentication scheme is set to SSH but the SSH public key is omitted from the request\r\n     */\r\n    ClientConfigurationError.createMissingSshJwkError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.missingSshJwk.code, ClientConfigurationErrorMessage.missingSshJwk.desc);\r\n    };\r\n    /**\r\n     * Throws an error when the authentication scheme is set to SSH but the SSH public key ID is omitted from the request\r\n     */\r\n    ClientConfigurationError.createMissingSshKidError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.missingSshKid.code, ClientConfigurationErrorMessage.missingSshKid.desc);\r\n    };\r\n    /**\r\n     * Throws error when provided headers don't contain a header that a server nonce can be extracted from\r\n     */\r\n    ClientConfigurationError.createMissingNonceAuthenticationHeadersError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.missingNonceAuthenticationHeader.code, ClientConfigurationErrorMessage.missingNonceAuthenticationHeader.desc);\r\n    };\r\n    /**\r\n     * Throws error when a provided header is invalid in any way\r\n     */\r\n    ClientConfigurationError.createInvalidAuthenticationHeaderError = function (invalidHeaderName, details) {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAuthenticationHeader.code, ClientConfigurationErrorMessage.invalidAuthenticationHeader.desc + \". Invalid header: \" + invalidHeaderName + \". Details: \" + details);\r\n    };\r\n    /**\r\n     * Create an error when the authority provided in request does not match authority provided in account or MSAL.js configuration.\r\n     */\r\n    ClientConfigurationError.createAuthorityMismatchError = function () {\r\n        return new ClientConfigurationError(ClientConfigurationErrorMessage.authorityMismatch.code, ClientConfigurationErrorMessage.authorityMismatch.desc);\r\n    };\r\n    return ClientConfigurationError;\r\n}(ClientAuthError));\n\nexport { ClientConfigurationError, ClientConfigurationErrorMessage };\n//# sourceMappingURL=ClientConfigurationError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __spreadArrays } from '../_virtual/_tslib.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { Constants, OIDC_SCOPES } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes\r\n * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions\r\n * to ensure uniqueness of strings.\r\n */\r\nvar ScopeSet = /** @class */ (function () {\r\n    function ScopeSet(inputScopes) {\r\n        var _this = this;\r\n        // Filter empty string and null/undefined array items\r\n        var scopeArr = inputScopes ? StringUtils.trimArrayEntries(__spreadArrays(inputScopes)) : [];\r\n        var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];\r\n        // Validate and filter scopes (validate function throws if validation fails)\r\n        this.validateInputScopes(filteredInput);\r\n        this.scopes = new Set(); // Iterator in constructor not supported by IE11\r\n        filteredInput.forEach(function (scope) { return _this.scopes.add(scope); });\r\n    }\r\n    /**\r\n     * Factory method to create ScopeSet from space-delimited string\r\n     * @param inputScopeString\r\n     * @param appClientId\r\n     * @param scopesRequired\r\n     */\r\n    ScopeSet.fromString = function (inputScopeString) {\r\n        var scopeString = inputScopeString || Constants.EMPTY_STRING;\r\n        var inputScopes = scopeString.split(\" \");\r\n        return new ScopeSet(inputScopes);\r\n    };\r\n    /**\r\n     * Creates the set of scopes to search for in cache lookups\r\n     * @param inputScopeString\r\n     * @returns\r\n     */\r\n    ScopeSet.createSearchScopes = function (inputScopeString) {\r\n        var scopeSet = new ScopeSet(inputScopeString);\r\n        if (!scopeSet.containsOnlyOIDCScopes()) {\r\n            scopeSet.removeOIDCScopes();\r\n        }\r\n        else {\r\n            scopeSet.removeScope(Constants.OFFLINE_ACCESS_SCOPE);\r\n        }\r\n        return scopeSet;\r\n    };\r\n    /**\r\n     * Used to validate the scopes input parameter requested  by the developer.\r\n     * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.\r\n     * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not\r\n     */\r\n    ScopeSet.prototype.validateInputScopes = function (inputScopes) {\r\n        // Check if scopes are required but not given or is an empty array\r\n        if (!inputScopes || inputScopes.length < 1) {\r\n            throw ClientConfigurationError.createEmptyScopesArrayError();\r\n        }\r\n    };\r\n    /**\r\n     * Check if a given scope is present in this set of scopes.\r\n     * @param scope\r\n     */\r\n    ScopeSet.prototype.containsScope = function (scope) {\r\n        var lowerCaseScopes = this.printScopesLowerCase().split(\" \");\r\n        var lowerCaseScopesSet = new ScopeSet(lowerCaseScopes);\r\n        // compare lowercase scopes\r\n        return !StringUtils.isEmpty(scope) ? lowerCaseScopesSet.scopes.has(scope.toLowerCase()) : false;\r\n    };\r\n    /**\r\n     * Check if a set of scopes is present in this set of scopes.\r\n     * @param scopeSet\r\n     */\r\n    ScopeSet.prototype.containsScopeSet = function (scopeSet) {\r\n        var _this = this;\r\n        if (!scopeSet || scopeSet.scopes.size <= 0) {\r\n            return false;\r\n        }\r\n        return (this.scopes.size >= scopeSet.scopes.size && scopeSet.asArray().every(function (scope) { return _this.containsScope(scope); }));\r\n    };\r\n    /**\r\n     * Check if set of scopes contains only the defaults\r\n     */\r\n    ScopeSet.prototype.containsOnlyOIDCScopes = function () {\r\n        var _this = this;\r\n        var defaultScopeCount = 0;\r\n        OIDC_SCOPES.forEach(function (defaultScope) {\r\n            if (_this.containsScope(defaultScope)) {\r\n                defaultScopeCount += 1;\r\n            }\r\n        });\r\n        return this.scopes.size === defaultScopeCount;\r\n    };\r\n    /**\r\n     * Appends single scope if passed\r\n     * @param newScope\r\n     */\r\n    ScopeSet.prototype.appendScope = function (newScope) {\r\n        if (!StringUtils.isEmpty(newScope)) {\r\n            this.scopes.add(newScope.trim());\r\n        }\r\n    };\r\n    /**\r\n     * Appends multiple scopes if passed\r\n     * @param newScopes\r\n     */\r\n    ScopeSet.prototype.appendScopes = function (newScopes) {\r\n        var _this = this;\r\n        try {\r\n            newScopes.forEach(function (newScope) { return _this.appendScope(newScope); });\r\n        }\r\n        catch (e) {\r\n            throw ClientAuthError.createAppendScopeSetError(e);\r\n        }\r\n    };\r\n    /**\r\n     * Removes element from set of scopes.\r\n     * @param scope\r\n     */\r\n    ScopeSet.prototype.removeScope = function (scope) {\r\n        if (StringUtils.isEmpty(scope)) {\r\n            throw ClientAuthError.createRemoveEmptyScopeFromSetError(scope);\r\n        }\r\n        this.scopes.delete(scope.trim());\r\n    };\r\n    /**\r\n     * Removes default scopes from set of scopes\r\n     * Primarily used to prevent cache misses if the default scopes are not returned from the server\r\n     */\r\n    ScopeSet.prototype.removeOIDCScopes = function () {\r\n        var _this = this;\r\n        OIDC_SCOPES.forEach(function (defaultScope) {\r\n            _this.scopes.delete(defaultScope);\r\n        });\r\n    };\r\n    /**\r\n     * Combines an array of scopes with the current set of scopes.\r\n     * @param otherScopes\r\n     */\r\n    ScopeSet.prototype.unionScopeSets = function (otherScopes) {\r\n        if (!otherScopes) {\r\n            throw ClientAuthError.createEmptyInputScopeSetError();\r\n        }\r\n        var unionScopes = new Set(); // Iterator in constructor not supported in IE11\r\n        otherScopes.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); });\r\n        this.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); });\r\n        return unionScopes;\r\n    };\r\n    /**\r\n     * Check if scopes intersect between this set and another.\r\n     * @param otherScopes\r\n     */\r\n    ScopeSet.prototype.intersectingScopeSets = function (otherScopes) {\r\n        if (!otherScopes) {\r\n            throw ClientAuthError.createEmptyInputScopeSetError();\r\n        }\r\n        // Do not allow OIDC scopes to be the only intersecting scopes\r\n        if (!otherScopes.containsOnlyOIDCScopes()) {\r\n            otherScopes.removeOIDCScopes();\r\n        }\r\n        var unionScopes = this.unionScopeSets(otherScopes);\r\n        var sizeOtherScopes = otherScopes.getScopeCount();\r\n        var sizeThisScopes = this.getScopeCount();\r\n        var sizeUnionScopes = unionScopes.size;\r\n        return sizeUnionScopes < (sizeThisScopes + sizeOtherScopes);\r\n    };\r\n    /**\r\n     * Returns size of set of scopes.\r\n     */\r\n    ScopeSet.prototype.getScopeCount = function () {\r\n        return this.scopes.size;\r\n    };\r\n    /**\r\n     * Returns the scopes as an array of string values\r\n     */\r\n    ScopeSet.prototype.asArray = function () {\r\n        var array = [];\r\n        this.scopes.forEach(function (val) { return array.push(val); });\r\n        return array;\r\n    };\r\n    /**\r\n     * Prints scopes into a space-delimited string\r\n     */\r\n    ScopeSet.prototype.printScopes = function () {\r\n        if (this.scopes) {\r\n            var scopeArr = this.asArray();\r\n            return scopeArr.join(\" \");\r\n        }\r\n        return Constants.EMPTY_STRING;\r\n    };\r\n    /**\r\n     * Prints scopes into a space-delimited lower-case string (used for caching)\r\n     */\r\n    ScopeSet.prototype.printScopesLowerCase = function () {\r\n        return this.printScopes().toLowerCase();\r\n    };\r\n    return ScopeSet;\r\n}());\n\nexport { ScopeSet };\n//# sourceMappingURL=ScopeSet.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * JWT Token representation class. Parses token string and generates claims object.\r\n */\r\nvar AuthToken = /** @class */ (function () {\r\n    function AuthToken(rawToken, crypto) {\r\n        if (StringUtils.isEmpty(rawToken)) {\r\n            throw ClientAuthError.createTokenNullOrEmptyError(rawToken);\r\n        }\r\n        this.rawToken = rawToken;\r\n        this.claims = AuthToken.extractTokenClaims(rawToken, crypto);\r\n    }\r\n    /**\r\n     * Extract token by decoding the rawToken\r\n     *\r\n     * @param encodedToken\r\n     */\r\n    AuthToken.extractTokenClaims = function (encodedToken, crypto) {\r\n        var decodedToken = StringUtils.decodeAuthToken(encodedToken);\r\n        // token will be decoded to get the username\r\n        try {\r\n            var base64TokenPayload = decodedToken.JWSPayload;\r\n            // base64Decode() should throw an error if there is an issue\r\n            var base64Decoded = crypto.base64Decode(base64TokenPayload);\r\n            return JSON.parse(base64Decoded);\r\n        }\r\n        catch (err) {\r\n            throw ClientAuthError.createTokenParsingError(err);\r\n        }\r\n    };\r\n    /**\r\n     * Determine if the token's max_age has transpired\r\n     */\r\n    AuthToken.checkMaxAge = function (authTime, maxAge) {\r\n        /*\r\n         * per https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest\r\n         * To force an immediate re-authentication: If an app requires that a user re-authenticate prior to access,\r\n         * provide a value of 0 for the max_age parameter and the AS will force a fresh login.\r\n         */\r\n        var fiveMinuteSkew = 300000; // five minutes in milliseconds\r\n        if ((maxAge === 0) || ((Date.now() - fiveMinuteSkew) > (authTime + maxAge))) {\r\n            throw ClientAuthError.createMaxAgeTranspiredError();\r\n        }\r\n    };\r\n    return AuthToken;\r\n}());\n\nexport { AuthToken };\n//# sourceMappingURL=AuthToken.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/* eslint-disable header/header */\r\nvar name = \"@azure/msal-common\";\r\nvar version = \"13.3.3\";\n\nexport { name, version };\n//# sourceMappingURL=packageMetadata.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __assign, __extends, __generator } from '../_virtual/_tslib.js';\nimport { Separators, CredentialType, AuthenticationScheme, THE_FAMILY_ID, APP_METADATA, AUTHORITY_METADATA_CONSTANTS } from '../utils/Constants.js';\nimport { ScopeSet } from '../request/ScopeSet.js';\nimport { AccountEntity } from './entities/AccountEntity.js';\nimport { AuthError } from '../error/AuthError.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { AuthToken } from '../account/AuthToken.js';\nimport { name, version } from '../packageMetadata.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.\r\n */\r\nvar CacheManager = /** @class */ (function () {\r\n    function CacheManager(clientId, cryptoImpl, logger) {\r\n        this.clientId = clientId;\r\n        this.cryptoImpl = cryptoImpl;\r\n        this.commonLogger = logger.clone(name, version);\r\n    }\r\n    /**\r\n     * Returns all accounts in cache\r\n     */\r\n    CacheManager.prototype.getAllAccounts = function () {\r\n        var _this = this;\r\n        var allAccountKeys = this.getAccountKeys();\r\n        if (allAccountKeys.length < 1) {\r\n            return [];\r\n        }\r\n        var accountEntities = allAccountKeys.reduce(function (accounts, key) {\r\n            var entity = _this.getAccount(key);\r\n            if (!entity) {\r\n                return accounts;\r\n            }\r\n            accounts.push(entity);\r\n            return accounts;\r\n        }, []);\r\n        if (accountEntities.length < 1) {\r\n            return [];\r\n        }\r\n        else {\r\n            var allAccounts = accountEntities.map(function (accountEntity) {\r\n                return _this.getAccountInfoFromEntity(accountEntity);\r\n            });\r\n            return allAccounts;\r\n        }\r\n    };\r\n    /**\r\n     * Gets accountInfo object based on provided filters\r\n     */\r\n    CacheManager.prototype.getAccountInfoFilteredBy = function (accountFilter) {\r\n        var allAccounts = this.getAccountsFilteredBy(accountFilter);\r\n        if (allAccounts.length > 0) {\r\n            return this.getAccountInfoFromEntity(allAccounts[0]);\r\n        }\r\n        else {\r\n            return null;\r\n        }\r\n    };\r\n    CacheManager.prototype.getAccountInfoFromEntity = function (accountEntity) {\r\n        var accountInfo = accountEntity.getAccountInfo();\r\n        var idToken = this.getIdToken(accountInfo);\r\n        if (idToken) {\r\n            accountInfo.idToken = idToken.secret;\r\n            accountInfo.idTokenClaims = new AuthToken(idToken.secret, this.cryptoImpl).claims;\r\n        }\r\n        return accountInfo;\r\n    };\r\n    /**\r\n     * saves a cache record\r\n     * @param cacheRecord\r\n     */\r\n    CacheManager.prototype.saveCacheRecord = function (cacheRecord) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (!cacheRecord) {\r\n                            throw ClientAuthError.createNullOrUndefinedCacheRecord();\r\n                        }\r\n                        if (!!cacheRecord.account) {\r\n                            this.setAccount(cacheRecord.account);\r\n                        }\r\n                        if (!!cacheRecord.idToken) {\r\n                            this.setIdTokenCredential(cacheRecord.idToken);\r\n                        }\r\n                        if (!!!cacheRecord.accessToken) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.saveAccessToken(cacheRecord.accessToken)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        if (!!cacheRecord.refreshToken) {\r\n                            this.setRefreshTokenCredential(cacheRecord.refreshToken);\r\n                        }\r\n                        if (!!cacheRecord.appMetadata) {\r\n                            this.setAppMetadata(cacheRecord.appMetadata);\r\n                        }\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * saves access token credential\r\n     * @param credential\r\n     */\r\n    CacheManager.prototype.saveAccessToken = function (credential) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var accessTokenFilter, tokenKeys, currentScopes, removedAccessTokens;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        accessTokenFilter = {\r\n                            clientId: credential.clientId,\r\n                            credentialType: credential.credentialType,\r\n                            environment: credential.environment,\r\n                            homeAccountId: credential.homeAccountId,\r\n                            realm: credential.realm,\r\n                            tokenType: credential.tokenType,\r\n                            requestedClaimsHash: credential.requestedClaimsHash\r\n                        };\r\n                        tokenKeys = this.getTokenKeys();\r\n                        currentScopes = ScopeSet.fromString(credential.target);\r\n                        removedAccessTokens = [];\r\n                        tokenKeys.accessToken.forEach(function (key) {\r\n                            if (!_this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) {\r\n                                return;\r\n                            }\r\n                            var tokenEntity = _this.getAccessTokenCredential(key);\r\n                            if (tokenEntity && _this.credentialMatchesFilter(tokenEntity, accessTokenFilter)) {\r\n                                var tokenScopeSet = ScopeSet.fromString(tokenEntity.target);\r\n                                if (tokenScopeSet.intersectingScopeSets(currentScopes)) {\r\n                                    removedAccessTokens.push(_this.removeAccessToken(key));\r\n                                }\r\n                            }\r\n                        });\r\n                        return [4 /*yield*/, Promise.all(removedAccessTokens)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        this.setAccessTokenCredential(credential);\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * retrieve accounts matching all provided filters; if no filter is set, get all accounts\r\n     * not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared\r\n     * @param homeAccountId\r\n     * @param environment\r\n     * @param realm\r\n     */\r\n    CacheManager.prototype.getAccountsFilteredBy = function (accountFilter) {\r\n        var _this = this;\r\n        var allAccountKeys = this.getAccountKeys();\r\n        var matchingAccounts = [];\r\n        allAccountKeys.forEach(function (cacheKey) {\r\n            if (!_this.isAccountKey(cacheKey, accountFilter.homeAccountId, accountFilter.realm)) {\r\n                // Don't parse value if the key doesn't match the account filters\r\n                return;\r\n            }\r\n            var entity = _this.getAccount(cacheKey);\r\n            if (!entity) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.homeAccountId && !_this.matchHomeAccountId(entity, accountFilter.homeAccountId)) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.localAccountId && !_this.matchLocalAccountId(entity, accountFilter.localAccountId)) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.username && !_this.matchUsername(entity, accountFilter.username)) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.environment && !_this.matchEnvironment(entity, accountFilter.environment)) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.realm && !_this.matchRealm(entity, accountFilter.realm)) {\r\n                return;\r\n            }\r\n            if (!!accountFilter.nativeAccountId && !_this.matchNativeAccountId(entity, accountFilter.nativeAccountId)) {\r\n                return;\r\n            }\r\n            matchingAccounts.push(entity);\r\n        });\r\n        return matchingAccounts;\r\n    };\r\n    /**\r\n     * Returns true if the given key matches our account key schema. Also matches homeAccountId and/or tenantId if provided\r\n     * @param key\r\n     * @param homeAccountId\r\n     * @param tenantId\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.isAccountKey = function (key, homeAccountId, tenantId) {\r\n        if (key.split(Separators.CACHE_KEY_SEPARATOR).length < 3) {\r\n            // Account cache keys contain 3 items separated by '-' (each item may also contain '-')\r\n            return false;\r\n        }\r\n        if (homeAccountId && !key.toLowerCase().includes(homeAccountId.toLowerCase())) {\r\n            return false;\r\n        }\r\n        if (tenantId && !key.toLowerCase().includes(tenantId.toLowerCase())) {\r\n            return false;\r\n        }\r\n        // Do not check environment as aliasing can cause false negatives\r\n        return true;\r\n    };\r\n    /**\r\n     * Returns true if the given key matches our credential key schema.\r\n     * @param key\r\n     */\r\n    CacheManager.prototype.isCredentialKey = function (key) {\r\n        if (key.split(Separators.CACHE_KEY_SEPARATOR).length < 6) {\r\n            // Credential cache keys contain 6 items separated by '-' (each item may also contain '-')\r\n            return false;\r\n        }\r\n        var lowerCaseKey = key.toLowerCase();\r\n        // Credential keys must indicate what credential type they represent\r\n        if (lowerCaseKey.indexOf(CredentialType.ID_TOKEN.toLowerCase()) === -1 &&\r\n            lowerCaseKey.indexOf(CredentialType.ACCESS_TOKEN.toLowerCase()) === -1 &&\r\n            lowerCaseKey.indexOf(CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 &&\r\n            lowerCaseKey.indexOf(CredentialType.REFRESH_TOKEN.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (lowerCaseKey.indexOf(CredentialType.REFRESH_TOKEN.toLowerCase()) > -1) {\r\n            // Refresh tokens must contain the client id or family id\r\n            var clientIdValidation = \"\" + CredentialType.REFRESH_TOKEN + Separators.CACHE_KEY_SEPARATOR + this.clientId + Separators.CACHE_KEY_SEPARATOR;\r\n            var familyIdValidation = \"\" + CredentialType.REFRESH_TOKEN + Separators.CACHE_KEY_SEPARATOR + THE_FAMILY_ID + Separators.CACHE_KEY_SEPARATOR;\r\n            if (lowerCaseKey.indexOf(clientIdValidation.toLowerCase()) === -1 && lowerCaseKey.indexOf(familyIdValidation.toLowerCase()) === -1) {\r\n                return false;\r\n            }\r\n        }\r\n        else if (lowerCaseKey.indexOf(this.clientId.toLowerCase()) === -1) {\r\n            // Tokens must contain the clientId\r\n            return false;\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * Returns whether or not the given credential entity matches the filter\r\n     * @param entity\r\n     * @param filter\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.credentialMatchesFilter = function (entity, filter) {\r\n        if (!!filter.clientId && !this.matchClientId(entity, filter.clientId)) {\r\n            return false;\r\n        }\r\n        if (!!filter.userAssertionHash && !this.matchUserAssertionHash(entity, filter.userAssertionHash)) {\r\n            return false;\r\n        }\r\n        /*\r\n         * homeAccountId can be undefined, and we want to filter out cached items that have a homeAccountId of \"\"\r\n         * because we don't want a client_credential request to return a cached token that has a homeAccountId\r\n         */\r\n        if ((typeof filter.homeAccountId === \"string\") && !this.matchHomeAccountId(entity, filter.homeAccountId)) {\r\n            return false;\r\n        }\r\n        if (!!filter.environment && !this.matchEnvironment(entity, filter.environment)) {\r\n            return false;\r\n        }\r\n        if (!!filter.realm && !this.matchRealm(entity, filter.realm)) {\r\n            return false;\r\n        }\r\n        if (!!filter.credentialType && !this.matchCredentialType(entity, filter.credentialType)) {\r\n            return false;\r\n        }\r\n        if (!!filter.familyId && !this.matchFamilyId(entity, filter.familyId)) {\r\n            return false;\r\n        }\r\n        /*\r\n         * idTokens do not have \"target\", target specific refreshTokens do exist for some types of authentication\r\n         * Resource specific refresh tokens case will be added when the support is deemed necessary\r\n         */\r\n        if (!!filter.target && !this.matchTarget(entity, filter.target)) {\r\n            return false;\r\n        }\r\n        // If request OR cached entity has requested Claims Hash, check if they match\r\n        if (filter.requestedClaimsHash || entity.requestedClaimsHash) {\r\n            // Don't match if either is undefined or they are different\r\n            if (entity.requestedClaimsHash !== filter.requestedClaimsHash) {\r\n                return false;\r\n            }\r\n        }\r\n        // Access Token with Auth Scheme specific matching\r\n        if (entity.credentialType === CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME) {\r\n            if (!!filter.tokenType && !this.matchTokenType(entity, filter.tokenType)) {\r\n                return false;\r\n            }\r\n            // KeyId (sshKid) in request must match cached SSH certificate keyId because SSH cert is bound to a specific key\r\n            if (filter.tokenType === AuthenticationScheme.SSH) {\r\n                if (filter.keyId && !this.matchKeyId(entity, filter.keyId)) {\r\n                    return false;\r\n                }\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata\r\n     * @param filter\r\n     */\r\n    CacheManager.prototype.getAppMetadataFilteredBy = function (filter) {\r\n        return this.getAppMetadataFilteredByInternal(filter.environment, filter.clientId);\r\n    };\r\n    /**\r\n     * Support function to help match appMetadata\r\n     * @param environment\r\n     * @param clientId\r\n     */\r\n    CacheManager.prototype.getAppMetadataFilteredByInternal = function (environment, clientId) {\r\n        var _this = this;\r\n        var allCacheKeys = this.getKeys();\r\n        var matchingAppMetadata = {};\r\n        allCacheKeys.forEach(function (cacheKey) {\r\n            // don't parse any non-appMetadata type cache entities\r\n            if (!_this.isAppMetadata(cacheKey)) {\r\n                return;\r\n            }\r\n            // Attempt retrieval\r\n            var entity = _this.getAppMetadata(cacheKey);\r\n            if (!entity) {\r\n                return;\r\n            }\r\n            if (!!environment && !_this.matchEnvironment(entity, environment)) {\r\n                return;\r\n            }\r\n            if (!!clientId && !_this.matchClientId(entity, clientId)) {\r\n                return;\r\n            }\r\n            matchingAppMetadata[cacheKey] = entity;\r\n        });\r\n        return matchingAppMetadata;\r\n    };\r\n    /**\r\n     * retrieve authorityMetadata that contains a matching alias\r\n     * @param filter\r\n     */\r\n    CacheManager.prototype.getAuthorityMetadataByAlias = function (host) {\r\n        var _this = this;\r\n        var allCacheKeys = this.getAuthorityMetadataKeys();\r\n        var matchedEntity = null;\r\n        allCacheKeys.forEach(function (cacheKey) {\r\n            // don't parse any non-authorityMetadata type cache entities\r\n            if (!_this.isAuthorityMetadata(cacheKey) || cacheKey.indexOf(_this.clientId) === -1) {\r\n                return;\r\n            }\r\n            // Attempt retrieval\r\n            var entity = _this.getAuthorityMetadata(cacheKey);\r\n            if (!entity) {\r\n                return;\r\n            }\r\n            if (entity.aliases.indexOf(host) === -1) {\r\n                return;\r\n            }\r\n            matchedEntity = entity;\r\n        });\r\n        return matchedEntity;\r\n    };\r\n    /**\r\n     * Removes all accounts and related tokens from cache.\r\n     */\r\n    CacheManager.prototype.removeAllAccounts = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var allAccountKeys, removedAccounts;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        allAccountKeys = this.getAccountKeys();\r\n                        removedAccounts = [];\r\n                        allAccountKeys.forEach(function (cacheKey) {\r\n                            removedAccounts.push(_this.removeAccount(cacheKey));\r\n                        });\r\n                        return [4 /*yield*/, Promise.all(removedAccounts)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes the account and related tokens for a given account key\r\n     * @param account\r\n     */\r\n    CacheManager.prototype.removeAccount = function (accountKey) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var account;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        account = this.getAccount(accountKey);\r\n                        if (!account) {\r\n                            throw ClientAuthError.createNoAccountFoundError();\r\n                        }\r\n                        return [4 /*yield*/, this.removeAccountContext(account)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        this.removeItem(accountKey);\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes credentials associated with the provided account\r\n     * @param account\r\n     */\r\n    CacheManager.prototype.removeAccountContext = function (account) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var allTokenKeys, accountId, removedCredentials;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        allTokenKeys = this.getTokenKeys();\r\n                        accountId = account.generateAccountId();\r\n                        removedCredentials = [];\r\n                        allTokenKeys.idToken.forEach(function (key) {\r\n                            if (key.indexOf(accountId) === 0) {\r\n                                _this.removeIdToken(key);\r\n                            }\r\n                        });\r\n                        allTokenKeys.accessToken.forEach(function (key) {\r\n                            if (key.indexOf(accountId) === 0) {\r\n                                removedCredentials.push(_this.removeAccessToken(key));\r\n                            }\r\n                        });\r\n                        allTokenKeys.refreshToken.forEach(function (key) {\r\n                            if (key.indexOf(accountId) === 0) {\r\n                                _this.removeRefreshToken(key);\r\n                            }\r\n                        });\r\n                        return [4 /*yield*/, Promise.all(removedCredentials)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * returns a boolean if the given credential is removed\r\n     * @param credential\r\n     */\r\n    CacheManager.prototype.removeAccessToken = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var credential, accessTokenWithAuthSchemeEntity, kid;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        credential = this.getAccessTokenCredential(key);\r\n                        if (!credential) {\r\n                            return [2 /*return*/];\r\n                        }\r\n                        if (!(credential.credentialType.toLowerCase() === CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())) return [3 /*break*/, 4];\r\n                        if (!(credential.tokenType === AuthenticationScheme.POP)) return [3 /*break*/, 4];\r\n                        accessTokenWithAuthSchemeEntity = credential;\r\n                        kid = accessTokenWithAuthSchemeEntity.keyId;\r\n                        if (!kid) return [3 /*break*/, 4];\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.cryptoImpl.removeTokenBindingKey(kid)];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        _a.sent();\r\n                        throw ClientAuthError.createBindingKeyNotRemovedError();\r\n                    case 4: return [2 /*return*/, this.removeItem(key)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes all app metadata objects from cache.\r\n     */\r\n    CacheManager.prototype.removeAppMetadata = function () {\r\n        var _this = this;\r\n        var allCacheKeys = this.getKeys();\r\n        allCacheKeys.forEach(function (cacheKey) {\r\n            if (_this.isAppMetadata(cacheKey)) {\r\n                _this.removeItem(cacheKey);\r\n            }\r\n        });\r\n        return true;\r\n    };\r\n    /**\r\n     * Retrieve the cached credentials into a cacherecord\r\n     * @param account\r\n     * @param clientId\r\n     * @param scopes\r\n     * @param environment\r\n     * @param authScheme\r\n     */\r\n    CacheManager.prototype.readCacheRecord = function (account, request, environment) {\r\n        var tokenKeys = this.getTokenKeys();\r\n        var cachedAccount = this.readAccountFromCache(account);\r\n        var cachedIdToken = this.getIdToken(account, tokenKeys);\r\n        var cachedAccessToken = this.getAccessToken(account, request, tokenKeys);\r\n        var cachedRefreshToken = this.getRefreshToken(account, false, tokenKeys);\r\n        var cachedAppMetadata = this.readAppMetadataFromCache(environment);\r\n        if (cachedAccount && cachedIdToken) {\r\n            cachedAccount.idTokenClaims = new AuthToken(cachedIdToken.secret, this.cryptoImpl).claims;\r\n        }\r\n        return {\r\n            account: cachedAccount,\r\n            idToken: cachedIdToken,\r\n            accessToken: cachedAccessToken,\r\n            refreshToken: cachedRefreshToken,\r\n            appMetadata: cachedAppMetadata,\r\n        };\r\n    };\r\n    /**\r\n     * Retrieve AccountEntity from cache\r\n     * @param account\r\n     */\r\n    CacheManager.prototype.readAccountFromCache = function (account) {\r\n        var accountKey = AccountEntity.generateAccountCacheKey(account);\r\n        return this.getAccount(accountKey);\r\n    };\r\n    /**\r\n     * Retrieve IdTokenEntity from cache\r\n     * @param clientId\r\n     * @param account\r\n     * @param inputRealm\r\n     */\r\n    CacheManager.prototype.getIdToken = function (account, tokenKeys) {\r\n        var _this = this;\r\n        this.commonLogger.trace(\"CacheManager - getIdToken called\");\r\n        var idTokenFilter = {\r\n            homeAccountId: account.homeAccountId,\r\n            environment: account.environment,\r\n            credentialType: CredentialType.ID_TOKEN,\r\n            clientId: this.clientId,\r\n            realm: account.tenantId,\r\n        };\r\n        var idTokens = this.getIdTokensByFilter(idTokenFilter, tokenKeys);\r\n        var numIdTokens = idTokens.length;\r\n        if (numIdTokens < 1) {\r\n            this.commonLogger.info(\"CacheManager:getIdToken - No token found\");\r\n            return null;\r\n        }\r\n        else if (numIdTokens > 1) {\r\n            this.commonLogger.info(\"CacheManager:getIdToken - Multiple id tokens found, clearing them\");\r\n            idTokens.forEach(function (idToken) {\r\n                _this.removeIdToken(idToken.generateCredentialKey());\r\n            });\r\n            return null;\r\n        }\r\n        this.commonLogger.info(\"CacheManager:getIdToken - Returning id token\");\r\n        return idTokens[0];\r\n    };\r\n    /**\r\n     * Gets all idTokens matching the given filter\r\n     * @param filter\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.getIdTokensByFilter = function (filter, tokenKeys) {\r\n        var _this = this;\r\n        var idTokenKeys = tokenKeys && tokenKeys.idToken || this.getTokenKeys().idToken;\r\n        var idTokens = [];\r\n        idTokenKeys.forEach(function (key) {\r\n            if (!_this.idTokenKeyMatchesFilter(key, __assign({ clientId: _this.clientId }, filter))) {\r\n                return;\r\n            }\r\n            var idToken = _this.getIdTokenCredential(key);\r\n            if (idToken && _this.credentialMatchesFilter(idToken, filter)) {\r\n                idTokens.push(idToken);\r\n            }\r\n        });\r\n        return idTokens;\r\n    };\r\n    /**\r\n     * Validate the cache key against filter before retrieving and parsing cache value\r\n     * @param key\r\n     * @param filter\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.idTokenKeyMatchesFilter = function (inputKey, filter) {\r\n        var key = inputKey.toLowerCase();\r\n        if (filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * Removes idToken from the cache\r\n     * @param key\r\n     */\r\n    CacheManager.prototype.removeIdToken = function (key) {\r\n        this.removeItem(key);\r\n    };\r\n    /**\r\n     * Removes refresh token from the cache\r\n     * @param key\r\n     */\r\n    CacheManager.prototype.removeRefreshToken = function (key) {\r\n        this.removeItem(key);\r\n    };\r\n    /**\r\n     * Retrieve AccessTokenEntity from cache\r\n     * @param clientId\r\n     * @param account\r\n     * @param scopes\r\n     * @param authScheme\r\n     */\r\n    CacheManager.prototype.getAccessToken = function (account, request, tokenKeys) {\r\n        var _this = this;\r\n        this.commonLogger.trace(\"CacheManager - getAccessToken called\");\r\n        var scopes = ScopeSet.createSearchScopes(request.scopes);\r\n        var authScheme = request.authenticationScheme || AuthenticationScheme.BEARER;\r\n        /*\r\n         * Distinguish between Bearer and PoP/SSH token cache types\r\n         * Cast to lowercase to handle \"bearer\" from ADFS\r\n         */\r\n        var credentialType = (authScheme && authScheme.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) ? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME : CredentialType.ACCESS_TOKEN;\r\n        var accessTokenFilter = {\r\n            homeAccountId: account.homeAccountId,\r\n            environment: account.environment,\r\n            credentialType: credentialType,\r\n            clientId: this.clientId,\r\n            realm: account.tenantId,\r\n            target: scopes,\r\n            tokenType: authScheme,\r\n            keyId: request.sshKid,\r\n            requestedClaimsHash: request.requestedClaimsHash,\r\n        };\r\n        var accessTokenKeys = tokenKeys && tokenKeys.accessToken || this.getTokenKeys().accessToken;\r\n        var accessTokens = [];\r\n        accessTokenKeys.forEach(function (key) {\r\n            // Validate key\r\n            if (_this.accessTokenKeyMatchesFilter(key, accessTokenFilter, true)) {\r\n                var accessToken = _this.getAccessTokenCredential(key);\r\n                // Validate value\r\n                if (accessToken && _this.credentialMatchesFilter(accessToken, accessTokenFilter)) {\r\n                    accessTokens.push(accessToken);\r\n                }\r\n            }\r\n        });\r\n        var numAccessTokens = accessTokens.length;\r\n        if (numAccessTokens < 1) {\r\n            this.commonLogger.info(\"CacheManager:getAccessToken - No token found\");\r\n            return null;\r\n        }\r\n        else if (numAccessTokens > 1) {\r\n            this.commonLogger.info(\"CacheManager:getAccessToken - Multiple access tokens found, clearing them\");\r\n            accessTokens.forEach(function (accessToken) {\r\n                _this.removeAccessToken(accessToken.generateCredentialKey());\r\n            });\r\n            return null;\r\n        }\r\n        this.commonLogger.info(\"CacheManager:getAccessToken - Returning access token\");\r\n        return accessTokens[0];\r\n    };\r\n    /**\r\n     * Validate the cache key against filter before retrieving and parsing cache value\r\n     * @param key\r\n     * @param filter\r\n     * @param keyMustContainAllScopes\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.accessTokenKeyMatchesFilter = function (inputKey, filter, keyMustContainAllScopes) {\r\n        var key = inputKey.toLowerCase();\r\n        if (filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.realm && key.indexOf(filter.realm.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.requestedClaimsHash && key.indexOf(filter.requestedClaimsHash.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.target) {\r\n            var scopes = filter.target.asArray();\r\n            for (var i = 0; i < scopes.length; i++) {\r\n                if (keyMustContainAllScopes && !key.includes(scopes[i].toLowerCase())) {\r\n                    // When performing a cache lookup a missing scope would be a cache miss\r\n                    return false;\r\n                }\r\n                else if (!keyMustContainAllScopes && key.includes(scopes[i].toLowerCase())) {\r\n                    // When performing a cache write, any token with a subset of requested scopes should be replaced\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * Gets all access tokens matching the filter\r\n     * @param filter\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.getAccessTokensByFilter = function (filter) {\r\n        var _this = this;\r\n        var tokenKeys = this.getTokenKeys();\r\n        var accessTokens = [];\r\n        tokenKeys.accessToken.forEach(function (key) {\r\n            if (!_this.accessTokenKeyMatchesFilter(key, filter, true)) {\r\n                return;\r\n            }\r\n            var accessToken = _this.getAccessTokenCredential(key);\r\n            if (accessToken && _this.credentialMatchesFilter(accessToken, filter)) {\r\n                accessTokens.push(accessToken);\r\n            }\r\n        });\r\n        return accessTokens;\r\n    };\r\n    /**\r\n     * Helper to retrieve the appropriate refresh token from cache\r\n     * @param clientId\r\n     * @param account\r\n     * @param familyRT\r\n     */\r\n    CacheManager.prototype.getRefreshToken = function (account, familyRT, tokenKeys) {\r\n        var _this = this;\r\n        this.commonLogger.trace(\"CacheManager - getRefreshToken called\");\r\n        var id = familyRT ? THE_FAMILY_ID : undefined;\r\n        var refreshTokenFilter = {\r\n            homeAccountId: account.homeAccountId,\r\n            environment: account.environment,\r\n            credentialType: CredentialType.REFRESH_TOKEN,\r\n            clientId: this.clientId,\r\n            familyId: id,\r\n        };\r\n        var refreshTokenKeys = tokenKeys && tokenKeys.refreshToken || this.getTokenKeys().refreshToken;\r\n        var refreshTokens = [];\r\n        refreshTokenKeys.forEach(function (key) {\r\n            // Validate key\r\n            if (_this.refreshTokenKeyMatchesFilter(key, refreshTokenFilter)) {\r\n                var refreshToken = _this.getRefreshTokenCredential(key);\r\n                // Validate value\r\n                if (refreshToken && _this.credentialMatchesFilter(refreshToken, refreshTokenFilter)) {\r\n                    refreshTokens.push(refreshToken);\r\n                }\r\n            }\r\n        });\r\n        var numRefreshTokens = refreshTokens.length;\r\n        if (numRefreshTokens < 1) {\r\n            this.commonLogger.info(\"CacheManager:getRefreshToken - No refresh token found.\");\r\n            return null;\r\n        }\r\n        // address the else case after remove functions address environment aliases\r\n        this.commonLogger.info(\"CacheManager:getRefreshToken - returning refresh token\");\r\n        return refreshTokens[0];\r\n    };\r\n    /**\r\n     * Validate the cache key against filter before retrieving and parsing cache value\r\n     * @param key\r\n     * @param filter\r\n     */\r\n    CacheManager.prototype.refreshTokenKeyMatchesFilter = function (inputKey, filter) {\r\n        var key = inputKey.toLowerCase();\r\n        if (filter.familyId && key.indexOf(filter.familyId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        // If familyId is used, clientId is not in the key\r\n        if (!filter.familyId && filter.clientId && key.indexOf(filter.clientId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        if (filter.homeAccountId && key.indexOf(filter.homeAccountId.toLowerCase()) === -1) {\r\n            return false;\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * Retrieve AppMetadataEntity from cache\r\n     */\r\n    CacheManager.prototype.readAppMetadataFromCache = function (environment) {\r\n        var appMetadataFilter = {\r\n            environment: environment,\r\n            clientId: this.clientId,\r\n        };\r\n        var appMetadata = this.getAppMetadataFilteredBy(appMetadataFilter);\r\n        var appMetadataEntries = Object.keys(appMetadata).map(function (key) { return appMetadata[key]; });\r\n        var numAppMetadata = appMetadataEntries.length;\r\n        if (numAppMetadata < 1) {\r\n            return null;\r\n        }\r\n        else if (numAppMetadata > 1) {\r\n            throw ClientAuthError.createMultipleMatchingAppMetadataInCacheError();\r\n        }\r\n        return appMetadataEntries[0];\r\n    };\r\n    /**\r\n     * Return the family_id value associated  with FOCI\r\n     * @param environment\r\n     * @param clientId\r\n     */\r\n    CacheManager.prototype.isAppMetadataFOCI = function (environment) {\r\n        var appMetadata = this.readAppMetadataFromCache(environment);\r\n        return !!(appMetadata && appMetadata.familyId === THE_FAMILY_ID);\r\n    };\r\n    /**\r\n     * helper to match account ids\r\n     * @param value\r\n     * @param homeAccountId\r\n     */\r\n    CacheManager.prototype.matchHomeAccountId = function (entity, homeAccountId) {\r\n        return !!((typeof entity.homeAccountId === \"string\") && (homeAccountId === entity.homeAccountId));\r\n    };\r\n    /**\r\n     * helper to match account ids\r\n     * @param entity\r\n     * @param localAccountId\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.matchLocalAccountId = function (entity, localAccountId) {\r\n        return !!((typeof entity.localAccountId === \"string\") && (localAccountId === entity.localAccountId));\r\n    };\r\n    /**\r\n     * helper to match usernames\r\n     * @param entity\r\n     * @param username\r\n     * @returns\r\n     */\r\n    CacheManager.prototype.matchUsername = function (entity, username) {\r\n        return !!((typeof entity.username === \"string\") && (username.toLowerCase() === entity.username.toLowerCase()));\r\n    };\r\n    /**\r\n     * helper to match assertion\r\n     * @param value\r\n     * @param oboAssertion\r\n     */\r\n    CacheManager.prototype.matchUserAssertionHash = function (entity, userAssertionHash) {\r\n        return !!(entity.userAssertionHash && userAssertionHash === entity.userAssertionHash);\r\n    };\r\n    /**\r\n     * helper to match environment\r\n     * @param value\r\n     * @param environment\r\n     */\r\n    CacheManager.prototype.matchEnvironment = function (entity, environment) {\r\n        var cloudMetadata = this.getAuthorityMetadataByAlias(environment);\r\n        if (cloudMetadata && cloudMetadata.aliases.indexOf(entity.environment) > -1) {\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * helper to match credential type\r\n     * @param entity\r\n     * @param credentialType\r\n     */\r\n    CacheManager.prototype.matchCredentialType = function (entity, credentialType) {\r\n        return (entity.credentialType && credentialType.toLowerCase() === entity.credentialType.toLowerCase());\r\n    };\r\n    /**\r\n     * helper to match client ids\r\n     * @param entity\r\n     * @param clientId\r\n     */\r\n    CacheManager.prototype.matchClientId = function (entity, clientId) {\r\n        return !!(entity.clientId && clientId === entity.clientId);\r\n    };\r\n    /**\r\n     * helper to match family ids\r\n     * @param entity\r\n     * @param familyId\r\n     */\r\n    CacheManager.prototype.matchFamilyId = function (entity, familyId) {\r\n        return !!(entity.familyId && familyId === entity.familyId);\r\n    };\r\n    /**\r\n     * helper to match realm\r\n     * @param entity\r\n     * @param realm\r\n     */\r\n    CacheManager.prototype.matchRealm = function (entity, realm) {\r\n        return !!(entity.realm && realm === entity.realm);\r\n    };\r\n    /**\r\n     * helper to match nativeAccountId\r\n     * @param entity\r\n     * @param nativeAccountId\r\n     * @returns boolean indicating the match result\r\n     */\r\n    CacheManager.prototype.matchNativeAccountId = function (entity, nativeAccountId) {\r\n        return !!(entity.nativeAccountId && nativeAccountId === entity.nativeAccountId);\r\n    };\r\n    /**\r\n     * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise.\r\n     * @param entity\r\n     * @param target\r\n     */\r\n    CacheManager.prototype.matchTarget = function (entity, target) {\r\n        var isNotAccessTokenCredential = (entity.credentialType !== CredentialType.ACCESS_TOKEN && entity.credentialType !== CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME);\r\n        if (isNotAccessTokenCredential || !entity.target) {\r\n            return false;\r\n        }\r\n        var entityScopeSet = ScopeSet.fromString(entity.target);\r\n        return entityScopeSet.containsScopeSet(target);\r\n    };\r\n    /**\r\n     * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise\r\n     * @param entity\r\n     * @param tokenType\r\n     */\r\n    CacheManager.prototype.matchTokenType = function (entity, tokenType) {\r\n        return !!(entity.tokenType && entity.tokenType === tokenType);\r\n    };\r\n    /**\r\n     * Returns true if the credential's keyId matches the one in the request, false otherwise\r\n     * @param entity\r\n     * @param tokenType\r\n     */\r\n    CacheManager.prototype.matchKeyId = function (entity, keyId) {\r\n        return !!(entity.keyId && entity.keyId === keyId);\r\n    };\r\n    /**\r\n     * returns if a given cache entity is of the type appmetadata\r\n     * @param key\r\n     */\r\n    CacheManager.prototype.isAppMetadata = function (key) {\r\n        return key.indexOf(APP_METADATA) !== -1;\r\n    };\r\n    /**\r\n     * returns if a given cache entity is of the type authoritymetadata\r\n     * @param key\r\n     */\r\n    CacheManager.prototype.isAuthorityMetadata = function (key) {\r\n        return key.indexOf(AUTHORITY_METADATA_CONSTANTS.CACHE_KEY) !== -1;\r\n    };\r\n    /**\r\n     * returns cache key used for cloud instance metadata\r\n     */\r\n    CacheManager.prototype.generateAuthorityMetadataCacheKey = function (authority) {\r\n        return AUTHORITY_METADATA_CONSTANTS.CACHE_KEY + \"-\" + this.clientId + \"-\" + authority;\r\n    };\r\n    /**\r\n     * Helper to convert serialized data to object\r\n     * @param obj\r\n     * @param json\r\n     */\r\n    CacheManager.toObject = function (obj, json) {\r\n        for (var propertyName in json) {\r\n            obj[propertyName] = json[propertyName];\r\n        }\r\n        return obj;\r\n    };\r\n    return CacheManager;\r\n}());\r\nvar DefaultStorageClass = /** @class */ (function (_super) {\r\n    __extends(DefaultStorageClass, _super);\r\n    function DefaultStorageClass() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    DefaultStorageClass.prototype.setAccount = function () {\r\n        var notImplErr = \"Storage interface - setAccount() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAccount = function () {\r\n        var notImplErr = \"Storage interface - getAccount() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setIdTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getIdTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setAccessTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAccessTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setRefreshTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getRefreshTokenCredential = function () {\r\n        var notImplErr = \"Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setAppMetadata = function () {\r\n        var notImplErr = \"Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAppMetadata = function () {\r\n        var notImplErr = \"Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setServerTelemetry = function () {\r\n        var notImplErr = \"Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getServerTelemetry = function () {\r\n        var notImplErr = \"Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setAuthorityMetadata = function () {\r\n        var notImplErr = \"Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAuthorityMetadata = function () {\r\n        var notImplErr = \"Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAuthorityMetadataKeys = function () {\r\n        var notImplErr = \"Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.setThrottlingCache = function () {\r\n        var notImplErr = \"Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getThrottlingCache = function () {\r\n        var notImplErr = \"Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.removeItem = function () {\r\n        var notImplErr = \"Storage interface - removeItem() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.containsKey = function () {\r\n        var notImplErr = \"Storage interface - containsKey() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getKeys = function () {\r\n        var notImplErr = \"Storage interface - getKeys() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getAccountKeys = function () {\r\n        var notImplErr = \"Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.getTokenKeys = function () {\r\n        var notImplErr = \"Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    DefaultStorageClass.prototype.clear = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Storage interface - clear() has not been implemented for the cacheStorage interface.\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    };\r\n    DefaultStorageClass.prototype.updateCredentialCacheKey = function () {\r\n        var notImplErr = \"Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.\";\r\n        throw AuthError.createUnexpectedError(notImplErr);\r\n    };\r\n    return DefaultStorageClass;\r\n}(CacheManager));\n\nexport { CacheManager, DefaultStorageClass };\n//# sourceMappingURL=CacheManager.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility class which exposes functions for managing date and time operations.\r\n */\r\nvar TimeUtils = /** @class */ (function () {\r\n    function TimeUtils() {\r\n    }\r\n    /**\r\n     * return the current time in Unix time (seconds).\r\n     */\r\n    TimeUtils.nowSeconds = function () {\r\n        // Date.getTime() returns in milliseconds.\r\n        return Math.round(new Date().getTime() / 1000.0);\r\n    };\r\n    /**\r\n     * check if a token is expired based on given UTC time in seconds.\r\n     * @param expiresOn\r\n     */\r\n    TimeUtils.isTokenExpired = function (expiresOn, offset) {\r\n        // check for access token expiry\r\n        var expirationSec = Number(expiresOn) || 0;\r\n        var offsetCurrentTimeSec = TimeUtils.nowSeconds() + offset;\r\n        // If current time + offset is greater than token expiration time, then token is expired.\r\n        return (offsetCurrentTimeSec > expirationSec);\r\n    };\r\n    /**\r\n     * If the current time is earlier than the time that a token was cached at, we must discard the token\r\n     * i.e. The system clock was turned back after acquiring the cached token\r\n     * @param cachedAt\r\n     * @param offset\r\n     */\r\n    TimeUtils.wasClockTurnedBack = function (cachedAt) {\r\n        var cachedAtSec = Number(cachedAt);\r\n        return cachedAtSec > TimeUtils.nowSeconds();\r\n    };\r\n    /**\r\n     * Waits for t number of milliseconds\r\n     * @param t number\r\n     * @param value T\r\n     */\r\n    TimeUtils.delay = function (t, value) {\r\n        return new Promise(function (resolve) { return setTimeout(function () { return resolve(value); }, t); });\r\n    };\r\n    return TimeUtils;\r\n}());\n\nexport { TimeUtils };\n//# sourceMappingURL=TimeUtils.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../../_virtual/_tslib.js';\nimport { CredentialEntity } from './CredentialEntity.js';\nimport { CredentialType, AuthenticationScheme } from '../../utils/Constants.js';\nimport { TimeUtils } from '../../utils/TimeUtils.js';\nimport { StringUtils } from '../../utils/StringUtils.js';\nimport { AuthToken } from '../../account/AuthToken.js';\nimport { ClientAuthError } from '../../error/ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * ACCESS_TOKEN Credential Type\r\n *\r\n * Key:Value Schema:\r\n *\r\n * Key Example: uid.utid-login.microsoftonline.com-accesstoken-clientId-contoso.com-user.read\r\n *\r\n * Value Schema:\r\n * {\r\n *      homeAccountId: home account identifier for the auth scheme,\r\n *      environment: entity that issued the token, represented as a full host\r\n *      credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other\r\n *      clientId: client ID of the application\r\n *      secret: Actual credential as a string\r\n *      familyId: Family ID identifier, usually only used for refresh tokens\r\n *      realm: Full tenant or organizational identifier that the account belongs to\r\n *      target: Permissions that are included in the token, or for refresh tokens, the resource identifier.\r\n *      cachedAt: Absolute device time when entry was created in the cache.\r\n *      expiresOn: Token expiry time, calculated based on current UTC time in seconds. Represented as a string.\r\n *      extendedExpiresOn: Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds.\r\n *      keyId: used for POP and SSH tokenTypes\r\n *      tokenType: Type of the token issued. Usually \"Bearer\"\r\n * }\r\n */\r\nvar AccessTokenEntity = /** @class */ (function (_super) {\r\n    __extends(AccessTokenEntity, _super);\r\n    function AccessTokenEntity() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Create AccessTokenEntity\r\n     * @param homeAccountId\r\n     * @param environment\r\n     * @param accessToken\r\n     * @param clientId\r\n     * @param tenantId\r\n     * @param scopes\r\n     * @param expiresOn\r\n     * @param extExpiresOn\r\n     */\r\n    AccessTokenEntity.createAccessTokenEntity = function (homeAccountId, environment, accessToken, clientId, tenantId, scopes, expiresOn, extExpiresOn, cryptoUtils, refreshOn, tokenType, userAssertionHash, keyId, requestedClaims, requestedClaimsHash) {\r\n        var _a, _b;\r\n        var atEntity = new AccessTokenEntity();\r\n        atEntity.homeAccountId = homeAccountId;\r\n        atEntity.credentialType = CredentialType.ACCESS_TOKEN;\r\n        atEntity.secret = accessToken;\r\n        var currentTime = TimeUtils.nowSeconds();\r\n        atEntity.cachedAt = currentTime.toString();\r\n        /*\r\n         * Token expiry time.\r\n         * This value should be  calculated based on the current UTC time measured locally and the value  expires_in Represented as a string in JSON.\r\n         */\r\n        atEntity.expiresOn = expiresOn.toString();\r\n        atEntity.extendedExpiresOn = extExpiresOn.toString();\r\n        if (refreshOn) {\r\n            atEntity.refreshOn = refreshOn.toString();\r\n        }\r\n        atEntity.environment = environment;\r\n        atEntity.clientId = clientId;\r\n        atEntity.realm = tenantId;\r\n        atEntity.target = scopes;\r\n        atEntity.userAssertionHash = userAssertionHash;\r\n        atEntity.tokenType = StringUtils.isEmpty(tokenType) ? AuthenticationScheme.BEARER : tokenType;\r\n        if (requestedClaims) {\r\n            atEntity.requestedClaims = requestedClaims;\r\n            atEntity.requestedClaimsHash = requestedClaimsHash;\r\n        }\r\n        /*\r\n         * Create Access Token With Auth Scheme instead of regular access token\r\n         * Cast to lower to handle \"bearer\" from ADFS\r\n         */\r\n        if (((_a = atEntity.tokenType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== AuthenticationScheme.BEARER.toLowerCase()) {\r\n            atEntity.credentialType = CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;\r\n            switch (atEntity.tokenType) {\r\n                case AuthenticationScheme.POP:\r\n                    // Make sure keyId is present and add it to credential\r\n                    var tokenClaims = AuthToken.extractTokenClaims(accessToken, cryptoUtils);\r\n                    if (!((_b = tokenClaims === null || tokenClaims === void 0 ? void 0 : tokenClaims.cnf) === null || _b === void 0 ? void 0 : _b.kid)) {\r\n                        throw ClientAuthError.createTokenClaimsRequiredError();\r\n                    }\r\n                    atEntity.keyId = tokenClaims.cnf.kid;\r\n                    break;\r\n                case AuthenticationScheme.SSH:\r\n                    atEntity.keyId = keyId;\r\n            }\r\n        }\r\n        return atEntity;\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    AccessTokenEntity.isAccessTokenEntity = function (entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (entity.hasOwnProperty(\"homeAccountId\") &&\r\n            entity.hasOwnProperty(\"environment\") &&\r\n            entity.hasOwnProperty(\"credentialType\") &&\r\n            entity.hasOwnProperty(\"realm\") &&\r\n            entity.hasOwnProperty(\"clientId\") &&\r\n            entity.hasOwnProperty(\"secret\") &&\r\n            entity.hasOwnProperty(\"target\") &&\r\n            (entity[\"credentialType\"] === CredentialType.ACCESS_TOKEN || entity[\"credentialType\"] === CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME));\r\n    };\r\n    return AccessTokenEntity;\r\n}(CredentialEntity));\n\nexport { AccessTokenEntity };\n//# sourceMappingURL=AccessTokenEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../../_virtual/_tslib.js';\nimport { CredentialEntity } from './CredentialEntity.js';\nimport { CredentialType } from '../../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * REFRESH_TOKEN Cache\r\n *\r\n * Key:Value Schema:\r\n *\r\n * Key Example: uid.utid-login.microsoftonline.com-refreshtoken-clientId--\r\n *\r\n * Value:\r\n * {\r\n *      homeAccountId: home account identifier for the auth scheme,\r\n *      environment: entity that issued the token, represented as a full host\r\n *      credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other\r\n *      clientId: client ID of the application\r\n *      secret: Actual credential as a string\r\n *      familyId: Family ID identifier, '1' represents Microsoft Family\r\n *      realm: Full tenant or organizational identifier that the account belongs to\r\n *      target: Permissions that are included in the token, or for refresh tokens, the resource identifier.\r\n * }\r\n */\r\nvar RefreshTokenEntity = /** @class */ (function (_super) {\r\n    __extends(RefreshTokenEntity, _super);\r\n    function RefreshTokenEntity() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Create RefreshTokenEntity\r\n     * @param homeAccountId\r\n     * @param authenticationResult\r\n     * @param clientId\r\n     * @param authority\r\n     */\r\n    RefreshTokenEntity.createRefreshTokenEntity = function (homeAccountId, environment, refreshToken, clientId, familyId, userAssertionHash) {\r\n        var rtEntity = new RefreshTokenEntity();\r\n        rtEntity.clientId = clientId;\r\n        rtEntity.credentialType = CredentialType.REFRESH_TOKEN;\r\n        rtEntity.environment = environment;\r\n        rtEntity.homeAccountId = homeAccountId;\r\n        rtEntity.secret = refreshToken;\r\n        rtEntity.userAssertionHash = userAssertionHash;\r\n        if (familyId)\r\n            rtEntity.familyId = familyId;\r\n        return rtEntity;\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    RefreshTokenEntity.isRefreshTokenEntity = function (entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (entity.hasOwnProperty(\"homeAccountId\") &&\r\n            entity.hasOwnProperty(\"environment\") &&\r\n            entity.hasOwnProperty(\"credentialType\") &&\r\n            entity.hasOwnProperty(\"clientId\") &&\r\n            entity.hasOwnProperty(\"secret\") &&\r\n            entity[\"credentialType\"] === CredentialType.REFRESH_TOKEN);\r\n    };\r\n    return RefreshTokenEntity;\r\n}(CredentialEntity));\n\nexport { RefreshTokenEntity };\n//# sourceMappingURL=RefreshTokenEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { Separators, APP_METADATA } from '../../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * APP_METADATA Cache\r\n *\r\n * Key:Value Schema:\r\n *\r\n * Key: appmetadata-<environment>-<client_id>\r\n *\r\n * Value:\r\n * {\r\n *      clientId: client ID of the application\r\n *      environment: entity that issued the token, represented as a full host\r\n *      familyId: Family ID identifier, '1' represents Microsoft Family\r\n * }\r\n */\r\nvar AppMetadataEntity = /** @class */ (function () {\r\n    function AppMetadataEntity() {\r\n    }\r\n    /**\r\n     * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id>\r\n     */\r\n    AppMetadataEntity.prototype.generateAppMetadataKey = function () {\r\n        return AppMetadataEntity.generateAppMetadataCacheKey(this.environment, this.clientId);\r\n    };\r\n    /**\r\n     * Generate AppMetadata Cache Key\r\n     */\r\n    AppMetadataEntity.generateAppMetadataCacheKey = function (environment, clientId) {\r\n        var appMetaDataKeyArray = [\r\n            APP_METADATA,\r\n            environment,\r\n            clientId,\r\n        ];\r\n        return appMetaDataKeyArray.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * Creates AppMetadataEntity\r\n     * @param clientId\r\n     * @param environment\r\n     * @param familyId\r\n     */\r\n    AppMetadataEntity.createAppMetadataEntity = function (clientId, environment, familyId) {\r\n        var appMetadata = new AppMetadataEntity();\r\n        appMetadata.clientId = clientId;\r\n        appMetadata.environment = environment;\r\n        if (familyId) {\r\n            appMetadata.familyId = familyId;\r\n        }\r\n        return appMetadata;\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    AppMetadataEntity.isAppMetadataEntity = function (key, entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (key.indexOf(APP_METADATA) === 0 &&\r\n            entity.hasOwnProperty(\"clientId\") &&\r\n            entity.hasOwnProperty(\"environment\"));\r\n    };\r\n    return AppMetadataEntity;\r\n}());\n\nexport { AppMetadataEntity };\n//# sourceMappingURL=AppMetadataEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { SERVER_TELEM_CONSTANTS } from '../../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ServerTelemetryEntity = /** @class */ (function () {\r\n    function ServerTelemetryEntity() {\r\n        this.failedRequests = [];\r\n        this.errors = [];\r\n        this.cacheHits = 0;\r\n    }\r\n    /**\r\n     * validates if a given cache entry is \"Telemetry\", parses <key,value>\r\n     * @param key\r\n     * @param entity\r\n     */\r\n    ServerTelemetryEntity.isServerTelemetryEntity = function (key, entity) {\r\n        var validateKey = key.indexOf(SERVER_TELEM_CONSTANTS.CACHE_KEY) === 0;\r\n        var validateEntity = true;\r\n        if (entity) {\r\n            validateEntity =\r\n                entity.hasOwnProperty(\"failedRequests\") &&\r\n                    entity.hasOwnProperty(\"errors\") &&\r\n                    entity.hasOwnProperty(\"cacheHits\");\r\n        }\r\n        return validateKey && validateEntity;\r\n    };\r\n    return ServerTelemetryEntity;\r\n}());\n\nexport { ServerTelemetryEntity };\n//# sourceMappingURL=ServerTelemetryEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { AUTHORITY_METADATA_CONSTANTS } from '../../utils/Constants.js';\nimport { TimeUtils } from '../../utils/TimeUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar AuthorityMetadataEntity = /** @class */ (function () {\r\n    function AuthorityMetadataEntity() {\r\n        this.expiresAt = TimeUtils.nowSeconds() + AUTHORITY_METADATA_CONSTANTS.REFRESH_TIME_SECONDS;\r\n    }\r\n    /**\r\n     * Update the entity with new aliases, preferred_cache and preferred_network values\r\n     * @param metadata\r\n     * @param fromNetwork\r\n     */\r\n    AuthorityMetadataEntity.prototype.updateCloudDiscoveryMetadata = function (metadata, fromNetwork) {\r\n        this.aliases = metadata.aliases;\r\n        this.preferred_cache = metadata.preferred_cache;\r\n        this.preferred_network = metadata.preferred_network;\r\n        this.aliasesFromNetwork = fromNetwork;\r\n    };\r\n    /**\r\n     * Update the entity with new endpoints\r\n     * @param metadata\r\n     * @param fromNetwork\r\n     */\r\n    AuthorityMetadataEntity.prototype.updateEndpointMetadata = function (metadata, fromNetwork) {\r\n        this.authorization_endpoint = metadata.authorization_endpoint;\r\n        this.token_endpoint = metadata.token_endpoint;\r\n        this.end_session_endpoint = metadata.end_session_endpoint;\r\n        this.issuer = metadata.issuer;\r\n        this.endpointsFromNetwork = fromNetwork;\r\n        this.jwks_uri = metadata.jwks_uri;\r\n    };\r\n    /**\r\n     * Save the authority that was used to create this cache entry\r\n     * @param authority\r\n     */\r\n    AuthorityMetadataEntity.prototype.updateCanonicalAuthority = function (authority) {\r\n        this.canonical_authority = authority;\r\n    };\r\n    /**\r\n     * Reset the exiresAt value\r\n     */\r\n    AuthorityMetadataEntity.prototype.resetExpiresAt = function () {\r\n        this.expiresAt = TimeUtils.nowSeconds() + AUTHORITY_METADATA_CONSTANTS.REFRESH_TIME_SECONDS;\r\n    };\r\n    /**\r\n     * Returns whether or not the data needs to be refreshed\r\n     */\r\n    AuthorityMetadataEntity.prototype.isExpired = function () {\r\n        return this.expiresAt <= TimeUtils.nowSeconds();\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    AuthorityMetadataEntity.isAuthorityMetadataEntity = function (key, entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (key.indexOf(AUTHORITY_METADATA_CONSTANTS.CACHE_KEY) === 0 &&\r\n            entity.hasOwnProperty(\"aliases\") &&\r\n            entity.hasOwnProperty(\"preferred_cache\") &&\r\n            entity.hasOwnProperty(\"preferred_network\") &&\r\n            entity.hasOwnProperty(\"canonical_authority\") &&\r\n            entity.hasOwnProperty(\"authorization_endpoint\") &&\r\n            entity.hasOwnProperty(\"token_endpoint\") &&\r\n            entity.hasOwnProperty(\"issuer\") &&\r\n            entity.hasOwnProperty(\"aliasesFromNetwork\") &&\r\n            entity.hasOwnProperty(\"endpointsFromNetwork\") &&\r\n            entity.hasOwnProperty(\"expiresAt\") &&\r\n            entity.hasOwnProperty(\"jwks_uri\"));\r\n    };\r\n    return AuthorityMetadataEntity;\r\n}());\n\nexport { AuthorityMetadataEntity };\n//# sourceMappingURL=AuthorityMetadataEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ThrottlingConstants } from '../../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ThrottlingEntity = /** @class */ (function () {\r\n    function ThrottlingEntity() {\r\n    }\r\n    /**\r\n     * validates if a given cache entry is \"Throttling\", parses <key,value>\r\n     * @param key\r\n     * @param entity\r\n     */\r\n    ThrottlingEntity.isThrottlingEntity = function (key, entity) {\r\n        var validateKey = false;\r\n        if (key) {\r\n            validateKey = key.indexOf(ThrottlingConstants.THROTTLING_PREFIX) === 0;\r\n        }\r\n        var validateEntity = true;\r\n        if (entity) {\r\n            validateEntity = entity.hasOwnProperty(\"throttleTime\");\r\n        }\r\n        return validateKey && validateEntity;\r\n    };\r\n    return ThrottlingEntity;\r\n}());\n\nexport { ThrottlingEntity };\n//# sourceMappingURL=ThrottlingEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { StringUtils } from './StringUtils.js';\nimport { Constants } from './Constants.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Class which provides helpers for OAuth 2.0 protocol specific values\r\n */\r\nvar ProtocolUtils = /** @class */ (function () {\r\n    function ProtocolUtils() {\r\n    }\r\n    /**\r\n     * Appends user state with random guid, or returns random guid.\r\n     * @param userState\r\n     * @param randomGuid\r\n     */\r\n    ProtocolUtils.setRequestState = function (cryptoObj, userState, meta) {\r\n        var libraryState = ProtocolUtils.generateLibraryState(cryptoObj, meta);\r\n        return !StringUtils.isEmpty(userState) ? \"\" + libraryState + Constants.RESOURCE_DELIM + userState : libraryState;\r\n    };\r\n    /**\r\n     * Generates the state value used by the common library.\r\n     * @param randomGuid\r\n     * @param cryptoObj\r\n     */\r\n    ProtocolUtils.generateLibraryState = function (cryptoObj, meta) {\r\n        if (!cryptoObj) {\r\n            throw ClientAuthError.createNoCryptoObjectError(\"generateLibraryState\");\r\n        }\r\n        // Create a state object containing a unique id and the timestamp of the request creation\r\n        var stateObj = {\r\n            id: cryptoObj.createNewGuid()\r\n        };\r\n        if (meta) {\r\n            stateObj.meta = meta;\r\n        }\r\n        var stateString = JSON.stringify(stateObj);\r\n        return cryptoObj.base64Encode(stateString);\r\n    };\r\n    /**\r\n     * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.\r\n     * @param state\r\n     * @param cryptoObj\r\n     */\r\n    ProtocolUtils.parseRequestState = function (cryptoObj, state) {\r\n        if (!cryptoObj) {\r\n            throw ClientAuthError.createNoCryptoObjectError(\"parseRequestState\");\r\n        }\r\n        if (StringUtils.isEmpty(state)) {\r\n            throw ClientAuthError.createInvalidStateError(state, \"Null, undefined or empty state\");\r\n        }\r\n        try {\r\n            // Split the state between library state and user passed state and decode them separately\r\n            var splitState = state.split(Constants.RESOURCE_DELIM);\r\n            var libraryState = splitState[0];\r\n            var userState = splitState.length > 1 ? splitState.slice(1).join(Constants.RESOURCE_DELIM) : Constants.EMPTY_STRING;\r\n            var libraryStateString = cryptoObj.base64Decode(libraryState);\r\n            var libraryStateObj = JSON.parse(libraryStateString);\r\n            return {\r\n                userRequestState: !StringUtils.isEmpty(userState) ? userState : Constants.EMPTY_STRING,\r\n                libraryState: libraryStateObj\r\n            };\r\n        }\r\n        catch (e) {\r\n            throw ClientAuthError.createInvalidStateError(state, e);\r\n        }\r\n    };\r\n    return ProtocolUtils;\r\n}());\n\nexport { ProtocolUtils };\n//# sourceMappingURL=ProtocolUtils.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar CacheRecord = /** @class */ (function () {\r\n    function CacheRecord(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {\r\n        this.account = accountEntity || null;\r\n        this.idToken = idTokenEntity || null;\r\n        this.accessToken = accessTokenEntity || null;\r\n        this.refreshToken = refreshTokenEntity || null;\r\n        this.appMetadata = appMetadataEntity || null;\r\n    }\r\n    return CacheRecord;\r\n}());\n\nexport { CacheRecord };\n//# sourceMappingURL=CacheRecord.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar AzureCloudInstance;\r\n(function (AzureCloudInstance) {\r\n    // AzureCloudInstance is not specified.\r\n    AzureCloudInstance[AzureCloudInstance[\"None\"] = 0] = \"None\";\r\n    // Microsoft Azure public cloud\r\n    AzureCloudInstance[\"AzurePublic\"] = \"https://login.microsoftonline.com\";\r\n    // Microsoft PPE\r\n    AzureCloudInstance[\"AzurePpe\"] = \"https://login.windows-ppe.net\";\r\n    // Microsoft Chinese national cloud\r\n    AzureCloudInstance[\"AzureChina\"] = \"https://login.chinacloudapi.cn\";\r\n    // Microsoft German national cloud (\"Black Forest\")\r\n    AzureCloudInstance[\"AzureGermany\"] = \"https://login.microsoftonline.de\";\r\n    // US Government cloud\r\n    AzureCloudInstance[\"AzureUsGovernment\"] = \"https://login.microsoftonline.us\";\r\n})(AzureCloudInstance || (AzureCloudInstance = {}));\n\nexport { AzureCloudInstance };\n//# sourceMappingURL=AuthorityOptions.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js';\nimport { BrowserCacheLocation } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar BrowserStorage = /** @class */ (function () {\r\n    function BrowserStorage(cacheLocation) {\r\n        this.validateWindowStorage(cacheLocation);\r\n        this.windowStorage = window[cacheLocation];\r\n    }\r\n    BrowserStorage.prototype.validateWindowStorage = function (cacheLocation) {\r\n        if (cacheLocation !== BrowserCacheLocation.LocalStorage && cacheLocation !== BrowserCacheLocation.SessionStorage) {\r\n            throw BrowserConfigurationAuthError.createStorageNotSupportedError(cacheLocation);\r\n        }\r\n        var storageSupported = !!window[cacheLocation];\r\n        if (!storageSupported) {\r\n            throw BrowserConfigurationAuthError.createStorageNotSupportedError(cacheLocation);\r\n        }\r\n    };\r\n    BrowserStorage.prototype.getItem = function (key) {\r\n        return this.windowStorage.getItem(key);\r\n    };\r\n    BrowserStorage.prototype.setItem = function (key, value) {\r\n        this.windowStorage.setItem(key, value);\r\n    };\r\n    BrowserStorage.prototype.removeItem = function (key) {\r\n        this.windowStorage.removeItem(key);\r\n    };\r\n    BrowserStorage.prototype.getKeys = function () {\r\n        return Object.keys(this.windowStorage);\r\n    };\r\n    BrowserStorage.prototype.containsKey = function (key) {\r\n        return this.windowStorage.hasOwnProperty(key);\r\n    };\r\n    return BrowserStorage;\r\n}());\n\nexport { BrowserStorage };\n//# sourceMappingURL=BrowserStorage.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { AADAuthorityConstants, Constants } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Url object class which can perform various transformations on url strings.\r\n */\r\nvar UrlString = /** @class */ (function () {\r\n    function UrlString(url) {\r\n        this._urlString = url;\r\n        if (StringUtils.isEmpty(this._urlString)) {\r\n            // Throws error if url is empty\r\n            throw ClientConfigurationError.createUrlEmptyError();\r\n        }\r\n        if (StringUtils.isEmpty(this.getHash())) {\r\n            this._urlString = UrlString.canonicalizeUri(url);\r\n        }\r\n    }\r\n    Object.defineProperty(UrlString.prototype, \"urlString\", {\r\n        get: function () {\r\n            return this._urlString;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Ensure urls are lower case and end with a / character.\r\n     * @param url\r\n     */\r\n    UrlString.canonicalizeUri = function (url) {\r\n        if (url) {\r\n            var lowerCaseUrl = url.toLowerCase();\r\n            if (StringUtils.endsWith(lowerCaseUrl, \"?\")) {\r\n                lowerCaseUrl = lowerCaseUrl.slice(0, -1);\r\n            }\r\n            else if (StringUtils.endsWith(lowerCaseUrl, \"?/\")) {\r\n                lowerCaseUrl = lowerCaseUrl.slice(0, -2);\r\n            }\r\n            if (!StringUtils.endsWith(lowerCaseUrl, \"/\")) {\r\n                lowerCaseUrl += \"/\";\r\n            }\r\n            return lowerCaseUrl;\r\n        }\r\n        return url;\r\n    };\r\n    /**\r\n     * Throws if urlString passed is not a valid authority URI string.\r\n     */\r\n    UrlString.prototype.validateAsUri = function () {\r\n        // Attempts to parse url for uri components\r\n        var components;\r\n        try {\r\n            components = this.getUrlComponents();\r\n        }\r\n        catch (e) {\r\n            throw ClientConfigurationError.createUrlParseError(e);\r\n        }\r\n        // Throw error if URI or path segments are not parseable.\r\n        if (!components.HostNameAndPort || !components.PathSegments) {\r\n            throw ClientConfigurationError.createUrlParseError(\"Given url string: \" + this.urlString);\r\n        }\r\n        // Throw error if uri is insecure.\r\n        if (!components.Protocol || components.Protocol.toLowerCase() !== \"https:\") {\r\n            throw ClientConfigurationError.createInsecureAuthorityUriError(this.urlString);\r\n        }\r\n    };\r\n    /**\r\n     * Given a url and a query string return the url with provided query string appended\r\n     * @param url\r\n     * @param queryString\r\n     */\r\n    UrlString.appendQueryString = function (url, queryString) {\r\n        if (StringUtils.isEmpty(queryString)) {\r\n            return url;\r\n        }\r\n        return url.indexOf(\"?\") < 0 ? url + \"?\" + queryString : url + \"&\" + queryString;\r\n    };\r\n    /**\r\n     * Returns a url with the hash removed\r\n     * @param url\r\n     */\r\n    UrlString.removeHashFromUrl = function (url) {\r\n        return UrlString.canonicalizeUri(url.split(\"#\")[0]);\r\n    };\r\n    /**\r\n     * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d\r\n     * @param href The url\r\n     * @param tenantId The tenant id to replace\r\n     */\r\n    UrlString.prototype.replaceTenantPath = function (tenantId) {\r\n        var urlObject = this.getUrlComponents();\r\n        var pathArray = urlObject.PathSegments;\r\n        if (tenantId && (pathArray.length !== 0 && (pathArray[0] === AADAuthorityConstants.COMMON || pathArray[0] === AADAuthorityConstants.ORGANIZATIONS))) {\r\n            pathArray[0] = tenantId;\r\n        }\r\n        return UrlString.constructAuthorityUriFromObject(urlObject);\r\n    };\r\n    /**\r\n     * Returns the anchor part(#) of the URL\r\n     */\r\n    UrlString.prototype.getHash = function () {\r\n        return UrlString.parseHash(this.urlString);\r\n    };\r\n    /**\r\n     * Parses out the components from a url string.\r\n     * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url.\r\n     */\r\n    UrlString.prototype.getUrlComponents = function () {\r\n        // https://gist.github.com/curtisz/11139b2cfcaef4a261e0\r\n        var regEx = RegExp(\"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\\\?([^#]*))?(#(.*))?\");\r\n        // If url string does not match regEx, we throw an error\r\n        var match = this.urlString.match(regEx);\r\n        if (!match) {\r\n            throw ClientConfigurationError.createUrlParseError(\"Given url string: \" + this.urlString);\r\n        }\r\n        // Url component object\r\n        var urlComponents = {\r\n            Protocol: match[1],\r\n            HostNameAndPort: match[4],\r\n            AbsolutePath: match[5],\r\n            QueryString: match[7]\r\n        };\r\n        var pathSegments = urlComponents.AbsolutePath.split(\"/\");\r\n        pathSegments = pathSegments.filter(function (val) { return val && val.length > 0; }); // remove empty elements\r\n        urlComponents.PathSegments = pathSegments;\r\n        if (!StringUtils.isEmpty(urlComponents.QueryString) && urlComponents.QueryString.endsWith(\"/\")) {\r\n            urlComponents.QueryString = urlComponents.QueryString.substring(0, urlComponents.QueryString.length - 1);\r\n        }\r\n        return urlComponents;\r\n    };\r\n    UrlString.getDomainFromUrl = function (url) {\r\n        var regEx = RegExp(\"^([^:/?#]+://)?([^/?#]*)\");\r\n        var match = url.match(regEx);\r\n        if (!match) {\r\n            throw ClientConfigurationError.createUrlParseError(\"Given url string: \" + url);\r\n        }\r\n        return match[2];\r\n    };\r\n    UrlString.getAbsoluteUrl = function (relativeUrl, baseUrl) {\r\n        if (relativeUrl[0] === Constants.FORWARD_SLASH) {\r\n            var url = new UrlString(baseUrl);\r\n            var baseComponents = url.getUrlComponents();\r\n            return baseComponents.Protocol + \"//\" + baseComponents.HostNameAndPort + relativeUrl;\r\n        }\r\n        return relativeUrl;\r\n    };\r\n    /**\r\n     * Parses hash string from given string. Returns empty string if no hash symbol is found.\r\n     * @param hashString\r\n     */\r\n    UrlString.parseHash = function (hashString) {\r\n        var hashIndex1 = hashString.indexOf(\"#\");\r\n        var hashIndex2 = hashString.indexOf(\"#/\");\r\n        if (hashIndex2 > -1) {\r\n            return hashString.substring(hashIndex2 + 2);\r\n        }\r\n        else if (hashIndex1 > -1) {\r\n            return hashString.substring(hashIndex1 + 1);\r\n        }\r\n        return Constants.EMPTY_STRING;\r\n    };\r\n    /**\r\n     * Parses query string from given string. Returns empty string if no query symbol is found.\r\n     * @param queryString\r\n     */\r\n    UrlString.parseQueryString = function (queryString) {\r\n        var queryIndex1 = queryString.indexOf(\"?\");\r\n        var queryIndex2 = queryString.indexOf(\"/?\");\r\n        if (queryIndex2 > -1) {\r\n            return queryString.substring(queryIndex2 + 2);\r\n        }\r\n        else if (queryIndex1 > -1) {\r\n            return queryString.substring(queryIndex1 + 1);\r\n        }\r\n        return Constants.EMPTY_STRING;\r\n    };\r\n    UrlString.constructAuthorityUriFromObject = function (urlObject) {\r\n        return new UrlString(urlObject.Protocol + \"//\" + urlObject.HostNameAndPort + \"/\" + urlObject.PathSegments.join(\"/\"));\r\n    };\r\n    /**\r\n     * Returns URL hash as server auth code response object.\r\n     */\r\n    UrlString.getDeserializedHash = function (hash) {\r\n        // Check if given hash is empty\r\n        if (StringUtils.isEmpty(hash)) {\r\n            return {};\r\n        }\r\n        // Strip the # symbol if present\r\n        var parsedHash = UrlString.parseHash(hash);\r\n        // If # symbol was not present, above will return empty string, so give original hash value\r\n        var deserializedHash = StringUtils.queryStringToObject(StringUtils.isEmpty(parsedHash) ? hash : parsedHash);\r\n        // Check if deserialization didn't work\r\n        if (!deserializedHash) {\r\n            throw ClientAuthError.createHashNotDeserializedError(JSON.stringify(deserializedHash));\r\n        }\r\n        return deserializedHash;\r\n    };\r\n    /**\r\n     * Returns URL query string as server auth code response object.\r\n     */\r\n    UrlString.getDeserializedQueryString = function (query) {\r\n        // Check if given query is empty\r\n        if (StringUtils.isEmpty(query)) {\r\n            return {};\r\n        }\r\n        // Strip the ? symbol if present\r\n        var parsedQueryString = UrlString.parseQueryString(query);\r\n        // If ? symbol was not present, above will return empty string, so give original query value\r\n        var deserializedQueryString = StringUtils.queryStringToObject(StringUtils.isEmpty(parsedQueryString) ? query : parsedQueryString);\r\n        // Check if deserialization didn't work\r\n        if (!deserializedQueryString) {\r\n            throw ClientAuthError.createHashNotDeserializedError(JSON.stringify(deserializedQueryString));\r\n        }\r\n        return deserializedQueryString;\r\n    };\r\n    /**\r\n     * Check if the hash of the URL string contains known properties\r\n     */\r\n    UrlString.hashContainsKnownProperties = function (hash) {\r\n        if (StringUtils.isEmpty(hash) || hash.indexOf(\"=\") < 0) {\r\n            // Hash doesn't contain key/value pairs\r\n            return false;\r\n        }\r\n        var parameters = UrlString.getDeserializedHash(hash);\r\n        return !!(parameters.code ||\r\n            parameters.error_description ||\r\n            parameters.error ||\r\n            parameters.state);\r\n    };\r\n    return UrlString;\r\n}());\n\nexport { UrlString };\n//# sourceMappingURL=UrlString.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { StringUtils, ProtocolUtils, ClientAuthError, UrlString } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar BrowserProtocolUtils = /** @class */ (function () {\r\n    function BrowserProtocolUtils() {\r\n    }\r\n    /**\r\n     * Extracts the BrowserStateObject from the state string.\r\n     * @param browserCrypto\r\n     * @param state\r\n     */\r\n    BrowserProtocolUtils.extractBrowserRequestState = function (browserCrypto, state) {\r\n        if (StringUtils.isEmpty(state)) {\r\n            return null;\r\n        }\r\n        try {\r\n            var requestStateObj = ProtocolUtils.parseRequestState(browserCrypto, state);\r\n            return requestStateObj.libraryState.meta;\r\n        }\r\n        catch (e) {\r\n            throw ClientAuthError.createInvalidStateError(state, e);\r\n        }\r\n    };\r\n    /**\r\n     * Parses properties of server response from url hash\r\n     * @param locationHash Hash from url\r\n     */\r\n    BrowserProtocolUtils.parseServerResponseFromHash = function (locationHash) {\r\n        if (!locationHash) {\r\n            return {};\r\n        }\r\n        var hashUrlString = new UrlString(locationHash);\r\n        return UrlString.getDeserializedHash(hashUrlString.getHash());\r\n    };\r\n    return BrowserProtocolUtils;\r\n}());\n\nexport { BrowserProtocolUtils };\n//# sourceMappingURL=BrowserProtocolUtils.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __spread, __generator } from '../_virtual/_tslib.js';\nimport { CredentialType, RefreshTokenEntity, CacheManager, AccessTokenEntity, IdTokenEntity, AccountEntity, ClientAuthError, AppMetadataEntity, ServerTelemetryEntity, AuthorityMetadataEntity, Constants, PersistentCacheKeys, ThrottlingEntity, StringUtils, ProtocolUtils, CcsCredentialType, IdToken, CacheRecord, DEFAULT_CRYPTO_IMPLEMENTATION } from '@azure/msal-common';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { BrowserCacheLocation, StaticCacheKeys, InMemoryCacheKeys, TemporaryCacheKeys } from '../utils/BrowserConstants.js';\nimport { BrowserStorage } from './BrowserStorage.js';\nimport { MemoryStorage } from './MemoryStorage.js';\nimport { BrowserProtocolUtils } from '../utils/BrowserProtocolUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This class implements the cache storage interface for MSAL through browser local or session storage.\r\n * Cookies are only used if storeAuthStateInCookie is true, and are only used for\r\n * parameters such as state and nonce, generally.\r\n */\r\nvar BrowserCacheManager = /** @class */ (function (_super) {\r\n    __extends(BrowserCacheManager, _super);\r\n    function BrowserCacheManager(clientId, cacheConfig, cryptoImpl, logger) {\r\n        var _this = _super.call(this, clientId, cryptoImpl, logger) || this;\r\n        // Cookie life calculation (hours * minutes * seconds * ms)\r\n        _this.COOKIE_LIFE_MULTIPLIER = 24 * 60 * 60 * 1000;\r\n        _this.cacheConfig = cacheConfig;\r\n        _this.logger = logger;\r\n        _this.internalStorage = new MemoryStorage();\r\n        _this.browserStorage = _this.setupBrowserStorage(_this.cacheConfig.cacheLocation);\r\n        _this.temporaryCacheStorage = _this.setupTemporaryCacheStorage(_this.cacheConfig.temporaryCacheLocation, _this.cacheConfig.cacheLocation);\r\n        // Migrate cache entries from older versions of MSAL.\r\n        if (cacheConfig.cacheMigrationEnabled) {\r\n            _this.migrateCacheEntries();\r\n            _this.createKeyMaps();\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation.\r\n     * @param cacheLocation\r\n     */\r\n    BrowserCacheManager.prototype.setupBrowserStorage = function (cacheLocation) {\r\n        switch (cacheLocation) {\r\n            case BrowserCacheLocation.LocalStorage:\r\n            case BrowserCacheLocation.SessionStorage:\r\n                try {\r\n                    return new BrowserStorage(cacheLocation);\r\n                }\r\n                catch (e) {\r\n                    this.logger.verbose(e);\r\n                    break;\r\n                }\r\n        }\r\n        this.cacheConfig.cacheLocation = BrowserCacheLocation.MemoryStorage;\r\n        return new MemoryStorage();\r\n    };\r\n    /**\r\n     * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.\r\n     * @param temporaryCacheLocation\r\n     * @param cacheLocation\r\n     */\r\n    BrowserCacheManager.prototype.setupTemporaryCacheStorage = function (temporaryCacheLocation, cacheLocation) {\r\n        switch (cacheLocation) {\r\n            case BrowserCacheLocation.LocalStorage:\r\n            case BrowserCacheLocation.SessionStorage:\r\n                try {\r\n                    /*\r\n                     * When users do not explicitly choose their own temporaryCacheLocation,\r\n                     * temporary cache items will always be stored in session storage to mitigate problems caused by multiple tabs\r\n                     */\r\n                    return new BrowserStorage(temporaryCacheLocation || BrowserCacheLocation.SessionStorage);\r\n                }\r\n                catch (e) {\r\n                    this.logger.verbose(e);\r\n                    return this.internalStorage;\r\n                }\r\n            case BrowserCacheLocation.MemoryStorage:\r\n            default:\r\n                return this.internalStorage;\r\n        }\r\n    };\r\n    /**\r\n     * Migrate all old cache entries to new schema. No rollback supported.\r\n     * @param storeAuthStateInCookie\r\n     */\r\n    BrowserCacheManager.prototype.migrateCacheEntries = function () {\r\n        var _this = this;\r\n        var idTokenKey = Constants.CACHE_PREFIX + \".\" + PersistentCacheKeys.ID_TOKEN;\r\n        var clientInfoKey = Constants.CACHE_PREFIX + \".\" + PersistentCacheKeys.CLIENT_INFO;\r\n        var errorKey = Constants.CACHE_PREFIX + \".\" + PersistentCacheKeys.ERROR;\r\n        var errorDescKey = Constants.CACHE_PREFIX + \".\" + PersistentCacheKeys.ERROR_DESC;\r\n        var idTokenValue = this.browserStorage.getItem(idTokenKey);\r\n        var clientInfoValue = this.browserStorage.getItem(clientInfoKey);\r\n        var errorValue = this.browserStorage.getItem(errorKey);\r\n        var errorDescValue = this.browserStorage.getItem(errorDescKey);\r\n        var values = [idTokenValue, clientInfoValue, errorValue, errorDescValue];\r\n        var keysToMigrate = [PersistentCacheKeys.ID_TOKEN, PersistentCacheKeys.CLIENT_INFO, PersistentCacheKeys.ERROR, PersistentCacheKeys.ERROR_DESC];\r\n        keysToMigrate.forEach(function (cacheKey, index) { return _this.migrateCacheEntry(cacheKey, values[index]); });\r\n    };\r\n    /**\r\n     * Utility function to help with migration.\r\n     * @param newKey\r\n     * @param value\r\n     * @param storeAuthStateInCookie\r\n     */\r\n    BrowserCacheManager.prototype.migrateCacheEntry = function (newKey, value) {\r\n        if (value) {\r\n            this.setTemporaryCache(newKey, value, true);\r\n        }\r\n    };\r\n    /**\r\n     * Searches all cache entries for MSAL accounts and creates the account key map\r\n     * This is used to migrate users from older versions of MSAL which did not create the map.\r\n     * @returns\r\n     */\r\n    BrowserCacheManager.prototype.createKeyMaps = function () {\r\n        var _this = this;\r\n        this.logger.trace(\"BrowserCacheManager - createKeyMaps called.\");\r\n        var accountKeys = this.getItem(StaticCacheKeys.ACCOUNT_KEYS);\r\n        var tokenKeys = this.getItem(StaticCacheKeys.TOKEN_KEYS + \".\" + this.clientId);\r\n        if (accountKeys && tokenKeys) {\r\n            this.logger.verbose(\"BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.\");\r\n            // Key maps already exist, no need to iterate through cache\r\n            return;\r\n        }\r\n        var allKeys = this.browserStorage.getKeys();\r\n        allKeys.forEach(function (key) {\r\n            if (_this.isCredentialKey(key)) {\r\n                // Get item, parse, validate and write key to map\r\n                var value = _this.getItem(key);\r\n                if (value) {\r\n                    var credObj = _this.validateAndParseJson(value);\r\n                    if (credObj && credObj.hasOwnProperty(\"credentialType\")) {\r\n                        switch (credObj[\"credentialType\"]) {\r\n                            case CredentialType.ID_TOKEN:\r\n                                if (IdTokenEntity.isIdTokenEntity(credObj)) {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - idToken with key: \" + key + \" found, saving key to token key map\");\r\n                                    var idTokenEntity = CacheManager.toObject(new IdTokenEntity(), credObj);\r\n                                    var newKey = _this.updateCredentialCacheKey(key, idTokenEntity);\r\n                                    _this.addTokenKey(newKey, CredentialType.ID_TOKEN);\r\n                                    return;\r\n                                }\r\n                                else {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping.\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - failed idToken validation on key: \" + key);\r\n                                }\r\n                                break;\r\n                            case CredentialType.ACCESS_TOKEN:\r\n                            case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:\r\n                                if (AccessTokenEntity.isAccessTokenEntity(credObj)) {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - accessToken with key: \" + key + \" found, saving key to token key map\");\r\n                                    var accessTokenEntity = CacheManager.toObject(new AccessTokenEntity(), credObj);\r\n                                    var newKey = _this.updateCredentialCacheKey(key, accessTokenEntity);\r\n                                    _this.addTokenKey(newKey, CredentialType.ACCESS_TOKEN);\r\n                                    return;\r\n                                }\r\n                                else {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping.\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - failed accessToken validation on key: \" + key);\r\n                                }\r\n                                break;\r\n                            case CredentialType.REFRESH_TOKEN:\r\n                                if (RefreshTokenEntity.isRefreshTokenEntity(credObj)) {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - refreshToken with key: \" + key + \" found, saving key to token key map\");\r\n                                    var refreshTokenEntity = CacheManager.toObject(new RefreshTokenEntity(), credObj);\r\n                                    var newKey = _this.updateCredentialCacheKey(key, refreshTokenEntity);\r\n                                    _this.addTokenKey(newKey, CredentialType.REFRESH_TOKEN);\r\n                                    return;\r\n                                }\r\n                                else {\r\n                                    _this.logger.trace(\"BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping.\");\r\n                                    _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: \" + key);\r\n                                }\r\n                                break;\r\n                            // If credentialType isn't one of our predefined ones, it may not be an MSAL cache value. Ignore.\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            if (_this.isAccountKey(key)) {\r\n                var value = _this.getItem(key);\r\n                if (value) {\r\n                    var accountObj = _this.validateAndParseJson(value);\r\n                    if (accountObj && AccountEntity.isAccountEntity(accountObj)) {\r\n                        _this.logger.trace(\"BrowserCacheManager:createKeyMaps - account found, saving key to account key map\");\r\n                        _this.logger.tracePii(\"BrowserCacheManager:createKeyMaps - account with key: \" + key + \" found, saving key to account key map\");\r\n                        _this.addAccountKeyToMap(key);\r\n                    }\r\n                }\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * Parses passed value as JSON object, JSON.parse() will throw an error.\r\n     * @param input\r\n     */\r\n    BrowserCacheManager.prototype.validateAndParseJson = function (jsonValue) {\r\n        try {\r\n            var parsedJson = JSON.parse(jsonValue);\r\n            /**\r\n             * There are edge cases in which JSON.parse will successfully parse a non-valid JSON object\r\n             * (e.g. JSON.parse will parse an escaped string into an unescaped string), so adding a type check\r\n             * of the parsed value is necessary in order to be certain that the string represents a valid JSON object.\r\n             *\r\n             */\r\n            return (parsedJson && typeof parsedJson === \"object\") ? parsedJson : null;\r\n        }\r\n        catch (error) {\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * fetches the entry from the browser storage based off the key\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.getItem = function (key) {\r\n        return this.browserStorage.getItem(key);\r\n    };\r\n    /**\r\n     * sets the entry in the browser storage\r\n     * @param key\r\n     * @param value\r\n     */\r\n    BrowserCacheManager.prototype.setItem = function (key, value) {\r\n        this.browserStorage.setItem(key, value);\r\n    };\r\n    /**\r\n     * fetch the account entity from the platform cache\r\n     * @param accountKey\r\n     */\r\n    BrowserCacheManager.prototype.getAccount = function (accountKey) {\r\n        this.logger.trace(\"BrowserCacheManager.getAccount called\");\r\n        var account = this.getItem(accountKey);\r\n        if (!account) {\r\n            this.removeAccountKeyFromMap(accountKey);\r\n            return null;\r\n        }\r\n        var parsedAccount = this.validateAndParseJson(account);\r\n        if (!parsedAccount || !AccountEntity.isAccountEntity(parsedAccount)) {\r\n            this.removeAccountKeyFromMap(accountKey);\r\n            return null;\r\n        }\r\n        return CacheManager.toObject(new AccountEntity(), parsedAccount);\r\n    };\r\n    /**\r\n     * set account entity in the platform cache\r\n     * @param key\r\n     * @param value\r\n     */\r\n    BrowserCacheManager.prototype.setAccount = function (account) {\r\n        this.logger.trace(\"BrowserCacheManager.setAccount called\");\r\n        var key = account.generateAccountKey();\r\n        this.setItem(key, JSON.stringify(account));\r\n        this.addAccountKeyToMap(key);\r\n    };\r\n    /**\r\n     * Returns the array of account keys currently cached\r\n     * @returns\r\n     */\r\n    BrowserCacheManager.prototype.getAccountKeys = function () {\r\n        this.logger.trace(\"BrowserCacheManager.getAccountKeys called\");\r\n        var accountKeys = this.getItem(StaticCacheKeys.ACCOUNT_KEYS);\r\n        if (accountKeys) {\r\n            return JSON.parse(accountKeys);\r\n        }\r\n        this.logger.verbose(\"BrowserCacheManager.getAccountKeys - No account keys found\");\r\n        return [];\r\n    };\r\n    /**\r\n     * Add a new account to the key map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.addAccountKeyToMap = function (key) {\r\n        this.logger.trace(\"BrowserCacheManager.addAccountKeyToMap called\");\r\n        this.logger.tracePii(\"BrowserCacheManager.addAccountKeyToMap called with key: \" + key);\r\n        var accountKeys = this.getAccountKeys();\r\n        if (accountKeys.indexOf(key) === -1) {\r\n            // Only add key if it does not already exist in the map\r\n            accountKeys.push(key);\r\n            this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys));\r\n            this.logger.verbose(\"BrowserCacheManager.addAccountKeyToMap account key added\");\r\n        }\r\n        else {\r\n            this.logger.verbose(\"BrowserCacheManager.addAccountKeyToMap account key already exists in map\");\r\n        }\r\n    };\r\n    /**\r\n     * Remove an account from the key map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeAccountKeyFromMap = function (key) {\r\n        this.logger.trace(\"BrowserCacheManager.removeAccountKeyFromMap called\");\r\n        this.logger.tracePii(\"BrowserCacheManager.removeAccountKeyFromMap called with key: \" + key);\r\n        var accountKeys = this.getAccountKeys();\r\n        var removalIndex = accountKeys.indexOf(key);\r\n        if (removalIndex > -1) {\r\n            accountKeys.splice(removalIndex, 1);\r\n            this.setItem(StaticCacheKeys.ACCOUNT_KEYS, JSON.stringify(accountKeys));\r\n            this.logger.trace(\"BrowserCacheManager.removeAccountKeyFromMap account key removed\");\r\n        }\r\n        else {\r\n            this.logger.trace(\"BrowserCacheManager.removeAccountKeyFromMap key not found in existing map\");\r\n        }\r\n    };\r\n    /**\r\n     * Extends inherited removeAccount function to include removal of the account key from the map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeAccount = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                _super.prototype.removeAccount.call(this, key);\r\n                this.removeAccountKeyFromMap(key);\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes given idToken from the cache and from the key map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeIdToken = function (key) {\r\n        _super.prototype.removeIdToken.call(this, key);\r\n        this.removeTokenKey(key, CredentialType.ID_TOKEN);\r\n    };\r\n    /**\r\n     * Removes given accessToken from the cache and from the key map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeAccessToken = function (key) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                _super.prototype.removeAccessToken.call(this, key);\r\n                this.removeTokenKey(key, CredentialType.ACCESS_TOKEN);\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Removes given refreshToken from the cache and from the key map\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeRefreshToken = function (key) {\r\n        _super.prototype.removeRefreshToken.call(this, key);\r\n        this.removeTokenKey(key, CredentialType.REFRESH_TOKEN);\r\n    };\r\n    /**\r\n     * Gets the keys for the cached tokens associated with this clientId\r\n     * @returns\r\n     */\r\n    BrowserCacheManager.prototype.getTokenKeys = function () {\r\n        this.logger.trace(\"BrowserCacheManager.getTokenKeys called\");\r\n        var item = this.getItem(StaticCacheKeys.TOKEN_KEYS + \".\" + this.clientId);\r\n        if (item) {\r\n            var tokenKeys = this.validateAndParseJson(item);\r\n            if (tokenKeys &&\r\n                tokenKeys.hasOwnProperty(\"idToken\") &&\r\n                tokenKeys.hasOwnProperty(\"accessToken\") &&\r\n                tokenKeys.hasOwnProperty(\"refreshToken\")) {\r\n                return tokenKeys;\r\n            }\r\n            else {\r\n                this.logger.error(\"BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.\");\r\n            }\r\n        }\r\n        else {\r\n            this.logger.verbose(\"BrowserCacheManager.getTokenKeys - No token keys found\");\r\n        }\r\n        return {\r\n            idToken: [],\r\n            accessToken: [],\r\n            refreshToken: []\r\n        };\r\n    };\r\n    /**\r\n     * Adds the given key to the token key map\r\n     * @param key\r\n     * @param type\r\n     */\r\n    BrowserCacheManager.prototype.addTokenKey = function (key, type) {\r\n        this.logger.trace(\"BrowserCacheManager addTokenKey called\");\r\n        var tokenKeys = this.getTokenKeys();\r\n        switch (type) {\r\n            case CredentialType.ID_TOKEN:\r\n                if (tokenKeys.idToken.indexOf(key) === -1) {\r\n                    this.logger.info(\"BrowserCacheManager: addTokenKey - idToken added to map\");\r\n                    tokenKeys.idToken.push(key);\r\n                }\r\n                break;\r\n            case CredentialType.ACCESS_TOKEN:\r\n                if (tokenKeys.accessToken.indexOf(key) === -1) {\r\n                    this.logger.info(\"BrowserCacheManager: addTokenKey - accessToken added to map\");\r\n                    tokenKeys.accessToken.push(key);\r\n                }\r\n                break;\r\n            case CredentialType.REFRESH_TOKEN:\r\n                if (tokenKeys.refreshToken.indexOf(key) === -1) {\r\n                    this.logger.info(\"BrowserCacheManager: addTokenKey - refreshToken added to map\");\r\n                    tokenKeys.refreshToken.push(key);\r\n                }\r\n                break;\r\n            default:\r\n                this.logger.error(\"BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: \" + type);\r\n                ClientAuthError.createUnexpectedCredentialTypeError();\r\n        }\r\n        this.setItem(StaticCacheKeys.TOKEN_KEYS + \".\" + this.clientId, JSON.stringify(tokenKeys));\r\n    };\r\n    /**\r\n     * Removes the given key from the token key map\r\n     * @param key\r\n     * @param type\r\n     */\r\n    BrowserCacheManager.prototype.removeTokenKey = function (key, type) {\r\n        this.logger.trace(\"BrowserCacheManager removeTokenKey called\");\r\n        var tokenKeys = this.getTokenKeys();\r\n        switch (type) {\r\n            case CredentialType.ID_TOKEN:\r\n                this.logger.infoPii(\"BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: \" + key + \" from map\");\r\n                var idRemoval = tokenKeys.idToken.indexOf(key);\r\n                if (idRemoval > -1) {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - idToken removed from map\");\r\n                    tokenKeys.idToken.splice(idRemoval, 1);\r\n                }\r\n                else {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.\");\r\n                }\r\n                break;\r\n            case CredentialType.ACCESS_TOKEN:\r\n                this.logger.infoPii(\"BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: \" + key + \" from map\");\r\n                var accessRemoval = tokenKeys.accessToken.indexOf(key);\r\n                if (accessRemoval > -1) {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - accessToken removed from map\");\r\n                    tokenKeys.accessToken.splice(accessRemoval, 1);\r\n                }\r\n                else {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.\");\r\n                }\r\n                break;\r\n            case CredentialType.REFRESH_TOKEN:\r\n                this.logger.infoPii(\"BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: \" + key + \" from map\");\r\n                var refreshRemoval = tokenKeys.refreshToken.indexOf(key);\r\n                if (refreshRemoval > -1) {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - refreshToken removed from map\");\r\n                    tokenKeys.refreshToken.splice(refreshRemoval, 1);\r\n                }\r\n                else {\r\n                    this.logger.info(\"BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.\");\r\n                }\r\n                break;\r\n            default:\r\n                this.logger.error(\"BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: \" + type);\r\n                ClientAuthError.createUnexpectedCredentialTypeError();\r\n        }\r\n        this.setItem(StaticCacheKeys.TOKEN_KEYS + \".\" + this.clientId, JSON.stringify(tokenKeys));\r\n    };\r\n    /**\r\n     * generates idToken entity from a string\r\n     * @param idTokenKey\r\n     */\r\n    BrowserCacheManager.prototype.getIdTokenCredential = function (idTokenKey) {\r\n        var value = this.getItem(idTokenKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getIdTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(idTokenKey, CredentialType.ID_TOKEN);\r\n            return null;\r\n        }\r\n        var parsedIdToken = this.validateAndParseJson(value);\r\n        if (!parsedIdToken || !IdTokenEntity.isIdTokenEntity(parsedIdToken)) {\r\n            this.logger.trace(\"BrowserCacheManager.getIdTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(idTokenKey, CredentialType.ID_TOKEN);\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getIdTokenCredential: cache hit\");\r\n        return CacheManager.toObject(new IdTokenEntity(), parsedIdToken);\r\n    };\r\n    /**\r\n     * set IdToken credential to the platform cache\r\n     * @param idToken\r\n     */\r\n    BrowserCacheManager.prototype.setIdTokenCredential = function (idToken) {\r\n        this.logger.trace(\"BrowserCacheManager.setIdTokenCredential called\");\r\n        var idTokenKey = idToken.generateCredentialKey();\r\n        this.setItem(idTokenKey, JSON.stringify(idToken));\r\n        this.addTokenKey(idTokenKey, CredentialType.ID_TOKEN);\r\n    };\r\n    /**\r\n     * generates accessToken entity from a string\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.getAccessTokenCredential = function (accessTokenKey) {\r\n        var value = this.getItem(accessTokenKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getAccessTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(accessTokenKey, CredentialType.ACCESS_TOKEN);\r\n            return null;\r\n        }\r\n        var parsedAccessToken = this.validateAndParseJson(value);\r\n        if (!parsedAccessToken || !AccessTokenEntity.isAccessTokenEntity(parsedAccessToken)) {\r\n            this.logger.trace(\"BrowserCacheManager.getAccessTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(accessTokenKey, CredentialType.ACCESS_TOKEN);\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getAccessTokenCredential: cache hit\");\r\n        return CacheManager.toObject(new AccessTokenEntity(), parsedAccessToken);\r\n    };\r\n    /**\r\n     * set accessToken credential to the platform cache\r\n     * @param accessToken\r\n     */\r\n    BrowserCacheManager.prototype.setAccessTokenCredential = function (accessToken) {\r\n        this.logger.trace(\"BrowserCacheManager.setAccessTokenCredential called\");\r\n        var accessTokenKey = accessToken.generateCredentialKey();\r\n        this.setItem(accessTokenKey, JSON.stringify(accessToken));\r\n        this.addTokenKey(accessTokenKey, CredentialType.ACCESS_TOKEN);\r\n    };\r\n    /**\r\n     * generates refreshToken entity from a string\r\n     * @param refreshTokenKey\r\n     */\r\n    BrowserCacheManager.prototype.getRefreshTokenCredential = function (refreshTokenKey) {\r\n        var value = this.getItem(refreshTokenKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(refreshTokenKey, CredentialType.REFRESH_TOKEN);\r\n            return null;\r\n        }\r\n        var parsedRefreshToken = this.validateAndParseJson(value);\r\n        if (!parsedRefreshToken || !RefreshTokenEntity.isRefreshTokenEntity(parsedRefreshToken)) {\r\n            this.logger.trace(\"BrowserCacheManager.getRefreshTokenCredential: called, no cache hit\");\r\n            this.removeTokenKey(refreshTokenKey, CredentialType.REFRESH_TOKEN);\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getRefreshTokenCredential: cache hit\");\r\n        return CacheManager.toObject(new RefreshTokenEntity(), parsedRefreshToken);\r\n    };\r\n    /**\r\n     * set refreshToken credential to the platform cache\r\n     * @param refreshToken\r\n     */\r\n    BrowserCacheManager.prototype.setRefreshTokenCredential = function (refreshToken) {\r\n        this.logger.trace(\"BrowserCacheManager.setRefreshTokenCredential called\");\r\n        var refreshTokenKey = refreshToken.generateCredentialKey();\r\n        this.setItem(refreshTokenKey, JSON.stringify(refreshToken));\r\n        this.addTokenKey(refreshTokenKey, CredentialType.REFRESH_TOKEN);\r\n    };\r\n    /**\r\n     * fetch appMetadata entity from the platform cache\r\n     * @param appMetadataKey\r\n     */\r\n    BrowserCacheManager.prototype.getAppMetadata = function (appMetadataKey) {\r\n        var value = this.getItem(appMetadataKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getAppMetadata: called, no cache hit\");\r\n            return null;\r\n        }\r\n        var parsedMetadata = this.validateAndParseJson(value);\r\n        if (!parsedMetadata || !AppMetadataEntity.isAppMetadataEntity(appMetadataKey, parsedMetadata)) {\r\n            this.logger.trace(\"BrowserCacheManager.getAppMetadata: called, no cache hit\");\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getAppMetadata: cache hit\");\r\n        return CacheManager.toObject(new AppMetadataEntity(), parsedMetadata);\r\n    };\r\n    /**\r\n     * set appMetadata entity to the platform cache\r\n     * @param appMetadata\r\n     */\r\n    BrowserCacheManager.prototype.setAppMetadata = function (appMetadata) {\r\n        this.logger.trace(\"BrowserCacheManager.setAppMetadata called\");\r\n        var appMetadataKey = appMetadata.generateAppMetadataKey();\r\n        this.setItem(appMetadataKey, JSON.stringify(appMetadata));\r\n    };\r\n    /**\r\n     * fetch server telemetry entity from the platform cache\r\n     * @param serverTelemetryKey\r\n     */\r\n    BrowserCacheManager.prototype.getServerTelemetry = function (serverTelemetryKey) {\r\n        var value = this.getItem(serverTelemetryKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getServerTelemetry: called, no cache hit\");\r\n            return null;\r\n        }\r\n        var parsedMetadata = this.validateAndParseJson(value);\r\n        if (!parsedMetadata || !ServerTelemetryEntity.isServerTelemetryEntity(serverTelemetryKey, parsedMetadata)) {\r\n            this.logger.trace(\"BrowserCacheManager.getServerTelemetry: called, no cache hit\");\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getServerTelemetry: cache hit\");\r\n        return CacheManager.toObject(new ServerTelemetryEntity(), parsedMetadata);\r\n    };\r\n    /**\r\n     * set server telemetry entity to the platform cache\r\n     * @param serverTelemetryKey\r\n     * @param serverTelemetry\r\n     */\r\n    BrowserCacheManager.prototype.setServerTelemetry = function (serverTelemetryKey, serverTelemetry) {\r\n        this.logger.trace(\"BrowserCacheManager.setServerTelemetry called\");\r\n        this.setItem(serverTelemetryKey, JSON.stringify(serverTelemetry));\r\n    };\r\n    /**\r\n     *\r\n     */\r\n    BrowserCacheManager.prototype.getAuthorityMetadata = function (key) {\r\n        var value = this.internalStorage.getItem(key);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getAuthorityMetadata: called, no cache hit\");\r\n            return null;\r\n        }\r\n        var parsedMetadata = this.validateAndParseJson(value);\r\n        if (parsedMetadata && AuthorityMetadataEntity.isAuthorityMetadataEntity(key, parsedMetadata)) {\r\n            this.logger.trace(\"BrowserCacheManager.getAuthorityMetadata: cache hit\");\r\n            return CacheManager.toObject(new AuthorityMetadataEntity(), parsedMetadata);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     *\r\n     */\r\n    BrowserCacheManager.prototype.getAuthorityMetadataKeys = function () {\r\n        var _this = this;\r\n        var allKeys = this.internalStorage.getKeys();\r\n        return allKeys.filter(function (key) {\r\n            return _this.isAuthorityMetadata(key);\r\n        });\r\n    };\r\n    /**\r\n     * Sets wrapper metadata in memory\r\n     * @param wrapperSKU\r\n     * @param wrapperVersion\r\n     */\r\n    BrowserCacheManager.prototype.setWrapperMetadata = function (wrapperSKU, wrapperVersion) {\r\n        this.internalStorage.setItem(InMemoryCacheKeys.WRAPPER_SKU, wrapperSKU);\r\n        this.internalStorage.setItem(InMemoryCacheKeys.WRAPPER_VER, wrapperVersion);\r\n    };\r\n    /**\r\n     * Returns wrapper metadata from in-memory storage\r\n     */\r\n    BrowserCacheManager.prototype.getWrapperMetadata = function () {\r\n        var sku = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_SKU) || Constants.EMPTY_STRING;\r\n        var version = this.internalStorage.getItem(InMemoryCacheKeys.WRAPPER_VER) || Constants.EMPTY_STRING;\r\n        return [sku, version];\r\n    };\r\n    /**\r\n     *\r\n     * @param entity\r\n     */\r\n    BrowserCacheManager.prototype.setAuthorityMetadata = function (key, entity) {\r\n        this.logger.trace(\"BrowserCacheManager.setAuthorityMetadata called\");\r\n        this.internalStorage.setItem(key, JSON.stringify(entity));\r\n    };\r\n    /**\r\n     * Gets the active account\r\n     */\r\n    BrowserCacheManager.prototype.getActiveAccount = function () {\r\n        var activeAccountKeyFilters = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);\r\n        var activeAccountValueFilters = this.getItem(activeAccountKeyFilters);\r\n        if (!activeAccountValueFilters) {\r\n            // if new active account cache type isn't found, it's an old version, so look for that instead\r\n            this.logger.trace(\"BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema\");\r\n            var activeAccountKeyLocal = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT);\r\n            var activeAccountValueLocal = this.getItem(activeAccountKeyLocal);\r\n            if (!activeAccountValueLocal) {\r\n                this.logger.trace(\"BrowserCacheManager.getActiveAccount: No active account found\");\r\n                return null;\r\n            }\r\n            var activeAccount = this.getAccountInfoByFilter({ localAccountId: activeAccountValueLocal })[0] || null;\r\n            if (activeAccount) {\r\n                this.logger.trace(\"BrowserCacheManager.getActiveAccount: Legacy active account cache schema found\");\r\n                this.logger.trace(\"BrowserCacheManager.getActiveAccount: Adding active account filters cache schema\");\r\n                this.setActiveAccount(activeAccount);\r\n                return activeAccount;\r\n            }\r\n            return null;\r\n        }\r\n        var activeAccountValueObj = this.validateAndParseJson(activeAccountValueFilters);\r\n        if (activeAccountValueObj) {\r\n            this.logger.trace(\"BrowserCacheManager.getActiveAccount: Active account filters schema found\");\r\n            return this.getAccountInfoByFilter({\r\n                homeAccountId: activeAccountValueObj.homeAccountId,\r\n                localAccountId: activeAccountValueObj.localAccountId\r\n            })[0] || null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getActiveAccount: No active account found\");\r\n        return null;\r\n    };\r\n    /**\r\n     * Sets the active account's localAccountId in cache\r\n     * @param account\r\n     */\r\n    BrowserCacheManager.prototype.setActiveAccount = function (account) {\r\n        var activeAccountKey = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);\r\n        var activeAccountKeyLocal = this.generateCacheKey(PersistentCacheKeys.ACTIVE_ACCOUNT);\r\n        if (account) {\r\n            this.logger.verbose(\"setActiveAccount: Active account set\");\r\n            var activeAccountValue = {\r\n                homeAccountId: account.homeAccountId,\r\n                localAccountId: account.localAccountId\r\n            };\r\n            this.browserStorage.setItem(activeAccountKey, JSON.stringify(activeAccountValue));\r\n            this.browserStorage.setItem(activeAccountKeyLocal, account.localAccountId);\r\n        }\r\n        else {\r\n            this.logger.verbose(\"setActiveAccount: No account passed, active account not set\");\r\n            this.browserStorage.removeItem(activeAccountKey);\r\n            this.browserStorage.removeItem(activeAccountKeyLocal);\r\n        }\r\n    };\r\n    /**\r\n     * Gets a list of accounts that match all of the filters provided\r\n     * @param account\r\n     */\r\n    BrowserCacheManager.prototype.getAccountInfoByFilter = function (accountFilter) {\r\n        var allAccounts = this.getAllAccounts();\r\n        this.logger.trace(\"BrowserCacheManager.getAccountInfoByFilter: total \" + allAccounts.length + \" accounts found\");\r\n        return allAccounts.filter(function (accountObj) {\r\n            if (accountFilter.username && accountFilter.username.toLowerCase() !== accountObj.username.toLowerCase()) {\r\n                return false;\r\n            }\r\n            if (accountFilter.homeAccountId && accountFilter.homeAccountId !== accountObj.homeAccountId) {\r\n                return false;\r\n            }\r\n            if (accountFilter.localAccountId && accountFilter.localAccountId !== accountObj.localAccountId) {\r\n                return false;\r\n            }\r\n            if (accountFilter.tenantId && accountFilter.tenantId !== accountObj.tenantId) {\r\n                return false;\r\n            }\r\n            if (accountFilter.environment && accountFilter.environment !== accountObj.environment) {\r\n                return false;\r\n            }\r\n            return true;\r\n        });\r\n    };\r\n    /**\r\n     * Checks the cache for accounts matching loginHint or SID\r\n     * @param loginHint\r\n     * @param sid\r\n     */\r\n    BrowserCacheManager.prototype.getAccountInfoByHints = function (loginHint, sid) {\r\n        var matchingAccounts = this.getAllAccounts().filter(function (accountInfo) {\r\n            if (sid) {\r\n                var accountSid = accountInfo.idTokenClaims && accountInfo.idTokenClaims[\"sid\"];\r\n                return sid === accountSid;\r\n            }\r\n            if (loginHint) {\r\n                return loginHint === accountInfo.username;\r\n            }\r\n            return false;\r\n        });\r\n        if (matchingAccounts.length === 1) {\r\n            return matchingAccounts[0];\r\n        }\r\n        else if (matchingAccounts.length > 1) {\r\n            throw ClientAuthError.createMultipleMatchingAccountsInCacheError();\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * fetch throttling entity from the platform cache\r\n     * @param throttlingCacheKey\r\n     */\r\n    BrowserCacheManager.prototype.getThrottlingCache = function (throttlingCacheKey) {\r\n        var value = this.getItem(throttlingCacheKey);\r\n        if (!value) {\r\n            this.logger.trace(\"BrowserCacheManager.getThrottlingCache: called, no cache hit\");\r\n            return null;\r\n        }\r\n        var parsedThrottlingCache = this.validateAndParseJson(value);\r\n        if (!parsedThrottlingCache || !ThrottlingEntity.isThrottlingEntity(throttlingCacheKey, parsedThrottlingCache)) {\r\n            this.logger.trace(\"BrowserCacheManager.getThrottlingCache: called, no cache hit\");\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getThrottlingCache: cache hit\");\r\n        return CacheManager.toObject(new ThrottlingEntity(), parsedThrottlingCache);\r\n    };\r\n    /**\r\n     * set throttling entity to the platform cache\r\n     * @param throttlingCacheKey\r\n     * @param throttlingCache\r\n     */\r\n    BrowserCacheManager.prototype.setThrottlingCache = function (throttlingCacheKey, throttlingCache) {\r\n        this.logger.trace(\"BrowserCacheManager.setThrottlingCache called\");\r\n        this.setItem(throttlingCacheKey, JSON.stringify(throttlingCache));\r\n    };\r\n    /**\r\n     * Gets cache item with given key.\r\n     * Will retrieve from cookies if storeAuthStateInCookie is set to true.\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.getTemporaryCache = function (cacheKey, generateKey) {\r\n        var key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;\r\n        if (this.cacheConfig.storeAuthStateInCookie) {\r\n            var itemCookie = this.getItemCookie(key);\r\n            if (itemCookie) {\r\n                this.logger.trace(\"BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies\");\r\n                return itemCookie;\r\n            }\r\n        }\r\n        var value = this.temporaryCacheStorage.getItem(key);\r\n        if (!value) {\r\n            // If temp cache item not found in session/memory, check local storage for items set by old versions\r\n            if (this.cacheConfig.cacheLocation === BrowserCacheLocation.LocalStorage) {\r\n                var item = this.browserStorage.getItem(key);\r\n                if (item) {\r\n                    this.logger.trace(\"BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage\");\r\n                    return item;\r\n                }\r\n            }\r\n            this.logger.trace(\"BrowserCacheManager.getTemporaryCache: No cache item found in local storage\");\r\n            return null;\r\n        }\r\n        this.logger.trace(\"BrowserCacheManager.getTemporaryCache: Temporary cache item returned\");\r\n        return value;\r\n    };\r\n    /**\r\n     * Sets the cache item with the key and value given.\r\n     * Stores in cookie if storeAuthStateInCookie is set to true.\r\n     * This can cause cookie overflow if used incorrectly.\r\n     * @param key\r\n     * @param value\r\n     */\r\n    BrowserCacheManager.prototype.setTemporaryCache = function (cacheKey, value, generateKey) {\r\n        var key = generateKey ? this.generateCacheKey(cacheKey) : cacheKey;\r\n        this.temporaryCacheStorage.setItem(key, value);\r\n        if (this.cacheConfig.storeAuthStateInCookie) {\r\n            this.logger.trace(\"BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie\");\r\n            this.setItemCookie(key, value);\r\n        }\r\n    };\r\n    /**\r\n     * Removes the cache item with the given key.\r\n     * Will also clear the cookie item if storeAuthStateInCookie is set to true.\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.removeItem = function (key) {\r\n        this.browserStorage.removeItem(key);\r\n        this.temporaryCacheStorage.removeItem(key);\r\n        if (this.cacheConfig.storeAuthStateInCookie) {\r\n            this.logger.trace(\"BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie\");\r\n            this.clearItemCookie(key);\r\n        }\r\n    };\r\n    /**\r\n     * Checks whether key is in cache.\r\n     * @param key\r\n     */\r\n    BrowserCacheManager.prototype.containsKey = function (key) {\r\n        return this.browserStorage.containsKey(key) || this.temporaryCacheStorage.containsKey(key);\r\n    };\r\n    /**\r\n     * Gets all keys in window.\r\n     */\r\n    BrowserCacheManager.prototype.getKeys = function () {\r\n        return __spread(this.browserStorage.getKeys(), this.temporaryCacheStorage.getKeys());\r\n    };\r\n    /**\r\n     * Clears all cache entries created by MSAL.\r\n     */\r\n    BrowserCacheManager.prototype.clear = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: \r\n                    // Removes all accounts and their credentials\r\n                    return [4 /*yield*/, this.removeAllAccounts()];\r\n                    case 1:\r\n                        // Removes all accounts and their credentials\r\n                        _a.sent();\r\n                        this.removeAppMetadata();\r\n                        // Removes all remaining MSAL cache items\r\n                        this.getKeys().forEach(function (cacheKey) {\r\n                            // Check if key contains msal prefix; For now, we are clearing all the cache items created by MSAL.js\r\n                            if ((_this.browserStorage.containsKey(cacheKey) || _this.temporaryCacheStorage.containsKey(cacheKey)) && ((cacheKey.indexOf(Constants.CACHE_PREFIX) !== -1) || (cacheKey.indexOf(_this.clientId) !== -1))) {\r\n                                _this.removeItem(cacheKey);\r\n                            }\r\n                        });\r\n                        this.internalStorage.clear();\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Clears all access tokes that have claims prior to saving the current one\r\n     * @param credential\r\n     * @returns\r\n     */\r\n    BrowserCacheManager.prototype.clearTokensAndKeysWithClaims = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var tokenKeys, removedAccessTokens;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"BrowserCacheManager.clearTokensAndKeysWithClaims called\");\r\n                        tokenKeys = this.getTokenKeys();\r\n                        removedAccessTokens = [];\r\n                        tokenKeys.accessToken.forEach(function (key) {\r\n                            // if the access token has claims in its key, remove the token key and the token\r\n                            var credential = _this.getAccessTokenCredential(key);\r\n                            if ((credential === null || credential === void 0 ? void 0 : credential.requestedClaimsHash) && key.includes(credential.requestedClaimsHash.toLowerCase())) {\r\n                                removedAccessTokens.push(_this.removeAccessToken(key));\r\n                            }\r\n                        });\r\n                        return [4 /*yield*/, Promise.all(removedAccessTokens)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        // warn if any access tokens are removed\r\n                        if (removedAccessTokens.length > 0) {\r\n                            this.logger.warning(removedAccessTokens.length + \" access tokens with claims in the cache keys have been removed from the cache.\");\r\n                        }\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Add value to cookies\r\n     * @param cookieName\r\n     * @param cookieValue\r\n     * @param expires\r\n     */\r\n    BrowserCacheManager.prototype.setItemCookie = function (cookieName, cookieValue, expires) {\r\n        var cookieStr = encodeURIComponent(cookieName) + \"=\" + encodeURIComponent(cookieValue) + \";path=/;SameSite=Lax;\";\r\n        if (expires) {\r\n            var expireTime = this.getCookieExpirationTime(expires);\r\n            cookieStr += \"expires=\" + expireTime + \";\";\r\n        }\r\n        if (this.cacheConfig.secureCookies) {\r\n            cookieStr += \"Secure;\";\r\n        }\r\n        document.cookie = cookieStr;\r\n    };\r\n    /**\r\n     * Get one item by key from cookies\r\n     * @param cookieName\r\n     */\r\n    BrowserCacheManager.prototype.getItemCookie = function (cookieName) {\r\n        var name = encodeURIComponent(cookieName) + \"=\";\r\n        var cookieList = document.cookie.split(\";\");\r\n        for (var i = 0; i < cookieList.length; i++) {\r\n            var cookie = cookieList[i];\r\n            while (cookie.charAt(0) === \" \") {\r\n                cookie = cookie.substring(1);\r\n            }\r\n            if (cookie.indexOf(name) === 0) {\r\n                return decodeURIComponent(cookie.substring(name.length, cookie.length));\r\n            }\r\n        }\r\n        return Constants.EMPTY_STRING;\r\n    };\r\n    /**\r\n     * Clear all msal-related cookies currently set in the browser. Should only be used to clear temporary cache items.\r\n     */\r\n    BrowserCacheManager.prototype.clearMsalCookies = function () {\r\n        var _this = this;\r\n        var cookiePrefix = Constants.CACHE_PREFIX + \".\" + this.clientId;\r\n        var cookieList = document.cookie.split(\";\");\r\n        cookieList.forEach(function (cookie) {\r\n            while (cookie.charAt(0) === \" \") {\r\n                // eslint-disable-next-line no-param-reassign\r\n                cookie = cookie.substring(1);\r\n            }\r\n            if (cookie.indexOf(cookiePrefix) === 0) {\r\n                var cookieKey = cookie.split(\"=\")[0];\r\n                _this.clearItemCookie(cookieKey);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * Clear an item in the cookies by key\r\n     * @param cookieName\r\n     */\r\n    BrowserCacheManager.prototype.clearItemCookie = function (cookieName) {\r\n        this.setItemCookie(cookieName, Constants.EMPTY_STRING, -1);\r\n    };\r\n    /**\r\n     * Get cookie expiration time\r\n     * @param cookieLifeDays\r\n     */\r\n    BrowserCacheManager.prototype.getCookieExpirationTime = function (cookieLifeDays) {\r\n        var today = new Date();\r\n        var expr = new Date(today.getTime() + cookieLifeDays * this.COOKIE_LIFE_MULTIPLIER);\r\n        return expr.toUTCString();\r\n    };\r\n    /**\r\n     * Gets the cache object referenced by the browser\r\n     */\r\n    BrowserCacheManager.prototype.getCache = function () {\r\n        return this.browserStorage;\r\n    };\r\n    /**\r\n     * interface compat, we cannot overwrite browser cache; Functionality is supported by individual entities in browser\r\n     */\r\n    BrowserCacheManager.prototype.setCache = function () {\r\n        // sets nothing\r\n    };\r\n    /**\r\n     * Prepend msal.<client-id> to each key; Skip for any JSON object as Key (defined schemas do not need the key appended: AccessToken Keys or the upcoming schema)\r\n     * @param key\r\n     * @param addInstanceId\r\n     */\r\n    BrowserCacheManager.prototype.generateCacheKey = function (key) {\r\n        var generatedKey = this.validateAndParseJson(key);\r\n        if (!generatedKey) {\r\n            if (StringUtils.startsWith(key, Constants.CACHE_PREFIX) || StringUtils.startsWith(key, PersistentCacheKeys.ADAL_ID_TOKEN)) {\r\n                return key;\r\n            }\r\n            return Constants.CACHE_PREFIX + \".\" + this.clientId + \".\" + key;\r\n        }\r\n        return JSON.stringify(key);\r\n    };\r\n    /**\r\n     * Create authorityKey to cache authority\r\n     * @param state\r\n     */\r\n    BrowserCacheManager.prototype.generateAuthorityKey = function (stateString) {\r\n        var stateId = ProtocolUtils.parseRequestState(this.cryptoImpl, stateString).libraryState.id;\r\n        return this.generateCacheKey(TemporaryCacheKeys.AUTHORITY + \".\" + stateId);\r\n    };\r\n    /**\r\n     * Create Nonce key to cache nonce\r\n     * @param state\r\n     */\r\n    BrowserCacheManager.prototype.generateNonceKey = function (stateString) {\r\n        var stateId = ProtocolUtils.parseRequestState(this.cryptoImpl, stateString).libraryState.id;\r\n        return this.generateCacheKey(TemporaryCacheKeys.NONCE_IDTOKEN + \".\" + stateId);\r\n    };\r\n    /**\r\n     * Creates full cache key for the request state\r\n     * @param stateString State string for the request\r\n     */\r\n    BrowserCacheManager.prototype.generateStateKey = function (stateString) {\r\n        // Use the library state id to key temp storage for uniqueness for multiple concurrent requests\r\n        var stateId = ProtocolUtils.parseRequestState(this.cryptoImpl, stateString).libraryState.id;\r\n        return this.generateCacheKey(TemporaryCacheKeys.REQUEST_STATE + \".\" + stateId);\r\n    };\r\n    /**\r\n     * Gets the cached authority based on the cached state. Returns empty if no cached state found.\r\n     */\r\n    BrowserCacheManager.prototype.getCachedAuthority = function (cachedState) {\r\n        var stateCacheKey = this.generateStateKey(cachedState);\r\n        var state = this.getTemporaryCache(stateCacheKey);\r\n        if (!state) {\r\n            return null;\r\n        }\r\n        var authorityCacheKey = this.generateAuthorityKey(state);\r\n        return this.getTemporaryCache(authorityCacheKey);\r\n    };\r\n    /**\r\n     * Updates account, authority, and state in cache\r\n     * @param serverAuthenticationRequest\r\n     * @param account\r\n     */\r\n    BrowserCacheManager.prototype.updateCacheEntries = function (state, nonce, authorityInstance, loginHint, account) {\r\n        this.logger.trace(\"BrowserCacheManager.updateCacheEntries called\");\r\n        // Cache the request state\r\n        var stateCacheKey = this.generateStateKey(state);\r\n        this.setTemporaryCache(stateCacheKey, state, false);\r\n        // Cache the nonce\r\n        var nonceCacheKey = this.generateNonceKey(state);\r\n        this.setTemporaryCache(nonceCacheKey, nonce, false);\r\n        // Cache authorityKey\r\n        var authorityCacheKey = this.generateAuthorityKey(state);\r\n        this.setTemporaryCache(authorityCacheKey, authorityInstance, false);\r\n        if (account) {\r\n            var ccsCredential = {\r\n                credential: account.homeAccountId,\r\n                type: CcsCredentialType.HOME_ACCOUNT_ID\r\n            };\r\n            this.setTemporaryCache(TemporaryCacheKeys.CCS_CREDENTIAL, JSON.stringify(ccsCredential), true);\r\n        }\r\n        else if (!StringUtils.isEmpty(loginHint)) {\r\n            var ccsCredential = {\r\n                credential: loginHint,\r\n                type: CcsCredentialType.UPN\r\n            };\r\n            this.setTemporaryCache(TemporaryCacheKeys.CCS_CREDENTIAL, JSON.stringify(ccsCredential), true);\r\n        }\r\n    };\r\n    /**\r\n     * Reset all temporary cache items\r\n     * @param state\r\n     */\r\n    BrowserCacheManager.prototype.resetRequestCache = function (state) {\r\n        var _this = this;\r\n        this.logger.trace(\"BrowserCacheManager.resetRequestCache called\");\r\n        // check state and remove associated cache items\r\n        if (!StringUtils.isEmpty(state)) {\r\n            this.getKeys().forEach(function (key) {\r\n                if (key.indexOf(state) !== -1) {\r\n                    _this.removeItem(key);\r\n                }\r\n            });\r\n        }\r\n        // delete generic interactive request parameters\r\n        if (state) {\r\n            this.removeItem(this.generateStateKey(state));\r\n            this.removeItem(this.generateNonceKey(state));\r\n            this.removeItem(this.generateAuthorityKey(state));\r\n        }\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.REQUEST_PARAMS));\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.ORIGIN_URI));\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.URL_HASH));\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.CORRELATION_ID));\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.CCS_CREDENTIAL));\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));\r\n        this.setInteractionInProgress(false);\r\n    };\r\n    /**\r\n     * Removes temporary cache for the provided state\r\n     * @param stateString\r\n     */\r\n    BrowserCacheManager.prototype.cleanRequestByState = function (stateString) {\r\n        this.logger.trace(\"BrowserCacheManager.cleanRequestByState called\");\r\n        // Interaction is completed - remove interaction status.\r\n        if (stateString) {\r\n            var stateKey = this.generateStateKey(stateString);\r\n            var cachedState = this.temporaryCacheStorage.getItem(stateKey);\r\n            this.logger.infoPii(\"BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: \" + cachedState);\r\n            this.resetRequestCache(cachedState || Constants.EMPTY_STRING);\r\n        }\r\n        this.clearMsalCookies();\r\n    };\r\n    /**\r\n     * Looks in temporary cache for any state values with the provided interactionType and removes all temporary cache items for that state\r\n     * Used in scenarios where temp cache needs to be cleaned but state is not known, such as clicking browser back button.\r\n     * @param interactionType\r\n     */\r\n    BrowserCacheManager.prototype.cleanRequestByInteractionType = function (interactionType) {\r\n        var _this = this;\r\n        this.logger.trace(\"BrowserCacheManager.cleanRequestByInteractionType called\");\r\n        // Loop through all keys to find state key\r\n        this.getKeys().forEach(function (key) {\r\n            // If this key is not the state key, move on\r\n            if (key.indexOf(TemporaryCacheKeys.REQUEST_STATE) === -1) {\r\n                return;\r\n            }\r\n            // Retrieve state value, return if not a valid value\r\n            var stateValue = _this.temporaryCacheStorage.getItem(key);\r\n            if (!stateValue) {\r\n                return;\r\n            }\r\n            // Extract state and ensure it matches given InteractionType, then clean request cache\r\n            var parsedState = BrowserProtocolUtils.extractBrowserRequestState(_this.cryptoImpl, stateValue);\r\n            if (parsedState && parsedState.interactionType === interactionType) {\r\n                _this.logger.infoPii(\"BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: \" + stateValue);\r\n                _this.resetRequestCache(stateValue);\r\n            }\r\n        });\r\n        this.clearMsalCookies();\r\n        this.setInteractionInProgress(false);\r\n    };\r\n    BrowserCacheManager.prototype.cacheCodeRequest = function (authCodeRequest, browserCrypto) {\r\n        this.logger.trace(\"BrowserCacheManager.cacheCodeRequest called\");\r\n        var encodedValue = browserCrypto.base64Encode(JSON.stringify(authCodeRequest));\r\n        this.setTemporaryCache(TemporaryCacheKeys.REQUEST_PARAMS, encodedValue, true);\r\n    };\r\n    /**\r\n     * Gets the token exchange parameters from the cache. Throws an error if nothing is found.\r\n     */\r\n    BrowserCacheManager.prototype.getCachedRequest = function (state, browserCrypto) {\r\n        this.logger.trace(\"BrowserCacheManager.getCachedRequest called\");\r\n        // Get token request from cache and parse as TokenExchangeParameters.\r\n        var encodedTokenRequest = this.getTemporaryCache(TemporaryCacheKeys.REQUEST_PARAMS, true);\r\n        if (!encodedTokenRequest) {\r\n            throw BrowserAuthError.createNoTokenRequestCacheError();\r\n        }\r\n        var parsedRequest = this.validateAndParseJson(browserCrypto.base64Decode(encodedTokenRequest));\r\n        if (!parsedRequest) {\r\n            throw BrowserAuthError.createUnableToParseTokenRequestCacheError();\r\n        }\r\n        this.removeItem(this.generateCacheKey(TemporaryCacheKeys.REQUEST_PARAMS));\r\n        // Get cached authority and use if no authority is cached with request.\r\n        if (StringUtils.isEmpty(parsedRequest.authority)) {\r\n            var authorityCacheKey = this.generateAuthorityKey(state);\r\n            var cachedAuthority = this.getTemporaryCache(authorityCacheKey);\r\n            if (!cachedAuthority) {\r\n                throw BrowserAuthError.createNoCachedAuthorityError();\r\n            }\r\n            parsedRequest.authority = cachedAuthority;\r\n        }\r\n        return parsedRequest;\r\n    };\r\n    /**\r\n     * Gets cached native request for redirect flows\r\n     */\r\n    BrowserCacheManager.prototype.getCachedNativeRequest = function () {\r\n        this.logger.trace(\"BrowserCacheManager.getCachedNativeRequest called\");\r\n        var cachedRequest = this.getTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, true);\r\n        if (!cachedRequest) {\r\n            this.logger.trace(\"BrowserCacheManager.getCachedNativeRequest: No cached native request found\");\r\n            return null;\r\n        }\r\n        var parsedRequest = this.validateAndParseJson(cachedRequest);\r\n        if (!parsedRequest) {\r\n            this.logger.error(\"BrowserCacheManager.getCachedNativeRequest: Unable to parse native request\");\r\n            return null;\r\n        }\r\n        return parsedRequest;\r\n    };\r\n    BrowserCacheManager.prototype.isInteractionInProgress = function (matchClientId) {\r\n        var clientId = this.getInteractionInProgress();\r\n        if (matchClientId) {\r\n            return clientId === this.clientId;\r\n        }\r\n        else {\r\n            return !!clientId;\r\n        }\r\n    };\r\n    BrowserCacheManager.prototype.getInteractionInProgress = function () {\r\n        var key = Constants.CACHE_PREFIX + \".\" + TemporaryCacheKeys.INTERACTION_STATUS_KEY;\r\n        return this.getTemporaryCache(key, false);\r\n    };\r\n    BrowserCacheManager.prototype.setInteractionInProgress = function (inProgress) {\r\n        // Ensure we don't overwrite interaction in progress for a different clientId\r\n        var key = Constants.CACHE_PREFIX + \".\" + TemporaryCacheKeys.INTERACTION_STATUS_KEY;\r\n        if (inProgress) {\r\n            if (this.getInteractionInProgress()) {\r\n                throw BrowserAuthError.createInteractionInProgressError();\r\n            }\r\n            else {\r\n                // No interaction is in progress\r\n                this.setTemporaryCache(key, this.clientId, false);\r\n            }\r\n        }\r\n        else if (!inProgress && this.getInteractionInProgress() === this.clientId) {\r\n            this.removeItem(key);\r\n        }\r\n    };\r\n    /**\r\n     * Returns username retrieved from ADAL or MSAL v1 idToken\r\n     */\r\n    BrowserCacheManager.prototype.getLegacyLoginHint = function () {\r\n        // Only check for adal/msal token if no SSO params are being used\r\n        var adalIdTokenString = this.getTemporaryCache(PersistentCacheKeys.ADAL_ID_TOKEN);\r\n        if (adalIdTokenString) {\r\n            this.browserStorage.removeItem(PersistentCacheKeys.ADAL_ID_TOKEN);\r\n            this.logger.verbose(\"Cached ADAL id token retrieved.\");\r\n        }\r\n        // Check for cached MSAL v1 id token\r\n        var msalIdTokenString = this.getTemporaryCache(PersistentCacheKeys.ID_TOKEN, true);\r\n        if (msalIdTokenString) {\r\n            this.removeItem(this.generateCacheKey(PersistentCacheKeys.ID_TOKEN));\r\n            this.logger.verbose(\"Cached MSAL.js v1 id token retrieved\");\r\n        }\r\n        var cachedIdTokenString = msalIdTokenString || adalIdTokenString;\r\n        if (cachedIdTokenString) {\r\n            var cachedIdToken = new IdToken(cachedIdTokenString, this.cryptoImpl);\r\n            if (cachedIdToken.claims && cachedIdToken.claims.preferred_username) {\r\n                this.logger.verbose(\"No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint\");\r\n                return cachedIdToken.claims.preferred_username;\r\n            }\r\n            else if (cachedIdToken.claims && cachedIdToken.claims.upn) {\r\n                this.logger.verbose(\"No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint\");\r\n                return cachedIdToken.claims.upn;\r\n            }\r\n            else {\r\n                this.logger.verbose(\"No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.\");\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Updates a credential's cache key if the current cache key is outdated\r\n     */\r\n    BrowserCacheManager.prototype.updateCredentialCacheKey = function (currentCacheKey, credential) {\r\n        var updatedCacheKey = credential.generateCredentialKey();\r\n        if (currentCacheKey !== updatedCacheKey) {\r\n            var cacheItem = this.getItem(currentCacheKey);\r\n            if (cacheItem) {\r\n                this.removeItem(currentCacheKey);\r\n                this.setItem(updatedCacheKey, cacheItem);\r\n                this.logger.verbose(\"Updated an outdated \" + credential.credentialType + \" cache key\");\r\n                return updatedCacheKey;\r\n            }\r\n            else {\r\n                this.logger.error(\"Attempted to update an outdated \" + credential.credentialType + \" cache key but no item matching the outdated key was found in storage\");\r\n            }\r\n        }\r\n        return currentCacheKey;\r\n    };\r\n    /**\r\n     * Returns application id as redirect context during AcquireTokenRedirect flow.\r\n     */\r\n    BrowserCacheManager.prototype.getRedirectRequestContext = function () {\r\n        return this.getTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, true);\r\n    };\r\n    /**\r\n     * Sets application id as the redirect context during AcquireTokenRedirect flow.\r\n     * @param value\r\n     */\r\n    BrowserCacheManager.prototype.setRedirectRequestContext = function (value) {\r\n        this.setTemporaryCache(TemporaryCacheKeys.REDIRECT_CONTEXT, value, true);\r\n    };\r\n    /**\r\n     * Builds credential entities from AuthenticationResult object and saves the resulting credentials to the cache\r\n     * @param result\r\n     * @param request\r\n     */\r\n    BrowserCacheManager.prototype.hydrateCache = function (result, request) {\r\n        var _a, _b, _c, _d, _e, _f;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var idTokenEntity, claimsHash, accessTokenEntity, cacheRecord;\r\n            return __generator(this, function (_g) {\r\n                switch (_g.label) {\r\n                    case 0:\r\n                        idTokenEntity = IdTokenEntity.createIdTokenEntity(((_a = result.account) === null || _a === void 0 ? void 0 : _a.homeAccountId) || \"\", ((_b = result.account) === null || _b === void 0 ? void 0 : _b.environment) || \"\", result.idToken, this.clientId, result.tenantId);\r\n                        if (!request.claims) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.cryptoImpl.hashString(request.claims)];\r\n                    case 1:\r\n                        claimsHash = _g.sent();\r\n                        _g.label = 2;\r\n                    case 2:\r\n                        accessTokenEntity = AccessTokenEntity.createAccessTokenEntity(((_c = result.account) === null || _c === void 0 ? void 0 : _c.homeAccountId) || \"\", ((_d = result.account) === null || _d === void 0 ? void 0 : _d.environment) || \"\", result.accessToken, this.clientId, result.tenantId, result.scopes.join(\" \"), ((_e = result.expiresOn) === null || _e === void 0 ? void 0 : _e.getTime()) || 0, ((_f = result.extExpiresOn) === null || _f === void 0 ? void 0 : _f.getTime()) || 0, this.cryptoImpl, undefined, // refreshOn\r\n                        result.tokenType, undefined, // userAssertionHash\r\n                        request.sshKid, request.claims, claimsHash);\r\n                        cacheRecord = new CacheRecord(undefined, idTokenEntity, accessTokenEntity);\r\n                        return [2 /*return*/, this.saveCacheRecord(cacheRecord)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return BrowserCacheManager;\r\n}(CacheManager));\r\nvar DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {\r\n    var cacheOptions = {\r\n        cacheLocation: BrowserCacheLocation.MemoryStorage,\r\n        temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,\r\n        storeAuthStateInCookie: false,\r\n        secureCookies: false,\r\n        cacheMigrationEnabled: false,\r\n        claimsBasedCachingEnabled: true\r\n    };\r\n    return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger);\r\n};\n\nexport { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER };\n//# sourceMappingURL=BrowserCacheManager.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __assign, __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.js';\nimport { AuthError } from '../error/AuthError.js';\nimport { Logger, LogLevel } from '../logger/Logger.js';\nimport { Constants } from '../utils/Constants.js';\nimport { version } from '../packageMetadata.js';\nimport { AzureCloudInstance } from '../authority/AuthorityOptions.js';\nimport { DefaultStorageClass } from '../cache/CacheManager.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n// Token renewal offset default in seconds\r\nvar DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;\r\nvar DEFAULT_SYSTEM_OPTIONS = {\r\n    tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,\r\n    preventCorsPreflight: false\r\n};\r\nvar DEFAULT_LOGGER_IMPLEMENTATION = {\r\n    loggerCallback: function () {\r\n        // allow users to not set loggerCallback\r\n    },\r\n    piiLoggingEnabled: false,\r\n    logLevel: LogLevel.Info,\r\n    correlationId: Constants.EMPTY_STRING\r\n};\r\nvar DEFAULT_CACHE_OPTIONS = {\r\n    claimsBasedCachingEnabled: true\r\n};\r\nvar DEFAULT_NETWORK_IMPLEMENTATION = {\r\n    sendGetRequestAsync: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Network interface - sendGetRequestAsync() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    },\r\n    sendPostRequestAsync: function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var notImplErr;\r\n            return __generator(this, function (_a) {\r\n                notImplErr = \"Network interface - sendPostRequestAsync() has not been implemented\";\r\n                throw AuthError.createUnexpectedError(notImplErr);\r\n            });\r\n        });\r\n    }\r\n};\r\nvar DEFAULT_LIBRARY_INFO = {\r\n    sku: Constants.SKU,\r\n    version: version,\r\n    cpu: Constants.EMPTY_STRING,\r\n    os: Constants.EMPTY_STRING\r\n};\r\nvar DEFAULT_CLIENT_CREDENTIALS = {\r\n    clientSecret: Constants.EMPTY_STRING,\r\n    clientAssertion: undefined\r\n};\r\nvar DEFAULT_AZURE_CLOUD_OPTIONS = {\r\n    azureCloudInstance: AzureCloudInstance.None,\r\n    tenant: \"\" + Constants.DEFAULT_COMMON_TENANT\r\n};\r\nvar DEFAULT_TELEMETRY_OPTIONS = {\r\n    application: {\r\n        appName: \"\",\r\n        appVersion: \"\"\r\n    }\r\n};\r\n/**\r\n * Function that sets the default options when not explicitly configured from app developer\r\n *\r\n * @param Configuration\r\n *\r\n * @returns Configuration\r\n */\r\nfunction buildClientConfiguration(_a) {\r\n    var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, userCacheOptions = _a.cacheOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;\r\n    var loggerOptions = __assign(__assign({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption);\r\n    return {\r\n        authOptions: buildAuthOptions(userAuthOptions),\r\n        systemOptions: __assign(__assign({}, DEFAULT_SYSTEM_OPTIONS), userSystemOptions),\r\n        loggerOptions: loggerOptions,\r\n        cacheOptions: __assign(__assign({}, DEFAULT_CACHE_OPTIONS), userCacheOptions),\r\n        storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),\r\n        networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,\r\n        cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,\r\n        clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,\r\n        libraryInfo: __assign(__assign({}, DEFAULT_LIBRARY_INFO), libraryInfo),\r\n        telemetry: __assign(__assign({}, DEFAULT_TELEMETRY_OPTIONS), telemetry),\r\n        serverTelemetryManager: serverTelemetryManager || null,\r\n        persistencePlugin: persistencePlugin || null,\r\n        serializableCache: serializableCache || null,\r\n    };\r\n}\r\n/**\r\n * Construct authoptions from the client and platform passed values\r\n * @param authOptions\r\n */\r\nfunction buildAuthOptions(authOptions) {\r\n    return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);\r\n}\n\nexport { DEFAULT_SYSTEM_OPTIONS, buildClientConfiguration };\n//# sourceMappingURL=ClientConfiguration.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { AuthError } from '../error/AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar StubbedNetworkModule = {\r\n    sendGetRequestAsync: function () {\r\n        var notImplErr = \"Network interface - sendGetRequestAsync() has not been implemented for the Network interface.\";\r\n        return Promise.reject(AuthError.createUnexpectedError(notImplErr));\r\n    },\r\n    sendPostRequestAsync: function () {\r\n        var notImplErr = \"Network interface - sendPostRequestAsync() has not been implemented for the Network interface.\";\r\n        return Promise.reject(AuthError.createUnexpectedError(notImplErr));\r\n    }\r\n};\n\nexport { StubbedNetworkModule };\n//# sourceMappingURL=INetworkModule.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { Constants } from '@azure/msal-common';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { HTTP_REQUEST_TYPE } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This class implements the Fetch API for GET and POST requests. See more here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API\r\n */\r\nvar FetchClient = /** @class */ (function () {\r\n    function FetchClient() {\r\n    }\r\n    /**\r\n     * Fetch Client for REST endpoints - Get request\r\n     * @param url\r\n     * @param headers\r\n     * @param body\r\n     */\r\n    FetchClient.prototype.sendGetRequestAsync = function (url, options) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var response, e_1, _a;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        _b.trys.push([0, 2, , 3]);\r\n                        return [4 /*yield*/, fetch(url, {\r\n                                method: HTTP_REQUEST_TYPE.GET,\r\n                                headers: this.getFetchHeaders(options)\r\n                            })];\r\n                    case 1:\r\n                        response = _b.sent();\r\n                        return [3 /*break*/, 3];\r\n                    case 2:\r\n                        e_1 = _b.sent();\r\n                        if (window.navigator.onLine) {\r\n                            throw BrowserAuthError.createGetRequestFailedError(e_1, url);\r\n                        }\r\n                        else {\r\n                            throw BrowserAuthError.createNoNetworkConnectivityError();\r\n                        }\r\n                    case 3:\r\n                        _b.trys.push([3, 5, , 6]);\r\n                        _a = {\r\n                            headers: this.getHeaderDict(response.headers)\r\n                        };\r\n                        return [4 /*yield*/, response.json()];\r\n                    case 4: return [2 /*return*/, (_a.body = (_b.sent()),\r\n                            _a.status = response.status,\r\n                            _a)];\r\n                    case 5:\r\n                        _b.sent();\r\n                        throw BrowserAuthError.createFailedToParseNetworkResponseError(url);\r\n                    case 6: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Fetch Client for REST endpoints - Post request\r\n     * @param url\r\n     * @param headers\r\n     * @param body\r\n     */\r\n    FetchClient.prototype.sendPostRequestAsync = function (url, options) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var reqBody, response, e_3, _a;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        reqBody = (options && options.body) || Constants.EMPTY_STRING;\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, fetch(url, {\r\n                                method: HTTP_REQUEST_TYPE.POST,\r\n                                headers: this.getFetchHeaders(options),\r\n                                body: reqBody\r\n                            })];\r\n                    case 2:\r\n                        response = _b.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        e_3 = _b.sent();\r\n                        if (window.navigator.onLine) {\r\n                            throw BrowserAuthError.createPostRequestFailedError(e_3, url);\r\n                        }\r\n                        else {\r\n                            throw BrowserAuthError.createNoNetworkConnectivityError();\r\n                        }\r\n                    case 4:\r\n                        _b.trys.push([4, 6, , 7]);\r\n                        _a = {\r\n                            headers: this.getHeaderDict(response.headers)\r\n                        };\r\n                        return [4 /*yield*/, response.json()];\r\n                    case 5: return [2 /*return*/, (_a.body = (_b.sent()),\r\n                            _a.status = response.status,\r\n                            _a)];\r\n                    case 6:\r\n                        _b.sent();\r\n                        throw BrowserAuthError.createFailedToParseNetworkResponseError(url);\r\n                    case 7: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get Fetch API Headers object from string map\r\n     * @param inputHeaders\r\n     */\r\n    FetchClient.prototype.getFetchHeaders = function (options) {\r\n        var headers = new Headers();\r\n        if (!(options && options.headers)) {\r\n            return headers;\r\n        }\r\n        var optionsHeaders = options.headers;\r\n        Object.keys(optionsHeaders).forEach(function (key) {\r\n            headers.append(key, optionsHeaders[key]);\r\n        });\r\n        return headers;\r\n    };\r\n    FetchClient.prototype.getHeaderDict = function (headers) {\r\n        var headerDict = {};\r\n        headers.forEach(function (value, key) {\r\n            headerDict[key] = value;\r\n        });\r\n        return headerDict;\r\n    };\r\n    return FetchClient;\r\n}());\n\nexport { FetchClient };\n//# sourceMappingURL=FetchClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { HTTP_REQUEST_TYPE } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This client implements the XMLHttpRequest class to send GET and POST requests.\r\n */\r\nvar XhrClient = /** @class */ (function () {\r\n    function XhrClient() {\r\n    }\r\n    /**\r\n     * XhrClient for REST endpoints - Get request\r\n     * @param url\r\n     * @param headers\r\n     * @param body\r\n     */\r\n    XhrClient.prototype.sendGetRequestAsync = function (url, options) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.sendRequestAsync(url, HTTP_REQUEST_TYPE.GET, options)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * XhrClient for REST endpoints - Post request\r\n     * @param url\r\n     * @param headers\r\n     * @param body\r\n     */\r\n    XhrClient.prototype.sendPostRequestAsync = function (url, options) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.sendRequestAsync(url, HTTP_REQUEST_TYPE.POST, options)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Helper for XhrClient requests.\r\n     * @param url\r\n     * @param method\r\n     * @param options\r\n     */\r\n    XhrClient.prototype.sendRequestAsync = function (url, method, options) {\r\n        var _this = this;\r\n        return new Promise(function (resolve, reject) {\r\n            var xhr = new XMLHttpRequest();\r\n            xhr.open(method, url, /* async: */ true);\r\n            _this.setXhrHeaders(xhr, options);\r\n            xhr.onload = function () {\r\n                if (xhr.status < 200 || xhr.status >= 300) {\r\n                    if (method === HTTP_REQUEST_TYPE.POST) {\r\n                        reject(BrowserAuthError.createPostRequestFailedError(\"Failed with status \" + xhr.status, url));\r\n                    }\r\n                    else {\r\n                        reject(BrowserAuthError.createGetRequestFailedError(\"Failed with status \" + xhr.status, url));\r\n                    }\r\n                }\r\n                try {\r\n                    var jsonResponse = JSON.parse(xhr.responseText);\r\n                    var networkResponse = {\r\n                        headers: _this.getHeaderDict(xhr),\r\n                        body: jsonResponse,\r\n                        status: xhr.status\r\n                    };\r\n                    resolve(networkResponse);\r\n                }\r\n                catch (e) {\r\n                    reject(BrowserAuthError.createFailedToParseNetworkResponseError(url));\r\n                }\r\n            };\r\n            xhr.onerror = function () {\r\n                if (window.navigator.onLine) {\r\n                    if (method === HTTP_REQUEST_TYPE.POST) {\r\n                        reject(BrowserAuthError.createPostRequestFailedError(\"Failed with status \" + xhr.status, url));\r\n                    }\r\n                    else {\r\n                        reject(BrowserAuthError.createGetRequestFailedError(\"Failed with status \" + xhr.status, url));\r\n                    }\r\n                }\r\n                else {\r\n                    reject(BrowserAuthError.createNoNetworkConnectivityError());\r\n                }\r\n            };\r\n            if (method === HTTP_REQUEST_TYPE.POST && options && options.body) {\r\n                xhr.send(options.body);\r\n            }\r\n            else if (method === HTTP_REQUEST_TYPE.GET) {\r\n                xhr.send();\r\n            }\r\n            else {\r\n                throw BrowserAuthError.createHttpMethodNotImplementedError(method);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * Helper to set XHR headers for request.\r\n     * @param xhr\r\n     * @param options\r\n     */\r\n    XhrClient.prototype.setXhrHeaders = function (xhr, options) {\r\n        if (options && options.headers) {\r\n            var headers_1 = options.headers;\r\n            Object.keys(headers_1).forEach(function (key) {\r\n                xhr.setRequestHeader(key, headers_1[key]);\r\n            });\r\n        }\r\n    };\r\n    /**\r\n     * Gets a string map of the headers received in the response.\r\n     *\r\n     * Algorithm comes from https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders\r\n     * @param xhr\r\n     */\r\n    XhrClient.prototype.getHeaderDict = function (xhr) {\r\n        var headerString = xhr.getAllResponseHeaders();\r\n        var headerArr = headerString.trim().split(/[\\r\\n]+/);\r\n        var headerDict = {};\r\n        headerArr.forEach(function (value) {\r\n            var parts = value.split(\": \");\r\n            var headerName = parts.shift();\r\n            var headerVal = parts.join(\": \");\r\n            if (headerName && headerVal) {\r\n                headerDict[headerName] = headerVal;\r\n            }\r\n        });\r\n        return headerDict;\r\n    };\r\n    return XhrClient;\r\n}());\n\nexport { XhrClient };\n//# sourceMappingURL=XhrClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { Constants, UrlString } from '@azure/msal-common';\nimport { FetchClient } from '../network/FetchClient.js';\nimport { XhrClient } from '../network/XhrClient.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { BrowserConstants, InteractionType } from './BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Utility class for browser specific functions\r\n */\r\nvar BrowserUtils = /** @class */ (function () {\r\n    function BrowserUtils() {\r\n    }\r\n    // #region Window Navigation and URL management\r\n    /**\r\n     * Clears hash from window url.\r\n     */\r\n    BrowserUtils.clearHash = function (contentWindow) {\r\n        // Office.js sets history.replaceState to null\r\n        contentWindow.location.hash = Constants.EMPTY_STRING;\r\n        if (typeof contentWindow.history.replaceState === \"function\") {\r\n            // Full removes \"#\" from url\r\n            contentWindow.history.replaceState(null, Constants.EMPTY_STRING, \"\" + contentWindow.location.origin + contentWindow.location.pathname + contentWindow.location.search);\r\n        }\r\n    };\r\n    /**\r\n     * Replaces current hash with hash from provided url\r\n     */\r\n    BrowserUtils.replaceHash = function (url) {\r\n        var urlParts = url.split(\"#\");\r\n        urlParts.shift(); // Remove part before the hash\r\n        window.location.hash = urlParts.length > 0 ? urlParts.join(\"#\") : Constants.EMPTY_STRING;\r\n    };\r\n    /**\r\n     * Returns boolean of whether the current window is in an iframe or not.\r\n     */\r\n    BrowserUtils.isInIframe = function () {\r\n        return window.parent !== window;\r\n    };\r\n    /**\r\n     * Returns boolean of whether or not the current window is a popup opened by msal\r\n     */\r\n    BrowserUtils.isInPopup = function () {\r\n        return typeof window !== \"undefined\" && !!window.opener &&\r\n            window.opener !== window &&\r\n            typeof window.name === \"string\" &&\r\n            window.name.indexOf(BrowserConstants.POPUP_NAME_PREFIX + \".\") === 0;\r\n    };\r\n    // #endregion\r\n    /**\r\n     * Returns current window URL as redirect uri\r\n     */\r\n    BrowserUtils.getCurrentUri = function () {\r\n        return window.location.href.split(\"?\")[0].split(\"#\")[0];\r\n    };\r\n    /**\r\n     * Gets the homepage url for the current window location.\r\n     */\r\n    BrowserUtils.getHomepage = function () {\r\n        var currentUrl = new UrlString(window.location.href);\r\n        var urlComponents = currentUrl.getUrlComponents();\r\n        return urlComponents.Protocol + \"//\" + urlComponents.HostNameAndPort + \"/\";\r\n    };\r\n    /**\r\n     * Returns best compatible network client object.\r\n     */\r\n    BrowserUtils.getBrowserNetworkClient = function () {\r\n        if (window.fetch && window.Headers) {\r\n            return new FetchClient();\r\n        }\r\n        else {\r\n            return new XhrClient();\r\n        }\r\n    };\r\n    /**\r\n     * Throws error if we have completed an auth and are\r\n     * attempting another auth request inside an iframe.\r\n     */\r\n    BrowserUtils.blockReloadInHiddenIframes = function () {\r\n        var isResponseHash = UrlString.hashContainsKnownProperties(window.location.hash);\r\n        // return an error if called from the hidden iframe created by the msal js silent calls\r\n        if (isResponseHash && BrowserUtils.isInIframe()) {\r\n            throw BrowserAuthError.createBlockReloadInHiddenIframeError();\r\n        }\r\n    };\r\n    /**\r\n     * Block redirect operations in iframes unless explicitly allowed\r\n     * @param interactionType Interaction type for the request\r\n     * @param allowRedirectInIframe Config value to allow redirects when app is inside an iframe\r\n     */\r\n    BrowserUtils.blockRedirectInIframe = function (interactionType, allowRedirectInIframe) {\r\n        var isIframedApp = BrowserUtils.isInIframe();\r\n        if (interactionType === InteractionType.Redirect && isIframedApp && !allowRedirectInIframe) {\r\n            // If we are not in top frame, we shouldn't redirect. This is also handled by the service.\r\n            throw BrowserAuthError.createRedirectInIframeError(isIframedApp);\r\n        }\r\n    };\r\n    /**\r\n     * Block redirectUri loaded in popup from calling AcquireToken APIs\r\n     */\r\n    BrowserUtils.blockAcquireTokenInPopups = function () {\r\n        // Popups opened by msal popup APIs are given a name that starts with \"msal.\"\r\n        if (BrowserUtils.isInPopup()) {\r\n            throw BrowserAuthError.createBlockAcquireTokenInPopupsError();\r\n        }\r\n    };\r\n    /**\r\n     * Throws error if token requests are made in non-browser environment\r\n     * @param isBrowserEnvironment Flag indicating if environment is a browser.\r\n     */\r\n    BrowserUtils.blockNonBrowserEnvironment = function (isBrowserEnvironment) {\r\n        if (!isBrowserEnvironment) {\r\n            throw BrowserAuthError.createNonBrowserEnvironmentError();\r\n        }\r\n    };\r\n    /**\r\n     * Throws error if native brokering is enabled but initialize hasn't been called\r\n     * @param allowNativeBroker\r\n     * @param initialized\r\n     */\r\n    BrowserUtils.blockNativeBrokerCalledBeforeInitialized = function (allowNativeBroker, initialized) {\r\n        if (allowNativeBroker && !initialized) {\r\n            throw BrowserAuthError.createNativeBrokerCalledBeforeInitialize();\r\n        }\r\n    };\r\n    /**\r\n     * Returns boolean of whether current browser is an Internet Explorer or Edge browser.\r\n     */\r\n    BrowserUtils.detectIEOrEdge = function () {\r\n        var ua = window.navigator.userAgent;\r\n        var msie = ua.indexOf(\"MSIE \");\r\n        var msie11 = ua.indexOf(\"Trident/\");\r\n        var msedge = ua.indexOf(\"Edge/\");\r\n        var isIE = msie > 0 || msie11 > 0;\r\n        var isEdge = msedge > 0;\r\n        return isIE || isEdge;\r\n    };\r\n    return BrowserUtils;\r\n}());\n\nexport { BrowserUtils };\n//# sourceMappingURL=BrowserUtils.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar NavigationClient = /** @class */ (function () {\r\n    function NavigationClient() {\r\n    }\r\n    /**\r\n     * Navigates to other pages within the same web application\r\n     * @param url\r\n     * @param options\r\n     */\r\n    NavigationClient.prototype.navigateInternal = function (url, options) {\r\n        return NavigationClient.defaultNavigateWindow(url, options);\r\n    };\r\n    /**\r\n     * Navigates to other pages outside the web application i.e. the Identity Provider\r\n     * @param url\r\n     * @param options\r\n     */\r\n    NavigationClient.prototype.navigateExternal = function (url, options) {\r\n        return NavigationClient.defaultNavigateWindow(url, options);\r\n    };\r\n    /**\r\n     * Default navigation implementation invoked by the internal and external functions\r\n     * @param url\r\n     * @param options\r\n     */\r\n    NavigationClient.defaultNavigateWindow = function (url, options) {\r\n        if (options.noHistory) {\r\n            window.location.replace(url);\r\n        }\r\n        else {\r\n            window.location.assign(url);\r\n        }\r\n        return new Promise(function (resolve) {\r\n            setTimeout(function () {\r\n                resolve(true);\r\n            }, options.timeout);\r\n        });\r\n    };\r\n    return NavigationClient;\r\n}());\n\nexport { NavigationClient };\n//# sourceMappingURL=NavigationClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __assign } from '../_virtual/_tslib.js';\nimport { DEFAULT_SYSTEM_OPTIONS, StubbedNetworkModule, Constants, ProtocolMode, AzureCloudInstance, LogLevel } from '@azure/msal-common';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\nimport { BrowserConstants, BrowserCacheLocation } from '../utils/BrowserConstants.js';\nimport { NavigationClient } from '../navigation/NavigationClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n// Default timeout for popup windows and iframes in milliseconds\r\nvar DEFAULT_POPUP_TIMEOUT_MS = 60000;\r\nvar DEFAULT_IFRAME_TIMEOUT_MS = 6000;\r\nvar DEFAULT_REDIRECT_TIMEOUT_MS = 30000;\r\nvar DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS = 2000;\r\n/**\r\n * MSAL function that sets the default options when not explicitly configured from app developer\r\n *\r\n * @param auth\r\n * @param cache\r\n * @param system\r\n *\r\n * @returns Configuration object\r\n */\r\nfunction buildConfiguration(_a, isBrowserEnvironment) {\r\n    var userInputAuth = _a.auth, userInputCache = _a.cache, userInputSystem = _a.system, userInputTelemetry = _a.telemetry;\r\n    // Default auth options for browser\r\n    var DEFAULT_AUTH_OPTIONS = {\r\n        clientId: Constants.EMPTY_STRING,\r\n        authority: \"\" + Constants.DEFAULT_AUTHORITY,\r\n        knownAuthorities: [],\r\n        cloudDiscoveryMetadata: Constants.EMPTY_STRING,\r\n        authorityMetadata: Constants.EMPTY_STRING,\r\n        redirectUri: Constants.EMPTY_STRING,\r\n        postLogoutRedirectUri: Constants.EMPTY_STRING,\r\n        navigateToLoginRequestUrl: true,\r\n        clientCapabilities: [],\r\n        protocolMode: ProtocolMode.AAD,\r\n        azureCloudOptions: {\r\n            azureCloudInstance: AzureCloudInstance.None,\r\n            tenant: Constants.EMPTY_STRING\r\n        },\r\n        skipAuthorityMetadataCache: false,\r\n    };\r\n    // Default cache options for browser\r\n    var DEFAULT_CACHE_OPTIONS = {\r\n        cacheLocation: BrowserCacheLocation.SessionStorage,\r\n        temporaryCacheLocation: BrowserCacheLocation.SessionStorage,\r\n        storeAuthStateInCookie: false,\r\n        secureCookies: false,\r\n        // Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage\r\n        cacheMigrationEnabled: userInputCache && userInputCache.cacheLocation === BrowserCacheLocation.LocalStorage ? true : false,\r\n        claimsBasedCachingEnabled: true\r\n    };\r\n    // Default logger options for browser\r\n    var DEFAULT_LOGGER_OPTIONS = {\r\n        // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n        loggerCallback: function () {\r\n            // allow users to not set logger call back \r\n        },\r\n        logLevel: LogLevel.Info,\r\n        piiLoggingEnabled: false\r\n    };\r\n    // Default system options for browser\r\n    var DEFAULT_BROWSER_SYSTEM_OPTIONS = __assign(__assign({}, DEFAULT_SYSTEM_OPTIONS), { loggerOptions: DEFAULT_LOGGER_OPTIONS, networkClient: isBrowserEnvironment ? BrowserUtils.getBrowserNetworkClient() : StubbedNetworkModule, navigationClient: new NavigationClient(), loadFrameTimeout: 0, \r\n        // If loadFrameTimeout is provided, use that as default.\r\n        windowHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_POPUP_TIMEOUT_MS, iframeHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_IFRAME_TIMEOUT_MS, navigateFrameWait: isBrowserEnvironment && BrowserUtils.detectIEOrEdge() ? 500 : 0, redirectNavigationTimeout: DEFAULT_REDIRECT_TIMEOUT_MS, asyncPopups: false, allowRedirectInIframe: false, allowNativeBroker: false, nativeBrokerHandshakeTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.nativeBrokerHandshakeTimeout) || DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS, cryptoOptions: {\r\n            useMsrCrypto: false,\r\n            entropy: undefined\r\n        } });\r\n    var providedSystemOptions = __assign(__assign({}, userInputSystem), { loggerOptions: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loggerOptions) || DEFAULT_LOGGER_OPTIONS });\r\n    var DEFAULT_TELEMETRY_OPTIONS = {\r\n        application: {\r\n            appName: Constants.EMPTY_STRING,\r\n            appVersion: Constants.EMPTY_STRING\r\n        }\r\n    };\r\n    var overlayedConfig = {\r\n        auth: __assign(__assign({}, DEFAULT_AUTH_OPTIONS), userInputAuth),\r\n        cache: __assign(__assign({}, DEFAULT_CACHE_OPTIONS), userInputCache),\r\n        system: __assign(__assign({}, DEFAULT_BROWSER_SYSTEM_OPTIONS), providedSystemOptions),\r\n        telemetry: __assign(__assign({}, DEFAULT_TELEMETRY_OPTIONS), userInputTelemetry)\r\n    };\r\n    return overlayedConfig;\r\n}\n\nexport { DEFAULT_IFRAME_TIMEOUT_MS, DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, DEFAULT_POPUP_TIMEOUT_MS, DEFAULT_REDIRECT_TIMEOUT_MS, buildConfiguration };\n//# sourceMappingURL=Configuration.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/* eslint-disable header/header */\r\nvar name = \"@azure/msal-browser\";\r\nvar version = \"2.39.0\";\n\nexport { name, version };\n//# sourceMappingURL=packageMetadata.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { TimeUtils } from '../utils/TimeUtils.js';\nimport { UrlString } from '../url/UrlString.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar KeyLocation;\r\n(function (KeyLocation) {\r\n    KeyLocation[\"SW\"] = \"sw\";\r\n    KeyLocation[\"UHW\"] = \"uhw\";\r\n})(KeyLocation || (KeyLocation = {}));\r\nvar PopTokenGenerator = /** @class */ (function () {\r\n    function PopTokenGenerator(cryptoUtils, performanceClient) {\r\n        this.cryptoUtils = cryptoUtils;\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    /**\r\n     * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters\r\n     * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash\r\n     * @param request\r\n     * @returns\r\n     */\r\n    PopTokenGenerator.prototype.generateCnf = function (request) {\r\n        var _a, _b;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var reqCnf, reqCnfString, _c;\r\n            return __generator(this, function (_d) {\r\n                switch (_d.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.PopTokenGenerateKid, request.correlationId);\r\n                        return [4 /*yield*/, this.generateKid(request)];\r\n                    case 1:\r\n                        reqCnf = _d.sent();\r\n                        reqCnfString = this.cryptoUtils.base64Encode(JSON.stringify(reqCnf));\r\n                        _c = {\r\n                            kid: reqCnf.kid,\r\n                            reqCnfString: reqCnfString\r\n                        };\r\n                        return [4 /*yield*/, this.cryptoUtils.hashString(reqCnfString)];\r\n                    case 2: return [2 /*return*/, (_c.reqCnfHash = _d.sent(),\r\n                            _c)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates key_id for a SHR token request\r\n     * @param request\r\n     * @returns\r\n     */\r\n    PopTokenGenerator.prototype.generateKid = function (request) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var kidThumbprint;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateKid, request.correlationId);\r\n                        return [4 /*yield*/, this.cryptoUtils.getPublicKeyThumbprint(request)];\r\n                    case 1:\r\n                        kidThumbprint = _b.sent();\r\n                        return [2 /*return*/, {\r\n                                kid: kidThumbprint,\r\n                                xms_ksl: KeyLocation.SW\r\n                            }];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Signs the POP access_token with the local generated key-pair\r\n     * @param accessToken\r\n     * @param request\r\n     * @returns\r\n     */\r\n    PopTokenGenerator.prototype.signPopToken = function (accessToken, keyId, request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                return [2 /*return*/, this.signPayload(accessToken, keyId, request)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Utility function to generate the signed JWT for an access_token\r\n     * @param payload\r\n     * @param kid\r\n     * @param request\r\n     * @param claims\r\n     * @returns\r\n     */\r\n    PopTokenGenerator.prototype.signPayload = function (payload, keyId, request, claims) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var resourceRequestMethod, resourceRequestUri, shrClaims, shrNonce, resourceUrlString, resourceUrlComponents;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        resourceRequestMethod = request.resourceRequestMethod, resourceRequestUri = request.resourceRequestUri, shrClaims = request.shrClaims, shrNonce = request.shrNonce;\r\n                        resourceUrlString = (resourceRequestUri) ? new UrlString(resourceRequestUri) : undefined;\r\n                        resourceUrlComponents = resourceUrlString === null || resourceUrlString === void 0 ? void 0 : resourceUrlString.getUrlComponents();\r\n                        return [4 /*yield*/, this.cryptoUtils.signJwt(__assign({ at: payload, ts: TimeUtils.nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), keyId, request.correlationId)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return PopTokenGenerator;\r\n}());\n\nexport { PopTokenGenerator };\n//# sourceMappingURL=PopTokenGenerator.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { AccountEntity, CacheManager } from '@azure/msal-common';\nimport { EventType } from './EventType.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar EventHandler = /** @class */ (function () {\r\n    function EventHandler(logger, browserCrypto) {\r\n        this.eventCallbacks = new Map();\r\n        this.logger = logger;\r\n        this.browserCrypto = browserCrypto;\r\n        this.listeningToStorageEvents = false;\r\n        this.handleAccountCacheChange = this.handleAccountCacheChange.bind(this);\r\n    }\r\n    /**\r\n     * Adds event callbacks to array\r\n     * @param callback\r\n     */\r\n    EventHandler.prototype.addEventCallback = function (callback) {\r\n        if (typeof window !== \"undefined\") {\r\n            var callbackId = this.browserCrypto.createNewGuid();\r\n            this.eventCallbacks.set(callbackId, callback);\r\n            this.logger.verbose(\"Event callback registered with id: \" + callbackId);\r\n            return callbackId;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Removes callback with provided id from callback array\r\n     * @param callbackId\r\n     */\r\n    EventHandler.prototype.removeEventCallback = function (callbackId) {\r\n        this.eventCallbacks.delete(callbackId);\r\n        this.logger.verbose(\"Event callback \" + callbackId + \" removed.\");\r\n    };\r\n    /**\r\n     * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n     */\r\n    EventHandler.prototype.enableAccountStorageEvents = function () {\r\n        if (typeof window === \"undefined\") {\r\n            return;\r\n        }\r\n        if (!this.listeningToStorageEvents) {\r\n            this.logger.verbose(\"Adding account storage listener.\");\r\n            this.listeningToStorageEvents = true;\r\n            window.addEventListener(\"storage\", this.handleAccountCacheChange);\r\n        }\r\n        else {\r\n            this.logger.verbose(\"Account storage listener already registered.\");\r\n        }\r\n    };\r\n    /**\r\n     * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n     */\r\n    EventHandler.prototype.disableAccountStorageEvents = function () {\r\n        if (typeof window === \"undefined\") {\r\n            return;\r\n        }\r\n        if (this.listeningToStorageEvents) {\r\n            this.logger.verbose(\"Removing account storage listener.\");\r\n            window.removeEventListener(\"storage\", this.handleAccountCacheChange);\r\n            this.listeningToStorageEvents = false;\r\n        }\r\n        else {\r\n            this.logger.verbose(\"No account storage listener registered.\");\r\n        }\r\n    };\r\n    /**\r\n     * Emits events by calling callback with event message\r\n     * @param eventType\r\n     * @param interactionType\r\n     * @param payload\r\n     * @param error\r\n     */\r\n    EventHandler.prototype.emitEvent = function (eventType, interactionType, payload, error) {\r\n        var _this = this;\r\n        if (typeof window !== \"undefined\") {\r\n            var message_1 = {\r\n                eventType: eventType,\r\n                interactionType: interactionType || null,\r\n                payload: payload || null,\r\n                error: error || null,\r\n                timestamp: Date.now()\r\n            };\r\n            this.logger.info(\"Emitting event: \" + eventType);\r\n            this.eventCallbacks.forEach(function (callback, callbackId) {\r\n                _this.logger.verbose(\"Emitting event to callback \" + callbackId + \": \" + eventType);\r\n                callback.apply(null, [message_1]);\r\n            });\r\n        }\r\n    };\r\n    /**\r\n     * Emit account added/removed events when cached accounts are changed in a different tab or frame\r\n     */\r\n    EventHandler.prototype.handleAccountCacheChange = function (e) {\r\n        try {\r\n            var cacheValue = e.newValue || e.oldValue;\r\n            if (!cacheValue) {\r\n                return;\r\n            }\r\n            var parsedValue = JSON.parse(cacheValue);\r\n            if (typeof parsedValue !== \"object\" || !AccountEntity.isAccountEntity(parsedValue)) {\r\n                return;\r\n            }\r\n            var accountEntity = CacheManager.toObject(new AccountEntity(), parsedValue);\r\n            var accountInfo = accountEntity.getAccountInfo();\r\n            if (!e.oldValue && e.newValue) {\r\n                this.logger.info(\"Account was added to cache in a different window\");\r\n                this.emitEvent(EventType.ACCOUNT_ADDED, undefined, accountInfo);\r\n            }\r\n            else if (!e.newValue && e.oldValue) {\r\n                this.logger.info(\"Account was removed from cache in a different window\");\r\n                this.emitEvent(EventType.ACCOUNT_REMOVED, undefined, accountInfo);\r\n            }\r\n        }\r\n        catch (e) {\r\n            return;\r\n        }\r\n    };\r\n    return EventHandler;\r\n}());\n\nexport { EventHandler };\n//# sourceMappingURL=EventHandler.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ThrottlingConstants, Constants, HeaderNames } from '../utils/Constants.js';\nimport { ServerError } from '../error/ServerError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ThrottlingUtils = /** @class */ (function () {\r\n    function ThrottlingUtils() {\r\n    }\r\n    /**\r\n     * Prepares a RequestThumbprint to be stored as a key.\r\n     * @param thumbprint\r\n     */\r\n    ThrottlingUtils.generateThrottlingStorageKey = function (thumbprint) {\r\n        return ThrottlingConstants.THROTTLING_PREFIX + \".\" + JSON.stringify(thumbprint);\r\n    };\r\n    /**\r\n     * Performs necessary throttling checks before a network request.\r\n     * @param cacheManager\r\n     * @param thumbprint\r\n     */\r\n    ThrottlingUtils.preProcess = function (cacheManager, thumbprint) {\r\n        var _a;\r\n        var key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);\r\n        var value = cacheManager.getThrottlingCache(key);\r\n        if (value) {\r\n            if (value.throttleTime < Date.now()) {\r\n                cacheManager.removeItem(key);\r\n                return;\r\n            }\r\n            throw new ServerError(((_a = value.errorCodes) === null || _a === void 0 ? void 0 : _a.join(\" \")) || Constants.EMPTY_STRING, value.errorMessage, value.subError);\r\n        }\r\n    };\r\n    /**\r\n     * Performs necessary throttling checks after a network request.\r\n     * @param cacheManager\r\n     * @param thumbprint\r\n     * @param response\r\n     */\r\n    ThrottlingUtils.postProcess = function (cacheManager, thumbprint, response) {\r\n        if (ThrottlingUtils.checkResponseStatus(response) || ThrottlingUtils.checkResponseForRetryAfter(response)) {\r\n            var thumbprintValue = {\r\n                throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(response.headers[HeaderNames.RETRY_AFTER])),\r\n                error: response.body.error,\r\n                errorCodes: response.body.error_codes,\r\n                errorMessage: response.body.error_description,\r\n                subError: response.body.suberror\r\n            };\r\n            cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue);\r\n        }\r\n    };\r\n    /**\r\n     * Checks a NetworkResponse object's status codes against 429 or 5xx\r\n     * @param response\r\n     */\r\n    ThrottlingUtils.checkResponseStatus = function (response) {\r\n        return response.status === 429 || response.status >= 500 && response.status < 600;\r\n    };\r\n    /**\r\n     * Checks a NetworkResponse object's RetryAfter header\r\n     * @param response\r\n     */\r\n    ThrottlingUtils.checkResponseForRetryAfter = function (response) {\r\n        if (response.headers) {\r\n            return response.headers.hasOwnProperty(HeaderNames.RETRY_AFTER) && (response.status < 200 || response.status >= 300);\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds.\r\n     * @param throttleTime\r\n     */\r\n    ThrottlingUtils.calculateThrottleTime = function (throttleTime) {\r\n        var time = throttleTime <= 0 ? 0 : throttleTime;\r\n        var currentSeconds = Date.now() / 1000;\r\n        return Math.floor(Math.min(currentSeconds + (time || ThrottlingConstants.DEFAULT_THROTTLE_TIME_SECONDS), currentSeconds + ThrottlingConstants.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1000);\r\n    };\r\n    ThrottlingUtils.removeThrottle = function (cacheManager, clientId, request, homeAccountIdentifier) {\r\n        var thumbprint = {\r\n            clientId: clientId,\r\n            authority: request.authority,\r\n            scopes: request.scopes,\r\n            homeAccountIdentifier: homeAccountIdentifier,\r\n            claims: request.claims,\r\n            authenticationScheme: request.authenticationScheme,\r\n            resourceRequestMethod: request.resourceRequestMethod,\r\n            resourceRequestUri: request.resourceRequestUri,\r\n            shrClaims: request.shrClaims,\r\n            sshKid: request.sshKid\r\n        };\r\n        var key = this.generateThrottlingStorageKey(thumbprint);\r\n        cacheManager.removeItem(key);\r\n    };\r\n    return ThrottlingUtils;\r\n}());\n\nexport { ThrottlingUtils };\n//# sourceMappingURL=ThrottlingUtils.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { ThrottlingUtils } from './ThrottlingUtils.js';\nimport { AuthError } from '../error/AuthError.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar NetworkManager = /** @class */ (function () {\r\n    function NetworkManager(networkClient, cacheManager) {\r\n        this.networkClient = networkClient;\r\n        this.cacheManager = cacheManager;\r\n    }\r\n    /**\r\n     * Wraps sendPostRequestAsync with necessary preflight and postflight logic\r\n     * @param thumbprint\r\n     * @param tokenEndpoint\r\n     * @param options\r\n     */\r\n    NetworkManager.prototype.sendPostRequest = function (thumbprint, tokenEndpoint, options) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var response, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        ThrottlingUtils.preProcess(this.cacheManager, thumbprint);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.networkClient.sendPostRequestAsync(tokenEndpoint, options)];\r\n                    case 2:\r\n                        response = _a.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof AuthError) {\r\n                            throw e_1;\r\n                        }\r\n                        else {\r\n                            throw ClientAuthError.createNetworkError(tokenEndpoint, e_1);\r\n                        }\r\n                    case 4:\r\n                        ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);\r\n                        return [2 /*return*/, response];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return NetworkManager;\r\n}());\n\nexport { NetworkManager };\n//# sourceMappingURL=NetworkManager.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { CodeChallengeMethodValues, PromptValue } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Validates server consumable params from the \"request\" objects\r\n */\r\nvar RequestValidator = /** @class */ (function () {\r\n    function RequestValidator() {\r\n    }\r\n    /**\r\n     * Utility to check if the `redirectUri` in the request is a non-null value\r\n     * @param redirectUri\r\n     */\r\n    RequestValidator.validateRedirectUri = function (redirectUri) {\r\n        if (StringUtils.isEmpty(redirectUri)) {\r\n            throw ClientConfigurationError.createRedirectUriEmptyError();\r\n        }\r\n    };\r\n    /**\r\n     * Utility to validate prompt sent by the user in the request\r\n     * @param prompt\r\n     */\r\n    RequestValidator.validatePrompt = function (prompt) {\r\n        var promptValues = [];\r\n        for (var value in PromptValue) {\r\n            promptValues.push(PromptValue[value]);\r\n        }\r\n        if (promptValues.indexOf(prompt) < 0) {\r\n            throw ClientConfigurationError.createInvalidPromptError(prompt);\r\n        }\r\n    };\r\n    RequestValidator.validateClaims = function (claims) {\r\n        try {\r\n            JSON.parse(claims);\r\n        }\r\n        catch (e) {\r\n            throw ClientConfigurationError.createInvalidClaimsRequestError();\r\n        }\r\n    };\r\n    /**\r\n     * Utility to validate code_challenge and code_challenge_method\r\n     * @param codeChallenge\r\n     * @param codeChallengeMethod\r\n     */\r\n    RequestValidator.validateCodeChallengeParams = function (codeChallenge, codeChallengeMethod) {\r\n        if (StringUtils.isEmpty(codeChallenge) || StringUtils.isEmpty(codeChallengeMethod)) {\r\n            throw ClientConfigurationError.createInvalidCodeChallengeParamsError();\r\n        }\r\n        else {\r\n            this.validateCodeChallengeMethod(codeChallengeMethod);\r\n        }\r\n    };\r\n    /**\r\n     * Utility to validate code_challenge_method\r\n     * @param codeChallengeMethod\r\n     */\r\n    RequestValidator.validateCodeChallengeMethod = function (codeChallengeMethod) {\r\n        if ([\r\n            CodeChallengeMethodValues.PLAIN,\r\n            CodeChallengeMethodValues.S256\r\n        ].indexOf(codeChallengeMethod) < 0) {\r\n            throw ClientConfigurationError.createInvalidCodeChallengeMethodError();\r\n        }\r\n    };\r\n    /**\r\n     * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters\r\n     * @param request\r\n     */\r\n    RequestValidator.sanitizeEQParams = function (eQParams, queryParams) {\r\n        if (!eQParams) {\r\n            return {};\r\n        }\r\n        // Remove any query parameters already included in SSO params\r\n        queryParams.forEach(function (value, key) {\r\n            if (eQParams[key]) {\r\n                delete eQParams[key];\r\n            }\r\n        });\r\n        // remove empty string parameters\r\n        // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n        return Object.fromEntries(Object.entries(eQParams).filter(function (_a) {\r\n            var value = _a[1];\r\n            return value !== \"\";\r\n        }));\r\n    };\r\n    return RequestValidator;\r\n}());\n\nexport { RequestValidator };\n//# sourceMappingURL=RequestValidator.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __spreadArrays } from '../_virtual/_tslib.js';\nimport { AADServerParamKeys, Constants, ResponseMode, OIDC_DEFAULT_SCOPES, SSOTypes, HeaderNames, CLIENT_INFO, ClaimsRequestKeys, PasswordGrantConstants, AuthenticationScheme, ThrottlingConstants } from '../utils/Constants.js';\nimport { ScopeSet } from './ScopeSet.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { RequestValidator } from './RequestValidator.js';\nimport { StringUtils } from '../utils/StringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar RequestParameterBuilder = /** @class */ (function () {\r\n    function RequestParameterBuilder() {\r\n        this.parameters = new Map();\r\n    }\r\n    /**\r\n     * add response_type = code\r\n     */\r\n    RequestParameterBuilder.prototype.addResponseTypeCode = function () {\r\n        this.parameters.set(AADServerParamKeys.RESPONSE_TYPE, encodeURIComponent(Constants.CODE_RESPONSE_TYPE));\r\n    };\r\n    /**\r\n     * add response_type = token id_token\r\n     */\r\n    RequestParameterBuilder.prototype.addResponseTypeForTokenAndIdToken = function () {\r\n        this.parameters.set(AADServerParamKeys.RESPONSE_TYPE, encodeURIComponent(Constants.TOKEN_RESPONSE_TYPE + \" \" + Constants.ID_TOKEN_RESPONSE_TYPE));\r\n    };\r\n    /**\r\n     * add response_mode. defaults to query.\r\n     * @param responseMode\r\n     */\r\n    RequestParameterBuilder.prototype.addResponseMode = function (responseMode) {\r\n        this.parameters.set(AADServerParamKeys.RESPONSE_MODE, encodeURIComponent((responseMode) ? responseMode : ResponseMode.QUERY));\r\n    };\r\n    /**\r\n     * Add flag to indicate STS should attempt to use WAM if available\r\n     */\r\n    RequestParameterBuilder.prototype.addNativeBroker = function () {\r\n        this.parameters.set(AADServerParamKeys.NATIVE_BROKER, encodeURIComponent(\"1\"));\r\n    };\r\n    /**\r\n     * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios\r\n     * @param scopeSet\r\n     * @param addOidcScopes\r\n     */\r\n    RequestParameterBuilder.prototype.addScopes = function (scopes, addOidcScopes) {\r\n        if (addOidcScopes === void 0) { addOidcScopes = true; }\r\n        var requestScopes = addOidcScopes ? __spreadArrays(scopes || [], OIDC_DEFAULT_SCOPES) : scopes || [];\r\n        var scopeSet = new ScopeSet(requestScopes);\r\n        this.parameters.set(AADServerParamKeys.SCOPE, encodeURIComponent(scopeSet.printScopes()));\r\n    };\r\n    /**\r\n     * add clientId\r\n     * @param clientId\r\n     */\r\n    RequestParameterBuilder.prototype.addClientId = function (clientId) {\r\n        this.parameters.set(AADServerParamKeys.CLIENT_ID, encodeURIComponent(clientId));\r\n    };\r\n    /**\r\n     * add redirect_uri\r\n     * @param redirectUri\r\n     */\r\n    RequestParameterBuilder.prototype.addRedirectUri = function (redirectUri) {\r\n        RequestValidator.validateRedirectUri(redirectUri);\r\n        this.parameters.set(AADServerParamKeys.REDIRECT_URI, encodeURIComponent(redirectUri));\r\n    };\r\n    /**\r\n     * add post logout redirectUri\r\n     * @param redirectUri\r\n     */\r\n    RequestParameterBuilder.prototype.addPostLogoutRedirectUri = function (redirectUri) {\r\n        RequestValidator.validateRedirectUri(redirectUri);\r\n        this.parameters.set(AADServerParamKeys.POST_LOGOUT_URI, encodeURIComponent(redirectUri));\r\n    };\r\n    /**\r\n     * add id_token_hint to logout request\r\n     * @param idTokenHint\r\n     */\r\n    RequestParameterBuilder.prototype.addIdTokenHint = function (idTokenHint) {\r\n        this.parameters.set(AADServerParamKeys.ID_TOKEN_HINT, encodeURIComponent(idTokenHint));\r\n    };\r\n    /**\r\n     * add domain_hint\r\n     * @param domainHint\r\n     */\r\n    RequestParameterBuilder.prototype.addDomainHint = function (domainHint) {\r\n        this.parameters.set(SSOTypes.DOMAIN_HINT, encodeURIComponent(domainHint));\r\n    };\r\n    /**\r\n     * add login_hint\r\n     * @param loginHint\r\n     */\r\n    RequestParameterBuilder.prototype.addLoginHint = function (loginHint) {\r\n        this.parameters.set(SSOTypes.LOGIN_HINT, encodeURIComponent(loginHint));\r\n    };\r\n    /**\r\n     * Adds the CCS (Cache Credential Service) query parameter for login_hint\r\n     * @param loginHint\r\n     */\r\n    RequestParameterBuilder.prototype.addCcsUpn = function (loginHint) {\r\n        this.parameters.set(HeaderNames.CCS_HEADER, encodeURIComponent(\"UPN:\" + loginHint));\r\n    };\r\n    /**\r\n     * Adds the CCS (Cache Credential Service) query parameter for account object\r\n     * @param loginHint\r\n     */\r\n    RequestParameterBuilder.prototype.addCcsOid = function (clientInfo) {\r\n        this.parameters.set(HeaderNames.CCS_HEADER, encodeURIComponent(\"Oid:\" + clientInfo.uid + \"@\" + clientInfo.utid));\r\n    };\r\n    /**\r\n     * add sid\r\n     * @param sid\r\n     */\r\n    RequestParameterBuilder.prototype.addSid = function (sid) {\r\n        this.parameters.set(SSOTypes.SID, encodeURIComponent(sid));\r\n    };\r\n    /**\r\n     * add claims\r\n     * @param claims\r\n     */\r\n    RequestParameterBuilder.prototype.addClaims = function (claims, clientCapabilities) {\r\n        var mergedClaims = this.addClientCapabilitiesToClaims(claims, clientCapabilities);\r\n        RequestValidator.validateClaims(mergedClaims);\r\n        this.parameters.set(AADServerParamKeys.CLAIMS, encodeURIComponent(mergedClaims));\r\n    };\r\n    /**\r\n     * add correlationId\r\n     * @param correlationId\r\n     */\r\n    RequestParameterBuilder.prototype.addCorrelationId = function (correlationId) {\r\n        this.parameters.set(AADServerParamKeys.CLIENT_REQUEST_ID, encodeURIComponent(correlationId));\r\n    };\r\n    /**\r\n     * add library info query params\r\n     * @param libraryInfo\r\n     */\r\n    RequestParameterBuilder.prototype.addLibraryInfo = function (libraryInfo) {\r\n        // Telemetry Info\r\n        this.parameters.set(AADServerParamKeys.X_CLIENT_SKU, libraryInfo.sku);\r\n        this.parameters.set(AADServerParamKeys.X_CLIENT_VER, libraryInfo.version);\r\n        if (libraryInfo.os) {\r\n            this.parameters.set(AADServerParamKeys.X_CLIENT_OS, libraryInfo.os);\r\n        }\r\n        if (libraryInfo.cpu) {\r\n            this.parameters.set(AADServerParamKeys.X_CLIENT_CPU, libraryInfo.cpu);\r\n        }\r\n    };\r\n    /**\r\n     * Add client telemetry parameters\r\n     * @param appTelemetry\r\n     */\r\n    RequestParameterBuilder.prototype.addApplicationTelemetry = function (appTelemetry) {\r\n        if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appName) {\r\n            this.parameters.set(AADServerParamKeys.X_APP_NAME, appTelemetry.appName);\r\n        }\r\n        if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appVersion) {\r\n            this.parameters.set(AADServerParamKeys.X_APP_VER, appTelemetry.appVersion);\r\n        }\r\n    };\r\n    /**\r\n     * add prompt\r\n     * @param prompt\r\n     */\r\n    RequestParameterBuilder.prototype.addPrompt = function (prompt) {\r\n        RequestValidator.validatePrompt(prompt);\r\n        this.parameters.set(\"\" + AADServerParamKeys.PROMPT, encodeURIComponent(prompt));\r\n    };\r\n    /**\r\n     * add state\r\n     * @param state\r\n     */\r\n    RequestParameterBuilder.prototype.addState = function (state) {\r\n        if (!StringUtils.isEmpty(state)) {\r\n            this.parameters.set(AADServerParamKeys.STATE, encodeURIComponent(state));\r\n        }\r\n    };\r\n    /**\r\n     * add nonce\r\n     * @param nonce\r\n     */\r\n    RequestParameterBuilder.prototype.addNonce = function (nonce) {\r\n        this.parameters.set(AADServerParamKeys.NONCE, encodeURIComponent(nonce));\r\n    };\r\n    /**\r\n     * add code_challenge and code_challenge_method\r\n     * - throw if either of them are not passed\r\n     * @param codeChallenge\r\n     * @param codeChallengeMethod\r\n     */\r\n    RequestParameterBuilder.prototype.addCodeChallengeParams = function (codeChallenge, codeChallengeMethod) {\r\n        RequestValidator.validateCodeChallengeParams(codeChallenge, codeChallengeMethod);\r\n        if (codeChallenge && codeChallengeMethod) {\r\n            this.parameters.set(AADServerParamKeys.CODE_CHALLENGE, encodeURIComponent(codeChallenge));\r\n            this.parameters.set(AADServerParamKeys.CODE_CHALLENGE_METHOD, encodeURIComponent(codeChallengeMethod));\r\n        }\r\n        else {\r\n            throw ClientConfigurationError.createInvalidCodeChallengeParamsError();\r\n        }\r\n    };\r\n    /**\r\n     * add the `authorization_code` passed by the user to exchange for a token\r\n     * @param code\r\n     */\r\n    RequestParameterBuilder.prototype.addAuthorizationCode = function (code) {\r\n        this.parameters.set(AADServerParamKeys.CODE, encodeURIComponent(code));\r\n    };\r\n    /**\r\n     * add the `authorization_code` passed by the user to exchange for a token\r\n     * @param code\r\n     */\r\n    RequestParameterBuilder.prototype.addDeviceCode = function (code) {\r\n        this.parameters.set(AADServerParamKeys.DEVICE_CODE, encodeURIComponent(code));\r\n    };\r\n    /**\r\n     * add the `refreshToken` passed by the user\r\n     * @param refreshToken\r\n     */\r\n    RequestParameterBuilder.prototype.addRefreshToken = function (refreshToken) {\r\n        this.parameters.set(AADServerParamKeys.REFRESH_TOKEN, encodeURIComponent(refreshToken));\r\n    };\r\n    /**\r\n     * add the `code_verifier` passed by the user to exchange for a token\r\n     * @param codeVerifier\r\n     */\r\n    RequestParameterBuilder.prototype.addCodeVerifier = function (codeVerifier) {\r\n        this.parameters.set(AADServerParamKeys.CODE_VERIFIER, encodeURIComponent(codeVerifier));\r\n    };\r\n    /**\r\n     * add client_secret\r\n     * @param clientSecret\r\n     */\r\n    RequestParameterBuilder.prototype.addClientSecret = function (clientSecret) {\r\n        this.parameters.set(AADServerParamKeys.CLIENT_SECRET, encodeURIComponent(clientSecret));\r\n    };\r\n    /**\r\n     * add clientAssertion for confidential client flows\r\n     * @param clientAssertion\r\n     */\r\n    RequestParameterBuilder.prototype.addClientAssertion = function (clientAssertion) {\r\n        if (!StringUtils.isEmpty(clientAssertion)) {\r\n            this.parameters.set(AADServerParamKeys.CLIENT_ASSERTION, encodeURIComponent(clientAssertion));\r\n        }\r\n    };\r\n    /**\r\n     * add clientAssertionType for confidential client flows\r\n     * @param clientAssertionType\r\n     */\r\n    RequestParameterBuilder.prototype.addClientAssertionType = function (clientAssertionType) {\r\n        if (!StringUtils.isEmpty(clientAssertionType)) {\r\n            this.parameters.set(AADServerParamKeys.CLIENT_ASSERTION_TYPE, encodeURIComponent(clientAssertionType));\r\n        }\r\n    };\r\n    /**\r\n     * add OBO assertion for confidential client flows\r\n     * @param clientAssertion\r\n     */\r\n    RequestParameterBuilder.prototype.addOboAssertion = function (oboAssertion) {\r\n        this.parameters.set(AADServerParamKeys.OBO_ASSERTION, encodeURIComponent(oboAssertion));\r\n    };\r\n    /**\r\n     * add grant type\r\n     * @param grantType\r\n     */\r\n    RequestParameterBuilder.prototype.addRequestTokenUse = function (tokenUse) {\r\n        this.parameters.set(AADServerParamKeys.REQUESTED_TOKEN_USE, encodeURIComponent(tokenUse));\r\n    };\r\n    /**\r\n     * add grant type\r\n     * @param grantType\r\n     */\r\n    RequestParameterBuilder.prototype.addGrantType = function (grantType) {\r\n        this.parameters.set(AADServerParamKeys.GRANT_TYPE, encodeURIComponent(grantType));\r\n    };\r\n    /**\r\n     * add client info\r\n     *\r\n     */\r\n    RequestParameterBuilder.prototype.addClientInfo = function () {\r\n        this.parameters.set(CLIENT_INFO, \"1\");\r\n    };\r\n    /**\r\n     * add extraQueryParams\r\n     * @param eQParams\r\n     */\r\n    RequestParameterBuilder.prototype.addExtraQueryParameters = function (eQParams) {\r\n        var _this = this;\r\n        var sanitizedEQParams = RequestValidator.sanitizeEQParams(eQParams, this.parameters);\r\n        Object.keys(sanitizedEQParams).forEach(function (key) {\r\n            _this.parameters.set(key, eQParams[key]);\r\n        });\r\n    };\r\n    RequestParameterBuilder.prototype.addClientCapabilitiesToClaims = function (claims, clientCapabilities) {\r\n        var mergedClaims;\r\n        // Parse provided claims into JSON object or initialize empty object\r\n        if (!claims) {\r\n            mergedClaims = {};\r\n        }\r\n        else {\r\n            try {\r\n                mergedClaims = JSON.parse(claims);\r\n            }\r\n            catch (e) {\r\n                throw ClientConfigurationError.createInvalidClaimsRequestError();\r\n            }\r\n        }\r\n        if (clientCapabilities && clientCapabilities.length > 0) {\r\n            if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {\r\n                // Add access_token key to claims object\r\n                mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};\r\n            }\r\n            // Add xms_cc claim with provided clientCapabilities to access_token key\r\n            mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] = {\r\n                values: clientCapabilities\r\n            };\r\n        }\r\n        return JSON.stringify(mergedClaims);\r\n    };\r\n    /**\r\n     * adds `username` for Password Grant flow\r\n     * @param username\r\n     */\r\n    RequestParameterBuilder.prototype.addUsername = function (username) {\r\n        this.parameters.set(PasswordGrantConstants.username, encodeURIComponent(username));\r\n    };\r\n    /**\r\n     * adds `password` for Password Grant flow\r\n     * @param password\r\n     */\r\n    RequestParameterBuilder.prototype.addPassword = function (password) {\r\n        this.parameters.set(PasswordGrantConstants.password, encodeURIComponent(password));\r\n    };\r\n    /**\r\n     * add pop_jwk to query params\r\n     * @param cnfString\r\n     */\r\n    RequestParameterBuilder.prototype.addPopToken = function (cnfString) {\r\n        if (!StringUtils.isEmpty(cnfString)) {\r\n            this.parameters.set(AADServerParamKeys.TOKEN_TYPE, AuthenticationScheme.POP);\r\n            this.parameters.set(AADServerParamKeys.REQ_CNF, encodeURIComponent(cnfString));\r\n        }\r\n    };\r\n    /**\r\n     * add SSH JWK and key ID to query params\r\n     */\r\n    RequestParameterBuilder.prototype.addSshJwk = function (sshJwkString) {\r\n        if (!StringUtils.isEmpty(sshJwkString)) {\r\n            this.parameters.set(AADServerParamKeys.TOKEN_TYPE, AuthenticationScheme.SSH);\r\n            this.parameters.set(AADServerParamKeys.REQ_CNF, encodeURIComponent(sshJwkString));\r\n        }\r\n    };\r\n    /**\r\n     * add server telemetry fields\r\n     * @param serverTelemetryManager\r\n     */\r\n    RequestParameterBuilder.prototype.addServerTelemetry = function (serverTelemetryManager) {\r\n        this.parameters.set(AADServerParamKeys.X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());\r\n        this.parameters.set(AADServerParamKeys.X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());\r\n    };\r\n    /**\r\n     * Adds parameter that indicates to the server that throttling is supported\r\n     */\r\n    RequestParameterBuilder.prototype.addThrottling = function () {\r\n        this.parameters.set(AADServerParamKeys.X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);\r\n    };\r\n    /**\r\n     * Adds logout_hint parameter for \"silent\" logout which prevent server account picker\r\n     */\r\n    RequestParameterBuilder.prototype.addLogoutHint = function (logoutHint) {\r\n        this.parameters.set(AADServerParamKeys.LOGOUT_HINT, encodeURIComponent(logoutHint));\r\n    };\r\n    /**\r\n     * Utility to create a URL from the params map\r\n     */\r\n    RequestParameterBuilder.prototype.createQueryString = function () {\r\n        var queryParameterArray = new Array();\r\n        this.parameters.forEach(function (value, key) {\r\n            queryParameterArray.push(key + \"=\" + value);\r\n        });\r\n        return queryParameterArray.join(\"&\");\r\n    };\r\n    return RequestParameterBuilder;\r\n}());\n\nexport { RequestParameterBuilder };\n//# sourceMappingURL=RequestParameterBuilder.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { buildClientConfiguration } from '../config/ClientConfiguration.js';\nimport { NetworkManager } from '../network/NetworkManager.js';\nimport { Logger } from '../logger/Logger.js';\nimport { HeaderNames, Constants } from '../utils/Constants.js';\nimport { name, version } from '../packageMetadata.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { CcsCredentialType } from '../account/CcsCredential.js';\nimport { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.js';\nimport { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.\r\n */\r\nvar BaseClient = /** @class */ (function () {\r\n    function BaseClient(configuration, performanceClient) {\r\n        // Set the configuration\r\n        this.config = buildClientConfiguration(configuration);\r\n        // Initialize the logger\r\n        this.logger = new Logger(this.config.loggerOptions, name, version);\r\n        // Initialize crypto\r\n        this.cryptoUtils = this.config.cryptoInterface;\r\n        // Initialize storage interface\r\n        this.cacheManager = this.config.storageInterface;\r\n        // Set the network interface\r\n        this.networkClient = this.config.networkInterface;\r\n        // Set the NetworkManager\r\n        this.networkManager = new NetworkManager(this.networkClient, this.cacheManager);\r\n        // Set TelemetryManager\r\n        this.serverTelemetryManager = this.config.serverTelemetryManager;\r\n        // set Authority\r\n        this.authority = this.config.authOptions.authority;\r\n        // set performance telemetry client\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    /**\r\n     * Creates default headers for requests to token endpoint\r\n     */\r\n    BaseClient.prototype.createTokenRequestHeaders = function (ccsCred) {\r\n        var headers = {};\r\n        headers[HeaderNames.CONTENT_TYPE] = Constants.URL_FORM_CONTENT_TYPE;\r\n        if (!this.config.systemOptions.preventCorsPreflight && ccsCred) {\r\n            switch (ccsCred.type) {\r\n                case CcsCredentialType.HOME_ACCOUNT_ID:\r\n                    try {\r\n                        var clientInfo = buildClientInfoFromHomeAccountId(ccsCred.credential);\r\n                        headers[HeaderNames.CCS_HEADER] = \"Oid:\" + clientInfo.uid + \"@\" + clientInfo.utid;\r\n                    }\r\n                    catch (e) {\r\n                        this.logger.verbose(\"Could not parse home account ID for CCS Header: \" + e);\r\n                    }\r\n                    break;\r\n                case CcsCredentialType.UPN:\r\n                    headers[HeaderNames.CCS_HEADER] = \"UPN: \" + ccsCred.credential;\r\n                    break;\r\n            }\r\n        }\r\n        return headers;\r\n    };\r\n    /**\r\n     * Http post to token endpoint\r\n     * @param tokenEndpoint\r\n     * @param queryString\r\n     * @param headers\r\n     * @param thumbprint\r\n     */\r\n    BaseClient.prototype.executePostToTokenEndpoint = function (tokenEndpoint, queryString, headers, thumbprint) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var response;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.networkManager.sendPostRequest(thumbprint, tokenEndpoint, { body: queryString, headers: headers })];\r\n                    case 1:\r\n                        response = _a.sent();\r\n                        if (this.config.serverTelemetryManager && response.status < 500 && response.status !== 429) {\r\n                            // Telemetry data successfully logged by server, clear Telemetry cache\r\n                            this.config.serverTelemetryManager.clearTelemetryCache();\r\n                        }\r\n                        return [2 /*return*/, response];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Updates the authority object of the client. Endpoint discovery must be completed.\r\n     * @param updatedAuthority\r\n     */\r\n    BaseClient.prototype.updateAuthority = function (updatedAuthority) {\r\n        if (!updatedAuthority.discoveryComplete()) {\r\n            throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Updated authority has not completed endpoint discovery.\");\r\n        }\r\n        this.authority = updatedAuthority;\r\n    };\r\n    /**\r\n     * Creates query string for the /token request\r\n     * @param request\r\n     */\r\n    BaseClient.prototype.createTokenQueryParameters = function (request) {\r\n        var parameterBuilder = new RequestParameterBuilder();\r\n        if (request.tokenQueryParameters) {\r\n            parameterBuilder.addExtraQueryParameters(request.tokenQueryParameters);\r\n        }\r\n        return parameterBuilder.createQueryString();\r\n    };\r\n    return BaseClient;\r\n}());\n\nexport { BaseClient };\n//# sourceMappingURL=BaseClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * This class instance helps track the memory changes facilitating\r\n * decisions to read from and write to the persistent cache\r\n */ var TokenCacheContext = /** @class */ (function () {\r\n    function TokenCacheContext(tokenCache, hasChanged) {\r\n        this.cache = tokenCache;\r\n        this.hasChanged = hasChanged;\r\n    }\r\n    Object.defineProperty(TokenCacheContext.prototype, \"cacheHasChanged\", {\r\n        /**\r\n         * boolean which indicates the changes in cache\r\n         */\r\n        get: function () {\r\n            return this.hasChanged;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(TokenCacheContext.prototype, \"tokenCache\", {\r\n        /**\r\n         * function to retrieve the token cache\r\n         */\r\n        get: function () {\r\n            return this.cache;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    return TokenCacheContext;\r\n}());\n\nexport { TokenCacheContext };\n//# sourceMappingURL=TokenCacheContext.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { buildClientInfo } from '../account/ClientInfo.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ServerError } from '../error/ServerError.js';\nimport { AuthToken } from '../account/AuthToken.js';\nimport { ScopeSet } from '../request/ScopeSet.js';\nimport { AccountEntity } from '../cache/entities/AccountEntity.js';\nimport { IdTokenEntity } from '../cache/entities/IdTokenEntity.js';\nimport { AccessTokenEntity } from '../cache/entities/AccessTokenEntity.js';\nimport { RefreshTokenEntity } from '../cache/entities/RefreshTokenEntity.js';\nimport { InteractionRequiredAuthError } from '../error/InteractionRequiredAuthError.js';\nimport { CacheRecord } from '../cache/entities/CacheRecord.js';\nimport { ProtocolUtils } from '../utils/ProtocolUtils.js';\nimport { Constants, AuthenticationScheme, THE_FAMILY_ID } from '../utils/Constants.js';\nimport { PopTokenGenerator } from '../crypto/PopTokenGenerator.js';\nimport { AppMetadataEntity } from '../cache/entities/AppMetadataEntity.js';\nimport { TokenCacheContext } from '../cache/persistence/TokenCacheContext.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Class that handles response parsing.\r\n */\r\nvar ResponseHandler = /** @class */ (function () {\r\n    function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {\r\n        this.clientId = clientId;\r\n        this.cacheStorage = cacheStorage;\r\n        this.cryptoObj = cryptoObj;\r\n        this.logger = logger;\r\n        this.serializableCache = serializableCache;\r\n        this.persistencePlugin = persistencePlugin;\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    /**\r\n     * Function which validates server authorization code response.\r\n     * @param serverResponseHash\r\n     * @param cachedState\r\n     * @param cryptoObj\r\n     */\r\n    ResponseHandler.prototype.validateServerAuthorizationCodeResponse = function (serverResponseHash, cachedState, cryptoObj) {\r\n        if (!serverResponseHash.state || !cachedState) {\r\n            throw !serverResponseHash.state ? ClientAuthError.createStateNotFoundError(\"Server State\") : ClientAuthError.createStateNotFoundError(\"Cached State\");\r\n        }\r\n        if (decodeURIComponent(serverResponseHash.state) !== decodeURIComponent(cachedState)) {\r\n            throw ClientAuthError.createStateMismatchError();\r\n        }\r\n        // Check for error\r\n        if (serverResponseHash.error || serverResponseHash.error_description || serverResponseHash.suberror) {\r\n            if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponseHash.error, serverResponseHash.error_description, serverResponseHash.suberror)) {\r\n                throw new InteractionRequiredAuthError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror, serverResponseHash.timestamp || Constants.EMPTY_STRING, serverResponseHash.trace_id || Constants.EMPTY_STRING, serverResponseHash.correlation_id || Constants.EMPTY_STRING, serverResponseHash.claims || Constants.EMPTY_STRING);\r\n            }\r\n            throw new ServerError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror);\r\n        }\r\n        if (serverResponseHash.client_info) {\r\n            buildClientInfo(serverResponseHash.client_info, cryptoObj);\r\n        }\r\n    };\r\n    /**\r\n     * Function which validates server authorization token response.\r\n     * @param serverResponse\r\n     */\r\n    ResponseHandler.prototype.validateTokenResponse = function (serverResponse) {\r\n        // Check for error\r\n        if (serverResponse.error || serverResponse.error_description || serverResponse.suberror) {\r\n            if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponse.error, serverResponse.error_description, serverResponse.suberror)) {\r\n                throw new InteractionRequiredAuthError(serverResponse.error, serverResponse.error_description, serverResponse.suberror, serverResponse.timestamp || Constants.EMPTY_STRING, serverResponse.trace_id || Constants.EMPTY_STRING, serverResponse.correlation_id || Constants.EMPTY_STRING, serverResponse.claims || Constants.EMPTY_STRING);\r\n            }\r\n            var errString = serverResponse.error_codes + \" - [\" + serverResponse.timestamp + \"]: \" + serverResponse.error_description + \" - Correlation ID: \" + serverResponse.correlation_id + \" - Trace ID: \" + serverResponse.trace_id;\r\n            throw new ServerError(serverResponse.error, errString, serverResponse.suberror);\r\n        }\r\n    };\r\n    /**\r\n     * Returns a constructed token response based on given string. Also manages the cache updates and cleanups.\r\n     * @param serverTokenResponse\r\n     * @param authority\r\n     */\r\n    ResponseHandler.prototype.handleServerTokenResponse = function (serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var idTokenObj, authTime, requestStateObj, cacheRecord, cacheContext, key, account;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);\r\n                        if (serverTokenResponse.id_token) {\r\n                            idTokenObj = new AuthToken(serverTokenResponse.id_token || Constants.EMPTY_STRING, this.cryptoObj);\r\n                            // token nonce check (TODO: Add a warning if no nonce is given?)\r\n                            if (authCodePayload && !StringUtils.isEmpty(authCodePayload.nonce)) {\r\n                                if (idTokenObj.claims.nonce !== authCodePayload.nonce) {\r\n                                    throw ClientAuthError.createNonceMismatchError();\r\n                                }\r\n                            }\r\n                            // token max_age check\r\n                            if (request.maxAge || (request.maxAge === 0)) {\r\n                                authTime = idTokenObj.claims.auth_time;\r\n                                if (!authTime) {\r\n                                    throw ClientAuthError.createAuthTimeNotFoundError();\r\n                                }\r\n                                AuthToken.checkMaxAge(authTime, request.maxAge);\r\n                            }\r\n                        }\r\n                        // generate homeAccountId\r\n                        this.homeAccountIdentifier = AccountEntity.generateHomeAccountId(serverTokenResponse.client_info || Constants.EMPTY_STRING, authority.authorityType, this.logger, this.cryptoObj, idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims);\r\n                        if (!!authCodePayload && !!authCodePayload.state) {\r\n                            requestStateObj = ProtocolUtils.parseRequestState(this.cryptoObj, authCodePayload.state);\r\n                        }\r\n                        // Add keyId from request to serverTokenResponse if defined\r\n                        serverTokenResponse.key_id = serverTokenResponse.key_id || request.sshKid || undefined;\r\n                        cacheRecord = this.generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload);\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, , 5, 8]);\r\n                        if (!(this.persistencePlugin && this.serializableCache)) return [3 /*break*/, 3];\r\n                        this.logger.verbose(\"Persistence enabled, calling beforeCacheAccess\");\r\n                        cacheContext = new TokenCacheContext(this.serializableCache, true);\r\n                        return [4 /*yield*/, this.persistencePlugin.beforeCacheAccess(cacheContext)];\r\n                    case 2:\r\n                        _b.sent();\r\n                        _b.label = 3;\r\n                    case 3:\r\n                        /*\r\n                         * When saving a refreshed tokens to the cache, it is expected that the account that was used is present in the cache.\r\n                         * If not present, we should return null, as it's the case that another application called removeAccount in between\r\n                         * the calls to getAllAccounts and acquireTokenSilent. We should not overwrite that removal, unless explicitly flagged by\r\n                         * the developer, as in the case of refresh token flow used in ADAL Node to MSAL Node migration.\r\n                         */\r\n                        if (handlingRefreshTokenResponse && !forceCacheRefreshTokenResponse && cacheRecord.account) {\r\n                            key = cacheRecord.account.generateAccountKey();\r\n                            account = this.cacheStorage.getAccount(key);\r\n                            if (!account) {\r\n                                this.logger.warning(\"Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache\");\r\n                                return [2 /*return*/, ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, undefined, serverRequestId)];\r\n                            }\r\n                        }\r\n                        return [4 /*yield*/, this.cacheStorage.saveCacheRecord(cacheRecord)];\r\n                    case 4:\r\n                        _b.sent();\r\n                        return [3 /*break*/, 8];\r\n                    case 5:\r\n                        if (!(this.persistencePlugin && this.serializableCache && cacheContext)) return [3 /*break*/, 7];\r\n                        this.logger.verbose(\"Persistence enabled, calling afterCacheAccess\");\r\n                        return [4 /*yield*/, this.persistencePlugin.afterCacheAccess(cacheContext)];\r\n                    case 6:\r\n                        _b.sent();\r\n                        _b.label = 7;\r\n                    case 7: return [7 /*endfinally*/];\r\n                    case 8: return [2 /*return*/, ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, serverTokenResponse, serverRequestId)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates CacheRecord\r\n     * @param serverTokenResponse\r\n     * @param idTokenObj\r\n     * @param authority\r\n     */\r\n    ResponseHandler.prototype.generateCacheRecord = function (serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload) {\r\n        var env = authority.getPreferredCache();\r\n        if (StringUtils.isEmpty(env)) {\r\n            throw ClientAuthError.createInvalidCacheEnvironmentError();\r\n        }\r\n        // IdToken: non AAD scenarios can have empty realm\r\n        var cachedIdToken;\r\n        var cachedAccount;\r\n        if (!StringUtils.isEmpty(serverTokenResponse.id_token) && !!idTokenObj) {\r\n            cachedIdToken = IdTokenEntity.createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token || Constants.EMPTY_STRING, this.clientId, idTokenObj.claims.tid || Constants.EMPTY_STRING);\r\n            cachedAccount = AccountEntity.createAccount({\r\n                homeAccountId: this.homeAccountIdentifier,\r\n                idTokenClaims: idTokenObj.claims,\r\n                clientInfo: serverTokenResponse.client_info || Constants.EMPTY_STRING,\r\n                cloudGraphHostName: authCodePayload === null || authCodePayload === void 0 ? void 0 : authCodePayload.cloud_graph_host_name,\r\n                msGraphHost: authCodePayload === null || authCodePayload === void 0 ? void 0 : authCodePayload.msgraph_host,\r\n            }, authority);\r\n        }\r\n        // AccessToken\r\n        var cachedAccessToken = null;\r\n        if (!StringUtils.isEmpty(serverTokenResponse.access_token)) {\r\n            // If scopes not returned in server response, use request scopes\r\n            var responseScopes = serverTokenResponse.scope ? ScopeSet.fromString(serverTokenResponse.scope) : new ScopeSet(request.scopes || []);\r\n            /*\r\n             * Use timestamp calculated before request\r\n             * Server may return timestamps as strings, parse to numbers if so.\r\n             */\r\n            var expiresIn = (typeof serverTokenResponse.expires_in === \"string\" ? parseInt(serverTokenResponse.expires_in, 10) : serverTokenResponse.expires_in) || 0;\r\n            var extExpiresIn = (typeof serverTokenResponse.ext_expires_in === \"string\" ? parseInt(serverTokenResponse.ext_expires_in, 10) : serverTokenResponse.ext_expires_in) || 0;\r\n            var refreshIn = (typeof serverTokenResponse.refresh_in === \"string\" ? parseInt(serverTokenResponse.refresh_in, 10) : serverTokenResponse.refresh_in) || undefined;\r\n            var tokenExpirationSeconds = reqTimestamp + expiresIn;\r\n            var extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn;\r\n            var refreshOnSeconds = refreshIn && refreshIn > 0 ? reqTimestamp + refreshIn : undefined;\r\n            // non AAD scenarios can have empty realm\r\n            cachedAccessToken = AccessTokenEntity.createAccessTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.access_token || Constants.EMPTY_STRING, this.clientId, idTokenObj ? idTokenObj.claims.tid || Constants.EMPTY_STRING : authority.tenant, responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request.claims, request.requestedClaimsHash);\r\n        }\r\n        // refreshToken\r\n        var cachedRefreshToken = null;\r\n        if (!StringUtils.isEmpty(serverTokenResponse.refresh_token)) {\r\n            cachedRefreshToken = RefreshTokenEntity.createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token || Constants.EMPTY_STRING, this.clientId, serverTokenResponse.foci, userAssertionHash);\r\n        }\r\n        // appMetadata\r\n        var cachedAppMetadata = null;\r\n        if (!StringUtils.isEmpty(serverTokenResponse.foci)) {\r\n            cachedAppMetadata = AppMetadataEntity.createAppMetadataEntity(this.clientId, env, serverTokenResponse.foci);\r\n        }\r\n        return new CacheRecord(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);\r\n    };\r\n    /**\r\n     * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache.\r\n     *\r\n     * Optionally takes a state string that is set as-is in the response.\r\n     *\r\n     * @param cacheRecord\r\n     * @param idTokenObj\r\n     * @param fromTokenCache\r\n     * @param stateString\r\n     */\r\n    ResponseHandler.generateAuthenticationResult = function (cryptoObj, authority, cacheRecord, fromTokenCache, request, idTokenObj, requestState, serverTokenResponse, requestId) {\r\n        var _a, _b, _c;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var accessToken, responseScopes, expiresOn, extExpiresOn, familyId, popTokenGenerator, _d, secret, keyId, uid, tid;\r\n            return __generator(this, function (_e) {\r\n                switch (_e.label) {\r\n                    case 0:\r\n                        accessToken = Constants.EMPTY_STRING;\r\n                        responseScopes = [];\r\n                        expiresOn = null;\r\n                        familyId = Constants.EMPTY_STRING;\r\n                        if (!cacheRecord.accessToken) return [3 /*break*/, 4];\r\n                        if (!(cacheRecord.accessToken.tokenType === AuthenticationScheme.POP)) return [3 /*break*/, 2];\r\n                        popTokenGenerator = new PopTokenGenerator(cryptoObj);\r\n                        _d = cacheRecord.accessToken, secret = _d.secret, keyId = _d.keyId;\r\n                        if (!keyId) {\r\n                            throw ClientAuthError.createKeyIdMissingError();\r\n                        }\r\n                        return [4 /*yield*/, popTokenGenerator.signPopToken(secret, keyId, request)];\r\n                    case 1:\r\n                        accessToken = _e.sent();\r\n                        return [3 /*break*/, 3];\r\n                    case 2:\r\n                        accessToken = cacheRecord.accessToken.secret;\r\n                        _e.label = 3;\r\n                    case 3:\r\n                        responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target).asArray();\r\n                        expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000);\r\n                        extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000);\r\n                        _e.label = 4;\r\n                    case 4:\r\n                        if (cacheRecord.appMetadata) {\r\n                            familyId = cacheRecord.appMetadata.familyId === THE_FAMILY_ID ? THE_FAMILY_ID : Constants.EMPTY_STRING;\r\n                        }\r\n                        uid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.oid) || (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.sub) || Constants.EMPTY_STRING;\r\n                        tid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.tid) || Constants.EMPTY_STRING;\r\n                        // for hybrid + native bridge enablement, send back the native account Id\r\n                        if ((serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_accountid) && !!cacheRecord.account) {\r\n                            cacheRecord.account.nativeAccountId = serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_accountid;\r\n                        }\r\n                        return [2 /*return*/, {\r\n                                authority: authority.canonicalAuthority,\r\n                                uniqueId: uid,\r\n                                tenantId: tid,\r\n                                scopes: responseScopes,\r\n                                account: cacheRecord.account ? cacheRecord.account.getAccountInfo() : null,\r\n                                idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,\r\n                                idTokenClaims: idTokenObj ? idTokenObj.claims : {},\r\n                                accessToken: accessToken,\r\n                                fromCache: fromTokenCache,\r\n                                expiresOn: expiresOn,\r\n                                correlationId: request.correlationId,\r\n                                requestId: requestId || Constants.EMPTY_STRING,\r\n                                extExpiresOn: extExpiresOn,\r\n                                familyId: familyId,\r\n                                tokenType: ((_a = cacheRecord.accessToken) === null || _a === void 0 ? void 0 : _a.tokenType) || Constants.EMPTY_STRING,\r\n                                state: requestState ? requestState.userRequestState : Constants.EMPTY_STRING,\r\n                                cloudGraphHostName: ((_b = cacheRecord.account) === null || _b === void 0 ? void 0 : _b.cloudGraphHostName) || Constants.EMPTY_STRING,\r\n                                msGraphHost: ((_c = cacheRecord.account) === null || _c === void 0 ? void 0 : _c.msGraphHost) || Constants.EMPTY_STRING,\r\n                                code: serverTokenResponse === null || serverTokenResponse === void 0 ? void 0 : serverTokenResponse.spa_code,\r\n                                fromNativeBroker: false,\r\n                            }];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return ResponseHandler;\r\n}());\n\nexport { ResponseHandler };\n//# sourceMappingURL=ResponseHandler.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __assign, __generator, __spreadArrays } from '../_virtual/_tslib.js';\nimport { BaseClient } from './BaseClient.js';\nimport { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';\nimport { Separators, AADServerParamKeys, AuthenticationScheme, GrantType, PromptValue, HeaderNames } from '../utils/Constants.js';\nimport { ResponseHandler } from '../response/ResponseHandler.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { UrlString } from '../url/UrlString.js';\nimport { PopTokenGenerator } from '../crypto/PopTokenGenerator.js';\nimport { TimeUtils } from '../utils/TimeUtils.js';\nimport { buildClientInfo, buildClientInfoFromHomeAccountId } from '../account/ClientInfo.js';\nimport { CcsCredentialType } from '../account/CcsCredential.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { RequestValidator } from '../request/RequestValidator.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Oauth2.0 Authorization Code client\r\n */\r\nvar AuthorizationCodeClient = /** @class */ (function (_super) {\r\n    __extends(AuthorizationCodeClient, _super);\r\n    function AuthorizationCodeClient(configuration, performanceClient) {\r\n        var _this = _super.call(this, configuration, performanceClient) || this;\r\n        // Flag to indicate if client is for hybrid spa auth code redemption\r\n        _this.includeRedirectUri = true;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates the URL of the authorization request letting the user input credentials and consent to the\r\n     * application. The URL target the /authorize endpoint of the authority configured in the\r\n     * application object.\r\n     *\r\n     * Once the user inputs their credentials and consents, the authority will send a response to the redirect URI\r\n     * sent in the request and should contain an authorization code, which can then be used to acquire tokens via\r\n     * acquireToken(AuthorizationCodeRequest)\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.getAuthCodeUrl = function (request) {\r\n        var _a, _b;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var queryString;\r\n            return __generator(this, function (_c) {\r\n                switch (_c.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.GetAuthCodeUrl, request.correlationId);\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeUrlQueryString(request)];\r\n                    case 1:\r\n                        queryString = _c.sent();\r\n                        return [2 /*return*/, UrlString.appendQueryString(this.authority.authorizationEndpoint, queryString)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the\r\n     * authorization_code_grant\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.acquireToken = function (request, authCodePayload) {\r\n        var _a, _b, _c, _d, _e, _f;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var atsMeasurement, reqTimestamp, response, requestId, httpVerAuthority, responseHandler;\r\n            var _this = this;\r\n            return __generator(this, function (_g) {\r\n                switch (_g.label) {\r\n                    case 0:\r\n                        if (!request || !request.code) {\r\n                            throw ClientAuthError.createTokenRequestCannotBeMadeError();\r\n                        }\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientAcquireToken, request.correlationId);\r\n                        atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(\"AuthCodeClientAcquireToken\", request.correlationId);\r\n                        this.logger.info(\"in acquireToken call in auth-code client\");\r\n                        reqTimestamp = TimeUtils.nowSeconds();\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.executeTokenRequest(this.authority, request)];\r\n                    case 1:\r\n                        response = _g.sent();\r\n                        requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_REQUEST_ID];\r\n                        httpVerAuthority = (_e = response.headers) === null || _e === void 0 ? void 0 : _e[HeaderNames.X_MS_HTTP_VERSION];\r\n                        if (httpVerAuthority) {\r\n                            atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({\r\n                                httpVerAuthority: httpVerAuthority\r\n                            });\r\n                        }\r\n                        responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient);\r\n                        // Validate response. This function throws a server error if an error is returned by the server.\r\n                        responseHandler.validateTokenResponse(response.body);\r\n                        (_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(PerformanceEvents.HandleServerTokenResponse, request.correlationId);\r\n                        return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId).then(function (result) {\r\n                                atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({\r\n                                    success: true\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                _this.logger.verbose(\"Error in fetching token in ACC\", request.correlationId);\r\n                                atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({\r\n                                    errorCode: error.errorCode,\r\n                                    subErrorCode: error.subError,\r\n                                    success: false\r\n                                });\r\n                                throw error;\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Handles the hash fragment response from public client code request. Returns a code response used by\r\n     * the client to exchange for a token in acquireToken.\r\n     * @param hashFragment\r\n     */\r\n    AuthorizationCodeClient.prototype.handleFragmentResponse = function (hashFragment, cachedState) {\r\n        // Handle responses.\r\n        var responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, null, null);\r\n        // Deserialize hash fragment response parameters.\r\n        var hashUrlString = new UrlString(hashFragment);\r\n        // Deserialize hash fragment response parameters.\r\n        var serverParams = UrlString.getDeserializedHash(hashUrlString.getHash());\r\n        // Get code response\r\n        responseHandler.validateServerAuthorizationCodeResponse(serverParams, cachedState, this.cryptoUtils);\r\n        // throw when there is no auth code in the response\r\n        if (!serverParams.code) {\r\n            throw ClientAuthError.createNoAuthCodeInServerResponseError();\r\n        }\r\n        return __assign(__assign({}, serverParams), { \r\n            // Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod\r\n            code: serverParams.code });\r\n    };\r\n    /**\r\n     * Used to log out the current user, and redirect the user to the postLogoutRedirectUri.\r\n     * Default behaviour is to redirect the user to `window.location.href`.\r\n     * @param authorityUri\r\n     */\r\n    AuthorizationCodeClient.prototype.getLogoutUri = function (logoutRequest) {\r\n        // Throw error if logoutRequest is null/undefined\r\n        if (!logoutRequest) {\r\n            throw ClientConfigurationError.createEmptyLogoutRequestError();\r\n        }\r\n        var queryString = this.createLogoutUrlQueryString(logoutRequest);\r\n        // Construct logout URI\r\n        return UrlString.appendQueryString(this.authority.endSessionEndpoint, queryString);\r\n    };\r\n    /**\r\n     * Executes POST request to token endpoint\r\n     * @param authority\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.executeTokenRequest = function (authority, request) {\r\n        var _a, _b;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var queryParametersString, endpoint, requestBody, ccsCredential, clientInfo, headers, thumbprint;\r\n            return __generator(this, function (_c) {\r\n                switch (_c.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);\r\n                        queryParametersString = this.createTokenQueryParameters(request);\r\n                        endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);\r\n                        return [4 /*yield*/, this.createTokenRequestBody(request)];\r\n                    case 1:\r\n                        requestBody = _c.sent();\r\n                        ccsCredential = undefined;\r\n                        if (request.clientInfo) {\r\n                            try {\r\n                                clientInfo = buildClientInfo(request.clientInfo, this.cryptoUtils);\r\n                                ccsCredential = {\r\n                                    credential: \"\" + clientInfo.uid + Separators.CLIENT_INFO_SEPARATOR + clientInfo.utid,\r\n                                    type: CcsCredentialType.HOME_ACCOUNT_ID\r\n                                };\r\n                            }\r\n                            catch (e) {\r\n                                this.logger.verbose(\"Could not parse client info for CCS Header: \" + e);\r\n                            }\r\n                        }\r\n                        headers = this.createTokenRequestHeaders(ccsCredential || request.ccsCredential);\r\n                        thumbprint = {\r\n                            clientId: this.config.authOptions.clientId,\r\n                            authority: authority.canonicalAuthority,\r\n                            scopes: request.scopes,\r\n                            claims: request.claims,\r\n                            authenticationScheme: request.authenticationScheme,\r\n                            resourceRequestMethod: request.resourceRequestMethod,\r\n                            resourceRequestUri: request.resourceRequestUri,\r\n                            shrClaims: request.shrClaims,\r\n                            sshKid: request.sshKid\r\n                        };\r\n                        return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates a map for all the params to be sent to the service\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.createTokenRequestBody = function (request) {\r\n        var _a, _b;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, correlationId, ccsCred, clientInfo, clientInfo;\r\n            var _c;\r\n            return __generator(this, function (_d) {\r\n                switch (_d.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);\r\n                        parameterBuilder = new RequestParameterBuilder();\r\n                        parameterBuilder.addClientId(this.config.authOptions.clientId);\r\n                        /*\r\n                         * For hybrid spa flow, there will be a code but no verifier\r\n                         * In this scenario, don't include redirect uri as auth code will not be bound to redirect URI\r\n                         */\r\n                        if (!this.includeRedirectUri) {\r\n                            // Just validate\r\n                            RequestValidator.validateRedirectUri(request.redirectUri);\r\n                        }\r\n                        else {\r\n                            // Validate and include redirect uri\r\n                            parameterBuilder.addRedirectUri(request.redirectUri);\r\n                        }\r\n                        // Add scope array, parameter builder will add default scopes and dedupe\r\n                        parameterBuilder.addScopes(request.scopes);\r\n                        // add code: user set, not validated\r\n                        parameterBuilder.addAuthorizationCode(request.code);\r\n                        // Add library metadata\r\n                        parameterBuilder.addLibraryInfo(this.config.libraryInfo);\r\n                        parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);\r\n                        parameterBuilder.addThrottling();\r\n                        if (this.serverTelemetryManager) {\r\n                            parameterBuilder.addServerTelemetry(this.serverTelemetryManager);\r\n                        }\r\n                        // add code_verifier if passed\r\n                        if (request.codeVerifier) {\r\n                            parameterBuilder.addCodeVerifier(request.codeVerifier);\r\n                        }\r\n                        if (this.config.clientCredentials.clientSecret) {\r\n                            parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret);\r\n                        }\r\n                        if (this.config.clientCredentials.clientAssertion) {\r\n                            clientAssertion = this.config.clientCredentials.clientAssertion;\r\n                            parameterBuilder.addClientAssertion(clientAssertion.assertion);\r\n                            parameterBuilder.addClientAssertionType(clientAssertion.assertionType);\r\n                        }\r\n                        parameterBuilder.addGrantType(GrantType.AUTHORIZATION_CODE_GRANT);\r\n                        parameterBuilder.addClientInfo();\r\n                        if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];\r\n                        popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);\r\n                        return [4 /*yield*/, popTokenGenerator.generateCnf(request)];\r\n                    case 1:\r\n                        reqCnfData = _d.sent();\r\n                        // SPA PoP requires full Base64Url encoded req_cnf string (unhashed)\r\n                        parameterBuilder.addPopToken(reqCnfData.reqCnfString);\r\n                        return [3 /*break*/, 3];\r\n                    case 2:\r\n                        if (request.authenticationScheme === AuthenticationScheme.SSH) {\r\n                            if (request.sshJwk) {\r\n                                parameterBuilder.addSshJwk(request.sshJwk);\r\n                            }\r\n                            else {\r\n                                throw ClientConfigurationError.createMissingSshJwkError();\r\n                            }\r\n                        }\r\n                        _d.label = 3;\r\n                    case 3:\r\n                        correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid();\r\n                        parameterBuilder.addCorrelationId(correlationId);\r\n                        if (!StringUtils.isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) {\r\n                            parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);\r\n                        }\r\n                        ccsCred = undefined;\r\n                        if (request.clientInfo) {\r\n                            try {\r\n                                clientInfo = buildClientInfo(request.clientInfo, this.cryptoUtils);\r\n                                ccsCred = {\r\n                                    credential: \"\" + clientInfo.uid + Separators.CLIENT_INFO_SEPARATOR + clientInfo.utid,\r\n                                    type: CcsCredentialType.HOME_ACCOUNT_ID\r\n                                };\r\n                            }\r\n                            catch (e) {\r\n                                this.logger.verbose(\"Could not parse client info for CCS Header: \" + e);\r\n                            }\r\n                        }\r\n                        else {\r\n                            ccsCred = request.ccsCredential;\r\n                        }\r\n                        // Adds these as parameters in the request instead of headers to prevent CORS preflight request\r\n                        if (this.config.systemOptions.preventCorsPreflight && ccsCred) {\r\n                            switch (ccsCred.type) {\r\n                                case CcsCredentialType.HOME_ACCOUNT_ID:\r\n                                    try {\r\n                                        clientInfo = buildClientInfoFromHomeAccountId(ccsCred.credential);\r\n                                        parameterBuilder.addCcsOid(clientInfo);\r\n                                    }\r\n                                    catch (e) {\r\n                                        this.logger.verbose(\"Could not parse home account ID for CCS Header: \" + e);\r\n                                    }\r\n                                    break;\r\n                                case CcsCredentialType.UPN:\r\n                                    parameterBuilder.addCcsUpn(ccsCred.credential);\r\n                                    break;\r\n                            }\r\n                        }\r\n                        if (request.tokenBodyParameters) {\r\n                            parameterBuilder.addExtraQueryParameters(request.tokenBodyParameters);\r\n                        }\r\n                        // Add hybrid spa parameters if not already provided\r\n                        if (request.enableSpaAuthorizationCode && (!request.tokenBodyParameters || !request.tokenBodyParameters[AADServerParamKeys.RETURN_SPA_CODE])) {\r\n                            parameterBuilder.addExtraQueryParameters((_c = {},\r\n                                _c[AADServerParamKeys.RETURN_SPA_CODE] = \"1\",\r\n                                _c));\r\n                        }\r\n                        return [2 /*return*/, parameterBuilder.createQueryString()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * This API validates the `AuthorizationCodeUrlRequest` and creates a URL\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.createAuthCodeUrlQueryString = function (request) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var parameterBuilder, requestScopes, correlationId, accountSid, accountLoginHintClaim, clientInfo, clientInfo, clientInfo, popTokenGenerator, reqCnfData;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);\r\n                        parameterBuilder = new RequestParameterBuilder();\r\n                        parameterBuilder.addClientId(this.config.authOptions.clientId);\r\n                        requestScopes = __spreadArrays(request.scopes || [], request.extraScopesToConsent || []);\r\n                        parameterBuilder.addScopes(requestScopes);\r\n                        // validate the redirectUri (to be a non null value)\r\n                        parameterBuilder.addRedirectUri(request.redirectUri);\r\n                        correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid();\r\n                        parameterBuilder.addCorrelationId(correlationId);\r\n                        // add response_mode. If not passed in it defaults to query.\r\n                        parameterBuilder.addResponseMode(request.responseMode);\r\n                        // add response_type = code\r\n                        parameterBuilder.addResponseTypeCode();\r\n                        // add library info parameters\r\n                        parameterBuilder.addLibraryInfo(this.config.libraryInfo);\r\n                        parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);\r\n                        // add client_info=1\r\n                        parameterBuilder.addClientInfo();\r\n                        if (request.codeChallenge && request.codeChallengeMethod) {\r\n                            parameterBuilder.addCodeChallengeParams(request.codeChallenge, request.codeChallengeMethod);\r\n                        }\r\n                        if (request.prompt) {\r\n                            parameterBuilder.addPrompt(request.prompt);\r\n                        }\r\n                        if (request.domainHint) {\r\n                            parameterBuilder.addDomainHint(request.domainHint);\r\n                        }\r\n                        // Add sid or loginHint with preference for login_hint claim (in request) -> sid -> loginHint (upn/email) -> username of AccountInfo object\r\n                        if (request.prompt !== PromptValue.SELECT_ACCOUNT) {\r\n                            // AAD will throw if prompt=select_account is passed with an account hint\r\n                            if (request.sid && request.prompt === PromptValue.NONE) {\r\n                                // SessionID is only used in silent calls\r\n                                this.logger.verbose(\"createAuthCodeUrlQueryString: Prompt is none, adding sid from request\");\r\n                                parameterBuilder.addSid(request.sid);\r\n                            }\r\n                            else if (request.account) {\r\n                                accountSid = this.extractAccountSid(request.account);\r\n                                accountLoginHintClaim = this.extractLoginHint(request.account);\r\n                                // If login_hint claim is present, use it over sid/username\r\n                                if (accountLoginHintClaim) {\r\n                                    this.logger.verbose(\"createAuthCodeUrlQueryString: login_hint claim present on account\");\r\n                                    parameterBuilder.addLoginHint(accountLoginHintClaim);\r\n                                    try {\r\n                                        clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);\r\n                                        parameterBuilder.addCcsOid(clientInfo);\r\n                                    }\r\n                                    catch (e) {\r\n                                        this.logger.verbose(\"createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header\");\r\n                                    }\r\n                                }\r\n                                else if (accountSid && request.prompt === PromptValue.NONE) {\r\n                                    /*\r\n                                     * If account and loginHint are provided, we will check account first for sid before adding loginHint\r\n                                     * SessionId is only used in silent calls\r\n                                     */\r\n                                    this.logger.verbose(\"createAuthCodeUrlQueryString: Prompt is none, adding sid from account\");\r\n                                    parameterBuilder.addSid(accountSid);\r\n                                    try {\r\n                                        clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);\r\n                                        parameterBuilder.addCcsOid(clientInfo);\r\n                                    }\r\n                                    catch (e) {\r\n                                        this.logger.verbose(\"createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header\");\r\n                                    }\r\n                                }\r\n                                else if (request.loginHint) {\r\n                                    this.logger.verbose(\"createAuthCodeUrlQueryString: Adding login_hint from request\");\r\n                                    parameterBuilder.addLoginHint(request.loginHint);\r\n                                    parameterBuilder.addCcsUpn(request.loginHint);\r\n                                }\r\n                                else if (request.account.username) {\r\n                                    // Fallback to account username if provided\r\n                                    this.logger.verbose(\"createAuthCodeUrlQueryString: Adding login_hint from account\");\r\n                                    parameterBuilder.addLoginHint(request.account.username);\r\n                                    try {\r\n                                        clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);\r\n                                        parameterBuilder.addCcsOid(clientInfo);\r\n                                    }\r\n                                    catch (e) {\r\n                                        this.logger.verbose(\"createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header\");\r\n                                    }\r\n                                }\r\n                            }\r\n                            else if (request.loginHint) {\r\n                                this.logger.verbose(\"createAuthCodeUrlQueryString: No account, adding login_hint from request\");\r\n                                parameterBuilder.addLoginHint(request.loginHint);\r\n                                parameterBuilder.addCcsUpn(request.loginHint);\r\n                            }\r\n                        }\r\n                        else {\r\n                            this.logger.verbose(\"createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints\");\r\n                        }\r\n                        if (request.nonce) {\r\n                            parameterBuilder.addNonce(request.nonce);\r\n                        }\r\n                        if (request.state) {\r\n                            parameterBuilder.addState(request.state);\r\n                        }\r\n                        if (!StringUtils.isEmpty(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) {\r\n                            parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);\r\n                        }\r\n                        if (request.extraQueryParameters) {\r\n                            parameterBuilder.addExtraQueryParameters(request.extraQueryParameters);\r\n                        }\r\n                        if (!request.nativeBroker) return [3 /*break*/, 2];\r\n                        // signal ests that this is a WAM call\r\n                        parameterBuilder.addNativeBroker();\r\n                        if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];\r\n                        popTokenGenerator = new PopTokenGenerator(this.cryptoUtils);\r\n                        return [4 /*yield*/, popTokenGenerator.generateCnf(request)];\r\n                    case 1:\r\n                        reqCnfData = _b.sent();\r\n                        parameterBuilder.addPopToken(reqCnfData.reqCnfString);\r\n                        _b.label = 2;\r\n                    case 2: return [2 /*return*/, parameterBuilder.createQueryString()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * This API validates the `EndSessionRequest` and creates a URL\r\n     * @param request\r\n     */\r\n    AuthorizationCodeClient.prototype.createLogoutUrlQueryString = function (request) {\r\n        var parameterBuilder = new RequestParameterBuilder();\r\n        if (request.postLogoutRedirectUri) {\r\n            parameterBuilder.addPostLogoutRedirectUri(request.postLogoutRedirectUri);\r\n        }\r\n        if (request.correlationId) {\r\n            parameterBuilder.addCorrelationId(request.correlationId);\r\n        }\r\n        if (request.idTokenHint) {\r\n            parameterBuilder.addIdTokenHint(request.idTokenHint);\r\n        }\r\n        if (request.state) {\r\n            parameterBuilder.addState(request.state);\r\n        }\r\n        if (request.logoutHint) {\r\n            parameterBuilder.addLogoutHint(request.logoutHint);\r\n        }\r\n        if (request.extraQueryParameters) {\r\n            parameterBuilder.addExtraQueryParameters(request.extraQueryParameters);\r\n        }\r\n        return parameterBuilder.createQueryString();\r\n    };\r\n    /**\r\n     * Helper to get sid from account. Returns null if idTokenClaims are not present or sid is not present.\r\n     * @param account\r\n     */\r\n    AuthorizationCodeClient.prototype.extractAccountSid = function (account) {\r\n        var _a;\r\n        return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a.sid) || null;\r\n    };\r\n    AuthorizationCodeClient.prototype.extractLoginHint = function (account) {\r\n        var _a;\r\n        return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a.login_hint) || null;\r\n    };\r\n    return AuthorizationCodeClient;\r\n}(BaseClient));\n\nexport { AuthorizationCodeClient };\n//# sourceMappingURL=AuthorizationCodeClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nfunction isOpenIdConfigResponse(response) {\r\n    return (response.hasOwnProperty(\"authorization_endpoint\") &&\r\n        response.hasOwnProperty(\"token_endpoint\") &&\r\n        response.hasOwnProperty(\"issuer\") &&\r\n        response.hasOwnProperty(\"jwks_uri\"));\r\n}\n\nexport { isOpenIdConfigResponse };\n//# sourceMappingURL=OpenIdConfigResponse.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar rawMetdataJSON = { \"endpointMetadata\": { \"https://login.microsoftonline.com/common/\": { \"token_endpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.com/common/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.com/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.com/common/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.com\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pas.windows.net\" }, \"https://login.chinacloudapi.cn/common/\": { \"token_endpoint\": \"https://login.chinacloudapi.cn/common/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.chinacloudapi.cn/common/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.partner.microsoftonline.cn/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo\", \"authorization_endpoint\": \"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.chinacloudapi.cn/common/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"partner.microsoftonline.cn\", \"cloud_graph_host_name\": \"graph.chinacloudapi.cn\", \"msgraph_host\": \"microsoftgraph.chinacloudapi.cn\", \"rbac_url\": \"https://pas.chinacloudapi.cn\" }, \"https://login.microsoftonline.us/common/\": { \"token_endpoint\": \"https://login.microsoftonline.us/common/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.us/common/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.us/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.us/common/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.us/common/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.us/common/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.us\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pasff.usgovcloudapi.net\" }, \"https://login.microsoftonline.com/consumers/\": { \"token_endpoint\": \"https://login.microsoftonline.com/consumers/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.com/consumers/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.com/consumers/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.com\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pas.windows.net\" }, \"https://login.chinacloudapi.cn/consumers/\": { \"token_endpoint\": \"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo\", \"authorization_endpoint\": \"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.chinacloudapi.cn/consumers/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"partner.microsoftonline.cn\", \"cloud_graph_host_name\": \"graph.chinacloudapi.cn\", \"msgraph_host\": \"microsoftgraph.chinacloudapi.cn\", \"rbac_url\": \"https://pas.chinacloudapi.cn\" }, \"https://login.microsoftonline.us/consumers/\": { \"token_endpoint\": \"https://login.microsoftonline.us/consumers/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.us/consumers/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.us/consumers/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.us\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pasff.usgovcloudapi.net\" }, \"https://login.microsoftonline.com/organizations/\": { \"token_endpoint\": \"https://login.microsoftonline.com/organizations/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.com/organizations/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.com/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.com/organizations/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.com\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pas.windows.net\" }, \"https://login.chinacloudapi.cn/organizations/\": { \"token_endpoint\": \"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.partner.microsoftonline.cn/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo\", \"authorization_endpoint\": \"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.chinacloudapi.cn/organizations/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"partner.microsoftonline.cn\", \"cloud_graph_host_name\": \"graph.chinacloudapi.cn\", \"msgraph_host\": \"microsoftgraph.chinacloudapi.cn\", \"rbac_url\": \"https://pas.chinacloudapi.cn\" }, \"https://login.microsoftonline.us/organizations/\": { \"token_endpoint\": \"https://login.microsoftonline.us/organizations/oauth2/v2.0/token\", \"token_endpoint_auth_methods_supported\": [\"client_secret_post\", \"private_key_jwt\", \"client_secret_basic\"], \"jwks_uri\": \"https://login.microsoftonline.us/organizations/discovery/v2.0/keys\", \"response_modes_supported\": [\"query\", \"fragment\", \"form_post\"], \"subject_types_supported\": [\"pairwise\"], \"id_token_signing_alg_values_supported\": [\"RS256\"], \"response_types_supported\": [\"code\", \"id_token\", \"code id_token\", \"id_token token\"], \"scopes_supported\": [\"openid\", \"profile\", \"email\", \"offline_access\"], \"issuer\": \"https://login.microsoftonline.us/{tenantid}/v2.0\", \"request_uri_parameter_supported\": false, \"userinfo_endpoint\": \"https://graph.microsoft.com/oidc/userinfo\", \"authorization_endpoint\": \"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize\", \"device_authorization_endpoint\": \"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode\", \"http_logout_supported\": true, \"frontchannel_logout_supported\": true, \"end_session_endpoint\": \"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout\", \"claims_supported\": [\"sub\", \"iss\", \"cloud_instance_name\", \"cloud_instance_host_name\", \"cloud_graph_host_name\", \"msgraph_host\", \"aud\", \"exp\", \"iat\", \"auth_time\", \"acr\", \"nonce\", \"preferred_username\", \"name\", \"tid\", \"ver\", \"at_hash\", \"c_hash\", \"email\"], \"kerberos_endpoint\": \"https://login.microsoftonline.us/organizations/kerberos\", \"tenant_region_scope\": null, \"cloud_instance_name\": \"microsoftonline.us\", \"cloud_graph_host_name\": \"graph.windows.net\", \"msgraph_host\": \"graph.microsoft.com\", \"rbac_url\": \"https://pasff.usgovcloudapi.net\" } }, \"instanceDiscoveryMetadata\": { \"https://login.microsoftonline.com/common/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.chinacloudapi.cn/common/\": { \"tenant_discovery_endpoint\": \"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.microsoftonline.us/common/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.microsoftonline.com/consumers/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.chinacloudapi.cn/consumers/\": { \"tenant_discovery_endpoint\": \"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.microsoftonline.us/consumers/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.microsoftonline.com/organizations/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.chinacloudapi.cn/organizations/\": { \"tenant_discovery_endpoint\": \"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] }, \"https://login.microsoftonline.us/organizations/\": { \"tenant_discovery_endpoint\": \"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration\", \"api-version\": \"1.1\", \"metadata\": [{ \"preferred_network\": \"login.microsoftonline.com\", \"preferred_cache\": \"login.windows.net\", \"aliases\": [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"] }, { \"preferred_network\": \"login.partner.microsoftonline.cn\", \"preferred_cache\": \"login.partner.microsoftonline.cn\", \"aliases\": [\"login.partner.microsoftonline.cn\", \"login.chinacloudapi.cn\"] }, { \"preferred_network\": \"login.microsoftonline.de\", \"preferred_cache\": \"login.microsoftonline.de\", \"aliases\": [\"login.microsoftonline.de\"] }, { \"preferred_network\": \"login.microsoftonline.us\", \"preferred_cache\": \"login.microsoftonline.us\", \"aliases\": [\"login.microsoftonline.us\", \"login.usgovcloudapi.net\"] }, { \"preferred_network\": \"login-us.microsoftonline.com\", \"preferred_cache\": \"login-us.microsoftonline.com\", \"aliases\": [\"login-us.microsoftonline.com\"] }] } } };\r\nvar EndpointMetadata = rawMetdataJSON.endpointMetadata;\r\nvar InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;\n\nexport { EndpointMetadata, InstanceDiscoveryMetadata, rawMetdataJSON };\n//# sourceMappingURL=AuthorityMetadata.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { RegionDiscoverySources, ResponseCodes, Constants } from '../utils/Constants.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar RegionDiscovery = /** @class */ (function () {\r\n    function RegionDiscovery(networkInterface, performanceClient, correlationId) {\r\n        this.networkInterface = networkInterface;\r\n        this.performanceClient = performanceClient;\r\n        this.correlationId = correlationId;\r\n    }\r\n    /**\r\n     * Detect the region from the application's environment.\r\n     *\r\n     * @returns Promise<string | null>\r\n     */\r\n    RegionDiscovery.prototype.detectRegion = function (environmentRegion, regionDiscoveryMetadata) {\r\n        var _a, _b, _c, _d;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var autodetectedRegionName, options, localIMDSVersionResponse, currentIMDSVersion, currentIMDSVersionResponse;\r\n            return __generator(this, function (_e) {\r\n                switch (_e.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);\r\n                        autodetectedRegionName = environmentRegion;\r\n                        if (!!autodetectedRegionName) return [3 /*break*/, 8];\r\n                        options = RegionDiscovery.IMDS_OPTIONS;\r\n                        _e.label = 1;\r\n                    case 1:\r\n                        _e.trys.push([1, 6, , 7]);\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);\r\n                        return [4 /*yield*/, this.getRegionFromIMDS(Constants.IMDS_VERSION, options)];\r\n                    case 2:\r\n                        localIMDSVersionResponse = _e.sent();\r\n                        if (localIMDSVersionResponse.status === ResponseCodes.httpSuccess) {\r\n                            autodetectedRegionName = localIMDSVersionResponse.body;\r\n                            regionDiscoveryMetadata.region_source = RegionDiscoverySources.IMDS;\r\n                        }\r\n                        if (!(localIMDSVersionResponse.status === ResponseCodes.httpBadRequest)) return [3 /*break*/, 5];\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);\r\n                        return [4 /*yield*/, this.getCurrentVersion(options)];\r\n                    case 3:\r\n                        currentIMDSVersion = _e.sent();\r\n                        if (!currentIMDSVersion) {\r\n                            regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);\r\n                        return [4 /*yield*/, this.getRegionFromIMDS(currentIMDSVersion, options)];\r\n                    case 4:\r\n                        currentIMDSVersionResponse = _e.sent();\r\n                        if (currentIMDSVersionResponse.status === ResponseCodes.httpSuccess) {\r\n                            autodetectedRegionName = currentIMDSVersionResponse.body;\r\n                            regionDiscoveryMetadata.region_source = RegionDiscoverySources.IMDS;\r\n                        }\r\n                        _e.label = 5;\r\n                    case 5: return [3 /*break*/, 7];\r\n                    case 6:\r\n                        _e.sent();\r\n                        regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;\r\n                        return [2 /*return*/, null];\r\n                    case 7: return [3 /*break*/, 9];\r\n                    case 8:\r\n                        regionDiscoveryMetadata.region_source = RegionDiscoverySources.ENVIRONMENT_VARIABLE;\r\n                        _e.label = 9;\r\n                    case 9:\r\n                        // If no region was auto detected from the environment or from the IMDS endpoint, mark the attempt as a FAILED_AUTO_DETECTION\r\n                        if (!autodetectedRegionName) {\r\n                            regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;\r\n                        }\r\n                        return [2 /*return*/, autodetectedRegionName || null];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Make the call to the IMDS endpoint\r\n     *\r\n     * @param imdsEndpointUrl\r\n     * @returns Promise<NetworkResponse<string>>\r\n     */\r\n    RegionDiscovery.prototype.getRegionFromIMDS = function (version, options) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_b) {\r\n                (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);\r\n                return [2 /*return*/, this.networkInterface.sendGetRequestAsync(Constants.IMDS_ENDPOINT + \"?api-version=\" + version + \"&format=text\", options, Constants.IMDS_TIMEOUT)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get the most recent version of the IMDS endpoint available\r\n     *\r\n     * @returns Promise<string | null>\r\n     */\r\n    RegionDiscovery.prototype.getCurrentVersion = function (options) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var response;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(Constants.IMDS_ENDPOINT + \"?format=json\", options)];\r\n                    case 2:\r\n                        response = _b.sent();\r\n                        // When IMDS endpoint is called without the api version query param, bad request response comes back with latest version.\r\n                        if (response.status === ResponseCodes.httpBadRequest && response.body && response.body[\"newest-versions\"] && response.body[\"newest-versions\"].length > 0) {\r\n                            return [2 /*return*/, response.body[\"newest-versions\"][0]];\r\n                        }\r\n                        return [2 /*return*/, null];\r\n                    case 3:\r\n                        _b.sent();\r\n                        return [2 /*return*/, null];\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    // Options for the IMDS endpoint request\r\n    RegionDiscovery.IMDS_OPTIONS = {\r\n        headers: {\r\n            Metadata: \"true\",\r\n        },\r\n    };\r\n    return RegionDiscovery;\r\n}());\n\nexport { RegionDiscovery };\n//# sourceMappingURL=RegionDiscovery.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { InteractionRequiredAuthError, AuthError } from '@azure/msal-common';\nimport { BrowserAuthError } from './BrowserAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar NativeStatusCode;\r\n(function (NativeStatusCode) {\r\n    NativeStatusCode[\"USER_INTERACTION_REQUIRED\"] = \"USER_INTERACTION_REQUIRED\";\r\n    NativeStatusCode[\"USER_CANCEL\"] = \"USER_CANCEL\";\r\n    NativeStatusCode[\"NO_NETWORK\"] = \"NO_NETWORK\";\r\n    NativeStatusCode[\"TRANSIENT_ERROR\"] = \"TRANSIENT_ERROR\";\r\n    NativeStatusCode[\"PERSISTENT_ERROR\"] = \"PERSISTENT_ERROR\";\r\n    NativeStatusCode[\"DISABLED\"] = \"DISABLED\";\r\n    NativeStatusCode[\"ACCOUNT_UNAVAILABLE\"] = \"ACCOUNT_UNAVAILABLE\";\r\n})(NativeStatusCode || (NativeStatusCode = {}));\r\nvar NativeAuthErrorMessage = {\r\n    extensionError: {\r\n        code: \"ContentError\"\r\n    },\r\n    userSwitch: {\r\n        code: \"user_switch\",\r\n        desc: \"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.\"\r\n    },\r\n    tokensNotFoundInCache: {\r\n        code: \"tokens_not_found_in_internal_memory_cache\",\r\n        desc: \"Tokens not cached in MSAL JS internal memory, please make the WAM request\"\r\n    }\r\n};\r\nvar NativeAuthError = /** @class */ (function (_super) {\r\n    __extends(NativeAuthError, _super);\r\n    function NativeAuthError(errorCode, description, ext) {\r\n        var _this = _super.call(this, errorCode, description) || this;\r\n        Object.setPrototypeOf(_this, NativeAuthError.prototype);\r\n        _this.name = \"NativeAuthError\";\r\n        _this.ext = ext;\r\n        return _this;\r\n    }\r\n    /**\r\n     * These errors should result in a fallback to the 'standard' browser based auth flow.\r\n     */\r\n    NativeAuthError.prototype.isFatal = function () {\r\n        if (this.ext && this.ext.status && (this.ext.status === NativeStatusCode.PERSISTENT_ERROR || this.ext.status === NativeStatusCode.DISABLED)) {\r\n            return true;\r\n        }\r\n        switch (this.errorCode) {\r\n            case NativeAuthErrorMessage.extensionError.code:\r\n                return true;\r\n            default:\r\n                return false;\r\n        }\r\n    };\r\n    /**\r\n     * Create the appropriate error object based on the WAM status code.\r\n     * @param code\r\n     * @param description\r\n     * @param ext\r\n     * @returns\r\n     */\r\n    NativeAuthError.createError = function (code, description, ext) {\r\n        if (ext && ext.status) {\r\n            switch (ext.status) {\r\n                case NativeStatusCode.ACCOUNT_UNAVAILABLE:\r\n                    return InteractionRequiredAuthError.createNativeAccountUnavailableError();\r\n                case NativeStatusCode.USER_INTERACTION_REQUIRED:\r\n                    return new InteractionRequiredAuthError(code, description);\r\n                case NativeStatusCode.USER_CANCEL:\r\n                    return BrowserAuthError.createUserCancelledError();\r\n                case NativeStatusCode.NO_NETWORK:\r\n                    return BrowserAuthError.createNoNetworkConnectivityError();\r\n            }\r\n        }\r\n        return new NativeAuthError(code, description, ext);\r\n    };\r\n    /**\r\n     * Creates user switch error when the user chooses a different account in the native broker prompt\r\n     * @returns\r\n     */\r\n    NativeAuthError.createUserSwitchError = function () {\r\n        return new NativeAuthError(NativeAuthErrorMessage.userSwitch.code, NativeAuthErrorMessage.userSwitch.desc);\r\n    };\r\n    /**\r\n     * Creates a tokens not found error when the internal cache look up fails\r\n     * @returns NativeAuthError: tokensNotFoundInCache\r\n     */\r\n    NativeAuthError.createTokensNotFoundInCacheError = function () {\r\n        return new NativeAuthError(NativeAuthErrorMessage.tokensNotFoundInCache.code, NativeAuthErrorMessage.tokensNotFoundInCache.desc);\r\n    };\r\n    return NativeAuthError;\r\n}(AuthError));\n\nexport { NativeAuthError, NativeAuthErrorMessage, NativeStatusCode };\n//# sourceMappingURL=NativeAuthError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __assign, __generator } from '../_virtual/_tslib.js';\nimport { AuthorityType } from './AuthorityType.js';\nimport { isOpenIdConfigResponse } from './OpenIdConfigResponse.js';\nimport { UrlString } from '../url/UrlString.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { Constants, AADAuthorityConstants, AuthorityMetadataSource, RegionDiscoveryOutcomes } from '../utils/Constants.js';\nimport { EndpointMetadata, InstanceDiscoveryMetadata } from './AuthorityMetadata.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { ProtocolMode } from './ProtocolMode.js';\nimport { AuthorityMetadataEntity } from '../cache/entities/AuthorityMetadataEntity.js';\nimport { AzureCloudInstance } from './AuthorityOptions.js';\nimport { isCloudInstanceDiscoveryResponse } from './CloudInstanceDiscoveryResponse.js';\nimport { isCloudInstanceDiscoveryErrorResponse } from './CloudInstanceDiscoveryErrorResponse.js';\nimport { RegionDiscovery } from './RegionDiscovery.js';\nimport { AuthError } from '../error/AuthError.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the\r\n * endpoint. It will store the pertinent config data in this object for use during token calls.\r\n */\r\nvar Authority = /** @class */ (function () {\r\n    function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {\r\n        this.canonicalAuthority = authority;\r\n        this._canonicalAuthority.validateAsUri();\r\n        this.networkInterface = networkInterface;\r\n        this.cacheManager = cacheManager;\r\n        this.authorityOptions = authorityOptions;\r\n        this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };\r\n        this.logger = logger;\r\n        this.performanceClient = performanceClient;\r\n        this.correlationId = correlationId;\r\n        this.regionDiscovery = new RegionDiscovery(networkInterface, this.performanceClient, this.correlationId);\r\n    }\r\n    /**\r\n     * Get {@link AuthorityType}\r\n     * @param authorityUri {@link IUri}\r\n     * @private\r\n     */\r\n    Authority.prototype.getAuthorityType = function (authorityUri) {\r\n        // CIAM auth url pattern is being standardized as: <tenant>.ciamlogin.com\r\n        if (authorityUri.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL)) {\r\n            return AuthorityType.Ciam;\r\n        }\r\n        var pathSegments = authorityUri.PathSegments;\r\n        if (pathSegments.length) {\r\n            switch (pathSegments[0].toLowerCase()) {\r\n                case Constants.ADFS:\r\n                    return AuthorityType.Adfs;\r\n                case Constants.DSTS:\r\n                    return AuthorityType.Dsts;\r\n            }\r\n        }\r\n        return AuthorityType.Default;\r\n    };\r\n    Object.defineProperty(Authority.prototype, \"authorityType\", {\r\n        // See above for AuthorityType\r\n        get: function () {\r\n            return this.getAuthorityType(this.canonicalAuthorityUrlComponents);\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"protocolMode\", {\r\n        /**\r\n         * ProtocolMode enum representing the way endpoints are constructed.\r\n         */\r\n        get: function () {\r\n            return this.authorityOptions.protocolMode;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"options\", {\r\n        /**\r\n         * Returns authorityOptions which can be used to reinstantiate a new authority instance\r\n         */\r\n        get: function () {\r\n            return this.authorityOptions;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"canonicalAuthority\", {\r\n        /**\r\n         * A URL that is the authority set by the developer\r\n         */\r\n        get: function () {\r\n            return this._canonicalAuthority.urlString;\r\n        },\r\n        /**\r\n         * Sets canonical authority.\r\n         */\r\n        set: function (url) {\r\n            this._canonicalAuthority = new UrlString(url);\r\n            this._canonicalAuthority.validateAsUri();\r\n            this._canonicalAuthorityUrlComponents = null;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"canonicalAuthorityUrlComponents\", {\r\n        /**\r\n         * Get authority components.\r\n         */\r\n        get: function () {\r\n            if (!this._canonicalAuthorityUrlComponents) {\r\n                this._canonicalAuthorityUrlComponents = this._canonicalAuthority.getUrlComponents();\r\n            }\r\n            return this._canonicalAuthorityUrlComponents;\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"hostnameAndPort\", {\r\n        /**\r\n         * Get hostname and port i.e. login.microsoftonline.com\r\n         */\r\n        get: function () {\r\n            return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase();\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"tenant\", {\r\n        /**\r\n         * Get tenant for authority.\r\n         */\r\n        get: function () {\r\n            return this.canonicalAuthorityUrlComponents.PathSegments[0];\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"authorizationEndpoint\", {\r\n        /**\r\n         * OAuth /authorize endpoint for requests\r\n         */\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                return this.replacePath(this.metadata.authorization_endpoint);\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"tokenEndpoint\", {\r\n        /**\r\n         * OAuth /token endpoint for requests\r\n         */\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                return this.replacePath(this.metadata.token_endpoint);\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"deviceCodeEndpoint\", {\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                return this.replacePath(this.metadata.token_endpoint.replace(\"/token\", \"/devicecode\"));\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"endSessionEndpoint\", {\r\n        /**\r\n         * OAuth logout endpoint for requests\r\n         */\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                // ROPC policies may not have end_session_endpoint set\r\n                if (!this.metadata.end_session_endpoint) {\r\n                    throw ClientAuthError.createLogoutNotSupportedError();\r\n                }\r\n                return this.replacePath(this.metadata.end_session_endpoint);\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"selfSignedJwtAudience\", {\r\n        /**\r\n         * OAuth issuer for requests\r\n         */\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                return this.replacePath(this.metadata.issuer);\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Authority.prototype, \"jwksUri\", {\r\n        /**\r\n         * Jwks_uri for token signing keys\r\n         */\r\n        get: function () {\r\n            if (this.discoveryComplete()) {\r\n                return this.replacePath(this.metadata.jwks_uri);\r\n            }\r\n            else {\r\n                throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n            }\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Returns a flag indicating that tenant name can be replaced in authority {@link IUri}\r\n     * @param authorityUri {@link IUri}\r\n     * @private\r\n     */\r\n    Authority.prototype.canReplaceTenant = function (authorityUri) {\r\n        return authorityUri.PathSegments.length === 1\r\n            && !Authority.reservedTenantDomains.has(authorityUri.PathSegments[0])\r\n            && this.getAuthorityType(authorityUri) === AuthorityType.Default\r\n            && this.protocolMode === ProtocolMode.AAD;\r\n    };\r\n    /**\r\n     * Replaces tenant in url path with current tenant. Defaults to common.\r\n     * @param urlString\r\n     */\r\n    Authority.prototype.replaceTenant = function (urlString) {\r\n        return urlString.replace(/{tenant}|{tenantid}/g, this.tenant);\r\n    };\r\n    /**\r\n     * Replaces path such as tenant or policy with the current tenant or policy.\r\n     * @param urlString\r\n     */\r\n    Authority.prototype.replacePath = function (urlString) {\r\n        var _this = this;\r\n        var endpoint = urlString;\r\n        var cachedAuthorityUrl = new UrlString(this.metadata.canonical_authority);\r\n        var cachedAuthorityUrlComponents = cachedAuthorityUrl.getUrlComponents();\r\n        var cachedAuthorityParts = cachedAuthorityUrlComponents.PathSegments;\r\n        var currentAuthorityParts = this.canonicalAuthorityUrlComponents.PathSegments;\r\n        currentAuthorityParts.forEach(function (currentPart, index) {\r\n            var cachedPart = cachedAuthorityParts[index];\r\n            if (index === 0 && _this.canReplaceTenant(cachedAuthorityUrlComponents)) {\r\n                var tenantId = (new UrlString(_this.metadata.authorization_endpoint)).getUrlComponents().PathSegments[0];\r\n                /**\r\n                 * Check if AAD canonical authority contains tenant domain name, for example \"testdomain.onmicrosoft.com\",\r\n                 * by comparing its first path segment to the corresponding authorization endpoint path segment, which is\r\n                 * always resolved with tenant id by OIDC.\r\n                 */\r\n                if (cachedPart !== tenantId) {\r\n                    _this.logger.verbose(\"Replacing tenant domain name \" + cachedPart + \" with id \" + tenantId);\r\n                    cachedPart = tenantId;\r\n                }\r\n            }\r\n            if (currentPart !== cachedPart) {\r\n                endpoint = endpoint.replace(\"/\" + cachedPart + \"/\", \"/\" + currentPart + \"/\");\r\n            }\r\n        });\r\n        return this.replaceTenant(endpoint);\r\n    };\r\n    Object.defineProperty(Authority.prototype, \"defaultOpenIdConfigurationEndpoint\", {\r\n        /**\r\n         * The default open id configuration endpoint for any canonical authority.\r\n         */\r\n        get: function () {\r\n            if (this.authorityType === AuthorityType.Adfs ||\r\n                this.authorityType === AuthorityType.Dsts ||\r\n                this.protocolMode === ProtocolMode.OIDC) {\r\n                return this.canonicalAuthority + \".well-known/openid-configuration\";\r\n            }\r\n            return this.canonicalAuthority + \"v2.0/.well-known/openid-configuration\";\r\n        },\r\n        enumerable: false,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Boolean that returns whethr or not tenant discovery has been completed.\r\n     */\r\n    Authority.prototype.discoveryComplete = function () {\r\n        return !!this.metadata;\r\n    };\r\n    /**\r\n     * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network\r\n     * and the /authorize, /token and logout endpoints.\r\n     */\r\n    Authority.prototype.resolveEndpointsAsync = function () {\r\n        var _a, _b, _c;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var metadataEntity, cloudDiscoverySource, endpointSource, cacheKey;\r\n            return __generator(this, function (_d) {\r\n                switch (_d.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityResolveEndpointsAsync, this.correlationId);\r\n                        metadataEntity = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);\r\n                        if (!metadataEntity) {\r\n                            metadataEntity = new AuthorityMetadataEntity();\r\n                            metadataEntity.updateCanonicalAuthority(this.canonicalAuthority);\r\n                        }\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);\r\n                        return [4 /*yield*/, this.updateCloudDiscoveryMetadata(metadataEntity)];\r\n                    case 1:\r\n                        cloudDiscoverySource = _d.sent();\r\n                        this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, metadataEntity.preferred_network);\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);\r\n                        return [4 /*yield*/, this.updateEndpointMetadata(metadataEntity)];\r\n                    case 2:\r\n                        endpointSource = _d.sent();\r\n                        if (cloudDiscoverySource !== AuthorityMetadataSource.CACHE && endpointSource !== AuthorityMetadataSource.CACHE) {\r\n                            // Reset the expiration time unless both values came from a successful cache lookup\r\n                            metadataEntity.resetExpiresAt();\r\n                            metadataEntity.updateCanonicalAuthority(this.canonicalAuthority);\r\n                        }\r\n                        cacheKey = this.cacheManager.generateAuthorityMetadataCacheKey(metadataEntity.preferred_cache);\r\n                        this.cacheManager.setAuthorityMetadata(cacheKey, metadataEntity);\r\n                        this.metadata = metadataEntity;\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Update AuthorityMetadataEntity with new endpoints and return where the information came from\r\n     * @param metadataEntity\r\n     */\r\n    Authority.prototype.updateEndpointMetadata = function (metadataEntity) {\r\n        var _a, _b, _c, _d, _e, _f;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var metadata, harcodedMetadata;\r\n            return __generator(this, function (_g) {\r\n                switch (_g.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);\r\n                        metadata = this.getEndpointMetadataFromConfig();\r\n                        if (metadata) {\r\n                            metadataEntity.updateEndpointMetadata(metadata, false);\r\n                            return [2 /*return*/, AuthorityMetadataSource.CONFIG];\r\n                        }\r\n                        if (this.isAuthoritySameType(metadataEntity) && metadataEntity.endpointsFromNetwork && !metadataEntity.isExpired()) {\r\n                            // No need to update\r\n                            return [2 /*return*/, AuthorityMetadataSource.CACHE];\r\n                        }\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);\r\n                        return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];\r\n                    case 1:\r\n                        metadata = _g.sent();\r\n                        if (!metadata) return [3 /*break*/, 4];\r\n                        if (!((_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion)) return [3 /*break*/, 3];\r\n                        (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);\r\n                        return [4 /*yield*/, this.updateMetadataWithRegionalInformation(metadata)];\r\n                    case 2:\r\n                        metadata = _g.sent();\r\n                        _g.label = 3;\r\n                    case 3:\r\n                        metadataEntity.updateEndpointMetadata(metadata, true);\r\n                        return [2 /*return*/, AuthorityMetadataSource.NETWORK];\r\n                    case 4:\r\n                        harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();\r\n                        if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];\r\n                        if (!((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion)) return [3 /*break*/, 6];\r\n                        (_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);\r\n                        return [4 /*yield*/, this.updateMetadataWithRegionalInformation(harcodedMetadata)];\r\n                    case 5:\r\n                        harcodedMetadata = _g.sent();\r\n                        _g.label = 6;\r\n                    case 6:\r\n                        metadataEntity.updateEndpointMetadata(harcodedMetadata, false);\r\n                        return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];\r\n                    case 7: throw ClientAuthError.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Compares the number of url components after the domain to determine if the cached\r\n     * authority metadata can be used for the requested authority. Protects against same domain different\r\n     * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy\r\n     * @param metadataEntity\r\n     */\r\n    Authority.prototype.isAuthoritySameType = function (metadataEntity) {\r\n        var cachedAuthorityUrl = new UrlString(metadataEntity.canonical_authority);\r\n        var cachedParts = cachedAuthorityUrl.getUrlComponents().PathSegments;\r\n        return cachedParts.length === this.canonicalAuthorityUrlComponents.PathSegments.length;\r\n    };\r\n    /**\r\n     * Parse authorityMetadata config option\r\n     */\r\n    Authority.prototype.getEndpointMetadataFromConfig = function () {\r\n        if (this.authorityOptions.authorityMetadata) {\r\n            try {\r\n                return JSON.parse(this.authorityOptions.authorityMetadata);\r\n            }\r\n            catch (e) {\r\n                throw ClientConfigurationError.createInvalidAuthorityMetadataError();\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Gets OAuth endpoints from the given OpenID configuration endpoint.\r\n     *\r\n     * @param hasHardcodedMetadata boolean\r\n     */\r\n    Authority.prototype.getEndpointMetadataFromNetwork = function () {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var options, response;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);\r\n                        options = {};\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.networkInterface.\r\n                                sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint, options)];\r\n                    case 2:\r\n                        response = _b.sent();\r\n                        return [2 /*return*/, isOpenIdConfigResponse(response.body) ? response.body : null];\r\n                    case 3:\r\n                        _b.sent();\r\n                        return [2 /*return*/, null];\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get OAuth endpoints for common authorities.\r\n     */\r\n    Authority.prototype.getEndpointMetadataFromHardcodedValues = function () {\r\n        if (this.canonicalAuthority in EndpointMetadata) {\r\n            return EndpointMetadata[this.canonicalAuthority];\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Update the retrieved metadata with regional information.\r\n     * User selected Azure region will be used if configured.\r\n     */\r\n    Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) {\r\n        var _a, _b, _c, _d;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var userConfiguredAzureRegion, autodetectedRegionName;\r\n            return __generator(this, function (_e) {\r\n                switch (_e.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);\r\n                        userConfiguredAzureRegion = (_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion;\r\n                        if (!userConfiguredAzureRegion) return [3 /*break*/, 2];\r\n                        if (userConfiguredAzureRegion !== Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {\r\n                            this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;\r\n                            this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion;\r\n                            return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion)];\r\n                        }\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);\r\n                        return [4 /*yield*/, this.regionDiscovery.detectRegion((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.environmentRegion, this.regionDiscoveryMetadata)];\r\n                    case 1:\r\n                        autodetectedRegionName = _e.sent();\r\n                        if (autodetectedRegionName) {\r\n                            this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL;\r\n                            this.regionDiscoveryMetadata.region_used = autodetectedRegionName;\r\n                            return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, autodetectedRegionName)];\r\n                        }\r\n                        this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;\r\n                        _e.label = 2;\r\n                    case 2: return [2 /*return*/, metadata];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache\r\n     * and returns where the information was retrieved from\r\n     * @param metadataEntity\r\n     * @returns AuthorityMetadataSource\r\n     */\r\n    Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {\r\n        var _a, _b;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var metadata, metadataEntityExpired, harcodedMetadata;\r\n            return __generator(this, function (_c) {\r\n                switch (_c.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);\r\n                        // attempt to read metadata from the config\r\n                        this.logger.verbose(\"Attempting to get cloud discovery metadata in the config\");\r\n                        this.logger.verbosePii(\"Known Authorities: \" + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));\r\n                        this.logger.verbosePii(\"Authority Metadata: \" + (this.authorityOptions.authorityMetadata || Constants.NOT_APPLICABLE));\r\n                        this.logger.verbosePii(\"Canonical Authority: \" + (metadataEntity.canonical_authority || Constants.NOT_APPLICABLE));\r\n                        metadata = this.getCloudDiscoveryMetadataFromConfig();\r\n                        if (metadata) {\r\n                            this.logger.verbose(\"Found cloud discovery metadata in the config.\");\r\n                            metadataEntity.updateCloudDiscoveryMetadata(metadata, false);\r\n                            return [2 /*return*/, AuthorityMetadataSource.CONFIG];\r\n                        }\r\n                        // If the cached metadata came from config but that config was not passed to this instance, we must go to the network\r\n                        this.logger.verbose(\"Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache.\");\r\n                        metadataEntityExpired = metadataEntity.isExpired();\r\n                        if (this.isAuthoritySameType(metadataEntity) && metadataEntity.aliasesFromNetwork && !metadataEntityExpired) {\r\n                            this.logger.verbose(\"Found metadata in the cache.\");\r\n                            // No need to update\r\n                            return [2 /*return*/, AuthorityMetadataSource.CACHE];\r\n                        }\r\n                        else if (metadataEntityExpired) {\r\n                            this.logger.verbose(\"The metadata entity is expired.\");\r\n                        }\r\n                        this.logger.verbose(\"Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.\");\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);\r\n                        return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];\r\n                    case 1:\r\n                        metadata = _c.sent();\r\n                        if (metadata) {\r\n                            this.logger.verbose(\"cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()\");\r\n                            metadataEntity.updateCloudDiscoveryMetadata(metadata, true);\r\n                            return [2 /*return*/, AuthorityMetadataSource.NETWORK];\r\n                        }\r\n                        this.logger.verbose(\"Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values.\");\r\n                        harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();\r\n                        if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {\r\n                            this.logger.verbose(\"Found cloud discovery metadata from hardcoded values.\");\r\n                            metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);\r\n                            return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];\r\n                        }\r\n                        // Metadata could not be obtained from the config, cache, network or hardcoded values\r\n                        this.logger.error(\"Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.\");\r\n                        throw ClientConfigurationError.createUntrustedAuthorityError();\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Parse cloudDiscoveryMetadata config or check knownAuthorities\r\n     */\r\n    Authority.prototype.getCloudDiscoveryMetadataFromConfig = function () {\r\n        // CIAM does not support cloud discovery metadata\r\n        if (this.authorityType === AuthorityType.Ciam) {\r\n            this.logger.verbose(\"CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host.\");\r\n            return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);\r\n        }\r\n        // Check if network response was provided in config\r\n        if (this.authorityOptions.cloudDiscoveryMetadata) {\r\n            this.logger.verbose(\"The cloud discovery metadata has been provided as a network response, in the config.\");\r\n            try {\r\n                this.logger.verbose(\"Attempting to parse the cloud discovery metadata.\");\r\n                var parsedResponse = JSON.parse(this.authorityOptions.cloudDiscoveryMetadata);\r\n                var metadata = Authority.getCloudDiscoveryMetadataFromNetworkResponse(parsedResponse.metadata, this.hostnameAndPort);\r\n                this.logger.verbose(\"Parsed the cloud discovery metadata.\");\r\n                if (metadata) {\r\n                    this.logger.verbose(\"There is returnable metadata attached to the parsed cloud discovery metadata.\");\r\n                    return metadata;\r\n                }\r\n                else {\r\n                    this.logger.verbose(\"There is no metadata attached to the parsed cloud discovery metadata.\");\r\n                }\r\n            }\r\n            catch (e) {\r\n                this.logger.verbose(\"Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error.\");\r\n                throw ClientConfigurationError.createInvalidCloudDiscoveryMetadataError();\r\n            }\r\n        }\r\n        // If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities\r\n        if (this.isInKnownAuthorities()) {\r\n            this.logger.verbose(\"The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.\");\r\n            return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config\r\n     *\r\n     * @param hasHardcodedMetadata boolean\r\n     */\r\n    Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);\r\n                        instanceDiscoveryEndpoint = \"\" + Constants.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + \"oauth2/v2.0/authorize\";\r\n                        options = {};\r\n                        match = null;\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];\r\n                    case 2:\r\n                        response = _b.sent();\r\n                        typedResponseBody = void 0;\r\n                        metadata = void 0;\r\n                        if (isCloudInstanceDiscoveryResponse(response.body)) {\r\n                            typedResponseBody = response.body;\r\n                            metadata = typedResponseBody.metadata;\r\n                            this.logger.verbosePii(\"tenant_discovery_endpoint is: \" + typedResponseBody.tenant_discovery_endpoint);\r\n                        }\r\n                        else if (isCloudInstanceDiscoveryErrorResponse(response.body)) {\r\n                            this.logger.warning(\"A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: \" + response.status);\r\n                            typedResponseBody = response.body;\r\n                            if (typedResponseBody.error === Constants.INVALID_INSTANCE) {\r\n                                this.logger.error(\"The CloudInstanceDiscoveryErrorResponse error is invalid_instance.\");\r\n                                return [2 /*return*/, null];\r\n                            }\r\n                            this.logger.warning(\"The CloudInstanceDiscoveryErrorResponse error is \" + typedResponseBody.error);\r\n                            this.logger.warning(\"The CloudInstanceDiscoveryErrorResponse error description is \" + typedResponseBody.error_description);\r\n                            this.logger.warning(\"Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []\");\r\n                            metadata = [];\r\n                        }\r\n                        else {\r\n                            this.logger.error(\"AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse\");\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        this.logger.verbose(\"Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.\");\r\n                        match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        error_1 = _b.sent();\r\n                        if (error_1 instanceof AuthError) {\r\n                            this.logger.error(\"There was a network error while attempting to get the cloud discovery instance metadata.\\nError: \" + error_1.errorCode + \"\\nError Description: \" + error_1.errorMessage);\r\n                        }\r\n                        else {\r\n                            typedError = error_1;\r\n                            this.logger.error(\"A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\\nError: \" + typedError.name + \"\\nError Description: \" + typedError.message);\r\n                        }\r\n                        return [2 /*return*/, null];\r\n                    case 4:\r\n                        // Custom Domain scenario, host is trusted because Instance Discovery call succeeded\r\n                        if (!match) {\r\n                            this.logger.warning(\"The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.\");\r\n                            this.logger.verbose(\"Creating custom Authority for custom domain scenario.\");\r\n                            match = Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);\r\n                        }\r\n                        return [2 /*return*/, match];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Get cloud discovery metadata for common authorities\r\n     */\r\n    Authority.prototype.getCloudDiscoveryMetadataFromHarcodedValues = function () {\r\n        if (this.canonicalAuthority in InstanceDiscoveryMetadata) {\r\n            return InstanceDiscoveryMetadata[this.canonicalAuthority];\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Helper function to determine if this host is included in the knownAuthorities config option\r\n     */\r\n    Authority.prototype.isInKnownAuthorities = function () {\r\n        var _this = this;\r\n        var matches = this.authorityOptions.knownAuthorities.filter(function (authority) {\r\n            return UrlString.getDomainFromUrl(authority).toLowerCase() === _this.hostnameAndPort;\r\n        });\r\n        return matches.length > 0;\r\n    };\r\n    /**\r\n     * helper function to populate the authority based on azureCloudOptions\r\n     * @param authorityString\r\n     * @param azureCloudOptions\r\n     */\r\n    Authority.generateAuthority = function (authorityString, azureCloudOptions) {\r\n        var authorityAzureCloudInstance;\r\n        if (azureCloudOptions && azureCloudOptions.azureCloudInstance !== AzureCloudInstance.None) {\r\n            var tenant = azureCloudOptions.tenant ? azureCloudOptions.tenant : Constants.DEFAULT_COMMON_TENANT;\r\n            authorityAzureCloudInstance = azureCloudOptions.azureCloudInstance + \"/\" + tenant + \"/\";\r\n        }\r\n        return authorityAzureCloudInstance ? authorityAzureCloudInstance : authorityString;\r\n    };\r\n    /**\r\n     * Creates cloud discovery metadata object from a given host\r\n     * @param host\r\n     */\r\n    Authority.createCloudDiscoveryMetadataFromHost = function (host) {\r\n        return {\r\n            preferred_network: host,\r\n            preferred_cache: host,\r\n            aliases: [host]\r\n        };\r\n    };\r\n    /**\r\n     * Searches instance discovery network response for the entry that contains the host in the aliases list\r\n     * @param response\r\n     * @param authority\r\n     */\r\n    Authority.getCloudDiscoveryMetadataFromNetworkResponse = function (response, authority) {\r\n        for (var i = 0; i < response.length; i++) {\r\n            var metadata = response[i];\r\n            if (metadata.aliases.indexOf(authority) > -1) {\r\n                return metadata;\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * helper function to generate environment from authority object\r\n     */\r\n    Authority.prototype.getPreferredCache = function () {\r\n        if (this.discoveryComplete()) {\r\n            return this.metadata.preferred_cache;\r\n        }\r\n        else {\r\n            throw ClientAuthError.createEndpointDiscoveryIncompleteError(\"Discovery incomplete.\");\r\n        }\r\n    };\r\n    /**\r\n     * Returns whether or not the provided host is an alias of this authority instance\r\n     * @param host\r\n     */\r\n    Authority.prototype.isAlias = function (host) {\r\n        return this.metadata.aliases.indexOf(host) > -1;\r\n    };\r\n    /**\r\n     * Checks whether the provided host is that of a public cloud authority\r\n     *\r\n     * @param authority string\r\n     * @returns bool\r\n     */\r\n    Authority.isPublicCloudAuthority = function (host) {\r\n        return Constants.KNOWN_PUBLIC_CLOUDS.indexOf(host) >= 0;\r\n    };\r\n    /**\r\n     * Rebuild the authority string with the region\r\n     *\r\n     * @param host string\r\n     * @param region string\r\n     */\r\n    Authority.buildRegionalAuthorityString = function (host, region, queryString) {\r\n        // Create and validate a Url string object with the initial authority string\r\n        var authorityUrlInstance = new UrlString(host);\r\n        authorityUrlInstance.validateAsUri();\r\n        var authorityUrlParts = authorityUrlInstance.getUrlComponents();\r\n        var hostNameAndPort = region + \".\" + authorityUrlParts.HostNameAndPort;\r\n        if (this.isPublicCloudAuthority(authorityUrlParts.HostNameAndPort)) {\r\n            hostNameAndPort = region + \".\" + Constants.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX;\r\n        }\r\n        // Include the query string portion of the url\r\n        var url = UrlString.constructAuthorityUriFromObject(__assign(__assign({}, authorityUrlInstance.getUrlComponents()), { HostNameAndPort: hostNameAndPort })).urlString;\r\n        // Add the query string if a query string was provided\r\n        if (queryString)\r\n            return url + \"?\" + queryString;\r\n        return url;\r\n    };\r\n    /**\r\n     * Replace the endpoints in the metadata object with their regional equivalents.\r\n     *\r\n     * @param metadata OpenIdConfigResponse\r\n     * @param azureRegion string\r\n     */\r\n    Authority.replaceWithRegionalInformation = function (metadata, azureRegion) {\r\n        metadata.authorization_endpoint = Authority.buildRegionalAuthorityString(metadata.authorization_endpoint, azureRegion);\r\n        // TODO: Enquire on whether we should leave the query string or remove it before releasing the feature\r\n        metadata.token_endpoint = Authority.buildRegionalAuthorityString(metadata.token_endpoint, azureRegion, Constants.REGIONAL_AUTH_NON_MSI_QUERY_STRING);\r\n        if (metadata.end_session_endpoint) {\r\n            metadata.end_session_endpoint = Authority.buildRegionalAuthorityString(metadata.end_session_endpoint, azureRegion);\r\n        }\r\n        return metadata;\r\n    };\r\n    /**\r\n     * Transform CIAM_AUTHORIY as per the below rules:\r\n     * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it\r\n     *\r\n     * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com`\r\n     * `ciamlogin.com` can also change in the future and we should accommodate the same\r\n     *\r\n     * @param authority\r\n     */\r\n    Authority.transformCIAMAuthority = function (authority) {\r\n        var ciamAuthority = authority.endsWith(Constants.FORWARD_SLASH) ? authority : \"\" + authority + Constants.FORWARD_SLASH;\r\n        var authorityUrl = new UrlString(authority);\r\n        var authorityUrlComponents = authorityUrl.getUrlComponents();\r\n        // check if transformation is needed\r\n        if (authorityUrlComponents.PathSegments.length === 0 && (authorityUrlComponents.HostNameAndPort.endsWith(Constants.CIAM_AUTH_URL))) {\r\n            var tenantIdOrDomain = authorityUrlComponents.HostNameAndPort.split(\".\")[0];\r\n            ciamAuthority = \"\" + ciamAuthority + tenantIdOrDomain + Constants.AAD_TENANT_DOMAIN_SUFFIX;\r\n        }\r\n        return ciamAuthority;\r\n    };\r\n    // Reserved tenant domain names that will not be replaced with tenant id\r\n    Authority.reservedTenantDomains = (new Set([\r\n        \"{tenant}\",\r\n        \"{tenantid}\",\r\n        AADAuthorityConstants.COMMON,\r\n        AADAuthorityConstants.CONSUMERS,\r\n        AADAuthorityConstants.ORGANIZATIONS\r\n    ]));\r\n    return Authority;\r\n}());\n\nexport { Authority };\n//# sourceMappingURL=Authority.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nfunction isCloudInstanceDiscoveryResponse(response) {\r\n    return (response.hasOwnProperty(\"tenant_discovery_endpoint\") &&\r\n        response.hasOwnProperty(\"metadata\"));\r\n}\n\nexport { isCloudInstanceDiscoveryResponse };\n//# sourceMappingURL=CloudInstanceDiscoveryResponse.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nfunction isCloudInstanceDiscoveryErrorResponse(response) {\r\n    return (response.hasOwnProperty(\"error\") &&\r\n        response.hasOwnProperty(\"error_description\"));\r\n}\n\nexport { isCloudInstanceDiscoveryErrorResponse };\n//# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { Authority } from './Authority.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar AuthorityFactory = /** @class */ (function () {\r\n    function AuthorityFactory() {\r\n    }\r\n    /**\r\n     * Create an authority object of the correct type based on the url\r\n     * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs)\r\n     *\r\n     * Also performs endpoint discovery.\r\n     *\r\n     * @param authorityUri\r\n     * @param networkClient\r\n     * @param protocolMode\r\n     */\r\n    AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authorityUriFinal, acquireTokenAuthority, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.addQueueMeasurement(PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);\r\n                        authorityUriFinal = Authority.transformCIAMAuthority(authorityUri);\r\n                        acquireTokenAuthority = AuthorityFactory.createInstance(authorityUriFinal, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.setPreQueueTime(PerformanceEvents.AuthorityResolveEndpointsAsync, correlationId);\r\n                        return [4 /*yield*/, acquireTokenAuthority.resolveEndpointsAsync()];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [2 /*return*/, acquireTokenAuthority];\r\n                    case 3:\r\n                        e_1 = _a.sent();\r\n                        throw ClientAuthError.createEndpointDiscoveryIncompleteError(e_1);\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Create an authority object of the correct type based on the url\r\n     * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs)\r\n     *\r\n     * Does not perform endpoint discovery.\r\n     *\r\n     * @param authorityUrl\r\n     * @param networkInterface\r\n     * @param protocolMode\r\n     */\r\n    AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {\r\n        // Throw error if authority url is empty\r\n        if (StringUtils.isEmpty(authorityUrl)) {\r\n            throw ClientConfigurationError.createUrlEmptyError();\r\n        }\r\n        return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId);\r\n    };\r\n    return AuthorityFactory;\r\n}());\n\nexport { AuthorityFactory };\n//# sourceMappingURL=AuthorityFactory.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { SERVER_TELEM_CONSTANTS, CacheOutcome, Constants, Separators } from '../../utils/Constants.js';\nimport { ServerTelemetryEntity } from '../../cache/entities/ServerTelemetryEntity.js';\nimport { StringUtils } from '../../utils/StringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ServerTelemetryManager = /** @class */ (function () {\r\n    function ServerTelemetryManager(telemetryRequest, cacheManager) {\r\n        this.cacheOutcome = CacheOutcome.NO_CACHE_HIT;\r\n        this.cacheManager = cacheManager;\r\n        this.apiId = telemetryRequest.apiId;\r\n        this.correlationId = telemetryRequest.correlationId;\r\n        this.wrapperSKU = telemetryRequest.wrapperSKU || Constants.EMPTY_STRING;\r\n        this.wrapperVer = telemetryRequest.wrapperVer || Constants.EMPTY_STRING;\r\n        this.telemetryCacheKey = SERVER_TELEM_CONSTANTS.CACHE_KEY + Separators.CACHE_KEY_SEPARATOR + telemetryRequest.clientId;\r\n    }\r\n    /**\r\n     * API to add MSER Telemetry to request\r\n     */\r\n    ServerTelemetryManager.prototype.generateCurrentRequestHeaderValue = function () {\r\n        var request = \"\" + this.apiId + SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR + this.cacheOutcome;\r\n        var platformFields = [this.wrapperSKU, this.wrapperVer].join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);\r\n        var regionDiscoveryFields = this.getRegionDiscoveryFields();\r\n        var requestWithRegionDiscoveryFields = [request, regionDiscoveryFields].join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);\r\n        return [SERVER_TELEM_CONSTANTS.SCHEMA_VERSION, requestWithRegionDiscoveryFields, platformFields].join(SERVER_TELEM_CONSTANTS.CATEGORY_SEPARATOR);\r\n    };\r\n    /**\r\n     * API to add MSER Telemetry for the last failed request\r\n     */\r\n    ServerTelemetryManager.prototype.generateLastRequestHeaderValue = function () {\r\n        var lastRequests = this.getLastRequests();\r\n        var maxErrors = ServerTelemetryManager.maxErrorsToSend(lastRequests);\r\n        var failedRequests = lastRequests.failedRequests.slice(0, 2 * maxErrors).join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);\r\n        var errors = lastRequests.errors.slice(0, maxErrors).join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);\r\n        var errorCount = lastRequests.errors.length;\r\n        // Indicate whether this header contains all data or partial data\r\n        var overflow = maxErrors < errorCount ? SERVER_TELEM_CONSTANTS.OVERFLOW_TRUE : SERVER_TELEM_CONSTANTS.OVERFLOW_FALSE;\r\n        var platformFields = [errorCount, overflow].join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);\r\n        return [SERVER_TELEM_CONSTANTS.SCHEMA_VERSION, lastRequests.cacheHits, failedRequests, errors, platformFields].join(SERVER_TELEM_CONSTANTS.CATEGORY_SEPARATOR);\r\n    };\r\n    /**\r\n     * API to cache token failures for MSER data capture\r\n     * @param error\r\n     */\r\n    ServerTelemetryManager.prototype.cacheFailedRequest = function (error) {\r\n        var lastRequests = this.getLastRequests();\r\n        if (lastRequests.errors.length >= SERVER_TELEM_CONSTANTS.MAX_CACHED_ERRORS) {\r\n            // Remove a cached error to make room, first in first out\r\n            lastRequests.failedRequests.shift(); // apiId\r\n            lastRequests.failedRequests.shift(); // correlationId\r\n            lastRequests.errors.shift();\r\n        }\r\n        lastRequests.failedRequests.push(this.apiId, this.correlationId);\r\n        if (!StringUtils.isEmpty(error.subError)) {\r\n            lastRequests.errors.push(error.subError);\r\n        }\r\n        else if (!StringUtils.isEmpty(error.errorCode)) {\r\n            lastRequests.errors.push(error.errorCode);\r\n        }\r\n        else if (!!error && error.toString()) {\r\n            lastRequests.errors.push(error.toString());\r\n        }\r\n        else {\r\n            lastRequests.errors.push(SERVER_TELEM_CONSTANTS.UNKNOWN_ERROR);\r\n        }\r\n        this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);\r\n        return;\r\n    };\r\n    /**\r\n     * Update server telemetry cache entry by incrementing cache hit counter\r\n     */\r\n    ServerTelemetryManager.prototype.incrementCacheHits = function () {\r\n        var lastRequests = this.getLastRequests();\r\n        lastRequests.cacheHits += 1;\r\n        this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);\r\n        return lastRequests.cacheHits;\r\n    };\r\n    /**\r\n     * Get the server telemetry entity from cache or initialize a new one\r\n     */\r\n    ServerTelemetryManager.prototype.getLastRequests = function () {\r\n        var initialValue = new ServerTelemetryEntity();\r\n        var lastRequests = this.cacheManager.getServerTelemetry(this.telemetryCacheKey);\r\n        return lastRequests || initialValue;\r\n    };\r\n    /**\r\n     * Remove server telemetry cache entry\r\n     */\r\n    ServerTelemetryManager.prototype.clearTelemetryCache = function () {\r\n        var lastRequests = this.getLastRequests();\r\n        var numErrorsFlushed = ServerTelemetryManager.maxErrorsToSend(lastRequests);\r\n        var errorCount = lastRequests.errors.length;\r\n        if (numErrorsFlushed === errorCount) {\r\n            // All errors were sent on last request, clear Telemetry cache\r\n            this.cacheManager.removeItem(this.telemetryCacheKey);\r\n        }\r\n        else {\r\n            // Partial data was flushed to server, construct a new telemetry cache item with errors that were not flushed\r\n            var serverTelemEntity = new ServerTelemetryEntity();\r\n            serverTelemEntity.failedRequests = lastRequests.failedRequests.slice(numErrorsFlushed * 2); // failedRequests contains 2 items for each error\r\n            serverTelemEntity.errors = lastRequests.errors.slice(numErrorsFlushed);\r\n            this.cacheManager.setServerTelemetry(this.telemetryCacheKey, serverTelemEntity);\r\n        }\r\n    };\r\n    /**\r\n     * Returns the maximum number of errors that can be flushed to the server in the next network request\r\n     * @param serverTelemetryEntity\r\n     */\r\n    ServerTelemetryManager.maxErrorsToSend = function (serverTelemetryEntity) {\r\n        var i;\r\n        var maxErrors = 0;\r\n        var dataSize = 0;\r\n        var errorCount = serverTelemetryEntity.errors.length;\r\n        for (i = 0; i < errorCount; i++) {\r\n            // failedRequests parameter contains pairs of apiId and correlationId, multiply index by 2 to preserve pairs\r\n            var apiId = serverTelemetryEntity.failedRequests[2 * i] || Constants.EMPTY_STRING;\r\n            var correlationId = serverTelemetryEntity.failedRequests[2 * i + 1] || Constants.EMPTY_STRING;\r\n            var errorCode = serverTelemetryEntity.errors[i] || Constants.EMPTY_STRING;\r\n            // Count number of characters that would be added to header, each character is 1 byte. Add 3 at the end to account for separators\r\n            dataSize += apiId.toString().length + correlationId.toString().length + errorCode.length + 3;\r\n            if (dataSize < SERVER_TELEM_CONSTANTS.MAX_LAST_HEADER_BYTES) {\r\n                // Adding this entry to the header would still keep header size below the limit\r\n                maxErrors += 1;\r\n            }\r\n            else {\r\n                break;\r\n            }\r\n        }\r\n        return maxErrors;\r\n    };\r\n    /**\r\n     * Get the region discovery fields\r\n     *\r\n     * @returns string\r\n     */\r\n    ServerTelemetryManager.prototype.getRegionDiscoveryFields = function () {\r\n        var regionDiscoveryFields = [];\r\n        regionDiscoveryFields.push(this.regionUsed || Constants.EMPTY_STRING);\r\n        regionDiscoveryFields.push(this.regionSource || Constants.EMPTY_STRING);\r\n        regionDiscoveryFields.push(this.regionOutcome || Constants.EMPTY_STRING);\r\n        return regionDiscoveryFields.join(\",\");\r\n    };\r\n    /**\r\n     * Update the region discovery metadata\r\n     *\r\n     * @param regionDiscoveryMetadata\r\n     * @returns void\r\n     */\r\n    ServerTelemetryManager.prototype.updateRegionDiscoveryMetadata = function (regionDiscoveryMetadata) {\r\n        this.regionUsed = regionDiscoveryMetadata.region_used;\r\n        this.regionSource = regionDiscoveryMetadata.region_source;\r\n        this.regionOutcome = regionDiscoveryMetadata.region_outcome;\r\n    };\r\n    /**\r\n     * Set cache outcome\r\n     */\r\n    ServerTelemetryManager.prototype.setCacheOutcome = function (cacheOutcome) {\r\n        this.cacheOutcome = cacheOutcome;\r\n    };\r\n    return ServerTelemetryManager;\r\n}());\n\nexport { ServerTelemetryManager };\n//# sourceMappingURL=ServerTelemetryManager.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator, __spread, __assign } from '../_virtual/_tslib.js';\nimport { UrlString, ServerTelemetryManager, AccountEntity, AuthenticationScheme, ClientConfigurationError, StringUtils, PerformanceEvents, AuthorityFactory } from '@azure/msal-common';\nimport { version } from '../packageMetadata.js';\nimport { BrowserConstants } from '../utils/BrowserConstants.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar BaseInteractionClient = /** @class */ (function () {\r\n    function BaseInteractionClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) {\r\n        this.config = config;\r\n        this.browserStorage = storageImpl;\r\n        this.browserCrypto = browserCrypto;\r\n        this.networkClient = this.config.system.networkClient;\r\n        this.eventHandler = eventHandler;\r\n        this.navigationClient = navigationClient;\r\n        this.nativeMessageHandler = nativeMessageHandler;\r\n        this.correlationId = correlationId || this.browserCrypto.createNewGuid();\r\n        this.logger = logger.clone(BrowserConstants.MSAL_SKU, version, this.correlationId);\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    BaseInteractionClient.prototype.clearCacheOnLogout = function (account) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (!account) return [3 /*break*/, 5];\r\n                        if (AccountEntity.accountInfoIsEqual(account, this.browserStorage.getActiveAccount(), false)) {\r\n                            this.logger.verbose(\"Setting active account to null\");\r\n                            this.browserStorage.setActiveAccount(null);\r\n                        }\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        return [4 /*yield*/, this.browserStorage.removeAccount(AccountEntity.generateAccountCacheKey(account))];\r\n                    case 2:\r\n                        _a.sent();\r\n                        this.logger.verbose(\"Cleared cache items belonging to the account provided in the logout request.\");\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        _a.sent();\r\n                        this.logger.error(\"Account provided in logout request was not found. Local cache unchanged.\");\r\n                        return [3 /*break*/, 4];\r\n                    case 4: return [3 /*break*/, 9];\r\n                    case 5:\r\n                        _a.trys.push([5, 8, , 9]);\r\n                        this.logger.verbose(\"No account provided in logout request, clearing all cache items.\", this.correlationId);\r\n                        // Clear all accounts and tokens\r\n                        return [4 /*yield*/, this.browserStorage.clear()];\r\n                    case 6:\r\n                        // Clear all accounts and tokens\r\n                        _a.sent();\r\n                        // Clear any stray keys from IndexedDB\r\n                        return [4 /*yield*/, this.browserCrypto.clearKeystore()];\r\n                    case 7:\r\n                        // Clear any stray keys from IndexedDB\r\n                        _a.sent();\r\n                        return [3 /*break*/, 9];\r\n                    case 8:\r\n                        _a.sent();\r\n                        this.logger.error(\"Attempted to clear all MSAL cache items and failed. Local cache unchanged.\");\r\n                        return [3 /*break*/, 9];\r\n                    case 9: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Initializer function for all request APIs\r\n     * @param request\r\n     */\r\n    BaseInteractionClient.prototype.initializeBaseRequest = function (request, account) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authority, scopes, validatedRequest, _a;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.InitializeBaseRequest, request.correlationId);\r\n                        this.logger.verbose(\"Initializing BaseAuthRequest\");\r\n                        authority = request.authority || this.config.auth.authority;\r\n                        if (!account) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.validateRequestAuthority(authority, account)];\r\n                    case 1:\r\n                        _b.sent();\r\n                        _b.label = 2;\r\n                    case 2:\r\n                        scopes = __spread(((request && request.scopes) || []));\r\n                        validatedRequest = __assign(__assign({}, request), { correlationId: this.correlationId, authority: authority,\r\n                            scopes: scopes });\r\n                        // Set authenticationScheme to BEARER if not explicitly set in the request\r\n                        if (!validatedRequest.authenticationScheme) {\r\n                            validatedRequest.authenticationScheme = AuthenticationScheme.BEARER;\r\n                            this.logger.verbose(\"Authentication Scheme wasn't explicitly set in request, defaulting to \\\"Bearer\\\" request\");\r\n                        }\r\n                        else {\r\n                            if (validatedRequest.authenticationScheme === AuthenticationScheme.SSH) {\r\n                                if (!request.sshJwk) {\r\n                                    throw ClientConfigurationError.createMissingSshJwkError();\r\n                                }\r\n                                if (!request.sshKid) {\r\n                                    throw ClientConfigurationError.createMissingSshKidError();\r\n                                }\r\n                            }\r\n                            this.logger.verbose(\"Authentication Scheme set to \\\"\" + validatedRequest.authenticationScheme + \"\\\" as configured in Auth request\");\r\n                        }\r\n                        if (!(this.config.cache.claimsBasedCachingEnabled && request.claims && !StringUtils.isEmptyObj(request.claims))) return [3 /*break*/, 4];\r\n                        _a = validatedRequest;\r\n                        return [4 /*yield*/, this.browserCrypto.hashString(request.claims)];\r\n                    case 3:\r\n                        _a.requestedClaimsHash = _b.sent();\r\n                        _b.label = 4;\r\n                    case 4: return [2 /*return*/, validatedRequest];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     *\r\n     * Use to get the redirect uri configured in MSAL or null.\r\n     * @param requestRedirectUri\r\n     * @returns Redirect URL\r\n     *\r\n     */\r\n    BaseInteractionClient.prototype.getRedirectUri = function (requestRedirectUri) {\r\n        this.logger.verbose(\"getRedirectUri called\");\r\n        var redirectUri = requestRedirectUri || this.config.auth.redirectUri || BrowserUtils.getCurrentUri();\r\n        return UrlString.getAbsoluteUrl(redirectUri, BrowserUtils.getCurrentUri());\r\n    };\r\n    /*\r\n     * If authority provided in the request does not match environment/authority specified\r\n     * in the account or MSAL config, we throw an error.\r\n     */\r\n    BaseInteractionClient.prototype.validateRequestAuthority = function (authority, account) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var discoveredAuthority;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0: return [4 /*yield*/, this.getDiscoveredAuthority(authority)];\r\n                    case 1:\r\n                        discoveredAuthority = _a.sent();\r\n                        if (!discoveredAuthority.isAlias(account.environment)) {\r\n                            throw ClientConfigurationError.createAuthorityMismatchError();\r\n                        }\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     *\r\n     * @param apiId\r\n     * @param correlationId\r\n     * @param forceRefresh\r\n     */\r\n    BaseInteractionClient.prototype.initializeServerTelemetryManager = function (apiId, forceRefresh) {\r\n        this.logger.verbose(\"initializeServerTelemetryManager called\");\r\n        var telemetryPayload = {\r\n            clientId: this.config.auth.clientId,\r\n            correlationId: this.correlationId,\r\n            apiId: apiId,\r\n            forceRefresh: forceRefresh || false,\r\n            wrapperSKU: this.browserStorage.getWrapperMetadata()[0],\r\n            wrapperVer: this.browserStorage.getWrapperMetadata()[1]\r\n        };\r\n        return new ServerTelemetryManager(telemetryPayload, this.browserStorage);\r\n    };\r\n    /**\r\n     * Used to get a discovered version of the default authority.\r\n     * @param requestAuthority\r\n     * @param requestCorrelationId\r\n     */\r\n    BaseInteractionClient.prototype.getDiscoveredAuthority = function (requestAuthority) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authorityOptions;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"getDiscoveredAuthority called\");\r\n                        authorityOptions = {\r\n                            protocolMode: this.config.auth.protocolMode,\r\n                            knownAuthorities: this.config.auth.knownAuthorities,\r\n                            cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,\r\n                            authorityMetadata: this.config.auth.authorityMetadata\r\n                        };\r\n                        if (!requestAuthority) return [3 /*break*/, 2];\r\n                        this.logger.verbose(\"Creating discovered authority with request authority\");\r\n                        return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(requestAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                    case 2:\r\n                        this.logger.verbose(\"Creating discovered authority with configured authority\");\r\n                        return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(this.config.auth.authority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger)];\r\n                    case 3: return [2 /*return*/, _a.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return BaseInteractionClient;\r\n}());\n\nexport { BaseInteractionClient };\n//# sourceMappingURL=BaseInteractionClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __assign, __generator } from '../_virtual/_tslib.js';\nimport { UrlString, Constants, PerformanceEvents, AuthorizationCodeClient, Authority, AuthorityFactory, ResponseMode, StringUtils, ProtocolUtils } from '@azure/msal-common';\nimport { BaseInteractionClient } from './BaseInteractionClient.js';\nimport { BrowserConstants } from '../utils/BrowserConstants.js';\nimport { version } from '../packageMetadata.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { BrowserProtocolUtils } from '../utils/BrowserProtocolUtils.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Defines the class structure and helper functions used by the \"standard\", non-brokered auth flows (popup, redirect, silent (RT), silent (iframe))\r\n */\r\nvar StandardInteractionClient = /** @class */ (function (_super) {\r\n    __extends(StandardInteractionClient, _super);\r\n    function StandardInteractionClient() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Generates an auth code request tied to the url request.\r\n     * @param request\r\n     */\r\n    StandardInteractionClient.prototype.initializeAuthorizationCodeRequest = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var generatedPkceParams, authCodeRequest;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId);\r\n                        this.logger.verbose(\"initializeAuthorizationRequest called\", request.correlationId);\r\n                        return [4 /*yield*/, this.browserCrypto.generatePkceCodes()];\r\n                    case 1:\r\n                        generatedPkceParams = _a.sent();\r\n                        authCodeRequest = __assign(__assign({}, request), { redirectUri: request.redirectUri, code: Constants.EMPTY_STRING, codeVerifier: generatedPkceParams.verifier });\r\n                        request.codeChallenge = generatedPkceParams.challenge;\r\n                        request.codeChallengeMethod = Constants.S256_CODE_CHALLENGE_METHOD;\r\n                        return [2 /*return*/, authCodeRequest];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Initializer for the logout request.\r\n     * @param logoutRequest\r\n     */\r\n    StandardInteractionClient.prototype.initializeLogoutRequest = function (logoutRequest) {\r\n        this.logger.verbose(\"initializeLogoutRequest called\", logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.correlationId);\r\n        var validLogoutRequest = __assign({ correlationId: this.correlationId || this.browserCrypto.createNewGuid() }, logoutRequest);\r\n        /**\r\n         * Set logout_hint to be login_hint from ID Token Claims if present\r\n         * and logoutHint attribute wasn't manually set in logout request\r\n         */\r\n        if (logoutRequest) {\r\n            // If logoutHint isn't set and an account was passed in, try to extract logoutHint from ID Token Claims\r\n            if (!logoutRequest.logoutHint) {\r\n                if (logoutRequest.account) {\r\n                    var logoutHint = this.getLogoutHintFromIdTokenClaims(logoutRequest.account);\r\n                    if (logoutHint) {\r\n                        this.logger.verbose(\"Setting logoutHint to login_hint ID Token Claim value for the account provided\");\r\n                        validLogoutRequest.logoutHint = logoutHint;\r\n                    }\r\n                }\r\n                else {\r\n                    this.logger.verbose(\"logoutHint was not set and account was not passed into logout request, logoutHint will not be set\");\r\n                }\r\n            }\r\n            else {\r\n                this.logger.verbose(\"logoutHint has already been set in logoutRequest\");\r\n            }\r\n        }\r\n        else {\r\n            this.logger.verbose(\"logoutHint will not be set since no logout request was configured\");\r\n        }\r\n        /*\r\n         * Only set redirect uri if logout request isn't provided or the set uri isn't null.\r\n         * Otherwise, use passed uri, config, or current page.\r\n         */\r\n        if (!logoutRequest || logoutRequest.postLogoutRedirectUri !== null) {\r\n            if (logoutRequest && logoutRequest.postLogoutRedirectUri) {\r\n                this.logger.verbose(\"Setting postLogoutRedirectUri to uri set on logout request\", validLogoutRequest.correlationId);\r\n                validLogoutRequest.postLogoutRedirectUri = UrlString.getAbsoluteUrl(logoutRequest.postLogoutRedirectUri, BrowserUtils.getCurrentUri());\r\n            }\r\n            else if (this.config.auth.postLogoutRedirectUri === null) {\r\n                this.logger.verbose(\"postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect\", validLogoutRequest.correlationId);\r\n            }\r\n            else if (this.config.auth.postLogoutRedirectUri) {\r\n                this.logger.verbose(\"Setting postLogoutRedirectUri to configured uri\", validLogoutRequest.correlationId);\r\n                validLogoutRequest.postLogoutRedirectUri = UrlString.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri, BrowserUtils.getCurrentUri());\r\n            }\r\n            else {\r\n                this.logger.verbose(\"Setting postLogoutRedirectUri to current page\", validLogoutRequest.correlationId);\r\n                validLogoutRequest.postLogoutRedirectUri = UrlString.getAbsoluteUrl(BrowserUtils.getCurrentUri(), BrowserUtils.getCurrentUri());\r\n            }\r\n        }\r\n        else {\r\n            this.logger.verbose(\"postLogoutRedirectUri passed as null, not setting post logout redirect uri\", validLogoutRequest.correlationId);\r\n        }\r\n        return validLogoutRequest;\r\n    };\r\n    /**\r\n     * Parses login_hint ID Token Claim out of AccountInfo object to be used as\r\n     * logout_hint in end session request.\r\n     * @param account\r\n     */\r\n    StandardInteractionClient.prototype.getLogoutHintFromIdTokenClaims = function (account) {\r\n        var idTokenClaims = account.idTokenClaims;\r\n        if (idTokenClaims) {\r\n            if (idTokenClaims.login_hint) {\r\n                return idTokenClaims.login_hint;\r\n            }\r\n            else {\r\n                this.logger.verbose(\"The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request\");\r\n            }\r\n        }\r\n        else {\r\n            this.logger.verbose(\"The provided account does not contain ID Token Claims, logoutHint will not be added to logout request\");\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Creates an Authorization Code Client with the given authority, or the default authority.\r\n     * @param serverTelemetryManager\r\n     * @param authorityUrl\r\n     */\r\n    StandardInteractionClient.prototype.createAuthCodeClient = function (serverTelemetryManager, authorityUrl, requestAzureCloudOptions) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var clientConfig;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.correlationId);\r\n                        // Create auth module.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientGetClientConfiguration, this.correlationId);\r\n                        return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, requestAzureCloudOptions)];\r\n                    case 1:\r\n                        clientConfig = _a.sent();\r\n                        return [2 /*return*/, new AuthorizationCodeClient(clientConfig, this.performanceClient)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Creates a Client Configuration object with the given request authority, or the default authority.\r\n     * @param serverTelemetryManager\r\n     * @param requestAuthority\r\n     * @param requestCorrelationId\r\n     */\r\n    StandardInteractionClient.prototype.getClientConfiguration = function (serverTelemetryManager, requestAuthority, requestAzureCloudOptions) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var discoveredAuthority, logger;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientGetClientConfiguration, this.correlationId);\r\n                        this.logger.verbose(\"getClientConfiguration called\", this.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, this.correlationId);\r\n                        return [4 /*yield*/, this.getDiscoveredAuthority(requestAuthority, requestAzureCloudOptions)];\r\n                    case 1:\r\n                        discoveredAuthority = _a.sent();\r\n                        logger = this.config.system.loggerOptions;\r\n                        return [2 /*return*/, {\r\n                                authOptions: {\r\n                                    clientId: this.config.auth.clientId,\r\n                                    authority: discoveredAuthority,\r\n                                    clientCapabilities: this.config.auth.clientCapabilities\r\n                                },\r\n                                systemOptions: {\r\n                                    tokenRenewalOffsetSeconds: this.config.system.tokenRenewalOffsetSeconds,\r\n                                    preventCorsPreflight: true\r\n                                },\r\n                                loggerOptions: {\r\n                                    loggerCallback: logger.loggerCallback,\r\n                                    piiLoggingEnabled: logger.piiLoggingEnabled,\r\n                                    logLevel: logger.logLevel,\r\n                                    correlationId: this.correlationId\r\n                                },\r\n                                cacheOptions: {\r\n                                    claimsBasedCachingEnabled: this.config.cache.claimsBasedCachingEnabled\r\n                                },\r\n                                cryptoInterface: this.browserCrypto,\r\n                                networkInterface: this.networkClient,\r\n                                storageInterface: this.browserStorage,\r\n                                serverTelemetryManager: serverTelemetryManager,\r\n                                libraryInfo: {\r\n                                    sku: BrowserConstants.MSAL_SKU,\r\n                                    version: version,\r\n                                    cpu: Constants.EMPTY_STRING,\r\n                                    os: Constants.EMPTY_STRING\r\n                                },\r\n                                telemetry: this.config.telemetry\r\n                            }];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * @param hash\r\n     * @param interactionType\r\n     */\r\n    StandardInteractionClient.prototype.validateAndExtractStateFromHash = function (serverParams, interactionType, requestCorrelationId) {\r\n        this.logger.verbose(\"validateAndExtractStateFromHash called\", requestCorrelationId);\r\n        if (!serverParams.state) {\r\n            throw BrowserAuthError.createHashDoesNotContainStateError();\r\n        }\r\n        var platformStateObj = BrowserProtocolUtils.extractBrowserRequestState(this.browserCrypto, serverParams.state);\r\n        if (!platformStateObj) {\r\n            throw BrowserAuthError.createUnableToParseStateError();\r\n        }\r\n        if (platformStateObj.interactionType !== interactionType) {\r\n            throw BrowserAuthError.createStateInteractionTypeMismatchError();\r\n        }\r\n        this.logger.verbose(\"Returning state from hash\", requestCorrelationId);\r\n        return serverParams.state;\r\n    };\r\n    /**\r\n     * Used to get a discovered version of the default authority.\r\n     * @param requestAuthority\r\n     * @param requestCorrelationId\r\n     */\r\n    StandardInteractionClient.prototype.getDiscoveredAuthority = function (requestAuthority, requestAzureCloudOptions) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var getAuthorityMeasurement, authorityOptions, userAuthority, builtAuthority;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, this.correlationId);\r\n                        this.logger.verbose(\"getDiscoveredAuthority called\", this.correlationId);\r\n                        getAuthorityMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.StandardInteractionClientGetDiscoveredAuthority, this.correlationId);\r\n                        authorityOptions = {\r\n                            protocolMode: this.config.auth.protocolMode,\r\n                            knownAuthorities: this.config.auth.knownAuthorities,\r\n                            cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,\r\n                            authorityMetadata: this.config.auth.authorityMetadata,\r\n                            skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache\r\n                        };\r\n                        userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;\r\n                        builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);\r\n                        this.logger.verbose(\"Creating discovered authority with configured authority\", this.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, this.correlationId);\r\n                        return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(builtAuthority, this.config.system.networkClient, this.browserStorage, authorityOptions, this.logger, this.performanceClient, this.correlationId)\r\n                                .then(function (result) {\r\n                                getAuthorityMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                getAuthorityMeasurement.endMeasurement({\r\n                                    errorCode: error.errorCode,\r\n                                    subErrorCode: error.subError,\r\n                                    success: false\r\n                                });\r\n                                throw error;\r\n                            })];\r\n                    case 1: return [2 /*return*/, _b.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Helper to initialize required request parameters for interactive APIs and ssoSilent()\r\n     * @param request\r\n     * @param interactionType\r\n     */\r\n    StandardInteractionClient.prototype.initializeAuthorizationRequest = function (request, interactionType) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var redirectUri, browserState, state, validatedRequest, _a, account, legacyLoginHint;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId);\r\n                        this.logger.verbose(\"initializeAuthorizationRequest called\", this.correlationId);\r\n                        redirectUri = this.getRedirectUri(request.redirectUri);\r\n                        browserState = {\r\n                            interactionType: interactionType\r\n                        };\r\n                        state = ProtocolUtils.setRequestState(this.browserCrypto, (request && request.state) || Constants.EMPTY_STRING, browserState);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.InitializeBaseRequest, this.correlationId);\r\n                        _a = [{}];\r\n                        return [4 /*yield*/, this.initializeBaseRequest(request)];\r\n                    case 1:\r\n                        validatedRequest = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([_b.sent()])), { redirectUri: redirectUri, state: state, nonce: request.nonce || this.browserCrypto.createNewGuid(), responseMode: ResponseMode.FRAGMENT }]);\r\n                        account = request.account || this.browserStorage.getActiveAccount();\r\n                        if (account) {\r\n                            this.logger.verbose(\"Setting validated request account\", this.correlationId);\r\n                            this.logger.verbosePii(\"Setting validated request account: \" + account.homeAccountId, this.correlationId);\r\n                            validatedRequest.account = account;\r\n                        }\r\n                        // Check for ADAL/MSAL v1 SSO\r\n                        if (StringUtils.isEmpty(validatedRequest.loginHint) && !account) {\r\n                            legacyLoginHint = this.browserStorage.getLegacyLoginHint();\r\n                            if (legacyLoginHint) {\r\n                                validatedRequest.loginHint = legacyLoginHint;\r\n                            }\r\n                        }\r\n                        return [2 /*return*/, validatedRequest];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return StandardInteractionClient;\r\n}(BaseInteractionClient));\n\nexport { StandardInteractionClient };\n//# sourceMappingURL=StandardInteractionClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { BaseClient } from './BaseClient.js';\nimport { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';\nimport { AuthenticationScheme, GrantType, HeaderNames, Errors } from '../utils/Constants.js';\nimport { ResponseHandler } from '../response/ResponseHandler.js';\nimport { PopTokenGenerator } from '../crypto/PopTokenGenerator.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { ServerError } from '../error/ServerError.js';\nimport { TimeUtils } from '../utils/TimeUtils.js';\nimport { UrlString } from '../url/UrlString.js';\nimport { CcsCredentialType } from '../account/CcsCredential.js';\nimport { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.js';\nimport { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage } from '../error/InteractionRequiredAuthError.js';\nimport { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * OAuth2.0 refresh token client\r\n */\r\nvar RefreshTokenClient = /** @class */ (function (_super) {\r\n    __extends(RefreshTokenClient, _super);\r\n    function RefreshTokenClient(configuration, performanceClient) {\r\n        return _super.call(this, configuration, performanceClient) || this;\r\n    }\r\n    RefreshTokenClient.prototype.acquireToken = function (request) {\r\n        var _a, _b, _c, _d, _e, _f, _g;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var atsMeasurement, reqTimestamp, response, httpVerToken, requestId, responseHandler;\r\n            var _this = this;\r\n            return __generator(this, function (_h) {\r\n                switch (_h.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);\r\n                        atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);\r\n                        this.logger.verbose(\"RefreshTokenClientAcquireToken called\", request.correlationId);\r\n                        reqTimestamp = TimeUtils.nowSeconds();\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];\r\n                    case 1:\r\n                        response = _h.sent();\r\n                        httpVerToken = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_HTTP_VERSION];\r\n                        atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({\r\n                            refreshTokenSize: ((_e = response.body.refresh_token) === null || _e === void 0 ? void 0 : _e.length) || 0,\r\n                        });\r\n                        if (httpVerToken) {\r\n                            atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({\r\n                                httpVerToken: httpVerToken,\r\n                            });\r\n                        }\r\n                        requestId = (_f = response.headers) === null || _f === void 0 ? void 0 : _f[HeaderNames.X_MS_REQUEST_ID];\r\n                        responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);\r\n                        responseHandler.validateTokenResponse(response.body);\r\n                        (_g = this.performanceClient) === null || _g === void 0 ? void 0 : _g.setPreQueueTime(PerformanceEvents.HandleServerTokenResponse, request.correlationId);\r\n                        return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {\r\n                                atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({\r\n                                    success: true\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                _this.logger.verbose(\"Error in fetching refresh token\", request.correlationId);\r\n                                atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({\r\n                                    errorCode: error.errorCode,\r\n                                    subErrorCode: error.subError,\r\n                                    success: false\r\n                                });\r\n                                throw error;\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Gets cached refresh token and attaches to request, then calls acquireToken API\r\n     * @param request\r\n     */\r\n    RefreshTokenClient.prototype.acquireTokenByRefreshToken = function (request) {\r\n        var _a, _b, _c, _d;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var isFOCI, noFamilyRTInCache, clientMismatchErrorWithFamilyRT;\r\n            return __generator(this, function (_e) {\r\n                // Cannot renew token if no request object is given.\r\n                if (!request) {\r\n                    throw ClientConfigurationError.createEmptyTokenRequestError();\r\n                }\r\n                (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);\r\n                // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases\r\n                if (!request.account) {\r\n                    throw ClientAuthError.createNoAccountInSilentRequestError();\r\n                }\r\n                isFOCI = this.cacheManager.isAppMetadataFOCI(request.account.environment);\r\n                // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest\r\n                if (isFOCI) {\r\n                    try {\r\n                        (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);\r\n                        return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, true)];\r\n                    }\r\n                    catch (e) {\r\n                        noFamilyRTInCache = e instanceof InteractionRequiredAuthError && e.errorCode === InteractionRequiredAuthErrorMessage.noTokensFoundError.code;\r\n                        clientMismatchErrorWithFamilyRT = e instanceof ServerError && e.errorCode === Errors.INVALID_GRANT_ERROR && e.subError === Errors.CLIENT_MISMATCH_ERROR;\r\n                        // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)\r\n                        if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {\r\n                            (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);\r\n                            return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)];\r\n                            // throw in all other cases\r\n                        }\r\n                        else {\r\n                            throw e;\r\n                        }\r\n                    }\r\n                }\r\n                // fall back to application refresh token acquisition\r\n                (_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);\r\n                return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached\r\n     * @param request\r\n     */\r\n    RefreshTokenClient.prototype.acquireTokenWithCachedRefreshToken = function (request, foci) {\r\n        var _a, _b, _c;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var atsMeasurement, refreshToken, refreshTokenRequest;\r\n            return __generator(this, function (_d) {\r\n                (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);\r\n                atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);\r\n                this.logger.verbose(\"RefreshTokenClientAcquireTokenWithCachedRefreshToken called\", request.correlationId);\r\n                refreshToken = this.cacheManager.getRefreshToken(request.account, foci);\r\n                if (!refreshToken) {\r\n                    atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.discardMeasurement();\r\n                    throw InteractionRequiredAuthError.createNoTokensFoundError();\r\n                }\r\n                // attach cached RT size to the current measurement\r\n                atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({\r\n                    success: true\r\n                });\r\n                refreshTokenRequest = __assign(__assign({}, request), { refreshToken: refreshToken.secret, authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER, ccsCredential: {\r\n                        credential: request.account.homeAccountId,\r\n                        type: CcsCredentialType.HOME_ACCOUNT_ID\r\n                    } });\r\n                (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);\r\n                return [2 /*return*/, this.acquireToken(refreshTokenRequest)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Constructs the network message and makes a NW call to the underlying secure token service\r\n     * @param request\r\n     * @param authority\r\n     */\r\n    RefreshTokenClient.prototype.executeTokenRequest = function (request, authority) {\r\n        var _a, _b, _c;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var acquireTokenMeasurement, queryParametersString, endpoint, requestBody, headers, thumbprint;\r\n            return __generator(this, function (_d) {\r\n                switch (_d.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);\r\n                        acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);\r\n                        queryParametersString = this.createTokenQueryParameters(request);\r\n                        endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);\r\n                        return [4 /*yield*/, this.createTokenRequestBody(request)];\r\n                    case 1:\r\n                        requestBody = _d.sent();\r\n                        headers = this.createTokenRequestHeaders(request.ccsCredential);\r\n                        thumbprint = {\r\n                            clientId: this.config.authOptions.clientId,\r\n                            authority: authority.canonicalAuthority,\r\n                            scopes: request.scopes,\r\n                            claims: request.claims,\r\n                            authenticationScheme: request.authenticationScheme,\r\n                            resourceRequestMethod: request.resourceRequestMethod,\r\n                            resourceRequestUri: request.resourceRequestUri,\r\n                            shrClaims: request.shrClaims,\r\n                            sshKid: request.sshKid\r\n                        };\r\n                        return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)\r\n                                .then(function (result) {\r\n                                acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({\r\n                                    success: true\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({\r\n                                    success: false\r\n                                });\r\n                                throw error;\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Helper function to create the token request body\r\n     * @param request\r\n     */\r\n    RefreshTokenClient.prototype.createTokenRequestBody = function (request) {\r\n        var _a, _b, _c;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, acquireTokenMeasurement, parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, clientInfo;\r\n            return __generator(this, function (_d) {\r\n                switch (_d.label) {\r\n                    case 0:\r\n                        (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);\r\n                        correlationId = request.correlationId;\r\n                        acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.BaseClientCreateTokenRequestHeaders, correlationId);\r\n                        parameterBuilder = new RequestParameterBuilder();\r\n                        parameterBuilder.addClientId(this.config.authOptions.clientId);\r\n                        parameterBuilder.addScopes(request.scopes);\r\n                        parameterBuilder.addGrantType(GrantType.REFRESH_TOKEN_GRANT);\r\n                        parameterBuilder.addClientInfo();\r\n                        parameterBuilder.addLibraryInfo(this.config.libraryInfo);\r\n                        parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);\r\n                        parameterBuilder.addThrottling();\r\n                        if (this.serverTelemetryManager) {\r\n                            parameterBuilder.addServerTelemetry(this.serverTelemetryManager);\r\n                        }\r\n                        parameterBuilder.addCorrelationId(correlationId);\r\n                        parameterBuilder.addRefreshToken(request.refreshToken);\r\n                        if (this.config.clientCredentials.clientSecret) {\r\n                            parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret);\r\n                        }\r\n                        if (this.config.clientCredentials.clientAssertion) {\r\n                            clientAssertion = this.config.clientCredentials.clientAssertion;\r\n                            parameterBuilder.addClientAssertion(clientAssertion.assertion);\r\n                            parameterBuilder.addClientAssertionType(clientAssertion.assertionType);\r\n                        }\r\n                        if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];\r\n                        popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);\r\n                        (_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);\r\n                        return [4 /*yield*/, popTokenGenerator.generateCnf(request)];\r\n                    case 1:\r\n                        reqCnfData = _d.sent();\r\n                        // SPA PoP requires full Base64Url encoded req_cnf string (unhashed)\r\n                        parameterBuilder.addPopToken(reqCnfData.reqCnfString);\r\n                        return [3 /*break*/, 3];\r\n                    case 2:\r\n                        if (request.authenticationScheme === AuthenticationScheme.SSH) {\r\n                            if (request.sshJwk) {\r\n                                parameterBuilder.addSshJwk(request.sshJwk);\r\n                            }\r\n                            else {\r\n                                acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({\r\n                                    success: false\r\n                                });\r\n                                throw ClientConfigurationError.createMissingSshJwkError();\r\n                            }\r\n                        }\r\n                        _d.label = 3;\r\n                    case 3:\r\n                        if (!StringUtils.isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) {\r\n                            parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);\r\n                        }\r\n                        if (this.config.systemOptions.preventCorsPreflight && request.ccsCredential) {\r\n                            switch (request.ccsCredential.type) {\r\n                                case CcsCredentialType.HOME_ACCOUNT_ID:\r\n                                    try {\r\n                                        clientInfo = buildClientInfoFromHomeAccountId(request.ccsCredential.credential);\r\n                                        parameterBuilder.addCcsOid(clientInfo);\r\n                                    }\r\n                                    catch (e) {\r\n                                        this.logger.verbose(\"Could not parse home account ID for CCS Header: \" + e);\r\n                                    }\r\n                                    break;\r\n                                case CcsCredentialType.UPN:\r\n                                    parameterBuilder.addCcsUpn(request.ccsCredential.credential);\r\n                                    break;\r\n                            }\r\n                        }\r\n                        acquireTokenMeasurement === null || acquireTokenMeasurement === void 0 ? void 0 : acquireTokenMeasurement.endMeasurement({\r\n                            success: true\r\n                        });\r\n                        return [2 /*return*/, parameterBuilder.createQueryString()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return RefreshTokenClient;\r\n}(BaseClient));\n\nexport { RefreshTokenClient };\n//# sourceMappingURL=RefreshTokenClient.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { BaseClient } from './BaseClient.js';\nimport { AuthToken } from '../account/AuthToken.js';\nimport { TimeUtils } from '../utils/TimeUtils.js';\nimport { RefreshTokenClient } from './RefreshTokenClient.js';\nimport { ClientAuthError, ClientAuthErrorMessage } from '../error/ClientAuthError.js';\nimport { ClientConfigurationError } from '../error/ClientConfigurationError.js';\nimport { ResponseHandler } from '../response/ResponseHandler.js';\nimport { CacheOutcome } from '../utils/Constants.js';\nimport { StringUtils } from '../utils/StringUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentFlowClient = /** @class */ (function (_super) {\r\n    __extends(SilentFlowClient, _super);\r\n    function SilentFlowClient(configuration, performanceClient) {\r\n        return _super.call(this, configuration, performanceClient) || this;\r\n    }\r\n    /**\r\n     * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew\r\n     * the given token and returns the renewed token\r\n     * @param request\r\n     */\r\n    SilentFlowClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var e_1, refreshTokenClient;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        _a.trys.push([0, 2, , 3]);\r\n                        return [4 /*yield*/, this.acquireCachedToken(request)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                    case 2:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof ClientAuthError && e_1.errorCode === ClientAuthErrorMessage.tokenRefreshRequired.code) {\r\n                            refreshTokenClient = new RefreshTokenClient(this.config, this.performanceClient);\r\n                            return [2 /*return*/, refreshTokenClient.acquireTokenByRefreshToken(request)];\r\n                        }\r\n                        else {\r\n                            throw e_1;\r\n                        }\r\n                    case 3: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Retrieves token from cache or throws an error if it must be refreshed.\r\n     * @param request\r\n     */\r\n    SilentFlowClient.prototype.acquireCachedToken = function (request) {\r\n        var _a, _b, _c, _d, _e;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var environment, cacheRecord;\r\n            return __generator(this, function (_f) {\r\n                switch (_f.label) {\r\n                    case 0:\r\n                        // Cannot renew token if no request object is given.\r\n                        if (!request) {\r\n                            throw ClientConfigurationError.createEmptyTokenRequestError();\r\n                        }\r\n                        if (request.forceRefresh) {\r\n                            // Must refresh due to present force_refresh flag.\r\n                            (_a = this.serverTelemetryManager) === null || _a === void 0 ? void 0 : _a.setCacheOutcome(CacheOutcome.FORCE_REFRESH);\r\n                            this.logger.info(\"SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.\");\r\n                            throw ClientAuthError.createRefreshRequiredError();\r\n                        }\r\n                        else if (!this.config.cacheOptions.claimsBasedCachingEnabled && !StringUtils.isEmptyObj(request.claims)) {\r\n                            // Must refresh due to presence of claims in request preventing cache lookup\r\n                            (_b = this.serverTelemetryManager) === null || _b === void 0 ? void 0 : _b.setCacheOutcome(CacheOutcome.CLAIMS_REQUESTED_CACHE_SKIPPED);\r\n                            this.logger.info(\"SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested.\");\r\n                            throw ClientAuthError.createRefreshRequiredError();\r\n                        }\r\n                        // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases\r\n                        if (!request.account) {\r\n                            throw ClientAuthError.createNoAccountInSilentRequestError();\r\n                        }\r\n                        environment = request.authority || this.authority.getPreferredCache();\r\n                        cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment);\r\n                        if (!cacheRecord.accessToken) {\r\n                            // Must refresh due to non-existent access_token.\r\n                            (_c = this.serverTelemetryManager) === null || _c === void 0 ? void 0 : _c.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);\r\n                            this.logger.info(\"SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.\");\r\n                            throw ClientAuthError.createRefreshRequiredError();\r\n                        }\r\n                        else if (TimeUtils.wasClockTurnedBack(cacheRecord.accessToken.cachedAt) ||\r\n                            TimeUtils.isTokenExpired(cacheRecord.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {\r\n                            // Must refresh due to expired access_token.\r\n                            (_d = this.serverTelemetryManager) === null || _d === void 0 ? void 0 : _d.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);\r\n                            this.logger.info(\"SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within \" + this.config.systemOptions.tokenRenewalOffsetSeconds + \" seconds.\");\r\n                            throw ClientAuthError.createRefreshRequiredError();\r\n                        }\r\n                        else if (cacheRecord.accessToken.refreshOn && TimeUtils.isTokenExpired(cacheRecord.accessToken.refreshOn, 0)) {\r\n                            // Must refresh due to the refresh_in value.\r\n                            (_e = this.serverTelemetryManager) === null || _e === void 0 ? void 0 : _e.setCacheOutcome(CacheOutcome.REFRESH_CACHED_ACCESS_TOKEN);\r\n                            this.logger.info(\"SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'.\");\r\n                            throw ClientAuthError.createRefreshRequiredError();\r\n                        }\r\n                        if (this.config.serverTelemetryManager) {\r\n                            this.config.serverTelemetryManager.incrementCacheHits();\r\n                        }\r\n                        return [4 /*yield*/, this.generateResultFromCacheRecord(cacheRecord, request)];\r\n                    case 1: return [2 /*return*/, _f.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Helper function to build response object from the CacheRecord\r\n     * @param cacheRecord\r\n     */\r\n    SilentFlowClient.prototype.generateResultFromCacheRecord = function (cacheRecord, request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var idTokenObj, authTime;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (cacheRecord.idToken) {\r\n                            idTokenObj = new AuthToken(cacheRecord.idToken.secret, this.config.cryptoInterface);\r\n                        }\r\n                        // token max_age check\r\n                        if (request.maxAge || (request.maxAge === 0)) {\r\n                            authTime = idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.auth_time;\r\n                            if (!authTime) {\r\n                                throw ClientAuthError.createAuthTimeNotFoundError();\r\n                            }\r\n                            AuthToken.checkMaxAge(authTime, request.maxAge);\r\n                        }\r\n                        return [4 /*yield*/, ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, idTokenObj)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return SilentFlowClient;\r\n}(BaseClient));\n\nexport { SilentFlowClient };\n//# sourceMappingURL=SilentFlowClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { AuthError, PerformanceEvents, SilentFlowClient } from '@azure/msal-common';\nimport { ApiId } from '../utils/BrowserConstants.js';\nimport { BrowserAuthError, BrowserAuthErrorMessage } from '../error/BrowserAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentCacheClient = /** @class */ (function (_super) {\r\n    __extends(SilentCacheClient, _super);\r\n    function SilentCacheClient() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Returns unexpired tokens from the cache, if available\r\n     * @param silentRequest\r\n     */\r\n    SilentCacheClient.prototype.acquireToken = function (silentRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var acquireTokenMeasurement, serverTelemetryManager, silentAuthClient, cachedToken, error_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        acquireTokenMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SilentCacheClientAcquireToken, silentRequest.correlationId);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenSilent_silentFlow);\r\n                        return [4 /*yield*/, this.createSilentFlowClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)];\r\n                    case 1:\r\n                        silentAuthClient = _a.sent();\r\n                        this.logger.verbose(\"Silent auth client created\");\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 4, , 5]);\r\n                        return [4 /*yield*/, silentAuthClient.acquireCachedToken(silentRequest)];\r\n                    case 3:\r\n                        cachedToken = _a.sent();\r\n                        acquireTokenMeasurement.endMeasurement({\r\n                            success: true,\r\n                            fromCache: true\r\n                        });\r\n                        return [2 /*return*/, cachedToken];\r\n                    case 4:\r\n                        error_1 = _a.sent();\r\n                        if (error_1 instanceof BrowserAuthError && error_1.errorCode === BrowserAuthErrorMessage.signingKeyNotFoundInStorage.code) {\r\n                            this.logger.verbose(\"Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair.\");\r\n                        }\r\n                        acquireTokenMeasurement.endMeasurement({\r\n                            errorCode: error_1 instanceof AuthError && error_1.errorCode || undefined,\r\n                            subErrorCode: error_1 instanceof AuthError && error_1.subError || undefined,\r\n                            success: false\r\n                        });\r\n                        throw error_1;\r\n                    case 5: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Currently Unsupported\r\n     */\r\n    SilentCacheClient.prototype.logout = function () {\r\n        // Synchronous so we must reject\r\n        return Promise.reject(BrowserAuthError.createSilentLogoutUnsupportedError());\r\n    };\r\n    /**\r\n     * Creates an Silent Flow Client with the given authority, or the default authority.\r\n     * @param serverTelemetryManager\r\n     * @param authorityUrl\r\n     */\r\n    SilentCacheClient.prototype.createSilentFlowClient = function (serverTelemetryManager, authorityUrl, azureCloudOptions) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var clientConfig;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        // Create auth module.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientGetClientConfiguration, this.correlationId);\r\n                        return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, azureCloudOptions)];\r\n                    case 1:\r\n                        clientConfig = _a.sent();\r\n                        return [2 /*return*/, new SilentFlowClient(clientConfig, this.performanceClient)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    SilentCacheClient.prototype.initializeSilentRequest = function (request, account) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var _a;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.InitializeSilentRequest, this.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.InitializeBaseRequest, this.correlationId);\r\n                        _a = [__assign({}, request)];\r\n                        return [4 /*yield*/, this.initializeBaseRequest(request, account)];\r\n                    case 1: return [2 /*return*/, __assign.apply(void 0, [__assign.apply(void 0, _a.concat([_b.sent()])), { account: account, forceRefresh: request.forceRefresh || false }])];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return SilentCacheClient;\r\n}(StandardInteractionClient));\n\nexport { SilentCacheClient };\n//# sourceMappingURL=SilentCacheClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign, __rest } from '../_virtual/_tslib.js';\nimport { ScopeSet, AuthToken, Constants, AccountEntity, AuthorityType, IdTokenEntity, AccessTokenEntity, CacheRecord, AuthenticationScheme, PerformanceEvents, TimeUtils, ClientAuthError, PopTokenGenerator, UrlString, OIDC_DEFAULT_SCOPES, PromptValue } from '@azure/msal-common';\nimport { BaseInteractionClient } from './BaseInteractionClient.js';\nimport { TemporaryCacheKeys, NativeExtensionMethod, NativeConstants, ApiId } from '../utils/BrowserConstants.js';\nimport { NativeAuthError } from '../error/NativeAuthError.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { SilentCacheClient } from './SilentCacheClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar NativeInteractionClient = /** @class */ (function (_super) {\r\n    __extends(NativeInteractionClient, _super);\r\n    function NativeInteractionClient(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {\r\n        var _this = _super.call(this, config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId) || this;\r\n        _this.apiId = apiId;\r\n        _this.accountId = accountId;\r\n        _this.nativeMessageHandler = provider;\r\n        _this.nativeStorageManager = nativeStorageImpl;\r\n        _this.silentCacheClient = new SilentCacheClient(config, _this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Acquire token from native platform via browser extension\r\n     * @param request\r\n     */\r\n    NativeInteractionClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var nativeATMeasurement, reqTimestamp, nativeRequest, result, messageBody, response, validatedResponse;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"NativeInteractionClient - acquireToken called.\");\r\n                        nativeATMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.NativeInteractionClientAcquireToken, request.correlationId);\r\n                        reqTimestamp = TimeUtils.nowSeconds();\r\n                        return [4 /*yield*/, this.initializeNativeRequest(request)];\r\n                    case 1:\r\n                        nativeRequest = _a.sent();\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 4, , 5]);\r\n                        return [4 /*yield*/, this.acquireTokensFromCache(this.accountId, nativeRequest)];\r\n                    case 3:\r\n                        result = _a.sent();\r\n                        nativeATMeasurement.endMeasurement({\r\n                            success: true,\r\n                            isNativeBroker: false,\r\n                            fromCache: true\r\n                        });\r\n                        return [2 /*return*/, result];\r\n                    case 4:\r\n                        _a.sent();\r\n                        // continue with a native call for any and all errors\r\n                        this.logger.info(\"MSAL internal Cache does not contain tokens, proceed to make a native call\");\r\n                        return [3 /*break*/, 5];\r\n                    case 5:\r\n                        messageBody = {\r\n                            method: NativeExtensionMethod.GetToken,\r\n                            request: nativeRequest\r\n                        };\r\n                        return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)];\r\n                    case 6:\r\n                        response = _a.sent();\r\n                        validatedResponse = this.validateNativeResponse(response);\r\n                        return [2 /*return*/, this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)\r\n                                .then(function (result) {\r\n                                nativeATMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                    isNativeBroker: true,\r\n                                    requestId: result.requestId\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                nativeATMeasurement.endMeasurement({\r\n                                    success: false,\r\n                                    errorCode: error.errorCode,\r\n                                    subErrorCode: error.subError,\r\n                                    isNativeBroker: true\r\n                                });\r\n                                throw error;\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Creates silent flow request\r\n     * @param request\r\n     * @param cachedAccount\r\n     * @returns CommonSilentFlowRequest\r\n     */\r\n    NativeInteractionClient.prototype.createSilentCacheRequest = function (request, cachedAccount) {\r\n        return {\r\n            authority: request.authority,\r\n            correlationId: this.correlationId,\r\n            scopes: ScopeSet.fromString(request.scope).asArray(),\r\n            account: cachedAccount,\r\n            forceRefresh: false,\r\n        };\r\n    };\r\n    /**\r\n     * Fetches the tokens from the cache if un-expired\r\n     * @param nativeAccountId\r\n     * @param request\r\n     * @returns authenticationResult\r\n     */\r\n    NativeInteractionClient.prototype.acquireTokensFromCache = function (nativeAccountId, request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var account, silentRequest, result, fullAccount, e_2;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (!nativeAccountId) {\r\n                            this.logger.warning(\"NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided\");\r\n                            throw ClientAuthError.createNoAccountFoundError();\r\n                        }\r\n                        account = this.browserStorage.getAccountInfoFilteredBy({ nativeAccountId: nativeAccountId });\r\n                        if (!account) {\r\n                            throw ClientAuthError.createNoAccountFoundError();\r\n                        }\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        silentRequest = this.createSilentCacheRequest(request, account);\r\n                        return [4 /*yield*/, this.silentCacheClient.acquireToken(silentRequest)];\r\n                    case 2:\r\n                        result = _a.sent();\r\n                        fullAccount = __assign(__assign({}, account), { idTokenClaims: result.idTokenClaims });\r\n                        return [2 /*return*/, __assign(__assign({}, result), { account: fullAccount })];\r\n                    case 3:\r\n                        e_2 = _a.sent();\r\n                        throw e_2;\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Acquires a token from native platform then redirects to the redirectUri instead of returning the response\r\n     * @param request\r\n     */\r\n    NativeInteractionClient.prototype.acquireTokenRedirect = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var nativeRequest, messageBody, response, e_3, navigationOptions, redirectUri;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"NativeInteractionClient - acquireTokenRedirect called.\");\r\n                        return [4 /*yield*/, this.initializeNativeRequest(request)];\r\n                    case 1:\r\n                        nativeRequest = _a.sent();\r\n                        messageBody = {\r\n                            method: NativeExtensionMethod.GetToken,\r\n                            request: nativeRequest\r\n                        };\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 4, , 5]);\r\n                        return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)];\r\n                    case 3:\r\n                        response = _a.sent();\r\n                        this.validateNativeResponse(response);\r\n                        return [3 /*break*/, 5];\r\n                    case 4:\r\n                        e_3 = _a.sent();\r\n                        // Only throw fatal errors here to allow application to fallback to regular redirect. Otherwise proceed and the error will be thrown in handleRedirectPromise\r\n                        if (e_3 instanceof NativeAuthError && e_3.isFatal()) {\r\n                            throw e_3;\r\n                        }\r\n                        return [3 /*break*/, 5];\r\n                    case 5:\r\n                        this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(nativeRequest), true);\r\n                        navigationOptions = {\r\n                            apiId: ApiId.acquireTokenRedirect,\r\n                            timeout: this.config.system.redirectNavigationTimeout,\r\n                            noHistory: false\r\n                        };\r\n                        redirectUri = this.config.auth.navigateToLoginRequestUrl ? window.location.href : this.getRedirectUri(request.redirectUri);\r\n                        return [4 /*yield*/, this.navigationClient.navigateExternal(redirectUri, navigationOptions)];\r\n                    case 6:\r\n                        _a.sent(); // Need to treat this as external to ensure handleRedirectPromise is run again\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * If the previous page called native platform for a token using redirect APIs, send the same request again and return the response\r\n     */\r\n    NativeInteractionClient.prototype.handleRedirectPromise = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var cachedRequest, prompt, request, messageBody, reqTimestamp, response, result, e_4;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"NativeInteractionClient - handleRedirectPromise called.\");\r\n                        if (!this.browserStorage.isInteractionInProgress(true)) {\r\n                            this.logger.info(\"handleRedirectPromise called but there is no interaction in progress, returning null.\");\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        cachedRequest = this.browserStorage.getCachedNativeRequest();\r\n                        if (!cachedRequest) {\r\n                            this.logger.verbose(\"NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.\");\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        prompt = cachedRequest.prompt, request = __rest(cachedRequest, [\"prompt\"]);\r\n                        if (prompt) {\r\n                            this.logger.verbose(\"NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window.\");\r\n                        }\r\n                        this.browserStorage.removeItem(this.browserStorage.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));\r\n                        messageBody = {\r\n                            method: NativeExtensionMethod.GetToken,\r\n                            request: request\r\n                        };\r\n                        reqTimestamp = TimeUtils.nowSeconds();\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 4]);\r\n                        this.logger.verbose(\"NativeInteractionClient - handleRedirectPromise sending message to native broker.\");\r\n                        return [4 /*yield*/, this.nativeMessageHandler.sendMessage(messageBody)];\r\n                    case 2:\r\n                        response = _a.sent();\r\n                        this.validateNativeResponse(response);\r\n                        result = this.handleNativeResponse(response, request, reqTimestamp);\r\n                        this.browserStorage.setInteractionInProgress(false);\r\n                        return [2 /*return*/, result];\r\n                    case 3:\r\n                        e_4 = _a.sent();\r\n                        this.browserStorage.setInteractionInProgress(false);\r\n                        throw e_4;\r\n                    case 4: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Logout from native platform via browser extension\r\n     * @param request\r\n     */\r\n    NativeInteractionClient.prototype.logout = function () {\r\n        this.logger.trace(\"NativeInteractionClient - logout called.\");\r\n        return Promise.reject(\"Logout not implemented yet\");\r\n    };\r\n    /**\r\n     * Transform response from native platform into AuthenticationResult object which will be returned to the end user\r\n     * @param response\r\n     * @param request\r\n     * @param reqTimestamp\r\n     */\r\n    NativeInteractionClient.prototype.handleNativeResponse = function (response, request, reqTimestamp) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authority, idTokenObj, homeAccountIdentifier, accountEntity, result;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"NativeInteractionClient - handleNativeResponse called.\");\r\n                        if (response.account.id !== request.accountId) {\r\n                            // User switch in native broker prompt is not supported. All users must first sign in through web flow to ensure server state is in sync\r\n                            throw NativeAuthError.createUserSwitchError();\r\n                        }\r\n                        return [4 /*yield*/, this.getDiscoveredAuthority(request.authority)];\r\n                    case 1:\r\n                        authority = _a.sent();\r\n                        idTokenObj = this.createIdTokenObj(response);\r\n                        homeAccountIdentifier = this.createHomeAccountIdentifier(response, idTokenObj);\r\n                        accountEntity = AccountEntity.createAccount({\r\n                            homeAccountId: homeAccountIdentifier,\r\n                            idTokenClaims: idTokenObj.claims,\r\n                            clientInfo: response.client_info,\r\n                            nativeAccountId: response.account.id,\r\n                        }, authority);\r\n                        return [4 /*yield*/, this.generateAuthenticationResult(response, request, idTokenObj, accountEntity, authority.canonicalAuthority, reqTimestamp)];\r\n                    case 2:\r\n                        result = _a.sent();\r\n                        // cache accounts and tokens in the appropriate storage\r\n                        this.cacheAccount(accountEntity);\r\n                        this.cacheNativeTokens(response, request, homeAccountIdentifier, idTokenObj, result.accessToken, result.tenantId, reqTimestamp);\r\n                        return [2 /*return*/, result];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Create an idToken Object (not entity)\r\n     * @param response\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.createIdTokenObj = function (response) {\r\n        return new AuthToken(response.id_token || Constants.EMPTY_STRING, this.browserCrypto);\r\n    };\r\n    /**\r\n     * creates an homeAccountIdentifier for the account\r\n     * @param response\r\n     * @param idTokenObj\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.createHomeAccountIdentifier = function (response, idTokenObj) {\r\n        // Save account in browser storage\r\n        var homeAccountIdentifier = AccountEntity.generateHomeAccountId(response.client_info || Constants.EMPTY_STRING, AuthorityType.Default, this.logger, this.browserCrypto, idTokenObj.claims);\r\n        return homeAccountIdentifier;\r\n    };\r\n    /**\r\n     * Helper to generate scopes\r\n     * @param response\r\n     * @param request\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.generateScopes = function (response, request) {\r\n        return response.scope ? ScopeSet.fromString(response.scope) : ScopeSet.fromString(request.scope);\r\n    };\r\n    /**\r\n     * If PoP token is requesred, records the PoP token if returned from the WAM, else generates one in the browser\r\n     * @param request\r\n     * @param response\r\n     */\r\n    NativeInteractionClient.prototype.generatePopAccessToken = function (response, request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var popTokenGenerator, shrParameters;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        if (!(request.tokenType === AuthenticationScheme.POP)) return [3 /*break*/, 2];\r\n                        /**\r\n                         * This code prioritizes SHR returned from the native layer. In case of error/SHR not calculated from WAM and the AT\r\n                         * is still received, SHR is calculated locally\r\n                         */\r\n                        // Check if native layer returned an SHR token\r\n                        if (response.shr) {\r\n                            this.logger.trace(\"handleNativeServerResponse: SHR is enabled in native layer\");\r\n                            return [2 /*return*/, response.shr];\r\n                        }\r\n                        popTokenGenerator = new PopTokenGenerator(this.browserCrypto);\r\n                        shrParameters = {\r\n                            resourceRequestMethod: request.resourceRequestMethod,\r\n                            resourceRequestUri: request.resourceRequestUri,\r\n                            shrClaims: request.shrClaims,\r\n                            shrNonce: request.shrNonce\r\n                        };\r\n                        /**\r\n                         * KeyID must be present in the native request from when the PoP key was generated in order for\r\n                         * PopTokenGenerator to query the full key for signing\r\n                         */\r\n                        if (!request.keyId) {\r\n                            throw ClientAuthError.createKeyIdMissingError();\r\n                        }\r\n                        return [4 /*yield*/, popTokenGenerator.signPopToken(response.access_token, request.keyId, shrParameters)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                    case 2: return [2 /*return*/, response.access_token];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Generates authentication result\r\n     * @param response\r\n     * @param request\r\n     * @param idTokenObj\r\n     * @param accountEntity\r\n     * @param authority\r\n     * @param reqTimestamp\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.generateAuthenticationResult = function (response, request, idTokenObj, accountEntity, authority, reqTimestamp) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var mats, responseScopes, accountProperties, uid, tid, responseAccessToken, tokenType, result;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        mats = this.addTelemetryFromNativeResponse(response);\r\n                        responseScopes = response.scope ? ScopeSet.fromString(response.scope) : ScopeSet.fromString(request.scope);\r\n                        accountProperties = response.account.properties || {};\r\n                        uid = accountProperties[\"UID\"] || idTokenObj.claims.oid || idTokenObj.claims.sub || Constants.EMPTY_STRING;\r\n                        tid = accountProperties[\"TenantId\"] || idTokenObj.claims.tid || Constants.EMPTY_STRING;\r\n                        return [4 /*yield*/, this.generatePopAccessToken(response, request)];\r\n                    case 1:\r\n                        responseAccessToken = _a.sent();\r\n                        tokenType = (request.tokenType === AuthenticationScheme.POP) ? AuthenticationScheme.POP : AuthenticationScheme.BEARER;\r\n                        result = {\r\n                            authority: authority,\r\n                            uniqueId: uid,\r\n                            tenantId: tid,\r\n                            scopes: responseScopes.asArray(),\r\n                            account: accountEntity.getAccountInfo(),\r\n                            idToken: response.id_token,\r\n                            idTokenClaims: idTokenObj.claims,\r\n                            accessToken: responseAccessToken,\r\n                            fromCache: mats ? this.isResponseFromCache(mats) : false,\r\n                            expiresOn: new Date(Number(reqTimestamp + response.expires_in) * 1000),\r\n                            tokenType: tokenType,\r\n                            correlationId: this.correlationId,\r\n                            state: response.state,\r\n                            fromNativeBroker: true\r\n                        };\r\n                        return [2 /*return*/, result];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * cache the account entity in browser storage\r\n     * @param accountEntity\r\n     */\r\n    NativeInteractionClient.prototype.cacheAccount = function (accountEntity) {\r\n        var _this = this;\r\n        // Store the account info and hence `nativeAccountId` in browser cache\r\n        this.browserStorage.setAccount(accountEntity);\r\n        // Remove any existing cached tokens for this account in browser storage\r\n        this.browserStorage.removeAccountContext(accountEntity).catch(function (e) {\r\n            _this.logger.error(\"Error occurred while removing account context from browser storage. \" + e);\r\n        });\r\n    };\r\n    /**\r\n     * Stores the access_token and id_token in inmemory storage\r\n     * @param response\r\n     * @param request\r\n     * @param homeAccountIdentifier\r\n     * @param idTokenObj\r\n     * @param responseAccessToken\r\n     * @param tenantId\r\n     * @param reqTimestamp\r\n     */\r\n    NativeInteractionClient.prototype.cacheNativeTokens = function (response, request, homeAccountIdentifier, idTokenObj, responseAccessToken, tenantId, reqTimestamp) {\r\n        var cachedIdToken = IdTokenEntity.createIdTokenEntity(homeAccountIdentifier, request.authority, response.id_token || Constants.EMPTY_STRING, request.clientId, idTokenObj.claims.tid || Constants.EMPTY_STRING);\r\n        // cache accessToken in inmemory storage\r\n        var expiresIn = (request.tokenType === AuthenticationScheme.POP)\r\n            ? Constants.SHR_NONCE_VALIDITY\r\n            : (typeof response.expires_in === \"string\"\r\n                ? parseInt(response.expires_in, 10)\r\n                : response.expires_in) || 0;\r\n        var tokenExpirationSeconds = reqTimestamp + expiresIn;\r\n        var responseScopes = this.generateScopes(response, request);\r\n        var cachedAccessToken = AccessTokenEntity.createAccessTokenEntity(homeAccountIdentifier, request.authority, responseAccessToken, request.clientId, idTokenObj\r\n            ? idTokenObj.claims.tid || Constants.EMPTY_STRING\r\n            : tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, this.browserCrypto);\r\n        var nativeCacheRecord = new CacheRecord(undefined, cachedIdToken, cachedAccessToken);\r\n        this.nativeStorageManager.saveCacheRecord(nativeCacheRecord);\r\n    };\r\n    NativeInteractionClient.prototype.addTelemetryFromNativeResponse = function (response) {\r\n        var mats = this.getMATSFromResponse(response);\r\n        if (!mats) {\r\n            return null;\r\n        }\r\n        this.performanceClient.addStaticFields({\r\n            extensionId: this.nativeMessageHandler.getExtensionId(),\r\n            extensionVersion: this.nativeMessageHandler.getExtensionVersion(),\r\n            matsBrokerVersion: mats.broker_version,\r\n            matsAccountJoinOnStart: mats.account_join_on_start,\r\n            matsAccountJoinOnEnd: mats.account_join_on_end,\r\n            matsDeviceJoin: mats.device_join,\r\n            matsPromptBehavior: mats.prompt_behavior,\r\n            matsApiErrorCode: mats.api_error_code,\r\n            matsUiVisible: mats.ui_visible,\r\n            matsSilentCode: mats.silent_code,\r\n            matsSilentBiSubCode: mats.silent_bi_sub_code,\r\n            matsSilentMessage: mats.silent_message,\r\n            matsSilentStatus: mats.silent_status,\r\n            matsHttpStatus: mats.http_status,\r\n            matsHttpEventCount: mats.http_event_count\r\n        }, this.correlationId);\r\n        return mats;\r\n    };\r\n    /**\r\n     * Validates native platform response before processing\r\n     * @param response\r\n     */\r\n    NativeInteractionClient.prototype.validateNativeResponse = function (response) {\r\n        if (response.hasOwnProperty(\"access_token\") &&\r\n            response.hasOwnProperty(\"id_token\") &&\r\n            response.hasOwnProperty(\"client_info\") &&\r\n            response.hasOwnProperty(\"account\") &&\r\n            response.hasOwnProperty(\"scope\") &&\r\n            response.hasOwnProperty(\"expires_in\")) {\r\n            return response;\r\n        }\r\n        else {\r\n            throw NativeAuthError.createUnexpectedError(\"Response missing expected properties.\");\r\n        }\r\n    };\r\n    /**\r\n     * Gets MATS telemetry from native response\r\n     * @param response\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.getMATSFromResponse = function (response) {\r\n        if (response.properties.MATS) {\r\n            try {\r\n                return JSON.parse(response.properties.MATS);\r\n            }\r\n            catch (e) {\r\n                this.logger.error(\"NativeInteractionClient - Error parsing MATS telemetry, returning null instead\");\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Returns whether or not response came from native cache\r\n     * @param response\r\n     * @returns\r\n     */\r\n    NativeInteractionClient.prototype.isResponseFromCache = function (mats) {\r\n        if (typeof mats.is_cached === \"undefined\") {\r\n            this.logger.verbose(\"NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false.\");\r\n            return false;\r\n        }\r\n        return !!mats.is_cached;\r\n    };\r\n    /**\r\n     * Translates developer provided request object into NativeRequest object\r\n     * @param request\r\n     */\r\n    NativeInteractionClient.prototype.initializeNativeRequest = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authority, canonicalAuthority, scopes, remainingProperties, scopeSet, getPrompt, validatedRequest, shrParameters, popTokenGenerator, reqCnfData;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"NativeInteractionClient - initializeNativeRequest called\");\r\n                        authority = request.authority || this.config.auth.authority;\r\n                        if (!request.account) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.validateRequestAuthority(authority, request.account)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        canonicalAuthority = new UrlString(authority);\r\n                        canonicalAuthority.validateAsUri();\r\n                        scopes = request.scopes, remainingProperties = __rest(request, [\"scopes\"]);\r\n                        scopeSet = new ScopeSet(scopes || []);\r\n                        scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);\r\n                        getPrompt = function () {\r\n                            // If request is silent, prompt is always none\r\n                            switch (_this.apiId) {\r\n                                case ApiId.ssoSilent:\r\n                                case ApiId.acquireTokenSilent_silentFlow:\r\n                                    _this.logger.trace(\"initializeNativeRequest: silent request sets prompt to none\");\r\n                                    return PromptValue.NONE;\r\n                            }\r\n                            // Prompt not provided, request may proceed and native broker decides if it needs to prompt\r\n                            if (!request.prompt) {\r\n                                _this.logger.trace(\"initializeNativeRequest: prompt was not provided\");\r\n                                return undefined;\r\n                            }\r\n                            // If request is interactive, check if prompt provided is allowed to go directly to native broker\r\n                            switch (request.prompt) {\r\n                                case PromptValue.NONE:\r\n                                case PromptValue.CONSENT:\r\n                                case PromptValue.LOGIN:\r\n                                    _this.logger.trace(\"initializeNativeRequest: prompt is compatible with native flow\");\r\n                                    return request.prompt;\r\n                                default:\r\n                                    _this.logger.trace(\"initializeNativeRequest: prompt = \" + request.prompt + \" is not compatible with native flow\");\r\n                                    throw BrowserAuthError.createNativePromptParameterNotSupportedError();\r\n                            }\r\n                        };\r\n                        validatedRequest = __assign(__assign({}, remainingProperties), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scope: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign(__assign(__assign({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?\r\n                         });\r\n                        if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 4];\r\n                        shrParameters = {\r\n                            resourceRequestUri: request.resourceRequestUri,\r\n                            resourceRequestMethod: request.resourceRequestMethod,\r\n                            shrClaims: request.shrClaims,\r\n                            shrNonce: request.shrNonce\r\n                        };\r\n                        popTokenGenerator = new PopTokenGenerator(this.browserCrypto);\r\n                        return [4 /*yield*/, popTokenGenerator.generateCnf(shrParameters)];\r\n                    case 3:\r\n                        reqCnfData = _a.sent();\r\n                        // to reduce the URL length, it is recommended to send the short form of the req_cnf \r\n                        validatedRequest.reqCnf = reqCnfData.reqCnfString;\r\n                        validatedRequest.keyId = reqCnfData.kid;\r\n                        _a.label = 4;\r\n                    case 4: return [2 /*return*/, validatedRequest];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return NativeInteractionClient;\r\n}(BaseInteractionClient));\n\nexport { NativeInteractionClient };\n//# sourceMappingURL=NativeInteractionClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../../_virtual/_tslib.js';\nimport { NativeConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.js';\nimport { AuthError, AuthenticationScheme, PerformanceEvents } from '@azure/msal-common';\nimport { NativeAuthError } from '../../error/NativeAuthError.js';\nimport { BrowserAuthError } from '../../error/BrowserAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar NativeMessageHandler = /** @class */ (function () {\r\n    function NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, extensionId) {\r\n        this.logger = logger;\r\n        this.handshakeTimeoutMs = handshakeTimeoutMs;\r\n        this.extensionId = extensionId;\r\n        this.resolvers = new Map(); // Used for non-handshake messages\r\n        this.handshakeResolvers = new Map(); // Used for handshake messages\r\n        this.responseId = 0;\r\n        this.messageChannel = new MessageChannel();\r\n        this.windowListener = this.onWindowMessage.bind(this); // Window event callback doesn't have access to 'this' unless it's bound\r\n        this.performanceClient = performanceClient;\r\n        this.handshakeEvent = performanceClient.startMeasurement(PerformanceEvents.NativeMessageHandlerHandshake);\r\n    }\r\n    /**\r\n     * Sends a given message to the extension and resolves with the extension response\r\n     * @param body\r\n     */\r\n    NativeMessageHandler.prototype.sendMessage = function (body) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var req;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                this.logger.trace(\"NativeMessageHandler - sendMessage called.\");\r\n                req = {\r\n                    channel: NativeConstants.CHANNEL_ID,\r\n                    extensionId: this.extensionId,\r\n                    responseId: this.responseId++,\r\n                    body: body\r\n                };\r\n                this.logger.trace(\"NativeMessageHandler - Sending request to browser extension\");\r\n                this.logger.tracePii(\"NativeMessageHandler - Sending request to browser extension: \" + JSON.stringify(req));\r\n                this.messageChannel.port1.postMessage(req);\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        _this.resolvers.set(req.responseId, { resolve: resolve, reject: reject });\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Returns an instance of the MessageHandler that has successfully established a connection with an extension\r\n     * @param {Logger} logger\r\n     * @param {number} handshakeTimeoutMs\r\n     * @param {IPerformanceClient} performanceClient\r\n     */\r\n    NativeMessageHandler.createProvider = function (logger, handshakeTimeoutMs, performanceClient) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var preferredProvider, backupProvider;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        logger.trace(\"NativeMessageHandler - createProvider called.\");\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 3, , 5]);\r\n                        preferredProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient, NativeConstants.PREFERRED_EXTENSION_ID);\r\n                        return [4 /*yield*/, preferredProvider.sendHandshakeRequest()];\r\n                    case 2:\r\n                        _a.sent();\r\n                        return [2 /*return*/, preferredProvider];\r\n                    case 3:\r\n                        _a.sent();\r\n                        backupProvider = new NativeMessageHandler(logger, handshakeTimeoutMs, performanceClient);\r\n                        return [4 /*yield*/, backupProvider.sendHandshakeRequest()];\r\n                    case 4:\r\n                        _a.sent();\r\n                        return [2 /*return*/, backupProvider];\r\n                    case 5: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Send handshake request helper.\r\n     */\r\n    NativeMessageHandler.prototype.sendHandshakeRequest = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var req;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                this.logger.trace(\"NativeMessageHandler - sendHandshakeRequest called.\");\r\n                // Register this event listener before sending handshake\r\n                window.addEventListener(\"message\", this.windowListener, false); // false is important, because content script message processing should work first\r\n                req = {\r\n                    channel: NativeConstants.CHANNEL_ID,\r\n                    extensionId: this.extensionId,\r\n                    responseId: this.responseId++,\r\n                    body: {\r\n                        method: NativeExtensionMethod.HandshakeRequest\r\n                    }\r\n                };\r\n                this.handshakeEvent.addStaticFields({\r\n                    extensionId: this.extensionId,\r\n                    extensionHandshakeTimeoutMs: this.handshakeTimeoutMs\r\n                });\r\n                this.messageChannel.port1.onmessage = function (event) {\r\n                    _this.onChannelMessage(event);\r\n                };\r\n                window.postMessage(req, window.origin, [this.messageChannel.port2]);\r\n                return [2 /*return*/, new Promise(function (resolve, reject) {\r\n                        _this.handshakeResolvers.set(req.responseId, { resolve: resolve, reject: reject });\r\n                        _this.timeoutId = window.setTimeout(function () {\r\n                            /*\r\n                             * Throw an error if neither HandshakeResponse nor original Handshake request are received in a reasonable timeframe.\r\n                             * This typically suggests an event handler stopped propagation of the Handshake request but did not respond to it on the MessageChannel port\r\n                             */\r\n                            window.removeEventListener(\"message\", _this.windowListener, false);\r\n                            _this.messageChannel.port1.close();\r\n                            _this.messageChannel.port2.close();\r\n                            _this.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: true, success: false });\r\n                            reject(BrowserAuthError.createNativeHandshakeTimeoutError());\r\n                            _this.handshakeResolvers.delete(req.responseId);\r\n                        }, _this.handshakeTimeoutMs); // Use a reasonable timeout in milliseconds here\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Invoked when a message is posted to the window. If a handshake request is received it means the extension is not installed.\r\n     * @param event\r\n     */\r\n    NativeMessageHandler.prototype.onWindowMessage = function (event) {\r\n        this.logger.trace(\"NativeMessageHandler - onWindowMessage called\");\r\n        // We only accept messages from ourselves\r\n        if (event.source !== window) {\r\n            return;\r\n        }\r\n        var request = event.data;\r\n        if (!request.channel || request.channel !== NativeConstants.CHANNEL_ID) {\r\n            return;\r\n        }\r\n        if (request.extensionId && request.extensionId !== this.extensionId) {\r\n            return;\r\n        }\r\n        if (request.body.method === NativeExtensionMethod.HandshakeRequest) {\r\n            // If we receive this message back it means no extension intercepted the request, meaning no extension supporting handshake protocol is installed\r\n            this.logger.verbose(request.extensionId ? \"Extension with id: \" + request.extensionId + \" not installed\" : \"No extension installed\");\r\n            clearTimeout(this.timeoutId);\r\n            this.messageChannel.port1.close();\r\n            this.messageChannel.port2.close();\r\n            window.removeEventListener(\"message\", this.windowListener, false);\r\n            var handshakeResolver = this.handshakeResolvers.get(request.responseId);\r\n            if (handshakeResolver) {\r\n                this.handshakeEvent.endMeasurement({ success: false, extensionInstalled: false });\r\n                handshakeResolver.reject(BrowserAuthError.createNativeExtensionNotInstalledError());\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * Invoked when a message is received from the extension on the MessageChannel port\r\n     * @param event\r\n     */\r\n    NativeMessageHandler.prototype.onChannelMessage = function (event) {\r\n        this.logger.trace(\"NativeMessageHandler - onChannelMessage called.\");\r\n        var request = event.data;\r\n        var resolver = this.resolvers.get(request.responseId);\r\n        var handshakeResolver = this.handshakeResolvers.get(request.responseId);\r\n        try {\r\n            var method = request.body.method;\r\n            if (method === NativeExtensionMethod.Response) {\r\n                if (!resolver) {\r\n                    return;\r\n                }\r\n                var response = request.body.response;\r\n                this.logger.trace(\"NativeMessageHandler - Received response from browser extension\");\r\n                this.logger.tracePii(\"NativeMessageHandler - Received response from browser extension: \" + JSON.stringify(response));\r\n                if (response.status !== \"Success\") {\r\n                    resolver.reject(NativeAuthError.createError(response.code, response.description, response.ext));\r\n                }\r\n                else if (response.result) {\r\n                    if (response.result[\"code\"] && response.result[\"description\"]) {\r\n                        resolver.reject(NativeAuthError.createError(response.result[\"code\"], response.result[\"description\"], response.result[\"ext\"]));\r\n                    }\r\n                    else {\r\n                        resolver.resolve(response.result);\r\n                    }\r\n                }\r\n                else {\r\n                    throw AuthError.createUnexpectedError(\"Event does not contain result.\");\r\n                }\r\n                this.resolvers.delete(request.responseId);\r\n            }\r\n            else if (method === NativeExtensionMethod.HandshakeResponse) {\r\n                if (!handshakeResolver) {\r\n                    return;\r\n                }\r\n                clearTimeout(this.timeoutId); // Clear setTimeout\r\n                window.removeEventListener(\"message\", this.windowListener, false); // Remove 'No extension' listener\r\n                this.extensionId = request.extensionId;\r\n                this.extensionVersion = request.body.version;\r\n                this.logger.verbose(\"NativeMessageHandler - Received HandshakeResponse from extension: \" + this.extensionId);\r\n                this.handshakeEvent.endMeasurement({ extensionInstalled: true, success: true });\r\n                handshakeResolver.resolve();\r\n                this.handshakeResolvers.delete(request.responseId);\r\n            }\r\n            // Do nothing if method is not Response or HandshakeResponse\r\n        }\r\n        catch (err) {\r\n            this.logger.error(\"Error parsing response from WAM Extension\");\r\n            this.logger.errorPii(\"Error parsing response from WAM Extension: \" + err.toString());\r\n            this.logger.errorPii(\"Unable to parse \" + event);\r\n            if (resolver) {\r\n                resolver.reject(err);\r\n            }\r\n            else if (handshakeResolver) {\r\n                handshakeResolver.reject(err);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * Returns the Id for the browser extension this handler is communicating with\r\n     * @returns\r\n     */\r\n    NativeMessageHandler.prototype.getExtensionId = function () {\r\n        return this.extensionId;\r\n    };\r\n    /**\r\n     * Returns the version for the browser extension this handler is communicating with\r\n     * @returns\r\n     */\r\n    NativeMessageHandler.prototype.getExtensionVersion = function () {\r\n        return this.extensionVersion;\r\n    };\r\n    /**\r\n     * Returns boolean indicating whether or not the request should attempt to use native broker\r\n     * @param logger\r\n     * @param config\r\n     * @param nativeExtensionProvider\r\n     * @param authenticationScheme\r\n     */\r\n    NativeMessageHandler.isNativeAvailable = function (config, logger, nativeExtensionProvider, authenticationScheme) {\r\n        logger.trace(\"isNativeAvailable called\");\r\n        if (!config.system.allowNativeBroker) {\r\n            logger.trace(\"isNativeAvailable: allowNativeBroker is not enabled, returning false\");\r\n            // Developer disabled WAM\r\n            return false;\r\n        }\r\n        if (!nativeExtensionProvider) {\r\n            logger.trace(\"isNativeAvailable: WAM extension provider is not initialized, returning false\");\r\n            // Extension is not available\r\n            return false;\r\n        }\r\n        if (authenticationScheme) {\r\n            switch (authenticationScheme) {\r\n                case AuthenticationScheme.BEARER:\r\n                case AuthenticationScheme.POP:\r\n                    logger.trace(\"isNativeAvailable: authenticationScheme is supported, returning true\");\r\n                    return true;\r\n                default:\r\n                    logger.trace(\"isNativeAvailable: authenticationScheme is not supported, returning false\");\r\n                    return false;\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n    return NativeMessageHandler;\r\n}());\n\nexport { NativeMessageHandler };\n//# sourceMappingURL=NativeMessageHandler.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { PerformanceEvents, StringUtils, ClientAuthError, ServerError, AuthorityFactory } from '@azure/msal-common';\nimport { BrowserAuthError, BrowserAuthErrorMessage } from '../error/BrowserAuthError.js';\nimport { TemporaryCacheKeys } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Abstract class which defines operations for a browser interaction handling class.\r\n */\r\nvar InteractionHandler = /** @class */ (function () {\r\n    function InteractionHandler(authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) {\r\n        this.authModule = authCodeModule;\r\n        this.browserStorage = storageImpl;\r\n        this.authCodeRequest = authCodeRequest;\r\n        this.logger = logger;\r\n        this.performanceClient = performanceClient;\r\n    }\r\n    /**\r\n     * Function to handle response parameters from hash.\r\n     * @param locationHash\r\n     */\r\n    InteractionHandler.prototype.handleCodeResponseFromHash = function (locationHash, state, authority, networkModule) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var stateKey, requestState, authCodeResponse;\r\n            return __generator(this, function (_a) {\r\n                this.performanceClient.addQueueMeasurement(PerformanceEvents.HandleCodeResponseFromHash, this.authCodeRequest.correlationId);\r\n                this.logger.verbose(\"InteractionHandler.handleCodeResponse called\");\r\n                // Check that location hash isn't empty.\r\n                if (StringUtils.isEmpty(locationHash)) {\r\n                    throw BrowserAuthError.createEmptyHashError(locationHash);\r\n                }\r\n                stateKey = this.browserStorage.generateStateKey(state);\r\n                requestState = this.browserStorage.getTemporaryCache(stateKey);\r\n                if (!requestState) {\r\n                    throw ClientAuthError.createStateNotFoundError(\"Cached State\");\r\n                }\r\n                try {\r\n                    authCodeResponse = this.authModule.handleFragmentResponse(locationHash, requestState);\r\n                }\r\n                catch (e) {\r\n                    if (e instanceof ServerError && e.subError === BrowserAuthErrorMessage.userCancelledError.code) {\r\n                        // Translate server error caused by user closing native prompt to corresponding first class MSAL error\r\n                        throw BrowserAuthError.createUserCancelledError();\r\n                    }\r\n                    else {\r\n                        throw e;\r\n                    }\r\n                }\r\n                this.performanceClient.setPreQueueTime(PerformanceEvents.HandleCodeResponseFromServer, this.authCodeRequest.correlationId);\r\n                return [2 /*return*/, this.handleCodeResponseFromServer(authCodeResponse, state, authority, networkModule)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Process auth code response from AAD\r\n     * @param authCodeResponse\r\n     * @param state\r\n     * @param authority\r\n     * @param networkModule\r\n     * @returns\r\n     */\r\n    InteractionHandler.prototype.handleCodeResponseFromServer = function (authCodeResponse, state, authority, networkModule, validateNonce) {\r\n        if (validateNonce === void 0) { validateNonce = true; }\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var stateKey, requestState, nonceKey, cachedNonce, cachedCcsCred, tokenResponse;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.HandleCodeResponseFromServer, this.authCodeRequest.correlationId);\r\n                        this.logger.trace(\"InteractionHandler.handleCodeResponseFromServer called\");\r\n                        stateKey = this.browserStorage.generateStateKey(state);\r\n                        requestState = this.browserStorage.getTemporaryCache(stateKey);\r\n                        if (!requestState) {\r\n                            throw ClientAuthError.createStateNotFoundError(\"Cached State\");\r\n                        }\r\n                        nonceKey = this.browserStorage.generateNonceKey(requestState);\r\n                        cachedNonce = this.browserStorage.getTemporaryCache(nonceKey);\r\n                        // Assign code to request\r\n                        this.authCodeRequest.code = authCodeResponse.code;\r\n                        if (!authCodeResponse.cloud_instance_host_name) return [3 /*break*/, 2];\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId);\r\n                        return [4 /*yield*/, this.updateTokenEndpointAuthority(authCodeResponse.cloud_instance_host_name, authority, networkModule)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        // Nonce validation not needed when redirect not involved (e.g. hybrid spa, renewing token via rt)\r\n                        if (validateNonce) {\r\n                            authCodeResponse.nonce = cachedNonce || undefined;\r\n                        }\r\n                        authCodeResponse.state = requestState;\r\n                        // Add CCS parameters if available\r\n                        if (authCodeResponse.client_info) {\r\n                            this.authCodeRequest.clientInfo = authCodeResponse.client_info;\r\n                        }\r\n                        else {\r\n                            cachedCcsCred = this.checkCcsCredentials();\r\n                            if (cachedCcsCred) {\r\n                                this.authCodeRequest.ccsCredential = cachedCcsCred;\r\n                            }\r\n                        }\r\n                        // Acquire token with retrieved code.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.AuthClientAcquireToken, this.authCodeRequest.correlationId);\r\n                        return [4 /*yield*/, this.authModule.acquireToken(this.authCodeRequest, authCodeResponse)];\r\n                    case 3:\r\n                        tokenResponse = _a.sent();\r\n                        this.browserStorage.cleanRequestByState(state);\r\n                        return [2 /*return*/, tokenResponse];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Updates authority based on cloudInstanceHostname\r\n     * @param cloudInstanceHostname\r\n     * @param authority\r\n     * @param networkModule\r\n     */\r\n    InteractionHandler.prototype.updateTokenEndpointAuthority = function (cloudInstanceHostname, authority, networkModule) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var cloudInstanceAuthorityUri, cloudInstanceAuthority;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.UpdateTokenEndpointAuthority, this.authCodeRequest.correlationId);\r\n                        cloudInstanceAuthorityUri = \"https://\" + cloudInstanceHostname + \"/\" + authority.tenant + \"/\";\r\n                        return [4 /*yield*/, AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, networkModule, this.browserStorage, authority.options, this.logger, this.performanceClient, this.authCodeRequest.correlationId)];\r\n                    case 1:\r\n                        cloudInstanceAuthority = _a.sent();\r\n                        this.authModule.updateAuthority(cloudInstanceAuthority);\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Looks up ccs creds in the cache\r\n     */\r\n    InteractionHandler.prototype.checkCcsCredentials = function () {\r\n        // Look up ccs credential in temp cache\r\n        var cachedCcsCred = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CCS_CREDENTIAL, true);\r\n        if (cachedCcsCred) {\r\n            try {\r\n                return JSON.parse(cachedCcsCred);\r\n            }\r\n            catch (e) {\r\n                this.authModule.logger.error(\"Cache credential could not be parsed\");\r\n                this.authModule.logger.errorPii(\"Cache credential could not be parsed: \" + cachedCcsCred);\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    return InteractionHandler;\r\n}());\n\nexport { InteractionHandler };\n//# sourceMappingURL=InteractionHandler.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { OIDC_DEFAULT_SCOPES, StringUtils, UrlString, Constants, AuthError, ThrottlingUtils, ProtocolUtils, PerformanceEvents } from '@azure/msal-common';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { EventType } from '../event/EventType.js';\nimport { BrowserConstants, InteractionType, ApiId } from '../utils/BrowserConstants.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\nimport { NativeInteractionClient } from './NativeInteractionClient.js';\nimport { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { InteractionHandler } from '../interaction_handler/InteractionHandler.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar PopupClient = /** @class */ (function (_super) {\r\n    __extends(PopupClient, _super);\r\n    function PopupClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {\r\n        var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;\r\n        // Properly sets this reference for the unload event.\r\n        _this.unloadWindow = _this.unloadWindow.bind(_this);\r\n        _this.nativeStorage = nativeStorageImpl;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Acquires tokens by opening a popup window to the /authorize endpoint of the authority\r\n     * @param request\r\n     */\r\n    PopupClient.prototype.acquireToken = function (request) {\r\n        try {\r\n            var popupName = this.generatePopupName(request.scopes || OIDC_DEFAULT_SCOPES, request.authority || this.config.auth.authority);\r\n            var popupWindowAttributes = request.popupWindowAttributes || {};\r\n            // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously.\r\n            if (this.config.system.asyncPopups) {\r\n                this.logger.verbose(\"asyncPopups set to true, acquiring token\");\r\n                // Passes on popup position and dimensions if in request\r\n                return this.acquireTokenPopupAsync(request, popupName, popupWindowAttributes);\r\n            }\r\n            else {\r\n                // asyncPopups flag is set to false. Opens popup before acquiring token.\r\n                this.logger.verbose(\"asyncPopup set to false, opening popup before acquiring token\");\r\n                var popup = this.openSizedPopup(\"about:blank\", popupName, popupWindowAttributes);\r\n                return this.acquireTokenPopupAsync(request, popupName, popupWindowAttributes, popup);\r\n            }\r\n        }\r\n        catch (e) {\r\n            return Promise.reject(e);\r\n        }\r\n    };\r\n    /**\r\n     * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server\r\n     * @param logoutRequest\r\n     */\r\n    PopupClient.prototype.logout = function (logoutRequest) {\r\n        try {\r\n            this.logger.verbose(\"logoutPopup called\");\r\n            var validLogoutRequest = this.initializeLogoutRequest(logoutRequest);\r\n            var popupName = this.generateLogoutPopupName(validLogoutRequest);\r\n            var authority = logoutRequest && logoutRequest.authority;\r\n            var mainWindowRedirectUri = logoutRequest && logoutRequest.mainWindowRedirectUri;\r\n            var popupWindowAttributes = (logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.popupWindowAttributes) || {};\r\n            // asyncPopups flag is true. Acquires token without first opening popup. Popup will be opened later asynchronously.\r\n            if (this.config.system.asyncPopups) {\r\n                this.logger.verbose(\"asyncPopups set to true\");\r\n                // Passes on popup position and dimensions if in request\r\n                return this.logoutPopupAsync(validLogoutRequest, popupName, popupWindowAttributes, authority, undefined, mainWindowRedirectUri);\r\n            }\r\n            else {\r\n                // asyncPopups flag is set to false. Opens popup before logging out.\r\n                this.logger.verbose(\"asyncPopup set to false, opening popup\");\r\n                var popup = this.openSizedPopup(\"about:blank\", popupName, popupWindowAttributes);\r\n                return this.logoutPopupAsync(validLogoutRequest, popupName, popupWindowAttributes, authority, popup, mainWindowRedirectUri);\r\n            }\r\n        }\r\n        catch (e) {\r\n            // Since this function is synchronous we need to reject\r\n            return Promise.reject(e);\r\n        }\r\n    };\r\n    /**\r\n     * Helper which obtains an access_token for your API via opening a popup window in the user's browser\r\n     * @param validRequest\r\n     * @param popupName\r\n     * @param popup\r\n     * @param popupWindowAttributes\r\n     *\r\n     * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n     */\r\n    PopupClient.prototype.acquireTokenPopupAsync = function (request, popupName, popupWindowAttributes, popup) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var serverTelemetryManager, validRequest, authCodeRequest, authClient, isNativeBroker, fetchNativeAccountIdMeasurement, navigateUrl, interactionHandler, popupParameters, popupWindow, hash, serverParams, state_1, nativeInteractionClient, userRequestState, result, e_1;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"acquireTokenPopupAsync called\");\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenPopup);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationRequest(request, InteractionType.Popup)];\r\n                    case 1:\r\n                        validRequest = _a.sent();\r\n                        this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || Constants.EMPTY_STRING, validRequest.account || null);\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 8, , 9]);\r\n                        // Create auth code request and generate PKCE params\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationCodeRequest(validRequest)];\r\n                    case 3:\r\n                        authCodeRequest = _a.sent();\r\n                        // Initialize the client\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, request.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions)];\r\n                    case 4:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        isNativeBroker = NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme);\r\n                        fetchNativeAccountIdMeasurement = void 0;\r\n                        if (isNativeBroker) {\r\n                            fetchNativeAccountIdMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.FetchAccountIdWithNativeBroker, request.correlationId);\r\n                        }\r\n                        return [4 /*yield*/, authClient.getAuthCodeUrl(__assign(__assign({}, validRequest), { nativeBroker: isNativeBroker }))];\r\n                    case 5:\r\n                        navigateUrl = _a.sent();\r\n                        interactionHandler = new InteractionHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.performanceClient);\r\n                        popupParameters = {\r\n                            popup: popup,\r\n                            popupName: popupName,\r\n                            popupWindowAttributes: popupWindowAttributes\r\n                        };\r\n                        popupWindow = this.initiateAuthRequest(navigateUrl, popupParameters);\r\n                        this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow: popupWindow }, null);\r\n                        return [4 /*yield*/, this.monitorPopupForHash(popupWindow)];\r\n                    case 6:\r\n                        hash = _a.sent();\r\n                        serverParams = UrlString.getDeserializedHash(hash);\r\n                        state_1 = this.validateAndExtractStateFromHash(serverParams, InteractionType.Popup, validRequest.correlationId);\r\n                        // Remove throttle if it exists\r\n                        ThrottlingUtils.removeThrottle(this.browserStorage, this.config.auth.clientId, authCodeRequest);\r\n                        if (serverParams.accountId) {\r\n                            this.logger.verbose(\"Account id found in hash, calling WAM for token\");\r\n                            // end measurement for server call with native brokering enabled\r\n                            if (fetchNativeAccountIdMeasurement) {\r\n                                fetchNativeAccountIdMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                    isNativeBroker: true\r\n                                });\r\n                            }\r\n                            if (!this.nativeMessageHandler) {\r\n                                throw BrowserAuthError.createNativeConnectionNotEstablishedError();\r\n                            }\r\n                            nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, validRequest.correlationId);\r\n                            userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state_1).userRequestState;\r\n                            return [2 /*return*/, nativeInteractionClient.acquireToken(__assign(__assign({}, validRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently\r\n                                 })).finally(function () {\r\n                                    _this.browserStorage.cleanRequestByState(state_1);\r\n                                })];\r\n                        }\r\n                        return [4 /*yield*/, interactionHandler.handleCodeResponseFromHash(hash, state_1, authClient.authority, this.networkClient)];\r\n                    case 7:\r\n                        result = _a.sent();\r\n                        return [2 /*return*/, result];\r\n                    case 8:\r\n                        e_1 = _a.sent();\r\n                        if (popup) {\r\n                            // Close the synchronous popup if an error is thrown before the window unload event is registered\r\n                            popup.close();\r\n                        }\r\n                        if (e_1 instanceof AuthError) {\r\n                            e_1.setCorrelationId(this.correlationId);\r\n                        }\r\n                        serverTelemetryManager.cacheFailedRequest(e_1);\r\n                        this.browserStorage.cleanRequestByState(validRequest.state);\r\n                        throw e_1;\r\n                    case 9: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     *\r\n     * @param validRequest\r\n     * @param popupName\r\n     * @param requestAuthority\r\n     * @param popup\r\n     * @param mainWindowRedirectUri\r\n     * @param popupWindowAttributes\r\n     */\r\n    PopupClient.prototype.logoutPopupAsync = function (validRequest, popupName, popupWindowAttributes, requestAuthority, popup, mainWindowRedirectUri) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var serverTelemetryManager, authClient, logoutUri, popupWindow, navigationOptions, absoluteUrl, e_2;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"logoutPopupAsync called\");\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Popup, validRequest);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.logoutPopup);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 5, , 6]);\r\n                        // Clear cache on logout\r\n                        return [4 /*yield*/, this.clearCacheOnLogout(validRequest.account)];\r\n                    case 2:\r\n                        // Clear cache on logout\r\n                        _a.sent();\r\n                        // Initialize the client\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, validRequest.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, requestAuthority)];\r\n                    case 3:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        logoutUri = authClient.getLogoutUri(validRequest);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Popup, validRequest);\r\n                        popupWindow = this.openPopup(logoutUri, { popupName: popupName, popupWindowAttributes: popupWindowAttributes, popup: popup });\r\n                        this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow: popupWindow }, null);\r\n                        return [4 /*yield*/, this.waitForLogoutPopup(popupWindow)];\r\n                    case 4:\r\n                        _a.sent();\r\n                        if (mainWindowRedirectUri) {\r\n                            navigationOptions = {\r\n                                apiId: ApiId.logoutPopup,\r\n                                timeout: this.config.system.redirectNavigationTimeout,\r\n                                noHistory: false\r\n                            };\r\n                            absoluteUrl = UrlString.getAbsoluteUrl(mainWindowRedirectUri, BrowserUtils.getCurrentUri());\r\n                            this.logger.verbose(\"Redirecting main window to url specified in the request\");\r\n                            this.logger.verbosePii(\"Redirecting main window to: \" + absoluteUrl);\r\n                            this.navigationClient.navigateInternal(absoluteUrl, navigationOptions);\r\n                        }\r\n                        else {\r\n                            this.logger.verbose(\"No main window navigation requested\");\r\n                        }\r\n                        return [3 /*break*/, 6];\r\n                    case 5:\r\n                        e_2 = _a.sent();\r\n                        if (popup) {\r\n                            // Close the synchronous popup if an error is thrown before the window unload event is registered\r\n                            popup.close();\r\n                        }\r\n                        if (e_2 instanceof AuthError) {\r\n                            e_2.setCorrelationId(this.correlationId);\r\n                        }\r\n                        this.browserStorage.setInteractionInProgress(false);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Popup, null, e_2);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);\r\n                        serverTelemetryManager.cacheFailedRequest(e_2);\r\n                        throw e_2;\r\n                    case 6:\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Opens a popup window with given request Url.\r\n     * @param requestUrl\r\n     */\r\n    PopupClient.prototype.initiateAuthRequest = function (requestUrl, params) {\r\n        // Check that request url is not empty.\r\n        if (!StringUtils.isEmpty(requestUrl)) {\r\n            this.logger.infoPii(\"Navigate to: \" + requestUrl);\r\n            // Open the popup window to requestUrl.\r\n            return this.openPopup(requestUrl, params);\r\n        }\r\n        else {\r\n            // Throw error if request URL is empty.\r\n            this.logger.error(\"Navigate url is empty\");\r\n            throw BrowserAuthError.createEmptyNavigationUriError();\r\n        }\r\n    };\r\n    /**\r\n     * Monitors a window until it loads a url with the same origin.\r\n     * @param popupWindow - window that is being monitored\r\n     * @param timeout - timeout for processing hash once popup is redirected back to application\r\n     */\r\n    PopupClient.prototype.monitorPopupForHash = function (popupWindow) {\r\n        var _this = this;\r\n        return new Promise(function (resolve, reject) {\r\n            /*\r\n             * Polling for popups needs to be tick-based,\r\n             * since a non-trivial amount of time can be spent on interaction (which should not count against the timeout).\r\n             */\r\n            var maxTicks = _this.config.system.windowHashTimeout / _this.config.system.pollIntervalMilliseconds;\r\n            var ticks = 0;\r\n            _this.logger.verbose(\"PopupHandler.monitorPopupForHash - polling started\");\r\n            var intervalId = setInterval(function () {\r\n                // Window is closed\r\n                if (popupWindow.closed) {\r\n                    _this.logger.error(\"PopupHandler.monitorPopupForHash - window closed\");\r\n                    _this.cleanPopup();\r\n                    clearInterval(intervalId);\r\n                    reject(BrowserAuthError.createUserCancelledError());\r\n                    return;\r\n                }\r\n                var href = Constants.EMPTY_STRING;\r\n                var hash = Constants.EMPTY_STRING;\r\n                try {\r\n                    /*\r\n                     * Will throw if cross origin,\r\n                     * which should be caught and ignored\r\n                     * since we need the interval to keep running while on STS UI.\r\n                     */\r\n                    href = popupWindow.location.href;\r\n                    hash = popupWindow.location.hash;\r\n                }\r\n                catch (e) { }\r\n                // Don't process blank pages or cross domain\r\n                if (StringUtils.isEmpty(href) || href === \"about:blank\") {\r\n                    return;\r\n                }\r\n                _this.logger.verbose(\"PopupHandler.monitorPopupForHash - popup window is on same origin as caller\");\r\n                /*\r\n                 * Only run clock when we are on same domain for popups\r\n                 * as popup operations can take a long time.\r\n                 */\r\n                ticks++;\r\n                if (hash) {\r\n                    _this.logger.verbose(\"PopupHandler.monitorPopupForHash - found hash in url\");\r\n                    clearInterval(intervalId);\r\n                    _this.cleanPopup(popupWindow);\r\n                    if (UrlString.hashContainsKnownProperties(hash)) {\r\n                        _this.logger.verbose(\"PopupHandler.monitorPopupForHash - hash contains known properties, returning.\");\r\n                        resolve(hash);\r\n                    }\r\n                    else {\r\n                        _this.logger.error(\"PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely.\");\r\n                        _this.logger.errorPii(\"PopupHandler.monitorPopupForHash - hash found: \" + hash);\r\n                        reject(BrowserAuthError.createHashDoesNotContainKnownPropertiesError());\r\n                    }\r\n                }\r\n                else if (ticks > maxTicks) {\r\n                    _this.logger.error(\"PopupHandler.monitorPopupForHash - unable to find hash in url, timing out\");\r\n                    clearInterval(intervalId);\r\n                    reject(BrowserAuthError.createMonitorPopupTimeoutError());\r\n                }\r\n            }, _this.config.system.pollIntervalMilliseconds);\r\n        });\r\n    };\r\n    /**\r\n     * Waits for user interaction in logout popup window\r\n     * @param popupWindow\r\n     * @returns\r\n     */\r\n    PopupClient.prototype.waitForLogoutPopup = function (popupWindow) {\r\n        var _this = this;\r\n        return new Promise(function (resolve) {\r\n            _this.logger.verbose(\"PopupHandler.waitForLogoutPopup - polling started\");\r\n            var intervalId = setInterval(function () {\r\n                // Window is closed\r\n                if (popupWindow.closed) {\r\n                    _this.logger.error(\"PopupHandler.waitForLogoutPopup - window closed\");\r\n                    _this.cleanPopup();\r\n                    clearInterval(intervalId);\r\n                    resolve();\r\n                }\r\n                var href = Constants.EMPTY_STRING;\r\n                try {\r\n                    /*\r\n                     * Will throw if cross origin,\r\n                     * which should be caught and ignored\r\n                     * since we need the interval to keep running while on STS UI.\r\n                     */\r\n                    href = popupWindow.location.href;\r\n                }\r\n                catch (e) { }\r\n                // Don't process blank pages or cross domain\r\n                if (StringUtils.isEmpty(href) || href === \"about:blank\") {\r\n                    return;\r\n                }\r\n                _this.logger.verbose(\"PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing.\");\r\n                clearInterval(intervalId);\r\n                _this.cleanPopup(popupWindow);\r\n                resolve();\r\n            }, _this.config.system.pollIntervalMilliseconds);\r\n        });\r\n    };\r\n    /**\r\n     * @hidden\r\n     *\r\n     * Configures popup window for login.\r\n     *\r\n     * @param urlNavigate\r\n     * @param title\r\n     * @param popUpWidth\r\n     * @param popUpHeight\r\n     * @param popupWindowAttributes\r\n     * @ignore\r\n     * @hidden\r\n     */\r\n    PopupClient.prototype.openPopup = function (urlNavigate, popupParams) {\r\n        try {\r\n            var popupWindow = void 0;\r\n            // Popup window passed in, setting url to navigate to\r\n            if (popupParams.popup) {\r\n                popupWindow = popupParams.popup;\r\n                this.logger.verbosePii(\"Navigating popup window to: \" + urlNavigate);\r\n                popupWindow.location.assign(urlNavigate);\r\n            }\r\n            else if (typeof popupParams.popup === \"undefined\") {\r\n                // Popup will be undefined if it was not passed in\r\n                this.logger.verbosePii(\"Opening popup window to: \" + urlNavigate);\r\n                popupWindow = this.openSizedPopup(urlNavigate, popupParams.popupName, popupParams.popupWindowAttributes);\r\n            }\r\n            // Popup will be null if popups are blocked\r\n            if (!popupWindow) {\r\n                throw BrowserAuthError.createEmptyWindowCreatedError();\r\n            }\r\n            if (popupWindow.focus) {\r\n                popupWindow.focus();\r\n            }\r\n            this.currentWindow = popupWindow;\r\n            window.addEventListener(\"beforeunload\", this.unloadWindow);\r\n            return popupWindow;\r\n        }\r\n        catch (e) {\r\n            this.logger.error(\"error opening popup \" + e.message);\r\n            this.browserStorage.setInteractionInProgress(false);\r\n            throw BrowserAuthError.createPopupWindowError(e.toString());\r\n        }\r\n    };\r\n    /**\r\n     * Helper function to set popup window dimensions and position\r\n     * @param urlNavigate\r\n     * @param popupName\r\n     * @param popupWindowAttributes\r\n     * @returns\r\n     */\r\n    PopupClient.prototype.openSizedPopup = function (urlNavigate, popupName, popupWindowAttributes) {\r\n        var _a, _b, _c, _d;\r\n        /**\r\n         * adding winLeft and winTop to account for dual monitor\r\n         * using screenLeft and screenTop for IE8 and earlier\r\n         */\r\n        var winLeft = window.screenLeft ? window.screenLeft : window.screenX;\r\n        var winTop = window.screenTop ? window.screenTop : window.screenY;\r\n        /**\r\n         * window.innerWidth displays browser window\"s height and width excluding toolbars\r\n         * using document.documentElement.clientWidth for IE8 and earlier\r\n         */\r\n        var winWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\r\n        var winHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;\r\n        var width = (_a = popupWindowAttributes.popupSize) === null || _a === void 0 ? void 0 : _a.width;\r\n        var height = (_b = popupWindowAttributes.popupSize) === null || _b === void 0 ? void 0 : _b.height;\r\n        var top = (_c = popupWindowAttributes.popupPosition) === null || _c === void 0 ? void 0 : _c.top;\r\n        var left = (_d = popupWindowAttributes.popupPosition) === null || _d === void 0 ? void 0 : _d.left;\r\n        if (!width || width < 0 || width > winWidth) {\r\n            this.logger.verbose(\"Default popup window width used. Window width not configured or invalid.\");\r\n            width = BrowserConstants.POPUP_WIDTH;\r\n        }\r\n        if (!height || height < 0 || height > winHeight) {\r\n            this.logger.verbose(\"Default popup window height used. Window height not configured or invalid.\");\r\n            height = BrowserConstants.POPUP_HEIGHT;\r\n        }\r\n        if (!top || top < 0 || top > winHeight) {\r\n            this.logger.verbose(\"Default popup window top position used. Window top not configured or invalid.\");\r\n            top = Math.max(0, ((winHeight / 2) - (BrowserConstants.POPUP_HEIGHT / 2)) + winTop);\r\n        }\r\n        if (!left || left < 0 || left > winWidth) {\r\n            this.logger.verbose(\"Default popup window left position used. Window left not configured or invalid.\");\r\n            left = Math.max(0, ((winWidth / 2) - (BrowserConstants.POPUP_WIDTH / 2)) + winLeft);\r\n        }\r\n        return window.open(urlNavigate, popupName, \"width=\" + width + \", height=\" + height + \", top=\" + top + \", left=\" + left + \", scrollbars=yes\");\r\n    };\r\n    /**\r\n     * Event callback to unload main window.\r\n     */\r\n    PopupClient.prototype.unloadWindow = function (e) {\r\n        this.browserStorage.cleanRequestByInteractionType(InteractionType.Popup);\r\n        if (this.currentWindow) {\r\n            this.currentWindow.close();\r\n        }\r\n        // Guarantees browser unload will happen, so no other errors will be thrown.\r\n        e.preventDefault();\r\n    };\r\n    /**\r\n     * Closes popup, removes any state vars created during popup calls.\r\n     * @param popupWindow\r\n     */\r\n    PopupClient.prototype.cleanPopup = function (popupWindow) {\r\n        if (popupWindow) {\r\n            // Close window.\r\n            popupWindow.close();\r\n        }\r\n        // Remove window unload function\r\n        window.removeEventListener(\"beforeunload\", this.unloadWindow);\r\n        // Interaction is completed - remove interaction status.\r\n        this.browserStorage.setInteractionInProgress(false);\r\n    };\r\n    /**\r\n     * Generates the name for the popup based on the client id and request\r\n     * @param clientId\r\n     * @param request\r\n     */\r\n    PopupClient.prototype.generatePopupName = function (scopes, authority) {\r\n        return BrowserConstants.POPUP_NAME_PREFIX + \".\" + this.config.auth.clientId + \".\" + scopes.join(\"-\") + \".\" + authority + \".\" + this.correlationId;\r\n    };\r\n    /**\r\n     * Generates the name for the popup based on the client id and request for logouts\r\n     * @param clientId\r\n     * @param request\r\n     */\r\n    PopupClient.prototype.generateLogoutPopupName = function (request) {\r\n        var homeAccountId = request.account && request.account.homeAccountId;\r\n        return BrowserConstants.POPUP_NAME_PREFIX + \".\" + this.config.auth.clientId + \".\" + homeAccountId + \".\" + this.correlationId;\r\n    };\r\n    return PopupClient;\r\n}(StandardInteractionClient));\n\nexport { PopupClient };\n//# sourceMappingURL=PopupClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { StringUtils, ClientAuthError, ServerError } from '@azure/msal-common';\nimport { BrowserAuthError, BrowserAuthErrorMessage } from '../error/BrowserAuthError.js';\nimport { TemporaryCacheKeys, ApiId } from '../utils/BrowserConstants.js';\nimport { InteractionHandler } from './InteractionHandler.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar RedirectHandler = /** @class */ (function (_super) {\r\n    __extends(RedirectHandler, _super);\r\n    function RedirectHandler(authCodeModule, storageImpl, authCodeRequest, logger, browserCrypto, performanceClient) {\r\n        var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) || this;\r\n        _this.browserCrypto = browserCrypto;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Redirects window to given URL.\r\n     * @param urlNavigate\r\n     */\r\n    RedirectHandler.prototype.initiateAuthRequest = function (requestUrl, params) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var navigationOptions, navigate;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"RedirectHandler.initiateAuthRequest called\");\r\n                        if (!!StringUtils.isEmpty(requestUrl)) return [3 /*break*/, 7];\r\n                        // Cache start page, returns to this page after redirectUri if navigateToLoginRequestUrl is true\r\n                        if (params.redirectStartPage) {\r\n                            this.logger.verbose(\"RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page\");\r\n                            this.browserStorage.setTemporaryCache(TemporaryCacheKeys.ORIGIN_URI, params.redirectStartPage, true);\r\n                        }\r\n                        // Set interaction status in the library.\r\n                        this.browserStorage.setTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, this.authCodeRequest.correlationId, true);\r\n                        this.browserStorage.cacheCodeRequest(this.authCodeRequest, this.browserCrypto);\r\n                        this.logger.infoPii(\"RedirectHandler.initiateAuthRequest: Navigate to: \" + requestUrl);\r\n                        navigationOptions = {\r\n                            apiId: ApiId.acquireTokenRedirect,\r\n                            timeout: params.redirectTimeout,\r\n                            noHistory: false\r\n                        };\r\n                        if (!(typeof params.onRedirectNavigate === \"function\")) return [3 /*break*/, 4];\r\n                        this.logger.verbose(\"RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback\");\r\n                        navigate = params.onRedirectNavigate(requestUrl);\r\n                        if (!(navigate !== false)) return [3 /*break*/, 2];\r\n                        this.logger.verbose(\"RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating\");\r\n                        return [4 /*yield*/, params.navigationClient.navigateExternal(requestUrl, navigationOptions)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                    case 2:\r\n                        this.logger.verbose(\"RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation\");\r\n                        return [2 /*return*/];\r\n                    case 3: return [3 /*break*/, 6];\r\n                    case 4:\r\n                        // Navigate window to request URL\r\n                        this.logger.verbose(\"RedirectHandler.initiateAuthRequest: Navigating window to navigate url\");\r\n                        return [4 /*yield*/, params.navigationClient.navigateExternal(requestUrl, navigationOptions)];\r\n                    case 5:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                    case 6: return [3 /*break*/, 8];\r\n                    case 7:\r\n                        // Throw error if request URL is empty.\r\n                        this.logger.info(\"RedirectHandler.initiateAuthRequest: Navigate url is empty\");\r\n                        throw BrowserAuthError.createEmptyNavigationUriError();\r\n                    case 8: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Handle authorization code response in the window.\r\n     * @param hash\r\n     */\r\n    RedirectHandler.prototype.handleCodeResponseFromHash = function (locationHash, state, authority, networkModule) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var stateKey, requestState, authCodeResponse, nonceKey, cachedNonce, cachedCcsCred, tokenResponse;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"RedirectHandler.handleCodeResponse called\");\r\n                        // Check that location hash isn't empty.\r\n                        if (StringUtils.isEmpty(locationHash)) {\r\n                            throw BrowserAuthError.createEmptyHashError(locationHash);\r\n                        }\r\n                        // Interaction is completed - remove interaction status.\r\n                        this.browserStorage.setInteractionInProgress(false);\r\n                        stateKey = this.browserStorage.generateStateKey(state);\r\n                        requestState = this.browserStorage.getTemporaryCache(stateKey);\r\n                        if (!requestState) {\r\n                            throw ClientAuthError.createStateNotFoundError(\"Cached State\");\r\n                        }\r\n                        try {\r\n                            authCodeResponse = this.authModule.handleFragmentResponse(locationHash, requestState);\r\n                        }\r\n                        catch (e) {\r\n                            if (e instanceof ServerError && e.subError === BrowserAuthErrorMessage.userCancelledError.code) {\r\n                                // Translate server error caused by user closing native prompt to corresponding first class MSAL error\r\n                                throw BrowserAuthError.createUserCancelledError();\r\n                            }\r\n                            else {\r\n                                throw e;\r\n                            }\r\n                        }\r\n                        nonceKey = this.browserStorage.generateNonceKey(requestState);\r\n                        cachedNonce = this.browserStorage.getTemporaryCache(nonceKey);\r\n                        // Assign code to request\r\n                        this.authCodeRequest.code = authCodeResponse.code;\r\n                        if (!authCodeResponse.cloud_instance_host_name) return [3 /*break*/, 2];\r\n                        return [4 /*yield*/, this.updateTokenEndpointAuthority(authCodeResponse.cloud_instance_host_name, authority, networkModule)];\r\n                    case 1:\r\n                        _a.sent();\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        authCodeResponse.nonce = cachedNonce || undefined;\r\n                        authCodeResponse.state = requestState;\r\n                        // Add CCS parameters if available\r\n                        if (authCodeResponse.client_info) {\r\n                            this.authCodeRequest.clientInfo = authCodeResponse.client_info;\r\n                        }\r\n                        else {\r\n                            cachedCcsCred = this.checkCcsCredentials();\r\n                            if (cachedCcsCred) {\r\n                                this.authCodeRequest.ccsCredential = cachedCcsCred;\r\n                            }\r\n                        }\r\n                        return [4 /*yield*/, this.authModule.acquireToken(this.authCodeRequest, authCodeResponse)];\r\n                    case 3:\r\n                        tokenResponse = _a.sent();\r\n                        this.browserStorage.cleanRequestByState(state);\r\n                        return [2 /*return*/, tokenResponse];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return RedirectHandler;\r\n}(InteractionHandler));\n\nexport { RedirectHandler };\n//# sourceMappingURL=RedirectHandler.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { UrlString, AuthError, PerformanceEvents, Constants, ThrottlingUtils, ProtocolUtils } from '@azure/msal-common';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { TemporaryCacheKeys, ApiId, InteractionType } from '../utils/BrowserConstants.js';\nimport { RedirectHandler } from '../interaction_handler/RedirectHandler.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\nimport { EventType } from '../event/EventType.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { NativeInteractionClient } from './NativeInteractionClient.js';\nimport { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar RedirectClient = /** @class */ (function (_super) {\r\n    __extends(RedirectClient, _super);\r\n    function RedirectClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {\r\n        var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;\r\n        _this.nativeStorage = nativeStorageImpl;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Redirects the page to the /authorize endpoint of the IDP\r\n     * @param request\r\n     */\r\n    RedirectClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var validRequest, serverTelemetryManager, handleBackButton, authCodeRequest, authClient, interactionHandler, navigateUrl, redirectStartPage, e_1;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationRequest(request, InteractionType.Redirect)];\r\n                    case 1:\r\n                        validRequest = _a.sent();\r\n                        this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || Constants.EMPTY_STRING, validRequest.account || null);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenRedirect);\r\n                        handleBackButton = function (event) {\r\n                            // Clear temporary cache if the back button is clicked during the redirect flow.\r\n                            if (event.persisted) {\r\n                                _this.logger.verbose(\"Page was restored from back/forward cache. Clearing temporary cache.\");\r\n                                _this.browserStorage.cleanRequestByState(validRequest.state);\r\n                                _this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, InteractionType.Redirect);\r\n                            }\r\n                        };\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 7, , 8]);\r\n                        // Create auth code request and generate PKCE params\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationCodeRequest(validRequest)];\r\n                    case 3:\r\n                        authCodeRequest = _a.sent();\r\n                        // Initialize the client\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, request.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions)];\r\n                    case 4:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        interactionHandler = new RedirectHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.browserCrypto, this.performanceClient);\r\n                        return [4 /*yield*/, authClient.getAuthCodeUrl(__assign(__assign({}, validRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme) }))];\r\n                    case 5:\r\n                        navigateUrl = _a.sent();\r\n                        redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);\r\n                        this.logger.verbosePii(\"Redirect start page: \" + redirectStartPage);\r\n                        // Clear temporary cache if the back button is clicked during the redirect flow.\r\n                        window.addEventListener(\"pageshow\", handleBackButton);\r\n                        return [4 /*yield*/, interactionHandler.initiateAuthRequest(navigateUrl, {\r\n                                navigationClient: this.navigationClient,\r\n                                redirectTimeout: this.config.system.redirectNavigationTimeout,\r\n                                redirectStartPage: redirectStartPage,\r\n                                onRedirectNavigate: request.onRedirectNavigate\r\n                            })];\r\n                    case 6: \r\n                    // Show the UI once the url has been created. Response will come back in the hash, which will be handled in the handleRedirectCallback function.\r\n                    return [2 /*return*/, _a.sent()];\r\n                    case 7:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof AuthError) {\r\n                            e_1.setCorrelationId(this.correlationId);\r\n                        }\r\n                        window.removeEventListener(\"pageshow\", handleBackButton);\r\n                        serverTelemetryManager.cacheFailedRequest(e_1);\r\n                        this.browserStorage.cleanRequestByState(validRequest.state);\r\n                        throw e_1;\r\n                    case 8: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Checks if navigateToLoginRequestUrl is set, and:\r\n     * - if true, performs logic to cache and navigate\r\n     * - if false, handles hash string and parses response\r\n     * @param hash\r\n     */\r\n    RedirectClient.prototype.handleRedirectPromise = function (hash) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var serverTelemetryManager, responseHash, state, serverParams, loginRequestUrl, loginRequestUrlNormalized, currentUrlNormalized, handleHashResult, navigationOptions, processHashOnRedirect, homepage, e_2;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.handleRedirectPromise);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 10, , 11]);\r\n                        if (!this.browserStorage.isInteractionInProgress(true)) {\r\n                            this.logger.info(\"handleRedirectPromise called but there is no interaction in progress, returning null.\");\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        responseHash = this.getRedirectResponseHash(hash || window.location.hash);\r\n                        if (!responseHash) {\r\n                            // Not a recognized server response hash or hash not associated with a redirect request\r\n                            this.logger.info(\"handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache.\");\r\n                            this.browserStorage.cleanRequestByInteractionType(InteractionType.Redirect);\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        state = void 0;\r\n                        try {\r\n                            serverParams = UrlString.getDeserializedHash(responseHash);\r\n                            state = this.validateAndExtractStateFromHash(serverParams, InteractionType.Redirect);\r\n                            this.logger.verbose(\"State extracted from hash\");\r\n                        }\r\n                        catch (e) {\r\n                            this.logger.info(\"handleRedirectPromise was unable to extract state due to: \" + e);\r\n                            this.browserStorage.cleanRequestByInteractionType(InteractionType.Redirect);\r\n                            return [2 /*return*/, null];\r\n                        }\r\n                        loginRequestUrl = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.ORIGIN_URI, true) || Constants.EMPTY_STRING;\r\n                        loginRequestUrlNormalized = UrlString.removeHashFromUrl(loginRequestUrl);\r\n                        currentUrlNormalized = UrlString.removeHashFromUrl(window.location.href);\r\n                        if (!(loginRequestUrlNormalized === currentUrlNormalized && this.config.auth.navigateToLoginRequestUrl)) return [3 /*break*/, 3];\r\n                        // We are on the page we need to navigate to - handle hash\r\n                        this.logger.verbose(\"Current page is loginRequestUrl, handling hash\");\r\n                        return [4 /*yield*/, this.handleHash(responseHash, state, serverTelemetryManager)];\r\n                    case 2:\r\n                        handleHashResult = _a.sent();\r\n                        if (loginRequestUrl.indexOf(\"#\") > -1) {\r\n                            // Replace current hash with non-msal hash, if present\r\n                            BrowserUtils.replaceHash(loginRequestUrl);\r\n                        }\r\n                        return [2 /*return*/, handleHashResult];\r\n                    case 3:\r\n                        if (!!this.config.auth.navigateToLoginRequestUrl) return [3 /*break*/, 4];\r\n                        this.logger.verbose(\"NavigateToLoginRequestUrl set to false, handling hash\");\r\n                        return [2 /*return*/, this.handleHash(responseHash, state, serverTelemetryManager)];\r\n                    case 4:\r\n                        if (!(!BrowserUtils.isInIframe() || this.config.system.allowRedirectInIframe)) return [3 /*break*/, 9];\r\n                        /*\r\n                         * Returned from authority using redirect - need to perform navigation before processing response\r\n                         * Cache the hash to be retrieved after the next redirect\r\n                         */\r\n                        this.browserStorage.setTemporaryCache(TemporaryCacheKeys.URL_HASH, responseHash, true);\r\n                        navigationOptions = {\r\n                            apiId: ApiId.handleRedirectPromise,\r\n                            timeout: this.config.system.redirectNavigationTimeout,\r\n                            noHistory: true\r\n                        };\r\n                        processHashOnRedirect = true;\r\n                        if (!(!loginRequestUrl || loginRequestUrl === \"null\")) return [3 /*break*/, 6];\r\n                        homepage = BrowserUtils.getHomepage();\r\n                        // Cache the homepage under ORIGIN_URI to ensure cached hash is processed on homepage\r\n                        this.browserStorage.setTemporaryCache(TemporaryCacheKeys.ORIGIN_URI, homepage, true);\r\n                        this.logger.warning(\"Unable to get valid login request url from cache, redirecting to home page\");\r\n                        return [4 /*yield*/, this.navigationClient.navigateInternal(homepage, navigationOptions)];\r\n                    case 5:\r\n                        processHashOnRedirect = _a.sent();\r\n                        return [3 /*break*/, 8];\r\n                    case 6:\r\n                        // Navigate to page that initiated the redirect request\r\n                        this.logger.verbose(\"Navigating to loginRequestUrl: \" + loginRequestUrl);\r\n                        return [4 /*yield*/, this.navigationClient.navigateInternal(loginRequestUrl, navigationOptions)];\r\n                    case 7:\r\n                        processHashOnRedirect = _a.sent();\r\n                        _a.label = 8;\r\n                    case 8:\r\n                        // If navigateInternal implementation returns false, handle the hash now\r\n                        if (!processHashOnRedirect) {\r\n                            return [2 /*return*/, this.handleHash(responseHash, state, serverTelemetryManager)];\r\n                        }\r\n                        _a.label = 9;\r\n                    case 9: return [2 /*return*/, null];\r\n                    case 10:\r\n                        e_2 = _a.sent();\r\n                        if (e_2 instanceof AuthError) {\r\n                            e_2.setCorrelationId(this.correlationId);\r\n                        }\r\n                        serverTelemetryManager.cacheFailedRequest(e_2);\r\n                        this.browserStorage.cleanRequestByInteractionType(InteractionType.Redirect);\r\n                        throw e_2;\r\n                    case 11: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Gets the response hash for a redirect request\r\n     * Returns null if interactionType in the state value is not \"redirect\" or the hash does not contain known properties\r\n     * @param hash\r\n     */\r\n    RedirectClient.prototype.getRedirectResponseHash = function (hash) {\r\n        this.logger.verbose(\"getRedirectResponseHash called\");\r\n        // Get current location hash from window or cache.\r\n        var isResponseHash = UrlString.hashContainsKnownProperties(hash);\r\n        if (isResponseHash) {\r\n            BrowserUtils.clearHash(window);\r\n            this.logger.verbose(\"Hash contains known properties, returning response hash\");\r\n            return hash;\r\n        }\r\n        var cachedHash = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.URL_HASH, true);\r\n        this.browserStorage.removeItem(this.browserStorage.generateCacheKey(TemporaryCacheKeys.URL_HASH));\r\n        this.logger.verbose(\"Hash does not contain known properties, returning cached hash\");\r\n        return cachedHash;\r\n    };\r\n    /**\r\n     * Checks if hash exists and handles in window.\r\n     * @param hash\r\n     * @param state\r\n     */\r\n    RedirectClient.prototype.handleHash = function (hash, state, serverTelemetryManager) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var cachedRequest, serverParams, nativeInteractionClient, userRequestState, currentAuthority, authClient, interactionHandler;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        cachedRequest = this.browserStorage.getCachedRequest(state, this.browserCrypto);\r\n                        this.logger.verbose(\"handleHash called, retrieved cached request\");\r\n                        serverParams = UrlString.getDeserializedHash(hash);\r\n                        if (serverParams.accountId) {\r\n                            this.logger.verbose(\"Account id found in hash, calling WAM for token\");\r\n                            if (!this.nativeMessageHandler) {\r\n                                throw BrowserAuthError.createNativeConnectionNotEstablishedError();\r\n                            }\r\n                            nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, cachedRequest.correlationId);\r\n                            userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state).userRequestState;\r\n                            return [2 /*return*/, nativeInteractionClient.acquireToken(__assign(__assign({}, cachedRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently\r\n                                 })).finally(function () {\r\n                                    _this.browserStorage.cleanRequestByState(state);\r\n                                })];\r\n                        }\r\n                        currentAuthority = this.browserStorage.getCachedAuthority(state);\r\n                        if (!currentAuthority) {\r\n                            throw BrowserAuthError.createNoCachedAuthorityError();\r\n                        }\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, cachedRequest.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, currentAuthority)];\r\n                    case 1:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        ThrottlingUtils.removeThrottle(this.browserStorage, this.config.auth.clientId, cachedRequest);\r\n                        interactionHandler = new RedirectHandler(authClient, this.browserStorage, cachedRequest, this.logger, this.browserCrypto, this.performanceClient);\r\n                        return [4 /*yield*/, interactionHandler.handleCodeResponseFromHash(hash, state, authClient.authority, this.networkClient)];\r\n                    case 2: return [2 /*return*/, _a.sent()];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Use to log out the current user, and redirect the user to the postLogoutRedirectUri.\r\n     * Default behaviour is to redirect the user to `window.location.href`.\r\n     * @param logoutRequest\r\n     */\r\n    RedirectClient.prototype.logout = function (logoutRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var validLogoutRequest, serverTelemetryManager, navigationOptions, authClient, logoutUri, navigate, e_3;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.verbose(\"logoutRedirect called\");\r\n                        validLogoutRequest = this.initializeLogoutRequest(logoutRequest);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.logout);\r\n                        _a.label = 1;\r\n                    case 1:\r\n                        _a.trys.push([1, 10, , 11]);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Redirect, logoutRequest);\r\n                        // Clear cache on logout\r\n                        return [4 /*yield*/, this.clearCacheOnLogout(validLogoutRequest.account)];\r\n                    case 2:\r\n                        // Clear cache on logout\r\n                        _a.sent();\r\n                        navigationOptions = {\r\n                            apiId: ApiId.logout,\r\n                            timeout: this.config.system.redirectNavigationTimeout,\r\n                            noHistory: false\r\n                        };\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, validLogoutRequest.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, logoutRequest && logoutRequest.authority)];\r\n                    case 3:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        logoutUri = authClient.getLogoutUri(validLogoutRequest);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Redirect, validLogoutRequest);\r\n                        if (!(logoutRequest && typeof logoutRequest.onRedirectNavigate === \"function\")) return [3 /*break*/, 7];\r\n                        navigate = logoutRequest.onRedirectNavigate(logoutUri);\r\n                        if (!(navigate !== false)) return [3 /*break*/, 5];\r\n                        this.logger.verbose(\"Logout onRedirectNavigate did not return false, navigating\");\r\n                        // Ensure interaction is in progress\r\n                        if (!this.browserStorage.getInteractionInProgress()) {\r\n                            this.browserStorage.setInteractionInProgress(true);\r\n                        }\r\n                        return [4 /*yield*/, this.navigationClient.navigateExternal(logoutUri, navigationOptions)];\r\n                    case 4:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                    case 5:\r\n                        // Ensure interaction is not in progress\r\n                        this.browserStorage.setInteractionInProgress(false);\r\n                        this.logger.verbose(\"Logout onRedirectNavigate returned false, stopping navigation\");\r\n                        _a.label = 6;\r\n                    case 6: return [3 /*break*/, 9];\r\n                    case 7:\r\n                        // Ensure interaction is in progress\r\n                        if (!this.browserStorage.getInteractionInProgress()) {\r\n                            this.browserStorage.setInteractionInProgress(true);\r\n                        }\r\n                        return [4 /*yield*/, this.navigationClient.navigateExternal(logoutUri, navigationOptions)];\r\n                    case 8:\r\n                        _a.sent();\r\n                        return [2 /*return*/];\r\n                    case 9: return [3 /*break*/, 11];\r\n                    case 10:\r\n                        e_3 = _a.sent();\r\n                        if (e_3 instanceof AuthError) {\r\n                            e_3.setCorrelationId(this.correlationId);\r\n                        }\r\n                        serverTelemetryManager.cacheFailedRequest(e_3);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Redirect, null, e_3);\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);\r\n                        throw e_3;\r\n                    case 11:\r\n                        this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Use to get the redirectStartPage either from request or use current window\r\n     * @param requestStartPage\r\n     */\r\n    RedirectClient.prototype.getRedirectStartPage = function (requestStartPage) {\r\n        var redirectStartPage = requestStartPage || window.location.href;\r\n        return UrlString.getAbsoluteUrl(redirectStartPage, BrowserUtils.getCurrentUri());\r\n    };\r\n    return RedirectClient;\r\n}(StandardInteractionClient));\n\nexport { RedirectClient };\n//# sourceMappingURL=RedirectClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';\nimport { PerformanceEvents, StringUtils, Constants, UrlString } from '@azure/msal-common';\nimport { InteractionHandler } from './InteractionHandler.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { DEFAULT_IFRAME_TIMEOUT_MS } from '../config/Configuration.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentHandler = /** @class */ (function (_super) {\r\n    __extends(SilentHandler, _super);\r\n    function SilentHandler(authCodeModule, storageImpl, authCodeRequest, logger, systemOptions, performanceClient) {\r\n        var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger, performanceClient) || this;\r\n        _this.navigateFrameWait = systemOptions.navigateFrameWait;\r\n        _this.pollIntervalMilliseconds = systemOptions.pollIntervalMilliseconds;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates a hidden iframe to given URL using user-requested scopes as an id.\r\n     * @param urlNavigate\r\n     * @param userRequestScopes\r\n     */\r\n    SilentHandler.prototype.initiateAuthRequest = function (requestUrl) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentHandlerInitiateAuthRequest, this.authCodeRequest.correlationId);\r\n                        if (StringUtils.isEmpty(requestUrl)) {\r\n                            // Throw error if request URL is empty.\r\n                            this.logger.info(\"Navigate url is empty\");\r\n                            throw BrowserAuthError.createEmptyNavigationUriError();\r\n                        }\r\n                        if (!this.navigateFrameWait) return [3 /*break*/, 2];\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.SilentHandlerLoadFrame, this.authCodeRequest.correlationId);\r\n                        return [4 /*yield*/, this.loadFrame(requestUrl)];\r\n                    case 1: return [2 /*return*/, _a.sent()];\r\n                    case 2: return [2 /*return*/, this.loadFrameSync(requestUrl)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Monitors an iframe content window until it loads a url with a known hash, or hits a specified timeout.\r\n     * @param iframe\r\n     * @param timeout\r\n     */\r\n    SilentHandler.prototype.monitorIframeForHash = function (iframe, timeout) {\r\n        var _this = this;\r\n        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentHandlerMonitorIframeForHash, this.authCodeRequest.correlationId);\r\n        return new Promise(function (resolve, reject) {\r\n            if (timeout < DEFAULT_IFRAME_TIMEOUT_MS) {\r\n                _this.logger.warning(\"system.loadFrameTimeout or system.iframeHashTimeout set to lower (\" + timeout + \"ms) than the default (\" + DEFAULT_IFRAME_TIMEOUT_MS + \"ms). This may result in timeouts.\");\r\n            }\r\n            /*\r\n             * Polling for iframes can be purely timing based,\r\n             * since we don't need to account for interaction.\r\n             */\r\n            var nowMark = window.performance.now();\r\n            var timeoutMark = nowMark + timeout;\r\n            var intervalId = setInterval(function () {\r\n                if (window.performance.now() > timeoutMark) {\r\n                    _this.removeHiddenIframe(iframe);\r\n                    clearInterval(intervalId);\r\n                    reject(BrowserAuthError.createMonitorIframeTimeoutError());\r\n                    return;\r\n                }\r\n                var href = Constants.EMPTY_STRING;\r\n                var contentWindow = iframe.contentWindow;\r\n                try {\r\n                    /*\r\n                     * Will throw if cross origin,\r\n                     * which should be caught and ignored\r\n                     * since we need the interval to keep running while on STS UI.\r\n                     */\r\n                    href = contentWindow ? contentWindow.location.href : Constants.EMPTY_STRING;\r\n                }\r\n                catch (e) { }\r\n                if (StringUtils.isEmpty(href)) {\r\n                    return;\r\n                }\r\n                var contentHash = contentWindow ? contentWindow.location.hash : Constants.EMPTY_STRING;\r\n                if (UrlString.hashContainsKnownProperties(contentHash)) {\r\n                    // Success case\r\n                    _this.removeHiddenIframe(iframe);\r\n                    clearInterval(intervalId);\r\n                    resolve(contentHash);\r\n                    return;\r\n                }\r\n            }, _this.pollIntervalMilliseconds);\r\n        });\r\n    };\r\n    /**\r\n     * @hidden\r\n     * Loads iframe with authorization endpoint URL\r\n     * @ignore\r\n     */\r\n    SilentHandler.prototype.loadFrame = function (urlNavigate) {\r\n        var _this = this;\r\n        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentHandlerLoadFrame, this.authCodeRequest.correlationId);\r\n        /*\r\n         * This trick overcomes iframe navigation in IE\r\n         * IE does not load the page consistently in iframe\r\n         */\r\n        return new Promise(function (resolve, reject) {\r\n            var frameHandle = _this.createHiddenIframe();\r\n            setTimeout(function () {\r\n                if (!frameHandle) {\r\n                    reject(\"Unable to load iframe\");\r\n                    return;\r\n                }\r\n                frameHandle.src = urlNavigate;\r\n                resolve(frameHandle);\r\n            }, _this.navigateFrameWait);\r\n        });\r\n    };\r\n    /**\r\n     * @hidden\r\n     * Loads the iframe synchronously when the navigateTimeFrame is set to `0`\r\n     * @param urlNavigate\r\n     * @param frameName\r\n     * @param logger\r\n     */\r\n    SilentHandler.prototype.loadFrameSync = function (urlNavigate) {\r\n        var frameHandle = this.createHiddenIframe();\r\n        frameHandle.src = urlNavigate;\r\n        return frameHandle;\r\n    };\r\n    /**\r\n     * @hidden\r\n     * Creates a new hidden iframe or gets an existing one for silent token renewal.\r\n     * @ignore\r\n     */\r\n    SilentHandler.prototype.createHiddenIframe = function () {\r\n        var authFrame = document.createElement(\"iframe\");\r\n        authFrame.className = \"msalSilentIframe\";\r\n        authFrame.style.visibility = \"hidden\";\r\n        authFrame.style.position = \"absolute\";\r\n        authFrame.style.width = authFrame.style.height = \"0\";\r\n        authFrame.style.border = \"0\";\r\n        authFrame.setAttribute(\"sandbox\", \"allow-scripts allow-same-origin allow-forms\");\r\n        document.getElementsByTagName(\"body\")[0].appendChild(authFrame);\r\n        return authFrame;\r\n    };\r\n    /**\r\n     * @hidden\r\n     * Removes a hidden iframe from the page.\r\n     * @ignore\r\n     */\r\n    SilentHandler.prototype.removeHiddenIframe = function (iframe) {\r\n        if (document.body === iframe.parentNode) {\r\n            document.body.removeChild(iframe);\r\n        }\r\n    };\r\n    return SilentHandler;\r\n}(InteractionHandler));\n\nexport { SilentHandler };\n//# sourceMappingURL=SilentHandler.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { AuthError, PerformanceEvents, Constants, StringUtils, PromptValue, UrlString, ProtocolUtils } from '@azure/msal-common';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { InteractionType } from '../utils/BrowserConstants.js';\nimport { SilentHandler } from '../interaction_handler/SilentHandler.js';\nimport { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.js';\nimport { NativeInteractionClient } from './NativeInteractionClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentIframeClient = /** @class */ (function (_super) {\r\n    __extends(SilentIframeClient, _super);\r\n    function SilentIframeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {\r\n        var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;\r\n        _this.apiId = apiId;\r\n        _this.nativeStorage = nativeStorageImpl;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Acquires a token silently by opening a hidden iframe to the /authorize endpoint with prompt=none or prompt=no_session\r\n     * @param request\r\n     */\r\n    SilentIframeClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var acquireTokenMeasurement, silentRequest, serverTelemetryManager, authClient, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentIframeClientAcquireToken, request.correlationId);\r\n                        this.logger.verbose(\"acquireTokenByIframe called\");\r\n                        acquireTokenMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SilentIframeClientAcquireToken, request.correlationId);\r\n                        // Check that we have some SSO data\r\n                        if (StringUtils.isEmpty(request.loginHint) && StringUtils.isEmpty(request.sid) && (!request.account || StringUtils.isEmpty(request.account.username))) {\r\n                            this.logger.warning(\"No user hint provided. The authorization server may need more information to complete this request.\");\r\n                        }\r\n                        // Check that prompt is set to none or no_session, throw error if it is set to anything else.\r\n                        if (request.prompt && (request.prompt !== PromptValue.NONE) && (request.prompt !== PromptValue.NO_SESSION)) {\r\n                            acquireTokenMeasurement.endMeasurement({\r\n                                success: false\r\n                            });\r\n                            throw BrowserAuthError.createSilentPromptValueError(request.prompt);\r\n                        }\r\n                        // Create silent request\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationRequest(__assign(__assign({}, request), { prompt: request.prompt || PromptValue.NONE }), InteractionType.Silent)];\r\n                    case 1:\r\n                        silentRequest = _a.sent();\r\n                        this.browserStorage.updateCacheEntries(silentRequest.state, silentRequest.nonce, silentRequest.authority, silentRequest.loginHint || Constants.EMPTY_STRING, silentRequest.account || null);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(this.apiId);\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 5, , 6]);\r\n                        // Initialize the client\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, request.correlationId);\r\n                        return [4 /*yield*/, this.createAuthCodeClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)];\r\n                    case 3:\r\n                        authClient = _a.sent();\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.SilentIframeClientTokenHelper, request.correlationId);\r\n                        return [4 /*yield*/, this.silentTokenHelper(authClient, silentRequest).then(function (result) {\r\n                                acquireTokenMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                    fromCache: false,\r\n                                    requestId: result.requestId\r\n                                });\r\n                                return result;\r\n                            })];\r\n                    case 4: return [2 /*return*/, _a.sent()];\r\n                    case 5:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof AuthError) {\r\n                            e_1.setCorrelationId(this.correlationId);\r\n                        }\r\n                        serverTelemetryManager.cacheFailedRequest(e_1);\r\n                        this.browserStorage.cleanRequestByState(silentRequest.state);\r\n                        acquireTokenMeasurement.endMeasurement({\r\n                            errorCode: e_1 instanceof AuthError && e_1.errorCode || undefined,\r\n                            subErrorCode: e_1 instanceof AuthError && e_1.subError || undefined,\r\n                            success: false\r\n                        });\r\n                        throw e_1;\r\n                    case 6: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Currently Unsupported\r\n     */\r\n    SilentIframeClient.prototype.logout = function () {\r\n        // Synchronous so we must reject\r\n        return Promise.reject(BrowserAuthError.createSilentLogoutUnsupportedError());\r\n    };\r\n    /**\r\n     * Helper which acquires an authorization code silently using a hidden iframe from given url\r\n     * using the scopes requested as part of the id, and exchanges the code for a set of OAuth tokens.\r\n     * @param navigateUrl\r\n     * @param userRequestScopes\r\n     */\r\n    SilentIframeClient.prototype.silentTokenHelper = function (authClient, silentRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var authCodeRequest, navigateUrl, silentHandler, msalFrame, hash, serverParams, state, nativeInteractionClient, userRequestState;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentIframeClientTokenHelper, silentRequest.correlationId);\r\n                        // Create auth code request and generate PKCE params\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, silentRequest.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationCodeRequest(silentRequest)];\r\n                    case 1:\r\n                        authCodeRequest = _a.sent();\r\n                        // Create authorize request url\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.GetAuthCodeUrl, silentRequest.correlationId);\r\n                        return [4 /*yield*/, authClient.getAuthCodeUrl(__assign(__assign({}, silentRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, silentRequest.authenticationScheme) }))];\r\n                    case 2:\r\n                        navigateUrl = _a.sent();\r\n                        silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system, this.performanceClient);\r\n                        // Get the frame handle for the silent request\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.SilentHandlerInitiateAuthRequest, silentRequest.correlationId);\r\n                        return [4 /*yield*/, silentHandler.initiateAuthRequest(navigateUrl)];\r\n                    case 3:\r\n                        msalFrame = _a.sent();\r\n                        // Monitor the window for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.SilentHandlerMonitorIframeForHash, silentRequest.correlationId);\r\n                        return [4 /*yield*/, silentHandler.monitorIframeForHash(msalFrame, this.config.system.iframeHashTimeout)];\r\n                    case 4:\r\n                        hash = _a.sent();\r\n                        serverParams = UrlString.getDeserializedHash(hash);\r\n                        state = this.validateAndExtractStateFromHash(serverParams, InteractionType.Silent, authCodeRequest.correlationId);\r\n                        if (serverParams.accountId) {\r\n                            this.logger.verbose(\"Account id found in hash, calling WAM for token\");\r\n                            if (!this.nativeMessageHandler) {\r\n                                throw BrowserAuthError.createNativeConnectionNotEstablishedError();\r\n                            }\r\n                            nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.browserStorage, this.correlationId);\r\n                            userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state).userRequestState;\r\n                            return [2 /*return*/, nativeInteractionClient.acquireToken(__assign(__assign({}, silentRequest), { state: userRequestState, prompt: silentRequest.prompt || PromptValue.NONE })).finally(function () {\r\n                                    _this.browserStorage.cleanRequestByState(state);\r\n                                })];\r\n                        }\r\n                        // Handle response from hash string\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.HandleCodeResponseFromHash, silentRequest.correlationId);\r\n                        return [2 /*return*/, silentHandler.handleCodeResponseFromHash(hash, state, authClient.authority, this.networkClient)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return SilentIframeClient;\r\n}(StandardInteractionClient));\n\nexport { SilentIframeClient };\n//# sourceMappingURL=SilentIframeClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { PerformanceEvents, AuthError, RefreshTokenClient } from '@azure/msal-common';\nimport { ApiId } from '../utils/BrowserConstants.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentRefreshClient = /** @class */ (function (_super) {\r\n    __extends(SilentRefreshClient, _super);\r\n    function SilentRefreshClient() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Exchanges the refresh token for new tokens\r\n     * @param request\r\n     */\r\n    SilentRefreshClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var silentRequest, _a, acquireTokenMeasurement, serverTelemetryManager, refreshTokenClient;\r\n            var _this = this;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentRefreshClientAcquireToken, request.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.InitializeBaseRequest, request.correlationId);\r\n                        _a = [__assign({}, request)];\r\n                        return [4 /*yield*/, this.initializeBaseRequest(request, request.account)];\r\n                    case 1:\r\n                        silentRequest = __assign.apply(void 0, _a.concat([_b.sent()]));\r\n                        acquireTokenMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SilentRefreshClientAcquireToken, silentRequest.correlationId);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenSilent_silentFlow);\r\n                        return [4 /*yield*/, this.createRefreshTokenClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)];\r\n                    case 2:\r\n                        refreshTokenClient = _b.sent();\r\n                        this.logger.verbose(\"Refresh token client created\");\r\n                        // Send request to renew token. Auth module will throw errors if token cannot be renewed.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);\r\n                        return [2 /*return*/, refreshTokenClient.acquireTokenByRefreshToken(silentRequest)\r\n                                .then(function (result) {\r\n                                acquireTokenMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                    fromCache: result.fromCache,\r\n                                    requestId: result.requestId\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (e) {\r\n                                if (e instanceof AuthError) {\r\n                                    e.setCorrelationId(_this.correlationId);\r\n                                }\r\n                                serverTelemetryManager.cacheFailedRequest(e);\r\n                                acquireTokenMeasurement.endMeasurement({\r\n                                    errorCode: e.errorCode,\r\n                                    subErrorCode: e.subError,\r\n                                    success: false\r\n                                });\r\n                                throw e;\r\n                            })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Currently Unsupported\r\n     */\r\n    SilentRefreshClient.prototype.logout = function () {\r\n        // Synchronous so we must reject\r\n        return Promise.reject(BrowserAuthError.createSilentLogoutUnsupportedError());\r\n    };\r\n    /**\r\n     * Creates a Refresh Client with the given authority, or the default authority.\r\n     * @param serverTelemetryManager\r\n     * @param authorityUrl\r\n     */\r\n    SilentRefreshClient.prototype.createRefreshTokenClient = function (serverTelemetryManager, authorityUrl, azureCloudOptions) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var clientConfig;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        // Create auth module.\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientGetClientConfiguration, this.correlationId);\r\n                        return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, authorityUrl, azureCloudOptions)];\r\n                    case 1:\r\n                        clientConfig = _a.sent();\r\n                        return [2 /*return*/, new RefreshTokenClient(clientConfig, this.performanceClient)];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    return SilentRefreshClient;\r\n}(StandardInteractionClient));\n\nexport { SilentRefreshClient };\n//# sourceMappingURL=SilentRefreshClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { AuthToken, AccountEntity, CacheRecord, Authority, IdTokenEntity, ScopeSet, AccessTokenEntity, RefreshTokenEntity, Constants } from '@azure/msal-common';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Token cache manager\r\n */\r\nvar TokenCache = /** @class */ (function () {\r\n    function TokenCache(configuration, storage, logger, cryptoObj) {\r\n        this.isBrowserEnvironment = typeof window !== \"undefined\";\r\n        this.config = configuration;\r\n        this.storage = storage;\r\n        this.logger = logger;\r\n        this.cryptoObj = cryptoObj;\r\n    }\r\n    // Move getAllAccounts here and cache utility APIs\r\n    /**\r\n     * API to load tokens to msal-browser cache.\r\n     * @param request\r\n     * @param response\r\n     * @param options\r\n     * @returns `AuthenticationResult` for the response that was loaded.\r\n     */\r\n    TokenCache.prototype.loadExternalTokens = function (request, response, options) {\r\n        this.logger.info(\"TokenCache - loadExternalTokens called\");\r\n        if (!response.id_token) {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"Please ensure server response includes id token.\");\r\n        }\r\n        var idToken = new AuthToken(response.id_token, this.cryptoObj);\r\n        var cacheRecord;\r\n        var authority;\r\n        var cacheRecordAccount;\r\n        if (request.account) {\r\n            cacheRecordAccount = AccountEntity.createFromAccountInfo(request.account);\r\n            cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment));\r\n        }\r\n        else if (request.authority) {\r\n            var authorityUrl = Authority.generateAuthority(request.authority, request.azureCloudOptions);\r\n            var authorityOptions = {\r\n                protocolMode: this.config.auth.protocolMode,\r\n                knownAuthorities: this.config.auth.knownAuthorities,\r\n                cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,\r\n                authorityMetadata: this.config.auth.authorityMetadata,\r\n                skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,\r\n            };\r\n            authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);\r\n            // \"clientInfo\" from options takes precedence over \"clientInfo\" in response\r\n            if (options.clientInfo) {\r\n                this.logger.trace(\"TokenCache - homeAccountId from options\");\r\n                cacheRecordAccount = this.loadAccount(idToken, authority, options.clientInfo);\r\n                cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort));\r\n            }\r\n            else if (response.client_info) {\r\n                this.logger.trace(\"TokenCache - homeAccountId from response\");\r\n                cacheRecordAccount = this.loadAccount(idToken, authority, response.client_info);\r\n                cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort));\r\n            }\r\n            else {\r\n                throw BrowserAuthError.createUnableToLoadTokenError(\"Please provide clientInfo in the response or options.\");\r\n            }\r\n        }\r\n        else {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"Please provide a request with an account or a request with authority.\");\r\n        }\r\n        return this.generateAuthenticationResult(request, idToken, cacheRecord, cacheRecordAccount, authority);\r\n    };\r\n    /**\r\n     * Helper function to load account to msal-browser cache\r\n     * @param idToken\r\n     * @param environment\r\n     * @param clientInfo\r\n     * @param authorityType\r\n     * @param requestHomeAccountId\r\n     * @returns `AccountEntity`\r\n     */\r\n    TokenCache.prototype.loadAccount = function (idToken, authority, clientInfo, requestHomeAccountId) {\r\n        var homeAccountId;\r\n        if (requestHomeAccountId) {\r\n            homeAccountId = requestHomeAccountId;\r\n        }\r\n        else if (authority.authorityType !== undefined && clientInfo) {\r\n            homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authority.authorityType, this.logger, this.cryptoObj, idToken.claims);\r\n        }\r\n        if (!homeAccountId) {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"Unexpected missing homeAccountId\");\r\n        }\r\n        var accountEntity = AccountEntity.createAccount({ homeAccountId: homeAccountId, idTokenClaims: idToken.claims, clientInfo: clientInfo, environment: authority.hostnameAndPort }, authority);\r\n        if (this.isBrowserEnvironment) {\r\n            this.logger.verbose(\"TokenCache - loading account\");\r\n            this.storage.setAccount(accountEntity);\r\n            return accountEntity;\r\n        }\r\n        else {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"loadExternalTokens is designed to work in browser environments only.\");\r\n        }\r\n    };\r\n    /**\r\n     * Helper function to load id tokens to msal-browser cache\r\n     * @param idToken\r\n     * @param homeAccountId\r\n     * @param environment\r\n     * @param tenantId\r\n     * @returns `IdTokenEntity`\r\n     */\r\n    TokenCache.prototype.loadIdToken = function (idToken, homeAccountId, environment, tenantId) {\r\n        var idTokenEntity = IdTokenEntity.createIdTokenEntity(homeAccountId, environment, idToken.rawToken, this.config.auth.clientId, tenantId);\r\n        if (this.isBrowserEnvironment) {\r\n            this.logger.verbose(\"TokenCache - loading id token\");\r\n            this.storage.setIdTokenCredential(idTokenEntity);\r\n            return idTokenEntity;\r\n        }\r\n        else {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"loadExternalTokens is designed to work in browser environments only.\");\r\n        }\r\n    };\r\n    /**\r\n     * Helper function to load access tokens to msal-browser cache\r\n     * @param request\r\n     * @param response\r\n     * @param homeAccountId\r\n     * @param environment\r\n     * @param tenantId\r\n     * @returns `AccessTokenEntity`\r\n     */\r\n    TokenCache.prototype.loadAccessToken = function (request, response, homeAccountId, environment, tenantId, options) {\r\n        if (!response.access_token) {\r\n            this.logger.verbose(\"TokenCache - No access token provided for caching\");\r\n            return null;\r\n        }\r\n        if (!response.expires_in) {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"Please ensure server response includes expires_in value.\");\r\n        }\r\n        if (!options.extendedExpiresOn) {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"Please provide an extendedExpiresOn value in the options.\");\r\n        }\r\n        var scopes = new ScopeSet(request.scopes).printScopes();\r\n        var expiresOn = options.expiresOn || (response.expires_in + new Date().getTime() / 1000);\r\n        var extendedExpiresOn = options.extendedExpiresOn;\r\n        var accessTokenEntity = AccessTokenEntity.createAccessTokenEntity(homeAccountId, environment, response.access_token, this.config.auth.clientId, tenantId, scopes, expiresOn, extendedExpiresOn, this.cryptoObj);\r\n        if (this.isBrowserEnvironment) {\r\n            this.logger.verbose(\"TokenCache - loading access token\");\r\n            this.storage.setAccessTokenCredential(accessTokenEntity);\r\n            return accessTokenEntity;\r\n        }\r\n        else {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"loadExternalTokens is designed to work in browser environments only.\");\r\n        }\r\n    };\r\n    /**\r\n     * Helper function to load refresh tokens to msal-browser cache\r\n     * @param request\r\n     * @param response\r\n     * @param homeAccountId\r\n     * @param environment\r\n     * @returns `RefreshTokenEntity`\r\n     */\r\n    TokenCache.prototype.loadRefreshToken = function (request, response, homeAccountId, environment) {\r\n        if (!response.refresh_token) {\r\n            this.logger.verbose(\"TokenCache - No refresh token provided for caching\");\r\n            return null;\r\n        }\r\n        var refreshTokenEntity = RefreshTokenEntity.createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, this.config.auth.clientId);\r\n        if (this.isBrowserEnvironment) {\r\n            this.logger.verbose(\"TokenCache - loading refresh token\");\r\n            this.storage.setRefreshTokenCredential(refreshTokenEntity);\r\n            return refreshTokenEntity;\r\n        }\r\n        else {\r\n            throw BrowserAuthError.createUnableToLoadTokenError(\"loadExternalTokens is designed to work in browser environments only.\");\r\n        }\r\n    };\r\n    /**\r\n     * Helper function to generate an `AuthenticationResult` for the result.\r\n     * @param request\r\n     * @param idTokenObj\r\n     * @param cacheRecord\r\n     * @param accountEntity\r\n     * @param authority\r\n     * @returns `AuthenticationResult`\r\n     */\r\n    TokenCache.prototype.generateAuthenticationResult = function (request, idTokenObj, cacheRecord, accountEntity, authority) {\r\n        var _a;\r\n        var accessToken = Constants.EMPTY_STRING;\r\n        var responseScopes = [];\r\n        var expiresOn = null;\r\n        var extExpiresOn;\r\n        if (cacheRecord.accessToken) {\r\n            accessToken = cacheRecord.accessToken.secret;\r\n            responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target).asArray();\r\n            expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000);\r\n            extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000);\r\n        }\r\n        var uid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.oid) || (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.sub) || Constants.EMPTY_STRING;\r\n        var tid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.tid) || Constants.EMPTY_STRING;\r\n        return {\r\n            authority: authority ? authority.canonicalAuthority : Constants.EMPTY_STRING,\r\n            uniqueId: uid,\r\n            tenantId: tid,\r\n            scopes: responseScopes,\r\n            account: accountEntity ? accountEntity.getAccountInfo() : null,\r\n            idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,\r\n            idTokenClaims: idTokenObj ? idTokenObj.claims : {},\r\n            accessToken: accessToken,\r\n            fromCache: true,\r\n            expiresOn: expiresOn,\r\n            correlationId: request.correlationId || Constants.EMPTY_STRING,\r\n            requestId: Constants.EMPTY_STRING,\r\n            extExpiresOn: extExpiresOn,\r\n            familyId: Constants.EMPTY_STRING,\r\n            tokenType: ((_a = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.accessToken) === null || _a === void 0 ? void 0 : _a.tokenType) || Constants.EMPTY_STRING,\r\n            state: Constants.EMPTY_STRING,\r\n            cloudGraphHostName: accountEntity.cloudGraphHostName || Constants.EMPTY_STRING,\r\n            msGraphHost: accountEntity.msGraphHost || Constants.EMPTY_STRING,\r\n            code: undefined,\r\n            fromNativeBroker: false\r\n        };\r\n    };\r\n    return TokenCache;\r\n}());\n\nexport { TokenCache };\n//# sourceMappingURL=TokenCache.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { AuthorizationCodeClient } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar HybridSpaAuthorizationCodeClient = /** @class */ (function (_super) {\r\n    __extends(HybridSpaAuthorizationCodeClient, _super);\r\n    function HybridSpaAuthorizationCodeClient(config) {\r\n        var _this = _super.call(this, config) || this;\r\n        _this.includeRedirectUri = false;\r\n        return _this;\r\n    }\r\n    return HybridSpaAuthorizationCodeClient;\r\n}(AuthorizationCodeClient));\n\nexport { HybridSpaAuthorizationCodeClient };\n//# sourceMappingURL=HybridSpaAuthorizationCodeClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { AuthError, PerformanceEvents, Constants } from '@azure/msal-common';\nimport { StandardInteractionClient } from './StandardInteractionClient.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { InteractionType } from '../utils/BrowserConstants.js';\nimport { SilentHandler } from '../interaction_handler/SilentHandler.js';\nimport { HybridSpaAuthorizationCodeClient } from './HybridSpaAuthorizationCodeClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar SilentAuthCodeClient = /** @class */ (function (_super) {\r\n    __extends(SilentAuthCodeClient, _super);\r\n    function SilentAuthCodeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeMessageHandler, correlationId) {\r\n        var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;\r\n        _this.apiId = apiId;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Acquires a token silently by redeeming an authorization code against the /token endpoint\r\n     * @param request\r\n     */\r\n    SilentAuthCodeClient.prototype.acquireToken = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var silentRequest, serverTelemetryManager, authCodeRequest, clientConfig, authClient, silentHandler, e_1;\r\n            return __generator(this, function (_a) {\r\n                switch (_a.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"SilentAuthCodeClient.acquireToken called\");\r\n                        // Auth code payload is required\r\n                        if (!request.code) {\r\n                            throw BrowserAuthError.createAuthCodeRequiredError();\r\n                        }\r\n                        // Create silent request\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, request.correlationId);\r\n                        return [4 /*yield*/, this.initializeAuthorizationRequest(request, InteractionType.Silent)];\r\n                    case 1:\r\n                        silentRequest = _a.sent();\r\n                        this.browserStorage.updateCacheEntries(silentRequest.state, silentRequest.nonce, silentRequest.authority, silentRequest.loginHint || Constants.EMPTY_STRING, silentRequest.account || null);\r\n                        serverTelemetryManager = this.initializeServerTelemetryManager(this.apiId);\r\n                        _a.label = 2;\r\n                    case 2:\r\n                        _a.trys.push([2, 4, , 5]);\r\n                        authCodeRequest = __assign(__assign({}, silentRequest), { code: request.code });\r\n                        // Initialize the client\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.StandardInteractionClientGetClientConfiguration, request.correlationId);\r\n                        return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, silentRequest.authority)];\r\n                    case 3:\r\n                        clientConfig = _a.sent();\r\n                        authClient = new HybridSpaAuthorizationCodeClient(clientConfig);\r\n                        this.logger.verbose(\"Auth code client created\");\r\n                        silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system, this.performanceClient);\r\n                        // Handle auth code parameters from request\r\n                        return [2 /*return*/, silentHandler.handleCodeResponseFromServer({\r\n                                code: request.code,\r\n                                msgraph_host: request.msGraphHost,\r\n                                cloud_graph_host_name: request.cloudGraphHostName,\r\n                                cloud_instance_host_name: request.cloudInstanceHostName\r\n                            }, silentRequest.state, authClient.authority, this.networkClient, false)];\r\n                    case 4:\r\n                        e_1 = _a.sent();\r\n                        if (e_1 instanceof AuthError) {\r\n                            e_1.setCorrelationId(this.correlationId);\r\n                        }\r\n                        serverTelemetryManager.cacheFailedRequest(e_1);\r\n                        this.browserStorage.cleanRequestByState(silentRequest.state);\r\n                        throw e_1;\r\n                    case 5: return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Currently Unsupported\r\n     */\r\n    SilentAuthCodeClient.prototype.logout = function () {\r\n        // Synchronous so we must reject\r\n        return Promise.reject(BrowserAuthError.createSilentLogoutUnsupportedError());\r\n    };\r\n    return SilentAuthCodeClient;\r\n}(StandardInteractionClient));\n\nexport { SilentAuthCodeClient };\n//# sourceMappingURL=SilentAuthCodeClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar BrowserPerformanceMeasurement = /** @class */ (function () {\r\n    function BrowserPerformanceMeasurement(name, correlationId) {\r\n        this.correlationId = correlationId;\r\n        this.measureName = BrowserPerformanceMeasurement.makeMeasureName(name, correlationId);\r\n        this.startMark = BrowserPerformanceMeasurement.makeStartMark(name, correlationId);\r\n        this.endMark = BrowserPerformanceMeasurement.makeEndMark(name, correlationId);\r\n    }\r\n    BrowserPerformanceMeasurement.makeMeasureName = function (name, correlationId) {\r\n        return \"msal.measure.\" + name + \".\" + correlationId;\r\n    };\r\n    BrowserPerformanceMeasurement.makeStartMark = function (name, correlationId) {\r\n        return \"msal.start.\" + name + \".\" + correlationId;\r\n    };\r\n    BrowserPerformanceMeasurement.makeEndMark = function (name, correlationId) {\r\n        return \"msal.end.\" + name + \".\" + correlationId;\r\n    };\r\n    BrowserPerformanceMeasurement.supportsBrowserPerformance = function () {\r\n        return typeof window !== \"undefined\" &&\r\n            typeof window.performance !== \"undefined\" &&\r\n            typeof window.performance.mark === \"function\" &&\r\n            typeof window.performance.measure === \"function\" &&\r\n            typeof window.performance.clearMarks === \"function\" &&\r\n            typeof window.performance.clearMeasures === \"function\" &&\r\n            typeof window.performance.getEntriesByName === \"function\";\r\n    };\r\n    /**\r\n     * Flush browser marks and measurements.\r\n     * @param {string} correlationId\r\n     * @param {SubMeasurement} measurements\r\n     */\r\n    BrowserPerformanceMeasurement.flushMeasurements = function (correlationId, measurements) {\r\n        if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) {\r\n            try {\r\n                measurements.forEach(function (measurement) {\r\n                    var measureName = BrowserPerformanceMeasurement.makeMeasureName(measurement.name, correlationId);\r\n                    var entriesForMeasurement = window.performance.getEntriesByName(measureName, \"measure\");\r\n                    if (entriesForMeasurement.length > 0) {\r\n                        window.performance.clearMeasures(measureName);\r\n                        window.performance.clearMarks(BrowserPerformanceMeasurement.makeStartMark(measureName, correlationId));\r\n                        window.performance.clearMarks(BrowserPerformanceMeasurement.makeEndMark(measureName, correlationId));\r\n                    }\r\n                });\r\n            }\r\n            catch (e) {\r\n                // Silently catch and return null\r\n            }\r\n        }\r\n    };\r\n    BrowserPerformanceMeasurement.prototype.startMeasurement = function () {\r\n        if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) {\r\n            try {\r\n                window.performance.mark(this.startMark);\r\n            }\r\n            catch (e) {\r\n                // Silently catch\r\n            }\r\n        }\r\n    };\r\n    BrowserPerformanceMeasurement.prototype.endMeasurement = function () {\r\n        if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) {\r\n            try {\r\n                window.performance.mark(this.endMark);\r\n                window.performance.measure(this.measureName, this.startMark, this.endMark);\r\n            }\r\n            catch (e) {\r\n                // Silently catch\r\n            }\r\n        }\r\n    };\r\n    BrowserPerformanceMeasurement.prototype.flushMeasurement = function () {\r\n        if (BrowserPerformanceMeasurement.supportsBrowserPerformance()) {\r\n            try {\r\n                var entriesForMeasurement = window.performance.getEntriesByName(this.measureName, \"measure\");\r\n                if (entriesForMeasurement.length > 0) {\r\n                    var durationMs = entriesForMeasurement[0].duration;\r\n                    window.performance.clearMeasures(this.measureName);\r\n                    window.performance.clearMarks(this.startMark);\r\n                    window.performance.clearMarks(this.endMark);\r\n                    return durationMs;\r\n                }\r\n            }\r\n            catch (e) {\r\n                // Silently catch and return null\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    return BrowserPerformanceMeasurement;\r\n}());\n\nexport { BrowserPerformanceMeasurement };\n//# sourceMappingURL=BrowserPerformanceMeasurement.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __assign } from '../_virtual/_tslib.js';\nimport { PerformanceClient } from '@azure/msal-common';\nimport { BrowserCrypto } from '../crypto/BrowserCrypto.js';\nimport { GuidGenerator } from '../crypto/GuidGenerator.js';\nimport { BrowserPerformanceMeasurement } from './BrowserPerformanceMeasurement.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar BrowserPerformanceClient = /** @class */ (function (_super) {\r\n    __extends(BrowserPerformanceClient, _super);\r\n    function BrowserPerformanceClient(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry, cryptoOptions) {\r\n        var _this = _super.call(this, clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) || this;\r\n        _this.browserCrypto = new BrowserCrypto(_this.logger, cryptoOptions);\r\n        _this.guidGenerator = new GuidGenerator(_this.browserCrypto);\r\n        return _this;\r\n    }\r\n    BrowserPerformanceClient.prototype.startPerformanceMeasuremeant = function (measureName, correlationId) {\r\n        return new BrowserPerformanceMeasurement(measureName, correlationId);\r\n    };\r\n    BrowserPerformanceClient.prototype.generateId = function () {\r\n        return this.guidGenerator.generateGuid();\r\n    };\r\n    BrowserPerformanceClient.prototype.getPageVisibility = function () {\r\n        var _a;\r\n        return ((_a = document.visibilityState) === null || _a === void 0 ? void 0 : _a.toString()) || null;\r\n    };\r\n    BrowserPerformanceClient.prototype.deleteIncompleteSubMeasurements = function (inProgressEvent) {\r\n        var rootEvent = this.eventsByCorrelationId.get(inProgressEvent.event.correlationId);\r\n        var isRootEvent = rootEvent && rootEvent.eventId === inProgressEvent.event.eventId;\r\n        var incompleteMeasurements = [];\r\n        if (isRootEvent && (rootEvent === null || rootEvent === void 0 ? void 0 : rootEvent.incompleteSubMeasurements)) {\r\n            rootEvent.incompleteSubMeasurements.forEach(function (subMeasurement) {\r\n                incompleteMeasurements.push(__assign({}, subMeasurement));\r\n            });\r\n        }\r\n        // Clean up remaining marks for incomplete sub-measurements\r\n        if (incompleteMeasurements.length > 0) {\r\n            BrowserPerformanceMeasurement.flushMeasurements(inProgressEvent.event.correlationId, incompleteMeasurements);\r\n        }\r\n    };\r\n    BrowserPerformanceClient.prototype.supportsBrowserPerformanceNow = function () {\r\n        return typeof window !== \"undefined\" &&\r\n            typeof window.performance !== \"undefined\" &&\r\n            typeof window.performance.now === \"function\";\r\n    };\r\n    /**\r\n     * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.\r\n     * Also captures browser page visibilityState.\r\n     *\r\n     * @param {PerformanceEvents} measureName\r\n     * @param {?string} [correlationId]\r\n     * @returns {((event?: Partial<PerformanceEvent>) => PerformanceEvent| null)}\r\n     */\r\n    BrowserPerformanceClient.prototype.startMeasurement = function (measureName, correlationId) {\r\n        var _this = this;\r\n        // Capture page visibilityState and then invoke start/end measurement\r\n        var startPageVisibility = this.getPageVisibility();\r\n        var inProgressEvent = _super.prototype.startMeasurement.call(this, measureName, correlationId);\r\n        return __assign(__assign({}, inProgressEvent), { endMeasurement: function (event) {\r\n                var res = inProgressEvent.endMeasurement(__assign({ startPageVisibility: startPageVisibility, endPageVisibility: _this.getPageVisibility() }, event));\r\n                _this.deleteIncompleteSubMeasurements(inProgressEvent);\r\n                return res;\r\n            }, discardMeasurement: function () {\r\n                inProgressEvent.discardMeasurement();\r\n                _this.deleteIncompleteSubMeasurements(inProgressEvent);\r\n                inProgressEvent.measurement.flushMeasurement();\r\n            } });\r\n    };\r\n    /**\r\n     * Adds pre-queue time to preQueueTimeByCorrelationId map.\r\n     * @param {PerformanceEvents} eventName\r\n     * @param {?string} correlationId\r\n     * @returns\r\n     */\r\n    BrowserPerformanceClient.prototype.setPreQueueTime = function (eventName, correlationId) {\r\n        if (!this.supportsBrowserPerformanceNow()) {\r\n            this.logger.trace(\"BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for \" + eventName);\r\n            return;\r\n        }\r\n        if (!correlationId) {\r\n            this.logger.trace(\"BrowserPerformanceClient: correlationId for \" + eventName + \" not provided, unable to set telemetry queue time\");\r\n            return;\r\n        }\r\n        var preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId);\r\n        /**\r\n         * Manually complete queue measurement if there is an incomplete pre-queue event.\r\n         * Incomplete pre-queue events are instrumentation bugs that should be fixed.\r\n         */\r\n        if (preQueueEvent) {\r\n            this.logger.trace(\"BrowserPerformanceClient: Incomplete pre-queue \" + preQueueEvent.name + \" found\", correlationId);\r\n            this.addQueueMeasurement(preQueueEvent.name, correlationId, undefined, true);\r\n        }\r\n        this.preQueueTimeByCorrelationId.set(correlationId, { name: eventName, time: window.performance.now() });\r\n    };\r\n    /**\r\n     * Calculates and adds queue time measurement for given performance event.\r\n     *\r\n     * @param {PerformanceEvents} eventName\r\n     * @param {?string} correlationId\r\n     * @param {?number} queueTime\r\n     * @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements\r\n     * @returns\r\n     */\r\n    BrowserPerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime, manuallyCompleted) {\r\n        if (!this.supportsBrowserPerformanceNow()) {\r\n            this.logger.trace(\"BrowserPerformanceClient: window performance API not available, unable to add queue measurement for \" + eventName);\r\n            return;\r\n        }\r\n        if (!correlationId) {\r\n            this.logger.trace(\"BrowserPerformanceClient: correlationId for \" + eventName + \" not provided, unable to add queue measurement\");\r\n            return;\r\n        }\r\n        var preQueueTime = _super.prototype.getPreQueueTime.call(this, eventName, correlationId);\r\n        if (!preQueueTime) {\r\n            return;\r\n        }\r\n        var currentTime = window.performance.now();\r\n        var resQueueTime = queueTime || _super.prototype.calculateQueuedTime.call(this, preQueueTime, currentTime);\r\n        return _super.prototype.addQueueMeasurement.call(this, eventName, correlationId, resQueueTime, manuallyCompleted);\r\n    };\r\n    return BrowserPerformanceClient;\r\n}(PerformanceClient));\n\nexport { BrowserPerformanceClient };\n//# sourceMappingURL=BrowserPerformanceClient.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';\nimport { CryptoOps } from '../crypto/CryptoOps.js';\nimport { PerformanceEvents, InteractionRequiredAuthError, PromptValue, Constants, Logger, StubPerformanceClient, DEFAULT_CRYPTO_IMPLEMENTATION, AuthError, ClientAuthError } from '@azure/msal-common';\nimport { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER } from '../cache/BrowserCacheManager.js';\nimport { buildConfiguration } from '../config/Configuration.js';\nimport { InteractionType, ApiId, BrowserCacheLocation, TemporaryCacheKeys, CacheLookupPolicy } from '../utils/BrowserConstants.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\nimport { name, version } from '../packageMetadata.js';\nimport { EventType } from '../event/EventType.js';\nimport { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js';\nimport { EventHandler } from '../event/EventHandler.js';\nimport { PopupClient } from '../interaction_client/PopupClient.js';\nimport { RedirectClient } from '../interaction_client/RedirectClient.js';\nimport { SilentIframeClient } from '../interaction_client/SilentIframeClient.js';\nimport { SilentRefreshClient } from '../interaction_client/SilentRefreshClient.js';\nimport { TokenCache } from '../cache/TokenCache.js';\nimport { NativeInteractionClient } from '../interaction_client/NativeInteractionClient.js';\nimport { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.js';\nimport { NativeAuthError } from '../error/NativeAuthError.js';\nimport { SilentCacheClient } from '../interaction_client/SilentCacheClient.js';\nimport { SilentAuthCodeClient } from '../interaction_client/SilentAuthCodeClient.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { BrowserPerformanceClient } from '../telemetry/BrowserPerformanceClient.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar ClientApplication = /** @class */ (function () {\r\n    /**\r\n     * @constructor\r\n     * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object\r\n     *\r\n     * Important attributes in the Configuration object for auth are:\r\n     * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview\r\n     * - authority: the authority URL for your application.\r\n     * - redirect_uri: the uri of your application registered in the portal.\r\n     *\r\n     * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens.\r\n     * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here}\r\n     * If your application supports Accounts in one organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).\r\n     * If your application supports Accounts in any organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with organizations.\r\n     * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace \"Enter_the_Tenant_Info_Here\" value with common.\r\n     * To restrict support to Personal Microsoft accounts only, replace \"Enter_the_Tenant_Info_Here\" value with consumers.\r\n     *\r\n     * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/\r\n     * Full B2C functionality will be available in this library in future versions.\r\n     *\r\n     * @param configuration Object for the MSAL PublicClientApplication instance\r\n     */\r\n    function ClientApplication(configuration) {\r\n        /*\r\n         * If loaded in an environment where window is not available,\r\n         * set internal flag to false so that further requests fail.\r\n         * This is to support server-side rendering environments.\r\n         */\r\n        this.isBrowserEnvironment = typeof window !== \"undefined\";\r\n        // Set the configuration.\r\n        this.config = buildConfiguration(configuration, this.isBrowserEnvironment);\r\n        this.initialized = false;\r\n        // Initialize logger\r\n        this.logger = new Logger(this.config.system.loggerOptions, name, version);\r\n        // Initialize the network module class.\r\n        this.networkClient = this.config.system.networkClient;\r\n        // Initialize the navigation client class.\r\n        this.navigationClient = this.config.system.navigationClient;\r\n        // Initialize redirectResponse Map\r\n        this.redirectResponse = new Map();\r\n        // Initial hybrid spa map\r\n        this.hybridAuthCodeResponses = new Map();\r\n        // Initialize performance client\r\n        this.performanceClient = this.isBrowserEnvironment ?\r\n            new BrowserPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version, this.config.telemetry.application, this.config.system.cryptoOptions) :\r\n            new StubPerformanceClient(this.config.auth.clientId, this.config.auth.authority, this.logger, name, version, this.config.telemetry.application);\r\n        // Initialize the crypto class.\r\n        this.browserCrypto = this.isBrowserEnvironment ? new CryptoOps(this.logger, this.performanceClient, this.config.system.cryptoOptions) : DEFAULT_CRYPTO_IMPLEMENTATION;\r\n        this.eventHandler = new EventHandler(this.logger, this.browserCrypto);\r\n        // Initialize the browser storage class.\r\n        this.browserStorage = this.isBrowserEnvironment ?\r\n            new BrowserCacheManager(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) :\r\n            DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId, this.logger);\r\n        // initialize in memory storage for native flows\r\n        var nativeCacheOptions = {\r\n            cacheLocation: BrowserCacheLocation.MemoryStorage,\r\n            temporaryCacheLocation: BrowserCacheLocation.MemoryStorage,\r\n            storeAuthStateInCookie: false,\r\n            secureCookies: false,\r\n            cacheMigrationEnabled: false,\r\n            claimsBasedCachingEnabled: true\r\n        };\r\n        this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger);\r\n        // Initialize the token cache\r\n        this.tokenCache = new TokenCache(this.config, this.browserStorage, this.logger, this.browserCrypto);\r\n        // Register listener functions\r\n        this.trackPageVisibilityWithMeasurement = this.trackPageVisibilityWithMeasurement.bind(this);\r\n    }\r\n    /**\r\n     * Initializer function to perform async startup tasks such as connecting to WAM extension\r\n     */\r\n    ClientApplication.prototype.initialize = function () {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var allowNativeBroker, initMeasurement, _a, e_1, claimsTokensRemovalMeasurement;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"initialize called\");\r\n                        if (this.initialized) {\r\n                            this.logger.info(\"initialize has already been called, exiting early.\");\r\n                            return [2 /*return*/];\r\n                        }\r\n                        allowNativeBroker = this.config.system.allowNativeBroker;\r\n                        initMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.InitializeClientApplication);\r\n                        this.eventHandler.emitEvent(EventType.INITIALIZE_START);\r\n                        if (!allowNativeBroker) return [3 /*break*/, 4];\r\n                        _b.label = 1;\r\n                    case 1:\r\n                        _b.trys.push([1, 3, , 4]);\r\n                        _a = this;\r\n                        return [4 /*yield*/, NativeMessageHandler.createProvider(this.logger, this.config.system.nativeBrokerHandshakeTimeout, this.performanceClient)];\r\n                    case 2:\r\n                        _a.nativeExtensionProvider = _b.sent();\r\n                        return [3 /*break*/, 4];\r\n                    case 3:\r\n                        e_1 = _b.sent();\r\n                        this.logger.verbose(e_1);\r\n                        return [3 /*break*/, 4];\r\n                    case 4:\r\n                        if (!!this.config.cache.claimsBasedCachingEnabled) return [3 /*break*/, 6];\r\n                        this.logger.verbose(\"Claims-based caching is disabled. Clearing the previous cache with claims\");\r\n                        claimsTokensRemovalMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.ClearTokensAndKeysWithClaims);\r\n                        return [4 /*yield*/, this.browserStorage.clearTokensAndKeysWithClaims()];\r\n                    case 5:\r\n                        _b.sent();\r\n                        claimsTokensRemovalMeasurement.endMeasurement({ success: true });\r\n                        _b.label = 6;\r\n                    case 6:\r\n                        this.initialized = true;\r\n                        this.eventHandler.emitEvent(EventType.INITIALIZE_END);\r\n                        initMeasurement.endMeasurement({ allowNativeBroker: allowNativeBroker, success: true });\r\n                        return [2 /*return*/];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    // #region Redirect Flow\r\n    /**\r\n     * Event handler function which allows users to fire events after the PublicClientApplication object\r\n     * has loaded during redirect flows. This should be invoked on all page loads involved in redirect\r\n     * auth flows.\r\n     * @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.\r\n     * @returns Token response or null. If the return value is null, then no auth redirect was detected.\r\n     */\r\n    ClientApplication.prototype.handleRedirectPromise = function (hash) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var loggedInAccounts, redirectResponseKey, response, request, redirectResponse, nativeClient, correlationId, redirectClient;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                this.logger.verbose(\"handleRedirectPromise called\");\r\n                // Block token acquisition before initialize has been called if native brokering is enabled\r\n                BrowserUtils.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized);\r\n                loggedInAccounts = this.getAllAccounts();\r\n                if (this.isBrowserEnvironment) {\r\n                    redirectResponseKey = hash || Constants.EMPTY_STRING;\r\n                    response = this.redirectResponse.get(redirectResponseKey);\r\n                    if (typeof response === \"undefined\") {\r\n                        this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, InteractionType.Redirect);\r\n                        this.logger.verbose(\"handleRedirectPromise has been called for the first time, storing the promise\");\r\n                        request = this.browserStorage.getCachedNativeRequest();\r\n                        redirectResponse = void 0;\r\n                        if (request && NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) && this.nativeExtensionProvider && !hash) {\r\n                            this.logger.trace(\"handleRedirectPromise - acquiring token from native platform\");\r\n                            nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, request.accountId, this.nativeInternalStorage, request.correlationId);\r\n                            redirectResponse = nativeClient.handleRedirectPromise();\r\n                        }\r\n                        else {\r\n                            this.logger.trace(\"handleRedirectPromise - acquiring token from web flow\");\r\n                            correlationId = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || Constants.EMPTY_STRING;\r\n                            redirectClient = this.createRedirectClient(correlationId);\r\n                            redirectResponse = redirectClient.handleRedirectPromise(hash);\r\n                        }\r\n                        response = redirectResponse.then(function (result) {\r\n                            if (result) {\r\n                                // Emit login event if number of accounts change\r\n                                var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length;\r\n                                if (isLoggingIn) {\r\n                                    _this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Redirect, result);\r\n                                    _this.logger.verbose(\"handleRedirectResponse returned result, login success\");\r\n                                }\r\n                                else {\r\n                                    _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Redirect, result);\r\n                                    _this.logger.verbose(\"handleRedirectResponse returned result, acquire token success\");\r\n                                }\r\n                            }\r\n                            _this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);\r\n                            return result;\r\n                        }).catch(function (e) {\r\n                            // Emit login event if there is an account\r\n                            if (loggedInAccounts.length > 0) {\r\n                                _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);\r\n                            }\r\n                            else {\r\n                                _this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Redirect, null, e);\r\n                            }\r\n                            _this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);\r\n                            throw e;\r\n                        });\r\n                        this.redirectResponse.set(redirectResponseKey, response);\r\n                    }\r\n                    else {\r\n                        this.logger.verbose(\"handleRedirectPromise has been called previously, returning the result from the first call\");\r\n                    }\r\n                    return [2 /*return*/, response];\r\n                }\r\n                this.logger.verbose(\"handleRedirectPromise returns null, not browser environment\");\r\n                return [2 /*return*/, null];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects\r\n     * the page, so any code that follows this function will not execute.\r\n     *\r\n     * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current\r\n     * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.\r\n     *\r\n     * @param request\r\n     */\r\n    ClientApplication.prototype.acquireTokenRedirect = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, isLoggedIn, result, nativeClient, redirectClient;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(request);\r\n                this.logger.verbose(\"acquireTokenRedirect called\", correlationId);\r\n                this.preflightBrowserEnvironmentCheck(InteractionType.Redirect);\r\n                isLoggedIn = this.getAllAccounts().length > 0;\r\n                if (isLoggedIn) {\r\n                    this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Redirect, request);\r\n                }\r\n                else {\r\n                    this.eventHandler.emitEvent(EventType.LOGIN_START, InteractionType.Redirect, request);\r\n                }\r\n                if (this.nativeExtensionProvider && this.canUseNative(request)) {\r\n                    nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(request), this.nativeInternalStorage, request.correlationId);\r\n                    result = nativeClient.acquireTokenRedirect(request).catch(function (e) {\r\n                        if (e instanceof NativeAuthError && e.isFatal()) {\r\n                            _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt\r\n                            var redirectClient = _this.createRedirectClient(request.correlationId);\r\n                            return redirectClient.acquireToken(request);\r\n                        }\r\n                        else if (e instanceof InteractionRequiredAuthError) {\r\n                            _this.logger.verbose(\"acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow\");\r\n                            var redirectClient = _this.createRedirectClient(request.correlationId);\r\n                            return redirectClient.acquireToken(request);\r\n                        }\r\n                        _this.browserStorage.setInteractionInProgress(false);\r\n                        throw e;\r\n                    });\r\n                }\r\n                else {\r\n                    redirectClient = this.createRedirectClient(request.correlationId);\r\n                    result = redirectClient.acquireToken(request);\r\n                }\r\n                return [2 /*return*/, result.catch(function (e) {\r\n                        // If logged in, emit acquire token events\r\n                        if (isLoggedIn) {\r\n                            _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);\r\n                        }\r\n                        else {\r\n                            _this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Redirect, null, e);\r\n                        }\r\n                        throw e;\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    // #endregion\r\n    // #region Popup Flow\r\n    /**\r\n     * Use when you want to obtain an access_token for your API via opening a popup window in the user's browser\r\n     *\r\n     * @param request\r\n     *\r\n     * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n     */\r\n    ClientApplication.prototype.acquireTokenPopup = function (request) {\r\n        var _this = this;\r\n        var correlationId = this.getRequestCorrelationId(request);\r\n        var atPopupMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPopup, correlationId);\r\n        try {\r\n            this.logger.verbose(\"acquireTokenPopup called\", correlationId);\r\n            this.preflightBrowserEnvironmentCheck(InteractionType.Popup);\r\n        }\r\n        catch (e) {\r\n            // Since this function is syncronous we need to reject\r\n            return Promise.reject(e);\r\n        }\r\n        // If logged in, emit acquire token events\r\n        var loggedInAccounts = this.getAllAccounts();\r\n        if (loggedInAccounts.length > 0) {\r\n            this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, request);\r\n        }\r\n        else {\r\n            this.eventHandler.emitEvent(EventType.LOGIN_START, InteractionType.Popup, request);\r\n        }\r\n        var result;\r\n        if (this.canUseNative(request)) {\r\n            result = this.acquireTokenNative(request, ApiId.acquireTokenPopup).then(function (response) {\r\n                _this.browserStorage.setInteractionInProgress(false);\r\n                atPopupMeasurement.endMeasurement({\r\n                    success: true,\r\n                    isNativeBroker: true,\r\n                    requestId: response.requestId\r\n                });\r\n                return response;\r\n            }).catch(function (e) {\r\n                if (e instanceof NativeAuthError && e.isFatal()) {\r\n                    _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt\r\n                    var popupClient = _this.createPopupClient(request.correlationId);\r\n                    return popupClient.acquireToken(request);\r\n                }\r\n                else if (e instanceof InteractionRequiredAuthError) {\r\n                    _this.logger.verbose(\"acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow\");\r\n                    var popupClient = _this.createPopupClient(request.correlationId);\r\n                    return popupClient.acquireToken(request);\r\n                }\r\n                _this.browserStorage.setInteractionInProgress(false);\r\n                throw e;\r\n            });\r\n        }\r\n        else {\r\n            var popupClient = this.createPopupClient(request.correlationId);\r\n            result = popupClient.acquireToken(request);\r\n        }\r\n        return result.then(function (result) {\r\n            /*\r\n             *  If logged in, emit acquire token events\r\n             */\r\n            var isLoggingIn = loggedInAccounts.length < _this.getAllAccounts().length;\r\n            if (isLoggingIn) {\r\n                _this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Popup, result);\r\n            }\r\n            else {\r\n                _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);\r\n            }\r\n            atPopupMeasurement.addStaticFields({\r\n                accessTokenSize: result.accessToken.length,\r\n                idTokenSize: result.idToken.length\r\n            });\r\n            atPopupMeasurement.endMeasurement({\r\n                success: true,\r\n                requestId: result.requestId\r\n            });\r\n            return result;\r\n        }).catch(function (e) {\r\n            if (loggedInAccounts.length > 0) {\r\n                _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);\r\n            }\r\n            else {\r\n                _this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, InteractionType.Popup, null, e);\r\n            }\r\n            atPopupMeasurement.endMeasurement({\r\n                errorCode: e.errorCode,\r\n                subErrorCode: e.subError,\r\n                success: false\r\n            });\r\n            // Since this function is syncronous we need to reject\r\n            return Promise.reject(e);\r\n        });\r\n    };\r\n    ClientApplication.prototype.trackPageVisibilityWithMeasurement = function () {\r\n        var measurement = this.ssoSilentMeasurement || this.acquireTokenByCodeAsyncMeasurement;\r\n        if (!measurement) {\r\n            return;\r\n        }\r\n        this.logger.info(\"Perf: Visibility change detected in \", measurement.event.name);\r\n        measurement.increment({\r\n            visibilityChangeCount: 1,\r\n        });\r\n    };\r\n    // #endregion\r\n    // #region Silent Flow\r\n    /**\r\n     * This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:\r\n     * - Any browser using a form of Intelligent Tracking Prevention\r\n     * - If there is not an established session with the service\r\n     *\r\n     * In these cases, the request must be done inside a popup or full frame redirect.\r\n     *\r\n     * For the cases where interaction is required, you cannot send a request with prompt=none.\r\n     *\r\n     * If your refresh token has expired, you can use this function to fetch a new set of tokens silently as long as\r\n     * you session on the server still exists.\r\n     * @param request {@link SsoSilentRequest}\r\n     *\r\n     * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n     */\r\n    ClientApplication.prototype.ssoSilent = function (request) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, validRequest, result, silentIframeClient;\r\n            var _this = this;\r\n            return __generator(this, function (_b) {\r\n                correlationId = this.getRequestCorrelationId(request);\r\n                validRequest = __assign(__assign({}, request), { \r\n                    // will be PromptValue.NONE or PromptValue.NO_SESSION\r\n                    prompt: request.prompt, correlationId: correlationId });\r\n                this.preflightBrowserEnvironmentCheck(InteractionType.Silent);\r\n                this.ssoSilentMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoSilent, correlationId);\r\n                (_a = this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.increment({\r\n                    visibilityChangeCount: 0\r\n                });\r\n                document.addEventListener(\"visibilitychange\", this.trackPageVisibilityWithMeasurement);\r\n                this.logger.verbose(\"ssoSilent called\", correlationId);\r\n                this.eventHandler.emitEvent(EventType.SSO_SILENT_START, InteractionType.Silent, validRequest);\r\n                if (this.canUseNative(validRequest)) {\r\n                    result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch(function (e) {\r\n                        // If native token acquisition fails for availability reasons fallback to standard flow\r\n                        if (e instanceof NativeAuthError && e.isFatal()) {\r\n                            _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt\r\n                            var silentIframeClient = _this.createSilentIframeClient(validRequest.correlationId);\r\n                            return silentIframeClient.acquireToken(validRequest);\r\n                        }\r\n                        throw e;\r\n                    });\r\n                }\r\n                else {\r\n                    silentIframeClient = this.createSilentIframeClient(validRequest.correlationId);\r\n                    result = silentIframeClient.acquireToken(validRequest);\r\n                }\r\n                return [2 /*return*/, result.then(function (response) {\r\n                        var _a, _b;\r\n                        _this.eventHandler.emitEvent(EventType.SSO_SILENT_SUCCESS, InteractionType.Silent, response);\r\n                        (_a = _this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.addStaticFields({\r\n                            accessTokenSize: response.accessToken.length,\r\n                            idTokenSize: response.idToken.length\r\n                        });\r\n                        (_b = _this.ssoSilentMeasurement) === null || _b === void 0 ? void 0 : _b.endMeasurement({\r\n                            success: true,\r\n                            isNativeBroker: response.fromNativeBroker,\r\n                            requestId: response.requestId\r\n                        });\r\n                        return response;\r\n                    }).catch(function (e) {\r\n                        var _a;\r\n                        _this.eventHandler.emitEvent(EventType.SSO_SILENT_FAILURE, InteractionType.Silent, null, e);\r\n                        (_a = _this.ssoSilentMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({\r\n                            errorCode: e.errorCode,\r\n                            subErrorCode: e.subError,\r\n                            success: false\r\n                        });\r\n                        throw e;\r\n                    }).finally(function () {\r\n                        document.removeEventListener(\"visibilitychange\", _this.trackPageVisibilityWithMeasurement);\r\n                    })];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * This function redeems an authorization code (passed as code) from the eSTS token endpoint.\r\n     * This authorization code should be acquired server-side using a confidential client to acquire a spa_code.\r\n     * This API is not indended for normal authorization code acquisition and redemption.\r\n     *\r\n     * Redemption of this authorization code will not require PKCE, as it was acquired by a confidential client.\r\n     *\r\n     * @param request {@link AuthorizationCodeRequest}\r\n     * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n     */\r\n    ClientApplication.prototype.acquireTokenByCode = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, atbcMeasurement, hybridAuthCode_1, response;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(request);\r\n                this.preflightBrowserEnvironmentCheck(InteractionType.Silent);\r\n                this.logger.trace(\"acquireTokenByCode called\", correlationId);\r\n                this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_BY_CODE_START, InteractionType.Silent, request);\r\n                atbcMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenByCode, request.correlationId);\r\n                try {\r\n                    if (request.code && request.nativeAccountId) {\r\n                        // Throw error in case server returns both spa_code and spa_accountid in exchange for auth code.\r\n                        throw BrowserAuthError.createSpaCodeAndNativeAccountIdPresentError();\r\n                    }\r\n                    else if (request.code) {\r\n                        hybridAuthCode_1 = request.code;\r\n                        response = this.hybridAuthCodeResponses.get(hybridAuthCode_1);\r\n                        if (!response) {\r\n                            this.logger.verbose(\"Initiating new acquireTokenByCode request\", correlationId);\r\n                            response = this.acquireTokenByCodeAsync(__assign(__assign({}, request), { correlationId: correlationId }))\r\n                                .then(function (result) {\r\n                                _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_BY_CODE_SUCCESS, InteractionType.Silent, result);\r\n                                _this.hybridAuthCodeResponses.delete(hybridAuthCode_1);\r\n                                atbcMeasurement.addStaticFields({\r\n                                    accessTokenSize: result.accessToken.length,\r\n                                    idTokenSize: result.idToken.length\r\n                                });\r\n                                atbcMeasurement.endMeasurement({\r\n                                    success: true,\r\n                                    isNativeBroker: result.fromNativeBroker,\r\n                                    requestId: result.requestId\r\n                                });\r\n                                return result;\r\n                            })\r\n                                .catch(function (error) {\r\n                                _this.hybridAuthCodeResponses.delete(hybridAuthCode_1);\r\n                                _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_BY_CODE_FAILURE, InteractionType.Silent, null, error);\r\n                                atbcMeasurement.endMeasurement({\r\n                                    errorCode: error.errorCode,\r\n                                    subErrorCode: error.subError,\r\n                                    success: false\r\n                                });\r\n                                throw error;\r\n                            });\r\n                            this.hybridAuthCodeResponses.set(hybridAuthCode_1, response);\r\n                        }\r\n                        else {\r\n                            this.logger.verbose(\"Existing acquireTokenByCode request found\", request.correlationId);\r\n                            atbcMeasurement.discardMeasurement();\r\n                        }\r\n                        return [2 /*return*/, response];\r\n                    }\r\n                    else if (request.nativeAccountId) {\r\n                        if (this.canUseNative(request, request.nativeAccountId)) {\r\n                            return [2 /*return*/, this.acquireTokenNative(request, ApiId.acquireTokenByCode, request.nativeAccountId).catch(function (e) {\r\n                                    // If native token acquisition fails for availability reasons fallback to standard flow\r\n                                    if (e instanceof NativeAuthError && e.isFatal()) {\r\n                                        _this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt\r\n                                    }\r\n                                    throw e;\r\n                                })];\r\n                        }\r\n                        else {\r\n                            throw BrowserAuthError.createUnableToAcquireTokenFromNativePlatformError();\r\n                        }\r\n                    }\r\n                    else {\r\n                        throw BrowserAuthError.createAuthCodeOrNativeAccountIdRequiredError();\r\n                    }\r\n                }\r\n                catch (e) {\r\n                    this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_BY_CODE_FAILURE, InteractionType.Silent, null, e);\r\n                    atbcMeasurement.endMeasurement({\r\n                        errorCode: e instanceof AuthError && e.errorCode || undefined,\r\n                        subErrorCode: e instanceof AuthError && e.subError || undefined,\r\n                        success: false\r\n                    });\r\n                    throw e;\r\n                }\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Creates a SilentAuthCodeClient to redeem an authorization code.\r\n     * @param request\r\n     * @returns Result of the operation to redeem the authorization code\r\n     */\r\n    ClientApplication.prototype.acquireTokenByCodeAsync = function (request) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var silentAuthCodeClient, silentTokenResult;\r\n            var _this = this;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.logger.trace(\"acquireTokenByCodeAsync called\", request.correlationId);\r\n                        this.acquireTokenByCodeAsyncMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenByCodeAsync, request.correlationId);\r\n                        (_a = this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.increment({\r\n                            visibilityChangeCount: 0\r\n                        });\r\n                        document.addEventListener(\"visibilitychange\", this.trackPageVisibilityWithMeasurement);\r\n                        silentAuthCodeClient = this.createSilentAuthCodeClient(request.correlationId);\r\n                        return [4 /*yield*/, silentAuthCodeClient.acquireToken(request).then(function (response) {\r\n                                var _a;\r\n                                (_a = _this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({\r\n                                    success: true,\r\n                                    fromCache: response.fromCache,\r\n                                    isNativeBroker: response.fromNativeBroker,\r\n                                    requestId: response.requestId\r\n                                });\r\n                                return response;\r\n                            }).catch(function (tokenRenewalError) {\r\n                                var _a;\r\n                                (_a = _this.acquireTokenByCodeAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({\r\n                                    errorCode: tokenRenewalError.errorCode,\r\n                                    subErrorCode: tokenRenewalError.subError,\r\n                                    success: false\r\n                                });\r\n                                throw tokenRenewalError;\r\n                            }).finally(function () {\r\n                                document.removeEventListener(\"visibilitychange\", _this.trackPageVisibilityWithMeasurement);\r\n                            })];\r\n                    case 1:\r\n                        silentTokenResult = _b.sent();\r\n                        return [2 /*return*/, silentTokenResult];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Attempt to acquire an access token from the cache\r\n     * @param silentCacheClient SilentCacheClient\r\n     * @param commonRequest CommonSilentFlowRequest\r\n     * @param silentRequest SilentRequest\r\n     * @returns A promise that, when resolved, returns the access token\r\n     */\r\n    ClientApplication.prototype.acquireTokenFromCache = function (silentCacheClient, commonRequest, silentRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            return __generator(this, function (_a) {\r\n                this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenFromCache, commonRequest.correlationId);\r\n                switch (silentRequest.cacheLookupPolicy) {\r\n                    case CacheLookupPolicy.Default:\r\n                    case CacheLookupPolicy.AccessToken:\r\n                    case CacheLookupPolicy.AccessTokenAndRefreshToken:\r\n                        return [2 /*return*/, silentCacheClient.acquireToken(commonRequest)];\r\n                    default:\r\n                        throw ClientAuthError.createRefreshRequiredError();\r\n                }\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Attempt to acquire an access token via a refresh token\r\n     * @param commonRequest CommonSilentFlowRequest\r\n     * @param silentRequest SilentRequest\r\n     * @returns A promise that, when resolved, returns the access token\r\n     */\r\n    ClientApplication.prototype.acquireTokenByRefreshToken = function (commonRequest, silentRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var silentRefreshClient;\r\n            return __generator(this, function (_a) {\r\n                this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenByRefreshToken, commonRequest.correlationId);\r\n                switch (silentRequest.cacheLookupPolicy) {\r\n                    case CacheLookupPolicy.Default:\r\n                    case CacheLookupPolicy.AccessTokenAndRefreshToken:\r\n                    case CacheLookupPolicy.RefreshToken:\r\n                    case CacheLookupPolicy.RefreshTokenAndNetwork:\r\n                        silentRefreshClient = this.createSilentRefreshClient(commonRequest.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.SilentRefreshClientAcquireToken, commonRequest.correlationId);\r\n                        return [2 /*return*/, silentRefreshClient.acquireToken(commonRequest)];\r\n                    default:\r\n                        throw ClientAuthError.createRefreshRequiredError();\r\n                }\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Attempt to acquire an access token via an iframe\r\n     * @param request CommonSilentFlowRequest\r\n     * @returns A promise that, when resolved, returns the access token\r\n     */\r\n    ClientApplication.prototype.acquireTokenBySilentIframe = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var silentIframeClient;\r\n            return __generator(this, function (_a) {\r\n                this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenBySilentIframe, request.correlationId);\r\n                silentIframeClient = this.createSilentIframeClient(request.correlationId);\r\n                this.performanceClient.setPreQueueTime(PerformanceEvents.SilentIframeClientAcquireToken, request.correlationId);\r\n                return [2 /*return*/, silentIframeClient.acquireToken(request)];\r\n            });\r\n        });\r\n    };\r\n    // #endregion\r\n    // #region Logout\r\n    /**\r\n     * Deprecated logout function. Use logoutRedirect or logoutPopup instead\r\n     * @param logoutRequest\r\n     * @deprecated\r\n     */\r\n    ClientApplication.prototype.logout = function (logoutRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(logoutRequest);\r\n                this.logger.warning(\"logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.\", correlationId);\r\n                return [2 /*return*/, this.logoutRedirect(__assign({ correlationId: correlationId }, logoutRequest))];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Use to log out the current user, and redirect the user to the postLogoutRedirectUri.\r\n     * Default behaviour is to redirect the user to `window.location.href`.\r\n     * @param logoutRequest\r\n     */\r\n    ClientApplication.prototype.logoutRedirect = function (logoutRequest) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, redirectClient;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(logoutRequest);\r\n                this.preflightBrowserEnvironmentCheck(InteractionType.Redirect);\r\n                redirectClient = this.createRedirectClient(correlationId);\r\n                return [2 /*return*/, redirectClient.logout(logoutRequest)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server\r\n     * @param logoutRequest\r\n     */\r\n    ClientApplication.prototype.logoutPopup = function (logoutRequest) {\r\n        try {\r\n            var correlationId = this.getRequestCorrelationId(logoutRequest);\r\n            this.preflightBrowserEnvironmentCheck(InteractionType.Popup);\r\n            var popupClient = this.createPopupClient(correlationId);\r\n            return popupClient.logout(logoutRequest);\r\n        }\r\n        catch (e) {\r\n            // Since this function is syncronous we need to reject\r\n            return Promise.reject(e);\r\n        }\r\n    };\r\n    // #endregion\r\n    // #region Account APIs\r\n    /**\r\n     * Returns all accounts that MSAL currently has data for.\r\n     * (the account object is created at the time of successful login)\r\n     * or empty array when no accounts are found\r\n     * @returns Array of account objects in cache\r\n     */\r\n    ClientApplication.prototype.getAllAccounts = function () {\r\n        this.logger.verbose(\"getAllAccounts called\");\r\n        return this.isBrowserEnvironment ? this.browserStorage.getAllAccounts() : [];\r\n    };\r\n    /**\r\n     * Returns the signed in account matching username.\r\n     * (the account object is created at the time of successful login)\r\n     * or null when no matching account is found.\r\n     * This API is provided for convenience but getAccountById should be used for best reliability\r\n     * @param username\r\n     * @returns The account object stored in MSAL\r\n     */\r\n    ClientApplication.prototype.getAccountByUsername = function (username) {\r\n        this.logger.trace(\"getAccountByUsername called\");\r\n        if (!username) {\r\n            this.logger.warning(\"getAccountByUsername: No username provided\");\r\n            return null;\r\n        }\r\n        var account = this.browserStorage.getAccountInfoFilteredBy({ username: username });\r\n        if (account) {\r\n            this.logger.verbose(\"getAccountByUsername: Account matching username found, returning\");\r\n            this.logger.verbosePii(\"getAccountByUsername: Returning signed-in accounts matching username: \" + username);\r\n            return account;\r\n        }\r\n        else {\r\n            this.logger.verbose(\"getAccountByUsername: No matching account found, returning null\");\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * Returns the signed in account matching homeAccountId.\r\n     * (the account object is created at the time of successful login)\r\n     * or null when no matching account is found\r\n     * @param homeAccountId\r\n     * @returns The account object stored in MSAL\r\n     */\r\n    ClientApplication.prototype.getAccountByHomeId = function (homeAccountId) {\r\n        this.logger.trace(\"getAccountByHomeId called\");\r\n        if (!homeAccountId) {\r\n            this.logger.warning(\"getAccountByHomeId: No homeAccountId provided\");\r\n            return null;\r\n        }\r\n        var account = this.browserStorage.getAccountInfoFilteredBy({ homeAccountId: homeAccountId });\r\n        if (account) {\r\n            this.logger.verbose(\"getAccountByHomeId: Account matching homeAccountId found, returning\");\r\n            this.logger.verbosePii(\"getAccountByHomeId: Returning signed-in accounts matching homeAccountId: \" + homeAccountId);\r\n            return account;\r\n        }\r\n        else {\r\n            this.logger.verbose(\"getAccountByHomeId: No matching account found, returning null\");\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * Returns the signed in account matching localAccountId.\r\n     * (the account object is created at the time of successful login)\r\n     * or null when no matching account is found\r\n     * @param localAccountId\r\n     * @returns The account object stored in MSAL\r\n     */\r\n    ClientApplication.prototype.getAccountByLocalId = function (localAccountId) {\r\n        this.logger.trace(\"getAccountByLocalId called\");\r\n        if (!localAccountId) {\r\n            this.logger.warning(\"getAccountByLocalId: No localAccountId provided\");\r\n            return null;\r\n        }\r\n        var account = this.browserStorage.getAccountInfoFilteredBy({ localAccountId: localAccountId });\r\n        if (account) {\r\n            this.logger.verbose(\"getAccountByLocalId: Account matching localAccountId found, returning\");\r\n            this.logger.verbosePii(\"getAccountByLocalId: Returning signed-in accounts matching localAccountId: \" + localAccountId);\r\n            return account;\r\n        }\r\n        else {\r\n            this.logger.verbose(\"getAccountByLocalId: No matching account found, returning null\");\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.\r\n     * @param account\r\n     */\r\n    ClientApplication.prototype.setActiveAccount = function (account) {\r\n        this.browserStorage.setActiveAccount(account);\r\n    };\r\n    /**\r\n     * Gets the currently active account\r\n     */\r\n    ClientApplication.prototype.getActiveAccount = function () {\r\n        return this.browserStorage.getActiveAccount();\r\n    };\r\n    // #endregion\r\n    // #region Helpers\r\n    /**\r\n     * Helper to validate app environment before making an auth request\r\n     *\r\n     * @protected\r\n     * @param {InteractionType} interactionType What kind of interaction is being used\r\n     * @param {boolean} [setInteractionInProgress=true] Whether to set interaction in progress temp cache flag\r\n     */\r\n    ClientApplication.prototype.preflightBrowserEnvironmentCheck = function (interactionType, setInteractionInProgress) {\r\n        if (setInteractionInProgress === void 0) { setInteractionInProgress = true; }\r\n        this.logger.verbose(\"preflightBrowserEnvironmentCheck started\");\r\n        // Block request if not in browser environment\r\n        BrowserUtils.blockNonBrowserEnvironment(this.isBrowserEnvironment);\r\n        // Block redirects if in an iframe\r\n        BrowserUtils.blockRedirectInIframe(interactionType, this.config.system.allowRedirectInIframe);\r\n        // Block auth requests inside a hidden iframe\r\n        BrowserUtils.blockReloadInHiddenIframes();\r\n        // Block redirectUri opened in a popup from calling MSAL APIs\r\n        BrowserUtils.blockAcquireTokenInPopups();\r\n        // Block token acquisition before initialize has been called if native brokering is enabled\r\n        BrowserUtils.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized);\r\n        // Block redirects if memory storage is enabled but storeAuthStateInCookie is not\r\n        if (interactionType === InteractionType.Redirect &&\r\n            this.config.cache.cacheLocation === BrowserCacheLocation.MemoryStorage &&\r\n            !this.config.cache.storeAuthStateInCookie) {\r\n            throw BrowserConfigurationAuthError.createInMemoryRedirectUnavailableError();\r\n        }\r\n        if (interactionType === InteractionType.Redirect || interactionType === InteractionType.Popup) {\r\n            this.preflightInteractiveRequest(setInteractionInProgress);\r\n        }\r\n    };\r\n    /**\r\n     * Preflight check for interactive requests\r\n     *\r\n     * @protected\r\n     * @param {boolean} setInteractionInProgress Whether to set interaction in progress temp cache flag\r\n     */\r\n    ClientApplication.prototype.preflightInteractiveRequest = function (setInteractionInProgress) {\r\n        this.logger.verbose(\"preflightInteractiveRequest called, validating app environment\");\r\n        // block the reload if it occurred inside a hidden iframe\r\n        BrowserUtils.blockReloadInHiddenIframes();\r\n        // Set interaction in progress temporary cache or throw if alread set.\r\n        if (setInteractionInProgress) {\r\n            this.browserStorage.setInteractionInProgress(true);\r\n        }\r\n    };\r\n    /**\r\n     * Acquire a token from native device (e.g. WAM)\r\n     * @param request\r\n     */\r\n    ClientApplication.prototype.acquireTokenNative = function (request, apiId, accountId) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var nativeClient;\r\n            return __generator(this, function (_a) {\r\n                this.logger.trace(\"acquireTokenNative called\");\r\n                if (!this.nativeExtensionProvider) {\r\n                    throw BrowserAuthError.createNativeConnectionNotEstablishedError();\r\n                }\r\n                nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, apiId, this.performanceClient, this.nativeExtensionProvider, accountId || this.getNativeAccountId(request), this.nativeInternalStorage, request.correlationId);\r\n                return [2 /*return*/, nativeClient.acquireToken(request)];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Returns boolean indicating if this request can use the native broker\r\n     * @param request\r\n     */\r\n    ClientApplication.prototype.canUseNative = function (request, accountId) {\r\n        this.logger.trace(\"canUseNative called\");\r\n        if (!NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme)) {\r\n            this.logger.trace(\"canUseNative: isNativeAvailable returned false, returning false\");\r\n            return false;\r\n        }\r\n        if (request.prompt) {\r\n            switch (request.prompt) {\r\n                case PromptValue.NONE:\r\n                case PromptValue.CONSENT:\r\n                case PromptValue.LOGIN:\r\n                    this.logger.trace(\"canUseNative: prompt is compatible with native flow\");\r\n                    break;\r\n                default:\r\n                    this.logger.trace(\"canUseNative: prompt = \" + request.prompt + \" is not compatible with native flow, returning false\");\r\n                    return false;\r\n            }\r\n        }\r\n        if (!accountId && !this.getNativeAccountId(request)) {\r\n            this.logger.trace(\"canUseNative: nativeAccountId is not available, returning false\");\r\n            return false;\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * Get the native accountId from the account\r\n     * @param request\r\n     * @returns\r\n     */\r\n    ClientApplication.prototype.getNativeAccountId = function (request) {\r\n        var account = request.account || this.browserStorage.getAccountInfoByHints(request.loginHint, request.sid) || this.getActiveAccount();\r\n        return account && account.nativeAccountId || \"\";\r\n    };\r\n    /**\r\n     * Returns new instance of the Popup Interaction Client\r\n     * @param correlationId\r\n     */\r\n    ClientApplication.prototype.createPopupClient = function (correlationId) {\r\n        return new PopupClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Returns new instance of the Redirect Interaction Client\r\n     * @param correlationId\r\n     */\r\n    ClientApplication.prototype.createRedirectClient = function (correlationId) {\r\n        return new RedirectClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Returns new instance of the Silent Iframe Interaction Client\r\n     * @param correlationId\r\n     */\r\n    ClientApplication.prototype.createSilentIframeClient = function (correlationId) {\r\n        return new SilentIframeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.ssoSilent, this.performanceClient, this.nativeInternalStorage, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Returns new instance of the Silent Cache Interaction Client\r\n     */\r\n    ClientApplication.prototype.createSilentCacheClient = function (correlationId) {\r\n        return new SilentCacheClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Returns new instance of the Silent Refresh Interaction Client\r\n     */\r\n    ClientApplication.prototype.createSilentRefreshClient = function (correlationId) {\r\n        return new SilentRefreshClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Returns new instance of the Silent AuthCode Interaction Client\r\n     */\r\n    ClientApplication.prototype.createSilentAuthCodeClient = function (correlationId) {\r\n        return new SilentAuthCodeClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenByCode, this.performanceClient, this.nativeExtensionProvider, correlationId);\r\n    };\r\n    /**\r\n     * Adds event callbacks to array\r\n     * @param callback\r\n     */\r\n    ClientApplication.prototype.addEventCallback = function (callback) {\r\n        return this.eventHandler.addEventCallback(callback);\r\n    };\r\n    /**\r\n     * Removes callback with provided id from callback array\r\n     * @param callbackId\r\n     */\r\n    ClientApplication.prototype.removeEventCallback = function (callbackId) {\r\n        this.eventHandler.removeEventCallback(callbackId);\r\n    };\r\n    /**\r\n     * Registers a callback to receive performance events.\r\n     *\r\n     * @param {PerformanceCallbackFunction} callback\r\n     * @returns {string}\r\n     */\r\n    ClientApplication.prototype.addPerformanceCallback = function (callback) {\r\n        return this.performanceClient.addPerformanceCallback(callback);\r\n    };\r\n    /**\r\n     * Removes a callback registered with addPerformanceCallback.\r\n     *\r\n     * @param {string} callbackId\r\n     * @returns {boolean}\r\n     */\r\n    ClientApplication.prototype.removePerformanceCallback = function (callbackId) {\r\n        return this.performanceClient.removePerformanceCallback(callbackId);\r\n    };\r\n    /**\r\n     * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n     */\r\n    ClientApplication.prototype.enableAccountStorageEvents = function () {\r\n        this.eventHandler.enableAccountStorageEvents();\r\n    };\r\n    /**\r\n     * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window\r\n     */\r\n    ClientApplication.prototype.disableAccountStorageEvents = function () {\r\n        this.eventHandler.disableAccountStorageEvents();\r\n    };\r\n    /**\r\n     * Gets the token cache for the application.\r\n     */\r\n    ClientApplication.prototype.getTokenCache = function () {\r\n        return this.tokenCache;\r\n    };\r\n    /**\r\n     * Returns the logger instance\r\n     */\r\n    ClientApplication.prototype.getLogger = function () {\r\n        return this.logger;\r\n    };\r\n    /**\r\n     * Replaces the default logger set in configurations with new Logger with new configurations\r\n     * @param logger Logger instance\r\n     */\r\n    ClientApplication.prototype.setLogger = function (logger) {\r\n        this.logger = logger;\r\n    };\r\n    /**\r\n     * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.\r\n     * @param sku\r\n     * @param version\r\n     */\r\n    ClientApplication.prototype.initializeWrapperLibrary = function (sku, version) {\r\n        // Validate the SKU passed in is one we expect\r\n        this.browserStorage.setWrapperMetadata(sku, version);\r\n    };\r\n    /**\r\n     * Sets navigation client\r\n     * @param navigationClient\r\n     */\r\n    ClientApplication.prototype.setNavigationClient = function (navigationClient) {\r\n        this.navigationClient = navigationClient;\r\n    };\r\n    /**\r\n     * Returns the configuration object\r\n     */\r\n    ClientApplication.prototype.getConfiguration = function () {\r\n        return this.config;\r\n    };\r\n    /**\r\n     * Generates a correlation id for a request if none is provided.\r\n     *\r\n     * @protected\r\n     * @param {?Partial<BaseAuthRequest>} [request]\r\n     * @returns {string}\r\n     */\r\n    ClientApplication.prototype.getRequestCorrelationId = function (request) {\r\n        if (request === null || request === void 0 ? void 0 : request.correlationId) {\r\n            return request.correlationId;\r\n        }\r\n        if (this.isBrowserEnvironment) {\r\n            return this.browserCrypto.createNewGuid();\r\n        }\r\n        /*\r\n         * Included for fallback for non-browser environments,\r\n         * and to ensure this method always returns a string.\r\n         */\r\n        return Constants.EMPTY_STRING;\r\n    };\r\n    return ClientApplication;\r\n}());\n\nexport { ClientApplication };\n//# sourceMappingURL=ClientApplication.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends, __awaiter, __assign, __generator } from '../_virtual/_tslib.js';\nimport { PerformanceEvents, AccountEntity, Constants, ServerError, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage } from '@azure/msal-common';\nimport { DEFAULT_REQUEST, InteractionType, CacheLookupPolicy, ApiId, BrowserConstants } from '../utils/BrowserConstants.js';\nimport { ClientApplication } from './ClientApplication.js';\nimport { EventType } from '../event/EventType.js';\nimport { BrowserAuthError } from '../error/BrowserAuthError.js';\nimport { NativeAuthError } from '../error/NativeAuthError.js';\nimport { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.js';\nimport { BrowserUtils } from '../utils/BrowserUtils.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications\r\n * to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification.\r\n */\r\nvar PublicClientApplication = /** @class */ (function (_super) {\r\n    __extends(PublicClientApplication, _super);\r\n    /**\r\n     * @constructor\r\n     * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object\r\n     *\r\n     * Important attributes in the Configuration object for auth are:\r\n     * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview\r\n     * - authority: the authority URL for your application.\r\n     * - redirect_uri: the uri of your application registered in the portal.\r\n     *\r\n     * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens.\r\n     * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here}\r\n     * If your application supports Accounts in one organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).\r\n     * If your application supports Accounts in any organizational directory, replace \"Enter_the_Tenant_Info_Here\" value with organizations.\r\n     * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace \"Enter_the_Tenant_Info_Here\" value with common.\r\n     * To restrict support to Personal Microsoft accounts only, replace \"Enter_the_Tenant_Info_Here\" value with consumers.\r\n     *\r\n     * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/\r\n     * Full B2C functionality will be available in this library in future versions.\r\n     *\r\n     * @param configuration object for the MSAL PublicClientApplication instance\r\n     */\r\n    function PublicClientApplication(configuration) {\r\n        var _this = _super.call(this, configuration) || this;\r\n        _this.astsAsyncMeasurement = undefined;\r\n        _this.activeSilentTokenRequests = new Map();\r\n        // Register listener functions\r\n        _this.trackPageVisibility = _this.trackPageVisibility.bind(_this);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Use when initiating the login process by redirecting the user's browser to the authorization endpoint. This function redirects the page, so\r\n     * any code that follows this function will not execute.\r\n     *\r\n     * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current\r\n     * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.\r\n     *\r\n     * @param request\r\n     */\r\n    PublicClientApplication.prototype.loginRedirect = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(request);\r\n                this.logger.verbose(\"loginRedirect called\", correlationId);\r\n                return [2 /*return*/, this.acquireTokenRedirect(__assign({ correlationId: correlationId }, (request || DEFAULT_REQUEST)))];\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Use when initiating the login process via opening a popup window in the user's browser\r\n     *\r\n     * @param request\r\n     *\r\n     * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.\r\n     */\r\n    PublicClientApplication.prototype.loginPopup = function (request) {\r\n        var correlationId = this.getRequestCorrelationId(request);\r\n        this.logger.verbose(\"loginPopup called\", correlationId);\r\n        return this.acquireTokenPopup(__assign({ correlationId: correlationId }, (request || DEFAULT_REQUEST)));\r\n    };\r\n    /**\r\n     * Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.\r\n     *\r\n     * @param {@link (SilentRequest:type)}\r\n     * @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} object\r\n     */\r\n    PublicClientApplication.prototype.acquireTokenSilent = function (request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var correlationId, atsMeasurement, account, thumbprint, silentRequestKey, cachedResponse, response;\r\n            var _this = this;\r\n            return __generator(this, function (_a) {\r\n                correlationId = this.getRequestCorrelationId(request);\r\n                atsMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenSilent, correlationId);\r\n                atsMeasurement.addStaticFields({\r\n                    cacheLookupPolicy: request.cacheLookupPolicy\r\n                });\r\n                this.preflightBrowserEnvironmentCheck(InteractionType.Silent);\r\n                this.logger.verbose(\"acquireTokenSilent called\", correlationId);\r\n                account = request.account || this.getActiveAccount();\r\n                if (!account) {\r\n                    throw BrowserAuthError.createNoAccountError();\r\n                }\r\n                thumbprint = {\r\n                    clientId: this.config.auth.clientId,\r\n                    authority: request.authority || Constants.EMPTY_STRING,\r\n                    scopes: request.scopes,\r\n                    homeAccountIdentifier: account.homeAccountId,\r\n                    claims: request.claims,\r\n                    authenticationScheme: request.authenticationScheme,\r\n                    resourceRequestMethod: request.resourceRequestMethod,\r\n                    resourceRequestUri: request.resourceRequestUri,\r\n                    shrClaims: request.shrClaims,\r\n                    sshKid: request.sshKid\r\n                };\r\n                silentRequestKey = JSON.stringify(thumbprint);\r\n                cachedResponse = this.activeSilentTokenRequests.get(silentRequestKey);\r\n                if (typeof cachedResponse === \"undefined\") {\r\n                    this.logger.verbose(\"acquireTokenSilent called for the first time, storing active request\", correlationId);\r\n                    this.performanceClient.setPreQueueTime(PerformanceEvents.AcquireTokenSilentAsync, correlationId);\r\n                    response = this.acquireTokenSilentAsync(__assign(__assign({}, request), { correlationId: correlationId }), account)\r\n                        .then(function (result) {\r\n                        _this.activeSilentTokenRequests.delete(silentRequestKey);\r\n                        atsMeasurement.addStaticFields({\r\n                            accessTokenSize: result.accessToken.length,\r\n                            idTokenSize: result.idToken.length\r\n                        });\r\n                        atsMeasurement.endMeasurement({\r\n                            success: true,\r\n                            fromCache: result.fromCache,\r\n                            isNativeBroker: result.fromNativeBroker,\r\n                            cacheLookupPolicy: request.cacheLookupPolicy,\r\n                            requestId: result.requestId,\r\n                        });\r\n                        return result;\r\n                    })\r\n                        .catch(function (error) {\r\n                        _this.activeSilentTokenRequests.delete(silentRequestKey);\r\n                        atsMeasurement.endMeasurement({\r\n                            errorCode: error.errorCode,\r\n                            subErrorCode: error.subError,\r\n                            success: false\r\n                        });\r\n                        throw error;\r\n                    });\r\n                    this.activeSilentTokenRequests.set(silentRequestKey, response);\r\n                    return [2 /*return*/, response];\r\n                }\r\n                else {\r\n                    this.logger.verbose(\"acquireTokenSilent has been called previously, returning the result from the first call\", correlationId);\r\n                    // Discard measurements for memoized calls, as they are usually only a couple of ms and will artificially deflate metrics\r\n                    atsMeasurement.discardMeasurement();\r\n                    return [2 /*return*/, cachedResponse];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    PublicClientApplication.prototype.trackPageVisibility = function () {\r\n        if (!this.astsAsyncMeasurement) {\r\n            return;\r\n        }\r\n        this.logger.info(\"Perf: Visibility change detected\");\r\n        this.astsAsyncMeasurement.increment({\r\n            visibilityChangeCount: 1,\r\n        });\r\n    };\r\n    /**\r\n     * Silently acquire an access token for a given set of scopes. Will use cached token if available, otherwise will attempt to acquire a new token from the network via refresh token.\r\n     * @param {@link (SilentRequest:type)}\r\n     * @param {@link (AccountInfo:type)}\r\n     * @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse}\r\n     */\r\n    PublicClientApplication.prototype.acquireTokenSilentAsync = function (request, account) {\r\n        var _a;\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var result, silentRequest, silentCacheClient, silentRequest_1, requestWithCLP_1;\r\n            var _this = this;\r\n            return __generator(this, function (_b) {\r\n                switch (_b.label) {\r\n                    case 0:\r\n                        this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);\r\n                        this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);\r\n                        this.astsAsyncMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);\r\n                        (_a = this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.increment({\r\n                            visibilityChangeCount: 0\r\n                        });\r\n                        document.addEventListener(\"visibilitychange\", this.trackPageVisibility);\r\n                        if (!(NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme) && account.nativeAccountId)) return [3 /*break*/, 1];\r\n                        this.logger.verbose(\"acquireTokenSilent - attempting to acquire token from native platform\");\r\n                        silentRequest = __assign(__assign({}, request), { account: account });\r\n                        result = this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch(function (e) { return __awaiter(_this, void 0, void 0, function () {\r\n                            var silentIframeClient;\r\n                            return __generator(this, function (_a) {\r\n                                // If native token acquisition fails for availability reasons fallback to web flow\r\n                                if (e instanceof NativeAuthError && e.isFatal()) {\r\n                                    this.logger.verbose(\"acquireTokenSilent - native platform unavailable, falling back to web flow\");\r\n                                    this.nativeExtensionProvider = undefined; // Prevent future requests from continuing to attempt\r\n                                    silentIframeClient = this.createSilentIframeClient(request.correlationId);\r\n                                    return [2 /*return*/, silentIframeClient.acquireToken(request)];\r\n                                }\r\n                                throw e;\r\n                            });\r\n                        }); });\r\n                        return [3 /*break*/, 3];\r\n                    case 1:\r\n                        this.logger.verbose(\"acquireTokenSilent - attempting to acquire token from web flow\");\r\n                        silentCacheClient = this.createSilentCacheClient(request.correlationId);\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.InitializeSilentRequest, request.correlationId);\r\n                        return [4 /*yield*/, silentCacheClient.initializeSilentRequest(request, account)];\r\n                    case 2:\r\n                        silentRequest_1 = _b.sent();\r\n                        requestWithCLP_1 = __assign(__assign({}, request), { \r\n                            // set the request's CacheLookupPolicy to Default if it was not optionally passed in\r\n                            cacheLookupPolicy: request.cacheLookupPolicy || CacheLookupPolicy.Default });\r\n                        this.performanceClient.setPreQueueTime(PerformanceEvents.AcquireTokenFromCache, silentRequest_1.correlationId);\r\n                        result = this.acquireTokenFromCache(silentCacheClient, silentRequest_1, requestWithCLP_1).catch(function (cacheError) {\r\n                            if (requestWithCLP_1.cacheLookupPolicy === CacheLookupPolicy.AccessToken) {\r\n                                throw cacheError;\r\n                            }\r\n                            // block the reload if it occurred inside a hidden iframe\r\n                            BrowserUtils.blockReloadInHiddenIframes();\r\n                            _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, InteractionType.Silent, silentRequest_1);\r\n                            _this.performanceClient.setPreQueueTime(PerformanceEvents.AcquireTokenByRefreshToken, silentRequest_1.correlationId);\r\n                            return _this.acquireTokenByRefreshToken(silentRequest_1, requestWithCLP_1).catch(function (refreshTokenError) {\r\n                                var isServerError = refreshTokenError instanceof ServerError;\r\n                                var isInteractionRequiredError = refreshTokenError instanceof InteractionRequiredAuthError;\r\n                                var rtNotFound = (refreshTokenError.errorCode === InteractionRequiredAuthErrorMessage.noTokensFoundError.code);\r\n                                var isInvalidGrantError = (refreshTokenError.errorCode === BrowserConstants.INVALID_GRANT_ERROR);\r\n                                if ((!isServerError ||\r\n                                    !isInvalidGrantError ||\r\n                                    isInteractionRequiredError ||\r\n                                    requestWithCLP_1.cacheLookupPolicy === CacheLookupPolicy.AccessTokenAndRefreshToken ||\r\n                                    requestWithCLP_1.cacheLookupPolicy === CacheLookupPolicy.RefreshToken)\r\n                                    && (requestWithCLP_1.cacheLookupPolicy !== CacheLookupPolicy.Skip)\r\n                                    && !rtNotFound) {\r\n                                    throw refreshTokenError;\r\n                                }\r\n                                _this.logger.verbose(\"Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.\", request.correlationId);\r\n                                _this.performanceClient.setPreQueueTime(PerformanceEvents.AcquireTokenBySilentIframe, silentRequest_1.correlationId);\r\n                                return _this.acquireTokenBySilentIframe(silentRequest_1);\r\n                            });\r\n                        });\r\n                        _b.label = 3;\r\n                    case 3: return [2 /*return*/, result.then(function (response) {\r\n                            var _a;\r\n                            _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);\r\n                            (_a = _this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({\r\n                                success: true,\r\n                                fromCache: response.fromCache,\r\n                                isNativeBroker: response.fromNativeBroker,\r\n                                requestId: response.requestId\r\n                            });\r\n                            return response;\r\n                        }).catch(function (tokenRenewalError) {\r\n                            var _a;\r\n                            _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, tokenRenewalError);\r\n                            (_a = _this.astsAsyncMeasurement) === null || _a === void 0 ? void 0 : _a.endMeasurement({\r\n                                errorCode: tokenRenewalError.errorCode,\r\n                                subErrorCode: tokenRenewalError.subError,\r\n                                success: false\r\n                            });\r\n                            throw tokenRenewalError;\r\n                        }).finally(function () {\r\n                            document.removeEventListener(\"visibilitychange\", _this.trackPageVisibility);\r\n                        })];\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * Hydrates cache with the tokens and account in the AuthenticationResult object\r\n     * @param result\r\n     * @param request - The request object that was used to obtain the AuthenticationResult\r\n     * @returns\r\n     */\r\n    PublicClientApplication.prototype.hydrateCache = function (result, request) {\r\n        return __awaiter(this, void 0, void 0, function () {\r\n            var accountEntity;\r\n            return __generator(this, function (_a) {\r\n                this.logger.verbose(\"hydrateCache called\");\r\n                if (result.account) {\r\n                    accountEntity = AccountEntity.createFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);\r\n                    this.browserStorage.setAccount(accountEntity);\r\n                    if (result.fromNativeBroker) {\r\n                        this.logger.verbose(\"Response was from native broker, storing in-memory\");\r\n                        // Tokens from native broker are stored in-memory\r\n                        return [2 /*return*/, this.nativeInternalStorage.hydrateCache(result, request)];\r\n                    }\r\n                    else {\r\n                        return [2 /*return*/, this.browserStorage.hydrateCache(result, request)];\r\n                    }\r\n                }\r\n                return [2 /*return*/];\r\n            });\r\n        });\r\n    };\r\n    return PublicClientApplication;\r\n}(ClientApplication));\n\nexport { PublicClientApplication };\n//# sourceMappingURL=PublicClientApplication.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { AuthError } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * BrowserAuthErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar BrowserConfigurationAuthErrorMessage = {\r\n    redirectUriNotSet: {\r\n        code: \"redirect_uri_empty\",\r\n        desc: \"A redirect URI is required for all calls, and none has been set.\"\r\n    },\r\n    postLogoutUriNotSet: {\r\n        code: \"post_logout_uri_empty\",\r\n        desc: \"A post logout redirect has not been set.\"\r\n    },\r\n    storageNotSupportedError: {\r\n        code: \"storage_not_supported\",\r\n        desc: \"Given storage configuration option was not supported.\"\r\n    },\r\n    noRedirectCallbacksSet: {\r\n        code: \"no_redirect_callbacks\",\r\n        desc: \"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. \" +\r\n            \"More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.\"\r\n    },\r\n    invalidCallbackObject: {\r\n        code: \"invalid_callback_object\",\r\n        desc: \"The object passed for the callback was invalid. \" +\r\n            \"More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.\"\r\n    },\r\n    stubPcaInstanceCalled: {\r\n        code: \"stubbed_public_client_application_called\",\r\n        desc: \"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors\"\r\n    },\r\n    inMemRedirectUnavailable: {\r\n        code: \"in_mem_redirect_unavailable\",\r\n        desc: \"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.\"\r\n    },\r\n    entropyNotProvided: {\r\n        code: \"entropy_not_provided\",\r\n        desc: \"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option.\"\r\n    }\r\n};\r\n/**\r\n * Browser library error class thrown by the MSAL.js library for SPAs\r\n */\r\nvar BrowserConfigurationAuthError = /** @class */ (function (_super) {\r\n    __extends(BrowserConfigurationAuthError, _super);\r\n    function BrowserConfigurationAuthError(errorCode, errorMessage) {\r\n        var _this = _super.call(this, errorCode, errorMessage) || this;\r\n        _this.name = \"BrowserConfigurationAuthError\";\r\n        Object.setPrototypeOf(_this, BrowserConfigurationAuthError.prototype);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates an error thrown when the redirect uri is empty (not set by caller)\r\n     */\r\n    BrowserConfigurationAuthError.createRedirectUriEmptyError = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.redirectUriNotSet.code, BrowserConfigurationAuthErrorMessage.redirectUriNotSet.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the post-logout redirect uri is empty (not set by caller)\r\n     */\r\n    BrowserConfigurationAuthError.createPostLogoutRedirectUriEmptyError = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.code, BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.desc);\r\n    };\r\n    /**\r\n     * Creates error thrown when given storage location is not supported.\r\n     * @param givenStorageLocation\r\n     */\r\n    BrowserConfigurationAuthError.createStorageNotSupportedError = function (givenStorageLocation) {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.storageNotSupportedError.code, BrowserConfigurationAuthErrorMessage.storageNotSupportedError.desc + \" Given Location: \" + givenStorageLocation);\r\n    };\r\n    /**\r\n     * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().\r\n     */\r\n    BrowserConfigurationAuthError.createRedirectCallbacksNotSetError = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.code, BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.desc);\r\n    };\r\n    /**\r\n     * Creates error thrown when the stub instance of PublicClientApplication is called.\r\n     */\r\n    BrowserConfigurationAuthError.createStubPcaInstanceCalledError = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.code, BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.desc);\r\n    };\r\n    /*\r\n     * Create an error thrown when in-memory storage is used and storeAuthStateInCookie=false.\r\n     */\r\n    BrowserConfigurationAuthError.createInMemoryRedirectUnavailableError = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.code, BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when a crypto interface that requires entropy is initialized without entropy\r\n     */\r\n    BrowserConfigurationAuthError.createEntropyNotProvided = function () {\r\n        return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.entropyNotProvided.code, BrowserConfigurationAuthErrorMessage.entropyNotProvided.desc);\r\n    };\r\n    return BrowserConfigurationAuthError;\r\n}(AuthError));\n\nexport { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage };\n//# sourceMappingURL=BrowserConfigurationAuthError.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar EventType;\r\n(function (EventType) {\r\n    EventType[\"INITIALIZE_START\"] = \"msal:initializeStart\";\r\n    EventType[\"INITIALIZE_END\"] = \"msal:initializeEnd\";\r\n    EventType[\"ACCOUNT_ADDED\"] = \"msal:accountAdded\";\r\n    EventType[\"ACCOUNT_REMOVED\"] = \"msal:accountRemoved\";\r\n    EventType[\"LOGIN_START\"] = \"msal:loginStart\";\r\n    EventType[\"LOGIN_SUCCESS\"] = \"msal:loginSuccess\";\r\n    EventType[\"LOGIN_FAILURE\"] = \"msal:loginFailure\";\r\n    EventType[\"ACQUIRE_TOKEN_START\"] = \"msal:acquireTokenStart\";\r\n    EventType[\"ACQUIRE_TOKEN_SUCCESS\"] = \"msal:acquireTokenSuccess\";\r\n    EventType[\"ACQUIRE_TOKEN_FAILURE\"] = \"msal:acquireTokenFailure\";\r\n    EventType[\"ACQUIRE_TOKEN_NETWORK_START\"] = \"msal:acquireTokenFromNetworkStart\";\r\n    EventType[\"SSO_SILENT_START\"] = \"msal:ssoSilentStart\";\r\n    EventType[\"SSO_SILENT_SUCCESS\"] = \"msal:ssoSilentSuccess\";\r\n    EventType[\"SSO_SILENT_FAILURE\"] = \"msal:ssoSilentFailure\";\r\n    EventType[\"ACQUIRE_TOKEN_BY_CODE_START\"] = \"msal:acquireTokenByCodeStart\";\r\n    EventType[\"ACQUIRE_TOKEN_BY_CODE_SUCCESS\"] = \"msal:acquireTokenByCodeSuccess\";\r\n    EventType[\"ACQUIRE_TOKEN_BY_CODE_FAILURE\"] = \"msal:acquireTokenByCodeFailure\";\r\n    EventType[\"HANDLE_REDIRECT_START\"] = \"msal:handleRedirectStart\";\r\n    EventType[\"HANDLE_REDIRECT_END\"] = \"msal:handleRedirectEnd\";\r\n    EventType[\"POPUP_OPENED\"] = \"msal:popupOpened\";\r\n    EventType[\"LOGOUT_START\"] = \"msal:logoutStart\";\r\n    EventType[\"LOGOUT_SUCCESS\"] = \"msal:logoutSuccess\";\r\n    EventType[\"LOGOUT_FAILURE\"] = \"msal:logoutFailure\";\r\n    EventType[\"LOGOUT_END\"] = \"msal:logoutEnd\";\r\n    EventType[\"RESTORE_FROM_BFCACHE\"] = \"msal:restoreFromBFCache\";\r\n})(EventType || (EventType = {}));\n\nexport { EventType };\n//# sourceMappingURL=EventType.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { OIDC_DEFAULT_SCOPES } from '@azure/msal-common';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Constants\r\n */\r\nvar BrowserConstants = {\r\n    /**\r\n     * Interaction in progress cache value\r\n     */\r\n    INTERACTION_IN_PROGRESS_VALUE: \"interaction_in_progress\",\r\n    /**\r\n     * Invalid grant error code\r\n     */\r\n    INVALID_GRANT_ERROR: \"invalid_grant\",\r\n    /**\r\n     * Default popup window width\r\n     */\r\n    POPUP_WIDTH: 483,\r\n    /**\r\n     * Default popup window height\r\n     */\r\n    POPUP_HEIGHT: 600,\r\n    /**\r\n     * Name of the popup window starts with\r\n     */\r\n    POPUP_NAME_PREFIX: \"msal\",\r\n    /**\r\n     * Default popup monitor poll interval in milliseconds\r\n     */\r\n    DEFAULT_POLL_INTERVAL_MS: 30,\r\n    /**\r\n     * Msal-browser SKU\r\n     */\r\n    MSAL_SKU: \"msal.js.browser\",\r\n};\r\nvar NativeConstants = {\r\n    CHANNEL_ID: \"53ee284d-920a-4b59-9d30-a60315b26836\",\r\n    PREFERRED_EXTENSION_ID: \"ppnbnpeolgkicgegkbkbjmhlideopiji\",\r\n    MATS_TELEMETRY: \"MATS\"\r\n};\r\nvar NativeExtensionMethod;\r\n(function (NativeExtensionMethod) {\r\n    NativeExtensionMethod[\"HandshakeRequest\"] = \"Handshake\";\r\n    NativeExtensionMethod[\"HandshakeResponse\"] = \"HandshakeResponse\";\r\n    NativeExtensionMethod[\"GetToken\"] = \"GetToken\";\r\n    NativeExtensionMethod[\"Response\"] = \"Response\";\r\n})(NativeExtensionMethod || (NativeExtensionMethod = {}));\r\nvar BrowserCacheLocation;\r\n(function (BrowserCacheLocation) {\r\n    BrowserCacheLocation[\"LocalStorage\"] = \"localStorage\";\r\n    BrowserCacheLocation[\"SessionStorage\"] = \"sessionStorage\";\r\n    BrowserCacheLocation[\"MemoryStorage\"] = \"memoryStorage\";\r\n})(BrowserCacheLocation || (BrowserCacheLocation = {}));\r\n/**\r\n * HTTP Request types supported by MSAL.\r\n */\r\nvar HTTP_REQUEST_TYPE;\r\n(function (HTTP_REQUEST_TYPE) {\r\n    HTTP_REQUEST_TYPE[\"GET\"] = \"GET\";\r\n    HTTP_REQUEST_TYPE[\"POST\"] = \"POST\";\r\n})(HTTP_REQUEST_TYPE || (HTTP_REQUEST_TYPE = {}));\r\n/**\r\n * Temporary cache keys for MSAL, deleted after any request.\r\n */\r\nvar TemporaryCacheKeys;\r\n(function (TemporaryCacheKeys) {\r\n    TemporaryCacheKeys[\"AUTHORITY\"] = \"authority\";\r\n    TemporaryCacheKeys[\"ACQUIRE_TOKEN_ACCOUNT\"] = \"acquireToken.account\";\r\n    TemporaryCacheKeys[\"SESSION_STATE\"] = \"session.state\";\r\n    TemporaryCacheKeys[\"REQUEST_STATE\"] = \"request.state\";\r\n    TemporaryCacheKeys[\"NONCE_IDTOKEN\"] = \"nonce.id_token\";\r\n    TemporaryCacheKeys[\"ORIGIN_URI\"] = \"request.origin\";\r\n    TemporaryCacheKeys[\"RENEW_STATUS\"] = \"token.renew.status\";\r\n    TemporaryCacheKeys[\"URL_HASH\"] = \"urlHash\";\r\n    TemporaryCacheKeys[\"REQUEST_PARAMS\"] = \"request.params\";\r\n    TemporaryCacheKeys[\"SCOPES\"] = \"scopes\";\r\n    TemporaryCacheKeys[\"INTERACTION_STATUS_KEY\"] = \"interaction.status\";\r\n    TemporaryCacheKeys[\"CCS_CREDENTIAL\"] = \"ccs.credential\";\r\n    TemporaryCacheKeys[\"CORRELATION_ID\"] = \"request.correlationId\";\r\n    TemporaryCacheKeys[\"NATIVE_REQUEST\"] = \"request.native\";\r\n    TemporaryCacheKeys[\"REDIRECT_CONTEXT\"] = \"request.redirect.context\";\r\n})(TemporaryCacheKeys || (TemporaryCacheKeys = {}));\r\nvar StaticCacheKeys;\r\n(function (StaticCacheKeys) {\r\n    StaticCacheKeys[\"ACCOUNT_KEYS\"] = \"msal.account.keys\";\r\n    StaticCacheKeys[\"TOKEN_KEYS\"] = \"msal.token.keys\";\r\n})(StaticCacheKeys || (StaticCacheKeys = {}));\r\n/**\r\n * Cache keys stored in-memory\r\n */\r\nvar InMemoryCacheKeys;\r\n(function (InMemoryCacheKeys) {\r\n    InMemoryCacheKeys[\"WRAPPER_SKU\"] = \"wrapper.sku\";\r\n    InMemoryCacheKeys[\"WRAPPER_VER\"] = \"wrapper.version\";\r\n})(InMemoryCacheKeys || (InMemoryCacheKeys = {}));\r\n/**\r\n * API Codes for Telemetry purposes.\r\n * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs\r\n * 0-99 Silent Flow\r\n * 800-899 Auth Code Flow\r\n */\r\nvar ApiId;\r\n(function (ApiId) {\r\n    ApiId[ApiId[\"acquireTokenRedirect\"] = 861] = \"acquireTokenRedirect\";\r\n    ApiId[ApiId[\"acquireTokenPopup\"] = 862] = \"acquireTokenPopup\";\r\n    ApiId[ApiId[\"ssoSilent\"] = 863] = \"ssoSilent\";\r\n    ApiId[ApiId[\"acquireTokenSilent_authCode\"] = 864] = \"acquireTokenSilent_authCode\";\r\n    ApiId[ApiId[\"handleRedirectPromise\"] = 865] = \"handleRedirectPromise\";\r\n    ApiId[ApiId[\"acquireTokenByCode\"] = 866] = \"acquireTokenByCode\";\r\n    ApiId[ApiId[\"acquireTokenSilent_silentFlow\"] = 61] = \"acquireTokenSilent_silentFlow\";\r\n    ApiId[ApiId[\"logout\"] = 961] = \"logout\";\r\n    ApiId[ApiId[\"logoutPopup\"] = 962] = \"logoutPopup\";\r\n})(ApiId || (ApiId = {}));\r\n/*\r\n * Interaction type of the API - used for state and telemetry\r\n */\r\nvar InteractionType;\r\n(function (InteractionType) {\r\n    InteractionType[\"Redirect\"] = \"redirect\";\r\n    InteractionType[\"Popup\"] = \"popup\";\r\n    InteractionType[\"Silent\"] = \"silent\";\r\n    InteractionType[\"None\"] = \"none\";\r\n})(InteractionType || (InteractionType = {}));\r\n/**\r\n * Types of interaction currently in progress.\r\n * Used in events in wrapper libraries to invoke functions when certain interaction is in progress or all interactions are complete.\r\n */\r\nvar InteractionStatus;\r\n(function (InteractionStatus) {\r\n    /**\r\n     * Initial status before interaction occurs\r\n     */\r\n    InteractionStatus[\"Startup\"] = \"startup\";\r\n    /**\r\n     * Status set when all login calls occuring\r\n     */\r\n    InteractionStatus[\"Login\"] = \"login\";\r\n    /**\r\n     * Status set when logout call occuring\r\n     */\r\n    InteractionStatus[\"Logout\"] = \"logout\";\r\n    /**\r\n     * Status set for acquireToken calls\r\n     */\r\n    InteractionStatus[\"AcquireToken\"] = \"acquireToken\";\r\n    /**\r\n     * Status set for ssoSilent calls\r\n     */\r\n    InteractionStatus[\"SsoSilent\"] = \"ssoSilent\";\r\n    /**\r\n     * Status set when handleRedirect in progress\r\n     */\r\n    InteractionStatus[\"HandleRedirect\"] = \"handleRedirect\";\r\n    /**\r\n     * Status set when interaction is complete\r\n     */\r\n    InteractionStatus[\"None\"] = \"none\";\r\n})(InteractionStatus || (InteractionStatus = {}));\r\nvar DEFAULT_REQUEST = {\r\n    scopes: OIDC_DEFAULT_SCOPES\r\n};\r\n/**\r\n * JWK Key Format string (Type MUST be defined for window crypto APIs)\r\n */\r\nvar KEY_FORMAT_JWK = \"jwk\";\r\n// Supported wrapper SKUs\r\nvar WrapperSKU;\r\n(function (WrapperSKU) {\r\n    WrapperSKU[\"React\"] = \"@azure/msal-react\";\r\n    WrapperSKU[\"Angular\"] = \"@azure/msal-angular\";\r\n})(WrapperSKU || (WrapperSKU = {}));\r\n// DatabaseStorage Constants\r\nvar DB_NAME = \"msal.db\";\r\nvar DB_VERSION = 1;\r\nvar DB_TABLE_NAME = DB_NAME + \".keys\";\r\nvar CacheLookupPolicy;\r\n(function (CacheLookupPolicy) {\r\n    /*\r\n     * acquireTokenSilent will attempt to retrieve an access token from the cache. If the access token is expired\r\n     * or cannot be found the refresh token will be used to acquire a new one. Finally, if the refresh token\r\n     * is expired acquireTokenSilent will attempt to acquire new access and refresh tokens.\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"Default\"] = 0] = \"Default\";\r\n    /*\r\n     * acquireTokenSilent will only look for access tokens in the cache. It will not attempt to renew access or\r\n     * refresh tokens.\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"AccessToken\"] = 1] = \"AccessToken\";\r\n    /*\r\n     * acquireTokenSilent will attempt to retrieve an access token from the cache. If the access token is expired or\r\n     * cannot be found, the refresh token will be used to acquire a new one. If the refresh token is expired, it\r\n     * will not be renewed and acquireTokenSilent will fail.\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"AccessTokenAndRefreshToken\"] = 2] = \"AccessTokenAndRefreshToken\";\r\n    /*\r\n     * acquireTokenSilent will not attempt to retrieve access tokens from the cache and will instead attempt to\r\n     * exchange the cached refresh token for a new access token. If the refresh token is expired, it will not be\r\n     * renewed and acquireTokenSilent will fail.\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"RefreshToken\"] = 3] = \"RefreshToken\";\r\n    /*\r\n     * acquireTokenSilent will not look in the cache for the access token. It will go directly to network with the\r\n     * cached refresh token. If the refresh token is expired an attempt will be made to renew it. This is equivalent to\r\n     * setting \"forceRefresh: true\".\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"RefreshTokenAndNetwork\"] = 4] = \"RefreshTokenAndNetwork\";\r\n    /*\r\n     * acquireTokenSilent will attempt to renew both access and refresh tokens. It will not look in the cache. This will\r\n     * always fail if 3rd party cookies are blocked by the browser.\r\n     */\r\n    CacheLookupPolicy[CacheLookupPolicy[\"Skip\"] = 5] = \"Skip\";\r\n})(CacheLookupPolicy || (CacheLookupPolicy = {}));\n\nexport { ApiId, BrowserCacheLocation, BrowserConstants, CacheLookupPolicy, DB_NAME, DB_TABLE_NAME, DB_VERSION, DEFAULT_REQUEST, HTTP_REQUEST_TYPE, InMemoryCacheKeys, InteractionStatus, InteractionType, KEY_FORMAT_JWK, NativeConstants, NativeExtensionMethod, StaticCacheKeys, TemporaryCacheKeys, WrapperSKU };\n//# sourceMappingURL=BrowserConstants.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nfunction __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\n\nexport { __assign, __awaiter, __extends, __generator, __spreadArrays };\n//# sourceMappingURL=_tslib.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { Separators, Constants } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Function to build a client info object from server clientInfo string\r\n * @param rawClientInfo\r\n * @param crypto\r\n */\r\nfunction buildClientInfo(rawClientInfo, crypto) {\r\n    if (StringUtils.isEmpty(rawClientInfo)) {\r\n        throw ClientAuthError.createClientInfoEmptyError();\r\n    }\r\n    try {\r\n        var decodedClientInfo = crypto.base64Decode(rawClientInfo);\r\n        return JSON.parse(decodedClientInfo);\r\n    }\r\n    catch (e) {\r\n        throw ClientAuthError.createClientInfoDecodingError(e.message);\r\n    }\r\n}\r\n/**\r\n * Function to build a client info object from cached homeAccountId string\r\n * @param homeAccountId\r\n */\r\nfunction buildClientInfoFromHomeAccountId(homeAccountId) {\r\n    if (StringUtils.isEmpty(homeAccountId)) {\r\n        throw ClientAuthError.createClientInfoDecodingError(\"Home account ID was empty.\");\r\n    }\r\n    var clientInfoParts = homeAccountId.split(Separators.CLIENT_INFO_SEPARATOR, 2);\r\n    return {\r\n        uid: clientInfoParts[0],\r\n        utid: clientInfoParts.length < 2 ? Constants.EMPTY_STRING : clientInfoParts[1]\r\n    };\r\n}\n\nexport { buildClientInfo, buildClientInfoFromHomeAccountId };\n//# sourceMappingURL=ClientInfo.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Authority types supported by MSAL.\r\n */\r\nvar AuthorityType;\r\n(function (AuthorityType) {\r\n    AuthorityType[AuthorityType[\"Default\"] = 0] = \"Default\";\r\n    AuthorityType[AuthorityType[\"Adfs\"] = 1] = \"Adfs\";\r\n    AuthorityType[AuthorityType[\"Dsts\"] = 2] = \"Dsts\";\r\n    AuthorityType[AuthorityType[\"Ciam\"] = 3] = \"Ciam\";\r\n})(AuthorityType || (AuthorityType = {}));\n\nexport { AuthorityType };\n//# sourceMappingURL=AuthorityType.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Protocol modes supported by MSAL.\r\n */\r\nvar ProtocolMode;\r\n(function (ProtocolMode) {\r\n    ProtocolMode[\"AAD\"] = \"AAD\";\r\n    ProtocolMode[\"OIDC\"] = \"OIDC\";\r\n})(ProtocolMode || (ProtocolMode = {}));\n\nexport { ProtocolMode };\n//# sourceMappingURL=ProtocolMode.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { Separators, CacheAccountType, Constants } from '../../utils/Constants.js';\nimport { buildClientInfo } from '../../account/ClientInfo.js';\nimport { StringUtils } from '../../utils/StringUtils.js';\nimport { ClientAuthError } from '../../error/ClientAuthError.js';\nimport { AuthorityType } from '../../authority/AuthorityType.js';\nimport { ProtocolMode } from '../../authority/ProtocolMode.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).\r\n *\r\n * Key : Value Schema\r\n *\r\n * Key: <home_account_id>-<environment>-<realm*>\r\n *\r\n * Value Schema:\r\n * {\r\n *      homeAccountId: home account identifier for the auth scheme,\r\n *      environment: entity that issued the token, represented as a full host\r\n *      realm: Full tenant or organizational identifier that the account belongs to\r\n *      localAccountId: Original tenant-specific accountID, usually used for legacy cases\r\n *      username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt\r\n *      authorityType: Accounts authority type as a string\r\n *      clientInfo: Full base64 encoded client info received from ESTS\r\n *      name: Full name for the account, including given name and family name\r\n *      lastModificationTime: last time this entity was modified in the cache\r\n *      lastModificationApp:\r\n *      idTokenClaims: Object containing claims parsed from ID token\r\n *      nativeAccountId: Account identifier on the native device\r\n * }\r\n */\r\nvar AccountEntity = /** @class */ (function () {\r\n    function AccountEntity() {\r\n    }\r\n    /**\r\n     * Generate Account Id key component as per the schema: <home_account_id>-<environment>\r\n     */\r\n    AccountEntity.prototype.generateAccountId = function () {\r\n        var accountId = [this.homeAccountId, this.environment];\r\n        return accountId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * Generate Account Cache Key as per the schema: <home_account_id>-<environment>-<realm*>\r\n     */\r\n    AccountEntity.prototype.generateAccountKey = function () {\r\n        return AccountEntity.generateAccountCacheKey({\r\n            homeAccountId: this.homeAccountId,\r\n            environment: this.environment,\r\n            tenantId: this.realm,\r\n            username: this.username,\r\n            localAccountId: this.localAccountId\r\n        });\r\n    };\r\n    /**\r\n     * Returns the AccountInfo interface for this account.\r\n     */\r\n    AccountEntity.prototype.getAccountInfo = function () {\r\n        return {\r\n            homeAccountId: this.homeAccountId,\r\n            environment: this.environment,\r\n            tenantId: this.realm,\r\n            username: this.username,\r\n            localAccountId: this.localAccountId,\r\n            name: this.name,\r\n            idTokenClaims: this.idTokenClaims,\r\n            nativeAccountId: this.nativeAccountId,\r\n            authorityType: this.authorityType\r\n        };\r\n    };\r\n    /**\r\n     * Generates account key from interface\r\n     * @param accountInterface\r\n     */\r\n    AccountEntity.generateAccountCacheKey = function (accountInterface) {\r\n        var accountKey = [\r\n            accountInterface.homeAccountId,\r\n            accountInterface.environment || Constants.EMPTY_STRING,\r\n            accountInterface.tenantId || Constants.EMPTY_STRING,\r\n        ];\r\n        return accountKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();\r\n    };\r\n    /**\r\n     * Build Account cache from account properties.\r\n     * @param accountDetails\r\n     * @param authority\r\n     */\r\n    AccountEntity.createAccount = function (accountDetails, authority) {\r\n        var account = new AccountEntity();\r\n        if (authority.authorityType === AuthorityType.Adfs) {\r\n            account.authorityType = CacheAccountType.ADFS_ACCOUNT_TYPE;\r\n        }\r\n        else if (authority.protocolMode === ProtocolMode.AAD) {\r\n            account.authorityType = CacheAccountType.MSSTS_ACCOUNT_TYPE;\r\n        }\r\n        else {\r\n            account.authorityType = CacheAccountType.GENERIC_ACCOUNT_TYPE;\r\n        }\r\n        account.clientInfo = accountDetails.clientInfo;\r\n        account.homeAccountId = accountDetails.homeAccountId;\r\n        account.nativeAccountId = accountDetails.nativeAccountId;\r\n        var env = accountDetails.environment || (authority && authority.getPreferredCache());\r\n        if (!env) {\r\n            throw ClientAuthError.createInvalidCacheEnvironmentError();\r\n        }\r\n        account.environment = env;\r\n        // non AAD scenarios can have empty realm\r\n        account.realm = accountDetails.idTokenClaims.tid || Constants.EMPTY_STRING;\r\n        account.idTokenClaims = accountDetails.idTokenClaims;\r\n        // How do you account for MSA CID here?\r\n        account.localAccountId = accountDetails.idTokenClaims.oid || accountDetails.idTokenClaims.sub || Constants.EMPTY_STRING;\r\n        /*\r\n         * In B2C scenarios the emails claim is used instead of preferred_username and it is an array.\r\n         * In most cases it will contain a single email. This field should not be relied upon if a custom\r\n         * policy is configured to return more than 1 email.\r\n         */\r\n        if (account.authorityType === CacheAccountType.MSSTS_ACCOUNT_TYPE) {\r\n            var preferredUsername = accountDetails.idTokenClaims.preferred_username;\r\n            var email = (accountDetails.idTokenClaims.emails) ? accountDetails.idTokenClaims.emails[0] : null;\r\n            account.username = preferredUsername || email || \"\";\r\n        }\r\n        else {\r\n            account.username = accountDetails.idTokenClaims.upn || \"\";\r\n        }\r\n        account.name = accountDetails.idTokenClaims.name;\r\n        account.cloudGraphHostName = accountDetails.cloudGraphHostName;\r\n        account.msGraphHost = accountDetails.msGraphHost;\r\n        return account;\r\n    };\r\n    /**\r\n     * Creates an account object from AccountInfo\r\n     * @param accountInfo\r\n     * @param cloudGraphHostName\r\n     * @param msGraphHost\r\n     * @returns AccountEntity\r\n     */\r\n    AccountEntity.createFromAccountInfo = function (accountInfo, cloudGraphHostName, msGraphHost) {\r\n        var account = new AccountEntity();\r\n        account.authorityType =\r\n            accountInfo.authorityType || CacheAccountType.GENERIC_ACCOUNT_TYPE;\r\n        account.homeAccountId = accountInfo.homeAccountId;\r\n        account.localAccountId = accountInfo.localAccountId;\r\n        account.nativeAccountId = accountInfo.nativeAccountId;\r\n        account.realm = accountInfo.tenantId;\r\n        account.environment = accountInfo.environment;\r\n        account.username = accountInfo.username;\r\n        account.name = accountInfo.name;\r\n        account.idTokenClaims = accountInfo.idTokenClaims;\r\n        account.cloudGraphHostName = cloudGraphHostName;\r\n        account.msGraphHost = msGraphHost;\r\n        return account;\r\n    };\r\n    /**\r\n     * Generate HomeAccountId from server response\r\n     * @param serverClientInfo\r\n     * @param authType\r\n     */\r\n    AccountEntity.generateHomeAccountId = function (serverClientInfo, authType, logger, cryptoObj, idTokenClaims) {\r\n        var accountId = (idTokenClaims === null || idTokenClaims === void 0 ? void 0 : idTokenClaims.sub) ? idTokenClaims.sub : Constants.EMPTY_STRING;\r\n        // since ADFS does not have tid and does not set client_info\r\n        if (authType === AuthorityType.Adfs || authType === AuthorityType.Dsts) {\r\n            return accountId;\r\n        }\r\n        // for cases where there is clientInfo\r\n        if (serverClientInfo) {\r\n            try {\r\n                var clientInfo = buildClientInfo(serverClientInfo, cryptoObj);\r\n                if (!StringUtils.isEmpty(clientInfo.uid) && !StringUtils.isEmpty(clientInfo.utid)) {\r\n                    return \"\" + clientInfo.uid + Separators.CLIENT_INFO_SEPARATOR + clientInfo.utid;\r\n                }\r\n            }\r\n            catch (e) { }\r\n        }\r\n        // default to \"sub\" claim\r\n        logger.verbose(\"No client info in response\");\r\n        return accountId;\r\n    };\r\n    /**\r\n     * Validates an entity: checks for all expected params\r\n     * @param entity\r\n     */\r\n    AccountEntity.isAccountEntity = function (entity) {\r\n        if (!entity) {\r\n            return false;\r\n        }\r\n        return (entity.hasOwnProperty(\"homeAccountId\") &&\r\n            entity.hasOwnProperty(\"environment\") &&\r\n            entity.hasOwnProperty(\"realm\") &&\r\n            entity.hasOwnProperty(\"localAccountId\") &&\r\n            entity.hasOwnProperty(\"username\") &&\r\n            entity.hasOwnProperty(\"authorityType\"));\r\n    };\r\n    /**\r\n     * Helper function to determine whether 2 accountInfo objects represent the same account\r\n     * @param accountA\r\n     * @param accountB\r\n     * @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality\r\n     */\r\n    AccountEntity.accountInfoIsEqual = function (accountA, accountB, compareClaims) {\r\n        if (!accountA || !accountB) {\r\n            return false;\r\n        }\r\n        var claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false\r\n        if (compareClaims) {\r\n            var accountAClaims = (accountA.idTokenClaims || {});\r\n            var accountBClaims = (accountB.idTokenClaims || {});\r\n            // issued at timestamp and nonce are expected to change each time a new id token is acquired\r\n            claimsMatch = (accountAClaims.iat === accountBClaims.iat) &&\r\n                (accountAClaims.nonce === accountBClaims.nonce);\r\n        }\r\n        return (accountA.homeAccountId === accountB.homeAccountId) &&\r\n            (accountA.localAccountId === accountB.localAccountId) &&\r\n            (accountA.username === accountB.username) &&\r\n            (accountA.tenantId === accountB.tenantId) &&\r\n            (accountA.environment === accountB.environment) &&\r\n            (accountA.nativeAccountId === accountB.nativeAccountId) &&\r\n            claimsMatch;\r\n    };\r\n    return AccountEntity;\r\n}());\n\nexport { AccountEntity };\n//# sourceMappingURL=AccountEntity.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { Constants } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * AuthErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar AuthErrorMessage = {\r\n    unexpectedError: {\r\n        code: \"unexpected_error\",\r\n        desc: \"Unexpected error in authentication.\"\r\n    },\r\n    postRequestFailed: {\r\n        code: \"post_request_failed\",\r\n        desc: \"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.\"\r\n    }\r\n};\r\n/**\r\n * General error class thrown by the MSAL.js library.\r\n */\r\nvar AuthError = /** @class */ (function (_super) {\r\n    __extends(AuthError, _super);\r\n    function AuthError(errorCode, errorMessage, suberror) {\r\n        var _this = this;\r\n        var errorString = errorMessage ? errorCode + \": \" + errorMessage : errorCode;\r\n        _this = _super.call(this, errorString) || this;\r\n        Object.setPrototypeOf(_this, AuthError.prototype);\r\n        _this.errorCode = errorCode || Constants.EMPTY_STRING;\r\n        _this.errorMessage = errorMessage || Constants.EMPTY_STRING;\r\n        _this.subError = suberror || Constants.EMPTY_STRING;\r\n        _this.name = \"AuthError\";\r\n        return _this;\r\n    }\r\n    AuthError.prototype.setCorrelationId = function (correlationId) {\r\n        this.correlationId = correlationId;\r\n    };\r\n    /**\r\n     * Creates an error that is thrown when something unexpected happens in the library.\r\n     * @param errDesc\r\n     */\r\n    AuthError.createUnexpectedError = function (errDesc) {\r\n        return new AuthError(AuthErrorMessage.unexpectedError.code, AuthErrorMessage.unexpectedError.desc + \": \" + errDesc);\r\n    };\r\n    /**\r\n     * Creates an error for post request failures.\r\n     * @param errDesc\r\n     * @returns\r\n     */\r\n    AuthError.createPostRequestFailed = function (errDesc) {\r\n        return new AuthError(AuthErrorMessage.postRequestFailed.code, AuthErrorMessage.postRequestFailed.desc + \": \" + errDesc);\r\n    };\r\n    return AuthError;\r\n}(Error));\n\nexport { AuthError, AuthErrorMessage };\n//# sourceMappingURL=AuthError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { AuthError } from './AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * ClientAuthErrorMessage class containing string constants used by error codes and messages.\r\n */\r\nvar ClientAuthErrorMessage = {\r\n    clientInfoDecodingError: {\r\n        code: \"client_info_decoding_error\",\r\n        desc: \"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause.\"\r\n    },\r\n    clientInfoEmptyError: {\r\n        code: \"client_info_empty_error\",\r\n        desc: \"The client info was empty. Please review the trace to determine the root cause.\"\r\n    },\r\n    tokenParsingError: {\r\n        code: \"token_parsing_error\",\r\n        desc: \"Token cannot be parsed. Please review stack trace to determine root cause.\"\r\n    },\r\n    nullOrEmptyToken: {\r\n        code: \"null_or_empty_token\",\r\n        desc: \"The token is null or empty. Please review the trace to determine the root cause.\"\r\n    },\r\n    endpointResolutionError: {\r\n        code: \"endpoints_resolution_error\",\r\n        desc: \"Error: could not resolve endpoints. Please check network and try again.\"\r\n    },\r\n    networkError: {\r\n        code: \"network_error\",\r\n        desc: \"Network request failed. Please check network trace to determine root cause.\"\r\n    },\r\n    unableToGetOpenidConfigError: {\r\n        code: \"openid_config_error\",\r\n        desc: \"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.\"\r\n    },\r\n    hashNotDeserialized: {\r\n        code: \"hash_not_deserialized\",\r\n        desc: \"The hash parameters could not be deserialized. Please review the trace to determine the root cause.\"\r\n    },\r\n    blankGuidGenerated: {\r\n        code: \"blank_guid_generated\",\r\n        desc: \"The guid generated was blank. Please review the trace to determine the root cause.\"\r\n    },\r\n    invalidStateError: {\r\n        code: \"invalid_state\",\r\n        desc: \"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState().\"\r\n    },\r\n    stateMismatchError: {\r\n        code: \"state_mismatch\",\r\n        desc: \"State mismatch error. Please check your network. Continued requests may cause cache overflow.\"\r\n    },\r\n    stateNotFoundError: {\r\n        code: \"state_not_found\",\r\n        desc: \"State not found\"\r\n    },\r\n    nonceMismatchError: {\r\n        code: \"nonce_mismatch\",\r\n        desc: \"Nonce mismatch error. This may be caused by a race condition in concurrent requests.\"\r\n    },\r\n    nonceNotFoundError: {\r\n        code: \"nonce_not_found\",\r\n        desc: \"nonce not found\"\r\n    },\r\n    authTimeNotFoundError: {\r\n        code: \"auth_time_not_found\",\r\n        desc: \"Max Age was requested and the ID token is missing the auth_time variable.\" +\r\n            \" auth_time is an optional claim and is not enabled by default - it must be enabled.\" +\r\n            \" See https://aka.ms/msaljs/optional-claims for more information.\"\r\n    },\r\n    maxAgeTranspiredError: {\r\n        code: \"max_age_transpired\",\r\n        desc: \"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.\"\r\n    },\r\n    noTokensFoundError: {\r\n        code: \"no_tokens_found\",\r\n        desc: \"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken().\"\r\n    },\r\n    multipleMatchingTokens: {\r\n        code: \"multiple_matching_tokens\",\r\n        desc: \"The cache contains multiple tokens satisfying the requirements. \" +\r\n            \"Call AcquireToken again providing more requirements such as authority or account.\"\r\n    },\r\n    multipleMatchingAccounts: {\r\n        code: \"multiple_matching_accounts\",\r\n        desc: \"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account\"\r\n    },\r\n    multipleMatchingAppMetadata: {\r\n        code: \"multiple_matching_appMetadata\",\r\n        desc: \"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata\"\r\n    },\r\n    tokenRequestCannotBeMade: {\r\n        code: \"request_cannot_be_made\",\r\n        desc: \"Token request cannot be made without authorization code or refresh token.\"\r\n    },\r\n    appendEmptyScopeError: {\r\n        code: \"cannot_append_empty_scope\",\r\n        desc: \"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info.\"\r\n    },\r\n    removeEmptyScopeError: {\r\n        code: \"cannot_remove_empty_scope\",\r\n        desc: \"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info.\"\r\n    },\r\n    appendScopeSetError: {\r\n        code: \"cannot_append_scopeset\",\r\n        desc: \"Cannot append ScopeSet due to error.\"\r\n    },\r\n    emptyInputScopeSetError: {\r\n        code: \"empty_input_scopeset\",\r\n        desc: \"Empty input ScopeSet cannot be processed.\"\r\n    },\r\n    DeviceCodePollingCancelled: {\r\n        code: \"device_code_polling_cancelled\",\r\n        desc: \"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.\"\r\n    },\r\n    DeviceCodeExpired: {\r\n        code: \"device_code_expired\",\r\n        desc: \"Device code is expired.\"\r\n    },\r\n    DeviceCodeUnknownError: {\r\n        code: \"device_code_unknown_error\",\r\n        desc: \"Device code stopped polling for unknown reasons.\"\r\n    },\r\n    NoAccountInSilentRequest: {\r\n        code: \"no_account_in_silent_request\",\r\n        desc: \"Please pass an account object, silent flow is not supported without account information\"\r\n    },\r\n    invalidCacheRecord: {\r\n        code: \"invalid_cache_record\",\r\n        desc: \"Cache record object was null or undefined.\"\r\n    },\r\n    invalidCacheEnvironment: {\r\n        code: \"invalid_cache_environment\",\r\n        desc: \"Invalid environment when attempting to create cache entry\"\r\n    },\r\n    noAccountFound: {\r\n        code: \"no_account_found\",\r\n        desc: \"No account found in cache for given key.\"\r\n    },\r\n    CachePluginError: {\r\n        code: \"no cache plugin set on CacheManager\",\r\n        desc: \"ICachePlugin needs to be set before using readFromStorage or writeFromStorage\"\r\n    },\r\n    noCryptoObj: {\r\n        code: \"no_crypto_object\",\r\n        desc: \"No crypto object detected. This is required for the following operation: \"\r\n    },\r\n    invalidCacheType: {\r\n        code: \"invalid_cache_type\",\r\n        desc: \"Invalid cache type\"\r\n    },\r\n    unexpectedAccountType: {\r\n        code: \"unexpected_account_type\",\r\n        desc: \"Unexpected account type.\"\r\n    },\r\n    unexpectedCredentialType: {\r\n        code: \"unexpected_credential_type\",\r\n        desc: \"Unexpected credential type.\"\r\n    },\r\n    invalidAssertion: {\r\n        code: \"invalid_assertion\",\r\n        desc: \"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515\"\r\n    },\r\n    invalidClientCredential: {\r\n        code: \"invalid_client_credential\",\r\n        desc: \"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential\"\r\n    },\r\n    tokenRefreshRequired: {\r\n        code: \"token_refresh_required\",\r\n        desc: \"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.\"\r\n    },\r\n    userTimeoutReached: {\r\n        code: \"user_timeout_reached\",\r\n        desc: \"User defined timeout for device code polling reached\",\r\n    },\r\n    tokenClaimsRequired: {\r\n        code: \"token_claims_cnf_required_for_signedjwt\",\r\n        desc: \"Cannot generate a POP jwt if the token_claims are not populated\"\r\n    },\r\n    noAuthorizationCodeFromServer: {\r\n        code: \"authorization_code_missing_from_server_response\",\r\n        desc: \"Server response does not contain an authorization code to proceed\"\r\n    },\r\n    noAzureRegionDetected: {\r\n        code: \"no_azure_region_detected\",\r\n        desc: \"No azure region was detected and no fallback was made available\"\r\n    },\r\n    accessTokenEntityNullError: {\r\n        code: \"access_token_entity_null\",\r\n        desc: \"Access token entity is null, please check logs and cache to ensure a valid access token is present.\"\r\n    },\r\n    bindingKeyNotRemovedError: {\r\n        code: \"binding_key_not_removed\",\r\n        desc: \"Could not remove the credential's binding key from storage.\"\r\n    },\r\n    logoutNotSupported: {\r\n        code: \"end_session_endpoint_not_supported\",\r\n        desc: \"Provided authority does not support logout.\"\r\n    },\r\n    keyIdMissing: {\r\n        code: \"key_id_missing\",\r\n        desc: \"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.\"\r\n    },\r\n    noNetworkConnectivity: {\r\n        code: \"no_network_connectivity\",\r\n        desc: \"No network connectivity. Check your internet connection.\"\r\n    },\r\n    userCanceledError: {\r\n        code: \"user_canceled\",\r\n        desc: \"User canceled the flow.\"\r\n    }\r\n};\r\n/**\r\n * Error thrown when there is an error in the client code running on the browser.\r\n */\r\nvar ClientAuthError = /** @class */ (function (_super) {\r\n    __extends(ClientAuthError, _super);\r\n    function ClientAuthError(errorCode, errorMessage) {\r\n        var _this = _super.call(this, errorCode, errorMessage) || this;\r\n        _this.name = \"ClientAuthError\";\r\n        Object.setPrototypeOf(_this, ClientAuthError.prototype);\r\n        return _this;\r\n    }\r\n    /**\r\n     * Creates an error thrown when client info object doesn't decode correctly.\r\n     * @param caughtError\r\n     */\r\n    ClientAuthError.createClientInfoDecodingError = function (caughtError) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.clientInfoDecodingError.code, ClientAuthErrorMessage.clientInfoDecodingError.desc + \" Failed with error: \" + caughtError);\r\n    };\r\n    /**\r\n     * Creates an error thrown if the client info is empty.\r\n     * @param rawClientInfo\r\n     */\r\n    ClientAuthError.createClientInfoEmptyError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.clientInfoEmptyError.code, \"\" + ClientAuthErrorMessage.clientInfoEmptyError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the id token extraction errors out.\r\n     * @param err\r\n     */\r\n    ClientAuthError.createTokenParsingError = function (caughtExtractionError) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.tokenParsingError.code, ClientAuthErrorMessage.tokenParsingError.desc + \" Failed with error: \" + caughtExtractionError);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the id token string is null or empty.\r\n     * @param invalidRawTokenString\r\n     */\r\n    ClientAuthError.createTokenNullOrEmptyError = function (invalidRawTokenString) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.nullOrEmptyToken.code, ClientAuthErrorMessage.nullOrEmptyToken.desc + \" Raw Token Value: \" + invalidRawTokenString);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the endpoint discovery doesn't complete correctly.\r\n     */\r\n    ClientAuthError.createEndpointDiscoveryIncompleteError = function (errDetail) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.endpointResolutionError.code, ClientAuthErrorMessage.endpointResolutionError.desc + \" Detail: \" + errDetail);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the fetch client throws\r\n     */\r\n    ClientAuthError.createNetworkError = function (endpoint, errDetail) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.networkError.code, ClientAuthErrorMessage.networkError.desc + \" | Fetch client threw: \" + errDetail + \" | Attempted to reach: \" + endpoint.split(\"?\")[0]);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the openid-configuration endpoint cannot be reached or does not contain the required data\r\n     */\r\n    ClientAuthError.createUnableToGetOpenidConfigError = function (errDetail) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.unableToGetOpenidConfigError.code, ClientAuthErrorMessage.unableToGetOpenidConfigError.desc + \" Attempted to retrieve endpoints from: \" + errDetail);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the hash cannot be deserialized.\r\n     * @param hashParamObj\r\n     */\r\n    ClientAuthError.createHashNotDeserializedError = function (hashParamObj) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.hashNotDeserialized.code, ClientAuthErrorMessage.hashNotDeserialized.desc + \" Given Object: \" + hashParamObj);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the state cannot be parsed.\r\n     * @param invalidState\r\n     */\r\n    ClientAuthError.createInvalidStateError = function (invalidState, errorString) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidStateError.code, ClientAuthErrorMessage.invalidStateError.desc + \" Invalid State: \" + invalidState + \", Root Err: \" + errorString);\r\n    };\r\n    /**\r\n     * Creates an error thrown when two states do not match.\r\n     */\r\n    ClientAuthError.createStateMismatchError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.stateMismatchError.code, ClientAuthErrorMessage.stateMismatchError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the state is not present\r\n     * @param missingState\r\n     */\r\n    ClientAuthError.createStateNotFoundError = function (missingState) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.stateNotFoundError.code, ClientAuthErrorMessage.stateNotFoundError.desc + \":  \" + missingState);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the nonce does not match.\r\n     */\r\n    ClientAuthError.createNonceMismatchError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.nonceMismatchError.code, ClientAuthErrorMessage.nonceMismatchError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when max_age was provided in the request, but auth_time is not in the token claims\r\n     * @param missingNonce\r\n     */\r\n    ClientAuthError.createAuthTimeNotFoundError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.authTimeNotFoundError.code, ClientAuthErrorMessage.authTimeNotFoundError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when too much time has elapsed since the last end-user authentication\r\n     */\r\n    ClientAuthError.createMaxAgeTranspiredError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.maxAgeTranspiredError.code, ClientAuthErrorMessage.maxAgeTranspiredError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the mnonce is not present\r\n     * @param missingNonce\r\n     */\r\n    ClientAuthError.createNonceNotFoundError = function (missingNonce) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.nonceNotFoundError.code, ClientAuthErrorMessage.nonceNotFoundError.desc + \":  \" + missingNonce);\r\n    };\r\n    /**\r\n     * Throws error when multiple tokens are in cache.\r\n     */\r\n    ClientAuthError.createMultipleMatchingTokensInCacheError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingTokens.code, ClientAuthErrorMessage.multipleMatchingTokens.desc + \".\");\r\n    };\r\n    /**\r\n     * Throws error when multiple accounts are in cache for the given params\r\n     */\r\n    ClientAuthError.createMultipleMatchingAccountsInCacheError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingAccounts.code, ClientAuthErrorMessage.multipleMatchingAccounts.desc);\r\n    };\r\n    /**\r\n     * Throws error when multiple appMetada are in cache for the given clientId.\r\n     */\r\n    ClientAuthError.createMultipleMatchingAppMetadataInCacheError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.multipleMatchingAppMetadata.code, ClientAuthErrorMessage.multipleMatchingAppMetadata.desc);\r\n    };\r\n    /**\r\n     * Throws error when no auth code or refresh token is given to ServerTokenRequestParameters.\r\n     */\r\n    ClientAuthError.createTokenRequestCannotBeMadeError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.tokenRequestCannotBeMade.code, ClientAuthErrorMessage.tokenRequestCannotBeMade.desc);\r\n    };\r\n    /**\r\n     * Throws error when attempting to append a null, undefined or empty scope to a set\r\n     * @param givenScope\r\n     */\r\n    ClientAuthError.createAppendEmptyScopeToSetError = function (givenScope) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.appendEmptyScopeError.code, ClientAuthErrorMessage.appendEmptyScopeError.desc + \" Given Scope: \" + givenScope);\r\n    };\r\n    /**\r\n     * Throws error when attempting to append a null, undefined or empty scope to a set\r\n     * @param givenScope\r\n     */\r\n    ClientAuthError.createRemoveEmptyScopeFromSetError = function (givenScope) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.removeEmptyScopeError.code, ClientAuthErrorMessage.removeEmptyScopeError.desc + \" Given Scope: \" + givenScope);\r\n    };\r\n    /**\r\n     * Throws error when attempting to append null or empty ScopeSet.\r\n     * @param appendError\r\n     */\r\n    ClientAuthError.createAppendScopeSetError = function (appendError) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.appendScopeSetError.code, ClientAuthErrorMessage.appendScopeSetError.desc + \" Detail Error: \" + appendError);\r\n    };\r\n    /**\r\n     * Throws error if ScopeSet is null or undefined.\r\n     * @param givenScopeSet\r\n     */\r\n    ClientAuthError.createEmptyInputScopeSetError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.emptyInputScopeSetError.code, \"\" + ClientAuthErrorMessage.emptyInputScopeSetError.desc);\r\n    };\r\n    /**\r\n     * Throws error if user sets CancellationToken.cancel = true during polling of token endpoint during device code flow\r\n     */\r\n    ClientAuthError.createDeviceCodeCancelledError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.DeviceCodePollingCancelled.code, \"\" + ClientAuthErrorMessage.DeviceCodePollingCancelled.desc);\r\n    };\r\n    /**\r\n     * Throws error if device code is expired\r\n     */\r\n    ClientAuthError.createDeviceCodeExpiredError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.DeviceCodeExpired.code, \"\" + ClientAuthErrorMessage.DeviceCodeExpired.desc);\r\n    };\r\n    /**\r\n     * Throws error if device code is expired\r\n     */\r\n    ClientAuthError.createDeviceCodeUnknownError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.DeviceCodeUnknownError.code, \"\" + ClientAuthErrorMessage.DeviceCodeUnknownError.desc);\r\n    };\r\n    /**\r\n     * Throws error when silent requests are made without an account object\r\n     */\r\n    ClientAuthError.createNoAccountInSilentRequestError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.NoAccountInSilentRequest.code, \"\" + ClientAuthErrorMessage.NoAccountInSilentRequest.desc);\r\n    };\r\n    /**\r\n     * Throws error when cache record is null or undefined.\r\n     */\r\n    ClientAuthError.createNullOrUndefinedCacheRecord = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidCacheRecord.code, ClientAuthErrorMessage.invalidCacheRecord.desc);\r\n    };\r\n    /**\r\n     * Throws error when provided environment is not part of the CloudDiscoveryMetadata object\r\n     */\r\n    ClientAuthError.createInvalidCacheEnvironmentError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidCacheEnvironment.code, ClientAuthErrorMessage.invalidCacheEnvironment.desc);\r\n    };\r\n    /**\r\n     * Throws error when account is not found in cache.\r\n     */\r\n    ClientAuthError.createNoAccountFoundError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.noAccountFound.code, ClientAuthErrorMessage.noAccountFound.desc);\r\n    };\r\n    /**\r\n     * Throws error if ICachePlugin not set on CacheManager.\r\n     */\r\n    ClientAuthError.createCachePluginError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.CachePluginError.code, \"\" + ClientAuthErrorMessage.CachePluginError.desc);\r\n    };\r\n    /**\r\n     * Throws error if crypto object not found.\r\n     * @param operationName\r\n     */\r\n    ClientAuthError.createNoCryptoObjectError = function (operationName) {\r\n        return new ClientAuthError(ClientAuthErrorMessage.noCryptoObj.code, \"\" + ClientAuthErrorMessage.noCryptoObj.desc + operationName);\r\n    };\r\n    /**\r\n     * Throws error if cache type is invalid.\r\n     */\r\n    ClientAuthError.createInvalidCacheTypeError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidCacheType.code, \"\" + ClientAuthErrorMessage.invalidCacheType.desc);\r\n    };\r\n    /**\r\n     * Throws error if unexpected account type.\r\n     */\r\n    ClientAuthError.createUnexpectedAccountTypeError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.unexpectedAccountType.code, \"\" + ClientAuthErrorMessage.unexpectedAccountType.desc);\r\n    };\r\n    /**\r\n     * Throws error if unexpected credential type.\r\n     */\r\n    ClientAuthError.createUnexpectedCredentialTypeError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.unexpectedCredentialType.code, \"\" + ClientAuthErrorMessage.unexpectedCredentialType.desc);\r\n    };\r\n    /**\r\n     * Throws error if client assertion is not valid.\r\n     */\r\n    ClientAuthError.createInvalidAssertionError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidAssertion.code, \"\" + ClientAuthErrorMessage.invalidAssertion.desc);\r\n    };\r\n    /**\r\n     * Throws error if client assertion is not valid.\r\n     */\r\n    ClientAuthError.createInvalidCredentialError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.invalidClientCredential.code, \"\" + ClientAuthErrorMessage.invalidClientCredential.desc);\r\n    };\r\n    /**\r\n     * Throws error if token cannot be retrieved from cache due to refresh being required.\r\n     */\r\n    ClientAuthError.createRefreshRequiredError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.tokenRefreshRequired.code, ClientAuthErrorMessage.tokenRefreshRequired.desc);\r\n    };\r\n    /**\r\n     * Throws error if the user defined timeout is reached.\r\n     */\r\n    ClientAuthError.createUserTimeoutReachedError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.userTimeoutReached.code, ClientAuthErrorMessage.userTimeoutReached.desc);\r\n    };\r\n    /*\r\n     * Throws error if token claims are not populated for a signed jwt generation\r\n     */\r\n    ClientAuthError.createTokenClaimsRequiredError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.tokenClaimsRequired.code, ClientAuthErrorMessage.tokenClaimsRequired.desc);\r\n    };\r\n    /**\r\n     * Throws error when the authorization code is missing from the server response\r\n     */\r\n    ClientAuthError.createNoAuthCodeInServerResponseError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.noAuthorizationCodeFromServer.code, ClientAuthErrorMessage.noAuthorizationCodeFromServer.desc);\r\n    };\r\n    ClientAuthError.createBindingKeyNotRemovedError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.bindingKeyNotRemovedError.code, ClientAuthErrorMessage.bindingKeyNotRemovedError.desc);\r\n    };\r\n    /**\r\n     * Thrown when logout is attempted for an authority that doesnt have an end_session_endpoint\r\n     */\r\n    ClientAuthError.createLogoutNotSupportedError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.logoutNotSupported.code, ClientAuthErrorMessage.logoutNotSupported.desc);\r\n    };\r\n    /**\r\n     * Create an error when kid attribute is missing from a PoP token's cache record\r\n     */\r\n    ClientAuthError.createKeyIdMissingError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.keyIdMissing.code, ClientAuthErrorMessage.keyIdMissing.desc);\r\n    };\r\n    /**\r\n     * Create an error when the client does not have network connectivity\r\n     */\r\n    ClientAuthError.createNoNetworkConnectivityError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.noNetworkConnectivity.code, ClientAuthErrorMessage.noNetworkConnectivity.desc);\r\n    };\r\n    /**\r\n     * Create an error when the user cancels the flow\r\n     */\r\n    ClientAuthError.createUserCanceledError = function () {\r\n        return new ClientAuthError(ClientAuthErrorMessage.userCanceledError.code, ClientAuthErrorMessage.userCanceledError.desc);\r\n    };\r\n    return ClientAuthError;\r\n}(AuthError));\n\nexport { ClientAuthError, ClientAuthErrorMessage };\n//# sourceMappingURL=ClientAuthError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __extends } from '../_virtual/_tslib.js';\nimport { Constants } from '../utils/Constants.js';\nimport { AuthError } from './AuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required\r\n */\r\nvar InteractionRequiredServerErrorMessage = [\r\n    \"interaction_required\",\r\n    \"consent_required\",\r\n    \"login_required\"\r\n];\r\nvar InteractionRequiredAuthSubErrorMessage = [\r\n    \"message_only\",\r\n    \"additional_action\",\r\n    \"basic_action\",\r\n    \"user_password_expired\",\r\n    \"consent_required\"\r\n];\r\n/**\r\n * Interaction required errors defined by the SDK\r\n */\r\nvar InteractionRequiredAuthErrorMessage = {\r\n    noTokensFoundError: {\r\n        code: \"no_tokens_found\",\r\n        desc: \"No refresh token found in the cache. Please sign-in.\"\r\n    },\r\n    native_account_unavailable: {\r\n        code: \"native_account_unavailable\",\r\n        desc: \"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.\"\r\n    }\r\n};\r\n/**\r\n * Error thrown when user interaction is required.\r\n */\r\nvar InteractionRequiredAuthError = /** @class */ (function (_super) {\r\n    __extends(InteractionRequiredAuthError, _super);\r\n    function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims) {\r\n        var _this = _super.call(this, errorCode, errorMessage, subError) || this;\r\n        Object.setPrototypeOf(_this, InteractionRequiredAuthError.prototype);\r\n        _this.timestamp = timestamp || Constants.EMPTY_STRING;\r\n        _this.traceId = traceId || Constants.EMPTY_STRING;\r\n        _this.correlationId = correlationId || Constants.EMPTY_STRING;\r\n        _this.claims = claims || Constants.EMPTY_STRING;\r\n        _this.name = \"InteractionRequiredAuthError\";\r\n        return _this;\r\n    }\r\n    /**\r\n     * Helper function used to determine if an error thrown by the server requires interaction to resolve\r\n     * @param errorCode\r\n     * @param errorString\r\n     * @param subError\r\n     */\r\n    InteractionRequiredAuthError.isInteractionRequiredError = function (errorCode, errorString, subError) {\r\n        var isInteractionRequiredErrorCode = !!errorCode && InteractionRequiredServerErrorMessage.indexOf(errorCode) > -1;\r\n        var isInteractionRequiredSubError = !!subError && InteractionRequiredAuthSubErrorMessage.indexOf(subError) > -1;\r\n        var isInteractionRequiredErrorDesc = !!errorString && InteractionRequiredServerErrorMessage.some(function (irErrorCode) {\r\n            return errorString.indexOf(irErrorCode) > -1;\r\n        });\r\n        return isInteractionRequiredErrorCode || isInteractionRequiredErrorDesc || isInteractionRequiredSubError;\r\n    };\r\n    /**\r\n     * Creates an error thrown when the authorization code required for a token request is null or empty.\r\n     */\r\n    InteractionRequiredAuthError.createNoTokensFoundError = function () {\r\n        return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.noTokensFoundError.code, InteractionRequiredAuthErrorMessage.noTokensFoundError.desc);\r\n    };\r\n    /**\r\n     * Creates an error thrown when the native broker returns ACCOUNT_UNAVAILABLE status, indicating that the account was removed and interactive sign-in is required\r\n     * @returns\r\n     */\r\n    InteractionRequiredAuthError.createNativeAccountUnavailableError = function () {\r\n        return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.native_account_unavailable.code, InteractionRequiredAuthErrorMessage.native_account_unavailable.desc);\r\n    };\r\n    return InteractionRequiredAuthError;\r\n}(AuthError));\n\nexport { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, InteractionRequiredAuthSubErrorMessage, InteractionRequiredServerErrorMessage };\n//# sourceMappingURL=InteractionRequiredAuthError.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { StringUtils } from '../utils/StringUtils.js';\nimport { Constants } from '../utils/Constants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Log message level.\r\n */\r\nvar LogLevel;\r\n(function (LogLevel) {\r\n    LogLevel[LogLevel[\"Error\"] = 0] = \"Error\";\r\n    LogLevel[LogLevel[\"Warning\"] = 1] = \"Warning\";\r\n    LogLevel[LogLevel[\"Info\"] = 2] = \"Info\";\r\n    LogLevel[LogLevel[\"Verbose\"] = 3] = \"Verbose\";\r\n    LogLevel[LogLevel[\"Trace\"] = 4] = \"Trace\";\r\n})(LogLevel || (LogLevel = {}));\r\n/**\r\n * Class which facilitates logging of messages to a specific place.\r\n */\r\nvar Logger = /** @class */ (function () {\r\n    function Logger(loggerOptions, packageName, packageVersion) {\r\n        // Current log level, defaults to info.\r\n        this.level = LogLevel.Info;\r\n        var defaultLoggerCallback = function () {\r\n            return;\r\n        };\r\n        var setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();\r\n        this.localCallback = setLoggerOptions.loggerCallback || defaultLoggerCallback;\r\n        this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;\r\n        this.level = typeof (setLoggerOptions.logLevel) === \"number\" ? setLoggerOptions.logLevel : LogLevel.Info;\r\n        this.correlationId = setLoggerOptions.correlationId || Constants.EMPTY_STRING;\r\n        this.packageName = packageName || Constants.EMPTY_STRING;\r\n        this.packageVersion = packageVersion || Constants.EMPTY_STRING;\r\n    }\r\n    Logger.createDefaultLoggerOptions = function () {\r\n        return {\r\n            loggerCallback: function () {\r\n                // allow users to not set loggerCallback\r\n            },\r\n            piiLoggingEnabled: false,\r\n            logLevel: LogLevel.Info\r\n        };\r\n    };\r\n    /**\r\n     * Create new Logger with existing configurations.\r\n     */\r\n    Logger.prototype.clone = function (packageName, packageVersion, correlationId) {\r\n        return new Logger({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: correlationId || this.correlationId }, packageName, packageVersion);\r\n    };\r\n    /**\r\n     * Log message with required options.\r\n     */\r\n    Logger.prototype.logMessage = function (logMessage, options) {\r\n        if ((options.logLevel > this.level) || (!this.piiLoggingEnabled && options.containsPii)) {\r\n            return;\r\n        }\r\n        var timestamp = new Date().toUTCString();\r\n        // Add correlationId to logs if set, correlationId provided on log messages take precedence\r\n        var logHeader;\r\n        if (!StringUtils.isEmpty(options.correlationId)) {\r\n            logHeader = \"[\" + timestamp + \"] : [\" + options.correlationId + \"]\";\r\n        }\r\n        else if (!StringUtils.isEmpty(this.correlationId)) {\r\n            logHeader = \"[\" + timestamp + \"] : [\" + this.correlationId + \"]\";\r\n        }\r\n        else {\r\n            logHeader = \"[\" + timestamp + \"]\";\r\n        }\r\n        var log = logHeader + \" : \" + this.packageName + \"@\" + this.packageVersion + \" : \" + LogLevel[options.logLevel] + \" - \" + logMessage;\r\n        // debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? \"-Pii\": Constants.EMPTY_STRING}${options.context ? `:${options.context}` : Constants.EMPTY_STRING}`)(logMessage);\r\n        this.executeCallback(options.logLevel, log, options.containsPii || false);\r\n    };\r\n    /**\r\n     * Execute callback with message.\r\n     */\r\n    Logger.prototype.executeCallback = function (level, message, containsPii) {\r\n        if (this.localCallback) {\r\n            this.localCallback(level, message, containsPii);\r\n        }\r\n    };\r\n    /**\r\n     * Logs error messages.\r\n     */\r\n    Logger.prototype.error = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Error,\r\n            containsPii: false,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs error messages with PII.\r\n     */\r\n    Logger.prototype.errorPii = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Error,\r\n            containsPii: true,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs warning messages.\r\n     */\r\n    Logger.prototype.warning = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Warning,\r\n            containsPii: false,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs warning messages with PII.\r\n     */\r\n    Logger.prototype.warningPii = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Warning,\r\n            containsPii: true,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs info messages.\r\n     */\r\n    Logger.prototype.info = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Info,\r\n            containsPii: false,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs info messages with PII.\r\n     */\r\n    Logger.prototype.infoPii = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Info,\r\n            containsPii: true,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs verbose messages.\r\n     */\r\n    Logger.prototype.verbose = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Verbose,\r\n            containsPii: false,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs verbose messages with PII.\r\n     */\r\n    Logger.prototype.verbosePii = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Verbose,\r\n            containsPii: true,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs trace messages.\r\n     */\r\n    Logger.prototype.trace = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Trace,\r\n            containsPii: false,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Logs trace messages with PII.\r\n     */\r\n    Logger.prototype.tracePii = function (message, correlationId) {\r\n        this.logMessage(message, {\r\n            logLevel: LogLevel.Trace,\r\n            containsPii: true,\r\n            correlationId: correlationId || Constants.EMPTY_STRING\r\n        });\r\n    };\r\n    /**\r\n     * Returns whether PII Logging is enabled or not.\r\n     */\r\n    Logger.prototype.isPiiLoggingEnabled = function () {\r\n        return this.piiLoggingEnabled || false;\r\n    };\r\n    return Logger;\r\n}());\n\nexport { LogLevel, Logger };\n//# sourceMappingURL=Logger.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { __spreadArrays } from '../_virtual/_tslib.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar Constants = {\r\n    LIBRARY_NAME: \"MSAL.JS\",\r\n    SKU: \"msal.js.common\",\r\n    // Prefix for all library cache entries\r\n    CACHE_PREFIX: \"msal\",\r\n    // default authority\r\n    DEFAULT_AUTHORITY: \"https://login.microsoftonline.com/common/\",\r\n    DEFAULT_AUTHORITY_HOST: \"login.microsoftonline.com\",\r\n    DEFAULT_COMMON_TENANT: \"common\",\r\n    // ADFS String\r\n    ADFS: \"adfs\",\r\n    DSTS: \"dstsv2\",\r\n    // Default AAD Instance Discovery Endpoint\r\n    AAD_INSTANCE_DISCOVERY_ENDPT: \"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=\",\r\n    // CIAM URL\r\n    CIAM_AUTH_URL: \".ciamlogin.com\",\r\n    AAD_TENANT_DOMAIN_SUFFIX: \".onmicrosoft.com\",\r\n    // Resource delimiter - used for certain cache entries\r\n    RESOURCE_DELIM: \"|\",\r\n    // Placeholder for non-existent account ids/objects\r\n    NO_ACCOUNT: \"NO_ACCOUNT\",\r\n    // Claims\r\n    CLAIMS: \"claims\",\r\n    // Consumer UTID\r\n    CONSUMER_UTID: \"9188040d-6c67-4c5b-b112-36a304b66dad\",\r\n    // Default scopes\r\n    OPENID_SCOPE: \"openid\",\r\n    PROFILE_SCOPE: \"profile\",\r\n    OFFLINE_ACCESS_SCOPE: \"offline_access\",\r\n    EMAIL_SCOPE: \"email\",\r\n    // Default response type for authorization code flow\r\n    CODE_RESPONSE_TYPE: \"code\",\r\n    CODE_GRANT_TYPE: \"authorization_code\",\r\n    RT_GRANT_TYPE: \"refresh_token\",\r\n    FRAGMENT_RESPONSE_MODE: \"fragment\",\r\n    S256_CODE_CHALLENGE_METHOD: \"S256\",\r\n    URL_FORM_CONTENT_TYPE: \"application/x-www-form-urlencoded;charset=utf-8\",\r\n    AUTHORIZATION_PENDING: \"authorization_pending\",\r\n    NOT_DEFINED: \"not_defined\",\r\n    EMPTY_STRING: \"\",\r\n    NOT_APPLICABLE: \"N/A\",\r\n    FORWARD_SLASH: \"/\",\r\n    IMDS_ENDPOINT: \"http://169.254.169.254/metadata/instance/compute/location\",\r\n    IMDS_VERSION: \"2020-06-01\",\r\n    IMDS_TIMEOUT: 2000,\r\n    AZURE_REGION_AUTO_DISCOVER_FLAG: \"TryAutoDetect\",\r\n    REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: \"login.microsoft.com\",\r\n    REGIONAL_AUTH_NON_MSI_QUERY_STRING: \"allowestsrnonmsi=true\",\r\n    KNOWN_PUBLIC_CLOUDS: [\"login.microsoftonline.com\", \"login.windows.net\", \"login.microsoft.com\", \"sts.windows.net\"],\r\n    TOKEN_RESPONSE_TYPE: \"token\",\r\n    ID_TOKEN_RESPONSE_TYPE: \"id_token\",\r\n    SHR_NONCE_VALIDITY: 240,\r\n    INVALID_INSTANCE: \"invalid_instance\",\r\n};\r\nvar OIDC_DEFAULT_SCOPES = [\r\n    Constants.OPENID_SCOPE,\r\n    Constants.PROFILE_SCOPE,\r\n    Constants.OFFLINE_ACCESS_SCOPE\r\n];\r\nvar OIDC_SCOPES = __spreadArrays(OIDC_DEFAULT_SCOPES, [\r\n    Constants.EMAIL_SCOPE\r\n]);\r\n/**\r\n * Request header names\r\n */\r\nvar HeaderNames;\r\n(function (HeaderNames) {\r\n    HeaderNames[\"CONTENT_TYPE\"] = \"Content-Type\";\r\n    HeaderNames[\"RETRY_AFTER\"] = \"Retry-After\";\r\n    HeaderNames[\"CCS_HEADER\"] = \"X-AnchorMailbox\";\r\n    HeaderNames[\"WWWAuthenticate\"] = \"WWW-Authenticate\";\r\n    HeaderNames[\"AuthenticationInfo\"] = \"Authentication-Info\";\r\n    HeaderNames[\"X_MS_REQUEST_ID\"] = \"x-ms-request-id\";\r\n    HeaderNames[\"X_MS_HTTP_VERSION\"] = \"x-ms-httpver\";\r\n})(HeaderNames || (HeaderNames = {}));\r\n/**\r\n * Persistent cache keys MSAL which stay while user is logged in.\r\n */\r\nvar PersistentCacheKeys;\r\n(function (PersistentCacheKeys) {\r\n    PersistentCacheKeys[\"ID_TOKEN\"] = \"idtoken\";\r\n    PersistentCacheKeys[\"CLIENT_INFO\"] = \"client.info\";\r\n    PersistentCacheKeys[\"ADAL_ID_TOKEN\"] = \"adal.idtoken\";\r\n    PersistentCacheKeys[\"ERROR\"] = \"error\";\r\n    PersistentCacheKeys[\"ERROR_DESC\"] = \"error.description\";\r\n    PersistentCacheKeys[\"ACTIVE_ACCOUNT\"] = \"active-account\";\r\n    PersistentCacheKeys[\"ACTIVE_ACCOUNT_FILTERS\"] = \"active-account-filters\"; // new cache entry for active_account for a more robust version for browser\r\n})(PersistentCacheKeys || (PersistentCacheKeys = {}));\r\n/**\r\n * String constants related to AAD Authority\r\n */\r\nvar AADAuthorityConstants;\r\n(function (AADAuthorityConstants) {\r\n    AADAuthorityConstants[\"COMMON\"] = \"common\";\r\n    AADAuthorityConstants[\"ORGANIZATIONS\"] = \"organizations\";\r\n    AADAuthorityConstants[\"CONSUMERS\"] = \"consumers\";\r\n})(AADAuthorityConstants || (AADAuthorityConstants = {}));\r\n/**\r\n * Keys in the hashParams sent by AAD Server\r\n */\r\nvar AADServerParamKeys;\r\n(function (AADServerParamKeys) {\r\n    AADServerParamKeys[\"CLIENT_ID\"] = \"client_id\";\r\n    AADServerParamKeys[\"REDIRECT_URI\"] = \"redirect_uri\";\r\n    AADServerParamKeys[\"RESPONSE_TYPE\"] = \"response_type\";\r\n    AADServerParamKeys[\"RESPONSE_MODE\"] = \"response_mode\";\r\n    AADServerParamKeys[\"GRANT_TYPE\"] = \"grant_type\";\r\n    AADServerParamKeys[\"CLAIMS\"] = \"claims\";\r\n    AADServerParamKeys[\"SCOPE\"] = \"scope\";\r\n    AADServerParamKeys[\"ERROR\"] = \"error\";\r\n    AADServerParamKeys[\"ERROR_DESCRIPTION\"] = \"error_description\";\r\n    AADServerParamKeys[\"ACCESS_TOKEN\"] = \"access_token\";\r\n    AADServerParamKeys[\"ID_TOKEN\"] = \"id_token\";\r\n    AADServerParamKeys[\"REFRESH_TOKEN\"] = \"refresh_token\";\r\n    AADServerParamKeys[\"EXPIRES_IN\"] = \"expires_in\";\r\n    AADServerParamKeys[\"STATE\"] = \"state\";\r\n    AADServerParamKeys[\"NONCE\"] = \"nonce\";\r\n    AADServerParamKeys[\"PROMPT\"] = \"prompt\";\r\n    AADServerParamKeys[\"SESSION_STATE\"] = \"session_state\";\r\n    AADServerParamKeys[\"CLIENT_INFO\"] = \"client_info\";\r\n    AADServerParamKeys[\"CODE\"] = \"code\";\r\n    AADServerParamKeys[\"CODE_CHALLENGE\"] = \"code_challenge\";\r\n    AADServerParamKeys[\"CODE_CHALLENGE_METHOD\"] = \"code_challenge_method\";\r\n    AADServerParamKeys[\"CODE_VERIFIER\"] = \"code_verifier\";\r\n    AADServerParamKeys[\"CLIENT_REQUEST_ID\"] = \"client-request-id\";\r\n    AADServerParamKeys[\"X_CLIENT_SKU\"] = \"x-client-SKU\";\r\n    AADServerParamKeys[\"X_CLIENT_VER\"] = \"x-client-VER\";\r\n    AADServerParamKeys[\"X_CLIENT_OS\"] = \"x-client-OS\";\r\n    AADServerParamKeys[\"X_CLIENT_CPU\"] = \"x-client-CPU\";\r\n    AADServerParamKeys[\"X_CLIENT_CURR_TELEM\"] = \"x-client-current-telemetry\";\r\n    AADServerParamKeys[\"X_CLIENT_LAST_TELEM\"] = \"x-client-last-telemetry\";\r\n    AADServerParamKeys[\"X_MS_LIB_CAPABILITY\"] = \"x-ms-lib-capability\";\r\n    AADServerParamKeys[\"X_APP_NAME\"] = \"x-app-name\";\r\n    AADServerParamKeys[\"X_APP_VER\"] = \"x-app-ver\";\r\n    AADServerParamKeys[\"POST_LOGOUT_URI\"] = \"post_logout_redirect_uri\";\r\n    AADServerParamKeys[\"ID_TOKEN_HINT\"] = \"id_token_hint\";\r\n    AADServerParamKeys[\"DEVICE_CODE\"] = \"device_code\";\r\n    AADServerParamKeys[\"CLIENT_SECRET\"] = \"client_secret\";\r\n    AADServerParamKeys[\"CLIENT_ASSERTION\"] = \"client_assertion\";\r\n    AADServerParamKeys[\"CLIENT_ASSERTION_TYPE\"] = \"client_assertion_type\";\r\n    AADServerParamKeys[\"TOKEN_TYPE\"] = \"token_type\";\r\n    AADServerParamKeys[\"REQ_CNF\"] = \"req_cnf\";\r\n    AADServerParamKeys[\"OBO_ASSERTION\"] = \"assertion\";\r\n    AADServerParamKeys[\"REQUESTED_TOKEN_USE\"] = \"requested_token_use\";\r\n    AADServerParamKeys[\"ON_BEHALF_OF\"] = \"on_behalf_of\";\r\n    AADServerParamKeys[\"FOCI\"] = \"foci\";\r\n    AADServerParamKeys[\"CCS_HEADER\"] = \"X-AnchorMailbox\";\r\n    AADServerParamKeys[\"RETURN_SPA_CODE\"] = \"return_spa_code\";\r\n    AADServerParamKeys[\"NATIVE_BROKER\"] = \"nativebroker\";\r\n    AADServerParamKeys[\"LOGOUT_HINT\"] = \"logout_hint\";\r\n})(AADServerParamKeys || (AADServerParamKeys = {}));\r\n/**\r\n * Claims request keys\r\n */\r\nvar ClaimsRequestKeys;\r\n(function (ClaimsRequestKeys) {\r\n    ClaimsRequestKeys[\"ACCESS_TOKEN\"] = \"access_token\";\r\n    ClaimsRequestKeys[\"XMS_CC\"] = \"xms_cc\";\r\n})(ClaimsRequestKeys || (ClaimsRequestKeys = {}));\r\n/**\r\n * we considered making this \"enum\" in the request instead of string, however it looks like the allowed list of\r\n * prompt values kept changing over past couple of years. There are some undocumented prompt values for some\r\n * internal partners too, hence the choice of generic \"string\" type instead of the \"enum\"\r\n */\r\nvar PromptValue = {\r\n    LOGIN: \"login\",\r\n    SELECT_ACCOUNT: \"select_account\",\r\n    CONSENT: \"consent\",\r\n    NONE: \"none\",\r\n    CREATE: \"create\",\r\n    NO_SESSION: \"no_session\"\r\n};\r\n/**\r\n * SSO Types - generated to populate hints\r\n */\r\nvar SSOTypes;\r\n(function (SSOTypes) {\r\n    SSOTypes[\"ACCOUNT\"] = \"account\";\r\n    SSOTypes[\"SID\"] = \"sid\";\r\n    SSOTypes[\"LOGIN_HINT\"] = \"login_hint\";\r\n    SSOTypes[\"ID_TOKEN\"] = \"id_token\";\r\n    SSOTypes[\"DOMAIN_HINT\"] = \"domain_hint\";\r\n    SSOTypes[\"ORGANIZATIONS\"] = \"organizations\";\r\n    SSOTypes[\"CONSUMERS\"] = \"consumers\";\r\n    SSOTypes[\"ACCOUNT_ID\"] = \"accountIdentifier\";\r\n    SSOTypes[\"HOMEACCOUNT_ID\"] = \"homeAccountIdentifier\";\r\n})(SSOTypes || (SSOTypes = {}));\r\n/**\r\n * allowed values for codeVerifier\r\n */\r\nvar CodeChallengeMethodValues = {\r\n    PLAIN: \"plain\",\r\n    S256: \"S256\"\r\n};\r\n/**\r\n * allowed values for response_mode\r\n */\r\nvar ResponseMode;\r\n(function (ResponseMode) {\r\n    ResponseMode[\"QUERY\"] = \"query\";\r\n    ResponseMode[\"FRAGMENT\"] = \"fragment\";\r\n    ResponseMode[\"FORM_POST\"] = \"form_post\";\r\n})(ResponseMode || (ResponseMode = {}));\r\n/**\r\n * allowed grant_type\r\n */\r\nvar GrantType;\r\n(function (GrantType) {\r\n    GrantType[\"IMPLICIT_GRANT\"] = \"implicit\";\r\n    GrantType[\"AUTHORIZATION_CODE_GRANT\"] = \"authorization_code\";\r\n    GrantType[\"CLIENT_CREDENTIALS_GRANT\"] = \"client_credentials\";\r\n    GrantType[\"RESOURCE_OWNER_PASSWORD_GRANT\"] = \"password\";\r\n    GrantType[\"REFRESH_TOKEN_GRANT\"] = \"refresh_token\";\r\n    GrantType[\"DEVICE_CODE_GRANT\"] = \"device_code\";\r\n    GrantType[\"JWT_BEARER\"] = \"urn:ietf:params:oauth:grant-type:jwt-bearer\";\r\n})(GrantType || (GrantType = {}));\r\n/**\r\n * Account types in Cache\r\n */\r\nvar CacheAccountType;\r\n(function (CacheAccountType) {\r\n    CacheAccountType[\"MSSTS_ACCOUNT_TYPE\"] = \"MSSTS\";\r\n    CacheAccountType[\"ADFS_ACCOUNT_TYPE\"] = \"ADFS\";\r\n    CacheAccountType[\"MSAV1_ACCOUNT_TYPE\"] = \"MSA\";\r\n    CacheAccountType[\"GENERIC_ACCOUNT_TYPE\"] = \"Generic\"; // NTLM, Kerberos, FBA, Basic etc\r\n})(CacheAccountType || (CacheAccountType = {}));\r\n/**\r\n * Separators used in cache\r\n */\r\nvar Separators;\r\n(function (Separators) {\r\n    Separators[\"CACHE_KEY_SEPARATOR\"] = \"-\";\r\n    Separators[\"CLIENT_INFO_SEPARATOR\"] = \".\";\r\n})(Separators || (Separators = {}));\r\n/**\r\n * Credential Type stored in the cache\r\n */\r\nvar CredentialType;\r\n(function (CredentialType) {\r\n    CredentialType[\"ID_TOKEN\"] = \"IdToken\";\r\n    CredentialType[\"ACCESS_TOKEN\"] = \"AccessToken\";\r\n    CredentialType[\"ACCESS_TOKEN_WITH_AUTH_SCHEME\"] = \"AccessToken_With_AuthScheme\";\r\n    CredentialType[\"REFRESH_TOKEN\"] = \"RefreshToken\";\r\n})(CredentialType || (CredentialType = {}));\r\n/**\r\n * Combine all cache types\r\n */\r\nvar CacheType;\r\n(function (CacheType) {\r\n    CacheType[CacheType[\"ADFS\"] = 1001] = \"ADFS\";\r\n    CacheType[CacheType[\"MSA\"] = 1002] = \"MSA\";\r\n    CacheType[CacheType[\"MSSTS\"] = 1003] = \"MSSTS\";\r\n    CacheType[CacheType[\"GENERIC\"] = 1004] = \"GENERIC\";\r\n    CacheType[CacheType[\"ACCESS_TOKEN\"] = 2001] = \"ACCESS_TOKEN\";\r\n    CacheType[CacheType[\"REFRESH_TOKEN\"] = 2002] = \"REFRESH_TOKEN\";\r\n    CacheType[CacheType[\"ID_TOKEN\"] = 2003] = \"ID_TOKEN\";\r\n    CacheType[CacheType[\"APP_METADATA\"] = 3001] = \"APP_METADATA\";\r\n    CacheType[CacheType[\"UNDEFINED\"] = 9999] = \"UNDEFINED\";\r\n})(CacheType || (CacheType = {}));\r\n/**\r\n * More Cache related constants\r\n */\r\nvar APP_METADATA = \"appmetadata\";\r\nvar CLIENT_INFO = \"client_info\";\r\nvar THE_FAMILY_ID = \"1\";\r\nvar AUTHORITY_METADATA_CONSTANTS = {\r\n    CACHE_KEY: \"authority-metadata\",\r\n    REFRESH_TIME_SECONDS: 3600 * 24 // 24 Hours\r\n};\r\nvar AuthorityMetadataSource;\r\n(function (AuthorityMetadataSource) {\r\n    AuthorityMetadataSource[\"CONFIG\"] = \"config\";\r\n    AuthorityMetadataSource[\"CACHE\"] = \"cache\";\r\n    AuthorityMetadataSource[\"NETWORK\"] = \"network\";\r\n    AuthorityMetadataSource[\"HARDCODED_VALUES\"] = \"hardcoded_values\";\r\n})(AuthorityMetadataSource || (AuthorityMetadataSource = {}));\r\nvar SERVER_TELEM_CONSTANTS = {\r\n    SCHEMA_VERSION: 5,\r\n    MAX_CUR_HEADER_BYTES: 80,\r\n    MAX_LAST_HEADER_BYTES: 330,\r\n    MAX_CACHED_ERRORS: 50,\r\n    CACHE_KEY: \"server-telemetry\",\r\n    CATEGORY_SEPARATOR: \"|\",\r\n    VALUE_SEPARATOR: \",\",\r\n    OVERFLOW_TRUE: \"1\",\r\n    OVERFLOW_FALSE: \"0\",\r\n    UNKNOWN_ERROR: \"unknown_error\"\r\n};\r\n/**\r\n * Type of the authentication request\r\n */\r\nvar AuthenticationScheme;\r\n(function (AuthenticationScheme) {\r\n    AuthenticationScheme[\"BEARER\"] = \"Bearer\";\r\n    AuthenticationScheme[\"POP\"] = \"pop\";\r\n    AuthenticationScheme[\"SSH\"] = \"ssh-cert\";\r\n})(AuthenticationScheme || (AuthenticationScheme = {}));\r\n/**\r\n * Constants related to throttling\r\n */\r\nvar ThrottlingConstants = {\r\n    // Default time to throttle RequestThumbprint in seconds\r\n    DEFAULT_THROTTLE_TIME_SECONDS: 60,\r\n    // Default maximum time to throttle in seconds, overrides what the server sends back\r\n    DEFAULT_MAX_THROTTLE_TIME_SECONDS: 3600,\r\n    // Prefix for storing throttling entries\r\n    THROTTLING_PREFIX: \"throttling\",\r\n    // Value assigned to the x-ms-lib-capability header to indicate to the server the library supports throttling\r\n    X_MS_LIB_CAPABILITY_VALUE: \"retry-after, h429\"\r\n};\r\nvar Errors = {\r\n    INVALID_GRANT_ERROR: \"invalid_grant\",\r\n    CLIENT_MISMATCH_ERROR: \"client_mismatch\",\r\n};\r\n/**\r\n * Password grant parameters\r\n */\r\nvar PasswordGrantConstants;\r\n(function (PasswordGrantConstants) {\r\n    PasswordGrantConstants[\"username\"] = \"username\";\r\n    PasswordGrantConstants[\"password\"] = \"password\";\r\n})(PasswordGrantConstants || (PasswordGrantConstants = {}));\r\n/**\r\n * Response codes\r\n */\r\nvar ResponseCodes;\r\n(function (ResponseCodes) {\r\n    ResponseCodes[ResponseCodes[\"httpSuccess\"] = 200] = \"httpSuccess\";\r\n    ResponseCodes[ResponseCodes[\"httpBadRequest\"] = 400] = \"httpBadRequest\";\r\n})(ResponseCodes || (ResponseCodes = {}));\r\n/**\r\n * Region Discovery Sources\r\n */\r\nvar RegionDiscoverySources;\r\n(function (RegionDiscoverySources) {\r\n    RegionDiscoverySources[\"FAILED_AUTO_DETECTION\"] = \"1\";\r\n    RegionDiscoverySources[\"INTERNAL_CACHE\"] = \"2\";\r\n    RegionDiscoverySources[\"ENVIRONMENT_VARIABLE\"] = \"3\";\r\n    RegionDiscoverySources[\"IMDS\"] = \"4\";\r\n})(RegionDiscoverySources || (RegionDiscoverySources = {}));\r\n/**\r\n * Region Discovery Outcomes\r\n */\r\nvar RegionDiscoveryOutcomes;\r\n(function (RegionDiscoveryOutcomes) {\r\n    RegionDiscoveryOutcomes[\"CONFIGURED_MATCHES_DETECTED\"] = \"1\";\r\n    RegionDiscoveryOutcomes[\"CONFIGURED_NO_AUTO_DETECTION\"] = \"2\";\r\n    RegionDiscoveryOutcomes[\"CONFIGURED_NOT_DETECTED\"] = \"3\";\r\n    RegionDiscoveryOutcomes[\"AUTO_DETECTION_REQUESTED_SUCCESSFUL\"] = \"4\";\r\n    RegionDiscoveryOutcomes[\"AUTO_DETECTION_REQUESTED_FAILED\"] = \"5\";\r\n})(RegionDiscoveryOutcomes || (RegionDiscoveryOutcomes = {}));\r\nvar CacheOutcome;\r\n(function (CacheOutcome) {\r\n    CacheOutcome[\"NO_CACHE_HIT\"] = \"0\";\r\n    CacheOutcome[\"FORCE_REFRESH\"] = \"1\";\r\n    CacheOutcome[\"NO_CACHED_ACCESS_TOKEN\"] = \"2\";\r\n    CacheOutcome[\"CACHED_ACCESS_TOKEN_EXPIRED\"] = \"3\";\r\n    CacheOutcome[\"REFRESH_CACHED_ACCESS_TOKEN\"] = \"4\";\r\n    CacheOutcome[\"CLAIMS_REQUESTED_CACHE_SKIPPED\"] = \"5\";\r\n})(CacheOutcome || (CacheOutcome = {}));\r\nvar JsonTypes;\r\n(function (JsonTypes) {\r\n    JsonTypes[\"Jwt\"] = \"JWT\";\r\n    JsonTypes[\"Jwk\"] = \"JWK\";\r\n    JsonTypes[\"Pop\"] = \"pop\";\r\n})(JsonTypes || (JsonTypes = {}));\r\nvar ONE_DAY_IN_MS = 86400000;\n\nexport { AADAuthorityConstants, AADServerParamKeys, APP_METADATA, AUTHORITY_METADATA_CONSTANTS, AuthenticationScheme, AuthorityMetadataSource, CLIENT_INFO, CacheAccountType, CacheOutcome, CacheType, ClaimsRequestKeys, CodeChallengeMethodValues, Constants, CredentialType, Errors, GrantType, HeaderNames, JsonTypes, OIDC_DEFAULT_SCOPES, OIDC_SCOPES, ONE_DAY_IN_MS, PasswordGrantConstants, PersistentCacheKeys, PromptValue, RegionDiscoveryOutcomes, RegionDiscoverySources, ResponseCodes, ResponseMode, SERVER_TELEM_CONSTANTS, SSOTypes, Separators, THE_FAMILY_ID, ThrottlingConstants };\n//# sourceMappingURL=Constants.js.map\n","/*! @azure/msal-common v13.3.3 2024-06-06 */\n'use strict';\nimport { ClientAuthError } from '../error/ClientAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * @hidden\r\n */\r\nvar StringUtils = /** @class */ (function () {\r\n    function StringUtils() {\r\n    }\r\n    /**\r\n     * decode a JWT\r\n     *\r\n     * @param authToken\r\n     */\r\n    StringUtils.decodeAuthToken = function (authToken) {\r\n        if (StringUtils.isEmpty(authToken)) {\r\n            throw ClientAuthError.createTokenNullOrEmptyError(authToken);\r\n        }\r\n        var tokenPartsRegex = /^([^\\.\\s]*)\\.([^\\.\\s]+)\\.([^\\.\\s]*)$/;\r\n        var matches = tokenPartsRegex.exec(authToken);\r\n        if (!matches || matches.length < 4) {\r\n            throw ClientAuthError.createTokenParsingError(\"Given token is malformed: \" + JSON.stringify(authToken));\r\n        }\r\n        var crackedToken = {\r\n            header: matches[1],\r\n            JWSPayload: matches[2],\r\n            JWSSig: matches[3]\r\n        };\r\n        return crackedToken;\r\n    };\r\n    /**\r\n     * Check if a string is empty.\r\n     *\r\n     * @param str\r\n     */\r\n    StringUtils.isEmpty = function (str) {\r\n        return (typeof str === \"undefined\" || !str || 0 === str.length);\r\n    };\r\n    /**\r\n     * Check if stringified object is empty\r\n     * @param strObj\r\n     */\r\n    StringUtils.isEmptyObj = function (strObj) {\r\n        if (strObj && !StringUtils.isEmpty(strObj)) {\r\n            try {\r\n                var obj = JSON.parse(strObj);\r\n                return Object.keys(obj).length === 0;\r\n            }\r\n            catch (e) { }\r\n        }\r\n        return true;\r\n    };\r\n    StringUtils.startsWith = function (str, search) {\r\n        return str.indexOf(search) === 0;\r\n    };\r\n    StringUtils.endsWith = function (str, search) {\r\n        return (str.length >= search.length) && (str.lastIndexOf(search) === (str.length - search.length));\r\n    };\r\n    /**\r\n     * Parses string into an object.\r\n     *\r\n     * @param query\r\n     */\r\n    StringUtils.queryStringToObject = function (query) {\r\n        var obj = {};\r\n        var params = query.split(\"&\");\r\n        var decode = function (s) { return decodeURIComponent(s.replace(/\\+/g, \" \")); };\r\n        params.forEach(function (pair) {\r\n            if (pair.trim()) {\r\n                var _a = pair.split(/=(.+)/g, 2), key = _a[0], value = _a[1]; // Split on the first occurence of the '=' character\r\n                if (key && value) {\r\n                    obj[decode(key)] = decode(value);\r\n                }\r\n            }\r\n        });\r\n        return obj;\r\n    };\r\n    /**\r\n     * Trims entries in an array.\r\n     *\r\n     * @param arr\r\n     */\r\n    StringUtils.trimArrayEntries = function (arr) {\r\n        return arr.map(function (entry) { return entry.trim(); });\r\n    };\r\n    /**\r\n     * Removes empty strings from array\r\n     * @param arr\r\n     */\r\n    StringUtils.removeEmptyStringsFromArray = function (arr) {\r\n        return arr.filter(function (entry) {\r\n            return !StringUtils.isEmpty(entry);\r\n        });\r\n    };\r\n    /**\r\n     * Attempts to parse a string into JSON\r\n     * @param str\r\n     */\r\n    StringUtils.jsonParseHelper = function (str) {\r\n        try {\r\n            return JSON.parse(str);\r\n        }\r\n        catch (e) {\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * Tests if a given string matches a given pattern, with support for wildcards and queries.\r\n     * @param pattern Wildcard pattern to string match. Supports \"*\" for wildcards and \"?\" for queries\r\n     * @param input String to match against\r\n     */\r\n    StringUtils.matchPattern = function (pattern, input) {\r\n        /**\r\n         * Wildcard support: https://stackoverflow.com/a/3117248/4888559\r\n         * Queries: replaces \"?\" in string with escaped \"\\?\" for regex test\r\n         */\r\n        var regex = new RegExp(pattern.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\*/g, \"[^ ]*\").replace(/\\?/g, \"\\\\\\?\")); // eslint-disable-line security/detect-non-literal-regexp\r\n        return regex.test(input);\r\n    };\r\n    return StringUtils;\r\n}());\n\nexport { StringUtils };\n//# sourceMappingURL=StringUtils.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar stubbedPublicClientApplication = {\r\n    initialize: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    acquireTokenPopup: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    acquireTokenRedirect: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    acquireTokenSilent: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    acquireTokenByCode: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    getAllAccounts: function () {\r\n        return [];\r\n    },\r\n    getAccountByHomeId: function () {\r\n        return null;\r\n    },\r\n    getAccountByUsername: function () {\r\n        return null;\r\n    },\r\n    getAccountByLocalId: function () {\r\n        return null;\r\n    },\r\n    handleRedirectPromise: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    loginPopup: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    loginRedirect: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    logout: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    logoutRedirect: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    logoutPopup: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    ssoSilent: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n    addEventCallback: function () {\r\n        return null;\r\n    },\r\n    removeEventCallback: function () {\r\n        return;\r\n    },\r\n    addPerformanceCallback: function () {\r\n        return \"\";\r\n    },\r\n    removePerformanceCallback: function () {\r\n        return false;\r\n    },\r\n    enableAccountStorageEvents: function () {\r\n        return;\r\n    },\r\n    disableAccountStorageEvents: function () {\r\n        return;\r\n    },\r\n    getTokenCache: function () {\r\n        throw BrowserConfigurationAuthError.createStubPcaInstanceCalledError();\r\n    },\r\n    getLogger: function () {\r\n        throw BrowserConfigurationAuthError.createStubPcaInstanceCalledError();\r\n    },\r\n    setLogger: function () {\r\n        return;\r\n    },\r\n    setActiveAccount: function () {\r\n        return;\r\n    },\r\n    getActiveAccount: function () {\r\n        return null;\r\n    },\r\n    initializeWrapperLibrary: function () {\r\n        return;\r\n    },\r\n    setNavigationClient: function () {\r\n        return;\r\n    },\r\n    getConfiguration: function () {\r\n        throw BrowserConfigurationAuthError.createStubPcaInstanceCalledError();\r\n    },\r\n    hydrateCache: function () {\r\n        return Promise.reject(BrowserConfigurationAuthError.createStubPcaInstanceCalledError());\r\n    },\r\n};\n\nexport { stubbedPublicClientApplication };\n//# sourceMappingURL=IPublicClientApplication.js.map\n","/*! @azure/msal-browser v2.39.0 2024-06-06 */\n'use strict';\nimport { EventType } from './EventType.js';\nimport { InteractionType, InteractionStatus } from '../utils/BrowserConstants.js';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nvar EventMessageUtils = /** @class */ (function () {\r\n    function EventMessageUtils() {\r\n    }\r\n    /**\r\n     * Gets interaction status from event message\r\n     * @param message\r\n     * @param currentStatus\r\n     */\r\n    EventMessageUtils.getInteractionStatusFromEvent = function (message, currentStatus) {\r\n        switch (message.eventType) {\r\n            case EventType.LOGIN_START:\r\n                return InteractionStatus.Login;\r\n            case EventType.SSO_SILENT_START:\r\n                return InteractionStatus.SsoSilent;\r\n            case EventType.ACQUIRE_TOKEN_START:\r\n                if (message.interactionType === InteractionType.Redirect || message.interactionType === InteractionType.Popup) {\r\n                    return InteractionStatus.AcquireToken;\r\n                }\r\n                break;\r\n            case EventType.HANDLE_REDIRECT_START:\r\n                return InteractionStatus.HandleRedirect;\r\n            case EventType.LOGOUT_START:\r\n                return InteractionStatus.Logout;\r\n            case EventType.SSO_SILENT_SUCCESS:\r\n            case EventType.SSO_SILENT_FAILURE:\r\n                if (currentStatus && currentStatus !== InteractionStatus.SsoSilent) {\r\n                    // Prevent this event from clearing any status other than ssoSilent\r\n                    break;\r\n                }\r\n                return InteractionStatus.None;\r\n            case EventType.LOGOUT_END:\r\n                if (currentStatus && currentStatus !== InteractionStatus.Logout) {\r\n                    // Prevent this event from clearing any status other than logout\r\n                    break;\r\n                }\r\n                return InteractionStatus.None;\r\n            case EventType.HANDLE_REDIRECT_END:\r\n                if (currentStatus && currentStatus !== InteractionStatus.HandleRedirect) {\r\n                    // Prevent this event from clearing any status other than handleRedirect\r\n                    break;\r\n                }\r\n                return InteractionStatus.None;\r\n            case EventType.LOGIN_SUCCESS:\r\n            case EventType.LOGIN_FAILURE:\r\n            case EventType.ACQUIRE_TOKEN_SUCCESS:\r\n            case EventType.ACQUIRE_TOKEN_FAILURE:\r\n            case EventType.RESTORE_FROM_BFCACHE:\r\n                if (message.interactionType === InteractionType.Redirect || message.interactionType === InteractionType.Popup) {\r\n                    if (currentStatus && currentStatus !== InteractionStatus.Login && currentStatus !== InteractionStatus.AcquireToken) {\r\n                        // Prevent this event from clearing any status other than login or acquireToken\r\n                        break;\r\n                    }\r\n                    return InteractionStatus.None;\r\n                }\r\n                break;\r\n        }\r\n        return null;\r\n    };\r\n    return EventMessageUtils;\r\n}());\n\nexport { EventMessageUtils };\n//# sourceMappingURL=EventMessage.js.map\n","import React__default, { createContext, useEffect, useMemo, useReducer, useContext, useState, useRef, useCallback } from 'react';\nimport { stubbedPublicClientApplication, InteractionStatus, Logger, WrapperSKU, EventMessageUtils, AccountEntity, AuthError, InteractionType, InteractionRequiredAuthError, EventType, OIDC_DEFAULT_SCOPES } from '@azure/msal-browser';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/*\r\n * Stubbed context implementation\r\n * Only used when there is no provider, which is an unsupported scenario\r\n */\n\nconst defaultMsalContext = {\n  instance: stubbedPublicClientApplication,\n  inProgress: InteractionStatus.None,\n  accounts: [],\n  logger: /*#__PURE__*/new Logger({})\n};\nconst MsalContext = /*#__PURE__*/createContext(defaultMsalContext);\nconst MsalConsumer = MsalContext.Consumer;\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nfunction getChildrenOrFunction(children, args) {\n  if (typeof children === \"function\") {\n    return children(args);\n  }\n\n  return children;\n}\n/**\r\n * Helper function to determine whether 2 arrays are equal\r\n * Used to avoid unnecessary state updates\r\n * @param arrayA\r\n * @param arrayB\r\n */\n\nfunction accountArraysAreEqual(arrayA, arrayB) {\n  if (arrayA.length !== arrayB.length) {\n    return false;\n  }\n\n  const comparisonArray = [...arrayB];\n  return arrayA.every(elementA => {\n    const elementB = comparisonArray.shift();\n\n    if (!elementA || !elementB) {\n      return false;\n    }\n\n    return elementA.homeAccountId === elementB.homeAccountId && elementA.localAccountId === elementB.localAccountId && elementA.username === elementB.username;\n  });\n}\nfunction getAccountByIdentifiers(allAccounts, accountIdentifiers) {\n  if (allAccounts.length > 0 && (accountIdentifiers.homeAccountId || accountIdentifiers.localAccountId || accountIdentifiers.username)) {\n    const matchedAccounts = allAccounts.filter(accountObj => {\n      if (accountIdentifiers.username && accountIdentifiers.username.toLowerCase() !== accountObj.username.toLowerCase()) {\n        return false;\n      }\n\n      if (accountIdentifiers.homeAccountId && accountIdentifiers.homeAccountId.toLowerCase() !== accountObj.homeAccountId.toLowerCase()) {\n        return false;\n      }\n\n      if (accountIdentifiers.localAccountId && accountIdentifiers.localAccountId.toLowerCase() !== accountObj.localAccountId.toLowerCase()) {\n        return false;\n      }\n\n      return true;\n    });\n    return matchedAccounts[0] || null;\n  } else {\n    return null;\n  }\n}\n\n/* eslint-disable header/header */\nconst name = \"@azure/msal-react\";\nconst version = \"1.5.13\";\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nvar MsalProviderActionType;\n\n(function (MsalProviderActionType) {\n  MsalProviderActionType[\"UNBLOCK_INPROGRESS\"] = \"UNBLOCK_INPROGRESS\";\n  MsalProviderActionType[\"EVENT\"] = \"EVENT\";\n})(MsalProviderActionType || (MsalProviderActionType = {}));\n/**\r\n * Returns the next inProgress and accounts state based on event message\r\n * @param previousState\r\n * @param action\r\n */\n\n\nconst reducer = (previousState, action) => {\n  const {\n    type,\n    payload\n  } = action;\n  let newInProgress = previousState.inProgress;\n\n  switch (type) {\n    case MsalProviderActionType.UNBLOCK_INPROGRESS:\n      if (previousState.inProgress === InteractionStatus.Startup) {\n        newInProgress = InteractionStatus.None;\n        payload.logger.info(\"MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'\");\n      }\n\n      break;\n\n    case MsalProviderActionType.EVENT:\n      const message = payload.message;\n      const status = EventMessageUtils.getInteractionStatusFromEvent(message, previousState.inProgress);\n\n      if (status) {\n        payload.logger.info(`MsalProvider - ${message.eventType} results in setting inProgress from ${previousState.inProgress} to ${status}`);\n        newInProgress = status;\n      }\n\n      break;\n\n    default:\n      throw new Error(`Unknown action type: ${type}`);\n  }\n\n  const currentAccounts = payload.instance.getAllAccounts();\n\n  if (newInProgress !== previousState.inProgress && !accountArraysAreEqual(currentAccounts, previousState.accounts)) {\n    // Both inProgress and accounts changed\n    return { ...previousState,\n      inProgress: newInProgress,\n      accounts: currentAccounts\n    };\n  } else if (newInProgress !== previousState.inProgress) {\n    // Only only inProgress changed\n    return { ...previousState,\n      inProgress: newInProgress\n    };\n  } else if (!accountArraysAreEqual(currentAccounts, previousState.accounts)) {\n    // Only accounts changed\n    return { ...previousState,\n      accounts: currentAccounts\n    };\n  } else {\n    // Nothing changed\n    return previousState;\n  }\n};\n/**\r\n * MSAL context provider component. This must be rendered above any other components that use MSAL.\r\n */\n\n\nfunction MsalProvider(_ref) {\n  let {\n    instance,\n    children\n  } = _ref;\n  useEffect(() => {\n    instance.initializeWrapperLibrary(WrapperSKU.React, version);\n  }, [instance]); // Create a logger instance for msal-react with the same options as PublicClientApplication\n\n  const logger = useMemo(() => {\n    return instance.getLogger().clone(name, version);\n  }, [instance]);\n  const [state, updateState] = useReducer(reducer, undefined, () => {\n    // Lazy initialization of the initial state\n    return {\n      inProgress: InteractionStatus.Startup,\n      accounts: instance.getAllAccounts()\n    };\n  });\n  useEffect(() => {\n    const callbackId = instance.addEventCallback(message => {\n      updateState({\n        payload: {\n          instance,\n          logger,\n          message\n        },\n        type: MsalProviderActionType.EVENT\n      });\n    });\n    logger.verbose(`MsalProvider - Registered event callback with id: ${callbackId}`);\n    instance.initialize().then(() => {\n      instance.handleRedirectPromise().catch(() => {\n        // Errors should be handled by listening to the LOGIN_FAILURE event\n        return;\n      }).finally(() => {\n        /*\r\n         * If handleRedirectPromise returns a cached promise the necessary events may not be fired\r\n         * This is a fallback to prevent inProgress from getting stuck in 'startup'\r\n         */\n        updateState({\n          payload: {\n            instance,\n            logger\n          },\n          type: MsalProviderActionType.UNBLOCK_INPROGRESS\n        });\n      });\n    });\n    return () => {\n      // Remove callback when component unmounts or accounts change\n      if (callbackId) {\n        logger.verbose(`MsalProvider - Removing event callback ${callbackId}`);\n        instance.removeEventCallback(callbackId);\n      }\n    };\n  }, [instance, logger]);\n  const contextValue = {\n    instance,\n    inProgress: state.inProgress,\n    accounts: state.accounts,\n    logger\n  };\n  return React__default.createElement(MsalContext.Provider, {\n    value: contextValue\n  }, children);\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * Returns Msal Context values\r\n */\n\nconst useMsal = () => useContext(MsalContext);\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n\nfunction isAuthenticated(allAccounts, matchAccount) {\n  if (matchAccount && (matchAccount.username || matchAccount.homeAccountId || matchAccount.localAccountId)) {\n    return !!getAccountByIdentifiers(allAccounts, matchAccount);\n  }\n\n  return allAccounts.length > 0;\n}\n/**\r\n * Returns whether or not a user is currently signed-in. Optionally provide 1 or more accountIdentifiers to determine if a specific user is signed-in\r\n * @param matchAccount\r\n */\n\n\nfunction useIsAuthenticated(matchAccount) {\n  const {\n    accounts: allAccounts,\n    inProgress\n  } = useMsal();\n  const [hasAuthenticated, setHasAuthenticated] = useState(() => {\n    if (inProgress === InteractionStatus.Startup) {\n      return false;\n    }\n\n    return isAuthenticated(allAccounts, matchAccount);\n  });\n  useEffect(() => {\n    setHasAuthenticated(isAuthenticated(allAccounts, matchAccount));\n  }, [allAccounts, matchAccount]);\n  return hasAuthenticated;\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * Renders child components if user is authenticated\r\n * @param props\r\n */\n\nfunction AuthenticatedTemplate(_ref) {\n  let {\n    username,\n    homeAccountId,\n    localAccountId,\n    children\n  } = _ref;\n  const context = useMsal();\n  const accountIdentifier = useMemo(() => {\n    return {\n      username,\n      homeAccountId,\n      localAccountId\n    };\n  }, [username, homeAccountId, localAccountId]);\n  const isAuthenticated = useIsAuthenticated(accountIdentifier);\n\n  if (isAuthenticated && context.inProgress !== InteractionStatus.Startup) {\n    return React__default.createElement(React__default.Fragment, null, getChildrenOrFunction(children, context));\n  }\n\n  return null;\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * Renders child components if user is unauthenticated\r\n * @param props\r\n */\n\nfunction UnauthenticatedTemplate(_ref) {\n  let {\n    username,\n    homeAccountId,\n    localAccountId,\n    children\n  } = _ref;\n  const context = useMsal();\n  const accountIdentifier = useMemo(() => {\n    return {\n      username,\n      homeAccountId,\n      localAccountId\n    };\n  }, [username, homeAccountId, localAccountId]);\n  const isAuthenticated = useIsAuthenticated(accountIdentifier);\n\n  if (!isAuthenticated && context.inProgress !== InteractionStatus.Startup && context.inProgress !== InteractionStatus.HandleRedirect) {\n    return React__default.createElement(React__default.Fragment, null, getChildrenOrFunction(children, context));\n  }\n\n  return null;\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n\nfunction getAccount(instance, accountIdentifiers) {\n  if (!accountIdentifiers || !accountIdentifiers.homeAccountId && !accountIdentifiers.localAccountId && !accountIdentifiers.username) {\n    // If no account identifiers are provided, return active account\n    return instance.getActiveAccount();\n  }\n\n  return getAccountByIdentifiers(instance.getAllAccounts(), accountIdentifiers);\n}\n/**\r\n * Given 1 or more accountIdentifiers, returns the Account object if the user is signed-in\r\n * @param accountIdentifiers\r\n */\n\n\nfunction useAccount(accountIdentifiers) {\n  const {\n    instance,\n    inProgress,\n    logger\n  } = useMsal();\n  const [account, setAccount] = useState(() => getAccount(instance, accountIdentifiers));\n  useEffect(() => {\n    setAccount(currentAccount => {\n      const nextAccount = getAccount(instance, accountIdentifiers);\n\n      if (!AccountEntity.accountInfoIsEqual(currentAccount, nextAccount, true)) {\n        logger.info(\"useAccount - Updating account\");\n        return nextAccount;\n      }\n\n      return currentAccount;\n    });\n  }, [inProgress, accountIdentifiers, instance, logger]);\n  return account;\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\nconst ReactAuthErrorMessage = {\n  invalidInteractionType: {\n    code: \"invalid_interaction_type\",\n    desc: \"The provided interaction type is invalid.\"\n  },\n  unableToFallbackToInteraction: {\n    code: \"unable_to_fallback_to_interaction\",\n    desc: \"Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete.\"\n  }\n};\nclass ReactAuthError extends AuthError {\n  constructor(errorCode, errorMessage) {\n    super(errorCode, errorMessage);\n    Object.setPrototypeOf(this, ReactAuthError.prototype);\n    this.name = \"ReactAuthError\";\n  }\n\n  static createInvalidInteractionTypeError() {\n    return new ReactAuthError(ReactAuthErrorMessage.invalidInteractionType.code, ReactAuthErrorMessage.invalidInteractionType.desc);\n  }\n\n  static createUnableToFallbackToInteractionError() {\n    return new ReactAuthError(ReactAuthErrorMessage.unableToFallbackToInteraction.code, ReactAuthErrorMessage.unableToFallbackToInteraction.desc);\n  }\n\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * If a user is not currently signed in this hook invokes a login. Failed logins can be retried using the login callback returned.\r\n * If a user is currently signed in this hook attempts to acquire a token. Subsequent token requests can use the acquireToken callback returned.\r\n * Optionally provide a request object to be used in the login/acquireToken call.\r\n * Optionally provide a specific user that should be logged in.\r\n * @param interactionType\r\n * @param authenticationRequest\r\n * @param accountIdentifiers\r\n */\n\nfunction useMsalAuthentication(interactionType, authenticationRequest, accountIdentifiers) {\n  const {\n    instance,\n    inProgress,\n    logger\n  } = useMsal();\n  const isAuthenticated = useIsAuthenticated(accountIdentifiers);\n  const account = useAccount(accountIdentifiers);\n  const [[result, error], setResponse] = useState([null, null]); // Used to prevent state updates after unmount\n\n  const mounted = useRef(true);\n  useEffect(() => {\n    return () => {\n      mounted.current = false;\n    };\n  }, []); // Boolean used to check if interaction is in progress in acquireTokenSilent fallback. Use Ref instead of state to prevent acquireToken function from being regenerated on each change to interactionInProgress value\n\n  const interactionInProgress = useRef(inProgress !== InteractionStatus.None);\n  useEffect(() => {\n    interactionInProgress.current = inProgress !== InteractionStatus.None;\n  }, [inProgress]); // Flag used to control when the hook calls login/acquireToken\n\n  const shouldAcquireToken = useRef(true);\n  useEffect(() => {\n    if (!!error) {\n      // Errors should be handled by consuming component\n      shouldAcquireToken.current = false;\n      return;\n    }\n\n    if (!!result) {\n      // Token has already been acquired, consuming component/application is responsible for renewing\n      shouldAcquireToken.current = false;\n      return;\n    }\n  }, [error, result]);\n  const login = useCallback(async (callbackInteractionType, callbackRequest) => {\n    const loginType = callbackInteractionType || interactionType;\n    const loginRequest = callbackRequest || authenticationRequest;\n\n    switch (loginType) {\n      case InteractionType.Popup:\n        logger.verbose(\"useMsalAuthentication - Calling loginPopup\");\n        return instance.loginPopup(loginRequest);\n\n      case InteractionType.Redirect:\n        // This promise is not expected to resolve due to full frame redirect\n        logger.verbose(\"useMsalAuthentication - Calling loginRedirect\");\n        return instance.loginRedirect(loginRequest).then(null);\n\n      case InteractionType.Silent:\n        logger.verbose(\"useMsalAuthentication - Calling ssoSilent\");\n        return instance.ssoSilent(loginRequest);\n\n      default:\n        throw ReactAuthError.createInvalidInteractionTypeError();\n    }\n  }, [instance, interactionType, authenticationRequest, logger]);\n  const acquireToken = useCallback(async (callbackInteractionType, callbackRequest) => {\n    const fallbackInteractionType = callbackInteractionType || interactionType;\n    let tokenRequest;\n\n    if (callbackRequest) {\n      logger.trace(\"useMsalAuthentication - acquireToken - Using request provided in the callback\");\n      tokenRequest = { ...callbackRequest\n      };\n    } else if (authenticationRequest) {\n      logger.trace(\"useMsalAuthentication - acquireToken - Using request provided in the hook\");\n      tokenRequest = { ...authenticationRequest,\n        scopes: authenticationRequest.scopes || OIDC_DEFAULT_SCOPES\n      };\n    } else {\n      logger.trace(\"useMsalAuthentication - acquireToken - No request object provided, using default request.\");\n      tokenRequest = {\n        scopes: OIDC_DEFAULT_SCOPES\n      };\n    }\n\n    if (!tokenRequest.account && account) {\n      logger.trace(\"useMsalAuthentication - acquireToken - Attaching account to request\");\n      tokenRequest.account = account;\n    }\n\n    const getToken = async () => {\n      logger.verbose(\"useMsalAuthentication - Calling acquireTokenSilent\");\n      return instance.acquireTokenSilent(tokenRequest).catch(async e => {\n        if (e instanceof InteractionRequiredAuthError) {\n          if (!interactionInProgress.current) {\n            logger.error(\"useMsalAuthentication - Interaction required, falling back to interaction\");\n            return login(fallbackInteractionType, tokenRequest);\n          } else {\n            logger.error(\"useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes.\");\n            throw ReactAuthError.createUnableToFallbackToInteractionError();\n          }\n        }\n\n        throw e;\n      });\n    };\n\n    return getToken().then(response => {\n      if (mounted.current) {\n        setResponse([response, null]);\n      }\n\n      return response;\n    }).catch(e => {\n      if (mounted.current) {\n        setResponse([null, e]);\n      }\n\n      throw e;\n    });\n  }, [instance, interactionType, authenticationRequest, logger, account, login]);\n  useEffect(() => {\n    const callbackId = instance.addEventCallback(message => {\n      switch (message.eventType) {\n        case EventType.LOGIN_SUCCESS:\n        case EventType.SSO_SILENT_SUCCESS:\n          if (message.payload) {\n            setResponse([message.payload, null]);\n          }\n\n          break;\n\n        case EventType.LOGIN_FAILURE:\n        case EventType.SSO_SILENT_FAILURE:\n          if (message.error) {\n            setResponse([null, message.error]);\n          }\n\n          break;\n      }\n    });\n    logger.verbose(`useMsalAuthentication - Registered event callback with id: ${callbackId}`);\n    return () => {\n      if (callbackId) {\n        logger.verbose(`useMsalAuthentication - Removing event callback ${callbackId}`);\n        instance.removeEventCallback(callbackId);\n      }\n    };\n  }, [instance, logger]);\n  useEffect(() => {\n    if (shouldAcquireToken.current && inProgress === InteractionStatus.None) {\n      shouldAcquireToken.current = false;\n\n      if (!isAuthenticated) {\n        logger.info(\"useMsalAuthentication - No user is authenticated, attempting to login\");\n        login().catch(() => {\n          // Errors are saved in state above\n          return;\n        });\n      } else if (account) {\n        logger.info(\"useMsalAuthentication - User is authenticated, attempting to acquire token\");\n        acquireToken().catch(() => {\n          // Errors are saved in state above\n          return;\n        });\n      }\n    }\n  }, [isAuthenticated, account, inProgress, login, acquireToken, logger]);\n  return {\n    login,\n    acquireToken,\n    result,\n    error\n  };\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * Attempts to authenticate user if not already authenticated, then renders child components\r\n * @param props\r\n */\n\nfunction MsalAuthenticationTemplate(_ref) {\n  let {\n    interactionType,\n    username,\n    homeAccountId,\n    localAccountId,\n    authenticationRequest,\n    loadingComponent: LoadingComponent,\n    errorComponent: ErrorComponent,\n    children\n  } = _ref;\n  const accountIdentifier = useMemo(() => {\n    return {\n      username,\n      homeAccountId,\n      localAccountId\n    };\n  }, [username, homeAccountId, localAccountId]);\n  const context = useMsal();\n  const msalAuthResult = useMsalAuthentication(interactionType, authenticationRequest, accountIdentifier);\n  const isAuthenticated = useIsAuthenticated(accountIdentifier);\n\n  if (msalAuthResult.error && context.inProgress === InteractionStatus.None) {\n    if (!!ErrorComponent) {\n      return React__default.createElement(ErrorComponent, Object.assign({}, msalAuthResult));\n    }\n\n    throw msalAuthResult.error;\n  }\n\n  if (isAuthenticated) {\n    return React__default.createElement(React__default.Fragment, null, getChildrenOrFunction(children, msalAuthResult));\n  }\n\n  if (!!LoadingComponent && context.inProgress !== InteractionStatus.None) {\n    return React__default.createElement(LoadingComponent, Object.assign({}, context));\n  }\n\n  return null;\n}\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\n/**\r\n * Higher order component wraps provided component with msal by injecting msal context values into the component's props\r\n * @param Component\r\n */\n\nconst withMsal = Component => {\n  const ComponentWithMsal = props => {\n    const msal = useMsal();\n    return React__default.createElement(Component, Object.assign({}, props, {\n      msalContext: msal\n    }));\n  };\n\n  const componentName = Component.displayName || Component.name || \"Component\";\n  ComponentWithMsal.displayName = `withMsal(${componentName})`;\n  return ComponentWithMsal;\n};\n\nexport { AuthenticatedTemplate, MsalAuthenticationTemplate, MsalConsumer, MsalContext, MsalProvider, UnauthenticatedTemplate, useAccount, useIsAuthenticated, useMsal, useMsalAuthentication, version, withMsal };\n//# sourceMappingURL=msal-react.esm.js.map\n","var isDevelopment = true;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n  if (tag.sheet) {\n    return tag.sheet;\n  } // this weirdness brought to you by firefox\n\n  /* istanbul ignore next */\n\n\n  for (var i = 0; i < document.styleSheets.length; i++) {\n    if (document.styleSheets[i].ownerNode === tag) {\n      return document.styleSheets[i];\n    }\n  } // this function should always return with a value\n  // TS can't understand it though so we make it stop complaining here\n\n\n  return undefined;\n}\n\nfunction createStyleElement(options) {\n  var tag = document.createElement('style');\n  tag.setAttribute('data-emotion', options.key);\n\n  if (options.nonce !== undefined) {\n    tag.setAttribute('nonce', options.nonce);\n  }\n\n  tag.appendChild(document.createTextNode(''));\n  tag.setAttribute('data-s', '');\n  return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n  // Using Node instead of HTMLElement since container may be a ShadowRoot\n  function StyleSheet(options) {\n    var _this = this;\n\n    this._insertTag = function (tag) {\n      var before;\n\n      if (_this.tags.length === 0) {\n        if (_this.insertionPoint) {\n          before = _this.insertionPoint.nextSibling;\n        } else if (_this.prepend) {\n          before = _this.container.firstChild;\n        } else {\n          before = _this.before;\n        }\n      } else {\n        before = _this.tags[_this.tags.length - 1].nextSibling;\n      }\n\n      _this.container.insertBefore(tag, before);\n\n      _this.tags.push(tag);\n    };\n\n    this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n    this.tags = [];\n    this.ctr = 0;\n    this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n    this.key = options.key;\n    this.container = options.container;\n    this.prepend = options.prepend;\n    this.insertionPoint = options.insertionPoint;\n    this.before = null;\n  }\n\n  var _proto = StyleSheet.prototype;\n\n  _proto.hydrate = function hydrate(nodes) {\n    nodes.forEach(this._insertTag);\n  };\n\n  _proto.insert = function insert(rule) {\n    // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n    // it's 1 in dev because we insert source maps that map a single rule to a location\n    // and you can only have one source map per style tag\n    if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n      this._insertTag(createStyleElement(this));\n    }\n\n    var tag = this.tags[this.tags.length - 1];\n\n    {\n      var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;\n\n      if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {\n        // this would only cause problem in speedy mode\n        // but we don't want enabling speedy to affect the observable behavior\n        // so we report this error at all times\n        console.error(\"You're attempting to insert the following rule:\\n\" + rule + '\\n\\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');\n      }\n\n      this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;\n    }\n\n    if (this.isSpeedy) {\n      var sheet = sheetForTag(tag);\n\n      try {\n        // this is the ultrafast version, works across browsers\n        // the big drawback is that the css won't be editable in devtools\n        sheet.insertRule(rule, sheet.cssRules.length);\n      } catch (e) {\n        if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {\n          console.error(\"There was a problem inserting the following rule: \\\"\" + rule + \"\\\"\", e);\n        }\n      }\n    } else {\n      tag.appendChild(document.createTextNode(rule));\n    }\n\n    this.ctr++;\n  };\n\n  _proto.flush = function flush() {\n    this.tags.forEach(function (tag) {\n      var _tag$parentNode;\n\n      return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n    });\n    this.tags = [];\n    this.ctr = 0;\n\n    {\n      this._alreadyInsertedOrderInsensitiveRule = false;\n    }\n  };\n\n  return StyleSheet;\n}();\n\nexport { StyleSheet };\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, middleware, stringify, COMMENT, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n  var previous = 0;\n  var character = 0;\n\n  while (true) {\n    previous = character;\n    character = peek(); // &\\f\n\n    if (previous === 38 && character === 12) {\n      points[index] = 1;\n    }\n\n    if (token(character)) {\n      break;\n    }\n\n    next();\n  }\n\n  return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n  // pretend we've started with a comma\n  var index = -1;\n  var character = 44;\n\n  do {\n    switch (token(character)) {\n      case 0:\n        // &\\f\n        if (character === 38 && peek() === 12) {\n          // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n          // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n          // and when it should just concatenate the outer and inner selectors\n          // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n          points[index] = 1;\n        }\n\n        parsed[index] += identifierWithPointTracking(position - 1, points, index);\n        break;\n\n      case 2:\n        parsed[index] += delimit(character);\n        break;\n\n      case 4:\n        // comma\n        if (character === 44) {\n          // colon\n          parsed[++index] = peek() === 58 ? '&\\f' : '';\n          points[index] = parsed[index].length;\n          break;\n        }\n\n      // fallthrough\n\n      default:\n        parsed[index] += from(character);\n    }\n  } while (character = next());\n\n  return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n  return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n  if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n  // negative .length indicates that this rule has been already prefixed\n  element.length < 1) {\n    return;\n  }\n\n  var value = element.value;\n  var parent = element.parent;\n  var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n  while (parent.type !== 'rule') {\n    parent = parent.parent;\n    if (!parent) return;\n  } // short-circuit for the simplest case\n\n\n  if (element.props.length === 1 && value.charCodeAt(0) !== 58\n  /* colon */\n  && !fixedElements.get(parent)) {\n    return;\n  } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n  // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n  if (isImplicitRule) {\n    return;\n  }\n\n  fixedElements.set(element, true);\n  var points = [];\n  var rules = getRules(value, points);\n  var parentRules = parent.props;\n\n  for (var i = 0, k = 0; i < rules.length; i++) {\n    for (var j = 0; j < parentRules.length; j++, k++) {\n      element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n    }\n  }\n};\nvar removeLabel = function removeLabel(element) {\n  if (element.type === 'decl') {\n    var value = element.value;\n\n    if ( // charcode for l\n    value.charCodeAt(0) === 108 && // charcode for b\n    value.charCodeAt(2) === 98) {\n      // this ignores label\n      element[\"return\"] = '';\n      element.value = '';\n    }\n  }\n};\nvar ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';\n\nvar isIgnoringComment = function isIgnoringComment(element) {\n  return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;\n};\n\nvar createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {\n  return function (element, index, children) {\n    if (element.type !== 'rule' || cache.compat) return;\n    var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);\n\n    if (unsafePseudoClasses) {\n      var isNested = !!element.parent; // in nested rules comments become children of the \"auto-inserted\" rule and that's always the `element.parent`\n      //\n      // considering this input:\n      // .a {\n      //   .b /* comm */ {}\n      //   color: hotpink;\n      // }\n      // we get output corresponding to this:\n      // .a {\n      //   & {\n      //     /* comm */\n      //     color: hotpink;\n      //   }\n      //   .b {}\n      // }\n\n      var commentContainer = isNested ? element.parent.children : // global rule at the root level\n      children;\n\n      for (var i = commentContainer.length - 1; i >= 0; i--) {\n        var node = commentContainer[i];\n\n        if (node.line < element.line) {\n          break;\n        } // it is quite weird but comments are *usually* put at `column: element.column - 1`\n        // so we seek *from the end* for the node that is earlier than the rule's `element` and check that\n        // this will also match inputs like this:\n        // .a {\n        //   /* comm */\n        //   .b {}\n        // }\n        //\n        // but that is fine\n        //\n        // it would be the easiest to change the placement of the comment to be the first child of the rule:\n        // .a {\n        //   .b { /* comm */ }\n        // }\n        // with such inputs we wouldn't have to search for the comment at all\n        // TODO: consider changing this comment placement in the next major version\n\n\n        if (node.column < element.column) {\n          if (isIgnoringComment(node)) {\n            return;\n          }\n\n          break;\n        }\n      }\n\n      unsafePseudoClasses.forEach(function (unsafePseudoClass) {\n        console.error(\"The pseudo class \\\"\" + unsafePseudoClass + \"\\\" is potentially unsafe when doing server-side rendering. Try changing it to \\\"\" + unsafePseudoClass.split('-child')[0] + \"-of-type\\\".\");\n      });\n    }\n  };\n};\n\nvar isImportRule = function isImportRule(element) {\n  return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;\n};\n\nvar isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {\n  for (var i = index - 1; i >= 0; i--) {\n    if (!isImportRule(children[i])) {\n      return true;\n    }\n  }\n\n  return false;\n}; // use this to remove incorrect elements from further processing\n// so they don't get handed to the `sheet` (or anything else)\n// as that could potentially lead to additional logs which in turn could be overhelming to the user\n\n\nvar nullifyElement = function nullifyElement(element) {\n  element.type = '';\n  element.value = '';\n  element[\"return\"] = '';\n  element.children = '';\n  element.props = '';\n};\n\nvar incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {\n  if (!isImportRule(element)) {\n    return;\n  }\n\n  if (element.parent) {\n    console.error(\"`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.\");\n    nullifyElement(element);\n  } else if (isPrependedWithRegularRules(index, children)) {\n    console.error(\"`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.\");\n    nullifyElement(element);\n  }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n  switch (hash(value, length)) {\n    // color-adjust\n    case 5103:\n      return WEBKIT + 'print-' + value + value;\n    // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n    case 5737:\n    case 4201:\n    case 3177:\n    case 3433:\n    case 1641:\n    case 4457:\n    case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n    case 5572:\n    case 6356:\n    case 5844:\n    case 3191:\n    case 6645:\n    case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n    case 6391:\n    case 5879:\n    case 5623:\n    case 6135:\n    case 4599:\n    case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n    case 4215:\n    case 6389:\n    case 5109:\n    case 5365:\n    case 5621:\n    case 3829:\n      return WEBKIT + value + value;\n    // appearance, user-select, transform, hyphens, text-size-adjust\n\n    case 5349:\n    case 4246:\n    case 4810:\n    case 6968:\n    case 2756:\n      return WEBKIT + value + MOZ + value + MS + value + value;\n    // flex, flex-direction\n\n    case 6828:\n    case 4268:\n      return WEBKIT + value + MS + value + value;\n    // order\n\n    case 6165:\n      return WEBKIT + value + MS + 'flex-' + value + value;\n    // align-items\n\n    case 5187:\n      return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n    // align-self\n\n    case 5443:\n      return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n    // align-content\n\n    case 4675:\n      return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n    // flex-shrink\n\n    case 5548:\n      return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n    // flex-basis\n\n    case 5292:\n      return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n    // flex-grow\n\n    case 6060:\n      return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n    // transition\n\n    case 4554:\n      return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n    // cursor\n\n    case 6187:\n      return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n    // background, background-image\n\n    case 5495:\n    case 3959:\n      return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n    // justify-content\n\n    case 4968:\n      return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n    // (margin|padding)-inline-(start|end)\n\n    case 4095:\n    case 3583:\n    case 4068:\n    case 2532:\n      return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n    // (min|max)?(width|height|inline-size|block-size)\n\n    case 8116:\n    case 7059:\n    case 5753:\n    case 5535:\n    case 5445:\n    case 5701:\n    case 4933:\n    case 4677:\n    case 5533:\n    case 5789:\n    case 5021:\n    case 4765:\n      // stretch, max-content, min-content, fill-available\n      if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n        // (m)ax-content, (m)in-content\n        case 109:\n          // -\n          if (charat(value, length + 4) !== 45) break;\n        // (f)ill-available, (f)it-content\n\n        case 102:\n          return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n        // (s)tretch\n\n        case 115:\n          return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n      }\n      break;\n    // position: sticky\n\n    case 4949:\n      // (s)ticky?\n      if (charat(value, length + 1) !== 115) break;\n    // display: (flex|inline-flex)\n\n    case 6444:\n      switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n        // stic(k)y\n        case 107:\n          return replace(value, ':', ':' + WEBKIT) + value;\n        // (inline-)?fl(e)x\n\n        case 101:\n          return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n      }\n\n      break;\n    // writing-mode\n\n    case 5936:\n      switch (charat(value, length + 11)) {\n        // vertical-l(r)\n        case 114:\n          return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n        // vertical-r(l)\n\n        case 108:\n          return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n        // horizontal(-)tb\n\n        case 45:\n          return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n      }\n\n      return WEBKIT + value + MS + value + value;\n  }\n\n  return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n  if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n    case DECLARATION:\n      element[\"return\"] = prefix(element.value, element.length);\n      break;\n\n    case KEYFRAMES:\n      return serialize([copy(element, {\n        value: replace(element.value, '@', '@' + WEBKIT)\n      })], callback);\n\n    case RULESET:\n      if (element.length) return combine(element.props, function (value) {\n        switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n          // :read-(only|write)\n          case ':read-only':\n          case ':read-write':\n            return serialize([copy(element, {\n              props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n            })], callback);\n          // :placeholder\n\n          case '::placeholder':\n            return serialize([copy(element, {\n              props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n            }), copy(element, {\n              props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n            }), copy(element, {\n              props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n            })], callback);\n        }\n\n        return '';\n      });\n  }\n};\n\nvar defaultStylisPlugins = [prefixer];\nvar getSourceMap;\n\n{\n  var sourceMapPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n\n  getSourceMap = function getSourceMap(styles) {\n    var matches = styles.match(sourceMapPattern);\n    if (!matches) return;\n    return matches[matches.length - 1];\n  };\n}\n\nvar createCache = function createCache(options) {\n  var key = options.key;\n\n  if (!key) {\n    throw new Error(\"You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\\n\" + \"If multiple caches share the same key they might \\\"fight\\\" for each other's style elements.\");\n  }\n\n  if (key === 'css') {\n    var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n    // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n    // note this very very intentionally targets all style elements regardless of the key to ensure\n    // that creating a cache works inside of render of a React component\n\n    Array.prototype.forEach.call(ssrStyles, function (node) {\n      // we want to only move elements which have a space in the data-emotion attribute value\n      // because that indicates that it is an Emotion 11 server-side rendered style elements\n      // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n      // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n      // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n      // will not result in the Emotion 10 styles being destroyed\n      var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n      if (dataEmotionAttribute.indexOf(' ') === -1) {\n        return;\n      }\n\n      document.head.appendChild(node);\n      node.setAttribute('data-s', '');\n    });\n  }\n\n  var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n  {\n    if (/[^a-z-]/.test(key)) {\n      throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n    }\n  }\n\n  var inserted = {};\n  var container;\n  var nodesToHydrate = [];\n\n  {\n    container = options.container || document.head;\n    Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n    // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n    document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n      var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n      for (var i = 1; i < attrib.length; i++) {\n        inserted[attrib[i]] = true;\n      }\n\n      nodesToHydrate.push(node);\n    });\n  }\n\n  var _insert;\n\n  var omnipresentPlugins = [compat, removeLabel];\n\n  {\n    omnipresentPlugins.push(createUnsafeSelectorsAlarm({\n      get compat() {\n        return cache.compat;\n      }\n\n    }), incorrectImportAlarm);\n  }\n\n  {\n    var currentSheet;\n    var finalizingPlugins = [stringify, function (element) {\n      if (!element.root) {\n        if (element[\"return\"]) {\n          currentSheet.insert(element[\"return\"]);\n        } else if (element.value && element.type !== COMMENT) {\n          // insert empty rule in non-production environments\n          // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet\n          currentSheet.insert(element.value + \"{}\");\n        }\n      }\n    } ];\n    var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n    var stylis = function stylis(styles) {\n      return serialize(compile(styles), serializer);\n    };\n\n    _insert = function insert(selector, serialized, sheet, shouldCache) {\n      currentSheet = sheet;\n\n      if (getSourceMap) {\n        var sourceMap = getSourceMap(serialized.styles);\n\n        if (sourceMap) {\n          currentSheet = {\n            insert: function insert(rule) {\n              sheet.insert(rule + sourceMap);\n            }\n          };\n        }\n      }\n\n      stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n      if (shouldCache) {\n        cache.inserted[serialized.name] = true;\n      }\n    };\n  }\n\n  var cache = {\n    key: key,\n    sheet: new StyleSheet({\n      key: key,\n      container: container,\n      nonce: options.nonce,\n      speedy: options.speedy,\n      prepend: options.prepend,\n      insertionPoint: options.insertionPoint\n    }),\n    nonce: options.nonce,\n    inserted: inserted,\n    registered: {},\n    insert: _insert\n  };\n  cache.sheet.hydrate(nodesToHydrate);\n  return cache;\n};\n\nexport { createCache as default };\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","function memoize(fn) {\n  var cache = Object.create(null);\n  return function (arg) {\n    if (cache[arg] === undefined) cache[arg] = fn(arg);\n    return cache[arg];\n  };\n}\n\nexport { memoize as default };\n","import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n  key: 'css'\n}) : null);\n\n{\n  EmotionCacheContext.displayName = 'EmotionCacheContext';\n}\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n  return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n  return /*#__PURE__*/forwardRef(function (props, ref) {\n    // the cache will never be null in the browser\n    var cache = useContext(EmotionCacheContext);\n    return func(props, cache, ref);\n  });\n};\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\n{\n  ThemeContext.displayName = 'EmotionThemeContext';\n}\n\nvar useTheme = function useTheme() {\n  return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n  if (typeof theme === 'function') {\n    var mergedTheme = theme(outerTheme);\n\n    if ((mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {\n      throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');\n    }\n\n    return mergedTheme;\n  }\n\n  if ((theme == null || typeof theme !== 'object' || Array.isArray(theme))) {\n    throw new Error('[ThemeProvider] Please make your theme prop a plain object');\n  }\n\n  return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n  return weakMemoize(function (theme) {\n    return getTheme(outerTheme, theme);\n  });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n  var theme = React.useContext(ThemeContext);\n\n  if (props.theme !== theme) {\n    theme = createCacheWithTheme(theme)(props.theme);\n  }\n\n  return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n    value: theme\n  }, props.children);\n};\nfunction withTheme(Component) {\n  var componentName = Component.displayName || Component.name || 'Component';\n  var WithTheme = /*#__PURE__*/React.forwardRef(function render(props, ref) {\n    var theme = React.useContext(ThemeContext);\n    return /*#__PURE__*/React.createElement(Component, _extends({\n      theme: theme,\n      ref: ref\n    }, props));\n  });\n  WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n  return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar getLastPart = function getLastPart(functionName) {\n  // The match may be something like 'Object.createEmotionProps' or\n  // 'Loader.prototype.render'\n  var parts = functionName.split('.');\n  return parts[parts.length - 1];\n};\n\nvar getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {\n  // V8\n  var match = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line);\n  if (match) return getLastPart(match[1]); // Safari / Firefox\n\n  match = /^([A-Za-z0-9$.]+)@/.exec(line);\n  if (match) return getLastPart(match[1]);\n  return undefined;\n};\n\nvar internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS\n// identifiers, thus we only need to replace what is a valid character for JS,\n// but not for CSS.\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n  return identifier.replace(/\\$/g, '-');\n};\n\nvar getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {\n  if (!stackTrace) return undefined;\n  var lines = stackTrace.split('\\n');\n\n  for (var i = 0; i < lines.length; i++) {\n    var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just \"Error\"\n\n    if (!functionName) continue; // If we reach one of these, we have gone too far and should quit\n\n    if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an\n    // uppercase letter\n\n    if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);\n  }\n\n  return undefined;\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n  if (typeof props.css === 'string' && // check if there is a css declaration\n  props.css.indexOf(':') !== -1) {\n    throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`\" + props.css + \"`\");\n  }\n\n  var newProps = {};\n\n  for (var _key in props) {\n    if (hasOwn.call(props, _key)) {\n      newProps[_key] = props[_key];\n    }\n  }\n\n  newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n  // - It causes hydration warnings when using Safari and SSR\n  // - It can degrade performance if there are a huge number of elements\n  //\n  // Even if the flag is set, we still don't compute the label if it has already\n  // been determined by the Babel plugin.\n\n  if (typeof globalThis !== 'undefined' && !!globalThis.EMOTION_RUNTIME_AUTO_LABEL && !!props.css && (typeof props.css !== 'object' || !('name' in props.css) || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {\n    var label = getLabelFromStackTrace(new Error().stack);\n    if (label) newProps[labelPropName] = label;\n  }\n\n  return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n  var cache = _ref.cache,\n      serialized = _ref.serialized,\n      isStringTag = _ref.isStringTag;\n  registerStyles(cache, serialized, isStringTag);\n  useInsertionEffectAlwaysWithSyncFallback(function () {\n    return insertStyles(cache, serialized, isStringTag);\n  });\n\n  return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n  var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n  // not passing the registered cache to serializeStyles because it would\n  // make certain babel optimisations not possible\n\n  if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n    cssProp = cache.registered[cssProp];\n  }\n\n  var WrappedComponent = props[typePropName];\n  var registeredStyles = [cssProp];\n  var className = '';\n\n  if (typeof props.className === 'string') {\n    className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n  } else if (props.className != null) {\n    className = props.className + \" \";\n  }\n\n  var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n  if (serialized.name.indexOf('-') === -1) {\n    var labelFromStack = props[labelPropName];\n\n    if (labelFromStack) {\n      serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n    }\n  }\n\n  className += cache.key + \"-\" + serialized.name;\n  var newProps = {};\n\n  for (var _key2 in props) {\n    if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (_key2 !== labelPropName)) {\n      newProps[_key2] = props[_key2];\n    }\n  }\n\n  newProps.className = className;\n\n  if (ref) {\n    newProps.ref = ref;\n  }\n\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n    cache: cache,\n    serialized: serialized,\n    isStringTag: typeof WrappedComponent === 'string'\n  }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\n{\n  Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, useTheme as u, withEmotionCache as w };\n","import hoistNonReactStatics$1 from 'hoist-non-react-statics';\n\n// this file isolates this package that is not tree-shakeable\n// and if this module doesn't actually contain any logic of its own\n// then Rollup just use 'hoist-non-react-statics' directly in other chunks\n\nvar hoistNonReactStatics = (function (targetComponent, sourceComponent) {\n  return hoistNonReactStatics$1(targetComponent, sourceComponent);\n});\n\nexport { hoistNonReactStatics as default };\n","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext } from './emotion-element-489459f2.browser.development.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-489459f2.browser.development.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js';\nimport 'hoist-non-react-statics';\n\nvar isDevelopment = true;\n\nvar pkg = {\n\tname: \"@emotion/react\",\n\tversion: \"11.14.0\",\n\tmain: \"dist/emotion-react.cjs.js\",\n\tmodule: \"dist/emotion-react.esm.js\",\n\ttypes: \"dist/emotion-react.cjs.d.ts\",\n\texports: {\n\t\t\".\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./dist/emotion-react.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./dist/emotion-react.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./dist/emotion-react.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./dist/emotion-react.development.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./dist/emotion-react.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./dist/emotion-react.browser.esm.js\",\n\t\t\t\t\"import\": \"./dist/emotion-react.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./dist/emotion-react.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./dist/emotion-react.esm.js\",\n\t\t\t\"import\": \"./dist/emotion-react.cjs.mjs\",\n\t\t\t\"default\": \"./dist/emotion-react.cjs.js\"\n\t\t},\n\t\t\"./jsx-runtime\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js\",\n\t\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js\",\n\t\t\t\"import\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n\t\t},\n\t\t\"./_isolated-hnrs\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\",\n\t\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js\",\n\t\t\t\"import\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n\t\t\t\"default\": \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n\t\t},\n\t\t\"./jsx-dev-runtime\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t\t},\n\t\t\tdevelopment: {\n\t\t\t\t\"edge-light\": {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworker: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tworkerd: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js\"\n\t\t\t\t},\n\t\t\t\tbrowser: {\n\t\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js\",\n\t\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs\",\n\t\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js\"\n\t\t\t\t},\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js\"\n\t\t\t},\n\t\t\t\"edge-light\": {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworker: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tworkerd: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js\"\n\t\t\t},\n\t\t\tbrowser: {\n\t\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js\",\n\t\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs\",\n\t\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js\"\n\t\t\t},\n\t\t\tmodule: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js\",\n\t\t\t\"import\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n\t\t\t\"default\": \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\"./macro\": {\n\t\t\ttypes: {\n\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t},\n\t\t\t\"default\": \"./macro.js\"\n\t\t}\n\t},\n\timports: {\n\t\t\"#is-development\": {\n\t\t\tdevelopment: \"./src/conditions/true.ts\",\n\t\t\t\"default\": \"./src/conditions/false.ts\"\n\t\t},\n\t\t\"#is-browser\": {\n\t\t\t\"edge-light\": \"./src/conditions/false.ts\",\n\t\t\tworkerd: \"./src/conditions/false.ts\",\n\t\t\tworker: \"./src/conditions/false.ts\",\n\t\t\tbrowser: \"./src/conditions/true.ts\",\n\t\t\t\"default\": \"./src/conditions/is-browser.ts\"\n\t\t}\n\t},\n\tfiles: [\n\t\t\"src\",\n\t\t\"dist\",\n\t\t\"jsx-runtime\",\n\t\t\"jsx-dev-runtime\",\n\t\t\"_isolated-hnrs\",\n\t\t\"types/css-prop.d.ts\",\n\t\t\"macro.*\"\n\t],\n\tsideEffects: false,\n\tauthor: \"Emotion Contributors\",\n\tlicense: \"MIT\",\n\tscripts: {\n\t\t\"test:typescript\": \"dtslint types\"\n\t},\n\tdependencies: {\n\t\t\"@babel/runtime\": \"^7.18.3\",\n\t\t\"@emotion/babel-plugin\": \"^11.13.5\",\n\t\t\"@emotion/cache\": \"^11.14.0\",\n\t\t\"@emotion/serialize\": \"^1.3.3\",\n\t\t\"@emotion/use-insertion-effect-with-fallbacks\": \"^1.2.0\",\n\t\t\"@emotion/utils\": \"^1.4.2\",\n\t\t\"@emotion/weak-memoize\": \"^0.4.0\",\n\t\t\"hoist-non-react-statics\": \"^3.3.1\"\n\t},\n\tpeerDependencies: {\n\t\treact: \">=16.8.0\"\n\t},\n\tpeerDependenciesMeta: {\n\t\t\"@types/react\": {\n\t\t\toptional: true\n\t\t}\n\t},\n\tdevDependencies: {\n\t\t\"@definitelytyped/dtslint\": \"0.0.112\",\n\t\t\"@emotion/css\": \"11.13.5\",\n\t\t\"@emotion/css-prettifier\": \"1.2.0\",\n\t\t\"@emotion/server\": \"11.11.0\",\n\t\t\"@emotion/styled\": \"11.14.0\",\n\t\t\"@types/hoist-non-react-statics\": \"^3.3.5\",\n\t\t\"html-tag-names\": \"^1.1.2\",\n\t\treact: \"16.14.0\",\n\t\t\"svg-tag-names\": \"^1.1.1\",\n\t\ttypescript: \"^5.4.5\"\n\t},\n\trepository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n\tpublishConfig: {\n\t\taccess: \"public\"\n\t},\n\t\"umd:main\": \"dist/emotion-react.umd.min.js\",\n\tpreconstruct: {\n\t\tentrypoints: [\n\t\t\t\"./index.ts\",\n\t\t\t\"./jsx-runtime.ts\",\n\t\t\t\"./jsx-dev-runtime.ts\",\n\t\t\t\"./_isolated-hnrs.ts\"\n\t\t],\n\t\tumdName: \"emotionReact\",\n\t\texports: {\n\t\t\textra: {\n\t\t\t\t\"./types/css-prop\": \"./types/css-prop.d.ts\",\n\t\t\t\t\"./macro\": {\n\t\t\t\t\ttypes: {\n\t\t\t\t\t\t\"import\": \"./macro.d.mts\",\n\t\t\t\t\t\t\"default\": \"./macro.d.ts\"\n\t\t\t\t\t},\n\t\t\t\t\t\"default\": \"./macro.js\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar jsx = function jsx(type, props) {\n  // eslint-disable-next-line prefer-rest-params\n  var args = arguments;\n\n  if (props == null || !hasOwn.call(props, 'css')) {\n    return React.createElement.apply(undefined, args);\n  }\n\n  var argsLength = args.length;\n  var createElementArgArray = new Array(argsLength);\n  createElementArgArray[0] = Emotion;\n  createElementArgArray[1] = createEmotionProps(type, props);\n\n  for (var i = 2; i < argsLength; i++) {\n    createElementArgArray[i] = args[i];\n  }\n\n  return React.createElement.apply(null, createElementArgArray);\n};\n\n(function (_jsx) {\n  var JSX;\n\n  (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));\n})(jsx || (jsx = {}));\n\nvar warnedAboutCssPropForGlobal = false; // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n  if (!warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n  // probably using the custom createElement which\n  // means it will be turned into a className prop\n  // I don't really want to add it to the type since it shouldn't be used\n  'className' in props && props.className || 'css' in props && props.css)) {\n    console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n    warnedAboutCssPropForGlobal = true;\n  }\n\n  var styles = props.styles;\n  var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n  // but it is based on a constant that will never change at runtime\n  // it's effectively like having two implementations and switching them out\n  // so it's not actually breaking anything\n\n\n  var sheetRef = React.useRef();\n  useInsertionEffectWithLayoutFallback(function () {\n    var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n    var sheet = new cache.sheet.constructor({\n      key: key,\n      nonce: cache.sheet.nonce,\n      container: cache.sheet.container,\n      speedy: cache.sheet.isSpeedy\n    });\n    var rehydrating = false;\n    var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n    if (cache.sheet.tags.length) {\n      sheet.before = cache.sheet.tags[0];\n    }\n\n    if (node !== null) {\n      rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s\n\n      node.setAttribute('data-emotion', key);\n      sheet.hydrate([node]);\n    }\n\n    sheetRef.current = [sheet, rehydrating];\n    return function () {\n      sheet.flush();\n    };\n  }, [cache]);\n  useInsertionEffectWithLayoutFallback(function () {\n    var sheetRefCurrent = sheetRef.current;\n    var sheet = sheetRefCurrent[0],\n        rehydrating = sheetRefCurrent[1];\n\n    if (rehydrating) {\n      sheetRefCurrent[1] = false;\n      return;\n    }\n\n    if (serialized.next !== undefined) {\n      // insert keyframes\n      insertStyles(cache, serialized.next, true);\n    }\n\n    if (sheet.tags.length) {\n      // if this doesn't exist then it will be null so the style element will be appended\n      var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n      sheet.before = element;\n      sheet.flush();\n    }\n\n    cache.insert(\"\", serialized, sheet, false);\n  }, [cache, serialized.name]);\n  return null;\n});\n\n{\n  Global.displayName = 'EmotionGlobal';\n}\n\nfunction css() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  return serializeStyles(args);\n}\n\nfunction keyframes() {\n  var insertable = css.apply(void 0, arguments);\n  var name = \"animation-\" + insertable.name;\n  return {\n    name: name,\n    styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n    anim: 1,\n    toString: function toString() {\n      return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n    }\n  };\n}\n\nvar classnames = function classnames(args) {\n  var len = args.length;\n  var i = 0;\n  var cls = '';\n\n  for (; i < len; i++) {\n    var arg = args[i];\n    if (arg == null) continue;\n    var toAdd = void 0;\n\n    switch (typeof arg) {\n      case 'boolean':\n        break;\n\n      case 'object':\n        {\n          if (Array.isArray(arg)) {\n            toAdd = classnames(arg);\n          } else {\n            if (arg.styles !== undefined && arg.name !== undefined) {\n              console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');\n            }\n\n            toAdd = '';\n\n            for (var k in arg) {\n              if (arg[k] && k) {\n                toAdd && (toAdd += ' ');\n                toAdd += k;\n              }\n            }\n          }\n\n          break;\n        }\n\n      default:\n        {\n          toAdd = arg;\n        }\n    }\n\n    if (toAdd) {\n      cls && (cls += ' ');\n      cls += toAdd;\n    }\n  }\n\n  return cls;\n};\n\nfunction merge(registered, css, className) {\n  var registeredStyles = [];\n  var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n  if (registeredStyles.length < 2) {\n    return className;\n  }\n\n  return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n  var cache = _ref.cache,\n      serializedArr = _ref.serializedArr;\n  useInsertionEffectAlwaysWithSyncFallback(function () {\n\n    for (var i = 0; i < serializedArr.length; i++) {\n      insertStyles(cache, serializedArr[i], false);\n    }\n  });\n\n  return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n  var hasRendered = false;\n  var serializedArr = [];\n\n  var css = function css() {\n    if (hasRendered && isDevelopment) {\n      throw new Error('css can only be used during render');\n    }\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    var serialized = serializeStyles(args, cache.registered);\n    serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n    registerStyles(cache, serialized, false);\n    return cache.key + \"-\" + serialized.name;\n  };\n\n  var cx = function cx() {\n    if (hasRendered && isDevelopment) {\n      throw new Error('cx can only be used during render');\n    }\n\n    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n\n    return merge(cache.registered, css, classnames(args));\n  };\n\n  var content = {\n    css: css,\n    cx: cx,\n    theme: React.useContext(ThemeContext)\n  };\n  var ele = props.children(content);\n  hasRendered = true;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n    cache: cache,\n    serializedArr: serializedArr\n  }), ele);\n});\n\n{\n  ClassNames.displayName = 'EmotionClassNames';\n}\n\n{\n  var isBrowser = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked\n\n  var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';\n\n  if (isBrowser && !isTestEnv) {\n    // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later\n    var globalContext = typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef\n    : isBrowser ? window : global;\n    var globalKey = \"__EMOTION_REACT_\" + pkg.version.split('.')[0] + \"__\";\n\n    if (globalContext[globalKey]) {\n      console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');\n    }\n\n    globalContext[globalKey] = true;\n  }\n}\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","var unitlessKeys = {\n  animationIterationCount: 1,\n  aspectRatio: 1,\n  borderImageOutset: 1,\n  borderImageSlice: 1,\n  borderImageWidth: 1,\n  boxFlex: 1,\n  boxFlexGroup: 1,\n  boxOrdinalGroup: 1,\n  columnCount: 1,\n  columns: 1,\n  flex: 1,\n  flexGrow: 1,\n  flexPositive: 1,\n  flexShrink: 1,\n  flexNegative: 1,\n  flexOrder: 1,\n  gridRow: 1,\n  gridRowEnd: 1,\n  gridRowSpan: 1,\n  gridRowStart: 1,\n  gridColumn: 1,\n  gridColumnEnd: 1,\n  gridColumnSpan: 1,\n  gridColumnStart: 1,\n  msGridRow: 1,\n  msGridRowSpan: 1,\n  msGridColumn: 1,\n  msGridColumnSpan: 1,\n  fontWeight: 1,\n  lineHeight: 1,\n  opacity: 1,\n  order: 1,\n  orphans: 1,\n  scale: 1,\n  tabSize: 1,\n  widows: 1,\n  zIndex: 1,\n  zoom: 1,\n  WebkitLineClamp: 1,\n  // SVG-related properties\n  fillOpacity: 1,\n  floodOpacity: 1,\n  stopOpacity: 1,\n  strokeDasharray: 1,\n  strokeDashoffset: 1,\n  strokeMiterlimit: 1,\n  strokeOpacity: 1,\n  strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = true;\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\nvar UNDEFINED_AS_OBJECT_KEY_ERROR = \"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\";\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n  return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n  return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n  return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n  switch (key) {\n    case 'animation':\n    case 'animationName':\n      {\n        if (typeof value === 'string') {\n          return value.replace(animationRegex, function (match, p1, p2) {\n            cursor = {\n              name: p1,\n              styles: p2,\n              next: cursor\n            };\n            return p1;\n          });\n        }\n      }\n  }\n\n  if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n    return value + 'px';\n  }\n\n  return value;\n};\n\n{\n  var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/;\n  var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];\n  var oldProcessStyleValue = processStyleValue;\n  var msPattern = /^-ms-/;\n  var hyphenPattern = /-(.)/g;\n  var hyphenatedCache = {};\n\n  processStyleValue = function processStyleValue(key, value) {\n    if (key === 'content') {\n      if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n        throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n      }\n    }\n\n    var processed = oldProcessStyleValue(key, value);\n\n    if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {\n      hyphenatedCache[key] = true;\n      console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \" + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {\n        return _char.toUpperCase();\n      }) + \"?\");\n    }\n\n    return processed;\n  };\n}\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n  if (interpolation == null) {\n    return '';\n  }\n\n  var componentSelector = interpolation;\n\n  if (componentSelector.__emotion_styles !== undefined) {\n    if (String(componentSelector) === 'NO_COMPONENT_SELECTOR') {\n      throw new Error(noComponentSelectorMessage);\n    }\n\n    return componentSelector;\n  }\n\n  switch (typeof interpolation) {\n    case 'boolean':\n      {\n        return '';\n      }\n\n    case 'object':\n      {\n        var keyframes = interpolation;\n\n        if (keyframes.anim === 1) {\n          cursor = {\n            name: keyframes.name,\n            styles: keyframes.styles,\n            next: cursor\n          };\n          return keyframes.name;\n        }\n\n        var serializedStyles = interpolation;\n\n        if (serializedStyles.styles !== undefined) {\n          var next = serializedStyles.next;\n\n          if (next !== undefined) {\n            // not the most efficient thing ever but this is a pretty rare case\n            // and there will be very few iterations of this generally\n            while (next !== undefined) {\n              cursor = {\n                name: next.name,\n                styles: next.styles,\n                next: cursor\n              };\n              next = next.next;\n            }\n          }\n\n          var styles = serializedStyles.styles + \";\";\n          return styles;\n        }\n\n        return createStringFromObject(mergedProps, registered, interpolation);\n      }\n\n    case 'function':\n      {\n        if (mergedProps !== undefined) {\n          var previousCursor = cursor;\n          var result = interpolation(mergedProps);\n          cursor = previousCursor;\n          return handleInterpolation(mergedProps, registered, result);\n        } else {\n          console.error('Functions that are interpolated in css calls will be stringified.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n        }\n\n        break;\n      }\n\n    case 'string':\n      {\n        var matched = [];\n        var replaced = interpolation.replace(animationRegex, function (_match, _p1, p2) {\n          var fakeVarName = \"animation\" + matched.length;\n          matched.push(\"const \" + fakeVarName + \" = keyframes`\" + p2.replace(/^@keyframes animation-\\w+/, '') + \"`\");\n          return \"${\" + fakeVarName + \"}\";\n        });\n\n        if (matched.length) {\n          console.error(\"`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\nInstead of doing this:\\n\\n\" + [].concat(matched, [\"`\" + replaced + \"`\"]).join('\\n') + \"\\n\\nYou should wrap it with `css` like this:\\n\\ncss`\" + replaced + \"`\");\n        }\n      }\n\n      break;\n  } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n  var asString = interpolation;\n\n  if (registered == null) {\n    return asString;\n  }\n\n  var cached = registered[asString];\n  return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n  var string = '';\n\n  if (Array.isArray(obj)) {\n    for (var i = 0; i < obj.length; i++) {\n      string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n    }\n  } else {\n    for (var key in obj) {\n      var value = obj[key];\n\n      if (typeof value !== 'object') {\n        var asString = value;\n\n        if (registered != null && registered[asString] !== undefined) {\n          string += key + \"{\" + registered[asString] + \"}\";\n        } else if (isProcessableValue(asString)) {\n          string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n        }\n      } else {\n        if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n          throw new Error(noComponentSelectorMessage);\n        }\n\n        if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n          for (var _i = 0; _i < value.length; _i++) {\n            if (isProcessableValue(value[_i])) {\n              string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n            }\n          }\n        } else {\n          var interpolated = handleInterpolation(mergedProps, registered, value);\n\n          switch (key) {\n            case 'animation':\n            case 'animationName':\n              {\n                string += processStyleName(key) + \":\" + interpolated + \";\";\n                break;\n              }\n\n            default:\n              {\n                if (key === 'undefined') {\n                  console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);\n                }\n\n                string += key + \"{\" + interpolated + \"}\";\n              }\n          }\n        }\n      }\n    }\n  }\n\n  return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n  if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n    return args[0];\n  }\n\n  var stringMode = true;\n  var styles = '';\n  cursor = undefined;\n  var strings = args[0];\n\n  if (strings == null || strings.raw === undefined) {\n    stringMode = false;\n    styles += handleInterpolation(mergedProps, registered, strings);\n  } else {\n    var asTemplateStringsArr = strings;\n\n    if (asTemplateStringsArr[0] === undefined) {\n      console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n    }\n\n    styles += asTemplateStringsArr[0];\n  } // we start at 1 since we've already handled the first arg\n\n\n  for (var i = 1; i < args.length; i++) {\n    styles += handleInterpolation(mergedProps, registered, args[i]);\n\n    if (stringMode) {\n      var templateStringsArr = strings;\n\n      if (templateStringsArr[i] === undefined) {\n        console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n      }\n\n      styles += templateStringsArr[i];\n    }\n  } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n  labelPattern.lastIndex = 0;\n  var identifierName = '';\n  var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n  while ((match = labelPattern.exec(styles)) !== null) {\n    identifierName += '-' + match[1];\n  }\n\n  var name = hashString(styles) + identifierName;\n\n  {\n    var devStyles = {\n      name: name,\n      styles: styles,\n      next: cursor,\n      toString: function toString() {\n        return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";\n      }\n    };\n    return devStyles;\n  }\n}\n\nexport { serializeStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n  // 'm' and 'r' are mixing constants generated offline.\n  // They're not really 'magic', they just happen to work well.\n  // const m = 0x5bd1e995;\n  // const r = 24;\n  // Initialize the hash\n  var h = 0; // Mix 4 bytes at a time into the hash\n\n  var k,\n      i = 0,\n      len = str.length;\n\n  for (; len >= 4; ++i, len -= 4) {\n    k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n    k =\n    /* Math.imul(k, m): */\n    (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n    k ^=\n    /* k >>> r: */\n    k >>> 24;\n    h =\n    /* Math.imul(k, m): */\n    (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n    /* Math.imul(h, m): */\n    (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n  } // Handle the last few bytes of the input array\n\n\n  switch (len) {\n    case 3:\n      h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n    case 2:\n      h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n    case 1:\n      h ^= str.charCodeAt(i) & 0xff;\n      h =\n      /* Math.imul(h, m): */\n      (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n  } // Do a few final mixes of the hash to ensure the last few\n  // bytes are well-incorporated.\n\n\n  h ^= h >>> 13;\n  h =\n  /* Math.imul(h, m): */\n  (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n  return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n  return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","var isBrowser = true;\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n  var rawClassName = '';\n  classNames.split(' ').forEach(function (className) {\n    if (registered[className] !== undefined) {\n      registeredStyles.push(registered[className] + \";\");\n    } else if (className) {\n      rawClassName += className + \" \";\n    }\n  });\n  return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n  var className = cache.key + \"-\" + serialized.name;\n\n  if ( // we only need to add the styles to the registered cache if the\n  // class name could be used further down\n  // the tree but if it's a string tag, we know it won't\n  // so we don't have to add it to registered cache.\n  // this improves memory usage since we can avoid storing the whole style string\n  (isStringTag === false || // we need to always store it if we're in compat mode and\n  // in node since emotion-server relies on whether a style is in\n  // the registered cache to know whether a style is global or not\n  // also, note that this check will be dead code eliminated in the browser\n  isBrowser === false ) && cache.registered[className] === undefined) {\n    cache.registered[className] = serialized.styles;\n  }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n  registerStyles(cache, serialized, isStringTag);\n  var className = cache.key + \"-\" + serialized.name;\n\n  if (cache.inserted[serialized.name] === undefined) {\n    var current = serialized;\n\n    do {\n      cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n      current = current.next;\n    } while (current !== undefined);\n  }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n","var weakMemoize = function weakMemoize(func) {\n  var cache = new WeakMap();\n  return function (arg) {\n    if (cache.has(arg)) {\n      // Use non-null assertion because we just checked that the cache `has` it\n      // This allows us to remove `undefined` from the return value\n      return cache.get(arg);\n    }\n\n    var ret = func(arg);\n    cache.set(arg, ret);\n    return ret;\n  };\n};\n\nexport { weakMemoize as default };\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"\n}), 'ArrowForwardIosSharp');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"m10 17 5-5-5-5z\"\n}), 'ArrowRight');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDown');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z\"\n}), 'KeyboardArrowLeft');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z\"\n}), 'KeyboardArrowRight');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"\n}), 'Search');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"\n}), 'Add');","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nObject.defineProperty(exports, \"default\", {\n  enumerable: true,\n  get: function () {\n    return _utils.createSvgIcon;\n  }\n});\nvar _utils = require(\"@mui/material/utils\");","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCollapseUtilityClass(slot) {\n  return generateUtilityClass('MuiCollapse', slot);\n}\nconst collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);\nexport default collapseClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"addEndListener\", \"children\", \"className\", \"collapsedSize\", \"component\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"orientation\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { duration } from '../styles/createTransitions';\nimport { getTransitionProps } from '../transitions/utils';\nimport useTheme from '../styles/useTheme';\nimport { useForkRef } from '../utils';\nimport { getCollapseUtilityClass } from './collapseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    orientation,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', `${orientation}`],\n    entered: ['entered'],\n    hidden: ['hidden'],\n    wrapper: ['wrapper', `${orientation}`],\n    wrapperInner: ['wrapperInner', `${orientation}`]\n  };\n  return composeClasses(slots, getCollapseUtilityClass, classes);\n};\nconst CollapseRoot = styled('div', {\n  name: 'MuiCollapse',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  height: 0,\n  overflow: 'hidden',\n  transition: theme.transitions.create('height')\n}, ownerState.orientation === 'horizontal' && {\n  height: 'auto',\n  width: 0,\n  transition: theme.transitions.create('width')\n}, ownerState.state === 'entered' && _extends({\n  height: 'auto',\n  overflow: 'visible'\n}, ownerState.orientation === 'horizontal' && {\n  width: 'auto'\n}), ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && {\n  visibility: 'hidden'\n}));\nconst CollapseWrapper = styled('div', {\n  name: 'MuiCollapse',\n  slot: 'Wrapper',\n  overridesResolver: (props, styles) => styles.wrapper\n})(({\n  ownerState\n}) => _extends({\n  // Hack to get children with a negative margin to not falsify the height computation.\n  display: 'flex',\n  width: '100%'\n}, ownerState.orientation === 'horizontal' && {\n  width: 'auto',\n  height: '100%'\n}));\nconst CollapseWrapperInner = styled('div', {\n  name: 'MuiCollapse',\n  slot: 'WrapperInner',\n  overridesResolver: (props, styles) => styles.wrapperInner\n})(({\n  ownerState\n}) => _extends({\n  width: '100%'\n}, ownerState.orientation === 'horizontal' && {\n  width: 'auto',\n  height: '100%'\n}));\n\n/**\n * The Collapse transition is used by the\n * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiCollapse'\n  });\n  const {\n      addEndListener,\n      children,\n      className,\n      collapsedSize: collapsedSizeProp = '0px',\n      component,\n      easing,\n      in: inProp,\n      onEnter,\n      onEntered,\n      onEntering,\n      onExit,\n      onExited,\n      onExiting,\n      orientation = 'vertical',\n      style,\n      timeout = duration.standard,\n      // eslint-disable-next-line react/prop-types\n      TransitionComponent = Transition\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    orientation,\n    collapsedSize: collapsedSizeProp\n  });\n  const classes = useUtilityClasses(ownerState);\n  const theme = useTheme();\n  const timer = useTimeout();\n  const wrapperRef = React.useRef(null);\n  const autoTransitionDuration = React.useRef();\n  const collapsedSize = typeof collapsedSizeProp === 'number' ? `${collapsedSizeProp}px` : collapsedSizeProp;\n  const isHorizontal = orientation === 'horizontal';\n  const size = isHorizontal ? 'width' : 'height';\n  const nodeRef = React.useRef(null);\n  const handleRef = useForkRef(ref, nodeRef);\n  const normalizedTransitionCallback = callback => maybeIsAppearing => {\n    if (callback) {\n      const node = nodeRef.current;\n\n      // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n      if (maybeIsAppearing === undefined) {\n        callback(node);\n      } else {\n        callback(node, maybeIsAppearing);\n      }\n    }\n  };\n  const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;\n  const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n    if (wrapperRef.current && isHorizontal) {\n      // Set absolute position to get the size of collapsed content\n      wrapperRef.current.style.position = 'absolute';\n    }\n    node.style[size] = collapsedSize;\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntering = normalizedTransitionCallback((node, isAppearing) => {\n    const wrapperSize = getWrapperSize();\n    if (wrapperRef.current && isHorizontal) {\n      // After the size is read reset the position back to default\n      wrapperRef.current.style.position = '';\n    }\n    const {\n      duration: transitionDuration,\n      easing: transitionTimingFunction\n    } = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'enter'\n    });\n    if (timeout === 'auto') {\n      const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n      node.style.transitionDuration = `${duration2}ms`;\n      autoTransitionDuration.current = duration2;\n    } else {\n      node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;\n    }\n    node.style[size] = `${wrapperSize}px`;\n    node.style.transitionTimingFunction = transitionTimingFunction;\n    if (onEntering) {\n      onEntering(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback((node, isAppearing) => {\n    node.style[size] = 'auto';\n    if (onEntered) {\n      onEntered(node, isAppearing);\n    }\n  });\n  const handleExit = normalizedTransitionCallback(node => {\n    node.style[size] = `${getWrapperSize()}px`;\n    if (onExit) {\n      onExit(node);\n    }\n  });\n  const handleExited = normalizedTransitionCallback(onExited);\n  const handleExiting = normalizedTransitionCallback(node => {\n    const wrapperSize = getWrapperSize();\n    const {\n      duration: transitionDuration,\n      easing: transitionTimingFunction\n    } = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'exit'\n    });\n    if (timeout === 'auto') {\n      // TODO: rename getAutoHeightDuration to something more generic (width support)\n      // Actually it just calculates animation duration based on size\n      const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);\n      node.style.transitionDuration = `${duration2}ms`;\n      autoTransitionDuration.current = duration2;\n    } else {\n      node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;\n    }\n    node.style[size] = collapsedSize;\n    node.style.transitionTimingFunction = transitionTimingFunction;\n    if (onExiting) {\n      onExiting(node);\n    }\n  });\n  const handleAddEndListener = next => {\n    if (timeout === 'auto') {\n      timer.start(autoTransitionDuration.current || 0, next);\n    }\n    if (addEndListener) {\n      // Old call signature before `react-transition-group` implemented `nodeRef`\n      addEndListener(nodeRef.current, next);\n    }\n  };\n  return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    in: inProp,\n    onEnter: handleEnter,\n    onEntered: handleEntered,\n    onEntering: handleEntering,\n    onExit: handleExit,\n    onExited: handleExited,\n    onExiting: handleExiting,\n    addEndListener: handleAddEndListener,\n    nodeRef: nodeRef,\n    timeout: timeout === 'auto' ? null : timeout\n  }, other, {\n    children: (state, childProps) => /*#__PURE__*/_jsx(CollapseRoot, _extends({\n      as: component,\n      className: clsx(classes.root, className, {\n        'entered': classes.entered,\n        'exited': !inProp && collapsedSize === '0px' && classes.hidden\n      }[state]),\n      style: _extends({\n        [isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize\n      }, style),\n      ref: handleRef\n    }, childProps, {\n      // `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`\n      // that might have been forwarded from the Transition component.\n      ownerState: _extends({}, ownerState, {\n        state\n      }),\n      children: /*#__PURE__*/_jsx(CollapseWrapper, {\n        ownerState: _extends({}, ownerState, {\n          state\n        }),\n        className: classes.wrapper,\n        ref: wrapperRef,\n        children: /*#__PURE__*/_jsx(CollapseWrapperInner, {\n          ownerState: _extends({}, ownerState, {\n            state\n          }),\n          className: classes.wrapperInner,\n          children: children\n        })\n      })\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Collapse.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Add a custom transition end trigger. Called with the transitioning DOM\n   * node and a done callback. Allows for more fine grained transition end\n   * logic. Note: Timeouts are still used as a fallback if provided.\n   */\n  addEndListener: PropTypes.func,\n  /**\n   * The content node to be collapsed.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The width (horizontal) or height (vertical) of the container when collapsed.\n   * @default '0px'\n   */\n  collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: elementTypeAcceptingRef,\n  /**\n   * The transition timing function.\n   * You may specify a single easing or a object containing enter and exit values.\n   */\n  easing: PropTypes.oneOfType([PropTypes.shape({\n    enter: PropTypes.string,\n    exit: PropTypes.string\n  }), PropTypes.string]),\n  /**\n   * If `true`, the component will transition in.\n   */\n  in: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  onEnter: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntered: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntering: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExit: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExited: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExiting: PropTypes.func,\n  /**\n   * The transition orientation.\n   * @default 'vertical'\n   */\n  orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   *\n   * Set to 'auto' to automatically calculate transition time based on height.\n   * @default duration.standard\n   */\n  timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })])\n} : void 0;\nCollapse.muiSupportAuto = true;\nexport default Collapse;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionUtilityClass(slot) {\n  return generateUtilityClass('MuiAccordion', slot);\n}\nconst accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);\nexport default accordionClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"defaultExpanded\", \"disabled\", \"disableGutters\", \"expanded\", \"onChange\", \"square\", \"slots\", \"slotProps\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Collapse from '../Collapse';\nimport Paper from '../Paper';\nimport AccordionContext from './AccordionContext';\nimport useControlled from '../utils/useControlled';\nimport useSlot from '../utils/useSlot';\nimport accordionClasses, { getAccordionUtilityClass } from './accordionClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    square,\n    expanded,\n    disabled,\n    disableGutters\n  } = ownerState;\n  const slots = {\n    root: ['root', !square && 'rounded', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],\n    region: ['region']\n  };\n  return composeClasses(slots, getAccordionUtilityClass, classes);\n};\nconst AccordionRoot = styled(Paper, {\n  name: 'MuiAccordion',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [{\n      [`& .${accordionClasses.region}`]: styles.region\n    }, styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];\n  }\n})(({\n  theme\n}) => {\n  const transition = {\n    duration: theme.transitions.duration.shortest\n  };\n  return {\n    position: 'relative',\n    transition: theme.transitions.create(['margin'], transition),\n    overflowAnchor: 'none',\n    // Keep the same scrolling position\n    '&::before': {\n      position: 'absolute',\n      left: 0,\n      top: -1,\n      right: 0,\n      height: 1,\n      content: '\"\"',\n      opacity: 1,\n      backgroundColor: (theme.vars || theme).palette.divider,\n      transition: theme.transitions.create(['opacity', 'background-color'], transition)\n    },\n    '&:first-of-type': {\n      '&::before': {\n        display: 'none'\n      }\n    },\n    [`&.${accordionClasses.expanded}`]: {\n      '&::before': {\n        opacity: 0\n      },\n      '&:first-of-type': {\n        marginTop: 0\n      },\n      '&:last-of-type': {\n        marginBottom: 0\n      },\n      '& + &': {\n        '&::before': {\n          display: 'none'\n        }\n      }\n    },\n    [`&.${accordionClasses.disabled}`]: {\n      backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n    }\n  };\n}, ({\n  theme\n}) => ({\n  variants: [{\n    props: props => !props.square,\n    style: {\n      borderRadius: 0,\n      '&:first-of-type': {\n        borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n        borderTopRightRadius: (theme.vars || theme).shape.borderRadius\n      },\n      '&:last-of-type': {\n        borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,\n        borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,\n        // Fix a rendering issue on Edge\n        '@supports (-ms-ime-align: auto)': {\n          borderBottomLeftRadius: 0,\n          borderBottomRightRadius: 0\n        }\n      }\n    }\n  }, {\n    props: props => !props.disableGutters,\n    style: {\n      [`&.${accordionClasses.expanded}`]: {\n        margin: '16px 0'\n      }\n    }\n  }]\n}));\nconst Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiAccordion'\n  });\n  const {\n      children: childrenProp,\n      className,\n      defaultExpanded = false,\n      disabled = false,\n      disableGutters = false,\n      expanded: expandedProp,\n      onChange,\n      square = false,\n      slots = {},\n      slotProps = {},\n      TransitionComponent: TransitionComponentProp,\n      TransitionProps: TransitionPropsProp\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const [expanded, setExpandedState] = useControlled({\n    controlled: expandedProp,\n    default: defaultExpanded,\n    name: 'Accordion',\n    state: 'expanded'\n  });\n  const handleChange = React.useCallback(event => {\n    setExpandedState(!expanded);\n    if (onChange) {\n      onChange(event, !expanded);\n    }\n  }, [expanded, onChange, setExpandedState]);\n  const [summary, ...children] = React.Children.toArray(childrenProp);\n  const contextValue = React.useMemo(() => ({\n    expanded,\n    disabled,\n    disableGutters,\n    toggle: handleChange\n  }), [expanded, disabled, disableGutters, handleChange]);\n  const ownerState = _extends({}, props, {\n    square,\n    disabled,\n    disableGutters,\n    expanded\n  });\n  const classes = useUtilityClasses(ownerState);\n  const backwardCompatibleSlots = _extends({\n    transition: TransitionComponentProp\n  }, slots);\n  const backwardCompatibleSlotProps = _extends({\n    transition: TransitionPropsProp\n  }, slotProps);\n  const [TransitionSlot, transitionProps] = useSlot('transition', {\n    elementType: Collapse,\n    externalForwardedProps: {\n      slots: backwardCompatibleSlots,\n      slotProps: backwardCompatibleSlotProps\n    },\n    ownerState\n  });\n  return /*#__PURE__*/_jsxs(AccordionRoot, _extends({\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState,\n    square: square\n  }, other, {\n    children: [/*#__PURE__*/_jsx(AccordionContext.Provider, {\n      value: contextValue,\n      children: summary\n    }), /*#__PURE__*/_jsx(TransitionSlot, _extends({\n      in: expanded,\n      timeout: \"auto\"\n    }, transitionProps, {\n      children: /*#__PURE__*/_jsx(\"div\", {\n        \"aria-labelledby\": summary.props.id,\n        id: summary.props['aria-controls'],\n        role: \"region\",\n        className: classes.region,\n        children: children\n      })\n    }))]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Accordion.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: chainPropTypes(PropTypes.node.isRequired, props => {\n    const summary = React.Children.toArray(props.children)[0];\n    if (isFragment(summary)) {\n      return new Error(\"MUI: The Accordion doesn't accept a Fragment as a child. \" + 'Consider providing an array instead.');\n    }\n    if (! /*#__PURE__*/React.isValidElement(summary)) {\n      return new Error('MUI: Expected the first child of Accordion to be a valid element.');\n    }\n    return null;\n  }),\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * If `true`, expands the accordion by default.\n   * @default false\n   */\n  defaultExpanded: PropTypes.bool,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, it removes the margin between two expanded accordion items and the increase of height.\n   * @default false\n   */\n  disableGutters: PropTypes.bool,\n  /**\n   * If `true`, expands the accordion, otherwise collapse it.\n   * Setting this prop enables control over the accordion.\n   */\n  expanded: PropTypes.bool,\n  /**\n   * Callback fired when the expand/collapse state is changed.\n   *\n   * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.\n   * @param {boolean} expanded The `expanded` state of the accordion.\n   */\n  onChange: PropTypes.func,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    transition: PropTypes.elementType\n  }),\n  /**\n   * If `true`, rounded corners are disabled.\n   * @default false\n   */\n  square: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The component used for the transition.\n   * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n   */\n  TransitionComponent: PropTypes.elementType,\n  /**\n   * Props applied to the transition element.\n   * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n   * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n   */\n  TransitionProps: PropTypes.object\n} : void 0;\nexport default Accordion;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}\n */\nconst AccordionContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n  AccordionContext.displayName = 'AccordionContext';\n}\nexport default AccordionContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionDetailsUtilityClass(slot) {\n  return generateUtilityClass('MuiAccordionDetails', slot);\n}\nconst accordionDetailsClasses = generateUtilityClasses('MuiAccordionDetails', ['root']);\nexport default accordionDetailsClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root']\n  };\n  return composeClasses(slots, getAccordionDetailsUtilityClass, classes);\n};\nconst AccordionDetailsRoot = styled('div', {\n  name: 'MuiAccordionDetails',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})(({\n  theme\n}) => ({\n  padding: theme.spacing(1, 2, 2)\n}));\nconst AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiAccordionDetails'\n  });\n  const {\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = props;\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(AccordionDetailsRoot, _extends({\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionDetails.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AccordionDetails;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAccordionSummaryUtilityClass(slot) {\n  return generateUtilityClass('MuiAccordionSummary', slot);\n}\nconst accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);\nexport default accordionSummaryClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"expandIcon\", \"focusVisibleClassName\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport AccordionContext from '../Accordion/AccordionContext';\nimport accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    expanded,\n    disabled,\n    disableGutters\n  } = ownerState;\n  const slots = {\n    root: ['root', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],\n    focusVisible: ['focusVisible'],\n    content: ['content', expanded && 'expanded', !disableGutters && 'contentGutters'],\n    expandIconWrapper: ['expandIconWrapper', expanded && 'expanded']\n  };\n  return composeClasses(slots, getAccordionSummaryUtilityClass, classes);\n};\nconst AccordionSummaryRoot = styled(ButtonBase, {\n  name: 'MuiAccordionSummary',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})(({\n  theme\n}) => {\n  const transition = {\n    duration: theme.transitions.duration.shortest\n  };\n  return {\n    display: 'flex',\n    minHeight: 48,\n    padding: theme.spacing(0, 2),\n    transition: theme.transitions.create(['min-height', 'background-color'], transition),\n    [`&.${accordionSummaryClasses.focusVisible}`]: {\n      backgroundColor: (theme.vars || theme).palette.action.focus\n    },\n    [`&.${accordionSummaryClasses.disabled}`]: {\n      opacity: (theme.vars || theme).palette.action.disabledOpacity\n    },\n    [`&:hover:not(.${accordionSummaryClasses.disabled})`]: {\n      cursor: 'pointer'\n    },\n    variants: [{\n      props: props => !props.disableGutters,\n      style: {\n        [`&.${accordionSummaryClasses.expanded}`]: {\n          minHeight: 64\n        }\n      }\n    }]\n  };\n});\nconst AccordionSummaryContent = styled('div', {\n  name: 'MuiAccordionSummary',\n  slot: 'Content',\n  overridesResolver: (props, styles) => styles.content\n})(({\n  theme\n}) => ({\n  display: 'flex',\n  flexGrow: 1,\n  margin: '12px 0',\n  variants: [{\n    props: props => !props.disableGutters,\n    style: {\n      transition: theme.transitions.create(['margin'], {\n        duration: theme.transitions.duration.shortest\n      }),\n      [`&.${accordionSummaryClasses.expanded}`]: {\n        margin: '20px 0'\n      }\n    }\n  }]\n}));\nconst AccordionSummaryExpandIconWrapper = styled('div', {\n  name: 'MuiAccordionSummary',\n  slot: 'ExpandIconWrapper',\n  overridesResolver: (props, styles) => styles.expandIconWrapper\n})(({\n  theme\n}) => ({\n  display: 'flex',\n  color: (theme.vars || theme).palette.action.active,\n  transform: 'rotate(0deg)',\n  transition: theme.transitions.create('transform', {\n    duration: theme.transitions.duration.shortest\n  }),\n  [`&.${accordionSummaryClasses.expanded}`]: {\n    transform: 'rotate(180deg)'\n  }\n}));\nconst AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiAccordionSummary'\n  });\n  const {\n      children,\n      className,\n      expandIcon,\n      focusVisibleClassName,\n      onClick\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const {\n    disabled = false,\n    disableGutters,\n    expanded,\n    toggle\n  } = React.useContext(AccordionContext);\n  const handleChange = event => {\n    if (toggle) {\n      toggle(event);\n    }\n    if (onClick) {\n      onClick(event);\n    }\n  };\n  const ownerState = _extends({}, props, {\n    expanded,\n    disabled,\n    disableGutters\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(AccordionSummaryRoot, _extends({\n    focusRipple: false,\n    disableRipple: true,\n    disabled: disabled,\n    component: \"div\",\n    \"aria-expanded\": expanded,\n    className: clsx(classes.root, className),\n    focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n    onClick: handleChange,\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: [/*#__PURE__*/_jsx(AccordionSummaryContent, {\n      className: classes.content,\n      ownerState: ownerState,\n      children: children\n    }), expandIcon && /*#__PURE__*/_jsx(AccordionSummaryExpandIconWrapper, {\n      className: classes.expandIconWrapper,\n      ownerState: ownerState,\n      children: expandIcon\n    })]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? AccordionSummary.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The icon to display as the expand indicator.\n   */\n  expandIcon: PropTypes.node,\n  /**\n   * This prop can help identify which element has keyboard focus.\n   * The class name will be applied when the element gains the focus through keyboard interaction.\n   * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n   * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n   * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n   * if needed.\n   */\n  focusVisibleClassName: PropTypes.string,\n  /**\n   * @ignore\n   */\n  onClick: PropTypes.func,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default AccordionSummary;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"\n}), 'Person');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAvatarUtilityClass(slot) {\n  return generateUtilityClass('MuiAvatar', slot);\n}\nconst avatarClasses = generateUtilityClasses('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);\nexport default avatarClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"alt\", \"children\", \"className\", \"component\", \"slots\", \"slotProps\", \"imgProps\", \"sizes\", \"src\", \"srcSet\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Person from '../internal/svg-icons/Person';\nimport { getAvatarUtilityClass } from './avatarClasses';\nimport useSlot from '../utils/useSlot';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant,\n    colorDefault\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, colorDefault && 'colorDefault'],\n    img: ['img'],\n    fallback: ['fallback']\n  };\n  return composeClasses(slots, getAvatarUtilityClass, classes);\n};\nconst AvatarRoot = styled('div', {\n  name: 'MuiAvatar',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant], ownerState.colorDefault && styles.colorDefault];\n  }\n})(({\n  theme\n}) => ({\n  position: 'relative',\n  display: 'flex',\n  alignItems: 'center',\n  justifyContent: 'center',\n  flexShrink: 0,\n  width: 40,\n  height: 40,\n  fontFamily: theme.typography.fontFamily,\n  fontSize: theme.typography.pxToRem(20),\n  lineHeight: 1,\n  borderRadius: '50%',\n  overflow: 'hidden',\n  userSelect: 'none',\n  variants: [{\n    props: {\n      variant: 'rounded'\n    },\n    style: {\n      borderRadius: (theme.vars || theme).shape.borderRadius\n    }\n  }, {\n    props: {\n      variant: 'square'\n    },\n    style: {\n      borderRadius: 0\n    }\n  }, {\n    props: {\n      colorDefault: true\n    },\n    style: _extends({\n      color: (theme.vars || theme).palette.background.default\n    }, theme.vars ? {\n      backgroundColor: theme.vars.palette.Avatar.defaultBg\n    } : _extends({\n      backgroundColor: theme.palette.grey[400]\n    }, theme.applyStyles('dark', {\n      backgroundColor: theme.palette.grey[600]\n    })))\n  }]\n}));\nconst AvatarImg = styled('img', {\n  name: 'MuiAvatar',\n  slot: 'Img',\n  overridesResolver: (props, styles) => styles.img\n})({\n  width: '100%',\n  height: '100%',\n  textAlign: 'center',\n  // Handle non-square image. The property isn't supported by IE11.\n  objectFit: 'cover',\n  // Hide alt text.\n  color: 'transparent',\n  // Hide the image broken icon, only works on Chrome.\n  textIndent: 10000\n});\nconst AvatarFallback = styled(Person, {\n  name: 'MuiAvatar',\n  slot: 'Fallback',\n  overridesResolver: (props, styles) => styles.fallback\n})({\n  width: '75%',\n  height: '75%'\n});\nfunction useLoaded({\n  crossOrigin,\n  referrerPolicy,\n  src,\n  srcSet\n}) {\n  const [loaded, setLoaded] = React.useState(false);\n  React.useEffect(() => {\n    if (!src && !srcSet) {\n      return undefined;\n    }\n    setLoaded(false);\n    let active = true;\n    const image = new Image();\n    image.onload = () => {\n      if (!active) {\n        return;\n      }\n      setLoaded('loaded');\n    };\n    image.onerror = () => {\n      if (!active) {\n        return;\n      }\n      setLoaded('error');\n    };\n    image.crossOrigin = crossOrigin;\n    image.referrerPolicy = referrerPolicy;\n    image.src = src;\n    if (srcSet) {\n      image.srcset = srcSet;\n    }\n    return () => {\n      active = false;\n    };\n  }, [crossOrigin, referrerPolicy, src, srcSet]);\n  return loaded;\n}\nconst Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiAvatar'\n  });\n  const {\n      alt,\n      children: childrenProp,\n      className,\n      component = 'div',\n      slots = {},\n      slotProps = {},\n      imgProps,\n      sizes,\n      src,\n      srcSet,\n      variant = 'circular'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  let children = null;\n\n  // Use a hook instead of onError on the img element to support server-side rendering.\n  const loaded = useLoaded(_extends({}, imgProps, {\n    src,\n    srcSet\n  }));\n  const hasImg = src || srcSet;\n  const hasImgNotFailing = hasImg && loaded !== 'error';\n  const ownerState = _extends({}, props, {\n    colorDefault: !hasImgNotFailing,\n    component,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  const [ImgSlot, imgSlotProps] = useSlot('img', {\n    className: classes.img,\n    elementType: AvatarImg,\n    externalForwardedProps: {\n      slots,\n      slotProps: {\n        img: _extends({}, imgProps, slotProps.img)\n      }\n    },\n    additionalProps: {\n      alt,\n      src,\n      srcSet,\n      sizes\n    },\n    ownerState\n  });\n  if (hasImgNotFailing) {\n    children = /*#__PURE__*/_jsx(ImgSlot, _extends({}, imgSlotProps));\n    // We only render valid children, non valid children are rendered with a fallback\n    // We consider that invalid children are all falsy values, except 0, which is valid.\n  } else if (!!childrenProp || childrenProp === 0) {\n    children = childrenProp;\n  } else if (hasImg && alt) {\n    children = alt[0];\n  } else {\n    children = /*#__PURE__*/_jsx(AvatarFallback, {\n      ownerState: ownerState,\n      className: classes.fallback\n    });\n  }\n  return /*#__PURE__*/_jsx(AvatarRoot, _extends({\n    as: component,\n    ownerState: ownerState,\n    className: clsx(classes.root, className),\n    ref: ref\n  }, other, {\n    children: children\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Avatar.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Used in combination with `src` or `srcSet` to\n   * provide an alt attribute for the rendered `img` element.\n   */\n  alt: PropTypes.string,\n  /**\n   * Used to render icon or text elements inside the Avatar if `src` is not set.\n   * This can be an element, or just a string.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.\n   * It can be used to listen for the loading error event.\n   * @deprecated Use `slotProps.img` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n   */\n  imgProps: PropTypes.object,\n  /**\n   * The `sizes` attribute for the `img` element.\n   */\n  sizes: PropTypes.string,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    img: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    img: PropTypes.elementType\n  }),\n  /**\n   * The `src` attribute for the `img` element.\n   */\n  src: PropTypes.string,\n  /**\n   * The `srcSet` attribute for the `img` element.\n   * Use this attribute for responsive image display.\n   */\n  srcSet: PropTypes.string,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The shape of the avatar.\n   * @default 'circular'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rounded', 'square']), PropTypes.string])\n} : void 0;\nexport default Avatar;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport { createBox } from '@mui/system';\nimport PropTypes from 'prop-types';\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';\nimport { createTheme } from '../styles';\nimport THEME_ID from '../styles/identifier';\nimport boxClasses from './boxClasses';\nconst defaultTheme = createTheme();\nconst Box = createBox({\n  themeId: THEME_ID,\n  defaultTheme,\n  defaultClassName: boxClasses.root,\n  generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n}), 'MoreHoriz');","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { emphasize } from '@mui/system/colorManipulator';\nimport styled from '../styles/styled';\nimport MoreHorizIcon from '../internal/svg-icons/MoreHoriz';\nimport ButtonBase from '../ButtonBase';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst BreadcrumbCollapsedButton = styled(ButtonBase, {\n  name: 'MuiBreadcrumbCollapsed'\n})(({\n  theme\n}) => _extends({\n  display: 'flex',\n  marginLeft: `calc(${theme.spacing(1)} * 0.5)`,\n  marginRight: `calc(${theme.spacing(1)} * 0.5)`\n}, theme.palette.mode === 'light' ? {\n  backgroundColor: theme.palette.grey[100],\n  color: theme.palette.grey[700]\n} : {\n  backgroundColor: theme.palette.grey[700],\n  color: theme.palette.grey[100]\n}, {\n  borderRadius: 2,\n  '&:hover, &:focus': _extends({}, theme.palette.mode === 'light' ? {\n    backgroundColor: theme.palette.grey[200]\n  } : {\n    backgroundColor: theme.palette.grey[600]\n  }),\n  '&:active': _extends({\n    boxShadow: theme.shadows[0]\n  }, theme.palette.mode === 'light' ? {\n    backgroundColor: emphasize(theme.palette.grey[200], 0.12)\n  } : {\n    backgroundColor: emphasize(theme.palette.grey[600], 0.12)\n  })\n}));\nconst BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({\n  width: 24,\n  height: 16\n});\n\n/**\n * @ignore - internal component.\n */\nfunction BreadcrumbCollapsed(props) {\n  const {\n      slots = {},\n      slotProps = {}\n    } = props,\n    otherProps = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = props;\n  return /*#__PURE__*/_jsx(\"li\", {\n    children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, _extends({\n      focusRipple: true\n    }, otherProps, {\n      ownerState: ownerState,\n      children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, _extends({\n        as: slots.CollapsedIcon,\n        ownerState: ownerState\n      }, slotProps.collapsedIcon))\n    }))\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? BreadcrumbCollapsed.propTypes = {\n  /**\n   * The props used for the CollapsedIcon slot.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the BreadcumbCollapsed.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    CollapsedIcon: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.object\n} : void 0;\nexport default BreadcrumbCollapsed;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBreadcrumbsUtilityClass(slot) {\n  return generateUtilityClass('MuiBreadcrumbs', slot);\n}\nconst breadcrumbsClasses = generateUtilityClasses('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);\nexport default breadcrumbsClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"component\", \"slots\", \"slotProps\", \"expandText\", \"itemsAfterCollapse\", \"itemsBeforeCollapse\", \"maxItems\", \"separator\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Typography from '../Typography';\nimport BreadcrumbCollapsed from './BreadcrumbCollapsed';\nimport breadcrumbsClasses, { getBreadcrumbsUtilityClass } from './breadcrumbsClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    li: ['li'],\n    ol: ['ol'],\n    separator: ['separator']\n  };\n  return composeClasses(slots, getBreadcrumbsUtilityClass, classes);\n};\nconst BreadcrumbsRoot = styled(Typography, {\n  name: 'MuiBreadcrumbs',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    return [{\n      [`& .${breadcrumbsClasses.li}`]: styles.li\n    }, styles.root];\n  }\n})({});\nconst BreadcrumbsOl = styled('ol', {\n  name: 'MuiBreadcrumbs',\n  slot: 'Ol',\n  overridesResolver: (props, styles) => styles.ol\n})({\n  display: 'flex',\n  flexWrap: 'wrap',\n  alignItems: 'center',\n  padding: 0,\n  margin: 0,\n  listStyle: 'none'\n});\nconst BreadcrumbsSeparator = styled('li', {\n  name: 'MuiBreadcrumbs',\n  slot: 'Separator',\n  overridesResolver: (props, styles) => styles.separator\n})({\n  display: 'flex',\n  userSelect: 'none',\n  marginLeft: 8,\n  marginRight: 8\n});\nfunction insertSeparators(items, className, separator, ownerState) {\n  return items.reduce((acc, current, index) => {\n    if (index < items.length - 1) {\n      acc = acc.concat(current, /*#__PURE__*/_jsx(BreadcrumbsSeparator, {\n        \"aria-hidden\": true,\n        className: className,\n        ownerState: ownerState,\n        children: separator\n      }, `separator-${index}`));\n    } else {\n      acc.push(current);\n    }\n    return acc;\n  }, []);\n}\nconst Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiBreadcrumbs'\n  });\n  const {\n      children,\n      className,\n      component = 'nav',\n      slots = {},\n      slotProps = {},\n      expandText = 'Show path',\n      itemsAfterCollapse = 1,\n      itemsBeforeCollapse = 1,\n      maxItems = 8,\n      separator = '/'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const [expanded, setExpanded] = React.useState(false);\n  const ownerState = _extends({}, props, {\n    component,\n    expanded,\n    expandText,\n    itemsAfterCollapse,\n    itemsBeforeCollapse,\n    maxItems,\n    separator\n  });\n  const classes = useUtilityClasses(ownerState);\n  const collapsedIconSlotProps = useSlotProps({\n    elementType: slots.CollapsedIcon,\n    externalSlotProps: slotProps.collapsedIcon,\n    ownerState\n  });\n  const listRef = React.useRef(null);\n  const renderItemsBeforeAndAfter = allItems => {\n    const handleClickExpand = () => {\n      setExpanded(true);\n\n      // The clicked element received the focus but gets removed from the DOM.\n      // Let's keep the focus in the component after expanding.\n      // Moving it to the <ol> or <nav> does not cause any announcement in NVDA.\n      // By moving it to some link/button at least we have some announcement.\n      const focusable = listRef.current.querySelector('a[href],button,[tabindex]');\n      if (focusable) {\n        focusable.focus();\n      }\n    };\n\n    // This defends against someone passing weird input, to ensure that if all\n    // items would be shown anyway, we just show all items without the EllipsisItem\n    if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {\n      if (process.env.NODE_ENV !== 'production') {\n        console.error(['MUI: You have provided an invalid combination of props to the Breadcrumbs.', `itemsAfterCollapse={${itemsAfterCollapse}} + itemsBeforeCollapse={${itemsBeforeCollapse}} >= maxItems={${maxItems}}`].join('\\n'));\n      }\n      return allItems;\n    }\n    return [...allItems.slice(0, itemsBeforeCollapse), /*#__PURE__*/_jsx(BreadcrumbCollapsed, {\n      \"aria-label\": expandText,\n      slots: {\n        CollapsedIcon: slots.CollapsedIcon\n      },\n      slotProps: {\n        collapsedIcon: collapsedIconSlotProps\n      },\n      onClick: handleClickExpand\n    }, \"ellipsis\"), ...allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)];\n  };\n  const allItems = React.Children.toArray(children).filter(child => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (isFragment(child)) {\n        console.error([\"MUI: The Breadcrumbs component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n      }\n    }\n    return /*#__PURE__*/React.isValidElement(child);\n  }).map((child, index) => /*#__PURE__*/_jsx(\"li\", {\n    className: classes.li,\n    children: child\n  }, `child-${index}`));\n  return /*#__PURE__*/_jsx(BreadcrumbsRoot, _extends({\n    ref: ref,\n    component: component,\n    color: \"text.secondary\",\n    className: clsx(classes.root, className),\n    ownerState: ownerState\n  }, other, {\n    children: /*#__PURE__*/_jsx(BreadcrumbsOl, {\n      className: classes.ol,\n      ref: listRef,\n      ownerState: ownerState,\n      children: insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), classes.separator, separator, ownerState)\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Breadcrumbs.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Override the default label for the expand button.\n   *\n   * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).\n   * @default 'Show path'\n   */\n  expandText: PropTypes.string,\n  /**\n   * If max items is exceeded, the number of items to show after the ellipsis.\n   * @default 1\n   */\n  itemsAfterCollapse: integerPropType,\n  /**\n   * If max items is exceeded, the number of items to show before the ellipsis.\n   * @default 1\n   */\n  itemsBeforeCollapse: integerPropType,\n  /**\n   * Specifies the maximum number of breadcrumbs to display. When there are more\n   * than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`\n   * will be shown, with an ellipsis in between.\n   * @default 8\n   */\n  maxItems: integerPropType,\n  /**\n   * Custom separator node.\n   * @default '/'\n   */\n  separator: PropTypes.node,\n  /**\n   * The props used for each slot inside the Breadcumb.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Breadcumb.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    CollapsedIcon: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Breadcrumbs;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonUtilityClass(slot) {\n  return generateUtilityClass('MuiButton', slot);\n}\nconst buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);\nexport default buttonClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"color\", \"component\", \"className\", \"disabled\", \"disableElevation\", \"disableFocusRipple\", \"endIcon\", \"focusVisibleClassName\", \"fullWidth\", \"size\", \"startIcon\", \"type\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport buttonClasses, { getButtonUtilityClass } from './buttonClasses';\nimport ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';\nimport ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    color,\n    disableElevation,\n    fullWidth,\n    size,\n    variant,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],\n    label: ['label'],\n    startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n    endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]\n  };\n  const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {\n  '& > *:nth-of-type(1)': {\n    fontSize: 18\n  }\n}, ownerState.size === 'medium' && {\n  '& > *:nth-of-type(1)': {\n    fontSize: 20\n  }\n}, ownerState.size === 'large' && {\n  '& > *:nth-of-type(1)': {\n    fontSize: 22\n  }\n});\nconst ButtonRoot = styled(ButtonBase, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiButton',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];\n  }\n})(({\n  theme,\n  ownerState\n}) => {\n  var _theme$palette$getCon, _theme$palette;\n  const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n  const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n  return _extends({}, theme.typography.button, {\n    minWidth: 64,\n    padding: '6px 16px',\n    borderRadius: (theme.vars || theme).shape.borderRadius,\n    transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {\n      duration: theme.transitions.duration.short\n    }),\n    '&:hover': _extends({\n      textDecoration: 'none',\n      backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: 'transparent'\n      }\n    }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {\n      backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: 'transparent'\n      }\n    }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {\n      border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,\n      backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: 'transparent'\n      }\n    }, ownerState.variant === 'contained' && {\n      backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n      boxShadow: (theme.vars || theme).shadows[4],\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        boxShadow: (theme.vars || theme).shadows[2],\n        backgroundColor: (theme.vars || theme).palette.grey[300]\n      }\n    }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {\n      backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: (theme.vars || theme).palette[ownerState.color].main\n      }\n    }),\n    '&:active': _extends({}, ownerState.variant === 'contained' && {\n      boxShadow: (theme.vars || theme).shadows[8]\n    }),\n    [`&.${buttonClasses.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {\n      boxShadow: (theme.vars || theme).shadows[6]\n    }),\n    [`&.${buttonClasses.disabled}`]: _extends({\n      color: (theme.vars || theme).palette.action.disabled\n    }, ownerState.variant === 'outlined' && {\n      border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n    }, ownerState.variant === 'contained' && {\n      color: (theme.vars || theme).palette.action.disabled,\n      boxShadow: (theme.vars || theme).shadows[0],\n      backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n    })\n  }, ownerState.variant === 'text' && {\n    padding: '6px 8px'\n  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {\n    color: (theme.vars || theme).palette[ownerState.color].main\n  }, ownerState.variant === 'outlined' && {\n    padding: '5px 15px',\n    border: '1px solid currentColor'\n  }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {\n    color: (theme.vars || theme).palette[ownerState.color].main,\n    border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`\n  }, ownerState.variant === 'contained' && {\n    color: theme.vars ?\n    // this is safe because grey does not change between default light/dark mode\n    theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),\n    backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n    boxShadow: (theme.vars || theme).shadows[2]\n  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {\n    color: (theme.vars || theme).palette[ownerState.color].contrastText,\n    backgroundColor: (theme.vars || theme).palette[ownerState.color].main\n  }, ownerState.color === 'inherit' && {\n    color: 'inherit',\n    borderColor: 'currentColor'\n  }, ownerState.size === 'small' && ownerState.variant === 'text' && {\n    padding: '4px 5px',\n    fontSize: theme.typography.pxToRem(13)\n  }, ownerState.size === 'large' && ownerState.variant === 'text' && {\n    padding: '8px 11px',\n    fontSize: theme.typography.pxToRem(15)\n  }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {\n    padding: '3px 9px',\n    fontSize: theme.typography.pxToRem(13)\n  }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {\n    padding: '7px 21px',\n    fontSize: theme.typography.pxToRem(15)\n  }, ownerState.size === 'small' && ownerState.variant === 'contained' && {\n    padding: '4px 10px',\n    fontSize: theme.typography.pxToRem(13)\n  }, ownerState.size === 'large' && ownerState.variant === 'contained' && {\n    padding: '8px 22px',\n    fontSize: theme.typography.pxToRem(15)\n  }, ownerState.fullWidth && {\n    width: '100%'\n  });\n}, ({\n  ownerState\n}) => ownerState.disableElevation && {\n  boxShadow: 'none',\n  '&:hover': {\n    boxShadow: 'none'\n  },\n  [`&.${buttonClasses.focusVisible}`]: {\n    boxShadow: 'none'\n  },\n  '&:active': {\n    boxShadow: 'none'\n  },\n  [`&.${buttonClasses.disabled}`]: {\n    boxShadow: 'none'\n  }\n});\nconst ButtonStartIcon = styled('span', {\n  name: 'MuiButton',\n  slot: 'StartIcon',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];\n  }\n})(({\n  ownerState\n}) => _extends({\n  display: 'inherit',\n  marginRight: 8,\n  marginLeft: -4\n}, ownerState.size === 'small' && {\n  marginLeft: -2\n}, commonIconStyles(ownerState)));\nconst ButtonEndIcon = styled('span', {\n  name: 'MuiButton',\n  slot: 'EndIcon',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];\n  }\n})(({\n  ownerState\n}) => _extends({\n  display: 'inherit',\n  marginRight: -4,\n  marginLeft: 8\n}, ownerState.size === 'small' && {\n  marginRight: -2\n}, commonIconStyles(ownerState)));\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n  // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n  const contextProps = React.useContext(ButtonGroupContext);\n  const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n  const resolvedProps = resolveProps(contextProps, inProps);\n  const props = useDefaultProps({\n    props: resolvedProps,\n    name: 'MuiButton'\n  });\n  const {\n      children,\n      color = 'primary',\n      component = 'button',\n      className,\n      disabled = false,\n      disableElevation = false,\n      disableFocusRipple = false,\n      endIcon: endIconProp,\n      focusVisibleClassName,\n      fullWidth = false,\n      size = 'medium',\n      startIcon: startIconProp,\n      type,\n      variant = 'text'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    color,\n    component,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    fullWidth,\n    size,\n    type,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  const startIcon = startIconProp && /*#__PURE__*/_jsx(ButtonStartIcon, {\n    className: classes.startIcon,\n    ownerState: ownerState,\n    children: startIconProp\n  });\n  const endIcon = endIconProp && /*#__PURE__*/_jsx(ButtonEndIcon, {\n    className: classes.endIcon,\n    ownerState: ownerState,\n    children: endIconProp\n  });\n  const positionClassName = buttonGroupButtonContextPositionClassName || '';\n  return /*#__PURE__*/_jsxs(ButtonRoot, _extends({\n    ownerState: ownerState,\n    className: clsx(contextProps.className, classes.root, className, positionClassName),\n    component: component,\n    disabled: disabled,\n    focusRipple: !disableFocusRipple,\n    focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n    ref: ref,\n    type: type\n  }, other, {\n    classes: classes,\n    children: [startIcon, children, endIcon]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, no elevation is used.\n   * @default false\n   */\n  disableElevation: PropTypes.bool,\n  /**\n   * If `true`, the  keyboard focus ripple is disabled.\n   * @default false\n   */\n  disableFocusRipple: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   *\n   * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n   * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * Element placed after the children.\n   */\n  endIcon: PropTypes.node,\n  /**\n   * @ignore\n   */\n  focusVisibleClassName: PropTypes.string,\n  /**\n   * If `true`, the button will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The URL to link to when the button is clicked.\n   * If defined, an `a` element will be used as the root node.\n   */\n  href: PropTypes.string,\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense button styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n  /**\n   * Element placed before the children.\n   */\n  startIcon: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * @ignore\n   */\n  type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n  /**\n   * The variant to use.\n   * @default 'text'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n  var mapper = function mapper(child) {\n    return mapFn && isValidElement(child) ? mapFn(child) : child;\n  };\n\n  var result = Object.create(null);\n  if (children) Children.map(children, function (c) {\n    return c;\n  }).forEach(function (child) {\n    // run the map function here instead so that the key is the computed one\n    result[child.key] = mapper(child);\n  });\n  return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n  prev = prev || {};\n  next = next || {};\n\n  function getValueForKey(key) {\n    return key in next ? next[key] : prev[key];\n  } // For each key of `next`, the list of keys to insert before that key in\n  // the combined list\n\n\n  var nextKeysPending = Object.create(null);\n  var pendingKeys = [];\n\n  for (var prevKey in prev) {\n    if (prevKey in next) {\n      if (pendingKeys.length) {\n        nextKeysPending[prevKey] = pendingKeys;\n        pendingKeys = [];\n      }\n    } else {\n      pendingKeys.push(prevKey);\n    }\n  }\n\n  var i;\n  var childMapping = {};\n\n  for (var nextKey in next) {\n    if (nextKeysPending[nextKey]) {\n      for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n        var pendingNextKey = nextKeysPending[nextKey][i];\n        childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n      }\n    }\n\n    childMapping[nextKey] = getValueForKey(nextKey);\n  } // Finally, add the keys which didn't appear before any key in `next`\n\n\n  for (i = 0; i < pendingKeys.length; i++) {\n    childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n  }\n\n  return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n  return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n  return getChildMapping(props.children, function (child) {\n    return cloneElement(child, {\n      onExited: onExited.bind(null, child),\n      in: true,\n      appear: getProp(child, 'appear', props),\n      enter: getProp(child, 'enter', props),\n      exit: getProp(child, 'exit', props)\n    });\n  });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n  var nextChildMapping = getChildMapping(nextProps.children);\n  var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n  Object.keys(children).forEach(function (key) {\n    var child = children[key];\n    if (!isValidElement(child)) return;\n    var hasPrev = (key in prevChildMapping);\n    var hasNext = (key in nextChildMapping);\n    var prevChild = prevChildMapping[key];\n    var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n    if (hasNext && (!hasPrev || isLeaving)) {\n      // console.log('entering', key)\n      children[key] = cloneElement(child, {\n        onExited: onExited.bind(null, child),\n        in: true,\n        exit: getProp(child, 'exit', nextProps),\n        enter: getProp(child, 'enter', nextProps)\n      });\n    } else if (!hasNext && hasPrev && !isLeaving) {\n      // item is old (exiting)\n      // console.log('leaving', key)\n      children[key] = cloneElement(child, {\n        in: false\n      });\n    } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n      // item hasn't changed transition states\n      // copy over the last transition props;\n      // console.log('unchanged', key)\n      children[key] = cloneElement(child, {\n        onExited: onExited.bind(null, child),\n        in: prevChild.props.in,\n        exit: getProp(child, 'exit', nextProps),\n        enter: getProp(child, 'enter', nextProps)\n      });\n    }\n  });\n  return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n  return Object.keys(obj).map(function (k) {\n    return obj[k];\n  });\n};\n\nvar defaultProps = {\n  component: 'div',\n  childFactory: function childFactory(child) {\n    return child;\n  }\n};\n/**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>`  does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(TransitionGroup, _React$Component);\n\n  function TransitionGroup(props, context) {\n    var _this;\n\n    _this = _React$Component.call(this, props, context) || this;\n\n    var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n    _this.state = {\n      contextValue: {\n        isMounting: true\n      },\n      handleExited: handleExited,\n      firstRender: true\n    };\n    return _this;\n  }\n\n  var _proto = TransitionGroup.prototype;\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.mounted = true;\n    this.setState({\n      contextValue: {\n        isMounting: false\n      }\n    });\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    this.mounted = false;\n  };\n\n  TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n    var prevChildMapping = _ref.children,\n        handleExited = _ref.handleExited,\n        firstRender = _ref.firstRender;\n    return {\n      children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n      firstRender: false\n    };\n  } // node is `undefined` when user provided `nodeRef` prop\n  ;\n\n  _proto.handleExited = function handleExited(child, node) {\n    var currentChildMapping = getChildMapping(this.props.children);\n    if (child.key in currentChildMapping) return;\n\n    if (child.props.onExited) {\n      child.props.onExited(node);\n    }\n\n    if (this.mounted) {\n      this.setState(function (state) {\n        var children = _extends({}, state.children);\n\n        delete children[child.key];\n        return {\n          children: children\n        };\n      });\n    }\n  };\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        Component = _this$props.component,\n        childFactory = _this$props.childFactory,\n        props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n    var contextValue = this.state.contextValue;\n    var children = values(this.state.children).map(childFactory);\n    delete props.appear;\n    delete props.enter;\n    delete props.exit;\n\n    if (Component === null) {\n      return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n        value: contextValue\n      }, children);\n    }\n\n    return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n      value: contextValue\n    }, /*#__PURE__*/React.createElement(Component, props, children));\n  };\n\n  return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /**\n   * `<TransitionGroup>` renders a `<div>` by default. You can change this\n   * behavior by providing a `component` prop.\n   * If you use React v16+ and would like to avoid a wrapping `<div>` element\n   * you can pass in `component={null}`. This is useful if the wrapping div\n   * borks your css styles.\n   */\n  component: PropTypes.any,\n\n  /**\n   * A set of `<Transition>` components, that are toggled `in` and out as they\n   * leave. the `<TransitionGroup>` will inject specific transition props, so\n   * remember to spread them through if you are wrapping the `<Transition>` as\n   * with our `<Fade>` example.\n   *\n   * While this component is meant for multiple `Transition` or `CSSTransition`\n   * children, sometimes you may want to have a single transition child with\n   * content that you want to be transitioned out and in when you change it\n   * (e.g. routes, images etc.) In that case you can change the `key` prop of\n   * the transition child as you change its content, this will cause\n   * `TransitionGroup` to transition the child out and back in.\n   */\n  children: PropTypes.node,\n\n  /**\n   * A convenience prop that enables or disables appear animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  appear: PropTypes.bool,\n\n  /**\n   * A convenience prop that enables or disables enter animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  enter: PropTypes.bool,\n\n  /**\n   * A convenience prop that enables or disables exit animations\n   * for all children. Note that specifying this will override any defaults set\n   * on individual children Transitions.\n   */\n  exit: PropTypes.bool,\n\n  /**\n   * You may need to apply reactive updates to a child as it is exiting.\n   * This is generally done by using `cloneElement` however in the case of an exiting\n   * child the element has already been removed and not accessible to the consumer.\n   *\n   * If you do need to update a child as it leaves you can provide a `childFactory`\n   * to wrap every child, even the ones that are leaving.\n   *\n   * @type Function(child: ReactElement) -> ReactElement\n   */\n  childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction Ripple(props) {\n  const {\n    className,\n    classes,\n    pulsate = false,\n    rippleX,\n    rippleY,\n    rippleSize,\n    in: inProp,\n    onExited,\n    timeout\n  } = props;\n  const [leaving, setLeaving] = React.useState(false);\n  const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);\n  const rippleStyles = {\n    width: rippleSize,\n    height: rippleSize,\n    top: -(rippleSize / 2) + rippleY,\n    left: -(rippleSize / 2) + rippleX\n  };\n  const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);\n  if (!inProp && !leaving) {\n    setLeaving(true);\n  }\n  React.useEffect(() => {\n    if (!inProp && onExited != null) {\n      // react-transition-group#onExited\n      const timeoutId = setTimeout(onExited, timeout);\n      return () => {\n        clearTimeout(timeoutId);\n      };\n    }\n    return undefined;\n  }, [onExited, inProp, timeout]);\n  return /*#__PURE__*/_jsx(\"span\", {\n    className: rippleClassName,\n    style: rippleStyles,\n    children: /*#__PURE__*/_jsx(\"span\", {\n      className: childClassName\n    })\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? Ripple.propTypes = {\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object.isRequired,\n  className: PropTypes.string,\n  /**\n   * @ignore - injected from TransitionGroup\n   */\n  in: PropTypes.bool,\n  /**\n   * @ignore - injected from TransitionGroup\n   */\n  onExited: PropTypes.func,\n  /**\n   * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.\n   */\n  pulsate: PropTypes.bool,\n  /**\n   * Diameter of the ripple.\n   */\n  rippleSize: PropTypes.number,\n  /**\n   * Horizontal position of the ripple center.\n   */\n  rippleX: PropTypes.number,\n  /**\n   * Vertical position of the ripple center.\n   */\n  rippleY: PropTypes.number,\n  /**\n   * exit delay\n   */\n  timeout: PropTypes.number.isRequired\n} : void 0;\nexport default Ripple;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTouchRippleUtilityClass(slot) {\n  return generateUtilityClass('MuiTouchRipple', slot);\n}\nconst touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);\nexport default touchRippleClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"center\", \"classes\", \"className\"];\nlet _ = t => t,\n  _t,\n  _t2,\n  _t3,\n  _t4;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport { keyframes } from '@mui/system';\nimport useTimeout from '@mui/utils/useTimeout';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Ripple from './Ripple';\nimport touchRippleClasses from './touchRippleClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes(_t || (_t = _`\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n`));\nconst exitKeyframe = keyframes(_t2 || (_t2 = _`\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n`));\nconst pulsateKeyframe = keyframes(_t3 || (_t3 = _`\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n`));\nexport const TouchRippleRoot = styled('span', {\n  name: 'MuiTouchRipple',\n  slot: 'Root'\n})({\n  overflow: 'hidden',\n  pointerEvents: 'none',\n  position: 'absolute',\n  zIndex: 0,\n  top: 0,\n  right: 0,\n  bottom: 0,\n  left: 0,\n  borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n  name: 'MuiTouchRipple',\n  slot: 'Ripple'\n})(_t4 || (_t4 = _`\n  opacity: 0;\n  position: absolute;\n\n  &.${0} {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  &.${0} {\n    animation-duration: ${0}ms;\n  }\n\n  & .${0} {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & .${0} {\n    opacity: 0;\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  & .${0} {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ${0};\n    animation-duration: 2500ms;\n    animation-timing-function: ${0};\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n`), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({\n  theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({\n  theme\n}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({\n  theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({\n  theme\n}) => theme.transitions.easing.easeInOut);\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiTouchRipple'\n  });\n  const {\n      center: centerProp = false,\n      classes = {},\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const [ripples, setRipples] = React.useState([]);\n  const nextKey = React.useRef(0);\n  const rippleCallback = React.useRef(null);\n  React.useEffect(() => {\n    if (rippleCallback.current) {\n      rippleCallback.current();\n      rippleCallback.current = null;\n    }\n  }, [ripples]);\n\n  // Used to filter out mouse emulated events on mobile.\n  const ignoringMouseDown = React.useRef(false);\n  // We use a timer in order to only show the ripples for touch \"click\" like events.\n  // We don't want to display the ripple for touch scroll events.\n  const startTimer = useTimeout();\n\n  // This is the hook called once the previous timeout is ready.\n  const startTimerCommit = React.useRef(null);\n  const container = React.useRef(null);\n  const startCommit = React.useCallback(params => {\n    const {\n      pulsate,\n      rippleX,\n      rippleY,\n      rippleSize,\n      cb\n    } = params;\n    setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n      classes: {\n        ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n        rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n        ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n        child: clsx(classes.child, touchRippleClasses.child),\n        childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n        childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n      },\n      timeout: DURATION,\n      pulsate: pulsate,\n      rippleX: rippleX,\n      rippleY: rippleY,\n      rippleSize: rippleSize\n    }, nextKey.current)]);\n    nextKey.current += 1;\n    rippleCallback.current = cb;\n  }, [classes]);\n  const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n    const {\n      pulsate = false,\n      center = centerProp || options.pulsate,\n      fakeElement = false // For test purposes\n    } = options;\n    if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {\n      ignoringMouseDown.current = false;\n      return;\n    }\n    if ((event == null ? void 0 : event.type) === 'touchstart') {\n      ignoringMouseDown.current = true;\n    }\n    const element = fakeElement ? null : container.current;\n    const rect = element ? element.getBoundingClientRect() : {\n      width: 0,\n      height: 0,\n      left: 0,\n      top: 0\n    };\n\n    // Get the size of the ripple\n    let rippleX;\n    let rippleY;\n    let rippleSize;\n    if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n      rippleX = Math.round(rect.width / 2);\n      rippleY = Math.round(rect.height / 2);\n    } else {\n      const {\n        clientX,\n        clientY\n      } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n      rippleX = Math.round(clientX - rect.left);\n      rippleY = Math.round(clientY - rect.top);\n    }\n    if (center) {\n      rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n      // For some reason the animation is broken on Mobile Chrome if the size is even.\n      if (rippleSize % 2 === 0) {\n        rippleSize += 1;\n      }\n    } else {\n      const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n      const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n      rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n    }\n\n    // Touche devices\n    if (event != null && event.touches) {\n      // check that this isn't another touchstart due to multitouch\n      // otherwise we will only clear a single timer when unmounting while two\n      // are running\n      if (startTimerCommit.current === null) {\n        // Prepare the ripple effect.\n        startTimerCommit.current = () => {\n          startCommit({\n            pulsate,\n            rippleX,\n            rippleY,\n            rippleSize,\n            cb\n          });\n        };\n        // Delay the execution of the ripple effect.\n        // We have to make a tradeoff with this delay value.\n        startTimer.start(DELAY_RIPPLE, () => {\n          if (startTimerCommit.current) {\n            startTimerCommit.current();\n            startTimerCommit.current = null;\n          }\n        });\n      }\n    } else {\n      startCommit({\n        pulsate,\n        rippleX,\n        rippleY,\n        rippleSize,\n        cb\n      });\n    }\n  }, [centerProp, startCommit, startTimer]);\n  const pulsate = React.useCallback(() => {\n    start({}, {\n      pulsate: true\n    });\n  }, [start]);\n  const stop = React.useCallback((event, cb) => {\n    startTimer.clear();\n\n    // The touch interaction occurs too quickly.\n    // We still want to show ripple effect.\n    if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {\n      startTimerCommit.current();\n      startTimerCommit.current = null;\n      startTimer.start(0, () => {\n        stop(event, cb);\n      });\n      return;\n    }\n    startTimerCommit.current = null;\n    setRipples(oldRipples => {\n      if (oldRipples.length > 0) {\n        return oldRipples.slice(1);\n      }\n      return oldRipples;\n    });\n    rippleCallback.current = cb;\n  }, [startTimer]);\n  React.useImperativeHandle(ref, () => ({\n    pulsate,\n    start,\n    stop\n  }), [pulsate, start, stop]);\n  return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({\n    className: clsx(touchRippleClasses.root, classes.root, className),\n    ref: container\n  }, other, {\n    children: /*#__PURE__*/_jsx(TransitionGroup, {\n      component: null,\n      exit: true,\n      children: ripples\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n  /**\n   * If `true`, the ripple starts at the center of the component\n   * rather than at the point of interaction.\n   */\n  center: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string\n} : void 0;\nexport default TouchRipple;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonBaseUtilityClass(slot) {\n  return generateUtilityClass('MuiButtonBase', slot);\n}\nconst buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);\nexport default buttonBaseClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"action\", \"centerRipple\", \"children\", \"className\", \"component\", \"disabled\", \"disableRipple\", \"disableTouchRipple\", \"focusRipple\", \"focusVisibleClassName\", \"LinkComponent\", \"onBlur\", \"onClick\", \"onContextMenu\", \"onDragLeave\", \"onFocus\", \"onFocusVisible\", \"onKeyDown\", \"onKeyUp\", \"onMouseDown\", \"onMouseLeave\", \"onMouseUp\", \"onTouchEnd\", \"onTouchMove\", \"onTouchStart\", \"tabIndex\", \"TouchRippleProps\", \"touchRippleRef\", \"type\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport TouchRipple from './TouchRipple';\nimport buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    disabled,\n    focusVisible,\n    focusVisibleClassName,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']\n  };\n  const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);\n  if (focusVisible && focusVisibleClassName) {\n    composedClasses.root += ` ${focusVisibleClassName}`;\n  }\n  return composedClasses;\n};\nexport const ButtonBaseRoot = styled('button', {\n  name: 'MuiButtonBase',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})({\n  display: 'inline-flex',\n  alignItems: 'center',\n  justifyContent: 'center',\n  position: 'relative',\n  boxSizing: 'border-box',\n  WebkitTapHighlightColor: 'transparent',\n  backgroundColor: 'transparent',\n  // Reset default value\n  // We disable the focus ring for mouse, touch and keyboard users.\n  outline: 0,\n  border: 0,\n  margin: 0,\n  // Remove the margin in Safari\n  borderRadius: 0,\n  padding: 0,\n  // Remove the padding in Firefox\n  cursor: 'pointer',\n  userSelect: 'none',\n  verticalAlign: 'middle',\n  MozAppearance: 'none',\n  // Reset\n  WebkitAppearance: 'none',\n  // Reset\n  textDecoration: 'none',\n  // So we take precedent over the style of a native <a /> element.\n  color: 'inherit',\n  '&::-moz-focus-inner': {\n    borderStyle: 'none' // Remove Firefox dotted outline.\n  },\n  [`&.${buttonBaseClasses.disabled}`]: {\n    pointerEvents: 'none',\n    // Disable link interactions\n    cursor: 'default'\n  },\n  '@media print': {\n    colorAdjust: 'exact'\n  }\n});\n\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\nconst ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiButtonBase'\n  });\n  const {\n      action,\n      centerRipple = false,\n      children,\n      className,\n      component = 'button',\n      disabled = false,\n      disableRipple = false,\n      disableTouchRipple = false,\n      focusRipple = false,\n      LinkComponent = 'a',\n      onBlur,\n      onClick,\n      onContextMenu,\n      onDragLeave,\n      onFocus,\n      onFocusVisible,\n      onKeyDown,\n      onKeyUp,\n      onMouseDown,\n      onMouseLeave,\n      onMouseUp,\n      onTouchEnd,\n      onTouchMove,\n      onTouchStart,\n      tabIndex = 0,\n      TouchRippleProps,\n      touchRippleRef,\n      type\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const buttonRef = React.useRef(null);\n  const rippleRef = React.useRef(null);\n  const handleRippleRef = useForkRef(rippleRef, touchRippleRef);\n  const {\n    isFocusVisibleRef,\n    onFocus: handleFocusVisible,\n    onBlur: handleBlurVisible,\n    ref: focusVisibleRef\n  } = useIsFocusVisible();\n  const [focusVisible, setFocusVisible] = React.useState(false);\n  if (disabled && focusVisible) {\n    setFocusVisible(false);\n  }\n  React.useImperativeHandle(action, () => ({\n    focusVisible: () => {\n      setFocusVisible(true);\n      buttonRef.current.focus();\n    }\n  }), []);\n  const [mountedState, setMountedState] = React.useState(false);\n  React.useEffect(() => {\n    setMountedState(true);\n  }, []);\n  const enableTouchRipple = mountedState && !disableRipple && !disabled;\n  React.useEffect(() => {\n    if (focusVisible && focusRipple && !disableRipple && mountedState) {\n      rippleRef.current.pulsate();\n    }\n  }, [disableRipple, focusRipple, focusVisible, mountedState]);\n  function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {\n    return useEventCallback(event => {\n      if (eventCallback) {\n        eventCallback(event);\n      }\n      const ignore = skipRippleAction;\n      if (!ignore && rippleRef.current) {\n        rippleRef.current[rippleAction](event);\n      }\n      return true;\n    });\n  }\n  const handleMouseDown = useRippleHandler('start', onMouseDown);\n  const handleContextMenu = useRippleHandler('stop', onContextMenu);\n  const handleDragLeave = useRippleHandler('stop', onDragLeave);\n  const handleMouseUp = useRippleHandler('stop', onMouseUp);\n  const handleMouseLeave = useRippleHandler('stop', event => {\n    if (focusVisible) {\n      event.preventDefault();\n    }\n    if (onMouseLeave) {\n      onMouseLeave(event);\n    }\n  });\n  const handleTouchStart = useRippleHandler('start', onTouchStart);\n  const handleTouchEnd = useRippleHandler('stop', onTouchEnd);\n  const handleTouchMove = useRippleHandler('stop', onTouchMove);\n  const handleBlur = useRippleHandler('stop', event => {\n    handleBlurVisible(event);\n    if (isFocusVisibleRef.current === false) {\n      setFocusVisible(false);\n    }\n    if (onBlur) {\n      onBlur(event);\n    }\n  }, false);\n  const handleFocus = useEventCallback(event => {\n    // Fix for https://github.com/facebook/react/issues/7769\n    if (!buttonRef.current) {\n      buttonRef.current = event.currentTarget;\n    }\n    handleFocusVisible(event);\n    if (isFocusVisibleRef.current === true) {\n      setFocusVisible(true);\n      if (onFocusVisible) {\n        onFocusVisible(event);\n      }\n    }\n    if (onFocus) {\n      onFocus(event);\n    }\n  });\n  const isNonNativeButton = () => {\n    const button = buttonRef.current;\n    return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n  };\n\n  /**\n   * IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat\n   */\n  const keydownRef = React.useRef(false);\n  const handleKeyDown = useEventCallback(event => {\n    // Check if key is already down to avoid repeats being counted as multiple activations\n    if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {\n      keydownRef.current = true;\n      rippleRef.current.stop(event, () => {\n        rippleRef.current.start(event);\n      });\n    }\n    if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n      event.preventDefault();\n    }\n    if (onKeyDown) {\n      onKeyDown(event);\n    }\n\n    // Keyboard accessibility for non interactive elements\n    if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n      event.preventDefault();\n      if (onClick) {\n        onClick(event);\n      }\n    }\n  });\n  const handleKeyUp = useEventCallback(event => {\n    // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n    // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n    if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {\n      keydownRef.current = false;\n      rippleRef.current.stop(event, () => {\n        rippleRef.current.pulsate(event);\n      });\n    }\n    if (onKeyUp) {\n      onKeyUp(event);\n    }\n\n    // Keyboard accessibility for non interactive elements\n    if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {\n      onClick(event);\n    }\n  });\n  let ComponentProp = component;\n  if (ComponentProp === 'button' && (other.href || other.to)) {\n    ComponentProp = LinkComponent;\n  }\n  const buttonProps = {};\n  if (ComponentProp === 'button') {\n    buttonProps.type = type === undefined ? 'button' : type;\n    buttonProps.disabled = disabled;\n  } else {\n    if (!other.href && !other.to) {\n      buttonProps.role = 'button';\n    }\n    if (disabled) {\n      buttonProps['aria-disabled'] = disabled;\n    }\n  }\n  const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useEffect(() => {\n      if (enableTouchRipple && !rippleRef.current) {\n        console.error(['MUI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\\n'));\n      }\n    }, [enableTouchRipple]);\n  }\n  const ownerState = _extends({}, props, {\n    centerRipple,\n    component,\n    disabled,\n    disableRipple,\n    disableTouchRipple,\n    focusRipple,\n    tabIndex,\n    focusVisible\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(ButtonBaseRoot, _extends({\n    as: ComponentProp,\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    onBlur: handleBlur,\n    onClick: onClick,\n    onContextMenu: handleContextMenu,\n    onFocus: handleFocus,\n    onKeyDown: handleKeyDown,\n    onKeyUp: handleKeyUp,\n    onMouseDown: handleMouseDown,\n    onMouseLeave: handleMouseLeave,\n    onMouseUp: handleMouseUp,\n    onDragLeave: handleDragLeave,\n    onTouchEnd: handleTouchEnd,\n    onTouchMove: handleTouchMove,\n    onTouchStart: handleTouchStart,\n    ref: handleRef,\n    tabIndex: disabled ? -1 : tabIndex,\n    type: type\n  }, buttonProps, other, {\n    children: [children, enableTouchRipple ?\n    /*#__PURE__*/\n    /* TouchRipple is only needed client-side, x2 boost on the server. */\n    _jsx(TouchRipple, _extends({\n      ref: handleRippleRef,\n      center: centerRipple\n    }, TouchRippleProps)) : null]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonBase.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * A ref for imperative actions.\n   * It currently only supports `focusVisible()` action.\n   */\n  action: refType,\n  /**\n   * If `true`, the ripples are centered.\n   * They won't start at the cursor interaction position.\n   * @default false\n   */\n  centerRipple: PropTypes.bool,\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: elementTypeAcceptingRef,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   *\n   * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n   * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * If `true`, the touch ripple effect is disabled.\n   * @default false\n   */\n  disableTouchRipple: PropTypes.bool,\n  /**\n   * If `true`, the base button will have a keyboard focus ripple.\n   * @default false\n   */\n  focusRipple: PropTypes.bool,\n  /**\n   * This prop can help identify which element has keyboard focus.\n   * The class name will be applied when the element gains the focus through keyboard interaction.\n   * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n   * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n   * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n   * if needed.\n   */\n  focusVisibleClassName: PropTypes.string,\n  /**\n   * @ignore\n   */\n  href: PropTypes /* @typescript-to-proptypes-ignore */.any,\n  /**\n   * The component used to render a link when the `href` prop is provided.\n   * @default 'a'\n   */\n  LinkComponent: PropTypes.elementType,\n  /**\n   * @ignore\n   */\n  onBlur: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onClick: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onContextMenu: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onDragLeave: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onFocus: PropTypes.func,\n  /**\n   * Callback fired when the component is focused with a keyboard.\n   * We trigger a `onFocus` callback too.\n   */\n  onFocusVisible: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onKeyDown: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onKeyUp: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onMouseDown: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onMouseLeave: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onMouseUp: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onTouchEnd: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onTouchMove: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onTouchStart: PropTypes.func,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * @default 0\n   */\n  tabIndex: PropTypes.number,\n  /**\n   * Props applied to the `TouchRipple` element.\n   */\n  TouchRippleProps: PropTypes.object,\n  /**\n   * A ref that points to the `TouchRipple` element.\n   */\n  touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n    current: PropTypes.shape({\n      pulsate: PropTypes.func.isRequired,\n      start: PropTypes.func.isRequired,\n      stop: PropTypes.func.isRequired\n    })\n  })]),\n  /**\n   * @ignore\n   */\n  type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])\n} : void 0;\nexport default ButtonBase;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonGroupUtilityClass(slot) {\n  return generateUtilityClass('MuiButtonGroup', slot);\n}\nconst buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);\nexport default buttonGroupClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"disabled\", \"disableElevation\", \"disableFocusRipple\", \"disableRipple\", \"fullWidth\", \"orientation\", \"size\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport getValidReactChildren from '@mui/utils/getValidReactChildren';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';\nimport ButtonGroupContext from './ButtonGroupContext';\nimport ButtonGroupButtonContext from './ButtonGroupButtonContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [{\n    [`& .${buttonGroupClasses.grouped}`]: styles.grouped\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]\n  }, {\n    [`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]\n  }, {\n    [`& .${buttonGroupClasses.firstButton}`]: styles.firstButton\n  }, {\n    [`& .${buttonGroupClasses.lastButton}`]: styles.lastButton\n  }, {\n    [`& .${buttonGroupClasses.middleButton}`]: styles.middleButton\n  }, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    color,\n    disabled,\n    disableElevation,\n    fullWidth,\n    orientation,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],\n    grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],\n    firstButton: ['firstButton'],\n    lastButton: ['lastButton'],\n    middleButton: ['middleButton']\n  };\n  return composeClasses(slots, getButtonGroupUtilityClass, classes);\n};\nconst ButtonGroupRoot = styled('div', {\n  name: 'MuiButtonGroup',\n  slot: 'Root',\n  overridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  display: 'inline-flex',\n  borderRadius: (theme.vars || theme).shape.borderRadius\n}, ownerState.variant === 'contained' && {\n  boxShadow: (theme.vars || theme).shadows[2]\n}, ownerState.disableElevation && {\n  boxShadow: 'none'\n}, ownerState.fullWidth && {\n  width: '100%'\n}, ownerState.orientation === 'vertical' && {\n  flexDirection: 'column'\n}, {\n  [`& .${buttonGroupClasses.grouped}`]: _extends({\n    minWidth: 40,\n    '&:hover': _extends({}, ownerState.variant === 'contained' && {\n      boxShadow: 'none'\n    })\n  }, ownerState.variant === 'contained' && {\n    boxShadow: 'none'\n  }),\n  [`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {\n    borderTopRightRadius: 0,\n    borderBottomRightRadius: 0\n  }, ownerState.orientation === 'vertical' && {\n    borderBottomRightRadius: 0,\n    borderBottomLeftRadius: 0\n  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {\n    borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n    [`&.${buttonGroupClasses.disabled}`]: {\n      borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n    }\n  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {\n    borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,\n    [`&.${buttonGroupClasses.disabled}`]: {\n      borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n    }\n  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {\n    borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)\n  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {\n    borderRightColor: 'transparent'\n  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {\n    borderBottomColor: 'transparent'\n  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {\n    borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n    [`&.${buttonGroupClasses.disabled}`]: {\n      borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n    }\n  }, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {\n    borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,\n    [`&.${buttonGroupClasses.disabled}`]: {\n      borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`\n    }\n  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {\n    borderColor: (theme.vars || theme).palette[ownerState.color].dark\n  }, {\n    '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {\n      borderRightColor: 'currentColor'\n    }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {\n      borderBottomColor: 'currentColor'\n    })\n  }),\n  [`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {\n    borderTopLeftRadius: 0,\n    borderBottomLeftRadius: 0\n  }, ownerState.orientation === 'vertical' && {\n    borderTopRightRadius: 0,\n    borderTopLeftRadius: 0\n  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {\n    marginLeft: -1\n  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {\n    marginTop: -1\n  })\n}));\nconst ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiButtonGroup'\n  });\n  const {\n      children,\n      className,\n      color = 'primary',\n      component = 'div',\n      disabled = false,\n      disableElevation = false,\n      disableFocusRipple = false,\n      disableRipple = false,\n      fullWidth = false,\n      orientation = 'horizontal',\n      size = 'medium',\n      variant = 'outlined'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    color,\n    component,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    disableRipple,\n    fullWidth,\n    orientation,\n    size,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  const context = React.useMemo(() => ({\n    className: classes.grouped,\n    color,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    disableRipple,\n    fullWidth,\n    size,\n    variant\n  }), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);\n  const validChildren = getValidReactChildren(children);\n  const childrenCount = validChildren.length;\n  const getButtonPositionClassName = index => {\n    const isFirstButton = index === 0;\n    const isLastButton = index === childrenCount - 1;\n    if (isFirstButton && isLastButton) {\n      return '';\n    }\n    if (isFirstButton) {\n      return classes.firstButton;\n    }\n    if (isLastButton) {\n      return classes.lastButton;\n    }\n    return classes.middleButton;\n  };\n  return /*#__PURE__*/_jsx(ButtonGroupRoot, _extends({\n    as: component,\n    role: \"group\",\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {\n      value: context,\n      children: validChildren.map((child, index) => {\n        return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {\n          value: getButtonPositionClassName(index),\n          children: child\n        }, index);\n      })\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonGroup.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, no elevation is used.\n   * @default false\n   */\n  disableElevation: PropTypes.bool,\n  /**\n   * If `true`, the button keyboard focus ripple is disabled.\n   * @default false\n   */\n  disableFocusRipple: PropTypes.bool,\n  /**\n   * If `true`, the button ripple effect is disabled.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * If `true`, the buttons will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The component orientation (layout flow direction).\n   * @default 'horizontal'\n   */\n  orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense button styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'outlined'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default ButtonGroup;","import * as React from 'react';\n\n/**\n * Gets only the valid children of a component,\n * and ignores any nullish or falsy child.\n *\n * @param children the children\n */\nexport default function getValidReactChildren(children) {\n  return React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child));\n}","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n  ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';\n}\nexport default ButtonGroupButtonContext;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n  ButtonGroupContext.displayName = 'ButtonGroupContext';\n}\nexport default ButtonGroupContext;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCheckboxUtilityClass(slot) {\n  return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);\nexport default checkboxClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"checkedIcon\", \"color\", \"icon\", \"indeterminate\", \"indeterminateIcon\", \"inputProps\", \"size\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport SwitchBase from '../internal/SwitchBase';\nimport CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank';\nimport CheckBoxIcon from '../internal/svg-icons/CheckBox';\nimport IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckBox';\nimport capitalize from '../utils/capitalize';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    indeterminate,\n    color,\n    size\n  } = ownerState;\n  const slots = {\n    root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`, `size${capitalize(size)}`]\n  };\n  const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst CheckboxRoot = styled(SwitchBase, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiCheckbox',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  color: (theme.vars || theme).palette.text.secondary\n}, !ownerState.disableRipple && {\n  '&:hover': {\n    backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: 'transparent'\n    }\n  }\n}, ownerState.color !== 'default' && {\n  [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n    color: (theme.vars || theme).palette[ownerState.color].main\n  },\n  [`&.${checkboxClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.action.disabled\n  }\n}));\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n  var _icon$props$fontSize, _indeterminateIcon$pr;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiCheckbox'\n  });\n  const {\n      checkedIcon = defaultCheckedIcon,\n      color = 'primary',\n      icon: iconProp = defaultIcon,\n      indeterminate = false,\n      indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n      inputProps,\n      size = 'medium',\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const icon = indeterminate ? indeterminateIconProp : iconProp;\n  const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n  const ownerState = _extends({}, props, {\n    color,\n    indeterminate,\n    size\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(CheckboxRoot, _extends({\n    type: \"checkbox\",\n    inputProps: _extends({\n      'data-indeterminate': indeterminate\n    }, inputProps),\n    icon: /*#__PURE__*/React.cloneElement(icon, {\n      fontSize: (_icon$props$fontSize = icon.props.fontSize) != null ? _icon$props$fontSize : size\n    }),\n    checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n      fontSize: (_indeterminateIcon$pr = indeterminateIcon.props.fontSize) != null ? _indeterminateIcon$pr : size\n    }),\n    ownerState: ownerState,\n    ref: ref,\n    className: clsx(classes.root, className)\n  }, other, {\n    classes: classes\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the component is checked.\n   */\n  checked: PropTypes.bool,\n  /**\n   * The icon to display when the component is checked.\n   * @default <CheckBoxIcon />\n   */\n  checkedIcon: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The default checked state. Use when the component is not controlled.\n   */\n  defaultChecked: PropTypes.bool,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * The icon to display when the component is unchecked.\n   * @default <CheckBoxOutlineBlankIcon />\n   */\n  icon: PropTypes.node,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * If `true`, the component appears indeterminate.\n   * This does not set the native input element to indeterminate due\n   * to inconsistent behavior across browsers.\n   * However, we set a `data-indeterminate` attribute on the `input`.\n   * @default false\n   */\n  indeterminate: PropTypes.bool,\n  /**\n   * The icon to display when the component is indeterminate.\n   * @default <IndeterminateCheckBoxIcon />\n   */\n  indeterminateIcon: PropTypes.node,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * Callback fired when the state is changed.\n   *\n   * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n   */\n  onChange: PropTypes.func,\n  /**\n   * If `true`, the `input` element is required.\n   * @default false\n   */\n  required: PropTypes.bool,\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense checkbox styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The value of the component. The DOM API casts this to a string.\n   * The browser uses \"on\" as the default value.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default Checkbox;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"component\", \"disableGutters\", \"fixed\", \"maxWidth\", \"classes\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '@mui/utils/capitalize';\nimport useThemePropsSystem from '../useThemeProps';\nimport systemStyled from '../styled';\nimport createTheme from '../createTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\nconst defaultCreateStyledComponent = systemStyled('div', {\n  name: 'MuiContainer',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];\n  }\n});\nconst useThemePropsDefault = inProps => useThemePropsSystem({\n  props: inProps,\n  name: 'MuiContainer',\n  defaultTheme\n});\nconst useUtilityClasses = (ownerState, componentName) => {\n  const getContainerUtilityClass = slot => {\n    return generateUtilityClass(componentName, slot);\n  };\n  const {\n    classes,\n    fixed,\n    disableGutters,\n    maxWidth\n  } = ownerState;\n  const slots = {\n    root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']\n  };\n  return composeClasses(slots, getContainerUtilityClass, classes);\n};\nexport default function createContainer(options = {}) {\n  const {\n    // This will allow adding custom styled fn (for example for custom sx style function)\n    createStyledComponent = defaultCreateStyledComponent,\n    useThemeProps = useThemePropsDefault,\n    componentName = 'MuiContainer'\n  } = options;\n  const ContainerRoot = createStyledComponent(({\n    theme,\n    ownerState\n  }) => _extends({\n    width: '100%',\n    marginLeft: 'auto',\n    boxSizing: 'border-box',\n    marginRight: 'auto',\n    display: 'block'\n  }, !ownerState.disableGutters && {\n    paddingLeft: theme.spacing(2),\n    paddingRight: theme.spacing(2),\n    // @ts-ignore module augmentation fails if custom breakpoints are used\n    [theme.breakpoints.up('sm')]: {\n      paddingLeft: theme.spacing(3),\n      paddingRight: theme.spacing(3)\n    }\n  }), ({\n    theme,\n    ownerState\n  }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => {\n    const breakpoint = breakpointValueKey;\n    const value = theme.breakpoints.values[breakpoint];\n    if (value !== 0) {\n      // @ts-ignore\n      acc[theme.breakpoints.up(breakpoint)] = {\n        maxWidth: `${value}${theme.breakpoints.unit}`\n      };\n    }\n    return acc;\n  }, {}), ({\n    theme,\n    ownerState\n  }) => _extends({}, ownerState.maxWidth === 'xs' && {\n    // @ts-ignore module augmentation fails if custom breakpoints are used\n    [theme.breakpoints.up('xs')]: {\n      // @ts-ignore module augmentation fails if custom breakpoints are used\n      maxWidth: Math.max(theme.breakpoints.values.xs, 444)\n    }\n  }, ownerState.maxWidth &&\n  // @ts-ignore module augmentation fails if custom breakpoints are used\n  ownerState.maxWidth !== 'xs' && {\n    // @ts-ignore module augmentation fails if custom breakpoints are used\n    [theme.breakpoints.up(ownerState.maxWidth)]: {\n      // @ts-ignore module augmentation fails if custom breakpoints are used\n      maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`\n    }\n  }));\n  const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {\n    const props = useThemeProps(inProps);\n    const {\n        className,\n        component = 'div',\n        disableGutters = false,\n        fixed = false,\n        maxWidth = 'lg'\n      } = props,\n      other = _objectWithoutPropertiesLoose(props, _excluded);\n    const ownerState = _extends({}, props, {\n      component,\n      disableGutters,\n      fixed,\n      maxWidth\n    });\n\n    // @ts-ignore module augmentation fails if custom breakpoints are used\n    const classes = useUtilityClasses(ownerState, componentName);\n    return (\n      /*#__PURE__*/\n      // @ts-ignore theme is injected by the styled util\n      _jsx(ContainerRoot, _extends({\n        as: component\n        // @ts-ignore module augmentation fails if custom breakpoints are used\n        ,\n        ownerState: ownerState,\n        className: clsx(classes.root, className),\n        ref: ref\n      }, other))\n    );\n  });\n  process.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n    children: PropTypes.node,\n    classes: PropTypes.object,\n    className: PropTypes.string,\n    component: PropTypes.elementType,\n    disableGutters: PropTypes.bool,\n    fixed: PropTypes.bool,\n    maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n    sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n  } : void 0;\n  return Container;\n}","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createContainer } from '@mui/system';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nconst Container = createContainer({\n  createStyledComponent: styled('div', {\n    name: 'MuiContainer',\n    slot: 'Root',\n    overridesResolver: (props, styles) => {\n      const {\n        ownerState\n      } = props;\n      return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];\n    }\n  }),\n  useThemeProps: inProps => useDefaultProps({\n    props: inProps,\n    name: 'MuiContainer'\n  })\n});\nprocess.env.NODE_ENV !== \"production\" ? Container.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the left and right padding is removed.\n   * @default false\n   */\n  disableGutters: PropTypes.bool,\n  /**\n   * Set the max-width to match the min-width of the current breakpoint.\n   * This is useful if you'd prefer to design for a fixed set of sizes\n   * instead of trying to accommodate a fully fluid viewport.\n   * It's fluid by default.\n   * @default false\n   */\n  fixed: PropTypes.bool,\n  /**\n   * Determine the max-width of the container.\n   * The container width grows with the size of the screen.\n   * Set to `false` to disable `maxWidth`.\n   * @default 'lg'\n   */\n  maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Container;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n  return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, _extends({}, props));\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * @ignore\n   */\n  value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n  return useSystemDefaultProps(params);\n}","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"absolute\", \"children\", \"className\", \"component\", \"flexItem\", \"light\", \"orientation\", \"role\", \"textAlign\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { getDividerUtilityClass } from './dividerClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    absolute,\n    children,\n    classes,\n    flexItem,\n    light,\n    orientation,\n    textAlign,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],\n    wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']\n  };\n  return composeClasses(slots, getDividerUtilityClass, classes);\n};\nconst DividerRoot = styled('div', {\n  name: 'MuiDivider',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  margin: 0,\n  // Reset browser default style.\n  flexShrink: 0,\n  borderWidth: 0,\n  borderStyle: 'solid',\n  borderColor: (theme.vars || theme).palette.divider,\n  borderBottomWidth: 'thin'\n}, ownerState.absolute && {\n  position: 'absolute',\n  bottom: 0,\n  left: 0,\n  width: '100%'\n}, ownerState.light && {\n  borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)\n}, ownerState.variant === 'inset' && {\n  marginLeft: 72\n}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {\n  marginLeft: theme.spacing(2),\n  marginRight: theme.spacing(2)\n}, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {\n  marginTop: theme.spacing(1),\n  marginBottom: theme.spacing(1)\n}, ownerState.orientation === 'vertical' && {\n  height: '100%',\n  borderBottomWidth: 0,\n  borderRightWidth: 'thin'\n}, ownerState.flexItem && {\n  alignSelf: 'stretch',\n  height: 'auto'\n}), ({\n  ownerState\n}) => _extends({}, ownerState.children && {\n  display: 'flex',\n  whiteSpace: 'nowrap',\n  textAlign: 'center',\n  border: 0,\n  borderTopStyle: 'solid',\n  borderLeftStyle: 'solid',\n  '&::before, &::after': {\n    content: '\"\"',\n    alignSelf: 'center'\n  }\n}), ({\n  theme,\n  ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {\n  '&::before, &::after': {\n    width: '100%',\n    borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,\n    borderTopStyle: 'inherit'\n  }\n}), ({\n  theme,\n  ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {\n  flexDirection: 'column',\n  '&::before, &::after': {\n    height: '100%',\n    borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,\n    borderLeftStyle: 'inherit'\n  }\n}), ({\n  ownerState\n}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {\n  '&::before': {\n    width: '90%'\n  },\n  '&::after': {\n    width: '10%'\n  }\n}, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {\n  '&::before': {\n    width: '10%'\n  },\n  '&::after': {\n    width: '90%'\n  }\n}));\nconst DividerWrapper = styled('span', {\n  name: 'MuiDivider',\n  slot: 'Wrapper',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  display: 'inline-block',\n  paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,\n  paddingRight: `calc(${theme.spacing(1)} * 1.2)`\n}, ownerState.orientation === 'vertical' && {\n  paddingTop: `calc(${theme.spacing(1)} * 1.2)`,\n  paddingBottom: `calc(${theme.spacing(1)} * 1.2)`\n}));\nconst Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiDivider'\n  });\n  const {\n      absolute = false,\n      children,\n      className,\n      component = children ? 'div' : 'hr',\n      flexItem = false,\n      light = false,\n      orientation = 'horizontal',\n      role = component !== 'hr' ? 'separator' : undefined,\n      textAlign = 'center',\n      variant = 'fullWidth'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    absolute,\n    component,\n    flexItem,\n    light,\n    orientation,\n    role,\n    textAlign,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(DividerRoot, _extends({\n    as: component,\n    className: clsx(classes.root, className),\n    role: role,\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: children ? /*#__PURE__*/_jsx(DividerWrapper, {\n      className: classes.wrapper,\n      ownerState: ownerState,\n      children: children\n    }) : null\n  }));\n});\n\n/**\n * The following flag is used to ensure that this component isn't tabbable i.e.\n * does not get highlight/focus inside of MUI List.\n */\nDivider.muiSkipListHighlight = true;\nprocess.env.NODE_ENV !== \"production\" ? Divider.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Absolutely position the element.\n   * @default false\n   */\n  absolute: PropTypes.bool,\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, a vertical divider will have the correct height when used in flex container.\n   * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)\n   * @default false\n   */\n  flexItem: PropTypes.bool,\n  /**\n   * If `true`, the divider will have a lighter color.\n   * @default false\n   * @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)\n   */\n  light: PropTypes.bool,\n  /**\n   * The component orientation.\n   * @default 'horizontal'\n   */\n  orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n  /**\n   * @ignore\n   */\n  role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The text alignment.\n   * @default 'center'\n   */\n  textAlign: PropTypes.oneOf(['center', 'left', 'right']),\n  /**\n   * The variant to use.\n   * @default 'fullWidth'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])\n} : void 0;\nexport default Divider;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDividerUtilityClass(slot) {\n  return generateUtilityClass('MuiDivider', slot);\n}\nconst dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);\nexport default dividerClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"container\", \"direction\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport debounce from '../utils/debounce';\nimport useForkRef from '../utils/useForkRef';\nimport useTheme from '../styles/useTheme';\nimport { reflow, getTransitionProps } from '../transitions/utils';\nimport { ownerWindow } from '../utils';\n\n// Translate the node so it can't be seen on the screen.\n// Later, we're going to translate the node back to its original location with `none`.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getTranslateValue(direction, node, resolvedContainer) {\n  const rect = node.getBoundingClientRect();\n  const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();\n  const containerWindow = ownerWindow(node);\n  let transform;\n  if (node.fakeTransform) {\n    transform = node.fakeTransform;\n  } else {\n    const computedStyle = containerWindow.getComputedStyle(node);\n    transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');\n  }\n  let offsetX = 0;\n  let offsetY = 0;\n  if (transform && transform !== 'none' && typeof transform === 'string') {\n    const transformValues = transform.split('(')[1].split(')')[0].split(',');\n    offsetX = parseInt(transformValues[4], 10);\n    offsetY = parseInt(transformValues[5], 10);\n  }\n  if (direction === 'left') {\n    if (containerRect) {\n      return `translateX(${containerRect.right + offsetX - rect.left}px)`;\n    }\n    return `translateX(${containerWindow.innerWidth + offsetX - rect.left}px)`;\n  }\n  if (direction === 'right') {\n    if (containerRect) {\n      return `translateX(-${rect.right - containerRect.left - offsetX}px)`;\n    }\n    return `translateX(-${rect.left + rect.width - offsetX}px)`;\n  }\n  if (direction === 'up') {\n    if (containerRect) {\n      return `translateY(${containerRect.bottom + offsetY - rect.top}px)`;\n    }\n    return `translateY(${containerWindow.innerHeight + offsetY - rect.top}px)`;\n  }\n\n  // direction === 'down'\n  if (containerRect) {\n    return `translateY(-${rect.top - containerRect.top + rect.height - offsetY}px)`;\n  }\n  return `translateY(-${rect.top + rect.height - offsetY}px)`;\n}\nfunction resolveContainer(containerPropProp) {\n  return typeof containerPropProp === 'function' ? containerPropProp() : containerPropProp;\n}\nexport function setTranslateValue(direction, node, containerProp) {\n  const resolvedContainer = resolveContainer(containerProp);\n  const transform = getTranslateValue(direction, node, resolvedContainer);\n  if (transform) {\n    node.style.webkitTransform = transform;\n    node.style.transform = transform;\n  }\n}\n\n/**\n * The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {\n  const theme = useTheme();\n  const defaultEasing = {\n    enter: theme.transitions.easing.easeOut,\n    exit: theme.transitions.easing.sharp\n  };\n  const defaultTimeout = {\n    enter: theme.transitions.duration.enteringScreen,\n    exit: theme.transitions.duration.leavingScreen\n  };\n  const {\n      addEndListener,\n      appear = true,\n      children,\n      container: containerProp,\n      direction = 'down',\n      easing: easingProp = defaultEasing,\n      in: inProp,\n      onEnter,\n      onEntered,\n      onEntering,\n      onExit,\n      onExited,\n      onExiting,\n      style,\n      timeout = defaultTimeout,\n      // eslint-disable-next-line react/prop-types\n      TransitionComponent = Transition\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const childrenRef = React.useRef(null);\n  const handleRef = useForkRef(getReactElementRef(children), childrenRef, ref);\n  const normalizedTransitionCallback = callback => isAppearing => {\n    if (callback) {\n      // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n      if (isAppearing === undefined) {\n        callback(childrenRef.current);\n      } else {\n        callback(childrenRef.current, isAppearing);\n      }\n    }\n  };\n  const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n    setTranslateValue(direction, node, containerProp);\n    reflow(node);\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntering = normalizedTransitionCallback((node, isAppearing) => {\n    const transitionProps = getTransitionProps({\n      timeout,\n      style,\n      easing: easingProp\n    }, {\n      mode: 'enter'\n    });\n    node.style.webkitTransition = theme.transitions.create('-webkit-transform', _extends({}, transitionProps));\n    node.style.transition = theme.transitions.create('transform', _extends({}, transitionProps));\n    node.style.webkitTransform = 'none';\n    node.style.transform = 'none';\n    if (onEntering) {\n      onEntering(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback(onEntered);\n  const handleExiting = normalizedTransitionCallback(onExiting);\n  const handleExit = normalizedTransitionCallback(node => {\n    const transitionProps = getTransitionProps({\n      timeout,\n      style,\n      easing: easingProp\n    }, {\n      mode: 'exit'\n    });\n    node.style.webkitTransition = theme.transitions.create('-webkit-transform', transitionProps);\n    node.style.transition = theme.transitions.create('transform', transitionProps);\n    setTranslateValue(direction, node, containerProp);\n    if (onExit) {\n      onExit(node);\n    }\n  });\n  const handleExited = normalizedTransitionCallback(node => {\n    // No need for transitions when the component is hidden\n    node.style.webkitTransition = '';\n    node.style.transition = '';\n    if (onExited) {\n      onExited(node);\n    }\n  });\n  const handleAddEndListener = next => {\n    if (addEndListener) {\n      // Old call signature before `react-transition-group` implemented `nodeRef`\n      addEndListener(childrenRef.current, next);\n    }\n  };\n  const updatePosition = React.useCallback(() => {\n    if (childrenRef.current) {\n      setTranslateValue(direction, childrenRef.current, containerProp);\n    }\n  }, [direction, containerProp]);\n  React.useEffect(() => {\n    // Skip configuration where the position is screen size invariant.\n    if (inProp || direction === 'down' || direction === 'right') {\n      return undefined;\n    }\n    const handleResize = debounce(() => {\n      if (childrenRef.current) {\n        setTranslateValue(direction, childrenRef.current, containerProp);\n      }\n    });\n    const containerWindow = ownerWindow(childrenRef.current);\n    containerWindow.addEventListener('resize', handleResize);\n    return () => {\n      handleResize.clear();\n      containerWindow.removeEventListener('resize', handleResize);\n    };\n  }, [direction, inProp, containerProp]);\n  React.useEffect(() => {\n    if (!inProp) {\n      // We need to update the position of the drawer when the direction change and\n      // when it's hidden.\n      updatePosition();\n    }\n  }, [inProp, updatePosition]);\n  return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    nodeRef: childrenRef,\n    onEnter: handleEnter,\n    onEntered: handleEntered,\n    onEntering: handleEntering,\n    onExit: handleExit,\n    onExited: handleExited,\n    onExiting: handleExiting,\n    addEndListener: handleAddEndListener,\n    appear: appear,\n    in: inProp,\n    timeout: timeout\n  }, other, {\n    children: (state, childProps) => {\n      return /*#__PURE__*/React.cloneElement(children, _extends({\n        ref: handleRef,\n        style: _extends({\n          visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n        }, style, children.props.style)\n      }, childProps));\n    }\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Slide.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Add a custom transition end trigger. Called with the transitioning DOM\n   * node and a done callback. Allows for more fine grained transition end\n   * logic. Note: Timeouts are still used as a fallback if provided.\n   */\n  addEndListener: PropTypes.func,\n  /**\n   * Perform the enter transition when it first mounts if `in` is also `true`.\n   * Set this to `false` to disable this behavior.\n   * @default true\n   */\n  appear: PropTypes.bool,\n  /**\n   * A single child content element.\n   */\n  children: elementAcceptingRef.isRequired,\n  /**\n   * An HTML element, or a function that returns one.\n   * It's used to set the container the Slide is transitioning from.\n   */\n  container: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {\n    if (props.open) {\n      const resolvedContainer = resolveContainer(props.container);\n      if (resolvedContainer && resolvedContainer.nodeType === 1) {\n        const box = resolvedContainer.getBoundingClientRect();\n        if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n          return new Error(['MUI: The `container` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n        }\n      } else if (!resolvedContainer || typeof resolvedContainer.getBoundingClientRect !== 'function' || resolvedContainer.contextElement != null && resolvedContainer.contextElement.nodeType !== 1) {\n        return new Error(['MUI: The `container` prop provided to the component is invalid.', 'It should be an HTML element instance.'].join('\\n'));\n      }\n    }\n    return null;\n  }),\n  /**\n   * Direction the child node will enter from.\n   * @default 'down'\n   */\n  direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),\n  /**\n   * The transition timing function.\n   * You may specify a single easing or a object containing enter and exit values.\n   * @default {\n   *   enter: theme.transitions.easing.easeOut,\n   *   exit: theme.transitions.easing.sharp,\n   * }\n   */\n  easing: PropTypes.oneOfType([PropTypes.shape({\n    enter: PropTypes.string,\n    exit: PropTypes.string\n  }), PropTypes.string]),\n  /**\n   * If `true`, the component will transition in.\n   */\n  in: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  onEnter: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntered: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntering: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExit: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExited: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExiting: PropTypes.func,\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   * @default {\n   *   enter: theme.transitions.duration.enteringScreen,\n   *   exit: theme.transitions.duration.leavingScreen,\n   * }\n   */\n  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })])\n} : void 0;\nexport default Slide;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDrawerUtilityClass(slot) {\n  return generateUtilityClass('MuiDrawer', slot);\n}\nconst drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);\nexport default drawerClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"BackdropProps\"],\n  _excluded2 = [\"anchor\", \"BackdropProps\", \"children\", \"className\", \"elevation\", \"hideBackdrop\", \"ModalProps\", \"onClose\", \"open\", \"PaperProps\", \"SlideProps\", \"TransitionComponent\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport Modal from '../Modal';\nimport Slide from '../Slide';\nimport Paper from '../Paper';\nimport capitalize from '../utils/capitalize';\nimport useTheme from '../styles/useTheme';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { getDrawerUtilityClass } from './drawerClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    anchor,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],\n    modal: ['modal'],\n    paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]\n  };\n  return composeClasses(slots, getDrawerUtilityClass, classes);\n};\nconst DrawerRoot = styled(Modal, {\n  name: 'MuiDrawer',\n  slot: 'Root',\n  overridesResolver\n})(({\n  theme\n}) => ({\n  zIndex: (theme.vars || theme).zIndex.drawer\n}));\nconst DrawerDockedRoot = styled('div', {\n  shouldForwardProp: rootShouldForwardProp,\n  name: 'MuiDrawer',\n  slot: 'Docked',\n  skipVariantsResolver: false,\n  overridesResolver\n})({\n  flex: '0 0 auto'\n});\nconst DrawerPaper = styled(Paper, {\n  name: 'MuiDrawer',\n  slot: 'Paper',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.paper, styles[`paperAnchor${capitalize(ownerState.anchor)}`], ownerState.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  overflowY: 'auto',\n  display: 'flex',\n  flexDirection: 'column',\n  height: '100%',\n  flex: '1 0 auto',\n  zIndex: (theme.vars || theme).zIndex.drawer,\n  // Add iOS momentum scrolling for iOS < 13.0\n  WebkitOverflowScrolling: 'touch',\n  // temporary style\n  position: 'fixed',\n  top: 0,\n  // We disable the focus ring for mouse, touch and keyboard users.\n  // At some point, it would be better to keep it for keyboard users.\n  // :focus-ring CSS pseudo-class will help.\n  outline: 0\n}, ownerState.anchor === 'left' && {\n  left: 0\n}, ownerState.anchor === 'top' && {\n  top: 0,\n  left: 0,\n  right: 0,\n  height: 'auto',\n  maxHeight: '100%'\n}, ownerState.anchor === 'right' && {\n  right: 0\n}, ownerState.anchor === 'bottom' && {\n  top: 'auto',\n  left: 0,\n  bottom: 0,\n  right: 0,\n  height: 'auto',\n  maxHeight: '100%'\n}, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {\n  borderRight: `1px solid ${(theme.vars || theme).palette.divider}`\n}, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {\n  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`\n}, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {\n  borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`\n}, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {\n  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`\n}));\nconst oppositeDirection = {\n  left: 'right',\n  right: 'left',\n  top: 'down',\n  bottom: 'up'\n};\nexport function isHorizontal(anchor) {\n  return ['left', 'right'].indexOf(anchor) !== -1;\n}\nexport function getAnchor({\n  direction\n}, anchor) {\n  return direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;\n}\n\n/**\n * The props of the [Modal](/material-ui/api/modal/) component are available\n * when `variant=\"temporary\"` is set.\n */\nconst Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiDrawer'\n  });\n  const theme = useTheme();\n  const isRtl = useRtl();\n  const defaultTransitionDuration = {\n    enter: theme.transitions.duration.enteringScreen,\n    exit: theme.transitions.duration.leavingScreen\n  };\n  const {\n      anchor: anchorProp = 'left',\n      BackdropProps,\n      children,\n      className,\n      elevation = 16,\n      hideBackdrop = false,\n      ModalProps: {\n        BackdropProps: BackdropPropsProp\n      } = {},\n      onClose,\n      open = false,\n      PaperProps = {},\n      SlideProps,\n      // eslint-disable-next-line react/prop-types\n      TransitionComponent = Slide,\n      transitionDuration = defaultTransitionDuration,\n      variant = 'temporary'\n    } = props,\n    ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n    other = _objectWithoutPropertiesLoose(props, _excluded2);\n\n  // Let's assume that the Drawer will always be rendered on user space.\n  // We use this state is order to skip the appear transition during the\n  // initial mount of the component.\n  const mounted = React.useRef(false);\n  React.useEffect(() => {\n    mounted.current = true;\n  }, []);\n  const anchorInvariant = getAnchor({\n    direction: isRtl ? 'rtl' : 'ltr'\n  }, anchorProp);\n  const anchor = anchorProp;\n  const ownerState = _extends({}, props, {\n    anchor,\n    elevation,\n    open,\n    variant\n  }, other);\n  const classes = useUtilityClasses(ownerState);\n  const drawer = /*#__PURE__*/_jsx(DrawerPaper, _extends({\n    elevation: variant === 'temporary' ? elevation : 0,\n    square: true\n  }, PaperProps, {\n    className: clsx(classes.paper, PaperProps.className),\n    ownerState: ownerState,\n    children: children\n  }));\n  if (variant === 'permanent') {\n    return /*#__PURE__*/_jsx(DrawerDockedRoot, _extends({\n      className: clsx(classes.root, classes.docked, className),\n      ownerState: ownerState,\n      ref: ref\n    }, other, {\n      children: drawer\n    }));\n  }\n  const slidingDrawer = /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    in: open,\n    direction: oppositeDirection[anchorInvariant],\n    timeout: transitionDuration,\n    appear: mounted.current\n  }, SlideProps, {\n    children: drawer\n  }));\n  if (variant === 'persistent') {\n    return /*#__PURE__*/_jsx(DrawerDockedRoot, _extends({\n      className: clsx(classes.root, classes.docked, className),\n      ownerState: ownerState,\n      ref: ref\n    }, other, {\n      children: slidingDrawer\n    }));\n  }\n\n  // variant === temporary\n  return /*#__PURE__*/_jsx(DrawerRoot, _extends({\n    BackdropProps: _extends({}, BackdropProps, BackdropPropsProp, {\n      transitionDuration\n    }),\n    className: clsx(classes.root, classes.modal, className),\n    open: open,\n    ownerState: ownerState,\n    onClose: onClose,\n    hideBackdrop: hideBackdrop,\n    ref: ref\n  }, other, ModalProps, {\n    children: slidingDrawer\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Drawer.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Side from which the drawer will appear.\n   * @default 'left'\n   */\n  anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n  /**\n   * @ignore\n   */\n  BackdropProps: PropTypes.object,\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The elevation of the drawer.\n   * @default 16\n   */\n  elevation: integerPropType,\n  /**\n   * If `true`, the backdrop is not rendered.\n   * @default false\n   */\n  hideBackdrop: PropTypes.bool,\n  /**\n   * Props applied to the [`Modal`](/material-ui/api/modal/) element.\n   * @default {}\n   */\n  ModalProps: PropTypes.object,\n  /**\n   * Callback fired when the component requests to be closed.\n   * The `reason` parameter can optionally be used to control the response to `onClose`.\n   *\n   * @param {object} event The event source of the callback.\n   * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n   */\n  onClose: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   * @default false\n   */\n  open: PropTypes.bool,\n  /**\n   * Props applied to the [`Paper`](/material-ui/api/paper/) element.\n   * @default {}\n   */\n  PaperProps: PropTypes.object,\n  /**\n   * Props applied to the [`Slide`](/material-ui/api/slide/) element.\n   */\n  SlideProps: PropTypes.object,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   * @default {\n   *   enter: theme.transitions.duration.enteringScreen,\n   *   exit: theme.transitions.duration.leavingScreen,\n   * }\n   */\n  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })]),\n  /**\n   * The variant to use.\n   * @default 'temporary'\n   */\n  variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default Drawer;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from '../InputBase';\nexport function getFilledInputUtilityClass(slot) {\n  return generateUtilityClass('MuiFilledInput', slot);\n}\nconst filledInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiFilledInput', ['root', 'underline', 'input']));\nexport default filledInputClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"disableUnderline\", \"components\", \"componentsProps\", \"fullWidth\", \"hiddenLabel\", \"inputComponent\", \"multiline\", \"slotProps\", \"slots\", \"type\"];\nimport * as React from 'react';\nimport deepmerge from '@mui/utils/deepmerge';\nimport refType from '@mui/utils/refType';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport InputBase from '../InputBase';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport filledInputClasses, { getFilledInputUtilityClass } from './filledInputClasses';\nimport { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disableUnderline\n  } = ownerState;\n  const slots = {\n    root: ['root', !disableUnderline && 'underline'],\n    input: ['input']\n  };\n  const composedClasses = composeClasses(slots, getFilledInputUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst FilledInputRoot = styled(InputBaseRoot, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiFilledInput',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [...inputBaseRootOverridesResolver(props, styles), !ownerState.disableUnderline && styles.underline];\n  }\n})(({\n  theme,\n  ownerState\n}) => {\n  var _palette;\n  const light = theme.palette.mode === 'light';\n  const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n  const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';\n  const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';\n  const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';\n  return _extends({\n    position: 'relative',\n    backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,\n    borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n    borderTopRightRadius: (theme.vars || theme).shape.borderRadius,\n    transition: theme.transitions.create('background-color', {\n      duration: theme.transitions.duration.shorter,\n      easing: theme.transitions.easing.easeOut\n    }),\n    '&:hover': {\n      backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n      }\n    },\n    [`&.${filledInputClasses.focused}`]: {\n      backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n    },\n    [`&.${filledInputClasses.disabled}`]: {\n      backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground\n    }\n  }, !ownerState.disableUnderline && {\n    '&::after': {\n      borderBottom: `2px solid ${(_palette = (theme.vars || theme).palette[ownerState.color || 'primary']) == null ? void 0 : _palette.main}`,\n      left: 0,\n      bottom: 0,\n      // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n      content: '\"\"',\n      position: 'absolute',\n      right: 0,\n      transform: 'scaleX(0)',\n      transition: theme.transitions.create('transform', {\n        duration: theme.transitions.duration.shorter,\n        easing: theme.transitions.easing.easeOut\n      }),\n      pointerEvents: 'none' // Transparent to the hover style.\n    },\n    [`&.${filledInputClasses.focused}:after`]: {\n      // translateX(0) is a workaround for Safari transform scale bug\n      // See https://github.com/mui/material-ui/issues/31766\n      transform: 'scaleX(1) translateX(0)'\n    },\n    [`&.${filledInputClasses.error}`]: {\n      '&::before, &::after': {\n        borderBottomColor: (theme.vars || theme).palette.error.main\n      }\n    },\n    '&::before': {\n      borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,\n      left: 0,\n      bottom: 0,\n      // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n      content: '\"\\\\00a0\"',\n      position: 'absolute',\n      right: 0,\n      transition: theme.transitions.create('border-bottom-color', {\n        duration: theme.transitions.duration.shorter\n      }),\n      pointerEvents: 'none' // Transparent to the hover style.\n    },\n    [`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {\n      borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`\n    },\n    [`&.${filledInputClasses.disabled}:before`]: {\n      borderBottomStyle: 'dotted'\n    }\n  }, ownerState.startAdornment && {\n    paddingLeft: 12\n  }, ownerState.endAdornment && {\n    paddingRight: 12\n  }, ownerState.multiline && _extends({\n    padding: '25px 12px 8px'\n  }, ownerState.size === 'small' && {\n    paddingTop: 21,\n    paddingBottom: 4\n  }, ownerState.hiddenLabel && {\n    paddingTop: 16,\n    paddingBottom: 17\n  }, ownerState.hiddenLabel && ownerState.size === 'small' && {\n    paddingTop: 8,\n    paddingBottom: 9\n  }));\n});\nconst FilledInputInput = styled(InputBaseInput, {\n  name: 'MuiFilledInput',\n  slot: 'Input',\n  overridesResolver: inputBaseInputOverridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  paddingTop: 25,\n  paddingRight: 12,\n  paddingBottom: 8,\n  paddingLeft: 12\n}, !theme.vars && {\n  '&:-webkit-autofill': {\n    WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n    WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n    caretColor: theme.palette.mode === 'light' ? null : '#fff',\n    borderTopLeftRadius: 'inherit',\n    borderTopRightRadius: 'inherit'\n  }\n}, theme.vars && {\n  '&:-webkit-autofill': {\n    borderTopLeftRadius: 'inherit',\n    borderTopRightRadius: 'inherit'\n  },\n  [theme.getColorSchemeSelector('dark')]: {\n    '&:-webkit-autofill': {\n      WebkitBoxShadow: '0 0 0 100px #266798 inset',\n      WebkitTextFillColor: '#fff',\n      caretColor: '#fff'\n    }\n  }\n}, ownerState.size === 'small' && {\n  paddingTop: 21,\n  paddingBottom: 4\n}, ownerState.hiddenLabel && {\n  paddingTop: 16,\n  paddingBottom: 17\n}, ownerState.startAdornment && {\n  paddingLeft: 0\n}, ownerState.endAdornment && {\n  paddingRight: 0\n}, ownerState.hiddenLabel && ownerState.size === 'small' && {\n  paddingTop: 8,\n  paddingBottom: 9\n}, ownerState.multiline && {\n  paddingTop: 0,\n  paddingBottom: 0,\n  paddingLeft: 0,\n  paddingRight: 0\n}));\nconst FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {\n  var _ref, _slots$root, _ref2, _slots$input;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFilledInput'\n  });\n  const {\n      components = {},\n      componentsProps: componentsPropsProp,\n      fullWidth = false,\n      // declare here to prevent spreading to DOM\n      inputComponent = 'input',\n      multiline = false,\n      slotProps,\n      slots = {},\n      type = 'text'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    fullWidth,\n    inputComponent,\n    multiline,\n    type\n  });\n  const classes = useUtilityClasses(props);\n  const filledInputComponentsProps = {\n    root: {\n      ownerState\n    },\n    input: {\n      ownerState\n    }\n  };\n  const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(filledInputComponentsProps, slotProps != null ? slotProps : componentsPropsProp) : filledInputComponentsProps;\n  const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : FilledInputRoot;\n  const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : FilledInputInput;\n  return /*#__PURE__*/_jsx(InputBase, _extends({\n    slots: {\n      root: RootSlot,\n      input: InputSlot\n    },\n    componentsProps: componentsProps,\n    fullWidth: fullWidth,\n    inputComponent: inputComponent,\n    multiline: multiline,\n    ref: ref,\n    type: type\n  }, other, {\n    classes: classes\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? FilledInput.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * This prop helps users to fill forms faster, especially on mobile devices.\n   * The name can be confusing, as it's more like an autofill.\n   * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n   */\n  autoComplete: PropTypes.string,\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Input: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `slotProps` prop.\n   * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the component is disabled.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the input will not have an underline.\n   */\n  disableUnderline: PropTypes.bool,\n  /**\n   * End `InputAdornment` for this component.\n   */\n  endAdornment: PropTypes.node,\n  /**\n   * If `true`, the `input` will indicate an error.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the `input` will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * If `true`, the label is hidden.\n   * This is used to increase density for a `FilledInput`.\n   * Be sure to add `aria-label` to the `input` element.\n   * @default false\n   */\n  hiddenLabel: PropTypes.bool,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * The component used for the `input` element.\n   * Either a string to use a HTML element or a component.\n   * @default 'input'\n   */\n  inputComponent: PropTypes.elementType,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   * @default {}\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n   */\n  margin: PropTypes.oneOf(['dense', 'none']),\n  /**\n   * Maximum number of rows to display when multiline option is set to true.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display when multiline option is set to true.\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.\n   * @default false\n   */\n  multiline: PropTypes.bool,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when the value is changed.\n   *\n   * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * The short hint displayed in the `input` before the user enters a value.\n   */\n  placeholder: PropTypes.string,\n  /**\n   * It prevents the user from changing the value of the field\n   * (not from interacting with the field).\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * If `true`, the `input` element is required.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  required: PropTypes.bool,\n  /**\n   * Number of rows to display when multiline option is set to true.\n   */\n  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `components` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * Start `InputAdornment` for this component.\n   */\n  startAdornment: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n   * @default 'text'\n   */\n  type: PropTypes.string,\n  /**\n   * The value of the `input` element, required for a controlled component.\n   */\n  value: PropTypes.any\n} : void 0;\nFilledInput.muiName = 'Input';\nexport default FilledInput;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst FormControlContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n  FormControlContext.displayName = 'FormControlContext';\n}\nexport default FormControlContext;","export default function formControlState({\n  props,\n  states,\n  muiFormControl\n}) {\n  return states.reduce((acc, state) => {\n    acc[state] = props[state];\n    if (muiFormControl) {\n      if (typeof props[state] === 'undefined') {\n        acc[state] = muiFormControl[state];\n      }\n    }\n    return acc;\n  }, {});\n}","'use client';\n\nimport * as React from 'react';\nimport FormControlContext from './FormControlContext';\nexport default function useFormControl() {\n  return React.useContext(FormControlContext);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlLabelUtilityClasses(slot) {\n  return generateUtilityClass('MuiFormControlLabel', slot);\n}\nconst formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);\nexport default formControlLabelClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"checked\", \"className\", \"componentsProps\", \"control\", \"disabled\", \"disableTypography\", \"inputRef\", \"label\", \"labelPlacement\", \"name\", \"onChange\", \"required\", \"slotProps\", \"value\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useFormControl } from '../FormControl';\nimport Stack from '../Stack';\nimport Typography from '../Typography';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from './formControlLabelClasses';\nimport formControlState from '../FormControl/formControlState';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disabled,\n    labelPlacement,\n    error,\n    required\n  } = ownerState;\n  const slots = {\n    root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],\n    label: ['label', disabled && 'disabled'],\n    asterisk: ['asterisk', error && 'error']\n  };\n  return composeClasses(slots, getFormControlLabelUtilityClasses, classes);\n};\nexport const FormControlLabelRoot = styled('label', {\n  name: 'MuiFormControlLabel',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [{\n      [`& .${formControlLabelClasses.label}`]: styles.label\n    }, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  display: 'inline-flex',\n  alignItems: 'center',\n  cursor: 'pointer',\n  // For correct alignment with the text.\n  verticalAlign: 'middle',\n  WebkitTapHighlightColor: 'transparent',\n  marginLeft: -11,\n  marginRight: 16,\n  // used for row presentation of radio/checkbox\n  [`&.${formControlLabelClasses.disabled}`]: {\n    cursor: 'default'\n  }\n}, ownerState.labelPlacement === 'start' && {\n  flexDirection: 'row-reverse',\n  marginLeft: 16,\n  // used for row presentation of radio/checkbox\n  marginRight: -11\n}, ownerState.labelPlacement === 'top' && {\n  flexDirection: 'column-reverse',\n  marginLeft: 16\n}, ownerState.labelPlacement === 'bottom' && {\n  flexDirection: 'column',\n  marginLeft: 16\n}, {\n  [`& .${formControlLabelClasses.label}`]: {\n    [`&.${formControlLabelClasses.disabled}`]: {\n      color: (theme.vars || theme).palette.text.disabled\n    }\n  }\n}));\nconst AsteriskComponent = styled('span', {\n  name: 'MuiFormControlLabel',\n  slot: 'Asterisk',\n  overridesResolver: (props, styles) => styles.asterisk\n})(({\n  theme\n}) => ({\n  [`&.${formControlLabelClasses.error}`]: {\n    color: (theme.vars || theme).palette.error.main\n  }\n}));\n\n/**\n * Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nconst FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {\n  var _ref, _slotProps$typography;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFormControlLabel'\n  });\n  const {\n      className,\n      componentsProps = {},\n      control,\n      disabled: disabledProp,\n      disableTypography,\n      label: labelProp,\n      labelPlacement = 'end',\n      required: requiredProp,\n      slotProps = {}\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const muiFormControl = useFormControl();\n  const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;\n  const required = requiredProp != null ? requiredProp : control.props.required;\n  const controlProps = {\n    disabled,\n    required\n  };\n  ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {\n    if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {\n      controlProps[key] = props[key];\n    }\n  });\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['error']\n  });\n  const ownerState = _extends({}, props, {\n    disabled,\n    labelPlacement,\n    required,\n    error: fcs.error\n  });\n  const classes = useUtilityClasses(ownerState);\n  const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;\n  let label = labelProp;\n  if (label != null && label.type !== Typography && !disableTypography) {\n    label = /*#__PURE__*/_jsx(Typography, _extends({\n      component: \"span\"\n    }, typographySlotProps, {\n      className: clsx(classes.label, typographySlotProps == null ? void 0 : typographySlotProps.className),\n      children: label\n    }));\n  }\n  return /*#__PURE__*/_jsxs(FormControlLabelRoot, _extends({\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    ref: ref\n  }, other, {\n    children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(Stack, {\n      display: \"block\",\n      children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {\n        ownerState: ownerState,\n        \"aria-hidden\": true,\n        className: classes.asterisk,\n        children: [\"\\u2009\", '*']\n      })]\n    }) : label]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControlLabel.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the component appears selected.\n   */\n  checked: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    typography: PropTypes.object\n  }),\n  /**\n   * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n   */\n  control: PropTypes.element.isRequired,\n  /**\n   * If `true`, the control is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the label is rendered as it is passed without an additional typography node.\n   */\n  disableTypography: PropTypes.bool,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * A text or an element to be used in an enclosing label element.\n   */\n  label: PropTypes.node,\n  /**\n   * The position of the label.\n   * @default 'end'\n   */\n  labelPlacement: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n  /**\n   * @ignore\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when the state is changed.\n   *\n   * @param {React.SyntheticEvent} event The event source of the callback.\n   * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n   */\n  onChange: PropTypes.func,\n  /**\n   * If `true`, the label will indicate that the `input` is required.\n   */\n  required: PropTypes.bool,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    typography: PropTypes.object\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The value of the component.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormHelperTextUtilityClasses(slot) {\n  return generateUtilityClass('MuiFormHelperText', slot);\n}\nconst formHelperTextClasses = generateUtilityClasses('MuiFormHelperText', ['root', 'error', 'disabled', 'sizeSmall', 'sizeMedium', 'contained', 'focused', 'filled', 'required']);\nexport default formHelperTextClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _span;\nconst _excluded = [\"children\", \"className\", \"component\", \"disabled\", \"error\", \"filled\", \"focused\", \"margin\", \"required\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport formControlState from '../FormControl/formControlState';\nimport useFormControl from '../FormControl/useFormControl';\nimport styled from '../styles/styled';\nimport capitalize from '../utils/capitalize';\nimport formHelperTextClasses, { getFormHelperTextUtilityClasses } from './formHelperTextClasses';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    contained,\n    size,\n    disabled,\n    error,\n    filled,\n    focused,\n    required\n  } = ownerState;\n  const slots = {\n    root: ['root', disabled && 'disabled', error && 'error', size && `size${capitalize(size)}`, contained && 'contained', focused && 'focused', filled && 'filled', required && 'required']\n  };\n  return composeClasses(slots, getFormHelperTextUtilityClasses, classes);\n};\nconst FormHelperTextRoot = styled('p', {\n  name: 'MuiFormHelperText',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.size && styles[`size${capitalize(ownerState.size)}`], ownerState.contained && styles.contained, ownerState.filled && styles.filled];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  color: (theme.vars || theme).palette.text.secondary\n}, theme.typography.caption, {\n  textAlign: 'left',\n  marginTop: 3,\n  marginRight: 0,\n  marginBottom: 0,\n  marginLeft: 0,\n  [`&.${formHelperTextClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.text.disabled\n  },\n  [`&.${formHelperTextClasses.error}`]: {\n    color: (theme.vars || theme).palette.error.main\n  }\n}, ownerState.size === 'small' && {\n  marginTop: 4\n}, ownerState.contained && {\n  marginLeft: 14,\n  marginRight: 14\n}));\nconst FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFormHelperText'\n  });\n  const {\n      children,\n      className,\n      component = 'p'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const muiFormControl = useFormControl();\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['variant', 'size', 'disabled', 'error', 'filled', 'focused', 'required']\n  });\n  const ownerState = _extends({}, props, {\n    component,\n    contained: fcs.variant === 'filled' || fcs.variant === 'outlined',\n    variant: fcs.variant,\n    size: fcs.size,\n    disabled: fcs.disabled,\n    error: fcs.error,\n    filled: fcs.filled,\n    focused: fcs.focused,\n    required: fcs.required\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(FormHelperTextRoot, _extends({\n    as: component,\n    ownerState: ownerState,\n    className: clsx(classes.root, className),\n    ref: ref\n  }, other, {\n    children: children === ' ' ? // notranslate needed while Google Translate will not fix zero-width space issue\n    _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n      className: \"notranslate\",\n      children: \"\\u200B\"\n    })) : children\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? FormHelperText.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   *\n   * If `' '` is provided, the component reserves one line height for displaying a future message.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the helper text should be displayed in a disabled state.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, helper text should be displayed in an error state.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the helper text should use filled classes key.\n   */\n  filled: PropTypes.bool,\n  /**\n   * If `true`, the helper text should use focused classes key.\n   */\n  focused: PropTypes.bool,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   */\n  margin: PropTypes.oneOf(['dense']),\n  /**\n   * If `true`, the helper text should use required classes key.\n   */\n  required: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default FormHelperText;","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst GridContext = /*#__PURE__*/React.createContext();\nif (process.env.NODE_ENV !== 'production') {\n  GridContext.displayName = 'GridContext';\n}\nexport default GridContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getGridUtilityClass(slot) {\n  return generateUtilityClass('MuiGrid', slot);\n}\nconst SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nconst DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];\nconst WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];\nconst GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\nconst gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container', 'item', 'zeroMinWidth',\n// spacings\n...SPACINGS.map(spacing => `spacing-xs-${spacing}`),\n// direction values\n...DIRECTIONS.map(direction => `direction-xs-${direction}`),\n// wrap values\n...WRAPS.map(wrap => `wrap-xs-${wrap}`),\n// grid sizes for all breakpoints\n...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);\nexport default gridClasses;","'use client';\n\n// A grid component using the following libs as inspiration.\n//\n// For the implementation:\n// - https://getbootstrap.com/docs/4.3/layout/grid/\n// - https://github.com/kristoferjoseph/flexboxgrid/blob/master/src/css/flexboxgrid.css\n// - https://github.com/roylee0704/react-flexbox-grid\n// - https://material.angularjs.org/latest/layout/introduction\n//\n// Follow this flexbox Guide to better understand the underlying model:\n// - https://css-tricks.com/snippets/css/a-guide-to-flexbox/\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"columns\", \"columnSpacing\", \"component\", \"container\", \"direction\", \"item\", \"rowSpacing\", \"spacing\", \"wrap\", \"zeroMinWidth\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';\nimport { extendSxProp } from '@mui/system/styleFunctionSx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport requirePropFactory from '../utils/requirePropFactory';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport useTheme from '../styles/useTheme';\nimport GridContext from './GridContext';\nimport gridClasses, { getGridUtilityClass } from './gridClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getOffset(val) {\n  const parse = parseFloat(val);\n  return `${parse}${String(val).replace(String(parse), '') || 'px'}`;\n}\nexport function generateGrid({\n  theme,\n  ownerState\n}) {\n  let size;\n  return theme.breakpoints.keys.reduce((globalStyles, breakpoint) => {\n    // Use side effect over immutability for better performance.\n    let styles = {};\n    if (ownerState[breakpoint]) {\n      size = ownerState[breakpoint];\n    }\n    if (!size) {\n      return globalStyles;\n    }\n    if (size === true) {\n      // For the auto layouting\n      styles = {\n        flexBasis: 0,\n        flexGrow: 1,\n        maxWidth: '100%'\n      };\n    } else if (size === 'auto') {\n      styles = {\n        flexBasis: 'auto',\n        flexGrow: 0,\n        flexShrink: 0,\n        maxWidth: 'none',\n        width: 'auto'\n      };\n    } else {\n      const columnsBreakpointValues = resolveBreakpointValues({\n        values: ownerState.columns,\n        breakpoints: theme.breakpoints.values\n      });\n      const columnValue = typeof columnsBreakpointValues === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues;\n      if (columnValue === undefined || columnValue === null) {\n        return globalStyles;\n      }\n      // Keep 7 significant numbers.\n      const width = `${Math.round(size / columnValue * 10e7) / 10e5}%`;\n      let more = {};\n      if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {\n        const themeSpacing = theme.spacing(ownerState.columnSpacing);\n        if (themeSpacing !== '0px') {\n          const fullWidth = `calc(${width} + ${getOffset(themeSpacing)})`;\n          more = {\n            flexBasis: fullWidth,\n            maxWidth: fullWidth\n          };\n        }\n      }\n\n      // Close to the bootstrap implementation:\n      // https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41\n      styles = _extends({\n        flexBasis: width,\n        flexGrow: 0,\n        maxWidth: width\n      }, more);\n    }\n\n    // No need for a media query for the first size.\n    if (theme.breakpoints.values[breakpoint] === 0) {\n      Object.assign(globalStyles, styles);\n    } else {\n      globalStyles[theme.breakpoints.up(breakpoint)] = styles;\n    }\n    return globalStyles;\n  }, {});\n}\nexport function generateDirection({\n  theme,\n  ownerState\n}) {\n  const directionValues = resolveBreakpointValues({\n    values: ownerState.direction,\n    breakpoints: theme.breakpoints.values\n  });\n  return handleBreakpoints({\n    theme\n  }, directionValues, propValue => {\n    const output = {\n      flexDirection: propValue\n    };\n    if (propValue.indexOf('column') === 0) {\n      output[`& > .${gridClasses.item}`] = {\n        maxWidth: 'none'\n      };\n    }\n    return output;\n  });\n}\n\n/**\n * Extracts zero value breakpoint keys before a non-zero value breakpoint key.\n * @example { xs: 0, sm: 0, md: 2, lg: 0, xl: 0 } or [0, 0, 2, 0, 0]\n * @returns [xs, sm]\n */\nfunction extractZeroValueBreakpointKeys({\n  breakpoints,\n  values\n}) {\n  let nonZeroKey = '';\n  Object.keys(values).forEach(key => {\n    if (nonZeroKey !== '') {\n      return;\n    }\n    if (values[key] !== 0) {\n      nonZeroKey = key;\n    }\n  });\n  const sortedBreakpointKeysByValue = Object.keys(breakpoints).sort((a, b) => {\n    return breakpoints[a] - breakpoints[b];\n  });\n  return sortedBreakpointKeysByValue.slice(0, sortedBreakpointKeysByValue.indexOf(nonZeroKey));\n}\nexport function generateRowGap({\n  theme,\n  ownerState\n}) {\n  const {\n    container,\n    rowSpacing\n  } = ownerState;\n  let styles = {};\n  if (container && rowSpacing !== 0) {\n    const rowSpacingValues = resolveBreakpointValues({\n      values: rowSpacing,\n      breakpoints: theme.breakpoints.values\n    });\n    let zeroValueBreakpointKeys;\n    if (typeof rowSpacingValues === 'object') {\n      zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({\n        breakpoints: theme.breakpoints.values,\n        values: rowSpacingValues\n      });\n    }\n    styles = handleBreakpoints({\n      theme\n    }, rowSpacingValues, (propValue, breakpoint) => {\n      var _zeroValueBreakpointK;\n      const themeSpacing = theme.spacing(propValue);\n      if (themeSpacing !== '0px') {\n        return {\n          marginTop: `-${getOffset(themeSpacing)}`,\n          [`& > .${gridClasses.item}`]: {\n            paddingTop: getOffset(themeSpacing)\n          }\n        };\n      }\n      if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {\n        return {};\n      }\n      return {\n        marginTop: 0,\n        [`& > .${gridClasses.item}`]: {\n          paddingTop: 0\n        }\n      };\n    });\n  }\n  return styles;\n}\nexport function generateColumnGap({\n  theme,\n  ownerState\n}) {\n  const {\n    container,\n    columnSpacing\n  } = ownerState;\n  let styles = {};\n  if (container && columnSpacing !== 0) {\n    const columnSpacingValues = resolveBreakpointValues({\n      values: columnSpacing,\n      breakpoints: theme.breakpoints.values\n    });\n    let zeroValueBreakpointKeys;\n    if (typeof columnSpacingValues === 'object') {\n      zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({\n        breakpoints: theme.breakpoints.values,\n        values: columnSpacingValues\n      });\n    }\n    styles = handleBreakpoints({\n      theme\n    }, columnSpacingValues, (propValue, breakpoint) => {\n      var _zeroValueBreakpointK2;\n      const themeSpacing = theme.spacing(propValue);\n      if (themeSpacing !== '0px') {\n        return {\n          width: `calc(100% + ${getOffset(themeSpacing)})`,\n          marginLeft: `-${getOffset(themeSpacing)}`,\n          [`& > .${gridClasses.item}`]: {\n            paddingLeft: getOffset(themeSpacing)\n          }\n        };\n      }\n      if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {\n        return {};\n      }\n      return {\n        width: '100%',\n        marginLeft: 0,\n        [`& > .${gridClasses.item}`]: {\n          paddingLeft: 0\n        }\n      };\n    });\n  }\n  return styles;\n}\nexport function resolveSpacingStyles(spacing, breakpoints, styles = {}) {\n  // undefined/null or `spacing` <= 0\n  if (!spacing || spacing <= 0) {\n    return [];\n  }\n  // in case of string/number `spacing`\n  if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {\n    return [styles[`spacing-xs-${String(spacing)}`]];\n  }\n  // in case of object `spacing`\n  const spacingStyles = [];\n  breakpoints.forEach(breakpoint => {\n    const value = spacing[breakpoint];\n    if (Number(value) > 0) {\n      spacingStyles.push(styles[`spacing-${breakpoint}-${String(value)}`]);\n    }\n  });\n  return spacingStyles;\n}\n\n// Default CSS values\n// flex: '0 1 auto',\n// flexDirection: 'row',\n// alignItems: 'flex-start',\n// flexWrap: 'nowrap',\n// justifyContent: 'flex-start',\nconst GridRoot = styled('div', {\n  name: 'MuiGrid',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    const {\n      container,\n      direction,\n      item,\n      spacing,\n      wrap,\n      zeroMinWidth,\n      breakpoints\n    } = ownerState;\n    let spacingStyles = [];\n\n    // in case of grid item\n    if (container) {\n      spacingStyles = resolveSpacingStyles(spacing, breakpoints, styles);\n    }\n    const breakpointsStyles = [];\n    breakpoints.forEach(breakpoint => {\n      const value = ownerState[breakpoint];\n      if (value) {\n        breakpointsStyles.push(styles[`grid-${breakpoint}-${String(value)}`]);\n      }\n    });\n    return [styles.root, container && styles.container, item && styles.item, zeroMinWidth && styles.zeroMinWidth, ...spacingStyles, direction !== 'row' && styles[`direction-xs-${String(direction)}`], wrap !== 'wrap' && styles[`wrap-xs-${String(wrap)}`], ...breakpointsStyles];\n  }\n})(({\n  ownerState\n}) => _extends({\n  boxSizing: 'border-box'\n}, ownerState.container && {\n  display: 'flex',\n  flexWrap: 'wrap',\n  width: '100%'\n}, ownerState.item && {\n  margin: 0 // For instance, it's useful when used with a `figure` element.\n}, ownerState.zeroMinWidth && {\n  minWidth: 0\n}, ownerState.wrap !== 'wrap' && {\n  flexWrap: ownerState.wrap\n}), generateDirection, generateRowGap, generateColumnGap, generateGrid);\nexport function resolveSpacingClasses(spacing, breakpoints) {\n  // undefined/null or `spacing` <= 0\n  if (!spacing || spacing <= 0) {\n    return [];\n  }\n  // in case of string/number `spacing`\n  if (typeof spacing === 'string' && !Number.isNaN(Number(spacing)) || typeof spacing === 'number') {\n    return [`spacing-xs-${String(spacing)}`];\n  }\n  // in case of object `spacing`\n  const classes = [];\n  breakpoints.forEach(breakpoint => {\n    const value = spacing[breakpoint];\n    if (Number(value) > 0) {\n      const className = `spacing-${breakpoint}-${String(value)}`;\n      classes.push(className);\n    }\n  });\n  return classes;\n}\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    container,\n    direction,\n    item,\n    spacing,\n    wrap,\n    zeroMinWidth,\n    breakpoints\n  } = ownerState;\n  let spacingClasses = [];\n\n  // in case of grid item\n  if (container) {\n    spacingClasses = resolveSpacingClasses(spacing, breakpoints);\n  }\n  const breakpointsClasses = [];\n  breakpoints.forEach(breakpoint => {\n    const value = ownerState[breakpoint];\n    if (value) {\n      breakpointsClasses.push(`grid-${breakpoint}-${String(value)}`);\n    }\n  });\n  const slots = {\n    root: ['root', container && 'container', item && 'item', zeroMinWidth && 'zeroMinWidth', ...spacingClasses, direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...breakpointsClasses]\n  };\n  return composeClasses(slots, getGridUtilityClass, classes);\n};\nconst Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n  const themeProps = useDefaultProps({\n    props: inProps,\n    name: 'MuiGrid'\n  });\n  const {\n    breakpoints\n  } = useTheme();\n  const props = extendSxProp(themeProps);\n  const {\n      className,\n      columns: columnsProp,\n      columnSpacing: columnSpacingProp,\n      component = 'div',\n      container = false,\n      direction = 'row',\n      item = false,\n      rowSpacing: rowSpacingProp,\n      spacing = 0,\n      wrap = 'wrap',\n      zeroMinWidth = false\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const rowSpacing = rowSpacingProp || spacing;\n  const columnSpacing = columnSpacingProp || spacing;\n  const columnsContext = React.useContext(GridContext);\n\n  // columns set with default breakpoint unit of 12\n  const columns = container ? columnsProp || 12 : columnsContext;\n  const breakpointsValues = {};\n  const otherFiltered = _extends({}, other);\n  breakpoints.keys.forEach(breakpoint => {\n    if (other[breakpoint] != null) {\n      breakpointsValues[breakpoint] = other[breakpoint];\n      delete otherFiltered[breakpoint];\n    }\n  });\n  const ownerState = _extends({}, props, {\n    columns,\n    container,\n    direction,\n    item,\n    rowSpacing,\n    columnSpacing,\n    wrap,\n    zeroMinWidth,\n    spacing\n  }, breakpointsValues, {\n    breakpoints: breakpoints.keys\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(GridContext.Provider, {\n    value: columns,\n    children: /*#__PURE__*/_jsx(GridRoot, _extends({\n      ownerState: ownerState,\n      className: clsx(classes.root, className),\n      as: component,\n      ref: ref\n    }, otherFiltered))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The number of columns.\n   * @default 12\n   */\n  columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n  /**\n   * Defines the horizontal space between the type `item` components.\n   * It overrides the value of the `spacing` prop.\n   */\n  columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the component will have the flex *container* behavior.\n   * You should be wrapping *items* with a *container*.\n   * @default false\n   */\n  container: PropTypes.bool,\n  /**\n   * Defines the `flex-direction` style property.\n   * It is applied for all screen sizes.\n   * @default 'row'\n   */\n  direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n  /**\n   * If `true`, the component will have the flex *item* behavior.\n   * You should be wrapping *items* with a *container*.\n   * @default false\n   */\n  item: PropTypes.bool,\n  /**\n   * If a number, it sets the number of columns the grid item uses.\n   * It can't be greater than the total number of columns of the container (12 by default).\n   * If 'auto', the grid item's width matches its content.\n   * If false, the prop is ignored.\n   * If true, the grid item's width grows to use the space available in the grid container.\n   * The value is applied for the `lg` breakpoint and wider screens if not overridden.\n   * @default false\n   */\n  lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),\n  /**\n   * If a number, it sets the number of columns the grid item uses.\n   * It can't be greater than the total number of columns of the container (12 by default).\n   * If 'auto', the grid item's width matches its content.\n   * If false, the prop is ignored.\n   * If true, the grid item's width grows to use the space available in the grid container.\n   * The value is applied for the `md` breakpoint and wider screens if not overridden.\n   * @default false\n   */\n  md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),\n  /**\n   * Defines the vertical space between the type `item` components.\n   * It overrides the value of the `spacing` prop.\n   */\n  rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * If a number, it sets the number of columns the grid item uses.\n   * It can't be greater than the total number of columns of the container (12 by default).\n   * If 'auto', the grid item's width matches its content.\n   * If false, the prop is ignored.\n   * If true, the grid item's width grows to use the space available in the grid container.\n   * The value is applied for the `sm` breakpoint and wider screens if not overridden.\n   * @default false\n   */\n  sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),\n  /**\n   * Defines the space between the type `item` components.\n   * It can only be used on a type `container` component.\n   * @default 0\n   */\n  spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Defines the `flex-wrap` style property.\n   * It's applied for all screen sizes.\n   * @default 'wrap'\n   */\n  wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),\n  /**\n   * If a number, it sets the number of columns the grid item uses.\n   * It can't be greater than the total number of columns of the container (12 by default).\n   * If 'auto', the grid item's width matches its content.\n   * If false, the prop is ignored.\n   * If true, the grid item's width grows to use the space available in the grid container.\n   * The value is applied for the `xl` breakpoint and wider screens if not overridden.\n   * @default false\n   */\n  xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),\n  /**\n   * If a number, it sets the number of columns the grid item uses.\n   * It can't be greater than the total number of columns of the container (12 by default).\n   * If 'auto', the grid item's width matches its content.\n   * If false, the prop is ignored.\n   * If true, the grid item's width grows to use the space available in the grid container.\n   * The value is applied for all the screen sizes with the lowest priority.\n   * @default false\n   */\n  xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),\n  /**\n   * If `true`, it sets `min-width: 0` on the item.\n   * Refer to the limitations section of the documentation to better understand the use case.\n   * @default false\n   */\n  zeroMinWidth: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  const requireProp = requirePropFactory('Grid', Grid);\n  // eslint-disable-next-line no-useless-concat\n  Grid['propTypes' + ''] = _extends({}, Grid.propTypes, {\n    direction: requireProp('container'),\n    lg: requireProp('item'),\n    md: requireProp('item'),\n    sm: requireProp('item'),\n    spacing: requireProp('container'),\n    wrap: requireProp('container'),\n    xs: requireProp('item'),\n    zeroMinWidth: requireProp('item')\n  });\n}\nexport default Grid;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getIconButtonUtilityClass(slot) {\n  return generateUtilityClass('MuiIconButton', slot);\n}\nconst iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);\nexport default iconButtonClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"edge\", \"children\", \"className\", \"color\", \"disabled\", \"disableFocusRipple\", \"size\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport iconButtonClasses, { getIconButtonUtilityClass } from './iconButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disabled,\n    color,\n    edge,\n    size\n  } = ownerState;\n  const slots = {\n    root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]\n  };\n  return composeClasses(slots, getIconButtonUtilityClass, classes);\n};\nconst IconButtonRoot = styled(ButtonBase, {\n  name: 'MuiIconButton',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  textAlign: 'center',\n  flex: '0 0 auto',\n  fontSize: theme.typography.pxToRem(24),\n  padding: 8,\n  borderRadius: '50%',\n  overflow: 'visible',\n  // Explicitly set the default value to solve a bug on IE11.\n  color: (theme.vars || theme).palette.action.active,\n  transition: theme.transitions.create('background-color', {\n    duration: theme.transitions.duration.shortest\n  })\n}, !ownerState.disableRipple && {\n  '&:hover': {\n    backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: 'transparent'\n    }\n  }\n}, ownerState.edge === 'start' && {\n  marginLeft: ownerState.size === 'small' ? -3 : -12\n}, ownerState.edge === 'end' && {\n  marginRight: ownerState.size === 'small' ? -3 : -12\n}), ({\n  theme,\n  ownerState\n}) => {\n  var _palette;\n  const palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];\n  return _extends({}, ownerState.color === 'inherit' && {\n    color: 'inherit'\n  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({\n    color: palette == null ? void 0 : palette.main\n  }, !ownerState.disableRipple && {\n    '&:hover': _extends({}, palette && {\n      backgroundColor: theme.vars ? `rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(palette.main, theme.palette.action.hoverOpacity)\n    }, {\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        backgroundColor: 'transparent'\n      }\n    })\n  }), ownerState.size === 'small' && {\n    padding: 5,\n    fontSize: theme.typography.pxToRem(18)\n  }, ownerState.size === 'large' && {\n    padding: 12,\n    fontSize: theme.typography.pxToRem(28)\n  }, {\n    [`&.${iconButtonClasses.disabled}`]: {\n      backgroundColor: 'transparent',\n      color: (theme.vars || theme).palette.action.disabled\n    }\n  });\n});\n\n/**\n * Refer to the [Icons](/material-ui/icons/) section of the documentation\n * regarding the available icon options.\n */\nconst IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiIconButton'\n  });\n  const {\n      edge = false,\n      children,\n      className,\n      color = 'default',\n      disabled = false,\n      disableFocusRipple = false,\n      size = 'medium'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    edge,\n    color,\n    disabled,\n    disableFocusRipple,\n    size\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(IconButtonRoot, _extends({\n    className: clsx(classes.root, className),\n    centerRipple: true,\n    focusRipple: !disableFocusRipple,\n    disabled: disabled,\n    ref: ref\n  }, other, {\n    ownerState: ownerState,\n    children: children\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? IconButton.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The icon to display.\n   */\n  children: chainPropTypes(PropTypes.node, props => {\n    const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);\n    if (found) {\n      return new Error(['MUI: You are providing an onClick event listener to a child of a button element.', 'Prefer applying it to the IconButton directly.', 'This guarantees that the whole <button> will be responsive to click events.'].join('\\n'));\n    }\n    return null;\n  }),\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'default'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the  keyboard focus ripple is disabled.\n   * @default false\n   */\n  disableFocusRipple: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   *\n   * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n   * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * If given, uses a negative margin to counteract the padding on one\n   * side (this is often helpful for aligning the left or right\n   * side of the icon with content above or below, without ruining the border\n   * size and shape).\n   * @default false\n   */\n  edge: PropTypes.oneOf(['end', 'start', false]),\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense button styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default IconButton;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from '../InputBase';\nexport function getInputUtilityClass(slot) {\n  return generateUtilityClass('MuiInput', slot);\n}\nconst inputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiInput', ['root', 'underline', 'input']));\nexport default inputClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"disableUnderline\", \"components\", \"componentsProps\", \"fullWidth\", \"inputComponent\", \"multiline\", \"slotProps\", \"slots\", \"type\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport deepmerge from '@mui/utils/deepmerge';\nimport refType from '@mui/utils/refType';\nimport InputBase from '../InputBase';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport inputClasses, { getInputUtilityClass } from './inputClasses';\nimport { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disableUnderline\n  } = ownerState;\n  const slots = {\n    root: ['root', !disableUnderline && 'underline'],\n    input: ['input']\n  };\n  const composedClasses = composeClasses(slots, getInputUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst InputRoot = styled(InputBaseRoot, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiInput',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [...inputBaseRootOverridesResolver(props, styles), !ownerState.disableUnderline && styles.underline];\n  }\n})(({\n  theme,\n  ownerState\n}) => {\n  const light = theme.palette.mode === 'light';\n  let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n  if (theme.vars) {\n    bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;\n  }\n  return _extends({\n    position: 'relative'\n  }, ownerState.formControl && {\n    'label + &': {\n      marginTop: 16\n    }\n  }, !ownerState.disableUnderline && {\n    '&::after': {\n      borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,\n      left: 0,\n      bottom: 0,\n      // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n      content: '\"\"',\n      position: 'absolute',\n      right: 0,\n      transform: 'scaleX(0)',\n      transition: theme.transitions.create('transform', {\n        duration: theme.transitions.duration.shorter,\n        easing: theme.transitions.easing.easeOut\n      }),\n      pointerEvents: 'none' // Transparent to the hover style.\n    },\n    [`&.${inputClasses.focused}:after`]: {\n      // translateX(0) is a workaround for Safari transform scale bug\n      // See https://github.com/mui/material-ui/issues/31766\n      transform: 'scaleX(1) translateX(0)'\n    },\n    [`&.${inputClasses.error}`]: {\n      '&::before, &::after': {\n        borderBottomColor: (theme.vars || theme).palette.error.main\n      }\n    },\n    '&::before': {\n      borderBottom: `1px solid ${bottomLineColor}`,\n      left: 0,\n      bottom: 0,\n      // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n      content: '\"\\\\00a0\"',\n      position: 'absolute',\n      right: 0,\n      transition: theme.transitions.create('border-bottom-color', {\n        duration: theme.transitions.duration.shorter\n      }),\n      pointerEvents: 'none' // Transparent to the hover style.\n    },\n    [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]: {\n      borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,\n      // Reset on touch devices, it doesn't add specificity\n      '@media (hover: none)': {\n        borderBottom: `1px solid ${bottomLineColor}`\n      }\n    },\n    [`&.${inputClasses.disabled}:before`]: {\n      borderBottomStyle: 'dotted'\n    }\n  });\n});\nconst InputInput = styled(InputBaseInput, {\n  name: 'MuiInput',\n  slot: 'Input',\n  overridesResolver: inputBaseInputOverridesResolver\n})({});\nconst Input = /*#__PURE__*/React.forwardRef(function Input(inProps, ref) {\n  var _ref, _slots$root, _ref2, _slots$input;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiInput'\n  });\n  const {\n      disableUnderline,\n      components = {},\n      componentsProps: componentsPropsProp,\n      fullWidth = false,\n      inputComponent = 'input',\n      multiline = false,\n      slotProps,\n      slots = {},\n      type = 'text'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const classes = useUtilityClasses(props);\n  const ownerState = {\n    disableUnderline\n  };\n  const inputComponentsProps = {\n    root: {\n      ownerState\n    }\n  };\n  const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp, inputComponentsProps) : inputComponentsProps;\n  const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : InputRoot;\n  const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : InputInput;\n  return /*#__PURE__*/_jsx(InputBase, _extends({\n    slots: {\n      root: RootSlot,\n      input: InputSlot\n    },\n    slotProps: componentsProps,\n    fullWidth: fullWidth,\n    inputComponent: inputComponent,\n    multiline: multiline,\n    ref: ref,\n    type: type\n  }, other, {\n    classes: classes\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Input.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * This prop helps users to fill forms faster, especially on mobile devices.\n   * The name can be confusing, as it's more like an autofill.\n   * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n   */\n  autoComplete: PropTypes.string,\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Input: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `slotProps` prop.\n   * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the component is disabled.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the `input` will not have an underline.\n   */\n  disableUnderline: PropTypes.bool,\n  /**\n   * End `InputAdornment` for this component.\n   */\n  endAdornment: PropTypes.node,\n  /**\n   * If `true`, the `input` will indicate an error.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the `input` will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * The component used for the `input` element.\n   * Either a string to use a HTML element or a component.\n   * @default 'input'\n   */\n  inputComponent: PropTypes.elementType,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   * @default {}\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n   */\n  margin: PropTypes.oneOf(['dense', 'none']),\n  /**\n   * Maximum number of rows to display when multiline option is set to true.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display when multiline option is set to true.\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.\n   * @default false\n   */\n  multiline: PropTypes.bool,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when the value is changed.\n   *\n   * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * The short hint displayed in the `input` before the user enters a value.\n   */\n  placeholder: PropTypes.string,\n  /**\n   * It prevents the user from changing the value of the field\n   * (not from interacting with the field).\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * If `true`, the `input` element is required.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  required: PropTypes.bool,\n  /**\n   * Number of rows to display when multiline option is set to true.\n   */\n  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `components` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * Start `InputAdornment` for this component.\n   */\n  startAdornment: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n   * @default 'text'\n   */\n  type: PropTypes.string,\n  /**\n   * The value of the `input` element, required for a controlled component.\n   */\n  value: PropTypes.any\n} : void 0;\nInput.muiName = 'Input';\nexport default Input;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputAdornmentUtilityClass(slot) {\n  return generateUtilityClass('MuiInputAdornment', slot);\n}\nconst inputAdornmentClasses = generateUtilityClasses('MuiInputAdornment', ['root', 'filled', 'standard', 'outlined', 'positionStart', 'positionEnd', 'disablePointerEvents', 'hiddenLabel', 'sizeSmall']);\nexport default inputAdornmentClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _span;\nconst _excluded = [\"children\", \"className\", \"component\", \"disablePointerEvents\", \"disableTypography\", \"position\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport Typography from '../Typography';\nimport FormControlContext from '../FormControl/FormControlContext';\nimport useFormControl from '../FormControl/useFormControl';\nimport styled from '../styles/styled';\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from './inputAdornmentClasses';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.root, styles[`position${capitalize(ownerState.position)}`], ownerState.disablePointerEvents === true && styles.disablePointerEvents, styles[ownerState.variant]];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disablePointerEvents,\n    hiddenLabel,\n    position,\n    size,\n    variant\n  } = ownerState;\n  const slots = {\n    root: ['root', disablePointerEvents && 'disablePointerEvents', position && `position${capitalize(position)}`, variant, hiddenLabel && 'hiddenLabel', size && `size${capitalize(size)}`]\n  };\n  return composeClasses(slots, getInputAdornmentUtilityClass, classes);\n};\nconst InputAdornmentRoot = styled('div', {\n  name: 'MuiInputAdornment',\n  slot: 'Root',\n  overridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  display: 'flex',\n  height: '0.01em',\n  // Fix IE11 flexbox alignment. To remove at some point.\n  maxHeight: '2em',\n  alignItems: 'center',\n  whiteSpace: 'nowrap',\n  color: (theme.vars || theme).palette.action.active\n}, ownerState.variant === 'filled' && {\n  // Styles applied to the root element if `variant=\"filled\"`.\n  [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n    marginTop: 16\n  }\n}, ownerState.position === 'start' && {\n  // Styles applied to the root element if `position=\"start\"`.\n  marginRight: 8\n}, ownerState.position === 'end' && {\n  // Styles applied to the root element if `position=\"end\"`.\n  marginLeft: 8\n}, ownerState.disablePointerEvents === true && {\n  // Styles applied to the root element if `disablePointerEvents={true}`.\n  pointerEvents: 'none'\n}));\nconst InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiInputAdornment'\n  });\n  const {\n      children,\n      className,\n      component = 'div',\n      disablePointerEvents = false,\n      disableTypography = false,\n      position,\n      variant: variantProp\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const muiFormControl = useFormControl() || {};\n  let variant = variantProp;\n  if (variantProp && muiFormControl.variant) {\n    if (process.env.NODE_ENV !== 'production') {\n      if (variantProp === muiFormControl.variant) {\n        console.error('MUI: The `InputAdornment` variant infers the variant prop ' + 'you do not have to provide one.');\n      }\n    }\n  }\n  if (muiFormControl && !variant) {\n    variant = muiFormControl.variant;\n  }\n  const ownerState = _extends({}, props, {\n    hiddenLabel: muiFormControl.hiddenLabel,\n    size: muiFormControl.size,\n    disablePointerEvents,\n    position,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n    value: null,\n    children: /*#__PURE__*/_jsx(InputAdornmentRoot, _extends({\n      as: component,\n      ownerState: ownerState,\n      className: clsx(classes.root, className),\n      ref: ref\n    }, other, {\n      children: typeof children === 'string' && !disableTypography ? /*#__PURE__*/_jsx(Typography, {\n        color: \"text.secondary\",\n        children: children\n      }) : /*#__PURE__*/_jsxs(React.Fragment, {\n        children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx(\"span\", {\n          className: \"notranslate\",\n          children: \"\\u200B\"\n        }))) : null, children]\n      })\n    }))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputAdornment.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component, normally an `IconButton` or string.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Disable pointer events on the root.\n   * This allows for the content of the adornment to focus the `input` on click.\n   * @default false\n   */\n  disablePointerEvents: PropTypes.bool,\n  /**\n   * If children is a string then disable wrapping in a Typography component.\n   * @default false\n   */\n  disableTypography: PropTypes.bool,\n  /**\n   * The position this adornment should appear relative to the `Input`.\n   */\n  position: PropTypes.oneOf(['end', 'start']).isRequired,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * Note: If you are using the `TextField` component or the `FormControl` component\n   * you do not have to set this manually.\n   */\n  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputAdornment;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onChange\", \"maxRows\", \"minRows\", \"style\", \"value\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { unstable_debounce as debounce, unstable_useForkRef as useForkRef, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useEventCallback as useEventCallback, unstable_ownerWindow as ownerWindow } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction getStyleValue(value) {\n  return parseInt(value, 10) || 0;\n}\nconst styles = {\n  shadow: {\n    // Visibility needed to hide the extra text area on iPads\n    visibility: 'hidden',\n    // Remove from the content flow\n    position: 'absolute',\n    // Ignore the scrollbar width\n    overflow: 'hidden',\n    height: 0,\n    top: 0,\n    left: 0,\n    // Create a new layer, increase the isolation of the computed values\n    transform: 'translateZ(0)'\n  }\n};\nfunction isObjectEmpty(object) {\n  // eslint-disable-next-line\n  for (const _ in object) {\n    return false;\n  }\n  return true;\n}\nfunction isEmpty(obj) {\n  return isObjectEmpty(obj) || obj.outerHeightStyle === 0 && !obj.overflowing;\n}\n\n/**\n *\n * Demos:\n *\n * - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)\n *\n * API:\n *\n * - [TextareaAutosize API](https://mui.com/material-ui/api/textarea-autosize/)\n */\nconst TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize(props, forwardedRef) {\n  const {\n      onChange,\n      maxRows,\n      minRows = 1,\n      style,\n      value\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const {\n    current: isControlled\n  } = React.useRef(value != null);\n  const textareaRef = React.useRef(null);\n  const handleRef = useForkRef(forwardedRef, textareaRef);\n  const heightRef = React.useRef(null);\n  const hiddenTextareaRef = React.useRef(null);\n  const calculateTextareaStyles = React.useCallback(() => {\n    const textarea = textareaRef.current;\n    const hiddenTextarea = hiddenTextareaRef.current;\n    if (!textarea || !hiddenTextarea) {\n      return undefined;\n    }\n    const containerWindow = ownerWindow(textarea);\n    const computedStyle = containerWindow.getComputedStyle(textarea);\n\n    // If input's width is shrunk and it's not visible, don't sync height.\n    if (computedStyle.width === '0px') {\n      return {\n        outerHeightStyle: 0,\n        overflowing: false\n      };\n    }\n    hiddenTextarea.style.width = computedStyle.width;\n    hiddenTextarea.value = textarea.value || props.placeholder || 'x';\n    if (hiddenTextarea.value.slice(-1) === '\\n') {\n      // Certain fonts which overflow the line height will cause the textarea\n      // to report a different scrollHeight depending on whether the last line\n      // is empty. Make it non-empty to avoid this issue.\n      hiddenTextarea.value += ' ';\n    }\n    const boxSizing = computedStyle.boxSizing;\n    const padding = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);\n    const border = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);\n\n    // The height of the inner content\n    const innerHeight = hiddenTextarea.scrollHeight;\n\n    // Measure height of a textarea with a single row\n    hiddenTextarea.value = 'x';\n    const singleRowHeight = hiddenTextarea.scrollHeight;\n\n    // The height of the outer content\n    let outerHeight = innerHeight;\n    if (minRows) {\n      outerHeight = Math.max(Number(minRows) * singleRowHeight, outerHeight);\n    }\n    if (maxRows) {\n      outerHeight = Math.min(Number(maxRows) * singleRowHeight, outerHeight);\n    }\n    outerHeight = Math.max(outerHeight, singleRowHeight);\n\n    // Take the box sizing into account for applying this value as a style.\n    const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);\n    const overflowing = Math.abs(outerHeight - innerHeight) <= 1;\n    return {\n      outerHeightStyle,\n      overflowing\n    };\n  }, [maxRows, minRows, props.placeholder]);\n  const didHeightChange = useEventCallback(() => {\n    const textarea = textareaRef.current;\n    const textareaStyles = calculateTextareaStyles();\n    if (!textarea || !textareaStyles || isEmpty(textareaStyles)) {\n      return false;\n    }\n    const outerHeightStyle = textareaStyles.outerHeightStyle;\n    return heightRef.current != null && heightRef.current !== outerHeightStyle;\n  });\n  const syncHeight = React.useCallback(() => {\n    const textarea = textareaRef.current;\n    const textareaStyles = calculateTextareaStyles();\n    if (!textarea || !textareaStyles || isEmpty(textareaStyles)) {\n      return;\n    }\n    const outerHeightStyle = textareaStyles.outerHeightStyle;\n    if (heightRef.current !== outerHeightStyle) {\n      heightRef.current = outerHeightStyle;\n      textarea.style.height = `${outerHeightStyle}px`;\n    }\n    textarea.style.overflow = textareaStyles.overflowing ? 'hidden' : '';\n  }, [calculateTextareaStyles]);\n  const frameRef = React.useRef(-1);\n  useEnhancedEffect(() => {\n    const debouncedHandleResize = debounce(syncHeight);\n    const textarea = textareaRef == null ? void 0 : textareaRef.current;\n    if (!textarea) {\n      return undefined;\n    }\n    const containerWindow = ownerWindow(textarea);\n    containerWindow.addEventListener('resize', debouncedHandleResize);\n    let resizeObserver;\n    if (typeof ResizeObserver !== 'undefined') {\n      resizeObserver = new ResizeObserver(() => {\n        if (didHeightChange()) {\n          // avoid \"ResizeObserver loop completed with undelivered notifications\" error\n          // by temporarily unobserving the textarea element while manipulating the height\n          // and reobserving one frame later\n          resizeObserver.unobserve(textarea);\n          cancelAnimationFrame(frameRef.current);\n          syncHeight();\n          frameRef.current = requestAnimationFrame(() => {\n            resizeObserver.observe(textarea);\n          });\n        }\n      });\n      resizeObserver.observe(textarea);\n    }\n    return () => {\n      debouncedHandleResize.clear();\n      cancelAnimationFrame(frameRef.current);\n      containerWindow.removeEventListener('resize', debouncedHandleResize);\n      if (resizeObserver) {\n        resizeObserver.disconnect();\n      }\n    };\n  }, [calculateTextareaStyles, syncHeight, didHeightChange]);\n  useEnhancedEffect(() => {\n    syncHeight();\n  });\n  const handleChange = event => {\n    if (!isControlled) {\n      syncHeight();\n    }\n    if (onChange) {\n      onChange(event);\n    }\n  };\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"textarea\", _extends({\n      value: value,\n      onChange: handleChange,\n      ref: handleRef\n      // Apply the rows prop to get a \"correct\" first SSR paint\n      ,\n      rows: minRows,\n      style: style\n    }, other)), /*#__PURE__*/_jsx(\"textarea\", {\n      \"aria-hidden\": true,\n      className: props.className,\n      readOnly: true,\n      ref: hiddenTextareaRef,\n      tabIndex: -1,\n      style: _extends({}, styles.shadow, style, {\n        paddingTop: 0,\n        paddingBottom: 0\n      })\n    })]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? TextareaAutosize.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * Maximum number of rows to display.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display.\n   * @default 1\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * @ignore\n   */\n  onChange: PropTypes.func,\n  /**\n   * @ignore\n   */\n  placeholder: PropTypes.string,\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * @ignore\n   */\n  value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string])\n} : void 0;\nexport default TextareaAutosize;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as SystemGlobalStyles } from '@mui/system';\nimport defaultTheme from '../styles/defaultTheme';\nimport THEME_ID from '../styles/identifier';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles(props) {\n  return /*#__PURE__*/_jsx(SystemGlobalStyles, _extends({}, props, {\n    defaultTheme: defaultTheme,\n    themeId: THEME_ID\n  }));\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The styles you want to apply globally.\n   */\n  styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool])\n} : void 0;\nexport default GlobalStyles;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"aria-describedby\", \"autoComplete\", \"autoFocus\", \"className\", \"color\", \"components\", \"componentsProps\", \"defaultValue\", \"disabled\", \"disableInjectingGlobalStyles\", \"endAdornment\", \"error\", \"fullWidth\", \"id\", \"inputComponent\", \"inputProps\", \"inputRef\", \"margin\", \"maxRows\", \"minRows\", \"multiline\", \"name\", \"onBlur\", \"onChange\", \"onClick\", \"onFocus\", \"onKeyDown\", \"onKeyUp\", \"placeholder\", \"readOnly\", \"renderSuffix\", \"rows\", \"size\", \"slotProps\", \"slots\", \"startAdornment\", \"type\", \"value\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport isHostComponent from '@mui/utils/isHostComponent';\nimport TextareaAutosize from '../TextareaAutosize';\nimport formControlState from '../FormControl/formControlState';\nimport FormControlContext from '../FormControl/FormControlContext';\nimport useFormControl from '../FormControl/useFormControl';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport capitalize from '../utils/capitalize';\nimport useForkRef from '../utils/useForkRef';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport GlobalStyles from '../GlobalStyles';\nimport { isFilled } from './utils';\nimport inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const rootOverridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.root, ownerState.formControl && styles.formControl, ownerState.startAdornment && styles.adornedStart, ownerState.endAdornment && styles.adornedEnd, ownerState.error && styles.error, ownerState.size === 'small' && styles.sizeSmall, ownerState.multiline && styles.multiline, ownerState.color && styles[`color${capitalize(ownerState.color)}`], ownerState.fullWidth && styles.fullWidth, ownerState.hiddenLabel && styles.hiddenLabel];\n};\nexport const inputOverridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    color,\n    disabled,\n    error,\n    endAdornment,\n    focused,\n    formControl,\n    fullWidth,\n    hiddenLabel,\n    multiline,\n    readOnly,\n    size,\n    startAdornment,\n    type\n  } = ownerState;\n  const slots = {\n    root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],\n    input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']\n  };\n  return composeClasses(slots, getInputBaseUtilityClass, classes);\n};\nexport const InputBaseRoot = styled('div', {\n  name: 'MuiInputBase',\n  slot: 'Root',\n  overridesResolver: rootOverridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({}, theme.typography.body1, {\n  color: (theme.vars || theme).palette.text.primary,\n  lineHeight: '1.4375em',\n  // 23px\n  boxSizing: 'border-box',\n  // Prevent padding issue with fullWidth.\n  position: 'relative',\n  cursor: 'text',\n  display: 'inline-flex',\n  alignItems: 'center',\n  [`&.${inputBaseClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.text.disabled,\n    cursor: 'default'\n  }\n}, ownerState.multiline && _extends({\n  padding: '4px 0 5px'\n}, ownerState.size === 'small' && {\n  paddingTop: 1\n}), ownerState.fullWidth && {\n  width: '100%'\n}));\nexport const InputBaseComponent = styled('input', {\n  name: 'MuiInputBase',\n  slot: 'Input',\n  overridesResolver: inputOverridesResolver\n})(({\n  theme,\n  ownerState\n}) => {\n  const light = theme.palette.mode === 'light';\n  const placeholder = _extends({\n    color: 'currentColor'\n  }, theme.vars ? {\n    opacity: theme.vars.opacity.inputPlaceholder\n  } : {\n    opacity: light ? 0.42 : 0.5\n  }, {\n    transition: theme.transitions.create('opacity', {\n      duration: theme.transitions.duration.shorter\n    })\n  });\n  const placeholderHidden = {\n    opacity: '0 !important'\n  };\n  const placeholderVisible = theme.vars ? {\n    opacity: theme.vars.opacity.inputPlaceholder\n  } : {\n    opacity: light ? 0.42 : 0.5\n  };\n  return _extends({\n    font: 'inherit',\n    letterSpacing: 'inherit',\n    color: 'currentColor',\n    padding: '4px 0 5px',\n    border: 0,\n    boxSizing: 'content-box',\n    background: 'none',\n    height: '1.4375em',\n    // Reset 23pxthe native input line-height\n    margin: 0,\n    // Reset for Safari\n    WebkitTapHighlightColor: 'transparent',\n    display: 'block',\n    // Make the flex item shrink with Firefox\n    minWidth: 0,\n    width: '100%',\n    // Fix IE11 width issue\n    animationName: 'mui-auto-fill-cancel',\n    animationDuration: '10ms',\n    '&::-webkit-input-placeholder': placeholder,\n    '&::-moz-placeholder': placeholder,\n    // Firefox 19+\n    '&:-ms-input-placeholder': placeholder,\n    // IE11\n    '&::-ms-input-placeholder': placeholder,\n    // Edge\n    '&:focus': {\n      outline: 0\n    },\n    // Reset Firefox invalid required input style\n    '&:invalid': {\n      boxShadow: 'none'\n    },\n    '&::-webkit-search-decoration': {\n      // Remove the padding when type=search.\n      WebkitAppearance: 'none'\n    },\n    // Show and hide the placeholder logic\n    [`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]: {\n      '&::-webkit-input-placeholder': placeholderHidden,\n      '&::-moz-placeholder': placeholderHidden,\n      // Firefox 19+\n      '&:-ms-input-placeholder': placeholderHidden,\n      // IE11\n      '&::-ms-input-placeholder': placeholderHidden,\n      // Edge\n      '&:focus::-webkit-input-placeholder': placeholderVisible,\n      '&:focus::-moz-placeholder': placeholderVisible,\n      // Firefox 19+\n      '&:focus:-ms-input-placeholder': placeholderVisible,\n      // IE11\n      '&:focus::-ms-input-placeholder': placeholderVisible // Edge\n    },\n    [`&.${inputBaseClasses.disabled}`]: {\n      opacity: 1,\n      // Reset iOS opacity\n      WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug\n    },\n    '&:-webkit-autofill': {\n      animationDuration: '5000s',\n      animationName: 'mui-auto-fill'\n    }\n  }, ownerState.size === 'small' && {\n    paddingTop: 1\n  }, ownerState.multiline && {\n    height: 'auto',\n    resize: 'none',\n    padding: 0,\n    paddingTop: 0\n  }, ownerState.type === 'search' && {\n    // Improve type search style.\n    MozAppearance: 'textfield'\n  });\n});\nconst inputGlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {\n  styles: {\n    '@keyframes mui-auto-fill': {\n      from: {\n        display: 'block'\n      }\n    },\n    '@keyframes mui-auto-fill-cancel': {\n      from: {\n        display: 'block'\n      }\n    }\n  }\n});\n\n/**\n * `InputBase` contains as few styles as possible.\n * It aims to be a simple building block for creating an input.\n * It contains a load of style reset and some state logic.\n */\nconst InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {\n  var _slotProps$input;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiInputBase'\n  });\n  const {\n      'aria-describedby': ariaDescribedby,\n      autoComplete,\n      autoFocus,\n      className,\n      components = {},\n      componentsProps = {},\n      defaultValue,\n      disabled,\n      disableInjectingGlobalStyles,\n      endAdornment,\n      fullWidth = false,\n      id,\n      inputComponent = 'input',\n      inputProps: inputPropsProp = {},\n      inputRef: inputRefProp,\n      maxRows,\n      minRows,\n      multiline = false,\n      name,\n      onBlur,\n      onChange,\n      onClick,\n      onFocus,\n      onKeyDown,\n      onKeyUp,\n      placeholder,\n      readOnly,\n      renderSuffix,\n      rows,\n      slotProps = {},\n      slots = {},\n      startAdornment,\n      type = 'text',\n      value: valueProp\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;\n  const {\n    current: isControlled\n  } = React.useRef(value != null);\n  const inputRef = React.useRef();\n  const handleInputRefWarning = React.useCallback(instance => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (instance && instance.nodeName !== 'INPUT' && !instance.focus) {\n        console.error(['MUI: You have provided a `inputComponent` to the input component', 'that does not correctly handle the `ref` prop.', 'Make sure the `ref` prop is called with a HTMLInputElement.'].join('\\n'));\n      }\n    }\n  }, []);\n  const handleInputRef = useForkRef(inputRef, inputRefProp, inputPropsProp.ref, handleInputRefWarning);\n  const [focused, setFocused] = React.useState(false);\n  const muiFormControl = useFormControl();\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useEffect(() => {\n      if (muiFormControl) {\n        return muiFormControl.registerEffect();\n      }\n      return undefined;\n    }, [muiFormControl]);\n  }\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['color', 'disabled', 'error', 'hiddenLabel', 'size', 'required', 'filled']\n  });\n  fcs.focused = muiFormControl ? muiFormControl.focused : focused;\n\n  // The blur won't fire when the disabled state is set on a focused input.\n  // We need to book keep the focused state manually.\n  React.useEffect(() => {\n    if (!muiFormControl && disabled && focused) {\n      setFocused(false);\n      if (onBlur) {\n        onBlur();\n      }\n    }\n  }, [muiFormControl, disabled, focused, onBlur]);\n  const onFilled = muiFormControl && muiFormControl.onFilled;\n  const onEmpty = muiFormControl && muiFormControl.onEmpty;\n  const checkDirty = React.useCallback(obj => {\n    if (isFilled(obj)) {\n      if (onFilled) {\n        onFilled();\n      }\n    } else if (onEmpty) {\n      onEmpty();\n    }\n  }, [onFilled, onEmpty]);\n  useEnhancedEffect(() => {\n    if (isControlled) {\n      checkDirty({\n        value\n      });\n    }\n  }, [value, checkDirty, isControlled]);\n  const handleFocus = event => {\n    // Fix a bug with IE11 where the focus/blur events are triggered\n    // while the component is disabled.\n    if (fcs.disabled) {\n      event.stopPropagation();\n      return;\n    }\n    if (onFocus) {\n      onFocus(event);\n    }\n    if (inputPropsProp.onFocus) {\n      inputPropsProp.onFocus(event);\n    }\n    if (muiFormControl && muiFormControl.onFocus) {\n      muiFormControl.onFocus(event);\n    } else {\n      setFocused(true);\n    }\n  };\n  const handleBlur = event => {\n    if (onBlur) {\n      onBlur(event);\n    }\n    if (inputPropsProp.onBlur) {\n      inputPropsProp.onBlur(event);\n    }\n    if (muiFormControl && muiFormControl.onBlur) {\n      muiFormControl.onBlur(event);\n    } else {\n      setFocused(false);\n    }\n  };\n  const handleChange = (event, ...args) => {\n    if (!isControlled) {\n      const element = event.target || inputRef.current;\n      if (element == null) {\n        throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Expected valid input target. Did you use a custom \\`inputComponent\\` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.` : _formatMuiErrorMessage(1));\n      }\n      checkDirty({\n        value: element.value\n      });\n    }\n    if (inputPropsProp.onChange) {\n      inputPropsProp.onChange(event, ...args);\n    }\n\n    // Perform in the willUpdate\n    if (onChange) {\n      onChange(event, ...args);\n    }\n  };\n\n  // Check the input state on mount, in case it was filled by the user\n  // or auto filled by the browser before the hydration (for SSR).\n  React.useEffect(() => {\n    checkDirty(inputRef.current);\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n  const handleClick = event => {\n    if (inputRef.current && event.currentTarget === event.target) {\n      inputRef.current.focus();\n    }\n    if (onClick) {\n      onClick(event);\n    }\n  };\n  let InputComponent = inputComponent;\n  let inputProps = inputPropsProp;\n  if (multiline && InputComponent === 'input') {\n    if (rows) {\n      if (process.env.NODE_ENV !== 'production') {\n        if (minRows || maxRows) {\n          console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');\n        }\n      }\n      inputProps = _extends({\n        type: undefined,\n        minRows: rows,\n        maxRows: rows\n      }, inputProps);\n    } else {\n      inputProps = _extends({\n        type: undefined,\n        maxRows,\n        minRows\n      }, inputProps);\n    }\n    InputComponent = TextareaAutosize;\n  }\n  const handleAutoFill = event => {\n    // Provide a fake value as Chrome might not let you access it for security reasons.\n    checkDirty(event.animationName === 'mui-auto-fill-cancel' ? inputRef.current : {\n      value: 'x'\n    });\n  };\n  React.useEffect(() => {\n    if (muiFormControl) {\n      muiFormControl.setAdornedStart(Boolean(startAdornment));\n    }\n  }, [muiFormControl, startAdornment]);\n  const ownerState = _extends({}, props, {\n    color: fcs.color || 'primary',\n    disabled: fcs.disabled,\n    endAdornment,\n    error: fcs.error,\n    focused: fcs.focused,\n    formControl: muiFormControl,\n    fullWidth,\n    hiddenLabel: fcs.hiddenLabel,\n    multiline,\n    size: fcs.size,\n    startAdornment,\n    type\n  });\n  const classes = useUtilityClasses(ownerState);\n  const Root = slots.root || components.Root || InputBaseRoot;\n  const rootProps = slotProps.root || componentsProps.root || {};\n  const Input = slots.input || components.Input || InputBaseComponent;\n  inputProps = _extends({}, inputProps, (_slotProps$input = slotProps.input) != null ? _slotProps$input : componentsProps.input);\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, !isHostComponent(Root) && {\n      ownerState: _extends({}, ownerState, rootProps.ownerState)\n    }, {\n      ref: ref,\n      onClick: handleClick\n    }, other, {\n      className: clsx(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),\n      children: [startAdornment, /*#__PURE__*/_jsx(FormControlContext.Provider, {\n        value: null,\n        children: /*#__PURE__*/_jsx(Input, _extends({\n          ownerState: ownerState,\n          \"aria-invalid\": fcs.error,\n          \"aria-describedby\": ariaDescribedby,\n          autoComplete: autoComplete,\n          autoFocus: autoFocus,\n          defaultValue: defaultValue,\n          disabled: fcs.disabled,\n          id: id,\n          onAnimationStart: handleAutoFill,\n          name: name,\n          placeholder: placeholder,\n          readOnly: readOnly,\n          required: fcs.required,\n          rows: rows,\n          value: value,\n          onKeyDown: onKeyDown,\n          onKeyUp: onKeyUp,\n          type: type\n        }, inputProps, !isHostComponent(Input) && {\n          as: InputComponent,\n          ownerState: _extends({}, ownerState, inputProps.ownerState)\n        }, {\n          ref: handleInputRef,\n          className: clsx(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),\n          onBlur: handleBlur,\n          onChange: handleChange,\n          onFocus: handleFocus\n        }))\n      }), endAdornment, renderSuffix ? renderSuffix(_extends({}, fcs, {\n        startAdornment\n      })) : null]\n    }))]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? InputBase.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  'aria-describedby': PropTypes.string,\n  /**\n   * This prop helps users to fill forms faster, especially on mobile devices.\n   * The name can be confusing, as it's more like an autofill.\n   * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n   */\n  autoComplete: PropTypes.string,\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Input: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `slotProps` prop.\n   * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the component is disabled.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.\n   * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.\n   * @default false\n   */\n  disableInjectingGlobalStyles: PropTypes.bool,\n  /**\n   * End `InputAdornment` for this component.\n   */\n  endAdornment: PropTypes.node,\n  /**\n   * If `true`, the `input` will indicate an error.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the `input` will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * The component used for the `input` element.\n   * Either a string to use a HTML element or a component.\n   * @default 'input'\n   */\n  inputComponent: elementTypeAcceptingRef,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   * @default {}\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n   */\n  margin: PropTypes.oneOf(['dense', 'none']),\n  /**\n   * Maximum number of rows to display when multiline option is set to true.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display when multiline option is set to true.\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.\n   * @default false\n   */\n  multiline: PropTypes.bool,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when the `input` is blurred.\n   *\n   * Notice that the first argument (event) might be undefined.\n   */\n  onBlur: PropTypes.func,\n  /**\n   * Callback fired when the value is changed.\n   *\n   * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onClick: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onFocus: PropTypes.func,\n  /**\n   * Callback fired when the `input` doesn't satisfy its constraints.\n   */\n  onInvalid: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onKeyDown: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onKeyUp: PropTypes.func,\n  /**\n   * The short hint displayed in the `input` before the user enters a value.\n   */\n  placeholder: PropTypes.string,\n  /**\n   * It prevents the user from changing the value of the field\n   * (not from interacting with the field).\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  renderSuffix: PropTypes.func,\n  /**\n   * If `true`, the `input` element is required.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  required: PropTypes.bool,\n  /**\n   * Number of rows to display when multiline option is set to true.\n   */\n  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The size of the component.\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: PropTypes.object,\n    root: PropTypes.object\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `components` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * Start `InputAdornment` for this component.\n   */\n  startAdornment: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n   * @default 'text'\n   */\n  type: PropTypes.string,\n  /**\n   * The value of the `input` element, required for a controlled component.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default InputBase;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputBaseUtilityClass(slot) {\n  return generateUtilityClass('MuiInputBase', slot);\n}\nconst inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);\nexport default inputBaseClasses;","// Supports determination of isControlled().\n// Controlled input accepts its current value as a prop.\n//\n// @see https://facebook.github.io/react/docs/forms.html#controlled-components\n// @param value\n// @returns {boolean} true if string (including '') or number (including zero)\nexport function hasValue(value) {\n  return value != null && !(Array.isArray(value) && value.length === 0);\n}\n\n// Determine if field is empty or filled.\n// Response determines if label is presented above field or as placeholder.\n//\n// @param obj\n// @param SSR\n// @returns {boolean} False when not present or empty string.\n//                    True when any number or string with length.\nexport function isFilled(obj, SSR = false) {\n  return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');\n}\n\n// Determine if an Input is adorned on start.\n// It's corresponding to the left with LTR.\n//\n// @param obj\n// @returns {boolean} False when no adornments.\n//                    True when adorned at the start.\nexport function isAdornedStart(obj) {\n  return obj.startAdornment;\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst ListContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n  ListContext.displayName = 'ListContext';\n}\nexport default ListContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListUtilityClass(slot) {\n  return generateUtilityClass('MuiList', slot);\n}\nconst listClasses = generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);\nexport default listClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"component\", \"dense\", \"disablePadding\", \"subheader\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ListContext from './ListContext';\nimport { getListUtilityClass } from './listClasses';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disablePadding,\n    dense,\n    subheader\n  } = ownerState;\n  const slots = {\n    root: ['root', !disablePadding && 'padding', dense && 'dense', subheader && 'subheader']\n  };\n  return composeClasses(slots, getListUtilityClass, classes);\n};\nconst ListRoot = styled('ul', {\n  name: 'MuiList',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, !ownerState.disablePadding && styles.padding, ownerState.dense && styles.dense, ownerState.subheader && styles.subheader];\n  }\n})(({\n  ownerState\n}) => _extends({\n  listStyle: 'none',\n  margin: 0,\n  padding: 0,\n  position: 'relative'\n}, !ownerState.disablePadding && {\n  paddingTop: 8,\n  paddingBottom: 8\n}, ownerState.subheader && {\n  paddingTop: 0\n}));\nconst List = /*#__PURE__*/React.forwardRef(function List(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiList'\n  });\n  const {\n      children,\n      className,\n      component = 'ul',\n      dense = false,\n      disablePadding = false,\n      subheader\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const context = React.useMemo(() => ({\n    dense\n  }), [dense]);\n  const ownerState = _extends({}, props, {\n    component,\n    dense,\n    disablePadding\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(ListContext.Provider, {\n    value: context,\n    children: /*#__PURE__*/_jsxs(ListRoot, _extends({\n      as: component,\n      className: clsx(classes.root, className),\n      ref: ref,\n      ownerState: ownerState\n    }, other, {\n      children: [subheader, children]\n    }))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? List.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, compact vertical padding designed for keyboard and mouse input is used for\n   * the list and list items.\n   * The prop is available to descendant components as the `dense` context.\n   * @default false\n   */\n  dense: PropTypes.bool,\n  /**\n   * If `true`, vertical padding is removed from the list.\n   * @default false\n   */\n  disablePadding: PropTypes.bool,\n  /**\n   * The content of the subheader, normally `ListSubheader`.\n   */\n  subheader: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default List;","import getScrollbarSize from '@mui/utils/getScrollbarSize';\nexport default getScrollbarSize;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"actions\", \"autoFocus\", \"autoFocusItem\", \"children\", \"className\", \"disabledItemsFocusable\", \"disableListWrap\", \"onKeyDown\", \"variant\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport ownerDocument from '../utils/ownerDocument';\nimport List from '../List';\nimport getScrollbarSize from '../utils/getScrollbarSize';\nimport useForkRef from '../utils/useForkRef';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction nextItem(list, item, disableListWrap) {\n  if (list === item) {\n    return list.firstChild;\n  }\n  if (item && item.nextElementSibling) {\n    return item.nextElementSibling;\n  }\n  return disableListWrap ? null : list.firstChild;\n}\nfunction previousItem(list, item, disableListWrap) {\n  if (list === item) {\n    return disableListWrap ? list.firstChild : list.lastChild;\n  }\n  if (item && item.previousElementSibling) {\n    return item.previousElementSibling;\n  }\n  return disableListWrap ? null : list.lastChild;\n}\nfunction textCriteriaMatches(nextFocus, textCriteria) {\n  if (textCriteria === undefined) {\n    return true;\n  }\n  let text = nextFocus.innerText;\n  if (text === undefined) {\n    // jsdom doesn't support innerText\n    text = nextFocus.textContent;\n  }\n  text = text.trim().toLowerCase();\n  if (text.length === 0) {\n    return false;\n  }\n  if (textCriteria.repeating) {\n    return text[0] === textCriteria.keys[0];\n  }\n  return text.indexOf(textCriteria.keys.join('')) === 0;\n}\nfunction moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {\n  let wrappedOnce = false;\n  let nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false);\n  while (nextFocus) {\n    // Prevent infinite loop.\n    if (nextFocus === list.firstChild) {\n      if (wrappedOnce) {\n        return false;\n      }\n      wrappedOnce = true;\n    }\n\n    // Same logic as useAutocomplete.js\n    const nextFocusDisabled = disabledItemsFocusable ? false : nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true';\n    if (!nextFocus.hasAttribute('tabindex') || !textCriteriaMatches(nextFocus, textCriteria) || nextFocusDisabled) {\n      // Move to the next element.\n      nextFocus = traversalFunction(list, nextFocus, disableListWrap);\n    } else {\n      nextFocus.focus();\n      return true;\n    }\n  }\n  return false;\n}\n\n/**\n * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.\n * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you\n * use it separately you need to move focus into the component manually. Once\n * the focus is placed inside the component it is fully keyboard accessible.\n */\nconst MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {\n  const {\n      // private\n      // eslint-disable-next-line react/prop-types\n      actions,\n      autoFocus = false,\n      autoFocusItem = false,\n      children,\n      className,\n      disabledItemsFocusable = false,\n      disableListWrap = false,\n      onKeyDown,\n      variant = 'selectedMenu'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const listRef = React.useRef(null);\n  const textCriteriaRef = React.useRef({\n    keys: [],\n    repeating: true,\n    previousKeyMatched: true,\n    lastTime: null\n  });\n  useEnhancedEffect(() => {\n    if (autoFocus) {\n      listRef.current.focus();\n    }\n  }, [autoFocus]);\n  React.useImperativeHandle(actions, () => ({\n    adjustStyleForScrollbar: (containerElement, {\n      direction\n    }) => {\n      // Let's ignore that piece of logic if users are already overriding the width\n      // of the menu.\n      const noExplicitWidth = !listRef.current.style.width;\n      if (containerElement.clientHeight < listRef.current.clientHeight && noExplicitWidth) {\n        const scrollbarSize = `${getScrollbarSize(ownerDocument(containerElement))}px`;\n        listRef.current.style[direction === 'rtl' ? 'paddingLeft' : 'paddingRight'] = scrollbarSize;\n        listRef.current.style.width = `calc(100% + ${scrollbarSize})`;\n      }\n      return listRef.current;\n    }\n  }), []);\n  const handleKeyDown = event => {\n    const list = listRef.current;\n    const key = event.key;\n    /**\n     * @type {Element} - will always be defined since we are in a keydown handler\n     * attached to an element. A keydown event is either dispatched to the activeElement\n     * or document.body or document.documentElement. Only the first case will\n     * trigger this specific handler.\n     */\n    const currentFocus = ownerDocument(list).activeElement;\n    if (key === 'ArrowDown') {\n      // Prevent scroll of the page\n      event.preventDefault();\n      moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem);\n    } else if (key === 'ArrowUp') {\n      event.preventDefault();\n      moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem);\n    } else if (key === 'Home') {\n      event.preventDefault();\n      moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem);\n    } else if (key === 'End') {\n      event.preventDefault();\n      moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem);\n    } else if (key.length === 1) {\n      const criteria = textCriteriaRef.current;\n      const lowerKey = key.toLowerCase();\n      const currTime = performance.now();\n      if (criteria.keys.length > 0) {\n        // Reset\n        if (currTime - criteria.lastTime > 500) {\n          criteria.keys = [];\n          criteria.repeating = true;\n          criteria.previousKeyMatched = true;\n        } else if (criteria.repeating && lowerKey !== criteria.keys[0]) {\n          criteria.repeating = false;\n        }\n      }\n      criteria.lastTime = currTime;\n      criteria.keys.push(lowerKey);\n      const keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria);\n      if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) {\n        event.preventDefault();\n      } else {\n        criteria.previousKeyMatched = false;\n      }\n    }\n    if (onKeyDown) {\n      onKeyDown(event);\n    }\n  };\n  const handleRef = useForkRef(listRef, ref);\n\n  /**\n   * the index of the item should receive focus\n   * in a `variant=\"selectedMenu\"` it's the first `selected` item\n   * otherwise it's the very first item.\n   */\n  let activeItemIndex = -1;\n  // since we inject focus related props into children we have to do a lookahead\n  // to check if there is a `selected` item. We're looking for the last `selected`\n  // item and use the first valid item as a fallback\n  React.Children.forEach(children, (child, index) => {\n    if (! /*#__PURE__*/React.isValidElement(child)) {\n      if (activeItemIndex === index) {\n        activeItemIndex += 1;\n        if (activeItemIndex >= children.length) {\n          // there are no focusable items within the list.\n          activeItemIndex = -1;\n        }\n      }\n      return;\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (isFragment(child)) {\n        console.error([\"MUI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n      }\n    }\n    if (!child.props.disabled) {\n      if (variant === 'selectedMenu' && child.props.selected) {\n        activeItemIndex = index;\n      } else if (activeItemIndex === -1) {\n        activeItemIndex = index;\n      }\n    }\n    if (activeItemIndex === index && (child.props.disabled || child.props.muiSkipListHighlight || child.type.muiSkipListHighlight)) {\n      activeItemIndex += 1;\n      if (activeItemIndex >= children.length) {\n        // there are no focusable items within the list.\n        activeItemIndex = -1;\n      }\n    }\n  });\n  const items = React.Children.map(children, (child, index) => {\n    if (index === activeItemIndex) {\n      const newChildProps = {};\n      if (autoFocusItem) {\n        newChildProps.autoFocus = true;\n      }\n      if (child.props.tabIndex === undefined && variant === 'selectedMenu') {\n        newChildProps.tabIndex = 0;\n      }\n      return /*#__PURE__*/React.cloneElement(child, newChildProps);\n    }\n    return child;\n  });\n  return /*#__PURE__*/_jsx(List, _extends({\n    role: \"menu\",\n    ref: handleRef,\n    className: className,\n    onKeyDown: handleKeyDown,\n    tabIndex: autoFocus ? 0 : -1\n  }, other, {\n    children: items\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuList.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, will focus the `[role=\"menu\"]` container and move into tab order.\n   * @default false\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * If `true`, will focus the first menuitem if `variant=\"menu\"` or selected item\n   * if `variant=\"selectedMenu\"`.\n   * @default false\n   */\n  autoFocusItem: PropTypes.bool,\n  /**\n   * MenuList contents, normally `MenuItem`s.\n   */\n  children: PropTypes.node,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * If `true`, will allow focus on disabled items.\n   * @default false\n   */\n  disabledItemsFocusable: PropTypes.bool,\n  /**\n   * If `true`, the menu items will not wrap focus.\n   * @default false\n   */\n  disableListWrap: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  onKeyDown: PropTypes.func,\n  /**\n   * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n   * and the vertical alignment relative to the anchor element.\n   * @default 'selectedMenu'\n   */\n  variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default MenuList;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useTimeout from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n  return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n  entering: {\n    opacity: 1,\n    transform: getScale(1)\n  },\n  entered: {\n    opacity: 1,\n    transform: 'none'\n  }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n  const {\n      addEndListener,\n      appear = true,\n      children,\n      easing,\n      in: inProp,\n      onEnter,\n      onEntered,\n      onEntering,\n      onExit,\n      onExited,\n      onExiting,\n      style,\n      timeout = 'auto',\n      // eslint-disable-next-line react/prop-types\n      TransitionComponent = Transition\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const timer = useTimeout();\n  const autoTimeout = React.useRef();\n  const theme = useTheme();\n  const nodeRef = React.useRef(null);\n  const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n  const normalizedTransitionCallback = callback => maybeIsAppearing => {\n    if (callback) {\n      const node = nodeRef.current;\n\n      // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n      if (maybeIsAppearing === undefined) {\n        callback(node);\n      } else {\n        callback(node, maybeIsAppearing);\n      }\n    }\n  };\n  const handleEntering = normalizedTransitionCallback(onEntering);\n  const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n    reflow(node); // So the animation always start from the start.\n\n    const {\n      duration: transitionDuration,\n      delay,\n      easing: transitionTimingFunction\n    } = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'enter'\n    });\n    let duration;\n    if (timeout === 'auto') {\n      duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n      autoTimeout.current = duration;\n    } else {\n      duration = transitionDuration;\n    }\n    node.style.transition = [theme.transitions.create('opacity', {\n      duration,\n      delay\n    }), theme.transitions.create('transform', {\n      duration: isWebKit154 ? duration : duration * 0.666,\n      delay,\n      easing: transitionTimingFunction\n    })].join(',');\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback(onEntered);\n  const handleExiting = normalizedTransitionCallback(onExiting);\n  const handleExit = normalizedTransitionCallback(node => {\n    const {\n      duration: transitionDuration,\n      delay,\n      easing: transitionTimingFunction\n    } = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'exit'\n    });\n    let duration;\n    if (timeout === 'auto') {\n      duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n      autoTimeout.current = duration;\n    } else {\n      duration = transitionDuration;\n    }\n    node.style.transition = [theme.transitions.create('opacity', {\n      duration,\n      delay\n    }), theme.transitions.create('transform', {\n      duration: isWebKit154 ? duration : duration * 0.666,\n      delay: isWebKit154 ? delay : delay || duration * 0.333,\n      easing: transitionTimingFunction\n    })].join(',');\n    node.style.opacity = 0;\n    node.style.transform = getScale(0.75);\n    if (onExit) {\n      onExit(node);\n    }\n  });\n  const handleExited = normalizedTransitionCallback(onExited);\n  const handleAddEndListener = next => {\n    if (timeout === 'auto') {\n      timer.start(autoTimeout.current || 0, next);\n    }\n    if (addEndListener) {\n      // Old call signature before `react-transition-group` implemented `nodeRef`\n      addEndListener(nodeRef.current, next);\n    }\n  };\n  return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    appear: appear,\n    in: inProp,\n    nodeRef: nodeRef,\n    onEnter: handleEnter,\n    onEntered: handleEntered,\n    onEntering: handleEntering,\n    onExit: handleExit,\n    onExited: handleExited,\n    onExiting: handleExiting,\n    addEndListener: handleAddEndListener,\n    timeout: timeout === 'auto' ? null : timeout\n  }, other, {\n    children: (state, childProps) => {\n      return /*#__PURE__*/React.cloneElement(children, _extends({\n        style: _extends({\n          opacity: 0,\n          transform: getScale(0.75),\n          visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n        }, styles[state], style, children.props.style),\n        ref: handleRef\n      }, childProps));\n    }\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Add a custom transition end trigger. Called with the transitioning DOM\n   * node and a done callback. Allows for more fine grained transition end\n   * logic. Note: Timeouts are still used as a fallback if provided.\n   */\n  addEndListener: PropTypes.func,\n  /**\n   * Perform the enter transition when it first mounts if `in` is also `true`.\n   * Set this to `false` to disable this behavior.\n   * @default true\n   */\n  appear: PropTypes.bool,\n  /**\n   * A single child content element.\n   */\n  children: elementAcceptingRef.isRequired,\n  /**\n   * The transition timing function.\n   * You may specify a single easing or a object containing enter and exit values.\n   */\n  easing: PropTypes.oneOfType([PropTypes.shape({\n    enter: PropTypes.string,\n    exit: PropTypes.string\n  }), PropTypes.string]),\n  /**\n   * If `true`, the component will transition in.\n   */\n  in: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  onEnter: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntered: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntering: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExit: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExited: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExiting: PropTypes.func,\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   *\n   * Set to 'auto' to automatically calculate transition time based on height.\n   * @default 'auto'\n   */\n  timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPopoverUtilityClass(slot) {\n  return generateUtilityClass('MuiPopover', slot);\n}\nconst popoverClasses = generateUtilityClasses('MuiPopover', ['root', 'paper']);\nexport default popoverClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onEntering\"],\n  _excluded2 = [\"action\", \"anchorEl\", \"anchorOrigin\", \"anchorPosition\", \"anchorReference\", \"children\", \"className\", \"container\", \"elevation\", \"marginThreshold\", \"open\", \"PaperProps\", \"slots\", \"slotProps\", \"transformOrigin\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\", \"disableScrollLock\"],\n  _excluded3 = [\"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport refType from '@mui/utils/refType';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport isHostComponent from '@mui/utils/isHostComponent';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport debounce from '../utils/debounce';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useForkRef from '../utils/useForkRef';\nimport Grow from '../Grow';\nimport Modal from '../Modal';\nimport PaperBase from '../Paper';\nimport { getPopoverUtilityClass } from './popoverClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function getOffsetTop(rect, vertical) {\n  let offset = 0;\n  if (typeof vertical === 'number') {\n    offset = vertical;\n  } else if (vertical === 'center') {\n    offset = rect.height / 2;\n  } else if (vertical === 'bottom') {\n    offset = rect.height;\n  }\n  return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n  let offset = 0;\n  if (typeof horizontal === 'number') {\n    offset = horizontal;\n  } else if (horizontal === 'center') {\n    offset = rect.width / 2;\n  } else if (horizontal === 'right') {\n    offset = rect.width;\n  }\n  return offset;\n}\nfunction getTransformOriginValue(transformOrigin) {\n  return [transformOrigin.horizontal, transformOrigin.vertical].map(n => typeof n === 'number' ? `${n}px` : n).join(' ');\n}\nfunction resolveAnchorEl(anchorEl) {\n  return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    paper: ['paper']\n  };\n  return composeClasses(slots, getPopoverUtilityClass, classes);\n};\nexport const PopoverRoot = styled(Modal, {\n  name: 'MuiPopover',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})({});\nexport const PopoverPaper = styled(PaperBase, {\n  name: 'MuiPopover',\n  slot: 'Paper',\n  overridesResolver: (props, styles) => styles.paper\n})({\n  position: 'absolute',\n  overflowY: 'auto',\n  overflowX: 'hidden',\n  // So we see the popover when it's empty.\n  // It's most likely on issue on userland.\n  minWidth: 16,\n  minHeight: 16,\n  maxWidth: 'calc(100% - 32px)',\n  maxHeight: 'calc(100% - 32px)',\n  // We disable the focus ring for mouse, touch and keyboard users.\n  outline: 0\n});\nconst Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {\n  var _slotProps$paper, _slots$root, _slots$paper;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiPopover'\n  });\n  const {\n      action,\n      anchorEl,\n      anchorOrigin = {\n        vertical: 'top',\n        horizontal: 'left'\n      },\n      anchorPosition,\n      anchorReference = 'anchorEl',\n      children,\n      className,\n      container: containerProp,\n      elevation = 8,\n      marginThreshold = 16,\n      open,\n      PaperProps: PaperPropsProp = {},\n      slots,\n      slotProps,\n      transformOrigin = {\n        vertical: 'top',\n        horizontal: 'left'\n      },\n      TransitionComponent = Grow,\n      transitionDuration: transitionDurationProp = 'auto',\n      TransitionProps: {\n        onEntering\n      } = {},\n      disableScrollLock = false\n    } = props,\n    TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded),\n    other = _objectWithoutPropertiesLoose(props, _excluded2);\n  const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;\n  const paperRef = React.useRef();\n  const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);\n  const ownerState = _extends({}, props, {\n    anchorOrigin,\n    anchorReference,\n    elevation,\n    marginThreshold,\n    externalPaperSlotProps,\n    transformOrigin,\n    TransitionComponent,\n    transitionDuration: transitionDurationProp,\n    TransitionProps\n  });\n  const classes = useUtilityClasses(ownerState);\n\n  // Returns the top/left offset of the position\n  // to attach to on the anchor element (or body if none is provided)\n  const getAnchorOffset = React.useCallback(() => {\n    if (anchorReference === 'anchorPosition') {\n      if (process.env.NODE_ENV !== 'production') {\n        if (!anchorPosition) {\n          console.error('MUI: You need to provide a `anchorPosition` prop when using ' + '<Popover anchorReference=\"anchorPosition\" />.');\n        }\n      }\n      return anchorPosition;\n    }\n    const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n\n    // If an anchor element wasn't provided, just use the parent body element of this Popover\n    const anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n    const anchorRect = anchorElement.getBoundingClientRect();\n    if (process.env.NODE_ENV !== 'production') {\n      const box = anchorElement.getBoundingClientRect();\n      if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n        console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n      }\n    }\n    return {\n      top: anchorRect.top + getOffsetTop(anchorRect, anchorOrigin.vertical),\n      left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n    };\n  }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]);\n\n  // Returns the base transform origin using the element\n  const getTransformOrigin = React.useCallback(elemRect => {\n    return {\n      vertical: getOffsetTop(elemRect, transformOrigin.vertical),\n      horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n    };\n  }, [transformOrigin.horizontal, transformOrigin.vertical]);\n  const getPositioningStyle = React.useCallback(element => {\n    const elemRect = {\n      width: element.offsetWidth,\n      height: element.offsetHeight\n    };\n\n    // Get the transform origin point on the element itself\n    const elemTransformOrigin = getTransformOrigin(elemRect);\n    if (anchorReference === 'none') {\n      return {\n        top: null,\n        left: null,\n        transformOrigin: getTransformOriginValue(elemTransformOrigin)\n      };\n    }\n\n    // Get the offset of the anchoring element\n    const anchorOffset = getAnchorOffset();\n\n    // Calculate element positioning\n    let top = anchorOffset.top - elemTransformOrigin.vertical;\n    let left = anchorOffset.left - elemTransformOrigin.horizontal;\n    const bottom = top + elemRect.height;\n    const right = left + elemRect.width;\n\n    // Use the parent window of the anchorEl if provided\n    const containerWindow = ownerWindow(resolveAnchorEl(anchorEl));\n\n    // Window thresholds taking required margin into account\n    const heightThreshold = containerWindow.innerHeight - marginThreshold;\n    const widthThreshold = containerWindow.innerWidth - marginThreshold;\n\n    // Check if the vertical axis needs shifting\n    if (marginThreshold !== null && top < marginThreshold) {\n      const diff = top - marginThreshold;\n      top -= diff;\n      elemTransformOrigin.vertical += diff;\n    } else if (marginThreshold !== null && bottom > heightThreshold) {\n      const diff = bottom - heightThreshold;\n      top -= diff;\n      elemTransformOrigin.vertical += diff;\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n        console.error(['MUI: The popover component is too tall.', `Some part of it can not be seen on the screen (${elemRect.height - heightThreshold}px).`, 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n      }\n    }\n\n    // Check if the horizontal axis needs shifting\n    if (marginThreshold !== null && left < marginThreshold) {\n      const diff = left - marginThreshold;\n      left -= diff;\n      elemTransformOrigin.horizontal += diff;\n    } else if (right > widthThreshold) {\n      const diff = right - widthThreshold;\n      left -= diff;\n      elemTransformOrigin.horizontal += diff;\n    }\n    return {\n      top: `${Math.round(top)}px`,\n      left: `${Math.round(left)}px`,\n      transformOrigin: getTransformOriginValue(elemTransformOrigin)\n    };\n  }, [anchorEl, anchorReference, getAnchorOffset, getTransformOrigin, marginThreshold]);\n  const [isPositioned, setIsPositioned] = React.useState(open);\n  const setPositioningStyles = React.useCallback(() => {\n    const element = paperRef.current;\n    if (!element) {\n      return;\n    }\n    const positioning = getPositioningStyle(element);\n    if (positioning.top !== null) {\n      element.style.top = positioning.top;\n    }\n    if (positioning.left !== null) {\n      element.style.left = positioning.left;\n    }\n    element.style.transformOrigin = positioning.transformOrigin;\n    setIsPositioned(true);\n  }, [getPositioningStyle]);\n  React.useEffect(() => {\n    if (disableScrollLock) {\n      window.addEventListener('scroll', setPositioningStyles);\n    }\n    return () => window.removeEventListener('scroll', setPositioningStyles);\n  }, [anchorEl, disableScrollLock, setPositioningStyles]);\n  const handleEntering = (element, isAppearing) => {\n    if (onEntering) {\n      onEntering(element, isAppearing);\n    }\n    setPositioningStyles();\n  };\n  const handleExited = () => {\n    setIsPositioned(false);\n  };\n  React.useEffect(() => {\n    if (open) {\n      setPositioningStyles();\n    }\n  });\n  React.useImperativeHandle(action, () => open ? {\n    updatePosition: () => {\n      setPositioningStyles();\n    }\n  } : null, [open, setPositioningStyles]);\n  React.useEffect(() => {\n    if (!open) {\n      return undefined;\n    }\n    const handleResize = debounce(() => {\n      setPositioningStyles();\n    });\n    const containerWindow = ownerWindow(anchorEl);\n    containerWindow.addEventListener('resize', handleResize);\n    return () => {\n      handleResize.clear();\n      containerWindow.removeEventListener('resize', handleResize);\n    };\n  }, [anchorEl, open, setPositioningStyles]);\n  let transitionDuration = transitionDurationProp;\n  if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n    transitionDuration = undefined;\n  }\n\n  // If the container prop is provided, use that\n  // If the anchorEl prop is provided, use its parent body element as the container\n  // If neither are provided let the Modal take care of choosing the container\n  const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);\n  const RootSlot = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : PopoverRoot;\n  const PaperSlot = (_slots$paper = slots == null ? void 0 : slots.paper) != null ? _slots$paper : PopoverPaper;\n  const paperProps = useSlotProps({\n    elementType: PaperSlot,\n    externalSlotProps: _extends({}, externalPaperSlotProps, {\n      style: isPositioned ? externalPaperSlotProps.style : _extends({}, externalPaperSlotProps.style, {\n        opacity: 0\n      })\n    }),\n    additionalProps: {\n      elevation,\n      ref: handlePaperRef\n    },\n    ownerState,\n    className: clsx(classes.paper, externalPaperSlotProps == null ? void 0 : externalPaperSlotProps.className)\n  });\n  const _useSlotProps = useSlotProps({\n      elementType: RootSlot,\n      externalSlotProps: (slotProps == null ? void 0 : slotProps.root) || {},\n      externalForwardedProps: other,\n      additionalProps: {\n        ref,\n        slotProps: {\n          backdrop: {\n            invisible: true\n          }\n        },\n        container,\n        open\n      },\n      ownerState,\n      className: clsx(classes.root, className)\n    }),\n    {\n      slotProps: rootSlotPropsProp\n    } = _useSlotProps,\n    rootProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded3);\n  return /*#__PURE__*/_jsx(RootSlot, _extends({}, rootProps, !isHostComponent(RootSlot) && {\n    slotProps: rootSlotPropsProp,\n    disableScrollLock\n  }, {\n    children: /*#__PURE__*/_jsx(TransitionComponent, _extends({\n      appear: true,\n      in: open,\n      onEntering: handleEntering,\n      onExited: handleExited,\n      timeout: transitionDuration\n    }, TransitionProps, {\n      children: /*#__PURE__*/_jsx(PaperSlot, _extends({}, paperProps, {\n        children: children\n      }))\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * A ref for imperative actions.\n   * It currently only supports updatePosition() action.\n   */\n  action: refType,\n  /**\n   * An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),\n   * or a function that returns either.\n   * It's used to set the position of the popover.\n   */\n  anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {\n    if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n      const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n      if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n        const box = resolvedAnchorEl.getBoundingClientRect();\n        if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n          return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n        }\n      } else {\n        return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element or PopoverVirtualElement instance but it's \\`${resolvedAnchorEl}\\` instead.`].join('\\n'));\n      }\n    }\n    return null;\n  }),\n  /**\n   * This is the point on the anchor where the popover's\n   * `anchorEl` will attach to. This is not used when the\n   * anchorReference is 'anchorPosition'.\n   *\n   * Options:\n   * vertical: [top, center, bottom];\n   * horizontal: [left, center, right].\n   * @default {\n   *   vertical: 'top',\n   *   horizontal: 'left',\n   * }\n   */\n  anchorOrigin: PropTypes.shape({\n    horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n    vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n  }),\n  /**\n   * This is the position that may be used to set the position of the popover.\n   * The coordinates are relative to the application's client area.\n   */\n  anchorPosition: PropTypes.shape({\n    left: PropTypes.number.isRequired,\n    top: PropTypes.number.isRequired\n  }),\n  /**\n   * This determines which anchor prop to refer to when setting\n   * the position of the popover.\n   * @default 'anchorEl'\n   */\n  anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * An HTML element, component instance, or function that returns either.\n   * The `container` will passed to the Modal component.\n   *\n   * By default, it uses the body of the anchorEl's top-level document object,\n   * so it's simply `document.body` most of the time.\n   */\n  container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n  /**\n   * Disable the scroll lock behavior.\n   * @default false\n   */\n  disableScrollLock: PropTypes.bool,\n  /**\n   * The elevation of the popover.\n   * @default 8\n   */\n  elevation: integerPropType,\n  /**\n   * Specifies how close to the edge of the window the popover can appear.\n   * If null, the popover will not be constrained by the window.\n   * @default 16\n   */\n  marginThreshold: PropTypes.number,\n  /**\n   * Callback fired when the component requests to be closed.\n   * The `reason` parameter can optionally be used to control the response to `onClose`.\n   */\n  onClose: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * Props applied to the [`Paper`](/material-ui/api/paper/) element.\n   *\n   * This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.\n   * @deprecated Use `slotProps.paper` instead.\n   *\n   * @default {}\n   */\n  PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n    component: elementTypeAcceptingRef\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    paper: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * This is the point on the popover which\n   * will attach to the anchor's origin.\n   *\n   * Options:\n   * vertical: [top, center, bottom, x(px)];\n   * horizontal: [left, center, right, x(px)].\n   * @default {\n   *   vertical: 'top',\n   *   horizontal: 'left',\n   * }\n   */\n  transformOrigin: PropTypes.shape({\n    horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n    vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n  }),\n  /**\n   * The component used for the transition.\n   * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @default Grow\n   */\n  TransitionComponent: PropTypes.elementType,\n  /**\n   * Set to 'auto' to automatically calculate transition time based on height.\n   * @default 'auto'\n   */\n  transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })]),\n  /**\n   * Props applied to the transition element.\n   * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n   * @default {}\n   */\n  TransitionProps: PropTypes.object\n} : void 0;\nexport default Popover;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getMenuUtilityClass(slot) {\n  return generateUtilityClass('MuiMenu', slot);\n}\nconst menuClasses = generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);\nexport default menuClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onEntering\"],\n  _excluded2 = [\"autoFocus\", \"children\", \"className\", \"disableAutoFocusItem\", \"MenuListProps\", \"onClose\", \"open\", \"PaperProps\", \"PopoverClasses\", \"transitionDuration\", \"TransitionProps\", \"variant\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport MenuList from '../MenuList';\nimport Popover, { PopoverPaper } from '../Popover';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { getMenuUtilityClass } from './menuClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RTL_ORIGIN = {\n  vertical: 'top',\n  horizontal: 'right'\n};\nconst LTR_ORIGIN = {\n  vertical: 'top',\n  horizontal: 'left'\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    paper: ['paper'],\n    list: ['list']\n  };\n  return composeClasses(slots, getMenuUtilityClass, classes);\n};\nconst MenuRoot = styled(Popover, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiMenu',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})({});\nexport const MenuPaper = styled(PopoverPaper, {\n  name: 'MuiMenu',\n  slot: 'Paper',\n  overridesResolver: (props, styles) => styles.paper\n})({\n  // specZ: The maximum height of a simple menu should be one or more rows less than the view\n  // height. This ensures a tappable area outside of the simple menu with which to dismiss\n  // the menu.\n  maxHeight: 'calc(100% - 96px)',\n  // Add iOS momentum scrolling for iOS < 13.0\n  WebkitOverflowScrolling: 'touch'\n});\nconst MenuMenuList = styled(MenuList, {\n  name: 'MuiMenu',\n  slot: 'List',\n  overridesResolver: (props, styles) => styles.list\n})({\n  // We disable the focus ring for mouse, touch and keyboard users.\n  outline: 0\n});\nconst Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {\n  var _slots$paper, _slotProps$paper;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiMenu'\n  });\n  const {\n      autoFocus = true,\n      children,\n      className,\n      disableAutoFocusItem = false,\n      MenuListProps = {},\n      onClose,\n      open,\n      PaperProps = {},\n      PopoverClasses,\n      transitionDuration = 'auto',\n      TransitionProps: {\n        onEntering\n      } = {},\n      variant = 'selectedMenu',\n      slots = {},\n      slotProps = {}\n    } = props,\n    TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded),\n    other = _objectWithoutPropertiesLoose(props, _excluded2);\n  const isRtl = useRtl();\n  const ownerState = _extends({}, props, {\n    autoFocus,\n    disableAutoFocusItem,\n    MenuListProps,\n    onEntering,\n    PaperProps,\n    transitionDuration,\n    TransitionProps,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  const autoFocusItem = autoFocus && !disableAutoFocusItem && open;\n  const menuListActionsRef = React.useRef(null);\n  const handleEntering = (element, isAppearing) => {\n    if (menuListActionsRef.current) {\n      menuListActionsRef.current.adjustStyleForScrollbar(element, {\n        direction: isRtl ? 'rtl' : 'ltr'\n      });\n    }\n    if (onEntering) {\n      onEntering(element, isAppearing);\n    }\n  };\n  const handleListKeyDown = event => {\n    if (event.key === 'Tab') {\n      event.preventDefault();\n      if (onClose) {\n        onClose(event, 'tabKeyDown');\n      }\n    }\n  };\n\n  /**\n   * the index of the item should receive focus\n   * in a `variant=\"selectedMenu\"` it's the first `selected` item\n   * otherwise it's the very first item.\n   */\n  let activeItemIndex = -1;\n  // since we inject focus related props into children we have to do a lookahead\n  // to check if there is a `selected` item. We're looking for the last `selected`\n  // item and use the first valid item as a fallback\n  React.Children.map(children, (child, index) => {\n    if (! /*#__PURE__*/React.isValidElement(child)) {\n      return;\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (isFragment(child)) {\n        console.error([\"MUI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n      }\n    }\n    if (!child.props.disabled) {\n      if (variant === 'selectedMenu' && child.props.selected) {\n        activeItemIndex = index;\n      } else if (activeItemIndex === -1) {\n        activeItemIndex = index;\n      }\n    }\n  });\n  const PaperSlot = (_slots$paper = slots.paper) != null ? _slots$paper : MenuPaper;\n  const paperExternalSlotProps = (_slotProps$paper = slotProps.paper) != null ? _slotProps$paper : PaperProps;\n  const rootSlotProps = useSlotProps({\n    elementType: slots.root,\n    externalSlotProps: slotProps.root,\n    ownerState,\n    className: [classes.root, className]\n  });\n  const paperSlotProps = useSlotProps({\n    elementType: PaperSlot,\n    externalSlotProps: paperExternalSlotProps,\n    ownerState,\n    className: classes.paper\n  });\n  return /*#__PURE__*/_jsx(MenuRoot, _extends({\n    onClose: onClose,\n    anchorOrigin: {\n      vertical: 'bottom',\n      horizontal: isRtl ? 'right' : 'left'\n    },\n    transformOrigin: isRtl ? RTL_ORIGIN : LTR_ORIGIN,\n    slots: {\n      paper: PaperSlot,\n      root: slots.root\n    },\n    slotProps: {\n      root: rootSlotProps,\n      paper: paperSlotProps\n    },\n    open: open,\n    ref: ref,\n    transitionDuration: transitionDuration,\n    TransitionProps: _extends({\n      onEntering: handleEntering\n    }, TransitionProps),\n    ownerState: ownerState\n  }, other, {\n    classes: PopoverClasses,\n    children: /*#__PURE__*/_jsx(MenuMenuList, _extends({\n      onKeyDown: handleListKeyDown,\n      actions: menuListActionsRef,\n      autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),\n      autoFocusItem: autoFocusItem,\n      variant: variant\n    }, MenuListProps, {\n      className: clsx(classes.list, MenuListProps.className),\n      children: children\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Menu.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * An HTML element, or a function that returns one.\n   * It's used to set the position of the menu.\n   */\n  anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n  /**\n   * If `true` (Default) will focus the `[role=\"menu\"]` if no focusable child is found. Disabled\n   * children are not focusable. If you set this prop to `false` focus will be placed\n   * on the parent modal container. This has severe accessibility implications\n   * and should only be considered if you manage focus otherwise.\n   * @default true\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * Menu contents, normally `MenuItem`s.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * When opening the menu will not focus the active item but the `[role=\"menu\"]`\n   * unless `autoFocus` is also set to `false`. Not using the default means not\n   * following WAI-ARIA authoring practices. Please be considerate about possible\n   * accessibility implications.\n   * @default false\n   */\n  disableAutoFocusItem: PropTypes.bool,\n  /**\n   * Props applied to the [`MenuList`](/material-ui/api/menu-list/) element.\n   * @default {}\n   */\n  MenuListProps: PropTypes.object,\n  /**\n   * Callback fired when the component requests to be closed.\n   *\n   * @param {object} event The event source of the callback.\n   * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`, `\"tabKeyDown\"`.\n   */\n  onClose: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * @ignore\n   */\n  PaperProps: PropTypes.object,\n  /**\n   * `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element.\n   */\n  PopoverClasses: PropTypes.object,\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    paper: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The length of the transition in `ms`, or 'auto'\n   * @default 'auto'\n   */\n  transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })]),\n  /**\n   * Props applied to the transition element.\n   * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.\n   * @default {}\n   */\n  TransitionProps: PropTypes.object,\n  /**\n   * The variant to use. Use `menu` to prevent selected items from impacting the initial focus.\n   * @default 'selectedMenu'\n   */\n  variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default Menu;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemIconUtilityClass(slot) {\n  return generateUtilityClass('MuiListItemIcon', slot);\n}\nconst listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);\nexport default listItemIconClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemTextUtilityClass(slot) {\n  return generateUtilityClass('MuiListItemText', slot);\n}\nconst listItemTextClasses = generateUtilityClasses('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);\nexport default listItemTextClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getMenuItemUtilityClass(slot) {\n  return generateUtilityClass('MuiMenuItem', slot);\n}\nconst menuItemClasses = generateUtilityClasses('MuiMenuItem', ['root', 'focusVisible', 'dense', 'disabled', 'divider', 'gutters', 'selected']);\nexport default menuItemClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"component\", \"dense\", \"divider\", \"disableGutters\", \"focusVisibleClassName\", \"role\", \"tabIndex\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ListContext from '../List/ListContext';\nimport ButtonBase from '../ButtonBase';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useForkRef from '../utils/useForkRef';\nimport { dividerClasses } from '../Divider';\nimport { listItemIconClasses } from '../ListItemIcon';\nimport { listItemTextClasses } from '../ListItemText';\nimport menuItemClasses, { getMenuItemUtilityClass } from './menuItemClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.root, ownerState.dense && styles.dense, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    disabled,\n    dense,\n    divider,\n    disableGutters,\n    selected,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', dense && 'dense', disabled && 'disabled', !disableGutters && 'gutters', divider && 'divider', selected && 'selected']\n  };\n  const composedClasses = composeClasses(slots, getMenuItemUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst MenuItemRoot = styled(ButtonBase, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiMenuItem',\n  slot: 'Root',\n  overridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({}, theme.typography.body1, {\n  display: 'flex',\n  justifyContent: 'flex-start',\n  alignItems: 'center',\n  position: 'relative',\n  textDecoration: 'none',\n  minHeight: 48,\n  paddingTop: 6,\n  paddingBottom: 6,\n  boxSizing: 'border-box',\n  whiteSpace: 'nowrap'\n}, !ownerState.disableGutters && {\n  paddingLeft: 16,\n  paddingRight: 16\n}, ownerState.divider && {\n  borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n  backgroundClip: 'padding-box'\n}, {\n  '&:hover': {\n    textDecoration: 'none',\n    backgroundColor: (theme.vars || theme).palette.action.hover,\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: 'transparent'\n    }\n  },\n  [`&.${menuItemClasses.selected}`]: {\n    backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),\n    [`&.${menuItemClasses.focusVisible}`]: {\n      backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)\n    }\n  },\n  [`&.${menuItemClasses.selected}:hover`]: {\n    backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)\n    }\n  },\n  [`&.${menuItemClasses.focusVisible}`]: {\n    backgroundColor: (theme.vars || theme).palette.action.focus\n  },\n  [`&.${menuItemClasses.disabled}`]: {\n    opacity: (theme.vars || theme).palette.action.disabledOpacity\n  },\n  [`& + .${dividerClasses.root}`]: {\n    marginTop: theme.spacing(1),\n    marginBottom: theme.spacing(1)\n  },\n  [`& + .${dividerClasses.inset}`]: {\n    marginLeft: 52\n  },\n  [`& .${listItemTextClasses.root}`]: {\n    marginTop: 0,\n    marginBottom: 0\n  },\n  [`& .${listItemTextClasses.inset}`]: {\n    paddingLeft: 36\n  },\n  [`& .${listItemIconClasses.root}`]: {\n    minWidth: 36\n  }\n}, !ownerState.dense && {\n  [theme.breakpoints.up('sm')]: {\n    minHeight: 'auto'\n  }\n}, ownerState.dense && _extends({\n  minHeight: 32,\n  // https://m2.material.io/components/menus#specs > Dense\n  paddingTop: 4,\n  paddingBottom: 4\n}, theme.typography.body2, {\n  [`& .${listItemIconClasses.root} svg`]: {\n    fontSize: '1.25rem'\n  }\n})));\nconst MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiMenuItem'\n  });\n  const {\n      autoFocus = false,\n      component = 'li',\n      dense = false,\n      divider = false,\n      disableGutters = false,\n      focusVisibleClassName,\n      role = 'menuitem',\n      tabIndex: tabIndexProp,\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const context = React.useContext(ListContext);\n  const childContext = React.useMemo(() => ({\n    dense: dense || context.dense || false,\n    disableGutters\n  }), [context.dense, dense, disableGutters]);\n  const menuItemRef = React.useRef(null);\n  useEnhancedEffect(() => {\n    if (autoFocus) {\n      if (menuItemRef.current) {\n        menuItemRef.current.focus();\n      } else if (process.env.NODE_ENV !== 'production') {\n        console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');\n      }\n    }\n  }, [autoFocus]);\n  const ownerState = _extends({}, props, {\n    dense: childContext.dense,\n    divider,\n    disableGutters\n  });\n  const classes = useUtilityClasses(props);\n  const handleRef = useForkRef(menuItemRef, ref);\n  let tabIndex;\n  if (!props.disabled) {\n    tabIndex = tabIndexProp !== undefined ? tabIndexProp : -1;\n  }\n  return /*#__PURE__*/_jsx(ListContext.Provider, {\n    value: childContext,\n    children: /*#__PURE__*/_jsx(MenuItemRoot, _extends({\n      ref: handleRef,\n      role: role,\n      tabIndex: tabIndex,\n      component: component,\n      focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n      className: clsx(classes.root, className)\n    }, other, {\n      ownerState: ownerState,\n      classes: classes\n    }))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuItem.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the list item is focused during the first mount.\n   * Focus will also be triggered if the value changes from false to true.\n   * @default false\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, compact vertical padding designed for keyboard and mouse input is used.\n   * The prop defaults to the value inherited from the parent Menu component.\n   * @default false\n   */\n  dense: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the left and right padding is removed.\n   * @default false\n   */\n  disableGutters: PropTypes.bool,\n  /**\n   * If `true`, a 1px light border is added to the bottom of the menu item.\n   * @default false\n   */\n  divider: PropTypes.bool,\n  /**\n   * This prop can help identify which element has keyboard focus.\n   * The class name will be applied when the element gains the focus through keyboard interaction.\n   * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n   * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n   * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n   * if needed.\n   */\n  focusVisibleClassName: PropTypes.string,\n  /**\n   * @ignore\n   */\n  role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n  /**\n   * If `true`, the component is selected.\n   * @default false\n   */\n  selected: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * @default 0\n   */\n  tabIndex: PropTypes.number\n} : void 0;\nexport default MenuItem;","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument, unstable_getReactElementRef as getReactElementRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n  const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n  if (!Number.isNaN(tabindexAttr)) {\n    return tabindexAttr;\n  }\n\n  // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n  // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n  // so if they don't have a tabindex attribute specifically set, assume it's 0.\n  // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n  //  `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n  //  yet they are still part of the regular tab order; in FF, they get a default\n  //  `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n  //  order, consider their tab index to be 0.\n  if (node.contentEditable === 'true' || (node.nodeName === 'AUDIO' || node.nodeName === 'VIDEO' || node.nodeName === 'DETAILS') && node.getAttribute('tabindex') === null) {\n    return 0;\n  }\n  return node.tabIndex;\n}\nfunction isNonTabbableRadio(node) {\n  if (node.tagName !== 'INPUT' || node.type !== 'radio') {\n    return false;\n  }\n  if (!node.name) {\n    return false;\n  }\n  const getRadio = selector => node.ownerDocument.querySelector(`input[type=\"radio\"]${selector}`);\n  let roving = getRadio(`[name=\"${node.name}\"]:checked`);\n  if (!roving) {\n    roving = getRadio(`[name=\"${node.name}\"]`);\n  }\n  return roving !== node;\n}\nfunction isNodeMatchingSelectorFocusable(node) {\n  if (node.disabled || node.tagName === 'INPUT' && node.type === 'hidden' || isNonTabbableRadio(node)) {\n    return false;\n  }\n  return true;\n}\nfunction defaultGetTabbable(root) {\n  const regularTabNodes = [];\n  const orderedTabNodes = [];\n  Array.from(root.querySelectorAll(candidatesSelector)).forEach((node, i) => {\n    const nodeTabIndex = getTabIndex(node);\n    if (nodeTabIndex === -1 || !isNodeMatchingSelectorFocusable(node)) {\n      return;\n    }\n    if (nodeTabIndex === 0) {\n      regularTabNodes.push(node);\n    } else {\n      orderedTabNodes.push({\n        documentOrder: i,\n        tabIndex: nodeTabIndex,\n        node: node\n      });\n    }\n  });\n  return orderedTabNodes.sort((a, b) => a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex).map(a => a.node).concat(regularTabNodes);\n}\nfunction defaultIsEnabled() {\n  return true;\n}\n\n/**\n * @ignore - internal component.\n */\nfunction FocusTrap(props) {\n  const {\n    children,\n    disableAutoFocus = false,\n    disableEnforceFocus = false,\n    disableRestoreFocus = false,\n    getTabbable = defaultGetTabbable,\n    isEnabled = defaultIsEnabled,\n    open\n  } = props;\n  const ignoreNextEnforceFocus = React.useRef(false);\n  const sentinelStart = React.useRef(null);\n  const sentinelEnd = React.useRef(null);\n  const nodeToRestore = React.useRef(null);\n  const reactFocusEventTarget = React.useRef(null);\n  // This variable is useful when disableAutoFocus is true.\n  // It waits for the active element to move into the component to activate.\n  const activated = React.useRef(false);\n  const rootRef = React.useRef(null);\n  const handleRef = useForkRef(getReactElementRef(children), rootRef);\n  const lastKeydown = React.useRef(null);\n  React.useEffect(() => {\n    // We might render an empty child.\n    if (!open || !rootRef.current) {\n      return;\n    }\n    activated.current = !disableAutoFocus;\n  }, [disableAutoFocus, open]);\n  React.useEffect(() => {\n    // We might render an empty child.\n    if (!open || !rootRef.current) {\n      return;\n    }\n    const doc = ownerDocument(rootRef.current);\n    if (!rootRef.current.contains(doc.activeElement)) {\n      if (!rootRef.current.hasAttribute('tabIndex')) {\n        if (process.env.NODE_ENV !== 'production') {\n          console.error(['MUI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to \"-1\".'].join('\\n'));\n        }\n        rootRef.current.setAttribute('tabIndex', '-1');\n      }\n      if (activated.current) {\n        rootRef.current.focus();\n      }\n    }\n    return () => {\n      // restoreLastFocus()\n      if (!disableRestoreFocus) {\n        // In IE11 it is possible for document.activeElement to be null resulting\n        // in nodeToRestore.current being null.\n        // Not all elements in IE11 have a focus method.\n        // Once IE11 support is dropped the focus() call can be unconditional.\n        if (nodeToRestore.current && nodeToRestore.current.focus) {\n          ignoreNextEnforceFocus.current = true;\n          nodeToRestore.current.focus();\n        }\n        nodeToRestore.current = null;\n      }\n    };\n    // Missing `disableRestoreFocus` which is fine.\n    // We don't support changing that prop on an open FocusTrap\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [open]);\n  React.useEffect(() => {\n    // We might render an empty child.\n    if (!open || !rootRef.current) {\n      return;\n    }\n    const doc = ownerDocument(rootRef.current);\n    const loopFocus = nativeEvent => {\n      lastKeydown.current = nativeEvent;\n      if (disableEnforceFocus || !isEnabled() || nativeEvent.key !== 'Tab') {\n        return;\n      }\n\n      // Make sure the next tab starts from the right place.\n      // doc.activeElement refers to the origin.\n      if (doc.activeElement === rootRef.current && nativeEvent.shiftKey) {\n        // We need to ignore the next contain as\n        // it will try to move the focus back to the rootRef element.\n        ignoreNextEnforceFocus.current = true;\n        if (sentinelEnd.current) {\n          sentinelEnd.current.focus();\n        }\n      }\n    };\n    const contain = () => {\n      const rootElement = rootRef.current;\n\n      // Cleanup functions are executed lazily in React 17.\n      // Contain can be called between the component being unmounted and its cleanup function being run.\n      if (rootElement === null) {\n        return;\n      }\n      if (!doc.hasFocus() || !isEnabled() || ignoreNextEnforceFocus.current) {\n        ignoreNextEnforceFocus.current = false;\n        return;\n      }\n\n      // The focus is already inside\n      if (rootElement.contains(doc.activeElement)) {\n        return;\n      }\n\n      // The disableEnforceFocus is set and the focus is outside of the focus trap (and sentinel nodes)\n      if (disableEnforceFocus && doc.activeElement !== sentinelStart.current && doc.activeElement !== sentinelEnd.current) {\n        return;\n      }\n\n      // if the focus event is not coming from inside the children's react tree, reset the refs\n      if (doc.activeElement !== reactFocusEventTarget.current) {\n        reactFocusEventTarget.current = null;\n      } else if (reactFocusEventTarget.current !== null) {\n        return;\n      }\n      if (!activated.current) {\n        return;\n      }\n      let tabbable = [];\n      if (doc.activeElement === sentinelStart.current || doc.activeElement === sentinelEnd.current) {\n        tabbable = getTabbable(rootRef.current);\n      }\n\n      // one of the sentinel nodes was focused, so move the focus\n      // to the first/last tabbable element inside the focus trap\n      if (tabbable.length > 0) {\n        var _lastKeydown$current, _lastKeydown$current2;\n        const isShiftTab = Boolean(((_lastKeydown$current = lastKeydown.current) == null ? void 0 : _lastKeydown$current.shiftKey) && ((_lastKeydown$current2 = lastKeydown.current) == null ? void 0 : _lastKeydown$current2.key) === 'Tab');\n        const focusNext = tabbable[0];\n        const focusPrevious = tabbable[tabbable.length - 1];\n        if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {\n          if (isShiftTab) {\n            focusPrevious.focus();\n          } else {\n            focusNext.focus();\n          }\n        }\n        // no tabbable elements in the trap focus or the focus was outside of the focus trap\n      } else {\n        rootElement.focus();\n      }\n    };\n    doc.addEventListener('focusin', contain);\n    doc.addEventListener('keydown', loopFocus, true);\n\n    // With Edge, Safari and Firefox, no focus related events are fired when the focused area stops being a focused area.\n    // for example https://bugzilla.mozilla.org/show_bug.cgi?id=559561.\n    // Instead, we can look if the active element was restored on the BODY element.\n    //\n    // The whatwg spec defines how the browser should behave but does not explicitly mention any events:\n    // https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.\n    const interval = setInterval(() => {\n      if (doc.activeElement && doc.activeElement.tagName === 'BODY') {\n        contain();\n      }\n    }, 50);\n    return () => {\n      clearInterval(interval);\n      doc.removeEventListener('focusin', contain);\n      doc.removeEventListener('keydown', loopFocus, true);\n    };\n  }, [disableAutoFocus, disableEnforceFocus, disableRestoreFocus, isEnabled, open, getTabbable]);\n  const onFocus = event => {\n    if (nodeToRestore.current === null) {\n      nodeToRestore.current = event.relatedTarget;\n    }\n    activated.current = true;\n    reactFocusEventTarget.current = event.target;\n    const childrenPropsHandler = children.props.onFocus;\n    if (childrenPropsHandler) {\n      childrenPropsHandler(event);\n    }\n  };\n  const handleFocusSentinel = event => {\n    if (nodeToRestore.current === null) {\n      nodeToRestore.current = event.relatedTarget;\n    }\n    activated.current = true;\n  };\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"div\", {\n      tabIndex: open ? 0 : -1,\n      onFocus: handleFocusSentinel,\n      ref: sentinelStart,\n      \"data-testid\": \"sentinelStart\"\n    }), /*#__PURE__*/React.cloneElement(children, {\n      ref: handleRef,\n      onFocus\n    }), /*#__PURE__*/_jsx(\"div\", {\n      tabIndex: open ? 0 : -1,\n      onFocus: handleFocusSentinel,\n      ref: sentinelEnd,\n      \"data-testid\": \"sentinelEnd\"\n    })]\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? FocusTrap.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * A single child content element.\n   */\n  children: elementAcceptingRef,\n  /**\n   * If `true`, the focus trap will not automatically shift focus to itself when it opens, and\n   * replace it to the last focused element when it closes.\n   * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.\n   *\n   * Generally this should never be set to `true` as it makes the focus trap less\n   * accessible to assistive technologies, like screen readers.\n   * @default false\n   */\n  disableAutoFocus: PropTypes.bool,\n  /**\n   * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.\n   *\n   * Generally this should never be set to `true` as it makes the focus trap less\n   * accessible to assistive technologies, like screen readers.\n   * @default false\n   */\n  disableEnforceFocus: PropTypes.bool,\n  /**\n   * If `true`, the focus trap will not restore focus to previously focused element once\n   * focus trap is hidden or unmounted.\n   * @default false\n   */\n  disableRestoreFocus: PropTypes.bool,\n  /**\n   * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.\n   * For instance, you can provide the \"tabbable\" npm dependency.\n   * @param {HTMLElement} root\n   */\n  getTabbable: PropTypes.func,\n  /**\n   * This prop extends the `open` prop.\n   * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.\n   * This prop should be memoized.\n   * It can be used to support multiple focus trap mounted at the same time.\n   * @default function defaultIsEnabled(): boolean {\n   *   return true;\n   * }\n   */\n  isEnabled: PropTypes.func,\n  /**\n   * If `true`, focus is locked.\n   */\n  open: PropTypes.bool.isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line\n  FocusTrap['propTypes' + ''] = exactProp(FocusTrap.propTypes);\n}\nexport default FocusTrap;","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef, unstable_getReactElementRef as getReactElementRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n  return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/material-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/material-ui/api/portal/)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n  const {\n    children,\n    container,\n    disablePortal = false\n  } = props;\n  const [mountNode, setMountNode] = React.useState(null);\n  const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? getReactElementRef(children) : null, forwardedRef);\n  useEnhancedEffect(() => {\n    if (!disablePortal) {\n      setMountNode(getContainer(container) || document.body);\n    }\n  }, [container, disablePortal]);\n  useEnhancedEffect(() => {\n    if (mountNode && !disablePortal) {\n      setRef(forwardedRef, mountNode);\n      return () => {\n        setRef(forwardedRef, null);\n      };\n    }\n    return undefined;\n  }, [forwardedRef, mountNode, disablePortal]);\n  if (disablePortal) {\n    if ( /*#__PURE__*/React.isValidElement(children)) {\n      const newProps = {\n        ref: handleRef\n      };\n      return /*#__PURE__*/React.cloneElement(children, newProps);\n    }\n    return /*#__PURE__*/_jsx(React.Fragment, {\n      children: children\n    });\n  }\n  return /*#__PURE__*/_jsx(React.Fragment, {\n    children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The children to render into the `container`.\n   */\n  children: PropTypes.node,\n  /**\n   * An HTML element or function that returns one.\n   * The `container` will have the portal children appended to it.\n   *\n   * You can also provide a callback, which is called in a React layout effect.\n   * This lets you set the container from a ref, and also makes server-side rendering possible.\n   *\n   * By default, it uses the body of the top-level document object,\n   * so it's simply `document.body` most of the time.\n   */\n  container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n  /**\n   * The `children` will be under the DOM hierarchy of the parent component.\n   * @default false\n   */\n  disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line\n  Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport default Portal;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport useTheme from '../styles/useTheme';\nimport { reflow, getTransitionProps } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst styles = {\n  entering: {\n    opacity: 1\n  },\n  entered: {\n    opacity: 1\n  }\n};\n\n/**\n * The Fade transition is used by the [Modal](/material-ui/react-modal/) component.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {\n  const theme = useTheme();\n  const defaultTimeout = {\n    enter: theme.transitions.duration.enteringScreen,\n    exit: theme.transitions.duration.leavingScreen\n  };\n  const {\n      addEndListener,\n      appear = true,\n      children,\n      easing,\n      in: inProp,\n      onEnter,\n      onEntered,\n      onEntering,\n      onExit,\n      onExited,\n      onExiting,\n      style,\n      timeout = defaultTimeout,\n      // eslint-disable-next-line react/prop-types\n      TransitionComponent = Transition\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const enableStrictModeCompat = true;\n  const nodeRef = React.useRef(null);\n  const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n  const normalizedTransitionCallback = callback => maybeIsAppearing => {\n    if (callback) {\n      const node = nodeRef.current;\n\n      // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n      if (maybeIsAppearing === undefined) {\n        callback(node);\n      } else {\n        callback(node, maybeIsAppearing);\n      }\n    }\n  };\n  const handleEntering = normalizedTransitionCallback(onEntering);\n  const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n    reflow(node); // So the animation always start from the start.\n\n    const transitionProps = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'enter'\n    });\n    node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n    node.style.transition = theme.transitions.create('opacity', transitionProps);\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback(onEntered);\n  const handleExiting = normalizedTransitionCallback(onExiting);\n  const handleExit = normalizedTransitionCallback(node => {\n    const transitionProps = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'exit'\n    });\n    node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);\n    node.style.transition = theme.transitions.create('opacity', transitionProps);\n    if (onExit) {\n      onExit(node);\n    }\n  });\n  const handleExited = normalizedTransitionCallback(onExited);\n  const handleAddEndListener = next => {\n    if (addEndListener) {\n      // Old call signature before `react-transition-group` implemented `nodeRef`\n      addEndListener(nodeRef.current, next);\n    }\n  };\n  return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    appear: appear,\n    in: inProp,\n    nodeRef: enableStrictModeCompat ? nodeRef : undefined,\n    onEnter: handleEnter,\n    onEntered: handleEntered,\n    onEntering: handleEntering,\n    onExit: handleExit,\n    onExited: handleExited,\n    onExiting: handleExiting,\n    addEndListener: handleAddEndListener,\n    timeout: timeout\n  }, other, {\n    children: (state, childProps) => {\n      return /*#__PURE__*/React.cloneElement(children, _extends({\n        style: _extends({\n          opacity: 0,\n          visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n        }, styles[state], style, children.props.style),\n        ref: handleRef\n      }, childProps));\n    }\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Fade.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Add a custom transition end trigger. Called with the transitioning DOM\n   * node and a done callback. Allows for more fine grained transition end\n   * logic. Note: Timeouts are still used as a fallback if provided.\n   */\n  addEndListener: PropTypes.func,\n  /**\n   * Perform the enter transition when it first mounts if `in` is also `true`.\n   * Set this to `false` to disable this behavior.\n   * @default true\n   */\n  appear: PropTypes.bool,\n  /**\n   * A single child content element.\n   */\n  children: elementAcceptingRef.isRequired,\n  /**\n   * The transition timing function.\n   * You may specify a single easing or a object containing enter and exit values.\n   */\n  easing: PropTypes.oneOfType([PropTypes.shape({\n    enter: PropTypes.string,\n    exit: PropTypes.string\n  }), PropTypes.string]),\n  /**\n   * If `true`, the component will transition in.\n   */\n  in: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  onEnter: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntered: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onEntering: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExit: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExited: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onExiting: PropTypes.func,\n  /**\n   * @ignore\n   */\n  style: PropTypes.object,\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   * @default {\n   *   enter: theme.transitions.duration.enteringScreen,\n   *   exit: theme.transitions.duration.leavingScreen,\n   * }\n   */\n  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })])\n} : void 0;\nexport default Fade;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBackdropUtilityClass(slot) {\n  return generateUtilityClass('MuiBackdrop', slot);\n}\nconst backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);\nexport default backdropClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"component\", \"components\", \"componentsProps\", \"invisible\", \"open\", \"slotProps\", \"slots\", \"TransitionComponent\", \"transitionDuration\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Fade from '../Fade';\nimport { getBackdropUtilityClass } from './backdropClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    invisible\n  } = ownerState;\n  const slots = {\n    root: ['root', invisible && 'invisible']\n  };\n  return composeClasses(slots, getBackdropUtilityClass, classes);\n};\nconst BackdropRoot = styled('div', {\n  name: 'MuiBackdrop',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.invisible && styles.invisible];\n  }\n})(({\n  ownerState\n}) => _extends({\n  position: 'fixed',\n  display: 'flex',\n  alignItems: 'center',\n  justifyContent: 'center',\n  right: 0,\n  bottom: 0,\n  top: 0,\n  left: 0,\n  backgroundColor: 'rgba(0, 0, 0, 0.5)',\n  WebkitTapHighlightColor: 'transparent'\n}, ownerState.invisible && {\n  backgroundColor: 'transparent'\n}));\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n  var _slotProps$root, _ref, _slots$root;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiBackdrop'\n  });\n  const {\n      children,\n      className,\n      component = 'div',\n      components = {},\n      componentsProps = {},\n      invisible = false,\n      open,\n      slotProps = {},\n      slots = {},\n      TransitionComponent = Fade,\n      transitionDuration\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    component,\n    invisible\n  });\n  const classes = useUtilityClasses(ownerState);\n  const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;\n  return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n    in: open,\n    timeout: transitionDuration\n  }, other, {\n    children: /*#__PURE__*/_jsx(BackdropRoot, _extends({\n      \"aria-hidden\": true\n    }, rootSlotProps, {\n      as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,\n      className: clsx(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),\n      ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),\n      classes: classes,\n      ref: ref,\n      children: children\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Backdrop.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `slotProps` prop.\n   * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    root: PropTypes.object\n  }),\n  /**\n   * If `true`, the backdrop is invisible.\n   * It can be used when rendering a popover or a custom select component.\n   * @default false\n   */\n  invisible: PropTypes.bool,\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    root: PropTypes.object\n  }),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `components` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    root: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The component used for the transition.\n   * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @default Fade\n   */\n  TransitionComponent: PropTypes.elementType,\n  /**\n   * The duration for the transition, in milliseconds.\n   * You may specify a single timeout for all transitions, or individually with an object.\n   */\n  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n    appear: PropTypes.number,\n    enter: PropTypes.number,\n    exit: PropTypes.number\n  })])\n} : void 0;\nexport default Backdrop;","import { unstable_ownerWindow as ownerWindow, unstable_ownerDocument as ownerDocument, unstable_getScrollbarSize as getScrollbarSize } from '@mui/utils';\n// Is a vertical scrollbar displayed?\nfunction isOverflowing(container) {\n  const doc = ownerDocument(container);\n  if (doc.body === container) {\n    return ownerWindow(container).innerWidth > doc.documentElement.clientWidth;\n  }\n  return container.scrollHeight > container.clientHeight;\n}\nexport function ariaHidden(element, show) {\n  if (show) {\n    element.setAttribute('aria-hidden', 'true');\n  } else {\n    element.removeAttribute('aria-hidden');\n  }\n}\nfunction getPaddingRight(element) {\n  return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight, 10) || 0;\n}\nfunction isAriaHiddenForbiddenOnElement(element) {\n  // The forbidden HTML tags are the ones from ARIA specification that\n  // can be children of body and can't have aria-hidden attribute.\n  // cf. https://www.w3.org/TR/html-aria/#docconformance\n  const forbiddenTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE', 'LINK', 'MAP', 'META', 'NOSCRIPT', 'PICTURE', 'COL', 'COLGROUP', 'PARAM', 'SLOT', 'SOURCE', 'TRACK'];\n  const isForbiddenTagName = forbiddenTagNames.indexOf(element.tagName) !== -1;\n  const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';\n  return isForbiddenTagName || isInputHidden;\n}\nfunction ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, show) {\n  const blacklist = [mountElement, currentElement, ...elementsToExclude];\n  [].forEach.call(container.children, element => {\n    const isNotExcludedElement = blacklist.indexOf(element) === -1;\n    const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);\n    if (isNotExcludedElement && isNotForbiddenElement) {\n      ariaHidden(element, show);\n    }\n  });\n}\nfunction findIndexOf(items, callback) {\n  let idx = -1;\n  items.some((item, index) => {\n    if (callback(item)) {\n      idx = index;\n      return true;\n    }\n    return false;\n  });\n  return idx;\n}\nfunction handleContainer(containerInfo, props) {\n  const restoreStyle = [];\n  const container = containerInfo.container;\n  if (!props.disableScrollLock) {\n    if (isOverflowing(container)) {\n      // Compute the size before applying overflow hidden to avoid any scroll jumps.\n      const scrollbarSize = getScrollbarSize(ownerDocument(container));\n      restoreStyle.push({\n        value: container.style.paddingRight,\n        property: 'padding-right',\n        el: container\n      });\n      // Use computed style, here to get the real padding to add our scrollbar width.\n      container.style.paddingRight = `${getPaddingRight(container) + scrollbarSize}px`;\n\n      // .mui-fixed is a global helper.\n      const fixedElements = ownerDocument(container).querySelectorAll('.mui-fixed');\n      [].forEach.call(fixedElements, element => {\n        restoreStyle.push({\n          value: element.style.paddingRight,\n          property: 'padding-right',\n          el: element\n        });\n        element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;\n      });\n    }\n    let scrollContainer;\n    if (container.parentNode instanceof DocumentFragment) {\n      scrollContainer = ownerDocument(container).body;\n    } else {\n      // Support html overflow-y: auto for scroll stability between pages\n      // https://css-tricks.com/snippets/css/force-vertical-scrollbar/\n      const parent = container.parentElement;\n      const containerWindow = ownerWindow(container);\n      scrollContainer = (parent == null ? void 0 : parent.nodeName) === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;\n    }\n\n    // Block the scroll even if no scrollbar is visible to account for mobile keyboard\n    // screensize shrink.\n    restoreStyle.push({\n      value: scrollContainer.style.overflow,\n      property: 'overflow',\n      el: scrollContainer\n    }, {\n      value: scrollContainer.style.overflowX,\n      property: 'overflow-x',\n      el: scrollContainer\n    }, {\n      value: scrollContainer.style.overflowY,\n      property: 'overflow-y',\n      el: scrollContainer\n    });\n    scrollContainer.style.overflow = 'hidden';\n  }\n  const restore = () => {\n    restoreStyle.forEach(({\n      value,\n      el,\n      property\n    }) => {\n      if (value) {\n        el.style.setProperty(property, value);\n      } else {\n        el.style.removeProperty(property);\n      }\n    });\n  };\n  return restore;\n}\nfunction getHiddenSiblings(container) {\n  const hiddenSiblings = [];\n  [].forEach.call(container.children, element => {\n    if (element.getAttribute('aria-hidden') === 'true') {\n      hiddenSiblings.push(element);\n    }\n  });\n  return hiddenSiblings;\n}\n/**\n * @ignore - do not document.\n *\n * Proper state management for containers and the modals in those containers.\n * Simplified, but inspired by react-overlay's ModalManager class.\n * Used by the Modal to ensure proper styling of containers.\n */\nexport class ModalManager {\n  constructor() {\n    this.containers = void 0;\n    this.modals = void 0;\n    this.modals = [];\n    this.containers = [];\n  }\n  add(modal, container) {\n    let modalIndex = this.modals.indexOf(modal);\n    if (modalIndex !== -1) {\n      return modalIndex;\n    }\n    modalIndex = this.modals.length;\n    this.modals.push(modal);\n\n    // If the modal we are adding is already in the DOM.\n    if (modal.modalRef) {\n      ariaHidden(modal.modalRef, false);\n    }\n    const hiddenSiblings = getHiddenSiblings(container);\n    ariaHiddenSiblings(container, modal.mount, modal.modalRef, hiddenSiblings, true);\n    const containerIndex = findIndexOf(this.containers, item => item.container === container);\n    if (containerIndex !== -1) {\n      this.containers[containerIndex].modals.push(modal);\n      return modalIndex;\n    }\n    this.containers.push({\n      modals: [modal],\n      container,\n      restore: null,\n      hiddenSiblings\n    });\n    return modalIndex;\n  }\n  mount(modal, props) {\n    const containerIndex = findIndexOf(this.containers, item => item.modals.indexOf(modal) !== -1);\n    const containerInfo = this.containers[containerIndex];\n    if (!containerInfo.restore) {\n      containerInfo.restore = handleContainer(containerInfo, props);\n    }\n  }\n  remove(modal, ariaHiddenState = true) {\n    const modalIndex = this.modals.indexOf(modal);\n    if (modalIndex === -1) {\n      return modalIndex;\n    }\n    const containerIndex = findIndexOf(this.containers, item => item.modals.indexOf(modal) !== -1);\n    const containerInfo = this.containers[containerIndex];\n    containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);\n    this.modals.splice(modalIndex, 1);\n\n    // If that was the last modal in a container, clean up the container.\n    if (containerInfo.modals.length === 0) {\n      // The modal might be closed before it had the chance to be mounted in the DOM.\n      if (containerInfo.restore) {\n        containerInfo.restore();\n      }\n      if (modal.modalRef) {\n        // In case the modal wasn't in the DOM yet.\n        ariaHidden(modal.modalRef, ariaHiddenState);\n      }\n      ariaHiddenSiblings(containerInfo.container, modal.mount, modal.modalRef, containerInfo.hiddenSiblings, false);\n      this.containers.splice(containerIndex, 1);\n    } else {\n      // Otherwise make sure the next top modal is visible to a screen reader.\n      const nextTop = containerInfo.modals[containerInfo.modals.length - 1];\n      // as soon as a modal is adding its modalRef is undefined. it can't set\n      // aria-hidden because the dom element doesn't exist either\n      // when modal was unmounted before modalRef gets null\n      if (nextTop.modalRef) {\n        ariaHidden(nextTop.modalRef, false);\n      }\n    }\n    return modalIndex;\n  }\n  isTopModal(modal) {\n    return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;\n  }\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_ownerDocument as ownerDocument, unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback, unstable_createChainedFunction as createChainedFunction } from '@mui/utils';\nimport extractEventHandlers from '@mui/utils/extractEventHandlers';\nimport { ModalManager, ariaHidden } from './ModalManager';\nfunction getContainer(container) {\n  return typeof container === 'function' ? container() : container;\n}\nfunction getHasTransition(children) {\n  return children ? children.props.hasOwnProperty('in') : false;\n}\n\n// A modal manager used to track and manage the state of open Modals.\n// Modals don't open on the server so this won't conflict with concurrent requests.\nconst defaultManager = new ModalManager();\n/**\n *\n * Demos:\n *\n * - [Modal](https://mui.com/base-ui/react-modal/#hook)\n *\n * API:\n *\n * - [useModal API](https://mui.com/base-ui/react-modal/hooks-api/#use-modal)\n */\nfunction useModal(parameters) {\n  const {\n    container,\n    disableEscapeKeyDown = false,\n    disableScrollLock = false,\n    // @ts-ignore internal logic - Base UI supports the manager as a prop too\n    manager = defaultManager,\n    closeAfterTransition = false,\n    onTransitionEnter,\n    onTransitionExited,\n    children,\n    onClose,\n    open,\n    rootRef\n  } = parameters;\n\n  // @ts-ignore internal logic\n  const modal = React.useRef({});\n  const mountNodeRef = React.useRef(null);\n  const modalRef = React.useRef(null);\n  const handleRef = useForkRef(modalRef, rootRef);\n  const [exited, setExited] = React.useState(!open);\n  const hasTransition = getHasTransition(children);\n  let ariaHiddenProp = true;\n  if (parameters['aria-hidden'] === 'false' || parameters['aria-hidden'] === false) {\n    ariaHiddenProp = false;\n  }\n  const getDoc = () => ownerDocument(mountNodeRef.current);\n  const getModal = () => {\n    modal.current.modalRef = modalRef.current;\n    modal.current.mount = mountNodeRef.current;\n    return modal.current;\n  };\n  const handleMounted = () => {\n    manager.mount(getModal(), {\n      disableScrollLock\n    });\n\n    // Fix a bug on Chrome where the scroll isn't initially 0.\n    if (modalRef.current) {\n      modalRef.current.scrollTop = 0;\n    }\n  };\n  const handleOpen = useEventCallback(() => {\n    const resolvedContainer = getContainer(container) || getDoc().body;\n    manager.add(getModal(), resolvedContainer);\n\n    // The element was already mounted.\n    if (modalRef.current) {\n      handleMounted();\n    }\n  });\n  const isTopModal = React.useCallback(() => manager.isTopModal(getModal()), [manager]);\n  const handlePortalRef = useEventCallback(node => {\n    mountNodeRef.current = node;\n    if (!node) {\n      return;\n    }\n    if (open && isTopModal()) {\n      handleMounted();\n    } else if (modalRef.current) {\n      ariaHidden(modalRef.current, ariaHiddenProp);\n    }\n  });\n  const handleClose = React.useCallback(() => {\n    manager.remove(getModal(), ariaHiddenProp);\n  }, [ariaHiddenProp, manager]);\n  React.useEffect(() => {\n    return () => {\n      handleClose();\n    };\n  }, [handleClose]);\n  React.useEffect(() => {\n    if (open) {\n      handleOpen();\n    } else if (!hasTransition || !closeAfterTransition) {\n      handleClose();\n    }\n  }, [open, handleClose, hasTransition, closeAfterTransition, handleOpen]);\n  const createHandleKeyDown = otherHandlers => event => {\n    var _otherHandlers$onKeyD;\n    (_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null || _otherHandlers$onKeyD.call(otherHandlers, event);\n\n    // The handler doesn't take event.defaultPrevented into account:\n    //\n    // event.preventDefault() is meant to stop default behaviors like\n    // clicking a checkbox to check it, hitting a button to submit a form,\n    // and hitting left arrow to move the cursor in a text input etc.\n    // Only special HTML elements have these default behaviors.\n    if (event.key !== 'Escape' || event.which === 229 ||\n    // Wait until IME is settled.\n    !isTopModal()) {\n      return;\n    }\n    if (!disableEscapeKeyDown) {\n      // Swallow the event, in case someone is listening for the escape key on the body.\n      event.stopPropagation();\n      if (onClose) {\n        onClose(event, 'escapeKeyDown');\n      }\n    }\n  };\n  const createHandleBackdropClick = otherHandlers => event => {\n    var _otherHandlers$onClic;\n    (_otherHandlers$onClic = otherHandlers.onClick) == null || _otherHandlers$onClic.call(otherHandlers, event);\n    if (event.target !== event.currentTarget) {\n      return;\n    }\n    if (onClose) {\n      onClose(event, 'backdropClick');\n    }\n  };\n  const getRootProps = (otherHandlers = {}) => {\n    const propsEventHandlers = extractEventHandlers(parameters);\n\n    // The custom event handlers shouldn't be spread on the root element\n    delete propsEventHandlers.onTransitionEnter;\n    delete propsEventHandlers.onTransitionExited;\n    const externalEventHandlers = _extends({}, propsEventHandlers, otherHandlers);\n    return _extends({\n      role: 'presentation'\n    }, externalEventHandlers, {\n      onKeyDown: createHandleKeyDown(externalEventHandlers),\n      ref: handleRef\n    });\n  };\n  const getBackdropProps = (otherHandlers = {}) => {\n    const externalEventHandlers = otherHandlers;\n    return _extends({\n      'aria-hidden': true\n    }, externalEventHandlers, {\n      onClick: createHandleBackdropClick(externalEventHandlers),\n      open\n    });\n  };\n  const getTransitionProps = () => {\n    const handleEnter = () => {\n      setExited(false);\n      if (onTransitionEnter) {\n        onTransitionEnter();\n      }\n    };\n    const handleExited = () => {\n      setExited(true);\n      if (onTransitionExited) {\n        onTransitionExited();\n      }\n      if (closeAfterTransition) {\n        handleClose();\n      }\n    };\n    return {\n      onEnter: createChainedFunction(handleEnter, children == null ? void 0 : children.props.onEnter),\n      onExited: createChainedFunction(handleExited, children == null ? void 0 : children.props.onExited)\n    };\n  };\n  return {\n    getRootProps,\n    getBackdropProps,\n    getTransitionProps,\n    rootRef: handleRef,\n    portalRef: handlePortalRef,\n    isTopModal,\n    exited,\n    hasTransition\n  };\n}\nexport default useModal;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getModalUtilityClass(slot) {\n  return generateUtilityClass('MuiModal', slot);\n}\nconst modalClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);\nexport default modalClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"BackdropComponent\", \"BackdropProps\", \"classes\", \"className\", \"closeAfterTransition\", \"children\", \"container\", \"component\", \"components\", \"componentsProps\", \"disableAutoFocus\", \"disableEnforceFocus\", \"disableEscapeKeyDown\", \"disablePortal\", \"disableRestoreFocus\", \"disableScrollLock\", \"hideBackdrop\", \"keepMounted\", \"onBackdropClick\", \"onClose\", \"onTransitionEnter\", \"onTransitionExited\", \"open\", \"slotProps\", \"slots\", \"theme\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport FocusTrap from '../Unstable_TrapFocus';\nimport Portal from '../Portal';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Backdrop from '../Backdrop';\nimport useModal from './useModal';\nimport { getModalUtilityClass } from './modalClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    open,\n    exited,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', !open && exited && 'hidden'],\n    backdrop: ['backdrop']\n  };\n  return composeClasses(slots, getModalUtilityClass, classes);\n};\nconst ModalRoot = styled('div', {\n  name: 'MuiModal',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  position: 'fixed',\n  zIndex: (theme.vars || theme).zIndex.modal,\n  right: 0,\n  bottom: 0,\n  top: 0,\n  left: 0\n}, !ownerState.open && ownerState.exited && {\n  visibility: 'hidden'\n}));\nconst ModalBackdrop = styled(Backdrop, {\n  name: 'MuiModal',\n  slot: 'Backdrop',\n  overridesResolver: (props, styles) => {\n    return styles.backdrop;\n  }\n})({\n  zIndex: -1\n});\n\n/**\n * Modal is a lower-level construct that is leveraged by the following components:\n *\n * - [Dialog](/material-ui/api/dialog/)\n * - [Drawer](/material-ui/api/drawer/)\n * - [Menu](/material-ui/api/menu/)\n * - [Popover](/material-ui/api/popover/)\n *\n * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component\n * rather than directly using Modal.\n *\n * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).\n */\nconst Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {\n  var _ref, _slots$root, _ref2, _slots$backdrop, _slotProps$root, _slotProps$backdrop;\n  const props = useDefaultProps({\n    name: 'MuiModal',\n    props: inProps\n  });\n  const {\n      BackdropComponent = ModalBackdrop,\n      BackdropProps,\n      className,\n      closeAfterTransition = false,\n      children,\n      container,\n      component,\n      components = {},\n      componentsProps = {},\n      disableAutoFocus = false,\n      disableEnforceFocus = false,\n      disableEscapeKeyDown = false,\n      disablePortal = false,\n      disableRestoreFocus = false,\n      disableScrollLock = false,\n      hideBackdrop = false,\n      keepMounted = false,\n      onBackdropClick,\n      open,\n      slotProps,\n      slots\n      // eslint-disable-next-line react/prop-types\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const propsWithDefaults = _extends({}, props, {\n    closeAfterTransition,\n    disableAutoFocus,\n    disableEnforceFocus,\n    disableEscapeKeyDown,\n    disablePortal,\n    disableRestoreFocus,\n    disableScrollLock,\n    hideBackdrop,\n    keepMounted\n  });\n  const {\n    getRootProps,\n    getBackdropProps,\n    getTransitionProps,\n    portalRef,\n    isTopModal,\n    exited,\n    hasTransition\n  } = useModal(_extends({}, propsWithDefaults, {\n    rootRef: ref\n  }));\n  const ownerState = _extends({}, propsWithDefaults, {\n    exited\n  });\n  const classes = useUtilityClasses(ownerState);\n  const childProps = {};\n  if (children.props.tabIndex === undefined) {\n    childProps.tabIndex = '-1';\n  }\n\n  // It's a Transition like component\n  if (hasTransition) {\n    const {\n      onEnter,\n      onExited\n    } = getTransitionProps();\n    childProps.onEnter = onEnter;\n    childProps.onExited = onExited;\n  }\n  const RootSlot = (_ref = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref : ModalRoot;\n  const BackdropSlot = (_ref2 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref2 : BackdropComponent;\n  const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;\n  const backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;\n  const rootProps = useSlotProps({\n    elementType: RootSlot,\n    externalSlotProps: rootSlotProps,\n    externalForwardedProps: other,\n    getSlotProps: getRootProps,\n    additionalProps: {\n      ref,\n      as: component\n    },\n    ownerState,\n    className: clsx(className, rootSlotProps == null ? void 0 : rootSlotProps.className, classes == null ? void 0 : classes.root, !ownerState.open && ownerState.exited && (classes == null ? void 0 : classes.hidden))\n  });\n  const backdropProps = useSlotProps({\n    elementType: BackdropSlot,\n    externalSlotProps: backdropSlotProps,\n    additionalProps: BackdropProps,\n    getSlotProps: otherHandlers => {\n      return getBackdropProps(_extends({}, otherHandlers, {\n        onClick: e => {\n          if (onBackdropClick) {\n            onBackdropClick(e);\n          }\n          if (otherHandlers != null && otherHandlers.onClick) {\n            otherHandlers.onClick(e);\n          }\n        }\n      }));\n    },\n    className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop),\n    ownerState\n  });\n  if (!keepMounted && !open && (!hasTransition || exited)) {\n    return null;\n  }\n  return /*#__PURE__*/_jsx(Portal, {\n    ref: portalRef,\n    container: container,\n    disablePortal: disablePortal,\n    children: /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {\n      children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/_jsx(BackdropSlot, _extends({}, backdropProps)) : null, /*#__PURE__*/_jsx(FocusTrap, {\n        disableEnforceFocus: disableEnforceFocus,\n        disableAutoFocus: disableAutoFocus,\n        disableRestoreFocus: disableRestoreFocus,\n        isEnabled: isTopModal,\n        open: open,\n        children: /*#__PURE__*/React.cloneElement(children, childProps)\n      })]\n    }))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Modal.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * A backdrop component. This prop enables custom backdrop rendering.\n   * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.\n   * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.\n   * @default styled(Backdrop, {\n   *   name: 'MuiModal',\n   *   slot: 'Backdrop',\n   *   overridesResolver: (props, styles) => {\n   *     return styles.backdrop;\n   *   },\n   * })({\n   *   zIndex: -1,\n   * })\n   */\n  BackdropComponent: PropTypes.elementType,\n  /**\n   * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.\n   * @deprecated Use `slotProps.backdrop` instead.\n   */\n  BackdropProps: PropTypes.object,\n  /**\n   * A single child content element.\n   */\n  children: elementAcceptingRef.isRequired,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * When set to true the Modal waits until a nested Transition is completed before closing.\n   * @default false\n   */\n  closeAfterTransition: PropTypes.bool,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Backdrop: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The extra props for the slot components.\n   * You can override the existing props or add new ones.\n   *\n   * This prop is an alias for the `slotProps` prop.\n   * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * An HTML element or function that returns one.\n   * The `container` will have the portal children appended to it.\n   *\n   * You can also provide a callback, which is called in a React layout effect.\n   * This lets you set the container from a ref, and also makes server-side rendering possible.\n   *\n   * By default, it uses the body of the top-level document object,\n   * so it's simply `document.body` most of the time.\n   */\n  container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n  /**\n   * If `true`, the modal will not automatically shift focus to itself when it opens, and\n   * replace it to the last focused element when it closes.\n   * This also works correctly with any modal children that have the `disableAutoFocus` prop.\n   *\n   * Generally this should never be set to `true` as it makes the modal less\n   * accessible to assistive technologies, like screen readers.\n   * @default false\n   */\n  disableAutoFocus: PropTypes.bool,\n  /**\n   * If `true`, the modal will not prevent focus from leaving the modal while open.\n   *\n   * Generally this should never be set to `true` as it makes the modal less\n   * accessible to assistive technologies, like screen readers.\n   * @default false\n   */\n  disableEnforceFocus: PropTypes.bool,\n  /**\n   * If `true`, hitting escape will not fire the `onClose` callback.\n   * @default false\n   */\n  disableEscapeKeyDown: PropTypes.bool,\n  /**\n   * The `children` will be under the DOM hierarchy of the parent component.\n   * @default false\n   */\n  disablePortal: PropTypes.bool,\n  /**\n   * If `true`, the modal will not restore focus to previously focused element once\n   * modal is hidden or unmounted.\n   * @default false\n   */\n  disableRestoreFocus: PropTypes.bool,\n  /**\n   * Disable the scroll lock behavior.\n   * @default false\n   */\n  disableScrollLock: PropTypes.bool,\n  /**\n   * If `true`, the backdrop is not rendered.\n   * @default false\n   */\n  hideBackdrop: PropTypes.bool,\n  /**\n   * Always keep the children in the DOM.\n   * This prop can be useful in SEO situation or\n   * when you want to maximize the responsiveness of the Modal.\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * Callback fired when the backdrop is clicked.\n   * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.\n   */\n  onBackdropClick: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be closed.\n   * The `reason` parameter can optionally be used to control the response to `onClose`.\n   *\n   * @param {object} event The event source of the callback.\n   * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`.\n   */\n  onClose: PropTypes.func,\n  /**\n   * A function called when a transition enters.\n   */\n  onTransitionEnter: PropTypes.func,\n  /**\n   * A function called when a transition has exited.\n   */\n  onTransitionExited: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * The props used for each slot inside the Modal.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Modal.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    backdrop: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Modal;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _span;\nconst _excluded = [\"children\", \"classes\", \"className\", \"label\", \"notched\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NotchedOutlineRoot = styled('fieldset', {\n  name: 'MuiNotchedOutlined',\n  shouldForwardProp: rootShouldForwardProp\n})({\n  textAlign: 'left',\n  position: 'absolute',\n  bottom: 0,\n  right: 0,\n  top: -5,\n  left: 0,\n  margin: 0,\n  padding: '0 8px',\n  pointerEvents: 'none',\n  borderRadius: 'inherit',\n  borderStyle: 'solid',\n  borderWidth: 1,\n  overflow: 'hidden',\n  minWidth: '0%'\n});\nconst NotchedOutlineLegend = styled('legend', {\n  name: 'MuiNotchedOutlined',\n  shouldForwardProp: rootShouldForwardProp\n})(({\n  ownerState,\n  theme\n}) => _extends({\n  float: 'unset',\n  // Fix conflict with bootstrap\n  width: 'auto',\n  // Fix conflict with bootstrap\n  overflow: 'hidden'\n}, !ownerState.withLabel && {\n  padding: 0,\n  lineHeight: '11px',\n  // sync with `height` in `legend` styles\n  transition: theme.transitions.create('width', {\n    duration: 150,\n    easing: theme.transitions.easing.easeOut\n  })\n}, ownerState.withLabel && _extends({\n  display: 'block',\n  // Fix conflict with normalize.css and sanitize.css\n  padding: 0,\n  height: 11,\n  // sync with `lineHeight` in `legend` styles\n  fontSize: '0.75em',\n  visibility: 'hidden',\n  maxWidth: 0.01,\n  transition: theme.transitions.create('max-width', {\n    duration: 50,\n    easing: theme.transitions.easing.easeOut\n  }),\n  whiteSpace: 'nowrap',\n  '& > span': {\n    paddingLeft: 5,\n    paddingRight: 5,\n    display: 'inline-block',\n    opacity: 0,\n    visibility: 'visible'\n  }\n}, ownerState.notched && {\n  maxWidth: '100%',\n  transition: theme.transitions.create('max-width', {\n    duration: 100,\n    easing: theme.transitions.easing.easeOut,\n    delay: 50\n  })\n})));\n\n/**\n * @ignore - internal component.\n */\nexport default function NotchedOutline(props) {\n  const {\n      className,\n      label,\n      notched\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const withLabel = label != null && label !== '';\n  const ownerState = _extends({}, props, {\n    notched,\n    withLabel\n  });\n  return /*#__PURE__*/_jsx(NotchedOutlineRoot, _extends({\n    \"aria-hidden\": true,\n    className: className,\n    ownerState: ownerState\n  }, other, {\n    children: /*#__PURE__*/_jsx(NotchedOutlineLegend, {\n      ownerState: ownerState,\n      children: withLabel ? /*#__PURE__*/_jsx(\"span\", {\n        children: label\n      }) : // notranslate needed while Google Translate will not fix zero-width space issue\n      _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n        className: \"notranslate\",\n        children: \"\\u200B\"\n      }))\n    })\n  }));\n}\nprocess.env.NODE_ENV !== \"production\" ? NotchedOutline.propTypes = {\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The label.\n   */\n  label: PropTypes.node,\n  /**\n   * If `true`, the outline is notched to accommodate the label.\n   */\n  notched: PropTypes.bool.isRequired,\n  /**\n   * @ignore\n   */\n  style: PropTypes.object\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { inputBaseClasses } from '../InputBase';\nexport function getOutlinedInputUtilityClass(slot) {\n  return generateUtilityClass('MuiOutlinedInput', slot);\n}\nconst outlinedInputClasses = _extends({}, inputBaseClasses, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));\nexport default outlinedInputClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"components\", \"fullWidth\", \"inputComponent\", \"label\", \"multiline\", \"notched\", \"slots\", \"type\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport NotchedOutline from './NotchedOutline';\nimport useFormControl from '../FormControl/useFormControl';\nimport formControlState from '../FormControl/formControlState';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport outlinedInputClasses, { getOutlinedInputUtilityClass } from './outlinedInputClasses';\nimport InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseComponent as InputBaseInput } from '../InputBase/InputBase';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    notchedOutline: ['notchedOutline'],\n    input: ['input']\n  };\n  const composedClasses = composeClasses(slots, getOutlinedInputUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst OutlinedInputRoot = styled(InputBaseRoot, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiOutlinedInput',\n  slot: 'Root',\n  overridesResolver: inputBaseRootOverridesResolver\n})(({\n  theme,\n  ownerState\n}) => {\n  const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n  return _extends({\n    position: 'relative',\n    borderRadius: (theme.vars || theme).shape.borderRadius,\n    [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n      borderColor: (theme.vars || theme).palette.text.primary\n    },\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      [`&:hover .${outlinedInputClasses.notchedOutline}`]: {\n        borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n      }\n    },\n    [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n      borderColor: (theme.vars || theme).palette[ownerState.color].main,\n      borderWidth: 2\n    },\n    [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {\n      borderColor: (theme.vars || theme).palette.error.main\n    },\n    [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {\n      borderColor: (theme.vars || theme).palette.action.disabled\n    }\n  }, ownerState.startAdornment && {\n    paddingLeft: 14\n  }, ownerState.endAdornment && {\n    paddingRight: 14\n  }, ownerState.multiline && _extends({\n    padding: '16.5px 14px'\n  }, ownerState.size === 'small' && {\n    padding: '8.5px 14px'\n  }));\n});\nconst NotchedOutlineRoot = styled(NotchedOutline, {\n  name: 'MuiOutlinedInput',\n  slot: 'NotchedOutline',\n  overridesResolver: (props, styles) => styles.notchedOutline\n})(({\n  theme\n}) => {\n  const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n  return {\n    borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n  };\n});\nconst OutlinedInputInput = styled(InputBaseInput, {\n  name: 'MuiOutlinedInput',\n  slot: 'Input',\n  overridesResolver: inputBaseInputOverridesResolver\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  padding: '16.5px 14px'\n}, !theme.vars && {\n  '&:-webkit-autofill': {\n    WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',\n    WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',\n    caretColor: theme.palette.mode === 'light' ? null : '#fff',\n    borderRadius: 'inherit'\n  }\n}, theme.vars && {\n  '&:-webkit-autofill': {\n    borderRadius: 'inherit'\n  },\n  [theme.getColorSchemeSelector('dark')]: {\n    '&:-webkit-autofill': {\n      WebkitBoxShadow: '0 0 0 100px #266798 inset',\n      WebkitTextFillColor: '#fff',\n      caretColor: '#fff'\n    }\n  }\n}, ownerState.size === 'small' && {\n  padding: '8.5px 14px'\n}, ownerState.multiline && {\n  padding: 0\n}, ownerState.startAdornment && {\n  paddingLeft: 0\n}, ownerState.endAdornment && {\n  paddingRight: 0\n}));\nconst OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {\n  var _ref, _slots$root, _ref2, _slots$input, _React$Fragment;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiOutlinedInput'\n  });\n  const {\n      components = {},\n      fullWidth = false,\n      inputComponent = 'input',\n      label,\n      multiline = false,\n      notched,\n      slots = {},\n      type = 'text'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const classes = useUtilityClasses(props);\n  const muiFormControl = useFormControl();\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']\n  });\n  const ownerState = _extends({}, props, {\n    color: fcs.color || 'primary',\n    disabled: fcs.disabled,\n    error: fcs.error,\n    focused: fcs.focused,\n    formControl: muiFormControl,\n    fullWidth,\n    hiddenLabel: fcs.hiddenLabel,\n    multiline,\n    size: fcs.size,\n    type\n  });\n  const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;\n  const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;\n  return /*#__PURE__*/_jsx(InputBase, _extends({\n    slots: {\n      root: RootSlot,\n      input: InputSlot\n    },\n    renderSuffix: state => /*#__PURE__*/_jsx(NotchedOutlineRoot, {\n      ownerState: ownerState,\n      className: classes.notchedOutline,\n      label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/_jsxs(React.Fragment, {\n        children: [label, \"\\u2009\", '*']\n      })) : label,\n      notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)\n    }),\n    fullWidth: fullWidth,\n    inputComponent: inputComponent,\n    multiline: multiline,\n    ref: ref,\n    type: type\n  }, other, {\n    classes: _extends({}, classes, {\n      notchedOutline: null\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? OutlinedInput.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * This prop helps users to fill forms faster, especially on mobile devices.\n   * The name can be confusing, as it's more like an autofill.\n   * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n   */\n  autoComplete: PropTypes.string,\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `slots` prop.\n   * It's recommended to use the `slots` prop instead.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Input: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the component is disabled.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * End `InputAdornment` for this component.\n   */\n  endAdornment: PropTypes.node,\n  /**\n   * If `true`, the `input` will indicate an error.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the `input` will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * The component used for the `input` element.\n   * Either a string to use a HTML element or a component.\n   * @default 'input'\n   */\n  inputComponent: PropTypes.elementType,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   * @default {}\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * The label of the `input`. It is only used for layout. The actual labelling\n   * is handled by `InputLabel`.\n   */\n  label: PropTypes.node,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.\n   */\n  margin: PropTypes.oneOf(['dense', 'none']),\n  /**\n   * Maximum number of rows to display when multiline option is set to true.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display when multiline option is set to true.\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.\n   * @default false\n   */\n  multiline: PropTypes.bool,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * If `true`, the outline is notched to accommodate the label.\n   */\n  notched: PropTypes.bool,\n  /**\n   * Callback fired when the value is changed.\n   *\n   * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * The short hint displayed in the `input` before the user enters a value.\n   */\n  placeholder: PropTypes.string,\n  /**\n   * It prevents the user from changing the value of the field\n   * (not from interacting with the field).\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * If `true`, the `input` element is required.\n   * The prop defaults to the value (`false`) inherited from the parent FormControl component.\n   */\n  required: PropTypes.bool,\n  /**\n   * Number of rows to display when multiline option is set to true.\n   */\n  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The components used for each slot inside.\n   *\n   * This prop is an alias for the `components` prop, which will be deprecated in the future.\n   *\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: PropTypes.elementType,\n    root: PropTypes.elementType\n  }),\n  /**\n   * Start `InputAdornment` for this component.\n   */\n  startAdornment: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n   * @default 'text'\n   */\n  type: PropTypes.string,\n  /**\n   * The value of the `input` element, required for a controlled component.\n   */\n  value: PropTypes.any\n} : void 0;\nOutlinedInput.muiName = 'Input';\nexport default OutlinedInput;","// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nconst getOverlayAlpha = elevation => {\n  let alphaValue;\n  if (elevation < 1) {\n    alphaValue = 5.11916 * elevation ** 2;\n  } else {\n    alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n  }\n  return (alphaValue / 100).toFixed(2);\n};\nexport default getOverlayAlpha;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPaperUtilityClass(slot) {\n  return generateUtilityClass('MuiPaper', slot);\n}\nconst paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);\nexport default paperClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"component\", \"elevation\", \"square\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport integerPropType from '@mui/utils/integerPropType';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled from '../styles/styled';\nimport getOverlayAlpha from '../styles/getOverlayAlpha';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport useTheme from '../styles/useTheme';\nimport { getPaperUtilityClass } from './paperClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    square,\n    elevation,\n    variant,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]\n  };\n  return composeClasses(slots, getPaperUtilityClass, classes);\n};\nconst PaperRoot = styled('div', {\n  name: 'MuiPaper',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => {\n  var _theme$vars$overlays;\n  return _extends({\n    backgroundColor: (theme.vars || theme).palette.background.paper,\n    color: (theme.vars || theme).palette.text.primary,\n    transition: theme.transitions.create('box-shadow')\n  }, !ownerState.square && {\n    borderRadius: theme.shape.borderRadius\n  }, ownerState.variant === 'outlined' && {\n    border: `1px solid ${(theme.vars || theme).palette.divider}`\n  }, ownerState.variant === 'elevation' && _extends({\n    boxShadow: (theme.vars || theme).shadows[ownerState.elevation]\n  }, !theme.vars && theme.palette.mode === 'dark' && {\n    backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`\n  }, theme.vars && {\n    backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]\n  }));\n});\nconst Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiPaper'\n  });\n  const {\n      className,\n      component = 'div',\n      elevation = 1,\n      square = false,\n      variant = 'elevation'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    component,\n    elevation,\n    square,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    const theme = useTheme();\n    if (theme.shadows[elevation] === undefined) {\n      console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \\`theme.shadows[${elevation}]\\` is defined.`].join('\\n'));\n    }\n  }\n  return /*#__PURE__*/_jsx(PaperRoot, _extends({\n    as: component,\n    ownerState: ownerState,\n    className: clsx(classes.root, className),\n    ref: ref\n  }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Paper.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Shadow depth, corresponds to `dp` in the spec.\n   * It accepts values between 0 and 24 inclusive.\n   * @default 1\n   */\n  elevation: chainPropTypes(integerPropType, props => {\n    const {\n      elevation,\n      variant\n    } = props;\n    if (elevation > 0 && variant === 'outlined') {\n      return new Error(`MUI: Combining \\`elevation={${elevation}}\\` with \\`variant=\"${variant}\"\\` has no effect. Either use \\`elevation={0}\\` or use a different \\`variant\\`.`);\n    }\n    return null;\n  }),\n  /**\n   * If `true`, rounded corners are disabled.\n   * @default false\n   */\n  square: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'elevation'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])\n} : void 0;\nexport default Paper;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n}), 'RadioButtonUnchecked');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z\"\n}), 'RadioButtonChecked');","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';\nimport RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst RadioButtonIconRoot = styled('span', {\n  name: 'MuiRadioButtonIcon',\n  shouldForwardProp: rootShouldForwardProp\n})({\n  position: 'relative',\n  display: 'flex'\n});\nconst RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {\n  name: 'MuiRadioButtonIcon'\n})({\n  // Scale applied to prevent dot misalignment in Safari\n  transform: 'scale(1)'\n});\nconst RadioButtonIconDot = styled(RadioButtonCheckedIcon, {\n  name: 'MuiRadioButtonIcon'\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  left: 0,\n  position: 'absolute',\n  transform: 'scale(0)',\n  transition: theme.transitions.create('transform', {\n    easing: theme.transitions.easing.easeIn,\n    duration: theme.transitions.duration.shortest\n  })\n}, ownerState.checked && {\n  transform: 'scale(1)',\n  transition: theme.transitions.create('transform', {\n    easing: theme.transitions.easing.easeOut,\n    duration: theme.transitions.duration.shortest\n  })\n}));\n\n/**\n * @ignore - internal component.\n */\nfunction RadioButtonIcon(props) {\n  const {\n    checked = false,\n    classes = {},\n    fontSize\n  } = props;\n  const ownerState = _extends({}, props, {\n    checked\n  });\n  return /*#__PURE__*/_jsxs(RadioButtonIconRoot, {\n    className: classes.root,\n    ownerState: ownerState,\n    children: [/*#__PURE__*/_jsx(RadioButtonIconBackground, {\n      fontSize: fontSize,\n      className: classes.background,\n      ownerState: ownerState\n    }), /*#__PURE__*/_jsx(RadioButtonIconDot, {\n      fontSize: fontSize,\n      className: classes.dot,\n      ownerState: ownerState\n    })]\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? RadioButtonIcon.propTypes = {\n  /**\n   * If `true`, the component is checked.\n   */\n  checked: PropTypes.bool,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense radio styling.\n   */\n  fontSize: PropTypes.oneOf(['small', 'medium'])\n} : void 0;\nexport default RadioButtonIcon;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst RadioGroupContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n  RadioGroupContext.displayName = 'RadioGroupContext';\n}\nexport default RadioGroupContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getRadioUtilityClass(slot) {\n  return generateUtilityClass('MuiRadio', slot);\n}\nconst radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);\nexport default radioClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"checked\", \"checkedIcon\", \"color\", \"icon\", \"name\", \"onChange\", \"size\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport SwitchBase from '../internal/SwitchBase';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport RadioButtonIcon from './RadioButtonIcon';\nimport capitalize from '../utils/capitalize';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport useRadioGroup from '../RadioGroup/useRadioGroup';\nimport radioClasses, { getRadioUtilityClass } from './radioClasses';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    color,\n    size\n  } = ownerState;\n  const slots = {\n    root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]\n  };\n  return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));\n};\nconst RadioRoot = styled(SwitchBase, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiRadio',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], styles[`color${capitalize(ownerState.color)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  color: (theme.vars || theme).palette.text.secondary\n}, !ownerState.disableRipple && {\n  '&:hover': {\n    backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: 'transparent'\n    }\n  }\n}, ownerState.color !== 'default' && {\n  [`&.${radioClasses.checked}`]: {\n    color: (theme.vars || theme).palette[ownerState.color].main\n  }\n}, {\n  [`&.${radioClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.action.disabled\n  }\n}));\nfunction areEqualValues(a, b) {\n  if (typeof b === 'object' && b !== null) {\n    return a === b;\n  }\n\n  // The value could be a number, the DOM will stringify it anyway.\n  return String(a) === String(b);\n}\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {\n  checked: true\n});\nconst defaultIcon = /*#__PURE__*/_jsx(RadioButtonIcon, {});\nconst Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {\n  var _defaultIcon$props$fo, _defaultCheckedIcon$p;\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiRadio'\n  });\n  const {\n      checked: checkedProp,\n      checkedIcon = defaultCheckedIcon,\n      color = 'primary',\n      icon = defaultIcon,\n      name: nameProp,\n      onChange: onChangeProp,\n      size = 'medium',\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    color,\n    size\n  });\n  const classes = useUtilityClasses(ownerState);\n  const radioGroup = useRadioGroup();\n  let checked = checkedProp;\n  const onChange = createChainedFunction(onChangeProp, radioGroup && radioGroup.onChange);\n  let name = nameProp;\n  if (radioGroup) {\n    if (typeof checked === 'undefined') {\n      checked = areEqualValues(radioGroup.value, props.value);\n    }\n    if (typeof name === 'undefined') {\n      name = radioGroup.name;\n    }\n  }\n  return /*#__PURE__*/_jsx(RadioRoot, _extends({\n    type: \"radio\",\n    icon: /*#__PURE__*/React.cloneElement(icon, {\n      fontSize: (_defaultIcon$props$fo = defaultIcon.props.fontSize) != null ? _defaultIcon$props$fo : size\n    }),\n    checkedIcon: /*#__PURE__*/React.cloneElement(checkedIcon, {\n      fontSize: (_defaultCheckedIcon$p = defaultCheckedIcon.props.fontSize) != null ? _defaultCheckedIcon$p : size\n    }),\n    ownerState: ownerState,\n    classes: classes,\n    name: name,\n    checked: checked,\n    onChange: onChange,\n    ref: ref,\n    className: clsx(classes.root, className)\n  }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Radio.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the component is checked.\n   */\n  checked: PropTypes.bool,\n  /**\n   * The icon to display when the component is checked.\n   * @default <RadioButtonIcon checked />\n   */\n  checkedIcon: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * If `true`, the component is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * The icon to display when the component is unchecked.\n   * @default <RadioButtonIcon />\n   */\n  icon: PropTypes.node,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when the state is changed.\n   *\n   * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n   */\n  onChange: PropTypes.func,\n  /**\n   * If `true`, the `input` element is required.\n   * @default false\n   */\n  required: PropTypes.bool,\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense radio styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The value of the component. The DOM API casts this to a string.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default Radio;","'use client';\n\nimport * as React from 'react';\nimport RadioGroupContext from './RadioGroupContext';\nexport default function useRadioGroup() {\n  return React.useContext(RadioGroupContext);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getNativeSelectUtilityClasses(slot) {\n  return generateUtilityClass('MuiNativeSelect', slot);\n}\nconst nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);\nexport default nativeSelectClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"disabled\", \"error\", \"IconComponent\", \"inputRef\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport nativeSelectClasses, { getNativeSelectUtilityClasses } from './nativeSelectClasses';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant,\n    disabled,\n    multiple,\n    open,\n    error\n  } = ownerState;\n  const slots = {\n    select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n    icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled']\n  };\n  return composeClasses(slots, getNativeSelectUtilityClasses, classes);\n};\nexport const nativeSelectSelectStyles = ({\n  ownerState,\n  theme\n}) => _extends({\n  MozAppearance: 'none',\n  // Reset\n  WebkitAppearance: 'none',\n  // Reset\n  // When interacting quickly, the text can end up selected.\n  // Native select can't be selected either.\n  userSelect: 'none',\n  borderRadius: 0,\n  // Reset\n  cursor: 'pointer',\n  '&:focus': _extends({}, theme.vars ? {\n    backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.05)`\n  } : {\n    backgroundColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)'\n  }, {\n    borderRadius: 0 // Reset Chrome style\n  }),\n  // Remove IE11 arrow\n  '&::-ms-expand': {\n    display: 'none'\n  },\n  [`&.${nativeSelectClasses.disabled}`]: {\n    cursor: 'default'\n  },\n  '&[multiple]': {\n    height: 'auto'\n  },\n  '&:not([multiple]) option, &:not([multiple]) optgroup': {\n    backgroundColor: (theme.vars || theme).palette.background.paper\n  },\n  // Bump specificity to allow extending custom inputs\n  '&&&': {\n    paddingRight: 24,\n    minWidth: 16 // So it doesn't collapse.\n  }\n}, ownerState.variant === 'filled' && {\n  '&&&': {\n    paddingRight: 32\n  }\n}, ownerState.variant === 'outlined' && {\n  borderRadius: (theme.vars || theme).shape.borderRadius,\n  '&:focus': {\n    borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style\n  },\n  '&&&': {\n    paddingRight: 32\n  }\n});\nconst NativeSelectSelect = styled('select', {\n  name: 'MuiNativeSelect',\n  slot: 'Select',\n  shouldForwardProp: rootShouldForwardProp,\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.select, styles[ownerState.variant], ownerState.error && styles.error, {\n      [`&.${nativeSelectClasses.multiple}`]: styles.multiple\n    }];\n  }\n})(nativeSelectSelectStyles);\nexport const nativeSelectIconStyles = ({\n  ownerState,\n  theme\n}) => _extends({\n  // We use a position absolute over a flexbox in order to forward the pointer events\n  // to the input and to support wrapping tags..\n  position: 'absolute',\n  right: 0,\n  top: 'calc(50% - .5em)',\n  // Center vertically, height is 1em\n  pointerEvents: 'none',\n  // Don't block pointer events on the select under the icon.\n  color: (theme.vars || theme).palette.action.active,\n  [`&.${nativeSelectClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.action.disabled\n  }\n}, ownerState.open && {\n  transform: 'rotate(180deg)'\n}, ownerState.variant === 'filled' && {\n  right: 7\n}, ownerState.variant === 'outlined' && {\n  right: 7\n});\nconst NativeSelectIcon = styled('svg', {\n  name: 'MuiNativeSelect',\n  slot: 'Icon',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n  }\n})(nativeSelectIconStyles);\n\n/**\n * @ignore - internal component.\n */\nconst NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInput(props, ref) {\n  const {\n      className,\n      disabled,\n      error,\n      IconComponent,\n      inputRef,\n      variant = 'standard'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    disabled,\n    variant,\n    error\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(NativeSelectSelect, _extends({\n      ownerState: ownerState,\n      className: clsx(classes.select, className),\n      disabled: disabled,\n      ref: inputRef || ref\n    }, other)), props.multiple ? null : /*#__PURE__*/_jsx(NativeSelectIcon, {\n      as: IconComponent,\n      ownerState: ownerState,\n      className: classes.icon\n    })]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? NativeSelectInput.propTypes = {\n  /**\n   * The option elements to populate the select with.\n   * Can be some `<option>` elements.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The CSS class name of the select element.\n   */\n  className: PropTypes.string,\n  /**\n   * If `true`, the select is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the `select input` will indicate an error.\n   */\n  error: PropTypes.bool,\n  /**\n   * The icon that displays the arrow.\n   */\n  IconComponent: PropTypes.elementType.isRequired,\n  /**\n   * Use that prop to pass a ref to the native select element.\n   * @deprecated\n   */\n  inputRef: refType,\n  /**\n   * @ignore\n   */\n  multiple: PropTypes.bool,\n  /**\n   * Name attribute of the `select` or hidden `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * Callback fired when a menu item is selected.\n   *\n   * @param {object} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * The input value.\n   */\n  value: PropTypes.any,\n  /**\n   * The variant to use.\n   */\n  variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default NativeSelectInput;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSelectUtilityClasses(slot) {\n  return generateUtilityClass('MuiSelect', slot);\n}\nconst selectClasses = generateUtilityClasses('MuiSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'focused', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput', 'error']);\nexport default selectClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _span;\nconst _excluded = [\"aria-describedby\", \"aria-label\", \"autoFocus\", \"autoWidth\", \"children\", \"className\", \"defaultOpen\", \"defaultValue\", \"disabled\", \"displayEmpty\", \"error\", \"IconComponent\", \"inputRef\", \"labelId\", \"MenuProps\", \"multiple\", \"name\", \"onBlur\", \"onChange\", \"onClose\", \"onFocus\", \"onOpen\", \"open\", \"readOnly\", \"renderValue\", \"SelectDisplayProps\", \"tabIndex\", \"type\", \"value\", \"variant\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport ownerDocument from '../utils/ownerDocument';\nimport capitalize from '../utils/capitalize';\nimport Menu from '../Menu/Menu';\nimport { nativeSelectSelectStyles, nativeSelectIconStyles } from '../NativeSelect/NativeSelectInput';\nimport { isFilled } from '../InputBase/utils';\nimport styled, { slotShouldForwardProp } from '../styles/styled';\nimport useForkRef from '../utils/useForkRef';\nimport useControlled from '../utils/useControlled';\nimport selectClasses, { getSelectUtilityClasses } from './selectClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SelectSelect = styled('div', {\n  name: 'MuiSelect',\n  slot: 'Select',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [\n    // Win specificity over the input base\n    {\n      [`&.${selectClasses.select}`]: styles.select\n    }, {\n      [`&.${selectClasses.select}`]: styles[ownerState.variant]\n    }, {\n      [`&.${selectClasses.error}`]: styles.error\n    }, {\n      [`&.${selectClasses.multiple}`]: styles.multiple\n    }];\n  }\n})(nativeSelectSelectStyles, {\n  // Win specificity over the input base\n  [`&.${selectClasses.select}`]: {\n    height: 'auto',\n    // Resets for multiple select with chips\n    minHeight: '1.4375em',\n    // Required for select\\text-field height consistency\n    textOverflow: 'ellipsis',\n    whiteSpace: 'nowrap',\n    overflow: 'hidden'\n  }\n});\nconst SelectIcon = styled('svg', {\n  name: 'MuiSelect',\n  slot: 'Icon',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.icon, ownerState.variant && styles[`icon${capitalize(ownerState.variant)}`], ownerState.open && styles.iconOpen];\n  }\n})(nativeSelectIconStyles);\nconst SelectNativeInput = styled('input', {\n  shouldForwardProp: prop => slotShouldForwardProp(prop) && prop !== 'classes',\n  name: 'MuiSelect',\n  slot: 'NativeInput',\n  overridesResolver: (props, styles) => styles.nativeInput\n})({\n  bottom: 0,\n  left: 0,\n  position: 'absolute',\n  opacity: 0,\n  pointerEvents: 'none',\n  width: '100%',\n  boxSizing: 'border-box'\n});\nfunction areEqualValues(a, b) {\n  if (typeof b === 'object' && b !== null) {\n    return a === b;\n  }\n\n  // The value could be a number, the DOM will stringify it anyway.\n  return String(a) === String(b);\n}\nfunction isEmpty(display) {\n  return display == null || typeof display === 'string' && !display.trim();\n}\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant,\n    disabled,\n    multiple,\n    open,\n    error\n  } = ownerState;\n  const slots = {\n    select: ['select', variant, disabled && 'disabled', multiple && 'multiple', error && 'error'],\n    icon: ['icon', `icon${capitalize(variant)}`, open && 'iconOpen', disabled && 'disabled'],\n    nativeInput: ['nativeInput']\n  };\n  return composeClasses(slots, getSelectUtilityClasses, classes);\n};\n\n/**\n * @ignore - internal component.\n */\nconst SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n  var _MenuProps$slotProps;\n  const {\n      'aria-describedby': ariaDescribedby,\n      'aria-label': ariaLabel,\n      autoFocus,\n      autoWidth,\n      children,\n      className,\n      defaultOpen,\n      defaultValue,\n      disabled,\n      displayEmpty,\n      error = false,\n      IconComponent,\n      inputRef: inputRefProp,\n      labelId,\n      MenuProps = {},\n      multiple,\n      name,\n      onBlur,\n      onChange,\n      onClose,\n      onFocus,\n      onOpen,\n      open: openProp,\n      readOnly,\n      renderValue,\n      SelectDisplayProps = {},\n      tabIndex: tabIndexProp\n      // catching `type` from Input which makes no sense for SelectInput\n      ,\n\n      value: valueProp,\n      variant = 'standard'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const [value, setValueState] = useControlled({\n    controlled: valueProp,\n    default: defaultValue,\n    name: 'Select'\n  });\n  const [openState, setOpenState] = useControlled({\n    controlled: openProp,\n    default: defaultOpen,\n    name: 'Select'\n  });\n  const inputRef = React.useRef(null);\n  const displayRef = React.useRef(null);\n  const [displayNode, setDisplayNode] = React.useState(null);\n  const {\n    current: isOpenControlled\n  } = React.useRef(openProp != null);\n  const [menuMinWidthState, setMenuMinWidthState] = React.useState();\n  const handleRef = useForkRef(ref, inputRefProp);\n  const handleDisplayRef = React.useCallback(node => {\n    displayRef.current = node;\n    if (node) {\n      setDisplayNode(node);\n    }\n  }, []);\n  const anchorElement = displayNode == null ? void 0 : displayNode.parentNode;\n  React.useImperativeHandle(handleRef, () => ({\n    focus: () => {\n      displayRef.current.focus();\n    },\n    node: inputRef.current,\n    value\n  }), [value]);\n\n  // Resize menu on `defaultOpen` automatic toggle.\n  React.useEffect(() => {\n    if (defaultOpen && openState && displayNode && !isOpenControlled) {\n      setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n      displayRef.current.focus();\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [displayNode, autoWidth]);\n  // `isOpenControlled` is ignored because the component should never switch between controlled and uncontrolled modes.\n  // `defaultOpen` and `openState` are ignored to avoid unnecessary callbacks.\n  React.useEffect(() => {\n    if (autoFocus) {\n      displayRef.current.focus();\n    }\n  }, [autoFocus]);\n  React.useEffect(() => {\n    if (!labelId) {\n      return undefined;\n    }\n    const label = ownerDocument(displayRef.current).getElementById(labelId);\n    if (label) {\n      const handler = () => {\n        if (getSelection().isCollapsed) {\n          displayRef.current.focus();\n        }\n      };\n      label.addEventListener('click', handler);\n      return () => {\n        label.removeEventListener('click', handler);\n      };\n    }\n    return undefined;\n  }, [labelId]);\n  const update = (open, event) => {\n    if (open) {\n      if (onOpen) {\n        onOpen(event);\n      }\n    } else if (onClose) {\n      onClose(event);\n    }\n    if (!isOpenControlled) {\n      setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);\n      setOpenState(open);\n    }\n  };\n  const handleMouseDown = event => {\n    // Ignore everything but left-click\n    if (event.button !== 0) {\n      return;\n    }\n    // Hijack the default focus behavior.\n    event.preventDefault();\n    displayRef.current.focus();\n    update(true, event);\n  };\n  const handleClose = event => {\n    update(false, event);\n  };\n  const childrenArray = React.Children.toArray(children);\n\n  // Support autofill.\n  const handleChange = event => {\n    const child = childrenArray.find(childItem => childItem.props.value === event.target.value);\n    if (child === undefined) {\n      return;\n    }\n    setValueState(child.props.value);\n    if (onChange) {\n      onChange(event, child);\n    }\n  };\n  const handleItemClick = child => event => {\n    let newValue;\n\n    // We use the tabindex attribute to signal the available options.\n    if (!event.currentTarget.hasAttribute('tabindex')) {\n      return;\n    }\n    if (multiple) {\n      newValue = Array.isArray(value) ? value.slice() : [];\n      const itemIndex = value.indexOf(child.props.value);\n      if (itemIndex === -1) {\n        newValue.push(child.props.value);\n      } else {\n        newValue.splice(itemIndex, 1);\n      }\n    } else {\n      newValue = child.props.value;\n    }\n    if (child.props.onClick) {\n      child.props.onClick(event);\n    }\n    if (value !== newValue) {\n      setValueState(newValue);\n      if (onChange) {\n        // Redefine target to allow name and value to be read.\n        // This allows seamless integration with the most popular form libraries.\n        // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492\n        // Clone the event to not override `target` of the original event.\n        const nativeEvent = event.nativeEvent || event;\n        const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n        Object.defineProperty(clonedEvent, 'target', {\n          writable: true,\n          value: {\n            value: newValue,\n            name\n          }\n        });\n        onChange(clonedEvent, child);\n      }\n    }\n    if (!multiple) {\n      update(false, event);\n    }\n  };\n  const handleKeyDown = event => {\n    if (!readOnly) {\n      const validKeys = [' ', 'ArrowUp', 'ArrowDown',\n      // The native select doesn't respond to enter on macOS, but it's recommended by\n      // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/\n      'Enter'];\n      if (validKeys.indexOf(event.key) !== -1) {\n        event.preventDefault();\n        update(true, event);\n      }\n    }\n  };\n  const open = displayNode !== null && openState;\n  const handleBlur = event => {\n    // if open event.stopImmediatePropagation\n    if (!open && onBlur) {\n      // Preact support, target is read only property on a native event.\n      Object.defineProperty(event, 'target', {\n        writable: true,\n        value: {\n          value,\n          name\n        }\n      });\n      onBlur(event);\n    }\n  };\n  delete other['aria-invalid'];\n  let display;\n  let displaySingle;\n  const displayMultiple = [];\n  let computeDisplay = false;\n  let foundMatch = false;\n\n  // No need to display any value if the field is empty.\n  if (isFilled({\n    value\n  }) || displayEmpty) {\n    if (renderValue) {\n      display = renderValue(value);\n    } else {\n      computeDisplay = true;\n    }\n  }\n  const items = childrenArray.map(child => {\n    if (! /*#__PURE__*/React.isValidElement(child)) {\n      return null;\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (isFragment(child)) {\n        console.error([\"MUI: The Select component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n      }\n    }\n    let selected;\n    if (multiple) {\n      if (!Array.isArray(value)) {\n        throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`value\\` prop must be an array when using the \\`Select\\` component with \\`multiple\\`.` : _formatMuiErrorMessage(2));\n      }\n      selected = value.some(v => areEqualValues(v, child.props.value));\n      if (selected && computeDisplay) {\n        displayMultiple.push(child.props.children);\n      }\n    } else {\n      selected = areEqualValues(value, child.props.value);\n      if (selected && computeDisplay) {\n        displaySingle = child.props.children;\n      }\n    }\n    if (selected) {\n      foundMatch = true;\n    }\n    return /*#__PURE__*/React.cloneElement(child, {\n      'aria-selected': selected ? 'true' : 'false',\n      onClick: handleItemClick(child),\n      onKeyUp: event => {\n        if (event.key === ' ') {\n          // otherwise our MenuItems dispatches a click event\n          // it's not behavior of the native <option> and causes\n          // the select to close immediately since we open on space keydown\n          event.preventDefault();\n        }\n        if (child.props.onKeyUp) {\n          child.props.onKeyUp(event);\n        }\n      },\n      role: 'option',\n      selected,\n      value: undefined,\n      // The value is most likely not a valid HTML attribute.\n      'data-value': child.props.value // Instead, we provide it as a data attribute.\n    });\n  });\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useEffect(() => {\n      if (!foundMatch && !multiple && value !== '') {\n        const values = childrenArray.map(child => child.props.value);\n        console.warn([`MUI: You have provided an out-of-range value \\`${value}\\` for the select ${name ? `(name=\"${name}\") ` : ''}component.`, \"Consider providing a value that matches one of the available options or ''.\", `The available values are ${values.filter(x => x != null).map(x => `\\`${x}\\``).join(', ') || '\"\"'}.`].join('\\n'));\n      }\n    }, [foundMatch, childrenArray, multiple, name, value]);\n  }\n  if (computeDisplay) {\n    if (multiple) {\n      if (displayMultiple.length === 0) {\n        display = null;\n      } else {\n        display = displayMultiple.reduce((output, child, index) => {\n          output.push(child);\n          if (index < displayMultiple.length - 1) {\n            output.push(', ');\n          }\n          return output;\n        }, []);\n      }\n    } else {\n      display = displaySingle;\n    }\n  }\n\n  // Avoid performing a layout computation in the render method.\n  let menuMinWidth = menuMinWidthState;\n  if (!autoWidth && isOpenControlled && displayNode) {\n    menuMinWidth = anchorElement.clientWidth;\n  }\n  let tabIndex;\n  if (typeof tabIndexProp !== 'undefined') {\n    tabIndex = tabIndexProp;\n  } else {\n    tabIndex = disabled ? null : 0;\n  }\n  const buttonId = SelectDisplayProps.id || (name ? `mui-component-select-${name}` : undefined);\n  const ownerState = _extends({}, props, {\n    variant,\n    value,\n    open,\n    error\n  });\n  const classes = useUtilityClasses(ownerState);\n  const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);\n  const listboxId = useId();\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(SelectSelect, _extends({\n      ref: handleDisplayRef,\n      tabIndex: tabIndex,\n      role: \"combobox\",\n      \"aria-controls\": listboxId,\n      \"aria-disabled\": disabled ? 'true' : undefined,\n      \"aria-expanded\": open ? 'true' : 'false',\n      \"aria-haspopup\": \"listbox\",\n      \"aria-label\": ariaLabel,\n      \"aria-labelledby\": [labelId, buttonId].filter(Boolean).join(' ') || undefined,\n      \"aria-describedby\": ariaDescribedby,\n      onKeyDown: handleKeyDown,\n      onMouseDown: disabled || readOnly ? null : handleMouseDown,\n      onBlur: handleBlur,\n      onFocus: onFocus\n    }, SelectDisplayProps, {\n      ownerState: ownerState,\n      className: clsx(SelectDisplayProps.className, classes.select, className)\n      // The id is required for proper a11y\n      ,\n      id: buttonId,\n      children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue\n      _span || (_span = /*#__PURE__*/_jsx(\"span\", {\n        className: \"notranslate\",\n        children: \"\\u200B\"\n      })) : display\n    })), /*#__PURE__*/_jsx(SelectNativeInput, _extends({\n      \"aria-invalid\": error,\n      value: Array.isArray(value) ? value.join(',') : value,\n      name: name,\n      ref: inputRef,\n      \"aria-hidden\": true,\n      onChange: handleChange,\n      tabIndex: -1,\n      disabled: disabled,\n      className: classes.nativeInput,\n      autoFocus: autoFocus,\n      ownerState: ownerState\n    }, other)), /*#__PURE__*/_jsx(SelectIcon, {\n      as: IconComponent,\n      className: classes.icon,\n      ownerState: ownerState\n    }), /*#__PURE__*/_jsx(Menu, _extends({\n      id: `menu-${name || ''}`,\n      anchorEl: anchorElement,\n      open: open,\n      onClose: handleClose,\n      anchorOrigin: {\n        vertical: 'bottom',\n        horizontal: 'center'\n      },\n      transformOrigin: {\n        vertical: 'top',\n        horizontal: 'center'\n      }\n    }, MenuProps, {\n      MenuListProps: _extends({\n        'aria-labelledby': labelId,\n        role: 'listbox',\n        'aria-multiselectable': multiple ? 'true' : undefined,\n        disableListWrap: true,\n        id: listboxId\n      }, MenuProps.MenuListProps),\n      slotProps: _extends({}, MenuProps.slotProps, {\n        paper: _extends({}, paperProps, {\n          style: _extends({\n            minWidth: menuMinWidth\n          }, paperProps != null ? paperProps.style : null)\n        })\n      }),\n      children: items\n    }))]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? SelectInput.propTypes = {\n  /**\n   * @ignore\n   */\n  'aria-describedby': PropTypes.string,\n  /**\n   * @ignore\n   */\n  'aria-label': PropTypes.string,\n  /**\n   * @ignore\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * If `true`, the width of the popover will automatically be set according to the items inside the\n   * menu, otherwise it will be at least the width of the select input.\n   */\n  autoWidth: PropTypes.bool,\n  /**\n   * The option elements to populate the select with.\n   * Can be some `<MenuItem>` elements.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * The CSS class name of the select element.\n   */\n  className: PropTypes.string,\n  /**\n   * If `true`, the component is toggled on mount. Use when the component open state is not controlled.\n   * You can only use it when the `native` prop is `false` (default).\n   */\n  defaultOpen: PropTypes.bool,\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the select is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the selected item is displayed even if its value is empty.\n   */\n  displayEmpty: PropTypes.bool,\n  /**\n   * If `true`, the `select input` will indicate an error.\n   */\n  error: PropTypes.bool,\n  /**\n   * The icon that displays the arrow.\n   */\n  IconComponent: PropTypes.elementType.isRequired,\n  /**\n   * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`\n   * Equivalent to `ref`\n   */\n  inputRef: refType,\n  /**\n   * The ID of an element that acts as an additional label. The Select will\n   * be labelled by the additional label and the selected value.\n   */\n  labelId: PropTypes.string,\n  /**\n   * Props applied to the [`Menu`](/material-ui/api/menu/) element.\n   */\n  MenuProps: PropTypes.object,\n  /**\n   * If `true`, `value` must be an array and the menu will support multiple selections.\n   */\n  multiple: PropTypes.bool,\n  /**\n   * Name attribute of the `select` or hidden `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * @ignore\n   */\n  onBlur: PropTypes.func,\n  /**\n   * Callback fired when a menu item is selected.\n   *\n   * @param {object} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (any).\n   * @param {object} [child] The react element that was selected.\n   */\n  onChange: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be closed.\n   * Use in controlled mode (see open).\n   *\n   * @param {object} event The event source of the callback.\n   */\n  onClose: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onFocus: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be opened.\n   * Use in controlled mode (see open).\n   *\n   * @param {object} event The event source of the callback.\n   */\n  onOpen: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * Render the selected value.\n   *\n   * @param {any} value The `value` provided to the component.\n   * @returns {ReactNode}\n   */\n  renderValue: PropTypes.func,\n  /**\n   * Props applied to the clickable div element.\n   */\n  SelectDisplayProps: PropTypes.object,\n  /**\n   * @ignore\n   */\n  tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * @ignore\n   */\n  type: PropTypes.any,\n  /**\n   * The input value.\n   */\n  value: PropTypes.any,\n  /**\n   * The variant to use.\n   */\n  variant: PropTypes.oneOf(['standard', 'outlined', 'filled'])\n} : void 0;\nexport default SelectInput;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n  d: \"M7 10l5 5 5-5z\"\n}), 'ArrowDropDown');","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"autoWidth\", \"children\", \"classes\", \"className\", \"defaultOpen\", \"displayEmpty\", \"IconComponent\", \"id\", \"input\", \"inputProps\", \"label\", \"labelId\", \"MenuProps\", \"multiple\", \"native\", \"onClose\", \"onOpen\", \"open\", \"renderValue\", \"SelectDisplayProps\", \"variant\"],\n  _excluded2 = [\"root\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport SelectInput from './SelectInput';\nimport formControlState from '../FormControl/formControlState';\nimport useFormControl from '../FormControl/useFormControl';\nimport ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown';\nimport Input from '../Input';\nimport NativeSelectInput from '../NativeSelect/NativeSelectInput';\nimport FilledInput from '../FilledInput';\nimport OutlinedInput from '../OutlinedInput';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport useForkRef from '../utils/useForkRef';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  return classes;\n};\nconst styledRootConfig = {\n  name: 'MuiSelect',\n  overridesResolver: (props, styles) => styles.root,\n  shouldForwardProp: prop => rootShouldForwardProp(prop) && prop !== 'variant',\n  slot: 'Root'\n};\nconst StyledInput = styled(Input, styledRootConfig)('');\nconst StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');\nconst StyledFilledInput = styled(FilledInput, styledRootConfig)('');\nconst Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {\n  const props = useDefaultProps({\n    name: 'MuiSelect',\n    props: inProps\n  });\n  const {\n      autoWidth = false,\n      children,\n      classes: classesProp = {},\n      className,\n      defaultOpen = false,\n      displayEmpty = false,\n      IconComponent = ArrowDropDownIcon,\n      id,\n      input,\n      inputProps,\n      label,\n      labelId,\n      MenuProps,\n      multiple = false,\n      native = false,\n      onClose,\n      onOpen,\n      open,\n      renderValue,\n      SelectDisplayProps,\n      variant: variantProp = 'outlined'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const inputComponent = native ? NativeSelectInput : SelectInput;\n  const muiFormControl = useFormControl();\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['variant', 'error']\n  });\n  const variant = fcs.variant || variantProp;\n  const ownerState = _extends({}, props, {\n    variant,\n    classes: classesProp\n  });\n  const classes = useUtilityClasses(ownerState);\n  const restOfClasses = _objectWithoutPropertiesLoose(classes, _excluded2);\n  const InputComponent = input || {\n    standard: /*#__PURE__*/_jsx(StyledInput, {\n      ownerState: ownerState\n    }),\n    outlined: /*#__PURE__*/_jsx(StyledOutlinedInput, {\n      label: label,\n      ownerState: ownerState\n    }),\n    filled: /*#__PURE__*/_jsx(StyledFilledInput, {\n      ownerState: ownerState\n    })\n  }[variant];\n  const inputComponentRef = useForkRef(ref, getReactElementRef(InputComponent));\n  return /*#__PURE__*/_jsx(React.Fragment, {\n    children: /*#__PURE__*/React.cloneElement(InputComponent, _extends({\n      // Most of the logic is implemented in `SelectInput`.\n      // The `Select` component is a simple API wrapper to expose something better to play with.\n      inputComponent,\n      inputProps: _extends({\n        children,\n        error: fcs.error,\n        IconComponent,\n        variant,\n        type: undefined,\n        // We render a select. We can ignore the type provided by the `Input`.\n        multiple\n      }, native ? {\n        id\n      } : {\n        autoWidth,\n        defaultOpen,\n        displayEmpty,\n        labelId,\n        MenuProps,\n        onClose,\n        onOpen,\n        open,\n        renderValue,\n        SelectDisplayProps: _extends({\n          id\n        }, SelectDisplayProps)\n      }, inputProps, {\n        classes: inputProps ? deepmerge(restOfClasses, inputProps.classes) : restOfClasses\n      }, input ? input.props.inputProps : {})\n    }, (multiple && native || displayEmpty) && variant === 'outlined' ? {\n      notched: true\n    } : {}, {\n      ref: inputComponentRef,\n      className: clsx(InputComponent.props.className, className, classes.root)\n    }, !input && {\n      variant\n    }, other))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Select.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the width of the popover will automatically be set according to the items inside the\n   * menu, otherwise it will be at least the width of the select input.\n   * @default false\n   */\n  autoWidth: PropTypes.bool,\n  /**\n   * The option elements to populate the select with.\n   * Can be some `MenuItem` when `native` is false and `option` when `native` is true.\n   *\n   * ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   * @default {}\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).\n   * You can only use it when the `native` prop is `false` (default).\n   * @default false\n   */\n  defaultOpen: PropTypes.bool,\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, a value is displayed even if no items are selected.\n   *\n   * In order to display a meaningful value, a function can be passed to the `renderValue` prop which\n   * returns the value to be displayed when no items are selected.\n   *\n   * ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.\n   * The label should either be hidden or forced to a shrunk state.\n   * @default false\n   */\n  displayEmpty: PropTypes.bool,\n  /**\n   * The icon that displays the arrow.\n   * @default ArrowDropDownIcon\n   */\n  IconComponent: PropTypes.elementType,\n  /**\n   * The `id` of the wrapper element or the `select` element when `native`.\n   */\n  id: PropTypes.string,\n  /**\n   * An `Input` element; does not have to be a material-ui specific `Input`.\n   */\n  input: PropTypes.element,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   * When `native` is `true`, the attributes are applied on the `select` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * See [OutlinedInput#label](/material-ui/api/outlined-input/#props)\n   */\n  label: PropTypes.node,\n  /**\n   * The ID of an element that acts as an additional label. The Select will\n   * be labelled by the additional label and the selected value.\n   */\n  labelId: PropTypes.string,\n  /**\n   * Props applied to the [`Menu`](/material-ui/api/menu/) element.\n   */\n  MenuProps: PropTypes.object,\n  /**\n   * If `true`, `value` must be an array and the menu will support multiple selections.\n   * @default false\n   */\n  multiple: PropTypes.bool,\n  /**\n   * If `true`, the component uses a native `select` element.\n   * @default false\n   */\n  native: PropTypes.bool,\n  /**\n   * Callback fired when a menu item is selected.\n   *\n   * @param {SelectChangeEvent<Value>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (any).\n   * **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.\n   * @param {object} [child] The react element that was selected when `native` is `false` (default).\n   */\n  onChange: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be closed.\n   * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).\n   *\n   * @param {object} event The event source of the callback.\n   */\n  onClose: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be opened.\n   * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).\n   *\n   * @param {object} event The event source of the callback.\n   */\n  onOpen: PropTypes.func,\n  /**\n   * If `true`, the component is shown.\n   * You can only use it when the `native` prop is `false` (default).\n   */\n  open: PropTypes.bool,\n  /**\n   * Render the selected value.\n   * You can only use it when the `native` prop is `false` (default).\n   *\n   * @param {any} value The `value` provided to the component.\n   * @returns {ReactNode}\n   */\n  renderValue: PropTypes.func,\n  /**\n   * Props applied to the clickable div element.\n   */\n  SelectDisplayProps: PropTypes.object,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The `input` value. Providing an empty string will select no options.\n   * Set to an empty string `''` if you don't want any of the available options to be selected.\n   *\n   * If the value is an object it must have reference equality with the option in order to be selected.\n   * If the value is not an object, the string representation must match with the string representation of the option in order to be selected.\n   */\n  value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),\n  /**\n   * The variant to use.\n   * @default 'outlined'\n   */\n  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nSelect.muiName = 'Select';\nexport default Select;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createStack } from '@mui/system';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nconst Stack = createStack({\n  createStyledComponent: styled('div', {\n    name: 'MuiStack',\n    slot: 'Root',\n    overridesResolver: (props, styles) => styles.root\n  }),\n  useThemeProps: inProps => useDefaultProps({\n    props: inProps,\n    name: 'MuiStack'\n  })\n});\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Defines the `flex-direction` style property.\n   * It is applied for all screen sizes.\n   * @default 'column'\n   */\n  direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n  /**\n   * Add an element between each child.\n   */\n  divider: PropTypes.node,\n  /**\n   * Defines the space between immediate children.\n   * @default 0\n   */\n  spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * The system prop, which allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n   *\n   * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),\n   * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n   *\n   * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.\n   * @default false\n   */\n  useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchUtilityClass(slot) {\n  return generateUtilityClass('MuiSwitch', slot);\n}\nconst switchClasses = generateUtilityClasses('MuiSwitch', ['root', 'edgeStart', 'edgeEnd', 'switchBase', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium', 'checked', 'disabled', 'input', 'thumb', 'track']);\nexport default switchClasses;","'use client';\n\n// @inheritedComponent IconButton\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"edge\", \"size\", \"sx\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport SwitchBase from '../internal/SwitchBase';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport switchClasses, { getSwitchUtilityClass } from './switchClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    edge,\n    size,\n    color,\n    checked,\n    disabled\n  } = ownerState;\n  const slots = {\n    root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n    switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n    thumb: ['thumb'],\n    track: ['track'],\n    input: ['input']\n  };\n  const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst SwitchRoot = styled('span', {\n  name: 'MuiSwitch',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n  }\n})({\n  display: 'inline-flex',\n  width: 34 + 12 * 2,\n  height: 14 + 12 * 2,\n  overflow: 'hidden',\n  padding: 12,\n  boxSizing: 'border-box',\n  position: 'relative',\n  flexShrink: 0,\n  zIndex: 0,\n  // Reset the stacking context.\n  verticalAlign: 'middle',\n  // For correct alignment with the text.\n  '@media print': {\n    colorAdjust: 'exact'\n  },\n  variants: [{\n    props: {\n      edge: 'start'\n    },\n    style: {\n      marginLeft: -8\n    }\n  }, {\n    props: {\n      edge: 'end'\n    },\n    style: {\n      marginRight: -8\n    }\n  }, {\n    props: {\n      size: 'small'\n    },\n    style: {\n      width: 40,\n      height: 24,\n      padding: 7,\n      [`& .${switchClasses.thumb}`]: {\n        width: 16,\n        height: 16\n      },\n      [`& .${switchClasses.switchBase}`]: {\n        padding: 4,\n        [`&.${switchClasses.checked}`]: {\n          transform: 'translateX(16px)'\n        }\n      }\n    }\n  }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n  name: 'MuiSwitch',\n  slot: 'SwitchBase',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.switchBase, {\n      [`& .${switchClasses.input}`]: styles.input\n    }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n  }\n})(({\n  theme\n}) => ({\n  position: 'absolute',\n  top: 0,\n  left: 0,\n  zIndex: 1,\n  // Render above the focus ripple.\n  color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n  transition: theme.transitions.create(['left', 'transform'], {\n    duration: theme.transitions.duration.shortest\n  }),\n  [`&.${switchClasses.checked}`]: {\n    transform: 'translateX(20px)'\n  },\n  [`&.${switchClasses.disabled}`]: {\n    color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n  },\n  [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n    opacity: 0.5\n  },\n  [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n    opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n  },\n  [`& .${switchClasses.input}`]: {\n    left: '-100%',\n    width: '300%'\n  }\n}), ({\n  theme\n}) => ({\n  '&:hover': {\n    backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: 'transparent'\n    }\n  },\n  variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light) // check all the used fields in the style below\n  .map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      [`&.${switchClasses.checked}`]: {\n        color: (theme.vars || theme).palette[color].main,\n        '&:hover': {\n          backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n          '@media (hover: none)': {\n            backgroundColor: 'transparent'\n          }\n        },\n        [`&.${switchClasses.disabled}`]: {\n          color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n        }\n      },\n      [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n        backgroundColor: (theme.vars || theme).palette[color].main\n      }\n    }\n  }))]\n}));\nconst SwitchTrack = styled('span', {\n  name: 'MuiSwitch',\n  slot: 'Track',\n  overridesResolver: (props, styles) => styles.track\n})(({\n  theme\n}) => ({\n  height: '100%',\n  width: '100%',\n  borderRadius: 14 / 2,\n  zIndex: -1,\n  transition: theme.transitions.create(['opacity', 'background-color'], {\n    duration: theme.transitions.duration.shortest\n  }),\n  backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n  opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n}));\nconst SwitchThumb = styled('span', {\n  name: 'MuiSwitch',\n  slot: 'Thumb',\n  overridesResolver: (props, styles) => styles.thumb\n})(({\n  theme\n}) => ({\n  boxShadow: (theme.vars || theme).shadows[1],\n  backgroundColor: 'currentColor',\n  width: 20,\n  height: 20,\n  borderRadius: '50%'\n}));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiSwitch'\n  });\n  const {\n      className,\n      color = 'primary',\n      edge = false,\n      size = 'medium',\n      sx\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    color,\n    edge,\n    size\n  });\n  const classes = useUtilityClasses(ownerState);\n  const icon = /*#__PURE__*/_jsx(SwitchThumb, {\n    className: classes.thumb,\n    ownerState: ownerState\n  });\n  return /*#__PURE__*/_jsxs(SwitchRoot, {\n    className: clsx(classes.root, className),\n    sx: sx,\n    ownerState: ownerState,\n    children: [/*#__PURE__*/_jsx(SwitchSwitchBase, _extends({\n      type: \"checkbox\",\n      icon: icon,\n      checkedIcon: icon,\n      ref: ref,\n      ownerState: ownerState\n    }, other, {\n      classes: _extends({}, classes, {\n        root: classes.switchBase\n      })\n    })), /*#__PURE__*/_jsx(SwitchTrack, {\n      className: classes.track,\n      ownerState: ownerState\n    })]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * If `true`, the component is checked.\n   */\n  checked: PropTypes.bool,\n  /**\n   * The icon to display when the component is checked.\n   */\n  checkedIcon: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The default checked state. Use when the component is not controlled.\n   */\n  defaultChecked: PropTypes.bool,\n  /**\n   * If `true`, the component is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the ripple effect is disabled.\n   * @default false\n   */\n  disableRipple: PropTypes.bool,\n  /**\n   * If given, uses a negative margin to counteract the padding on one\n   * side (this is often helpful for aligning the left or right\n   * side of the icon with content above or below, without ruining the border\n   * size and shape).\n   * @default false\n   */\n  edge: PropTypes.oneOf(['end', 'start', false]),\n  /**\n   * The icon to display when the component is unchecked.\n   */\n  icon: PropTypes.node,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * Callback fired when the state is changed.\n   *\n   * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n   */\n  onChange: PropTypes.func,\n  /**\n   * If `true`, the `input` element is required.\n   * @default false\n   */\n  required: PropTypes.bool,\n  /**\n   * The size of the component.\n   * `small` is equivalent to the dense switch styling.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The value of the component. The DOM API casts this to a string.\n   * The browser uses \"on\" as the default value.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default Switch;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormLabelUtilityClasses(slot) {\n  return generateUtilityClass('MuiFormLabel', slot);\n}\nconst formLabelClasses = generateUtilityClasses('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);\nexport default formLabelClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"disabled\", \"error\", \"filled\", \"focused\", \"required\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport formControlState from '../FormControl/formControlState';\nimport useFormControl from '../FormControl/useFormControl';\nimport capitalize from '../utils/capitalize';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport formLabelClasses, { getFormLabelUtilityClasses } from './formLabelClasses';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    color,\n    focused,\n    disabled,\n    error,\n    filled,\n    required\n  } = ownerState;\n  const slots = {\n    root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', filled && 'filled', focused && 'focused', required && 'required'],\n    asterisk: ['asterisk', error && 'error']\n  };\n  return composeClasses(slots, getFormLabelUtilityClasses, classes);\n};\nexport const FormLabelRoot = styled('label', {\n  name: 'MuiFormLabel',\n  slot: 'Root',\n  overridesResolver: ({\n    ownerState\n  }, styles) => {\n    return _extends({}, styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled);\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  color: (theme.vars || theme).palette.text.secondary\n}, theme.typography.body1, {\n  lineHeight: '1.4375em',\n  padding: 0,\n  position: 'relative',\n  [`&.${formLabelClasses.focused}`]: {\n    color: (theme.vars || theme).palette[ownerState.color].main\n  },\n  [`&.${formLabelClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.text.disabled\n  },\n  [`&.${formLabelClasses.error}`]: {\n    color: (theme.vars || theme).palette.error.main\n  }\n}));\nconst AsteriskComponent = styled('span', {\n  name: 'MuiFormLabel',\n  slot: 'Asterisk',\n  overridesResolver: (props, styles) => styles.asterisk\n})(({\n  theme\n}) => ({\n  [`&.${formLabelClasses.error}`]: {\n    color: (theme.vars || theme).palette.error.main\n  }\n}));\nconst FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFormLabel'\n  });\n  const {\n      children,\n      className,\n      component = 'label'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const muiFormControl = useFormControl();\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['color', 'required', 'focused', 'disabled', 'error', 'filled']\n  });\n  const ownerState = _extends({}, props, {\n    color: fcs.color || 'primary',\n    component,\n    disabled: fcs.disabled,\n    error: fcs.error,\n    filled: fcs.filled,\n    focused: fcs.focused,\n    required: fcs.required\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(FormLabelRoot, _extends({\n    as: component,\n    ownerState: ownerState,\n    className: clsx(classes.root, className),\n    ref: ref\n  }, other, {\n    children: [children, fcs.required && /*#__PURE__*/_jsxs(AsteriskComponent, {\n      ownerState: ownerState,\n      \"aria-hidden\": true,\n      className: classes.asterisk,\n      children: [\"\\u2009\", '*']\n    })]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? FormLabel.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the label should be displayed in a disabled state.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the label is displayed in an error state.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the label should use filled classes key.\n   */\n  filled: PropTypes.bool,\n  /**\n   * If `true`, the input of this label is focused (used by `FormGroup` components).\n   */\n  focused: PropTypes.bool,\n  /**\n   * If `true`, the label will indicate that the `input` is required.\n   */\n  required: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default FormLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getInputLabelUtilityClasses(slot) {\n  return generateUtilityClass('MuiInputLabel', slot);\n}\nconst inputLabelClasses = generateUtilityClasses('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);\nexport default inputLabelClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"disableAnimation\", \"margin\", \"shrink\", \"variant\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport clsx from 'clsx';\nimport formControlState from '../FormControl/formControlState';\nimport useFormControl from '../FormControl/useFormControl';\nimport FormLabel, { formLabelClasses } from '../FormLabel';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport capitalize from '../utils/capitalize';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { getInputLabelUtilityClasses } from './inputLabelClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    formControl,\n    size,\n    shrink,\n    disableAnimation,\n    variant,\n    required\n  } = ownerState;\n  const slots = {\n    root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${capitalize(size)}`, variant],\n    asterisk: [required && 'asterisk']\n  };\n  const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);\n  return _extends({}, classes, composedClasses);\n};\nconst InputLabelRoot = styled(FormLabel, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiInputLabel',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [{\n      [`& .${formLabelClasses.asterisk}`]: styles.asterisk\n    }, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, ownerState.focused && styles.focused, styles[ownerState.variant]];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  display: 'block',\n  transformOrigin: 'top left',\n  whiteSpace: 'nowrap',\n  overflow: 'hidden',\n  textOverflow: 'ellipsis',\n  maxWidth: '100%'\n}, ownerState.formControl && {\n  position: 'absolute',\n  left: 0,\n  top: 0,\n  // slight alteration to spec spacing to match visual spec result\n  transform: 'translate(0, 20px) scale(1)'\n}, ownerState.size === 'small' && {\n  // Compensation for the `Input.inputSizeSmall` style.\n  transform: 'translate(0, 17px) scale(1)'\n}, ownerState.shrink && {\n  transform: 'translate(0, -1.5px) scale(0.75)',\n  transformOrigin: 'top left',\n  maxWidth: '133%'\n}, !ownerState.disableAnimation && {\n  transition: theme.transitions.create(['color', 'transform', 'max-width'], {\n    duration: theme.transitions.duration.shorter,\n    easing: theme.transitions.easing.easeOut\n  })\n}, ownerState.variant === 'filled' && _extends({\n  // Chrome's autofill feature gives the input field a yellow background.\n  // Since the input field is behind the label in the HTML tree,\n  // the input field is drawn last and hides the label with an opaque background color.\n  // zIndex: 1 will raise the label above opaque background-colors of input.\n  zIndex: 1,\n  pointerEvents: 'none',\n  transform: 'translate(12px, 16px) scale(1)',\n  maxWidth: 'calc(100% - 24px)'\n}, ownerState.size === 'small' && {\n  transform: 'translate(12px, 13px) scale(1)'\n}, ownerState.shrink && _extends({\n  userSelect: 'none',\n  pointerEvents: 'auto',\n  transform: 'translate(12px, 7px) scale(0.75)',\n  maxWidth: 'calc(133% - 24px)'\n}, ownerState.size === 'small' && {\n  transform: 'translate(12px, 4px) scale(0.75)'\n})), ownerState.variant === 'outlined' && _extends({\n  // see comment above on filled.zIndex\n  zIndex: 1,\n  pointerEvents: 'none',\n  transform: 'translate(14px, 16px) scale(1)',\n  maxWidth: 'calc(100% - 24px)'\n}, ownerState.size === 'small' && {\n  transform: 'translate(14px, 9px) scale(1)'\n}, ownerState.shrink && {\n  userSelect: 'none',\n  pointerEvents: 'auto',\n  // Theoretically, we should have (8+5)*2/0.75 = 34px\n  // but it feels a better when it bleeds a bit on the left, so 32px.\n  maxWidth: 'calc(133% - 32px)',\n  transform: 'translate(14px, -9px) scale(0.75)'\n})));\nconst InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {\n  const props = useDefaultProps({\n    name: 'MuiInputLabel',\n    props: inProps\n  });\n  const {\n      disableAnimation = false,\n      shrink: shrinkProp,\n      className\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const muiFormControl = useFormControl();\n  let shrink = shrinkProp;\n  if (typeof shrink === 'undefined' && muiFormControl) {\n    shrink = muiFormControl.filled || muiFormControl.focused || muiFormControl.adornedStart;\n  }\n  const fcs = formControlState({\n    props,\n    muiFormControl,\n    states: ['size', 'variant', 'required', 'focused']\n  });\n  const ownerState = _extends({}, props, {\n    disableAnimation,\n    formControl: muiFormControl,\n    shrink,\n    size: fcs.size,\n    variant: fcs.variant,\n    required: fcs.required,\n    focused: fcs.focused\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(InputLabelRoot, _extends({\n    \"data-shrink\": shrink,\n    ownerState: ownerState,\n    ref: ref,\n    className: clsx(classes.root, className)\n  }, other, {\n    classes: classes\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? InputLabel.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),\n  /**\n   * If `true`, the transition animation is disabled.\n   * @default false\n   */\n  disableAnimation: PropTypes.bool,\n  /**\n   * If `true`, the component is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the label is displayed in an error state.\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the `input` of this label is focused.\n   */\n  focused: PropTypes.bool,\n  /**\n   * If `dense`, will adjust vertical spacing. This is normally obtained via context from\n   * FormControl.\n   */\n  margin: PropTypes.oneOf(['dense']),\n  /**\n   * if `true`, the label will indicate that the `input` is required.\n   */\n  required: PropTypes.bool,\n  /**\n   * If `true`, the label is shrunk.\n   */\n  shrink: PropTypes.bool,\n  /**\n   * The size of the component.\n   * @default 'normal'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['normal', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   */\n  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default InputLabel;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlUtilityClasses(slot) {\n  return generateUtilityClass('MuiFormControl', slot);\n}\nconst formControlClasses = generateUtilityClasses('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);\nexport default formControlClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"disabled\", \"error\", \"focused\", \"fullWidth\", \"hiddenLabel\", \"margin\", \"required\", \"size\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport { isFilled, isAdornedStart } from '../InputBase/utils';\nimport capitalize from '../utils/capitalize';\nimport isMuiElement from '../utils/isMuiElement';\nimport FormControlContext from './FormControlContext';\nimport { getFormControlUtilityClasses } from './formControlClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    margin,\n    fullWidth\n  } = ownerState;\n  const slots = {\n    root: ['root', margin !== 'none' && `margin${capitalize(margin)}`, fullWidth && 'fullWidth']\n  };\n  return composeClasses(slots, getFormControlUtilityClasses, classes);\n};\nconst FormControlRoot = styled('div', {\n  name: 'MuiFormControl',\n  slot: 'Root',\n  overridesResolver: ({\n    ownerState\n  }, styles) => {\n    return _extends({}, styles.root, styles[`margin${capitalize(ownerState.margin)}`], ownerState.fullWidth && styles.fullWidth);\n  }\n})(({\n  ownerState\n}) => _extends({\n  display: 'inline-flex',\n  flexDirection: 'column',\n  position: 'relative',\n  // Reset fieldset default style.\n  minWidth: 0,\n  padding: 0,\n  margin: 0,\n  border: 0,\n  verticalAlign: 'top'\n}, ownerState.margin === 'normal' && {\n  marginTop: 16,\n  marginBottom: 8\n}, ownerState.margin === 'dense' && {\n  marginTop: 8,\n  marginBottom: 4\n}, ownerState.fullWidth && {\n  width: '100%'\n}));\n\n/**\n * Provides context such as filled/focused/error/required for form inputs.\n * Relying on the context provides high flexibility and ensures that the state always stays\n * consistent across the children of the `FormControl`.\n * This context is used by the following components:\n *\n *  - FormLabel\n *  - FormHelperText\n *  - Input\n *  - InputLabel\n *\n * You can find one composition example below and more going to [the demos](/material-ui/react-text-field/#components).\n *\n * ```jsx\n * <FormControl>\n *   <InputLabel htmlFor=\"my-input\">Email address</InputLabel>\n *   <Input id=\"my-input\" aria-describedby=\"my-helper-text\" />\n *   <FormHelperText id=\"my-helper-text\">We'll never share your email.</FormHelperText>\n * </FormControl>\n * ```\n *\n * ⚠️ Only one `InputBase` can be used within a FormControl because it creates visual inconsistencies.\n * For instance, only one input can be focused at the same time, the state shouldn't be shared.\n */\nconst FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFormControl'\n  });\n  const {\n      children,\n      className,\n      color = 'primary',\n      component = 'div',\n      disabled = false,\n      error = false,\n      focused: visuallyFocused,\n      fullWidth = false,\n      hiddenLabel = false,\n      margin = 'none',\n      required = false,\n      size = 'medium',\n      variant = 'outlined'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    color,\n    component,\n    disabled,\n    error,\n    fullWidth,\n    hiddenLabel,\n    margin,\n    required,\n    size,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  const [adornedStart, setAdornedStart] = React.useState(() => {\n    // We need to iterate through the children and find the Input in order\n    // to fully support server-side rendering.\n    let initialAdornedStart = false;\n    if (children) {\n      React.Children.forEach(children, child => {\n        if (!isMuiElement(child, ['Input', 'Select'])) {\n          return;\n        }\n        const input = isMuiElement(child, ['Select']) ? child.props.input : child;\n        if (input && isAdornedStart(input.props)) {\n          initialAdornedStart = true;\n        }\n      });\n    }\n    return initialAdornedStart;\n  });\n  const [filled, setFilled] = React.useState(() => {\n    // We need to iterate through the children and find the Input in order\n    // to fully support server-side rendering.\n    let initialFilled = false;\n    if (children) {\n      React.Children.forEach(children, child => {\n        if (!isMuiElement(child, ['Input', 'Select'])) {\n          return;\n        }\n        if (isFilled(child.props, true) || isFilled(child.props.inputProps, true)) {\n          initialFilled = true;\n        }\n      });\n    }\n    return initialFilled;\n  });\n  const [focusedState, setFocused] = React.useState(false);\n  if (disabled && focusedState) {\n    setFocused(false);\n  }\n  const focused = visuallyFocused !== undefined && !disabled ? visuallyFocused : focusedState;\n  let registerEffect;\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    const registeredInput = React.useRef(false);\n    registerEffect = () => {\n      if (registeredInput.current) {\n        console.error(['MUI: There are multiple `InputBase` components inside a FormControl.', 'This creates visual inconsistencies, only use one `InputBase`.'].join('\\n'));\n      }\n      registeredInput.current = true;\n      return () => {\n        registeredInput.current = false;\n      };\n    };\n  }\n  const childContext = React.useMemo(() => {\n    return {\n      adornedStart,\n      setAdornedStart,\n      color,\n      disabled,\n      error,\n      filled,\n      focused,\n      fullWidth,\n      hiddenLabel,\n      size,\n      onBlur: () => {\n        setFocused(false);\n      },\n      onEmpty: () => {\n        setFilled(false);\n      },\n      onFilled: () => {\n        setFilled(true);\n      },\n      onFocus: () => {\n        setFocused(true);\n      },\n      registerEffect,\n      required,\n      variant\n    };\n  }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);\n  return /*#__PURE__*/_jsx(FormControlContext.Provider, {\n    value: childContext,\n    children: /*#__PURE__*/_jsx(FormControlRoot, _extends({\n      as: component,\n      ownerState: ownerState,\n      className: clsx(classes.root, className),\n      ref: ref\n    }, other, {\n      children: children\n    }))\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControl.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the label, input and helper text should be displayed in a disabled state.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the label is displayed in an error state.\n   * @default false\n   */\n  error: PropTypes.bool,\n  /**\n   * If `true`, the component is displayed in focused state.\n   */\n  focused: PropTypes.bool,\n  /**\n   * If `true`, the component will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * If `true`, the label is hidden.\n   * This is used to increase density for a `FilledInput`.\n   * Be sure to add `aria-label` to the `input` element.\n   * @default false\n   */\n  hiddenLabel: PropTypes.bool,\n  /**\n   * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n   * @default 'none'\n   */\n  margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n  /**\n   * If `true`, the label will indicate that the `input` is required.\n   * @default false\n   */\n  required: PropTypes.bool,\n  /**\n   * The size of the component.\n   * @default 'medium'\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The variant to use.\n   * @default 'outlined'\n   */\n  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default FormControl;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTextFieldUtilityClass(slot) {\n  return generateUtilityClass('MuiTextField', slot);\n}\nconst textFieldClasses = generateUtilityClasses('MuiTextField', ['root']);\nexport default textFieldClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"autoComplete\", \"autoFocus\", \"children\", \"className\", \"color\", \"defaultValue\", \"disabled\", \"error\", \"FormHelperTextProps\", \"fullWidth\", \"helperText\", \"id\", \"InputLabelProps\", \"inputProps\", \"InputProps\", \"inputRef\", \"label\", \"maxRows\", \"minRows\", \"multiline\", \"name\", \"onBlur\", \"onChange\", \"onFocus\", \"placeholder\", \"required\", \"rows\", \"select\", \"SelectProps\", \"type\", \"value\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport refType from '@mui/utils/refType';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Input from '../Input';\nimport FilledInput from '../FilledInput';\nimport OutlinedInput from '../OutlinedInput';\nimport InputLabel from '../InputLabel';\nimport FormControl from '../FormControl';\nimport FormHelperText from '../FormHelperText';\nimport Select from '../Select';\nimport { getTextFieldUtilityClass } from './textFieldClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst variantComponent = {\n  standard: Input,\n  filled: FilledInput,\n  outlined: OutlinedInput\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root']\n  };\n  return composeClasses(slots, getTextFieldUtilityClass, classes);\n};\nconst TextFieldRoot = styled(FormControl, {\n  name: 'MuiTextField',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n * The `TextField` is a convenience wrapper for the most common cases (80%).\n * It cannot be all things to all people, otherwise the API would grow out of control.\n *\n * ## Advanced Configuration\n *\n * It's important to understand that the text field is a simple abstraction\n * on top of the following components:\n *\n * - [FormControl](/material-ui/api/form-control/)\n * - [InputLabel](/material-ui/api/input-label/)\n * - [FilledInput](/material-ui/api/filled-input/)\n * - [OutlinedInput](/material-ui/api/outlined-input/)\n * - [Input](/material-ui/api/input/)\n * - [FormHelperText](/material-ui/api/form-helper-text/)\n *\n * If you wish to alter the props applied to the `input` element, you can do so as follows:\n *\n * ```jsx\n * const inputProps = {\n *   step: 300,\n * };\n *\n * return <TextField id=\"time\" type=\"time\" inputProps={inputProps} />;\n * ```\n *\n * For advanced cases, please look at the source of TextField by clicking on the\n * \"Edit this page\" button above. Consider either:\n *\n * - using the upper case props for passing values directly to the components\n * - using the underlying components directly as shown in the demos\n */\nconst TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiTextField'\n  });\n  const {\n      autoComplete,\n      autoFocus = false,\n      children,\n      className,\n      color = 'primary',\n      defaultValue,\n      disabled = false,\n      error = false,\n      FormHelperTextProps,\n      fullWidth = false,\n      helperText,\n      id: idOverride,\n      InputLabelProps,\n      inputProps,\n      InputProps,\n      inputRef,\n      label,\n      maxRows,\n      minRows,\n      multiline = false,\n      name,\n      onBlur,\n      onChange,\n      onFocus,\n      placeholder,\n      required = false,\n      rows,\n      select = false,\n      SelectProps,\n      type,\n      value,\n      variant = 'outlined'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    autoFocus,\n    color,\n    disabled,\n    error,\n    fullWidth,\n    multiline,\n    required,\n    select,\n    variant\n  });\n  const classes = useUtilityClasses(ownerState);\n  if (process.env.NODE_ENV !== 'production') {\n    if (select && !children) {\n      console.error('MUI: `children` must be passed when using the `TextField` component with `select`.');\n    }\n  }\n  const InputMore = {};\n  if (variant === 'outlined') {\n    if (InputLabelProps && typeof InputLabelProps.shrink !== 'undefined') {\n      InputMore.notched = InputLabelProps.shrink;\n    }\n    InputMore.label = label;\n  }\n  if (select) {\n    // unset defaults from textbox inputs\n    if (!SelectProps || !SelectProps.native) {\n      InputMore.id = undefined;\n    }\n    InputMore['aria-describedby'] = undefined;\n  }\n  const id = useId(idOverride);\n  const helperTextId = helperText && id ? `${id}-helper-text` : undefined;\n  const inputLabelId = label && id ? `${id}-label` : undefined;\n  const InputComponent = variantComponent[variant];\n  const InputElement = /*#__PURE__*/_jsx(InputComponent, _extends({\n    \"aria-describedby\": helperTextId,\n    autoComplete: autoComplete,\n    autoFocus: autoFocus,\n    defaultValue: defaultValue,\n    fullWidth: fullWidth,\n    multiline: multiline,\n    name: name,\n    rows: rows,\n    maxRows: maxRows,\n    minRows: minRows,\n    type: type,\n    value: value,\n    id: id,\n    inputRef: inputRef,\n    onBlur: onBlur,\n    onChange: onChange,\n    onFocus: onFocus,\n    placeholder: placeholder,\n    inputProps: inputProps\n  }, InputMore, InputProps));\n  return /*#__PURE__*/_jsxs(TextFieldRoot, _extends({\n    className: clsx(classes.root, className),\n    disabled: disabled,\n    error: error,\n    fullWidth: fullWidth,\n    ref: ref,\n    required: required,\n    color: color,\n    variant: variant,\n    ownerState: ownerState\n  }, other, {\n    children: [label != null && label !== '' && /*#__PURE__*/_jsx(InputLabel, _extends({\n      htmlFor: id,\n      id: inputLabelId\n    }, InputLabelProps, {\n      children: label\n    })), select ? /*#__PURE__*/_jsx(Select, _extends({\n      \"aria-describedby\": helperTextId,\n      id: id,\n      labelId: inputLabelId,\n      value: value,\n      input: InputElement\n    }, SelectProps, {\n      children: children\n    })) : InputElement, helperText && /*#__PURE__*/_jsx(FormHelperText, _extends({\n      id: helperTextId\n    }, FormHelperTextProps, {\n      children: helperText\n    }))]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TextField.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * This prop helps users to fill forms faster, especially on mobile devices.\n   * The name can be confusing, as it's more like an autofill.\n   * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).\n   */\n  autoComplete: PropTypes.string,\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   * @default false\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * @default 'primary'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The default value. Use when the component is not controlled.\n   */\n  defaultValue: PropTypes.any,\n  /**\n   * If `true`, the component is disabled.\n   * @default false\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the label is displayed in an error state.\n   * @default false\n   */\n  error: PropTypes.bool,\n  /**\n   * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.\n   */\n  FormHelperTextProps: PropTypes.object,\n  /**\n   * If `true`, the input will take up the full width of its container.\n   * @default false\n   */\n  fullWidth: PropTypes.bool,\n  /**\n   * The helper text content.\n   */\n  helperText: PropTypes.node,\n  /**\n   * The id of the `input` element.\n   * Use this prop to make `label` and `helperText` accessible for screen readers.\n   */\n  id: PropTypes.string,\n  /**\n   * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.\n   * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n   */\n  InputLabelProps: PropTypes.object,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Props applied to the Input element.\n   * It will be a [`FilledInput`](/material-ui/api/filled-input/),\n   * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)\n   * component depending on the `variant` prop value.\n   */\n  InputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /**\n   * The label content.\n   */\n  label: PropTypes.node,\n  /**\n   * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n   * @default 'none'\n   */\n  margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n  /**\n   * Maximum number of rows to display when multiline option is set to true.\n   */\n  maxRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Minimum number of rows to display when multiline option is set to true.\n   */\n  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * If `true`, a `textarea` element is rendered instead of an input.\n   * @default false\n   */\n  multiline: PropTypes.bool,\n  /**\n   * Name attribute of the `input` element.\n   */\n  name: PropTypes.string,\n  /**\n   * @ignore\n   */\n  onBlur: PropTypes.func,\n  /**\n   * Callback fired when the value is changed.\n   *\n   * @param {object} event The event source of the callback.\n   * You can pull out the new value by accessing `event.target.value` (string).\n   */\n  onChange: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onFocus: PropTypes.func,\n  /**\n   * The short hint displayed in the `input` before the user enters a value.\n   */\n  placeholder: PropTypes.string,\n  /**\n   * If `true`, the label is displayed as required and the `input` element is required.\n   * @default false\n   */\n  required: PropTypes.bool,\n  /**\n   * Number of rows to display when multiline option is set to true.\n   */\n  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.\n   * If this option is set you must pass the options of the select as children.\n   * @default false\n   */\n  select: PropTypes.bool,\n  /**\n   * Props applied to the [`Select`](/material-ui/api/select/) element.\n   */\n  SelectProps: PropTypes.object,\n  /**\n   * The size of the component.\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).\n   */\n  type: PropTypes /* @typescript-to-proptypes-ignore */.string,\n  /**\n   * The value of the `input` element, required for a controlled component.\n   */\n  value: PropTypes.any,\n  /**\n   * The variant to use.\n   * @default 'outlined'\n   */\n  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default TextField;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTypographyUtilityClass(slot) {\n  return generateUtilityClass('MuiTypography', slot);\n}\nconst typographyClasses = generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);\nexport default typographyClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"align\", \"className\", \"component\", \"gutterBottom\", \"noWrap\", \"paragraph\", \"variant\", \"variantMapping\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { extendSxProp } from '@mui/system/styleFunctionSx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport capitalize from '../utils/capitalize';\nimport { getTypographyUtilityClass } from './typographyClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    align,\n    gutterBottom,\n    noWrap,\n    paragraph,\n    variant,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap', paragraph && 'paragraph']\n  };\n  return composeClasses(slots, getTypographyUtilityClass, classes);\n};\nexport const TypographyRoot = styled('span', {\n  name: 'MuiTypography',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];\n  }\n})(({\n  theme,\n  ownerState\n}) => _extends({\n  margin: 0\n}, ownerState.variant === 'inherit' && {\n  // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.\n  font: 'inherit'\n}, ownerState.variant !== 'inherit' && theme.typography[ownerState.variant], ownerState.align !== 'inherit' && {\n  textAlign: ownerState.align\n}, ownerState.noWrap && {\n  overflow: 'hidden',\n  textOverflow: 'ellipsis',\n  whiteSpace: 'nowrap'\n}, ownerState.gutterBottom && {\n  marginBottom: '0.35em'\n}, ownerState.paragraph && {\n  marginBottom: 16\n}));\nconst defaultVariantMapping = {\n  h1: 'h1',\n  h2: 'h2',\n  h3: 'h3',\n  h4: 'h4',\n  h5: 'h5',\n  h6: 'h6',\n  subtitle1: 'h6',\n  subtitle2: 'h6',\n  body1: 'p',\n  body2: 'p',\n  inherit: 'p'\n};\n\n// TODO v6: deprecate these color values in v5.x and remove the transformation in v6\nconst colorTransformations = {\n  primary: 'primary.main',\n  textPrimary: 'text.primary',\n  secondary: 'secondary.main',\n  textSecondary: 'text.secondary',\n  error: 'error.main'\n};\nconst transformDeprecatedColors = color => {\n  return colorTransformations[color] || color;\n};\nconst Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {\n  const themeProps = useDefaultProps({\n    props: inProps,\n    name: 'MuiTypography'\n  });\n  const color = transformDeprecatedColors(themeProps.color);\n  const props = extendSxProp(_extends({}, themeProps, {\n    color\n  }));\n  const {\n      align = 'inherit',\n      className,\n      component,\n      gutterBottom = false,\n      noWrap = false,\n      paragraph = false,\n      variant = 'body1',\n      variantMapping = defaultVariantMapping\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const ownerState = _extends({}, props, {\n    align,\n    color,\n    className,\n    component,\n    gutterBottom,\n    noWrap,\n    paragraph,\n    variant,\n    variantMapping\n  });\n  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(TypographyRoot, _extends({\n    as: Component,\n    ref: ref,\n    ownerState: ownerState,\n    className: clsx(classes.root, className)\n  }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Typography.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Set the text-align on the component.\n   * @default 'inherit'\n   */\n  align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * If `true`, the text will have a bottom margin.\n   * @default false\n   */\n  gutterBottom: PropTypes.bool,\n  /**\n   * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n   *\n   * Note that text overflow can only happen with block or inline-block level elements\n   * (the element needs to have a width in order to overflow).\n   * @default false\n   */\n  noWrap: PropTypes.bool,\n  /**\n   * If `true`, the element will be a paragraph element.\n   * @default false\n   */\n  paragraph: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Applies the theme typography styles.\n   * @default 'body1'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string]),\n  /**\n   * The component maps the variant prop to a range of different HTML element types.\n   * For instance, subtitle1 to `<h6>`.\n   * If you wish to change that mapping, you can provide your own.\n   * Alternatively, you can use the `component` prop.\n   * @default {\n   *   h1: 'h1',\n   *   h2: 'h2',\n   *   h3: 'h3',\n   *   h4: 'h4',\n   *   h5: 'h5',\n   *   h6: 'h6',\n   *   subtitle1: 'h6',\n   *   subtitle2: 'h6',\n   *   body1: 'p',\n   *   body2: 'p',\n   *   inherit: 'p',\n   * }\n   */\n  variantMapping: PropTypes /* @typescript-to-proptypes-ignore */.object\n} : void 0;\nexport default Typography;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSwitchBaseUtilityClass(slot) {\n  return generateUtilityClass('PrivateSwitchBase', slot);\n}\nconst switchBaseClasses = generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);\nexport default switchBaseClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"checked\", \"checkedIcon\", \"className\", \"defaultChecked\", \"disabled\", \"disableFocusRipple\", \"edge\", \"icon\", \"id\", \"inputProps\", \"inputRef\", \"name\", \"onBlur\", \"onChange\", \"onFocus\", \"readOnly\", \"required\", \"tabIndex\", \"type\", \"value\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport useControlled from '../utils/useControlled';\nimport useFormControl from '../FormControl/useFormControl';\nimport ButtonBase from '../ButtonBase';\nimport { getSwitchBaseUtilityClass } from './switchBaseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    checked,\n    disabled,\n    edge\n  } = ownerState;\n  const slots = {\n    root: ['root', checked && 'checked', disabled && 'disabled', edge && `edge${capitalize(edge)}`],\n    input: ['input']\n  };\n  return composeClasses(slots, getSwitchBaseUtilityClass, classes);\n};\nconst SwitchBaseRoot = styled(ButtonBase, {\n  name: 'MuiSwitchBase'\n})(({\n  ownerState\n}) => _extends({\n  padding: 9,\n  borderRadius: '50%'\n}, ownerState.edge === 'start' && {\n  marginLeft: ownerState.size === 'small' ? -3 : -12\n}, ownerState.edge === 'end' && {\n  marginRight: ownerState.size === 'small' ? -3 : -12\n}));\nconst SwitchBaseInput = styled('input', {\n  name: 'MuiSwitchBase',\n  shouldForwardProp: rootShouldForwardProp\n})({\n  cursor: 'inherit',\n  position: 'absolute',\n  opacity: 0,\n  width: '100%',\n  height: '100%',\n  top: 0,\n  left: 0,\n  margin: 0,\n  padding: 0,\n  zIndex: 1\n});\n\n/**\n * @ignore - internal component.\n */\nconst SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {\n  const {\n      autoFocus,\n      checked: checkedProp,\n      checkedIcon,\n      className,\n      defaultChecked,\n      disabled: disabledProp,\n      disableFocusRipple = false,\n      edge = false,\n      icon,\n      id,\n      inputProps,\n      inputRef,\n      name,\n      onBlur,\n      onChange,\n      onFocus,\n      readOnly,\n      required = false,\n      tabIndex,\n      type,\n      value\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const [checked, setCheckedState] = useControlled({\n    controlled: checkedProp,\n    default: Boolean(defaultChecked),\n    name: 'SwitchBase',\n    state: 'checked'\n  });\n  const muiFormControl = useFormControl();\n  const handleFocus = event => {\n    if (onFocus) {\n      onFocus(event);\n    }\n    if (muiFormControl && muiFormControl.onFocus) {\n      muiFormControl.onFocus(event);\n    }\n  };\n  const handleBlur = event => {\n    if (onBlur) {\n      onBlur(event);\n    }\n    if (muiFormControl && muiFormControl.onBlur) {\n      muiFormControl.onBlur(event);\n    }\n  };\n  const handleInputChange = event => {\n    // Workaround for https://github.com/facebook/react/issues/9023\n    if (event.nativeEvent.defaultPrevented) {\n      return;\n    }\n    const newChecked = event.target.checked;\n    setCheckedState(newChecked);\n    if (onChange) {\n      // TODO v6: remove the second argument.\n      onChange(event, newChecked);\n    }\n  };\n  let disabled = disabledProp;\n  if (muiFormControl) {\n    if (typeof disabled === 'undefined') {\n      disabled = muiFormControl.disabled;\n    }\n  }\n  const hasLabelFor = type === 'checkbox' || type === 'radio';\n  const ownerState = _extends({}, props, {\n    checked,\n    disabled,\n    disableFocusRipple,\n    edge\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(SwitchBaseRoot, _extends({\n    component: \"span\",\n    className: clsx(classes.root, className),\n    centerRipple: true,\n    focusRipple: !disableFocusRipple,\n    disabled: disabled,\n    tabIndex: null,\n    role: undefined,\n    onFocus: handleFocus,\n    onBlur: handleBlur,\n    ownerState: ownerState,\n    ref: ref\n  }, other, {\n    children: [/*#__PURE__*/_jsx(SwitchBaseInput, _extends({\n      autoFocus: autoFocus,\n      checked: checkedProp,\n      defaultChecked: defaultChecked,\n      className: classes.input,\n      disabled: disabled,\n      id: hasLabelFor ? id : undefined,\n      name: name,\n      onChange: handleInputChange,\n      readOnly: readOnly,\n      ref: inputRef,\n      required: required,\n      ownerState: ownerState,\n      tabIndex: tabIndex,\n      type: type\n    }, type === 'checkbox' && value === undefined ? {} : {\n      value\n    }, inputProps)), checked ? checkedIcon : icon]\n  }));\n});\n\n// NB: If changed, please update Checkbox, Switch and Radio\n// so that the API documentation is updated.\nprocess.env.NODE_ENV !== \"production\" ? SwitchBase.propTypes = {\n  /**\n   * If `true`, the `input` element is focused during the first mount.\n   */\n  autoFocus: PropTypes.bool,\n  /**\n   * If `true`, the component is checked.\n   */\n  checked: PropTypes.bool,\n  /**\n   * The icon to display when the component is checked.\n   */\n  checkedIcon: PropTypes.node.isRequired,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * @ignore\n   */\n  defaultChecked: PropTypes.bool,\n  /**\n   * If `true`, the component is disabled.\n   */\n  disabled: PropTypes.bool,\n  /**\n   * If `true`, the  keyboard focus ripple is disabled.\n   * @default false\n   */\n  disableFocusRipple: PropTypes.bool,\n  /**\n   * If given, uses a negative margin to counteract the padding on one\n   * side (this is often helpful for aligning the left or right\n   * side of the icon with content above or below, without ruining the border\n   * size and shape).\n   * @default false\n   */\n  edge: PropTypes.oneOf(['end', 'start', false]),\n  /**\n   * The icon to display when the component is unchecked.\n   */\n  icon: PropTypes.node.isRequired,\n  /**\n   * The id of the `input` element.\n   */\n  id: PropTypes.string,\n  /**\n   * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   */\n  inputRef: refType,\n  /*\n   * @ignore\n   */\n  name: PropTypes.string,\n  /**\n   * @ignore\n   */\n  onBlur: PropTypes.func,\n  /**\n   * Callback fired when the state is changed.\n   *\n   * @param {object} event The event source of the callback.\n   * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n   */\n  onChange: PropTypes.func,\n  /**\n   * @ignore\n   */\n  onFocus: PropTypes.func,\n  /**\n   * It prevents the user from changing the value of the field\n   * (not from interacting with the field).\n   */\n  readOnly: PropTypes.bool,\n  /**\n   * If `true`, the `input` element is required.\n   */\n  required: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.object,\n  /**\n   * @ignore\n   */\n  tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n  /**\n   * The input component prop `type`.\n   */\n  type: PropTypes.string.isRequired,\n  /**\n   * The value of the component.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default SwitchBase;","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function typeOf(object) {\n      if (\"object\" === typeof object && null !== object) {\n        var $$typeof = object.$$typeof;\n        switch ($$typeof) {\n          case REACT_ELEMENT_TYPE:\n            switch (((object = object.type), object)) {\n              case REACT_FRAGMENT_TYPE:\n              case REACT_PROFILER_TYPE:\n              case REACT_STRICT_MODE_TYPE:\n              case REACT_SUSPENSE_TYPE:\n              case REACT_SUSPENSE_LIST_TYPE:\n              case REACT_VIEW_TRANSITION_TYPE:\n                return object;\n              default:\n                switch (((object = object && object.$$typeof), object)) {\n                  case REACT_CONTEXT_TYPE:\n                  case REACT_FORWARD_REF_TYPE:\n                  case REACT_LAZY_TYPE:\n                  case REACT_MEMO_TYPE:\n                    return object;\n                  case REACT_CONSUMER_TYPE:\n                    return object;\n                  default:\n                    return $$typeof;\n                }\n            }\n          case REACT_PORTAL_TYPE:\n            return $$typeof;\n        }\n      }\n    }\n    var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n      REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n      REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n      REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n      REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n      REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n      REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n      REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n      REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n      REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n      REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n      REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n      REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n      REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n    exports.ContextConsumer = REACT_CONSUMER_TYPE;\n    exports.ContextProvider = REACT_CONTEXT_TYPE;\n    exports.Element = REACT_ELEMENT_TYPE;\n    exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n    exports.Fragment = REACT_FRAGMENT_TYPE;\n    exports.Lazy = REACT_LAZY_TYPE;\n    exports.Memo = REACT_MEMO_TYPE;\n    exports.Portal = REACT_PORTAL_TYPE;\n    exports.Profiler = REACT_PROFILER_TYPE;\n    exports.StrictMode = REACT_STRICT_MODE_TYPE;\n    exports.Suspense = REACT_SUSPENSE_TYPE;\n    exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n    exports.isContextConsumer = function (object) {\n      return typeOf(object) === REACT_CONSUMER_TYPE;\n    };\n    exports.isContextProvider = function (object) {\n      return typeOf(object) === REACT_CONTEXT_TYPE;\n    };\n    exports.isElement = function (object) {\n      return (\n        \"object\" === typeof object &&\n        null !== object &&\n        object.$$typeof === REACT_ELEMENT_TYPE\n      );\n    };\n    exports.isForwardRef = function (object) {\n      return typeOf(object) === REACT_FORWARD_REF_TYPE;\n    };\n    exports.isFragment = function (object) {\n      return typeOf(object) === REACT_FRAGMENT_TYPE;\n    };\n    exports.isLazy = function (object) {\n      return typeOf(object) === REACT_LAZY_TYPE;\n    };\n    exports.isMemo = function (object) {\n      return typeOf(object) === REACT_MEMO_TYPE;\n    };\n    exports.isPortal = function (object) {\n      return typeOf(object) === REACT_PORTAL_TYPE;\n    };\n    exports.isProfiler = function (object) {\n      return typeOf(object) === REACT_PROFILER_TYPE;\n    };\n    exports.isStrictMode = function (object) {\n      return typeOf(object) === REACT_STRICT_MODE_TYPE;\n    };\n    exports.isSuspense = function (object) {\n      return typeOf(object) === REACT_SUSPENSE_TYPE;\n    };\n    exports.isSuspenseList = function (object) {\n      return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n    };\n    exports.isValidElementType = function (type) {\n      return \"string\" === typeof type ||\n        \"function\" === typeof type ||\n        type === REACT_FRAGMENT_TYPE ||\n        type === REACT_PROFILER_TYPE ||\n        type === REACT_STRICT_MODE_TYPE ||\n        type === REACT_SUSPENSE_TYPE ||\n        type === REACT_SUSPENSE_LIST_TYPE ||\n        (\"object\" === typeof type &&\n          null !== type &&\n          (type.$$typeof === REACT_LAZY_TYPE ||\n            type.$$typeof === REACT_MEMO_TYPE ||\n            type.$$typeof === REACT_CONTEXT_TYPE ||\n            type.$$typeof === REACT_CONSUMER_TYPE ||\n            type.$$typeof === REACT_FORWARD_REF_TYPE ||\n            type.$$typeof === REACT_CLIENT_REFERENCE ||\n            void 0 !== type.getModuleId))\n        ? !0\n        : !1;\n    };\n    exports.typeOf = typeOf;\n  })();\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@mui/utils';\nimport ThemeContext from '../useTheme/ThemeContext';\nimport useTheme from '../useTheme';\nimport nested from './nested';\n\n// To support composition of theme.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction mergeOuterLocalTheme(outerTheme, localTheme) {\n  if (typeof localTheme === 'function') {\n    const mergedTheme = localTheme(outerTheme);\n    if (process.env.NODE_ENV !== 'production') {\n      if (!mergedTheme) {\n        console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\\n'));\n      }\n    }\n    return mergedTheme;\n  }\n  return _extends({}, outerTheme, localTheme);\n}\n\n/**\n * This component takes a `theme` prop.\n * It makes the `theme` available down the React tree thanks to React context.\n * This component should preferably be used at **the root of your component tree**.\n */\nfunction ThemeProvider(props) {\n  const {\n    children,\n    theme: localTheme\n  } = props;\n  const outerTheme = useTheme();\n  if (process.env.NODE_ENV !== 'production') {\n    if (outerTheme === null && typeof localTheme === 'function') {\n      console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n    }\n  }\n  const theme = React.useMemo(() => {\n    const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);\n    if (output != null) {\n      output[nested] = outerTheme !== null;\n    }\n    return output;\n  }, [localTheme, outerTheme]);\n  return /*#__PURE__*/_jsx(ThemeContext.Provider, {\n    value: theme,\n    children: children\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = {\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * A theme object. You can provide a function to extend the outer theme.\n   */\n  theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';\nimport exactProp from '@mui/utils/exactProp';\nimport { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';\nimport useThemeWithoutDefault from '../useThemeWithoutDefault';\nimport RtlProvider from '../RtlProvider';\nimport DefaultPropsProvider from '../DefaultPropsProvider';\nimport useLayerOrder from './useLayerOrder';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst EMPTY_THEME = {};\nfunction useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {\n  return React.useMemo(() => {\n    const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n    if (typeof localTheme === 'function') {\n      const mergedTheme = localTheme(resolvedTheme);\n      const result = themeId ? _extends({}, upperTheme, {\n        [themeId]: mergedTheme\n      }) : mergedTheme;\n      // must return a function for the private theme to NOT merge with the upper theme.\n      // see the test case \"use provided theme from a callback\" in ThemeProvider.test.js\n      if (isPrivate) {\n        return () => result;\n      }\n      return result;\n    }\n    return themeId ? _extends({}, upperTheme, {\n      [themeId]: localTheme\n    }) : _extends({}, upperTheme, localTheme);\n  }, [themeId, upperTheme, localTheme, isPrivate]);\n}\n\n/**\n * This component makes the `theme` available down the React tree.\n * It should preferably be used at **the root of your component tree**.\n *\n * <ThemeProvider theme={theme}> // existing use case\n * <ThemeProvider theme={{ id: theme }}> // theme scoping\n */\nfunction ThemeProvider(props) {\n  const {\n    children,\n    theme: localTheme,\n    themeId\n  } = props;\n  const upperTheme = useThemeWithoutDefault(EMPTY_THEME);\n  const upperPrivateTheme = usePrivateTheme() || EMPTY_THEME;\n  if (process.env.NODE_ENV !== 'production') {\n    if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {\n      console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n    }\n  }\n  const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);\n  const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);\n  const rtlValue = engineTheme.direction === 'rtl';\n  const layerOrder = useLayerOrder(engineTheme);\n  return /*#__PURE__*/_jsx(MuiThemeProvider, {\n    theme: privateTheme,\n    children: /*#__PURE__*/_jsx(StyledEngineThemeContext.Provider, {\n      value: engineTheme,\n      children: /*#__PURE__*/_jsx(RtlProvider, {\n        value: rtlValue,\n        children: /*#__PURE__*/_jsxs(DefaultPropsProvider, {\n          value: engineTheme == null ? void 0 : engineTheme.components,\n          children: [layerOrder, children]\n        })\n      })\n    })\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * A theme object. You can provide a function to extend the outer theme.\n   */\n  theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n  /**\n   * The design system's unique id for getting the corresponded theme when there are multiple design systems.\n   */\n  themeId: PropTypes.string\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) : void 0;\n}\nexport default ThemeProvider;","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport GlobalStyles from '../GlobalStyles';\nimport useThemeWithoutDefault from '../useThemeWithoutDefault';\n\n/**\n * This hook returns a `GlobalStyles` component that sets the CSS layer order (for server-side rendering).\n * Then on client-side, it injects the CSS layer order into the document head to ensure that the layer order is always present first before other Emotion styles.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function useLayerOrder(theme) {\n  const upperTheme = useThemeWithoutDefault();\n  const id = useId() || '';\n  const {\n    modularCssLayers\n  } = theme;\n  let layerOrder = 'mui.global, mui.components, mui.theme, mui.custom, mui.sx';\n  if (!modularCssLayers || upperTheme !== null) {\n    // skip this hook if upper theme exists.\n    layerOrder = '';\n  } else if (typeof modularCssLayers === 'string') {\n    layerOrder = modularCssLayers.replace(/mui(?!\\.)/g, layerOrder);\n  } else {\n    layerOrder = `@layer ${layerOrder};`;\n  }\n  useEnhancedEffect(() => {\n    const head = document.querySelector('head');\n    if (!head) {\n      return;\n    }\n    const firstChild = head.firstChild;\n    if (layerOrder) {\n      var _firstChild$hasAttrib;\n      // Only insert if first child doesn't have data-mui-layer-order attribute\n      if (firstChild && (_firstChild$hasAttrib = firstChild.hasAttribute) != null && _firstChild$hasAttrib.call(firstChild, 'data-mui-layer-order') && firstChild.getAttribute('data-mui-layer-order') === id) {\n        return;\n      }\n      const styleElement = document.createElement('style');\n      styleElement.setAttribute('data-mui-layer-order', id);\n      styleElement.textContent = layerOrder;\n      head.prepend(styleElement);\n    } else {\n      var _head$querySelector;\n      (_head$querySelector = head.querySelector(`style[data-mui-layer-order=\"${id}\"]`)) == null || _head$querySelector.remove();\n    }\n  }, [layerOrder, id]);\n  if (!layerOrder) {\n    return null;\n  }\n  return /*#__PURE__*/_jsx(GlobalStyles, {\n    styles: layerOrder\n  });\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"theme\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeProvider as SystemThemeProvider } from '@mui/system';\nimport THEME_ID from './identifier';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function ThemeProvider(_ref) {\n  let {\n      theme: themeInput\n    } = _ref,\n    props = _objectWithoutPropertiesLoose(_ref, _excluded);\n  const scopedTheme = themeInput[THEME_ID];\n  let finalTheme = scopedTheme || themeInput;\n  if (typeof themeInput !== 'function') {\n    if (scopedTheme && !scopedTheme.vars) {\n      finalTheme = _extends({}, scopedTheme, {\n        vars: null\n      });\n    } else if (themeInput && !themeInput.vars) {\n      finalTheme = _extends({}, themeInput, {\n        vars: null\n      });\n    }\n  }\n  return /*#__PURE__*/_jsx(SystemThemeProvider, _extends({}, props, {\n    themeId: scopedTheme ? THEME_ID : undefined,\n    theme: finalTheme\n  }));\n}\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = {\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * A theme object. You can provide a function to extend the outer theme.\n   */\n  theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired\n} : void 0;","const common = {\n  black: '#000',\n  white: '#fff'\n};\nexport default common;","const grey = {\n  50: '#fafafa',\n  100: '#f5f5f5',\n  200: '#eeeeee',\n  300: '#e0e0e0',\n  400: '#bdbdbd',\n  500: '#9e9e9e',\n  600: '#757575',\n  700: '#616161',\n  800: '#424242',\n  900: '#212121',\n  A100: '#f5f5f5',\n  A200: '#eeeeee',\n  A400: '#bdbdbd',\n  A700: '#616161'\n};\nexport default grey;","const purple = {\n  50: '#f3e5f5',\n  100: '#e1bee7',\n  200: '#ce93d8',\n  300: '#ba68c8',\n  400: '#ab47bc',\n  500: '#9c27b0',\n  600: '#8e24aa',\n  700: '#7b1fa2',\n  800: '#6a1b9a',\n  900: '#4a148c',\n  A100: '#ea80fc',\n  A200: '#e040fb',\n  A400: '#d500f9',\n  A700: '#aa00ff'\n};\nexport default purple;","const red = {\n  50: '#ffebee',\n  100: '#ffcdd2',\n  200: '#ef9a9a',\n  300: '#e57373',\n  400: '#ef5350',\n  500: '#f44336',\n  600: '#e53935',\n  700: '#d32f2f',\n  800: '#c62828',\n  900: '#b71c1c',\n  A100: '#ff8a80',\n  A200: '#ff5252',\n  A400: '#ff1744',\n  A700: '#d50000'\n};\nexport default red;","const orange = {\n  50: '#fff3e0',\n  100: '#ffe0b2',\n  200: '#ffcc80',\n  300: '#ffb74d',\n  400: '#ffa726',\n  500: '#ff9800',\n  600: '#fb8c00',\n  700: '#f57c00',\n  800: '#ef6c00',\n  900: '#e65100',\n  A100: '#ffd180',\n  A200: '#ffab40',\n  A400: '#ff9100',\n  A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n  50: '#e3f2fd',\n  100: '#bbdefb',\n  200: '#90caf9',\n  300: '#64b5f6',\n  400: '#42a5f5',\n  500: '#2196f3',\n  600: '#1e88e5',\n  700: '#1976d2',\n  800: '#1565c0',\n  900: '#0d47a1',\n  A100: '#82b1ff',\n  A200: '#448aff',\n  A400: '#2979ff',\n  A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n  50: '#e1f5fe',\n  100: '#b3e5fc',\n  200: '#81d4fa',\n  300: '#4fc3f7',\n  400: '#29b6f6',\n  500: '#03a9f4',\n  600: '#039be5',\n  700: '#0288d1',\n  800: '#0277bd',\n  900: '#01579b',\n  A100: '#80d8ff',\n  A200: '#40c4ff',\n  A400: '#00b0ff',\n  A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n  50: '#e8f5e9',\n  100: '#c8e6c9',\n  200: '#a5d6a7',\n  300: '#81c784',\n  400: '#66bb6a',\n  500: '#4caf50',\n  600: '#43a047',\n  700: '#388e3c',\n  800: '#2e7d32',\n  900: '#1b5e20',\n  A100: '#b9f6ca',\n  A200: '#69f0ae',\n  A400: '#00e676',\n  A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n  // The colors used to style the text.\n  text: {\n    // The most important text.\n    primary: 'rgba(0, 0, 0, 0.87)',\n    // Secondary text.\n    secondary: 'rgba(0, 0, 0, 0.6)',\n    // Disabled text have even lower visual prominence.\n    disabled: 'rgba(0, 0, 0, 0.38)'\n  },\n  // The color used to divide different elements.\n  divider: 'rgba(0, 0, 0, 0.12)',\n  // The background colors used to style the surfaces.\n  // Consistency between these values is important.\n  background: {\n    paper: common.white,\n    default: common.white\n  },\n  // The colors used to style the action elements.\n  action: {\n    // The color of an active action like an icon button.\n    active: 'rgba(0, 0, 0, 0.54)',\n    // The color of an hovered action.\n    hover: 'rgba(0, 0, 0, 0.04)',\n    hoverOpacity: 0.04,\n    // The color of a selected action.\n    selected: 'rgba(0, 0, 0, 0.08)',\n    selectedOpacity: 0.08,\n    // The color of a disabled action.\n    disabled: 'rgba(0, 0, 0, 0.26)',\n    // The background color of a disabled action.\n    disabledBackground: 'rgba(0, 0, 0, 0.12)',\n    disabledOpacity: 0.38,\n    focus: 'rgba(0, 0, 0, 0.12)',\n    focusOpacity: 0.12,\n    activatedOpacity: 0.12\n  }\n};\nexport const dark = {\n  text: {\n    primary: common.white,\n    secondary: 'rgba(255, 255, 255, 0.7)',\n    disabled: 'rgba(255, 255, 255, 0.5)',\n    icon: 'rgba(255, 255, 255, 0.5)'\n  },\n  divider: 'rgba(255, 255, 255, 0.12)',\n  background: {\n    paper: '#121212',\n    default: '#121212'\n  },\n  action: {\n    active: common.white,\n    hover: 'rgba(255, 255, 255, 0.08)',\n    hoverOpacity: 0.08,\n    selected: 'rgba(255, 255, 255, 0.16)',\n    selectedOpacity: 0.16,\n    disabled: 'rgba(255, 255, 255, 0.3)',\n    disabledBackground: 'rgba(255, 255, 255, 0.12)',\n    disabledOpacity: 0.38,\n    focus: 'rgba(255, 255, 255, 0.12)',\n    focusOpacity: 0.12,\n    activatedOpacity: 0.24\n  }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n  const tonalOffsetLight = tonalOffset.light || tonalOffset;\n  const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n  if (!intent[direction]) {\n    if (intent.hasOwnProperty(shade)) {\n      intent[direction] = intent[shade];\n    } else if (direction === 'light') {\n      intent.light = lighten(intent.main, tonalOffsetLight);\n    } else if (direction === 'dark') {\n      intent.dark = darken(intent.main, tonalOffsetDark);\n    }\n  }\n}\nfunction getDefaultPrimary(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: blue[200],\n      light: blue[50],\n      dark: blue[400]\n    };\n  }\n  return {\n    main: blue[700],\n    light: blue[400],\n    dark: blue[800]\n  };\n}\nfunction getDefaultSecondary(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: purple[200],\n      light: purple[50],\n      dark: purple[400]\n    };\n  }\n  return {\n    main: purple[500],\n    light: purple[300],\n    dark: purple[700]\n  };\n}\nfunction getDefaultError(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: red[500],\n      light: red[300],\n      dark: red[700]\n    };\n  }\n  return {\n    main: red[700],\n    light: red[400],\n    dark: red[800]\n  };\n}\nfunction getDefaultInfo(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: lightBlue[400],\n      light: lightBlue[300],\n      dark: lightBlue[700]\n    };\n  }\n  return {\n    main: lightBlue[700],\n    light: lightBlue[500],\n    dark: lightBlue[900]\n  };\n}\nfunction getDefaultSuccess(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: green[400],\n      light: green[300],\n      dark: green[700]\n    };\n  }\n  return {\n    main: green[800],\n    light: green[500],\n    dark: green[900]\n  };\n}\nfunction getDefaultWarning(mode = 'light') {\n  if (mode === 'dark') {\n    return {\n      main: orange[400],\n      light: orange[300],\n      dark: orange[700]\n    };\n  }\n  return {\n    main: '#ed6c02',\n    // closest to orange[800] that pass 3:1.\n    light: orange[500],\n    dark: orange[900]\n  };\n}\nexport default function createPalette(palette) {\n  const {\n      mode = 'light',\n      contrastThreshold = 3,\n      tonalOffset = 0.2\n    } = palette,\n    other = _objectWithoutPropertiesLoose(palette, _excluded);\n  const primary = palette.primary || getDefaultPrimary(mode);\n  const secondary = palette.secondary || getDefaultSecondary(mode);\n  const error = palette.error || getDefaultError(mode);\n  const info = palette.info || getDefaultInfo(mode);\n  const success = palette.success || getDefaultSuccess(mode);\n  const warning = palette.warning || getDefaultWarning(mode);\n\n  // Use the same logic as\n  // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n  // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n  function getContrastText(background) {\n    const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n    if (process.env.NODE_ENV !== 'production') {\n      const contrast = getContrastRatio(background, contrastText);\n      if (contrast < 3) {\n        console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n      }\n    }\n    return contrastText;\n  }\n  const augmentColor = ({\n    color,\n    name,\n    mainShade = 500,\n    lightShade = 300,\n    darkShade = 700\n  }) => {\n    color = _extends({}, color);\n    if (!color.main && color[mainShade]) {\n      color.main = color[mainShade];\n    }\n    if (!color.hasOwnProperty('main')) {\n      throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n    }\n    if (typeof color.main !== 'string') {\n      throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n  primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n  primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n    }\n    addLightOrDark(color, 'light', lightShade, tonalOffset);\n    addLightOrDark(color, 'dark', darkShade, tonalOffset);\n    if (!color.contrastText) {\n      color.contrastText = getContrastText(color.main);\n    }\n    return color;\n  };\n  const modes = {\n    dark,\n    light\n  };\n  if (process.env.NODE_ENV !== 'production') {\n    if (!modes[mode]) {\n      console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n    }\n  }\n  const paletteOutput = deepmerge(_extends({\n    // A collection of common colors.\n    common: _extends({}, common),\n    // prevent mutable object.\n    // The palette mode, can be light or dark.\n    mode,\n    // The colors used to represent primary interface elements for a user.\n    primary: augmentColor({\n      color: primary,\n      name: 'primary'\n    }),\n    // The colors used to represent secondary interface elements for a user.\n    secondary: augmentColor({\n      color: secondary,\n      name: 'secondary',\n      mainShade: 'A400',\n      lightShade: 'A200',\n      darkShade: 'A700'\n    }),\n    // The colors used to represent interface elements that the user should be made aware of.\n    error: augmentColor({\n      color: error,\n      name: 'error'\n    }),\n    // The colors used to represent potentially dangerous actions or important messages.\n    warning: augmentColor({\n      color: warning,\n      name: 'warning'\n    }),\n    // The colors used to present information to the user that is neutral and not necessarily important.\n    info: augmentColor({\n      color: info,\n      name: 'info'\n    }),\n    // The colors used to indicate the successful completion of an action that user triggered.\n    success: augmentColor({\n      color: success,\n      name: 'success'\n    }),\n    // The grey colors.\n    grey,\n    // Used by `getContrastText()` to maximize the contrast between\n    // the background and the text.\n    contrastThreshold,\n    // Takes a background color and returns the text color that maximizes the contrast.\n    getContrastText,\n    // Generate a rich color object.\n    augmentColor,\n    // Used by the functions below to shift a color's luminance by approximately\n    // two indexes within its tonal palette.\n    // E.g., shift from Red 500 to Red 300 or Red 700.\n    tonalOffset\n  }, modes[mode]), other);\n  return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport deepmerge from '@mui/utils/deepmerge';\nfunction round(value) {\n  return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n  textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n  const _ref = typeof typography === 'function' ? typography(palette) : typography,\n    {\n      fontFamily = defaultFontFamily,\n      // The default font size of the Material Specification.\n      fontSize = 14,\n      // px\n      fontWeightLight = 300,\n      fontWeightRegular = 400,\n      fontWeightMedium = 500,\n      fontWeightBold = 700,\n      // Tell MUI what's the font-size on the html element.\n      // 16px is the default font-size used by browsers.\n      htmlFontSize = 16,\n      // Apply the CSS properties to all the variants.\n      allVariants,\n      pxToRem: pxToRem2\n    } = _ref,\n    other = _objectWithoutPropertiesLoose(_ref, _excluded);\n  if (process.env.NODE_ENV !== 'production') {\n    if (typeof fontSize !== 'number') {\n      console.error('MUI: `fontSize` is required to be a number.');\n    }\n    if (typeof htmlFontSize !== 'number') {\n      console.error('MUI: `htmlFontSize` is required to be a number.');\n    }\n  }\n  const coef = fontSize / 14;\n  const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n  const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n    fontFamily,\n    fontWeight,\n    fontSize: pxToRem(size),\n    // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n    lineHeight\n  }, fontFamily === defaultFontFamily ? {\n    letterSpacing: `${round(letterSpacing / size)}em`\n  } : {}, casing, allVariants);\n  const variants = {\n    h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n    h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n    h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n    h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n    h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n    h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n    subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n    subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n    body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n    body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n    button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n    caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n    overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n    // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n    inherit: {\n      fontFamily: 'inherit',\n      fontWeight: 'inherit',\n      fontSize: 'inherit',\n      lineHeight: 'inherit',\n      letterSpacing: 'inherit'\n    }\n  };\n  return deepmerge(_extends({\n    htmlFontSize,\n    pxToRem,\n    fontFamily,\n    fontSize,\n    fontWeightLight,\n    fontWeightRegular,\n    fontWeightMedium,\n    fontWeightBold\n  }, variants), other, {\n    clone: false // No need to clone deep\n  });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n  return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n  mobileStepper: 1000,\n  fab: 1050,\n  speedDial: 1050,\n  appBar: 1100,\n  drawer: 1200,\n  modal: 1300,\n  snackbar: 1400,\n  tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n  const {\n      mixins: mixinsInput = {},\n      palette: paletteInput = {},\n      transitions: transitionsInput = {},\n      typography: typographyInput = {}\n    } = options,\n    other = _objectWithoutPropertiesLoose(options, _excluded);\n  if (options.vars &&\n  // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n  // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n  options.generateCssVars === undefined) {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n  }\n  const palette = createPalette(paletteInput);\n  const systemTheme = systemCreateTheme(options);\n  let muiTheme = deepmerge(systemTheme, {\n    mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n    palette,\n    // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n    shadows: shadows.slice(),\n    typography: createTypography(palette, typographyInput),\n    transitions: createTransitions(transitionsInput),\n    zIndex: _extends({}, zIndex)\n  });\n  muiTheme = deepmerge(muiTheme, other);\n  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n  if (process.env.NODE_ENV !== 'production') {\n    // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n    const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n    const traverse = (node, component) => {\n      let key;\n\n      // eslint-disable-next-line guard-for-in, no-restricted-syntax\n      for (key in node) {\n        const child = node[key];\n        if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n          if (process.env.NODE_ENV !== 'production') {\n            const stateClass = generateUtilityClass('', key);\n            console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n              root: {\n                [`&.${stateClass}`]: child\n              }\n            }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n          }\n          // Remove the style to prevent global conflicts.\n          node[key] = {};\n        }\n      }\n    };\n    Object.keys(muiTheme.components).forEach(component => {\n      const styleOverrides = muiTheme.components[component].styleOverrides;\n      if (styleOverrides && component.indexOf('Mui') === 0) {\n        traverse(styleOverrides, component);\n      }\n    });\n  }\n  muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n  muiTheme.unstable_sx = function sx(props) {\n    return styleFunctionSx({\n      sx: props,\n      theme: this\n    });\n  };\n  return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (!warnedOnce) {\n      warnedOnce = true;\n      console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n    }\n  }\n  return createTheme(...args);\n}\nexport default createTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n  return _extends({\n    toolbar: {\n      minHeight: 56,\n      [breakpoints.up('xs')]: {\n        '@media (orientation: landscape)': {\n          minHeight: 48\n        }\n      },\n      [breakpoints.up('sm')]: {\n        minHeight: 64\n      }\n    }\n  }, mixins);\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n  // This is the most common easing curve.\n  easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n  // Objects enter the screen at full velocity from off-screen and\n  // slowly decelerate to a resting point.\n  easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n  // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n  easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n  // The sharp curve is used by objects that may return to the screen at any time.\n  sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n  shortest: 150,\n  shorter: 200,\n  short: 250,\n  // most basic recommended timing\n  standard: 300,\n  // this is to be used in complex animations\n  complex: 375,\n  // recommended when something is entering screen\n  enteringScreen: 225,\n  // recommended when something is leaving screen\n  leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n  return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n  if (!height) {\n    return 0;\n  }\n  const constant = height / 36;\n\n  // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n  return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n  const mergedEasing = _extends({}, easing, inputTransitions.easing);\n  const mergedDuration = _extends({}, duration, inputTransitions.duration);\n  const create = (props = ['all'], options = {}) => {\n    const {\n        duration: durationOption = mergedDuration.standard,\n        easing: easingOption = mergedEasing.easeInOut,\n        delay = 0\n      } = options,\n      other = _objectWithoutPropertiesLoose(options, _excluded);\n    if (process.env.NODE_ENV !== 'production') {\n      const isString = value => typeof value === 'string';\n      // IE11 support, replace with Number.isNaN\n      // eslint-disable-next-line no-restricted-globals\n      const isNumber = value => !isNaN(parseFloat(value));\n      if (!isString(props) && !Array.isArray(props)) {\n        console.error('MUI: Argument \"props\" must be a string or Array.');\n      }\n      if (!isNumber(durationOption) && !isString(durationOption)) {\n        console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n      }\n      if (!isString(easingOption)) {\n        console.error('MUI: Argument \"easing\" must be a string.');\n      }\n      if (!isNumber(delay) && !isString(delay)) {\n        console.error('MUI: Argument \"delay\" must be a number or a string.');\n      }\n      if (typeof options !== 'object') {\n        console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n      }\n      if (Object.keys(other).length !== 0) {\n        console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n      }\n    }\n    return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n  };\n  return _extends({\n    getAutoHeightDuration,\n    create\n  }, inputTransitions, {\n    easing: mergedEasing,\n    duration: mergedDuration\n  });\n}","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","import slotShouldForwardProp from './slotShouldForwardProp';\nconst rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';\nexport default rootShouldForwardProp;","// copied from @mui/system/createStyled\nfunction slotShouldForwardProp(prop) {\n  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport default slotShouldForwardProp;","'use client';\n\nimport createStyled from '@mui/system/createStyled';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nimport rootShouldForwardProp from './rootShouldForwardProp';\nexport { default as slotShouldForwardProp } from './slotShouldForwardProp';\nexport { default as rootShouldForwardProp } from './rootShouldForwardProp';\nconst styled = createStyled({\n  themeId: THEME_ID,\n  defaultTheme,\n  rootShouldForwardProp\n});\nexport default styled;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n  const theme = useThemeSystem(defaultTheme);\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useDebugValue(theme);\n  }\n  return theme[THEME_ID] || theme;\n}","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n  var _style$transitionDura, _style$transitionTimi;\n  const {\n    timeout,\n    easing,\n    style = {}\n  } = props;\n  return {\n    duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n    easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n    delay: style.transitionDelay\n  };\n}","import capitalize from '@mui/utils/capitalize';\nexport default capitalize;","import createChainedFunction from '@mui/utils/createChainedFunction';\nexport default createChainedFunction;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n  return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    color,\n    fontSize,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n  };\n  return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n  name: 'MuiSvgIcon',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n  }\n})(({\n  theme,\n  ownerState\n}) => {\n  var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n  return {\n    userSelect: 'none',\n    width: '1em',\n    height: '1em',\n    display: 'inline-block',\n    // the <svg> will define the property that has `currentColor`\n    // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n    fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n    flexShrink: 0,\n    transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n      duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n    }),\n    fontSize: {\n      inherit: 'inherit',\n      small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n      medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n      large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n    }[ownerState.fontSize],\n    // TODO v5 deprecate, v6 remove for sx\n    color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n      action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n      disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n      inherit: undefined\n    }[ownerState.color]\n  };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiSvgIcon'\n  });\n  const {\n      children,\n      className,\n      color = 'inherit',\n      component = 'svg',\n      fontSize = 'medium',\n      htmlColor,\n      inheritViewBox = false,\n      titleAccess,\n      viewBox = '0 0 24 24'\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n  const ownerState = _extends({}, props, {\n    color,\n    component,\n    fontSize,\n    instanceFontSize: inProps.fontSize,\n    inheritViewBox,\n    viewBox,\n    hasSvgAsChild\n  });\n  const more = {};\n  if (!inheritViewBox) {\n    more.viewBox = viewBox;\n  }\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n    as: component,\n    className: clsx(classes.root, className),\n    focusable: \"false\",\n    color: htmlColor,\n    \"aria-hidden\": titleAccess ? undefined : true,\n    role: titleAccess ? 'img' : undefined,\n    ref: ref\n  }, more, other, hasSvgAsChild && children.props, {\n    ownerState: ownerState,\n    children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n      children: titleAccess\n    }) : null]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * Node passed into the SVG element.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The color of the component.\n   * It supports both default and custom theme colors, which can be added as shown in the\n   * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n   * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n   * @default 'inherit'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n   * @default 'medium'\n   */\n  fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n  /**\n   * Applies a color attribute to the SVG element.\n   */\n  htmlColor: PropTypes.string,\n  /**\n   * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n   * prop will be ignored.\n   * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n   * `component`'s viewBox to the root node.\n   * @default false\n   */\n  inheritViewBox: PropTypes.bool,\n  /**\n   * The shape-rendering attribute. The behavior of the different options is described on the\n   * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n   * If you are having issues with blurry icons you should investigate this prop.\n   */\n  shapeRendering: PropTypes.string,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * Provides a human-readable title for the element that contains it.\n   * https://www.w3.org/TR/SVG-access/#Equivalent\n   */\n  titleAccess: PropTypes.string,\n  /**\n   * Allows you to redefine what the coordinates without units mean inside an SVG element.\n   * For example, if the SVG element is 500 (width) by 200 (height),\n   * and you pass viewBox=\"0 0 50 20\",\n   * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n   * to bottom right (50,20) and each unit will be worth 10px.\n   * @default '0 0 24 24'\n   */\n  viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n  function Component(props, ref) {\n    return /*#__PURE__*/_jsx(SvgIcon, _extends({\n      \"data-testid\": `${displayName}Icon`,\n      ref: ref\n    }, props, {\n      children: path\n    }));\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    // Need to set `displayName` on the inner component for React.memo.\n    // React prior to 16.14 ignores `displayName` on the wrapper.\n    Component.displayName = `${displayName}Icon`;\n  }\n  Component.muiName = SvgIcon.muiName;\n  return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","import debounce from '@mui/utils/debounce';\nexport default debounce;","import deprecatedPropType from '@mui/utils/deprecatedPropType';\nexport default deprecatedPropType;","export default function deprecatedPropType(validator, reason) {\n  if (process.env.NODE_ENV === 'production') {\n    return () => null;\n  }\n  return (props, propName, componentName, location, propFullName) => {\n    const componentNameSafe = componentName || '<<anonymous>>';\n    const propFullNameSafe = propFullName || propName;\n    if (typeof props[propName] !== 'undefined') {\n      return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n    }\n    return null;\n  };\n}","import setRef from '@mui/utils/setRef';\nexport default setRef;","'use client';\n\nimport useId from '@mui/utils/useId';\nexport default useId;","import unsupportedProp from '@mui/utils/unsupportedProp';\nexport default unsupportedProp;","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n  if (process.env.NODE_ENV === 'production') {\n    return null;\n  }\n  const propFullNameSafe = propFullName || propName;\n  if (typeof props[propName] !== 'undefined') {\n    return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n  }\n  return null;\n}","'use client';\n\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';\nexport { default as capitalize } from './capitalize';\nexport { default as createChainedFunction } from './createChainedFunction';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as debounce } from './debounce';\nexport { default as deprecatedPropType } from './deprecatedPropType';\nexport { default as isMuiElement } from './isMuiElement';\nexport { default as ownerDocument } from './ownerDocument';\nexport { default as ownerWindow } from './ownerWindow';\nexport { default as requirePropFactory } from './requirePropFactory';\nexport { default as setRef } from './setRef';\nexport { default as unstable_useEnhancedEffect } from './useEnhancedEffect';\nexport { default as unstable_useId } from './useId';\nexport { default as unsupportedProp } from './unsupportedProp';\nexport { default as useControlled } from './useControlled';\nexport { default as useEventCallback } from './useEventCallback';\nexport { default as useForkRef } from './useForkRef';\nexport { default as useIsFocusVisible } from './useIsFocusVisible';\n// TODO: remove this export once ClassNameGenerator is stable\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const unstable_ClassNameGenerator = {\n  configure: generator => {\n    if (process.env.NODE_ENV !== 'production') {\n      console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', \"You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\\n'));\n    }\n    ClassNameGenerator.configure(generator);\n  }\n};","import isMuiElement from '@mui/utils/isMuiElement';\nexport default isMuiElement;","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n  var _muiName, _element$type;\n  return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n  // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n  // eslint-disable-next-line no-underscore-dangle\n  (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","import ownerDocument from '@mui/utils/ownerDocument';\nexport default ownerDocument;","import ownerWindow from '@mui/utils/ownerWindow';\nexport default ownerWindow;","import requirePropFactory from '@mui/utils/requirePropFactory';\nexport default requirePropFactory;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n  if (process.env.NODE_ENV === 'production') {\n    return () => null;\n  }\n\n  // eslint-disable-next-line react/forbid-foreign-prop-types\n  const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n  const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n    const propFullNameSafe = propFullName || propName;\n    const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n    if (defaultTypeChecker) {\n      const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n      if (typeCheckerResult) {\n        return typeCheckerResult;\n      }\n    }\n    if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n      return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n    }\n    return null;\n  };\n  return requireProp;\n}","'use client';\n\nimport useControlled from '@mui/utils/useControlled';\nexport default useControlled;","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n  controlled,\n  default: defaultProp,\n  name,\n  state = 'value'\n}) {\n  // isControlled is ignored in the hook dependency lists as it should never change.\n  const {\n    current: isControlled\n  } = React.useRef(controlled !== undefined);\n  const [valueState, setValue] = React.useState(defaultProp);\n  const value = isControlled ? controlled : valueState;\n  if (process.env.NODE_ENV !== 'production') {\n    React.useEffect(() => {\n      if (isControlled !== (controlled !== undefined)) {\n        console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n      }\n    }, [state, name, controlled]);\n    const {\n      current: defaultValue\n    } = React.useRef(defaultProp);\n    React.useEffect(() => {\n      if (!isControlled && !Object.is(defaultValue, defaultProp)) {\n        console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n      }\n    }, [JSON.stringify(defaultProp)]);\n  }\n  const setValueIfUncontrolled = React.useCallback(newValue => {\n    if (!isControlled) {\n      setValue(newValue);\n    }\n  }, []);\n  return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nexport default useEnhancedEffect;","'use client';\n\nimport useEventCallback from '@mui/utils/useEventCallback';\nexport default useEventCallback;","'use client';\n\nimport useForkRef from '@mui/utils/useForkRef';\nexport default useForkRef;","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n  text: true,\n  search: true,\n  url: true,\n  tel: true,\n  email: true,\n  password: true,\n  number: true,\n  date: true,\n  month: true,\n  week: true,\n  time: true,\n  datetime: true,\n  'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n  const {\n    type,\n    tagName\n  } = node;\n  if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n    return true;\n  }\n  if (tagName === 'TEXTAREA' && !node.readOnly) {\n    return true;\n  }\n  if (node.isContentEditable) {\n    return true;\n  }\n  return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n  if (event.metaKey || event.altKey || event.ctrlKey) {\n    return;\n  }\n  hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n  hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n  if (this.visibilityState === 'hidden') {\n    // If the tab becomes active again, the browser will handle calling focus\n    // on the element (Safari actually calls it twice).\n    // If this tab change caused a blur on an element with focus-visible,\n    // re-apply the class when the user switches back to the tab.\n    if (hadFocusVisibleRecently) {\n      hadKeyboardEvent = true;\n    }\n  }\n}\nfunction prepare(doc) {\n  doc.addEventListener('keydown', handleKeyDown, true);\n  doc.addEventListener('mousedown', handlePointerDown, true);\n  doc.addEventListener('pointerdown', handlePointerDown, true);\n  doc.addEventListener('touchstart', handlePointerDown, true);\n  doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n  doc.removeEventListener('keydown', handleKeyDown, true);\n  doc.removeEventListener('mousedown', handlePointerDown, true);\n  doc.removeEventListener('pointerdown', handlePointerDown, true);\n  doc.removeEventListener('touchstart', handlePointerDown, true);\n  doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n  const {\n    target\n  } = event;\n  try {\n    return target.matches(':focus-visible');\n  } catch (error) {\n    // Browsers not implementing :focus-visible will throw a SyntaxError.\n    // We use our own heuristic for those browsers.\n    // Rethrow might be better if it's not the expected error but do we really\n    // want to crash if focus-visible malfunctioned?\n  }\n\n  // No need for validFocusTarget check. The user does that by attaching it to\n  // focusable events only.\n  return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n  const ref = React.useCallback(node => {\n    if (node != null) {\n      prepare(node.ownerDocument);\n    }\n  }, []);\n  const isFocusVisibleRef = React.useRef(false);\n\n  /**\n   * Should be called if a blur event is fired\n   */\n  function handleBlurVisible() {\n    // checking against potential state variable does not suffice if we focus and blur synchronously.\n    // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n    // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n    // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n    // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n    if (isFocusVisibleRef.current) {\n      // To detect a tab/window switch, we look for a blur event followed\n      // rapidly by a visibility change.\n      // If we don't see a visibility change within 100ms, it's probably a\n      // regular focus change.\n      hadFocusVisibleRecently = true;\n      hadFocusVisibleRecentlyTimeout.start(100, () => {\n        hadFocusVisibleRecently = false;\n      });\n      isFocusVisibleRef.current = false;\n      return true;\n    }\n    return false;\n  }\n\n  /**\n   * Should be called if a blur event is fired\n   */\n  function handleFocusVisible(event) {\n    if (isFocusVisible(event)) {\n      isFocusVisibleRef.current = true;\n      return true;\n    }\n    return false;\n  }\n  return {\n    isFocusVisibleRef,\n    onFocus: handleFocusVisible,\n    onBlur: handleBlurVisible,\n    ref\n  };\n}","'use client';\n\nimport useIsFocusVisible from '@mui/utils/useIsFocusVisible';\nexport default useIsFocusVisible;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"elementType\", \"ownerState\", \"externalForwardedProps\", \"getSlotOwnerState\", \"internalForwardedProps\"],\n  _excluded2 = [\"component\", \"slots\", \"slotProps\"],\n  _excluded3 = [\"component\"];\nimport useForkRef from '@mui/utils/useForkRef';\nimport appendOwnerState from '@mui/utils/appendOwnerState';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport mergeSlotProps from '@mui/utils/mergeSlotProps';\n/**\n * An internal function to create a Material UI slot.\n *\n * This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop\n * while Base UI does not need to support leaf component customization.\n *\n * @param {string} name: name of the slot\n * @param {object} parameters\n * @returns {[Slot, slotProps]} The slot's React component and the slot's props\n *\n * Note: the returned slot's props\n * - will never contain `component` prop.\n * - might contain `as` prop.\n */\nexport default function useSlot(\n/**\n * The slot's name. All Material UI components should have `root` slot.\n *\n * If the name is `root`, the logic behaves differently from other slots,\n * e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.\n */\nname, parameters) {\n  const {\n      className,\n      elementType: initialElementType,\n      ownerState,\n      externalForwardedProps,\n      getSlotOwnerState,\n      internalForwardedProps\n    } = parameters,\n    useSlotPropsParams = _objectWithoutPropertiesLoose(parameters, _excluded);\n  const {\n      component: rootComponent,\n      slots = {\n        [name]: undefined\n      },\n      slotProps = {\n        [name]: undefined\n      }\n    } = externalForwardedProps,\n    other = _objectWithoutPropertiesLoose(externalForwardedProps, _excluded2);\n  const elementType = slots[name] || initialElementType;\n\n  // `slotProps[name]` can be a callback that receives the component's ownerState.\n  // `resolvedComponentsProps` is always a plain object.\n  const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);\n  const _mergeSlotProps = mergeSlotProps(_extends({\n      className\n    }, useSlotPropsParams, {\n      externalForwardedProps: name === 'root' ? other : undefined,\n      externalSlotProps: resolvedComponentsProps\n    })),\n    {\n      props: {\n        component: slotComponent\n      },\n      internalRef\n    } = _mergeSlotProps,\n    mergedProps = _objectWithoutPropertiesLoose(_mergeSlotProps.props, _excluded3);\n  const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, parameters.ref);\n  const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};\n  const finalOwnerState = _extends({}, ownerState, slotOwnerState);\n  const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n  const props = appendOwnerState(elementType, _extends({}, name === 'root' && !rootComponent && !slots[name] && internalForwardedProps, name !== 'root' && !slots[name] && internalForwardedProps, mergedProps, LeafComponent && {\n    as: LeafComponent\n  }, {\n    ref\n  }), finalOwnerState);\n  Object.keys(slotOwnerState).forEach(propName => {\n    delete props[propName];\n  });\n  return [elementType, props];\n}","const hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';","import * as React from 'react';\nconst ThemeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n  ThemeContext.displayName = 'ThemeContext';\n}\nexport default ThemeContext;","import * as React from 'react';\nimport ThemeContext from './ThemeContext';\nexport default function useTheme() {\n  const theme = React.useContext(ThemeContext);\n  if (process.env.NODE_ENV !== 'production') {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useDebugValue(theme);\n  }\n  return theme;\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Global } from '@emotion/react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction isEmpty(obj) {\n  return obj === undefined || obj === null || Object.keys(obj).length === 0;\n}\nexport default function GlobalStyles(props) {\n  const {\n    styles,\n    defaultTheme = {}\n  } = props;\n  const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty(themeInput) ? defaultTheme : themeInput) : styles;\n  return /*#__PURE__*/_jsx(Global, {\n    styles: globalStyles\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes = {\n  defaultTheme: PropTypes.object,\n  styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])\n} : void 0;","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n  /* o */\n  && prop.charCodeAt(1) === 110\n  /* n */\n  && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { withEmotionCache, ThemeContext } from '@emotion/react';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport * as React from 'react';\nimport isPropValid from '@emotion/is-prop-valid';\n\nvar isDevelopment = true;\n\nvar testOmitPropsOnStringTag = isPropValid;\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {\n  return key !== 'theme';\n};\n\nvar getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {\n  return typeof tag === 'string' && // 96 is one less than the char code\n  // for \"a\" so this is checking that\n  // it's a lowercase character\n  tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;\n};\nvar composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {\n  var shouldForwardProp;\n\n  if (options) {\n    var optionsShouldForwardProp = options.shouldForwardProp;\n    shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {\n      return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);\n    } : optionsShouldForwardProp;\n  }\n\n  if (typeof shouldForwardProp !== 'function' && isReal) {\n    shouldForwardProp = tag.__emotion_forwardProp;\n  }\n\n  return shouldForwardProp;\n};\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\n\nvar Insertion = function Insertion(_ref) {\n  var cache = _ref.cache,\n      serialized = _ref.serialized,\n      isStringTag = _ref.isStringTag;\n  registerStyles(cache, serialized, isStringTag);\n  useInsertionEffectAlwaysWithSyncFallback(function () {\n    return insertStyles(cache, serialized, isStringTag);\n  });\n\n  return null;\n};\n\nvar createStyled = function createStyled(tag, options) {\n  {\n    if (tag === undefined) {\n      throw new Error('You are trying to create a styled element with an undefined component.\\nYou may have forgotten to import it.');\n    }\n  }\n\n  var isReal = tag.__emotion_real === tag;\n  var baseTag = isReal && tag.__emotion_base || tag;\n  var identifierName;\n  var targetClassName;\n\n  if (options !== undefined) {\n    identifierName = options.label;\n    targetClassName = options.target;\n  }\n\n  var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);\n  var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);\n  var shouldUseAs = !defaultShouldForwardProp('as');\n  return function () {\n    // eslint-disable-next-line prefer-rest-params\n    var args = arguments;\n    var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];\n\n    if (identifierName !== undefined) {\n      styles.push(\"label:\" + identifierName + \";\");\n    }\n\n    if (args[0] == null || args[0].raw === undefined) {\n      // eslint-disable-next-line prefer-spread\n      styles.push.apply(styles, args);\n    } else {\n      var templateStringsArr = args[0];\n\n      if (templateStringsArr[0] === undefined) {\n        console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n      }\n\n      styles.push(templateStringsArr[0]);\n      var len = args.length;\n      var i = 1;\n\n      for (; i < len; i++) {\n        if (templateStringsArr[i] === undefined) {\n          console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n        }\n\n        styles.push(args[i], templateStringsArr[i]);\n      }\n    }\n\n    var Styled = withEmotionCache(function (props, cache, ref) {\n      var FinalTag = shouldUseAs && props.as || baseTag;\n      var className = '';\n      var classInterpolations = [];\n      var mergedProps = props;\n\n      if (props.theme == null) {\n        mergedProps = {};\n\n        for (var key in props) {\n          mergedProps[key] = props[key];\n        }\n\n        mergedProps.theme = React.useContext(ThemeContext);\n      }\n\n      if (typeof props.className === 'string') {\n        className = getRegisteredStyles(cache.registered, classInterpolations, props.className);\n      } else if (props.className != null) {\n        className = props.className + \" \";\n      }\n\n      var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);\n      className += cache.key + \"-\" + serialized.name;\n\n      if (targetClassName !== undefined) {\n        className += \" \" + targetClassName;\n      }\n\n      var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;\n      var newProps = {};\n\n      for (var _key in props) {\n        if (shouldUseAs && _key === 'as') continue;\n\n        if (finalShouldForwardProp(_key)) {\n          newProps[_key] = props[_key];\n        }\n      }\n\n      newProps.className = className;\n\n      if (ref) {\n        newProps.ref = ref;\n      }\n\n      return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n        cache: cache,\n        serialized: serialized,\n        isStringTag: typeof FinalTag === 'string'\n      }), /*#__PURE__*/React.createElement(FinalTag, newProps));\n    });\n    Styled.displayName = identifierName !== undefined ? identifierName : \"Styled(\" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + \")\";\n    Styled.defaultProps = tag.defaultProps;\n    Styled.__emotion_real = Styled;\n    Styled.__emotion_base = baseTag;\n    Styled.__emotion_styles = styles;\n    Styled.__emotion_forwardProp = shouldForwardProp;\n    Object.defineProperty(Styled, 'toString', {\n      value: function value() {\n        if (targetClassName === undefined && isDevelopment) {\n          return 'NO_COMPONENT_SELECTOR';\n        }\n\n        return \".\" + targetClassName;\n      }\n    });\n\n    Styled.withComponent = function (nextTag, nextOptions) {\n      var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {\n        shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)\n      }));\n      return newStyled.apply(void 0, styles);\n    };\n\n    return Styled;\n  };\n};\n\nexport { createStyled as default };\n","import createStyled from '../base/dist/emotion-styled-base.browser.development.esm.js';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/react';\nimport '@emotion/serialize';\nimport '@emotion/use-insertion-effect-with-fallbacks';\nimport '@emotion/utils';\nimport 'react';\nimport '@emotion/is-prop-valid';\n\nvar tags = ['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', 'marquee', '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', 'var', 'video', 'wbr', // SVG\n'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];\n\n// bind it to avoid mutating the original function\nvar styled = createStyled.bind(null);\ntags.forEach(function (tagName) {\n  styled[tagName] = styled(tagName);\n});\n\nexport { styled as default };\n","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\n\n// prepend: true moves MUI styles to the top of the <head> so they're loaded first.\n// It allows developers to easily override MUI styles with other styling solutions, like CSS modules.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getCache(injectFirst, enableCssLayer) {\n  const emotionCache = createCache({\n    key: 'css',\n    prepend: injectFirst\n  });\n  if (enableCssLayer) {\n    const prevInsert = emotionCache.insert;\n    emotionCache.insert = (...args) => {\n      if (!args[1].styles.match(/^@layer\\s+[^{]*$/)) {\n        // avoid nested @layer\n        args[1].styles = `@layer mui {${args[1].styles}}`;\n      }\n      return prevInsert(...args);\n    };\n  }\n  return emotionCache;\n}\nconst cacheMap = new Map();\nexport default function StyledEngineProvider(props) {\n  const {\n    injectFirst,\n    enableCssLayer,\n    children\n  } = props;\n  const cache = React.useMemo(() => {\n    const cacheKey = `${injectFirst}-${enableCssLayer}`;\n    if (typeof document === 'object' && cacheMap.has(cacheKey)) {\n      return cacheMap.get(cacheKey);\n    }\n    const fresh = getCache(injectFirst, enableCssLayer);\n    cacheMap.set(cacheKey, fresh);\n    return fresh;\n  }, [injectFirst, enableCssLayer]);\n  if (injectFirst || enableCssLayer) {\n    return /*#__PURE__*/_jsx(CacheProvider, {\n      value: cache,\n      children: children\n    });\n  }\n  return children;\n}\nprocess.env.NODE_ENV !== \"production\" ? StyledEngineProvider.propTypes = {\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * If true, MUI styles are wrapped in CSS `@layer mui` rule.\n   * It helps to override MUI styles when using CSS Modules, Tailwind CSS, plain CSS, or any other styling solution.\n   */\n  enableCssLayer: PropTypes.bool,\n  /**\n   * By default, the styles are injected last in the <head> element of the page.\n   * As a result, they gain more specificity than any other style sheet.\n   * If you want to override MUI's styles, set this prop.\n   */\n  injectFirst: PropTypes.bool\n} : void 0;","/**\n * @mui/styled-engine v5.18.0\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n  const stylesFactory = emStyled(tag, options);\n  if (process.env.NODE_ENV !== 'production') {\n    return (...styles) => {\n      const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n      if (styles.length === 0) {\n        console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n      } else if (styles.some(style => style === undefined)) {\n        console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n      }\n      return stylesFactory(...styles);\n    };\n  }\n  return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const internal_processStyles = (tag, processor) => {\n  // Emotion attaches all the styles as `__emotion_styles`.\n  // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n  if (Array.isArray(tag.__emotion_styles)) {\n    tag.__emotion_styles = processor(tag.__emotion_styles);\n  }\n};\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n  wrapper[0] = styles;\n  return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from './StyledEngineProvider';\nexport { default as GlobalStyles } from './GlobalStyles';","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexport var isBrowser = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && (typeof document === \"undefined\" ? \"undefined\" : _typeof(document)) === 'object' && document.nodeType === 9;\n\nexport default isBrowser;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport isInBrowser from 'is-in-browser';\nimport warning from 'tiny-warning';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\nvar plainObjectConstrurctor = {}.constructor;\nfunction cloneStyle(style) {\n  if (style == null || typeof style !== 'object') return style;\n  if (Array.isArray(style)) return style.map(cloneStyle);\n  if (style.constructor !== plainObjectConstrurctor) return style;\n  var newStyle = {};\n\n  for (var name in style) {\n    newStyle[name] = cloneStyle(style[name]);\n  }\n\n  return newStyle;\n}\n\n/**\n * Create a rule instance.\n */\n\nfunction createRule(name, decl, options) {\n  if (name === void 0) {\n    name = 'unnamed';\n  }\n\n  var jss = options.jss;\n  var declCopy = cloneStyle(decl);\n  var rule = jss.plugins.onCreateRule(name, declCopy, options);\n  if (rule) return rule; // It is an at-rule and it has no instance.\n\n  if (name[0] === '@') {\n    process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown rule \" + name) : void 0;\n  }\n\n  return null;\n}\n\nvar join = function join(value, by) {\n  var result = '';\n\n  for (var i = 0; i < value.length; i++) {\n    // Remove !important from the value, it will be readded later.\n    if (value[i] === '!important') break;\n    if (result) result += by;\n    result += value[i];\n  }\n\n  return result;\n};\n/**\n * Converts JSS array value to a CSS string.\n *\n * `margin: [['5px', '10px']]` > `margin: 5px 10px;`\n * `border: ['1px', '2px']` > `border: 1px, 2px;`\n * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`\n * `color: ['red', !important]` > `color: red !important;`\n */\n\n\nvar toCssValue = function toCssValue(value) {\n  if (!Array.isArray(value)) return value;\n  var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.\n\n  if (Array.isArray(value[0])) {\n    for (var i = 0; i < value.length; i++) {\n      if (value[i] === '!important') break;\n      if (cssValue) cssValue += ', ';\n      cssValue += join(value[i], ' ');\n    }\n  } else cssValue = join(value, ', '); // Add !important, because it was ignored.\n\n\n  if (value[value.length - 1] === '!important') {\n    cssValue += ' !important';\n  }\n\n  return cssValue;\n};\n\nfunction getWhitespaceSymbols(options) {\n  if (options && options.format === false) {\n    return {\n      linebreak: '',\n      space: ''\n    };\n  }\n\n  return {\n    linebreak: '\\n',\n    space: ' '\n  };\n}\n\n/**\n * Indent a string.\n * http://jsperf.com/array-join-vs-for\n */\n\nfunction indentStr(str, indent) {\n  var result = '';\n\n  for (var index = 0; index < indent; index++) {\n    result += '  ';\n  }\n\n  return result + str;\n}\n/**\n * Converts a Rule to CSS string.\n */\n\n\nfunction toCss(selector, style, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var result = '';\n  if (!style) return result;\n  var _options = options,\n      _options$indent = _options.indent,\n      indent = _options$indent === void 0 ? 0 : _options$indent;\n  var fallbacks = style.fallbacks;\n\n  if (options.format === false) {\n    indent = -Infinity;\n  }\n\n  var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n      linebreak = _getWhitespaceSymbols.linebreak,\n      space = _getWhitespaceSymbols.space;\n\n  if (selector) indent++; // Apply fallbacks first.\n\n  if (fallbacks) {\n    // Array syntax {fallbacks: [{prop: value}]}\n    if (Array.isArray(fallbacks)) {\n      for (var index = 0; index < fallbacks.length; index++) {\n        var fallback = fallbacks[index];\n\n        for (var prop in fallback) {\n          var value = fallback[prop];\n\n          if (value != null) {\n            if (result) result += linebreak;\n            result += indentStr(prop + \":\" + space + toCssValue(value) + \";\", indent);\n          }\n        }\n      }\n    } else {\n      // Object syntax {fallbacks: {prop: value}}\n      for (var _prop in fallbacks) {\n        var _value = fallbacks[_prop];\n\n        if (_value != null) {\n          if (result) result += linebreak;\n          result += indentStr(_prop + \":\" + space + toCssValue(_value) + \";\", indent);\n        }\n      }\n    }\n  }\n\n  for (var _prop2 in style) {\n    var _value2 = style[_prop2];\n\n    if (_value2 != null && _prop2 !== 'fallbacks') {\n      if (result) result += linebreak;\n      result += indentStr(_prop2 + \":\" + space + toCssValue(_value2) + \";\", indent);\n    }\n  } // Allow empty style in this case, because properties will be added dynamically.\n\n\n  if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.\n\n  if (!selector) return result;\n  indent--;\n  if (result) result = \"\" + linebreak + result + linebreak;\n  return indentStr(\"\" + selector + space + \"{\" + result, indent) + indentStr('}', indent);\n}\n\nvar escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\nvar nativeEscape = typeof CSS !== 'undefined' && CSS.escape;\nvar escape = (function (str) {\n  return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\\\$1');\n});\n\nvar BaseStyleRule =\n/*#__PURE__*/\nfunction () {\n  function BaseStyleRule(key, style, options) {\n    this.type = 'style';\n    this.isProcessed = false;\n    var sheet = options.sheet,\n        Renderer = options.Renderer;\n    this.key = key;\n    this.options = options;\n    this.style = style;\n    if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();\n  }\n  /**\n   * Get or set a style property.\n   */\n\n\n  var _proto = BaseStyleRule.prototype;\n\n  _proto.prop = function prop(name, value, options) {\n    // It's a getter.\n    if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.\n\n    var force = options ? options.force : false;\n    if (!force && this.style[name] === value) return this;\n    var newValue = value;\n\n    if (!options || options.process !== false) {\n      newValue = this.options.jss.plugins.onChangeValue(value, name, this);\n    }\n\n    var isEmpty = newValue == null || newValue === false;\n    var isDefined = name in this.style; // Value is empty and wasn't defined before.\n\n    if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.\n\n    var remove = isEmpty && isDefined;\n    if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.\n\n    if (this.renderable && this.renderer) {\n      if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);\n      return this;\n    }\n\n    var sheet = this.options.sheet;\n\n    if (sheet && sheet.attached) {\n      process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Rule is not linked. Missing sheet option \"link: true\".') : void 0;\n    }\n\n    return this;\n  };\n\n  return BaseStyleRule;\n}();\nvar StyleRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n  _inheritsLoose(StyleRule, _BaseStyleRule);\n\n  function StyleRule(key, style, options) {\n    var _this;\n\n    _this = _BaseStyleRule.call(this, key, style, options) || this;\n    var selector = options.selector,\n        scoped = options.scoped,\n        sheet = options.sheet,\n        generateId = options.generateId;\n\n    if (selector) {\n      _this.selectorText = selector;\n    } else if (scoped !== false) {\n      _this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);\n      _this.selectorText = \".\" + escape(_this.id);\n    }\n\n    return _this;\n  }\n  /**\n   * Set selector string.\n   * Attention: use this with caution. Most browsers didn't implement\n   * selectorText setter, so this may result in rerendering of entire Style Sheet.\n   */\n\n\n  var _proto2 = StyleRule.prototype;\n\n  /**\n   * Apply rule to an element inline.\n   */\n  _proto2.applyTo = function applyTo(renderable) {\n    var renderer = this.renderer;\n\n    if (renderer) {\n      var json = this.toJSON();\n\n      for (var prop in json) {\n        renderer.setProperty(renderable, prop, json[prop]);\n      }\n    }\n\n    return this;\n  }\n  /**\n   * Returns JSON representation of the rule.\n   * Fallbacks are not supported.\n   * Useful for inline styles.\n   */\n  ;\n\n  _proto2.toJSON = function toJSON() {\n    var json = {};\n\n    for (var prop in this.style) {\n      var value = this.style[prop];\n      if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);\n    }\n\n    return json;\n  }\n  /**\n   * Generates a CSS string.\n   */\n  ;\n\n  _proto2.toString = function toString(options) {\n    var sheet = this.options.sheet;\n    var link = sheet ? sheet.options.link : false;\n    var opts = link ? _extends({}, options, {\n      allowEmpty: true\n    }) : options;\n    return toCss(this.selectorText, this.style, opts);\n  };\n\n  _createClass(StyleRule, [{\n    key: \"selector\",\n    set: function set(selector) {\n      if (selector === this.selectorText) return;\n      this.selectorText = selector;\n      var renderer = this.renderer,\n          renderable = this.renderable;\n      if (!renderable || !renderer) return;\n      var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.\n\n      if (!hasChanged) {\n        renderer.replaceRule(renderable, this);\n      }\n    }\n    /**\n     * Get selector string.\n     */\n    ,\n    get: function get() {\n      return this.selectorText;\n    }\n  }]);\n\n  return StyleRule;\n}(BaseStyleRule);\nvar pluginStyleRule = {\n  onCreateRule: function onCreateRule(key, style, options) {\n    if (key[0] === '@' || options.parent && options.parent.type === 'keyframes') {\n      return null;\n    }\n\n    return new StyleRule(key, style, options);\n  }\n};\n\nvar defaultToStringOptions = {\n  indent: 1,\n  children: true\n};\nvar atRegExp = /@([\\w-]+)/;\n/**\n * Conditional rule for @media, @supports\n */\n\nvar ConditionalRule =\n/*#__PURE__*/\nfunction () {\n  function ConditionalRule(key, styles, options) {\n    this.type = 'conditional';\n    this.isProcessed = false;\n    this.key = key;\n    var atMatch = key.match(atRegExp);\n    this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.\n\n    this.query = options.name || \"@\" + this.at;\n    this.options = options;\n    this.rules = new RuleList(_extends({}, options, {\n      parent: this\n    }));\n\n    for (var name in styles) {\n      this.rules.add(name, styles[name]);\n    }\n\n    this.rules.process();\n  }\n  /**\n   * Get a rule.\n   */\n\n\n  var _proto = ConditionalRule.prototype;\n\n  _proto.getRule = function getRule(name) {\n    return this.rules.get(name);\n  }\n  /**\n   * Get index of a rule.\n   */\n  ;\n\n  _proto.indexOf = function indexOf(rule) {\n    return this.rules.indexOf(rule);\n  }\n  /**\n   * Create and register rule, run plugins.\n   */\n  ;\n\n  _proto.addRule = function addRule(name, style, options) {\n    var rule = this.rules.add(name, style, options);\n    if (!rule) return null;\n    this.options.jss.plugins.onProcessRule(rule);\n    return rule;\n  }\n  /**\n   * Replace rule, run plugins.\n   */\n  ;\n\n  _proto.replaceRule = function replaceRule(name, style, options) {\n    var newRule = this.rules.replace(name, style, options);\n    if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n    return newRule;\n  }\n  /**\n   * Generates a CSS string.\n   */\n  ;\n\n  _proto.toString = function toString(options) {\n    if (options === void 0) {\n      options = defaultToStringOptions;\n    }\n\n    var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n        linebreak = _getWhitespaceSymbols.linebreak;\n\n    if (options.indent == null) options.indent = defaultToStringOptions.indent;\n    if (options.children == null) options.children = defaultToStringOptions.children;\n\n    if (options.children === false) {\n      return this.query + \" {}\";\n    }\n\n    var children = this.rules.toString(options);\n    return children ? this.query + \" {\" + linebreak + children + linebreak + \"}\" : '';\n  };\n\n  return ConditionalRule;\n}();\nvar keyRegExp = /@container|@media|@supports\\s+/;\nvar pluginConditionalRule = {\n  onCreateRule: function onCreateRule(key, styles, options) {\n    return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;\n  }\n};\n\nvar defaultToStringOptions$1 = {\n  indent: 1,\n  children: true\n};\nvar nameRegExp = /@keyframes\\s+([\\w-]+)/;\n/**\n * Rule for @keyframes\n */\n\nvar KeyframesRule =\n/*#__PURE__*/\nfunction () {\n  function KeyframesRule(key, frames, options) {\n    this.type = 'keyframes';\n    this.at = '@keyframes';\n    this.isProcessed = false;\n    var nameMatch = key.match(nameRegExp);\n\n    if (nameMatch && nameMatch[1]) {\n      this.name = nameMatch[1];\n    } else {\n      this.name = 'noname';\n      process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Bad keyframes name \" + key) : void 0;\n    }\n\n    this.key = this.type + \"-\" + this.name;\n    this.options = options;\n    var scoped = options.scoped,\n        sheet = options.sheet,\n        generateId = options.generateId;\n    this.id = scoped === false ? this.name : escape(generateId(this, sheet));\n    this.rules = new RuleList(_extends({}, options, {\n      parent: this\n    }));\n\n    for (var name in frames) {\n      this.rules.add(name, frames[name], _extends({}, options, {\n        parent: this\n      }));\n    }\n\n    this.rules.process();\n  }\n  /**\n   * Generates a CSS string.\n   */\n\n\n  var _proto = KeyframesRule.prototype;\n\n  _proto.toString = function toString(options) {\n    if (options === void 0) {\n      options = defaultToStringOptions$1;\n    }\n\n    var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n        linebreak = _getWhitespaceSymbols.linebreak;\n\n    if (options.indent == null) options.indent = defaultToStringOptions$1.indent;\n    if (options.children == null) options.children = defaultToStringOptions$1.children;\n\n    if (options.children === false) {\n      return this.at + \" \" + this.id + \" {}\";\n    }\n\n    var children = this.rules.toString(options);\n    if (children) children = \"\" + linebreak + children + linebreak;\n    return this.at + \" \" + this.id + \" {\" + children + \"}\";\n  };\n\n  return KeyframesRule;\n}();\nvar keyRegExp$1 = /@keyframes\\s+/;\nvar refRegExp = /\\$([\\w-]+)/g;\n\nvar findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {\n  if (typeof val === 'string') {\n    return val.replace(refRegExp, function (match, name) {\n      if (name in keyframes) {\n        return keyframes[name];\n      }\n\n      process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Referenced keyframes rule \\\"\" + name + \"\\\" is not defined.\") : void 0;\n      return match;\n    });\n  }\n\n  return val;\n};\n/**\n * Replace the reference for a animation name.\n */\n\n\nvar replaceRef = function replaceRef(style, prop, keyframes) {\n  var value = style[prop];\n  var refKeyframe = findReferencedKeyframe(value, keyframes);\n\n  if (refKeyframe !== value) {\n    style[prop] = refKeyframe;\n  }\n};\n\nvar pluginKeyframesRule = {\n  onCreateRule: function onCreateRule(key, frames, options) {\n    return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;\n  },\n  // Animation name ref replacer.\n  onProcessStyle: function onProcessStyle(style, rule, sheet) {\n    if (rule.type !== 'style' || !sheet) return style;\n    if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);\n    if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);\n    return style;\n  },\n  onChangeValue: function onChangeValue(val, prop, rule) {\n    var sheet = rule.options.sheet;\n\n    if (!sheet) {\n      return val;\n    }\n\n    switch (prop) {\n      case 'animation':\n        return findReferencedKeyframe(val, sheet.keyframes);\n\n      case 'animation-name':\n        return findReferencedKeyframe(val, sheet.keyframes);\n\n      default:\n        return val;\n    }\n  }\n};\n\nvar KeyframeRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n  _inheritsLoose(KeyframeRule, _BaseStyleRule);\n\n  function KeyframeRule() {\n    return _BaseStyleRule.apply(this, arguments) || this;\n  }\n\n  var _proto = KeyframeRule.prototype;\n\n  /**\n   * Generates a CSS string.\n   */\n  _proto.toString = function toString(options) {\n    var sheet = this.options.sheet;\n    var link = sheet ? sheet.options.link : false;\n    var opts = link ? _extends({}, options, {\n      allowEmpty: true\n    }) : options;\n    return toCss(this.key, this.style, opts);\n  };\n\n  return KeyframeRule;\n}(BaseStyleRule);\nvar pluginKeyframeRule = {\n  onCreateRule: function onCreateRule(key, style, options) {\n    if (options.parent && options.parent.type === 'keyframes') {\n      return new KeyframeRule(key, style, options);\n    }\n\n    return null;\n  }\n};\n\nvar FontFaceRule =\n/*#__PURE__*/\nfunction () {\n  function FontFaceRule(key, style, options) {\n    this.type = 'font-face';\n    this.at = '@font-face';\n    this.isProcessed = false;\n    this.key = key;\n    this.style = style;\n    this.options = options;\n  }\n  /**\n   * Generates a CSS string.\n   */\n\n\n  var _proto = FontFaceRule.prototype;\n\n  _proto.toString = function toString(options) {\n    var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n        linebreak = _getWhitespaceSymbols.linebreak;\n\n    if (Array.isArray(this.style)) {\n      var str = '';\n\n      for (var index = 0; index < this.style.length; index++) {\n        str += toCss(this.at, this.style[index]);\n        if (this.style[index + 1]) str += linebreak;\n      }\n\n      return str;\n    }\n\n    return toCss(this.at, this.style, options);\n  };\n\n  return FontFaceRule;\n}();\nvar keyRegExp$2 = /@font-face/;\nvar pluginFontFaceRule = {\n  onCreateRule: function onCreateRule(key, style, options) {\n    return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;\n  }\n};\n\nvar ViewportRule =\n/*#__PURE__*/\nfunction () {\n  function ViewportRule(key, style, options) {\n    this.type = 'viewport';\n    this.at = '@viewport';\n    this.isProcessed = false;\n    this.key = key;\n    this.style = style;\n    this.options = options;\n  }\n  /**\n   * Generates a CSS string.\n   */\n\n\n  var _proto = ViewportRule.prototype;\n\n  _proto.toString = function toString(options) {\n    return toCss(this.key, this.style, options);\n  };\n\n  return ViewportRule;\n}();\nvar pluginViewportRule = {\n  onCreateRule: function onCreateRule(key, style, options) {\n    return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;\n  }\n};\n\nvar SimpleRule =\n/*#__PURE__*/\nfunction () {\n  function SimpleRule(key, value, options) {\n    this.type = 'simple';\n    this.isProcessed = false;\n    this.key = key;\n    this.value = value;\n    this.options = options;\n  }\n  /**\n   * Generates a CSS string.\n   */\n  // eslint-disable-next-line no-unused-vars\n\n\n  var _proto = SimpleRule.prototype;\n\n  _proto.toString = function toString(options) {\n    if (Array.isArray(this.value)) {\n      var str = '';\n\n      for (var index = 0; index < this.value.length; index++) {\n        str += this.key + \" \" + this.value[index] + \";\";\n        if (this.value[index + 1]) str += '\\n';\n      }\n\n      return str;\n    }\n\n    return this.key + \" \" + this.value + \";\";\n  };\n\n  return SimpleRule;\n}();\nvar keysMap = {\n  '@charset': true,\n  '@import': true,\n  '@namespace': true\n};\nvar pluginSimpleRule = {\n  onCreateRule: function onCreateRule(key, value, options) {\n    return key in keysMap ? new SimpleRule(key, value, options) : null;\n  }\n};\n\nvar plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];\n\nvar defaultUpdateOptions = {\n  process: true\n};\nvar forceUpdateOptions = {\n  force: true,\n  process: true\n  /**\n   * Contains rules objects and allows adding/removing etc.\n   * Is used for e.g. by `StyleSheet` or `ConditionalRule`.\n   */\n\n};\n\nvar RuleList =\n/*#__PURE__*/\nfunction () {\n  // Rules registry for access by .get() method.\n  // It contains the same rule registered by name and by selector.\n  // Original styles object.\n  // Used to ensure correct rules order.\n  function RuleList(options) {\n    this.map = {};\n    this.raw = {};\n    this.index = [];\n    this.counter = 0;\n    this.options = options;\n    this.classes = options.classes;\n    this.keyframes = options.keyframes;\n  }\n  /**\n   * Create and register rule.\n   *\n   * Will not render after Style Sheet was rendered the first time.\n   */\n\n\n  var _proto = RuleList.prototype;\n\n  _proto.add = function add(name, decl, ruleOptions) {\n    var _this$options = this.options,\n        parent = _this$options.parent,\n        sheet = _this$options.sheet,\n        jss = _this$options.jss,\n        Renderer = _this$options.Renderer,\n        generateId = _this$options.generateId,\n        scoped = _this$options.scoped;\n\n    var options = _extends({\n      classes: this.classes,\n      parent: parent,\n      sheet: sheet,\n      jss: jss,\n      Renderer: Renderer,\n      generateId: generateId,\n      scoped: scoped,\n      name: name,\n      keyframes: this.keyframes,\n      selector: undefined\n    }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but\n    // `sheet.addRule()` opens the door for any duplicate rule name. When this happens\n    // we need to make the key unique within this RuleList instance scope.\n\n\n    var key = name;\n\n    if (name in this.raw) {\n      key = name + \"-d\" + this.counter++;\n    } // We need to save the original decl before creating the rule\n    // because cache plugin needs to use it as a key to return a cached rule.\n\n\n    this.raw[key] = decl;\n\n    if (key in this.classes) {\n      // E.g. rules inside of @media container\n      options.selector = \".\" + escape(this.classes[key]);\n    }\n\n    var rule = createRule(key, decl, options);\n    if (!rule) return null;\n    this.register(rule);\n    var index = options.index === undefined ? this.index.length : options.index;\n    this.index.splice(index, 0, rule);\n    return rule;\n  }\n  /**\n   * Replace rule.\n   * Create a new rule and remove old one instead of overwriting\n   * because we want to invoke onCreateRule hook to make plugins work.\n   */\n  ;\n\n  _proto.replace = function replace(name, decl, ruleOptions) {\n    var oldRule = this.get(name);\n    var oldIndex = this.index.indexOf(oldRule);\n\n    if (oldRule) {\n      this.remove(oldRule);\n    }\n\n    var options = ruleOptions;\n    if (oldIndex !== -1) options = _extends({}, ruleOptions, {\n      index: oldIndex\n    });\n    return this.add(name, decl, options);\n  }\n  /**\n   * Get a rule by name or selector.\n   */\n  ;\n\n  _proto.get = function get(nameOrSelector) {\n    return this.map[nameOrSelector];\n  }\n  /**\n   * Delete a rule.\n   */\n  ;\n\n  _proto.remove = function remove(rule) {\n    this.unregister(rule);\n    delete this.raw[rule.key];\n    this.index.splice(this.index.indexOf(rule), 1);\n  }\n  /**\n   * Get index of a rule.\n   */\n  ;\n\n  _proto.indexOf = function indexOf(rule) {\n    return this.index.indexOf(rule);\n  }\n  /**\n   * Run `onProcessRule()` plugins on every rule.\n   */\n  ;\n\n  _proto.process = function process() {\n    var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop\n    // we end up with very hard-to-track-down side effects.\n\n    this.index.slice(0).forEach(plugins.onProcessRule, plugins);\n  }\n  /**\n   * Register a rule in `.map`, `.classes` and `.keyframes` maps.\n   */\n  ;\n\n  _proto.register = function register(rule) {\n    this.map[rule.key] = rule;\n\n    if (rule instanceof StyleRule) {\n      this.map[rule.selector] = rule;\n      if (rule.id) this.classes[rule.key] = rule.id;\n    } else if (rule instanceof KeyframesRule && this.keyframes) {\n      this.keyframes[rule.name] = rule.id;\n    }\n  }\n  /**\n   * Unregister a rule.\n   */\n  ;\n\n  _proto.unregister = function unregister(rule) {\n    delete this.map[rule.key];\n\n    if (rule instanceof StyleRule) {\n      delete this.map[rule.selector];\n      delete this.classes[rule.key];\n    } else if (rule instanceof KeyframesRule) {\n      delete this.keyframes[rule.name];\n    }\n  }\n  /**\n   * Update the function values with a new data.\n   */\n  ;\n\n  _proto.update = function update() {\n    var name;\n    var data;\n    var options;\n\n    if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {\n      name = arguments.length <= 0 ? undefined : arguments[0];\n      data = arguments.length <= 1 ? undefined : arguments[1];\n      options = arguments.length <= 2 ? undefined : arguments[2];\n    } else {\n      data = arguments.length <= 0 ? undefined : arguments[0];\n      options = arguments.length <= 1 ? undefined : arguments[1];\n      name = null;\n    }\n\n    if (name) {\n      this.updateOne(this.get(name), data, options);\n    } else {\n      for (var index = 0; index < this.index.length; index++) {\n        this.updateOne(this.index[index], data, options);\n      }\n    }\n  }\n  /**\n   * Execute plugins, update rule props.\n   */\n  ;\n\n  _proto.updateOne = function updateOne(rule, data, options) {\n    if (options === void 0) {\n      options = defaultUpdateOptions;\n    }\n\n    var _this$options2 = this.options,\n        plugins = _this$options2.jss.plugins,\n        sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.\n\n    if (rule.rules instanceof RuleList) {\n      rule.rules.update(data, options);\n      return;\n    }\n\n    var style = rule.style;\n    plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.\n\n    if (options.process && style && style !== rule.style) {\n      // We need to run the plugins in case new `style` relies on syntax plugins.\n      plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props.\n\n      for (var prop in rule.style) {\n        var nextValue = rule.style[prop];\n        var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n        // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n        if (nextValue !== prevValue) {\n          rule.prop(prop, nextValue, forceUpdateOptions);\n        }\n      } // Remove props.\n\n\n      for (var _prop in style) {\n        var _nextValue = rule.style[_prop];\n        var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n        // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n        if (_nextValue == null && _nextValue !== _prevValue) {\n          rule.prop(_prop, null, forceUpdateOptions);\n        }\n      }\n    }\n  }\n  /**\n   * Convert rules to a CSS string.\n   */\n  ;\n\n  _proto.toString = function toString(options) {\n    var str = '';\n    var sheet = this.options.sheet;\n    var link = sheet ? sheet.options.link : false;\n\n    var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n        linebreak = _getWhitespaceSymbols.linebreak;\n\n    for (var index = 0; index < this.index.length; index++) {\n      var rule = this.index[index];\n      var css = rule.toString(options); // No need to render an empty rule.\n\n      if (!css && !link) continue;\n      if (str) str += linebreak;\n      str += css;\n    }\n\n    return str;\n  };\n\n  return RuleList;\n}();\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n  function StyleSheet(styles, options) {\n    this.attached = false;\n    this.deployed = false;\n    this.classes = {};\n    this.keyframes = {};\n    this.options = _extends({}, options, {\n      sheet: this,\n      parent: this,\n      classes: this.classes,\n      keyframes: this.keyframes\n    });\n\n    if (options.Renderer) {\n      this.renderer = new options.Renderer(this);\n    }\n\n    this.rules = new RuleList(this.options);\n\n    for (var name in styles) {\n      this.rules.add(name, styles[name]);\n    }\n\n    this.rules.process();\n  }\n  /**\n   * Attach renderable to the render tree.\n   */\n\n\n  var _proto = StyleSheet.prototype;\n\n  _proto.attach = function attach() {\n    if (this.attached) return this;\n    if (this.renderer) this.renderer.attach();\n    this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.\n\n    if (!this.deployed) this.deploy();\n    return this;\n  }\n  /**\n   * Remove renderable from render tree.\n   */\n  ;\n\n  _proto.detach = function detach() {\n    if (!this.attached) return this;\n    if (this.renderer) this.renderer.detach();\n    this.attached = false;\n    return this;\n  }\n  /**\n   * Add a rule to the current stylesheet.\n   * Will insert a rule also after the stylesheet has been rendered first time.\n   */\n  ;\n\n  _proto.addRule = function addRule(name, decl, options) {\n    var queue = this.queue; // Plugins can create rules.\n    // In order to preserve the right order, we need to queue all `.addRule` calls,\n    // which happen after the first `rules.add()` call.\n\n    if (this.attached && !queue) this.queue = [];\n    var rule = this.rules.add(name, decl, options);\n    if (!rule) return null;\n    this.options.jss.plugins.onProcessRule(rule);\n\n    if (this.attached) {\n      if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.\n      // It will be inserted all together when .attach is called.\n\n      if (queue) queue.push(rule);else {\n        this.insertRule(rule);\n\n        if (this.queue) {\n          this.queue.forEach(this.insertRule, this);\n          this.queue = undefined;\n        }\n      }\n      return rule;\n    } // We can't add rules to a detached style node.\n    // We will redeploy the sheet once user will attach it.\n\n\n    this.deployed = false;\n    return rule;\n  }\n  /**\n   * Replace a rule in the current stylesheet.\n   */\n  ;\n\n  _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {\n    var oldRule = this.rules.get(nameOrSelector);\n    if (!oldRule) return this.addRule(nameOrSelector, decl, options);\n    var newRule = this.rules.replace(nameOrSelector, decl, options);\n\n    if (newRule) {\n      this.options.jss.plugins.onProcessRule(newRule);\n    }\n\n    if (this.attached) {\n      if (!this.deployed) return newRule; // Don't replace / delete rule directly if there is no stringified version yet.\n      // It will be inserted all together when .attach is called.\n\n      if (this.renderer) {\n        if (!newRule) {\n          this.renderer.deleteRule(oldRule);\n        } else if (oldRule.renderable) {\n          this.renderer.replaceRule(oldRule.renderable, newRule);\n        }\n      }\n\n      return newRule;\n    } // We can't replace rules to a detached style node.\n    // We will redeploy the sheet once user will attach it.\n\n\n    this.deployed = false;\n    return newRule;\n  }\n  /**\n   * Insert rule into the StyleSheet\n   */\n  ;\n\n  _proto.insertRule = function insertRule(rule) {\n    if (this.renderer) {\n      this.renderer.insertRule(rule);\n    }\n  }\n  /**\n   * Create and add rules.\n   * Will render also after Style Sheet was rendered the first time.\n   */\n  ;\n\n  _proto.addRules = function addRules(styles, options) {\n    var added = [];\n\n    for (var name in styles) {\n      var rule = this.addRule(name, styles[name], options);\n      if (rule) added.push(rule);\n    }\n\n    return added;\n  }\n  /**\n   * Get a rule by name or selector.\n   */\n  ;\n\n  _proto.getRule = function getRule(nameOrSelector) {\n    return this.rules.get(nameOrSelector);\n  }\n  /**\n   * Delete a rule by name.\n   * Returns `true`: if rule has been deleted from the DOM.\n   */\n  ;\n\n  _proto.deleteRule = function deleteRule(name) {\n    var rule = typeof name === 'object' ? name : this.rules.get(name);\n\n    if (!rule || // Style sheet was created without link: true and attached, in this case we\n    // won't be able to remove the CSS rule from the DOM.\n    this.attached && !rule.renderable) {\n      return false;\n    }\n\n    this.rules.remove(rule);\n\n    if (this.attached && rule.renderable && this.renderer) {\n      return this.renderer.deleteRule(rule.renderable);\n    }\n\n    return true;\n  }\n  /**\n   * Get index of a rule.\n   */\n  ;\n\n  _proto.indexOf = function indexOf(rule) {\n    return this.rules.indexOf(rule);\n  }\n  /**\n   * Deploy pure CSS string to a renderable.\n   */\n  ;\n\n  _proto.deploy = function deploy() {\n    if (this.renderer) this.renderer.deploy();\n    this.deployed = true;\n    return this;\n  }\n  /**\n   * Update the function values with a new data.\n   */\n  ;\n\n  _proto.update = function update() {\n    var _this$rules;\n\n    (_this$rules = this.rules).update.apply(_this$rules, arguments);\n\n    return this;\n  }\n  /**\n   * Updates a single rule.\n   */\n  ;\n\n  _proto.updateOne = function updateOne(rule, data, options) {\n    this.rules.updateOne(rule, data, options);\n    return this;\n  }\n  /**\n   * Convert rules to a CSS string.\n   */\n  ;\n\n  _proto.toString = function toString(options) {\n    return this.rules.toString(options);\n  };\n\n  return StyleSheet;\n}();\n\nvar PluginsRegistry =\n/*#__PURE__*/\nfunction () {\n  function PluginsRegistry() {\n    this.plugins = {\n      internal: [],\n      external: []\n    };\n    this.registry = {};\n  }\n\n  var _proto = PluginsRegistry.prototype;\n\n  /**\n   * Call `onCreateRule` hooks and return an object if returned by a hook.\n   */\n  _proto.onCreateRule = function onCreateRule(name, decl, options) {\n    for (var i = 0; i < this.registry.onCreateRule.length; i++) {\n      var rule = this.registry.onCreateRule[i](name, decl, options);\n      if (rule) return rule;\n    }\n\n    return null;\n  }\n  /**\n   * Call `onProcessRule` hooks.\n   */\n  ;\n\n  _proto.onProcessRule = function onProcessRule(rule) {\n    if (rule.isProcessed) return;\n    var sheet = rule.options.sheet;\n\n    for (var i = 0; i < this.registry.onProcessRule.length; i++) {\n      this.registry.onProcessRule[i](rule, sheet);\n    }\n\n    if (rule.style) this.onProcessStyle(rule.style, rule, sheet);\n    rule.isProcessed = true;\n  }\n  /**\n   * Call `onProcessStyle` hooks.\n   */\n  ;\n\n  _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {\n    for (var i = 0; i < this.registry.onProcessStyle.length; i++) {\n      rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);\n    }\n  }\n  /**\n   * Call `onProcessSheet` hooks.\n   */\n  ;\n\n  _proto.onProcessSheet = function onProcessSheet(sheet) {\n    for (var i = 0; i < this.registry.onProcessSheet.length; i++) {\n      this.registry.onProcessSheet[i](sheet);\n    }\n  }\n  /**\n   * Call `onUpdate` hooks.\n   */\n  ;\n\n  _proto.onUpdate = function onUpdate(data, rule, sheet, options) {\n    for (var i = 0; i < this.registry.onUpdate.length; i++) {\n      this.registry.onUpdate[i](data, rule, sheet, options);\n    }\n  }\n  /**\n   * Call `onChangeValue` hooks.\n   */\n  ;\n\n  _proto.onChangeValue = function onChangeValue(value, prop, rule) {\n    var processedValue = value;\n\n    for (var i = 0; i < this.registry.onChangeValue.length; i++) {\n      processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);\n    }\n\n    return processedValue;\n  }\n  /**\n   * Register a plugin.\n   */\n  ;\n\n  _proto.use = function use(newPlugin, options) {\n    if (options === void 0) {\n      options = {\n        queue: 'external'\n      };\n    }\n\n    var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.\n\n    if (plugins.indexOf(newPlugin) !== -1) {\n      return;\n    }\n\n    plugins.push(newPlugin);\n    this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {\n      for (var name in plugin) {\n        if (name in registry) {\n          registry[name].push(plugin[name]);\n        } else {\n          process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Unknown hook \\\"\" + name + \"\\\".\") : void 0;\n        }\n      }\n\n      return registry;\n    }, {\n      onCreateRule: [],\n      onProcessRule: [],\n      onProcessStyle: [],\n      onProcessSheet: [],\n      onChangeValue: [],\n      onUpdate: []\n    });\n  };\n\n  return PluginsRegistry;\n}();\n\n/**\n * Sheets registry to access all instances in one place.\n */\n\nvar SheetsRegistry =\n/*#__PURE__*/\nfunction () {\n  function SheetsRegistry() {\n    this.registry = [];\n  }\n\n  var _proto = SheetsRegistry.prototype;\n\n  /**\n   * Register a Style Sheet.\n   */\n  _proto.add = function add(sheet) {\n    var registry = this.registry;\n    var index = sheet.options.index;\n    if (registry.indexOf(sheet) !== -1) return;\n\n    if (registry.length === 0 || index >= this.index) {\n      registry.push(sheet);\n      return;\n    } // Find a position.\n\n\n    for (var i = 0; i < registry.length; i++) {\n      if (registry[i].options.index > index) {\n        registry.splice(i, 0, sheet);\n        return;\n      }\n    }\n  }\n  /**\n   * Reset the registry.\n   */\n  ;\n\n  _proto.reset = function reset() {\n    this.registry = [];\n  }\n  /**\n   * Remove a Style Sheet.\n   */\n  ;\n\n  _proto.remove = function remove(sheet) {\n    var index = this.registry.indexOf(sheet);\n    this.registry.splice(index, 1);\n  }\n  /**\n   * Convert all attached sheets to a CSS string.\n   */\n  ;\n\n  _proto.toString = function toString(_temp) {\n    var _ref = _temp === void 0 ? {} : _temp,\n        attached = _ref.attached,\n        options = _objectWithoutPropertiesLoose(_ref, [\"attached\"]);\n\n    var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n        linebreak = _getWhitespaceSymbols.linebreak;\n\n    var css = '';\n\n    for (var i = 0; i < this.registry.length; i++) {\n      var sheet = this.registry[i];\n\n      if (attached != null && sheet.attached !== attached) {\n        continue;\n      }\n\n      if (css) css += linebreak;\n      css += sheet.toString(options);\n    }\n\n    return css;\n  };\n\n  _createClass(SheetsRegistry, [{\n    key: \"index\",\n\n    /**\n     * Current highest index number.\n     */\n    get: function get() {\n      return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;\n    }\n  }]);\n\n  return SheetsRegistry;\n}();\n\n/**\n * This is a global sheets registry. Only DomRenderer will add sheets to it.\n * On the server one should use an own SheetsRegistry instance and add the\n * sheets to it, because you need to make sure to create a new registry for\n * each request in order to not leak sheets across requests.\n */\n\nvar sheets = new SheetsRegistry();\n\n/* eslint-disable */\n\n/**\n * Now that `globalThis` is available on most platforms\n * (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility)\n * we check for `globalThis` first. `globalThis` is necessary for jss\n * to run in Agoric's secure version of JavaScript (SES). Under SES,\n * `globalThis` exists, but `window`, `self`, and `Function('return\n * this')()` are all undefined for security reasons.\n *\n * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n */\nvar globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')();\n\nvar ns = '2f1acc6c3a606b082e5eef5e54414ffb';\nif (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify\n// the current version with just one short number and use it for classes generation\n// we use a counter. Also it is more accurate, because user can manually reevaluate\n// the module.\n\nvar moduleId = globalThis$1[ns]++;\n\nvar maxRules = 1e10;\n/**\n * Returns a function which generates unique class names based on counters.\n * When new generator function is created, rule counter is reseted.\n * We need to reset the rule counter for SSR for each request.\n */\n\nvar createGenerateId = function createGenerateId(options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var ruleCounter = 0;\n\n  var generateId = function generateId(rule, sheet) {\n    ruleCounter += 1;\n\n    if (ruleCounter > maxRules) {\n      process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] You might have a memory leak. Rule counter is at \" + ruleCounter + \".\") : void 0;\n    }\n\n    var jssId = '';\n    var prefix = '';\n\n    if (sheet) {\n      if (sheet.options.classNamePrefix) {\n        prefix = sheet.options.classNamePrefix;\n      }\n\n      if (sheet.options.jss.id != null) {\n        jssId = String(sheet.options.jss.id);\n      }\n    }\n\n    if (options.minify) {\n      // Using \"c\" because a number can't be the first char in a class name.\n      return \"\" + (prefix || 'c') + moduleId + jssId + ruleCounter;\n    }\n\n    return prefix + rule.key + \"-\" + moduleId + (jssId ? \"-\" + jssId : '') + \"-\" + ruleCounter;\n  };\n\n  return generateId;\n};\n\n/**\n * Cache the value from the first time a function is called.\n */\n\nvar memoize = function memoize(fn) {\n  var value;\n  return function () {\n    if (!value) value = fn();\n    return value;\n  };\n};\n/**\n * Get a style property value.\n */\n\n\nvar getPropertyValue = function getPropertyValue(cssRule, prop) {\n  try {\n    // Support CSSTOM.\n    if (cssRule.attributeStyleMap) {\n      return cssRule.attributeStyleMap.get(prop);\n    }\n\n    return cssRule.style.getPropertyValue(prop);\n  } catch (err) {\n    // IE may throw if property is unknown.\n    return '';\n  }\n};\n/**\n * Set a style property.\n */\n\n\nvar setProperty = function setProperty(cssRule, prop, value) {\n  try {\n    var cssValue = value;\n\n    if (Array.isArray(value)) {\n      cssValue = toCssValue(value);\n    } // Support CSSTOM.\n\n\n    if (cssRule.attributeStyleMap) {\n      cssRule.attributeStyleMap.set(prop, cssValue);\n    } else {\n      var indexOfImportantFlag = cssValue ? cssValue.indexOf('!important') : -1;\n      var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue;\n      cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? 'important' : '');\n    }\n  } catch (err) {\n    // IE may throw if property is unknown.\n    return false;\n  }\n\n  return true;\n};\n/**\n * Remove a style property.\n */\n\n\nvar removeProperty = function removeProperty(cssRule, prop) {\n  try {\n    // Support CSSTOM.\n    if (cssRule.attributeStyleMap) {\n      cssRule.attributeStyleMap.delete(prop);\n    } else {\n      cssRule.style.removeProperty(prop);\n    }\n  } catch (err) {\n    process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] DOMException \\\"\" + err.message + \"\\\" was thrown. Tried to remove property \\\"\" + prop + \"\\\".\") : void 0;\n  }\n};\n/**\n * Set the selector.\n */\n\n\nvar setSelector = function setSelector(cssRule, selectorText) {\n  cssRule.selectorText = selectorText; // Return false if setter was not successful.\n  // Currently works in chrome only.\n\n  return cssRule.selectorText === selectorText;\n};\n/**\n * Gets the `head` element upon the first call and caches it.\n * We assume it can't be null.\n */\n\n\nvar getHead = memoize(function () {\n  return document.querySelector('head');\n});\n/**\n * Find attached sheet with an index higher than the passed one.\n */\n\nfunction findHigherSheet(registry, options) {\n  for (var i = 0; i < registry.length; i++) {\n    var sheet = registry[i];\n\n    if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {\n      return sheet;\n    }\n  }\n\n  return null;\n}\n/**\n * Find attached sheet with the highest index.\n */\n\n\nfunction findHighestSheet(registry, options) {\n  for (var i = registry.length - 1; i >= 0; i--) {\n    var sheet = registry[i];\n\n    if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {\n      return sheet;\n    }\n  }\n\n  return null;\n}\n/**\n * Find a comment with \"jss\" inside.\n */\n\n\nfunction findCommentNode(text) {\n  var head = getHead();\n\n  for (var i = 0; i < head.childNodes.length; i++) {\n    var node = head.childNodes[i];\n\n    if (node.nodeType === 8 && node.nodeValue.trim() === text) {\n      return node;\n    }\n  }\n\n  return null;\n}\n/**\n * Find a node before which we can insert the sheet.\n */\n\n\nfunction findPrevNode(options) {\n  var registry = sheets.registry;\n\n  if (registry.length > 0) {\n    // Try to insert before the next higher sheet.\n    var sheet = findHigherSheet(registry, options);\n\n    if (sheet && sheet.renderer) {\n      return {\n        parent: sheet.renderer.element.parentNode,\n        node: sheet.renderer.element\n      };\n    } // Otherwise insert after the last attached.\n\n\n    sheet = findHighestSheet(registry, options);\n\n    if (sheet && sheet.renderer) {\n      return {\n        parent: sheet.renderer.element.parentNode,\n        node: sheet.renderer.element.nextSibling\n      };\n    }\n  } // Try to find a comment placeholder if registry is empty.\n\n\n  var insertionPoint = options.insertionPoint;\n\n  if (insertionPoint && typeof insertionPoint === 'string') {\n    var comment = findCommentNode(insertionPoint);\n\n    if (comment) {\n      return {\n        parent: comment.parentNode,\n        node: comment.nextSibling\n      };\n    } // If user specifies an insertion point and it can't be found in the document -\n    // bad specificity issues may appear.\n\n\n    process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Insertion point \\\"\" + insertionPoint + \"\\\" not found.\") : void 0;\n  }\n\n  return false;\n}\n/**\n * Insert style element into the DOM.\n */\n\n\nfunction insertStyle(style, options) {\n  var insertionPoint = options.insertionPoint;\n  var nextNode = findPrevNode(options);\n\n  if (nextNode !== false && nextNode.parent) {\n    nextNode.parent.insertBefore(style, nextNode.node);\n    return;\n  } // Works with iframes and any node types.\n\n\n  if (insertionPoint && typeof insertionPoint.nodeType === 'number') {\n    var insertionPointElement = insertionPoint;\n    var parentNode = insertionPointElement.parentNode;\n    if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;\n    return;\n  }\n\n  getHead().appendChild(style);\n}\n/**\n * Read jss nonce setting from the page if the user has set it.\n */\n\n\nvar getNonce = memoize(function () {\n  var node = document.querySelector('meta[property=\"csp-nonce\"]');\n  return node ? node.getAttribute('content') : null;\n});\n\nvar _insertRule = function insertRule(container, rule, index) {\n  try {\n    if ('insertRule' in container) {\n      container.insertRule(rule, index);\n    } // Keyframes rule.\n    else if ('appendRule' in container) {\n        container.appendRule(rule);\n      }\n  } catch (err) {\n    process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] \" + err.message) : void 0;\n    return false;\n  }\n\n  return container.cssRules[index];\n};\n\nvar getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {\n  var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong\n\n  if (index === undefined || index > maxIndex) {\n    // eslint-disable-next-line no-param-reassign\n    return maxIndex;\n  }\n\n  return index;\n};\n\nvar createStyle = function createStyle() {\n  var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we\n  // insert rules after we insert the style tag.\n  // It seems to kick-off the source order specificity algorithm.\n\n  el.textContent = '\\n';\n  return el;\n};\n\nvar DomRenderer =\n/*#__PURE__*/\nfunction () {\n  // Will be empty if link: true option is not set, because\n  // it is only for use together with insertRule API.\n  function DomRenderer(sheet) {\n    this.getPropertyValue = getPropertyValue;\n    this.setProperty = setProperty;\n    this.removeProperty = removeProperty;\n    this.setSelector = setSelector;\n    this.hasInsertedRules = false;\n    this.cssRules = [];\n    // There is no sheet when the renderer is used from a standalone StyleRule.\n    if (sheet) sheets.add(sheet);\n    this.sheet = sheet;\n\n    var _ref = this.sheet ? this.sheet.options : {},\n        media = _ref.media,\n        meta = _ref.meta,\n        element = _ref.element;\n\n    this.element = element || createStyle();\n    this.element.setAttribute('data-jss', '');\n    if (media) this.element.setAttribute('media', media);\n    if (meta) this.element.setAttribute('data-meta', meta);\n    var nonce = getNonce();\n    if (nonce) this.element.setAttribute('nonce', nonce);\n  }\n  /**\n   * Insert style element into render tree.\n   */\n\n\n  var _proto = DomRenderer.prototype;\n\n  _proto.attach = function attach() {\n    // In the case the element node is external and it is already in the DOM.\n    if (this.element.parentNode || !this.sheet) return;\n    insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`\n    // most browsers create a new CSSStyleSheet, except of all IEs.\n\n    var deployed = Boolean(this.sheet && this.sheet.deployed);\n\n    if (this.hasInsertedRules && deployed) {\n      this.hasInsertedRules = false;\n      this.deploy();\n    }\n  }\n  /**\n   * Remove style element from render tree.\n   */\n  ;\n\n  _proto.detach = function detach() {\n    if (!this.sheet) return;\n    var parentNode = this.element.parentNode;\n    if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.\n    // Though IE will keep them and we need a consistent behavior.\n\n    if (this.sheet.options.link) {\n      this.cssRules = [];\n      this.element.textContent = '\\n';\n    }\n  }\n  /**\n   * Inject CSS string into element.\n   */\n  ;\n\n  _proto.deploy = function deploy() {\n    var sheet = this.sheet;\n    if (!sheet) return;\n\n    if (sheet.options.link) {\n      this.insertRules(sheet.rules);\n      return;\n    }\n\n    this.element.textContent = \"\\n\" + sheet.toString() + \"\\n\";\n  }\n  /**\n   * Insert RuleList into an element.\n   */\n  ;\n\n  _proto.insertRules = function insertRules(rules, nativeParent) {\n    for (var i = 0; i < rules.index.length; i++) {\n      this.insertRule(rules.index[i], i, nativeParent);\n    }\n  }\n  /**\n   * Insert a rule into element.\n   */\n  ;\n\n  _proto.insertRule = function insertRule(rule, index, nativeParent) {\n    if (nativeParent === void 0) {\n      nativeParent = this.element.sheet;\n    }\n\n    if (rule.rules) {\n      var parent = rule;\n      var latestNativeParent = nativeParent;\n\n      if (rule.type === 'conditional' || rule.type === 'keyframes') {\n        var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.\n\n\n        latestNativeParent = _insertRule(nativeParent, parent.toString({\n          children: false\n        }), _insertionIndex);\n\n        if (latestNativeParent === false) {\n          return false;\n        }\n\n        this.refCssRule(rule, _insertionIndex, latestNativeParent);\n      }\n\n      this.insertRules(parent.rules, latestNativeParent);\n      return latestNativeParent;\n    }\n\n    var ruleStr = rule.toString();\n    if (!ruleStr) return false;\n    var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);\n\n    var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);\n\n    if (nativeRule === false) {\n      return false;\n    }\n\n    this.hasInsertedRules = true;\n    this.refCssRule(rule, insertionIndex, nativeRule);\n    return nativeRule;\n  };\n\n  _proto.refCssRule = function refCssRule(rule, index, cssRule) {\n    rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules\n    // like rules inside media queries or keyframes\n\n    if (rule.options.parent instanceof StyleSheet) {\n      this.cssRules.splice(index, 0, cssRule);\n    }\n  }\n  /**\n   * Delete a rule.\n   */\n  ;\n\n  _proto.deleteRule = function deleteRule(cssRule) {\n    var sheet = this.element.sheet;\n    var index = this.indexOf(cssRule);\n    if (index === -1) return false;\n    sheet.deleteRule(index);\n    this.cssRules.splice(index, 1);\n    return true;\n  }\n  /**\n   * Get index of a CSS Rule.\n   */\n  ;\n\n  _proto.indexOf = function indexOf(cssRule) {\n    return this.cssRules.indexOf(cssRule);\n  }\n  /**\n   * Generate a new CSS rule and replace the existing one.\n   */\n  ;\n\n  _proto.replaceRule = function replaceRule(cssRule, rule) {\n    var index = this.indexOf(cssRule);\n    if (index === -1) return false;\n    this.element.sheet.deleteRule(index);\n    this.cssRules.splice(index, 1);\n    return this.insertRule(rule, index);\n  }\n  /**\n   * Get all rules elements.\n   */\n  ;\n\n  _proto.getRules = function getRules() {\n    return this.element.sheet.cssRules;\n  };\n\n  return DomRenderer;\n}();\n\nvar instanceCounter = 0;\n\nvar Jss =\n/*#__PURE__*/\nfunction () {\n  function Jss(options) {\n    this.id = instanceCounter++;\n    this.version = \"10.10.0\";\n    this.plugins = new PluginsRegistry();\n    this.options = {\n      id: {\n        minify: false\n      },\n      createGenerateId: createGenerateId,\n      Renderer: isInBrowser ? DomRenderer : null,\n      plugins: []\n    };\n    this.generateId = createGenerateId({\n      minify: false\n    });\n\n    for (var i = 0; i < plugins.length; i++) {\n      this.plugins.use(plugins[i], {\n        queue: 'internal'\n      });\n    }\n\n    this.setup(options);\n  }\n  /**\n   * Prepares various options, applies plugins.\n   * Should not be used twice on the same instance, because there is no plugins\n   * deduplication logic.\n   */\n\n\n  var _proto = Jss.prototype;\n\n  _proto.setup = function setup(options) {\n    if (options === void 0) {\n      options = {};\n    }\n\n    if (options.createGenerateId) {\n      this.options.createGenerateId = options.createGenerateId;\n    }\n\n    if (options.id) {\n      this.options.id = _extends({}, this.options.id, options.id);\n    }\n\n    if (options.createGenerateId || options.id) {\n      this.generateId = this.options.createGenerateId(this.options.id);\n    }\n\n    if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;\n\n    if ('Renderer' in options) {\n      this.options.Renderer = options.Renderer;\n    } // eslint-disable-next-line prefer-spread\n\n\n    if (options.plugins) this.use.apply(this, options.plugins);\n    return this;\n  }\n  /**\n   * Create a Style Sheet.\n   */\n  ;\n\n  _proto.createStyleSheet = function createStyleSheet(styles, options) {\n    if (options === void 0) {\n      options = {};\n    }\n\n    var _options = options,\n        index = _options.index;\n\n    if (typeof index !== 'number') {\n      index = sheets.index === 0 ? 0 : sheets.index + 1;\n    }\n\n    var sheet = new StyleSheet(styles, _extends({}, options, {\n      jss: this,\n      generateId: options.generateId || this.generateId,\n      insertionPoint: this.options.insertionPoint,\n      Renderer: this.options.Renderer,\n      index: index\n    }));\n    this.plugins.onProcessSheet(sheet);\n    return sheet;\n  }\n  /**\n   * Detach the Style Sheet and remove it from the registry.\n   */\n  ;\n\n  _proto.removeStyleSheet = function removeStyleSheet(sheet) {\n    sheet.detach();\n    sheets.remove(sheet);\n    return this;\n  }\n  /**\n   * Create a rule without a Style Sheet.\n   * [Deprecated] will be removed in the next major version.\n   */\n  ;\n\n  _proto.createRule = function createRule$1(name, style, options) {\n    if (style === void 0) {\n      style = {};\n    }\n\n    if (options === void 0) {\n      options = {};\n    }\n\n    // Enable rule without name for inline styles.\n    if (typeof name === 'object') {\n      return this.createRule(undefined, name, style);\n    }\n\n    var ruleOptions = _extends({}, options, {\n      name: name,\n      jss: this,\n      Renderer: this.options.Renderer\n    });\n\n    if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;\n    if (!ruleOptions.classes) ruleOptions.classes = {};\n    if (!ruleOptions.keyframes) ruleOptions.keyframes = {};\n\n    var rule = createRule(name, style, ruleOptions);\n\n    if (rule) this.plugins.onProcessRule(rule);\n    return rule;\n  }\n  /**\n   * Register plugin. Passed function will be invoked with a rule instance.\n   */\n  ;\n\n  _proto.use = function use() {\n    var _this = this;\n\n    for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n      plugins[_key] = arguments[_key];\n    }\n\n    plugins.forEach(function (plugin) {\n      _this.plugins.use(plugin);\n    });\n    return this;\n  };\n\n  return Jss;\n}();\n\nvar createJss = function createJss(options) {\n  return new Jss(options);\n};\n\n/**\n * SheetsManager is like a WeakMap which is designed to count StyleSheet\n * instances and attach/detach automatically.\n * Used in react-jss.\n */\n\nvar SheetsManager =\n/*#__PURE__*/\nfunction () {\n  function SheetsManager() {\n    this.length = 0;\n    this.sheets = new WeakMap();\n  }\n\n  var _proto = SheetsManager.prototype;\n\n  _proto.get = function get(key) {\n    var entry = this.sheets.get(key);\n    return entry && entry.sheet;\n  };\n\n  _proto.add = function add(key, sheet) {\n    if (this.sheets.has(key)) return;\n    this.length++;\n    this.sheets.set(key, {\n      sheet: sheet,\n      refs: 0\n    });\n  };\n\n  _proto.manage = function manage(key) {\n    var entry = this.sheets.get(key);\n\n    if (entry) {\n      if (entry.refs === 0) {\n        entry.sheet.attach();\n      }\n\n      entry.refs++;\n      return entry.sheet;\n    }\n\n    warning(false, \"[JSS] SheetsManager: can't find sheet to manage\");\n    return undefined;\n  };\n\n  _proto.unmanage = function unmanage(key) {\n    var entry = this.sheets.get(key);\n\n    if (entry) {\n      if (entry.refs > 0) {\n        entry.refs--;\n        if (entry.refs === 0) entry.sheet.detach();\n      }\n    } else {\n      warning(false, \"SheetsManager: can't find sheet to unmanage\");\n    }\n  };\n\n  _createClass(SheetsManager, [{\n    key: \"size\",\n    get: function get() {\n      return this.length;\n    }\n  }]);\n\n  return SheetsManager;\n}();\n\n/**\n* Export a constant indicating if this browser has CSSTOM support.\n* https://developers.google.com/web/updates/2018/03/cssom\n*/\nvar hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;\n\n/**\n * Extracts a styles object with only props that contain function values.\n */\nfunction getDynamicStyles(styles) {\n  var to = null;\n\n  for (var key in styles) {\n    var value = styles[key];\n    var type = typeof value;\n\n    if (type === 'function') {\n      if (!to) to = {};\n      to[key] = value;\n    } else if (type === 'object' && value !== null && !Array.isArray(value)) {\n      var extracted = getDynamicStyles(value);\n\n      if (extracted) {\n        if (!to) to = {};\n        to[key] = extracted;\n      }\n    }\n  }\n\n  return to;\n}\n\n/**\n * A better abstraction over CSS.\n *\n * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present\n * @website https://github.com/cssinjs/jss\n * @license MIT\n */\nvar index = createJss();\n\nexport default index;\nexport { RuleList, SheetsManager, SheetsRegistry, createJss as create, createGenerateId, createRule, getDynamicStyles, hasCSSTOMSupport, sheets, toCssValue };\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { getDisplayName } from '@mui/utils';\nexport default function mergeClasses(options = {}) {\n  const {\n    baseClasses,\n    newClasses,\n    Component\n  } = options;\n  if (!newClasses) {\n    return baseClasses;\n  }\n  const nextClasses = _extends({}, baseClasses);\n  if (process.env.NODE_ENV !== 'production') {\n    if (typeof newClasses === 'string') {\n      console.error([`MUI: The value \\`${newClasses}\\` ` + `provided to the classes prop of ${getDisplayName(Component)} is incorrect.`, 'You might want to use the className prop instead.'].join('\\n'));\n      return baseClasses;\n    }\n  }\n  Object.keys(newClasses).forEach(key => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (!baseClasses[key] && newClasses[key]) {\n        console.error([`MUI: The key \\`${key}\\` ` + `provided to the classes prop is not implemented in ${getDisplayName(Component)}.`, `You can only override one of the following: ${Object.keys(baseClasses).join(',')}.`].join('\\n'));\n      }\n      if (newClasses[key] && typeof newClasses[key] !== 'string') {\n        console.error([`MUI: The key \\`${key}\\` ` + `provided to the classes prop is not valid for ${getDisplayName(Component)}.`, `You need to provide a non empty string instead of: ${newClasses[key]}.`].join('\\n'));\n      }\n    }\n    if (newClasses[key]) {\n      nextClasses[key] = `${baseClasses[key]} ${newClasses[key]}`;\n    }\n  });\n  return nextClasses;\n}","// Used https://github.com/thinkloop/multi-key-cache as inspiration\n\nconst multiKeyStore = {\n  set: (cache, key1, key2, value) => {\n    let subCache = cache.get(key1);\n    if (!subCache) {\n      subCache = new Map();\n      cache.set(key1, subCache);\n    }\n    subCache.set(key2, value);\n  },\n  get: (cache, key1, key2) => {\n    const subCache = cache.get(key1);\n    return subCache ? subCache.get(key2) : undefined;\n  },\n  delete: (cache, key1, key2) => {\n    const subCache = cache.get(key1);\n    subCache.delete(key2);\n  }\n};\nexport default multiKeyStore;","import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';\n\n/**\n * This is the list of the style rule name we use as drop in replacement for the built-in\n * pseudo classes (:checked, :disabled, :focused, etc.).\n *\n * Why do they exist in the first place?\n * These classes are used at a specificity of 2.\n * It allows them to override previously defined styles as well as\n * being untouched by simple user overrides.\n */\nconst stateClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];\n\n// Returns a function which generates unique class names based on counters.\n// When new generator function is created, rule counter is reset.\n// We need to reset the rule counter for SSR for each request.\n//\n// It's inspired by\n// https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js\nexport default function createGenerateClassName(options = {}) {\n  const {\n    disableGlobal = false,\n    productionPrefix = 'jss',\n    seed = ''\n  } = options;\n  const seedPrefix = seed === '' ? '' : `${seed}-`;\n  let ruleCounter = 0;\n  const getNextCounterId = () => {\n    ruleCounter += 1;\n    if (process.env.NODE_ENV !== 'production') {\n      if (ruleCounter >= 1e10) {\n        console.warn(['MUI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));\n      }\n    }\n    return ruleCounter;\n  };\n  return (rule, styleSheet) => {\n    const name = styleSheet.options.name;\n\n    // Is a global static MUI style?\n    if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) {\n      // We can use a shorthand class name, we never use the keys to style the components.\n      if (stateClasses.indexOf(rule.key) !== -1) {\n        return `Mui-${rule.key}`;\n      }\n      const prefix = `${seedPrefix}${name}-${rule.key}`;\n      if (!styleSheet.options.theme[nested] || seed !== '') {\n        return prefix;\n      }\n      return `${prefix}-${getNextCounterId()}`;\n    }\n    if (process.env.NODE_ENV === 'production') {\n      return `${seedPrefix}${productionPrefix}${getNextCounterId()}`;\n    }\n    const suffix = `${rule.key}-${getNextCounterId()}`;\n\n    // Help with debuggability.\n    if (styleSheet.options.classNamePrefix) {\n      return `${seedPrefix}${styleSheet.options.classNamePrefix}-${suffix}`;\n    }\n    return `${seedPrefix}${suffix}`;\n  };\n}","import warning from 'tiny-warning';\nimport { createRule } from 'jss';\n\nvar now = Date.now();\nvar fnValuesNs = \"fnValues\" + now;\nvar fnRuleNs = \"fnStyle\" + ++now;\n\nvar functionPlugin = function functionPlugin() {\n  return {\n    onCreateRule: function onCreateRule(name, decl, options) {\n      if (typeof decl !== 'function') return null;\n      var rule = createRule(name, {}, options);\n      rule[fnRuleNs] = decl;\n      return rule;\n    },\n    onProcessStyle: function onProcessStyle(style, rule) {\n      // We need to extract function values from the declaration, so that we can keep core unaware of them.\n      // We need to do that only once.\n      // We don't need to extract functions on each style update, since this can happen only once.\n      // We don't support function values inside of function rules.\n      if (fnValuesNs in rule || fnRuleNs in rule) return style;\n      var fnValues = {};\n\n      for (var prop in style) {\n        var value = style[prop];\n        if (typeof value !== 'function') continue;\n        delete style[prop];\n        fnValues[prop] = value;\n      }\n\n      rule[fnValuesNs] = fnValues;\n      return style;\n    },\n    onUpdate: function onUpdate(data, rule, sheet, options) {\n      var styleRule = rule;\n      var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object\n      // will be returned from that function.\n\n      if (fnRule) {\n        // Empty object will remove all currently defined props\n        // in case function rule returns a falsy value.\n        styleRule.style = fnRule(data) || {};\n\n        if (process.env.NODE_ENV === 'development') {\n          for (var prop in styleRule.style) {\n            if (typeof styleRule.style[prop] === 'function') {\n              process.env.NODE_ENV !== \"production\" ? warning(false, '[JSS] Function values inside function rules are not supported.') : void 0;\n              break;\n            }\n          }\n        }\n      }\n\n      var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.\n\n      if (fnValues) {\n        for (var _prop in fnValues) {\n          styleRule.prop(_prop, fnValues[_prop](data), options);\n        }\n      }\n    }\n  };\n};\n\nexport default functionPlugin;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { RuleList } from 'jss';\n\nvar at = '@global';\nvar atPrefix = '@global ';\n\nvar GlobalContainerRule =\n/*#__PURE__*/\nfunction () {\n  function GlobalContainerRule(key, styles, options) {\n    this.type = 'global';\n    this.at = at;\n    this.isProcessed = false;\n    this.key = key;\n    this.options = options;\n    this.rules = new RuleList(_extends({}, options, {\n      parent: this\n    }));\n\n    for (var selector in styles) {\n      this.rules.add(selector, styles[selector]);\n    }\n\n    this.rules.process();\n  }\n  /**\n   * Get a rule.\n   */\n\n\n  var _proto = GlobalContainerRule.prototype;\n\n  _proto.getRule = function getRule(name) {\n    return this.rules.get(name);\n  }\n  /**\n   * Create and register rule, run plugins.\n   */\n  ;\n\n  _proto.addRule = function addRule(name, style, options) {\n    var rule = this.rules.add(name, style, options);\n    if (rule) this.options.jss.plugins.onProcessRule(rule);\n    return rule;\n  }\n  /**\n   * Replace rule, run plugins.\n   */\n  ;\n\n  _proto.replaceRule = function replaceRule(name, style, options) {\n    var newRule = this.rules.replace(name, style, options);\n    if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n    return newRule;\n  }\n  /**\n   * Get index of a rule.\n   */\n  ;\n\n  _proto.indexOf = function indexOf(rule) {\n    return this.rules.indexOf(rule);\n  }\n  /**\n   * Generates a CSS string.\n   */\n  ;\n\n  _proto.toString = function toString(options) {\n    return this.rules.toString(options);\n  };\n\n  return GlobalContainerRule;\n}();\n\nvar GlobalPrefixedRule =\n/*#__PURE__*/\nfunction () {\n  function GlobalPrefixedRule(key, style, options) {\n    this.type = 'global';\n    this.at = at;\n    this.isProcessed = false;\n    this.key = key;\n    this.options = options;\n    var selector = key.substr(atPrefix.length);\n    this.rule = options.jss.createRule(selector, style, _extends({}, options, {\n      parent: this\n    }));\n  }\n\n  var _proto2 = GlobalPrefixedRule.prototype;\n\n  _proto2.toString = function toString(options) {\n    return this.rule ? this.rule.toString(options) : '';\n  };\n\n  return GlobalPrefixedRule;\n}();\n\nvar separatorRegExp = /\\s*,\\s*/g;\n\nfunction addScope(selector, scope) {\n  var parts = selector.split(separatorRegExp);\n  var scoped = '';\n\n  for (var i = 0; i < parts.length; i++) {\n    scoped += scope + \" \" + parts[i].trim();\n    if (parts[i + 1]) scoped += ', ';\n  }\n\n  return scoped;\n}\n\nfunction handleNestedGlobalContainerRule(rule, sheet) {\n  var options = rule.options,\n      style = rule.style;\n  var rules = style ? style[at] : null;\n  if (!rules) return;\n\n  for (var name in rules) {\n    sheet.addRule(name, rules[name], _extends({}, options, {\n      selector: addScope(name, rule.selector)\n    }));\n  }\n\n  delete style[at];\n}\n\nfunction handlePrefixedGlobalRule(rule, sheet) {\n  var options = rule.options,\n      style = rule.style;\n\n  for (var prop in style) {\n    if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;\n    var selector = addScope(prop.substr(at.length), rule.selector);\n    sheet.addRule(selector, style[prop], _extends({}, options, {\n      selector: selector\n    }));\n    delete style[prop];\n  }\n}\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\n\nfunction jssGlobal() {\n  function onCreateRule(name, styles, options) {\n    if (!name) return null;\n\n    if (name === at) {\n      return new GlobalContainerRule(name, styles, options);\n    }\n\n    if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {\n      return new GlobalPrefixedRule(name, styles, options);\n    }\n\n    var parent = options.parent;\n\n    if (parent) {\n      if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {\n        options.scoped = false;\n      }\n    }\n\n    if (!options.selector && options.scoped === false) {\n      options.selector = name;\n    }\n\n    return null;\n  }\n\n  function onProcessRule(rule, sheet) {\n    if (rule.type !== 'style' || !sheet) return;\n    handleNestedGlobalContainerRule(rule, sheet);\n    handlePrefixedGlobalRule(rule, sheet);\n  }\n\n  return {\n    onCreateRule: onCreateRule,\n    onProcessRule: onProcessRule\n  };\n}\n\nexport default jssGlobal;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport warning from 'tiny-warning';\n\nvar separatorRegExp = /\\s*,\\s*/g;\nvar parentRegExp = /&/g;\nvar refRegExp = /\\$([\\w-]+)/g;\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\nfunction jssNested() {\n  // Get a function to be used for $ref replacement.\n  function getReplaceRef(container, sheet) {\n    return function (match, key) {\n      var rule = container.getRule(key) || sheet && sheet.getRule(key);\n\n      if (rule) {\n        return rule.selector;\n      }\n\n      process.env.NODE_ENV !== \"production\" ? warning(false, \"[JSS] Could not find the referenced rule \\\"\" + key + \"\\\" in \\\"\" + (container.options.meta || container.toString()) + \"\\\".\") : void 0;\n      return key;\n    };\n  }\n\n  function replaceParentRefs(nestedProp, parentProp) {\n    var parentSelectors = parentProp.split(separatorRegExp);\n    var nestedSelectors = nestedProp.split(separatorRegExp);\n    var result = '';\n\n    for (var i = 0; i < parentSelectors.length; i++) {\n      var parent = parentSelectors[i];\n\n      for (var j = 0; j < nestedSelectors.length; j++) {\n        var nested = nestedSelectors[j];\n        if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.\n\n        result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + \" \" + nested;\n      }\n    }\n\n    return result;\n  }\n\n  function getOptions(rule, container, prevOptions) {\n    // Options has been already created, now we only increase index.\n    if (prevOptions) return _extends({}, prevOptions, {\n      index: prevOptions.index + 1\n    });\n    var nestingLevel = rule.options.nestingLevel;\n    nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;\n\n    var options = _extends({}, rule.options, {\n      nestingLevel: nestingLevel,\n      index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.\n\n    });\n\n    delete options.name;\n    return options;\n  }\n\n  function onProcessStyle(style, rule, sheet) {\n    if (rule.type !== 'style') return style;\n    var styleRule = rule;\n    var container = styleRule.options.parent;\n    var options;\n    var replaceRef;\n\n    for (var prop in style) {\n      var isNested = prop.indexOf('&') !== -1;\n      var isNestedConditional = prop[0] === '@';\n      if (!isNested && !isNestedConditional) continue;\n      options = getOptions(styleRule, container, options);\n\n      if (isNested) {\n        var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for\n        // all nested rules within the sheet.\n\n        if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.\n\n        selector = selector.replace(refRegExp, replaceRef);\n        var name = styleRule.key + \"-\" + prop;\n\n        if ('replaceRule' in container) {\n          // for backward compatibility\n          container.replaceRule(name, style[prop], _extends({}, options, {\n            selector: selector\n          }));\n        } else {\n          container.addRule(name, style[prop], _extends({}, options, {\n            selector: selector\n          }));\n        }\n      } else if (isNestedConditional) {\n        // Place conditional right after the parent rule to ensure right ordering.\n        container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {\n          selector: styleRule.selector\n        });\n      }\n\n      delete style[prop];\n    }\n\n    return style;\n  }\n\n  return {\n    onProcessStyle: onProcessStyle\n  };\n}\n\nexport default jssNested;\n","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n  return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n  if (cache.hasOwnProperty(name)) {\n    return cache[name]\n  }\n\n  var hName = name.replace(uppercasePattern, toHyphenLower)\n  return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","import hyphenate from 'hyphenate-style-name';\n\n/**\n * Convert camel cased property names to dash separated.\n */\n\nfunction convertCase(style) {\n  var converted = {};\n\n  for (var prop in style) {\n    var key = prop.indexOf('--') === 0 ? prop : hyphenate(prop);\n    converted[key] = style[prop];\n  }\n\n  if (style.fallbacks) {\n    if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n  }\n\n  return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n */\n\n\nfunction camelCase() {\n  function onProcessStyle(style) {\n    if (Array.isArray(style)) {\n      // Handle rules like @font-face, which can have multiple styles in an array\n      for (var index = 0; index < style.length; index++) {\n        style[index] = convertCase(style[index]);\n      }\n\n      return style;\n    }\n\n    return convertCase(style);\n  }\n\n  function onChangeValue(value, prop, rule) {\n    if (prop.indexOf('--') === 0) {\n      return value;\n    }\n\n    var hyphenatedProp = hyphenate(prop); // There was no camel case in place\n\n    if (prop === hyphenatedProp) return value;\n    rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n    return null;\n  }\n\n  return {\n    onProcessStyle: onProcessStyle,\n    onChangeValue: onChangeValue\n  };\n}\n\nexport default camelCase;\n","import { hasCSSTOMSupport } from 'jss';\n\nvar px = hasCSSTOMSupport && CSS ? CSS.px : 'px';\nvar ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';\nvar percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';\n/**\n * Generated jss-plugin-default-unit CSS property units\n */\n\nvar defaultUnits = {\n  // Animation properties\n  'animation-delay': ms,\n  'animation-duration': ms,\n  // Background properties\n  'background-position': px,\n  'background-position-x': px,\n  'background-position-y': px,\n  'background-size': px,\n  // Border Properties\n  border: px,\n  'border-bottom': px,\n  'border-bottom-left-radius': px,\n  'border-bottom-right-radius': px,\n  'border-bottom-width': px,\n  'border-left': px,\n  'border-left-width': px,\n  'border-radius': px,\n  'border-right': px,\n  'border-right-width': px,\n  'border-top': px,\n  'border-top-left-radius': px,\n  'border-top-right-radius': px,\n  'border-top-width': px,\n  'border-width': px,\n  'border-block': px,\n  'border-block-end': px,\n  'border-block-end-width': px,\n  'border-block-start': px,\n  'border-block-start-width': px,\n  'border-block-width': px,\n  'border-inline': px,\n  'border-inline-end': px,\n  'border-inline-end-width': px,\n  'border-inline-start': px,\n  'border-inline-start-width': px,\n  'border-inline-width': px,\n  'border-start-start-radius': px,\n  'border-start-end-radius': px,\n  'border-end-start-radius': px,\n  'border-end-end-radius': px,\n  // Margin properties\n  margin: px,\n  'margin-bottom': px,\n  'margin-left': px,\n  'margin-right': px,\n  'margin-top': px,\n  'margin-block': px,\n  'margin-block-end': px,\n  'margin-block-start': px,\n  'margin-inline': px,\n  'margin-inline-end': px,\n  'margin-inline-start': px,\n  // Padding properties\n  padding: px,\n  'padding-bottom': px,\n  'padding-left': px,\n  'padding-right': px,\n  'padding-top': px,\n  'padding-block': px,\n  'padding-block-end': px,\n  'padding-block-start': px,\n  'padding-inline': px,\n  'padding-inline-end': px,\n  'padding-inline-start': px,\n  // Mask properties\n  'mask-position-x': px,\n  'mask-position-y': px,\n  'mask-size': px,\n  // Width and height properties\n  height: px,\n  width: px,\n  'min-height': px,\n  'max-height': px,\n  'min-width': px,\n  'max-width': px,\n  // Position properties\n  bottom: px,\n  left: px,\n  top: px,\n  right: px,\n  inset: px,\n  'inset-block': px,\n  'inset-block-end': px,\n  'inset-block-start': px,\n  'inset-inline': px,\n  'inset-inline-end': px,\n  'inset-inline-start': px,\n  // Shadow properties\n  'box-shadow': px,\n  'text-shadow': px,\n  // Column properties\n  'column-gap': px,\n  'column-rule': px,\n  'column-rule-width': px,\n  'column-width': px,\n  // Font and text properties\n  'font-size': px,\n  'font-size-delta': px,\n  'letter-spacing': px,\n  'text-decoration-thickness': px,\n  'text-indent': px,\n  'text-stroke': px,\n  'text-stroke-width': px,\n  'word-spacing': px,\n  // Motion properties\n  motion: px,\n  'motion-offset': px,\n  // Outline properties\n  outline: px,\n  'outline-offset': px,\n  'outline-width': px,\n  // Perspective properties\n  perspective: px,\n  'perspective-origin-x': percent,\n  'perspective-origin-y': percent,\n  // Transform properties\n  'transform-origin': percent,\n  'transform-origin-x': percent,\n  'transform-origin-y': percent,\n  'transform-origin-z': percent,\n  // Transition properties\n  'transition-delay': ms,\n  'transition-duration': ms,\n  // Alignment properties\n  'vertical-align': px,\n  'flex-basis': px,\n  // Some random properties\n  'shape-margin': px,\n  size: px,\n  gap: px,\n  // Grid properties\n  grid: px,\n  'grid-gap': px,\n  'row-gap': px,\n  'grid-row-gap': px,\n  'grid-column-gap': px,\n  'grid-template-rows': px,\n  'grid-template-columns': px,\n  'grid-auto-rows': px,\n  'grid-auto-columns': px,\n  // Not existing properties.\n  // Used to avoid issues with jss-plugin-expand integration.\n  'box-shadow-x': px,\n  'box-shadow-y': px,\n  'box-shadow-blur': px,\n  'box-shadow-spread': px,\n  'font-line-height': px,\n  'text-shadow-x': px,\n  'text-shadow-y': px,\n  'text-shadow-blur': px\n};\n\n/**\n * Clones the object and adds a camel cased property version.\n */\n\nfunction addCamelCasedVersion(obj) {\n  var regExp = /(-[a-z])/g;\n\n  var replace = function replace(str) {\n    return str[1].toUpperCase();\n  };\n\n  var newObj = {};\n\n  for (var key in obj) {\n    newObj[key] = obj[key];\n    newObj[key.replace(regExp, replace)] = obj[key];\n  }\n\n  return newObj;\n}\n\nvar units = addCamelCasedVersion(defaultUnits);\n/**\n * Recursive deep style passing function\n */\n\nfunction iterate(prop, value, options) {\n  if (value == null) return value;\n\n  if (Array.isArray(value)) {\n    for (var i = 0; i < value.length; i++) {\n      value[i] = iterate(prop, value[i], options);\n    }\n  } else if (typeof value === 'object') {\n    if (prop === 'fallbacks') {\n      for (var innerProp in value) {\n        value[innerProp] = iterate(innerProp, value[innerProp], options);\n      }\n    } else {\n      for (var _innerProp in value) {\n        value[_innerProp] = iterate(prop + \"-\" + _innerProp, value[_innerProp], options);\n      }\n    } // eslint-disable-next-line no-restricted-globals\n\n  } else if (typeof value === 'number' && isNaN(value) === false) {\n    var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.\n\n    if (unit && !(value === 0 && unit === px)) {\n      return typeof unit === 'function' ? unit(value).toString() : \"\" + value + unit;\n    }\n\n    return value.toString();\n  }\n\n  return value;\n}\n/**\n * Add unit to numeric values.\n */\n\n\nfunction defaultUnit(options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var camelCasedOptions = addCamelCasedVersion(options);\n\n  function onProcessStyle(style, rule) {\n    if (rule.type !== 'style') return style;\n\n    for (var prop in style) {\n      style[prop] = iterate(prop, style[prop], camelCasedOptions);\n    }\n\n    return style;\n  }\n\n  function onChangeValue(value, prop) {\n    return iterate(prop, value, camelCasedOptions);\n  }\n\n  return {\n    onProcessStyle: onProcessStyle,\n    onChangeValue: onChangeValue\n  };\n}\n\nexport default defaultUnit;\n","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n  return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n  if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableSpread as default };","import isInBrowser from 'is-in-browser';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\n\n// Export javascript style and css style vendor prefixes.\nvar js = '';\nvar css = '';\nvar vendor = '';\nvar browser = '';\nvar isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.\n\nif (isInBrowser) {\n  // Order matters. We need to check Webkit the last one because\n  // other vendors use to add Webkit prefixes to some properties\n  var jsCssMap = {\n    Moz: '-moz-',\n    ms: '-ms-',\n    O: '-o-',\n    Webkit: '-webkit-'\n  };\n\n  var _document$createEleme = document.createElement('p'),\n      style = _document$createEleme.style;\n\n  var testProp = 'Transform';\n\n  for (var key in jsCssMap) {\n    if (key + testProp in style) {\n      js = key;\n      css = jsCssMap[key];\n      break;\n    }\n  } // Correctly detect the Edge browser.\n\n\n  if (js === 'Webkit' && 'msHyphens' in style) {\n    js = 'ms';\n    css = jsCssMap.ms;\n    browser = 'edge';\n  } // Correctly detect the Safari browser.\n\n\n  if (js === 'Webkit' && '-apple-trailing-word' in style) {\n    vendor = 'apple';\n  }\n}\n/**\n * Vendor prefix string for the current browser.\n *\n * @type {{js: String, css: String, vendor: String, browser: String}}\n * @api public\n */\n\n\nvar prefix = {\n  js: js,\n  css: css,\n  vendor: vendor,\n  browser: browser,\n  isTouch: isTouch\n};\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n  // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n  if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n  // https://caniuse.com/#search=keyframes\n\n  if (prefix.js === 'ms') return key;\n  return \"@\" + prefix.css + \"keyframes\" + key.substr(10);\n}\n\n// https://caniuse.com/#search=appearance\n\nvar appearence = {\n  noPrefill: ['appearance'],\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'appearance') return false;\n    if (prefix.js === 'ms') return \"-webkit-\" + prop;\n    return prefix.css + prop;\n  }\n};\n\n// https://caniuse.com/#search=color-adjust\n\nvar colorAdjust = {\n  noPrefill: ['color-adjust'],\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'color-adjust') return false;\n    if (prefix.js === 'Webkit') return prefix.css + \"print-\" + prop;\n    return prop;\n  }\n};\n\nvar regExp = /[-\\s]+(.)?/g;\n/**\n * Replaces the letter with the capital letter\n *\n * @param {String} match\n * @param {String} c\n * @return {String}\n * @api private\n */\n\nfunction toUpper(match, c) {\n  return c ? c.toUpperCase() : '';\n}\n/**\n * Convert dash separated strings to camel-cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\n\nfunction camelize(str) {\n  return str.replace(regExp, toUpper);\n}\n\n/**\n * Convert dash separated strings to pascal cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction pascalize(str) {\n  return camelize(\"-\" + str);\n}\n\n// but we can use a longhand property instead.\n// https://caniuse.com/#search=mask\n\nvar mask = {\n  noPrefill: ['mask'],\n  supportedProperty: function supportedProperty(prop, style) {\n    if (!/^mask/.test(prop)) return false;\n\n    if (prefix.js === 'Webkit') {\n      var longhand = 'mask-image';\n\n      if (camelize(longhand) in style) {\n        return prop;\n      }\n\n      if (prefix.js + pascalize(longhand) in style) {\n        return prefix.css + prop;\n      }\n    }\n\n    return prop;\n  }\n};\n\n// https://caniuse.com/#search=text-orientation\n\nvar textOrientation = {\n  noPrefill: ['text-orientation'],\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'text-orientation') return false;\n\n    if (prefix.vendor === 'apple' && !prefix.isTouch) {\n      return prefix.css + prop;\n    }\n\n    return prop;\n  }\n};\n\n// https://caniuse.com/#search=transform\n\nvar transform = {\n  noPrefill: ['transform'],\n  supportedProperty: function supportedProperty(prop, style, options) {\n    if (prop !== 'transform') return false;\n\n    if (options.transform) {\n      return prop;\n    }\n\n    return prefix.css + prop;\n  }\n};\n\n// https://caniuse.com/#search=transition\n\nvar transition = {\n  noPrefill: ['transition'],\n  supportedProperty: function supportedProperty(prop, style, options) {\n    if (prop !== 'transition') return false;\n\n    if (options.transition) {\n      return prop;\n    }\n\n    return prefix.css + prop;\n  }\n};\n\n// https://caniuse.com/#search=writing-mode\n\nvar writingMode = {\n  noPrefill: ['writing-mode'],\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'writing-mode') return false;\n\n    if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {\n      return prefix.css + prop;\n    }\n\n    return prop;\n  }\n};\n\n// https://caniuse.com/#search=user-select\n\nvar userSelect = {\n  noPrefill: ['user-select'],\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'user-select') return false;\n\n    if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {\n      return prefix.css + prop;\n    }\n\n    return prop;\n  }\n};\n\n// https://caniuse.com/#search=multicolumn\n// https://github.com/postcss/autoprefixer/issues/491\n// https://github.com/postcss/autoprefixer/issues/177\n\nvar breakPropsOld = {\n  supportedProperty: function supportedProperty(prop, style) {\n    if (!/^break-/.test(prop)) return false;\n\n    if (prefix.js === 'Webkit') {\n      var jsProp = \"WebkitColumn\" + pascalize(prop);\n      return jsProp in style ? prefix.css + \"column-\" + prop : false;\n    }\n\n    if (prefix.js === 'Moz') {\n      var _jsProp = \"page\" + pascalize(prop);\n\n      return _jsProp in style ? \"page-\" + prop : false;\n    }\n\n    return false;\n  }\n};\n\n// See https://github.com/postcss/autoprefixer/issues/324.\n\nvar inlineLogicalOld = {\n  supportedProperty: function supportedProperty(prop, style) {\n    if (!/^(border|margin|padding)-inline/.test(prop)) return false;\n    if (prefix.js === 'Moz') return prop;\n    var newProp = prop.replace('-inline', '');\n    return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n  }\n};\n\n// Camelization is required because we can't test using.\n// CSS syntax for e.g. in FF.\n\nvar unprefixed = {\n  supportedProperty: function supportedProperty(prop, style) {\n    return camelize(prop) in style ? prop : false;\n  }\n};\n\nvar prefixed = {\n  supportedProperty: function supportedProperty(prop, style) {\n    var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.\n\n    if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.\n\n    if (prop[0] === '-' && prop[1] === '-') return prop;\n    if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.\n\n    if (prefix.js !== 'Webkit' && \"Webkit\" + pascalized in style) return \"-webkit-\" + prop;\n    return false;\n  }\n};\n\n// https://caniuse.com/#search=scroll-snap\n\nvar scrollSnap = {\n  supportedProperty: function supportedProperty(prop) {\n    if (prop.substring(0, 11) !== 'scroll-snap') return false;\n\n    if (prefix.js === 'ms') {\n      return \"\" + prefix.css + prop;\n    }\n\n    return prop;\n  }\n};\n\n// https://caniuse.com/#search=overscroll-behavior\n\nvar overscrollBehavior = {\n  supportedProperty: function supportedProperty(prop) {\n    if (prop !== 'overscroll-behavior') return false;\n\n    if (prefix.js === 'ms') {\n      return prefix.css + \"scroll-chaining\";\n    }\n\n    return prop;\n  }\n};\n\nvar propMap = {\n  'flex-grow': 'flex-positive',\n  'flex-shrink': 'flex-negative',\n  'flex-basis': 'flex-preferred-size',\n  'justify-content': 'flex-pack',\n  order: 'flex-order',\n  'align-items': 'flex-align',\n  'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.\n\n}; // Support old flex spec from 2012.\n\nvar flex2012 = {\n  supportedProperty: function supportedProperty(prop, style) {\n    var newProp = propMap[prop];\n    if (!newProp) return false;\n    return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n  }\n};\n\nvar propMap$1 = {\n  flex: 'box-flex',\n  'flex-grow': 'box-flex',\n  'flex-direction': ['box-orient', 'box-direction'],\n  order: 'box-ordinal-group',\n  'align-items': 'box-align',\n  'flex-flow': ['box-orient', 'box-direction'],\n  'justify-content': 'box-pack'\n};\nvar propKeys = Object.keys(propMap$1);\n\nvar prefixCss = function prefixCss(p) {\n  return prefix.css + p;\n}; // Support old flex spec from 2009.\n\n\nvar flex2009 = {\n  supportedProperty: function supportedProperty(prop, style, _ref) {\n    var multiple = _ref.multiple;\n\n    if (propKeys.indexOf(prop) > -1) {\n      var newProp = propMap$1[prop];\n\n      if (!Array.isArray(newProp)) {\n        return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n      }\n\n      if (!multiple) return false;\n\n      for (var i = 0; i < newProp.length; i++) {\n        if (!(prefix.js + pascalize(newProp[0]) in style)) {\n          return false;\n        }\n      }\n\n      return newProp.map(prefixCss);\n    }\n\n    return false;\n  }\n};\n\n// plugins = [\n//   ...plugins,\n//    breakPropsOld,\n//    inlineLogicalOld,\n//    unprefixed,\n//    prefixed,\n//    scrollSnap,\n//    flex2012,\n//    flex2009\n// ]\n// Plugins without 'noPrefill' value, going last.\n// 'flex-*' plugins should be at the bottom.\n// 'flex2009' going after 'flex2012'.\n// 'prefixed' going after 'unprefixed'\n\nvar plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];\nvar propertyDetectors = plugins.filter(function (p) {\n  return p.supportedProperty;\n}).map(function (p) {\n  return p.supportedProperty;\n});\nvar noPrefill = plugins.filter(function (p) {\n  return p.noPrefill;\n}).reduce(function (a, p) {\n  a.push.apply(a, _toConsumableArray(p.noPrefill));\n  return a;\n}, []);\n\nvar el;\nvar cache = {};\n\nif (isInBrowser) {\n  el = document.createElement('p'); // We test every property on vendor prefix requirement.\n  // Once tested, result is cached. It gives us up to 70% perf boost.\n  // http://jsperf.com/element-style-object-access-vs-plain-object\n  //\n  // Prefill cache with known css properties to reduce amount of\n  // properties we need to feature test at runtime.\n  // http://davidwalsh.name/vendor-prefix\n\n  var computed = window.getComputedStyle(document.documentElement, '');\n\n  for (var key$1 in computed) {\n    // eslint-disable-next-line no-restricted-globals\n    if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];\n  } // Properties that cannot be correctly detected using the\n  // cache prefill method.\n\n\n  noPrefill.forEach(function (x) {\n    return delete cache[x];\n  });\n}\n/**\n * Test if a property is supported, returns supported property with vendor\n * prefix if required. Returns `false` if not supported.\n *\n * @param {String} prop dash separated\n * @param {Object} [options]\n * @return {String|Boolean}\n * @api public\n */\n\n\nfunction supportedProperty(prop, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  // For server-side rendering.\n  if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.\n\n  if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {\n    return cache[prop];\n  } // Check if 'transition' or 'transform' natively supported in browser.\n\n\n  if (prop === 'transition' || prop === 'transform') {\n    options[prop] = prop in el.style;\n  } // Find a plugin for current prefix property.\n\n\n  for (var i = 0; i < propertyDetectors.length; i++) {\n    cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.\n\n    if (cache[prop]) break;\n  } // Reset styles for current property.\n  // Firefox can even throw an error for invalid properties, e.g., \"0\".\n\n\n  try {\n    el.style[prop] = '';\n  } catch (err) {\n    return false;\n  }\n\n  return cache[prop];\n}\n\nvar cache$1 = {};\nvar transitionProperties = {\n  transition: 1,\n  'transition-property': 1,\n  '-webkit-transition': 1,\n  '-webkit-transition-property': 1\n};\nvar transPropsRegExp = /(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;\nvar el$1;\n/**\n * Returns prefixed value transition/transform if needed.\n *\n * @param {String} match\n * @param {String} p1\n * @param {String} p2\n * @return {String}\n * @api private\n */\n\nfunction prefixTransitionCallback(match, p1, p2) {\n  if (p1 === 'var') return 'var';\n  if (p1 === 'all') return 'all';\n  if (p2 === 'all') return ', all';\n  var prefixedValue = p1 ? supportedProperty(p1) : \", \" + supportedProperty(p2);\n  if (!prefixedValue) return p1 || p2;\n  return prefixedValue;\n}\n\nif (isInBrowser) el$1 = document.createElement('p');\n/**\n * Returns prefixed value if needed. Returns `false` if value is not supported.\n *\n * @param {String} property\n * @param {String} value\n * @return {String|Boolean}\n * @api public\n */\n\nfunction supportedValue(property, value) {\n  // For server-side rendering.\n  var prefixedValue = value;\n  if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.\n  // We want only prefixable values here.\n  // eslint-disable-next-line no-restricted-globals\n\n  if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {\n    return prefixedValue;\n  } // Create cache key for current value.\n\n\n  var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.\n\n  if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {\n    return cache$1[cacheKey];\n  } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.\n\n\n  try {\n    // Test value as it is.\n    el$1.style[property] = prefixedValue;\n  } catch (err) {\n    // Return false if value not supported.\n    cache$1[cacheKey] = false;\n    return false;\n  } // If 'transition' or 'transition-property' property.\n\n\n  if (transitionProperties[property]) {\n    prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);\n  } else if (el$1.style[property] === '') {\n    // Value with a vendor prefix.\n    prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert \"flex\" to \"-ms-flexbox\" for IE10.\n\n    if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.\n\n    el$1.style[property] = prefixedValue; // Return false if value not supported.\n\n    if (el$1.style[property] === '') {\n      cache$1[cacheKey] = false;\n      return false;\n    }\n  } // Reset styles for current property.\n\n\n  el$1.style[property] = ''; // Write current value to cache.\n\n  cache$1[cacheKey] = prefixedValue;\n  return cache$1[cacheKey];\n}\n\nexport { prefix, supportedKeyframes, supportedProperty, supportedValue };\n","import { supportedKeyframes, supportedValue, supportedProperty } from 'css-vendor';\nimport { toCssValue } from 'jss';\n\n/**\n * Add vendor prefix to a property name when needed.\n */\n\nfunction jssVendorPrefixer() {\n  function onProcessRule(rule) {\n    if (rule.type === 'keyframes') {\n      var atRule = rule;\n      atRule.at = supportedKeyframes(atRule.at);\n    }\n  }\n\n  function prefixStyle(style) {\n    for (var prop in style) {\n      var value = style[prop];\n\n      if (prop === 'fallbacks' && Array.isArray(value)) {\n        style[prop] = value.map(prefixStyle);\n        continue;\n      }\n\n      var changeProp = false;\n      var supportedProp = supportedProperty(prop);\n      if (supportedProp && supportedProp !== prop) changeProp = true;\n      var changeValue = false;\n      var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));\n      if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;\n\n      if (changeProp || changeValue) {\n        if (changeProp) delete style[prop];\n        style[supportedProp || prop] = supportedValue$1 || value;\n      }\n    }\n\n    return style;\n  }\n\n  function onProcessStyle(style, rule) {\n    if (rule.type !== 'style') return style;\n    return prefixStyle(style);\n  }\n\n  function onChangeValue(value, prop) {\n    return supportedValue(prop, toCssValue(value)) || value;\n  }\n\n  return {\n    onProcessRule: onProcessRule,\n    onProcessStyle: onProcessStyle,\n    onChangeValue: onChangeValue\n  };\n}\n\nexport default jssVendorPrefixer;\n","/**\n * Sort props by length.\n */\nfunction jssPropsSort() {\n  var sort = function sort(prop0, prop1) {\n    if (prop0.length === prop1.length) {\n      return prop0 > prop1 ? 1 : -1;\n    }\n\n    return prop0.length - prop1.length;\n  };\n\n  return {\n    onProcessStyle: function onProcessStyle(style, rule) {\n      if (rule.type !== 'style') return style;\n      var newStyle = {};\n      var props = Object.keys(style).sort(sort);\n\n      for (var i = 0; i < props.length; i++) {\n        newStyle[props[i]] = style[props[i]];\n      }\n\n      return newStyle;\n    }\n  };\n}\n\nexport default jssPropsSort;\n","import functions from 'jss-plugin-rule-value-function';\nimport global from 'jss-plugin-global';\nimport nested from 'jss-plugin-nested';\nimport camelCase from 'jss-plugin-camel-case';\nimport defaultUnit from 'jss-plugin-default-unit';\nimport vendorPrefixer from 'jss-plugin-vendor-prefixer';\nimport propsSort from 'jss-plugin-props-sort';\n\n// Subset of jss-preset-default with only the plugins the MUI components are using.\nexport default function jssPreset() {\n  return {\n    plugins: [functions(), global(), nested(), camelCase(), defaultUnit(),\n    // Disable the vendor prefixer server-side, it does nothing.\n    // This way, we can get a performance boost.\n    // In the documentation, we are using `autoprefixer` to solve this problem.\n    typeof window === 'undefined' ? null : vendorPrefixer(), propsSort()]\n  };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"injectFirst\", \"disableGeneration\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp } from '@mui/utils';\nimport { create } from 'jss';\nimport createGenerateClassName from '../createGenerateClassName';\nimport jssPreset from '../jssPreset';\n\n// Default JSS instance.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultJSS = create(jssPreset());\n\n// Use a singleton or the provided one by the context.\n//\n// The counter-based approach doesn't tolerate any mistake.\n// It's much safer to use the same counter everywhere.\nconst defaultGenerateClassName = createGenerateClassName();\nconst defaultSheetsManager = new Map();\n// Exported for test purposes\nexport { defaultSheetsManager as sheetsManager };\nconst defaultOptions = {\n  disableGeneration: false,\n  generateClassName: defaultGenerateClassName,\n  jss: defaultJSS,\n  sheetsCache: null,\n  sheetsManager: defaultSheetsManager,\n  sheetsRegistry: null\n};\nexport const StylesContext = /*#__PURE__*/React.createContext(defaultOptions);\nif (process.env.NODE_ENV !== 'production') {\n  StylesContext.displayName = 'StylesContext';\n}\nlet injectFirstNode;\nexport default function StylesProvider(props) {\n  const {\n      children,\n      injectFirst = false,\n      disableGeneration = false\n    } = props,\n    localOptions = _objectWithoutPropertiesLoose(props, _excluded);\n  const outerOptions = React.useContext(StylesContext);\n  const {\n    generateClassName,\n    jss,\n    serverGenerateClassName,\n    sheetsCache,\n    sheetsManager,\n    sheetsRegistry\n  } = _extends({}, outerOptions, localOptions);\n  if (process.env.NODE_ENV !== 'production') {\n    if (injectFirst && localOptions.jss) {\n      console.error('MUI: You cannot use the jss and injectFirst props at the same time.');\n    }\n  }\n  const value = React.useMemo(() => {\n    const context = {\n      disableGeneration,\n      generateClassName,\n      jss,\n      serverGenerateClassName,\n      sheetsCache,\n      sheetsManager,\n      sheetsRegistry\n    };\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof window === 'undefined' && !context.sheetsManager) {\n        console.error('MUI: You need to use the ServerStyleSheets API when rendering on the server.');\n      }\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (context.jss.options.insertionPoint && injectFirst) {\n        console.error('MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');\n      }\n    }\n    if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {\n      if (!injectFirstNode) {\n        const head = document.head;\n        injectFirstNode = document.createComment('mui-inject-first');\n        head.insertBefore(injectFirstNode, head.firstChild);\n      }\n      context.jss = create({\n        plugins: jssPreset().plugins,\n        insertionPoint: injectFirstNode\n      });\n    }\n    return context;\n  }, [injectFirst, disableGeneration, generateClassName, jss, serverGenerateClassName, sheetsCache, sheetsManager, sheetsRegistry]);\n  return /*#__PURE__*/_jsx(StylesContext.Provider, {\n    value: value,\n    children: children\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = {\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * You can disable the generation of the styles with this option.\n   * It can be useful when traversing the React tree outside of the HTML\n   * rendering step on the server.\n   * Let's say you are using react-apollo to extract all\n   * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.\n   */\n  disableGeneration: PropTypes.bool,\n  /**\n   * JSS's class name generator.\n   */\n  generateClassName: PropTypes.func,\n  /**\n   * By default, the styles are injected last in the <head> element of the page.\n   * As a result, they gain more specificity than any other style sheet.\n   * If you want to override MUI's styles, set this prop.\n   */\n  injectFirst: PropTypes.bool,\n  /**\n   * JSS's instance.\n   */\n  jss: PropTypes.object,\n  /**\n   * @ignore\n   */\n  serverGenerateClassName: PropTypes.func,\n  /**\n   * @ignore\n   *\n   * Beta feature.\n   *\n   * Cache for the sheets.\n   */\n  sheetsCache: PropTypes.object,\n  /**\n   * @ignore\n   *\n   * The sheetsManager is used to deduplicate style sheet injection in the page.\n   * It's deduplicating using the (theme, styles) couple.\n   * On the server, you should provide a new instance for each request.\n   */\n  sheetsManager: PropTypes.object,\n  /**\n   * @ignore\n   *\n   * Collect the sheets.\n   */\n  sheetsRegistry: PropTypes.object\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  process.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = exactProp(StylesProvider.propTypes) : void 0;\n}","/* eslint-disable import/prefer-default-export */\n// Global index counter to preserve source order.\n// We create the style sheet during the creation of the component,\n// children are handled after the parents, so the order of style elements would be parent->child.\n// It is a problem though when a parent passes a className\n// which needs to override any child's styles.\n// StyleSheet of the child has a higher specificity, because of the source order.\n// So our solution is to render sheets them in the reverse order child->sheet, so\n// that parent has a higher specificity.\nlet indexCounter = -1e9;\nexport function increment() {\n  indexCounter += 1;\n  if (process.env.NODE_ENV !== 'production') {\n    if (indexCounter >= 0) {\n      console.warn(['MUI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\\n'));\n    }\n  }\n  return indexCounter;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"variant\"];\nimport { unstable_capitalize as capitalize } from '@mui/utils';\nfunction isEmpty(string) {\n  return string.length === 0;\n}\n\n/**\n * Generates string classKey based on the properties provided. It starts with the\n * variant if defined, and then it appends all other properties in alphabetical order.\n * @param {object} props - the properties for which the classKey should be created\n */\nexport default function propsToClassKey(props) {\n  const {\n      variant\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  let classKey = variant || '';\n  Object.keys(other).sort().forEach(key => {\n    if (key === 'color') {\n      classKey += isEmpty(classKey) ? props[key] : capitalize(props[key]);\n    } else {\n      classKey += `${isEmpty(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;\n    }\n  });\n  return classKey;\n}","// We use the same empty object to ref count the styles that don't need a theme object.\nconst noopTheme = {};\nexport default noopTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { deepmerge } from '@mui/utils';\nimport propsToClassKey from '../propsToClassKey';\nimport noopTheme from './noopTheme';\nexport default function getStylesCreator(stylesOrCreator) {\n  const themingEnabled = typeof stylesOrCreator === 'function';\n  if (process.env.NODE_ENV !== 'production') {\n    if (typeof stylesOrCreator !== 'object' && !themingEnabled) {\n      console.error(['MUI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\\n'));\n    }\n  }\n  return {\n    create: (theme, name) => {\n      let styles;\n      try {\n        styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;\n      } catch (err) {\n        if (process.env.NODE_ENV !== 'production') {\n          if (themingEnabled === true && theme === noopTheme) {\n            // TODO: prepend error message/name instead\n            console.error(['MUI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n          }\n        }\n        throw err;\n      }\n      if (!name || !theme.components || !theme.components[name] || !theme.components[name].styleOverrides && !theme.components[name].variants) {\n        return styles;\n      }\n      const overrides = theme.components[name].styleOverrides || {};\n      const variants = theme.components[name].variants || [];\n      const stylesWithOverrides = _extends({}, styles);\n      Object.keys(overrides).forEach(key => {\n        if (process.env.NODE_ENV !== 'production') {\n          if (!stylesWithOverrides[key]) {\n            console.warn(['MUI: You are trying to override a style that does not exist.', `Fix the \\`${key}\\` key of \\`theme.components.${name}.styleOverrides\\`.`, '', `If you intentionally wanted to add a new key, please use the theme.components[${name}].variants option.`].join('\\n'));\n          }\n        }\n        stylesWithOverrides[key] = deepmerge(stylesWithOverrides[key] || {}, overrides[key]);\n      });\n      variants.forEach(definition => {\n        const classKey = propsToClassKey(definition.props);\n        stylesWithOverrides[classKey] = deepmerge(stylesWithOverrides[classKey] || {}, definition.style);\n      });\n      return stylesWithOverrides;\n    },\n    options: {}\n  };\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"name\", \"classNamePrefix\", \"Component\", \"defaultTheme\"];\nimport * as React from 'react';\nimport { getDynamicStyles } from 'jss';\nimport mergeClasses from '../mergeClasses';\nimport multiKeyStore from './multiKeyStore';\nimport useTheme from '../useTheme';\nimport { StylesContext } from '../StylesProvider';\nimport { increment } from './indexCounter';\nimport getStylesCreator from '../getStylesCreator';\nimport noopTheme from '../getStylesCreator/noopTheme';\nfunction getClasses({\n  state,\n  stylesOptions\n}, classes, Component) {\n  if (stylesOptions.disableGeneration) {\n    return classes || {};\n  }\n  if (!state.cacheClasses) {\n    state.cacheClasses = {\n      // Cache for the finalized classes value.\n      value: null,\n      // Cache for the last used classes prop pointer.\n      lastProp: null,\n      // Cache for the last used rendered classes pointer.\n      lastJSS: {}\n    };\n  }\n\n  // Tracks if either the rendered classes or classes prop has changed,\n  // requiring the generation of a new finalized classes object.\n  let generate = false;\n  if (state.classes !== state.cacheClasses.lastJSS) {\n    state.cacheClasses.lastJSS = state.classes;\n    generate = true;\n  }\n  if (classes !== state.cacheClasses.lastProp) {\n    state.cacheClasses.lastProp = classes;\n    generate = true;\n  }\n  if (generate) {\n    state.cacheClasses.value = mergeClasses({\n      baseClasses: state.cacheClasses.lastJSS,\n      newClasses: classes,\n      Component\n    });\n  }\n  return state.cacheClasses.value;\n}\nfunction attach({\n  state,\n  theme,\n  stylesOptions,\n  stylesCreator,\n  name\n}, props) {\n  if (stylesOptions.disableGeneration) {\n    return;\n  }\n  let sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);\n  if (!sheetManager) {\n    sheetManager = {\n      refs: 0,\n      staticSheet: null,\n      dynamicStyles: null\n    };\n    multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);\n  }\n  const options = _extends({}, stylesCreator.options, stylesOptions, {\n    theme,\n    flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl'\n  });\n  options.generateId = options.serverGenerateClassName || options.generateClassName;\n  const sheetsRegistry = stylesOptions.sheetsRegistry;\n  if (sheetManager.refs === 0) {\n    let staticSheet;\n    if (stylesOptions.sheetsCache) {\n      staticSheet = multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme);\n    }\n    const styles = stylesCreator.create(theme, name);\n    if (!staticSheet) {\n      staticSheet = stylesOptions.jss.createStyleSheet(styles, _extends({\n        link: false\n      }, options));\n      staticSheet.attach();\n      if (stylesOptions.sheetsCache) {\n        multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);\n      }\n    }\n    if (sheetsRegistry) {\n      sheetsRegistry.add(staticSheet);\n    }\n    sheetManager.staticSheet = staticSheet;\n    sheetManager.dynamicStyles = getDynamicStyles(styles);\n  }\n  if (sheetManager.dynamicStyles) {\n    const dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends({\n      link: true\n    }, options));\n    dynamicSheet.update(props);\n    dynamicSheet.attach();\n    state.dynamicSheet = dynamicSheet;\n    state.classes = mergeClasses({\n      baseClasses: sheetManager.staticSheet.classes,\n      newClasses: dynamicSheet.classes\n    });\n    if (sheetsRegistry) {\n      sheetsRegistry.add(dynamicSheet);\n    }\n  } else {\n    state.classes = sheetManager.staticSheet.classes;\n  }\n  sheetManager.refs += 1;\n}\nfunction update({\n  state\n}, props) {\n  if (state.dynamicSheet) {\n    state.dynamicSheet.update(props);\n  }\n}\nfunction detach({\n  state,\n  theme,\n  stylesOptions,\n  stylesCreator\n}) {\n  if (stylesOptions.disableGeneration) {\n    return;\n  }\n  const sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);\n  sheetManager.refs -= 1;\n  const sheetsRegistry = stylesOptions.sheetsRegistry;\n  if (sheetManager.refs === 0) {\n    multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme);\n    stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);\n    if (sheetsRegistry) {\n      sheetsRegistry.remove(sheetManager.staticSheet);\n    }\n  }\n  if (state.dynamicSheet) {\n    stylesOptions.jss.removeStyleSheet(state.dynamicSheet);\n    if (sheetsRegistry) {\n      sheetsRegistry.remove(state.dynamicSheet);\n    }\n  }\n}\nfunction useSynchronousEffect(func, values) {\n  const key = React.useRef([]);\n  let output;\n\n  // Store \"generation\" key. Just returns a new object every time\n  const currentKey = React.useMemo(() => ({}), values); // eslint-disable-line react-hooks/exhaustive-deps\n\n  // \"the first render\", or \"memo dropped the value\"\n  if (key.current !== currentKey) {\n    key.current = currentKey;\n    output = func();\n  }\n  React.useEffect(() => () => {\n    if (output) {\n      output();\n    }\n  }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps\n  );\n}\nexport default function makeStyles(stylesOrCreator, options = {}) {\n  const {\n      // alias for classNamePrefix, if provided will listen to theme (required for theme.components[name].styleOverrides)\n      name,\n      // Help with debuggability.\n      classNamePrefix: classNamePrefixOption,\n      Component,\n      defaultTheme = noopTheme\n    } = options,\n    stylesOptions2 = _objectWithoutPropertiesLoose(options, _excluded);\n  const stylesCreator = getStylesCreator(stylesOrCreator);\n  const classNamePrefix = name || classNamePrefixOption || 'makeStyles';\n  stylesCreator.options = {\n    index: increment(),\n    name,\n    meta: classNamePrefix,\n    classNamePrefix\n  };\n  const useStyles = (props = {}) => {\n    const theme = useTheme() || defaultTheme;\n    const stylesOptions = _extends({}, React.useContext(StylesContext), stylesOptions2);\n    const instance = React.useRef();\n    const shouldUpdate = React.useRef();\n    useSynchronousEffect(() => {\n      const current = {\n        name,\n        state: {},\n        stylesCreator,\n        stylesOptions,\n        theme\n      };\n      attach(current, props);\n      shouldUpdate.current = false;\n      instance.current = current;\n      return () => {\n        detach(current);\n      };\n    }, [theme, stylesCreator]);\n    React.useEffect(() => {\n      if (shouldUpdate.current) {\n        update(instance.current, props);\n      }\n      shouldUpdate.current = true;\n    });\n    const classes = getClasses(instance.current, props.classes, Component);\n    if (process.env.NODE_ENV !== 'production') {\n      // eslint-disable-next-line react-hooks/rules-of-hooks\n      React.useDebugValue(classes);\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      const supportedComponents = ['MuiAvatar', 'MuiBadge', 'MuiButton', 'MuiButtonGroup', 'MuiChip', 'MuiDivider', 'MuiFab', 'MuiPaper', 'MuiToolbar', 'MuiTypography', 'MuiAlert', 'MuiPagination', 'MuiPaginationItem', 'MuiSkeleton', 'MuiTimelineDot'];\n      if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {\n        console.error([`MUI: You are using a variant value \\`${props.variant}\\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\\n'));\n      }\n    }\n    return classes;\n  };\n  return useStyles;\n}","import usePrivateTheme from '@mui/private-theming/useTheme';\nexport default function useTheme() {\n  var _privateTheme$$$mater;\n  const privateTheme = usePrivateTheme();\n  return (_privateTheme$$$mater = privateTheme == null ? void 0 : privateTheme.$$material) != null ? _privateTheme$$$mater : privateTheme;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.alpha = alpha;\nexports.blend = blend;\nexports.colorChannel = void 0;\nexports.darken = darken;\nexports.decomposeColor = decomposeColor;\nexports.emphasize = emphasize;\nexports.getContrastRatio = getContrastRatio;\nexports.getLuminance = getLuminance;\nexports.hexToRgb = hexToRgb;\nexports.hslToRgb = hslToRgb;\nexports.lighten = lighten;\nexports.private_safeAlpha = private_safeAlpha;\nexports.private_safeColorChannel = void 0;\nexports.private_safeDarken = private_safeDarken;\nexports.private_safeEmphasize = private_safeEmphasize;\nexports.private_safeLighten = private_safeLighten;\nexports.recomposeColor = recomposeColor;\nexports.rgbToHex = rgbToHex;\nvar _formatMuiErrorMessage2 = _interopRequireDefault(require(\"@mui/utils/formatMuiErrorMessage\"));\nvar _clamp = _interopRequireDefault(require(\"@mui/utils/clamp\"));\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (value < min || value > max) {\n      console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n    }\n  }\n  return (0, _clamp.default)(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nfunction hexToRgb(color) {\n  color = color.slice(1);\n  const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n  let colors = color.match(re);\n  if (colors && colors[0].length === 1) {\n    colors = colors.map(n => n + n);\n  }\n  return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n    return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n  }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n  const hex = int.toString(16);\n  return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nfunction decomposeColor(color) {\n  // Idempotent\n  if (color.type) {\n    return color;\n  }\n  if (color.charAt(0) === '#') {\n    return decomposeColor(hexToRgb(color));\n  }\n  const marker = color.indexOf('(');\n  const type = color.substring(0, marker);\n  if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, _formatMuiErrorMessage2.default)(9, color));\n  }\n  let values = color.substring(marker + 1, color.length - 1);\n  let colorSpace;\n  if (type === 'color') {\n    values = values.split(' ');\n    colorSpace = values.shift();\n    if (values.length === 4 && values[3].charAt(0) === '/') {\n      values[3] = values[3].slice(1);\n    }\n    if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n      throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, _formatMuiErrorMessage2.default)(10, colorSpace));\n    }\n  } else {\n    values = values.split(',');\n  }\n  values = values.map(value => parseFloat(value));\n  return {\n    type,\n    values,\n    colorSpace\n  };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nconst colorChannel = color => {\n  const decomposedColor = decomposeColor(color);\n  return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexports.colorChannel = colorChannel;\nconst private_safeColorChannel = (color, warning) => {\n  try {\n    return colorChannel(color);\n  } catch (error) {\n    if (warning && process.env.NODE_ENV !== 'production') {\n      console.warn(warning);\n    }\n    return color;\n  }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexports.private_safeColorChannel = private_safeColorChannel;\nfunction recomposeColor(color) {\n  const {\n    type,\n    colorSpace\n  } = color;\n  let {\n    values\n  } = color;\n  if (type.indexOf('rgb') !== -1) {\n    // Only convert the first 3 values to int (i.e. not alpha)\n    values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n  } else if (type.indexOf('hsl') !== -1) {\n    values[1] = `${values[1]}%`;\n    values[2] = `${values[2]}%`;\n  }\n  if (type.indexOf('color') !== -1) {\n    values = `${colorSpace} ${values.join(' ')}`;\n  } else {\n    values = `${values.join(', ')}`;\n  }\n  return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nfunction rgbToHex(color) {\n  // Idempotent\n  if (color.indexOf('#') === 0) {\n    return color;\n  }\n  const {\n    values\n  } = decomposeColor(color);\n  return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nfunction hslToRgb(color) {\n  color = decomposeColor(color);\n  const {\n    values\n  } = color;\n  const h = values[0];\n  const s = values[1] / 100;\n  const l = values[2] / 100;\n  const a = s * Math.min(l, 1 - l);\n  const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n  let type = 'rgb';\n  const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n  if (color.type === 'hsla') {\n    type += 'a';\n    rgb.push(values[3]);\n  }\n  return recomposeColor({\n    type,\n    values: rgb\n  });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nfunction getLuminance(color) {\n  color = decomposeColor(color);\n  let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n  rgb = rgb.map(val => {\n    if (color.type !== 'color') {\n      val /= 255; // normalized\n    }\n    return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n  });\n\n  // Truncate at 3 digits\n  return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nfunction getContrastRatio(foreground, background) {\n  const lumA = getLuminance(foreground);\n  const lumB = getLuminance(background);\n  return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction alpha(color, value) {\n  color = decomposeColor(color);\n  value = clampWrapper(value);\n  if (color.type === 'rgb' || color.type === 'hsl') {\n    color.type += 'a';\n  }\n  if (color.type === 'color') {\n    color.values[3] = `/${value}`;\n  } else {\n    color.values[3] = value;\n  }\n  return recomposeColor(color);\n}\nfunction private_safeAlpha(color, value, warning) {\n  try {\n    return alpha(color, value);\n  } catch (error) {\n    if (warning && process.env.NODE_ENV !== 'production') {\n      console.warn(warning);\n    }\n    return color;\n  }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction darken(color, coefficient) {\n  color = decomposeColor(color);\n  coefficient = clampWrapper(coefficient);\n  if (color.type.indexOf('hsl') !== -1) {\n    color.values[2] *= 1 - coefficient;\n  } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n    for (let i = 0; i < 3; i += 1) {\n      color.values[i] *= 1 - coefficient;\n    }\n  }\n  return recomposeColor(color);\n}\nfunction private_safeDarken(color, coefficient, warning) {\n  try {\n    return darken(color, coefficient);\n  } catch (error) {\n    if (warning && process.env.NODE_ENV !== 'production') {\n      console.warn(warning);\n    }\n    return color;\n  }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction lighten(color, coefficient) {\n  color = decomposeColor(color);\n  coefficient = clampWrapper(coefficient);\n  if (color.type.indexOf('hsl') !== -1) {\n    color.values[2] += (100 - color.values[2]) * coefficient;\n  } else if (color.type.indexOf('rgb') !== -1) {\n    for (let i = 0; i < 3; i += 1) {\n      color.values[i] += (255 - color.values[i]) * coefficient;\n    }\n  } else if (color.type.indexOf('color') !== -1) {\n    for (let i = 0; i < 3; i += 1) {\n      color.values[i] += (1 - color.values[i]) * coefficient;\n    }\n  }\n  return recomposeColor(color);\n}\nfunction private_safeLighten(color, coefficient, warning) {\n  try {\n    return lighten(color, coefficient);\n  } catch (error) {\n    if (warning && process.env.NODE_ENV !== 'production') {\n      console.warn(warning);\n    }\n    return color;\n  }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction emphasize(color, coefficient = 0.15) {\n  return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nfunction private_safeEmphasize(color, coefficient, warning) {\n  try {\n    return emphasize(color, coefficient);\n  } catch (error) {\n    if (warning && process.env.NODE_ENV !== 'production') {\n      console.warn(warning);\n    }\n    return color;\n  }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nfunction blend(background, overlay, opacity, gamma = 1.0) {\n  const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n  const backgroundColor = decomposeColor(background);\n  const overlayColor = decomposeColor(overlay);\n  const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n  return recomposeColor({\n    type: 'rgb',\n    values: rgb\n  });\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = createStyled;\nexports.shouldForwardProp = shouldForwardProp;\nexports.systemDefaultTheme = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\nvar _styledEngine = _interopRequireWildcard(require(\"@mui/styled-engine\"));\nvar _deepmerge = require(\"@mui/utils/deepmerge\");\nvar _capitalize = _interopRequireDefault(require(\"@mui/utils/capitalize\"));\nvar _getDisplayName = _interopRequireDefault(require(\"@mui/utils/getDisplayName\"));\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\nvar _styleFunctionSx = _interopRequireDefault(require(\"./styleFunctionSx\"));\nconst _excluded = [\"ownerState\"],\n  _excluded2 = [\"variants\"],\n  _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction isEmpty(obj) {\n  return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n  return typeof tag === 'string' &&\n  // 96 is one less than the char code\n  // for \"a\" so this is checking that\n  // it's a lowercase character\n  tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nfunction shouldForwardProp(prop) {\n  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n  if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n  ) {\n    serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n  }\n  return serialized;\n}\nconst systemDefaultTheme = exports.systemDefaultTheme = (0, _createTheme.default)();\nconst lowercaseFirstLetter = string => {\n  if (!string) {\n    return string;\n  }\n  return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n  defaultTheme,\n  theme,\n  themeId\n}) {\n  return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n  if (!slot) {\n    return null;\n  }\n  return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n  let {\n      ownerState\n    } = _ref,\n    props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);\n  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle((0, _extends2.default)({\n    ownerState\n  }, props)) : callableStyle;\n  if (Array.isArray(resolvedStylesArg)) {\n    return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, (0, _extends2.default)({\n      ownerState\n    }, props), layerName));\n  }\n  if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n    const {\n        variants = []\n      } = resolvedStylesArg,\n      otherStyles = (0, _objectWithoutPropertiesLoose2.default)(resolvedStylesArg, _excluded2);\n    let result = otherStyles;\n    variants.forEach(variant => {\n      let isMatch = true;\n      if (typeof variant.props === 'function') {\n        isMatch = variant.props((0, _extends2.default)({\n          ownerState\n        }, props, ownerState));\n      } else {\n        Object.keys(variant.props).forEach(key => {\n          if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n            isMatch = false;\n          }\n        });\n      }\n      if (isMatch) {\n        if (!Array.isArray(result)) {\n          result = [result];\n        }\n        const variantStyle = typeof variant.style === 'function' ? variant.style((0, _extends2.default)({\n          ownerState\n        }, props, ownerState)) : variant.style;\n        result.push(layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(variantStyle), layerName) : variantStyle);\n      }\n    });\n    return result;\n  }\n  return layerName ? shallowLayer((0, _styledEngine.internal_serializeStyles)(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nfunction createStyled(input = {}) {\n  const {\n    themeId,\n    defaultTheme = systemDefaultTheme,\n    rootShouldForwardProp = shouldForwardProp,\n    slotShouldForwardProp = shouldForwardProp\n  } = input;\n  const systemSx = props => {\n    return (0, _styleFunctionSx.default)((0, _extends2.default)({}, props, {\n      theme: resolveTheme((0, _extends2.default)({}, props, {\n        defaultTheme,\n        themeId\n      }))\n    }));\n  };\n  systemSx.__mui_systemSx = true;\n  return (tag, inputOptions = {}) => {\n    // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n    (0, _styledEngine.internal_processStyles)(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n    const {\n        name: componentName,\n        slot: componentSlot,\n        skipVariantsResolver: inputSkipVariantsResolver,\n        skipSx: inputSkipSx,\n        // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n        // For more details: https://github.com/mui/material-ui/pull/37908\n        overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n      } = inputOptions,\n      options = (0, _objectWithoutPropertiesLoose2.default)(inputOptions, _excluded3);\n    const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n    // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n    const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n    // TODO v6: remove `Root` in the next major release\n    // For more details: https://github.com/mui/material-ui/pull/37908\n    componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n    const skipSx = inputSkipSx || false;\n    let label;\n    if (process.env.NODE_ENV !== 'production') {\n      if (componentName) {\n        // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n        // For more details: https://github.com/mui/material-ui/pull/37908\n        label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n      }\n    }\n    let shouldForwardPropOption = shouldForwardProp;\n\n    // TODO v6: remove `Root` in the next major release\n    // For more details: https://github.com/mui/material-ui/pull/37908\n    if (componentSlot === 'Root' || componentSlot === 'root') {\n      shouldForwardPropOption = rootShouldForwardProp;\n    } else if (componentSlot) {\n      // any other slot specified\n      shouldForwardPropOption = slotShouldForwardProp;\n    } else if (isStringTag(tag)) {\n      // for string (html) tag, preserve the behavior in emotion & styled-components.\n      shouldForwardPropOption = undefined;\n    }\n    const defaultStyledResolver = (0, _styledEngine.default)(tag, (0, _extends2.default)({\n      shouldForwardProp: shouldForwardPropOption,\n      label\n    }, options));\n    const transformStyleArg = stylesArg => {\n      // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n      // component stays as a function. This condition makes sure that we do not interpolate functions\n      // which are basically components used as a selectors.\n      if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || (0, _deepmerge.isPlainObject)(stylesArg)) {\n        return props => {\n          const theme = resolveTheme({\n            theme: props.theme,\n            defaultTheme,\n            themeId\n          });\n          return processStyleArg(stylesArg, (0, _extends2.default)({}, props, {\n            theme\n          }), theme.modularCssLayers ? layerName : undefined);\n        };\n      }\n      return stylesArg;\n    };\n    const muiStyledResolver = (styleArg, ...expressions) => {\n      let transformedStyleArg = transformStyleArg(styleArg);\n      const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n      if (componentName && overridesResolver) {\n        expressionsWithDefaultTheme.push(props => {\n          const theme = resolveTheme((0, _extends2.default)({}, props, {\n            defaultTheme,\n            themeId\n          }));\n          if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n            return null;\n          }\n          const styleOverrides = theme.components[componentName].styleOverrides;\n          const resolvedStyleOverrides = {};\n          // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n          Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n            resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, (0, _extends2.default)({}, props, {\n              theme\n            }), theme.modularCssLayers ? 'theme' : undefined);\n          });\n          return overridesResolver(props, resolvedStyleOverrides);\n        });\n      }\n      if (componentName && !skipVariantsResolver) {\n        expressionsWithDefaultTheme.push(props => {\n          var _theme$components;\n          const theme = resolveTheme((0, _extends2.default)({}, props, {\n            defaultTheme,\n            themeId\n          }));\n          const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n          return processStyleArg({\n            variants: themeVariants\n          }, (0, _extends2.default)({}, props, {\n            theme\n          }), theme.modularCssLayers ? 'theme' : undefined);\n        });\n      }\n      if (!skipSx) {\n        expressionsWithDefaultTheme.push(systemSx);\n      }\n      const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n      if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n        const placeholders = new Array(numOfCustomFnsApplied).fill('');\n        // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n        transformedStyleArg = [...styleArg, ...placeholders];\n        transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n      }\n      const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n      if (process.env.NODE_ENV !== 'production') {\n        let displayName;\n        if (componentName) {\n          displayName = `${componentName}${(0, _capitalize.default)(componentSlot || '')}`;\n        }\n        if (displayName === undefined) {\n          displayName = `Styled(${(0, _getDisplayName.default)(tag)})`;\n        }\n        Component.displayName = displayName;\n      }\n      if (tag.muiName) {\n        Component.muiName = tag.muiName;\n      }\n      return Component;\n    };\n    if (defaultStyledResolver.withConfig) {\n      muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n    }\n    return muiStyledResolver;\n  };\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nconst boxClasses = generateUtilityClasses('MuiBox', ['root']);\nexport default boxClasses;","'use client';\n\nimport PropTypes from 'prop-types';\nimport ClassNameGenerator from '@mui/utils/ClassNameGenerator';\nimport createBox from '../createBox';\nimport boxClasses from './boxClasses';\nconst Box = createBox({\n  defaultClassName: boxClasses.root,\n  generateClassName: ClassNameGenerator.generate\n});\nprocess.env.NODE_ENV !== \"production\" ? Box.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default Box;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n  value,\n  children\n}) {\n  return /*#__PURE__*/_jsx(PropsContext.Provider, {\n    value: value,\n    children: children\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * @ignore\n   */\n  value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n  const {\n    theme,\n    name,\n    props\n  } = params;\n  if (!theme || !theme.components || !theme.components[name]) {\n    return props;\n  }\n  const config = theme.components[name];\n  if (config.defaultProps) {\n    // compatible with v5 signature\n    return resolveProps(config.defaultProps, props);\n  }\n  if (!config.styleOverrides && !config.variants) {\n    // v6 signature, no property 'defaultProps'\n    return resolveProps(config, props);\n  }\n  return props;\n}\nexport function useDefaultProps({\n  props,\n  name\n}) {\n  const ctx = React.useContext(PropsContext);\n  return getThemeProps({\n    props,\n    name,\n    theme: {\n      components: ctx\n    }\n  });\n}\nexport default DefaultPropsProvider;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport useTheme from '../useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction wrapGlobalLayer(styles) {\n  const serialized = serializeStyles(styles);\n  if (styles !== serialized && serialized.styles) {\n    if (!serialized.styles.match(/^@layer\\s+[^{]*$/)) {\n      // If the styles are not already wrapped in a layer, wrap them in a global layer.\n      serialized.styles = `@layer global{${serialized.styles}}`;\n    }\n    return serialized;\n  }\n  return styles;\n}\nfunction GlobalStyles({\n  styles,\n  themeId,\n  defaultTheme = {}\n}) {\n  const upperTheme = useTheme(defaultTheme);\n  const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;\n  let globalStyles = typeof styles === 'function' ? styles(resolvedTheme) : styles;\n  if (resolvedTheme.modularCssLayers) {\n    if (Array.isArray(globalStyles)) {\n      globalStyles = globalStyles.map(styleArg => {\n        if (typeof styleArg === 'function') {\n          return wrapGlobalLayer(styleArg(resolvedTheme));\n        }\n        return wrapGlobalLayer(styleArg);\n      });\n    } else {\n      globalStyles = wrapGlobalLayer(globalStyles);\n    }\n  }\n  return /*#__PURE__*/_jsx(MuiGlobalStyles, {\n    styles: globalStyles\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? GlobalStyles.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * @ignore\n   */\n  defaultTheme: PropTypes.object,\n  /**\n   * @ignore\n   */\n  styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),\n  /**\n   * @ignore\n   */\n  themeId: PropTypes.string\n} : void 0;\nexport default GlobalStyles;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RtlContext = /*#__PURE__*/React.createContext();\nfunction RtlProvider(_ref) {\n  let {\n      value\n    } = _ref,\n    props = _objectWithoutPropertiesLoose(_ref, _excluded);\n  return /*#__PURE__*/_jsx(RtlContext.Provider, _extends({\n    value: value != null ? value : true\n  }, props));\n}\nprocess.env.NODE_ENV !== \"production\" ? RtlProvider.propTypes = {\n  children: PropTypes.node,\n  value: PropTypes.bool\n} : void 0;\nexport const useRtl = () => {\n  const value = React.useContext(RtlContext);\n  return value != null ? value : false;\n};\nexport default RtlProvider;","'use client';\n\nimport PropTypes from 'prop-types';\nimport createStack from './createStack';\n/**\n *\n * Demos:\n *\n * - [Stack (Joy UI)](https://mui.com/joy-ui/react-stack/)\n * - [Stack (Material UI)](https://mui.com/material-ui/react-stack/)\n * - [Stack (MUI System)](https://mui.com/system/react-stack/)\n *\n * API:\n *\n * - [Stack API](https://mui.com/system/api/stack/)\n */\nconst Stack = createStack();\nprocess.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n  // ┌────────────────────────────── Warning ──────────────────────────────┐\n  // │ These PropTypes are generated from the TypeScript type definitions. │\n  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Defines the `flex-direction` style property.\n   * It is applied for all screen sizes.\n   * @default 'column'\n   */\n  direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n  /**\n   * Add an element between each child.\n   */\n  divider: PropTypes.node,\n  /**\n   * Defines the space between immediate children.\n   * @default 0\n   */\n  spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * The system prop, which allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n   *\n   * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),\n   * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n   *\n   * To enable this flag globally, follow the theme's default props configuration.\n   * @default false\n   */\n  useFlexGap: PropTypes.bool\n} : void 0;\nexport default Stack;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"component\", \"direction\", \"spacing\", \"divider\", \"children\", \"className\", \"useFlexGap\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport deepmerge from '@mui/utils/deepmerge';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from '../styled';\nimport useThemePropsSystem from '../useThemeProps';\nimport { extendSxProp } from '../styleFunctionSx';\nimport createTheme from '../createTheme';\nimport { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from '../breakpoints';\nimport { createUnarySpacing, getValue } from '../spacing';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n  name: 'MuiStack',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n});\nfunction useThemePropsDefault(props) {\n  return useThemePropsSystem({\n    props,\n    name: 'MuiStack',\n    defaultTheme\n  });\n}\n\n/**\n * Return an array with the separator React element interspersed between\n * each React node of the input children.\n *\n * > joinChildren([1,2,3], 0)\n * [1,0,2,0,3]\n */\nfunction joinChildren(children, separator) {\n  const childrenArray = React.Children.toArray(children).filter(Boolean);\n  return childrenArray.reduce((output, child, index) => {\n    output.push(child);\n    if (index < childrenArray.length - 1) {\n      output.push( /*#__PURE__*/React.cloneElement(separator, {\n        key: `separator-${index}`\n      }));\n    }\n    return output;\n  }, []);\n}\nconst getSideFromDirection = direction => {\n  return {\n    row: 'Left',\n    'row-reverse': 'Right',\n    column: 'Top',\n    'column-reverse': 'Bottom'\n  }[direction];\n};\nexport const style = ({\n  ownerState,\n  theme\n}) => {\n  let styles = _extends({\n    display: 'flex',\n    flexDirection: 'column'\n  }, handleBreakpoints({\n    theme\n  }, resolveBreakpointValues({\n    values: ownerState.direction,\n    breakpoints: theme.breakpoints.values\n  }), propValue => ({\n    flexDirection: propValue\n  })));\n  if (ownerState.spacing) {\n    const transformer = createUnarySpacing(theme);\n    const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {\n      if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {\n        acc[breakpoint] = true;\n      }\n      return acc;\n    }, {});\n    const directionValues = resolveBreakpointValues({\n      values: ownerState.direction,\n      base\n    });\n    const spacingValues = resolveBreakpointValues({\n      values: ownerState.spacing,\n      base\n    });\n    if (typeof directionValues === 'object') {\n      Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {\n        const directionValue = directionValues[breakpoint];\n        if (!directionValue) {\n          const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';\n          directionValues[breakpoint] = previousDirectionValue;\n        }\n      });\n    }\n    const styleFromPropValue = (propValue, breakpoint) => {\n      if (ownerState.useFlexGap) {\n        return {\n          gap: getValue(transformer, propValue)\n        };\n      }\n      return {\n        // The useFlexGap={false} implement relies on each child to give up control of the margin.\n        // We need to reset the margin to avoid double spacing.\n        '& > :not(style):not(style)': {\n          margin: 0\n        },\n        '& > :not(style) ~ :not(style)': {\n          [`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)\n        }\n      };\n    };\n    styles = deepmerge(styles, handleBreakpoints({\n      theme\n    }, spacingValues, styleFromPropValue));\n  }\n  styles = mergeBreakpointsInOrder(theme.breakpoints, styles);\n  return styles;\n};\nexport default function createStack(options = {}) {\n  const {\n    // This will allow adding custom styled fn (for example for custom sx style function)\n    createStyledComponent = defaultCreateStyledComponent,\n    useThemeProps = useThemePropsDefault,\n    componentName = 'MuiStack'\n  } = options;\n  const useUtilityClasses = () => {\n    const slots = {\n      root: ['root']\n    };\n    return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n  };\n  const StackRoot = createStyledComponent(style);\n  const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n    const themeProps = useThemeProps(inProps);\n    const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n    const {\n        component = 'div',\n        direction = 'column',\n        spacing = 0,\n        divider,\n        children,\n        className,\n        useFlexGap = false\n      } = props,\n      other = _objectWithoutPropertiesLoose(props, _excluded);\n    const ownerState = {\n      direction,\n      spacing,\n      useFlexGap\n    };\n    const classes = useUtilityClasses();\n    return /*#__PURE__*/_jsx(StackRoot, _extends({\n      as: component,\n      ownerState: ownerState,\n      ref: ref,\n      className: clsx(classes.root, className)\n    }, other, {\n      children: divider ? joinChildren(children, divider) : children\n    }));\n  });\n  process.env.NODE_ENV !== \"production\" ? Stack.propTypes /* remove-proptypes */ = {\n    children: PropTypes.node,\n    direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n    divider: PropTypes.node,\n    spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n    sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n  } : void 0;\n  return Stack;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n  xs: 0,\n  // phone\n  sm: 600,\n  // tablet\n  md: 900,\n  // small laptop\n  lg: 1200,\n  // desktop\n  xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n  // Sorted ASC by size. That's important.\n  // It can't be configured as it's used statically for propTypes.\n  keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n  up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n  const theme = props.theme || {};\n  if (Array.isArray(propValue)) {\n    const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n    return propValue.reduce((acc, item, index) => {\n      acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n      return acc;\n    }, {});\n  }\n  if (typeof propValue === 'object') {\n    const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n    return Object.keys(propValue).reduce((acc, breakpoint) => {\n      // key is breakpoint\n      if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n        const mediaKey = themeBreakpoints.up(breakpoint);\n        acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n      } else {\n        const cssKey = breakpoint;\n        acc[cssKey] = propValue[cssKey];\n      }\n      return acc;\n    }, {});\n  }\n  const output = styleFromPropValue(propValue);\n  return output;\n}\nfunction breakpoints(styleFunction) {\n  // false positive\n  // eslint-disable-next-line react/function-component-definition\n  const newStyleFunction = props => {\n    const theme = props.theme || {};\n    const base = styleFunction(props);\n    const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n    const extended = themeBreakpoints.keys.reduce((acc, key) => {\n      if (props[key]) {\n        acc = acc || {};\n        acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n          theme\n        }, props[key]));\n      }\n      return acc;\n    }, null);\n    return merge(base, extended);\n  };\n  newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n    xs: PropTypes.object,\n    sm: PropTypes.object,\n    md: PropTypes.object,\n    lg: PropTypes.object,\n    xl: PropTypes.object\n  }) : {};\n  newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n  return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n  var _breakpointsInput$key;\n  const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n    const breakpointStyleKey = breakpointsInput.up(key);\n    acc[breakpointStyleKey] = {};\n    return acc;\n  }, {});\n  return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n  return breakpointKeys.reduce((acc, key) => {\n    const breakpointOutput = acc[key];\n    const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n    if (isBreakpointUnused) {\n      delete acc[key];\n    }\n    return acc;\n  }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n  const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n  const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n  return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n  // fixed value\n  if (typeof breakpointValues !== 'object') {\n    return {};\n  }\n  const base = {};\n  const breakpointsKeys = Object.keys(themeBreakpoints);\n  if (Array.isArray(breakpointValues)) {\n    breakpointsKeys.forEach((breakpoint, i) => {\n      if (i < breakpointValues.length) {\n        base[breakpoint] = true;\n      }\n    });\n  } else {\n    breakpointsKeys.forEach(breakpoint => {\n      if (breakpointValues[breakpoint] != null) {\n        base[breakpoint] = true;\n      }\n    });\n  }\n  return base;\n}\nexport function resolveBreakpointValues({\n  values: breakpointValues,\n  breakpoints: themeBreakpoints,\n  base: customBase\n}) {\n  const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n  const keys = Object.keys(base);\n  if (keys.length === 0) {\n    return breakpointValues;\n  }\n  let previous;\n  return keys.reduce((acc, breakpoint, i) => {\n    if (Array.isArray(breakpointValues)) {\n      acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n      previous = i;\n    } else if (typeof breakpointValues === 'object') {\n      acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n      previous = breakpoint;\n    } else {\n      acc[breakpoint] = breakpointValues;\n    }\n    return acc;\n  }, {});\n}\nexport default breakpoints;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"component\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from './styleFunctionSx';\nimport useTheme from './useTheme';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createBox(options = {}) {\n  const {\n    themeId,\n    defaultTheme,\n    defaultClassName = 'MuiBox-root',\n    generateClassName\n  } = options;\n  const BoxRoot = styled('div', {\n    shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'\n  })(styleFunctionSx);\n  const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {\n    const theme = useTheme(defaultTheme);\n    const _extendSxProp = extendSxProp(inProps),\n      {\n        className,\n        component = 'div'\n      } = _extendSxProp,\n      other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded);\n    return /*#__PURE__*/_jsx(BoxRoot, _extends({\n      as: component,\n      ref: ref,\n      className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),\n      theme: themeId ? theme[themeId] || theme : theme\n    }, other));\n  });\n  return Box;\n}","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n *  - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n *  - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n *  - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n *   const Component = styled('div')(({ theme }) => [\n *     { background: '#e5e5e5' },\n *     theme.applyStyles('dark', {\n *       background: '#1c1c1c',\n *       color: '#fff',\n *     }),\n *   ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n *   <Box sx={theme => [\n *     { background: '#e5e5e5' },\n *     theme.applyStyles('dark', {\n *        background: '#1c1c1c',\n *        color: '#fff',\n *      }),\n *     ]}\n *   />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n *   extendTheme({\n *     components: {\n *       MuiButton: {\n *         styleOverrides: {\n *           root: ({ theme }) => [\n *             { background: '#e5e5e5' },\n *             theme.applyStyles('dark', {\n *               background: '#1c1c1c',\n *               color: '#fff',\n *             }),\n *           ],\n *         },\n *       }\n *     }\n *   })\n *```\n */\nexport default function applyStyles(key, styles) {\n  // @ts-expect-error this is 'any' type\n  const theme = this;\n  if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n    // If CssVarsProvider is used as a provider,\n    // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n    const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n    return {\n      [selector]: styles\n    };\n  }\n  if (theme.palette.mode === key) {\n    return styles;\n  }\n  return {};\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n  const breakpointsAsArray = Object.keys(values).map(key => ({\n    key,\n    val: values[key]\n  })) || [];\n  // Sort in ascending order\n  breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n  return breakpointsAsArray.reduce((acc, obj) => {\n    return _extends({}, acc, {\n      [obj.key]: obj.val\n    });\n  }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n  const {\n      // The breakpoint **start** at this value.\n      // For instance with the first breakpoint xs: [xs, sm).\n      values = {\n        xs: 0,\n        // phone\n        sm: 600,\n        // tablet\n        md: 900,\n        // small laptop\n        lg: 1200,\n        // desktop\n        xl: 1536 // large screen\n      },\n      unit = 'px',\n      step = 5\n    } = breakpoints,\n    other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n  const sortedValues = sortBreakpointsValues(values);\n  const keys = Object.keys(sortedValues);\n  function up(key) {\n    const value = typeof values[key] === 'number' ? values[key] : key;\n    return `@media (min-width:${value}${unit})`;\n  }\n  function down(key) {\n    const value = typeof values[key] === 'number' ? values[key] : key;\n    return `@media (max-width:${value - step / 100}${unit})`;\n  }\n  function between(start, end) {\n    const endIndex = keys.indexOf(end);\n    return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n  }\n  function only(key) {\n    if (keys.indexOf(key) + 1 < keys.length) {\n      return between(key, keys[keys.indexOf(key) + 1]);\n    }\n    return up(key);\n  }\n  function not(key) {\n    // handle first and last key separately, for better readability\n    const keyIndex = keys.indexOf(key);\n    if (keyIndex === 0) {\n      return up(keys[1]);\n    }\n    if (keyIndex === keys.length - 1) {\n      return down(keys[keyIndex]);\n    }\n    return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n  }\n  return _extends({\n    keys,\n    values: sortedValues,\n    up,\n    down,\n    between,\n    only,\n    not,\n    unit\n  }, other);\n}","const shape = {\n  borderRadius: 4\n};\nexport default shape;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n  const {\n      breakpoints: breakpointsInput = {},\n      palette: paletteInput = {},\n      spacing: spacingInput,\n      shape: shapeInput = {}\n    } = options,\n    other = _objectWithoutPropertiesLoose(options, _excluded);\n  const breakpoints = createBreakpoints(breakpointsInput);\n  const spacing = createSpacing(spacingInput);\n  let muiTheme = deepmerge({\n    breakpoints,\n    direction: 'ltr',\n    components: {},\n    // Inject component definitions.\n    palette: _extends({\n      mode: 'light'\n    }, paletteInput),\n    spacing,\n    shape: _extends({}, shape, shapeInput)\n  }, other);\n  muiTheme.applyStyles = applyStyles;\n  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n  muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n  muiTheme.unstable_sx = function sx(props) {\n    return styleFunctionSx({\n      sx: props,\n      theme: this\n    });\n  };\n  return muiTheme;\n}\nexport default createTheme;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n  // Already transformed.\n  if (spacingInput.mui) {\n    return spacingInput;\n  }\n\n  // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n  // Smaller components, such as icons, can align to a 4dp grid.\n  // https://m2.material.io/design/layout/understanding-layout.html\n  const transform = createUnarySpacing({\n    spacing: spacingInput\n  });\n  const spacing = (...argsInput) => {\n    if (process.env.NODE_ENV !== 'production') {\n      if (!(argsInput.length <= 4)) {\n        console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n      }\n    }\n    const args = argsInput.length === 0 ? [1] : argsInput;\n    return args.map(argument => {\n      const output = transform(argument);\n      return typeof output === 'number' ? `${output}px` : output;\n    }).join(' ');\n  };\n  spacing.mui = true;\n  return spacing;\n}","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n  if (!item) {\n    return acc;\n  }\n  return deepmerge(acc, item, {\n    clone: false // No need to clone deep, it's way faster.\n  });\n}\nexport default merge;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n  m: 'margin',\n  p: 'padding'\n};\nconst directions = {\n  t: 'Top',\n  r: 'Right',\n  b: 'Bottom',\n  l: 'Left',\n  x: ['Left', 'Right'],\n  y: ['Top', 'Bottom']\n};\nconst aliases = {\n  marginX: 'mx',\n  marginY: 'my',\n  paddingX: 'px',\n  paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n  // It's not a shorthand notation.\n  if (prop.length > 2) {\n    if (aliases[prop]) {\n      prop = aliases[prop];\n    } else {\n      return [prop];\n    }\n  }\n  const [a, b] = prop.split('');\n  const property = properties[a];\n  const direction = directions[b] || '';\n  return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n  var _getPath;\n  const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n  if (typeof themeSpacing === 'number') {\n    return abs => {\n      if (typeof abs === 'string') {\n        return abs;\n      }\n      if (process.env.NODE_ENV !== 'production') {\n        if (typeof abs !== 'number') {\n          console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n        }\n      }\n      return themeSpacing * abs;\n    };\n  }\n  if (Array.isArray(themeSpacing)) {\n    return abs => {\n      if (typeof abs === 'string') {\n        return abs;\n      }\n      if (process.env.NODE_ENV !== 'production') {\n        if (!Number.isInteger(abs)) {\n          console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n        } else if (abs > themeSpacing.length - 1) {\n          console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n        }\n      }\n      return themeSpacing[abs];\n    };\n  }\n  if (typeof themeSpacing === 'function') {\n    return themeSpacing;\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n  }\n  return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n  return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n  if (typeof propValue === 'string' || propValue == null) {\n    return propValue;\n  }\n  const abs = Math.abs(propValue);\n  const transformed = transformer(abs);\n  if (propValue >= 0) {\n    return transformed;\n  }\n  if (typeof transformed === 'number') {\n    return -transformed;\n  }\n  return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n  return propValue => cssProperties.reduce((acc, cssProperty) => {\n    acc[cssProperty] = getValue(transformer, propValue);\n    return acc;\n  }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n  // Using a hash computation over an array iteration could be faster, but with only 28 items,\n  // it's doesn't worth the bundle size.\n  if (keys.indexOf(prop) === -1) {\n    return null;\n  }\n  const cssProperties = getCssProperties(prop);\n  const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n  const propValue = props[prop];\n  return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n  const transformer = createUnarySpacing(props.theme);\n  return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n  return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n  obj[key] = responsivePropType;\n  return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n  return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n  obj[key] = responsivePropType;\n  return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n  return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n  obj[key] = responsivePropType;\n  return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","export default function memoize(fn) {\n  const cache = {};\n  return arg => {\n    if (cache[arg] === undefined) {\n      cache[arg] = fn(arg);\n    }\n    return cache[arg];\n  };\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n  if (!path || typeof path !== 'string') {\n    return null;\n  }\n\n  // Check if CSS variables are used\n  if (obj && obj.vars && checkVars) {\n    const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n    if (val != null) {\n      return val;\n    }\n  }\n  return path.split('.').reduce((acc, item) => {\n    if (acc && acc[item] != null) {\n      return acc[item];\n    }\n    return null;\n  }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n  let value;\n  if (typeof themeMapping === 'function') {\n    value = themeMapping(propValueFinal);\n  } else if (Array.isArray(themeMapping)) {\n    value = themeMapping[propValueFinal] || userValue;\n  } else {\n    value = getPath(themeMapping, propValueFinal) || userValue;\n  }\n  if (transform) {\n    value = transform(value, userValue, themeMapping);\n  }\n  return value;\n}\nfunction style(options) {\n  const {\n    prop,\n    cssProperty = options.prop,\n    themeKey,\n    transform\n  } = options;\n\n  // false positive\n  // eslint-disable-next-line react/function-component-definition\n  const fn = props => {\n    if (props[prop] == null) {\n      return null;\n    }\n    const propValue = props[prop];\n    const theme = props.theme;\n    const themeMapping = getPath(theme, themeKey) || {};\n    const styleFromPropValue = propValueFinal => {\n      let value = getStyleValue(themeMapping, transform, propValueFinal);\n      if (propValueFinal === value && typeof propValueFinal === 'string') {\n        // Haven't found value\n        value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n      }\n      if (cssProperty === false) {\n        return value;\n      }\n      return {\n        [cssProperty]: value\n      };\n    };\n    return handleBreakpoints(props, propValue, styleFromPropValue);\n  };\n  fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n    [prop]: responsivePropType\n  } : {};\n  fn.filterProps = [prop];\n  return fn;\n}\nexport default style;","import merge from './merge';\nfunction compose(...styles) {\n  const handlers = styles.reduce((acc, style) => {\n    style.filterProps.forEach(prop => {\n      acc[prop] = style;\n    });\n    return acc;\n  }, {});\n\n  // false positive\n  // eslint-disable-next-line react/function-component-definition\n  const fn = props => {\n    return Object.keys(props).reduce((acc, prop) => {\n      if (handlers[prop]) {\n        return merge(acc, handlers[prop](props));\n      }\n      return acc;\n    }, {});\n  };\n  fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n  fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n  return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n  if (typeof value !== 'number') {\n    return value;\n  }\n  return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n  return style({\n    prop,\n    themeKey: 'borders',\n    transform\n  });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n  if (props.borderRadius !== undefined && props.borderRadius !== null) {\n    const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n    const styleFromPropValue = propValue => ({\n      borderRadius: getValue(transformer, propValue)\n    });\n    return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n  }\n  return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n  borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n  if (props.gap !== undefined && props.gap !== null) {\n    const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n    const styleFromPropValue = propValue => ({\n      gap: getValue(transformer, propValue)\n    });\n    return handleBreakpoints(props, props.gap, styleFromPropValue);\n  }\n  return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n  gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n  if (props.columnGap !== undefined && props.columnGap !== null) {\n    const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n    const styleFromPropValue = propValue => ({\n      columnGap: getValue(transformer, propValue)\n    });\n    return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n  }\n  return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n  columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n  if (props.rowGap !== undefined && props.rowGap !== null) {\n    const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n    const styleFromPropValue = propValue => ({\n      rowGap: getValue(transformer, propValue)\n    });\n    return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n  }\n  return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n  rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n  prop: 'gridColumn'\n});\nexport const gridRow = style({\n  prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n  prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n  prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n  prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n  prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n  prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n  prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n  prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n  if (userValue === 'grey') {\n    return userValue;\n  }\n  return value;\n}\nexport const color = style({\n  prop: 'color',\n  themeKey: 'palette',\n  transform: paletteTransform\n});\nexport const bgcolor = style({\n  prop: 'bgcolor',\n  cssProperty: 'backgroundColor',\n  themeKey: 'palette',\n  transform: paletteTransform\n});\nexport const backgroundColor = style({\n  prop: 'backgroundColor',\n  themeKey: 'palette',\n  transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n  return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n  prop: 'width',\n  transform: sizingTransform\n});\nexport const maxWidth = props => {\n  if (props.maxWidth !== undefined && props.maxWidth !== null) {\n    const styleFromPropValue = propValue => {\n      var _props$theme, _props$theme2;\n      const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n      if (!breakpoint) {\n        return {\n          maxWidth: sizingTransform(propValue)\n        };\n      }\n      if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n        return {\n          maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n        };\n      }\n      return {\n        maxWidth: breakpoint\n      };\n    };\n    return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n  }\n  return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n  prop: 'minWidth',\n  transform: sizingTransform\n});\nexport const height = style({\n  prop: 'height',\n  transform: sizingTransform\n});\nexport const maxHeight = style({\n  prop: 'maxHeight',\n  transform: sizingTransform\n});\nexport const minHeight = style({\n  prop: 'minHeight',\n  transform: sizingTransform\n});\nexport const sizeWidth = style({\n  prop: 'size',\n  cssProperty: 'width',\n  transform: sizingTransform\n});\nexport const sizeHeight = style({\n  prop: 'size',\n  cssProperty: 'height',\n  transform: sizingTransform\n});\nexport const boxSizing = style({\n  prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n  // borders\n  border: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  borderTop: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  borderRight: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  borderBottom: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  borderLeft: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  borderColor: {\n    themeKey: 'palette'\n  },\n  borderTopColor: {\n    themeKey: 'palette'\n  },\n  borderRightColor: {\n    themeKey: 'palette'\n  },\n  borderBottomColor: {\n    themeKey: 'palette'\n  },\n  borderLeftColor: {\n    themeKey: 'palette'\n  },\n  outline: {\n    themeKey: 'borders',\n    transform: borderTransform\n  },\n  outlineColor: {\n    themeKey: 'palette'\n  },\n  borderRadius: {\n    themeKey: 'shape.borderRadius',\n    style: borderRadius\n  },\n  // palette\n  color: {\n    themeKey: 'palette',\n    transform: paletteTransform\n  },\n  bgcolor: {\n    themeKey: 'palette',\n    cssProperty: 'backgroundColor',\n    transform: paletteTransform\n  },\n  backgroundColor: {\n    themeKey: 'palette',\n    transform: paletteTransform\n  },\n  // spacing\n  p: {\n    style: padding\n  },\n  pt: {\n    style: padding\n  },\n  pr: {\n    style: padding\n  },\n  pb: {\n    style: padding\n  },\n  pl: {\n    style: padding\n  },\n  px: {\n    style: padding\n  },\n  py: {\n    style: padding\n  },\n  padding: {\n    style: padding\n  },\n  paddingTop: {\n    style: padding\n  },\n  paddingRight: {\n    style: padding\n  },\n  paddingBottom: {\n    style: padding\n  },\n  paddingLeft: {\n    style: padding\n  },\n  paddingX: {\n    style: padding\n  },\n  paddingY: {\n    style: padding\n  },\n  paddingInline: {\n    style: padding\n  },\n  paddingInlineStart: {\n    style: padding\n  },\n  paddingInlineEnd: {\n    style: padding\n  },\n  paddingBlock: {\n    style: padding\n  },\n  paddingBlockStart: {\n    style: padding\n  },\n  paddingBlockEnd: {\n    style: padding\n  },\n  m: {\n    style: margin\n  },\n  mt: {\n    style: margin\n  },\n  mr: {\n    style: margin\n  },\n  mb: {\n    style: margin\n  },\n  ml: {\n    style: margin\n  },\n  mx: {\n    style: margin\n  },\n  my: {\n    style: margin\n  },\n  margin: {\n    style: margin\n  },\n  marginTop: {\n    style: margin\n  },\n  marginRight: {\n    style: margin\n  },\n  marginBottom: {\n    style: margin\n  },\n  marginLeft: {\n    style: margin\n  },\n  marginX: {\n    style: margin\n  },\n  marginY: {\n    style: margin\n  },\n  marginInline: {\n    style: margin\n  },\n  marginInlineStart: {\n    style: margin\n  },\n  marginInlineEnd: {\n    style: margin\n  },\n  marginBlock: {\n    style: margin\n  },\n  marginBlockStart: {\n    style: margin\n  },\n  marginBlockEnd: {\n    style: margin\n  },\n  // display\n  displayPrint: {\n    cssProperty: false,\n    transform: value => ({\n      '@media print': {\n        display: value\n      }\n    })\n  },\n  display: {},\n  overflow: {},\n  textOverflow: {},\n  visibility: {},\n  whiteSpace: {},\n  // flexbox\n  flexBasis: {},\n  flexDirection: {},\n  flexWrap: {},\n  justifyContent: {},\n  alignItems: {},\n  alignContent: {},\n  order: {},\n  flex: {},\n  flexGrow: {},\n  flexShrink: {},\n  alignSelf: {},\n  justifyItems: {},\n  justifySelf: {},\n  // grid\n  gap: {\n    style: gap\n  },\n  rowGap: {\n    style: rowGap\n  },\n  columnGap: {\n    style: columnGap\n  },\n  gridColumn: {},\n  gridRow: {},\n  gridAutoFlow: {},\n  gridAutoColumns: {},\n  gridAutoRows: {},\n  gridTemplateColumns: {},\n  gridTemplateRows: {},\n  gridTemplateAreas: {},\n  gridArea: {},\n  // positions\n  position: {},\n  zIndex: {\n    themeKey: 'zIndex'\n  },\n  top: {},\n  right: {},\n  bottom: {},\n  left: {},\n  // shadows\n  boxShadow: {\n    themeKey: 'shadows'\n  },\n  // sizing\n  width: {\n    transform: sizingTransform\n  },\n  maxWidth: {\n    style: maxWidth\n  },\n  minWidth: {\n    transform: sizingTransform\n  },\n  height: {\n    transform: sizingTransform\n  },\n  maxHeight: {\n    transform: sizingTransform\n  },\n  minHeight: {\n    transform: sizingTransform\n  },\n  boxSizing: {},\n  // typography\n  fontFamily: {\n    themeKey: 'typography'\n  },\n  fontSize: {\n    themeKey: 'typography'\n  },\n  fontStyle: {\n    themeKey: 'typography'\n  },\n  fontWeight: {\n    themeKey: 'typography'\n  },\n  letterSpacing: {},\n  textTransform: {},\n  lineHeight: {},\n  textAlign: {},\n  typography: {\n    cssProperty: false,\n    themeKey: 'typography'\n  }\n};\nexport default defaultSxConfig;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"sx\"];\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from './defaultSxConfig';\nconst splitProps = props => {\n  var _props$theme$unstable, _props$theme;\n  const result = {\n    systemProps: {},\n    otherProps: {}\n  };\n  const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;\n  Object.keys(props).forEach(prop => {\n    if (config[prop]) {\n      result.systemProps[prop] = props[prop];\n    } else {\n      result.otherProps[prop] = props[prop];\n    }\n  });\n  return result;\n};\nexport default function extendSxProp(props) {\n  const {\n      sx: inSx\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const {\n    systemProps,\n    otherProps\n  } = splitProps(other);\n  let finalSx;\n  if (Array.isArray(inSx)) {\n    finalSx = [systemProps, ...inSx];\n  } else if (typeof inSx === 'function') {\n    finalSx = (...args) => {\n      const result = inSx(...args);\n      if (!isPlainObject(result)) {\n        return systemProps;\n      }\n      return _extends({}, systemProps, result);\n    };\n  } else {\n    finalSx = _extends({}, systemProps, inSx);\n  }\n  return _extends({}, otherProps, {\n    sx: finalSx\n  });\n}","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n  const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n  const union = new Set(allKeys);\n  return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n  return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n  function getThemeValue(prop, val, theme, config) {\n    const props = {\n      [prop]: val,\n      theme\n    };\n    const options = config[prop];\n    if (!options) {\n      return {\n        [prop]: val\n      };\n    }\n    const {\n      cssProperty = prop,\n      themeKey,\n      transform,\n      style\n    } = options;\n    if (val == null) {\n      return null;\n    }\n\n    // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n    if (themeKey === 'typography' && val === 'inherit') {\n      return {\n        [prop]: val\n      };\n    }\n    const themeMapping = getPath(theme, themeKey) || {};\n    if (style) {\n      return style(props);\n    }\n    const styleFromPropValue = propValueFinal => {\n      let value = getValue(themeMapping, transform, propValueFinal);\n      if (propValueFinal === value && typeof propValueFinal === 'string') {\n        // Haven't found value\n        value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n      }\n      if (cssProperty === false) {\n        return value;\n      }\n      return {\n        [cssProperty]: value\n      };\n    };\n    return handleBreakpoints(props, val, styleFromPropValue);\n  }\n  function styleFunctionSx(props) {\n    var _theme$unstable_sxCon;\n    const {\n      sx,\n      theme = {},\n      nested\n    } = props || {};\n    if (!sx) {\n      return null; // Emotion & styled-components will neglect null\n    }\n    const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n    /*\n     * Receive `sxInput` as object or callback\n     * and then recursively check keys & values to create media query object styles.\n     * (the result will be used in `styled`)\n     */\n    function traverse(sxInput) {\n      let sxObject = sxInput;\n      if (typeof sxInput === 'function') {\n        sxObject = sxInput(theme);\n      } else if (typeof sxInput !== 'object') {\n        // value\n        return sxInput;\n      }\n      if (!sxObject) {\n        return null;\n      }\n      const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n      const breakpointsKeys = Object.keys(emptyBreakpoints);\n      let css = emptyBreakpoints;\n      Object.keys(sxObject).forEach(styleKey => {\n        const value = callIfFn(sxObject[styleKey], theme);\n        if (value !== null && value !== undefined) {\n          if (typeof value === 'object') {\n            if (config[styleKey]) {\n              css = merge(css, getThemeValue(styleKey, value, theme, config));\n            } else {\n              const breakpointsValues = handleBreakpoints({\n                theme\n              }, value, x => ({\n                [styleKey]: x\n              }));\n              if (objectsHaveSameKeys(breakpointsValues, value)) {\n                css[styleKey] = styleFunctionSx({\n                  sx: value,\n                  theme,\n                  nested: true\n                });\n              } else {\n                css = merge(css, breakpointsValues);\n              }\n            }\n          } else {\n            css = merge(css, getThemeValue(styleKey, value, theme, config));\n          }\n        }\n      });\n      if (!nested && theme.modularCssLayers) {\n        return {\n          '@layer sx': removeUnusedBreakpoints(breakpointsKeys, css)\n        };\n      }\n      return removeUnusedBreakpoints(breakpointsKeys, css);\n    }\n    return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n  }\n  return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n  _excluded2 = [\"variants\"],\n  _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n  return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n  return typeof tag === 'string' &&\n  // 96 is one less than the char code\n  // for \"a\" so this is checking that\n  // it's a lowercase character\n  tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n  if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n  ) {\n    serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n  }\n  return serialized;\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n  if (!string) {\n    return string;\n  }\n  return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n  defaultTheme,\n  theme,\n  themeId\n}) {\n  return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n  if (!slot) {\n    return null;\n  }\n  return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref, layerName) {\n  let {\n      ownerState\n    } = _ref,\n    props = _objectWithoutPropertiesLoose(_ref, _excluded);\n  const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n    ownerState\n  }, props)) : callableStyle;\n  if (Array.isArray(resolvedStylesArg)) {\n    return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n      ownerState\n    }, props), layerName));\n  }\n  if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n    const {\n        variants = []\n      } = resolvedStylesArg,\n      otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n    let result = otherStyles;\n    variants.forEach(variant => {\n      let isMatch = true;\n      if (typeof variant.props === 'function') {\n        isMatch = variant.props(_extends({\n          ownerState\n        }, props, ownerState));\n      } else {\n        Object.keys(variant.props).forEach(key => {\n          if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n            isMatch = false;\n          }\n        });\n      }\n      if (isMatch) {\n        if (!Array.isArray(result)) {\n          result = [result];\n        }\n        const variantStyle = typeof variant.style === 'function' ? variant.style(_extends({\n          ownerState\n        }, props, ownerState)) : variant.style;\n        result.push(layerName ? shallowLayer(serializeStyles(variantStyle), layerName) : variantStyle);\n      }\n    });\n    return result;\n  }\n  return layerName ? shallowLayer(serializeStyles(resolvedStylesArg), layerName) : resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n  const {\n    themeId,\n    defaultTheme = systemDefaultTheme,\n    rootShouldForwardProp = shouldForwardProp,\n    slotShouldForwardProp = shouldForwardProp\n  } = input;\n  const systemSx = props => {\n    return styleFunctionSx(_extends({}, props, {\n      theme: resolveTheme(_extends({}, props, {\n        defaultTheme,\n        themeId\n      }))\n    }));\n  };\n  systemSx.__mui_systemSx = true;\n  return (tag, inputOptions = {}) => {\n    // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n    processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n    const {\n        name: componentName,\n        slot: componentSlot,\n        skipVariantsResolver: inputSkipVariantsResolver,\n        skipSx: inputSkipSx,\n        // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n        // For more details: https://github.com/mui/material-ui/pull/37908\n        overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n      } = inputOptions,\n      options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n    const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n    // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n    const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n    // TODO v6: remove `Root` in the next major release\n    // For more details: https://github.com/mui/material-ui/pull/37908\n    componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n    const skipSx = inputSkipSx || false;\n    let label;\n    if (process.env.NODE_ENV !== 'production') {\n      if (componentName) {\n        // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n        // For more details: https://github.com/mui/material-ui/pull/37908\n        label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n      }\n    }\n    let shouldForwardPropOption = shouldForwardProp;\n\n    // TODO v6: remove `Root` in the next major release\n    // For more details: https://github.com/mui/material-ui/pull/37908\n    if (componentSlot === 'Root' || componentSlot === 'root') {\n      shouldForwardPropOption = rootShouldForwardProp;\n    } else if (componentSlot) {\n      // any other slot specified\n      shouldForwardPropOption = slotShouldForwardProp;\n    } else if (isStringTag(tag)) {\n      // for string (html) tag, preserve the behavior in emotion & styled-components.\n      shouldForwardPropOption = undefined;\n    }\n    const defaultStyledResolver = styledEngineStyled(tag, _extends({\n      shouldForwardProp: shouldForwardPropOption,\n      label\n    }, options));\n    const transformStyleArg = stylesArg => {\n      // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n      // component stays as a function. This condition makes sure that we do not interpolate functions\n      // which are basically components used as a selectors.\n      if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n        return props => {\n          const theme = resolveTheme({\n            theme: props.theme,\n            defaultTheme,\n            themeId\n          });\n          return processStyleArg(stylesArg, _extends({}, props, {\n            theme\n          }), theme.modularCssLayers ? layerName : undefined);\n        };\n      }\n      return stylesArg;\n    };\n    const muiStyledResolver = (styleArg, ...expressions) => {\n      let transformedStyleArg = transformStyleArg(styleArg);\n      const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n      if (componentName && overridesResolver) {\n        expressionsWithDefaultTheme.push(props => {\n          const theme = resolveTheme(_extends({}, props, {\n            defaultTheme,\n            themeId\n          }));\n          if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n            return null;\n          }\n          const styleOverrides = theme.components[componentName].styleOverrides;\n          const resolvedStyleOverrides = {};\n          // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n          Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n            resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n              theme\n            }), theme.modularCssLayers ? 'theme' : undefined);\n          });\n          return overridesResolver(props, resolvedStyleOverrides);\n        });\n      }\n      if (componentName && !skipVariantsResolver) {\n        expressionsWithDefaultTheme.push(props => {\n          var _theme$components;\n          const theme = resolveTheme(_extends({}, props, {\n            defaultTheme,\n            themeId\n          }));\n          const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n          return processStyleArg({\n            variants: themeVariants\n          }, _extends({}, props, {\n            theme\n          }), theme.modularCssLayers ? 'theme' : undefined);\n        });\n      }\n      if (!skipSx) {\n        expressionsWithDefaultTheme.push(systemSx);\n      }\n      const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n      if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n        const placeholders = new Array(numOfCustomFnsApplied).fill('');\n        // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n        transformedStyleArg = [...styleArg, ...placeholders];\n        transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n      }\n      const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n      if (process.env.NODE_ENV !== 'production') {\n        let displayName;\n        if (componentName) {\n          displayName = `${componentName}${capitalize(componentSlot || '')}`;\n        }\n        if (displayName === undefined) {\n          displayName = `Styled(${getDisplayName(tag)})`;\n        }\n        Component.displayName = displayName;\n      }\n      if (tag.muiName) {\n        Component.muiName = tag.muiName;\n      }\n      return Component;\n    };\n    if (defaultStyledResolver.withConfig) {\n      muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n    }\n    return muiStyledResolver;\n  };\n}","import createStyled from './createStyled';\nconst styled = createStyled();\nexport default styled;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n  return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n  props,\n  name,\n  defaultTheme,\n  themeId\n}) {\n  let theme = useTheme(defaultTheme);\n  if (themeId) {\n    theme = theme[themeId] || theme;\n  }\n  const mergedProps = getThemeProps({\n    theme,\n    name,\n    props\n  });\n  return mergedProps;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n  const {\n    theme,\n    name,\n    props\n  } = params;\n  if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n    return props;\n  }\n  return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n  return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n  const contextTheme = React.useContext(ThemeContext);\n  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n  let generate = defaultGenerator;\n  return {\n    configure(generator) {\n      generate = generator;\n    },\n    generate(componentName) {\n      return generate(componentName);\n    },\n    reset() {\n      generate = defaultGenerator;\n    }\n  };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n  if (process.env.NODE_ENV === 'production') {\n    return null;\n  }\n  const propValue = props[propName];\n  const safePropName = propFullName || propName;\n  if (propValue == null) {\n    return null;\n  }\n  if (propValue && propValue.nodeType !== 1) {\n    return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n  }\n  return null;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport isHostComponent from '../isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n  if (elementType === undefined || isHostComponent(elementType)) {\n    return otherProps;\n  }\n  return _extends({}, otherProps, {\n    ownerState: _extends({}, otherProps.ownerState, ownerState)\n  });\n}\nexport default appendOwnerState;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n  if (typeof string !== 'string') {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n  }\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}","export default function chainPropTypes(propType1, propType2) {\n  if (process.env.NODE_ENV === 'production') {\n    return () => null;\n  }\n  return function validate(...args) {\n    return propType1(...args) || propType2(...args);\n  };\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n  return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n  const output = {};\n  Object.keys(slots).forEach(\n  // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n  // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n  slot => {\n    output[slot] = slots[slot].reduce((acc, key) => {\n      if (key) {\n        const utilityClass = getUtilityClass(key);\n        if (utilityClass !== '') {\n          acc.push(utilityClass);\n        }\n        if (classes && classes[key]) {\n          acc.push(classes[key]);\n        }\n      }\n      return acc;\n    }, []).join(' ');\n  });\n  return output;\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n  return funcs.reduce((acc, func) => {\n    if (func == null) {\n      return acc;\n    }\n    return function chainedFunction(...args) {\n      acc.apply(this, args);\n      func.apply(this, args);\n    };\n  }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n  let timeout;\n  function debounced(...args) {\n    const later = () => {\n      // @ts-ignore\n      func.apply(this, args);\n    };\n    clearTimeout(timeout);\n    timeout = setTimeout(later, wait);\n  }\n  debounced.clear = () => {\n    clearTimeout(timeout);\n  };\n  return debounced;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n  if (typeof item !== 'object' || item === null) {\n    return false;\n  }\n  const prototype = Object.getPrototypeOf(item);\n  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n  if ( /*#__PURE__*/React.isValidElement(source) || !isPlainObject(source)) {\n    return source;\n  }\n  const output = {};\n  Object.keys(source).forEach(key => {\n    output[key] = deepClone(source[key]);\n  });\n  return output;\n}\nexport default function deepmerge(target, source, options = {\n  clone: true\n}) {\n  const output = options.clone ? _extends({}, target) : target;\n  if (isPlainObject(target) && isPlainObject(source)) {\n    Object.keys(source).forEach(key => {\n      if ( /*#__PURE__*/React.isValidElement(source[key])) {\n        output[key] = source[key];\n      } else if (isPlainObject(source[key]) &&\n      // Avoid prototype pollution\n      Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n        // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n        output[key] = deepmerge(target[key], source[key], options);\n      } else if (options.clone) {\n        output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n      } else {\n        output[key] = source[key];\n      }\n    });\n  }\n  return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n  // elementType.prototype?.isReactComponent\n  const {\n    prototype = {}\n  } = elementType;\n  return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n  const element = props[propName];\n  const safePropName = propFullName || propName;\n  if (element == null ||\n  // When server-side rendering React doesn't warn either.\n  // This is not an accurate check for SSR.\n  // This is only in place for Emotion compat.\n  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n  typeof window === 'undefined') {\n    return null;\n  }\n  let warningHint;\n  const elementType = element.type;\n  /**\n   * Blacklisting instead of whitelisting\n   *\n   * Blacklisting will miss some components, such as React.Fragment. Those will at least\n   * trigger a warning in React.\n   * We can't whitelist because there is no safe way to detect React.forwardRef\n   * or class components. \"Safe\" means there's no public API.\n   *\n   */\n  if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n    warningHint = 'Did you accidentally use a plain function component for an element instead?';\n  }\n  if (warningHint !== undefined) {\n    return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n  }\n  return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n  // elementType.prototype?.isReactComponent\n  const {\n    prototype = {}\n  } = elementType;\n  return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n  const propValue = props[propName];\n  const safePropName = propFullName || propName;\n  if (propValue == null ||\n  // When server-side rendering React doesn't warn either.\n  // This is not an accurate check for SSR.\n  // This is only in place for emotion compat.\n  // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n  typeof window === 'undefined') {\n    return null;\n  }\n  let warningHint;\n\n  /**\n   * Blacklisting instead of whitelisting\n   *\n   * Blacklisting will miss some components, such as React.Fragment. Those will at least\n   * trigger a warning in React.\n   * We can't whitelist because there is no safe way to detect React.forwardRef\n   * or class components. \"Safe\" means there's no public API.\n   *\n   */\n  if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n    warningHint = 'Did you accidentally provide a plain function component instead?';\n  }\n  if (warningHint !== undefined) {\n    return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n  }\n  return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n  if (process.env.NODE_ENV === 'production') {\n    return propTypes;\n  }\n  return _extends({}, propTypes, {\n    [specialProperty]: props => {\n      const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n      if (unsupportedProps.length > 0) {\n        return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n      }\n      return null;\n    }\n  });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nfunction extractEventHandlers(object, excludeKeys = []) {\n  if (object === undefined) {\n    return {};\n  }\n  const result = {};\n  Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n    result[prop] = object[prop];\n  });\n  return result;\n}\nexport default extractEventHandlers;","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n  // Apply babel-plugin-transform-template-literals in loose mode\n  // loose mode is safe if we're concatenating primitives\n  // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n  /* eslint-disable prefer-template */\n  let url = 'https://mui.com/production-error/?code=' + code;\n  for (let i = 1; i < arguments.length; i += 1) {\n    // rest params over-transpile for this case\n    // eslint-disable-next-line prefer-rest-params\n    url += '&args[]=' + encodeURIComponent(arguments[i]);\n  }\n  return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n  /* eslint-enable prefer-template */\n}","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n  active: 'active',\n  checked: 'checked',\n  completed: 'completed',\n  disabled: 'disabled',\n  error: 'error',\n  expanded: 'expanded',\n  focused: 'focused',\n  focusVisible: 'focusVisible',\n  open: 'open',\n  readOnly: 'readOnly',\n  required: 'required',\n  selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n  const globalStateClass = globalStateClasses[slot];\n  return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n  return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n  const result = {};\n  slots.forEach(slot => {\n    result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n  });\n  return result;\n}","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n  const match = `${fn}`.match(fnNameMatchRegex);\n  const name = match && match[1];\n  return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n  return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  const functionName = getFunctionComponentName(innerType);\n  return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n  if (Component == null) {\n    return undefined;\n  }\n  if (typeof Component === 'string') {\n    return Component;\n  }\n  if (typeof Component === 'function') {\n    return getFunctionComponentName(Component, 'Component');\n  }\n\n  // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n  if (typeof Component === 'object') {\n    switch (Component.$$typeof) {\n      case ForwardRef:\n        return getWrappedName(Component, Component.render, 'ForwardRef');\n      case Memo:\n        return getWrappedName(Component, Component.type, 'memo');\n      default:\n        return undefined;\n    }\n  }\n  return undefined;\n}","import * as React from 'react';\n\n/**\n * Returns the ref of a React element handling differences between React 19 and older versions.\n * It will throw runtime error if the element is not a valid React element.\n *\n * @param element React.ReactElement\n * @returns React.Ref<any> | null\n */\nexport default function getReactElementRef(element) {\n  // 'ref' is passed as prop in React 19, whereas 'ref' is directly attached to children in older versions\n  if (parseInt(React.version, 10) >= 19) {\n    var _element$props;\n    return (element == null || (_element$props = element.props) == null ? void 0 : _element$props.ref) || null;\n  }\n  // @ts-expect-error element.ref is not included in the ReactElement type\n  // https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189\n  return (element == null ? void 0 : element.ref) || null;\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n  // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n  const documentWidth = doc.documentElement.clientWidth;\n  return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n  const valueType = typeof value;\n  switch (valueType) {\n    case 'number':\n      if (Number.isNaN(value)) {\n        return 'NaN';\n      }\n      if (!Number.isFinite(value)) {\n        return 'Infinity';\n      }\n      if (value !== Math.floor(value)) {\n        return 'float';\n      }\n      return 'number';\n    case 'object':\n      if (value === null) {\n        return 'null';\n      }\n      return value.constructor.name;\n    default:\n      return valueType;\n  }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n  // eslint-disable-next-line no-restricted-globals\n  return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n  const propValue = props[propName];\n  if (propValue == null || !isInteger(propValue)) {\n    const propType = getTypeByValue(propValue);\n    return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n  }\n  return null;\n}\nfunction validator(props, propName, ...other) {\n  const propValue = props[propName];\n  if (propValue === undefined) {\n    return null;\n  }\n  return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n  return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n  return typeof element === 'string';\n}\nexport default isHostComponent;","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nfunction omitEventHandlers(object) {\n  if (object === undefined) {\n    return {};\n  }\n  const result = {};\n  Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n    result[prop] = object[prop];\n  });\n  return result;\n}\nexport default omitEventHandlers;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport extractEventHandlers from '../extractEventHandlers';\nimport omitEventHandlers from '../omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nfunction mergeSlotProps(parameters) {\n  const {\n    getSlotProps,\n    additionalProps,\n    externalSlotProps,\n    externalForwardedProps,\n    className\n  } = parameters;\n  if (!getSlotProps) {\n    // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n    // so we can simply merge all the props without having to worry about extracting event handlers.\n    const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n    const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n    const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n    if (joinedClasses.length > 0) {\n      props.className = joinedClasses;\n    }\n    if (Object.keys(mergedStyle).length > 0) {\n      props.style = mergedStyle;\n    }\n    return {\n      props,\n      internalRef: undefined\n    };\n  }\n\n  // In this case, getSlotProps is responsible for calling the external event handlers.\n  // We don't need to include them in the merged props because of this.\n\n  const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n  const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n  const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n  const internalSlotProps = getSlotProps(eventHandlers);\n\n  // The order of classes is important here.\n  // Emotion (that we use in libraries consuming Base UI) depends on this order\n  // to properly override style. It requires the most important classes to be last\n  // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n  const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n  const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n  const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n  if (joinedClasses.length > 0) {\n    props.className = joinedClasses;\n  }\n  if (Object.keys(mergedStyle).length > 0) {\n    props.style = mergedStyle;\n  }\n  return {\n    props,\n    internalRef: internalSlotProps.ref\n  };\n}\nexport default mergeSlotProps;","export default function ownerDocument(node) {\n  return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n  const doc = ownerDocument(node);\n  return doc.defaultView || window;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nfunction resolveComponentProps(componentProps, ownerState, slotState) {\n  if (typeof componentProps === 'function') {\n    return componentProps(ownerState, slotState);\n  }\n  return componentProps;\n}\nexport default resolveComponentProps;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n  const output = _extends({}, props);\n  Object.keys(defaultProps).forEach(propName => {\n    if (propName.toString().match(/^(components|slots)$/)) {\n      output[propName] = _extends({}, defaultProps[propName], output[propName]);\n    } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n      const defaultSlotProps = defaultProps[propName] || {};\n      const slotProps = props[propName];\n      output[propName] = {};\n      if (!slotProps || !Object.keys(slotProps)) {\n        // Reduce the iteration if the slot props is empty\n        output[propName] = defaultSlotProps;\n      } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n        // Reduce the iteration if the default slot props is empty\n        output[propName] = slotProps;\n      } else {\n        output[propName] = _extends({}, slotProps);\n        Object.keys(defaultSlotProps).forEach(slotPropName => {\n          output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n        });\n      }\n    } else if (output[propName] === undefined) {\n      output[propName] = defaultProps[propName];\n    }\n  });\n  return output;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n  if (typeof ref === 'function') {\n    ref(value);\n  } else if (ref) {\n    ref.current = value;\n  }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n  const ref = React.useRef(fn);\n  useEnhancedEffect(() => {\n    ref.current = fn;\n  });\n  return React.useRef((...args) =>\n  // @ts-expect-error hide `this`\n  (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n  /**\n   * This will create a new function if the refs passed to this hook change and are all defined.\n   * This means react will call the old forkRef with `null` and the new forkRef\n   * with the ref. Cleanup naturally emerges from this behavior.\n   */\n  return React.useMemo(() => {\n    if (refs.every(ref => ref == null)) {\n      return null;\n    }\n    return instance => {\n      refs.forEach(ref => {\n        setRef(ref, instance);\n      });\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n}","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n  const [defaultId, setDefaultId] = React.useState(idOverride);\n  const id = idOverride || defaultId;\n  React.useEffect(() => {\n    if (defaultId == null) {\n      // Fallback to this default id when possible.\n      // Use the incrementing value for client-side rendering only.\n      // We can't use it server-side.\n      // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n      globalId += 1;\n      setDefaultId(`mui-${globalId}`);\n    }\n  }, [defaultId]);\n  return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n  if (maybeReactUseId !== undefined) {\n    const reactId = maybeReactUseId();\n    return idOverride != null ? idOverride : reactId;\n  }\n  // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n  return useGlobalId(idOverride);\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport useForkRef from '../useForkRef';\nimport appendOwnerState from '../appendOwnerState';\nimport mergeSlotProps from '../mergeSlotProps';\nimport resolveComponentProps from '../resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n  var _parameters$additiona;\n  const {\n      elementType,\n      externalSlotProps,\n      ownerState,\n      skipResolvingSlotProps = false\n    } = parameters,\n    rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n  const {\n    props: mergedProps,\n    internalRef\n  } = mergeSlotProps(_extends({}, rest, {\n    externalSlotProps: resolvedComponentsProps\n  }));\n  const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n  const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n    ref\n  }), ownerState);\n  return props;\n}\nexport default useSlotProps;","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n *   const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n  const ref = React.useRef(UNINITIALIZED);\n  if (ref.current === UNINITIALIZED) {\n    ref.current = init(initArg);\n  }\n  return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n  /* eslint-disable react-hooks/exhaustive-deps */\n  React.useEffect(fn, EMPTY);\n  /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n  constructor() {\n    this.currentId = null;\n    this.clear = () => {\n      if (this.currentId !== null) {\n        clearTimeout(this.currentId);\n        this.currentId = null;\n      }\n    };\n    this.disposeEffect = () => {\n      return this.clear;\n    };\n  }\n  static create() {\n    return new Timeout();\n  }\n  /**\n   * Executes `fn` after `delay`, clearing any previously scheduled call.\n   */\n  start(delay, fn) {\n    this.clear();\n    this.currentId = setTimeout(() => {\n      this.currentId = null;\n      fn();\n    }, delay);\n  }\n}\nexport default function useTimeout() {\n  const timeout = useLazyRef(Timeout.create).current;\n  useOnMount(timeout.disposeEffect);\n  return timeout;\n}","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function typeOf(object) {\n      if (\"object\" === typeof object && null !== object) {\n        var $$typeof = object.$$typeof;\n        switch ($$typeof) {\n          case REACT_ELEMENT_TYPE:\n            switch (((object = object.type), object)) {\n              case REACT_FRAGMENT_TYPE:\n              case REACT_PROFILER_TYPE:\n              case REACT_STRICT_MODE_TYPE:\n              case REACT_SUSPENSE_TYPE:\n              case REACT_SUSPENSE_LIST_TYPE:\n              case REACT_VIEW_TRANSITION_TYPE:\n                return object;\n              default:\n                switch (((object = object && object.$$typeof), object)) {\n                  case REACT_CONTEXT_TYPE:\n                  case REACT_FORWARD_REF_TYPE:\n                  case REACT_LAZY_TYPE:\n                  case REACT_MEMO_TYPE:\n                    return object;\n                  case REACT_CONSUMER_TYPE:\n                    return object;\n                  default:\n                    return $$typeof;\n                }\n            }\n          case REACT_PORTAL_TYPE:\n            return $$typeof;\n        }\n      }\n    }\n    var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n      REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n      REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n      REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n      REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n      REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n      REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n      REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n      REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n      REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n      REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n      REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n      REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n      REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n    exports.ContextConsumer = REACT_CONSUMER_TYPE;\n    exports.ContextProvider = REACT_CONTEXT_TYPE;\n    exports.Element = REACT_ELEMENT_TYPE;\n    exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n    exports.Fragment = REACT_FRAGMENT_TYPE;\n    exports.Lazy = REACT_LAZY_TYPE;\n    exports.Memo = REACT_MEMO_TYPE;\n    exports.Portal = REACT_PORTAL_TYPE;\n    exports.Profiler = REACT_PROFILER_TYPE;\n    exports.StrictMode = REACT_STRICT_MODE_TYPE;\n    exports.Suspense = REACT_SUSPENSE_TYPE;\n    exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n    exports.isContextConsumer = function (object) {\n      return typeOf(object) === REACT_CONSUMER_TYPE;\n    };\n    exports.isContextProvider = function (object) {\n      return typeOf(object) === REACT_CONTEXT_TYPE;\n    };\n    exports.isElement = function (object) {\n      return (\n        \"object\" === typeof object &&\n        null !== object &&\n        object.$$typeof === REACT_ELEMENT_TYPE\n      );\n    };\n    exports.isForwardRef = function (object) {\n      return typeOf(object) === REACT_FORWARD_REF_TYPE;\n    };\n    exports.isFragment = function (object) {\n      return typeOf(object) === REACT_FRAGMENT_TYPE;\n    };\n    exports.isLazy = function (object) {\n      return typeOf(object) === REACT_LAZY_TYPE;\n    };\n    exports.isMemo = function (object) {\n      return typeOf(object) === REACT_MEMO_TYPE;\n    };\n    exports.isPortal = function (object) {\n      return typeOf(object) === REACT_PORTAL_TYPE;\n    };\n    exports.isProfiler = function (object) {\n      return typeOf(object) === REACT_PROFILER_TYPE;\n    };\n    exports.isStrictMode = function (object) {\n      return typeOf(object) === REACT_STRICT_MODE_TYPE;\n    };\n    exports.isSuspense = function (object) {\n      return typeOf(object) === REACT_SUSPENSE_TYPE;\n    };\n    exports.isSuspenseList = function (object) {\n      return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n    };\n    exports.isValidElementType = function (type) {\n      return \"string\" === typeof type ||\n        \"function\" === typeof type ||\n        type === REACT_FRAGMENT_TYPE ||\n        type === REACT_PROFILER_TYPE ||\n        type === REACT_STRICT_MODE_TYPE ||\n        type === REACT_SUSPENSE_TYPE ||\n        type === REACT_SUSPENSE_LIST_TYPE ||\n        (\"object\" === typeof type &&\n          null !== type &&\n          (type.$$typeof === REACT_LAZY_TYPE ||\n            type.$$typeof === REACT_MEMO_TYPE ||\n            type.$$typeof === REACT_CONTEXT_TYPE ||\n            type.$$typeof === REACT_CONSUMER_TYPE ||\n            type.$$typeof === REACT_FORWARD_REF_TYPE ||\n            type.$$typeof === REACT_CLIENT_REFERENCE ||\n            void 0 !== type.getModuleId))\n        ? !0\n        : !1;\n    };\n    exports.typeOf = typeOf;\n  })();\n","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n  return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n  return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","/**\n * @remix-run/router v1.23.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nfunction _extends() {\n  return _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, _extends.apply(null, arguments);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Actions represent the type of change to a location value.\n */\nvar Action;\n(function (Action) {\n  /**\n   * A POP indicates a change to an arbitrary index in the history stack, such\n   * as a back or forward navigation. It does not describe the direction of the\n   * navigation, only that the current index changed.\n   *\n   * Note: This is the default action for newly created history objects.\n   */\n  Action[\"Pop\"] = \"POP\";\n  /**\n   * A PUSH indicates a new entry being added to the history stack, such as when\n   * a link is clicked and a new page loads. When this happens, all subsequent\n   * entries in the stack are lost.\n   */\n  Action[\"Push\"] = \"PUSH\";\n  /**\n   * A REPLACE indicates the entry at the current index in the history stack\n   * being replaced by a new one.\n   */\n  Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\nconst PopStateEventType = \"popstate\";\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\nfunction createMemoryHistory(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  let {\n    initialEntries = [\"/\"],\n    initialIndex,\n    v5Compat = false\n  } = options;\n  let entries; // Declare so we can access from createMemoryLocation\n  entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n  let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n  let action = Action.Pop;\n  let listener = null;\n  function clampIndex(n) {\n    return Math.min(Math.max(n, 0), entries.length - 1);\n  }\n  function getCurrentLocation() {\n    return entries[index];\n  }\n  function createMemoryLocation(to, state, key) {\n    if (state === void 0) {\n      state = null;\n    }\n    let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n    warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n    return location;\n  }\n  function createHref(to) {\n    return typeof to === \"string\" ? to : createPath(to);\n  }\n  let history = {\n    get index() {\n      return index;\n    },\n    get action() {\n      return action;\n    },\n    get location() {\n      return getCurrentLocation();\n    },\n    createHref,\n    createURL(to) {\n      return new URL(createHref(to), \"http://localhost\");\n    },\n    encodeLocation(to) {\n      let path = typeof to === \"string\" ? parsePath(to) : to;\n      return {\n        pathname: path.pathname || \"\",\n        search: path.search || \"\",\n        hash: path.hash || \"\"\n      };\n    },\n    push(to, state) {\n      action = Action.Push;\n      let nextLocation = createMemoryLocation(to, state);\n      index += 1;\n      entries.splice(index, entries.length, nextLocation);\n      if (v5Compat && listener) {\n        listener({\n          action,\n          location: nextLocation,\n          delta: 1\n        });\n      }\n    },\n    replace(to, state) {\n      action = Action.Replace;\n      let nextLocation = createMemoryLocation(to, state);\n      entries[index] = nextLocation;\n      if (v5Compat && listener) {\n        listener({\n          action,\n          location: nextLocation,\n          delta: 0\n        });\n      }\n    },\n    go(delta) {\n      action = Action.Pop;\n      let nextIndex = clampIndex(index + delta);\n      let nextLocation = entries[nextIndex];\n      index = nextIndex;\n      if (listener) {\n        listener({\n          action,\n          location: nextLocation,\n          delta\n        });\n      }\n    },\n    listen(fn) {\n      listener = fn;\n      return () => {\n        listener = null;\n      };\n    }\n  };\n  return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\nfunction createBrowserHistory(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  function createBrowserLocation(window, globalHistory) {\n    let {\n      pathname,\n      search,\n      hash\n    } = window.location;\n    return createLocation(\"\", {\n      pathname,\n      search,\n      hash\n    },\n    // state defaults to `null` because `window.history.state` does\n    globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n  }\n  function createBrowserHref(window, to) {\n    return typeof to === \"string\" ? to : createPath(to);\n  }\n  return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\nfunction createHashHistory(options) {\n  if (options === void 0) {\n    options = {};\n  }\n  function createHashLocation(window, globalHistory) {\n    let {\n      pathname = \"/\",\n      search = \"\",\n      hash = \"\"\n    } = parsePath(window.location.hash.substr(1));\n    // Hash URL should always have a leading / just like window.location.pathname\n    // does, so if an app ends up at a route like /#something then we add a\n    // leading slash so all of our path-matching behaves the same as if it would\n    // in a browser router.  This is particularly important when there exists a\n    // root splat route (<Route path=\"*\">) since that matches internally against\n    // \"/*\" and we'd expect /#something to 404 in a hash router app.\n    if (!pathname.startsWith(\"/\") && !pathname.startsWith(\".\")) {\n      pathname = \"/\" + pathname;\n    }\n    return createLocation(\"\", {\n      pathname,\n      search,\n      hash\n    },\n    // state defaults to `null` because `window.history.state` does\n    globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n  }\n  function createHashHref(window, to) {\n    let base = window.document.querySelector(\"base\");\n    let href = \"\";\n    if (base && base.getAttribute(\"href\")) {\n      let url = window.location.href;\n      let hashIndex = url.indexOf(\"#\");\n      href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n    }\n    return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n  }\n  function validateHashLocation(location, to) {\n    warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n  }\n  return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n  if (value === false || value === null || typeof value === \"undefined\") {\n    throw new Error(message);\n  }\n}\nfunction warning(cond, message) {\n  if (!cond) {\n    // eslint-disable-next-line no-console\n    if (typeof console !== \"undefined\") console.warn(message);\n    try {\n      // Welcome to debugging history!\n      //\n      // This error is thrown as a convenience, so you can more easily\n      // find the source for a warning that appears in the console by\n      // enabling \"pause on exceptions\" in your JavaScript debugger.\n      throw new Error(message);\n      // eslint-disable-next-line no-empty\n    } catch (e) {}\n  }\n}\nfunction createKey() {\n  return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\nfunction getHistoryState(location, index) {\n  return {\n    usr: location.state,\n    key: location.key,\n    idx: index\n  };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\nfunction createLocation(current, to, state, key) {\n  if (state === void 0) {\n    state = null;\n  }\n  let location = _extends({\n    pathname: typeof current === \"string\" ? current : current.pathname,\n    search: \"\",\n    hash: \"\"\n  }, typeof to === \"string\" ? parsePath(to) : to, {\n    state,\n    // TODO: This could be cleaned up.  push/replace should probably just take\n    // full Locations now and avoid the need to run through this flow at all\n    // But that's a pretty big refactor to the current test suite so going to\n    // keep as is for the time being and just let any incoming keys take precedence\n    key: to && to.key || key || createKey()\n  });\n  return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\nfunction createPath(_ref) {\n  let {\n    pathname = \"/\",\n    search = \"\",\n    hash = \"\"\n  } = _ref;\n  if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n  if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n  return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\nfunction parsePath(path) {\n  let parsedPath = {};\n  if (path) {\n    let hashIndex = path.indexOf(\"#\");\n    if (hashIndex >= 0) {\n      parsedPath.hash = path.substr(hashIndex);\n      path = path.substr(0, hashIndex);\n    }\n    let searchIndex = path.indexOf(\"?\");\n    if (searchIndex >= 0) {\n      parsedPath.search = path.substr(searchIndex);\n      path = path.substr(0, searchIndex);\n    }\n    if (path) {\n      parsedPath.pathname = path;\n    }\n  }\n  return parsedPath;\n}\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  let {\n    window = document.defaultView,\n    v5Compat = false\n  } = options;\n  let globalHistory = window.history;\n  let action = Action.Pop;\n  let listener = null;\n  let index = getIndex();\n  // Index should only be null when we initialize. If not, it's because the\n  // user called history.pushState or history.replaceState directly, in which\n  // case we should log a warning as it will result in bugs.\n  if (index == null) {\n    index = 0;\n    globalHistory.replaceState(_extends({}, globalHistory.state, {\n      idx: index\n    }), \"\");\n  }\n  function getIndex() {\n    let state = globalHistory.state || {\n      idx: null\n    };\n    return state.idx;\n  }\n  function handlePop() {\n    action = Action.Pop;\n    let nextIndex = getIndex();\n    let delta = nextIndex == null ? null : nextIndex - index;\n    index = nextIndex;\n    if (listener) {\n      listener({\n        action,\n        location: history.location,\n        delta\n      });\n    }\n  }\n  function push(to, state) {\n    action = Action.Push;\n    let location = createLocation(history.location, to, state);\n    if (validateLocation) validateLocation(location, to);\n    index = getIndex() + 1;\n    let historyState = getHistoryState(location, index);\n    let url = history.createHref(location);\n    // try...catch because iOS limits us to 100 pushState calls :/\n    try {\n      globalHistory.pushState(historyState, \"\", url);\n    } catch (error) {\n      // If the exception is because `state` can't be serialized, let that throw\n      // outwards just like a replace call would so the dev knows the cause\n      // https://html.spec.whatwg.org/multipage/nav-history-apis.html#shared-history-push/replace-state-steps\n      // https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal\n      if (error instanceof DOMException && error.name === \"DataCloneError\") {\n        throw error;\n      }\n      // They are going to lose state here, but there is no real\n      // way to warn them about it since the page will refresh...\n      window.location.assign(url);\n    }\n    if (v5Compat && listener) {\n      listener({\n        action,\n        location: history.location,\n        delta: 1\n      });\n    }\n  }\n  function replace(to, state) {\n    action = Action.Replace;\n    let location = createLocation(history.location, to, state);\n    if (validateLocation) validateLocation(location, to);\n    index = getIndex();\n    let historyState = getHistoryState(location, index);\n    let url = history.createHref(location);\n    globalHistory.replaceState(historyState, \"\", url);\n    if (v5Compat && listener) {\n      listener({\n        action,\n        location: history.location,\n        delta: 0\n      });\n    }\n  }\n  function createURL(to) {\n    // window.location.origin is \"null\" (the literal string value) in Firefox\n    // under certain conditions, notably when serving from a local HTML file\n    // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n    let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n    let href = typeof to === \"string\" ? to : createPath(to);\n    // Treating this as a full URL will strip any trailing spaces so we need to\n    // pre-encode them since they might be part of a matching splat param from\n    // an ancestor route\n    href = href.replace(/ $/, \"%20\");\n    invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n    return new URL(href, base);\n  }\n  let history = {\n    get action() {\n      return action;\n    },\n    get location() {\n      return getLocation(window, globalHistory);\n    },\n    listen(fn) {\n      if (listener) {\n        throw new Error(\"A history only accepts one active listener\");\n      }\n      window.addEventListener(PopStateEventType, handlePop);\n      listener = fn;\n      return () => {\n        window.removeEventListener(PopStateEventType, handlePop);\n        listener = null;\n      };\n    },\n    createHref(to) {\n      return createHref(window, to);\n    },\n    createURL,\n    encodeLocation(to) {\n      // Encode a Location the same way window.location would\n      let url = createURL(to);\n      return {\n        pathname: url.pathname,\n        search: url.search,\n        hash: url.hash\n      };\n    },\n    push,\n    replace,\n    go(n) {\n      return globalHistory.go(n);\n    }\n  };\n  return history;\n}\n//#endregion\n\nvar ResultType;\n(function (ResultType) {\n  ResultType[\"data\"] = \"data\";\n  ResultType[\"deferred\"] = \"deferred\";\n  ResultType[\"redirect\"] = \"redirect\";\n  ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\nconst immutableRouteKeys = new Set([\"lazy\", \"caseSensitive\", \"path\", \"id\", \"index\", \"children\"]);\nfunction isIndexRoute(route) {\n  return route.index === true;\n}\n// Walk the route tree generating unique IDs where necessary, so we are working\n// solely with AgnosticDataRouteObject's within the Router\nfunction convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath, manifest) {\n  if (parentPath === void 0) {\n    parentPath = [];\n  }\n  if (manifest === void 0) {\n    manifest = {};\n  }\n  return routes.map((route, index) => {\n    let treePath = [...parentPath, String(index)];\n    let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n    invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n    invariant(!manifest[id], \"Found a route id collision on id \\\"\" + id + \"\\\".  Route \" + \"id's must be globally unique within Data Router usages\");\n    if (isIndexRoute(route)) {\n      let indexRoute = _extends({}, route, mapRouteProperties(route), {\n        id\n      });\n      manifest[id] = indexRoute;\n      return indexRoute;\n    } else {\n      let pathOrLayoutRoute = _extends({}, route, mapRouteProperties(route), {\n        id,\n        children: undefined\n      });\n      manifest[id] = pathOrLayoutRoute;\n      if (route.children) {\n        pathOrLayoutRoute.children = convertRoutesToDataRoutes(route.children, mapRouteProperties, treePath, manifest);\n      }\n      return pathOrLayoutRoute;\n    }\n  });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/v6/utils/match-routes\n */\nfunction matchRoutes(routes, locationArg, basename) {\n  if (basename === void 0) {\n    basename = \"/\";\n  }\n  return matchRoutesImpl(routes, locationArg, basename, false);\n}\nfunction matchRoutesImpl(routes, locationArg, basename, allowPartial) {\n  let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n  let pathname = stripBasename(location.pathname || \"/\", basename);\n  if (pathname == null) {\n    return null;\n  }\n  let branches = flattenRoutes(routes);\n  rankRouteBranches(branches);\n  let matches = null;\n  let decoded = decodePath(pathname);\n  for (let i = 0; matches == null && i < branches.length; ++i) {\n    // Incoming pathnames are generally encoded from either window.location\n    // or from router.navigate, but we want to match against the unencoded\n    // paths in the route definitions.  Memory router locations won't be\n    // encoded here but there also shouldn't be anything to decode so this\n    // should be a safe operation.  This avoids needing matchRoutes to be\n    // history-aware.\n    matches = matchRouteBranch(branches[i], decoded, allowPartial);\n  }\n  return matches;\n}\nfunction convertRouteMatchToUiMatch(match, loaderData) {\n  let {\n    route,\n    pathname,\n    params\n  } = match;\n  return {\n    id: route.id,\n    pathname,\n    params,\n    data: loaderData[route.id],\n    handle: route.handle\n  };\n}\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n  if (branches === void 0) {\n    branches = [];\n  }\n  if (parentsMeta === void 0) {\n    parentsMeta = [];\n  }\n  if (parentPath === void 0) {\n    parentPath = \"\";\n  }\n  let flattenRoute = (route, index, relativePath) => {\n    let meta = {\n      relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n      caseSensitive: route.caseSensitive === true,\n      childrenIndex: index,\n      route\n    };\n    if (meta.relativePath.startsWith(\"/\")) {\n      invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n      meta.relativePath = meta.relativePath.slice(parentPath.length);\n    }\n    let path = joinPaths([parentPath, meta.relativePath]);\n    let routesMeta = parentsMeta.concat(meta);\n    // Add the children before adding this route to the array, so we traverse the\n    // route tree depth-first and child routes appear before their parents in\n    // the \"flattened\" version.\n    if (route.children && route.children.length > 0) {\n      invariant(\n      // Our types know better, but runtime JS may not!\n      // @ts-expect-error\n      route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n      flattenRoutes(route.children, branches, routesMeta, path);\n    }\n    // Routes without a path shouldn't ever match by themselves unless they are\n    // index routes, so don't add them to the list of possible branches.\n    if (route.path == null && !route.index) {\n      return;\n    }\n    branches.push({\n      path,\n      score: computeScore(path, route.index),\n      routesMeta\n    });\n  };\n  routes.forEach((route, index) => {\n    var _route$path;\n    // coarse-grain check for optional params\n    if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n      flattenRoute(route, index);\n    } else {\n      for (let exploded of explodeOptionalSegments(route.path)) {\n        flattenRoute(route, index, exploded);\n      }\n    }\n  });\n  return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\nfunction explodeOptionalSegments(path) {\n  let segments = path.split(\"/\");\n  if (segments.length === 0) return [];\n  let [first, ...rest] = segments;\n  // Optional path segments are denoted by a trailing `?`\n  let isOptional = first.endsWith(\"?\");\n  // Compute the corresponding required segment: `foo?` -> `foo`\n  let required = first.replace(/\\?$/, \"\");\n  if (rest.length === 0) {\n    // Intepret empty string as omitting an optional segment\n    // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n    return isOptional ? [required, \"\"] : [required];\n  }\n  let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n  let result = [];\n  // All child paths with the prefix.  Do this for all children before the\n  // optional version for all children, so we get consistent ordering where the\n  // parent optional aspect is preferred as required.  Otherwise, we can get\n  // child sections interspersed where deeper optional segments are higher than\n  // parent optional segments, where for example, /:two would explode _earlier_\n  // then /:one.  By always including the parent as required _for all children_\n  // first, we avoid this issue\n  result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\")));\n  // Then, if this is an optional value, add all child versions without\n  if (isOptional) {\n    result.push(...restExploded);\n  }\n  // for absolute paths, ensure `/` instead of empty segment\n  return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\nfunction rankRouteBranches(branches) {\n  branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n  : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\nconst paramRe = /^:[\\w-]+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\nconst isSplat = s => s === \"*\";\nfunction computeScore(path, index) {\n  let segments = path.split(\"/\");\n  let initialScore = segments.length;\n  if (segments.some(isSplat)) {\n    initialScore += splatPenalty;\n  }\n  if (index) {\n    initialScore += indexRouteValue;\n  }\n  return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\nfunction compareIndexes(a, b) {\n  let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n  return siblings ?\n  // If two routes are siblings, we should try to match the earlier sibling\n  // first. This allows people to have fine-grained control over the matching\n  // behavior by simply putting routes with identical paths in the order they\n  // want them tried.\n  a[a.length - 1] - b[b.length - 1] :\n  // Otherwise, it doesn't really make sense to rank non-siblings by index,\n  // so they sort equally.\n  0;\n}\nfunction matchRouteBranch(branch, pathname, allowPartial) {\n  if (allowPartial === void 0) {\n    allowPartial = false;\n  }\n  let {\n    routesMeta\n  } = branch;\n  let matchedParams = {};\n  let matchedPathname = \"/\";\n  let matches = [];\n  for (let i = 0; i < routesMeta.length; ++i) {\n    let meta = routesMeta[i];\n    let end = i === routesMeta.length - 1;\n    let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n    let match = matchPath({\n      path: meta.relativePath,\n      caseSensitive: meta.caseSensitive,\n      end\n    }, remainingPathname);\n    let route = meta.route;\n    if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) {\n      match = matchPath({\n        path: meta.relativePath,\n        caseSensitive: meta.caseSensitive,\n        end: false\n      }, remainingPathname);\n    }\n    if (!match) {\n      return null;\n    }\n    Object.assign(matchedParams, match.params);\n    matches.push({\n      // TODO: Can this as be avoided?\n      params: matchedParams,\n      pathname: joinPaths([matchedPathname, match.pathname]),\n      pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n      route\n    });\n    if (match.pathnameBase !== \"/\") {\n      matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n    }\n  }\n  return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/v6/utils/generate-path\n */\nfunction generatePath(originalPath, params) {\n  if (params === void 0) {\n    params = {};\n  }\n  let path = originalPath;\n  if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n    warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n    path = path.replace(/\\*$/, \"/*\");\n  }\n  // ensure `/` is added at the beginning if the path is absolute\n  const prefix = path.startsWith(\"/\") ? \"/\" : \"\";\n  const stringify = p => p == null ? \"\" : typeof p === \"string\" ? p : String(p);\n  const segments = path.split(/\\/+/).map((segment, index, array) => {\n    const isLastSegment = index === array.length - 1;\n    // only apply the splat if it's the last segment\n    if (isLastSegment && segment === \"*\") {\n      const star = \"*\";\n      // Apply the splat\n      return stringify(params[star]);\n    }\n    const keyMatch = segment.match(/^:([\\w-]+)(\\??)$/);\n    if (keyMatch) {\n      const [, key, optional] = keyMatch;\n      let param = params[key];\n      invariant(optional === \"?\" || param != null, \"Missing \\\":\" + key + \"\\\" param\");\n      return stringify(param);\n    }\n    // Remove any optional markers from optional static segments\n    return segment.replace(/\\?$/g, \"\");\n  })\n  // Remove empty segments\n  .filter(segment => !!segment);\n  return prefix + segments.join(\"/\");\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/v6/utils/match-path\n */\nfunction matchPath(pattern, pathname) {\n  if (typeof pattern === \"string\") {\n    pattern = {\n      path: pattern,\n      caseSensitive: false,\n      end: true\n    };\n  }\n  let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n  let match = pathname.match(matcher);\n  if (!match) return null;\n  let matchedPathname = match[0];\n  let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n  let captureGroups = match.slice(1);\n  let params = compiledParams.reduce((memo, _ref, index) => {\n    let {\n      paramName,\n      isOptional\n    } = _ref;\n    // We need to compute the pathnameBase here using the raw splat value\n    // instead of using params[\"*\"] later because it will be decoded then\n    if (paramName === \"*\") {\n      let splatValue = captureGroups[index] || \"\";\n      pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n    }\n    const value = captureGroups[index];\n    if (isOptional && !value) {\n      memo[paramName] = undefined;\n    } else {\n      memo[paramName] = (value || \"\").replace(/%2F/g, \"/\");\n    }\n    return memo;\n  }, {});\n  return {\n    params,\n    pathname: matchedPathname,\n    pathnameBase,\n    pattern\n  };\n}\nfunction compilePath(path, caseSensitive, end) {\n  if (caseSensitive === void 0) {\n    caseSensitive = false;\n  }\n  if (end === void 0) {\n    end = true;\n  }\n  warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n  let params = [];\n  let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n  .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n  .replace(/[\\\\.*+^${}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n  .replace(/\\/:([\\w-]+)(\\?)?/g, (_, paramName, isOptional) => {\n    params.push({\n      paramName,\n      isOptional: isOptional != null\n    });\n    return isOptional ? \"/?([^\\\\/]+)?\" : \"/([^\\\\/]+)\";\n  });\n  if (path.endsWith(\"*\")) {\n    params.push({\n      paramName: \"*\"\n    });\n    regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n    : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n  } else if (end) {\n    // When matching to the end, ignore trailing slashes\n    regexpSource += \"\\\\/*$\";\n  } else if (path !== \"\" && path !== \"/\") {\n    // If our path is non-empty and contains anything beyond an initial slash,\n    // then we have _some_ form of path in our regex, so we should expect to\n    // match only if we find the end of this path segment.  Look for an optional\n    // non-captured trailing slash (to match a portion of the URL) or the end\n    // of the path (if we've matched to the end).  We used to do this with a\n    // word boundary but that gives false positives on routes like\n    // /user-preferences since `-` counts as a word boundary.\n    regexpSource += \"(?:(?=\\\\/|$))\";\n  } else ;\n  let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n  return [matcher, params];\n}\nfunction decodePath(value) {\n  try {\n    return value.split(\"/\").map(v => decodeURIComponent(v).replace(/\\//g, \"%2F\")).join(\"/\");\n  } catch (error) {\n    warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n    return value;\n  }\n}\n/**\n * @private\n */\nfunction stripBasename(pathname, basename) {\n  if (basename === \"/\") return pathname;\n  if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n    return null;\n  }\n  // We want to leave trailing slash behavior in the user's control, so if they\n  // specify a basename with a trailing slash, we should support it\n  let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n  let nextChar = pathname.charAt(startIndex);\n  if (nextChar && nextChar !== \"/\") {\n    // pathname does not start with basename/\n    return null;\n  }\n  return pathname.slice(startIndex) || \"/\";\n}\nconst ABSOLUTE_URL_REGEX$1 = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst isAbsoluteUrl = url => ABSOLUTE_URL_REGEX$1.test(url);\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/v6/utils/resolve-path\n */\nfunction resolvePath(to, fromPathname) {\n  if (fromPathname === void 0) {\n    fromPathname = \"/\";\n  }\n  let {\n    pathname: toPathname,\n    search = \"\",\n    hash = \"\"\n  } = typeof to === \"string\" ? parsePath(to) : to;\n  let pathname;\n  if (toPathname) {\n    if (isAbsoluteUrl(toPathname)) {\n      pathname = toPathname;\n    } else {\n      if (toPathname.includes(\"//\")) {\n        let oldPathname = toPathname;\n        toPathname = removeDoubleSlashes(toPathname);\n        warning(false, \"Pathnames cannot have embedded double slashes - normalizing \" + (oldPathname + \" -> \" + toPathname));\n      }\n      if (toPathname.startsWith(\"/\")) {\n        pathname = resolvePathname(toPathname.substring(1), \"/\");\n      } else {\n        pathname = resolvePathname(toPathname, fromPathname);\n      }\n    }\n  } else {\n    pathname = fromPathname;\n  }\n  return {\n    pathname,\n    search: normalizeSearch(search),\n    hash: normalizeHash(hash)\n  };\n}\nfunction resolvePathname(relativePath, fromPathname) {\n  let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n  let relativeSegments = relativePath.split(\"/\");\n  relativeSegments.forEach(segment => {\n    if (segment === \"..\") {\n      // Keep the root \"\" segment so the pathname starts at /\n      if (segments.length > 1) segments.pop();\n    } else if (segment !== \".\") {\n      segments.push(segment);\n    }\n  });\n  return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\nfunction getInvalidPathError(char, field, dest, path) {\n  return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"].  Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in <Link to=\\\"...\\\"> and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same.  Both of the following examples should link back to the root:\n *\n *   <Route path=\"/\">\n *     <Route path=\"accounts\" element={<Link to=\"..\"}>\n *   </Route>\n *\n *   <Route path=\"/\">\n *     <Route path=\"accounts\">\n *       <Route element={<AccountsLayout />}>       // <-- Does not contribute\n *         <Route index element={<Link to=\"..\"} />  // <-- Does not contribute\n *       </Route\n *     </Route>\n *   </Route>\n */\nfunction getPathContributingMatches(matches) {\n  return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n// Return the array of pathnames for the current route matches - used to\n// generate the routePathnames input for resolveTo()\nfunction getResolveToMatches(matches, v7_relativeSplatPath) {\n  let pathMatches = getPathContributingMatches(matches);\n  // When v7_relativeSplatPath is enabled, use the full pathname for the leaf\n  // match so we include splat values for \".\" links.  See:\n  // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329\n  if (v7_relativeSplatPath) {\n    return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase);\n  }\n  return pathMatches.map(match => match.pathnameBase);\n}\n/**\n * @private\n */\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n  if (isPathRelative === void 0) {\n    isPathRelative = false;\n  }\n  let to;\n  if (typeof toArg === \"string\") {\n    to = parsePath(toArg);\n  } else {\n    to = _extends({}, toArg);\n    invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n    invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n    invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n  }\n  let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n  let toPathname = isEmptyPath ? \"/\" : to.pathname;\n  let from;\n  // Routing is relative to the current pathname if explicitly requested.\n  //\n  // If a pathname is explicitly provided in `to`, it should be relative to the\n  // route context. This is explained in `Note on `<Link to>` values` in our\n  // migration guide from v5 as a means of disambiguation between `to` values\n  // that begin with `/` and those that do not. However, this is problematic for\n  // `to` values that do not provide a pathname. `to` can simply be a search or\n  // hash string, in which case we should assume that the navigation is relative\n  // to the current location's pathname and *not* the route pathname.\n  if (toPathname == null) {\n    from = locationPathname;\n  } else {\n    let routePathnameIndex = routePathnames.length - 1;\n    // With relative=\"route\" (the default), each leading .. segment means\n    // \"go up one route\" instead of \"go up one URL segment\".  This is a key\n    // difference from how <a href> works and a major reason we call this a\n    // \"to\" value instead of a \"href\".\n    if (!isPathRelative && toPathname.startsWith(\"..\")) {\n      let toSegments = toPathname.split(\"/\");\n      while (toSegments[0] === \"..\") {\n        toSegments.shift();\n        routePathnameIndex -= 1;\n      }\n      to.pathname = toSegments.join(\"/\");\n    }\n    from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n  }\n  let path = resolvePath(to, from);\n  // Ensure the pathname has a trailing slash if the original \"to\" had one\n  let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n  // Or if this was a link to the current path which has a trailing slash\n  let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n  if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n    path.pathname += \"/\";\n  }\n  return path;\n}\n/**\n * @private\n */\nfunction getToPathname(to) {\n  // Empty strings should be treated the same as / paths\n  return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\nconst removeDoubleSlashes = path => path.replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\nconst joinPaths = paths => removeDoubleSlashes(paths.join(\"/\"));\n/**\n * @private\n */\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n *\n * @deprecated The `json` method is deprecated in favor of returning raw objects.\n * This method will be removed in v7.\n */\nconst json = function json(data, init) {\n  if (init === void 0) {\n    init = {};\n  }\n  let responseInit = typeof init === \"number\" ? {\n    status: init\n  } : init;\n  let headers = new Headers(responseInit.headers);\n  if (!headers.has(\"Content-Type\")) {\n    headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n  }\n  return new Response(JSON.stringify(data), _extends({}, responseInit, {\n    headers\n  }));\n};\nclass DataWithResponseInit {\n  constructor(data, init) {\n    this.type = \"DataWithResponseInit\";\n    this.data = data;\n    this.init = init || null;\n  }\n}\n/**\n * Create \"responses\" that contain `status`/`headers` without forcing\n * serialization into an actual `Response` - used by Remix single fetch\n */\nfunction data(data, init) {\n  return new DataWithResponseInit(data, typeof init === \"number\" ? {\n    status: init\n  } : init);\n}\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n  constructor(data, responseInit) {\n    this.pendingKeysSet = new Set();\n    this.subscribers = new Set();\n    this.deferredKeys = [];\n    invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\");\n    // Set up an AbortController + Promise we can race against to exit early\n    // cancellation\n    let reject;\n    this.abortPromise = new Promise((_, r) => reject = r);\n    this.controller = new AbortController();\n    let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n    this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n    this.controller.signal.addEventListener(\"abort\", onAbort);\n    this.data = Object.entries(data).reduce((acc, _ref2) => {\n      let [key, value] = _ref2;\n      return Object.assign(acc, {\n        [key]: this.trackPromise(key, value)\n      });\n    }, {});\n    if (this.done) {\n      // All incoming values were resolved\n      this.unlistenAbortSignal();\n    }\n    this.init = responseInit;\n  }\n  trackPromise(key, value) {\n    if (!(value instanceof Promise)) {\n      return value;\n    }\n    this.deferredKeys.push(key);\n    this.pendingKeysSet.add(key);\n    // We store a little wrapper promise that will be extended with\n    // _data/_error props upon resolve/reject\n    let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, undefined, data), error => this.onSettle(promise, key, error));\n    // Register rejection listeners to avoid uncaught promise rejections on\n    // errors or aborted deferred values\n    promise.catch(() => {});\n    Object.defineProperty(promise, \"_tracked\", {\n      get: () => true\n    });\n    return promise;\n  }\n  onSettle(promise, key, error, data) {\n    if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n      this.unlistenAbortSignal();\n      Object.defineProperty(promise, \"_error\", {\n        get: () => error\n      });\n      return Promise.reject(error);\n    }\n    this.pendingKeysSet.delete(key);\n    if (this.done) {\n      // Nothing left to abort!\n      this.unlistenAbortSignal();\n    }\n    // If the promise was resolved/rejected with undefined, we'll throw an error as you\n    // should always resolve with a value or null\n    if (error === undefined && data === undefined) {\n      let undefinedError = new Error(\"Deferred data for key \\\"\" + key + \"\\\" resolved/rejected with `undefined`, \" + \"you must resolve/reject with a value or `null`.\");\n      Object.defineProperty(promise, \"_error\", {\n        get: () => undefinedError\n      });\n      this.emit(false, key);\n      return Promise.reject(undefinedError);\n    }\n    if (data === undefined) {\n      Object.defineProperty(promise, \"_error\", {\n        get: () => error\n      });\n      this.emit(false, key);\n      return Promise.reject(error);\n    }\n    Object.defineProperty(promise, \"_data\", {\n      get: () => data\n    });\n    this.emit(false, key);\n    return data;\n  }\n  emit(aborted, settledKey) {\n    this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n  }\n  subscribe(fn) {\n    this.subscribers.add(fn);\n    return () => this.subscribers.delete(fn);\n  }\n  cancel() {\n    this.controller.abort();\n    this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n    this.emit(true);\n  }\n  async resolveData(signal) {\n    let aborted = false;\n    if (!this.done) {\n      let onAbort = () => this.cancel();\n      signal.addEventListener(\"abort\", onAbort);\n      aborted = await new Promise(resolve => {\n        this.subscribe(aborted => {\n          signal.removeEventListener(\"abort\", onAbort);\n          if (aborted || this.done) {\n            resolve(aborted);\n          }\n        });\n      });\n    }\n    return aborted;\n  }\n  get done() {\n    return this.pendingKeysSet.size === 0;\n  }\n  get unwrappedData() {\n    invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n    return Object.entries(this.data).reduce((acc, _ref3) => {\n      let [key, value] = _ref3;\n      return Object.assign(acc, {\n        [key]: unwrapTrackedPromise(value)\n      });\n    }, {});\n  }\n  get pendingKeys() {\n    return Array.from(this.pendingKeysSet);\n  }\n}\nfunction isTrackedPromise(value) {\n  return value instanceof Promise && value._tracked === true;\n}\nfunction unwrapTrackedPromise(value) {\n  if (!isTrackedPromise(value)) {\n    return value;\n  }\n  if (value._error) {\n    throw value._error;\n  }\n  return value._data;\n}\n/**\n * @deprecated The `defer` method is deprecated in favor of returning raw\n * objects. This method will be removed in v7.\n */\nconst defer = function defer(data, init) {\n  if (init === void 0) {\n    init = {};\n  }\n  let responseInit = typeof init === \"number\" ? {\n    status: init\n  } : init;\n  return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirect = function redirect(url, init) {\n  if (init === void 0) {\n    init = 302;\n  }\n  let responseInit = init;\n  if (typeof responseInit === \"number\") {\n    responseInit = {\n      status: responseInit\n    };\n  } else if (typeof responseInit.status === \"undefined\") {\n    responseInit.status = 302;\n  }\n  let headers = new Headers(responseInit.headers);\n  headers.set(\"Location\", url);\n  return new Response(null, _extends({}, responseInit, {\n    headers\n  }));\n};\n/**\n * A redirect response that will force a document reload to the new location.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirectDocument = (url, init) => {\n  let response = redirect(url, init);\n  response.headers.set(\"X-Remix-Reload-Document\", \"true\");\n  return response;\n};\n/**\n * A redirect response that will perform a `history.replaceState` instead of a\n * `history.pushState` for client-side navigation redirects.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst replace = (url, init) => {\n  let response = redirect(url, init);\n  response.headers.set(\"X-Remix-Replace\", \"true\");\n  return response;\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n *\n * We don't export the class for public use since it's an implementation\n * detail, but we export the interface above so folks can build their own\n * abstractions around instances via isRouteErrorResponse()\n */\nclass ErrorResponseImpl {\n  constructor(status, statusText, data, internal) {\n    if (internal === void 0) {\n      internal = false;\n    }\n    this.status = status;\n    this.statusText = statusText || \"\";\n    this.internal = internal;\n    if (data instanceof Error) {\n      this.data = data.toString();\n      this.error = data;\n    } else {\n      this.data = data;\n    }\n  }\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\nfunction isRouteErrorResponse(error) {\n  return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n  state: \"idle\",\n  location: undefined,\n  formMethod: undefined,\n  formAction: undefined,\n  formEncType: undefined,\n  formData: undefined,\n  json: undefined,\n  text: undefined\n};\nconst IDLE_FETCHER = {\n  state: \"idle\",\n  data: undefined,\n  formMethod: undefined,\n  formAction: undefined,\n  formEncType: undefined,\n  formData: undefined,\n  json: undefined,\n  text: undefined\n};\nconst IDLE_BLOCKER = {\n  state: \"unblocked\",\n  proceed: undefined,\n  reset: undefined,\n  location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst defaultMapRouteProperties = route => ({\n  hasErrorBoundary: Boolean(route.hasErrorBoundary)\n});\nconst TRANSITIONS_STORAGE_KEY = \"remix-router-transitions\";\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Create a router and listen to history POP navigations\n */\nfunction createRouter(init) {\n  const routerWindow = init.window ? init.window : typeof window !== \"undefined\" ? window : undefined;\n  const isBrowser = typeof routerWindow !== \"undefined\" && typeof routerWindow.document !== \"undefined\" && typeof routerWindow.document.createElement !== \"undefined\";\n  const isServer = !isBrowser;\n  invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n  let mapRouteProperties;\n  if (init.mapRouteProperties) {\n    mapRouteProperties = init.mapRouteProperties;\n  } else if (init.detectErrorBoundary) {\n    // If they are still using the deprecated version, wrap it with the new API\n    let detectErrorBoundary = init.detectErrorBoundary;\n    mapRouteProperties = route => ({\n      hasErrorBoundary: detectErrorBoundary(route)\n    });\n  } else {\n    mapRouteProperties = defaultMapRouteProperties;\n  }\n  // Routes keyed by ID\n  let manifest = {};\n  // Routes in tree format for matching\n  let dataRoutes = convertRoutesToDataRoutes(init.routes, mapRouteProperties, undefined, manifest);\n  let inFlightDataRoutes;\n  let basename = init.basename || \"/\";\n  let dataStrategyImpl = init.dataStrategy || defaultDataStrategy;\n  let patchRoutesOnNavigationImpl = init.patchRoutesOnNavigation;\n  // Config driven behavior flags\n  let future = _extends({\n    v7_fetcherPersist: false,\n    v7_normalizeFormMethod: false,\n    v7_partialHydration: false,\n    v7_prependBasename: false,\n    v7_relativeSplatPath: false,\n    v7_skipActionErrorRevalidation: false\n  }, init.future);\n  // Cleanup function for history\n  let unlistenHistory = null;\n  // Externally-provided functions to call on all state changes\n  let subscribers = new Set();\n  // Externally-provided object to hold scroll restoration locations during routing\n  let savedScrollPositions = null;\n  // Externally-provided function to get scroll restoration keys\n  let getScrollRestorationKey = null;\n  // Externally-provided function to get current scroll position\n  let getScrollPosition = null;\n  // One-time flag to control the initial hydration scroll restoration.  Because\n  // we don't get the saved positions from <ScrollRestoration /> until _after_\n  // the initial render, we need to manually trigger a separate updateState to\n  // send along the restoreScrollPosition\n  // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n  // SSR did the initial scroll restoration.\n  let initialScrollRestored = init.hydrationData != null;\n  let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);\n  let initialMatchesIsFOW = false;\n  let initialErrors = null;\n  if (initialMatches == null && !patchRoutesOnNavigationImpl) {\n    // If we do not match a user-provided-route, fall back to the root\n    // to allow the error boundary to take over\n    let error = getInternalRouterError(404, {\n      pathname: init.history.location.pathname\n    });\n    let {\n      matches,\n      route\n    } = getShortCircuitMatches(dataRoutes);\n    initialMatches = matches;\n    initialErrors = {\n      [route.id]: error\n    };\n  }\n  // In SPA apps, if the user provided a patchRoutesOnNavigation implementation and\n  // our initial match is a splat route, clear them out so we run through lazy\n  // discovery on hydration in case there's a more accurate lazy route match.\n  // In SSR apps (with `hydrationData`), we expect that the server will send\n  // up the proper matched routes so we don't want to run lazy discovery on\n  // initial hydration and want to hydrate into the splat route.\n  if (initialMatches && !init.hydrationData) {\n    let fogOfWar = checkFogOfWar(initialMatches, dataRoutes, init.history.location.pathname);\n    if (fogOfWar.active) {\n      initialMatches = null;\n    }\n  }\n  let initialized;\n  if (!initialMatches) {\n    initialized = false;\n    initialMatches = [];\n    // If partial hydration and fog of war is enabled, we will be running\n    // `patchRoutesOnNavigation` during hydration so include any partial matches as\n    // the initial matches so we can properly render `HydrateFallback`'s\n    if (future.v7_partialHydration) {\n      let fogOfWar = checkFogOfWar(null, dataRoutes, init.history.location.pathname);\n      if (fogOfWar.active && fogOfWar.matches) {\n        initialMatchesIsFOW = true;\n        initialMatches = fogOfWar.matches;\n      }\n    }\n  } else if (initialMatches.some(m => m.route.lazy)) {\n    // All initialMatches need to be loaded before we're ready.  If we have lazy\n    // functions around still then we'll need to run them in initialize()\n    initialized = false;\n  } else if (!initialMatches.some(m => m.route.loader)) {\n    // If we've got no loaders to run, then we're good to go\n    initialized = true;\n  } else if (future.v7_partialHydration) {\n    // If partial hydration is enabled, we're initialized so long as we were\n    // provided with hydrationData for every route with a loader, and no loaders\n    // were marked for explicit hydration\n    let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;\n    let errors = init.hydrationData ? init.hydrationData.errors : null;\n    // If errors exist, don't consider routes below the boundary\n    if (errors) {\n      let idx = initialMatches.findIndex(m => errors[m.route.id] !== undefined);\n      initialized = initialMatches.slice(0, idx + 1).every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors));\n    } else {\n      initialized = initialMatches.every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors));\n    }\n  } else {\n    // Without partial hydration - we're initialized if we were provided any\n    // hydrationData - which is expected to be complete\n    initialized = init.hydrationData != null;\n  }\n  let router;\n  let state = {\n    historyAction: init.history.action,\n    location: init.history.location,\n    matches: initialMatches,\n    initialized,\n    navigation: IDLE_NAVIGATION,\n    // Don't restore on initial updateState() if we were SSR'd\n    restoreScrollPosition: init.hydrationData != null ? false : null,\n    preventScrollReset: false,\n    revalidation: \"idle\",\n    loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n    actionData: init.hydrationData && init.hydrationData.actionData || null,\n    errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n    fetchers: new Map(),\n    blockers: new Map()\n  };\n  // -- Stateful internal variables to manage navigations --\n  // Current navigation in progress (to be committed in completeNavigation)\n  let pendingAction = Action.Pop;\n  // Should the current navigation prevent the scroll reset if scroll cannot\n  // be restored?\n  let pendingPreventScrollReset = false;\n  // AbortController for the active navigation\n  let pendingNavigationController;\n  // Should the current navigation enable document.startViewTransition?\n  let pendingViewTransitionEnabled = false;\n  // Store applied view transitions so we can apply them on POP\n  let appliedViewTransitions = new Map();\n  // Cleanup function for persisting applied transitions to sessionStorage\n  let removePageHideEventListener = null;\n  // We use this to avoid touching history in completeNavigation if a\n  // revalidation is entirely uninterrupted\n  let isUninterruptedRevalidation = false;\n  // Use this internal flag to force revalidation of all loaders:\n  //  - submissions (completed or interrupted)\n  //  - useRevalidator()\n  //  - X-Remix-Revalidate (from redirect)\n  let isRevalidationRequired = false;\n  // Use this internal array to capture routes that require revalidation due\n  // to a cancelled deferred on action submission\n  let cancelledDeferredRoutes = [];\n  // Use this internal array to capture fetcher loads that were cancelled by an\n  // action navigation and require revalidation\n  let cancelledFetcherLoads = new Set();\n  // AbortControllers for any in-flight fetchers\n  let fetchControllers = new Map();\n  // Track loads based on the order in which they started\n  let incrementingLoadId = 0;\n  // Track the outstanding pending navigation data load to be compared against\n  // the globally incrementing load when a fetcher load lands after a completed\n  // navigation\n  let pendingNavigationLoadId = -1;\n  // Fetchers that triggered data reloads as a result of their actions\n  let fetchReloadIds = new Map();\n  // Fetchers that triggered redirect navigations\n  let fetchRedirectIds = new Set();\n  // Most recent href/match for fetcher.load calls for fetchers\n  let fetchLoadMatches = new Map();\n  // Ref-count mounted fetchers so we know when it's ok to clean them up\n  let activeFetchers = new Map();\n  // Fetchers that have requested a delete when using v7_fetcherPersist,\n  // they'll be officially removed after they return to idle\n  let deletedFetchers = new Set();\n  // Store DeferredData instances for active route matches.  When a\n  // route loader returns defer() we stick one in here.  Then, when a nested\n  // promise resolves we update loaderData.  If a new navigation starts we\n  // cancel active deferreds for eliminated routes.\n  let activeDeferreds = new Map();\n  // Store blocker functions in a separate Map outside of router state since\n  // we don't need to update UI state if they change\n  let blockerFunctions = new Map();\n  // Flag to ignore the next history update, so we can revert the URL change on\n  // a POP navigation that was blocked by the user without touching router state\n  let unblockBlockerHistoryUpdate = undefined;\n  // Initialize the router, all side effects should be kicked off from here.\n  // Implemented as a Fluent API for ease of:\n  //   let router = createRouter(init).initialize();\n  function initialize() {\n    // If history informs us of a POP navigation, start the navigation but do not update\n    // state.  We'll update our own state once the navigation completes\n    unlistenHistory = init.history.listen(_ref => {\n      let {\n        action: historyAction,\n        location,\n        delta\n      } = _ref;\n      // Ignore this event if it was just us resetting the URL from a\n      // blocked POP navigation\n      if (unblockBlockerHistoryUpdate) {\n        unblockBlockerHistoryUpdate();\n        unblockBlockerHistoryUpdate = undefined;\n        return;\n      }\n      warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs.  This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n      let blockerKey = shouldBlockNavigation({\n        currentLocation: state.location,\n        nextLocation: location,\n        historyAction\n      });\n      if (blockerKey && delta != null) {\n        // Restore the URL to match the current UI, but don't update router state\n        let nextHistoryUpdatePromise = new Promise(resolve => {\n          unblockBlockerHistoryUpdate = resolve;\n        });\n        init.history.go(delta * -1);\n        // Put the blocker into a blocked state\n        updateBlocker(blockerKey, {\n          state: \"blocked\",\n          location,\n          proceed() {\n            updateBlocker(blockerKey, {\n              state: \"proceeding\",\n              proceed: undefined,\n              reset: undefined,\n              location\n            });\n            // Re-do the same POP navigation we just blocked, after the url\n            // restoration is also complete.  See:\n            // https://github.com/remix-run/react-router/issues/11613\n            nextHistoryUpdatePromise.then(() => init.history.go(delta));\n          },\n          reset() {\n            let blockers = new Map(state.blockers);\n            blockers.set(blockerKey, IDLE_BLOCKER);\n            updateState({\n              blockers\n            });\n          }\n        });\n        return;\n      }\n      return startNavigation(historyAction, location);\n    });\n    if (isBrowser) {\n      // FIXME: This feels gross.  How can we cleanup the lines between\n      // scrollRestoration/appliedTransitions persistance?\n      restoreAppliedTransitions(routerWindow, appliedViewTransitions);\n      let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions);\n      routerWindow.addEventListener(\"pagehide\", _saveAppliedTransitions);\n      removePageHideEventListener = () => routerWindow.removeEventListener(\"pagehide\", _saveAppliedTransitions);\n    }\n    // Kick off initial data load if needed.  Use Pop to avoid modifying history\n    // Note we don't do any handling of lazy here.  For SPA's it'll get handled\n    // in the normal navigation flow.  For SSR it's expected that lazy modules are\n    // resolved prior to router creation since we can't go into a fallbackElement\n    // UI for SSR'd apps\n    if (!state.initialized) {\n      startNavigation(Action.Pop, state.location, {\n        initialHydration: true\n      });\n    }\n    return router;\n  }\n  // Clean up a router and it's side effects\n  function dispose() {\n    if (unlistenHistory) {\n      unlistenHistory();\n    }\n    if (removePageHideEventListener) {\n      removePageHideEventListener();\n    }\n    subscribers.clear();\n    pendingNavigationController && pendingNavigationController.abort();\n    state.fetchers.forEach((_, key) => deleteFetcher(key));\n    state.blockers.forEach((_, key) => deleteBlocker(key));\n  }\n  // Subscribe to state updates for the router\n  function subscribe(fn) {\n    subscribers.add(fn);\n    return () => subscribers.delete(fn);\n  }\n  // Update our state and notify the calling context of the change\n  function updateState(newState, opts) {\n    if (opts === void 0) {\n      opts = {};\n    }\n    state = _extends({}, state, newState);\n    // Prep fetcher cleanup so we can tell the UI which fetcher data entries\n    // can be removed\n    let completedFetchers = [];\n    let deletedFetchersKeys = [];\n    if (future.v7_fetcherPersist) {\n      state.fetchers.forEach((fetcher, key) => {\n        if (fetcher.state === \"idle\") {\n          if (deletedFetchers.has(key)) {\n            // Unmounted from the UI and can be totally removed\n            deletedFetchersKeys.push(key);\n          } else {\n            // Returned to idle but still mounted in the UI, so semi-remains for\n            // revalidations and such\n            completedFetchers.push(key);\n          }\n        }\n      });\n    }\n    // Remove any lingering deleted fetchers that have already been removed\n    // from state.fetchers\n    deletedFetchers.forEach(key => {\n      if (!state.fetchers.has(key) && !fetchControllers.has(key)) {\n        deletedFetchersKeys.push(key);\n      }\n    });\n    // Iterate over a local copy so that if flushSync is used and we end up\n    // removing and adding a new subscriber due to the useCallback dependencies,\n    // we don't get ourselves into a loop calling the new subscriber immediately\n    [...subscribers].forEach(subscriber => subscriber(state, {\n      deletedFetchers: deletedFetchersKeys,\n      viewTransitionOpts: opts.viewTransitionOpts,\n      flushSync: opts.flushSync === true\n    }));\n    // Remove idle fetchers from state since we only care about in-flight fetchers.\n    if (future.v7_fetcherPersist) {\n      completedFetchers.forEach(key => state.fetchers.delete(key));\n      deletedFetchersKeys.forEach(key => deleteFetcher(key));\n    } else {\n      // We already called deleteFetcher() on these, can remove them from this\n      // Set now that we've handed the keys off to the data layer\n      deletedFetchersKeys.forEach(key => deletedFetchers.delete(key));\n    }\n  }\n  // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n  // and setting state.[historyAction/location/matches] to the new route.\n  // - Location is a required param\n  // - Navigation will always be set to IDLE_NAVIGATION\n  // - Can pass any other state in newState\n  function completeNavigation(location, newState, _temp) {\n    var _location$state, _location$state2;\n    let {\n      flushSync\n    } = _temp === void 0 ? {} : _temp;\n    // Deduce if we're in a loading/actionReload state:\n    // - We have committed actionData in the store\n    // - The current navigation was a mutation submission\n    // - We're past the submitting state and into the loading state\n    // - The location being loaded is not the result of a redirect\n    let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n    let actionData;\n    if (newState.actionData) {\n      if (Object.keys(newState.actionData).length > 0) {\n        actionData = newState.actionData;\n      } else {\n        // Empty actionData -> clear prior actionData due to an action error\n        actionData = null;\n      }\n    } else if (isActionReload) {\n      // Keep the current data if we're wrapping up the action reload\n      actionData = state.actionData;\n    } else {\n      // Clear actionData on any other completed navigations\n      actionData = null;\n    }\n    // Always preserve any existing loaderData from re-used routes\n    let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData;\n    // On a successful navigation we can assume we got through all blockers\n    // so we can start fresh\n    let blockers = state.blockers;\n    if (blockers.size > 0) {\n      blockers = new Map(blockers);\n      blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER));\n    }\n    // Always respect the user flag.  Otherwise don't reset on mutation\n    // submission navigations unless they redirect\n    let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n    // Commit any in-flight routes at the end of the HMR revalidation \"navigation\"\n    if (inFlightDataRoutes) {\n      dataRoutes = inFlightDataRoutes;\n      inFlightDataRoutes = undefined;\n    }\n    if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n      init.history.push(location, location.state);\n    } else if (pendingAction === Action.Replace) {\n      init.history.replace(location, location.state);\n    }\n    let viewTransitionOpts;\n    // On POP, enable transitions if they were enabled on the original navigation\n    if (pendingAction === Action.Pop) {\n      // Forward takes precedence so they behave like the original navigation\n      let priorPaths = appliedViewTransitions.get(state.location.pathname);\n      if (priorPaths && priorPaths.has(location.pathname)) {\n        viewTransitionOpts = {\n          currentLocation: state.location,\n          nextLocation: location\n        };\n      } else if (appliedViewTransitions.has(location.pathname)) {\n        // If we don't have a previous forward nav, assume we're popping back to\n        // the new location and enable if that location previously enabled\n        viewTransitionOpts = {\n          currentLocation: location,\n          nextLocation: state.location\n        };\n      }\n    } else if (pendingViewTransitionEnabled) {\n      // Store the applied transition on PUSH/REPLACE\n      let toPaths = appliedViewTransitions.get(state.location.pathname);\n      if (toPaths) {\n        toPaths.add(location.pathname);\n      } else {\n        toPaths = new Set([location.pathname]);\n        appliedViewTransitions.set(state.location.pathname, toPaths);\n      }\n      viewTransitionOpts = {\n        currentLocation: state.location,\n        nextLocation: location\n      };\n    }\n    updateState(_extends({}, newState, {\n      actionData,\n      loaderData,\n      historyAction: pendingAction,\n      location,\n      initialized: true,\n      navigation: IDLE_NAVIGATION,\n      revalidation: \"idle\",\n      restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n      preventScrollReset,\n      blockers\n    }), {\n      viewTransitionOpts,\n      flushSync: flushSync === true\n    });\n    // Reset stateful navigation vars\n    pendingAction = Action.Pop;\n    pendingPreventScrollReset = false;\n    pendingViewTransitionEnabled = false;\n    isUninterruptedRevalidation = false;\n    isRevalidationRequired = false;\n    cancelledDeferredRoutes = [];\n  }\n  // Trigger a navigation event, which can either be a numerical POP or a PUSH\n  // replace with an optional submission\n  async function navigate(to, opts) {\n    if (typeof to === \"number\") {\n      init.history.go(to);\n      return;\n    }\n    let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, to, future.v7_relativeSplatPath, opts == null ? void 0 : opts.fromRouteId, opts == null ? void 0 : opts.relative);\n    let {\n      path,\n      submission,\n      error\n    } = normalizeNavigateOptions(future.v7_normalizeFormMethod, false, normalizedPath, opts);\n    let currentLocation = state.location;\n    let nextLocation = createLocation(state.location, path, opts && opts.state);\n    // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n    // URL from window.location, so we need to encode it here so the behavior\n    // remains the same as POP and non-data-router usages.  new URL() does all\n    // the same encoding we'd get from a history.pushState/window.location read\n    // without having to touch history\n    nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n    let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n    let historyAction = Action.Push;\n    if (userReplace === true) {\n      historyAction = Action.Replace;\n    } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n      // By default on submissions to the current location we REPLACE so that\n      // users don't have to double-click the back button to get to the prior\n      // location.  If the user redirects to a different location from the\n      // action/loader this will be ignored and the redirect will be a PUSH\n      historyAction = Action.Replace;\n    }\n    let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n    let flushSync = (opts && opts.flushSync) === true;\n    let blockerKey = shouldBlockNavigation({\n      currentLocation,\n      nextLocation,\n      historyAction\n    });\n    if (blockerKey) {\n      // Put the blocker into a blocked state\n      updateBlocker(blockerKey, {\n        state: \"blocked\",\n        location: nextLocation,\n        proceed() {\n          updateBlocker(blockerKey, {\n            state: \"proceeding\",\n            proceed: undefined,\n            reset: undefined,\n            location: nextLocation\n          });\n          // Send the same navigation through\n          navigate(to, opts);\n        },\n        reset() {\n          let blockers = new Map(state.blockers);\n          blockers.set(blockerKey, IDLE_BLOCKER);\n          updateState({\n            blockers\n          });\n        }\n      });\n      return;\n    }\n    return await startNavigation(historyAction, nextLocation, {\n      submission,\n      // Send through the formData serialization error if we have one so we can\n      // render at the right error boundary after we match routes\n      pendingError: error,\n      preventScrollReset,\n      replace: opts && opts.replace,\n      enableViewTransition: opts && opts.viewTransition,\n      flushSync\n    });\n  }\n  // Revalidate all current loaders.  If a navigation is in progress or if this\n  // is interrupted by a navigation, allow this to \"succeed\" by calling all\n  // loaders during the next loader round\n  function revalidate() {\n    interruptActiveLoads();\n    updateState({\n      revalidation: \"loading\"\n    });\n    // If we're currently submitting an action, we don't need to start a new\n    // navigation, we'll just let the follow up loader execution call all loaders\n    if (state.navigation.state === \"submitting\") {\n      return;\n    }\n    // If we're currently in an idle state, start a new navigation for the current\n    // action/location and mark it as uninterrupted, which will skip the history\n    // update in completeNavigation\n    if (state.navigation.state === \"idle\") {\n      startNavigation(state.historyAction, state.location, {\n        startUninterruptedRevalidation: true\n      });\n      return;\n    }\n    // Otherwise, if we're currently in a loading state, just start a new\n    // navigation to the navigation.location but do not trigger an uninterrupted\n    // revalidation so that history correctly updates once the navigation completes\n    startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n      overrideNavigation: state.navigation,\n      // Proxy through any rending view transition\n      enableViewTransition: pendingViewTransitionEnabled === true\n    });\n  }\n  // Start a navigation to the given action/location.  Can optionally provide a\n  // overrideNavigation which will override the normalLoad in the case of a redirect\n  // navigation\n  async function startNavigation(historyAction, location, opts) {\n    // Abort any in-progress navigations and start a new one. Unset any ongoing\n    // uninterrupted revalidations unless told otherwise, since we want this\n    // new navigation to update history normally\n    pendingNavigationController && pendingNavigationController.abort();\n    pendingNavigationController = null;\n    pendingAction = historyAction;\n    isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true;\n    // Save the current scroll position every time we start a new navigation,\n    // and track whether we should reset scroll on completion\n    saveScrollPosition(state.location, state.matches);\n    pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n    pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true;\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    let loadingNavigation = opts && opts.overrideNavigation;\n    let matches = opts != null && opts.initialHydration && state.matches && state.matches.length > 0 && !initialMatchesIsFOW ?\n    // `matchRoutes()` has already been called if we're in here via `router.initialize()`\n    state.matches : matchRoutes(routesToUse, location, basename);\n    let flushSync = (opts && opts.flushSync) === true;\n    // Short circuit if it's only a hash change and not a revalidation or\n    // mutation submission.\n    //\n    // Ignore on initial page loads because since the initial hydration will always\n    // be \"same hash\".  For example, on /page#hash and submit a <Form method=\"post\">\n    // which will default to a navigation to /page\n    if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n      completeNavigation(location, {\n        matches\n      }, {\n        flushSync\n      });\n      return;\n    }\n    let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);\n    if (fogOfWar.active && fogOfWar.matches) {\n      matches = fogOfWar.matches;\n    }\n    // Short circuit with a 404 on the root error boundary if we match nothing\n    if (!matches) {\n      let {\n        error,\n        notFoundMatches,\n        route\n      } = handleNavigational404(location.pathname);\n      completeNavigation(location, {\n        matches: notFoundMatches,\n        loaderData: {},\n        errors: {\n          [route.id]: error\n        }\n      }, {\n        flushSync\n      });\n      return;\n    }\n    // Create a controller/Request for this navigation\n    pendingNavigationController = new AbortController();\n    let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n    let pendingActionResult;\n    if (opts && opts.pendingError) {\n      // If we have a pendingError, it means the user attempted a GET submission\n      // with binary FormData so assign here and skip to handleLoaders.  That\n      // way we handle calling loaders above the boundary etc.  It's not really\n      // different from an actionError in that sense.\n      pendingActionResult = [findNearestBoundary(matches).route.id, {\n        type: ResultType.error,\n        error: opts.pendingError\n      }];\n    } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n      // Call action if we received an action submission\n      let actionResult = await handleAction(request, location, opts.submission, matches, fogOfWar.active, {\n        replace: opts.replace,\n        flushSync\n      });\n      if (actionResult.shortCircuited) {\n        return;\n      }\n      // If we received a 404 from handleAction, it's because we couldn't lazily\n      // discover the destination route so we don't want to call loaders\n      if (actionResult.pendingActionResult) {\n        let [routeId, result] = actionResult.pendingActionResult;\n        if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) {\n          pendingNavigationController = null;\n          completeNavigation(location, {\n            matches: actionResult.matches,\n            loaderData: {},\n            errors: {\n              [routeId]: result.error\n            }\n          });\n          return;\n        }\n      }\n      matches = actionResult.matches || matches;\n      pendingActionResult = actionResult.pendingActionResult;\n      loadingNavigation = getLoadingNavigation(location, opts.submission);\n      flushSync = false;\n      // No need to do fog of war matching again on loader execution\n      fogOfWar.active = false;\n      // Create a GET request for the loaders\n      request = createClientSideRequest(init.history, request.url, request.signal);\n    }\n    // Call loaders\n    let {\n      shortCircuited,\n      matches: updatedMatches,\n      loaderData,\n      errors\n    } = await handleLoaders(request, location, matches, fogOfWar.active, loadingNavigation, opts && opts.submission, opts && opts.fetcherSubmission, opts && opts.replace, opts && opts.initialHydration === true, flushSync, pendingActionResult);\n    if (shortCircuited) {\n      return;\n    }\n    // Clean up now that the action/loaders have completed.  Don't clean up if\n    // we short circuited because pendingNavigationController will have already\n    // been assigned to a new controller for the next navigation\n    pendingNavigationController = null;\n    completeNavigation(location, _extends({\n      matches: updatedMatches || matches\n    }, getActionDataForCommit(pendingActionResult), {\n      loaderData,\n      errors\n    }));\n  }\n  // Call the action matched by the leaf route for this navigation and handle\n  // redirects/errors\n  async function handleAction(request, location, submission, matches, isFogOfWar, opts) {\n    if (opts === void 0) {\n      opts = {};\n    }\n    interruptActiveLoads();\n    // Put us in a submitting state\n    let navigation = getSubmittingNavigation(location, submission);\n    updateState({\n      navigation\n    }, {\n      flushSync: opts.flushSync === true\n    });\n    if (isFogOfWar) {\n      let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n      if (discoverResult.type === \"aborted\") {\n        return {\n          shortCircuited: true\n        };\n      } else if (discoverResult.type === \"error\") {\n        let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n        return {\n          matches: discoverResult.partialMatches,\n          pendingActionResult: [boundaryId, {\n            type: ResultType.error,\n            error: discoverResult.error\n          }]\n        };\n      } else if (!discoverResult.matches) {\n        let {\n          notFoundMatches,\n          error,\n          route\n        } = handleNavigational404(location.pathname);\n        return {\n          matches: notFoundMatches,\n          pendingActionResult: [route.id, {\n            type: ResultType.error,\n            error\n          }]\n        };\n      } else {\n        matches = discoverResult.matches;\n      }\n    }\n    // Call our action and get the result\n    let result;\n    let actionMatch = getTargetMatch(matches, location);\n    if (!actionMatch.route.action && !actionMatch.route.lazy) {\n      result = {\n        type: ResultType.error,\n        error: getInternalRouterError(405, {\n          method: request.method,\n          pathname: location.pathname,\n          routeId: actionMatch.route.id\n        })\n      };\n    } else {\n      let results = await callDataStrategy(\"action\", state, request, [actionMatch], matches, null);\n      result = results[actionMatch.route.id];\n      if (request.signal.aborted) {\n        return {\n          shortCircuited: true\n        };\n      }\n    }\n    if (isRedirectResult(result)) {\n      let replace;\n      if (opts && opts.replace != null) {\n        replace = opts.replace;\n      } else {\n        // If the user didn't explicity indicate replace behavior, replace if\n        // we redirected to the exact same location we're currently at to avoid\n        // double back-buttons\n        let location = normalizeRedirectLocation(result.response.headers.get(\"Location\"), new URL(request.url), basename, init.history);\n        replace = location === state.location.pathname + state.location.search;\n      }\n      await startRedirectNavigation(request, result, true, {\n        submission,\n        replace\n      });\n      return {\n        shortCircuited: true\n      };\n    }\n    if (isDeferredResult(result)) {\n      throw getInternalRouterError(400, {\n        type: \"defer-action\"\n      });\n    }\n    if (isErrorResult(result)) {\n      // Store off the pending error - we use it to determine which loaders\n      // to call and will commit it when we complete the navigation\n      let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n      // By default, all submissions to the current location are REPLACE\n      // navigations, but if the action threw an error that'll be rendered in\n      // an errorElement, we fall back to PUSH so that the user can use the\n      // back button to get back to the pre-submission form location to try\n      // again\n      if ((opts && opts.replace) !== true) {\n        pendingAction = Action.Push;\n      }\n      return {\n        matches,\n        pendingActionResult: [boundaryMatch.route.id, result]\n      };\n    }\n    return {\n      matches,\n      pendingActionResult: [actionMatch.route.id, result]\n    };\n  }\n  // Call all applicable loaders for the given matches, handling redirects,\n  // errors, etc.\n  async function handleLoaders(request, location, matches, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace, initialHydration, flushSync, pendingActionResult) {\n    // Figure out the right navigation we want to use for data loading\n    let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission);\n    // If this was a redirect from an action we don't have a \"submission\" but\n    // we have it on the loading navigation so use that if available\n    let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);\n    // If this is an uninterrupted revalidation, we remain in our current idle\n    // state.  If not, we need to switch to our loading state and load data,\n    // preserving any new action data or existing action data (in the case of\n    // a revalidation interrupting an actionReload)\n    // If we have partialHydration enabled, then don't update the state for the\n    // initial data load since it's not a \"navigation\"\n    let shouldUpdateNavigationState = !isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration);\n    // When fog of war is enabled, we enter our `loading` state earlier so we\n    // can discover new routes during the `loading` state.  We skip this if\n    // we've already run actions since we would have done our matching already.\n    // If the children() function threw then, we want to proceed with the\n    // partial matches it discovered.\n    if (isFogOfWar) {\n      if (shouldUpdateNavigationState) {\n        let actionData = getUpdatedActionData(pendingActionResult);\n        updateState(_extends({\n          navigation: loadingNavigation\n        }, actionData !== undefined ? {\n          actionData\n        } : {}), {\n          flushSync\n        });\n      }\n      let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n      if (discoverResult.type === \"aborted\") {\n        return {\n          shortCircuited: true\n        };\n      } else if (discoverResult.type === \"error\") {\n        let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n        return {\n          matches: discoverResult.partialMatches,\n          loaderData: {},\n          errors: {\n            [boundaryId]: discoverResult.error\n          }\n        };\n      } else if (!discoverResult.matches) {\n        let {\n          error,\n          notFoundMatches,\n          route\n        } = handleNavigational404(location.pathname);\n        return {\n          matches: notFoundMatches,\n          loaderData: {},\n          errors: {\n            [route.id]: error\n          }\n        };\n      } else {\n        matches = discoverResult.matches;\n      }\n    }\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, future.v7_partialHydration && initialHydration === true, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult);\n    // Cancel pending deferreds for no-longer-matched routes or routes we're\n    // about to reload.  Note that if this is an action reload we would have\n    // already cancelled all pending deferreds so this would be a no-op\n    cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId));\n    pendingNavigationLoadId = ++incrementingLoadId;\n    // Short circuit if we have no loaders to run\n    if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n      let updatedFetchers = markFetchRedirectsDone();\n      completeNavigation(location, _extends({\n        matches,\n        loaderData: {},\n        // Commit pending error if we're short circuiting\n        errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n          [pendingActionResult[0]]: pendingActionResult[1].error\n        } : null\n      }, getActionDataForCommit(pendingActionResult), updatedFetchers ? {\n        fetchers: new Map(state.fetchers)\n      } : {}), {\n        flushSync\n      });\n      return {\n        shortCircuited: true\n      };\n    }\n    if (shouldUpdateNavigationState) {\n      let updates = {};\n      if (!isFogOfWar) {\n        // Only update navigation/actionNData if we didn't already do it above\n        updates.navigation = loadingNavigation;\n        let actionData = getUpdatedActionData(pendingActionResult);\n        if (actionData !== undefined) {\n          updates.actionData = actionData;\n        }\n      }\n      if (revalidatingFetchers.length > 0) {\n        updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers);\n      }\n      updateState(updates, {\n        flushSync\n      });\n    }\n    revalidatingFetchers.forEach(rf => {\n      abortFetcher(rf.key);\n      if (rf.controller) {\n        // Fetchers use an independent AbortController so that aborting a fetcher\n        // (via deleteFetcher) does not abort the triggering navigation that\n        // triggered the revalidation\n        fetchControllers.set(rf.key, rf.controller);\n      }\n    });\n    // Proxy navigation abort through to revalidation fetchers\n    let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(f => abortFetcher(f.key));\n    if (pendingNavigationController) {\n      pendingNavigationController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n    }\n    let {\n      loaderResults,\n      fetcherResults\n    } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, request);\n    if (request.signal.aborted) {\n      return {\n        shortCircuited: true\n      };\n    }\n    // Clean up _after_ loaders have completed.  Don't clean up if we short\n    // circuited because fetchControllers would have been aborted and\n    // reassigned to new controllers for the next navigation\n    if (pendingNavigationController) {\n      pendingNavigationController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n    }\n    revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key));\n    // If any loaders returned a redirect Response, start a new REPLACE navigation\n    let redirect = findRedirect(loaderResults);\n    if (redirect) {\n      await startRedirectNavigation(request, redirect.result, true, {\n        replace\n      });\n      return {\n        shortCircuited: true\n      };\n    }\n    redirect = findRedirect(fetcherResults);\n    if (redirect) {\n      // If this redirect came from a fetcher make sure we mark it in\n      // fetchRedirectIds so it doesn't get revalidated on the next set of\n      // loader executions\n      fetchRedirectIds.add(redirect.key);\n      await startRedirectNavigation(request, redirect.result, true, {\n        replace\n      });\n      return {\n        shortCircuited: true\n      };\n    }\n    // Process and commit output from loaders\n    let {\n      loaderData,\n      errors\n    } = processLoaderData(state, matches, loaderResults, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds);\n    // Wire up subscribers to update loaderData as promises settle\n    activeDeferreds.forEach((deferredData, routeId) => {\n      deferredData.subscribe(aborted => {\n        // Note: No need to updateState here since the TrackedPromise on\n        // loaderData is stable across resolve/reject\n        // Remove this instance if we were aborted or if promises have settled\n        if (aborted || deferredData.done) {\n          activeDeferreds.delete(routeId);\n        }\n      });\n    });\n    // Preserve SSR errors during partial hydration\n    if (future.v7_partialHydration && initialHydration && state.errors) {\n      errors = _extends({}, state.errors, errors);\n    }\n    let updatedFetchers = markFetchRedirectsDone();\n    let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n    let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0;\n    return _extends({\n      matches,\n      loaderData,\n      errors\n    }, shouldUpdateFetchers ? {\n      fetchers: new Map(state.fetchers)\n    } : {});\n  }\n  function getUpdatedActionData(pendingActionResult) {\n    if (pendingActionResult && !isErrorResult(pendingActionResult[1])) {\n      // This is cast to `any` currently because `RouteData`uses any and it\n      // would be a breaking change to use any.\n      // TODO: v7 - change `RouteData` to use `unknown` instead of `any`\n      return {\n        [pendingActionResult[0]]: pendingActionResult[1].data\n      };\n    } else if (state.actionData) {\n      if (Object.keys(state.actionData).length === 0) {\n        return null;\n      } else {\n        return state.actionData;\n      }\n    }\n  }\n  function getUpdatedRevalidatingFetchers(revalidatingFetchers) {\n    revalidatingFetchers.forEach(rf => {\n      let fetcher = state.fetchers.get(rf.key);\n      let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined);\n      state.fetchers.set(rf.key, revalidatingFetcher);\n    });\n    return new Map(state.fetchers);\n  }\n  // Trigger a fetcher load/submit for the given fetcher key\n  function fetch(key, routeId, href, opts) {\n    if (isServer) {\n      throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n    }\n    abortFetcher(key);\n    let flushSync = (opts && opts.flushSync) === true;\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, href, future.v7_relativeSplatPath, routeId, opts == null ? void 0 : opts.relative);\n    let matches = matchRoutes(routesToUse, normalizedPath, basename);\n    let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath);\n    if (fogOfWar.active && fogOfWar.matches) {\n      matches = fogOfWar.matches;\n    }\n    if (!matches) {\n      setFetcherError(key, routeId, getInternalRouterError(404, {\n        pathname: normalizedPath\n      }), {\n        flushSync\n      });\n      return;\n    }\n    let {\n      path,\n      submission,\n      error\n    } = normalizeNavigateOptions(future.v7_normalizeFormMethod, true, normalizedPath, opts);\n    if (error) {\n      setFetcherError(key, routeId, error, {\n        flushSync\n      });\n      return;\n    }\n    let match = getTargetMatch(matches, path);\n    let preventScrollReset = (opts && opts.preventScrollReset) === true;\n    if (submission && isMutationMethod(submission.formMethod)) {\n      handleFetcherAction(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission);\n      return;\n    }\n    // Store off the match so we can call it's shouldRevalidate on subsequent\n    // revalidations\n    fetchLoadMatches.set(key, {\n      routeId,\n      path\n    });\n    handleFetcherLoader(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission);\n  }\n  // Call the action for the matched fetcher.submit(), and then handle redirects,\n  // errors, and revalidation\n  async function handleFetcherAction(key, routeId, path, match, requestMatches, isFogOfWar, flushSync, preventScrollReset, submission) {\n    interruptActiveLoads();\n    fetchLoadMatches.delete(key);\n    function detectAndHandle405Error(m) {\n      if (!m.route.action && !m.route.lazy) {\n        let error = getInternalRouterError(405, {\n          method: submission.formMethod,\n          pathname: path,\n          routeId: routeId\n        });\n        setFetcherError(key, routeId, error, {\n          flushSync\n        });\n        return true;\n      }\n      return false;\n    }\n    if (!isFogOfWar && detectAndHandle405Error(match)) {\n      return;\n    }\n    // Put this fetcher into it's submitting state\n    let existingFetcher = state.fetchers.get(key);\n    updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), {\n      flushSync\n    });\n    let abortController = new AbortController();\n    let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n    if (isFogOfWar) {\n      let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);\n      if (discoverResult.type === \"aborted\") {\n        return;\n      } else if (discoverResult.type === \"error\") {\n        setFetcherError(key, routeId, discoverResult.error, {\n          flushSync\n        });\n        return;\n      } else if (!discoverResult.matches) {\n        setFetcherError(key, routeId, getInternalRouterError(404, {\n          pathname: path\n        }), {\n          flushSync\n        });\n        return;\n      } else {\n        requestMatches = discoverResult.matches;\n        match = getTargetMatch(requestMatches, path);\n        if (detectAndHandle405Error(match)) {\n          return;\n        }\n      }\n    }\n    // Call the action for the fetcher\n    fetchControllers.set(key, abortController);\n    let originatingLoadId = incrementingLoadId;\n    let actionResults = await callDataStrategy(\"action\", state, fetchRequest, [match], requestMatches, key);\n    let actionResult = actionResults[match.route.id];\n    if (fetchRequest.signal.aborted) {\n      // We can delete this so long as we weren't aborted by our own fetcher\n      // re-submit which would have put _new_ controller is in fetchControllers\n      if (fetchControllers.get(key) === abortController) {\n        fetchControllers.delete(key);\n      }\n      return;\n    }\n    // When using v7_fetcherPersist, we don't want errors bubbling up to the UI\n    // or redirects processed for unmounted fetchers so we just revert them to\n    // idle\n    if (future.v7_fetcherPersist && deletedFetchers.has(key)) {\n      if (isRedirectResult(actionResult) || isErrorResult(actionResult)) {\n        updateFetcherState(key, getDoneFetcher(undefined));\n        return;\n      }\n      // Let SuccessResult's fall through for revalidation\n    } else {\n      if (isRedirectResult(actionResult)) {\n        fetchControllers.delete(key);\n        if (pendingNavigationLoadId > originatingLoadId) {\n          // A new navigation was kicked off after our action started, so that\n          // should take precedence over this redirect navigation.  We already\n          // set isRevalidationRequired so all loaders for the new route should\n          // fire unless opted out via shouldRevalidate\n          updateFetcherState(key, getDoneFetcher(undefined));\n          return;\n        } else {\n          fetchRedirectIds.add(key);\n          updateFetcherState(key, getLoadingFetcher(submission));\n          return startRedirectNavigation(fetchRequest, actionResult, false, {\n            fetcherSubmission: submission,\n            preventScrollReset\n          });\n        }\n      }\n      // Process any non-redirect errors thrown\n      if (isErrorResult(actionResult)) {\n        setFetcherError(key, routeId, actionResult.error);\n        return;\n      }\n    }\n    if (isDeferredResult(actionResult)) {\n      throw getInternalRouterError(400, {\n        type: \"defer-action\"\n      });\n    }\n    // Start the data load for current matches, or the next location if we're\n    // in the middle of a navigation\n    let nextLocation = state.navigation.location || state.location;\n    let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    let matches = state.navigation.state !== \"idle\" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches;\n    invariant(matches, \"Didn't find any matches after fetcher action\");\n    let loadId = ++incrementingLoadId;\n    fetchReloadIds.set(key, loadId);\n    let loadFetcher = getLoadingFetcher(submission, actionResult.data);\n    state.fetchers.set(key, loadFetcher);\n    let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, false, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, [match.route.id, actionResult]);\n    // Put all revalidating fetchers into the loading state, except for the\n    // current fetcher which we want to keep in it's current loading state which\n    // contains it's action submission info + action data\n    revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n      let staleKey = rf.key;\n      let existingFetcher = state.fetchers.get(staleKey);\n      let revalidatingFetcher = getLoadingFetcher(undefined, existingFetcher ? existingFetcher.data : undefined);\n      state.fetchers.set(staleKey, revalidatingFetcher);\n      abortFetcher(staleKey);\n      if (rf.controller) {\n        fetchControllers.set(staleKey, rf.controller);\n      }\n    });\n    updateState({\n      fetchers: new Map(state.fetchers)\n    });\n    let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(rf => abortFetcher(rf.key));\n    abortController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n    let {\n      loaderResults,\n      fetcherResults\n    } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n    if (abortController.signal.aborted) {\n      return;\n    }\n    abortController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n    fetchReloadIds.delete(key);\n    fetchControllers.delete(key);\n    revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n    let redirect = findRedirect(loaderResults);\n    if (redirect) {\n      return startRedirectNavigation(revalidationRequest, redirect.result, false, {\n        preventScrollReset\n      });\n    }\n    redirect = findRedirect(fetcherResults);\n    if (redirect) {\n      // If this redirect came from a fetcher make sure we mark it in\n      // fetchRedirectIds so it doesn't get revalidated on the next set of\n      // loader executions\n      fetchRedirectIds.add(redirect.key);\n      return startRedirectNavigation(revalidationRequest, redirect.result, false, {\n        preventScrollReset\n      });\n    }\n    // Process and commit output from loaders\n    let {\n      loaderData,\n      errors\n    } = processLoaderData(state, matches, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n    // Since we let revalidations complete even if the submitting fetcher was\n    // deleted, only put it back to idle if it hasn't been deleted\n    if (state.fetchers.has(key)) {\n      let doneFetcher = getDoneFetcher(actionResult.data);\n      state.fetchers.set(key, doneFetcher);\n    }\n    abortStaleFetchLoads(loadId);\n    // If we are currently in a navigation loading state and this fetcher is\n    // more recent than the navigation, we want the newer data so abort the\n    // navigation and complete it with the fetcher data\n    if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n      invariant(pendingAction, \"Expected pending action\");\n      pendingNavigationController && pendingNavigationController.abort();\n      completeNavigation(state.navigation.location, {\n        matches,\n        loaderData,\n        errors,\n        fetchers: new Map(state.fetchers)\n      });\n    } else {\n      // otherwise just update with the fetcher data, preserving any existing\n      // loaderData for loaders that did not need to reload.  We have to\n      // manually merge here since we aren't going through completeNavigation\n      updateState({\n        errors,\n        loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors),\n        fetchers: new Map(state.fetchers)\n      });\n      isRevalidationRequired = false;\n    }\n  }\n  // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n  async function handleFetcherLoader(key, routeId, path, match, matches, isFogOfWar, flushSync, preventScrollReset, submission) {\n    let existingFetcher = state.fetchers.get(key);\n    updateFetcherState(key, getLoadingFetcher(submission, existingFetcher ? existingFetcher.data : undefined), {\n      flushSync\n    });\n    let abortController = new AbortController();\n    let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n    if (isFogOfWar) {\n      let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);\n      if (discoverResult.type === \"aborted\") {\n        return;\n      } else if (discoverResult.type === \"error\") {\n        setFetcherError(key, routeId, discoverResult.error, {\n          flushSync\n        });\n        return;\n      } else if (!discoverResult.matches) {\n        setFetcherError(key, routeId, getInternalRouterError(404, {\n          pathname: path\n        }), {\n          flushSync\n        });\n        return;\n      } else {\n        matches = discoverResult.matches;\n        match = getTargetMatch(matches, path);\n      }\n    }\n    // Call the loader for this fetcher route match\n    fetchControllers.set(key, abortController);\n    let originatingLoadId = incrementingLoadId;\n    let results = await callDataStrategy(\"loader\", state, fetchRequest, [match], matches, key);\n    let result = results[match.route.id];\n    // Deferred isn't supported for fetcher loads, await everything and treat it\n    // as a normal load.  resolveDeferredData will return undefined if this\n    // fetcher gets aborted, so we just leave result untouched and short circuit\n    // below if that happens\n    if (isDeferredResult(result)) {\n      result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n    }\n    // We can delete this so long as we weren't aborted by our our own fetcher\n    // re-load which would have put _new_ controller is in fetchControllers\n    if (fetchControllers.get(key) === abortController) {\n      fetchControllers.delete(key);\n    }\n    if (fetchRequest.signal.aborted) {\n      return;\n    }\n    // We don't want errors bubbling up or redirects followed for unmounted\n    // fetchers, so short circuit here if it was removed from the UI\n    if (deletedFetchers.has(key)) {\n      updateFetcherState(key, getDoneFetcher(undefined));\n      return;\n    }\n    // If the loader threw a redirect Response, start a new REPLACE navigation\n    if (isRedirectResult(result)) {\n      if (pendingNavigationLoadId > originatingLoadId) {\n        // A new navigation was kicked off after our loader started, so that\n        // should take precedence over this redirect navigation\n        updateFetcherState(key, getDoneFetcher(undefined));\n        return;\n      } else {\n        fetchRedirectIds.add(key);\n        await startRedirectNavigation(fetchRequest, result, false, {\n          preventScrollReset\n        });\n        return;\n      }\n    }\n    // Process any non-redirect errors thrown\n    if (isErrorResult(result)) {\n      setFetcherError(key, routeId, result.error);\n      return;\n    }\n    invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\");\n    // Put the fetcher back into an idle state\n    updateFetcherState(key, getDoneFetcher(result.data));\n  }\n  /**\n   * Utility function to handle redirects returned from an action or loader.\n   * Normally, a redirect \"replaces\" the navigation that triggered it.  So, for\n   * example:\n   *\n   *  - user is on /a\n   *  - user clicks a link to /b\n   *  - loader for /b redirects to /c\n   *\n   * In a non-JS app the browser would track the in-flight navigation to /b and\n   * then replace it with /c when it encountered the redirect response.  In\n   * the end it would only ever update the URL bar with /c.\n   *\n   * In client-side routing using pushState/replaceState, we aim to emulate\n   * this behavior and we also do not update history until the end of the\n   * navigation (including processed redirects).  This means that we never\n   * actually touch history until we've processed redirects, so we just use\n   * the history action from the original navigation (PUSH or REPLACE).\n   */\n  async function startRedirectNavigation(request, redirect, isNavigation, _temp2) {\n    let {\n      submission,\n      fetcherSubmission,\n      preventScrollReset,\n      replace\n    } = _temp2 === void 0 ? {} : _temp2;\n    if (redirect.response.headers.has(\"X-Remix-Revalidate\")) {\n      isRevalidationRequired = true;\n    }\n    let location = redirect.response.headers.get(\"Location\");\n    invariant(location, \"Expected a Location header on the redirect Response\");\n    location = normalizeRedirectLocation(location, new URL(request.url), basename, init.history);\n    let redirectLocation = createLocation(state.location, location, {\n      _isRedirect: true\n    });\n    if (isBrowser) {\n      let isDocumentReload = false;\n      if (redirect.response.headers.has(\"X-Remix-Reload-Document\")) {\n        // Hard reload if the response contained X-Remix-Reload-Document\n        isDocumentReload = true;\n      } else if (ABSOLUTE_URL_REGEX.test(location)) {\n        const url = init.history.createURL(location);\n        isDocumentReload =\n        // Hard reload if it's an absolute URL to a new origin\n        url.origin !== routerWindow.location.origin ||\n        // Hard reload if it's an absolute URL that does not match our basename\n        stripBasename(url.pathname, basename) == null;\n      }\n      if (isDocumentReload) {\n        if (replace) {\n          routerWindow.location.replace(location);\n        } else {\n          routerWindow.location.assign(location);\n        }\n        return;\n      }\n    }\n    // There's no need to abort on redirects, since we don't detect the\n    // redirect until the action/loaders have settled\n    pendingNavigationController = null;\n    let redirectHistoryAction = replace === true || redirect.response.headers.has(\"X-Remix-Replace\") ? Action.Replace : Action.Push;\n    // Use the incoming submission if provided, fallback on the active one in\n    // state.navigation\n    let {\n      formMethod,\n      formAction,\n      formEncType\n    } = state.navigation;\n    if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) {\n      submission = getSubmissionFromNavigation(state.navigation);\n    }\n    // If this was a 307/308 submission we want to preserve the HTTP method and\n    // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n    // redirected location\n    let activeSubmission = submission || fetcherSubmission;\n    if (redirectPreserveMethodStatusCodes.has(redirect.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) {\n      await startNavigation(redirectHistoryAction, redirectLocation, {\n        submission: _extends({}, activeSubmission, {\n          formAction: location\n        }),\n        // Preserve these flags across redirects\n        preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n        enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined\n      });\n    } else {\n      // If we have a navigation submission, we will preserve it through the\n      // redirect navigation\n      let overrideNavigation = getLoadingNavigation(redirectLocation, submission);\n      await startNavigation(redirectHistoryAction, redirectLocation, {\n        overrideNavigation,\n        // Send fetcher submissions through for shouldRevalidate\n        fetcherSubmission,\n        // Preserve these flags across redirects\n        preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n        enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined\n      });\n    }\n  }\n  // Utility wrapper for calling dataStrategy client-side without having to\n  // pass around the manifest, mapRouteProperties, etc.\n  async function callDataStrategy(type, state, request, matchesToLoad, matches, fetcherKey) {\n    let results;\n    let dataResults = {};\n    try {\n      results = await callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties);\n    } catch (e) {\n      // If the outer dataStrategy method throws, just return the error for all\n      // matches - and it'll naturally bubble to the root\n      matchesToLoad.forEach(m => {\n        dataResults[m.route.id] = {\n          type: ResultType.error,\n          error: e\n        };\n      });\n      return dataResults;\n    }\n    for (let [routeId, result] of Object.entries(results)) {\n      if (isRedirectDataStrategyResultResult(result)) {\n        let response = result.result;\n        dataResults[routeId] = {\n          type: ResultType.redirect,\n          response: normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, future.v7_relativeSplatPath)\n        };\n      } else {\n        dataResults[routeId] = await convertDataStrategyResultToDataResult(result);\n      }\n    }\n    return dataResults;\n  }\n  async function callLoadersAndMaybeResolveData(state, matches, matchesToLoad, fetchersToLoad, request) {\n    let currentMatches = state.matches;\n    // Kick off loaders and fetchers in parallel\n    let loaderResultsPromise = callDataStrategy(\"loader\", state, request, matchesToLoad, matches, null);\n    let fetcherResultsPromise = Promise.all(fetchersToLoad.map(async f => {\n      if (f.matches && f.match && f.controller) {\n        let results = await callDataStrategy(\"loader\", state, createClientSideRequest(init.history, f.path, f.controller.signal), [f.match], f.matches, f.key);\n        let result = results[f.match.route.id];\n        // Fetcher results are keyed by fetcher key from here on out, not routeId\n        return {\n          [f.key]: result\n        };\n      } else {\n        return Promise.resolve({\n          [f.key]: {\n            type: ResultType.error,\n            error: getInternalRouterError(404, {\n              pathname: f.path\n            })\n          }\n        });\n      }\n    }));\n    let loaderResults = await loaderResultsPromise;\n    let fetcherResults = (await fetcherResultsPromise).reduce((acc, r) => Object.assign(acc, r), {});\n    await Promise.all([resolveNavigationDeferredResults(matches, loaderResults, request.signal, currentMatches, state.loaderData), resolveFetcherDeferredResults(matches, fetcherResults, fetchersToLoad)]);\n    return {\n      loaderResults,\n      fetcherResults\n    };\n  }\n  function interruptActiveLoads() {\n    // Every interruption triggers a revalidation\n    isRevalidationRequired = true;\n    // Cancel pending route-level deferreds and mark cancelled routes for\n    // revalidation\n    cancelledDeferredRoutes.push(...cancelActiveDeferreds());\n    // Abort in-flight fetcher loads\n    fetchLoadMatches.forEach((_, key) => {\n      if (fetchControllers.has(key)) {\n        cancelledFetcherLoads.add(key);\n      }\n      abortFetcher(key);\n    });\n  }\n  function updateFetcherState(key, fetcher, opts) {\n    if (opts === void 0) {\n      opts = {};\n    }\n    state.fetchers.set(key, fetcher);\n    updateState({\n      fetchers: new Map(state.fetchers)\n    }, {\n      flushSync: (opts && opts.flushSync) === true\n    });\n  }\n  function setFetcherError(key, routeId, error, opts) {\n    if (opts === void 0) {\n      opts = {};\n    }\n    let boundaryMatch = findNearestBoundary(state.matches, routeId);\n    deleteFetcher(key);\n    updateState({\n      errors: {\n        [boundaryMatch.route.id]: error\n      },\n      fetchers: new Map(state.fetchers)\n    }, {\n      flushSync: (opts && opts.flushSync) === true\n    });\n  }\n  function getFetcher(key) {\n    activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1);\n    // If this fetcher was previously marked for deletion, unmark it since we\n    // have a new instance\n    if (deletedFetchers.has(key)) {\n      deletedFetchers.delete(key);\n    }\n    return state.fetchers.get(key) || IDLE_FETCHER;\n  }\n  function deleteFetcher(key) {\n    let fetcher = state.fetchers.get(key);\n    // Don't abort the controller if this is a deletion of a fetcher.submit()\n    // in it's loading phase since - we don't want to abort the corresponding\n    // revalidation and want them to complete and land\n    if (fetchControllers.has(key) && !(fetcher && fetcher.state === \"loading\" && fetchReloadIds.has(key))) {\n      abortFetcher(key);\n    }\n    fetchLoadMatches.delete(key);\n    fetchReloadIds.delete(key);\n    fetchRedirectIds.delete(key);\n    // If we opted into the flag we can clear this now since we're calling\n    // deleteFetcher() at the end of updateState() and we've already handed the\n    // deleted fetcher keys off to the data layer.\n    // If not, we're eagerly calling deleteFetcher() and we need to keep this\n    // Set populated until the next updateState call, and we'll clear\n    // `deletedFetchers` then\n    if (future.v7_fetcherPersist) {\n      deletedFetchers.delete(key);\n    }\n    cancelledFetcherLoads.delete(key);\n    state.fetchers.delete(key);\n  }\n  function deleteFetcherAndUpdateState(key) {\n    let count = (activeFetchers.get(key) || 0) - 1;\n    if (count <= 0) {\n      activeFetchers.delete(key);\n      deletedFetchers.add(key);\n      if (!future.v7_fetcherPersist) {\n        deleteFetcher(key);\n      }\n    } else {\n      activeFetchers.set(key, count);\n    }\n    updateState({\n      fetchers: new Map(state.fetchers)\n    });\n  }\n  function abortFetcher(key) {\n    let controller = fetchControllers.get(key);\n    if (controller) {\n      controller.abort();\n      fetchControllers.delete(key);\n    }\n  }\n  function markFetchersDone(keys) {\n    for (let key of keys) {\n      let fetcher = getFetcher(key);\n      let doneFetcher = getDoneFetcher(fetcher.data);\n      state.fetchers.set(key, doneFetcher);\n    }\n  }\n  function markFetchRedirectsDone() {\n    let doneKeys = [];\n    let updatedFetchers = false;\n    for (let key of fetchRedirectIds) {\n      let fetcher = state.fetchers.get(key);\n      invariant(fetcher, \"Expected fetcher: \" + key);\n      if (fetcher.state === \"loading\") {\n        fetchRedirectIds.delete(key);\n        doneKeys.push(key);\n        updatedFetchers = true;\n      }\n    }\n    markFetchersDone(doneKeys);\n    return updatedFetchers;\n  }\n  function abortStaleFetchLoads(landedId) {\n    let yeetedKeys = [];\n    for (let [key, id] of fetchReloadIds) {\n      if (id < landedId) {\n        let fetcher = state.fetchers.get(key);\n        invariant(fetcher, \"Expected fetcher: \" + key);\n        if (fetcher.state === \"loading\") {\n          abortFetcher(key);\n          fetchReloadIds.delete(key);\n          yeetedKeys.push(key);\n        }\n      }\n    }\n    markFetchersDone(yeetedKeys);\n    return yeetedKeys.length > 0;\n  }\n  function getBlocker(key, fn) {\n    let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n    if (blockerFunctions.get(key) !== fn) {\n      blockerFunctions.set(key, fn);\n    }\n    return blocker;\n  }\n  function deleteBlocker(key) {\n    state.blockers.delete(key);\n    blockerFunctions.delete(key);\n  }\n  // Utility function to update blockers, ensuring valid state transitions\n  function updateBlocker(key, newBlocker) {\n    let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n    // Poor mans state machine :)\n    // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n    invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n    let blockers = new Map(state.blockers);\n    blockers.set(key, newBlocker);\n    updateState({\n      blockers\n    });\n  }\n  function shouldBlockNavigation(_ref2) {\n    let {\n      currentLocation,\n      nextLocation,\n      historyAction\n    } = _ref2;\n    if (blockerFunctions.size === 0) {\n      return;\n    }\n    // We ony support a single active blocker at the moment since we don't have\n    // any compelling use cases for multi-blocker yet\n    if (blockerFunctions.size > 1) {\n      warning(false, \"A router only supports one blocker at a time\");\n    }\n    let entries = Array.from(blockerFunctions.entries());\n    let [blockerKey, blockerFunction] = entries[entries.length - 1];\n    let blocker = state.blockers.get(blockerKey);\n    if (blocker && blocker.state === \"proceeding\") {\n      // If the blocker is currently proceeding, we don't need to re-check\n      // it and can let this navigation continue\n      return;\n    }\n    // At this point, we know we're unblocked/blocked so we need to check the\n    // user-provided blocker function\n    if (blockerFunction({\n      currentLocation,\n      nextLocation,\n      historyAction\n    })) {\n      return blockerKey;\n    }\n  }\n  function handleNavigational404(pathname) {\n    let error = getInternalRouterError(404, {\n      pathname\n    });\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    let {\n      matches,\n      route\n    } = getShortCircuitMatches(routesToUse);\n    // Cancel all pending deferred on 404s since we don't keep any routes\n    cancelActiveDeferreds();\n    return {\n      notFoundMatches: matches,\n      route,\n      error\n    };\n  }\n  function cancelActiveDeferreds(predicate) {\n    let cancelledRouteIds = [];\n    activeDeferreds.forEach((dfd, routeId) => {\n      if (!predicate || predicate(routeId)) {\n        // Cancel the deferred - but do not remove from activeDeferreds here -\n        // we rely on the subscribers to do that so our tests can assert proper\n        // cleanup via _internalActiveDeferreds\n        dfd.cancel();\n        cancelledRouteIds.push(routeId);\n        activeDeferreds.delete(routeId);\n      }\n    });\n    return cancelledRouteIds;\n  }\n  // Opt in to capturing and reporting scroll positions during navigations,\n  // used by the <ScrollRestoration> component\n  function enableScrollRestoration(positions, getPosition, getKey) {\n    savedScrollPositions = positions;\n    getScrollPosition = getPosition;\n    getScrollRestorationKey = getKey || null;\n    // Perform initial hydration scroll restoration, since we miss the boat on\n    // the initial updateState() because we've not yet rendered <ScrollRestoration/>\n    // and therefore have no savedScrollPositions available\n    if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n      initialScrollRestored = true;\n      let y = getSavedScrollPosition(state.location, state.matches);\n      if (y != null) {\n        updateState({\n          restoreScrollPosition: y\n        });\n      }\n    }\n    return () => {\n      savedScrollPositions = null;\n      getScrollPosition = null;\n      getScrollRestorationKey = null;\n    };\n  }\n  function getScrollKey(location, matches) {\n    if (getScrollRestorationKey) {\n      let key = getScrollRestorationKey(location, matches.map(m => convertRouteMatchToUiMatch(m, state.loaderData)));\n      return key || location.key;\n    }\n    return location.key;\n  }\n  function saveScrollPosition(location, matches) {\n    if (savedScrollPositions && getScrollPosition) {\n      let key = getScrollKey(location, matches);\n      savedScrollPositions[key] = getScrollPosition();\n    }\n  }\n  function getSavedScrollPosition(location, matches) {\n    if (savedScrollPositions) {\n      let key = getScrollKey(location, matches);\n      let y = savedScrollPositions[key];\n      if (typeof y === \"number\") {\n        return y;\n      }\n    }\n    return null;\n  }\n  function checkFogOfWar(matches, routesToUse, pathname) {\n    if (patchRoutesOnNavigationImpl) {\n      if (!matches) {\n        let fogMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n        return {\n          active: true,\n          matches: fogMatches || []\n        };\n      } else {\n        if (Object.keys(matches[0].params).length > 0) {\n          // If we matched a dynamic param or a splat, it might only be because\n          // we haven't yet discovered other routes that would match with a\n          // higher score.  Call patchRoutesOnNavigation just to be sure\n          let partialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n          return {\n            active: true,\n            matches: partialMatches\n          };\n        }\n      }\n    }\n    return {\n      active: false,\n      matches: null\n    };\n  }\n  async function discoverRoutes(matches, pathname, signal, fetcherKey) {\n    if (!patchRoutesOnNavigationImpl) {\n      return {\n        type: \"success\",\n        matches\n      };\n    }\n    let partialMatches = matches;\n    while (true) {\n      let isNonHMR = inFlightDataRoutes == null;\n      let routesToUse = inFlightDataRoutes || dataRoutes;\n      let localManifest = manifest;\n      try {\n        await patchRoutesOnNavigationImpl({\n          signal,\n          path: pathname,\n          matches: partialMatches,\n          fetcherKey,\n          patch: (routeId, children) => {\n            if (signal.aborted) return;\n            patchRoutesImpl(routeId, children, routesToUse, localManifest, mapRouteProperties);\n          }\n        });\n      } catch (e) {\n        return {\n          type: \"error\",\n          error: e,\n          partialMatches\n        };\n      } finally {\n        // If we are not in the middle of an HMR revalidation and we changed the\n        // routes, provide a new identity so when we `updateState` at the end of\n        // this navigation/fetch `router.routes` will be a new identity and\n        // trigger a re-run of memoized `router.routes` dependencies.\n        // HMR will already update the identity and reflow when it lands\n        // `inFlightDataRoutes` in `completeNavigation`\n        if (isNonHMR && !signal.aborted) {\n          dataRoutes = [...dataRoutes];\n        }\n      }\n      if (signal.aborted) {\n        return {\n          type: \"aborted\"\n        };\n      }\n      let newMatches = matchRoutes(routesToUse, pathname, basename);\n      if (newMatches) {\n        return {\n          type: \"success\",\n          matches: newMatches\n        };\n      }\n      let newPartialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n      // Avoid loops if the second pass results in the same partial matches\n      if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every((m, i) => m.route.id === newPartialMatches[i].route.id)) {\n        return {\n          type: \"success\",\n          matches: null\n        };\n      }\n      partialMatches = newPartialMatches;\n    }\n  }\n  function _internalSetRoutes(newRoutes) {\n    manifest = {};\n    inFlightDataRoutes = convertRoutesToDataRoutes(newRoutes, mapRouteProperties, undefined, manifest);\n  }\n  function patchRoutes(routeId, children) {\n    let isNonHMR = inFlightDataRoutes == null;\n    let routesToUse = inFlightDataRoutes || dataRoutes;\n    patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties);\n    // If we are not in the middle of an HMR revalidation and we changed the\n    // routes, provide a new identity and trigger a reflow via `updateState`\n    // to re-run memoized `router.routes` dependencies.\n    // HMR will already update the identity and reflow when it lands\n    // `inFlightDataRoutes` in `completeNavigation`\n    if (isNonHMR) {\n      dataRoutes = [...dataRoutes];\n      updateState({});\n    }\n  }\n  router = {\n    get basename() {\n      return basename;\n    },\n    get future() {\n      return future;\n    },\n    get state() {\n      return state;\n    },\n    get routes() {\n      return dataRoutes;\n    },\n    get window() {\n      return routerWindow;\n    },\n    initialize,\n    subscribe,\n    enableScrollRestoration,\n    navigate,\n    fetch,\n    revalidate,\n    // Passthrough to history-aware createHref used by useHref so we get proper\n    // hash-aware URLs in DOM paths\n    createHref: to => init.history.createHref(to),\n    encodeLocation: to => init.history.encodeLocation(to),\n    getFetcher,\n    deleteFetcher: deleteFetcherAndUpdateState,\n    dispose,\n    getBlocker,\n    deleteBlocker,\n    patchRoutes,\n    _internalFetchControllers: fetchControllers,\n    _internalActiveDeferreds: activeDeferreds,\n    // TODO: Remove setRoutes, it's temporary to avoid dealing with\n    // updating the tree while validating the update algorithm.\n    _internalSetRoutes\n  };\n  return router;\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n  invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n  let manifest = {};\n  let basename = (opts ? opts.basename : null) || \"/\";\n  let mapRouteProperties;\n  if (opts != null && opts.mapRouteProperties) {\n    mapRouteProperties = opts.mapRouteProperties;\n  } else if (opts != null && opts.detectErrorBoundary) {\n    // If they are still using the deprecated version, wrap it with the new API\n    let detectErrorBoundary = opts.detectErrorBoundary;\n    mapRouteProperties = route => ({\n      hasErrorBoundary: detectErrorBoundary(route)\n    });\n  } else {\n    mapRouteProperties = defaultMapRouteProperties;\n  }\n  // Config driven behavior flags\n  let future = _extends({\n    v7_relativeSplatPath: false,\n    v7_throwAbortReason: false\n  }, opts ? opts.future : null);\n  let dataRoutes = convertRoutesToDataRoutes(routes, mapRouteProperties, undefined, manifest);\n  /**\n   * The query() method is intended for document requests, in which we want to\n   * call an optional action and potentially multiple loaders for all nested\n   * routes.  It returns a StaticHandlerContext object, which is very similar\n   * to the router state (location, loaderData, actionData, errors, etc.) and\n   * also adds SSR-specific information such as the statusCode and headers\n   * from action/loaders Responses.\n   *\n   * It _should_ never throw and should report all errors through the\n   * returned context.errors object, properly associating errors to their error\n   * boundary.  Additionally, it tracks _deepestRenderedBoundaryId which can be\n   * used to emulate React error boundaries during SSr by performing a second\n   * pass only down to the boundaryId.\n   *\n   * The one exception where we do not return a StaticHandlerContext is when a\n   * redirect response is returned or thrown from any action/loader.  We\n   * propagate that out and return the raw Response so the HTTP server can\n   * return it directly.\n   *\n   * - `opts.requestContext` is an optional server context that will be passed\n   *   to actions/loaders in the `context` parameter\n   * - `opts.skipLoaderErrorBubbling` is an optional parameter that will prevent\n   *   the bubbling of errors which allows single-fetch-type implementations\n   *   where the client will handle the bubbling and we may need to return data\n   *   for the handling route\n   */\n  async function query(request, _temp3) {\n    let {\n      requestContext,\n      skipLoaderErrorBubbling,\n      dataStrategy\n    } = _temp3 === void 0 ? {} : _temp3;\n    let url = new URL(request.url);\n    let method = request.method;\n    let location = createLocation(\"\", createPath(url), null, \"default\");\n    let matches = matchRoutes(dataRoutes, location, basename);\n    // SSR supports HEAD requests while SPA doesn't\n    if (!isValidMethod(method) && method !== \"HEAD\") {\n      let error = getInternalRouterError(405, {\n        method\n      });\n      let {\n        matches: methodNotAllowedMatches,\n        route\n      } = getShortCircuitMatches(dataRoutes);\n      return {\n        basename,\n        location,\n        matches: methodNotAllowedMatches,\n        loaderData: {},\n        actionData: null,\n        errors: {\n          [route.id]: error\n        },\n        statusCode: error.status,\n        loaderHeaders: {},\n        actionHeaders: {},\n        activeDeferreds: null\n      };\n    } else if (!matches) {\n      let error = getInternalRouterError(404, {\n        pathname: location.pathname\n      });\n      let {\n        matches: notFoundMatches,\n        route\n      } = getShortCircuitMatches(dataRoutes);\n      return {\n        basename,\n        location,\n        matches: notFoundMatches,\n        loaderData: {},\n        actionData: null,\n        errors: {\n          [route.id]: error\n        },\n        statusCode: error.status,\n        loaderHeaders: {},\n        actionHeaders: {},\n        activeDeferreds: null\n      };\n    }\n    let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, skipLoaderErrorBubbling === true, null);\n    if (isResponse(result)) {\n      return result;\n    }\n    // When returning StaticHandlerContext, we patch back in the location here\n    // since we need it for React Context.  But this helps keep our submit and\n    // loadRouteData operating on a Request instead of a Location\n    return _extends({\n      location,\n      basename\n    }, result);\n  }\n  /**\n   * The queryRoute() method is intended for targeted route requests, either\n   * for fetch ?_data requests or resource route requests.  In this case, we\n   * are only ever calling a single action or loader, and we are returning the\n   * returned value directly.  In most cases, this will be a Response returned\n   * from the action/loader, but it may be a primitive or other value as well -\n   * and in such cases the calling context should handle that accordingly.\n   *\n   * We do respect the throw/return differentiation, so if an action/loader\n   * throws, then this method will throw the value.  This is important so we\n   * can do proper boundary identification in Remix where a thrown Response\n   * must go to the Catch Boundary but a returned Response is happy-path.\n   *\n   * One thing to note is that any Router-initiated Errors that make sense\n   * to associate with a status code will be thrown as an ErrorResponse\n   * instance which include the raw Error, such that the calling context can\n   * serialize the error as they see fit while including the proper response\n   * code.  Examples here are 404 and 405 errors that occur prior to reaching\n   * any user-defined loaders.\n   *\n   * - `opts.routeId` allows you to specify the specific route handler to call.\n   *   If not provided the handler will determine the proper route by matching\n   *   against `request.url`\n   * - `opts.requestContext` is an optional server context that will be passed\n   *    to actions/loaders in the `context` parameter\n   */\n  async function queryRoute(request, _temp4) {\n    let {\n      routeId,\n      requestContext,\n      dataStrategy\n    } = _temp4 === void 0 ? {} : _temp4;\n    let url = new URL(request.url);\n    let method = request.method;\n    let location = createLocation(\"\", createPath(url), null, \"default\");\n    let matches = matchRoutes(dataRoutes, location, basename);\n    // SSR supports HEAD requests while SPA doesn't\n    if (!isValidMethod(method) && method !== \"HEAD\" && method !== \"OPTIONS\") {\n      throw getInternalRouterError(405, {\n        method\n      });\n    } else if (!matches) {\n      throw getInternalRouterError(404, {\n        pathname: location.pathname\n      });\n    }\n    let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n    if (routeId && !match) {\n      throw getInternalRouterError(403, {\n        pathname: location.pathname,\n        routeId\n      });\n    } else if (!match) {\n      // This should never hit I don't think?\n      throw getInternalRouterError(404, {\n        pathname: location.pathname\n      });\n    }\n    let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, false, match);\n    if (isResponse(result)) {\n      return result;\n    }\n    let error = result.errors ? Object.values(result.errors)[0] : undefined;\n    if (error !== undefined) {\n      // If we got back result.errors, that means the loader/action threw\n      // _something_ that wasn't a Response, but it's not guaranteed/required\n      // to be an `instanceof Error` either, so we have to use throw here to\n      // preserve the \"error\" state outside of queryImpl.\n      throw error;\n    }\n    // Pick off the right state value to return\n    if (result.actionData) {\n      return Object.values(result.actionData)[0];\n    }\n    if (result.loaderData) {\n      var _result$activeDeferre;\n      let data = Object.values(result.loaderData)[0];\n      if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n        data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n      }\n      return data;\n    }\n    return undefined;\n  }\n  async function queryImpl(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch) {\n    invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n    try {\n      if (isMutationMethod(request.method.toLowerCase())) {\n        let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch != null);\n        return result;\n      }\n      let result = await loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch);\n      return isResponse(result) ? result : _extends({}, result, {\n        actionData: null,\n        actionHeaders: {}\n      });\n    } catch (e) {\n      // If the user threw/returned a Response in callLoaderOrAction for a\n      // `queryRoute` call, we throw the `DataStrategyResult` to bail out early\n      // and then return or throw the raw Response here accordingly\n      if (isDataStrategyResult(e) && isResponse(e.result)) {\n        if (e.type === ResultType.error) {\n          throw e.result;\n        }\n        return e.result;\n      }\n      // Redirects are always returned since they don't propagate to catch\n      // boundaries\n      if (isRedirectResponse(e)) {\n        return e;\n      }\n      throw e;\n    }\n  }\n  async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest) {\n    let result;\n    if (!actionMatch.route.action && !actionMatch.route.lazy) {\n      let error = getInternalRouterError(405, {\n        method: request.method,\n        pathname: new URL(request.url).pathname,\n        routeId: actionMatch.route.id\n      });\n      if (isRouteRequest) {\n        throw error;\n      }\n      result = {\n        type: ResultType.error,\n        error\n      };\n    } else {\n      let results = await callDataStrategy(\"action\", request, [actionMatch], matches, isRouteRequest, requestContext, dataStrategy);\n      result = results[actionMatch.route.id];\n      if (request.signal.aborted) {\n        throwStaticHandlerAbortedError(request, isRouteRequest, future);\n      }\n    }\n    if (isRedirectResult(result)) {\n      // Uhhhh - this should never happen, we should always throw these from\n      // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n      // can get back on the \"throw all redirect responses\" train here should\n      // this ever happen :/\n      throw new Response(null, {\n        status: result.response.status,\n        headers: {\n          Location: result.response.headers.get(\"Location\")\n        }\n      });\n    }\n    if (isDeferredResult(result)) {\n      let error = getInternalRouterError(400, {\n        type: \"defer-action\"\n      });\n      if (isRouteRequest) {\n        throw error;\n      }\n      result = {\n        type: ResultType.error,\n        error\n      };\n    }\n    if (isRouteRequest) {\n      // Note: This should only be non-Response values if we get here, since\n      // isRouteRequest should throw any Response received in callLoaderOrAction\n      if (isErrorResult(result)) {\n        throw result.error;\n      }\n      return {\n        matches: [actionMatch],\n        loaderData: {},\n        actionData: {\n          [actionMatch.route.id]: result.data\n        },\n        errors: null,\n        // Note: statusCode + headers are unused here since queryRoute will\n        // return the raw Response or value\n        statusCode: 200,\n        loaderHeaders: {},\n        actionHeaders: {},\n        activeDeferreds: null\n      };\n    }\n    // Create a GET request for the loaders\n    let loaderRequest = new Request(request.url, {\n      headers: request.headers,\n      redirect: request.redirect,\n      signal: request.signal\n    });\n    if (isErrorResult(result)) {\n      // Store off the pending error - we use it to determine which loaders\n      // to call and will commit it when we complete the navigation\n      let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);\n      let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null, [boundaryMatch.route.id, result]);\n      // action status codes take precedence over loader status codes\n      return _extends({}, context, {\n        statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500,\n        actionData: null,\n        actionHeaders: _extends({}, result.headers ? {\n          [actionMatch.route.id]: result.headers\n        } : {})\n      });\n    }\n    let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null);\n    return _extends({}, context, {\n      actionData: {\n        [actionMatch.route.id]: result.data\n      }\n    }, result.statusCode ? {\n      statusCode: result.statusCode\n    } : {}, {\n      actionHeaders: result.headers ? {\n        [actionMatch.route.id]: result.headers\n      } : {}\n    });\n  }\n  async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, pendingActionResult) {\n    let isRouteRequest = routeMatch != null;\n    // Short circuit if we have no loaders to run (queryRoute())\n    if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader) && !(routeMatch != null && routeMatch.route.lazy)) {\n      throw getInternalRouterError(400, {\n        method: request.method,\n        pathname: new URL(request.url).pathname,\n        routeId: routeMatch == null ? void 0 : routeMatch.route.id\n      });\n    }\n    let requestMatches = routeMatch ? [routeMatch] : pendingActionResult && isErrorResult(pendingActionResult[1]) ? getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]) : matches;\n    let matchesToLoad = requestMatches.filter(m => m.route.loader || m.route.lazy);\n    // Short circuit if we have no loaders to run (query())\n    if (matchesToLoad.length === 0) {\n      return {\n        matches,\n        // Add a null for all matched routes for proper revalidation on the client\n        loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n          [m.route.id]: null\n        }), {}),\n        errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n          [pendingActionResult[0]]: pendingActionResult[1].error\n        } : null,\n        statusCode: 200,\n        loaderHeaders: {},\n        activeDeferreds: null\n      };\n    }\n    let results = await callDataStrategy(\"loader\", request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy);\n    if (request.signal.aborted) {\n      throwStaticHandlerAbortedError(request, isRouteRequest, future);\n    }\n    // Process and commit output from loaders\n    let activeDeferreds = new Map();\n    let context = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling);\n    // Add a null for any non-loader matches for proper revalidation on the client\n    let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n    matches.forEach(match => {\n      if (!executedLoaders.has(match.route.id)) {\n        context.loaderData[match.route.id] = null;\n      }\n    });\n    return _extends({}, context, {\n      matches,\n      activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n    });\n  }\n  // Utility wrapper for calling dataStrategy server-side without having to\n  // pass around the manifest, mapRouteProperties, etc.\n  async function callDataStrategy(type, request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy) {\n    let results = await callDataStrategyImpl(dataStrategy || defaultDataStrategy, type, null, request, matchesToLoad, matches, null, manifest, mapRouteProperties, requestContext);\n    let dataResults = {};\n    await Promise.all(matches.map(async match => {\n      if (!(match.route.id in results)) {\n        return;\n      }\n      let result = results[match.route.id];\n      if (isRedirectDataStrategyResultResult(result)) {\n        let response = result.result;\n        // Throw redirects and let the server handle them with an HTTP redirect\n        throw normalizeRelativeRoutingRedirectResponse(response, request, match.route.id, matches, basename, future.v7_relativeSplatPath);\n      }\n      if (isResponse(result.result) && isRouteRequest) {\n        // For SSR single-route requests, we want to hand Responses back\n        // directly without unwrapping\n        throw result;\n      }\n      dataResults[match.route.id] = await convertDataStrategyResultToDataResult(result);\n    }));\n    return dataResults;\n  }\n  return {\n    dataRoutes,\n    query,\n    queryRoute\n  };\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\nfunction getStaticContextFromError(routes, context, error) {\n  let newContext = _extends({}, context, {\n    statusCode: isRouteErrorResponse(error) ? error.status : 500,\n    errors: {\n      [context._deepestRenderedBoundaryId || routes[0].id]: error\n    }\n  });\n  return newContext;\n}\nfunction throwStaticHandlerAbortedError(request, isRouteRequest, future) {\n  if (future.v7_throwAbortReason && request.signal.reason !== undefined) {\n    throw request.signal.reason;\n  }\n  let method = isRouteRequest ? \"queryRoute\" : \"query\";\n  throw new Error(method + \"() call aborted: \" + request.method + \" \" + request.url);\n}\nfunction isSubmissionNavigation(opts) {\n  return opts != null && (\"formData\" in opts && opts.formData != null || \"body\" in opts && opts.body !== undefined);\n}\nfunction normalizeTo(location, matches, basename, prependBasename, to, v7_relativeSplatPath, fromRouteId, relative) {\n  let contextualMatches;\n  let activeRouteMatch;\n  if (fromRouteId) {\n    // Grab matches up to the calling route so our route-relative logic is\n    // relative to the correct source route\n    contextualMatches = [];\n    for (let match of matches) {\n      contextualMatches.push(match);\n      if (match.route.id === fromRouteId) {\n        activeRouteMatch = match;\n        break;\n      }\n    }\n  } else {\n    contextualMatches = matches;\n    activeRouteMatch = matches[matches.length - 1];\n  }\n  // Resolve the relative path\n  let path = resolveTo(to ? to : \".\", getResolveToMatches(contextualMatches, v7_relativeSplatPath), stripBasename(location.pathname, basename) || location.pathname, relative === \"path\");\n  // When `to` is not specified we inherit search/hash from the current\n  // location, unlike when to=\".\" and we just inherit the path.\n  // See https://github.com/remix-run/remix/issues/927\n  if (to == null) {\n    path.search = location.search;\n    path.hash = location.hash;\n  }\n  // Account for `?index` params when routing to the current location\n  if ((to == null || to === \"\" || to === \".\") && activeRouteMatch) {\n    let nakedIndex = hasNakedIndexQuery(path.search);\n    if (activeRouteMatch.route.index && !nakedIndex) {\n      // Add one when we're targeting an index route\n      path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n    } else if (!activeRouteMatch.route.index && nakedIndex) {\n      // Remove existing ones when we're not\n      let params = new URLSearchParams(path.search);\n      let indexValues = params.getAll(\"index\");\n      params.delete(\"index\");\n      indexValues.filter(v => v).forEach(v => params.append(\"index\", v));\n      let qs = params.toString();\n      path.search = qs ? \"?\" + qs : \"\";\n    }\n  }\n  // If we're operating within a basename, prepend it to the pathname.  If\n  // this is a root navigation, then just use the raw basename which allows\n  // the basename to have full control over the presence of a trailing slash\n  // on root actions\n  if (prependBasename && basename !== \"/\") {\n    path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n  }\n  return createPath(path);\n}\n// Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\nfunction normalizeNavigateOptions(normalizeFormMethod, isFetcher, path, opts) {\n  // Return location verbatim on non-submission navigations\n  if (!opts || !isSubmissionNavigation(opts)) {\n    return {\n      path\n    };\n  }\n  if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n    return {\n      path,\n      error: getInternalRouterError(405, {\n        method: opts.formMethod\n      })\n    };\n  }\n  let getInvalidBodyError = () => ({\n    path,\n    error: getInternalRouterError(400, {\n      type: \"invalid-body\"\n    })\n  });\n  // Create a Submission on non-GET navigations\n  let rawFormMethod = opts.formMethod || \"get\";\n  let formMethod = normalizeFormMethod ? rawFormMethod.toUpperCase() : rawFormMethod.toLowerCase();\n  let formAction = stripHashFromPath(path);\n  if (opts.body !== undefined) {\n    if (opts.formEncType === \"text/plain\") {\n      // text only support POST/PUT/PATCH/DELETE submissions\n      if (!isMutationMethod(formMethod)) {\n        return getInvalidBodyError();\n      }\n      let text = typeof opts.body === \"string\" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ?\n      // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data\n      Array.from(opts.body.entries()).reduce((acc, _ref3) => {\n        let [name, value] = _ref3;\n        return \"\" + acc + name + \"=\" + value + \"\\n\";\n      }, \"\") : String(opts.body);\n      return {\n        path,\n        submission: {\n          formMethod,\n          formAction,\n          formEncType: opts.formEncType,\n          formData: undefined,\n          json: undefined,\n          text\n        }\n      };\n    } else if (opts.formEncType === \"application/json\") {\n      // json only supports POST/PUT/PATCH/DELETE submissions\n      if (!isMutationMethod(formMethod)) {\n        return getInvalidBodyError();\n      }\n      try {\n        let json = typeof opts.body === \"string\" ? JSON.parse(opts.body) : opts.body;\n        return {\n          path,\n          submission: {\n            formMethod,\n            formAction,\n            formEncType: opts.formEncType,\n            formData: undefined,\n            json,\n            text: undefined\n          }\n        };\n      } catch (e) {\n        return getInvalidBodyError();\n      }\n    }\n  }\n  invariant(typeof FormData === \"function\", \"FormData is not available in this environment\");\n  let searchParams;\n  let formData;\n  if (opts.formData) {\n    searchParams = convertFormDataToSearchParams(opts.formData);\n    formData = opts.formData;\n  } else if (opts.body instanceof FormData) {\n    searchParams = convertFormDataToSearchParams(opts.body);\n    formData = opts.body;\n  } else if (opts.body instanceof URLSearchParams) {\n    searchParams = opts.body;\n    formData = convertSearchParamsToFormData(searchParams);\n  } else if (opts.body == null) {\n    searchParams = new URLSearchParams();\n    formData = new FormData();\n  } else {\n    try {\n      searchParams = new URLSearchParams(opts.body);\n      formData = convertSearchParamsToFormData(searchParams);\n    } catch (e) {\n      return getInvalidBodyError();\n    }\n  }\n  let submission = {\n    formMethod,\n    formAction,\n    formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n    formData,\n    json: undefined,\n    text: undefined\n  };\n  if (isMutationMethod(submission.formMethod)) {\n    return {\n      path,\n      submission\n    };\n  }\n  // Flatten submission onto URLSearchParams for GET submissions\n  let parsedPath = parsePath(path);\n  // On GET navigation submissions we can drop the ?index param from the\n  // resulting location since all loaders will run.  But fetcher GET submissions\n  // only run a single loader so we need to preserve any incoming ?index params\n  if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n    searchParams.append(\"index\", \"\");\n  }\n  parsedPath.search = \"?\" + searchParams;\n  return {\n    path: createPath(parsedPath),\n    submission\n  };\n}\n// Filter out all routes at/below any caught error as they aren't going to\n// render so we don't need to load them\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId, includeBoundary) {\n  if (includeBoundary === void 0) {\n    includeBoundary = false;\n  }\n  let index = matches.findIndex(m => m.route.id === boundaryId);\n  if (index >= 0) {\n    return matches.slice(0, includeBoundary ? index + 1 : index);\n  }\n  return matches;\n}\nfunction getMatchesToLoad(history, state, matches, submission, location, initialHydration, skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) {\n  let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : undefined;\n  let currentUrl = history.createURL(state.location);\n  let nextUrl = history.createURL(location);\n  // Pick navigation matches that are net-new or qualify for revalidation\n  let boundaryMatches = matches;\n  if (initialHydration && state.errors) {\n    // On initial hydration, only consider matches up to _and including_ the boundary.\n    // This is inclusive to handle cases where a server loader ran successfully,\n    // a child server loader bubbled up to this route, but this route has\n    // `clientLoader.hydrate` so we want to still run the `clientLoader` so that\n    // we have a complete version of `loaderData`\n    boundaryMatches = getLoaderMatchesUntilBoundary(matches, Object.keys(state.errors)[0], true);\n  } else if (pendingActionResult && isErrorResult(pendingActionResult[1])) {\n    // If an action threw an error, we call loaders up to, but not including the\n    // boundary\n    boundaryMatches = getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]);\n  }\n  // Don't revalidate loaders by default after action 4xx/5xx responses\n  // when the flag is enabled.  They can still opt-into revalidation via\n  // `shouldRevalidate` via `actionResult`\n  let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : undefined;\n  let shouldSkipRevalidation = skipActionErrorRevalidation && actionStatus && actionStatus >= 400;\n  let navigationMatches = boundaryMatches.filter((match, index) => {\n    let {\n      route\n    } = match;\n    if (route.lazy) {\n      // We haven't loaded this route yet so we don't know if it's got a loader!\n      return true;\n    }\n    if (route.loader == null) {\n      return false;\n    }\n    if (initialHydration) {\n      return shouldLoadRouteOnHydration(route, state.loaderData, state.errors);\n    }\n    // Always call the loader on new route instances and pending defer cancellations\n    if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n      return true;\n    }\n    // This is the default implementation for when we revalidate.  If the route\n    // provides it's own implementation, then we give them full control but\n    // provide this value so they can leverage it if needed after they check\n    // their own specific use cases\n    let currentRouteMatch = state.matches[index];\n    let nextRouteMatch = match;\n    return shouldRevalidateLoader(match, _extends({\n      currentUrl,\n      currentParams: currentRouteMatch.params,\n      nextUrl,\n      nextParams: nextRouteMatch.params\n    }, submission, {\n      actionResult,\n      actionStatus,\n      defaultShouldRevalidate: shouldSkipRevalidation ? false :\n      // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate\n      isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search ||\n      // Search params affect all loaders\n      currentUrl.search !== nextUrl.search || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n    }));\n  });\n  // Pick fetcher.loads that need to be revalidated\n  let revalidatingFetchers = [];\n  fetchLoadMatches.forEach((f, key) => {\n    // Don't revalidate:\n    //  - on initial hydration (shouldn't be any fetchers then anyway)\n    //  - if fetcher won't be present in the subsequent render\n    //    - no longer matches the URL (v7_fetcherPersist=false)\n    //    - was unmounted but persisted due to v7_fetcherPersist=true\n    if (initialHydration || !matches.some(m => m.route.id === f.routeId) || deletedFetchers.has(key)) {\n      return;\n    }\n    let fetcherMatches = matchRoutes(routesToUse, f.path, basename);\n    // If the fetcher path no longer matches, push it in with null matches so\n    // we can trigger a 404 in callLoadersAndMaybeResolveData.  Note this is\n    // currently only a use-case for Remix HMR where the route tree can change\n    // at runtime and remove a route previously loaded via a fetcher\n    if (!fetcherMatches) {\n      revalidatingFetchers.push({\n        key,\n        routeId: f.routeId,\n        path: f.path,\n        matches: null,\n        match: null,\n        controller: null\n      });\n      return;\n    }\n    // Revalidating fetchers are decoupled from the route matches since they\n    // load from a static href.  They revalidate based on explicit revalidation\n    // (submission, useRevalidator, or X-Remix-Revalidate)\n    let fetcher = state.fetchers.get(key);\n    let fetcherMatch = getTargetMatch(fetcherMatches, f.path);\n    let shouldRevalidate = false;\n    if (fetchRedirectIds.has(key)) {\n      // Never trigger a revalidation of an actively redirecting fetcher\n      shouldRevalidate = false;\n    } else if (cancelledFetcherLoads.has(key)) {\n      // Always mark for revalidation if the fetcher was cancelled\n      cancelledFetcherLoads.delete(key);\n      shouldRevalidate = true;\n    } else if (fetcher && fetcher.state !== \"idle\" && fetcher.data === undefined) {\n      // If the fetcher hasn't ever completed loading yet, then this isn't a\n      // revalidation, it would just be a brand new load if an explicit\n      // revalidation is required\n      shouldRevalidate = isRevalidationRequired;\n    } else {\n      // Otherwise fall back on any user-defined shouldRevalidate, defaulting\n      // to explicit revalidations only\n      shouldRevalidate = shouldRevalidateLoader(fetcherMatch, _extends({\n        currentUrl,\n        currentParams: state.matches[state.matches.length - 1].params,\n        nextUrl,\n        nextParams: matches[matches.length - 1].params\n      }, submission, {\n        actionResult,\n        actionStatus,\n        defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired\n      }));\n    }\n    if (shouldRevalidate) {\n      revalidatingFetchers.push({\n        key,\n        routeId: f.routeId,\n        path: f.path,\n        matches: fetcherMatches,\n        match: fetcherMatch,\n        controller: new AbortController()\n      });\n    }\n  });\n  return [navigationMatches, revalidatingFetchers];\n}\nfunction shouldLoadRouteOnHydration(route, loaderData, errors) {\n  // We dunno if we have a loader - gotta find out!\n  if (route.lazy) {\n    return true;\n  }\n  // No loader, nothing to initialize\n  if (!route.loader) {\n    return false;\n  }\n  let hasData = loaderData != null && loaderData[route.id] !== undefined;\n  let hasError = errors != null && errors[route.id] !== undefined;\n  // Don't run if we error'd during SSR\n  if (!hasData && hasError) {\n    return false;\n  }\n  // Explicitly opting-in to running on hydration\n  if (typeof route.loader === \"function\" && route.loader.hydrate === true) {\n    return true;\n  }\n  // Otherwise, run if we're not yet initialized with anything\n  return !hasData && !hasError;\n}\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n  let isNew =\n  // [a] -> [a, b]\n  !currentMatch ||\n  // [a, b] -> [a, c]\n  match.route.id !== currentMatch.route.id;\n  // Handle the case that we don't have data for a re-used route, potentially\n  // from a prior error or from a cancelled pending deferred\n  let isMissingData = currentLoaderData[match.route.id] === undefined;\n  // Always load if this is a net-new route or we don't yet have data\n  return isNew || isMissingData;\n}\nfunction isNewRouteInstance(currentMatch, match) {\n  let currentPath = currentMatch.route.path;\n  return (\n    // param change for this match, /users/123 -> /users/456\n    currentMatch.pathname !== match.pathname ||\n    // splat param changed, which is not present in match.path\n    // e.g. /files/images/avatar.jpg -> files/finances.xls\n    currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n  );\n}\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n  if (loaderMatch.route.shouldRevalidate) {\n    let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n    if (typeof routeChoice === \"boolean\") {\n      return routeChoice;\n    }\n  }\n  return arg.defaultShouldRevalidate;\n}\nfunction patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties) {\n  var _childrenToPatch;\n  let childrenToPatch;\n  if (routeId) {\n    let route = manifest[routeId];\n    invariant(route, \"No route found to patch children into: routeId = \" + routeId);\n    if (!route.children) {\n      route.children = [];\n    }\n    childrenToPatch = route.children;\n  } else {\n    childrenToPatch = routesToUse;\n  }\n  // Don't patch in routes we already know about so that `patch` is idempotent\n  // to simplify user-land code. This is useful because we re-call the\n  // `patchRoutesOnNavigation` function for matched routes with params.\n  let uniqueChildren = children.filter(newRoute => !childrenToPatch.some(existingRoute => isSameRoute(newRoute, existingRoute)));\n  let newRoutes = convertRoutesToDataRoutes(uniqueChildren, mapRouteProperties, [routeId || \"_\", \"patch\", String(((_childrenToPatch = childrenToPatch) == null ? void 0 : _childrenToPatch.length) || \"0\")], manifest);\n  childrenToPatch.push(...newRoutes);\n}\nfunction isSameRoute(newRoute, existingRoute) {\n  // Most optimal check is by id\n  if (\"id\" in newRoute && \"id\" in existingRoute && newRoute.id === existingRoute.id) {\n    return true;\n  }\n  // Second is by pathing differences\n  if (!(newRoute.index === existingRoute.index && newRoute.path === existingRoute.path && newRoute.caseSensitive === existingRoute.caseSensitive)) {\n    return false;\n  }\n  // Pathless layout routes are trickier since we need to check children.\n  // If they have no children then they're the same as far as we can tell\n  if ((!newRoute.children || newRoute.children.length === 0) && (!existingRoute.children || existingRoute.children.length === 0)) {\n    return true;\n  }\n  // Otherwise, we look to see if every child in the new route is already\n  // represented in the existing route's children\n  return newRoute.children.every((aChild, i) => {\n    var _existingRoute$childr;\n    return (_existingRoute$childr = existingRoute.children) == null ? void 0 : _existingRoute$childr.some(bChild => isSameRoute(aChild, bChild));\n  });\n}\n/**\n * Execute route.lazy() methods to lazily load route modules (loader, action,\n * shouldRevalidate) and update the routeManifest in place which shares objects\n * with dataRoutes so those get updated as well.\n */\nasync function loadLazyRouteModule(route, mapRouteProperties, manifest) {\n  if (!route.lazy) {\n    return;\n  }\n  let lazyRoute = await route.lazy();\n  // If the lazy route function was executed and removed by another parallel\n  // call then we can return - first lazy() to finish wins because the return\n  // value of lazy is expected to be static\n  if (!route.lazy) {\n    return;\n  }\n  let routeToUpdate = manifest[route.id];\n  invariant(routeToUpdate, \"No route found in manifest\");\n  // Update the route in place.  This should be safe because there's no way\n  // we could yet be sitting on this route as we can't get there without\n  // resolving lazy() first.\n  //\n  // This is different than the HMR \"update\" use-case where we may actively be\n  // on the route being updated.  The main concern boils down to \"does this\n  // mutation affect any ongoing navigations or any current state.matches\n  // values?\".  If not, it should be safe to update in place.\n  let routeUpdates = {};\n  for (let lazyRouteProperty in lazyRoute) {\n    let staticRouteValue = routeToUpdate[lazyRouteProperty];\n    let isPropertyStaticallyDefined = staticRouteValue !== undefined &&\n    // This property isn't static since it should always be updated based\n    // on the route updates\n    lazyRouteProperty !== \"hasErrorBoundary\";\n    warning(!isPropertyStaticallyDefined, \"Route \\\"\" + routeToUpdate.id + \"\\\" has a static property \\\"\" + lazyRouteProperty + \"\\\" \" + \"defined but its lazy function is also returning a value for this property. \" + (\"The lazy route property \\\"\" + lazyRouteProperty + \"\\\" will be ignored.\"));\n    if (!isPropertyStaticallyDefined && !immutableRouteKeys.has(lazyRouteProperty)) {\n      routeUpdates[lazyRouteProperty] = lazyRoute[lazyRouteProperty];\n    }\n  }\n  // Mutate the route with the provided updates.  Do this first so we pass\n  // the updated version to mapRouteProperties\n  Object.assign(routeToUpdate, routeUpdates);\n  // Mutate the `hasErrorBoundary` property on the route based on the route\n  // updates and remove the `lazy` function so we don't resolve the lazy\n  // route again.\n  Object.assign(routeToUpdate, _extends({}, mapRouteProperties(routeToUpdate), {\n    lazy: undefined\n  }));\n}\n// Default implementation of `dataStrategy` which fetches all loaders in parallel\nasync function defaultDataStrategy(_ref4) {\n  let {\n    matches\n  } = _ref4;\n  let matchesToLoad = matches.filter(m => m.shouldLoad);\n  let results = await Promise.all(matchesToLoad.map(m => m.resolve()));\n  return results.reduce((acc, result, i) => Object.assign(acc, {\n    [matchesToLoad[i].route.id]: result\n  }), {});\n}\nasync function callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties, requestContext) {\n  let loadRouteDefinitionsPromises = matches.map(m => m.route.lazy ? loadLazyRouteModule(m.route, mapRouteProperties, manifest) : undefined);\n  let dsMatches = matches.map((match, i) => {\n    let loadRoutePromise = loadRouteDefinitionsPromises[i];\n    let shouldLoad = matchesToLoad.some(m => m.route.id === match.route.id);\n    // `resolve` encapsulates route.lazy(), executing the loader/action,\n    // and mapping return values/thrown errors to a `DataStrategyResult`.  Users\n    // can pass a callback to take fine-grained control over the execution\n    // of the loader/action\n    let resolve = async handlerOverride => {\n      if (handlerOverride && request.method === \"GET\" && (match.route.lazy || match.route.loader)) {\n        shouldLoad = true;\n      }\n      return shouldLoad ? callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, requestContext) : Promise.resolve({\n        type: ResultType.data,\n        result: undefined\n      });\n    };\n    return _extends({}, match, {\n      shouldLoad,\n      resolve\n    });\n  });\n  // Send all matches here to allow for a middleware-type implementation.\n  // handler will be a no-op for unneeded routes and we filter those results\n  // back out below.\n  let results = await dataStrategyImpl({\n    matches: dsMatches,\n    request,\n    params: matches[0].params,\n    fetcherKey,\n    context: requestContext\n  });\n  // Wait for all routes to load here but 'swallow the error since we want\n  // it to bubble up from the `await loadRoutePromise` in `callLoaderOrAction` -\n  // called from `match.resolve()`\n  try {\n    await Promise.all(loadRouteDefinitionsPromises);\n  } catch (e) {\n    // No-op\n  }\n  return results;\n}\n// Default logic for calling a loader/action is the user has no specified a dataStrategy\nasync function callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, staticContext) {\n  let result;\n  let onReject;\n  let runHandler = handler => {\n    // Setup a promise we can race against so that abort signals short circuit\n    let reject;\n    // This will never resolve so safe to type it as Promise<DataStrategyResult> to\n    // satisfy the function return value\n    let abortPromise = new Promise((_, r) => reject = r);\n    onReject = () => reject();\n    request.signal.addEventListener(\"abort\", onReject);\n    let actualHandler = ctx => {\n      if (typeof handler !== \"function\") {\n        return Promise.reject(new Error(\"You cannot call the handler for a route which defines a boolean \" + (\"\\\"\" + type + \"\\\" [routeId: \" + match.route.id + \"]\")));\n      }\n      return handler({\n        request,\n        params: match.params,\n        context: staticContext\n      }, ...(ctx !== undefined ? [ctx] : []));\n    };\n    let handlerPromise = (async () => {\n      try {\n        let val = await (handlerOverride ? handlerOverride(ctx => actualHandler(ctx)) : actualHandler());\n        return {\n          type: \"data\",\n          result: val\n        };\n      } catch (e) {\n        return {\n          type: \"error\",\n          result: e\n        };\n      }\n    })();\n    return Promise.race([handlerPromise, abortPromise]);\n  };\n  try {\n    let handler = match.route[type];\n    // If we have a route.lazy promise, await that first\n    if (loadRoutePromise) {\n      if (handler) {\n        // Run statically defined handler in parallel with lazy()\n        let handlerError;\n        let [value] = await Promise.all([\n        // If the handler throws, don't let it immediately bubble out,\n        // since we need to let the lazy() execution finish so we know if this\n        // route has a boundary that can handle the error\n        runHandler(handler).catch(e => {\n          handlerError = e;\n        }), loadRoutePromise]);\n        if (handlerError !== undefined) {\n          throw handlerError;\n        }\n        result = value;\n      } else {\n        // Load lazy route module, then run any returned handler\n        await loadRoutePromise;\n        handler = match.route[type];\n        if (handler) {\n          // Handler still runs even if we got interrupted to maintain consistency\n          // with un-abortable behavior of handler execution on non-lazy or\n          // previously-lazy-loaded routes\n          result = await runHandler(handler);\n        } else if (type === \"action\") {\n          let url = new URL(request.url);\n          let pathname = url.pathname + url.search;\n          throw getInternalRouterError(405, {\n            method: request.method,\n            pathname,\n            routeId: match.route.id\n          });\n        } else {\n          // lazy() route has no loader to run.  Short circuit here so we don't\n          // hit the invariant below that errors on returning undefined.\n          return {\n            type: ResultType.data,\n            result: undefined\n          };\n        }\n      }\n    } else if (!handler) {\n      let url = new URL(request.url);\n      let pathname = url.pathname + url.search;\n      throw getInternalRouterError(404, {\n        pathname\n      });\n    } else {\n      result = await runHandler(handler);\n    }\n    invariant(result.result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n  } catch (e) {\n    // We should already be catching and converting normal handler executions to\n    // DataStrategyResults and returning them, so anything that throws here is an\n    // unexpected error we still need to wrap\n    return {\n      type: ResultType.error,\n      result: e\n    };\n  } finally {\n    if (onReject) {\n      request.signal.removeEventListener(\"abort\", onReject);\n    }\n  }\n  return result;\n}\nasync function convertDataStrategyResultToDataResult(dataStrategyResult) {\n  let {\n    result,\n    type\n  } = dataStrategyResult;\n  if (isResponse(result)) {\n    let data;\n    try {\n      let contentType = result.headers.get(\"Content-Type\");\n      // Check between word boundaries instead of startsWith() due to the last\n      // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n      if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n        if (result.body == null) {\n          data = null;\n        } else {\n          data = await result.json();\n        }\n      } else {\n        data = await result.text();\n      }\n    } catch (e) {\n      return {\n        type: ResultType.error,\n        error: e\n      };\n    }\n    if (type === ResultType.error) {\n      return {\n        type: ResultType.error,\n        error: new ErrorResponseImpl(result.status, result.statusText, data),\n        statusCode: result.status,\n        headers: result.headers\n      };\n    }\n    return {\n      type: ResultType.data,\n      data,\n      statusCode: result.status,\n      headers: result.headers\n    };\n  }\n  if (type === ResultType.error) {\n    if (isDataWithResponseInit(result)) {\n      var _result$init3, _result$init4;\n      if (result.data instanceof Error) {\n        var _result$init, _result$init2;\n        return {\n          type: ResultType.error,\n          error: result.data,\n          statusCode: (_result$init = result.init) == null ? void 0 : _result$init.status,\n          headers: (_result$init2 = result.init) != null && _result$init2.headers ? new Headers(result.init.headers) : undefined\n        };\n      }\n      // Convert thrown data() to ErrorResponse instances\n      return {\n        type: ResultType.error,\n        error: new ErrorResponseImpl(((_result$init3 = result.init) == null ? void 0 : _result$init3.status) || 500, undefined, result.data),\n        statusCode: isRouteErrorResponse(result) ? result.status : undefined,\n        headers: (_result$init4 = result.init) != null && _result$init4.headers ? new Headers(result.init.headers) : undefined\n      };\n    }\n    return {\n      type: ResultType.error,\n      error: result,\n      statusCode: isRouteErrorResponse(result) ? result.status : undefined\n    };\n  }\n  if (isDeferredData(result)) {\n    var _result$init5, _result$init6;\n    return {\n      type: ResultType.deferred,\n      deferredData: result,\n      statusCode: (_result$init5 = result.init) == null ? void 0 : _result$init5.status,\n      headers: ((_result$init6 = result.init) == null ? void 0 : _result$init6.headers) && new Headers(result.init.headers)\n    };\n  }\n  if (isDataWithResponseInit(result)) {\n    var _result$init7, _result$init8;\n    return {\n      type: ResultType.data,\n      data: result.data,\n      statusCode: (_result$init7 = result.init) == null ? void 0 : _result$init7.status,\n      headers: (_result$init8 = result.init) != null && _result$init8.headers ? new Headers(result.init.headers) : undefined\n    };\n  }\n  return {\n    type: ResultType.data,\n    data: result\n  };\n}\n// Support relative routing in internal redirects\nfunction normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, v7_relativeSplatPath) {\n  let location = response.headers.get(\"Location\");\n  invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\");\n  if (!ABSOLUTE_URL_REGEX.test(location)) {\n    let trimmedMatches = matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1);\n    location = normalizeTo(new URL(request.url), trimmedMatches, basename, true, location, v7_relativeSplatPath);\n    response.headers.set(\"Location\", location);\n  }\n  return response;\n}\nfunction normalizeRedirectLocation(location, currentUrl, basename, historyInstance) {\n  // Match Chrome's behavior:\n  // https://github.com/chromium/chromium/blob/216dbeb61db0c667e62082e5f5400a32d6983df3/content/public/common/url_utils.cc#L82\n  let invalidProtocols = [\"about:\", \"blob:\", \"chrome:\", \"chrome-untrusted:\", \"content:\", \"data:\", \"devtools:\", \"file:\", \"filesystem:\",\n  // eslint-disable-next-line no-script-url\n  \"javascript:\"];\n  if (ABSOLUTE_URL_REGEX.test(location)) {\n    // Strip off the protocol+origin for same-origin + same-basename absolute redirects\n    let normalizedLocation = location;\n    let url = normalizedLocation.startsWith(\"//\") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation);\n    if (invalidProtocols.includes(url.protocol)) {\n      throw new Error(\"Invalid redirect location\");\n    }\n    let isSameBasename = stripBasename(url.pathname, basename) != null;\n    if (url.origin === currentUrl.origin && isSameBasename) {\n      return removeDoubleSlashes(url.pathname) + url.search + url.hash;\n    }\n  }\n  try {\n    let url = historyInstance.createURL(location);\n    if (invalidProtocols.includes(url.protocol)) {\n      throw new Error(\"Invalid redirect location\");\n    }\n  } catch (e) {}\n  return location;\n}\n// Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches.  During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\nfunction createClientSideRequest(history, location, signal, submission) {\n  let url = history.createURL(stripHashFromPath(location)).toString();\n  let init = {\n    signal\n  };\n  if (submission && isMutationMethod(submission.formMethod)) {\n    let {\n      formMethod,\n      formEncType\n    } = submission;\n    // Didn't think we needed this but it turns out unlike other methods, patch\n    // won't be properly normalized to uppercase and results in a 405 error.\n    // See: https://fetch.spec.whatwg.org/#concept-method\n    init.method = formMethod.toUpperCase();\n    if (formEncType === \"application/json\") {\n      init.headers = new Headers({\n        \"Content-Type\": formEncType\n      });\n      init.body = JSON.stringify(submission.json);\n    } else if (formEncType === \"text/plain\") {\n      // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n      init.body = submission.text;\n    } else if (formEncType === \"application/x-www-form-urlencoded\" && submission.formData) {\n      // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n      init.body = convertFormDataToSearchParams(submission.formData);\n    } else {\n      // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n      init.body = submission.formData;\n    }\n  }\n  return new Request(url, init);\n}\nfunction convertFormDataToSearchParams(formData) {\n  let searchParams = new URLSearchParams();\n  for (let [key, value] of formData.entries()) {\n    // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n    searchParams.append(key, typeof value === \"string\" ? value : value.name);\n  }\n  return searchParams;\n}\nfunction convertSearchParamsToFormData(searchParams) {\n  let formData = new FormData();\n  for (let [key, value] of searchParams.entries()) {\n    formData.append(key, value);\n  }\n  return formData;\n}\nfunction processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling) {\n  // Fill in loaderData/errors from our loaders\n  let loaderData = {};\n  let errors = null;\n  let statusCode;\n  let foundError = false;\n  let loaderHeaders = {};\n  let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : undefined;\n  // Process loader results into state.loaderData/state.errors\n  matches.forEach(match => {\n    if (!(match.route.id in results)) {\n      return;\n    }\n    let id = match.route.id;\n    let result = results[id];\n    invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n    if (isErrorResult(result)) {\n      let error = result.error;\n      // If we have a pending action error, we report it at the highest-route\n      // that throws a loader error, and then clear it out to indicate that\n      // it was consumed\n      if (pendingError !== undefined) {\n        error = pendingError;\n        pendingError = undefined;\n      }\n      errors = errors || {};\n      if (skipLoaderErrorBubbling) {\n        errors[id] = error;\n      } else {\n        // Look upwards from the matched route for the closest ancestor error\n        // boundary, defaulting to the root match.  Prefer higher error values\n        // if lower errors bubble to the same boundary\n        let boundaryMatch = findNearestBoundary(matches, id);\n        if (errors[boundaryMatch.route.id] == null) {\n          errors[boundaryMatch.route.id] = error;\n        }\n      }\n      // Clear our any prior loaderData for the throwing route\n      loaderData[id] = undefined;\n      // Once we find our first (highest) error, we set the status code and\n      // prevent deeper status codes from overriding\n      if (!foundError) {\n        foundError = true;\n        statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n      }\n      if (result.headers) {\n        loaderHeaders[id] = result.headers;\n      }\n    } else {\n      if (isDeferredResult(result)) {\n        activeDeferreds.set(id, result.deferredData);\n        loaderData[id] = result.deferredData.data;\n        // Error status codes always override success status codes, but if all\n        // loaders are successful we take the deepest status code.\n        if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n          statusCode = result.statusCode;\n        }\n        if (result.headers) {\n          loaderHeaders[id] = result.headers;\n        }\n      } else {\n        loaderData[id] = result.data;\n        // Error status codes always override success status codes, but if all\n        // loaders are successful we take the deepest status code.\n        if (result.statusCode && result.statusCode !== 200 && !foundError) {\n          statusCode = result.statusCode;\n        }\n        if (result.headers) {\n          loaderHeaders[id] = result.headers;\n        }\n      }\n    }\n  });\n  // If we didn't consume the pending action error (i.e., all loaders\n  // resolved), then consume it here.  Also clear out any loaderData for the\n  // throwing route\n  if (pendingError !== undefined && pendingActionResult) {\n    errors = {\n      [pendingActionResult[0]]: pendingError\n    };\n    loaderData[pendingActionResult[0]] = undefined;\n  }\n  return {\n    loaderData,\n    errors,\n    statusCode: statusCode || 200,\n    loaderHeaders\n  };\n}\nfunction processLoaderData(state, matches, results, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds) {\n  let {\n    loaderData,\n    errors\n  } = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, false // This method is only called client side so we always want to bubble\n  );\n  // Process results from our revalidating fetchers\n  revalidatingFetchers.forEach(rf => {\n    let {\n      key,\n      match,\n      controller\n    } = rf;\n    let result = fetcherResults[key];\n    invariant(result, \"Did not find corresponding fetcher result\");\n    // Process fetcher non-redirect errors\n    if (controller && controller.signal.aborted) {\n      // Nothing to do for aborted fetchers\n      return;\n    } else if (isErrorResult(result)) {\n      let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id);\n      if (!(errors && errors[boundaryMatch.route.id])) {\n        errors = _extends({}, errors, {\n          [boundaryMatch.route.id]: result.error\n        });\n      }\n      state.fetchers.delete(key);\n    } else if (isRedirectResult(result)) {\n      // Should never get here, redirects should get processed above, but we\n      // keep this to type narrow to a success result in the else\n      invariant(false, \"Unhandled fetcher revalidation redirect\");\n    } else if (isDeferredResult(result)) {\n      // Should never get here, deferred data should be awaited for fetchers\n      // in resolveDeferredResults\n      invariant(false, \"Unhandled fetcher deferred data\");\n    } else {\n      let doneFetcher = getDoneFetcher(result.data);\n      state.fetchers.set(key, doneFetcher);\n    }\n  });\n  return {\n    loaderData,\n    errors\n  };\n}\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n  let mergedLoaderData = _extends({}, newLoaderData);\n  for (let match of matches) {\n    let id = match.route.id;\n    if (newLoaderData.hasOwnProperty(id)) {\n      if (newLoaderData[id] !== undefined) {\n        mergedLoaderData[id] = newLoaderData[id];\n      }\n    } else if (loaderData[id] !== undefined && match.route.loader) {\n      // Preserve existing keys not included in newLoaderData and where a loader\n      // wasn't removed by HMR\n      mergedLoaderData[id] = loaderData[id];\n    }\n    if (errors && errors.hasOwnProperty(id)) {\n      // Don't keep any loader data below the boundary\n      break;\n    }\n  }\n  return mergedLoaderData;\n}\nfunction getActionDataForCommit(pendingActionResult) {\n  if (!pendingActionResult) {\n    return {};\n  }\n  return isErrorResult(pendingActionResult[1]) ? {\n    // Clear out prior actionData on errors\n    actionData: {}\n  } : {\n    actionData: {\n      [pendingActionResult[0]]: pendingActionResult[1].data\n    }\n  };\n}\n// Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\nfunction findNearestBoundary(matches, routeId) {\n  let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n  return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\nfunction getShortCircuitMatches(routes) {\n  // Prefer a root layout route if present, otherwise shim in a route object\n  let route = routes.length === 1 ? routes[0] : routes.find(r => r.index || !r.path || r.path === \"/\") || {\n    id: \"__shim-error-route__\"\n  };\n  return {\n    matches: [{\n      params: {},\n      pathname: \"\",\n      pathnameBase: \"\",\n      route\n    }],\n    route\n  };\n}\nfunction getInternalRouterError(status, _temp5) {\n  let {\n    pathname,\n    routeId,\n    method,\n    type,\n    message\n  } = _temp5 === void 0 ? {} : _temp5;\n  let statusText = \"Unknown Server Error\";\n  let errorMessage = \"Unknown @remix-run/router error\";\n  if (status === 400) {\n    statusText = \"Bad Request\";\n    if (method && pathname && routeId) {\n      errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n    } else if (type === \"defer-action\") {\n      errorMessage = \"defer() is not supported in actions\";\n    } else if (type === \"invalid-body\") {\n      errorMessage = \"Unable to encode submission body\";\n    }\n  } else if (status === 403) {\n    statusText = \"Forbidden\";\n    errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n  } else if (status === 404) {\n    statusText = \"Not Found\";\n    errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n  } else if (status === 405) {\n    statusText = \"Method Not Allowed\";\n    if (method && pathname && routeId) {\n      errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n    } else if (method) {\n      errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n    }\n  }\n  return new ErrorResponseImpl(status || 500, statusText, new Error(errorMessage), true);\n}\n// Find any returned redirect errors, starting from the lowest match\nfunction findRedirect(results) {\n  let entries = Object.entries(results);\n  for (let i = entries.length - 1; i >= 0; i--) {\n    let [key, result] = entries[i];\n    if (isRedirectResult(result)) {\n      return {\n        key,\n        result\n      };\n    }\n  }\n}\nfunction stripHashFromPath(path) {\n  let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n  return createPath(_extends({}, parsedPath, {\n    hash: \"\"\n  }));\n}\nfunction isHashChangeOnly(a, b) {\n  if (a.pathname !== b.pathname || a.search !== b.search) {\n    return false;\n  }\n  if (a.hash === \"\") {\n    // /page -> /page#hash\n    return b.hash !== \"\";\n  } else if (a.hash === b.hash) {\n    // /page#hash -> /page#hash\n    return true;\n  } else if (b.hash !== \"\") {\n    // /page#hash -> /page#other\n    return true;\n  }\n  // If the hash is removed the browser will re-perform a request to the server\n  // /page#hash -> /page\n  return false;\n}\nfunction isDataStrategyResult(result) {\n  return result != null && typeof result === \"object\" && \"type\" in result && \"result\" in result && (result.type === ResultType.data || result.type === ResultType.error);\n}\nfunction isRedirectDataStrategyResultResult(result) {\n  return isResponse(result.result) && redirectStatusCodes.has(result.result.status);\n}\nfunction isDeferredResult(result) {\n  return result.type === ResultType.deferred;\n}\nfunction isErrorResult(result) {\n  return result.type === ResultType.error;\n}\nfunction isRedirectResult(result) {\n  return (result && result.type) === ResultType.redirect;\n}\nfunction isDataWithResponseInit(value) {\n  return typeof value === \"object\" && value != null && \"type\" in value && \"data\" in value && \"init\" in value && value.type === \"DataWithResponseInit\";\n}\nfunction isDeferredData(value) {\n  let deferred = value;\n  return deferred && typeof deferred === \"object\" && typeof deferred.data === \"object\" && typeof deferred.subscribe === \"function\" && typeof deferred.cancel === \"function\" && typeof deferred.resolveData === \"function\";\n}\nfunction isResponse(value) {\n  return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\nfunction isRedirectResponse(result) {\n  if (!isResponse(result)) {\n    return false;\n  }\n  let status = result.status;\n  let location = result.headers.get(\"Location\");\n  return status >= 300 && status <= 399 && location != null;\n}\nfunction isValidMethod(method) {\n  return validRequestMethods.has(method.toLowerCase());\n}\nfunction isMutationMethod(method) {\n  return validMutationMethods.has(method.toLowerCase());\n}\nasync function resolveNavigationDeferredResults(matches, results, signal, currentMatches, currentLoaderData) {\n  let entries = Object.entries(results);\n  for (let index = 0; index < entries.length; index++) {\n    let [routeId, result] = entries[index];\n    let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId);\n    // If we don't have a match, then we can have a deferred result to do\n    // anything with.  This is for revalidating fetchers where the route was\n    // removed during HMR\n    if (!match) {\n      continue;\n    }\n    let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n    let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n    if (isDeferredResult(result) && isRevalidatingLoader) {\n      // Note: we do not have to touch activeDeferreds here since we race them\n      // against the signal in resolveDeferredData and they'll get aborted\n      // there if needed\n      await resolveDeferredData(result, signal, false).then(result => {\n        if (result) {\n          results[routeId] = result;\n        }\n      });\n    }\n  }\n}\nasync function resolveFetcherDeferredResults(matches, results, revalidatingFetchers) {\n  for (let index = 0; index < revalidatingFetchers.length; index++) {\n    let {\n      key,\n      routeId,\n      controller\n    } = revalidatingFetchers[index];\n    let result = results[key];\n    let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId);\n    // If we don't have a match, then we can have a deferred result to do\n    // anything with.  This is for revalidating fetchers where the route was\n    // removed during HMR\n    if (!match) {\n      continue;\n    }\n    if (isDeferredResult(result)) {\n      // Note: we do not have to touch activeDeferreds here since we race them\n      // against the signal in resolveDeferredData and they'll get aborted\n      // there if needed\n      invariant(controller, \"Expected an AbortController for revalidating fetcher deferred result\");\n      await resolveDeferredData(result, controller.signal, true).then(result => {\n        if (result) {\n          results[key] = result;\n        }\n      });\n    }\n  }\n}\nasync function resolveDeferredData(result, signal, unwrap) {\n  if (unwrap === void 0) {\n    unwrap = false;\n  }\n  let aborted = await result.deferredData.resolveData(signal);\n  if (aborted) {\n    return;\n  }\n  if (unwrap) {\n    try {\n      return {\n        type: ResultType.data,\n        data: result.deferredData.unwrappedData\n      };\n    } catch (e) {\n      // Handle any TrackedPromise._error values encountered while unwrapping\n      return {\n        type: ResultType.error,\n        error: e\n      };\n    }\n  }\n  return {\n    type: ResultType.data,\n    data: result.deferredData.data\n  };\n}\nfunction hasNakedIndexQuery(search) {\n  return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n}\nfunction getTargetMatch(matches, location) {\n  let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n  if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n    // Return the leaf index route when index is present\n    return matches[matches.length - 1];\n  }\n  // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n  // pathless layout routes)\n  let pathMatches = getPathContributingMatches(matches);\n  return pathMatches[pathMatches.length - 1];\n}\nfunction getSubmissionFromNavigation(navigation) {\n  let {\n    formMethod,\n    formAction,\n    formEncType,\n    text,\n    formData,\n    json\n  } = navigation;\n  if (!formMethod || !formAction || !formEncType) {\n    return;\n  }\n  if (text != null) {\n    return {\n      formMethod,\n      formAction,\n      formEncType,\n      formData: undefined,\n      json: undefined,\n      text\n    };\n  } else if (formData != null) {\n    return {\n      formMethod,\n      formAction,\n      formEncType,\n      formData,\n      json: undefined,\n      text: undefined\n    };\n  } else if (json !== undefined) {\n    return {\n      formMethod,\n      formAction,\n      formEncType,\n      formData: undefined,\n      json,\n      text: undefined\n    };\n  }\n}\nfunction getLoadingNavigation(location, submission) {\n  if (submission) {\n    let navigation = {\n      state: \"loading\",\n      location,\n      formMethod: submission.formMethod,\n      formAction: submission.formAction,\n      formEncType: submission.formEncType,\n      formData: submission.formData,\n      json: submission.json,\n      text: submission.text\n    };\n    return navigation;\n  } else {\n    let navigation = {\n      state: \"loading\",\n      location,\n      formMethod: undefined,\n      formAction: undefined,\n      formEncType: undefined,\n      formData: undefined,\n      json: undefined,\n      text: undefined\n    };\n    return navigation;\n  }\n}\nfunction getSubmittingNavigation(location, submission) {\n  let navigation = {\n    state: \"submitting\",\n    location,\n    formMethod: submission.formMethod,\n    formAction: submission.formAction,\n    formEncType: submission.formEncType,\n    formData: submission.formData,\n    json: submission.json,\n    text: submission.text\n  };\n  return navigation;\n}\nfunction getLoadingFetcher(submission, data) {\n  if (submission) {\n    let fetcher = {\n      state: \"loading\",\n      formMethod: submission.formMethod,\n      formAction: submission.formAction,\n      formEncType: submission.formEncType,\n      formData: submission.formData,\n      json: submission.json,\n      text: submission.text,\n      data\n    };\n    return fetcher;\n  } else {\n    let fetcher = {\n      state: \"loading\",\n      formMethod: undefined,\n      formAction: undefined,\n      formEncType: undefined,\n      formData: undefined,\n      json: undefined,\n      text: undefined,\n      data\n    };\n    return fetcher;\n  }\n}\nfunction getSubmittingFetcher(submission, existingFetcher) {\n  let fetcher = {\n    state: \"submitting\",\n    formMethod: submission.formMethod,\n    formAction: submission.formAction,\n    formEncType: submission.formEncType,\n    formData: submission.formData,\n    json: submission.json,\n    text: submission.text,\n    data: existingFetcher ? existingFetcher.data : undefined\n  };\n  return fetcher;\n}\nfunction getDoneFetcher(data) {\n  let fetcher = {\n    state: \"idle\",\n    formMethod: undefined,\n    formAction: undefined,\n    formEncType: undefined,\n    formData: undefined,\n    json: undefined,\n    text: undefined,\n    data\n  };\n  return fetcher;\n}\nfunction restoreAppliedTransitions(_window, transitions) {\n  try {\n    let sessionPositions = _window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);\n    if (sessionPositions) {\n      let json = JSON.parse(sessionPositions);\n      for (let [k, v] of Object.entries(json || {})) {\n        if (v && Array.isArray(v)) {\n          transitions.set(k, new Set(v || []));\n        }\n      }\n    }\n  } catch (e) {\n    // no-op, use default empty object\n  }\n}\nfunction persistAppliedTransitions(_window, transitions) {\n  if (transitions.size > 0) {\n    let json = {};\n    for (let [k, v] of transitions) {\n      json[k] = [...v];\n    }\n    try {\n      _window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY, JSON.stringify(json));\n    } catch (error) {\n      warning(false, \"Failed to save applied view transitions in sessionStorage (\" + error + \").\");\n    }\n  }\n}\n//#endregion\n\nexport { AbortedDeferredError, Action, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, convertRouteMatchToUiMatch as UNSAFE_convertRouteMatchToUiMatch, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, decodePath as UNSAFE_decodePath, getResolveToMatches as UNSAFE_getResolveToMatches, invariant as UNSAFE_invariant, warning as UNSAFE_warning, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, data, defer, generatePath, getStaticContextFromError, getToPathname, isDataWithResponseInit, isDeferredData, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, redirectDocument, replace, resolvePath, resolveTo, stripBasename };\n//# sourceMappingURL=router.js.map\n","/*! For license information please see ConnectRetailer.js.LICENSE.txt */\n(()=>{var e={4300:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement(\"style\");return t.setAttribute(\"data-emotion\",e.key),void 0!==e.nonce&&t.setAttribute(\"nonce\",e.nonce),t.appendChild(document.createTextNode(\"\")),t.setAttribute(\"data-s\",\"\"),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function h(e){return e.length}function p(e){return e.length}function g(e,t){return t.push(e),e}var f=1,m=1,v=0,y=0,b=0,w=\"\";function C(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:f,column:m,length:a,return:\"\"}}function S(e,t){return a(C(\"\",null,null,\"\",null,null,0),e,{length:-e.length},t)}function E(){return b=y>0?d(w,--y):0,m--,10===b&&(m=1,f--),b}function x(){return b=y<v?d(w,y++):0,m++,10===b&&(m=1,f++),b}function A(){return d(w,y)}function T(){return y}function D(e,t){return u(w,e,t)}function R(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 M(e){return f=m=1,v=h(w=e),y=0,[]}function O(e){return w=\"\",e}function k(e){return s(D(y-1,P(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(b=A())&&b<33;)x();return R(e)>2||R(b)>3?\"\":\" \"}function N(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return D(e,T()+(t<6&&32==A()&&32==x()))}function P(e){for(;x();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&P(b);break;case 40:41===e&&P(e);break;case 92:x()}return y}function L(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==A()););return\"/*\"+D(t,y-1)+\"*\"+o(47===e?e:x())}function F(e){for(;!R(A());)x();return D(e,y)}var _=\"-ms-\",z=\"-moz-\",G=\"-webkit-\",V=\"comm\",B=\"rule\",H=\"decl\",j=\"@keyframes\";function U(e,t){for(var n=\"\",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||\"\";return n}function W(e,t,n,r){switch(e.type){case\"@layer\":if(e.children.length)break;case\"@import\":case H:return e.return=e.return||e.value;case V:return\"\";case j:return e.return=e.value+\"{\"+U(e.children,r)+\"}\";case B:e.value=e.props.join(\",\")}return h(n=U(e.children,r))?e.return=e.value+\"{\"+n+\"}\":\"\"}function $(e){return O(Y(\"\",null,null,null,[\"\"],e=M(e),0,[0],e))}function Y(e,t,n,r,i,a,s,u,p){for(var f=0,m=0,v=s,y=0,b=0,w=0,C=1,S=1,D=1,R=0,M=\"\",O=i,P=a,_=r,z=M;S;)switch(w=R,R=x()){case 40:if(108!=w&&58==d(z,v-1)){-1!=c(z+=l(k(R),\"&\",\"&\\f\"),\"&\\f\")&&(D=-1);break}case 34:case 39:case 91:z+=k(R);break;case 9:case 10:case 13:case 32:z+=I(w);break;case 92:z+=N(T()-1,7);continue;case 47:switch(A()){case 42:case 47:g(q(L(x(),T()),t,n),p);break;default:z+=\"/\"}break;case 123*C:u[f++]=h(z)*D;case 125*C:case 59:case 0:switch(R){case 0:case 125:S=0;case 59+m:-1==D&&(z=l(z,/\\f/g,\"\")),b>0&&h(z)-v&&g(b>32?Q(z+\";\",r,n,v-1):Q(l(z,\" \",\"\")+\";\",r,n,v-2),p);break;case 59:z+=\";\";default:if(g(_=K(z,t,n,f,m,i,u,M,O=[],P=[],v),a),123===R)if(0===m)Y(z,t,_,_,O,a,v,u,P);else switch(99===y&&110===d(z,3)?100:y){case 100:case 108:case 109:case 115:Y(e,_,_,r&&g(K(e,_,_,0,0,i,u,M,i,O=[],v),P),i,P,v,u,r?O:P);break;default:Y(z,_,_,_,[\"\"],P,0,u,P)}}f=m=b=0,C=D=1,M=z=\"\",v=s;break;case 58:v=1+h(z),b=w;default:if(C<1)if(123==R)--C;else if(125==R&&0==C++&&125==E())continue;switch(z+=o(R),R*C){case 38:D=m>0?1:(z+=\"\\f\",-1);break;case 44:u[f++]=(h(z)-1)*D,D=1;break;case 64:45===A()&&(z+=k(x())),y=A(),m=v=h(M=z+=F(T())),R++;break;case 45:45===w&&2==h(z)&&(C=0)}}return a}function K(e,t,n,r,o,a,c,d,h,g,f){for(var m=o-1,v=0===o?a:[\"\"],y=p(v),b=0,w=0,S=0;b<r;++b)for(var E=0,x=u(e,m+1,m=i(w=c[b])),A=e;E<y;++E)(A=s(w>0?v[E]+\" \"+x:l(x,/&\\f/g,v[E])))&&(h[S++]=A);return C(e,t,n,0===o?B:d,h,g,f)}function q(e,t,n){return C(e,t,n,V,o(b),u(e,2,-2),0)}function Q(e,t,n,r){return C(e,t,n,H,u(e,0,r),u(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,i=0;r=i,i=A(),38===r&&12===i&&(t[n]=1),!R(i);)x();return D(e,y)},Z=new WeakMap,J=function(e){if(\"rule\"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;\"rule\"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var i=[],a=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(R(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=k(r);break;case 4:if(44===r){e[++n]=58===A()?\"&\\f\":\"\",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=x());return e}(M(e),t))}(t,i),s=n.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)e.props[c]=i[l]?a[l].replace(/&\\f/g,s[d]):s[d]+\" \"+a[l]}}},ee=function(e){if(\"decl\"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return=\"\",e.value=\"\")}};function te(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return G+\"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+z+e+_+e+e;case 6828:case 4268:return G+e+_+e+e;case 6165:return G+e+_+\"flex-\"+e+e;case 5187:return G+e+l(e,/(\\w+).+(:[^]+)/,G+\"box-$1$2\"+_+\"flex-$1$2\")+e;case 5443:return G+e+_+\"flex-item-\"+l(e,/flex-|-self/,\"\")+e;case 4675:return G+e+_+\"flex-line-pack\"+l(e,/align-content|flex-|-self/,\"\")+e;case 5548:return G+e+_+l(e,\"shrink\",\"negative\")+e;case 5292:return G+e+_+l(e,\"basis\",\"preferred-size\")+e;case 6060:return G+\"box-\"+l(e,\"-grow\",\"\")+G+e+_+l(e,\"grow\",\"positive\")+e;case 4554:return G+l(e,/([^-])(transform)/g,\"$1\"+G+\"$2\")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,G+\"$1\"),/(image-set)/,G+\"$1\"),e,\"\")+e;case 5495:case 3959:return l(e,/(image-set\\([^]*)/,G+\"$1$`$1\");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,G+\"box-pack:$3\"+_+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+G+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,G+\"$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(h(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,\"$1\"+G+\"$2-$3$1\"+z+(108==d(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~c(e,\"stretch\")?te(l(e,\"stretch\",\"fill-available\"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,h(e)-3-(~c(e,\"!important\")&&10))){case 107:return l(e,\":\",\":\"+G)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,\"$1\"+G+(45===d(e,14)?\"inline-\":\"\")+\"box$3$1\"+G+\"$2$3$1\"+_+\"$2box$3\")+e}break;case 5936:switch(d(e,t+11)){case 114:return G+e+_+l(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return G+e+_+l(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return G+e+_+l(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}return G+e+_+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case j:return U([S(e,{value:l(e.value,\"@\",\"@\"+G)})],r);case B:if(e.length)return function(e,t){return e.map(t).join(\"\")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\\w+|:read-\\w+)/.exec(e))?e[0]:e}(t)){case\":read-only\":case\":read-write\":return U([S(e,{props:[l(t,/:(read-\\w+)/,\":-moz-$1\")]})],r);case\"::placeholder\":return U([S(e,{props:[l(t,/:(plac\\w+)/,\":\"+G+\"input-$1\")]}),S(e,{props:[l(t,/:(plac\\w+)/,\":-moz-$1\")]}),S(e,{props:[l(t,/:(plac\\w+)/,_+\"input-$1\")]})],r)}return\"\"}))}}],re=function(e){var t=e.key;if(\"css\"===t){var n=document.querySelectorAll(\"style[data-emotion]:not([data-s])\");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute(\"data-emotion\").indexOf(\" \")&&(document.head.appendChild(e),e.setAttribute(\"data-s\",\"\"))}))}var i,o,a=e.stylisPlugins||ne,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^=\"'+t+' \"]'),(function(e){for(var t=e.getAttribute(\"data-emotion\").split(\" \"),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,d,u,h,g=[W,(h=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&h(e)})],f=(d=[J,ee].concat(a,g),u=p(d),function(e,t,n,r){for(var i=\"\",o=0;o<u;o++)i+=d[o](e,t,n,r)||\"\";return i});o=function(e,t,n,r){c=n,U($(e?e+\"{\"+t.styles+\"}\":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(l),m}},6289:(e,t,n)=>{\"use strict\";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},2977:(e,t,n)=>{\"use strict\";n.d(t,{C:()=>c,T:()=>u,a:()=>p,i:()=>s,w:()=>d});var r=n(9094),i=n(4300),o=n(8168),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=(n(3451),n(1287),!0),l=r.createContext(\"undefined\"!=typeof HTMLElement?(0,i.A)({key:\"css\"}):null),c=l.Provider,d=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)}))};s||(d=function(e){return function(t){var n=(0,r.useContext)(l);return null===n?(n=(0,i.A)({key:\"css\"}),r.createElement(l.Provider,{value:n},e(t,n))):e(t,n)}});var u=r.createContext({}),h=a((function(e){return a((function(t){return function(e,t){return\"function\"==typeof t?t(e):(0,o.A)({},e,t)}(e,t)}))})),p=function(e){var t=r.useContext(u);return e.theme!==t&&(t=h(t)(e.theme)),r.createElement(u.Provider,{value:t},e.children)}},7437:(e,t,n)=>{\"use strict\";n.d(t,{AH:()=>c,i7:()=>d,mL:()=>l});var r=n(2977),i=n(9094),o=n(41),a=n(1287),s=n(3451),l=(n(4300),n(4146),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,d=l.name,u=l.styles,h=l.next;void 0!==h;)d+=\" \"+h.name,u+=h.styles,h=h.next;var p=!0===t.compat,g=t.insert(\"\",{name:d,styles:u},t.sheet,p);return p?null:i.createElement(\"style\",((c={})[\"data-emotion\"]=t.key+\"-global \"+d,c.dangerouslySetInnerHTML={__html:g},c.nonce=t.sheet.nonce,c))}var f=i.useRef();return(0,a.i)((function(){var e=t.key+\"-global\",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion=\"'+e+\" \"+l.name+'\"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute(\"data-emotion\",e),n.hydrate([i])),f.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=f.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert(\"\",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var d=function(){var e=c.apply(void 0,arguments),t=\"animation-\"+e.name;return{name:t,styles:\"@keyframes \"+t+\"{\"+e.styles+\"}\",anim:1,toString:function(){return\"_EMO_\"+this.name+\"_\"+this.styles+\"_EMO_\"}}}},3451:(e,t,n)=>{\"use strict\";n.d(t,{J:()=>g});var r={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},i=n(6289),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&\"boolean\"!=typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(o,\"-$&\").toLowerCase()})),d=function(e,t){switch(e){case\"animation\":case\"animationName\":if(\"string\"==typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||\"number\"!=typeof t||0===t?t:t+\"px\"};function u(e,t,n){if(null==n)return\"\";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case\"boolean\":return\"\";case\"object\":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+\";\"}return function(e,t,n){var r=\"\";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=u(e,t,n[i])+\";\";else for(var o in n){var a=n[o];if(\"object\"!=typeof a)null!=t&&void 0!==t[a]?r+=o+\"{\"+t[a]+\"}\":l(a)&&(r+=c(o)+\":\"+d(o,a)+\";\");else if(!Array.isArray(a)||\"string\"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=u(e,t,a);switch(o){case\"animation\":case\"animationName\":r+=c(o)+\":\"+s+\";\";break;default:r+=o+\"{\"+s+\"}\"}}else for(var h=0;h<a.length;h++)l(a[h])&&(r+=c(o)+\":\"+d(o,a[h])+\";\")}return r}(e,t,n);case\"function\":if(void 0!==e){var i=h,o=n(e);return h=i,u(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var h,p=/label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g,g=function(e,t,n){if(1===e.length&&\"object\"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i=\"\";h=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=u(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=u(n,t,e[a]),r&&(i+=o[a]);p.lastIndex=0;for(var s,l=\"\";null!==(s=p.exec(i));)l+=\"-\"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:h}}},1287:(e,t,n)=>{\"use strict\";n.d(t,{i:()=>a,s:()=>o});var r=n(9094),i=!!r.useInsertionEffect&&r.useInsertionEffect,o=i||function(e){return e()},a=i||r.useLayoutEffect},41:(e,t,n)=>{\"use strict\";function r(e,t,n){var r=\"\";return n.split(\" \").forEach((function(n){void 0!==e[n]?t.push(e[n]+\";\"):r+=n+\" \"})),r}n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});var i=function(e,t,n){var r=e.key+\"-\"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+\"-\"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?\".\"+r:\"\",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},684:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"m10 17 5-5-5-5z\"}),\"ArrowRight\")},9781:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}),\"Close\")},4851:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z\"}),\"DownloadOutlined\")},2048:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"}),\"ExpandMore\")},891:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"}),\"InfoOutlined\")},7986:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z\"}),\"KeyboardArrowLeft\")},261:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z\"}),\"KeyboardArrowRight\")},4745:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"}),\"Search\")},3888:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5M7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3\"}),\"ToggleOff\")},244:(e,t,n)=>{\"use strict\";var r=n(4994);t.A=void 0;var i=r(n(2032)),o=n(4848);t.A=(0,i.default)((0,o.jsx)(\"path\",{d:\"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5m0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3\"}),\"ToggleOn\")},2032:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4444)},4254:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.server_context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.suspense_list\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.for(\"react.offscreen\");Symbol.for(\"react.module.reference\")},7621:(e,t,n)=>{\"use strict\";n(4254)},3478:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>_});var r=n(8168),i=n(8587),o=n(5697),a=n(4521),s=n(4188),l=n(3571),c=n(8749),d=n(771);const u={black:\"#000\",white:\"#fff\"},h={50:\"#fafafa\",100:\"#f5f5f5\",200:\"#eeeeee\",300:\"#e0e0e0\",400:\"#bdbdbd\",500:\"#9e9e9e\",600:\"#757575\",700:\"#616161\",800:\"#424242\",900:\"#212121\",A100:\"#f5f5f5\",A200:\"#eeeeee\",A400:\"#bdbdbd\",A700:\"#616161\"},p={50:\"#f3e5f5\",100:\"#e1bee7\",200:\"#ce93d8\",300:\"#ba68c8\",400:\"#ab47bc\",500:\"#9c27b0\",600:\"#8e24aa\",700:\"#7b1fa2\",800:\"#6a1b9a\",900:\"#4a148c\",A100:\"#ea80fc\",A200:\"#e040fb\",A400:\"#d500f9\",A700:\"#aa00ff\"},g={50:\"#ffebee\",100:\"#ffcdd2\",200:\"#ef9a9a\",300:\"#e57373\",400:\"#ef5350\",500:\"#f44336\",600:\"#e53935\",700:\"#d32f2f\",800:\"#c62828\",900:\"#b71c1c\",A100:\"#ff8a80\",A200:\"#ff5252\",A400:\"#ff1744\",A700:\"#d50000\"},f={50:\"#fff3e0\",100:\"#ffe0b2\",200:\"#ffcc80\",300:\"#ffb74d\",400:\"#ffa726\",500:\"#ff9800\",600:\"#fb8c00\",700:\"#f57c00\",800:\"#ef6c00\",900:\"#e65100\",A100:\"#ffd180\",A200:\"#ffab40\",A400:\"#ff9100\",A700:\"#ff6d00\"},m={50:\"#e3f2fd\",100:\"#bbdefb\",200:\"#90caf9\",300:\"#64b5f6\",400:\"#42a5f5\",500:\"#2196f3\",600:\"#1e88e5\",700:\"#1976d2\",800:\"#1565c0\",900:\"#0d47a1\",A100:\"#82b1ff\",A200:\"#448aff\",A400:\"#2979ff\",A700:\"#2962ff\"},v={50:\"#e1f5fe\",100:\"#b3e5fc\",200:\"#81d4fa\",300:\"#4fc3f7\",400:\"#29b6f6\",500:\"#03a9f4\",600:\"#039be5\",700:\"#0288d1\",800:\"#0277bd\",900:\"#01579b\",A100:\"#80d8ff\",A200:\"#40c4ff\",A400:\"#00b0ff\",A700:\"#0091ea\"},y={50:\"#e8f5e9\",100:\"#c8e6c9\",200:\"#a5d6a7\",300:\"#81c784\",400:\"#66bb6a\",500:\"#4caf50\",600:\"#43a047\",700:\"#388e3c\",800:\"#2e7d32\",900:\"#1b5e20\",A100:\"#b9f6ca\",A200:\"#69f0ae\",A400:\"#00e676\",A700:\"#00c853\"},b=[\"mode\",\"contrastThreshold\",\"tonalOffset\"],w={text:{primary:\"rgba(0, 0, 0, 0.87)\",secondary:\"rgba(0, 0, 0, 0.6)\",disabled:\"rgba(0, 0, 0, 0.38)\"},divider:\"rgba(0, 0, 0, 0.12)\",background:{paper:u.white,default:u.white},action:{active:\"rgba(0, 0, 0, 0.54)\",hover:\"rgba(0, 0, 0, 0.04)\",hoverOpacity:.04,selected:\"rgba(0, 0, 0, 0.08)\",selectedOpacity:.08,disabled:\"rgba(0, 0, 0, 0.26)\",disabledBackground:\"rgba(0, 0, 0, 0.12)\",disabledOpacity:.38,focus:\"rgba(0, 0, 0, 0.12)\",focusOpacity:.12,activatedOpacity:.12}},C={text:{primary:u.white,secondary:\"rgba(255, 255, 255, 0.7)\",disabled:\"rgba(255, 255, 255, 0.5)\",icon:\"rgba(255, 255, 255, 0.5)\"},divider:\"rgba(255, 255, 255, 0.12)\",background:{paper:\"#121212\",default:\"#121212\"},action:{active:u.white,hover:\"rgba(255, 255, 255, 0.08)\",hoverOpacity:.08,selected:\"rgba(255, 255, 255, 0.16)\",selectedOpacity:.16,disabled:\"rgba(255, 255, 255, 0.3)\",disabledBackground:\"rgba(255, 255, 255, 0.12)\",disabledOpacity:.38,focus:\"rgba(255, 255, 255, 0.12)\",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:\"light\"===t?e.light=(0,d.a)(e.main,i):\"dark\"===t&&(e.dark=(0,d.e$)(e.main,o)))}const E=[\"fontFamily\",\"fontSize\",\"fontWeightLight\",\"fontWeightRegular\",\"fontWeightMedium\",\"fontWeightBold\",\"htmlFontSize\",\"allVariants\",\"pxToRem\"],x={textTransform:\"uppercase\"},A='\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';function T(e,t){const n=\"function\"==typeof t?t(e):t,{fontFamily:o=A,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:h=16,allVariants:p,pxToRem:g}=n,f=(0,i.A)(n,E),m=s/14,v=g||(e=>e/h*m+\"rem\"),y=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===A?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5+\"em\")}:{},a,p);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(d,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(d,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(d,14,1.75,.4,x),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,x),inherit:{fontFamily:\"inherit\",fontWeight:\"inherit\",fontSize:\"inherit\",lineHeight:\"inherit\",letterSpacing:\"inherit\"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:v,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:u},b),f,{clone:!1})}function D(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(\",\")}const R=[\"none\",D(0,2,1,-1,0,1,1,0,0,1,3,0),D(0,3,1,-2,0,2,2,0,0,1,5,0),D(0,3,3,-2,0,3,4,0,0,1,8,0),D(0,2,4,-1,0,4,5,0,0,1,10,0),D(0,3,5,-1,0,5,8,0,0,1,14,0),D(0,3,5,-1,0,6,10,0,0,1,18,0),D(0,4,5,-2,0,7,10,1,0,2,16,1),D(0,5,5,-3,0,8,10,1,0,3,14,2),D(0,5,6,-3,0,9,12,1,0,3,16,2),D(0,6,6,-3,0,10,14,1,0,4,18,3),D(0,6,7,-4,0,11,15,1,0,4,20,3),D(0,7,8,-4,0,12,17,2,0,5,22,4),D(0,7,8,-4,0,13,19,2,0,5,24,4),D(0,7,9,-4,0,14,21,2,0,5,26,4),D(0,8,9,-5,0,15,22,2,0,6,28,5),D(0,8,10,-5,0,16,24,2,0,6,30,5),D(0,8,11,-5,0,17,26,2,0,6,32,5),D(0,9,11,-5,0,18,28,2,0,7,34,6),D(0,9,12,-6,0,19,29,2,0,7,36,6),D(0,10,13,-6,0,20,31,3,0,8,38,7),D(0,10,13,-6,0,21,33,3,0,8,40,7),D(0,10,14,-6,0,22,35,3,0,8,42,7),D(0,11,14,-7,0,23,36,3,0,9,44,8),D(0,11,15,-7,0,24,38,3,0,9,46,8)],M=[\"duration\",\"easing\",\"delay\"],O={easeInOut:\"cubic-bezier(0.4, 0, 0.2, 1)\",easeOut:\"cubic-bezier(0.0, 0, 0.2, 1)\",easeIn:\"cubic-bezier(0.4, 0, 1, 1)\",sharp:\"cubic-bezier(0.4, 0, 0.6, 1)\"},k={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function P(e){const t=(0,r.A)({},O,e.easing),n=(0,r.A)({},k,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:(e=[\"all\"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,i.A)(r,M),(Array.isArray(e)?e:[e]).map((e=>`${e} ${\"string\"==typeof o?o:I(o)} ${a} ${\"string\"==typeof s?s:I(s)}`)).join(\",\")}},e,{easing:t,duration:n})}const L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},F=[\"breakpoints\",\"mixins\",\"spacing\",\"palette\",\"transitions\",\"typography\",\"shape\"];const _=function(e={},...t){const{mixins:n={},palette:E={},transitions:x={},typography:A={}}=e,D=(0,i.A)(e,F);if(e.vars)throw new Error((0,o.A)(18));const M=function(e){const{mode:t=\"light\",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(e=\"light\"){return\"dark\"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),E=e.secondary||function(e=\"light\"){return\"dark\"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),x=e.error||function(e=\"light\"){return\"dark\"===e?{main:g[500],light:g[300],dark:g[700]}:{main:g[700],light:g[400],dark:g[800]}}(t),A=e.info||function(e=\"light\"){return\"dark\"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),T=e.success||function(e=\"light\"){return\"dark\"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),D=e.warning||function(e=\"light\"){return\"dark\"===e?{main:f[400],light:f[300],dark:f[700]}:{main:\"#ed6c02\",light:f[500],dark:f[900]}}(t);function R(e){return(0,d.eM)(e,C.text.primary)>=n?C.text.primary:w.text.primary}const M=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(\"main\"))throw new Error((0,o.A)(11,t?` (${t})`:\"\",n));if(\"string\"!=typeof e.main)throw new Error((0,o.A)(12,t?` (${t})`:\"\",JSON.stringify(e.main)));return S(e,\"light\",i,s),S(e,\"dark\",a,s),e.contrastText||(e.contrastText=R(e.main)),e},O={dark:C,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},u),mode:t,primary:M({color:c,name:\"primary\"}),secondary:M({color:E,name:\"secondary\",mainShade:\"A400\",lightShade:\"A200\",darkShade:\"A700\"}),error:M({color:x,name:\"error\"}),warning:M({color:D,name:\"warning\"}),info:M({color:A,name:\"info\"}),success:M({color:T,name:\"success\"}),grey:h,contrastThreshold:n,getContrastText:R,augmentColor:M,tonalOffset:s},O[t]),l)}(E),O=(0,c.A)(e);let k=(0,a.A)(O,{mixins:(I=O.breakpoints,N=n,(0,r.A)({toolbar:{minHeight:56,[I.up(\"xs\")]:{\"@media (orientation: landscape)\":{minHeight:48}},[I.up(\"sm\")]:{minHeight:64}}},N)),palette:M,shadows:R.slice(),typography:T(M,A),transitions:P(x),zIndex:(0,r.A)({},L)});var I,N;return k=(0,a.A)(k,D),k=t.reduce(((e,t)=>(0,a.A)(e,t)),k),k.unstable_sxConfig=(0,r.A)({},s.A,null==D?void 0:D.unstable_sxConfig),k.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},k}},2765:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=(0,n(3478).A)()},8312:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=\"$$material\"},9770:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(4438);const i=e=>(0,r.A)(e)&&\"classes\"!==e},4438:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}},1848:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>s});var r=n(6461),i=n(2765),o=n(8312),a=n(9770);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},3541:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(4467),i=n(2765),o=n(8312);function a({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:i.A,themeId:o.A})}},8466:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(8659).A},5003:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(8168),i=n(9094),o=n(8587),a=n(4164),s=n(4111),l=n(8466),c=n(3541),d=n(1848),u=n(7553),h=n(7245);function p(e){return(0,h.Ay)(\"MuiSvgIcon\",e)}(0,u.A)(\"MuiSvgIcon\",[\"root\",\"colorPrimary\",\"colorSecondary\",\"colorAction\",\"colorError\",\"colorDisabled\",\"fontSizeInherit\",\"fontSizeSmall\",\"fontSizeMedium\",\"fontSizeLarge\"]);var g=n(4848);const f=[\"children\",\"className\",\"color\",\"component\",\"fontSize\",\"htmlColor\",\"inheritViewBox\",\"titleAccess\",\"viewBox\"],m=(0,d.Ay)(\"svg\",{name:\"MuiSvgIcon\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"inherit\"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,d,u,h,p,g;return{userSelect:\"none\",width:\"1em\",height:\"1em\",display:\"inline-block\",fill:t.hasSvgAsChild?void 0:\"currentColor\",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,\"fill\",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:\"inherit\",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||\"1.25rem\",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||\"1.5rem\",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||\"2.1875rem\"}[t.fontSize],color:null!=(u=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?u:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(e.vars||e).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[t.color]}})),v=i.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:\"MuiSvgIcon\"}),{children:d,className:u,color:h=\"inherit\",component:v=\"svg\",fontSize:y=\"medium\",htmlColor:b,inheritViewBox:w=!1,titleAccess:C,viewBox:S=\"0 0 24 24\"}=n,E=(0,o.A)(n,f),x=i.isValidElement(d)&&\"svg\"===d.type,A=(0,r.A)({},n,{color:h,component:v,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:S,hasSvgAsChild:x}),T={};w||(T.viewBox=S);const D=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:[\"root\",\"inherit\"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,p,r)})(A);return(0,g.jsxs)(m,(0,r.A)({as:v,className:(0,a.A)(D.root,u),focusable:\"false\",color:b,\"aria-hidden\":!C||void 0,role:C?\"img\":void 0,ref:t},T,E,x&&d.props,{ownerState:A,children:[x?d.props.children:d,C?(0,g.jsx)(\"title\",{children:C}):null]}))}));v.muiName=\"SvgIcon\";const y=v;function b(e,t){function n(n,i){return(0,g.jsx)(y,(0,r.A)({\"data-testid\":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=y.muiName,i.memo(i.forwardRef(n))}},4316:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(4965).A},4444:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>d.A,ownerWindow:()=>u.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>C,unstable_useEnhancedEffect:()=>g.A,unstable_useId:()=>f,unsupportedProp:()=>m,useControlled:()=>v.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var r=n(2067),i=n(8466);const o=n(9941).A;var a=n(5003),s=n(4316);const l=function(e,t){return()=>null};var c=n(5602),d=n(6248),u=n(3749);n(8168);const h=function(e,t){return()=>null},p=n(3721).A;var g=n(2778);const f=n(4953).A,m=function(e,t,n,r,i){return null};var v=n(1159),y=n(3034),b=n(6852),w=n(873);const C={configure:e=>{r.A.configure(e)}}},5602:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(9094);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},6248:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(6249).A},3749:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(1489).A},1159:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(3833).A},2778:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(173).A},3034:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(6111).A},6852:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(4871).A},873:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(9094),i=n(2640);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,\"datetime-local\":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function d(){o=!1}function u(){\"hidden\"===this.visibilityState&&a&&(o=!0)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener(\"keydown\",c,!0),t.addEventListener(\"mousedown\",d,!0),t.addEventListener(\"pointerdown\",d,!0),t.addEventListener(\"touchstart\",d,!0),t.addEventListener(\"visibilitychange\",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(\":focus-visible\")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!(\"INPUT\"!==n||!l[t]||e.readOnly)||\"TEXTAREA\"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},9940:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o}),n(9094);var r=n(7437),i=n(4848);function o(e){const{styles:t,defaultTheme:n={}}=e,o=\"function\"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},2532:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{GlobalStyles:()=>E.A,StyledEngineProvider:()=>S,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>x,internal_processStyles:()=>A,keyframes:()=>y.i7});var r=n(8168),i=n(9094),o=n(6289),a=/^((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|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)-.*))$/,s=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(2977),c=n(41),d=n(3451),u=n(1287),h=s,p=function(e){return\"theme\"!==e},g=function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96?h:p},f=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return\"function\"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,u.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var o,a,s=t.__emotion_real===t,u=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=f(t,n,s),p=h||g(u),v=!p(\"as\");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push(\"label:\"+o+\";\"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,C=1;C<w;C++)b.push(y[C],y[0][C])}var S=(0,l.w)((function(e,t,n){var r=v&&e.as||u,o=\"\",s=[],f=e;if(null==e.theme){for(var y in f={},e)f[y]=e[y];f.theme=i.useContext(l.T)}\"string\"==typeof e.className?o=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(o=e.className+\" \");var w=(0,d.J)(b.concat(s),t.registered,f);o+=t.key+\"-\"+w.name,void 0!==a&&(o+=\" \"+a);var C=v&&void 0===h?g(r):p,S={};for(var E in e)v&&\"as\"===E||C(E)&&(S[E]=e[E]);return S.className=o,S.ref=n,i.createElement(i.Fragment,null,i.createElement(m,{cache:t,serialized:w,isStringTag:\"string\"==typeof r}),i.createElement(r,S))}));return S.displayName=void 0!==o?o:\"Styled(\"+(\"string\"==typeof u?u:u.displayName||u.name||\"Component\")+\")\",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=u,S.__emotion_styles=b,S.__emotion_forwardProp=h,Object.defineProperty(S,\"toString\",{value:function(){return\".\"+a}}),S.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:f(S,i,!0)})).apply(void 0,b)},S}}.bind();[\"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\",\"marquee\",\"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\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"].forEach((function(e){v[e]=v(e)}));var y=n(7437),b=n(4300),w=n(4848);let C;function S(e){const{injectFirst:t,children:n}=e;return t&&C?(0,w.jsx)(l.C,{value:C,children:n}):n}\"object\"==typeof document&&(C=(0,b.A)({key:\"css\",prepend:!0}));var E=n(9940);function x(e,t){return v(e,t)}const A=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},771:(e,t,n)=>{\"use strict\";var r=n(4994);t.X4=function(e,t){return e=s(e),t=a(t),\"rgb\"!==e.type&&\"hsl\"!==e.type||(e.type+=\"a\"),\"color\"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t.e$=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf(\"hsl\"))e.values[2]*=1-t;else if(-1!==e.type.indexOf(\"rgb\")||-1!==e.type.indexOf(\"color\"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.eM=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf(\"hsl\"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf(\"rgb\"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf(\"color\"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var i=r(n(2108)),o=r(n(4966));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){if(e.type)return e;if(\"#\"===e.charAt(0))return s(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?\"a\":\"\"}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(\", \")})`:\"\"}(e));const t=e.indexOf(\"(\"),n=e.substring(0,t);if(-1===[\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if(\"color\"===n){if(o=o.split(\" \"),r=o.shift(),4===o.length&&\"/\"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(\",\");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function l(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf(\"rgb\")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf(\"hsl\")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf(\"color\")?`${n} ${r.join(\" \")}`:`${r.join(\", \")}`,`${t}(${r})`}function c(e){let t=\"hsl\"===(e=s(e)).type||\"hsla\"===e.type?s(function(e){e=s(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let c=\"rgb\";const d=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return\"hsla\"===e.type&&(c+=\"a\",d.push(t[3])),l({type:c,values:d})}(e)).values:e.values;return t=t.map((t=>(\"color\"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},6461:(e,t,n)=>{\"use strict\";var r=n(4994);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=f,rootShouldForwardProp:r=g,slotShouldForwardProp:l=g}=e,d=e=>(0,c.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return d.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:p,skipVariantsResolver:f,skipSx:w,overridesResolver:C=y(m(p))}=c,S=(0,o.default)(c,h),E=void 0!==f?f:p&&\"Root\"!==p&&\"root\"!==p||!1,x=w||!1;let A=g;\"Root\"===p||\"root\"===p?A=r:p?A=l:function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const T=(0,a.default)(e,(0,i.default)({shouldForwardProp:A,label:void 0},S)),D=e=>\"function\"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,R=(r,...o)=>{let a=D(r);const s=o?o.map(D):[];u&&C&&s.push((e=>{const r=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;const o=r.components[u].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=b(n,(0,i.default)({},e,{theme:r}))})),C(e,a)})),u&&!E&&s.push((e=>{var r;const o=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[u])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),x||s.push(d);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill(\"\");a=[...r,...e],a.raw=[...r.raw,...e]}const c=T(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(R.withConfig=T.withConfig),R}};var i=r(n(4634)),o=r(n(4893)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(\"default\"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2532)),s=n(819),l=(r(n(8217)),r(n(1172)),r(n(3142))),c=r(n(3857));const d=[\"ownerState\"],u=[\"variants\"],h=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function p(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function g(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}const f=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,d);const a=\"function\"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&\"object\"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,u);return e.forEach((e=>{let o=!0;\"function\"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push(\"function\"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},9452:(e,t,n)=>{\"use strict\";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>d,vf:()=>l,zu:()=>i});var r=n(4521);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:[\"xs\",\"sm\",\"md\",\"lg\",\"xl\"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if(\"object\"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o))r[e.up(o)]=n(t[o],o);else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),i)}function d({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if(\"object\"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):\"object\"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},8336:(e,t,n)=>{\"use strict\";function r(e,t){const n=this;return n.vars&&\"function\"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\\[[^\\]]+\\])/,\"*:where($1)\")]:t}:n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},8094:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s});var r=n(8587),i=n(8168);const o=[\"values\",\"unit\",\"step\"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=\"px\",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),d=Object.keys(c);function u(e){return`@media (min-width:${\"number\"==typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${(\"number\"==typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=d.indexOf(r);return`@media (min-width:${\"number\"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&\"number\"==typeof t[d[i]]?t[d[i]]:r)-s/100}${n})`}return(0,i.A)({keys:d,values:c,up:u,down:h,between:p,only:function(e){return d.indexOf(e)+1<d.length?p(e,d[d.indexOf(e)+1]):u(e)},not:function(e){const t=d.indexOf(e);return 0===t?u(d[1]):t===d.length-1?h(d[t]):p(e,d[d.indexOf(e)+1]).replace(\"@media\",\"@media not all and\")},unit:n},l)}},8749:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(4521),a=n(8094);const s={borderRadius:4};var l=n(8248),c=n(3571),d=n(4188),u=n(8336);const h=[\"breakpoints\",\"palette\",\"spacing\",\"shape\"],p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:g,shape:f={}}=e,m=(0,i.A)(e,h),v=(0,a.A)(n),y=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return\"number\"==typeof n?`${n}px`:n})).join(\" \");return n.mui=!0,n}(g);let b=(0,o.A)({breakpoints:v,direction:\"ltr\",components:{},palette:(0,r.A)({mode:\"light\"},p),spacing:y,shape:(0,r.A)({},s,f)},m);return b.applyStyles=u.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},d.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},3142:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(8749),i=n(8094),o=n(8336)},4620:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(4521);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},8248:(e,t,n)=>{\"use strict\";n.d(t,{LX:()=>g,MA:()=>p,_W:()=>f,Lc:()=>v,Ms:()=>y});var r=n(9452),i=n(6481),o=n(4620);const a={m:\"margin\",p:\"padding\"},s={t:\"Top\",r:\"Right\",b:\"Bottom\",l:\"Left\",x:[\"Left\",\"Right\"],y:[\"Top\",\"Bottom\"]},l={marginX:\"mx\",marginY:\"my\",paddingX:\"px\",paddingY:\"py\"},c=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(\"\"),r=a[t],i=s[n]||\"\";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})(e)),t[e])}(),d=[\"m\",\"mt\",\"mr\",\"mb\",\"ml\",\"mx\",\"my\",\"margin\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\",\"marginX\",\"marginY\",\"marginInline\",\"marginInlineStart\",\"marginInlineEnd\",\"marginBlock\",\"marginBlockStart\",\"marginBlockEnd\"],u=[\"p\",\"pt\",\"pr\",\"pb\",\"pl\",\"px\",\"py\",\"padding\",\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",\"paddingX\",\"paddingY\",\"paddingInline\",\"paddingInlineStart\",\"paddingInlineEnd\",\"paddingBlock\",\"paddingBlockStart\",\"paddingBlockEnd\"],h=[...d,...u];function p(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return\"number\"==typeof a?e=>\"string\"==typeof e?e:a*e:Array.isArray(a)?e=>\"string\"==typeof e?e:a[e]:\"function\"==typeof a?a:()=>{}}function g(e){return p(e,\"spacing\",8)}function f(e,t){if(\"string\"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:\"number\"==typeof n?-n:`-${n}`}function m(e,t){const n=g(e.theme);return Object.keys(e).map((i=>function(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=f(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}(e,t,i,n))).reduce(o.A,{})}function v(e){return m(e,d)}function y(e){return m(e,u)}function b(e){return m(e,h)}v.propTypes={},v.filterProps=d,y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=h},6481:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(8659),i=n(9452);function o(e,t,n=!0){if(!t||\"string\"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(\".\").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(\".\").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i=\"function\"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],d=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(d,l,e);return e===i&&\"string\"==typeof e&&(i=a(d,l,`${t}${\"default\"===e?\"\":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},4188:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>P});var r=n(8248),i=n(6481),o=n(4620);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(9452);function l(e){return\"number\"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:\"borders\",transform:t})}const d=c(\"border\",l),u=c(\"borderTop\",l),h=c(\"borderRight\",l),p=c(\"borderBottom\",l),g=c(\"borderLeft\",l),f=c(\"borderColor\"),m=c(\"borderTopColor\"),v=c(\"borderRightColor\"),y=c(\"borderBottomColor\"),b=c(\"borderLeftColor\"),w=c(\"outline\",l),C=c(\"outlineColor\"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,\"shape.borderRadius\",4,\"borderRadius\"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};S.propTypes={},S.filterProps=[\"borderRadius\"],a(d,u,h,p,g,f,m,v,y,b,S,w,C);const E=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"gap\"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};E.propTypes={},E.filterProps=[\"gap\"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"columnGap\"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=[\"columnGap\"];const A=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"rowGap\"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};function T(e,t){return\"grey\"===t?t:e}function D(e){return e<=1&&0!==e?100*e+\"%\":e}A.propTypes={},A.filterProps=[\"rowGap\"],a(E,x,A,(0,i.Ay)({prop:\"gridColumn\"}),(0,i.Ay)({prop:\"gridRow\"}),(0,i.Ay)({prop:\"gridAutoFlow\"}),(0,i.Ay)({prop:\"gridAutoColumns\"}),(0,i.Ay)({prop:\"gridAutoRows\"}),(0,i.Ay)({prop:\"gridTemplateColumns\"}),(0,i.Ay)({prop:\"gridTemplateRows\"}),(0,i.Ay)({prop:\"gridTemplateAreas\"}),(0,i.Ay)({prop:\"gridArea\"})),a((0,i.Ay)({prop:\"color\",themeKey:\"palette\",transform:T}),(0,i.Ay)({prop:\"bgcolor\",cssProperty:\"backgroundColor\",themeKey:\"palette\",transform:T}),(0,i.Ay)({prop:\"backgroundColor\",themeKey:\"palette\",transform:T}));const R=(0,i.Ay)({prop:\"width\",transform:D}),M=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?\"px\"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:D(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};M.filterProps=[\"maxWidth\"];const O=(0,i.Ay)({prop:\"minWidth\",transform:D}),k=(0,i.Ay)({prop:\"height\",transform:D}),I=(0,i.Ay)({prop:\"maxHeight\",transform:D}),N=(0,i.Ay)({prop:\"minHeight\",transform:D}),P=((0,i.Ay)({prop:\"size\",cssProperty:\"width\",transform:D}),(0,i.Ay)({prop:\"size\",cssProperty:\"height\",transform:D}),a(R,M,O,k,I,N,(0,i.Ay)({prop:\"boxSizing\"})),{border:{themeKey:\"borders\",transform:l},borderTop:{themeKey:\"borders\",transform:l},borderRight:{themeKey:\"borders\",transform:l},borderBottom:{themeKey:\"borders\",transform:l},borderLeft:{themeKey:\"borders\",transform:l},borderColor:{themeKey:\"palette\"},borderTopColor:{themeKey:\"palette\"},borderRightColor:{themeKey:\"palette\"},borderBottomColor:{themeKey:\"palette\"},borderLeftColor:{themeKey:\"palette\"},outline:{themeKey:\"borders\",transform:l},outlineColor:{themeKey:\"palette\"},borderRadius:{themeKey:\"shape.borderRadius\",style:S},color:{themeKey:\"palette\",transform:T},bgcolor:{themeKey:\"palette\",cssProperty:\"backgroundColor\",transform:T},backgroundColor:{themeKey:\"palette\",transform:T},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({\"@media print\":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:E},rowGap:{style:A},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:\"zIndex\"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:\"shadows\"},width:{transform:D},maxWidth:{style:M},minWidth:{transform:D},height:{transform:D},maxHeight:{transform:D},minHeight:{transform:D},boxSizing:{},fontFamily:{themeKey:\"typography\"},fontSize:{themeKey:\"typography\"},fontStyle:{themeKey:\"typography\"},fontWeight:{themeKey:\"typography\"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:\"typography\"}})},9599:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(8168),i=n(8587),o=n(4521),a=n(4188);const s=[\"sx\"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let d;return d=Array.isArray(t)?[a,...t]:\"function\"==typeof t?(...e)=>{const n=t(...e);return(0,o.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:d})}},3857:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(3571),i=n(9599),o=n(4188)},3571:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d,k:()=>l});var r=n(8659),i=n(4620),o=n(6481),a=n(9452),s=n(4188);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:d,transform:u,style:h}=l;if(null==t)return null;if(\"typography\"===d&&\"inherit\"===t)return{[e]:t};const p=(0,o.Yn)(n,d)||{};return h?h(s):(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(p,u,t);return t===n&&\"string\"==typeof t&&(n=(0,o.BO)(p,u,`${e}${\"default\"===t?\"\":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function d(n){let r=n;if(\"function\"==typeof n)r=n(l);else if(\"object\"!=typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let d=o;return Object.keys(r).forEach((n=>{const o=\"function\"==typeof(s=r[n])?s(l):s;var s;if(null!=o)if(\"object\"==typeof o)if(c[n])d=(0,i.A)(d,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?d=(0,i.A)(d,e):d[n]=t({sx:o,theme:l})}else d=(0,i.A)(d,e(n,o,l,c))})),(0,a.vf)(s,d)}return Array.isArray(o)?o.map(d):d(o)}}const c=l();c.filterProps=[\"sx\"];const d=c},2858:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(8749),i=n(3951);const o=(0,r.A)(),a=function(e=o){return(0,i.A)(e)}},7340:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(6311);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},4467:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(7340),i=n(2858);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);return o&&(a=a[o]||a),(0,r.A)({theme:a,name:t,props:e})}},3951:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(9094),i=n(2977);const o=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},5304:(e,t,n)=>{\"use strict\";t.A=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(\"default\"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(9094)),i=n(2532);function o(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},2067:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},8659:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(5697);function i(e){if(\"string\"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8217:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(8659)},6937:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},4966:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(6937)},4111:(e,t,n)=>{\"use strict\";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);\"\"!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(\" \")})),r}n.d(t,{A:()=>r})},9941:(e,t,n)=>{\"use strict\";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},4965:(e,t,n)=>{\"use strict\";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},4521:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a,Q:()=>i});var r=n(8168);function i(e){if(\"object\"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{\"__proto__\"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},819:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(4521)},5697:(e,t,n)=>{\"use strict\";function r(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let e=1;e<arguments.length;e+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[e]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}n.d(t,{A:()=>r})},2108:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(5697)},7245:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>o,li:()=>i});var r=n(2067);const i={active:\"active\",checked:\"checked\",completed:\"completed\",disabled:\"disabled\",error:\"error\",expanded:\"expanded\",focused:\"focused\",focusVisible:\"focusVisible\",open:\"open\",readOnly:\"readOnly\",required:\"required\",selected:\"selected\"};function o(e,t,n=\"Mui\"){const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},7553:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(7245);function i(e,t,n=\"Mui\"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},1172:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(5492);const i=/^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||\"\"}function a(e,t=\"\"){return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(\"\"!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if(\"string\"==typeof e)return e;if(\"function\"==typeof e)return a(e,\"Component\");if(\"object\"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,\"ForwardRef\");case r.Memo:return s(e,e.type,\"memo\");default:return}}}},7064:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.server_context\");var n=Symbol.for(\"react.forward_ref\"),r=(Symbol.for(\"react.suspense\"),Symbol.for(\"react.suspense_list\"),Symbol.for(\"react.memo\"));Symbol.for(\"react.lazy\"),Symbol.for(\"react.offscreen\");Symbol.for(\"react.module.reference\"),t.ForwardRef=n,t.Memo=r},5492:(e,t,n)=>{\"use strict\";e.exports=n(7064)},6249:(e,t,n)=>{\"use strict\";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},1489:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(6249);function i(e){return(0,r.A)(e).defaultView||window}},6311:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(8168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},3721:(e,t,n)=>{\"use strict\";function r(e,t){\"function\"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},3833:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(9094);function i({controlled:e,default:t,name:n,state:i=\"value\"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},173:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(9094);const i=\"undefined\"!=typeof window?r.useLayoutEffect:r.useEffect},6111:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(9094),i=n(173);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},4871:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(9094),i=n(3721);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.A)(e,t)}))}),e)}},4953:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(9094);let i=0;const o=r[\"useId\".toString()];function a(e){if(void 0!==o){const t=o();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),o=e||t;return r.useEffect((()=>{null==t&&(i+=1,n(`mui-${i}`))}),[t]),o}(e)}},2640:(e,t,n)=>{\"use strict\";n.d(t,{E:()=>a,A:()=>s});var r=n(9094);const i={},o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(void 0)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},955:function(e,t,n){var r;e.exports=(r=n(9021),n(754),n(4636),n(9506),n(7165),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],d=[],u=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var g=r^r<<1^r<<2^r<<3^r<<4;g=g>>>8^255&g^99,i[n]=g,o[g]=n;var f=e[n],m=e[f],v=e[m],y=257*e[g]^16843008*g;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*m^257*f^16843008*n,d[g]=y<<24|y>>>8,u[g]=y<<16|y>>>16,h[g]=y<<8|y>>>24,p[g]=y,n?(n=f^e[e[e[v^f]]],r^=e[e[r]]):n=r=1}}();var g=[0,1,2,4,8,16,32,64,128,27,54],f=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=g[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:d[i[c>>>24]]^u[i[c>>>16&255]]^h[i[c>>>8&255]]^p[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,h,p,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],h=e[t+3]^n[3],p=4,g=1;g<l;g++){var f=r[c>>>24]^i[d>>>16&255]^o[u>>>8&255]^a[255&h]^n[p++],m=r[d>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=r[u>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&d]^n[p++],y=r[h>>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&u]^n[p++];c=f,d=m,u=v,h=y}f=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[p++],m=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[p++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[p++],e[t]=f,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(f)}(),r.AES)},7165:function(e,t,n){var r,i,o,a,s,l,c,d,u,h,p,g,f,m,v,y,b,w,C;e.exports=(r=n(9021),n(9506),void(r.lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,c=i.enc,c.Utf8,d=c.Base64,u=i.algo.EvpKDF,h=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return\"string\"==typeof e?C:b}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),o.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=i.mode={},g=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=p.CBC=function(){var e=g.extend();function t(e,t,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)e[t+o]^=r[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);r.decryptBlock(e,n),t.call(this,e,n,i),this._prevBlock=o}}),e}(),m=(i.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],a=0;a<r;a+=4)o.push(i);var l=s.create(o,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:f,padding:m}),reset:function(){var e;h.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),v=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(d)},parse:function(e){var t,n=d.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},b=o.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return\"string\"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=s.random(8)),i)o=u.create({keySize:t+n,hasher:i}).compute(e,r);else var o=u.create({keySize:t+n}).compute(e,r);var a=s.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:r})}},C=o.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:w}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=b.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,b.decrypt.call(this,e,t,i.key,r)}}))))},9021:function(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if(\"undefined\"!=typeof window&&window.crypto&&(r=window.crypto),\"undefined\"!=typeof self&&self.crypto&&(r=self.crypto),\"undefined\"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&\"undefined\"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(477)}catch(e){}var i=function(){if(r){if(\"function\"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if(\"function\"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error(\"Native crypto module could not be used to get secure random number.\")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty(\"init\")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(\"toString\")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new c.init(t,e)}}),d=a.enc={},u=d.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join(\"\")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join(\"\")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error(\"Malformed UTF-8 data\")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},g=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){\"string\"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,d=e.min(4*l,o);if(l){for(var u=0;u<l;u+=a)this._doProcessBlock(i,u);n=i.splice(0,l),r.sigBytes-=d}return new c.init(n,d)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(s.Hasher=g.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),r)},754:function(e,t,n){var r,i,o;e.exports=(r=n(9021),o=(i=r).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join(\"\")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"},r.enc.Base64)},5178:function(e,t,n){e.exports=n(9021).enc.Utf8},9506:function(e,t,n){var r,i,o,a,s,l,c,d;e.exports=(d=n(9021),n(5471),n(1025),o=(i=(r=d).lib).Base,a=i.WordArray,l=(s=r.algo).MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,l=r.keySize,c=r.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var d=1;d<c;d++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*l,o}}),r.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},d.EvpKDF)},1025:function(e,t,n){var r,i,o;e.exports=(i=(r=n(9021)).lib.Base,o=r.enc.Utf8,void(r.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,\"string\"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},4636:function(e,t,n){var r;e.exports=(r=n(9021),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],g=e[t+3],f=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],C=e[t+10],S=e[t+11],E=e[t+12],x=e[t+13],A=e[t+14],T=e[t+15],D=o[0],R=o[1],M=o[2],O=o[3];D=c(D,R,M,O,a,7,s[0]),O=c(O,D,R,M,l,12,s[1]),M=c(M,O,D,R,p,17,s[2]),R=c(R,M,O,D,g,22,s[3]),D=c(D,R,M,O,f,7,s[4]),O=c(O,D,R,M,m,12,s[5]),M=c(M,O,D,R,v,17,s[6]),R=c(R,M,O,D,y,22,s[7]),D=c(D,R,M,O,b,7,s[8]),O=c(O,D,R,M,w,12,s[9]),M=c(M,O,D,R,C,17,s[10]),R=c(R,M,O,D,S,22,s[11]),D=c(D,R,M,O,E,7,s[12]),O=c(O,D,R,M,x,12,s[13]),M=c(M,O,D,R,A,17,s[14]),D=d(D,R=c(R,M,O,D,T,22,s[15]),M,O,l,5,s[16]),O=d(O,D,R,M,v,9,s[17]),M=d(M,O,D,R,S,14,s[18]),R=d(R,M,O,D,a,20,s[19]),D=d(D,R,M,O,m,5,s[20]),O=d(O,D,R,M,C,9,s[21]),M=d(M,O,D,R,T,14,s[22]),R=d(R,M,O,D,f,20,s[23]),D=d(D,R,M,O,w,5,s[24]),O=d(O,D,R,M,A,9,s[25]),M=d(M,O,D,R,g,14,s[26]),R=d(R,M,O,D,b,20,s[27]),D=d(D,R,M,O,x,5,s[28]),O=d(O,D,R,M,p,9,s[29]),M=d(M,O,D,R,y,14,s[30]),D=u(D,R=d(R,M,O,D,E,20,s[31]),M,O,m,4,s[32]),O=u(O,D,R,M,b,11,s[33]),M=u(M,O,D,R,S,16,s[34]),R=u(R,M,O,D,A,23,s[35]),D=u(D,R,M,O,l,4,s[36]),O=u(O,D,R,M,f,11,s[37]),M=u(M,O,D,R,y,16,s[38]),R=u(R,M,O,D,C,23,s[39]),D=u(D,R,M,O,x,4,s[40]),O=u(O,D,R,M,a,11,s[41]),M=u(M,O,D,R,g,16,s[42]),R=u(R,M,O,D,v,23,s[43]),D=u(D,R,M,O,w,4,s[44]),O=u(O,D,R,M,E,11,s[45]),M=u(M,O,D,R,T,16,s[46]),D=h(D,R=u(R,M,O,D,p,23,s[47]),M,O,a,6,s[48]),O=h(O,D,R,M,y,10,s[49]),M=h(M,O,D,R,A,15,s[50]),R=h(R,M,O,D,m,21,s[51]),D=h(D,R,M,O,E,6,s[52]),O=h(O,D,R,M,g,10,s[53]),M=h(M,O,D,R,C,15,s[54]),R=h(R,M,O,D,l,21,s[55]),D=h(D,R,M,O,b,6,s[56]),O=h(O,D,R,M,T,10,s[57]),M=h(M,O,D,R,v,15,s[58]),R=h(R,M,O,D,x,21,s[59]),D=h(D,R,M,O,f,6,s[60]),O=h(O,D,R,M,S,10,s[61]),M=h(M,O,D,R,p,15,s[62]),R=h(R,M,O,D,w,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+R|0,o[2]=o[2]+M|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)},5471:function(e,t,n){var r,i,o,a,s,l,c,d;e.exports=(i=(r=d=n(9021)).lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(r<<5|r>>>27)+s+l[c];u+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(c),r.HmacSHA1=a._createHmacHelper(c),d.SHA1)},9067:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(2487),n.b),d=a()(i()),u=l()(c);d.push([e.id,`.ag-icon {\\n  font-family: var(--ag-icon-font-family);\\n  font-weight: var(--ag-icon-font-weight);\\n  color: var(--ag-icon-font-color);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  position: relative;\\n}\\n.ag-icon::before {\\n  content: \"\";\\n}\\n.ag-icon::after {\\n  background: transparent var(--ag-icon-image, none) center/contain no-repeat;\\n  display: var(--ag-icon-image-display);\\n  opacity: var(--ag-icon-image-opacity, 0.9);\\n  position: absolute;\\n  inset: 0;\\n  content: \"\";\\n}\\n\\n.ag-icon-aggregation {\\n  font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-aggregation::before {\\n  content: var(--ag-icon-font-code-aggregation, \"\\\\f101\");\\n  display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-aggregation::after {\\n  background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-arrows {\\n  font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-arrows::before {\\n  content: var(--ag-icon-font-code-arrows, \"\\\\f102\");\\n  display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-arrows::after {\\n  background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-asc {\\n  font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-asc::before {\\n  content: var(--ag-icon-font-code-asc, \"\\\\f103\");\\n  display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-asc::after {\\n  background-image: var(--ag-icon-image-asc, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-cancel {\\n  font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-cancel::before {\\n  content: var(--ag-icon-font-code-cancel, \"\\\\f104\");\\n  display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-cancel::after {\\n  background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-chart {\\n  font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-chart::before {\\n  content: var(--ag-icon-font-code-chart, \"\\\\f105\");\\n  display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-chart::after {\\n  background-image: var(--ag-icon-image-chart, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-checkbox-checked {\\n  font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-checkbox-checked::before {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-checkbox-checked::after {\\n  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-checkbox-indeterminate {\\n  font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-checkbox-indeterminate::before {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-checkbox-indeterminate::after {\\n  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-checkbox-unchecked {\\n  font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-checkbox-unchecked::before {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-checkbox-unchecked::after {\\n  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-color-picker {\\n  font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-color-picker::before {\\n  content: var(--ag-icon-font-code-color-picker, \"\\\\f109\");\\n  display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-color-picker::after {\\n  background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-columns {\\n  font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-columns::before {\\n  content: var(--ag-icon-font-code-columns, \"\\\\f10a\");\\n  display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-columns::after {\\n  background-image: var(--ag-icon-image-columns, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-contracted {\\n  font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-contracted::before {\\n  content: var(--ag-icon-font-code-contracted, \"\\\\f10b\");\\n  display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-contracted::after {\\n  background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-copy {\\n  font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-copy::before {\\n  content: var(--ag-icon-font-code-copy, \"\\\\f10c\");\\n  display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-copy::after {\\n  background-image: var(--ag-icon-image-copy, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-cross {\\n  font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-cross::before {\\n  content: var(--ag-icon-font-code-cross, \"\\\\f10d\");\\n  display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-cross::after {\\n  background-image: var(--ag-icon-image-cross, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-csv {\\n  font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-csv::before {\\n  content: var(--ag-icon-font-code-csv, \"\\\\f10e\");\\n  display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-csv::after {\\n  background-image: var(--ag-icon-image-csv, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-cut {\\n  font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-cut::before {\\n  content: var(--ag-icon-font-code-cut, \"\\\\f10f\");\\n  display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-cut::after {\\n  background-image: var(--ag-icon-image-cut, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-desc {\\n  font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-desc::before {\\n  content: var(--ag-icon-font-code-desc, \"\\\\f110\");\\n  display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-desc::after {\\n  background-image: var(--ag-icon-image-desc, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-excel {\\n  font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-excel::before {\\n  content: var(--ag-icon-font-code-excel, \"\\\\f111\");\\n  display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-excel::after {\\n  background-image: var(--ag-icon-image-excel, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-expanded {\\n  font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-expanded::before {\\n  content: var(--ag-icon-font-code-expanded, \"\\\\f112\");\\n  display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-expanded::after {\\n  background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-eye-slash {\\n  font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-eye-slash::before {\\n  content: var(--ag-icon-font-code-eye-slash, \"\\\\f113\");\\n  display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-eye-slash::after {\\n  background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-eye {\\n  font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-eye::before {\\n  content: var(--ag-icon-font-code-eye, \"\\\\f114\");\\n  display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-eye::after {\\n  background-image: var(--ag-icon-image-eye, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-filter {\\n  font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-filter::before {\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n  display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-filter::after {\\n  background-image: var(--ag-icon-image-filter, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-first {\\n  font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-first::before {\\n  content: var(--ag-icon-font-code-first, \"\\\\f116\");\\n  display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-first::after {\\n  background-image: var(--ag-icon-image-first, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-grip {\\n  font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-grip::before {\\n  content: var(--ag-icon-font-code-grip, \"\\\\f117\");\\n  display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-grip::after {\\n  background-image: var(--ag-icon-image-grip, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-group {\\n  font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-group::before {\\n  content: var(--ag-icon-font-code-group, \"\\\\f118\");\\n  display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-group::after {\\n  background-image: var(--ag-icon-image-group, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-last {\\n  font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-last::before {\\n  content: var(--ag-icon-font-code-last, \"\\\\f119\");\\n  display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-last::after {\\n  background-image: var(--ag-icon-image-last, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-left {\\n  font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-left::before {\\n  content: var(--ag-icon-font-code-left, \"\\\\f11a\");\\n  display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-left::after {\\n  background-image: var(--ag-icon-image-left, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-linked {\\n  font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-linked::before {\\n  content: var(--ag-icon-font-code-linked, \"\\\\f11b\");\\n  display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-linked::after {\\n  background-image: var(--ag-icon-image-linked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-loading {\\n  font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-loading::before {\\n  content: var(--ag-icon-font-code-loading, \"\\\\f11c\");\\n  display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-loading::after {\\n  background-image: var(--ag-icon-image-loading, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-maximize {\\n  font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-maximize::before {\\n  content: var(--ag-icon-font-code-maximize, \"\\\\f11d\");\\n  display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-maximize::after {\\n  background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-menu {\\n  font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-menu::before {\\n  content: var(--ag-icon-font-code-menu, \"\\\\f11e\");\\n  display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-menu::after {\\n  background-image: var(--ag-icon-image-menu, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-minimize {\\n  font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-minimize::before {\\n  content: var(--ag-icon-font-code-minimize, \"\\\\f11f\");\\n  display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-minimize::after {\\n  background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-next {\\n  font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-next::before {\\n  content: var(--ag-icon-font-code-next, \"\\\\f120\");\\n  display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-next::after {\\n  background-image: var(--ag-icon-image-next, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-none {\\n  font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-none::before {\\n  content: var(--ag-icon-font-code-none, \"\\\\f121\");\\n  display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-none::after {\\n  background-image: var(--ag-icon-image-none, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-not-allowed {\\n  font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-not-allowed::before {\\n  content: var(--ag-icon-font-code-not-allowed, \"\\\\f122\");\\n  display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-not-allowed::after {\\n  background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-paste {\\n  font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-paste::before {\\n  content: var(--ag-icon-font-code-paste, \"\\\\f123\");\\n  display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-paste::after {\\n  background-image: var(--ag-icon-image-paste, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-pin {\\n  font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-pin::before {\\n  content: var(--ag-icon-font-code-pin, \"\\\\f124\");\\n  display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-pin::after {\\n  background-image: var(--ag-icon-image-pin, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-pivot {\\n  font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-pivot::before {\\n  content: var(--ag-icon-font-code-pivot, \"\\\\f125\");\\n  display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-pivot::after {\\n  background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-previous {\\n  font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-previous::before {\\n  content: var(--ag-icon-font-code-previous, \"\\\\f126\");\\n  display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-previous::after {\\n  background-image: var(--ag-icon-image-previous, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-radio-button-off {\\n  font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-radio-button-off::before {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-radio-button-off::after {\\n  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-radio-button-on {\\n  font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-radio-button-on::before {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-radio-button-on::after {\\n  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-right {\\n  font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-right::before {\\n  content: var(--ag-icon-font-code-right, \"\\\\f129\");\\n  display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-right::after {\\n  background-image: var(--ag-icon-image-right, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-save {\\n  font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-save::before {\\n  content: var(--ag-icon-font-code-save, \"\\\\f12a\");\\n  display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-save::after {\\n  background-image: var(--ag-icon-image-save, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-small-down {\\n  font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-small-down::before {\\n  content: var(--ag-icon-font-code-small-down, \"\\\\f12b\");\\n  display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-small-down::after {\\n  background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-small-left {\\n  font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-small-left::before {\\n  content: var(--ag-icon-font-code-small-left, \"\\\\f12c\");\\n  display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-small-left::after {\\n  background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-small-right {\\n  font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-small-right::before {\\n  content: var(--ag-icon-font-code-small-right, \"\\\\f12d\");\\n  display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-small-right::after {\\n  background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-small-up {\\n  font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-small-up::before {\\n  content: var(--ag-icon-font-code-small-up, \"\\\\f12e\");\\n  display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-small-up::after {\\n  background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-tick {\\n  font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-tick::before {\\n  content: var(--ag-icon-font-code-tick, \"\\\\f12f\");\\n  display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-tick::after {\\n  background-image: var(--ag-icon-image-tick, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-tree-closed {\\n  font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-tree-closed::before {\\n  content: var(--ag-icon-font-code-tree-closed, \"\\\\f130\");\\n  display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-tree-closed::after {\\n  background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-tree-indeterminate {\\n  font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-tree-indeterminate::before {\\n  content: var(--ag-icon-font-code-tree-indeterminate, \"\\\\f131\");\\n  display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-tree-indeterminate::after {\\n  background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-tree-open {\\n  font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-tree-open::before {\\n  content: var(--ag-icon-font-code-tree-open, \"\\\\f132\");\\n  display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-tree-open::after {\\n  background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-unlinked {\\n  font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-unlinked::before {\\n  content: var(--ag-icon-font-code-unlinked, \"\\\\f133\");\\n  display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-unlinked::after {\\n  background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-up {\\n  font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-up::before {\\n  content: var(--ag-icon-font-code-up, \"\\\\f134\");\\n  display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-up::after {\\n  background-image: var(--ag-icon-image-up, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-down {\\n  font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-down::before {\\n  content: var(--ag-icon-font-code-down, \"\\\\f135\");\\n  display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-down::after {\\n  background-image: var(--ag-icon-image-down, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-plus {\\n  font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-plus::before {\\n  content: var(--ag-icon-font-code-plus, \"\\\\f136\");\\n  display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-plus::after {\\n  background-image: var(--ag-icon-image-plus, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-minus {\\n  font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-minus::before {\\n  content: var(--ag-icon-font-code-minus, \"\\\\f137\");\\n  display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-minus::after {\\n  background-image: var(--ag-icon-image-minus, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-menu-alt {\\n  font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-menu-alt::before {\\n  content: var(--ag-icon-font-code-menu-alt, \"\\\\f138\");\\n  display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-menu-alt::after {\\n  background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-settings {\\n  font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));\\n  font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));\\n  color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));\\n}\\n\\n.ag-icon-settings::before {\\n  content: var(--ag-icon-font-code-settings, \"\\\\f139\");\\n  display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));\\n}\\n\\n.ag-icon-settings::after {\\n  background-image: var(--ag-icon-image-settings, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-icon-row-drag::before {\\n  content: var(--ag-icon-font-code-grip);\\n}\\n\\n.ag-left-arrow::before {\\n  content: var(--ag-icon-font-code-left);\\n}\\n\\n.ag-right-arrow::before {\\n  content: var(--ag-icon-font-code-right);\\n}\\n\\n[class*=ag-theme-] {\\n  --ag-foreground-color: #000;\\n  --ag-data-color: var(--ag-foreground-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-header-foreground-color: var(--ag-secondary-foreground-color);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: transparent;\\n  --ag-tooltip-background-color: transparent;\\n  --ag-subheader-background-color: transparent;\\n  --ag-subheader-toolbar-background-color: transparent;\\n  --ag-control-panel-background-color: transparent;\\n  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);\\n  --ag-selected-row-background-color: #BBB;\\n  --ag-odd-row-background-color: var(--ag-background-color);\\n  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);\\n  --ag-menu-background-color: var(--ag-background-color);\\n  --ag-menu-border-color: var(--ag-border-color);\\n  --ag-panel-background-color: var(--ag-background-color);\\n  --ag-panel-border-color: var(--ag-border-color);\\n  --ag-row-hover-color: transparent;\\n  --ag-column-hover-color: transparent;\\n  --ag-range-selection-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-border-style: solid;\\n  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);\\n  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);\\n  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-width: 0;\\n  --ag-selected-tab-underline-transition-speed: 0s;\\n  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);\\n  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);\\n  --ag-header-cell-hover-background-color: transparent;\\n  --ag-header-cell-moving-background-color: var(--ag-background-color);\\n  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);\\n  --ag-value-change-delta-up-color: #43a047;\\n  --ag-value-change-delta-down-color: #e53935;\\n  --ag-chip-background-color: transparent;\\n  --ag-chip-border-color: var(--ag-chip-background-color);\\n  --ag-borders: solid 1px;\\n  --ag-border-color: rgba(0, 0, 0, 0.25);\\n  --ag-borders-critical: var(--ag-borders);\\n  --ag-borders-secondary: var(--ag-borders);\\n  --ag-secondary-border-color: var(--ag-border-color);\\n  --ag-row-border-style: solid;\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-row-border-width: 1px;\\n  --ag-cell-horizontal-border: solid transparent;\\n  --ag-borders-input: var(--ag-borders-secondary);\\n  --ag-input-border-color: var(--ag-secondary-border-color);\\n  --ag-borders-input-invalid: solid 2px;\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-borders-side-button: var(--ag-borders);\\n  --ag-border-radius: 0px;\\n  --ag-wrapper-border-radius: var(--ag-border-radius);\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-header-column-separator-display: none;\\n  --ag-header-column-separator-height: 100%;\\n  --ag-header-column-separator-width: 1px;\\n  --ag-header-column-separator-color: var(--ag-secondary-border-color);\\n  --ag-header-column-resize-handle-display: none;\\n  --ag-header-column-resize-handle-height: 50%;\\n  --ag-header-column-resize-handle-width: 1px;\\n  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);\\n  --ag-invalid-color: red;\\n  --ag-input-disabled-border-color: var(--ag-input-border-color);\\n  --ag-input-disabled-background-color: transparent;\\n  --ag-checkbox-background-color: transparent;\\n  --ag-checkbox-border-radius: var(--ag-border-radius);\\n  --ag-checkbox-checked-color: var(--ag-foreground-color);\\n  --ag-checkbox-unchecked-color: var(--ag-foreground-color);\\n  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-switch-background-color: var(--ag-background-color);\\n  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);\\n  --ag-toggle-button-border-width: 1px;\\n  --ag-toggle-button-height: var(--ag-icon-size);\\n  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);\\n  --ag-input-focus-box-shadow: none;\\n  --ag-input-focus-border-color: none;\\n  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);\\n  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 12px;\\n  --ag-icon-font-weight: normal;\\n  --ag-icon-font-color: var(--ag-foreground-color);\\n  --ag-icon-image-display: block;\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: var(--ag-grid-size);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);\\n  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);\\n  --ag-header-height: var(--ag-row-height);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 5);\\n  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));\\n  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));\\n  --ag-filter-tool-panel-group-indent: 16px;\\n  --ag-tab-min-width: 220px;\\n  --ag-menu-min-width: 181px;\\n  --ag-side-bar-panel-width: 200px;\\n  --ag-font-family: \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 14px;\\n  --ag-card-radius: var(--ag-border-radius);\\n  --ag-card-shadow: none;\\n  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\\n  --ag-advanced-filter-join-pill-color: #f08e8d;\\n  --ag-advanced-filter-column-pill-color: #a6e194;\\n  --ag-advanced-filter-option-pill-color: #f3c08b;\\n  --ag-advanced-filter-value-pill-color: #85c0e4;\\n}\\n\\n.ag-root-wrapper, .ag-sticky-top, .ag-dnd-ghost {\\n  background-color: var(--ag-background-color);\\n}\\n\\n[class*=ag-theme-] {\\n  -webkit-font-smoothing: antialiased;\\n  font-family: var(--ag-font-family);\\n  font-size: var(--ag-font-size);\\n  line-height: normal;\\n  color: var(--ag-foreground-color);\\n}\\n\\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\\n  display: block;\\n}\\n\\n.ag-aria-description-container {\\n  z-index: 9999;\\n  border: 0px;\\n  clip: rect(1px, 1px, 1px, 1px);\\n  height: 1px;\\n  width: 1px;\\n  position: absolute;\\n  overflow: hidden;\\n  padding: 0px;\\n  white-space: nowrap;\\n}\\n\\n.ag-hidden {\\n  display: none !important;\\n}\\n\\n.ag-invisible {\\n  visibility: hidden !important;\\n}\\n\\n.ag-no-transition {\\n  transition: none !important;\\n}\\n\\n.ag-drag-handle {\\n  cursor: grab;\\n}\\n\\n.ag-column-drop-wrapper {\\n  display: flex;\\n}\\n\\n.ag-column-drop-horizontal-half-width {\\n  display: inline-block;\\n  width: 50% !important;\\n}\\n\\n.ag-unselectable {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-selectable {\\n  -moz-user-select: text;\\n  -webkit-user-select: text;\\n  -ms-user-select: text;\\n  user-select: text;\\n}\\n\\n.ag-tab {\\n  position: relative;\\n}\\n\\n.ag-tab-guard {\\n  position: absolute;\\n  width: 0;\\n  height: 0;\\n  display: block;\\n}\\n\\n.ag-select-agg-func-popup {\\n  position: absolute;\\n}\\n\\n.ag-input-wrapper, .ag-picker-field-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  line-height: normal;\\n  position: relative;\\n}\\n\\n.ag-shake-left-to-right {\\n  animation-direction: alternate;\\n  animation-duration: 0.2s;\\n  animation-iteration-count: infinite;\\n  animation-name: ag-shake-left-to-right;\\n}\\n\\n@keyframes ag-shake-left-to-right {\\n  from {\\n    padding-left: 6px;\\n    padding-right: 2px;\\n  }\\n  to {\\n    padding-left: 2px;\\n    padding-right: 6px;\\n  }\\n}\\n.ag-root-wrapper {\\n  cursor: default;\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  white-space: normal;\\n}\\n.ag-root-wrapper.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-watermark {\\n  position: absolute;\\n  bottom: 20px;\\n  right: 25px;\\n  opacity: 0.7;\\n  transition: opacity 1s ease-out 3s;\\n  color: #9B9B9B;\\n}\\n.ag-watermark::before {\\n  content: \"\";\\n  background-image: url(${u});\\n  background-repeat: no-repeat;\\n  background-size: 170px 40px;\\n  display: block;\\n  height: 40px;\\n  width: 170px;\\n}\\n\\n.ag-watermark-text {\\n  opacity: 0.5;\\n  font-weight: bold;\\n  font-family: Impact, sans-serif;\\n  font-size: 19px;\\n  padding-left: 0.7rem;\\n}\\n\\n.ag-root-wrapper-body {\\n  display: flex;\\n  flex-direction: row;\\n}\\n.ag-root-wrapper-body.ag-layout-normal {\\n  flex: 1 1 auto;\\n  height: 0;\\n  min-height: 0;\\n}\\n\\n.ag-root {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  width: 0;\\n}\\n.ag-root.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-header-viewport,\\n.ag-floating-top-viewport,\\n.ag-body-viewport,\\n.ag-center-cols-viewport,\\n.ag-floating-bottom-viewport,\\n.ag-body-horizontal-scroll-viewport,\\n.ag-body-vertical-scroll-viewport,\\n.ag-virtual-list-viewport,\\n.ag-sticky-top-viewport {\\n  position: relative;\\n  height: 100%;\\n  min-width: 0px;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-body-viewport, .ag-center-cols-viewport {\\n  -ms-overflow-style: none !important;\\n  scrollbar-width: none !important;\\n}\\n.ag-body-viewport::-webkit-scrollbar, .ag-center-cols-viewport::-webkit-scrollbar {\\n  display: none !important;\\n}\\n\\n.ag-body-viewport {\\n  display: flex;\\n}\\n.ag-body-viewport.ag-layout-normal {\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-center-cols-viewport {\\n  min-height: 100%;\\n  width: 100%;\\n  overflow-x: auto;\\n}\\n\\n.ag-body-horizontal-scroll-viewport {\\n  overflow-x: scroll;\\n}\\n\\n.ag-body-vertical-scroll-viewport {\\n  overflow-y: scroll;\\n}\\n\\n.ag-virtual-list-viewport {\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-body-container,\\n.ag-pinned-right-cols-container,\\n.ag-center-cols-container,\\n.ag-pinned-left-cols-container,\\n.ag-floating-bottom-container,\\n.ag-body-horizontal-scroll-container,\\n.ag-body-vertical-scroll-container,\\n.ag-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-virtual-list-container,\\n.ag-sticky-top-container {\\n  position: relative;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-floating-bottom-container,\\n.ag-sticky-top-container {\\n  height: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-center-cols-container {\\n  display: block;\\n}\\n\\n.ag-pinned-right-cols-container {\\n  display: block;\\n}\\n\\n.ag-body-horizontal-scroll-container {\\n  height: 100%;\\n}\\n\\n.ag-body-vertical-scroll-container {\\n  width: 100%;\\n}\\n\\n.ag-full-width-container,\\n.ag-floating-top-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-sticky-top-full-width-container {\\n  position: absolute;\\n  top: 0px;\\n  pointer-events: none;\\n}\\n.ag-ltr .ag-full-width-container,\\n.ag-ltr .ag-floating-top-full-width-container,\\n.ag-ltr .ag-floating-bottom-full-width-container,\\n.ag-ltr .ag-sticky-top-full-width-container {\\n  left: 0;\\n}\\n.ag-rtl .ag-full-width-container,\\n.ag-rtl .ag-floating-top-full-width-container,\\n.ag-rtl .ag-floating-bottom-full-width-container,\\n.ag-rtl .ag-sticky-top-full-width-container {\\n  right: 0;\\n}\\n\\n.ag-full-width-container {\\n  width: 100%;\\n}\\n\\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\\n  display: inline-block;\\n  overflow: hidden;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-virtual-list-container {\\n  overflow: hidden;\\n}\\n\\n.ag-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  flex-direction: row !important;\\n  min-height: 0;\\n}\\n\\n.ag-body-horizontal-scroll,\\n.ag-body-vertical-scroll {\\n  min-height: 0;\\n  min-width: 0;\\n  display: flex;\\n  position: relative;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  position: absolute;\\n  bottom: 0;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {\\n  opacity: 0;\\n  transition: opacity 400ms;\\n  visibility: hidden;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {\\n  visibility: visible;\\n  opacity: 1;\\n}\\n\\n.ag-body-horizontal-scroll {\\n  width: 100%;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n  right: 0;\\n}\\n\\n.ag-body-vertical-scroll {\\n  height: 100%;\\n}\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  top: 0;\\n  z-index: 10;\\n}\\n.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  right: 0;\\n}\\n.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n}\\n\\n.ag-force-vertical-scroll {\\n  overflow-y: scroll !important;\\n}\\n\\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\\n  height: 100%;\\n  min-width: 0;\\n  overflow-x: scroll;\\n}\\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\\n  overflow-x: hidden;\\n}\\n\\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n}\\n\\n.ag-header-cell-sortable .ag-header-cell-label {\\n  cursor: pointer;\\n}\\n\\n.ag-header {\\n  display: flex;\\n  width: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-pinned-left-header {\\n  height: 100%;\\n}\\n\\n.ag-pinned-right-header {\\n  height: 100%;\\n}\\n\\n.ag-header-row {\\n  position: absolute;\\n}\\n\\n.ag-header-row:not(.ag-header-row-column-group) {\\n  overflow: hidden;\\n}\\n\\n.ag-header.ag-header-allow-overflow .ag-header-row {\\n  overflow: visible;\\n}\\n\\n.ag-header-cell {\\n  display: inline-flex;\\n  align-items: center;\\n  position: absolute;\\n  height: 100%;\\n}\\n\\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button, .ag-header-cell-filter-button {\\n  opacity: 1;\\n}\\n\\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\\n  transition: opacity 0.2s;\\n  opacity: 0;\\n}\\n\\n.ag-header-group-cell-label, .ag-header-cell-label {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-self: stretch;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-label {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-header-group-cell-label.ag-sticky-label {\\n  position: sticky;\\n  flex: none;\\n  max-width: 100%;\\n}\\n\\n.ag-header-group-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-header-cell-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {\\n  height: 100%;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-comp-wrapper {\\n  width: 100%;\\n}\\n\\n.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {\\n  white-space: normal;\\n}\\n\\n.ag-right-aligned-header .ag-header-cell-label {\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-header-cell-resize {\\n  position: absolute;\\n  z-index: 2;\\n  height: 100%;\\n  width: 8px;\\n  top: 0;\\n  cursor: ew-resize;\\n}\\n.ag-ltr .ag-header-cell-resize {\\n  right: -4px;\\n}\\n.ag-rtl .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize {\\n  right: -4px;\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-header-select-all {\\n  display: flex;\\n}\\n\\n.ag-header-cell-menu-button,\\n.ag-header-cell-filter-button,\\n.ag-side-button-button,\\n.ag-panel-title-bar-button,\\n.ag-floating-filter-button-button {\\n  cursor: pointer;\\n}\\n\\n.ag-column-moving .ag-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-group-cell {\\n  transition: left 0.2s, width 0.2s;\\n}\\n\\n.ag-column-panel {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 3 1 0px;\\n}\\n\\n.ag-column-select-header {\\n  position: relative;\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-column-select-header-icon {\\n  position: relative;\\n}\\n\\n.ag-column-select-header-filter-wrapper {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select-header-filter {\\n  width: 100%;\\n}\\n\\n.ag-column-select-list {\\n  flex: 1 1 0px;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop {\\n  position: relative;\\n  display: inline-flex;\\n  align-items: center;\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-column-drop-list {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell-text {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-column-drop-vertical {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  align-items: stretch;\\n  flex: 1 1 0px;\\n}\\n\\n.ag-column-drop-vertical-title-bar {\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-column-drop-vertical-list {\\n  position: relative;\\n  align-items: stretch;\\n  flex-grow: 1;\\n  flex-direction: column;\\n  overflow-x: auto;\\n}\\n.ag-column-drop-vertical-list > * {\\n  flex: none;\\n}\\n\\n.ag-column-drop-empty .ag-column-drop-vertical-list {\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  display: block;\\n}\\n\\n.ag-column-drop.ag-column-drop-horizontal {\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-cell-button {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-toolpanel {\\n  flex: 1 1 0px;\\n  min-width: 0;\\n}\\n\\n.ag-filter-toolpanel-header {\\n  position: relative;\\n}\\n\\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-filter-apply-panel {\\n  display: flex;\\n  justify-content: flex-end;\\n  overflow: hidden;\\n}\\n\\n.ag-row-animation .ag-row {\\n  transition: transform 0.4s, top 0.4s;\\n}\\n\\n.ag-row-animation .ag-row.ag-after-created {\\n  transition: transform 0.4s, top 0.4s, height 0.4s;\\n}\\n\\n.ag-row-no-animation .ag-row {\\n  transition: none;\\n}\\n\\n.ag-row {\\n  white-space: nowrap;\\n  width: 100%;\\n}\\n\\n.ag-row-loading {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-row-position-absolute {\\n  position: absolute;\\n}\\n\\n.ag-row-position-relative {\\n  position: relative;\\n}\\n\\n.ag-full-width-row {\\n  overflow: hidden;\\n  pointer-events: all;\\n}\\n\\n.ag-row-inline-editing {\\n  z-index: 1;\\n}\\n\\n.ag-row-dragging {\\n  z-index: 2;\\n}\\n\\n.ag-stub-cell {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-cell {\\n  display: inline-block;\\n  position: absolute;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n\\n.ag-cell-value {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-cell-value, .ag-group-value {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-cell-wrap-text {\\n  white-space: normal;\\n  word-break: break-all;\\n}\\n\\n.ag-cell-wrapper {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-cell-wrapper.ag-row-group {\\n  align-items: flex-start;\\n}\\n\\n.ag-sparkline-wrapper {\\n  position: absolute;\\n  height: 100%;\\n  width: 100%;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  height: 100%;\\n  align-items: center;\\n}\\n\\n.ag-cell-inline-editing {\\n  z-index: 1;\\n}\\n.ag-cell-inline-editing .ag-cell-wrapper,\\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor,\\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor input {\\n  height: 100%;\\n  width: 100%;\\n  line-height: normal;\\n}\\n\\n.ag-cell .ag-icon {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n\\n.ag-set-filter-item {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n}\\n\\n.ag-set-filter-item-checkbox {\\n  display: flex;\\n  overflow: hidden;\\n  height: 100%;\\n}\\n\\n.ag-set-filter-group-icons {\\n  display: block;\\n}\\n.ag-set-filter-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-body-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n}\\n\\n.ag-filter-filter {\\n  flex: 1 1 0px;\\n}\\n\\n.ag-filter-condition {\\n  display: flex;\\n  justify-content: center;\\n}\\n\\n.ag-floating-filter-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n}\\n\\n.ag-floating-filter-full-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  width: 100%;\\n  align-items: center;\\n  overflow: hidden;\\n}\\n\\n.ag-floating-filter-full-body > div {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input {\\n  align-items: center;\\n  display: flex;\\n  width: 100%;\\n}\\n.ag-floating-filter-input > * {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-button {\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-set-floating-filter-input input[disabled] {\\n  pointer-events: none;\\n}\\n\\n.ag-dnd-ghost {\\n  position: absolute;\\n  display: inline-flex;\\n  align-items: center;\\n  cursor: move;\\n  white-space: nowrap;\\n  z-index: 9999;\\n}\\n\\n.ag-overlay {\\n  height: 100%;\\n  left: 0;\\n  pointer-events: none;\\n  position: absolute;\\n  top: 0;\\n  width: 100%;\\n  z-index: 2;\\n}\\n\\n.ag-overlay-panel {\\n  display: flex;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-overlay-wrapper {\\n  display: flex;\\n  flex: none;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n  text-align: center;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  pointer-events: all;\\n}\\n\\n.ag-popup-child {\\n  z-index: 5;\\n  top: 0;\\n}\\n\\n.ag-popup-editor {\\n  position: absolute;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-large-text-input {\\n  display: block;\\n}\\n\\n.ag-virtual-list-item {\\n  position: absolute;\\n  width: 100%;\\n}\\n\\n.ag-floating-top {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-floating-bottom {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-sticky-top {\\n  position: absolute;\\n  display: flex;\\n  width: 100%;\\n}\\n\\n.ag-pinned-left-sticky-top,\\n.ag-pinned-right-sticky-top {\\n  position: relative;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-sticky-top-full-width-container {\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-dialog, .ag-panel {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-panel-title-bar {\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  cursor: default;\\n}\\n\\n.ag-panel-title-bar-title {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-panel-title-bar-buttons {\\n  display: flex;\\n}\\n\\n.ag-panel-title-bar-button {\\n  cursor: pointer;\\n}\\n\\n.ag-panel-content-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-dialog {\\n  position: absolute;\\n}\\n\\n.ag-resizer {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 1;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n.ag-resizer.ag-resizer-topLeft {\\n  top: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-top {\\n  top: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-topRight {\\n  top: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-right {\\n  top: 5px;\\n  right: 0;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n.ag-resizer.ag-resizer-bottomRight {\\n  bottom: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-bottom {\\n  bottom: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-bottomLeft {\\n  bottom: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-left {\\n  left: 0;\\n  top: 5px;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n\\n.ag-tooltip {\\n  position: absolute;\\n  z-index: 99999;\\n}\\n\\n.ag-tooltip-custom {\\n  position: absolute;\\n  z-index: 99999;\\n}\\n\\n.ag-tooltip:not(.ag-tooltip-interactive),\\n.ag-tooltip-custom:not(.ag-tooltip-interactive) {\\n  pointer-events: none;\\n}\\n\\n.ag-value-slide-out {\\n  margin-right: 5px;\\n  opacity: 1;\\n  transition: opacity 3s, margin-right 3s;\\n  transition-timing-function: linear;\\n}\\n\\n.ag-value-slide-out-end {\\n  margin-right: 10px;\\n  opacity: 0;\\n}\\n\\n.ag-opacity-zero {\\n  opacity: 0 !important;\\n}\\n\\n.ag-menu {\\n  max-height: 100%;\\n  overflow-y: auto;\\n  position: absolute;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-menu-column-select-wrapper {\\n  height: 265px;\\n  overflow: auto;\\n}\\n.ag-menu-column-select-wrapper .ag-column-select {\\n  height: 100%;\\n}\\n\\n.ag-dialog .ag-panel-content-wrapper .ag-column-select {\\n  user-select: none;\\n}\\n\\n.ag-menu-list {\\n  display: table;\\n  width: 100%;\\n}\\n\\n.ag-menu-option, .ag-menu-separator {\\n  display: table-row;\\n}\\n\\n.ag-menu-option-part, .ag-menu-separator-part {\\n  display: table-cell;\\n  vertical-align: middle;\\n}\\n\\n.ag-menu-option-text {\\n  white-space: nowrap;\\n}\\n\\n.ag-menu-option-custom {\\n  display: contents;\\n}\\n\\n.ag-compact-menu-option {\\n  width: 100%;\\n  display: flex;\\n  flex-wrap: nowrap;\\n}\\n\\n.ag-compact-menu-option-text {\\n  white-space: nowrap;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-rich-select {\\n  cursor: default;\\n  outline: none;\\n  height: 100%;\\n}\\n\\n.ag-rich-select-value {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n}\\n.ag-rich-select-value .ag-picker-field-display {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {\\n  opacity: 0.5;\\n}\\n\\n.ag-rich-select-list {\\n  position: relative;\\n}\\n.ag-rich-select-list .ag-loading-text {\\n  min-height: 2rem;\\n}\\n\\n.ag-rich-select-row {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  height: 100%;\\n}\\n\\n.ag-rich-select-field-input {\\n  flex: 1 1 auto;\\n}\\n.ag-rich-select-field-input .ag-input-field-input {\\n  padding: 0 !important;\\n  border: none !important;\\n  box-shadow: none !important;\\n  text-overflow: ellipsis;\\n}\\n.ag-rich-select-field-input .ag-input-field-input::placeholder {\\n  opacity: 0.8;\\n}\\n\\n.ag-autocomplete {\\n  align-items: center;\\n  display: flex;\\n}\\n.ag-autocomplete > * {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-autocomplete-list-popup {\\n  position: absolute;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-autocomplete-list {\\n  position: relative;\\n}\\n\\n.ag-autocomplete-virtual-list-item {\\n  display: flex;\\n}\\n\\n.ag-autocomplete-row {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  overflow: hidden;\\n}\\n\\n.ag-autocomplete-row-label {\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-paging-panel {\\n  align-items: center;\\n  display: flex;\\n  justify-content: flex-end;\\n}\\n\\n.ag-paging-page-summary-panel {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-paging-button {\\n  position: relative;\\n}\\n\\n.ag-disabled .ag-paging-page-summary-panel {\\n  pointer-events: none;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  display: flex;\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-column-select-column,\\n.ag-column-select-column-group,\\n.ag-select-agg-func-item {\\n  position: relative;\\n  align-items: center;\\n  display: flex;\\n  flex-direction: row;\\n  flex-wrap: nowrap;\\n  height: 100%;\\n}\\n.ag-column-select-column > *,\\n.ag-column-select-column-group > *,\\n.ag-select-agg-func-item > * {\\n  flex: none;\\n}\\n\\n.ag-select-agg-func-item,\\n.ag-column-select-column-label {\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-column-select-checkbox {\\n  display: flex;\\n}\\n\\n.ag-tool-panel-horizontal-resize {\\n  cursor: ew-resize;\\n  height: 100%;\\n  position: absolute;\\n  top: 0;\\n  width: 5px;\\n  z-index: 1;\\n}\\n\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n\\n.ag-details-row {\\n  width: 100%;\\n}\\n\\n.ag-details-row-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-details-grid {\\n  width: 100%;\\n}\\n\\n.ag-details-grid-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-header-group-cell {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n  position: absolute;\\n}\\n\\n.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize {\\n  display: none;\\n}\\n\\n.ag-cell-label-container {\\n  display: flex;\\n  justify-content: space-between;\\n  flex-direction: row-reverse;\\n  align-items: center;\\n  height: 100%;\\n  width: 100%;\\n  padding: 5px 0px;\\n}\\n\\n.ag-right-aligned-header .ag-cell-label-container {\\n  flex-direction: row;\\n}\\n.ag-right-aligned-header .ag-header-cell-text {\\n  text-align: end;\\n}\\n\\n.ag-side-bar {\\n  display: flex;\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-side-bar-left {\\n  order: -1;\\n  flex-direction: row;\\n}\\n\\n.ag-side-button-button {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  align-items: center;\\n  justify-content: center;\\n  flex-wrap: nowrap;\\n  white-space: nowrap;\\n  outline: none;\\n  cursor: pointer;\\n}\\n\\n.ag-side-button-label {\\n  writing-mode: vertical-lr;\\n}\\n\\n.ag-status-bar {\\n  display: flex;\\n  justify-content: space-between;\\n  overflow: hidden;\\n}\\n\\n.ag-status-panel {\\n  display: inline-flex;\\n}\\n\\n.ag-status-name-value {\\n  white-space: nowrap;\\n}\\n\\n.ag-status-bar-left {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-center {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-right {\\n  display: inline-flex;\\n}\\n\\n.ag-icon {\\n  display: block;\\n  speak: none;\\n}\\n\\n.ag-group {\\n  position: relative;\\n  width: 100%;\\n}\\n\\n.ag-group-title-bar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-title {\\n  display: block;\\n  flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-group-title-bar .ag-group-title {\\n  cursor: default;\\n}\\n\\n.ag-group-toolbar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-container {\\n  display: flex;\\n}\\n\\n.ag-disabled .ag-group-container {\\n  pointer-events: none;\\n}\\n\\n.ag-group-container-horizontal {\\n  flex-direction: row;\\n  flex-wrap: wrap;\\n}\\n\\n.ag-group-container-vertical {\\n  flex-direction: column;\\n}\\n\\n.ag-column-group-icons {\\n  display: block;\\n}\\n.ag-column-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-group-item-alignment-stretch .ag-group-item {\\n  align-items: stretch;\\n}\\n\\n.ag-group-item-alignment-start .ag-group-item {\\n  align-items: flex-start;\\n}\\n\\n.ag-group-item-alignment-end .ag-group-item {\\n  align-items: flex-end;\\n}\\n\\n.ag-toggle-button-icon {\\n  transition: right 0.3s;\\n  position: absolute;\\n  top: -1px;\\n}\\n\\n.ag-input-field, .ag-select {\\n  display: flex;\\n  flex-direction: row;\\n  align-items: center;\\n}\\n\\n.ag-input-field-input {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input .ag-input-field-input[type=date] {\\n  width: 1px;\\n}\\n\\n.ag-range-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select-wrapper {\\n  display: flex;\\n}\\n\\n.ag-angle-select-parent-circle {\\n  display: block;\\n  position: relative;\\n}\\n\\n.ag-angle-select-child-circle {\\n  position: absolute;\\n}\\n\\n.ag-slider-wrapper {\\n  display: flex;\\n}\\n.ag-slider-wrapper .ag-input-field {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field-display {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-picker-field-icon {\\n  display: flex;\\n  border: 0;\\n  padding: 0;\\n  margin: 0;\\n  cursor: pointer;\\n}\\n\\n.ag-picker-field-wrapper {\\n  overflow: hidden;\\n}\\n\\n.ag-label-align-right .ag-label {\\n  order: 1;\\n}\\n.ag-label-align-right > * {\\n  flex: none;\\n}\\n\\n.ag-label-align-top {\\n  flex-direction: column;\\n  align-items: flex-start;\\n}\\n.ag-label-align-top > * {\\n  align-self: stretch;\\n}\\n\\n.ag-label-ellipsis {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  flex: 1;\\n}\\n\\n.ag-color-panel {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  text-align: center;\\n}\\n\\n.ag-spectrum-color {\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n  cursor: default;\\n}\\n\\n.ag-spectrum-fill {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-spectrum-val {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-dragger {\\n  position: absolute;\\n  pointer-events: none;\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-hue {\\n  cursor: default;\\n  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\\n}\\n\\n.ag-spectrum-alpha {\\n  cursor: default;\\n}\\n\\n.ag-spectrum-hue-background {\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-tool {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-slider {\\n  position: absolute;\\n  pointer-events: none;\\n}\\n\\n.ag-recent-colors {\\n  display: flex;\\n}\\n\\n.ag-recent-color {\\n  cursor: pointer;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-pill-select {\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-pill-select .ag-column-drop {\\n  flex: unset;\\n}\\n\\n.ag-ltr {\\n  direction: ltr;\\n}\\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-sticky-top, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\\n  flex-direction: row;\\n}\\n\\n.ag-rtl {\\n  direction: rtl;\\n}\\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-sticky-top, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\\n  flex-direction: row-reverse;\\n}\\n.ag-rtl .ag-icon-contracted,\\n.ag-rtl .ag-icon-expanded,\\n.ag-rtl .ag-icon-tree-closed {\\n  display: block;\\n  transform: rotate(180deg);\\n}\\n\\n.ag-body .ag-body-viewport {\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-layout-print.ag-body {\\n  display: block;\\n  height: unset;\\n}\\n.ag-layout-print.ag-root-wrapper {\\n  display: inline-block;\\n}\\n.ag-layout-print .ag-body-vertical-scroll {\\n  display: none;\\n}\\n.ag-layout-print .ag-body-horizontal-scroll {\\n  display: none;\\n}\\n.ag-layout-print.ag-force-vertical-scroll {\\n  overflow-y: visible !important;\\n}\\n\\n@media print {\\n  .ag-root-wrapper.ag-layout-print {\\n    display: table;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\\n  .ag-root-wrapper.ag-layout-print .ag-root,\\n  .ag-root-wrapper.ag-layout-print .ag-body-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\\n    height: auto !important;\\n    overflow: hidden !important;\\n    display: block !important;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-row, .ag-root-wrapper.ag-layout-print .ag-cell {\\n    break-inside: avoid;\\n  }\\n}\\n[class^=ag-], [class^=ag-]:focus, [class^=ag-]:after, [class^=ag-]:before {\\n  box-sizing: border-box;\\n  outline: none;\\n}\\n\\n[class^=ag-]::-ms-clear {\\n  display: none;\\n}\\n\\n.ag-checkbox .ag-input-wrapper,\\n.ag-radio-button .ag-input-wrapper {\\n  overflow: visible;\\n}\\n\\n.ag-range-field .ag-input-wrapper {\\n  height: 100%;\\n}\\n\\n.ag-toggle-button {\\n  flex: none;\\n  width: unset;\\n  min-width: unset;\\n}\\n\\n.ag-button {\\n  border-radius: 0px;\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-button:hover {\\n  background-color: transparent;\\n}\\n\\n.ag-ltr .ag-label-align-right .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label-align-right .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\ninput[class^=ag-] {\\n  margin: 0;\\n  background-color: var(--ag-background-color);\\n}\\n\\ntextarea[class^=ag-],\\nselect[class^=ag-] {\\n  background-color: var(--ag-background-color);\\n}\\n\\ninput[class^=ag-]:not([type]),\\ninput[class^=ag-][type=text],\\ninput[class^=ag-][type=number],\\ninput[class^=ag-][type=tel],\\ninput[class^=ag-][type=date],\\ninput[class^=ag-][type=datetime-local],\\ntextarea[class^=ag-] {\\n  font-size: inherit;\\n  line-height: inherit;\\n  color: inherit;\\n  font-family: inherit;\\n  border: var(--ag-borders-input) var(--ag-input-border-color);\\n}\\ninput[class^=ag-]:not([type]):disabled,\\ninput[class^=ag-][type=text]:disabled,\\ninput[class^=ag-][type=number]:disabled,\\ninput[class^=ag-][type=tel]:disabled,\\ninput[class^=ag-][type=date]:disabled,\\ninput[class^=ag-][type=datetime-local]:disabled,\\ntextarea[class^=ag-]:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\ninput[class^=ag-]:not([type]):focus,\\ninput[class^=ag-][type=text]:focus,\\ninput[class^=ag-][type=number]:focus,\\ninput[class^=ag-][type=tel]:focus,\\ninput[class^=ag-][type=date]:focus,\\ninput[class^=ag-][type=datetime-local]:focus,\\ntextarea[class^=ag-]:focus {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-]:not([type]):invalid,\\ninput[class^=ag-][type=text]:invalid,\\ninput[class^=ag-][type=number]:invalid,\\ninput[class^=ag-][type=tel]:invalid,\\ninput[class^=ag-][type=date]:invalid,\\ninput[class^=ag-][type=datetime-local]:invalid,\\ntextarea[class^=ag-]:invalid {\\n  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);\\n}\\n\\ninput[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {\\n  -moz-appearance: textfield;\\n}\\ninput[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {\\n  -webkit-appearance: none;\\n  margin: 0;\\n}\\n\\ninput[class^=ag-][type=range] {\\n  padding: 0;\\n}\\n\\ninput[class^=ag-][type=button]:focus, button[class^=ag-]:focus {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-drag-handle {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-list-item, .ag-virtual-list-item {\\n  height: var(--ag-list-item-height);\\n}\\n\\n.ag-virtual-list-item:focus-visible {\\n  outline: none;\\n}\\n.ag-virtual-list-item:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-select-list {\\n  background-color: var(--ag-background-color);\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n  border-radius: var(--ag-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-list-item {\\n  display: flex;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-list-item.ag-active-item {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-select-list-item {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  cursor: default;\\n}\\n.ag-ltr .ag-select-list-item {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-rtl .ag-select-list-item {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-select-list-item span {\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n  overflow: hidden;\\n}\\n\\n.ag-row-drag,\\n.ag-selection-checkbox,\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-ltr .ag-row-drag,\\n.ag-ltr .ag-selection-checkbox,\\n.ag-ltr .ag-group-expanded,\\n.ag-ltr .ag-group-contracted {\\n  margin-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-row-drag,\\n.ag-rtl .ag-selection-checkbox,\\n.ag-rtl .ag-group-expanded,\\n.ag-rtl .ag-group-contracted {\\n  margin-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  cursor: pointer;\\n}\\n\\n.ag-group-title-bar-icon {\\n  cursor: pointer;\\n  flex: none;\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-ltr .ag-group-child-count {\\n  margin-left: 2px;\\n}\\n.ag-rtl .ag-group-child-count {\\n  margin-right: 2px;\\n}\\n\\n.ag-group-title-bar {\\n  background-color: var(--ag-subheader-background-color);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-group-toolbar {\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n\\n.ag-disabled-group-title-bar, .ag-disabled-group-container {\\n  opacity: 0.5;\\n}\\n\\n.group-item {\\n  margin: calc(var(--ag-grid-size) * 0.5) 0;\\n}\\n\\n.ag-label {\\n  white-space: nowrap;\\n}\\n.ag-ltr .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-label-align-top .ag-label {\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-angle-select[disabled] {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n.ag-angle-select[disabled] .ag-angle-select-field {\\n  opacity: 0.4;\\n}\\n\\n.ag-ltr .ag-slider-field,\\n.ag-ltr .ag-angle-select-field {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-slider-field,\\n.ag-rtl .ag-angle-select-field {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-angle-select-parent-circle {\\n  width: 24px;\\n  height: 24px;\\n  border-radius: 12px;\\n  border: solid 1px;\\n  border-color: var(--ag-border-color);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-angle-select-child-circle {\\n  top: 4px;\\n  left: 12px;\\n  width: 6px;\\n  height: 6px;\\n  margin-left: -3px;\\n  margin-top: -4px;\\n  border-radius: 3px;\\n  background-color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-picker-field-wrapper {\\n  border: var(--ag-borders);\\n  border-color: var(--ag-border-color);\\n  border-radius: 5px;\\n  background-color: var(--ag-background-color);\\n}\\n.ag-picker-field-wrapper:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\n.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-picker-field-button {\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-dialog.ag-color-dialog {\\n  border-radius: 5px;\\n}\\n\\n.ag-color-picker .ag-picker-field-display {\\n  height: var(--ag-icon-size);\\n}\\n\\n.ag-color-picker .ag-picker-field-wrapper {\\n  max-width: 45px;\\n  min-width: 45px;\\n}\\n\\n.ag-color-panel {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-spectrum-color {\\n  background-color: rgb(255, 0, 0);\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tools {\\n  padding: 10px;\\n}\\n\\n.ag-spectrum-sat {\\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-val {\\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-dragger {\\n  border-radius: 12px;\\n  height: 12px;\\n  width: 12px;\\n  border: 1px solid white;\\n  background: black;\\n  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n}\\n\\n.ag-spectrum-hue-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tool {\\n  margin-bottom: 10px;\\n  height: 11px;\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-slider {\\n  margin-top: -12px;\\n  width: 13px;\\n  height: 13px;\\n  border-radius: 13px;\\n  background-color: rgb(248, 248, 248);\\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n}\\n\\n.ag-recent-color {\\n  margin: 0 3px;\\n}\\n.ag-recent-color:first-child {\\n  margin-left: 0;\\n}\\n.ag-recent-color:last-child {\\n  margin-right: 0;\\n}\\n\\n.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),\\n.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),\\n.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-dnd-ghost {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height) !important;\\n  line-height: var(--ag-header-height);\\n  margin: 0;\\n  padding: 0 calc(var(--ag-grid-size) * 2);\\n  transform: translateY(calc(var(--ag-grid-size) * 2));\\n}\\n\\n.ag-dnd-ghost-icon {\\n  margin-right: var(--ag-grid-size);\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-popup-child:not(.ag-tooltip-custom) {\\n  box-shadow: var(--ag-popup-shadow);\\n}\\n\\n.ag-select .ag-picker-field-wrapper {\\n  min-height: var(--ag-list-item-height);\\n  cursor: default;\\n}\\n.ag-ltr .ag-select .ag-picker-field-wrapper {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-rtl .ag-select .ag-picker-field-wrapper {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-ltr .ag-select .ag-picker-field-wrapper {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-select .ag-picker-field-wrapper {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-select.ag-disabled .ag-picker-field-wrapper:focus {\\n  box-shadow: none;\\n}\\n.ag-select:not(.ag-cell-editor, .ag-label-align-top) {\\n  min-height: var(--ag-list-item-height);\\n}\\n.ag-select .ag-picker-field-display {\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-select .ag-picker-field-icon {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-select.ag-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-rich-select-value,\\n.ag-rich-select-list {\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-rich-select-list {\\n  width: 100%;\\n  height: auto;\\n  border-radius: var(--ag-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rich-select-list .ag-loading-text {\\n  padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);\\n}\\n\\n.ag-rich-select-value {\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  padding-top: 0;\\n  padding-bottom: 0;\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-rich-select-field-input {\\n  left: calc(var(--ag-cell-horizontal-padding));\\n}\\n.ag-rtl .ag-rich-select-field-input {\\n  right: calc(var(--ag-cell-horizontal-padding));\\n}\\n\\n.ag-popup-editor .ag-rich-select-value {\\n  height: var(--ag-row-height);\\n  min-width: 200px;\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  cursor: default;\\n  height: var(--ag-list-item-height);\\n}\\n.ag-rich-select-virtual-list-item:focus-visible::after {\\n  content: none;\\n}\\n.ag-rich-select-virtual-list-item:hover {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-ltr .ag-rich-select-row {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n.ag-rtl .ag-rich-select-row {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\\n}\\n\\n.ag-rich-select-row-selected {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-rich-select-row-text-highlight {\\n  font-weight: bold;\\n}\\n\\n.ag-autocomplete {\\n  width: 100%;\\n}\\n\\n.ag-autocomplete-list {\\n  width: 100%;\\n  min-width: 200px;\\n  height: calc(var(--ag-row-height) * 6.5);\\n}\\n\\n.ag-autocomplete-virtual-list-item {\\n  cursor: default;\\n  height: var(--ag-list-item-height);\\n}\\n.ag-autocomplete-virtual-list-item:focus-visible::after {\\n  content: none;\\n}\\n.ag-autocomplete-virtual-list-item:hover {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-autocomplete-row-label {\\n  margin: 0px var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-autocomplete-row-selected {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-dragging-range-handle .ag-dialog,\\n.ag-dragging-fill-handle .ag-dialog {\\n  opacity: 0.7;\\n  pointer-events: none;\\n}\\n\\n.ag-dialog {\\n  border-radius: var(--ag-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n  box-shadow: var(--ag-popup-shadow);\\n}\\n\\n.ag-panel {\\n  background-color: var(--ag-panel-background-color);\\n  border-color: var(--ag-panel-border-color);\\n}\\n\\n.ag-panel-title-bar {\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-panel-title-bar-button {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-panel-title-bar-button {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-tooltip {\\n  background-color: var(--ag-tooltip-background-color);\\n  color: var(--ag-foreground-color);\\n  padding: var(--ag-grid-size);\\n  border: var(--ag-borders) var(--ag-border-color);\\n  border-radius: var(--ag-card-radius);\\n  white-space: normal;\\n}\\n\\n.ag-tooltip.ag-tooltip-animate,\\n.ag-tooltip-custom.ag-tooltip-animate {\\n  transition: opacity 1s;\\n}\\n.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,\\n.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: calc(1 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: calc(1 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: calc(2 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: calc(2 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: calc(3 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: calc(3 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: calc(4 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: calc(4 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: calc(5 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: calc(5 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: calc(6 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: calc(6 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: calc(7 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: calc(7 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: calc(8 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: calc(8 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: calc(9 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: calc(9 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-column-select-header-icon {\\n  cursor: pointer;\\n}\\n\\n.ag-column-select-header-icon:focus-visible {\\n  outline: none;\\n}\\n.ag-column-select-header-icon:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-ltr .ag-column-group-icons:not(:last-child),\\n.ag-ltr .ag-column-select-header-icon:not(:last-child),\\n.ag-ltr .ag-column-select-header-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-ltr .ag-column-select-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-label:not(:last-child) {\\n  margin-right: var(--ag-widget-horizontal-spacing);\\n}\\n.ag-rtl .ag-column-group-icons:not(:last-child),\\n.ag-rtl .ag-column-select-header-icon:not(:last-child),\\n.ag-rtl .ag-column-select-header-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-rtl .ag-column-select-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-label:not(:last-child) {\\n  margin-left: var(--ag-widget-horizontal-spacing);\\n}\\n\\n.ag-column-select-virtual-list-item:focus-visible {\\n  outline: none;\\n}\\n.ag-column-select-virtual-list-item:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-column-group:not(:last-child),\\n.ag-column-select-column:not(:last-child) {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-column-select-column-readonly,\\n.ag-column-select-column-group-readonly {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n\\n.ag-ltr .ag-column-select-add-group-indent {\\n  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-column-select-add-group-indent {\\n  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-select-virtual-list-viewport {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;\\n}\\n\\n.ag-column-select-virtual-list-item {\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-checkbox-edit {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-pill-select .ag-column-drop {\\n  border-bottom: 0;\\n  min-height: unset;\\n}\\n.ag-pill-select .ag-column-drop-list {\\n  padding: 0;\\n}\\n.ag-pill-select .ag-select {\\n  padding-top: var(--ag-grid-size);\\n}\\n.ag-pill-select .ag-picker-field-wrapper {\\n  background-color: transparent;\\n  border: 0;\\n}\\n.ag-pill-select .ag-picker-field-display {\\n  cursor: pointer;\\n}\\n\\n.ag-rtl {\\n  text-align: right;\\n}\\n\\n.ag-root-wrapper {\\n  border-radius: var(--ag-wrapper-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: calc(1 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: calc(1 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: calc(2 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: calc(2 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: calc(3 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: calc(3 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: calc(4 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: calc(4 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: calc(5 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: calc(5 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: calc(6 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: calc(6 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: calc(7 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: calc(7 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: calc(8 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: calc(8 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: calc(9 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: calc(9 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n\\n.ag-ltr .ag-row-group-indent-10 {\\n  padding-left: calc(10 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-10 {\\n  padding-right: calc(10 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n\\n.ag-ltr .ag-row-group-indent-11 {\\n  padding-left: calc(11 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-11 {\\n  padding-right: calc(11 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n\\n.ag-ltr .ag-row-group-indent-12 {\\n  padding-left: calc(12 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-12 {\\n  padding-right: calc(12 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n\\n.ag-ltr .ag-row-group-indent-13 {\\n  padding-left: calc(13 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-13 {\\n  padding-right: calc(13 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n\\n.ag-ltr .ag-row-group-indent-14 {\\n  padding-left: calc(14 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-14 {\\n  padding-right: calc(14 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n\\n.ag-ltr .ag-row-group-indent-15 {\\n  padding-left: calc(15 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-15 {\\n  padding-right: calc(15 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n\\n.ag-ltr .ag-row-group-indent-16 {\\n  padding-left: calc(16 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-16 {\\n  padding-right: calc(16 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n\\n.ag-ltr .ag-row-group-indent-17 {\\n  padding-left: calc(17 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-17 {\\n  padding-right: calc(17 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n\\n.ag-ltr .ag-row-group-indent-18 {\\n  padding-left: calc(18 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-18 {\\n  padding-right: calc(18 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n\\n.ag-ltr .ag-row-group-indent-19 {\\n  padding-left: calc(19 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-19 {\\n  padding-right: calc(19 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n\\n.ag-ltr .ag-row-group-indent-20 {\\n  padding-left: calc(20 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-20 {\\n  padding-right: calc(20 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n\\n.ag-ltr .ag-row-group-indent-21 {\\n  padding-left: calc(21 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-21 {\\n  padding-right: calc(21 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n\\n.ag-ltr .ag-row-group-indent-22 {\\n  padding-left: calc(22 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-22 {\\n  padding-right: calc(22 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n\\n.ag-ltr .ag-row-group-indent-23 {\\n  padding-left: calc(23 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-23 {\\n  padding-right: calc(23 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n\\n.ag-ltr .ag-row-group-indent-24 {\\n  padding-left: calc(24 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-24 {\\n  padding-right: calc(24 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n\\n.ag-ltr .ag-row-group-indent-25 {\\n  padding-left: calc(25 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-25 {\\n  padding-right: calc(25 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n\\n.ag-ltr .ag-row-group-indent-26 {\\n  padding-left: calc(26 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-26 {\\n  padding-right: calc(26 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n\\n.ag-ltr .ag-row-group-indent-27 {\\n  padding-left: calc(27 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-27 {\\n  padding-right: calc(27 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n\\n.ag-ltr .ag-row-group-indent-28 {\\n  padding-left: calc(28 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-28 {\\n  padding-right: calc(28 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n\\n.ag-ltr .ag-row-group-indent-29 {\\n  padding-left: calc(29 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-29 {\\n  padding-right: calc(29 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n\\n.ag-ltr .ag-row-group-indent-30 {\\n  padding-left: calc(30 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-30 {\\n  padding-right: calc(30 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n\\n.ag-ltr .ag-row-group-indent-31 {\\n  padding-left: calc(31 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-31 {\\n  padding-right: calc(31 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n\\n.ag-ltr .ag-row-group-indent-32 {\\n  padding-left: calc(32 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-32 {\\n  padding-right: calc(32 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n\\n.ag-ltr .ag-row-group-indent-33 {\\n  padding-left: calc(33 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-33 {\\n  padding-right: calc(33 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n\\n.ag-ltr .ag-row-group-indent-34 {\\n  padding-left: calc(34 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-34 {\\n  padding-right: calc(34 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n\\n.ag-ltr .ag-row-group-indent-35 {\\n  padding-left: calc(35 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-35 {\\n  padding-right: calc(35 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n\\n.ag-ltr .ag-row-group-indent-36 {\\n  padding-left: calc(36 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-36 {\\n  padding-right: calc(36 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n\\n.ag-ltr .ag-row-group-indent-37 {\\n  padding-left: calc(37 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-37 {\\n  padding-right: calc(37 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n\\n.ag-ltr .ag-row-group-indent-38 {\\n  padding-left: calc(38 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-38 {\\n  padding-right: calc(38 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n\\n.ag-ltr .ag-row-group-indent-39 {\\n  padding-left: calc(39 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-39 {\\n  padding-right: calc(39 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n\\n.ag-ltr .ag-row-group-indent-40 {\\n  padding-left: calc(40 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-40 {\\n  padding-right: calc(40 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n\\n.ag-ltr .ag-row-group-indent-41 {\\n  padding-left: calc(41 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-41 {\\n  padding-right: calc(41 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n\\n.ag-ltr .ag-row-group-indent-42 {\\n  padding-left: calc(42 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-42 {\\n  padding-right: calc(42 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n\\n.ag-ltr .ag-row-group-indent-43 {\\n  padding-left: calc(43 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-43 {\\n  padding-right: calc(43 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n\\n.ag-ltr .ag-row-group-indent-44 {\\n  padding-left: calc(44 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-44 {\\n  padding-right: calc(44 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n\\n.ag-ltr .ag-row-group-indent-45 {\\n  padding-left: calc(45 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-45 {\\n  padding-right: calc(45 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n\\n.ag-ltr .ag-row-group-indent-46 {\\n  padding-left: calc(46 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-46 {\\n  padding-right: calc(46 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n\\n.ag-ltr .ag-row-group-indent-47 {\\n  padding-left: calc(47 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-47 {\\n  padding-right: calc(47 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n\\n.ag-ltr .ag-row-group-indent-48 {\\n  padding-left: calc(48 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-48 {\\n  padding-right: calc(48 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n\\n.ag-ltr .ag-row-group-indent-49 {\\n  padding-left: calc(49 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-49 {\\n  padding-right: calc(49 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n\\n.ag-ltr .ag-row-group-indent-50 {\\n  padding-left: calc(50 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-50 {\\n  padding-right: calc(50 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n\\n.ag-ltr .ag-row-group-indent-51 {\\n  padding-left: calc(51 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-51 {\\n  padding-right: calc(51 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n\\n.ag-ltr .ag-row-group-indent-52 {\\n  padding-left: calc(52 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-52 {\\n  padding-right: calc(52 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n\\n.ag-ltr .ag-row-group-indent-53 {\\n  padding-left: calc(53 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-53 {\\n  padding-right: calc(53 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n\\n.ag-ltr .ag-row-group-indent-54 {\\n  padding-left: calc(54 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-54 {\\n  padding-right: calc(54 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n\\n.ag-ltr .ag-row-group-indent-55 {\\n  padding-left: calc(55 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-55 {\\n  padding-right: calc(55 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n\\n.ag-ltr .ag-row-group-indent-56 {\\n  padding-left: calc(56 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-56 {\\n  padding-right: calc(56 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n\\n.ag-ltr .ag-row-group-indent-57 {\\n  padding-left: calc(57 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-57 {\\n  padding-right: calc(57 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n\\n.ag-ltr .ag-row-group-indent-58 {\\n  padding-left: calc(58 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-58 {\\n  padding-right: calc(58 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n\\n.ag-ltr .ag-row-group-indent-59 {\\n  padding-left: calc(59 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-59 {\\n  padding-right: calc(59 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n\\n.ag-ltr .ag-row-group-indent-60 {\\n  padding-left: calc(60 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-60 {\\n  padding-right: calc(60 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n\\n.ag-ltr .ag-row-group-indent-61 {\\n  padding-left: calc(61 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-61 {\\n  padding-right: calc(61 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n\\n.ag-ltr .ag-row-group-indent-62 {\\n  padding-left: calc(62 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-62 {\\n  padding-right: calc(62 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n\\n.ag-ltr .ag-row-group-indent-63 {\\n  padding-left: calc(63 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-63 {\\n  padding-right: calc(63 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n\\n.ag-ltr .ag-row-group-indent-64 {\\n  padding-left: calc(64 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-64 {\\n  padding-right: calc(64 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n\\n.ag-ltr .ag-row-group-indent-65 {\\n  padding-left: calc(65 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-65 {\\n  padding-right: calc(65 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n\\n.ag-ltr .ag-row-group-indent-66 {\\n  padding-left: calc(66 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-66 {\\n  padding-right: calc(66 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n\\n.ag-ltr .ag-row-group-indent-67 {\\n  padding-left: calc(67 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-67 {\\n  padding-right: calc(67 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n\\n.ag-ltr .ag-row-group-indent-68 {\\n  padding-left: calc(68 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-68 {\\n  padding-right: calc(68 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n\\n.ag-ltr .ag-row-group-indent-69 {\\n  padding-left: calc(69 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-69 {\\n  padding-right: calc(69 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n\\n.ag-ltr .ag-row-group-indent-70 {\\n  padding-left: calc(70 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-70 {\\n  padding-right: calc(70 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n\\n.ag-ltr .ag-row-group-indent-71 {\\n  padding-left: calc(71 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-71 {\\n  padding-right: calc(71 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n\\n.ag-ltr .ag-row-group-indent-72 {\\n  padding-left: calc(72 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-72 {\\n  padding-right: calc(72 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n\\n.ag-ltr .ag-row-group-indent-73 {\\n  padding-left: calc(73 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-73 {\\n  padding-right: calc(73 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n\\n.ag-ltr .ag-row-group-indent-74 {\\n  padding-left: calc(74 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-74 {\\n  padding-right: calc(74 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n\\n.ag-ltr .ag-row-group-indent-75 {\\n  padding-left: calc(75 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-75 {\\n  padding-right: calc(75 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n\\n.ag-ltr .ag-row-group-indent-76 {\\n  padding-left: calc(76 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-76 {\\n  padding-right: calc(76 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n\\n.ag-ltr .ag-row-group-indent-77 {\\n  padding-left: calc(77 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-77 {\\n  padding-right: calc(77 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n\\n.ag-ltr .ag-row-group-indent-78 {\\n  padding-left: calc(78 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-78 {\\n  padding-right: calc(78 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n\\n.ag-ltr .ag-row-group-indent-79 {\\n  padding-left: calc(79 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-79 {\\n  padding-right: calc(79 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n\\n.ag-ltr .ag-row-group-indent-80 {\\n  padding-left: calc(80 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-80 {\\n  padding-right: calc(80 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n\\n.ag-ltr .ag-row-group-indent-81 {\\n  padding-left: calc(81 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-81 {\\n  padding-right: calc(81 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n\\n.ag-ltr .ag-row-group-indent-82 {\\n  padding-left: calc(82 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-82 {\\n  padding-right: calc(82 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n\\n.ag-ltr .ag-row-group-indent-83 {\\n  padding-left: calc(83 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-83 {\\n  padding-right: calc(83 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n\\n.ag-ltr .ag-row-group-indent-84 {\\n  padding-left: calc(84 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-84 {\\n  padding-right: calc(84 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n\\n.ag-ltr .ag-row-group-indent-85 {\\n  padding-left: calc(85 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-85 {\\n  padding-right: calc(85 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n\\n.ag-ltr .ag-row-group-indent-86 {\\n  padding-left: calc(86 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-86 {\\n  padding-right: calc(86 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n\\n.ag-ltr .ag-row-group-indent-87 {\\n  padding-left: calc(87 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-87 {\\n  padding-right: calc(87 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n\\n.ag-ltr .ag-row-group-indent-88 {\\n  padding-left: calc(88 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-88 {\\n  padding-right: calc(88 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n\\n.ag-ltr .ag-row-group-indent-89 {\\n  padding-left: calc(89 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-89 {\\n  padding-right: calc(89 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n\\n.ag-ltr .ag-row-group-indent-90 {\\n  padding-left: calc(90 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-90 {\\n  padding-right: calc(90 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n\\n.ag-ltr .ag-row-group-indent-91 {\\n  padding-left: calc(91 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-91 {\\n  padding-right: calc(91 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n\\n.ag-ltr .ag-row-group-indent-92 {\\n  padding-left: calc(92 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-92 {\\n  padding-right: calc(92 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n\\n.ag-ltr .ag-row-group-indent-93 {\\n  padding-left: calc(93 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-93 {\\n  padding-right: calc(93 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n\\n.ag-ltr .ag-row-group-indent-94 {\\n  padding-left: calc(94 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-94 {\\n  padding-right: calc(94 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n\\n.ag-ltr .ag-row-group-indent-95 {\\n  padding-left: calc(95 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-95 {\\n  padding-right: calc(95 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n\\n.ag-ltr .ag-row-group-indent-96 {\\n  padding-left: calc(96 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-96 {\\n  padding-right: calc(96 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n\\n.ag-ltr .ag-row-group-indent-97 {\\n  padding-left: calc(97 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-97 {\\n  padding-right: calc(97 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n\\n.ag-ltr .ag-row-group-indent-98 {\\n  padding-left: calc(98 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-98 {\\n  padding-right: calc(98 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n\\n.ag-ltr .ag-row-group-indent-99 {\\n  padding-left: calc(99 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-99 {\\n  padding-right: calc(99 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row-group-leaf-indent {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-group-leaf-indent {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-value-change-delta {\\n  padding-right: 2px;\\n}\\n\\n.ag-value-change-delta-up {\\n  color: var(--ag-value-change-delta-up-color);\\n}\\n\\n.ag-value-change-delta-down {\\n  color: var(--ag-value-change-delta-down-color);\\n}\\n\\n.ag-value-change-value {\\n  background-color: transparent;\\n  border-radius: 1px;\\n  padding-left: 1px;\\n  padding-right: 1px;\\n  transition: background-color 1s;\\n}\\n\\n.ag-value-change-value-highlight {\\n  background-color: var(--ag-value-change-value-highlight-background-color);\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-cell-data-changed {\\n  background-color: var(--ag-value-change-value-highlight-background-color) !important;\\n}\\n\\n.ag-cell-data-changed-animation {\\n  background-color: transparent;\\n}\\n\\n.ag-cell-highlight {\\n  background-color: var(--ag-range-selection-highlight-color) !important;\\n}\\n\\n.ag-row {\\n  height: var(--ag-row-height);\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-data-color);\\n  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);\\n}\\n\\n.ag-row-highlight-above::after, .ag-row-highlight-below::after {\\n  content: \"\";\\n  position: absolute;\\n  width: calc(100% - 1px);\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n  left: 1px;\\n}\\n\\n.ag-row-highlight-above::after {\\n  top: -1px;\\n}\\n\\n.ag-row-highlight-above.ag-row-first::after {\\n  top: 0;\\n}\\n\\n.ag-row-highlight-below::after {\\n  bottom: 0px;\\n}\\n\\n.ag-row-odd {\\n  background-color: var(--ag-odd-row-background-color);\\n}\\n\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-row-selected::before {\\n  content: \"\";\\n  background-color: var(--ag-selected-row-background-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-row-hover:not(.ag-full-width-row)::before,\\n.ag-row-hover.ag-full-width-row.ag-row-group::before {\\n  content: \"\";\\n  background-color: var(--ag-row-hover-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-row-hover.ag-full-width-row.ag-row-group > * {\\n  position: relative;\\n}\\n\\n.ag-row-hover.ag-row-selected::before {\\n  background-color: var(--ag-row-hover-color);\\n  background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));\\n}\\n\\n.ag-column-hover {\\n  background-color: var(--ag-column-hover-color);\\n}\\n\\n.ag-ltr .ag-right-aligned-cell {\\n  text-align: right;\\n}\\n.ag-rtl .ag-right-aligned-cell {\\n  text-align: left;\\n}\\n\\n.ag-ltr .ag-right-aligned-cell .ag-cell-value,\\n.ag-ltr .ag-right-aligned-cell .ag-group-value {\\n  margin-left: auto;\\n}\\n.ag-rtl .ag-right-aligned-cell .ag-cell-value,\\n.ag-rtl .ag-right-aligned-cell .ag-group-value {\\n  margin-right: auto;\\n}\\n\\n.ag-cell, .ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  border: 1px solid transparent;\\n  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  -webkit-font-smoothing: subpixel-antialiased;\\n}\\n\\n.ag-row > .ag-cell-wrapper {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n}\\n\\n.ag-row-dragging {\\n  cursor: move;\\n  opacity: 0.5;\\n}\\n\\n.ag-cell-inline-editing {\\n  border: 1px solid var(--ag-border-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: 0;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-popup-editor .ag-large-text,\\n.ag-autocomplete-list-popup {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-control-panel-background-color);\\n  padding: 0;\\n}\\n\\n.ag-large-text-input {\\n  height: auto;\\n  padding: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-rtl .ag-large-text-input textarea {\\n  resize: none;\\n}\\n\\n.ag-details-row {\\n  padding: calc(var(--ag-grid-size) * 5);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-layout-auto-height .ag-center-cols-viewport, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-viewport, .ag-layout-print .ag-center-cols-container {\\n  min-height: 50px;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  background-color: var(--ag-modal-overlay-background-color);\\n}\\n\\n.ag-overlay-loading-center {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 30px;\\n}\\n\\n.ag-loading {\\n  display: flex;\\n  height: 100%;\\n  align-items: center;\\n}\\n.ag-ltr .ag-loading {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-loading {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-loading-icon {\\n  padding-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-loading-icon {\\n  padding-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-icon-loading {\\n  animation-name: spin;\\n  animation-duration: 1000ms;\\n  animation-iteration-count: infinite;\\n  animation-timing-function: linear;\\n}\\n\\n@keyframes spin {\\n  from {\\n    transform: rotate(0deg);\\n  }\\n  to {\\n    transform: rotate(360deg);\\n  }\\n}\\n.ag-floating-top {\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-floating-bottom {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-cell {\\n  border-right: var(--ag-cell-horizontal-border);\\n}\\n.ag-rtl .ag-cell {\\n  border-left: var(--ag-cell-horizontal-border);\\n}\\n.ag-ltr .ag-cell {\\n  border-right-width: 1px;\\n}\\n.ag-rtl .ag-cell {\\n  border-left-width: 1px;\\n}\\n\\n.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell-range-selected:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\\n  background-color: var(--ag-range-selection-chart-background-color) !important;\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\\n  background-color: var(--ag-range-selection-chart-category-background-color) !important;\\n}\\n\\n.ag-cell-range-selected-1:not(.ag-cell-focus),\\n.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n\\n.ag-cell-range-selected-2:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\\n  background-color: var(--ag-range-selection-background-color-2);\\n}\\n\\n.ag-cell-range-selected-3:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\\n  background-color: var(--ag-range-selection-background-color-3);\\n}\\n\\n.ag-cell-range-selected-4:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\\n  background-color: var(--ag-range-selection-background-color-4);\\n}\\n\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\\n  border-top-color: var(--ag-range-selection-border-color);\\n  border-top-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\\n  border-right-color: var(--ag-range-selection-border-color);\\n  border-right-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n  border-bottom-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\\n  border-left-color: var(--ag-range-selection-border-color);\\n  border-left-style: var(--ag-range-selection-border-style);\\n}\\n\\n.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-ltr .ag-cell-range-single-cell,\\n.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-rtl .ag-cell-range-single-cell,\\n.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\\n  border: 1px solid;\\n  border-color: var(--ag-range-selection-border-color);\\n  border-style: var(--ag-range-selection-border-style);\\n  outline: initial;\\n}\\n\\n.ag-cell.ag-selection-fill-top,\\n.ag-cell.ag-selection-fill-top.ag-cell-range-selected {\\n  border-top: 1px dashed;\\n  border-top-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-right,\\n.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-right,\\n.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-cell.ag-selection-fill-bottom,\\n.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\\n  border-bottom: 1px dashed;\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-left,\\n.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-left,\\n.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-fill-handle, .ag-range-handle {\\n  position: absolute;\\n  width: 6px;\\n  height: 6px;\\n  bottom: -1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-ltr .ag-fill-handle, .ag-ltr .ag-range-handle {\\n  right: -1px;\\n}\\n.ag-rtl .ag-fill-handle, .ag-rtl .ag-range-handle {\\n  left: -1px;\\n}\\n\\n.ag-fill-handle {\\n  cursor: cell;\\n}\\n\\n.ag-range-handle {\\n  cursor: nwse-resize;\\n}\\n\\n.ag-cell-inline-editing {\\n  border-color: var(--ag-input-focus-border-color) !important;\\n}\\n\\n.ag-menu {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-menu-background-color);\\n  border-color: var(--ag-menu-border-color);\\n  padding: 0;\\n}\\n\\n.ag-menu-list {\\n  cursor: default;\\n  padding: var(--ag-grid-size) 0;\\n}\\n\\n.ag-menu-separator {\\n  height: calc(var(--ag-grid-size) * 2 + 1px);\\n}\\n\\n.ag-menu-separator-part::after {\\n  content: \"\";\\n  display: block;\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-menu-option-active, .ag-compact-menu-option-active {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-menu-option-part, .ag-compact-menu-option-part {\\n  line-height: var(--ag-icon-size);\\n  padding: calc(var(--ag-grid-size) + 2px) 0;\\n}\\n\\n.ag-menu-option-disabled, .ag-compact-menu-option-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-menu-option-icon, .ag-compact-menu-option-icon {\\n  width: var(--ag-icon-size);\\n}\\n.ag-ltr .ag-menu-option-icon, .ag-ltr .ag-compact-menu-option-icon {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-menu-option-icon, .ag-rtl .ag-compact-menu-option-icon {\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-menu-option-text, .ag-compact-menu-option-text {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-menu-option-shortcut, .ag-ltr .ag-compact-menu-option-shortcut {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-menu-option-shortcut, .ag-rtl .ag-compact-menu-option-shortcut {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-menu-option-popup-pointer, .ag-ltr .ag-compact-menu-option-popup-pointer {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-menu-option-popup-pointer, .ag-rtl .ag-compact-menu-option-popup-pointer {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-tabs {\\n  min-width: var(--ag-tab-min-width);\\n}\\n\\n.ag-tabs-header {\\n  display: flex;\\n}\\n\\n.ag-tabs-header-wrapper {\\n  display: flex;\\n}\\n.ag-tabs-header-wrapper .ag-tabs-header {\\n  flex: 1;\\n}\\n\\n.ag-tabs-close-button-wrapper {\\n  border: 0;\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-tabs-close-button {\\n  border: 0;\\n  background-color: unset;\\n  cursor: pointer;\\n  padding: 0;\\n}\\n\\n.ag-tab {\\n  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  justify-content: center;\\n  cursor: pointer;\\n}\\n\\n.ag-tab:focus-visible {\\n  outline: none;\\n}\\n.ag-tab:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-tab-selected {\\n  border-bottom-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-menu-header {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-filter-separator {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-filter-select .ag-picker-field-wrapper {\\n  width: 0;\\n}\\n\\n.ag-filter-condition-operator {\\n  height: 17px;\\n}\\n\\n.ag-ltr .ag-filter-condition-operator-or {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-condition-operator-or {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-set-filter-select-all {\\n  padding-top: var(--ag-widget-container-vertical-padding);\\n}\\n\\n.ag-set-filter-list, .ag-filter-no-matches {\\n  height: calc(var(--ag-list-item-height) * 6);\\n}\\n\\n.ag-set-filter-tree-list {\\n  height: calc(var(--ag-list-item-height) * 10);\\n}\\n\\n.ag-set-filter-filter {\\n  margin-top: var(--ag-widget-container-vertical-padding);\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-to {\\n  margin-top: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-mini-filter {\\n  margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-set-filter-item {\\n  padding: 0px var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-add-group-indent {\\n  margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));\\n}\\n.ag-rtl .ag-set-filter-add-group-indent {\\n  margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));\\n}\\n\\n.ag-ltr .ag-set-filter-group-icons {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-set-filter-group-icons {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-menu .ag-set-filter-list {\\n  min-width: 200px;\\n}\\n\\n.ag-filter-virtual-list-item:focus-visible {\\n  outline: none;\\n}\\n.ag-filter-virtual-list-item:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-filter-apply-panel {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-filter-apply-panel-button {\\n  line-height: 1.5;\\n}\\n.ag-ltr .ag-filter-apply-panel-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-apply-panel-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-simple-filter-body-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n  overflow-y: auto;\\n  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));\\n}\\n.ag-simple-filter-body-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n.ag-simple-filter-body-wrapper .ag-resizer-wrapper {\\n  margin: 0;\\n}\\n\\n.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,\\n.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {\\n  min-width: calc(var(--ag-menu-min-width) - 2px);\\n}\\n\\n.ag-filter-no-matches {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-multi-filter-menu-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-multi-filter-group-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);\\n  background-color: transparent;\\n}\\n\\n.ag-group-filter-field-select-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-group-filter-field-select-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-multi-filter-group-title-bar:focus-visible {\\n  outline: none;\\n}\\n.ag-multi-filter-group-title-bar:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-side-bar {\\n  position: relative;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  width: var(--ag-side-bar-panel-width);\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-side-buttons {\\n  padding-top: calc(var(--ag-grid-size) * 4);\\n  width: calc(var(--ag-icon-size) + 4px);\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\nbutton.ag-side-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  background: transparent;\\n  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;\\n  width: 100%;\\n  margin: 0;\\n  min-height: calc(var(--ag-grid-size) * 18);\\n  background-position-y: center;\\n  background-position-x: center;\\n  background-repeat: no-repeat;\\n  border: none;\\n  border-top: var(--ag-borders-side-button) var(--ag-border-color);\\n  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);\\n}\\nbutton.ag-side-button-button:focus {\\n  box-shadow: none;\\n}\\n\\n.ag-side-button-button:focus-visible {\\n  outline: none;\\n}\\n.ag-side-button-button:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-selected button.ag-side-button-button {\\n  background-color: var(--ag-side-button-selected-background-color);\\n}\\n\\n.ag-side-button-icon-wrapper {\\n  margin-bottom: 3px;\\n}\\n\\n.ag-ltr .ag-side-bar-left,\\n.ag-rtl .ag-side-bar-right {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-side-button-button {\\n  border-right: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-right var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-right-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-rtl .ag-side-bar-left,\\n.ag-ltr .ag-side-bar-right {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-side-button-button {\\n  border-left: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-left var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-left-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-filter-toolpanel-header {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n\\n.ag-filter-toolpanel-header,\\n.ag-filter-toolpanel-search {\\n  padding: 0 var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-header:focus-visible {\\n  outline: none;\\n}\\n.ag-filter-toolpanel-header:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  font-family: var(--ag-icon-font-family);\\n  font-weight: var(--ag-icon-font-weight);\\n  color: var(--ag-icon-font-color);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n  position: absolute;\\n}\\n.ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0-header {\\n  height: calc(var(--ag-grid-size) * 8);\\n}\\n\\n.ag-filter-toolpanel-group-item {\\n  margin-top: calc(var(--ag-grid-size) * 0.5);\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-filter-toolpanel-search {\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-filter-toolpanel-search-input {\\n  flex-grow: 1;\\n  height: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-ltr .ag-filter-toolpanel-search-input {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-search-input {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0 {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-expand,\\n.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-expand,\\n.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-instance-filter {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-instance-header-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-instance-header-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-set-filter-group-icons {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-pivot-mode-panel {\\n  min-height: var(--ag-header-height);\\n  height: var(--ag-header-height);\\n  display: flex;\\n}\\n\\n.ag-pivot-mode-select {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-ltr .ag-pivot-mode-select {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-pivot-mode-select {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-column-select-header:focus-visible {\\n  outline: none;\\n}\\n.ag-column-select-header:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-header {\\n  height: var(--ag-header-height);\\n  align-items: center;\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-panel-column-select {\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-group-icons,\\n.ag-column-select-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-select-list .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-column-select-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-column-select-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-header, .ag-advanced-filter-header {\\n  background-color: var(--ag-header-background-color);\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-row {\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-pinned-right-header {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-pinned-left-header {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon, .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon, .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon, .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon, .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-header-cell,\\n.ag-header-group-cell {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-header-cell.ag-header-cell-moving,\\n.ag-header-group-cell.ag-header-cell-moving {\\n  background-color: var(--ag-header-cell-moving-background-color);\\n}\\n\\n.ag-ltr .ag-header-group-cell-label.ag-sticky-label {\\n  left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-group-cell-label.ag-sticky-label {\\n  right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-header-cell:focus-visible {\\n  outline: none;\\n}\\n.ag-header-cell:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-header-group-cell:focus-visible {\\n  outline: none;\\n}\\n.ag-header-group-cell:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-advanced-filter-header-cell:focus-visible {\\n  outline: none;\\n}\\n.ag-advanced-filter-header-cell:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-header-expand-icon {\\n  cursor: pointer;\\n}\\n.ag-ltr .ag-header-expand-icon {\\n  margin-left: 4px;\\n}\\n.ag-rtl .ag-header-expand-icon {\\n  margin-right: 4px;\\n}\\n\\n.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),\\n.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-group-cell:first-of-type.ag-column-resizing,\\n.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {\\n  background-color: var(--ag-header-cell-hover-background-color);\\n}\\n\\n.ag-header-cell::before,\\n.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-separator-display);\\n  width: var(--ag-header-column-separator-width);\\n  height: var(--ag-header-column-separator-height);\\n  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);\\n  background-color: var(--ag-header-column-separator-color);\\n}\\n.ag-ltr .ag-header-cell::before,\\n.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\\n  right: 0;\\n}\\n.ag-rtl .ag-header-cell::before,\\n.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\\n  left: 0;\\n}\\n\\n.ag-header-cell-resize {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-resize::after {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-resize-handle-display);\\n  width: var(--ag-header-column-resize-handle-width);\\n  height: var(--ag-header-column-resize-handle-height);\\n  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);\\n  background-color: var(--ag-header-column-resize-handle-color);\\n}\\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\\n  height: calc(100% - var(--ag-grid-size) * 4);\\n  top: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {\\n  right: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize::after {\\n  left: 50%;\\n}\\n\\n.ag-ltr .ag-header-select-all {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-select-all {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-floating-filter-button {\\n  margin-left: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-floating-filter-button {\\n  margin-right: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-floating-filter-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  appearance: none;\\n  background: transparent;\\n  border: none;\\n  height: var(--ag-icon-size);\\n  padding: 0;\\n  width: var(--ag-icon-size);\\n}\\n\\n.ag-filter-loading {\\n  background-color: var(--ag-control-panel-background-color);\\n  height: 100%;\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  position: absolute;\\n  width: 100%;\\n  z-index: 1;\\n}\\n\\n.ag-paging-panel {\\n  border-top: 1px solid;\\n  border-top-color: var(--ag-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n.ag-paging-panel > * {\\n  margin: 0 var(--ag-cell-horizontal-padding);\\n}\\n.ag-paging-panel > .ag-paging-page-size .ag-wrapper {\\n  min-width: calc(var(--ag-grid-size) * 10);\\n}\\n\\n.ag-paging-button {\\n  cursor: pointer;\\n}\\n\\n.ag-paging-button.ag-disabled {\\n  cursor: default;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-paging-button:focus-visible {\\n  outline: none;\\n}\\n.ag-paging-button:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-paging-button, .ag-paging-description {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-status-bar {\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  color: var(--ag-disabled-foreground-color);\\n  padding-right: calc(var(--ag-grid-size) * 4);\\n  padding-left: calc(var(--ag-grid-size) * 4);\\n  line-height: 1.5;\\n}\\n\\n.ag-status-name-value-value {\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-status-bar-center {\\n  text-align: center;\\n}\\n\\n.ag-status-name-value {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell {\\n  background: var(--ag-chip-background-color);\\n  border-radius: calc(var(--ag-grid-size) * 4);\\n  height: calc(var(--ag-grid-size) * 4);\\n  padding: 0 calc(var(--ag-grid-size) * 0.5);\\n  border: 1px solid var(--ag-chip-border-color);\\n}\\n\\n.ag-column-drop-cell:focus-visible {\\n  outline: none;\\n}\\n.ag-column-drop-cell:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 2px;\\n  left: 2px;\\n  display: block;\\n  width: calc(100% - 4px);\\n  height: calc(100% - 4px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-drop-cell-text {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-cell-button {\\n  min-width: calc(var(--ag-grid-size) * 4);\\n  margin: 0 calc(var(--ag-grid-size) * 0.5);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-cell-drag-handle {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell-ghost {\\n  opacity: 0.5;\\n}\\n\\n.ag-column-drop-horizontal {\\n  background-color: var(--ag-header-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-column-drop-horizontal {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-column-drop-horizontal-cell-separator {\\n  margin: 0 var(--ag-grid-size);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-horizontal-empty-message {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-icon {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal-icon {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-column-drop-vertical-list {\\n  padding-bottom: var(--ag-grid-size);\\n  padding-right: var(--ag-grid-size);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-cell {\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical {\\n  min-height: 50px;\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-column-drop-vertical.ag-last-column-drop {\\n  border-bottom: none;\\n}\\n\\n.ag-column-drop-vertical-icon {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  overflow: hidden;\\n  color: var(--ag-disabled-foreground-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-select-agg-func-popup {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background: var(--ag-background-color);\\n  height: calc(var(--ag-grid-size) * 5 * 3.5);\\n  padding: 0;\\n}\\n\\n.ag-select-agg-func-virtual-list-item {\\n  cursor: default;\\n}\\n.ag-ltr .ag-select-agg-func-virtual-list-item {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-select-agg-func-virtual-list-item {\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-select-agg-func-virtual-list-item:hover {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-select-agg-func-virtual-list-item:focus-visible {\\n  outline: none;\\n}\\n.ag-select-agg-func-virtual-list-item:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-sort-indicator-container {\\n  display: flex;\\n}\\n\\n.ag-ltr .ag-sort-indicator-icon {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-sort-indicator-icon {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-chart {\\n  position: relative;\\n  display: flex;\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-chart-components-wrapper {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-title-edit {\\n  position: absolute;\\n  display: none;\\n  top: 0;\\n  left: 0;\\n  text-align: center;\\n}\\n\\n.ag-chart-title-edit.currently-editing {\\n  display: inline-block;\\n}\\n\\n.ag-chart-canvas-wrapper {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-charts-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-menu {\\n  position: absolute;\\n  top: 16px;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-ltr .ag-chart-menu {\\n  right: 20px;\\n}\\n.ag-rtl .ag-chart-menu {\\n  left: 20px;\\n}\\n\\n.ag-chart-docked-container {\\n  position: relative;\\n  width: 0;\\n  min-width: 0;\\n  transition: min-width 0.4s;\\n}\\n\\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\\n  max-width: 0;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu {\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu-header {\\n  flex: none;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  cursor: default;\\n}\\n\\n.ag-chart-tabbed-menu-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: stretch;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tab {\\n  width: 100%;\\n  overflow: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings {\\n  overflow-x: hidden;\\n}\\n\\n.ag-chart-settings-wrapper {\\n  position: relative;\\n  flex-direction: column;\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-settings-nav-bar {\\n  display: flex;\\n  align-items: center;\\n  width: 100%;\\n  height: 30px;\\n  padding: 0 10px;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-chart-settings-card-selector {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-around;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  padding: 0 10px;\\n}\\n\\n.ag-chart-settings-card-item {\\n  cursor: pointer;\\n  width: 10px;\\n  height: 10px;\\n  background-color: #000;\\n  position: relative;\\n}\\n.ag-chart-settings-card-item.ag-not-selected {\\n  opacity: 0.2;\\n}\\n.ag-chart-settings-card-item::before {\\n  content: \" \";\\n  display: block;\\n  position: absolute;\\n  background-color: transparent;\\n  left: 50%;\\n  top: 50%;\\n  margin-left: -10px;\\n  margin-top: -10px;\\n  width: 20px;\\n  height: 20px;\\n}\\n\\n.ag-chart-settings-prev,\\n.ag-chart-settings-next {\\n  position: relative;\\n  flex: none;\\n}\\n\\n.ag-chart-settings-prev-button,\\n.ag-chart-settings-next-button {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  cursor: pointer;\\n  opacity: 0;\\n}\\n\\n.ag-chart-settings-mini-charts-container {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow-x: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings-mini-wrapper {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  display: flex;\\n  flex-direction: column;\\n  width: 100%;\\n  min-height: 100%;\\n  overflow: hidden;\\n}\\n.ag-chart-settings-mini-wrapper.ag-animating {\\n  transition: left 0.3s;\\n  transition-timing-function: ease-in-out;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  cursor: pointer;\\n}\\n\\n.ag-chart-mini-thumbnail-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-data-wrapper,\\n.ag-chart-format-wrapper,\\n.ag-chart-advanced-settings-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  padding-bottom: 16px;\\n}\\n\\n.ag-chart-data-wrapper,\\n.ag-chart-advanced-settings-wrapper {\\n  height: 100%;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-advanced-settings {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-chart-advanced-settings-wrapper, .ag-chart-advanced-settings {\\n  width: 100%;\\n}\\n\\n.ag-chart-advanced-settings-wrapper {\\n  padding-bottom: 0;\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section,\\n.ag-chart-advanced-settings-section {\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-advanced-settings-section {\\n  border-bottom: 1px solid var(--ag-secondary-border-color);\\n  padding-top: var(--ag-grid-size);\\n  padding-bottom: var(--ag-grid-size);\\n}\\n\\n.ag-chart-empty-text {\\n  display: flex;\\n  top: 0;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-chart .ag-chart-menu {\\n  display: none;\\n}\\n\\n.ag-chart-menu-hidden:hover .ag-chart-menu {\\n  display: block;\\n}\\n\\n.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\\n  display: flex;\\n  flex-direction: row;\\n  top: 8px;\\n  gap: 20px;\\n  width: auto;\\n}\\n.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\\n  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: right;\\n}\\n.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\\n  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: left;\\n}\\n\\n.ag-chart-menu-close {\\n  display: none;\\n}\\n\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  position: absolute;\\n  top: 50%;\\n  transition: transform 0.33s ease-in-out;\\n  padding: 0;\\n  display: block;\\n  cursor: pointer;\\n  border: none;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  left: 0px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon {\\n  padding: 14px 5px 14px 2px;\\n  width: auto;\\n  height: auto;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  content: \"\";\\n  position: absolute;\\n  top: -40px;\\n  bottom: -40px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: 0px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: -10px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: -10px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-icon-menu {\\n  display: none;\\n}\\n\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(3px, -50%);\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(5px, -50%);\\n}\\n\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(-3px, -50%);\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(-5px, -50%);\\n}\\n\\n.ag-charts-font-size-color {\\n  display: flex;\\n  align-self: stretch;\\n  justify-content: space-between;\\n}\\n\\n.ag-charts-data-group-item {\\n  position: relative;\\n}\\n\\n.ag-charts-data-group-item:not(:last-child) {\\n  margin-bottom: var(--ag-grid-size);\\n}\\n\\n.ag-chart-menu {\\n  border-radius: var(--ag-card-radius);\\n  background: var(--ag-background-color);\\n}\\n\\n.ag-chart-menu-icon {\\n  opacity: 0.5;\\n  margin: 2px 0;\\n  cursor: pointer;\\n  border-radius: var(--ag-card-radius);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-chart-menu-icon:hover {\\n  opacity: 1;\\n}\\n\\n.ag-chart-menu-toolbar-button {\\n  border: 0;\\n  background-color: unset;\\n  padding: 0 2px;\\n  border-radius: 1px;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-radius: 5px;\\n}\\n.ag-chart-mini-thumbnail.ag-selected {\\n  border-color: var(--ag-minichart-selected-chart-color);\\n}\\n\\n.ag-chart-settings-card-item {\\n  background: var(--ag-foreground-color);\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 4px;\\n}\\n.ag-chart-settings-card-item.ag-selected {\\n  background-color: var(--ag-minichart-selected-page-color);\\n}\\n\\n.ag-chart-data-column-drag-handle {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-charts-settings-group-title-bar,\\n.ag-charts-data-group-title-bar,\\n.ag-charts-format-top-level-group-title-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  position: relative;\\n}\\n\\n.ag-charts-advanced-settings-top-level-group-title-bar {\\n  position: relative;\\n  background-color: unset;\\n}\\n\\n.ag-charts-settings-group-title-bar:focus-visible {\\n  outline: none;\\n}\\n.ag-charts-settings-group-title-bar:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-charts-data-group-title-bar:focus-visible {\\n  outline: none;\\n}\\n.ag-charts-data-group-title-bar:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-charts-format-top-level-group-title-bar:focus-visible {\\n  outline: none;\\n}\\n.ag-charts-format-top-level-group-title-bar:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible {\\n  outline: none;\\n}\\n.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-charts-data-group-container {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {\\n  height: var(--ag-list-item-height);\\n}\\n.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {\\n  margin-top: var(--ag-grid-size);\\n}\\n.ag-charts-data-group-container .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-charts-data-group-container .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-charts-data-group-container .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-charts-format-top-level-group-container,\\n.ag-charts-advanced-settings-top-level-group-container {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-charts-format-top-level-group-item,\\n.ag-charts-advanced-settings-top-level-group-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-charts-format-sub-level-group-container {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-charts-format-sub-level-group-container > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-charts-settings-group-container {\\n  padding: var(--ag-grid-size);\\n  row-gap: 8px;\\n  display: grid;\\n  grid-template-columns: 60px 1fr 60px 1fr 60px;\\n}\\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {\\n  grid-column: 1;\\n}\\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {\\n  grid-column: 3;\\n}\\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {\\n  grid-column: 5;\\n}\\n\\n.ag-chart-menu-panel {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-ltr .ag-chart-menu-panel {\\n  border-left: solid 1px var(--ag-border-color);\\n}\\n.ag-rtl .ag-chart-menu-panel {\\n  border-right: solid 1px var(--ag-border-color);\\n}\\n\\n.ag-date-time-list-page-title-bar {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-title {\\n  flex-grow: 1;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-labels-row,\\n.ag-date-time-list-page-entries-row {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-column-label,\\n.ag-date-time-list-page-entry {\\n  flex-basis: 0;\\n  flex-grow: 1;\\n}\\n\\n.ag-date-time-list-page-entry {\\n  cursor: pointer;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-label {\\n  text-align: center;\\n}\\n\\n.ag-advanced-filter-header {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n  padding-left: var(--ag-cell-horizontal-padding);\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-advanced-filter {\\n  display: flex;\\n  align-items: center;\\n  width: 100%;\\n}\\n\\n.ag-advanced-filter-apply-button, .ag-advanced-filter-builder-button {\\n  line-height: normal;\\n  white-space: nowrap;\\n}\\n.ag-ltr .ag-advanced-filter-apply-button, .ag-ltr .ag-advanced-filter-builder-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-advanced-filter-apply-button, .ag-rtl .ag-advanced-filter-builder-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-advanced-filter-builder-button {\\n  display: flex;\\n  align-items: center;\\n  border: 0;\\n  background-color: unset;\\n  color: var(--ag-foreground-color);\\n  font-size: var(--ag-font-size);\\n  font-weight: 600;\\n}\\n.ag-advanced-filter-builder-button:hover:not(:disabled) {\\n  background-color: var(--ag-row-hover-color);\\n}\\n.ag-advanced-filter-builder-button:not(:disabled) {\\n  cursor: pointer;\\n}\\n\\n.ag-advanced-filter-builder-button-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-advanced-filter-builder {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  width: 100%;\\n  background-color: var(--ag-control-panel-background-color);\\n  display: flex;\\n  flex-direction: column;\\n}\\n\\n.ag-advanced-filter-builder-list {\\n  flex: 1;\\n  overflow: auto;\\n}\\n.ag-advanced-filter-builder-list .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-advanced-filter-builder-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-advanced-filter-builder-button-panel {\\n  display: flex;\\n  justify-content: flex-end;\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,\\n.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-advanced-filter-builder-item-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  justify-content: space-between;\\n  overflow: hidden;\\n  padding-left: calc(var(--ag-icon-size) / 2);\\n  padding-right: var(--ag-icon-size);\\n}\\n\\n.ag-advanced-filter-builder-item-tree-lines > * {\\n  width: var(--ag-advanced-filter-builder-indent-size);\\n}\\n\\n.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {\\n  width: var(--ag-icon-size);\\n}\\n.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {\\n  top: 50%;\\n  height: 50%;\\n}\\n\\n.ag-advanced-filter-builder-item-tree-line-horizontal,\\n.ag-advanced-filter-builder-item-tree-line-vertical,\\n.ag-advanced-filter-builder-item-tree-line-vertical-top,\\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom {\\n  position: relative;\\n  height: 100%;\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,\\n.ag-advanced-filter-builder-item-tree-line-vertical::before,\\n.ag-advanced-filter-builder-item-tree-line-vertical::after,\\n.ag-advanced-filter-builder-item-tree-line-vertical-top::before,\\n.ag-advanced-filter-builder-item-tree-line-vertical-top::after,\\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,\\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {\\n  content: \"\";\\n  position: absolute;\\n  height: 100%;\\n}\\n\\n.ag-advanced-filter-builder-item-tree-line-horizontal::after {\\n  height: 50%;\\n  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));\\n  top: 0;\\n  left: calc(var(--ag-icon-size) / 2);\\n  border-bottom: 1px solid;\\n  border-color: var(--ag-border-color);\\n}\\n\\n.ag-advanced-filter-builder-item-tree-line-vertical::before {\\n  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);\\n  top: 0;\\n  left: calc(var(--ag-icon-size) / 2);\\n  border-left: 1px solid;\\n  border-color: var(--ag-border-color);\\n}\\n\\n.ag-advanced-filter-builder-item-tree-line-vertical-top::before {\\n  height: 50%;\\n  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);\\n  top: 0;\\n  left: calc(var(--ag-icon-size) / 2);\\n  border-left: 1px solid;\\n  border-color: var(--ag-border-color);\\n}\\n\\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {\\n  height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);\\n  width: calc(var(--ag-icon-size) / 2);\\n  top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);\\n  left: calc(var(--ag-icon-size) / 2);\\n  border-left: 1px solid;\\n  border-color: var(--ag-border-color);\\n}\\n\\n.ag-advanced-filter-builder-item-condition {\\n  padding-top: var(--ag-grid-size);\\n  padding-bottom: var(--ag-grid-size);\\n}\\n\\n.ag-advanced-filter-builder-item,\\n.ag-advanced-filter-builder-item-condition,\\n.ag-advanced-filter-builder-pill-wrapper,\\n.ag-advanced-filter-builder-pill,\\n.ag-advanced-filter-builder-item-buttons,\\n.ag-advanced-filter-builder-item-tree-lines {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n}\\n\\n.ag-advanced-filter-builder-pill-wrapper {\\n  margin: 0px var(--ag-grid-size);\\n}\\n\\n.ag-advanced-filter-builder-pill {\\n  position: relative;\\n  border-radius: var(--ag-border-radius);\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  min-height: calc(100% - var(--ag-grid-size) * 3);\\n  min-width: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-advanced-filter-builder-pill .ag-picker-field-display {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {\\n  font-family: monospace;\\n  font-weight: 700;\\n}\\n.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-advanced-filter-builder-pill:focus-visible {\\n  outline: none;\\n}\\n.ag-advanced-filter-builder-pill:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-advanced-filter-builder-item-button:focus-visible {\\n  outline: none;\\n}\\n.ag-advanced-filter-builder-item-button:focus-visible::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: -4px;\\n  left: -4px;\\n  display: block;\\n  width: calc(100% - -8px);\\n  height: calc(100% - -8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-advanced-filter-builder-pill-display {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  font-weight: 500;\\n}\\n\\n.ag-advanced-filter-builder-join-pill {\\n  color: var(--ag-foreground-color);\\n  background-color: var(--ag-advanced-filter-join-pill-color);\\n  cursor: pointer;\\n}\\n\\n.ag-advanced-filter-builder-column-pill {\\n  color: var(--ag-foreground-color);\\n  background-color: var(--ag-advanced-filter-column-pill-color);\\n  cursor: pointer;\\n}\\n\\n.ag-advanced-filter-builder-option-pill {\\n  color: var(--ag-foreground-color);\\n  background-color: var(--ag-advanced-filter-option-pill-color);\\n  cursor: pointer;\\n}\\n\\n.ag-advanced-filter-builder-value-pill {\\n  color: var(--ag-foreground-color);\\n  background-color: var(--ag-advanced-filter-value-pill-color);\\n  cursor: text;\\n  max-width: 140px;\\n}\\n.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {\\n  display: block;\\n}\\n\\n.ag-advanced-filter-builder-item-buttons > * {\\n  margin: 0 calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-advanced-filter-builder-item-button {\\n  position: relative;\\n  cursor: pointer;\\n  color: var(--ag-secondary-foreground-color);\\n  opacity: 50%;\\n}\\n\\n.ag-advanced-filter-builder-item-button-disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  cursor: default;\\n}\\n\\n.ag-advanced-filter-builder-virtual-list-container {\\n  top: var(--ag-grid-size);\\n}\\n\\n.ag-advanced-filter-builder-virtual-list-item {\\n  display: flex;\\n  cursor: default;\\n  height: var(--ag-list-item-height);\\n}\\n.ag-advanced-filter-builder-virtual-list-item:hover {\\n  background-color: var(--ag-row-hover-color);\\n}\\n.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {\\n  opacity: 100%;\\n}\\n\\n.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,\\n.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {\\n  opacity: 100%;\\n}\\n\\n.ag-advanced-filter-builder-invalid {\\n  margin: 0 var(--ag-grid-size);\\n  color: var(--ag-invalid-color);\\n  cursor: default;\\n}\\n\\n.ag-input-field-input {\\n  width: 100%;\\n  min-width: 0;\\n}\\n\\n.ag-checkbox-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-weight: var(--ag-icon-font-weight);\\n  color: var(--ag-icon-font-color);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n}\\n.ag-checkbox-input-wrapper input, .ag-checkbox-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-checkbox-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-checkbox-input-wrapper::after {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n  color: var(--ag-checkbox-checked-color);\\n  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-indeterminate::after {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n  color: var(--ag-checkbox-indeterminate-color);\\n  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper::before {\\n  content: \"\";\\n  background: transparent center/contain no-repeat;\\n  position: absolute;\\n  inset: 0;\\n  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));\\n}\\n.ag-checkbox-input-wrapper.ag-checked::before {\\n  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));\\n}\\n.ag-checkbox-input-wrapper.ag-indeterminate::before {\\n  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\n.ag-toggle-button-input-wrapper {\\n  box-sizing: border-box;\\n  width: var(--ag-toggle-button-width);\\n  min-width: var(--ag-toggle-button-width);\\n  max-width: var(--ag-toggle-button-width);\\n  height: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-off-background-color);\\n  border-radius: calc(var(--ag-toggle-button-height) * 0.5);\\n  position: relative;\\n  flex: none;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-off-border-color);\\n}\\n.ag-toggle-button-input-wrapper input {\\n  opacity: 0;\\n  height: 100%;\\n  width: 100%;\\n}\\n.ag-toggle-button-input-wrapper:focus-within {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-toggle-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-toggle-button-input-wrapper.ag-checked {\\n  background-color: var(--ag-toggle-button-on-background-color);\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n.ag-toggle-button-input-wrapper::before {\\n  content: \" \";\\n  position: absolute;\\n  top: calc(0px - var(--ag-toggle-button-border-width));\\n  left: calc(0px - var(--ag-toggle-button-border-width));\\n  display: block;\\n  box-sizing: border-box;\\n  height: var(--ag-toggle-button-height);\\n  width: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-switch-background-color);\\n  border-radius: 100%;\\n  transition: left 100ms;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-switch-border-color);\\n}\\n.ag-toggle-button-input-wrapper.ag-checked::before {\\n  left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n\\n.ag-radio-button-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-weight: var(--ag-icon-font-weight);\\n  color: var(--ag-icon-font-color);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n  border-radius: var(--ag-icon-size);\\n}\\n.ag-radio-button-input-wrapper input, .ag-radio-button-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-radio-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-radio-button-input-wrapper::after {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-radio-button-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n  color: var(--ag-checkbox-checked-color);\\n  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-radio-button-input-wrapper::before {\\n  content: \"\";\\n  background: transparent center/contain no-repeat;\\n  position: absolute;\\n  inset: 0;\\n  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));\\n}\\n.ag-radio-button-input-wrapper.ag-checked::before {\\n  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));\\n  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));\\n  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));\\n}\\n\\ninput[class^=ag-][type=range] {\\n  -webkit-appearance: none;\\n  width: 100%;\\n  height: 100%;\\n  background: none;\\n  overflow: visible;\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-runnable-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-moz-range-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-ms-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  color: transparent;\\n  width: calc(100% - 2px);\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));\\n}\\ninput[class^=ag-][type=range]::-ms-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]::-moz-ag-range-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]:focus {\\n  outline: none;\\n}\\ninput[class^=ag-][type=range]:focus::-webkit-slider-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-ms-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-moz-ag-range-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-ms-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:disabled {\\n  opacity: 0.5;\\n}\\n`,\"\"]);const h=d},1590:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(8430),n.b),d=a()(i()),u=l()(c);d.push([e.id,`@font-face {\\n  font-family: \"agGridAlpine\";\\n  src: url(${u});\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-alpine, .ag-theme-alpine-dark, .ag-theme-alpine-auto-dark {\\n  --ag-alpine-active-color: #2196f3;\\n  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);\\n  --ag-row-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-column-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);\\n  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);\\n  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);\\n  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);\\n  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);\\n  --ag-background-color: #fff;\\n  --ag-foreground-color: #181d1f;\\n  --ag-border-color: #babfc7;\\n  --ag-secondary-border-color: #dde2eb;\\n  --ag-header-background-color: #f8f8f8;\\n  --ag-tooltip-background-color: #f8f8f8;\\n  --ag-odd-row-background-color: #fcfcfc;\\n  --ag-control-panel-background-color: #f8f8f8;\\n  --ag-subheader-background-color: #fff;\\n  --ag-invalid-color: #e02525;\\n  --ag-checkbox-unchecked-color: #999;\\n  --ag-advanced-filter-join-pill-color: #f08e8d;\\n  --ag-advanced-filter-column-pill-color: #a6e194;\\n  --ag-advanced-filter-option-pill-color: #f3c08b;\\n  --ag-advanced-filter-value-pill-color: #85c0e4;\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-checkbox-checked-color: var(--ag-alpine-active-color);\\n  --ag-range-selection-border-color: var(--ag-alpine-active-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-input-border-color: var(--ag-border-color);\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);\\n  --ag-panel-background-color: var(--ag-header-background-color);\\n  --ag-menu-background-color: var(--ag-header-background-color);\\n  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);\\n  --ag-chip-background-color: rgba(24, 29, 31, 0.07);\\n  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);\\n  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);\\n  --ag-borders: solid 1px;\\n  --ag-border-radius: 3px;\\n  --ag-borders-side-button: none;\\n  --ag-side-button-selected-background-color: transparent;\\n  --ag-header-column-resize-handle-display: block;\\n  --ag-header-column-resize-handle-width: 2px;\\n  --ag-header-column-resize-handle-height: 30%;\\n  --ag-grid-size: 6px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 4);\\n  --ag-column-select-indent-size: var(--ag-icon-size);\\n  --ag-set-filter-indent-size: var(--ag-icon-size);\\n  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);\\n  --ag-toggle-button-height: 18px;\\n  --ag-toggle-button-width: 28px;\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 13px;\\n  --ag-icon-font-family: agGridAlpine;\\n  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);\\n  --ag-selected-tab-underline-width: 2px;\\n  --ag-selected-tab-underline-transition-speed: 0.3s;\\n  --ag-tab-min-width: 240px;\\n  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  --ag-popup-shadow: var(--ag-card-shadow);\\n  --ag-side-bar-panel-width: 250px;\\n}\\n\\n.ag-theme-alpine-dark {\\n  --ag-background-color: #181d1f;\\n  --ag-foreground-color: #fff;\\n  --ag-border-color: #68686e;\\n  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);\\n  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);\\n  --ag-header-background-color: #222628;\\n  --ag-tooltip-background-color: #222628;\\n  --ag-odd-row-background-color: #222628;\\n  --ag-control-panel-background-color: #222628;\\n  --ag-subheader-background-color: #000;\\n  --ag-input-disabled-background-color: #282c2f;\\n  --ag-input-focus-box-shadow:\\n      0 0 2px 0.5px rgba(255, 255, 255, 0.5),\\n      0 0 4px 3px var(--ag-input-focus-border-color);\\n  --ag-card-shadow: 0 1px 20px 1px black;\\n  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);\\n  --ag-chip-background-color: rgba(255, 255, 255, 0.07);\\n  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);\\n  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);\\n  --ag-advanced-filter-join-pill-color: #7a3a37;\\n  --ag-advanced-filter-column-pill-color: #355f2d;\\n  --ag-advanced-filter-option-pill-color: #5a3168;\\n  --ag-advanced-filter-value-pill-color: #374c86;\\n  color-scheme: dark;\\n}\\n\\n@media (prefers-color-scheme: dark) {\\n  .ag-theme-alpine-auto-dark {\\n    --ag-background-color: #181d1f;\\n    --ag-foreground-color: #fff;\\n    --ag-border-color: #68686e;\\n    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);\\n    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);\\n    --ag-header-background-color: #222628;\\n    --ag-tooltip-background-color: #222628;\\n    --ag-odd-row-background-color: #222628;\\n    --ag-control-panel-background-color: #222628;\\n    --ag-subheader-background-color: #000;\\n    --ag-input-disabled-background-color: #282c2f;\\n    --ag-input-focus-box-shadow:\\n        0 0 2px 0.5px rgba(255, 255, 255, 0.5),\\n        0 0 4px 3px var(--ag-input-focus-border-color);\\n    --ag-card-shadow: 0 1px 20px 1px black;\\n    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);\\n    --ag-chip-background-color: rgba(255, 255, 255, 0.07);\\n    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);\\n    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);\\n    --ag-advanced-filter-join-pill-color: #7a3a37;\\n    --ag-advanced-filter-column-pill-color: #355f2d;\\n    --ag-advanced-filter-option-pill-color: #5a3168;\\n    --ag-advanced-filter-value-pill-color: #374c86;\\n    color-scheme: dark;\\n  }\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-header,\\n.ag-theme-alpine .ag-filter-toolpanel-search,\\n.ag-theme-alpine .ag-status-bar,\\n.ag-theme-alpine .ag-header-row,\\n.ag-theme-alpine .ag-panel-title-bar-title,\\n.ag-theme-alpine .ag-multi-filter-group-title-bar, .ag-theme-alpine-dark .ag-filter-toolpanel-header,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-search,\\n.ag-theme-alpine-dark .ag-status-bar,\\n.ag-theme-alpine-dark .ag-header-row,\\n.ag-theme-alpine-dark .ag-panel-title-bar-title,\\n.ag-theme-alpine-dark .ag-multi-filter-group-title-bar, .ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,\\n.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,\\n.ag-theme-alpine-auto-dark .ag-status-bar,\\n.ag-theme-alpine-auto-dark .ag-header-row,\\n.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,\\n.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 700;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-alpine .ag-row, .ag-theme-alpine-dark .ag-row, .ag-theme-alpine-auto-dark .ag-row {\\n  font-size: calc(var(--ag-font-size) + 1px);\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]),\\n.ag-theme-alpine input[class^=ag-][type=text],\\n.ag-theme-alpine input[class^=ag-][type=number],\\n.ag-theme-alpine input[class^=ag-][type=tel],\\n.ag-theme-alpine input[class^=ag-][type=date],\\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine textarea[class^=ag-], .ag-theme-alpine-dark input[class^=ag-]:not([type]),\\n.ag-theme-alpine-dark input[class^=ag-][type=text],\\n.ag-theme-alpine-dark input[class^=ag-][type=number],\\n.ag-theme-alpine-dark input[class^=ag-][type=tel],\\n.ag-theme-alpine-dark input[class^=ag-][type=date],\\n.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine-dark textarea[class^=ag-], .ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),\\n.ag-theme-alpine-auto-dark input[class^=ag-][type=text],\\n.ag-theme-alpine-auto-dark input[class^=ag-][type=number],\\n.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],\\n.ag-theme-alpine-auto-dark input[class^=ag-][type=date],\\n.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine-auto-dark textarea[class^=ag-] {\\n  min-height: calc(var(--ag-grid-size) * 4);\\n  border-radius: var(--ag-border-radius);\\n}\\n.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-tab, .ag-theme-alpine-dark .ag-tab, .ag-theme-alpine-auto-dark .ag-tab {\\n  padding: calc(var(--ag-grid-size) * 1.5);\\n  transition: color 0.4s;\\n  flex: 1 1 auto;\\n}\\n.ag-theme-alpine .ag-tab-selected, .ag-theme-alpine-dark .ag-tab-selected, .ag-theme-alpine-auto-dark .ag-tab-selected {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-menu, .ag-theme-alpine-dark .ag-menu, .ag-theme-alpine-auto-dark .ag-menu {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select, .ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select, .ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-menu-header, .ag-theme-alpine-dark .ag-menu-header, .ag-theme-alpine-auto-dark .ag-menu-header {\\n  background-color: var(--ag-control-panel-background-color);\\n  padding-top: 1px;\\n}\\n.ag-theme-alpine .ag-tabs-header, .ag-theme-alpine-dark .ag-tabs-header, .ag-theme-alpine-auto-dark .ag-tabs-header {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine .ag-charts-data-group-title-bar,\\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,\\n.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-data-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar, .ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,\\n.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,\\n.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail, .ag-theme-alpine-dark .ag-chart-mini-thumbnail, .ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {\\n  background-color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-settings-nav-bar, .ag-theme-alpine-dark .ag-chart-settings-nav-bar, .ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,\\n.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,\\n.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,\\n.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {\\n  margin-top: var(--ag-grid-size);\\n}\\n.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {\\n  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {\\n  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-sub-level-group, .ag-theme-alpine-dark .ag-charts-format-sub-level-group, .ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  padding-left: var(--ag-grid-size);\\n  margin-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar, .ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  background: none;\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-container, .ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {\\n  padding-bottom: 0;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child, .ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {\\n  margin-bottom: 0;\\n}\\n.ag-theme-alpine.ag-dnd-ghost, .ag-theme-alpine-dark.ag-dnd-ghost, .ag-theme-alpine-auto-dark.ag-dnd-ghost {\\n  font-size: calc(var(--ag-font-size) - 1px);\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-side-buttons, .ag-theme-alpine-dark .ag-side-buttons, .ag-theme-alpine-auto-dark .ag-side-buttons {\\n  width: calc(var(--ag-grid-size) * 5);\\n}\\n.ag-theme-alpine .ag-standard-button, .ag-theme-alpine-dark .ag-standard-button, .ag-theme-alpine-auto-dark .ag-standard-button {\\n  font-family: inherit;\\n  appearance: none;\\n  -webkit-appearance: none;\\n  border-radius: var(--ag-border-radius);\\n  border: 1px solid;\\n  border-color: var(--ag-alpine-active-color);\\n  color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-background-color);\\n  font-weight: 600;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-standard-button:hover, .ag-theme-alpine-dark .ag-standard-button:hover, .ag-theme-alpine-auto-dark .ag-standard-button:hover {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-row-hover-color);\\n}\\n.ag-theme-alpine .ag-standard-button:active, .ag-theme-alpine-dark .ag-standard-button:active, .ag-theme-alpine-auto-dark .ag-standard-button:active {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-alpine-active-color);\\n  color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-standard-button:disabled, .ag-theme-alpine-dark .ag-standard-button:disabled, .ag-theme-alpine-auto-dark .ag-standard-button:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\n.ag-theme-alpine .ag-column-drop-vertical, .ag-theme-alpine-dark .ag-column-drop-vertical, .ag-theme-alpine-auto-dark .ag-column-drop-vertical {\\n  min-height: 75px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-title-bar, .ag-theme-alpine-dark .ag-column-drop-vertical-title-bar, .ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: 0px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-empty-message, .ag-theme-alpine-dark .ag-column-drop-vertical-empty-message, .ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {\\n  display: flex;\\n  align-items: center;\\n  border: dashed 1px;\\n  border-color: var(--ag-border-color);\\n  margin: calc(var(--ag-grid-size) * 2);\\n  padding: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-column-drop-empty-message, .ag-theme-alpine-dark .ag-column-drop-empty-message, .ag-theme-alpine-auto-dark .ag-column-drop-empty-message {\\n  color: var(--ag-foreground-color);\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-pill-select .ag-column-drop, .ag-theme-alpine-dark .ag-pill-select .ag-column-drop, .ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {\\n  min-height: unset;\\n}\\n.ag-theme-alpine .ag-status-bar, .ag-theme-alpine-dark .ag-status-bar, .ag-theme-alpine-auto-dark .ag-status-bar {\\n  font-weight: normal;\\n}\\n.ag-theme-alpine .ag-status-name-value-value, .ag-theme-alpine-dark .ag-status-name-value-value, .ag-theme-alpine-auto-dark .ag-status-name-value-value {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number, .ag-theme-alpine-dark .ag-paging-number, .ag-theme-alpine-dark .ag-paging-row-summary-panel-number, .ag-theme-alpine-auto-dark .ag-paging-number, .ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button, .ag-theme-alpine-dark .ag-column-drop-cell-button, .ag-theme-alpine-auto-dark .ag-column-drop-cell-button {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button:hover, .ag-theme-alpine-dark .ag-column-drop-cell-button:hover, .ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {\\n  opacity: 0.35;\\n}\\n.ag-theme-alpine .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine .ag-header-cell-filter-button:hover,\\n.ag-theme-alpine .ag-side-button-button:hover,\\n.ag-theme-alpine .ag-tab:hover,\\n.ag-theme-alpine .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine .ag-header-expand-icon:hover,\\n.ag-theme-alpine .ag-column-group-icons:hover,\\n.ag-theme-alpine .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine .ag-chart-settings-prev:hover,\\n.ag-theme-alpine .ag-chart-settings-next:hover,\\n.ag-theme-alpine .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine .ag-column-select-header-icon:hover,\\n.ag-theme-alpine .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine .ag-chart-menu-icon:hover,\\n.ag-theme-alpine .ag-chart-menu-close:hover, .ag-theme-alpine-dark .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,\\n.ag-theme-alpine-dark .ag-side-button-button:hover,\\n.ag-theme-alpine-dark .ag-tab:hover,\\n.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine-dark .ag-header-expand-icon:hover,\\n.ag-theme-alpine-dark .ag-column-group-icons:hover,\\n.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-prev:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-next:hover,\\n.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine-dark .ag-column-select-header-icon:hover,\\n.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-close:hover, .ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,\\n.ag-theme-alpine-auto-dark .ag-side-button-button:hover,\\n.ag-theme-alpine-auto-dark .ag-tab:hover,\\n.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,\\n.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,\\n.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,\\n.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,\\n.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,\\n.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,\\n.ag-theme-alpine .ag-side-button-button:hover .ag-icon,\\n.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,\\n.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon, .ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,\\n.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,\\n.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,\\n.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,\\n.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon, .ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,\\n.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,\\n.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,\\n.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,\\n.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {\\n  color: inherit;\\n}\\n.ag-theme-alpine .ag-filter-active .ag-icon-filter, .ag-theme-alpine-dark .ag-filter-active .ag-icon-filter, .ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close, .ag-theme-alpine-dark .ag-chart-menu-close, .ag-theme-alpine-auto-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon, .ag-theme-alpine-auto-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close .ag-icon, .ag-theme-alpine-auto-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  border-right: none;\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover, .ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover, .ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {\\n  opacity: 0.35;\\n}\\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {\\n  border: none;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  margin-left: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {\\n  border-right: dashed 1px;\\n  border-right-color: var(--ag-border-color);\\n  margin-right: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine-dark .ag-set-filter-list, .ag-theme-alpine-auto-dark .ag-set-filter-list {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-viewport, .ag-theme-alpine .ag-layout-print .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container, .ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport, .ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport, .ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {\\n  min-height: 150px;\\n}\\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height, .ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height, .ag-theme-alpine-auto-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 60px;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-entry-is-current, .ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current, .ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {\\n  background-color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-advanced-filter-builder-button, .ag-theme-alpine-dark .ag-advanced-filter-builder-button, .ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {\\n  padding: var(--ag-grid-size);\\n  font-weight: 600;\\n}\\n`,\"\"]);const h=d},6170:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(9377),n.b),d=a()(i()),u=l()(c);d.push([e.id,`@font-face {\\n  font-family: \"agGridBalham\";\\n  src: url(${u});\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-balham, .ag-theme-balham-dark, .ag-theme-balham-auto-dark {\\n  --ag-balham-active-color: #0091ea;\\n  --ag-foreground-color: #000;\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: #f5f7f7;\\n  --ag-tooltip-background-color: #cbd0d3;\\n  --ag-subheader-background-color: #e2e9eb;\\n  --ag-control-panel-background-color: #f5f7f7;\\n  --ag-border-color: #bdc3c7;\\n  --ag-odd-row-background-color: #fcfdfe;\\n  --ag-row-hover-color: #ecf0f1;\\n  --ag-column-hover-color: #ecf0f1;\\n  --ag-input-border-color: #95a5a6;\\n  --ag-invalid-color: #e02525;\\n  --ag-input-disabled-background-color: #ebebeb;\\n  --ag-checkbox-unchecked-color: #7f8c8d;\\n  --ag-input-focus-border-color: #719ECE;\\n  --ag-advanced-filter-join-pill-color: #f08e8d;\\n  --ag-advanced-filter-column-pill-color: #a6e194;\\n  --ag-advanced-filter-option-pill-color: #f3c08b;\\n  --ag-advanced-filter-value-pill-color: #85c0e4;\\n  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);\\n  --ag-range-selection-border-color: var(--ag-balham-active-color);\\n  --ag-checkbox-checked-color: var(--ag-balham-active-color);\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-panel-background-color: var(--ag-header-background-color);\\n  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);\\n  --ag-row-border-color: rgba(189, 195, 199, 0.58);\\n  --ag-chip-background-color: rgba(0, 0, 0, 0.1);\\n  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);\\n  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);\\n  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);\\n  --ag-header-column-separator-display: block;\\n  --ag-header-column-separator-height: 50%;\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 6);\\n  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-input-height: calc(var(--ag-grid-size) * 4);\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 12px;\\n  --ag-icon-font-family: agGridBalham;\\n  --ag-border-radius: 2px;\\n  --ag-checkbox-border-radius: 3px;\\n  --ag-card-shadow: none;\\n}\\n\\n.ag-theme-balham-dark {\\n  --ag-balham-active-color: #00B0FF;\\n  --ag-foreground-color: #F5F5F5;\\n  --ag-background-color: #2d3436;\\n  --ag-header-background-color: #1c1c1c;\\n  --ag-tooltip-background-color: #1c1f20;\\n  --ag-subheader-background-color: #111;\\n  --ag-control-panel-background-color: #202020;\\n  --ag-border-color: #424242;\\n  --ag-odd-row-background-color: #262c2e;\\n  --ag-row-hover-color: #3d4749;\\n  --ag-column-hover-color: #3d4749;\\n  --ag-input-border-color: #f0f0f0;\\n  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\\n  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\\n  --ag-checkbox-unchecked-color: #ecf0f1;\\n  --ag-advanced-filter-join-pill-color: #7a3a37;\\n  --ag-advanced-filter-column-pill-color: #355f2d;\\n  --ag-advanced-filter-option-pill-color: #5a3168;\\n  --ag-advanced-filter-value-pill-color: #374c86;\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\\n  --ag-row-border-color: #5c5c5c;\\n  --ag-chip-background-color: rgba(245, 245, 245, 0.08);\\n  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\\n  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\\n  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\\n  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\\n  --ag-toggle-button-off-background-color: transparent;\\n  --ag-toggle-button-off-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\\n  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\\n  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\\n  color-scheme: dark;\\n}\\n\\n@media (prefers-color-scheme: dark) {\\n  .ag-theme-balham-auto-dark {\\n    --ag-balham-active-color: #00B0FF;\\n    --ag-foreground-color: #F5F5F5;\\n    --ag-background-color: #2d3436;\\n    --ag-header-background-color: #1c1c1c;\\n    --ag-tooltip-background-color: #1c1f20;\\n    --ag-subheader-background-color: #111;\\n    --ag-control-panel-background-color: #202020;\\n    --ag-border-color: #424242;\\n    --ag-odd-row-background-color: #262c2e;\\n    --ag-row-hover-color: #3d4749;\\n    --ag-column-hover-color: #3d4749;\\n    --ag-input-border-color: #f0f0f0;\\n    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\\n    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\\n    --ag-checkbox-unchecked-color: #ecf0f1;\\n    --ag-advanced-filter-join-pill-color: #7a3a37;\\n    --ag-advanced-filter-column-pill-color: #355f2d;\\n    --ag-advanced-filter-option-pill-color: #5a3168;\\n    --ag-advanced-filter-value-pill-color: #374c86;\\n    --ag-secondary-foreground-color: var(--ag-foreground-color);\\n    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\\n    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\\n    --ag-row-border-color: #5c5c5c;\\n    --ag-chip-background-color: rgba(245, 245, 245, 0.08);\\n    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\\n    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\\n    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\\n    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\\n    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\\n    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\\n    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\\n    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\\n    --ag-toggle-button-off-background-color: transparent;\\n    --ag-toggle-button-off-border-color: var(--ag-foreground-color);\\n    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\\n    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\\n    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\\n    color-scheme: dark;\\n  }\\n}\\n.ag-theme-balham .ag-filter-toolpanel-header,\\n.ag-theme-balham .ag-filter-toolpanel-search,\\n.ag-theme-balham .ag-status-bar,\\n.ag-theme-balham .ag-header-row,\\n.ag-theme-balham .ag-multi-filter-group-title-bar, .ag-theme-balham-dark .ag-filter-toolpanel-header,\\n.ag-theme-balham-dark .ag-filter-toolpanel-search,\\n.ag-theme-balham-dark .ag-status-bar,\\n.ag-theme-balham-dark .ag-header-row,\\n.ag-theme-balham-dark .ag-multi-filter-group-title-bar, .ag-theme-balham-auto-dark .ag-filter-toolpanel-header,\\n.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,\\n.ag-theme-balham-auto-dark .ag-status-bar,\\n.ag-theme-balham-auto-dark .ag-header-row,\\n.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 600;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar, .ag-theme-balham-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-status-bar, .ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-status-bar {\\n  font-weight: 600;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham.ag-dnd-ghost, .ag-theme-balham-dark.ag-dnd-ghost, .ag-theme-balham-auto-dark.ag-dnd-ghost {\\n  font-size: var(--ag-font-size);\\n  font-weight: 600;\\n}\\n.ag-theme-balham .ag-tab, .ag-theme-balham-dark .ag-tab, .ag-theme-balham-auto-dark .ag-tab {\\n  border: 1px solid transparent;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  margin: var(--ag-grid-size);\\n  margin-bottom: -1px;\\n}\\n.ag-theme-balham .ag-tab-selected, .ag-theme-balham-dark .ag-tab-selected, .ag-theme-balham-auto-dark .ag-tab-selected {\\n  background-color: var(--ag-background-color);\\n  border-color: var(--ag-border-color);\\n  border-bottom-color: transparent;\\n}\\n.ag-theme-balham .ag-tabs-header, .ag-theme-balham-dark .ag-tabs-header, .ag-theme-balham-auto-dark .ag-tabs-header {\\n  border-bottom: 1px solid var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-column-drop-cell, .ag-theme-balham-dark .ag-column-drop-cell, .ag-theme-balham-auto-dark .ag-column-drop-cell {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-title, .ag-theme-balham-dark .ag-column-drop-vertical-title, .ag-theme-balham-auto-dark .ag-column-drop-vertical-title {\\n  color: var(--ag-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell, .ag-theme-balham-dark .ag-column-drop-vertical-cell, .ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell-text, .ag-theme-balham-dark .ag-column-drop-vertical-cell-text, .ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-icon, .ag-theme-balham-dark .ag-column-drop-vertical-icon, .ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {\\n  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {\\n  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-horizontal, .ag-theme-balham-dark .ag-column-drop-horizontal, .ag-theme-balham-auto-dark .ag-column-drop-horizontal {\\n  height: var(--ag-header-height);\\n}\\n.ag-theme-balham .ag-column-drop-empty, .ag-theme-balham-dark .ag-column-drop-empty, .ag-theme-balham-auto-dark .ag-column-drop-empty {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-horizontal-cell-text, .ag-theme-balham-dark .ag-column-drop-horizontal-cell-text, .ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical, .ag-theme-balham-dark .ag-column-drop-vertical, .ag-theme-balham-auto-dark .ag-column-drop-vertical {\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,\\n.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {\\n  opacity: 0.35;\\n}\\n.ag-theme-balham .ag-menu-header, .ag-theme-balham-dark .ag-menu-header, .ag-theme-balham-auto-dark .ag-menu-header {\\n  background-color: var(--ag-header-background-color);\\n}\\n.ag-theme-balham .ag-overlay-loading-center, .ag-theme-balham-dark .ag-overlay-loading-center, .ag-theme-balham-auto-dark .ag-overlay-loading-center {\\n  background-color: var(--ag-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  color: var(--ag-foreground-color);\\n  padding: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-theme-balham .ag-tooltip, .ag-theme-balham-dark .ag-tooltip, .ag-theme-balham-auto-dark .ag-tooltip {\\n  border: none;\\n}\\n.ag-theme-balham .ag-panel-title-bar-button-icon, .ag-theme-balham-dark .ag-panel-title-bar-button-icon, .ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {\\n  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));\\n}\\n.ag-theme-balham .ag-panel, .ag-theme-balham-dark .ag-panel, .ag-theme-balham-auto-dark .ag-panel {\\n  background-color: var(--ag-header-background-color);\\n}\\n.ag-theme-balham .ag-chart-data-section,\\n.ag-theme-balham .ag-chart-format-section,\\n.ag-theme-balham .ag-chart-advanced-settings-section, .ag-theme-balham-dark .ag-chart-data-section,\\n.ag-theme-balham-dark .ag-chart-format-section,\\n.ag-theme-balham-dark .ag-chart-advanced-settings-section, .ag-theme-balham-auto-dark .ag-chart-data-section,\\n.ag-theme-balham-auto-dark .ag-chart-format-section,\\n.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-group-toolbar, .ag-theme-balham-dark .ag-group-toolbar, .ag-theme-balham-auto-dark .ag-group-toolbar {\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n.ag-theme-balham .ag-chart-tab, .ag-theme-balham-dark .ag-chart-tab, .ag-theme-balham-auto-dark .ag-chart-tab {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-item, .ag-theme-balham-dark .ag-charts-format-sub-level-group-item, .ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {\\n  margin-bottom: calc(var(--ag-grid-size) * 1.5);\\n}\\n.ag-theme-balham .ag-chart-menu-close, .ag-theme-balham-dark .ag-chart-menu-close, .ag-theme-balham-auto-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-auto-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close .ag-icon, .ag-theme-balham-auto-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-right: none;\\n}\\n.ag-theme-balham .ag-filter-active .ag-icon-filter, .ag-theme-balham-dark .ag-filter-active .ag-icon-filter, .ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {\\n  color: var(--ag-balham-active-color);\\n}\\n`,\"\"]);const h=d},8750:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([e.id,':root {\\n  --toastify-color-light: #fff;\\n  --toastify-color-dark: #121212;\\n  --toastify-color-info: #3498db;\\n  --toastify-color-success: #07bc0c;\\n  --toastify-color-warning: #f1c40f;\\n  --toastify-color-error: #e74c3c;\\n  --toastify-color-transparent: rgba(255, 255, 255, 0.7);\\n  --toastify-icon-color-info: var(--toastify-color-info);\\n  --toastify-icon-color-success: var(--toastify-color-success);\\n  --toastify-icon-color-warning: var(--toastify-color-warning);\\n  --toastify-icon-color-error: var(--toastify-color-error);\\n  --toastify-toast-width: 320px;\\n  --toastify-toast-offset: 16px;\\n  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\\n  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\\n  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\\n  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\\n  --toastify-toast-background: #fff;\\n  --toastify-toast-min-height: 64px;\\n  --toastify-toast-max-height: 800px;\\n  --toastify-toast-bd-radius: 6px;\\n  --toastify-font-family: sans-serif;\\n  --toastify-z-index: 9999;\\n  --toastify-text-color-light: #757575;\\n  --toastify-text-color-dark: #fff;\\n  --toastify-text-color-info: #fff;\\n  --toastify-text-color-success: #fff;\\n  --toastify-text-color-warning: #fff;\\n  --toastify-text-color-error: #fff;\\n  --toastify-spinner-color: #616161;\\n  --toastify-spinner-color-empty-area: #e0e0e0;\\n  --toastify-color-progress-light: linear-gradient(\\n    to right,\\n    #4cd964,\\n    #5ac8fa,\\n    #007aff,\\n    #34aadc,\\n    #5856d6,\\n    #ff2d55\\n  );\\n  --toastify-color-progress-dark: #bb86fc;\\n  --toastify-color-progress-info: var(--toastify-color-info);\\n  --toastify-color-progress-success: var(--toastify-color-success);\\n  --toastify-color-progress-warning: var(--toastify-color-warning);\\n  --toastify-color-progress-error: var(--toastify-color-error);\\n  --toastify-color-progress-bgo: 0.2;\\n}\\n\\n.Toastify__toast-container {\\n  z-index: var(--toastify-z-index);\\n  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\\n  position: fixed;\\n  padding: 4px;\\n  width: var(--toastify-toast-width);\\n  box-sizing: border-box;\\n  color: #fff;\\n}\\n.Toastify__toast-container--top-left {\\n  top: var(--toastify-toast-top);\\n  left: var(--toastify-toast-left);\\n}\\n.Toastify__toast-container--top-center {\\n  top: var(--toastify-toast-top);\\n  left: 50%;\\n  transform: translateX(-50%);\\n}\\n.Toastify__toast-container--top-right {\\n  top: var(--toastify-toast-top);\\n  right: var(--toastify-toast-right);\\n}\\n.Toastify__toast-container--bottom-left {\\n  bottom: var(--toastify-toast-bottom);\\n  left: var(--toastify-toast-left);\\n}\\n.Toastify__toast-container--bottom-center {\\n  bottom: var(--toastify-toast-bottom);\\n  left: 50%;\\n  transform: translateX(-50%);\\n}\\n.Toastify__toast-container--bottom-right {\\n  bottom: var(--toastify-toast-bottom);\\n  right: var(--toastify-toast-right);\\n}\\n\\n@media only screen and (max-width : 480px) {\\n  .Toastify__toast-container {\\n    width: 100vw;\\n    padding: 0;\\n    left: env(safe-area-inset-left);\\n    margin: 0;\\n  }\\n  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {\\n    top: env(safe-area-inset-top);\\n    transform: translateX(0);\\n  }\\n  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {\\n    bottom: env(safe-area-inset-bottom);\\n    transform: translateX(0);\\n  }\\n  .Toastify__toast-container--rtl {\\n    right: env(safe-area-inset-right);\\n    left: initial;\\n  }\\n}\\n.Toastify__toast {\\n  --y: 0;\\n  position: relative;\\n  -ms-touch-action: none;\\n      touch-action: none;\\n  min-height: var(--toastify-toast-min-height);\\n  box-sizing: border-box;\\n  margin-bottom: 1rem;\\n  padding: 8px;\\n  border-radius: var(--toastify-toast-bd-radius);\\n  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\\n  display: -ms-flexbox;\\n  display: flex;\\n  -ms-flex-pack: justify;\\n      justify-content: space-between;\\n  max-height: var(--toastify-toast-max-height);\\n  font-family: var(--toastify-font-family);\\n  cursor: default;\\n  direction: ltr;\\n  /* webkit only issue #791 */\\n  z-index: 0;\\n  overflow: hidden;\\n}\\n.Toastify__toast--stacked {\\n  position: absolute;\\n  width: 100%;\\n  transform: translate3d(0, var(--y), 0) scale(var(--s));\\n  transition: transform 0.3s;\\n}\\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body, .Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\\n  transition: opacity 0.1s;\\n}\\n.Toastify__toast--stacked[data-collapsed=false] {\\n  overflow: visible;\\n}\\n.Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > * {\\n  opacity: 0;\\n}\\n.Toastify__toast--stacked:after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: calc(var(--g) * 1px);\\n  bottom: 100%;\\n}\\n.Toastify__toast--stacked[data-pos=top] {\\n  top: 0;\\n}\\n.Toastify__toast--stacked[data-pos=bot] {\\n  bottom: 0;\\n}\\n.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before {\\n  transform-origin: top;\\n}\\n.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before {\\n  transform-origin: bottom;\\n}\\n.Toastify__toast--stacked:before {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  height: 100%;\\n  transform: scaleY(3);\\n  z-index: -1;\\n}\\n.Toastify__toast--rtl {\\n  direction: rtl;\\n}\\n.Toastify__toast--close-on-click {\\n  cursor: pointer;\\n}\\n.Toastify__toast-body {\\n  margin: auto 0;\\n  -ms-flex: 1 1 auto;\\n      flex: 1 1 auto;\\n  padding: 6px;\\n  display: -ms-flexbox;\\n  display: flex;\\n  -ms-flex-align: center;\\n      align-items: center;\\n}\\n.Toastify__toast-body > div:last-child {\\n  word-break: break-word;\\n  -ms-flex: 1;\\n      flex: 1;\\n}\\n.Toastify__toast-icon {\\n  -webkit-margin-end: 10px;\\n          margin-inline-end: 10px;\\n  width: 20px;\\n  -ms-flex-negative: 0;\\n      flex-shrink: 0;\\n  display: -ms-flexbox;\\n  display: flex;\\n}\\n\\n.Toastify--animate {\\n  animation-fill-mode: both;\\n  animation-duration: 0.5s;\\n}\\n\\n.Toastify--animate-icon {\\n  animation-fill-mode: both;\\n  animation-duration: 0.3s;\\n}\\n\\n@media only screen and (max-width : 480px) {\\n  .Toastify__toast {\\n    margin-bottom: 0;\\n    border-radius: 0;\\n  }\\n}\\n.Toastify__toast-theme--dark {\\n  background: var(--toastify-color-dark);\\n  color: var(--toastify-text-color-dark);\\n}\\n.Toastify__toast-theme--light {\\n  background: var(--toastify-color-light);\\n  color: var(--toastify-text-color-light);\\n}\\n.Toastify__toast-theme--colored.Toastify__toast--default {\\n  background: var(--toastify-color-light);\\n  color: var(--toastify-text-color-light);\\n}\\n.Toastify__toast-theme--colored.Toastify__toast--info {\\n  color: var(--toastify-text-color-info);\\n  background: var(--toastify-color-info);\\n}\\n.Toastify__toast-theme--colored.Toastify__toast--success {\\n  color: var(--toastify-text-color-success);\\n  background: var(--toastify-color-success);\\n}\\n.Toastify__toast-theme--colored.Toastify__toast--warning {\\n  color: var(--toastify-text-color-warning);\\n  background: var(--toastify-color-warning);\\n}\\n.Toastify__toast-theme--colored.Toastify__toast--error {\\n  color: var(--toastify-text-color-error);\\n  background: var(--toastify-color-error);\\n}\\n\\n.Toastify__progress-bar-theme--light {\\n  background: var(--toastify-color-progress-light);\\n}\\n.Toastify__progress-bar-theme--dark {\\n  background: var(--toastify-color-progress-dark);\\n}\\n.Toastify__progress-bar--info {\\n  background: var(--toastify-color-progress-info);\\n}\\n.Toastify__progress-bar--success {\\n  background: var(--toastify-color-progress-success);\\n}\\n.Toastify__progress-bar--warning {\\n  background: var(--toastify-color-progress-warning);\\n}\\n.Toastify__progress-bar--error {\\n  background: var(--toastify-color-progress-error);\\n}\\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\\n  background: var(--toastify-color-transparent);\\n}\\n\\n.Toastify__close-button {\\n  color: #fff;\\n  background: transparent;\\n  outline: none;\\n  border: none;\\n  padding: 0;\\n  cursor: pointer;\\n  opacity: 0.7;\\n  transition: 0.3s ease;\\n  -ms-flex-item-align: start;\\n      align-self: flex-start;\\n  z-index: 1;\\n}\\n.Toastify__close-button--light {\\n  color: #000;\\n  opacity: 0.3;\\n}\\n.Toastify__close-button > svg {\\n  fill: currentColor;\\n  height: 16px;\\n  width: 14px;\\n}\\n.Toastify__close-button:hover, .Toastify__close-button:focus {\\n  opacity: 1;\\n}\\n\\n@keyframes Toastify__trackProgress {\\n  0% {\\n    transform: scaleX(1);\\n  }\\n  100% {\\n    transform: scaleX(0);\\n  }\\n}\\n.Toastify__progress-bar {\\n  position: absolute;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  z-index: var(--toastify-z-index);\\n  opacity: 0.7;\\n  transform-origin: left;\\n  border-bottom-left-radius: var(--toastify-toast-bd-radius);\\n}\\n.Toastify__progress-bar--animated {\\n  animation: Toastify__trackProgress linear 1 forwards;\\n}\\n.Toastify__progress-bar--controlled {\\n  transition: transform 0.2s;\\n}\\n.Toastify__progress-bar--rtl {\\n  right: 0;\\n  left: initial;\\n  transform-origin: right;\\n  border-bottom-left-radius: initial;\\n  border-bottom-right-radius: var(--toastify-toast-bd-radius);\\n}\\n.Toastify__progress-bar--wrp {\\n  position: absolute;\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 5px;\\n  border-bottom-left-radius: var(--toastify-toast-bd-radius);\\n}\\n.Toastify__progress-bar--wrp[data-hidden=true] {\\n  opacity: 0;\\n}\\n.Toastify__progress-bar--bg {\\n  opacity: var(--toastify-color-progress-bgo);\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.Toastify__spinner {\\n  width: 20px;\\n  height: 20px;\\n  box-sizing: border-box;\\n  border: 2px solid;\\n  border-radius: 100%;\\n  border-color: var(--toastify-spinner-color-empty-area);\\n  border-right-color: var(--toastify-spinner-color);\\n  animation: Toastify__spin 0.65s linear infinite;\\n}\\n\\n@keyframes Toastify__bounceInRight {\\n  from, 60%, 75%, 90%, to {\\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\\n  }\\n  from {\\n    opacity: 0;\\n    transform: translate3d(3000px, 0, 0);\\n  }\\n  60% {\\n    opacity: 1;\\n    transform: translate3d(-25px, 0, 0);\\n  }\\n  75% {\\n    transform: translate3d(10px, 0, 0);\\n  }\\n  90% {\\n    transform: translate3d(-5px, 0, 0);\\n  }\\n  to {\\n    transform: none;\\n  }\\n}\\n@keyframes Toastify__bounceOutRight {\\n  20% {\\n    opacity: 1;\\n    transform: translate3d(-20px, var(--y), 0);\\n  }\\n  to {\\n    opacity: 0;\\n    transform: translate3d(2000px, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__bounceInLeft {\\n  from, 60%, 75%, 90%, to {\\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\\n  }\\n  0% {\\n    opacity: 0;\\n    transform: translate3d(-3000px, 0, 0);\\n  }\\n  60% {\\n    opacity: 1;\\n    transform: translate3d(25px, 0, 0);\\n  }\\n  75% {\\n    transform: translate3d(-10px, 0, 0);\\n  }\\n  90% {\\n    transform: translate3d(5px, 0, 0);\\n  }\\n  to {\\n    transform: none;\\n  }\\n}\\n@keyframes Toastify__bounceOutLeft {\\n  20% {\\n    opacity: 1;\\n    transform: translate3d(20px, var(--y), 0);\\n  }\\n  to {\\n    opacity: 0;\\n    transform: translate3d(-2000px, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__bounceInUp {\\n  from, 60%, 75%, 90%, to {\\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\\n  }\\n  from {\\n    opacity: 0;\\n    transform: translate3d(0, 3000px, 0);\\n  }\\n  60% {\\n    opacity: 1;\\n    transform: translate3d(0, -20px, 0);\\n  }\\n  75% {\\n    transform: translate3d(0, 10px, 0);\\n  }\\n  90% {\\n    transform: translate3d(0, -5px, 0);\\n  }\\n  to {\\n    transform: translate3d(0, 0, 0);\\n  }\\n}\\n@keyframes Toastify__bounceOutUp {\\n  20% {\\n    transform: translate3d(0, calc(var(--y) - 10px), 0);\\n  }\\n  40%, 45% {\\n    opacity: 1;\\n    transform: translate3d(0, calc(var(--y) + 20px), 0);\\n  }\\n  to {\\n    opacity: 0;\\n    transform: translate3d(0, -2000px, 0);\\n  }\\n}\\n@keyframes Toastify__bounceInDown {\\n  from, 60%, 75%, 90%, to {\\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\\n  }\\n  0% {\\n    opacity: 0;\\n    transform: translate3d(0, -3000px, 0);\\n  }\\n  60% {\\n    opacity: 1;\\n    transform: translate3d(0, 25px, 0);\\n  }\\n  75% {\\n    transform: translate3d(0, -10px, 0);\\n  }\\n  90% {\\n    transform: translate3d(0, 5px, 0);\\n  }\\n  to {\\n    transform: none;\\n  }\\n}\\n@keyframes Toastify__bounceOutDown {\\n  20% {\\n    transform: translate3d(0, calc(var(--y) - 10px), 0);\\n  }\\n  40%, 45% {\\n    opacity: 1;\\n    transform: translate3d(0, calc(var(--y) + 20px), 0);\\n  }\\n  to {\\n    opacity: 0;\\n    transform: translate3d(0, 2000px, 0);\\n  }\\n}\\n.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {\\n  animation-name: Toastify__bounceInLeft;\\n}\\n.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {\\n  animation-name: Toastify__bounceInRight;\\n}\\n.Toastify__bounce-enter--top-center {\\n  animation-name: Toastify__bounceInDown;\\n}\\n.Toastify__bounce-enter--bottom-center {\\n  animation-name: Toastify__bounceInUp;\\n}\\n\\n.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {\\n  animation-name: Toastify__bounceOutLeft;\\n}\\n.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {\\n  animation-name: Toastify__bounceOutRight;\\n}\\n.Toastify__bounce-exit--top-center {\\n  animation-name: Toastify__bounceOutUp;\\n}\\n.Toastify__bounce-exit--bottom-center {\\n  animation-name: Toastify__bounceOutDown;\\n}\\n\\n@keyframes Toastify__zoomIn {\\n  from {\\n    opacity: 0;\\n    transform: scale3d(0.3, 0.3, 0.3);\\n  }\\n  50% {\\n    opacity: 1;\\n  }\\n}\\n@keyframes Toastify__zoomOut {\\n  from {\\n    opacity: 1;\\n  }\\n  50% {\\n    opacity: 0;\\n    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\\n  }\\n  to {\\n    opacity: 0;\\n  }\\n}\\n.Toastify__zoom-enter {\\n  animation-name: Toastify__zoomIn;\\n}\\n\\n.Toastify__zoom-exit {\\n  animation-name: Toastify__zoomOut;\\n}\\n\\n@keyframes Toastify__flipIn {\\n  from {\\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\\n    animation-timing-function: ease-in;\\n    opacity: 0;\\n  }\\n  40% {\\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\\n    animation-timing-function: ease-in;\\n  }\\n  60% {\\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\\n    opacity: 1;\\n  }\\n  80% {\\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\\n  }\\n  to {\\n    transform: perspective(400px);\\n  }\\n}\\n@keyframes Toastify__flipOut {\\n  from {\\n    transform: translate3d(0, var(--y), 0) perspective(400px);\\n  }\\n  30% {\\n    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\\n    opacity: 1;\\n  }\\n  to {\\n    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\\n    opacity: 0;\\n  }\\n}\\n.Toastify__flip-enter {\\n  animation-name: Toastify__flipIn;\\n}\\n\\n.Toastify__flip-exit {\\n  animation-name: Toastify__flipOut;\\n}\\n\\n@keyframes Toastify__slideInRight {\\n  from {\\n    transform: translate3d(110%, 0, 0);\\n    visibility: visible;\\n  }\\n  to {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideInLeft {\\n  from {\\n    transform: translate3d(-110%, 0, 0);\\n    visibility: visible;\\n  }\\n  to {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideInUp {\\n  from {\\n    transform: translate3d(0, 110%, 0);\\n    visibility: visible;\\n  }\\n  to {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideInDown {\\n  from {\\n    transform: translate3d(0, -110%, 0);\\n    visibility: visible;\\n  }\\n  to {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideOutRight {\\n  from {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n  to {\\n    visibility: hidden;\\n    transform: translate3d(110%, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideOutLeft {\\n  from {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n  to {\\n    visibility: hidden;\\n    transform: translate3d(-110%, var(--y), 0);\\n  }\\n}\\n@keyframes Toastify__slideOutDown {\\n  from {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n  to {\\n    visibility: hidden;\\n    transform: translate3d(0, 500px, 0);\\n  }\\n}\\n@keyframes Toastify__slideOutUp {\\n  from {\\n    transform: translate3d(0, var(--y), 0);\\n  }\\n  to {\\n    visibility: hidden;\\n    transform: translate3d(0, -500px, 0);\\n  }\\n}\\n.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {\\n  animation-name: Toastify__slideInLeft;\\n}\\n.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {\\n  animation-name: Toastify__slideInRight;\\n}\\n.Toastify__slide-enter--top-center {\\n  animation-name: Toastify__slideInDown;\\n}\\n.Toastify__slide-enter--bottom-center {\\n  animation-name: Toastify__slideInUp;\\n}\\n\\n.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {\\n  animation-name: Toastify__slideOutLeft;\\n  animation-timing-function: ease-in;\\n  animation-duration: 0.3s;\\n}\\n.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {\\n  animation-name: Toastify__slideOutRight;\\n  animation-timing-function: ease-in;\\n  animation-duration: 0.3s;\\n}\\n.Toastify__slide-exit--top-center {\\n  animation-name: Toastify__slideOutUp;\\n  animation-timing-function: ease-in;\\n  animation-duration: 0.3s;\\n}\\n.Toastify__slide-exit--bottom-center {\\n  animation-name: Toastify__slideOutDown;\\n  animation-timing-function: ease-in;\\n  animation-duration: 0.3s;\\n}\\n\\n@keyframes Toastify__spin {\\n  from {\\n    transform: rotate(0deg);\\n  }\\n  to {\\n    transform: rotate(360deg);\\n  }\\n}',\"\"]);const s=a},6839:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>wn});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),c=new URL(n(3711),n.b),d=new URL(n(2023),n.b),u=new URL(n(7479),n.b),h=new URL(n(8156),n.b),p=new URL(n(2995),n.b),g=new URL(n(5699),n.b),f=new URL(n(6059),n.b),m=new URL(n(828),n.b),v=new URL(n(3147),n.b),y=new URL(n(5739),n.b),b=new URL(n(5379),n.b),w=new URL(n(5722),n.b),C=new URL(n(7351),n.b),S=new URL(n(3727),n.b),E=new URL(n(9023),n.b),x=new URL(n(638),n.b),A=new URL(n(8357),n.b),T=new URL(n(9749),n.b),D=new URL(n(6445),n.b),R=new URL(n(5270),n.b),M=new URL(n(1661),n.b),O=new URL(n(8269),n.b),k=new URL(n(1301),n.b),I=new URL(n(6090),n.b),N=new URL(n(6540),n.b),P=new URL(n(1360),n.b),L=new URL(n(7366),n.b),F=new URL(n(8089),n.b),_=new URL(n(1866),n.b),z=new URL(n(1342),n.b),G=new URL(n(2244),n.b),V=new URL(n(7445),n.b),B=new URL(n(2222),n.b),H=new URL(n(7274),n.b),j=new URL(n(1e3),n.b),U=new URL(n(1935),n.b),W=new URL(n(456),n.b),$=new URL(n(404),n.b),Y=new URL(n(6546),n.b),K=new URL(n(8125),n.b),q=new URL(n(9994),n.b),Q=new URL(n(6750),n.b),X=new URL(n(852),n.b),Z=new URL(n(1465),n.b),J=new URL(n(3899),n.b),ee=new URL(n(2619),n.b),te=new URL(n(1411),n.b),ne=new URL(n(8318),n.b),re=new URL(n(3631),n.b),ie=new URL(n(4439),n.b),oe=new URL(n(2039),n.b),ae=new URL(n(1786),n.b),se=new URL(n(3021),n.b),le=new URL(n(5181),n.b),ce=new URL(n(6485),n.b),de=new URL(n(1788),n.b),ue=new URL(n(9381),n.b),he=new URL(n(3381),n.b),pe=new URL(n(5277),n.b),ge=new URL(n(9660),n.b),fe=new URL(n(490),n.b),me=new URL(n(6462),n.b),ve=new URL(n(1380),n.b),ye=new URL(n(3981),n.b),be=new URL(n(8259),n.b),we=new URL(n(6515),n.b),Ce=new URL(n(2923),n.b),Se=new URL(n(3110),n.b),Ee=new URL(n(671),n.b),xe=new URL(n(4119),n.b),Ae=new URL(n(4711),n.b),Te=new URL(n(8938),n.b),De=new URL(n(5535),n.b),Re=new URL(n(4877),n.b),Me=new URL(n(3383),n.b),Oe=new URL(n(3106),n.b),ke=a()(i()),Ie=l()(c),Ne=l()(c,{hash:\"?#iefix\"}),Pe=l()(d),Le=l()(u),Fe=l()(h,{hash:\"#NotoSans-BlackItalic\"}),_e=l()(p),ze=l()(p,{hash:\"?#iefix\"}),Ge=l()(g),Ve=l()(f),Be=l()(m,{hash:\"#NotoSans-Black\"}),He=l()(v),je=l()(v,{hash:\"?#iefix\"}),Ue=l()(y),We=l()(b),$e=l()(w,{hash:\"#NotoSans-Bold\"}),Ye=l()(C),Ke=l()(C,{hash:\"?#iefix\"}),qe=l()(S),Qe=l()(E),Xe=l()(x,{hash:\"#NotoSans-BoldItalic\"}),Ze=l()(A),Je=l()(A,{hash:\"?#iefix\"}),et=l()(T),tt=l()(D),nt=l()(R,{hash:\"#NotoSans-ExtraBold\"}),rt=l()(M),it=l()(M,{hash:\"?#iefix\"}),ot=l()(O),at=l()(k),st=l()(I,{hash:\"#NotoSans-ExtraBoldItalic\"}),lt=l()(N),ct=l()(N,{hash:\"?#iefix\"}),dt=l()(P),ut=l()(L),ht=l()(F,{hash:\"#NotoSans-ExtraLight\"}),pt=l()(_),gt=l()(_,{hash:\"?#iefix\"}),ft=l()(z),mt=l()(G),vt=l()(V,{hash:\"#NotoSans-Light\"}),yt=l()(B),bt=l()(B,{hash:\"?#iefix\"}),wt=l()(H),Ct=l()(j),St=l()(U,{hash:\"#NotoSans-Italic\"}),Et=l()(W),xt=l()(W,{hash:\"?#iefix\"}),At=l()($),Tt=l()(Y),Dt=l()(K,{hash:\"#NotoSans-ExtraLightItalic\"}),Rt=l()(q),Mt=l()(q,{hash:\"?#iefix\"}),Ot=l()(Q),kt=l()(X),It=l()(Z,{hash:\"#NotoSans-LightItalic\"}),Nt=l()(J),Pt=l()(J,{hash:\"?#iefix\"}),Lt=l()(ee),Ft=l()(te),_t=l()(ne,{hash:\"#NotoSans-MediumItalic\"}),zt=l()(re),Gt=l()(re,{hash:\"?#iefix\"}),Vt=l()(ie),Bt=l()(oe),Ht=l()(ae,{hash:\"#NotoSans-Medium\"}),jt=l()(se),Ut=l()(se,{hash:\"?#iefix\"}),Wt=l()(le),$t=l()(ce),Yt=l()(de,{hash:\"#NotoSans-SemiBold\"}),Kt=l()(ue),qt=l()(ue,{hash:\"?#iefix\"}),Qt=l()(he),Xt=l()(pe),Zt=l()(ge,{hash:\"#NotoSans-SemiBoldItalic\"}),Jt=l()(fe),en=l()(fe,{hash:\"?#iefix\"}),tn=l()(me),nn=l()(ve),rn=l()(ye,{hash:\"#NotoSans-Regular\"}),on=l()(be),an=l()(be,{hash:\"?#iefix\"}),sn=l()(we),ln=l()(Ce),cn=l()(Se,{hash:\"#NotoSans-Thin\"}),dn=l()(Ee),un=l()(Ee,{hash:\"?#iefix\"}),hn=l()(xe),pn=l()(Ae),gn=l()(Te,{hash:\"#NotoSans-ThinItalic\"}),fn=l()(De),mn=l()(De,{hash:\"#iefix\"}),vn=l()(Re),yn=l()(Me),bn=l()(Oe,{hash:\"#sakshyam\"});ke.push([e.id,`@font-face{font-family:\"NotoSans-BlackItalic\";src:url(${Ie});src:url(${Ne}) format(\"embedded-opentype\"),url(${Pe}) format(\"woff2\"),url(${Le}) format(\"woff\"),url(${Fe}) format(\"svg\");font-weight:900;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Black\";src:url(${_e});src:url(${ze}) format(\"embedded-opentype\"),url(${Ge}) format(\"woff2\"),url(${Ve}) format(\"woff\"),url(${Be}) format(\"svg\");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Bold\";src:url(${He});src:url(${je}) format(\"embedded-opentype\"),url(${Ue}) format(\"woff2\"),url(${We}) format(\"woff\"),url(${$e}) format(\"svg\");font-weight:bold;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-BoldItalic\";src:url(${Ye});src:url(${Ke}) format(\"embedded-opentype\"),url(${qe}) format(\"woff2\"),url(${Qe}) format(\"woff\"),url(${Xe}) format(\"svg\");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraBold\";src:url(${Ze});src:url(${Je}) format(\"embedded-opentype\"),url(${et}) format(\"woff2\"),url(${tt}) format(\"woff\"),url(${nt}) format(\"svg\");font-weight:bold;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-ExtraBoldItalic\";src:url(${rt});src:url(${it}) format(\"embedded-opentype\"),url(${ot}) format(\"woff2\"),url(${at}) format(\"woff\"),url(${st}) format(\"svg\");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraLight\";src:url(${lt});src:url(${ct}) format(\"embedded-opentype\"),url(${dt}) format(\"woff2\"),url(${ut}) format(\"woff\"),url(${ht}) format(\"svg\");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Light\";src:url(${pt});src:url(${gt}) format(\"embedded-opentype\"),url(${ft}) format(\"woff2\"),url(${mt}) format(\"woff\"),url(${vt}) format(\"svg\");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Italic\";src:url(${yt});src:url(${bt}) format(\"embedded-opentype\"),url(${wt}) format(\"woff2\"),url(${Ct}) format(\"woff\"),url(${St}) format(\"svg\");font-weight:normal;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraLightItalic\";src:url(${Et});src:url(${xt}) format(\"embedded-opentype\"),url(${At}) format(\"woff2\"),url(${Tt}) format(\"woff\"),url(${Dt}) format(\"svg\");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-LightItalic\";src:url(${Rt});src:url(${Mt}) format(\"embedded-opentype\"),url(${Ot}) format(\"woff2\"),url(${kt}) format(\"woff\"),url(${It}) format(\"svg\");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-MediumItalic\";src:url(${Nt});src:url(${Pt}) format(\"embedded-opentype\"),url(${Lt}) format(\"woff2\"),url(${Ft}) format(\"woff\"),url(${_t}) format(\"svg\");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Medium\";src:url(${zt});src:url(${Gt}) format(\"embedded-opentype\"),url(${Vt}) format(\"woff2\"),url(${Bt}) format(\"woff\"),url(${Ht}) format(\"svg\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-SemiBold\";src:url(${jt});src:url(${Ut}) format(\"embedded-opentype\"),url(${Wt}) format(\"woff2\"),url(${$t}) format(\"woff\"),url(${Yt}) format(\"svg\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-SemiBoldItalic\";src:url(${Kt});src:url(${qt}) format(\"embedded-opentype\"),url(${Qt}) format(\"woff2\"),url(${Xt}) format(\"woff\"),url(${Zt}) format(\"svg\");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Regular\";src:url(${Jt});src:url(${en}) format(\"embedded-opentype\"),url(${tn}) format(\"woff2\"),url(${nn}) format(\"woff\"),url(${rn}) format(\"svg\");font-weight:normal;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Thin\";src:url(${on});src:url(${an}) format(\"embedded-opentype\"),url(${sn}) format(\"woff2\"),url(${ln}) format(\"woff\"),url(${cn}) format(\"svg\");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-ThinItalic\";src:url(${dn});src:url(${un}) format(\"embedded-opentype\"),url(${hn}) format(\"woff2\"),url(${pn}) format(\"woff\"),url(${gn}) format(\"svg\");font-weight:100;font-style:italic;font-display:swap}body{margin:0;font-family:\"NotoSans-Regular\",sans-serif}*{box-sizing:border-box}@font-face{font-family:\"sakshyam\";src:url(${fn});src:url(${mn}) format(\"embedded-opentype\"),url(${vn}) format(\"truetype\"),url(${yn}) format(\"woff\"),url(${bn}) format(\"svg\");font-weight:normal;font-style:normal;font-display:block}[class^=icon-],[class*=\" icon-\"]{font-family:\"sakshyam\",sans-serif;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-Admin:before{content:\"\"}.icon-Attendance-Approval:before{content:\"\"}.icon-Business-Unit:before{content:\"\"}.icon-Country:before{content:\"\"}.icon-Distributor-Upload:before{content:\"\"}.icon-Download-Report:before{content:\"\"}.icon-Events:before{content:\"\"}.icon-Geo-Upload:before{content:\"\"}.icon-Holiday-Upload:before{content:\"\"}.icon-Liquidation-Target:before{content:\"\"}.icon-Masters:before{content:\"\"}.icon-MDO-Attendance:before{content:\"\"}.icon-MDO:before{content:\"\"}.icon-Orphan-Retailer:before{content:\"\"}.icon-Retailer-KYC:before{content:\"\"}.icon-Sync:before{content:\"\"}.icon-TMHQ:before{content:\"\"}.icon-Uploads:before{content:\"\"}.icon-Users:before{content:\"\"}.icon-filter:before{content:\"\"}.icon-users:before{content:\"\"}.icon-sort:before{content:\"\"}.icon-close:before{content:\"\"}.icon-search:before{content:\"\"}.icon-apps:before{content:\"\"}.icon-building:before{content:\"\"}.icon-globe:before{content:\"\"}.icon-home:before{content:\"\"}.icon-saksham:before{content:\"\"}.icon-cropwise:before{content:\"\"}.icon-right-arrow:before{content:\"\"}.icon-arrow-right:before{content:\"\"}.icon-logout:before{content:\"\"}.icon-help:before{content:\"\"}.icon-DistributorUpload:before{content:\"\"}.icon-attachment:before{content:\"\"}.icon-leaf-icon:before{content:\"\"}.icon-icon-download:before{content:\"\"}.icon-pencil:before{content:\"\"}.icon-pushnotification:before{content:\"\"}.icon-formconfig:before{content:\"\"}.icon-time:before{content:\"\"}.icon-warning:before{content:\"\"}.icon-FAQ:before{content:\"\"}.icon-alert:before{content:\"\"}.icon-cross:before{content:\"\"}.icon-check:before{content:\"\"}.icon-dot:before{content:\"\"}.icon-liquidation:before{content:\"\"}.icon-smartagro:before{content:\"\"}.icon-demo-tracking:before{content:\"\"}.icon-pdf:before{content:\"\"}.icon-document:before{content:\"\"}.ag-theme-alpine .ag-row-selected::before,.ag-theme-alpine .ag-row-hover::before,.ag-theme-alpine .ag-row-focus::before{background-color:rgba(33,150,243,.1) !important;background-image:none !important}.disabled-field,.disabled-field .MuiInputBase-input,.disabled-field .MuiButtonBase-root{cursor:not-allowed !important;opacity:.7;pointer-events:auto !important}.disabled-table-button{opacity:.7;pointer-events:none !important;color:#cfd3db !important}.Mui-error{font-weight:700 !important}.rmsc .dropdown-heading{cursor:pointer !important}.disabled-field .rmsc .dropdown-heading{cursor:not-allowed !important;opacity:.7}.capitalize{text-transform:lowercase}.capitalize:first-letter{text-transform:uppercase}.text-error{color:#cf3537 !important}.text-info{color:#005693}.pointer{cursor:pointer}`,\"\"]);const wn=ke},6314:e=>{\"use strict\";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=\"\",r=void 0!==t[5];return t[4]&&(n+=\"@supports (\".concat(t[4],\") {\")),t[2]&&(n+=\"@media \".concat(t[2],\" {\")),r&&(n+=\"@layer\".concat(t[5].length>0?\" \".concat(t[5]):\"\",\" {\")),n+=e(t),r&&(n+=\"}\"),t[2]&&(n+=\"}\"),t[4]&&(n+=\"}\"),n})).join(\"\")},t.i=function(e,n,r,i,o){\"string\"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]=\"@layer\".concat(d[5].length>0?\" \".concat(d[5]):\"\",\" {\").concat(d[1],\"}\")),d[5]=o),n&&(d[2]?(d[1]=\"@media \".concat(d[2],\" {\").concat(d[1],\"}\"),d[2]=n):d[2]=n),i&&(d[4]?(d[1]=\"@supports (\".concat(d[4],\") {\").concat(d[1],\"}\"),d[4]=i):d[4]=\"\".concat(i)),t.push(d))}},t}},4417:e=>{\"use strict\";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['\"].*['\"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/[\"'() \\t\\n]|(%20)/.test(e)||t.needQuotes?'\"'.concat(e.replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\"),'\"'):e):e}},1601:e=>{\"use strict\";e.exports=function(e){return e[1]}},4353:function(e){e.exports=function(){\"use strict\";var e=6e4,t=36e5,n=\"millisecond\",r=\"second\",i=\"minute\",o=\"hour\",a=\"day\",s=\"week\",l=\"month\",c=\"quarter\",d=\"year\",u=\"date\",h=\"Invalid Date\",p=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,g=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var t=[\"th\",\"st\",\"nd\",\"rd\"],n=e%100;return\"[\"+e+(t[(n-20)%10]||t[n]||t[0])+\"]\"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:\"\"+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:s,d:a,D:u,h:o,m:i,s:r,ms:n,Q:c}[e]||String(e||\"\").toLowerCase().replace(/s$/,\"\")},u:function(e){return void 0===e}},y=\"en\",b={};b[y]=f;var w=\"$isDayjsObject\",C=function(e){return e instanceof A||!(!e||!e[w])},S=function e(t,n,r){var i;if(!t)return y;if(\"string\"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=t.split(\"-\");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},E=function(e,t){if(C(e))return e.clone();var n=\"object\"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},x=v;x.l=S,x.i=C,x.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function f(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=f.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if(\"string\"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return E(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<E(e)},m.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!x.u(t)||t,h=x.p(e),p=function(e,t){var r=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},g=function(e,t){return x.w(n.toDate()[e].apply(n.toDate(\"s\"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},f=this.$W,m=this.$M,v=this.$D,y=\"set\"+(this.$u?\"UTC\":\"\");switch(h){case d:return c?p(1,0):p(31,11);case l:return c?p(1,m):p(0,m+1);case s:var b=this.$locale().weekStart||0,w=(f<b?f+7:f)-b;return p(c?v-w:v+(6-w),m);case a:case u:return g(y+\"Hours\",0);case o:return g(y+\"Minutes\",1);case i:return g(y+\"Seconds\",2);case r:return g(y+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,c=x.p(e),h=\"set\"+(this.$u?\"UTC\":\"\"),p=(s={},s[a]=h+\"Date\",s[u]=h+\"Date\",s[l]=h+\"Month\",s[d]=h+\"FullYear\",s[o]=h+\"Hours\",s[i]=h+\"Minutes\",s[r]=h+\"Seconds\",s[n]=h+\"Milliseconds\",s)[c],g=c===a?this.$D+(t-this.$W):t;if(c===l||c===d){var f=this.clone().set(u,1);f.$d[p](g),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[x.p(e)]()},m.add=function(n,c){var u,h=this;n=Number(n);var p=x.p(c),g=function(e){var t=E(h);return x.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===a)return g(1);if(p===s)return g(7);var f=(u={},u[i]=e,u[o]=t,u[r]=1e3,u)[p]||1,m=this.$d.getTime()+n*f;return x.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||\"YYYY-MM-DDTHH:mm:ssZ\",i=x.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,d=n.meridiem,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},p=function(e){return x.s(o%12||12,e,\"0\")},f=d||function(e,t,n){var r=e<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case\"YY\":return String(t.$y).slice(-2);case\"YYYY\":return x.s(t.$y,4,\"0\");case\"M\":return s+1;case\"MM\":return x.s(s+1,2,\"0\");case\"MMM\":return u(n.monthsShort,s,c,3);case\"MMMM\":return u(c,s);case\"D\":return t.$D;case\"DD\":return x.s(t.$D,2,\"0\");case\"d\":return String(t.$W);case\"dd\":return u(n.weekdaysMin,t.$W,l,2);case\"ddd\":return u(n.weekdaysShort,t.$W,l,3);case\"dddd\":return l[t.$W];case\"H\":return String(o);case\"HH\":return x.s(o,2,\"0\");case\"h\":return p(1);case\"hh\":return p(2);case\"a\":return f(o,a,!0);case\"A\":return f(o,a,!1);case\"m\":return String(a);case\"mm\":return x.s(a,2,\"0\");case\"s\":return String(t.$s);case\"ss\":return x.s(t.$s,2,\"0\");case\"SSS\":return x.s(t.$ms,3,\"0\");case\"Z\":return i}return null}(e)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,u,h){var p,g=this,f=x.p(u),m=E(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,b=function(){return x.m(g,m)};switch(f){case d:p=b()/12;break;case l:p=b();break;case c:p=b()/3;break;case s:p=(y-v)/6048e5;break;case a:p=(y-v)/864e5;break;case o:p=y/t;break;case i:p=y/e;break;case r:p=y/1e3;break;default:p=y}return h?p:x.a(p)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),T=A.prototype;return E.prototype=T,[[\"$ms\",n],[\"$s\",r],[\"$m\",i],[\"$H\",o],[\"$W\",a],[\"$M\",l],[\"$y\",d],[\"$D\",u]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,A,E),e.$i=!0),E},E.locale=S,E.isDayjs=C,E.unix=function(e){return E(1e3*e)},E.en=b[y],E.Ls=b,E.p={},E}()},7375:function(e){e.exports=function(){\"use strict\";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),o=(e||\"YYYY-MM-DDTHH:mm:ssZ\").replace(/\\[([^\\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case\"Q\":return Math.ceil((t.$M+1)/3);case\"Do\":return n.ordinal(t.$D);case\"gggg\":return t.weekYear();case\"GGGG\":return t.isoWeekYear();case\"wo\":return n.ordinal(t.week(),\"W\");case\"w\":case\"ww\":return i.s(t.week(),\"w\"===e?1:2,\"0\");case\"W\":case\"WW\":return i.s(t.isoWeek(),\"W\"===e?1:2,\"0\");case\"k\":case\"kk\":return i.s(String(0===t.$H?24:t.$H),\"k\"===e?1:2,\"0\");case\"X\":return Math.floor(t.$d.getTime()/1e3);case\"x\":return t.$d.getTime();case\"z\":return\"[\"+t.offsetName()+\"]\";case\"zzz\":return\"[\"+t.offsetName(\"long\")+\"]\";default:return e}}));return r.bind(this)(o)}}}()},445:function(e){e.exports=function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d\\d/,r=/\\d\\d?/,i=/\\d*[^-_:/,()\\s\\d]+/,o={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},u={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],S:[/\\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[r,s(\"seconds\")],ss:[r,s(\"seconds\")],m:[r,s(\"minutes\")],mm:[r,s(\"minutes\")],H:[r,s(\"hours\")],h:[r,s(\"hours\")],HH:[r,s(\"hours\")],hh:[r,s(\"hours\")],D:[r,s(\"day\")],DD:[n,s(\"day\")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],M:[r,s(\"month\")],MM:[n,s(\"month\")],MMM:[i,function(e){var t=c(\"months\"),n=(c(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,s(\"year\")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,s(\"year\")],Z:l,ZZ:l};function h(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],d=u[c],h=d&&d[0],p=d&&d[1];a[l]=p?{regex:h,parser:p}:c.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(\"string\"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(\"string\"==typeof s){var l=!0===a[2],c=!0===a[3],d=l||c,u=a[2];c&&(u=a[2]),o=this.$locale(),!l&&u&&(o=n.Ls[u]),this.$d=function(e,t,n){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var r=h(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,d=r.milliseconds,u=r.zone,p=new Date,g=a||(i||o?1:p.getDate()),f=i||p.getFullYear(),m=0;i&&!o||(m=o>0?o-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=d||0;return u?new Date(Date.UTC(f,m,g,v,y,b,w+60*u.offset*1e3)):n?new Date(Date.UTC(f,m,g,v,y,b,w)):new Date(f,m,g,v,y,b,w)}catch(e){return new Date(\"\")}}(t,s,r),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date(\"\")),o={}}else if(s instanceof Array)for(var p=s.length,g=1;g<=p;g+=1){a[1]=s[g-1];var f=n.apply(this,a);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}g===p&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}()},7872:function(e){e.exports=function(){\"use strict\";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s=\"(\"===(i=i||\"()\")[0],l=\")\"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},5750:function(e){e.exports=function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t=\"YYYY-MM-DDTHH:mm:ssZ\");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},3826:function(e){e.exports=function(){\"use strict\";var e=\"minute\",t=/[+-]\\d\\d(?::?\\d\\d)?/g,n=/([+-]|\\d\\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if(\"string\"==typeof r&&(r=function(e){void 0===e&&(e=\"\");var r=e.match(t);if(!r)return null;var i=(\"\"+r[0]).match(n)||[\"-\",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:\"+\"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var d=a.format;a.format=function(e){var t=e||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return d.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var u=a.toDate;a.toDate=function(e){return\"s\"===e&&this.$offset?o(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():u.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=o(e).local();return h.call(r,i,t,n)}}}()},8134:function(e){e.exports=function(){\"use strict\";var e=\"week\",t=\"year\";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),\"day\");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,\"millisecond\"),l=this.diff(s,e,!0);return l<0?i(this).startOf(\"week\").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},4146:(e,t,n)=>{\"use strict\";var r=n(4363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if(\"string\"!=typeof n){if(g){var i=p(n);i&&i!==g&&e(t,i,r)}var a=d(n);u&&(a=a.concat(u(n)));for(var s=l(t),f=l(n),m=0;m<a.length;++m){var v=a[m];if(!(o[v]||r&&r[v]||f&&f[v]||s&&s[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},5580:(e,t,n)=>{var r=n(6110)(n(9325),\"DataView\");e.exports=r},1549:(e,t,n)=>{var r=n(9651),i=n(3862),o=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},79:(e,t,n)=>{var r=n(3702),i=n(80),o=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},8223:(e,t,n)=>{var r=n(6110)(n(9325),\"Map\");e.exports=r},3661:(e,t,n)=>{var r=n(3040),i=n(7670),o=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},2804:(e,t,n)=>{var r=n(6110)(n(9325),\"Promise\");e.exports=r},6545:(e,t,n)=>{var r=n(6110)(n(9325),\"Set\");e.exports=r},8859:(e,t,n)=>{var r=n(3661),i=n(8999),o=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},7217:(e,t,n)=>{var r=n(79),i=n(1420),o=n(938),a=n(3605),s=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),\"WeakMap\");e.exports=r},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7389:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},695:(e,t,n)=>{var r=n(8096),i=n(2428),o=n(6449),a=n(3656),s=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&i(e),u=!n&&!d&&a(e),h=!n&&!d&&!u&&l(e),p=n||d||u||h,g=p?r(e.length,String):[],f=g.length;for(var m in e)!t&&!c.call(e,m)||p&&(\"length\"==m||u&&(\"offset\"==m||\"parent\"==m)||h&&(\"buffer\"==m||\"byteLength\"==m||\"byteOffset\"==m)||s(m,f))||g.push(m);return g}},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},882:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},1074:e=>{e.exports=function(e){return e.split(\"\")}},1733:e=>{var t=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){\"__proto__\"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},909:(e,t,n)=>{var r=n(641),i=n(8329)(r);e.exports=i},3120:(e,t,n)=>{var r=n(4528),i=n(5891);e.exports=function e(t,n,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var d=t[l];n>0&&o(d)?n>1?e(d,n-1,o,a,s):r(s,d):a||(s[s.length]=d)}return s}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},641:(e,t,n)=>{var r=n(6649),i=n(5950);e.exports=function(e,t){return e&&r(e,t,i)}},7422:(e,t,n)=>{var r=n(1769),i=n(7797);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},2199:(e,t,n)=>{var r=n(4528),i=n(6449);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},2552:(e,t,n)=>{var r=n(1873),i=n(659),o=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":a&&a in Object(e)?i(e):o(e)}},426:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7534:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&\"[object Arguments]\"==r(e)}},270:(e,t,n)=>{var r=n(7068),i=n(346);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},7068:(e,t,n)=>{var r=n(7217),i=n(5911),o=n(1986),a=n(689),s=n(5861),l=n(6449),c=n(3656),d=n(7167),u=\"[object Arguments]\",h=\"[object Array]\",p=\"[object Object]\",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,m,v){var y=l(e),b=l(t),w=y?h:s(e),C=b?h:s(t),S=(w=w==u?p:w)==p,E=(C=C==u?p:C)==p,x=w==C;if(x&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(x&&!S)return v||(v=new r),y||d(e)?i(e,t,n,f,m,v):o(e,t,w,n,f,m,v);if(!(1&n)){var A=S&&g.call(e,\"__wrapped__\"),T=E&&g.call(t,\"__wrapped__\");if(A||T){var D=A?e.value():e,R=T?t.value():t;return v||(v=new r),m(D,R,n,f,v)}}return!!x&&(v||(v=new r),a(e,t,n,f,m,v))}},1799:(e,t,n)=>{var r=n(7217),i=n(270);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var d=(c=n[a])[0],u=e[d],h=c[1];if(l&&c[2]){if(void 0===u&&!(d in e))return!1}else{var p=new r;if(o)var g=o(u,h,d,e,t,p);if(!(void 0===g?i(h,u,3,o,p):g))return!1}}return!0}},5083:(e,t,n)=>{var r=n(1882),i=n(7296),o=n(3805),a=n(7473),s=/^\\[object .+?Constructor\\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,h=RegExp(\"^\"+d.call(u).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},4901:(e,t,n)=>{var r=n(2552),i=n(294),o=n(346),a={};a[\"[object Float32Array]\"]=a[\"[object Float64Array]\"]=a[\"[object Int8Array]\"]=a[\"[object Int16Array]\"]=a[\"[object Int32Array]\"]=a[\"[object Uint8Array]\"]=a[\"[object Uint8ClampedArray]\"]=a[\"[object Uint16Array]\"]=a[\"[object Uint32Array]\"]=!0,a[\"[object Arguments]\"]=a[\"[object Array]\"]=a[\"[object ArrayBuffer]\"]=a[\"[object Boolean]\"]=a[\"[object DataView]\"]=a[\"[object Date]\"]=a[\"[object Error]\"]=a[\"[object Function]\"]=a[\"[object Map]\"]=a[\"[object Number]\"]=a[\"[object Object]\"]=a[\"[object RegExp]\"]=a[\"[object Set]\"]=a[\"[object String]\"]=a[\"[object WeakMap]\"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},5389:(e,t,n)=>{var r=n(3663),i=n(7978),o=n(3488),a=n(6449),s=n(583);e.exports=function(e){return\"function\"==typeof e?e:null==e?o:\"object\"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},8984:(e,t,n)=>{var r=n(5527),i=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}},5128:(e,t,n)=>{var r=n(909),i=n(4894);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},3663:(e,t,n)=>{var r=n(1799),i=n(776),o=n(7197);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978:(e,t,n)=>{var r=n(270),i=n(5775),o=n(631),a=n(8586),s=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},6155:(e,t,n)=>{var r=n(4932),i=n(7422),o=n(5389),a=n(5128),s=n(3937),l=n(7301),c=n(3714),d=n(3488),u=n(6449);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return u(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[d];var h=-1;t=r(t,l(o));var p=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return s(p,(function(e,t){return c(e,t,n)}))}},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},4552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302:(e,t,n)=>{var r=n(3488),i=n(6757),o=n(2865);e.exports=function(e,t){return o(i(e,t,r),e+\"\")}},9570:(e,t,n)=>{var r=n(7334),i=n(3243),o=n(3488),a=i?function(e,t){return i(e,\"toString\",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},5160:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},3937:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556:(e,t,n)=>{var r=n(1873),i=n(4932),o=n(6449),a=n(4394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if(\"string\"==typeof t)return t;if(o(t))return i(t,e)+\"\";if(a(t))return l?l.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-1/0?\"-0\":n}},4128:(e,t,n)=>{var r=n(1800),i=/^\\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,\"\"):e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},1769:(e,t,n)=>{var r=n(6449),i=n(8586),o=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},8754:(e,t,n)=>{var r=n(5160);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},3730:(e,t,n)=>{var r=n(4394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,d=r(t);if(!l&&!d&&!a&&e>t||a&&s&&c&&!l&&!d||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!d&&e<t||d&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},3714:(e,t,n)=>{var r=n(3730);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*(\"desc\"==n[i]?-1:1)}return e.index-t.index}},5481:(e,t,n)=>{var r=n(9325)[\"__core-js_shared__\"];e.exports=r},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},2507:(e,t,n)=>{var r=n(8754),i=n(9698),o=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(\"\"):t.slice(1);return s[e]()+l}}},5539:(e,t,n)=>{var r=n(882),i=n(8447),o=n(6645),a=RegExp(\"['’]\",\"g\");e.exports=function(e){return function(t){return r(o(i(t).replace(a,\"\")),e,\"\")}}},4647:(e,t,n)=>{var r=n(4552)({À:\"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\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"});e.exports=r},3243:(e,t,n)=>{var r=n(6110),i=function(){try{var e=r(Object,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}();e.exports=i},5911:(e,t,n)=>{var r=n(8859),i=n(4248),o=n(9219);e.exports=function(e,t,n,a,s,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var g=-1,f=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++g<d;){var v=e[g],y=t[g];if(a)var b=c?a(y,v,g,t,e,l):a(v,y,g,e,t,l);if(void 0!==b){if(b)continue;f=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){f=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},1986:(e,t,n)=>{var r=n(1873),i=n(7828),o=n(5288),a=n(5911),s=n(317),l=n(4247),c=r?r.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,u,h){switch(n){case\"[object DataView]\":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case\"[object ArrayBuffer]\":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case\"[object Boolean]\":case\"[object Date]\":case\"[object Number]\":return o(+e,+t);case\"[object Error]\":return e.name==t.name&&e.message==t.message;case\"[object RegExp]\":case\"[object String]\":return e==t+\"\";case\"[object Map]\":var p=s;case\"[object Set]\":var g=1&r;if(p||(p=l),e.size!=t.size&&!g)return!1;var f=h.get(e);if(f)return f==t;r|=2,h.set(e,t);var m=a(p(e),p(t),r,c,u,h);return h.delete(e),m;case\"[object Symbol]\":if(d)return d.call(e)==d.call(t)}return!1}},689:(e,t,n)=>{var r=n(2),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),d=c.length;if(d!=r(t).length&&!l)return!1;for(var u=d;u--;){var h=c[u];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),g=s.get(t);if(p&&g)return p==t&&g==e;var f=!0;s.set(e,t),s.set(t,e);for(var m=l;++u<d;){var v=e[h=c[u]],y=t[h];if(o)var b=l?o(y,v,h,t,e,s):o(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){f=!1;break}m||(m=\"constructor\"==h)}if(f&&!m){var w=e.constructor,C=t.constructor;w==C||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof w&&w instanceof w&&\"function\"==typeof C&&C instanceof C||(f=!1)}return s.delete(e),s.delete(t),f}},4840:(e,t,n)=>{var r=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:(e,t,n)=>{var r=n(2199),i=n(4664),o=n(5950);e.exports=function(e){return r(e,o,i)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}},776:(e,t,n)=>{var r=n(756),i=n(5950);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},6110:(e,t,n)=>{var r=n(5083),i=n(392);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},659:(e,t,n)=>{var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},4664:(e,t,n)=>{var r=n(7389),i=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},5861:(e,t,n)=>{var r=n(5580),i=n(8223),o=n(2804),a=n(6545),s=n(8303),l=n(2552),c=n(7473),d=\"[object Map]\",u=\"[object Promise]\",h=\"[object Set]\",p=\"[object WeakMap]\",g=\"[object DataView]\",f=c(r),m=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=g||i&&w(new i)!=d||o&&w(o.resolve())!=u||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n=\"[object Object]\"==t?e.constructor:void 0,r=n?c(n):\"\";if(r)switch(r){case f:return g;case m:return d;case v:return u;case y:return h;case b:return p}return t}),e.exports=w},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9326:(e,t,n)=>{var r=n(1769),i=n(2428),o=n(6449),a=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,d=(t=r(t,e)).length,u=!1;++c<d;){var h=l(t[c]);if(!(u=null!=e&&n(e,h)))break;e=e[h]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&s(d)&&a(h,d)&&(o(e)||i(e))}},9698:e=>{var t=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\ufe0e\\\\ufe0f]\");e.exports=function(e){return t.test(e)}},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},9651:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return\"__lodash_hash_undefined__\"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?\"__lodash_hash_undefined__\":t,this}},5891:(e,t,n)=>{var r=n(1873),i=n(2428),o=n(6449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},361:e=>{var t=/^(?:0|[1-9]\\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&(\"number\"==r||\"symbol\"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800:(e,t,n)=>{var r=n(5288),i=n(4894),o=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!(\"number\"==s?i(n)&&o(t,n.length):\"string\"==s&&t in n)&&r(n[t],e)}},8586:(e,t,n)=>{var r=n(6449),i=n(4394),o=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,a=/^\\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return\"string\"==t||\"number\"==t||\"symbol\"==t||\"boolean\"==t?\"__proto__\"!==e:null===e}},7296:(e,t,n)=>{var r,i=n(5481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+r:\"\";e.exports=function(e){return!!o&&o in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===(\"function\"==typeof n&&n.prototype||t)}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),i=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,\"create\");e.exports=r},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require(\"util\").types||a&&a.binding&&a.binding(\"util\")}catch(e){}}();e.exports=s},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6757:(e,t,n)=>{var r=n(1033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},9325:(e,t,n)=>{var r=n(4840),i=\"object\"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function(\"return this\")();e.exports=o},8999:e=>{e.exports=function(e){return this.__data__.set(e,\"__lodash_hash_undefined__\"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},2865:(e,t,n)=>{var r=n(9570),i=n(1811)(r);e.exports=i},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,n)=>{var r=n(79),i=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},3912:(e,t,n)=>{var r=n(1074),i=n(9698),o=n(2054);e.exports=function(e){return i(e)?o(e):r(e)}},1802:(e,t,n)=>{var r=n(2224),i=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,o=/\\\\(\\\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,\"$1\"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if(\"string\"==typeof e||r(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}},1800:e=>{var t=/\\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2054:e=>{var t=\"\\\\ud800-\\\\udfff\",n=\"[\"+t+\"]\",r=\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]\",i=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",o=\"[^\"+t+\"]\",a=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",s=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",l=\"(?:\"+r+\"|\"+i+\")?\",c=\"[\\\\ufe0e\\\\ufe0f]?\",d=c+l+\"(?:\\\\u200d(?:\"+[o,a,s].join(\"|\")+\")\"+c+l+\")*\",u=\"(?:\"+[o+r+\"?\",r,a,s,n].join(\"|\")+\")\",h=RegExp(i+\"(?=\"+i+\")|\"+u+d,\"g\");e.exports=function(e){return e.match(h)||[]}},2225:e=>{var t=\"\\\\ud800-\\\\udfff\",n=\"\\\\u2700-\\\\u27bf\",r=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",i=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",o=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\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\",a=\"[\"+o+\"]\",s=\"\\\\d+\",l=\"[\"+n+\"]\",c=\"[\"+r+\"]\",d=\"[^\"+t+o+s+n+r+i+\"]\",u=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",h=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",p=\"[\"+i+\"]\",g=\"(?:\"+c+\"|\"+d+\")\",f=\"(?:\"+p+\"|\"+d+\")\",m=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",v=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",y=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",b=\"[\\\\ufe0e\\\\ufe0f]?\",w=b+y+\"(?:\\\\u200d(?:\"+[\"[^\"+t+\"]\",u,h].join(\"|\")+\")\"+b+y+\")*\",C=\"(?:\"+[l,u,h].join(\"|\")+\")\"+w,S=RegExp([p+\"?\"+c+\"+\"+m+\"(?=\"+[a,p,\"$\"].join(\"|\")+\")\",f+\"+\"+v+\"(?=\"+[a,p+g,\"$\"].join(\"|\")+\")\",p+\"?\"+g+\"+\"+m,p+\"+\"+v,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",s,C].join(\"|\"),\"g\");e.exports=function(e){return e.match(S)||[]}},4058:(e,t,n)=>{var r=n(4792),i=n(5539)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},4792:(e,t,n)=>{var r=n(3222),i=n(5808);e.exports=function(e){return i(r(e).toLowerCase())}},7334:e=>{e.exports=function(e){return function(){return e}}},8221:(e,t,n)=>{var r=n(3805),i=n(124),o=n(9374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,d,u,h,p,g=0,f=!1,m=!1,v=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");function y(t){var n=l,r=c;return l=c=void 0,g=t,u=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-g>=d}function w(){var e=i();if(b(e))return C(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?s(n,d-(e-g)):n}(e))}function C(e){return h=void 0,v&&l?y(e):(l=c=void 0,u)}function S(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return g=e,h=setTimeout(w,t),f?y(e):u}(p);if(m)return clearTimeout(h),h=setTimeout(w,t),y(p)}return void 0===h&&(h=setTimeout(w,t)),u}return t=o(t)||0,r(n)&&(f=!!n.leading,d=(m=\"maxWait\"in n)?a(o(n.maxWait)||0,t):d,v=\"trailing\"in n?!!n.trailing:v),S.cancel=function(){void 0!==h&&clearTimeout(h),g=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?u:C(i())},S}},8447:(e,t,n)=>{var r=n(4647),i=n(3222),o=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,a=RegExp(\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]\",\"g\");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,\"\")}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5775:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},1448:(e,t,n)=>{var r=n(426),i=n(9326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},631:(e,t,n)=>{var r=n(8077),i=n(9326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3488:e=>{e.exports=function(e){return e}},2428:(e,t,n)=>{var r=n(7534),i=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,\"callee\")&&!s.call(e,\"callee\")};e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,n)=>{var r=n(1882),i=n(294);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},1882:(e,t,n)=>{var r=n(2552),i=n(3805);e.exports=function(e){if(!i(e))return!1;var t=r(e);return\"[object Function]\"==t||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}},294:e=>{e.exports=function(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}},346:e=>{e.exports=function(e){return null!=e&&\"object\"==typeof e}},4394:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return\"symbol\"==typeof e||i(e)&&\"[object Symbol]\"==r(e)}},7167:(e,t,n)=>{var r=n(4901),i=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},5950:(e,t,n)=>{var r=n(695),i=n(8984),o=n(4894);e.exports=function(e){return o(e)?r(e):i(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var i,o=\"Expected a function\",a=\"__lodash_hash_undefined__\",s=\"__lodash_placeholder__\",l=32,c=128,d=1/0,u=9007199254740991,h=NaN,p=4294967295,g=[[\"ary\",c],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",16],[\"flip\",512],[\"partial\",l],[\"partialRight\",64],[\"rearg\",256]],f=\"[object Arguments]\",m=\"[object Array]\",v=\"[object Boolean]\",y=\"[object Date]\",b=\"[object Error]\",w=\"[object Function]\",C=\"[object GeneratorFunction]\",S=\"[object Map]\",E=\"[object Number]\",x=\"[object Object]\",A=\"[object Promise]\",T=\"[object RegExp]\",D=\"[object Set]\",R=\"[object String]\",M=\"[object Symbol]\",O=\"[object WeakMap]\",k=\"[object ArrayBuffer]\",I=\"[object DataView]\",N=\"[object Float32Array]\",P=\"[object Float64Array]\",L=\"[object Int8Array]\",F=\"[object Int16Array]\",_=\"[object Int32Array]\",z=\"[object Uint8Array]\",G=\"[object Uint8ClampedArray]\",V=\"[object Uint16Array]\",B=\"[object Uint32Array]\",H=/\\b__p \\+= '';/g,j=/\\b(__p \\+=) '' \\+/g,U=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>\"']/g,Y=RegExp(W.source),K=RegExp($.source),q=/<%-([\\s\\S]+?)%>/g,Q=/<%([\\s\\S]+?)%>/g,X=/<%=([\\s\\S]+?)%>/g,Z=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,J=/^\\w*$/,ee=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,te=/[\\\\^$.*+?()[\\]{}|]/g,ne=RegExp(te.source),re=/^\\s+/,ie=/\\s/,oe=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ae=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,se=/,? & /,le=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,ce=/[()=,{}\\[\\]\\/\\s]/,de=/\\\\(\\\\)?/g,ue=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,he=/\\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,fe=/^\\[object .+?Constructor\\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\\d*)$/,ye=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,be=/($^)/,we=/['\\n\\r\\u2028\\u2029\\\\]/g,Ce=\"\\\\ud800-\\\\udfff\",Se=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Ee=\"\\\\u2700-\\\\u27bf\",xe=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Ae=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Te=\"\\\\ufe0e\\\\ufe0f\",De=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\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\",Re=\"[\"+Ce+\"]\",Me=\"[\"+De+\"]\",Oe=\"[\"+Se+\"]\",ke=\"\\\\d+\",Ie=\"[\"+Ee+\"]\",Ne=\"[\"+xe+\"]\",Pe=\"[^\"+Ce+De+ke+Ee+xe+Ae+\"]\",Le=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",Fe=\"[^\"+Ce+\"]\",_e=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",ze=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",Ge=\"[\"+Ae+\"]\",Ve=\"\\\\u200d\",Be=\"(?:\"+Ne+\"|\"+Pe+\")\",He=\"(?:\"+Ge+\"|\"+Pe+\")\",je=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",Ue=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",We=\"(?:\"+Oe+\"|\"+Le+\")?\",$e=\"[\"+Te+\"]?\",Ye=$e+We+\"(?:\"+Ve+\"(?:\"+[Fe,_e,ze].join(\"|\")+\")\"+$e+We+\")*\",Ke=\"(?:\"+[Ie,_e,ze].join(\"|\")+\")\"+Ye,qe=\"(?:\"+[Fe+Oe+\"?\",Oe,_e,ze,Re].join(\"|\")+\")\",Qe=RegExp(\"['’]\",\"g\"),Xe=RegExp(Oe,\"g\"),Ze=RegExp(Le+\"(?=\"+Le+\")|\"+qe+Ye,\"g\"),Je=RegExp([Ge+\"?\"+Ne+\"+\"+je+\"(?=\"+[Me,Ge,\"$\"].join(\"|\")+\")\",He+\"+\"+Ue+\"(?=\"+[Me,Ge+Be,\"$\"].join(\"|\")+\")\",Ge+\"?\"+Be+\"+\"+je,Ge+\"+\"+Ue,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",ke,Ke].join(\"|\"),\"g\"),et=RegExp(\"[\"+Ve+Ce+Se+Te+\"]\"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=[\"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\"],rt=-1,it={};it[N]=it[P]=it[L]=it[F]=it[_]=it[z]=it[G]=it[V]=it[B]=!0,it[f]=it[m]=it[k]=it[v]=it[I]=it[y]=it[b]=it[w]=it[S]=it[E]=it[x]=it[T]=it[D]=it[R]=it[O]=!1;var ot={};ot[f]=ot[m]=ot[k]=ot[I]=ot[v]=ot[y]=ot[N]=ot[P]=ot[L]=ot[F]=ot[_]=ot[S]=ot[E]=ot[x]=ot[T]=ot[D]=ot[R]=ot[M]=ot[z]=ot[G]=ot[V]=ot[B]=!0,ot[b]=ot[w]=ot[O]=!1;var at={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},st=parseFloat,lt=parseInt,ct=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt=\"object\"==typeof self&&self&&self.Object===Object&&self,ut=ct||dt||Function(\"return this\")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,gt=pt&&pt.exports===ht,ft=gt&&ct.process,mt=function(){try{return pt&&pt.require&&pt.require(\"util\").types||ft&&ft.binding&&ft.binding(\"util\")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,bt=mt&&mt.isMap,wt=mt&&mt.isRegExp,Ct=mt&&mt.isSet,St=mt&&mt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Mt(e,t){return!(null==e||!e.length)&&Gt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function kt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function It(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Nt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Pt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=jt(\"length\");function _t(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function zt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Gt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Bt,n)}function Vt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:h}function jt(e){return function(t){return null==t?i:t[e]}}function Ut(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $t(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,hn(e)+1).replace(re,\"\"):e}function qt(e){return function(t){return e(t)}}function Qt(e,t){return kt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var en=Ut({À:\"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\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),tn=Ut({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function nn(e){return\"\\\\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function dn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Ft(e)}function un(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split(\"\")}(e)}function hn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var pn=Ut({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"}),gn=function e(t){var n,r=(t=null==t?ut:gn.defaults(ut.Object(),t,gn.pick(ut,nt))).Array,ie=t.Date,Ce=t.Error,Se=t.Function,Ee=t.Math,xe=t.Object,Ae=t.RegExp,Te=t.String,De=t.TypeError,Re=r.prototype,Me=Se.prototype,Oe=xe.prototype,ke=t[\"__core-js_shared__\"],Ie=Me.toString,Ne=Oe.hasOwnProperty,Pe=0,Le=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",Fe=Oe.toString,_e=Ie.call(xe),ze=ut._,Ge=Ae(\"^\"+Ie.call(Ne).replace(te,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Ve=gt?t.Buffer:i,Be=t.Symbol,He=t.Uint8Array,je=Ve?Ve.allocUnsafe:i,Ue=an(xe.getPrototypeOf,xe),We=xe.create,$e=Oe.propertyIsEnumerable,Ye=Re.splice,Ke=Be?Be.isConcatSpreadable:i,qe=Be?Be.iterator:i,Ze=Be?Be.toStringTag:i,et=function(){try{var e=lo(xe,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),at=t.clearTimeout!==ut.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ut.Date.now&&ie.now,dt=t.setTimeout!==ut.setTimeout&&t.setTimeout,ht=Ee.ceil,pt=Ee.floor,ft=xe.getOwnPropertySymbols,mt=Ve?Ve.isBuffer:i,Ft=t.isFinite,Ut=Re.join,fn=an(xe.keys,xe),mn=Ee.max,vn=Ee.min,yn=ie.now,bn=t.parseInt,wn=Ee.random,Cn=Re.reverse,Sn=lo(t,\"DataView\"),En=lo(t,\"Map\"),xn=lo(t,\"Promise\"),An=lo(t,\"Set\"),Tn=lo(t,\"WeakMap\"),Dn=lo(xe,\"create\"),Rn=Tn&&new Tn,Mn={},On=_o(Sn),kn=_o(En),In=_o(xn),Nn=_o(An),Pn=_o(Tn),Ln=Be?Be.prototype:i,Fn=Ln?Ln.valueOf:i,_n=Ln?Ln.toString:i;function zn(e){if(es(e)&&!ja(e)&&!(e instanceof Hn)){if(e instanceof Bn)return e;if(Ne.call(e,\"__wrapped__\"))return zo(e)}return new Bn(e)}var Gn=function(){function e(){}return function(t){if(!Ja(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Un(e);this.size=t.size}function Kn(e,t){var n=ja(e),r=!n&&Ha(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Yt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Ne.call(e,c)||a&&(\"length\"==c||i&&(\"offset\"==c||\"parent\"==c)||o&&(\"buffer\"==c||\"byteLength\"==c||\"byteOffset\"==c)||mo(c,l))||s.push(c);return s}function qn(e){var t=e.length;return t?e[Wr(0,t-1)]:i}function Qn(e,t){return Io(Ti(e),or(t,0,e.length))}function Xn(e){return Io(Ti(e))}function Zn(e,t,n){(n!==i&&!Ga(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Ne.call(e,t)&&Ga(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Ga(e[n][0],t))return n;return-1}function tr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&Di(t,Os(t),e)}function rr(e,t,n){\"__proto__\"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:As(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,c=2&t,d=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ja(e))return e;var u=ja(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&Ne.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ti(e,s)}else{var h=ho(e),p=h==w||h==C;if(Ya(e))return wi(e,l);if(h==x||h==f||p&&!o){if(s=c||p?{}:go(e),!l)return c?function(e,t){return Di(e,uo(e),t)}(e,function(e,t){return e&&Di(t,ks(t),e)}(s,e)):function(e,t){return Di(e,co(e),t)}(e,nr(s,e))}else{if(!ot[h])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case k:return Ci(e);case v:case y:return new i(+e);case I:return function(e,t){var n=t?Ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case P:case L:case F:case _:case z:case G:case V:case B:return Si(e,n);case S:return new i;case E:case R:return new i(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new i;case M:return r=e,Fn?xe(Fn.call(r)):{}}}(e,h,l)}}a||(a=new Yn);var g=a.get(e);if(g)return g;a.set(e,s),os(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,i){s.set(i,ar(r,t,n,i,e,a))}));var m=u?i:(d?c?to:eo:c?ks:Os)(e);return At(m||e,(function(r,i){m&&(r=e[i=r]),Jn(s,i,ar(r,t,n,i,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if(\"function\"!=typeof e)throw new De(o);return Ro((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Mt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=kt(t,qt(n))),r?(o=Ot,a=!1):t.length>=200&&(o=Xt,a=!1,t=new $n(t));e:for(;++i<s;){var d=e[i],u=null==n?d:n(d);if(d=r||0!==d?d:0,a&&u==u){for(var h=c;h--;)if(t[h]===u)continue e;l.push(d)}else o(t,u,r)||l.push(d)}return l}zn.templateSettings={escape:q,evaluate:Q,interpolate:X,variable:\"\",imports:{_:zn}},zn.prototype=Vn.prototype,zn.prototype.constructor=zn,Bn.prototype=Gn(Vn.prototype),Bn.prototype.constructor=Bn,Hn.prototype=Gn(Vn.prototype),Hn.prototype.constructor=Hn,jn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},jn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?i:n}return Ne.call(t,e)?t[e]:i},jn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==i:Ne.call(t,e)},jn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===i?a:t,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},Un.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Un.prototype.has=function(e){return er(this.__data__,e)>-1},Un.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(En||Un),string:new jn}},Wn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ao(this,e).get(e)},Wn.prototype.has=function(e){return ao(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,a),this},$n.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Un,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var dr=Oi(yr),ur=Oi(br,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function fr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=fo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?fr(s,t-1,n,r,i):It(i,s):r||(i[i.length]=s)}return i}var mr=ki(),vr=ki(!0);function yr(e,t){return e&&mr(e,t,Os)}function br(e,t){return e&&vr(e,t,Os)}function wr(e,t){return Rt(t,(function(t){return Qa(e[t])}))}function Cr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[Fo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return ja(e)?r:It(r,n(e))}function Er(e){return null==e?e===i?\"[object Undefined]\":\"[object Null]\":Ze&&Ze in xe(e)?function(e){var t=Ne.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(e){}var o=Fe.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),o}(e):function(e){return Fe.call(e)}(e)}function xr(e,t){return e>t}function Ar(e,t){return null!=e&&Ne.call(e,t)}function Tr(e,t){return null!=e&&t in xe(e)}function Dr(e,t,n){for(var o=n?Ot:Mt,a=e[0].length,s=e.length,l=s,c=r(s),d=1/0,u=[];l--;){var h=e[l];l&&t&&(h=kt(h,qt(t))),d=vn(h.length,d),c[l]=!n&&(t||a>=120&&h.length>=120)?new $n(l&&h):i}h=e[0];var p=-1,g=c[0];e:for(;++p<a&&u.length<d;){var f=h[p],m=t?t(f):f;if(f=n||0!==f?f:0,!(g?Xt(g,m):o(u,m,n))){for(l=s;--l;){var v=c[l];if(!(v?Xt(v,m):o(e[l],m,n)))continue e}g&&g.push(m),u.push(f)}}return u}function Rr(e,t,n){var r=null==(e=Ao(e,t=mi(t,e)))?e:e[Fo(qo(t))];return null==r?i:Et(r,e,n)}function Mr(e){return es(e)&&Er(e)==f}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=ja(e),l=ja(t),c=s?m:ho(e),d=l?m:ho(t),u=(c=c==f?x:c)==x,h=(d=d==f?x:d)==x,p=c==d;if(p&&Ya(e)){if(!Ya(t))return!1;s=!0,u=!1}if(p&&!u)return a||(a=new Yn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case y:case E:return Ga(+e,+t);case b:return e.name==t.name&&e.message==t.message;case T:case R:return e==t+\"\";case S:var s=on;case D:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var d=Zi(s(e),s(t),r,i,o,a);return a.delete(e),d;case M:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var g=u&&Ne.call(e,\"__wrapped__\"),w=h&&Ne.call(t,\"__wrapped__\");if(g||w){var C=g?e.value():e,A=w?t.value():t;return a||(a=new Yn),o(C,A,n,r,a)}}return!!p&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,l=eo(e),c=l.length;if(c!=eo(t).length&&!s)return!1;for(var d=c;d--;){var u=l[d];if(!(s?u in t:Ne.call(t,u)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var f=s;++d<c;){var m=e[u=l[d]],v=t[u];if(r)var y=s?r(v,m,u,t,e,a):r(m,v,u,e,t,a);if(!(y===i?m===v||o(m,v,n,r,a):y)){g=!1;break}f||(f=\"constructor\"==u)}if(g&&!f){var b=e.constructor,w=t.constructor;b==w||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof b&&b instanceof b&&\"function\"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,o,a))}(e,t,n,r,Or,o))}function kr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=xe(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],d=e[c],u=l[1];if(s&&l[2]){if(d===i&&!(c in e))return!1}else{var h=new Yn;if(r)var p=r(d,u,c,e,t,h);if(!(p===i?Or(u,d,3,r,h):p))return!1}}return!0}function Ir(e){return!(!Ja(e)||(t=e,Le&&Le in t))&&(Qa(e)?Ge:fe).test(_o(e));var t}function Nr(e){return\"function\"==typeof e?e:null==e?nl:\"object\"==typeof e?ja(e)?zr(e[0],e[1]):_r(e):ul(e)}function Pr(e){if(!Co(e))return fn(e);var t=[];for(var n in xe(e))Ne.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Fr(e,t){var n=-1,i=Wa(e)?r(e.length):[];return dr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function _r(e){var t=so(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function zr(e,t){return yo(e)&&So(t)?Eo(Fo(e),t):function(n){var r=As(n,e);return r===i&&r===t?Ts(n,e):Or(t,r,3)}}function Gr(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Yn),Ja(a))!function(e,t,n,r,o,a,s){var l=To(e,n),c=To(t,n),d=s.get(c);if(d)Zn(e,n,d);else{var u=a?a(l,c,n+\"\",e,t,s):i,h=u===i;if(h){var p=ja(c),g=!p&&Ya(c),f=!p&&!g&&ls(c);u=c,p||g||f?ja(l)?u=l:$a(l)?u=Ti(l):g?(h=!1,u=wi(c,!0)):f?(h=!1,u=Si(c,!0)):u=[]:rs(c)||Ha(c)?(u=l,Ha(l)?u=ms(l):Ja(l)&&!Qa(l)||(u=go(c))):h=!1}h&&(s.set(c,u),o(u,c,r,a,s),s.delete(c)),Zn(e,n,u)}}(e,t,s,n,Gr,r,o);else{var l=r?r(To(e,s),a,s+\"\",e,t,o):i;l===i&&(l=a),Zn(e,s,l)}}),ks)}function Vr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Br(e,t,n){t=t.length?kt(t,(function(e){return ja(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=kt(t,qt(oo()));var i=Fr(e,(function(e,n,i){var o=kt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Ei(i[r],o[r]);if(l)return r>=s?l:l*(\"desc\"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Cr(e,a);n(s,a)&&Qr(o,mi(a,e),s)}return o}function jr(e,t,n,r){var i=r?Vt:Gt,o=-1,a=t.length,s=e;for(e===t&&(t=Ti(t)),n&&(s=kt(e,qt(n)));++o<a;)for(var l=0,c=t[o],d=n?n(c):c;(l=i(s,d,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?Ye.call(e,i,1):li(e,i)}}return e}function Wr(e,t){return e+pt(wn()*(t-e+1))}function $r(e,t){var n=\"\";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Mo(xo(e,t,nl),e+\"\")}function Kr(e){return qn(Gs(e))}function qr(e,t){var n=Gs(e);return Io(n,or(t,0,n.length))}function Qr(e,t,n,r){if(!Ja(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Fo(t[o]),d=n;if(\"__proto__\"===c||\"constructor\"===c||\"prototype\"===c)return e;if(o!=s){var u=l[c];(d=r?r(u,c,l):i)===i&&(d=Ja(u)?u:mo(t[o+1])?[]:{})}Jn(l,c,d),l=l[c]}return e}var Xr=Rn?function(e,t){return Rn.set(e,t),e}:nl,Zr=et?function(e,t){return et(e,\"toString\",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Io(Gs(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if(\"number\"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ss(t),d=t===i;o<a;){var u=pt((o+a)/2),h=n(e[u]),p=h!==i,g=null===h,f=h==h,m=ss(h);if(s)var v=r||f;else v=d?f&&(r||p):l?f&&p&&(r||!g):c?f&&p&&!g&&(r||!m):!g&&!m&&(r?h<=t:h<t);v?o=u+1:a=u}return vn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ga(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return\"number\"==typeof e?e:ss(e)?h:+e}function ai(e){if(\"string\"==typeof e)return e;if(ja(e))return kt(e,ai)+\"\";if(ss(e))return _n?_n.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function si(e,t,n){var r=-1,i=Mt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ot;else if(o>=200){var c=t?null:$i(e);if(c)return ln(c);a=!1,i=Xt,l=new $n}else l=t?[]:s;e:for(;++r<o;){var d=e[r],u=t?t(d):d;if(d=n||0!==d?d:0,a&&u==u){for(var h=l.length;h--;)if(l[h]===u)continue e;t&&l.push(u),s.push(d)}else i(l,u,n)||(l!==s&&l.push(u),s.push(d))}return s}function li(e,t){return null==(e=Ao(e,t=mi(t,e)))||delete e[Fo(qo(t))]}function ci(e,t,n,r){return Qr(e,t,n(Cr(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function ui(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function hi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return si(fr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function gi(e){return $a(e)?e:[]}function fi(e){return\"function\"==typeof e?e:nl}function mi(e,t){return ja(e)?e:yo(e,t)?[e]:Lo(vs(e))}var vi=Yr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return ut.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function Ci(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Si(e,t){var n=t?Ci(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,c=t==t,d=ss(t);if(!l&&!d&&!a&&e>t||a&&s&&c&&!l&&!d||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!d&&e<t||d&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function xi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,d=mn(a-s,0),u=r(c+d),h=!i;++l<c;)u[l]=t[l];for(;++o<s;)(h||o<a)&&(u[n[o]]=e[o]);for(;d--;)u[l++]=e[o++];return u}function Ai(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,d=t.length,u=mn(a-l,0),h=r(u+d),p=!i;++o<u;)h[o]=e[o];for(var g=o;++c<d;)h[g+c]=t[c];for(;++s<l;)(p||o<a)&&(h[g+n[s]]=e[o++]);return h}function Ti(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Di(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?rr(n,l,c):Jn(n,l,c)}return n}function Ri(e,t){return function(n,r){var i=ja(n)?xt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Mi(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&\"function\"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=xe(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=xe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=xe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ii(e){return function(t){var n=rn(t=vs(t))?un(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(\"\"):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return Nt(Qs(Hs(t).replace(Qe,\"\")),e,\"\")}}function Pi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Gn(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function Li(e){return function(t,n,r){var o=xe(t);if(!Wa(t)){var a=oo(n,3);t=Os(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return Ji((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(\"function\"!=typeof s)throw new De(o);if(a&&!l&&\"wrapper\"==ro(s))var l=new Bn([],!0)}for(r=l?r:n;++r<n;){var c=ro(s=t[r]),d=\"wrapper\"==c?no(s):i;l=d&&bo(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?l[ro(d[0])].apply(l,d[3]):1==s.length&&bo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&ja(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function _i(e,t,n,o,a,s,l,d,u,h){var p=t&c,g=1&t,f=2&t,m=24&t,v=512&t,y=f?i:Pi(e);return function c(){for(var b=arguments.length,w=r(b),C=b;C--;)w[C]=arguments[C];if(m)var S=io(c),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(o&&(w=xi(w,o,a,m)),s&&(w=Ai(w,s,l,m)),b-=E,m&&b<h){var x=sn(w,S);return Ui(e,t,_i,c.placeholder,n,w,x,d,u,h-b)}var A=g?n:this,T=f?A[e]:e;return b=w.length,d?w=function(e,t){for(var n=e.length,r=vn(t.length,n),o=Ti(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}(w,d):v&&b>1&&w.reverse(),p&&u<b&&(w.length=u),this&&this!==ut&&this instanceof c&&(T=y||Pi(T)),T.apply(A,w)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Gi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;\"string\"==typeof n||\"string\"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Vi(e){return Ji((function(t){return t=kt(t,qt(oo())),Yr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Bi(e,t){var n=(t=t===i?\" \":ai(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,ht(e/dn(t)));return rn(t)?yi(un(r),0,e).join(\"\"):r.slice(0,e)}function Hi(e){return function(t,n,o){return o&&\"number\"!=typeof o&&vo(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=mn(ht((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function ji(e){return function(t,n){return\"string\"==typeof t&&\"string\"==typeof n||(t=fs(t),n=fs(n)),e(t,n)}}function Ui(e,t,n,r,o,a,s,c,d,u){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var p=[e,t,o,h?a:i,h?s:i,h?i:a,h?i:s,c,d,u],g=n.apply(i,p);return bo(e)&&Do(g,p),g.placeholder=r,Oo(g,e,t)}function Wi(e){var t=Ee[e];return function(e,n){if(e=fs(e),(n=null==n?0:vn(ps(n),292))&&Ft(e)){var r=(vs(e)+\"e\").split(\"e\");return+((r=(vs(t(r[0]+\"e\"+(+r[1]+n)))+\"e\").split(\"e\"))[0]+\"e\"+(+r[1]-n))}return t(e)}}var $i=An&&1/ln(new An([,-0]))[1]==d?function(e){return new An(e)}:sl;function Yi(e){return function(t){var n=ho(t);return n==S?on(t):n==D?cn(t):function(e,t){return kt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,d,u,h,p){var g=2&t;if(!g&&\"function\"!=typeof e)throw new De(o);var f=a?a.length:0;if(f||(t&=-97,a=d=i),h=h===i?h:mn(ps(h),0),p=p===i?p:ps(p),f-=d?d.length:0,64&t){var m=a,v=d;a=d=i}var y=g?i:no(e),b=[e,t,n,a,d,m,v,u,h,p];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?xi(d,l,t[4]):l,e[4]=d?sn(e[3],s):t[4]}(l=t[5])&&(d=e[5],e[5]=d?Ai(d,l,t[6]):l,e[6]=d?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],d=b[4],!(p=b[9]=b[9]===i?g?0:e.length:mn(b[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=Pi(e);return function a(){for(var s=arguments.length,l=r(s),c=s,d=io(a);c--;)l[c]=arguments[c];var u=s<3&&l[0]!==d&&l[s-1]!==d?[]:sn(l,d);return(s-=u.length)<n?Ui(e,t,_i,a.placeholder,i,l,u,i,i,n-s):Et(this&&this!==ut&&this instanceof a?o:e,this,l)}}(e,t,p):t!=l&&33!=t||d.length?_i.apply(i,b):function(e,t,n,i){var o=1&t,a=Pi(e);return function t(){for(var s=-1,l=arguments.length,c=-1,d=i.length,u=r(d+l),h=this&&this!==ut&&this instanceof t?a:e;++c<d;)u[c]=i[c];for(;l--;)u[c++]=arguments[++s];return Et(h,o?n:this,u)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=Pi(e);return function t(){return(this&&this!==ut&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Oo((y?Xr:Do)(w,b),e,t)}function qi(e,t,n,r){return e===i||Ga(e,Oe[n])&&!Ne.call(r,n)?t:e}function Qi(e,t,n,r,o,a){return Ja(e)&&Ja(t)&&(a.set(t,e),Gr(e,t,i,Qi,a),a.delete(t)),e}function Xi(e){return rs(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(e),u=a.get(t);if(d&&u)return d==t&&u==e;var h=-1,p=!0,g=2&n?new $n:i;for(a.set(e,t),a.set(t,e);++h<l;){var f=e[h],m=t[h];if(r)var v=s?r(m,f,h,t,e,a):r(f,m,h,e,t,a);if(v!==i){if(v)continue;p=!1;break}if(g){if(!Lt(t,(function(e,t){if(!Xt(g,t)&&(f===e||o(f,e,n,r,a)))return g.push(t)}))){p=!1;break}}else if(f!==m&&!o(f,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Ji(e){return Mo(xo(e,i,Uo),e+\"\")}function eo(e){return Sr(e,Os,co)}function to(e){return Sr(e,ks,uo)}var no=Rn?function(e){return Rn.get(e)}:sl;function ro(e){for(var t=e.name+\"\",n=Mn[t],r=Ne.call(Mn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Ne.call(zn,\"placeholder\")?zn:e).placeholder}function oo(){var e=zn.iteratee||rl;return e=e===rl?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return(\"string\"==(r=typeof(n=t))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?i[\"string\"==typeof t?\"string\":\"hash\"]:i.map}function so(e){for(var t=Os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ir(n)?n:i}var co=ft?function(e){return null==e?[]:(e=xe(e),Rt(ft(e),(function(t){return $e.call(e,t)})))}:gl,uo=ft?function(e){for(var t=[];e;)It(t,co(e)),e=Ue(e);return t}:gl,ho=Er;function po(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=Fo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Za(i)&&mo(a,i)&&(ja(e)||Ha(e))}function go(e){return\"function\"!=typeof e.constructor||Co(e)?{}:Gn(Ue(e))}function fo(e){return ja(e)||Ha(e)||!!(Ke&&e&&e[Ke])}function mo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&(\"number\"==n||\"symbol\"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!(\"number\"==r?Wa(n)&&mo(t,n.length):\"string\"==r&&t in n)&&Ga(n[t],e)}function yo(e,t){if(ja(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!ss(e))||J.test(e)||!Z.test(e)||null!=t&&e in xe(t)}function bo(e){var t=ro(e),n=zn[t];if(\"function\"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(Sn&&ho(new Sn(new ArrayBuffer(1)))!=I||En&&ho(new En)!=S||xn&&ho(xn.resolve())!=A||An&&ho(new An)!=D||Tn&&ho(new Tn)!=O)&&(ho=function(e){var t=Er(e),n=t==x?e.constructor:i,r=n?_o(n):\"\";if(r)switch(r){case On:return I;case kn:return S;case In:return A;case Nn:return D;case Pn:return O}return t});var wo=ke?Qa:fl;function Co(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||Oe)}function So(e){return e==e&&!Ja(e)}function Eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in xe(n))}}function xo(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),Et(e,this,l)}}function Ao(e,t){return t.length<2?e:Cr(e,ei(t,0,-1))}function To(e,t){if((\"constructor\"!==t||\"function\"!=typeof e[t])&&\"__proto__\"!=t)return e[t]}var Do=ko(Xr),Ro=dt||function(e,t){return ut.setTimeout(e,t)},Mo=ko(Zr);function Oo(e,t,n){var r=t+\"\";return Mo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?\"& \":\"\")+t[r],t=t.join(n>2?\", \":\" \"),e.replace(oe,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(r,function(e,t){return At(g,(function(n){var r=\"_.\"+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function ko(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Io(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Wr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var No,Po,Lo=(No=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(de,\"$1\"):n||e)})),t}),(function(e){return 500===Po.size&&Po.clear(),e})),Po=No.cache,No);function Fo(e){if(\"string\"==typeof e||ss(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function _o(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function zo(e){if(e instanceof Hn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Go=Yr((function(e,t){return $a(e)?cr(e,fr(t,1,$a,!0)):[]})),Vo=Yr((function(e,t){var n=qo(t);return $a(n)&&(n=i),$a(e)?cr(e,fr(t,1,$a,!0),oo(n,2)):[]})),Bo=Yr((function(e,t){var n=qo(t);return $a(n)&&(n=i),$a(e)?cr(e,fr(t,1,$a,!0),i,n):[]}));function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=mn(r+i,0)),zt(e,oo(t,3),i)}function jo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ps(n),o=n<0?mn(r+o,0):vn(o,r-1)),zt(e,oo(t,3),o,!0)}function Uo(e){return null!=e&&e.length?fr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var $o=Yr((function(e){var t=kt(e,gi);return t.length&&t[0]===e[0]?Dr(t):[]})),Yo=Yr((function(e){var t=qo(e),n=kt(e,gi);return t===qo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Dr(n,oo(t,2)):[]})),Ko=Yr((function(e){var t=qo(e),n=kt(e,gi);return(t=\"function\"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,i,t):[]}));function qo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var Zo=Ji((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Ur(e,kt(t,(function(e){return mo(e,n)?+e:e})).sort(Ei)),r}));function Jo(e){return null==e?e:Cn.call(e)}var ea=Yr((function(e){return si(fr(e,1,$a,!0))})),ta=Yr((function(e){var t=qo(e);return $a(t)&&(t=i),si(fr(e,1,$a,!0),oo(t,2))})),na=Yr((function(e){var t=qo(e);return t=\"function\"==typeof t?t:i,si(fr(e,1,$a,!0),i,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if($a(e))return t=mn(e.length,t),!0})),Yt(t,(function(t){return kt(e,jt(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:kt(n,(function(e){return Et(t,i,e)}))}var oa=Yr((function(e,t){return $a(e)?cr(e,t):[]})),aa=Yr((function(e){return hi(Rt(e,$a))})),sa=Yr((function(e){var t=qo(e);return $a(t)&&(t=i),hi(Rt(e,$a),oo(t,2))})),la=Yr((function(e){var t=qo(e);return t=\"function\"==typeof t?t:i,hi(Rt(e,$a),i,t)})),ca=Yr(ra),da=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n=\"function\"==typeof n?(e.pop(),n):i,ia(e,n)}));function ua(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=Ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ga=Ri((function(e,t,n){Ne.call(e,n)?++e[n]:rr(e,n,1)})),fa=Li(Ho),ma=Li(jo);function va(e,t){return(ja(e)?At:dr)(e,oo(t,3))}function ya(e,t){return(ja(e)?Tt:ur)(e,oo(t,3))}var ba=Ri((function(e,t,n){Ne.call(e,n)?e[n].push(t):rr(e,n,[t])})),wa=Yr((function(e,t,n){var i=-1,o=\"function\"==typeof t,a=Wa(e)?r(e.length):[];return dr(e,(function(e){a[++i]=o?Et(t,e,n):Rr(e,t,n)})),a})),Ca=Ri((function(e,t,n){rr(e,n,t)}));function Sa(e,t){return(ja(e)?kt:Fr)(e,oo(t,3))}var Ea=Ri((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,fr(t,1),[])})),Aa=ct||function(){return ut.Date.now()};function Ta(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Da(e,t){var n;if(\"function\"!=typeof t)throw new De(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ra=Yr((function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Ra));r|=l}return Ki(e,r,t,n,i)})),Ma=Yr((function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ma));r|=l}return Ki(t,r,e,n,i)}));function Oa(e,t,n){var r,a,s,l,c,d,u=0,h=!1,p=!1,g=!0;if(\"function\"!=typeof e)throw new De(o);function f(t){var n=r,o=a;return r=a=i,u=t,l=e.apply(o,n)}function m(e){var n=e-d;return d===i||n>=t||n<0||p&&e-u>=s}function v(){var e=Aa();if(m(e))return y(e);c=Ro(v,function(e){var n=t-(e-d);return p?vn(n,s-(e-u)):n}(e))}function y(e){return c=i,g&&r?f(e):(r=a=i,l)}function b(){var e=Aa(),n=m(e);if(r=arguments,a=this,d=e,n){if(c===i)return function(e){return u=e,c=Ro(v,t),h?f(e):l}(d);if(p)return bi(c),c=Ro(v,t),f(d)}return c===i&&(c=Ro(v,t)),l}return t=fs(t)||0,Ja(n)&&(h=!!n.leading,s=(p=\"maxWait\"in n)?mn(fs(n.maxWait)||0,t):s,g=\"trailing\"in n?!!n.trailing:g),b.cancel=function(){c!==i&&bi(c),u=0,r=d=a=c=i},b.flush=function(){return c===i?l:y(Aa())},b}var ka=Yr((function(e,t){return lr(e,1,t)})),Ia=Yr((function(e,t,n){return lr(e,fs(t)||0,n)}));function Na(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new De(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Na.Cache||Wn),n}function Pa(e){if(\"function\"!=typeof e)throw new De(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Wn;var La=vi((function(e,t){var n=(t=1==t.length&&ja(t[0])?kt(t[0],qt(oo())):kt(fr(t,1),qt(oo()))).length;return Yr((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Fa=Yr((function(e,t){var n=sn(t,io(Fa));return Ki(e,l,i,t,n)})),_a=Yr((function(e,t){var n=sn(t,io(_a));return Ki(e,64,i,t,n)})),za=Ji((function(e,t){return Ki(e,256,i,i,i,t)}));function Ga(e,t){return e===t||e!=e&&t!=t}var Va=ji(xr),Ba=ji((function(e,t){return e>=t})),Ha=Mr(function(){return arguments}())?Mr:function(e){return es(e)&&Ne.call(e,\"callee\")&&!$e.call(e,\"callee\")},ja=r.isArray,Ua=vt?qt(vt):function(e){return es(e)&&Er(e)==k};function Wa(e){return null!=e&&Za(e.length)&&!Qa(e)}function $a(e){return es(e)&&Wa(e)}var Ya=mt||fl,Ka=yt?qt(yt):function(e){return es(e)&&Er(e)==y};function qa(e){if(!es(e))return!1;var t=Er(e);return t==b||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!rs(e)}function Qa(e){if(!Ja(e))return!1;var t=Er(e);return t==w||t==C||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function Xa(e){return\"number\"==typeof e&&e==ps(e)}function Za(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=u}function Ja(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function es(e){return null!=e&&\"object\"==typeof e}var ts=bt?qt(bt):function(e){return es(e)&&ho(e)==S};function ns(e){return\"number\"==typeof e||es(e)&&Er(e)==E}function rs(e){if(!es(e)||Er(e)!=x)return!1;var t=Ue(e);if(null===t)return!0;var n=Ne.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&Ie.call(n)==_e}var is=wt?qt(wt):function(e){return es(e)&&Er(e)==T},os=Ct?qt(Ct):function(e){return es(e)&&ho(e)==D};function as(e){return\"string\"==typeof e||!ja(e)&&es(e)&&Er(e)==R}function ss(e){return\"symbol\"==typeof e||es(e)&&Er(e)==M}var ls=St?qt(St):function(e){return es(e)&&Za(e.length)&&!!it[Er(e)]},cs=ji(Lr),ds=ji((function(e,t){return e<=t}));function us(e){if(!e)return[];if(Wa(e))return as(e)?un(e):Ti(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=ho(e);return(t==S?on:t==D?ln:Gs)(e)}function hs(e){return e?(e=fs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?or(ps(e),0,p):0}function fs(e){if(\"number\"==typeof e)return e;if(ss(e))return h;if(Ja(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ge.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?h:+e}function ms(e){return Di(e,ks(e))}function vs(e){return null==e?\"\":ai(e)}var ys=Mi((function(e,t){if(Co(t)||Wa(t))Di(t,Os(t),e);else for(var n in t)Ne.call(t,n)&&Jn(e,n,t[n])})),bs=Mi((function(e,t){Di(t,ks(t),e)})),ws=Mi((function(e,t,n,r){Di(t,ks(t),e,r)})),Cs=Mi((function(e,t,n,r){Di(t,Os(t),e,r)})),Ss=Ji(ir),Es=Yr((function(e,t){e=xe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=ks(a),l=-1,c=s.length;++l<c;){var d=s[l],u=e[d];(u===i||Ga(u,Oe[d])&&!Ne.call(e,d))&&(e[d]=a[d])}return e})),xs=Yr((function(e){return e.push(i,Qi),Et(Ns,i,e)}));function As(e,t,n){var r=null==e?i:Cr(e,t);return r===i?n:r}function Ts(e,t){return null!=e&&po(e,t,Tr)}var Ds=zi((function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Js(nl)),Rs=zi((function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Ms=Yr(Rr);function Os(e){return Wa(e)?Kn(e):Pr(e)}function ks(e){return Wa(e)?Kn(e,!0):function(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=Co(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}(e)}var Is=Mi((function(e,t,n){Gr(e,t,n)})),Ns=Mi((function(e,t,n,r){Gr(e,t,n,r)})),Ps=Ji((function(e,t){var n={};if(null==e)return n;var r=!1;t=kt(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Di(e,to(e),n),r&&(n=ar(n,7,Xi));for(var i=t.length;i--;)li(n,t[i]);return n})),Ls=Ji((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=kt(to(e),(function(e){return[e]}));return t=oo(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Yi(Os),zs=Yi(ks);function Gs(e){return null==e?[]:Qt(e,Os(e))}var Vs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return qs(vs(e).toLowerCase())}function Hs(e){return(e=vs(e))&&e.replace(ye,en).replace(Xe,\"\")}var js=Ni((function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()})),Us=Ni((function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()})),Ws=Ii(\"toLowerCase\"),$s=Ni((function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()})),Ys=Ni((function(e,t,n){return e+(n?\" \":\"\")+qs(t)})),Ks=Ni((function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()})),qs=Ii(\"toUpperCase\");function Qs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Yr((function(e,t){try{return Et(e,i,t)}catch(e){return qa(e)?e:new Ce(e)}})),Zs=Ji((function(e,t){return At(t,(function(t){t=Fo(t),rr(e,t,Ra(e[t],e))})),e}));function Js(e){return function(){return e}}var el=Fi(),tl=Fi(!0);function nl(e){return e}function rl(e){return Nr(\"function\"==typeof e?e:ar(e,1))}var il=Yr((function(e,t){return function(n){return Rr(n,e,t)}})),ol=Yr((function(e,t){return function(n){return Rr(e,n,t)}}));function al(e,t,n){var r=Os(t),i=wr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,Os(t)));var o=!(Ja(n)&&\"chain\"in n&&!n.chain),a=Qa(e);return At(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function sl(){}var ll=Vi(kt),cl=Vi(Dt),dl=Vi(Lt);function ul(e){return yo(e)?jt(Fo(e)):function(e){return function(t){return Cr(t,e)}}(e)}var hl=Hi(),pl=Hi(!0);function gl(){return[]}function fl(){return!1}var ml,vl=Gi((function(e,t){return e+t}),0),yl=Wi(\"ceil\"),bl=Gi((function(e,t){return e/t}),1),wl=Wi(\"floor\"),Cl=Gi((function(e,t){return e*t}),1),Sl=Wi(\"round\"),El=Gi((function(e,t){return e-t}),0);return zn.after=function(e,t){if(\"function\"!=typeof t)throw new De(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ta,zn.assign=ys,zn.assignIn=bs,zn.assignInWith=ws,zn.assignWith=Cs,zn.at=Ss,zn.before=Da,zn.bind=Ra,zn.bindAll=Zs,zn.bindKey=Ma,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ja(e)?e:[e]},zn.chain=ua,zn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:mn(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(ht(o/t));a<o;)l[s++]=ei(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return It(ja(n)?Ti(n):[n],fr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?kt(e,(function(e){if(\"function\"!=typeof e[1])throw new De(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Os(e);return function(n){return sr(n,e,t)}}(ar(e,1))},zn.constant=Js,zn.countBy=ga,zn.create=function(e,t){var n=Gn(e);return null==t?n:nr(n,t)},zn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.debounce=Oa,zn.defaults=Es,zn.defaultsDeep=xs,zn.defer=ka,zn.delay=Ia,zn.difference=Go,zn.differenceBy=Vo,zn.differenceWith=Bo,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?di(e,oo(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?di(e,oo(t,3),!0):[]},zn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&\"number\"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(ja(e)?Rt:gr)(e,oo(t,3))},zn.flatMap=function(e,t){return fr(Sa(e,t),1)},zn.flatMapDeep=function(e,t){return fr(Sa(e,t),d)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),fr(Sa(e,t),n)},zn.flatten=Uo,zn.flattenDeep=function(e){return null!=e&&e.length?fr(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===i?1:ps(t)):[]},zn.flip=function(e){return Ki(e,512)},zn.flow=el,zn.flowRight=tl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:wr(e,Os(e))},zn.functionsIn=function(e){return null==e?[]:wr(e,ks(e))},zn.groupBy=ba,zn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},zn.intersection=$o,zn.intersectionBy=Yo,zn.intersectionWith=Ko,zn.invert=Ds,zn.invertBy=Rs,zn.invokeMap=wa,zn.iteratee=rl,zn.keyBy=Ca,zn.keys=Os,zn.keysIn=ks,zn.map=Sa,zn.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},zn.matches=function(e){return _r(ar(e,1))},zn.matchesProperty=function(e,t){return zr(e,ar(t,1))},zn.memoize=Na,zn.merge=Is,zn.mergeWith=Ns,zn.method=il,zn.methodOf=ol,zn.mixin=al,zn.negate=Pa,zn.nthArg=function(e){return e=ps(e),Yr((function(t){return Vr(t,e)}))},zn.omit=Ps,zn.omitBy=function(e,t){return Fs(e,Pa(oo(t)))},zn.once=function(e){return Da(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(ja(t)||(t=null==t?[]:[t]),ja(n=r?i:n)||(n=null==n?[]:[n]),Br(e,t,n))},zn.over=ll,zn.overArgs=La,zn.overEvery=cl,zn.overSome=dl,zn.partial=Fa,zn.partialRight=_a,zn.partition=Ea,zn.pick=Ls,zn.pickBy=Fs,zn.property=ul,zn.propertyOf=function(e){return function(t){return null==e?i:Cr(e,t)}},zn.pull=Qo,zn.pullAll=Xo,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,oo(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,i,n):e},zn.pullAt=Zo,zn.range=hl,zn.rangeRight=pl,zn.rearg=za,zn.reject=function(e,t){return(ja(e)?Rt:gr)(e,Pa(oo(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Ur(e,i),n},zn.rest=function(e,t){if(\"function\"!=typeof e)throw new De(o);return Yr(e,t=t===i?t:ps(t))},zn.reverse=Jo,zn.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),(ja(e)?Qn:qr)(e,t)},zn.set=function(e,t,n){return null==e?e:Qr(e,t,n)},zn.setWith=function(e,t,n,r){return r=\"function\"==typeof r?r:i,null==e?e:Qr(e,t,n,r)},zn.shuffle=function(e){return(ja(e)?Xn:Jr)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&\"number\"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ei(e,t,n)):[]},zn.sortBy=xa,zn.sortedUniq=function(e){return e&&e.length?ii(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},zn.split=function(e,t,n){return n&&\"number\"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?p:n>>>0)?(e=vs(e))&&(\"string\"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(un(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if(\"function\"!=typeof e)throw new De(o);return t=null==t?0:mn(ps(t),0),Yr((function(n){var r=n[t],i=yi(n,0,t);return r&&It(i,r),Et(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?di(e,oo(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?di(e,oo(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if(\"function\"!=typeof e)throw new De(o);return Ja(n)&&(r=\"leading\"in n?!!n.leading:r,i=\"trailing\"in n?!!n.trailing:i),Oa(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=ha,zn.toArray=us,zn.toPairs=_s,zn.toPairsIn=zs,zn.toPath=function(e){return ja(e)?kt(e,Fo):ss(e)?[e]:Ti(Lo(vs(e)))},zn.toPlainObject=ms,zn.transform=function(e,t,n){var r=ja(e),i=r||Ya(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Qa(o)?Gn(Ue(e)):{}}return(i?At:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ta(e,1)},zn.union=ea,zn.unionBy=ta,zn.unionWith=na,zn.uniq=function(e){return e&&e.length?si(e):[]},zn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},zn.uniqWith=function(e,t){return t=\"function\"==typeof t?t:i,e&&e.length?si(e,i,t):[]},zn.unset=function(e,t){return null==e||li(e,t)},zn.unzip=ra,zn.unzipWith=ia,zn.update=function(e,t,n){return null==e?e:ci(e,t,fi(n))},zn.updateWith=function(e,t,n,r){return r=\"function\"==typeof r?r:i,null==e?e:ci(e,t,fi(n),r)},zn.values=Gs,zn.valuesIn=function(e){return null==e?[]:Qt(e,ks(e))},zn.without=oa,zn.words=Qs,zn.wrap=function(e,t){return Fa(fi(t),e)},zn.xor=aa,zn.xorBy=sa,zn.xorWith=la,zn.zip=ca,zn.zipObject=function(e,t){return pi(e||[],t||[],Jn)},zn.zipObjectDeep=function(e,t){return pi(e||[],t||[],Qr)},zn.zipWith=da,zn.entries=_s,zn.entriesIn=zs,zn.extend=bs,zn.extendWith=ws,al(zn,zn),zn.add=vl,zn.attempt=Xs,zn.camelCase=Vs,zn.capitalize=Bs,zn.ceil=yl,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=fs(n))==n?n:0),t!==i&&(t=(t=fs(t))==t?t:0),or(fs(e),t,n)},zn.clone=function(e){return ar(e,4)},zn.cloneDeep=function(e){return ar(e,5)},zn.cloneDeepWith=function(e,t){return ar(e,5,t=\"function\"==typeof t?t:i)},zn.cloneWith=function(e,t){return ar(e,4,t=\"function\"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},zn.deburr=Hs,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bl,zn.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},zn.eq=Ga,zn.escape=function(e){return(e=vs(e))&&K.test(e)?e.replace($,tn):e},zn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,\"\\\\$&\"):e},zn.every=function(e,t,n){var r=ja(e)?Dt:hr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},zn.find=fa,zn.findIndex=Ho,zn.findKey=function(e,t){return _t(e,oo(t,3),yr)},zn.findLast=ma,zn.findLastIndex=jo,zn.findLastKey=function(e,t){return _t(e,oo(t,3),br)},zn.floor=wl,zn.forEach=va,zn.forEachRight=ya,zn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),ks)},zn.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),ks)},zn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},zn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},zn.get=As,zn.gt=Va,zn.gte=Ba,zn.has=function(e,t){return null!=e&&po(e,t,Ar)},zn.hasIn=Ts,zn.head=Wo,zn.identity=nl,zn.includes=function(e,t,n,r){e=Wa(e)?e:Gs(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=mn(r+i,0)),Gt(e,t,i)},zn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=fs(e),t,n)},zn.invoke=Ms,zn.isArguments=Ha,zn.isArray=ja,zn.isArrayBuffer=Ua,zn.isArrayLike=Wa,zn.isArrayLikeObject=$a,zn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Er(e)==v},zn.isBuffer=Ya,zn.isDate=Ka,zn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(ja(e)||\"string\"==typeof e||\"function\"==typeof e.splice||Ya(e)||ls(e)||Ha(e)))return!e.length;var t=ho(e);if(t==S||t==D)return!e.size;if(Co(e))return!Pr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Or(e,t)},zn.isEqualWith=function(e,t,n){var r=(n=\"function\"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},zn.isError=qa,zn.isFinite=function(e){return\"number\"==typeof e&&Ft(e)},zn.isFunction=Qa,zn.isInteger=Xa,zn.isLength=Za,zn.isMap=ts,zn.isMatch=function(e,t){return e===t||kr(e,t,so(t))},zn.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:i,kr(e,t,so(t),n)},zn.isNaN=function(e){return ns(e)&&e!=+e},zn.isNative=function(e){if(wo(e))throw new Ce(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return Ir(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=ns,zn.isObject=Ja,zn.isObjectLike=es,zn.isPlainObject=rs,zn.isRegExp=is,zn.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=u},zn.isSet=os,zn.isString=as,zn.isSymbol=ss,zn.isTypedArray=ls,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return es(e)&&ho(e)==O},zn.isWeakSet=function(e){return es(e)&&\"[object WeakSet]\"==Er(e)},zn.join=function(e,t){return null==e?\"\":Ut.call(e,t)},zn.kebabCase=js,zn.last=qo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ps(n))<0?mn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):zt(e,Bt,o,!0)},zn.lowerCase=Us,zn.lowerFirst=Ws,zn.lt=cs,zn.lte=ds,zn.max=function(e){return e&&e.length?pr(e,nl,xr):i},zn.maxBy=function(e,t){return e&&e.length?pr(e,oo(t,2),xr):i},zn.mean=function(e){return Ht(e,nl)},zn.meanBy=function(e,t){return Ht(e,oo(t,2))},zn.min=function(e){return e&&e.length?pr(e,nl,Lr):i},zn.minBy=function(e,t){return e&&e.length?pr(e,oo(t,2),Lr):i},zn.stubArray=gl,zn.stubFalse=fl,zn.stubObject=function(){return{}},zn.stubString=function(){return\"\"},zn.stubTrue=function(){return!0},zn.multiply=Cl,zn.nth=function(e,t){return e&&e.length?Vr(e,ps(t)):i},zn.noConflict=function(){return ut._===this&&(ut._=ze),this},zn.noop=sl,zn.now=Aa,zn.pad=function(e,t,n){e=vs(e);var r=(t=ps(t))?dn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Bi(pt(i),n)+e+Bi(ht(i),n)},zn.padEnd=function(e,t,n){e=vs(e);var r=(t=ps(t))?dn(e):0;return t&&r<t?e+Bi(t-r,n):e},zn.padStart=function(e,t,n){e=vs(e);var r=(t=ps(t))?dn(e):0;return t&&r<t?Bi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,\"\"),t||0)},zn.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&(\"boolean\"==typeof t?(n=t,t=i):\"boolean\"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=wn();return vn(e+o*(t-e+st(\"1e-\"+((o+\"\").length-1))),t)}return Wr(e,t)},zn.reduce=function(e,t,n){var r=ja(e)?Nt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},zn.reduceRight=function(e,t,n){var r=ja(e)?Pt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},zn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),$r(vs(e),t)},zn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Fo(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},zn.round=Sl,zn.runInContext=e,zn.sample=function(e){return(ja(e)?qn:Kr)(e)},zn.size=function(e){if(null==e)return 0;if(Wa(e))return as(e)?dn(e):e.length;var t=ho(e);return t==S||t==D?e.size:Pr(e).length},zn.snakeCase=$s,zn.some=function(e,t,n){var r=ja(e)?Lt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},zn.sortedIndex=function(e,t){return ni(e,t)},zn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Ga(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ni(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Ga(e[n],t))return n}return-1},zn.startCase=Ys,zn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:or(ps(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},zn.subtract=El,zn.sum=function(e){return e&&e.length?$t(e,nl):0},zn.sumBy=function(e,t){return e&&e.length?$t(e,oo(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&vo(e,t,n)&&(t=i),e=vs(e),t=ws({},t,r,qi);var o,a,s=ws({},t.imports,r.imports,qi),l=Os(s),c=Qt(s,l),d=0,u=t.interpolate||be,h=\"__p += '\",p=Ae((t.escape||be).source+\"|\"+u.source+\"|\"+(u===X?ue:be).source+\"|\"+(t.evaluate||be).source+\"|$\",\"g\"),g=\"//# sourceURL=\"+(Ne.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++rt+\"]\")+\"\\n\";e.replace(p,(function(t,n,r,i,s,l){return r||(r=i),h+=e.slice(d,l).replace(we,nn),n&&(o=!0,h+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(a=!0,h+=\"';\\n\"+s+\";\\n__p += '\"),r&&(h+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),d=l+t.length,t})),h+=\"';\\n\";var f=Ne.call(t,\"variable\")&&t.variable;if(f){if(ce.test(f))throw new Ce(\"Invalid `variable` option passed into `_.template`\")}else h=\"with (obj) {\\n\"+h+\"\\n}\\n\";h=(a?h.replace(H,\"\"):h).replace(j,\"$1\").replace(U,\"$1;\"),h=\"function(\"+(f||\"obj\")+\") {\\n\"+(f?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(o?\", __e = _.escape\":\"\")+(a?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+h+\"return __p\\n}\";var m=Xs((function(){return Se(l,g+\"return \"+h).apply(i,c)}));if(m.source=h,qa(m))throw m;return m},zn.times=function(e,t){if((e=ps(e))<1||e>u)return[];var n=p,r=vn(e,p);t=oo(t),e-=p;for(var i=Yt(r,t);++n<e;)t(n);return i},zn.toFinite=hs,zn.toInteger=ps,zn.toLength=gs,zn.toLower=function(e){return vs(e).toLowerCase()},zn.toNumber=fs,zn.toSafeInteger=function(e){return e?or(ps(e),-9007199254740991,u):0===e?e:0},zn.toString=vs,zn.toUpper=function(e){return vs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Kt(e);if(!e||!(t=ai(t)))return e;var r=un(e),o=un(t);return yi(r,Zt(r,o),Jt(r,o)+1).join(\"\")},zn.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,hn(e)+1);if(!e||!(t=ai(t)))return e;var r=un(e);return yi(r,0,Jt(r,un(t))+1).join(\"\")},zn.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,\"\");if(!e||!(t=ai(t)))return e;var r=un(e);return yi(r,Zt(r,un(t))).join(\"\")},zn.truncate=function(e,t){var n=30,r=\"...\";if(Ja(t)){var o=\"separator\"in t?t.separator:o;n=\"length\"in t?ps(t.length):n,r=\"omission\"in t?ai(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=un(e);a=s.length}if(n>=a)return e;var l=n-dn(r);if(l<1)return r;var c=s?yi(s,0,l).join(\"\"):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var d,u=c;for(o.global||(o=Ae(o.source,vs(he.exec(o))+\"g\")),o.lastIndex=0;d=o.exec(u);)var h=d.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ai(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},zn.unescape=function(e){return(e=vs(e))&&Y.test(e)?e.replace(W,pn):e},zn.uniqueId=function(e){var t=++Pe;return vs(e)+t},zn.upperCase=Ks,zn.upperFirst=qs,zn.each=va,zn.eachRight=ya,zn.first=Wo,al(zn,(ml={},yr(zn,(function(e,t){Ne.call(zn.prototype,t)||(ml[t]=e)})),ml),{chain:!1}),zn.VERSION=\"4.17.21\",At([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],(function(e){zn[e].placeholder=zn})),At([\"drop\",\"take\"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:mn(ps(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?\"Right\":\"\")}),r},Hn.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}})),At([\"filter\",\"map\",\"takeWhile\"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At([\"head\",\"last\"],(function(e,t){var n=\"take\"+(t?\"Right\":\"\");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),At([\"initial\",\"tail\"],(function(e,t){var n=\"drop\"+(t?\"\":\"Right\");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nl)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Yr((function(e,t){return\"function\"==typeof e?new Hn(this):this.map((function(n){return Rr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Pa(oo(e)))},Hn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},yr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=zn[r?\"take\"+(\"last\"==t?\"Right\":\"\"):t],a=r||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],d=l||ja(t),u=function(e){var t=o.apply(zn,It([e],s));return r&&h?t[0]:t};d&&n&&\"function\"==typeof c&&1!=c.length&&(l=d=!1);var h=this.__chain__,p=!!this.__actions__.length,g=a&&!h,f=l&&!p;if(!a&&d){t=f?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[u],thisArg:i}),new Bn(m,h)}return g&&f?e.apply(this,s):(m=this.thru(u),g?r?m.value()[0]:m.value():m)})})),At([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ja(i)?i:[],e)}return this[n]((function(n){return t.apply(ja(n)?n:[],e)}))}})),yr(Hn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+\"\";Ne.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[_i(i,2).name]=[{name:\"wrapper\",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ja(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case\"drop\":e+=a;break;case\"dropRight\":t-=a;break;case\"take\":t=vn(t,e+a);break;case\"takeRight\":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,d=this.__iteratees__,u=d.length,h=0,p=vn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return ui(e,this.__actions__);var g=[];e:for(;l--&&h<p;){for(var f=-1,m=e[c+=t];++f<u;){var v=d[f],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}g[h++]=m}return g},zn.prototype.at=pa,zn.prototype.chain=function(){return ua(this)},zn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=us(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=zo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[Jo],thisArg:i}),new Bn(t,this.__chain__)}return this.thru(Jo)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,qe&&(zn.prototype[qe]=function(){return this}),zn}();ut._=gn,(r=function(){return gn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},9674:(e,t,n)=>{var r=n(3360),i=n(641),o=n(5389);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},3916:(e,t,n)=>{var r=n(3360),i=n(641),o=n(5389);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},104:(e,t,n)=>{var r=n(3661);function i(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new TypeError(\"Expected a function\");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},583:(e,t,n)=>{var r=n(7237),i=n(7255),o=n(8586),a=n(7797);e.exports=function(e){return o(e)?r(a(e)):i(e)}},4124:(e,t,n)=>{var r=n(5539)((function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()}));e.exports=r},3031:(e,t,n)=>{var r=n(3120),i=n(6155),o=n(9302),a=n(6800),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},9374:(e,t,n)=>{var r=n(4128),i=n(3805),o=n(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if(\"number\"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?\"\":r(e)}},5808:(e,t,n)=>{var r=n(2507)(\"toUpperCase\");e.exports=r},6645:(e,t,n)=>{var r=n(1733),i=n(5434),o=n(3222),a=n(2225);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},7627:e=>{e.exports=function(e,t){var n,r,i,o,a,s,l,c;for(n=3&e.length,r=e.length-n,i=t,a=3432918353,s=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}},2694:(e,t,n)=>{\"use strict\";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw s.name=\"Invariant Violation\",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},3668:e=>{\"use strict\";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,r=/^\\d+$/,i=/^\\d/,o=/[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,a=/^\\s*(['\"]?)(.*?)(\\1)\\s*$/,s=new t(512),l=new t(512),c=new t(512);function d(e){return s.get(e)||s.set(e,u(e).map((function(e){return e.replace(a,\"$2\")})))}function u(e){return e.match(n)||[\"\"]}function h(e){return\"string\"==typeof e&&e&&-1!==[\"'\",'\"'].indexOf(e.charAt(0))}function p(e){return!h(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:u,normalizePath:d,setter:function(e){var t=d(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if(\"__proto__\"===a||\"constructor\"===a||\"prototype\"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=d(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(h(t)||r.test(t)?\"[\"+t+\"]\":(e?\".\":\"\")+t)}),\"\")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(p(r)&&(r='\"'+r+'\"'),o=!(a=h(r))&&/^\\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:u(e),t,n)}}},7633:(e,t,n)=>{\"use strict\";var r=n(9094);function i(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var o=Object.prototype.hasOwnProperty,a=/^[: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]*$/,s={},l={};function c(e){return!!o.call(l,e)||!o.call(s,e)&&(a.test(e)?l[e]=!0:(s[e]=!0,!1))}function d(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var u={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach((function(e){u[e]=new d(e,0,!1,e,null,!1,!1)})),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach((function(e){var t=e[0];u[t]=new d(t,1,!1,e[1],null,!1,!1)})),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach((function(e){u[e]=new d(e,2,!1,e.toLowerCase(),null,!1,!1)})),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach((function(e){u[e]=new d(e,2,!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\".split(\" \").forEach((function(e){u[e]=new d(e,3,!1,e.toLowerCase(),null,!1,!1)})),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach((function(e){u[e]=new d(e,3,!0,e,null,!1,!1)})),[\"capture\",\"download\"].forEach((function(e){u[e]=new d(e,4,!1,e,null,!1,!1)})),[\"cols\",\"rows\",\"size\",\"span\"].forEach((function(e){u[e]=new d(e,6,!1,e,null,!1,!1)})),[\"rowSpan\",\"start\"].forEach((function(e){u[e]=new d(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\\-:]([a-z])/g;function p(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\".split(\" \").forEach((function(e){var t=e.replace(h,p);u[t]=new d(t,1,!1,e,null,!1,!1)})),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach((function(e){var t=e.replace(h,p);u[t]=new d(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)})),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach((function(e){var t=e.replace(h,p);u[t]=new d(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)})),[\"tabIndex\",\"crossOrigin\"].forEach((function(e){u[e]=new d(e,1,!1,e.toLowerCase(),null,!1,!1)})),u.xlinkHref=new d(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach((function(e){u[e]=new d(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g={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},f=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(g).forEach((function(e){f.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),g[t]=g[e]}))}));var m=/[\"'&<>]/;function v(e){if(\"boolean\"==typeof e||\"number\"==typeof e)return\"\"+e;e=\"\"+e;var t=m.exec(e);if(t){var n,r=\"\",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=\"&quot;\";break;case 38:t=\"&amp;\";break;case 39:t=\"&#x27;\";break;case 60:t=\"&lt;\";break;case 62:t=\"&gt;\";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,w=Array.isArray;function C(e,t){return{insertionMode:e,selectedValue:t}}var S=new Map;function E(e,t,n){if(\"object\"!=typeof n)throw Error(i(62));for(var r in t=!0,n)if(o.call(n,r)){var a=n[r];if(null!=a&&\"boolean\"!=typeof a&&\"\"!==a){if(0===r.indexOf(\"--\")){var s=v(r);a=v((\"\"+a).trim())}else{s=r;var l=S.get(s);void 0!==l||(l=v(s.replace(y,\"-$1\").toLowerCase().replace(b,\"-ms-\")),S.set(s,l)),s=l,a=\"number\"==typeof a?0===a||o.call(g,r)?\"\"+a:a+\"px\":v((\"\"+a).trim())}t?(t=!1,e.push(' style=\"',s,\":\",a)):e.push(\";\",s,\":\",a)}}t||e.push('\"')}function x(e,t,n,r){switch(n){case\"style\":return void E(e,t,r);case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":return}if(!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])if(null!==(t=u.hasOwnProperty(n)?u[n]:null)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(\" \",n,'=\"\"');break;case 4:!0===r?e.push(\" \",n,'=\"\"'):!1!==r&&e.push(\" \",n,'=\"',v(r),'\"');break;case 5:isNaN(r)||e.push(\" \",n,'=\"',v(r),'\"');break;case 6:!isNaN(r)&&1<=r&&e.push(\" \",n,'=\"',v(r),'\"');break;default:t.sanitizeURL&&(r=\"\"+r),e.push(\" \",n,'=\"',v(r),'\"')}}else if(c(n)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(\"data-\"!==(t=n.toLowerCase().slice(0,5))&&\"aria-\"!==t)return}e.push(\" \",n,'=\"',v(r),'\"')}}function A(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if(\"object\"!=typeof t||!(\"__html\"in t))throw Error(i(61));null!=(t=t.__html)&&e.push(\"\"+t)}}function T(e,t,n,r){e.push(M(n));var i,a=n=null;for(i in t)if(o.call(t,i)){var s=t[i];if(null!=s)switch(i){case\"children\":n=s;break;case\"dangerouslySetInnerHTML\":a=s;break;default:x(e,r,i,s)}}return e.push(\">\"),A(e,a,n),\"string\"==typeof n?(e.push(v(n)),null):n}var D=/^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/,R=new Map;function M(e){var t=R.get(e);if(void 0===t){if(!D.test(e))throw Error(i(65,e));t=\"<\"+e,R.set(e,t)}return t}function O(e,t,n){if(e.push('\\x3c!--$?--\\x3e<template id=\"'),null===n)throw Error(i(395));return e.push(n),e.push('\"></template>')}var k=/[<\\u2028\\u2029]/g;function I(e){return JSON.stringify(e).replace(k,(function(e){switch(e){case\"<\":return\"\\\\u003c\";case\"\\u2028\":return\"\\\\u2028\";case\"\\u2029\":return\"\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}))}function N(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(\"\"===t?e=r:(r&&e.push(\"\\x3c!-- --\\x3e\"),e.push(v(t)),e=!0),e)}var P=Object.assign,L=Symbol.for(\"react.element\"),F=Symbol.for(\"react.portal\"),_=Symbol.for(\"react.fragment\"),z=Symbol.for(\"react.strict_mode\"),G=Symbol.for(\"react.profiler\"),V=Symbol.for(\"react.provider\"),B=Symbol.for(\"react.context\"),H=Symbol.for(\"react.forward_ref\"),j=Symbol.for(\"react.suspense\"),U=Symbol.for(\"react.suspense_list\"),W=Symbol.for(\"react.memo\"),$=Symbol.for(\"react.lazy\"),Y=Symbol.for(\"react.scope\"),K=Symbol.for(\"react.debug_trace_mode\"),q=Symbol.for(\"react.legacy_hidden\"),Q=Symbol.for(\"react.default_value\"),X=Symbol.iterator;function Z(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case _:return\"Fragment\";case F:return\"Portal\";case G:return\"Profiler\";case z:return\"StrictMode\";case j:return\"Suspense\";case U:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case B:return(e.displayName||\"Context\")+\".Consumer\";case V:return(e._context.displayName||\"Context\")+\".Provider\";case H:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case W:return null!==(t=e.displayName||null)?t:Z(e.type)||\"Memo\";case $:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}var J={};function ee(e,t){if(!(e=e.contextTypes))return J;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function oe(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?ne(e,t):oe(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?ne(e,n):ae(e,n),t.context._currentValue2=t.value}function se(e){var t=te;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?oe(t,e):ae(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context=\"object\"==typeof a&&null!==a?a._currentValue2:r,\"function\"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(n,i))?i:P({},i,a),e.state=i),\"function\"!=typeof t.getDerivedStateFromProps&&\"function\"!=typeof e.getSnapshotBeforeUpdate&&(\"function\"==typeof e.UNSAFE_componentWillMount||\"function\"==typeof e.componentWillMount))if(t=e.state,\"function\"==typeof e.componentWillMount&&e.componentWillMount(),\"function\"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s=\"function\"==typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=P({},o,s)):P(o,s))}e.state=o}else o.queue=null}var de={id:1,overflow:\"\"};function ue(e,t,n){var r=e.id;e=e.overflow;var i=32-he(r)-1;r&=~(1<<i),n+=1;var o=32-he(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-he(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(pe(e)/ge|0)|0},pe=Math.log,ge=Math.LN2,fe=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},me=null,ve=null,ye=null,be=null,we=!1,Ce=!1,Se=0,Ee=null,xe=0;function Ae(){if(null===me)throw Error(i(321));return me}function Te(){if(0<xe)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function De(){return null===be?null===ye?(we=!1,ye=be=Te()):(we=!0,be=ye):null===be.next?(we=!1,be=be.next=Te()):(we=!0,be=be.next),be}function Re(){ve=me=null,Ce=!1,ye=null,xe=0,be=Ee=null}function Me(e,t){return\"function\"==typeof t?t(e):t}function Oe(e,t,n){if(me=Ae(),be=De(),we){var r=be.queue;if(t=r.dispatch,null!==Ee&&void 0!==(n=Ee.get(r))){Ee.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===Me?\"function\"==typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Ie.bind(null,me,e),[be.memoizedState,e]}function ke(e,t){if(me=Ae(),t=void 0===t?null:t,null!==(be=De())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!fe(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Ie(e,t,n){if(25<=xe)throw Error(i(301));if(e===me)if(Ce=!0,e={action:n,next:null},null===Ee&&(Ee=new Map),void 0===(n=Ee.get(t)))Ee.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ne(){throw Error(i(394))}function Pe(){}var Le={readContext:function(e){return e._currentValue2},useContext:function(e){return Ae(),e._currentValue2},useMemo:ke,useReducer:Oe,useRef:function(e){me=Ae();var t=(be=De()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Oe(Me,e)},useInsertionEffect:Pe,useLayoutEffect:function(){},useCallback:function(e,t){return ke((function(){return e}),t)},useImperativeHandle:Pe,useEffect:Pe,useDebugValue:Pe,useDeferredValue:function(e){return Ae(),e},useTransition:function(){return Ae(),[!1,Ne]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=Fe;if(null===n)throw Error(i(404));return t=Se++,e=\":\"+n.idPrefix+\"R\"+e,0<t&&(e+=\"H\"+t.toString(32)),e+\":\"},useMutableSource:function(e,t){return Ae(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},Fe=null,_e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ze(e){return console.error(e),null}function Ge(){}function Ve(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function Be(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function He(e,t){if(null!=(e=e.onError(t))&&\"string\"!=typeof e)throw Error('onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"'+typeof e+'\" instead');return e}function je(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ue(e,t,n,r,i){for(me={},ve=t,Se=0,e=n(r,i);Ce;)Ce=!1,Se=0,xe+=1,be=null,e=n(r,i);return Re(),e}function We(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if(\"function\"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,Z(r)||\"Unknown\",l));r=P({},s,n)}t.legacyContext=r,Ke(e,t,o),t.legacyContext=s}else Ke(e,t,o)}function $e(e,t){if(e&&e.defaultProps){for(var n in t=P({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ye(e,t,n,a,s){if(\"function\"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=ee(n,t.legacyContext);var l=n.contextType;ce(l=new n(a,\"object\"==typeof l&&null!==l?l._currentValue2:s),n,a,s),We(e,t,l,n)}else{s=Ue(e,t,n,a,l=ee(n,t.legacyContext));var d=0!==Se;if(\"object\"==typeof s&&null!==s&&\"function\"==typeof s.render&&void 0===s.$$typeof)ce(s,n,a,l),We(e,t,s,n);else if(d){a=t.treeContext,t.treeContext=ue(a,1,0);try{Ke(e,t,s)}finally{t.treeContext=a}}else Ke(e,t,s)}else{if(\"string\"!=typeof n){switch(n){case q:case K:case z:case G:case _:case U:return void Ke(e,t,a.children);case Y:throw Error(i(343));case j:e:{n=t.blockedBoundary,s=t.blockedSegment,l=a.fallback,a=a.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d=new Set,errorDigest:null},h=Be(0,s.chunks.length,u,s.formatContext,!1,!1);s.children.push(h),s.lastPushedText=!1;var p=Be(0,0,null,s.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=p;try{if(Qe(e,t,a),e.responseState.generateStaticMarkup||p.lastPushedText&&p.textEmbedded&&p.chunks.push(\"\\x3c!-- --\\x3e\"),p.status=1,Je(u,p),0===u.pendingTasks)break e}catch(t){p.status=4,u.forceClientRender=!0,u.errorDigest=He(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=Ve(e,l,n,h,d,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(\"object\"==typeof n&&null!==n)switch(n.$$typeof){case H:if(a=Ue(e,t,n.render,a,s),0!==Se){n=t.treeContext,t.treeContext=ue(n,1,0);try{Ke(e,t,a)}finally{t.treeContext=n}}else Ke(e,t,a);return;case W:return void Ye(e,t,n=n.type,a=$e(n,a),s);case V:if(s=a.children,n=n._context,a=a.value,l=n._currentValue2,n._currentValue2=a,te=a={parent:d=te,depth:null===d?0:d.depth+1,context:n,parentValue:l,value:a},t.context=a,Ke(e,t,s),null===(e=te))throw Error(i(403));return a=e.parentValue,e.context._currentValue2=a===Q?e.context._defaultValue:a,e=te=e.parent,void(t.context=e);case B:return void Ke(e,t,a=(a=a.children)(n._currentValue2));case $:return void Ye(e,t,n=(s=n._init)(n._payload),a=$e(n,a),void 0)}throw Error(i(130,null==n?n:typeof n,\"\"))}switch(l=function(e,t,n,a,s){switch(t){case\"select\":e.push(M(\"select\"));var l=null,d=null;for(g in n)if(o.call(n,g)){var u=n[g];if(null!=u)switch(g){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":d=u;break;case\"defaultValue\":case\"value\":break;default:x(e,a,g,u)}}return e.push(\">\"),A(e,d,l),l;case\"option\":d=s.selectedValue,e.push(M(\"option\"));var h=u=null,p=null,g=null;for(l in n)if(o.call(n,l)){var f=n[l];if(null!=f)switch(l){case\"children\":u=f;break;case\"selected\":p=f;break;case\"dangerouslySetInnerHTML\":g=f;break;case\"value\":h=f;default:x(e,a,l,f)}}if(null!=d)if(n=null!==h?\"\"+h:function(e){var t=\"\";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),w(d)){for(a=0;a<d.length;a++)if(\"\"+d[a]===n){e.push(' selected=\"\"');break}}else\"\"+d===n&&e.push(' selected=\"\"');else p&&e.push(' selected=\"\"');return e.push(\">\"),A(e,g,u),u;case\"textarea\":for(u in e.push(M(\"textarea\")),g=d=l=null,n)if(o.call(n,u)&&null!=(h=n[u]))switch(u){case\"children\":g=h;break;case\"value\":l=h;break;case\"defaultValue\":d=h;break;case\"dangerouslySetInnerHTML\":throw Error(i(91));default:x(e,a,u,h)}if(null===l&&null!==d&&(l=d),e.push(\">\"),null!=g){if(null!=l)throw Error(i(92));if(w(g)&&1<g.length)throw Error(i(93));l=\"\"+g}return\"string\"==typeof l&&\"\\n\"===l[0]&&e.push(\"\\n\"),null!==l&&e.push(v(\"\"+l)),null;case\"input\":for(d in e.push(M(\"input\")),h=g=u=l=null,n)if(o.call(n,d)&&null!=(p=n[d]))switch(d){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(399,\"input\"));case\"defaultChecked\":h=p;break;case\"defaultValue\":u=p;break;case\"checked\":g=p;break;case\"value\":l=p;break;default:x(e,a,d,p)}return null!==g?x(e,a,\"checked\",g):null!==h&&x(e,a,\"checked\",h),null!==l?x(e,a,\"value\",l):null!==u&&x(e,a,\"value\",u),e.push(\"/>\"),null;case\"menuitem\":for(var m in e.push(M(\"menuitem\")),n)if(o.call(n,m)&&null!=(l=n[m]))switch(m){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(400));default:x(e,a,m,l)}return e.push(\">\"),null;case\"title\":for(f in e.push(M(\"title\")),l=null,n)if(o.call(n,f)&&null!=(d=n[f]))switch(f){case\"children\":l=d;break;case\"dangerouslySetInnerHTML\":throw Error(i(434));default:x(e,a,f,d)}return e.push(\">\"),l;case\"listing\":case\"pre\":for(h in e.push(M(t)),d=l=null,n)if(o.call(n,h)&&null!=(u=n[h]))switch(h){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":d=u;break;default:x(e,a,h,u)}if(e.push(\">\"),null!=d){if(null!=l)throw Error(i(60));if(\"object\"!=typeof d||!(\"__html\"in d))throw Error(i(61));null!=(n=d.__html)&&(\"string\"==typeof n&&0<n.length&&\"\\n\"===n[0]?e.push(\"\\n\",n):e.push(\"\"+n))}return\"string\"==typeof l&&\"\\n\"===l[0]&&e.push(\"\\n\"),l;case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":for(var y in e.push(M(t)),n)if(o.call(n,y)&&null!=(l=n[y]))switch(y){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(399,t));default:x(e,a,y,l)}return e.push(\"/>\"),null;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 T(e,n,t,a);case\"html\":return 0===s.insertionMode&&e.push(\"<!DOCTYPE html>\"),T(e,n,t,a);default:if(-1===t.indexOf(\"-\")&&\"string\"!=typeof n.is)return T(e,n,t,a);for(p in e.push(M(t)),d=l=null,n)if(o.call(n,p)&&null!=(u=n[p]))switch(p){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":d=u;break;case\"style\":E(e,a,u);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":break;default:c(p)&&\"function\"!=typeof u&&\"symbol\"!=typeof u&&e.push(\" \",p,'=\"',v(u),'\"')}return e.push(\">\"),A(e,d,l),l}}((s=t.blockedSegment).chunks,n,a,e.responseState,s.formatContext),s.lastPushedText=!1,d=s.formatContext,s.formatContext=function(e,t,n){switch(t){case\"select\":return C(1,null!=n.value?n.value:n.defaultValue);case\"svg\":return C(2,null);case\"math\":return C(3,null);case\"foreignObject\":return C(1,null);case\"table\":return C(4,null);case\"thead\":case\"tbody\":case\"tfoot\":return C(5,null);case\"colgroup\":return C(7,null);case\"tr\":return C(6,null)}return 4<=e.insertionMode||0===e.insertionMode?C(1,null):e}(d,n,a),Qe(e,t,l),s.formatContext=d,n){case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break;default:s.chunks.push(\"</\",n,\">\")}s.lastPushedText=!1}}function Ke(e,t,n){if(t.node=n,\"object\"==typeof n&&null!==n){switch(n.$$typeof){case L:return void Ye(e,t,n.type,n.props,n.ref);case F:throw Error(i(257));case $:var r=n._init;return void Ke(e,t,n=r(n._payload))}if(w(n))return void qe(e,t,n);if((r=null===n||\"object\"!=typeof n?null:\"function\"==typeof(r=X&&n[X]||n[\"@@iterator\"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);qe(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}\"string\"==typeof n?(r=t.blockedSegment).lastPushedText=N(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):\"number\"==typeof n&&((r=t.blockedSegment).lastPushedText=N(t.blockedSegment.chunks,\"\"+n,e.responseState,r.lastPushedText))}function qe(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=ue(o,r,i);try{Qe(e,t,n[i])}finally{t.treeContext=o}}}function Qe(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ke(e,t,n)}catch(l){if(Re(),\"object\"!=typeof l||null===l||\"function\"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,se(o),l;n=l;var a=t.blockedSegment,s=Be(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ve(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,se(o)}}function Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Ze(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Ze(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Je(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Je(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Ge,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Je(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Xe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Je(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=_e.current;_e.current=Le;var r=Fe;Fe=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){se(a.context);try{Ke(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push(\"\\x3c!-- --\\x3e\"),a.abortSet.delete(a),l.status=1,et(s,a.blockedBoundary,l)}catch(e){if(Re(),\"object\"==typeof e&&null!==e&&\"function\"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var d=a.blockedBoundary,u=e,h=He(s,u);null===d?je(s,u):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=h,d.parentFlushed&&s.clientRenderedBoundaries.push(d))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&st(e,e.destination)}catch(t){He(e,t),je(e,t)}finally{Fe=r,_e.current=n,n===Le&&se(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id=\"'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('\"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];a<o.index;a++)t.push(r[a]);o=rt(e,t,o)}for(;a<r.length-1;a++)t.push(r[a]);return a<r.length&&(o=t.push(r[a])),o;default:throw Error(i(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push(\"\\x3c!--$!--\\x3e\"),t.push(\"<template\"),r&&(t.push(' data-dgst=\"'),r=v(r),t.push(r),t.push('\"')),t.push(\"></template>\")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push(\"\\x3c!--/$--\\x3e\");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),r=r.id=o,O(t,e.responseState,r),nt(e,t,n),t.push(\"\\x3c!--/$--\\x3e\")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),O(t,e.responseState,r.id),nt(e,t,n),t.push(\"\\x3c!--/$--\\x3e\");if(e.responseState.generateStaticMarkup||t.push(\"\\x3c!--$--\\x3e\"),1!==(n=r.completedSegments).length)throw Error(i(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push(\"\\x3c!--/$--\\x3e\")}function it(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 2:return e.push('<svg aria-hidden=\"true\" style=\"display:none\" id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 3:return e.push('<math aria-hidden=\"true\" style=\"display:none\" id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 4:return e.push('<table hidden id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 5:return e.push('<table hidden><tbody id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 6:return e.push('<table hidden><tr id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 7:return e.push('<table hidden><colgroup id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push(\"</div>\");case 2:return e.push(\"</svg>\");case 3:return e.push(\"</math>\");case 4:return e.push(\"</table>\");case 5:return e.push(\"</tbody></table>\");case 6:return e.push(\"</tr></table>\");case 7:return e.push(\"</colgroup></table>\");default:throw Error(i(397))}}(t,n.formatContext)}function ot(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)at(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC(\"'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\"')),null===r)throw Error(i(395));return n=n.toString(16),t.push(r),t.push('\",\"'),t.push(e.segmentPrefix),t.push(n),t.push('\")<\\/script>')}function at(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return it(e,t,r)}return it(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS(\"'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('\",\"'),t.push(e.placeholderPrefix),t.push(o),t.push('\")<\\/script>')}function st(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];r=t;var l=e.responseState,c=s.id,d=s.errorDigest,u=s.errorMessage,h=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX(\"'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\"')),null===c)throw Error(i(395));if(r.push(c),r.push('\"'),d||u||h){r.push(\",\");var p=I(d||\"\");r.push(p)}if(u||h){r.push(\",\");var g=I(u||\"\");r.push(g)}if(h){r.push(\",\");var f=I(h);r.push(f)}if(!r.push(\")<\\/script>\"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)if(!ot(e,t,m[o]))return e.destination=null,o++,void m.splice(0,o);m.splice(0,o);var v=e.partialBoundaries;for(o=0;o<v.length;o++){var y=v[o];e:{a=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!at(a,s,y,b[l])){l++,b.splice(0,l);var w=!1;break e}b.splice(0,l),w=!0}if(!w)return e.destination=null,o++,void v.splice(0,o)}v.splice(0,o);var C=e.completedBoundaries;for(o=0;o<C.length;o++)if(!ot(e,t,C[o]))return e.destination=null,o++,void C.splice(0,o);C.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Ze(n,e,t)})),n.clear(),null!==e.destination&&st(e,e.destination)}catch(t){He(e,t),je(e,t)}}function ct(){}function dt(e,t,n,r){var o=!1,a=null,s=\"\",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},c=!1;if(e=function(e,t,n,r,i,o,a,s,l){var c=[],d=new Set;return(n=Be(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:d,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?ze:i,onAllReady:Ge,onShellReady:void 0===a?Ge:a,onShellError:Ge,onFatalError:Ge},0,null,n,!1,!1)).parentFlushed=!0,e=Ve(t,e,null,n,d,J,null,de),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:\"<script>\",placeholderPrefix:(t=void 0===t?\"\":t)+\"P:\",segmentPrefix:t+\"S:\",boundaryPrefix:t+\"B:\",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,(function(){c=!0})),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{st(e,l)}catch(t){He(e,t),je(e,t)}}if(o)throw a;if(!c)throw Error(i(426));return s}t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server')},t.version=\"18.2.0\"},2911:(e,t,n)=>{\"use strict\";var r=n(9094);function i(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var o=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=new Uint8Array(512),a=0),e.enqueue(t);else{var n=o.length-a;n<t.length&&(0===n?e.enqueue(o):(o.set(t.subarray(0,n),a),e.enqueue(o),t=t.subarray(n)),o=new Uint8Array(512),a=0),o.set(t,a),a+=t.length}}function l(e,t){return s(e,t),!0}function c(e){o&&0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=null,a=0)}var d=new TextEncoder;function u(e){return d.encode(e)}function h(e){return d.encode(e)}function p(e,t){\"function\"==typeof e.error?e.error(t):e.close()}var g=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},v={};function y(e){return!!g.call(v,e)||!g.call(m,e)&&(f.test(e)?v[e]=!0:(m[e]=!0,!1))}function b(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var w={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach((function(e){w[e]=new b(e,0,!1,e,null,!1,!1)})),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach((function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)})),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach((function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach((function(e){w[e]=new b(e,2,!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\".split(\" \").forEach((function(e){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach((function(e){w[e]=new b(e,3,!0,e,null,!1,!1)})),[\"capture\",\"download\"].forEach((function(e){w[e]=new b(e,4,!1,e,null,!1,!1)})),[\"cols\",\"rows\",\"size\",\"span\"].forEach((function(e){w[e]=new b(e,6,!1,e,null,!1,!1)})),[\"rowSpan\",\"start\"].forEach((function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var C=/[\\-:]([a-z])/g;function S(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\".split(\" \").forEach((function(e){var t=e.replace(C,S);w[t]=new b(t,1,!1,e,null,!1,!1)})),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach((function(e){var t=e.replace(C,S);w[t]=new b(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)})),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach((function(e){var t=e.replace(C,S);w[t]=new b(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)})),[\"tabIndex\",\"crossOrigin\"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new b(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach((function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={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},x=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(E).forEach((function(e){x.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var A=/[\"'&<>]/;function T(e){if(\"boolean\"==typeof e||\"number\"==typeof e)return\"\"+e;e=\"\"+e;var t=A.exec(e);if(t){var n,r=\"\",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=\"&quot;\";break;case 38:t=\"&amp;\";break;case 39:t=\"&#x27;\";break;case 60:t=\"&lt;\";break;case 62:t=\"&gt;\";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var D=/([A-Z])/g,R=/^ms-/,M=Array.isArray,O=h(\"<script>\"),k=h(\"<\\/script>\"),I=h('<script src=\"'),N=h('<script type=\"module\" src=\"'),P=h('\" async=\"\"><\\/script>'),L=/(<\\/|<)(s)(cript)/gi;function F(e,t,n,r){return t+(\"s\"===n?\"\\\\u0073\":\"\\\\u0053\")+r}function _(e,t){return{insertionMode:e,selectedValue:t}}var z=h(\"\\x3c!-- --\\x3e\");function G(e,t,n,r){return\"\"===t?r:(r&&e.push(z),e.push(u(T(t))),!0)}var V=new Map,B=h(' style=\"'),H=h(\":\"),j=h(\";\");function U(e,t,n){if(\"object\"!=typeof n)throw Error(i(62));for(var r in t=!0,n)if(g.call(n,r)){var o=n[r];if(null!=o&&\"boolean\"!=typeof o&&\"\"!==o){if(0===r.indexOf(\"--\")){var a=u(T(r));o=u(T((\"\"+o).trim()))}else{a=r;var s=V.get(a);void 0!==s||(s=h(T(a.replace(D,\"-$1\").toLowerCase().replace(R,\"-ms-\"))),V.set(a,s)),a=s,o=\"number\"==typeof o?0===o||g.call(E,r)?u(\"\"+o):u(o+\"px\"):u(T((\"\"+o).trim()))}t?(t=!1,e.push(B,a,H,o)):e.push(j,a,H,o)}}t||e.push(Y)}var W=h(\" \"),$=h('=\"'),Y=h('\"'),K=h('=\"\"');function q(e,t,n,r){switch(n){case\"style\":return void U(e,t,r);case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":return}if(!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(!t.acceptsBooleans)return}switch(n=u(t.attributeName),t.type){case 3:r&&e.push(W,n,K);break;case 4:!0===r?e.push(W,n,K):!1!==r&&e.push(W,n,$,u(T(r)),Y);break;case 5:isNaN(r)||e.push(W,n,$,u(T(r)),Y);break;case 6:!isNaN(r)&&1<=r&&e.push(W,n,$,u(T(r)),Y);break;default:t.sanitizeURL&&(r=\"\"+r),e.push(W,n,$,u(T(r)),Y)}}else if(y(n)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(\"data-\"!==(t=n.toLowerCase().slice(0,5))&&\"aria-\"!==t)return}e.push(W,u(n),$,u(T(r)),Y)}}var Q=h(\">\"),X=h(\"/>\");function Z(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if(\"object\"!=typeof t||!(\"__html\"in t))throw Error(i(61));null!=(t=t.__html)&&e.push(u(\"\"+t))}}var J=h(' selected=\"\"');function ee(e,t,n,r){e.push(ie(n));var i,o=n=null;for(i in t)if(g.call(t,i)){var a=t[i];if(null!=a)switch(i){case\"children\":n=a;break;case\"dangerouslySetInnerHTML\":o=a;break;default:q(e,r,i,a)}}return e.push(Q),Z(e,o,n),\"string\"==typeof n?(e.push(u(T(n))),null):n}var te=h(\"\\n\"),ne=/^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/,re=new Map;function ie(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(i(65,e));t=h(\"<\"+e),re.set(e,t)}return t}var oe=h(\"<!DOCTYPE html>\");var ae=h(\"</\"),se=h(\">\"),le=h('<template id=\"'),ce=h('\"></template>'),de=h(\"\\x3c!--$--\\x3e\"),ue=h('\\x3c!--$?--\\x3e<template id=\"'),he=h('\"></template>'),pe=h(\"\\x3c!--$!--\\x3e\"),ge=h(\"\\x3c!--/$--\\x3e\"),fe=h(\"<template\"),me=h('\"'),ve=h(' data-dgst=\"');h(' data-msg=\"'),h(' data-stck=\"');var ye=h(\"></template>\");function be(e,t,n){if(s(e,ue),null===n)throw Error(i(395));return s(e,n),l(e,he)}var we=h('<div hidden id=\"'),Ce=h('\">'),Se=h(\"</div>\"),Ee=h('<svg aria-hidden=\"true\" style=\"display:none\" id=\"'),xe=h('\">'),Ae=h(\"</svg>\"),Te=h('<math aria-hidden=\"true\" style=\"display:none\" id=\"'),De=h('\">'),Re=h(\"</math>\"),Me=h('<table hidden id=\"'),Oe=h('\">'),ke=h(\"</table>\"),Ie=h('<table hidden><tbody id=\"'),Ne=h('\">'),Pe=h(\"</tbody></table>\"),Le=h('<table hidden><tr id=\"'),Fe=h('\">'),_e=h(\"</tr></table>\"),ze=h('<table hidden><colgroup id=\"'),Ge=h('\">'),Ve=h(\"</colgroup></table>\"),Be=h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"'),He=h('$RS(\"'),je=h('\",\"'),Ue=h('\")<\\/script>'),We=h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\"'),$e=h('$RC(\"'),Ye=h('\",\"'),Ke=h('\")<\\/script>'),qe=h('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\"'),Qe=h('$RX(\"'),Xe=h('\"'),Ze=h(\")<\\/script>\"),Je=h(\",\"),et=/[<\\u2028\\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case\"<\":return\"\\\\u003c\";case\"\\u2028\":return\"\\\\u2028\";case\"\\u2029\":return\"\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}))}var nt=Object.assign,rt=Symbol.for(\"react.element\"),it=Symbol.for(\"react.portal\"),ot=Symbol.for(\"react.fragment\"),at=Symbol.for(\"react.strict_mode\"),st=Symbol.for(\"react.profiler\"),lt=Symbol.for(\"react.provider\"),ct=Symbol.for(\"react.context\"),dt=Symbol.for(\"react.forward_ref\"),ut=Symbol.for(\"react.suspense\"),ht=Symbol.for(\"react.suspense_list\"),pt=Symbol.for(\"react.memo\"),gt=Symbol.for(\"react.lazy\"),ft=Symbol.for(\"react.scope\"),mt=Symbol.for(\"react.debug_trace_mode\"),vt=Symbol.for(\"react.legacy_hidden\"),yt=Symbol.for(\"react.default_value\"),bt=Symbol.iterator;function wt(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case ot:return\"Fragment\";case it:return\"Portal\";case st:return\"Profiler\";case at:return\"StrictMode\";case ut:return\"Suspense\";case ht:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||\"Context\")+\".Consumer\";case lt:return(e._context.displayName||\"Context\")+\".Provider\";case dt:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case pt:return null!==(t=e.displayName||null)?t:wt(e.type)||\"Memo\";case gt:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var Ct={};function St(e,t){if(!(e=e.contextTypes))return Ct;var n,r={};for(n in e)r[n]=t[n];return r}var Et=null;function xt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));xt(e,n)}t.context._currentValue=t.value}}function At(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&At(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function Dt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?xt(e,t):Dt(e,t)}function Rt(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?xt(e,n):Rt(e,n),t.context._currentValue=t.value}function Mt(e){var t=Et;t!==e&&(null===t?Tt(e):null===e?At(t):t.depth===e.depth?xt(t,e):t.depth>e.depth?Dt(t,e):Rt(t,e),Et=e)}var Ot={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function kt(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=Ot,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context=\"object\"==typeof a&&null!==a?a._currentValue:r,\"function\"==typeof(a=t.getDerivedStateFromProps)&&(i=null==(a=a(n,i))?i:nt({},i,a),e.state=i),\"function\"!=typeof t.getDerivedStateFromProps&&\"function\"!=typeof e.getSnapshotBeforeUpdate&&(\"function\"==typeof e.UNSAFE_componentWillMount||\"function\"==typeof e.componentWillMount))if(t=e.state,\"function\"==typeof e.componentWillMount&&e.componentWillMount(),\"function\"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Ot.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s=\"function\"==typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=nt({},o,s)):nt(o,s))}e.state=o}else o.queue=null}var It={id:1,overflow:\"\"};function Nt(e,t,n){var r=e.id;e=e.overflow;var i=32-Pt(r)-1;r&=~(1<<i),n+=1;var o=32-Pt(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-Pt(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var Pt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Lt(e)/Ft|0)|0},Lt=Math.log,Ft=Math.LN2,_t=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zt=null,Gt=null,Vt=null,Bt=null,Ht=!1,jt=!1,Ut=0,Wt=null,$t=0;function Yt(){if(null===zt)throw Error(i(321));return zt}function Kt(){if(0<$t)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function qt(){return null===Bt?null===Vt?(Ht=!1,Vt=Bt=Kt()):(Ht=!0,Bt=Vt):null===Bt.next?(Ht=!1,Bt=Bt.next=Kt()):(Ht=!0,Bt=Bt.next),Bt}function Qt(){Gt=zt=null,jt=!1,Vt=null,$t=0,Bt=Wt=null}function Xt(e,t){return\"function\"==typeof t?t(e):t}function Zt(e,t,n){if(zt=Yt(),Bt=qt(),Ht){var r=Bt.queue;if(t=r.dispatch,null!==Wt&&void 0!==(n=Wt.get(r))){Wt.delete(r),r=Bt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Bt.memoizedState=r,[r,t]}return[Bt.memoizedState,t]}return e=e===Xt?\"function\"==typeof t?t():t:void 0!==n?n(t):t,Bt.memoizedState=e,e=(e=Bt.queue={last:null,dispatch:null}).dispatch=en.bind(null,zt,e),[Bt.memoizedState,e]}function Jt(e,t){if(zt=Yt(),t=void 0===t?null:t,null!==(Bt=qt())){var n=Bt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!_t(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Bt.memoizedState=[e,t],e}function en(e,t,n){if(25<=$t)throw Error(i(301));if(e===zt)if(jt=!0,e={action:n,next:null},null===Wt&&(Wt=new Map),void 0===(n=Wt.get(t)))Wt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(i(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Yt(),e._currentValue},useMemo:Jt,useReducer:Zt,useRef:function(e){zt=Yt();var t=(Bt=qt()).memoizedState;return null===t?(e={current:e},Bt.memoizedState=e):t},useState:function(e){return Zt(Xt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Jt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Yt(),e},useTransition:function(){return Yt(),[!1,tn]},useId:function(){var e=Gt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Pt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(i(404));return t=Ut++,e=\":\"+n.idPrefix+\"R\"+e,0<t&&(e+=\"H\"+t.toString(32)),e+\":\"},useMutableSource:function(e,t){return Yt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&xn(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function dn(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function un(e,t){if(null!=(e=e.onError(t))&&\"string\"!=typeof e)throw Error('onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"'+typeof e+'\" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function pn(e,t,n,r,i){for(zt={},Gt=t,Ut=0,e=n(r,i);jt;)jt=!1,Ut=0,$t+=1,Bt=null,e=n(r,i);return Qt(),e}function gn(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if(\"function\"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,wt(r)||\"Unknown\",l));r=nt({},s,n)}t.legacyContext=r,vn(e,t,o),t.legacyContext=s}else vn(e,t,o)}function fn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function mn(e,t,n,o,a){if(\"function\"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=St(n,t.legacyContext);var s=n.contextType;kt(s=new n(o,\"object\"==typeof s&&null!==s?s._currentValue:a),n,o,a),gn(e,t,s,n)}else{a=pn(e,t,n,o,s=St(n,t.legacyContext));var l=0!==Ut;if(\"object\"==typeof a&&null!==a&&\"function\"==typeof a.render&&void 0===a.$$typeof)kt(a,n,o,s),gn(e,t,a,n);else if(l){o=t.treeContext,t.treeContext=Nt(o,1,0);try{vn(e,t,a)}finally{t.treeContext=o}}else vn(e,t,a)}else{if(\"string\"!=typeof n){switch(n){case vt:case mt:case at:case st:case ot:case ht:return void vn(e,t,o.children);case ft:throw Error(i(343));case ut:e:{n=t.blockedBoundary,a=t.blockedSegment,s=o.fallback,o=o.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},d=dn(0,a.chunks.length,c,a.formatContext,!1,!1);a.children.push(d),a.lastPushedText=!1;var h=dn(0,0,null,a.formatContext,!1,!1);h.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=h;try{if(bn(e,t,o),h.lastPushedText&&h.textEmbedded&&h.chunks.push(z),h.status=1,Sn(c,h),0===c.pendingTasks)break e}catch(t){h.status=4,c.forceClientRender=!0,c.errorDigest=un(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=cn(e,s,n,d,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(\"object\"==typeof n&&null!==n)switch(n.$$typeof){case dt:if(o=pn(e,t,n.render,o,a),0!==Ut){n=t.treeContext,t.treeContext=Nt(n,1,0);try{vn(e,t,o)}finally{t.treeContext=n}}else vn(e,t,o);return;case pt:return void mn(e,t,n=n.type,o=fn(n,o),a);case lt:if(a=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,Et=o={parent:l=Et,depth:null===l?0:l.depth+1,context:n,parentValue:s,value:o},t.context=o,vn(e,t,a),null===(e=Et))throw Error(i(403));return o=e.parentValue,e.context._currentValue=o===yt?e.context._defaultValue:o,e=Et=e.parent,void(t.context=e);case ct:return void vn(e,t,o=(o=o.children)(n._currentValue));case gt:return void mn(e,t,n=(a=n._init)(n._payload),o=fn(n,o),void 0)}throw Error(i(130,null==n?n:typeof n,\"\"))}switch(s=function(e,t,n,o,a){switch(t){case\"select\":e.push(ie(\"select\"));var s=null,l=null;for(p in n)if(g.call(n,p)){var c=n[p];if(null!=c)switch(p){case\"children\":s=c;break;case\"dangerouslySetInnerHTML\":l=c;break;case\"defaultValue\":case\"value\":break;default:q(e,o,p,c)}}return e.push(Q),Z(e,l,s),s;case\"option\":l=a.selectedValue,e.push(ie(\"option\"));var d=c=null,h=null,p=null;for(s in n)if(g.call(n,s)){var f=n[s];if(null!=f)switch(s){case\"children\":c=f;break;case\"selected\":h=f;break;case\"dangerouslySetInnerHTML\":p=f;break;case\"value\":d=f;default:q(e,o,s,f)}}if(null!=l)if(n=null!==d?\"\"+d:function(e){var t=\"\";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),M(l)){for(o=0;o<l.length;o++)if(\"\"+l[o]===n){e.push(J);break}}else\"\"+l===n&&e.push(J);else h&&e.push(J);return e.push(Q),Z(e,p,c),c;case\"textarea\":for(c in e.push(ie(\"textarea\")),p=l=s=null,n)if(g.call(n,c)&&null!=(d=n[c]))switch(c){case\"children\":p=d;break;case\"value\":s=d;break;case\"defaultValue\":l=d;break;case\"dangerouslySetInnerHTML\":throw Error(i(91));default:q(e,o,c,d)}if(null===s&&null!==l&&(s=l),e.push(Q),null!=p){if(null!=s)throw Error(i(92));if(M(p)&&1<p.length)throw Error(i(93));s=\"\"+p}return\"string\"==typeof s&&\"\\n\"===s[0]&&e.push(te),null!==s&&e.push(u(T(\"\"+s))),null;case\"input\":for(l in e.push(ie(\"input\")),d=p=c=s=null,n)if(g.call(n,l)&&null!=(h=n[l]))switch(l){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(399,\"input\"));case\"defaultChecked\":d=h;break;case\"defaultValue\":c=h;break;case\"checked\":p=h;break;case\"value\":s=h;break;default:q(e,o,l,h)}return null!==p?q(e,o,\"checked\",p):null!==d&&q(e,o,\"checked\",d),null!==s?q(e,o,\"value\",s):null!==c&&q(e,o,\"value\",c),e.push(X),null;case\"menuitem\":for(var m in e.push(ie(\"menuitem\")),n)if(g.call(n,m)&&null!=(s=n[m]))switch(m){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(400));default:q(e,o,m,s)}return e.push(Q),null;case\"title\":for(f in e.push(ie(\"title\")),s=null,n)if(g.call(n,f)&&null!=(l=n[f]))switch(f){case\"children\":s=l;break;case\"dangerouslySetInnerHTML\":throw Error(i(434));default:q(e,o,f,l)}return e.push(Q),s;case\"listing\":case\"pre\":for(d in e.push(ie(t)),l=s=null,n)if(g.call(n,d)&&null!=(c=n[d]))switch(d){case\"children\":s=c;break;case\"dangerouslySetInnerHTML\":l=c;break;default:q(e,o,d,c)}if(e.push(Q),null!=l){if(null!=s)throw Error(i(60));if(\"object\"!=typeof l||!(\"__html\"in l))throw Error(i(61));null!=(n=l.__html)&&(\"string\"==typeof n&&0<n.length&&\"\\n\"===n[0]?e.push(te,u(n)):e.push(u(\"\"+n)))}return\"string\"==typeof s&&\"\\n\"===s[0]&&e.push(te),s;case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":for(var v in e.push(ie(t)),n)if(g.call(n,v)&&null!=(s=n[v]))switch(v){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(i(399,t));default:q(e,o,v,s)}return e.push(X),null;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 ee(e,n,t,o);case\"html\":return 0===a.insertionMode&&e.push(oe),ee(e,n,t,o);default:if(-1===t.indexOf(\"-\")&&\"string\"!=typeof n.is)return ee(e,n,t,o);for(h in e.push(ie(t)),l=s=null,n)if(g.call(n,h)&&null!=(c=n[h]))switch(h){case\"children\":s=c;break;case\"dangerouslySetInnerHTML\":l=c;break;case\"style\":U(e,o,c);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":break;default:y(h)&&\"function\"!=typeof c&&\"symbol\"!=typeof c&&e.push(W,u(h),$,u(T(c)),Y)}return e.push(Q),Z(e,l,s),s}}((a=t.blockedSegment).chunks,n,o,e.responseState,a.formatContext),a.lastPushedText=!1,l=a.formatContext,a.formatContext=function(e,t,n){switch(t){case\"select\":return _(1,null!=n.value?n.value:n.defaultValue);case\"svg\":return _(2,null);case\"math\":return _(3,null);case\"foreignObject\":return _(1,null);case\"table\":return _(4,null);case\"thead\":case\"tbody\":case\"tfoot\":return _(5,null);case\"colgroup\":return _(7,null);case\"tr\":return _(6,null)}return 4<=e.insertionMode||0===e.insertionMode?_(1,null):e}(l,n,o),bn(e,t,s),a.formatContext=l,n){case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break;default:a.chunks.push(ae,u(n),se)}a.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,\"object\"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void mn(e,t,n.type,n.props,n.ref);case it:throw Error(i(257));case gt:var r=n._init;return void vn(e,t,n=r(n._payload))}if(M(n))return void yn(e,t,n);if((r=null===n||\"object\"!=typeof n?null:\"function\"==typeof(r=bt&&n[bt]||n[\"@@iterator\"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);yn(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}\"string\"==typeof n?(r=t.blockedSegment).lastPushedText=G(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):\"number\"==typeof n&&((r=t.blockedSegment).lastPushedText=G(t.blockedSegment.chunks,\"\"+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Nt(o,r,i);try{bn(e,t,n[i])}finally{t.treeContext=o}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return vn(e,t,n)}catch(l){if(Qt(),\"object\"!=typeof l||null===l||\"function\"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Mt(o),l;n=l;var a=t.blockedSegment,s=dn(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,Mt(o)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,En(this,t,e)}function Cn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Cn(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Sn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Sn(e,n)}else e.completedSegments.push(t)}function En(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Sn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Sn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function xn(e){if(2!==e.status){var t=Et,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){Mt(a.context);try{vn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(z),a.abortSet.delete(a),l.status=1,En(s,a.blockedBoundary,l)}catch(e){if(Qt(),\"object\"==typeof e&&null!==e&&\"function\"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var d=a.blockedBoundary,u=e,h=un(s,u);null===d?hn(s,u):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=h,d.parentFlushed&&s.clientRenderedBoundaries.push(d))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&On(e,e.destination)}catch(t){un(e,t),hn(e,t)}finally{on=r,an.current=n,n===rn&&Mt(t)}}}function An(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=u(r.toString(16))),l(t,ce);case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var c=0;c<n.length;c++){for(o=n[c];a<o.index;a++)s(t,r[a]);o=Tn(e,t,o)}for(;a<r.length-1;a++)s(t,r[a]);return a<r.length&&(o=l(t,r[a])),o;default:throw Error(i(390))}}function Tn(e,t,n){var r=n.boundary;if(null===r)return An(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,pe),s(t,fe),r&&(s(t,ve),s(t,u(T(r))),s(t,me)),l(t,ye),An(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;o=h(o.boundaryPrefix+a.toString(16)),r=r.id=o,be(t,e.responseState,r),An(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),An(e,t,n);else{if(l(t,de),1!==(n=r.completedSegments).length)throw Error(i(391));Tn(e,t,n[0])}return l(t,ge)}function Dn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,Ce);case 2:return s(e,Ee),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,xe);case 3:return s(e,Te),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,De);case 4:return s(e,Me),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,Oe);case 5:return s(e,Ie),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,Ne);case 6:return s(e,Le),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,Fe);case 7:return s(e,ze),s(e,t.segmentPrefix),s(e,u(r.toString(16))),l(e,Ge);default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Se);case 2:return l(e,Ae);case 3:return l(e,Re);case 4:return l(e,ke);case 5:return l(e,Pe);case 6:return l(e,_e);case 7:return l(e,Ve);default:throw Error(i(397))}}(t,n.formatContext)}function Rn(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)Mn(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,$e):(e.sentCompleteBoundaryFunction=!0,s(t,We)),null===r)throw Error(i(395));return n=u(n.toString(16)),s(t,r),s(t,Ye),s(t,e.segmentPrefix),s(t,n),l(t,Ke)}function Mn(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return Dn(e,t,r)}return Dn(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,He):(e.sentCompleteSegmentFunction=!0,s(t,Be)),s(t,e.segmentPrefix),s(t,o=u(o.toString(16))),s(t,je),s(t,e.placeholderPrefix),s(t,o),l(t,Ue)}function On(e,t){o=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var d,h=e.clientRenderedBoundaries;for(d=0;d<h.length;d++){var p=h[d];r=t;var g=e.responseState,f=p.id,m=p.errorDigest,v=p.errorMessage,y=p.errorComponentStack;if(s(r,g.startInlineScript),g.sentClientRenderFunction?s(r,Qe):(g.sentClientRenderFunction=!0,s(r,qe)),null===f)throw Error(i(395));if(s(r,f),s(r,Xe),(m||v||y)&&(s(r,Je),s(r,u(tt(m||\"\")))),(v||y)&&(s(r,Je),s(r,u(tt(v||\"\")))),y&&(s(r,Je),s(r,u(tt(y)))),!l(r,Ze))return e.destination=null,d++,void h.splice(0,d)}h.splice(0,d);var b=e.completedBoundaries;for(d=0;d<b.length;d++)if(!Rn(e,t,b[d]))return e.destination=null,d++,void b.splice(0,d);b.splice(0,d),c(t),o=new Uint8Array(512),a=0;var w=e.partialBoundaries;for(d=0;d<w.length;d++){var C=w[d];e:{h=e,p=t;var S=C.completedSegments;for(g=0;g<S.length;g++)if(!Mn(h,p,C,S[g])){g++,S.splice(0,g);var E=!1;break e}S.splice(0,g),E=!0}if(!E)return e.destination=null,d++,void w.splice(0,d)}w.splice(0,d);var x=e.completedBoundaries;for(d=0;d<x.length;d++)if(!Rn(e,t,x[d]))return e.destination=null,d++,void x.splice(0,d);x.splice(0,d)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function kn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Cn(n,e,t)})),n.clear(),null!==e.destination&&On(e,e.destination)}catch(t){un(e,t),hn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var i,o,a=new Promise((function(e,t){o=e,i=t})),s=function(e,t,n,r,i,o,a,s,l){var c=[],d=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:d,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?sn:i,onAllReady:void 0===o?ln:o,onShellReady:void 0===a?ln:a,onShellError:void 0===s?ln:s,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,d,Ct,null,It),c.push(e),t}(e,function(e,t,n,r,i){e=void 0===e?\"\":e,t=void 0===t?O:h('<script nonce=\"'+T(t)+'\">');var o=[];if(void 0!==n&&o.push(t,u((\"\"+n).replace(L,F)),k),void 0!==r)for(n=0;n<r.length;n++)o.push(I,u(T(r[n])),P);if(void 0!==i)for(r=0;r<i.length;r++)o.push(N,u(T(i[r])),P);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:h(e+\"P:\"),segmentPrefix:h(e+\"S:\"),boundaryPrefix:e+\"B:\",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return _(\"http://www.w3.org/2000/svg\"===e?2:\"http://www.w3.org/1998/Math/MathML\"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:\"bytes\",pull:function(e){if(1===s.status)s.status=2,p(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{On(s,e)}catch(e){un(s,e),hn(s,e)}}},cancel:function(){kn(s)}},{highWaterMark:0});e.allReady=a,n(e)}),(function(e){a.catch((function(){})),r(e)}),i);if(t&&t.signal){var l=t.signal,c=function(){kn(s,l.reason),l.removeEventListener(\"abort\",c)};l.addEventListener(\"abort\",c)}xn(s)}))},t.version=\"18.2.0\"},5848:(e,t,n)=>{\"use strict\";var r,i;r=n(7633),i=n(2911),r.version,r.renderToString,t.qV=r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,i.renderToReadableStream},115:e=>{\"use strict\";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i=\"undefined\"!=typeof Element;function o(e,a){if(e===a)return!0;if(e&&a&&\"object\"==typeof e&&\"object\"==typeof a){var s,l,c,d=t(e),u=t(a);if(d&&u){if((l=e.length)!=a.length)return!1;for(s=l;0!=s--;)if(!o(e[s],a[s]))return!1;return!0}if(d!=u)return!1;var h=e instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return e.getTime()==a.getTime();var g=e instanceof RegExp,f=a instanceof RegExp;if(g!=f)return!1;if(g&&f)return e.toString()==a.toString();var m=n(e);if((l=m.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,m[s]))return!1;if(i&&e instanceof Element&&a instanceof Element)return e===a;for(s=l;0!=s--;)if(!(\"_owner\"===(c=m[s])&&e.$$typeof||o(e[c],a[c])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn(\"Warning: react-fast-compare does not handle circular references.\",e.name,e.message),!1;throw e}}},2799:(e,t)=>{\"use strict\";var n=\"function\"==typeof Symbol&&Symbol.for,r=n?Symbol.for(\"react.element\"):60103,i=n?Symbol.for(\"react.portal\"):60106,o=n?Symbol.for(\"react.fragment\"):60107,a=n?Symbol.for(\"react.strict_mode\"):60108,s=n?Symbol.for(\"react.profiler\"):60114,l=n?Symbol.for(\"react.provider\"):60109,c=n?Symbol.for(\"react.context\"):60110,d=n?Symbol.for(\"react.async_mode\"):60111,u=n?Symbol.for(\"react.concurrent_mode\"):60111,h=n?Symbol.for(\"react.forward_ref\"):60112,p=n?Symbol.for(\"react.suspense\"):60113,g=n?Symbol.for(\"react.suspense_list\"):60120,f=n?Symbol.for(\"react.memo\"):60115,m=n?Symbol.for(\"react.lazy\"):60116,v=n?Symbol.for(\"react.block\"):60121,y=n?Symbol.for(\"react.fundamental\"):60117,b=n?Symbol.for(\"react.responder\"):60118,w=n?Symbol.for(\"react.scope\"):60119;function C(e){if(\"object\"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case u:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case f:case l:return e;default:return t}}case i:return t}}}function S(e){return C(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=f,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||C(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===m},t.isMemo=function(e){return C(e)===f},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===s},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return\"string\"==typeof e||\"function\"==typeof e||e===o||e===u||e===s||e===a||e===p||e===g||\"object\"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=C},4363:(e,t,n)=>{\"use strict\";e.exports=n(2799)},9764:function(e,t,n){var r;r=e=>(()=>{var t={703:(e,t,n)=>{\"use strict\";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw s.name=\"Invariant Violation\",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},98:t=>{\"use strict\";t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var i={};return(()=>{\"use strict\";r.r(i),r.d(i,{default:()=>w});var e=r(98),t=r.n(e),n=r(697),o=r.n(n);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var s=function(e){var n=e.pageClassName,r=e.pageLinkClassName,i=e.page,o=e.selected,s=e.activeClassName,l=e.activeLinkClassName,c=e.getEventListener,d=e.pageSelectedHandler,u=e.href,h=e.extraAriaContext,p=e.pageLabelBuilder,g=e.rel,f=e.ariaLabel||\"Page \"+i+(h?\" \"+h:\"\"),m=null;return o&&(m=\"page\",f=e.ariaLabel||\"Page \"+i+\" is your current page\",n=void 0!==n?n+\" \"+s:s,void 0!==r?void 0!==l&&(r=r+\" \"+l):r=l),t().createElement(\"li\",{className:n},t().createElement(\"a\",a({rel:g,role:u?void 0:\"button\",className:r,href:u,tabIndex:o?\"-1\":\"0\",\"aria-label\":f,\"aria-current\":m,onKeyPress:d},c(d)),p(i)))};s.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const l=s;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var d=function(e){var n=e.breakLabel,r=e.breakAriaLabel,i=e.breakClassName,o=e.breakLinkClassName,a=e.breakHandler,s=e.getEventListener,l=i||\"break\";return t().createElement(\"li\",{className:l},t().createElement(\"a\",c({className:o,role:\"button\",tabIndex:\"0\",\"aria-label\":r,onKeyPress:a},s(a)),n))};d.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().func.isRequired};const u=d;function h(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\"}function p(e){return p=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},p(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&f(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(i);if(o){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===p(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return m(e)}(this,e)});function s(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,s),y(m(n=a.call(this,e)),\"handlePreviousPage\",(function(e){var t=n.state.selected;n.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),y(m(n),\"handleNextPage\",(function(e){var t=n.state.selected,r=n.props.pageCount;n.handleClick(e,null,t<r-1?t+1:void 0,{isNext:!0})})),y(m(n),\"handlePageSelected\",(function(e,t){if(n.state.selected===e)return n.callActiveCallback(e),void n.handleClick(t,null,void 0,{isActive:!0});n.handleClick(t,null,e)})),y(m(n),\"handlePageChange\",(function(e){n.state.selected!==e&&(n.setState({selected:e}),n.callCallback(e))})),y(m(n),\"getEventListener\",(function(e){return y({},n.props.eventListener,e)})),y(m(n),\"handleClick\",(function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,s=i.isNext,l=void 0!==s&&s,c=i.isBreak,d=void 0!==c&&c,u=i.isActive,h=void 0!==u&&u;e.preventDefault?e.preventDefault():e.returnValue=!1;var p=n.state.selected,g=n.props.onClick,f=r;if(g){var m=g({index:t,selected:p,nextSelectedPage:r,event:e,isPrevious:a,isNext:l,isBreak:d,isActive:h});if(!1===m)return;Number.isInteger(m)&&(f=m)}void 0!==f&&n.handlePageChange(f)})),y(m(n),\"handleBreakClick\",(function(e,t){var r=n.state.selected;n.handleClick(t,e,r<e?n.getForwardJump():n.getBackwardJump(),{isBreak:!0})})),y(m(n),\"callCallback\",(function(e){void 0!==n.props.onPageChange&&\"function\"==typeof n.props.onPageChange&&n.props.onPageChange({selected:e})})),y(m(n),\"callActiveCallback\",(function(e){void 0!==n.props.onPageActive&&\"function\"==typeof n.props.onPageActive&&n.props.onPageActive({selected:e})})),y(m(n),\"getElementPageRel\",(function(e){var t=n.state.selected,r=n.props,i=r.nextPageRel,o=r.prevPageRel,a=r.selectedPageRel;return t-1===e?o:t===e?a:t+1===e?i:void 0})),y(m(n),\"pagination\",(function(){var e=[],r=n.props,i=r.pageRangeDisplayed,o=r.pageCount,a=r.marginPagesDisplayed,s=r.breakLabel,l=r.breakClassName,c=r.breakLinkClassName,d=r.breakAriaLabels,h=n.state.selected;if(o<=i)for(var p=0;p<o;p++)e.push(n.getPageElement(p));else{var g=i/2,f=i-g;h>o-i/2?g=i-(f=o-h):h<i/2&&(f=i-(g=h));var m,v,y=function(e){return n.getPageElement(e)},b=[];for(m=0;m<o;m++){var w=m+1;if(w<=a)b.push({type:\"page\",index:m,display:y(m)});else if(w>o-a)b.push({type:\"page\",index:m,display:y(m)});else if(m>=h-g&&m<=h+(0===h&&i>1?f-1:f))b.push({type:\"page\",index:m,display:y(m)});else if(s&&b.length>0&&b[b.length-1].display!==v&&(i>0||a>0)){var C=m<h?d.backward:d.forward;v=t().createElement(u,{key:m,breakAriaLabel:C,breakLabel:s,breakClassName:l,breakLinkClassName:c,breakHandler:n.handleBreakClick.bind(null,m),getEventListener:n.getEventListener}),b.push({type:\"break\",index:m,display:v})}}b.forEach((function(t,n){var r=t;\"break\"===t.type&&b[n-1]&&\"page\"===b[n-1].type&&b[n+1]&&\"page\"===b[n+1].type&&b[n+1].index-b[n-1].index<=2&&(r={type:\"page\",index:t.index,display:y(t.index)}),e.push(r.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn(\"(react-paginate): Both initialPage (\".concat(e.initialPage,\") and forcePage (\").concat(e.forcePage,\") props are provided, which is discouraged.\")+\" Use exclusively forcePage prop for a controlled component.\\nSee https://reactjs.org/docs/forms.html#controlled-components\"),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,n.state={selected:r},n}return n=s,(r=[{key:\"componentDidMount\",value:function(){var e=this.props,t=e.initialPage,n=e.disableInitialCallback,r=e.extraAriaContext,i=e.pageCount,o=e.forcePage;void 0===t||n||this.callCallback(t),r&&console.warn(\"DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.\"),Number.isInteger(i)||console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(i,\"). Did you forget a Math.ceil()?\")),void 0!==t&&t>i-1&&console.warn(\"(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (\".concat(t,\" > \").concat(i-1,\").\")),void 0!==o&&o>i-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(o,\" > \").concat(i-1,\").\"))}},{key:\"componentDidUpdate\",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(this.props.forcePage,\" > \").concat(this.props.pageCount-1,\").\")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(this.props.pageCount,\"). Did you forget a Math.ceil()?\"))}},{key:\"getForwardJump\",value:function(){var e=this.state.selected,t=this.props,n=t.pageCount,r=e+t.pageRangeDisplayed;return r>=n?n-1:r}},{key:\"getBackwardJump\",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:\"getElementHref\",value:function(e){var t=this.props,n=t.hrefBuilder,r=t.pageCount,i=t.hrefAllControls;if(n)return i||e>=0&&e<r?n(e+1,r,this.state.selected):void 0}},{key:\"ariaLabelBuilder\",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var n=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(n=n+\" \"+this.props.extraAriaContext),n}}},{key:\"getPageElement\",value:function(e){var n=this.state.selected,r=this.props,i=r.pageClassName,o=r.pageLinkClassName,a=r.activeClassName,s=r.activeLinkClassName,c=r.extraAriaContext,d=r.pageLabelBuilder;return t().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:n===e,rel:this.getElementPageRel(e),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:s,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:d,getEventListener:this.getEventListener})}},{key:\"render\",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var n=this.props,r=n.disabledClassName,i=n.disabledLinkClassName,o=n.pageCount,a=n.className,s=n.containerClassName,l=n.previousLabel,c=n.previousClassName,d=n.previousLinkClassName,u=n.previousAriaLabel,p=n.prevRel,f=n.nextLabel,m=n.nextClassName,v=n.nextLinkClassName,y=n.nextAriaLabel,b=n.nextRel,w=this.state.selected,C=0===w,S=w===o-1,E=\"\".concat(h(c)).concat(C?\" \".concat(h(r)):\"\"),x=\"\".concat(h(m)).concat(S?\" \".concat(h(r)):\"\"),A=\"\".concat(h(d)).concat(C?\" \".concat(h(i)):\"\"),T=\"\".concat(h(v)).concat(S?\" \".concat(h(i)):\"\"),D=C?\"true\":\"false\",R=S?\"true\":\"false\";return t().createElement(\"ul\",{className:a||s,role:\"navigation\",\"aria-label\":\"Pagination\"},t().createElement(\"li\",{className:E},t().createElement(\"a\",g({className:A,href:this.getElementHref(w-1),tabIndex:C?\"-1\":\"0\",role:\"button\",onKeyPress:this.handlePreviousPage,\"aria-disabled\":D,\"aria-label\":u,rel:p},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),t().createElement(\"li\",{className:x},t().createElement(\"a\",g({className:T,href:this.getElementHref(w+1),tabIndex:S?\"-1\":\"0\",role:\"button\",onKeyPress:this.handleNextPage,\"aria-disabled\":R,\"aria-label\":y,rel:b},this.getEventListener(this.handleNextPage)),f)))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,\"prototype\",{writable:!1}),s}(e.Component);y(b,\"propTypes\",{pageCount:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().string}),y(b,\"defaultProps\",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:\"selected\",previousLabel:\"Previous\",previousClassName:\"previous\",previousAriaLabel:\"Previous page\",prevPageRel:\"prev\",prevRel:\"prev\",nextLabel:\"Next\",nextClassName:\"next\",nextAriaLabel:\"Next page\",nextPageRel:\"next\",nextRel:\"next\",breakLabel:\"...\",breakAriaLabels:{forward:\"Jump forward\",backward:\"Jump backward\"},disabledClassName:\"disabled\",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:\"onClick\",renderOnZeroPageCount:void 0,selectedPageRel:\"canonical\",hrefAllControls:!1});const w=b})(),i})(),e.exports=r(n(9094))},382:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=a(n(5178)),i=a(n(955)),o=a(n(9559));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),(t=\"secureKey\")in this?Object.defineProperty(this,t,{value:\"\",enumerable:!0,configurable:!0,writable:!0}):this[t]=\"\",this.secureKey=(0,o.default)()}var t,n;return t=e,(n=[{key:\"encrypt\",value:function(e){return i.default.encrypt(e,this.secureKey).toString()}},{key:\"decrypt\",value:function(e){try{return i.default.decrypt(e,this.secureKey).toString(r.default)||null}catch(e){return null}}}])&&s(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();t.default=l},6668:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n={getHashKey:function(){var e=null;try{\"undefined\"!=typeof Cypress?e=Cypress.env(\"SECURE_LOCAL_STORAGE_HASH_KEY\")||Cypress.env(\"REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY\")||Cypress.env(\"NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY\")||Cypress.env(\"VITE_SECURE_LOCAL_STORAGE_HASH_KEY\"):void 0!==process.env?e=process.env.SECURE_LOCAL_STORAGE_HASH_KEY||process.env.REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.VITE_SECURE_LOCAL_STORAGE_HASH_KEY:console.warn(\"react-secure-storage : process is not defined! Just a warning!\")}catch(e){return null}return e},getStoragePrefix:function(){var e=null;try{\"undefined\"!=typeof Cypress?e=Cypress.env(\"SECURE_LOCAL_STORAGE_PREFIX\")||Cypress.env(\"REACT_APP_SECURE_LOCAL_STORAGE_PREFIX\")||Cypress.env(\"NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX\")||Cypress.env(\"VITE_SECURE_LOCAL_STORAGE_PREFIX\"):void 0!==process.env?e=process.env.SECURE_LOCAL_STORAGE_PREFIX||process.env.REACT_APP_SECURE_LOCAL_STORAGE_PREFIX||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX||process.env.VITE_SECURE_LOCAL_STORAGE_PREFIX:console.warn(\"react-secure-storage : process is not defined! Just a warning!\")}catch(e){return null}return e},getDisabledKeys:function(){var e=null;try{\"undefined\"!=typeof Cypress?e=Cypress.env(\"SECURE_LOCAL_STORAGE_DISABLED_KEYS\")||Cypress.env(\"REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS\")||Cypress.env(\"NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS\")||Cypress.env(\"VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS\"):void 0!==process.env?e=process.env.SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS:console.warn(\"react-secure-storage : process is not defined! Just a warning!\")}catch(e){return null}return e}};t.default=n},9559:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=o(n(6668)),i=o(n(3258));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=r.default.getHashKey()||\"E86E2612010258B35137\";return\"undefined\"==typeof window?e:i.default.getFingerprint()+e}},3258:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,i=(r=n(7627))&&r.__esModule?r:{default:r},o=n(2970);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}var t,n;return t=e,(n=[{key:\"getFingerprint\",value:function(){var e=\"|\",t=(0,o.getDisabledKeys)(),n=\"\";return t.includes(o.FINGERPRINT_KEYS.USERAGENT)||(n+=navigator.userAgent+e),t.includes(o.FINGERPRINT_KEYS.HOSTNAME)||(n+=window.location.hostname+e),t.includes(o.FINGERPRINT_KEYS.SCREEN_PRINT)||(n+=this.getScreenPrint()+e),t.includes(o.FINGERPRINT_KEYS.PLUGINS)||(n+=this.getPlugins()+e),t.includes(o.FINGERPRINT_KEYS.FONTS)||(n+=this.getFonts()+e),t.includes(o.FINGERPRINT_KEYS.LOCAL_STORAGE)||(n+=this.isLocalStorage()+e),t.includes(o.FINGERPRINT_KEYS.SESSION_STORAGE)||(n+=this.isSessionStorage()+e),t.includes(o.FINGERPRINT_KEYS.TIMEZONE)||(n+=this.getTimeZone()+e),t.includes(o.FINGERPRINT_KEYS.LANGUAGE)||(n+=this.getLanguage()+e),t.includes(o.FINGERPRINT_KEYS.SYSTEM_LANGUAGE)||(n+=this.getSystemLanguage()+e),t.includes(o.FINGERPRINT_KEYS.COOKIE)||(n+=this.isCookie()+e),t.includes(o.FINGERPRINT_KEYS.CANVAS)||(n+=this.getCanvasPrint()),n.endsWith(e)&&(n=n.substring(0,n.length-1)),(0,i.default)(n,256)}},{key:\"getScreenPrint\",value:function(){return\"Color Depth: \"+this.getColorDepth()+\", Device XDPI: \"+this.getDeviceXDPI()+\", Device YDPI: \"+this.getDeviceYDPI()}},{key:\"getColorDepth\",value:function(){return window.screen.colorDepth}},{key:\"getCurrentResolution\",value:function(){return window.screen.width+\"x\"+window.screen.height}},{key:\"getAvailableResolution\",value:function(){return window.screen.availWidth+\"x\"+window.screen.availHeight}},{key:\"getDeviceXDPI\",value:function(){return\"\"}},{key:\"getDeviceYDPI\",value:function(){return\"\"}},{key:\"getPlugins\",value:function(){for(var e=\"\",t=0;t<navigator.plugins.length;t++)t===navigator.plugins.length-1?e+=navigator.plugins[t].name:e+=navigator.plugins[t].name+\", \";return e}},{key:\"getFonts\",value:function(){return\"\"}},{key:\"isLocalStorage\",value:function(){try{return!!localStorage}catch(e){return!0}}},{key:\"isSessionStorage\",value:function(){try{return!!sessionStorage}catch(e){return!0}}},{key:\"isCookie\",value:function(){return navigator.cookieEnabled}},{key:\"getTimeZone\",value:function(){var e,t;return e=new Date,(t=String(-e.getTimezoneOffset()/60))<0?\"-\"+(\"0\"+(t*=-1)).slice(-2):\"+\"+(\"0\"+t).slice(-2)}},{key:\"getLanguage\",value:function(){return navigator.language}},{key:\"getSystemLanguage\",value:function(){return navigator.language||window.navigator.language}},{key:\"getCanvasPrint\",value:function(){var e,t=document.createElement(\"canvas\");try{e=t.getContext(\"2d\")}catch(e){return\"\"}var n=\"ClientJS,org <canvas> 1.0\";return e.textBaseline=\"top\",e.font=\"14px 'Arial'\",e.textBaseline=\"alphabetic\",e.fillStyle=\"#f60\",e.fillRect(125,1,62,20),e.fillStyle=\"#069\",e.fillText(n,2,15),e.fillStyle=\"rgba(102, 204, 0, 0.7)\",e.fillText(n,4,17),t.toDataURL()}}])&&a(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),e}());t.default=s},1535:(e,t,n)=>{\"use strict\";t.A=void 0;var r=o(n(382)),i=o(n(5590));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},s(e)}var l=(0,n(2970).getSecurePrefix)(),c=function(e,t){var n=function(e){return\"object\"===s(e)?\"j\":\"boolean\"==typeof e?\"b\":\"number\"==typeof e?\"n\":\"s\"}(t);return l+\"\".concat(n,\".\")+e},d=new(function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),n={},(t=\"_localStorageItems\")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._localStorageItems=(0,i.default)()}var t,n;return t=e,(n=[{key:\"setItem\",value:function(e,t){if(null==t)this.removeItem(e);else{var n=\"object\"===s(t)?JSON.stringify(t):t+\"\",i=c(e,t),o=l+e;null!=e&&(this._localStorageItems[o]=t);var a=new r.default;localStorage.setItem(i,a.encrypt(n))}}},{key:\"getItem\",value:function(e){var t,n=l+e;return null!==(t=this._localStorageItems[n])&&void 0!==t?t:null}},{key:\"removeItem\",value:function(e){var t=l+e,n=this._localStorageItems[t],r=c(e,n);void 0!==this._localStorageItems[t]&&delete this._localStorageItems[t],localStorage.removeItem(r)}},{key:\"clear\",value:function(){this._localStorageItems={},localStorage.clear()}}])&&a(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),e}());t.A=d},5590:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,i=(r=n(382))&&r.__esModule?r:{default:r};function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=(0,n(2970).getSecurePrefix)();t.default=function(){var e,t,n={};if(\"undefined\"!=typeof window)for(var r=new i.default,s=0,l=Object.entries(localStorage);s<l.length;s++){var c=(e=l[s],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),d=c[0],u=c[1];if(d.startsWith(a)){var h=d.replace(a,\"\")[0],p=d.replace(/[.][bjns][.]/,\".\"),g=r.decrypt(u),f=null;if(null!=g)switch(h){case\"b\":f=\"true\"===g;break;case\"j\":try{f=JSON.parse(g)}catch(e){f=null}break;case\"n\":try{f=Number(g)}catch(e){f=null}break;default:f=g}n[p]=f}}return n}},2970:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getSecurePrefix=t.getDisabledKeys=t.FINGERPRINT_KEYS=void 0;var r,i=(r=n(6668))&&r.__esModule?r:{default:r};t.getSecurePrefix=function(){var e=i.default.getStoragePrefix()||\"@secure.\";return e.endsWith(\".\")?e:e+\".\"};var o={USERAGENT:\"UserAgent\",SCREEN_PRINT:\"ScreenPrint\",PLUGINS:\"Plugins\",FONTS:\"Fonts\",LOCAL_STORAGE:\"LocalStorage\",SESSION_STORAGE:\"SessionStorage\",TIMEZONE:\"TimeZone\",LANGUAGE:\"Language\",SYSTEM_LANGUAGE:\"SystemLanguage\",COOKIE:\"Cookie\",CANVAS:\"Canvas\",HOSTNAME:\"Hostname\"};t.FINGERPRINT_KEYS=o,t.getDisabledKeys=function(){var e=i.default.getDisabledKeys()||\"\";if(\"\"===e)return[];var t=[o.USERAGENT,o.SCREEN_PRINT,o.PLUGINS,o.FONTS,o.LOCAL_STORAGE,o.SESSION_STORAGE,o.TIMEZONE,o.LANGUAGE,o.SYSTEM_LANGUAGE,o.COOKIE,o.CANVAS,o.HOSTNAME],n=[];return e.split(\"|\").forEach((function(e){\"\"===e||(t.includes(e)?n.push(e):console.warn(\"react-secure-storage : \".concat(e,\" is not present in the available disabled keys options! Please go through the documentation\")))})),n}},1020:(e,t,n)=>{\"use strict\";var r=n(9094),i=Symbol.for(\"react.element\"),o=Symbol.for(\"react.fragment\"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,d=null;for(r in void 0!==n&&(c=\"\"+n),void 0!==t.key&&(c=\"\"+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:d,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},4848:(e,t,n)=>{\"use strict\";e.exports=n(1020)},5072:e=>{\"use strict\";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],d=o[c]||0,u=\"\".concat(c,\" \").concat(d);o[c]=d+1;var h=n(u),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var g=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:g,references:1})}a.push(u)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=r(e,i),c=0;c<o.length;c++){var d=n(o[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},7659:e=>{\"use strict\";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");r.appendChild(n)}},540:e=>{\"use strict\";e.exports=function(e){var t=document.createElement(\"style\");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{\"use strict\";e.exports=function(e){var t=n.nc;t&&e.setAttribute(\"nonce\",t)}},7825:e=>{\"use strict\";e.exports=function(e){if(\"undefined\"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=\"\";n.supports&&(r+=\"@supports (\".concat(n.supports,\") {\")),n.media&&(r+=\"@media \".concat(n.media,\" {\"));var i=void 0!==n.layer;i&&(r+=\"@layer\".concat(n.layer.length>0?\" \".concat(n.layer):\"\",\" {\")),r+=n.css,i&&(r+=\"}\"),n.media&&(r+=\"}\"),n.supports&&(r+=\"}\");var o=n.sourceMap;o&&\"undefined\"!=typeof btoa&&(r+=\"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o)))),\" */\")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{\"use strict\";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2981:e=>{function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error(\"Unknown node. There is an unknown node in the supplied edges.\")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=\", node was:\"+JSON.stringify(e)}catch(e){c=\"\"}throw new Error(\"Cyclic dependency\"+c)}if(!s.has(e))throw new Error(\"Found unknown node. Make sure to provided all involved nodes. Unknown node: \"+JSON.stringify(e));if(!i[t]){i[t]=!0;var d=a.get(e)||new Set;if(t=(d=Array.from(d)).length){o.add(e);do{var u=d[--t];l(u,s.get(u),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},8430:e=>{\"use strict\";e.exports=\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABMUAAsAAAAAKMwAABLCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlWBmAAi34KqmyjKwE2AiQDgkALgSIABCAFhEYHhUEbnyMzg/aatGqziOpJNvu/JGhLhnjjdVVKiQVRRpQIMYb+arBrcnXzpDWxiZ/03+6d7uYA0kgNGvfxjeHHsZxySFI0efhYa+/v7iGeriQ0iXmiiXjIROjWyEwnREJiiNL8r7ned9lNjoj/UviIZqqAwagvZXWN7vQH2uY/PCuxGixE3Zco9c7GTcI4jGiM5Ixl6zZYJOu4deqq/4JF6qJ74B9A4MjcdjWnBf6vzeoX1p0qiEwH0j3ielqTJCVtAmTUucAVrqMqJHm7J9HDZROQwmB/an6zL7XMHhb7kozZWv+/7xgEJkGCJ4SvEGy5v2EaHaSESvAJKgL+b+1f7X9BlMATAqHj4/Ts7Pz/9965+zA0mU+02dBmQ5sfphJYIEX8Xjanfa8cAFStrQKWdRW+vpqEqbN1cToVOJ6CtsfmMoLfUD/X9o81JEiwSx5ix9/Y/D1YFRZgNHb89HY+AigxopP6BiQ4BLYXmusgA7t/bICvlWN7o7wQXGc5eKRfcJ1eti2g4qav/kYgjmNd0tLkOJ2Z/s9UagziUjLg4EUfjozhKEJQaXQSBRvG1xhMyJishB+RIifj9w6SMEZ1KBbXsdcUQmxLtN9Y2RPEjbehOT882Zbg6JXTtclU1IKAeRSMqKLcjrgNk40wT889wmXtgNBtcVthsjULZ4tB2WK6N7J190VFqlzEbaj5YYFjdj8VOa0t8WaELTaNWbZ2zJ36dM0BpxvCVJZlmP07Ku01wgZhT+xoxJdg3JpQhms8MU4R0KC64anv+rx2E9QmUFl/ortRSm2LPVbXu/6mNu5MGHAN4b2DK64KlaiuEGXqwIjTcKY+GVvvXXv07MWrT/8ARxGnhMUgqnrxK5p1WI/vEslM7FNW4qVzW4pQxmZGfTcfLa5FzMYh1DDHeHmEBYawVuhveThz4/Z2dCZM6QPZepCtu0Awgr9fxzGZfEA7NUeBnvZPglAHxmEeGS0TuaKyQz0dlSU+5CaqdHjGJPZMGbqSalOhn8ZkfcgmGZmvf+NtZ3kuxJoanXfBFT1apf/pNpfg7r5/jDDbG8TMmArFxZdY2RunTLjo7A1bhEgOKxy/44qp4TPcaX8TBaqr5I03XL2wOnWsmcJR+qYaVC4sUcTEa3fttqtEtmJTFzkEkKOHEg0IW2xbu847njOcPMS1HEguk4O4evv+401DJCAhp+5PaGo1rgT+qPli3jGfRZOPcxsxeZA4fApUAxlI8uONUTX04VdDPKlrg/1DGRcJ1vfKR7+/mgs1Hnnj81f8qLjXwfcQzmm4Aq0wK9YeoM575jiqJZvSu0mGAXtHYlg7unCQIJhMGY7Vxc3Dy8cvICgkLCIabTAhKSXtT4BZOXkFRSVlFVU1dQ1NLW0dXT19A0MlI2MTSMjUzNwViAL3M3lQqcZ+K0F0pgsVlj2jUW27//+7xP6ErY9y4JcBemZdmAFqntggsMAagUXWDyyxbmCZDQErrAVYZRPAGmsC1lkvsMHagC3WB2yzHmCHDQO7rAPYY+3APhsFDlkzcMS6gGPWCpywEeCUjQNnrBM4ZwPABRsDLkdPgi8AvREIIQhCMIQQCKEQwiCEQ4iAEAkhCkI0hBgIsRDiIMRDSICQCCEJQjKEFAipENIgpEPIgJAJIQtCNoQcCLkQ8iDkQyiAUAihCEIxhBIIpRDKIJRDqIBQCaEKQjWEGgi1EOog1LM3nQboL40QmiA0m0QKvha7bbRCebRBaIfQAWjE1KT6Mbe4oaAEFD15V8c1Npu8CiuJ+AgmZ+ibQWlcWmSAxALcWmEZSyAXGzLeJkSCSHP7vut0TVNSh01dwfysllW0nFagpJbIKHpGxmNm9hthJGqxHh2r9a1LpXoZteJbRCtpSsJSTEsukVAcjaubhmElaof2qUe+BlVN1Giq1mAaAZwEyNjKPVCn9M/ombCZRJqctqcDmwMD6YIbHZTN5WLZAkbni25GeSMT81p3zBduRVryQiIyK7q2F9KY/XxW7heJar+AV/4A237mtCB4kYk89YiCOQFcIhL20uGLC5C//SXJRK8vo5pgx6uNrmAl9nqbrUmU8rR0zekKrHF/ZrbTLBjbkj1RfwZ8jD6jIGTXaC+ppjqxRFrkNJGP9hy7FDGeHl4FhagGY/X+NWKIFlCDQdymq8aSUjqFqWvzkiu8bbxidd5BC5FI3fF2jDbWGGyHuZOQtm5/x4kTONSe2rVrHwpWnb9Nov1nwZZwm7XrFA63gb0no9N9tm+PtjL/zA0c+m27WJbiO3duJdFGFKiPWcdOnQvOn15mzcmdkfJv2xWeAFu3msOOmlv/ywgmtudQ7OBWH57bsiXY22Zxy0oiunOJu23/6avmojw/8UbZj+OwUkFBDKcnL4LlKINqlUTcrvDGGf/szej2+eDcraXhh5YpEnwqsZbt+05dyXoFKq+nwn92ShXNCF6yaHCcROsbmMjVyCpwAIykbGupvSPhMYsX7aOP4HADCurdUp6yJYUFrFqsL8zM7IV47ry5hRjHlQq3cper7EY8sVz1JEovtIkocwPG87er0DaWVUVFTeGaqMp0HFOhdHeVMhkVV0tzq8tXBfsy//f1KNCUo9RSBsUQa7goUOYSCQuMCJP3Zbl1eg901ANJ1JRAwAFWOYEiMGh9B6P5mSBGbmFdFGynyI2W4PF7ElIWwub1lx8hNmUO1YOBRJcelh+8wWAXdQFOYZnMheiyn3mxR0fGUhmEAcuc0OnNoWUCwy9APEPC6JLB3qh3kZxqcakMAz8X5/svbeB0nmCM8gVMTMCsHehWTxx6nn2v4oSV+aW7ZfBDrePhfZfDN33xNOiUOjI9Wu+fCE8FpxclVQIGIiWe206+Due/uv6F2Dfh9JzjOWfkmZE3plNza8PBsWdmDuV0/pIj2R1mA3029clIJ3d6wO7BvYW5lWx1PN6He1fL5X6/NO6J46m/dV+rVPr/2rK/Wp3xZ1dSKYvrnwdUl/rm3o/ThqFSdj1Ba/Tqqdhcb67xvOzTGc/HnB6w3B9EEI8HEiTC8ENfShDpAdJ/36fp3UfwVDATzzCQDf0hai8P8iAP1iG7MWwHe49R29iVpyW9Jvtm//FoVsNrHYxLzl1zj65MQXIJUXDHTCplOz0lt6XklEpsrSs6PLMb6BSjDSNiDdgbT82/rqLjG1PMyGr2IobBMyLY+X4EAyY1FNd7H4onDuKwRiWMHcCARyf3nsBnvo5KE1xM9KRgXZq0hw+FgIGlhoMR4oeQzvBT8Dn66H9YSWzWsLV9s7jHRfgE/EbI/8Ej2I93AzqCDlA9AK8XIc7u5PFcBFOLkAMDS9PTM9JhLmbk04cZURi0w2qd7hf+66VugwSKgGdMv7JAkMfj5QkKnobP8+fxCgRPHXzPW9Q/37AIkv38NMC12IJgEeQP4ifR2kq0EcCfpzP1CB70OLWDwR7ww/Gmm9rbS6VnTq9ZI5UFe9OZQQ1B3ukO03qi/5bXB+aH18eWL1cXFenpRYSf8ZmdOX1ma8SmTTNeK5xpEAc0Z/zNDGBd/alkK3erypElW5WytjZwbAoWVH/+gx9HCEzk8AgdaGJcPKJKuUADupgGNFpHE9PBedUXxBdgmJuRGR2dKetggTA4nAwcEfAGX5aXttT3xW6n+Jf7h/qX+fPke2vc5J1XXf9vbZ9CuW4cEGl9l1K//Kb5TPdBO+vy0J/LYu1pJ1sQW8cwP6rJUouO8Ga2leNOlteBUq/0dOduyyXbLJ2d7B3cLc+PUM1mWHZWNLwxt0mjWi53/MJbCSF2Tx2oKv02+2UWlSLZEw+qhUnWumgHh9WnqYvDZgQeYJBOgWDfYdYqMTVw4gw51S2w2pfrxLoUYmy6jKqEzebc7sO8W6mXh6IiGWxFKEtRln4KVtmHhyrYaGRhe26Tf7YX2+mU4QwUoWw/9+WJLucWczXnuPs13MX7EYp/m7xNhgMG5WFjfnJSewnFh4FjMzKGtkvD3L7BMxntY6pm1IxxwKxsaN/CMrHMpdfwk8ZWo8xtJNKa1PbD86kznOycuOndaR3cSQbGVl5WVGgg+ZUTvO++r47jqoukWKwIyE/TxDR1uskZgbyYnOOXyNIcVnUaaGKbOlzlImGitKTA+GJMSqhzZEFRLy8hOYG+fimXmcBgxDO5pkb5bexUo6AYZ4vFUhE9yymyUKBtBiBO4uEPv+XJmZWmgiLnyPjrip65yps6NTGb8zyI4WYOucqFEzWBqfHwSSm4Bt6OItctPkBmdBu2NRm9W6u/W3znLnzlHDls3FCbwPlhfASHOb0+gZIqjMAOqPgDsVDnDCKsDIooUQHKJzEWptpNYETVo8QPFQtuacUEmOqHGXb71sLHHTli235ZDtXjl063vvdgfVcWhZXDdJcddK1cK8zn8/MawweElsPRd7jQ1zNkuKx1za4W4gLD9MxX5gEXCUcy2ffr1zJhoDJdWWY4R8LZmZjNabLmXvN8MuyroYrDbrStLeMBhRIVRaE8MBqy/fTKvF/oPrCuCZWoklBi8rNRJaC78aN5225GCoBjavCGP+/x1wv48Mz9Y3fy5FzmBH27rG6nemh5dpCEmZjIlARlC8vpKwYHXejlEltICf1KQei46i3X/yT9ObmVBjSNTAk0EG8ziT6JBl9+zrsEDU4sJ3BIIubMMXYRyaadUeuqigpmrwtHPW67uyfufhofX15ioO/kI5Kfrurv//9/8tnMUbN2EF80mtxGqqmzc0uxg1GTzfz+pnlmj286fhoaglDb9Q2xDEasEeJmx4j8hQa2B8R5BTt+CfnvDd4Ze7Opxu++XbSxorK9P3btt1xI4ngqTk5uCGDExwUqmyeT5iuEk4s+chzm3jDhuccbqbo7D8FofaIH/c5JbNGHvE4MO9il6qTE/mh3vW3C2aqew6oGcXcPbP60YUXV6//8adz8urIcvwzfqVN9M/xyLoZPeurU+4lz/C565DcsHl+bw8vkcDJ5OXfF9fyZnBzeXcfqMPwutjE6unEyOVOT+X8u5kc+jZ4xUeuXsvKJUAvPdIOnmFvGNmyb4B3KQuGZ2lLqemDsRLRBliB5lnsm8Ti6Spdv36KjRUIPj6goIKOUeUr4tHlcZtT8VqqGEycmUYwZL1Z9UYQWhgvnzK8JWJOTmmosru7rXSCuiBROt9PwvhU9rFB44o15uQkJWi17334wH3JVYwu1Gd7cvBDT8tnEsljHw4eG0DaKtfuJw3C/f5mMzPX7wbsMnxaIVr7vW6OIb8Djd+9D9+3B4xoUcdo+ZzQgLglliur21l6/uv3Y/t3DEY1f0+sUEaBIwvEHKEDV86+/PX/hvdTfI8H/fqEb8m4cgE20TZ1+lAcpS6tpR0rACZbtRdvoIL3IEWc22wH0G6lD3qJHLUPupbURVMZxp6VZQd1qGPjt791g2KxXZdkyeqdw1T/kYxszbYM3jeNchQ3ulriPeY5Y12m2mjIbFdIFzhZvIlqZh5Eg1TAA0dPwvg+C0AqvZmsQ27zdGORuyWvX6jzLUXOUVJC/L7O75APlycErPsjuSM39f5PI/wGg5sSf93y0cf9U14K0beNCvem/gM1t/pdv/YhgcZT0X4L81ycKtSDt2zC32xwwPgjgI0h12mmkkIA0tAQ1Jwkgc7cOEkrnAUwFAmOYBjpMB+zhRsOnE6hTSwakJABBvd4dkyAJO0B+dNaCAp0PMxUsN0GDzm8ZBh7Kb0ZgeDQva7gn9uYmJE/wG1wJiu2boG/zHzj7SM1ld+F2ek9AwErANP2iyaO7ErGN5YjNY6R1QiHEJnH8Ai3dIJKup1OLz7jTEVcU5wnzjBtB4hHwG5xeuSJQWGCrkP4PjpDhhxaRxqXOhWDiSVCRBwgEjUZvoUazkXNFiLYa2WMRcvWYqhCEQCDeVfL2vgCNTWeI4SXXpmR3VtR0dCpyLiujaovvj5+KtUgji1wURGEURfHfW2t7xN78uHdWCaIkK6qmG6ZlO67nB2EUJ2mWF2VVN23XD+M0L+u2H+d1P+/3c+PWnXsPHj159uLVm3cfPv3w06+1E4djcEp8pIkajrO8rrae6CANodanYjnsMOjvPs5bVgvm3PY5ngwIMHpSAsduswsJRXd1h8ht8qbuvHEFC1Le1k3CSguYSnda1Hpizut6j+v6lcpk1jV8WTubnUkq9YJmC35oc1B5WOf1E1shw7y1Lc5SufGpPvWxpMrXEQTTyiQU5XykG6GV8eQ2MeYe/RIqTCqbJZWWI6WcS0VNsEMtrQohzsDUKYUjhPVUVKcao2ymgdHHkg85oe8mtn0RidRGaw9spajmcoNUOUbYzvdjUWvijHRRJNoBOwxt3qwSgzTM8xwLA7Sk2rIvHxPQZnnqEqjSVXLtxxs3a2EV10pDp0j97k5eVRwGhBeRmUwLBt96c+0fKpKFkbVcKwAA\"},9377:e=>{\"use strict\";e.exports=\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABYUAAsAAAAALgQAABXCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlWBmAAi34KtgCsbgE2AiQDgiwLgRgABCAFhEYHhQgbFShVBoWNAwDFdIdHRcnM5KKoz4JRSvb/dQI3RERcg94LUYNDlJRRFMzQjtavWYLQT3ERFiy0h+AmMcl3xzOrdBEOnrkyLmf//l46s40Rjx2SFE0Caj9+e+++iEZTS4aYhazJQmMIWTOJkBiSNv9p6u81uXStcTtz9aNQWCTCegJgeNrmv7sD5QiVg1YMBCdgEQYIh4Vg9KEuylihU6xYtNtcVeF+1IqVkb9CXZQrtz8H3y0/gdMEmCGnwuiZzJlL5Mx56v1pf9Nf8JlgE/fK64B8AP77qu3R9TZnWJIDRkb4Ze+zzlYKOJKfrKsR8H9rqT0suIAssWuFrjDkzMzs3GX/TjbAmwldUtrw3AYIimgBFdBurgSgKlsF7Mj2Vem+qlpZV4LlofSmgUjUeQAQ7gbkYx89r5NZUyFU/7Kkb0cwOCTCSaCmjituLjwUGo2RIMVpbsTFjAopWV+KrMgbH6NzVxPqwfUQBt6IAGR5cyiz86u78i4dv3VFFeRp2QDeSoZL588el3EZCy0JCspXlnJJnq0/bvkY8sKt8CppjIPxVnwcv6b40VZFZWtPBTWkd3YUQ2CcIOkURbSaUDKYVG6yGnK6xrTGwLF55RBKSMICXX3VacPCiMqBSXP68Xs9MCjvrWy91tK7pzvRCISDQ6qW3iw9Fak+gRE2zLy4/q4y37xuulCfUCGNbxRj61PXJuniW+ZAK06xe3Xg3sgxVDTJ8AXUet41jKNskhmb3qTSdPJBiT66G0SwuNkMvtpUlrhANzvRaQTOhjC+fmuojcdjipqOLL+dcmeXapTAgozS9tsvdZrYTNiyuu7d645hcv2uypVxzrwu5RYy3jorwnSGYFl1tXVTmSuevv7gk89++l8oZCgZcirSqo33DPKztfyy7pr2uUirYfuZUJr2Gg0szclUJ/OVRwXms2pkqJoqnaPwBePrhmYpBYrNGmJCimVAux401R0YxTXKdTyTqQ7kBV+QV9I5mXxqAQZCqqbOsHkoLVBdR8yQF3qIrDJ73MQ/mTTrTGkba09yk/VCO4lr6uUbOLCuVhnmG8id/tVnZWlBnxnwZmdqXD6ce30ayAkfsQwnb2RnOx57KNPZB5YXKZId5lxx3mckh2KyzxsJgO0JPXjO7INZVrD8CeUyZ8SOGkd2wPsGbVftbmfDtRlNzStowt8ejHeA0WILzRbehSxJSR6Fp1JB8iB5g4f1uw9fdIUEJLTo6SI2z8yd8kHbr5XId+ylTH+31XNhZUAqEIFWIAUkZcuzQgH1JaeVqtp0f5D/yFGmQB7+uebBr5VjY9r8ddGNX3DC+6QF9Z5x7oiDruCe0U8Ayz+Z4wkuGxsqJpoNiCknw3wLlgUKFaIpVrdlFVU1dQ1NLW0dXb3c9qGRsYkHcGZuYWmlZm1ja2ev6+Do5Oyiq+bqpubu4kHV9vTy9gEhzVPytK170gpZTpwB7tisLo/7/yP9c9mwny5TOYCSmbCNtoFpHNcNnDCJk0aBU2ZwWh9wxhLO6gHOGQfOGwAumgAuGQMum8UVQ8BVg8A187ihF7hpBLilH7htDncs4q5h4J4p3LeAB7HMrwIxNUVQBSRoQlEoCWWhIlSFmlAXGkJTaAltoSN0hZ7QFwbCUBgJY2EiTIWZMBcWwlJYCWuLbPBrk1lbYSfshYNwNG11kmXOwkW4CjfhbiI8LLLBr2dSvIS3We4j6bCJQyQKtYjgF5tuw2UXhCAF3eGHldGfZ7yUkQ2yH3r6EEBL6vkNeOA/2N27vo335BeCopd9dwodW+/6Zdh2/dhfniJvNPmCvTvsF4u3ABwiE/OFIb4oh0MnJbHZLklEDfEgIfQ5igeDzkSoiihRIINBQddfEuQi4XFQ1IvFYAq5LiQUxxdCCRcSiiqCbWJdXYUzR1Eeh06ho74oW+LJRykCMhl1dSELOMJRJbmhLuEjcfjCLKDEYaNRD/rkGi93dYn68nd1dmp+L7jS3e3dP3FvT0/kX9NWPvIiOoFi3f04/I/Cqx0+AxP2tEd0U1d2TqdCVBCR2d0/zjku2N4ZuCnwGvsYwBANOHTPq1Yek2KWL+dLZQMPAtka6BylaxhfS5x2so5rI2xOFqTRDpsFhnj795c5SBZEV5BCjSCNW0EqM2OIxiqKrWKCYgEMB8Pe8bEQC05iG6qrLUAcA7TEJUwTFqqWhRdphgEKFF3/zyVeXVKjL782R7+96rKPXHlD5tghGvKZP+SCi+RLGxSgsx/93eTvC/vp3PwIpzTsTpflgfJZ+wrVjmRgFhXicd7+R8zvcxmP+RnF5LArOHa7zTeBxCcFPpvgqzX/ModS0pzAcW77fal1OcpMbwtFgyKP9kVPfQLBf4qdNO5JYDw+o8TTaSTOZpPJo1A9dfEu1m6fB0pYRL3JLBKXgHIko+UqYzEtQpX8LSRaon4wc+REIoK1HFSTZ71nsxfUiznjZzKJQOcWTYo0UCIRT/MZTyST4JTHfDC0GFGAm4TD7nrUy7zeKPpIfL8QTeXOeObPFQqvSSGrqFclRjKXwTUp0RdpzUTcyivnb2t3L6oX7jiP1Uc2jMaS2dPu3ztJd3BhoznLHahp6Zlyyn2lwpkWgOInNJJz/bQ462XZE08jkYXq3xVYeCH0vcWxET5alvdTvxUH1jBd7186S3ZUpsDq6b6DQXpL73IbdOHHz7UG3qFzWdWS5u9avT4zcnSyNmc122Uqun8mDxTDwNrq4EWomiYSK+So59VJtHMsi9frrhLA1ySmSFJNuF4UGj5T6DqIsIxmWVCO+9O6A2ve+cMAkP9WQ9SbPWgGHkC46AfFkzlgLL9fDfZBSrIiueBXKQYLuOMpG7JzBDHlu/MT28LTgW18u/C0AzpnZNrFX7ZvkR3/vd8JHAfIQmiIHmJO6OAH/w67PbeNqsN+ktYHbnypOWpJEjxaA/33yvJ69Ym1941dNyX+0Oq5sGpU6H5yT+8+v1KK+bx3zM6UxHNW/3WjSrnk93uOVEPpYeVFq+akueoG+jldMjr06TUsOKvDDzxwgB/NQOBoo5QyzsgsY5RQLo9sFfIeo8cxItTncNbp/OSTDWpw5EJaMuaLCSgUyqJUqAsxJTHTJJpevpzdbp292LkqNPfcCj5svNrDjB0r556EeHr7PvL6Z7vfdV3q5mdltSLZkhX+02VxgMS7R8CmPH6PndrHp9CuPvmAiJZR0iKr5r51iAfH8g8xBk6Itfue9Hsh5otRy4vbbm7hRztzq8/55jua1a0B4omUn2jLr2iqhJ/R96fdcU85edH3zD/vy9WmGiq4J4IjvnOVrJH1aVeBwdsWrF6F2zmzGYbchVe8oza5D3km83NxPx98KeVqf1LqMWR6HYZc9AwRQzwLcE2X6GvmNOoDmL9AAM/qdEVXdNXAyiEcagv67Gj+viC5gzy545538oOcUAdwkgOcyTaXHdnmDH/7FD9A2KHpxG9uIUi5PJtCKMDdDtLQ5CLgkoV7TVjxGPM0ovmCMdVrLrDocFo32s8bhhU8tG7/PX3V2QcVvVU7tC7UL8X9aw/l7rbedKO60TI7rphoskN4xjY94HymfuVWD8IryQIbYiH+2hGFoFoqBM5mHyHt4ckHz+6duM8Vu3ANlz9+X0YnTaHXFf74JwzNasRT4ov6Vfus9FEfldMMeABKjjHUQgviYKZkHS9PkMkSXBEvCa6yhARZudIJYj4Dfqy0mgRG4b0ZS5HZmNpPRF2anxoTQcQ85Rx4dswoHPloNI4iLr+Tb7sGsvd/QjdUP30/6ZcZHqNGY3MtNVRTGD8QEzoQNyVz4L83rIdwfC241Wk2OzaQTXWYzQzGUQT6zqVL7z0G+d454m0c+MTbZuSqCKWSUOU6c/uVBKHMVTlNpsUGq0VukslMcssJ0AgmmUV+HCiSMRUcl60KEfRDh52Ha+Ahp0c9c/BxVvP25iFzlaVq8GP1aDXQLFBmh4ZmKwftZbNDlczh4TcnF4u8vhEtEX3jJcIf63Ev9++/d89v27a5ZSH3ZMxjvUUP1PGDgaanXGgyB8Pf7tu3o6AAhg36W7r6Wz/dOms4dap12CoQAxMQC4gnreB6v1FlvKHEVbhDiR0qEax/477I8Re5DAfIN40oLHK5RaFWyCwWeRBjl4tS5ecAa4Ce98g/0qc3MZhCZrbIFZuN26UJUvDGpzLPZqD9v5nF1WULE85D42aOU46bMS4C/VtNKy4+8vyrpq4F6qQExnj0Q2X7uulrRO1sj5nK0b0JHPEP1QiLFx2AoXsY9foqtTvvosr3RrFvXp5gntvuc24CPocrcrs7gtFa3RpmlT+hM3Mxt328txEHQAf7Ty7WRKrl7GXM1qX/4Y0x0AnH4rjcQz9hu6Jb5TdkDr4ccOppNalUMl/TwZ+71f3aZL7qfgiFuhezg7vulIT6wLBFLVtfj0kCZpnMbE2fWWZNVA+rEKnZRY3FTWyTSG4hE6AJqPB/HhsovLNLs+uOZqnt8rwOsdfDr97cybb/zmoJDNtQD7CU7twiNfPc2m/l1yXPaS1J5hrdmeL30eON4/c8Jn6guIfSmalpJTl1X23CWvlsfnjevNz68OVkiruvOwbW97QpuJNXGjS8nBI2C8YmwsfSFiz3z7sHiY7vfJnvdFgsyZLjzExWDjs+LFMbZh0NXnz00P8jbcNtDsOWLyl5RZA0P9OQrp/GKmJPFFm1jh1J+kKdrjBayo1NWRYyljxUBInMlaWb9HvgZD+/i7FcaXSRTluol3DiUpR9W0Pl8rrxC53t2BKqqDBZ/q4LfDr8M3HS5LQS/9niuQy7W74xQ6vMzcCX4MTXhTbELQVarS+1eSccintlChZUidOTLWP21k2L0k6ryqBp2io56kGgH+9qh5poIGGeWw7rdwmo2gepIehYw82y+jp6pWMVIMAuoM6sy4zVt66VmOwqnFlXv/oKq9eSFv1KUEM+jqluTKuvY4IP1XkJezkj+AjoI96MO5qMzcYbTeqCVLh5Moa/B8zGh0xhzXhzjUGLa2tw5HhT+o3hCn4FBMa46S8oPoKDgLXPWtpaKrpFSuT7Knwfamr6E/9zv3AQ8CWsoBVRhVnbNrfZ5jizsSa9vjibY2phIhckgBk/csWt4LeX/icahcv2vLDNuc9bdrd0TyFFnurjnDPnOXfxjbKzv9RRi9L5halHmDZbYKvmMxHpDFGRmgkfWJypb/tF1qRd++LS26fKATYZH8XLvG/dcqTyLZrEwVeO4qNKQ0zyZDZ2ssIh+uMxT+bgyS24rxc2mez2zMya5+5uxgKoHgvsRnuzHYfqRjt48Ar5vxdxySlf9xXc6y+4PDPLRJuxalF/v7PP2X8MN2MvKWNvskjyMP9XUHuwZhJkVWeGlRxBJ9OKZBOkGamRFs1VSR57EicOv2XcDeVAuZIkn5jSgpXhMXgGZFbEyyaspmRQCEmqND0rOE3eRkqTEUEyq9jiSrhm5q81yZOCttz+TN5ONqU3fRvrn+SiQYvrGzxmhdqESzb/hcrb7sVCrdX19Th1PS9GEJe/K4vU2h7FS5ks/PJlCLSyRNjFntY/cv9o7bmINYsX8sVXxPyF4hFV/OjBXO67XMxbUKeOCDWCK0K18D5895txYbzwiiABZDavX08R6tJX3doxOKdg2rpjety7VyRKufxnYuLMIjKJL9Fl/DRn8+be8cv095rQtRea3+7cObkCowoE1YVc10rmps2VG2m/d/NedXR02nL1n7SRz8nPKB1VoDx772S6b87yZeN1t20OgsghHCvKA2WJJrm9aoXj+ioIx/aXGu6GLjRClOjaNK/hJthBap6Pf9CkdPyKEw1GY1tjUwO0uSL4nHZd0/yvmsrN8+YDn/jBGZMC8qUrV0rzAyY5Ew16N5wvnRTgtDEtNtQWRxdotQXRxc8d+ZwCbbHuOcRk07l0f2F0jCt99rL1cSTixENLNRDJHJFKW1qGZ0JYy7iE+8QadC8ckVgkORIxEFt4UZLqabPteAjyjlNtIwHC4ma4uw/0PNAVu8gxXWFL682lpefPty1dFhsLHNgYOSqgVtpgpppJZu7YGRk5NKgkqz1criwihoaY7st/8c6CynhmWYbpHgXe6l+cv4hn0XbMZ9gq2Uk7bmFfkizNx2ljBp4v+tuq9HT1yH9uZ/Trcx8reWLevgJdFBj+bDYLpvOnCLVv7drpAkXmg55GzIJnpSOLnU6Rp9bWsjV0NWLO/7hwGB/mfrvIzd0XYjgG3lwWxiOasJqjFvQJExo0TIzgkhnFFSLxQHfg+cLD1sRyIvHyNfzaFcJUbjUdWSjAA02ZsllT62oWOGVcN16/PIjyiYcX8A2B1kwCZ1jB/LEY2tg3UcgZAKmWt0FkwT8h7EnZtqQTmU/02JgpBpEhBMYGl/E6pEhIMOKWBW9EyJPhaalR8E+qBsDYkZ+Qp5FtWnZRpyksJfUooqtV/0hnsHt0mWD4+SGHNYVWIJ6qnbxK0jL5fzwpzoeqODL8xKEOQhYhtbwEaaQ21d6ceE+8uVgeGd54qn4X7WSnliIlOWlXdxIPq3cFJ7rI8z/kkh72pfOmuuvfUjAyCAA0Af3rqwUYVy98xZ8C8O2YkAjoL1QcMtgKDf2/9Hy9Ju6N8KS1vNAk/IeA358yqLbC9/zfk+oXqHguAP7ZpnqAnxCDfFBdg0HxhgIgqroM7CR37RgywEACFzv3AFDXahycnAaWgVKAAEhCAQRlYAEeYwMuEAc7uI9AAbi/GlMIvKAbisD9dAwCDCJ9MwxaoAnDsfqpjX/HUGP7i6pzQDXWQ2/yjzQ1wtlL8Wx1ZT+JSdHIZ6d7li7Vq1mZlSpt9kPYLioEyaLKJzkrarP4djyW+KwLJ+0TVj+18e8Y6jNC+0Ub7RxQ19RHk7D2j9aQ4H0Tzl6KZ5/2n4x9T4hGXjvdRS1dTtqrUa3MeF2lVdmPWIlPCBTkyKK9/kkO86IOoce3I+2o9MsLFwsdt6xXNUrOEmBFgS70oA8DGMIIxjCBKXxhkr4c/utWnW6vPxiOxpPpbL5Yrtab7W5/OJ7Ol+vt/ni+3h9MKONC6oZp2Y7r8QVCkVgilcl9/fg1bAVWlVKF1ggPUFWuqYvJDRyyo9B3Naqt2kju6yS3XEknfzCcpmFPRto2jEYbq/gz+yo/cxJE89hcDdThXTy3nCZO2BSdke85ife+U0mp69Kl687W85Rcn25Jy6OOjhg7+KfYcpSngKnuqr5B2YQE5f6U1WS9SpvY3z45x56jbIhU2iA0nPLZDoOgb7gatXhr2uZBvZb4PMopZY7AwjRlsRxDkCvR/Rg4irpEcb/0i9hKg74dyU9nM+FcynJpOBr3talq6yW80CS1MRTJvVx5pOHMgJV5PRtTokpKGZ05c0IvhnPqW6BWRtnCmRBslMgsw88mAUIFCgQGDQgwXCGBgwA1fMEJbpB7aOEMEe5wgRIeTwAA\"},2487:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA5IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMjA5IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTkyLjk5MyAyMy42NTgyVjE1LjcxMTdIMTc5LjQ1MkwxNzEuNTA1IDIzLjY1ODJIMTkyLjk5M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTIwOC4yNSAzLjk1MDgxSDE5MS4yNzZMMTgzLjI2NiAxMS44OTczSDIwOC4yNVYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTYzLjYyMiAzMS42MDQ4TDE2Ny42OTEgMjcuNTM2MUgxODEuNDIzVjM1LjQ4MjdIMTYzLjYyMlYzMS42MDQ4WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTY2LjYxIDE5Ljc4MDNIMTc1LjM4M0wxODMuMzkzIDExLjgzMzdIMTY2LjYxVjE5Ljc4MDNaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNTcuMDExIDMxLjYwNDdIMTYzLjYyMkwxNzEuNTA1IDIzLjY1ODJIMTU3LjAxMVYzMS42MDQ3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTkxLjI3NiAzLjk1MDgxTDE4Ny4yMDggOC4wMTk0MUgxNjEuMjdWMC4wNzI4NzZIMTkxLjI3NlYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjAuODM5MSAzMC4yMDYxSDguMzc4OTJMNi4yMTc0NSAzNS41NDYySDAuNzUwMjQ0TDEyLjI1NjggOC41OTE1NUgxNy4wMjQ3TDI4LjUzMTMgMzUuNTQ2MkgyMy4wMDA1TDIwLjgzOTEgMzAuMjA2MVpNMTkuMTIyNyAyNS45NDY4TDE0LjYwOSAxNC45NDg4TDEwLjA5NTQgMjUuOTQ2OEgxOS4xMjI3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTA0LjQzNyAxOC41MDg5QzEwNi4wMjYgMTYuMTU2NyAxMTAuMDMxIDE1LjkwMjQgMTExLjY4NCAxNS45MDI0VjIwLjQ3OTZDMTA5LjY1IDIwLjQ3OTYgMTA3LjYxNSAyMC41NDMyIDEwNi40MDcgMjEuNDMzMkMxMDUuMiAyMi4zMjMyIDEwNC41NjQgMjMuNTMxMSAxMDQuNTY0IDI0Ljk5MzJWMzUuNTQ2Mkg5OS42MDUxVjE1LjkwMjRIMTA0LjM3M0wxMDQuNDM3IDE4LjUwODlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xMTkuMzc2IDE1LjkwMjRIMTE0LjQxOFYzNS41NDYySDExOS4zNzZWMTUuOTAyNFoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTExOS4zNzYgNy4xMjkzOUgxMTQuNDE4VjEyLjk3OEgxMTkuMzc2VjcuMTI5MzlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNDMuOTc5IDcuMTI5MzlWMzUuNTQ2MkgxMzkuMjExTDEzOS4wODQgMzIuNTU4M0MxMzguMzg0IDMzLjU3NTUgMTM3LjQ5NCAzNC40MDE5IDEzNi40MTQgMzUuMDM3NkMxMzUuMzMzIDM1LjYwOTggMTMzLjk5OCAzNS45Mjc2IDEzMi40NzIgMzUuOTI3NkMxMzEuMTM3IDM1LjkyNzYgMTI5Ljg2NiAzNS42NzMzIDEyOC43ODUgMzUuMjI4M0MxMjcuNjQxIDM0LjcxOTcgMTI2LjYyMyAzNC4wODQgMTI1Ljc5NyAzMy4xOTRDMTI0Ljk3MSAzMi4zMDQgMTI0LjI3MSAzMS4yMjMzIDEyMy44MjYgMzAuMDE1NEMxMjMuMzE4IDI4LjgwNzUgMTIzLjEyNyAyNy40MDkgMTIzLjEyNyAyNS44ODMyQzEyMy4xMjcgMjQuMzU3NSAxMjMuMzgxIDIyLjk1ODkgMTIzLjgyNiAyMS42ODc0QzEyNC4zMzUgMjAuNDE2IDEyNC45NzEgMTkuMzM1MyAxMjUuNzk3IDE4LjQ0NTNDMTI2LjYyMyAxNy41NTUyIDEyNy42NDEgMTYuODU2IDEyOC43ODUgMTYuMzQ3NEMxMjkuOTI5IDE1LjgzODggMTMxLjEzNyAxNS41ODQ1IDEzMi40NzIgMTUuNTg0NUMxMzMuOTk4IDE1LjU4NDUgMTM1LjI2OSAxNS44Mzg4IDEzNi4zNSAxNi40MTA5QzEzNy40MzEgMTYuOTgzMSAxMzguMzIxIDE3Ljc0NTkgMTM5LjAyIDE4LjgyNjdWNy4xOTI5NUgxNDMuOTc5VjcuMTI5MzlaTTEzMy41NTMgMzEuNjY4M0MxMzUuMjA2IDMxLjY2ODMgMTM2LjQ3NyAzMS4wOTYyIDEzNy40OTQgMzAuMDE1NEMxMzguNTExIDI4LjkzNDcgMTM5LjAyIDI3LjQ3MjUgMTM5LjAyIDI1LjY5MjVDMTM5LjAyIDIzLjkxMjUgMTM4LjUxMSAyMi41MTM5IDEzNy40OTQgMjEuMzY5NkMxMzYuNDc3IDIwLjI4ODggMTM1LjIwNiAxOS43MTY3IDEzMy41NTMgMTkuNzE2N0MxMzEuOTYzIDE5LjcxNjcgMTMwLjYyOCAyMC4yODg4IDEyOS42NzUgMjEuMzY5NkMxMjguNjU4IDIyLjQ1MDMgMTI4LjE0OSAyMy45MTI1IDEyOC4xNDkgMjUuNjkyNUMxMjguMTQ5IDI3LjQ3MjUgMTI4LjY1OCAyOC44NzExIDEyOS42NzUgMjkuOTUxOEMxMzAuNjkyIDMxLjA5NjEgMTMxLjk2MyAzMS42NjgzIDEzMy41NTMgMzEuNjY4M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTU3LjIwMjQgMjAuMzUyNUg0NC45MzNWMjQuNjExOEg1MS45MjU5QzUxLjczNTIgMjYuNzczMyA1MC45MDg4IDI4LjQyNjEgNDkuNTEwMiAyOS43NjExQzQ4LjExMTYgMzEuMDMyNiA0Ni4zMzE1IDMxLjY2ODMgNDQuMDQyOSAzMS42NjgzQzQyLjc3MTUgMzEuNjY4MyA0MS41NjM2IDMxLjQxNCA0MC41NDY1IDMwLjk2OUMzOS40NjU3IDMwLjUyNCAzOC41NzU3IDI5Ljg4ODMgMzcuODEyOSAyOC45OTgzQzM3LjA1IDI4LjE3MTggMzYuNDc3OCAyNy4xNTQ3IDM2LjAzMjggMjUuOTQ2OEMzNS41ODc4IDI0LjczODkgMzUuMzk3MSAyMy40Njc1IDM1LjM5NzEgMjIuMDA1M0MzNS4zOTcxIDIwLjU0MzIgMzUuNTg3OCAxOS4yNzE3IDM2LjAzMjggMTguMDYzOEMzNi40MTQzIDE2Ljg1NiAzNy4wNSAxNS45MDI0IDM3LjgxMjkgMTUuMDEyNEMzOC41NzU3IDE0LjE4NTkgMzkuNDY1NyAxMy41NTAyIDQwLjU0NjUgMTMuMDQxNkM0MS42MjcyIDEyLjU5NjYgNDIuNzcxNSAxMi4zNDIzIDQ0LjEwNjUgMTIuMzQyM0M0Ni43NzY2IDEyLjM0MjMgNDguODEwOSAxMi45NzggNTAuMjA5NSAxNC4yNDk1TDUzLjUxNTIgMTAuOTQzOEM1MS4wMzU5IDkuMDM2NTkgNDcuODU3MyA4LjAxOTQxIDQ0LjEwNjUgOC4wMTk0MUM0Mi4wMDg2IDguMDE5NDEgNDAuMTAxNSA4LjMzNzI5IDM4LjM4NSA5LjAzNjU5QzM2LjY2ODYgOS43MzU4OCAzNS4yMDY0IDEwLjYyNTkgMzMuOTk4NSAxMS44MzM3QzMyLjc5MDYgMTMuMDQxNiAzMS44MzcxIDE0LjUwMzggMzEuMjAxNCAxNi4yMjAzQzMwLjU2NTYgMTcuOTM2NyAzMC4yNDc4IDE5Ljg0MzggMzAuMjQ3OCAyMS44NzgyQzMwLjI0NzggMjMuOTEyNSAzMC41NjU2IDI1LjgxOTcgMzEuMjY0OSAyNy41MzYxQzMxLjk2NDIgMjkuMjUyNiAzMi44NTQyIDMwLjcxNDcgMzQuMDYyMSAzMS45MjI2QzM1LjI3IDMzLjEzMDUgMzYuNzMyMSAzNC4wODQxIDM4LjQ0ODYgMzQuNzE5OEM0MC4xNjUgMzUuNDE5MSA0Mi4wNzIyIDM1LjczNyA0NC4xMDY1IDM1LjczN0M0Ni4xNDA4IDM1LjczNyA0Ny45ODQ0IDM1LjQxOTEgNDkuNjM3MyAzNC43MTk4QzUxLjI5MDIgMzQuMDIwNSA1Mi42ODg4IDMzLjEzMDUgNTMuODMzMSAzMS45MjI2QzU0Ljk3NzQgMzAuNzE0NyA1NS44Njc0IDI5LjI1MjYgNTYuNTAzMSAyNy41MzYxQzU3LjEzODggMjUuODE5NyA1Ny40NTY3IDIzLjkxMjUgNTcuNDU2NyAyMS44NzgyVjIxLjA1MTdDNTcuMjY2IDIwLjkyNDYgNTcuMjAyNCAyMC42MDY3IDU3LjIwMjQgMjAuMzUyNVoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTk1Ljk4MTUgMjAuMzUyNUg4My43MTIxVjI0LjYxMThIOTAuNzA1QzkwLjUxNDMgMjYuNzczMyA4OS42ODc5IDI4LjQyNjEgODguMjg5MyAyOS43NjExQzg2Ljg5MDcgMzEuMDMyNiA4NS4xMTA2IDMxLjY2ODMgODIuODIyIDMxLjY2ODNDODEuNTUwNiAzMS42NjgzIDgwLjM0MjcgMzEuNDE0IDc5LjMyNTYgMzAuOTY5Qzc4LjI0NDggMzAuNTI0IDc3LjM1NDggMjkuODg4MyA3Ni41OTIgMjguOTk4M0M3NS44MjkxIDI4LjE3MTggNzUuMjU3IDI3LjE1NDcgNzQuODExOSAyNS45NDY4Qzc0LjM2NjkgMjQuNzM4OSA3NC4xNzYyIDIzLjQ2NzUgNzQuMTc2MiAyMi4wMDUzQzc0LjE3NjIgMjAuNTQzMiA3NC4zNjY5IDE5LjI3MTcgNzQuODExOSAxOC4wNjM4Qzc1LjE5MzQgMTYuODU2IDc1LjgyOTEgMTUuOTAyNCA3Ni41OTIgMTUuMDEyNEM3Ny4zNTQ4IDE0LjE4NTkgNzguMjQ0OCAxMy41NTAyIDc5LjMyNTYgMTMuMDQxNkM4MC40MDYzIDEyLjU5NjYgODEuNTUwNiAxMi4zNDIzIDgyLjg4NTYgMTIuMzQyM0M4NS41NTU3IDEyLjM0MjMgODcuNTkgMTIuOTc4IDg4Ljk4ODYgMTQuMjQ5NUw5Mi4yOTQzIDEwLjk0MzhDODkuODE1IDkuMDM2NTkgODYuNjM2NCA4LjAxOTQxIDgyLjg4NTYgOC4wMTk0MUM4MC43ODc4IDguMDE5NDEgNzguODgwNiA4LjMzNzI5IDc3LjE2NDEgOS4wMzY1OUM3NS40NDc3IDkuNzM1ODggNzMuOTg1NSAxMC42MjU5IDcyLjc3NzYgMTEuODMzN0M3MS41Njk4IDEzLjA0MTYgNzAuNjE2MiAxNC41MDM4IDY5Ljk4MDUgMTYuMjIwM0M2OS4zNDQ3IDE3LjkzNjcgNjkuMDI2OSAxOS44NDM4IDY5LjAyNjkgMjEuODc4MkM2OS4wMjY5IDIzLjkxMjUgNjkuMzQ0NyAyNS44MTk3IDcwLjA0NCAyNy41MzYxQzcwLjc0MzMgMjkuMjUyNiA3MS42MzM0IDMwLjcxNDcgNzIuODQxMiAzMS45MjI2Qzc0LjA0OTEgMzMuMTMwNSA3NS41MTEyIDM0LjA4NDEgNzcuMjI3NyAzNC43MTk4Qzc4Ljk0NDEgMzUuNDE5MSA4MC44NTEzIDM1LjczNyA4Mi44ODU2IDM1LjczN0M4NC45MiAzNS43MzcgODYuNzYzNiAzNS40MTkxIDg4LjQxNjQgMzQuNzE5OEM5MC4wNjkzIDM0LjAyMDUgOTEuNDY3OSAzMy4xMzA1IDkyLjYxMjIgMzEuOTIyNkM5My43NTY1IDMwLjcxNDcgOTQuNjQ2NSAyOS4yNTI2IDk1LjI4MjIgMjcuNTM2MUM5NS45MTggMjUuODE5NyA5Ni4yMzU4IDIzLjkxMjUgOTYuMjM1OCAyMS44NzgyVjIxLjA1MTdDOTYuMDQ1MSAyMC45MjQ2IDk1Ljk4MTUgMjAuNjA2NyA5NS45ODE1IDIwLjM1MjVaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=\"},2995:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a7c56cad90b85de104bf.eot\"},6059:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e7885423ce75f16a91a3.woff\"},5699:(e,t,n)=>{\"use strict\";e.exports=n.p+\"3bcf546689319f69a5b8.woff2\"},3711:(e,t,n)=>{\"use strict\";e.exports=n.p+\"fd2b99c5f06b62429f77.eot\"},7479:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e7c82f35b652f00856c0.woff\"},2023:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d647a25c2a9efb712018.woff2\"},3147:(e,t,n)=>{\"use strict\";e.exports=n.p+\"59032f2cb9b8b39722d7.eot\"},5379:(e,t,n)=>{\"use strict\";e.exports=n.p+\"52f2b51b366bcbb7999b.woff\"},5739:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ab39b1fad268c4b40c45.woff2\"},7351:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2116930ed7bf67e4a37a.eot\"},9023:(e,t,n)=>{\"use strict\";e.exports=n.p+\"6364af07f108ff9f8f08.woff\"},3727:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a6675b2991f94f897f6b.woff2\"},8357:(e,t,n)=>{\"use strict\";e.exports=n.p+\"0dc281f99ad4aa37cc48.eot\"},6445:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ff5c70bc6f9a3ef04fe1.woff\"},9749:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a5d07cd06ea22d9b2ae4.woff2\"},1661:(e,t,n)=>{\"use strict\";e.exports=n.p+\"52240b63d42c6cb87651.eot\"},1301:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d264bb5ede8634a908c5.woff\"},8269:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e40e0da2ab30e41563ce.woff2\"},6540:(e,t,n)=>{\"use strict\";e.exports=n.p+\"49598b1b805cb0d217f1.eot\"},7366:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e596e099609b5f1a784f.woff\"},1360:(e,t,n)=>{\"use strict\";e.exports=n.p+\"c4d158174516baf5d1ef.woff2\"},456:(e,t,n)=>{\"use strict\";e.exports=n.p+\"c23e1f78719e1ddf61f9.eot\"},6546:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f4808d8bf723898488a.woff\"},404:(e,t,n)=>{\"use strict\";e.exports=n.p+\"66da9e80acc25990995d.woff2\"},2222:(e,t,n)=>{\"use strict\";e.exports=n.p+\"6f78c804f618ebf09530.eot\"},1e3:(e,t,n)=>{\"use strict\";e.exports=n.p+\"90d125d0e8a0d905bb51.woff\"},7274:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2f8ef3eb51d7233a67b1.woff2\"},1866:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ec9d8de6132d39aa9c70.eot\"},2244:(e,t,n)=>{\"use strict\";e.exports=n.p+\"b0215fbc9e1007670ba2.woff\"},1342:(e,t,n)=>{\"use strict\";e.exports=n.p+\"eff671d131ad2d8a261d.woff2\"},9994:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f2fb55134a17174a60e.eot\"},852:(e,t,n)=>{\"use strict\";e.exports=n.p+\"81159d1de0d9dd1c7fb0.woff\"},6750:(e,t,n)=>{\"use strict\";e.exports=n.p+\"03caa3c1b84861825aea.woff2\"},3631:(e,t,n)=>{\"use strict\";e.exports=n.p+\"286bc5010cf484f65ba9.eot\"},2039:(e,t,n)=>{\"use strict\";e.exports=n.p+\"93ce6eb3906149fded76.woff\"},4439:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f689995e84209f17d2c.woff2\"},3899:(e,t,n)=>{\"use strict\";e.exports=n.p+\"efe8522022f587768ad8.eot\"},1411:(e,t,n)=>{\"use strict\";e.exports=n.p+\"7f9bc24f7b573a988236.woff\"},2619:(e,t,n)=>{\"use strict\";e.exports=n.p+\"dfaec6cdc74d2605d629.woff2\"},490:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d62a54afa2acb7e6c701.eot\"},1380:(e,t,n)=>{\"use strict\";e.exports=n.p+\"eec128be22a15563ff8e.woff\"},6462:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e571800c9718f51d8894.woff2\"},3021:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1f73a68242b8b32eb5ec.eot\"},6485:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1970a460b3a3c4ff7bd9.woff\"},5181:(e,t,n)=>{\"use strict\";e.exports=n.p+\"4cfb21d18b0bb41335c2.woff2\"},9381:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a125207e3c8340d40bbc.eot\"},5277:(e,t,n)=>{\"use strict\";e.exports=n.p+\"31010f0e872419793656.woff\"},3381:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e1383e74eaee4a4ca015.woff2\"},8259:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a825c5924a8ad9bc9e7c.eot\"},2923:(e,t,n)=>{\"use strict\";e.exports=n.p+\"abc900451ea426df4218.woff\"},6515:(e,t,n)=>{\"use strict\";e.exports=n.p+\"f7f5cae88e5c6e15690f.woff2\"},671:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e373a86be109c913eb43.eot\"},4711:(e,t,n)=>{\"use strict\";e.exports=n.p+\"277114b6d54462782b4f.woff\"},4119:(e,t,n)=>{\"use strict\";e.exports=n.p+\"fcaab283846894e68109.woff2\"},5535:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e0bcc270ff9e87652e83.eot?hasvnq\"},4877:(e,t,n)=>{\"use strict\";e.exports=n.p+\"0a9277370f83b23e6454.ttf?hasvnq\"},3383:(e,t,n)=>{\"use strict\";e.exports=n.p+\"6566257a1edde616f1ae.woff?hasvnq\"},828:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2a498233558cb545172c.svg\"},8156:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d276983469aa898110b8.svg\"},5722:(e,t,n)=>{\"use strict\";e.exports=n.p+\"366821ece11c75d1f821.svg\"},638:(e,t,n)=>{\"use strict\";e.exports=n.p+\"043449e47693cddca9ab.svg\"},5270:(e,t,n)=>{\"use strict\";e.exports=n.p+\"408bc17fee8874f4e188.svg\"},6090:(e,t,n)=>{\"use strict\";e.exports=n.p+\"222bea734eb62bc46ab3.svg\"},8089:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ec6cddc957adc72a5f65.svg\"},8125:(e,t,n)=>{\"use strict\";e.exports=n.p+\"86a1fc91f451e213b44e.svg\"},1935:(e,t,n)=>{\"use strict\";e.exports=n.p+\"12e0cbba429b3d90714f.svg\"},7445:(e,t,n)=>{\"use strict\";e.exports=n.p+\"070893ece28cd10fd8b3.svg\"},1465:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2c2eadabfa5f40a22115.svg\"},1786:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1356d8c15a63aaf5414f.svg\"},8318:(e,t,n)=>{\"use strict\";e.exports=n.p+\"205d7f3d96a74e51b79e.svg\"},3981:(e,t,n)=>{\"use strict\";e.exports=n.p+\"29f7354d7968a6e51147.svg\"},1788:(e,t,n)=>{\"use strict\";e.exports=n.p+\"69b0c6a0b04e495b568a.svg\"},9660:(e,t,n)=>{\"use strict\";e.exports=n.p+\"9a8fa2c80d3f9071674a.svg\"},3110:(e,t,n)=>{\"use strict\";e.exports=n.p+\"86a0c49b5df07bb817c5.svg\"},8938:(e,t,n)=>{\"use strict\";e.exports=n.p+\"9a5844a9e61bff3909d1.svg\"},3106:(e,t,n)=>{\"use strict\";e.exports=n.p+\"3ab79b23ddae9db2fea6.svg?hasvnq\"},3997:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDQiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0NCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwLjg3MTYgMC4wMDQwNjI2NUMxNi4yNzk2IDAuMjgxNDUyIDEyLjExNTQgMS45Mzg0IDguNjQ2NjIgNC44NzE4M0M4LjI1MTg1IDUuMjAzMjIgNy4yNjg3NiA2LjE1MDc1IDYuOTI0OTMgNi41MzEyNEM2LjI2Mjc1IDcuMjU3ODQgNS43MzMgNy45MjU1NCA1LjE4Mjg4IDguNzI4MjRDNC40MjY0NiA5LjgyNzk2IDMuODA1MDIgMTAuOTY0NSAzLjI5ODE5IDEyLjE3NzJDMi4yNDg4OCAxNC42OTA4IDEuNzc3NzEgMTcuMjYzNCAxLjg2MTc2IDIwLjA0NDZDMS45NDA3MSAyMi42NTQgMi41NDE3NyAyNS4xMjYgMy42ODUzMiAyNy41MzE2QzMuOTA0MzUgMjcuOTk4IDQuMjc2MTkgMjguNjkwMiA0LjQ5MDEzIDI5LjA0MTNMNC41NzkyNyAyOS4xODg2TDIuMjg5NjMgMjkuMTk1OUwwIDI5LjIwMDhWMzAuMTQ1OVYzMS4wOTFMMi45NDY3MyAzMS4wOTU5TDUuODkzNDUgMzEuMTAzM0w2LjEzMDMxIDMxLjM5NTRDNy42MjAyMyAzMy4yMzY0IDkuNTU1ODUgMzQuODg4NSAxMS42MjM5IDM2LjA4NjRDMTIuMzExNiAzNi40ODQxIDEzLjcyIDM3LjAzODggMTQuODYxIDM3LjM2MjlDMTcuMjg4MSAzOC4wNTAyIDE5Ljc4MTUgMzguMjI2OSAyMi4yODI1IDM3Ljg4ODJDMjUuMjY0OSAzNy40ODU2IDI4LjM0MTUgMzYuMjc1NCAzMC43MTUyIDM0LjU2NjlDMzEuMDg0NSAzNC4zMDE4IDMxLjMxODggMzQuMjExIDMxLjY4MyAzNC4xOTEzQzMxLjk3NTkgMzQuMTc2NiAzMi4xOTI0IDM0LjIxODMgMzIuNDcyNiAzNC4zNDg0QzMyLjYyMjggMzQuNDE3MiAzMi43MDk0IDM0LjQ4MSAzMi44ODAxIDM0LjY0NzlDMzMuMzYxNCAzNS4xMTkyIDMzLjQ5ODkgMzUuNTc1OCAzMy4yOTUyIDM2LjAzOThDMzIuOTY2NyAzNi43ODg1IDMxLjg3NjYgMzcuNjM3OCAzMC4yMTg2IDM4LjQzODFDMjcuODA0MiAzOS41OTkxIDI1LjIzNDQgNDAuMzAxMiAyMi40NzYxIDQwLjU1MTZDMjEuNjQ4NCA0MC42Mjc3IDIxLjAzOTcgNDAuNjQ3MyAxOS45MTY1IDQwLjYzMjZDMTguNjEgNDAuNjE3OSAxNy44OTk0IDQwLjU2NjMgMTYuNjk5OCA0MC40MDQzQzE2LjQyMjIgNDAuMzY1IDE2LjIxMDggNDAuMzQ3OCAxNi4yMDA2IDQwLjM2MDFDMTYuMTc1MiA0MC4zODQ3IDE1Ljg3NzIgNDIuMTc5MSAxNS44OTI1IDQyLjE5MzhDMTUuOTM1NyA0Mi4yMzMxIDE3LjQzMzMgNDIuNDA0OSAxOC4zMTIgNDIuNDczN0MxOS4wMDk4IDQyLjUyNzcgMjEuMzczMyA0Mi41MzUgMjIuMDMwNCA0Mi40ODU5QzI1LjI3MjYgNDIuMjQwNSAyNy44Njc4IDQxLjU5NDkgMzAuNjMzNyA0MC4zNDc4QzMyLjI2MTIgMzkuNjEzOSAzMy42MDg1IDM4LjczMjYgMzQuMzMxOCAzNy45Mjc1QzM1LjA2MDIgMzcuMTE3NCAzNS4zNzg1IDM2LjM1NjQgMzUuMzQwMyAzNS41MjE4QzM1LjMyIDM1LjA4MjQgMzUuMjI4MyAzNC43Mjg5IDM1LjAyOTYgMzQuMzE5QzM1LjAyNDUgMzQuMzA0MyAzNS4xNzczIDM0LjE2MTkgMzUuMzY4MyAzMy45OTk5QzM1LjgyNDIgMzMuNjE2OSAzNi42OCAzMi43OTQ2IDM3LjA5NTEgMzIuMzQyOUMzOC4xMDg4IDMxLjIzNTggMzguOTM0IDMwLjExNCAzOS43MDU3IDI4Ljc4MTFDNDAuMDAxMSAyOC4yNzI5IDQwLjE2NDEgMjguMDUyIDQwLjQ3NzQgMjcuNzM1NEM0MC44NDkyIDI3LjM2NDcgNDEuMjU0MiAyNy4wNzk5IDQxLjUyNjcgMjcuMDAzOEM0MS42NDY0IDI2Ljk2OTUgNDEuNjU2NiAyNi45Njk1IDQxLjc2ODYgMjcuMDIxQzQxLjkyMTQgMjcuMDk0NyA0MS45OTAyIDI3LjIyOTcgNDIuMDI4NCAyNy41MjY3QzQyLjExNzUgMjguMjA5MSA0MS43MzA0IDI5LjU1MTkgNDAuOTg5MyAzMS4xMzI3QzQwLjQ0NDMgMzIuMjkxNCAzOS4xNzg1IDM0LjU4OSAzOC40ODU3IDM1LjY3NjVDMzYuODI3NyAzOC4yNzg1IDM0Ljg0MTEgNDAuNjY0NSAzMi4yNzY1IDQzLjEzMTVDMzEuMjUwMSA0NC4xMjA4IDI5LjgwMzQgNDUuNDA5NSAyOS42MjI2IDQ1LjQ5NzlDMjkuMzA2OCA0NS42NTUgMjguMTk4OSA0NS44NTM4IDI3LjAzNSA0NS45NjY4QzIzLjE1MSA0Ni4zMzk5IDE5LjAzMjcgNDUuOTc2NiAxNS4yNDU1IDQ0LjkyMzVDMTEuMzAzIDQzLjgyODcgNy44MTg4OCA0Mi4wMTIyIDQuNzY3NzQgMzkuNDU2OEw0LjQ3OTk0IDM5LjIxNjJIMi4yMzg3SDBWNDAuMTYxM1Y0MS4xMDY0SDEuODY5NEgzLjc0MTM1TDMuOTc4MjEgNDEuMjk3OEM2Ljc1MTc1IDQzLjUzOSAxMC4wOTgzIDQ1LjMxODcgMTMuNjM4NSA0Ni40MzMyQzE4LjExNTkgNDcuODM5NyAyMy4yNTggNDguMzI4MiAyNy44NSA0Ny43ODA4QzI4LjYxNDEgNDcuNjkgMjkuNTI1OCA0Ny41MjU1IDI5Ljk0MzUgNDcuNDAyOEMzMC41MDg5IDQ3LjIzNTkgMzAuODA2OSA0Ny4wNTkxIDMxLjQxNTYgNDYuNTMxNEMzNC44OTQ2IDQzLjUwOTYgMzcuNTg2NyA0MC41MzIgMzkuNzAwNiAzNy4zNzI3QzQwLjMzNDcgMzYuNDI1MiA0MC44MTEgMzUuNjI3NCA0MS41MTM5IDM0LjM0MzVDNDIuNTc4NSAzMi4zOTk0IDQzLjE3NDUgMzEuMTM1MiA0My41NDYzIDMwLjAzNTRDNDQuMDk5IDI4LjQwMyA0NC4xNDQ5IDI3LjIxOTkgNDMuNjk0MSAyNi4zNDExQzQzLjQyNDEgMjUuODE4MiA0My4wMTQgMjUuNDU0OSA0Mi40NTM3IDI1LjIzODlDNDIuMTYzNCAyNS4xMzA5IDQxLjk2OTggMjUuMDk5IDQxLjYzNjIgMjUuMTA2M0M0MS40NzA2IDI1LjExMTIgNDEuMzM1NyAyNS4xMDM5IDQxLjMzNTcgMjUuMDkxNkM0MS4zMzU3IDI1LjA4MTggNDEuMzY4OCAyNC45NTkgNDEuNDA5NSAyNC44MjE2QzQyLjEzNTQgMjIuNDExIDQyLjM2NDYgMTkuODA2NSA0Mi4wNzE3IDE3LjI1ODVDNDEuNjEwNyAxMy4yMjUzIDM5Ljg0NTcgOS40NTIzOSAzNi45OTA3IDYuMzk2MjNDMzYuNjI2NSA2LjAwNTkyIDM1LjcwOTYgNS4xMzIwMyAzNS4zMTIzIDQuNzk4MTlDMzIuMjY2MyAyLjIzNzg4IDI4LjU2MDYgMC42MjUxMTQgMjQuNjEyOSAwLjEzNjYyQzIzLjcxOSAwLjAyODYxMDIgMjMuNDAwNiAwLjAwODk3MjE3IDIyLjE5NTkgMC4wMDE2MDk4QzIxLjU1MTYgLTAuMDAwODQ2ODYzIDIwLjk1NTYgLTAuMDAwODQ2ODYzIDIwLjg3MTYgMC4wMDQwNjI2NVpNMjIuNjQxNyAxLjg3OTQ5QzIyLjk5NTcgMS44OTQyMiAyMy40MjEgMS45MTYzMSAyMy41ODQgMS45Mjg1OUMyOC4xNTA1IDIuMzI2MjYgMzIuMjk5NCA0LjI5NDk2IDM1LjQxOTMgNy41NDc1QzM3LjY5MTEgOS45MTM4OCAzOS4yNDcyIDEyLjg2OTQgMzkuODk2NyAxNi4wNDM0QzQwLjk1NjIgMjEuMjMwMyAzOS41Mjc0IDI2LjU5MzkgMzYuMDA1MSAzMC42NTY1QzM1LjM2NTggMzEuMzkyOSAzNC40NDY0IDMyLjI5MTQgMzMuODMgMzIuNzc3NEwzMy43MjMxIDMyLjg2MzNMMzMuNjUxOCAzMi44MTQyQzMzLjUxNjggMzIuNzIzNCAzMy4xMDQyIDMyLjUzNjggMzIuODgwMSAzMi40NjU3QzMyLjI0MzMgMzIuMjY0NCAzMS41Mzc5IDMyLjI0MjMgMzAuODg4NCAzMi40MDE4QzMwLjM3OSAzMi41MjcgMjkuOTkxOSAzMi43MTM2IDI5LjQ5MjcgMzMuMDc5M0MyOC41MDIgMzMuNzk4NiAyNy4yNDEzIDM0LjQ3MTIgMjUuODYzNCAzNS4wMTEyQzI1LjEyNDggMzUuMzAwOSAyMy45ODEzIDM1LjY0NDUgMjMuMjQ3OCAzNS44MDE3TDIzLjAyMzcgMzUuODQ4M1YyOS4yNzJDMjMuMDIzNyAyNC4wMzExIDIzLjAzMTMgMjIuNjkzMyAyMy4wNTY4IDIyLjY4MzVDMjMuMDcyMSAyMi42Nzg2IDIzLjQ2NjggMjIuNjQ2NyAyMy45MzI5IDIyLjYxMjNDMjUuNDMwNSAyMi40OTk0IDI2LjM4MDUgMjIuMzc0MiAyNy4xNjIzIDIyLjE5MjVDMjkuODE2MiAyMS41NzY0IDMxLjA1OSAyMC4xMDg0IDMxLjc3MjIgMTYuNzU1M0MzMS45NjU3IDE1Ljg0NDYgMzIuMTQ5MSAxNS4xNTk3IDMyLjM3MzIgMTQuNTMxM0MzMi41OTc0IDEzLjg5NzkgMzIuNzA5NCAxMy42NzcgMzMuNTYyNiAxMi4yMjYzQzMzLjg2MDYgMTEuNzIwNiAzMy45ODU0IDExLjQ4NzQgMzMuOTU5OSAxMS40ODI1QzMzLjkxOTIgMTEuNDcyNiAzMS42Mjk1IDExLjc2NzIgMzAuOTMxNyAxMS44NzI4QzI2LjI5NjQgMTIuNTY3NSAyMy42NTUzIDEzLjc0NTcgMjIuMjggMTUuNzM2NUMyMS43OTg2IDE2LjQzMTIgMjEuNDM3IDE3LjM2NjUgMjEuMzE0NyAxOC4yMjgxTDIxLjI4NjcgMTguNDM2OEwyMC44OTQ1IDE4LjA2MzZDMjAuMjkwOSAxNy40ODY4IDE5LjkwNjMgMTcuMTk3MSAxOS4yNjQ1IDE2LjgyODlDMTcuMjA2NiAxNS42NDgyIDEzLjg5MzIgMTQuODAxMyA5LjI4MzMzIDE0LjI3NkM4LjkxOTEzIDE0LjIzNDIgOC41OTU2OCAxNC4xOTc0IDguNTY1MTEgMTQuMTkyNUM4LjUxNDE4IDE0LjE4NTEgOC41MTE2MyAxNC4xOTAxIDguNTM3MSAxNC4yMzY3QzguNTUyMzggMTQuMjY2MSA4LjgxNDcxIDE0LjcxMjkgOS4xMTc3OSAxNS4yMzMzQzkuNDIzNDEgMTUuNzUzNyA5LjczOTIyIDE2LjMxMSA5LjgyMzI3IDE2LjQ3M0MxMC4yNzQxIDE3LjMzNDYgMTAuNjIwNCAxOC40NDQxIDEwLjk3NyAyMC4xNDI4QzExLjU0NzUgMjIuODcgMTIuNDY0NCAyNC40OTc1IDEzLjk3NDcgMjUuNDY5NkMxNS4yMjUyIDI2LjI3MjMgMTYuOTIzOSAyNi42Nzc0IDE5LjU5ODEgMjYuODA3NUMyMC4wNjE3IDI2LjgyOTUgMjAuODAwMyAyNi44OTM0IDIwLjk4NjIgMjYuOTI1M0wyMS4xNTE3IDI2Ljk1NDdMMjEuMTU5NCAzMS41Mzc4TDIxLjE2NDUgMzYuMTE4M0wyMS4wNTc1IDM2LjEzM0MyMC44MDc5IDM2LjE2NSAxOS4yMzE0IDM2LjE3NzIgMTguODA4NiAzNi4xNTAyQzE2LjkyMTQgMzYuMDIyNiAxNS4wODc2IDM1LjU2NiAxMy4yMzEgMzQuNzU4NEMxMi41ODkyIDM0LjQ3ODUgMTEuNTA0MiAzMy43OTEyIDEwLjYwNzcgMzMuMDk0MUM5LjQ2OTI1IDMyLjIwNzkgOC4zMjU3MSAzMS4wNjY0IDcuNDQ3MDQgMjkuOTM3M0M0LjQzNjY0IDI2LjA3MSAzLjIxOTI0IDIxLjE5MzQgNC4wNzQ5OSAxNi40MjE0QzQuOTcxNDkgMTEuNDIzNSA4LjEyOTYgNi45OTI3MyAxMi42NzA3IDQuMzY2MTVDMTUuMjg2MyAyLjg1MTU3IDE4LjI3ODkgMS45OTI0MSAyMS4zMTczIDEuODgxOTVDMjEuNTg5OCAxLjg2OTY3IDIxLjg1NDcgMS44NjIzMSAyMS45MDMxIDEuODU5ODVDMjEuOTUxNSAxLjg1NzQgMjIuMjg1MSAxLjg2NzIyIDIyLjY0MTcgMS44Nzk0OVpNMzAuNjgyMSAxMy43NDMzQzMwLjY3NDUgMTMuNzYyOSAzMC42MTA4IDEzLjk0OTUgMzAuNTM5NSAxNC4xNjMxQzMwLjM2ODggMTQuNjcxMiAzMC4yNTY4IDE1LjA5MDkgMjkuOTY2NCAxNi4zMDZDMjkuODM0IDE2Ljg2MDggMjkuNjk2NSAxNy40MTMxIDI5LjY2MDggMTcuNTMzNEMyOS4zMTcgMTguNzA2OCAyOC44MjI5IDE5LjQ2NTMgMjguMDk3IDE5LjkzMTdDMjcuMzAyNCAyMC40NDIzIDI2LjQyMzcgMjAuNjI2NCAyMy45MzI5IDIwLjgwMDdDMjMuNTk5MyAyMC44MjUyIDIzLjMyMTcgMjAuODM3NSAyMy4zMTQgMjAuODI3N0MyMy4yOTM2IDIwLjc5NTggMjMuMjA0NSAyMC4zNTE1IDIzLjE1ODcgMjAuMDU0NEMyMy4wOTI0IDE5LjYxMjYgMjMuMDk3NSAxOC42ODQ3IDIzLjE3MTQgMTguMzAxOEMyMy40MzM3IDE2LjkyNzEgMjQuMzM1MyAxNS44NDIxIDI1LjgzNTQgMTUuMDk1OUMyNi42NDUzIDE0LjY5MzMgMjcuNTIxNCAxNC4zOTEzIDI4LjcyODcgMTQuMTA0MUMyOS4xMDgxIDE0LjAxMzMgMzAuMzY2MyAxMy43NjI5IDMwLjY3NDUgMTMuNzEzOEMzMC42ODQ3IDEzLjcxMzggMzAuNjg5OCAxMy43MjYxIDMwLjY4MjEgMTMuNzQzM1pNMTIuNTA1MSAxNi41NDkxQzE1LjcwOTEgMTcuMTA4NyAxNy44NDA4IDE3Ljg3NzEgMTkuMTc3OSAxOC45NTQ3QzE5LjQzNTEgMTkuMTYwOSAxOS44MDk1IDE5LjUyNjcgMTkuOTk1NSAxOS43NTAxQzIwLjU4MTIgMjAuNDU0NiAyMC45NDU0IDIxLjMzODMgMjEuMDY1MSAyMi4zNDk2QzIxLjEwODQgMjIuNzMyNiAyMS4wODA0IDIzLjcwMjIgMjEuMDE0MiAyNC4xMTk1QzIwLjk0OCAyNC41MjIxIDIwLjgzNTkgMjUuMDU3MiAyMC44MTMgMjUuMDgxOEMyMC44MDI4IDI1LjA5MTYgMjAuNTk5MSAyNS4wODQyIDIwLjM2MjIgMjUuMDY0NkMyMC4xMjI4IDI1LjA0NDkgMTkuNjY2OSAyNS4wMTMgMTkuMzQzNSAyNC45OTA5QzE3LjgxMDIgMjQuODkwMyAxNi45NTk2IDI0Ljc2MjcgMTYuMTYyNCAyNC41MDk4QzE0LjkzMjMgMjQuMTIyIDE0LjE4ODYgMjMuNTAwOSAxMy42MjgzIDIyLjM4ODlDMTMuMzA3NCAyMS43NTggMTMuMTA4NyAyMS4wOTUzIDEyLjY4MDkgMTkuMjQ2OEMxMi40MTM0IDE4LjA5MDYgMTIuMTQwOSAxNy4xNjc3IDExLjg3MDkgMTYuNTAyNEMxMS44NDI5IDE2LjQzMzcgMTEuODQ1NSAxNi40MzM3IDExLjkyNyAxNi40NDg0QzExLjk3MDMgMTYuNDU1OCAxMi4yMzI2IDE2LjUgMTIuNTA1MSAxNi41NDkxWiIgZmlsbD0iIzczREM3OCIvPgo8L3N2Zz4K\"},1195:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgNFY1Ljg2MjE2QzMgNi4xMDAwOCAzLjA4NDgyIDYuMzMwMiAzLjIzOTI0IDYuNTExMTlMOS4wNjA3NiAxMy4zMzVDOS4yMTUxOCAxMy41MTYgOS4zIDEzLjc0NjEgOS4zIDEzLjk4NFYxOS40MjAyQzkuMyAyMC4xNTQyIDEwLjA2NDQgMjAuNjM4MSAxMC43Mjc5IDIwLjMyNDFMMTQuNTc3OSAxOC41MDE2QzE0LjkyNzIgMTguMzM2MiAxNS4xNSAxNy45ODQzIDE1LjE1IDE3LjU5NzhWMTMuOTYzNUMxNS4xNSAxMy43MzgxIDE1LjIyNjIgMTMuNTE5MiAxNS4zNjYyIDEzLjM0MjVMMjAuNzgzOCA2LjUwMzYyQzIwLjkyMzggNi4zMjY5MiAyMSA2LjEwODEgMjEgNS44ODI2N1Y0QzIxIDMuNDQ3NzIgMjAuNTUyMyAzIDIwIDNINEMzLjQ0NzcyIDMgMyAzLjQ0NzcyIDMgNFoiIHN0cm9rZT0iIzIzMjYzMCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=\"},1133:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDEzIDEwIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMS4xMDM5NCA0Ljk5OTY1TDQuNDYzOTQgOC4zNTk2NUwxMS4xODM5IDEuNjM5NjUiIHN0cm9rZT0iIzBDNjEyQyIgc3Ryb2tlLXdpZHRoPSIxLjkyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+\"},5943:(e,t,n)=>{\"use strict\";e.exports=n.p+\"79aa5f36ec78c446f986.svg\"},2400:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDYwMTUiPgo8ZyBpZD0iR3JvdXAgNjAxNiI+CjxwYXRoIGlkPSJWZWN0b3IgNDQzMjUzNDQiIGQ9Ik0yNSAxMlYyOEg1VjEyIiBzdHJva2U9IiMwMjVCNzUiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBpZD0iQ29tYmluZWQtU2hhcGUiIGQ9Ik0xNS4zNjE2IDIyLjU4ODJDMTYuNzg1NiAyMi41ODgyIDE4LjkyMTEgMjMuNTc1NCAxOC45MjExIDI0Ljc5MzlDMTguOTIxMSAyNi4wMTI0IDE5LjQwNCAyNyAxNy45ODA0IDI3SDEyLjAxOTZDMTAuNTk2IDI3IDExLjA3ODkgMjYuMDEyNCAxMS4wNzg5IDI0Ljc5MzlDMTEuMDc4OSAyMy41NzU0IDEzLjIxNCAyMi41ODgyIDE0LjYzNzkgMjIuNTg4MkgxNS4zNjE2Wk0xNSAxN0MxNi4yNjI0IDE3IDE3LjI4NTcgMTguMDUzNCAxNy4yODU3IDE5LjM1MjlDMTcuMjg1NyAyMC42NTI0IDE2LjI2MjQgMjEuNzA1OSAxNSAyMS43MDU5QzEzLjczNzYgMjEuNzA1OSAxMi43MTQzIDIwLjY1MjQgMTIuNzE0MyAxOS4zNTI5QzEyLjcxNDMgMTguMDUzNCAxMy43Mzc2IDE3IDE1IDE3WiIgZmlsbD0iIzAyNUI3NSIvPgo8cGF0aCBpZD0iVmVjdG9yIDQ0MzI1MzQ1IiBkPSJNMjEgMTFWMTFDMjIuNzgwNyAxMy41MDYxIDI2LjY1MDUgMTIuOTQ0OCAyNy42NDU2IDEwLjAzNTlMMjcuNjg4MSA5LjkxMTgyQzI3Ljg5MTEgOS4zMTgyIDI3LjkwNzYgOC42NzY2MyAyNy43MzUzIDguMDczMzhMMjYgMkgyMU0yMSAxMVYyTTIxIDExVjExQzE5LjgxMjMgMTMuNDcxNyAxNi4zMTI0IDEzLjUyNjMgMTUuMDQ4MiAxMS4wOTI4TDE1IDExTTIxIDJIMTVNMTUgMTFWMk0xNSAxMUwxNC40OTE2IDExLjc1NzFDMTMuMDU5NyAxMy44ODk0IDkuODAxNDkgMTMuNDQwMiA5IDExVjExTTE1IDJIOU05IDJINEwyLjIxMTk3IDguMjU4MUMyLjA3MjkxIDguNzQ0ODEgMi4wNTkwMSA5LjI1ODc2IDIuMTcxNTcgOS43NTIyN1Y5Ljc1MjI3QzIuODU2NzEgMTIuNzU2NCA2LjY2NzUxIDEzLjcwNDEgOC42ODAwNCAxMS4zNzA5TDkgMTFNOSAyVjExIiBzdHJva2U9IiMwMjVCNzUiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==\"},3156:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDE2NCAxMzIiIGZpbGw9Im5vbmUiPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMjMxNl8xNjAwNikiPgo8cmVjdCB3aWR0aD0iMTY0IiBoZWlnaHQ9IjEzMiIgcng9IjgiIGZpbGw9IiNDMkM3RDAiLz4KPHBhdGggZD0iTTQ2LjkyOTIgOTQuODMyNkMyNi45NTc5IDkzLjYxNzEgMTQuNjM0MyA2My4xOTAxIDAgNzUuMjQ0NFYxMjRDMCAxMjguNDE4IDMuNTgxNzIgMTMyIDggMTMySDE1NkMxNjAuNDE4IDEzMiAxNjQgMTI4LjQxOCAxNjQgMTI0VjY1LjcwMTRDMTY0IDY1LjcwMTQgMTM2Ljc4IDM1LjU2OTcgMTEzLjUzOCAzNC4wNTg5Qzc4LjMyNTcgMzEuNzY5OSA4Mi4xNTEyIDk2Ljk3NjMgNDYuOTI5MiA5NC44MzI2WiIgZmlsbD0iI0VGRjNGNyIvPgo8Y2lyY2xlIGN4PSI0MyIgY3k9IjU4IiByPSI4IiBmaWxsPSIjRUZGM0Y3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjMxNl8xNjAwNiI+CjxyZWN0IHdpZHRoPSIxNjQiIGhlaWdodD0iMTMyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPg==\"},3117:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDBIMTMuMzMzM1YxNi42NjY3SDBWMFpNMTYuNjY2NyAwSDMwVjEwSDE2LjY2NjdWMFpNMTAgMTMuMzMzM1YzLjMzMzMzSDMuMzMzMzNWMTMuMzMzM0gxMFpNMjYuNjY2NyAyNi42NjY3VjE2LjY2NjdIMjBWMjYuNjY2N0gyNi42NjY3Wk0xMCAyMy4zMzMzVjI2LjY2NjdIMy4zMzMzM1YyMy4zMzMzSDEwWk0yNi42NjY3IDMuMzMzMzNWNi42NjY2N0gyMFYzLjMzMzMzSDI2LjY2NjdaTTMwIDEzLjMzMzNIMTYuNjY2N1YzMEgzMFYxMy4zMzMzWk0wIDIwSDEzLjMzMzNWMzBIMFYyMFoiIGZpbGw9IiM2OTZGODgiLz4KPC9zdmc+\"},9094:e=>{\"use strict\";e.exports=require(\"react\")},477:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},8168:(e,t,n)=>{\"use strict\";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{\"use strict\";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{A:()=>r})},4164:(e,t,n)=>{\"use strict\";function r(e){var t,n,i=\"\";if(\"string\"==typeof e||\"number\"==typeof e)i+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=\" \"),i+=n)}else for(n in e)e[n]&&(i&&(i+=\" \"),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i=\"\",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=\" \"),i+=t);return i}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p=\"/connect-main\",n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};(()=>{\"use strict\";n.r(r),n.d(r,{default:()=>jZ});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Xm,hasStandardBrowserEnv:()=>Zm,hasStandardBrowserWebWorkerEnv:()=>ev});var t=n(9094),i=n.n(t),o=n(5072),a=n.n(o),s=n(7825),l=n.n(s),c=n(7659),d=n.n(c),u=n(5056),h=n.n(u),p=n(540),g=n.n(p),f=n(1113),m=n.n(f),v=n(6839),y={};y.styleTagTransform=m(),y.setAttributes=h(),y.insert=d().bind(null,\"head\"),y.domAPI=l(),y.insertStyleElement=g(),a()(v.A,y),v.A&&v.A.locals&&v.A.locals;var b,w=n(2977);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}!function(e){e.Pop=\"POP\",e.Push=\"PUSH\",e.Replace=\"REPLACE\"}(b||(b={}));const S=\"popstate\";function E(e,t){if(!1===e||null==e)throw new Error(t)}function x(e,t){if(!e){\"undefined\"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function A(e,t){return{usr:e.state,key:e.key,idx:t}}function T(e,t,n,r){return void 0===n&&(n=null),C({pathname:\"string\"==typeof e?e:e.pathname,search:\"\",hash:\"\"},\"string\"==typeof t?R(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function D(e){let{pathname:t=\"/\",search:n=\"\",hash:r=\"\"}=e;return n&&\"?\"!==n&&(t+=\"?\"===n.charAt(0)?n:\"?\"+n),r&&\"#\"!==r&&(t+=\"#\"===r.charAt(0)?r:\"#\"+r),t}function R(e){let t={};if(e){let n=e.indexOf(\"#\");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(\"?\");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var M;function O(e,t,n){void 0===n&&(n=\"/\");let r=U((\"string\"==typeof t?R(t):t).pathname||\"/\",n);if(null==r)return null;let i=k(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e<i.length;++e){let t=j(r);o=B(i[e],t)}return o}function k(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=\"\");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||\"\":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith(\"/\")&&(E(a.relativePath.startsWith(r),'Absolute route path \"'+a.relativePath+'\" nested under path \"'+r+'\" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=q([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(E(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path \"'+s+'\".'),k(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:V(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(\"\"!==e.path&&null!=(n=e.path)&&n.includes(\"?\"))for(let n of I(e.path))i(e,t,n);else i(e,t)})),t}function I(e){let t=e.split(\"/\");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith(\"?\"),o=n.replace(/\\?$/,\"\");if(0===r.length)return i?[o,\"\"]:[o];let a=I(r.join(\"/\")),s=[];return s.push(...a.map((e=>\"\"===e?o:[o,e].join(\"/\")))),i&&s.push(...a),s.map((t=>e.startsWith(\"/\")&&\"\"===t?\"/\":t))}!function(e){e.data=\"data\",e.deferred=\"deferred\",e.redirect=\"redirect\",e.error=\"error\"}(M||(M={})),new Set([\"lazy\",\"caseSensitive\",\"path\",\"id\",\"index\",\"children\"]);const N=/^:[\\w-]+$/,P=3,L=2,F=1,_=10,z=-2,G=e=>\"*\"===e;function V(e,t){let n=e.split(\"/\"),r=n.length;return n.some(G)&&(r+=z),t&&(r+=L),n.filter((e=>!G(e))).reduce(((e,t)=>e+(N.test(t)?P:\"\"===t?F:_)),r)}function B(e,t){let{routesMeta:n}=e,r={},i=\"/\",o=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l=\"/\"===i?t:t.slice(i.length)||\"/\",c=H({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!c)return null;Object.assign(r,c.params);let d=a.route;o.push({params:r,pathname:q([i,c.pathname]),pathnameBase:Q(q([i,c.pathnameBase])),route:d}),\"/\"!==c.pathnameBase&&(i=q([i,c.pathnameBase]))}return o}function H(e,t){\"string\"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),x(\"*\"===e||!e.endsWith(\"*\")||e.endsWith(\"/*\"),'Route path \"'+e+'\" will be treated as if it were \"'+e.replace(/\\*$/,\"/*\")+'\" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to \"'+e.replace(/\\*$/,\"/*\")+'\".');let r=[],i=\"^\"+e.replace(/\\/*\\*?$/,\"\").replace(/^\\/*/,\"/\").replace(/[\\\\.*+^${}|()[\\]]/g,\"\\\\$&\").replace(/\\/:([\\w-]+)(\\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?\"/?([^\\\\/]+)?\":\"/([^\\\\/]+)\")));return e.endsWith(\"*\")?(r.push({paramName:\"*\"}),i+=\"*\"===e||\"/*\"===e?\"(.*)$\":\"(?:\\\\/(.+)|\\\\/*)$\"):n?i+=\"\\\\/*$\":\"\"!==e&&\"/\"!==e&&(i+=\"(?:(?=\\\\/|$))\"),[new RegExp(i,t?void 0:\"i\"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\\/+$/,\"$1\"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(\"*\"===r){let e=s[n]||\"\";a=o.slice(0,o.length-e.length).replace(/(.)\\/+$/,\"$1\")}const l=s[n];return e[r]=i&&!l?void 0:(l||\"\").replace(/%2F/g,\"/\"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function j(e){try{return e.split(\"/\").map((e=>decodeURIComponent(e).replace(/\\//g,\"%2F\"))).join(\"/\")}catch(t){return x(!1,'The URL path \"'+e+'\" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+\").\"),e}}function U(e,t){if(\"/\"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(\"/\")?t.length-1:t.length,r=e.charAt(n);return r&&\"/\"!==r?null:e.slice(n)||\"/\"}function W(e,t,n,r){return\"Cannot include a '\"+e+\"' character in a manually specified `to.\"+t+\"` field [\"+JSON.stringify(r)+\"].  Please separate it out to the `to.\"+n+'` field. Alternatively you may provide the full path as a string in <Link to=\"...\"> and the router will parse it for you.'}function Y(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function K(e,t,n,r){let i;void 0===r&&(r=!1),\"string\"==typeof e?i=R(e):(i=C({},e),E(!i.pathname||!i.pathname.includes(\"?\"),W(\"?\",\"pathname\",\"search\",i)),E(!i.pathname||!i.pathname.includes(\"#\"),W(\"#\",\"pathname\",\"hash\",i)),E(!i.search||!i.search.includes(\"#\"),W(\"#\",\"search\",\"hash\",i)));let o,a=\"\"===e||\"\"===i.pathname,s=a?\"/\":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith(\"..\")){let t=s.split(\"/\");for(;\"..\"===t[0];)t.shift(),e-=1;i.pathname=t.join(\"/\")}o=e>=0?t[e]:\"/\"}let l=function(e,t){void 0===t&&(t=\"/\");let{pathname:n,search:r=\"\",hash:i=\"\"}=\"string\"==typeof e?R(e):e,o=n?n.startsWith(\"/\")?n:function(e,t){let n=t.replace(/\\/+$/,\"\").split(\"/\");return e.split(\"/\").forEach((e=>{\"..\"===e?n.length>1&&n.pop():\".\"!==e&&n.push(e)})),n.length>1?n.join(\"/\"):\"/\"}(n,t):t;return{pathname:o,search:X(r),hash:Z(i)}}(i,o),c=s&&\"/\"!==s&&s.endsWith(\"/\"),d=(a||\".\"===s)&&n.endsWith(\"/\");return l.pathname.endsWith(\"/\")||!c&&!d||(l.pathname+=\"/\"),l}const q=e=>e.join(\"/\").replace(/\\/\\/+/g,\"/\"),Q=e=>e.replace(/\\/+$/,\"\").replace(/^\\/*/,\"/\"),X=e=>e&&\"?\"!==e?e.startsWith(\"?\")?e:\"?\"+e:\"\",Z=e=>e&&\"#\"!==e?e.startsWith(\"#\")?e:\"#\"+e:\"\";Error;const J=[\"post\",\"put\",\"patch\",\"delete\"],ee=(new Set(J),[\"get\",...J]);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}new Set(ee),new Set([301,302,303,307,308]),new Set([307,308]),Symbol(\"deferred\");const ne=t.createContext(null),re=t.createContext(null),ie=t.createContext(null),oe=t.createContext(null),ae=t.createContext({outlet:null,matches:[],isDataRoute:!1}),se=t.createContext(null);function le(){return null!=t.useContext(oe)}function ce(){return le()||E(!1),t.useContext(oe).location}function de(e){t.useContext(ie).static||t.useLayoutEffect(e)}function ue(){let{isDataRoute:e}=t.useContext(ae);return e?function(){let{router:e}=function(e){let n=t.useContext(ne);return n||E(!1),n}(ve.UseNavigateStable),n=be(ye.UseNavigateStable),r=t.useRef(!1);de((()=>{r.current=!0}));let i=t.useCallback((function(t,i){void 0===i&&(i={}),r.current&&(\"number\"==typeof t?e.navigate(t):e.navigate(t,te({fromRouteId:n},i)))}),[e,n]);return i}():function(){le()||E(!1);let e=t.useContext(ne),{basename:n,future:r,navigator:i}=t.useContext(ie),{matches:o}=t.useContext(ae),{pathname:a}=ce(),s=JSON.stringify(Y(o,r.v7_relativeSplatPath)),l=t.useRef(!1);de((()=>{l.current=!0}));let c=t.useCallback((function(t,r){if(void 0===r&&(r={}),!l.current)return;if(\"number\"==typeof t)return void i.go(t);let o=K(t,JSON.parse(s),a,\"path\"===r.relative);null==e&&\"/\"!==n&&(o.pathname=\"/\"===o.pathname?n:q([n,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)}),[n,i,s,a,e]);return c}()}function he(e,n,r,i){le()||E(!1);let{navigator:o}=t.useContext(ie),{matches:a}=t.useContext(ae),s=a[a.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:\"/\");s&&s.route;let d,u=ce();if(n){var h;let e=\"string\"==typeof n?R(n):n;\"/\"===c||(null==(h=e.pathname)?void 0:h.startsWith(c))||E(!1),d=e}else d=u;let p=d.pathname||\"/\",g=p;if(\"/\"!==c){let e=c.replace(/^\\//,\"\").split(\"/\");g=\"/\"+p.replace(/^\\//,\"\").split(\"/\").slice(e.length).join(\"/\")}let f=O(e,{pathname:g}),m=function(e,n,r,i){var o;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||E(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&i&&i.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,i=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||i){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,i,o)=>{let a,u=!1,h=null,p=null;r&&(a=l&&i.route.id?l[i.route.id]:void 0,h=i.route.errorElement||ge,c&&(d<0&&0===o?(function(e,t,n){!1||we[e]||(we[e]=!0)}(\"route-fallback\"),u=!0,p=null):d===o&&(u=!0,p=i.route.hydrateFallbackElement||null)));let g=n.concat(s.slice(0,o+1)),f=()=>{let n;return n=a?h:u?p:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(me,{match:i,routeContext:{outlet:e,matches:g,isDataRoute:null!=r},children:n})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?t.createElement(fe,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:q([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:\"/\"===e.pathnameBase?c:q([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,i);return n&&m?t.createElement(oe.Provider,{value:{location:te({pathname:\"/\",search:\"\",hash:\"\",state:null,key:\"default\"},d),navigationType:b.Pop}},m):m}function pe(){let e=function(){var e;let n=t.useContext(se),r=function(e){let n=t.useContext(re);return n||E(!1),n}(ye.UseRouteError),i=be(ye.UseRouteError);return void 0!==n?n:null==(e=r.errors)?void 0:e[i]}(),n=function(e){return null!=e&&\"number\"==typeof e.status&&\"string\"==typeof e.statusText&&\"boolean\"==typeof e.internal&&\"data\"in e}(e)?e.status+\" \"+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:\"0.5rem\",backgroundColor:\"rgba(200,200,200, 0.5)\"};return t.createElement(t.Fragment,null,t.createElement(\"h2\",null,\"Unexpected Application Error!\"),t.createElement(\"h3\",{style:{fontStyle:\"italic\"}},n),r?t.createElement(\"pre\",{style:i},r):null,null)}const ge=t.createElement(pe,null);class fe extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||\"idle\"!==t.revalidation&&\"idle\"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(\"React Router caught the following error during render\",e,t)}render(){return void 0!==this.state.error?t.createElement(ae.Provider,{value:this.props.routeContext},t.createElement(se.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function me(e){let{routeContext:n,match:r,children:i}=e,o=t.useContext(ne);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(ae.Provider,{value:n},i)}var ve=function(e){return e.UseBlocker=\"useBlocker\",e.UseRevalidator=\"useRevalidator\",e.UseNavigateStable=\"useNavigate\",e}(ve||{}),ye=function(e){return e.UseBlocker=\"useBlocker\",e.UseLoaderData=\"useLoaderData\",e.UseActionData=\"useActionData\",e.UseRouteError=\"useRouteError\",e.UseNavigation=\"useNavigation\",e.UseRouteLoaderData=\"useRouteLoaderData\",e.UseMatches=\"useMatches\",e.UseRevalidator=\"useRevalidator\",e.UseNavigateStable=\"useNavigate\",e.UseRouteId=\"useRouteId\",e}(ye||{});function be(e){let n=function(e){let n=t.useContext(ae);return n||E(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||E(!1),r.route.id}const we={};function Ce(e){let{to:n,replace:r,state:i,relative:o}=e;le()||E(!1);let{future:a,static:s}=t.useContext(ie),{matches:l}=t.useContext(ae),{pathname:c}=ce(),d=ue(),u=K(n,Y(l,a.v7_relativeSplatPath),c,\"path\"===o),h=JSON.stringify(u);return t.useEffect((()=>d(JSON.parse(h),{replace:r,state:i,relative:o})),[d,h,o,r,i]),null}function Se(e){E(!1)}function Ee(e){let{basename:n=\"/\",children:r=null,location:i,navigationType:o=b.Pop,navigator:a,static:s=!1,future:l}=e;le()&&E(!1);let c=n.replace(/^\\/*/,\"/\"),d=t.useMemo((()=>({basename:c,navigator:a,static:s,future:te({v7_relativeSplatPath:!1},l)})),[c,l,a,s]);\"string\"==typeof i&&(i=R(i));let{pathname:u=\"/\",search:h=\"\",hash:p=\"\",state:g=null,key:f=\"default\"}=i,m=t.useMemo((()=>{let e=U(u,c);return null==e?null:{location:{pathname:e,search:h,hash:p,state:g,key:f},navigationType:o}}),[c,u,h,p,g,f,o]);return null==m?null:t.createElement(ie.Provider,{value:d},t.createElement(oe.Provider,{children:r,value:m}))}function xe(e){let{children:t,location:n}=e;return function(e,t){return he(e,t)}(Ae(t),n)}function Ae(e,n){void 0===n&&(n=[]);let r=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let o=[...n,i];if(e.type===t.Fragment)return void r.push.apply(r,Ae(e.props.children,o));e.type!==Se&&E(!1),e.props.index&&e.props.children&&E(!1);let a={id:e.props.id||o.join(\"-\"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ae(e.props.children,o)),r.push(a)})),r}t.startTransition,new Promise((()=>{})),t.Component;const Te={ownerName:\"Owner Name\",mobileNumber:\"Mobile Number\",status:\"Status\",actions:\"Actions\",province:\"Province\",lastLogin:\"Last Login\",provincialCities:\"Provincial Cities / District\",ward:\"Ward / Commune\",shopName:\"Shop Name\",lastScan:\"Last Scan\",averageScan:\"Average Scans Per Day\",availableLoyaltyPoints:\"Available Loyalty Points\",retailers:\"Retailers\",bannerAndScheme:\"Banners and Schemes\",ADD_RETAILER:\"Add Retailer\",MOBILE_NUMBER:\"Mobile Number\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",PROVINCE:\"Province\",PROVINCIAL_CITIES_DISTRICT:\"Provincial Cities / District\",WARD_COMMUNE:\"Ward / Commune\",MOBILE_NUMBER_PLACEHOLDER:\"Enter Mobile Number\",OWNER_NAME_PLACEHOLDER:\"Enter Owner Name\",SHOP_NAME_PLACEHOLDER:\"Enter Shop Name\",PROVINCE_PLACEHOLDER:\"Select Province\",PROVINCIAL_CITIES_DISTRICT_PLACEHOLDER:\"Select Provincial Cities / District\",WARD_COMMUNE_PLACEHOLDER:\"Select Ward / Commune\",ADD:\"Add\",SAVE:\"Save\",CANCEL:\"Cancel\",downloadData:\"Download Data\",addBanner:\"Add Banner\",addScheme:\"Add Scheme\",BANNER_TITLE:\"Banner Title\",BANNER_PLACEHOLDER:\"Enter Banner Title\",title:\"Title\",image:\"Image\",startDateTime:\"Start Date and Time\",endDateTime:\"End Date and Time\",Location:\"Location\",Language:\"Language\",HyperLink:\"HyperLink\",Description:\"Description\",uploadimageDesc:\"Click or drag file to this area to upload\",browseFile:\"Browse Files\",startDate:\"Start Date\",endDate:\"End Date\",startTime:\"Start Time\",endTime:\"End Time\",locationHierarchy:\"Location Hierarchy\",selectLocationHierarchy:\"Select Location Hierarchy\",bannerType:\"Banner Type\",selectBannerType:\"Select Banner Type\",enterHyperLink:\"Enter Hyper Link\",commercialHierarchy:\"Commercial Hierarchy\",selectCommercialHierarchy:\"Select Commercial Hierarchy\",deleteBanner:\"Delete Banner\",deleteBannerConfirmation:\"Are you sure you want to delete the Banner?\",no:\"No\",yes:\"Yes\",fileSizeLimit:\"File size must be less than 2MB\",fileExtAllowed:\"Only JPEG and PNG file formats are allowed\",optional:\"(Optional)\",selectLanguage:\"Select Language\",selectAll:\"Select All\",campStartDate:\"Campaign Start Date\",campCreatedDate:\"Campaign Created Date\",clearFilter:\"Clear Filters\",applyFilter:\"Apply Filter\",active:\"Active\",inactive:\"InActive\",hello:\"Hello\",startTimeError:\"Start time must be greater than or equal to current time\",endTimeError:\"End time must be greater than start time\",imageRequired:\"Image is required\",hyperLinkRequired:\"HyperLink required\",descRequired:\"Description required\",hyperLinkValid:\"Enter valid hyperlink\",scanPoint:\"Scan Points Catalogue\",addProduct:\"Add Product\",brand:\"Brand\",sku:\"SKU\",sapCode:\"SAP Code\",enable:\"Enable\",addBrand:\"Add Brand\",cartonDetails:\"Carton Details\",numberOfItems:\"Number of Items\",GTIN:\"GTIN\",weight:\"Weight\",UOM:\"UOM\",points:\"Points\",dependency:\"Dependency\",shipperDetails:\"Shipper Details\",displayBoxDetails:\"Display Box Details\",unitDetails:\"Unit Details\",editProduct:\"Edit Product\",NUMBER_ITEM_PLACEHOLDER:\"Enter Number of Items\",GTIN_PLACEHOLDER:\"Enter GTIN number multiple allowed with comma separated\",WEIGHT_PLACEHOLDER:\"Enter Weight\",UOM_PLACEHOLDER:\"Select UOM\",POINTS_PLACEHOLDER:\"Enter Points\",DEPENDENCY_PLACEHOLDER:\"Select Dependency\",BRAND_PLACEHOLDER:\"Select Brand\",SKU_PLACEHOLDER:\"Select SKU\",SAP_PLACEHOLDER:\"Enter SAP Code\",details:\"Details\",edit:\"Edit\",delete:\"Delete\",disable:\"Disable\",numberOfItem:\"Number of Items\",gtin:\"GTIN\",unitOfMeasure:\"Unit of Measure\",somethingwentwrong:\"Something went wrong. Please try again.\",boxDetails:\"Box Details\",provinces:\"provinces\",gtinDuplicateError:\"GTIN number should be unique\",download:\"Download\",downloadLabel:\"Download the sample template\",uploadLabel:\"Upload the file after filling up the data in sample template\",upload:\"Upload\",containedButton:\"contained\",chooseFile:\"Choose file\",noFileChosen:\"No File Chosen\",addIndividualProduct:\"Add Individual Product\",bulkUpload:\"Bulk Upload\",uploadProgress:\"Upload In Progress\",uploadComplete:\"Your file processed for approval, Please check My Uploads for further details\"},De={allowedImageFileTypes:[\"image/jpeg\",\"image/jpg\",\"image/png\"],allowedDocumentFileTypes:[\".xls\",\".xlsx\",\"application/vnd.ms-excel\"],maxFileSize:2097152,PAGE_SIZE:10},Re=\"DD/MM/YYYY\",Me=\"HH:mm:ss a\",Oe=\"YYYY-MM-DDTHH:mm:ss.SSS[Z]\",ke=\"DD MMM YYYY\",Ie=\"HH:mm a\",Ne={ALPHABETS_NUMERIC:/[^a-zA-Z\\s0-9]/g,HTTPS_CHECK:/^((https):\\/\\/)/};let Pe=function(e){return e.RETAILER_LIST=\"RETAILER_LIST\",e.BANNER_SCHEME=\"BANNER_SCHEME\",e.SCAN_POINT_LIST=\"SCAN_POINT_LIST\",e}({}),Le=function(e){return e.ROOT=\"/\",e.PAGE_NOT_FOUND=\"*\",e.DASHBOARD=\"dashboard\",e.SMARTAGRO=\"smartagro\",e.START_PAGE=\"/connect-main\",e.RETAILER_LIST=\"/connect-main/connect-retailer-list\",e.BANNER_LIST=\"/connect-main/connect-banner-list\",e.SCAN_POINTS_LIST=\"/connect-main/connect-scan-point-list\",e}({}),Fe=function(e){return e.SHIPPER=\"SHIPPER\",e.CARTON=\"CARTON\",e.UNIT=\"UNIT\",e.BOX=\"BOX\",e}({}),_e=function(e){return e.BASE_URL=\"BASE_URL\",e}({}),ze=function(e){return e.CARTON=\"Carton\",e.SHIPPER=\"Shipper\",e.DISPLAYBOX=\"Display Box\",e.UNIT=\"Unit\",e.BOX=\"BOX\",e}({});const Ge=[{id:1,name:\"kg\"},{id:2,name:\"gm\"},{id:3,name:\"ltr\"},{id:3,name:\"ml\"},{id:3,name:\"pc\"}],Ve=[{id:0,title:Te.addIndividualProduct},{id:1,title:Te.bulkUpload}],Be=(0,t.createContext)({showLoader:()=>{},hideLoader:()=>{}}),He={BackOfficeProps:{globalStore:{User:{IsLoggedIn:!1,UserDetails:{country_list:null,email_id:\"\",first_name:\"\",last_name:\"\",user_id:\"\",role_type_details:{role_type_id:0,role_type_name:\"\",is_super_admin_login:!1}},AccessToken:null,isTCAccepted:!1,selectedCountry:{countryName:\"\",countryValue:0,countryCode:\"\"},BusinessUnits:[],selectedBusinessUnit:{user_bu_id:0,bu_id:0,bu_name:\"\",userRoleControls:{module_access_information_dto_list:[],roleId:null,role_code:\"\",role_name:\"\",role_type_dto:null}},HomeAccountId:null,country_App_BUs_Mapping_List:[],selectedApplication:{user_country_app_id:0,country_app_id:0,is_country_app_active:!1,app_details:{app_id:0,app_code:\"\",app_name:\"\"},app_base_url:\"\",user_bu_list:[]},getUserRoleControls:()=>{}},App:{activeSideMenuTab:\"\",isSideMenuOpen:!1,isTheme:\"\",isToken:!1,setAuditId:null,setFilter:{},setLoginData:null,setLogout:!1,setRowId:null,setSort:null,showLoader:!1,showThemeLoader:!1,toastMessage:null,setSmartAgroAppLayout:!1}},baseurl:\"\"},onRouteChange:e=>{},currentParentPath:{pathname:\"\"},getUserRoleControls:void 0},je=(0,t.createContext)(He),Ue=()=>{const e=(0,t.useContext)(je);if(!e)return{};const{BackOfficeProps:n={},onRouteChange:r,currentParentPath:i}=e,{globalStore:o={}}=n,{User:a={}}=o;return{User:a,onRouteChange:r,currentParentPath:i}};var We=n(4164);const $e=e=>\"number\"==typeof e&&!isNaN(e),Ye=e=>\"string\"==typeof e,Ke=e=>\"function\"==typeof e,qe=e=>Ye(e)||Ke(e)?e:null,Qe=e=>(0,t.isValidElement)(e)||Ye(e)||Ke(e)||$e(e);function Xe(e){let{enter:n,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:d,nodeRef:u,isIn:h,playToast:p}=e;const g=i?`${n}--${l}`:n,f=i?`${r}--${l}`:r,m=(0,t.useRef)(0);return(0,t.useLayoutEffect)((()=>{const e=u.current,t=g.split(\" \"),n=r=>{r.target===u.current&&(p(),e.removeEventListener(\"animationend\",n),e.removeEventListener(\"animationcancel\",n),0===m.current&&\"animationcancel\"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(\"animationend\",n),e.addEventListener(\"animationcancel\",n)}),[]),(0,t.useEffect)((()=>{const e=u.current,t=()=>{e.removeEventListener(\"animationend\",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame((()=>{i.minHeight=\"initial\",i.height=r+\"px\",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height=\"0\",i.padding=\"0\",i.margin=\"0\",setTimeout(t,n)}))}))}(e,d,a):d()};h||(c?t():(m.current=1,e.className+=` ${f}`,e.addEventListener(\"animationend\",t)))}),[h]),t.createElement(t.Fragment,null,s)}}function Ze(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Je=new Map;let et=[];const tt=new Set,nt=e=>tt.forEach((t=>t(e))),rt=()=>Je.size>0;function it(e,t){var n;if(t)return!(null==(n=Je.get(t))||!n.isToastActive(e));let r=!1;return Je.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function ot(e,t){Qe(e)&&(rt()||et.push({content:e,options:t}),Je.forEach((n=>{n.buildToast(e,t)})))}function at(e,t){Je.forEach((n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)}))}function st(e){const{subscribe:n,getSnapshot:r,setProps:i}=(0,t.useRef)(function(e){const n=e.containerId||1;return{subscribe(r){const i=function(e,n,r){let i=1,o=0,a=[],s=[],l=[],c=n;const d=new Map,u=new Set,h=()=>{l=Array.from(d.values()),u.forEach((e=>e()))},p=e=>{s=null==e?[]:s.filter((t=>t!==e)),h()},g=e=>{const{toastId:n,onOpen:i,updateId:o,children:a}=e.props,l=null==o;e.staleId&&d.delete(e.staleId),d.set(n,e),s=[...s,e.props.toastId].filter((t=>t!==e.staleId)),h(),r(Ze(e,l?\"added\":\"updated\")),l&&Ke(i)&&i((0,t.isValidElement)(a)&&a.props)};return{id:e,props:c,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{d.forEach((n=>{null!=t&&t!==n.props.toastId||Ke(n.toggle)&&n.toggle(e)}))},removeToast:p,toasts:d,clearQueue:()=>{o-=a.length,a=[]},buildToast:(n,s)=>{if((t=>{let{containerId:n,toastId:r,updateId:i}=t;const o=n?n!==e:1!==e,a=d.has(r)&&null==i;return o||a})(s))return;const{toastId:l,updateId:u,data:f,staleId:m,delay:v}=s,y=()=>{p(l)},b=null==u;b&&o++;const w={...c,style:c.toastStyle,key:i++,...Object.fromEntries(Object.entries(s).filter((e=>{let[t,n]=e;return null!=n}))),toastId:l,updateId:u,data:f,closeToast:y,isIn:!1,className:qe(s.className||c.toastClassName),bodyClassName:qe(s.bodyClassName||c.bodyClassName),progressClassName:qe(s.progressClassName||c.progressClassName),autoClose:!s.isLoading&&(C=s.autoClose,S=c.autoClose,!1===C||$e(C)&&C>0?C:S),deleteToast(){const e=d.get(l),{onClose:n,children:i}=e.props;Ke(n)&&n((0,t.isValidElement)(i)&&i.props),r(Ze(e,\"removed\")),d.delete(l),o--,o<0&&(o=0),a.length>0?g(a.shift()):h()}};var C,S;w.closeButton=c.closeButton,!1===s.closeButton||Qe(s.closeButton)?w.closeButton=s.closeButton:!0===s.closeButton&&(w.closeButton=!Qe(c.closeButton)||c.closeButton);let E=n;(0,t.isValidElement)(n)&&!Ye(n.type)?E=(0,t.cloneElement)(n,{closeToast:y,toastProps:w,data:f}):Ke(n)&&(E=n({closeToast:y,toastProps:w,data:f}));const x={content:E,props:w,staleId:m};c.limit&&c.limit>0&&o>c.limit&&b?a.push(x):$e(v)?setTimeout((()=>{g(x)}),v):g(x)},setProps(e){c=e},setToggle:(e,t)=>{d.get(e).toggle=t},isToastActive:e=>s.some((t=>t===e)),getSnapshot:()=>c.newestOnTop?l.reverse():l}}(n,e,nt);Je.set(n,i);const o=i.observe(r);return et.forEach((e=>ot(e.content,e.options))),et=[],()=>{o(),Je.delete(n)}},setProps(e){var t;null==(t=Je.get(n))||t.setProps(e)},getSnapshot(){var e;return null==(e=Je.get(n))?void 0:e.getSnapshot()}}}(e)).current;i(e);const o=(0,t.useSyncExternalStore)(n,r,r);return{getToastToRender:function(e){if(!o)return[];const t=new Map;return o.forEach((e=>{const{position:n}=e.props;t.has(n)||t.set(n,[]),t.get(n).push(e)})),Array.from(t,(t=>e(t[0],t[1])))},isToastActive:it,count:null==o?void 0:o.length}}function lt(e){const[n,r]=(0,t.useState)(!1),[i,o]=(0,t.useState)(!1),a=(0,t.useRef)(null),s=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:u,closeOnClick:h}=e;var p,g;function f(){r(!0)}function m(){r(!1)}function v(t){const r=a.current;s.canDrag&&r&&(s.didMove=!0,n&&m(),s.delta=\"x\"===e.draggableDirection?t.clientX-s.start:t.clientY-s.start,s.start!==t.clientX&&(s.canCloseOnClick=!1),r.style.transform=`translate3d(${\"x\"===e.draggableDirection?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,r.style.opacity=\"\"+(1-Math.abs(s.delta/s.removalDistance)))}function y(){document.removeEventListener(\"pointermove\",v),document.removeEventListener(\"pointerup\",y);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();t.style.transition=\"transform 0.2s, opacity 0.2s\",t.style.removeProperty(\"transform\"),t.style.removeProperty(\"opacity\")}}null==(g=Je.get((p={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))||g.setToggle(p.id,p.fn),(0,t.useEffect)((()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener(\"focus\",f),window.addEventListener(\"blur\",m),()=>{window.removeEventListener(\"focus\",f),window.removeEventListener(\"blur\",m)}}),[e.pauseOnFocusLoss]);const b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){s.didMove=!1,document.addEventListener(\"pointermove\",v),document.addEventListener(\"pointerup\",y);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,n.style.transition=\"none\",\"x\"===e.draggableDirection?(s.start=t.clientX,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=t.clientY,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:i,right:o}=a.current.getBoundingClientRect();\"touchend\"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=n&&t.clientY<=r?m():f()}};return l&&c&&(b.onMouseEnter=m,e.stacked||(b.onMouseLeave=f)),h&&(b.onClick=e=>{u&&u(e),s.canCloseOnClick&&d()}),{playToast:f,pauseToast:m,isRunning:n,preventExitTransition:i,toastRef:a,eventHandlers:b}}function ct(e){let{delay:n,isRunning:r,closeToast:i,type:o=\"default\",hide:a,className:s,style:l,controlledProgress:c,progress:d,rtl:u,isIn:h,theme:p}=e;const g=a||c&&0===d,f={...l,animationDuration:`${n}ms`,animationPlayState:r?\"running\":\"paused\"};c&&(f.transform=`scaleX(${d})`);const m=(0,We.A)(\"Toastify__progress-bar\",c?\"Toastify__progress-bar--controlled\":\"Toastify__progress-bar--animated\",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{\"Toastify__progress-bar--rtl\":u}),v=Ke(s)?s({rtl:u,type:o,defaultClassName:m}):(0,We.A)(m,s),y={[c&&d>=1?\"onTransitionEnd\":\"onAnimationEnd\"]:c&&d<1?null:()=>{h&&i()}};return t.createElement(\"div\",{className:\"Toastify__progress-bar--wrp\",\"data-hidden\":g},t.createElement(\"div\",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),t.createElement(\"div\",{role:\"progressbar\",\"aria-hidden\":g?\"true\":\"false\",\"aria-label\":\"notification timer\",className:v,style:f,...y}))}let dt=1;const ut=()=>\"\"+dt++;function ht(e){return e&&(Ye(e.toastId)||$e(e.toastId))?e.toastId:ut()}function pt(e,t){return ot(e,t),t.toastId}function gt(e,t){return{...t,type:t&&t.type||e,toastId:ht(t)}}function ft(e){return(t,n)=>pt(t,gt(e,n))}function mt(e,t){return pt(e,gt(\"default\",t))}mt.loading=(e,t)=>pt(e,gt(\"default\",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),mt.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=Ye(i)?mt.loading(i,n):mt.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void mt.dismiss(r);const o={type:e,...s,...n,data:i},a=Ye(t)?{render:t}:t;return r?mt.update(r,{...o,...a}):mt(a.render,{...o,...a}),i},c=Ke(e)?e():e;return c.then((e=>l(\"success\",a,e))).catch((e=>l(\"error\",o,e))),c},mt.success=ft(\"success\"),mt.info=ft(\"info\"),mt.error=ft(\"error\"),mt.warning=ft(\"warning\"),mt.warn=mt.warning,mt.dark=(e,t)=>pt(e,gt(\"default\",{theme:\"dark\",...t})),mt.dismiss=function(e){!function(e){var t;if(rt()){if(null==e||Ye(t=e)||$e(t))Je.forEach((t=>{t.removeToast(e)}));else if(e&&(\"containerId\"in e||\"id\"in e)){const t=Je.get(e.containerId);t?t.removeToast(e.id):Je.forEach((t=>{t.removeToast(e.id)}))}}else et=et.filter((t=>null!=e&&t.options.toastId!==e))}(e)},mt.clearWaitingQueue=function(e){void 0===e&&(e={}),Je.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},mt.isActive=it,mt.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=Je.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:ut()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,pt(a,o)}},mt.done=e=>{mt.update(e,{progress:1})},mt.onChange=function(e){return tt.add(e),()=>{tt.delete(e)}},mt.play=e=>at(!0,e),mt.pause=e=>at(!1,e);const vt=\"undefined\"!=typeof window?t.useLayoutEffect:t.useEffect,yt=e=>{let{theme:n,type:r,isLoading:i,...o}=e;return t.createElement(\"svg\",{viewBox:\"0 0 24 24\",width:\"100%\",height:\"100%\",fill:\"colored\"===n?\"currentColor\":`var(--toastify-icon-color-${r})`,...o})},bt={info:function(e){return t.createElement(yt,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z\"}))},warning:function(e){return t.createElement(yt,{...e},t.createElement(\"path\",{d:\"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z\"}))},success:function(e){return t.createElement(yt,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z\"}))},error:function(e){return t.createElement(yt,{...e},t.createElement(\"path\",{d:\"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z\"}))},spinner:function(){return t.createElement(\"div\",{className:\"Toastify__spinner\"})}},wt=e=>{const{isRunning:n,preventExitTransition:r,toastRef:i,eventHandlers:o,playToast:a}=lt(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:u,hideProgressBar:h,closeToast:p,transition:g,position:f,className:m,style:v,bodyClassName:y,bodyStyle:b,progressClassName:w,progressStyle:C,updateId:S,role:E,progress:x,rtl:A,toastId:T,deleteToast:D,isIn:R,isLoading:M,closeOnClick:O,theme:k}=e,I=(0,We.A)(\"Toastify__toast\",`Toastify__toast-theme--${k}`,`Toastify__toast--${u}`,{\"Toastify__toast--rtl\":A},{\"Toastify__toast--close-on-click\":O}),N=Ke(m)?m({rtl:A,position:f,type:u,defaultClassName:I}):(0,We.A)(I,m),P=function(e){let{theme:n,type:r,isLoading:i,icon:o}=e,a=null;const s={theme:n,type:r};return!1===o||(Ke(o)?a=o({...s,isLoading:i}):(0,t.isValidElement)(o)?a=(0,t.cloneElement)(o,s):i?a=bt.spinner():(e=>e in bt)(r)&&(a=bt[r](s))),a}(e),L=!!x||!c,F={closeToast:p,type:u,theme:k};let _=null;return!1===s||(_=Ke(s)?s(F):(0,t.isValidElement)(s)?(0,t.cloneElement)(s,F):function(e){let{closeToast:n,theme:r,ariaLabel:i=\"close\"}=e;return t.createElement(\"button\",{className:`Toastify__close-button Toastify__close-button--${r}`,type:\"button\",onClick:e=>{e.stopPropagation(),n(e)},\"aria-label\":i},t.createElement(\"svg\",{\"aria-hidden\":\"true\",viewBox:\"0 0 14 16\"},t.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z\"})))}(F)),t.createElement(g,{isIn:R,done:D,position:f,preventExitTransition:r,nodeRef:i,playToast:a},t.createElement(\"div\",{id:T,onClick:d,\"data-in\":R,className:N,...o,style:v,ref:i},t.createElement(\"div\",{...R&&{role:E},className:Ke(y)?y({type:u}):(0,We.A)(\"Toastify__toast-body\",y),style:b},null!=P&&t.createElement(\"div\",{className:(0,We.A)(\"Toastify__toast-icon\",{\"Toastify--animate-icon Toastify__zoom-enter\":!M})},P),t.createElement(\"div\",null,l)),_,t.createElement(ct,{...S&&!L?{key:`pb-${S}`}:{},rtl:A,theme:k,delay:c,isRunning:n,isIn:R,closeToast:p,hide:h,type:u,style:C,className:w,controlledProgress:L,progress:x||0})))},Ct=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},St=Xe(Ct(\"bounce\",!0)),Et=(Xe(Ct(\"slide\",!0)),Xe(Ct(\"zoom\")),Xe(Ct(\"flip\")),{position:\"top-right\",transition:St,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:\"touch\",draggablePercent:80,draggableDirection:\"x\",role:\"alert\",theme:\"light\"});function xt(e){let n={...Et,...e};const r=e.stacked,[i,o]=(0,t.useState)(!0),a=(0,t.useRef)(null),{getToastToRender:s,isToastActive:l,count:c}=st(n),{className:d,style:u,rtl:h,containerId:p}=n;function g(e){const t=(0,We.A)(\"Toastify__toast-container\",`Toastify__toast-container--${e}`,{\"Toastify__toast-container--rtl\":h});return Ke(d)?d({position:e,rtl:h,defaultClassName:t}):(0,We.A)(t,qe(d))}function f(){r&&(o(!0),mt.play())}return vt((()=>{if(r){var e;const t=a.current.querySelectorAll('[data-in=\"true\"]'),r=12,o=null==(e=n.position)?void 0:e.includes(\"top\");let s=0,l=0;Array.from(t).reverse().forEach(((e,t)=>{const n=e;n.classList.add(\"Toastify__toast--stacked\"),t>0&&(n.dataset.collapsed=`${i}`),n.dataset.pos||(n.dataset.pos=o?\"top\":\"bot\");const a=s*(i?.2:1)+(i?0:r*t);n.style.setProperty(\"--y\",`${o?a:-1*a}px`),n.style.setProperty(\"--g\",`${r}`),n.style.setProperty(\"--s\",\"\"+(1-(i?l:0))),s+=n.offsetHeight,l+=.025}))}}),[i,c,r]),t.createElement(\"div\",{ref:a,className:\"Toastify\",id:p,onMouseEnter:()=>{r&&(o(!1),mt.pause())},onMouseLeave:f},s(((e,n)=>{const i=n.length?{...u}:{...u,pointerEvents:\"none\"};return t.createElement(\"div\",{className:g(e),style:i,key:`container-${e}`},n.map((e=>{let{content:n,props:i}=e;return t.createElement(wt,{...i,stacked:r,collapseAll:f,isIn:l(i.toastId,i.containerId),style:i.style,key:`toast-${i.key}`},n)})))})))}var At=n(8587),Tt=n(8168),Dt=n(6311),Rt=n(4111),Mt=n(771),Ot=n(1848),kt=n(9770),It=n(3541),Nt=n(6852),Pt=n(3034),Lt=n(873);function Ft(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function _t(e,t){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_t(e,t)}function zt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_t(e,t)}const Gt=i().createContext(null);function Vt(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function Bt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ht(e,n,r){var i=Vt(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,t.isValidElement)(s)){var l=a in n,c=a in i,d=n[a],u=(0,t.isValidElement)(d)&&!d.props.in;!c||l&&!u?c||!l||u?c&&l&&(0,t.isValidElement)(d)&&(o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:d.props.in,exit:Bt(s,\"exit\",e),enter:Bt(s,\"enter\",e)})):o[a]=(0,t.cloneElement)(s,{in:!1}):o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Bt(s,\"exit\",e),enter:Bt(s,\"enter\",e)})}})),o}var jt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ut=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Ft(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}zt(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,i=a,Vt(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Bt(e,\"appear\",r),enter:Bt(e,\"enter\",r),exit:Bt(e,\"exit\",r)})}))):Ht(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Vt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Tt.A)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,At.A)(e,[\"component\",\"childFactory\"]),o=this.state.contextValue,a=jt(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i().createElement(Gt.Provider,{value:o},a):i().createElement(Gt.Provider,{value:o},i().createElement(t,r,a))},n}(i().Component);Ut.propTypes={},Ut.defaultProps={component:\"div\",childFactory:function(e){return e}};const Wt=Ut;var $t=n(7437),Yt=n(2640),Kt=n(4848);var qt=n(7553);const Qt=(0,qt.A)(\"MuiTouchRipple\",[\"root\",\"ripple\",\"rippleVisible\",\"ripplePulsate\",\"child\",\"childLeaving\",\"childPulsate\"]),Xt=[\"center\",\"classes\",\"className\"];let Zt,Jt,en,tn,nn=e=>e;const rn=(0,$t.i7)(Zt||(Zt=nn`\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n`)),on=(0,$t.i7)(Jt||(Jt=nn`\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n`)),an=(0,$t.i7)(en||(en=nn`\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n`)),sn=(0,Ot.Ay)(\"span\",{name:\"MuiTouchRipple\",slot:\"Root\"})({overflow:\"hidden\",pointerEvents:\"none\",position:\"absolute\",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:\"inherit\"}),ln=(0,Ot.Ay)((function(e){const{className:n,classes:r,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:d}=e,[u,h]=t.useState(!1),p=(0,We.A)(n,r.ripple,r.rippleVisible,i&&r.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},f=(0,We.A)(r.child,u&&r.childLeaving,i&&r.childPulsate);return l||u||h(!0),t.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,l,d]),(0,Kt.jsx)(\"span\",{className:p,style:g,children:(0,Kt.jsx)(\"span\",{className:f})})}),{name:\"MuiTouchRipple\",slot:\"Ripple\"})(tn||(tn=nn`\n  opacity: 0;\n  position: absolute;\n\n  &.${0} {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  &.${0} {\n    animation-duration: ${0}ms;\n  }\n\n  & .${0} {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & .${0} {\n    opacity: 0;\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  & .${0} {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ${0};\n    animation-duration: 2500ms;\n    animation-timing-function: ${0};\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n`),Qt.rippleVisible,rn,550,(({theme:e})=>e.transitions.easing.easeInOut),Qt.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Qt.child,Qt.childLeaving,on,550,(({theme:e})=>e.transitions.easing.easeInOut),Qt.childPulsate,an,(({theme:e})=>e.transitions.easing.easeInOut)),cn=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiTouchRipple\"}),{center:i=!1,classes:o={},className:a}=r,s=(0,At.A)(r,Xt),[l,c]=t.useState([]),d=t.useRef(0),u=t.useRef(null);t.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const h=t.useRef(!1),p=(0,Yt.A)(),g=t.useRef(null),f=t.useRef(null),m=t.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c((e=>[...e,(0,Kt.jsx)(ln,{classes:{ripple:(0,We.A)(o.ripple,Qt.ripple),rippleVisible:(0,We.A)(o.rippleVisible,Qt.rippleVisible),ripplePulsate:(0,We.A)(o.ripplePulsate,Qt.ripplePulsate),child:(0,We.A)(o.child,Qt.child),childLeaving:(0,We.A)(o.childLeaving,Qt.childLeaving),childPulsate:(0,We.A)(o.childPulsate,Qt.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},d.current)])),d.current+=1,u.current=a}),[o]),v=t.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:o=i||t.pulsate,fakeElement:a=!1}=t;if(\"mousedown\"===(null==e?void 0:e.type)&&h.current)return void(h.current=!1);\"touchstart\"===(null==e?void 0:e.type)&&(h.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(o)u=Math.sqrt((2*l.width**2+l.height**2)/3),u%2==0&&(u+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{m({pulsate:r,rippleX:c,rippleY:d,rippleSize:u,cb:n})},p.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):m({pulsate:r,rippleX:c,rippleY:d,rippleSize:u,cb:n})}),[i,m,p]),y=t.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=t.useCallback(((e,t)=>{if(p.clear(),\"touchend\"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void p.start(0,(()=>{b(e,t)}));g.current=null,c((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return t.useImperativeHandle(n,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),(0,Kt.jsx)(sn,(0,Tt.A)({className:(0,We.A)(Qt.root,o.root,a),ref:f},s,{children:(0,Kt.jsx)(Wt,{component:null,exit:!0,children:l})}))})),dn=cn;var un=n(7245);function hn(e){return(0,un.Ay)(\"MuiButtonBase\",e)}const pn=(0,qt.A)(\"MuiButtonBase\",[\"root\",\"disabled\",\"focusVisible\"]),gn=[\"action\",\"centerRipple\",\"children\",\"className\",\"component\",\"disabled\",\"disableRipple\",\"disableTouchRipple\",\"focusRipple\",\"focusVisibleClassName\",\"LinkComponent\",\"onBlur\",\"onClick\",\"onContextMenu\",\"onDragLeave\",\"onFocus\",\"onFocusVisible\",\"onKeyDown\",\"onKeyUp\",\"onMouseDown\",\"onMouseLeave\",\"onMouseUp\",\"onTouchEnd\",\"onTouchMove\",\"onTouchStart\",\"tabIndex\",\"TouchRippleProps\",\"touchRippleRef\",\"type\"],fn=(0,Ot.Ay)(\"button\",{name:\"MuiButtonBase\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",boxSizing:\"border-box\",WebkitTapHighlightColor:\"transparent\",backgroundColor:\"transparent\",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:\"pointer\",userSelect:\"none\",verticalAlign:\"middle\",MozAppearance:\"none\",WebkitAppearance:\"none\",textDecoration:\"none\",color:\"inherit\",\"&::-moz-focus-inner\":{borderStyle:\"none\"},[`&.${pn.disabled}`]:{pointerEvents:\"none\",cursor:\"default\"},\"@media print\":{colorAdjust:\"exact\"}}),mn=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiButtonBase\"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l=\"button\",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:h=!1,LinkComponent:p=\"a\",onBlur:g,onClick:f,onContextMenu:m,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:C,onMouseDown:S,onMouseLeave:E,onMouseUp:x,onTouchEnd:A,onTouchMove:T,onTouchStart:D,tabIndex:R=0,TouchRippleProps:M,touchRippleRef:O,type:k}=r,I=(0,At.A)(r,gn),N=t.useRef(null),P=t.useRef(null),L=(0,Nt.A)(P,O),{isFocusVisibleRef:F,onFocus:_,onBlur:z,ref:G}=(0,Lt.A)(),[V,B]=t.useState(!1);c&&V&&B(!1),t.useImperativeHandle(i,(()=>({focusVisible:()=>{B(!0),N.current.focus()}})),[]);const[H,j]=t.useState(!1);t.useEffect((()=>{j(!0)}),[]);const U=H&&!d&&!c;function W(e,t,n=u){return(0,Pt.A)((r=>(t&&t(r),!n&&P.current&&P.current[e](r),!0)))}t.useEffect((()=>{V&&h&&!d&&H&&P.current.pulsate()}),[d,h,V,H]);const $=W(\"start\",S),Y=W(\"stop\",m),K=W(\"stop\",v),q=W(\"stop\",x),Q=W(\"stop\",(e=>{V&&e.preventDefault(),E&&E(e)})),X=W(\"start\",D),Z=W(\"stop\",A),J=W(\"stop\",T),ee=W(\"stop\",(e=>{z(e),!1===F.current&&B(!1),g&&g(e)}),!1),te=(0,Pt.A)((e=>{N.current||(N.current=e.currentTarget),_(e),!0===F.current&&(B(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&\"button\"!==l&&!(\"A\"===e.tagName&&e.href)},re=t.useRef(!1),ie=(0,Pt.A)((e=>{h&&!re.current&&V&&P.current&&\" \"===e.key&&(re.current=!0,P.current.stop(e,(()=>{P.current.start(e)}))),e.target===e.currentTarget&&ne()&&\" \"===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&ne()&&\"Enter\"===e.key&&!c&&(e.preventDefault(),f&&f(e))})),oe=(0,Pt.A)((e=>{h&&\" \"===e.key&&P.current&&V&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),C&&C(e),f&&e.target===e.currentTarget&&ne()&&\" \"===e.key&&!e.defaultPrevented&&f(e)}));let ae=l;\"button\"===ae&&(I.href||I.to)&&(ae=p);const se={};\"button\"===ae?(se.type=void 0===k?\"button\":k,se.disabled=c):(I.href||I.to||(se.role=\"button\"),c&&(se[\"aria-disabled\"]=c));const le=(0,Nt.A)(n,G,N),ce=(0,Tt.A)({},r,{centerRipple:o,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:h,tabIndex:R,focusVisible:V}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:[\"root\",t&&\"disabled\",n&&\"focusVisible\"]},a=(0,Rt.A)(o,hn,i);return n&&r&&(a.root+=` ${r}`),a})(ce);return(0,Kt.jsxs)(fn,(0,Tt.A)({as:ae,className:(0,We.A)(de.root,s),ownerState:ce,onBlur:ee,onClick:f,onContextMenu:Y,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:$,onMouseLeave:Q,onMouseUp:q,onDragLeave:K,onTouchEnd:Z,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:c?-1:R,type:k},se,I,{children:[a,U?(0,Kt.jsx)(dn,(0,Tt.A)({ref:L,center:o},M)):null]}))}));var vn=n(8466);function yn(e){return(0,un.Ay)(\"MuiButton\",e)}const bn=(0,qt.A)(\"MuiButton\",[\"root\",\"text\",\"textInherit\",\"textPrimary\",\"textSecondary\",\"textSuccess\",\"textError\",\"textInfo\",\"textWarning\",\"outlined\",\"outlinedInherit\",\"outlinedPrimary\",\"outlinedSecondary\",\"outlinedSuccess\",\"outlinedError\",\"outlinedInfo\",\"outlinedWarning\",\"contained\",\"containedInherit\",\"containedPrimary\",\"containedSecondary\",\"containedSuccess\",\"containedError\",\"containedInfo\",\"containedWarning\",\"disableElevation\",\"focusVisible\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorSuccess\",\"colorError\",\"colorInfo\",\"colorWarning\",\"textSizeSmall\",\"textSizeMedium\",\"textSizeLarge\",\"outlinedSizeSmall\",\"outlinedSizeMedium\",\"outlinedSizeLarge\",\"containedSizeSmall\",\"containedSizeMedium\",\"containedSizeLarge\",\"sizeMedium\",\"sizeSmall\",\"sizeLarge\",\"fullWidth\",\"startIcon\",\"endIcon\",\"icon\",\"iconSizeSmall\",\"iconSizeMedium\",\"iconSizeLarge\"]),wn=t.createContext({}),Cn=t.createContext(void 0),Sn=[\"children\",\"color\",\"component\",\"className\",\"disabled\",\"disableElevation\",\"disableFocusRipple\",\"endIcon\",\"focusVisibleClassName\",\"fullWidth\",\"size\",\"startIcon\",\"type\",\"variant\"],En=e=>(0,Tt.A)({},\"small\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:18}},\"medium\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:20}},\"large\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:22}}),xn=(0,Ot.Ay)(mn,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,vn.A)(n.color)}`],t[`size${(0,vn.A)(n.size)}`],t[`${n.variant}Size${(0,vn.A)(n.size)}`],\"inherit\"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i=\"light\"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o=\"light\"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,Tt.A)({},e.typography.button,{minWidth:64,padding:\"6px 16px\",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([\"background-color\",\"box-shadow\",\"border-color\",\"color\"],{duration:e.transitions.duration.short}),\"&:hover\":(0,Tt.A)({textDecoration:\"none\",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"text\"===t.variant&&\"inherit\"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"outlined\"===t.variant&&\"inherit\"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"contained\"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],\"@media (hover: none)\":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},\"contained\"===t.variant&&\"inherit\"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,\"@media (hover: none)\":{backgroundColor:(e.vars||e).palette[t.color].main}}),\"&:active\":(0,Tt.A)({},\"contained\"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bn.focusVisible}`]:(0,Tt.A)({},\"contained\"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bn.disabled}`]:(0,Tt.A)({color:(e.vars||e).palette.action.disabled},\"outlined\"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},\"contained\"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},\"text\"===t.variant&&{padding:\"6px 8px\"},\"text\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].main},\"outlined\"===t.variant&&{padding:\"5px 15px\",border:\"1px solid currentColor\"},\"outlined\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,Mt.X4)(e.palette[t.color].main,.5)}`},\"contained\"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},\"contained\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},\"inherit\"===t.color&&{color:\"inherit\",borderColor:\"currentColor\"},\"small\"===t.size&&\"text\"===t.variant&&{padding:\"4px 5px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"text\"===t.variant&&{padding:\"8px 11px\",fontSize:e.typography.pxToRem(15)},\"small\"===t.size&&\"outlined\"===t.variant&&{padding:\"3px 9px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"outlined\"===t.variant&&{padding:\"7px 21px\",fontSize:e.typography.pxToRem(15)},\"small\"===t.size&&\"contained\"===t.variant&&{padding:\"4px 10px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"contained\"===t.variant&&{padding:\"8px 22px\",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:\"100%\"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:\"none\",\"&:hover\":{boxShadow:\"none\"},[`&.${bn.focusVisible}`]:{boxShadow:\"none\"},\"&:active\":{boxShadow:\"none\"},[`&.${bn.disabled}`]:{boxShadow:\"none\"}})),An=(0,Ot.Ay)(\"span\",{name:\"MuiButton\",slot:\"StartIcon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,vn.A)(n.size)}`]]}})((({ownerState:e})=>(0,Tt.A)({display:\"inherit\",marginRight:8,marginLeft:-4},\"small\"===e.size&&{marginLeft:-2},En(e)))),Tn=(0,Ot.Ay)(\"span\",{name:\"MuiButton\",slot:\"EndIcon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,vn.A)(n.size)}`]]}})((({ownerState:e})=>(0,Tt.A)({display:\"inherit\",marginRight:-4,marginLeft:8},\"small\"===e.size&&{marginRight:-2},En(e)))),Dn=t.forwardRef((function(e,n){const r=t.useContext(wn),i=t.useContext(Cn),o=(0,Dt.A)(r,e),a=(0,It.A)({props:o,name:\"MuiButton\"}),{children:s,color:l=\"primary\",component:c=\"button\",className:d,disabled:u=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,size:v=\"medium\",startIcon:y,type:b,variant:w=\"text\"}=a,C=(0,At.A)(a,Sn),S=(0,Tt.A)({},a,{color:l,component:c,disabled:u,disableElevation:h,disableFocusRipple:p,fullWidth:m,size:v,type:b,variant:w}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:[\"root\",o,`${o}${(0,vn.A)(t)}`,`size${(0,vn.A)(i)}`,`${o}Size${(0,vn.A)(i)}`,`color${(0,vn.A)(t)}`,n&&\"disableElevation\",r&&\"fullWidth\"],label:[\"label\"],startIcon:[\"icon\",\"startIcon\",`iconSize${(0,vn.A)(i)}`],endIcon:[\"icon\",\"endIcon\",`iconSize${(0,vn.A)(i)}`]},l=(0,Rt.A)(s,yn,a);return(0,Tt.A)({},a,l)})(S),x=y&&(0,Kt.jsx)(An,{className:E.startIcon,ownerState:S,children:y}),A=g&&(0,Kt.jsx)(Tn,{className:E.endIcon,ownerState:S,children:g}),T=i||\"\";return(0,Kt.jsxs)(xn,(0,Tt.A)({ownerState:S,className:(0,We.A)(r.className,E.root,d,T),component:c,disabled:u,focusRipple:!p,focusVisibleClassName:(0,We.A)(E.focusVisible,f),ref:n,type:b},C,{classes:E,children:[x,s,A]}))}));var Rn=n(2532),Mn=n(3571),On=n(9599),kn=n(2858);const In=[\"className\",\"component\"];function Nn(e={}){const{themeId:n,defaultTheme:r,defaultClassName:i=\"MuiBox-root\",generateClassName:o}=e,a=(0,Rn.default)(\"div\",{shouldForwardProp:e=>\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e})(Mn.A),s=t.forwardRef((function(e,t){const s=(0,kn.A)(r),l=(0,On.A)(e),{className:c,component:d=\"div\"}=l,u=(0,At.A)(l,In);return(0,Kt.jsx)(a,(0,Tt.A)({as:d,ref:t,className:(0,We.A)(c,o?o(i):i),theme:n&&s[n]||s},u))}));return s}var Pn=n(2067),Ln=n(3478),Fn=n(8312);const _n=(0,qt.A)(\"MuiBox\",[\"root\"]),zn=(0,Ln.A)(),Gn=Nn({themeId:Fn.A,defaultTheme:zn,defaultClassName:_n.root,generateClassName:Pn.A.generate}),Vn=(0,Ot.Ay)(Gn)((e=>{let{theme:t}=e;return{\"& .MuiButtonBase-root\":{height:t.spacing(4),padding:\"6px 12px\",font:\"normal normal 600 14px/20px NotoSans-Semibold\",\"&.MuiButton-containedPrimary:hover\":{backgroundColor:t.palette.primary.main},\"&.MuiButton-outlinedSecondary\":{border:\"1px solid \".concat(t.palette.grey[100]),color:\"#1D2B3A\"},\"&.MuiButton-outlinedPrimary\":{border:\"1px solid \".concat(t.palette.primary.main)},\"&.MuiButton-text\":{color:t.palette.text.secondary}},\"& .deactivate-btn\":{backgroundColor:t.palette.error.main,color:\"\".concat(t.palette.secondary.main,\" !important\"),\"&:hover\":{backgroundColor:\"\".concat(t.palette.error.main,\" !important\")}}}})),Bn=e=>{let{variant:t,buttonName:n,onButtonClick:r=(()=>{}),startIcon:o,endIcon:a,disableElevation:s=!0,fullwidth:l,disabled:c,type:d,id:u,className:h,children:p}=e;return i().createElement(Vn,null,i().createElement(Dn,{startIcon:o,endIcon:a,variant:t,onClick:r,disableElevation:s,fullWidth:l,disabled:c,type:d,id:u,className:h,disableRipple:!0},n,p))},Hn=i().memo(Bn),jn=t.createContext(),Un=()=>{const e=t.useContext(jn);return null!=e&&e};var Wn=n(4871);function $n(e){return\"string\"==typeof e}function Yn(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&\"function\"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Kn(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&\"function\"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function qn(e,t,n){return\"function\"==typeof e?e(t,n):e}const Qn=[\"elementType\",\"externalSlotProps\",\"ownerState\",\"skipResolvingSlotProps\"];function Xn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=(0,At.A)(e,Qn),s=o?{}:qn(r,i),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,We.A)(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,Tt.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=(0,Tt.A)({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Yn((0,Tt.A)({},i,r)),s=Kn(r),l=Kn(i),c=t(a),d=(0,We.A)(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),u=(0,Tt.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),h=(0,Tt.A)({},c,n,l,s);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}((0,Tt.A)({},a,{externalSlotProps:s})),d=(0,Wn.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref),u=function(e,t,n){return void 0===e||$n(e)?t:(0,Tt.A)({},t,{ownerState:(0,Tt.A)({},t.ownerState,n)})}(n,(0,Tt.A)({},l,{ref:d}),i);return u}var Zn=n(6249),Jn=n(6111),er=n(9941),tr=n(1489);function nr(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function rr(e,t){t?e.setAttribute(\"aria-hidden\",\"true\"):e.removeAttribute(\"aria-hidden\")}function ir(e){return parseInt((0,tr.A)(e).getComputedStyle(e).paddingRight,10)||0}function or(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==[\"TEMPLATE\",\"SCRIPT\",\"STYLE\",\"LINK\",\"MAP\",\"META\",\"NOSCRIPT\",\"PICTURE\",\"COL\",\"COLGROUP\",\"PARAM\",\"SLOT\",\"SOURCE\",\"TRACK\"].indexOf(e.tagName),n=\"INPUT\"===e.tagName&&\"hidden\"===e.getAttribute(\"type\");return t||n}(e);t&&n&&rr(e,i)}))}function ar(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const sr=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&rr(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{\"true\"===e.getAttribute(\"aria-hidden\")&&t.push(e)})),t}(t);or(t,e.mount,e.modalRef,r,!0);const i=ar(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ar(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Zn.A)(e);return t.body===e?(0,tr.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=nr((0,Zn.A)(r));n.push({value:r.style.paddingRight,property:\"padding-right\",el:r}),r.style.paddingRight=`${ir(r)+e}px`;const t=(0,Zn.A)(r).querySelectorAll(\".mui-fixed\");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:\"padding-right\",el:t}),t.style.paddingRight=`${ir(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Zn.A)(r).body;else{const t=r.parentElement,n=(0,tr.A)(r);e=\"HTML\"===(null==t?void 0:t.nodeName)&&\"scroll\"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:\"overflow\",el:e},{value:e.style.overflowX,property:\"overflow-x\",el:e},{value:e.style.overflowY,property:\"overflow-y\",el:e}),e.style.overflow=\"hidden\"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ar(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&rr(e.modalRef,t),or(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&rr(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const lr=[\"input\",\"select\",\"textarea\",\"a[href]\",\"button\",\"[tabindex]\",\"audio[controls]\",\"video[controls]\",'[contenteditable]:not([contenteditable=\"false\"])'].join(\",\");function cr(e){const t=[],n=[];return Array.from(e.querySelectorAll(lr)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute(\"tabindex\")||\"\",10);return Number.isNaN(t)?\"true\"===e.contentEditable||(\"AUDIO\"===e.nodeName||\"VIDEO\"===e.nodeName||\"DETAILS\"===e.nodeName)&&null===e.getAttribute(\"tabindex\")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||\"INPUT\"===e.tagName&&\"hidden\"===e.type||function(e){if(\"INPUT\"!==e.tagName||\"radio\"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type=\"radio\"]${t}`);let n=t(`[name=\"${e.name}\"]:checked`);return n||(n=t(`[name=\"${e.name}\"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function dr(){return!0}function ur(e){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=cr,isEnabled:s=dr,open:l}=e,c=t.useRef(!1),d=t.useRef(null),u=t.useRef(null),h=t.useRef(null),p=t.useRef(null),g=t.useRef(!1),f=t.useRef(null),m=(0,Wn.A)(n.ref,f),v=t.useRef(null);t.useEffect((()=>{l&&f.current&&(g.current=!r)}),[r,l]),t.useEffect((()=>{if(!l||!f.current)return;const e=(0,Zn.A)(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute(\"tabIndex\")||f.current.setAttribute(\"tabIndex\",\"-1\"),g.current&&f.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),t.useEffect((()=>{if(!l||!f.current)return;const e=(0,Zn.A)(f.current),t=t=>{v.current=t,!i&&s()&&\"Tab\"===t.key&&e.activeElement===f.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!g.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(n=a(f.current)),n.length>0){var r,o;const e=Boolean((null==(r=v.current)?void 0:r.shiftKey)&&\"Tab\"===(null==(o=v.current)?void 0:o.key)),t=n[0],i=n[n.length-1];\"string\"!=typeof t&&\"string\"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener(\"focusin\",n),e.addEventListener(\"keydown\",t,!0);const r=setInterval((()=>{e.activeElement&&\"BODY\"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener(\"focusin\",n),e.removeEventListener(\"keydown\",t,!0)}}),[r,i,o,s,l,a]);const y=e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0};return(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(\"div\",{tabIndex:l?0:-1,onFocus:y,ref:d,\"data-testid\":\"sentinelStart\"}),t.cloneElement(n,{ref:m,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0,p.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,Kt.jsx)(\"div\",{tabIndex:l?0:-1,onFocus:y,ref:u,\"data-testid\":\"sentinelEnd\"})]})}const hr=require(\"react-dom\");var pr=n.n(hr),gr=n(173),fr=n(3721);const mr=t.forwardRef((function(e,n){const{children:r,container:i,disablePortal:o=!1}=e,[a,s]=t.useState(null),l=(0,Wn.A)(t.isValidElement(r)?r.ref:null,n);if((0,gr.A)((()=>{o||s(function(e){return\"function\"==typeof e?e():e}(i)||document.body)}),[i,o]),(0,gr.A)((()=>{if(a&&!o)return(0,fr.A)(n,a),()=>{(0,fr.A)(n,null)}}),[n,a,o]),o){if(t.isValidElement(r)){const e={ref:l};return t.cloneElement(r,e)}return(0,Kt.jsx)(t.Fragment,{children:r})}return(0,Kt.jsx)(t.Fragment,{children:a?hr.createPortal(r,a):a})}));var vr=function(e){return e.scrollTop},yr=\"unmounted\",br=\"exited\",wr=\"entering\",Cr=\"entered\",Sr=\"exiting\",Er=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=br,r.appearStatus=wr):i=Cr:i=t.unmountOnExit||t.mountOnEnter?yr:br,r.state={status:i},r.nextCallback=null,r}zt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yr?{status:br}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==wr&&n!==Cr&&(t=wr):n!==wr&&n!==Cr||(t=Sr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&\"number\"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===wr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:pr().findDOMNode(this);n&&vr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===br&&this.setState({status:yr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[pr().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:wr},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Cr},(function(){t.props.onEntered(o,a)}))}))}))):this.safeSetState({status:Cr},(function(){t.props.onEntered(o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:pr().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Sr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:br},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:br},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:pr().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yr)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,At.A)(t,[\"children\",\"in\",\"mountOnEnter\",\"unmountOnExit\",\"appear\",\"enter\",\"exit\",\"timeout\",\"addEndListener\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\",\"nodeRef\"]));return i().createElement(Gt.Provider,{value:null},\"function\"==typeof n?n(e,r):i().cloneElement(i().Children.only(n),r))},t}(i().Component);function xr(){}Er.contextType=Gt,Er.propTypes={},Er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xr,onEntering:xr,onEntered:xr,onExit:xr,onExiting:xr,onExited:xr},Er.UNMOUNTED=yr,Er.EXITED=br,Er.ENTERING=wr,Er.ENTERED=Cr,Er.EXITING=Sr;const Ar=Er;var Tr=n(2765);function Dr(){const e=(0,kn.A)(Tr.A);return e[Fn.A]||e}const Rr=e=>e.scrollTop;function Mr(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:\"number\"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:\"object\"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}const Or=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"],kr={entering:{opacity:1},entered:{opacity:1}},Ir=t.forwardRef((function(e,n){const r=Dr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:p,onExited:g,onExiting:f,style:m,timeout:v=i,TransitionComponent:y=Ar}=e,b=(0,At.A)(e,Or),w=t.useRef(null),C=(0,Nt.A)(w,s.ref,n),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},E=S(h),x=S(((e,t)=>{Rr(e);const n=Mr({style:m,timeout:v,easing:l},{mode:\"enter\"});e.style.webkitTransition=r.transitions.create(\"opacity\",n),e.style.transition=r.transitions.create(\"opacity\",n),d&&d(e,t)})),A=S(u),T=S(f),D=S((e=>{const t=Mr({style:m,timeout:v,easing:l},{mode:\"exit\"});e.style.webkitTransition=r.transitions.create(\"opacity\",t),e.style.transition=r.transitions.create(\"opacity\",t),p&&p(e)})),R=S(g);return(0,Kt.jsx)(y,(0,Tt.A)({appear:a,in:c,nodeRef:w,onEnter:x,onEntered:A,onEntering:E,onExit:D,onExited:R,onExiting:T,addEndListener:e=>{o&&o(w.current,e)},timeout:v},b,{children:(e,n)=>t.cloneElement(s,(0,Tt.A)({style:(0,Tt.A)({opacity:0,visibility:\"exited\"!==e||c?void 0:\"hidden\"},kr[e],m,s.props.style),ref:C},n))}))})),Nr=Ir;function Pr(e){return(0,un.Ay)(\"MuiBackdrop\",e)}(0,qt.A)(\"MuiBackdrop\",[\"root\",\"invisible\"]);const Lr=[\"children\",\"className\",\"component\",\"components\",\"componentsProps\",\"invisible\",\"open\",\"slotProps\",\"slots\",\"TransitionComponent\",\"transitionDuration\"],Fr=(0,Ot.Ay)(\"div\",{name:\"MuiBackdrop\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,Tt.A)({position:\"fixed\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",right:0,bottom:0,top:0,left:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",WebkitTapHighlightColor:\"transparent\"},e.invisible&&{backgroundColor:\"transparent\"}))),_r=t.forwardRef((function(e,t){var n,r,i;const o=(0,It.A)({props:e,name:\"MuiBackdrop\"}),{children:a,className:s,component:l=\"div\",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:p={},slots:g={},TransitionComponent:f=Nr,transitionDuration:m}=o,v=(0,At.A)(o,Lr),y=(0,Tt.A)({},o,{component:l,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,r={root:[\"root\",n&&\"invisible\"]};return(0,Rt.A)(r,Pr,t)})(y),w=null!=(n=p.root)?n:d.root;return(0,Kt.jsx)(f,(0,Tt.A)({in:h,timeout:m},v,{children:(0,Kt.jsx)(Fr,(0,Tt.A)({\"aria-hidden\":!0},w,{as:null!=(r=null!=(i=g.root)?i:c.Root)?r:l,className:(0,We.A)(b.root,s,null==w?void 0:w.className),ownerState:(0,Tt.A)({},y,null==w?void 0:w.ownerState),classes:b,ref:t,children:a}))}))}));function zr(e){return(0,un.Ay)(\"MuiModal\",e)}(0,qt.A)(\"MuiModal\",[\"root\",\"hidden\",\"backdrop\"]);const Gr=[\"BackdropComponent\",\"BackdropProps\",\"classes\",\"className\",\"closeAfterTransition\",\"children\",\"container\",\"component\",\"components\",\"componentsProps\",\"disableAutoFocus\",\"disableEnforceFocus\",\"disableEscapeKeyDown\",\"disablePortal\",\"disableRestoreFocus\",\"disableScrollLock\",\"hideBackdrop\",\"keepMounted\",\"onBackdropClick\",\"onClose\",\"onTransitionEnter\",\"onTransitionExited\",\"open\",\"slotProps\",\"slots\",\"theme\"],Vr=(0,Ot.Ay)(\"div\",{name:\"MuiModal\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,Tt.A)({position:\"fixed\",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:\"hidden\"}))),Br=(0,Ot.Ay)(_r,{name:\"MuiModal\",slot:\"Backdrop\",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hr=t.forwardRef((function(e,n){var r,i,o,a,s,l;const c=(0,It.A)({name:\"MuiModal\",props:e}),{BackdropComponent:d=Br,BackdropProps:u,className:h,closeAfterTransition:p=!1,children:g,container:f,component:m,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:x=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:D,open:R,slotProps:M,slots:O}=c,k=(0,At.A)(c,Gr),I=(0,Tt.A)({},c,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:S,disableRestoreFocus:E,disableScrollLock:x,hideBackdrop:A,keepMounted:T}),{getRootProps:N,getBackdropProps:P,getTransitionProps:L,portalRef:F,isTopModal:_,exited:z,hasTransition:G}=function(e){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,manager:o=sr,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:u,rootRef:h}=e,p=t.useRef({}),g=t.useRef(null),f=t.useRef(null),m=(0,Wn.A)(f,h),[v,y]=t.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty(\"in\")}(c);let w=!0;\"false\"!==e[\"aria-hidden\"]&&!1!==e[\"aria-hidden\"]||(w=!1);const C=()=>(p.current.modalRef=f.current,p.current.mount=g.current,p.current),S=()=>{o.mount(C(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},E=(0,Jn.A)((()=>{const e=function(e){return\"function\"==typeof e?e():e}(n)||(0,Zn.A)(g.current).body;o.add(C(),e),f.current&&S()})),x=t.useCallback((()=>o.isTopModal(C())),[o]),A=(0,Jn.A)((e=>{g.current=e,e&&(u&&x()?S():f.current&&rr(f.current,w))})),T=t.useCallback((()=>{o.remove(C(),w)}),[w,o]);t.useEffect((()=>()=>{T()}),[T]),t.useEffect((()=>{u?E():b&&a||T()}),[u,T,b,a,E]);const D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),\"Escape\"===t.key&&229!==t.which&&x()&&(r||(t.stopPropagation(),d&&d(t,\"escapeKeyDown\")))},R=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,\"backdropClick\")};return{getRootProps:(t={})=>{const n=Yn(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,Tt.A)({},n,t);return(0,Tt.A)({role:\"presentation\"},r,{onKeyDown:D(r),ref:m})},getBackdropProps:(e={})=>{const t=e;return(0,Tt.A)({\"aria-hidden\":!0},t,{onClick:R(t),open:u})},getTransitionProps:()=>({onEnter:(0,er.A)((()=>{y(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,er.A)((()=>{y(!0),l&&l(),a&&T()}),null==c?void 0:c.props.onExited)}),rootRef:m,portalRef:A,isTopModal:x,exited:v,hasTransition:b}}((0,Tt.A)({},I,{rootRef:n})),V=(0,Tt.A)({},I,{exited:z}),B=(e=>{const{open:t,exited:n,classes:r}=e,i={root:[\"root\",!t&&n&&\"hidden\"],backdrop:[\"backdrop\"]};return(0,Rt.A)(i,zr,r)})(V),H={};if(void 0===g.props.tabIndex&&(H.tabIndex=\"-1\"),G){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const j=null!=(r=null!=(i=null==O?void 0:O.root)?i:v.Root)?r:Vr,U=null!=(o=null!=(a=null==O?void 0:O.backdrop)?a:v.Backdrop)?o:d,W=null!=(s=null==M?void 0:M.root)?s:y.root,$=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,Y=Xn({elementType:j,externalSlotProps:W,externalForwardedProps:k,getSlotProps:N,additionalProps:{ref:n,as:m},ownerState:V,className:(0,We.A)(h,null==W?void 0:W.className,null==B?void 0:B.root,!V.open&&V.exited&&(null==B?void 0:B.hidden))}),K=Xn({elementType:U,externalSlotProps:$,additionalProps:u,getSlotProps:e=>P((0,Tt.A)({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,We.A)(null==$?void 0:$.className,null==u?void 0:u.className,null==B?void 0:B.backdrop),ownerState:V});return T||R||G&&!z?(0,Kt.jsx)(mr,{ref:F,container:f,disablePortal:S,children:(0,Kt.jsxs)(j,(0,Tt.A)({},Y,{children:[!A&&d?(0,Kt.jsx)(U,(0,Tt.A)({},K)):null,(0,Kt.jsx)(ur,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:_,open:R,children:t.cloneElement(g,H)})]}))}):null})),jr=Hr;var Ur=n(4316),Wr=n(3749);const $r=[\"addEndListener\",\"appear\",\"children\",\"container\",\"direction\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function Yr(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,Wr.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue(\"-webkit-transform\")||e.getPropertyValue(\"transform\")}let s=0,l=0;if(a&&\"none\"!==a&&\"string\"==typeof a){const e=a.split(\"(\")[1].split(\")\")[0].split(\",\");s=parseInt(e[4],10),l=parseInt(e[5],10)}return\"left\"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:\"right\"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:\"up\"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,\"function\"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Kr=t.forwardRef((function(e,n){const r=Dr(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:d=\"down\",easing:u=i,in:h,onEnter:p,onEntered:g,onEntering:f,onExit:m,onExited:v,onExiting:y,style:b,timeout:w=o,TransitionComponent:C=Ar}=e,S=(0,At.A)(e,$r),E=t.useRef(null),x=(0,Nt.A)(l.ref,E,n),A=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},T=A(((e,t)=>{Yr(d,e,c),Rr(e),p&&p(e,t)})),D=A(((e,t)=>{const n=Mr({timeout:w,style:b,easing:u},{mode:\"enter\"});e.style.webkitTransition=r.transitions.create(\"-webkit-transform\",(0,Tt.A)({},n)),e.style.transition=r.transitions.create(\"transform\",(0,Tt.A)({},n)),e.style.webkitTransform=\"none\",e.style.transform=\"none\",f&&f(e,t)})),R=A(g),M=A(y),O=A((e=>{const t=Mr({timeout:w,style:b,easing:u},{mode:\"exit\"});e.style.webkitTransition=r.transitions.create(\"-webkit-transform\",t),e.style.transition=r.transitions.create(\"transform\",t),Yr(d,e,c),m&&m(e)})),k=A((e=>{e.style.webkitTransition=\"\",e.style.transition=\"\",v&&v(e)})),I=t.useCallback((()=>{E.current&&Yr(d,E.current,c)}),[d,c]);return t.useEffect((()=>{if(h||\"down\"===d||\"right\"===d)return;const e=(0,Ur.A)((()=>{E.current&&Yr(d,E.current,c)})),t=(0,Wr.A)(E.current);return t.addEventListener(\"resize\",e),()=>{e.clear(),t.removeEventListener(\"resize\",e)}}),[d,h,c]),t.useEffect((()=>{h||I()}),[h,I]),(0,Kt.jsx)(C,(0,Tt.A)({nodeRef:E,onEnter:T,onEntered:R,onEntering:D,onExit:O,onExited:k,onExiting:M,addEndListener:e=>{a&&a(E.current,e)},appear:s,in:h,timeout:w},S,{children:(e,n)=>t.cloneElement(l,(0,Tt.A)({ref:x,style:(0,Tt.A)({visibility:\"exited\"!==e||h?void 0:\"hidden\"},b,l.props.style)},n))}))})),qr=Kr,Qr=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Xr(e){return(0,un.Ay)(\"MuiPaper\",e)}(0,qt.A)(\"MuiPaper\",[\"root\",\"rounded\",\"outlined\",\"elevation\",\"elevation0\",\"elevation1\",\"elevation2\",\"elevation3\",\"elevation4\",\"elevation5\",\"elevation6\",\"elevation7\",\"elevation8\",\"elevation9\",\"elevation10\",\"elevation11\",\"elevation12\",\"elevation13\",\"elevation14\",\"elevation15\",\"elevation16\",\"elevation17\",\"elevation18\",\"elevation19\",\"elevation20\",\"elevation21\",\"elevation22\",\"elevation23\",\"elevation24\"]);const Zr=[\"className\",\"component\",\"elevation\",\"square\",\"variant\"],Jr=(0,Ot.Ay)(\"div\",{name:\"MuiPaper\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,\"elevation\"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,Tt.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(\"box-shadow\")},!t.square&&{borderRadius:e.shape.borderRadius},\"outlined\"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},\"elevation\"===t.variant&&(0,Tt.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&\"dark\"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Mt.X4)(\"#fff\",Qr(t.elevation))}, ${(0,Mt.X4)(\"#fff\",Qr(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),ei=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPaper\"}),{className:r,component:i=\"div\",elevation:o=1,square:a=!1,variant:s=\"elevation\"}=n,l=(0,At.A)(n,Zr),c=(0,Tt.A)({},n,{component:i,elevation:o,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:[\"root\",r,!t&&\"rounded\",\"elevation\"===r&&`elevation${n}`]};return(0,Rt.A)(o,Xr,i)})(c);return(0,Kt.jsx)(Jr,(0,Tt.A)({as:i,ownerState:c,className:(0,We.A)(d.root,r),ref:t},l))}));function ti(e){return(0,un.Ay)(\"MuiDrawer\",e)}(0,qt.A)(\"MuiDrawer\",[\"root\",\"docked\",\"paper\",\"paperAnchorLeft\",\"paperAnchorRight\",\"paperAnchorTop\",\"paperAnchorBottom\",\"paperAnchorDockedLeft\",\"paperAnchorDockedRight\",\"paperAnchorDockedTop\",\"paperAnchorDockedBottom\",\"modal\"]);const ni=[\"BackdropProps\"],ri=[\"anchor\",\"BackdropProps\",\"children\",\"className\",\"elevation\",\"hideBackdrop\",\"ModalProps\",\"onClose\",\"open\",\"PaperProps\",\"SlideProps\",\"TransitionComponent\",\"transitionDuration\",\"variant\"],ii=(e,t)=>{const{ownerState:n}=e;return[t.root,(\"permanent\"===n.variant||\"persistent\"===n.variant)&&t.docked,t.modal]},oi=(0,Ot.Ay)(jr,{name:\"MuiDrawer\",slot:\"Root\",overridesResolver:ii})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),ai=(0,Ot.Ay)(\"div\",{shouldForwardProp:kt.A,name:\"MuiDrawer\",slot:\"Docked\",skipVariantsResolver:!1,overridesResolver:ii})({flex:\"0 0 auto\"}),si=(0,Ot.Ay)(ei,{name:\"MuiDrawer\",slot:\"Paper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,vn.A)(n.anchor)}`],\"temporary\"!==n.variant&&t[`paperAnchorDocked${(0,vn.A)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,Tt.A)({overflowY:\"auto\",display:\"flex\",flexDirection:\"column\",height:\"100%\",flex:\"1 0 auto\",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:\"touch\",position:\"fixed\",top:0,outline:0},\"left\"===t.anchor&&{left:0},\"top\"===t.anchor&&{top:0,left:0,right:0,height:\"auto\",maxHeight:\"100%\"},\"right\"===t.anchor&&{right:0},\"bottom\"===t.anchor&&{top:\"auto\",left:0,bottom:0,right:0,height:\"auto\",maxHeight:\"100%\"},\"left\"===t.anchor&&\"temporary\"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},\"top\"===t.anchor&&\"temporary\"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},\"right\"===t.anchor&&\"temporary\"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},\"bottom\"===t.anchor&&\"temporary\"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),li={left:\"right\",right:\"left\",top:\"down\",bottom:\"up\"},ci=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiDrawer\"}),i=Dr(),o=Un(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s=\"left\",BackdropProps:l,children:c,className:d,elevation:u=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:p}={},onClose:g,open:f=!1,PaperProps:m={},SlideProps:v,TransitionComponent:y=qr,transitionDuration:b=a,variant:w=\"temporary\"}=r,C=(0,At.A)(r.ModalProps,ni),S=(0,At.A)(r,ri),E=t.useRef(!1);t.useEffect((()=>{E.current=!0}),[]);const x=function({direction:e},t){return\"rtl\"===e&&function(e){return-1!==[\"left\",\"right\"].indexOf(e)}(t)?li[t]:t}({direction:o?\"rtl\":\"ltr\"},s),A=s,T=(0,Tt.A)({},r,{anchor:A,elevation:u,open:f,variant:w},S),D=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:[\"root\"],docked:[(\"permanent\"===r||\"persistent\"===r)&&\"docked\"],modal:[\"modal\"],paper:[\"paper\",`paperAnchor${(0,vn.A)(n)}`,\"temporary\"!==r&&`paperAnchorDocked${(0,vn.A)(n)}`]};return(0,Rt.A)(i,ti,t)})(T),R=(0,Kt.jsx)(si,(0,Tt.A)({elevation:\"temporary\"===w?u:0,square:!0},m,{className:(0,We.A)(D.paper,m.className),ownerState:T,children:c}));if(\"permanent\"===w)return(0,Kt.jsx)(ai,(0,Tt.A)({className:(0,We.A)(D.root,D.docked,d),ownerState:T,ref:n},S,{children:R}));const M=(0,Kt.jsx)(y,(0,Tt.A)({in:f,direction:li[x],timeout:b,appear:E.current},v,{children:R}));return\"persistent\"===w?(0,Kt.jsx)(ai,(0,Tt.A)({className:(0,We.A)(D.root,D.docked,d),ownerState:T,ref:n},S,{children:M})):(0,Kt.jsx)(oi,(0,Tt.A)({BackdropProps:(0,Tt.A)({},l,p,{transitionDuration:b}),className:(0,We.A)(D.root,D.modal,d),open:f,ownerState:T,onClose:g,hideBackdrop:h,ref:n},S,C,{children:M}))})),di=ci;var ui=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};const hi=\"object\"===(\"undefined\"==typeof window?\"undefined\":ui(window))&&\"object\"===(\"undefined\"==typeof document?\"undefined\":ui(document))&&9===document.nodeType;function pi(e){return pi=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},pi(e)}function gi(e){var t=function(e,t){if(\"object\"!=pi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=pi(r))return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==pi(t)?t:String(t)}function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,gi(r.key),r)}}function mi(e,t,n){return t&&fi(e.prototype,t),n&&fi(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var vi={}.constructor;function yi(e){if(null==e||\"object\"!=typeof e)return e;if(Array.isArray(e))return e.map(yi);if(e.constructor!==vi)return e;var t={};for(var n in e)t[n]=yi(e[n]);return t}function bi(e,t,n){void 0===e&&(e=\"unnamed\");var r=n.jss,i=yi(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var wi=function(e,t){for(var n=\"\",r=0;r<e.length&&\"!important\"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ci=function(e){if(!Array.isArray(e))return e;var t=\"\";if(Array.isArray(e[0]))for(var n=0;n<e.length&&\"!important\"!==e[n];n++)t&&(t+=\", \"),t+=wi(e[n],\" \");else t=wi(e,\", \");return\"!important\"===e[e.length-1]&&(t+=\" !important\"),t};function Si(e){return e&&!1===e.format?{linebreak:\"\",space:\"\"}:{linebreak:\"\\n\",space:\" \"}}function Ei(e,t){for(var n=\"\",r=0;r<t;r++)n+=\"  \";return n+e}function xi(e,t,n){void 0===n&&(n={});var r=\"\";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Si(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var d=0;d<a.length;d++){var u=a[d];for(var h in u){var p=u[h];null!=p&&(r&&(r+=l),r+=Ei(h+\":\"+c+Ci(p)+\";\",o))}}else for(var g in a){var f=a[g];null!=f&&(r&&(r+=l),r+=Ei(g+\":\"+c+Ci(f)+\";\",o))}for(var m in t){var v=t[m];null!=v&&\"fallbacks\"!==m&&(r&&(r+=l),r+=Ei(m+\":\"+c+Ci(v)+\";\",o))}return(r||n.allowEmpty)&&e?(r&&(r=\"\"+l+r+l),Ei(\"\"+e+c+\"{\"+r,--o)+Ei(\"}\",o)):r}var Ai=/([[\\].#*$><+~=|^:(),\"'`\\s])/g,Ti=\"undefined\"!=typeof CSS&&CSS.escape,Di=function(e){return Ti?Ti(e):e.replace(Ai,\"\\\\$1\")},Ri=function(){function e(e,t,n){this.type=\"style\",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Mi=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(Ft(Ft(i)),s),i.selectorText=\".\"+Di(i.id)),i}zt(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];\"object\"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ci(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,Tt.A)({},e,{allowEmpty:!0}):e;return xi(this.selectorText,this.style,n)},mi(t,[{key:\"selector\",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Ri),Oi={onCreateRule:function(e,t,n){return\"@\"===e[0]||n.parent&&\"keyframes\"===n.parent.type?null:new Mi(e,t,n)}},ki={indent:1,children:!0},Ii=/@([\\w-]+)/,Ni=function(){function e(e,t,n){this.type=\"conditional\",this.isProcessed=!1,this.key=e;var r=e.match(Ii);for(var i in this.at=r?r[1]:\"unknown\",this.query=n.name||\"@\"+this.at,this.options=n,this.rules=new ro((0,Tt.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=ki);var t=Si(e).linebreak;if(null==e.indent&&(e.indent=ki.indent),null==e.children&&(e.children=ki.children),!1===e.children)return this.query+\" {}\";var n=this.rules.toString(e);return n?this.query+\" {\"+t+n+t+\"}\":\"\"},e}(),Pi=/@container|@media|@supports\\s+/,Li={onCreateRule:function(e,t,n){return Pi.test(e)?new Ni(e,t,n):null}},Fi={indent:1,children:!0},_i=/@keyframes\\s+([\\w-]+)/,zi=function(){function e(e,t,n){this.type=\"keyframes\",this.at=\"@keyframes\",this.isProcessed=!1;var r=e.match(_i);r&&r[1]?this.name=r[1]:this.name=\"noname\",this.key=this.type+\"-\"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Di(a(this,o)),this.rules=new ro((0,Tt.A)({},n,{parent:this})),t)this.rules.add(s,t[s],(0,Tt.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Fi);var t=Si(e).linebreak;if(null==e.indent&&(e.indent=Fi.indent),null==e.children&&(e.children=Fi.children),!1===e.children)return this.at+\" \"+this.id+\" {}\";var n=this.rules.toString(e);return n&&(n=\"\"+t+n+t),this.at+\" \"+this.id+\" {\"+n+\"}\"},e}(),Gi=/@keyframes\\s+/,Vi=/\\$([\\w-]+)/g,Bi=function(e,t){return\"string\"==typeof e?e.replace(Vi,(function(e,n){return n in t?t[n]:e})):e},Hi=function(e,t,n){var r=e[t],i=Bi(r,n);i!==r&&(e[t]=i)},ji={onCreateRule:function(e,t,n){return\"string\"==typeof e&&Gi.test(e)?new zi(e,t,n):null},onProcessStyle:function(e,t,n){return\"style\"===t.type&&n?(\"animation-name\"in e&&Hi(e,\"animation-name\",n.keyframes),\"animation\"in e&&Hi(e,\"animation\",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case\"animation\":case\"animation-name\":return Bi(e,r.keyframes);default:return e}}},Ui=function(e){function t(){return e.apply(this,arguments)||this}return zt(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,Tt.A)({},e,{allowEmpty:!0}):e;return xi(this.key,this.style,n)},t}(Ri),Wi={onCreateRule:function(e,t,n){return n.parent&&\"keyframes\"===n.parent.type?new Ui(e,t,n):null}},$i=function(){function e(e,t,n){this.type=\"font-face\",this.at=\"@font-face\",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Si(e).linebreak;if(Array.isArray(this.style)){for(var n=\"\",r=0;r<this.style.length;r++)n+=xi(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return xi(this.at,this.style,e)},e}(),Yi=/@font-face/,Ki={onCreateRule:function(e,t,n){return Yi.test(e)?new $i(e,t,n):null}},qi=function(){function e(e,t,n){this.type=\"viewport\",this.at=\"@viewport\",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return xi(this.key,this.style,e)},e}(),Qi={onCreateRule:function(e,t,n){return\"@viewport\"===e||\"@-ms-viewport\"===e?new qi(e,t,n):null}},Xi=function(){function e(e,t,n){this.type=\"simple\",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t=\"\",n=0;n<this.value.length;n++)t+=this.key+\" \"+this.value[n]+\";\",this.value[n+1]&&(t+=\"\\n\");return t}return this.key+\" \"+this.value+\";\"},e}(),Zi={\"@charset\":!0,\"@import\":!0,\"@namespace\":!0},Ji={onCreateRule:function(e,t,n){return e in Zi?new Xi(e,t,n):null}},eo=[Oi,Li,ji,Wi,Ki,Qi,Ji],to={process:!0},no={force:!0,process:!0},ro=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,d=(0,Tt.A)({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),u=e;e in this.raw&&(u=e+\"-d\"+this.counter++),this.raw[u]=t,u in this.classes&&(d.selector=\".\"+Di(this.classes[u]));var h=bi(u,t,d);if(!h)return null;this.register(h);var p=void 0===d.index?this.index.length:d.index;return this.index.splice(p,0,h),h},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=(0,Tt.A)({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Mi?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof zi&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Mi?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof zi&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if(\"string\"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=to);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,no)}for(var d in s){var u=t.style[d],h=s[d];null==u&&u!==h&&t.prop(d,null,no)}}}},t.toString=function(e){for(var t=\"\",n=this.options.sheet,r=!!n&&n.options.link,i=Si(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),io=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,Tt.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ro(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=\"object\"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),oo=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:\"external\"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ao=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,At.A)(t,[\"attached\"]),i=Si(r).linebreak,o=\"\",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},mi(e,[{key:\"index\",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),so=new ao,lo=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window&&window.Math===Math?window:\"undefined\"!=typeof self&&self.Math===Math?self:Function(\"return this\")(),co=\"2f1acc6c3a606b082e5eef5e54414ffb\";null==lo[co]&&(lo[co]=0);var uo=lo[co]++,ho=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i=\"\",o=\"\";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?\"\"+(o||\"c\")+uo+i+t:o+n.key+\"-\"+uo+(i?\"-\"+i:\"\")+\"-\"+t}},po=function(e){var t;return function(){return t||(t=e()),t}},go=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return\"\"}},fo=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ci(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf(\"!important\"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?\"important\":\"\")}}catch(e){return!1}return!0},mo=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vo=function(e,t){return e.selectorText=t,e.selectorText===t},yo=po((function(){return document.querySelector(\"head\")}));var bo=po((function(){var e=document.querySelector('meta[property=\"csp-nonce\"]');return e?e.getAttribute(\"content\"):null})),wo=function(e,t,n){try{\"insertRule\"in e?e.insertRule(t,n):\"appendRule\"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Co=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},So=function(){function e(e){this.getPropertyValue=go,this.setProperty=fo,this.removeProperty=mo,this.setSelector=vo,this.hasInsertedRules=!1,this.cssRules=[],e&&so.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement(\"style\");return e.textContent=\"\\n\",e}(),this.element.setAttribute(\"data-jss\",\"\"),n&&this.element.setAttribute(\"media\",n),r&&this.element.setAttribute(\"data-meta\",r);var o=bo();o&&this.element.setAttribute(\"nonce\",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=so.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&\"string\"==typeof r){var i=function(e){for(var t=yo(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&\"number\"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else yo().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=\"\\n\")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent=\"\\n\"+e.toString()+\"\\n\")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if(\"conditional\"===e.type||\"keyframes\"===e.type){var o=Co(n,t);if(!1===(i=wo(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Co(n,t),l=wo(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof io&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Eo=0,xo=function(){function e(e){this.id=Eo++,this.version=\"10.10.0\",this.plugins=new oo,this.options={id:{minify:!1},createGenerateId:ho,Renderer:hi?So:null,plugins:[]},this.generateId=ho({minify:!1});for(var t=0;t<eo.length;t++)this.plugins.use(eo[t],{queue:\"internal\"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,Tt.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),\"Renderer\"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;\"number\"!=typeof n&&(n=0===so.index?0:so.index+1);var r=new io(e,(0,Tt.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),so.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),\"object\"==typeof e)return this.createRule(void 0,e,t);var r=(0,Tt.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=bi(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ao=function(e){return new xo(e)},To=\"object\"==typeof CSS&&null!=CSS&&\"number\"in CSS;function Do(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(\"function\"===i)t||(t={}),t[n]=r;else if(\"object\"===i&&null!==r&&!Array.isArray(r)){var o=Do(r);o&&(t||(t={}),t[n]=o)}}return t}function Ro(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=(0,Tt.A)({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}Ao();const Mo={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Oo=Mo,ko=t.createContext(null);const Io=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"mui.nested\"):\"__THEME_NESTED__\",No=[\"checked\",\"disabled\",\"error\",\"focused\",\"focusVisible\",\"required\",\"expanded\",\"selected\"];var Po=Date.now(),Lo=\"fnValues\"+Po,Fo=\"fnStyle\"+ ++Po;var _o=\"@global\",zo=function(){function e(e,t,n){for(var r in this.type=\"global\",this.at=_o,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ro((0,Tt.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Go=function(){function e(e,t,n){this.type=\"global\",this.at=_o,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,Tt.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):\"\"},e}(),Vo=/\\s*,\\s*/g;function Bo(e,t){for(var n=e.split(Vo),r=\"\",i=0;i<n.length;i++)r+=t+\" \"+n[i].trim(),n[i+1]&&(r+=\", \");return r}var Ho=/\\s*,\\s*/g,jo=/&/g,Uo=/\\$([\\w-]+)/g;var Wo=/[A-Z]/g,$o=/^ms-/,Yo={};function Ko(e){return\"-\"+e.toLowerCase()}const qo=function(e){if(Yo.hasOwnProperty(e))return Yo[e];var t=e.replace(Wo,Ko);return Yo[e]=$o.test(t)?\"-\"+t:t};function Qo(e){var t={};for(var n in e)t[0===n.indexOf(\"--\")?n:qo(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Qo):t.fallbacks=Qo(e.fallbacks)),t}var Xo=To&&CSS?CSS.px:\"px\",Zo=To&&CSS?CSS.ms:\"ms\",Jo=To&&CSS?CSS.percent:\"%\";function ea(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var ta=ea({\"animation-delay\":Zo,\"animation-duration\":Zo,\"background-position\":Xo,\"background-position-x\":Xo,\"background-position-y\":Xo,\"background-size\":Xo,border:Xo,\"border-bottom\":Xo,\"border-bottom-left-radius\":Xo,\"border-bottom-right-radius\":Xo,\"border-bottom-width\":Xo,\"border-left\":Xo,\"border-left-width\":Xo,\"border-radius\":Xo,\"border-right\":Xo,\"border-right-width\":Xo,\"border-top\":Xo,\"border-top-left-radius\":Xo,\"border-top-right-radius\":Xo,\"border-top-width\":Xo,\"border-width\":Xo,\"border-block\":Xo,\"border-block-end\":Xo,\"border-block-end-width\":Xo,\"border-block-start\":Xo,\"border-block-start-width\":Xo,\"border-block-width\":Xo,\"border-inline\":Xo,\"border-inline-end\":Xo,\"border-inline-end-width\":Xo,\"border-inline-start\":Xo,\"border-inline-start-width\":Xo,\"border-inline-width\":Xo,\"border-start-start-radius\":Xo,\"border-start-end-radius\":Xo,\"border-end-start-radius\":Xo,\"border-end-end-radius\":Xo,margin:Xo,\"margin-bottom\":Xo,\"margin-left\":Xo,\"margin-right\":Xo,\"margin-top\":Xo,\"margin-block\":Xo,\"margin-block-end\":Xo,\"margin-block-start\":Xo,\"margin-inline\":Xo,\"margin-inline-end\":Xo,\"margin-inline-start\":Xo,padding:Xo,\"padding-bottom\":Xo,\"padding-left\":Xo,\"padding-right\":Xo,\"padding-top\":Xo,\"padding-block\":Xo,\"padding-block-end\":Xo,\"padding-block-start\":Xo,\"padding-inline\":Xo,\"padding-inline-end\":Xo,\"padding-inline-start\":Xo,\"mask-position-x\":Xo,\"mask-position-y\":Xo,\"mask-size\":Xo,height:Xo,width:Xo,\"min-height\":Xo,\"max-height\":Xo,\"min-width\":Xo,\"max-width\":Xo,bottom:Xo,left:Xo,top:Xo,right:Xo,inset:Xo,\"inset-block\":Xo,\"inset-block-end\":Xo,\"inset-block-start\":Xo,\"inset-inline\":Xo,\"inset-inline-end\":Xo,\"inset-inline-start\":Xo,\"box-shadow\":Xo,\"text-shadow\":Xo,\"column-gap\":Xo,\"column-rule\":Xo,\"column-rule-width\":Xo,\"column-width\":Xo,\"font-size\":Xo,\"font-size-delta\":Xo,\"letter-spacing\":Xo,\"text-decoration-thickness\":Xo,\"text-indent\":Xo,\"text-stroke\":Xo,\"text-stroke-width\":Xo,\"word-spacing\":Xo,motion:Xo,\"motion-offset\":Xo,outline:Xo,\"outline-offset\":Xo,\"outline-width\":Xo,perspective:Xo,\"perspective-origin-x\":Jo,\"perspective-origin-y\":Jo,\"transform-origin\":Jo,\"transform-origin-x\":Jo,\"transform-origin-y\":Jo,\"transform-origin-z\":Jo,\"transition-delay\":Zo,\"transition-duration\":Zo,\"vertical-align\":Xo,\"flex-basis\":Xo,\"shape-margin\":Xo,size:Xo,gap:Xo,grid:Xo,\"grid-gap\":Xo,\"row-gap\":Xo,\"grid-row-gap\":Xo,\"grid-column-gap\":Xo,\"grid-template-rows\":Xo,\"grid-template-columns\":Xo,\"grid-auto-rows\":Xo,\"grid-auto-columns\":Xo,\"box-shadow-x\":Xo,\"box-shadow-y\":Xo,\"box-shadow-blur\":Xo,\"box-shadow-spread\":Xo,\"font-line-height\":Xo,\"text-shadow-x\":Xo,\"text-shadow-y\":Xo,\"text-shadow-blur\":Xo});function na(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=na(e,t[r],n);else if(\"object\"==typeof t)if(\"fallbacks\"===e)for(var i in t)t[i]=na(i,t[i],n);else for(var o in t)t[o]=na(e+\"-\"+o,t[o],n);else if(\"number\"==typeof t&&!1===isNaN(t)){var a=n[e]||ta[e];return!a||0===t&&a===Xo?t.toString():\"function\"==typeof a?a(t).toString():\"\"+t+a}return t}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ia=\"\",oa=\"\",aa=\"\",sa=\"\",la=hi&&\"ontouchstart\"in document.documentElement;if(hi){var ca={Moz:\"-moz-\",ms:\"-ms-\",O:\"-o-\",Webkit:\"-webkit-\"},da=document.createElement(\"p\").style;for(var ua in ca)if(ua+\"Transform\"in da){ia=ua,oa=ca[ua];break}\"Webkit\"===ia&&\"msHyphens\"in da&&(ia=\"ms\",oa=ca.ms,sa=\"edge\"),\"Webkit\"===ia&&\"-apple-trailing-word\"in da&&(aa=\"apple\")}var ha=ia,pa=oa,ga=aa,fa=sa,ma=la,va={noPrefill:[\"appearance\"],supportedProperty:function(e){return\"appearance\"===e&&(\"ms\"===ha?\"-webkit-\"+e:pa+e)}},ya={noPrefill:[\"color-adjust\"],supportedProperty:function(e){return\"color-adjust\"===e&&(\"Webkit\"===ha?pa+\"print-\"+e:e)}},ba=/[-\\s]+(.)?/g;function wa(e,t){return t?t.toUpperCase():\"\"}function Ca(e){return e.replace(ba,wa)}function Sa(e){return Ca(\"-\"+e)}var Ea,xa={noPrefill:[\"mask\"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(\"Webkit\"===ha){var n=\"mask-image\";if(Ca(n)in t)return e;if(ha+Sa(n)in t)return pa+e}return e}},Aa={noPrefill:[\"text-orientation\"],supportedProperty:function(e){return\"text-orientation\"===e&&(\"apple\"!==ga||ma?e:pa+e)}},Ta={noPrefill:[\"transform\"],supportedProperty:function(e,t,n){return\"transform\"===e&&(n.transform?e:pa+e)}},Da={noPrefill:[\"transition\"],supportedProperty:function(e,t,n){return\"transition\"===e&&(n.transition?e:pa+e)}},Ra={noPrefill:[\"writing-mode\"],supportedProperty:function(e){return\"writing-mode\"===e&&(\"Webkit\"===ha||\"ms\"===ha&&\"edge\"!==fa?pa+e:e)}},Ma={noPrefill:[\"user-select\"],supportedProperty:function(e){return\"user-select\"===e&&(\"Moz\"===ha||\"ms\"===ha||\"apple\"===ga?pa+e:e)}},Oa={supportedProperty:function(e,t){return!!/^break-/.test(e)&&(\"Webkit\"===ha?\"WebkitColumn\"+Sa(e)in t&&pa+\"column-\"+e:\"Moz\"===ha&&\"page\"+Sa(e)in t&&\"page-\"+e)}},ka={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(\"Moz\"===ha)return e;var n=e.replace(\"-inline\",\"\");return ha+Sa(n)in t&&pa+n}},Ia={supportedProperty:function(e,t){return Ca(e)in t&&e}},Na={supportedProperty:function(e,t){var n=Sa(e);return\"-\"===e[0]||\"-\"===e[0]&&\"-\"===e[1]?e:ha+n in t?pa+e:\"Webkit\"!==ha&&\"Webkit\"+n in t&&\"-webkit-\"+e}},Pa={supportedProperty:function(e){return\"scroll-snap\"===e.substring(0,11)&&(\"ms\"===ha?\"\"+pa+e:e)}},La={supportedProperty:function(e){return\"overscroll-behavior\"===e&&(\"ms\"===ha?pa+\"scroll-chaining\":e)}},Fa={\"flex-grow\":\"flex-positive\",\"flex-shrink\":\"flex-negative\",\"flex-basis\":\"flex-preferred-size\",\"justify-content\":\"flex-pack\",order:\"flex-order\",\"align-items\":\"flex-align\",\"align-content\":\"flex-line-pack\"},_a={supportedProperty:function(e,t){var n=Fa[e];return!!n&&ha+Sa(n)in t&&pa+n}},za={flex:\"box-flex\",\"flex-grow\":\"box-flex\",\"flex-direction\":[\"box-orient\",\"box-direction\"],order:\"box-ordinal-group\",\"align-items\":\"box-align\",\"flex-flow\":[\"box-orient\",\"box-direction\"],\"justify-content\":\"box-pack\"},Ga=Object.keys(za),Va=function(e){return pa+e},Ba={supportedProperty:function(e,t,n){var r=n.multiple;if(Ga.indexOf(e)>-1){var i=za[e];if(!Array.isArray(i))return ha+Sa(i)in t&&pa+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(ha+Sa(i[0])in t))return!1;return i.map(Va)}return!1}},Ha=[va,ya,xa,Aa,Ta,Da,Ra,Ma,Oa,ka,Ia,Na,Pa,La,_a,Ba],ja=Ha.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ua=Ha.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return ra(e)}(n=t.noPrefill)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(n)||function(e,t){if(e){if(\"string\"==typeof e)return ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ra(e,t):void 0}}(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),e;var n}),[]),Wa={};if(hi){Ea=document.createElement(\"p\");var $a=window.getComputedStyle(document.documentElement,\"\");for(var Ya in $a)isNaN(Ya)||(Wa[$a[Ya]]=$a[Ya]);Ua.forEach((function(e){return delete Wa[e]}))}function Ka(e,t){if(void 0===t&&(t={}),!Ea)return e;if(null!=Wa[e])return Wa[e];\"transition\"!==e&&\"transform\"!==e||(t[e]=e in Ea.style);for(var n=0;n<ja.length&&(Wa[e]=ja[n](e,Ea.style,t),!Wa[e]);n++);try{Ea.style[e]=\"\"}catch(e){return!1}return Wa[e]}var qa,Qa={},Xa={transition:1,\"transition-property\":1,\"-webkit-transition\":1,\"-webkit-transition-property\":1},Za=/(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;function Ja(e,t,n){return\"var\"===t?\"var\":\"all\"===t?\"all\":\"all\"===n?\", all\":(t?Ka(t):\", \"+Ka(n))||t||n}function es(e,t){var n=t;if(!qa||\"content\"===e)return t;if(\"string\"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Qa[r])return Qa[r];try{qa.style[e]=n}catch(e){return Qa[r]=!1,!1}if(Xa[e])n=n.replace(Za,Ja);else if(\"\"===qa.style[e]&&(\"-ms-flex\"===(n=pa+n)&&(qa.style[e]=\"-ms-flexbox\"),qa.style[e]=n,\"\"===qa.style[e]))return Qa[r]=!1,!1;return qa.style[e]=\"\",Qa[r]=n,Qa[r]}hi&&(qa=document.createElement(\"p\"));const ts=Ao({plugins:[{onCreateRule:function(e,t,n){if(\"function\"!=typeof t)return null;var r=bi(e,{},n);return r[Fo]=t,r},onProcessStyle:function(e,t){if(Lo in t||Fo in t)return e;var n={};for(var r in e){var i=e[r];\"function\"==typeof i&&(delete e[r],n[r]=i)}return t[Lo]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Fo];o&&(i.style=o(e)||{});var a=i[Lo];if(a)for(var s in a)i.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===_o)return new zo(e,t,n);if(\"@\"===e[0]&&\"@global \"===e.substr(0,8))return new Go(e,t,n);var r=n.parent;return r&&(\"global\"===r.type||r.options.parent&&\"global\"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){\"style\"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[_o]:null;if(i){for(var o in i)t.addRule(o,i[o],(0,Tt.A)({},n,{selector:Bo(o,e.selector)}));delete r[_o]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if(\"@\"===i[0]&&i.substr(0,7)===_o){var o=Bo(i.substr(7),e.selector);t.addRule(o,r[i],(0,Tt.A)({},n,{selector:o})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ho),r=e.split(Ho),i=\"\",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=\", \"),i+=-1!==l.indexOf(\"&\")?l.replace(jo,a):a+\" \"+l}return i}function n(e,t,n){if(n)return(0,Tt.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,Tt.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if(\"style\"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var d in r){var u=-1!==d.indexOf(\"&\"),h=\"@\"===d[0];if(u||h){if(a=n(l,c,a),u){var p=t(d,l.selector);s||(s=e(c,o)),p=p.replace(Uo,s);var g=l.key+\"-\"+d;\"replaceRule\"in c?c.replaceRule(g,r[d],(0,Tt.A)({},a,{selector:p})):c.addRule(g,r[d],(0,Tt.A)({},a,{selector:p}))}else h&&c.addRule(d,{},a).addRule(l.key,r[d],{selector:l.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Qo(e[t]);return e}return Qo(e)},onChangeValue:function(e,t,n){if(0===t.indexOf(\"--\"))return e;var r=qo(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=ea(e);return{onProcessStyle:function(e,n){if(\"style\"!==n.type)return e;for(var r in e)e[r]=na(r,e[r],t);return e},onChangeValue:function(e,n){return na(n,e,t)}}}(),\"undefined\"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if(\"fallbacks\"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Ka(n);o&&o!==n&&(i=!0);var a=!1,s=es(o,Ci(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if(\"keyframes\"===e.type){var t=e;t.at=function(e){return\"-\"===e[1]||\"ms\"===ha?e:\"@\"+pa+\"keyframes\"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return\"style\"!==n.type?t:e(t)},onChangeValue:function(e,t){return es(t,Ci(e))||e}}}(),(os=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if(\"style\"!==t.type)return e;for(var n={},r=Object.keys(e).sort(os),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return n}})]}),ns=function(e={}){const{disableGlobal:t=!1,productionPrefix:n=\"jss\",seed:r=\"\"}=e,i=\"\"===r?\"\":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf(\"Mui\")&&!o.options.link&&!t){if(-1!==No.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[Io]&&\"\"===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),rs={disableGeneration:!1,generateClassName:ns,jss:ts,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},is=t.createContext(rs);var os;let as=-1e9;var ss=n(4521),ls=n(8659);const cs=[\"variant\"];function ds(e){return 0===e.length}const us={},hs=[\"name\",\"classNamePrefix\",\"Component\",\"defaultTheme\"];function ps({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let a=Oo.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},Oo.set(n.sheetsManager,r,t,a));const s=(0,Tt.A)({},r.options,n,{theme:t,flip:\"boolean\"==typeof n.flip?n.flip:\"rtl\"===t.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;const l=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=Oo.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,(0,Tt.A)({link:!1},s)),e.attach(),n.sheetsCache&&Oo.set(n.sheetsCache,r,t,e)),l&&l.add(e),a.staticSheet=e,a.dynamicStyles=Do(o)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,Tt.A)({link:!0},s));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=Ro({baseClasses:a.staticSheet.classes,newClasses:t.classes}),l&&l.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function gs(e,n={}){const{name:r,classNamePrefix:i,Component:o,defaultTheme:a=us}=n,s=(0,At.A)(n,hs),l=function(e){const t=\"function\"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},a=n.components[r].variants||[],s=(0,Tt.A)({},i);return Object.keys(o).forEach((e=>{s[e]=(0,ss.A)(s[e]||{},o[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,At.A)(e,cs);let r=t||\"\";return Object.keys(n).sort().forEach((t=>{r+=\"color\"===t?ds(r)?e[t]:(0,ls.A)(e[t]):`${ds(r)?t:(0,ls.A)(t)}${(0,ls.A)(e[t].toString())}`})),r}(e.props);s[t]=(0,ss.A)(s[t]||{},e.style)})),s},options:{}}}(e),c=r||i||\"makeStyles\";return l.options={index:(as+=1,as),name:r,meta:c,classNamePrefix:c},(e={})=>{const n=function(){var e;const n=t.useContext(ko);return null!=(e=null==n?void 0:n.$$material)?e:n}()||a,i=(0,Tt.A)({},t.useContext(is),s),c=t.useRef(),d=t.useRef();!function(o,a){const s=t.useRef([]);let u;const h=t.useMemo((()=>({})),a);s.current!==h&&(s.current=h,u=(()=>{const t={name:r,state:{},stylesCreator:l,stylesOptions:i,theme:n};return ps(t,e),d.current=!1,c.current=t,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=Oo.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(Oo.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(t)}})()),t.useEffect((()=>()=>{u&&u()}),[h])}(0,[n,l]),t.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(c.current,e),d.current=!0}));const u=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=Ro({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(c.current,e.classes,o);return u}}const fs=\"#025b75\",ms=\"#00004B\",vs=\"#C2C7D0\",ys=\"#FAFBFC\",bs=\"#14151C\",ws=\"#232630\",Cs=\"#000000\",Ss=\"#696F88\",Es=\"#ffffff\",xs=\"NotoSans-Medium\",As=\"NotoSans-Regular\",Ts=\"NotoSans-Bold\",Ds=(0,Ln.A)({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},shape:{borderRadius:4},palette:{primary:{main:fs,light:\"#0071CD\",dark:ms},secondary:{main:Es,light:\"#F3F4F6\",dark:ys},error:{main:\"#CF3537\"},success:{main:fs,light:\"#14803C\",dark:ms},info:{main:\"#A3A9B9\",dark:bs,light:\"#005693\",contrastText:\"#E99921\"},background:{default:Es},grey:{100:vs,200:Ss,300:\"#C2C7D0\",400:Cs,500:Ss,700:\"#C1C5C8\",800:\"#DFE2E7\",900:\"#4D5165\"},text:{primary:bs,secondary:ws}},typography:{fontFamily:As,fontWeightLight:\"normal\",h1:{fontWeight:\"500\",fontSize:\"24px\",lineHeight:\"24px\",fontFamily:xs,color:Cs},h2:{fontWeight:\"700\",fontSize:\"20px\",lineHeight:\"27px\",fontFamily:Ts,color:ws},h3:{fontWeight:\"700\",fontSize:\"14px\",lineHeight:\"20px\",fontFamily:Ts,color:bs},h4:{fontWeight:\"700\",fontSize:\"14px\",lineHeight:\"27px\",fontFamily:Ts,color:ws},h5:{color:ws,fontFamily:xs,fontSize:\"14px\",lineHeight:\"20px\",fontWeight:\"500\"},h6:{color:\"\".concat(bs,\" !important\")},subtitle1:{fontWeight:\"600\",fontSize:\"16px\",lineHeight:\"22px\",fontFamily:Ts,color:bs},subtitle2:{fontWeight:\"600\",fontSize:\"14px\",lineHeight:\"20px\",fontFamily:Ts,color:\"\".concat(bs,\" !important\")},body1:{fontWeight:\"400\",fontSize:\"14px\",fontFamily:As,color:ws,lineHeight:\"24px\"},body2:{fontWeight:\"400\",fontSize:\"12px\",lineHeight:\"16px\",fontFamily:As,color:ws},button:{fontFamily:Ts,fontWeight:\"600\",textTransform:\"capitalize\",whiteSpace:\"nowrap\"}},components:{MuiTextField:{defaultProps:{size:\"small\"}},MuiCheckbox:{defaultProps:{size:\"small\"}},MuiSelect:{defaultProps:{size:\"small\"},styleOverrides:{select:{zIndex:1}}},MuiInputBase:{styleOverrides:{root:{\"& img\":{position:\"absolute\",right:\"10px\"},\"&:hover\":{\"& .MuiOutlinedInput-notchedOutline\":{borderColor:vs}},\"& input, & textarea\":{boxSizing:\"border-box\",height:\"unset\"}}}},MuiDivider:{styleOverrides:{root:{borderColor:\"#BCBCBC\"}}},MuiButton:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiButtonBase:{styleOverrides:{root:{textTransform:\"capitalize\"}},defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiOutlinedInput:{styleOverrides:{multiline:{paddingLeft:\"8px\",paddingRight:\"8px\",\"& textarea\":{paddingLeft:\"0px\",paddingRight:\"0px\"}},input:{paddingLeft:\"8px\",paddingRight:\"8px\",fontWeight:500,color:ws}}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:Es,color:\" #111928\",boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",padding:\"8px\",margin:\"0px\",marginTop:\"0px !important\",marginBottom:\"0px !important\"},arrow:{color:Es}}}}});var Rs;const Ms=(0,$t.i7)(Rs||(Os=[\"\\n0% {\\n    -webkit-transform: rotate(-45deg);\\n            transform: rotate(-45deg);\\n    opacity: 0;\\n  }\\n  100% {\\n    -webkit-transform: rotate(0);\\n            transform: rotate(0);\\n    opacity: 1;\\n  }\\n\"],ks||(ks=Os.slice(0)),Rs=Object.freeze(Object.defineProperties(Os,{raw:{value:Object.freeze(ks)}}))));var Os,ks;(0,Ot.Ay)(\"div\")({\"&:hover\":{animation:\"\".concat(Ms,\" 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both !important\")}});const Is=gs({customDrawerComponent:{\"& .popupMain\":{overflow:\"hidden\",padding:\"25px\",width:\"600px\",height:\"100%\",backgroundColor:\" #FAFBFC\",\"&.editor-popup\":{width:800,\"& .css-k6hn3i .ql-container .ql-editor\":{height:\"calc(100vh - 500px)\"}},\"& .closeIcon\":{color:\"#C1C5C8\",fontSize:\"14px\",cursor:\"pointer\",\"&:hover\":{animation:\"\".concat(Ms,\" 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both !important\")}}},\"& .customWidth\":{width:\"950px !important\"},\"& .popupContent\":{maxHeight:\"calc(100vh - 155px)\",minHeight:\"580px\",overflow:\"auto\",padding:\"4px\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .selectDropdown\":{border:\"1px solid #C2C7D0\",borderRadius:\"4px\",padding:10,width:\"100%\",\"&.MuiInput-underline:before\":{display:\"none\"}}},\"& .btnsBlock\":{position:\"absolute\",bottom:\"25px\",right:\"25px\"},\"& .inputField\":{color:\"#14151C\",fontSize:\"14px\",padding:\"10px\",fontFamily:\"NotoSans-Regular\",border:\"1px solid #C2C7D0\",borderRadius:\"4px\",width:\"100% \",height:40,backgroundColor:\"\".concat(Ds.palette.secondary.main),\"&:focus-visible\":{outline:\"none\"},\"&.disabledInput\":{opacity:\"0.5\",cursor:\"not-allowed\"},\"&:disabled\":{color:\"#9e9e9e\"}},\"& .text-area\":{height:\"auto\",resize:\"none\"},\"& .ipFieldMain\":{width:\"100%\",\"& .MuiInputBase-root\":{background:\"#fff\",borderRadius:\"4px\",padding:\"12px 10px\"}},\"& .Mui-error\":{fontWeight:\"700\"},\"& .Mui-disabled\":{opacity:\"1.3\",cursor:\"not-allowed\"},\"& .inputs-cards\":{marginBottom:Ds.spacing(2),borderRadius:Ds.spacing(.5),backgroundColor:Ds.palette.secondary.main,\"& .cards-header-wrapper\":{whiteSpace:\"nowrap\",color:Ds.palette.grey[400],\"& .round-badge\":{width:\"30px\",height:\"30px\",textAlign:\"center\",borderRadius:\"50px\",padding:\"3px\",fontWeight:\"500\",fontSize:\"14px\",color:Ds.palette.grey[400],backgroundColor:\"#DFFBE8\"}},\"& .input-card-body\":{padding:\"16px\",borderTop:\"1px solid \".concat(Ds.palette.secondary.light)}},\"& .MuiTextField-root\":{width:\"100%\",\"& :hover, .Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{borderColor:Ds.palette.grey[100]}},\"& .MuiInputBase-root\":{height:\"40px\"}},\"& .drawer-switch-component\":{\"& .MuiFormGroup-root\":{\"& .MuiFormControlLabel-root\":{justifyContent:\"flex-end\",gap:\"16px\",margin:\"0px\",width:\"fit-content\"}},\"& .MuiSwitch-root\":{width:\"45px\",height:\"24px\",padding:0},\"& .MuiButtonBase-root\":{margin:\"3px\",\"&.MuiSwitch-switchBase\":{\"& .MuiSwitch-thumb\":{height:\"18px\",width:\"18px\"}}}},\"& .time-picker-wrapper\":{width:\"100%\",\"& .rc-time-picker\":{width:\"100%\",\"& .rc-time-picker-input\":{height:\"40px\",borderColor:Ds.palette.grey[100]},\"& .rc-time-picker-clear\":{top:\"8px\",\"& .rc-time-picker-clear-icon:after\":{fontSize:\"18px\"}},\"& .timer-icon\":{position:\"absolute\",zIndex:\"1\",top:\"10px\",right:\"8px\",color:Ds.palette.grey[200]}},\"& .rc-time-picker-panel-inner\":{borderColor:Ds.palette.grey[100],width:\"100%\"}},\"& .MuiInputBase-root\":{maxWidth:\"234px\",minWidth:\"100%\"},\"& .error-msg-card\":{margin:\"24px 0px\",border:\"1px solid \".concat(Ds.palette.error.main),padding:\"16px\",boxShadow:\"0px 4px 10px rgba(0, 0, 0, 0.1)\",borderRadius:Ds.spacing(.5),borderLeftWidth:\"6px\",alignItems:\"start\",height:\"80px\"},\"& .icon-message\":{fontSize:\"20px\",color:Ds.palette.error.main},\"& .info-icon\":{color:Ds.palette.info.light,fontSize:\"20\"},\"& .table-border-red\":{\"& .ag-root-wrapper \":{border:\"none !important\",\"& .ag-row\":{minHeight:\"60px\",alignItems:\"baseline\"}}},\"& .border-top\":{borderTop:\"2px solid \"},\"& .document-view-lits\":{\"& .MuiListItem-root\":{color:Ds.palette.info.light,display:\"flex\",gap:\"10px\",borderBottom:\"1px solid  \".concat(Ds.palette.grey[100]),borderRadius:\"4px\",cursor:\"pointer\",margin:\"5px auto\",\"& .MuiLink-root\":{whiteSpace:\"wrap\",overflow:\"hidden\",width:\"100%\",color:Ds.palette.info.light},\"&:hover\":{backgroundColor:Ds.palette.grey[700],color:\"\".concat(Ds.palette.secondary.main,\" \")}},\"& .currently-viewing\":{backgroundColor:Ds.palette.grey[700],color:\"\".concat(Ds.palette.secondary.main,\" \"),\"& .pdf-file-name \":{color:\"\".concat(Ds.palette.secondary.main,\" \")}}},\"& .pdf-view-wrapper\":{width:\"30%\",\"& .pdf-file-name \":{whiteSpace:\"wrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",width:\"100%\"}},\"& .pdf-wrapper\":{width:\"70%\"},\"& .iframe-container\":{minWidth:\"70%\",height:\"80vh\"}},filterComponent:{\"& .MuiPaper-root\":{top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",\"& .smart-agro-lite-filter-cross\":{position:\"fixed\",zIndex:\"3\",width:\"100%\",\" & .closeIcon \":{position:\"absolute\",transform:\"translateY(4px)\",left:\"45%\",padding:\"8px\",backgroundColor:Ds.palette.secondary.main,width:\"40px\",textAlign:\"center\",alignItems:\"center\",height:\"40px\",borderRadius:\"50%\",color:Ds.palette.grey[700],cursor:\"pointer\"}}},\"& .MuiTextField-root\":{minWidth:\"100% !important\"},\"& .floating-filter-wrapper\":{minHeight:\"214px\"},\"& .floating-filter\":{position:\"fixed\",width:\"calc(100% - 72px)\",\"& .multi-select\":{maxWidth:\"400px !important\"}},\"& .filter-date-picker  .MuiInputBase-adornedEnd\":{width:\"calc(100% - 10px)\"}}}),Ns=e=>{let{isDrawerOpen:t,children:n,anchor:r=\"right\",upper:o=!1}=e;const a=Is();return i().createElement(di,{anchor:r,open:t,className:o?a.filterComponent:a.customDrawerComponent,\"data-testid\":\"drawer\"},n)},Ps=i().memo(Ns);var Ls=n(8749);const Fs=[\"ownerState\"],_s=[\"variants\"],zs=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function Gs(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}const Vs=(0,Ls.A)(),Bs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Hs({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function js(e){return e?(t,n)=>n[e]:null}function Us(e,t){let{ownerState:n}=t,r=(0,At.A)(t,Fs);const i=\"function\"==typeof e?e((0,Tt.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>Us(e,(0,Tt.A)({ownerState:n},r))));if(i&&\"object\"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,At.A)(i,_s);return e.forEach((e=>{let i=!0;\"function\"==typeof e.props?i=e.props((0,Tt.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push(\"function\"==typeof e.style?e.style((0,Tt.A)({ownerState:n},r,n)):e.style))})),t}return i}const Ws=function(e={}){const{themeId:t,defaultTheme:n=Vs,rootShouldForwardProp:r=Gs,slotShouldForwardProp:i=Gs}=e,o=e=>(0,Mn.A)((0,Tt.A)({},e,{theme:Hs((0,Tt.A)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Rn.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:u=js(Bs(l))}=a,h=(0,At.A)(a,zs),p=void 0!==c?c:l&&\"Root\"!==l&&\"root\"!==l||!1,g=d||!1;let f=Gs;\"Root\"===l||\"root\"===l?f=r:l?f=i:function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const m=(0,Rn.default)(e,(0,Tt.A)({shouldForwardProp:f,label:void 0},h)),v=e=>\"function\"==typeof e&&e.__emotion_real!==e||(0,ss.Q)(e)?r=>Us(e,(0,Tt.A)({},r,{theme:Hs({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...i)=>{let a=v(r);const l=i?i.map(v):[];s&&u&&l.push((e=>{const r=Hs((0,Tt.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=Us(n,(0,Tt.A)({},e,{theme:r}))})),u(e,o)})),s&&!p&&l.push((e=>{var r;const i=Hs((0,Tt.A)({},e,{defaultTheme:n,themeId:t}));return Us({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,Tt.A)({},e,{theme:i}))})),g||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill(\"\");a=[...r,...e],a.raw=[...r.raw,...e]}const d=m(a,...l);return e.muiName&&(d.muiName=e.muiName),d};return m.withConfig&&(y.withConfig=m.withConfig),y}}(),$s=Ws;var Ys=n(4467),Ks=n(9452),qs=n(8248);const Qs=[\"component\",\"direction\",\"spacing\",\"divider\",\"children\",\"className\",\"useFlexGap\"],Xs=(0,Ls.A)(),Zs=$s(\"div\",{name:\"MuiStack\",slot:\"Root\",overridesResolver:(e,t)=>t.root});function Js(e){return(0,Ys.A)({props:e,name:\"MuiStack\",defaultTheme:Xs})}function el(e,n){const r=t.Children.toArray(e).filter(Boolean);return r.reduce(((e,i,o)=>(e.push(i),o<r.length-1&&e.push(t.cloneElement(n,{key:`separator-${o}`})),e)),[])}const tl=({ownerState:e,theme:t})=>{let n=(0,Tt.A)({display:\"flex\",flexDirection:\"column\"},(0,Ks.NI)({theme:t},(0,Ks.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,qs.LX)(t),i=Object.keys(t.breakpoints.values).reduce(((t,n)=>((\"object\"==typeof e.spacing&&null!=e.spacing[n]||\"object\"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),o=(0,Ks.kW)({values:e.direction,base:i}),a=(0,Ks.kW)({values:e.spacing,base:i});\"object\"==typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:\"column\";o[e]=r}}));const s=(t,n)=>{return e.useFlexGap?{gap:(0,qs._W)(r,t)}:{\"& > :not(style):not(style)\":{margin:0},\"& > :not(style) ~ :not(style)\":{[`margin${i=n?o[n]:e.direction,{row:\"Left\",\"row-reverse\":\"Right\",column:\"Top\",\"column-reverse\":\"Bottom\"}[i]}`]:(0,qs._W)(r,t)}};var i};n=(0,ss.A)(n,(0,Ks.NI)({theme:t},a,s))}return n=(0,Ks.iZ)(t.breakpoints,n),n},nl=function(e={}){const{createStyledComponent:n=Zs,useThemeProps:r=Js,componentName:i=\"MuiStack\"}=e,o=n(tl),a=t.forwardRef((function(e,t){const n=r(e),a=(0,On.A)(n),{component:s=\"div\",direction:l=\"column\",spacing:c=0,divider:d,children:u,className:h,useFlexGap:p=!1}=a,g=(0,At.A)(a,Qs),f={direction:l,spacing:c,useFlexGap:p},m=(0,Rt.A)({root:[\"root\"]},(e=>(0,un.Ay)(i,e)),{});return(0,Kt.jsx)(o,(0,Tt.A)({as:s,ownerState:f,ref:t,className:(0,We.A)(m.root,h)},g,{children:d?el(u,d):u}))}));return a}({createStyledComponent:(0,Ot.Ay)(\"div\",{name:\"MuiStack\",slot:\"Root\",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,It.A)({props:e,name:\"MuiStack\"})}),rl=nl;function il(e){return(0,un.Ay)(\"MuiTypography\",e)}(0,qt.A)(\"MuiTypography\",[\"root\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"subtitle1\",\"subtitle2\",\"body1\",\"body2\",\"inherit\",\"button\",\"caption\",\"overline\",\"alignLeft\",\"alignRight\",\"alignCenter\",\"alignJustify\",\"noWrap\",\"gutterBottom\",\"paragraph\"]);const ol=[\"align\",\"className\",\"component\",\"gutterBottom\",\"noWrap\",\"paragraph\",\"variant\",\"variantMapping\"],al=(0,Ot.Ay)(\"span\",{name:\"MuiTypography\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],\"inherit\"!==n.align&&t[`align${(0,vn.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,Tt.A)({margin:0},\"inherit\"===t.variant&&{font:\"inherit\"},\"inherit\"!==t.variant&&e.typography[t.variant],\"inherit\"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},t.gutterBottom&&{marginBottom:\"0.35em\"},t.paragraph&&{marginBottom:16}))),sl={h1:\"h1\",h2:\"h2\",h3:\"h3\",h4:\"h4\",h5:\"h5\",h6:\"h6\",subtitle1:\"h6\",subtitle2:\"h6\",body1:\"p\",body2:\"p\",inherit:\"p\"},ll={primary:\"primary.main\",textPrimary:\"text.primary\",secondary:\"secondary.main\",textSecondary:\"text.secondary\",error:\"error.main\"},cl=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiTypography\"}),r=(e=>ll[e]||e)(n.color),i=(0,On.A)((0,Tt.A)({},n,{color:r})),{align:o=\"inherit\",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u=\"body1\",variantMapping:h=sl}=i,p=(0,At.A)(i,ol),g=(0,Tt.A)({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:h}),f=s||(d?\"p\":h[u]||sl[u])||\"span\",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:[\"root\",o,\"inherit\"!==e.align&&`align${(0,vn.A)(t)}`,n&&\"gutterBottom\",r&&\"noWrap\",i&&\"paragraph\"]};return(0,Rt.A)(s,il,a)})(g);return(0,Kt.jsx)(al,(0,Tt.A)({as:f,ref:t,ownerState:g,className:(0,We.A)(m.root,a)},p))}));function dl(e){return(0,un.Ay)(\"MuiIconButton\",e)}const ul=(0,qt.A)(\"MuiIconButton\",[\"root\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorError\",\"colorInfo\",\"colorSuccess\",\"colorWarning\",\"edgeStart\",\"edgeEnd\",\"sizeSmall\",\"sizeMedium\",\"sizeLarge\"]),hl=[\"edge\",\"children\",\"className\",\"color\",\"disabled\",\"disableFocusRipple\",\"size\"],pl=(0,Ot.Ay)(mn,{name:\"MuiIconButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"default\"!==n.color&&t[`color${(0,vn.A)(n.color)}`],n.edge&&t[`edge${(0,vn.A)(n.edge)}`],t[`size${(0,vn.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,Tt.A)({textAlign:\"center\",flex:\"0 0 auto\",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:\"50%\",overflow:\"visible\",color:(e.vars||e).palette.action.active,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(e.palette.action.active,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},\"start\"===t.edge&&{marginLeft:\"small\"===t.size?-3:-12},\"end\"===t.edge&&{marginRight:\"small\"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,Tt.A)({},\"inherit\"===t.color&&{color:\"inherit\"},\"inherit\"!==t.color&&\"default\"!==t.color&&(0,Tt.A)({color:null==r?void 0:r.main},!t.disableRipple&&{\"&:hover\":(0,Tt.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(r.main,e.palette.action.hoverOpacity)},{\"@media (hover: none)\":{backgroundColor:\"transparent\"}})}),\"small\"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},\"large\"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ul.disabled}`]:{backgroundColor:\"transparent\",color:(e.vars||e).palette.action.disabled}})})),gl=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiIconButton\"}),{edge:r=!1,children:i,className:o,color:a=\"default\",disabled:s=!1,disableFocusRipple:l=!1,size:c=\"medium\"}=n,d=(0,At.A)(n,hl),u=(0,Tt.A)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),h=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:[\"root\",n&&\"disabled\",\"default\"!==r&&`color${(0,vn.A)(r)}`,i&&`edge${(0,vn.A)(i)}`,`size${(0,vn.A)(o)}`]};return(0,Rt.A)(a,dl,t)})(u);return(0,Kt.jsx)(pl,(0,Tt.A)({className:(0,We.A)(h.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},d,{ownerState:u,children:i}))}));function fl({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const ml=t.createContext(void 0);function vl(){return t.useContext(ml)}function yl(e){return(0,un.Ay)(\"MuiFormHelperText\",e)}const bl=(0,qt.A)(\"MuiFormHelperText\",[\"root\",\"error\",\"disabled\",\"sizeSmall\",\"sizeMedium\",\"contained\",\"focused\",\"filled\",\"required\"]);var wl;const Cl=[\"children\",\"className\",\"component\",\"disabled\",\"error\",\"filled\",\"focused\",\"margin\",\"required\",\"variant\"],Sl=(0,Ot.Ay)(\"p\",{name:\"MuiFormHelperText\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,vn.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,Tt.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:\"left\",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${bl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bl.error}`]:{color:(e.vars||e).palette.error.main}},\"small\"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),El=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiFormHelperText\"}),{children:r,className:i,component:o=\"p\"}=n,a=(0,At.A)(n,Cl),s=fl({props:n,muiFormControl:vl(),states:[\"variant\",\"size\",\"disabled\",\"error\",\"filled\",\"focused\",\"required\"]}),l=(0,Tt.A)({},n,{component:o,contained:\"filled\"===s.variant||\"outlined\"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:[\"root\",i&&\"disabled\",o&&\"error\",r&&`size${(0,vn.A)(r)}`,n&&\"contained\",s&&\"focused\",a&&\"filled\",l&&\"required\"]};return(0,Rt.A)(c,yl,t)})(l);return(0,Kt.jsx)(Sl,(0,Tt.A)({as:o,ownerState:l,className:(0,We.A)(c.root,i),ref:t},a,{children:\" \"===r?wl||(wl=(0,Kt.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):r}))}));var xl=function(e){return function(e){return!!e&&\"object\"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return\"[object RegExp]\"===t||\"[object Date]\"===t||function(e){return e.$$typeof===Al}(e)}(e)},Al=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function Tl(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Rl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Dl(e,t,n){return e.concat(t).map((function(e){return Tl(e,n)}))}function Rl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Dl,n.isMergeableObject=n.isMergeableObject||xl;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=Tl(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=Rl(e[i],t[i],n):r[i]=Tl(t[i],n)})),r}(e,t,n):Tl(t,n)}Rl.all=function(e,t){if(!Array.isArray(e))throw new Error(\"first argument should be an array\");return e.reduce((function(e,n){return Rl(e,n,t)}),{})};const Ml=Rl,Ol=\"object\"==typeof global&&global&&global.Object===Object&&global;var kl=\"object\"==typeof self&&self&&self.Object===Object&&self;const Il=Ol||kl||Function(\"return this\")(),Nl=Il.Symbol;var Pl=Object.prototype,Ll=Pl.hasOwnProperty,Fl=Pl.toString,_l=Nl?Nl.toStringTag:void 0;var zl=Object.prototype.toString;var Gl=Nl?Nl.toStringTag:void 0;const Vl=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":Gl&&Gl in Object(e)?function(e){var t=Ll.call(e,_l),n=e[_l];try{e[_l]=void 0;var r=!0}catch(e){}var i=Fl.call(e);return r&&(t?e[_l]=n:delete e[_l]),i}(e):function(e){return zl.call(e)}(e)},Bl=function(e,t){return function(n){return e(t(n))}},Hl=Bl(Object.getPrototypeOf,Object),jl=function(e){return null!=e&&\"object\"==typeof e};var Ul=Function.prototype,Wl=Object.prototype,$l=Ul.toString,Yl=Wl.hasOwnProperty,Kl=$l.call(Object);const ql=function(e){if(!jl(e)||\"[object Object]\"!=Vl(e))return!1;var t=Hl(e);if(null===t)return!0;var n=Yl.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&$l.call(n)==Kl},Ql=function(e,t){return e===t||e!=e&&t!=t},Xl=function(e,t){for(var n=e.length;n--;)if(Ql(e[n][0],t))return n;return-1};var Zl=Array.prototype.splice;function Jl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jl.prototype.clear=function(){this.__data__=[],this.size=0},Jl.prototype.delete=function(e){var t=this.__data__,n=Xl(t,e);return!(n<0||(n==t.length-1?t.pop():Zl.call(t,n,1),--this.size,0))},Jl.prototype.get=function(e){var t=this.__data__,n=Xl(t,e);return n<0?void 0:t[n][1]},Jl.prototype.has=function(e){return Xl(this.__data__,e)>-1},Jl.prototype.set=function(e,t){var n=this.__data__,r=Xl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const ec=Jl,tc=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)},nc=function(e){if(!tc(e))return!1;var t=Vl(e);return\"[object Function]\"==t||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t},rc=Il[\"__core-js_shared__\"];var ic,oc=(ic=/[^.]+$/.exec(rc&&rc.keys&&rc.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+ic:\"\";var ac=Function.prototype.toString;const sc=function(e){if(null!=e){try{return ac.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"};var lc=/^\\[object .+?Constructor\\]$/,cc=Function.prototype,dc=Object.prototype,uc=cc.toString,hc=dc.hasOwnProperty,pc=RegExp(\"^\"+uc.call(hc).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");const gc=function(e){return!(!tc(e)||(t=e,oc&&oc in t))&&(nc(e)?pc:lc).test(sc(e));var t},fc=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return gc(n)?n:void 0},mc=fc(Il,\"Map\"),vc=fc(Object,\"create\");var yc=Object.prototype.hasOwnProperty;var bc=Object.prototype.hasOwnProperty;function wc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wc.prototype.clear=function(){this.__data__=vc?vc(null):{},this.size=0},wc.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},wc.prototype.get=function(e){var t=this.__data__;if(vc){var n=t[e];return\"__lodash_hash_undefined__\"===n?void 0:n}return yc.call(t,e)?t[e]:void 0},wc.prototype.has=function(e){var t=this.__data__;return vc?void 0!==t[e]:bc.call(t,e)},wc.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vc&&void 0===t?\"__lodash_hash_undefined__\":t,this};const Cc=wc,Sc=function(e,t){var n,r,i=e.__data__;return(\"string\"==(r=typeof(n=t))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?i[\"string\"==typeof t?\"string\":\"hash\"]:i.map};function Ec(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ec.prototype.clear=function(){this.size=0,this.__data__={hash:new Cc,map:new(mc||ec),string:new Cc}},Ec.prototype.delete=function(e){var t=Sc(this,e).delete(e);return this.size-=t?1:0,t},Ec.prototype.get=function(e){return Sc(this,e).get(e)},Ec.prototype.has=function(e){return Sc(this,e).has(e)},Ec.prototype.set=function(e,t){var n=Sc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const xc=Ec;function Ac(e){var t=this.__data__=new ec(e);this.size=t.size}Ac.prototype.clear=function(){this.__data__=new ec,this.size=0},Ac.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ac.prototype.get=function(e){return this.__data__.get(e)},Ac.prototype.has=function(e){return this.__data__.has(e)},Ac.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ec){var r=n.__data__;if(!mc||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xc(r)}return n.set(e,t),this.size=n.size,this};const Tc=Ac,Dc=function(){try{var e=fc(Object,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),Rc=function(e,t,n){\"__proto__\"==t&&Dc?Dc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Mc=Object.prototype.hasOwnProperty;const Oc=function(e,t,n){var r=e[t];Mc.call(e,t)&&Ql(r,n)&&(void 0!==n||t in e)||Rc(e,t,n)},kc=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Rc(n,s,l):Oc(n,s,l)}return n},Ic=function(e){return jl(e)&&\"[object Arguments]\"==Vl(e)};var Nc=Object.prototype,Pc=Nc.hasOwnProperty,Lc=Nc.propertyIsEnumerable;const Fc=Ic(function(){return arguments}())?Ic:function(e){return jl(e)&&Pc.call(e,\"callee\")&&!Lc.call(e,\"callee\")},_c=Array.isArray;var zc=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,Gc=zc&&\"object\"==typeof module&&module&&!module.nodeType&&module,Vc=Gc&&Gc.exports===zc?Il.Buffer:void 0;const Bc=(Vc?Vc.isBuffer:void 0)||function(){return!1};var Hc=/^(?:0|[1-9]\\d*)$/;const jc=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&(\"number\"==n||\"symbol\"!=n&&Hc.test(e))&&e>-1&&e%1==0&&e<t},Uc=function(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Wc={};Wc[\"[object Float32Array]\"]=Wc[\"[object Float64Array]\"]=Wc[\"[object Int8Array]\"]=Wc[\"[object Int16Array]\"]=Wc[\"[object Int32Array]\"]=Wc[\"[object Uint8Array]\"]=Wc[\"[object Uint8ClampedArray]\"]=Wc[\"[object Uint16Array]\"]=Wc[\"[object Uint32Array]\"]=!0,Wc[\"[object Arguments]\"]=Wc[\"[object Array]\"]=Wc[\"[object ArrayBuffer]\"]=Wc[\"[object Boolean]\"]=Wc[\"[object DataView]\"]=Wc[\"[object Date]\"]=Wc[\"[object Error]\"]=Wc[\"[object Function]\"]=Wc[\"[object Map]\"]=Wc[\"[object Number]\"]=Wc[\"[object Object]\"]=Wc[\"[object RegExp]\"]=Wc[\"[object Set]\"]=Wc[\"[object String]\"]=Wc[\"[object WeakMap]\"]=!1;const $c=function(e){return function(t){return e(t)}};var Yc=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,Kc=Yc&&\"object\"==typeof module&&module&&!module.nodeType&&module,qc=Kc&&Kc.exports===Yc&&Ol.process;const Qc=function(){try{return Kc&&Kc.require&&Kc.require(\"util\").types||qc&&qc.binding&&qc.binding(\"util\")}catch(e){}}();var Xc=Qc&&Qc.isTypedArray;const Zc=Xc?$c(Xc):function(e){return jl(e)&&Uc(e.length)&&!!Wc[Vl(e)]};var Jc=Object.prototype.hasOwnProperty;const ed=function(e,t){var n=_c(e),r=!n&&Fc(e),i=!n&&!r&&Bc(e),o=!n&&!r&&!i&&Zc(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Jc.call(e,c)||a&&(\"length\"==c||i&&(\"offset\"==c||\"parent\"==c)||o&&(\"buffer\"==c||\"byteLength\"==c||\"byteOffset\"==c)||jc(c,l))||s.push(c);return s};var td=Object.prototype;const nd=function(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||td)},rd=Bl(Object.keys,Object);var id=Object.prototype.hasOwnProperty;const od=function(e){return null!=e&&Uc(e.length)&&!nc(e)},ad=function(e){return od(e)?ed(e):function(e){if(!nd(e))return rd(e);var t=[];for(var n in Object(e))id.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}(e)};var sd=Object.prototype.hasOwnProperty;const ld=function(e){if(!tc(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=nd(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&sd.call(e,r))&&n.push(r);return n},cd=function(e){return od(e)?ed(e,!0):ld(e)};var dd=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,ud=dd&&\"object\"==typeof module&&module&&!module.nodeType&&module,hd=ud&&ud.exports===dd?Il.Buffer:void 0,pd=hd?hd.allocUnsafe:void 0;const gd=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},fd=function(){return[]};var md=Object.prototype.propertyIsEnumerable,vd=Object.getOwnPropertySymbols,yd=vd?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(vd(e),(function(t){return md.call(e,t)})))}:fd;const bd=yd,wd=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var Cd=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)wd(t,bd(e)),e=Hl(e);return t}:fd;const Sd=Cd,Ed=function(e,t,n){var r=t(e);return _c(e)?r:wd(r,n(e))},xd=function(e){return Ed(e,ad,bd)},Ad=function(e){return Ed(e,cd,Sd)},Td=fc(Il,\"DataView\"),Dd=fc(Il,\"Promise\"),Rd=fc(Il,\"Set\"),Md=fc(Il,\"WeakMap\");var Od=\"[object Map]\",kd=\"[object Promise]\",Id=\"[object Set]\",Nd=\"[object WeakMap]\",Pd=\"[object DataView]\",Ld=sc(Td),Fd=sc(mc),_d=sc(Dd),zd=sc(Rd),Gd=sc(Md),Vd=Vl;(Td&&Vd(new Td(new ArrayBuffer(1)))!=Pd||mc&&Vd(new mc)!=Od||Dd&&Vd(Dd.resolve())!=kd||Rd&&Vd(new Rd)!=Id||Md&&Vd(new Md)!=Nd)&&(Vd=function(e){var t=Vl(e),n=\"[object Object]\"==t?e.constructor:void 0,r=n?sc(n):\"\";if(r)switch(r){case Ld:return Pd;case Fd:return Od;case _d:return kd;case zd:return Id;case Gd:return Nd}return t});const Bd=Vd;var Hd=Object.prototype.hasOwnProperty;const jd=Il.Uint8Array,Ud=function(e){var t=new e.constructor(e.byteLength);return new jd(t).set(new jd(e)),t};var Wd=/\\w*$/;var $d=Nl?Nl.prototype:void 0,Yd=$d?$d.valueOf:void 0;const Kd=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case\"[object ArrayBuffer]\":return Ud(e);case\"[object Boolean]\":case\"[object Date]\":return new a(+e);case\"[object DataView]\":return function(e,t){var n=t?Ud(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case\"[object Float32Array]\":case\"[object Float64Array]\":case\"[object Int8Array]\":case\"[object Int16Array]\":case\"[object Int32Array]\":case\"[object Uint8Array]\":case\"[object Uint8ClampedArray]\":case\"[object Uint16Array]\":case\"[object Uint32Array]\":return function(e,t){var n=t?Ud(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case\"[object Map]\":case\"[object Set]\":return new a;case\"[object Number]\":case\"[object String]\":return new a(e);case\"[object RegExp]\":return(o=new(i=e).constructor(i.source,Wd.exec(i))).lastIndex=i.lastIndex,o;case\"[object Symbol]\":return r=e,Yd?Object(Yd.call(r)):{}}};var qd=Object.create,Qd=function(){function e(){}return function(t){if(!tc(t))return{};if(qd)return qd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Xd=Qd;var Zd=Qc&&Qc.isMap;const Jd=Zd?$c(Zd):function(e){return jl(e)&&\"[object Map]\"==Bd(e)};var eu=Qc&&Qc.isSet;const tu=eu?$c(eu):function(e){return jl(e)&&\"[object Set]\"==Bd(e)};var nu=\"[object Arguments]\",ru=\"[object Function]\",iu=\"[object Object]\",ou={};ou[nu]=ou[\"[object Array]\"]=ou[\"[object ArrayBuffer]\"]=ou[\"[object DataView]\"]=ou[\"[object Boolean]\"]=ou[\"[object Date]\"]=ou[\"[object Float32Array]\"]=ou[\"[object Float64Array]\"]=ou[\"[object Int8Array]\"]=ou[\"[object Int16Array]\"]=ou[\"[object Int32Array]\"]=ou[\"[object Map]\"]=ou[\"[object Number]\"]=ou[iu]=ou[\"[object RegExp]\"]=ou[\"[object Set]\"]=ou[\"[object String]\"]=ou[\"[object Symbol]\"]=ou[\"[object Uint8Array]\"]=ou[\"[object Uint8ClampedArray]\"]=ou[\"[object Uint16Array]\"]=ou[\"[object Uint32Array]\"]=!0,ou[\"[object Error]\"]=ou[ru]=ou[\"[object WeakMap]\"]=!1;const au=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,d=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!tc(t))return t;var u=_c(t);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&Hd.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}(t),!l)return gd(t,s)}else{var h=Bd(t),p=h==ru||\"[object GeneratorFunction]\"==h;if(Bc(t))return function(e,t){if(t)return e.slice();var n=e.length,r=pd?pd(n):new e.constructor(n);return e.copy(r),r}(t,l);if(h==iu||h==nu||p&&!o){if(s=c||p?{}:function(e){return\"function\"!=typeof e.constructor||nd(e)?{}:Xd(Hl(e))}(t),!l)return c?function(e,t){return kc(e,Sd(e),t)}(t,function(e,t){return e&&kc(t,cd(t),e)}(s,t)):function(e,t){return kc(e,bd(e),t)}(t,function(e,t){return e&&kc(t,ad(t),e)}(s,t))}else{if(!ou[h])return o?t:{};s=Kd(t,h,l)}}a||(a=new Tc);var g=a.get(t);if(g)return g;a.set(t,s),tu(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Jd(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var f=u?void 0:(d?c?Ad:xd:c?cd:ad)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||t,(function(i,o){f&&(i=t[o=i]),Oc(s,o,e(i,n,r,o,t,a))})),s},su=function(e){return au(e,5)};var lu=n(115),cu=n.n(lu);const du=function(e,t){},uu=function(e){return au(e,4)},hu=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},pu=function(e){return\"symbol\"==typeof e||jl(e)&&\"[object Symbol]\"==Vl(e)};function gu(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new TypeError(\"Expected a function\");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(gu.Cache||xc),n}gu.Cache=xc;const fu=gu;var mu=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,vu=/\\\\(\\\\)?/g,yu=function(e){var t=fu(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(mu,(function(e,n,r,i){t.push(r?i.replace(vu,\"$1\"):n||e)})),t}));const bu=yu,wu=function(e){if(\"string\"==typeof e||pu(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t};var Cu=Nl?Nl.prototype:void 0,Su=Cu?Cu.toString:void 0;const Eu=function e(t){if(\"string\"==typeof t)return t;if(_c(t))return hu(t,e)+\"\";if(pu(t))return Su?Su.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-1/0?\"-0\":n},xu=function(e){return null==e?\"\":Eu(e)},Au=function(e){return _c(e)?hu(e,wu):pu(e)?[e]:gd(bu(xu(e)))};var Tu=n(4146),Du=n.n(Tu);function Ru(){return Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}function Mu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ou(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function ku(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}var Iu=(0,t.createContext)(void 0);Iu.displayName=\"FormikContext\";var Nu=Iu.Provider,Pu=Iu.Consumer;function Lu(){var e=(0,t.useContext)(Iu);return e||du(!1),e}var Fu=function(e){return Array.isArray(e)&&0===e.length},_u=function(e){return\"function\"==typeof e},zu=function(e){return null!==e&&\"object\"==typeof e},Gu=function(e){return String(Math.floor(Number(e)))===e},Vu=function(e){return\"[object String]\"===Object.prototype.toString.call(e)},Bu=function(e){return 0===t.Children.count(e)},Hu=function(e){return zu(e)&&_u(e.then)};function ju(e,t,n,r){void 0===r&&(r=0);for(var i=Au(t);e&&r<i.length;)e=e[i[r++]];return r===i.length||e?void 0===e?n:e:n}function Uu(e,t,n){for(var r=uu(e),i=r,o=0,a=Au(t);o<a.length-1;o++){var s=a[o],l=ju(e,a.slice(0,o+1));if(l&&(zu(l)||Array.isArray(l)))i=i[s]=uu(l);else{var c=a[o+1];i=i[s]=Gu(c)&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function Wu(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];zu(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Wu(s,t,n,r[a])):r[a]=t}return r}var $u={},Yu={};function Ku(e){var n=e.validateOnChange,r=void 0===n||n,i=e.validateOnBlur,o=void 0===i||i,a=e.validateOnMount,s=void 0!==a&&a,l=e.isInitialValid,c=e.enableReinitialize,d=void 0!==c&&c,u=e.onSubmit,h=Ou(e,[\"validateOnChange\",\"validateOnBlur\",\"validateOnMount\",\"isInitialValid\",\"enableReinitialize\",\"onSubmit\"]),p=Ru({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:u},h),g=(0,t.useRef)(p.initialValues),f=(0,t.useRef)(p.initialErrors||$u),m=(0,t.useRef)(p.initialTouched||Yu),v=(0,t.useRef)(p.initialStatus),y=(0,t.useRef)(!1),b=(0,t.useRef)({});(0,t.useEffect)((function(){return y.current=!0,function(){y.current=!1}}),[]);var w=(0,t.useState)(0)[1],C=(0,t.useRef)({values:su(p.initialValues),errors:su(p.initialErrors)||$u,touched:su(p.initialTouched)||Yu,status:su(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=C.current,E=(0,t.useCallback)((function(e){var t=C.current;C.current=function(e,t){switch(t.type){case\"SET_VALUES\":return Ru({},e,{values:t.payload});case\"SET_TOUCHED\":return Ru({},e,{touched:t.payload});case\"SET_ERRORS\":return cu()(e.errors,t.payload)?e:Ru({},e,{errors:t.payload});case\"SET_STATUS\":return Ru({},e,{status:t.payload});case\"SET_ISSUBMITTING\":return Ru({},e,{isSubmitting:t.payload});case\"SET_ISVALIDATING\":return Ru({},e,{isValidating:t.payload});case\"SET_FIELD_VALUE\":return Ru({},e,{values:Uu(e.values,t.payload.field,t.payload.value)});case\"SET_FIELD_TOUCHED\":return Ru({},e,{touched:Uu(e.touched,t.payload.field,t.payload.value)});case\"SET_FIELD_ERROR\":return Ru({},e,{errors:Uu(e.errors,t.payload.field,t.payload.value)});case\"RESET_FORM\":return Ru({},e,t.payload);case\"SET_FORMIK_STATE\":return t.payload(e);case\"SUBMIT_ATTEMPT\":return Ru({},e,{touched:Wu(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case\"SUBMIT_FAILURE\":case\"SUBMIT_SUCCESS\":return Ru({},e,{isSubmitting:!1});default:return e}}(t,e),t!==C.current&&w((function(e){return e+1}))}),[]),x=(0,t.useCallback)((function(e,t){return new Promise((function(n,r){var i=p.validate(e,t);null==i?n($u):Hu(i)?i.then((function(e){n(e||$u)}),(function(e){r(e)})):n(i)}))}),[p.validate]),A=(0,t.useCallback)((function(e,t){var n=p.validationSchema,r=_u(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var i=Qu(e);return t[n?\"validateSync\":\"validate\"](i,{abortEarly:!1,context:i})}(e,r);return new Promise((function(e,t){i.then((function(){e($u)}),(function(n){\"ValidationError\"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Uu(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;ju(t,a.path)||(t=Uu(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[p.validationSchema]),T=(0,t.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),D=(0,t.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return _u(b.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,ju(e,t))})):[Promise.resolve(\"DO_NOT_DELETE_YOU_WILL_BE_FIRED\")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return\"DO_NOT_DELETE_YOU_WILL_BE_FIRED\"===n||n&&(e=Uu(e,t[r],n)),e}),{})}))}),[T]),R=(0,t.useCallback)((function(e){return Promise.all([D(e),p.validationSchema?A(e):{},p.validate?x(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return Ml.all([t,n,r],{arrayMerge:Xu})}))}),[p.validate,p.validationSchema,D,x,A]),M=Ju((function(e){return void 0===e&&(e=S.values),E({type:\"SET_ISVALIDATING\",payload:!0}),R(e).then((function(e){return y.current&&(E({type:\"SET_ISVALIDATING\",payload:!1}),E({type:\"SET_ERRORS\",payload:e})),e}))}));(0,t.useEffect)((function(){s&&!0===y.current&&cu()(g.current,p.initialValues)&&M(g.current)}),[s,M]);var O=(0,t.useCallback)((function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:f.current?f.current:p.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:p.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:p.initialStatus;g.current=t,f.current=n,m.current=r,v.current=i;var o=function(){E({type:\"RESET_FORM\",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&\"number\"==typeof e.submitCount?e.submitCount:0}})};if(p.onReset){var a=p.onReset(S.values,q);Hu(a)?a.then(o):o()}else o()}),[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,t.useEffect)((function(){!0!==y.current||cu()(g.current,p.initialValues)||d&&(g.current=p.initialValues,O(),s&&M(g.current))}),[d,p.initialValues,O,s,M]),(0,t.useEffect)((function(){d&&!0===y.current&&!cu()(f.current,p.initialErrors)&&(f.current=p.initialErrors||$u,E({type:\"SET_ERRORS\",payload:p.initialErrors||$u}))}),[d,p.initialErrors]),(0,t.useEffect)((function(){d&&!0===y.current&&!cu()(m.current,p.initialTouched)&&(m.current=p.initialTouched||Yu,E({type:\"SET_TOUCHED\",payload:p.initialTouched||Yu}))}),[d,p.initialTouched]),(0,t.useEffect)((function(){d&&!0===y.current&&!cu()(v.current,p.initialStatus)&&(v.current=p.initialStatus,E({type:\"SET_STATUS\",payload:p.initialStatus}))}),[d,p.initialStatus,p.initialTouched]);var k=Ju((function(e){if(b.current[e]&&_u(b.current[e].validate)){var t=ju(S.values,e),n=b.current[e].validate(t);return Hu(n)?(E({type:\"SET_ISVALIDATING\",payload:!0}),n.then((function(e){return e})).then((function(t){E({type:\"SET_FIELD_ERROR\",payload:{field:e,value:t}}),E({type:\"SET_ISVALIDATING\",payload:!1})}))):(E({type:\"SET_FIELD_ERROR\",payload:{field:e,value:n}}),Promise.resolve(n))}return p.validationSchema?(E({type:\"SET_ISVALIDATING\",payload:!0}),A(S.values,e).then((function(e){return e})).then((function(t){E({type:\"SET_FIELD_ERROR\",payload:{field:e,value:ju(t,e)}}),E({type:\"SET_ISVALIDATING\",payload:!1})}))):Promise.resolve()})),I=(0,t.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),N=(0,t.useCallback)((function(e){delete b.current[e]}),[]),P=Ju((function(e,t){return E({type:\"SET_TOUCHED\",payload:e}),(void 0===t?o:t)?M(S.values):Promise.resolve()})),L=(0,t.useCallback)((function(e){E({type:\"SET_ERRORS\",payload:e})}),[]),F=Ju((function(e,t){var n=_u(e)?e(S.values):e;return E({type:\"SET_VALUES\",payload:n}),(void 0===t?r:t)?M(n):Promise.resolve()})),_=(0,t.useCallback)((function(e,t){E({type:\"SET_FIELD_ERROR\",payload:{field:e,value:t}})}),[]),z=Ju((function(e,t,n){return E({type:\"SET_FIELD_VALUE\",payload:{field:e,value:t}}),(void 0===n?r:n)?M(Uu(S.values,e,t)):Promise.resolve()})),G=(0,t.useCallback)((function(e,t){var n,r=t,i=e;if(!Vu(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,d=o.checked,u=(o.outerHTML,o.options),h=o.multiple;r=t||s||l,i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?\"\":n):/checkbox/.test(a)?function(e,t,n){if(\"boolean\"==typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||\"true\"==n||\"false\"==n)return Boolean(t);return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(ju(S.values,r),d,c):u&&h?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(u):c}r&&z(r,i)}),[z,S.values]),V=Ju((function(e){if(Vu(e))return function(t){return G(t,e)};G(e)})),B=Ju((function(e,t,n){return void 0===t&&(t=!0),E({type:\"SET_FIELD_TOUCHED\",payload:{field:e,value:t}}),(void 0===n?o:n)?M(S.values):Promise.resolve()})),H=(0,t.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||r||i);B(o,!0)}),[B]),j=Ju((function(e){if(Vu(e))return function(t){return H(t,e)};H(e)})),U=(0,t.useCallback)((function(e){_u(e)?E({type:\"SET_FORMIK_STATE\",payload:e}):E({type:\"SET_FORMIK_STATE\",payload:function(){return e}})}),[]),W=(0,t.useCallback)((function(e){E({type:\"SET_STATUS\",payload:e})}),[]),$=(0,t.useCallback)((function(e){E({type:\"SET_ISSUBMITTING\",payload:e})}),[]),Y=Ju((function(){return E({type:\"SUBMIT_ATTEMPT\"}),M().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Q()))return}catch(e){throw e}return Promise.resolve(n).then((function(e){return y.current&&E({type:\"SUBMIT_SUCCESS\"}),e})).catch((function(e){if(y.current)throw E({type:\"SUBMIT_FAILURE\"}),e}))}if(y.current&&(E({type:\"SUBMIT_FAILURE\"}),t))throw e}))})),K=Ju((function(e){e&&e.preventDefault&&_u(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_u(e.stopPropagation)&&e.stopPropagation(),Y().catch((function(e){console.warn(\"Warning: An unhandled error was caught from submitForm()\",e)}))})),q={resetForm:O,validateForm:M,validateField:k,setErrors:L,setFieldError:_,setFieldTouched:B,setFieldValue:z,setStatus:W,setSubmitting:$,setTouched:P,setValues:F,setFormikState:U,submitForm:Y},Q=Ju((function(){return u(S.values,q)})),X=Ju((function(e){e&&e.preventDefault&&_u(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_u(e.stopPropagation)&&e.stopPropagation(),O()})),Z=(0,t.useCallback)((function(e){return{value:ju(S.values,e),error:ju(S.errors,e),touched:!!ju(S.touched,e),initialValue:ju(g.current,e),initialTouched:!!ju(m.current,e),initialError:ju(f.current,e)}}),[S.errors,S.touched,S.values]),J=(0,t.useCallback)((function(e){return{setValue:function(t,n){return z(e,t,n)},setTouched:function(t,n){return B(e,t,n)},setError:function(t){return _(e,t)}}}),[z,B,_]),ee=(0,t.useCallback)((function(e){var t=zu(e),n=t?e.name:e,r=ju(S.values,n),i={name:n,value:r,onChange:V,onBlur:j};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;\"checkbox\"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):\"radio\"===o?(i.checked=r===a,i.value=a):\"select\"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[j,V,S.values]),te=(0,t.useMemo)((function(){return!cu()(g.current,S.values)}),[g.current,S.values]),ne=(0,t.useMemo)((function(){return void 0!==l?te?S.errors&&0===Object.keys(S.errors).length:!1!==l&&_u(l)?l(p):l:S.errors&&0===Object.keys(S.errors).length}),[l,te,S.errors,p]);return Ru({},S,{initialValues:g.current,initialErrors:f.current,initialTouched:m.current,initialStatus:v.current,handleBlur:j,handleChange:V,handleReset:X,handleSubmit:K,resetForm:O,setErrors:L,setFormikState:U,setFieldTouched:B,setFieldValue:z,setFieldError:_,setStatus:W,setSubmitting:$,setTouched:P,setValues:F,submitForm:Y,validateForm:M,validateField:k,isValid:ne,dirty:te,unregisterField:N,registerField:I,getFieldProps:ee,getFieldMeta:Z,getFieldHelpers:J,validateOnBlur:o,validateOnChange:r,validateOnMount:s})}function qu(e){var n=Ku(e),r=e.component,i=e.children,o=e.render,a=e.innerRef;return(0,t.useImperativeHandle)(a,(function(){return n})),(0,t.createElement)(Nu,{value:n},r?(0,t.createElement)(r,n):o?o(n):i?_u(i)?i(n):Bu(i)?null:t.Children.only(i):null)}function Qu(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||ql(e)?Qu(e):\"\"!==e?e:void 0})):ql(e[r])?t[r]=Qu(e[r]):t[r]=\"\"!==e[r]?e[r]:void 0}return t}function Xu(e,t,n){var r=e.slice();return t.forEach((function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?Ml(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=Ml(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var Zu=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Ju(e){var n=(0,t.useRef)(e);return Zu((function(){n.current=e})),(0,t.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)}),[])}function eh(e){var n=e.validate,r=e.name,i=e.render,o=e.children,a=e.as,s=e.component,l=e.className,c=Ou(e,[\"validate\",\"name\",\"render\",\"children\",\"as\",\"component\",\"className\"]),d=Ou(Lu(),[\"validate\",\"validationSchema\"]),u=d.registerField,h=d.unregisterField;(0,t.useEffect)((function(){return u(r,{validate:n}),function(){h(r)}}),[u,h,r,n]);var p=d.getFieldProps(Ru({name:r},c)),g=d.getFieldMeta(r),f={field:p,form:d};if(i)return i(Ru({},f,{meta:g}));if(_u(o))return o(Ru({},f,{meta:g}));if(s){if(\"string\"==typeof s){var m=c.innerRef,v=Ou(c,[\"innerRef\"]);return(0,t.createElement)(s,Ru({ref:m},p,v,{className:l}),o)}return(0,t.createElement)(s,Ru({field:p,form:d},c,{className:l}),o)}var y=a||\"input\";if(\"string\"==typeof y){var b=c.innerRef,w=Ou(c,[\"innerRef\"]);return(0,t.createElement)(y,Ru({ref:b},p,w,{className:l}),o)}return(0,t.createElement)(y,Ru({},p,c,{className:l}),o)}var th=(0,t.forwardRef)((function(e,n){var r=e.action,i=Ou(e,[\"action\"]),o=null!=r?r:\"#\",a=Lu(),s=a.handleReset,l=a.handleSubmit;return(0,t.createElement)(\"form\",Ru({onSubmit:l,ref:n,onReset:s,action:o},i))}));function nh(e){var n=function(n){return(0,t.createElement)(Pu,null,(function(r){return r||du(!1),(0,t.createElement)(e,Ru({},n,{formik:r}))}))},r=e.displayName||e.name||e.constructor&&e.constructor.name||\"Component\";return n.WrappedComponent=e,n.displayName=\"FormikConnect(\"+r+\")\",Du()(n,e)}th.displayName=\"Form\";var rh=function(e,t,n){var r=ih(e);return r.splice(t,0,n),r},ih=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Ru({},e,{length:t+1}))}return[]},oh=function(e,t){var n=\"function\"==typeof e?e:t;return function(e){if(Array.isArray(e)||zu(e)){var t=ih(e);return n(t)}return e}},ah=function(e){function n(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i=oh(r,e),a=oh(t,e),s=Uu(n.values,o,e(ju(n.values,o))),l=r?i(ju(n.errors,o)):void 0,c=t?a(ju(n.touched,o)):void 0;return Fu(l)&&(l=void 0),Fu(c)&&(c=void 0),Ru({},n,{values:s,errors:r?Uu(n.errors,o,l):n.errors,touched:t?Uu(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(ih(t),[su(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=ih(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=ih(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return rh(n,e,t)}),(function(t){return rh(t,e,null)}),(function(t){return rh(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=ih(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(ku(n)),n.pop=n.pop.bind(ku(n)),n}Mu(n,e);var r=n.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!cu()(ju(e.formik.values,e.name),ju(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?ih(n):[];return t||(t=r[e]),_u(r.splice)&&r.splice(e,1),_u(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},r.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,r=n.component,i=n.render,o=n.children,a=n.name,s=Ru({},e,{form:Ou(n.formik,[\"validate\",\"validationSchema\"]),name:a});return r?(0,t.createElement)(r,s):i?i(s):o?\"function\"==typeof o?o(s):Bu(o)?null:t.Children.only(o):null},n}(t.Component);ah.defaultProps={validateOnChange:!0};var sh=nh(function(e){function n(){return e.apply(this,arguments)||this}Mu(n,e);var r=n.prototype;return r.shouldComponentUpdate=function(e){return ju(this.props.formik.errors,this.props.name)!==ju(e.formik.errors,this.props.name)||ju(this.props.formik.touched,this.props.name)!==ju(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,n=e.component,r=e.formik,i=e.render,o=e.children,a=e.name,s=Ou(e,[\"component\",\"formik\",\"render\",\"children\",\"name\"]),l=ju(r.touched,a),c=ju(r.errors,a);return l&&c?i?_u(i)?i(c):null:o?_u(o)?o(c):null:n?(0,t.createElement)(n,s,c):c:null},n}(t.Component)),lh=n(5697),ch=(n(7621),n(4953)),dh=n(6248);const uh=t.createContext({});function hh(e){return(0,un.Ay)(\"MuiList\",e)}(0,qt.A)(\"MuiList\",[\"root\",\"padding\",\"dense\",\"subheader\"]);const ph=[\"children\",\"className\",\"component\",\"dense\",\"disablePadding\",\"subheader\"],gh=(0,Ot.Ay)(\"ul\",{name:\"MuiList\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,Tt.A)({listStyle:\"none\",margin:0,padding:0,position:\"relative\"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),fh=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiList\"}),{children:i,className:o,component:a=\"ul\",dense:s=!1,disablePadding:l=!1,subheader:c}=r,d=(0,At.A)(r,ph),u=t.useMemo((()=>({dense:s})),[s]),h=(0,Tt.A)({},r,{component:a,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:[\"root\",!n&&\"padding\",r&&\"dense\",i&&\"subheader\"]};return(0,Rt.A)(o,hh,t)})(h);return(0,Kt.jsx)(uh.Provider,{value:u,children:(0,Kt.jsxs)(gh,(0,Tt.A)({as:a,className:(0,We.A)(p.root,o),ref:n,ownerState:h},d,{children:[c,i]}))})})),mh=nr;var vh=n(2778);const yh=[\"actions\",\"autoFocus\",\"autoFocusItem\",\"children\",\"className\",\"disabledItemsFocusable\",\"disableListWrap\",\"onKeyDown\",\"variant\"];function bh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ch(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(\"\")))}function Sh(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||\"true\"===s.getAttribute(\"aria-disabled\"));if(s.hasAttribute(\"tabindex\")&&Ch(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const Eh=t.forwardRef((function(e,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u=\"selectedMenu\"}=e,h=(0,At.A)(e,yh),p=t.useRef(null),g=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,vh.A)((()=>{i&&p.current.focus()}),[i]),t.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${mh((0,dh.A)(e))}px`;p.current.style[\"rtl\"===t?\"paddingLeft\":\"paddingRight\"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const f=(0,Nt.A)(p,n);let m=-1;t.Children.forEach(a,((e,n)=>{t.isValidElement(e)?(e.props.disabled||(\"selectedMenu\"===u&&e.props.selected||-1===m)&&(m=n),m===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===n&&(m+=1,m>=a.length&&(m=-1))}));const v=t.Children.map(a,((e,n)=>{if(n===m){const n={};return o&&(n.autoFocus=!0),void 0===e.props.tabIndex&&\"selectedMenu\"===u&&(n.tabIndex=0),t.cloneElement(e,n)}return e}));return(0,Kt.jsx)(fh,(0,Tt.A)({role:\"menu\",ref:f,className:s,onKeyDown:e=>{const t=p.current,n=e.key,r=(0,dh.A)(t).activeElement;if(\"ArrowDown\"===n)e.preventDefault(),Sh(t,r,c,l,bh);else if(\"ArrowUp\"===n)e.preventDefault(),Sh(t,r,c,l,wh);else if(\"Home\"===n)e.preventDefault(),Sh(t,null,c,l,bh);else if(\"End\"===n)e.preventDefault(),Sh(t,null,c,l,wh);else if(1===n.length){const i=g.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&Ch(r,i);i.previousKeyMatched&&(s||Sh(t,r,!1,l,bh,i))?e.preventDefault():i.previousKeyMatched=!1}d&&d(e)},tabIndex:i?0:-1},h,{children:v}))})),xh=Eh,Ah=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function Th(e){return`scale(${e}, ${e**2})`}const Dh={entering:{opacity:1,transform:Th(1)},entered:{opacity:1,transform:\"none\"}},Rh=\"undefined\"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\\/)15(.|_)4/i.test(navigator.userAgent),Mh=t.forwardRef((function(e,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:p,style:g,timeout:f=\"auto\",TransitionComponent:m=Ar}=e,v=(0,At.A)(e,Ah),y=(0,Yt.A)(),b=t.useRef(),w=Dr(),C=t.useRef(null),S=(0,Nt.A)(C,o.ref,n),E=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},x=E(d),A=E(((e,t)=>{Rr(e);const{duration:n,delay:r,easing:i}=Mr({style:g,timeout:f,easing:a},{mode:\"enter\"});let o;\"auto\"===f?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[w.transitions.create(\"opacity\",{duration:o,delay:r}),w.transitions.create(\"transform\",{duration:Rh?o:.666*o,delay:r,easing:i})].join(\",\"),l&&l(e,t)})),T=E(c),D=E(p),R=E((e=>{const{duration:t,delay:n,easing:r}=Mr({style:g,timeout:f,easing:a},{mode:\"exit\"});let i;\"auto\"===f?(i=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[w.transitions.create(\"opacity\",{duration:i,delay:n}),w.transitions.create(\"transform\",{duration:Rh?i:.666*i,delay:Rh?n:n||.333*i,easing:r})].join(\",\"),e.style.opacity=0,e.style.transform=Th(.75),u&&u(e)})),M=E(h);return(0,Kt.jsx)(m,(0,Tt.A)({appear:i,in:s,nodeRef:C,onEnter:A,onEntered:T,onEntering:x,onExit:R,onExited:M,onExiting:D,addEndListener:e=>{\"auto\"===f&&y.start(b.current||0,e),r&&r(C.current,e)},timeout:\"auto\"===f?null:f},v,{children:(e,n)=>t.cloneElement(o,(0,Tt.A)({style:(0,Tt.A)({opacity:0,transform:Th(.75),visibility:\"exited\"!==e||s?void 0:\"hidden\"},Dh[e],g,o.props.style),ref:S},n))}))}));Mh.muiSupportAuto=!0;const Oh=Mh;function kh(e){return(0,un.Ay)(\"MuiPopover\",e)}(0,qt.A)(\"MuiPopover\",[\"root\",\"paper\"]);const Ih=[\"onEntering\"],Nh=[\"action\",\"anchorEl\",\"anchorOrigin\",\"anchorPosition\",\"anchorReference\",\"children\",\"className\",\"container\",\"elevation\",\"marginThreshold\",\"open\",\"PaperProps\",\"slots\",\"slotProps\",\"transformOrigin\",\"TransitionComponent\",\"transitionDuration\",\"TransitionProps\",\"disableScrollLock\"],Ph=[\"slotProps\"];function Lh(e,t){let n=0;return\"number\"==typeof t?n=t:\"center\"===t?n=e.height/2:\"bottom\"===t&&(n=e.height),n}function Fh(e,t){let n=0;return\"number\"==typeof t?n=t:\"center\"===t?n=e.width/2:\"right\"===t&&(n=e.width),n}function _h(e){return[e.horizontal,e.vertical].map((e=>\"number\"==typeof e?`${e}px`:e)).join(\" \")}function zh(e){return\"function\"==typeof e?e():e}const Gh=(0,Ot.Ay)(jr,{name:\"MuiPopover\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),Vh=(0,Ot.Ay)(ei,{name:\"MuiPopover\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})({position:\"absolute\",overflowY:\"auto\",overflowX:\"hidden\",minWidth:16,minHeight:16,maxWidth:\"calc(100% - 32px)\",maxHeight:\"calc(100% - 32px)\",outline:0}),Bh=t.forwardRef((function(e,n){var r,i,o;const a=(0,It.A)({props:e,name:\"MuiPopover\"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:\"top\",horizontal:\"left\"},anchorPosition:d,anchorReference:u=\"anchorEl\",children:h,className:p,container:g,elevation:f=8,marginThreshold:m=16,open:v,PaperProps:y={},slots:b,slotProps:w,transformOrigin:C={vertical:\"top\",horizontal:\"left\"},TransitionComponent:S=Oh,transitionDuration:E=\"auto\",TransitionProps:{onEntering:x}={},disableScrollLock:A=!1}=a,T=(0,At.A)(a.TransitionProps,Ih),D=(0,At.A)(a,Nh),R=null!=(r=null==w?void 0:w.paper)?r:y,M=t.useRef(),O=(0,Nt.A)(M,R.ref),k=(0,Tt.A)({},a,{anchorOrigin:c,anchorReference:u,elevation:f,marginThreshold:m,externalPaperSlotProps:R,transformOrigin:C,TransitionComponent:S,transitionDuration:E,TransitionProps:T}),I=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],paper:[\"paper\"]},kh,t)})(k),N=t.useCallback((()=>{if(\"anchorPosition\"===u)return d;const e=zh(l),t=(e&&1===e.nodeType?e:(0,dh.A)(M.current).body).getBoundingClientRect();return{top:t.top+Lh(t,c.vertical),left:t.left+Fh(t,c.horizontal)}}),[l,c.horizontal,c.vertical,d,u]),P=t.useCallback((e=>({vertical:Lh(e,C.vertical),horizontal:Fh(e,C.horizontal)})),[C.horizontal,C.vertical]),L=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if(\"none\"===u)return{top:null,left:null,transformOrigin:_h(n)};const r=N();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,c=(0,Wr.A)(zh(l)),d=c.innerHeight-m,h=c.innerWidth-m;if(null!==m&&i<m){const e=i-m;i-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==m&&o<m){const e=o-m;o-=e,n.horizontal+=e}else if(s>h){const e=s-h;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:_h(n)}}),[l,u,N,P,m]),[F,_]=t.useState(v),z=t.useCallback((()=>{const e=M.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[L]);t.useEffect((()=>(A&&window.addEventListener(\"scroll\",z),()=>window.removeEventListener(\"scroll\",z))),[l,A,z]),t.useEffect((()=>{v&&z()})),t.useImperativeHandle(s,(()=>v?{updatePosition:()=>{z()}}:null),[v,z]),t.useEffect((()=>{if(!v)return;const e=(0,Ur.A)((()=>{z()})),t=(0,Wr.A)(l);return t.addEventListener(\"resize\",e),()=>{e.clear(),t.removeEventListener(\"resize\",e)}}),[l,v,z]);let G=E;\"auto\"!==E||S.muiSupportAuto||(G=void 0);const V=g||(l?(0,dh.A)(zh(l)).body:void 0),B=null!=(i=null==b?void 0:b.root)?i:Gh,H=null!=(o=null==b?void 0:b.paper)?o:Vh,j=Xn({elementType:H,externalSlotProps:(0,Tt.A)({},R,{style:F?R.style:(0,Tt.A)({},R.style,{opacity:0})}),additionalProps:{elevation:f,ref:O},ownerState:k,className:(0,We.A)(I.paper,null==R?void 0:R.className)}),U=Xn({elementType:B,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:k,className:(0,We.A)(I.root,p)}),{slotProps:W}=U,$=(0,At.A)(U,Ph);return(0,Kt.jsx)(B,(0,Tt.A)({},$,!$n(B)&&{slotProps:W,disableScrollLock:A},{children:(0,Kt.jsx)(S,(0,Tt.A)({appear:!0,in:v,onEntering:(e,t)=>{x&&x(e,t),z()},onExited:()=>{_(!1)},timeout:G},T,{children:(0,Kt.jsx)(H,(0,Tt.A)({},j,{children:h}))}))}))})),Hh=Bh;function jh(e){return(0,un.Ay)(\"MuiMenu\",e)}(0,qt.A)(\"MuiMenu\",[\"root\",\"paper\",\"list\"]);const Uh=[\"onEntering\"],Wh=[\"autoFocus\",\"children\",\"className\",\"disableAutoFocusItem\",\"MenuListProps\",\"onClose\",\"open\",\"PaperProps\",\"PopoverClasses\",\"transitionDuration\",\"TransitionProps\",\"variant\",\"slots\",\"slotProps\"],$h={vertical:\"top\",horizontal:\"right\"},Yh={vertical:\"top\",horizontal:\"left\"},Kh=(0,Ot.Ay)(Hh,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiMenu\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),qh=(0,Ot.Ay)(Vh,{name:\"MuiMenu\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})({maxHeight:\"calc(100% - 96px)\",WebkitOverflowScrolling:\"touch\"}),Qh=(0,Ot.Ay)(xh,{name:\"MuiMenu\",slot:\"List\",overridesResolver:(e,t)=>t.list})({outline:0}),Xh=t.forwardRef((function(e,n){var r,i;const o=(0,It.A)({props:e,name:\"MuiMenu\"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:h,PaperProps:p={},PopoverClasses:g,transitionDuration:f=\"auto\",TransitionProps:{onEntering:m}={},variant:v=\"selectedMenu\",slots:y={},slotProps:b={}}=o,w=(0,At.A)(o.TransitionProps,Uh),C=(0,At.A)(o,Wh),S=Un(),E=(0,Tt.A)({},o,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:d,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:w,variant:v}),x=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],paper:[\"paper\"],list:[\"list\"]},jh,t)})(E),A=a&&!c&&h,T=t.useRef(null);let D=-1;t.Children.map(s,((e,n)=>{t.isValidElement(e)&&(e.props.disabled||(\"selectedMenu\"===v&&e.props.selected||-1===D)&&(D=n))}));const R=null!=(r=y.paper)?r:qh,M=null!=(i=b.paper)?i:p,O=Xn({elementType:y.root,externalSlotProps:b.root,ownerState:E,className:[x.root,l]}),k=Xn({elementType:R,externalSlotProps:M,ownerState:E,className:x.paper});return(0,Kt.jsx)(Kh,(0,Tt.A)({onClose:u,anchorOrigin:{vertical:\"bottom\",horizontal:S?\"right\":\"left\"},transformOrigin:S?$h:Yh,slots:{paper:R,root:y.root},slotProps:{root:O,paper:k},open:h,ref:n,transitionDuration:f,TransitionProps:(0,Tt.A)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:S?\"rtl\":\"ltr\"}),m&&m(e,t)}},w),ownerState:E},C,{classes:g,children:(0,Kt.jsx)(Qh,(0,Tt.A)({onKeyDown:e=>{\"Tab\"===e.key&&(e.preventDefault(),u&&u(e,\"tabKeyDown\"))},actions:T,autoFocus:a&&(-1===D||c),autoFocusItem:A,variant:v},d,{className:(0,We.A)(x.list,d.className),children:s}))}))}));function Zh(e){return(0,un.Ay)(\"MuiNativeSelect\",e)}const Jh=(0,qt.A)(\"MuiNativeSelect\",[\"root\",\"select\",\"multiple\",\"filled\",\"outlined\",\"standard\",\"disabled\",\"icon\",\"iconOpen\",\"iconFilled\",\"iconOutlined\",\"iconStandard\",\"nativeInput\",\"error\"]),ep=[\"className\",\"disabled\",\"error\",\"IconComponent\",\"inputRef\",\"variant\"],tp=({ownerState:e,theme:t})=>(0,Tt.A)({MozAppearance:\"none\",WebkitAppearance:\"none\",userSelect:\"none\",borderRadius:0,cursor:\"pointer\",\"&:focus\":(0,Tt.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:\"light\"===t.palette.mode?\"rgba(0, 0, 0, 0.05)\":\"rgba(255, 255, 255, 0.05)\"},{borderRadius:0}),\"&::-ms-expand\":{display:\"none\"},[`&.${Jh.disabled}`]:{cursor:\"default\"},\"&[multiple]\":{height:\"auto\"},\"&:not([multiple]) option, &:not([multiple]) optgroup\":{backgroundColor:(t.vars||t).palette.background.paper},\"&&&\":{paddingRight:24,minWidth:16}},\"filled\"===e.variant&&{\"&&&\":{paddingRight:32}},\"outlined\"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,\"&:focus\":{borderRadius:(t.vars||t).shape.borderRadius},\"&&&\":{paddingRight:32}}),np=(0,Ot.Ay)(\"select\",{name:\"MuiNativeSelect\",slot:\"Select\",shouldForwardProp:kt.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Jh.multiple}`]:t.multiple}]}})(tp),rp=({ownerState:e,theme:t})=>(0,Tt.A)({position:\"absolute\",right:0,top:\"calc(50% - .5em)\",pointerEvents:\"none\",color:(t.vars||t).palette.action.active,[`&.${Jh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:\"rotate(180deg)\"},\"filled\"===e.variant&&{right:7},\"outlined\"===e.variant&&{right:7}),ip=(0,Ot.Ay)(\"svg\",{name:\"MuiNativeSelect\",slot:\"Icon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(rp),op=t.forwardRef((function(e,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l=\"standard\"}=e,c=(0,At.A)(e,ep),d=(0,Tt.A)({},e,{disabled:i,variant:l,error:o}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:[\"select\",n,r&&\"disabled\",i&&\"multiple\",a&&\"error\"],icon:[\"icon\",`icon${(0,vn.A)(n)}`,o&&\"iconOpen\",r&&\"disabled\"]};return(0,Rt.A)(s,Zh,t)})(d);return(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(np,(0,Tt.A)({ownerState:d,className:(0,We.A)(u.select,r),disabled:i,ref:s||n},c)),e.multiple?null:(0,Kt.jsx)(ip,{as:a,ownerState:d,className:u.icon})]})}));function ap(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function sp(e,t=!1){return e&&(ap(e.value)&&\"\"!==e.value||t&&ap(e.defaultValue)&&\"\"!==e.defaultValue)}var lp=n(4438),cp=n(1159);function dp(e){return(0,un.Ay)(\"MuiSelect\",e)}const up=(0,qt.A)(\"MuiSelect\",[\"root\",\"select\",\"multiple\",\"filled\",\"outlined\",\"standard\",\"disabled\",\"focused\",\"icon\",\"iconOpen\",\"iconFilled\",\"iconOutlined\",\"iconStandard\",\"nativeInput\",\"error\"]);var hp;const pp=[\"aria-describedby\",\"aria-label\",\"autoFocus\",\"autoWidth\",\"children\",\"className\",\"defaultOpen\",\"defaultValue\",\"disabled\",\"displayEmpty\",\"error\",\"IconComponent\",\"inputRef\",\"labelId\",\"MenuProps\",\"multiple\",\"name\",\"onBlur\",\"onChange\",\"onClose\",\"onFocus\",\"onOpen\",\"open\",\"readOnly\",\"renderValue\",\"SelectDisplayProps\",\"tabIndex\",\"type\",\"value\",\"variant\"],gp=(0,Ot.Ay)(\"div\",{name:\"MuiSelect\",slot:\"Select\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${up.select}`]:t.select},{[`&.${up.select}`]:t[n.variant]},{[`&.${up.error}`]:t.error},{[`&.${up.multiple}`]:t.multiple}]}})(tp,{[`&.${up.select}`]:{height:\"auto\",minHeight:\"1.4375em\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",overflow:\"hidden\"}}),fp=(0,Ot.Ay)(\"svg\",{name:\"MuiSelect\",slot:\"Icon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,vn.A)(n.variant)}`],n.open&&t.iconOpen]}})(rp),mp=(0,Ot.Ay)(\"input\",{shouldForwardProp:e=>(0,lp.A)(e)&&\"classes\"!==e,name:\"MuiSelect\",slot:\"NativeInput\",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:\"absolute\",opacity:0,pointerEvents:\"none\",width:\"100%\",boxSizing:\"border-box\"});function vp(e,t){return\"object\"==typeof t&&null!==t?e===t:String(e)===String(t)}function yp(e){return null==e||\"string\"==typeof e&&!e.trim()}const bp=t.forwardRef((function(e,n){var r;const{\"aria-describedby\":i,\"aria-label\":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:h,displayEmpty:p,error:g=!1,IconComponent:f,inputRef:m,labelId:v,MenuProps:y={},multiple:b,name:w,onBlur:C,onChange:S,onClose:E,onFocus:x,onOpen:A,open:T,readOnly:D,renderValue:R,SelectDisplayProps:M={},tabIndex:O,value:k,variant:I=\"standard\"}=e,N=(0,At.A)(e,pp),[P,L]=(0,cp.A)({controlled:k,default:u,name:\"Select\"}),[F,_]=(0,cp.A)({controlled:T,default:d,name:\"Select\"}),z=t.useRef(null),G=t.useRef(null),[V,B]=t.useState(null),{current:H}=t.useRef(null!=T),[j,U]=t.useState(),W=(0,Nt.A)(n,m),$=t.useCallback((e=>{G.current=e,e&&B(e)}),[]),Y=null==V?void 0:V.parentNode;t.useImperativeHandle(W,(()=>({focus:()=>{G.current.focus()},node:z.current,value:P})),[P]),t.useEffect((()=>{d&&F&&V&&!H&&(U(s?null:Y.clientWidth),G.current.focus())}),[V,s]),t.useEffect((()=>{a&&G.current.focus()}),[a]),t.useEffect((()=>{if(!v)return;const e=(0,dh.A)(G.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&G.current.focus()};return e.addEventListener(\"click\",t),()=>{e.removeEventListener(\"click\",t)}}}),[v]);const K=(e,t)=>{e?A&&A(t):E&&E(t),H||(U(s?null:Y.clientWidth),_(e))},q=t.Children.toArray(l),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute(\"tabindex\")){if(b){n=Array.isArray(P)?P.slice():[];const t=P.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(L(n),S)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,\"target\",{writable:!0,value:{value:n,name:w}}),S(i,e)}b||K(!1,t)}},X=null!==V&&F;let Z,J;delete N[\"aria-invalid\"];const ee=[];let te=!1,ne=!1;(sp({value:P})||p)&&(R?Z=R(P):te=!0);const re=q.map((e=>{if(!t.isValidElement(e))return null;let n;if(b){if(!Array.isArray(P))throw new Error((0,lh.A)(2));n=P.some((t=>vp(t,e.props.value))),n&&te&&ee.push(e.props.children)}else n=vp(P,e.props.value),n&&te&&(J=e.props.children);return n&&(ne=!0),t.cloneElement(e,{\"aria-selected\":n?\"true\":\"false\",onClick:Q(e),onKeyUp:t=>{\" \"===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:\"option\",selected:n,value:void 0,\"data-value\":e.props.value})}));te&&(Z=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(\", \"),e)),[]):J);let ie,oe=j;!s&&H&&V&&(oe=Y.clientWidth),ie=void 0!==O?O:h?null:0;const ae=M.id||(w?`mui-component-select-${w}`:void 0),se=(0,Tt.A)({},e,{variant:I,value:P,open:X,error:g}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:[\"select\",n,r&&\"disabled\",i&&\"multiple\",a&&\"error\"],icon:[\"icon\",`icon${(0,vn.A)(n)}`,o&&\"iconOpen\",r&&\"disabled\"],nativeInput:[\"nativeInput\"]};return(0,Rt.A)(s,dp,t)})(se),ce=(0,Tt.A)({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),de=(0,ch.A)();return(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(gp,(0,Tt.A)({ref:$,tabIndex:ie,role:\"combobox\",\"aria-controls\":de,\"aria-disabled\":h?\"true\":void 0,\"aria-expanded\":X?\"true\":\"false\",\"aria-haspopup\":\"listbox\",\"aria-label\":o,\"aria-labelledby\":[v,ae].filter(Boolean).join(\" \")||void 0,\"aria-describedby\":i,onKeyDown:e=>{D||-1!==[\" \",\"ArrowUp\",\"ArrowDown\",\"Enter\"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:h||D?null:e=>{0===e.button&&(e.preventDefault(),G.current.focus(),K(!0,e))},onBlur:e=>{!X&&C&&(Object.defineProperty(e,\"target\",{writable:!0,value:{value:P,name:w}}),C(e))},onFocus:x},M,{ownerState:se,className:(0,We.A)(M.className,le.select,c),id:ae,children:yp(Z)?hp||(hp=(0,Kt.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):Z})),(0,Kt.jsx)(mp,(0,Tt.A)({\"aria-invalid\":g,value:Array.isArray(P)?P.join(\",\"):P,name:w,ref:z,\"aria-hidden\":!0,onChange:e=>{const t=q.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:h,className:le.nativeInput,autoFocus:a,ownerState:se},N)),(0,Kt.jsx)(fp,{as:f,className:le.icon,ownerState:se}),(0,Kt.jsx)(Xh,(0,Tt.A)({id:`menu-${w||\"\"}`,anchorEl:Y,open:X,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:\"bottom\",horizontal:\"center\"},transformOrigin:{vertical:\"top\",horizontal:\"center\"}},y,{MenuListProps:(0,Tt.A)({\"aria-labelledby\":v,role:\"listbox\",\"aria-multiselectable\":b?\"true\":void 0,disableListWrap:!0,id:de},y.MenuListProps),slotProps:(0,Tt.A)({},y.slotProps,{paper:(0,Tt.A)({},ce,{style:(0,Tt.A)({minWidth:oe},null!=ce?ce.style:null)})}),children:re}))]})})),wp=bp;var Cp=n(5003);const Sp=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M7 10l5 5 5-5z\"}),\"ArrowDropDown\");var Ep=n(4965);const xp=[\"onChange\",\"maxRows\",\"minRows\",\"style\",\"value\"];function Ap(e){return parseInt(e,10)||0}const Tp={visibility:\"hidden\",position:\"absolute\",overflow:\"hidden\",height:0,top:0,left:0,transform:\"translateZ(0)\"},Dp=t.forwardRef((function(e,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=e,l=(0,At.A)(e,xp),{current:c}=t.useRef(null!=s),d=t.useRef(null),u=(0,Wn.A)(n,d),h=t.useRef(null),p=t.useCallback((()=>{const t=d.current,n=(0,tr.A)(t).getComputedStyle(t);if(\"0px\"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=h.current;r.style.width=n.width,r.value=t.value||e.placeholder||\"x\",\"\\n\"===r.value.slice(-1)&&(r.value+=\" \");const a=n.boxSizing,s=Ap(n.paddingBottom)+Ap(n.paddingTop),l=Ap(n.borderBottomWidth)+Ap(n.borderTopWidth),c=r.scrollHeight;r.value=\"x\";const u=r.scrollHeight;let p=c;return o&&(p=Math.max(Number(o)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u),{outerHeightStyle:p+(\"border-box\"===a?s+l:0),overflowing:Math.abs(p-c)<=1}}),[i,o,e.placeholder]),g=t.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=d.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?\"hidden\":\"\"}),[p]);return(0,gr.A)((()=>{const e=()=>{g()};const t=(0,Ep.A)(e),n=d.current,r=(0,tr.A)(n);let i;return r.addEventListener(\"resize\",t),\"undefined\"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener(\"resize\",t),i&&i.disconnect()}}),[p,g]),(0,gr.A)((()=>{g()})),(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(\"textarea\",(0,Tt.A)({value:s,onChange:e=>{c||g(),r&&r(e)},ref:u,rows:o,style:a},l)),(0,Kt.jsx)(\"textarea\",{\"aria-hidden\":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,Tt.A)({},Tp,a,{paddingTop:0,paddingBottom:0})})]})}));var Rp=n(9940);const Mp=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,kn.A)(n),i=\"function\"==typeof e?e(t&&r[t]||r):e;return(0,Kt.jsx)(Rp.A,{styles:i})},Op=function(e){return(0,Kt.jsx)(Mp,(0,Tt.A)({},e,{defaultTheme:Tr.A,themeId:Fn.A}))};function kp(e){return(0,un.Ay)(\"MuiInputBase\",e)}const Ip=(0,qt.A)(\"MuiInputBase\",[\"root\",\"formControl\",\"focused\",\"disabled\",\"adornedStart\",\"adornedEnd\",\"error\",\"sizeSmall\",\"multiline\",\"colorSecondary\",\"fullWidth\",\"hiddenLabel\",\"readOnly\",\"input\",\"inputSizeSmall\",\"inputMultiline\",\"inputTypeSearch\",\"inputAdornedStart\",\"inputAdornedEnd\",\"inputHiddenLabel\"]),Np=[\"aria-describedby\",\"autoComplete\",\"autoFocus\",\"className\",\"color\",\"components\",\"componentsProps\",\"defaultValue\",\"disabled\",\"disableInjectingGlobalStyles\",\"endAdornment\",\"error\",\"fullWidth\",\"id\",\"inputComponent\",\"inputProps\",\"inputRef\",\"margin\",\"maxRows\",\"minRows\",\"multiline\",\"name\",\"onBlur\",\"onChange\",\"onClick\",\"onFocus\",\"onKeyDown\",\"onKeyUp\",\"placeholder\",\"readOnly\",\"renderSuffix\",\"rows\",\"size\",\"slotProps\",\"slots\",\"startAdornment\",\"type\",\"value\"],Pp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,\"small\"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,vn.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Lp=(e,t)=>{const{ownerState:n}=e;return[t.input,\"small\"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,\"search\"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Fp=(0,Ot.Ay)(\"div\",{name:\"MuiInputBase\",slot:\"Root\",overridesResolver:Pp})((({theme:e,ownerState:t})=>(0,Tt.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:\"1.4375em\",boxSizing:\"border-box\",position:\"relative\",cursor:\"text\",display:\"inline-flex\",alignItems:\"center\",[`&.${Ip.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:\"default\"}},t.multiline&&(0,Tt.A)({padding:\"4px 0 5px\"},\"small\"===t.size&&{paddingTop:1}),t.fullWidth&&{width:\"100%\"}))),_p=(0,Ot.Ay)(\"input\",{name:\"MuiInputBase\",slot:\"Input\",overridesResolver:Lp})((({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode,r=(0,Tt.A)({color:\"currentColor\"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create(\"opacity\",{duration:e.transitions.duration.shorter})}),i={opacity:\"0 !important\"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,Tt.A)({font:\"inherit\",letterSpacing:\"inherit\",color:\"currentColor\",padding:\"4px 0 5px\",border:0,boxSizing:\"content-box\",background:\"none\",height:\"1.4375em\",margin:0,WebkitTapHighlightColor:\"transparent\",display:\"block\",minWidth:0,width:\"100%\",animationName:\"mui-auto-fill-cancel\",animationDuration:\"10ms\",\"&::-webkit-input-placeholder\":r,\"&::-moz-placeholder\":r,\"&:-ms-input-placeholder\":r,\"&::-ms-input-placeholder\":r,\"&:focus\":{outline:0},\"&:invalid\":{boxShadow:\"none\"},\"&::-webkit-search-decoration\":{WebkitAppearance:\"none\"},[`label[data-shrink=false] + .${Ip.formControl} &`]:{\"&::-webkit-input-placeholder\":i,\"&::-moz-placeholder\":i,\"&:-ms-input-placeholder\":i,\"&::-ms-input-placeholder\":i,\"&:focus::-webkit-input-placeholder\":o,\"&:focus::-moz-placeholder\":o,\"&:focus:-ms-input-placeholder\":o,\"&:focus::-ms-input-placeholder\":o},[`&.${Ip.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},\"&:-webkit-autofill\":{animationDuration:\"5000s\",animationName:\"mui-auto-fill\"}},\"small\"===t.size&&{paddingTop:1},t.multiline&&{height:\"auto\",resize:\"none\",padding:0,paddingTop:0},\"search\"===t.type&&{MozAppearance:\"textfield\"})})),zp=(0,Kt.jsx)(Op,{styles:{\"@keyframes mui-auto-fill\":{from:{display:\"block\"}},\"@keyframes mui-auto-fill-cancel\":{from:{display:\"block\"}}}}),Gp=t.forwardRef((function(e,n){var r;const i=(0,It.A)({props:e,name:\"MuiInputBase\"}),{\"aria-describedby\":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:d={},defaultValue:u,disabled:h,disableInjectingGlobalStyles:p,endAdornment:g,fullWidth:f=!1,id:m,inputComponent:v=\"input\",inputProps:y={},inputRef:b,maxRows:w,minRows:C,multiline:S=!1,name:E,onBlur:x,onChange:A,onClick:T,onFocus:D,onKeyDown:R,onKeyUp:M,placeholder:O,readOnly:k,renderSuffix:I,rows:N,slotProps:P={},slots:L={},startAdornment:F,type:_=\"text\",value:z}=i,G=(0,At.A)(i,Np),V=null!=y.value?y.value:z,{current:B}=t.useRef(null!=V),H=t.useRef(),j=t.useCallback((e=>{}),[]),U=(0,Nt.A)(H,b,y.ref,j),[W,$]=t.useState(!1),Y=vl(),K=fl({props:i,muiFormControl:Y,states:[\"color\",\"disabled\",\"error\",\"hiddenLabel\",\"size\",\"required\",\"filled\"]});K.focused=Y?Y.focused:W,t.useEffect((()=>{!Y&&h&&W&&($(!1),x&&x())}),[Y,h,W,x]);const q=Y&&Y.onFilled,Q=Y&&Y.onEmpty,X=t.useCallback((e=>{sp(e)?q&&q():Q&&Q()}),[q,Q]);(0,vh.A)((()=>{B&&X({value:V})}),[V,X,B]),t.useEffect((()=>{X(H.current)}),[]);let Z=v,J=y;S&&\"input\"===Z&&(J=N?(0,Tt.A)({type:void 0,minRows:N,maxRows:N},J):(0,Tt.A)({type:void 0,maxRows:w,minRows:C},J),Z=Dp),t.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(F))}),[Y,F]);const ee=(0,Tt.A)({},i,{color:K.color||\"primary\",disabled:K.disabled,endAdornment:g,error:K.error,focused:K.focused,formControl:Y,fullWidth:f,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:F,type:_}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:h,startAdornment:p,type:g}=e,f={root:[\"root\",`color${(0,vn.A)(n)}`,r&&\"disabled\",i&&\"error\",l&&\"fullWidth\",a&&\"focused\",s&&\"formControl\",h&&\"medium\"!==h&&`size${(0,vn.A)(h)}`,d&&\"multiline\",p&&\"adornedStart\",o&&\"adornedEnd\",c&&\"hiddenLabel\",u&&\"readOnly\"],input:[\"input\",r&&\"disabled\",\"search\"===g&&\"inputTypeSearch\",d&&\"inputMultiline\",\"small\"===h&&\"inputSizeSmall\",c&&\"inputHiddenLabel\",p&&\"inputAdornedStart\",o&&\"inputAdornedEnd\",u&&\"readOnly\"]};return(0,Rt.A)(f,kp,t)})(ee),ne=L.root||c.Root||Fp,re=P.root||d.root||{},ie=L.input||c.Input||_p;return J=(0,Tt.A)({},J,null!=(r=P.input)?r:d.input),(0,Kt.jsxs)(t.Fragment,{children:[!p&&zp,(0,Kt.jsxs)(ne,(0,Tt.A)({},re,!$n(ne)&&{ownerState:(0,Tt.A)({},ee,re.ownerState)},{ref:n,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),T&&T(e)}},G,{className:(0,We.A)(te.root,re.className,l,k&&\"MuiInputBase-readOnly\"),children:[F,(0,Kt.jsx)(ml.Provider,{value:null,children:(0,Kt.jsx)(ie,(0,Tt.A)({ownerState:ee,\"aria-invalid\":K.error,\"aria-describedby\":o,autoComplete:a,autoFocus:s,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{X(\"mui-auto-fill-cancel\"===e.animationName?H.current:{value:\"x\"})},name:E,placeholder:O,readOnly:k,required:K.required,rows:N,value:V,onKeyDown:R,onKeyUp:M,type:_},J,!$n(ie)&&{as:Z,ownerState:(0,Tt.A)({},ee,J.ownerState)},{ref:U,className:(0,We.A)(te.input,J.className,k&&\"MuiInputBase-readOnly\"),onBlur:e=>{x&&x(e),y.onBlur&&y.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):$(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||H.current;if(null==t)throw new Error((0,lh.A)(1));X({value:t.value})}y.onChange&&y.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(D&&D(e),y.onFocus&&y.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):$(!0))}}))}),g,I?I((0,Tt.A)({},K,{startAdornment:F})):null]}))]})})),Vp=Gp;function Bp(e){return(0,un.Ay)(\"MuiInput\",e)}const Hp=(0,Tt.A)({},Ip,(0,qt.A)(\"MuiInput\",[\"root\",\"underline\",\"input\"])),jp=[\"disableUnderline\",\"components\",\"componentsProps\",\"fullWidth\",\"inputComponent\",\"multiline\",\"slotProps\",\"slots\",\"type\"],Up=(0,Ot.Ay)(Fp,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiInput\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Tt.A)({position:\"relative\"},t.formControl&&{\"label + &\":{marginTop:16}},!t.disableUnderline&&{\"&::after\":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${Hp.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${Hp.error}`]:{\"&::before, &::after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${Hp.disabled}, .${Hp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,\"@media (hover: none)\":{borderBottom:`1px solid ${n}`}},[`&.${Hp.disabled}:before`]:{borderBottomStyle:\"dotted\"}})})),Wp=(0,Ot.Ay)(_p,{name:\"MuiInput\",slot:\"Input\",overridesResolver:Lp})({}),$p=t.forwardRef((function(e,t){var n,r,i,o;const a=(0,It.A)({props:e,name:\"MuiInput\"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u=\"input\",multiline:h=!1,slotProps:p,slots:g={},type:f=\"text\"}=a,m=(0,At.A)(a,jp),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},i=(0,Rt.A)(r,Bp,t);return(0,Tt.A)({},t,i)})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?(0,ss.A)(null!=p?p:c,y):y,w=null!=(n=null!=(r=g.root)?r:l.Root)?n:Up,C=null!=(i=null!=(o=g.input)?o:l.Input)?i:Wp;return(0,Kt.jsx)(Vp,(0,Tt.A)({slots:{root:w,input:C},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:f},m,{classes:v}))}));$p.muiName=\"Input\";const Yp=$p;function Kp(e){return(0,un.Ay)(\"MuiFilledInput\",e)}const qp=(0,Tt.A)({},Ip,(0,qt.A)(\"MuiFilledInput\",[\"root\",\"underline\",\"input\"])),Qp=[\"disableUnderline\",\"components\",\"componentsProps\",\"fullWidth\",\"hiddenLabel\",\"inputComponent\",\"multiline\",\"slotProps\",\"slots\",\"type\"],Xp=(0,Ot.Ay)(Fp,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiFilledInput\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pp(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r=\"light\"===e.palette.mode,i=r?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\",o=r?\"rgba(0, 0, 0, 0.06)\":\"rgba(255, 255, 255, 0.09)\",a=r?\"rgba(0, 0, 0, 0.09)\":\"rgba(255, 255, 255, 0.13)\",s=r?\"rgba(0, 0, 0, 0.12)\":\"rgba(255, 255, 255, 0.12)\";return(0,Tt.A)({position:\"relative\",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),\"&:hover\":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,\"@media (hover: none)\":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${qp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${qp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{\"&::after\":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||\"primary\"])?void 0:n.main}`,left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${qp.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${qp.error}`]:{\"&::before, &::after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${qp.disabled}, .${qp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qp.disabled}:before`]:{borderBottomStyle:\"dotted\"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Tt.A)({padding:\"25px 12px 8px\"},\"small\"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&\"small\"===t.size&&{paddingTop:8,paddingBottom:9}))})),Zp=(0,Ot.Ay)(_p,{name:\"MuiFilledInput\",slot:\"Input\",overridesResolver:Lp})((({theme:e,ownerState:t})=>(0,Tt.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{\"&:-webkit-autofill\":{WebkitBoxShadow:\"light\"===e.palette.mode?null:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"light\"===e.palette.mode?null:\"#fff\",caretColor:\"light\"===e.palette.mode?null:\"#fff\",borderTopLeftRadius:\"inherit\",borderTopRightRadius:\"inherit\"}},e.vars&&{\"&:-webkit-autofill\":{borderTopLeftRadius:\"inherit\",borderTopRightRadius:\"inherit\"},[e.getColorSchemeSelector(\"dark\")]:{\"&:-webkit-autofill\":{WebkitBoxShadow:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"#fff\",caretColor:\"#fff\"}}},\"small\"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&\"small\"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Jp=t.forwardRef((function(e,t){var n,r,i,o;const a=(0,It.A)({props:e,name:\"MuiFilledInput\"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:d=\"input\",multiline:u=!1,slotProps:h,slots:p={},type:g=\"text\"}=a,f=(0,At.A)(a,Qp),m=(0,Tt.A)({},a,{fullWidth:c,inputComponent:d,multiline:u,type:g}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},i=(0,Rt.A)(r,Kp,t);return(0,Tt.A)({},t,i)})(a),y={root:{ownerState:m},input:{ownerState:m}},b=(null!=h?h:l)?(0,ss.A)(y,null!=h?h:l):y,w=null!=(n=null!=(r=p.root)?r:s.Root)?n:Xp,C=null!=(i=null!=(o=p.input)?o:s.Input)?i:Zp;return(0,Kt.jsx)(Vp,(0,Tt.A)({slots:{root:w,input:C},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:g},f,{classes:v}))}));Jp.muiName=\"Input\";const eg=Jp;var tg;const ng=[\"children\",\"classes\",\"className\",\"label\",\"notched\"],rg=(0,Ot.Ay)(\"fieldset\",{shouldForwardProp:kt.A})({textAlign:\"left\",position:\"absolute\",bottom:0,right:0,top:-5,left:0,margin:0,padding:\"0 8px\",pointerEvents:\"none\",borderRadius:\"inherit\",borderStyle:\"solid\",borderWidth:1,overflow:\"hidden\",minWidth:\"0%\"}),ig=(0,Ot.Ay)(\"legend\",{shouldForwardProp:kt.A})((({ownerState:e,theme:t})=>(0,Tt.A)({float:\"unset\",width:\"auto\",overflow:\"hidden\"},!e.withLabel&&{padding:0,lineHeight:\"11px\",transition:t.transitions.create(\"width\",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,Tt.A)({display:\"block\",padding:0,height:11,fontSize:\"0.75em\",visibility:\"hidden\",maxWidth:.01,transition:t.transitions.create(\"max-width\",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:\"nowrap\",\"& > span\":{paddingLeft:5,paddingRight:5,display:\"inline-block\",opacity:0,visibility:\"visible\"}},e.notched&&{maxWidth:\"100%\",transition:t.transitions.create(\"max-width\",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function og(e){return(0,un.Ay)(\"MuiOutlinedInput\",e)}const ag=(0,Tt.A)({},Ip,(0,qt.A)(\"MuiOutlinedInput\",[\"root\",\"notchedOutline\",\"input\"])),sg=[\"components\",\"fullWidth\",\"inputComponent\",\"label\",\"multiline\",\"notched\",\"slots\",\"type\"],lg=(0,Ot.Ay)(Fp,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiOutlinedInput\",slot:\"Root\",overridesResolver:Pp})((({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return(0,Tt.A)({position:\"relative\",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ag.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},\"@media (hover: none)\":{[`&:hover .${ag.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ag.focused} .${ag.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ag.error} .${ag.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ag.disabled} .${ag.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,Tt.A)({padding:\"16.5px 14px\"},\"small\"===t.size&&{padding:\"8.5px 14px\"}))})),cg=(0,Ot.Ay)((function(e){const{className:t,label:n,notched:r}=e,i=(0,At.A)(e,ng),o=null!=n&&\"\"!==n,a=(0,Tt.A)({},e,{notched:r,withLabel:o});return(0,Kt.jsx)(rg,(0,Tt.A)({\"aria-hidden\":!0,className:t,ownerState:a},i,{children:(0,Kt.jsx)(ig,{ownerState:a,children:o?(0,Kt.jsx)(\"span\",{children:n}):tg||(tg=(0,Kt.jsx)(\"span\",{className:\"notranslate\",children:\"​\"}))})}))}),{name:\"MuiOutlinedInput\",slot:\"NotchedOutline\",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),dg=(0,Ot.Ay)(_p,{name:\"MuiOutlinedInput\",slot:\"Input\",overridesResolver:Lp})((({theme:e,ownerState:t})=>(0,Tt.A)({padding:\"16.5px 14px\"},!e.vars&&{\"&:-webkit-autofill\":{WebkitBoxShadow:\"light\"===e.palette.mode?null:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"light\"===e.palette.mode?null:\"#fff\",caretColor:\"light\"===e.palette.mode?null:\"#fff\",borderRadius:\"inherit\"}},e.vars&&{\"&:-webkit-autofill\":{borderRadius:\"inherit\"},[e.getColorSchemeSelector(\"dark\")]:{\"&:-webkit-autofill\":{WebkitBoxShadow:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"#fff\",caretColor:\"#fff\"}}},\"small\"===t.size&&{padding:\"8.5px 14px\"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ug=t.forwardRef((function(e,n){var r,i,o,a,s;const l=(0,It.A)({props:e,name:\"MuiOutlinedInput\"}),{components:c={},fullWidth:d=!1,inputComponent:u=\"input\",label:h,multiline:p=!1,notched:g,slots:f={},type:m=\"text\"}=l,v=(0,At.A)(l,sg),y=(e=>{const{classes:t}=e,n=(0,Rt.A)({root:[\"root\"],notchedOutline:[\"notchedOutline\"],input:[\"input\"]},og,t);return(0,Tt.A)({},t,n)})(l),b=vl(),w=fl({props:l,muiFormControl:b,states:[\"color\",\"disabled\",\"error\",\"focused\",\"hiddenLabel\",\"size\",\"required\"]}),C=(0,Tt.A)({},l,{color:w.color||\"primary\",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:m}),S=null!=(r=null!=(i=f.root)?i:c.Root)?r:lg,E=null!=(o=null!=(a=f.input)?a:c.Input)?o:dg;return(0,Kt.jsx)(Vp,(0,Tt.A)({slots:{root:S,input:E},renderSuffix:e=>(0,Kt.jsx)(cg,{ownerState:C,className:y.notchedOutline,label:null!=h&&\"\"!==h&&w.required?s||(s=(0,Kt.jsxs)(t.Fragment,{children:[h,\" \",\"*\"]})):h,notched:void 0!==g?g:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:d,inputComponent:u,multiline:p,ref:n,type:m},v,{classes:(0,Tt.A)({},y,{notchedOutline:null})}))}));ug.muiName=\"Input\";const hg=ug,pg=[\"autoWidth\",\"children\",\"classes\",\"className\",\"defaultOpen\",\"displayEmpty\",\"IconComponent\",\"id\",\"input\",\"inputProps\",\"label\",\"labelId\",\"MenuProps\",\"multiple\",\"native\",\"onClose\",\"onOpen\",\"open\",\"renderValue\",\"SelectDisplayProps\",\"variant\"],gg=[\"root\"],fg={name:\"MuiSelect\",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,kt.A)(e)&&\"variant\"!==e,slot:\"Root\"},mg=(0,Ot.Ay)(Yp,fg)(\"\"),vg=(0,Ot.Ay)(hg,fg)(\"\"),yg=(0,Ot.Ay)(eg,fg)(\"\"),bg=t.forwardRef((function(e,n){const r=(0,It.A)({name:\"MuiSelect\",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=Sp,id:u,input:h,inputProps:p,label:g,labelId:f,MenuProps:m,multiple:v=!1,native:y=!1,onClose:b,onOpen:w,open:C,renderValue:S,SelectDisplayProps:E,variant:x=\"outlined\"}=r,A=(0,At.A)(r,pg),T=y?op:wp,D=fl({props:r,muiFormControl:vl(),states:[\"variant\",\"error\"]}),R=D.variant||x,M=(0,Tt.A)({},r,{variant:R,classes:a}),O=(e=>{const{classes:t}=e;return t})(M),k=(0,At.A)(O,gg),I=h||{standard:(0,Kt.jsx)(mg,{ownerState:M}),outlined:(0,Kt.jsx)(vg,{label:g,ownerState:M}),filled:(0,Kt.jsx)(yg,{ownerState:M})}[R],N=(0,Nt.A)(n,I.ref);return(0,Kt.jsx)(t.Fragment,{children:t.cloneElement(I,(0,Tt.A)({inputComponent:T,inputProps:(0,Tt.A)({children:o,error:D.error,IconComponent:d,variant:R,type:void 0,multiple:v},y?{id:u}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:f,MenuProps:m,onClose:b,onOpen:w,open:C,renderValue:S,SelectDisplayProps:(0,Tt.A)({id:u},E)},p,{classes:p?(0,ss.A)(k,p.classes):k},h?h.props.inputProps:{})},(v&&y||c)&&\"outlined\"===R?{notched:!0}:{},{ref:N,className:(0,We.A)(I.props.className,s,O.root)},!h&&{variant:R},A))})}));bg.muiName=\"Select\";const wg=bg,Cg=(0,qt.A)(\"MuiDivider\",[\"root\",\"absolute\",\"fullWidth\",\"inset\",\"middle\",\"flexItem\",\"light\",\"vertical\",\"withChildren\",\"withChildrenVertical\",\"textAlignRight\",\"textAlignLeft\",\"wrapper\",\"wrapperVertical\"]),Sg=(0,qt.A)(\"MuiListItemIcon\",[\"root\",\"alignItemsFlexStart\"]);function Eg(e){return(0,un.Ay)(\"MuiListItemText\",e)}const xg=(0,qt.A)(\"MuiListItemText\",[\"root\",\"multiline\",\"dense\",\"inset\",\"primary\",\"secondary\"]);function Ag(e){return(0,un.Ay)(\"MuiMenuItem\",e)}const Tg=(0,qt.A)(\"MuiMenuItem\",[\"root\",\"focusVisible\",\"dense\",\"disabled\",\"divider\",\"gutters\",\"selected\"]),Dg=[\"autoFocus\",\"component\",\"dense\",\"divider\",\"disableGutters\",\"focusVisibleClassName\",\"role\",\"tabIndex\",\"className\"],Rg=(0,Ot.Ay)(mn,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiMenuItem\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,Tt.A)({},e.typography.body1,{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",position:\"relative\",textDecoration:\"none\",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:\"border-box\",whiteSpace:\"nowrap\"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:\"padding-box\"},{\"&:hover\":{textDecoration:\"none\",backgroundColor:(e.vars||e).palette.action.hover,\"@media (hover: none)\":{backgroundColor:\"transparent\"}},[`&.${Tg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Tg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Tg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Tg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Tg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cg.inset}`]:{marginLeft:52},[`& .${xg.root}`]:{marginTop:0,marginBottom:0},[`& .${xg.inset}`]:{paddingLeft:36},[`& .${Sg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up(\"sm\")]:{minHeight:\"auto\"}},t.dense&&(0,Tt.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Sg.root} svg`]:{fontSize:\"1.25rem\"}})))),Mg=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiMenuItem\"}),{autoFocus:i=!1,component:o=\"li\",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d=\"menuitem\",tabIndex:u,className:h}=r,p=(0,At.A)(r,Dg),g=t.useContext(uh),f=t.useMemo((()=>({dense:a||g.dense||!1,disableGutters:l})),[g.dense,a,l]),m=t.useRef(null);(0,vh.A)((()=>{i&&m.current&&m.current.focus()}),[i]);const v=(0,Tt.A)({},r,{dense:f.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s={root:[\"root\",n&&\"dense\",t&&\"disabled\",!i&&\"gutters\",r&&\"divider\",o&&\"selected\"]},l=(0,Rt.A)(s,Ag,a);return(0,Tt.A)({},a,l)})(r),b=(0,Nt.A)(m,n);let w;return r.disabled||(w=void 0!==u?u:-1),(0,Kt.jsx)(uh.Provider,{value:f,children:(0,Kt.jsx)(Rg,(0,Tt.A)({ref:b,role:d,tabIndex:w,component:o,focusVisibleClassName:(0,We.A)(y.focusVisible,c),className:(0,We.A)(y.root,h)},p,{ownerState:v,classes:y}))})}));var Og=n(2048);const kg=Nn({defaultClassName:(0,qt.A)(\"MuiBox\",[\"root\"]).root,generateClassName:Pn.A.generate}),Ig=$s(kg)((()=>({background:\"\".concat(ys),position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .pageCount\":{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",\"& > .MuiTypography-body1\":{font:\"normal normal 600 14px NotoSans-SemiBold\"}},\"& .paginationDropdown\":{margin:\"0px 8px\",borderRadius:Ds.shape.borderRadius,minWidth:\"70px\",height:Ds.spacing(4),color:Ds.palette.text.secondary,\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .MuiSelect-outlined\":{background:Ds.palette.secondary.dark,border:\"1px solid \".concat(Ds.palette.grey[300]),padding:\"5px 14px\"}},\"& .list\":{padding:\"0px !important\"},\"& .smart-agro-lite-geoSelect\":{},\"& .smart-agro-lite-cst-input\":{border:\"1px solid \".concat(Ds.palette.grey[300]),height:Ds.spacing(5),borderRadius:Ds.shape.borderRadius,display:\"flex\",alignItems:\"center\",\"& .MuiDivider-root\":{height:Ds.spacing(4)},\"& .MuiInputBase-root\":{padding:Ds.spacing(1.5)}},\"& .smart-agro-lite-browse\":{\"& .browse-file\":{\"& .MuiButtonBase-root,\":{backgroundColor:\"transparent !important\",color:Ds.palette.primary.main},\"& .file-custom-label\":{width:\"133px\",left:\"90px\"},\"& .remove-file\":{right:\"10px\"}}}}))),Ng=gs({image:{objectFit:\"contain\",margin:\"8px 0px 8px 0px\"},rowText:{...Ds.typography.body1},filterText:{...Ds.typography.subtitle1,fontSize:\"30px\"},spacer:{marginTop:\"16px\"},textLeft:{textAlign:\"left\"},bannerImage:{marginTop:\"4px\",height:\"200px\",width:\"100%\",objectFit:\"cover\",borderRadius:\"8px\"},cardMinorElevation:{filter:\"drop-shadow(0px 0px 0.5px rgba(0, 0, 0, 0.1))\",borderRadius:\"4px !important\"},loaderLabel:{color:\"#005693 !important\",fontSize:\"14px !important\",fontWeight:\"600 !important\",lineHeight:\"20px !important\"},colorComplete:{backgroundColor:\"#C3EAD1 !important\"},barComplete:{backgroundColor:\"#0C612C !important\",width:\"98%\"},colorProgress:{backgroundColor:\"#C6E6FF !important\"},barProgress:{backgroundColor:\"#005693 !important\"},loaderOverlay:{position:\"fixed\",width:\"100%\",height:\"100%\",backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:99999,top:0,left:0},loaderSpinner:{border:\"3px solid #f3f3f3\",borderTop:\"3px solid \".concat(Ds.palette.primary.main),borderRadius:\"50%\",width:50,height:50,animation:\"$spin 1.3s linear infinite\"},\"@keyframes spin\":{\"0%\":{transform:\"rotate(0deg)\"},\"100%\":{transform:\"rotate(360deg)\"}},imageContainer:{width:\"100%\",height:\"100%\"},imageRow:{width:\"100%\",height:\"100%\",objectFit:\"contain\"},container:{backgroundColor:\"transparent\",background:\"transparent\",display:\"flex\"},pageitem:{alignItems:\"center\",display:\"flex\",font:\"normal normal 400 14px NotoSans-Regular !important\",height:36,justifyContent:\"center\",width:36,borderRadius:Ds.shape.borderRadius,marginLeft:8,backgroundColor:Ds.palette.secondary.dark,color:Ds.palette.info.dark,border:\"1px solid \".concat(Ds.palette.grey[100]),cursor:\"pointer\",\"&:hover\":{borderColor:Ds.palette.primary.main},\"&.disabled\":{opacity:\"0.4\",\"& a\":{cursor:\"not-allowed\"}},\"& a\":{\"& svg\":{paddingTop:5,color:\"#A3A9B9\"},padding:\"6px 8px\"}},activePageItem:{color:Ds.palette.secondary.dark,backgroundColor:Ds.palette.success.main,border:\"1px solid \".concat(Ds.palette.success.light)},rowText1:{...Ds.typography.body2,fontFamily:\"NotoSans-Light !important\"},underLine:{...Ds.typography.body2,fontFamily:\"NotoSans-Regular !important\",textDecoration:\"underline\",textDecorationColor:Ds.palette.primary.main,color:\"\".concat(Ds.palette.primary.main,\" !important\")},redTextColor:{color:\"#EB4B4B !important\",textDecorationColor:\"#EB4B4B\"},greenTextColor:{color:\"#1b8643 !important\"},cancelButton:{borderRdius:\"4px\",border:\"1px solid #C2C7D0 !important\",background:\"#FFF !important\",color:\"#1D2B3A !important\",padding:\"10px !important\",height:\"42px !important\",width:\"124px !important\"},applyButton:{height:\"42px !important\",width:\"124px !important\"},picker:{backgroundColor:\"white\",border:\"0.7px solid #C2C7D0 !important\",borderRadius:\"4px !important\"},custom_select:{width:\"100%\",height:40,border:\"1px solid \".concat(Ds.palette.grey[300]),color:\"\".concat(Ds.palette.grey[500],\" !important\"),backgroundColor:\"\".concat(Ds.palette.secondary.main),font:\"normal normal 400 14px NotoSans-Regular !important\",\"&.Mui-focused\":{border:\"1px solid \".concat(Ds.palette.grey[300])},\"&:focus-visible\":{outline:\"none\"},\"& .MuiSelect-select \":{padding:\"10px\",\"& .defaultPlaceholder\":{color:\"#757575\"}},\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .Mui-disabled\":{opacity:\"0.7\",cursor:\"not-allowed !important\"}},Select:{\"&.MuiPaper-root\":{backgroundColor:Ds.palette.secondary.dark,borderRadius:Ds.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",transition:\"none !important\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiMenu-list\":{maxHeight:\"200px\"}},\"& ul\":{\"& li\":{padding:\"6px 16px\",\"& .css-1uduoix-MuiButtonBase-root-MuiCheckbox-root.Mui-checked\":{color:Ds.palette.success.main},\"& p\":{font:\"normal normal 400 14px NotoSans-Regular\",color:Ds.palette.info.dark,whiteSpace:\"break-spaces\"}}}},selectExpandMore:{position:\"absolute\",right:\"6px\",fontSize:20},search:{margin:\"4px !important\"},scrollCard:{overflow:\"auto\",maxHeight:\"calc(100vh - 100px)\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},scrollable:{overflowY:\"auto\"},cancelButtonComponent:{borderRdius:\"4px\",border:\"1px solid #C2C7D0 !important\",background:\"#FFF !important\",color:\"#1D2B3A !important\"},customBody:{position:\"absolute\",background:\"rgba(0,0,0,0.5)\",width:\"100% !important\",height:\"100% !important\",top:\"0px\",left:\"0px\",right:\"0px\",maxWidth:\"unset !important\",padding:\"unset !important\"},customDrawerComponent:{maxWidth:\"unset !important\",padding:\"unset !important\",width:\"100% !important\",height:\"fit-content\",filter:\"drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.25))\"},children:{backgroundColor:\"white\",maxWidth:\"unset !important\",height:\"fit-content\",padding:\"24px\"},closeWrapper:{width:\"30px\",height:\"30px\",background:\"\".concat(Es),position:\"absolute\",bottom:\"-10px\",left:\"0px\",right:\"0px\",borderRadius:\"15px\",filter:\"drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25))\",zIndex:9999,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",\"&:hover\":{animation:\" 0% {\\n          -webkit-transform: rotate(-45deg);\\n                  transform: rotate(-45deg);\\n          opacity: 0;\\n        }\\n        100% {\\n          -webkit-transform: rotate(0);\\n                  transform: rotate(0);\\n          opacity: 1;\\n        } 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both !important\"}},closeIcon:{},imageContainerBannerUpload:{position:\"relative\",borderRadius:\"8px\",borderWidth:\"1px\",borderStyle:\"dashed\",height:\"160px\",background:\"#F3F4F6\",borderColor:\"\".concat(Ds.palette.grey[100])},previewImage:{objectFit:\"cover\",height:\"158px\",width:\"100%\",borderRadius:\"8px\"},closeBtn:{position:\"absolute\",top:\"4px\",right:\"4px\"},uploadButton:{borderRadius:\"4px\",border:\"1px solid #C2C7D0 !important\",background:\"#FFF !important\",color:\"#1D2B3A !important\",width:\"150px\",height:\"48px !important\"},uploadText:{fontSize:\"17px !important\"},timePicker:{backgroundColor:\"white\",border:\"0.7px solid #C2C7D0 !important\",borderRadius:\"4px !important\",\"&:hover\":{border:\"0.7px solid #C2C7D0 !important\"}},descTextArea:{resize:\"none\",height:\"150px !important\",overflow:\"auto\"},textWrap:{wordBreak:\"break-word\"},clearBorder:{border:\"unset !important\",borderColor:\"transparent !important\",backgroundColor:\"transparent !important\"},title:{textAlign:\"left\"},body:{...Ds.typography.body2,fontFamily:\"NotoSans-Light !important\",color:\"#696F88 !important\",textAlign:\"left\"},alignItem:{alignItems:\"center\"}});var Pg=n(3031),Lg=n.n(Pg);function Fg(){return Fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fg.apply(this,arguments)}const _g=e=>{let{name:t,options:n,labelKey:r,value:o,defaultLabel:a,isSortReq:s=!1,isDisabled:l=!1,onChange:c}=e;const d=Ng(),u=s?Lg()(n,r):n;return i().createElement(wg,{\"data-testid\":t,name:t,value:o,onChange:e=>{const{name:t,value:n}=e.target;c(t,n)},label:a,defaultValue:\"\",className:d.custom_select,MenuProps:{classes:{paper:d.Select}},IconComponent:e=>i().createElement(Og.A,Fg({},e,{className:d.selectExpandMore})),renderValue:e=>Array.isArray(e)&&0===e.length||!e?i().createElement(\"span\",{className:\"defaultPlaceholder\"},a):e[r]||e,disabled:l,displayEmpty:!0},i().createElement(Mg,{value:\"\",disabled:!0},a),u&&Array.isArray(u)&&u.map(((e,t)=>i().createElement(Mg,{key:e[r],value:e},e[r]))))};var zg,Gg;try{zg=Map}catch(ot){}try{Gg=Set}catch(ot){}function Vg(e,t,n){if(!e||\"object\"!=typeof e||\"function\"==typeof e)return e;if(e.nodeType&&\"cloneNode\"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Bg);if(zg&&e instanceof zg)return new Map(Array.from(e.entries()));if(Gg&&e instanceof Gg)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var o=t.findIndex((function(t){return t===e[i]}));r[i]=o>-1?n[o]:Vg(e[i],t,n)}return r}return e}function Bg(e){return Vg(e,[],[])}const Hg=Object.prototype.toString,jg=Error.prototype.toString,Ug=RegExp.prototype.toString,Wg=\"undefined\"!=typeof Symbol?Symbol.prototype.toString:()=>\"\",$g=/^Symbol\\((.*)\\)(.*)$/;function Yg(e,t=!1){if(null==e||!0===e||!1===e)return\"\"+e;const n=typeof e;if(\"number\"===n)return function(e){return e!=+e?\"NaN\":0===e&&1/e<0?\"-0\":\"\"+e}(e);if(\"string\"===n)return t?`\"${e}\"`:e;if(\"function\"===n)return\"[Function \"+(e.name||\"anonymous\")+\"]\";if(\"symbol\"===n)return Wg.call(e).replace($g,\"Symbol($1)\");const r=Hg.call(e).slice(8,-1);return\"Date\"===r?isNaN(e.getTime())?\"\"+e:e.toISOString(e):\"Error\"===r||e instanceof Error?\"[\"+jg.call(e)+\"]\":\"RegExp\"===r?Ug.call(e):null}function Kg(e,t){let n=Yg(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=Yg(this[e],t);return null!==r?r:n}),2)}let qg={default:\"${path} is invalid\",required:\"${path} is a required field\",oneOf:\"${path} must be one of the following values: ${values}\",notOneOf:\"${path} must not be one of the following values: ${values}\",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \\`${t}\\` type, but the final value was: \\`${Kg(n,!0)}\\``+(i?` (cast from the value \\`${Kg(r,!0)}\\`).`:\".\");return null===n&&(o+='\\n If \"null\" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:\"${path} must be defined\"},Qg={length:\"${path} must be exactly ${length} characters\",min:\"${path} must be at least ${min} characters\",max:\"${path} must be at most ${max} characters\",matches:'${path} must match the following: \"${regex}\"',email:\"${path} must be a valid email\",url:\"${path} must be a valid URL\",uuid:\"${path} must be a valid UUID\",trim:\"${path} must be a trimmed string\",lowercase:\"${path} must be a lowercase string\",uppercase:\"${path} must be a upper case string\"},Xg={min:\"${path} field must be later than ${min}\",max:\"${path} field must be at earlier than ${max}\"},Zg={noUnknown:\"${path} field has unspecified keys: ${unknown}\"},Jg={min:\"${path} field must have at least ${min} items\",max:\"${path} field must have less than or equal to ${max} items\",length:\"${path} must have ${length} items\"};Object.assign(Object.create(null),{mixed:qg,string:Qg,number:{min:\"${path} must be greater than or equal to ${min}\",max:\"${path} must be less than or equal to ${max}\",lessThan:\"${path} must be less than ${less}\",moreThan:\"${path} must be greater than ${more}\",positive:\"${path} must be a positive number\",negative:\"${path} must be a negative number\",integer:\"${path} must be an integer\"},date:Xg,object:Zg,array:Jg,boolean:{isValue:\"${path} field must be ${value}\"}});var ef=n(1448),tf=n.n(ef);const nf=e=>e&&e.__isYupSchema__,rf=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,\"function\"==typeof t)return void(this.fn=t);if(!tf()(t,\"is\"))throw new TypeError(\"`is:` is required for `when()` conditions\");if(!t.then&&!t.otherwise)throw new TypeError(\"either `then:` or `otherwise:` is required for `when()` conditions\");let{is:n,then:r,otherwise:i}=t,o=\"function\"==typeof n?n:(...e)=>e.every((e=>e===n));this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return\"function\"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!nf(r))throw new TypeError(\"conditions must return a schema object\");return r.resolve(t)}};function of(e){return null==e?[]:[].concat(e)}function af(){return af=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}let sf=/\\$\\{\\s*(\\w+)\\s*\\}/g;class lf extends Error{static formatError(e,t){const n=t.label||t.path||\"this\";return n!==t.path&&(t=af({},t,{path:n})),\"string\"==typeof e?e.replace(sf,((e,n)=>Kg(t[n]))):\"function\"==typeof e?e(t):e}static isError(e){return e&&\"ValidationError\"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name=\"ValidationError\",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],of(e).forEach((e=>{lf.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,lf)}}function cf(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,c=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})(t),d=r.length;const u=[];if(a=a||[],!d)return a.length?c(new lf(a,o,l)):c(null,o);for(let e=0;e<r.length;e++)(0,r[e])(i,(function(e){if(e){if(!lf.isError(e))return c(e,o);if(n)return e.value=o,c(e,o);u.push(e)}if(--d<=0){if(u.length&&(s&&u.sort(s),a.length&&u.push(...a),a=u),a.length)return void c(new lf(a,o,l),o);c(null,o)}}))}var df=n(3916),uf=n.n(df),hf=n(3668);class pf{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,\"string\"!=typeof e)throw new TypeError(\"ref must be a string, got: \"+e);if(this.key=e.trim(),\"\"===e)throw new TypeError(\"ref must be a non-empty string\");this.isContext=\"$\"===this.key[0],this.isValue=\".\"===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?\"$\":this.isValue?\".\":\"\";this.path=this.key.slice(n.length),this.getter=this.path&&(0,hf.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:\"ref\",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function gf(){return gf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(this,arguments)}function ff(e){function t(t,n){let{value:r,path:i=\"\",label:o,options:a,originalValue:s,sync:l}=t,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,[\"value\",\"path\",\"label\",\"options\",\"originalValue\",\"sync\"]);const{name:d,test:u,params:h,message:p}=e;let{parent:g,context:f}=a;function m(e){return pf.isRef(e)?e.getValue(r,g,f):e}function v(e={}){const t=uf()(gf({value:r,originalValue:s,label:o,path:e.path||i},h,e.params),m),n=new lf(lf.formatError(e.message||p,t),r,t.path,e.type||d);return n.params=t,n}let y,b=gf({path:i,parent:g,type:d,createError:v,resolve:m,options:a,originalValue:s},c);if(l){try{var w;if(y=u.call(b,r,b),\"function\"==typeof(null==(w=y)?void 0:w.then))throw new Error(`Validation test of type: \"${b.type}\" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void n(e)}lf.isError(y)?n(y):y?n(null,y):n(v())}else try{Promise.resolve(u.call(b,r,b)).then((e=>{lf.isError(e)?n(e):e?n(null,e):n(v())})).catch(n)}catch(e){n(e)}}return t.OPTIONS=e,t}function mf(e,t,n,r=n){let i,o,a;return t?((0,hf.forEach)(t,((s,l,c)=>{let d=l?(e=>e.substr(0,e.length-1).substr(1))(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=c?parseInt(d,10):0;if(n&&r>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: \"${e._type}\")`);i=n,n=n&&n[d],e=e.fields[d]}o=d,a=l?\"[\"+s+\"]\":\".\"+s})),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}pf.prototype.__isYupRef=!0;class vf{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,n)=>t.concat(pf.isRef(n)?e(n):n)),[])}add(e){pf.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){pf.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new vf;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach((e=>n.add(e))),e.refs.forEach((e=>n.add(e))),t.list.forEach((e=>n.delete(e))),t.refs.forEach((e=>n.delete(e))),n}}function yf(){return yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(this,arguments)}class bf{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new vf,this._blacklist=new vf,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(qg.notType)})),this.type=(null==e?void 0:e.type)||\"mixed\",this.spec=yf({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:\"optional\"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=yf({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Bg(yf({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&\"mixed\"!==this.type)throw new TypeError(`You cannot \\`concat()\\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=yf({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e,t={}){let n=this.resolve(yf({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=Kg(e),o=Kg(r);throw new TypeError(`The value of ${t.path||\"field\"} could not be cast to a value that satisfies the schema type: \"${n._type}\". \\n\\nattempted value: ${i} \\n`+(o!==i?`result of cast: ${o}`:\"\"))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,c=e;s||(c=this._cast(c,yf({assert:!1},t)));let d={value:c,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},u=[];this._typeError&&u.push(this._typeError);let h=[];this._whitelistError&&h.push(this._whitelistError),this._blacklistError&&h.push(this._blacklistError),cf({args:d,value:c,path:i,sync:r,tests:u,endEarly:l},(e=>{e?n(e,c):cf({tests:this.tests.concat(h),args:d,path:i,sync:r,value:c,endEarly:l},n)}))}validate(e,t,n){let r=this.resolve(yf({},t,{value:e}));return\"function\"==typeof n?r._validate(e,t,n):new Promise(((n,i)=>r._validate(e,t,((e,t)=>{e?i(e):n(t)}))))}validateSync(e,t){let n;return this.resolve(yf({},t,{value:e}))._validate(e,yf({},t,{sync:!0}),((e,t)=>{if(e)throw e;n=t})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(lf.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(lf.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:\"function\"==typeof e?e.call(this):Bg(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=qg.defined){return this.test({message:e,name:\"defined\",exclusive:!0,test:e=>void 0!==e})}required(e=qg.required){return this.clone({presence:\"required\"}).withMutation((t=>t.test({message:e,name:\"required\",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:\"optional\"});return e.tests=e.tests.filter((e=>\"required\"!==e.OPTIONS.name)),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?\"function\"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=qg.default),\"function\"!=typeof t.test)throw new TypeError(\"`test` is a required parameters\");let n=this.clone(),r=ff(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError(\"Exclusive tests must provide a unique `name` identifying the test\");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0})),n.tests.push(r),n}when(e,t){Array.isArray(e)||\"string\"==typeof e||(t=e,e=\".\");let n=this.clone(),r=of(e).map((e=>new pf(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push(new rf(r,t)),n}typeError(e){let t=this.clone();return t._typeError=ff({message:e,name:\"typeError\",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=qg.oneOf){let n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=ff({message:t,name:\"oneOf\",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(\", \"),resolved:n}})}}),n}notOneOf(e,t=qg.notOneOf){let n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=ff({message:t,name:\"notOneOf\",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(\", \"),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return r}}bf.prototype.__isYupSchema__=!0;for(const e of[\"validate\",\"validateSync\"])bf.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=mf(this,t,n,r.context);return a[e](i&&i[o],yf({},r,{parent:i,path:t}))};for(const e of[\"equals\",\"is\"])bf.prototype[e]=bf.prototype.oneOf;for(const e of[\"not\",\"nope\"])bf.prototype[e]=bf.prototype.notOneOf;bf.prototype.optional=bf.prototype.notRequired;bf.prototype;const wf=e=>null==e;let Cf=/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i,Sf=/^((https?|ftp):)?\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i,Ef=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xf=e=>wf(e)||e===e.trim(),Af={}.toString();function Tf(){return new Df}class Df extends bf{constructor(){super({type:\"string\"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===Af?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),\"string\"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=Qg.length){return this.test({message:t,name:\"length\",exclusive:!0,params:{length:e},test(t){return wf(t)||t.length===this.resolve(e)}})}min(e,t=Qg.min){return this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(t){return wf(t)||t.length>=this.resolve(e)}})}max(e,t=Qg.max){return this.test({name:\"max\",exclusive:!0,message:t,params:{max:e},test(t){return wf(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&(\"object\"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||\"matches\",message:n||Qg.matches,params:{regex:e},test:t=>wf(t)||\"\"===t&&i||-1!==t.search(e)})}email(e=Qg.email){return this.matches(Cf,{name:\"email\",message:e,excludeEmptyString:!0})}url(e=Qg.url){return this.matches(Sf,{name:\"url\",message:e,excludeEmptyString:!0})}uuid(e=Qg.uuid){return this.matches(Ef,{name:\"uuid\",message:e,excludeEmptyString:!1})}ensure(){return this.default(\"\").transform((e=>null===e?\"\":e))}trim(e=Qg.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:\"trim\",test:xf})}lowercase(e=Qg.lowercase){return this.transform((e=>wf(e)?e:e.toLowerCase())).test({message:e,name:\"string_case\",exclusive:!0,test:e=>wf(e)||e===e.toLowerCase()})}uppercase(e=Qg.uppercase){return this.transform((e=>wf(e)?e:e.toUpperCase())).test({message:e,name:\"string_case\",exclusive:!0,test:e=>wf(e)||e===e.toUpperCase()})}}Tf.prototype=Df.prototype;var Rf=/^(\\d{4}|[+\\-]\\d{6})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:[ T]?(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,\\.](\\d{1,}))?)?(?:(Z)|([+\\-])(\\d{2})(?::?(\\d{2}))?)?)?$/;let Mf=new Date(\"\");function Of(){return new kf}class kf extends bf{constructor(){super({type:\"date\"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=Rf.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&\"\"!==n[8]||void 0!==n[9]&&\"\"!==n[9]?(\"Z\"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],\"+\"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?Mf:new Date(e))}))}))}_typeCheck(e){return t=e,\"[object Date]\"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let n;if(pf.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\\`${t}\\` must be a Date or a value that can be \\`cast()\\` to a Date`);n=r}return n}min(e,t=Xg.min){let n=this.prepareParam(e,\"min\");return this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(e){return wf(e)||e>=this.resolve(n)}})}max(e,t=Xg.max){let n=this.prepareParam(e,\"max\");return this.test({message:t,name:\"max\",exclusive:!0,params:{max:e},test(e){return wf(e)||e<=this.resolve(n)}})}}kf.INVALID_DATE=Mf,Of.prototype=kf.prototype,Of.INVALID_DATE=Mf;var If=n(4124),Nf=n.n(If),Pf=n(4058),Lf=n.n(Pf),Ff=n(9674),_f=n.n(Ff),zf=n(2981),Gf=n.n(zf);function Vf(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0})),n}function Bf(e){return(t,n)=>Vf(e,t)-Vf(e,n)}function Hf(){return Hf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hf.apply(this,arguments)}let jf=e=>\"[object Object]\"===Object.prototype.toString.call(e);const Uf=Bf([]);class Wf extends bf{constructor(e){super({type:\"object\"}),this.fields=Object.create(null),this._sortErrors=Uf,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return jf(e)||\"function\"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter((e=>-1===this._nodes.indexOf(e)))),s={},l=Hf({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=i[e],a=tf()(r,e);if(n){let i,o=r[e];l.path=(t.path?`${t.path}.`:\"\")+e,n=n.resolve({value:o,context:t.context,parent:s});let a=\"spec\"in n?n.spec:void 0,d=null==a?void 0:a.strict;if(null==a?void 0:a.strip){c=c||e in r;continue}i=t.__validating&&d?r[e]:n.cast(r[e],l),void 0!==i&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(c=!0)}return c?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,((e,c)=>{if(e){if(!lf.isError(e)||s)return void n(e,c);r.push(e)}if(!l||!jf(c))return void n(r[0]||null,c);a=a||c;let d=this._nodes.map((e=>(n,r)=>{let i=-1===e.indexOf(\".\")?(t.path?`${t.path}.`:\"\")+e:`${t.path||\"\"}[\"${e}\"]`,s=this.fields[e];s&&\"validate\"in s?s.validate(c[e],Hf({},t,{path:i,from:o,strict:!0,parent:c,originalValue:a[e]}),r):r(null)}));cf({sync:i,tests:d,value:c,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)}))}clone(e){const t=super.clone(e);return t.fields=Hf({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];void 0===r?n[e]=t:r instanceof bf&&t instanceof bf&&(n[e]=t.concat(r))}return t.withMutation((()=>t.shape(n,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const n=this.fields[t];e[t]=\"default\"in n?n.getDefault():void 0})),e}_getDefault(){return\"default\"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=Bf(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map((([e,t])=>`${e}-${t}`)));function o(e,t){let o=(0,hf.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(const t in e)if(tf()(e,t)){let n=e[t];r.add(t),pf.isRef(n)&&n.isSibling?o(n.path,t):nf(n)&&\"deps\"in n&&n.deps.forEach((e=>o(e,t)))}return Gf().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const t of e)delete n[t];return t.withMutation((()=>t.shape(n)))}from(e,t,n){let r=(0,hf.getter)(e,!0);return this.transform((i=>{if(null==i)return i;let o=i;return tf()(i,e)&&(o=Hf({},i),n||delete o[e],o[t]=r(i)),o}))}noUnknown(e=!0,t=Zg.noUnknown){\"string\"==typeof e&&(t=e,e=!0);let n=this.test({name:\"noUnknown\",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(\", \")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=Zg.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&_f()(t,((t,n)=>e(n)))))}camelCase(){return this.transformKeys(Lf())}snakeCase(){return this.transformKeys(Nf())}constantCase(){return this.transformKeys((e=>Nf()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=uf()(this.fields,(e=>e.describe())),e}}function $f(e){return new Wf(e)}function Yf(){return Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yf.apply(this,arguments)}function Kf(e){return new qf(e)}$f.prototype=Wf.prototype;class qf extends bf{constructor(e){super({type:\"array\"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map(((e,n)=>{const i=this.innerType.cast(e,Yf({},t,{path:`${t.path||\"\"}[${n}]`}));return i!==e&&(r=!0),i}));return r?i:n}_validate(e,t={},n){var r,i;let o=[],a=t.sync,s=t.path,l=this.innerType,c=null!=(r=t.abortEarly)?r:this.spec.abortEarly,d=null!=(i=t.recursive)?i:this.spec.recursive,u=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!lf.isError(e)||c)return void n(e,r);o.push(e)}if(!d||!l||!this._typeCheck(r))return void n(o[0]||null,r);u=u||r;let i=new Array(r.length);for(let e=0;e<r.length;e++){let n=r[e],o=`${t.path||\"\"}[${e}]`,a=Yf({},t,{path:o,strict:!0,parent:r,index:e,originalValue:u[e]});i[e]=(e,t)=>l.validate(n,a,t)}cf({sync:a,path:s,value:r,errors:o,endEarly:c,tests:i},n)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!nf(e))throw new TypeError(\"`array.of()` sub-schema must be a valid yup schema not: \"+Kg(e));return t.innerType=e,t}length(e,t=Jg.length){return this.test({message:t,name:\"length\",exclusive:!0,params:{length:e},test(t){return wf(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||Jg.min,this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(t){return wf(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||Jg.max,this.test({message:t,name:\"max\",exclusive:!0,params:{max:e},test(t){return wf(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}Kf.prototype=qf.prototype;const Qf=()=>$f().shape({ownerName:Tf().required(\"Owner Name Required\"),shopName:Tf().required(\"Shop Name Required\"),mobileNumber:Tf().required(\"Mobile Number Required\"),province:Tf().required(\"Province Required\"),district:Tf().required(\"Province Cities/District Required\"),ward:Tf().required(\"Ward/Commune Required\")}),Xf=()=>$f().shape({languageCode:$f().nullable(!0).required(\"Language is required\"),title:Tf().required(\"Title is required\"),bannerStartDate:Tf().required(\"Start date is required\"),bannerStartTime:Tf().required(\"Start time is required\"),bannerEndDate:Tf().required(\"End date is required\"),bannerEndTime:Tf().required(\"End time is required\"),hierarchyType:$f().nullable(!0).required(\"Location hierarchy is required\"),bannerType:Tf().required(\"Banner type is required\"),bannerProvince:Kf().nullable(!0).min(1,\"At least one province must be selected\"),bannerCities:Kf().nullable(!0).min(1,\"At least one city must be selected\")}),Zf=()=>$f().shape({brand:Tf().required(\"Brand Required\"),sku:Tf().required(\"SKU Required\"),sapCode:Tf().required(\"SAP Code Required\")});function Jf(e,t){return function(){return e.apply(t,arguments)}}const{toString:em}=Object.prototype,{getPrototypeOf:tm}=Object,nm=(e=>t=>{const n=em.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rm=e=>(e=e.toLowerCase(),t=>nm(t)===e),im=e=>t=>typeof t===e,{isArray:om}=Array,am=im(\"undefined\"),sm=rm(\"ArrayBuffer\"),lm=im(\"string\"),cm=im(\"function\"),dm=im(\"number\"),um=e=>null!==e&&\"object\"==typeof e,hm=e=>{if(\"object\"!==nm(e))return!1;const t=tm(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},pm=rm(\"Date\"),gm=rm(\"File\"),fm=rm(\"Blob\"),mm=rm(\"FileList\"),vm=rm(\"URLSearchParams\");function ym(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if(\"object\"!=typeof e&&(e=[e]),om(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function bm(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const wm=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:global,Cm=e=>!am(e)&&e!==wm,Sm=(Em=\"undefined\"!=typeof Uint8Array&&tm(Uint8Array),e=>Em&&e instanceof Em);var Em;const xm=rm(\"HTMLFormElement\"),Am=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tm=rm(\"RegExp\"),Dm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ym(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},Rm=\"abcdefghijklmnopqrstuvwxyz\",Mm=\"0123456789\",Om={DIGIT:Mm,ALPHA:Rm,ALPHA_DIGIT:Rm+Rm.toUpperCase()+Mm},km=rm(\"AsyncFunction\"),Im={isArray:om,isArrayBuffer:sm,isBuffer:function(e){return null!==e&&!am(e)&&null!==e.constructor&&!am(e.constructor)&&cm(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&(\"function\"==typeof FormData&&e instanceof FormData||cm(e.append)&&(\"formdata\"===(t=nm(e))||\"object\"===t&&cm(e.toString)&&\"[object FormData]\"===e.toString()))},isArrayBufferView:function(e){let t;return t=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sm(e.buffer),t},isString:lm,isNumber:dm,isBoolean:e=>!0===e||!1===e,isObject:um,isPlainObject:hm,isUndefined:am,isDate:pm,isFile:gm,isBlob:fm,isRegExp:Tm,isFunction:cm,isStream:e=>um(e)&&cm(e.pipe),isURLSearchParams:vm,isTypedArray:Sm,isFileList:mm,forEach:ym,merge:function e(){const{caseless:t}=Cm(this)&&this||{},n={},r=(r,i)=>{const o=t&&bm(n,i)||i;hm(n[o])&&hm(r)?n[o]=e(n[o],r):hm(r)?n[o]=e({},r):om(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ym(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ym(t,((t,r)=>{n&&cm(t)?e[r]=Jf(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\"),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,\"super\",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&tm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:nm,kindOfTest:rm,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(om(e))return e;let t=e.length;if(!dm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:xm,hasOwnProperty:Am,hasOwnProp:Am,reduceDescriptors:Dm,freezeMethods:e=>{Dm(e,((t,n)=>{if(cm(e)&&-1!==[\"arguments\",\"caller\",\"callee\"].indexOf(n))return!1;const r=e[n];cm(r)&&(t.enumerable=!1,\"writable\"in t?t.writable=!1:t.set||(t.set=()=>{throw Error(\"Can not rewrite read-only method '\"+n+\"'\")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return om(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:bm,global:wm,isContextDefined:Cm,ALPHABET:Om,generateString:(e=16,t=Om.ALPHA_DIGIT)=>{let n=\"\";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&cm(e.append)&&\"FormData\"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(um(e)){if(t.indexOf(e)>=0)return;if(!(\"toJSON\"in e)){t[r]=e;const i=om(e)?[]:{};return ym(e,((e,t)=>{const o=n(e,r+1);!am(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:km,isThenable:e=>e&&(um(e)||cm(e))&&cm(e.then)&&cm(e.catch)};function Nm(e,t,n,r,i){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),r&&(this.request=r),i&&(this.response=i)}Im.inherits(Nm,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:Im.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pm=Nm.prototype,Lm={};[\"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=>{Lm[e]={value:e}})),Object.defineProperties(Nm,Lm),Object.defineProperty(Pm,\"isAxiosError\",{value:!0}),Nm.from=(e,t,n,r,i,o)=>{const a=Object.create(Pm);return Im.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>\"isAxiosError\"!==e)),Nm.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Fm=Nm;function _m(e){return Im.isPlainObject(e)||Im.isArray(e)}function zm(e){return Im.endsWith(e,\"[]\")?e.slice(0,-2):e}function Gm(e,t,n){return e?e.concat(t).map((function(e,t){return e=zm(e),!n&&t?\"[\"+e+\"]\":e})).join(n?\".\":\"\"):t}const Vm=Im.toFlatObject(Im,{},null,(function(e){return/^is[A-Z]/.test(e)})),Bm=function(e,t,n){if(!Im.isObject(e))throw new TypeError(\"target must be an object\");t=t||new FormData;const r=(n=Im.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Im.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||\"undefined\"!=typeof Blob&&Blob)&&Im.isSpecCompliantForm(t);if(!Im.isFunction(i))throw new TypeError(\"visitor must be a function\");function l(e){if(null===e)return\"\";if(Im.isDate(e))return e.toISOString();if(!s&&Im.isBlob(e))throw new Fm(\"Blob is not supported. Use a Buffer instead.\");return Im.isArrayBuffer(e)||Im.isTypedArray(e)?s&&\"function\"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&\"object\"==typeof e)if(Im.endsWith(n,\"{}\"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Im.isArray(e)&&function(e){return Im.isArray(e)&&!e.some(_m)}(e)||(Im.isFileList(e)||Im.endsWith(n,\"[]\"))&&(s=Im.toArray(e)))return n=zm(n),s.forEach((function(e,r){!Im.isUndefined(e)&&null!==e&&t.append(!0===a?Gm([n],r,o):null===a?n:n+\"[]\",l(e))})),!1;return!!_m(e)||(t.append(Gm(i,n,o),l(e)),!1)}const d=[],u=Object.assign(Vm,{defaultVisitor:c,convertValue:l,isVisitable:_m});if(!Im.isObject(e))throw new TypeError(\"data must be an object\");return function e(n,r){if(!Im.isUndefined(n)){if(-1!==d.indexOf(n))throw Error(\"Circular reference detected in \"+r.join(\".\"));d.push(n),Im.forEach(n,(function(n,o){!0===(!(Im.isUndefined(n)||null===n)&&i.call(t,n,Im.isString(o)?o.trim():o,r,u))&&e(n,r?r.concat(o):[o])})),d.pop()}}(e),t};function Hm(e){const t={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\",\"%00\":\"\\0\"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function jm(e,t){this._pairs=[],e&&Bm(e,this,t)}const Um=jm.prototype;Um.append=function(e,t){this._pairs.push([e,t])},Um.toString=function(e){const t=e?function(t){return e.call(this,t,Hm)}:Hm;return this._pairs.map((function(e){return t(e[0])+\"=\"+t(e[1])}),\"\").join(\"&\")};const Wm=jm;function $m(e){return encodeURIComponent(e).replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}function Ym(e,t,n){if(!t)return e;const r=n&&n.encode||$m,i=n&&n.serialize;let o;if(o=i?i(t,n):Im.isURLSearchParams(t)?t.toString():new Wm(t,n).toString(r),o){const t=e.indexOf(\"#\");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+o}return e}const Km=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Im.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},qm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qm={isBrowser:!0,classes:{URLSearchParams:\"undefined\"!=typeof URLSearchParams?URLSearchParams:Wm,FormData:\"undefined\"!=typeof FormData?FormData:null,Blob:\"undefined\"!=typeof Blob?Blob:null},protocols:[\"http\",\"https\",\"file\",\"blob\",\"url\",\"data\"]},Xm=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,Zm=(Jm=\"undefined\"!=typeof navigator&&navigator.product,Xm&&[\"ReactNative\",\"NativeScript\",\"NS\"].indexOf(Jm)<0);var Jm;const ev=\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&\"function\"==typeof self.importScripts,tv={...e,...Qm},nv=function(e){function t(e,n,r,i){let o=e[i++];if(\"__proto__\"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Im.isArray(r)?r.length:o,s?(Im.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Im.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&Im.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(Im.isFormData(e)&&Im.isFunction(e.entries)){const n={};return Im.forEachEntry(e,((e,r)=>{t(function(e){return Im.matchAll(/\\w+|\\[(\\w*)]/g,e).map((e=>\"[]\"===e[0]?\"\":e[1]||e[0]))}(e),r,n,0)})),n}return null},rv={transitional:qm,adapter:[\"xhr\",\"http\"],transformRequest:[function(e,t){const n=t.getContentType()||\"\",r=n.indexOf(\"application/json\")>-1,i=Im.isObject(e);if(i&&Im.isHTMLForm(e)&&(e=new FormData(e)),Im.isFormData(e))return r?JSON.stringify(nv(e)):e;if(Im.isArrayBuffer(e)||Im.isBuffer(e)||Im.isStream(e)||Im.isFile(e)||Im.isBlob(e))return e;if(Im.isArrayBufferView(e))return e.buffer;if(Im.isURLSearchParams(e))return t.setContentType(\"application/x-www-form-urlencoded;charset=utf-8\",!1),e.toString();let o;if(i){if(n.indexOf(\"application/x-www-form-urlencoded\")>-1)return function(e,t){return Bm(e,new tv.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return tv.isNode&&Im.isBuffer(e)?(this.append(t,e.toString(\"base64\")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Im.isFileList(e))||n.indexOf(\"multipart/form-data\")>-1){const t=this.env&&this.env.FormData;return Bm(o?{\"files[]\":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(\"application/json\",!1),function(e,t,n){if(Im.isString(e))try{return(0,JSON.parse)(e),Im.trim(e)}catch(e){if(\"SyntaxError\"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||rv.transitional,n=t&&t.forcedJSONParsing,r=\"json\"===this.responseType;if(e&&Im.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if(\"SyntaxError\"===e.name)throw Fm.from(e,Fm.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:\"XSRF-TOKEN\",xsrfHeaderName:\"X-XSRF-TOKEN\",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tv.classes.FormData,Blob:tv.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:\"application/json, text/plain, */*\",\"Content-Type\":void 0}}};Im.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\"],(e=>{rv.headers[e]={}}));const iv=rv,ov=Im.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\"]),av=Symbol(\"internals\");function sv(e){return e&&String(e).trim().toLowerCase()}function lv(e){return!1===e||null==e?e:Im.isArray(e)?e.map(lv):String(e)}function cv(e,t,n,r,i){return Im.isFunction(r)?r.call(this,t,n):(i&&(t=n),Im.isString(t)?Im.isString(r)?-1!==t.indexOf(r):Im.isRegExp(r)?r.test(t):void 0:void 0)}class dv{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=sv(t);if(!i)throw new Error(\"header name must be a non-empty string\");const o=Im.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=lv(e))}const o=(e,t)=>Im.forEach(e,((e,n)=>i(e,n,t)));return Im.isPlainObject(e)||e instanceof this.constructor?o(e,t):Im.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split(\"\\n\").forEach((function(e){i=e.indexOf(\":\"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ov[n]||(\"set-cookie\"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+\", \"+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=sv(e)){const n=Im.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Im.isFunction(t))return t.call(this,e,n);if(Im.isRegExp(t))return t.exec(e);throw new TypeError(\"parser must be boolean|regexp|function\")}}}has(e,t){if(e=sv(e)){const n=Im.findKey(this,e);return!(!n||void 0===this[n]||t&&!cv(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=sv(e)){const i=Im.findKey(n,e);!i||t&&!cv(0,n[i],i,t)||(delete n[i],r=!0)}}return Im.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!cv(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Im.forEach(this,((r,i)=>{const o=Im.findKey(n,i);if(o)return t[o]=lv(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=lv(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Im.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Im.isArray(n)?n.join(\", \"):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+\": \"+t)).join(\"\\n\")}get[Symbol.toStringTag](){return\"AxiosHeaders\"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[av]=this[av]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=sv(e);t[r]||(function(e,t){const n=Im.toCamelCase(\" \"+t);[\"get\",\"set\",\"has\"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return Im.isArray(e)?e.forEach(r):r(e),this}}dv.accessor([\"Content-Type\",\"Content-Length\",\"Accept\",\"Accept-Encoding\",\"User-Agent\",\"Authorization\"]),Im.reduceDescriptors(dv.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Im.freezeMethods(dv);const uv=dv;function hv(e,t){const n=this||iv,r=t||n,i=uv.from(r.headers);let o=r.data;return Im.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function pv(e){return!(!e||!e.__CANCEL__)}function gv(e,t,n){Fm.call(this,null==e?\"canceled\":e,Fm.ERR_CANCELED,t,n),this.name=\"CanceledError\"}Im.inherits(gv,Fm,{__CANCEL__:!0});const fv=gv,mv=tv.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+\"=\"+encodeURIComponent(t)];Im.isNumber(n)&&a.push(\"expires=\"+new Date(n).toGMTString()),Im.isString(r)&&a.push(\"path=\"+r),Im.isString(i)&&a.push(\"domain=\"+i),!0===o&&a.push(\"secure\"),document.cookie=a.join(\"; \")},read(e){const t=document.cookie.match(new RegExp(\"(^|;\\\\s*)(\"+e+\")=([^;]*)\"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,\"\",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vv(e,t){return e&&!/^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(t)?function(e,t){return t?e.replace(/\\/?\\/$/,\"\")+\"/\"+t.replace(/^\\/+/,\"\"):e}(e,t):t}const yv=tv.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement(\"a\");let n;function r(n){let r=n;return e&&(t.setAttribute(\"href\",r),r=t.href),t.setAttribute(\"href\",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,\"\"):\"\",host:t.host,search:t.search?t.search.replace(/^\\?/,\"\"):\"\",hash:t.hash?t.hash.replace(/^#/,\"\"):\"\",hostname:t.hostname,port:t.port,pathname:\"/\"===t.pathname.charAt(0)?t.pathname:\"/\"+t.pathname}}return n=r(window.location.href),function(e){const t=Im.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function bv(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let d=a,u=0;for(;d!==o;)u+=n[d++],d%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const h=c&&l-c;return h?Math.round(1e3*u/h):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?\"download\":\"upload\"]=!0,e(c)}}const wv=\"undefined\"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=uv.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener(\"abort\",o)}if(Im.isFormData(r))if(tv.hasStandardBrowserEnv||tv.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(\";\").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||\"multipart/form-data\",...t].join(\"; \"))}let d=new XMLHttpRequest;if(e.auth){const t=e.auth.username||\"\",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):\"\";i.set(\"Authorization\",\"Basic \"+btoa(t+\":\"+n))}const u=vv(e.baseURL,e.url);function h(){if(!d)return;const r=uv.from(\"getAllResponseHeaders\"in d&&d.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fm(\"Request failed with status code \"+n.status,[Fm.ERR_BAD_REQUEST,Fm.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&\"text\"!==s&&\"json\"!==s?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d}),d=null}if(d.open(e.method.toUpperCase(),Ym(u,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,\"onloadend\"in d?d.onloadend=h:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf(\"file:\"))&&setTimeout(h)},d.onabort=function(){d&&(n(new Fm(\"Request aborted\",Fm.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new Fm(\"Network Error\",Fm.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let t=e.timeout?\"timeout of \"+e.timeout+\"ms exceeded\":\"timeout exceeded\";const r=e.transitional||qm;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Fm(t,r.clarifyTimeoutError?Fm.ETIMEDOUT:Fm.ECONNABORTED,e,d)),d=null},tv.hasStandardBrowserEnv&&(l&&Im.isFunction(l)&&(l=l(e)),l||!1!==l&&yv(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&mv.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),\"setRequestHeader\"in d&&Im.forEach(i.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),Im.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&\"json\"!==s&&(d.responseType=e.responseType),\"function\"==typeof e.onDownloadProgress&&d.addEventListener(\"progress\",bv(e.onDownloadProgress,!0)),\"function\"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener(\"progress\",bv(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{d&&(n(!t||t.type?new fv(null,e,d):t),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener(\"abort\",o)));const p=function(e){const t=/^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(e);return t&&t[1]||\"\"}(u);p&&-1===tv.protocols.indexOf(p)?n(new Fm(\"Unsupported protocol \"+p+\":\",Fm.ERR_BAD_REQUEST,e)):d.send(r||null)}))},Cv={http:null,xhr:wv};Im.forEach(Cv,((e,t)=>{if(e){try{Object.defineProperty(e,\"name\",{value:t})}catch(e){}Object.defineProperty(e,\"adapterName\",{value:t})}}));const Sv=e=>`- ${e}`,Ev=e=>Im.isFunction(e)||null===e||!1===e,xv=e=>{e=Im.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Ev(n)&&(r=Cv[(t=String(n)).toLowerCase()],void 0===r))throw new Fm(`Unknown adapter '${t}'`);if(r)break;i[t||\"#\"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?\"is not supported by the environment\":\"is not available in the build\")));let n=t?e.length>1?\"since :\\n\"+e.map(Sv).join(\"\\n\"):\" \"+Sv(e[0]):\"as no adapter specified\";throw new Fm(\"There is no suitable adapter to dispatch the request \"+n,\"ERR_NOT_SUPPORT\")}return r};function Av(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fv(null,e)}function Tv(e){return Av(e),e.headers=uv.from(e.headers),e.data=hv.call(e,e.transformRequest),-1!==[\"post\",\"put\",\"patch\"].indexOf(e.method)&&e.headers.setContentType(\"application/x-www-form-urlencoded\",!1),xv(e.adapter||iv.adapter)(e).then((function(t){return Av(e),t.data=hv.call(e,e.transformResponse,t),t.headers=uv.from(t.headers),t}),(function(t){return pv(t)||(Av(e),t&&t.response&&(t.response.data=hv.call(e,e.transformResponse,t.response),t.response.headers=uv.from(t.response.headers))),Promise.reject(t)}))}const Dv=e=>e instanceof uv?{...e}:e;function Rv(e,t){t=t||{};const n={};function r(e,t,n){return Im.isPlainObject(e)&&Im.isPlainObject(t)?Im.merge.call({caseless:n},e,t):Im.isPlainObject(t)?Im.merge({},t):Im.isArray(t)?t.slice():t}function i(e,t,n){return Im.isUndefined(t)?Im.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Im.isUndefined(t))return r(void 0,t)}function a(e,t){return Im.isUndefined(t)?Im.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Dv(e),Dv(t),!0)};return Im.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);Im.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Mv={};[\"object\",\"boolean\",\"number\",\"function\",\"string\",\"symbol\"].forEach(((e,t)=>{Mv[e]=function(n){return typeof n===e||\"a\"+(t<1?\"n \":\" \")+e}}));const Ov={};Mv.transitional=function(e,t,n){function r(e,t){return\"[Axios v1.6.8] Transitional option '\"+e+\"'\"+t+(n?\". \"+n:\"\")}return(n,i,o)=>{if(!1===e)throw new Fm(r(i,\" has been removed\"+(t?\" in \"+t:\"\")),Fm.ERR_DEPRECATED);return t&&!Ov[i]&&(Ov[i]=!0,console.warn(r(i,\" has been deprecated since v\"+t+\" and will be removed in the near future\"))),!e||e(n,i,o)}};const kv={assertOptions:function(e,t,n){if(\"object\"!=typeof e)throw new Fm(\"options must be an object\",Fm.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Fm(\"option \"+o+\" must be \"+n,Fm.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fm(\"Unknown option \"+o,Fm.ERR_BAD_OPTION)}},validators:Mv},Iv=kv.validators;class Nv{constructor(e){this.defaults=e,this.interceptors={request:new Km,response:new Km}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\\n/,\"\"):\"\";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\\n.+\\n/,\"\"))&&(e.stack+=\"\\n\"+n):e.stack=n}throw e}}_request(e,t){\"string\"==typeof e?(t=t||{}).url=e:t=e||{},t=Rv(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&kv.assertOptions(n,{silentJSONParsing:Iv.transitional(Iv.boolean),forcedJSONParsing:Iv.transitional(Iv.boolean),clarifyTimeoutError:Iv.transitional(Iv.boolean)},!1),null!=r&&(Im.isFunction(r)?t.paramsSerializer={serialize:r}:kv.assertOptions(r,{encode:Iv.function,serialize:Iv.function},!0)),t.method=(t.method||this.defaults.method||\"get\").toLowerCase();let o=i&&Im.merge(i.common,i[t.method]);i&&Im.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\",\"common\"],(e=>{delete i[e]})),t.headers=uv.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){\"function\"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!s){const e=[Tv.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let h=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=Tv.call(this,h)}catch(e){return Promise.reject(e)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return Ym(vv((e=Rv(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Im.forEach([\"delete\",\"get\",\"head\",\"options\"],(function(e){Nv.prototype[e]=function(t,n){return this.request(Rv(n||{},{method:e,url:t,data:(n||{}).data}))}})),Im.forEach([\"post\",\"put\",\"patch\"],(function(e){function t(t){return function(n,r,i){return this.request(Rv(i||{},{method:e,headers:t?{\"Content-Type\":\"multipart/form-data\"}:{},url:n,data:r}))}}Nv.prototype[e]=t(),Nv.prototype[e+\"Form\"]=t(!0)}));const Pv=Nv;class Lv{constructor(e){if(\"function\"!=typeof e)throw new TypeError(\"executor must be a function.\");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new fv(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Lv((function(t){e=t}));return{token:t,cancel:e}}}const Fv=Lv,_v={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(_v).forEach((([e,t])=>{_v[t]=e}));const zv=_v,Gv=function e(t){const n=new Pv(t),r=Jf(Pv.prototype.request,n);return Im.extend(r,Pv.prototype,n,{allOwnKeys:!0}),Im.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Rv(t,n))},r}(iv);Gv.Axios=Pv,Gv.CanceledError=fv,Gv.CancelToken=Fv,Gv.isCancel=pv,Gv.VERSION=\"1.6.8\",Gv.toFormData=Bm,Gv.AxiosError=Fm,Gv.Cancel=Gv.CanceledError,Gv.all=function(e){return Promise.all(e)},Gv.spread=function(e){return function(t){return e.apply(null,t)}},Gv.isAxiosError=function(e){return Im.isObject(e)&&!0===e.isAxiosError},Gv.mergeConfig=Rv,Gv.AxiosHeaders=uv,Gv.formToJSON=e=>nv(Im.isHTMLForm(e)?new FormData(e):e),Gv.getAdapter=xv,Gv.HttpStatusCode=zv,Gv.default=Gv;const Vv=Gv;let Bv=function(e){return e.GET=\"GET\",e.POST=\"POST\",e.PATCH=\"PATCH\",e.PUT=\"PUT\",e}({});class Hv{constructor(){(function(e,t,n){var r;(t=\"symbol\"==typeof(r=function(e,t){if(\"object\"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,\"cancelSource\",Vv.CancelToken.source()),this.axiosInstance=Vv.create(),this.setupResponseInterceptor()}static getInstances(){return Hv.instance||(Hv.instance=new Hv),Hv.instance}setupResponseInterceptor(){this.axiosInstance.interceptors.response.use((e=>e),(e=>{if(Vv.isCancel(e))return Promise.reject(new Error(Te.somethingwentwrong));const t=this.normalizeErrorResponse(e.response),{data:n}=t,r=this.extractErrorMessage(n);return Promise.reject(new Error(r))}))}normalizeErrorResponse(e){return{data:null==e?void 0:e.data,statusCode:null==e?void 0:e.status}}extractErrorMessage(e){return\"object\"==typeof e?(null==e?void 0:e.errorMessage)||(null==e?void 0:e.errorCode)||Te.somethingwentwrong:\"string\"==typeof e?e:Te.somethingwentwrong}cancelRequest(){this.cancelSource.cancel(),this.cancelSource=Vv.CancelToken.source()}async getApiService(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{this.cancelSource=Vv.CancelToken.source();const i={url:e,method:t,timeout:1e4,data:t===Bv.GET?void 0:n,params:t===Bv.GET?n:void 0,headers:{\"Content-Type\":\"application/json\",\"country-code\":\"VN\",\"language-code\":\"en\",...r},withCredentials:!1,cancelToken:this.cancelSource.token},{data:o}=await this.axiosInstance.request(i);return o}catch(e){return this.cancelRequest(),Promise.reject(new Error(e))}}}var jv=n(1535);const Uv=()=>(e=>{try{return jv.A.getItem(e)||null}catch(e){console.log(e)}})(_e.BASE_URL),Wv=()=>\"\".concat(Uv(),\"/admin/geo-data\"),$v=()=>\"\".concat(Uv(),\"/admin/user\"),Yv=()=>\"\".concat(Uv(),\"/admin/banners\"),Kv=e=>{let{onRequestClose:t=(()=>{}),isEditable:n=!1}=e;const r=Ng();return i().createElement(rl,{direction:\"row\",gap:2,className:\"btnsBlock\"},i().createElement(Hn,{variant:\"outlined\",buttonName:Te.CANCEL,fullwidth:!1,onButtonClick:()=>{t(!0)},type:\"button\",className:r.cancelButtonComponent}),i().createElement(Hn,{variant:\"contained\",buttonName:n?Te.SAVE:Te.ADD,fullwidth:!1,type:\"submit\"}))},qv=(e,t)=>Hv.getInstances().getApiService(Wv(),Bv.GET,{levelId:e,pageNo:0,pageSize:1e3},{authorization:\"Bearer \".concat(t.AccessToken)}),Qv=(e,t)=>Hv.getInstances().getApiService(Wv(),Bv.GET,{parentId:e,pageNo:0,pageSize:1e3},{authorization:\"Bearer \".concat(t.AccessToken)}),Xv=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const[r,i]=(0,t.useState)([]),[o,a]=(0,t.useState)([]),[s,l]=(0,t.useState)([]);(0,t.useEffect)((()=>{c()}),[]);const c=async()=>{try{d();const t=await qv(n,e);(null==t?void 0:t.length)>0&&i(t)}catch(e){}},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;0===e?a([]):(1===e||a([]),l([]))};return{provinceList:r,wardList:s,districtList:o,fetchDistrictWard:function(t){!async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(Array.isArray(t)||\"string\"!=typeof t){if(Array.isArray(t)){const i=t.map((async t=>{let i;if(0===n&&r.length>0){const e=r.find((e=>e.name===t));i=null==e?void 0:e.id}else if(1===n&&o.length>0){const e=o.find((e=>e.name===t));i=null==e?void 0:e.id}if(i)try{const t=await Qv(i,e);return(null==t?void 0:t.length)>0?t:[]}catch(e){return[]}return[]})),s=(await Promise.all(i)).flat();0===n?a(s):1===n&&l(s)}}else{const r=await Qv(t,e);(null==r?void 0:r.length)>0&&(0===n?a(r):1===n&&l(r))}}catch(e){}}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)},clearDistrictWardList:d}};var Zv=n(9781);const Jv=()=>(0,t.useContext)(Be);var ey={version:\"0.18.5\"},ty=1200,ny=1252,ry=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],iy={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},oy=function(e){-1!=ry.indexOf(e)&&(ny=iy[0]=e)},ay=function(e){ty=e,oy(e)};var sy,ly=function(e){return String.fromCharCode(e)},cy=function(e){return String.fromCharCode(e)},dy=null,uy=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";function hy(e){for(var t=\"\",n=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c<e.length;)o=(n=e.charCodeAt(c++))>>2,a=(3&n)<<4|(r=e.charCodeAt(c++))>>4,s=(15&r)<<2|(i=e.charCodeAt(c++))>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=uy.charAt(o)+uy.charAt(a)+uy.charAt(s)+uy.charAt(l);return t}function py(e){var t=\"\",n=0,r=0,i=0,o=0,a=0,s=0;e=e.replace(/[^\\w\\+\\/\\=]/g,\"\");for(var l=0;l<e.length;)n=uy.indexOf(e.charAt(l++))<<2|(o=uy.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&o)<<4|(a=uy.indexOf(e.charAt(l++)))>>2,64!==a&&(t+=String.fromCharCode(r)),i=(3&a)<<6|(s=uy.indexOf(e.charAt(l++))),64!==s&&(t+=String.fromCharCode(i));return t}var gy=function(){return\"undefined\"!=typeof Buffer&&\"undefined\"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),fy=function(){if(\"undefined\"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from(\"foo\",\"utf8\")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function my(e){return gy?Buffer.alloc?Buffer.alloc(e):new Buffer(e):\"undefined\"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function vy(e){return gy?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):\"undefined\"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var yy=function(e){return gy?fy(e,\"binary\"):e.split(\"\").map((function(e){return 255&e.charCodeAt(0)}))};function by(e){if(\"undefined\"==typeof ArrayBuffer)return yy(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function wy(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join(\"\");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join(\"\")}var Cy=gy?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:fy(e)})))}:function(e){if(\"undefined\"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),i=0;for(t=0,n=0;t<e.length;n+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)r.set(e[t],n);else{if(\"string\"==typeof e[t])throw\"wtf\";r.set(new Uint8Array(e[t]),n)}return r}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},Sy=/\\u0000/g,Ey=/[\\u0001-\\u0006]/g;function xy(e){for(var t=\"\",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function Ay(e,t){var n=\"\"+e;return n.length>=t?n:Lb(\"0\",t-n.length)+n}function Ty(e,t){var n=\"\"+e;return n.length>=t?n:Lb(\" \",t-n.length)+n}function Dy(e,t){var n=\"\"+e;return n.length>=t?n:n+Lb(\" \",t-n.length)}var Ry=Math.pow(2,32);function My(e,t){return e>Ry||e<-Ry?function(e,t){var n=\"\"+Math.round(e);return n.length>=t?n:Lb(\"0\",t-n.length)+n}(e,t):function(e,t){var n=\"\"+e;return n.length>=t?n:Lb(\"0\",t-n.length)+n}(Math.round(e),t)}function Oy(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var ky=[[\"Sun\",\"Sunday\"],[\"Mon\",\"Monday\"],[\"Tue\",\"Tuesday\"],[\"Wed\",\"Wednesday\"],[\"Thu\",\"Thursday\"],[\"Fri\",\"Friday\"],[\"Sat\",\"Saturday\"]],Iy=[[\"J\",\"Jan\",\"January\"],[\"F\",\"Feb\",\"February\"],[\"M\",\"Mar\",\"March\"],[\"A\",\"Apr\",\"April\"],[\"M\",\"May\",\"May\"],[\"J\",\"Jun\",\"June\"],[\"J\",\"Jul\",\"July\"],[\"A\",\"Aug\",\"August\"],[\"S\",\"Sep\",\"September\"],[\"O\",\"Oct\",\"October\"],[\"N\",\"Nov\",\"November\"],[\"D\",\"Dec\",\"December\"]],Ny={0:\"General\",1:\"0\",2:\"0.00\",3:\"#,##0\",4:\"#,##0.00\",9:\"0%\",10:\"0.00%\",11:\"0.00E+00\",12:\"# ?/?\",13:\"# ??/??\",14:\"m/d/yy\",15:\"d-mmm-yy\",16:\"d-mmm\",17:\"mmm-yy\",18:\"h:mm AM/PM\",19:\"h:mm:ss AM/PM\",20:\"h:mm\",21:\"h:mm:ss\",22:\"m/d/yy h:mm\",37:\"#,##0 ;(#,##0)\",38:\"#,##0 ;[Red](#,##0)\",39:\"#,##0.00;(#,##0.00)\",40:\"#,##0.00;[Red](#,##0.00)\",45:\"mm:ss\",46:\"[h]:mm:ss\",47:\"mmss.0\",48:\"##0.0E+0\",49:\"@\",56:'\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"'},Py={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Ly={5:'\"$\"#,##0_);\\\\(\"$\"#,##0\\\\)',63:'\"$\"#,##0_);\\\\(\"$\"#,##0\\\\)',6:'\"$\"#,##0_);[Red]\\\\(\"$\"#,##0\\\\)',64:'\"$\"#,##0_);[Red]\\\\(\"$\"#,##0\\\\)',7:'\"$\"#,##0.00_);\\\\(\"$\"#,##0.00\\\\)',65:'\"$\"#,##0.00_);\\\\(\"$\"#,##0.00\\\\)',8:'\"$\"#,##0.00_);[Red]\\\\(\"$\"#,##0.00\\\\)',66:'\"$\"#,##0.00_);[Red]\\\\(\"$\"#,##0.00\\\\)',41:'_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \"-\"_);_(@_)',42:'_(\"$\"* #,##0_);_(\"$\"* \\\\(#,##0\\\\);_(\"$\"* \"-\"_);_(@_)',43:'_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \"-\"??_);_(@_)',44:'_(\"$\"* #,##0.00_);_(\"$\"* \\\\(#,##0.00\\\\);_(\"$\"* \"-\"??_);_(@_)'};function Fy(e,t,n){for(var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,d=0,u=Math.floor(i);c<t&&(s=(u=Math.floor(i))*a+o,d=u*c+l,!(i-u<5e-8));)i=1/(i-u),o=a,a=s,l=c,c=d;if(d>t&&(c>t?(d=l,s=o):(d=c,s=a)),!n)return[0,r*s,d];var h=Math.floor(r*s/d);return[h,r*s-h*d,d]}function _y(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var zy=new Date(1899,11,31,0,0,0),Gy=zy.getTime(),Vy=new Date(1900,2,1,0,0,0);function By(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Vy&&(n+=864e5),(n-(Gy+6e4*(e.getTimezoneOffset()-zy.getTimezoneOffset())))/864e5}function Hy(e){return-1==e.indexOf(\".\")?e:e.replace(/(?:\\.0*|(\\.\\d*[1-9])0+)$/,\"$1\")}function jy(e,t){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"TRUE\":\"FALSE\";case\"number\":return(0|e)===e?e.toString(10):function(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=Hy(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=Hy(e.toFixed(11));return t.length>(e<0?12:11)||\"0\"===t||\"-0\"===t?e.toPrecision(6):t}(e),Hy(function(e){return-1==e.indexOf(\"E\")?e:e.replace(/(?:\\.0*|(\\.\\d*[1-9])0+)[Ee]/,\"$1E\").replace(/(E[+-])(\\d)$/,\"$10$2\")}(t.toUpperCase()))}(e);case\"undefined\":return\"\";case\"object\":if(null==e)return\"\";if(e instanceof Date)return cb(14,By(e,t&&t.date1904),t)}throw new Error(\"unsupported value in General format: \"+e)}function Uy(e,t,n,r){var i,o=\"\",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return Iy[n.m-1][1];case 5:return Iy[n.m-1][0];default:return Iy[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return ky[n.q][0];default:return ky[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw\"bad hour format: \"+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw\"bad hour format: \"+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw\"bad minute format: \"+t}break;case 115:if(\"s\"!=t&&\"ss\"!=t&&\".0\"!=t&&\".00\"!=t&&\".000\"!=t)throw\"bad second format: \"+t;return 0!==n.u||\"s\"!=t&&\"ss\"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,(a=Math.round(s*(n.S+n.u)))>=60*s&&(a=0),\"s\"===t?0===a?\"0\":\"\"+a/s:(o=Ay(a,2+r),\"ss\"===t?o.substr(0,2):\".\"+o.substr(2,t.length-1))):Ay(n.S,t.length);case 90:switch(t){case\"[h]\":case\"[hh]\":i=24*n.D+n.H;break;case\"[m]\":case\"[mm]\":i=60*(24*n.D+n.H)+n.M;break;case\"[s]\":case\"[ss]\":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw\"bad abstime format: \"+t}c=3===t.length?1:2;break;case 101:i=l,c=1}return c>0?Ay(i,c):\"\"}function Wy(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?\",\":\"\")+e.substr(t,3);return n}var $y=/%/g;function Yy(e,t){var n,r=e.indexOf(\"E\")-e.indexOf(\".\")-1;if(e.match(/^#+0.0E\\+0$/)){if(0==t)return\"0.0E+0\";if(t<0)return\"-\"+Yy(e,-t);var i=e.indexOf(\".\");-1===i&&(i=e.indexOf(\"E\"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),-1===(n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i)).indexOf(\"e\")){var a=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(\".\")?n=n.charAt(0)+\".\"+n.substr(1)+\"E+\"+(a-n.length+o):n+=\"E+\"+(a-o);\"0.\"===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,i)+\".\"+n.substr(2+i)).replace(/^0+([1-9])/,\"$1\").replace(/^0+\\./,\"0.\");n=n.replace(/\\+-/,\"-\")}n=n.replace(/^([+-]?)(\\d*)\\.(\\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+\".\"+r.substr(o)+\"E\"}))}else n=t.toExponential(r);return e.match(/E\\+00$/)&&n.match(/e[+-]\\d$/)&&(n=n.substr(0,n.length-1)+\"0\"+n.charAt(n.length-1)),e.match(/E\\-/)&&n.match(/e\\+/)&&(n=n.replace(/e\\+/,\"e\")),n.replace(\"e\",\"E\")}var Ky=/# (\\?+)( ?)\\/( ?)(\\d+)/,qy=/^#*0*\\.([0#]+)/,Qy=/\\).*[0#]/,Xy=/\\(###\\) ###\\\\?-####/;function Zy(e){for(var t,n=\"\",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=\" \";break;case 48:n+=\"0\";break;default:n+=String.fromCharCode(t)}return n}function Jy(e,t){var n=Math.pow(10,t);return\"\"+Math.round(e*n)/n}function eb(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(\"\"+Math.round(n*r)).length?0:Math.round(n*r)}function tb(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Qy)){var r=t.replace(/\\( */,\"\").replace(/ \\)/,\"\").replace(/\\)/,\"\");return n>=0?tb(\"n\",r,n):\"(\"+tb(\"n\",r,-n)+\")\"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ib(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf(\"%\"))return function(e,t,n){var r=t.replace($y,\"\"),i=t.length-r.length;return ib(e,r,n*Math.pow(10,2*i))+Lb(\"%\",i)}(e,t,n);if(-1!==t.indexOf(\"E\"))return Yy(t,n);if(36===t.charCodeAt(0))return\"$\"+tb(e,t.substr(\" \"==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?\"-\":\"\";if(t.match(/^00+$/))return c+My(l,t.length);if(t.match(/^[#?]+$/))return\"0\"===(i=My(n,0))&&(i=\"\"),i.length>t.length?i:Zy(t.substr(0,t.length-i.length))+i;if(o=t.match(Ky))return function(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?\"\":\"\"+o)+\" \"+(0===a?Lb(\" \",e[1].length+1+e[4].length):Ty(a,e[1].length)+e[2]+\"/\"+e[3]+Ay(s,e[4].length))}(o,l,c);if(t.match(/^#+0+$/))return c+My(l,t.length-t.indexOf(\"0\"));if(o=t.match(qy))return i=Jy(n,o[1].length).replace(/^([^\\.]+)$/,\"$1.\"+Zy(o[1])).replace(/\\.$/,\".\"+Zy(o[1])).replace(/\\.(\\d*)$/,(function(e,t){return\".\"+t+Lb(\"0\",Zy(o[1]).length-t.length)})),-1!==t.indexOf(\"0.\")?i:i.replace(/^0\\./,\".\");if(t=t.replace(/^#+([0.])/,\"$1\"),o=t.match(/^(0*)\\.(#*)$/))return c+Jy(l,o[2].length).replace(/\\.(\\d*[1-9])0*$/,\".$1\").replace(/^(-?\\d*)$/,\"$1.\").replace(/^0\\./,o[1].length?\"0.\":\".\");if(o=t.match(/^#{1,3},##0(\\.?)$/))return c+Wy(My(l,0));if(o=t.match(/^#,##0\\.([#0]*0)$/))return n<0?\"-\"+tb(e,t,-n):Wy(\"\"+(Math.floor(n)+function(e,t){return t<(\"\"+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,o[1].length)))+\".\"+Ay(eb(n,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return tb(e,t.replace(/^#,#*,/,\"\"),n);if(o=t.match(/^([0#]+)(\\\\?-([0#]+))+$/))return i=xy(tb(e,t.replace(/[\\\\-]/g,\"\"),n)),a=0,xy(xy(t.replace(/\\\\/g,\"\")).replace(/[0#]/g,(function(e){return a<i.length?i.charAt(a++):\"0\"===e?\"0\":\"\"})));if(t.match(Xy))return\"(\"+(i=tb(e,\"##########\",n)).substr(0,3)+\") \"+i.substr(3,3)+\"-\"+i.substr(6);var d=\"\";if(o=t.match(/^([#0?]+)( ?)\\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Fy(l,Math.pow(10,a)-1,!1),i=\"\"+c,\" \"==(d=ib(\"n\",o[1],s[1])).charAt(d.length-1)&&(d=d.substr(0,d.length-1)+\"0\"),i+=d+o[2]+\"/\"+o[3],(d=Dy(s[2],a)).length<o[4].length&&(d=Zy(o[4].substr(o[4].length-d.length))+d),i+=d;if(o=t.match(/^# ([#0?]+)( ?)\\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),c+((s=Fy(l,Math.pow(10,a)-1,!0))[0]||(s[1]?\"\":\"0\"))+\" \"+(s[1]?Ty(s[1],a)+o[2]+\"/\"+o[3]+Dy(s[2],a):Lb(\" \",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=My(n,0),t.length<=i.length?i:Zy(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0?]+)\\.([#0]+)$/)){i=\"\"+n.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,\"$1\"),a=i.indexOf(\".\");var u=t.indexOf(\".\")-a,h=t.length-i.length-u;return Zy(t.substr(0,u)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\\.([#0]*0)$/))return a=eb(n,o[1].length),n<0?\"-\"+tb(e,t,-n):Wy(function(e){return e<2147483647&&e>-2147483648?\"\"+(e>=0?0|e:e-1|0):\"\"+Math.floor(e)}(n)).replace(/^\\d,\\d{3}$/,\"0$&\").replace(/^\\d*$/,(function(e){return\"00,\"+(e.length<3?Ay(0,3-e.length):\"\")+e}))+\".\"+Ay(a,o[1].length);switch(t){case\"###,##0.00\":return tb(e,\"#,##0.00\",n);case\"###,###\":case\"##,###\":case\"#,###\":var p=Wy(My(l,0));return\"0\"!==p?c+p:\"\";case\"###,###.00\":return tb(e,\"###,##0.00\",n).replace(/^0\\./,\".\");case\"#,###.00\":return tb(e,\"#,##0.00\",n).replace(/^0\\./,\".\")}throw new Error(\"unsupported format |\"+t+\"|\")}function nb(e,t){var n,r=e.indexOf(\"E\")-e.indexOf(\".\")-1;if(e.match(/^#+0.0E\\+0$/)){if(0==t)return\"0.0E+0\";if(t<0)return\"-\"+nb(e,-t);var i=e.indexOf(\".\");-1===i&&(i=e.indexOf(\"E\"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),!(n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i)).match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(\".\")?n=n.charAt(0)+\".\"+n.substr(1)+\"E+\"+(a-n.length+o):n+=\"E+\"+(a-o),n=n.replace(/\\+-/,\"-\")}n=n.replace(/^([+-]?)(\\d*)\\.(\\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+\".\"+r.substr(o)+\"E\"}))}else n=t.toExponential(r);return e.match(/E\\+00$/)&&n.match(/e[+-]\\d$/)&&(n=n.substr(0,n.length-1)+\"0\"+n.charAt(n.length-1)),e.match(/E\\-/)&&n.match(/e\\+/)&&(n=n.replace(/e\\+/,\"e\")),n.replace(\"e\",\"E\")}function rb(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Qy)){var r=t.replace(/\\( */,\"\").replace(/ \\)/,\"\").replace(/\\)/,\"\");return n>=0?rb(\"n\",r,n):\"(\"+rb(\"n\",r,-n)+\")\"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return ib(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf(\"%\"))return function(e,t,n){var r=t.replace($y,\"\"),i=t.length-r.length;return ib(e,r,n*Math.pow(10,2*i))+Lb(\"%\",i)}(e,t,n);if(-1!==t.indexOf(\"E\"))return nb(t,n);if(36===t.charCodeAt(0))return\"$\"+rb(e,t.substr(\" \"==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?\"-\":\"\";if(t.match(/^00+$/))return c+Ay(l,t.length);if(t.match(/^[#?]+$/))return i=\"\"+n,0===n&&(i=\"\"),i.length>t.length?i:Zy(t.substr(0,t.length-i.length))+i;if(o=t.match(Ky))return function(e,t,n){return n+(0===t?\"\":\"\"+t)+Lb(\" \",e[1].length+2+e[4].length)}(o,l,c);if(t.match(/^#+0+$/))return c+Ay(l,t.length-t.indexOf(\"0\"));if(o=t.match(qy))return i=(i=(\"\"+n).replace(/^([^\\.]+)$/,\"$1.\"+Zy(o[1])).replace(/\\.$/,\".\"+Zy(o[1]))).replace(/\\.(\\d*)$/,(function(e,t){return\".\"+t+Lb(\"0\",Zy(o[1]).length-t.length)})),-1!==t.indexOf(\"0.\")?i:i.replace(/^0\\./,\".\");if(t=t.replace(/^#+([0.])/,\"$1\"),o=t.match(/^(0*)\\.(#*)$/))return c+(\"\"+l).replace(/\\.(\\d*[1-9])0*$/,\".$1\").replace(/^(-?\\d*)$/,\"$1.\").replace(/^0\\./,o[1].length?\"0.\":\".\");if(o=t.match(/^#{1,3},##0(\\.?)$/))return c+Wy(\"\"+l);if(o=t.match(/^#,##0\\.([#0]*0)$/))return n<0?\"-\"+rb(e,t,-n):Wy(\"\"+n)+\".\"+Lb(\"0\",o[1].length);if(o=t.match(/^#,#*,#0/))return rb(e,t.replace(/^#,#*,/,\"\"),n);if(o=t.match(/^([0#]+)(\\\\?-([0#]+))+$/))return i=xy(rb(e,t.replace(/[\\\\-]/g,\"\"),n)),a=0,xy(xy(t.replace(/\\\\/g,\"\")).replace(/[0#]/g,(function(e){return a<i.length?i.charAt(a++):\"0\"===e?\"0\":\"\"})));if(t.match(Xy))return\"(\"+(i=rb(e,\"##########\",n)).substr(0,3)+\") \"+i.substr(3,3)+\"-\"+i.substr(6);var d=\"\";if(o=t.match(/^([#0?]+)( ?)\\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Fy(l,Math.pow(10,a)-1,!1),i=\"\"+c,\" \"==(d=ib(\"n\",o[1],s[1])).charAt(d.length-1)&&(d=d.substr(0,d.length-1)+\"0\"),i+=d+o[2]+\"/\"+o[3],(d=Dy(s[2],a)).length<o[4].length&&(d=Zy(o[4].substr(o[4].length-d.length))+d),i+=d;if(o=t.match(/^# ([#0?]+)( ?)\\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),c+((s=Fy(l,Math.pow(10,a)-1,!0))[0]||(s[1]?\"\":\"0\"))+\" \"+(s[1]?Ty(s[1],a)+o[2]+\"/\"+o[3]+Dy(s[2],a):Lb(\" \",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=\"\"+n,t.length<=i.length?i:Zy(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0]+)\\.([#0]+)$/)){i=\"\"+n.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,\"$1\"),a=i.indexOf(\".\");var u=t.indexOf(\".\")-a,h=t.length-i.length-u;return Zy(t.substr(0,u)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\\.([#0]*0)$/))return n<0?\"-\"+rb(e,t,-n):Wy(\"\"+n).replace(/^\\d,\\d{3}$/,\"0$&\").replace(/^\\d*$/,(function(e){return\"00,\"+(e.length<3?Ay(0,3-e.length):\"\")+e}))+\".\"+Ay(0,o[1].length);switch(t){case\"###,###\":case\"##,###\":case\"#,###\":var p=Wy(\"\"+l);return\"0\"!==p?c+p:\"\";default:if(t.match(/\\.[0#?]*$/))return rb(e,t.slice(0,t.lastIndexOf(\".\")),n)+Zy(t.slice(t.lastIndexOf(\".\")))}throw new Error(\"unsupported format |\"+t+\"|\")}function ib(e,t,n){return(0|n)===n?rb(e,t,n):tb(e,t,n)}var ob=/\\[[HhMmSs\\u0E0A\\u0E19\\u0E17]*\\]/;function ab(e){for(var t=0,n=\"\",r=\"\";t<e.length;)switch(n=e.charAt(t)){case\"G\":Oy(e,t)&&(t+=6),t++;break;case'\"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case\"\\\\\":case\"_\":t+=2;break;case\"@\":++t;break;case\"B\":case\"b\":if(\"1\"===e.charAt(t+1)||\"2\"===e.charAt(t+1))return!0;case\"M\":case\"D\":case\"Y\":case\"H\":case\"S\":case\"E\":case\"m\":case\"d\":case\"y\":case\"h\":case\"s\":case\"e\":case\"g\":return!0;case\"A\":case\"a\":case\"上\":if(\"A/P\"===e.substr(t,3).toUpperCase())return!0;if(\"AM/PM\"===e.substr(t,5).toUpperCase())return!0;if(\"上午/下午\"===e.substr(t,5).toUpperCase())return!0;++t;break;case\"[\":for(r=n;\"]\"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(ob))return!0;break;case\".\":case\"0\":case\"#\":for(;t<e.length&&(\"0#?.,E+-%\".indexOf(n=e.charAt(++t))>-1||\"\\\\\"==n&&\"-\"==e.charAt(t+1)&&\"0#\".indexOf(e.charAt(t+2))>-1););break;case\"?\":for(;e.charAt(++t)===n;);break;case\"*\":++t,\" \"!=e.charAt(t)&&\"*\"!=e.charAt(t)||++t;break;case\"(\":case\")\":++t;break;case\"1\":case\"2\":case\"3\":case\"4\":case\"5\":case\"6\":case\"7\":case\"8\":case\"9\":for(;t<e.length&&\"0123456789\".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var sb=/\\[(=|>[=]?|<[>=]?)(-?\\d+(?:\\.\\d*)?)\\]/;function lb(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case\"=\":if(e==n)return!0;break;case\">\":if(e>n)return!0;break;case\"<\":if(e<n)return!0;break;case\"<>\":if(e!=n)return!0;break;case\">=\":if(e>=n)return!0;break;case\"<=\":if(e<=n)return!0}return!1}function cb(e,t,n){null==n&&(n={});var r=\"\";switch(typeof e){case\"string\":r=\"m/d/yy\"==e&&n.dateNF?n.dateNF:e;break;case\"number\":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Ny)[e])&&(r=n.table&&n.table[Py[e]]||Ny[Py[e]]),null==r&&(r=Ly[e]||\"General\")}if(Oy(r,0))return jy(t,n);t instanceof Date&&(t=By(t,n.date1904));var i=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error(\"Format |\"+e+\"| unterminated string \");return t}(e),r=n.length,i=n[r-1].indexOf(\"@\");if(r<4&&i>-1&&--r,n.length>4)throw new Error(\"cannot find right format for |\"+n.join(\"|\")+\"|\");if(\"number\"!=typeof t)return[4,4===n.length||i>-1?n[n.length-1]:\"@\"];switch(n.length){case 1:n=i>-1?[\"General\",\"General\",\"General\",n[0]]:[n[0],n[0],n[0],\"@\"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],\"@\"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],\"@\"]}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf(\"[\")&&-1===n[1].indexOf(\"[\"))return[r,o];if(null!=n[0].match(/\\[[=<>]/)||null!=n[1].match(/\\[[=<>]/)){var a=n[0].match(sb),s=n[1].match(sb);return lb(t,a)?[r,n[0]]:lb(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}(r,t);if(Oy(i[1]))return jy(t,n);if(!0===t)t=\"TRUE\";else if(!1===t)t=\"FALSE\";else if(\"\"===t||null==t)return\"\";return function(e,t,n,r){for(var i,o,a,s=[],l=\"\",c=0,d=\"\",u=\"t\",h=\"H\";c<e.length;)switch(d=e.charAt(c)){case\"G\":if(!Oy(e,c))throw new Error(\"unrecognized character \"+d+\" in \"+e);s[s.length]={t:\"G\",v:\"General\"},c+=7;break;case'\"':for(l=\"\";34!==(a=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(a);s[s.length]={t:\"t\",v:l},++c;break;case\"\\\\\":var p=e.charAt(++c),g=\"(\"===p||\")\"===p?p:\"t\";s[s.length]={t:g,v:p},++c;break;case\"_\":s[s.length]={t:\"t\",v:\" \"},c+=2;break;case\"@\":s[s.length]={t:\"T\",v:t},++c;break;case\"B\":case\"b\":if(\"1\"===e.charAt(c+1)||\"2\"===e.charAt(c+1)){if(null==i&&null==(i=_y(t,n,\"2\"===e.charAt(c+1))))return\"\";s[s.length]={t:\"X\",v:e.substr(c,2)},u=d,c+=2;break}case\"M\":case\"D\":case\"Y\":case\"H\":case\"S\":case\"E\":d=d.toLowerCase();case\"m\":case\"d\":case\"y\":case\"h\":case\"s\":case\"e\":case\"g\":if(t<0)return\"\";if(null==i&&null==(i=_y(t,n)))return\"\";for(l=d;++c<e.length&&e.charAt(c).toLowerCase()===d;)l+=d;\"m\"===d&&\"h\"===u.toLowerCase()&&(d=\"M\"),\"h\"===d&&(d=h),s[s.length]={t:d,v:l},u=d;break;case\"A\":case\"a\":case\"上\":var f={t:d,v:d};if(null==i&&(i=_y(t,n)),\"A/P\"===e.substr(c,3).toUpperCase()?(null!=i&&(f.v=i.H>=12?\"P\":\"A\"),f.t=\"T\",h=\"h\",c+=3):\"AM/PM\"===e.substr(c,5).toUpperCase()?(null!=i&&(f.v=i.H>=12?\"PM\":\"AM\"),f.t=\"T\",c+=5,h=\"h\"):\"上午/下午\"===e.substr(c,5).toUpperCase()?(null!=i&&(f.v=i.H>=12?\"下午\":\"上午\"),f.t=\"T\",c+=5,h=\"h\"):(f.t=\"t\",++c),null==i&&\"T\"===f.t)return\"\";s[s.length]=f,u=d;break;case\"[\":for(l=d;\"]\"!==e.charAt(c++)&&c<e.length;)l+=e.charAt(c);if(\"]\"!==l.slice(-1))throw'unterminated \"[\" block: |'+l+\"|\";if(l.match(ob)){if(null==i&&null==(i=_y(t,n)))return\"\";s[s.length]={t:\"Z\",v:l.toLowerCase()},u=l.charAt(1)}else l.indexOf(\"$\")>-1&&(l=(l.match(/\\$([^-\\[\\]]*)/)||[])[1]||\"$\",ab(e)||(s[s.length]={t:\"t\",v:l}));break;case\".\":if(null!=i){for(l=d;++c<e.length&&\"0\"===(d=e.charAt(c));)l+=d;s[s.length]={t:\"s\",v:l};break}case\"0\":case\"#\":for(l=d;++c<e.length&&\"0#?.,E+-%\".indexOf(d=e.charAt(c))>-1;)l+=d;s[s.length]={t:\"n\",v:l};break;case\"?\":for(l=d;e.charAt(++c)===d;)l+=d;s[s.length]={t:d,v:l},u=d;break;case\"*\":++c,\" \"!=e.charAt(c)&&\"*\"!=e.charAt(c)||++c;break;case\"(\":case\")\":s[s.length]={t:1===r?\"t\":d,v:d},++c;break;case\"1\":case\"2\":case\"3\":case\"4\":case\"5\":case\"6\":case\"7\":case\"8\":case\"9\":for(l=d;c<e.length&&\"0123456789\".indexOf(e.charAt(++c))>-1;)l+=e.charAt(c);s[s.length]={t:\"D\",v:l};break;case\" \":s[s.length]={t:d,v:d},++c;break;case\"$\":s[s.length]={t:\"t\",v:\"$\"},++c;break;default:if(-1===\",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP\".indexOf(d))throw new Error(\"unrecognized character \"+d+\" in \"+e);s[s.length]={t:\"t\",v:d},++c}var m,v=0,y=0;for(c=s.length-1,u=\"t\";c>=0;--c)switch(s[c].t){case\"h\":case\"H\":s[c].t=h,u=\"h\",v<1&&(v=1);break;case\"s\":(m=s[c].v.match(/\\.0+$/))&&(y=Math.max(y,m[0].length-1)),v<3&&(v=3);case\"d\":case\"y\":case\"M\":case\"e\":u=s[c].t;break;case\"m\":\"s\"===u&&(s[c].t=\"M\",v<2&&(v=2));break;case\"X\":break;case\"Z\":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var b,w=\"\";for(c=0;c<s.length;++c)switch(s[c].t){case\"t\":case\"T\":case\" \":case\"D\":break;case\"X\":s[c].v=\"\",s[c].t=\";\";break;case\"d\":case\"m\":case\"y\":case\"h\":case\"H\":case\"M\":case\"s\":case\"e\":case\"b\":case\"Z\":s[c].v=Uy(s[c].t.charCodeAt(0),s[c].v,i,y),s[c].t=\"t\";break;case\"n\":case\"?\":for(b=c+1;null!=s[b]&&(\"?\"===(d=s[b].t)||\"D\"===d||(\" \"===d||\"t\"===d)&&null!=s[b+1]&&(\"?\"===s[b+1].t||\"t\"===s[b+1].t&&\"/\"===s[b+1].v)||\"(\"===s[c].t&&(\" \"===d||\"n\"===d||\")\"===d)||\"t\"===d&&(\"/\"===s[b].v||\" \"===s[b].v&&null!=s[b+1]&&\"?\"==s[b+1].t));)s[c].v+=s[b].v,s[b]={v:\"\",t:\";\"},++b;w+=s[c].v,c=b-1;break;case\"G\":s[c].t=\"t\",s[c].v=jy(t,n)}var C,S,E=\"\";if(w.length>0){40==w.charCodeAt(0)?(C=t<0&&45===w.charCodeAt(0)?-t:t,S=ib(\"n\",w,C)):(S=ib(\"n\",w,C=t<0&&r>1?-t:t),C<0&&s[0]&&\"t\"==s[0].t&&(S=S.substr(1),s[0].v=\"-\"+s[0].v)),b=S.length-1;var x=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&\"t\"!=s[c].t&&s[c].v.indexOf(\".\")>-1){x=c;break}var A=s.length;if(x===s.length&&-1===S.indexOf(\"E\")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!==\"n?\".indexOf(s[c].t)&&(b>=s[c].v.length-1?(b-=s[c].v.length,s[c].v=S.substr(b+1,s[c].v.length)):b<0?s[c].v=\"\":(s[c].v=S.substr(0,b+1),b=-1),s[c].t=\"t\",A=c);b>=0&&A<s.length&&(s[A].v=S.substr(0,b+1)+s[A].v)}else if(x!==s.length&&-1===S.indexOf(\"E\")){for(b=S.indexOf(\".\")-1,c=x;c>=0;--c)if(null!=s[c]&&-1!==\"n?\".indexOf(s[c].t)){for(o=s[c].v.indexOf(\".\")>-1&&c===x?s[c].v.indexOf(\".\")-1:s[c].v.length-1,E=s[c].v.substr(o+1);o>=0;--o)b>=0&&(\"0\"===s[c].v.charAt(o)||\"#\"===s[c].v.charAt(o))&&(E=S.charAt(b--)+E);s[c].v=E,s[c].t=\"t\",A=c}for(b>=0&&A<s.length&&(s[A].v=S.substr(0,b+1)+s[A].v),b=S.indexOf(\".\")+1,c=x;c<s.length;++c)if(null!=s[c]&&(-1!==\"n?(\".indexOf(s[c].t)||c===x)){for(o=s[c].v.indexOf(\".\")>-1&&c===x?s[c].v.indexOf(\".\")+1:0,E=s[c].v.substr(0,o);o<s[c].v.length;++o)b<S.length&&(E+=S.charAt(b++));s[c].v=E,s[c].t=\"t\",A=c}}}for(c=0;c<s.length;++c)null!=s[c]&&\"n?\".indexOf(s[c].t)>-1&&(C=r>1&&t<0&&c>0&&\"-\"===s[c-1].v?-t:t,s[c].v=ib(s[c].t,s[c].v,C),s[c].t=\"t\");var T=\"\";for(c=0;c!==s.length;++c)null!=s[c]&&(T+=s[c].v);return T}(i[1],t,n,i[0])}function db(e,t){if(\"number\"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=Ny[n]){if(Ny[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return Ny[t]=e,t}function ub(e){for(var t=0;392!=t;++t)void 0!==e[t]&&db(e[t],t)}function hb(){var e;e||(e={}),e[0]=\"General\",e[1]=\"0\",e[2]=\"0.00\",e[3]=\"#,##0\",e[4]=\"#,##0.00\",e[9]=\"0%\",e[10]=\"0.00%\",e[11]=\"0.00E+00\",e[12]=\"# ?/?\",e[13]=\"# ??/??\",e[14]=\"m/d/yy\",e[15]=\"d-mmm-yy\",e[16]=\"d-mmm\",e[17]=\"mmm-yy\",e[18]=\"h:mm AM/PM\",e[19]=\"h:mm:ss AM/PM\",e[20]=\"h:mm\",e[21]=\"h:mm:ss\",e[22]=\"m/d/yy h:mm\",e[37]=\"#,##0 ;(#,##0)\",e[38]=\"#,##0 ;[Red](#,##0)\",e[39]=\"#,##0.00;(#,##0.00)\",e[40]=\"#,##0.00;[Red](#,##0.00)\",e[45]=\"mm:ss\",e[46]=\"[h]:mm:ss\",e[47]=\"mmss.0\",e[48]=\"##0.0E+0\",e[49]=\"@\",e[56]='\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"',Ny=e}var pb=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,gb=function(){var e={version:\"1.2.0\"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return\"undefined\"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,i=\"undefined\"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]=\"undefined\"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}(t),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6],d=n[7],u=n[8],h=n[9],p=n[10],g=n[11],f=n[12],m=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var r=~n,i=0,o=e.length;i<o;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var y=~n,b=e.length-15,w=0;w<b;)y=v[e[w++]^255&y]^m[e[w++]^y>>8&255]^f[e[w++]^y>>16&255]^g[e[w++]^y>>>24]^p[e[w++]]^h[e[w++]]^u[e[w++]]^d[e[w++]]^c[e[w++]]^l[e[w++]]^s[e[w++]]^a[e[w++]]^o[e[w++]]^i[e[w++]]^r[e[w++]]^t[e[w++]];for(b+=15;w<b;)y=y>>>8^t[255&(y^e[w++])];return~y},e.str=function(e,n){for(var r=~n,i=0,o=e.length,a=0,s=0;i<o;)(a=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^a)]:a<2048?r=(r=r>>>8^t[255&(r^(192|a>>6&31))])>>>8^t[255&(r^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|a>>8&7))])>>>8^t[255&(r^(128|a>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&a)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|a>>12&15))])>>>8^t[255&(r^(128|a>>6&63))])>>>8^t[255&(r^(128|63&a))];return~r},e}(),fb=function(){var e,t={};function n(e){if(\"/\"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf(\"/\")?e:n(e.slice(0,-1));var t=e.lastIndexOf(\"/\");return-1===t?e:e.slice(0,t+1)}function r(e){if(\"/\"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf(\"/\");return-1===t?e:e.slice(t+1)}function i(e,t){\"string\"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function o(e){Hw(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};21589===r&&(1&(n=e.read_shift(1))&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime))),e.l=o,t[r]=a}return t}function a(){return e||(e={})}function s(e,t){if(80==e[0]&&75==e[1])return re(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if(\"mime-version:\"!=S(e.slice(0,13)).toLowerCase())throw new Error(\"Unsupported MAD header\");var n=t&&t.root||\"\",r=(gy&&Buffer.isBuffer(e)?e.toString(\"binary\"):S(e)).split(\"\\r\\n\"),i=0,o=\"\";for(i=0;i<r.length;++i)if(o=r[i],/^Content-Location:/i.test(o)&&(o=o.slice(o.indexOf(\"file\")),n||(n=o.slice(0,o.lastIndexOf(\"/\")+1)),o.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf(\"/\")+1),o.slice(0,n.length)!=n););var a=(r[1]||\"\").match(/boundary=\"(.*?)\"/);if(!a)throw new Error(\"MAD cannot find boundary\");var s=\"--\"+(a[1]||\"\"),l={FileIndex:[],FullPaths:[]};h(l);var c,d=0;for(i=0;i<r.length;++i){var u=r[i];u!==s&&u!==s+\"--\"||(d++&&ce(l,r.slice(c,i),n),c=i)}return l}(e,t);if(e.length<512)throw new Error(\"CFB file size \"+e.length+\" < 512\");var n,r,i,o,a,s,p=512,g=[],f=e.slice(0,512);Hw(f,0);var m=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(y,\"Header Signature: \"),e.l+=16;var t=e.read_shift(2,\"u\");return[e.read_shift(2,\"u\"),t]}(f);switch(n=m[0]){case 3:p=512;break;case 4:p=4096;break;case 0:if(0==m[1])return re(e,t);default:throw new Error(\"Major Version: Expected 3 or 4 saw \"+n)}512!==p&&Hw(f=e.slice(0,p),28);var b=e.slice(0,p);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error(\"Sector Shift: Expected 9 saw \"+n);break;case 12:if(4!=t)throw new Error(\"Sector Shift: Expected 12 saw \"+n);break;default:throw new Error(\"Sector Shift: Expected 9 or 12 saw \"+n)}e.chk(\"0600\",\"Mini Sector Shift: \"),e.chk(\"000000000000\",\"Reserved: \")}(f,n);var w=f.read_shift(4,\"i\");if(3===n&&0!==w)throw new Error(\"# Directory Sectors: Expected 0 saw \"+w);f.l+=4,o=f.read_shift(4,\"i\"),f.l+=4,f.chk(\"00100000\",\"Mini Stream Cutoff Size: \"),a=f.read_shift(4,\"i\"),r=f.read_shift(4,\"i\"),s=f.read_shift(4,\"i\"),i=f.read_shift(4,\"i\");for(var C=-1,E=0;E<109&&!((C=f.read_shift(4,\"i\"))<0);++E)g[E]=C;var x=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,p);c(s,i,x,p,g);var A=function(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,d=0,u=0,h=0,p=0;for(d=0;d<i;++d)if(s=[],(h=d+t)>=i&&(h-=i),!a[h]){l=[];var g=[];for(u=h;u>=0;){g[u]=!0,a[u]=!0,s[s.length]=u,l.push(e[u]);var f=n[Math.floor(4*u/r)];if(r<4+(p=4*u&c))throw new Error(\"FAT boundary crossed: \"+u+\" 4 \"+r);if(!e[f])break;if(g[u=Pw(e[f],p)])break}o[h]={nodes:s,data:dw([l])}}return o}(x,o,g,p);A[o].name=\"!Directory\",r>0&&a!==v&&(A[a].name=\"!MiniFAT\"),A[g[0]].name=\"!FAT\",A.fat_addrs=g,A.ssz=p;var T=[],D=[],R=[];!function(e,t,n,r,i,o,a,s){for(var c,h=0,p=r.length?2:0,g=t[e].data,f=0,m=0;f<g.length;f+=128){var y=g.slice(f,f+128);Hw(y,64),m=y.read_shift(2),c=hw(y,0,m-p),r.push(c);var b={name:c,type:y.read_shift(1),color:y.read_shift(1),L:y.read_shift(4,\"i\"),R:y.read_shift(4,\"i\"),C:y.read_shift(4,\"i\"),clsid:y.read_shift(16),state:y.read_shift(4,\"i\"),start:0,size:0};0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.ct=u(y,y.l-8)),0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(b.mt=u(y,y.l-8)),b.start=y.read_shift(4,\"i\"),b.size=y.read_shift(4,\"i\"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=v,b.name=\"\"),5===b.type?(h=b.start,i>0&&h!==v&&(t[h].name=\"!StreamData\")):b.size>=4096?(b.storage=\"fat\",void 0===t[b.start]&&(t[b.start]=d(n,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage=\"minifat\",b.size<0?b.size=0:h!==v&&b.start!==v&&t[h]&&(b.content=l(b,t[h].data,(t[s]||{}).data))),b.content&&Hw(b.content,0),o[c]=b,a.push(b)}}(o,A,x,T,r,{},D,a),function(e,t,n){for(var r=0,i=0,o=0,a=0,s=0,l=n.length,c=[],d=[];r<l;++r)c[r]=d[r]=r,t[r]=n[r];for(;s<d.length;++s)i=e[r=d[s]].L,o=e[r].R,a=e[r].C,c[r]===r&&(-1!==i&&c[i]!==i&&(c[r]=c[i]),-1!==o&&c[o]!==o&&(c[r]=c[o])),-1!==a&&(c[a]=r),-1!==i&&r!=c[r]&&(c[i]=c[r],d.lastIndexOf(i)<s&&d.push(i)),-1!==o&&r!=c[r]&&(c[o]=c[r],d.lastIndexOf(o)<s&&d.push(o));for(r=1;r<l;++r)c[r]===r&&(-1!==o&&c[o]!==o?c[r]=c[o]:-1!==i&&c[i]!==i&&(c[r]=c[i]));for(r=1;r<l;++r)if(0!==e[r].type){if((s=r)!=c[s])do{s=c[s],t[r]=t[s]+\"/\"+t[r]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[r]=-1}for(t[0]+=\"/\",r=1;r<l;++r)2!==e[r].type&&(t[r]+=\"/\")}(D,R,T),T.shift();var M={FileIndex:D,FullPaths:R};return t&&t.raw&&(M.raw={header:b,sectors:x}),M}function l(e,t,n){for(var r=e.start,i=e.size,o=[],a=r;n&&i>0&&a>=0;)o.push(t.slice(a*m,a*m+m)),i-=m,a=Pw(n,4*a);return 0===o.length?Uw(0):Cy(o).slice(0,e.size)}function c(e,t,n,r,i){var o=v;if(e===v){if(0!==t)throw new Error(\"DIFAT chain shorter than expected\")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l<s&&(o=Pw(a,4*l))!==v;++l)i.push(o);c(Pw(a,r-4),t-1,n,r,i)}}function d(e,t,n,r,i){var o=[],a=[];i||(i=[]);var s=r-1,l=0,c=0;for(l=t;l>=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var d=n[Math.floor(4*l/r)];if(r<4+(c=4*l&s))throw new Error(\"FAT boundary crossed: \"+l+\" 4 \"+r);if(!e[d])break;l=Pw(e[d],c)}return{nodes:o,data:dw([a])}}function u(e,t){return new Date(1e3*(Nw(e,t+4)/1e7*Math.pow(2,32)+Nw(e,t)/1e7-11644473600))}function h(e,t){var n=t||{},r=n.root||\"Root Entry\";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error(\"inconsistent CFB structure\");0===e.FullPaths.length&&(e.FullPaths[0]=r+\"/\",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t=\"\u0001Sh33tJ5\";if(!fb.find(e,\"/\"+t)){var n=Uw(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),p(e)}}(e)}function p(e,t){h(e);for(var i=!1,o=!1,a=e.FullPaths.length-1;a>=0;--a){var s=e.FileIndex[a];switch(s.type){case 0:o?i=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:o=!0,isNaN(s.R*s.L*s.C)&&(i=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(i=!0);break;default:i=!0}}if(i||t){var l=new Date(1987,1,19),c=0,d=Object.create?Object.create(null):{},u=[];for(a=0;a<e.FullPaths.length;++a)d[e.FullPaths[a]]=!0,0!==e.FileIndex[a].type&&u.push([e.FullPaths[a],e.FileIndex[a]]);for(a=0;a<u.length;++a){var p=n(u[a][0]);(o=d[p])||(u.push([p,{name:r(p).replace(\"/\",\"\"),type:1,clsid:w,ct:l,mt:l,content:null}]),d[p]=!0)}for(u.sort((function(e,t){return function(e,t){for(var n=e.split(\"/\"),r=t.split(\"/\"),i=0,o=0,a=Math.min(n.length,r.length);i<a;++i){if(o=n[i].length-r[i].length)return o;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],a=0;a<u.length;++a)e.FullPaths[a]=u[a][0],e.FileIndex[a]=u[a][1];for(a=0;a<u.length;++a){var g=e.FileIndex[a],f=e.FullPaths[a];if(g.name=r(f).replace(\"/\",\"\"),g.L=g.R=g.C=-(g.color=1),g.size=g.content?g.content.length:0,g.start=0,g.clsid=g.clsid||w,0===a)g.C=u.length>1?1:-1,g.size=0,g.type=5;else if(\"/\"==f.slice(-1)){for(c=a+1;c<u.length&&n(e.FullPaths[c])!=f;++c);for(g.C=c>=u.length?-1:c,c=a+1;c<u.length&&n(e.FullPaths[c])!=n(f);++c);g.R=c>=u.length?-1:c,g.type=1}else n(e.FullPaths[a+1]||\"\")==n(f)&&(g.R=a+1),g.type=2}}}function g(e,t){var n=t||{};if(\"mad\"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||\"SheetJS\",i=[\"MIME-Version: 1.0\",'Content-Type: multipart/related; boundary=\"'+(r=\"------=\"+r).slice(2)+'\"',\"\",\"\",\"\"],o=e.FullPaths[0],a=o,s=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(a=e.FullPaths[l].slice(o.length),(s=e.FileIndex[l]).size&&s.content&&\"\u0001Sh33tJ5\"!=a){a=a.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF]/g,(function(e){return\"_x\"+e.charCodeAt(0).toString(16)+\"_\"})).replace(/[\\u0080-\\uFFFF]/g,(function(e){return\"_u\"+e.charCodeAt(0).toString(16)+\"_\"}));for(var c=s.content,d=gy&&Buffer.isBuffer(c)?c.toString(\"binary\"):S(c),u=0,h=Math.min(1024,d.length),p=0,g=0;g<=h;++g)(p=d.charCodeAt(g))>=32&&p<128&&++u;var f=u>=4*h/5;i.push(r),i.push(\"Content-Location: \"+(n.root||\"file:///C:/SheetJS/\")+a),i.push(\"Content-Transfer-Encoding: \"+(f?\"quoted-printable\":\"base64\")),i.push(\"Content-Type: \"+ae(s,a)),i.push(\"\"),i.push(f?le(d):se(d))}return i.push(r+\"--\\r\\n\"),i.join(\"\\r\\n\")}(e,n);if(p(e),\"zip\"===n.fileType)return function(e,t){var n,r=t||{},o=[],a=[],s=Uw(1),l=r.compression?8:0,c=0,d=0,u=0,h=0,p=e.FullPaths[0],g=p,m=e.FileIndex[0],v=[],y=0;for(c=1;c<e.FullPaths.length;++c)if(g=e.FullPaths[c].slice(p.length),(m=e.FileIndex[c]).size&&m.content&&\"\u0001Sh33tJ5\"!=g){var b=u,w=Uw(g.length);for(d=0;d<g.length;++d)w.write_shift(1,127&g.charCodeAt(d));w=w.slice(0,w.l),v[h]=gb.buf(m.content,0);var C=m.content;8==l&&(n=C,C=f?f.deflateRawSync(n):K(n)),(s=Uw(30)).write_shift(4,67324752),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,l),m.mt?i(s,m.mt):s.write_shift(4,0),s.write_shift(-4,v[h]),s.write_shift(4,C.length),s.write_shift(4,m.content.length),s.write_shift(2,w.length),s.write_shift(2,0),u+=s.length,o.push(s),u+=w.length,o.push(w),u+=C.length,o.push(C),(s=Uw(46)).write_shift(4,33639248),s.write_shift(2,0),s.write_shift(2,20),s.write_shift(2,0),s.write_shift(2,l),s.write_shift(4,0),s.write_shift(-4,v[h]),s.write_shift(4,C.length),s.write_shift(4,m.content.length),s.write_shift(2,w.length),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(4,0),s.write_shift(4,b),y+=s.l,a.push(s),y+=w.length,a.push(w),++h}return(s=Uw(22)).write_shift(4,101010256),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,h),s.write_shift(2,h),s.write_shift(4,y),s.write_shift(4,u),s.write_shift(2,0),Cy([Cy(o),Cy(a),s])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var o=i.content.length;o>0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}for(var a=e.FullPaths.length+3>>2,s=t+127>>7,l=(t+7>>3)+n+a+s,c=l+127>>7,d=c<=109?0:Math.ceil((c-109)/127);l+c+d+127>>7>c;)d=++c<=109?0:Math.ceil((c-109)/127);var u=[1,d,c,s,a,n,t,0];return e.FileIndex[0].size=t<<6,u[7]=(e.FileIndex[0].start=u[0]+u[1]+u[2]+u[3]+u[4]+u[5])+(u[6]+7>>3),u}(e),o=Uw(r[7]<<9),a=0,s=0;for(a=0;a<8;++a)o.write_shift(1,b[a]);for(a=0;a<8;++a)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),a=0;a<3;++a)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,r[2]),o.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:v),o.write_shift(4,r[3]),o.write_shift(-4,r[1]?r[0]-1:v),o.write_shift(4,r[1]),a=0;a<109;++a)o.write_shift(-4,a<r[2]?r[1]+a:-1);if(r[1])for(s=0;s<r[1];++s){for(;a<236+127*s;++a)o.write_shift(-4,a<r[2]?r[1]+a:-1);o.write_shift(-4,s===r[1]-1?v:s+1)}var l=function(e){for(s+=e;a<s-1;++a)o.write_shift(-4,a+1);e&&(++a,o.write_shift(-4,v))};for(s=a=0,s+=r[1];a<s;++a)o.write_shift(-4,C.DIFSECT);for(s+=r[2];a<s;++a)o.write_shift(-4,C.FATSECT);l(r[3]),l(r[4]);for(var c=0,d=0,u=e.FileIndex[0];c<e.FileIndex.length;++c)(u=e.FileIndex[c]).content&&((d=u.content.length)<4096||(u.start=s,l(d+511>>9)));for(l(r[6]+7>>3);511&o.l;)o.write_shift(-4,C.ENDOFCHAIN);for(s=a=0,c=0;c<e.FileIndex.length;++c)(u=e.FileIndex[c]).content&&(!(d=u.content.length)||d>=4096||(u.start=s,l(d+63>>6)));for(;511&o.l;)o.write_shift(-4,C.ENDOFCHAIN);for(a=0;a<r[4]<<2;++a){var h=e.FullPaths[a];if(h&&0!==h.length){u=e.FileIndex[a],0===a&&(u.start=u.size?u.start-1:v);var g=0===a&&n.root||u.name;if(d=2*(g.length+1),o.write_shift(64,g,\"utf16le\"),o.write_shift(2,d),o.write_shift(1,u.type),o.write_shift(1,u.color),o.write_shift(-4,u.L),o.write_shift(-4,u.R),o.write_shift(-4,u.C),u.clsid)o.write_shift(16,u.clsid,\"hex\");else for(c=0;c<4;++c)o.write_shift(4,0);o.write_shift(4,u.state||0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,u.start),o.write_shift(4,u.size),o.write_shift(4,0)}else{for(c=0;c<17;++c)o.write_shift(4,0);for(c=0;c<3;++c)o.write_shift(4,-1);for(c=0;c<12;++c)o.write_shift(4,0)}}for(a=1;a<e.FileIndex.length;++a)if((u=e.FileIndex[a]).size>=4096)if(o.l=u.start+1<<9,gy&&Buffer.isBuffer(u.content))u.content.copy(o,o.l,0,u.size),o.l+=u.size+511&-512;else{for(c=0;c<u.size;++c)o.write_shift(1,u.content[c]);for(;511&c;++c)o.write_shift(1,0)}for(a=1;a<e.FileIndex.length;++a)if((u=e.FileIndex[a]).size>0&&u.size<4096)if(gy&&Buffer.isBuffer(u.content))u.content.copy(o,o.l,0,u.size),o.l+=u.size+63&-64;else{for(c=0;c<u.size;++c)o.write_shift(1,u.content[c]);for(;63&c;++c)o.write_shift(1,0)}if(gy)o.l=o.length;else for(;o.l<o.length;)o.write_shift(1,0);return o}t.version=\"1.2.1\";var f,m=64,v=-2,y=\"d0cf11e0a1b11ae1\",b=[208,207,17,224,161,177,26,225],w=\"00000000000000000000000000000000\",C={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:v,FREESECT:-1,HEADER_SIGNATURE:y,HEADER_MINOR_VERSION:\"3e00\",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:[\"unknown\",\"storage\",\"stream\",\"lockbytes\",\"property\",\"root\"]};function S(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join(\"\")}for(var E,x,A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],D=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],R=\"undefined\"!=typeof Uint8Array,M=R?new Uint8Array(256):[],O=0;O<256;++O)M[O]=(void 0,255&((x=139536&((E=O)<<1|E<<11)|558144&(E<<5|E<<15))>>16|x>>8|x));function k(e,t){var n=M[255&e];return t<=8?n>>>8-t:(n=n<<8|M[e>>8&255],t<=16?n>>>16-t:(n=n<<8|M[e>>16&255])>>>24-t)}function I(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function N(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function P(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function L(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function F(e,t,n){var r=7&t,i=t>>>3,o=(1<<n)-1,a=e[i]>>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r?a&o:(a|=e[i+3]<<24-r)&o))}function _(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<<r:(e[i]|=n<<r&255,e[i+1]=(7&n)>>8-r),t+3}function z(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function G(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function V(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function B(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(gy){var o=vy(r);if(e.copy)e.copy(o);else for(;i<e.length;++i)o[i]=e[i];return o}if(R){var a=new Uint8Array(r);if(a.set)a.set(e);else for(;i<n;++i)a[i]=e[i];return a}return e.length=r,e}function H(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function j(e,t,n){var r=1,i=0,o=0,a=0,s=0,l=e.length,c=R?new Uint16Array(32):H(32);for(o=0;o<32;++o)c[o]=0;for(o=l;o<n;++o)e[o]=0;l=e.length;var d=R?new Uint16Array(l):H(l);for(o=0;o<l;++o)c[i=e[o]]++,r<i&&(r=i),d[o]=0;for(c[0]=0,o=1;o<=r;++o)c[o+16]=s=s+c[o-1]<<1;for(o=0;o<l;++o)0!=(s=e[o])&&(d[o]=c[s+16]++);var u=0;for(o=0;o<l;++o)if(0!=(u=e[o]))for(s=k(d[o],r)>>r-u,a=(1<<r+4-u)-1;a>=0;--a)t[s|a<<u]=15&u|o<<4;return r}var U=R?new Uint16Array(512):H(512),W=R?new Uint16Array(32):H(32);if(!R){for(var $=0;$<512;++$)U[$]=0;for($=0;$<32;++$)W[$]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);j(e,W,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);j(n,U,288)}();var Y=function(){for(var e=R?new Uint8Array(32768):[],t=0,n=0;t<D.length-1;++t)for(;n<D[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=R?new Uint8Array(259):[];for(t=0,n=0;t<T.length-1;++t)for(;n<T[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),i=n+r==e.length;for(t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var i=0,o=0,a=R?new Uint16Array(32768):[];o<t.length;){var s=Math.min(65535,t.length-o);if(s<10){for(7&(i=_(n,i,+!(o+s!=t.length)))&&(i+=8-(7&i)),n.l=i/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=t[o++];i=8*n.l}else{i=_(n,i,+!(o+s!=t.length)+2);for(var l=0;s-- >0;){var c=t[o],d=-1,u=0;if((d=a[l=32767&(l<<5^c)])&&((d|=-32768&o)>o&&(d-=32768),d<o))for(;t[d+u]==t[o+u]&&u<250;)++u;if(u>2){(c=r[u])<=22?i=G(n,i,M[c+1]>>1)-1:(G(n,i,3),G(n,i+=5,M[c-23]>>5),i+=3);var h=c<8?0:c-4>>2;h>0&&(V(n,i,u-T[c]),i+=h),c=e[o-d],i=G(n,i,M[c]>>3),i-=3;var p=c<4?0:c-2>>1;p>0&&(V(n,i,o-d-D[c]),i+=p);for(var g=0;g<u;++g)a[l]=32767&o,l=32767&(l<<5^t[o]),++o;s-=u-1}else c<=143?c+=48:i=z(n,i,1),i=G(n,i,M[c]),a[l]=32767&o,++o}i=G(n,i,0)-1}}return n.l=(i+7)/8|0,n.l}(t,n)}}();function K(e){var t=Uw(50+Math.floor(1.1*e.length)),n=Y(e,t);return t.slice(0,n)}var q=R?new Uint16Array(32768):H(32768),Q=R?new Uint16Array(32768):H(32768),X=R?new Uint16Array(128):H(128),Z=1,J=1;function ee(e,t){var n=P(e,t)+257,r=P(e,t+=5)+1,i=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var o=0,a=R?new Uint8Array(19):H(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=R?new Uint8Array(8):H(8),d=R?new Uint8Array(8):H(8),u=a.length,h=0;h<i;++h)a[A[h]]=o=N(e,t),l<o&&(l=o),c[o]++,t+=3;var p=0;for(c[0]=0,h=1;h<=l;++h)d[h]=p=p+c[h-1]<<1;for(h=0;h<u;++h)0!=(p=a[h])&&(s[h]=d[p]++);var g=0;for(h=0;h<u;++h)if(0!=(g=a[h])){p=M[s[h]]>>8-g;for(var f=(1<<7-g)-1;f>=0;--f)X[p|f<<g]=7&g|h<<3}var m=[];for(l=1;m.length<n+r;)switch(t+=7&(p=X[L(e,t)]),p>>>=3){case 16:for(o=3+I(e,t),t+=2,p=m[m.length-1];o-- >0;)m.push(p);break;case 17:for(o=3+N(e,t),t+=3;o-- >0;)m.push(0);break;case 18:for(o=11+L(e,t),t+=7;o-- >0;)m.push(0);break;default:m.push(p),l<p&&(l=p)}var v=m.slice(0,n),y=m.slice(n);for(h=n;h<286;++h)v[h]=0;for(h=r;h<30;++h)y[h]=0;return Z=j(v,q,286),J=j(y,Q,30),t}function te(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[my(t),2];for(var n=0,r=0,i=vy(t||1<<18),o=0,a=i.length>>>0,s=0,l=0;!(1&r);)if(r=N(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=ee(e,n),s=Z,l=J);;){!t&&a<o+32767&&(a=(i=B(i,o+32767)).length);var c=F(e,n,s),d=r>>>1==1?U[c]:q[c];if(n+=15&d,(d>>>=4)>>>8&255){if(256==d)break;var u=(d-=257)<8?0:d-4>>2;u>5&&(u=0);var h=o+T[d];u>0&&(h+=F(e,n,u),n+=u),c=F(e,n,l),n+=15&(d=r>>>1==1?W[c]:Q[c]);var p=(d>>>=4)<4?0:d-2>>1,g=D[d];for(p>0&&(g+=F(e,n,p),n+=p),!t&&a<h&&(a=(i=B(i,h+100)).length);o<h;)i[o]=i[o-g],++o}else i[o++]=d}else{7&n&&(n+=8-(7&n));var f=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,f>0)for(!t&&a<o+f&&(a=(i=B(i,o+f)).length);f-- >0;)i[o++]=e[n>>>3],n+=8}return t?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function ne(e,t){if(!e)throw new Error(t);\"undefined\"!=typeof console&&console.error(t)}function re(e,t){var n=e;Hw(n,0);var r={FileIndex:[],FullPaths:[]};h(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var a=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,i=0;i<a;++i){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),d=n.read_shift(2),u=n.read_shift(2),p=n.read_shift(2);n.l+=8;var g=n.read_shift(4),f=o(n.slice(n.l+d,n.l+d+u));n.l+=d+u+p;var m=n.l;n.l=g+4,ie(n,l,c,r,f),n.l=m}return r}function ie(e,t,n,r,i){e.l+=2;var a=e.read_shift(2),s=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n,o=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t,s=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}(e);if(8257&a)throw new Error(\"Unsupported ZIP encryption\");e.read_shift(4);for(var c=e.read_shift(4),d=e.read_shift(4),u=e.read_shift(2),h=e.read_shift(2),p=\"\",g=0;g<u;++g)p+=String.fromCharCode(e[e.l++]);if(h){var m=o(e.slice(e.l,e.l+h));(m[21589]||{}).mt&&(l=m[21589].mt),((i||{})[21589]||{}).mt&&(l=i[21589].mt)}e.l+=h;var v=e.slice(e.l,e.l+c);switch(s){case 8:v=function(e,t){if(!f)return te(e,t);var n=new(0,f.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,d);break;case 0:break;default:throw new Error(\"Unsupported ZIP Compression method \"+s)}var y=!1;8&a&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),c=e.read_shift(4),d=e.read_shift(4)),c!=t&&ne(y,\"Bad compressed size: \"+t+\" != \"+c),d!=n&&ne(y,\"Bad uncompressed size: \"+n+\" != \"+d),de(r,p,v,{unsafe:!0,mt:l})}var oe={htm:\"text/html\",xml:\"text/xml\",gif:\"image/gif\",jpg:\"image/jpeg\",png:\"image/png\",mso:\"application/x-mso\",thmx:\"application/vnd.ms-officetheme\",sh33tj5:\"application/octet-stream\"};function ae(e,t){if(e.ctype)return e.ctype;var n=e.name||\"\",r=n.match(/\\.([^\\.]+)$/);return r&&oe[r[1]]||t&&(r=(n=t).match(/[\\.\\\\]([^\\.\\\\])+$/))&&oe[r[1]]?oe[r[1]]:\"application/octet-stream\"}function se(e){for(var t=hy(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join(\"\\r\\n\")+\"\\r\\n\"}function le(e){var t=e.replace(/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7E-\\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return\"=\"+(1==t.length?\"0\"+t:t)}));\"\\n\"==(t=t.replace(/ $/gm,\"=20\").replace(/\\t$/gm,\"=09\")).charAt(0)&&(t=\"=0D\"+t.slice(1));for(var n=[],r=(t=t.replace(/\\r(?!\\n)/gm,\"=0D\").replace(/\\n\\n/gm,\"\\n=0A\").replace(/([^\\r\\n])\\n/gm,\"$1=0A\")).split(\"\\r\\n\"),i=0;i<r.length;++i){var o=r[i];if(0!=o.length)for(var a=0;a<o.length;){var s=76,l=o.slice(a,a+s);\"=\"==l.charAt(s-1)?s--:\"=\"==l.charAt(s-2)?s-=2:\"=\"==l.charAt(s-3)&&(s-=3),l=o.slice(a,a+s),(a+=s)<o.length&&(l+=\"=\"),n.push(l)}else n.push(\"\")}return n.join(\"\\r\\n\")}function ce(e,t,n){for(var r,i=\"\",o=\"\",a=\"\",s=0;s<10;++s){var l=t[s];if(!l||l.match(/^\\s*$/))break;var c=l.match(/^(.*?):\\s*([^\\s].*)$/);if(c)switch(c[1].toLowerCase()){case\"content-location\":i=c[2].trim();break;case\"content-type\":a=c[2].trim();break;case\"content-transfer-encoding\":o=c[2].trim()}}switch(++s,o.toLowerCase()){case\"base64\":r=yy(py(t.slice(s).join(\"\")));break;case\"quoted-printable\":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&\"=\"==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var i=0;i<t.length;++i)t[i]=t[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return yy(t.join(\"\\r\\n\"))}(t.slice(s));break;default:throw new Error(\"Unsupported Content-Transfer-Encoding \"+o)}var d=de(e,i.slice(n.length),r,{unsafe:!0});a&&(d.ctype=a)}function de(e,t,n,i){var o=i&&i.unsafe;o||h(e);var a=!o&&fb.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:(\"/\"!=s.slice(-1)&&(s+=\"/\"),s=(s+t).replace(\"//\",\"/\")),a={name:r(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),o||fb.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,i&&(i.CLSID&&(a.clsid=i.CLSID),i.mt&&(a.mt=i.mt),i.ct&&(a.ct=i.ct)),a}return t.find=function(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split(\"/\");return t[t.length-(\"/\"==e.slice(-1)?2:1)]})),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf(\"/\");var o=t.toUpperCase(),a=!0===i?n.indexOf(o):r.indexOf(o);if(-1!==a)return e.FileIndex[a];var s=!o.match(Ey);for(o=o.replace(Sy,\"\"),s&&(o=o.replace(Ey,\"!\")),a=0;a<n.length;++a){if((s?n[a].replace(Ey,\"!\"):n[a]).replace(Sy,\"\")==o)return e.FileIndex[a];if((s?r[a].replace(Ey,\"!\"):r[a]).replace(Sy,\"\")==o)return e.FileIndex[a]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||gy&&Buffer.isBuffer(t)&&(r=\"buffer\"),r||\"base64\"){case\"file\":return function(t,n){return a(),s(e.readFileSync(t),n)}(t,n);case\"base64\":return s(yy(py(t)),n);case\"binary\":return s(yy(t),n)}return s(t,n)},t.parse=s,t.write=function(t,n){var r=g(t,n);switch(n&&n.type||\"buffer\"){case\"file\":return a(),e.writeFileSync(n.filename,r),r;case\"binary\":return\"string\"==typeof r?r:S(r);case\"base64\":return hy(\"string\"==typeof r?r:S(r));case\"buffer\":if(gy)return Buffer.isBuffer(r)?r:fy(r);case\"array\":return\"string\"==typeof r?yy(r):r}return r},t.writeFile=function(t,n,r){a();var i=g(t,r);e.writeFileSync(n,i)},t.utils={cfb_new:function(e){var t={};return h(t,e),t},cfb_add:de,cfb_del:function(e,t){h(e);var n=fb.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){h(e);var i=fb.find(e,t);if(i)for(var o=0;o<e.FileIndex.length;++o)if(e.FileIndex[o]==i)return e.FileIndex[o].name=r(n),e.FullPaths[o]=n,!0;return!1},cfb_gc:function(e){p(e,!0)},ReadShift:Fw,CheckField:Bw,prep_blob:Hw,bconcat:Cy,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error(\"zlib does not expose bytesRead\");f=e}catch(e){console.error(\"cannot use native zlib: \"+(e.message||e))}},_deflateRaw:K,_inflateRaw:te,consts:C},t}();let mb;function vb(e){return\"string\"==typeof e?by(e):Array.isArray(e)?function(e){if(\"undefined\"==typeof Uint8Array)throw new Error(\"Unsupported\");return new Uint8Array(e)}(e):e}function yb(e,t,n){if(void 0!==mb&&mb.writeFileSync)return n?mb.writeFileSync(e,t,n):mb.writeFileSync(e,t);if(\"undefined\"!=typeof Deno){if(n&&\"string\"==typeof t)switch(n){case\"utf8\":t=new TextEncoder(n).encode(t);break;case\"binary\":t=by(t);break;default:throw new Error(\"Unsupported encoding \"+n)}return Deno.writeFileSync(e,t)}var r=\"utf8\"==n?Jb(t):t;if(\"undefined\"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if(\"undefined\"!=typeof Blob){var i=new Blob([vb(r)],{type:\"application/octet-stream\"});if(\"undefined\"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(\"undefined\"!=typeof saveAs)return saveAs(i,e);if(\"undefined\"!=typeof URL&&\"undefined\"!=typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if(\"object\"==typeof chrome&&\"function\"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&\"undefined\"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement(\"a\");if(null!=a.download)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&\"undefined\"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}}if(\"undefined\"!=typeof $&&\"undefined\"!=typeof File&&\"undefined\"!=typeof Folder)try{var s=File(e);return s.open(\"w\"),s.encoding=\"binary\",Array.isArray(t)&&(t=wy(t)),s.write(t),s.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error(\"cannot save file \"+e)}function bb(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function wb(e,t){for(var n=[],r=bb(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function Cb(e){for(var t=[],n=bb(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function Sb(e){for(var t=[],n=bb(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}var Eb=new Date(1899,11,30,0,0,0);function xb(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(Eb.getTime()+6e4*(e.getTimezoneOffset()-Eb.getTimezoneOffset())))/864e5}var Ab=new Date,Tb=Eb.getTime()+6e4*(Ab.getTimezoneOffset()-Eb.getTimezoneOffset()),Db=Ab.getTimezoneOffset();function Rb(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Tb),t.getTimezoneOffset()!==Db&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-Db)),t}var Mb=new Date(\"2017-02-19T19:06:09.000Z\"),Ob=isNaN(Mb.getFullYear())?new Date(\"2/19/17\"):Mb,kb=2017==Ob.getFullYear();function Ib(e,t){var n=new Date(e);if(kb)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==Ob.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(\"\"+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\\d+/g)||[\"2017\",\"2\",\"19\",\"0\",\"0\",\"0\"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf(\"Z\")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Nb(e,t){if(gy&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Jb(e.slice(2).toString(\"utf16le\"));if(254==e[1]&&255==e[2])return Jb(function(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join(\"\")}(e.slice(2).toString(\"binary\")))}return e.toString(\"binary\")}if(\"undefined\"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Jb(new TextDecoder(\"utf-16le\").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Jb(new TextDecoder(\"utf-16be\").decode(e.slice(2)))}var n={\"€\":\"\",\"‚\":\"\",ƒ:\"\",\"„\":\"\",\"…\":\"\",\"†\":\"\",\"‡\":\"\",ˆ:\"\",\"‰\":\"\",Š:\"\",\"‹\":\"\",Œ:\"\",Ž:\"\",\"‘\":\"\",\"’\":\"\",\"“\":\"\",\"”\":\"\",\"•\":\"\",\"–\":\"\",\"—\":\"\",\"˜\":\"\",\"™\":\"\",š:\"\",\"›\":\"\",œ:\"\",ž:\"\",Ÿ:\"\"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder(\"latin1\").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join(\"\")}function Pb(e){if(\"undefined\"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(\"object\"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Pb(e[n]));return t}function Lb(e,t){for(var n=\"\";n.length<t;)n+=e;return n}function Fb(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\\d/.test(e))return t;var n=1,r=e.replace(/([\\d]),([\\d])/g,\"$1$2\").replace(/[$]/g,\"\").replace(/[%]/g,(function(){return n*=100,\"\"}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}var _b=[\"january\",\"february\",\"march\",\"april\",\"may\",\"june\",\"july\",\"august\",\"september\",\"october\",\"november\",\"december\"];function zb(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),o=t.getDate();if(isNaN(o))return n;var a=e.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((a=a.replace(/[^a-z]/g,\"\").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,\"\")).length>3&&-1==_b.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||o>1)&&101!=r?t:e.match(/[^-0-9:,\\/\\\\]/)?n:t}function Gb(e,t,n){if(e.FullPaths){var r;if(\"string\"==typeof n)return r=gy?fy(n):function(e){for(var t=[],n=0,r=e.length+250,i=my(e.length+255),o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a<128)i[n++]=a;else if(a<2048)i[n++]=192|a>>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(t.push(i.slice(0,n)),n=0,i=my(65535),r=65530)}return t.push(i.slice(0,n)),Cy(t)}(n),fb.utils.cfb_add(e,t,r);fb.utils.cfb_add(e,t,n)}else e.file(t,n)}function Vb(){return fb.utils.cfb_new()}var Bb='<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\\r\\n',Hb=Cb({\"&quot;\":'\"',\"&apos;\":\"'\",\"&gt;\":\">\",\"&lt;\":\"<\",\"&amp;\":\"&\"}),jb=/[&<>'\"]/g,Ub=/[\\u0000-\\u0008\\u000b-\\u001f]/g;function Wb(e){return(e+\"\").replace(jb,(function(e){return Hb[e]})).replace(Ub,(function(e){return\"_x\"+(\"000\"+e.charCodeAt(0).toString(16)).slice(-4)+\"_\"}))}function $b(e){return Wb(e).replace(/ /g,\"_x0020_\")}var Yb=/[\\u0000-\\u001f]/g;function Kb(e){for(var t=\"\",n=0,r=0,i=0,o=0,a=0,s=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&(a=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function qb(e){var t,n,r,i=my(2*e.length),o=1,a=0,s=0;for(n=0;n<e.length;n+=o)o=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),o=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),o=3):(o=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=t%256,i[a++]=t>>>8;return i.slice(0,a).toString(\"ucs2\")}function Qb(e){return fy(e,\"binary\").toString(\"utf8\")}var Xb=\"foo bar bazâð£\",Zb=gy&&(Qb(Xb)==Kb(Xb)&&Qb||qb(Xb)==Kb(Xb)&&qb)||Kb,Jb=gy?function(e){return fy(e,\"utf8\").toString(\"binary\")}:function(e){for(var t=[],n=0,r=0,i=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join(\"\")},ew=function(){var e=[[\"nbsp\",\" \"],[\"middot\",\"·\"],[\"quot\",'\"'],[\"apos\",\"'\"],[\"gt\",\">\"],[\"lt\",\"<\"],[\"amp\",\"&\"]].map((function(e){return[new RegExp(\"&\"+e[0]+\";\",\"ig\"),e[1]]}));return function(t){for(var n=t.replace(/^[\\t\\n\\r ]+/,\"\").replace(/[\\t\\n\\r ]+$/,\"\").replace(/>\\s+/g,\">\").replace(/\\s+</g,\"<\").replace(/[\\t\\n\\r ]+/g,\" \").replace(/<\\s*[bB][rR]\\s*\\/?>/g,\"\\n\").replace(/<[^>]*>/g,\"\"),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),tw=/(^\\s|\\s$|\\n)/;function nw(e,t){return\"<\"+e+(t.match(tw)?' xml:space=\"preserve\"':\"\")+\">\"+t+\"</\"+e+\">\"}function rw(e){return bb(e).map((function(t){return\" \"+t+'=\"'+e[t]+'\"'})).join(\"\")}function iw(e,t,n){return\"<\"+e+(null!=n?rw(n):\"\")+(null!=t?(t.match(tw)?' xml:space=\"preserve\"':\"\")+\">\"+t+\"</\"+e:\"/\")+\">\"}function ow(e,t){try{return e.toISOString().replace(/\\.\\d*/,\"\")}catch(e){if(t)throw e}return\"\"}var aw={CORE_PROPS:\"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\",CUST_PROPS:\"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties\",EXT_PROPS:\"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties\",CT:\"http://schemas.openxmlformats.org/package/2006/content-types\",RELS:\"http://schemas.openxmlformats.org/package/2006/relationships\",TCMNT:\"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments\",dc:\"http://purl.org/dc/elements/1.1/\",dcterms:\"http://purl.org/dc/terms/\",dcmitype:\"http://purl.org/dc/dcmitype/\",mx:\"http://schemas.microsoft.com/office/mac/excel/2008/main\",r:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",sjs:\"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties\",vt:\"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes\",xsi:\"http://www.w3.org/2001/XMLSchema-instance\",xsd:\"http://www.w3.org/2001/XMLSchema\"},sw=[\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\",\"http://purl.oclc.org/ooxml/spreadsheetml/main\",\"http://schemas.microsoft.com/office/excel/2006/main\",\"http://schemas.microsoft.com/office/excel/2006/2\"],lw={o:\"urn:schemas-microsoft-com:office:office\",x:\"urn:schemas-microsoft-com:office:excel\",ss:\"urn:schemas-microsoft-com:office:spreadsheet\",dt:\"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882\",mv:\"http://macVmlSchemaUri\",v:\"urn:schemas-microsoft-com:vml\",html:\"http://www.w3.org/TR/REC-html40\"},cw=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,i=e[0][n].length;r<i;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},dw=gy?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:fy(e)}))):cw(e)}:cw,uw=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(kw(e,i)));return r.join(\"\").replace(Sy,\"\")},hw=gy?function(e,t,n){return Buffer.isBuffer(e)?e.toString(\"utf16le\",t,n).replace(Sy,\"\"):uw(e,t,n)}:uw,pw=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push((\"0\"+e[i].toString(16)).slice(-2));return r.join(\"\")},gw=gy?function(e,t,n){return Buffer.isBuffer(e)?e.toString(\"hex\",t,t+n):pw(e,t,n)}:pw,fw=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(Ow(e,i)));return r.join(\"\")},mw=gy?function(e,t,n){return Buffer.isBuffer(e)?e.toString(\"utf8\",t,n):fw(e,t,n)}:fw,vw=function(e,t){var n=Nw(e,t);return n>0?mw(e,t+4,t+4+n-1):\"\"},yw=vw,bw=function(e,t){var n=Nw(e,t);return n>0?mw(e,t+4,t+4+n-1):\"\"},ww=bw,Cw=function(e,t){var n=2*Nw(e,t);return n>0?mw(e,t+4,t+4+n-1):\"\"},Sw=Cw,Ew=function(e,t){var n=Nw(e,t);return n>0?hw(e,t+4,t+4+n):\"\"},xw=Ew,Aw=function(e,t){var n=Nw(e,t);return n>0?mw(e,t+4,t+4+n):\"\"},Tw=Aw,Dw=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}(e,t)},Rw=Dw,Mw=function(e){return Array.isArray(e)||\"undefined\"!=typeof Uint8Array&&e instanceof Uint8Array};gy&&(yw=function(e,t){if(!Buffer.isBuffer(e))return vw(e,t);var n=e.readUInt32LE(t);return n>0?e.toString(\"utf8\",t+4,t+4+n-1):\"\"},ww=function(e,t){if(!Buffer.isBuffer(e))return bw(e,t);var n=e.readUInt32LE(t);return n>0?e.toString(\"utf8\",t+4,t+4+n-1):\"\"},Sw=function(e,t){if(!Buffer.isBuffer(e))return Cw(e,t);var n=2*e.readUInt32LE(t);return e.toString(\"utf16le\",t+4,t+4+n-1)},xw=function(e,t){if(!Buffer.isBuffer(e))return Ew(e,t);var n=e.readUInt32LE(t);return e.toString(\"utf16le\",t+4,t+4+n)},Tw=function(e,t){if(!Buffer.isBuffer(e))return Aw(e,t);var n=e.readUInt32LE(t);return e.toString(\"utf8\",t+4,t+4+n)},Rw=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Dw(e,t)},Mw=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||\"undefined\"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==sy&&(hw=function(e,t,n){return sy.utils.decode(1200,e.slice(t,n)).replace(Sy,\"\")},mw=function(e,t,n){return sy.utils.decode(65001,e.slice(t,n))},yw=function(e,t){var n=Nw(e,t);return n>0?sy.utils.decode(ny,e.slice(t+4,t+4+n-1)):\"\"},ww=function(e,t){var n=Nw(e,t);return n>0?sy.utils.decode(ty,e.slice(t+4,t+4+n-1)):\"\"},Sw=function(e,t){var n=2*Nw(e,t);return n>0?sy.utils.decode(1200,e.slice(t+4,t+4+n-1)):\"\"},xw=function(e,t){var n=Nw(e,t);return n>0?sy.utils.decode(1200,e.slice(t+4,t+4+n)):\"\"},Tw=function(e,t){var n=Nw(e,t);return n>0?sy.utils.decode(65001,e.slice(t+4,t+4+n)):\"\"});var Ow=function(e,t){return e[t]},kw=function(e,t){return 256*e[t+1]+e[t]},Iw=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Nw=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Pw=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Lw=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Fw(e,t){var n,r,i,o,a,s,l=\"\",c=[];switch(t){case\"dbcs\":if(s=this.l,gy&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString(\"utf16le\");else for(a=0;a<e;++a)l+=String.fromCharCode(kw(this,s)),s+=2;e*=2;break;case\"utf8\":l=mw(this,this.l,this.l+e);break;case\"utf16le\":e*=2,l=hw(this,this.l,this.l+e);break;case\"wstr\":if(void 0===sy)return Fw.call(this,e,\"dbcs\");l=sy.utils.decode(ty,this.slice(this.l,this.l+2*e)),e*=2;break;case\"lpstr-ansi\":l=yw(this,this.l),e=4+Nw(this,this.l);break;case\"lpstr-cp\":l=ww(this,this.l),e=4+Nw(this,this.l);break;case\"lpwstr\":l=Sw(this,this.l),e=4+2*Nw(this,this.l);break;case\"lpp4\":e=4+Nw(this,this.l),l=xw(this,this.l),2&e&&(e+=2);break;case\"8lpp4\":e=4+Nw(this,this.l),l=Tw(this,this.l),3&e&&(e+=4-(3&e));break;case\"cstr\":for(e=0,l=\"\";0!==(i=Ow(this,this.l+e++));)c.push(ly(i));l=c.join(\"\");break;case\"_wstr\":for(e=0,l=\"\";0!==(i=kw(this,this.l+e));)c.push(ly(i)),e+=2;e+=2,l=c.join(\"\");break;case\"dbcs-cont\":for(l=\"\",s=this.l,a=0;a<e;++a){if(this.lens&&-1!==this.lens.indexOf(s))return i=Ow(this,s),this.l=s+1,o=Fw.call(this,e-a,i?\"dbcs-cont\":\"sbcs-cont\"),c.join(\"\")+o;c.push(ly(kw(this,s))),s+=2}l=c.join(\"\"),e*=2;break;case\"cpstr\":if(void 0!==sy){l=sy.utils.decode(ty,this.slice(this.l,this.l+e));break}case\"sbcs-cont\":for(l=\"\",s=this.l,a=0;a!=e;++a){if(this.lens&&-1!==this.lens.indexOf(s))return i=Ow(this,s),this.l=s+1,o=Fw.call(this,e-a,i?\"dbcs-cont\":\"sbcs-cont\"),c.join(\"\")+o;c.push(ly(Ow(this,s))),s+=1}l=c.join(\"\");break;default:switch(e){case 1:return n=Ow(this,this.l),this.l++,n;case 2:return n=(\"i\"===t?Iw:kw)(this,this.l),this.l+=2,n;case 4:case-4:return\"i\"!==t&&128&this[this.l+3]?(r=Nw(this,this.l),this.l+=4,r):(n=(e>0?Pw:Lw)(this,this.l),this.l+=4,n);case 8:case-8:if(\"f\"===t)return r=8==e?Rw(this,this.l):Rw([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=gw(this,this.l,e)}}return this.l+=e,l}var _w=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},zw=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Gw=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Vw(e,t,n){var r=0,i=0;if(\"dbcs\"===n){for(i=0;i!=t.length;++i)Gw(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if(\"sbcs\"===n){if(void 0!==sy&&874==ny)for(i=0;i!=t.length;++i){var o=sy.utils.encode(ny,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\\x00-\\x7F]/g,\"_\"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if(\"hex\"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if(\"utf16le\"===n){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var s=t.charCodeAt(i);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,_w(this,t,this.l);break;case 8:if(r=8,\"f\"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(t)?26985:0);for(var s=0;s<=5;++s,o/=256)e[n+s]=255&o;e[n+6]=(15&i)<<4|15&o,e[n+7]=i>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,zw(this,t,this.l)}}return this.l+=r,this}function Bw(e,t){var n=gw(this,this.l,e.length>>1);if(n!==e)throw new Error(t+\"Expected \"+e+\" saw \"+n);this.l+=e.length>>1}function Hw(e,t){e.l=t,e.read_shift=Fw,e.chk=Bw,e.write_shift=Vw}function jw(e,t){e.l+=t}function Uw(e){var t=my(e);return Hw(t,0),t}function Ww(){var e=[],t=gy?256:2048,n=function(e){var t=Uw(e);return Hw(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))};return{next:o,push:function(e){i(),null==(r=e).l&&(r.l=r.length),o(t)},end:function(){return i(),Cy(e)},_bufs:e}}function $w(e,t,n,r){var i,o=+t;if(!isNaN(o)){r||(r=Mx[o].p||(n||[]).length||0),i=1+(o>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var a=e.next(i);o<=127?a.write_shift(1,o):(a.write_shift(1,128+(127&o)),a.write_shift(1,o>>7));for(var s=0;4!=s;++s){if(!(r>=128)){a.write_shift(1,r);break}a.write_shift(1,128+(127&r)),r>>=7}r>0&&Mw(n)&&e.push(n)}}function Yw(e,t,n){var r=Pb(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Kw(e,t,n){var r=Pb(e);return r.s=Yw(r.s,t.s,n),r.e=Yw(r.e,t.s,n),r}function qw(e,t){if(e.cRel&&e.c<0)for(e=Pb(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Pb(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=nC(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,\"$$$1\")),e.rRel||null==e.rRel||(n=n.replace(/([A-Z]|^)(\\d+)$/,\"$1$$$2\")),n}function Qw(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?qw(e.s,t.biff)+\":\"+qw(e.e,t.biff):(e.s.rRel?\"\":\"$\")+Zw(e.s.r)+\":\"+(e.e.rRel?\"\":\"$\")+Zw(e.e.r):(e.s.cRel?\"\":\"$\")+eC(e.s.c)+\":\"+(e.e.cRel?\"\":\"$\")+eC(e.e.c)}function Xw(e){return parseInt(e.replace(/\\$(\\d+)$/,\"$1\"),10)-1}function Zw(e){return\"\"+(e+1)}function Jw(e){for(var t=e.replace(/^\\$([A-Z])/,\"$1\"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function eC(e){if(e<0)throw new Error(\"invalid column \"+e);var t=\"\";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function tC(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function nC(e){for(var t=e.c+1,n=\"\";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function rC(e){var t=e.indexOf(\":\");return-1==t?{s:tC(e),e:tC(e)}:{s:tC(e.slice(0,t)),e:tC(e.slice(t+1))}}function iC(e,t){return void 0===t||\"number\"==typeof t?iC(e.s,e.e):(\"string\"!=typeof e&&(e=nC(e)),\"string\"!=typeof t&&(t=nC(t)),e==t?e:e+\":\"+t)}function oC(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r<o&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.s.c=--n,n=0;r<o&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=o&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function aC(e,t,n){return null==e||null==e.t||\"z\"==e.t?\"\":void 0!==e.w?e.w:(\"d\"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),\"e\"==e.t?VC[e.v]||e.v:function(e,t){var n=\"d\"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=cb(e.z,n?xb(t):t)}catch(e){}try{return e.w=cb((e.XF||{}).numFmtId||(n?14:0),n?xb(t):t)}catch(e){return\"\"+t}}(e,null==t?e.v:t))}function sC(e,t){var n=t&&t.sheet?t.sheet:\"Sheet1\",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function lC(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=dy&&null==i&&(i=dy);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if(\"number\"==typeof r.origin)a=r.origin;else{var l=\"string\"==typeof r.origin?tC(r.origin):r.origin;a=l.r,s=l.c}o[\"!ref\"]||(o[\"!ref\"]=\"A1:A1\")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o[\"!ref\"]){var d=oC(o[\"!ref\"]);c.s.c=d.s.c,c.s.r=d.s.r,c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),-1==a&&(c.e.r=a=d.e.r+1)}for(var u=0;u!=t.length;++u)if(t[u]){if(!Array.isArray(t[u]))throw new Error(\"aoa_to_sheet expects an array of arrays\");for(var h=0;h!=t[u].length;++h)if(void 0!==t[u][h]){var p={v:t[u][h]},g=a+u,f=s+h;if(c.s.r>g&&(c.s.r=g),c.s.c>f&&(c.s.c=f),c.e.r<g&&(c.e.r=g),c.e.c<f&&(c.e.c=f),!t[u][h]||\"object\"!=typeof t[u][h]||Array.isArray(t[u][h])||t[u][h]instanceof Date)if(Array.isArray(p.v)&&(p.f=t[u][h][1],p.v=p.v[0]),null===p.v)if(p.f)p.t=\"n\";else if(r.nullError)p.t=\"e\",p.v=0;else{if(!r.sheetStubs)continue;p.t=\"z\"}else\"number\"==typeof p.v?p.t=\"n\":\"boolean\"==typeof p.v?p.t=\"b\":p.v instanceof Date?(p.z=r.dateNF||Ny[14],r.cellDates?(p.t=\"d\",p.w=cb(p.z,xb(p.v))):(p.t=\"n\",p.v=xb(p.v),p.w=cb(p.z,p.v))):p.t=\"s\";else p=t[u][h];if(i)o[g]||(o[g]=[]),o[g][f]&&o[g][f].z&&(p.z=o[g][f].z),o[g][f]=p;else{var m=nC({c:f,r:g});o[m]&&o[m].z&&(p.z=o[m].z),o[m]=p}}}return c.s.c<1e7&&(o[\"!ref\"]=iC(c)),o}function cC(e,t){return lC(null,e,t)}function dC(e,t){return t||(t=Uw(4)),t.write_shift(4,e),t}function uC(e){var t=e.read_shift(4);return 0===t?\"\":e.read_shift(t,\"dbcs\")}function hC(e,t){var n=!1;return null==t&&(n=!0,t=Uw(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,\"dbcs\"),n?t.slice(0,t.l):t}function pC(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function gC(e,t){var n=e.l,r=e.read_shift(1),i=uC(e),o=[],a={t:i,h:i};if(1&r){for(var s=e.read_shift(4),l=0;l!=s;++l)o.push(pC(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=n+t,a}var fC=gC;function mC(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function vC(e,t){return null==t&&(t=Uw(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function yC(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function bC(e,t){return null==t&&(t=Uw(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var wC=uC,CC=hC;function SC(e){var t=e.read_shift(4);return 0===t||4294967295===t?\"\":e.read_shift(t,\"dbcs\")}function EC(e,t){var n=!1;return null==t&&(n=!0,t=Uw(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,\"dbcs\"),n?t.slice(0,t.l):t}var xC=uC,AC=SC,TC=EC;function DC(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?Rw([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Pw(t,0)>>2;return n?i/100:i}function RC(e,t){null==t&&(t=Uw(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error(\"unsupported RkNumber \"+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function MC(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var OC=MC,kC=function(e,t){return t||(t=Uw(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function IC(e){if(e.length-e.l<8)throw\"XLS Xnum Buffer underflow\";return e.read_shift(8,\"f\")}function NC(e,t){return(t||Uw(8)).write_shift(8,e,\"f\")}function PC(e,t){if(t||(t=Uw(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||\"FFFFFF\";\"number\"==typeof r&&(r=(\"000000\"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var LC=80,FC={1:{n:\"CodePage\",t:2},2:{n:\"Category\",t:LC},3:{n:\"PresentationFormat\",t:LC},4:{n:\"ByteCount\",t:3},5:{n:\"LineCount\",t:3},6:{n:\"ParagraphCount\",t:3},7:{n:\"SlideCount\",t:3},8:{n:\"NoteCount\",t:3},9:{n:\"HiddenCount\",t:3},10:{n:\"MultimediaClipCount\",t:3},11:{n:\"ScaleCrop\",t:11},12:{n:\"HeadingPairs\",t:4108},13:{n:\"TitlesOfParts\",t:4126},14:{n:\"Manager\",t:LC},15:{n:\"Company\",t:LC},16:{n:\"LinksUpToDate\",t:11},17:{n:\"CharacterCount\",t:3},19:{n:\"SharedDoc\",t:11},22:{n:\"HyperlinksChanged\",t:11},23:{n:\"AppVersion\",t:3,p:\"version\"},24:{n:\"DigSig\",t:65},26:{n:\"ContentType\",t:LC},27:{n:\"ContentStatus\",t:LC},28:{n:\"Language\",t:LC},29:{n:\"Version\",t:LC},255:{},2147483648:{n:\"Locale\",t:19},2147483651:{n:\"Behavior\",t:19},1919054434:{}},_C={1:{n:\"CodePage\",t:2},2:{n:\"Title\",t:LC},3:{n:\"Subject\",t:LC},4:{n:\"Author\",t:LC},5:{n:\"Keywords\",t:LC},6:{n:\"Comments\",t:LC},7:{n:\"Template\",t:LC},8:{n:\"LastAuthor\",t:LC},9:{n:\"RevNumber\",t:LC},10:{n:\"EditTime\",t:64},11:{n:\"LastPrinted\",t:64},12:{n:\"CreatedDate\",t:64},13:{n:\"ModifiedDate\",t:64},14:{n:\"PageCount\",t:3},15:{n:\"WordCount\",t:3},16:{n:\"CharCount\",t:3},17:{n:\"Thumbnail\",t:71},18:{n:\"Application\",t:LC},19:{n:\"DocSecurity\",t:3},255:{},2147483648:{n:\"Locale\",t:19},2147483651:{n:\"Behavior\",t:19},1919054434:{}};function zC(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var GC=Pb(zC([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),VC={0:\"#NULL!\",7:\"#DIV/0!\",15:\"#VALUE!\",23:\"#REF!\",29:\"#NAME?\",36:\"#NUM!\",42:\"#N/A\",43:\"#GETTING_DATA\",255:\"#WTF?\"},BC={\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\":\"workbooks\",\"application/vnd.ms-excel.sheet.macroEnabled.main+xml\":\"workbooks\",\"application/vnd.ms-excel.sheet.binary.macroEnabled.main\":\"workbooks\",\"application/vnd.ms-excel.addin.macroEnabled.main+xml\":\"workbooks\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml\":\"workbooks\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\":\"sheets\",\"application/vnd.ms-excel.worksheet\":\"sheets\",\"application/vnd.ms-excel.binIndexWs\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml\":\"charts\",\"application/vnd.ms-excel.chartsheet\":\"charts\",\"application/vnd.ms-excel.macrosheet+xml\":\"macros\",\"application/vnd.ms-excel.macrosheet\":\"macros\",\"application/vnd.ms-excel.intlmacrosheet\":\"TODO\",\"application/vnd.ms-excel.binIndexMs\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml\":\"dialogs\",\"application/vnd.ms-excel.dialogsheet\":\"dialogs\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml\":\"strs\",\"application/vnd.ms-excel.sharedStrings\":\"strs\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\":\"styles\",\"application/vnd.ms-excel.styles\":\"styles\",\"application/vnd.openxmlformats-package.core-properties+xml\":\"coreprops\",\"application/vnd.openxmlformats-officedocument.custom-properties+xml\":\"custprops\",\"application/vnd.openxmlformats-officedocument.extended-properties+xml\":\"extprops\",\"application/vnd.openxmlformats-officedocument.customXmlProperties+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml\":\"comments\",\"application/vnd.ms-excel.comments\":\"comments\",\"application/vnd.ms-excel.threadedcomments+xml\":\"threadedcomments\",\"application/vnd.ms-excel.person+xml\":\"people\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml\":\"metadata\",\"application/vnd.ms-excel.sheetMetadata\":\"metadata\",\"application/vnd.ms-excel.pivotTable\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawingml.chart+xml\":\"TODO\",\"application/vnd.ms-office.chartcolorstyle+xml\":\"TODO\",\"application/vnd.ms-office.chartstyle+xml\":\"TODO\",\"application/vnd.ms-office.chartex+xml\":\"TODO\",\"application/vnd.ms-excel.calcChain\":\"calcchains\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml\":\"calcchains\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings\":\"TODO\",\"application/vnd.ms-office.activeX\":\"TODO\",\"application/vnd.ms-office.activeX+xml\":\"TODO\",\"application/vnd.ms-excel.attachedToolbars\":\"TODO\",\"application/vnd.ms-excel.connections\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml\":\"TODO\",\"application/vnd.ms-excel.externalLink\":\"links\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml\":\"links\",\"application/vnd.ms-excel.pivotCacheDefinition\":\"TODO\",\"application/vnd.ms-excel.pivotCacheRecords\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml\":\"TODO\",\"application/vnd.ms-excel.queryTable\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml\":\"TODO\",\"application/vnd.ms-excel.userNames\":\"TODO\",\"application/vnd.ms-excel.revisionHeaders\":\"TODO\",\"application/vnd.ms-excel.revisionLog\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml\":\"TODO\",\"application/vnd.ms-excel.tableSingleCells\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml\":\"TODO\",\"application/vnd.ms-excel.slicer\":\"TODO\",\"application/vnd.ms-excel.slicerCache\":\"TODO\",\"application/vnd.ms-excel.slicer+xml\":\"TODO\",\"application/vnd.ms-excel.slicerCache+xml\":\"TODO\",\"application/vnd.ms-excel.wsSortMap\":\"TODO\",\"application/vnd.ms-excel.table\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.theme+xml\":\"themes\",\"application/vnd.openxmlformats-officedocument.themeOverride+xml\":\"TODO\",\"application/vnd.ms-excel.Timeline+xml\":\"TODO\",\"application/vnd.ms-excel.TimelineCache+xml\":\"TODO\",\"application/vnd.ms-office.vbaProject\":\"vba\",\"application/vnd.ms-office.vbaProjectSignature\":\"TODO\",\"application/vnd.ms-office.volatileDependencies\":\"TODO\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml\":\"TODO\",\"application/vnd.ms-excel.controlproperties+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.model+data\":\"TODO\",\"application/vnd.ms-excel.Survey+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawing+xml\":\"drawings\",\"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml\":\"TODO\",\"application/vnd.openxmlformats-officedocument.vmlDrawing\":\"TODO\",\"application/vnd.openxmlformats-package.relationships+xml\":\"rels\",\"application/vnd.openxmlformats-officedocument.oleObject\":\"TODO\",\"image/png\":\"TODO\",sheet:\"js\"},HC={workbooks:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\",xlsm:\"application/vnd.ms-excel.sheet.macroEnabled.main+xml\",xlsb:\"application/vnd.ms-excel.sheet.binary.macroEnabled.main\",xlam:\"application/vnd.ms-excel.addin.macroEnabled.main+xml\",xltx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml\"},strs:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml\",xlsb:\"application/vnd.ms-excel.sharedStrings\"},comments:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml\",xlsb:\"application/vnd.ms-excel.comments\"},sheets:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\",xlsb:\"application/vnd.ms-excel.worksheet\"},charts:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml\",xlsb:\"application/vnd.ms-excel.chartsheet\"},dialogs:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml\",xlsb:\"application/vnd.ms-excel.dialogsheet\"},macros:{xlsx:\"application/vnd.ms-excel.macrosheet+xml\",xlsb:\"application/vnd.ms-excel.macrosheet\"},metadata:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml\",xlsb:\"application/vnd.ms-excel.sheetMetadata\"},styles:{xlsx:\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\",xlsb:\"application/vnd.ms-excel.styles\"}};function jC(e,t){var n,r=function(e){for(var t=[],n=bb(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(BC),i=[];i[i.length]=Bb,i[i.length]=iw(\"Types\",null,{xmlns:aw.CT,\"xmlns:xsd\":aw.xsd,\"xmlns:xsi\":aw.xsi}),i=i.concat([[\"xml\",\"application/xml\"],[\"bin\",\"application/vnd.ms-excel.sheet.binary.macroEnabled.main\"],[\"vml\",\"application/vnd.openxmlformats-officedocument.vmlDrawing\"],[\"data\",\"application/vnd.openxmlformats-officedocument.model+data\"],[\"bmp\",\"image/bmp\"],[\"png\",\"image/png\"],[\"gif\",\"image/gif\"],[\"emf\",\"image/x-emf\"],[\"wmf\",\"image/x-wmf\"],[\"jpg\",\"image/jpeg\"],[\"jpeg\",\"image/jpeg\"],[\"tif\",\"image/tiff\"],[\"tiff\",\"image/tiff\"],[\"pdf\",\"application/pdf\"],[\"rels\",\"application/vnd.openxmlformats-package.relationships+xml\"]].map((function(e){return iw(\"Default\",null,{Extension:e[0],ContentType:e[1]})})));var o=function(r){e[r]&&e[r].length>0&&(n=e[r][0],i[i.length]=iw(\"Override\",null,{PartName:(\"/\"==n[0]?\"\":\"/\")+n,ContentType:HC[r][t.bookType]||HC[r].xlsx}))},a=function(n){(e[n]||[]).forEach((function(e){i[i.length]=iw(\"Override\",null,{PartName:(\"/\"==e[0]?\"\":\"/\")+e,ContentType:HC[n][t.bookType]||HC[n].xlsx})}))},s=function(t){(e[t]||[]).forEach((function(e){i[i.length]=iw(\"Override\",null,{PartName:(\"/\"==e[0]?\"\":\"/\")+e,ContentType:r[t][0]})}))};return o(\"workbooks\"),a(\"sheets\"),a(\"charts\"),s(\"themes\"),[\"strs\",\"styles\"].forEach(o),[\"coreprops\",\"extprops\",\"custprops\"].forEach(s),s(\"vba\"),s(\"comments\"),s(\"threadedcomments\"),s(\"drawings\"),a(\"metadata\"),s(\"people\"),i.length>2&&(i[i.length]=\"</Types>\",i[1]=i[1].replace(\"/>\",\">\")),i.join(\"\")}var UC={WB:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",SHEET:\"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument\",HLINK:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\",VML:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing\",XPATH:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath\",XMISS:\"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing\",XLINK:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink\",CXML:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml\",CXMLP:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps\",CMNT:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments\",CORE_PROPS:\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\",EXT_PROPS:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\",CUST_PROPS:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties\",SST:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings\",STY:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\",THEME:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\",CHART:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart\",CHARTEX:\"http://schemas.microsoft.com/office/2014/relationships/chartEx\",CS:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet\",WS:[\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\",\"http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet\"],DS:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet\",MS:\"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet\",IMG:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\",DRAW:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing\",XLMETA:\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata\",TCMNT:\"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment\",PEOPLE:\"http://schemas.microsoft.com/office/2017/10/relationships/person\",VBA:\"http://schemas.microsoft.com/office/2006/relationships/vbaProject\"};function WC(e){var t=e.lastIndexOf(\"/\");return e.slice(0,t+1)+\"_rels/\"+e.slice(t+1)+\".rels\"}function $C(e){var t=[Bb,iw(\"Relationships\",null,{xmlns:aw.RELS})];return bb(e[\"!id\"]).forEach((function(n){t[t.length]=iw(\"Relationship\",null,e[\"!id\"][n])})),t.length>2&&(t[t.length]=\"</Relationships>\",t[1]=t[1].replace(\"/>\",\">\")),t.join(\"\")}function YC(e,t,n,r,i,o){if(i||(i={}),e[\"!id\"]||(e[\"!id\"]={}),e[\"!idx\"]||(e[\"!idx\"]=1),t<0)for(t=e[\"!idx\"];e[\"!id\"][\"rId\"+t];++t);if(e[\"!idx\"]=t+1,i.Id=\"rId\"+t,i.Type=r,i.Target=n,o?i.TargetMode=o:[UC.HLINK,UC.XPATH,UC.XMISS].indexOf(i.Type)>-1&&(i.TargetMode=\"External\"),e[\"!id\"][i.Id])throw new Error(\"Cannot rewrite rId \"+t);return e[\"!id\"][i.Id]=i,e[(\"/\"+i.Target).replace(\"//\",\"/\")]=i,t}function KC(e,t,n){return['  <rdf:Description rdf:about=\"'+e+'\">\\n','    <rdf:type rdf:resource=\"http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||\"odf\")+\"#\"+t+'\"/>\\n',\"  </rdf:Description>\\n\"].join(\"\")}function qC(){return'<office:document-meta xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\" xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" office:version=\"1.2\"><office:meta><meta:generator>SheetJS '+ey.version+\"</meta:generator></office:meta></office:document-meta>\"}var QC=[[\"cp:category\",\"Category\"],[\"cp:contentStatus\",\"ContentStatus\"],[\"cp:keywords\",\"Keywords\"],[\"cp:lastModifiedBy\",\"LastAuthor\"],[\"cp:lastPrinted\",\"LastPrinted\"],[\"cp:revision\",\"RevNumber\"],[\"cp:version\",\"Version\"],[\"dc:creator\",\"Author\"],[\"dc:description\",\"Comments\"],[\"dc:identifier\",\"Identifier\"],[\"dc:language\",\"Language\"],[\"dc:subject\",\"Subject\"],[\"dc:title\",\"Title\"],[\"dcterms:created\",\"CreatedDate\",\"date\"],[\"dcterms:modified\",\"ModifiedDate\",\"date\"]];function XC(e,t,n,r,i){null==i[e]&&null!=t&&\"\"!==t&&(i[e]=t,t=Wb(t),r[r.length]=n?iw(e,t,n):nw(e,t))}function ZC(e,t){var n=t||{},r=[Bb,iw(\"cp:coreProperties\",null,{\"xmlns:cp\":aw.CORE_PROPS,\"xmlns:dc\":aw.dc,\"xmlns:dcterms\":aw.dcterms,\"xmlns:dcmitype\":aw.dcmitype,\"xmlns:xsi\":aw.xsi})],i={};if(!e&&!n.Props)return r.join(\"\");e&&(null!=e.CreatedDate&&XC(\"dcterms:created\",\"string\"==typeof e.CreatedDate?e.CreatedDate:ow(e.CreatedDate,n.WTF),{\"xsi:type\":\"dcterms:W3CDTF\"},r,i),null!=e.ModifiedDate&&XC(\"dcterms:modified\",\"string\"==typeof e.ModifiedDate?e.ModifiedDate:ow(e.ModifiedDate,n.WTF),{\"xsi:type\":\"dcterms:W3CDTF\"},r,i));for(var o=0;o!=QC.length;++o){var a=QC[o],s=n.Props&&null!=n.Props[a[1]]?n.Props[a[1]]:e?e[a[1]]:null;!0===s?s=\"1\":!1===s?s=\"0\":\"number\"==typeof s&&(s=String(s)),null!=s&&XC(a[0],s,null,r,i)}return r.length>2&&(r[r.length]=\"</cp:coreProperties>\",r[1]=r[1].replace(\"/>\",\">\")),r.join(\"\")}var JC=[[\"Application\",\"Application\",\"string\"],[\"AppVersion\",\"AppVersion\",\"string\"],[\"Company\",\"Company\",\"string\"],[\"DocSecurity\",\"DocSecurity\",\"string\"],[\"Manager\",\"Manager\",\"string\"],[\"HyperlinksChanged\",\"HyperlinksChanged\",\"bool\"],[\"SharedDoc\",\"SharedDoc\",\"bool\"],[\"LinksUpToDate\",\"LinksUpToDate\",\"bool\"],[\"ScaleCrop\",\"ScaleCrop\",\"bool\"],[\"HeadingPairs\",\"HeadingPairs\",\"raw\"],[\"TitlesOfParts\",\"TitlesOfParts\",\"raw\"]],eS=[\"Worksheets\",\"SheetNames\",\"NamedRanges\",\"DefinedNames\",\"Chartsheets\",\"ChartNames\"];function tS(e){var t=[],n=iw;return e||(e={}),e.Application=\"SheetJS\",t[t.length]=Bb,t[t.length]=iw(\"Properties\",null,{xmlns:aw.EXT_PROPS,\"xmlns:vt\":aw.vt}),JC.forEach((function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case\"string\":i=Wb(String(e[r[1]]));break;case\"bool\":i=e[r[1]]?\"true\":\"false\"}void 0!==i&&(t[t.length]=n(r[0],i))}})),t[t.length]=n(\"HeadingPairs\",n(\"vt:vector\",n(\"vt:variant\",\"<vt:lpstr>Worksheets</vt:lpstr>\")+n(\"vt:variant\",n(\"vt:i4\",String(e.Worksheets))),{size:2,baseType:\"variant\"})),t[t.length]=n(\"TitlesOfParts\",n(\"vt:vector\",e.SheetNames.map((function(e){return\"<vt:lpstr>\"+Wb(e)+\"</vt:lpstr>\"})).join(\"\"),{size:e.Worksheets,baseType:\"lpstr\"})),t.length>2&&(t[t.length]=\"</Properties>\",t[1]=t[1].replace(\"/>\",\">\")),t.join(\"\")}function nS(e){var t=[Bb,iw(\"Properties\",null,{xmlns:aw.CUST_PROPS,\"xmlns:vt\":aw.vt})];if(!e)return t.join(\"\");var n=1;return bb(e).forEach((function(r){++n,t[t.length]=iw(\"property\",function(e,t){switch(typeof e){case\"string\":var n=iw(\"vt:lpwstr\",Wb(e));return n=n.replace(/&quot;/g,\"_x0022_\");case\"number\":return iw((0|e)==e?\"vt:i4\":\"vt:r8\",Wb(String(e)));case\"boolean\":return iw(\"vt:bool\",e?\"true\":\"false\")}if(e instanceof Date)return iw(\"vt:filetime\",ow(e));throw new Error(\"Unable to serialize \"+e)}(e[r]),{fmtid:\"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}\",pid:n,name:Wb(r)})})),t.length>2&&(t[t.length]=\"</Properties>\",t[1]=t[1].replace(\"/>\",\">\")),t.join(\"\")}var rS={Title:\"Title\",Subject:\"Subject\",Author:\"Author\",Keywords:\"Keywords\",Comments:\"Description\",LastAuthor:\"LastAuthor\",RevNumber:\"Revision\",Application:\"AppName\",LastPrinted:\"LastPrinted\",CreatedDate:\"Created\",ModifiedDate:\"LastSaved\",Category:\"Category\",Manager:\"Manager\",Company:\"Company\",AppVersion:\"Version\",ContentStatus:\"ContentStatus\",Identifier:\"Identifier\",Language:\"Language\"};function iS(e,t){var n=Uw(4),r=Uw(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:(r=Uw(8)).write_shift(8,t,\"f\");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=function(e){var t=(\"string\"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,n=t%Math.pow(2,32),r=(t-n)/Math.pow(2,32);r*=1e7;var i=(n*=1e7)/Math.pow(2,32)|0;i>0&&(n%=Math.pow(2,32),r+=i);var o=Uw(8);return o.write_shift(4,n),o.write_shift(4,r),o}(t);break;case 31:case 80:for((r=Uw(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,\"dbcs\");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error(\"TypedPropertyValue unrecognized type \"+e+\" \"+t)}return Cy([n,r])}var oS=[\"CodePage\",\"Thumbnail\",\"_PID_LINKBASE\",\"_PID_HLINKS\",\"SystemIdentifier\",\"FMTID\"];function aS(e){switch(typeof e){case\"boolean\":return 11;case\"number\":return(0|e)==e?3:5;case\"string\":return 31;case\"object\":if(e instanceof Date)return 64}return-1}function sS(e,t,n){var r=Uw(8),i=[],o=[],a=8,s=0,l=Uw(8),c=Uw(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),o.push(l),i.push(c),a+=8+l.length,!t){(c=Uw(8)).write_shift(4,0),i.unshift(c);var d=[Uw(4)];for(d[0].write_shift(4,e.length),s=0;s<e.length;++s){var u=e[s][0];for((l=Uw(8+2*(u.length+1)+(u.length%2?0:2))).write_shift(4,s+2),l.write_shift(4,u.length+1),l.write_shift(0,u,\"dbcs\");l.l!=l.length;)l.write_shift(1,0);d.push(l)}l=Cy(d),o.unshift(l),a+=8+l.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(oS.indexOf(e[s][0])>-1||eS.indexOf(e[s][0])>-1)&&null!=e[s][1]){var h=e[s][1],p=0;if(t){var g=n[p=+t[e[s][0]]];if(\"version\"==g.p&&\"string\"==typeof h){var f=h.split(\".\");h=(+f[0]<<16)+(+f[1]||0)}l=iS(g.t,h)}else{var m=aS(h);-1==m&&(m=31,h=String(h)),l=iS(m,h)}o.push(l),(c=Uw(8)).write_shift(4,t?p:2+s),i.push(c),a+=8+l.length}var v=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,v),v+=o[s].length;return r.write_shift(4,a),r.write_shift(4,o.length),Cy([r].concat(i).concat(o))}function lS(e,t,n,r,i,o){var a=Uw(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,fb.utils.consts.HEADER_CLSID,\"hex\"),a.write_shift(4,i?2:1),a.write_shift(16,t,\"hex\"),a.write_shift(4,i?68:48);var l=sS(e,n,r);if(s.push(l),i){var c=sS(i,null,null);a.write_shift(16,o,\"hex\"),a.write_shift(4,68+l.length),s.push(c)}return Cy(s)}function cS(e,t){return t||(t=Uw(2)),t.write_shift(2,+!!e),t}function dS(e){return e.read_shift(2,\"u\")}function uS(e,t){return t||(t=Uw(2)),t.write_shift(2,e),t}function hS(e,t,n){return n||(n=Uw(2)),n.write_shift(1,\"e\"==t?+e:+!!e),n.write_shift(1,\"e\"==t?1:0),n}function pS(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),i=\"sbcs-cont\",o=ty;n&&n.biff>=8&&(ty=1200),n&&8!=n.biff?12==n.biff&&(i=\"wstr\"):e.read_shift(1)&&(i=\"dbcs-cont\"),n.biff>=2&&n.biff<=5&&(i=\"cpstr\");var a=r?e.read_shift(r,i):\"\";return ty=o,a}function gS(e){var t=e.t||\"\",n=Uw(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=Uw(2*t.length);return r.write_shift(2*t.length,t,\"utf16le\"),Cy([n,r])}function fS(e,t,n){return n||(n=Uw(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,\"utf16le\"),n}function mS(e,t){t||(t=Uw(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n<e.length;++n)t.write_shift(2,e.charCodeAt(n));return t.write_shift(2,0),t}function vS(e){var t=Uw(512),n=0,r=e.Target;\"file://\"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf(\"#\"),o=i>-1?31:23;switch(r.charAt(0)){case\"#\":o=28;break;case\".\":o&=-3}t.write_shift(4,2),t.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(n=0;n<a.length;++n)t.write_shift(4,a[n]);if(28==o)mS(r=r.slice(1),t);else if(2&o){for(a=\"e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b\".split(\" \"),n=0;n<a.length;++n)t.write_shift(1,parseInt(a[n],16));var s=i>-1?r.slice(0,i):r;for(t.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)t.write_shift(2,s.charCodeAt(n));t.write_shift(2,0),8&o&&mS(i>-1?r.slice(i+1):\"\",t)}else{for(a=\"03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46\".split(\" \"),n=0;n<a.length;++n)t.write_shift(1,parseInt(a[n],16));for(var l=0;\"../\"==r.slice(3*l,3*l+3)||\"..\\\\\"==r.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,r.length-3*l+1),n=0;n<r.length-3*l;++n)t.write_shift(1,255&r.charCodeAt(n+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function yS(e,t,n,r){return r||(r=Uw(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function bS(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,\"i\"),e.read_shift(r,\"i\")]}function wS(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function CS(e,t){return t||(t=Uw(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function SS(e,t,n){var r=1536,i=16;switch(n.bookType){case\"biff8\":case\"xla\":break;case\"biff5\":r=1280,i=8;break;case\"biff4\":r=4,i=6;break;case\"biff3\":r=3,i=6;break;case\"biff2\":r=2,i=4;break;default:throw new Error(\"unsupported BIFF version\")}var o=Uw(i);return o.write_shift(2,r),o.write_shift(2,t),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function ES(e,t){var n=!t||t.biff>=8?2:1,r=Uw(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?\"sbcs\":\"utf16le\");var i=r.slice(0,r.l);return i.l=r.l,i}function xS(e,t,n,r){var i=n&&5==n.biff;r||(r=Uw(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?\"sbcs\":\"utf16le\");var o=r.length>r.l?r.slice(0,r.l):r;return null==o.l&&(o.l=o.length),o}function AS(e,t,n,r){var i=n&&5==n.biff;r||(r=Uw(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var o=0;return e.numFmtId>0&&i&&(o|=1024),r.write_shift(4,o),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function TS(e){var t=Uw(24),n=tC(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r=\"d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b\".split(\" \"),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return Cy([t,vS(e[1])])}function DS(e){var t=e[1].Tooltip,n=Uw(10+2*(t.length+1));n.write_shift(2,2048);var r=tC(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}var RS=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Cb({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF=\"yyyymmdd\");var i=cC(function(t,n){var r=[],i=my(1);switch(n.type){case\"base64\":i=yy(py(t));break;case\"binary\":i=yy(t);break;case\"buffer\":case\"array\":i=t}Hw(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,a=!0;break;case 140:l=!0;break;default:throw new Error(\"DBF Unsupported Version: \"+o.toString(16))}var c=0,d=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(d=i.read_shift(2));var u=i.read_shift(2),h=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(h=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);for(var p=[],g={},f=Math.min(i.length,2==o?521:d-10-(s?264:0)),m=l?32:11;i.l<f&&13!=i[i.l];)switch((g={}).name=sy.utils.decode(h,i.slice(i.l,i.l+m)).replace(/[\\u0000\\r\\n].*$/g,\"\"),i.l+=m,g.type=String.fromCharCode(i.read_shift(1)),2==o||l||(g.offset=i.read_shift(4)),g.len=i.read_shift(1),2==o&&(g.offset=i.read_shift(2)),g.dec=i.read_shift(1),g.name.length&&p.push(g),2!=o&&(i.l+=l?13:14),g.type){case\"B\":s&&8==g.len||!n.WTF||console.log(\"Skipping \"+g.name+\":\"+g.type);break;case\"G\":case\"P\":n.WTF&&console.log(\"Skipping \"+g.name+\":\"+g.type);break;case\"+\":case\"0\":case\"@\":case\"C\":case\"D\":case\"F\":case\"I\":case\"L\":case\"M\":case\"N\":case\"O\":case\"T\":case\"Y\":break;default:throw new Error(\"Unknown Field Type: \"+g.type)}if(13!==i[i.l]&&(i.l=d-1),13!==i.read_shift(1))throw new Error(\"DBF Terminator not found \"+i.l+\" \"+i[i.l]);i.l=d;var v=0,y=0;for(r[0]=[],y=0;y!=p.length;++y)r[0][y]=p[y].name;for(;c-- >0;)if(42!==i[i.l])for(++i.l,r[++v]=[],y=0,y=0;y!=p.length;++y){var b=i.slice(i.l,i.l+p[y].len);i.l+=p[y].len,Hw(b,0);var w=sy.utils.decode(h,b);switch(p[y].type){case\"C\":w.trim().length&&(r[v][y]=w.replace(/\\s+$/,\"\"));break;case\"D\":8===w.length?r[v][y]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):r[v][y]=w;break;case\"F\":r[v][y]=parseFloat(w.trim());break;case\"+\":case\"I\":r[v][y]=l?2147483648^b.read_shift(-4,\"i\"):b.read_shift(4,\"i\");break;case\"L\":switch(w.trim().toUpperCase()){case\"Y\":case\"T\":r[v][y]=!0;break;case\"N\":case\"F\":r[v][y]=!1;break;case\"\":case\"?\":break;default:throw new Error(\"DBF Unrecognized L:|\"+w+\"|\")}break;case\"M\":if(!a)throw new Error(\"DBF Unexpected MEMO for type \"+o.toString(16));r[v][y]=\"##MEMO##\"+(l?parseInt(w.trim(),10):b.read_shift(4));break;case\"N\":(w=w.replace(/\\u0000/g,\"\").trim())&&\".\"!=w&&(r[v][y]=+w||0);break;case\"@\":r[v][y]=new Date(b.read_shift(-8,\"f\")-621356832e5);break;case\"T\":r[v][y]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case\"Y\":r[v][y]=b.read_shift(4,\"i\")/1e4+b.read_shift(4,\"i\")/1e4*Math.pow(2,32);break;case\"O\":r[v][y]=-b.read_shift(-8,\"f\");break;case\"B\":if(s&&8==p[y].len){r[v][y]=b.read_shift(8,\"f\");break}case\"G\":case\"P\":b.l+=p[y].len;break;case\"0\":if(\"_NullFlags\"===p[y].name)break;default:throw new Error(\"DBF Unsupported data type \"+p[y].type)}}else i.l+=u;if(2!=o&&i.l<i.length&&26!=i[i.l++])throw new Error(\"DBF EOF Marker missing \"+(i.l-1)+\" of \"+i.length+\" \"+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=p,r}(t,r),r);return i[\"!cols\"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,i}var r={B:8,C:250,L:1,D:8,\"?\":0,\"\":0};return{to_workbook:function(e,t){try{return sC(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var i=n||{};if(+i.codepage>=0&&ay(+i.codepage),\"string\"==i.type)throw new Error(\"Cannot write DBF to JS string\");var o=Ww(),a=vA(e,{header:1,raw:!0,cellDates:!0}),s=a[0],l=a.slice(1),c=e[\"!cols\"]||[],d=0,u=0,h=0,p=1;for(d=0;d<s.length;++d)if(((c[d]||{}).DBF||{}).name)s[d]=c[d].DBF.name,++h;else if(null!=s[d]){if(++h,\"number\"==typeof s[d]&&(s[d]=s[d].toString(10)),\"string\"!=typeof s[d])throw new Error(\"DBF Invalid column name \"+s[d]+\" |\"+typeof s[d]+\"|\");if(s.indexOf(s[d])!==d)for(u=0;u<1024;++u)if(-1==s.indexOf(s[d]+\"_\"+u)){s[d]+=\"_\"+u;break}}var g=oC(e[\"!ref\"]),f=[],m=[],v=[];for(d=0;d<=g.e.c-g.s.c;++d){var y=\"\",b=\"\",w=0,C=[];for(u=0;u<l.length;++u)null!=l[u][d]&&C.push(l[u][d]);if(0!=C.length&&null!=s[d]){for(u=0;u<C.length;++u){switch(typeof C[u]){case\"number\":b=\"B\";break;case\"string\":default:b=\"C\";break;case\"boolean\":b=\"L\";break;case\"object\":b=C[u]instanceof Date?\"D\":\"C\"}w=Math.max(w,String(C[u]).length),y=y&&y!=b?\"C\":b}w>250&&(w=250),\"C\"==(b=((c[d]||{}).DBF||{}).type)&&c[d].DBF.len>w&&(w=c[d].DBF.len),\"B\"==y&&\"N\"==b&&(y=\"N\",v[d]=c[d].DBF.dec,w=c[d].DBF.len),m[d]=\"C\"==y||\"N\"==b?w:r[y]||0,p+=m[d],f[d]=y}else f[d]=\"?\"}var S=o.next(32);for(S.write_shift(4,318902576),S.write_shift(4,l.length),S.write_shift(2,296+32*h),S.write_shift(2,p),d=0;d<4;++d)S.write_shift(4,0);for(S.write_shift(4,(+t[ny]||3)<<8),d=0,u=0;d<s.length;++d)if(null!=s[d]){var E=o.next(32),x=(s[d].slice(-10)+\"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\").slice(0,11);E.write_shift(1,x,\"sbcs\"),E.write_shift(1,\"?\"==f[d]?\"C\":f[d],\"sbcs\"),E.write_shift(4,u),E.write_shift(1,m[d]||r[f[d]]||0),E.write_shift(1,v[d]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),u+=m[d]||r[f[d]]||0}var A=o.next(264);for(A.write_shift(4,13),d=0;d<65;++d)A.write_shift(4,0);for(d=0;d<l.length;++d){var T=o.next(p);for(T.write_shift(1,0),u=0;u<s.length;++u)if(null!=s[u])switch(f[u]){case\"L\":T.write_shift(1,null==l[d][u]?63:l[d][u]?84:70);break;case\"B\":T.write_shift(8,l[d][u]||0,\"f\");break;case\"N\":var D=\"0\";for(\"number\"==typeof l[d][u]&&(D=l[d][u].toFixed(v[u]||0)),h=0;h<m[u]-D.length;++h)T.write_shift(1,32);T.write_shift(1,D,\"sbcs\");break;case\"D\":l[d][u]?(T.write_shift(4,(\"0000\"+l[d][u].getFullYear()).slice(-4),\"sbcs\"),T.write_shift(2,(\"00\"+(l[d][u].getMonth()+1)).slice(-2),\"sbcs\"),T.write_shift(2,(\"00\"+l[d][u].getDate()).slice(-2),\"sbcs\")):T.write_shift(8,\"00000000\",\"sbcs\");break;case\"C\":var R=String(null!=l[d][u]?l[d][u]:\"\").slice(0,m[u]);for(T.write_shift(1,R,\"sbcs\"),h=0;h<m[u]-R.length;++h)T.write_shift(1,32)}}return o.next(1).write_shift(1,26),o.end()}}}(),MS=function(){var e={AA:\"À\",BA:\"Á\",CA:\"Â\",DA:195,HA:\"Ä\",JA:197,AE:\"È\",BE:\"É\",CE:\"Ê\",HE:\"Ë\",AI:\"Ì\",BI:\"Í\",CI:\"Î\",HI:\"Ï\",AO:\"Ò\",BO:\"Ó\",CO:\"Ô\",DO:213,HO:\"Ö\",AU:\"Ù\",BU:\"Ú\",CU:\"Û\",HU:\"Ü\",Aa:\"à\",Ba:\"á\",Ca:\"â\",Da:227,Ha:\"ä\",Ja:229,Ae:\"è\",Be:\"é\",Ce:\"ê\",He:\"ë\",Ai:\"ì\",Bi:\"í\",Ci:\"î\",Hi:\"ï\",Ao:\"ò\",Bo:\"ó\",Co:\"ô\",Do:245,Ho:\"ö\",Au:\"ù\",Bu:\"ú\",Cu:\"û\",Hu:\"ü\",KC:\"Ç\",Kc:\"ç\",q:\"æ\",z:\"œ\",a:\"Æ\",j:\"Œ\",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,\"B \":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,\"!\":161,'\"':162,\"#\":163,\"(\":164,\"%\":165,\"'\":167,\"H \":168,\"+\":171,\";\":187,\"<\":188,\"=\":189,\">\":190,\"?\":191,\"{\":223},t=new RegExp(\"\u001bN(\"+bb(e).join(\"|\").replace(/\\|\\|\\|/,\"|\\\\||\").replace(/([?()+])/g,\"\\\\$1\")+\"|\\\\|)\",\"gm\"),n=function(t,n){var r=e[n];return\"number\"==typeof r?cy(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:cy(r)};function i(e,i){var o,a=e.split(/[\\n\\r]+/),s=-1,l=-1,c=0,d=0,u=[],h=[],p=null,g={},f=[],m=[],v=[],y=0;for(+i.codepage>=0&&ay(+i.codepage);c!==a.length;++c){y=0;var b,w=a[c].trim().replace(/\\x1B([\\x20-\\x2F])([\\x30-\\x3F])/g,r).replace(t,n),C=w.replace(/;;/g,\"\\0\").split(\";\").map((function(e){return e.replace(/\\u0000/g,\";\")})),S=C[0];if(w.length>0)switch(S){case\"ID\":case\"E\":case\"B\":case\"O\":case\"W\":break;case\"P\":\"P\"==C[1].charAt(0)&&h.push(w.slice(3).replace(/;;/g,\";\"));break;case\"C\":var E=!1,x=!1,A=!1,T=!1,D=-1,R=-1;for(d=1;d<C.length;++d)switch(C[d].charAt(0)){case\"A\":case\"G\":break;case\"X\":l=parseInt(C[d].slice(1))-1,x=!0;break;case\"Y\":for(s=parseInt(C[d].slice(1))-1,x||(l=0),o=u.length;o<=s;++o)u[o]=[];break;case\"K\":'\"'===(b=C[d].slice(1)).charAt(0)?b=b.slice(1,b.length-1):\"TRUE\"===b?b=!0:\"FALSE\"===b?b=!1:isNaN(Fb(b))?isNaN(zb(b).getDate())||(b=Ib(b)):(b=Fb(b),null!==p&&ab(p)&&(b=Rb(b))),void 0!==sy&&\"string\"==typeof b&&\"string\"!=(i||{}).type&&(i||{}).codepage&&(b=sy.utils.decode(i.codepage,b)),E=!0;break;case\"E\":T=!0;var M=fE(C[d].slice(1),{r:s,c:l});u[s][l]=[u[s][l],M];break;case\"S\":A=!0,u[s][l]=[u[s][l],\"S5S\"];break;case\"R\":D=parseInt(C[d].slice(1))-1;break;case\"C\":R=parseInt(C[d].slice(1))-1;break;default:if(i&&i.WTF)throw new Error(\"SYLK bad record \"+w)}if(E&&(u[s][l]&&2==u[s][l].length?u[s][l][0]=b:u[s][l]=b,p=null),A){if(T)throw new Error(\"SYLK shared formula cannot have own formula\");var O=D>-1&&u[D][R];if(!O||!O[1])throw new Error(\"SYLK shared formula cannot find base\");u[s][l][1]=yE(O[1],{r:s-D,c:l-R})}break;case\"F\":var k=0;for(d=1;d<C.length;++d)switch(C[d].charAt(0)){case\"X\":l=parseInt(C[d].slice(1))-1,++k;break;case\"Y\":for(s=parseInt(C[d].slice(1))-1,o=u.length;o<=s;++o)u[o]=[];break;case\"M\":y=parseInt(C[d].slice(1))/20;break;case\"F\":case\"G\":case\"S\":case\"D\":case\"N\":break;case\"P\":p=h[parseInt(C[d].slice(1))];break;case\"W\":for(v=C[d].slice(1).split(\" \"),o=parseInt(v[0],10);o<=parseInt(v[1],10);++o)y=parseInt(v[2],10),m[o-1]=0===y?{hidden:!0}:{wch:y},WS(m[o-1]);break;case\"C\":m[l=parseInt(C[d].slice(1))-1]||(m[l]={});break;case\"R\":f[s=parseInt(C[d].slice(1))-1]||(f[s]={}),y>0?(f[s].hpt=y,f[s].hpx=KS(y)):0===y&&(f[s].hidden=!0);break;default:if(i&&i.WTF)throw new Error(\"SYLK bad record \"+w)}k<1&&(p=null);break;default:if(i&&i.WTF)throw new Error(\"SYLK bad record \"+w)}}return f.length>0&&(g[\"!rows\"]=f),m.length>0&&(g[\"!cols\"]=m),i&&i.sheetRows&&(u=u.slice(0,i.sheetRows)),[u,g]}function o(e,t){var n=function(e,t){switch(t.type){case\"base64\":return i(py(e),t);case\"binary\":return i(e,t);case\"buffer\":return i(gy&&Buffer.isBuffer(e)?e.toString(\"binary\"):wy(e),t);case\"array\":return i(Nb(e),t)}throw new Error(\"Unrecognized type \"+t.type)}(e,t),r=n[0],o=n[1],a=cC(r,t);return bb(o).forEach((function(e){a[e]=o[e]})),a}function a(e,t,n,r){var i=\"C;Y\"+(n+1)+\";X\"+(r+1)+\";K\";switch(e.t){case\"n\":i+=e.v||0,e.f&&!e.F&&(i+=\";E\"+vE(e.f,{r:n,c:r}));break;case\"b\":i+=e.v?\"TRUE\":\"FALSE\";break;case\"e\":i+=e.w||e.v;break;case\"d\":i+='\"'+(e.w||e.v)+'\"';break;case\"s\":i+='\"'+e.v.replace(/\"/g,\"\").replace(/;/g,\";;\")+'\"'}return i}return e[\"|\"]=254,{to_workbook:function(e,t){return sC(o(e,t),t)},to_sheet:o,from_sheet:function(e,t){var n,r,i=[\"ID;PWXL;N;E\"],o=[],s=oC(e[\"!ref\"]),l=Array.isArray(e),c=\"\\r\\n\";i.push(\"P;PGeneral\"),i.push(\"F;P0;DG0G8;M255\"),e[\"!cols\"]&&(r=i,e[\"!cols\"].forEach((function(e,t){var n=\"F;W\"+(t+1)+\" \"+(t+1)+\" \";e.hidden?n+=\"0\":(\"number\"!=typeof e.width||e.wpx||(e.wpx=HS(e.width)),\"number\"!=typeof e.wpx||e.wch||(e.wch=jS(e.wpx)),\"number\"==typeof e.wch&&(n+=Math.round(e.wch))),\" \"!=n.charAt(n.length-1)&&r.push(n)}))),e[\"!rows\"]&&function(e,t){t.forEach((function(t,n){var r=\"F;\";t.hidden?r+=\"M0;\":t.hpt?r+=\"M\"+20*t.hpt+\";\":t.hpx&&(r+=\"M\"+20*YS(t.hpx)+\";\"),r.length>2&&e.push(r+\"R\"+(n+1))}))}(i,e[\"!rows\"]),i.push(\"B;Y\"+(s.e.r-s.s.r+1)+\";X\"+(s.e.c-s.s.c+1)+\";D\"+[s.s.c,s.s.r,s.e.c,s.e.r].join(\" \"));for(var d=s.s.r;d<=s.e.r;++d)for(var u=s.s.c;u<=s.e.c;++u){var h=nC({r:d,c:u});(n=l?(e[d]||[])[u]:e[h])&&(null!=n.v||n.f&&!n.F)&&o.push(a(n,0,d,u))}return i.join(c)+c+o.join(c)+c+\"E\"+c}}}(),OS=function(){function e(e,t){for(var n=e.split(\"\\n\"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if(\"BOT\"!==n[o].trim()){if(!(r<0)){for(var s=n[o].trim().split(\",\"),l=s[0],c=s[1],d=n[++o]||\"\";1&(d.match(/[\"]/g)||[]).length&&o<n.length-1;)d+=\"\\n\"+n[++o];switch(d=d.trim(),+l){case-1:if(\"BOT\"===d){a[++r]=[],i=0;continue}if(\"EOD\"!==d)throw new Error(\"Unrecognized DIF special command \"+d);break;case 0:\"TRUE\"===d?a[r][i]=!0:\"FALSE\"===d?a[r][i]=!1:isNaN(Fb(c))?isNaN(zb(c).getDate())?a[r][i]=c:a[r][i]=Ib(c):a[r][i]=Fb(c),++i;break;case 1:(d=(d=d.slice(1,d.length-1)).replace(/\"\"/g,'\"'))&&d.match(/^=\".*\"$/)&&(d=d.slice(2,-1)),a[r][i++]=\"\"!==d?d:null}if(\"EOD\"===d)break}}else a[++r]=[],i=0;return t&&t.sheetRows&&(a=a.slice(0,t.sheetRows)),a}function t(t,n){return cC(function(t,n){switch(n.type){case\"base64\":return e(py(t),n);case\"binary\":return e(t,n);case\"buffer\":return e(gy&&Buffer.isBuffer(t)?t.toString(\"binary\"):wy(t),n);case\"array\":return e(Nb(t),n)}throw new Error(\"Unrecognized type \"+n.type)}(t,n),n)}var n=function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+\",\"+r),e.push('\"'+i.replace(/\"/g,'\"\"')+'\"')},t=function(e,t,n,r){e.push(t+\",\"+n),e.push(1==t?'\"'+r.replace(/\"/g,'\"\"')+'\"':r)};return function(n){var r,i=[],o=oC(n[\"!ref\"]),a=Array.isArray(n);e(i,\"TABLE\",0,1,\"sheetjs\"),e(i,\"VECTORS\",0,o.e.r-o.s.r+1,\"\"),e(i,\"TUPLES\",0,o.e.c-o.s.c+1,\"\"),e(i,\"DATA\",0,0,\"\");for(var s=o.s.r;s<=o.e.r;++s){t(i,-1,0,\"BOT\");for(var l=o.s.c;l<=o.e.c;++l){var c=nC({r:s,c:l});if(r=a?(n[s]||[])[l]:n[c])switch(r.t){case\"n\":var d=r.w;d||null==r.v||(d=r.v),null==d?r.f&&!r.F?t(i,1,0,\"=\"+r.f):t(i,1,0,\"\"):t(i,0,d,\"V\");break;case\"b\":t(i,0,r.v?1:0,r.v?\"TRUE\":\"FALSE\");break;case\"s\":t(i,1,0,isNaN(r.v)?r.v:'=\"'+r.v+'\"');break;case\"d\":r.w||(r.w=cb(r.z||Ny[14],xb(Ib(r.v)))),t(i,0,r.w,\"V\");break;default:t(i,1,0,\"\")}else t(i,1,0,\"\")}}return t(i,-1,0,\"EOD\"),i.join(\"\\r\\n\")}}();return{to_workbook:function(e,n){return sC(t(e,n),n)},to_sheet:t,from_sheet:n}}(),kS=function(){function e(e){return e.replace(/\\\\/g,\"\\\\b\").replace(/:/g,\"\\\\c\").replace(/\\n/g,\"\\\\n\")}function t(e,t){return cC(function(e,t){for(var n=e.split(\"\\n\"),r=-1,i=-1,o=0,a=[];o!==n.length;++o){var s=n[o].trim().split(\":\");if(\"cell\"===s[0]){var l=tC(s[1]);if(a.length<=l.r)for(r=a.length;r<=l.r;++r)a[r]||(a[r]=[]);switch(r=l.r,i=l.c,s[2]){case\"t\":a[r][i]=s[3].replace(/\\\\b/g,\"\\\\\").replace(/\\\\c/g,\":\").replace(/\\\\n/g,\"\\n\");break;case\"v\":a[r][i]=+s[3];break;case\"vtf\":var c=s[s.length-1];case\"vtc\":\"nl\"===s[3]?a[r][i]=!!+s[4]:a[r][i]=+s[4],\"vtf\"==s[2]&&(a[r][i]=[a[r][i],c])}}}return t&&t.sheetRows&&(a=a.slice(0,t.sheetRows)),a}(e,t),t)}var n=[\"socialcalc:version:1.5\",\"MIME-Version: 1.0\",\"Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave\"].join(\"\\n\"),r=[\"--SocialCalcSpreadsheetControlSave\",\"Content-type: text/plain; charset=UTF-8\"].join(\"\\n\")+\"\\n\",i=[\"# SocialCalc Spreadsheet Control Save\",\"part:sheet\"].join(\"\\n\"),o=\"--SocialCalcSpreadsheetControlSave--\";function a(t){if(!t||!t[\"!ref\"])return\"\";for(var n,r=[],i=[],o=\"\",a=rC(t[\"!ref\"]),s=Array.isArray(t),l=a.s.r;l<=a.e.r;++l)for(var c=a.s.c;c<=a.e.c;++c)if(o=nC({r:l,c}),(n=s?(t[l]||[])[c]:t[o])&&null!=n.v&&\"z\"!==n.t){switch(i=[\"cell\",o,\"t\"],n.t){case\"s\":case\"str\":i.push(e(n.v));break;case\"n\":n.f?(i[2]=\"vtf\",i[3]=\"n\",i[4]=n.v,i[5]=e(n.f)):(i[2]=\"v\",i[3]=n.v);break;case\"b\":i[2]=\"vt\"+(n.f?\"f\":\"c\"),i[3]=\"nl\",i[4]=n.v?\"1\":\"0\",i[5]=e(n.f||(n.v?\"TRUE\":\"FALSE\"));break;case\"d\":var d=xb(Ib(n.v));i[2]=\"vtc\",i[3]=\"nd\",i[4]=\"\"+d,i[5]=n.w||cb(n.z||Ny[14],d);break;case\"e\":continue}r.push(i.join(\":\"))}return r.push(\"sheet:c:\"+(a.e.c-a.s.c+1)+\":r:\"+(a.e.r-a.s.r+1)+\":tvf:1\"),r.push(\"valueformat:1:text-wiki\"),r.join(\"\\n\")}return{to_workbook:function(e,n){return sC(t(e,n),n)},to_sheet:t,from_sheet:function(e){return[n,r,i,r,a(e),o].join(\"\\n\")}}}(),IS=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:\"\"===e||(\"TRUE\"===e?t[n][r]=!0:\"FALSE\"===e?t[n][r]=!1:isNaN(Fb(e))?isNaN(zb(e).getDate())?t[n][r]=e:t[n][r]=Ib(e):t[n][r]=Fb(e))}var t={44:\",\",9:\"\\t\",59:\";\",124:\"|\"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},i=!1,o=0,a=0;o<e.length;++o)34==(a=e.charCodeAt(o))?i=!i:!i&&a in t&&(r[a]=(r[a]||0)+1);for(o in a=[],r)Object.prototype.hasOwnProperty.call(r,o)&&a.push([r[o],o]);if(!a.length)for(o in r=n)Object.prototype.hasOwnProperty.call(r,o)&&a.push([r[o],o]);return a.sort((function(e,t){return e[0]-t[0]||n[e[1]]-n[t[1]]})),t[a.pop()[1]]||44}function i(e,t){var n=t||{},i=\"\";null!=dy&&null==n.dense&&(n.dense=dy);var o=n.dense?[]:{},a={s:{c:0,r:0},e:{c:0,r:0}};\"sep=\"==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(i=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(i=e.charAt(4),e=e.slice(6)):i=r(e.slice(0,1024)):i=n&&n.FS?n.FS:r(e.slice(0,1024));var s=0,l=0,c=0,d=0,u=0,h=i.charCodeAt(0),p=!1,g=0,f=e.charCodeAt(0);e=e.replace(/\\r\\n/gm,\"\\n\");var m,v,y=null!=n.dateNF?(v=(v=\"number\"==typeof(m=n.dateNF)?Ny[m]:m).replace(pb,\"(\\\\d+)\"),new RegExp(\"^\"+v+\"$\")):null;function b(){var t=e.slice(d,u),r={};if('\"'==t.charAt(0)&&'\"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/\"\"/g,'\"')),0===t.length)r.t=\"z\";else if(n.raw)r.t=\"s\",r.v=t;else if(0===t.trim().length)r.t=\"s\",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t=\"s\",r.v=t.slice(2,-1).replace(/\"\"/g,'\"')):1==t.length?(r.t=\"s\",r.v=t):(r.t=\"n\",r.f=t.slice(1));else if(\"TRUE\"==t)r.t=\"b\",r.v=!0;else if(\"FALSE\"==t)r.t=\"b\",r.v=!1;else if(isNaN(c=Fb(t)))if(!isNaN(zb(t).getDate())||y&&t.match(y)){r.z=n.dateNF||Ny[14];var i=0;y&&t.match(y)&&(t=function(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(pb)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case\"y\":r=c;break;case\"d\":o=c;break;case\"h\":a=c;break;case\"s\":l=c;break;case\"m\":a>=0?s=c:i=c}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(\"\"+(r>=0?r:(new Date).getFullYear())).slice(-4)+\"-\"+(\"00\"+(i>=1?i:1)).slice(-2)+\"-\"+(\"00\"+(o>=1?o:1)).slice(-2);7==c.length&&(c=\"0\"+c),8==c.length&&(c=\"20\"+c);var d=(\"00\"+(a>=0?a:0)).slice(-2)+\":\"+(\"00\"+(s>=0?s:0)).slice(-2)+\":\"+(\"00\"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?d:c+\"T\"+d}(0,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t=\"d\",r.v=Ib(t,i)):(r.t=\"n\",r.v=xb(Ib(t,i))),!1!==n.cellText&&(r.w=cb(r.z,r.v instanceof Date?xb(r.v):r.v)),n.cellNF||delete r.z}else r.t=\"s\",r.v=t;else r.t=\"n\",!1!==n.cellText&&(r.w=t),r.v=c;if(\"z\"==r.t||(n.dense?(o[s]||(o[s]=[]),o[s][l]=r):o[nC({c:l,r:s})]=r),d=u+1,f=e.charCodeAt(d),a.e.c<l&&(a.e.c=l),a.e.r<s&&(a.e.r=s),g==h)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}e:for(;u<e.length;++u)switch(g=e.charCodeAt(u)){case 34:34===f&&(p=!p);break;case h:case 10:case 13:if(!p&&b())break e}return u-d>0&&b(),o[\"!ref\"]=iC(a),o}function o(t,n){var r=\"\",o=\"string\"==n.type?[0,0,0,0]:function(e,t){var n=\"\";switch((t||{}).type||\"base64\"){case\"buffer\":case\"array\":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case\"base64\":n=py(e.slice(0,12));break;case\"binary\":n=e;break;default:throw new Error(\"Unrecognized type \"+(t&&t.type||\"undefined\"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}(t,n);switch(n.type){case\"base64\":r=py(t);break;case\"binary\":case\"string\":r=t;break;case\"buffer\":r=65001==n.codepage?t.toString(\"utf8\"):n.codepage&&void 0!==sy?sy.utils.decode(n.codepage,t):gy&&Buffer.isBuffer(t)?t.toString(\"binary\"):wy(t);break;case\"array\":r=Nb(t);break;default:throw new Error(\"Unrecognized type \"+n.type)}return 239==o[0]&&187==o[1]&&191==o[2]?r=Zb(r.slice(3)):\"string\"!=n.type&&\"buffer\"!=n.type&&65001==n.codepage?r=Zb(r):\"binary\"==n.type&&void 0!==sy&&n.codepage&&(r=sy.utils.decode(n.codepage,sy.utils.encode(28591,r))),\"socialcalc:version:\"==r.slice(0,19)?kS.to_sheet(\"string\"==n.type?r:Zb(r),n):function(t,n){return n&&n.PRN?n.FS||\"sep=\"==t.slice(0,4)||t.indexOf(\"\\t\")>=0||t.indexOf(\",\")>=0||t.indexOf(\";\")>=0?i(t,n):cC(function(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;for(var o=t.split(/[\\r\\n]/),a=o.length-1;a>=0&&0===o[a].length;)--a;for(var s=10,l=0,c=0;c<=a;++c)-1==(l=o[c].indexOf(\" \"))?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var d=0;for(e(o[c].slice(0,s).trim(),i,c,d,r),d=1;d<=(o[c].length-s)/10+1;++d)e(o[c].slice(s+10*(d-1),s+10*d).trim(),i,c,d,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}(t,n),n):i(t,n)}(r,n)}return{to_workbook:function(e,t){return sC(o(e,t),t)},to_sheet:o,from_sheet:function(e){for(var t,n=[],r=oC(e[\"!ref\"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=nC({r:o,c:s});if((t=i?(e[o]||[])[s]:e[l])&&null!=t.v){for(var c=(t.w||(aC(t),t.w)||\"\").slice(0,10);c.length<10;)c+=\" \";a.push(c+(0===s?\" \":\"\"))}else a.push(\"          \")}n.push(a.join(\"\"))}return n.join(\"\\n\")}}}(),NS=function(){function e(e,t,n){if(e){Hw(e,e.l||0);for(var r=n.Enum||v;e.l<e.length;){var i=e.read_shift(2),o=r[i]||r[65535],a=e.read_shift(2),s=e.l+a,l=o.f&&o.f(e,a,n);if(e.l=s,t(l,o,i))return}}}function t(t,n){if(!t)return t;var r=n||{};null!=dy&&null==r.dense&&(r.dense=dy);var i=r.dense?[]:{},o=\"Sheet1\",a=\"\",s=0,l={},c=[],d=[],u={s:{r:0,c:0},e:{r:0,c:0}},h=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error(\"Unsupported Works 3 for Mac file\");if(2==t[2])r.Enum=v,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:u=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||Ny[14],r.cellDates&&(e[1].t=\"d\",e[1].v=Rb(e[1].v))),r.qpro&&e[3]>s&&(i[\"!ref\"]=iC(u),l[o]=i,c.push(o),i=r.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||\"Sheet\"+(s+1),a=\"\");var d=r.dense?(i[e[0].r]||[])[e[0].c]:i[nC(e[0])];if(d){d.t=e[1].t,d.v=e[1].v,null!=e[1].z&&(d.z=e[1].z),null!=e[1].f&&(d.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[nC(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error(\"Unrecognized LOTUS BOF \"+t[2]);r.Enum=y,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i[\"!ref\"]=iC(u),l[o]=i,c.push(o),i=r.dense?[]:{},u={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=\"Sheet\"+(s+1)),h>0&&e[0].r>=h)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[nC(e[0])]=e[1],u.e.c<e[0].c&&(u.e.c=e[0].c),u.e.r<e[0].r&&(u.e.r=e[0].r);break;case 27:e[14e3]&&(d[e[14e3][0]]=e[14e3][1]);break;case 1537:d[e[0]]=e[1],e[0]==s&&(o=e[1])}}),r)}if(i[\"!ref\"]=iC(u),l[a||o]=i,c.push(a||o),!d.length)return{SheetNames:c,Sheets:l};for(var p={},g=[],f=0;f<d.length;++f)l[c[f]]?(g.push(d[f]||c[f]),p[d[f]]=l[d[f]]||l[c[f]]):(g.push(d[f]),p[d[f]]={\"!ref\":\"A1\"});return{SheetNames:g,Sheets:p}}function n(e,t,n){var r=[{c:0,r:0},{t:\"n\",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var i=e.l+t,o=n(e,0,r);if(o[1].t=\"s\",20768==r.vers){e.l++;var a=e.read_shift(1);return o[1].v=e.read_shift(a,\"utf8\"),o}return r.qpro&&e.l++,o[1].v=e.read_shift(i-e.l,\"cstr\"),o}function i(e,t,n){var r=Uw(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i<r.length;++i){var o=n.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function o(e,t,n){var r=Uw(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,\"i\"),r}function a(e,t,n){var r=Uw(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,\"f\"),r}function s(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?\"\":\"$\")+(n?eC(t):Zw(t))}var l={51:[\"FALSE\",0],52:[\"TRUE\",0],70:[\"LEN\",1],80:[\"SUM\",69],81:[\"AVERAGEA\",69],82:[\"COUNTA\",69],83:[\"MINA\",69],84:[\"MAXA\",69],111:[\"T\",1]},c=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"+\",\"-\",\"*\",\"/\",\"^\",\"=\",\"<>\",\"<=\",\">=\",\"<\",\">\",\"\",\"\",\"\",\"\",\"&\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"];function d(e){var t=[{c:0,r:0},{t:\"n\",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function u(e,t,n,r){var i=Uw(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o<r.length;++o){var a=r.charCodeAt(o);i.write_shift(1,a>=128?95:a)}return i.write_shift(1,0),i}function h(e,t){var n=d(e),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t=\"e\",n[1].v=15):0===r&&3489660928===i?(n[1].t=\"e\",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function p(e,t,n,r){var i=Uw(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o,a=0,s=0,l=0;return r<0&&(a=1,r=-r),s=0|Math.log2(r),2147483648&(l=(r/=Math.pow(2,s-31))>>>0)||(++s,l=(r/=2)>>>0),r-=l,l|=2147483648,l>>>=0,o=(r*=Math.pow(2,32))>>>0,i.write_shift(4,o),i.write_shift(4,l),s+=16383+(a?32768:0),i.write_shift(2,s),i}function g(e,t){var n=d(e),r=e.read_shift(8,\"f\");return n[1].v=r,n}function f(e,t){return 0==e[e.l+t-1]?e.read_shift(t,\"cstr\"):\"\"}function m(e,t){var n=Uw(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r<e.length;++r){var i=e.charCodeAt(r);n[n.l++]=i>127?95:i}return n[n.l++]=0,n}var v={0:{n:\"BOF\",f:dS},1:{n:\"EOF\"},2:{n:\"CALCMODE\"},3:{n:\"CALCORDER\"},4:{n:\"SPLIT\"},5:{n:\"SYNC\"},6:{n:\"RANGE\",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:\"WINDOW1\"},8:{n:\"COLW1\"},9:{n:\"WINTWO\"},10:{n:\"COLW2\"},11:{n:\"NAME\"},12:{n:\"BLANK\"},13:{n:\"INTEGER\",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(2,\"i\"),i}},14:{n:\"NUMBER\",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(8,\"f\"),i}},15:{n:\"LABEL\",f:r},16:{n:\"FORMULA\",f:function(e,t,r){var i=e.l+t,o=n(e,0,r);if(o[1].v=e.read_shift(8,\"f\"),r.qpro)e.l=i;else{var a=e.read_shift(2);!function(e,t){Hw(e,0);for(var n=[],r=0,i=\"\",o=\"\",a=\"\",d=\"\";e.l<e.length;){var u=e[e.l++];switch(u){case 0:n.push(e.read_shift(8,\"f\"));break;case 1:o=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(o+i);break;case 2:var h=s(t[0].c,e.read_shift(2),!0),p=s(t[0].r,e.read_shift(2),!1);o=s(t[0].c,e.read_shift(2),!0),i=s(t[0].r,e.read_shift(2),!1),n.push(h+p+\":\"+o+i);break;case 3:if(e.l<e.length)return void console.error(\"WK1 premature formula end\");break;case 4:n.push(\"(\"+n.pop()+\")\");break;case 5:n.push(e.read_shift(2));break;case 6:for(var g=\"\";u=e[e.l++];)g+=String.fromCharCode(u);n.push('\"'+g.replace(/\"/g,'\"\"')+'\"');break;case 8:n.push(\"-\"+n.pop());break;case 23:n.push(\"+\"+n.pop());break;case 22:n.push(\"NOT(\"+n.pop()+\")\");break;case 20:case 21:d=n.pop(),a=n.pop(),n.push([\"AND\",\"OR\"][u-20]+\"(\"+a+\",\"+d+\")\");break;default:if(u<32&&c[u])d=n.pop(),a=n.pop(),n.push(a+c[u]+d);else{if(!l[u])return u<=7?console.error(\"WK1 invalid opcode \"+u.toString(16)):u<=24?console.error(\"WK1 unsupported op \"+u.toString(16)):u<=30?console.error(\"WK1 invalid opcode \"+u.toString(16)):u<=115?console.error(\"WK1 unsupported function opcode \"+u.toString(16)):console.error(\"WK1 unrecognized opcode \"+u.toString(16));if(69==(r=l[u][1])&&(r=e[e.l++]),r>n.length)return void console.error(\"WK1 bad formula parse 0x\"+u.toString(16)+\":|\"+n.join(\"|\")+\"|\");var f=n.slice(-r);n.length-=r,n.push(l[u][0]+\"(\"+f.join(\",\")+\")\")}}}1==n.length?t[1].f=\"\"+n[0]:console.error(\"WK1 bad formula parse |\"+n.join(\"|\")+\"|\")}(e.slice(e.l,e.l+a),o),e.l+=a}return o}},24:{n:\"TABLE\"},25:{n:\"ORANGE\"},26:{n:\"PRANGE\"},27:{n:\"SRANGE\"},28:{n:\"FRANGE\"},29:{n:\"KRANGE1\"},32:{n:\"HRANGE\"},35:{n:\"KRANGE2\"},36:{n:\"PROTEC\"},37:{n:\"FOOTER\"},38:{n:\"HEADER\"},39:{n:\"SETUP\"},40:{n:\"MARGINS\"},41:{n:\"LABELFMT\"},42:{n:\"TITLES\"},43:{n:\"SHEETJS\"},45:{n:\"GRAPH\"},46:{n:\"NGRAPH\"},47:{n:\"CALCCOUNT\"},48:{n:\"UNFORMATTED\"},49:{n:\"CURSORW12\"},50:{n:\"WINDOW\"},51:{n:\"STRING\",f:r},55:{n:\"PASSWORD\"},56:{n:\"LOCKED\"},60:{n:\"QUERY\"},61:{n:\"QUERYNAME\"},62:{n:\"PRINT\"},63:{n:\"PRINTNAME\"},64:{n:\"GRAPH2\"},65:{n:\"GRAPHNAME\"},66:{n:\"ZOOM\"},67:{n:\"SYMSPLIT\"},68:{n:\"NSROWS\"},69:{n:\"NSCOLS\"},70:{n:\"RULER\"},71:{n:\"NNAME\"},72:{n:\"ACOMM\"},73:{n:\"AMACRO\"},74:{n:\"PARSE\"},102:{n:\"PRANGES??\"},103:{n:\"RRANGES??\"},104:{n:\"FNAME??\"},105:{n:\"MRANGES??\"},204:{n:\"SHEETNAMECS\",f},222:{n:\"SHEETNAMELP\",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r=\"\";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:\"\"}},y={0:{n:\"BOF\"},1:{n:\"EOF\"},2:{n:\"PASSWORD\"},3:{n:\"CALCSET\"},4:{n:\"WINDOWSET\"},5:{n:\"SHEETCELLPTR\"},6:{n:\"SHEETLAYOUT\"},7:{n:\"COLUMNWIDTH\"},8:{n:\"HIDDENCOLUMN\"},9:{n:\"USERRANGE\"},10:{n:\"SYSTEMRANGE\"},11:{n:\"ZEROFORCE\"},12:{n:\"SORTKEYDIR\"},13:{n:\"FILESEAL\"},14:{n:\"DATAFILLNUMS\"},15:{n:\"PRINTMAIN\"},16:{n:\"PRINTSTRING\"},17:{n:\"GRAPHMAIN\"},18:{n:\"GRAPHSTRING\"},19:{n:\"??\"},20:{n:\"ERRCELL\"},21:{n:\"NACELL\"},22:{n:\"LABEL16\",f:function(e,t){var n=d(e);return n[1].t=\"s\",n[1].v=e.read_shift(t-4,\"cstr\"),n}},23:{n:\"NUMBER17\",f:h},24:{n:\"NUMBER18\",f:function(e,t){var n=d(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:\"FORMULA19\",f:function(e,t){var n=h(e);return e.l+=t-14,n}},26:{n:\"FORMULA1A\"},27:{n:\"XFORMAT\",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var i=e.read_shift(2);if(14e3==i){for(n[i]=[0,\"\"],n[i][0]=e.read_shift(2);e[e.l];)n[i][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:\"DTLABELMISC\"},29:{n:\"DTLABELCELL\"},30:{n:\"GRAPHWINDOW\"},31:{n:\"CPA\"},32:{n:\"LPLAUTO\"},33:{n:\"QUERY\"},34:{n:\"HIDDENSHEET\"},35:{n:\"??\"},37:{n:\"NUMBER25\",f:function(e,t){var n=d(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:\"??\"},39:{n:\"NUMBER27\",f:g},40:{n:\"FORMULA28\",f:function(e,t){var n=g(e);return e.l+=t-10,n}},142:{n:\"??\"},147:{n:\"??\"},150:{n:\"??\"},151:{n:\"??\"},152:{n:\"??\"},153:{n:\"??\"},154:{n:\"??\"},155:{n:\"??\"},156:{n:\"??\"},163:{n:\"??\"},174:{n:\"??\"},175:{n:\"??\"},176:{n:\"??\"},177:{n:\"??\"},184:{n:\"??\"},185:{n:\"??\"},186:{n:\"??\"},187:{n:\"??\"},188:{n:\"??\"},195:{n:\"??\"},201:{n:\"??\"},204:{n:\"SHEETNAMECS\",f},205:{n:\"??\"},206:{n:\"??\"},207:{n:\"??\"},208:{n:\"??\"},256:{n:\"??\"},259:{n:\"??\"},260:{n:\"??\"},261:{n:\"??\"},262:{n:\"??\"},263:{n:\"??\"},265:{n:\"??\"},266:{n:\"??\"},267:{n:\"??\"},268:{n:\"??\"},270:{n:\"??\"},271:{n:\"??\"},384:{n:\"??\"},389:{n:\"??\"},390:{n:\"??\"},393:{n:\"??\"},396:{n:\"??\"},512:{n:\"??\"},514:{n:\"??\"},513:{n:\"??\"},516:{n:\"??\"},517:{n:\"??\"},640:{n:\"??\"},641:{n:\"??\"},642:{n:\"??\"},643:{n:\"??\"},644:{n:\"??\"},645:{n:\"??\"},646:{n:\"??\"},647:{n:\"??\"},648:{n:\"??\"},658:{n:\"??\"},659:{n:\"??\"},660:{n:\"??\"},661:{n:\"??\"},662:{n:\"??\"},665:{n:\"??\"},666:{n:\"??\"},768:{n:\"??\"},772:{n:\"??\"},1537:{n:\"SHEETINFOQP\",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,\"cstr\")]}}},1600:{n:\"??\"},1602:{n:\"??\"},1793:{n:\"??\"},1794:{n:\"??\"},1795:{n:\"??\"},1796:{n:\"??\"},1920:{n:\"??\"},2048:{n:\"??\"},2049:{n:\"??\"},2052:{n:\"??\"},2688:{n:\"??\"},10998:{n:\"??\"},12849:{n:\"??\"},28233:{n:\"??\"},28484:{n:\"??\"},65535:{n:\"\"}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&ay(+n.codepage),\"string\"==n.type)throw new Error(\"Cannot write WK1 to JS string\");var r,s=Ww(),l=oC(e[\"!ref\"]),c=Array.isArray(e),d=[];Ox(s,0,((r=Uw(2)).write_shift(2,1030),r)),Ox(s,6,function(e){var t=Uw(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var u=Math.min(l.e.r,8191),h=l.s.r;h<=u;++h)for(var p=Zw(h),g=l.s.c;g<=l.e.c;++g){h===l.s.r&&(d[g]=eC(g));var f=d[g]+p,m=c?(e[h]||[])[g]:e[f];m&&\"z\"!=m.t&&(\"n\"==m.t?(0|m.v)==m.v&&m.v>=-32768&&m.v<=32767?Ox(s,13,o(h,g,m.v)):Ox(s,14,a(h,g,m.v)):Ox(s,15,i(h,g,aC(m).slice(0,239))))}return Ox(s,1),s.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&ay(+n.codepage),\"string\"==n.type)throw new Error(\"Cannot write WK3 to JS string\");var r=Ww();Ox(r,0,function(e){var t=Uw(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,o=0;o<e.SheetNames.length;++o){var a=e.SheetNames[o],s=e.Sheets[a];if(s&&s[\"!ref\"]){++i;var l=rC(s[\"!ref\"]);n<l.e.r&&(n=l.e.r),r<l.e.c&&(r=l.e.c)}}return n>8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,o=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})[\"!ref\"]&&Ox(r,27,m(e.SheetNames[i],o++));var a=0;for(i=0;i<e.SheetNames.length;++i){var s=e.Sheets[e.SheetNames[i]];if(s&&s[\"!ref\"]){for(var l=oC(s[\"!ref\"]),c=Array.isArray(s),d=[],h=Math.min(l.e.r,8191),g=l.s.r;g<=h;++g)for(var f=Zw(g),v=l.s.c;v<=l.e.c;++v){g===l.s.r&&(d[v]=eC(v));var y=d[v]+f,b=c?(s[g]||[])[v]:s[y];b&&\"z\"!=b.t&&(\"n\"==b.t?Ox(r,23,p(g,v,a,b.v)):Ox(r,22,u(g,v,a,aC(b).slice(0,239))))}++a}}return Ox(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case\"base64\":return t(yy(py(e)),n);case\"binary\":return t(yy(e),n);case\"buffer\":case\"array\":return t(e,n)}throw\"Unsupported type \"+n.type}}}(),PS=/^\\s|\\s$|[\\t\\n\\r]/;function LS(e,t){if(!t.bookSST)return\"\";var n=[Bb];n[n.length]=iw(\"sst\",null,{xmlns:sw[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],o=\"<si>\";i.r?o+=i.r:(o+=\"<t\",i.t||(i.t=\"\"),i.t.match(PS)&&(o+=' xml:space=\"preserve\"'),o+=\">\"+Wb(i.t)+\"</t>\"),o+=\"</si>\",n[n.length]=o}return n.length>2&&(n[n.length]=\"</sst>\",n[1]=n[1].replace(\"/>\",\">\")),n.join(\"\")}var FS=function(e,t){var n=!1;return null==t&&(n=!0,t=Uw(15+4*e.t.length)),t.write_shift(1,0),hC(e.t,t),n?t.slice(0,t.l):t};function _S(e){var t=Ww();$w(t,159,function(e,t){return t||(t=Uw(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n<e.length;++n)$w(t,19,FS(e[n]));return $w(t,160),t.end()}function zS(e){var t,n,r=0,i=function(e){if(void 0!==sy)return sy.utils.encode(ny,e);for(var t=[],n=e.split(\"\"),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),o=i.length+1;for((t=my(o))[0]=i.length,n=1;n!=o;++n)t[n]=i[n-1];for(n=o-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}var GS=function(){function e(e,n){switch(n.type){case\"base64\":return t(py(e),n);case\"binary\":return t(e,n);case\"buffer\":return t(gy&&Buffer.isBuffer(e)?e.toString(\"binary\"):wy(e),n);case\"array\":return t(Nb(e),n)}throw new Error(\"Unrecognized type \"+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\\\trowd.*?\\\\row\\b/g);if(!r.length)throw new Error(\"RTF missing table\");var i={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,o=/\\\\\\w+\\b/g,a=0,s=-1;r=o.exec(e);){if(\"\\\\cell\"===r[0]){var l=e.slice(a,o.lastIndex-r[0].length);if(\" \"==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:\"s\"};Array.isArray(n)?n[t][s]=c:n[nC({r:t,c:s})]=c}}a=o.lastIndex}s>i.e.c&&(i.e.c=s)})),n[\"!ref\"]=iC(i),n}return{to_workbook:function(t,n){return sC(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=[\"{\\\\rtf1\\\\ansi\"],r=oC(e[\"!ref\"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push(\"\\\\trowd\\\\trautofit1\");for(var a=r.s.c;a<=r.e.c;++a)n.push(\"\\\\cellx\"+(a+1));for(n.push(\"\\\\pard\\\\intbl\"),a=r.s.c;a<=r.e.c;++a){var s=nC({r:o,c:a});(t=i?(e[o]||[])[a]:e[s])&&(null!=t.v||t.f&&!t.F)&&(n.push(\" \"+(t.w||(aC(t),t.w))),n.push(\"\\\\cell\"))}n.push(\"\\\\pard\\\\intbl\\\\row\")}return n.join(\"\")+\"}\"}}}();function VS(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var BS=6;function HS(e){return Math.floor((e+Math.round(128/BS)/256)*BS)}function jS(e){return Math.floor((e-5)/BS*100+.5)/100}function US(e){return Math.round((e*BS+5)/BS*256)/256}function WS(e){e.width?(e.wpx=HS(e.width),e.wch=jS(e.wpx),e.MDW=BS):e.wpx?(e.wch=jS(e.wpx),e.width=US(e.wch),e.MDW=BS):\"number\"==typeof e.wch&&(e.width=US(e.wch),e.wpx=HS(e.width),e.MDW=BS),e.customWidth&&delete e.customWidth}var $S=96;function YS(e){return 96*e/$S}function KS(e){return e*$S/96}function qS(e,t){var n,r=[Bb,iw(\"styleSheet\",null,{xmlns:sw[0],\"xmlns:vt\":aw.vt})];return e.SSF&&null!=(n=function(e){var t=[\"<numFmts>\"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=iw(\"numFmt\",null,{numFmtId:r,formatCode:Wb(e[r])}))})),1===t.length?\"\":(t[t.length]=\"</numFmts>\",t[0]=iw(\"numFmts\",null,{count:t.length-2}).replace(\"/>\",\">\"),t.join(\"\"))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count=\"1\"><font><sz val=\"12\"/><color theme=\"1\"/><name val=\"Calibri\"/><family val=\"2\"/><scheme val=\"minor\"/></font></fonts>',r[r.length]='<fills count=\"2\"><fill><patternFill patternType=\"none\"/></fill><fill><patternFill patternType=\"gray125\"/></fill></fills>',r[r.length]='<borders count=\"1\"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count=\"1\"><xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=iw(\"cellXfs\",null),e.forEach((function(e){t[t.length]=iw(\"xf\",null,e)})),t[t.length]=\"</cellXfs>\",2===t.length?\"\":(t[0]=iw(\"cellXfs\",null,{count:t.length-2}).replace(\"/>\",\">\"),t.join(\"\"))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count=\"1\"><cellStyle name=\"Normal\" xfId=\"0\" builtinId=\"0\"/></cellStyles>',r[r.length]='<dxfs count=\"0\"/>',r[r.length]='<tableStyles count=\"0\" defaultTableStyle=\"TableStyleMedium9\" defaultPivotStyle=\"PivotStyleMedium4\"/>',r.length>2&&(r[r.length]=\"</styleSheet>\",r[1]=r[1].replace(\"/>\",\">\")),r.join(\"\")}function QS(e,t,n){n||(n=Uw(6+4*t.length)),n.write_shift(2,e),hC(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}var XS,ZS=[\"none\",\"solid\",\"mediumGray\",\"darkGray\",\"lightGray\",\"darkHorizontal\",\"darkVertical\",\"darkDown\",\"darkUp\",\"darkGrid\",\"darkTrellis\",\"lightHorizontal\",\"lightVertical\",\"lightDown\",\"lightUp\",\"lightGrid\",\"lightTrellis\",\"gray125\",\"gray0625\"],JS=jw;function eE(e,t){t||(t=Uw(84)),XS||(XS=Cb(ZS));var n=XS[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(PC({auto:1},t),PC({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function tE(e,t,n){return n||(n=Uw(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function nE(e,t){return t||(t=Uw(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var rE=jw;function iE(e,t){var n=Ww();return $w(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&($w(e,615,dC(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&$w(e,44,QS(r,t[r]))})),$w(e,616))}}(n,e.SSF),function(e){$w(e,611,dC(1)),$w(e,43,function(e,t){t||(t=Uw(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Uw(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;\"superscript\"==e.vertAlign?n=1:\"subscript\"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),PC(e.color,t);var r=0;return\"major\"==e.scheme&&(r=1),\"minor\"==e.scheme&&(r=2),t.write_shift(1,r),hC(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:\"Calibri\",family:2,scheme:\"minor\"})),$w(e,612)}(n),function(e){$w(e,603,dC(2)),$w(e,45,eE({patternType:\"none\"})),$w(e,45,eE({patternType:\"gray125\"})),$w(e,604)}(n),function(e){var t;$w(e,613,dC(1)),$w(e,46,(t||(t=Uw(51)),t.write_shift(1,0),nE(0,t),nE(0,t),nE(0,t),nE(0,t),nE(0,t),t.length>t.l?t.slice(0,t.l):t)),$w(e,614)}(n),function(e){$w(e,626,dC(1)),$w(e,47,tE({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),$w(e,627)}(n),function(e,t){$w(e,617,dC(t.length)),t.forEach((function(t){$w(e,47,tE(t,0))})),$w(e,618)}(n,t.cellXfs),function(e){$w(e,619,dC(1)),$w(e,48,function(e,t){return t||(t=Uw(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),EC(e.name||\"\",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:\"Normal\"})),$w(e,620)}(n),function(e){$w(e,505,dC(0)),$w(e,506)}(n),function(e){var t;$w(e,508,((t=Uw(2052)).write_shift(4,0),EC(\"TableStyleMedium9\",t),EC(\"PivotStyleMedium4\",t),t.length>t.l?t.slice(0,t.l):t)),$w(e,509)}(n),$w(n,279),n.end()}function oE(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&\"string\"==typeof e.raw)return e.raw;var n=[Bb];return n[n.length]='<a:theme xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" name=\"Office Theme\">',n[n.length]=\"<a:themeElements>\",n[n.length]='<a:clrScheme name=\"Office\">',n[n.length]='<a:dk1><a:sysClr val=\"windowText\" lastClr=\"000000\"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val=\"window\" lastClr=\"FFFFFF\"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val=\"1F497D\"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val=\"EEECE1\"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val=\"4F81BD\"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val=\"C0504D\"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val=\"9BBB59\"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val=\"8064A2\"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val=\"4BACC6\"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val=\"F79646\"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val=\"0000FF\"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val=\"800080\"/></a:folHlink>',n[n.length]=\"</a:clrScheme>\",n[n.length]='<a:fontScheme name=\"Office\">',n[n.length]=\"<a:majorFont>\",n[n.length]='<a:latin typeface=\"Cambria\"/>',n[n.length]='<a:ea typeface=\"\"/>',n[n.length]='<a:cs typeface=\"\"/>',n[n.length]='<a:font script=\"Jpan\" typeface=\"ＭＳ Ｐゴシック\"/>',n[n.length]='<a:font script=\"Hang\" typeface=\"맑은 고딕\"/>',n[n.length]='<a:font script=\"Hans\" typeface=\"宋体\"/>',n[n.length]='<a:font script=\"Hant\" typeface=\"新細明體\"/>',n[n.length]='<a:font script=\"Arab\" typeface=\"Times New Roman\"/>',n[n.length]='<a:font script=\"Hebr\" typeface=\"Times New Roman\"/>',n[n.length]='<a:font script=\"Thai\" typeface=\"Tahoma\"/>',n[n.length]='<a:font script=\"Ethi\" typeface=\"Nyala\"/>',n[n.length]='<a:font script=\"Beng\" typeface=\"Vrinda\"/>',n[n.length]='<a:font script=\"Gujr\" typeface=\"Shruti\"/>',n[n.length]='<a:font script=\"Khmr\" typeface=\"MoolBoran\"/>',n[n.length]='<a:font script=\"Knda\" typeface=\"Tunga\"/>',n[n.length]='<a:font script=\"Guru\" typeface=\"Raavi\"/>',n[n.length]='<a:font script=\"Cans\" typeface=\"Euphemia\"/>',n[n.length]='<a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/>',n[n.length]='<a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/>',n[n.length]='<a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/>',n[n.length]='<a:font script=\"Thaa\" typeface=\"MV Boli\"/>',n[n.length]='<a:font script=\"Deva\" typeface=\"Mangal\"/>',n[n.length]='<a:font script=\"Telu\" typeface=\"Gautami\"/>',n[n.length]='<a:font script=\"Taml\" typeface=\"Latha\"/>',n[n.length]='<a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/>',n[n.length]='<a:font script=\"Orya\" typeface=\"Kalinga\"/>',n[n.length]='<a:font script=\"Mlym\" typeface=\"Kartika\"/>',n[n.length]='<a:font script=\"Laoo\" typeface=\"DokChampa\"/>',n[n.length]='<a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/>',n[n.length]='<a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/>',n[n.length]='<a:font script=\"Viet\" typeface=\"Times New Roman\"/>',n[n.length]='<a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/>',n[n.length]='<a:font script=\"Geor\" typeface=\"Sylfaen\"/>',n[n.length]=\"</a:majorFont>\",n[n.length]=\"<a:minorFont>\",n[n.length]='<a:latin typeface=\"Calibri\"/>',n[n.length]='<a:ea typeface=\"\"/>',n[n.length]='<a:cs typeface=\"\"/>',n[n.length]='<a:font script=\"Jpan\" typeface=\"ＭＳ Ｐゴシック\"/>',n[n.length]='<a:font script=\"Hang\" typeface=\"맑은 고딕\"/>',n[n.length]='<a:font script=\"Hans\" typeface=\"宋体\"/>',n[n.length]='<a:font script=\"Hant\" typeface=\"新細明體\"/>',n[n.length]='<a:font script=\"Arab\" typeface=\"Arial\"/>',n[n.length]='<a:font script=\"Hebr\" typeface=\"Arial\"/>',n[n.length]='<a:font script=\"Thai\" typeface=\"Tahoma\"/>',n[n.length]='<a:font script=\"Ethi\" typeface=\"Nyala\"/>',n[n.length]='<a:font script=\"Beng\" typeface=\"Vrinda\"/>',n[n.length]='<a:font script=\"Gujr\" typeface=\"Shruti\"/>',n[n.length]='<a:font script=\"Khmr\" typeface=\"DaunPenh\"/>',n[n.length]='<a:font script=\"Knda\" typeface=\"Tunga\"/>',n[n.length]='<a:font script=\"Guru\" typeface=\"Raavi\"/>',n[n.length]='<a:font script=\"Cans\" typeface=\"Euphemia\"/>',n[n.length]='<a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/>',n[n.length]='<a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/>',n[n.length]='<a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/>',n[n.length]='<a:font script=\"Thaa\" typeface=\"MV Boli\"/>',n[n.length]='<a:font script=\"Deva\" typeface=\"Mangal\"/>',n[n.length]='<a:font script=\"Telu\" typeface=\"Gautami\"/>',n[n.length]='<a:font script=\"Taml\" typeface=\"Latha\"/>',n[n.length]='<a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/>',n[n.length]='<a:font script=\"Orya\" typeface=\"Kalinga\"/>',n[n.length]='<a:font script=\"Mlym\" typeface=\"Kartika\"/>',n[n.length]='<a:font script=\"Laoo\" typeface=\"DokChampa\"/>',n[n.length]='<a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/>',n[n.length]='<a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/>',n[n.length]='<a:font script=\"Viet\" typeface=\"Arial\"/>',n[n.length]='<a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/>',n[n.length]='<a:font script=\"Geor\" typeface=\"Sylfaen\"/>',n[n.length]=\"</a:minorFont>\",n[n.length]=\"</a:fontScheme>\",n[n.length]='<a:fmtScheme name=\"Office\">',n[n.length]=\"<a:fillStyleLst>\",n[n.length]='<a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape=\"1\">',n[n.length]=\"<a:gsLst>\",n[n.length]='<a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:tint val=\"50000\"/><a:satMod val=\"300000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"35000\"><a:schemeClr val=\"phClr\"><a:tint val=\"37000\"/><a:satMod val=\"300000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:tint val=\"15000\"/><a:satMod val=\"350000\"/></a:schemeClr></a:gs>',n[n.length]=\"</a:gsLst>\",n[n.length]='<a:lin ang=\"16200000\" scaled=\"1\"/>',n[n.length]=\"</a:gradFill>\",n[n.length]='<a:gradFill rotWithShape=\"1\">',n[n.length]=\"<a:gsLst>\",n[n.length]='<a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:tint val=\"100000\"/><a:shade val=\"100000\"/><a:satMod val=\"130000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:tint val=\"50000\"/><a:shade val=\"100000\"/><a:satMod val=\"350000\"/></a:schemeClr></a:gs>',n[n.length]=\"</a:gsLst>\",n[n.length]='<a:lin ang=\"16200000\" scaled=\"0\"/>',n[n.length]=\"</a:gradFill>\",n[n.length]=\"</a:fillStyleLst>\",n[n.length]=\"<a:lnStyleLst>\",n[n.length]='<a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"phClr\"><a:shade val=\"95000\"/><a:satMod val=\"105000\"/></a:schemeClr></a:solidFill><a:prstDash val=\"solid\"/></a:ln>',n[n.length]='<a:ln w=\"25400\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"solid\"/></a:ln>',n[n.length]='<a:ln w=\"38100\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"solid\"/></a:ln>',n[n.length]=\"</a:lnStyleLst>\",n[n.length]=\"<a:effectStyleLst>\",n[n.length]=\"<a:effectStyle>\",n[n.length]=\"<a:effectLst>\",n[n.length]='<a:outerShdw blurRad=\"40000\" dist=\"20000\" dir=\"5400000\" rotWithShape=\"0\"><a:srgbClr val=\"000000\"><a:alpha val=\"38000\"/></a:srgbClr></a:outerShdw>',n[n.length]=\"</a:effectLst>\",n[n.length]=\"</a:effectStyle>\",n[n.length]=\"<a:effectStyle>\",n[n.length]=\"<a:effectLst>\",n[n.length]='<a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"><a:srgbClr val=\"000000\"><a:alpha val=\"35000\"/></a:srgbClr></a:outerShdw>',n[n.length]=\"</a:effectLst>\",n[n.length]=\"</a:effectStyle>\",n[n.length]=\"<a:effectStyle>\",n[n.length]=\"<a:effectLst>\",n[n.length]='<a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"><a:srgbClr val=\"000000\"><a:alpha val=\"35000\"/></a:srgbClr></a:outerShdw>',n[n.length]=\"</a:effectLst>\",n[n.length]='<a:scene3d><a:camera prst=\"orthographicFront\"><a:rot lat=\"0\" lon=\"0\" rev=\"0\"/></a:camera><a:lightRig rig=\"threePt\" dir=\"t\"><a:rot lat=\"0\" lon=\"0\" rev=\"1200000\"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w=\"63500\" h=\"25400\"/></a:sp3d>',n[n.length]=\"</a:effectStyle>\",n[n.length]=\"</a:effectStyleLst>\",n[n.length]=\"<a:bgFillStyleLst>\",n[n.length]='<a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape=\"1\">',n[n.length]=\"<a:gsLst>\",n[n.length]='<a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:tint val=\"40000\"/><a:satMod val=\"350000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"40000\"><a:schemeClr val=\"phClr\"><a:tint val=\"45000\"/><a:shade val=\"99000\"/><a:satMod val=\"350000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:shade val=\"20000\"/><a:satMod val=\"255000\"/></a:schemeClr></a:gs>',n[n.length]=\"</a:gsLst>\",n[n.length]='<a:path path=\"circle\"><a:fillToRect l=\"50000\" t=\"-80000\" r=\"50000\" b=\"180000\"/></a:path>',n[n.length]=\"</a:gradFill>\",n[n.length]='<a:gradFill rotWithShape=\"1\">',n[n.length]=\"<a:gsLst>\",n[n.length]='<a:gs pos=\"0\"><a:schemeClr val=\"phClr\"><a:tint val=\"80000\"/><a:satMod val=\"300000\"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos=\"100000\"><a:schemeClr val=\"phClr\"><a:shade val=\"30000\"/><a:satMod val=\"200000\"/></a:schemeClr></a:gs>',n[n.length]=\"</a:gsLst>\",n[n.length]='<a:path path=\"circle\"><a:fillToRect l=\"50000\" t=\"50000\" r=\"50000\" b=\"50000\"/></a:path>',n[n.length]=\"</a:gradFill>\",n[n.length]=\"</a:bgFillStyleLst>\",n[n.length]=\"</a:fmtScheme>\",n[n.length]=\"</a:themeElements>\",n[n.length]=\"<a:objectDefaults>\",n[n.length]=\"<a:spDef>\",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx=\"1\"><a:schemeClr val=\"accent1\"/></a:lnRef><a:fillRef idx=\"3\"><a:schemeClr val=\"accent1\"/></a:fillRef><a:effectRef idx=\"2\"><a:schemeClr val=\"accent1\"/></a:effectRef><a:fontRef idx=\"minor\"><a:schemeClr val=\"lt1\"/></a:fontRef></a:style>',n[n.length]=\"</a:spDef>\",n[n.length]=\"<a:lnDef>\",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx=\"2\"><a:schemeClr val=\"accent1\"/></a:lnRef><a:fillRef idx=\"0\"><a:schemeClr val=\"accent1\"/></a:fillRef><a:effectRef idx=\"1\"><a:schemeClr val=\"accent1\"/></a:effectRef><a:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></a:fontRef></a:style>',n[n.length]=\"</a:lnDef>\",n[n.length]=\"</a:objectDefaults>\",n[n.length]=\"<a:extraClrSchemeLst/>\",n[n.length]=\"</a:theme>\",n.join(\"\")}function aE(){var e,t,n=Ww();return $w(n,332),$w(n,334,dC(1)),$w(n,335,((t=Uw(12+2*(e={name:\"XLDAPR\",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),hC(e.name,t),t.slice(0,t.l))),$w(n,336),$w(n,339,function(e,t){var n=Uw(20);return n.write_shift(4,1),hC(t,n),n.slice(0,n.l)}(0,\"XLDAPR\")),$w(n,52),$w(n,35,dC(514)),$w(n,4096,dC(0)),$w(n,4097,uS(1)),$w(n,36),$w(n,53),$w(n,340),$w(n,337,function(e,t){var n=Uw(8);return n.write_shift(4,1),n.write_shift(4,1),n}()),$w(n,51,function(e){var t=Uw(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n<e.length;++n)t.write_shift(4,e[n][0]),t.write_shift(4,e[n][1]);return t}([[1,0]])),$w(n,338),$w(n,333),n.end()}function sE(){var e=[Bb];return e.push('<metadata xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:xlrd=\"http://schemas.microsoft.com/office/spreadsheetml/2017/richdata\" xmlns:xda=\"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray\">\\n  <metadataTypes count=\"1\">\\n    <metadataType name=\"XLDAPR\" minSupportedVersion=\"120000\" copy=\"1\" pasteAll=\"1\" pasteValues=\"1\" merge=\"1\" splitFirst=\"1\" rowColShift=\"1\" clearFormats=\"1\" clearComments=\"1\" assign=\"1\" coerce=\"1\" cellMeta=\"1\"/>\\n  </metadataTypes>\\n  <futureMetadata name=\"XLDAPR\" count=\"1\">\\n    <bk>\\n      <extLst>\\n        <ext uri=\"{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}\">\\n          <xda:dynamicArrayProperties fDynamic=\"1\" fCollapsed=\"0\"/>\\n        </ext>\\n      </extLst>\\n    </bk>\\n  </futureMetadata>\\n  <cellMetadata count=\"1\">\\n    <bk>\\n      <rc t=\"1\" v=\"0\"/>\\n    </bk>\\n  </cellMetadata>\\n</metadata>'),e.join(\"\")}var lE=1024;function cE(e,t){for(var n=[21600,21600],r=[\"m0,0l0\",n[1],n[0],n[1],n[0],\"0xe\"].join(\",\"),i=[iw(\"xml\",null,{\"xmlns:v\":lw.v,\"xmlns:o\":lw.o,\"xmlns:x\":lw.x,\"xmlns:mv\":lw.mv}).replace(/\\/>/,\">\"),iw(\"o:shapelayout\",iw(\"o:idmap\",null,{\"v:ext\":\"edit\",data:e}),{\"v:ext\":\"edit\"}),iw(\"v:shapetype\",[iw(\"v:stroke\",null,{joinstyle:\"miter\"}),iw(\"v:path\",null,{gradientshapeok:\"t\",\"o:connecttype\":\"rect\"})].join(\"\"),{id:\"_x0000_t202\",\"o:spt\":202,coordsize:n.join(\",\"),path:r})];lE<1e3*e;)lE+=1e3;return t.forEach((function(e){var t=tC(e[0]),n={color2:\"#BEFF82\",type:\"gradient\"};\"gradient\"==n.type&&(n.angle=\"-180\");var r=\"gradient\"==n.type?iw(\"o:fill\",null,{type:\"gradientUnscaled\",\"v:ext\":\"view\"}):null,o=iw(\"v:fill\",r,n);++lE,i=i.concat([\"<v:shape\"+rw({id:\"_x0000_s\"+lE,type:\"#_x0000_t202\",style:\"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10\"+(e[1].hidden?\";visibility:hidden\":\"\"),fillcolor:\"#ECFAD4\",strokecolor:\"#edeaa1\"})+\">\",o,iw(\"v:shadow\",null,{on:\"t\",obscured:\"t\"}),iw(\"v:path\",null,{\"o:connecttype\":\"none\"}),'<v:textbox><div style=\"text-align:left\"></div></v:textbox>','<x:ClientData ObjectType=\"Note\">',\"<x:MoveWithCells/>\",\"<x:SizeWithCells/>\",nw(\"x:Anchor\",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(\",\")),nw(\"x:AutoFill\",\"False\"),nw(\"x:Row\",String(t.r)),nw(\"x:Column\",String(t.c)),e[1].hidden?\"\":\"<x:Visible/>\",\"</x:ClientData>\",\"</v:shape>\"])})),i.push(\"</xml>\"),i.join(\"\")}function dE(e){var t=[Bb,iw(\"comments\",null,{xmlns:sw[0]})],n=[];return t.push(\"<authors>\"),e.forEach((function(e){e[1].forEach((function(e){var r=Wb(e.a);-1==n.indexOf(r)&&(n.push(r),t.push(\"<author>\"+r+\"</author>\")),e.T&&e.ID&&-1==n.indexOf(\"tc=\"+e.ID)&&(n.push(\"tc=\"+e.ID),t.push(\"<author>tc=\"+e.ID+\"</author>\"))}))})),0==n.length&&(n.push(\"SheetJ5\"),t.push(\"<author>SheetJ5</author>\")),t.push(\"</authors>\"),t.push(\"<commentList>\"),e.forEach((function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf(\"tc=\"+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(Wb(e.a))),i.push(e.t||\"\")})),t.push('<comment ref=\"'+e[0]+'\" authorId=\"'+r+'\"><text>'),i.length<=1)t.push(nw(\"t\",Wb(i[0]||\"\")));else{for(var o=\"Comment:\\n    \"+i[0]+\"\\n\",a=1;a<i.length;++a)o+=\"Reply:\\n    \"+i[a]+\"\\n\";t.push(nw(\"t\",Wb(o)))}t.push(\"</text></comment>\")})),t.push(\"</commentList>\"),t.length>2&&(t[t.length]=\"</comments>\",t[1]=t[1].replace(\"/>\",\">\")),t.join(\"\")}function uE(e,t,n){var r=[Bb,iw(\"ThreadedComments\",null,{xmlns:aw.TCMNT}).replace(/[\\/]>/,\">\")];return e.forEach((function(e){var i=\"\";(e[1]||[]).forEach((function(o,a){if(o.T){o.a&&-1==t.indexOf(o.a)&&t.push(o.a);var s={ref:e[0],id:\"{54EE7951-7262-4200-6969-\"+(\"000000000000\"+n.tcid++).slice(-12)+\"}\"};0==a?i=s.id:s.parentId=i,o.ID=s.id,o.a&&(s.personId=\"{54EE7950-7262-4200-6969-\"+(\"000000000000\"+t.indexOf(o.a)).slice(-12)+\"}\"),r.push(iw(\"threadedComment\",nw(\"text\",o.t||\"\"),s))}else delete o.ID}))})),r.push(\"</ThreadedComments>\"),r.join(\"\")}var hE=uC;function pE(e){var t=Ww(),n=[];return $w(t,628),$w(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),$w(t,632,function(e){return hC(e.slice(0,54))}(e.a)))}))})),$w(t,631),$w(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var i,o,a,s={s:tC(e[0]),e:tC(e[0])};$w(t,635,function(e,t){return null==t&&(t=Uw(36)),t.write_shift(4,e[1].iauthor),kC(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([s,r])),r.t&&r.t.length>0&&$w(t,637,(i=r,a=!1,null==o&&(a=!0,o=Uw(23+4*i.t.length)),o.write_shift(1,1),hC(i.t,o),o.write_shift(4,1),function(e,t){t||(t=Uw(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},o),a?o.slice(0,o.l):o)),$w(t,636),delete r.iauthor}))})),$w(t,634),$w(t,629),t.end()}var gE=[\"xlsb\",\"xlsm\",\"xlam\",\"biff8\",\"xla\"],fE=function(){var e=/(^|[^A-Za-z_])R(\\[?-?\\d+\\]|[1-9]\\d*|)C(\\[?-?\\d+\\]|[1-9]\\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:\"[\"==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:\"[\"==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?\"\":\"$\")+eC(l)+(a?\"\":\"$\")+Zw(s)}return function(r,i){return t=i,r.replace(e,n)}}(),mE=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\\d{4}|104[0-7]\\d{3}|1048[0-4]\\d{2}|10485[0-6]\\d|104857[0-6]|[1-9]\\d{0,5})(?![_.\\(A-Za-z0-9])/g,vE=function(){return function(e,t){return e.replace(mE,(function(e,n,r,i,o,a){var s=Jw(i)-(r?0:t.c),l=Xw(a)-(o?0:t.r);return n+\"R\"+(0==l?\"\":o?l+1:\"[\"+l+\"]\")+\"C\"+(0==s?\"\":r?s+1:\"[\"+s+\"]\")}))}}();function yE(e,t){return e.replace(mE,(function(e,n,r,i,o,a){return n+(\"$\"==r?r+i:eC(Jw(i)+t.c))+(\"$\"==o?o+a:Zw(Xw(a)+t.r))}))}function bE(e){e.l+=1}function wE(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function CE(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return SE(e);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=wE(e,2),s=wE(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function SE(e){var t=wE(e,2),n=wE(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function EE(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=wE(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),i=wE(e,2);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function xE(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function AE(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function TE(e){return[e.read_shift(1),e.read_shift(1)]}function DE(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=function(e,t){return 1===e.read_shift(t)}(e,1)?\"TRUE\":\"FALSE\",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=VC[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=IC(e);break;case 2:n[1]=function(e,t,n){if(n.biff>5)return function(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,\"\"):function(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,\"cpstr\");if(n.biff>=12)return e.read_shift(t,\"dbcs-cont\")}return 0===e.read_shift(1)?e.read_shift(t,\"sbcs-cont\"):e.read_shift(t,\"dbcs-cont\")}(e,r,n)}(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,\"\"):e.read_shift(r,n.biff<=4||!e.lens?\"cpstr\":\"sbcs-cont\")}(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error(\"Bad SerAr: \"+n[0])}return n}function RE(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?OC:wS)(e,8));return i}function ME(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=DE(e,n.biff);return a}function OE(e,t,n){return e.l+=2,[xE(e)]}function kE(e){return e.l+=6,[]}function IE(e){return e.l+=2,[dS(e),1&e.read_shift(2)]}var NE=[\"Data\",\"All\",\"Headers\",\"??\",\"?Data2\",\"??\",\"?DataHeaders\",\"??\",\"Totals\",\"??\",\"??\",\"??\",\"?DataTotals\",\"??\",\"??\",\"??\",\"?Current\"],PE={1:{n:\"PtgExp\",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,\"i\"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:\"PtgTbl\",f:jw},3:{n:\"PtgAdd\",f:bE},4:{n:\"PtgSub\",f:bE},5:{n:\"PtgMul\",f:bE},6:{n:\"PtgDiv\",f:bE},7:{n:\"PtgPower\",f:bE},8:{n:\"PtgConcat\",f:bE},9:{n:\"PtgLt\",f:bE},10:{n:\"PtgLe\",f:bE},11:{n:\"PtgEq\",f:bE},12:{n:\"PtgGe\",f:bE},13:{n:\"PtgGt\",f:bE},14:{n:\"PtgNe\",f:bE},15:{n:\"PtgIsect\",f:bE},16:{n:\"PtgUnion\",f:bE},17:{n:\"PtgRange\",f:bE},18:{n:\"PtgUplus\",f:bE},19:{n:\"PtgUminus\",f:bE},20:{n:\"PtgPercent\",f:bE},21:{n:\"PtgParen\",f:bE},22:{n:\"PtgMissArg\",f:bE},23:{n:\"PtgStr\",f:function(e,t,n){return e.l++,pS(e,0,n)}},26:{n:\"PtgSheet\",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,[\"PTGSHEET\"]}},27:{n:\"PtgEndSheet\",f:function(e,t,n){return e.l+=2==n.biff?4:5,[\"PTGENDSHEET\"]}},28:{n:\"PtgErr\",f:function(e){return e.l++,VC[e.read_shift(1)]}},29:{n:\"PtgBool\",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:\"PtgInt\",f:function(e){return e.l++,e.read_shift(2)}},31:{n:\"PtgNum\",f:function(e){return e.l++,IC(e)}},32:{n:\"PtgArray\",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:\"PtgFunc\",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[XE[i],QE[i],r]}},34:{n:\"PtgFuncVar\",f:function(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===o[0]?QE:qE)[o[1]]]}},35:{n:\"PtgName\",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,o]}},36:{n:\"PtgRef\",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,EE(e,0,n)]}},37:{n:\"PtgArea\",f:function(e,t,n){return[(96&e[e.l++])>>5,CE(e,n.biff>=2&&n.biff,n)]}},38:{n:\"PtgMemArea\",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:\"PtgMemErr\",f:jw},40:{n:\"PtgMemNoMem\",f:jw},41:{n:\"PtgMemFunc\",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:\"PtgRefErr\",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:\"PtgAreaErr\",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:\"PtgRefN\",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}(e);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)for(;i>524287;)i-=1048576;if(1==a)for(;o>8191;)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}(e,0,n);return[r,i]}},45:{n:\"PtgAreaN\",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=function(e,t,n){if(n.biff<8)return SE(e);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=wE(e,2),a=wE(e,2);return{s:{r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}(e,0,n);return[r,i]}},46:{n:\"PtgMemAreaN\",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:\"PtgMemNoMemN\",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:\"PtgNameX\",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,\"i\");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:\"PtgRef3d\",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,i,EE(e,0,n)]}},59:{n:\"PtgArea3d\",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,\"i\");if(n&&5===n.biff)e.l+=12;return[r,i,CE(e,0,n)]}},60:{n:\"PtgRefErr3d\",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6}return e.l+=o,[r,i]}},61:{n:\"PtgAreaErr3d\",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12}return e.l+=o,[r,i]}},255:{}},LE={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},FE={1:{n:\"PtgElfLel\",f:IE},2:{n:\"PtgElfRw\",f:OE},3:{n:\"PtgElfCol\",f:OE},6:{n:\"PtgElfRwV\",f:OE},7:{n:\"PtgElfColV\",f:OE},10:{n:\"PtgElfRadical\",f:OE},11:{n:\"PtgElfRadicalS\",f:kE},13:{n:\"PtgElfColS\",f:kE},15:{n:\"PtgElfColSV\",f:kE},16:{n:\"PtgElfRadicalLel\",f:IE},25:{n:\"PtgList\",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2);return{ixti:t,coltype:3&n,rt:NE[n>>2&31],idx:r,c:i,C:o}}},29:{n:\"PtgSxName\",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},_E={0:{n:\"PtgAttrNoop\",f:function(e){return e.l+=4,[0,0]}},1:{n:\"PtgAttrSemi\",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:\"PtgAttrIf\",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:\"PtgAttrChoose\",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}},8:{n:\"PtgAttrGoto\",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:\"PtgAttrSum\",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:\"PtgAttrBaxcel\",f:AE},33:{n:\"PtgAttrBaxcel\",f:AE},64:{n:\"PtgAttrSpace\",f:function(e){return e.read_shift(2),TE(e)}},65:{n:\"PtgAttrSpaceSemi\",f:function(e){return e.read_shift(2),TE(e)}},128:{n:\"PtgAttrIfError\",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function zE(e,t,n,r){if(r.biff<8)return jw(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case\"PtgArray\":n[a][1]=ME(e,0,r),o.push(n[a][1]);break;case\"PtgMemArea\":n[a][2]=RE(e,n[a][1],r),o.push(n[a][2]);break;case\"PtgExp\":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case\"PtgList\":case\"PtgElfRadicalS\":case\"PtgElfColS\":case\"PtgElfColSV\":throw\"Unsupported \"+n[a][0]}return 0!=(t=i-e.l)&&o.push(jw(e,t)),o}function GE(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],o=0;o<r.length;++o){var a=r[o];a?2===a[0]?i.push('\"'+a[1].replace(/\"/g,'\"\"')+'\"'):i.push(a[1]):i.push(\"\")}t.push(i.join(\",\"))}return t.join(\";\")}var VE={PtgAdd:\"+\",PtgConcat:\"&\",PtgDiv:\"/\",PtgEq:\"=\",PtgGe:\">=\",PtgGt:\">\",PtgLe:\"<=\",PtgLt:\"<\",PtgMul:\"*\",PtgNe:\"<>\",PtgPower:\"^\",PtgSub:\"-\"};function BE(e,t,n){if(!e)return\"SH33TJSERR0\";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return\"SH33TJSERR6\";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?\"\":e.XTI[t-1];if(!r)return\"SH33TJSERR1\";var i=\"\";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?\"#REF\":e.SheetNames[r[1]],r[1]==r[2]?i:i+\":\"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:\"SH33TJSSAME\"+e[r[0]][0];default:return\"SH33TJSSRC\"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?\"#REF\":e.SheetNames[r[1]]||\"SH33TJSERR3\",r[1]==r[2]?i:i+\":\"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(\";;\");default:return e[r[0]][0][3]?(i=-1==r[1]?\"#REF\":e[r[0]][0][3][r[1]]||\"SH33TJSERR4\",r[1]==r[2]?i:i+\":\"+e[r[0]][0][3][r[2]]):\"SH33TJSERR2\"}}function HE(e,t,n){var r=BE(e,t,n);return\"#REF\"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error(\"empty sheet name\");return/[^\\w\\u4E00-\\u9FFF\\u3040-\\u30FF]/.test(e)?\"'\"+e+\"'\":e}(r,n)}function jE(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,d={s:{c:0,r:0},e:{c:0,r:0}},u=[],h=0,p=0,g=\"\";if(!e[0]||!e[0][0])return\"\";for(var f=-1,m=\"\",v=0,y=e[0].length;v<y;++v){var b=e[0][v];switch(b[0]){case\"PtgUminus\":u.push(\"-\"+u.pop());break;case\"PtgUplus\":u.push(\"+\"+u.pop());break;case\"PtgPercent\":u.push(u.pop()+\"%\");break;case\"PtgAdd\":case\"PtgConcat\":case\"PtgDiv\":case\"PtgEq\":case\"PtgGe\":case\"PtgGt\":case\"PtgLe\":case\"PtgLt\":case\"PtgMul\":case\"PtgNe\":case\"PtgPower\":case\"PtgSub\":if(o=u.pop(),a=u.pop(),f>=0){switch(e[0][f][1][0]){case 0:m=Lb(\" \",e[0][f][1][1]);break;case 1:m=Lb(\"\\r\",e[0][f][1][1]);break;default:if(m=\"\",i.WTF)throw new Error(\"Unexpected PtgAttrSpaceType \"+e[0][f][1][0])}a+=m,f=-1}u.push(a+VE[b[0]]+o);break;case\"PtgIsect\":o=u.pop(),a=u.pop(),u.push(a+\" \"+o);break;case\"PtgUnion\":o=u.pop(),a=u.pop(),u.push(a+\",\"+o);break;case\"PtgRange\":o=u.pop(),a=u.pop(),u.push(a+\":\"+o);break;case\"PtgAttrChoose\":case\"PtgAttrGoto\":case\"PtgAttrIf\":case\"PtgAttrIfError\":case\"PtgAttrBaxcel\":case\"PtgAttrSemi\":case\"PtgMemArea\":case\"PtgTbl\":case\"PtgMemErr\":case\"PtgMemAreaN\":case\"PtgMemNoMemN\":case\"PtgAttrNoop\":case\"PtgSheet\":case\"PtgEndSheet\":case\"PtgMemFunc\":case\"PtgMemNoMem\":break;case\"PtgRef\":s=Yw(b[1][1],d,i),u.push(qw(s,c));break;case\"PtgRefN\":s=n?Yw(b[1][1],n,i):b[1][1],u.push(qw(s,c));break;case\"PtgRef3d\":h=b[1][1],s=Yw(b[1][2],d,i),g=HE(r,h,i),u.push(g+\"!\"+qw(s,c));break;case\"PtgFunc\":case\"PtgFuncVar\":var w=b[1][0],C=b[1][1];w||(w=0);var S=0==(w&=127)?[]:u.slice(-w);u.length-=w,\"User\"===C&&(C=S.shift()),u.push(C+\"(\"+S.join(\",\")+\")\");break;case\"PtgBool\":u.push(b[1]?\"TRUE\":\"FALSE\");break;case\"PtgInt\":case\"PtgErr\":u.push(b[1]);break;case\"PtgNum\":u.push(String(b[1]));break;case\"PtgStr\":u.push('\"'+b[1].replace(/\"/g,'\"\"')+'\"');break;case\"PtgAreaN\":l=Kw(b[1][1],n?{s:n}:d,i),u.push(Qw(l,i));break;case\"PtgArea\":l=Kw(b[1][1],d,i),u.push(Qw(l,i));break;case\"PtgArea3d\":h=b[1][1],l=b[1][2],g=HE(r,h,i),u.push(g+\"!\"+Qw(l,i));break;case\"PtgAttrSum\":u.push(\"SUM(\"+u.pop()+\")\");break;case\"PtgName\":p=b[1][2];var E=(r.names||[])[p-1]||(r[0]||[])[p],x=E?E.Name:\"SH33TJSNAME\"+String(p);x&&\"_xlfn.\"==x.slice(0,6)&&!i.xlfn&&(x=x.slice(6)),u.push(x);break;case\"PtgNameX\":var A,T=b[1][1];if(p=b[1][2],!(i.biff<=5)){var D=\"\";if(14849==((r[T]||[])[0]||[])[0]||(1025==((r[T]||[])[0]||[])[0]?r[T][p]&&r[T][p].itab>0&&(D=r.SheetNames[r[T][p].itab-1]+\"!\"):D=r.SheetNames[p-1]+\"!\"),r[T]&&r[T][p])D+=r[T][p].Name;else if(r[0]&&r[0][p])D+=r[0][p].Name;else{var R=(BE(r,T,i)||\"\").split(\";;\");R[p-1]?D=R[p-1]:D+=\"SH33TJSERRX\"}u.push(D);break}T<0&&(T=-T),r[T]&&(A=r[T][p]),A||(A={Name:\"SH33TJSERRY\"}),u.push(A.Name);break;case\"PtgParen\":var M=\"(\",O=\")\";if(f>=0){switch(m=\"\",e[0][f][1][0]){case 2:M=Lb(\" \",e[0][f][1][1])+M;break;case 3:M=Lb(\"\\r\",e[0][f][1][1])+M;break;case 4:O=Lb(\" \",e[0][f][1][1])+O;break;case 5:O=Lb(\"\\r\",e[0][f][1][1])+O;break;default:if(i.WTF)throw new Error(\"Unexpected PtgAttrSpaceType \"+e[0][f][1][0])}f=-1}u.push(M+u.pop()+O);break;case\"PtgRefErr\":case\"PtgRefErr3d\":case\"PtgAreaErr\":case\"PtgAreaErr3d\":u.push(\"#REF!\");break;case\"PtgExp\":s={c:b[1][1],r:b[1][0]};var k={c:n.c,r:n.r};if(r.sharedf[nC(s)]){var I=r.sharedf[nC(s)];u.push(jE(I,0,k,r,i))}else{var N=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.c<a[0].s.c||s.c>a[0].e.c||s.r<a[0].s.r||s.r>a[0].e.r)){u.push(jE(a[1],0,k,r,i)),N=!0;break}N||u.push(b[1])}break;case\"PtgArray\":u.push(\"{\"+GE(b[1])+\"}\");break;case\"PtgAttrSpace\":case\"PtgAttrSpaceSemi\":f=v;break;case\"PtgMissArg\":u.push(\"\");break;case\"PtgList\":u.push(\"Table\"+b[1].idx+\"[#\"+b[1].rt+\"]\");break;case\"PtgElfCol\":case\"PtgElfColS\":case\"PtgElfColSV\":case\"PtgElfColV\":case\"PtgElfLel\":case\"PtgElfRadical\":case\"PtgElfRadicalLel\":case\"PtgElfRadicalS\":case\"PtgElfRw\":case\"PtgElfRwV\":throw new Error(\"Unsupported ELFs\");default:throw new Error(\"Unrecognized Formula Token: \"+String(b))}if(3!=i.biff&&f>=0&&-1==[\"PtgAttrSpace\",\"PtgAttrSpaceSemi\",\"PtgAttrGoto\"].indexOf(e[0][v][0])){var P=!0;switch((b=e[0][f])[1][0]){case 4:P=!1;case 0:m=Lb(\" \",b[1][1]);break;case 5:P=!1;case 1:m=Lb(\"\\r\",b[1][1]);break;default:if(m=\"\",i.WTF)throw new Error(\"Unexpected PtgAttrSpaceType \"+b[1][0])}u.push((P?m:\"\")+u.pop()+(P?\"\":m)),f=-1}}if(u.length>1&&i.WTF)throw new Error(\"bad formula stack\");return u[0]}function UE(e,t,n){var r=e.read_shift(4),i=function(e,t,n){for(var r,i,o=e.l+t,a=[];o!=e.l;)t=o-e.l,i=e[e.l],r=PE[i]||PE[LE[i]],24!==i&&25!==i||(r=(24===i?FE:_E)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):jw(e,t);return a}(e,r,n),o=e.read_shift(4);return[i,o>0?zE(e,o,i,n):null]}var WE=UE,$E=UE,YE=UE,KE=UE,qE={0:\"BEEP\",1:\"OPEN\",2:\"OPEN.LINKS\",3:\"CLOSE.ALL\",4:\"SAVE\",5:\"SAVE.AS\",6:\"FILE.DELETE\",7:\"PAGE.SETUP\",8:\"PRINT\",9:\"PRINTER.SETUP\",10:\"QUIT\",11:\"NEW.WINDOW\",12:\"ARRANGE.ALL\",13:\"WINDOW.SIZE\",14:\"WINDOW.MOVE\",15:\"FULL\",16:\"CLOSE\",17:\"RUN\",22:\"SET.PRINT.AREA\",23:\"SET.PRINT.TITLES\",24:\"SET.PAGE.BREAK\",25:\"REMOVE.PAGE.BREAK\",26:\"FONT\",27:\"DISPLAY\",28:\"PROTECT.DOCUMENT\",29:\"PRECISION\",30:\"A1.R1C1\",31:\"CALCULATE.NOW\",32:\"CALCULATION\",34:\"DATA.FIND\",35:\"EXTRACT\",36:\"DATA.DELETE\",37:\"SET.DATABASE\",38:\"SET.CRITERIA\",39:\"SORT\",40:\"DATA.SERIES\",41:\"TABLE\",42:\"FORMAT.NUMBER\",43:\"ALIGNMENT\",44:\"STYLE\",45:\"BORDER\",46:\"CELL.PROTECTION\",47:\"COLUMN.WIDTH\",48:\"UNDO\",49:\"CUT\",50:\"COPY\",51:\"PASTE\",52:\"CLEAR\",53:\"PASTE.SPECIAL\",54:\"EDIT.DELETE\",55:\"INSERT\",56:\"FILL.RIGHT\",57:\"FILL.DOWN\",61:\"DEFINE.NAME\",62:\"CREATE.NAMES\",63:\"FORMULA.GOTO\",64:\"FORMULA.FIND\",65:\"SELECT.LAST.CELL\",66:\"SHOW.ACTIVE.CELL\",67:\"GALLERY.AREA\",68:\"GALLERY.BAR\",69:\"GALLERY.COLUMN\",70:\"GALLERY.LINE\",71:\"GALLERY.PIE\",72:\"GALLERY.SCATTER\",73:\"COMBINATION\",74:\"PREFERRED\",75:\"ADD.OVERLAY\",76:\"GRIDLINES\",77:\"SET.PREFERRED\",78:\"AXES\",79:\"LEGEND\",80:\"ATTACH.TEXT\",81:\"ADD.ARROW\",82:\"SELECT.CHART\",83:\"SELECT.PLOT.AREA\",84:\"PATTERNS\",85:\"MAIN.CHART\",86:\"OVERLAY\",87:\"SCALE\",88:\"FORMAT.LEGEND\",89:\"FORMAT.TEXT\",90:\"EDIT.REPEAT\",91:\"PARSE\",92:\"JUSTIFY\",93:\"HIDE\",94:\"UNHIDE\",95:\"WORKSPACE\",96:\"FORMULA\",97:\"FORMULA.FILL\",98:\"FORMULA.ARRAY\",99:\"DATA.FIND.NEXT\",100:\"DATA.FIND.PREV\",101:\"FORMULA.FIND.NEXT\",102:\"FORMULA.FIND.PREV\",103:\"ACTIVATE\",104:\"ACTIVATE.NEXT\",105:\"ACTIVATE.PREV\",106:\"UNLOCKED.NEXT\",107:\"UNLOCKED.PREV\",108:\"COPY.PICTURE\",109:\"SELECT\",110:\"DELETE.NAME\",111:\"DELETE.FORMAT\",112:\"VLINE\",113:\"HLINE\",114:\"VPAGE\",115:\"HPAGE\",116:\"VSCROLL\",117:\"HSCROLL\",118:\"ALERT\",119:\"NEW\",120:\"CANCEL.COPY\",121:\"SHOW.CLIPBOARD\",122:\"MESSAGE\",124:\"PASTE.LINK\",125:\"APP.ACTIVATE\",126:\"DELETE.ARROW\",127:\"ROW.HEIGHT\",128:\"FORMAT.MOVE\",129:\"FORMAT.SIZE\",130:\"FORMULA.REPLACE\",131:\"SEND.KEYS\",132:\"SELECT.SPECIAL\",133:\"APPLY.NAMES\",134:\"REPLACE.FONT\",135:\"FREEZE.PANES\",136:\"SHOW.INFO\",137:\"SPLIT\",138:\"ON.WINDOW\",139:\"ON.DATA\",140:\"DISABLE.INPUT\",142:\"OUTLINE\",143:\"LIST.NAMES\",144:\"FILE.CLOSE\",145:\"SAVE.WORKBOOK\",146:\"DATA.FORM\",147:\"COPY.CHART\",148:\"ON.TIME\",149:\"WAIT\",150:\"FORMAT.FONT\",151:\"FILL.UP\",152:\"FILL.LEFT\",153:\"DELETE.OVERLAY\",155:\"SHORT.MENUS\",159:\"SET.UPDATE.STATUS\",161:\"COLOR.PALETTE\",162:\"DELETE.STYLE\",163:\"WINDOW.RESTORE\",164:\"WINDOW.MAXIMIZE\",166:\"CHANGE.LINK\",167:\"CALCULATE.DOCUMENT\",168:\"ON.KEY\",169:\"APP.RESTORE\",170:\"APP.MOVE\",171:\"APP.SIZE\",172:\"APP.MINIMIZE\",173:\"APP.MAXIMIZE\",174:\"BRING.TO.FRONT\",175:\"SEND.TO.BACK\",185:\"MAIN.CHART.TYPE\",186:\"OVERLAY.CHART.TYPE\",187:\"SELECT.END\",188:\"OPEN.MAIL\",189:\"SEND.MAIL\",190:\"STANDARD.FONT\",191:\"CONSOLIDATE\",192:\"SORT.SPECIAL\",193:\"GALLERY.3D.AREA\",194:\"GALLERY.3D.COLUMN\",195:\"GALLERY.3D.LINE\",196:\"GALLERY.3D.PIE\",197:\"VIEW.3D\",198:\"GOAL.SEEK\",199:\"WORKGROUP\",200:\"FILL.GROUP\",201:\"UPDATE.LINK\",202:\"PROMOTE\",203:\"DEMOTE\",204:\"SHOW.DETAIL\",206:\"UNGROUP\",207:\"OBJECT.PROPERTIES\",208:\"SAVE.NEW.OBJECT\",209:\"SHARE\",210:\"SHARE.NAME\",211:\"DUPLICATE\",212:\"APPLY.STYLE\",213:\"ASSIGN.TO.OBJECT\",214:\"OBJECT.PROTECTION\",215:\"HIDE.OBJECT\",216:\"SET.EXTRACT\",217:\"CREATE.PUBLISHER\",218:\"SUBSCRIBE.TO\",219:\"ATTRIBUTES\",220:\"SHOW.TOOLBAR\",222:\"PRINT.PREVIEW\",223:\"EDIT.COLOR\",224:\"SHOW.LEVELS\",225:\"FORMAT.MAIN\",226:\"FORMAT.OVERLAY\",227:\"ON.RECALC\",228:\"EDIT.SERIES\",229:\"DEFINE.STYLE\",240:\"LINE.PRINT\",243:\"ENTER.DATA\",249:\"GALLERY.RADAR\",250:\"MERGE.STYLES\",251:\"EDITION.OPTIONS\",252:\"PASTE.PICTURE\",253:\"PASTE.PICTURE.LINK\",254:\"SPELLING\",256:\"ZOOM\",259:\"INSERT.OBJECT\",260:\"WINDOW.MINIMIZE\",265:\"SOUND.NOTE\",266:\"SOUND.PLAY\",267:\"FORMAT.SHAPE\",268:\"EXTEND.POLYGON\",269:\"FORMAT.AUTO\",272:\"GALLERY.3D.BAR\",273:\"GALLERY.3D.SURFACE\",274:\"FILL.AUTO\",276:\"CUSTOMIZE.TOOLBAR\",277:\"ADD.TOOL\",278:\"EDIT.OBJECT\",279:\"ON.DOUBLECLICK\",280:\"ON.ENTRY\",281:\"WORKBOOK.ADD\",282:\"WORKBOOK.MOVE\",283:\"WORKBOOK.COPY\",284:\"WORKBOOK.OPTIONS\",285:\"SAVE.WORKSPACE\",288:\"CHART.WIZARD\",289:\"DELETE.TOOL\",290:\"MOVE.TOOL\",291:\"WORKBOOK.SELECT\",292:\"WORKBOOK.ACTIVATE\",293:\"ASSIGN.TO.TOOL\",295:\"COPY.TOOL\",296:\"RESET.TOOL\",297:\"CONSTRAIN.NUMERIC\",298:\"PASTE.TOOL\",302:\"WORKBOOK.NEW\",305:\"SCENARIO.CELLS\",306:\"SCENARIO.DELETE\",307:\"SCENARIO.ADD\",308:\"SCENARIO.EDIT\",309:\"SCENARIO.SHOW\",310:\"SCENARIO.SHOW.NEXT\",311:\"SCENARIO.SUMMARY\",312:\"PIVOT.TABLE.WIZARD\",313:\"PIVOT.FIELD.PROPERTIES\",314:\"PIVOT.FIELD\",315:\"PIVOT.ITEM\",316:\"PIVOT.ADD.FIELDS\",318:\"OPTIONS.CALCULATION\",319:\"OPTIONS.EDIT\",320:\"OPTIONS.VIEW\",321:\"ADDIN.MANAGER\",322:\"MENU.EDITOR\",323:\"ATTACH.TOOLBARS\",324:\"VBAActivate\",325:\"OPTIONS.CHART\",328:\"VBA.INSERT.FILE\",330:\"VBA.PROCEDURE.DEFINITION\",336:\"ROUTING.SLIP\",338:\"ROUTE.DOCUMENT\",339:\"MAIL.LOGON\",342:\"INSERT.PICTURE\",343:\"EDIT.TOOL\",344:\"GALLERY.DOUGHNUT\",350:\"CHART.TREND\",352:\"PIVOT.ITEM.PROPERTIES\",354:\"WORKBOOK.INSERT\",355:\"OPTIONS.TRANSITION\",356:\"OPTIONS.GENERAL\",370:\"FILTER.ADVANCED\",373:\"MAIL.ADD.MAILER\",374:\"MAIL.DELETE.MAILER\",375:\"MAIL.REPLY\",376:\"MAIL.REPLY.ALL\",377:\"MAIL.FORWARD\",378:\"MAIL.NEXT.LETTER\",379:\"DATA.LABEL\",380:\"INSERT.TITLE\",381:\"FONT.PROPERTIES\",382:\"MACRO.OPTIONS\",383:\"WORKBOOK.HIDE\",384:\"WORKBOOK.UNHIDE\",385:\"WORKBOOK.DELETE\",386:\"WORKBOOK.NAME\",388:\"GALLERY.CUSTOM\",390:\"ADD.CHART.AUTOFORMAT\",391:\"DELETE.CHART.AUTOFORMAT\",392:\"CHART.ADD.DATA\",393:\"AUTO.OUTLINE\",394:\"TAB.ORDER\",395:\"SHOW.DIALOG\",396:\"SELECT.ALL\",397:\"UNGROUP.SHEETS\",398:\"SUBTOTAL.CREATE\",399:\"SUBTOTAL.REMOVE\",400:\"RENAME.OBJECT\",412:\"WORKBOOK.SCROLL\",413:\"WORKBOOK.NEXT\",414:\"WORKBOOK.PREV\",415:\"WORKBOOK.TAB.SPLIT\",416:\"FULL.SCREEN\",417:\"WORKBOOK.PROTECT\",420:\"SCROLLBAR.PROPERTIES\",421:\"PIVOT.SHOW.PAGES\",422:\"TEXT.TO.COLUMNS\",423:\"FORMAT.CHARTTYPE\",424:\"LINK.FORMAT\",425:\"TRACER.DISPLAY\",430:\"TRACER.NAVIGATE\",431:\"TRACER.CLEAR\",432:\"TRACER.ERROR\",433:\"PIVOT.FIELD.GROUP\",434:\"PIVOT.FIELD.UNGROUP\",435:\"CHECKBOX.PROPERTIES\",436:\"LABEL.PROPERTIES\",437:\"LISTBOX.PROPERTIES\",438:\"EDITBOX.PROPERTIES\",439:\"PIVOT.REFRESH\",440:\"LINK.COMBO\",441:\"OPEN.TEXT\",442:\"HIDE.DIALOG\",443:\"SET.DIALOG.FOCUS\",444:\"ENABLE.OBJECT\",445:\"PUSHBUTTON.PROPERTIES\",446:\"SET.DIALOG.DEFAULT\",447:\"FILTER\",448:\"FILTER.SHOW.ALL\",449:\"CLEAR.OUTLINE\",450:\"FUNCTION.WIZARD\",451:\"ADD.LIST.ITEM\",452:\"SET.LIST.ITEM\",453:\"REMOVE.LIST.ITEM\",454:\"SELECT.LIST.ITEM\",455:\"SET.CONTROL.VALUE\",456:\"SAVE.COPY.AS\",458:\"OPTIONS.LISTS.ADD\",459:\"OPTIONS.LISTS.DELETE\",460:\"SERIES.AXES\",461:\"SERIES.X\",462:\"SERIES.Y\",463:\"ERRORBAR.X\",464:\"ERRORBAR.Y\",465:\"FORMAT.CHART\",466:\"SERIES.ORDER\",467:\"MAIL.LOGOFF\",468:\"CLEAR.ROUTING.SLIP\",469:\"APP.ACTIVATE.MICROSOFT\",470:\"MAIL.EDIT.MAILER\",471:\"ON.SHEET\",472:\"STANDARD.WIDTH\",473:\"SCENARIO.MERGE\",474:\"SUMMARY.INFO\",475:\"FIND.FILE\",476:\"ACTIVE.CELL.FONT\",477:\"ENABLE.TIPWIZARD\",478:\"VBA.MAKE.ADDIN\",480:\"INSERTDATATABLE\",481:\"WORKGROUP.OPTIONS\",482:\"MAIL.SEND.MAILER\",485:\"AUTOCORRECT\",489:\"POST.DOCUMENT\",491:\"PICKLIST\",493:\"VIEW.SHOW\",494:\"VIEW.DEFINE\",495:\"VIEW.DELETE\",509:\"SHEET.BACKGROUND\",510:\"INSERT.MAP.OBJECT\",511:\"OPTIONS.MENONO\",517:\"MSOCHECKS\",518:\"NORMAL\",519:\"LAYOUT\",520:\"RM.PRINT.AREA\",521:\"CLEAR.PRINT.AREA\",522:\"ADD.PRINT.AREA\",523:\"MOVE.BRK\",545:\"HIDECURR.NOTE\",546:\"HIDEALL.NOTES\",547:\"DELETE.NOTE\",548:\"TRAVERSE.NOTES\",549:\"ACTIVATE.NOTES\",620:\"PROTECT.REVISIONS\",621:\"UNPROTECT.REVISIONS\",647:\"OPTIONS.ME\",653:\"WEB.PUBLISH\",667:\"NEWWEBQUERY\",673:\"PIVOT.TABLE.CHART\",753:\"OPTIONS.SAVE\",755:\"OPTIONS.SPELL\",808:\"HIDEALL.INKANNOTS\"},QE={0:\"COUNT\",1:\"IF\",2:\"ISNA\",3:\"ISERROR\",4:\"SUM\",5:\"AVERAGE\",6:\"MIN\",7:\"MAX\",8:\"ROW\",9:\"COLUMN\",10:\"NA\",11:\"NPV\",12:\"STDEV\",13:\"DOLLAR\",14:\"FIXED\",15:\"SIN\",16:\"COS\",17:\"TAN\",18:\"ATAN\",19:\"PI\",20:\"SQRT\",21:\"EXP\",22:\"LN\",23:\"LOG10\",24:\"ABS\",25:\"INT\",26:\"SIGN\",27:\"ROUND\",28:\"LOOKUP\",29:\"INDEX\",30:\"REPT\",31:\"MID\",32:\"LEN\",33:\"VALUE\",34:\"TRUE\",35:\"FALSE\",36:\"AND\",37:\"OR\",38:\"NOT\",39:\"MOD\",40:\"DCOUNT\",41:\"DSUM\",42:\"DAVERAGE\",43:\"DMIN\",44:\"DMAX\",45:\"DSTDEV\",46:\"VAR\",47:\"DVAR\",48:\"TEXT\",49:\"LINEST\",50:\"TREND\",51:\"LOGEST\",52:\"GROWTH\",53:\"GOTO\",54:\"HALT\",55:\"RETURN\",56:\"PV\",57:\"FV\",58:\"NPER\",59:\"PMT\",60:\"RATE\",61:\"MIRR\",62:\"IRR\",63:\"RAND\",64:\"MATCH\",65:\"DATE\",66:\"TIME\",67:\"DAY\",68:\"MONTH\",69:\"YEAR\",70:\"WEEKDAY\",71:\"HOUR\",72:\"MINUTE\",73:\"SECOND\",74:\"NOW\",75:\"AREAS\",76:\"ROWS\",77:\"COLUMNS\",78:\"OFFSET\",79:\"ABSREF\",80:\"RELREF\",81:\"ARGUMENT\",82:\"SEARCH\",83:\"TRANSPOSE\",84:\"ERROR\",85:\"STEP\",86:\"TYPE\",87:\"ECHO\",88:\"SET.NAME\",89:\"CALLER\",90:\"DEREF\",91:\"WINDOWS\",92:\"SERIES\",93:\"DOCUMENTS\",94:\"ACTIVE.CELL\",95:\"SELECTION\",96:\"RESULT\",97:\"ATAN2\",98:\"ASIN\",99:\"ACOS\",100:\"CHOOSE\",101:\"HLOOKUP\",102:\"VLOOKUP\",103:\"LINKS\",104:\"INPUT\",105:\"ISREF\",106:\"GET.FORMULA\",107:\"GET.NAME\",108:\"SET.VALUE\",109:\"LOG\",110:\"EXEC\",111:\"CHAR\",112:\"LOWER\",113:\"UPPER\",114:\"PROPER\",115:\"LEFT\",116:\"RIGHT\",117:\"EXACT\",118:\"TRIM\",119:\"REPLACE\",120:\"SUBSTITUTE\",121:\"CODE\",122:\"NAMES\",123:\"DIRECTORY\",124:\"FIND\",125:\"CELL\",126:\"ISERR\",127:\"ISTEXT\",128:\"ISNUMBER\",129:\"ISBLANK\",130:\"T\",131:\"N\",132:\"FOPEN\",133:\"FCLOSE\",134:\"FSIZE\",135:\"FREADLN\",136:\"FREAD\",137:\"FWRITELN\",138:\"FWRITE\",139:\"FPOS\",140:\"DATEVALUE\",141:\"TIMEVALUE\",142:\"SLN\",143:\"SYD\",144:\"DDB\",145:\"GET.DEF\",146:\"REFTEXT\",147:\"TEXTREF\",148:\"INDIRECT\",149:\"REGISTER\",150:\"CALL\",151:\"ADD.BAR\",152:\"ADD.MENU\",153:\"ADD.COMMAND\",154:\"ENABLE.COMMAND\",155:\"CHECK.COMMAND\",156:\"RENAME.COMMAND\",157:\"SHOW.BAR\",158:\"DELETE.MENU\",159:\"DELETE.COMMAND\",160:\"GET.CHART.ITEM\",161:\"DIALOG.BOX\",162:\"CLEAN\",163:\"MDETERM\",164:\"MINVERSE\",165:\"MMULT\",166:\"FILES\",167:\"IPMT\",168:\"PPMT\",169:\"COUNTA\",170:\"CANCEL.KEY\",171:\"FOR\",172:\"WHILE\",173:\"BREAK\",174:\"NEXT\",175:\"INITIATE\",176:\"REQUEST\",177:\"POKE\",178:\"EXECUTE\",179:\"TERMINATE\",180:\"RESTART\",181:\"HELP\",182:\"GET.BAR\",183:\"PRODUCT\",184:\"FACT\",185:\"GET.CELL\",186:\"GET.WORKSPACE\",187:\"GET.WINDOW\",188:\"GET.DOCUMENT\",189:\"DPRODUCT\",190:\"ISNONTEXT\",191:\"GET.NOTE\",192:\"NOTE\",193:\"STDEVP\",194:\"VARP\",195:\"DSTDEVP\",196:\"DVARP\",197:\"TRUNC\",198:\"ISLOGICAL\",199:\"DCOUNTA\",200:\"DELETE.BAR\",201:\"UNREGISTER\",204:\"USDOLLAR\",205:\"FINDB\",206:\"SEARCHB\",207:\"REPLACEB\",208:\"LEFTB\",209:\"RIGHTB\",210:\"MIDB\",211:\"LENB\",212:\"ROUNDUP\",213:\"ROUNDDOWN\",214:\"ASC\",215:\"DBCS\",216:\"RANK\",219:\"ADDRESS\",220:\"DAYS360\",221:\"TODAY\",222:\"VDB\",223:\"ELSE\",224:\"ELSE.IF\",225:\"END.IF\",226:\"FOR.CELL\",227:\"MEDIAN\",228:\"SUMPRODUCT\",229:\"SINH\",230:\"COSH\",231:\"TANH\",232:\"ASINH\",233:\"ACOSH\",234:\"ATANH\",235:\"DGET\",236:\"CREATE.OBJECT\",237:\"VOLATILE\",238:\"LAST.ERROR\",239:\"CUSTOM.UNDO\",240:\"CUSTOM.REPEAT\",241:\"FORMULA.CONVERT\",242:\"GET.LINK.INFO\",243:\"TEXT.BOX\",244:\"INFO\",245:\"GROUP\",246:\"GET.OBJECT\",247:\"DB\",248:\"PAUSE\",251:\"RESUME\",252:\"FREQUENCY\",253:\"ADD.TOOLBAR\",254:\"DELETE.TOOLBAR\",255:\"User\",256:\"RESET.TOOLBAR\",257:\"EVALUATE\",258:\"GET.TOOLBAR\",259:\"GET.TOOL\",260:\"SPELLING.CHECK\",261:\"ERROR.TYPE\",262:\"APP.TITLE\",263:\"WINDOW.TITLE\",264:\"SAVE.TOOLBAR\",265:\"ENABLE.TOOL\",266:\"PRESS.TOOL\",267:\"REGISTER.ID\",268:\"GET.WORKBOOK\",269:\"AVEDEV\",270:\"BETADIST\",271:\"GAMMALN\",272:\"BETAINV\",273:\"BINOMDIST\",274:\"CHIDIST\",275:\"CHIINV\",276:\"COMBIN\",277:\"CONFIDENCE\",278:\"CRITBINOM\",279:\"EVEN\",280:\"EXPONDIST\",281:\"FDIST\",282:\"FINV\",283:\"FISHER\",284:\"FISHERINV\",285:\"FLOOR\",286:\"GAMMADIST\",287:\"GAMMAINV\",288:\"CEILING\",289:\"HYPGEOMDIST\",290:\"LOGNORMDIST\",291:\"LOGINV\",292:\"NEGBINOMDIST\",293:\"NORMDIST\",294:\"NORMSDIST\",295:\"NORMINV\",296:\"NORMSINV\",297:\"STANDARDIZE\",298:\"ODD\",299:\"PERMUT\",300:\"POISSON\",301:\"TDIST\",302:\"WEIBULL\",303:\"SUMXMY2\",304:\"SUMX2MY2\",305:\"SUMX2PY2\",306:\"CHITEST\",307:\"CORREL\",308:\"COVAR\",309:\"FORECAST\",310:\"FTEST\",311:\"INTERCEPT\",312:\"PEARSON\",313:\"RSQ\",314:\"STEYX\",315:\"SLOPE\",316:\"TTEST\",317:\"PROB\",318:\"DEVSQ\",319:\"GEOMEAN\",320:\"HARMEAN\",321:\"SUMSQ\",322:\"KURT\",323:\"SKEW\",324:\"ZTEST\",325:\"LARGE\",326:\"SMALL\",327:\"QUARTILE\",328:\"PERCENTILE\",329:\"PERCENTRANK\",330:\"MODE\",331:\"TRIMMEAN\",332:\"TINV\",334:\"MOVIE.COMMAND\",335:\"GET.MOVIE\",336:\"CONCATENATE\",337:\"POWER\",338:\"PIVOT.ADD.DATA\",339:\"GET.PIVOT.TABLE\",340:\"GET.PIVOT.FIELD\",341:\"GET.PIVOT.ITEM\",342:\"RADIANS\",343:\"DEGREES\",344:\"SUBTOTAL\",345:\"SUMIF\",346:\"COUNTIF\",347:\"COUNTBLANK\",348:\"SCENARIO.GET\",349:\"OPTIONS.LISTS.GET\",350:\"ISPMT\",351:\"DATEDIF\",352:\"DATESTRING\",353:\"NUMBERSTRING\",354:\"ROMAN\",355:\"OPEN.DIALOG\",356:\"SAVE.DIALOG\",357:\"VIEW.GET\",358:\"GETPIVOTDATA\",359:\"HYPERLINK\",360:\"PHONETIC\",361:\"AVERAGEA\",362:\"MAXA\",363:\"MINA\",364:\"STDEVPA\",365:\"VARPA\",366:\"STDEVA\",367:\"VARA\",368:\"BAHTTEXT\",369:\"THAIDAYOFWEEK\",370:\"THAIDIGIT\",371:\"THAIMONTHOFYEAR\",372:\"THAINUMSOUND\",373:\"THAINUMSTRING\",374:\"THAISTRINGLENGTH\",375:\"ISTHAIDIGIT\",376:\"ROUNDBAHTDOWN\",377:\"ROUNDBAHTUP\",378:\"THAIYEAR\",379:\"RTD\",380:\"CUBEVALUE\",381:\"CUBEMEMBER\",382:\"CUBEMEMBERPROPERTY\",383:\"CUBERANKEDMEMBER\",384:\"HEX2BIN\",385:\"HEX2DEC\",386:\"HEX2OCT\",387:\"DEC2BIN\",388:\"DEC2HEX\",389:\"DEC2OCT\",390:\"OCT2BIN\",391:\"OCT2HEX\",392:\"OCT2DEC\",393:\"BIN2DEC\",394:\"BIN2OCT\",395:\"BIN2HEX\",396:\"IMSUB\",397:\"IMDIV\",398:\"IMPOWER\",399:\"IMABS\",400:\"IMSQRT\",401:\"IMLN\",402:\"IMLOG2\",403:\"IMLOG10\",404:\"IMSIN\",405:\"IMCOS\",406:\"IMEXP\",407:\"IMARGUMENT\",408:\"IMCONJUGATE\",409:\"IMAGINARY\",410:\"IMREAL\",411:\"COMPLEX\",412:\"IMSUM\",413:\"IMPRODUCT\",414:\"SERIESSUM\",415:\"FACTDOUBLE\",416:\"SQRTPI\",417:\"QUOTIENT\",418:\"DELTA\",419:\"GESTEP\",420:\"ISEVEN\",421:\"ISODD\",422:\"MROUND\",423:\"ERF\",424:\"ERFC\",425:\"BESSELJ\",426:\"BESSELK\",427:\"BESSELY\",428:\"BESSELI\",429:\"XIRR\",430:\"XNPV\",431:\"PRICEMAT\",432:\"YIELDMAT\",433:\"INTRATE\",434:\"RECEIVED\",435:\"DISC\",436:\"PRICEDISC\",437:\"YIELDDISC\",438:\"TBILLEQ\",439:\"TBILLPRICE\",440:\"TBILLYIELD\",441:\"PRICE\",442:\"YIELD\",443:\"DOLLARDE\",444:\"DOLLARFR\",445:\"NOMINAL\",446:\"EFFECT\",447:\"CUMPRINC\",448:\"CUMIPMT\",449:\"EDATE\",450:\"EOMONTH\",451:\"YEARFRAC\",452:\"COUPDAYBS\",453:\"COUPDAYS\",454:\"COUPDAYSNC\",455:\"COUPNCD\",456:\"COUPNUM\",457:\"COUPPCD\",458:\"DURATION\",459:\"MDURATION\",460:\"ODDLPRICE\",461:\"ODDLYIELD\",462:\"ODDFPRICE\",463:\"ODDFYIELD\",464:\"RANDBETWEEN\",465:\"WEEKNUM\",466:\"AMORDEGRC\",467:\"AMORLINC\",468:\"CONVERT\",724:\"SHEETJS\",469:\"ACCRINT\",470:\"ACCRINTM\",471:\"WORKDAY\",472:\"NETWORKDAYS\",473:\"GCD\",474:\"MULTINOMIAL\",475:\"LCM\",476:\"FVSCHEDULE\",477:\"CUBEKPIMEMBER\",478:\"CUBESET\",479:\"CUBESETCOUNT\",480:\"IFERROR\",481:\"COUNTIFS\",482:\"SUMIFS\",483:\"AVERAGEIF\",484:\"AVERAGEIFS\"},XE={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var ZE=\"undefined\"!=typeof Map;function JE(e,t,n){var r=0,i=e.length;if(n){if(ZE?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=ZE?n.get(t):n[t];r<o.length;++r)if(e[o[r]].t===t)return e.Count++,o[r]}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t},e.Count++,e.Unique++,n&&(ZE?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function ex(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(BS=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=jS(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=US(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function tx(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];\"xlml\"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function nx(e,t,n){var r=n.revssf[null!=t.z?t.z:\"General\"],i=60,o=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){db(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=o;++i)if(e[i].numFmtId===r)return i;return e[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function rx(e,t,n){if(e&&e[\"!ref\"]){var r=oC(e[\"!ref\"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error(\"Bad range (\"+n+\"): \"+e[\"!ref\"])}}var ix=[\"objects\",\"scenarios\",\"selectLockedCells\",\"selectUnlockedCells\"],ox=[\"formatColumns\",\"formatRows\",\"formatCells\",\"insertColumns\",\"insertRows\",\"insertHyperlinks\",\"deleteColumns\",\"deleteRows\",\"sort\",\"autoFilter\",\"pivotTables\"];function ax(e,t,n,r){if(e.c&&n[\"!comments\"].push([t,e.c]),void 0===e.v&&\"string\"!=typeof e.f||\"z\"===e.t&&!e.f)return\"\";var i=\"\",o=e.t,a=e.v;if(\"z\"!==e.t)switch(e.t){case\"b\":i=e.v?\"1\":\"0\";break;case\"n\":i=\"\"+e.v;break;case\"e\":i=VC[e.v];break;case\"d\":r&&r.cellDates?i=Ib(e.v,-1).toISOString():((e=Pb(e)).t=\"n\",i=\"\"+(e.v=xb(Ib(e.v)))),void 0===e.z&&(e.z=Ny[14]);break;default:i=e.v}var s=nw(\"v\",Wb(i)),l={r:t},c=nx(r.cellXfs,e,r);switch(0!==c&&(l.s=c),e.t){case\"n\":case\"z\":break;case\"d\":l.t=\"d\";break;case\"b\":l.t=\"b\";break;case\"e\":l.t=\"e\";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error(\"Text length must not exceed 32767 characters\");if(r&&r.bookSST){s=nw(\"v\",\"\"+JE(r.Strings,e.v,r.revStrings)),l.t=\"s\";break}l.t=\"str\"}if(e.t!=o&&(e.t=o,e.v=a),\"string\"==typeof e.f&&e.f){var d=e.F&&e.F.slice(0,t.length)==t?{t:\"array\",ref:e.F}:null;s=iw(\"f\",Wb(e.f),d)+(null!=e.v?s:\"\")}return e.l&&n[\"!links\"].push([t,e.l]),e.D&&(l.cm=1),iw(\"c\",s,l)}function sx(e,t,n,r){var i,o=[Bb,iw(\"worksheet\",null,{xmlns:sw[0],\"xmlns:r\":aw.r})],a=n.SheetNames[e],s=\"\",l=n.Sheets[a];null==l&&(l={});var c=l[\"!ref\"]||\"A1\",d=oC(c);if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error(\"Range \"+c+\" exceeds format limit A1:XFD1048576\");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),c=iC(d)}r||(r={}),l[\"!comments\"]=[];var u=[];!function(e,t,n,r,i){var o=!1,a={},s=null;if(\"xlsx\"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}o=!0,a.codeName=Jb(Wb(l))}if(e&&e[\"!outline\"]){var c={summaryBelow:1,summaryRight:1};e[\"!outline\"].above&&(c.summaryBelow=0),e[\"!outline\"].left&&(c.summaryRight=0),s=(s||\"\")+iw(\"outlinePr\",null,c)}(o||s)&&(i[i.length]=iw(\"sheetPr\",s,a))}(l,n,e,t,o),o[o.length]=iw(\"dimension\",null,{ref:c}),o[o.length]=function(e,t,n,r){var i={workbookViewId:\"0\"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?\"1\":\"0\"),iw(\"sheetViews\",iw(\"sheetView\",null,i),{})}(0,0,0,n),t.sheetFormat&&(o[o.length]=iw(\"sheetFormatPr\",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||\"16\",baseColWidth:t.sheetFormat.baseColWidth||\"10\",outlineLevelRow:t.sheetFormat.outlineLevelRow||\"7\"})),null!=l[\"!cols\"]&&l[\"!cols\"].length>0&&(o[o.length]=function(e,t){for(var n,r=[\"<cols>\"],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=iw(\"col\",null,ex(i,n)));return r[r.length]=\"</cols>\",r.join(\"\")}(0,l[\"!cols\"])),o[i=o.length]=\"<sheetData/>\",l[\"!links\"]=[],null!=l[\"!ref\"]&&(s=function(e,t,n,r){var i,o,a=[],s=[],l=oC(e[\"!ref\"]),c=\"\",d=\"\",u=[],h=0,p=0,g=e[\"!rows\"],f=Array.isArray(e),m={r:d},v=-1;for(p=l.s.c;p<=l.e.c;++p)u[p]=eC(p);for(h=l.s.r;h<=l.e.r;++h){for(s=[],d=Zw(h),p=l.s.c;p<=l.e.c;++p){i=u[p]+d;var y=f?(e[h]||[])[p]:e[i];void 0!==y&&null!=(c=ax(y,i,e,t))&&s.push(c)}(s.length>0||g&&g[h])&&(m={r:d},g&&g[h]&&((o=g[h]).hidden&&(m.hidden=1),v=-1,o.hpx?v=YS(o.hpx):o.hpt&&(v=o.hpt),v>-1&&(m.ht=v,m.customHeight=1),o.level&&(m.outlineLevel=o.level)),a[a.length]=iw(\"row\",s.join(\"\"),m))}if(g)for(;h<g.length;++h)g&&g[h]&&(m={r:h+1},(o=g[h]).hidden&&(m.hidden=1),v=-1,o.hpx?v=YS(o.hpx):o.hpt&&(v=o.hpt),v>-1&&(m.ht=v,m.customHeight=1),o.level&&(m.outlineLevel=o.level),a[a.length]=iw(\"row\",\"\",m));return a.join(\"\")}(l,t),s.length>0&&(o[o.length]=s)),o.length>i+1&&(o[o.length]=\"</sheetData>\",o[i]=o[i].replace(\"/>\",\">\")),l[\"!protect\"]&&(o[o.length]=function(e){var t={sheet:1};return ix.forEach((function(n){null!=e[n]&&e[n]&&(t[n]=\"1\")})),ox.forEach((function(n){null==e[n]||e[n]||(t[n]=\"0\")})),e.password&&(t.password=zS(e.password).toString(16).toUpperCase()),iw(\"sheetProtection\",null,t)}(l[\"!protect\"])),null!=l[\"!autofilter\"]&&(o[o.length]=function(e,t,n,r){var i=\"string\"==typeof e.ref?e.ref:iC(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,a=rC(i);a.s.r==a.e.r&&(a.e.r=rC(t[\"!ref\"]).e.r,i=iC(a));for(var s=0;s<o.length;++s){var l=o[s];if(\"_xlnm._FilterDatabase\"==l.Name&&l.Sheet==r){l.Ref=\"'\"+n.SheetNames[r]+\"'!\"+i;break}}return s==o.length&&o.push({Name:\"_xlnm._FilterDatabase\",Sheet:r,Ref:\"'\"+n.SheetNames[r]+\"'!\"+i}),iw(\"autoFilter\",null,{ref:i})}(l[\"!autofilter\"],l,n,e)),null!=l[\"!merges\"]&&l[\"!merges\"].length>0&&(o[o.length]=function(e){if(0===e.length)return\"\";for(var t='<mergeCells count=\"'+e.length+'\">',n=0;n!=e.length;++n)t+='<mergeCell ref=\"'+iC(e[n])+'\"/>';return t+\"</mergeCells>\"}(l[\"!merges\"]));var h,p,g=-1,f=-1;return l[\"!links\"].length>0&&(o[o.length]=\"<hyperlinks>\",l[\"!links\"].forEach((function(e){e[1].Target&&(h={ref:e[0]},\"#\"!=e[1].Target.charAt(0)&&(f=YC(r,-1,Wb(e[1].Target).replace(/#.*$/,\"\"),UC.HLINK),h[\"r:id\"]=\"rId\"+f),(g=e[1].Target.indexOf(\"#\"))>-1&&(h.location=Wb(e[1].Target.slice(g+1))),e[1].Tooltip&&(h.tooltip=Wb(e[1].Tooltip)),o[o.length]=iw(\"hyperlink\",null,h))})),o[o.length]=\"</hyperlinks>\"),delete l[\"!links\"],null!=l[\"!margins\"]&&(o[o.length]=(tx(p=l[\"!margins\"]),iw(\"pageMargins\",null,p))),t&&!t.ignoreEC&&null!=t.ignoreEC||(o[o.length]=nw(\"ignoredErrors\",iw(\"ignoredError\",null,{numberStoredAsText:1,sqref:c}))),u.length>0&&(f=YC(r,-1,\"../drawings/drawing\"+(e+1)+\".xml\",UC.DRAW),o[o.length]=iw(\"drawing\",null,{\"r:id\":\"rId\"+f}),l[\"!drawing\"]=u),l[\"!comments\"].length>0&&(f=YC(r,-1,\"../drawings/vmlDrawing\"+(e+1)+\".vml\",UC.VML),o[o.length]=iw(\"legacyDrawing\",null,{\"r:id\":\"rId\"+f}),l[\"!legacy\"]=f),o.length>1&&(o[o.length]=\"</worksheet>\",o[1]=o[1].replace(\"/>\",\">\")),o.join(\"\")}function lx(e,t,n,r){var i=function(e,t,n){var r=Uw(145),i=(n[\"!rows\"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var o=320;i.hpx?o=20*YS(i.hpx):i.hpt&&(o=20*i.hpt),r.write_shift(2,o),r.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),r.write_shift(1,a),r.write_shift(1,0);var s=0,l=r.l;r.l+=4;for(var c={r:e,c:0},d=0;d<16;++d)if(!(t.s.c>d+1<<10||t.e.c<d<<10)){for(var u=-1,h=-1,p=d<<10;p<d+1<<10;++p)c.c=p,(Array.isArray(n)?(n[c.r]||[])[c.c]:n[nC(c)])&&(u<0&&(u=p),h=p);u<0||(++s,r.write_shift(4,u),r.write_shift(4,h))}var g=r.l;return r.l=l,r.write_shift(4,s),r.l=g,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(i.length>17||(t[\"!rows\"]||[])[r])&&$w(e,0,i)}var cx=OC,dx=kC;var ux=OC,hx=kC,px=[\"left\",\"right\",\"top\",\"bottom\",\"header\",\"footer\"];function gx(e,t,n,r,i,o,a){if(void 0===t.v)return!1;var s=\"\";switch(t.t){case\"b\":s=t.v?\"1\":\"0\";break;case\"d\":(t=Pb(t)).z=t.z||Ny[14],t.v=xb(Ib(t.v)),t.t=\"n\";break;case\"n\":case\"e\":s=\"\"+t.v;break;default:s=t.v}var l={r:n,c:r};switch(l.s=nx(i.cellXfs,t,i),t.l&&o[\"!links\"].push([nC(l),t.l]),t.c&&o[\"!comments\"].push([nC(l),t.c]),t.t){case\"s\":case\"str\":return i.bookSST?(s=JE(i.Strings,t.v,i.revStrings),l.t=\"s\",l.v=s,a?$w(e,18,function(e,t,n){return null==n&&(n=Uw(8)),bC(t,n),n.write_shift(4,t.v),n}(0,l)):$w(e,7,function(e,t,n){return null==n&&(n=Uw(12)),vC(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t=\"str\",a?$w(e,17,function(e,t,n){return null==n&&(n=Uw(8+4*e.v.length)),bC(t,n),hC(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):$w(e,6,function(e,t,n){return null==n&&(n=Uw(12+4*e.v.length)),vC(t,n),hC(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case\"n\":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?a?$w(e,13,function(e,t,n){return null==n&&(n=Uw(8)),bC(t,n),RC(e.v,n),n}(t,l)):$w(e,2,function(e,t,n){return null==n&&(n=Uw(12)),vC(t,n),RC(e.v,n),n}(t,l)):a?$w(e,16,function(e,t,n){return null==n&&(n=Uw(12)),bC(t,n),NC(e.v,n),n}(t,l)):$w(e,5,function(e,t,n){return null==n&&(n=Uw(16)),vC(t,n),NC(e.v,n),n}(t,l)),!0;case\"b\":return l.t=\"b\",a?$w(e,15,function(e,t,n){return null==n&&(n=Uw(5)),bC(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):$w(e,4,function(e,t,n){return null==n&&(n=Uw(9)),vC(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case\"e\":return l.t=\"e\",a?$w(e,14,function(e,t,n){return null==n&&(n=Uw(8)),bC(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):$w(e,3,function(e,t,n){return null==n&&(n=Uw(9)),vC(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return a?$w(e,12,function(e,t,n){return null==n&&(n=Uw(4)),bC(t,n)}(0,l)):$w(e,1,function(e,t,n){return null==n&&(n=Uw(8)),vC(t,n)}(0,l)),!0}function fx(e,t,n,r){var i=Ww(),o=n.SheetNames[e],a=n.Sheets[o]||{},s=o;try{n&&n.Workbook&&(s=n.Workbook.Sheets[e].CodeName||s)}catch(e){}var l,c,d=oC(a[\"!ref\"]||\"A1\");if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error(\"Range \"+(a[\"!ref\"]||\"A1\")+\" exceeds format limit A1:XFD1048576\");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return a[\"!links\"]=[],a[\"!comments\"]=[],$w(i,129),(n.vbaraw||a[\"!outline\"])&&$w(i,147,function(e,t,n){null==n&&(n=Uw(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return PC({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),CC(e,n),n.slice(0,n.l)}(s,a[\"!outline\"])),$w(i,148,dx(d)),function(e,t,n){$w(e,133),$w(e,137,function(e,t,n){null==n&&(n=Uw(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),$w(e,138),$w(e,134)}(i,0,n.Workbook),function(e,t){t&&t[\"!cols\"]&&($w(e,390),t[\"!cols\"].forEach((function(t,n){t&&$w(e,60,function(e,t,n){null==n&&(n=Uw(18));var r=ex(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),\"number\"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}(n,t))})),$w(e,391))}(i,a),function(e,t,n,r){var i,o=oC(t[\"!ref\"]||\"A1\"),a=\"\",s=[];$w(e,145);var l=Array.isArray(t),c=o.e.r;t[\"!rows\"]&&(c=Math.max(o.e.r,t[\"!rows\"].length-1));for(var d=o.s.r;d<=c;++d){a=Zw(d),lx(e,t,o,d);var u=!1;if(d<=o.e.r)for(var h=o.s.c;h<=o.e.c;++h){d===o.s.r&&(s[h]=eC(h)),i=s[h]+a;var p=l?(t[d]||[])[h]:t[i];u=!!p&&gx(e,p,d,h,r,t,u)}}$w(e,146)}(i,a,0,t),function(e,t){var n,r;t[\"!protect\"]&&$w(e,535,(n=t[\"!protect\"],null==r&&(r=Uw(66)),r.write_shift(2,n.password?zS(n.password):0),r.write_shift(4,1),[[\"objects\",!1],[\"scenarios\",!1],[\"formatCells\",!0],[\"formatColumns\",!0],[\"formatRows\",!0],[\"insertColumns\",!0],[\"insertRows\",!0],[\"insertHyperlinks\",!0],[\"deleteColumns\",!0],[\"deleteRows\",!0],[\"selectLockedCells\",!1],[\"sort\",!0],[\"autoFilter\",!0],[\"pivotTables\",!0],[\"selectUnlockedCells\",!1]].forEach((function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),r))}(i,a),function(e,t,n,r){if(t[\"!autofilter\"]){var i=t[\"!autofilter\"],o=\"string\"==typeof i.ref?i.ref:iC(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,s=rC(o);s.s.r==s.e.r&&(s.e.r=rC(t[\"!ref\"]).e.r,o=iC(s));for(var l=0;l<a.length;++l){var c=a[l];if(\"_xlnm._FilterDatabase\"==c.Name&&c.Sheet==r){c.Ref=\"'\"+n.SheetNames[r]+\"'!\"+o;break}}l==a.length&&a.push({Name:\"_xlnm._FilterDatabase\",Sheet:r,Ref:\"'\"+n.SheetNames[r]+\"'!\"+o}),$w(e,161,kC(oC(o))),$w(e,162)}}(i,a,n,e),function(e,t){var n,r;t&&t[\"!merges\"]&&($w(e,177,(n=t[\"!merges\"].length,null==r&&(r=Uw(4)),r.write_shift(4,n),r)),t[\"!merges\"].forEach((function(t){$w(e,176,hx(t))})),$w(e,178))}(i,a),function(e,t,n){t[\"!links\"].forEach((function(t){if(t[1].Target){var r=YC(n,-1,t[1].Target.replace(/#.*$/,\"\"),UC.HLINK);$w(e,494,function(e,t){var n=Uw(50+4*(e[1].Target.length+(e[1].Tooltip||\"\").length));kC({s:tC(e[0]),e:tC(e[0])},n),TC(\"rId\"+t,n);var r=e[1].Target.indexOf(\"#\");return hC((-1==r?\"\":e[1].Target.slice(r+1))||\"\",n),hC(e[1].Tooltip||\"\",n),hC(\"\",n),n.slice(0,n.l)}(t,r))}})),delete t[\"!links\"]}(i,a,r),a[\"!margins\"]&&$w(i,476,(l=a[\"!margins\"],null==c&&(c=Uw(48)),tx(l),px.forEach((function(e){NC(l[e],c)})),c)),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){var n,r;t&&t[\"!ref\"]&&($w(e,648),$w(e,649,(n=oC(t[\"!ref\"]),(r=Uw(24)).write_shift(4,4),r.write_shift(4,1),kC(n,r),r)),$w(e,650))}(i,a),function(e,t,n,r){if(t[\"!comments\"].length>0){var i=YC(r,-1,\"../drawings/vmlDrawing\"+(n+1)+\".vml\",UC.VML);$w(e,551,TC(\"rId\"+i)),t[\"!legacy\"]=i}}(i,a,e,r),$w(i,130),i.end()}var mx=[[\"allowRefreshQuery\",!1,\"bool\"],[\"autoCompressPictures\",!0,\"bool\"],[\"backupFile\",!1,\"bool\"],[\"checkCompatibility\",!1,\"bool\"],[\"CodeName\",\"\"],[\"date1904\",!1,\"bool\"],[\"defaultThemeVersion\",0,\"int\"],[\"filterPrivacy\",!1,\"bool\"],[\"hidePivotFieldList\",!1,\"bool\"],[\"promptedSolutions\",!1,\"bool\"],[\"publishItems\",!1,\"bool\"],[\"refreshAllConnections\",!1,\"bool\"],[\"saveExternalLinkValues\",!0,\"bool\"],[\"showBorderUnselectedTables\",!0,\"bool\"],[\"showInkAnnotation\",!0,\"bool\"],[\"showObjects\",\"all\"],[\"showPivotChartFilter\",!1,\"bool\"],[\"updateLinks\",\"userSet\"]],vx=\"][*?/\\\\\".split(\"\");function yx(e,t){if(e.length>31){if(t)return!1;throw new Error(\"Sheet names cannot exceed 31 chars\")}var n=!0;return vx.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error(\"Sheet name cannot contain : \\\\ / ? * [ ]\");n=!1}})),n}function bx(e){var t=[Bb];t[t.length]=iw(\"workbook\",null,{xmlns:sw[0],\"xmlns:r\":aw.r});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:\"ThisWorkbook\"};e.Workbook&&e.Workbook.WBProps&&(mx.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=iw(\"workbookPr\",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]=\"<bookViews>\",o=0;o!=e.SheetNames.length&&i[o]&&i[o].Hidden;++o);o==e.SheetNames.length&&(o=0),t[t.length]='<workbookView firstSheet=\"'+o+'\" activeTab=\"'+o+'\"/>',t[t.length]=\"</bookViews>\"}for(t[t.length]=\"<sheets>\",o=0;o!=e.SheetNames.length;++o){var a={name:Wb(e.SheetNames[o].slice(0,31))};if(a.sheetId=\"\"+(o+1),a[\"r:id\"]=\"rId\"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state=\"hidden\";break;case 2:a.state=\"veryHidden\"}t[t.length]=iw(\"sheet\",null,a)}return t[t.length]=\"</sheets>\",n&&(t[t.length]=\"<definedNames>\",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=\"\"+e.Sheet),e.Hidden&&(n.hidden=\"1\"),e.Ref&&(t[t.length]=iw(\"definedName\",Wb(e.Ref),n))})),t[t.length]=\"</definedNames>\"),t.length>2&&(t[t.length]=\"</workbook>\",t[1]=t[1].replace(\"/>\",\">\")),t.join(\"\")}function wx(e,t){var n=Ww();return $w(n,131),$w(n,128,function(e,t){t||(t=Uw(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return hC(\"SheetJS\",t),hC(ey.version,t),hC(ey.version,t),hC(\"7262\",t),t.length>t.l?t.slice(0,t.l):t}()),$w(n,153,function(e,t){t||(t=Uw(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),CC(e&&e.CodeName||\"ThisWorkbook\",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,i=t.Workbook.Sheets,o=0,a=-1,s=-1;o<i.length;++o)!i[o]||!i[o].Hidden&&-1==a?a=o:1==i[o].Hidden&&-1==s&&(s=o);s>a||($w(e,135),$w(e,158,(n=a,r||(r=Uw(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),$w(e,136))}}(n,e),function(e,t){$w(e,143);for(var n=0;n!=t.SheetNames.length;++n)$w(e,156,(r={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:\"rId\"+(n+1),name:t.SheetNames[n]},(i=void 0)||(i=Uw(127)),i.write_shift(4,r.Hidden),i.write_shift(4,r.iTabID),TC(r.strRelID,i),hC(r.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i));var r,i;$w(e,144)}(n,e),$w(n,132),n.end()}function Cx(e,t,n,r,i){return(\".bin\"===t.slice(-4)?fx:sx)(e,n,r,i)}function Sx(e,t,n){return(\".bin\"===t.slice(-4)?pE:dE)(e,n)}function Ex(e){return iw(\"NamedRange\",null,{\"ss:Name\":e.Name,\"ss:RefersTo\":\"=\"+vE(e.Ref,{r:0,c:0})})}function xx(e,t,n,r,i,o,a){if(!e||null==e.v&&null==e.f)return\"\";var s={};if(e.f&&(s[\"ss:Formula\"]=\"=\"+Wb(vE(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var l=tC(e.F.slice(t.length+1));s[\"ss:ArrayRange\"]=\"RC:R\"+(l.r==a.r?\"\":\"[\"+(l.r-a.r)+\"]\")+\"C\"+(l.c==a.c?\"\":\"[\"+(l.c-a.c)+\"]\")}if(e.l&&e.l.Target&&(s[\"ss:HRef\"]=Wb(e.l.Target),e.l.Tooltip&&(s[\"x:HRefScreenTip\"]=Wb(e.l.Tooltip))),n[\"!merges\"])for(var c=n[\"!merges\"],d=0;d!=c.length;++d)c[d].s.c==a.c&&c[d].s.r==a.r&&(c[d].e.c>c[d].s.c&&(s[\"ss:MergeAcross\"]=c[d].e.c-c[d].s.c),c[d].e.r>c[d].s.r&&(s[\"ss:MergeDown\"]=c[d].e.r-c[d].s.r));var u=\"\",h=\"\";switch(e.t){case\"z\":if(!r.sheetStubs)return\"\";break;case\"n\":u=\"Number\",h=String(e.v);break;case\"b\":u=\"Boolean\",h=e.v?\"1\":\"0\";break;case\"e\":u=\"Error\",h=VC[e.v];break;case\"d\":u=\"DateTime\",h=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||Ny[14]);break;case\"s\":u=\"String\",h=((e.v||\"\")+\"\").replace(jb,(function(e){return Hb[e]})).replace(Yb,(function(e){return\"&#x\"+e.charCodeAt(0).toString(16).toUpperCase()+\";\"}))}var p=nx(r.cellXfs,e,r);s[\"ss:StyleID\"]=\"s\"+(21+p),s[\"ss:Index\"]=a.c+1;var g=null!=e.v?h:\"\",f=\"z\"==e.t?\"\":'<Data ss:Type=\"'+u+'\">'+g+\"</Data>\";return(e.c||[]).length>0&&(f+=e.c.map((function(e){var t=iw(\"ss:Data\",(e.t||\"\").replace(/(\\r\\n|[\\r\\n])/g,\"&#10;\"),{xmlns:\"http://www.w3.org/TR/REC-html40\"});return iw(\"Comment\",t,{\"ss:Author\":e.a})})).join(\"\")),iw(\"Cell\",f,s)}function Ax(e,t){var n='<Row ss:Index=\"'+(e+1)+'\"';return t&&(t.hpt&&!t.hpx&&(t.hpx=KS(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight=\"0\" ss:Height=\"'+t.hpx+'\"'),t.hidden&&(n+=' ss:Hidden=\"1\"')),n+\">\"}function Tx(e,t,n){var r=[],i=n.SheetNames[e],o=n.Sheets[i],a=o?function(e,t,n,r){if(!e)return\"\";if(!((r||{}).Workbook||{}).Names)return\"\";for(var i=r.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==n&&(s.Name.match(/^_xlfn\\./)||o.push(Ex(s)))}return o.join(\"\")}(o,0,e,n):\"\";return a.length>0&&r.push(\"<Names>\"+a+\"</Names>\"),a=o?function(e,t,n,r){if(!e[\"!ref\"])return\"\";var i=oC(e[\"!ref\"]),o=e[\"!merges\"]||[],a=0,s=[];e[\"!cols\"]&&e[\"!cols\"].forEach((function(e,t){WS(e);var n=!!e.width,r=ex(t,e),i={\"ss:Index\":t+1};n&&(i[\"ss:Width\"]=HS(r.width)),e.hidden&&(i[\"ss:Hidden\"]=\"1\"),s.push(iw(\"Column\",null,i))}));for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var d=[Ax(c,(e[\"!rows\"]||[])[c])],u=i.s.c;u<=i.e.c;++u){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>u||o[a].s.r>c||o[a].e.c<u||o[a].e.r<c)){o[a].s.c==u&&o[a].s.r==c||(h=!0);break}if(!h){var p={r:c,c:u},g=nC(p),f=l?(e[c]||[])[u]:e[g];d.push(xx(f,g,e,t,0,0,p))}}d.push(\"</Row>\"),d.length>2&&s.push(d.join(\"\"))}return s.join(\"\")}(o,t):\"\",a.length>0&&r.push(\"<Table>\"+a+\"</Table>\"),r.push(function(e,t,n,r){if(!e)return\"\";var i=[];if(e[\"!margins\"]&&(i.push(\"<PageSetup>\"),e[\"!margins\"].header&&i.push(iw(\"Header\",null,{\"x:Margin\":e[\"!margins\"].header})),e[\"!margins\"].footer&&i.push(iw(\"Footer\",null,{\"x:Margin\":e[\"!margins\"].footer})),i.push(iw(\"PageMargins\",null,{\"x:Bottom\":e[\"!margins\"].bottom||\"0.75\",\"x:Left\":e[\"!margins\"].left||\"0.7\",\"x:Right\":e[\"!margins\"].right||\"0.7\",\"x:Top\":e[\"!margins\"].top||\"0.75\"})),i.push(\"</PageSetup>\")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(iw(\"Visible\",1==r.Workbook.Sheets[n].Hidden?\"SheetHidden\":\"SheetVeryHidden\",{}));else{for(var o=0;o<n&&(!r.Workbook.Sheets[o]||r.Workbook.Sheets[o].Hidden);++o);o==n&&i.push(\"<Selected/>\")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push(\"<DisplayRightToLeft/>\"),e[\"!protect\"]&&(i.push(nw(\"ProtectContents\",\"True\")),e[\"!protect\"].objects&&i.push(nw(\"ProtectObjects\",\"True\")),e[\"!protect\"].scenarios&&i.push(nw(\"ProtectScenarios\",\"True\")),null==e[\"!protect\"].selectLockedCells||e[\"!protect\"].selectLockedCells?null==e[\"!protect\"].selectUnlockedCells||e[\"!protect\"].selectUnlockedCells||i.push(nw(\"EnableSelection\",\"UnlockedCells\")):i.push(nw(\"EnableSelection\",\"NoSelection\")),[[\"formatCells\",\"AllowFormatCells\"],[\"formatColumns\",\"AllowSizeCols\"],[\"formatRows\",\"AllowSizeRows\"],[\"insertColumns\",\"AllowInsertCols\"],[\"insertRows\",\"AllowInsertRows\"],[\"insertHyperlinks\",\"AllowInsertHyperlinks\"],[\"deleteColumns\",\"AllowDeleteCols\"],[\"deleteRows\",\"AllowDeleteRows\"],[\"sort\",\"AllowSort\"],[\"autoFilter\",\"AllowFilter\"],[\"pivotTables\",\"AllowUsePivotTables\"]].forEach((function(t){e[\"!protect\"][t[0]]&&i.push(\"<\"+t[1]+\"/>\")}))),0==i.length?\"\":iw(\"WorksheetOptions\",i.join(\"\"),{xmlns:lw.x})}(o,0,e,n)),r.join(\"\")}function Dx(e,t){t||(t={}),e.SSF||(e.SSF=Pb(Ny)),e.SSF&&(hb(),ub(e.SSF),t.revssf=Sb(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],nx(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(function(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return bb(rS).map((function(e){for(var t=0;t<QC.length;++t)if(QC[t][1]==e)return QC[t];for(t=0;t<JC.length;++t)if(JC[t][1]==e)return JC[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var i=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];\"date\"===r[2]&&(i=new Date(i).toISOString().replace(/\\.\\d*Z/,\"Z\")),\"number\"==typeof i?i=String(i):!0===i||!1===i?i=i?\"1\":\"0\":i instanceof Date&&(i=new Date(i).toISOString().replace(/\\.\\d*Z/,\"\")),n.push(nw(rS[r[1]]||r[1],i))}})),iw(\"DocumentProperties\",n.join(\"\"),{xmlns:lw.o})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=[\"Worksheets\",\"SheetNames\"],r=\"CustomDocumentProperties\",i=[];return e&&bb(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<QC.length;++r)if(t==QC[r][1])return;for(r=0;r<JC.length;++r)if(t==JC[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var o=e[t],a=\"string\";\"number\"==typeof o?(a=\"float\",o=String(o)):!0===o||!1===o?(a=\"boolean\",o=o?\"1\":\"0\"):o=String(o),i.push(iw($b(t),o,{\"dt:dt\":a}))}})),t&&bb(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],o=\"string\";\"number\"==typeof r?(o=\"float\",r=String(r)):!0===r||!1===r?(o=\"boolean\",r=r?\"1\":\"0\"):r instanceof Date?(o=\"dateTime.tz\",r=r.toISOString()):r=String(r),i.push(iw($b(n),r,{\"dt:dt\":o}))}})),\"<\"+r+' xmlns=\"'+lw.o+'\">'+i.join(\"\")+\"</\"+r+\">\"}(e.Props,e.Custprops)),n.join(\"\")}(e,t)),n.push(\"\"),n.push(\"\"),n.push(\"\");for(var r=0;r<e.SheetNames.length;++r)n.push(iw(\"Worksheet\",Tx(r,t,e),{\"ss:Name\":Wb(e.SheetNames[r])}));return n[2]=function(e,t){var n=['<Style ss:ID=\"Default\" ss:Name=\"Normal\"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(iw(\"NumberFormat\",null,{\"ss:Format\":Wb(Ny[e.numFmtId])}));var i={\"ss:ID\":\"s\"+(21+t)};n.push(iw(\"Style\",r.join(\"\"),i))})),iw(\"Styles\",n.join(\"\"))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return\"\";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];null==i.Sheet&&(i.Name.match(/^_xlfn\\./)||n.push(Ex(i)))}return iw(\"Names\",n.join(\"\"))}(e),Bb+iw(\"Workbook\",n.join(\"\"),{xmlns:lw.ss,\"xmlns:o\":lw.o,\"xmlns:x\":lw.x,\"xmlns:ss\":lw.ss,\"xmlns:dt\":lw.dt,\"xmlns:html\":lw.html})}var Rx={SI:\"e0859ff2f94f6810ab9108002b27b3d9\",DSI:\"02d5cdd59c2e1b10939708002b2cf9ae\",UDI:\"05d5cdd59c2e1b10939708002b2cf9ae\"};var Mx={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}},1:{f:function(e){return[mC(e)]}},2:{f:function(e){return[mC(e),DC(e),\"n\"]}},3:{f:function(e){return[mC(e),e.read_shift(1),\"e\"]}},4:{f:function(e){return[mC(e),e.read_shift(1),\"b\"]}},5:{f:function(e){return[mC(e),IC(e),\"n\"]}},6:{f:function(e){return[mC(e),uC(e),\"str\"]}},7:{f:function(e){return[mC(e),e.read_shift(4),\"s\"]}},8:{f:function(e,t,n){var r=e.l+t,i=mC(e);i.r=n[\"!row\"];var o=[i,uC(e),\"str\"];if(n.cellFormula){e.l+=2;var a=$E(e,r-e.l,n);o[3]=jE(a,0,i,n.supbooks,n)}else e.l=r;return o}},9:{f:function(e,t,n){var r=e.l+t,i=mC(e);i.r=n[\"!row\"];var o=[i,IC(e),\"n\"];if(n.cellFormula){e.l+=2;var a=$E(e,r-e.l,n);o[3]=jE(a,0,i,n.supbooks,n)}else e.l=r;return o}},10:{f:function(e,t,n){var r=e.l+t,i=mC(e);i.r=n[\"!row\"];var o=[i,e.read_shift(1),\"b\"];if(n.cellFormula){e.l+=2;var a=$E(e,r-e.l,n);o[3]=jE(a,0,i,n.supbooks,n)}else e.l=r;return o}},11:{f:function(e,t,n){var r=e.l+t,i=mC(e);i.r=n[\"!row\"];var o=[i,e.read_shift(1),\"e\"];if(n.cellFormula){e.l+=2;var a=$E(e,r-e.l,n);o[3]=jE(a,0,i,n.supbooks,n)}else e.l=r;return o}},12:{f:function(e){return[yC(e)]}},13:{f:function(e){return[yC(e),DC(e),\"n\"]}},14:{f:function(e){return[yC(e),e.read_shift(1),\"e\"]}},15:{f:function(e){return[yC(e),e.read_shift(1),\"b\"]}},16:{f:function(e){return[yC(e),IC(e),\"n\"]}},17:{f:function(e){return[yC(e),uC(e),\"str\"]}},18:{f:function(e){return[yC(e),e.read_shift(4),\"s\"]}},19:{f:gC},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=xC(e),a=YE(e,0,n),s=SC(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign=\"superscript\";break;case 2:r.vertAlign=\"subscript\"}var o=e.read_shift(1);0!=o&&(r.underline=o);var a=e.read_shift(1);a>0&&(r.family=a);var s=e.read_shift(1);switch(s>0&&(r.charset=s),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),i=e.read_shift(2,\"i\"),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var l=GC[r];l&&(t.rgb=VS(l));break;case 2:t.rgb=VS([o,a,s]);break;case 3:t.theme=r}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:r.scheme=\"major\";break;case 2:r.scheme=\"minor\"}return r.name=uC(e),r}},44:{f:function(e,t){return[e.read_shift(2),uC(e)]}},45:{f:JS},46:{f:rE},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,\"i\")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function(e,t,n){if(!n.cellStyles)return jw(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}},62:{f:function(e){return[mC(e),gC(e),\"is\"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=nC(n);var r=e.read_shift(1);return 2&r&&(t.l=\"1\"),8&r&&(t.a=\"1\"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:jw,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=wC(e,t-19),n}},148:{f:cx,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?uC(e):\"\";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=[\"all\",\"placeholders\",\"none\"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=[\"userSet\",\"never\",\"always\"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=AC(e,t-8),n.name=uC(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:OC},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:ux},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:uC(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:AC},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=pS(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);0!=o--;)r.push(bS(e,n.biff,n));if(e.l!=i)throw new Error(\"Bad ExternSheet: \"+e.l+\" != \"+i);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,i=MC(e),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=WE(e,r-e.l,n);a[1]=s}else e.l=r;return a}},427:{f:function(e,t,n){var r=e.l+t,i=[OC(e,16)];if(n.cellFormula){var o=KE(e,r-e.l,n);i[1]=o,e.l=r}else e.l=r;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return px.forEach((function(n){t[n]=IC(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=OC(e,16),i=SC(e),o=uC(e),a=uC(e),s=uC(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:AC},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:hE},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=OC(e,16);return t.rfx=n.s,t.ref=nC(n.s),e.l+=16,t}},636:{T:-1},637:{f:fC},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:uC(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:\"\"}};function Ox(e,t,n,r){var i=t;if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&Mw(n)&&e.push(n)}}function kx(e,t,n){return e||(e=Uw(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function Ix(e,t,n,r){if(null!=t.v)switch(t.t){case\"d\":case\"n\":var i=\"d\"==t.t?xb(Ib(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?Ox(e,2,function(e,t,n){var r=Uw(9);return kx(r,e,t),r.write_shift(2,n),r}(n,r,i)):Ox(e,3,function(e,t,n){var r=Uw(15);return kx(r,e,t),r.write_shift(8,n,\"f\"),r}(n,r,i)));case\"b\":case\"e\":return void Ox(e,5,function(e,t,n,r){var i=Uw(9);return kx(i,e,t),hS(n,r||\"b\",i),i}(n,r,t.v,t.t));case\"s\":case\"str\":return void Ox(e,4,function(e,t,n){var r=Uw(8+2*n.length);return kx(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,\"sbcs\"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||\"\").slice(0,255)))}Ox(e,1,kx(null,n,r))}function Nx(e,t,n,r,i){var o=16+nx(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)Ox(e,6,function(e,t,n,r,i){var o=yS(t,n,i),a=function(e){if(null==e){var t=Uw(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return NC(\"number\"==typeof e?e:0)}(e.v),s=Uw(6);s.write_shift(2,33),s.write_shift(4,0);for(var l=Uw(e.bf.length),c=0;c<e.bf.length;++c)l[c]=e.bf[c];return Cy([o,a,s,l])}(t,n,r,0,o));else switch(t.t){case\"d\":case\"n\":Ox(e,515,function(e,t,n,r){var i=Uw(14);return yS(e,t,r,i),NC(n,i),i}(n,r,\"d\"==t.t?xb(Ib(t.v)):t.v,o));break;case\"b\":case\"e\":Ox(e,517,function(e,t,n,r,i,o){var a=Uw(8);return yS(e,t,r,a),hS(n,o,a),a}(n,r,t.v,o,0,t.t));break;case\"s\":case\"str\":i.bookSST?Ox(e,253,function(e,t,n,r){var i=Uw(10);return yS(e,t,r,i),i.write_shift(4,n),i}(n,r,JE(i.Strings,t.v,i.revStrings),o)):Ox(e,516,function(e,t,n,r,i){var o=!i||8==i.biff,a=Uw(+o+8+(1+o)*n.length);return yS(e,t,r,a),a.write_shift(2,n.length),o&&a.write_shift(1,1),a.write_shift((1+o)*n.length,n,o?\"utf16le\":\"sbcs\"),a}(n,r,(t.v||\"\").slice(0,255),o,i));break;default:Ox(e,513,yS(n,r,o))}else Ox(e,513,yS(n,r,o))}function Px(e,t,n){var r,i,o,a=Ww(),s=n.SheetNames[e],l=n.Sheets[s]||{},c=(n||{}).Workbook||{},d=(c.Sheets||[])[e]||{},u=Array.isArray(l),h=8==t.biff,p=\"\",g=[],f=oC(l[\"!ref\"]||\"A1\"),m=h?65536:16384;if(f.e.c>255||f.e.r>=m){if(t.WTF)throw new Error(\"Range \"+(l[\"!ref\"]||\"A1\")+\" exceeds format limit A1:IV16384\");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,m-1)}Ox(a,2057,SS(0,16,t)),Ox(a,13,uS(1)),Ox(a,12,uS(100)),Ox(a,15,cS(!0)),Ox(a,17,cS(!1)),Ox(a,16,NC(.001)),Ox(a,95,cS(!0)),Ox(a,42,cS(!1)),Ox(a,43,cS(!1)),Ox(a,130,uS(1)),Ox(a,128,(i=[0,0],(o=Uw(8)).write_shift(4,0),o.write_shift(2,i[0]?i[0]+1:0),o.write_shift(2,i[1]?i[1]+1:0),o)),Ox(a,131,cS(!1)),Ox(a,132,cS(!1)),h&&function(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&Ox(e,125,function(e,t){var n=Uw(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(ex(r,t),r))}))}}(a,l[\"!cols\"]),Ox(a,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=Uw(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(f,t)),h&&(l[\"!links\"]=[]);for(var v=f.s.r;v<=f.e.r;++v){p=Zw(v);for(var y=f.s.c;y<=f.e.c;++y){v===f.s.r&&(g[y]=eC(y)),r=g[y]+p;var b=u?(l[v]||[])[y]:l[r];b&&(Nx(a,b,v,y,t),h&&b.l&&l[\"!links\"].push([r,b.l]))}}var w=d.CodeName||d.name||s;return h&&Ox(a,574,function(e){var t=Uw(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((c.Views||[])[0])),h&&(l[\"!merges\"]||[]).length&&Ox(a,229,function(e){var t=Uw(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)CS(e[n],t);return t}(l[\"!merges\"])),h&&function(e,t){for(var n=0;n<t[\"!links\"].length;++n){var r=t[\"!links\"][n];Ox(e,440,TS(r)),r[1].Tooltip&&Ox(e,2048,DS(r))}delete t[\"!links\"]}(a,l),Ox(a,442,fS(w)),h&&function(e,t){var n=Uw(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Ox(e,2151,n),(n=Uw(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),CS(oC(t[\"!ref\"]||\"A1\"),n),n.write_shift(4,4),Ox(e,2152,n)}(a,l),Ox(a,10),a.end()}function Lx(e,t,n){var r,i=Ww(),o=(e||{}).Workbook||{},a=o.Sheets||[],s=o.WBProps||{},l=8==n.biff,c=5==n.biff;Ox(i,2057,SS(0,5,n)),\"xla\"==n.bookType&&Ox(i,135),Ox(i,225,l?uS(1200):null),Ox(i,193,function(e,t){t||(t=Uw(2));for(var n=0;n<2;++n)t.write_shift(1,0);return t}()),c&&Ox(i,191),c&&Ox(i,192),Ox(i,226),Ox(i,92,function(e,t){var n=!t||8==t.biff,r=Uw(n?112:54);for(r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));r.l<r.length;)r.write_shift(1,n?0:32);return r}(0,n)),Ox(i,66,uS(l?1200:1252)),l&&Ox(i,353,uS(0)),l&&Ox(i,448),Ox(i,317,function(e){for(var t=Uw(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}(e.SheetNames.length)),l&&e.vbaraw&&Ox(i,211),l&&e.vbaraw&&Ox(i,442,fS(s.CodeName||\"ThisWorkbook\")),Ox(i,156,uS(17)),Ox(i,25,cS(!1)),Ox(i,18,cS(!1)),Ox(i,19,uS(0)),l&&Ox(i,431,cS(!1)),l&&Ox(i,444,uS(0)),Ox(i,61,((r=Uw(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),Ox(i,64,cS(!1)),Ox(i,141,uS(0)),Ox(i,34,cS(\"true\"==function(e){return e.Workbook&&e.Workbook.WBProps&&function(e){switch(e){case 1:case!0:case\"1\":case\"true\":case\"TRUE\":return!0;default:return!1}}(e.Workbook.WBProps.date1904)?\"true\":\"false\"}(e))),Ox(i,14,cS(!0)),l&&Ox(i,439,cS(!1)),Ox(i,218,uS(0)),function(e,t,n){Ox(e,49,function(e,t){var n=e.name||\"Arial\",r=t&&5==t.biff,i=Uw(r?15+n.length:16+2*n.length);return i.write_shift(2,20*(e.sz||12)),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?\"sbcs\":\"utf16le\"),i}({sz:12,color:{theme:1},name:\"Arial\",family:2,scheme:\"minor\"},n))}(i,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&Ox(e,1054,xS(i,t[i],n))}))}(i,e.SSF,n),function(e,t){for(var n=0;n<16;++n)Ox(e,224,AS({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){Ox(e,224,AS(n,0,t))}))}(i,n),l&&Ox(i,352,cS(!1));var d=i.end(),u=Ww();l&&Ox(u,140,function(e){return e||(e=Uw(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),l&&n.Strings&&function(e,t,n,r){var i=(n||[]).length||0;if(i<=8224)return Ox(e,252,n,i);if(!isNaN(252)){for(var o=n.parts||[],a=0,s=0,l=0;l+(o[a]||8224)<=8224;)l+=o[a]||8224,a++;var c=e.next(4);for(c.write_shift(2,252),c.write_shift(2,l),e.push(n.slice(s,s+l)),s+=l;s<i;){for((c=e.next(4)).write_shift(2,60),l=0;l+(o[a]||8224)<=8224;)l+=o[a]||8224,a++;c.write_shift(2,l),e.push(n.slice(s,s+l)),s+=l}}}(u,0,function(e,t){var n=Uw(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],i=0;i<e.length;++i)r[i]=gS(e[i]);var o=Cy([n].concat(r));return o.parts=[n.length].concat(r.map((function(e){return e.length}))),o}(n.Strings)),Ox(u,10);var h=u.end(),p=Ww(),g=0,f=0;for(f=0;f<e.SheetNames.length;++f)g+=(l?12:11)+(l?2:1)*e.SheetNames[f].length;var m=d.length+g+h.length;for(f=0;f<e.SheetNames.length;++f)Ox(p,133,ES({pos:m,hs:(a[f]||{}).Hidden||0,dt:0,name:e.SheetNames[f]},n)),m+=t[f].length;var v=p.end();if(g!=v.length)throw new Error(\"BS8 \"+g+\" != \"+v.length);var y=[];return d.length&&y.push(d),v.length&&y.push(v),h.length&&y.push(h),Cy(y)}function Fx(e,t){for(var n=0;n<=e.SheetNames.length;++n){var r=e.Sheets[e.SheetNames[n]];r&&r[\"!ref\"]&&rC(r[\"!ref\"]).e.c>255&&\"undefined\"!=typeof console&&console.error&&console.error(\"Worksheet '\"+e.SheetNames[n]+\"' extends beyond column IV (255).  Data may be lost.\")}var i=t||{};switch(i.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=Pb(Ny)),e&&e.SSF&&(hb(),ub(e.SSF),n.revssf=Sb(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,dA(n),n.cellXfs=[],nx(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=Px(i,n,e);return r.unshift(Lx(e,r,n)),Cy(r)}(e,t);case 4:case 3:case 2:return function(e,t){var n=t||{};null!=dy&&null==n.dense&&(n.dense=dy);for(var r=Ww(),i=0,o=0;o<e.SheetNames.length;++o)e.SheetNames[o]==n.sheet&&(i=o);if(0==i&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error(\"Sheet not found: \"+n.sheet);return Ox(r,4==n.biff?1033:3==n.biff?521:9,SS(0,16,n)),function(e,t,n,r){var i,o=Array.isArray(t),a=oC(t[\"!ref\"]||\"A1\"),s=\"\",l=[];if(a.e.c>255||a.e.r>16383){if(r.WTF)throw new Error(\"Range \"+(t[\"!ref\"]||\"A1\")+\" exceeds format limit A1:IV16384\");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),i=iC(a)}for(var c=a.s.r;c<=a.e.r;++c){s=Zw(c);for(var d=a.s.c;d<=a.e.c;++d){c===a.s.r&&(l[d]=eC(d)),i=l[d]+s;var u=o?(t[c]||[])[d]:t[i];u&&Ix(e,u,c,d)}}}(r,e.Sheets[e.SheetNames[i]],0,n),Ox(r,10),r.end()}(e,t)}throw new Error(\"invalid type \"+i.bookType+\" for BIFF\")}function _x(e,t,n,r){for(var i=e[\"!merges\"]||[],o=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>n||i[c].s.c>a||i[c].e.r<n||i[c].e.c<a)){if(i[c].s.r<n||i[c].s.c<a){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var d=nC({r:n,c:a}),u=r.dense?(e[n]||[])[a]:e[d],h=u&&null!=u.v&&(u.h||((u.w||(aC(u),u.w)||\"\")+\"\").replace(jb,(function(e){return Hb[e]})).replace(/\\n/g,\"<br/>\").replace(Yb,(function(e){return\"&#x\"+(\"000\"+e.charCodeAt(0).toString(16)).slice(-4)+\";\"})))||\"\",p={};s>1&&(p.rowspan=s),l>1&&(p.colspan=l),r.editable?h='<span contenteditable=\"true\">'+h+\"</span>\":u&&(p[\"data-t\"]=u&&u.t||\"z\",null!=u.v&&(p[\"data-v\"]=u.v),null!=u.z&&(p[\"data-z\"]=u.z),u.l&&\"#\"!=(u.l.Target||\"#\").charAt(0)&&(h='<a href=\"'+u.l.Target+'\">'+h+\"</a>\")),p.id=(r.id||\"sjs\")+\"-\"+d,o.push(iw(\"td\",h,p))}}return\"<tr>\"+o.join(\"\")+\"</tr>\"}var zx='<html><head><meta charset=\"utf-8\"/><title>SheetJS Table Export</title></head><body>',Gx=\"</body></html>\";function Vx(e,t){var n=t||{},r=null!=n.header?n.header:zx,i=null!=n.footer?n.footer:Gx,o=[r],a=rC(e[\"!ref\"]);n.dense=Array.isArray(e),o.push(function(e,t,n){return[].join(\"\")+\"<table\"+(n&&n.id?' id=\"'+n.id+'\"':\"\")+\">\"}(0,0,n));for(var s=a.s.r;s<=a.e.r;++s)o.push(_x(e,a,s,n));return o.push(\"</table>\"+i),o.join(\"\")}function Bx(e,t,n){var r=n||{};null!=dy&&(r.dense=dy);var i=0,o=0;if(null!=r.origin)if(\"number\"==typeof r.origin)i=r.origin;else{var a=\"string\"==typeof r.origin?tC(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName(\"tr\"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e[\"!ref\"]){var d=rC(e[\"!ref\"]);c.s.r=Math.min(c.s.r,d.s.r),c.s.c=Math.min(c.s.c,d.s.c),c.e.r=Math.max(c.e.r,d.e.r),c.e.c=Math.max(c.e.c,d.e.c),-1==i&&(c.e.r=i=d.e.r+1)}var u=[],h=0,p=e[\"!rows\"]||(e[\"!rows\"]=[]),g=0,f=0,m=0,v=0,y=0,b=0;for(e[\"!cols\"]||(e[\"!cols\"]=[]);g<s.length&&f<l;++g){var w=s[g];if(jx(w)){if(r.display)continue;p[f]={hidden:!0}}var C=w.children;for(m=v=0;m<C.length;++m){var S=C[m];if(!r.display||!jx(S)){var E=S.hasAttribute(\"data-v\")?S.getAttribute(\"data-v\"):S.hasAttribute(\"v\")?S.getAttribute(\"v\"):ew(S.innerHTML),x=S.getAttribute(\"data-z\")||S.getAttribute(\"z\");for(h=0;h<u.length;++h){var A=u[h];A.s.c==v+o&&A.s.r<f+i&&f+i<=A.e.r&&(v=A.e.c+1-o,h=-1)}b=+S.getAttribute(\"colspan\")||1,((y=+S.getAttribute(\"rowspan\")||1)>1||b>1)&&u.push({s:{r:f+i,c:v+o},e:{r:f+i+(y||1)-1,c:v+o+(b||1)-1}});var T={t:\"s\",v:E},D=S.getAttribute(\"data-t\")||S.getAttribute(\"t\")||\"\";null!=E&&(0==E.length?T.t=D||\"z\":r.raw||0==E.trim().length||\"s\"==D||(\"TRUE\"===E?T={t:\"b\",v:!0}:\"FALSE\"===E?T={t:\"b\",v:!1}:isNaN(Fb(E))?isNaN(zb(E).getDate())||(T={t:\"d\",v:Ib(E)},r.cellDates||(T={t:\"n\",v:xb(T.v)}),T.z=r.dateNF||Ny[14]):T={t:\"n\",v:Fb(E)})),void 0===T.z&&null!=x&&(T.z=x);var R=\"\",M=S.getElementsByTagName(\"A\");if(M&&M.length)for(var O=0;O<M.length&&(!M[O].hasAttribute(\"href\")||\"#\"==(R=M[O].getAttribute(\"href\")).charAt(0));++O);R&&\"#\"!=R.charAt(0)&&(T.l={Target:R}),r.dense?(e[f+i]||(e[f+i]=[]),e[f+i][v+o]=T):e[nC({c:v+o,r:f+i})]=T,c.e.c<v+o&&(c.e.c=v+o),v+=b}}++f}return u.length&&(e[\"!merges\"]=(e[\"!merges\"]||[]).concat(u)),c.e.r=Math.max(c.e.r,f-1+i),e[\"!ref\"]=iC(c),f>=l&&(e[\"!fullref\"]=iC((c.e.r=s.length-g+f-1+i,c))),e}function Hx(e,t){return Bx((t||{}).dense?[]:{},e,t)}function jx(e){var t=\"\",n=function(e){return e.ownerDocument.defaultView&&\"function\"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:\"function\"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue(\"display\")),t||(t=e.style&&e.style.display),\"none\"===t}var Ux=function(){var e=[\"<office:master-styles>\",'<style:master-page style:name=\"mp1\" style:page-layout-name=\"mp1\">',\"<style:header/>\",'<style:header-left style:display=\"false\"/>',\"<style:footer/>\",'<style:footer-left style:display=\"false\"/>',\"</style:master-page>\",\"</office:master-styles>\"].join(\"\"),t=\"<office:document-styles \"+rw({\"xmlns:office\":\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\",\"xmlns:table\":\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\",\"xmlns:style\":\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\",\"xmlns:text\":\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\",\"xmlns:draw\":\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\",\"xmlns:fo\":\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"xmlns:dc\":\"http://purl.org/dc/elements/1.1/\",\"xmlns:number\":\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\",\"xmlns:svg\":\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\",\"xmlns:of\":\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\",\"office:version\":\"1.2\"})+\">\"+e+\"</office:document-styles>\";return function(){return Bb+t}}(),Wx=function(){var e=\"          <table:table-cell />\\n\",t=function(t,n,r){var i=[];i.push('      <table:table table:name=\"'+Wb(n.SheetNames[r])+'\" table:style-name=\"ta1\">\\n');var o=0,a=0,s=rC(t[\"!ref\"]||\"A1\"),l=t[\"!merges\"]||[],c=0,d=Array.isArray(t);if(t[\"!cols\"])for(a=0;a<=s.e.c;++a)i.push(\"        <table:table-column\"+(t[\"!cols\"][a]?' table:style-name=\"co'+t[\"!cols\"][a].ods+'\"':\"\")+\"></table:table-column>\\n\");var u=\"\",h=t[\"!rows\"]||[];for(o=0;o<s.s.r;++o)u=h[o]?' table:style-name=\"ro'+h[o].ods+'\"':\"\",i.push(\"        <table:table-row\"+u+\"></table:table-row>\\n\");for(;o<=s.e.r;++o){for(u=h[o]?' table:style-name=\"ro'+h[o].ods+'\"':\"\",i.push(\"        <table:table-row\"+u+\">\\n\"),a=0;a<s.s.c;++a)i.push(e);for(;a<=s.e.c;++a){var p=!1,g={},f=\"\";for(c=0;c!=l.length;++c)if(!(l[c].s.c>a||l[c].s.r>o||l[c].e.c<a||l[c].e.r<o)){l[c].s.c==a&&l[c].s.r==o||(p=!0),g[\"table:number-columns-spanned\"]=l[c].e.c-l[c].s.c+1,g[\"table:number-rows-spanned\"]=l[c].e.r-l[c].s.r+1;break}if(p)i.push(\"          <table:covered-table-cell/>\\n\");else{var m=nC({r:o,c:a}),v=d?(t[o]||[])[a]:t[m];if(v&&v.f&&(g[\"table:formula\"]=Wb((\"of:=\"+v.f.replace(mE,\"$1[.$2$3$4$5]\").replace(/\\]:\\[/g,\":\")).replace(/;/g,\"|\").replace(/,/g,\";\")),v.F&&v.F.slice(0,m.length)==m)){var y=rC(v.F);g[\"table:number-matrix-columns-spanned\"]=y.e.c-y.s.c+1,g[\"table:number-matrix-rows-spanned\"]=y.e.r-y.s.r+1}if(v){switch(v.t){case\"b\":f=v.v?\"TRUE\":\"FALSE\",g[\"office:value-type\"]=\"boolean\",g[\"office:boolean-value\"]=v.v?\"true\":\"false\";break;case\"n\":f=v.w||String(v.v||0),g[\"office:value-type\"]=\"float\",g[\"office:value\"]=v.v||0;break;case\"s\":case\"str\":f=null==v.v?\"\":v.v,g[\"office:value-type\"]=\"string\";break;case\"d\":f=v.w||Ib(v.v).toISOString(),g[\"office:value-type\"]=\"date\",g[\"office:date-value\"]=Ib(v.v).toISOString(),g[\"table:style-name\"]=\"ce1\";break;default:i.push(e);continue}var b=Wb(f).replace(/  +/g,(function(e){return'<text:s text:c=\"'+e.length+'\"/>'})).replace(/\\t/g,\"<text:tab/>\").replace(/\\n/g,\"</text:p><text:p>\").replace(/^ /,\"<text:s/>\").replace(/ $/,\"<text:s/>\");if(v.l&&v.l.Target){var w=v.l.Target;\"#\"==(w=\"#\"==w.charAt(0)?\"#\"+w.slice(1).replace(/\\./,\"!\"):w).charAt(0)||w.match(/^\\w+:/)||(w=\"../\"+w),b=iw(\"text:a\",b,{\"xlink:href\":w.replace(/&/g,\"&amp;\")})}i.push(\"          \"+iw(\"table:table-cell\",iw(\"text:p\",b,{}),g)+\"\\n\")}else i.push(e)}}i.push(\"        </table:table-row>\\n\")}return i.push(\"      </table:table>\\n\"),i.join(\"\")};return function(e,n){var r=[Bb],i=rw({\"xmlns:office\":\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\",\"xmlns:table\":\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\",\"xmlns:style\":\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\",\"xmlns:text\":\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\",\"xmlns:draw\":\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\",\"xmlns:fo\":\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"xmlns:dc\":\"http://purl.org/dc/elements/1.1/\",\"xmlns:meta\":\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\",\"xmlns:number\":\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\",\"xmlns:presentation\":\"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0\",\"xmlns:svg\":\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\",\"xmlns:chart\":\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\",\"xmlns:dr3d\":\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\",\"xmlns:math\":\"http://www.w3.org/1998/Math/MathML\",\"xmlns:form\":\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\",\"xmlns:script\":\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\",\"xmlns:ooo\":\"http://openoffice.org/2004/office\",\"xmlns:ooow\":\"http://openoffice.org/2004/writer\",\"xmlns:oooc\":\"http://openoffice.org/2004/calc\",\"xmlns:dom\":\"http://www.w3.org/2001/xml-events\",\"xmlns:xforms\":\"http://www.w3.org/2002/xforms\",\"xmlns:xsd\":\"http://www.w3.org/2001/XMLSchema\",\"xmlns:xsi\":\"http://www.w3.org/2001/XMLSchema-instance\",\"xmlns:sheet\":\"urn:oasis:names:tc:opendocument:sh33tjs:1.0\",\"xmlns:rpt\":\"http://openoffice.org/2005/report\",\"xmlns:of\":\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\",\"xmlns:xhtml\":\"http://www.w3.org/1999/xhtml\",\"xmlns:grddl\":\"http://www.w3.org/2003/g/data-view#\",\"xmlns:tableooo\":\"http://openoffice.org/2009/table\",\"xmlns:drawooo\":\"http://openoffice.org/2010/draw\",\"xmlns:calcext\":\"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0\",\"xmlns:loext\":\"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0\",\"xmlns:field\":\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\",\"xmlns:formx\":\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\",\"xmlns:css3t\":\"http://www.w3.org/TR/css3-text/\",\"office:version\":\"1.2\"}),o=rw({\"xmlns:config\":\"urn:oasis:names:tc:opendocument:xmlns:config:1.0\",\"office:mimetype\":\"application/vnd.oasis.opendocument.spreadsheet\"});\"fods\"==n.bookType?(r.push(\"<office:document\"+i+o+\">\\n\"),r.push(qC().replace(/office:document-meta/g,\"office:meta\"))):r.push(\"<office:document-content\"+i+\">\\n\"),function(e,t){e.push(\" <office:automatic-styles>\\n\"),e.push('  <number:date-style style:name=\"N37\" number:automatic-order=\"true\">\\n'),e.push('   <number:month number:style=\"long\"/>\\n'),e.push(\"   <number:text>/</number:text>\\n\"),e.push('   <number:day number:style=\"long\"/>\\n'),e.push(\"   <number:text>/</number:text>\\n\"),e.push(\"   <number:year/>\\n\"),e.push(\"  </number:date-style>\\n\");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t[\"!cols\"])for(var r=0;r<t[\"!cols\"].length;++r)if(t[\"!cols\"][r]){var i=t[\"!cols\"][r];if(null==i.width&&null==i.wpx&&null==i.wch)continue;WS(i),i.ods=n;var o=t[\"!cols\"][r].wpx+\"px\";e.push('  <style:style style:name=\"co'+n+'\" style:family=\"table-column\">\\n'),e.push('   <style:table-column-properties fo:break-before=\"auto\" style:column-width=\"'+o+'\"/>\\n'),e.push(\"  </style:style>\\n\"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t[\"!rows\"])for(var n=0;n<t[\"!rows\"].length;++n)if(t[\"!rows\"][n]){t[\"!rows\"][n].ods=r;var i=t[\"!rows\"][n].hpx+\"px\";e.push('  <style:style style:name=\"ro'+r+'\" style:family=\"table-row\">\\n'),e.push('   <style:table-row-properties fo:break-before=\"auto\" style:row-height=\"'+i+'\"/>\\n'),e.push(\"  </style:style>\\n\"),++r}})),e.push('  <style:style style:name=\"ta1\" style:family=\"table\" style:master-page-name=\"mp1\">\\n'),e.push('   <style:table-properties table:display=\"true\" style:writing-mode=\"lr-tb\"/>\\n'),e.push(\"  </style:style>\\n\"),e.push('  <style:style style:name=\"ce1\" style:family=\"table-cell\" style:parent-style-name=\"Default\" style:data-style-name=\"N37\"/>\\n'),e.push(\" </office:automatic-styles>\\n\")}(r,e),r.push(\"  <office:body>\\n\"),r.push(\"    <office:spreadsheet>\\n\");for(var a=0;a!=e.SheetNames.length;++a)r.push(t(e.Sheets[e.SheetNames[a]],e,a));return r.push(\"    </office:spreadsheet>\\n\"),r.push(\"  </office:body>\\n\"),\"fods\"==n.bookType?r.push(\"</office:document>\"):r.push(\"</office:document-content>\"),r.join(\"\")}}();function $x(e,t){if(\"fods\"==t.bookType)return Wx(e,t);var n=Vb(),r=\"\",i=[],o=[];return Gb(n,r=\"mimetype\",\"application/vnd.oasis.opendocument.spreadsheet\"),Gb(n,r=\"content.xml\",Wx(e,t)),i.push([r,\"text/xml\"]),o.push([r,\"ContentFile\"]),Gb(n,r=\"styles.xml\",Ux(e,t)),i.push([r,\"text/xml\"]),o.push([r,\"StylesFile\"]),Gb(n,r=\"meta.xml\",Bb+qC()),i.push([r,\"text/xml\"]),o.push([r,\"MetadataFile\"]),Gb(n,r=\"manifest.rdf\",function(e){var t=[Bb];t.push('<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\\n');for(var n=0;n!=e.length;++n)t.push(KC(e[n][0],e[n][1])),t.push((\"\",['  <rdf:Description rdf:about=\"\">\\n','    <ns0:hasPart xmlns:ns0=\"http://docs.oasis-open.org/ns/office/1.2/meta/pkg#\" rdf:resource=\"'+e[n][0]+'\"/>\\n',\"  </rdf:Description>\\n\"].join(\"\")));return t.push(KC(\"\",\"Document\",\"pkg\")),t.push(\"</rdf:RDF>\"),t.join(\"\")}(o)),i.push([r,\"application/rdf+xml\"]),Gb(n,r=\"META-INF/manifest.xml\",function(e){var t=[Bb];t.push('<manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\" manifest:version=\"1.2\">\\n'),t.push('  <manifest:file-entry manifest:full-path=\"/\" manifest:version=\"1.2\" manifest:media-type=\"application/vnd.oasis.opendocument.spreadsheet\"/>\\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path=\"'+e[n][0]+'\" manifest:media-type=\"'+e[n][1]+'\"/>\\n');return t.push(\"</manifest:manifest>\"),t.join(\"\")}(i)),n}function Yx(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Kx(e){return\"undefined\"!=typeof TextEncoder?(new TextEncoder).encode(e):yy(Jb(e))}function qx(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Qx(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Xx(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function Zx(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Jx(e){for(var t=[],n=[0];n[0]<e.length;){var r,i=n[0],o=Qx(e,n),a=7&o,s=0;if(0==(o=Math.floor(o/8)))break;switch(a){case 0:for(var l=n[0];e[n[0]++]>=128;);r=e.slice(l,n[0]);break;case 5:s=4,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,r=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Qx(e,n),r=e.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error(\"PB Type \".concat(a,\" for Field \").concat(o,\" at offset \").concat(i))}var c={data:r,type:a};null==t[o]?t[o]=[c]:t[o].push(c)}return t}function eA(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(Xx(8*n+e.type)),2==e.type&&t.push(Xx(e.data.length)),t.push(e.data))}))})),qx(t)}function tA(e){for(var t,n=[],r=[0];r[0]<e.length;){var i=Qx(e,r),o=Jx(e.slice(r[0],r[0]+i));r[0]+=i;var a={id:Zx(o[1][0].data),messages:[]};o[2].forEach((function(t){var n=Jx(t.data),i=Zx(n[3][0].data);a.messages.push({meta:n,data:e.slice(r[0],r[0]+i)}),r[0]+=i})),(null==(t=o[3])?void 0:t[0])&&(a.merge=Zx(o[3][0].data)>>>0>0),n.push(a)}return n}function nA(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:Xx(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:Xx(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:Xx(e.data.length)}],n[2].push({data:eA(e.meta),type:2})}));var i=eA(n);t.push(Xx(i.length)),t.push(i),r.forEach((function(e){return t.push(e)}))})),qx(t)}function rA(e,t){if(0!=e)throw new Error(\"Unexpected Snappy chunk type \".concat(e));for(var n=[0],r=Qx(t,n),i=[];n[0]<t.length;){var o=3&t[n[0]];if(0!=o){var a=0,s=0;if(1==o?(s=4+(t[n[0]]>>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[qx(i)],0==a)throw new Error(\"Invalid offset 0\");if(a>i[0].length)throw new Error(\"Invalid offset beyond length\");if(s>=a)for(i.push(i[0].slice(-a)),s-=a;s>=i[i.length-1].length;)i.push(i[i.length-1]),s-=i[i.length-1].length;i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var d=qx(i);if(d.length!=r)throw new Error(\"Unexpected length: \".concat(d.length,\" != \").concat(r));return d}function iA(e){for(var t=[],n=0;n<e.length;){var r=e[n++],i=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(rA(r,e.slice(n,n+i))),n+=i}if(n!==e.length)throw new Error(\"data is not a valid framed stream!\");return qx(t)}function oA(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),i=new Uint8Array(4);t.push(i);var o=Xx(r),a=o.length;t.push(o),r<=60?(a++,t.push(new Uint8Array([r-1<<2]))):r<=256?(a+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(a+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(a+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(a+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),a+=r,i[0]=0,i[1]=255&a,i[2]=a>>8&255,i[3]=a>>16&255,n+=r}return qx(t)}function aA(e,t){var n=new Uint8Array(32),r=Yx(n),i=12,o=0;switch(n[0]=5,e.t){case\"n\":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var o=0;i>=1;++o,i/=256)e[t+o]=255&i;e[t+15]|=n>=0?0:128}(n,i,e.v),o|=1,i+=16;break;case\"b\":n[1]=6,r.setFloat64(i,e.v?1:0,!0),o|=2,i+=8;break;case\"s\":if(-1==t.indexOf(e.v))throw new Error(\"Value \".concat(e.v,\" missing from SST!\"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),o|=8,i+=4;break;default:throw\"unsupported cell type \"+e.t}return r.setUint32(8,o,!0),n.slice(0,i)}function sA(e,t){var n=new Uint8Array(32),r=Yx(n),i=12,o=0;switch(n[0]=3,e.t){case\"n\":n[2]=2,r.setFloat64(i,e.v,!0),o|=32,i+=8;break;case\"b\":n[2]=6,r.setFloat64(i,e.v?1:0,!0),o|=32,i+=8;break;case\"s\":if(-1==t.indexOf(e.v))throw new Error(\"Value \".concat(e.v,\" missing from SST!\"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),o|=16,i+=4;break;default:throw\"unsupported cell type \"+e.t}return r.setUint32(4,o,!0),n.slice(0,i)}function lA(e){return Qx(Jx(e)[1][0].data)}function cA(e,t,n){var r,i,o,a;if(!(null==(r=e[6])?void 0:r[0])||!(null==(i=e[7])?void 0:i[0]))throw\"Mutation only works on post-BNC storages!\";if((null==(a=null==(o=e[8])?void 0:o[0])?void 0:a.data)&&Zx(e[8][0].data)>0)throw\"Math only works with normal offsets\";for(var s=0,l=Yx(e[7][0].data),c=0,d=[],u=Yx(e[4][0].data),h=0,p=[],g=0;g<t.length;++g)if(null!=t[g]){var f,m;switch(l.setUint16(2*g,c,!0),u.setUint16(2*g,h,!0),typeof t[g]){case\"string\":f=aA({t:\"s\",v:t[g]},n),m=sA({t:\"s\",v:t[g]},n);break;case\"number\":f=aA({t:\"n\",v:t[g]},n),m=sA({t:\"n\",v:t[g]},n);break;case\"boolean\":f=aA({t:\"b\",v:t[g]},n),m=sA({t:\"b\",v:t[g]},n);break;default:throw new Error(\"Unsupported value \"+t[g])}d.push(f),c+=f.length,p.push(m),h+=m.length,++s}else l.setUint16(2*g,65535,!0),u.setUint16(2*g,65535);for(e[2][0].data=Xx(s);g<e[7][0].data.length/2;++g)l.setUint16(2*g,65535,!0),u.setUint16(2*g,65535,!0);return e[6][0].data=qx(d),e[3][0].data=qx(p),s}function dA(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),\"n\"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}([[\"cellDates\",!1],[\"bookSST\",!1],[\"bookType\",\"xlsx\"],[\"compression\",!1],[\"WTF\",!1]])(e)}function uA(e,t){return\"ods\"==t.bookType?$x(e,t):\"numbers\"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error(\"Must pass a `numbers` option -- check the README\");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error(\"The Numbers writer currently writes only the first table\");var r=rC(n[\"!ref\"]);r.s.r=r.s.c=0;var i=!1;r.e.c>9&&(i=!0,r.e.c=9),r.e.r>49&&(i=!0,r.e.r=49),i&&console.error(\"The Numbers writer is currently limited to \".concat(iC(r)));var o=vA(n,{range:r,header:1}),a=[\"~Sh33tJ5~\"];o.forEach((function(e){return e.forEach((function(e){\"string\"==typeof e&&a.push(e)}))}));var s={},l=[],c=fb.read(t.numbers,{type:\"base64\"});c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\\.iwa/)&&tA(iA(t.content)).forEach((function(e){l.push(e.id),s[e.id]={deps:[],location:n,type:Zx(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var d=l.filter((function(e){return e>1})).map((function(e){return[e,Xx(e)]}));c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\\.iwa/)&&tA(iA(t.content)).forEach((function(e){e.messages.forEach((function(t){d.forEach((function(t){e.messages.some((function(e){return 11006!=Zx(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}(e.data,t[1])}))&&s[t[0]].deps.push(e.id)}))}))}))}));for(var u,h=fb.find(c,s[1].location),p=tA(iA(h.content)),g=0;g<p.length;++g){var f=p[g];1==f.id&&(u=f)}var m=lA(Jx(u.messages[0].data)[1][0].data);for(p=tA(iA((h=fb.find(c,s[m].location)).content)),g=0;g<p.length;++g)(f=p[g]).id==m&&(u=f);for(m=lA(Jx(u.messages[0].data)[2][0].data),p=tA(iA((h=fb.find(c,s[m].location)).content)),g=0;g<p.length;++g)(f=p[g]).id==m&&(u=f);for(m=lA(Jx(u.messages[0].data)[2][0].data),p=tA(iA((h=fb.find(c,s[m].location)).content)),g=0;g<p.length;++g)(f=p[g]).id==m&&(u=f);var v=Jx(u.messages[0].data);v[6][0].data=Xx(r.e.r+1),v[7][0].data=Xx(r.e.c+1);for(var y=lA(v[46][0].data),b=fb.find(c,s[y].location),w=tA(iA(b.content)),C=0;C<w.length&&w[C].id!=y;++C);if(w[C].id!=y)throw\"Bad ColumnRowUIDMapArchive\";var S=Jx(w[C].messages[0].data);S[1]=[],S[2]=[],S[3]=[];for(var E=0;E<=r.e.c;++E){var x=[];x[1]=x[2]=[{type:0,data:Xx(E+420690)}],S[1].push({type:2,data:eA(x)}),S[2].push({type:0,data:Xx(E)}),S[3].push({type:0,data:Xx(E)})}S[4]=[],S[5]=[],S[6]=[];for(var A=0;A<=r.e.r;++A)(x=[])[1]=x[2]=[{type:0,data:Xx(A+726270)}],S[4].push({type:2,data:eA(x)}),S[5].push({type:0,data:Xx(A)}),S[6].push({type:0,data:Xx(A)});w[C].messages[0].data=eA(S),b.content=oA(nA(w)),b.size=b.content.length,delete v[46];var T=Jx(v[4][0].data);T[7][0].data=Xx(r.e.r+1);var D=lA(Jx(T[1][0].data)[2][0].data);if((w=tA(iA((b=fb.find(c,s[D].location)).content)))[0].id!=D)throw\"Bad HeaderStorageBucket\";var R=Jx(w[0].messages[0].data);for(A=0;A<o.length;++A){var M=Jx(R[2][0].data);M[1][0].data=Xx(A),M[4][0].data=Xx(o[A].length),R[2][A]={type:R[2][0].type,data:eA(M)}}w[0].messages[0].data=eA(R),b.content=oA(nA(w)),b.size=b.content.length;var O=lA(T[2][0].data);if((w=tA(iA((b=fb.find(c,s[O].location)).content)))[0].id!=O)throw\"Bad HeaderStorageBucket\";for(R=Jx(w[0].messages[0].data),E=0;E<=r.e.c;++E)(M=Jx(R[2][0].data))[1][0].data=Xx(E),M[4][0].data=Xx(r.e.r+1),R[2][E]={type:R[2][0].type,data:eA(M)};w[0].messages[0].data=eA(R),b.content=oA(nA(w)),b.size=b.content.length;var k=lA(T[4][0].data);!function(){for(var e,t=fb.find(c,s[k].location),n=tA(iA(t.content)),r=0;r<n.length;++r){var i=n[r];i.id==k&&(e=i)}var o=Jx(e.messages[0].data);o[3]=[];var l=[];a.forEach((function(e,t){l[1]=[{type:0,data:Xx(t)}],l[2]=[{type:0,data:Xx(1)}],l[3]=[{type:2,data:Kx(e)}],o[3].push({type:2,data:eA(l)})})),e.messages[0].data=eA(o);var d=oA(nA(n));t.content=d,t.size=t.content.length}();var I=Jx(T[3][0].data),N=I[1][0];delete I[2];var P=Jx(N.data),L=lA(P[2][0].data);!function(){for(var e,t=fb.find(c,s[L].location),n=tA(iA(t.content)),i=0;i<n.length;++i){var l=n[i];l.id==L&&(e=l)}var d=Jx(e.messages[0].data);delete d[6],delete I[7];var u=new Uint8Array(d[5][0].data);d[5]=[];for(var h=0,p=0;p<=r.e.r;++p){var g=Jx(u);h+=cA(g,o[p],a),g[1][0].data=Xx(p),d[5].push({data:eA(g),type:2})}d[1]=[{type:0,data:Xx(r.e.c+1)}],d[2]=[{type:0,data:Xx(r.e.r+1)}],d[3]=[{type:0,data:Xx(h)}],d[4]=[{type:0,data:Xx(r.e.r+1)}],e.messages[0].data=eA(d);var f=oA(nA(n));t.content=f,t.size=t.content.length}(),N.data=eA(P),T[3][0].data=eA(I),v[4][0].data=eA(T),u.messages[0].data=eA(v);var F=oA(nA(p));return h.content=F,h.size=h.content.length,c}(e,t):\"xlsb\"==t.bookType?function(e,t){lE=1024,e&&!e.SSF&&(e.SSF=Pb(Ny)),e&&e.SSF&&(hb(),ub(e.SSF),t.revssf=Sb(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,ZE?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=\"xlsb\"==t.bookType?\"bin\":\"xml\",r=gE.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:\"\"};dA(t=t||{});var o=Vb(),a=\"\",s=0;if(t.cellXfs=[],nx(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Gb(o,a=\"docProps/core.xml\",ZC(e.Props,t)),i.coreprops.push(a),YC(t.rels,2,a,UC.CORE_PROPS),a=\"docProps/app.xml\",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,Gb(o,a,tS(e.Props)),i.extprops.push(a),YC(t.rels,3,a,UC.EXT_PROPS),e.Custprops!==e.Props&&bb(e.Custprops||{}).length>0&&(Gb(o,a=\"docProps/custom.xml\",nS(e.Custprops)),i.custprops.push(a),YC(t.rels,4,a,UC.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var d={\"!id\":{}},u=e.Sheets[e.SheetNames[s-1]];if((u||{})[\"!type\"],Gb(o,a=\"xl/worksheets/sheet\"+s+\".\"+n,Cx(s-1,a,t,e,d)),i.sheets.push(a),YC(t.wbrels,-1,\"worksheets/sheet\"+s+\".\"+n,UC.WS[0]),u){var h=u[\"!comments\"],p=!1,g=\"\";h&&h.length>0&&(Gb(o,g=\"xl/comments\"+s+\".\"+n,Sx(h,g,t)),i.comments.push(g),YC(d,-1,\"../comments\"+s+\".\"+n,UC.CMNT),p=!0),u[\"!legacy\"]&&p&&Gb(o,\"xl/drawings/vmlDrawing\"+s+\".vml\",cE(s,u[\"!comments\"])),delete u[\"!comments\"],delete u[\"!legacy\"]}d[\"!id\"].rId1&&Gb(o,WC(a),$C(d))}return null!=t.Strings&&t.Strings.length>0&&(Gb(o,a=\"xl/sharedStrings.\"+n,function(e,t,n){return(\".bin\"===t.slice(-4)?_S:LS)(e,n)}(t.Strings,a,t)),i.strs.push(a),YC(t.wbrels,-1,\"sharedStrings.\"+n,UC.SST)),Gb(o,a=\"xl/workbook.\"+n,function(e,t,n){return(\".bin\"===t.slice(-4)?wx:bx)(e,n)}(e,a,t)),i.workbooks.push(a),YC(t.rels,1,a,UC.WB),Gb(o,a=\"xl/theme/theme1.xml\",oE(e.Themes,t)),i.themes.push(a),YC(t.wbrels,-1,\"theme/theme1.xml\",UC.THEME),Gb(o,a=\"xl/styles.\"+n,function(e,t,n){return(\".bin\"===t.slice(-4)?iE:qS)(e,n)}(e,a,t)),i.styles.push(a),YC(t.wbrels,-1,\"styles.\"+n,UC.STY),e.vbaraw&&r&&(Gb(o,a=\"xl/vbaProject.bin\",e.vbaraw),i.vba.push(a),YC(t.wbrels,-1,\"vbaProject.bin\",UC.VBA)),Gb(o,a=\"xl/metadata.\"+n,(\".bin\"===a.slice(-4)?aE:sE)()),i.metadata.push(a),YC(t.wbrels,-1,\"metadata.\"+n,UC.XLMETA),Gb(o,\"[Content_Types].xml\",jC(i,t)),Gb(o,\"_rels/.rels\",$C(t.rels)),Gb(o,\"xl/_rels/workbook.\"+n+\".rels\",$C(t.wbrels)),delete t.revssf,delete t.ssf,o}(e,t):function(e,t){lE=1024,e&&!e.SSF&&(e.SSF=Pb(Ny)),e&&e.SSF&&(hb(),ub(e.SSF),t.revssf=Sb(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,ZE?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=\"xml\",r=gE.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:\"\"};dA(t=t||{});var o=Vb(),a=\"\",s=0;if(t.cellXfs=[],nx(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),Gb(o,a=\"docProps/core.xml\",ZC(e.Props,t)),i.coreprops.push(a),YC(t.rels,2,a,UC.CORE_PROPS),a=\"docProps/app.xml\",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,Gb(o,a,tS(e.Props)),i.extprops.push(a),YC(t.rels,3,a,UC.EXT_PROPS),e.Custprops!==e.Props&&bb(e.Custprops||{}).length>0&&(Gb(o,a=\"docProps/custom.xml\",nS(e.Custprops)),i.custprops.push(a),YC(t.rels,4,a,UC.CUST_PROPS));var d=[\"SheetJ5\"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var u={\"!id\":{}},h=e.Sheets[e.SheetNames[s-1]];if((h||{})[\"!type\"],Gb(o,a=\"xl/worksheets/sheet\"+s+\".\"+n,sx(s-1,t,e,u)),i.sheets.push(a),YC(t.wbrels,-1,\"worksheets/sheet\"+s+\".\"+n,UC.WS[0]),h){var p=h[\"!comments\"],g=!1,f=\"\";if(p&&p.length>0){var m=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(m=!0)}))})),m&&(Gb(o,f=\"xl/threadedComments/threadedComment\"+s+\".\"+n,uE(p,d,t)),i.threadedcomments.push(f),YC(u,-1,\"../threadedComments/threadedComment\"+s+\".\"+n,UC.TCMNT)),Gb(o,f=\"xl/comments\"+s+\".\"+n,dE(p)),i.comments.push(f),YC(u,-1,\"../comments\"+s+\".\"+n,UC.CMNT),g=!0}h[\"!legacy\"]&&g&&Gb(o,\"xl/drawings/vmlDrawing\"+s+\".vml\",cE(s,h[\"!comments\"])),delete h[\"!comments\"],delete h[\"!legacy\"]}u[\"!id\"].rId1&&Gb(o,WC(a),$C(u))}return null!=t.Strings&&t.Strings.length>0&&(Gb(o,a=\"xl/sharedStrings.\"+n,LS(t.Strings,t)),i.strs.push(a),YC(t.wbrels,-1,\"sharedStrings.\"+n,UC.SST)),Gb(o,a=\"xl/workbook.\"+n,bx(e)),i.workbooks.push(a),YC(t.rels,1,a,UC.WB),Gb(o,a=\"xl/theme/theme1.xml\",oE(e.Themes,t)),i.themes.push(a),YC(t.wbrels,-1,\"theme/theme1.xml\",UC.THEME),Gb(o,a=\"xl/styles.\"+n,qS(e,t)),i.styles.push(a),YC(t.wbrels,-1,\"styles.\"+n,UC.STY),e.vbaraw&&r&&(Gb(o,a=\"xl/vbaProject.bin\",e.vbaraw),i.vba.push(a),YC(t.wbrels,-1,\"vbaProject.bin\",UC.VBA)),Gb(o,a=\"xl/metadata.\"+n,sE()),i.metadata.push(a),YC(t.wbrels,-1,\"metadata.\"+n,UC.XLMETA),d.length>1&&(Gb(o,a=\"xl/persons/person.xml\",function(e){var t=[Bb,iw(\"personList\",null,{xmlns:aw.TCMNT,\"xmlns:x\":sw[0]}).replace(/[\\/]>/,\">\")];return e.forEach((function(e,n){t.push(iw(\"person\",null,{displayName:e,id:\"{54EE7950-7262-4200-6969-\"+(\"000000000000\"+n).slice(-12)+\"}\",userId:e,providerId:\"None\"}))})),t.push(\"</personList>\"),t.join(\"\")}(d)),i.people.push(a),YC(t.wbrels,-1,\"persons/person.xml\",UC.PEOPLE)),Gb(o,\"[Content_Types].xml\",jC(i,t)),Gb(o,\"_rels/.rels\",$C(t.rels)),Gb(o,\"xl/_rels/workbook.xml.rels\",$C(t.wbrels)),delete t.revssf,delete t.ssf,o}(e,t)}function hA(e,t){switch(t.type){case\"base64\":case\"binary\":break;case\"buffer\":case\"array\":t.type=\"\";break;case\"file\":return yb(t.file,fb.write(e,{type:gy?\"buffer\":\"\"}));case\"string\":throw new Error(\"'string' output type invalid for '\"+t.bookType+\"' files\");default:throw new Error(\"Unrecognized type \"+t.type)}return fb.write(e,t)}function pA(e,t,n){n||(n=\"\");var r=n+e;switch(t.type){case\"base64\":return hy(Jb(r));case\"binary\":return Jb(r);case\"string\":return e;case\"file\":return yb(t.file,r,\"utf8\");case\"buffer\":return gy?fy(r,\"utf8\"):\"undefined\"!=typeof TextEncoder?(new TextEncoder).encode(r):pA(r,{type:\"binary\"}).split(\"\").map((function(e){return e.charCodeAt(0)}))}throw new Error(\"Unrecognized type \"+t.type)}function gA(e,t){switch(t.type){case\"string\":case\"base64\":case\"binary\":for(var n=\"\",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return\"base64\"==t.type?hy(n):\"string\"==t.type?Zb(n):n;case\"file\":return yb(t.file,e);case\"buffer\":return e;default:throw new Error(\"Unrecognized type \"+t.type)}}function fA(e,t){ay(1200),oy(1252),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error(\"Invalid Workbook\");if(!e.SheetNames.length)throw new Error(\"Workbook is empty\");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,n){e.forEach((function(r,i){yx(r);for(var o=0;o<i;++o)if(r==e[o])throw new Error(\"Duplicate Sheet Name: \"+r);if(n){var a=t&&t[i]&&t[i].CodeName||r;if(95==a.charCodeAt(0)&&a.length>22)throw new Error(\"Bad Code Name: Worksheet\"+a)}}))}(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)rx(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}(e);var n=Pb(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),\"array\"==n.type){n.type=\"binary\";var r=fA(e,n);return n.type=\"array\",by(r)}var i=0;if(n.sheet&&(i=\"number\"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[i]))throw new Error(\"Sheet not found: \"+n.sheet+\" : \"+typeof n.sheet);switch(n.bookType||\"xlsb\"){case\"xml\":case\"xlml\":return pA(Dx(e,n),n);case\"slk\":case\"sylk\":return pA(MS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"htm\":case\"html\":return pA(Vx(e.Sheets[e.SheetNames[i]],n),n);case\"txt\":return function(e,t){switch(t.type){case\"base64\":return hy(e);case\"binary\":case\"string\":return e;case\"file\":return yb(t.file,e,\"binary\");case\"buffer\":return gy?fy(e,\"binary\"):e.split(\"\").map((function(e){return e.charCodeAt(0)}))}throw new Error(\"Unrecognized type \"+t.type)}(CA(e.Sheets[e.SheetNames[i]],n),n);case\"csv\":return pA(wA(e.Sheets[e.SheetNames[i]],n),n,\"\\ufeff\");case\"dif\":return pA(OS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"dbf\":return gA(RS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"prn\":return pA(IS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"rtf\":return pA(GS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"eth\":return pA(kS.from_sheet(e.Sheets[e.SheetNames[i]],n),n);case\"fods\":return pA($x(e,n),n);case\"wk1\":return gA(NS.sheet_to_wk1(e.Sheets[e.SheetNames[i]],n),n);case\"wk3\":return gA(NS.book_to_wk3(e,n),n);case\"biff2\":n.biff||(n.biff=2);case\"biff3\":n.biff||(n.biff=3);case\"biff4\":return n.biff||(n.biff=4),gA(Fx(e,n),n);case\"biff5\":n.biff||(n.biff=5);case\"biff8\":case\"xla\":case\"xls\":return n.biff||(n.biff=8),function(e,t){var n=t||{};return hA(function(e,t){var n=t||{},r=fb.utils.cfb_new({root:\"R\"}),i=\"/Workbook\";switch(n.bookType||\"xls\"){case\"xls\":n.bookType=\"biff8\";case\"xla\":n.bookType||(n.bookType=\"xla\");case\"biff8\":i=\"/Workbook\",n.biff=8;break;case\"biff5\":i=\"/Book\",n.biff=5;break;default:throw new Error(\"invalid type \"+n.bookType+\" for XLS CFB\")}return fb.utils.cfb_add(r,i,Fx(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],i=[],o=[],a=0,s=wb(FC,\"n\"),l=wb(_C,\"n\");if(e.Props)for(n=bb(e.Props),a=0;a<n.length;++a)(Object.prototype.hasOwnProperty.call(s,n[a])?r:Object.prototype.hasOwnProperty.call(l,n[a])?i:o).push([n[a],e.Props[n[a]]]);if(e.Custprops)for(n=bb(e.Custprops),a=0;a<n.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},n[a])||(Object.prototype.hasOwnProperty.call(s,n[a])?r:Object.prototype.hasOwnProperty.call(l,n[a])?i:o).push([n[a],e.Custprops[n[a]]]);var c=[];for(a=0;a<o.length;++a)oS.indexOf(o[a][0])>-1||eS.indexOf(o[a][0])>-1||null!=o[a][1]&&c.push(o[a]);i.length&&fb.utils.cfb_add(t,\"/\u0005SummaryInformation\",lS(i,Rx.SI,l,_C)),(r.length||c.length)&&fb.utils.cfb_add(t,\"/\u0005DocumentSummaryInformation\",lS(r,Rx.DSI,s,FC,c.length?c:null,Rx.UDI))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/[^\\/]*[\\/]/,\"/_VBA_PROJECT_CUR/\");\"/\"!==i.slice(-1)&&fb.utils.cfb_add(e,i,t.FileIndex[r].content)}}))}(r,fb.read(e.vbaraw,{type:\"string\"==typeof e.vbaraw?\"binary\":\"buffer\"})),r}(e,n),n)}(e,n);case\"xlsx\":case\"xlsm\":case\"xlam\":case\"xlsb\":case\"numbers\":case\"ods\":return function(e,t){var n=Pb(t||{});return function(e,t){var n={},r=gy?\"nodebuffer\":\"undefined\"!=typeof Uint8Array?\"array\":\"string\";if(t.compression&&(n.compression=\"DEFLATE\"),t.password)n.type=r;else switch(t.type){case\"base64\":n.type=\"base64\";break;case\"binary\":n.type=\"string\";break;case\"string\":throw new Error(\"'string' output type invalid for '\"+t.bookType+\"' files\");case\"buffer\":case\"file\":n.type=r;break;default:throw new Error(\"Unrecognized type \"+t.type)}var i=e.FullPaths?fb.write(e,{fileType:\"zip\",type:{nodebuffer:\"buffer\",string:\"binary\"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if(\"undefined\"!=typeof Deno&&\"string\"==typeof i){if(\"binary\"==t.type||\"base64\"==t.type)return i;i=new Uint8Array(by(i))}return t.password&&\"undefined\"!=typeof encrypt_agile?hA(encrypt_agile(i,t.password),t):\"file\"===t.type?yb(t.file,i):\"string\"==t.type?Zb(i):i}(uA(e,n),n)}(e,n);default:throw new Error(\"Unrecognized bookType |\"+n.bookType+\"|\")}}function mA(e,t,n,r,i,o,a,s){var l=Zw(n),c=s.defval,d=s.raw||!Object.prototype.hasOwnProperty.call(s,\"raw\"),u=!0,h=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(h,\"__rowNum__\",{value:n,enumerable:!1})}catch(e){h.__rowNum__=n}else h.__rowNum__=n;if(!a||e[n])for(var p=t.s.c;p<=t.e.c;++p){var g=a?e[n][p]:e[r[p]+l];if(void 0!==g&&void 0!==g.t){var f=g.v;switch(g.t){case\"z\":if(null==f)break;continue;case\"e\":f=0==f?null:void 0;break;case\"s\":case\"d\":case\"b\":case\"n\":break;default:throw new Error(\"unrecognized type \"+g.t)}if(null!=o[p]){if(null==f)if(\"e\"==g.t&&null===f)h[o[p]]=null;else if(void 0!==c)h[o[p]]=c;else{if(!d||null!==f)continue;h[o[p]]=null}else h[o[p]]=d&&(\"n\"!==g.t||\"n\"===g.t&&!1!==s.rawNumbers)?f:aC(g,f,s);null!=f&&(u=!1)}}else{if(void 0===c)continue;null!=o[p]&&(h[o[p]]=c)}}return{row:h,isempty:u}}function vA(e,t){if(null==e||null==e[\"!ref\"])return[];var n={t:\"n\",v:0},r=0,i=1,o=[],a=0,s=\"\",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},d=null!=c.range?c.range:e[\"!ref\"];switch(1===c.header?r=1:\"A\"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof d){case\"string\":l=oC(d);break;case\"number\":(l=oC(e[\"!ref\"])).s.r=d;break;default:l=d}r>0&&(i=0);var u=Zw(l.s.r),h=[],p=[],g=0,f=0,m=Array.isArray(e),v=l.s.r,y=0,b={};m&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e[\"!cols\"]||[],C=c.skipHidden&&e[\"!rows\"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(w[y]||{}).hidden)switch(h[y]=eC(y),n=m?e[v][y]:e[h[y]+u],r){case 1:o[y]=y-l.s.c;break;case 2:o[y]=h[y];break;case 3:o[y]=c.header[y-l.s.c];break;default:if(null==n&&(n={w:\"__EMPTY\",t:\"s\"}),s=a=aC(n,null,c),f=b[a]||0){do{s=a+\"_\"+f++}while(b[s]);b[a]=f,b[s]=1}else b[a]=1;o[y]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(C[v]||{}).hidden){var S=mA(e,l,v,h,r,o,m,c);(!1===S.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(p[g++]=S.row)}return p.length=g,p}var yA=/\"/g;function bA(e,t,n,r,i,o,a,s){for(var l=!0,c=[],d=\"\",u=Zw(n),h=t.s.c;h<=t.e.c;++h)if(r[h]){var p=s.dense?(e[n]||[])[h]:e[r[h]+u];if(null==p)d=\"\";else if(null!=p.v){l=!1,d=\"\"+(s.rawNumbers&&\"n\"==p.t?p.v:aC(p,null,s));for(var g=0,f=0;g!==d.length;++g)if((f=d.charCodeAt(g))===i||f===o||34===f||s.forceQuotes){d='\"'+d.replace(yA,'\"\"')+'\"';break}\"ID\"==d&&(d='\"ID\"')}else null==p.f||p.F?d=\"\":(l=!1,(d=\"=\"+p.f).indexOf(\",\")>=0&&(d='\"'+d.replace(yA,'\"\"')+'\"'));c.push(d)}return!1===s.blankrows&&l?null:c.join(a)}function wA(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e[\"!ref\"])return\"\";var i=oC(e[\"!ref\"]),o=void 0!==r.FS?r.FS:\",\",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:\"\\n\",l=s.charCodeAt(0),c=new RegExp((\"|\"==o?\"\\\\|\":o)+\"+$\"),d=\"\",u=[];r.dense=Array.isArray(e);for(var h=r.skipHidden&&e[\"!cols\"]||[],p=r.skipHidden&&e[\"!rows\"]||[],g=i.s.c;g<=i.e.c;++g)(h[g]||{}).hidden||(u[g]=eC(g));for(var f=0,m=i.s.r;m<=i.e.r;++m)(p[m]||{}).hidden||null!=(d=bA(e,i,m,u,a,l,o,r))&&(r.strip&&(d=d.replace(c,\"\")),(d||!1!==r.blankrows)&&n.push((f++?s:\"\")+d));return delete r.dense,n.join(\"\")}function CA(e,t){t||(t={}),t.FS=\"\\t\",t.RS=\"\\n\";var n=wA(e,t);if(void 0===sy||\"string\"==t.type)return n;var r=sy.utils.encode(1200,n,\"str\");return String.fromCharCode(255)+String.fromCharCode(254)+r}function SA(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if(\"number\"==typeof i.origin)s=i.origin;else{var c=\"string\"==typeof i.origin?tC(i.origin):i.origin;s=c.r,l=c.c}var d={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a[\"!ref\"]){var u=oC(a[\"!ref\"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==s&&(s=u.e.r+1,d.e.r=s+t.length-1+o)}else-1==s&&(s=0,d.e.r=t.length-1+o);var h=i.header||[],p=0;t.forEach((function(e,t){bb(e).forEach((function(n){-1==(p=h.indexOf(n))&&(h[p=h.length]=n);var c=e[n],d=\"z\",u=\"\",g=nC({c:l+p,r:s+t+o});r=EA(a,g),!c||\"object\"!=typeof c||c instanceof Date?(\"number\"==typeof c?d=\"n\":\"boolean\"==typeof c?d=\"b\":\"string\"==typeof c?d=\"s\":c instanceof Date?(d=\"d\",i.cellDates||(d=\"n\",c=xb(c)),u=i.dateNF||Ny[14]):null===c&&i.nullError&&(d=\"e\",c=0),r?(r.t=d,r.v=c,delete r.w,delete r.R,u&&(r.z=u)):a[g]=r={t:d,v:c},u&&(r.z=u)):a[g]=c}))})),d.e.c=Math.max(d.e.c,l+h.length-1);var g=Zw(s);if(o)for(p=0;p<h.length;++p)a[eC(p+l)+g]={t:\"s\",v:h[p]};return a[\"!ref\"]=iC(d),a}function EA(e,t,n){if(\"string\"==typeof t){if(Array.isArray(e)){var r=tC(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:\"z\"})}return e[t]||(e[t]={t:\"z\"})}return EA(e,nC(\"number\"!=typeof t?t:{r:t,c:n||0}))}function xA(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var AA={encode_col:eC,encode_row:Zw,encode_cell:nC,encode_range:iC,decode_col:Jw,decode_row:Xw,split_cell:function(e){return e.replace(/(\\$?[A-Z]*)(\\$?\\d*)/,\"$1,$2\").split(\",\")},decode_cell:tC,decode_range:rC,format_cell:aC,sheet_add_aoa:lC,sheet_add_json:SA,sheet_add_dom:Bx,aoa_to_sheet:cC,json_to_sheet:function(e,t){return SA(null,e,t)},table_to_sheet:Hx,table_to_book:function(e,t){return sC(Hx(e,t),t)},sheet_to_csv:wA,sheet_to_txt:CA,sheet_to_json:vA,sheet_to_html:Vx,sheet_to_formulae:function(e){var t,n=\"\",r=\"\";if(null==e||null==e[\"!ref\"])return[];var i,o=oC(e[\"!ref\"]),a=\"\",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=eC(i);for(var d=o.s.r;d<=o.e.r;++d)for(a=Zw(d),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,r=\"\",void 0!==(t=c?(e[d]||[])[i]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(\":\")&&(n=n+\":\"+n)}if(null!=t.f)r=t.f;else{if(\"z\"==t.t)continue;if(\"n\"==t.t&&null!=t.v)r=\"\"+t.v;else if(\"b\"==t.t)r=t.v?\"TRUE\":\"FALSE\";else if(void 0!==t.w)r=\"'\"+t.w;else{if(void 0===t.v)continue;r=\"s\"==t.t?\"'\"+t.v:\"\"+t.v}}l[l.length]=n+\"=\"+r}return l},sheet_to_row_object_array:vA,sheet_get_cell:EA,book_new:function(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n=\"Sheet\"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error(\"Too many worksheets\");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=a+i);++i);}if(yx(n),e.SheetNames.indexOf(n)>=0)throw new Error(\"Worksheet with name |\"+n+\"| already exists!\");return e.SheetNames.push(n),e.Sheets[n]=t,n},book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if(\"number\"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error(\"Cannot find sheet # \"+t)}if(\"string\"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error(\"Cannot find sheet name |\"+t+\"|\")}throw new Error(\"Cannot find sheet |\"+t+\"|\")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error(\"Bad sheet visibility setting \"+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:xA,cell_set_internal_link:function(e,t,n){return xA(e,\"#\"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||\"SheetJS\"})},sheet_set_array_formula:function(e,t,n,r){for(var i=\"string\"!=typeof t?t:oC(t),o=\"string\"==typeof t?t:iC(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=EA(e,a,s);l.t=\"n\",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};ey.version;var TA=n(4353),DA=n.n(TA),RA=n(3826),MA=n.n(RA),OA=n(445),kA=n.n(OA);DA().extend(MA()),DA().extend(kA());const IA=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null===n?DA()(e).format(t):DA()(e,n).format(n)},NA=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null===n?DA()(e).utc().format(t):DA()(e,n).utc().format(t)},PA=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re;return DA()().format(e)},LA=(e,t)=>DA()(e).isAfter(t),FA=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.length>0){const r=n.filter((e=>!e.field.includes(\"action\"))).map((e=>e.headerName)),i=[r,...e.map((e=>r.map((t=>e[n.find((e=>e.headerName===t)).field]))))],o=i[0],a=i.slice(1).map((e=>{const t={};return o.forEach(((n,r)=>{t[n]=e[r]})),t})),s=AA.json_to_sheet(a),l=AA.book_new();AA.book_append_sheet(l,s,\"Sheet1\"),function(e,t,n){var r={type:\"file\"};r.file=t,function(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(\".\")).toLowerCase();t.match(/^\\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:\"biff8\",htm:\"html\",slk:\"sylk\",socialcalc:\"eth\",Sh33tJS:\"WTF\"}[e.bookType]||e.bookType}}(r),fA(e,r)}(l,\"\".concat(t,\"_\").concat(PA(\"DD/MM/YYYY HH:mm a\").replace(/\\s/g,\"\"),\".xlsx\"))}},_A=async(e,t,n)=>{try{await e(t,n)}catch(e){}};var zA=n(2543);const GA=e=>{let{isOpenDrawer:n=!0,onRequestClose:r=(()=>{})}=e;const o=Ng(),[a]=(0,t.useState)({ownerName:\"\",shopName:\"\",mobileNumber:\"\",province:\"\",district:\"\",ward:\"\"}),{showLoader:s,hideLoader:l}=Jv(),[c,d]=(0,t.useState)(\"\"),{User:u}=Ue(),{provinceList:h,districtList:p,wardList:g,fetchDistrictWard:f,clearDistrictWardList:m}=Xv(u),v=()=>{r(!0)},y=e=>{switch(e){case Te.PROVINCE:m();break;case Te.PROVINCIAL_CITIES_DISTRICT:m(1)}},b=(0,zA.debounce)((e=>{w(e)}),500),w=async e=>{s();const t={ownerName:e.ownerName,shopName:e.shopName,mobileNumber:e.mobileNumber,geoDataId:c,country_app_id:u.selectedApplication.country_app_id};try{const e=await((e,t)=>Hv.getInstances().getApiService($v(),Bv.POST,e,{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)}))(t,u);null!=e&&e.message&&(l(),mt.success(e.message),r(!0))}catch(e){l(),mt.error(e.message)}};return i().createElement(Ps,{isDrawerOpen:n,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\"},Te.ADD_RETAILER),i().createElement(gl,{className:\"closeIcon\",\"aria-label\":\"close\",onClick:()=>r(!1),\"data-testid\":\"closeIcon\"},i().createElement(Zv.A,null))),i().createElement(Gn,{className:\"\".concat(o.scrollCard,\" scrollable\")},i().createElement(qu,{initialValues:a,validationSchema:Qf,enableReinitialize:!0,onSubmit:(e,t)=>{b(e)},validate:e=>{const t={};return e.mobileNumber.length<10&&(t.mobileNumber=\"Enter 10 digit Mobile Number\"),t}},(e=>{let{values:t,setFieldValue:n}=e;return i().createElement(th,{className:\"popupContent\"},i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.MOBILE_NUMBER),i().createElement(eh,{type:\"text\",name:\"mobileNumber\",className:\"inputField\",placeholder:Te.MOBILE_NUMBER_PLACEHOLDER,defaultValue:null==t?void 0:t.mobileNumber,onChange:e=>((e,t)=>{const n=e.target.value.replace(/[^\\d]/g,\"\").substring(0,10);_A(t,\"mobileNumber\",n)})(e,n)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"mobileNumber\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.OWNER_NAME),i().createElement(eh,{type:\"text\",name:\"ownerName\",className:\"inputField\",placeholder:Te.OWNER_NAME_PLACEHOLDER,defaultValue:t.ownerName,onChange:e=>((e,t)=>{const n=e.target.value.replace(/[^\\w\\s]/g,\"\");_A(t,\"ownerName\",n)})(e,n)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"ownerName\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.SHOP_NAME),i().createElement(eh,{type:\"text\",name:\"shopName\",className:\"inputField\",placeholder:Te.SHOP_NAME_PLACEHOLDER,defaultValue:t.shopName,onChange:e=>((e,t)=>{const n=e.target.value.replace(/[^\\w\\s]/g,\"\");_A(t,\"shopName\",n)})(e,n)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"shopName\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.PROVINCE),i().createElement(_g,{\"data-testid\":\"province\",name:\"province\",options:h,labelKey:\"name\",value:t.province,defaultLabel:Te.PROVINCE_PLACEHOLDER,onChange:(e,t)=>{_A(n,e,t.name),_A(n,\"district\",\"\"),_A(n,\"ward\",\"\"),f(t.id,0),y(Te.PROVINCE)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"province\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.PROVINCIAL_CITIES_DISTRICT),i().createElement(_g,{name:\"district\",labelKey:\"name\",options:p,value:t.district,defaultLabel:Te.PROVINCIAL_CITIES_DISTRICT_PLACEHOLDER,onChange:(e,t)=>{_A(n,e,t.name),_A(n,\"ward\",\"\"),f(t.id,1),y(Te.PROVINCIAL_CITIES_DISTRICT)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"district\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.WARD_COMMUNE),i().createElement(_g,{name:\"ward\",labelKey:\"name\",options:g,value:t.ward,defaultLabel:Te.WARD_COMMUNE_PLACEHOLDER,onChange:(e,t)=>{_A(n,e,t.name),d(t.id)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"ward\"})))),i().createElement(Kv,{onRequestClose:v}))})))))};var VA=n(4745);function BA(e){return(0,un.Ay)(\"MuiFormLabel\",e)}const HA=(0,qt.A)(\"MuiFormLabel\",[\"root\",\"colorSecondary\",\"focused\",\"disabled\",\"error\",\"filled\",\"required\",\"asterisk\"]),jA=[\"children\",\"className\",\"color\",\"component\",\"disabled\",\"error\",\"filled\",\"focused\",\"required\"],UA=(0,Ot.Ay)(\"label\",{name:\"MuiFormLabel\",slot:\"Root\",overridesResolver:({ownerState:e},t)=>(0,Tt.A)({},t.root,\"secondary\"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,Tt.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:\"1.4375em\",padding:0,position:\"relative\",[`&.${HA.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${HA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${HA.error}`]:{color:(e.vars||e).palette.error.main}}))),WA=(0,Ot.Ay)(\"span\",{name:\"MuiFormLabel\",slot:\"Asterisk\",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${HA.error}`]:{color:(e.vars||e).palette.error.main}}))),$A=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiFormLabel\"}),{children:r,className:i,component:o=\"label\"}=n,a=(0,At.A)(n,jA),s=fl({props:n,muiFormControl:vl(),states:[\"color\",\"required\",\"focused\",\"disabled\",\"error\",\"filled\"]}),l=(0,Tt.A)({},n,{color:s.color||\"primary\",component:o,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:[\"root\",`color${(0,vn.A)(n)}`,i&&\"disabled\",o&&\"error\",a&&\"filled\",r&&\"focused\",s&&\"required\"],asterisk:[\"asterisk\",o&&\"error\"]};return(0,Rt.A)(l,BA,t)})(l);return(0,Kt.jsxs)(UA,(0,Tt.A)({as:o,ownerState:l,className:(0,We.A)(c.root,i),ref:t},a,{children:[r,s.required&&(0,Kt.jsxs)(WA,{ownerState:l,\"aria-hidden\":!0,className:c.asterisk,children:[\" \",\"*\"]})]}))}));function YA(e){return(0,un.Ay)(\"MuiInputLabel\",e)}(0,qt.A)(\"MuiInputLabel\",[\"root\",\"focused\",\"disabled\",\"error\",\"required\",\"asterisk\",\"formControl\",\"sizeSmall\",\"shrink\",\"animated\",\"standard\",\"filled\",\"outlined\"]);const KA=[\"disableAnimation\",\"margin\",\"shrink\",\"variant\",\"className\"],qA=(0,Ot.Ay)($A,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiInputLabel\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${HA.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,\"small\"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,Tt.A)({display:\"block\",transformOrigin:\"top left\",whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",maxWidth:\"100%\"},t.formControl&&{position:\"absolute\",left:0,top:0,transform:\"translate(0, 20px) scale(1)\"},\"small\"===t.size&&{transform:\"translate(0, 17px) scale(1)\"},t.shrink&&{transform:\"translate(0, -1.5px) scale(0.75)\",transformOrigin:\"top left\",maxWidth:\"133%\"},!t.disableAnimation&&{transition:e.transitions.create([\"color\",\"transform\",\"max-width\"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},\"filled\"===t.variant&&(0,Tt.A)({zIndex:1,pointerEvents:\"none\",transform:\"translate(12px, 16px) scale(1)\",maxWidth:\"calc(100% - 24px)\"},\"small\"===t.size&&{transform:\"translate(12px, 13px) scale(1)\"},t.shrink&&(0,Tt.A)({userSelect:\"none\",pointerEvents:\"auto\",transform:\"translate(12px, 7px) scale(0.75)\",maxWidth:\"calc(133% - 24px)\"},\"small\"===t.size&&{transform:\"translate(12px, 4px) scale(0.75)\"})),\"outlined\"===t.variant&&(0,Tt.A)({zIndex:1,pointerEvents:\"none\",transform:\"translate(14px, 16px) scale(1)\",maxWidth:\"calc(100% - 24px)\"},\"small\"===t.size&&{transform:\"translate(14px, 9px) scale(1)\"},t.shrink&&{userSelect:\"none\",pointerEvents:\"auto\",maxWidth:\"calc(133% - 32px)\",transform:\"translate(14px, -9px) scale(0.75)\"})))),QA=t.forwardRef((function(e,t){const n=(0,It.A)({name:\"MuiInputLabel\",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,a=(0,At.A)(n,KA),s=vl();let l=i;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=fl({props:n,muiFormControl:s,states:[\"size\",\"variant\",\"required\",\"focused\"]}),d=(0,Tt.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),u=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:[\"root\",n&&\"formControl\",!o&&\"animated\",i&&\"shrink\",r&&\"normal\"!==r&&`size${(0,vn.A)(r)}`,a],asterisk:[s&&\"asterisk\"]},c=(0,Rt.A)(l,YA,t);return(0,Tt.A)({},t,c)})(d);return(0,Kt.jsx)(qA,(0,Tt.A)({\"data-shrink\":l,ownerState:d,ref:t,className:(0,We.A)(u.root,o)},a,{classes:u}))}));var XA=n(5602);function ZA(e){return(0,un.Ay)(\"MuiFormControl\",e)}(0,qt.A)(\"MuiFormControl\",[\"root\",\"marginNone\",\"marginNormal\",\"marginDense\",\"fullWidth\",\"disabled\"]);const JA=[\"children\",\"className\",\"color\",\"component\",\"disabled\",\"error\",\"focused\",\"fullWidth\",\"hiddenLabel\",\"margin\",\"required\",\"size\",\"variant\"],eT=(0,Ot.Ay)(\"div\",{name:\"MuiFormControl\",slot:\"Root\",overridesResolver:({ownerState:e},t)=>(0,Tt.A)({},t.root,t[`margin${(0,vn.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,Tt.A)({display:\"inline-flex\",flexDirection:\"column\",position:\"relative\",minWidth:0,padding:0,margin:0,border:0,verticalAlign:\"top\"},\"normal\"===e.margin&&{marginTop:16,marginBottom:8},\"dense\"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:\"100%\"}))),tT=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiFormControl\"}),{children:i,className:o,color:a=\"primary\",component:s=\"div\",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:p=\"none\",required:g=!1,size:f=\"medium\",variant:m=\"outlined\"}=r,v=(0,At.A)(r,JA),y=(0,Tt.A)({},r,{color:a,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:p,required:g,size:f,variant:m}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:[\"root\",\"none\"!==n&&`margin${(0,vn.A)(n)}`,r&&\"fullWidth\"]};return(0,Rt.A)(i,ZA,t)})(y),[w,C]=t.useState((()=>{let e=!1;return i&&t.Children.forEach(i,(t=>{if(!(0,XA.A)(t,[\"Input\",\"Select\"]))return;const n=(0,XA.A)(t,[\"Select\"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[S,E]=t.useState((()=>{let e=!1;return i&&t.Children.forEach(i,(t=>{(0,XA.A)(t,[\"Input\",\"Select\"])&&(sp(t.props,!0)||sp(t.props.inputProps,!0))&&(e=!0)})),e})),[x,A]=t.useState(!1);l&&x&&A(!1);const T=void 0===d||l?x:d;let D;const R=t.useMemo((()=>({adornedStart:w,setAdornedStart:C,color:a,disabled:l,error:c,filled:S,focused:T,fullWidth:u,hiddenLabel:h,size:f,onBlur:()=>{A(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{A(!0)},registerEffect:D,required:g,variant:m})),[w,a,l,c,S,T,u,h,D,g,f,m]);return(0,Kt.jsx)(ml.Provider,{value:R,children:(0,Kt.jsx)(eT,(0,Tt.A)({as:s,ownerState:y,className:(0,We.A)(b.root,o),ref:n},v,{children:i}))})}));function nT(e){return(0,un.Ay)(\"MuiTextField\",e)}(0,qt.A)(\"MuiTextField\",[\"root\"]);const rT=[\"autoComplete\",\"autoFocus\",\"children\",\"className\",\"color\",\"defaultValue\",\"disabled\",\"error\",\"FormHelperTextProps\",\"fullWidth\",\"helperText\",\"id\",\"InputLabelProps\",\"inputProps\",\"InputProps\",\"inputRef\",\"label\",\"maxRows\",\"minRows\",\"multiline\",\"name\",\"onBlur\",\"onChange\",\"onFocus\",\"placeholder\",\"required\",\"rows\",\"select\",\"SelectProps\",\"type\",\"value\",\"variant\"],iT={standard:Yp,filled:eg,outlined:hg},oT=(0,Ot.Ay)(tT,{name:\"MuiTextField\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),aT=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiTextField\"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s=\"primary\",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:p,id:g,InputLabelProps:f,inputProps:m,InputProps:v,inputRef:y,label:b,maxRows:w,minRows:C,multiline:S=!1,name:E,onBlur:x,onChange:A,onFocus:T,placeholder:D,required:R=!1,rows:M,select:O=!1,SelectProps:k,type:I,value:N,variant:P=\"outlined\"}=n,L=(0,At.A)(n,rT),F=(0,Tt.A)({},n,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:h,multiline:S,required:R,select:O,variant:P}),_=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},nT,t)})(F),z={};\"outlined\"===P&&(f&&void 0!==f.shrink&&(z.notched=f.shrink),z.label=b),O&&(k&&k.native||(z.id=void 0),z[\"aria-describedby\"]=void 0);const G=(0,ch.A)(g),V=p&&G?`${G}-helper-text`:void 0,B=b&&G?`${G}-label`:void 0,H=iT[P],j=(0,Kt.jsx)(H,(0,Tt.A)({\"aria-describedby\":V,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:h,multiline:S,name:E,rows:M,maxRows:w,minRows:C,type:I,value:N,id:G,inputRef:y,onBlur:x,onChange:A,onFocus:T,placeholder:D,inputProps:m},z,v));return(0,Kt.jsxs)(oT,(0,Tt.A)({className:(0,We.A)(_.root,a),disabled:c,error:d,fullWidth:h,ref:t,required:R,color:s,variant:P,ownerState:F},L,{children:[null!=b&&\"\"!==b&&(0,Kt.jsx)(QA,(0,Tt.A)({htmlFor:G,id:B},f,{children:b})),O?(0,Kt.jsx)(wg,(0,Tt.A)({\"aria-describedby\":V,id:G,labelId:B,value:N,input:j},k,{children:o})):j,p&&(0,Kt.jsx)(El,(0,Tt.A)({id:V},u,{children:p}))]}))}));var sT=n(8221),lT=n.n(sT);const cT=gs({searchFieldHelper:{marginLeft:\"auto\",border:\"1px solid \".concat(Ds.palette.grey[300]),color:\"\".concat(Ds.palette.grey[500],\" !important\"),backgroundColor:\"\".concat(Ds.palette.secondary.dark),borderRadius:Ds.shape.borderRadius,font:\"normal normal 400 14px NotoSans-Regular !important\",\"&.Mui-focused\":{border:\"1px solid \".concat(Ds.palette.grey[300])},\"& .css-1o9s3wi-MuiInputBase-input-MuiOutlinedInput-input\":{padding:0,paddingLeft:7},\"& input\":{font:\"normal normal 400 14px NotoSans-Regular !important\",\"&:placeholder\":{color:\"\".concat(Ds.palette.grey[500],\" !important\")}},\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0}},iconHelper:{color:\"#23263080\"},textFieldHelper:{width:\"100%\"}}),dT=e=>{let{isResetSearchValue:n,onSearchValueChange:r,placeholderText:o,className:a,inputStyle:s}=e;const l=cT();(0,t.useEffect)((()=>{document.getElementById(\"genericSearchField\").value=\"\"}),[n]);const c=lT()((e=>{r&&r(e.target.value)}),500);return i().createElement(\"div\",{className:\"\".concat(l.searchFieldHelper,\" \").concat(a)},i().createElement(aT,{id:\"genericSearchField\",variant:\"outlined\",placeholder:o,className:l.textFieldHelper,InputProps:{sx:{height:\"36px\",minWidth:\"250px\",fontSize:\"14px\",background:\"white\",...s},startAdornment:i().createElement(VA.A,{fontSize:\"small\",className:l.iconHelper})},onChange:c}))},uT=i().memo(dT);var hT=n(9067),pT={};pT.styleTagTransform=m(),pT.setAttributes=h(),pT.insert=d().bind(null,\"head\"),pT.domAPI=l(),pT.insertStyleElement=g(),a()(hT.A,pT),hT.A&&hT.A.locals&&hT.A.locals;var gT=n(1590),fT={};fT.styleTagTransform=m(),fT.setAttributes=h(),fT.insert=d().bind(null,\"head\"),fT.domAPI=l(),fT.insertStyleElement=g(),a()(gT.A,fT),gT.A&&gT.A.locals&&gT.A.locals;var mT=n(6170),vT={};vT.styleTagTransform=m(),vT.setAttributes=h(),vT.insert=d().bind(null,\"head\"),vT.domAPI=l(),vT.insertStyleElement=g(),a()(mT.A,vT),mT.A&&mT.A.locals&&mT.A.locals;var yT=Object.defineProperty,bT=Object.defineProperties,wT=Object.getOwnPropertyDescriptor,CT=Object.getOwnPropertyDescriptors,ST=Object.getOwnPropertySymbols,ET=Object.prototype.hasOwnProperty,xT=Object.prototype.propertyIsEnumerable,AT=(e,t,n)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TT=(e,t)=>{for(var n in t||(t={}))ET.call(t,n)&&AT(e,n,t[n]);if(ST)for(var n of ST(t))xT.call(t,n)&&AT(e,n,t[n]);return e},DT=(e,t)=>bT(e,CT(t)),RT=(e,t)=>{for(var n in t)yT(e,n,{get:t[n],enumerable:!0})},MT=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?wT(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&yT(t,n,o),o},OT=(e,t)=>(n,r)=>t(n,r,e),kT={};function IT(e){return null==e||\"\"===e?null:e}function NT(e,t=!1){return null!=e&&(\"\"!==e||t)}function PT(e){return!NT(e)}function LT(e){return null==e||0===e.length}function FT(e){return null!=e&&\"function\"==typeof e.toString?e.toString():null}function _T(e){if(void 0===e)return;if(null===e||\"\"===e)return null;if(\"number\"==typeof e)return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function zT(e){if(void 0!==e)return null!==e&&\"\"!==e&&(\"boolean\"==typeof e?e:/true/i.test(e))}function GT(e){if(null!=e&&\"\"!==e)return e}function VT(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function BT(e,t,n=!1){const r=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function o(e,t){return e>t?1:e<t?-1:0}if(\"string\"!=typeof e)return o(e,t);if(!n)return o(e,t);try{return e.localeCompare(t)}catch(n){return o(e,t)}}function HT(e){if(e instanceof Set||e instanceof Map){const t=[];return e.forEach((e=>t.push(e))),t}return Object.values(e)}RT(kT,{attrToBoolean:()=>zT,attrToNumber:()=>_T,attrToString:()=>GT,defaultComparator:()=>BT,exists:()=>NT,jsonEquals:()=>VT,makeNull:()=>IT,missing:()=>PT,missingOrEmpty:()=>LT,toStringOrNull:()=>FT,values:()=>HT});var jT=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=FT(e);let n=0;for(;;){let r;if(e?(r=e,0!==n&&(r+=\"_\"+n)):t?(r=t,0!==n&&(r+=\"_\"+n)):r=n,!this.existingKeys[r])return this.existingKeys[r]=!0,String(r);n++}}},UT={};function WT(e,t){if(null!=e)if(Array.isArray(e))for(let n=0;n<e.length;n++)t(n.toString(),e[n]);else for(const[n,r]of Object.entries(e))t(n,r)}function $T(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r],o=e[i];t[i]=o}return t}function YT(e,t){if(!e)return;const n=e,r={};return Object.keys(n).forEach((e=>{if(t&&t.indexOf(e)>=0)return;const i=n[e],o=ZT(i)&&i.constructor===Object;r[e]=o?YT(i):i})),r}function KT(e){if(!e)return[];const t=Object;if(\"function\"==typeof t.values)return t.values(e);const n=[];for(const t in e)e.hasOwnProperty(t)&&e.propertyIsEnumerable(t)&&n.push(e[t]);return n}function qT(e,t,n=!0,r=!1){NT(t)&&WT(t,((t,i)=>{let o=e[t];o!==i&&(r&&null==o&&null!=i&&\"object\"==typeof i&&i.constructor===Object&&(o={},e[t]=o),ZT(i)&&ZT(o)&&!Array.isArray(o)?qT(o,i,n,r):(n||void 0!==i)&&(e[t]=i))}))}function QT(e,t,n){if(!t||!e)return;if(!n)return e[t];const r=t.split(\".\");let i=e;for(let e=0;e<r.length;e++){if(null==i)return;i=i[r[e]]}return i}function XT(e,t=[],n){Object.keys(e).forEach((n=>{\"object\"!=typeof e[n]||t.includes(n)||(e[n]=void 0)}));const r=Object.getPrototypeOf(e),i={};Object.getOwnPropertyNames(r).forEach((e=>{if(\"function\"==typeof r[e]&&!t.includes(e)){const t=()=>{console.warn((e=>`AG Grid: Grid API function ${e}() cannot be called as the grid has been destroyed.\\n    It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\\n    To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${n}`)(e))};i[e]={value:t,writable:!0}}})),Object.defineProperties(e,i)}function ZT(e){return\"object\"==typeof e&&null!==e}RT(UT,{cloneObject:()=>$T,deepCloneDefinition:()=>YT,getAllValuesInObject:()=>KT,getValueUsingField:()=>QT,isNonNullObject:()=>ZT,iterateObject:()=>WT,mergeDeep:()=>qT,removeAllReferences:()=>XT});var JT={};RT(JT,{compose:()=>gD,debounce:()=>uD,doOnce:()=>tD,errorOnce:()=>rD,executeAfter:()=>dD,executeInAWhile:()=>aD,executeNextVMTurn:()=>cD,getFunctionName:()=>iD,isFunction:()=>oD,noop:()=>fD,throttle:()=>hD,waitUntil:()=>pD,warnOnce:()=>nD});var eD={};function tD(e,t){eD[t]||(e(),eD[t]=!0)}function nD(e){tD((()=>console.warn(\"AG Grid: \"+e)),e)}function rD(e){tD((()=>console.error(\"AG Grid: \"+e)),e)}function iD(e){if(e.name)return e.name;const t=/function\\s+([^\\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function oD(e){return!!(e&&e.constructor&&e.call&&e.apply)}function aD(e){dD(e,400)}var sD=[],lD=!1;function cD(e){sD.push(e),lD||(lD=!0,window.setTimeout((()=>{const e=sD.slice();sD.length=0,lD=!1,e.forEach((e=>e()))}),0))}function dD(e,t=0){e.length>0&&window.setTimeout((()=>e.forEach((e=>e()))),t)}function uD(e,t){let n;return function(...r){const i=this;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(i,r)}),t)}}function hD(e,t){let n=0;return function(...r){const i=(new Date).getTime();i-n<t||(n=i,e.apply(this,r))}}function pD(e,t,n=100,r){const i=(new Date).getTime();let o=null,a=!1;const s=()=>{const s=(new Date).getTime()-i>n;(e()||s)&&(t(),a=!0,null!=o&&(window.clearInterval(o),o=null),s&&r&&console.warn(r))};s(),a||(o=window.setInterval(s,10))}function gD(...e){return t=>e.reduce(((e,t)=>t(e)),t)}var fD=()=>{},mD=(e=>(e.CommunityCoreModule=\"@ag-grid-community/core\",e.InfiniteRowModelModule=\"@ag-grid-community/infinite-row-model\",e.ClientSideRowModelModule=\"@ag-grid-community/client-side-row-model\",e.CsvExportModule=\"@ag-grid-community/csv-export\",e.EnterpriseCoreModule=\"@ag-grid-enterprise/core\",e.RowGroupingModule=\"@ag-grid-enterprise/row-grouping\",e.ColumnsToolPanelModule=\"@ag-grid-enterprise/column-tool-panel\",e.FiltersToolPanelModule=\"@ag-grid-enterprise/filter-tool-panel\",e.MenuModule=\"@ag-grid-enterprise/menu\",e.SetFilterModule=\"@ag-grid-enterprise/set-filter\",e.MultiFilterModule=\"@ag-grid-enterprise/multi-filter\",e.StatusBarModule=\"@ag-grid-enterprise/status-bar\",e.SideBarModule=\"@ag-grid-enterprise/side-bar\",e.RangeSelectionModule=\"@ag-grid-enterprise/range-selection\",e.MasterDetailModule=\"@ag-grid-enterprise/master-detail\",e.RichSelectModule=\"@ag-grid-enterprise/rich-select\",e.GridChartsModule=\"@ag-grid-enterprise/charts\",e.ViewportRowModelModule=\"@ag-grid-enterprise/viewport-row-model\",e.ServerSideRowModelModule=\"@ag-grid-enterprise/server-side-row-model\",e.ExcelExportModule=\"@ag-grid-enterprise/excel-export\",e.ClipboardModule=\"@ag-grid-enterprise/clipboard\",e.SparklinesModule=\"@ag-grid-enterprise/sparklines\",e.AdvancedFilterModule=\"@ag-grid-enterprise/advanced-filter\",e.AngularModule=\"@ag-grid-community/angular\",e.ReactModule=\"@ag-grid-community/react\",e.VueModule=\"@ag-grid-community/vue\",e))(mD||{}),vD=class e{static register(t){e.__register(t,!0,void 0)}static registerModules(t){e.__registerModules(t,!0,void 0)}static __register(t,n,r){e.runVersionChecks(t),void 0!==r?(e.areGridScopedModules=!0,void 0===e.gridModulesMap[r]&&(e.gridModulesMap[r]={}),e.gridModulesMap[r][t.moduleName]=t):e.globalModulesMap[t.moduleName]=t,e.setModuleBased(n)}static __unRegisterGridModules(t){delete e.gridModulesMap[t]}static __registerModules(t,n,r){e.setModuleBased(n),t&&t.forEach((t=>e.__register(t,n,r)))}static isValidModuleVersion(t){const[n,r]=t.version.split(\".\")||[],[i,o]=e.currentModuleVersion.split(\".\")||[];return n===i&&r===o}static runVersionChecks(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?e.isValidModuleVersion(t)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is version ${t.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is incompatible. Please update all modules to the same version.`),t.validate){const e=t.validate();if(!e.isValid){const t=e;console.error(`AG Grid: ${t.message}`)}}}static setModuleBased(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&tD((()=>{console.warn(\"AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms.\"),console.warn(\"Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.\")}),\"ModulePackageCheck\")}static __setIsBundled(){e.isBundled=!0}static __assertRegistered(t,n,r){var i;if(this.__isRegistered(t,r))return!0;const o=n+t;let a;if(e.isBundled)a=`AG Grid: unable to use ${n} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\\n        \\n        <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\\/script>\\n        \\nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(e.moduleBased||void 0===e.moduleBased){let o=null==(i=Object.entries(mD).find((([e,n])=>n===t)))?void 0:i[0];a=`AG Grid: unable to use ${n} as the ${o} is not registered${e.areGridScopedModules?` for gridId: ${r}`:\"\"}. Check if you have registered the module:\\n           \\n    import { ModuleRegistry } from '@ag-grid-community/core';\\n    import { ${o} } from '${t}';\\n    \\n    ModuleRegistry.registerModules([ ${o} ]);\\n\\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/`}else a=`AG Grid: unable to use ${n} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\\n            \\n    import 'ag-grid-enterprise';\\n            \\nFor more info see: https://www.ag-grid.com/javascript-grid/packages/`;return tD((()=>{console.warn(a)}),o),!1}static __warnEnterpriseChartDisabled(e){const t=`AG Grid: the '${e}' chart type is not supported in AG Charts Community as 'ag-grid-charts-enterprise' or '@ag-grid-enterprise/charts-enterprise' hasn't been loaded. See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`;tD((()=>{console.warn(t)}),\"ag-charts-enterprise:\"+e)}static __isRegistered(t,n){var r;return!!e.globalModulesMap[t]||!!(null==(r=e.gridModulesMap[n])?void 0:r[t])}static __getRegisteredModules(t){return[...HT(e.globalModulesMap),...HT(e.gridModulesMap[t]||{})]}static __getGridRegisteredModules(t){var n;return HT(null!=(n=e.gridModulesMap[t])?n:{})||[]}static __isPackageBased(){return!e.moduleBased}};vD.globalModulesMap={},vD.gridModulesMap={},vD.areGridScopedModules=!1;var yD=vD,bD=class{constructor(e,t){if(this.beanWrappers={},this.destroyed=!1,!e||!e.beanClasses)return;this.contextParams=e,this.logger=t,this.logger.log(\">> creating ag-Application Context\"),this.createBeans();const n=this.getBeanInstances();this.wireBeans(n),this.logger.log(\">> ag-Application Context ready - component is alive\")}getBeanInstances(){return HT(this.beanWrappers).map((e=>e.beanInstance))}createBean(e,t){if(!e)throw Error(\"Can't wire to bean since it is null\");return this.wireBeans([e],t),e}wireBeans(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,\"preConstructMethods\"),NT(t)&&e.forEach(t),this.callLifeCycleMethods(e,\"postConstructMethods\")}createBeans(){this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),WT(this.beanWrappers,((e,t)=>{let n;t.bean.__agBeanMetaData&&t.bean.__agBeanMetaData.autowireMethods&&t.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=t.bean.__agBeanMetaData.autowireMethods.agConstructor);const r=this.getBeansForParameters(n,t.bean.name),i=new(t.bean.bind.apply(t.bean,[null,...r]));t.beanInstance=i}));const e=Object.keys(this.beanWrappers).join(\", \");this.logger.log(`created beans: ${e}`)}createBeanWrapper(e){const t=e.__agBeanMetaData;if(!t){let t;return t=e.prototype.constructor?iD(e.prototype.constructor):\"\"+e,void console.error(`Context item ${t} is not a bean`)}const n={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=n}autoWireBeans(e){e.forEach((e=>{this.forEachMetaDataInHierarchy(e,((t,n)=>{const r=t.agClassAttributes;r&&r.forEach((t=>{const r=this.lookupBeanInstance(n,t.beanName,t.optional);e[t.attributeName]=r}))}))}))}methodWireBeans(e){e.forEach((e=>{this.forEachMetaDataInHierarchy(e,((t,n)=>{WT(t.autowireMethods,((t,r)=>{if(\"agConstructor\"===t)return;const i=this.getBeansForParameters(r,n);e[t].apply(e,i)}))}))}))}forEachMetaDataInHierarchy(e,t){let n=Object.getPrototypeOf(e);for(;null!=n;){const e=n.constructor;e.hasOwnProperty(\"__agBeanMetaData\")&&t(e.__agBeanMetaData,this.getBeanName(e)),n=Object.getPrototypeOf(n)}}getBeanName(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;const t=e.toString();return t.substring(9,t.indexOf(\"(\"))}getBeansForParameters(e,t){const n=[];return e&&WT(e,((e,r)=>{const i=this.lookupBeanInstance(t,r);n[Number(e)]=i})),n}lookupBeanInstance(e,t,n=!1){if(this.destroyed)return this.logger.log(`AG Grid: bean reference ${t} is used after the grid is destroyed!`),null;if(\"context\"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];const r=this.beanWrappers[t];return r?r.beanInstance:(n||console.error(`AG Grid: unable to find bean reference ${t} while initialising ${e}`),null)}callLifeCycleMethods(e,t){e.forEach((e=>this.callLifeCycleMethodsOnBean(e,t)))}callLifeCycleMethodsOnBean(e,t,n){const r={};this.forEachMetaDataInHierarchy(e,(e=>{const i=e[t];i&&i.forEach((e=>{e!=n&&(r[e]=!0)}))})),Object.keys(r).forEach((t=>e[t]()))}getBean(e){return this.lookupBeanInstance(\"getBean\",e,!0)}destroy(){if(this.destroyed)return;this.destroyed=!0,this.logger.log(\">> Shutting down ag-Application Context\");const e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,yD.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(\">> ag-Application Context shut down - component is dead\")}destroyBean(e){e&&this.destroyBeans([e])}destroyBeans(e){return e?(e.forEach((e=>{this.callLifeCycleMethodsOnBean(e,\"preDestroyMethods\",\"destroy\");const t=e;\"function\"==typeof t.destroy&&t.destroy()})),[]):[]}isDestroyed(){return this.destroyed}getGridId(){return this.contextParams.gridId}};function wD(e,t,n){const r=RD(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function CD(e,t,n){const r=RD(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function SD(e,t,n){const r=RD(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function ED(e){return t=>{RD(t).beanName=e}}function xD(e){return(t,n,r)=>{TD(t,e,!1,0,n,null)}}function AD(e){return(t,n,r)=>{TD(t,e,!0,0,n,null)}}function TD(e,t,n,r,i,o){if(null===t)return void console.error(\"AG Grid: Autowired name should not be null\");if(\"number\"==typeof o)return void console.error(\"AG Grid: Autowired should be on an attribute\");const a=RD(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:i,beanName:t,optional:n})}function DD(e){return(t,n,r)=>{const i=\"function\"==typeof t?t:t.constructor;let o;if(\"number\"==typeof r){let t;n?(o=RD(i),t=n):(o=RD(i),t=\"agConstructor\"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[t]||(o.autowireMethods[t]={}),o.autowireMethods[t][r]=e}}}function RD(e){return e.hasOwnProperty(\"__agBeanMetaData\")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var MD=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setBeans(e,t,n=null,r=null){if(this.frameworkOverrides=t,this.gridOptionsService=e,n){const t=e.useAsyncEvents();this.addGlobalListener(n,t)}r&&this.addGlobalListener(r,!1)}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const r=this.getListeners(e,n,!1);r&&(r.delete(t),0===r.size)&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e)}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){let t=e;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(t),this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){var n;const r=e.type;if(t&&\"event\"in e){const t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}const i=null!=(n=this.getListeners(r,t,!1))?n:new Set,o=new Set(i);o.size>0&&((n,r)=>{n.forEach((n=>{if(!r.has(n))return;const i=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming((()=>n(e))):()=>n(e);t?this.dispatchAsync(i):i()}))})(o,i),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((n=>{const i=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming((()=>n(r,e))):()=>n(r,e);t?this.dispatchAsync(i):i()}))}dispatchAsync(e){this.asyncFunctionsQueue.push(e),this.scheduled||(this.frameworkOverrides.wrapIncoming((()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)})),this.scheduled=!0)}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((e=>e()))}};MT([OT(0,DD(\"gridOptionsService\")),OT(1,DD(\"frameworkOverrides\")),OT(2,DD(\"globalEventListener\")),OT(3,DD(\"globalSyncEventListener\"))],MD.prototype,\"setBeans\",1),MD=MT([ED(\"eventService\")],MD);var OD=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=t=>{this.frameworkOverrides.wrapOutgoing((()=>e(t)))},this.wrappedListeners.set(e,t)),t}wrapGlobal(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=(t,n)=>{this.frameworkOverrides.wrapOutgoing((()=>e(t,n)))},this.wrappedGlobalListeners.set(e,t)),t}unwrap(e){var t;return null!=(t=this.wrappedListeners.get(e))?t:e}unwrapGlobal(e){var t;return null!=(t=this.wrappedGlobalListeners.get(e))?t:e}},kD={resizable:!0,sortable:!0},ID=0;function ND(){return ID++}var PD=class e{constructor(e,t,n,r){this.instanceId=ND(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new MD,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}getInstanceId(){return this.instanceId}setState(e){void 0!==e.sort?\"asc\"!==e.sort&&\"desc\"!==e.sort||(this.sort=e.sort):\"asc\"!==e.initialSort&&\"desc\"!==e.initialSort||(this.sort=e.initialSort);const t=e.sortIndex,n=e.initialSortIndex;void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);const r=e.hide,i=e.initialHide;this.visible=void 0!==r?!r:!i,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);const o=e.flex,a=e.initialFlex;void 0!==o?this.flex=o:void 0!==a&&(this.flex=a)}setColDef(e,t,n){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent(\"colDefChanged\",n))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(e){this.parent=e}getParent(){return this.parent}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}initialise(){this.initMinAndMaxWidths(),this.resetActualWidth(\"gridInitializing\"),this.initDotNotation(),this.initTooltip()}initDotNotation(){const e=this.gridOptionsService.get(\"suppressFieldDotNotation\");this.fieldContainsDots=NT(this.colDef.field)&&this.colDef.field.indexOf(\".\")>=0&&!e,this.tooltipFieldContainsDots=NT(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(\".\")>=0&&!e}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)}initTooltip(){this.tooltipEnabled=NT(this.colDef.tooltipField)||NT(this.colDef.tooltipValueGetter)||NT(this.colDef.tooltipComponent)}resetActualWidth(e){const t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){if(PT(this.colDef)||PT(this.colDef.showRowGroup))return!1;const t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}addEventListener(e,t){var n,r;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new OD(this.frameworkOverrides));const i=null!=(r=null==(n=this.frameworkEventListenerService)?void 0:n.wrap(t))?r:t;this.eventService.addEventListener(e,i)}removeEventListener(e,t){var n,r;const i=null!=(r=null==(n=this.frameworkEventListenerService)?void 0:n.unwrap(t))?r:t;this.eventService.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return this.gridOptionsService.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){if(\"boolean\"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if(\"function\"==typeof this.colDef.suppressNavigable){const t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1}isCellEditable(e){return!(e.group&&!this.gridOptionsService.get(\"enableGroupEdit\"))&&this.isColumnFunc(e,this.colDef.editable)}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue(\"resizable\")}getColDefValue(e){var t;return null!=(t=this.colDef[e])?t:kD[e]}isColumnFunc(e,t){return\"boolean\"==typeof t?t:\"function\"==typeof t&&t(this.createColumnFunctionCallbackParams(e))}setMoving(e,t){this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(\"movingChanged\",t))}createColumnEvent(e,t){return this.gridOptionsService.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}setSort(e,t){this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(\"sortChanged\",t))),this.dispatchStateUpdatedEvent(\"sort\")}setMenuVisible(e,t){this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(\"menuVisibleChanged\",t)))}isMenuVisible(){return this.menuVisible}isSortable(){return!!this.getColDefValue(\"sortable\")}isSortAscending(){return\"asc\"===this.sort}isSortDescending(){return\"desc\"===this.sort}isSortNone(){return PT(this.sort)}isSorting(){return NT(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(e){this.sortIndex=e,this.dispatchStateUpdatedEvent(\"sortIndex\")}setAggFunc(e){this.aggFunc=e,this.dispatchStateUpdatedEvent(\"aggFunc\")}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(\"leftChanged\",t)))}isFilterActive(){return this.filterActive}setFilterActive(e,t,n){this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"filterActiveChanged\",t)));const r=this.createColumnEvent(\"filterChanged\",t);n&&qT(r,n),this.eventService.dispatchEvent(r)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(e){this.pinned=!0===e||\"left\"===e?\"left\":\"right\"===e?\"right\":null,this.dispatchStateUpdatedEvent(\"pinned\")}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(\"firstRightPinnedChanged\",t)))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(\"lastLeftPinnedChanged\",t)))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return\"left\"===this.pinned||\"right\"===this.pinned}isPinnedLeft(){return\"left\"===this.pinned}isPinnedRight(){return\"right\"===this.pinned}getPinned(){return this.pinned}setVisible(e,t){const n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(\"visibleChanged\",t))),this.dispatchStateUpdatedEvent(\"hide\")}isVisible(){return this.visible}isSpanHeaderHeight(){const e=this.getColDef();return!e.suppressSpanHeaderHeight&&!e.autoHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getDefinition(){return this.colDef}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gridOptionsService.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(PT(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(PT(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&\"flex\"!==t&&\"gridInitializing\"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent(\"width\")}fireColumnWidthChangedEvent(e){this.eventService.dispatchEvent(this.createColumnEvent(\"widthChanged\",e))}isGreaterThanMax(e){return null!=this.maxWidth&&e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent(\"flex\")}setMinimum(e){NT(this.minWidth)&&this.setActualWidth(this.minWidth,e)}setRowGroupActive(e,t){this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnRowGroupChanged\",t))),this.dispatchStateUpdatedEvent(\"rowGroup\")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(e,t){this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnPivotChanged\",t))),this.dispatchStateUpdatedEvent(\"pivot\")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(e,t){this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnValueChanged\",t)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}getMenuTabs(e){nD(\"As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.\");let t=this.getColDef().menuTabs;return null==t&&(t=e),t}dispatchStateUpdatedEvent(t){this.eventService.dispatchEvent({type:e.EVENT_STATE_UPDATED,key:t})}};PD.EVENT_MOVING_CHANGED=\"movingChanged\",PD.EVENT_LEFT_CHANGED=\"leftChanged\",PD.EVENT_WIDTH_CHANGED=\"widthChanged\",PD.EVENT_LAST_LEFT_PINNED_CHANGED=\"lastLeftPinnedChanged\",PD.EVENT_FIRST_RIGHT_PINNED_CHANGED=\"firstRightPinnedChanged\",PD.EVENT_VISIBLE_CHANGED=\"visibleChanged\",PD.EVENT_FILTER_CHANGED=\"filterChanged\",PD.EVENT_FILTER_ACTIVE_CHANGED=\"filterActiveChanged\",PD.EVENT_SORT_CHANGED=\"sortChanged\",PD.EVENT_COL_DEF_CHANGED=\"colDefChanged\",PD.EVENT_MENU_VISIBLE_CHANGED=\"menuVisibleChanged\",PD.EVENT_ROW_GROUP_CHANGED=\"columnRowGroupChanged\",PD.EVENT_PIVOT_CHANGED=\"columnPivotChanged\",PD.EVENT_VALUE_CHANGED=\"columnValueChanged\",PD.EVENT_STATE_UPDATED=\"columnStateUpdated\",MT([xD(\"gridOptionsService\")],PD.prototype,\"gridOptionsService\",2),MT([xD(\"columnUtils\")],PD.prototype,\"columnUtils\",2),MT([xD(\"columnHoverService\")],PD.prototype,\"columnHoverService\",2),MT([xD(\"frameworkOverrides\")],PD.prototype,\"frameworkOverrides\",2),MT([CD],PD.prototype,\"initialise\",1);var LD=PD,FD=class e{constructor(e,t,n,r){this.localEventService=new MD,this.expandable=!1,this.instanceId=ND(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return!!this.children&&this.children.some((e=>e.isVisible()))}isPadding(){return this.padding}setExpanded(t){this.expanded=void 0!==t&&t;const n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(t){this.children&&this.children.forEach((n=>{n instanceof LD?t.push(n):n instanceof e&&n.addLeafColumns(t)}))}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((t=>t.addEventListener(\"visibleChanged\",e))),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach((t=>t.removeEventListener(\"visibleChanged\",e))),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let t=!1,n=!1,r=!1;const i=this.findChildrenRemovingPadding();for(let e=0,o=i.length;e<o;e++){const o=i[e];if(!o.isVisible())continue;const a=o.getColumnGroupShow();\"open\"===a?(t=!0,r=!0):\"closed\"===a?(n=!0,r=!0):(t=!0,n=!0)}const o=t&&n&&r;if(this.expandable!==o){this.expandable=o;const t={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(t)}}findChildrenRemovingPadding(){const t=[],n=r=>{r.forEach((r=>{r instanceof e&&r.isPadding()?n(r.children):t.push(r)}))};return n(this.children),t}onColumnVisibilityChanged(){this.setExpandable()}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}};FD.EVENT_EXPANDED_CHANGED=\"expandedChanged\",FD.EVENT_EXPANDABLE_CHANGED=\"expandableChanged\",MT([SD],FD.prototype,\"destroy\",1);var _D=FD,zD={numericColumn:{headerClass:\"ag-right-aligned-header\",cellClass:\"ag-right-aligned-cell\"},rightAligned:{headerClass:\"ag-right-aligned-header\",cellClass:\"ag-right-aligned-cell\"}},GD={};RT(GD,{addSafePassiveEventListener:()=>fR,createEventPath:()=>pR,getCtrlForEventTarget:()=>uR,getEventPath:()=>gR,isElementInEventPath:()=>hR,isEventSupported:()=>dR,isStopPropagationForAgGrid:()=>cR,stopPropagationForAgGrid:()=>lR});var VD={};function BD(e){return null!=e&&e.length>0}function HD(e){if(e&&e.length)return e[e.length-1]}function jD(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(((e,r)=>n?n(e,t[r]):t[r]===e))}function UD(e,t){return jD(e,t)}function WD(e){return e.sort(((e,t)=>e-t))}function $D(e,t){if(e)for(let n=e.length-2;n>=0;n--){const r=e[n]===t,i=e[n+1]===t;r&&i&&e.splice(n+1,1)}}function YD(e,t){const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.pop())}function KD(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function qD(e,t){for(let n=0;n<t.length;n++)YD(e,t[n])}function QD(e,t){for(let n=0;n<t.length;n++)KD(e,t[n])}function XD(e,t,n){e.splice(n,0,t)}function ZD(e,t,n){if(null!=e&&null!=t)for(let r=t.length-1;r>=0;r--)XD(e,t[r],n)}function JD(e,t,n){QD(e,t),t.slice().reverse().forEach((t=>XD(e,t,n)))}function eR(e,t){return e.indexOf(t)>-1}function tR(e){return[].concat.apply([],e)}function nR(e,t){null!=t&&null!=e&&t.forEach((t=>e.push(t)))}function rR(e){return e.map(FT)}function iR(e,t){if(null!=e)for(let n=e.length-1;n>=0;n--)t(e[n],n)}RT(VD,{areEqual:()=>jD,existsAndNotEmpty:()=>BD,flatten:()=>tR,forEachReverse:()=>iR,includes:()=>eR,insertArrayIntoArray:()=>ZD,insertIntoArray:()=>XD,last:()=>HD,moveInArray:()=>JD,pushAll:()=>nR,removeAllFromArray:()=>QD,removeAllFromUnorderedArray:()=>qD,removeFromArray:()=>KD,removeFromUnorderedArray:()=>YD,removeRepeatsFromArray:()=>$D,shallowCompare:()=>UD,sortNumerically:()=>WD,toStrings:()=>rR});var oR=\"__ag_Grid_Stop_Propagation\",aR=[\"touchstart\",\"touchend\",\"touchmove\",\"touchcancel\",\"scroll\"],sR={};function lR(e){e[oR]=!0}function cR(e){return!0===e[oR]}var dR=(()=>{const e={select:\"input\",change:\"input\",submit:\"form\",reset:\"form\",error:\"img\",load:\"img\",abort:\"img\"};return t=>{if(\"boolean\"==typeof sR[t])return sR[t];const n=document.createElement(e[t]||\"div\");return sR[t=\"on\"+t]=t in n}})();function uR(e,t,n){let r=t;for(;r;){const t=e.getDomData(r,n);if(t)return t;r=r.parentElement}return null}function hR(e,t){return!(!t||!e)&&gR(t).indexOf(e)>=0}function pR(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function gR(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():pR(t)}function fR(e,t,n,r){const i=eR(aR,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,i)}var mR=class e{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=()=>!this.destroyed}getFrameworkOverrides(){return this.frameworkOverrides}getContext(){return this.context}destroy(){this.destroyFunctions.forEach((e=>e())),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})}addEventListener(e,t){this.localEventService||(this.localEventService=new MD),this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)}dispatchEvent(e){this.localEventService&&this.localEventService.dispatchEvent(e)}addManagedListener(e,t,n){if(this.destroyed)return;e instanceof HTMLElement?fR(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);const r=()=>(e.removeEventListener(t,n),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==r)),null);return this.destroyFunctions.push(r),r}setupGridOptionListener(e,t){this.gridOptionsService.addEventListener(e,t);const n=()=>(this.gridOptionsService.removeEventListener(e,t),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==n)),null);return this.destroyFunctions.push(n),n}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join(\"-\")+this.propertyListenerId++,r=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=e.changeSet.id}const r={type:\"gridPropertyChanged\",changeSet:e.changeSet,source:e.source};t(r)};e.forEach((e=>this.setupGridOptionListener(e,r)))}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.getContext()).createBean(e,n)}destroyBean(e,t){return(t||this.getContext()).destroyBean(e)}destroyBeans(e,t){return e&&e.forEach((e=>this.destroyBean(e,t))),[]}};mR.EVENT_DESTROYED=\"destroyed\",MT([xD(\"frameworkOverrides\")],mR.prototype,\"frameworkOverrides\",2),MT([xD(\"context\")],mR.prototype,\"context\",2),MT([xD(\"eventService\")],mR.prototype,\"eventService\",2),MT([xD(\"gridOptionsService\")],mR.prototype,\"gridOptionsService\",2),MT([xD(\"localeService\")],mR.prototype,\"localeService\",2),MT([xD(\"environment\")],mR.prototype,\"environment\",2),MT([SD],mR.prototype,\"destroy\",1);var vR=mR,yR=class extends vR{setBeans(e){this.logger=e.create(\"ColumnFactory\")}createColumnTree(e,t,n,r){const i=new jT,{existingCols:o,existingGroups:a,existingColKeys:s}=this.extractExistingTreeData(n);i.addExistingKeys(s);const l=this.recursivelyCreateColumns(e,0,t,o,i,a,r),c=this.findMaxDept(l,0);this.logger.log(\"Number of levels for grouped columns is \"+c);const d=this.balanceColumnTree(l,0,c,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,d,((e,t)=>{e instanceof _D&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:d,treeDept:c}}extractExistingTreeData(e){const t=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(e=>{if(e instanceof _D){const t=e;n.push(t)}else{const n=e;r.push(n.getId()),t.push(n)}})),{existingCols:t,existingGroups:n,existingColKeys:r}}createForAutoGroups(e,t){return e.map((e=>this.createAutoGroupTreeItem(t,e)))}createAutoGroupTreeItem(e,t){const n=this.findDepth(e);let r=t;for(let e=n-1;e>=0;e--){const n=new _D(null,`FAKE_PATH_${t.getId()}}_${e}`,!0,e);this.createBean(n),n.setChildren([r]),r.setOriginalParent(n),r=n}return 0===n&&t.setOriginalParent(null),r}findDepth(e){let t=0,n=e;for(;n&&n[0]&&n[0]instanceof _D;)t++,n=n[0].getChildren();return t}balanceColumnTree(e,t,n,r){const i=[];for(let o=0;o<e.length;o++){const a=e[o];if(a instanceof _D){const e=a,o=this.balanceColumnTree(e.getChildren(),t+1,n,r);e.setChildren(o),i.push(e)}else{let o,s;for(let e=n-1;e>=t;e--){const e=r.getUniqueKey(null,null),n=this.createMergedColGroupDef(null),i=new _D(n,e,!0,t);this.createBean(i),s&&s.setChildren([i]),s=i,o||(o=s)}if(o&&s){if(i.push(o),e.some((e=>e instanceof _D))){s.setChildren([a]);continue}s.setChildren(e);break}i.push(a)}}return i}findMaxDept(e,t){let n=t;for(let r=0;r<e.length;r++){const i=e[r];if(i instanceof _D){const e=i,r=this.findMaxDept(e.getChildren(),t+1);n<r&&(n=r)}}return n}recursivelyCreateColumns(e,t,n,r,i,o,a){if(!e)return[];const s=new Array(e.length);for(let l=0;l<s.length;l++){const c=e[l];this.isColumnGroup(c)?s[l]=this.createColumnGroup(n,c,t,r,i,o,a):s[l]=this.createColumn(n,c,r,i,a)}return s}createColumnGroup(e,t,n,r,i,o,a){const s=this.createMergedColGroupDef(t),l=i.getUniqueKey(s.groupId||null,null),c=new _D(s,l,!1,n);this.createBean(c);const d=this.findExistingGroup(t,o);d&&o.splice(d.idx,1);let u=null==d?void 0:d.group;u&&c.setExpanded(u.isExpanded());const h=this.recursivelyCreateColumns(s.children,n+1,e,r,i,o,a);return c.setChildren(h),c}createMergedColGroupDef(e){const t={};return Object.assign(t,this.gridOptionsService.get(\"defaultColGroupDef\")),Object.assign(t,e),t}createColumn(e,t,n,r,i){const o=this.findExistingColumn(t,n);o&&(null==n||n.splice(o.idx,1));let a=null==o?void 0:o.column;if(a){const e=this.addColumnDefaultAndTypes(t,a.getColId());a.setColDef(e,t,i),this.applyColumnState(a,e,i)}else{const n=r.getUniqueKey(t.colId,t.field),i=this.addColumnDefaultAndTypes(t,n);a=new LD(i,t,n,e),this.context.createBean(a)}return this.dataTypeService.addColumnListeners(a),a}applyColumnState(e,t,n){const r=_T(t.flex);if(void 0!==r&&e.setFlex(r),e.getFlex()<=0){const r=_T(t.width);if(null!=r)e.setActualWidth(r,n);else{const t=e.getActualWidth();e.setActualWidth(t,n)}}void 0!==t.sort&&(\"asc\"==t.sort||\"desc\"==t.sort?e.setSort(t.sort,n):e.setSort(void 0,n));const i=_T(t.sortIndex);void 0!==i&&e.setSortIndex(i);const o=zT(t.hide);void 0!==o&&e.setVisible(!o,n),void 0!==t.pinned&&e.setPinned(t.pinned)}findExistingColumn(e,t){if(t)for(let n=0;n<t.length;n++){const r=t[n].getUserProvidedColDef();if(r)if(null==e.colId){if(null!=e.field){if(r.field===e.field)return{idx:n,column:t[n]}}else if(r===e)return{idx:n,column:t[n]}}else if(t[n].getId()===e.colId)return{idx:n,column:t[n]}}}findExistingGroup(e,t){if(null!=e.groupId)for(let n=0;n<t.length;n++){const r=t[n];if(r.getColGroupDef()&&r.getId()===e.groupId)return{idx:n,group:r}}}addColumnDefaultAndTypes(e,t){const n={};qT(n,this.gridOptionsService.get(\"defaultColDef\"),!1,!0);const r=this.dataTypeService.updateColDefAndGetColumnType(n,e,t);r&&this.assignColumnTypes(r,n),qT(n,e,!1,!0);const i=this.gridOptionsService.get(\"autoGroupColumnDef\"),o=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&i&&o&&qT(n,{sort:i.sort,initialSort:i.initialSort},!1,!0),this.dataTypeService.validateColDef(n),n}assignColumnTypes(e,t){if(!e.length)return;const n=Object.assign({},zD);WT(this.gridOptionsService.get(\"columnTypes\")||{},((e,t)=>{e in n?console.warn(`AG Grid: the column type '${e}' is a default column type and cannot be overridden.`):(t.type&&nD(\"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.\"),n[e]=t)})),e.forEach((e=>{const r=n[e.trim()];r?qT(t,r,!1,!0):console.warn(\"AG Grid: colDef.type '\"+e+\"' does not correspond to defined gridOptions.columnTypes\")}))}isColumnGroup(e){return void 0!==e.children}};MT([xD(\"columnUtils\")],yR.prototype,\"columnUtils\",2),MT([xD(\"dataTypeService\")],yR.prototype,\"dataTypeService\",2),MT([OT(0,DD(\"loggerFactory\"))],yR.prototype,\"setBeans\",1),yR=MT([ED(\"columnFactory\")],yR);var bR=class e{constructor(e,t,n,r){this.displayedChildren=[],this.localEventService=new MD,this.groupId=t,this.partId=n,this.providedColumnGroup=e,this.pinned=r}static createUniqueId(e,t){return e+\"_\"+t}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}setParent(e){this.parent=e}getUniqueId(){return e.createUniqueId(this.groupId,this.partId)}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((e=>e.isMoving()))}checkLeft(){if(this.displayedChildren.forEach((t=>{t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.get(\"enableRtl\")){const e=HD(this.displayedChildren).getLeft();this.setLeft(e)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(t){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))}getPinned(){return this.pinned}createAgEvent(e){return{type:e}}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}getGroupId(){return this.groupId}getPartId(){return this.partId}isChildInThisGroupDeepSearch(t){let n=!1;return this.children.forEach((r=>{t===r&&(n=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n}getActualWidth(){let e=0;return this.displayedChildren&&this.displayedChildren.forEach((t=>{e+=t.getActualWidth()})),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach((t=>{t.isResizable()&&(e=!0)})),e}getMinWidth(){let e=0;return this.displayedChildren.forEach((t=>{e+=t.getMinWidth()||0})),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}addDisplayedLeafColumns(t){this.displayedChildren.forEach((n=>{n instanceof LD?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))}addLeafColumns(t){this.children.forEach((n=>{n instanceof LD?t.push(n):n instanceof e&&n.addLeafColumns(t)}))}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let t=this;for(;null!=t&&t.isPadding();)t=t.getParent();if(!t||!t.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((n=>{if(!(n instanceof e)||n.displayedChildren&&n.displayedChildren.length)switch(n.getColumnGroupShow()){case\"open\":t.providedColumnGroup.isExpanded()&&this.displayedChildren.push(n);break;case\"closed\":t.providedColumnGroup.isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))}};bR.EVENT_LEFT_CHANGED=\"leftChanged\",bR.EVENT_DISPLAYED_CHILDREN_CHANGED=\"displayedChildrenChanged\",MT([xD(\"gridOptionsService\")],bR.prototype,\"gridOptionsService\",2);var wR=bR,CR=class{};CR.EVENT_COLUMN_EVERYTHING_CHANGED=\"columnEverythingChanged\",CR.EVENT_NEW_COLUMNS_LOADED=\"newColumnsLoaded\",CR.EVENT_COLUMN_PIVOT_MODE_CHANGED=\"columnPivotModeChanged\",CR.EVENT_PIVOT_MAX_COLUMNS_EXCEEDED=\"pivotMaxColumnsExceeded\",CR.EVENT_COLUMN_ROW_GROUP_CHANGED=\"columnRowGroupChanged\",CR.EVENT_EXPAND_COLLAPSE_ALL=\"expandOrCollapseAll\",CR.EVENT_COLUMN_PIVOT_CHANGED=\"columnPivotChanged\",CR.EVENT_GRID_COLUMNS_CHANGED=\"gridColumnsChanged\",CR.EVENT_COLUMN_VALUE_CHANGED=\"columnValueChanged\",CR.EVENT_COLUMN_MOVED=\"columnMoved\",CR.EVENT_COLUMN_VISIBLE=\"columnVisible\",CR.EVENT_COLUMN_PINNED=\"columnPinned\",CR.EVENT_COLUMN_GROUP_OPENED=\"columnGroupOpened\",CR.EVENT_COLUMN_RESIZED=\"columnResized\",CR.EVENT_DISPLAYED_COLUMNS_CHANGED=\"displayedColumnsChanged\",CR.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED=\"suppressMovableColumns\",CR.EVENT_SUPPRESS_MENU_HIDE_CHANGED=\"suppressMenuHide\",CR.EVENT_SUPPRESS_FIELD_DOT_NOTATION=\"suppressFieldDotNotation\",CR.EVENT_VIRTUAL_COLUMNS_CHANGED=\"virtualColumnsChanged\",CR.EVENT_COLUMN_HEADER_MOUSE_OVER=\"columnHeaderMouseOver\",CR.EVENT_COLUMN_HEADER_MOUSE_LEAVE=\"columnHeaderMouseLeave\",CR.EVENT_COLUMN_HEADER_CLICKED=\"columnHeaderClicked\",CR.EVENT_COLUMN_HEADER_CONTEXT_MENU=\"columnHeaderContextMenu\",CR.EVENT_ASYNC_TRANSACTIONS_FLUSHED=\"asyncTransactionsFlushed\",CR.EVENT_ROW_GROUP_OPENED=\"rowGroupOpened\",CR.EVENT_ROW_DATA_UPDATED=\"rowDataUpdated\",CR.EVENT_PINNED_ROW_DATA_CHANGED=\"pinnedRowDataChanged\",CR.EVENT_RANGE_SELECTION_CHANGED=\"rangeSelectionChanged\",CR.EVENT_CHART_CREATED=\"chartCreated\",CR.EVENT_CHART_RANGE_SELECTION_CHANGED=\"chartRangeSelectionChanged\",CR.EVENT_CHART_OPTIONS_CHANGED=\"chartOptionsChanged\",CR.EVENT_CHART_DESTROYED=\"chartDestroyed\",CR.EVENT_TOOL_PANEL_VISIBLE_CHANGED=\"toolPanelVisibleChanged\",CR.EVENT_TOOL_PANEL_SIZE_CHANGED=\"toolPanelSizeChanged\",CR.EVENT_COLUMN_PANEL_ITEM_DRAG_START=\"columnPanelItemDragStart\",CR.EVENT_COLUMN_PANEL_ITEM_DRAG_END=\"columnPanelItemDragEnd\",CR.EVENT_MODEL_UPDATED=\"modelUpdated\",CR.EVENT_CUT_START=\"cutStart\",CR.EVENT_CUT_END=\"cutEnd\",CR.EVENT_PASTE_START=\"pasteStart\",CR.EVENT_PASTE_END=\"pasteEnd\",CR.EVENT_FILL_START=\"fillStart\",CR.EVENT_FILL_END=\"fillEnd\",CR.EVENT_RANGE_DELETE_START=\"rangeDeleteStart\",CR.EVENT_RANGE_DELETE_END=\"rangeDeleteEnd\",CR.EVENT_UNDO_STARTED=\"undoStarted\",CR.EVENT_UNDO_ENDED=\"undoEnded\",CR.EVENT_REDO_STARTED=\"redoStarted\",CR.EVENT_REDO_ENDED=\"redoEnded\",CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_START=\"keyShortcutChangedCellStart\",CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_END=\"keyShortcutChangedCellEnd\",CR.EVENT_CELL_CLICKED=\"cellClicked\",CR.EVENT_CELL_DOUBLE_CLICKED=\"cellDoubleClicked\",CR.EVENT_CELL_MOUSE_DOWN=\"cellMouseDown\",CR.EVENT_CELL_CONTEXT_MENU=\"cellContextMenu\",CR.EVENT_CELL_VALUE_CHANGED=\"cellValueChanged\",CR.EVENT_CELL_EDIT_REQUEST=\"cellEditRequest\",CR.EVENT_ROW_VALUE_CHANGED=\"rowValueChanged\",CR.EVENT_CELL_FOCUSED=\"cellFocused\",CR.EVENT_CELL_FOCUS_CLEARED=\"cellFocusCleared\",CR.EVENT_FULL_WIDTH_ROW_FOCUSED=\"fullWidthRowFocused\",CR.EVENT_ROW_SELECTED=\"rowSelected\",CR.EVENT_SELECTION_CHANGED=\"selectionChanged\",CR.EVENT_TOOLTIP_SHOW=\"tooltipShow\",CR.EVENT_TOOLTIP_HIDE=\"tooltipHide\",CR.EVENT_CELL_KEY_DOWN=\"cellKeyDown\",CR.EVENT_CELL_MOUSE_OVER=\"cellMouseOver\",CR.EVENT_CELL_MOUSE_OUT=\"cellMouseOut\",CR.EVENT_FILTER_CHANGED=\"filterChanged\",CR.EVENT_FILTER_MODIFIED=\"filterModified\",CR.EVENT_FILTER_OPENED=\"filterOpened\",CR.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED=\"advancedFilterBuilderVisibleChanged\",CR.EVENT_SORT_CHANGED=\"sortChanged\",CR.EVENT_VIRTUAL_ROW_REMOVED=\"virtualRowRemoved\",CR.EVENT_ROW_CLICKED=\"rowClicked\",CR.EVENT_ROW_DOUBLE_CLICKED=\"rowDoubleClicked\",CR.EVENT_GRID_READY=\"gridReady\",CR.EVENT_GRID_PRE_DESTROYED=\"gridPreDestroyed\",CR.EVENT_GRID_SIZE_CHANGED=\"gridSizeChanged\",CR.EVENT_VIEWPORT_CHANGED=\"viewportChanged\",CR.EVENT_SCROLLBAR_WIDTH_CHANGED=\"scrollbarWidthChanged\",CR.EVENT_FIRST_DATA_RENDERED=\"firstDataRendered\",CR.EVENT_DRAG_STARTED=\"dragStarted\",CR.EVENT_DRAG_STOPPED=\"dragStopped\",CR.EVENT_CHECKBOX_CHANGED=\"checkboxChanged\",CR.EVENT_ROW_EDITING_STARTED=\"rowEditingStarted\",CR.EVENT_ROW_EDITING_STOPPED=\"rowEditingStopped\",CR.EVENT_CELL_EDITING_STARTED=\"cellEditingStarted\",CR.EVENT_CELL_EDITING_STOPPED=\"cellEditingStopped\",CR.EVENT_BODY_SCROLL=\"bodyScroll\",CR.EVENT_BODY_SCROLL_END=\"bodyScrollEnd\",CR.EVENT_HEIGHT_SCALE_CHANGED=\"heightScaleChanged\",CR.EVENT_PAGINATION_CHANGED=\"paginationChanged\",CR.EVENT_COMPONENT_STATE_CHANGED=\"componentStateChanged\",CR.EVENT_STORE_REFRESHED=\"storeRefreshed\",CR.EVENT_STATE_UPDATED=\"stateUpdated\",CR.EVENT_COLUMN_MENU_VISIBLE_CHANGED=\"columnMenuVisibleChanged\",CR.EVENT_BODY_HEIGHT_CHANGED=\"bodyHeightChanged\",CR.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED=\"columnContainerWidthChanged\",CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED=\"displayedColumnsWidthChanged\",CR.EVENT_SCROLL_VISIBILITY_CHANGED=\"scrollVisibilityChanged\",CR.EVENT_COLUMN_HOVER_CHANGED=\"columnHoverChanged\",CR.EVENT_FLASH_CELLS=\"flashCells\",CR.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED=\"paginationPixelOffsetChanged\",CR.EVENT_DISPLAYED_ROWS_CHANGED=\"displayedRowsChanged\",CR.EVENT_LEFT_PINNED_WIDTH_CHANGED=\"leftPinnedWidthChanged\",CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED=\"rightPinnedWidthChanged\",CR.EVENT_ROW_CONTAINER_HEIGHT_CHANGED=\"rowContainerHeightChanged\",CR.EVENT_HEADER_HEIGHT_CHANGED=\"headerHeightChanged\",CR.EVENT_COLUMN_HEADER_HEIGHT_CHANGED=\"columnHeaderHeightChanged\",CR.EVENT_ROW_DRAG_ENTER=\"rowDragEnter\",CR.EVENT_ROW_DRAG_MOVE=\"rowDragMove\",CR.EVENT_ROW_DRAG_LEAVE=\"rowDragLeave\",CR.EVENT_ROW_DRAG_END=\"rowDragEnd\",CR.EVENT_GRID_STYLES_CHANGED=\"gridStylesChanged\",CR.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST=\"columnRowGroupChangeRequest\",CR.EVENT_COLUMN_PIVOT_CHANGE_REQUEST=\"columnPivotChangeRequest\",CR.EVENT_COLUMN_VALUE_CHANGE_REQUEST=\"columnValueChangeRequest\",CR.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST=\"columnAggFuncChangeRequest\",CR.EVENT_STORE_UPDATED=\"storeUpdated\",CR.EVENT_FILTER_DESTROYED=\"filterDestroyed\",CR.EVENT_ROW_DATA_UPDATE_STARTED=\"rowDataUpdateStarted\",CR.EVENT_ROW_COUNT_READY=\"rowCountReady\",CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED=\"advancedFilterEnabledChanged\",CR.EVENT_DATA_TYPES_INFERRED=\"dataTypesInferred\",CR.EVENT_FIELD_VALUE_CHANGED=\"fieldValueChanged\",CR.EVENT_FIELD_PICKER_VALUE_SELECTED=\"fieldPickerValueSelected\",CR.EVENT_SIDE_BAR_UPDATED=\"sideBarUpdated\";var SR=new Set([CR.EVENT_GRID_PRE_DESTROYED]),ER=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return n=\"number\"!=typeof t?0:t+1,this.existingIds[e]=n,n}},xR=\"ag-Grid-AutoColumn\",AR=class extends vR{createAutoGroupColumns(e){const t=[],n=this.gridOptionsService.get(\"treeData\");let r=this.gridOptionsService.isGroupMultiAutoColumn();return n&&r&&(console.warn('AG Grid: you cannot mix groupDisplayType = \"multipleColumns\" with treeData, only one column can be used to display groups when doing tree data'),r=!1),r?e.forEach(((e,n)=>{t.push(this.createOneAutoGroupColumn(e,n))})):t.push(this.createOneAutoGroupColumn()),t}updateAutoGroupColumns(e,t){e.forEach(((e,n)=>this.updateOneAutoGroupColumn(e,n,t)))}createOneAutoGroupColumn(e,t){let n;n=e?`${xR}-${e.getId()}`:xR;const r=this.createAutoGroupColDef(n,e,t);r.colId=n;const i=new LD(r,null,n,!0);return this.context.createBean(i),i}updateOneAutoGroupColumn(e,t,n){const r=e.getColDef(),i=\"string\"==typeof r.showRowGroup?r.showRowGroup:void 0,o=null!=i?this.columnModel.getPrimaryColumn(i):void 0,a=this.createAutoGroupColDef(e.getId(),null!=o?o:void 0,t);e.setColDef(a,null,n),this.columnFactory.applyColumnState(e,a,n)}createAutoGroupColDef(e,t,n){let r=this.createBaseColDef(t);qT(r,this.gridOptionsService.get(\"autoGroupColumnDef\")),r=this.columnFactory.addColumnDefaultAndTypes(r,e),this.gridOptionsService.get(\"treeData\")||PT(r.field)&&PT(r.valueGetter)&&PT(r.filterValueGetter)&&\"agGroupColumnFilter\"!==r.filter&&(r.filter=!1),n&&n>0&&(r.headerCheckboxSelection=!1);const i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=r.valueGetter||null!=r.field;return i&&!o&&(r.sortIndex=void 0,r.initialSort=void 0),r}createBaseColDef(e){const t=this.gridOptionsService.get(\"autoGroupColumnDef\"),n={headerName:this.localeService.getLocaleTextFunc()(\"group\",\"Group\")};if(t&&(t.cellRenderer||t.cellRendererSelector)||(n.cellRenderer=\"agGroupCellRenderer\"),e){const t=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,\"header\"),headerValueGetter:t.headerValueGetter}),t.cellRenderer&&Object.assign(n,{cellRendererParams:{innerRenderer:t.cellRenderer,innerRendererParams:t.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n}};MT([xD(\"columnModel\")],AR.prototype,\"columnModel\",2),MT([xD(\"columnFactory\")],AR.prototype,\"columnFactory\",2),AR=MT([ED(\"autoGroupColService\")],AR);var TR={};RT(TR,{camelCaseToHumanText:()=>IR,camelCaseToHyphenated:()=>NR,capitalise:()=>OR,escapeString:()=>kR,utf8_encode:()=>MR});var DR=/[&<>\"']/g,RR={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"};function MR(e){const t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return`_x${e.toString(16).toUpperCase().padStart(4,\"0\")}_`;if(!(4294967168&e))return t(e);let r=\"\";return 4294965248&e?4294901760&e?4292870144&e||(r=t(e>>18&7|240),r+=n(e,12),r+=n(e,6)):(function(e){if(e>=55296&&e<=57343)throw Error(\"Lone surrogate U+\"+e.toString(16).toUpperCase()+\" is not a scalar value\")}(e),r=t(e>>12&15|224),r+=n(e,6)):r=t(e>>6&31|192),r+=t(63&e|128),r}const i=function(e){const t=[];if(!e)return[];const n=e.length;let r,i,o=0;for(;o<n;)r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<n?(i=e.charCodeAt(o++),56320==(64512&i)?t.push(((1023&r)<<10)+(1023&i)+65536):(t.push(r),o--)):t.push(r);return t}(e),o=i.length;let a,s=-1,l=\"\";for(;++s<o;)a=i[s],l+=r(a);return l}function OR(e){return e[0].toUpperCase()+e.substring(1).toLowerCase()}function kR(e,t){if(null==e)return null;const n=e.toString().toString();return t?n:n.replace(DR,(e=>RR[e]))}function IR(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,\"$1 $2\").replace(/([A-Z]+)([A-Z])([a-z])/g,\"$1 $2$3\").replace(/\\./g,\" \").split(\" \").map((e=>e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):\"\"))).join(\" \"):null}function NR(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLocaleLowerCase()}`))}var PR={};function LR(e){const t=new Map;return e.forEach((e=>t.set(e[0],e[1]))),t}function FR(e,t){const n=new Map;return e.forEach((e=>n.set(t(e),e))),n}function _R(e){const t=[];return e.forEach(((e,n)=>t.push(n))),t}RT(PR,{convertToMap:()=>LR,keys:()=>_R,mapById:()=>FR});var zR=class extends vR{constructor(){super(...arguments),this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.gridHeaderRowCount=0,this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.displayedColumnsAndGroupsMap={},this.viewportColumns=[],this.viewportColumnsHash=\"\",this.headerViewportColumns=[],this.viewportColumnsCenter=[],this.headerViewportColumnsCenter=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.autoHeightActiveAtLeastOnce=!1,this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.changeEventsDispatching=!1,this.autoGroupsNeedBuilding=!1,this.forceRecreateAutoGroups=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}init(){this.suppressColumnVirtualisation=this.gridOptionsService.get(\"suppressColumnVirtualisation\");const e=this.gridOptionsService.get(\"pivotMode\");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners([\"groupDisplayType\",\"treeData\",\"treeDataDisplayType\",\"groupHideOpenParents\"],(e=>this.buildAutoGroupColumns(GR(e.source)))),this.addManagedPropertyListener(\"autoGroupColumnDef\",(e=>this.onAutoGroupColumnDefChanged(GR(e.source)))),this.addManagedPropertyListeners([\"defaultColDef\",\"columnTypes\",\"suppressFieldDotNotation\"],(e=>this.onSharedColDefChanged(GR(e.source)))),this.addManagedPropertyListener(\"pivotMode\",(e=>this.setPivotMode(this.gridOptionsService.get(\"pivotMode\"),GR(e.source)))),this.addManagedListener(this.eventService,CR.EVENT_FIRST_DATA_RENDERED,(()=>this.onFirstDataRendered()))}buildAutoGroupColumns(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))}onAutoGroupColumnDefChanged(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)}onSharedColDefChanged(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))}setColumnDefs(e,t){const n=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)}recreateColumnDefs(e){this.onSharedColDefChanged(e)}destroyOldColumns(e,t){const n={};if(!e)return;this.columnUtils.depthFirstOriginalTreeSearch(null,e,(e=>{n[e.getInstanceId()]=e})),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(e=>{n[e.getInstanceId()]=null}));const r=Object.values(n).filter((e=>null!=e));this.destroyBeans(r)}destroyColumns(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)}createColumnsFromColumnDefs(e,t){const n=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;const r=this.primaryColumns,i=this.primaryColumnTree,o=this.columnFactory.createColumnTree(this.columnDefs,!0,i,t);this.destroyOldColumns(this.primaryColumnTree,o.columnTree),this.primaryColumnTree=o.columnTree,this.primaryHeaderRowCount=o.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((e=>this.primaryColumnsMap[e.getId()]=e)),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;const a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get(\"maintainColumnOrder\")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),this.changeEventsDispatching=!0,n&&n(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(t)}shouldRowModelIgnoreRefresh(){return this.changeEventsDispatching}dispatchNewColumnsLoaded(e){const t={type:CR.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(t),\"gridInitializing\"===e&&this.onColumnsReady()}dispatchEverythingChanged(e){const t={type:CR.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)}orderGridColumnsLikePrimary(){const e=this.primaryColumns;if(!e)return;const t=e.filter((e=>this.gridColumns.indexOf(e)>=0)),n=this.gridColumns.filter((e=>t.indexOf(e)<0));this.gridColumns=[...n,...t],this.gridColumns=this.placeLockedColumns(this.gridColumns)}getAllDisplayedAutoHeightCols(){return this.displayedAutoHeightCols}setViewport(){this.gridOptionsService.get(\"enableRtl\")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)}getDisplayedColumnsStartingAt(e){let t=e;const n=[];for(;null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n}checkViewportColumns(e=!1){if(null==this.displayedColumnsCenter)return;if(!this.extractViewport())return;const t={type:CR.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)}setViewportPosition(e,t,n=!1){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(n))}isPivotMode(){return this.pivotMode}isPivotSettingAllowed(e){return!e||!this.gridOptionsService.get(\"treeData\")||(console.warn(\"AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'\"),!1)}setPivotMode(e,t){if(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))return;if(this.pivotMode=e,!this.gridColumns)return;this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);const n={type:CR.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(n)}getSecondaryPivotColumn(e,t){if(PT(this.secondaryColumns))return null;const n=this.getPrimaryColumn(t);let r=null;return this.secondaryColumns.forEach((t=>{const i=t.getColDef().pivotKeys,o=t.getColDef().pivotValueColumn;jD(i,e)&&o===n&&(r=t)})),r}setBeans(e){this.logger=e.create(\"columnModel\")}setFirstRightAndLastLeftPinned(e){let t,n;this.gridOptionsService.get(\"enableRtl\")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?HD(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?HD(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((r=>{r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)}))}autoSizeColumns(e){if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.autoSizeColumns(e)));const{columns:t,skipHeader:n,skipHeaderGroups:r,stopAtGroup:i,source:o=\"api\"}=e;this.animationFrameService.flushAllFrames();const a=[];let s=-1;const l=null!=n?n:this.gridOptionsService.get(\"skipHeaderOnAutoSize\"),c=null!=r?r:l;for(;0!==s;)s=0,this.actionOnGridColumns(t,(e=>{if(a.indexOf(e)>=0)return!1;const t=this.autoWidthCalculator.getPreferredWidthForColumn(e,l);if(t>0){const n=this.normaliseColumnWidth(e,t);e.setActualWidth(n,o),a.push(e),s++}return!0}),o);c||this.autoSizeColumnGroupsByColumns(t,o,i),this.dispatchColumnResizedEvent(a,!0,\"autosizeColumns\")}dispatchColumnResizedEvent(e,t,n,r=null){if(e&&e.length){const i={type:CR.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,source:n};this.eventService.dispatchEvent(i)}}dispatchColumnChangedEvent(e,t,n){const r={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:n};this.eventService.dispatchEvent(r)}dispatchColumnMovedEvent(e){const{movedColumns:t,source:n,toIndex:r,finished:i}=e,o={type:CR.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:r,finished:i,source:n};this.eventService.dispatchEvent(o)}dispatchColumnPinnedEvent(e,t){if(!e.length)return;const n=1===e.length?e[0]:null,r=this.getCommonValue(e,(e=>e.getPinned())),i={type:CR.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:n,source:t};this.eventService.dispatchEvent(i)}dispatchColumnVisibleEvent(e,t){if(!e.length)return;const n=1===e.length?e[0]:null,r=this.getCommonValue(e,(e=>e.isVisible())),i={type:CR.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:n,source:t};this.eventService.dispatchEvent(i)}autoSizeColumn(e,t,n){e&&this.autoSizeColumns({columns:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const r=new Set;let i;this.getGridColumns(e).forEach((e=>{let t=e.getParent();for(;t&&t!=n;)t.isPadding()||r.add(t),t=t.getParent()}));for(const e of r){for(const t of this.ctrlsService.getHeaderRowContainerCtrls())if(i=t.getHeaderCtrlForColumn(e),i)break;i&&i.resizeLeafColumnsToFit(t)}return[]}autoSizeAllColumns(e,t){if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.autoSizeAllColumns(e,t)));const n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:e})}getColumnsFromTree(e){const t=[],n=e=>{for(let r=0;r<e.length;r++){const i=e[r];i instanceof LD?t.push(i):i instanceof _D&&n(i.getChildren())}};return n(e),t}getAllDisplayedTrees(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null}getPrimaryColumnTree(){return this.primaryColumnTree}getHeaderRowCount(){return this.gridHeaderRowCount}getDisplayedTreeLeft(){return this.displayedTreeLeft}getDisplayedTreeRight(){return this.displayedTreeRight}getDisplayedTreeCentre(){return this.displayedTreeCentre}isColumnDisplayed(e){return this.getAllDisplayedColumns().indexOf(e)>=0}getAllDisplayedColumns(){return this.displayedColumns}getViewportColumns(){return this.viewportColumns}getDisplayedLeftColumnsForRow(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft}getDisplayedRightColumnsForRow(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight}isColSpanActive(){return this.colSpanActive}getDisplayedColumnsForRow(e,t,n,r){const i=[];let o=null;for(let a=0;a<t.length;a++){const s=t[a],l=t.length-a,c=Math.min(s.getColSpan(e),l),d=[s];if(c>1){const e=c-1;for(let n=1;n<=e;n++)d.push(t[a+n]);a+=e}let u;n?(u=!1,d.forEach((e=>{n(e)&&(u=!0)}))):u=!0,u&&(0===i.length&&o&&r&&r(s)&&i.push(o),i.push(s)),o=s}return i}getViewportCenterColumnsForRow(e){if(!this.colSpanActive)return this.viewportColumnsCenter;const t=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,t,(e=>{const t=e.getLeft();return NT(t)&&t>this.viewportLeft}))}isColumnAtEdge(e,t){const n=this.getAllDisplayedColumns();if(!n.length)return!1;const r=\"first\"===t;let i;if(e instanceof wR){const t=e.getDisplayedLeafColumns();if(!t.length)return!1;i=r?t[0]:HD(t)}else i=e;return(r?n[0]:HD(n))===i}getAriaColumnIndex(e){let t;return t=e instanceof wR?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}isColumnInHeaderViewport(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200;return!(t<r&&n<r||t>i&&n>i)}getDisplayedColumnsLeftWidth(){return this.getWidthOfColsInList(this.displayedColumnsLeft)}getDisplayedColumnsRightWidth(){return this.getWidthOfColsInList(this.displayedColumnsRight)}updatePrimaryColumnList(e,t,n,r,i,o){if(!e||LT(e))return;let a=!1;if(e.forEach((e=>{if(!e)return;const i=this.getPrimaryColumn(e);if(i){if(n){if(t.indexOf(i)>=0)return;t.push(i)}else{if(t.indexOf(i)<0)return;KD(t,i)}r(i),a=!0}})),!a)return;this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o);const s={type:i,columns:t,column:1===t.length?t[0]:null,source:o};this.eventService.dispatchEvent(s)}setRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),t)}setRowGroupActive(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e&&!this.gridOptionsService.get(\"suppressRowGroupHidesColumns\")&&this.setColumnsVisible([t],!1,n),e||this.gridOptionsService.get(\"suppressMakeColumnVisibleAfterUnGroup\")||this.setColumnsVisible([t],!0,n))}addRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),CR.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}removeRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),CR.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}addPivotColumns(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!0,(e=>e.setPivotActive(!0,t)),CR.EVENT_COLUMN_PIVOT_CHANGED,t)}setPivotColumns(e,t){this.setPrimaryColumnList(e,this.pivotColumns,CR.EVENT_COLUMN_PIVOT_CHANGED,!0,((e,n)=>{n.setPivotActive(e,t)}),t)}removePivotColumns(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!1,(e=>e.setPivotActive(!1,t)),CR.EVENT_COLUMN_PIVOT_CHANGED,t)}setPrimaryColumnList(e,t,n,r,i,o){if(!this.gridColumns)return;const a=new Map;t.forEach(((e,t)=>a.set(e,t))),t.length=0,NT(e)&&e.forEach((e=>{const n=this.getPrimaryColumn(e);n&&t.push(n)})),t.forEach(((e,t)=>{const n=a.get(e);void 0!==n?r&&n!==t||a.delete(e):a.set(e,0)})),(this.primaryColumns||[]).forEach((e=>{const n=t.indexOf(e)>=0;i(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.dispatchColumnChangedEvent(n,[...a.keys()],o)}setValueColumns(e,t){this.setPrimaryColumnList(e,this.valueColumns,CR.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),t)}setValueActive(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){const e=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(e)}}addValueColumns(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),CR.EVENT_COLUMN_VALUE_CHANGED,t)}removeValueColumns(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),CR.EVENT_COLUMN_VALUE_CHANGED,t)}normaliseColumnWidth(e,t){const n=e.getMinWidth();NT(n)&&t<n&&(t=n);const r=e.getMaxWidth();return NT(r)&&e.isGreaterThanMax(t)&&(t=r),t}getPrimaryOrGridColumn(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)}setColumnWidths(e,t,n,r){const i=[];e.forEach((e=>{const n=this.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),\"shift\"===this.gridOptionsService.get(\"colResizeDefault\")&&(t=!t),t)){const t=this.getDisplayedColAfter(n);if(!t)return;const r=n.getActualWidth()-e.newWidth,o=t.getActualWidth()+r;i.push({width:o,ratios:[1],columns:[t]})}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})}checkMinAndMaxWidthsForSet(e){const{columns:t,width:n}=e;let r=0,i=0,o=!0;return t.forEach((e=>{const t=e.getMinWidth();r+=t||0;const n=e.getMaxWidth();NT(n)&&n>0?i+=n:o=!1})),n>=r&&(!o||n<=i)}resizeColumnSets(e){const{resizeSets:t,finished:n,source:r}=e;if(t&&!t.every((e=>this.checkMinAndMaxWidthsForSet(e)))){if(n){const e=t&&t.length>0?t[0].columns:null;this.dispatchColumnResizedEvent(e,n,r)}return}const i=[],o=[];t.forEach((e=>{const{width:t,columns:n,ratios:a}=e,s={},l={};n.forEach((e=>o.push(e)));let c=!0,d=0;for(;c;){if(d++,d>1e3){console.error(\"AG Grid: infinite loop in resizeColumnSets\");break}c=!1;const e=[];let r=0,i=t;n.forEach(((t,n)=>{if(l[t.getId()])i-=s[t.getId()];else{e.push(t);const i=a[n];r+=i}}));const o=1/r;e.forEach(((n,r)=>{let d;r===e.length-1?d=i:(d=Math.round(a[r]*t*o),i-=d);const u=n.getMinWidth(),h=n.getMaxWidth();NT(u)&&d<u?(d=u,l[n.getId()]=!0,c=!0):NT(h)&&h>0&&d>h&&(d=h,l[n.getId()]=!0,c=!0),s[n.getId()]=d}))}n.forEach((e=>{const t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,r),i.push(e))}))}));const a=i.length>0;let s=[];a&&(s=this.refreshFlexedColumns({resizingCols:o,skipSetLeft:!0}),this.setLeftValues(r),this.updateBodyWidths(),this.checkViewportColumns());const l=o.concat(s);(a||n)&&this.dispatchColumnResizedEvent(l,n,r,s)}setColumnAggFunc(e,t,n){if(!e)return;const r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.dispatchColumnChangedEvent(CR.EVENT_COLUMN_VALUE_CHANGED,[r],n))}moveRowGroupColumn(e,t,n){if(this.isRowGroupEmpty())return;const r=this.rowGroupColumns[e],i=this.rowGroupColumns.slice(e,t);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);const o={type:CR.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:i,column:1===i.length?i[0]:null,source:n};this.eventService.dispatchEvent(o)}moveColumns(e,t,n,r=!0){if(!this.gridColumns)return;if(this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn(\"AG Grid: tried to insert columns in invalid location, toIndex = \"+t),void console.warn(\"AG Grid: remember that you should not count the moving columns when calculating the new index\");const i=this.getGridColumns(e);!this.doesMovePassRules(i,t)||(JD(this.gridColumns,i,t),this.updateDisplayedColumns(n),this.dispatchColumnMovedEvent({movedColumns:i,source:n,toIndex:t,finished:r}),this.columnAnimationService.finish())}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)}getProposedColumnOrder(e,t){const n=this.gridColumns.slice();return JD(n,e,t),n}sortColumnsLikeGridColumns(e){if(!e||e.length<=1)return;const t=e.filter((e=>this.gridColumns.indexOf(e)<0)).length>0;t||e.sort(((e,t)=>this.gridColumns.indexOf(e)-this.gridColumns.indexOf(t)))}doesMovePassLockedPositions(e){let t=0,n=!0;return e.forEach((e=>{const r=(i=e.getColDef().lockPosition)?!0===i||\"left\"===i?0:2:1;var i;r<t&&(n=!1),t=r})),n}doesMovePassMarryChildren(e){let t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(n=>{if(!(n instanceof _D))return;const r=n,i=r.getColGroupDef();if(!i||!i.marryChildren)return;const o=[];r.getLeafColumns().forEach((t=>{const n=e.indexOf(t);o.push(n)})),Math.max.apply(Math,o)-Math.min.apply(Math,o)>r.getLeafColumns().length-1&&(t=!1)})),t}moveColumnByIndex(e,t,n){if(!this.gridColumns)return;const r=this.gridColumns[e];this.moveColumns([r],t,n)}getColumnDefs(){if(!this.primaryColumns)return;const e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort(((e,t)=>this.gridColumns.indexOf(e)-this.gridColumns.indexOf(t))):this.lastPrimaryOrder&&e.sort(((e,t)=>this.lastPrimaryOrder.indexOf(e)-this.lastPrimaryOrder.indexOf(t))),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}getBodyContainerWidth(){return this.bodyWidth}getContainerWidth(e){switch(e){case\"left\":return this.leftWidth;case\"right\":return this.rightWidth;default:return this.bodyWidth}}updateBodyWidths(){const e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;const r={type:CR.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(r);const i={type:CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(i)}}getValueColumns(){return this.valueColumns?this.valueColumns:[]}getPivotColumns(){return this.pivotColumns?this.pivotColumns:[]}isPivotActive(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode}getRowGroupColumns(){return this.rowGroupColumns?this.rowGroupColumns:[]}getDisplayedCenterColumns(){return this.displayedColumnsCenter}getDisplayedLeftColumns(){return this.displayedColumnsLeft}getDisplayedRightColumns(){return this.displayedColumnsRight}getDisplayedColumns(e){switch(e){case\"left\":return this.getDisplayedLeftColumns();case\"right\":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}}getAllPrimaryColumns(){return this.primaryColumns?this.primaryColumns:null}getSecondaryColumns(){return this.secondaryColumns?this.secondaryColumns:null}getAllColumnsForQuickFilter(){return this.columnsForQuickFilter}getAllGridColumns(){var e;return null!=(e=this.gridColumns)?e:[]}isEmpty(){return LT(this.gridColumns)}isRowGroupEmpty(){return LT(this.rowGroupColumns)}setColumnsVisible(e,t=!1,n){this.applyColumnState({state:e.map((e=>({colId:\"string\"==typeof e?e:e.getColId(),hide:!t})))},n)}setColumnsPinned(e,t,n){if(!this.gridColumns)return;if(this.gridOptionsService.isDomLayout(\"print\"))return void console.warn(\"AG Grid: Changing the column pinning status is not allowed with domLayout='print'\");let r;this.columnAnimationService.start(),r=!0===t||\"left\"===t?\"left\":\"right\"===t?\"right\":null,this.actionOnGridColumns(e,(e=>e.getPinned()!==r&&(e.setPinned(r),!0)),n,(()=>({type:CR.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:n}))),this.columnAnimationService.finish()}actionOnGridColumns(e,t,n,r){if(LT(e))return;const i=[];if(e.forEach((e=>{if(!e)return;const n=this.getGridColumn(e);n&&!1!==t(n)&&i.push(n)})),i.length&&(this.updateDisplayedColumns(n),NT(r)&&r)){const e=r();e.columns=i,e.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(e)}}getDisplayedColBefore(e){const t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null}getDisplayedColAfter(e){const t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getDisplayedGroupAfter(e){return this.getDisplayedGroupAtDirection(e,\"After\")}getDisplayedGroupBefore(e){return this.getDisplayedGroupAtDirection(e,\"Before\")}getDisplayedGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i=\"After\"===t?HD(r):r[0],o=`getDisplayedCol${t}`;for(;;){const t=this[o](i);if(!t)return null;const r=this.getColumnGroupAtLevel(t,n);if(r!==e)return r}}getColumnGroupAtLevel(e,t){let n,r,i=e.getParent();for(;n=i.getProvidedColumnGroup().getLevel(),r=i.getPaddingLevel(),!(n+r<=t);)i=i.getParent();return i}isPinningLeft(){return this.displayedColumnsLeft.length>0}isPinningRight(){return this.displayedColumnsRight.length>0}getPrimaryAndSecondaryAndAutoColumns(){return[].concat(this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[])}createStateItemFromColumn(e){const t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,i=null!=e.getSort()?e.getSort():null,o=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:i,sortIndex:o,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:a}}getColumnState(){if(PT(this.primaryColumns)||!this.isAlive())return[];const e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e}orderColumnStateList(e){const t=LR(this.gridColumns.map(((e,t)=>[e.getColId(),t])));e.sort(((e,n)=>(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)))}resetColumnState(e){if(LT(this.primaryColumns))return;const t=this.getColumnsFromTree(this.primaryColumnTree),n=[];let r=1e3,i=1e3,o=[];this.groupAutoColumns&&(o=o.concat(this.groupAutoColumns)),t&&(o=o.concat(t)),o.forEach((e=>{const t=this.getColumnStateFromColDef(e);PT(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=r++),PT(t.pivotIndex)&&t.pivot&&(t.pivotIndex=i++),n.push(t)})),this.applyColumnState({state:n,applyOrder:!0},e)}getColumnStateFromColDef(e){const t=(e,t)=>null!=e?e:null!=t?t:null,n=e.getColDef(),r=t(n.sort,n.initialSort),i=t(n.sortIndex,n.initialSortIndex),o=t(n.hide,n.initialHide),a=t(n.pinned,n.initialPinned),s=t(n.width,n.initialWidth),l=t(n.flex,n.initialFlex);let c=t(n.rowGroupIndex,n.initialRowGroupIndex),d=t(n.rowGroup,n.initialRowGroup);null!=c||null!=d&&0!=d||(c=null,d=null);let u=t(n.pivotIndex,n.initialPivotIndex),h=t(n.pivot,n.initialPivot);null!=u||null!=h&&0!=h||(u=null,h=null);const p=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:i,hide:o,pinned:a,width:s,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:p}}applyColumnState(e,t){if(LT(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn(\"AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.\"),!1;const n=(n,r,i)=>{const o=this.compareColumnStatesAndDispatchEvents(t);this.autoGroupsNeedBuilding=!0;const a=r.slice(),s={},l={},c=[],d=[];let u=0;const h=this.rowGroupColumns.slice(),p=this.pivotColumns.slice();n.forEach((n=>{const r=n.colId||\"\";if(r.startsWith(xR))return c.push(n),void d.push(n);const o=i(r);o?(this.syncColumnWithStateItem(o,n,e.defaultState,s,l,!1,t),KD(a,o)):(d.push(n),u+=1)}));const g=n=>this.syncColumnWithStateItem(n,null,e.defaultState,s,l,!1,t);a.forEach(g);const f=(e,t,n,r)=>{const i=e[n.getId()],o=e[r.getId()],a=null!=i,s=null!=o;if(a&&s)return i-o;if(a)return-1;if(s)return 1;const l=t.indexOf(n),c=t.indexOf(r),d=l>=0;return d&&c>=0?l-c:d?-1:1};this.rowGroupColumns.sort(f.bind(this,s,h)),this.pivotColumns.sort(f.bind(this,l,p)),this.updateGridColumns();const m=this.groupAutoColumns?this.groupAutoColumns.slice():[];return c.forEach((n=>{const r=this.getAutoColumn(n.colId);KD(m,r),this.syncColumnWithStateItem(r,n,e.defaultState,null,null,!0,t)})),m.forEach(g),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(t),this.dispatchEverythingChanged(t),o(),{unmatchedAndAutoStates:d,unmatchedCount:u}};this.columnAnimationService.start();let{unmatchedAndAutoStates:r,unmatchedCount:i}=n(e.state||[],this.primaryColumns||[],(e=>this.getPrimaryColumn(e)));return(r.length>0||NT(e.defaultState))&&(i=n(r,this.secondaryColumns||[],(e=>this.getSecondaryColumn(e))).unmatchedCount),this.columnAnimationService.finish(),0===i}applyOrderAfterApplyState(e){if(!e.applyOrder||!e.state)return;let t=[];const n={};e.state.forEach((e=>{if(!e.colId||n[e.colId])return;const r=this.gridColumnsMap[e.colId];r&&(t.push(r),n[e.colId]=!0)}));let r=0;this.gridColumns.forEach((e=>{const i=e.getColId();null==n[i]&&(i.startsWith(xR)?XD(t,e,r++):t.push(e))})),t=this.placeLockedColumns(t),this.doesMovePassMarryChildren(t)?this.gridColumns=t:console.warn(\"AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.\")}compareColumnStatesAndDispatchEvents(e){const t={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),r={};return n.forEach((e=>{r[e.colId]=e})),()=>{const i=this.getPrimaryAndSecondaryAndAutoColumns(),o=(t,n,r,i)=>{if(jD(n.map(i),r.map(i)))return;const o=new Set(n);r.forEach((e=>{o.delete(e)||o.add(e)}));const a=[...o],s={type:t,columns:a,column:1===a.length?a[0]:null,source:e};this.eventService.dispatchEvent(s)},a=e=>{const t=[];return i.forEach((n=>{const i=r[n.getColId()];i&&e(i,n)&&t.push(n)})),t},s=e=>e.getColId();o(CR.EVENT_COLUMN_ROW_GROUP_CHANGED,t.rowGroupColumns,this.rowGroupColumns,s),o(CR.EVENT_COLUMN_PIVOT_CHANGED,t.pivotColumns,this.pivotColumns,s);const l=a(((e,t)=>{const n=null!=e.aggFunc,r=n!=t.isValueActive(),i=n&&e.aggFunc!=t.getAggFunc();return r||i}));l.length>0&&this.dispatchColumnChangedEvent(CR.EVENT_COLUMN_VALUE_CHANGED,l,e),this.dispatchColumnResizedEvent(a(((e,t)=>e.width!=t.getActualWidth())),!0,e),this.dispatchColumnPinnedEvent(a(((e,t)=>e.pinned!=t.getPinned())),e),this.dispatchColumnVisibleEvent(a(((e,t)=>e.hide==t.isVisible())),e);const c=a(((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()));c.length>0&&this.sortController.dispatchSortChangedEvents(e,c),this.normaliseColumnMovedEventForColumnState(n,e)}}getCommonValue(e,t){if(!e||0==e.length)return;const n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}normaliseColumnMovedEventForColumnState(e,t){const n=this.getColumnState(),r={};n.forEach((e=>r[e.colId]=e));const i={};e.forEach((e=>{r[e.colId]&&(i[e.colId]=!0)}));const o=e.filter((e=>i[e.colId])),a=n.filter((e=>i[e.colId])),s=[];a.forEach(((e,t)=>{const n=o&&o[t];if(n&&n.colId!==e.colId){const e=this.getGridColumn(n.colId);e&&s.push(e)}})),s.length&&this.dispatchColumnMovedEvent({movedColumns:s,source:t,finished:!0})}syncColumnWithStateItem(e,t,n,r,i,o,a){if(!e)return;const s=(e,r)=>{const i={value1:void 0,value2:void 0};let o=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],o=!0),NT(r)&&void 0!==t[r]&&(i.value2=t[r],o=!0)),!o&&n&&(void 0!==n[e]&&(i.value1=n[e]),NT(r)&&void 0!==n[r]&&(i.value2=n[r])),i},l=s(\"hide\").value1;void 0!==l&&e.setVisible(!l,a);const c=s(\"pinned\").value1;void 0!==c&&e.setPinned(c);const d=this.columnUtils.calculateColMinWidth(e.getColDef()),u=s(\"flex\").value1;if(void 0!==u&&e.setFlex(u),null==u){const t=s(\"width\").value1;null!=t&&null!=d&&t>=d&&e.setActualWidth(t,a)}const h=s(\"sort\").value1;void 0!==h&&(\"desc\"===h||\"asc\"===h?e.setSort(h,a):e.setSort(void 0,a));const p=s(\"sortIndex\").value1;if(void 0!==p&&e.setSortIndex(p),o||!e.isPrimary())return;const g=s(\"aggFunc\").value1;void 0!==g&&(\"string\"==typeof g?(e.setAggFunc(g),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(NT(g)&&console.warn(\"AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.\"),e.isValueActive()&&(e.setValueActive(!1,a),KD(this.valueColumns,e))));const{value1:f,value2:m}=s(\"rowGroup\",\"rowGroupIndex\");void 0===f&&void 0===m||(\"number\"==typeof m||f?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),r&&\"number\"==typeof m&&(r[e.getId()]=m)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),KD(this.rowGroupColumns,e)));const{value1:v,value2:y}=s(\"pivot\",\"pivotIndex\");void 0===v&&void 0===y||(\"number\"==typeof y||v?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&\"number\"==typeof y&&(i[e.getId()]=y)):e.isPivotActive()&&(e.setPivotActive(!1,a),KD(this.pivotColumns,e)))}getGridColumns(e){return this.getColumns(e,this.getGridColumn.bind(this))}getColumns(e,t){const n=[];return e&&e.forEach((e=>{const r=t(e);r&&n.push(r)})),n}getColumnWithValidation(e){if(null==e)return null;const t=this.getGridColumn(e);return t||console.warn(\"AG Grid: could not find column \"+e),t}getPrimaryColumn(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null}getGridColumn(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)}lookupGridColumn(e){return this.gridColumnsMap[e]}getSecondaryColumn(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null}getColumn(e,t,n){if(!e||!n)return null;if(\"string\"==typeof e&&n[e])return n[e];for(let n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)}getSourceColumnsForGroupColumn(e){const t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);const n=this.getPrimaryColumn(t);return n?[n]:null}getAutoColumn(e){return this.groupAutoColumns&&NT(this.groupAutoColumns)&&!PT(this.groupAutoColumns)&&this.groupAutoColumns.find((t=>this.columnsMatch(t,e)))||null}columnsMatch(e,t){const n=e===t,r=e.getColDef()===t,i=e.getColId()==t;return n||r||i}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,n){const r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,r,i){const o=e.headerValueGetter;if(o){const a=this.gridOptionsService.addGridCommonParams({colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:i});return\"function\"==typeof o?o(a):\"string\"==typeof o?this.expressionService.evaluate(o,a):(console.warn(\"AG Grid: headerValueGetter must be a function or a string\"),\"\")}return null!=e.headerName?e.headerName:e.field?IR(e.field):\"\"}wrapHeaderNameWithAggFunc(e,t){if(this.gridOptionsService.get(\"suppressAggFuncInHeader\"))return t;const n=e.getColDef().pivotValueColumn;let r,i=null;if(NT(n)){const o=this.gridOptionsService.get(\"removePivotHeaderRowWhenSingleValueColumn\")&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(o&&!a)return t;i=n?n.getAggFunc():null,r=!0}else{const t=e.isValueActive(),n=this.pivotMode||!this.isRowGroupEmpty();t&&n?(i=e.getAggFunc(),r=!0):r=!1}if(r){const e=\"string\"==typeof i?i:\"func\";return`${this.localeService.getLocaleTextFunc()(e,e)}(${t})`}return t}getColumnGroup(e,t){if(!e)return null;if(e instanceof wR)return e;const n=this.getAllDisplayedTrees(),r=\"number\"==typeof t;let i=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(n=>{if(n instanceof wR){const o=n;let a;a=r?e===o.getGroupId()&&t===o.getPartId():e===o.getGroupId(),a&&(i=o)}})),i}isReady(){return this.ready}extractValueColumns(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,((t,n)=>t.setValueActive(n,e)),(()=>{}),(()=>{}),(e=>{const t=e.aggFunc;return null===t||\"\"===t?null:void 0!==t?!!t:void 0}),(e=>null!=e.initialAggFunc&&\"\"!=e.initialAggFunc)),this.valueColumns.forEach((e=>{const t=e.getColDef();null!=t.aggFunc&&\"\"!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))}extractRowGroupColumns(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,((t,n)=>t.setRowGroupActive(n,e)),(e=>e.rowGroupIndex),(e=>e.initialRowGroupIndex),(e=>e.rowGroup),(e=>e.initialRowGroup))}extractColumns(e=[],t=[],n,r,i,o,a){const s=[],l=[];(this.primaryColumns||[]).forEach((n=>{const c=e.indexOf(n)<0,d=n.getColDef(),u=zT(o(d)),h=zT(a(d)),p=_T(r(d)),g=_T(i(d));let f;f=void 0!==u?u:void 0!==p?null!==p&&p>=0:c?void 0!==h?h:!(void 0===g)&&null!=g&&g>=0:t.indexOf(n)>=0,f&&((c?null!=p||null!=g:null!=p)?s.push(n):l.push(n))}));const c=e=>{const t=r(e.getColDef()),n=i(e.getColDef());return null!=t?t:n};s.sort(((e,t)=>{const n=c(e),r=c(t);return n===r?0:n<r?-1:1}));const d=[].concat(s);return t.forEach((e=>{l.indexOf(e)>=0&&d.push(e)})),l.forEach((e=>{d.indexOf(e)<0&&d.push(e)})),t.forEach((e=>{d.indexOf(e)<0&&n(e,!1)})),d.forEach((e=>{t.indexOf(e)<0&&n(e,!0)})),d}extractPivotColumns(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,((t,n)=>t.setPivotActive(n,e)),(e=>e.pivotIndex),(e=>e.initialPivotIndex),(e=>e.pivot),(e=>e.initialPivot))}resetColumnGroupState(e){if(!this.primaryColumnTree)return;const t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(e=>{if(e instanceof _D){const n=e.getColGroupDef(),r={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(r)}})),this.setColumnGroupState(t,e)}getColumnGroupState(){const e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(t=>{t instanceof _D&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e}setColumnGroupState(e,t){if(!this.gridBalancedTree)return;this.columnAnimationService.start();const n=[];if(e.forEach((e=>{const t=e.groupId,r=e.open,i=this.getProvidedColumnGroup(t);i&&i.isExpanded()!==r&&(this.logger.log(\"columnGroupOpened(\"+i.getGroupId()+\",\"+r+\")\"),i.setExpanded(r),n.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),n.length){const e={type:CR.EVENT_COLUMN_GROUP_OPENED,columnGroup:1===_D.length?n[0]:void 0,columnGroups:n};this.eventService.dispatchEvent(e)}this.columnAnimationService.finish()}setColumnGroupOpened(e,t,n){let r;r=e instanceof _D?e.getId():e||\"\",this.setColumnGroupState([{groupId:r,open:t}],n)}getProvidedColumnGroup(e){\"string\"!=typeof e&&console.error(\"AG Grid: group key must be a string\");let t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(n=>{n instanceof _D&&n.getId()===e&&(t=n)})),t}calculateColumnsForDisplay(){let e;return e=this.pivotMode&&PT(this.secondaryColumns)?this.gridColumns.filter((e=>{const t=this.groupAutoColumns&&eR(this.groupAutoColumns,e),n=this.valueColumns&&eR(this.valueColumns,e);return t||n})):this.gridColumns.filter((e=>this.groupAutoColumns&&eR(this.groupAutoColumns,e)||e.isVisible())),e}checkColSpanActiveInCols(e){let t=!1;return e.forEach((e=>{NT(e.getColDef().colSpan)&&(t=!0)})),t}calculateColumnsForGroupDisplay(){this.groupDisplayColumns=[],this.groupDisplayColumnsMap={},this.gridColumns.forEach((e=>{const t=e.getColDef(),n=t.showRowGroup;t&&NT(n)&&(this.groupDisplayColumns.push(e),\"string\"==typeof n?this.groupDisplayColumnsMap[n]=e:!0===n&&this.getRowGroupColumns().forEach((t=>{this.groupDisplayColumnsMap[t.getId()]=e})))}))}getGroupDisplayColumns(){return this.groupDisplayColumns}getGroupDisplayColumnForGroup(e){return this.groupDisplayColumnsMap[e]}updateDisplayedColumns(e){const t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)}isSecondaryColumnsPresent(){return NT(this.secondaryColumns)}setSecondaryColumns(e,t){if(!this.gridColumns)return;const n=e;if(n||!PT(this.secondaryColumns)){if(n){this.processSecondaryColumnDefinitions(e);const n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,t);this.destroyOldColumns(this.secondaryBalancedTree,n.columnTree),this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((e=>this.secondaryColumnsMap[e.getId()]=e)),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}}processSecondaryColumnDefinitions(e){const t=this.gridOptionsService.get(\"processPivotResultColDef\"),n=this.gridOptionsService.get(\"processPivotResultColGroupDef\");if(!t&&!n)return;const r=e=>{e.forEach((e=>{if(NT(e.children)){const t=e;n&&n(t),r(t.children)}else t&&t(e)}))};e&&r(e)}updateGridColumns(){const e=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.createGroupAutoColumnsIfNeeded()){const e=LR(this.groupAutoColumns.map((e=>[e,!0])));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter((t=>!e.has(t))),this.lastPrimaryOrder=[...this.groupAutoColumns,...this.lastPrimaryOrder]),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter((t=>!e.has(t))),this.lastSecondaryOrder=[...this.groupAutoColumns,...this.lastSecondaryOrder])}let t;if(this.secondaryColumns&&this.secondaryBalancedTree){const e=this.secondaryColumns.some((e=>void 0!==this.gridColumnsMap[e.getColId()]));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,e&&(t=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,t=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(t),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((e=>this.gridColumnsMap[e.getId()]=e)),this.setAutoHeightActive(),!jD(e,this.gridBalancedTree)){const e={type:CR.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}}setAutoHeightActive(){this.autoHeightActive=this.gridColumns.filter((e=>e.isAutoHeight())).length>0,this.autoHeightActive&&(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType(\"clientSide\")||this.gridOptionsService.isRowModelType(\"serverSide\")||nD(\"autoHeight columns only work with Client Side Row Model and Server Side Row Model.\"))}orderGridColsLike(e){if(PT(e))return;const t=LR(e.map(((e,t)=>[e,t])));let n=!0;if(this.gridColumns.forEach((e=>{t.has(e)&&(n=!1)})),n)return;const r=LR(this.gridColumns.map((e=>[e,!0]))),i=e.filter((e=>r.has(e))),o=LR(i.map((e=>[e,!0]))),a=this.gridColumns.filter((e=>!o.has(e))),s=i.slice();a.forEach((e=>{let t=e.getOriginalParent();if(!t)return void s.push(e);const n=[];for(;!n.length&&t;)t.getLeafColumns().forEach((e=>{const t=s.indexOf(e)>=0,r=n.indexOf(e)<0;t&&r&&n.push(e)})),t=t.getOriginalParent();if(!n.length)return void s.push(e);const r=n.map((e=>s.indexOf(e))),i=Math.max(...r);XD(s,e,i+1)})),this.gridColumns=s}isPrimaryColumnGroupsPresent(){return this.primaryHeaderRowCount>1}refreshQuickFilterColumns(){var e;let t=null!=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)?e:[];this.groupAutoColumns&&(t=t.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get(\"includeHiddenColumnsInQuickFilter\")?t:t.filter((e=>e.isVisible()||e.isRowGroupActive()))}placeLockedColumns(e){const t=[],n=[],r=[];return e.forEach((e=>{const i=e.getColDef().lockPosition;\"right\"===i?r.push(e):\"left\"===i||!0===i?t.push(e):n.push(e)})),[...t,...n,...r]}addAutoGroupToGridColumns(){if(PT(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;const e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)}clearDisplayedAndViewportColumns(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=\"\"}updateGroupsAndDisplayedColumns(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();const t={type:CR.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)}deriveDisplayedColumns(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((e=>e.isAutoHeight()))}isAutoRowHeightActive(){return this.autoHeightActive}wasAutoRowHeightEverActive(){return this.autoHeightActiveAtLeastOnce}joinColumnsAriaOrder(){const e=this.getAllGridColumns(),t=[],n=[],r=[];for(const i of e){const e=i.getPinned();e?!0===e||\"left\"===e?t.push(i):r.push(i):n.push(i)}this.ariaOrderColumns=t.concat(n).concat(r)}joinDisplayedColumns(){this.gridOptionsService.get(\"enableRtl\")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)}setLeftValues(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()}setLeftValuesOfColumns(e){if(!this.primaryColumns)return;const t=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),n=this.gridOptionsService.get(\"enableRtl\");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((r=>{if(n){let t=this.getWidthOfColsInList(r);r.forEach((n=>{t-=n.getActualWidth(),n.setLeft(t,e)}))}else{let t=0;r.forEach((n=>{n.setLeft(t,e),t+=n.getActualWidth()}))}qD(t,r)})),t.forEach((t=>{t.setLeft(null,e)}))}setLeftValuesOfGroups(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((e=>{e.forEach((e=>{e instanceof wR&&e.checkLeft()}))}))}derivedDisplayedColumnsFromDisplayedTree(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(e=>{e instanceof LD&&t.push(e)}))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}extractViewportColumns(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)}getVirtualHeaderGroupRow(e,t){let n;switch(e){case\"left\":n=this.viewportRowLeft[t];break;case\"right\":n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return PT(n)&&(n=[]),n}calculateHeaderRows(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};const e={};this.headerViewportColumns.forEach((t=>e[t.getId()]=!0));const t=(n,r,i)=>{let o=!1;for(let a=0;a<n.length;a++){const s=n[a];let l=!1;if(s instanceof LD)l=!0===e[s.getId()];else{const e=s.getDisplayedChildren();e&&(l=t(e,r,i+1))}l&&(o=!0,r[i]||(r[i]=[]),r[i].push(s))}return o};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)}extractViewport(){this.extractViewportColumns();const e=this.viewportColumns.map((e=>`${e.getId()}-${e.getPinned()||\"normal\"}`)).join(\"#\"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t}refreshFlexedColumns(e={}){var t;const n=e.source?e.source:\"flex\";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];let r=-1;if(e.resizingCols){const t=new Set(e.resizingCols);let n=this.displayedColumnsCenter;for(let e=n.length-1;e>=0;e--)if(t.has(n[e])){r=e;break}}let i=0,o=[],a=0,s=0;for(let e=0;e<this.displayedColumnsCenter.length;e++)this.displayedColumnsCenter[e].getFlex()&&e>r?(o.push(this.displayedColumnsCenter[e]),s+=this.displayedColumnsCenter[e].getFlex(),a+=null!=(t=this.displayedColumnsCenter[e].getMinWidth())?t:0):i+=this.displayedColumnsCenter[e].getActualWidth();if(!o.length)return[];let l=[];i+a>this.flexViewportWidth&&(o.forEach((e=>{var t;return e.setActualWidth(null!=(t=e.getMinWidth())?t:0,n)})),l=o,o=[]);const c=[];let d;e:for(;;){d=this.flexViewportWidth-i;const e=d/s;for(let t=0;t<o.length;t++){const r=o[t],a=e*r.getFlex();let d=0;const u=r.getMinWidth(),h=r.getMaxWidth();if(NT(u)&&a<u?d=u:NT(h)&&a>h&&(d=h),d){r.setActualWidth(d,n),YD(o,r),s-=r.getFlex(),l.push(r),i+=r.getActualWidth();continue e}c[t]=Math.round(a)}break}let u=d;return o.forEach(((e,t)=>{e.setActualWidth(Math.min(c[t],u),n),l.push(e),u-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,n,o),o}sizeColumnsToFit(e,t=\"sizeColumnsToFit\",n,r){var i,o,a,s,l;if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.sizeColumnsToFit(e,t,n,r)));const c={};r&&(null==(i=null==r?void 0:r.columnLimits)||i.forEach((e=>{var t=e,{key:n}=t,r=((e,t)=>{var n={};for(var r in e)ET.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ST)for(var r of ST(e))t.indexOf(r)<0&&xT.call(e,r)&&(n[r]=e[r]);return n})(t,[\"key\"]);c[\"string\"==typeof n?n:n.getColId()]=r})));const d=this.getAllDisplayedColumns(),u=e===this.getWidthOfColsInList(d);if(e<=0||!d.length||u)return;const h=[],p=[];d.forEach((e=>{!0===e.getColDef().suppressSizeToFit?p.push(e):h.push(e)}));const g=h.slice(0);let f=!1;const m=e=>{KD(h,e),p.push(e)};for(h.forEach((e=>{var n,i;e.resetActualWidth(t);const o=null==c?void 0:c[e.getId()],a=null!=(n=null==o?void 0:o.minWidth)?n:null==r?void 0:r.defaultMinWidth,s=null!=(i=null==o?void 0:o.maxWidth)?i:null==r?void 0:r.defaultMaxWidth,l=e.getActualWidth();\"number\"==typeof a&&l<a?e.setActualWidth(a,t,!0):\"number\"==typeof s&&l>s&&e.setActualWidth(s,t,!0)}));!f;){f=!0;const n=e-this.getWidthOfColsInList(p);if(n<=0)h.forEach((e=>{var n,i;const o=null!=(i=null==(n=null==c?void 0:c[e.getId()])?void 0:n.minWidth)?i:null==r?void 0:r.defaultMinWidth;\"number\"!=typeof o?e.setMinimum(t):e.setActualWidth(o,t,!0)}));else{const e=n/this.getWidthOfColsInList(h);let i=n;for(let n=h.length-1;n>=0;n--){const d=h[n],u=null==c?void 0:c[d.getId()],p=null!=(o=null==u?void 0:u.minWidth)?o:null==r?void 0:r.defaultMinWidth,g=null!=(a=null==u?void 0:u.maxWidth)?a:null==r?void 0:r.defaultMaxWidth,v=null!=(s=d.getMinWidth())?s:0,y=null!=(l=d.getMaxWidth())?l:Number.MAX_VALUE,b=\"number\"==typeof p&&p>v?p:d.getMinWidth(),w=\"number\"==typeof g&&g<y?g:d.getMaxWidth();let C=Math.round(d.getActualWidth()*e);NT(b)&&C<b?(C=b,m(d),f=!1):NT(w)&&C>w?(C=w,m(d),f=!1):0===n&&(C=i),d.setActualWidth(C,t,!0),i-=C}}}g.forEach((e=>{e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.dispatchColumnResizedEvent(g,!0,t)}buildDisplayedTrees(e){const t=[],n=[],r=[];e.forEach((e=>{switch(e.getPinned()){case\"left\":t.push(e);break;case\"right\":n.push(e);break;default:r.push(e)}}));const i=new ER;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,i,\"left\",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,i,\"right\",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,i,null,this.displayedTreeCentre),this.updateDisplayedMap()}updateDisplayedMap(){this.displayedColumnsAndGroupsMap={};const e=e=>{this.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,e)}isDisplayed(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e}updateOpenClosedVisibilityInColumnGroups(){const e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(e=>{e instanceof wR&&e.calculateDisplayedColumns()}))}getGroupAutoColumns(){return this.groupAutoColumns}createGroupAutoColumnsIfNeeded(){const e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;const t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),n=this.pivotMode?this.gridOptionsService.get(\"pivotSuppressAutoColumn\"):this.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.gridOptionsService.get(\"treeData\"))||n||t)this.groupAutoColumns=null;else{const t=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(t,this.groupAutoColumns)||e)return this.groupAutoColumns=t,!0}return!1}isGroupSuppressAutoColumn(){return\"custom\"===this.gridOptionsService.get(\"groupDisplayType\")||\"custom\"===this.gridOptionsService.get(\"treeDataDisplayType\")}autoColsEqual(e,t){return jD(e,t,((e,t)=>e.getColId()===t.getColId()))}getWidthOfColsInList(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}getFirstDisplayedColumn(){const e=this.gridOptionsService.get(\"enableRtl\"),t=[\"getDisplayedLeftColumns\",\"getDisplayedCenterColumns\",\"getDisplayedRightColumns\"];e&&t.reverse();for(let n=0;n<t.length;n++){const r=this[t[n]]();if(r.length)return e?HD(r):r[0]}return null}setColumnHeaderHeight(e,t){if(e.setAutoHeaderHeight(t)){const t={type:CR.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:\"autosizeColumnHeaderHeight\"};this.eventService.dispatchEvent(t)}}getColumnGroupHeaderRowHeight(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()}getColumnHeaderRowHeight(){const e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter((e=>e.isAutoHeaderHeight())).map((e=>e.getAutoHeaderHeight()||0));return Math.max(e,...t)}getHeaderHeight(){var e;return null!=(e=this.gridOptionsService.get(\"headerHeight\"))?e:this.environment.getFromTheme(25,\"headerHeight\")}getFloatingFiltersHeight(){var e;return null!=(e=this.gridOptionsService.get(\"floatingFiltersHeight\"))?e:this.getHeaderHeight()}getGroupHeaderHeight(){var e;return null!=(e=this.gridOptionsService.get(\"groupHeaderHeight\"))?e:this.getHeaderHeight()}getPivotHeaderHeight(){var e;return null!=(e=this.gridOptionsService.get(\"pivotHeaderHeight\"))?e:this.getHeaderHeight()}getPivotGroupHeaderHeight(){var e;return null!=(e=this.gridOptionsService.get(\"pivotGroupHeaderHeight\"))?e:this.getGroupHeaderHeight()}queueResizeOperations(){this.shouldQueueResizeOperations=!0}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach((e=>e())),this.resizeOperationQueue=[]}resetColumnDefIntoColumn(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const r=this.columnFactory.addColumnDefaultAndTypes(n,e.getColId());return e.setColDef(r,n,t),!0}isColumnGroupingLocked(e){const t=this.gridOptionsService.get(\"groupLockGroupColumns\");return!(!e.isRowGroupActive()||0===t)&&(-1===t||t>this.rowGroupColumns.findIndex((t=>t.getColId()===e.getColId())))}generateColumnStateForRowGroupAndPivotIndexes(e,t){let n={};const r=(e,t,r,i,o,a)=>{if(!t.length||!this.primaryColumns)return[];const s=Object.keys(e),l=new Set(s),c=new Set(s),d=new Set(t.map((e=>{const t=e.getColId();return c.delete(t),t})).concat(s)),u=[],h={};let p=0;for(let e=0;e<this.primaryColumns.length;e++){const t=this.primaryColumns[e].getColId();d.has(t)&&(u.push(t),h[t]=p++)}let g=1e3,f=!1,m=0;const v=t=>{const n=h[t];for(let t=m;t<n;t++){const n=u[t];c.has(n)&&(e[n][o]=g++,c.delete(n))}m=n};t.forEach((t=>{const s=t.getColId();if(l.has(s))v(s),e[s][o]=g++;else{const l=t.getColDef();(null===l[o]||void 0===l[o]&&null==l[a])&&(f||(l[r]||void 0===l[r]&&l[i]?v(s):(c.forEach((t=>{e[t][o]=g+h[t]})),g+=u.length,f=!0)),n[s]||(n[s]={colId:s}),n[s][o]=g++)}}))};return r(e,this.rowGroupColumns,\"rowGroup\",\"initialRowGroup\",\"rowGroupIndex\",\"initialRowGroupIndex\"),r(t,this.pivotColumns,\"pivot\",\"initialPivot\",\"pivotIndex\",\"initialPivotIndex\"),Object.values(n)}onColumnsReady(){const e=this.gridOptionsService.get(\"autoSizeStrategy\");if(!e)return;const{type:t}=e;setTimeout((()=>{if(\"fitGridWidth\"===t){const{columnLimits:t,defaultMinWidth:n,defaultMaxWidth:r}=e,i=null==t?void 0:t.map((({colId:e,minWidth:t,maxWidth:n})=>({key:e,minWidth:t,maxWidth:n})));this.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:n,defaultMaxWidth:r,columnLimits:i})}else\"fitProvidedWidth\"===t&&this.sizeColumnsToFit(e.width,\"sizeColumnsToFit\")}))}onFirstDataRendered(){const e=this.gridOptionsService.get(\"autoSizeStrategy\");if(\"fitCellContents\"!==(null==e?void 0:e.type))return;const{colIds:t,skipHeader:n}=e;setTimeout((()=>{t?this.autoSizeColumns({columns:t,skipHeader:n,source:\"autosizeColumns\"}):this.autoSizeAllColumns(\"autosizeColumns\",n)}))}};function GR(e){return\"gridOptionsUpdated\"===e?\"gridOptionsChanged\":e}MT([xD(\"expressionService\")],zR.prototype,\"expressionService\",2),MT([xD(\"columnFactory\")],zR.prototype,\"columnFactory\",2),MT([xD(\"displayedGroupCreator\")],zR.prototype,\"displayedGroupCreator\",2),MT([xD(\"ctrlsService\")],zR.prototype,\"ctrlsService\",2),MT([xD(\"autoWidthCalculator\")],zR.prototype,\"autoWidthCalculator\",2),MT([xD(\"columnUtils\")],zR.prototype,\"columnUtils\",2),MT([xD(\"columnAnimationService\")],zR.prototype,\"columnAnimationService\",2),MT([xD(\"autoGroupColService\")],zR.prototype,\"autoGroupColService\",2),MT([AD(\"aggFuncService\")],zR.prototype,\"aggFuncService\",2),MT([AD(\"valueCache\")],zR.prototype,\"valueCache\",2),MT([AD(\"animationFrameService\")],zR.prototype,\"animationFrameService\",2),MT([xD(\"sortController\")],zR.prototype,\"sortController\",2),MT([xD(\"columnDefFactory\")],zR.prototype,\"columnDefFactory\",2),MT([CD],zR.prototype,\"init\",1),MT([SD],zR.prototype,\"destroyColumns\",1),MT([OT(0,DD(\"loggerFactory\"))],zR.prototype,\"setBeans\",1),zR=MT([ED(\"columnModel\")],zR);var VR=class extends vR{calculateColMinWidth(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()}calculateColMaxWidth(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER}calculateColInitialWidth(e){const t=this.calculateColMinWidth(e),n=this.calculateColMaxWidth(e);let r;const i=_T(e.width),o=_T(e.initialWidth);return r=null!=i?i:null!=o?o:200,Math.max(Math.min(r,n),t)}getOriginalPathForColumn(e,t){const n=[];let r=!1;const i=(t,o)=>{for(let a=0;a<t.length;a++){if(r)return;const s=t[a];s instanceof _D?(i(s.getChildren(),o+1),n[o]=s):s===e&&(r=!0)}};return i(t,0),r?n:null}depthFirstOriginalTreeSearch(e,t,n){t&&t.forEach((t=>{t instanceof _D&&this.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))}depthFirstAllColumnTreeSearch(e,t){e&&e.forEach((e=>{e instanceof wR&&this.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))}depthFirstDisplayedColumnTreeSearch(e,t){e&&e.forEach((e=>{e instanceof wR&&this.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))}};VR=MT([ED(\"columnUtils\")],VR);var BR=class extends vR{createDisplayedGroups(e,t,n,r){const i=this.mapOldGroupsById(r),o=[];let a=e;for(;a.length;){const e=a;a=[];let r=0;const s=s=>{const l=r;r=s;const c=e[l],d=(c instanceof wR?c.getProvidedColumnGroup():c).getOriginalParent();if(null==d){for(let t=l;t<s;t++)o.push(e[t]);return}const u=this.createColumnGroup(d,t,i,n);for(let t=l;t<s;t++)u.addChild(e[t]);a.push(u)};for(let t=1;t<e.length;t++){const n=e[t],i=(n instanceof wR?n.getProvidedColumnGroup():n).getOriginalParent(),o=e[r];i!==(o instanceof wR?o.getProvidedColumnGroup():o).getOriginalParent()&&s(t)}r<e.length&&s(e.length)}return this.setupParentsIntoColumns(o,null),o}createColumnGroup(e,t,n,r){const i=e.getGroupId(),o=t.getInstanceIdForKey(i);let a=n[wR.createUniqueId(i,o)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),NT(a)?a.reset():(a=new wR(e,i,o,r),this.context.createBean(a)),a}mapOldGroupsById(e){const t={},n=e=>{e.forEach((e=>{if(e instanceof wR){const r=e;t[e.getUniqueId()]=r,n(r.getChildren())}}))};return e&&n(e),t}setupParentsIntoColumns(e,t){e.forEach((e=>{if(e.setParent(t),e instanceof wR){const t=e;this.setupParentsIntoColumns(t.getChildren(),t)}}))}};BR=MT([ED(\"displayedGroupCreator\")],BR);var HR={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,excludeHiddenColumnsFromQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,enableChartToolPanelsButton:!0,suppressChartToolPanelsButton:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressParentsInRowNodes:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,suppressAggAtRootLevel:!0,removePivotHeaderRowWhenSingleValueColumn:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,functionsPassive:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0},jR=class{};jR.STRING_PROPERTIES=[\"rowSelection\",\"overlayLoadingTemplate\",\"overlayNoRowsTemplate\",\"gridId\",\"quickFilterText\",\"rowModelType\",\"editType\",\"domLayout\",\"clipboardDelimiter\",\"rowGroupPanelShow\",\"multiSortKey\",\"pivotColumnGroupTotals\",\"pivotRowTotals\",\"pivotPanelShow\",\"fillHandleDirection\",\"groupDisplayType\",\"treeDataDisplayType\",\"colResizeDefault\",\"tooltipTrigger\",\"serverSidePivotResultFieldSeparator\",\"columnMenu\",\"tooltipShowMode\"],jR.OBJECT_PROPERTIES=[\"components\",\"rowStyle\",\"context\",\"autoGroupColumnDef\",\"localeText\",\"icons\",\"datasource\",\"serverSideDatasource\",\"viewportDatasource\",\"groupRowRendererParams\",\"aggFuncs\",\"fullWidthCellRendererParams\",\"defaultColGroupDef\",\"defaultColDef\",\"defaultCsvExportParams\",\"defaultExcelExportParams\",\"columnTypes\",\"rowClassRules\",\"detailCellRendererParams\",\"loadingCellRendererParams\",\"loadingOverlayComponentParams\",\"noRowsOverlayComponentParams\",\"popupParent\",\"statusBar\",\"sideBar\",\"chartThemeOverrides\",\"customChartThemes\",\"chartToolPanelsDef\",\"dataTypeDefinitions\",\"advancedFilterModel\",\"advancedFilterParent\",\"advancedFilterBuilderParams\",\"initialState\",\"autoSizeStrategy\"],jR.ARRAY_PROPERTIES=[\"sortingOrder\",\"alignedGrids\",\"rowData\",\"columnDefs\",\"excelStyles\",\"pinnedTopRowData\",\"pinnedBottomRowData\",\"chartThemes\",\"rowClass\",\"paginationPageSizeSelector\"],jR.NUMBER_PROPERTIES=[\"rowHeight\",\"detailRowHeight\",\"rowBuffer\",\"headerHeight\",\"groupHeaderHeight\",\"groupLockGroupColumns\",\"floatingFiltersHeight\",\"pivotHeaderHeight\",\"pivotGroupHeaderHeight\",\"groupDefaultExpanded\",\"pivotDefaultExpanded\",\"viewportRowModelPageSize\",\"viewportRowModelBufferSize\",\"autoSizePadding\",\"maxBlocksInCache\",\"maxConcurrentDatasourceRequests\",\"tooltipShowDelay\",\"tooltipHideDelay\",\"cacheOverflowSize\",\"paginationPageSize\",\"cacheBlockSize\",\"infiniteInitialRowCount\",\"serverSideInitialRowCount\",\"scrollbarWidth\",\"asyncTransactionWaitMillis\",\"blockLoadDebounceMillis\",\"keepDetailRowsCount\",\"undoRedoCellEditingLimit\",\"cellFlashDelay\",\"cellFadeDelay\",\"cellFlashDuration\",\"cellFadeDuration\",\"tabIndex\",\"pivotMaxGeneratedColumns\"],jR.BOOLEAN_PROPERTIES=[\"suppressMakeColumnVisibleAfterUnGroup\",\"suppressRowClickSelection\",\"suppressCellFocus\",\"suppressHeaderFocus\",\"suppressHorizontalScroll\",\"groupSelectsChildren\",\"alwaysShowHorizontalScroll\",\"alwaysShowVerticalScroll\",\"debug\",\"enableBrowserTooltips\",\"enableCellExpressions\",\"groupIncludeTotalFooter\",\"groupSuppressBlankHeader\",\"suppressMenuHide\",\"suppressRowDeselection\",\"unSortIcon\",\"suppressMultiSort\",\"alwaysMultiSort\",\"singleClickEdit\",\"suppressLoadingOverlay\",\"suppressNoRowsOverlay\",\"suppressAutoSize\",\"skipHeaderOnAutoSize\",\"suppressParentsInRowNodes\",\"suppressColumnMoveAnimation\",\"suppressMovableColumns\",\"suppressFieldDotNotation\",\"enableRangeSelection\",\"enableRangeHandle\",\"enableFillHandle\",\"suppressClearOnFillReduction\",\"deltaSort\",\"suppressTouch\",\"suppressAsyncEvents\",\"allowContextMenuWithControlKey\",\"suppressContextMenu\",\"enableCellChangeFlash\",\"suppressDragLeaveHidesColumns\",\"suppressRowGroupHidesColumns\",\"suppressMiddleClickScrolls\",\"suppressPreventDefaultOnMouseWheel\",\"suppressCopyRowsToClipboard\",\"copyHeadersToClipboard\",\"copyGroupHeadersToClipboard\",\"pivotMode\",\"suppressAggFuncInHeader\",\"suppressColumnVirtualisation\",\"alwaysAggregateAtRootLevel\",\"suppressAggAtRootLevel\",\"suppressFocusAfterRefresh\",\"functionsPassive\",\"functionsReadOnly\",\"animateRows\",\"groupSelectsFiltered\",\"groupRemoveSingleChildren\",\"groupRemoveLowestSingleChildren\",\"enableRtl\",\"suppressClickEdit\",\"rowDragEntireRow\",\"rowDragManaged\",\"suppressRowDrag\",\"suppressMoveWhenRowDragging\",\"rowDragMultiRow\",\"enableGroupEdit\",\"embedFullWidthRows\",\"suppressPaginationPanel\",\"groupHideOpenParents\",\"groupAllowUnbalanced\",\"pagination\",\"paginationAutoPageSize\",\"suppressScrollOnNewData\",\"suppressScrollWhenPopupsAreOpen\",\"purgeClosedRowNodes\",\"cacheQuickFilter\",\"includeHiddenColumnsInQuickFilter\",\"excludeHiddenColumnsFromQuickFilter\",\"ensureDomOrder\",\"accentedSort\",\"suppressChangeDetection\",\"valueCache\",\"valueCacheNeverExpires\",\"aggregateOnlyChangedColumns\",\"suppressAnimationFrame\",\"suppressExcelExport\",\"suppressCsvExport\",\"includeHiddenColumnsInAdvancedFilter\",\"suppressMultiRangeSelection\",\"enterMovesDown\",\"enterMovesDownAfterEdit\",\"enterNavigatesVerticallyAfterEdit\",\"enterNavigatesVertically\",\"suppressPropertyNamesCheck\",\"rowMultiSelectWithClick\",\"suppressRowHoverHighlight\",\"suppressRowTransform\",\"suppressClipboardPaste\",\"suppressLastEmptyLineOnPaste\",\"enableCharts\",\"enableChartToolPanelsButton\",\"suppressChartToolPanelsButton\",\"suppressMaintainUnsortedOrder\",\"enableCellTextSelection\",\"suppressBrowserResizeObserver\",\"suppressMaxRenderedRowRestriction\",\"excludeChildrenWhenTreeDataFiltering\",\"tooltipMouseTrack\",\"tooltipInteraction\",\"keepDetailRows\",\"paginateChildRows\",\"preventDefaultOnContextMenu\",\"undoRedoCellEditing\",\"allowDragFromColumnsToolPanel\",\"pivotSuppressAutoColumn\",\"suppressExpandablePivotGroups\",\"debounceVerticalScrollbar\",\"detailRowAutoHeight\",\"serverSideFilterAllLevels\",\"serverSideSortAllLevels\",\"serverSideEnableClientSideSort\",\"serverSideOnlyRefreshFilteredGroups\",\"serverSideSortOnServer\",\"serverSideFilterOnServer\",\"suppressAggFilteredOnly\",\"showOpenedGroup\",\"suppressClipboardApi\",\"suppressModelUpdateAfterUpdateTransaction\",\"stopEditingWhenCellsLoseFocus\",\"maintainColumnOrder\",\"groupMaintainOrder\",\"columnHoverHighlight\",\"readOnlyEdit\",\"suppressRowVirtualisation\",\"enableCellEditingOnBackspace\",\"resetRowDataOnUpdate\",\"removePivotHeaderRowWhenSingleValueColumn\",\"suppressCopySingleCellRanges\",\"suppressGroupRowsSticky\",\"suppressCutToClipboard\",\"suppressServerSideInfiniteScroll\",\"rowGroupPanelSuppressSort\",\"allowShowChangeAfterFilter\",\"enableAdvancedFilter\",\"masterDetail\",\"treeData\",\"suppressGroupMaintainValueType\",\"reactiveCustomComponents\"],jR.FUNCTIONAL_PROPERTIES=[\"doesExternalFilterPass\",\"processPivotResultColDef\",\"processPivotResultColGroupDef\",\"getBusinessKeyForNode\",\"isRowSelectable\",\"rowDragText\",\"groupRowRenderer\",\"fullWidthCellRenderer\",\"loadingCellRenderer\",\"loadingOverlayComponent\",\"noRowsOverlayComponent\",\"detailCellRenderer\",\"quickFilterParser\",\"quickFilterMatcher\"],jR.CALLBACK_PROPERTIES=[\"getLocaleText\",\"isExternalFilterPresent\",\"getRowHeight\",\"getRowClass\",\"getRowStyle\",\"getContextMenuItems\",\"getMainMenuItems\",\"processRowPostCreate\",\"processCellForClipboard\",\"getGroupRowAgg\",\"isFullWidthRow\",\"sendToClipboard\",\"navigateToNextHeader\",\"tabToNextHeader\",\"navigateToNextCell\",\"tabToNextCell\",\"processCellFromClipboard\",\"getDocument\",\"postProcessPopup\",\"getChildCount\",\"getDataPath\",\"isRowMaster\",\"postSortRows\",\"processHeaderForClipboard\",\"processUnpinnedColumns\",\"processGroupHeaderForClipboard\",\"paginationNumberFormatter\",\"processDataFromClipboard\",\"getServerSideGroupKey\",\"isServerSideGroup\",\"createChartContainer\",\"getChartToolbarItems\",\"fillOperation\",\"isApplyServerSideTransaction\",\"getServerSideGroupLevelParams\",\"isServerSideGroupOpenByDefault\",\"isGroupOpenByDefault\",\"initialGroupOrderComparator\",\"groupIncludeFooter\",\"loadingCellRendererSelector\",\"getRowId\",\"groupAggFiltering\",\"chartMenuItems\"],jR.FUNCTION_PROPERTIES=[...jR.FUNCTIONAL_PROPERTIES,...jR.CALLBACK_PROPERTIES],jR.ALL_PROPERTIES=[...jR.ARRAY_PROPERTIES,...jR.OBJECT_PROPERTIES,...jR.STRING_PROPERTIES,...jR.NUMBER_PROPERTIES,...jR.FUNCTION_PROPERTIES,...jR.BOOLEAN_PROPERTIES];var UR=jR,WR=class e{static getCallbackForEvent(e){return!e||e.length<2?e:\"on\"+e[0].toUpperCase()+e.substring(1)}static getGridOptionKeys(){return this.ALL_PROPERTIES_AND_CALLBACKS}static combineAttributesAndGridOptions(t,n){\"object\"!=typeof t&&(t={});const r=TT({},t);return e.getGridOptionKeys().forEach((t=>{const i=n[t];void 0!==i&&i!==e.VUE_OMITTED_PROPERTY&&(r[t]=i)})),r}static processOnChange(t,n){if(!t)return;const r={};let i=!1;if(Object.keys(t).filter((t=>e.ALL_PROPERTIES_AND_CALLBACKS_SET.has(t))).forEach((e=>{r[e]=t[e],i=!0})),!i)return;n.__internalUpdateGridOptions(r);const o={type:CR.EVENT_COMPONENT_STATE_CHANGED};WT(r,((e,t)=>{o[e]=t})),n.dispatchEvent(o)}};WR.EVENTS=HT(CR),WR.VUE_OMITTED_PROPERTY=\"AG-VUE-OMITTED-PROPERTY\",WR.EXCLUDED_INTERNAL_EVENTS=[CR.EVENT_SCROLLBAR_WIDTH_CHANGED,CR.EVENT_CHECKBOX_CHANGED,CR.EVENT_HEIGHT_SCALE_CHANGED,CR.EVENT_BODY_HEIGHT_CHANGED,CR.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,CR.EVENT_SCROLL_VISIBILITY_CHANGED,CR.EVENT_COLUMN_HOVER_CHANGED,CR.EVENT_FLASH_CELLS,CR.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,CR.EVENT_DISPLAYED_ROWS_CHANGED,CR.EVENT_LEFT_PINNED_WIDTH_CHANGED,CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED,CR.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,CR.EVENT_STORE_UPDATED,CR.EVENT_COLUMN_PANEL_ITEM_DRAG_START,CR.EVENT_COLUMN_PANEL_ITEM_DRAG_END,CR.EVENT_FILL_START,CR.EVENT_FILL_END,CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,CR.EVENT_FULL_WIDTH_ROW_FOCUSED,CR.EVENT_HEADER_HEIGHT_CHANGED,CR.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,CR.EVENT_CELL_FOCUS_CLEARED,CR.EVENT_GRID_STYLES_CHANGED,CR.EVENT_FILTER_DESTROYED,CR.EVENT_ROW_DATA_UPDATE_STARTED,CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,CR.EVENT_DATA_TYPES_INFERRED,CR.EVENT_FIELD_VALUE_CHANGED,CR.EVENT_FIELD_PICKER_VALUE_SELECTED,CR.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,CR.EVENT_SUPPRESS_MENU_HIDE_CHANGED,CR.EVENT_SUPPRESS_FIELD_DOT_NOTATION,CR.EVENT_ROW_COUNT_READY,CR.EVENT_SIDE_BAR_UPDATED],WR.PUBLIC_EVENTS=WR.EVENTS.filter((e=>!eR(WR.EXCLUDED_INTERNAL_EVENTS,e))),WR.EVENT_CALLBACKS=WR.EVENTS.map((e=>WR.getCallbackForEvent(e))),WR.STRING_PROPERTIES=UR.STRING_PROPERTIES,WR.OBJECT_PROPERTIES=UR.OBJECT_PROPERTIES,WR.ARRAY_PROPERTIES=UR.ARRAY_PROPERTIES,WR.NUMBER_PROPERTIES=UR.NUMBER_PROPERTIES,WR.BOOLEAN_PROPERTIES=UR.BOOLEAN_PROPERTIES,WR.FUNCTION_PROPERTIES=UR.FUNCTION_PROPERTIES,WR.ALL_PROPERTIES=UR.ALL_PROPERTIES,WR.ALL_PROPERTIES_AND_CALLBACKS=[...WR.ALL_PROPERTIES,...WR.EVENT_CALLBACKS],WR.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(WR.ALL_PROPERTIES_AND_CALLBACKS);var $R=WR,YR=class extends vR{constructor(){super(...arguments),this.componentsMappedByName={}}setupComponents(e){e&&e.forEach((e=>this.addComponent(e)))}addComponent(e){const t=e.componentName.replace(/([a-z])([A-Z])/g,\"$1-$2\").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass}getComponentClass(e){return this.componentsMappedByName[e]}};YR=MT([ED(\"agStackComponentsRegistry\")],YR);var KR={};function qR(e,t,n){null==n||\"string\"==typeof n&&\"\"==n?XR(e,t):QR(e,t,n)}function QR(e,t,n){e.setAttribute(ZR(t),n.toString())}function XR(e,t){e.removeAttribute(ZR(t))}function ZR(e){return`aria-${e}`}function JR(e,t){t?e.setAttribute(\"role\",t):e.removeAttribute(\"role\")}function eM(e){let t;return t=\"asc\"===e?\"ascending\":\"desc\"===e?\"descending\":\"mixed\"===e?\"other\":\"none\",t}function tM(e){return parseInt(e.getAttribute(\"aria-level\"),10)}function nM(e){return parseInt(e.getAttribute(\"aria-posinset\"),10)}function rM(e){return e.getAttribute(\"aria-label\")}function iM(e,t){qR(e,\"label\",t)}function oM(e,t){qR(e,\"labelledby\",t)}function aM(e,t){qR(e,\"describedby\",t)}function sM(e,t){qR(e,\"live\",t)}function lM(e,t){qR(e,\"atomic\",t)}function cM(e,t){qR(e,\"relevant\",t)}function dM(e,t){qR(e,\"level\",t)}function uM(e,t){qR(e,\"disabled\",t)}function hM(e,t){qR(e,\"hidden\",t)}function pM(e,t){qR(e,\"activedescendant\",t)}function gM(e,t){QR(e,\"expanded\",t)}function fM(e){XR(e,\"expanded\")}function mM(e,t){QR(e,\"setsize\",t)}function vM(e,t){QR(e,\"posinset\",t)}function yM(e,t){QR(e,\"multiselectable\",t)}function bM(e,t){QR(e,\"rowcount\",t)}function wM(e,t){QR(e,\"rowindex\",t)}function CM(e,t){QR(e,\"colcount\",t)}function SM(e,t){QR(e,\"colindex\",t)}function EM(e,t){QR(e,\"colspan\",t)}function xM(e,t){QR(e,\"sort\",t)}function AM(e){XR(e,\"sort\")}function TM(e,t){qR(e,\"selected\",t)}function DM(e,t){QR(e,\"checked\",void 0===t?\"mixed\":t)}function RM(e,t){qR(e,\"controls\",t.id),oM(t,e.id)}function MM(e,t){return void 0===t?e(\"ariaIndeterminate\",\"indeterminate\"):!0===t?e(\"ariaChecked\",\"checked\"):e(\"ariaUnchecked\",\"unchecked\")}RT(KR,{getAriaCheckboxStateName:()=>MM,getAriaLabel:()=>rM,getAriaLevel:()=>tM,getAriaPosInSet:()=>nM,getAriaSortState:()=>eM,removeAriaExpanded:()=>fM,removeAriaSort:()=>AM,setAriaActiveDescendant:()=>pM,setAriaAtomic:()=>lM,setAriaChecked:()=>DM,setAriaColCount:()=>CM,setAriaColIndex:()=>SM,setAriaColSpan:()=>EM,setAriaControls:()=>RM,setAriaDescribedBy:()=>aM,setAriaDisabled:()=>uM,setAriaExpanded:()=>gM,setAriaHidden:()=>hM,setAriaLabel:()=>iM,setAriaLabelledBy:()=>oM,setAriaLevel:()=>dM,setAriaLive:()=>sM,setAriaMultiSelectable:()=>yM,setAriaPosInSet:()=>vM,setAriaRelevant:()=>cM,setAriaRole:()=>JR,setAriaRowCount:()=>bM,setAriaRowIndex:()=>wM,setAriaSelected:()=>TM,setAriaSetSize:()=>mM,setAriaSort:()=>xM});var OM,kM,IM,NM,PM,LM,FM,_M,zM={};function GM(){return void 0===OM&&(OM=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),OM}function VM(){if(void 0===kM)if(GM()){const e=navigator.userAgent.match(/version\\/(\\d+)/i);e&&(kM=null!=e[1]?parseFloat(e[1]):0)}else kM=0;return kM}function BM(){if(void 0===IM){const e=window;IM=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return IM}function HM(){return void 0===NM&&(NM=/(firefox)/i.test(navigator.userAgent)),NM}function jM(){return void 0===PM&&(PM=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),PM}function UM(){return void 0===LM&&(LM=/iPad|iPhone|iPod/.test(navigator.platform)||\"MacIntel\"===navigator.platform&&navigator.maxTouchPoints>1),LM}function WM(){return!GM()||VM()>=15}function $M(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute(\"tabIndex\");return-1!==t||null!==n&&(\"\"!==n||HM())?t.toString():null}function YM(){if(!document.body)return-1;let e=1e6;const t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement(\"div\");for(document.body.appendChild(n);;){const r=2*e;if(n.style.height=r+\"px\",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),e}function KM(){var e,t,n;return null!=(n=null==(e=document.body)?void 0:e.clientWidth)?n:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientWidth)||-1}function qM(){var e,t,n;return null!=(n=null==(e=document.body)?void 0:e.clientHeight)?n:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientHeight)||-1}function QM(){return null==_M&&XM(),_M}function XM(){const e=document.body,t=document.createElement(\"div\");t.style.width=t.style.height=\"100px\",t.style.opacity=\"0\",t.style.overflow=\"scroll\",t.style.msOverflowStyle=\"scrollbar\",t.style.position=\"absolute\",e.appendChild(t);let n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(_M=n,FM=0===n)}function ZM(){return null==FM&&XM(),FM}RT(zM,{browserSupportsPreventScroll:()=>WM,getBodyHeight:()=>qM,getBodyWidth:()=>KM,getMaxDivHeight:()=>YM,getSafariVersion:()=>VM,getScrollbarWidth:()=>QM,getTabIndex:()=>$M,isBrowserChrome:()=>BM,isBrowserFirefox:()=>HM,isBrowserSafari:()=>GM,isIOSUserAgent:()=>UM,isInvisibleScrollbar:()=>ZM,isMacOsUserAgent:()=>jM});var JM={};RT(JM,{dateToFormattedString:()=>dO,parseDateTimeFromString:()=>uO,serialiseDate:()=>lO});var eO={};function tO(e,t){return e.toString().padStart(t,\"0\")}function nO(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function rO(e){return\"string\"==typeof e&&(e=parseInt(e,10)),\"number\"==typeof e?Math.floor(e):null}function iO(e,t){let n=\"\";for(let r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function oO(e,t,n){return\"number\"!=typeof e?\"\":aO(Math.round(100*e)/100,t,n)}function aO(e,t,n){return\"number\"!=typeof e?\"\":e.toString().replace(\".\",n).replace(/(\\d)(?=(\\d{3})+(?!\\d))/g,`$1${t}`)}function sO(e){return null==e?null:e.reduce(((e,t)=>e+t),0)}function lO(e,t=!0,n=\"-\"){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((e=>tO(e,2))).join(n);return t&&(r+=\" \"+[e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>tO(e,2))).join(\":\")),r}RT(eO,{cleanNumber:()=>rO,createArrayOfNumbers:()=>nO,decToHex:()=>iO,formatNumberCommas:()=>aO,formatNumberTwoDecimalPlacesAndCommas:()=>oO,padStartWidthZeros:()=>tO,sum:()=>sO});var cO=e=>{if(e>3&&e<21)return\"th\";switch(e%10){case 1:return\"st\";case 2:return\"nd\";case 3:return\"rd\"}return\"th\"};function dO(e,t=\"YYYY-MM-DD\"){const n=tO(e.getFullYear(),4),r=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],i=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],o={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>r[e.getMonth()],MMM:()=>r[e.getMonth()].slice(0,3),MM:()=>tO(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${cO(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${cO(e.getDate())}`,DD:()=>tO(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${cO(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(o).join(\"|\"),\"g\");return t.replace(a,(e=>e in o?o[e]():e))}function uO(e){if(!e)return null;const[t,n]=e.split(\" \");if(!t)return null;const r=t.split(\"-\").map((e=>parseInt(e,10)));if(3!==r.filter((e=>!isNaN(e))).length)return null;const[i,o,a]=r,s=new Date(i,o-1,a);if(s.getFullYear()!==i||s.getMonth()!==o-1||s.getDate()!==a)return null;if(!n||\"00:00:00\"===n)return s;const[l,c,d]=n.split(\":\").map((e=>parseInt(e,10)));return l>=0&&l<24&&s.setHours(l),c>=0&&c<60&&s.setMinutes(c),d>=0&&d<60&&s.setSeconds(d),s}var hO,pO={};function gO(e,t,n){const r=e.parentElement;let i=r&&r.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),n&&i.classList.toggle(n,i!==e),i=i.nextSibling}RT(pO,{FOCUSABLE_EXCLUDE:()=>mO,FOCUSABLE_SELECTOR:()=>fO,addOrRemoveAttribute:()=>QO,addStylesToElement:()=>GO,bindCellRendererToHtmlElement:()=>ZO,clearElement:()=>kO,copyNodeList:()=>KO,ensureDomOrder:()=>FO,formatSize:()=>$O,getAbsoluteHeight:()=>AO,getAbsoluteWidth:()=>TO,getElementRectWithOffset:()=>DO,getElementSize:()=>SO,getInnerHeight:()=>EO,getInnerWidth:()=>xO,getScrollLeft:()=>MO,insertWithDomOrder:()=>zO,isElementChildOfClass:()=>CO,isFocusableFormField:()=>vO,isHorizontalScrollShowing:()=>VO,isInDOM:()=>NO,isNodeOrElement:()=>YO,isRtlNegativeScroll:()=>RO,isVerticalScrollShowing:()=>BO,isVisible:()=>PO,iterateNamedNodeMap:()=>qO,loadTemplate:()=>LO,nodeListForEach:()=>XO,radioCssClass:()=>gO,removeFromParent:()=>IO,setDisabled:()=>wO,setDisplayed:()=>yO,setDomChildOrder:()=>_O,setElementHeight:()=>UO,setElementWidth:()=>HO,setFixedHeight:()=>WO,setFixedWidth:()=>jO,setScrollLeft:()=>OO,setVisible:()=>bO});var fO=\"[tabindex], input, select, button, textarea, [href]\",mO=\"[disabled], .ag-disabled:not(.ag-button), .ag-disabled *\";function vO(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,\"input, select, button, textarea\"),r=t.call(e,mO),i=PO(e);return n&&!r&&i}function yO(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle(\"ag-hidden\",!t),r||hM(e,!t)}function bO(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle(\"ag-invisible\",!t),r||hM(e,!t)}function wO(e,t){const n=\"disabled\",r=t?e=>e.setAttribute(n,\"\"):e=>e.removeAttribute(n);r(e),XO(e.querySelectorAll(\"input\"),(e=>r(e)))}function CO(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,\"number\"==typeof n){if(++r>n)break}else if(e===n)break}return!1}function SO(e){const{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||\"0\"),width:parseFloat(n||\"0\"),borderTopWidth:parseFloat(r||\"0\"),borderRightWidth:parseFloat(i||\"0\"),borderBottomWidth:parseFloat(o||\"0\"),borderLeftWidth:parseFloat(a||\"0\"),paddingTop:parseFloat(s||\"0\"),paddingRight:parseFloat(l||\"0\"),paddingBottom:parseFloat(c||\"0\"),paddingLeft:parseFloat(d||\"0\"),marginTop:parseFloat(u||\"0\"),marginRight:parseFloat(h||\"0\"),marginBottom:parseFloat(p||\"0\"),marginLeft:parseFloat(g||\"0\"),boxSizing:f}}function EO(e){const t=SO(e);return\"border-box\"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function xO(e){const t=SO(e);return\"border-box\"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function AO(e){const t=SO(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function TO(e){const t=SO(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function DO(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:o}=SO(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function RO(){if(\"boolean\"==typeof hO)return hO;const e=document.createElement(\"div\");return e.style.direction=\"rtl\",e.style.width=\"1px\",e.style.height=\"1px\",e.style.position=\"fixed\",e.style.top=\"0px\",e.style.overflow=\"hidden\",e.dir=\"rtl\",e.innerHTML='<div style=\"width: 2px\">\\n            <span style=\"display: inline-block; width: 1px\"></span>\\n            <span style=\"display: inline-block; width: 1px\"></span>\\n        </div>',document.body.appendChild(e),e.scrollLeft=1,hO=0===Math.floor(e.scrollLeft),document.body.removeChild(e),hO}function MO(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n),BM()&&!RO()&&(n=e.scrollWidth-e.clientWidth-n)),n}function OO(e,t,n){n&&(RO()?t*=-1:(GM()||BM())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function kO(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function IO(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function NO(e){return!!e.offsetParent}function PO(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!NO(e)||\"visible\"!==window.getComputedStyle(e).visibility)}function LO(e){const t=document.createElement(\"div\");return t.innerHTML=(e||\"\").trim(),t.firstChild}function FO(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement(\"afterbegin\",t))}function _O(e,t){for(let n=0;n<t.length;n++){const r=t[n],i=e.children[n];i!==r&&e.insertBefore(r,i)}}function zO(e,t,n){n?n.insertAdjacentElement(\"afterend\",t):e.firstChild?e.insertAdjacentElement(\"afterbegin\",t):e.appendChild(t)}function GO(e,t){if(t)for(const[n,r]of Object.entries(t)){if(!n||!n.length||null==r)continue;const t=NR(n),i=r.toString(),o=i.replace(/\\s*!important/g,\"\"),a=o.length!=i.length?\"important\":void 0;e.style.setProperty(t,o,a)}}function VO(e){return e.clientWidth<e.scrollWidth}function BO(e){return e.clientHeight<e.scrollHeight}function HO(e,t){\"flex\"===t?(e.style.removeProperty(\"width\"),e.style.removeProperty(\"minWidth\"),e.style.removeProperty(\"maxWidth\"),e.style.flex=\"1 1 auto\"):jO(e,t)}function jO(e,t){t=$O(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function UO(e,t){\"flex\"===t?(e.style.removeProperty(\"height\"),e.style.removeProperty(\"minHeight\"),e.style.removeProperty(\"maxHeight\"),e.style.flex=\"1 1 auto\"):WO(e,t)}function WO(e,t){t=$O(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function $O(e){return\"number\"==typeof e?`${e}px`:e}function YO(e){return e instanceof Node||e instanceof HTMLElement}function KO(e){if(null==e)return[];const t=[];return XO(e,(e=>t.push(e))),t}function qO(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n];t(r.name,r.value)}}function QO(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function XO(e,t){if(null!=e)for(let n=0;n<e.length;n++)t(e[n])}function ZO(e,t){e.then((e=>{const n=e.getGui();null!=n&&(\"object\"==typeof n?t.appendChild(n):t.innerHTML=n)}))}var JO={};function ek(e,t,n){const r={},i=e.filter((e=>!t.some((t=>t===e))));return i.length>0&&i.forEach((e=>r[e]=tk(e,n).values)),r}function tk(e,t,n,r){let i=t.map(((t,n)=>({value:t,relevance:nk(e.toLowerCase(),t.toLocaleLowerCase()),idx:n})));if(i.sort(((e,t)=>t.relevance-e.relevance)),n&&(i=i.filter((e=>0!==e.relevance))),i.length>0&&r&&r>0){const e=i[0].relevance*r;i=i.filter((t=>e-t.relevance<0))}const o=[],a=[];for(const e of i)o.push(e.value),a.push(e.idx);return{values:o,indices:a}}function nk(e,t){const n=e.replace(/\\s/g,\"\"),r=t.replace(/\\s/g,\"\");let i=0,o=-1;for(let e=0;e<n.length;e++){const t=r.indexOf(n[e],o+1);-1!==t&&(o=t,i+=100-100*o/1e4*100)}return i}RT(JO,{fuzzyCheckStrings:()=>ek,fuzzySuggestions:()=>tk});var rk={};RT(rk,{createIcon:()=>ok,createIconNoSpan:()=>ak,iconNameClassMap:()=>ik});var ik={columnGroupOpened:\"expanded\",columnGroupClosed:\"contracted\",columnSelectClosed:\"tree-closed\",columnSelectOpen:\"tree-open\",columnSelectIndeterminate:\"tree-indeterminate\",columnMovePin:\"pin\",columnMoveHide:\"eye-slash\",columnMoveMove:\"arrows\",columnMoveLeft:\"left\",columnMoveRight:\"right\",columnMoveGroup:\"group\",columnMoveValue:\"aggregation\",columnMovePivot:\"pivot\",dropNotAllowed:\"not-allowed\",groupContracted:\"tree-closed\",groupExpanded:\"tree-open\",setFilterGroupClosed:\"tree-closed\",setFilterGroupOpen:\"tree-open\",setFilterGroupIndeterminate:\"tree-indeterminate\",chart:\"chart\",close:\"cross\",cancel:\"cancel\",check:\"tick\",first:\"first\",previous:\"previous\",next:\"next\",last:\"last\",linked:\"linked\",unlinked:\"unlinked\",colorPicker:\"color-picker\",groupLoading:\"loading\",menu:\"menu\",menuAlt:\"menu-alt\",filter:\"filter\",columns:\"columns\",maximize:\"maximize\",minimize:\"minimize\",menuPin:\"pin\",menuValue:\"aggregation\",menuAddRowGroup:\"group\",menuRemoveRowGroup:\"group\",clipboardCopy:\"copy\",clipboardCut:\"cut\",clipboardPaste:\"paste\",pivotPanel:\"pivot\",rowGroupPanel:\"group\",valuePanel:\"aggregation\",columnDrag:\"grip\",rowDrag:\"grip\",save:\"save\",csvExport:\"csv\",excelExport:\"excel\",smallDown:\"small-down\",smallLeft:\"small-left\",smallRight:\"small-right\",smallUp:\"small-up\",sortAscending:\"asc\",sortDescending:\"desc\",sortUnSort:\"none\",advancedFilterBuilder:\"group\",advancedFilterBuilderDrag:\"grip\",advancedFilterBuilderInvalid:\"not-allowed\",advancedFilterBuilderMoveUp:\"up\",advancedFilterBuilderMoveDown:\"down\",advancedFilterBuilderAdd:\"plus\",advancedFilterBuilderRemove:\"minus\",chartsMenuEdit:\"chart\",chartsMenuAdvancedSettings:\"settings\",chartsMenuAdd:\"plus\"};function ok(e,t,n){const r=ak(e,t,n);if(r){const{className:e}=r;if(\"string\"==typeof e&&e.indexOf(\"ag-icon\")>-1||\"object\"==typeof e&&e[\"ag-icon\"])return r}const i=document.createElement(\"span\");return i.appendChild(r),i}function ak(e,t,n,r){let i=null;const o=n&&n.getColDef().icons;if(o&&(i=o[e]),t&&!i){const n=t.get(\"icons\");n&&(i=n[e])}if(!i){const t=document.createElement(\"span\");let n=ik[e];return n||(r?n=e:(console.warn(`AG Grid: Did not find icon ${e}`),n=\"\")),t.setAttribute(\"class\",`ag-icon ag-icon-${n}`),t.setAttribute(\"unselectable\",\"on\"),JR(t,\"presentation\"),t}{let e;if(\"function\"==typeof i)e=i();else{if(\"string\"!=typeof i)throw new Error(\"icon from grid options needs to be a string or a function\");e=i}if(\"string\"==typeof e)return LO(e);if(YO(e))return e;console.warn(\"AG Grid: iconRenderer should return back a string or a dom object\")}}var sk={};RT(sk,{isDeleteKey:()=>bk,isEventFromPrintableCharacter:()=>fk,isUserSuppressingHeaderKeyboardEvent:()=>vk,isUserSuppressingKeyboardEvent:()=>mk,normaliseQwertyAzerty:()=>yk});var lk=class{};lk.BACKSPACE=\"Backspace\",lk.TAB=\"Tab\",lk.ENTER=\"Enter\",lk.ESCAPE=\"Escape\",lk.SPACE=\" \",lk.LEFT=\"ArrowLeft\",lk.UP=\"ArrowUp\",lk.RIGHT=\"ArrowRight\",lk.DOWN=\"ArrowDown\",lk.DELETE=\"Delete\",lk.F2=\"F2\",lk.PAGE_UP=\"PageUp\",lk.PAGE_DOWN=\"PageDown\",lk.PAGE_HOME=\"Home\",lk.PAGE_END=\"End\",lk.A=\"KeyA\",lk.C=\"KeyC\",lk.D=\"KeyD\",lk.V=\"KeyV\",lk.X=\"KeyX\",lk.Y=\"KeyY\",lk.Z=\"KeyZ\";var ck=65,dk=67,uk=86,hk=68,pk=90,gk=89;function fk(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function mk(e,t,n,r,i){const o=r?r.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;const a=e.addGridCommonParams({event:t,editing:i,column:r,node:n,data:n.data,colDef:r.getColDef()});return!(!o||!o(a))}function vk(e,t,n,r){const i=r.getDefinition(),o=i&&i.suppressHeaderKeyboardEvent;return!!NT(o)&&!!o(e.addGridCommonParams({colDef:i,column:r,headerRowIndex:n,event:t}))}function yk(e){const{keyCode:t}=e;let n;switch(t){case ck:n=lk.A;break;case dk:n=lk.C;break;case uk:n=lk.V;break;case hk:n=lk.D;break;case pk:n=lk.Z;break;case gk:n=lk.Y;break;default:n=e.code}return n}function bk(e,t=!1){return e===lk.DELETE||!t&&e===lk.BACKSPACE&&jM()}var wk={};function Ck(e,t,n){if(0===n)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=n}RT(wk,{areEventsNear:()=>Ck});var Sk={};function Ek(e,t){if(!e)return!1;const n=(e,n)=>{const r=t[e.id],i=t[n.id],o=void 0!==r,a=void 0!==i;return o&&a?r-i:o||a?o?1:-1:e.__objectId-n.__objectId};let r,i,o=!1;for(let t=0;t<e.length-1;t++)if(r=e[t],i=e[t+1],n(r,i)>0){o=!0;break}return!!o&&(e.sort(n),!0)}RT(Sk,{sortRowNodesByOrder:()=>Ek});var xk={};function Ak(e){const t=new Set;return e.forEach((e=>t.add(e))),t}RT(xk,{convertToSet:()=>Ak});var Tk=TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT(TT({},KR),VD),zM),JM),pO),GD),JT),JO),kT),rk),sk),PR),wk),eO),UT),Sk),xk),TR),Dk=class{constructor(e=0,t=1){this.nextValue=e,this.step=t}next(){const e=this.nextValue;return this.nextValue+=this.step,e}peek(){return this.nextValue}skip(e){this.nextValue+=e}},Rk=class e{constructor(e){this.status=0,this.resolution=null,this.waiters=[],e((e=>this.onDone(e)),(e=>this.onReject(e)))}static all(t){return new e((e=>{let n=t.length;const r=new Array(n);t.forEach(((t,i)=>{t.then((t=>{r[i]=t,n--,0===n&&e(r)}))}))}))}static resolve(t=null){return new e((e=>e(t)))}then(t){return new e((e=>{1===this.status?e(t(this.resolution)):this.waiters.push((n=>e(t(n))))}))}resolveNow(e,t){return 1===this.status?t(this.resolution):e}onDone(e){this.status=1,this.resolution=e,this.waiters.forEach((t=>t(e)))}onReject(e){console.warn(\"TBI\")}},Mk=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){const t=(e||\"\").split(\" \");if(t.length>1)t.forEach((e=>this.addCssClass(e)));else if(!0!==this.cssClassStates[e]&&e.length){const t=this.getGui();t&&t.classList.add(e),this.cssClassStates[e]=!0}}removeCssClass(e){const t=(e||\"\").split(\" \");if(t.length>1)t.forEach((e=>this.removeCssClass(e)));else if(!1!==this.cssClassStates[e]&&e.length){const t=this.getGui();t&&t.classList.remove(e),this.cssClassStates[e]=!1}}containsCssClass(e){const t=this.getGui();return!!t&&t.classList.contains(e)}addOrRemoveCssClass(e,t){if(e){if(e.indexOf(\" \")>=0){const n=(e||\"\").split(\" \");if(n.length>1)return void n.forEach((e=>this.addOrRemoveCssClass(e,t)))}if(this.cssClassStates[e]!==t&&e.length){const n=this.getGui();n&&n.classList.toggle(e,t),this.cssClassStates[e]=t}}}},Ok=class e extends vR{constructor(e,t,n,r){super(),this.parentComp=e,this.tooltipShowDelayOverride=t,this.tooltipHideDelayOverride=n,this.shouldDisplayTooltip=r,this.SHOW_QUICK_TOOLTIP_DIFF=1e3,this.FADE_OUT_TOOLTIP_TIMEOUT=1e3,this.INTERACTIVE_HIDE_DELAY=100,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}postConstruct(){this.gridOptionsService.get(\"tooltipInteraction\")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get(\"tooltipMouseTrack\");const e=this.parentComp.getGui();0===this.tooltipTrigger&&(this.addManagedListener(e,\"mouseenter\",this.onMouseEnter.bind(this)),this.addManagedListener(e,\"mouseleave\",this.onMouseLeave.bind(this))),1===this.tooltipTrigger&&(this.addManagedListener(e,\"focusin\",this.onFocusIn.bind(this)),this.addManagedListener(e,\"focusout\",this.onFocusOut.bind(this))),this.addManagedListener(e,\"mousemove\",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,\"mousedown\",this.onMouseDown.bind(this)),this.addManagedListener(e,\"keydown\",this.onKeyDown.bind(this)))}getGridOptionsTooltipDelay(e){const t=this.gridOptionsService.get(e);return t<0&&nD(`${e} should not be lower than 0`),Math.max(200,t)}getTooltipDelay(e){var t,n;return\"show\"===e?null!=(t=this.tooltipShowDelayOverride)?t:this.getGridOptionsTooltipDelay(\"tooltipShowDelay\"):null!=(n=this.tooltipHideDelayOverride)?n:this.getGridOptionsTooltipDelay(\"tooltipHideDelay\")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gridOptionsService.get(\"tooltipTrigger\");return e&&\"hover\"!==e?1:0}onMouseEnter(t){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),UM()||(e.isLocked?this.showTooltipTimeoutId=window.setTimeout((()=>{this.prepareToShowTooltip(t)}),this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(t))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&2===this.state&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){var t;const n=e.relatedTarget,r=this.parentComp.getGui(),i=null==(t=this.tooltipComp)?void 0:t.getGui();this.isInteractingWithTooltip||r.contains(n)||this.interactionEnabled&&(null==i?void 0:i.contains(n))||this.setToDoNothing()}onKeyDown(){this.setToDoNothing()}prepareToShowTooltip(t){if(0!=this.state||e.isLocked)return;let n=0;t&&(n=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay(\"show\")),this.lastMouseEvent=t||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),n),this.state=1}isLastTooltipHiddenRecently(){return(new Date).getTime()-e.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF}setToDoNothing(){2===this.state&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=TT({},this.parentComp.getTooltipParams());if(!NT(e.value)||this.shouldDisplayTooltip&&!this.shouldDisplayTooltip())return void this.setToDoNothing();this.state=2,this.tooltipInstanceCount++;const t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}hideTooltip(t){if(!t&&this.isInteractingWithTooltip)return;this.tooltipComp&&(this.destroyTooltipComp(),e.lastTooltipHideTime=(new Date).getTime());const n={type:CR.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(n),this.state=0}newTooltipComponentCallback(e,t){if(2!==this.state||this.tooltipInstanceCount!==e)return void this.getContext().destroyBean(t);const n=t.getGui();this.tooltipComp=t,n.classList.contains(\"ag-tooltip\")||n.classList.add(\"ag-tooltip-custom\"),0===this.tooltipTrigger&&n.classList.add(\"ag-tooltip-animate\"),this.interactionEnabled&&n.classList.add(\"ag-tooltip-interactive\");const r=this.localeService.getLocaleTextFunc(),i=this.popupService.addPopup({eChild:n,ariaLabel:r(\"ariaLabelTooltip\",\"Tooltip\")});i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltip(),1===this.tooltipTrigger&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,CR.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(0===this.tooltipTrigger?(this.tooltipMouseEnterListener=this.addManagedListener(n,\"mouseenter\",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(n,\"mouseleave\",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(n,\"focusin\",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(n,\"focusout\",this.onTooltipFocusOut.bind(this))||null));const o={type:CR.EVENT_TOOLTIP_SHOW,tooltipGui:n,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(o),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isInteractingWithTooltip=!1,this.lockService()}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}onTooltipFocusOut(e){var t;const n=this.parentComp.getGui(),r=null==(t=this.tooltipComp)?void 0:t.getGui(),i=e.relatedTarget;(null==r?void 0:r.contains(i))||(this.isInteractingWithTooltip=!1,n.contains(i)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:\"tooltip\",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(DT(TT({},e),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(DT(TT({},e),{eventSource:this.parentComp.getGui(),position:\"under\",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add(\"ag-tooltip-hiding\");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=0===this.tooltipTrigger?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout((()=>{e(),this.getContext().destroyBean(t)}),n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach((e=>{e&&e()})),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){e.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout((()=>{this.unlockService(),this.setToDoNothing()}),this.INTERACTIVE_HIDE_DELAY)}unlockService(){e.isLocked=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay(\"hide\"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};Ok.isLocked=!1,MT([xD(\"popupService\")],Ok.prototype,\"popupService\",2),MT([xD(\"userComponentFactory\")],Ok.prototype,\"userComponentFactory\",2),MT([CD],Ok.prototype,\"postConstruct\",1);var kk=Ok,Ik=class extends vR{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshToolTip()}setBrowserTooltip(e){const t=\"title\",n=this.ctrl.getGui();n&&(null!=e&&\"\"!=e?n.setAttribute(t,e):n.removeAttribute(t))}updateTooltipText(){this.tooltip=this.ctrl.getTooltipValue()}createTooltipFeatureIfNeeded(){var e,t,n,r;if(null!=this.tooltipManager)return;const i={getTooltipParams:()=>this.getTooltipParams(),getGui:()=>this.ctrl.getGui()};this.tooltipManager=this.createBean(new kk(i,null==(t=(e=this.ctrl).getTooltipShowDelayOverride)?void 0:t.call(e),null==(r=(n=this.ctrl).getTooltipHideDelayOverride)?void 0:r.call(n),this.ctrl.shouldDisplayTooltip),this.beans.context)}refreshToolTip(){this.browserTooltips=this.beans.gridOptionsService.get(\"enableBrowserTooltips\"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context))):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}getTooltipParams(){const e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0,hideTooltipCallback:()=>{var e;return null==(e=this.tooltipManager)?void 0:e.hideTooltip(!0)}}}getTooltipText(){return this.tooltip}destroy(){this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)),super.destroy()}};MT([xD(\"beans\")],Ik.prototype,\"beans\",2),MT([CD],Ik.prototype,\"postConstruct\",1);var Nk=new Dk,Pk=class e extends vR{constructor(e){super(),this.displayed=!0,this.visible=!0,this.compId=Nk.next(),this.cssClassManager=new Mk((()=>this.eGui)),e&&this.setTemplate(e)}preConstructOnComponent(){this.usingBrowserTooltips=this.gridOptionsService.get(\"enableBrowserTooltips\")}getCompId(){return this.compId}getTooltipParams(){return{value:this.tooltipText,location:\"UNKNOWN\"}}setTooltip(e){const{newTooltipText:t,showDelayOverride:n,hideDelayOverride:r,location:i,shouldDisplayTooltip:o}=e||{};this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.tooltipText!==t&&(this.tooltipText=t);null!=t&&(this.tooltipFeature=this.createBean(new Ik({getTooltipValue:()=>this.tooltipText,getGui:()=>this.getGui(),getLocation:()=>null!=i?i:\"UNKNOWN\",getTooltipShowDelayOverride:null!=n?()=>n:void 0,getTooltipHideDelayOverride:null!=r?()=>r:void 0,shouldDisplayTooltip:o})))}createChildComponentsFromTags(e,t){KO(e.childNodes).forEach((n=>{if(!(n instanceof HTMLElement))return;const r=this.createComponentFromElement(n,(e=>{e.getGui()&&this.copyAttributesFromNode(n,e.getGui())}),t);if(r){if(r.addItems&&n.children.length){this.createChildComponentsFromTags(n,t);const e=Array.prototype.slice.call(n.children);r.addItems(e)}this.swapComponentForNode(r,e,n)}else n.childNodes&&this.createChildComponentsFromTags(n,t)}))}createComponentFromElement(t,n,r){const i=t.nodeName,o=r?r[t.getAttribute(\"ref\")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(i);if(a){e.elementGettingCreated=t;const r=new a(o);return r.setParentComponent(this),this.createBean(r,null,n),r}return null}copyAttributesFromNode(e,t){qO(e.attributes,((e,n)=>t.setAttribute(e,n)))}swapComponentForNode(e,t,n){const r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)}swapInComponentForQuerySelectors(e,t){const n=this;this.iterateOverQuerySelectors((r=>{n[r.attributeName]===t&&(n[r.attributeName]=e)}))}iterateOverQuerySelectors(e){let t=Object.getPrototypeOf(this);for(;null!=t;){const n=t.__agComponentMetaData,r=iD(t.constructor);n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach((t=>e(t))),t=Object.getPrototypeOf(t)}}activateTabIndex(e){const t=this.gridOptionsService.get(\"tabIndex\");e||(e=[]),e.length||e.push(this.getGui()),e.forEach((e=>e.setAttribute(\"tabindex\",t.toString())))}setTemplate(e,t){const n=LO(e);this.setTemplateFromElement(n,t)}setTemplateFromElement(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)}createChildComponentsPreConstruct(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())}wireQuerySelectors(){if(!this.eGui)return;const e=this;this.iterateOverQuerySelectors((t=>{const n=n=>e[t.attributeName]=n;if(t.refSelector&&this.getAttribute(\"ref\")===t.refSelector)n(this.eGui);else{const e=this.eGui.querySelector(t.querySelector);e&&n(e.__agComponent||e)}}))}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}queryForHtmlInputElement(e){return this.eGui.querySelector(e)}appendChild(e,t){if(null!=e)if(t||(t=this.eGui),YO(e))t.appendChild(e);else{const n=e;t.appendChild(n.getGui())}}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;bO(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(t,n={}){if(t!==this.displayed){this.displayed=t;const{skipAriaHidden:r}=n;yO(this.eGui,t,{skipAriaHidden:r});const i={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc((()=>this.eGui.removeEventListener(e,t)))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}getAttribute(e){const{eGui:t}=this;return t?t.getAttribute(e):null}getRefElement(e){return this.queryForHtmlElement(`[ref=\"${e}\"]`)}};Pk.EVENT_DISPLAYED_CHANGED=\"displayedChanged\",MT([xD(\"agStackComponentsRegistry\")],Pk.prototype,\"agStackComponentsRegistry\",2),MT([wD],Pk.prototype,\"preConstructOnComponent\",1),MT([wD],Pk.prototype,\"createChildComponentsPreConstruct\",1);var Lk=Pk;function Fk(e){return _k.bind(this,`[ref=${e}]`,e)}function _k(e,t,n,r,i){null!==e?\"number\"!=typeof i?function(e,t,n){const r=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,iD(e.constructor));r[t]||(r[t]=[]),r[t].push(n)}(n,\"querySelectors\",{attributeName:r,querySelector:e,refSelector:t}):console.error(\"AG Grid: QuerySelector should be on an attribute\"):console.error(\"AG Grid: QuerySelector selector should not be null\")}var zk=class extends Lk{constructor(){super('\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\">\\n                <ag-input-text-field ref=\"eFloatingFilterText\"></ag-input-text-field>\\n            </div>')}destroy(){super.destroy()}init(e){this.params=e;const t=this.columnModel.getDisplayNameForColumn(e.column,\"header\",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${n(\"ariaFilterInput\",\"Filter Input\")}`)}onParentModelChanged(e){null!=e?this.params.parentFilterInstance((t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue(\"\")}onParamsUpdated(e){this.refresh(e)}refresh(e){this.init(e)}};MT([Fk(\"eFloatingFilterText\")],zk.prototype,\"eFloatingFilterText\",2),MT([xD(\"columnModel\")],zk.prototype,\"columnModel\",2);var Gk=class{constructor(e,t,n,r){this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then((t=>{this.alive?(this.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),this.tempValue&&t.setDate(this.tempValue),null!=this.disabled&&this.setDateCompDisabled(this.disabled))):e.destroyBean(t)}))}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e}setDisabled(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e}setDisplayed(e){yO(this.eParent,e)}setInputPlaceholder(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)}setInputAriaLabel(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)}afterGuiAttached(e){this.dateComp&&\"function\"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)}updateParams(e){var t,n;let r=!1;(null==(t=this.dateComp)?void 0:t.refresh)&&\"function\"==typeof this.dateComp.refresh&&null!==this.dateComp.refresh(e)&&(r=!0),!r&&(null==(n=this.dateComp)?void 0:n.onParamsUpdated)&&\"function\"==typeof this.dateComp.onParamsUpdated&&null!==this.dateComp.onParamsUpdated(e)&&nD(\"Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.\")}setDateCompDisabled(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)}},Vk=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach((e=>{\"string\"!=typeof e&&([[\"displayKey\"],[\"displayName\"],[\"predicate\",\"test\"]].every((t=>!!t.some((t=>null!=e[t]))||(console.warn(`AG Grid: ignoring FilterOptionDef as it doesn't contain one of '${t}'`),!1)))?this.customFilterOptions[e.displayKey]=e:this.filterOptions=this.filterOptions.filter((t=>t===e))||[])}))}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){const e=this.filterOptions[0];\"string\"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn(\"AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'\")}else console.warn(\"AG Grid: no filter options for filter\")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}},Bk={applyFilter:\"Apply\",clearFilter:\"Clear\",resetFilter:\"Reset\",cancelFilter:\"Cancel\",textFilter:\"Text Filter\",numberFilter:\"Number Filter\",dateFilter:\"Date Filter\",setFilter:\"Set Filter\",filterOoo:\"Filter...\",empty:\"Choose one\",equals:\"Equals\",notEqual:\"Does not equal\",lessThan:\"Less than\",greaterThan:\"Greater than\",inRange:\"Between\",inRangeStart:\"From\",inRangeEnd:\"To\",lessThanOrEqual:\"Less than or equal to\",greaterThanOrEqual:\"Greater than or equal to\",contains:\"Contains\",notContains:\"Does not contain\",startsWith:\"Begins with\",endsWith:\"Ends with\",blank:\"Blank\",notBlank:\"Not blank\",before:\"Before\",after:\"After\",andCondition:\"AND\",orCondition:\"OR\",dateFormatOoo:\"yyyy-mm-dd\"},Hk=class e extends vR{constructor(e,t={}){super(),this.eFocusableElement=e,this.callbacks=t,this.callbacks=TT({shouldStopEventPropagation:()=>!1,onTabKeyDown:e=>{if(e.defaultPrevented)return;const t=this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}},t)}postConstruct(){this.eFocusableElement.classList.add(e.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,\"focusin\",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,\"focusout\",this.callbacks.onFocusOut)}addKeyDownListeners(e){this.addManagedListener(e,\"keydown\",(e=>{e.defaultPrevented||cR(e)||(this.callbacks.shouldStopEventPropagation(e)?lR(e):e.key===lk.TAB?this.callbacks.onTabKeyDown(e):this.callbacks.handleKeyDown&&this.callbacks.handleKeyDown(e))}))}};Hk.FOCUS_MANAGED_CLASS=\"ag-focus-managed\",MT([xD(\"focusService\")],Hk.prototype,\"focusService\",2),MT([CD],Hk.prototype,\"postConstruct\",1);var jk=Hk,Uk=\"ag-resizer-wrapper\",Wk=`<div class=\"${Uk}\">\\n        <div ref=\"eTopLeftResizer\" class=\"ag-resizer ag-resizer-topLeft\"></div>\\n        <div ref=\"eTopResizer\" class=\"ag-resizer ag-resizer-top\"></div>\\n        <div ref=\"eTopRightResizer\" class=\"ag-resizer ag-resizer-topRight\"></div>\\n        <div ref=\"eRightResizer\" class=\"ag-resizer ag-resizer-right\"></div>\\n        <div ref=\"eBottomRightResizer\" class=\"ag-resizer ag-resizer-bottomRight\"></div>\\n        <div ref=\"eBottomResizer\" class=\"ag-resizer ag-resizer-bottom\"></div>\\n        <div ref=\"eBottomLeftResizer\" class=\"ag-resizer ag-resizer-bottomLeft\"></div>\\n        <div ref=\"eLeftResizer\" class=\"ag-resizer ag-resizer-left\"></div>\\n    </div>`,$k=class extends vR{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,n=t/2-this.getWidth()/2,r=e/2-this.getHeight()/2;this.offsetElement(n,r)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:n,width:r,minHeight:i,height:o,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const d=PO(this.element);if(d){const e=this.findBoundaryElement(),t=window.getComputedStyle(e);if(null!=t.minWidth){const n=e.offsetWidth-this.element.offsetWidth;c=parseInt(t.minWidth,10)-n}if(null!=t.minHeight){const n=e.offsetHeight-this.element.offsetHeight;l=parseInt(t.minHeight,10)-n}}if(this.minHeight=i||l,this.minWidth=n||c,r&&this.setWidth(r),o&&this.setHeight(o),r&&o||this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(d&&t){let e=this.boundaryEl,t=!0;if(e||(e=this.findBoundaryElement(),t=!1),e){const n=parseFloat(e.style.top),r=parseFloat(e.style.left);t?this.offsetElement(isNaN(r)?0:r,isNaN(n)?0:n):this.setPosition(r,n)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),\"boolean\"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((t=>{const n=!!e[t],r=this.getResizerElement(t),i={dragStartPixels:0,eElement:r,onDragStart:e=>this.onResizeStart(e,t),onDragging:this.onResize.bind(this),onDragStop:e=>this.onResizeEnd(e,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragService.addDragSource(i),this.resizeListeners.push(i),r.style.pointerEvents=\"all\"):r.style.pointerEvents=\"none\",this.resizable[t]=n)}))}removeSizeFromEl(){this.element.style.removeProperty(\"height\"),this.element.style.removeProperty(\"width\"),this.element.style.removeProperty(\"flex\")}restoreLastSize(){this.element.style.flex=\"0 0 auto\";const{height:e,width:t}=this.lastSize;-1!==t&&(this.element.style.width=`${t}px`),-1!==e&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,n=this.element;let r=!1;if(\"string\"==typeof e&&-1!==e.indexOf(\"%\"))WO(n,e),e=AO(n),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const t=this.getAvailableHeight();t&&e>t&&(e=t)}this.getHeight()!==e&&(r?(n.style.maxHeight=\"unset\",n.style.minHeight=\"unset\"):t?WO(n,e):(n.style.height=`${e}px`,n.style.flex=\"0 0 auto\",this.lastSize.height=\"number\"==typeof e?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:r.top,a=e?0:i.top;let s=0;if(t){const e=this.element.parentElement;if(e){const{bottom:t}=e.getBoundingClientRect();s=t-r.bottom}}return n+a-o-s}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let r=!1;if(\"string\"==typeof e&&-1!==e.indexOf(\"%\"))jO(t,e),e=TO(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:t}=this.offsetParent,r=n?this.position.x:this.element.getBoundingClientRect().left;t&&e+r>t&&(e=t-r)}this.getWidth()!==e&&(r?(t.style.maxWidth=\"unset\",t.style.minWidth=\"unset\"):this.config.popup?jO(t,e):(t.style.width=`${e}px`,t.style.flex=\" unset\",this.lastSize.width=\"number\"==typeof e?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:n}=this.config,r=n?this.boundaryEl:this.element;r&&(this.popupService.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(()=>{const e=this.getAvailableHeight();this.element.style.setProperty(\"max-height\",`${e}px`)})):(this.element.style.removeProperty(\"max-height\"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:n,isTop:r,anywhereWithin:i,topBuffer:o}=e,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!i,a)?0:a,movementY:this.shouldSkipY(t,!!r,o,s)?0:s}}shouldSkipX(e,t,n,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:i.left;let l=s<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=a.right;return!!l||(l=t?r<0&&e.clientX>s+o.left||r>0&&e.clientX<s+o.left:n?r<0&&e.clientX>a.right||r>0&&e.clientX<s+o.left:r<0&&e.clientX>a.right||r>0&&e.clientX<a.right,l)}shouldSkipY(e,t,n=0,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:i.top;let l=s<=0&&o.top>=e.clientY||o.bottom<=e.clientY&&o.bottom<=a.bottom;return!!l||(l=t?r<0&&e.clientY>s+o.top+n||r>0&&e.clientY<s+o.top:r<0&&e.clientY>a.bottom||r>0&&e.clientY<a.bottom,l)}createResizeMap(){const e=this.element;this.resizerMap={topLeft:{element:e.querySelector(\"[ref=eTopLeftResizer]\")},top:{element:e.querySelector(\"[ref=eTopResizer]\")},topRight:{element:e.querySelector(\"[ref=eTopRightResizer]\")},right:{element:e.querySelector(\"[ref=eRightResizer]\")},bottomRight:{element:e.querySelector(\"[ref=eBottomRightResizer]\")},bottom:{element:e.querySelector(\"[ref=eBottomResizer]\")},bottomLeft:{element:e.querySelector(\"[ref=eBottomLeftResizer]\")},left:{element:e.querySelector(\"[ref=eLeftResizer]\")}}}addResizers(){if(this.resizersAdded)return;const e=this.element;if(!e)return;const t=(new DOMParser).parseFromString(Wk,\"text/html\").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${Uk}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add(\"ag-resizing\"),this.resizerMap[t].element.classList.add(\"ag-active\");const{popup:n,forcePopupParentAsOffsetParent:r}=this.config;n||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((e=>!e.classList.contains(\"ag-hidden\"))):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(let r=0;r<e.length;r++){const i=e[r],o=!!i.style.flex&&\"0 0 auto\"!==i.style.flex;if(i===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(o){const e=window.getComputedStyle(i);e.minHeight&&(a=parseInt(e.minHeight,10)),e.minWidth&&(s=parseInt(e.minWidth,10))}else a=i.offsetHeight,s=i.offsetWidth;t+=a,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let r=0;r<n.length;r++){const i=n[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex=\"0 0 auto\",i===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty(\"height\"),t.style.removeProperty(\"min-height\"),t.style.removeProperty(\"max-height\"),t.style.flex=\"1 1 auto\")}}isResizable(){return Object.values(this.resizable).some((e=>e))}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:r,isRight:i,isBottom:o,isLeft:a}=this.currentResizer,s=i||a,l=o||r,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:a,isTop:r}),u=this.position.x,h=this.position.y;let p=0,g=0;if(s&&c){const e=a?-1:1,t=this.getWidth(),n=t+c*e;let r=!1;a&&(p=t-n,(u+p<=0||n<=this.minWidth)&&(r=!0,p=0)),r||this.setWidth(n)}if(l&&d){const e=r?-1:1,t=this.getHeight(),n=t+d*e;let i=!1;r?(g=t-n,(h+g<=0||n<=this.minHeight)&&(i=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&t<n&&this.getMinSizeOfSiblings().height+n>this.element.parentElement.offsetHeight&&(i=!0),i||this.setHeight(n)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&p||g)&&this.offsetElement(u+p,h+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove(\"ag-resizing\"),this.resizerMap[t].element.classList.remove(\"ag-active\"),this.dispatchEvent({type:\"resize\"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add(\"ag-moving\"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:n}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,n+o),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove(\"ag-moving\")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(\"static\"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}};MT([xD(\"popupService\")],$k.prototype,\"popupService\",2),MT([xD(\"resizeObserverService\")],$k.prototype,\"resizeObserverService\",2),MT([xD(\"dragService\")],$k.prototype,\"dragService\",2);var Yk=class e extends Lk{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.buttonListeners=[]}postConstruct(){this.resetTemplate(),this.createManagedBean(new jk(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new $k(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener(\"submit\",this.onFormSubmit);const n=`\\n            <form class=\"ag-filter-wrapper\">\\n                <div class=\"ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper\" ref=\"eFilterBody\">\\n                    ${this.createBodyTemplate()}\\n                </div>\\n            </form>`;this.setTemplate(n,e),t=this.getGui(),t&&t.addEventListener(\"submit\",this.onFormSubmit)}isReadOnly(){return!!this.providedFilterParams.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then((()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()}))}setParams(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.resetButtonsPanel()}updateParams(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.resetUiToActiveModel(this.getModel(),(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()}))}resetButtonsPanel(){const{buttons:e}=this.providedFilterParams,t=e&&e.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(kO(this.eButtonsPanel),this.buttonListeners.forEach((e=>null==e?void 0:e())),this.buttonListeners=[]):t&&(this.eButtonsPanel=document.createElement(\"div\"),this.eButtonsPanel.classList.add(\"ag-filter-apply-panel\")),!t)return void(this.eButtonsPanel&&IO(this.eButtonsPanel));const n=document.createDocumentFragment(),r=e=>{let t,r;switch(e){case\"apply\":t=this.translate(\"applyFilter\"),r=e=>this.onBtApply(!1,!1,e);break;case\"clear\":t=this.translate(\"clearFilter\"),r=()=>this.onBtClear();break;case\"reset\":t=this.translate(\"resetFilter\"),r=()=>this.onBtReset();break;case\"cancel\":t=this.translate(\"cancelFilter\"),r=e=>{this.onBtCancel(e)};break;default:return void console.warn(\"AG Grid: Unknown button type specified\")}const i=LO(`<button\\n                    type=\"${\"apply\"===e?\"submit\":\"button\"}\"\\n                    ref=\"${e}FilterButton\"\\n                    class=\"ag-button ag-standard-button ag-filter-apply-panel-button\"\\n                >${t}\\n                </button>`);this.buttonListeners.push(this.addManagedListener(i,\"click\",r)),n.append(i)};Ak(e).forEach((e=>r(e))),this.eButtonsPanel.append(n),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){const t=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),n=uD(this.checkApplyDebounce.bind(this),t);this.onBtApplyDebounce=()=>{this.debouncePending=!0,n()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel?this.appliedModel:null}setModel(e){return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((()=>{this.updateUiVisibility(),this.applyModel(\"api\")}))}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),(()=>{this.handleCancelEnd(e)}))}handleCancelEnd(e){this.providedFilterParams.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const n=()=>{this.onUiChanged(!1,\"prevent\"),null==t||t()};null!=e?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)}onBtClear(){this.resetUiToDefaults().then((()=>this.onUiChanged()))}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e=\"api\"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,n){if(n&&n.preventDefault(),this.applyModel(t?\"rowDataUpdated\":\"ui\")){const n=\"columnFilter\";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:n})}const{closeOnApply:r}=this.providedFilterParams;r&&this.applyActive&&!e&&!t&&this.close(n)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,n=t&&t.key;let r;\"Enter\"!==n&&\"Space\"!==n||(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const e=this.isModelValid(this.getModelFromUi()),t=this.getRefElement(\"applyFilterButton\");t&&wO(t,!e)}e&&!t||\"immediately\"===t?this.onBtApply(e):(this.applyActive||t)&&\"debounce\"!==t||this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)}refreshFilterResizer(e){if(!this.positionableFeature||\"toolPanel\"===e)return;const t=\"floatingFilter\"===e||\"columnFilter\"===e,{positionableFeature:n,gridOptionsService:r}=this;t?(n.restoreLastSize(),n.setResizable(r.get(\"enableRtl\")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)}static getDebounceMs(t,n){return e.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn(\"AG Grid: debounceMs is ignored when apply button is present\"),0):null!=t.debounceMs?t.debounceMs:n}static isUseApplyButton(e){return!!e.buttons&&e.buttons.indexOf(\"apply\")>=0}refresh(e){return this.providedFilterParams=e,!0}destroy(){const e=this.getGui();e&&e.removeEventListener(\"submit\",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.localeService.getLocaleTextFunc()(e,Bk[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}};MT([xD(\"rowModel\")],Yk.prototype,\"rowModel\",2),MT([Fk(\"eFilterBody\")],Yk.prototype,\"eFilterBody\",2),MT([CD],Yk.prototype,\"postConstruct\",1);var Kk=Yk,qk=class extends Lk{constructor(e,t){super(t),this.labelSeparator=\"\",this.labelAlignment=\"left\",this.disabled=!1,this.label=\"\",this.config=e||{}}postConstruct(){this.addCssClass(\"ag-labeled\"),this.eLabel.classList.add(\"ag-label\");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:r,disabled:i}=this.config;null!=i&&this.setDisabled(i),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){kO(this.eLabel),\"string\"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),\"\"===this.label?(yO(this.eLabel,!1),JR(this.eLabel,\"presentation\")):(yO(this.eLabel,!0),JR(this.eLabel,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){return this.eLabel.id=this.eLabel.id||`ag-${this.getCompId()}-label`,this.eLabel.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){const t=this.getGui().classList;return t.toggle(\"ag-label-align-left\",\"left\"===e),t.toggle(\"ag-label-align-right\",\"right\"===e),t.toggle(\"ag-label-align-top\",\"top\"===e),this}setLabelEllipsis(e){return this.eLabel.classList.toggle(\"ag-label-ellipsis\",e),this}setLabelWidth(e){return null==this.label||HO(this.eLabel,e),this}setDisabled(e){e=!!e;const t=this.getGui();return wO(t,e),t.classList.toggle(\"ag-disabled\",e),this.disabled=e,this}isDisabled(){return!!this.disabled}};MT([CD],qk.prototype,\"postConstruct\",1);var Qk=class extends qk{constructor(e,t,n){super(e,t),this.className=n}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=n&&this.onValueChange(n),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId();null!==rM(e)?oM(e,\"\"):oM(e,null!=t?t:\"\")}setAriaLabel(e){return iM(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListener(this,CR.EVENT_FIELD_VALUE_CHANGED,(()=>e(this.getValue()))),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return jO(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchEvent({type:CR.EVENT_FIELD_VALUE_CHANGED})),this}},Xk=class extends Qk{constructor(e){if(super(e,(null==e?void 0:e.template)||'\\n    <div class=\"ag-picker-field\" role=\"presentation\">\\n        <div ref=\"eLabel\"></div>\\n            <div ref=\"eWrapper\" class=\"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed\">\\n            <div ref=\"eDisplayField\" class=\"ag-picker-field-display\"></div>\\n            <div ref=\"eIcon\" class=\"ag-picker-field-icon\" aria-hidden=\"true\"></div>\\n        </div>\\n    </div>',null==e?void 0:e.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.ariaRole=null==e?void 0:e.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:r,minPickerWidth:i,maxPickerWidth:o}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!r,null!=n&&this.setPickerMaxHeight(n),null!=i&&this.setPickerMinWidth(i),null!=o&&this.setPickerMaxWidth(o)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute(\"id\",e);const t=this.getAriaElement();this.addManagedListener(t,\"keydown\",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,\"mousedown\",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,\"mousedown\",this.onLabelOrWrapperMouseDown.bind(this));const{pickerIcon:n,inputWidth:r}=this.config;if(n){const e=ak(n,this.gridOptionsService);e&&this.eIcon.appendChild(e)}null!=r&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute(\"tabindex\",this.gridOptionsService.get(\"tabIndex\").toString()),gM(e,!1),this.ariaRole&&JR(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&(null==e?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case lk.UP:case lk.DOWN:case lk.ENTER:case lk.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case lk.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener(\"focusin\",this.onPickerFocusIn),e.addEventListener(\"focusout\",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.gridOptionsService.getDocument(),t=this.pickerComponent.getGui();this.gridOptionsService.get(\"suppressScrollWhenPopupsAreOpen\")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL,(()=>{this.hidePicker()})));const n=this.localeService.getLocaleTextFunc(),{pickerAriaLabelKey:r,pickerAriaLabelValue:i,modalPicker:o=!0}=this.config,a={modal:o,eChild:t,closeOnEsc:!0,closedCallback:()=>{const t=e.activeElement===e.body;this.beforeHidePicker(),t&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:n(r,i)},s=this.popupService.addPopup(a),{maxPickerHeight:l,minPickerWidth:c,maxPickerWidth:d,variableWidth:u}=this;u?(c&&(t.style.minWidth=c),t.style.width=$O(TO(this.eWrapper)),d&&(t.style.maxWidth=d)):HO(t,null!=d?d:TO(this.eWrapper));const h=null!=l?l:`${EO(this.popupService.getPopupParent())}px`;return t.style.setProperty(\"max-height\",h),t.style.position=\"absolute\",this.alignPickerToComponent(),s.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerType:e}=this.config,{pickerGap:t}=this,n=this.gridOptionsService.get(\"enableRtl\")?\"right\":\"left\";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:\"under\",alignSide:n,keepWithinBounds:!0,nudgeY:t})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener(\"focusin\",this.onPickerFocusIn),e.removeEventListener(\"focusout\",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){this.isAlive()&&(gM(this.getAriaElement(),e),this.eWrapper.classList.toggle(\"ag-picker-expanded\",e),this.eWrapper.classList.toggle(\"ag-picker-collapsed\",!e))}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){var t;(null==(t=this.pickerComponent)?void 0:t.getGui().contains(e.relatedTarget))||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle(\"ag-picker-has-focus\",e)}hidePicker(){this.hideCurrentPicker&&this.hideCurrentPicker()}setInputWidth(e){return HO(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return\"number\"==typeof e&&(e=`${e}px`),this.minPickerWidth=null==e?void 0:e,this}setPickerMaxWidth(e){return\"number\"==typeof e&&(e=`${e}px`),this.maxPickerWidth=null==e?void 0:e,this}setPickerMaxHeight(e){return\"number\"==typeof e&&(e=`${e}px`),this.maxPickerHeight=null==e?void 0:e,this}destroy(){this.hidePicker(),super.destroy()}};MT([xD(\"popupService\")],Xk.prototype,\"popupService\",2),MT([Fk(\"eLabel\")],Xk.prototype,\"eLabel\",2),MT([Fk(\"eWrapper\")],Xk.prototype,\"eWrapper\",2),MT([Fk(\"eDisplayField\")],Xk.prototype,\"eDisplayField\",2),MT([Fk(\"eIcon\")],Xk.prototype,\"eIcon\",2);var Zk=class e extends Lk{constructor(e=\"default\",t=!1){super(`<div class=\"ag-list ag-${e}-list\" role=\"listbox\"></div>`),this.cssIdentifier=e,this.unFocusable=t,this.options=[],this.itemEls=[]}init(){const e=this.getGui();this.addManagedListener(e,\"mouseleave\",(()=>this.clearHighlighted())),this.unFocusable||this.addManagedListener(e,\"keydown\",this.handleKeyDown.bind(this))}handleKeyDown(e){const t=e.key;switch(t){case lk.ENTER:if(this.highlightedEl){const e=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(e)}else this.setValue(this.getValue());break;case lk.DOWN:case lk.UP:const n=t===lk.DOWN;let r;if(e.preventDefault(),this.highlightedEl){let e=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);e=Math.min(Math.max(e,0),this.itemEls.length-1),r=this.itemEls[e]}else r=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(r)}}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){const{value:t,text:n}=e,r=n||t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach((e=>{IO(e)})),this.itemEls=[]}updateIndices(){const e=this.getGui().querySelectorAll(\".ag-list-item\");e.forEach(((t,n)=>{vM(t,n+1),mM(t,e.length)}))}renderOption(e,t){const n=this.gridOptionsService.getDocument(),r=n.createElement(\"div\");JR(r,\"option\"),r.classList.add(\"ag-list-item\",`ag-${this.cssIdentifier}-list-item`);const i=n.createElement(\"span\");r.appendChild(i),i.innerText=t,this.unFocusable||(r.tabIndex=-1),this.itemEls.push(r),this.addManagedListener(r,\"mousemove\",(()=>this.highlightItem(r))),this.addManagedListener(r,\"mousedown\",(t=>{t.preventDefault(),this.setValue(e)})),this.createManagedBean(new Ik({getTooltipValue:()=>t,getGui:()=>r,getLocation:()=>\"UNKNOWN\",shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})),this.getGui().appendChild(r)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;const n=this.options.findIndex((t=>t.value===e));if(-1!==n){const e=this.options[n];this.value=e.value,this.displayValue=e.text,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex((e=>e.value===this.value));-1!==e&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(t){if(!PO(t))return;this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(e.ACTIVE_CLASS),TM(this.highlightedEl,!0);const n=this.getGui(),r=n.getBoundingClientRect(),i=r.top+n.scrollTop,o=r.height,{offsetTop:a,offsetHeight:s}=t;(a+s>i+o||a<i)&&this.highlightedEl.scrollIntoView({block:\"nearest\"}),this.unFocusable||this.highlightedEl.focus()}clearHighlighted(){this.highlightedEl&&PO(this.highlightedEl)&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),TM(this.highlightedEl,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchEvent({type:CR.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()}fireItemSelected(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})}};Zk.EVENT_ITEM_SELECTED=\"selectedItem\",Zk.ACTIVE_CLASS=\"ag-active-item\",MT([CD],Zk.prototype,\"init\",1);var Jk=Zk,eI=class e extends Xk{constructor(e){super(TT({pickerAriaLabelKey:\"ariaLabelSelectField\",pickerAriaLabelValue:\"Select Field\",pickerType:\"ag-list\",className:\"ag-select\",pickerIcon:\"smallDown\",ariaRole:\"combobox\"},e))}postConstruct(){super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gridOptionsService.get(\"tabIndex\");const{options:e,value:t,placeholder:n}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),n&&null==t&&(this.eDisplayField.textContent=n),this.addManagedListener(this.eWrapper,\"focusout\",this.onWrapperFocusOut.bind(this))}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){this.listComponent=this.createBean(new Jk(\"select\",!0)),this.listComponent.setParentComponent(this);const t=this.listComponent.getAriaElement(),n=`ag-select-list-${this.listComponent.getCompId()}`;t.setAttribute(\"id\",n),RM(this.getAriaElement(),t),this.listComponent.addManagedListener(this.listComponent,Jk.EVENT_ITEM_SELECTED,(()=>{this.hidePicker(),this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,CR.EVENT_FIELD_VALUE_CHANGED,(()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}))}createPickerComponent(){return this.listComponent}onKeyDown(e){var t;const{key:n}=e;n===lk.TAB?this.hidePicker():!this.isPickerDisplayed||n!==lk.ENTER&&n!==lk.UP&&n!==lk.DOWN?super.onKeyDown(e):null==(t=this.listComponent)||t.handleKeyDown(e)}showPicker(){this.listComponent&&(super.showPicker(),this.listComponent.refreshHighlighted())}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){var e;return null==(e=this.listComponent)||e.clearOptions(),this}setValue(e,t,n){if(this.value===e||!this.listComponent)return this;if(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue())return this;let r=this.listComponent.getDisplayValue();return null==r&&this.config.placeholder&&(r=this.config.placeholder),this.eDisplayField.innerHTML=r,this.setTooltip({newTooltipText:null!=r?r:null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth}),super.setValue(e,t)}destroy(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),super.destroy()}};eI.EVENT_ITEM_SELECTED=\"selectedItem\";var tI=eI,nI=class extends Qk{constructor(e,t,n=\"text\",r=\"input\"){super(e,`\\n            <div role=\"presentation\">\\n                <div ref=\"eLabel\" class=\"ag-input-field-label\"></div>\\n                <div ref=\"eWrapper\" class=\"ag-wrapper ag-input-wrapper\" role=\"presentation\">\\n                    <${r} ref=\"eInput\" class=\"ag-input-field-input\"></${r}>\\n                </div>\\n            </div>`,t),this.inputType=n,this.displayFieldTag=r}postConstruct(){super.postConstruct(),this.setInputType(),this.eLabel.classList.add(`${this.className}-label`),this.eWrapper.classList.add(`${this.className}-input-wrapper`),this.eInput.classList.add(`${this.className}-input`),this.addCssClass(\"ag-input-field\"),this.eInput.id=this.eInput.id||`ag-${this.getCompId()}-input`;const{inputName:e,inputWidth:t}=this.config;null!=e&&this.setInputName(e),null!=t&&this.setInputWidth(t),this.addInputListeners(),this.activateTabIndex([this.eInput])}addInputListeners(){this.addManagedListener(this.eInput,\"input\",(e=>this.setValue(e.target.value)))}setInputType(){\"input\"===this.displayFieldTag&&this.eInput.setAttribute(\"type\",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return HO(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute(\"name\",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){return this.eInput.maxLength=e,this}setInputPlaceholder(e){return QO(this.eInput,\"placeholder\",e),this}setInputAriaLabel(e){return iM(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return wO(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(!0===e)QO(this.eInput,\"autocomplete\",null);else{const t=\"string\"==typeof e?e:\"off\";QO(this.eInput,\"autocomplete\",t)}return this}};MT([Fk(\"eLabel\")],nI.prototype,\"eLabel\",2),MT([Fk(\"eWrapper\")],nI.prototype,\"eWrapper\",2),MT([Fk(\"eInput\")],nI.prototype,\"eInput\",2);var rI=class extends nI{constructor(e,t=\"ag-checkbox\",n=\"checkbox\"){super(e,t,n),this.labelAlignment=\"right\",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;\"boolean\"==typeof e&&this.setReadOnly(e),\"boolean\"==typeof t&&this.setPassive(t)}addInputListeners(){this.addManagedListener(this.eInput,\"click\",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,\"click\",this.toggle.bind(this))}getNextValue(){return void 0===this.selected||!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle(\"ag-disabled\",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle(\"ag-disabled\",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){return this.getInputElement().name=e,this}isSelected(){return this.selected}setSelected(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=\"boolean\"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,t,n){this.dispatchEvent({type:CR.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:t,event:n});const r=this.getInputElement(),i={type:CR.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:t};this.eventService.dispatchEvent(i)}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){this.eWrapper.classList.toggle(\"ag-checked\",!0===e),this.eWrapper.classList.toggle(\"ag-indeterminate\",null==e)}},iI=class extends rI{constructor(e){super(e,\"ag-radio-button\",\"radio\")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedListener(this.eventService,CR.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))}onChange(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)}},oI=class{constructor(e,t,n){this.localeService=e,this.optionsFactory=t,this.valueFormatter=n}getModelAsString(e){if(!e)return null;const t=null!=e.operator,n=this.localeService.getLocaleTextFunc();if(t){const t=e;let{conditions:r}=t;if(!r){const{condition1:e,condition2:n}=t;r=[e,n]}const i=r.map((e=>this.getModelAsString(e))),o=\"AND\"===t.operator?\"andCondition\":\"orCondition\";return i.join(` ${n(o,Bk[o])} `)}if(e.type===sI.BLANK||e.type===sI.NOT_BLANK)return n(e.type,e.type);{const t=e,r=this.optionsFactory.getCustomOption(t.type),{displayKey:i,displayName:o,numberOfInputs:a}=r||{};return i&&o&&0===a?(n(i,o),o):this.conditionToString(t,r)}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){var t;return this.valueFormatter?null!=(t=this.valueFormatter(null!=e?e:null))?t:\"\":String(e)}},aI=class e extends Kk{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(t){const n=this.optionsFactory.getCustomOption(t);if(n){const{numberOfInputs:e}=n;return null!=e?e:1}const r=[e.EMPTY,e.NOT_BLANK,e.BLANK];return t&&r.indexOf(t)>=0?0:t===e.IN_RANGE?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach(((t,n)=>{0===n?t.setValue(e,!0):t.setValue(this.optionsFactory.getDefaultOption(),!0)}))}getModelFromUi(){const e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map((e=>e.getValue()))}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?\"OR\":\"AND\"}areModelsEqual(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let i;if(n){const n=e,r=t;i=this.areSimpleModelsEqual(n,r)}else{const n=e,r=t;i=n.operator===r.operator&&jD(n.conditions,r.conditions,((e,t)=>this.areSimpleModelsEqual(e,t)))}return i}shouldRefresh(e){var t,n,r;const i=this.getModel(),o=i?null!=(t=i.conditions)?t:[i]:null,a=null!=(r=null==(n=e.filterOptions)?void 0:n.map((e=>\"string\"==typeof e?e:e.displayKey)))?r:this.getDefaultFilterOptions();return!(o&&!o.every((e=>void 0!==a.find((t=>t===e.type))))||\"number\"==typeof e.maxNumConditions&&o&&o.length>e.maxNumConditions)}refresh(e){return!!this.shouldRefresh(e)&&(!!super.refresh(e)&&(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0))}setModelIntoUi(e){if(e.operator){let t=e;t.conditions||(t.conditions=[t.condition1,t.condition2]);const n=this.validateAndUpdateConditions(t.conditions),r=this.getNumConditions();if(n<r)this.removeConditionsAndOperators(n);else if(n>r)for(let e=r;e<n;e++)this.createJoinOperatorPanel(),this.createOption();const i=\"OR\"===t.operator;this.eJoinOperatorsAnd.forEach((e=>e.setValue(!i,!0))),this.eJoinOperatorsOr.forEach((e=>e.setValue(i,!0))),t.conditions.forEach(((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)}))}else{const t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Rk.resolve()}validateAndUpdateConditions(e){let t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),nD('Filter Model contains more conditions than \"filterParams.maxNumConditions\". Additional conditions have been ignored.'),t=this.maxNumConditions),t}doesFilterPass(e){var t;const n=this.getModel();if(null==n)return!0;const{operator:r}=n,i=[];if(r){const e=n;i.push(...null!=(t=e.conditions)?t:[])}else i.push(n);return i[r&&\"OR\"===r?\"some\":\"every\"]((t=>this.individualConditionPasses(e,t)))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Vk,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute(\"tabindex\",\"-1\")}setNumConditions(e){var t,n;null!=e.suppressAndOrCondition&&nD('Since v29.2 \"filterParams.suppressAndOrCondition\" is deprecated. Use \"filterParams.maxNumConditions = 1\" instead.'),null!=e.alwaysShowBothConditions&&nD('Since v29.2 \"filterParams.alwaysShowBothConditions\" is deprecated. Use \"filterParams.numAlwaysVisibleConditions = 2\" instead.'),this.maxNumConditions=null!=(t=e.maxNumConditions)?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(nD('\"filterParams.maxNumConditions\" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!=(n=e.numAlwaysVisibleConditions)?n:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(nD('\"filterParams.numAlwaysVisibleConditions\" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(nD('\"filterParams.numAlwaysVisibleConditions\" cannot be greater than \"filterParams.maxNumConditions\".'),this.numAlwaysVisibleConditions=this.maxNumConditions)}createOption(){const e=this.createManagedBean(new tI);this.eTypes.push(e),e.addCssClass(\"ag-filter-select\"),this.eFilterBody.appendChild(e.getGui());const t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);const n=this.getNumConditions()-1;this.forEachPositionInput(n,(e=>this.resetInput(e))),this.addChangedListeners(e,n)}createJoinOperatorPanel(){const e=document.createElement(\"div\");this.eJoinOperatorPanels.push(e),e.classList.add(\"ag-filter-condition\");const t=this.createJoinOperator(this.eJoinOperatorsAnd,e,\"and\"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,\"or\");this.eFilterBody.appendChild(e);const r=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const r=this.createManagedBean(new iI);return e.push(r),r.addCssClass(\"ag-filter-condition-operator\"),r.addCssClass(`ag-filter-condition-operator-${n}`),t.appendChild(r.getGui()),r}getDefaultJoinOperator(e){return\"AND\"===e||\"OR\"===e?e:\"AND\"}createFilterListOptions(){const e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map((e=>\"string\"==typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e)))}putOptionsIntoDropdown(e){this.filterListOptions.forEach((t=>{e.addOption(t)})),e.setDisabled(this.filterListOptions.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}isAllowTwoConditions(){return this.maxNumConditions>=2}createBodyTemplate(){return\"\"}getCssIdentifier(){return\"simple-filter\"}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){var e;let t=-1,n=!0;for(let e=0;e<this.getNumConditions();e++)this.isConditionUiComplete(e)?t=e:n=!1;if(this.shouldAddNewConditionAtEnd(n))this.createJoinOperatorPanel(),this.createOption();else{const n=null!=(e=this.lastUiCompletePosition)?e:this.getNumConditions()-2;if(t<n){this.removeConditionsAndOperators(n+1);const e=t+1,r=n-e;r>0&&this.removeConditionsAndOperators(e,r),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t}updateConditionStatusesAndValues(e,t){this.eTypes.forEach(((t,n)=>{const r=this.isConditionDisabled(n,e);t.setDisabled(r||this.filterListOptions.length<=1),1===n&&(wO(this.eJoinOperatorPanels[0],r),this.eJoinOperatorsAnd[0].setDisabled(r),this.eJoinOperatorsOr[0].setDisabled(r))})),this.eConditionBodies.forEach(((e,t)=>{yO(e,this.isConditionBodyVisible(t))}));const n=\"OR\"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach(((e,t)=>{e.setValue(!n,!0)})),this.eJoinOperatorsOr.forEach(((e,t)=>{e.setValue(n,!0)})),this.forEachInput(((t,n,r,i)=>{this.setElementDisplayed(t,n<i),this.setElementDisabled(t,this.isConditionDisabled(r,e))})),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);const n=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,n,t),this.removeComponents(this.eJoinOperatorsAnd,n,t),this.removeComponents(this.eJoinOperatorsOr,n,t)}removeElements(e,t,n){this.removeItems(e,t,n).forEach((e=>IO(e)))}removeComponents(e,t,n){this.removeItems(e,t,n).forEach((e=>{IO(e.getGui()),this.destroyBean(e)}))}removeItems(e,t,n){return null==n?e.splice(t):e.splice(t,n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!(null==e?void 0:e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{const e=this.getInputs(0)[0];if(!e)return;e instanceof nI&&e.getInputElement().focus()}}afterGuiDetached(){super.afterGuiDetached();const e=this.getModel();this.resetUiToActiveModel(e);let t=-1,n=-1,r=!1;const i=this.getJoinOperator();for(let e=this.getNumConditions()-1;e>=0;e--)if(this.isConditionUiComplete(e))-1===t&&(t=e,n=e);else{const i=e<t;(e>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(e-1)||i)&&(this.removeConditionsAndOperators(e,1),r=!0,i&&n--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(n,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getPlaceholderText(e,t){let n=this.translate(e);if(oD(this.filterPlaceholder)){const e=this.filterPlaceholder,r=this.eTypes[t].getValue();n=e({filterOptionKey:r,filterOption:this.translate(r),placeholder:n})}else\"string\"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc();this.forEachInput(((t,n,r,i)=>{if(!(t instanceof nI))return;const o=0===n&&i>1?\"inRangeStart\":0===n?\"filterOoo\":\"inRangeEnd\",a=0===n&&i>1?e(\"ariaFilterFromValue\",\"Filter from value\"):0===n?e(\"ariaFilterValue\",\"Filter Value\"):e(\"ariaFilterToValue\",\"Filter to Value\");t.setInputPlaceholder(this.getPlaceholderText(o,r)),t.setInputAriaLabel(a)}))}setElementValue(e,t,n){e instanceof nI&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){e instanceof Lk&&yO(e.getGui(),t)}setElementDisabled(e,t){e instanceof Lk&&wO(e.getGui(),t)}attachElementOnChange(e,t){e instanceof nI&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach(((t,n)=>{this.forEachPositionTypeInput(n,t,e)}))}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const r=this.getNumberOfInputs(t),i=this.getInputs(e);for(let t=0;t<i.length;t++){const o=i[t];null!=o&&n(o,t,e,r)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(t){return!(t>=this.getNumConditions())&&(this.getConditionType(t)!==e.EMPTY&&!this.getValues(t).some((e=>null==e)))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((e=>this.resetType(e))),this.eJoinOperatorsAnd.forEach(((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t))),this.eJoinOperatorsOr.forEach(((e,t)=>this.resetJoinOperatorOr(e,t,this.joinOperatorId+t))),this.joinOperatorId++,this.forEachInput((e=>this.resetInput(e))),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Rk.resolve()}resetType(e){const t=this.localeService.getLocaleTextFunc()(\"ariaFilteringOperator\",\"Filtering operator\");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator(\"AND\"),this.translate(\"andCondition\"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator(\"OR\"),this.translate(\"orCondition\"),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){this.eJoinOperatorsAnd.forEach(((e,t)=>this.updateJoinOperatorDisabled(e,t))),this.eJoinOperatorsOr.forEach(((e,t)=>this.updateJoinOperatorDisabled(e,t)))}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e);this.forEachInput(((e,r,i,o)=>{i===t&&this.setElementValue(e,null!=n[r]?n[r]:null)}))}setValueFromFloatingFilter(e){this.forEachInput(((t,n,r,i)=>{this.setElementValue(t,0===n&&0===r?e:null,!0)}))}isDefaultOperator(e){return e===this.defaultJoinOperator}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(e=>{this.attachElementOnChange(e,this.listener)})))}individualConditionPasses(e,t){const n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),o=this.evaluateCustomFilter(i,r,n);return null!=o?o:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e)}evaluateCustomFilter(e,t,n){if(null==e)return;const{predicate:r}=e;return null==r||t.some((e=>null==e))?void 0:r(t,n)}isBlank(e){return null==e||\"string\"==typeof e&&0===e.trim().length}hasInvalidInputs(){return!1}};aI.EMPTY=\"empty\",aI.BLANK=\"blank\",aI.NOT_BLANK=\"notBlank\",aI.EQUALS=\"equals\",aI.NOT_EQUAL=\"notEqual\",aI.LESS_THAN=\"lessThan\",aI.LESS_THAN_OR_EQUAL=\"lessThanOrEqual\",aI.GREATER_THAN=\"greaterThan\",aI.GREATER_THAN_OR_EQUAL=\"greaterThanOrEqual\",aI.IN_RANGE=\"inRange\",aI.CONTAINS=\"contains\",aI.NOT_CONTAINS=\"notContains\",aI.STARTS_WITH=\"startsWith\",aI.ENDS_WITH=\"endsWith\";var sI=aI,lI=class e extends sI{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(t){switch(t){case e.EQUALS:case e.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case e.GREATER_THAN:case e.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case e.LESS_THAN:case e.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case e.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case e.BLANK:return!0;case e.NOT_BLANK:return!1}return!1}evaluateNonNullValue(t,n,r){const i=this.comparator(),o=null!=t[0]?i(t[0],n):0;switch(r.type){case e.EQUALS:return 0===o;case e.NOT_EQUAL:return 0!==o;case e.GREATER_THAN:return o>0;case e.GREATER_THAN_OR_EQUAL:return o>=0;case e.LESS_THAN:return o<0;case e.LESS_THAN_OR_EQUAL:return o<=0;case e.IN_RANGE:{const e=i(t[1],n);return this.scalarFilterParams.inRangeInclusive?o>=0&&e<=0:o>0&&e<0}case e.BLANK:return this.isBlank(n);case e.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter \"'+r.type+'\", it looks like the filter was configured with incorrect Filter Options'),!0}}},cI=1/0,dI=class extends oI{constructor(e,t,n){super(t,n),this.dateFilterParams=e}conditionToString(e,t){const{type:n}=e,{numberOfInputs:r}=t||{},i=n==sI.IN_RANGE||2===r,o=uO(e.dateFrom),a=uO(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;return i?`${null!==o?dO(o,s):\"null\"}-${null!==a?dO(a,s):\"null\"}`:null!=o?dO(o,s):`${n}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},uI=class e extends lI{constructor(){super(\"dateFilter\"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=cI,this.minValidDate=null,this.maxValidDate=null}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}mapValuesFromModel(e){const{dateFrom:t,dateTo:n,type:r}=e||{};return[t&&uO(t)||null,n&&uO(n)||null].slice(0,this.getNumberOfInputs(r))}comparator(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)}defaultComparator(e,t){return null==t||t<e?-1:t>e?1:0}setParams(e){this.dateFilterParams=e,super.setParams(e);const t=(t,n)=>{if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?n:Number(e[t]);console.warn(`AG Grid: DateFilter ${t} is not a number`)}return n};this.minValidYear=t(\"minValidYear\",1e3),this.maxValidYear=t(\"maxValidYear\",cI),this.minValidYear>this.maxValidYear&&console.warn(\"AG Grid: DateFilter minValidYear should be <= maxValidYear\"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:uO(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:uO(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn(\"AG Grid: DateFilter minValidDate should be <= maxValidDate\"),this.filterModelFormatter=new dI(this.dateFilterParams,this.localeService,this.optionsFactory)}createDateCompWrapper(e){const t=new Gk(this.getContext(),this.userComponentFactory,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams},e);return this.addDestroyFunc((()=>t.destroy())),t}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}getDefaultFilterOptions(){return e.DEFAULT_FILTER_OPTIONS}createValueElement(){const e=document.createElement(\"div\");return e.classList.add(\"ag-filter-body\"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,\"from\"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,\"to\"),e}createFromToElement(e,t,n,r){const i=document.createElement(\"div\");i.classList.add(`ag-filter-${r}`),i.classList.add(`ag-filter-date-${r}`),t.push(i),e.appendChild(i),n.push(this.createDateCompWrapper(i))}removeValueElements(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){this.removeItems(e,t,n).forEach((e=>e.destroy()))}isValidDateValue(e){if(null===e)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput(((n,r,i,o)=>{i!==e||!t||r>=o||(t=t&&this.isValidDateValue(n.getDate()))})),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}getFilterType(){return\"date\"}createCondition(e){const t=this.getConditionType(e),n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=lO(r[0])),r.length>1&&(n.dateTo=lO(r[1])),TT({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc(),t=this.translate(\"dateFormatOoo\"),n=e(\"ariaFilterValue\",\"Filter Value\");this.forEachInput((e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))}getInputs(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,((e,n,r,i)=>{n<i&&t.push(e.getDate())})),t}translate(e){return e===lI.LESS_THAN?super.translate(\"before\"):e===lI.GREATER_THAN?super.translate(\"after\"):super.translate(e)}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:\"\"}};uI.DEFAULT_FILTER_OPTIONS=[lI.EQUALS,lI.NOT_EQUAL,lI.LESS_THAN,lI.GREATER_THAN,lI.IN_RANGE,lI.BLANK,lI.NOT_BLANK],MT([xD(\"userComponentFactory\")],uI.prototype,\"userComponentFactory\",2);var hI=uI,pI=class extends Lk{getDefaultDebounceMs(){return 0}destroy(){super.destroy()}isEventFromFloatingFilter(e){return e&&e.afterFloatingFilter}isEventFromDataChange(e){return null==e?void 0:e.afterDataChange}getLastType(){return this.lastType}isReadOnly(){return this.readOnly}setLastTypeFromModel(e){if(!e)return void(this.lastType=this.optionsFactory.getDefaultOption());let t;t=e.operator?e.conditions[0]:e,this.lastType=t.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const t=e;return this.isTypeEditable(t.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){this.optionsFactory=new Vk,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),t||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;const n=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(n)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.setSimpleParams(e)}doesFilterHaveSingleInput(e){const t=this.optionsFactory.getCustomOption(e),{numberOfInputs:n}=t||{};return null==n||1==n}isTypeEditable(e){const t=[sI.IN_RANGE,sI.EMPTY,sI.BLANK,sI.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0}},gI=class extends pI{constructor(){super('\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\">\\n                <ag-input-text-field ref=\"eReadOnlyText\"></ag-input-text-field>\\n                <div ref=\"eDateWrapper\" style=\"display: flex;\"></div>\\n            </div>')}getDefaultFilterOptions(){return hI.DEFAULT_FILTER_OPTIONS}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new dI(this.filterParams,this.localeService,this.optionsFactory);const t=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t(\"ariaDateFilterInput\",\"Date Filter Input\"))}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){const t=e;this.dateComp.setDate(uO(t.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue(\"\")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){yO(this.eDateWrapper,e),yO(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){const e=lO(this.dateComp.getDate());this.params.parentFilterInstance((t=>{if(t){const n=uO(e);t.onFloatingFilterChanged(this.getLastType()||null,n)}}))}getDateComponentParams(){const e=Kk.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:uD(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new Gk(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc((()=>this.dateComp.destroy()))}updateDateComponent(){const e=this.gridOptionsService.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)}getFilterModelFormatter(){return this.filterModelFormatter}};MT([xD(\"userComponentFactory\")],gI.prototype,\"userComponentFactory\",2),MT([Fk(\"eReadOnlyText\")],gI.prototype,\"eReadOnlyText\",2),MT([Fk(\"eDateWrapper\")],gI.prototype,\"eDateWrapper\",2);var fI=class extends Lk{constructor(){super('\\n            <div class=\"ag-filter-filter\">\\n                <ag-input-text-field class=\"ag-date-filter\" ref=\"eDateInput\"></ag-input-text-field>\\n            </div>')}destroy(){super.destroy()}init(e){this.params=e,this.setParams(e);const t=this.gridOptionsService.getDocument(),n=this.eDateInput.getInputElement();this.addManagedListener(n,\"mousedown\",(()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||n.focus()})),this.addManagedListener(n,\"input\",(e=>{e.target===t.activeElement&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}))}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&GM(),t.type=n?\"date\":\"text\";const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:a}=e.filterParams||{};if(o&&r&&nD(\"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.\"),a&&i&&nD(\"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.\"),o&&a){const[e,t]=[o,a].map((e=>e instanceof Date?e:uO(e)));e&&t&&e.getTime()>t.getTime()&&nD(\"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.\")}o?o instanceof Date?t.min=dO(o):t.min=o:r&&(t.min=`${r}-01-01`),a?a instanceof Date?t.max=dO(a):t.max=a:i&&(t.max=`${i}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return uO(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(lO(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()}shouldUseBrowserDatePicker(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:BM()||HM()||GM()&&VM()>=14.1}};MT([Fk(\"eDateInput\")],fI.prototype,\"eDateInput\",2);var mI=class extends nI{constructor(e,t=\"ag-text-field\",n=\"text\"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){return this.eInput.value!==e&&(this.eInput.value=NT(e)?e:\"\"),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListener(this.eInput,\"keydown\",(t=>{fk(t)&&t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,\"paste\",(t=>{var n;const r=null==(n=t.clipboardData)?void 0:n.getData(\"text\");r&&r.split(\"\").some((t=>!e.test(t)))&&t.preventDefault()}))}},vI=class extends mI{constructor(e){super(e,\"ag-number-field\",\"number\")}postConstruct(){super.postConstruct(),this.addManagedListener(this.eInput,\"blur\",(()=>{const e=parseFloat(this.eInput.value),t=isNaN(e)?\"\":this.normalizeValue(e.toString());this.value!==t&&this.setValue(t)})),this.addManagedListener(this.eInput,\"wheel\",this.onWheel.bind(this)),this.eInput.step=\"any\";const{precision:e,min:t,max:n,step:r}=this.config;\"number\"==typeof e&&this.setPrecision(e),\"number\"==typeof t&&this.setMin(t),\"number\"==typeof n&&this.setMax(n),\"number\"==typeof r&&this.setStep(r)}onWheel(e){document.activeElement===this.eInput&&e.preventDefault()}normalizeValue(e){if(\"\"===e)return\"\";null!=this.precision&&(e=this.adjustPrecision(e));const t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e}adjustPrecision(e,t){if(null==this.precision)return e;if(t){const t=parseFloat(e).toFixed(this.precision);return parseFloat(t).toString()}const n=String(e).split(\".\");if(n.length>1){if(n[1].length<=this.precision)return e;if(this.precision>0)return`${n[0]}.${n[1].slice(0,this.precision)}`}return n[0]}setMin(e){return this.min===e||(this.min=e,QO(this.eInput,\"min\",e)),this}setMax(e){return this.max===e||(this.max=e,QO(this.eInput,\"max\",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,QO(this.eInput,\"step\",e)),this}setValue(e,t){return this.setValueOrInputValue((e=>super.setValue(e,t)),(()=>this),e)}setStartValue(e){return this.setValueOrInputValue((e=>super.setValue(e,!0)),(e=>{this.eInput.value=e}),e)}setValueOrInputValue(e,t,n){if(NT(n)){let r=this.isScientificNotation(n);if(r&&this.eInput.validity.valid)return e(n);if(r||(r=(n=this.adjustPrecision(n))!=this.normalizeValue(n)),r)return t(n)}return e(n)}getValue(){if(!this.eInput.validity.valid)return;const e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):super.getValue()}isScientificNotation(e){return\"string\"==typeof e&&e.includes(\"e\")}},yI=class extends oI{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type==sI.IN_RANGE||2===n?`${this.formatValue(e.filter)}-${this.formatValue(e.filterTo)}`:null!=e.filter?this.formatValue(e.filter):`${e.type}`}};function bI(e){const{allowedCharPattern:t}=null!=e?e:{};return null!=t?t:null}var wI=class e extends lI{constructor(){super(\"numberFilter\"),this.eValuesFrom=[],this.eValuesTo=[]}refresh(e){return this.numberFilterParams.allowedCharPattern===e.allowedCharPattern&&super.refresh(e)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[this.processValue(t),this.processValue(n)].slice(0,this.getNumberOfInputs(r))}getDefaultDebounceMs(){return 500}comparator(){return(e,t)=>e===t?0:e<t?1:-1}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new yI(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return e.DEFAULT_FILTER_OPTIONS}setElementValue(e,t,n){const r=!n&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(null!=t?t:null):t;super.setElementValue(e,r)}createValueElement(){const e=bI(this.numberFilterParams),t=document.createElement(\"div\");return t.classList.add(\"ag-filter-body\"),JR(t,\"presentation\"),this.createFromToElement(t,this.eValuesFrom,\"from\",e),this.createFromToElement(t,this.eValuesTo,\"to\",e),t}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new mI({allowedCharPattern:r}):new vI);i.addCssClass(`ag-filter-${n}`),i.addCssClass(\"ag-filter-filter\"),t.push(i),e.appendChild(i.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}getValues(e){const t=[];return this.forEachPositionInput(e,((e,n,r,i)=>{n<i&&t.push(this.processValue(this.stringToFloat(e.getValue())))})),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getFilterType(){return\"number\"}processValue(e){return null==e||isNaN(e)?null:e}stringToFloat(e){if(\"number\"==typeof e)return e;let t=IT(e);return null!=t&&\"\"===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||\"-\"===t.trim()?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:\"\"}hasInvalidInputs(){let e=!1;return this.forEachInput((t=>{t.getInputElement().validity.valid||(e=!0)})),e}};wI.DEFAULT_FILTER_OPTIONS=[lI.EQUALS,lI.NOT_EQUAL,lI.GREATER_THAN,lI.GREATER_THAN_OR_EQUAL,lI.LESS_THAN,lI.LESS_THAN_OR_EQUAL,lI.IN_RANGE,lI.BLANK,lI.NOT_BLANK];var CI=wI,SI=class extends oI{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type==sI.IN_RANGE||2===n?`${e.filter}-${e.filterTo}`:null!=e.filter?`${e.filter}`:`${e.type}`}},EI=class e extends sI{constructor(){super(\"textFilter\"),this.eValuesFrom=[],this.eValuesTo=[]}static trimInput(e){const t=e&&e.trim();return\"\"===t?e:t}getDefaultDebounceMs(){return 500}setParams(t){this.textFilterParams=t,super.setParams(t),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?e.DEFAULT_FORMATTER:e.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new SI(this.localeService,this.optionsFactory)}getTextMatcher(){const t=this.textFilterParams.textCustomComparator;return t?(Tk.warnOnce(\"textCustomComparator is deprecated, use textMatcher instead.\"),({filterOption:e,value:n,filterText:r})=>t(e,n,r)):this.textFilterParams.textMatcher||e.DEFAULT_MATCHER}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValuesWithSideEffects(e,!0);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getFilterType(){return\"text\"}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(t,n){const r=[];return this.forEachPositionInput(t,((t,i,o,a)=>{var s;if(i<a){let i=IT(t.getValue());n&&this.textFilterParams.trimInput&&(i=null!=(s=e.trimInput(i))?s:null,t.setValue(i,!0)),r.push(i)}})),r}getDefaultFilterOptions(){return e.DEFAULT_FILTER_OPTIONS}createValueElement(){const e=document.createElement(\"div\");return e.classList.add(\"ag-filter-body\"),JR(e,\"presentation\"),this.createFromToElement(e,this.eValuesFrom,\"from\"),this.createFromToElement(e,this.eValuesTo,\"to\"),e}createFromToElement(e,t,n){const r=this.createManagedBean(new mI);r.addCssClass(`ag-filter-${n}`),r.addCssClass(\"ag-filter-filter\"),t.push(r),e.appendChild(r.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[t||null,n||null].slice(0,this.getNumberOfInputs(r))}evaluateNullValue(e){const t=[sI.NOT_EQUAL,sI.NOT_CONTAINS,sI.BLANK];return!!e&&t.indexOf(e)>=0}evaluateNonNullValue(e,t,n,r){const i=e.map((e=>this.formatter(e)))||[],o=this.formatter(t),{api:a,colDef:s,column:l,columnApi:c,context:d,textFormatter:u}=this.textFilterParams;if(n.type===sI.BLANK)return this.isBlank(t);if(n.type===sI.NOT_BLANK)return!this.isBlank(t);const h={api:a,colDef:s,column:l,columnApi:c,context:d,node:r.node,data:r.data,filterOption:n.type,value:o,textFormatter:u};return i.some((e=>this.matcher(DT(TT({},h),{filterText:e}))))}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:\"\"}};EI.DEFAULT_FILTER_OPTIONS=[sI.CONTAINS,sI.NOT_CONTAINS,sI.EQUALS,sI.NOT_EQUAL,sI.STARTS_WITH,sI.ENDS_WITH,sI.BLANK,sI.NOT_BLANK],EI.DEFAULT_FORMATTER=e=>e,EI.DEFAULT_LOWERCASE_FORMATTER=e=>null==e?null:e.toString().toLowerCase(),EI.DEFAULT_MATCHER=({filterOption:e,value:t,filterText:n})=>{if(null==n)return!1;switch(e){case EI.CONTAINS:return t.indexOf(n)>=0;case EI.NOT_CONTAINS:return t.indexOf(n)<0;case EI.EQUALS:return t===n;case EI.NOT_EQUAL:return t!=n;case EI.STARTS_WITH:return 0===t.indexOf(n);case EI.ENDS_WITH:const e=t.lastIndexOf(n);return e>=0&&e===t.length-n.length;default:return!1}};var xI=EI,AI=class extends vR{constructor(e){super(),this.params=e,this.valueChangedListener=()=>{}}setupGui(e){var t;this.eFloatingFilterTextInput=this.createManagedBean(new mI(null==(t=this.params)?void 0:t.config));const n=this.eFloatingFilterTextInput.getGui();e.appendChild(n),this.addManagedListener(n,\"input\",(e=>this.valueChangedListener(e))),this.addManagedListener(n,\"keydown\",(e=>this.valueChangedListener(e)))}setEditable(e){this.eFloatingFilterTextInput.setDisabled(!e)}setAutoComplete(e){this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.eFloatingFilterTextInput.getValue()}setValue(e,t){this.eFloatingFilterTextInput.setValue(e,t)}setValueChangedListener(e){this.valueChangedListener=e}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)}},TI=class extends pI{postConstruct(){this.setTemplate('\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\" ref=\"eFloatingFilterInputContainer\"></div>\\n        ')}getDefaultDebounceMs(){return 500}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){var t;this.params=e;const n=null!=(t=e.browserAutoComplete)&&t;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:n}),this.applyActive=Kk.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){const e=Kk.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),t=uD(this.syncUpWithParentFilter.bind(this),e);this.floatingFilterInputService.setValueChangedListener(t)}}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const t=this.floatingFilterInputService.getValue();kO(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)}getAriaLabel(e){return`${this.columnModel.getDisplayNameForColumn(e.column,\"header\",!0)} ${this.localeService.getLocaleTextFunc()(\"ariaFilterInput\",\"Filter Input\")}`}syncUpWithParentFilter(e){const t=e.key===lk.ENTER;if(this.applyActive&&!t)return;let n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=xI.trimInput(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance((e=>{e&&e.onFloatingFilterChanged(this.getLastType()||null,n||null)}))}setEditable(e){this.floatingFilterInputService.setEditable(e)}};MT([xD(\"columnModel\")],TI.prototype,\"columnModel\",2),MT([Fk(\"eFloatingFilterInputContainer\")],TI.prototype,\"eFloatingFilterInputContainer\",2),MT([CD],TI.prototype,\"postConstruct\",1);var DI=class extends vR{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new vI),this.eFloatingFilterTextInput=this.createManagedBean(new mI),this.eFloatingFilterTextInput.setDisabled(!0);const t=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,(e=>this.valueChangedListener(e))),this.setupListeners(n,(e=>this.valueChangedListener(e)))}setEditable(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput}setValueChangedListener(e){this.valueChangedListener=e}setupListeners(e,t){this.addManagedListener(e,\"input\",t),this.addManagedListener(e,\"keydown\",t)}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)}},RI=class extends TI{init(e){var t;super.init(e),this.filterModelFormatter=new yI(this.localeService,this.optionsFactory,null==(t=e.filterParams)?void 0:t.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){bI(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return CI.DEFAULT_FILTER_OPTIONS}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=bI(e.filterParams),this.allowedCharPattern?this.createManagedBean(new AI({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new DI)}},MI=class extends TI{init(e){super.init(e),this.filterModelFormatter=new SI(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return xI.DEFAULT_FILTER_OPTIONS}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(){return this.createManagedBean(new AI)}},OI=class e{constructor(e,t=!1){this.destroyFuncs=[],this.touching=!1,this.eventService=new MD,this.eElement=e,this.preventMouseClick=t;const n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener(\"touchstart\",n,{passive:!0}),this.eElement.addEventListener(\"touchmove\",r,{passive:!0}),this.eElement.addEventListener(\"touchend\",i,{passive:!1}),this.destroyFuncs.push((()=>{this.eElement.removeEventListener(\"touchstart\",n,{passive:!0}),this.eElement.removeEventListener(\"touchmove\",r,{passive:!0}),this.eElement.removeEventListener(\"touchend\",i,{passive:!1})}))}getActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}addEventListener(e,t){this.eventService.addEventListener(e,t)}removeEventListener(e,t){this.eventService.removeEventListener(e,t)}onTouchStart(t){if(this.touching)return;this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;const n=this.touchStart;window.setTimeout((()=>{const r=this.touchStart===n;if(this.touching&&r&&!this.moved){this.moved=!0;const n={type:e.EVENT_LONG_TAP,touchStart:this.touchStart,touchEvent:t};this.eventService.dispatchEvent(n)}}),500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);t&&!Ck(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(t){if(this.touching){if(!this.moved){const t={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}}checkForDoubleTap(){const t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){const t={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(t),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t}destroy(){this.destroyFuncs.forEach((e=>e()))}};OI.EVENT_TAP=\"tap\",OI.EVENT_DOUBLE_TAP=\"doubleTap\",OI.EVENT_LONG_TAP=\"longTap\",OI.DOUBLE_TAP_MILLIS=500;var kI=OI,II=class e extends Lk{constructor(t){super(),t||this.setTemplate(e.TEMPLATE)}attachCustomElements(e,t,n,r,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=i}setupSort(e,t=!1){this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon(\"sortAscending\",this.eSortAsc,e),this.addInIcon(\"sortDescending\",this.eSortDesc,e),this.addInIcon(\"sortUnSort\",this.eSortNone,e),this.addManagedPropertyListener(\"unSortIcon\",(()=>this.updateIcons())),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateIcons())),this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,(()=>this.onSortChanged())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.onSortChanged())),this.onSortChanged())}addInIcon(e,t,n){if(null==t)return;const r=ak(e,this.gridOptionsService,n);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){const t=\"asc\"===e;yO(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){const t=\"desc\"===e;yO(this.eSortDesc,t,{skipAriaHidden:!0})}if(this.eSortNone){const t=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get(\"unSortIcon\"),n=null==e;yO(this.eSortNone,!t&&n,{skipAriaHidden:!0})}}setupMultiSortIndicator(){this.addInIcon(\"sortUnSort\",this.eSortMixed,this.column);const e=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e&&(this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,(()=>this.updateMultiSortIndicator())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.updateMultiSortIndicator())),this.updateMultiSortIndicator())}updateMultiSortIndicator(){if(this.eSortMixed){const e=\"mixed\"===this.sortController.getDisplaySortForColumn(this.column);yO(this.eSortMixed,e,{skipAriaHidden:!0})}}updateSortOrder(){var e;if(!this.eSortOrder)return;const t=this.sortController.getColumnsWithSortingOrdered(),n=null!=(e=this.sortController.getDisplaySortIndexForColumn(this.column))?e:-1,r=t.some((e=>{var t;return null!=(t=this.sortController.getDisplaySortIndexForColumn(e))&&t})),i=n>=0&&r;yO(this.eSortOrder,i,{skipAriaHidden:!0}),n>=0?this.eSortOrder.textContent=(n+1).toString():kO(this.eSortOrder)}};II.TEMPLATE='<span class=\"ag-sort-indicator-container\">\\n            <span ref=\"eSortOrder\" class=\"ag-sort-indicator-icon ag-sort-order ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortAsc\" class=\"ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortDesc\" class=\"ag-sort-indicator-icon ag-sort-descending-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortMixed\" class=\"ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortNone\" class=\"ag-sort-indicator-icon ag-sort-none-icon ag-hidden\" aria-hidden=\"true\"></span>\\n        </span>',MT([Fk(\"eSortOrder\")],II.prototype,\"eSortOrder\",2),MT([Fk(\"eSortAsc\")],II.prototype,\"eSortAsc\",2),MT([Fk(\"eSortDesc\")],II.prototype,\"eSortDesc\",2),MT([Fk(\"eSortMixed\")],II.prototype,\"eSortMixed\",2),MT([Fk(\"eSortNone\")],II.prototype,\"eSortNone\",2),MT([xD(\"columnModel\")],II.prototype,\"columnModel\",2),MT([xD(\"sortController\")],II.prototype,\"sortController\",2);var NI=II,PI=class e extends Lk{constructor(){super(...arguments),this.lastMovingChanged=0}destroy(){super.destroy()}refresh(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&this.shouldSuppressMenuHide()==this.currentSuppressMenuHide&&(this.setDisplayName(e),!0)}workOutTemplate(){var t;let n=null!=(t=this.params.template)?t:e.TEMPLATE;return n=n&&n.trim?n.trim():n,n}init(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)}setDisplayName(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;const t=kR(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}}addInIcon(e,t,n){if(null==t)return;const r=ak(e,this.gridOptionsService,n);r&&t.appendChild(r)}setupTap(){const{gridOptionsService:e}=this;if(e.get(\"suppressTouch\"))return;const t=new kI(this.getGui(),!0),n=this.shouldSuppressMenuHide(),r=n&&NT(this.eMenu),i=r?new kI(this.eMenu,!0):t;if(this.params.enableMenu){const e=r?\"EVENT_TAP\":\"EVENT_LONG_TAP\",t=e=>this.params.showColumnMenuAfterMouseClick(e.touchStart);this.addManagedListener(i,kI[e],t)}if(this.params.enableSorting){const e=e=>{var t,r;const i=e.touchStart.target;n&&((null==(t=this.eMenu)?void 0:t.contains(i))||(null==(r=this.eFilterButton)?void 0:r.contains(i)))||this.sortController.progressSort(this.params.column,!1,\"uiColumnSorted\")};this.addManagedListener(t,kI.EVENT_TAP,e)}if(this.params.enableFilterButton){const e=new kI(this.eFilterButton,!0);this.addManagedListener(e,\"tap\",(()=>this.params.showFilter(this.eFilterButton))),this.addDestroyFunc((()=>e.destroy()))}this.addDestroyFunc((()=>t.destroy())),r&&this.addDestroyFunc((()=>i.destroy()))}workOutShowMenu(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return IO(this.eMenu),void(this.eMenu=void 0);const e=this.menuService.isLegacyMenuEnabled();this.addInIcon(e?\"menu\":\"menuAlt\",this.eMenu,this.params.column),this.eMenu.classList.toggle(\"ag-header-menu-icon\",!e),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,\"click\",(()=>this.params.showColumnMenu(this.eMenu))),this.eMenu.classList.toggle(\"ag-header-menu-always-show\",this.currentSuppressMenuHide)}onMenuKeyboardShortcut(e){var t,n,r,i;const{column:o}=this.params,a=this.menuService.isLegacyMenuEnabled();if(e&&!a){if(this.menuService.isFilterMenuInHeaderEnabled(o))return this.params.showFilter(null!=(n=null!=(t=this.eFilterButton)?t:this.eMenu)?n:this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu(null!=(i=null!=(r=this.eMenu)?r:this.eFilterButton)?i:this.getGui()),!0;return!1}workOutSort(){return this.params.enableSorting}setupSort(){if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new NI(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!this.currentSort)return;this.addManagedListener(this.params.column,LD.EVENT_MOVING_CHANGED,(()=>{this.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,\"click\",(e=>{const t=this.params.column.isMoving(),n=(new Date).getTime()-this.lastMovingChanged<50;if(!t&&!n){const t=\"ctrl\"===this.gridOptionsService.get(\"multiSortKey\")?e.ctrlKey||e.metaKey:e.shiftKey;this.params.progressSort(t)}}));const e=()=>{if(this.addOrRemoveCssClass(\"ag-header-cell-sorted-asc\",this.params.column.isSortAscending()),this.addOrRemoveCssClass(\"ag-header-cell-sorted-desc\",this.params.column.isSortDescending()),this.addOrRemoveCssClass(\"ag-header-cell-sorted-none\",this.params.column.isSortNone()),this.params.column.getColDef().showRowGroup){const e=this.columnModel.getSourceColumnsForGroupColumn(this.params.column),t=!(null==e?void 0:e.every((e=>this.params.column.getSort()==e.getSort())));this.addOrRemoveCssClass(\"ag-header-cell-sorted-mixed\",t)}};this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,e)}setupFilterIcon(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))}setupFilterButton(){this.eFilterButton&&(this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this))?this.addManagedListener(this.eFilterButton,\"click\",(()=>this.params.showFilter(this.eFilterButton))):this.eFilterButton=void 0)}configureFilter(e,t,n){if(!e)return IO(t),!1;const{column:r}=this.params;return this.addInIcon(\"filter\",t,r),this.addManagedListener(r,LD.EVENT_FILTER_CHANGED,n),n(),!0}onFilterChangedIcon(){const e=this.params.column.isFilterActive();yO(this.eFilter,e,{skipAriaHidden:!0})}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle(\"ag-filter-active\",e)}getAnchorElementForMenu(e){var t,n,r,i;return e?null!=(n=null!=(t=this.eFilterButton)?t:this.eMenu)?n:this.getGui():null!=(i=null!=(r=this.eMenu)?r:this.eFilterButton)?i:this.getGui()}};PI.TEMPLATE='<div class=\"ag-cell-label-container\" role=\"presentation\">\\n            <span ref=\"eMenu\" class=\"ag-header-icon ag-header-cell-menu-button\" aria-hidden=\"true\"></span>\\n            <span ref=\"eFilterButton\" class=\"ag-header-icon ag-header-cell-filter-button\" aria-hidden=\"true\"></span>\\n            <div ref=\"eLabel\" class=\"ag-header-cell-label\" role=\"presentation\">\\n                <span ref=\"eText\" class=\"ag-header-cell-text\"></span>\\n                <span ref=\"eFilter\" class=\"ag-header-icon ag-header-label-icon ag-filter-icon\" aria-hidden=\"true\"></span>\\n                <ag-sort-indicator ref=\"eSortIndicator\"></ag-sort-indicator>\\n            </div>\\n        </div>',MT([xD(\"sortController\")],PI.prototype,\"sortController\",2),MT([xD(\"menuService\")],PI.prototype,\"menuService\",2),MT([xD(\"columnModel\")],PI.prototype,\"columnModel\",2),MT([Fk(\"eFilter\")],PI.prototype,\"eFilter\",2),MT([Fk(\"eFilterButton\")],PI.prototype,\"eFilterButton\",2),MT([Fk(\"eSortIndicator\")],PI.prototype,\"eSortIndicator\",2),MT([Fk(\"eMenu\")],PI.prototype,\"eMenu\",2),MT([Fk(\"eLabel\")],PI.prototype,\"eLabel\",2),MT([Fk(\"eText\")],PI.prototype,\"eText\",2),MT([Fk(\"eSortOrder\")],PI.prototype,\"eSortOrder\",2),MT([Fk(\"eSortAsc\")],PI.prototype,\"eSortAsc\",2),MT([Fk(\"eSortDesc\")],PI.prototype,\"eSortDesc\",2),MT([Fk(\"eSortMixed\")],PI.prototype,\"eSortMixed\",2),MT([Fk(\"eSortNone\")],PI.prototype,\"eSortNone\",2);var LI=PI,FI=class e extends Lk{constructor(){super(e.TEMPLATE)}destroy(){super.destroy()}init(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()}checkWarnings(){this.params.template&&nD(\"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)\")}setupExpandIcons(){this.addInIcon(\"columnGroupOpened\",\"agOpened\"),this.addInIcon(\"columnGroupClosed\",\"agClosed\");const e=e=>{if(cR(e))return;const t=!this.params.columnGroup.isExpanded();this.columnModel.setColumnGroupOpened(this.params.columnGroup.getProvidedColumnGroup(),t,\"uiColumnExpanded\")};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);const t=e=>{lR(e)};this.addManagedListener(this.eCloseIcon,\"dblclick\",t),this.addManagedListener(this.eOpenIcon,\"dblclick\",t),this.addManagedListener(this.getGui(),\"dblclick\",e),this.updateIconVisibility();const n=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(n,_D.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,_D.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))}addTouchAndClickListeners(e,t){const n=new kI(e,!0);this.addManagedListener(n,kI.EVENT_TAP,t),this.addDestroyFunc((()=>n.destroy())),this.addManagedListener(e,\"click\",t)}updateIconVisibility(){if(this.params.columnGroup.isExpandable()){const e=this.params.columnGroup.isExpanded();yO(this.eOpenIcon,e),yO(this.eCloseIcon,!e)}else yO(this.eOpenIcon,!1),yO(this.eCloseIcon,!1)}addInIcon(e,t){const n=ak(e,this.gridOptionsService,null);n&&this.getRefElement(t).appendChild(n)}addGroupExpandIcon(){if(!this.params.columnGroup.isExpandable())return yO(this.eOpenIcon,!1),void yO(this.eCloseIcon,!1)}setupLabel(){var e;const{displayName:t,columnGroup:n}=this.params;if(NT(t)){const e=kR(t,!0);this.getRefElement(\"agLabel\").textContent=e}this.addOrRemoveCssClass(\"ag-sticky-label\",!(null==(e=n.getColGroupDef())?void 0:e.suppressStickyLabel))}};FI.TEMPLATE='<div class=\"ag-header-group-cell-label\" ref=\"agContainer\" role=\"presentation\">\\n            <span ref=\"agLabel\" class=\"ag-header-group-text\" role=\"presentation\"></span>\\n            <span ref=\"agOpened\" class=\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded\"></span>\\n            <span ref=\"agClosed\" class=\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed\"></span>\\n        </div>',MT([xD(\"columnModel\")],FI.prototype,\"columnModel\",2),MT([Fk(\"agOpened\")],FI.prototype,\"eOpenIcon\",2),MT([Fk(\"agClosed\")],FI.prototype,\"eCloseIcon\",2);var _I=FI,zI=class extends Lk{isPopup(){return!0}setParentComponent(e){e.addCssClass(\"ag-has-popup\"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove(\"ag-has-popup\"),super.destroy()}},GI=class e extends zI{constructor(){super(e.TEMPLATE)}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),NT(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener(\"keydown\",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===lk.LEFT||t===lk.UP||t===lk.RIGHT||t===lk.DOWN||e.shiftKey&&t===lk.ENTER)&&e.stopPropagation()}afterGuiAttached(){const e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e(\"ariaInputEditor\",\"Input Editor\")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){const e=this.eTextArea.getValue();return NT(e)||NT(this.params.value)?this.params.parseValue(e):this.params.value}};GI.TEMPLATE='<div class=\"ag-large-text\">\\n            <ag-input-text-area ref=\"eTextArea\" class=\"ag-large-text-input\"></ag-input-text-area>\\n        </div>',MT([Fk(\"eTextArea\")],GI.prototype,\"eTextArea\",2);var VI=GI,BI=class extends zI{constructor(){super('<div class=\"ag-cell-edit-wrapper\">\\n                <ag-select class=\"ag-cell-editor\" ref=\"eSelect\"></ag-select>\\n            </div>'),this.startedByEnter=!1}init(e){this.focusAfterAttached=e.cellStartedEdit;const{eSelect:t,valueFormatterService:n,gridOptionsService:r}=this,{values:i,value:o,eventKey:a}=e;if(PT(i))return void console.warn(\"AG Grid: no values found for select cellEditor\");this.startedByEnter=null!=a&&a===lk.ENTER;let s=!1;i.forEach((r=>{const i={value:r},a=n.formatValue(e.column,null,r),l=null!=a;i.text=l?a:r,t.addOption(i),s=s||o===r})),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;null!=l&&t.setPickerGap(l),null!=d&&t.setPickerMaxHeight(d),null!=c&&t.setPickerMaxWidth(c),\"fullRow\"!==r.get(\"editType\")&&this.addManagedListener(this.eSelect,tI.EVENT_ITEM_SELECTED,(()=>e.stopEditing()))}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((()=>{this.isAlive()&&this.eSelect.showPicker()}))}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}};MT([xD(\"valueFormatterService\")],BI.prototype,\"valueFormatterService\",2),MT([Fk(\"eSelect\")],BI.prototype,\"eSelect\",2);var HI=class extends zI{constructor(e){super(`\\n            <div class=\"ag-cell-edit-wrapper\">\\n                ${e.getTemplate()}\\n            </div>`),this.cellEditorInput=e}init(e){this.params=e;const t=this.eInput;let n;if(this.cellEditorInput.init(t,e),e.cellStartedEdit){this.focusAfterAttached=!0;const t=e.eventKey;t===lk.BACKSPACE||e.eventKey===lk.DELETE?n=\"\":t&&1===t.length?n=t:(n=this.cellEditorInput.getStartValue(),t!==lk.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,n=this.cellEditorInput.getStartValue();null!=n&&t.setStartValue(n),this.addManagedListener(t.getGui(),\"keydown\",(e=>{const{key:t}=e;t!==lk.PAGE_UP&&t!==lk.PAGE_DOWN||e.preventDefault()}))}afterGuiAttached(){var e,t;const n=this.localeService.getLocaleTextFunc(),r=this.eInput;if(r.setInputAriaLabel(n(\"ariaInputEditor\",\"Input Editor\")),!this.focusAfterAttached)return;GM()||r.getFocusableElement().focus();const i=r.getInputElement();this.highlightAllOnFocus?i.select():null==(t=(e=this.cellEditorInput).setCaret)||t.call(e)}focusIn(){const e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}};MT([Fk(\"eInput\")],HI.prototype,\"eInput\",2);var jI=class{getTemplate(){return'<ag-input-text-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-text-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.maxLength&&e.setMaxLength(t.maxLength)}getValue(){const e=this.eInput.getValue();return NT(e)||NT(this.params.value)?this.params.parseValue(e):this.params.value}getStartValue(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value}setCaret(){const e=this.eInput.getValue(),t=NT(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)}},UI=class extends HI{constructor(){super(new jI)}},WI=class extends Lk{constructor(){super(),this.refreshCount=0;const e=document.createElement(\"span\"),t=document.createElement(\"span\");t.setAttribute(\"class\",\"ag-value-change-delta\");const n=document.createElement(\"span\");n.setAttribute(\"class\",\"ag-value-change-value\"),e.appendChild(t),e.appendChild(n),this.setTemplateFromElement(e)}init(e){this.eValue=this.queryForHtmlElement(\".ag-value-change-value\"),this.eDelta=this.queryForHtmlElement(\".ag-value-change-delta\"),this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),r=e.formatValue(n),i=NT(r)?r:n,o=t>=0;this.eDelta.textContent=o?\"↑\"+i:\"↓\"+i,this.eDelta.classList.toggle(\"ag-value-change-delta-up\",o),this.eDelta.classList.toggle(\"ag-value-change-delta-down\",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.hideDeltaValue()}),2e3)}))}hideDeltaValue(){this.eValue.classList.remove(\"ag-value-change-value-highlight\"),kO(this.eDelta)}refresh(e,t=!1){const n=e.value;if(n===this.lastValue)return!1;if(NT(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:NT(e.value)?this.eValue.textContent=n:kO(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if(\"number\"==typeof n&&\"number\"==typeof this.lastValue){const t=n-this.lastValue;this.showDelta(e,t)}return this.lastValue&&this.eValue.classList.add(\"ag-value-change-value-highlight\"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}};MT([xD(\"filterManager\")],WI.prototype,\"filterManager\",2);var $I=class extends Lk{constructor(){super(),this.refreshCount=0;const e=document.createElement(\"span\"),t=document.createElement(\"span\");t.setAttribute(\"class\",\"ag-value-slide-current\"),e.appendChild(t),this.setTemplateFromElement(e),this.eCurrent=this.queryForHtmlElement(\".ag-value-slide-current\")}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const t=document.createElement(\"span\");t.setAttribute(\"class\",\"ag-value-slide-previous ag-value-slide-out\"),this.ePrevious=t,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.ePrevious.classList.add(\"ag-value-slide-out-end\")}),50),window.setTimeout((()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)}),3e3)}))}refresh(e,t=!1){let n=e.value;return PT(n)&&(n=\"\"),n!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(t||this.addSlideAnimation(),this.lastValue=n,NT(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:NT(e.value)?this.eCurrent.textContent=n:kO(this.eCurrent),!0)}};MT([xD(\"filterManager\")],$I.prototype,\"filterManager\",2);var YI=class e{constructor(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(r)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(t,n,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:r}}createLocalRowEvent(e){return{type:e,node:this}}getRowIndexString(){return\"top\"===this.rowPinned?\"t-\"+this.rowIndex:\"bottom\"===this.rowPinned?\"b-\"+this.rowIndex:this.rowIndex.toString()}createDaemonNode(){const t=new e(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t}setDataAndId(e,t){const n=NT(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,n);const i=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(i)}checkRowSelectable(){const e=this.beans.gridOptionsService.get(\"isRowSelectable\");this.setRowSelectable(!e||e(this))}setRowSelectable(t,n){if(this.selectable!==t){if(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),n)return;if(this.beans.gridOptionsService.get(\"groupSelectsChildren\")){const e=this.calculateSelectedFromChildren();return void this.setSelectedParams({newValue:null!=e&&e,source:\"selectableChanged\"})}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:\"selectableChanged\"})}}setId(t){const n=this.beans.gridOptionsService.getCallback(\"getRowId\");if(n)if(this.data){const t=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:t.length>0?t:void 0,level:this.level}),null!==this.id&&\"string\"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error(`AG Grid: Row IDs cannot start with ${e.ID_PREFIX_ROW_GROUP}, this is a reserved prefix for AG Grid's row grouping feature.`),null!==this.id&&\"string\"!=typeof this.id&&(this.id=\"\"+this.id)}else this.id=void 0;else this.id=t}getGroupKeys(e=!1){const t=[];let n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t}isPixelInRange(e){return!(!NT(this.rowTop)||!NT(this.rowHeight))&&e>=this.rowTop&&e<this.rowTop+this.rowHeight}setFirstChild(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))}setLastChild(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))}setChildIndex(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))}setRowTop(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setDisplayed(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))}setDragging(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))}setHighlighted(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))}setHovered(e){this.hovered!==e&&(this.hovered=e)}isHovered(){return this.hovered}setAllChildrenCount(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))}setMaster(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))}setGroup(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))}setRowHeight(t,n=!1){this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))}setRowAutoHeight(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=uD(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())}checkAutoHeights(){let e=!1,t=!0,n=0;const r=this.__autoHeights;if(null==r)return;if(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((i=>{let o=r[i.getId()];if(null==o){if(!this.beans.columnModel.isColSpanActive())return void(e=!0);{let t=[];switch(i.getPinned()){case\"left\":t=this.beans.columnModel.getDisplayedLeftColumnsForRow(this);break;case\"right\":t=this.beans.columnModel.getDisplayedRightColumnsForRow(this);break;case null:t=this.beans.columnModel.getViewportCenterColumnsForRow(this)}if(t.includes(i))return void(e=!0);o=-1}}else t=!1;o>n&&(n=o)})),e)return;if((t||n<10)&&(n=this.beans.gridOptionsService.getRowHeightForNode(this).height),n==this.rowHeight)return;this.setRowHeight(n);const i=this.beans.rowModel;i.onRowHeightChangedDebounced&&i.onRowHeightChangedDebounced()}setRowIndex(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))}setUiLevel(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))}setExpanded(t,n){if(this.expanded===t)return;this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));const r=Object.assign({},this.createGlobalRowEvent(CR.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}createGlobalRowEvent(e){return this.beans.gridOptionsService.addGridCommonParams({type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})}dispatchLocalEvent(e){this.eventService&&this.eventService.dispatchEvent(e)}setDataValue(e,t,n){const r=(()=>{var t;return\"string\"!=typeof e?e:null!=(t=this.beans.columnModel.getGridColumn(e))?t:this.beans.columnModel.getPrimaryColumn(e)})(),i=this.getValueFromValueService(r);if(this.beans.gridOptionsService.get(\"readOnlyEdit\"))return this.dispatchEventForSaveValueReadOnly(r,i,t,n),!1;const o=this.beans.valueService.setValue(this,r,t,n);return this.dispatchCellChangedEvent(r,t,i),this.checkRowSelectable(),o}getValueFromValueService(e){const t=this.leafGroup&&this.beans.columnModel.isPivotMode(),n=this.group&&this.expanded&&!this.footer&&!t,r=this.beans.gridOptionsService.getGroupIncludeFooter()({node:this}),i=this.beans.gridOptionsService.get(\"groupSuppressBlankHeader\"),o=n&&r&&!i;return this.beans.valueService.getValue(e,this,!1,o)}dispatchEventForSaveValueReadOnly(e,t,n,r){const i=this.beans.gridOptionsService.addGridCommonParams({type:CR.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),data:this.data,node:this,oldValue:t,newValue:n,value:n,source:r});this.beans.eventService.dispatchEvent(i)}setGroupValue(e,t){const n=this.beans.columnModel.getGridColumn(e);PT(this.groupData)&&(this.groupData={});const r=n.getColId(),i=this.groupData[r];i!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(n,t,i))}setAggData(e){const t=this.aggData;if(this.aggData=e,this.eventService){const n=e=>{const n=this.aggData?this.aggData[e]:void 0,r=t?t[e]:void 0;if(n===r)return;const i=this.beans.columnModel.lookupGridColumn(e);i&&this.dispatchCellChangedEvent(i,n,r)};for(const e in this.aggData)n(e);for(const t in e)t in this.aggData||n(t)}}updateHasChildren(){let t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType(\"serverSide\")){const e=this.beans.gridOptionsService.get(\"treeData\"),n=this.beans.gridOptionsService.get(\"isServerSideGroup\");t=!this.stub&&!this.footer&&(e?!!n&&n(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}isEmptyRowGroupNode(){return this.group&&LT(this.childrenAfterGroup)}dispatchCellChangedEvent(t,n,r){const i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:r};this.dispatchLocalEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return!this.footer&&(this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master)}isSelected(){return this.footer?this.sibling.isSelected():this.selected}depthFirstSearch(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((t=>t.depthFirstSearch(e))),e(this)}calculateSelectedFromChildren(){var e;let t=!1,n=!1,r=!1;if(!(null==(e=this.childrenAfterGroup)?void 0:e.length))return this.selectable?this.selected:null;for(let e=0;e<this.childrenAfterGroup.length;e++){const i=this.childrenAfterGroup[e];let o=i.isSelected();if(!i.selectable){const e=i.calculateSelectedFromChildren();if(null===e)continue;o=e}switch(o){case!0:t=!0;break;case!1:n=!0;break;default:r=!0}}return r||t&&n?void 0:!!t||!n&&(this.selectable?this.selected:null)}setSelectedInitialValue(e){this.selected=e}selectThisNode(t,n,r=\"api\"){const i=!this.selectable&&t,o=this.selected===t;if(i||o)return!1;if(this.selected=t,this.eventService){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));const t=this.sibling;t&&t.footer&&t.dispatchLocalEvent(t.createLocalRowEvent(e.EVENT_ROW_SELECTED))}const a=DT(TT({},this.createGlobalRowEvent(CR.EVENT_ROW_SELECTED)),{event:n||null,source:r});return this.beans.eventService.dispatchEvent(a),!0}setSelected(e,t=!1,n=\"api\"){\"boolean\"!=typeof n?this.setSelectedParams({newValue:e,clearSelection:t,rangeSelect:!1,source:n}):console.warn(\"AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.\")}setSelectedParams(e){return this.rowPinned?(console.warn(\"AG Grid: cannot select pinned rows\"),0):void 0===this.id?(console.warn(\"AG Grid: cannot select node until id for node is known\"),0):this.beans.selectionService.setNodesSelected(DT(TT({},e),{nodes:[this.footer?this.sibling:this]}))}isRowPinned(){return\"top\"===this.rowPinned||\"bottom\"===this.rowPinned}isParentOfNode(e){let t=this.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}addEventListener(e,t){var n,r;this.eventService||(this.eventService=new MD),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new OD(this.beans.frameworkOverrides));const i=null!=(r=null==(n=this.frameworkEventListenerService)?void 0:n.wrap(t))?r:t;this.eventService.addEventListener(e,i)}removeEventListener(e,t){var n,r;if(!this.eventService)return;const i=null!=(r=null==(n=this.frameworkEventListenerService)?void 0:n.unwrap(t))?r:t;this.eventService.removeEventListener(e,i),this.eventService.noRegisteredListenersExist()&&(this.eventService=null)}onMouseEnter(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))}onMouseLeave(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))}getFirstChildOfFirstChild(e){let t=this,n=!0,r=!1,i=null;for(;n&&!r;){const o=t.parent;NT(o)&&t.firstChild?o.rowGroupColumn===e&&(r=!0,i=o):n=!1,t=o}return r?i:null}isFullWidthCell(){if(this.detail)return!0;const e=this.beans.gridOptionsService.getCallback(\"isFullWidthRow\");return!!e&&e({rowNode:this})}getRoute(){if(null==this.key)return;const e=[];let t=this;for(;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}createFooter(){if(this.sibling)return;const t=new Set([\"eventService\",\"__objectId\",\"sticky\"]),n=new e(this.beans);Object.keys(this).forEach((e=>{t.has(e)||(n[e]=this[e])})),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id=\"rowGroupFooter_\"+this.id,n.sibling=this,this.sibling=n}destroyFooter(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)}};YI.ID_PREFIX_ROW_GROUP=\"row-group-\",YI.ID_PREFIX_TOP_PINNED=\"t-\",YI.ID_PREFIX_BOTTOM_PINNED=\"b-\",YI.OBJECT_ID_SEQUENCE=0,YI.EVENT_ROW_SELECTED=\"rowSelected\",YI.EVENT_DATA_CHANGED=\"dataChanged\",YI.EVENT_CELL_CHANGED=\"cellChanged\",YI.EVENT_ALL_CHILDREN_COUNT_CHANGED=\"allChildrenCountChanged\",YI.EVENT_MASTER_CHANGED=\"masterChanged\",YI.EVENT_GROUP_CHANGED=\"groupChanged\",YI.EVENT_MOUSE_ENTER=\"mouseEnter\",YI.EVENT_MOUSE_LEAVE=\"mouseLeave\",YI.EVENT_HEIGHT_CHANGED=\"heightChanged\",YI.EVENT_TOP_CHANGED=\"topChanged\",YI.EVENT_DISPLAYED_CHANGED=\"displayedChanged\",YI.EVENT_FIRST_CHILD_CHANGED=\"firstChildChanged\",YI.EVENT_LAST_CHILD_CHANGED=\"lastChildChanged\",YI.EVENT_CHILD_INDEX_CHANGED=\"childIndexChanged\",YI.EVENT_ROW_INDEX_CHANGED=\"rowIndexChanged\",YI.EVENT_EXPANDED_CHANGED=\"expandedChanged\",YI.EVENT_HAS_CHILDREN_CHANGED=\"hasChildrenChanged\",YI.EVENT_SELECTABLE_CHANGED=\"selectableChanged\",YI.EVENT_UI_LEVEL_CHANGED=\"uiLevelChanged\",YI.EVENT_HIGHLIGHT_CHANGED=\"rowHighlightChanged\",YI.EVENT_DRAGGING_CHANGED=\"draggingChanged\";var KI=YI,qI=class extends Lk{constructor(){super('\\n            <div class=\"ag-selection-checkbox\" role=\"presentation\">\\n                <ag-checkbox role=\"presentation\" ref=\"eCheckbox\"></ag-checkbox>\\n            </div>')}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=MM(e,t),[r,i]=this.rowNode.selectable?[\"ariaRowToggleSelection\",\"Press Space to toggle row selection\"]:[\"ariaRowSelectionDisabled\",\"Row Selection is disabled for this row\"],o=e(r,i);this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(`${o} (${n})`)}onClicked(e,t,n){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:n.shiftKey,groupSelectsFiltered:t,event:n,source:\"checkboxSelected\"})}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),\"dblclick\",(e=>{lR(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),\"click\",(e=>{lR(e);const t=this.gridOptionsService.get(\"groupSelectsFiltered\"),n=this.eCheckbox.getValue();this.shouldHandleIndeterminateState(n,t)?0===this.onClicked(!0,t,e||{})&&this.onClicked(!1,t,e):n?this.onClicked(!1,t,e):this.onClicked(!0,t,e||{})})),this.addManagedListener(this.rowNode,KI.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get(\"isRowSelectable\")||\"function\"==typeof this.getIsVisible()){const e=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.rowNode,KI.EVENT_DATA_CHANGED,e),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,e),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute(\"tabindex\",\"-1\")}shouldHandleIndeterminateState(e,t){return t&&(void 0===this.eCheckbox.getPreviousValue()||void 0===e)&&this.gridOptionsService.isRowModelType(\"clientSide\")}showOrHideSelect(){var e,t,n;let r=this.rowNode.selectable;const i=this.getIsVisible();if(r)if(\"function\"==typeof i){const t=null==(e=this.overrides)?void 0:e.callbackParams;if(this.column){const e=this.column.createColumnFunctionCallbackParams(this.rowNode);r=i(TT(TT({},t),e))}else r=i(DT(TT({},t),{node:this.rowNode,data:this.rowNode.data}))}else r=null!=i&&i;if(null==(t=this.column)?void 0:t.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!r),this.setVisible(!0),void this.setDisplayed(!0);(null==(n=this.overrides)?void 0:n.removeHidden)?this.setDisplayed(r):this.setVisible(r)}getIsVisible(){var e,t;return this.overrides?this.overrides.isVisible:null==(t=null==(e=this.column)?void 0:e.getColDef())?void 0:t.checkboxSelection}};MT([Fk(\"eCheckbox\")],qI.prototype,\"eCheckbox\",2),MT([CD],qI.prototype,\"postConstruct\",1);var QI=(e=>(e[e.Left=0]=\"Left\",e[e.Right=1]=\"Right\",e))(QI||{}),XI=class extends vR{constructor(){super(...arguments),this.dragSourceAndParamsList=[],this.dropTargets=[]}init(){this.ePinnedIcon=ok(\"columnMovePin\",this.gridOptionsService,null),this.eHideIcon=ok(\"columnMoveHide\",this.gridOptionsService,null),this.eMoveIcon=ok(\"columnMoveMove\",this.gridOptionsService,null),this.eLeftIcon=ok(\"columnMoveLeft\",this.gridOptionsService,null),this.eRightIcon=ok(\"columnMoveRight\",this.gridOptionsService,null),this.eGroupIcon=ok(\"columnMoveGroup\",this.gridOptionsService,null),this.eAggregateIcon=ok(\"columnMoveValue\",this.gridOptionsService,null),this.ePivotIcon=ok(\"columnMovePivot\",this.gridOptionsService,null),this.eDropNotAllowedIcon=ok(\"dropNotAllowed\",this.gridOptionsService,null)}addDragSource(e,t=!1){const n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n)}removeDragSource(e){const t=this.dragSourceAndParamsList.find((t=>t.dragSource===e));t&&(this.dragService.removeDragSource(t.params),KD(this.dragSourceAndParamsList,t))}clearDragSourceParamsList(){this.dragSourceAndParamsList.forEach((e=>this.dragService.removeDragSource(e.params))),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()}onDragStop(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){const t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()}onDragging(e,t){var n,r,i,o;const a=this.getHorizontalDirection(e),s=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);const l=this.dropTargets.filter((t=>this.isMouseOnDropTarget(e,t))),c=this.findCurrentDropTarget(e,l);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(e,a,s,t),null!==this.lastDropTarget&&null===c&&(null==(r=(n=this.dragSource).onGridExit)||r.call(n,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null==(o=(i=this.dragSource).onGridEnter)||o.call(i,this.dragItem)),this.enterDragTargetIfExists(c,e,a,s,t),this.lastDropTarget=c;else if(c&&c.onDragging){const n=this.createDropTargetEvent(c,e,a,s,t);c.onDragging(n)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n}allContainersIntersect(e,t){for(const n of t){const t=n.getBoundingClientRect();if(0===t.width||0===t.height)return!1;const r=e.clientX>=t.left&&e.clientX<t.right,i=e.clientY>=t.top&&e.clientY<t.bottom;if(!r||!i)return!1}return!0}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let r=!1;for(const t of n)if(this.allContainersIntersect(e,t)){r=!0;break}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&r&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement)}findCurrentDropTarget(e,t){const n=t.length;if(0===n)return null;if(1===n)return t[0];const r=this.gridOptionsService.getRootNode().elementsFromPoint(e.clientX,e.clientY);for(const e of r)for(const n of t)if(-1!==tR(this.getAllContainersFromDropTarget(n)).indexOf(e))return n;return null}enterDragTargetIfExists(e,t,n,r,i){if(e){if(e.onDragEnter){const o=this.createDropTargetEvent(e,t,n,r,i);e.onDragEnter(o)}this.setGhostIcon(e.getIconName?e.getIconName():null)}}leaveLastTargetIfExists(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){const i=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(i)}this.setGhostIcon(null)}}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter((t=>t.getContainer()!==e.getContainer()))}hasExternalDropZones(){return this.dropTargets.some((e=>e.external))}findExternalZone(e){return this.dropTargets.filter((e=>e.external)).find((t=>t.getContainer()===e.getContainer()))||null}getHorizontalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientX,n=e.clientX;return t===n?null:t>n?0:1}getVerticalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientY,n=e.clientY;return t===n?null:t>n?0:1}createDropTargetEvent(e,t,n,r,i){const o=e.getContainer(),a=o.getBoundingClientRect(),{gridApi:s,columnApi:l,dragItem:c,dragSource:d}=this;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:r,hDirection:n,dragSource:d,fromNudge:i,dragItem:c,api:s,columnApi:l,dropZoneTarget:o}}positionGhost(e){const t=this.eGhost;if(!t)return;const n=t.getBoundingClientRect().height,r=KM()-2,i=qM()-2,o=DO(t.offsetParent),{clientY:a,clientX:s}=e;let l=a-o.top-n/2,c=s-o.left-10;const d=this.gridOptionsService.getDocument(),u=d.defaultView||window,h=u.pageYOffset||d.documentElement.scrollTop,p=u.pageXOffset||d.documentElement.scrollLeft;r>0&&c+t.clientWidth>r+p&&(c=r+p-t.clientWidth),c<0&&(c=0),i>0&&l+t.clientHeight>i+h&&(l=i+h-t.clientHeight),l<0&&(l=0),t.style.left=`${c}px`,t.style.top=`${l}px`}removeGhost(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null}createGhost(){this.eGhost=LO(XI.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);const{theme:e}=this.environment.getTheme();e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(\".ag-dnd-ghost-icon\"),this.setGhostIcon(null);const t=this.eGhost.querySelector(\".ag-dnd-ghost-label\");let n=this.dragSource.dragItemName;oD(n)&&(n=n()),t.innerHTML=kR(n)||\"\",this.eGhost.style.height=\"25px\",this.eGhost.style.top=\"20px\",this.eGhost.style.left=\"20px\";const r=this.gridOptionsService.getDocument();let i=null,o=null;try{i=r.fullscreenElement}catch(e){}finally{i||(i=this.gridOptionsService.getRootNode());o=i.querySelector(\"body\")||(i instanceof ShadowRoot?i:i instanceof Document?null==i?void 0:i.documentElement:i)}this.eGhostParent=o,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn(\"AG Grid: could not find document body, it is needed for dragging columns\")}setGhostIcon(e,t=!1){kO(this.eGhostIcon);let n=null;switch(e||(e=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():XI.ICON_NOT_ALLOWED),e){case XI.ICON_PINNED:n=this.ePinnedIcon;break;case XI.ICON_MOVE:n=this.eMoveIcon;break;case XI.ICON_LEFT:n=this.eLeftIcon;break;case XI.ICON_RIGHT:n=this.eRightIcon;break;case XI.ICON_GROUP:n=this.eGroupIcon;break;case XI.ICON_AGGREGATE:n=this.eAggregateIcon;break;case XI.ICON_PIVOT:n=this.ePivotIcon;break;case XI.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case XI.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle(\"ag-shake-left-to-right\",t),n===this.eHideIcon&&this.gridOptionsService.get(\"suppressDragLeaveHidesColumns\")||n&&this.eGhostIcon.appendChild(n)}};XI.ICON_PINNED=\"pinned\",XI.ICON_MOVE=\"move\",XI.ICON_LEFT=\"left\",XI.ICON_RIGHT=\"right\",XI.ICON_GROUP=\"group\",XI.ICON_AGGREGATE=\"aggregate\",XI.ICON_PIVOT=\"pivot\",XI.ICON_NOT_ALLOWED=\"notAllowed\",XI.ICON_HIDE=\"hide\",XI.GHOST_TEMPLATE='<div class=\"ag-dnd-ghost ag-unselectable\">\\n            <span class=\"ag-dnd-ghost-icon ag-shake-left-to-right\"></span>\\n            <div class=\"ag-dnd-ghost-label\"></div>\\n        </div>',MT([xD(\"dragService\")],XI.prototype,\"dragService\",2),MT([xD(\"mouseEventService\")],XI.prototype,\"mouseEventService\",2),MT([xD(\"columnApi\")],XI.prototype,\"columnApi\",2),MT([xD(\"gridApi\")],XI.prototype,\"gridApi\",2),MT([CD],XI.prototype,\"init\",1),MT([SD],XI.prototype,\"clearDragSourceParamsList\",1),XI=MT([ED(\"dragAndDropService\")],XI);var ZI=class extends Lk{constructor(e,t,n,r,i,o){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=r,this.dragStartPixels=i,this.suppressVisibilityChange=o,this.dragSource=null}isCustomGui(){return null!=this.customGui}postConstruct(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class=\"ag-drag-handle ag-row-drag\" aria-hidden=\"true\"></div>'),this.getGui().appendChild(ak(\"rowDrag\",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){const e=this.gridOptionsService.get(\"rowDragManaged\")?new tN(this,this.beans,this.rowNode,this.column):new eN(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e),this.addDragSource(t)}getSelectedNodes(){if(!this.gridOptionsService.get(\"rowDragMultiRow\"))return[this.rowNode];const e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]}checkCompatibility(){const e=this.gridOptionsService.get(\"rowDragManaged\");this.gridOptionsService.get(\"treeData\")&&e&&nD(\"If using row drag with tree data, you cannot have rowDragManaged=true\")}getDragItem(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get(\"rowDragText\")}addDragSource(e=4){this.dragSource&&this.removeDragSource();const t=this.localeService.getLocaleTextFunc();this.dragSource={type:2,eElement:this.getGui(),dragItemName:()=>{var e;const n=this.getDragItem(),r=(null==(e=n.rowNodes)?void 0:e.length)||1,i=this.getRowDragText(this.column);return i?i(n,r):1===r?this.cellValueFn():`${r} ${t(\"rowDragRows\",\"rows\")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)}removeDragSource(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null}};MT([xD(\"beans\")],ZI.prototype,\"beans\",2),MT([CD],ZI.prototype,\"postConstruct\",1),MT([SD],ZI.prototype,\"removeDragSource\",1);var JI=class extends vR{constructor(e,t,n){super(),this.parent=e,this.rowNode=t,this.column=n}setDisplayedOrVisible(e){const t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let e=!0,n=!1;this.column&&(e=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=oD(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,t),this.parent.setVisible(e,t)):(this.parent.setDisplayed(e,t),this.parent.setVisible(!0,t))}}},eN=class extends JI{constructor(e,t,n,r){super(e,n,r),this.beans=t}postConstruct(){this.addManagedPropertyListener(\"suppressRowDrag\",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gridOptionsService.get(\"suppressRowDrag\");this.setDisplayedOrVisible(e)}};MT([CD],eN.prototype,\"postConstruct\",1);var tN=class extends JI{constructor(e,t,n,r){super(e,n,r),this.beans=t}postConstruct(){this.addManagedListener(this.beans.eventService,CR.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,CR.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener(\"suppressRowDrag\",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.gridOptionsService.get(\"suppressRowDrag\"),r=this.beans.dragAndDropService.hasExternalDropZones(),i=t&&!r||n;this.setDisplayedOrVisible(i)}};MT([CD],tN.prototype,\"postConstruct\",1);var nN=class extends vR{init(e,t,n,r,i,o,a){var s,l,c,d;this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=i,this.comp=e,this.compClass=o;const{node:u,value:h,colDef:p}=a,g=this.isTopLevelFooter();if(!g){if(this.isEmbeddedRowMismatch())return;if(u.footer&&this.gridOptionsService.get(\"groupHideOpenParents\")&&(p&&p.showRowGroup)!==(u.rowGroupColumn&&u.rowGroupColumn.getColId()))return}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!g){const e=a.node.footer&&a.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex((e=>{var t;return e.getColId()===(null==(t=a.colDef)?void 0:t.showRowGroup)})),t=\"multipleColumns\"!=this.gridOptionsService.get(\"groupDisplayType\")||this.gridOptionsService.get(\"treeData\")||this.gridOptionsService.get(\"showOpenedGroup\")&&!a.node.footer&&(!a.node.group||null!=a.node.rowGroupIndex&&a.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex((e=>{var t;return e.getColId()===(null==(t=a.colDef)?void 0:t.showRowGroup)}))),n=!u.group&&((null==(s=this.params.colDef)?void 0:s.field)||(null==(l=this.params.colDef)?void 0:l.valueGetter)),r=this.isExpandable(),i=this.columnModel.isPivotMode()&&u.leafGroup&&(null==(c=u.rowGroupColumn)?void 0:c.getColId())===(null==(d=a.column)?void 0:d.getColDef().showRowGroup);if(!(this.showingValueForOpenedParent||r||n||t||e||i))return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()}getCellAriaRole(){var e,t;const n=null==(e=this.params.colDef)?void 0:e.cellAriaRole,r=null==(t=this.params.column)?void 0:t.getColDef().cellAriaRole;return n||r||\"gridcell\"}destroy(){super.destroy(),this.expandListener=null}refreshAriaExpanded(){const{node:e,eGridCell:t}=this.params;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable())return void fM(t);const n=()=>{gM(t,!!e.expanded)};this.expandListener=this.addManagedListener(e,KI.EVENT_EXPANDED_CHANGED,n)||null,n()}isTopLevelFooter(){if(!this.gridOptionsService.get(\"groupIncludeTotalFooter\"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;const e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;const t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gridOptionsService.get(\"embedFullWidthRows\"))return!1;const e=\"left\"===this.params.pinned,t=\"right\"===this.params.pinned,n=!e&&!t;return this.gridOptionsService.get(\"enableRtl\")?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n}findDisplayedGroupNode(){const e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent){let n=t.parent;for(;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}}PT(this.displayedGroupNode)&&(this.displayedGroupNode=t)}setupShowingValueForOpenedParent(){const e=this.params.node,t=this.params.column;if(!this.gridOptionsService.get(\"groupHideOpenParents\"))return void(this.showingValueForOpenedParent=!1);if(!e.groupData)return void(this.showingValueForOpenedParent=!1);if(null!=e.rowGroupColumn){const n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}const n=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=n}addValueElement(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())}addGroupValue(){var e;const t=this.adjustParamsWithDetailsFromRelatedColumn(),n=this.getInnerCompDetails(t),{valueFormatted:r,value:i}=t;let o=r;if(null==o){const t=this.displayedGroupNode.rowGroupColumn&&(null==(e=this.params.column)?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));o=\"\"===this.displayedGroupNode.key&&this.displayedGroupNode.group&&t?this.localeService.getLocaleTextFunc()(\"blanks\",\"(Blanks)\"):null!=i?i:null}this.comp.setInnerRenderer(n,o)}adjustParamsWithDetailsFromRelatedColumn(){const e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;const n=this.params,{value:r,node:i}=this.params,o=this.valueFormatterService.formatValue(e,i,r);return DT(TT({},n),{valueFormatted:o})}addFooterValue(){const e=this.params.footerValueGetter;let t=\"\";if(e){const n=$T(this.params);n.value=this.params.value,\"function\"==typeof e?t=e(n):\"string\"==typeof e?t=this.expressionService.evaluate(e,n):console.warn(\"AG Grid: footerValueGetter should be either a function or a string (expression)\")}else t=this.localeService.getLocaleTextFunc()(\"footerTotal\",\"Total\")+\" \"+(null!=this.params.value?this.params.value:\"\");const n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,t)}getInnerCompDetails(e){if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get(\"groupRowRendererParams\"),e);const t=this.userComponentFactory.getInnerRendererDetails(e,e),n=e=>e&&e.componentClass==this.compClass;if(t&&!n(t))return t;const r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(!i)return;const o=this.userComponentFactory.getCellRendererDetails(i,e);return o&&!n(o)?o:n(o)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer?this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e):void 0}addChildCount(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,KI.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())}updateChildCount(){const e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?`(${e})`:\"\";this.comp.setChildCount(t)}isShowRowGroupForThisRow(){if(this.gridOptionsService.get(\"treeData\"))return!0;const e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;const t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())}addExpandAndContract(){var e;const t=this.params,n=ak(\"groupExpanded\",this.gridOptionsService,null),r=ak(\"groupContracted\",this.gridOptionsService,null);n&&this.eExpanded.appendChild(n),r&&this.eContracted.appendChild(r);const i=t.eGridCell;(null==(e=this.params.column)?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.get(\"enableGroupEdit\")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(i,\"dblclick\",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,\"click\",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,\"click\",this.onExpandClicked.bind(this)),this.addManagedListener(i,\"keydown\",this.onKeyDown.bind(this)),this.addManagedListener(t.node,KI.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();const o=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,KI.EVENT_ALL_CHILDREN_COUNT_CHANGED,o),this.addManagedListener(this.displayedGroupNode,KI.EVENT_MASTER_CHANGED,o),this.addManagedListener(this.displayedGroupNode,KI.EVENT_GROUP_CHANGED,o),this.addManagedListener(this.displayedGroupNode,KI.EVENT_HAS_CHILDREN_CHANGED,o)}onExpandClicked(e){cR(e)||(lR(e),this.onExpandOrContract(e))}onExpandOrContract(e){const t=this.displayedGroupNode,n=!t.expanded;!n&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(n,e)}scrollToStickyNode(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)}isExpandable(){if(this.showingValueForOpenedParent)return!0;const e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||t)return!1;const n=this.params.column;return null==n||\"string\"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()}showExpandAndContractIcons(){const{params:e,displayedGroupNode:t,columnModel:n}=this,{node:r}=e,i=this.isExpandable();if(i){const e=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(e),this.comp.setContractedDisplayed(!e)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);const o=n.isPivotMode(),a=o&&t.leafGroup,s=i&&!a,l=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass(\"ag-cell-expandable\",s),this.comp.addOrRemoveCssClass(\"ag-row-group\",s),o?this.comp.addOrRemoveCssClass(\"ag-pivot-leaf-group\",a):l||this.comp.addOrRemoveCssClass(\"ag-row-group-leaf-indent\",!s)}onRowNodeIsExpandableChanged(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()}setupIndent(){const e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,KI.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())}setIndent(){if(this.gridOptionsService.get(\"groupHideOpenParents\"))return;const e=this.params,t=e.node,n=!!e.colDef,r=this.gridOptionsService.get(\"treeData\"),i=!n||r||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass=\"ag-row-group-indent-\"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}addFullWidthRowDraggerIfNeeded(){if(!this.params.fullWidth||!this.params.rowDrag)return;const e=new ZI((()=>this.params.value),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement(\"afterbegin\",e.getGui())}isUserWantsSelected(){const e=this.params.checkbox;return\"function\"==typeof e||!0===e}addCheckboxIfNeeded(){const e=this.displayedGroupNode,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){const e=new qI;this.getContext().createBean(e),e.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(e.getGui()),this.addDestroyFunc((()=>this.getContext().destroyBean(e)))}this.comp.setCheckboxVisible(t)}onKeyDown(e){e.key!==lk.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)}onCellDblClicked(e){cR(e)||hR(this.eExpanded,e)||hR(this.eContracted,e)||this.onExpandOrContract(e)}};MT([xD(\"expressionService\")],nN.prototype,\"expressionService\",2),MT([xD(\"valueFormatterService\")],nN.prototype,\"valueFormatterService\",2),MT([xD(\"columnModel\")],nN.prototype,\"columnModel\",2),MT([xD(\"userComponentFactory\")],nN.prototype,\"userComponentFactory\",2),MT([xD(\"ctrlsService\")],nN.prototype,\"ctrlsService\",2);var rN=class e extends Lk{constructor(){super(e.TEMPLATE)}init(e){const t={setInnerRenderer:(e,t)=>this.setRenderDetails(e,t),setChildCount:e=>this.eChildCount.textContent=e,addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setContractedDisplayed:e=>yO(this.eContracted,e),setExpandedDisplayed:e=>yO(this.eExpanded,e),setCheckboxVisible:e=>this.eCheckbox.classList.toggle(\"ag-invisible\",!e)},n=this.createManagedBean(new nN),r=!e.colDef,i=this.getGui();n.init(t,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&JR(i,n.getCellAriaRole())}setRenderDetails(e,t){if(e){const t=e.newAgStackInstance();if(!t)return;t.then((e=>{if(!e)return;const t=()=>this.context.destroyBean(e);this.isAlive()?(this.eValue.appendChild(e.getGui()),this.addDestroyFunc(t)):t()}))}else this.eValue.innerText=t}destroy(){this.getContext().destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}};rN.TEMPLATE='<span class=\"ag-cell-wrapper\">\\n            <span class=\"ag-group-expanded\" ref=\"eExpanded\"></span>\\n            <span class=\"ag-group-contracted\" ref=\"eContracted\"></span>\\n            <span class=\"ag-group-checkbox ag-invisible\" ref=\"eCheckbox\"></span>\\n            <span class=\"ag-group-value\" ref=\"eValue\"></span>\\n            <span class=\"ag-group-child-count\" ref=\"eChildCount\"></span>\\n        </span>',MT([Fk(\"eExpanded\")],rN.prototype,\"eExpanded\",2),MT([Fk(\"eContracted\")],rN.prototype,\"eContracted\",2),MT([Fk(\"eCheckbox\")],rN.prototype,\"eCheckbox\",2),MT([Fk(\"eValue\")],rN.prototype,\"eValue\",2),MT([Fk(\"eChildCount\")],rN.prototype,\"eChildCount\",2);var iN=rN,oN=class e extends Lk{constructor(){super(e.TEMPLATE)}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e(\"loadingError\",\"ERR\")}setupLoading(){const e=ak(\"groupLoading\",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);const t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t(\"loadingOoo\",\"Loading\")}refresh(e){return!1}destroy(){super.destroy()}};oN.TEMPLATE='<div class=\"ag-loading\">\\n            <span class=\"ag-loading-icon\" ref=\"eLoadingIcon\"></span>\\n            <span class=\"ag-loading-text\" ref=\"eLoadingText\"></span>\\n        </div>',MT([Fk(\"eLoadingIcon\")],oN.prototype,\"eLoadingIcon\",2),MT([Fk(\"eLoadingText\")],oN.prototype,\"eLoadingText\",2);var aN=oN,sN=class e extends Lk{constructor(){super()}destroy(){super.destroy()}init(t){const n=this.gridOptionsService.get(\"overlayLoadingTemplate\");if(this.setTemplate(null!=n?n:e.DEFAULT_LOADING_OVERLAY_TEMPLATE),!n){const e=this.localeService.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e(\"loadingOoo\",\"Loading...\")}))}}};sN.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span aria-live=\"polite\" aria-atomic=\"true\" class=\"ag-overlay-loading-center\"></span>';var lN=sN,cN=class e extends Lk{constructor(){super()}destroy(){super.destroy()}init(t){const n=this.gridOptionsService.get(\"overlayNoRowsTemplate\");if(this.setTemplate(null!=n?n:e.DEFAULT_NO_ROWS_TEMPLATE),!n){const e=this.localeService.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e(\"noRowsToShow\",\"No Rows To Show\")}))}}};cN.DEFAULT_NO_ROWS_TEMPLATE='<span class=\"ag-overlay-no-rows-center\"></span>';var dN=cN,uN=class extends zI{constructor(){super('<div class=\"ag-tooltip\"></div>')}init(e){const{value:t}=e;this.getGui().textContent=kR(t,!0)}},hN=class{getTemplate(){return'<ag-input-number-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-number-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.max&&e.setMax(t.max),null!=t.min&&e.setMin(t.min),null!=t.precision&&e.setPrecision(t.precision),null!=t.step&&e.setStep(t.step);const n=e.getInputElement();t.preventStepping?e.addManagedListener(n,\"keydown\",this.preventStepping):t.showStepperButtons&&n.classList.add(\"ag-number-field-input-stepper\")}preventStepping(e){e.key!==lk.UP&&e.key!==lk.DOWN||e.preventDefault()}getValue(){const e=this.eInput.getValue();if(!NT(e)&&!NT(this.params.value))return this.params.value;let t=this.params.parseValue(e);if(null==t)return t;if(\"string\"==typeof t){if(\"\"===t)return null;t=Number(t)}return isNaN(t)?null:t}getStartValue(){return this.params.value}},pN=class extends HI{constructor(){super(new hN)}},gN=class{getTemplate(){return'<ag-input-date-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-date-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)}getValue(){const e=this.eInput.getDate();return NT(e)||NT(this.params.value)?null!=e?e:null:this.params.value}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return lO(e,!1)}},fN=class extends HI{constructor(){super(new gN)}},mN=class{constructor(e){this.getDataTypeService=e}getTemplate(){return'<ag-input-date-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-date-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)}getValue(){const e=this.formatDate(this.eInput.getDate());return NT(e)||NT(this.params.value)?this.params.parseValue(null!=e?e:\"\"):this.params.value}getStartValue(){var e,t;return lO(null!=(t=this.parseDate(null!=(e=this.params.value)?e:void 0))?t:null,!1)}parseDate(e){return this.getDataTypeService().getDateParserFunction(this.params.column)(e)}formatDate(e){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(e)}},vN=class extends HI{constructor(){super(new mN((()=>this.dataTypeService)))}};MT([xD(\"dataTypeService\")],vN.prototype,\"dataTypeService\",2);var yN=class e extends Lk{constructor(){super(e.TEMPLATE)}init(e){this.params=e,this.updateCheckbox(e);const t=this.eCheckbox.getInputElement();t.setAttribute(\"tabindex\",\"-1\"),sM(t,\"polite\"),this.addManagedListener(t,\"click\",(e=>{if(lR(e),this.eCheckbox.isDisabled())return;const t=this.eCheckbox.getValue();this.onCheckboxChanged(t)})),this.addManagedListener(t,\"dblclick\",(e=>{lR(e)}));const n=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,\"keydown\",(e=>{if(e.key===lk.SPACE&&!this.eCheckbox.isDisabled()){this.params.eGridCell===n.activeElement&&this.eCheckbox.toggle();const t=this.eCheckbox.getValue();this.onCheckboxChanged(t),e.preventDefault()}}))}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){var t,n,r;let i,o=!0;if(e.node.group&&e.column){const n=e.column.getColId();n.startsWith(xR)?i=null==e.value||\"\"===e.value?void 0:\"true\"===e.value:e.node.aggData&&void 0!==e.node.aggData[n]?i=null!=(t=e.value)?t:void 0:o=!1}else i=null!=(n=e.value)?n:void 0;if(!o)return void this.eCheckbox.setDisplayed(!1);this.eCheckbox.setValue(i);const a=null!=e.disabled?e.disabled:!(null==(r=e.column)?void 0:r.isCellEditable(e.node));this.eCheckbox.setDisabled(a);const s=this.localeService.getLocaleTextFunc(),l=MM(s,i),c=a?l:`${s(\"ariaToggleCellValue\",\"Press SPACE to toggle cell value\")} (${l})`;this.eCheckbox.setInputAriaLabel(c)}onCheckboxChanged(e){const{column:t,node:n,rowIndex:r,value:i}=this.params,o={type:CR.EVENT_CELL_EDITING_STARTED,column:t,colDef:null==t?void 0:t.getColDef(),data:n.data,node:n,rowIndex:r,rowPinned:n.rowPinned,value:i};this.eventService.dispatchEvent(o);const a=this.params.node.setDataValue(this.params.column,e,\"edit\"),s={type:CR.EVENT_CELL_EDITING_STOPPED,column:t,colDef:null==t?void 0:t.getColDef(),data:n.data,node:n,rowIndex:r,rowPinned:n.rowPinned,value:i,oldValue:i,newValue:e,valueChanged:a};this.eventService.dispatchEvent(s)}};yN.TEMPLATE='\\n        <div class=\"ag-cell-wrapper ag-checkbox-cell\" role=\"presentation\">\\n            <ag-checkbox role=\"presentation\" ref=\"eCheckbox\"></ag-checkbox>\\n        </div>',MT([Fk(\"eCheckbox\")],yN.prototype,\"eCheckbox\",2);var bN=yN,wN=class extends zI{constructor(){super('\\n            <div class=\"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit\">\\n                <ag-checkbox role=\"presentation\" ref=\"eCheckbox\"></ag-checkbox>\\n            </div>')}init(e){var t;this.params=e;const n=null!=(t=e.value)?t:void 0;this.eCheckbox.setValue(n),this.eCheckbox.getInputElement().setAttribute(\"tabindex\",\"-1\"),this.setAriaLabel(n),this.addManagedListener(this.eCheckbox,CR.EVENT_FIELD_VALUE_CHANGED,(e=>this.setAriaLabel(e.selected)))}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.localeService.getLocaleTextFunc(),n=MM(t,e),r=t(\"ariaToggleCellValue\",\"Press SPACE to toggle cell value\");this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}};MT([Fk(\"eCheckbox\")],wN.prototype,\"eCheckbox\",2);var CN=class extends Lk{constructor(){super(),this.setTemplate(\"<div></div>\")}init(e){var t;this.params=e,this.cssClassPrefix=null!=(t=this.params.cssClassPrefix)?t:\"ag-menu-option\",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addIcon(){if(this.params.isCompact)return;const e=LO(`<span ref=\"eIcon\" class=\"${this.getClassName(\"part\")} ${this.getClassName(\"icon\")}\" role=\"presentation\"></span>`);this.params.checked?e.appendChild(ak(\"check\",this.gridOptionsService)):this.params.icon&&(YO(this.params.icon)?e.appendChild(this.params.icon):\"string\"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn(\"AG Grid: menu item icon must be DOM node or string\")),this.getGui().appendChild(e)}addName(){const e=LO(`<span ref=\"eName\" class=\"${this.getClassName(\"part\")} ${this.getClassName(\"text\")}\">${this.params.name||\"\"}</span>`);this.getGui().appendChild(e)}addShortcut(){if(this.params.isCompact)return;const e=LO(`<span ref=\"eShortcut\" class=\"${this.getClassName(\"part\")} ${this.getClassName(\"shortcut\")}\">${this.params.shortcut||\"\"}</span>`);this.getGui().appendChild(e)}addSubMenu(){const e=LO(`<span ref=\"ePopupPointer\" class=\"${this.getClassName(\"part\")} ${this.getClassName(\"popup-pointer\")}\"></span>`),t=this.getGui();if(this.params.subMenu){const n=this.gridOptionsService.get(\"enableRtl\")?\"smallLeft\":\"smallRight\";gM(t,!1),e.appendChild(ak(n,this.gridOptionsService))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}destroy(){super.destroy()}},SN=class extends vR{constructor(){super(...arguments),this.agGridDefaults={agDateInput:fI,agColumnHeader:LI,agColumnGroupHeader:_I,agSortIndicator:NI,agTextColumnFloatingFilter:MI,agNumberColumnFloatingFilter:RI,agDateColumnFloatingFilter:gI,agReadOnlyFloatingFilter:zk,agAnimateShowChangeCellRenderer:WI,agAnimateSlideCellRenderer:$I,agGroupCellRenderer:iN,agGroupRowRenderer:iN,agLoadingCellRenderer:aN,agCheckboxCellRenderer:bN,agCellEditor:UI,agTextCellEditor:UI,agNumberCellEditor:pN,agDateCellEditor:fN,agDateStringCellEditor:vN,agSelectCellEditor:BI,agLargeTextCellEditor:VI,agCheckboxCellEditor:wN,agTextColumnFilter:xI,agNumberColumnFilter:CI,agDateColumnFilter:hI,agLoadingOverlay:lN,agNoRowsOverlay:dN,agTooltipComponent:uN,agMenuItem:CN},this.enterpriseAgDefaultCompsModule={agSetColumnFilter:\"@ag-grid-enterprise/set-filter\",agSetColumnFloatingFilter:\"@ag-grid-enterprise/set-filter\",agMultiColumnFilter:\"@ag-grid-enterprise/multi-filter\",agMultiColumnFloatingFilter:\"@ag-grid-enterprise/multi-filter\",agGroupColumnFilter:\"@ag-grid-enterprise/row-grouping\",agGroupColumnFloatingFilter:\"@ag-grid-enterprise/row-grouping\",agRichSelect:\"@ag-grid-enterprise/rich-select\",agRichSelectCellEditor:\"@ag-grid-enterprise/rich-select\",agDetailCellRenderer:\"@ag-grid-enterprise/master-detail\",agSparklineCellRenderer:\"@ag-grid-enterprise/sparklines\"},this.jsComps={}}init(){null!=this.gridOptions.components&&WT(this.gridOptions.components,((e,t)=>this.registerJsComponent(e,t)))}registerDefaultComponent(e,t){this.agGridDefaults[e]?console.error(\"Trying to overwrite a default component. You should call registerComponent\"):this.agGridDefaults[e]=t}registerJsComponent(e,t){this.jsComps[e]=t}retrieve(e,t){const n=(e,t)=>({componentFromFramework:t,component:e}),r=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=r)return n(r,!0);const i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));const o=this.agGridDefaults[t];if(o)return n(o,!1);const a=this.enterpriseAgDefaultCompsModule[t];return a?yD.__assertRegistered(a,`AG Grid '${e}' component: ${t}`,this.context.getGridId()):tD((()=>{this.warnAboutMissingComponent(e,t)}),\"MissingComp\"+t),null}warnAboutMissingComponent(e,t){const n=[...Object.keys(this.agGridDefaults).filter((e=>![\"agCellEditor\",\"agGroupRowRenderer\",\"agSortIndicator\"].includes(e))),...Object.keys(this.jsComps)],r=tk(t,n,!0,.8).values;console.warn(`AG Grid: Could not find '${t}' component. It was configured as \"${e}: '${t}'\" but it wasn't found in the list of registered components.`),r.length>0&&console.warn(`         Did you mean: [${r.slice(0,3)}]?`),console.warn(`If using a custom component check it has been registered as described in: ${this.getFrameworkOverrides().getDocLink(\"components/\")}`)}};MT([xD(\"gridOptions\")],SN.prototype,\"gridOptions\",2),MT([CD],SN.prototype,\"init\",1),SN=MT([ED(\"userComponentRegistry\")],SN);var EN={propertyName:\"dateComponent\",cellRenderer:!1},xN={propertyName:\"headerComponent\",cellRenderer:!1},AN={propertyName:\"headerGroupComponent\",cellRenderer:!1},TN={propertyName:\"cellRenderer\",cellRenderer:!0},DN={propertyName:\"cellEditor\",cellRenderer:!1},RN={propertyName:\"innerRenderer\",cellRenderer:!0},MN={propertyName:\"loadingOverlayComponent\",cellRenderer:!1},ON={propertyName:\"noRowsOverlayComponent\",cellRenderer:!1},kN={propertyName:\"tooltipComponent\",cellRenderer:!1},IN={propertyName:\"filter\",cellRenderer:!1},NN={propertyName:\"floatingFilterComponent\",cellRenderer:!1},PN={propertyName:\"toolPanel\",cellRenderer:!1},LN={propertyName:\"statusPanel\",cellRenderer:!1},FN={propertyName:\"fullWidthCellRenderer\",cellRenderer:!0},_N={propertyName:\"loadingCellRenderer\",cellRenderer:!0},zN={propertyName:\"groupRowRenderer\",cellRenderer:!0},GN={propertyName:\"detailCellRenderer\",cellRenderer:!0},VN={propertyName:\"menuItem\",cellRenderer:!1},BN=class{static getFloatingFilterType(e){return this.filterToFloatingFilterMapping[e]}};BN.filterToFloatingFilterMapping={set:\"agSetColumnFloatingFilter\",agSetColumnFilter:\"agSetColumnFloatingFilter\",multi:\"agMultiColumnFloatingFilter\",agMultiColumnFilter:\"agMultiColumnFloatingFilter\",group:\"agGroupColumnFloatingFilter\",agGroupColumnFilter:\"agGroupColumnFloatingFilter\",number:\"agNumberColumnFloatingFilter\",agNumberColumnFilter:\"agNumberColumnFloatingFilter\",date:\"agDateColumnFloatingFilter\",agDateColumnFilter:\"agDateColumnFloatingFilter\",text:\"agTextColumnFloatingFilter\",agTextColumnFilter:\"agTextColumnFloatingFilter\"};var HN=class extends vR{getHeaderCompDetails(e,t){return this.getCompDetails(e,xN,\"agColumnHeader\",t)}getHeaderGroupCompDetails(e){const t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,AN,\"agColumnGroupHeader\",e)}getFullWidthCellRendererDetails(e){return this.getCompDetails(this.gridOptions,FN,null,e,!0)}getFullWidthLoadingCellRendererDetails(e){return this.getCompDetails(this.gridOptions,_N,\"agLoadingCellRenderer\",e,!0)}getFullWidthGroupCellRendererDetails(e){return this.getCompDetails(this.gridOptions,zN,\"agGroupRowRenderer\",e,!0)}getFullWidthDetailCellRendererDetails(e){return this.getCompDetails(this.gridOptions,GN,\"agDetailCellRenderer\",e,!0)}getInnerRendererDetails(e,t){return this.getCompDetails(e,RN,null,t)}getFullWidthGroupRowInnerCellRenderer(e,t){return this.getCompDetails(e,RN,null,t)}getCellRendererDetails(e,t){return this.getCompDetails(e,TN,null,t)}getCellEditorDetails(e,t){return this.getCompDetails(e,DN,\"agCellEditor\",t,!0)}getFilterDetails(e,t,n){return this.getCompDetails(e,IN,n,t,!0)}getDateCompDetails(e){return this.getCompDetails(this.gridOptions,EN,\"agDateInput\",e,!0)}getLoadingOverlayCompDetails(e){return this.getCompDetails(this.gridOptions,MN,\"agLoadingOverlay\",e,!0)}getNoRowsOverlayCompDetails(e){return this.getCompDetails(this.gridOptions,ON,\"agNoRowsOverlay\",e,!0)}getTooltipCompDetails(e){return this.getCompDetails(e.colDef,kN,\"agTooltipComponent\",e,!0)}getSetFilterCellRendererDetails(e,t){return this.getCompDetails(e,TN,null,t)}getFloatingFilterCompDetails(e,t,n){return this.getCompDetails(e,NN,n,t)}getToolPanelCompDetails(e,t){return this.getCompDetails(e,PN,null,t,!0)}getStatusPanelCompDetails(e,t){return this.getCompDetails(e,LN,null,t,!0)}getMenuItemCompDetails(e,t){return this.getCompDetails(e,VN,\"agMenuItem\",t,!0)}getCompDetails(e,t,n,r,i=!1){const{propertyName:o,cellRenderer:a}=t;let{compName:s,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=this.getCompKeys(e,t,r);const p=e=>{const t=this.userComponentRegistry.retrieve(o,e);t&&(l=t.componentFromFramework?void 0:t.component,c=t.componentFromFramework?t.component:void 0)};if(null!=s&&p(s),null==l&&null==c&&null!=n&&p(n),l&&a&&!this.agComponentUtils.doesImplementIComponent(l)&&(l=this.agComponentUtils.adaptFunction(o,l)),!l&&!c)return void(i&&console.error(`AG Grid: Could not find component ${s}, did you forget to configure this component?`));const g=this.mergeParamsWithApplicationProvidedParams(e,t,r,d),f=null==l,m=l||c;return{componentFromFramework:f,componentClass:m,params:g,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(m,f,g,t)}}getCompKeys(e,t,n){const{propertyName:r}=t;let i,o,a,s,l,c;if(e){const t=e,d=t[r+\"Selector\"],u=d?d(n):null,h=e=>{\"string\"==typeof e?i=e:null!=e&&!0!==e&&(this.getFrameworkOverrides().isFrameworkComponent(e)?a=e:o=e)};u?(h(u.component),s=u.params,l=u.popup,c=u.popupPosition):h(t[r])}return{compName:i,jsComp:o,fwComp:a,paramsFromSelector:s,popupFromSelector:l,popupPositionFromSelector:c}}newAgStackInstance(e,t,n,r){const i=r.propertyName;let o;if(t){const t=this.componentMetadataProvider.retrieve(i);o=this.frameworkComponentWrapper.wrap(e,t.mandatoryMethodList,t.optionalMethodList,r)}else o=new e;const a=this.initComponent(o,n);return null==a?Rk.resolve(o):a.then((()=>o))}mergeParamsWithApplicationProvidedParams(e,t,n,r=null){const i=this.gridOptionsService.getGridCommonParams();qT(i,n);const o=e&&e[t.propertyName+\"Params\"];return\"function\"==typeof o?qT(i,o(n)):\"object\"==typeof o&&qT(i,o),qT(i,r),i}initComponent(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)}getDefaultFloatingFilterType(e,t){if(null==e)return null;let n=null,{compName:r,jsComp:i,fwComp:o}=this.getCompKeys(e,IN);return r?n=BN.getFloatingFilterType(r):null==i&&null==o&&!0===e.filter&&(n=t()),n}};MT([xD(\"gridOptions\")],HN.prototype,\"gridOptions\",2),MT([xD(\"agComponentUtils\")],HN.prototype,\"agComponentUtils\",2),MT([xD(\"componentMetadataProvider\")],HN.prototype,\"componentMetadataProvider\",2),MT([xD(\"userComponentRegistry\")],HN.prototype,\"userComponentRegistry\",2),MT([AD(\"frameworkComponentWrapper\")],HN.prototype,\"frameworkComponentWrapper\",2),HN=MT([ED(\"userComponentFactory\")],HN);var jN=class{};jN.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0},jN.ALL_PROPERTIES=Object.keys(jN.ColDefPropertyMap);var UN=jN,WN=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf(\"x\"),this.scrollVertically=-1!==e.scrollAxis.indexOf(\"y\"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const n=t||this.shouldSkipVerticalScroll();if(n&&this.shouldSkipHorizontalScroll())return;const r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientX<r.left+i,this.tickRight=e.clientX>r.right-i,this.tickUp=e.clientY<r.top+i&&!n,this.tickDown=e.clientY>r.bottom-i&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){let e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},$N=class extends vR{constructor(e){super(),this.isMultiRowDrag=!1,this.eContainer=e}postConstruct(){this.gridOptionsService.isRowModelType(\"clientSide\")&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady((()=>{const e=this.ctrlsService.getGridBodyCtrl();this.autoScrollService=new WN({scrollContainer:e.getBodyViewportElement(),scrollAxis:\"y\",getVerticalPosition:()=>e.getScrollFeature().getVScrollPosition().top,setVerticalPosition:t=>e.getScrollFeature().setVerticalScrollPosition(t),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})}))}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(){return this.gridOptionsService.get(\"rowDragManaged\")&&this.shouldPreventRowMove()?XI.ICON_NOT_ALLOWED:XI.ICON_MOVE}shouldPreventRowMove(){return!!this.columnModel.getRowGroupColumns().length||(!!this.filterManager.isAnyFilterPresent()||!!this.sortController.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=this.gridOptionsService.get(\"rowDragMultiRow\"),n=[...this.selectionService.getSelectedNodes()].sort(((e,t)=>null==e.rowIndex||null==t.rowIndex?0:this.getRowIndexNumber(e)-this.getRowIndexNumber(t))),r=e.dragItem.rowNode;return t&&-1!==n.indexOf(r)?(this.isMultiRowDrag=!0,n):(this.isMultiRowDrag=!1,[r])}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(CR.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((e=>{e.setDragging(!0)})),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gridOptionsService.getDomDataKey()}isDropZoneWithinThisGrid(e){const t=this.ctrlsService.getGridBodyCtrl().getGui(),{dropZoneTarget:n}=e;return!t.contains(n)}onEnterOrDragging(e){this.dispatchGridEvent(CR.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;const t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsService.get(\"rowDragManaged\")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){const n=this.isFromThisGrid(e),r=this.gridOptionsService.get(\"rowDragManaged\"),i=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsService.get(\"suppressMoveWhenRowDragging\")||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(i[0],t):this.moveRows(i,t))}getRowIndexNumber(e){return parseInt(HD(e.getRowIndexString().split(\"-\")),10)}moveRowAndClearHighlight(e){const t=this.clientSideRowModel.getLastHighlightedRowNode(),n=t&&1===t.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes;let o=n?1:0;if(this.isFromThisGrid(e))i.forEach((e=>{e.rowTop<r&&(o-=1)})),this.moveRows(i,r,o);else{const e=this.gridOptionsService.getCallback(\"getRowId\");let t=this.clientSideRowModel.getRowIndexAtPixel(r)+1;0===this.clientSideRowModel.getHighlightPosition(r)&&t--,this.clientSideRowModel.updateRowData({add:i.map((e=>e.data)).filter((t=>!this.clientSideRowModel.getRowNode(e?e({data:t,level:0}):t.id))),addIndex:t})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,n=0){this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())}addRowDropZone(e){if(!e.getContainer())return void nD(\"addRowDropZone - A container target needs to be provided\");if(this.dragAndDropService.findExternalZone(e))return void console.warn(\"AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.\");let t={getContainer:e.getContainer};e.fromGrid?t=e:(e.onDragEnter&&(t.onDragEnter=t=>{e.onDragEnter(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(t.onDragLeave=t=>{e.onDragLeave(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(t.onDragging=t=>{e.onDragging(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(t.onDragStop=t=>{e.onDragStop(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(TT({isInterestedIn:e=>2===e,getIconName:()=>XI.ICON_MOVE,external:!0},t))}getRowDropZone(e){const t=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),o=this.onDragStop.bind(this);return e?{getContainer:t,onDragEnter:e.onDragEnter?t=>{n(t),e.onDragEnter(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_ENTER,t))}:n,onDragLeave:e.onDragLeave?t=>{r(t),e.onDragLeave(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_LEAVE,t))}:r,onDragging:e.onDragging?t=>{i(t),e.onDragging(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_MOVE,t))}:i,onDragStop:e.onDragStop?t=>{o(t),e.onDragStop(this.draggingToRowDragEvent(CR.EVENT_ROW_DRAG_END,t))}:o,fromGrid:!0}:{getContainer:t,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:o,fromGrid:!0}}draggingToRowDragEvent(e,t){const n=this.mouseEventService.getNormalisedPosition(t).y;let r,i,o=-1;switch(n>this.paginationProxy.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(n),r=this.rowModel.getRow(o)),t.vDirection){case 1:i=\"down\";break;case 0:i=\"up\";break;default:i=null}return this.gridOptionsService.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:o,overNode:r,y:n,vDirection:i})}dispatchGridEvent(e,t){const n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent(CR.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get(\"rowDragManaged\")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)}onDragStop(e){this.dispatchGridEvent(CR.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.get(\"rowDragManaged\")||!this.gridOptionsService.get(\"suppressMoveWhenRowDragging\")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((e=>{e.setDragging(!1)}))}};MT([xD(\"dragAndDropService\")],$N.prototype,\"dragAndDropService\",2),MT([xD(\"rowModel\")],$N.prototype,\"rowModel\",2),MT([xD(\"paginationProxy\")],$N.prototype,\"paginationProxy\",2),MT([xD(\"columnModel\")],$N.prototype,\"columnModel\",2),MT([xD(\"focusService\")],$N.prototype,\"focusService\",2),MT([xD(\"sortController\")],$N.prototype,\"sortController\",2),MT([xD(\"filterManager\")],$N.prototype,\"filterManager\",2),MT([xD(\"selectionService\")],$N.prototype,\"selectionService\",2),MT([xD(\"mouseEventService\")],$N.prototype,\"mouseEventService\",2),MT([xD(\"ctrlsService\")],$N.prototype,\"ctrlsService\",2),MT([AD(\"rangeService\")],$N.prototype,\"rangeService\",2),MT([CD],$N.prototype,\"postConstruct\",1);var YN=class extends vR{constructor(){super(...arguments),this.dragEndFunctions=[],this.dragSources=[]}removeAllListeners(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0}removeListener(e){const t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener(\"mousedown\",n),e.touchEnabled){const n=e.touchStartListener;t.removeEventListener(\"touchstart\",n,{passive:!0})}}removeDragSource(e){const t=this.dragSources.find((t=>t.dragSource===e));t&&(this.removeListener(t),KD(this.dragSources,t))}isDragging(){return this.dragging}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:n,includeTouch:r,stopPropagationForTouch:i}=e;n.addEventListener(\"mousedown\",t);let o=null;const a=this.gridOptionsService.get(\"suppressTouch\");r&&!a&&(o=t=>{vO(t.target)||(t.cancelable&&(t.preventDefault(),i&&t.stopPropagation()),this.onTouchStart(e,t))},n.addEventListener(\"touchstart\",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:o,touchEnabled:!!r})}getStartTarget(){return this.startTarget}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const n=t.touches[0];this.touchLastTime=n,this.touchStart=n;const r=t=>this.onTouchUp(t,e.eElement),i=t.target,o=[{target:this.gridOptionsService.getRootNode(),type:\"touchmove\",listener:e=>{e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:\"touchmove\",listener:t=>this.onTouchMove(t,e.eElement),options:{passive:!0}},{target:i,type:\"touchend\",listener:r,options:{passive:!0}},{target:i,type:\"touchcancel\",listener:r,options:{passive:!0}}];this.addTemporaryEvents(o),0===e.dragStartPixels&&this.onCommonMove(n,this.touchStart,e.eElement)}onMouseDown(e,t){const n=t;if(e.skipMouseEvent&&e.skipMouseEvent(t))return;if(n._alreadyProcessedByDragService)return;if(n._alreadyProcessedByDragService=!0,0!==t.button)return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const r=this.gridOptionsService.getRootNode(),i=[{target:r,type:\"mousemove\",listener:t=>this.onMouseMove(t,e.eElement)},{target:r,type:\"mouseup\",listener:t=>this.onMouseUp(t,e.eElement)},{target:r,type:\"contextmenu\",listener:e=>e.preventDefault()}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach((e=>{const{target:t,type:n,listener:r,options:i}=e;t.addEventListener(n,r,i)})),this.dragEndFunctions.push((()=>{e.forEach((e=>{const{target:t,type:n,listener:r,options:i}=e;t.removeEventListener(n,r,i)}))}))}isEventNearStartEvent(e,t){const{dragStartPixels:n}=this.currentDragParams;return Ck(e,t,NT(n)?n:4)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;const r={type:CR.EVENT_DRAG_STARTED,target:n};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)}onTouchMove(e,t){const n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)}onMouseMove(e,t){var n;GM()&&(null==(n=this.gridOptionsService.getDocument().getSelection())||n.removeAllRanges()),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const t=this.gridOptionsService.get(\"enableCellTextSelection\"),n=\"mousemove\"===e.type;return t&&n&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)}isOverFormFieldElement(e){const t=e.target,n=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==n?void 0:n.match(\"^a$|textarea|input|select|button\"))}onTouchUp(e,t){let n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);const n={type:CR.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((e=>e())),this.dragEndFunctions.length=0}};MT([xD(\"mouseEventService\")],YN.prototype,\"mouseEventService\",2),MT([SD],YN.prototype,\"removeAllListeners\",1),YN=MT([ED(\"dragService\")],YN);var KN=\"ag-list-item-hovered\",qN=class extends vR{constructor(e,t,n){super(),this.comp=e,this.virtualList=t,this.params=n,this.currentDragValue=null,this.lastHoveredListItem=null}postConstruct(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout((()=>{this.currentDragValue=null,this.moveBlocked=!1}),10)}createDropTarget(){const e={isInterestedIn:e=>e===this.params.dragSourceType,getIconName:()=>this.moveBlocked?XI.ICON_PINNED:XI.ICON_MOVE,getContainer:()=>this.comp.getGui(),onDragging:e=>this.onDragging(e),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave()};this.dragAndDropService.addDropTarget(e)}createAutoScrollService(){const e=this.virtualList.getGui();this.autoScrollService=new WN({scrollContainer:e,scrollAxis:\"y\",getVerticalPosition:()=>e.scrollTop,setVerticalPosition:t=>e.scrollTop=t})}onDragging(e){if(!this.currentDragValue||this.moveBlocked)return;const t=this.getListDragItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(!n)return;const r=n.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,gO(r,KN),gO(r,`ag-item-highlight-${t.position}`))}getListDragItem(e){const t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),o=Math.max(0,(e.y-n+i)/r),a=this.params.getNumRows(this.comp)-1,s=0|Math.min(a,o);return{rowIndex:s,position:Math.round(o)>o||o>a?\"bottom\":\"top\",component:this.virtualList.getComponentAt(s)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())}onDragLeave(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${KN}`).forEach((e=>{[KN,\"ag-item-highlight-top\",\"ag-item-highlight-bottom\"].forEach((t=>{e.classList.remove(t)}))})),this.lastHoveredListItem=null}};function QN(e){const t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}MT([xD(\"dragAndDropService\")],qN.prototype,\"dragAndDropService\",2),MT([CD],qN.prototype,\"postConstruct\",1);var XN=class{constructor(){this.detailGridInfoMap={},this.destroyCalled=!1}init(){switch(this.rowModel.getType()){case\"clientSide\":this.clientSideRowModel=this.rowModel;break;case\"infinite\":this.infiniteRowModel=this.rowModel;break;case\"serverSide\":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((()=>{this.gridBodyCtrl=this.ctrlsService.getGridBodyCtrl()}))}__getAlignedGridService(){return this.alignedGridsService}__getContext(){return this.context}__getModel(){return this.rowModel}getGridId(){return this.context.getGridId()}addDetailGridInfo(e,t){this.detailGridInfoMap[e]=t}removeDetailGridInfo(e){this.detailGridInfoMap[e]=void 0}getDetailGridInfo(e){return this.detailGridInfoMap[e]}forEachDetailGridInfo(e){let t=0;WT(this.detailGridInfoMap,((n,r)=>{NT(r)&&(e(r,t),t++)}))}getDataAsCsv(e){if(yD.__assertRegistered(\"@ag-grid-community/csv-export\",\"api.getDataAsCsv\",this.context.getGridId()))return this.csvCreator.getDataAsCsv(e)}exportDataAsCsv(e){yD.__assertRegistered(\"@ag-grid-community/csv-export\",\"api.exportDataAsCSv\",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(e)}assertNotExcelMultiSheet(e,t){return!(!yD.__assertRegistered(\"@ag-grid-enterprise/excel-export\",\"api.\"+e,this.context.getGridId())||1===this.excelCreator.getFactoryMode()&&(console.warn(\"AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'\"),1))}getDataAsExcel(e){if(this.assertNotExcelMultiSheet(\"getDataAsExcel\",e))return this.excelCreator.getDataAsExcel(e)}exportDataAsExcel(e){this.assertNotExcelMultiSheet(\"exportDataAsExcel\",e)&&this.excelCreator.exportDataAsExcel(e)}getSheetDataForExcel(e){if(yD.__assertRegistered(\"@ag-grid-enterprise/excel-export\",\"api.getSheetDataForExcel\",this.context.getGridId()))return this.excelCreator.setFactoryMode(1),this.excelCreator.getSheetDataForExcel(e)}getMultipleSheetsAsExcel(e){if(yD.__assertRegistered(\"@ag-grid-enterprise/excel-export\",\"api.getMultipleSheetsAsExcel\",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(e)}exportMultipleSheetsAsExcel(e){yD.__assertRegistered(\"@ag-grid-enterprise/excel-export\",\"api.exportMultipleSheetsAsExcel\",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(e)}setGridAriaProperty(e,t){if(!e)return;const n=this.ctrlsService.getGridBodyCtrl().getGui(),r=`aria-${e}`;null===t?n.removeAttribute(r):n.setAttribute(r,t)}logMissingRowModel(e,...t){console.error(`AG Grid: api.${e} can only be called when gridOptions.rowModelType is ${t.join(\" or \")}`)}logDeprecation(e,t,n,r){nD(`Since ${e} api.${t} is deprecated. Please use ${n} instead. ${r}`)}getPinnedTopRowCount(){return this.pinnedRowModel.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.pinnedRowModel.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.pinnedRowModel.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.pinnedRowModel.getPinnedBottomRow(e)}expireValueCache(){this.valueCache.expire()}getVerticalPixelRange(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()}getHorizontalPixelRange(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()}refreshCells(e={}){this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.refreshCells(e)))}flashCells(e={}){const t=e=>nD(`Since v31.1 api.flashCells parameter '${e}Delay' is deprecated. Please use '${e}Duration' instead.`);NT(e.fadeDelay)&&t(\"fade\"),NT(e.flashDelay)&&t(\"flash\"),this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.flashCells(e)))}redrawRows(e={}){const t=e?e.rowNodes:void 0;this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.redrawRows(t)))}refreshHeader(){this.frameworkOverrides.wrapIncoming((()=>this.ctrlsService.getHeaderRowContainerCtrls().forEach((e=>e.refresh()))))}isAnyFilterPresent(){return this.filterManager.isAnyFilterPresent()}isColumnFilterPresent(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()}isQuickFilterPresent(){return this.filterManager.isQuickFilterPresent()}getModel(){return nD(\"Since v31.1 getModel() is deprecated. Please use the appropriate grid API methods instead.\"),this.rowModel}setRowNodeExpanded(e,t,n){this.expansionService.setRowNodeExpanded(e,t,n)}onGroupExpandedOrCollapsed(){PT(this.clientSideRowModel)?this.logMissingRowModel(\"onGroupExpandedOrCollapsed\",\"clientSide\"):this.expansionService.onGroupExpandedOrCollapsed()}refreshClientSideRowModel(e){PT(this.clientSideRowModel)?this.logMissingRowModel(\"refreshClientSideRowModel\",\"clientSide\"):this.clientSideRowModel.refreshModel(e)}isAnimationFrameQueueEmpty(){return this.animationFrameService.isQueueEmpty()}flushAllAnimationFrames(){this.animationFrameService.flushAllFrames()}getRowNode(e){return this.rowModel.getRowNode(e)}getSizesForCurrentTheme(){return{rowHeight:this.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}}expandAll(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!0):this.logMissingRowModel(\"expandAll\",\"clientSide\",\"serverSide\")}collapseAll(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!1):this.logMissingRowModel(\"collapseAll\",\"clientSide\",\"serverSide\")}addRenderedRowListener(e,t,n){this.rowRenderer.addRenderedRowListener(e,t,n)}getQuickFilter(){return this.gos.get(\"quickFilterText\")}getAdvancedFilterModel(){return yD.__assertRegistered(\"@ag-grid-enterprise/advanced-filter\",\"api.getAdvancedFilterModel\",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null}setAdvancedFilterModel(e){this.filterManager.setAdvancedFilterModel(e)}showAdvancedFilterBuilder(){yD.__assertRegistered(\"@ag-grid-enterprise/advanced-filter\",\"api.setAdvancedFilterModel\",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder(\"api\")}setNodesSelected(e){if(!e.nodes.every((e=>e.rowPinned?(console.warn(\"AG Grid: cannot select pinned rows\"),!1):void 0!==e.id||(console.warn(\"AG Grid: cannot select node until id for node is known\"),!1))))return;const{nodes:t,source:n,newValue:r}=e,i=t;this.selectionService.setNodesSelected({nodes:i,source:null!=n?n:\"api\",newValue:r})}selectAll(e=\"apiSelectAll\"){this.selectionService.selectAllRowNodes({source:e})}deselectAll(e=\"apiSelectAll\"){this.selectionService.deselectAllRowNodes({source:e})}selectAllFiltered(e=\"apiSelectAllFiltered\"){this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})}deselectAllFiltered(e=\"apiSelectAllFiltered\"){this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})}getServerSideSelectionState(){return PT(this.serverSideRowModel)?(this.logMissingRowModel(\"getServerSideSelectionState\",\"serverSide\"),null):this.selectionService.getSelectionState()}setServerSideSelectionState(e){PT(this.serverSideRowModel)?this.logMissingRowModel(\"setServerSideSelectionState\",\"serverSide\"):this.selectionService.setSelectionState(e,\"api\")}selectAllOnCurrentPage(e=\"apiSelectAllCurrentPage\"){this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})}deselectAllOnCurrentPage(e=\"apiSelectAllCurrentPage\"){this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})}showLoadingOverlay(){this.overlayService.showLoadingOverlay()}showNoRowsOverlay(){this.overlayService.showNoRowsOverlay()}hideOverlay(){this.overlayService.hideOverlay()}getSelectedNodes(){return this.selectionService.getSelectedNodes()}getSelectedRows(){return this.selectionService.getSelectedRows()}getBestCostNodeSelection(){if(!PT(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel(\"getBestCostNodeSelection\",\"clientSide\")}getRenderedNodes(){return this.rowRenderer.getRenderedNodes()}ensureColumnVisible(e,t=\"auto\"){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)),\"ensureVisible\")}ensureIndexVisible(e,t){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)),\"ensureVisible\")}ensureNodeVisible(e,t=null){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)),\"ensureVisible\")}forEachLeafNode(e){PT(this.clientSideRowModel)?this.logMissingRowModel(\"forEachLeafNode\",\"clientSide\"):this.clientSideRowModel.forEachLeafNode(e)}forEachNode(e,t){this.rowModel.forEachNode(e,t)}forEachNodeAfterFilter(e){PT(this.clientSideRowModel)?this.logMissingRowModel(\"forEachNodeAfterFilter\",\"clientSide\"):this.clientSideRowModel.forEachNodeAfterFilter(e)}forEachNodeAfterFilterAndSort(e){PT(this.clientSideRowModel)?this.logMissingRowModel(\"forEachNodeAfterFilterAndSort\",\"clientSide\"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)}getFilterInstance(e,t){return nD(\"'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously.\"),this.filterManager.getFilterInstance(e,t)}getColumnFilterInstance(e){return this.filterManager.getColumnFilterInstance(e)}destroyFilter(e){const t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,\"api\")}getStatusPanel(e){if(yD.__assertRegistered(\"@ag-grid-enterprise/status-bar\",\"api.getStatusPanel\",this.context.getGridId()))return QN(this.statusBarService.getStatusPanel(e))}getColumnDef(e){const t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null}getColumnDefs(){return this.columnModel.getColumnDefs()}onFilterChanged(e=\"api\"){this.filterManager.onFilterChanged({source:e})}onSortChanged(){this.sortController.onSortChanged(\"api\")}setFilterModel(e){this.frameworkOverrides.wrapIncoming((()=>this.filterManager.setFilterModel(e)))}getFilterModel(){return this.filterManager.getFilterModel()}getColumnFilterModel(e){return this.filterManager.getColumnFilterModel(e)}setColumnFilterModel(e,t){return this.filterManager.setColumnFilterModel(e,t)}getFocusedCell(){return this.focusService.getFocusedCell()}clearFocusedCell(){return this.focusService.clearFocusedCell()}setFocusedCell(e,t,n){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:n,forceBrowserFocus:!0})}addRowDropZone(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)}removeRowDropZone(e){const t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)}getRowDropZoneParams(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)}assertSideBarLoaded(e){return yD.__assertRegistered(\"@ag-grid-enterprise/side-bar\",\"api.\"+e,this.context.getGridId())}isSideBarVisible(){return this.assertSideBarLoaded(\"isSideBarVisible\")&&this.sideBarService.getSideBarComp().isDisplayed()}setSideBarVisible(e){this.assertSideBarLoaded(\"setSideBarVisible\")&&this.sideBarService.getSideBarComp().setDisplayed(e)}setSideBarPosition(e){this.assertSideBarLoaded(\"setSideBarPosition\")&&this.sideBarService.getSideBarComp().setSideBarPosition(e)}openToolPanel(e){this.assertSideBarLoaded(\"openToolPanel\")&&this.sideBarService.getSideBarComp().openToolPanel(e,\"api\")}closeToolPanel(){this.assertSideBarLoaded(\"closeToolPanel\")&&this.sideBarService.getSideBarComp().close(\"api\")}getOpenedToolPanel(){return this.assertSideBarLoaded(\"getOpenedToolPanel\")?this.sideBarService.getSideBarComp().openedItem():null}refreshToolPanel(){this.assertSideBarLoaded(\"refreshToolPanel\")&&this.sideBarService.getSideBarComp().refresh()}isToolPanelShowing(){return this.assertSideBarLoaded(\"isToolPanelShowing\")&&this.sideBarService.getSideBarComp().isToolPanelShowing()}getToolPanelInstance(e){if(this.assertSideBarLoaded(\"getToolPanelInstance\"))return QN(this.sideBarService.getSideBarComp().getToolPanelInstance(e))}getSideBar(){if(this.assertSideBarLoaded(\"getSideBar\"))return this.sideBarService.getSideBarComp().getDef()}resetRowHeights(){if(NT(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn(\"AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.\");this.clientSideRowModel.resetRowHeights()}}setRowCount(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error(\"AG Grid: setRowCount cannot be used while using row grouping.\");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel(\"setRowCount\",\"infinite\",\"serverSide\")}onRowHeightChanged(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()}getValue(e,t){let n=this.columnModel.getPrimaryColumn(e);return PT(n)&&(n=this.columnModel.getGridColumn(e)),PT(n)?null:this.valueService.getValue(n,t)}addEventListener(e,t){this.apiEventService.addEventListener(e,t)}addGlobalListener(e){this.apiEventService.addGlobalListener(e)}removeEventListener(e,t){this.apiEventService.removeEventListener(e,t)}removeGlobalListener(e){this.apiEventService.removeGlobalListener(e)}dispatchEvent(e){this.eventService.dispatchEvent(e)}destroy(){const e=`See ${this.frameworkOverrides.getDocLink(\"grid-lifecycle/#grid-pre-destroyed\")}`;if(this.destroyCalled)return;const t={type:CR.EVENT_GRID_PRE_DESTROYED,state:this.getState()};this.dispatchEvent(t),this.destroyCalled=!0;const n=this.ctrlsService.getGridCtrl();n&&n.destroyGridUi(),this.context.destroy(),XT(this,[\"isDestroyed\"],e)}isDestroyed(){return this.destroyCalled}resetQuickFilter(){this.filterManager.resetQuickFilterCache()}getCellRanges(){return this.rangeService?this.rangeService.getCellRanges():(yD.__assertRegistered(\"@ag-grid-enterprise/range-selection\",\"api.getCellRanges\",this.context.getGridId()),null)}addCellRange(e){this.rangeService?this.rangeService.addCellRange(e):yD.__assertRegistered(\"@ag-grid-enterprise/range-selection\",\"api.addCellRange\",this.context.getGridId())}clearRangeSelection(){this.rangeService&&this.rangeService.removeAllCellRanges(),yD.__assertRegistered(\"@ag-grid-enterprise/range-selection\",\"gridApi.clearRangeSelection\",this.context.getGridId())}undoCellEditing(){this.undoRedoService.undo(\"api\")}redoCellEditing(){this.undoRedoService.redo(\"api\")}getCurrentUndoSize(){return this.undoRedoService.getCurrentUndoStackSize()}getCurrentRedoSize(){return this.undoRedoService.getCurrentRedoStackSize()}assertChart(e,t){if(yD.__assertRegistered(\"@ag-grid-enterprise/charts\",\"api.\"+e,this.context.getGridId()))return this.frameworkOverrides.wrapIncoming((()=>t()))}getChartModels(){return this.assertChart(\"getChartModels\",(()=>this.chartService.getChartModels()))}getChartRef(e){return this.assertChart(\"getChartRef\",(()=>this.chartService.getChartRef(e)))}getChartImageDataURL(e){return this.assertChart(\"getChartImageDataURL\",(()=>this.chartService.getChartImageDataURL(e)))}downloadChart(e){return this.assertChart(\"downloadChart\",(()=>this.chartService.downloadChart(e)))}openChartToolPanel(e){return this.assertChart(\"openChartToolPanel\",(()=>this.chartService.openChartToolPanel(e)))}closeChartToolPanel(e){return this.assertChart(\"closeChartToolPanel\",(()=>this.chartService.closeChartToolPanel(e.chartId)))}createRangeChart(e){return this.assertChart(\"createRangeChart\",(()=>this.chartService.createRangeChart(e)))}createPivotChart(e){return this.assertChart(\"createPivotChart\",(()=>this.chartService.createPivotChart(e)))}createCrossFilterChart(e){return this.assertChart(\"createCrossFilterChart\",(()=>this.chartService.createCrossFilterChart(e)))}updateChart(e){return this.assertChart(\"updateChart\",(()=>this.chartService.updateChart(e)))}restoreChart(e,t){return this.assertChart(\"restoreChart\",(()=>this.chartService.restoreChart(e,t)))}assertClipboard(e,t){yD.__assertRegistered(\"@ag-grid-enterprise/clipboard\",\"api\"+e,this.context.getGridId())&&t()}copyToClipboard(e){this.assertClipboard(\"copyToClipboard\",(()=>this.clipboardService.copyToClipboard(e)))}cutToClipboard(e){this.assertClipboard(\"cutToClipboard\",(()=>this.clipboardService.cutToClipboard(e)))}copySelectedRowsToClipboard(e){this.assertClipboard(\"copySelectedRowsToClipboard\",(()=>this.clipboardService.copySelectedRowsToClipboard(e)))}copySelectedRangeToClipboard(e){this.assertClipboard(\"copySelectedRangeToClipboard\",(()=>this.clipboardService.copySelectedRangeToClipboard(e)))}copySelectedRangeDown(){this.assertClipboard(\"copySelectedRangeDown\",(()=>this.clipboardService.copyRangeDown()))}pasteFromClipboard(){this.assertClipboard(\"pasteFromClipboard\",(()=>this.clipboardService.pasteFromClipboard()))}showColumnMenuAfterButtonClick(e,t){nD(\"'showColumnMenuAfterButtonClick' is deprecated. Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere.\");const n=this.columnModel.getGridColumn(e);this.menuService.showColumnMenu({column:n,buttonElement:t,positionBy:\"button\"})}showColumnMenuAfterMouseClick(e,t){nD(\"'showColumnMenuAfterMouseClick' is deprecated. Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere.\");let n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuService.showColumnMenu({column:n,mouseEvent:t,positionBy:\"mouse\"}):console.error(`AG Grid: column '${e}' not found`)}showColumnChooser(e){this.menuService.showColumnChooser({chooserParams:e})}showColumnFilter(e){const t=this.columnModel.getGridColumn(e);t?this.menuService.showFilterMenu({column:t,containerType:\"columnFilter\",positionBy:\"auto\"}):console.error(`AG Grid: column '${e}' not found`)}showColumnMenu(e){const t=this.columnModel.getGridColumn(e);t?this.menuService.showColumnMenu({column:t,positionBy:\"auto\"}):console.error(`AG Grid: column '${e}' not found`)}hidePopupMenu(){this.menuService.hidePopupMenu()}hideColumnChooser(){this.menuService.hideColumnChooser()}tabToNextCell(e){return this.navigationService.tabToNextCell(!1,e)}tabToPreviousCell(e){return this.navigationService.tabToNextCell(!0,e)}getCellRendererInstances(e={}){return this.rowRenderer.getCellRendererInstances(e).map(QN)}getCellEditorInstances(e={}){return this.rowRenderer.getCellEditorInstances(e).map(QN)}getEditingCells(){return this.rowRenderer.getEditingCells()}stopEditing(e=!1){this.rowRenderer.stopEditing(e)}startEditingCell(e){const t=this.columnModel.getGridColumn(e.colKey);if(!t)return void console.warn(`AG Grid: no column found for ${e.colKey}`);const n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.ensureIndexVisible(e.rowIndex),this.ensureColumnVisible(e.colKey);const r=this.navigationService.getCellByPosition(n);r&&(this.focusService.isCellFocused(n)||this.focusService.setFocusedCell(n),r.startRowOrCellEdit(e.key))}addAggFunc(e,t){this.logDeprecation(\"v31.1\",\"addAggFunc(key, func)\",\"addAggFuncs({ key: func })\"),this.aggFuncService&&this.aggFuncService.addAggFuncs({key:t})}addAggFuncs(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)}clearAggFuncs(){this.aggFuncService&&this.aggFuncService.clear()}applyServerSideTransaction(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);this.logMissingRowModel(\"applyServerSideTransaction\",\"serverSide\")}applyServerSideTransactionAsync(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel(\"applyServerSideTransactionAsync\",\"serverSide\")}applyServerSideRowData(e){var t,n;const r=null!=(t=e.startRow)?t:0,i=null!=(n=e.route)?n:[];r<0?console.warn(`AG Grid: invalid value ${e.startRow} for startRow, the value should be >= 0`):this.serverSideRowModel?this.serverSideRowModel.applyRowData(e.successParams,r,i):this.logMissingRowModel(\"setServerSideDatasource\",\"serverSide\")}retryServerSideLoads(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel(\"retryServerSideLoads\",\"serverSide\")}flushServerSideAsyncTransactions(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel(\"flushServerSideAsyncTransactions\",\"serverSide\")}applyTransaction(e){if(this.clientSideRowModel)return this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.updateRowData(e)));this.logMissingRowModel(\"applyTransaction\",\"clientSide\")}applyTransactionAsync(e,t){this.clientSideRowModel?this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.batchUpdateRowData(e,t))):this.logMissingRowModel(\"applyTransactionAsync\",\"clientSide\")}flushAsyncTransactions(){this.clientSideRowModel?this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.flushAsyncTransactions())):this.logMissingRowModel(\"flushAsyncTransactions\",\"clientSide\")}refreshInfiniteCache(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel(\"refreshInfiniteCache\",\"infinite\")}purgeInfiniteCache(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel(\"purgeInfiniteCache\",\"infinite\")}refreshServerSide(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel(\"refreshServerSide\",\"serverSide\")}getServerSideGroupLevelState(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel(\"getServerSideGroupLevelState\",\"serverSide\"),[])}getInfiniteRowCount(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel(\"getInfiniteRowCount\",\"infinite\")}isLastRowIndexKnown(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel(\"isLastRowIndexKnown\",\"infinite\")}getCacheBlockState(){return this.rowNodeBlockLoader.getBlockState()}getFirstDisplayedRow(){return this.logDeprecation(\"v31.1\",\"getFirstDisplayedRow\",\"getFirstDisplayedRowIndex\"),this.getFirstDisplayedRowIndex()}getFirstDisplayedRowIndex(){return this.rowRenderer.getFirstVirtualRenderedRow()}getLastDisplayedRow(){return this.logDeprecation(\"v31.1\",\"getLastDisplayedRow\",\"getLastDisplayedRowIndex\"),this.getLastDisplayedRowIndex()}getLastDisplayedRowIndex(){return this.rowRenderer.getLastVirtualRenderedRow()}getDisplayedRowAtIndex(e){return this.rowModel.getRow(e)}getDisplayedRowCount(){return this.rowModel.getRowCount()}paginationIsLastPageFound(){return this.paginationProxy.isLastPageFound()}paginationGetPageSize(){return this.paginationProxy.getPageSize()}paginationGetCurrentPage(){return this.paginationProxy.getCurrentPage()}paginationGetTotalPages(){return this.paginationProxy.getTotalPages()}paginationGetRowCount(){return this.paginationProxy.getMasterRowCount()}paginationGoToNextPage(){this.paginationProxy.goToNextPage()}paginationGoToPreviousPage(){this.paginationProxy.goToPreviousPage()}paginationGoToFirstPage(){this.paginationProxy.goToFirstPage()}paginationGoToLastPage(){this.paginationProxy.goToLastPage()}paginationGoToPage(e){this.paginationProxy.goToPage(e)}sizeColumnsToFit(e){\"number\"==typeof e?this.columnModel.sizeColumnsToFit(e,\"api\"):this.gridBodyCtrl.sizeColumnsToFit(e)}setColumnGroupOpened(e,t){this.columnModel.setColumnGroupOpened(e,t,\"api\")}getColumnGroup(e,t){return this.columnModel.getColumnGroup(e,t)}getProvidedColumnGroup(e){return this.columnModel.getProvidedColumnGroup(e)}getDisplayNameForColumn(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||\"\"}getDisplayNameForColumnGroup(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||\"\"}getColumn(e){return this.columnModel.getPrimaryColumn(e)}getColumns(){return this.columnModel.getAllPrimaryColumns()}applyColumnState(e){return this.columnModel.applyColumnState(e,\"api\")}getColumnState(){return this.columnModel.getColumnState()}resetColumnState(){this.columnModel.resetColumnState(\"api\")}getColumnGroupState(){return this.columnModel.getColumnGroupState()}setColumnGroupState(e){this.columnModel.setColumnGroupState(e,\"api\")}resetColumnGroupState(){this.columnModel.resetColumnGroupState(\"api\")}isPinning(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()}isPinningLeft(){return this.columnModel.isPinningLeft()}isPinningRight(){return this.columnModel.isPinningRight()}getDisplayedColAfter(e){return this.columnModel.getDisplayedColAfter(e)}getDisplayedColBefore(e){return this.columnModel.getDisplayedColBefore(e)}setColumnVisible(e,t){this.logDeprecation(\"v31.1\",\"setColumnVisible(key,visible)\",\"setColumnsVisible([key],visible)\"),this.columnModel.setColumnsVisible([e],t,\"api\")}setColumnsVisible(e,t){this.columnModel.setColumnsVisible(e,t,\"api\")}setColumnPinned(e,t){this.logDeprecation(\"v31.1\",\"setColumnPinned(key,pinned)\",\"setColumnsPinned([key],pinned)\"),this.columnModel.setColumnsPinned([e],t,\"api\")}setColumnsPinned(e,t){this.columnModel.setColumnsPinned(e,t,\"api\")}getAllGridColumns(){return this.columnModel.getAllGridColumns()}getDisplayedLeftColumns(){return this.columnModel.getDisplayedLeftColumns()}getDisplayedCenterColumns(){return this.columnModel.getDisplayedCenterColumns()}getDisplayedRightColumns(){return this.columnModel.getDisplayedRightColumns()}getAllDisplayedColumns(){return this.columnModel.getAllDisplayedColumns()}getAllDisplayedVirtualColumns(){return this.columnModel.getViewportColumns()}moveColumn(e,t){this.logDeprecation(\"v31.1\",\"moveColumn(key, toIndex)\",\"moveColumns([key], toIndex)\"),this.columnModel.moveColumns([e],t,\"api\")}moveColumnByIndex(e,t){this.columnModel.moveColumnByIndex(e,t,\"api\")}moveColumns(e,t){this.columnModel.moveColumns(e,t,\"api\")}moveRowGroupColumn(e,t){this.columnModel.moveRowGroupColumn(e,t,\"api\")}setColumnAggFunc(e,t){this.columnModel.setColumnAggFunc(e,t,\"api\")}setColumnWidth(e,t,n=!0,r=\"api\"){this.logDeprecation(\"v31.1\",\"setColumnWidth(col, width)\",\"setColumnWidths([{key: col, newWidth: width}])\"),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,r)}setColumnWidths(e,t=!0,n=\"api\"){this.columnModel.setColumnWidths(e,!1,t,n)}isPivotMode(){return this.columnModel.isPivotMode()}getPivotResultColumn(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)}setValueColumns(e){this.columnModel.setValueColumns(e,\"api\")}getValueColumns(){return this.columnModel.getValueColumns()}removeValueColumn(e){this.logDeprecation(\"v31.1\",\"removeValueColumn(colKey)\",\"removeValueColumns([colKey])\"),this.columnModel.removeValueColumns([e],\"api\")}removeValueColumns(e){this.columnModel.removeValueColumns(e,\"api\")}addValueColumn(e){this.logDeprecation(\"v31.1\",\"addValueColumn(colKey)\",\"addValueColumns([colKey])\"),this.columnModel.addValueColumns([e],\"api\")}addValueColumns(e){this.columnModel.addValueColumns(e,\"api\")}setRowGroupColumns(e){this.columnModel.setRowGroupColumns(e,\"api\")}removeRowGroupColumn(e){this.logDeprecation(\"v31.1\",\"removeRowGroupColumn(colKey)\",\"removeRowGroupColumns([colKey])\"),this.columnModel.removeRowGroupColumns([e],\"api\")}removeRowGroupColumns(e){this.columnModel.removeRowGroupColumns(e,\"api\")}addRowGroupColumn(e){this.logDeprecation(\"v31.1\",\"addRowGroupColumn(colKey)\",\"addRowGroupColumns([colKey])\"),this.columnModel.addRowGroupColumns([e],\"api\")}addRowGroupColumns(e){this.columnModel.addRowGroupColumns(e,\"api\")}getRowGroupColumns(){return this.columnModel.getRowGroupColumns()}setPivotColumns(e){this.columnModel.setPivotColumns(e,\"api\")}removePivotColumn(e){this.logDeprecation(\"v31.1\",\"removePivotColumn(colKey)\",\"removePivotColumns([colKey])\"),this.columnModel.removePivotColumns([e],\"api\")}removePivotColumns(e){this.columnModel.removePivotColumns(e,\"api\")}addPivotColumn(e){this.logDeprecation(\"v31.1\",\"addPivotColumn(colKey)\",\"addPivotColumns([colKey])\"),this.columnModel.addPivotColumns([e],\"api\")}addPivotColumns(e){this.columnModel.addPivotColumns(e,\"api\")}getPivotColumns(){return this.columnModel.getPivotColumns()}getLeftDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeLeft()}getCenterDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeCentre()}getRightDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeRight()}getAllDisplayedColumnGroups(){return this.columnModel.getAllDisplayedTrees()}autoSizeColumn(e,t){return this.logDeprecation(\"v31.1\",\"autoSizeColumn(key, skipHeader)\",\"autoSizeColumns([key], skipHeader)\"),this.columnModel.autoSizeColumns({columns:[e],skipHeader:t,source:\"api\"})}autoSizeColumns(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t,source:\"api\"})}autoSizeAllColumns(e){this.columnModel.autoSizeAllColumns(\"api\",e)}setPivotResultColumns(e){this.columnModel.setSecondaryColumns(e,\"api\")}getPivotResultColumns(){return this.columnModel.getSecondaryColumns()}getState(){return this.stateService.getState()}getGridOption(e){return this.gos.get(e)}setGridOption(e,t){this.updateGridOptions({[e]:t})}updateGridOptions(e){this.gos.updateGridOptions({options:e})}__internalUpdateGridOptions(e){this.gos.updateGridOptions({options:e,source:\"gridOptionsUpdated\"})}deprecatedUpdateGridOption(e,t){nD(`set${e.charAt(0).toUpperCase()}${e.slice(1,e.length)} is deprecated. Please use 'api.setGridOption('${e}', newValue)' or 'api.updateGridOptions({ ${e}: newValue })' instead.`),this.setGridOption(e,t)}setPivotMode(e){this.deprecatedUpdateGridOption(\"pivotMode\",e)}setPinnedTopRowData(e){this.deprecatedUpdateGridOption(\"pinnedTopRowData\",e)}setPinnedBottomRowData(e){this.deprecatedUpdateGridOption(\"pinnedBottomRowData\",e)}setPopupParent(e){this.deprecatedUpdateGridOption(\"popupParent\",e)}setSuppressModelUpdateAfterUpdateTransaction(e){this.deprecatedUpdateGridOption(\"suppressModelUpdateAfterUpdateTransaction\",e)}setDataTypeDefinitions(e){this.deprecatedUpdateGridOption(\"dataTypeDefinitions\",e)}setPagination(e){this.deprecatedUpdateGridOption(\"pagination\",e)}paginationSetPageSize(e){this.deprecatedUpdateGridOption(\"paginationPageSize\",e)}setSideBar(e){this.deprecatedUpdateGridOption(\"sideBar\",e)}setSuppressClipboardPaste(e){this.deprecatedUpdateGridOption(\"suppressClipboardPaste\",e)}setGroupRemoveSingleChildren(e){this.deprecatedUpdateGridOption(\"groupRemoveSingleChildren\",e)}setGroupRemoveLowestSingleChildren(e){this.deprecatedUpdateGridOption(\"groupRemoveLowestSingleChildren\",e)}setGroupDisplayType(e){this.deprecatedUpdateGridOption(\"groupDisplayType\",e)}setGroupIncludeFooter(e){this.deprecatedUpdateGridOption(\"groupIncludeFooter\",e)}setGroupIncludeTotalFooter(e){this.deprecatedUpdateGridOption(\"groupIncludeTotalFooter\",e)}setRowClass(e){this.deprecatedUpdateGridOption(\"rowClass\",e)}setDeltaSort(e){this.deprecatedUpdateGridOption(\"deltaSort\",e)}setSuppressRowDrag(e){this.deprecatedUpdateGridOption(\"suppressRowDrag\",e)}setSuppressMoveWhenRowDragging(e){this.deprecatedUpdateGridOption(\"suppressMoveWhenRowDragging\",e)}setSuppressRowClickSelection(e){this.deprecatedUpdateGridOption(\"suppressRowClickSelection\",e)}setEnableAdvancedFilter(e){this.deprecatedUpdateGridOption(\"enableAdvancedFilter\",e)}setIncludeHiddenColumnsInAdvancedFilter(e){this.deprecatedUpdateGridOption(\"includeHiddenColumnsInAdvancedFilter\",e)}setAdvancedFilterParent(e){this.deprecatedUpdateGridOption(\"advancedFilterParent\",e)}setAdvancedFilterBuilderParams(e){this.deprecatedUpdateGridOption(\"advancedFilterBuilderParams\",e)}setQuickFilter(e){nD(\"setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead.\"),this.gos.updateGridOptions({options:{quickFilterText:e}})}setExcludeHiddenColumnsFromQuickFilter(e){this.deprecatedUpdateGridOption(\"includeHiddenColumnsInQuickFilter\",!e)}setIncludeHiddenColumnsInQuickFilter(e){this.deprecatedUpdateGridOption(\"includeHiddenColumnsInQuickFilter\",e)}setQuickFilterParser(e){this.deprecatedUpdateGridOption(\"quickFilterParser\",e)}setQuickFilterMatcher(e){this.deprecatedUpdateGridOption(\"quickFilterMatcher\",e)}setAlwaysShowHorizontalScroll(e){this.deprecatedUpdateGridOption(\"alwaysShowHorizontalScroll\",e)}setAlwaysShowVerticalScroll(e){this.deprecatedUpdateGridOption(\"alwaysShowVerticalScroll\",e)}setFunctionsReadOnly(e){this.deprecatedUpdateGridOption(\"functionsReadOnly\",e)}setColumnDefs(e,t=\"api\"){nD(\"setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead.\"),this.gos.updateGridOptions({options:{columnDefs:e},source:t})}setAutoGroupColumnDef(e,t=\"api\"){nD(\"setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead.\"),this.gos.updateGridOptions({options:{autoGroupColumnDef:e},source:t})}setDefaultColDef(e,t=\"api\"){nD(\"setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead.\"),this.gos.updateGridOptions({options:{defaultColDef:e},source:t})}setColumnTypes(e,t=\"api\"){nD(\"setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead.\"),this.gos.updateGridOptions({options:{columnTypes:e},source:t})}setTreeData(e){this.deprecatedUpdateGridOption(\"treeData\",e)}setServerSideDatasource(e){this.deprecatedUpdateGridOption(\"serverSideDatasource\",e)}setCacheBlockSize(e){this.deprecatedUpdateGridOption(\"cacheBlockSize\",e)}setDatasource(e){this.deprecatedUpdateGridOption(\"datasource\",e)}setViewportDatasource(e){this.deprecatedUpdateGridOption(\"viewportDatasource\",e)}setRowData(e){this.deprecatedUpdateGridOption(\"rowData\",e)}setEnableCellTextSelection(e){this.deprecatedUpdateGridOption(\"enableCellTextSelection\",e)}setHeaderHeight(e){this.deprecatedUpdateGridOption(\"headerHeight\",e)}setDomLayout(e){this.deprecatedUpdateGridOption(\"domLayout\",e)}setFillHandleDirection(e){this.deprecatedUpdateGridOption(\"fillHandleDirection\",e)}setGroupHeaderHeight(e){this.deprecatedUpdateGridOption(\"groupHeaderHeight\",e)}setFloatingFiltersHeight(e){this.deprecatedUpdateGridOption(\"floatingFiltersHeight\",e)}setPivotHeaderHeight(e){this.deprecatedUpdateGridOption(\"pivotHeaderHeight\",e)}setPivotGroupHeaderHeight(e){this.deprecatedUpdateGridOption(\"pivotGroupHeaderHeight\",e)}setAnimateRows(e){this.deprecatedUpdateGridOption(\"animateRows\",e)}setIsExternalFilterPresent(e){this.deprecatedUpdateGridOption(\"isExternalFilterPresent\",e)}setDoesExternalFilterPass(e){this.deprecatedUpdateGridOption(\"doesExternalFilterPass\",e)}setNavigateToNextCell(e){this.deprecatedUpdateGridOption(\"navigateToNextCell\",e)}setTabToNextCell(e){this.deprecatedUpdateGridOption(\"tabToNextCell\",e)}setTabToNextHeader(e){this.deprecatedUpdateGridOption(\"tabToNextHeader\",e)}setNavigateToNextHeader(e){this.deprecatedUpdateGridOption(\"navigateToNextHeader\",e)}setRowGroupPanelShow(e){this.deprecatedUpdateGridOption(\"rowGroupPanelShow\",e)}setGetGroupRowAgg(e){this.deprecatedUpdateGridOption(\"getGroupRowAgg\",e)}setGetBusinessKeyForNode(e){this.deprecatedUpdateGridOption(\"getBusinessKeyForNode\",e)}setGetChildCount(e){this.deprecatedUpdateGridOption(\"getChildCount\",e)}setProcessRowPostCreate(e){this.deprecatedUpdateGridOption(\"processRowPostCreate\",e)}setGetRowId(e){nD(\"getRowId is a static property and can no longer be updated.\")}setGetRowClass(e){this.deprecatedUpdateGridOption(\"getRowClass\",e)}setIsFullWidthRow(e){this.deprecatedUpdateGridOption(\"isFullWidthRow\",e)}setIsRowSelectable(e){this.deprecatedUpdateGridOption(\"isRowSelectable\",e)}setIsRowMaster(e){this.deprecatedUpdateGridOption(\"isRowMaster\",e)}setPostSortRows(e){this.deprecatedUpdateGridOption(\"postSortRows\",e)}setGetDocument(e){this.deprecatedUpdateGridOption(\"getDocument\",e)}setGetContextMenuItems(e){this.deprecatedUpdateGridOption(\"getContextMenuItems\",e)}setGetMainMenuItems(e){this.deprecatedUpdateGridOption(\"getMainMenuItems\",e)}setProcessCellForClipboard(e){this.deprecatedUpdateGridOption(\"processCellForClipboard\",e)}setSendToClipboard(e){this.deprecatedUpdateGridOption(\"sendToClipboard\",e)}setProcessCellFromClipboard(e){this.deprecatedUpdateGridOption(\"processCellFromClipboard\",e)}setProcessPivotResultColDef(e){this.deprecatedUpdateGridOption(\"processPivotResultColDef\",e)}setProcessPivotResultColGroupDef(e){this.deprecatedUpdateGridOption(\"processPivotResultColGroupDef\",e)}setPostProcessPopup(e){this.deprecatedUpdateGridOption(\"postProcessPopup\",e)}setInitialGroupOrderComparator(e){this.deprecatedUpdateGridOption(\"initialGroupOrderComparator\",e)}setGetChartToolbarItems(e){this.deprecatedUpdateGridOption(\"getChartToolbarItems\",e)}setPaginationNumberFormatter(e){this.deprecatedUpdateGridOption(\"paginationNumberFormatter\",e)}setGetServerSideGroupLevelParams(e){this.deprecatedUpdateGridOption(\"getServerSideGroupLevelParams\",e)}setIsServerSideGroupOpenByDefault(e){this.deprecatedUpdateGridOption(\"isServerSideGroupOpenByDefault\",e)}setIsApplyServerSideTransaction(e){this.deprecatedUpdateGridOption(\"isApplyServerSideTransaction\",e)}setIsServerSideGroup(e){this.deprecatedUpdateGridOption(\"isServerSideGroup\",e)}setGetServerSideGroupKey(e){this.deprecatedUpdateGridOption(\"getServerSideGroupKey\",e)}setGetRowStyle(e){this.deprecatedUpdateGridOption(\"getRowStyle\",e)}setGetRowHeight(e){this.deprecatedUpdateGridOption(\"getRowHeight\",e)}};MT([AD(\"csvCreator\")],XN.prototype,\"csvCreator\",2),MT([AD(\"excelCreator\")],XN.prototype,\"excelCreator\",2),MT([xD(\"rowRenderer\")],XN.prototype,\"rowRenderer\",2),MT([xD(\"navigationService\")],XN.prototype,\"navigationService\",2),MT([xD(\"filterManager\")],XN.prototype,\"filterManager\",2),MT([xD(\"columnModel\")],XN.prototype,\"columnModel\",2),MT([xD(\"selectionService\")],XN.prototype,\"selectionService\",2),MT([xD(\"gridOptionsService\")],XN.prototype,\"gos\",2),MT([xD(\"valueService\")],XN.prototype,\"valueService\",2),MT([xD(\"alignedGridsService\")],XN.prototype,\"alignedGridsService\",2),MT([xD(\"eventService\")],XN.prototype,\"eventService\",2),MT([xD(\"pinnedRowModel\")],XN.prototype,\"pinnedRowModel\",2),MT([xD(\"context\")],XN.prototype,\"context\",2),MT([xD(\"rowModel\")],XN.prototype,\"rowModel\",2),MT([xD(\"sortController\")],XN.prototype,\"sortController\",2),MT([xD(\"paginationProxy\")],XN.prototype,\"paginationProxy\",2),MT([xD(\"focusService\")],XN.prototype,\"focusService\",2),MT([xD(\"dragAndDropService\")],XN.prototype,\"dragAndDropService\",2),MT([AD(\"rangeService\")],XN.prototype,\"rangeService\",2),MT([AD(\"clipboardService\")],XN.prototype,\"clipboardService\",2),MT([AD(\"aggFuncService\")],XN.prototype,\"aggFuncService\",2),MT([xD(\"menuService\")],XN.prototype,\"menuService\",2),MT([xD(\"valueCache\")],XN.prototype,\"valueCache\",2),MT([xD(\"animationFrameService\")],XN.prototype,\"animationFrameService\",2),MT([AD(\"statusBarService\")],XN.prototype,\"statusBarService\",2),MT([AD(\"chartService\")],XN.prototype,\"chartService\",2),MT([AD(\"undoRedoService\")],XN.prototype,\"undoRedoService\",2),MT([AD(\"rowNodeBlockLoader\")],XN.prototype,\"rowNodeBlockLoader\",2),MT([AD(\"ssrmTransactionManager\")],XN.prototype,\"serverSideTransactionManager\",2),MT([xD(\"ctrlsService\")],XN.prototype,\"ctrlsService\",2),MT([xD(\"overlayService\")],XN.prototype,\"overlayService\",2),MT([AD(\"sideBarService\")],XN.prototype,\"sideBarService\",2),MT([xD(\"stateService\")],XN.prototype,\"stateService\",2),MT([xD(\"expansionService\")],XN.prototype,\"expansionService\",2),MT([xD(\"apiEventService\")],XN.prototype,\"apiEventService\",2),MT([xD(\"frameworkOverrides\")],XN.prototype,\"frameworkOverrides\",2),MT([CD],XN.prototype,\"init\",1),XN=MT([ED(\"gridApi\")],XN);var ZN=class extends vR{constructor(){super(...arguments),this.quickFilter=null,this.quickFilterParts=null}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VISIBLE,(()=>{this.gridOptionsService.get(\"includeHiddenColumnsInQuickFilter\")||this.resetQuickFilterCache()})),this.addManagedPropertyListener(\"quickFilterText\",(e=>this.setQuickFilter(e.currentValue))),this.addManagedPropertyListener(\"includeHiddenColumnsInQuickFilter\",(()=>this.onIncludeHiddenColumnsInQuickFilterChanged())),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get(\"quickFilterText\")),this.parser=this.gridOptionsService.get(\"quickFilterParser\"),this.matcher=this.gridOptionsService.get(\"quickFilterMatcher\"),this.setQuickFilterParts(),this.addManagedPropertyListeners([\"quickFilterMatcher\",\"quickFilterParser\"],(()=>this.setQuickFilterParserAndMatcher()))}isQuickFilterPresent(){return null!==this.quickFilter}doesRowPassQuickFilter(e){const t=this.gridOptionsService.get(\"cacheQuickFilter\");return this.matcher?this.doesRowPassQuickFilterMatcher(t,e):this.quickFilterParts.every((n=>t?this.doesRowPassQuickFilterCache(e,n):this.doesRowPassQuickFilterNoCache(e,n)))}resetQuickFilterCache(){this.rowModel.forEachNode((e=>e.quickFilterAggregateText=null))}setQuickFilterParts(){const{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(\" \"):null}parseQuickFilter(e){return NT(e)?this.gridOptionsService.isRowModelType(\"clientSide\")?e.toUpperCase():(console.warn(\"AG Grid - Quick filtering only works with the Client-Side Row Model\"),null):null}setQuickFilter(e){if(null!=e&&\"string\"!=typeof e)return void console.warn(\"AG Grid - Grid option quickFilterText only supports string inputs, received: \"+typeof e);const t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.dispatchEvent({type:ZN.EVENT_QUICK_FILTER_CHANGED}))}setQuickFilterParserAndMatcher(){const e=this.gridOptionsService.get(\"quickFilterParser\"),t=this.gridOptionsService.get(\"quickFilterMatcher\"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setQuickFilterParts(),this.dispatchEvent({type:ZN.EVENT_QUICK_FILTER_CHANGED}))}onIncludeHiddenColumnsInQuickFilterChanged(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:ZN.EVENT_QUICK_FILTER_CHANGED})}doesRowPassQuickFilterNoCache(e,t){return this.columnModel.getAllColumnsForQuickFilter().some((n=>{const r=this.getQuickFilterTextForColumn(n,e);return NT(r)&&r.indexOf(t)>=0}))}doesRowPassQuickFilterCache(e,t){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassQuickFilterMatcher(e,t){let n;e?(this.checkGenerateQuickFilterAggregateText(t),n=t.quickFilterAggregateText):n=this.getQuickFilterAggregateText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateQuickFilterAggregateText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))}getQuickFilterTextForColumn(e,t){let n=this.valueService.getValue(e,t,!0);const r=e.getColDef();if(r.getQuickFilterText){const i=this.gridOptionsService.addGridCommonParams({value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return NT(n)?n.toString().toUpperCase():null}getQuickFilterAggregateText(e){const t=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((n=>{const r=this.getQuickFilterTextForColumn(n,e);NT(r)&&t.push(r)})),t.join(ZN.QUICK_FILTER_SEPARATOR)}};ZN.EVENT_QUICK_FILTER_CHANGED=\"quickFilterChanged\",ZN.QUICK_FILTER_SEPARATOR=\"\\n\",MT([xD(\"valueService\")],ZN.prototype,\"valueService\",2),MT([xD(\"columnModel\")],ZN.prototype,\"columnModel\",2),MT([xD(\"rowModel\")],ZN.prototype,\"rowModel\",2),MT([CD],ZN.prototype,\"postConstruct\",1),ZN=MT([ED(\"quickFilterService\")],ZN);var JN=class extends vR{constructor(){super(...arguments),this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue=[]}init(){var e,t,n;this.addManagedListener(this.eventService,CR.EVENT_GRID_COLUMNS_CHANGED,(()=>this.onColumnsChanged())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VALUE_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateAdvancedFilterColumns())),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VISIBLE,(()=>this.updateAdvancedFilterColumns())),this.addManagedListener(this.eventService,CR.EVENT_ROW_DATA_UPDATED,(()=>this.onNewRowsLoaded(\"rowDataUpdated\"))),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners([\"isExternalFilterPresent\",\"doesExternalFilterPass\"],(()=>{this.onFilterChanged({source:\"api\"})})),this.updateAggFiltering(),this.addManagedPropertyListener(\"groupAggFiltering\",(()=>{this.updateAggFiltering(),this.onFilterChanged()})),this.addManagedPropertyListener(\"advancedFilterModel\",(e=>this.setAdvancedFilterModel(e.currentValue))),this.addManagedListener(this.eventService,CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(({enabled:e})=>this.onAdvancedFilterEnabledChanged(e))),this.addManagedListener(this.eventService,CR.EVENT_DATA_TYPES_INFERRED,(()=>this.processFilterModelUpdateQueue())),this.addManagedListener(this.quickFilterService,ZN.EVENT_QUICK_FILTER_CHANGED,(()=>this.onFilterChanged({source:\"quickFilter\"}))),this.initialFilterModel=TT({},null!=(n=null==(t=null==(e=this.gridOptionsService.get(\"initialState\"))?void 0:e.filter)?void 0:t.filterModel)?n:{})}isExternalFilterPresentCallback(){const e=this.gridOptionsService.getCallback(\"isExternalFilterPresent\");return\"function\"==typeof e&&e({})}doesExternalFilterPass(e){const t=this.gridOptionsService.get(\"doesExternalFilterPass\");return\"function\"==typeof t&&t(e)}setFilterModel(e,t=\"api\"){if(this.isAdvancedFilterEnabled())return void this.warnAdvancedFilters();if(this.dataTypeService.isPendingInference())return void this.filterModelUpdateQueue.push({model:e,source:t});const n=[],r=this.getFilterModel();if(e){const t=Ak(Object.keys(e));this.allColumnFilters.forEach(((r,i)=>{const o=e[i];n.push(this.setModelOnFilterWrapper(r.filterPromise,o)),t.delete(i)})),t.forEach((t=>{const r=this.columnModel.getPrimaryColumn(t)||this.columnModel.getGridColumn(t);if(!r)return void console.warn(\"AG Grid: setFilterModel() - no column found for colId: \"+t);if(!r.isFilterAllowed())return void console.warn(\"AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: \"+t);const i=this.getOrCreateFilterWrapper(r,\"NO_UI\");i?n.push(this.setModelOnFilterWrapper(i.filterPromise,e[t])):console.warn(\"AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: \"+t)}))}else this.allColumnFilters.forEach((e=>{n.push(this.setModelOnFilterWrapper(e.filterPromise,null))}));Rk.all(n).then((()=>{const e=this.getFilterModel(),n=[];this.allColumnFilters.forEach(((t,i)=>{const o=r?r[i]:null,a=e?e[i]:null;Tk.jsonEquals(o,a)||n.push(t.column)})),n.length>0&&this.onFilterChanged({columns:n,source:t})}))}setModelOnFilterWrapper(e,t){return new Rk((n=>{e.then((e=>{\"function\"!=typeof e.setModel&&(console.warn(\"AG Grid: filter missing setModel method, which is needed for setFilterModel\"),n()),(e.setModel(t)||Rk.resolve()).then((()=>n()))}))}))}getFilterModel(){const e={};return this.allColumnFilters.forEach(((t,n)=>{const r=this.getModelFromFilterWrapper(t);NT(r)&&(e[n]=r)})),e}getModelFromFilterWrapper(e){var t;const n=e.filterPromise.resolveNow(null,(e=>e));return null==n?null!=(t=this.initialFilterModel[e.column.getColId()])?t:null:\"function\"!=typeof n.getModel?(console.warn(\"AG Grid: filter API missing getModel method, which is needed for getFilterModel\"),null):n.getModel()}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}isExternalFilterPresent(){return this.externalFilterPresent}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}isAdvancedFilterPresent(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()}onAdvancedFilterEnabledChanged(e){var t;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach((e=>this.disposeFilterWrapper(e,\"advancedFilterEnabled\"))),this.onFilterChanged({source:\"advancedFilter\"})):(null==(t=this.advancedFilterService)?void 0:t.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:\"advancedFilter\"}))}isAdvancedFilterEnabled(){var e;return!!(null==(e=this.advancedFilterService)?void 0:e.isEnabled())}isAdvancedFilterHeaderActive(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;const e=e=>!!e&&(e.isFilterActive?e.isFilterActive():(console.warn(\"AG Grid: Filter is missing isFilterActive() method\"),!1)),t=!!this.gridOptionsService.getGroupAggFiltering(),n=e=>{if(!e.isPrimary())return!0;const n=!this.columnModel.isPivotActive();return!(!e.isValueActive()||!n)&&(!!this.columnModel.isPivotMode()||t)};this.allColumnFilters.forEach((t=>{if(t.filterPromise.resolveNow(!1,e)){const e=t.filterPromise.resolveNow(null,(e=>e));n(t.column)?this.activeAggregateFilters.push(e):this.activeColumnFilters.push(e)}}))}updateFilterFlagInColumns(e,t){this.allColumnFilters.forEach((n=>{const r=n.filterPromise.resolveNow(!1,(e=>e.isFilterActive()));n.column.setFilterActive(r,e,t)}))}isAnyFilterPresent(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}doColumnFiltersPass(e,t,n){const{data:r,aggData:i}=e,o=n?this.activeAggregateFilters:this.activeColumnFilters,a=n?i:r;for(let n=0;n<o.length;n++){const r=o[n];if(null!=r&&r!==t){if(\"function\"!=typeof r.doesFilterPass)throw new Error(\"Filter is missing method doesFilterPass\");if(!r.doesFilterPass({node:e,data:a}))return!1}}return!0}resetQuickFilterCache(){this.quickFilterService.resetQuickFilterCache()}refreshFiltersForAggregations(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()}callOnFilterChangedOutsideRenderCycle(e){const t=()=>this.onFilterChanged(e);this.rowRenderer.isRefreshInProgress()?setTimeout(t,0):t()}onFilterChanged(e={}){const{source:t,filterInstance:n,additionalEventAttributes:r,columns:i}=e;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns(\"filterChanged\",r),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((e=>{e.filterPromise&&e.filterPromise.then((e=>{e&&e!==n&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));const o={source:t,type:CR.EVENT_FILTER_CHANGED,columns:i||[]};r&&qT(o,r),this.processingFilterChange=!0,this.eventService.dispatchEvent(o),this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var e;return!(null!=(e=this.gridOptionsService.get(\"allowShowChangeAfterFilter\"))&&e)&&this.processingFilterChange}isQuickFilterPresent(){return this.quickFilterService.isQuickFilterPresent()}updateAggFiltering(){this.aggFiltering=!!this.gridOptionsService.getGroupAggFiltering()}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&(this.aggFiltering||this.columnModel.isPivotMode())}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!(this.aggFiltering||this.columnModel.isPivotMode())}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))}doesRowPassFilter(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))}onNewRowsLoaded(e){this.allColumnFilters.forEach((e=>{e.filterPromise.then((e=>{e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()}createValueGetter(e){return({node:t})=>this.valueService.getValue(e,t,!0)}createGetValue(e){return(t,n)=>{const r=n?this.columnModel.getGridColumn(n):e;return r?this.valueService.getValue(r,t,!0):void 0}}getFilterComponent(e,t,n=!0){var r;if(n)return(null==(r=this.getOrCreateFilterWrapper(e,t))?void 0:r.filterPromise)||null;const i=this.cachedFilter(e);return i?i.filterPromise:null}isFilterActive(e){const t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(e=>e.isFilterActive()))}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return null;let n=this.cachedFilter(e);return n?\"NO_UI\"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.setColumnFilterWrapper(e,n)),n}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let t;if(yD.__isRegistered(\"@ag-grid-enterprise/set-filter\",this.context.getGridId()))t=\"agSetColumnFilter\";else{const n=this.dataTypeService.getBaseDataType(e);t=\"number\"===n?\"agNumberColumnFilter\":\"date\"===n||\"dateString\"===n?\"agDateColumnFilter\":\"agTextColumnFilter\"}return t}getDefaultFloatingFilter(e){let t;if(yD.__isRegistered(\"@ag-grid-enterprise/set-filter\",this.context.getGridId()))t=\"agSetColumnFloatingFilter\";else{const n=this.dataTypeService.getBaseDataType(e);t=\"number\"===n?\"agNumberColumnFloatingFilter\":\"date\"===n||\"dateString\"===n?\"agDateColumnFloatingFilter\":\"agTextColumnFloatingFilter\"}return t}createFilterInstance(e){const t=this.getDefaultFilter(e),n=e.getColDef();let r;const i=DT(TT({},this.createFilterParams(e,n)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(r,e)(),filterChangedCallback:t=>this.filterChangedCallbackFactory(r,e)(t),doesRowPassOtherFilter:e=>this.doesRowPassOtherFilters(r,e)}),o=this.userComponentFactory.getFilterDetails(n,i,t);return o?{filterPromise:()=>{const e=o.newAgStackInstance();return e&&e.then((e=>r=e)),e},compDetails:o}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return this.gridOptionsService.addGridCommonParams({column:e,colDef:$T(t),rowModel:this.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e,t){var n;const r={column:e,filterPromise:null,compiledElement:null,guiPromise:Rk.resolve(null),compDetails:null},{filterPromise:i,compDetails:o}=this.createFilterInstance(e);return r.filterPromise=null!=(n=null==i?void 0:i())?n:null,r.compDetails=o,i&&this.putIntoGui(r,t),r}putIntoGui(e,t){const n=document.createElement(\"div\");n.className=\"ag-filter\",e.guiPromise=new Rk((r=>{e.filterPromise.then((i=>{let o=i.getGui();NT(o)||console.warn(`AG Grid: getGui method from filter returned ${o}, it should be a DOM element or an HTML template string.`),\"string\"==typeof o&&(o=LO(o)),n.appendChild(o),r(n);const a={type:CR.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:n};this.eventService.dispatchEvent(a)}))}))}onColumnsChanged(){const e=[];this.allColumnFilters.forEach(((t,n)=>{let r;r=t.column.isPrimary()?this.columnModel.getPrimaryColumn(n):this.columnModel.getGridColumn(n),r||(e.push(t.column),this.disposeFilterWrapper(t,\"columnChanged\"),this.disposeColumnListener(n))})),e.length>0?this.onFilterChanged({columns:e,source:\"api\"}):this.updateDependantFilters()}updateDependantFilters(){const e=this.columnModel.getGroupAutoColumns();null==e||e.forEach((e=>{\"agGroupColumnFilter\"===e.getColDef().filter&&this.getOrCreateFilterWrapper(e,\"NO_UI\")}))}isFilterAllowed(e){var t,n;if(this.isAdvancedFilterEnabled())return!1;if(!e.isFilterAllowed())return!1;const r=this.allColumnFilters.get(e.getColId());return null==(n=null==(t=null==r?void 0:r.filterPromise)?void 0:t.resolveNow(!0,(e=>\"function\"!=typeof(null==e?void 0:e.isFilterAllowed)||(null==e?void 0:e.isFilterAllowed()))))||n}getFloatingFilterCompDetails(e,t){const n=t=>{const n=this.getFilterComponent(e,\"NO_UI\");null!=n&&n.then((e=>{t(QN(e))}))},r=e.getColDef(),i=DT(TT({},this.createFilterParams(e,r)),{filterChangedCallback:()=>n((t=>this.filterChangedCallbackFactory(t,e)()))}),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(r,IN,i);let a=this.userComponentFactory.getDefaultFloatingFilterType(r,(()=>this.getDefaultFloatingFilter(e)));null==a&&(a=\"agReadOnlyFloatingFilter\");const s={column:e,filterParams:o,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(r,s,a)}getCurrentFloatingFilterParentModel(e){const t=this.getFilterComponent(e,\"NO_UI\",!1);return t?t.resolveNow(null,(e=>e&&e.getModel())):null}destroyFilter(e,t=\"api\"){const n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialFilterModel[n],r&&(this.disposeFilterWrapper(r,t),this.onFilterChanged({columns:[e],source:\"api\"}))}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){e.filterPromise.then((n=>{this.getContext().destroyBean(n),e.column.setFilterActive(!1,\"filterDestroyed\"),this.allColumnFilters.delete(e.column.getColId());const r={type:CR.EVENT_FILTER_DESTROYED,source:t,column:e.column};this.eventService.dispatchEvent(r)}))}filterModifiedCallbackFactory(e,t){return()=>{const n={type:CR.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};this.eventService.dispatchEvent(n)}}filterChangedCallbackFactory(e,t){return n=>{var r;const i=null!=(r=null==n?void 0:n.source)?r:\"api\",o={filter:e,additionalEventAttributes:n,columns:[t],source:i};this.callOnFilterChangedOutsideRenderCycle(o)}}checkDestroyFilter(e){const t=this.allColumnFilters.get(e);if(!t)return;const n=t.column,{compDetails:r}=n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,r))return void this.destroyFilter(n,\"paramsUpdated\");const i=n.getColDef().filterParams;t.filterPromise?t.filterPromise.then((e=>{!1===(!(null==e?void 0:e.refresh)||e.refresh(TT(DT(TT({},this.createFilterParams(n,n.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(e,n),filterChangedCallback:this.filterChangedCallbackFactory(e,n),doesRowPassOtherFilter:t=>this.doesRowPassOtherFilters(e,t)}),i)))&&this.destroyFilter(n,\"paramsUpdated\")})):this.destroyFilter(n,\"paramsUpdated\")}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListener(e,LD.EVENT_COL_DEF_CHANGED,(()=>this.checkDestroyFilter(n))))}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:r}=t;return!(n===r||(null==n?void 0:n.render)&&(null==r?void 0:r.render)&&n.render===r.render)}getAdvancedFilterModel(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null}setAdvancedFilterModel(e){this.isAdvancedFilterEnabled()&&(this.dataTypeService.isPendingInference()?this.advancedFilterModelUpdateQueue.push(e):(this.advancedFilterService.setModel(null!=e?e:null),this.onFilterChanged({source:\"advancedFilter\"})))}showAdvancedFilterBuilder(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)}updateAdvancedFilterColumns(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:\"advancedFilter\"})}hasFloatingFilters(){return!this.isAdvancedFilterEnabled()&&this.columnModel.getAllGridColumns().some((e=>e.getColDef().floatingFilter))}getFilterInstance(e,t){if(this.isAdvancedFilterEnabled())return void this.warnAdvancedFilters();const n=this.getFilterInstanceImpl(e,(e=>{if(!t)return;const n=QN(e);t(n)}));return QN(n)}getColumnFilterInstance(e){return new Promise((t=>{this.getFilterInstance(e,(e=>{t(e)}))}))}getFilterInstanceImpl(e,t){const n=this.columnModel.getPrimaryColumn(e);if(!n)return;const r=this.getFilterComponent(n,\"NO_UI\"),i=r&&r.resolveNow(null,(e=>e));return i?setTimeout(t,0,i):r&&r.then((e=>{t(e)})),i}warnAdvancedFilters(){nD(\"Column Filter API methods have been disabled as Advanced Filters are enabled.\")}setupAdvancedFilterHeaderComp(e){var t;null==(t=this.advancedFilterService)||t.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvancedFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach((({model:e,source:t})=>this.setFilterModel(e,t))),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach((({key:e,model:t,resolve:n})=>{this.setColumnFilterModel(e,t).then((()=>n()))})),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach((e=>this.setAdvancedFilterModel(e))),this.advancedFilterModelUpdateQueue=[]}getColumnFilterModel(e){const t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){let n=()=>{};const r=new Promise((e=>{n=e}));return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:n}),r}const n=this.columnModel.getPrimaryColumn(e),r=n?this.getOrCreateFilterWrapper(n,\"NO_UI\"):null;return r?(i=this.setModelOnFilterWrapper(r.filterPromise,t),new Promise((e=>{i.then((t=>e(t)))}))):Promise.resolve();var i}getFilterWrapper(e){var t;const n=this.columnModel.getPrimaryColumn(e);return n&&null!=(t=this.cachedFilter(n))?t:null}destroy(){super.destroy(),this.allColumnFilters.forEach((e=>this.disposeFilterWrapper(e,\"gridDestroyed\"))),this.allColumnListeners.clear()}};MT([xD(\"valueService\")],JN.prototype,\"valueService\",2),MT([xD(\"columnModel\")],JN.prototype,\"columnModel\",2),MT([xD(\"rowModel\")],JN.prototype,\"rowModel\",2),MT([xD(\"userComponentFactory\")],JN.prototype,\"userComponentFactory\",2),MT([xD(\"rowRenderer\")],JN.prototype,\"rowRenderer\",2),MT([xD(\"dataTypeService\")],JN.prototype,\"dataTypeService\",2),MT([xD(\"quickFilterService\")],JN.prototype,\"quickFilterService\",2),MT([AD(\"advancedFilterService\")],JN.prototype,\"advancedFilterService\",2),MT([CD],JN.prototype,\"init\",1),JN=MT([ED(\"filterManager\")],JN);var eP=class extends Lk{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},tP=class e extends eP{constructor(t){super(e.TEMPLATE,t)}postConstruct(){const e=this.getGui(),t={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),addOrRemoveBodyCssClass:(e,t)=>this.eFloatingFilterBody.classList.toggle(e,t),setButtonWrapperDisplayed:e=>yO(this.eButtonWrapper,e),setCompDetails:e=>this.setCompDetails(e),getFloatingFilterComp:()=>this.compPromise,setWidth:t=>e.style.width=t,setMenuIcon:e=>this.eButtonShowMainFilter.appendChild(e)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)}setCompDetails(e){if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then((e=>this.afterCompCreated(e)))}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()):this.destroyBean(e))}};tP.TEMPLATE='<div class=\"ag-header-cell ag-floating-filter\" role=\"gridcell\">\\n            <div ref=\"eFloatingFilterBody\" role=\"presentation\"></div>\\n            <div class=\"ag-floating-filter-button ag-hidden\" ref=\"eButtonWrapper\" role=\"presentation\">\\n                <button type=\"button\" class=\"ag-button ag-floating-filter-button-button\" ref=\"eButtonShowMainFilter\" tabindex=\"-1\"></button>\\n            </div>\\n        </div>',MT([Fk(\"eFloatingFilterBody\")],tP.prototype,\"eFloatingFilterBody\",2),MT([Fk(\"eButtonWrapper\")],tP.prototype,\"eButtonWrapper\",2),MT([Fk(\"eButtonShowMainFilter\")],tP.prototype,\"eButtonShowMainFilter\",2),MT([CD],tP.prototype,\"postConstruct\",1),MT([SD],tP.prototype,\"destroyFloatingFilterComp\",1);var nP=tP,rP=class extends vR{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener(\"domLayout\",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.getDomLayout(),t={autoHeight:\"autoHeight\"===e,normal:\"normal\"===e,print:\"print\"===e},n=t.autoHeight?\"ag-layout-auto-height\":t.print?\"ag-layout-print\":\"ag-layout-normal\";this.view.updateLayoutClasses(n,t)}getDomLayout(){var e;const t=null!=(e=this.gridOptionsService.get(\"domLayout\"))?e:\"normal\";return-1===[\"normal\",\"print\",\"autoHeight\"].indexOf(t)?(nD(`${t} is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.`),\"normal\"):t}};MT([CD],rP.prototype,\"postConstruct\",1);var iP=class extends vR{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.eBodyViewport=e,this.resetLastHScrollDebounced=uD((()=>this.lastScrollSource[1]=null),500),this.resetLastVScrollDebounced=uD((()=>this.lastScrollSource[0]=null),500)}postConstruct(){this.enableRtl=this.gridOptionsService.get(\"enableRtl\"),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((e=>{this.centerRowContainerCtrl=e.centerRowContainerCtrl,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()}))}addScrollListener(){const e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),\"scroll\",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));const n=this.gridOptionsService.get(\"debounceVerticalScrollbar\"),r=n?uD(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=n?uD(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,\"scroll\",r),t.onScrollCallback(i)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){if(null==this.centerRowContainerCtrl)return;void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());const t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),i.setContainerTranslateX(t),n.setContainerTranslateX(t),r.setContainerTranslateX(t);const a=this.centerRowContainerCtrl.getViewportElement(),s=0===this.lastScrollSource[1];e=Math.abs(e),s?o.setScrollPosition(e):OO(a,e,this.enableRtl)}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(this.lastScrollSource[t]=e,!0):this.lastScrollSource[t]===e}onFakeHScroll(){this.isControllingScroll(1,1)&&this.onHScrollCommon(1)}onHScroll(){this.isControllingScroll(0,1)&&this.onHScrollCommon(0)}onHScrollCommon(e){const t=this.centerRowContainerCtrl.getViewportElement(),{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;let r;r=0===e?MO(t,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(r)),this.resetLastHScrollDebounced()}onFakeVScroll(){this.isControllingScroll(1,0)&&this.onVScrollCommon(1)}onVScroll(){this.isControllingScroll(0,0)&&this.onVScrollCommon(0)}onVScrollCommon(e){let t;t=0===e?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,0===e?this.ctrlsService.getFakeVScrollComp().setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gridOptionsService.get(\"suppressAnimationFrame\")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())}doHorizontalScroll(e){const t=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:CR.EVENT_BODY_SCROLL,direction:1===e?\"horizontal\":\"vertical\",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((()=>{const e=DT(TT({},t),{type:CR.EVENT_BODY_SCROLL_END});this.eventService.dispatchEvent(e)}),100)}shouldBlockScrollUpdate(e,t,n=!1){return!(n&&!UM())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){const t=EO(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowContainerCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowContainerCtrl.getViewportElement();if(this.enableRtl&&RO()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(0)}scrollGridIfNeeded(){const e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){const n=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl&&RO()?e>0?0:n:Math.min(Math.max(e,0),n)),OO(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){return this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight,{top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowContainerCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){const t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const n=this.rowModel.getRowCount();let r=-1;for(let t=0;t<n;t++){const n=this.rowModel.getRow(t);if(\"function\"==typeof e){if(n&&e(n)){r=t;break}}else if(e===n||e===n.data){r=t;break}}r>=0&&this.ensureIndexVisible(r,t)}ensureIndexVisible(e,t){if(this.gridOptionsService.isDomLayout(\"print\"))return;const n=this.paginationProxy.getRowCount();if(\"number\"!=typeof e||e<0||e>=n)return void console.warn(\"AG Grid: Invalid row index for ensureIndexVisible: \"+e);const r=this.gridOptionsService.get(\"pagination\")&&!this.gridOptionsService.get(\"suppressPaginationPanel\");this.getFrameworkOverrides().wrapIncoming((()=>{r||this.paginationProxy.goToPageWithIndex(e);const n=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),i=this.paginationProxy.getRow(e);let o;do{const e=i.rowTop,r=i.rowHeight,a=this.paginationProxy.getPixelOffset(),s=i.rowTop-a,l=s+i.rowHeight,c=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),u=c.top+d,h=c.bottom+d,p=h-u,g=this.heightScaler.getScrollPositionForPixel(s),f=this.heightScaler.getScrollPositionForPixel(l-p),m=Math.min((g+f)/2,s);let v=null;\"top\"===t?v=g:\"bottom\"===t?v=f:\"middle\"===t?v=m:u+n>s?v=g-n:h<l&&(v=f),null!==v&&(this.setVerticalScrollPosition(v),this.rowRenderer.redraw({afterScroll:!0})),o=e!==i.rowTop||r!==i.rowHeight}while(o);this.animationFrameService.flushAllFrames()}))}ensureColumnVisible(e,t=\"auto\"){const n=this.columnModel.getGridColumn(e);if(!n)return;if(n.isPinned())return;if(!this.columnModel.isColumnDisplayed(n))return;const r=this.getPositionedHorizontalScroll(n,t);this.getFrameworkOverrides().wrapIncoming((()=>{null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}))}setScrollPosition(e,t){this.getFrameworkOverrides().wrapIncoming((()=>{this.centerRowContainerCtrl.setCenterViewportScrollLeft(t),this.setVerticalScrollPosition(e),this.rowRenderer.redraw({afterScroll:!0}),this.animationFrameService.flushAllFrames()}))}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),o=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl;let s=(a?n:r)||i,l=a?r:n;\"auto\"!==t&&(s=\"start\"===t,l=\"end\"===t);const c=\"middle\"===t;if(s||l||c){const{colLeft:t,colMiddle:n,colRight:r}=this.getColumnBounds(e);return c?n-o/2:s?a?r:t:a?t-o:r-o}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:r,colRight:i}=this.getColumnBounds(e),o=this.enableRtl;return{columnBeforeStart:o?t>i:n<i,columnAfterEnd:o?n<r:t>r}}getColumnBounds(e){const t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,a=t?n-i:i;return{colLeft:a,colMiddle:a+r/2*o,colRight:a+r*o}}getViewportBounds(){const e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}}};MT([xD(\"ctrlsService\")],iP.prototype,\"ctrlsService\",2),MT([xD(\"animationFrameService\")],iP.prototype,\"animationFrameService\",2),MT([xD(\"paginationProxy\")],iP.prototype,\"paginationProxy\",2),MT([xD(\"rowModel\")],iP.prototype,\"rowModel\",2),MT([xD(\"rowContainerHeightService\")],iP.prototype,\"heightScaler\",2),MT([xD(\"rowRenderer\")],iP.prototype,\"rowRenderer\",2),MT([xD(\"columnModel\")],iP.prototype,\"columnModel\",2),MT([CD],iP.prototype,\"postConstruct\",1);var oP=\"ag-force-vertical-scroll\",aP=class extends vR{constructor(){super(...arguments),this.stickyTopHeight=0}getScrollFeature(){return this.bodyScrollFeature}getBodyViewportElement(){return this.eBodyViewport}setComp(e,t,n,r,i,o){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=i,this.eStickyTop=o,this.setCellTextSelection(this.gridOptionsService.get(\"enableCellTextSelection\")),this.addManagedPropertyListener(\"enableCellTextSelection\",(e=>this.setCellTextSelection(e.currentValue))),this.createManagedBean(new rP(this.comp)),this.bodyScrollFeature=this.createManagedBean(new iP(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,i,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(r),this.ctrlsService.registerGridBodyCtrl(this)}getComp(){return this.comp}addEventListeners(){this.addManagedListener(this.eventService,CR.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))}addFocusListeners(e){e.forEach((e=>{this.addManagedListener(e,\"focusin\",(t=>{const{target:n}=t,r=CO(n,\"ag-root\",e);e.classList.toggle(\"ag-has-focus\",!r)})),this.addManagedListener(e,\"focusout\",(t=>{const{target:n,relatedTarget:r}=t,i=e.contains(r),o=CO(r,\"ag-root\",e);CO(n,\"ag-root\",e)||i&&!o||e.classList.remove(\"ag-has-focus\")}))}))}setColumnMovingCss(e){this.comp.setColumnMovingCss(\"ag-column-moving\",e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(\"ag-selectable\",e)}onScrollVisibilityChanged(){const e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);const t=`calc(100% + ${(e&&this.gridOptionsService.getScrollbarWidth()||0)+(ZM()?16:0)}px)`;this.animationFrameService.requestAnimationFrame((()=>this.comp.setBodyViewportWidth(t)))}onGridColumnsChanged(){const e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)}disableBrowserDragging(){this.addManagedListener(this.eGridBody,\"dragstart\",(e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))}addStopEditingWhenGridLosesFocus(){if(!this.gridOptionsService.get(\"stopEditingWhenCellsLoseFocus\"))return;const e=e=>{const n=e.relatedTarget;if(null===$M(n))return void this.rowRenderer.stopEditing();let r=t.some((e=>e.contains(n)))&&this.mouseEventService.isElementInThisGrid(n);if(!r){const e=this.popupService;r=e.getActivePopups().some((e=>e.contains(n)))||e.isElementWithinCustomPopup(n)}r||this.rowRenderer.stopEditing()},t=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];t.forEach((t=>this.addManagedListener(t,\"focusout\",e)))}updateRowCount(){const e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,n=-1===t?-1:e+t;this.comp.setRowCount(n)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?\"scroll\":\"hidden\";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gridOptionsService.get(\"alwaysShowVerticalScroll\"),t=e?oP:null,n=this.gridOptionsService.isDomLayout(\"normal\");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&BO(this.eBodyViewport)}setupRowAnimationCssClass(){const e=()=>{const e=this.gridOptionsService.isAnimateRows()&&!this.rowContainerHeightService.isStretching(),t=e?\"ag-row-animation\":\"ag-row-no-animation\";this.comp.setRowAnimationCssOnBodyViewport(t,e)};e(),this.addManagedListener(this.eventService,CR.EVENT_HEIGHT_SCALE_CHANGED,e),this.addManagedPropertyListener(\"animateRows\",e)}getGridBodyElement(){return this.eGridBody}addBodyViewportListener(){const e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,\"contextmenu\",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,\"wheel\",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,\"wheel\",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){const e=this.eBodyViewport.querySelector(\".ag-full-width-container\"),t=this.eBodyViewport.querySelector(\".ag-center-cols-viewport\");e&&t&&this.addManagedListener(e,\"wheel\",(e=>this.onFullWidthContainerWheel(e,t)))}onFullWidthContainerWheel(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gridOptionsService.get(\"preventDefaultOnContextMenu\")&&(e||n).preventDefault();const{target:r}=e||t;r!==this.eBodyViewport&&r!==this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||this.menuService.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody})}mockContextMenuForIPad(e){if(!UM())return;const t=new kI(this.eBodyViewport);this.addManagedListener(t,kI.EVENT_LONG_TAP,(t=>{e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((()=>t.destroy()))}onBodyViewportWheel(e){this.gridOptionsService.get(\"suppressScrollWhenPopupsAreOpen\")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()}onStickyTopWheel(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)}getGui(){return this.eGridBody}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}addRowDragListener(){this.rowDragFeature=this.createManagedBean(new $N(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)}getRowDragFeature(){return this.rowDragFeature}onPinnedRowDataChanged(){this.setFloatingHeights()}setFloatingHeights(){const{pinnedRowModel:e}=this;let t=e.getPinnedTopTotalHeight(),n=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?\"inherit\":\"none\"),this.comp.setBottomDisplay(n?\"inherit\":\"none\"),this.setStickyTopOffsetTop()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}getStickyTopHeight(){return this.stickyTopHeight}setStickyTopWidth(e){if(e){const e=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${e}px)`)}else this.comp.setStickyTopWidth(\"100%\")}onHeaderHeightChanged(){this.setStickyTopOffsetTop()}setStickyTopOffsetTop(){const e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight()+this.filterManager.getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight();let n=0;e>0&&(n+=e+1),t>0&&(n+=t+1),this.comp.setStickyTopTop(`${n}px`)}sizeColumnsToFit(e,t){const n=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,r=xO(this.eGridBody)-n;r>0?this.columnModel.sizeColumnsToFit(r,\"sizeColumnsToFit\",!1,e):void 0===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,-1)}),500):console.warn(\"AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?\")}addScrollEventListener(e){this.eBodyViewport.addEventListener(\"scroll\",e,{passive:!0})}removeScrollEventListener(e){this.eBodyViewport.removeEventListener(\"scroll\",e)}};MT([xD(\"animationFrameService\")],aP.prototype,\"animationFrameService\",2),MT([xD(\"rowContainerHeightService\")],aP.prototype,\"rowContainerHeightService\",2),MT([xD(\"ctrlsService\")],aP.prototype,\"ctrlsService\",2),MT([xD(\"columnModel\")],aP.prototype,\"columnModel\",2),MT([xD(\"scrollVisibleService\")],aP.prototype,\"scrollVisibleService\",2),MT([xD(\"menuService\")],aP.prototype,\"menuService\",2),MT([xD(\"headerNavigationService\")],aP.prototype,\"headerNavigationService\",2),MT([xD(\"dragAndDropService\")],aP.prototype,\"dragAndDropService\",2),MT([xD(\"pinnedRowModel\")],aP.prototype,\"pinnedRowModel\",2),MT([xD(\"rowRenderer\")],aP.prototype,\"rowRenderer\",2),MT([xD(\"popupService\")],aP.prototype,\"popupService\",2),MT([xD(\"mouseEventService\")],aP.prototype,\"mouseEventService\",2),MT([xD(\"rowModel\")],aP.prototype,\"rowModel\",2),MT([xD(\"filterManager\")],aP.prototype,\"filterManager\",2);var sP=\"ag-cell-range-selected\",lP=class{constructor(e,t){this.beans=e,this.cellCtrl=t}setComp(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()}onRangeSelectionChanged(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(sP,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(`${sP}-1`,1===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${sP}-2`,2===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${sP}-3`,3===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${sP}-4`,this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-chart\",this.hasChartRange),TM(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-single-cell\",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())}updateRangeBorders(){const e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,i=!t&&e.bottom,o=!t&&e.left;this.cellComp.addOrRemoveCssClass(\"ag-cell-range-top\",n),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-right\",r),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-bottom\",i),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-left\",o)}isSingleCell(){const{rangeService:e}=this.beans;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()}getHasChartRange(){const{rangeService:e}=this.beans;if(!this.rangeCount||!e)return!1;const t=e.getCellRanges();return t.length>0&&t.every((e=>eR([1,0],e.type)))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){const e=this.beans.gridOptionsService.get(\"enableRtl\");let t=!1,n=!1,r=!1,i=!1;const o=this.cellCtrl.getCellPosition().column,{rangeService:a,columnModel:s}=this.beans;let l,c;e?(l=s.getDisplayedColAfter(o),c=s.getDisplayedColBefore(o)):(l=s.getDisplayedColBefore(o),c=s.getDisplayedColAfter(o));const d=a.getCellRanges().filter((e=>a.isCellInSpecificRange(this.cellCtrl.getCellPosition(),e)));l||(i=!0),c||(n=!0);for(let e=0;e<d.length&&!(t&&n&&r&&i);e++){const o=d[e],s=a.getRangeStartRow(o),u=a.getRangeEndRow(o);!t&&this.beans.rowPositionUtils.sameRow(s,this.cellCtrl.getCellPosition())&&(t=!0),!r&&this.beans.rowPositionUtils.sameRow(u,this.cellCtrl.getCellPosition())&&(r=!0),!i&&l&&o.columns.indexOf(l)<0&&(i=!0),!n&&c&&o.columns.indexOf(c)<0&&(n=!0)}return{top:t,right:n,bottom:r,left:i}}refreshHandle(){if(!this.beans.rangeService||this.beans.context.isDestroyed())return;const e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-handle\",!!this.selectionHandle)}shouldHaveSelectionHandle(){const{gridOptionsService:e,rangeService:t}=this.beans,n=t.getCellRanges(),r=n.length;if(this.rangeCount<1||r<1)return!1;const i=HD(n),o=this.cellCtrl.getCellPosition(),a=e.get(\"enableFillHandle\")&&!this.cellCtrl.isSuppressFillHandle(),s=e.get(\"enableRangeHandle\");let l=1===r&&!this.cellCtrl.isEditing()&&(a||s);if(this.hasChartRange){const e=1===n[0].type&&t.isCellInSpecificRange(o,n[0]);this.cellComp.addOrRemoveCssClass(\"ag-cell-range-chart-category\",e),l=0===i.type}return l&&null!=i.endRow&&t.isContiguousRange(i)&&t.isBottomRightCell(i,o)}addSelectionHandle(){const{gridOptionsService:e,rangeService:t}=this.beans,n=HD(t.getCellRanges()).type,r=e.get(\"enableFillHandle\")&&PT(n)?0:1;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},cP=class extends vR{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListener(this.beans.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.onNewColumnsLoaded()))}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();jD(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))}onWidthChanged(){if(!this.eGui)return;const e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce(((e,t)=>e+t.getActualWidth()),0):this.column.getActualWidth()}getColSpanningList(){const e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else{let n=this.column;const r=this.column.getPinned();for(let i=0;n&&i<e&&(t.push(n),n=this.beans.columnModel.getDisplayedColAfter(n),n&&!PT(n))&&r===n.getPinned();i++);}return t}onLeftChanged(){if(!this.eGui)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+\"px\"}getCellLeft(){let e;return e=this.beans.gridOptionsService.get(\"enableRtl\")&&this.colsSpanning?HD(this.colsSpanning):this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.isPrintLayout()||\"left\"===this.column.getPinned())return e;const t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return\"right\"===this.column.getPinned()?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)}applyRowSpan(e){if(1===this.rowSpan&&!e)return;const t=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=`${t}px`,this.eGui.style.zIndex=\"1\"}destroy(){super.destroy()}},dP=class extends vR{constructor(e,t){super(),this.staticClasses=[],this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const e=this.column.getColDef(),{cellClassRules:t}=e,n=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(t===this.cellClassRules?void 0:this.cellClassRules,t,n,(e=>this.cellComp.addOrRemoveCssClass(e,!0)),(e=>this.cellComp.addOrRemoveCssClass(e,!1))),this.cellClassRules=t}applyUserStyles(){const e=this.column.getColDef();if(!e.cellStyle)return;let t;if(\"function\"==typeof e.cellStyle){const n=this.beans.gridOptionsService.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});t=(0,e.cellStyle)(n)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}applyClassesFromColDef(){const e=this.column.getColDef(),t=this.beans.gridOptionsService.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach((e=>this.cellComp.addOrRemoveCssClass(e,!1))),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,t),this.staticClasses.length&&this.staticClasses.forEach((e=>this.cellComp.addOrRemoveCssClass(e,!0)))}destroy(){super.destroy()}},uP=class{postConstruct(){this.gridOptionsService.isRowModelType(\"clientSide\")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType(\"serverSide\")&&(this.serverSideRowModel=this.rowModel)}};MT([xD(\"resizeObserverService\")],uP.prototype,\"resizeObserverService\",2),MT([xD(\"paginationProxy\")],uP.prototype,\"paginationProxy\",2),MT([xD(\"context\")],uP.prototype,\"context\",2),MT([xD(\"columnApi\")],uP.prototype,\"columnApi\",2),MT([xD(\"gridApi\")],uP.prototype,\"gridApi\",2),MT([xD(\"gridOptionsService\")],uP.prototype,\"gridOptionsService\",2),MT([xD(\"expressionService\")],uP.prototype,\"expressionService\",2),MT([xD(\"environment\")],uP.prototype,\"environment\",2),MT([xD(\"rowRenderer\")],uP.prototype,\"rowRenderer\",2),MT([xD(\"templateService\")],uP.prototype,\"templateService\",2),MT([xD(\"valueService\")],uP.prototype,\"valueService\",2),MT([xD(\"eventService\")],uP.prototype,\"eventService\",2),MT([xD(\"columnModel\")],uP.prototype,\"columnModel\",2),MT([xD(\"headerNavigationService\")],uP.prototype,\"headerNavigationService\",2),MT([xD(\"navigationService\")],uP.prototype,\"navigationService\",2),MT([xD(\"columnAnimationService\")],uP.prototype,\"columnAnimationService\",2),MT([AD(\"rangeService\")],uP.prototype,\"rangeService\",2),MT([xD(\"focusService\")],uP.prototype,\"focusService\",2),MT([xD(\"popupService\")],uP.prototype,\"popupService\",2),MT([xD(\"valueFormatterService\")],uP.prototype,\"valueFormatterService\",2),MT([xD(\"stylingService\")],uP.prototype,\"stylingService\",2),MT([xD(\"columnHoverService\")],uP.prototype,\"columnHoverService\",2),MT([xD(\"userComponentFactory\")],uP.prototype,\"userComponentFactory\",2),MT([xD(\"userComponentRegistry\")],uP.prototype,\"userComponentRegistry\",2),MT([xD(\"animationFrameService\")],uP.prototype,\"animationFrameService\",2),MT([xD(\"dragService\")],uP.prototype,\"dragService\",2),MT([xD(\"dragAndDropService\")],uP.prototype,\"dragAndDropService\",2),MT([xD(\"sortController\")],uP.prototype,\"sortController\",2),MT([xD(\"filterManager\")],uP.prototype,\"filterManager\",2),MT([xD(\"rowContainerHeightService\")],uP.prototype,\"rowContainerHeightService\",2),MT([xD(\"frameworkOverrides\")],uP.prototype,\"frameworkOverrides\",2),MT([xD(\"cellPositionUtils\")],uP.prototype,\"cellPositionUtils\",2),MT([xD(\"rowPositionUtils\")],uP.prototype,\"rowPositionUtils\",2),MT([xD(\"selectionService\")],uP.prototype,\"selectionService\",2),MT([AD(\"selectionHandleFactory\")],uP.prototype,\"selectionHandleFactory\",2),MT([xD(\"rowCssClassCalculator\")],uP.prototype,\"rowCssClassCalculator\",2),MT([xD(\"rowModel\")],uP.prototype,\"rowModel\",2),MT([xD(\"ctrlsService\")],uP.prototype,\"ctrlsService\",2),MT([xD(\"ctrlsFactory\")],uP.prototype,\"ctrlsFactory\",2),MT([xD(\"agStackComponentsRegistry\")],uP.prototype,\"agStackComponentsRegistry\",2),MT([xD(\"valueCache\")],uP.prototype,\"valueCache\",2),MT([xD(\"rowNodeEventThrottle\")],uP.prototype,\"rowNodeEventThrottle\",2),MT([xD(\"localeService\")],uP.prototype,\"localeService\",2),MT([xD(\"valueParserService\")],uP.prototype,\"valueParserService\",2),MT([xD(\"syncService\")],uP.prototype,\"syncService\",2),MT([xD(\"ariaAnnouncementService\")],uP.prototype,\"ariaAnnouncementService\",2),MT([CD],uP.prototype,\"postConstruct\",1),uP=MT([ED(\"beans\")],uP);var hP=class extends uP{constructor(e,t,n){super(),this.cellCtrl=e,this.beans=t,this.column=n}onMouseEvent(e,t){if(!cR(t))switch(e){case\"click\":this.onCellClicked(t);break;case\"mousedown\":case\"touchstart\":this.onMouseDown(t);break;case\"dblclick\":this.onCellDoubleClicked(t);break;case\"mouseout\":this.onMouseOut(t);break;case\"mouseover\":this.onMouseOver(t)}}onCellClicked(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();const{eventService:t,rangeService:n,gridOptionsService:r}=this.beans,i=e.ctrlKey||e.metaKey;n&&i&&n.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&n.intersectLastRange(!0);const o=this.cellCtrl.createEvent(e,CR.EVENT_CELL_CLICKED);t.dispatchEvent(o);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{a.onCellClicked(o)}))}),0),!r.get(\"singleClickEdit\")&&!a.singleClickEdit||r.get(\"suppressClickEdit\")||e.shiftKey&&0!=(null==n?void 0:n.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()}isDoubleClickOnIPad(){if(!UM()||dR(\"dblclick\"))return!1;const e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t}onCellDoubleClicked(e){const t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,CR.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),\"function\"==typeof t.onCellDoubleClicked&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{t.onCellDoubleClicked(n)}))}),0),!this.beans.gridOptionsService.get(\"singleClickEdit\")&&!this.beans.gridOptionsService.get(\"suppressClickEdit\")&&this.cellCtrl.startRowOrCellEdit(null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=e.target,{cellCtrl:o,beans:a}=this,{eventService:s,rangeService:l,focusService:c}=a;if(this.isRightClickInExistingRange(e))return;const d=l&&0!=l.getCellRanges().length;if(!r||!d){const e=GM()&&!o.isEditing()&&!vO(i);o.focusCell(e)}if(r&&d&&!c.isCellFocused(o.getCellPosition())){e.preventDefault();const t=c.getFocusedCell();if(t){const{column:e,rowIndex:n,rowPinned:r}=t,i=a.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:r}),o=null==i?void 0:i.getCellCtrl(e);(null==o?void 0:o.isEditing())&&o.stopEditing(),c.setFocusedCell({column:e,rowIndex:n,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(l){const e=this.cellCtrl.getCellPosition();if(r)l.extendLatestRangeToCell(e);else{const r=t||n;l.setRangeToCell(e,r)}}s.dispatchEvent(this.cellCtrl.createEvent(e,CR.EVENT_CELL_MOUSE_DOWN))}}isRightClickInExistingRange(e){const{rangeService:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),r=2===e.button||e.ctrlKey&&this.beans.gridOptionsService.get(\"allowContextMenuWithControlKey\");if(n&&r)return!0}return!1}containsWidget(e){return CO(e,\"ag-selection-checkbox\",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const t=this.cellCtrl.createEvent(e,CR.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const t=this.cellCtrl.createEvent(e,CR.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.getGui(),n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r}destroy(){}},pP=class extends vR{constructor(e,t,n,r,i){super(),this.cellCtrl=e,this.beans=t,this.rowNode=r,this.rowCtrl=i}setComp(e){this.eGui=e}onKeyDown(e){const t=e.key;switch(t){case lk.ENTER:this.onEnterKeyDown(e);break;case lk.F2:this.onF2KeyDown(e);break;case lk.ESCAPE:this.onEscapeKeyDown(e);break;case lk.TAB:this.onTabKeyDown(e);break;case lk.BACKSPACE:case lk.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case lk.DOWN:case lk.UP:case lk.RIGHT:case lk.LEFT:this.onNavigationKeyDown(e,t)}}onNavigationKeyDown(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())}onShiftRangeSelect(e){if(!this.beans.rangeService)return;const t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}onTabKeyDown(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:r,rowNode:i}=this,{gridOptionsService:o,rangeService:a,eventService:s}=r;n.isEditing()||(s.dispatchEvent({type:CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),bk(e,o.get(\"enableCellEditingOnBackspace\"))?a&&o.get(\"enableRangeSelection\")?a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:\"deleteKey\"}):n.isCellEditable()&&i.setDataValue(n.getColumn(),null,\"cellClear\"):n.startRowOrCellEdit(e,t),s.dispatchEvent({type:CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))}onEnterKeyDown(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get(\"enterNavigatesVertically\")){const t=e.shiftKey?lk.UP:lk.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(lk.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()}onF2KeyDown(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(lk.F2,e)}onEscapeKeyDown(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.isEditing())return;const t=e.key;\" \"===t?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(t,e),e.preventDefault())}onSpaceKeyDown(e){const{gridOptionsService:t}=this.beans;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){const n=this.rowNode.isSelected(),r=!n;if(r||!t.get(\"suppressRowDeselection\")){const t=this.beans.gridOptionsService.get(\"groupSelectsFiltered\"),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:\"spaceKey\"});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:\"spaceKey\"})}}e.preventDefault()}destroy(){super.destroy()}},gP=class extends Lk{constructor(e,t,n){super('<div class=\"ag-drag-handle ag-row-drag\" draggable=\"true\"></div>'),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(ak(\"rowDrag\",this.gridOptionsService,null)),this.addGuiEventListener(\"mousedown\",(e=>{e.stopPropagation()})),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener(\"dragstart\",this.onDragStart.bind(this))}onDragStart(e){const t=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);t?t(this.gridOptionsService.addGridCommonParams({rowNode:this.rowNode,dragEvent:e})):(()=>{try{const t=JSON.stringify(this.rowNode.data);e.dataTransfer.setData(\"application/json\",t),e.dataTransfer.setData(\"text/plain\",t)}catch(e){}})()}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}};MT([CD],gP.prototype,\"postConstruct\",1);var fP=class{static getHeaderClassesFromColDef(e,t,n,r){return PT(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,r)}static getToolPanelClassesFromColDef(e,t,n,r){return PT(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r)}static refreshFirstAndLastStyles(e,t,n){e.addOrRemoveCssClass(\"ag-column-first\",n.isColumnAtEdge(t,\"first\")),e.addOrRemoveCssClass(\"ag-column-last\",n.isColumnAtEdge(t,\"last\"))}static getClassParams(e,t,n,r){return t.addGridCommonParams({colDef:e,column:n,columnGroup:r})}static getColumnClassesFromCollDef(e,t,n,r,i){if(PT(e))return[];let o;return o=\"function\"==typeof e?e(this.getClassParams(t,n,r,i)):e,\"string\"==typeof o?[o]:Array.isArray(o)?[...o]:[]}},mP=0,vP=class e extends vR{constructor(e,t,n,r){super(),this.cellRangeFeature=null,this.cellPositionFeature=null,this.cellCustomStyleFeature=null,this.tooltipFeature=null,this.cellMouseListenerFeature=null,this.cellKeyboardListenerFeature=null,this.suppressRefreshCell=!1,this.onCellCompAttachedFuncs=[],this.column=e,this.rowNode=t,this.beans=n,this.rowCtrl=r,this.instanceId=e.getId()+\"-\"+mP++,this.colIdSanitised=kR(this.column.getId()),n.gridOptionsService.get(\"suppressCellFocus\")||(this.tabIndex=-1),this.createCellPosition(),this.addFeatures(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)}addFeatures(){this.cellPositionFeature=new cP(this,this.beans),this.addDestroyFunc((()=>{var e;null==(e=this.cellPositionFeature)||e.destroy(),this.cellPositionFeature=null})),this.cellCustomStyleFeature=new dP(this,this.beans),this.addDestroyFunc((()=>{var e;null==(e=this.cellCustomStyleFeature)||e.destroy(),this.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new hP(this,this.beans,this.column),this.addDestroyFunc((()=>{var e;null==(e=this.cellMouseListenerFeature)||e.destroy(),this.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new pP(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((()=>{var e;null==(e=this.cellKeyboardListenerFeature)||e.destroy(),this.cellKeyboardListenerFeature=null})),this.column.isTooltipEnabled()&&(this.enableTooltipFeature(),this.addDestroyFunc((()=>{this.disableTooltipFeature()}))),this.beans.rangeService&&this.beans.gridOptionsService.get(\"enableRangeSelection\")&&(this.cellRangeFeature=new lP(this.beans,this),this.addDestroyFunc((()=>{var e;null==(e=this.cellRangeFeature)||e.destroy(),this.cellRangeFeature=null})))}enableTooltipFeature(e,t){const n=\"whenTruncated\"===this.beans.gridOptionsService.get(\"tooltipShowMode\");t||!n||this.isCellRenderer()||(t=()=>{const e=this.getGui(),t=0===e.children.length?e:e.querySelector(\".ag-cell-value\");return!t||t.scrollWidth>t.clientWidth});const r={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getRowIndex:()=>this.cellPosition.rowIndex,getRowNode:()=>this.rowNode,getGui:()=>this.getGui(),getLocation:()=>\"cell\",getTooltipValue:null!=e?()=>e:()=>{const e=this.column.getColDef(),t=this.rowNode.data;if(e.tooltipField&&NT(t))return QT(t,e.tooltipField,this.column.isTooltipFieldContainsDots());const n=e.tooltipValueGetter;return n?n(this.beans.gridOptionsService.addGridCommonParams({location:\"cell\",colDef:this.column.getColDef(),column:this.column,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.value,valueFormatted:this.valueFormatted})):null},getValueFormatted:()=>this.valueFormatted,shouldDisplayTooltip:t};this.tooltipFeature=new Ik(r,this.beans)}disableTooltipFeature(){this.tooltipFeature&&(this.tooltipFeature.destroy(),this.tooltipFeature=null)}setComp(e,t,n,r,i){var o,a,s,l;this.cellComp=e,this.eGui=t,this.printLayout=r,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(n),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),null==(o=this.cellPositionFeature)||o.setComp(t),null==(a=this.cellCustomStyleFeature)||a.setComp(e),null==(s=this.tooltipFeature)||s.refreshToolTip(),null==(l=this.cellKeyboardListenerFeature)||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),i&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((e=>e())),this.onCellCompAttachedFuncs=[])}setupAutoHeight(e){if(this.isAutoHeight=this.column.isAutoHeight(),!this.isAutoHeight||!e)return;const t=e.parentElement,n=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,r=i=>{if(this.editing)return;if(!this.isAlive())return;const{paddingTop:o,paddingBottom:a,borderBottomWidth:s,borderTopWidth:l}=SO(t),c=o+a+s+l,d=e.offsetHeight+c;if(i<5){const t=this.beans.gridOptionsService.getDocument();if(!t||!t.contains(e)||0==d)return void window.setTimeout((()=>r(i+1)),0)}const u=Math.max(d,n);this.rowNode.setRowAutoHeight(u,this.column)},i=()=>r(0);i();const o=this.beans.resizeObserverService.observeResize(e,i);this.addDestroyFunc((()=>{o(),this.rowNode.setRowAutoHeight(void 0,this.column)}))}getCellAriaRole(){var e;return null!=(e=this.column.getColDef().cellAriaRole)?e:\"gridcell\"}getInstanceId(){return this.instanceId}getIncludeSelection(){return this.includeSelection}getIncludeRowDrag(){return this.includeRowDrag}getIncludeDndSource(){return this.includeDndSource}getColumnIdSanitised(){return this.colIdSanitised}getTabIndex(){return this.tabIndex}isCellRenderer(){const e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){return null!=this.valueFormatted?this.valueFormatted:this.value}showValue(e=!1){const t=this.getValueToDisplay();let n;if(this.isCellRenderer()){const e=this.createCellRendererParams();n=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),e)}this.cellComp.setRenderDetails(n,t,e),this.refreshHandle()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gridOptionsService.get(\"enableCellTextSelection\")||this.column.isAutoHeight()}isIncludeControl(e){return!(null!=this.rowNode.rowPinned||\"function\"!=typeof e&&!0!==e)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||r}startEditing(e=null,t=!1,n=null){if(!this.isCellEditable()||this.editing)return;if(!this.cellComp)return void this.onCellCompAttachedFuncs.push((()=>{this.startEditing(e,t,n)}));const r=this.createCellEditorParams(e,t),i=this.column.getColDef(),o=this.beans.userComponentFactory.getCellEditorDetails(i,r);this.editCompDetails=o;const a=null!=(null==o?void 0:o.popupFromSelector)?o.popupFromSelector:!!i.cellEditorPopup,s=null!=(null==o?void 0:o.popupPositionFromSelector)?o.popupPositionFromSelector:i.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(o,a,s,this.beans.gridOptionsService.get(\"reactiveCustomComponents\"));const l=this.createEvent(n,CR.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(l)}setEditing(e){this.editing!==e&&(this.editing=e,this.refreshHandle())}stopRowOrCellEdit(e=!1){\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")?this.rowCtrl.stopEditing(e):this.stopEditing(e)}onPopupEditorClosed(){this.isEditing()&&this.stopEditingAndFocus()}takeValueFromCellEditor(e){const t={newValueExists:!1};if(e)return t;const n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t}saveNewValue(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;const n=this.rowNode.setDataValue(this.column,t,\"edit\");return this.suppressRefreshCell=!1,n}stopEditing(e=!1){if(!this.editing)return!1;const{newValue:t,newValueExists:n}=this.takeValueFromCellEditor(e),r=this.rowNode.getValueFromValueService(this.column);let i=!1;return n&&(i=this.saveNewValue(r,t)),this.setEditing(!1),this.cellComp.setEditDetails(),this.editCompDetails=void 0,this.updateAndFormatValue(!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,t,!e&&!!i),i}dispatchEditingStoppedEvent(e,t,n){const r=DT(TT({},this.createEvent(null,CR.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:n});this.beans.eventService.dispatchEvent(r)}createCellEditorParams(e,t){return this.beans.gridOptionsService.addGridCommonParams({value:this.rowNode.getValueFromValueService(this.column),eventKey:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,cellStartedEdit:t,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)})}createCellRendererParams(){return this.beans.gridOptionsService.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:()=>this.rowNode.getValueFromValueService(this.column),setValue:e=>this.beans.valueService.setValue(this.rowNode,this.column,e),formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:(e,t,n,r)=>this.registerRowDragger(e,t,r),setTooltip:(e,t)=>{this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(e,t),this.refreshToolTip()}})}parseValue(e){return this.beans.valueParserService.parseValue(this.column,this.rowNode,e,this.getValue())}setFocusOutOnEditor(){if(!this.editing)return;const e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}setFocusInOnEditor(){if(!this.editing)return;const e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){var t;this.refreshShouldDestroy()?null==(t=this.rowCtrl)||t.refreshCell(this):this.refreshCell(e)}refreshCell(e){var t,n,r;if(this.suppressRefreshCell||this.editing)return;const i=this.column.getColDef(),o=null!=e&&!!e.newData,a=null!=e&&!!e.suppressFlash||!!i.suppressCellFlash,s=null==i.field&&null==i.valueGetter&&null==i.showRowGroup,l=e&&e.forceRefresh||s||o,c=!!this.cellComp,d=this.updateAndFormatValue(c);if(c){if(l||d){this.showValue(o);const e=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!a&&!e&&(this.beans.gridOptionsService.get(\"enableCellChangeFlash\")||i.enableCellChangeFlash)&&this.flashCell(),null==(t=this.cellCustomStyleFeature)||t.applyUserStyles(),null==(n=this.cellCustomStyleFeature)||n.applyClassesFromColDef()}this.refreshToolTip(),null==(r=this.cellCustomStyleFeature)||r.applyCellClassRules()}}stopEditingAndFocus(e=!1,t=!1){this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit(t)}navigateAfterEdit(e){if(this.beans.gridOptionsService.get(\"enterNavigatesVerticallyAfterEdit\")){const t=e?lk.UP:lk.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.getCellPosition(),!1)}}flashCell(e){var t,n;const r=null!=(t=null==e?void 0:e.flashDuration)?t:null==e?void 0:e.flashDelay,i=null!=(n=null==e?void 0:e.fadeDuration)?n:null==e?void 0:e.fadeDelay;this.animateCell(\"data-changed\",r,i)}animateCell(e,t,n){if(!this.cellComp)return;const r=`ag-cell-${e}`,i=`ag-cell-${e}-animation`,{gridOptionsService:o}=this.beans;t||(t=o.get(\"cellFlashDuration\")),NT(n)||(n=o.get(\"cellFadeDuration\")),this.cellComp.addOrRemoveCssClass(r,!0),this.cellComp.addOrRemoveCssClass(i,!1),this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(r,!1),this.cellComp.addOrRemoveCssClass(i,!0),this.eGui.style.transition=`background-color ${n}ms`,window.setTimeout((()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(i,!1),this.eGui.style.transition=\"\")}),n))}),t)}))}onFlashCells(e){if(!this.cellComp)return;const t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell(\"highlight\")}isCellEditable(){return this.column.isCellEditable(this.rowNode)}isSuppressFillHandle(){return this.column.isSuppressFillHandle()}formatValue(e){var t;return null!=(t=this.callValueFormatter(e))?t:e}callValueFormatter(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,n=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),!e||!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}getComp(){return this.cellComp}getValue(){return this.value}getValueFormatted(){return this.valueFormatted}addDomData(){const t=this.getGui();this.beans.gridOptionsService.setDomData(t,e.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((()=>this.beans.gridOptionsService.setDomData(t,e.DOM_DATA_KEY_CELL_CTRL,null)))}createEvent(e,t){return this.beans.gridOptionsService.addGridCommonParams({type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex})}processCharacter(e){var t;null==(t=this.cellKeyboardListenerFeature)||t.processCharacter(e)}onKeyDown(e){var t;null==(t=this.cellKeyboardListenerFeature)||t.onKeyDown(e)}onMouseEvent(e,t){var n;null==(n=this.cellMouseListenerFeature)||n.onMouseEvent(e,t)}getGui(){return this.eGui}refreshToolTip(){var e;null==(e=this.tooltipFeature)||e.refreshToolTip()}getColSpanningList(){return this.cellPositionFeature.getColSpanningList()}onLeftChanged(){var e;this.cellComp&&(null==(e=this.cellPositionFeature)||e.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{cellComp:e,column:t,beans:n}=this;fP.refreshFirstAndLastStyles(e,t,n.columnModel)}refreshAriaColIndex(){const e=this.beans.columnModel.getAriaColumnIndex(this.column);SM(this.getGui(),e)}isSuppressNavigable(){return this.column.isSuppressNavigable(this.rowNode)}onWidthChanged(){var e;return null==(e=this.cellPositionFeature)?void 0:e.onWidthChanged()}getColumn(){return this.column}getRowNode(){return this.rowNode}getBeans(){return this.beans}isPrintLayout(){return this.printLayout}appendChild(e){this.eGui.appendChild(e)}refreshHandle(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()}getCellPosition(){return this.cellPosition}isEditing(){return this.editing}startRowOrCellEdit(e,t=null){this.cellComp?\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")?this.rowCtrl.startRowEditing(e,this):this.startEditing(e,!0,t):this.onCellCompAttachedFuncs.push((()=>{this.startRowOrCellEdit(e,t)}))}getRowCtrl(){return this.rowCtrl}getRowPosition(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}}updateRangeBordersIfRangeCount(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()}onRangeSelectionChanged(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()}isRangeSelectionEnabled(){return null!=this.cellRangeFeature}focusCell(e=!1){this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()}onFirstRightPinnedChanged(){if(!this.cellComp)return;const e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(\"ag-cell-first-right-pinned\",e)}onLastLeftPinnedChanged(){if(!this.cellComp)return;const e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(\"ag-cell-last-left-pinned\",e)}onCellFocused(e){if(this.beans.gridOptionsService.get(\"suppressCellFocus\"))return;const t=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp)return void(t&&(null==e?void 0:e.forceBrowserFocus)&&(this.focusEventToRestore=e));this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(\"ag-cell-focus\",t),t&&e&&e.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});const n=\"fullRow\"===this.beans.gridOptionsService.get(\"editType\");t||n||!this.editing||this.stopRowOrCellEdit(),t&&this.rowCtrl.announceDescription()}createCellPosition(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:IT(this.rowNode.rowPinned),column:this.column}}applyStaticCssClasses(){this.cellComp.addOrRemoveCssClass(\"ag-cell\",!0),this.cellComp.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!0);const e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass(\"ag-cell-auto-height\",e),this.cellComp.addOrRemoveCssClass(\"ag-cell-normal-height\",!e)}onColumnHover(){if(!this.cellComp)return;if(!this.beans.gridOptionsService.get(\"columnHoverHighlight\"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(\"ag-column-hover\",e)}onColDefChanged(){var e;if(this.cellComp)if(this.column.isAutoHeight()!==this.isAutoHeight&&(null==(e=this.rowCtrl)||e.refreshCell(this)),this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing){const e=this.getCellEditor();if(null==e?void 0:e.refresh){const{eventKey:t,cellStartedEdit:n}=this.editCompDetails.params,r=this.createCellEditorParams(t,n),i=this.column.getColDef(),o=this.beans.userComponentFactory.getCellEditorDetails(i,r);e.refresh(o.params)}}else this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0})}setWrapText(){const e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass(\"ag-cell-wrap-text\",e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,CR.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{t.onCellContextMenu(n)}))}),0)}getCellRenderer(){return this.cellComp?this.cellComp.getCellRenderer():null}getCellEditor(){return this.cellComp?this.cellComp.getCellEditor():null}destroy(){this.onCellCompAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){const e=new qI;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=new gP(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(e),e}registerRowDragger(e,t,n){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);const r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null})))}createRowDragComp(e,t,n){const r=this.beans.gridOptionsService.get(\"pagination\"),i=this.beans.gridOptionsService.get(\"rowDragManaged\"),o=this.beans.gridOptionsService.isRowModelType(\"clientSide\");if(i){if(!o)return void nD(\"managed row dragging is only allowed in the Client Side Row Model\");if(r)return void nD(\"managed row dragging is not possible when doing pagination\")}const a=new ZI((()=>this.value),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a}};vP.DOM_DATA_KEY_CELL_CTRL=\"cellCtrl\";var yP=vP,bP=0,wP=class e extends vR{constructor(e,t,n,r,i){super(),this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKeySanitised=null,this.beans=t,this.gridOptionsService=t.gridOptionsService,this.rowNode=e,this.paginationPage=t.paginationProxy.getCurrentPage(),this.useAnimationFrameForCreate=r,this.printLayout=i,this.suppressRowTransform=this.gridOptionsService.get(\"suppressRowTransform\"),this.instanceId=e.id+\"-\"+bP++,this.rowId=kR(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=t.rowCssClassCalculator.calculateRowLevel(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.isFullWidth()&&!this.gridOptionsService.get(\"suppressCellFocus\")&&(this.tabIndex=-1),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gridOptionsService.get(\"getBusinessKeyForNode\"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(\"function\"!=typeof this.businessKeyForNodeFunc)return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=kR(e)}getRowId(){return this.rowId}getRowStyles(){return this.rowStyles}getTabIndex(){return this.tabIndex}isSticky(){return this.rowNode.sticky}getBeans(){return this.beans}getInstanceId(){return this.instanceId}setComp(e,t,n){const r={rowComp:e,element:t,containerType:n};this.allRowGuis.push(r),\"left\"===n?this.leftGui=r:\"right\"===n?this.rightGui=r:\"fullWidth\"===n?this.fullWidthGui=r:this.centerGui=r,this.initialiseRowComp(r),\"FullWidthLoading\"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(e){switch(this.allRowGuis=this.allRowGuis.filter((t=>t.containerType!==e)),e){case\"left\":this.leftGui=void 0;break;case\"right\":this.rightGui=void 0;break;case\"fullWidth\":this.fullWidthGui=void 0;break;case\"center\":this.centerGui=void 0}}isCacheable(){return\"FullWidthDetail\"===this.rowType&&this.gridOptionsService.get(\"keepDetailRows\")}setCached(e){const t=e?\"none\":\"\";this.allRowGuis.forEach((e=>e.element.style.display=t))}initialiseRowComp(t){const n=this.gridOptionsService;this.listenOnDomOrder(t),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(t),this.updateRowIndexes(t),this.setFocusedClasses(t),this.setStylesFromGridOptions(!1,t),n.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(t),this.updateColumnLists(!this.useAnimationFrameForCreate);const r=t.rowComp;this.getInitialRowClasses(t.containerType).forEach((e=>r.addOrRemoveCssClass(e,!0))),this.executeSlideAndFadeAnimations(t),this.rowNode.group&&gM(t.element,1==this.rowNode.expanded),this.setRowCompRowId(r),this.setRowCompRowBusinessKey(r),n.setDomData(t.element,e.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((()=>n.setDomData(t.element,e.DOM_DATA_KEY_ROW_CTRL,null))),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,t.element),this.rowNode.rowIndex,\"createTasksP2\"):this.addHoverFunctionality(t.element),this.isFullWidth()&&this.setupFullWidth(t),n.get(\"rowDragEntireRow\")&&this.addRowDraggerToRow(t),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((()=>{this.isAlive()&&t.rowComp.addOrRemoveCssClass(\"ag-after-created\",!0)})),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKeySanitised&&e.setRowBusinessKey(this.businessKeySanitised)}getBusinessKey(){return this.businessKeySanitised}setRowCompRowId(e){this.rowId=kR(this.rowNode.id),null!=this.rowId&&e.setRowId(this.rowId)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(cD((()=>{this.onTopChanged()})),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(cD((()=>{e.rowComp.addOrRemoveCssClass(\"ag-opacity-zero\",!1)})),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){if(this.gridOptionsService.get(\"enableRangeSelection\"))return void nD(\"Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`\");const t=this.beans.localeService.getLocaleTextFunc(),n=new ZI((()=>`1 ${t(\"rowDragRow\",\"row\")}`),this.rowNode,void 0,e.element,void 0,!0),r=this.createBean(n,this.beans.context);this.rowDragComps.push(r)}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType);if(\"FullWidthDetail\"==this.rowType&&!yD.__assertRegistered(\"@ag-grid-enterprise/master-detail\",\"cell renderer 'agDetailCellRenderer' (for master detail)\",this.beans.context.getGridId()))return;const n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}isPrintLayout(){return this.printLayout}getFullWidthCellRenderers(){var e,t;return this.gridOptionsService.get(\"embedFullWidthRows\")?this.allRowGuis.map((e=>{var t;return null==(t=null==e?void 0:e.rowComp)?void 0:t.getFullWidthCellRenderer()})):[null==(t=null==(e=this.fullWidthGui)?void 0:e.rowComp)?void 0:t.getFullWidthCellRenderer()]}getCellElement(e){const t=this.getCellCtrl(e);return t?t.getGui():null}executeProcessRowPostCreateFunc(){const e=this.gridOptionsService.getCallback(\"processRowPostCreate\");e&&this.areAllContainersReady()&&e({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){const e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,n=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&n}setRowType(){const e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.gridOptionsService.get(\"masterDetail\")&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),i=!!this.rowNode.group&&!this.rowNode.footer&&this.gridOptionsService.isGroupUseEntireRow(r);this.rowType=e?\"FullWidthLoading\":n?\"FullWidthDetail\":t?\"FullWidth\":i?\"FullWidthGroup\":\"Normal\"}updateColumnLists(e=!1,t=!1){this.isFullWidth()||(e||this.gridOptionsService.get(\"suppressAnimationFrame\")||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(this.beans.animationFrameService.createTask((()=>{this.active&&this.updateColumnListsImpl(!0)}),this.rowNode.rowIndex,\"createTasksP1\"),this.updateColumnListsPending=!0))}createCellCtrls(e,t,n=null){const r={list:[],map:{}},i=(e,t)=>{r.list.push(t),r.map[e]=t};return t.forEach((t=>{const n=t.getInstanceId();let r=e.map[n];r||(r=new yP(t,this.rowNode,this.beans,this)),i(n,r)})),e.list.forEach((e=>{null==r.map[e.getColumn().getInstanceId()]&&(this.isCellEligibleToBeRemoved(e,n)?e.destroy():i(e.getColumn().getInstanceId(),e))})),r}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach((t=>{const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,e)}))}getCellCtrlsForContainer(e){switch(e){case\"left\":return this.leftCellCtrls.list;case\"right\":return this.rightCellCtrls.list;case\"fullWidth\":return[];case\"center\":return this.centerCellCtrls.list;default:throw new Error(`Unhandled case: ${e}`)}}createAllCellCtrls(){const e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const t=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t);const n=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,n,\"left\");const r=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,\"right\")}}isCellEligibleToBeRemoved(e,t){const n=!0;if(e.getColumn().getPinned()!=t)return n;const r=e.isEditing(),i=this.beans.focusService.isCellFocused(e.getCellPosition());if(r||i){const t=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(t)>=0)&&n}return n}getDomOrder(){return this.gridOptionsService.get(\"ensureDomOrder\")||this.gridOptionsService.isDomLayout(\"print\")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};this.addManagedPropertyListener(\"domLayout\",t),this.addManagedPropertyListener(\"ensureDomOrder\",t)}setAnimateFlags(e){if(this.isSticky()||!e)return;const t=NT(this.rowNode.oldRowTop),n=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();if(t){if(this.isFullWidth()&&!this.gridOptionsService.get(\"embedFullWidthRows\"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=n,this.slideInAnimation.right=r}else{if(this.isFullWidth()&&!this.gridOptionsService.get(\"embedFullWidthRows\"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=n,this.fadeInAnimation.right=r}}isEditing(){return this.editingRow}isFullWidth(){return\"Normal\"!==this.rowType}getRowType(){return this.rowType}refreshFullWidth(){const e=(e,t)=>!e||e.rowComp.refreshFullWidth((()=>this.createFullWidthCompDetails(e.element,t).params)),t=e(this.fullWidthGui,null),n=e(this.centerGui,null),r=e(this.leftGui,\"left\"),i=e(this.rightGui,\"right\");return t&&n&&r&&i}addListeners(){this.addManagedListener(this.rowNode,KI.EVENT_HEIGHT_CHANGED,(()=>this.onRowHeightChanged())),this.addManagedListener(this.rowNode,KI.EVENT_ROW_SELECTED,(()=>this.onRowSelected())),this.addManagedListener(this.rowNode,KI.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,KI.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,KI.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));const e=this.beans.eventService;this.addManagedListener(e,CR.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,CR.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,CR.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,CR.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,CR.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,CR.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,CR.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(e,CR.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc((()=>{this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context))})),this.addManagedPropertyListeners([\"rowDragEntireRow\"],(()=>{this.gridOptionsService.get(\"rowDragEntireRow\")?this.allRowGuis.forEach((e=>{this.addRowDraggerToRow(e)})):(this.destroyBeans(this.rowDragComps,this.beans.context),this.rowDragComps=[])})),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListener(this.rowNode,KI.EVENT_ROW_INDEX_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onRowIndexChanged()))})),this.addManagedListener(this.rowNode,KI.EVENT_CELL_CHANGED,(e=>{this.getAllCellCtrls().forEach((t=>t.onCellChanged(e)))}))}onRowNodeDataChanged(e){this.isFullWidth()!==!!this.rowNode.isFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach((t=>t.refreshCell({suppressFlash:!e.update,newData:!e.update}))),this.allRowGuis.forEach((e=>{this.setRowCompRowId(e.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss())}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach((t=>{const n=0===e,r=1===e;t.rowComp.addOrRemoveCssClass(\"ag-row-highlight-above\",n),t.rowComp.addOrRemoveCssClass(\"ag-row-highlight-below\",r)}))}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(\"ag-row-dragging\",e)))}updateExpandedCss(){const e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((n=>{n.rowComp.addOrRemoveCssClass(\"ag-row-group\",e),n.rowComp.addOrRemoveCssClass(\"ag-row-group-expanded\",e&&t),n.rowComp.addOrRemoveCssClass(\"ag-row-group-contracted\",e&&!t),gM(n.element,e&&t)}))}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:IT(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.allRowGuis.find((t=>t.element.contains(e.target)));if((t?t.element:null)!==e.target)return;const n=this.rowNode,r=this.beans.focusService.getFocusedCell(),i={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.key,i,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||cR(e))return;const t=this.allRowGuis.find((t=>t.element.contains(e.target))),n=t?t.element:null,r=n===e.target;let i=null;r||(i=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!i)&&this.beans.navigationService.onTabKeyDown(this,e)}onFullWidthRowFocused(e){var t;const n=this.rowNode,r=!!e&&this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,i=this.fullWidthGui?this.fullWidthGui.element:null==(t=this.centerGui)?void 0:t.element;i&&(i.classList.toggle(\"ag-full-width-focus\",r),r&&i.focus({preventScroll:!0}))}refreshCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()}removeCellCtrl(e,t){const n={list:[],map:{}};return e.list.forEach((e=>{e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n}onMouseEvent(e,t){switch(e){case\"dblclick\":this.onRowDblClick(t);break;case\"click\":this.onRowClick(t);break;case\"touchstart\":case\"mousedown\":this.onRowMouseDown(t)}}createRowEvent(e,t){return this.gridOptionsService.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){if(cR(e))return;const t=this.createRowEventWithSource(CR.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}onRowMouseDown(e){if(this.lastMouseDownOnDragger=CO(e.target,\"ag-row-drag\",3),!this.isFullWidth())return;const t=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}onRowClick(e){if(cR(e)||this.lastMouseDownOnDragger)return;const t=this.createRowEventWithSource(CR.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);const n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(this.gridOptionsService.get(\"groupSelectsChildren\")&&this.rowNode.group||this.isRowSelectionBlocked()||this.gridOptionsService.get(\"suppressRowClickSelection\"))return;const i=this.gridOptionsService.get(\"rowMultiSelectWithClick\"),o=!this.gridOptionsService.get(\"suppressRowDeselection\"),a=\"rowClicked\";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):n?o&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r,rangeSelect:r,event:e,source:a});else{const t=!i&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:t,rangeSelect:r,event:e,source:a})}}isRowSelectionBlocked(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()}setupDetailRowAutoHeight(e){if(\"FullWidthDetail\"!==this.rowType)return;if(!this.gridOptionsService.get(\"detailRowAutoHeight\"))return;const t=()=>{const t=e.clientHeight;if(null!=t&&t>0){const e=()=>{this.rowNode.setRowHeight(t),this.beans.clientSideRowModel?this.beans.clientSideRowModel.onRowHeightChanged():this.beans.serverSideRowModel&&this.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(e,0)}},n=this.beans.resizeObserverService.observeResize(e,t);this.addDestroyFunc(n),t()}createFullWidthCompDetails(e,t){const n=this.gridOptionsService.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(e,t,n,r)=>this.addFullWidthRowDragging(e,t,n,r),setTooltip:(e,t)=>this.refreshRowTooltip(e,t)});switch(this.rowType){case\"FullWidthDetail\":return this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);case\"FullWidthGroup\":return this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);case\"FullWidthLoading\":return this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);default:return this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}}refreshRowTooltip(e,t){if(!this.fullWidthGui)return;const n={getGui:()=>this.fullWidthGui.element,getTooltipValue:()=>e,getLocation:()=>\"fullWidthRow\",shouldDisplayTooltip:t};this.tooltipFeature&&this.destroyBean(this.tooltipFeature,this.beans.context),this.tooltipFeature=this.createBean(new Ik(n,this.beans))}addFullWidthRowDragging(e,t,n=\"\",r){if(!this.isFullWidth())return;const i=new ZI((()=>n),this.rowNode,void 0,e,t,r);this.createBean(i,this.beans.context),this.addDestroyFunc((()=>{this.destroyBean(i,this.beans.context)}))}onUiLevelChanged(){const e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){const t=\"ag-row-level-\"+e,n=\"ag-row-level-\"+this.rowLevel;this.allRowGuis.forEach((e=>{e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(\"ag-row-first\",e)))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((e=>e.rowComp.addOrRemoveCssClass(\"ag-row-last\",t))))}stopEditing(e=!1){if(this.stoppingRowEdit)return;const t=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;let r=!1;for(const i of t){const t=i.stopEditing(e);n&&!e&&!r&&t&&(r=!0)}if(r){const e=this.createRowEvent(CR.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(e)}n&&this.setEditingRow(!1),this.stoppingRowEdit=!1}setInlineEditingCss(e){this.allRowGuis.forEach((t=>{t.rowComp.addOrRemoveCssClass(\"ag-row-inline-editing\",e),t.rowComp.addOrRemoveCssClass(\"ag-row-not-inline-editing\",!e)}))}setEditingRow(e){this.editingRow=e,this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(\"ag-row-editing\",e)));const t=e?this.createRowEvent(CR.EVENT_ROW_EDITING_STARTED):this.createRowEvent(CR.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)}startRowEditing(e=null,t=null,n=null){this.editingRow||this.getAllCellCtrls().reduce(((r,i)=>{const o=i===t;return o?i.startEditing(e,o,n):i.startEditing(null,o,n),!!r||i.isEditing()}),!1)&&this.setEditingRow(!0)}getAllCellCtrls(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!0)))}))}postProcessRowClassRules(){this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!0)))}),(e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!1)))}))}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,(e=>e.rowComp.setUserStyles(this.rowStyles)))}getPinnedForContainer(e){return\"left\"===e?\"left\":\"right\"===e?\"right\":null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)}processStylesFromGridOptions(){const e=this.gridOptionsService.get(\"rowStyle\");if(e&&\"function\"==typeof e)return void console.warn(\"AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead\");const t=this.gridOptionsService.getCallback(\"getRowStyle\");let n;return t&&(n=t({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),n||e?Object.assign({},e,n):this.emptyStyle}onRowSelected(e){const t=this.beans.gridOptionsService.getDocument(),n=!!this.rowNode.isSelected();this.forEachGui(e,(e=>{e.rowComp.addOrRemoveCssClass(\"ag-row-selected\",n),TM(e.element,n),!e.element.contains(t.activeElement)||e!==this.centerGui&&e!==this.fullWidthGui||this.announceDescription()}))}announceDescription(){if(this.isRowSelectionBlocked())return;const e=this.rowNode.isSelected();if(e&&this.beans.gridOptionsService.get(\"suppressRowDeselection\"))return;const t=this.beans.localeService.getLocaleTextFunc()(e?\"ariaRowDeselect\":\"ariaRowSelect\",`Press SPACE to ${e?\"deselect\":\"select\"} this row.`);this.beans.ariaAnnouncementService.announceValue(t)}isUseAnimationFrameForCreate(){return this.useAnimationFrameForCreate}addHoverFunctionality(e){this.active&&(this.addManagedListener(e,\"mouseenter\",(()=>this.rowNode.onMouseEnter())),this.addManagedListener(e,\"mouseleave\",(()=>this.rowNode.onMouseLeave())),this.addManagedListener(this.rowNode,KI.EVENT_MOUSE_ENTER,(()=>{this.beans.dragService.isDragging()||this.gridOptionsService.get(\"suppressRowHoverHighlight\")||(e.classList.add(\"ag-row-hover\"),this.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,KI.EVENT_MOUSE_LEAVE,(()=>{e.classList.remove(\"ag-row-hover\"),this.rowNode.setHovered(!1)})))}roundRowTopToBounds(e){const t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)}getFrameworkOverrides(){return this.beans.frameworkOverrides}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),r=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=r?Math.min(n,r)-2+\"px\":void 0;this.forEachGui(e,(e=>{e.element.style.height=`${t}px`,i&&e.element.style.setProperty(\"--ag-line-height\",i)}))}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}destroyFirstPass(e=!1){if(this.active=!1,!e&&this.gridOptionsService.isAnimateRows()&&!this.isSticky())if(null!=this.rowNode.rowTop){const e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((e=>e.rowComp.addOrRemoveCssClass(\"ag-opacity-zero\",!0)));this.rowNode.setHovered(!1);const t=this.createRowEvent(CR.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.stopEditing();const e=e=>(e.list.forEach((e=>e.destroy())),{list:[],map:{}});this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,(e=>{e.rowComp.addOrRemoveCssClass(\"ag-row-focus\",this.rowFocused),e.rowComp.addOrRemoveCssClass(\"ag-row-no-focus\",!this.rowFocused)}))}onCellFocusChanged(){const e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)}onPaginationChanged(){const e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){return this.rowNode.isRowPinned()||this.rowNode.sticky?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)}setRowTop(e){if(!this.printLayout&&NT(e)){const t=this.applyPaginationOffset(e),n=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeightService.getRealPixelPosition(t)}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return\"\";let t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{const n=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(n);t=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return t+\"px\"}setRowTopStyle(e){this.allRowGuis.forEach((t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)))}getRowNode(){return this.rowNode}getCellCtrl(e){let t=null;return this.getAllCellCtrls().forEach((n=>{n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((n=>{n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}getRowIndex(){return this.rowNode.getRowIndexString()}updateRowIndexes(e){const t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),r=this.rowNode.rowIndex%2==0,i=n+this.rowNode.rowIndex+1;this.forEachGui(e,(e=>{e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass(\"ag-row-even\",r),e.rowComp.addOrRemoveCssClass(\"ag-row-odd\",!r),wM(e.element,i)}))}};wP.DOM_DATA_KEY_ROW_CTRL=\"renderedRow\";var CP=wP,SP=class extends vR{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()}addKeyboardListeners(){const e=\"keydown\",t=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,t)}addMouseListeners(){[\"dblclick\",\"contextmenu\",\"mouseover\",\"mouseout\",\"click\",dR(\"touchstart\")?\"touchstart\":\"mousedown\"].forEach((e=>{const t=this.processMouseEvent.bind(this,e);this.addManagedListener(this.element,e,t)}))}processMouseEvent(e,t){if(!this.mouseEventService.isEventFromThisGrid(t)||cR(t))return;const n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);\"contextmenu\"===e?this.handleContextMenuMouseEvent(t,void 0,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}mockContextMenuForIPad(){if(!UM())return;const e=new kI(this.element);this.addManagedListener(e,kI.EVENT_LONG_TAP,(e=>{const t=this.getRowForEvent(e.touchEvent),n=this.mouseEventService.getRenderedCellForEvent(e.touchEvent);this.handleContextMenuMouseEvent(void 0,e.touchEvent,t,n)})),this.addDestroyFunc((()=>e.destroy()))}getRowForEvent(e){let t=e.target;for(;t;){const e=this.gridOptionsService.getDomData(t,CP.DOM_DATA_KEY_ROW_CTRL);if(e)return e;t=t.parentElement}return null}handleContextMenuMouseEvent(e,t,n,r){const i=n?n.getRowNode():null,o=r?r.getColumn():null;let a=null;if(o){const n=e||t;r.dispatchCellContextMenuEvent(null!=n?n:null),a=this.valueService.getValue(o,i)}const s=this.ctrlsService.getGridBodyCtrl(),l=r?r.getGui():s.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:i,column:o,value:a,anchorToElement:l})}getControlsForEventTarget(e){return{cellCtrl:uR(this.gridOptionsService,e,yP.DOM_DATA_KEY_CELL_CTRL),rowCtrl:uR(this.gridOptionsService,e,CP.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,n){const r=e.getRowNode(),i=e.getColumn(),o=e.isEditing();if(mk(this.gridOptionsService,n,r,i,o)||\"keydown\"!==t||(!o&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing()),fk(n)&&e.processCharacter(n)),\"keydown\"===t){const t=e.createEvent(n,CR.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(t)}}processFullWidthRowKeyboardEvent(e,t,n){const r=e.getRowNode(),i=this.focusService.getFocusedCell(),o=i&&i.column;if(!mk(this.gridOptionsService,n,r,o,!1)){const r=n.key;if(\"keydown\"===t)switch(r){case lk.PAGE_HOME:case lk.PAGE_END:case lk.PAGE_UP:case lk.PAGE_DOWN:this.navigationService.handlePageScrollingKey(n,!0);break;case lk.UP:case lk.DOWN:e.onKeyboardNavigate(n);break;case lk.TAB:e.onTabKeyDown(n)}}if(\"keydown\"===t){const t=e.createRowEvent(CR.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(t)}}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey)return;if(t)return;if(!this.mouseEventService.isEventFromThisGrid(e))return;const n=yk(e);return n===lk.A?this.onCtrlAndA(e):n===lk.C?this.onCtrlAndC(e):n===lk.D?this.onCtrlAndD(e):n===lk.V?this.onCtrlAndV(e):n===lk.X?this.onCtrlAndX(e):n===lk.Y?this.onCtrlAndY():n===lk.Z?this.onCtrlAndZ(e):void 0}onCtrlAndA(e){const{pinnedRowModel:t,paginationProxy:n,rangeService:r}=this;if(r&&n.isRowsToRender()){const[e,n]=[t.isEmpty(\"top\"),t.isEmpty(\"bottom\")],i=e?null:\"top\";let o,a;n?(o=null,a=this.paginationProxy.getRowCount()-1):(o=\"bottom\",a=t.getPinnedBottomRowData().length-1);const s=this.columnModel.getAllDisplayedColumns();if(LT(s))return;r.setCellRange({rowStartIndex:0,rowStartPinned:i,rowEndIndex:a,rowEndPinned:o,columnStart:s[0],columnEnd:HD(s)})}e.preventDefault()}onCtrlAndC(e){if(!this.clipboardService||this.gridOptionsService.get(\"enableCellTextSelection\"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||(e.preventDefault(),this.clipboardService.copyToClipboard())}onCtrlAndX(e){if(!this.clipboardService||this.gridOptionsService.get(\"enableCellTextSelection\")||this.gridOptionsService.get(\"suppressCutToClipboard\"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,\"ui\"))}onCtrlAndV(e){const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||this.clipboardService&&!this.gridOptionsService.get(\"suppressClipboardPaste\")&&this.clipboardService.pasteFromClipboard()}onCtrlAndD(e){this.clipboardService&&!this.gridOptionsService.get(\"suppressClipboardPaste\")&&this.clipboardService.copyRangeDown(),e.preventDefault()}onCtrlAndZ(e){this.gridOptionsService.get(\"undoRedoCellEditing\")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo(\"ui\"):this.undoRedoService.undo(\"ui\"))}onCtrlAndY(){this.undoRedoService.redo(\"ui\")}};MT([xD(\"mouseEventService\")],SP.prototype,\"mouseEventService\",2),MT([xD(\"valueService\")],SP.prototype,\"valueService\",2),MT([xD(\"menuService\")],SP.prototype,\"menuService\",2),MT([xD(\"ctrlsService\")],SP.prototype,\"ctrlsService\",2),MT([xD(\"navigationService\")],SP.prototype,\"navigationService\",2),MT([xD(\"focusService\")],SP.prototype,\"focusService\",2),MT([xD(\"undoRedoService\")],SP.prototype,\"undoRedoService\",2),MT([xD(\"columnModel\")],SP.prototype,\"columnModel\",2),MT([xD(\"paginationProxy\")],SP.prototype,\"paginationProxy\",2),MT([xD(\"pinnedRowModel\")],SP.prototype,\"pinnedRowModel\",2),MT([AD(\"rangeService\")],SP.prototype,\"rangeService\",2),MT([AD(\"clipboardService\")],SP.prototype,\"clipboardService\",2),MT([CD],SP.prototype,\"postConstruct\",1);var EP=class extends vR{constructor(e){super(),this.centerContainerCtrl=e}postConstruct(){this.ctrlsService.whenReady((()=>{this.gridBodyCtrl=this.ctrlsService.getGridBodyCtrl(),this.listenForResize()})),this.addManagedListener(this.eventService,CR.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedPropertyListeners([\"alwaysShowHorizontalScroll\",\"alwaysShowVerticalScroll\"],(()=>{this.checkViewportAndScrolls()}))}listenForResize(){const e=()=>this.onCenterViewportResized();this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}keepPinnedColumnsNarrowerThanViewport(){const e=xO(this.gridBodyCtrl.getBodyViewportElement());if(e<=50)return;let t=this.getPinnedColumnsOverflowingViewport(e-50);const n=this.gridOptionsService.getCallback(\"processUnpinnedColumns\");t.length&&(n&&(t=n({columns:t,viewportWidth:e})),this.columnModel.setColumnsPinned(t,null,\"viewportSizeFeature\"))}getPinnedColumnsOverflowingViewport(e){const t=this.pinnedWidthService.getPinnedRightWidth()+this.pinnedWidthService.getPinnedLeftWidth();if(t<e)return[];const n=[...this.columnModel.getDisplayedLeftColumns()],r=[...this.columnModel.getDisplayedRightColumns()];let i=0,o=0;const a=[];let s=t-0-e;for(;(o<n.length||i<r.length)&&s>0;){if(i<r.length){const e=r[i++];s-=e.getActualWidth(),a.push(e)}if(o<n.length&&s>0){const e=n[o++];s-=e.getActualWidth(),a.push(e)}}return a}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=EO(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;const t={type:CR.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(t)}}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)}isHorizontalScrollShowing(){return this.centerContainerCtrl.isHorizontalScrollShowing()}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)}};MT([xD(\"ctrlsService\")],EP.prototype,\"ctrlsService\",2),MT([xD(\"pinnedWidthService\")],EP.prototype,\"pinnedWidthService\",2),MT([xD(\"columnModel\")],EP.prototype,\"columnModel\",2),MT([xD(\"scrollVisibleService\")],EP.prototype,\"scrollVisibleService\",2),MT([CD],EP.prototype,\"postConstruct\",1);var xP=class extends vR{constructor(e){super(),this.element=e}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))}onPinnedLeftWidthChanged(){const e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;yO(this.element,t),jO(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedLeftWidth()}};MT([xD(\"pinnedWidthService\")],xP.prototype,\"pinnedWidthService\",2),MT([CD],xP.prototype,\"postConstruct\",1);var AP=class extends vR{constructor(e){super(),this.element=e}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))}onPinnedRightWidthChanged(){const e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;yO(this.element,t),jO(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedRightWidth()}};MT([xD(\"pinnedWidthService\")],AP.prototype,\"pinnedWidthService\",2),MT([CD],AP.prototype,\"postConstruct\",1);var TP=class extends vR{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))}onHeightChanged(){const e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?`${e}px`:\"\";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)}};MT([xD(\"rowContainerHeightService\")],TP.prototype,\"maxDivHeightScaler\",2),MT([CD],TP.prototype,\"postConstruct\",1);var DP=class extends vR{constructor(e){super(),this.eContainer=e}postConstruct(){PT(this.rangeService)||(this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener(\"enableRangeSelection\",(e=>{e.currentValue?this.enableFeature():this.disableFeature()})),this.addDestroyFunc((()=>this.disableFeature())),this.gridOptionsService.get(\"enableRangeSelection\")&&this.enableFeature())}enableFeature(){this.dragService.addDragSource(this.params)}disableFeature(){this.dragService.removeDragSource(this.params)}};MT([AD(\"rangeService\")],DP.prototype,\"rangeService\",2),MT([xD(\"dragService\")],DP.prototype,\"dragService\",2),MT([CD],DP.prototype,\"postConstruct\",1);var RP=class extends vR{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener(\"domLayout\",e),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()}setWidth(){const{columnModel:e}=this,t=this.gridOptionsService.isDomLayout(\"print\"),n=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),i=e.getDisplayedColumnsRightWidth();let o;t?o=n+r+i:(o=n,this.addSpacer&&0===(this.gridOptionsService.get(\"enableRtl\")?r:i)&&this.scrollVisibleService.isVerticalScrollShowing()&&(o+=this.gridOptionsService.getScrollbarWidth())),this.callback(o)}};MT([xD(\"columnModel\")],RP.prototype,\"columnModel\",2),MT([xD(\"scrollVisibleService\")],RP.prototype,\"scrollVisibleService\",2),MT([CD],RP.prototype,\"postConstruct\",1);var MP=(e=>(e.LEFT=\"left\",e.RIGHT=\"right\",e.CENTER=\"center\",e.FULL_WIDTH=\"fullWidth\",e.TOP_LEFT=\"topLeft\",e.TOP_RIGHT=\"topRight\",e.TOP_CENTER=\"topCenter\",e.TOP_FULL_WIDTH=\"topFullWidth\",e.STICKY_TOP_LEFT=\"stickyTopLeft\",e.STICKY_TOP_RIGHT=\"stickyTopRight\",e.STICKY_TOP_CENTER=\"stickyTopCenter\",e.STICKY_TOP_FULL_WIDTH=\"stickyTopFullWidth\",e.BOTTOM_LEFT=\"bottomLeft\",e.BOTTOM_RIGHT=\"bottomRight\",e.BOTTOM_CENTER=\"bottomCenter\",e.BOTTOM_FULL_WIDTH=\"bottomFullWidth\",e))(MP||{});function OP(e){switch(e){case\"center\":case\"topCenter\":case\"stickyTopCenter\":case\"bottomCenter\":return\"center\";case\"left\":case\"topLeft\":case\"stickyTopLeft\":case\"bottomLeft\":return\"left\";case\"right\":case\"topRight\":case\"stickyTopRight\":case\"bottomRight\":return\"right\";case\"fullWidth\":case\"topFullWidth\":case\"stickyTopFullWidth\":case\"bottomFullWidth\":return\"fullWidth\";default:throw Error(\"Invalid Row Container Type\")}}var kP=LR([[\"center\",\"ag-center-cols-container\"],[\"left\",\"ag-pinned-left-cols-container\"],[\"right\",\"ag-pinned-right-cols-container\"],[\"fullWidth\",\"ag-full-width-container\"],[\"topCenter\",\"ag-floating-top-container\"],[\"topLeft\",\"ag-pinned-left-floating-top\"],[\"topRight\",\"ag-pinned-right-floating-top\"],[\"topFullWidth\",\"ag-floating-top-full-width-container\"],[\"stickyTopCenter\",\"ag-sticky-top-container\"],[\"stickyTopLeft\",\"ag-pinned-left-sticky-top\"],[\"stickyTopRight\",\"ag-pinned-right-sticky-top\"],[\"stickyTopFullWidth\",\"ag-sticky-top-full-width-container\"],[\"bottomCenter\",\"ag-floating-bottom-container\"],[\"bottomLeft\",\"ag-pinned-left-floating-bottom\"],[\"bottomRight\",\"ag-pinned-right-floating-bottom\"],[\"bottomFullWidth\",\"ag-floating-bottom-full-width-container\"]]),IP=LR([[\"center\",\"ag-center-cols-viewport\"],[\"topCenter\",\"ag-floating-top-viewport\"],[\"stickyTopCenter\",\"ag-sticky-top-viewport\"],[\"bottomCenter\",\"ag-floating-bottom-viewport\"]]),NP=class e extends vR{constructor(e){super(),this.visible=!0,this.EMPTY_CTRLS=[],this.name=e,this.isFullWithContainer=\"topFullWidth\"===this.name||\"stickyTopFullWidth\"===this.name||\"bottomFullWidth\"===this.name||\"fullWidth\"===this.name}static getRowContainerCssClasses(e){return{container:kP.get(e),viewport:IP.get(e)}}static getPinned(e){switch(e){case\"bottomLeft\":case\"topLeft\":case\"stickyTopLeft\":case\"left\":return\"left\";case\"bottomRight\":case\"topRight\":case\"stickyTopRight\":case\"right\":return\"right\";default:return null}}postConstruct(){this.enableRtl=this.gridOptionsService.get(\"enableRtl\"),this.forContainers([\"center\"],(()=>this.viewportSizeFeature=this.createManagedBean(new EP(this))))}registerWithCtrlsService(){switch(this.name){case\"center\":this.ctrlsService.registerCenterRowContainerCtrl(this);break;case\"left\":this.ctrlsService.registerLeftRowContainerCtrl(this);break;case\"right\":this.ctrlsService.registerRightRowContainerCtrl(this);break;case\"topCenter\":this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case\"topLeft\":this.ctrlsService.registerTopLeftRowContainerCon(this);break;case\"topRight\":this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case\"stickyTopCenter\":this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case\"stickyTopLeft\":this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case\"stickyTopRight\":this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case\"bottomCenter\":this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case\"bottomLeft\":this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case\"bottomRight\":this.ctrlsService.registerBottomRightRowContainerCtrl(this)}}forContainers(e,t){e.indexOf(this.name)>=0&&t()}getContainerElement(){return this.eContainer}getViewportSizeFeature(){return this.viewportSizeFeature}setComp(e,t,n){this.comp=e,this.eContainer=t,this.eViewport=n,this.createManagedBean(new SP(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();this.forContainers([\"left\",\"bottomLeft\",\"topLeft\",\"stickyTopLeft\"],(()=>{this.pinnedWidthFeature=this.createManagedBean(new xP(this.eContainer)),this.addManagedListener(this.eventService,CR.EVENT_LEFT_PINNED_WIDTH_CHANGED,(()=>this.onPinnedWidthChanged()))})),this.forContainers([\"right\",\"bottomRight\",\"topRight\",\"stickyTopRight\"],(()=>{this.pinnedWidthFeature=this.createManagedBean(new AP(this.eContainer)),this.addManagedListener(this.eventService,CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(()=>this.onPinnedWidthChanged()))})),this.forContainers([\"center\",\"left\",\"right\",\"fullWidth\"],(()=>this.createManagedBean(new TP(this.eContainer,\"center\"===this.name?n:void 0)))),this.forContainers([\"topCenter\",\"topLeft\",\"topRight\",\"bottomCenter\",\"bottomLeft\",\"bottomRight\",\"center\",\"left\",\"right\",\"stickyTopCenter\",\"stickyTopLeft\",\"stickyTopRight\"],(()=>this.createManagedBean(new DP(this.eContainer)))),this.forContainers([\"center\",\"topCenter\",\"stickyTopCenter\",\"bottomCenter\"],(()=>this.createManagedBean(new RP((e=>this.comp.setContainerWidth(`${e}px`)))))),this.addListeners(),this.registerWithCtrlsService()}addListeners(){this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,(()=>this.onDisplayedColumnsChanged())),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(()=>this.onDisplayedColumnsWidthChanged())),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_ROWS_CHANGED,(e=>this.onDisplayedRowsChanged(e.afterScroll))),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if([\"stickyTopCenter\",\"stickyTopLeft\",\"stickyTopRight\",\"stickyTopFullWidth\"].indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);const e=()=>{const e=this.gridOptionsService.get(\"ensureDomOrder\"),t=this.gridOptionsService.isDomLayout(\"print\");this.comp.setDomOrder(e||t)};this.addManagedPropertyListener(\"domLayout\",e),e()}stopHScrollOnPinnedRows(){this.forContainers([\"topCenter\",\"stickyTopCenter\",\"bottomCenter\"],(()=>{this.addManagedListener(this.eViewport,\"scroll\",(()=>this.eViewport.scrollLeft=0))}))}onDisplayedColumnsChanged(){this.forContainers([\"center\"],(()=>this.onHorizontalViewportChanged()))}onDisplayedColumnsWidthChanged(){this.forContainers([\"center\"],(()=>this.onHorizontalViewportChanged()))}addPreventScrollWhileDragging(){const e=e=>{this.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener(\"touchmove\",e,{passive:!1}),this.addDestroyFunc((()=>this.eContainer.removeEventListener(\"touchmove\",e)))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,n,e)}getCenterWidth(){return xO(this.eViewport)}getCenterViewportScrollLeft(){return MO(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((()=>t()))}isViewportInTheDOMTree(){return NO(this.eViewport)}getViewportScrollLeft(){return MO(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gridOptionsService.get(\"alwaysShowHorizontalScroll\")||VO(this.eViewport)}getViewportElement(){return this.eViewport}setContainerTranslateX(e){this.eContainer.style.transform=`translateX(${e}px)`}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){OO(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!e.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){if(!this.visible)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});const t=this.gridOptionsService.isDomLayout(\"print\"),n=this.gridOptionsService.get(\"embedFullWidthRows\")||t,r=this.getRowCtrls().filter((e=>{const t=e.isFullWidth();return this.isFullWithContainer?!n&&t:n||!t}));this.comp.setRowCtrls({rowCtrls:r,useFlushSync:e})}getRowCtrls(){switch(this.name){case\"topCenter\":case\"topLeft\":case\"topRight\":case\"topFullWidth\":return this.rowRenderer.getTopRowCtrls();case\"stickyTopCenter\":case\"stickyTopLeft\":case\"stickyTopRight\":case\"stickyTopFullWidth\":return this.rowRenderer.getStickyTopRowCtrls();case\"bottomCenter\":case\"bottomLeft\":case\"bottomRight\":case\"bottomFullWidth\":return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}}};MT([xD(\"dragService\")],NP.prototype,\"dragService\",2),MT([xD(\"ctrlsService\")],NP.prototype,\"ctrlsService\",2),MT([xD(\"columnModel\")],NP.prototype,\"columnModel\",2),MT([xD(\"resizeObserverService\")],NP.prototype,\"resizeObserverService\",2),MT([xD(\"rowRenderer\")],NP.prototype,\"rowRenderer\",2),MT([CD],NP.prototype,\"postConstruct\",1);var PP=NP,LP=class extends Lk{constructor(){super('<div class=\"ag-root ag-unselectable\" role=\"treegrid\">\\n        <ag-header-root ref=\"gridHeader\"></ag-header-root>\\n        <div class=\"ag-floating-top\" ref=\"eTop\" role=\"presentation\">\\n            <ag-row-container ref=\"topLeftContainer\" name=\"topLeft\"></ag-row-container>\\n            <ag-row-container ref=\"topCenterContainer\" name=\"topCenter\"></ag-row-container>\\n            <ag-row-container ref=\"topRightContainer\" name=\"topRight\"></ag-row-container>\\n            <ag-row-container ref=\"topFullWidthContainer\" name=\"topFullWidth\"></ag-row-container>\\n        </div>\\n        <div class=\"ag-body\" ref=\"eBody\" role=\"presentation\">\\n            <div class=\"ag-body-viewport\" ref=\"eBodyViewport\" role=\"presentation\">\\n                <ag-row-container ref=\"leftContainer\" name=\"left\"></ag-row-container>\\n                <ag-row-container ref=\"centerContainer\" name=\"center\"></ag-row-container>\\n                <ag-row-container ref=\"rightContainer\" name=\"right\"></ag-row-container>\\n                <ag-row-container ref=\"fullWidthContainer\" name=\"fullWidth\"></ag-row-container>\\n            </div>\\n            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\\n        </div>\\n        <div class=\"ag-sticky-top\" ref=\"eStickyTop\" role=\"presentation\">\\n            <ag-row-container ref=\"stickyTopLeftContainer\" name=\"stickyTopLeft\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopCenterContainer\" name=\"stickyTopCenter\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopRightContainer\" name=\"stickyTopRight\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopFullWidthContainer\" name=\"stickyTopFullWidth\"></ag-row-container>\\n        </div>\\n        <div class=\"ag-floating-bottom\" ref=\"eBottom\" role=\"presentation\">\\n            <ag-row-container ref=\"bottomLeftContainer\" name=\"bottomLeft\"></ag-row-container>\\n            <ag-row-container ref=\"bottomCenterContainer\" name=\"bottomCenter\"></ag-row-container>\\n            <ag-row-container ref=\"bottomRightContainer\" name=\"bottomRight\"></ag-row-container>\\n            <ag-row-container ref=\"bottomFullWidthContainer\" name=\"bottomFullWidth\"></ag-row-container>\\n        </div>\\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\\n        <ag-overlay-wrapper></ag-overlay-wrapper>\\n    </div>')}init(){const e=(e,t)=>{const n=`${e}px`;t.style.minHeight=n,t.style.height=n},t={setRowAnimationCssOnBodyViewport:(e,t)=>this.setRowAnimationCssOnBodyViewport(e,t),setColumnCount:e=>CM(this.getGui(),e),setRowCount:e=>bM(this.getGui(),e),setTopHeight:t=>e(t,this.eTop),setBottomHeight:t=>e(t,this.eBottom),setTopDisplay:e=>this.eTop.style.display=e,setBottomDisplay:e=>this.eBottom.style.display=e,setStickyTopHeight:e=>this.eStickyTop.style.height=e,setStickyTopTop:e=>this.eStickyTop.style.top=e,setStickyTopWidth:e=>this.eStickyTop.style.width=e,setColumnMovingCss:(e,t)=>this.addOrRemoveCssClass(e,t),updateLayoutClasses:(e,t)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach((e=>{e.toggle(\"ag-layout-auto-height\",t.autoHeight),e.toggle(\"ag-layout-normal\",t.normal),e.toggle(\"ag-layout-print\",t.print)})),this.addOrRemoveCssClass(\"ag-layout-auto-height\",t.autoHeight),this.addOrRemoveCssClass(\"ag-layout-normal\",t.normal),this.addOrRemoveCssClass(\"ag-layout-print\",t.print)},setAlwaysVerticalScrollClass:(e,t)=>this.eBodyViewport.classList.toggle(oP,t),registerBodyViewportResizeListener:e=>{const t=this.resizeObserverService.observeResize(this.eBodyViewport,e);this.addDestroyFunc((()=>t()))},setPinnedTopBottomOverflowY:e=>this.eTop.style.overflowY=this.eBottom.style.overflowY=e,setCellSelectableCss:(e,t)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach((n=>n.classList.toggle(e,t)))},setBodyViewportWidth:e=>this.eBodyViewport.style.width=e};this.ctrl=this.createManagedBean(new aP),this.ctrl.setComp(t,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get(\"enableRangeSelection\")||\"multiple\"===this.gridOptionsService.get(\"rowSelection\"))&&yM(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const n=this.eBodyViewport.classList;n.toggle(\"ag-row-animation\",t),n.toggle(\"ag-row-no-animation\",!t)}getFloatingTopBottom(){return[this.eTop,this.eBottom]}};MT([xD(\"resizeObserverService\")],LP.prototype,\"resizeObserverService\",2),MT([AD(\"rangeService\")],LP.prototype,\"rangeService\",2),MT([Fk(\"eBodyViewport\")],LP.prototype,\"eBodyViewport\",2),MT([Fk(\"eStickyTop\")],LP.prototype,\"eStickyTop\",2),MT([Fk(\"eTop\")],LP.prototype,\"eTop\",2),MT([Fk(\"eBottom\")],LP.prototype,\"eBottom\",2),MT([Fk(\"gridHeader\")],LP.prototype,\"headerRootComp\",2),MT([Fk(\"eBody\")],LP.prototype,\"eBody\",2),MT([CD],LP.prototype,\"init\",1);var FP=class extends vR{postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))}onDisplayedColumnsChanged(){this.update()}onDisplayedColumnsWidthChanged(){this.update()}update(){this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn((()=>{this.columnAnimationService.executeLaterVMTurn((()=>this.updateImpl()))})):this.updateImpl()}updateImpl(){const e=this.ctrlsService.getCenterRowContainerCtrl();if(!e||this.columnAnimationService.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}setScrollsVisible(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;const t={type:CR.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}}isHorizontalScrollShowing(){return this.horizontalScrollShowing}isVerticalScrollShowing(){return this.verticalScrollShowing}};MT([xD(\"ctrlsService\")],FP.prototype,\"ctrlsService\",2),MT([xD(\"columnAnimationService\")],FP.prototype,\"columnAnimationService\",2),MT([CD],FP.prototype,\"postConstruct\",1),FP=MT([ED(\"scrollVisibleService\")],FP);var _P=class extends vR{constructor(){super(...arguments),this.gridInstanceId=_P.gridInstanceSequence.next()}stampTopLevelGridCompWithGridInstance(e){e[_P.GRID_DOM_KEY]=this.gridInstanceId}getRenderedCellForEvent(e){return uR(this.gridOptionsService,e.target,yP.DOM_DATA_KEY_CELL_CTRL)}isEventFromThisGrid(e){return this.isElementInThisGrid(e.target)}isElementInThisGrid(e){let t=e;for(;t;){const e=t[_P.GRID_DOM_KEY];if(NT(e))return e===this.gridInstanceId;t=t.parentElement}return!1}getCellPositionForEvent(e){const t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null}getNormalisedPosition(e){const t=this.gridOptionsService.isDomLayout(\"normal\"),n=e;let r,i;if(null!=n.clientX||null!=n.clientY?(r=n.clientX,i=n.clientY):(r=n.x,i=n.y),t){const e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition();r+=e.getScrollFeature().getHScrollPosition().left,i+=t.top}return{x:r,y:i}}};_P.gridInstanceSequence=new Dk,_P.GRID_DOM_KEY=\"__ag_grid_instance\",MT([xD(\"ctrlsService\")],_P.prototype,\"ctrlsService\",2),_P=MT([ED(\"mouseEventService\")],_P);var zP=class extends vR{constructor(){super(),this.onPageDown=hD(this.onPageDown,100),this.onPageUp=hD(this.onPageUp,100)}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCon=e.gridBodyCtrl}))}handlePageScrollingKey(e,t=!1){const n=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,a=this.mouseEventService.getCellPositionForEvent(e);let s=!1;switch(n){case lk.PAGE_HOME:case lk.PAGE_END:i||r||(this.onHomeOrEndKey(n),s=!0);break;case lk.LEFT:case lk.RIGHT:case lk.UP:case lk.DOWN:if(!a)return!1;!i||r||o||(this.onCtrlUpDownLeftRight(n,a),s=!0);break;case lk.PAGE_DOWN:case lk.PAGE_UP:i||r||(s=this.handlePageUpDown(n,a,t))}return s&&e.preventDefault(),s}handlePageUpDown(e,t,n){return n&&(t=this.focusService.getFocusedCell()),!!t&&(e===lk.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo(e){const{scrollIndex:t,scrollType:n,scrollColumn:r,focusIndex:i,focusColumn:o}=e;if(NT(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),NT(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(i),this.focusService.setFocusedCell({rowIndex:i,column:o,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){const e={rowIndex:i,rowPinned:null,column:o};this.rangeService.setRangeToCell(e)}}onPageDown(e){const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),r=this.paginationProxy.getPixelOffset(),i=t.top+n,o=this.paginationProxy.getRowIndexAtPixel(i+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o):this.navigateToNextPage(e,o)}onPageUp(e){const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i,!0):this.navigateToNextPage(e,i,!0)}navigateToNextPage(e,t,n=!1){const r=this.getViewportHeight(),i=this.paginationProxy.getPageFirstRow(),o=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),s=this.paginationProxy.getRow(e.rowIndex),l=n?(null==s?void 0:s.rowHeight)-r-a:r-a,c=(null==s?void 0:s.rowTop)+l;let d,u=this.paginationProxy.getRowIndexAtPixel(c+a);if(u===e.rowIndex){const r=n?-1:1;t=u=e.rowIndex+r}n?(d=\"bottom\",u<i&&(u=i),t<i&&(t=i)):(d=\"top\",u>o&&(u=o),t>o&&(t=o)),this.isRowTallerThanView(u)&&(t=u,d=\"top\"),this.navigateTo({scrollIndex:t,scrollType:d,scrollColumn:null,focusIndex:u,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?\"bottom\":\"top\",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((()=>{const r=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?\"bottom\":\"top\",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})}),50)}getNextFocusIndexForAutoHeight(e,t=!1){var n;const r=t?-1:1,i=this.getViewportHeight(),o=this.paginationProxy.getPageLastRow();let a=0,s=e.rowIndex;for(;s>=0&&s<=o;){const e=this.paginationProxy.getRow(s);if(e){const t=null!=(n=e.rowHeight)?n:0;if(a+t>i)break;a+=t}s+=r}return Math.max(0,Math.min(s,o))}getViewportHeight(){const e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth();let n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n}isRowTallerThanView(e){const t=this.paginationProxy.getRow(e);if(!t)return!1;const n=t.rowHeight;return\"number\"==typeof n&&n>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.cellNavigationService.getNextCellToFocus(e,t,!0),{rowIndex:r,column:i}=n;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})}onHomeOrEndKey(e){const t=e===lk.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=t?n[0]:HD(n),i=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:r,focusIndex:i,focusColumn:r})}onTabKeyDown(e,t){const n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){const{rowIndex:n,rowPinned:r}=e.getRowPosition();(r?0===n:n===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.get(\"headerHeight\")||this.gridOptionsService.get(\"suppressHeaderFocus\")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof yP&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()}tabToNextCell(e,t){const n=this.focusService.getFocusedCell();if(!n)return!1;let r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n),r&&r.isFullWidth()))&&this.tabToNextCellCommon(r,e,t)}tabToNextCellCommon(e,t,n){let r,i=e.isEditing();if(!i&&e instanceof yP){const t=e.getRowCtrl();t&&(i=t.isEditing())}return r=i?\"fullRow\"===this.gridOptionsService.get(\"editType\")?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t),r||!!this.focusService.getFocusedHeader()}moveToNextEditingCell(e,t,n=null){const r=e.getCellPosition();e.getGui().focus(),e.stopEditing();const i=this.findNextCellToFocusOn(r,t,!0);return null!=i&&(i.startEditing(null,!0,n),i.focusCell(!1),!0)}moveToNextEditingRow(e,t,n=null){const r=e.getCellPosition(),i=this.findNextCellToFocusOn(r,t,!0);if(null==i)return!1;const o=i.getCellPosition(),a=this.isCellEditable(r),s=this.isCellEditable(o),l=o&&r.rowIndex===o.rowIndex&&r.rowPinned===o.rowPinned;return a&&e.setFocusOutOnEditor(),l||(e.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,n)),s?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0}moveToNextCellNotEditing(e,t){const n=this.columnModel.getAllDisplayedColumns();let r;r=e instanceof CP?DT(TT({},e.getRowPosition()),{column:t?n[0]:HD(n)}):e.getCellPosition();const i=this.findNextCellToFocusOn(r,t,!1);if(i instanceof yP)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return NT(i)}findNextCellToFocusOn(e,t,n){let r=e;for(;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);const i=this.gridOptionsService.getCallback(\"tabToNextCell\");if(NT(i)){const o=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});NT(o)?(o.floating&&(nD(\"tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\"),o.rowPinned=o.floating),r={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){const e=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:e+r.rowIndex,column:r.column},fromCell:!0}),null}const o=\"fullRow\"===this.gridOptionsService.get(\"editType\");if(n&&!o&&!this.isCellEditable(r))continue;this.ensureCellVisible(r);const a=this.getCellByPosition(r);if(!a){const e=this.rowRenderer.getRowByPosition(r);if(!e||!e.isFullWidth()||n)continue;return e}if(!a.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),a}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}getCellByPosition(e){const t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null}lookupRowNodeForCell(e){return\"top\"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):\"bottom\"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)}navigateToNextCell(e,t,n,r){let i=n,o=!1;for(;i&&(i===n||!this.isValidNavigateCell(i));)this.gridOptionsService.get(\"enableRtl\")?t===lk.LEFT&&(i=this.getLastCellOfColSpan(i)):t===lk.RIGHT&&(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextCellToFocus(t,i),o=PT(i);if(o&&e&&e.key===lk.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){const r=this.gridOptionsService.getCallback(\"navigateToNextCell\");if(NT(r)){const o=r({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});NT(o)?(o.floating&&(nD(\"tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\"),o.rowPinned=o.floating),i={rowPinned:o.rowPinned,rowIndex:o.rowIndex,column:o.column}):i=null}}if(!i)return;if(i.rowIndex<0){const t=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:t+i.rowIndex,column:n.column},event:e||void 0,fromCell:!0})}const a=this.getNormalisedPosition(i);a?this.focusPosition(a):this.tryToFocusFullWidthRow(i)}getNormalisedPosition(e){this.ensureCellVisible(e);const t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t=!1){const n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;const i=this.focusService.getFocusedCell(),o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?HD(n):n[0])};this.focusPosition(o);const a=null!=i&&this.rowPositionUtils.before(o,i),s={type:CR.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,floating:o.rowPinned,fromBelow:a};return this.eventService.dispatchEvent(s),!0}focusPosition(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)}isValidNavigateCell(e){return!!this.rowPositionUtils.getRowNode(e)}getLastCellOfColSpan(e){const t=this.getCellByPosition(e);if(!t)return e;const n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:HD(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=this.gridOptionsService.isGroupRowsSticky(),n=this.rowModel.getRow(e.rowIndex);!(t&&(null==n?void 0:n.sticky))&&PT(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)}};MT([xD(\"mouseEventService\")],zP.prototype,\"mouseEventService\",2),MT([xD(\"paginationProxy\")],zP.prototype,\"paginationProxy\",2),MT([xD(\"focusService\")],zP.prototype,\"focusService\",2),MT([AD(\"rangeService\")],zP.prototype,\"rangeService\",2),MT([xD(\"columnModel\")],zP.prototype,\"columnModel\",2),MT([xD(\"rowModel\")],zP.prototype,\"rowModel\",2),MT([xD(\"ctrlsService\")],zP.prototype,\"ctrlsService\",2),MT([xD(\"rowRenderer\")],zP.prototype,\"rowRenderer\",2),MT([xD(\"headerNavigationService\")],zP.prototype,\"headerNavigationService\",2),MT([xD(\"rowPositionUtils\")],zP.prototype,\"rowPositionUtils\",2),MT([xD(\"cellNavigationService\")],zP.prototype,\"cellNavigationService\",2),MT([xD(\"pinnedRowModel\")],zP.prototype,\"pinnedRowModel\",2),MT([CD],zP.prototype,\"postConstruct\",1),zP=MT([ED(\"navigationService\")],zP);var GP=class e extends zI{constructor(e){super('<div class=\"ag-popup-editor\" tabindex=\"-1\"/>'),this.params=e}postConstruct(){this.gridOptionsService.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params;this.addManagedListener(e,\"keydown\",(e=>{mk(this.gridOptionsService,e,t.node,t.column,!0)||t.onKeyDown(e)}))}};GP.DOM_KEY_POPUP_EDITOR_WRAPPER=\"popupEditorWrapper\",MT([CD],GP.prototype,\"postConstruct\",1);var VP=GP,BP=class extends Lk{constructor(e,t,n,r,i){super(),this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.column=t.getColumn(),this.rowNode=t.getRowNode(),this.rowCtrl=t.getRowCtrl(),this.eRow=r,this.cellCtrl=t;const o=document.createElement(\"div\");o.setAttribute(\"comp-id\",`${this.getCompId()}`),this.setTemplateFromElement(o);const a=this.getGui();this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const s=(e,t)=>{null!=t&&\"\"!=t?a.setAttribute(e,t):a.removeAttribute(e)};JR(a,t.getCellAriaRole()),s(\"col-id\",t.getColumnIdSanitised());const l=t.getTabIndex();void 0!==l&&s(\"tabindex\",l.toString());const c={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setUserStyles:e=>GO(a,e),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:e=>this.includeSelection=e,setIncludeRowDrag:e=>this.includeRowDrag=e,setIncludeDndSource:e=>this.includeDndSource=e,setRenderDetails:(e,t,n)=>this.setRenderDetails(e,t,n),setEditDetails:(e,t,n)=>this.setEditDetails(e,t,n),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};t.setComp(c,this.getGui(),this.eCellWrapper,n,i)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(e,t,n){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=null==this.firstRender;const r=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!n&&!r&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t))}setEditDetails(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,r=n&&null==this.eCellWrapper;if(r){const e=document.createElement(\"div\");e.setAttribute(\"role\",\"presentation\"),e.setAttribute(\"class\",\"ag-cell-wrapper\"),this.eCellWrapper=e,this.getGui().appendChild(this.eCellWrapper)}const i=!n&&null!=this.eCellWrapper;i&&(IO(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass(\"ag-cell-value\",!n);const o=!e&&n,a=o&&null==this.eCellValue;if(a){const e=document.createElement(\"span\");e.setAttribute(\"role\",\"presentation\"),e.setAttribute(\"class\",\"ag-cell-value\"),this.eCellValue=e,this.eCellWrapper.appendChild(this.eCellValue)}const s=!o&&null!=this.eCellValue;s&&(IO(this.eCellValue),this.eCellValue=void 0);const l=r||i||a||s;return l&&this.removeControls(),e||t&&this.addControls(),l}addControls(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(e,t,n){const r=this.editorVersion,i=e.newAgStackInstance();if(!i)return;const{params:o}=e;i.then((e=>this.afterCellEditorCreated(r,e,o,t,n))),PT(this.cellEditor)&&o.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();kO(t);const n=null!=e?kR(e,!0):null;null!=n&&(t.textContent=n)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),IO(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),IO(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t}createCellRendererInstance(e){const t=!this.beans.gridOptionsService.get(\"suppressAnimationFrame\"),n=this.rendererVersion,{componentClass:r}=e,i=()=>{if(this.rendererVersion!==n||!this.isAlive())return;const t=e.newAgStackInstance(),i=this.afterCellRendererCreated.bind(this,n,r);t&&t.then(i)};t&&this.firstRender?this.beans.animationFrameService.createTask(i,this.rowNode.rowIndex,\"createTasksP2\"):i()}getCtrl(){return this.cellCtrl}getRowCtrl(){return this.rowCtrl}getCellRenderer(){return this.cellRenderer}getCellEditor(){return this.cellEditor}afterCellRendererCreated(e,t,n){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){const e=this.getParentOfValue();kO(e),e.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)}afterCellEditorCreated(e,t,n,r,i){if(e!==this.editorVersion)return void this.beans.context.destroyBean(t);if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn(`AG Grid: cellEditor for column ${this.column.getId()} is missing getGui() method`),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();const o=r||void 0!==t.isPopup&&t.isPopup();o?this.addPopupCellEditor(n,i):this.addInCellEditor(),this.refreshEditStyles(!0,o),t.afterGuiAttached&&t.afterGuiAttached()}refreshEditStyles(e,t){var n;this.addOrRemoveCssClass(\"ag-cell-inline-editing\",e&&!t),this.addOrRemoveCssClass(\"ag-cell-popup-editing\",e&&!!t),this.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!e||!!t),null==(n=this.rowCtrl)||n.setInlineEditingCss(e)}addInCellEditor(){const e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")&&console.warn(\"AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.\");const n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new VP(e));const r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);const i=this.beans.popupService,o=this.beans.gridOptionsService.get(\"stopEditingWhenCellsLoseFocus\"),a=null!=t?t:n.getPopupPosition?n.getPopupPosition():\"over\",s=this.beans.gridOptionsService.get(\"enableRtl\"),l={ePopup:r,column:this.column,rowNode:this.rowNode,type:\"popupCellEditor\",eventSource:this.getGui(),position:a,alignSide:s?\"right\":\"left\",keepWithinBounds:!0},c=i.positionPopupByComponent.bind(i,l),d=this.beans.localeService.getLocaleTextFunc(),u=i.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:d(\"ariaLabelCellEditor\",\"Cell Editor\")});u&&(this.hideEditorPopup=u.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){const e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&WM()&&e.focus({preventScroll:!0}),kO(this.getParentOfValue())}},HP=class extends Lk{constructor(e,t,n){super(),this.cellComps={},this.beans=t,this.rowCtrl=e;const r=document.createElement(\"div\");r.setAttribute(\"comp-id\",`${this.getCompId()}`),r.setAttribute(\"style\",this.getInitialStyle(n)),this.setTemplateFromElement(r);const i=this.getGui(),o=i.style;this.domOrder=this.rowCtrl.getDomOrder(),JR(i,\"row\");const a=this.rowCtrl.getTabIndex();null!=a&&i.setAttribute(\"tabindex\",a.toString());const s={setDomOrder:e=>this.domOrder=e,setCellCtrls:e=>this.setCellCtrls(e),showFullWidth:e=>this.showFullWidth(e),getFullWidthCellRenderer:()=>this.getFullWidthCellRenderer(),addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setUserStyles:e=>GO(i,e),setTop:e=>o.top=e,setTransform:e=>o.transform=e,setRowIndex:e=>i.setAttribute(\"row-index\",e),setRowId:e=>i.setAttribute(\"row-id\",e),setRowBusinessKey:e=>i.setAttribute(\"row-business-key\",e),refreshFullWidth:e=>this.refreshFullWidth(e)};e.setComp(s,this.getGui(),n),this.addDestroyFunc((()=>{e.unsetComp(n)}))}getInitialStyle(e){const t=this.rowCtrl.getInitialTransform(e);return t?`transform: ${t}`:`top: ${this.rowCtrl.getInitialRowTop(e)}`}showFullWidth(e){const t=e.newAgStackInstance();t&&t.then((e=>{if(this.isAlive()){const t=e.getGui();this.getGui().appendChild(t),this.rowCtrl.setupDetailRowAutoHeight(t),this.setFullWidthRowComp(e)}else this.beans.context.destroyBean(e)}))}setCellCtrls(e){const t=Object.assign({},this.cellComps);e.forEach((e=>{const n=e.getInstanceId();null==this.cellComps[n]?this.newCellComp(e):t[n]=null}));const n=KT(t).filter((e=>null!=e));this.destroyCells(n),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];e.forEach((e=>{const n=this.cellComps[e.getInstanceId()];n&&t.push(n.getGui())})),_O(this.getGui(),t)}newCellComp(e){const t=new BP(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){const e=KT(this.cellComps).filter((e=>null!=e));this.destroyCells(e)}setFullWidthRowComp(e){this.fullWidthCellRenderer&&console.error(\"AG Grid - should not be setting fullWidthRowComponent twice\"),this.fullWidthCellRenderer=e,this.addDestroyFunc((()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)}))}getFullWidthCellRenderer(){return this.fullWidthCellRenderer}destroyCells(e){e.forEach((e=>{if(!e)return;const t=e.getCtrl().getInstanceId();this.cellComps[t]===e&&(e.detach(),e.destroy(),this.cellComps[t]=null)}))}refreshFullWidth(e){const{fullWidthCellRenderer:t}=this;if(!t||!t.refresh)return!1;const n=e();return t.refresh(n)}},jP=class extends Lk{constructor(){super(function(){const e=Lk.elementGettingCreated.getAttribute(\"name\"),t=PP.getRowContainerCssClasses(e);let n;return n=\"center\"===e||\"topCenter\"===e||\"stickyTopCenter\"===e||\"bottomCenter\"===e?`<div class=\"${t.viewport}\" ref=\"eViewport\" role=\"presentation\">\\n                <div class=\"${t.container}\" ref=\"eContainer\"></div>\\n            </div>`:`<div class=\"${t.container}\" ref=\"eContainer\"></div>`,n}()),this.rowComps={},this.name=Lk.elementGettingCreated.getAttribute(\"name\"),this.type=OP(this.name)}postConstruct(){const e={setViewportHeight:e=>this.eViewport.style.height=e,setRowCtrls:({rowCtrls:e})=>this.setRowCtrls(e),setDomOrder:e=>{this.domOrder=e},setContainerWidth:e=>this.eContainer.style.width=e};this.createManagedBean(new PP(this.name)).setComp(e,this.eContainer,this.eViewport)}preDestroy(){this.setRowCtrls([])}setRowCtrls(e){const t=TT({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach((e=>{const n=e.getInstanceId(),r=t[n];if(r)this.rowComps[n]=r,delete t[n],this.ensureDomOrder(r.getGui());else{if(!e.getRowNode().displayed)return;const t=new HP(e,this.beans,this.type);this.rowComps[n]=t,this.appendRow(t.getGui())}})),KT(t).forEach((e=>{this.eContainer.removeChild(e.getGui()),e.destroy()})),JR(this.eContainer,\"rowgroup\")}appendRow(e){this.domOrder?zO(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e}ensureDomOrder(e){this.domOrder&&(FO(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)}};MT([xD(\"beans\")],jP.prototype,\"beans\",2),MT([Fk(\"eViewport\")],jP.prototype,\"eViewport\",2),MT([Fk(\"eContainer\")],jP.prototype,\"eContainer\",2),MT([CD],jP.prototype,\"postConstruct\",1),MT([SD],jP.prototype,\"preDestroy\",1);var UP=class{constructor(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}onDragEnter(e){if(this.clearColumnsList(),this.gridOptionsService.get(\"functionsReadOnly\"))return;const t=e.dragItem.columns;t&&t.forEach((e=>{e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?this.columnsToAggregate.push(e):e.isAllowRowGroup()?this.columnsToGroup.push(e):e.isAllowPivot()&&this.columnsToPivot.push(e)))}))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?XI.ICON_PINNED:XI.ICON_MOVE:null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,\"toolPanelDragAndDrop\"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,\"toolPanelDragAndDrop\"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,\"toolPanelDragAndDrop\")}};MT([xD(\"columnModel\")],UP.prototype,\"columnModel\",2),MT([xD(\"gridOptionsService\")],UP.prototype,\"gridOptionsService\",2);var WP=class{static attemptMoveColumns(e){const{isFromHeader:t,hDirection:n,xPosition:r,fromEnter:i,fakeEvent:o,pinned:a,gridOptionsService:s,columnModel:l}=e,c=0===n,d=1===n;let{allMovingColumns:u}=e;if(t){let e=[];u.forEach((t=>{var n;let r=null,i=t.getParent();for(;null!=i&&1===i.getDisplayedLeafColumns().length;)r=i,i=i.getParent();null!=r?((null==(n=r.getColGroupDef())?void 0:n.marryChildren)?r.getProvidedColumnGroup().getLeafColumns():r.getLeafColumns()).forEach((t=>{e.includes(t)||e.push(t)})):e.includes(t)||e.push(t)})),u=e}const h=u.slice();l.sortColumnsLikeGridColumns(h);const p=this.calculateValidMoves({movingCols:h,draggingRight:d,xPosition:r,pinned:a,gridOptionsService:s,columnModel:l}),g=this.calculateOldIndex(h,l);if(0===p.length)return;const f=p[0];let m=null!==g&&!i;if(t&&(m=null!==g),m&&!o){if(c&&f>=g)return;if(d&&f<=g)return}const v=l.getAllDisplayedColumns();let y=[],b=null;for(let e=0;e<p.length;e++){const t=p[e],n=l.getProposedColumnOrder(h,t);if(!l.doesOrderPassRules(n))continue;const r=n.filter((e=>v.includes(e)));if(null===b)b=r;else if(!jD(r,b))break;const i=this.groupFragCount(n);y.push({move:t,fragCount:i})}return 0!==y.length?(y.sort(((e,t)=>e.fragCount-t.fragCount)),this.moveColumns(u,y[0].move,\"uiColumnMoved\",!1,l)):void 0}static moveColumns(e,t,n,r,i){return i.moveColumns(e,t,n,r),r?null:{columns:e,toIndex:t}}static calculateOldIndex(e,t){const n=t.getAllGridColumns(),r=WD(e.map((e=>n.indexOf(e)))),i=r[0];return HD(r)-i!=r.length-1?null:i}static groupFragCount(e){function t(e){let t=[],n=e.getOriginalParent();for(;null!=n;)t.push(n),n=n.getOriginalParent();return t}let n=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),o=t(e[r+1]);[i,o]=i.length>o.length?[i,o]:[o,i],i.forEach((e=>{-1===o.indexOf(e)&&n++}))}return n}static calculateValidMoves(e){const{movingCols:t,draggingRight:n,xPosition:r,pinned:i,gridOptionsService:o,columnModel:a}=e;if(o.get(\"suppressMovableColumns\")||t.some((e=>e.getColDef().suppressMovable)))return[];const s=a.getDisplayedColumns(i),l=a.getAllGridColumns(),c=s.filter((e=>eR(t,e))),d=s.filter((e=>!eR(t,e))),u=l.filter((e=>!eR(t,e)));let h,p=0,g=r;if(n){let e=0;c.forEach((t=>e+=t.getActualWidth())),g-=e}if(g>0){for(let e=0;e<d.length&&(g-=d[e].getActualWidth(),!(g<0));e++)p++;n&&p++}if(p>0){const e=d[p-1];h=u.indexOf(e)+1}else h=u.indexOf(d[0]),-1===h&&(h=0);const f=[h],m=(e,t)=>e-t;if(n){let e=h+1;const t=l.length-1;for(;e<=t;)f.push(e),e++;f.sort(m)}else{let e=h;const t=l.length-1;let n=l[e];for(;e<=t&&s.indexOf(n)<0;)e++,f.push(e),n=l[e];e=h-1;const r=0;for(;e>=r;)f.push(e),e--;f.sort(m).reverse()}return f}static normaliseX(e,t,n,r,i){const o=i.getHeaderRowContainerCtrl(t).getViewport();return n&&(e-=o.getBoundingClientRect().left),r.get(\"enableRtl\")&&(e=o.clientWidth-e),null==t&&(e+=i.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e}},$P=class{constructor(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=t,this.centerContainer=!NT(e)}init(){this.ctrlsService.whenReady((()=>{this.gridBodyCon=this.ctrlsService.getGridBodyCtrl()}))}getIconName(){return this.pinned?XI.ICON_PINNED:XI.ICON_MOVE}onDragEnter(e){const t=e.dragItem.columns;if(0===e.dragSource.type)this.setColumnsVisible(t,!0,\"uiColumnDragged\");else{const n=e.dragItem.visibleState,r=(t||[]).filter((e=>n[e.getId()]));this.setColumnsVisible(r,!0,\"uiColumnDragged\")}this.setColumnsPinned(t,this.pinned,\"uiColumnDragged\"),this.onDragging(e,!0,!0)}onDragLeave(){this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(e){const r=e.filter((e=>!e.getColDef().lockVisible));this.columnModel.setColumnsVisible(r,t,n)}}setColumnsPinned(e,t,n){if(e){const r=e.filter((e=>!e.getColDef().lockPinned));this.columnModel.setColumnsPinned(r,t,n)}}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}checkCenterForScrolling(e){if(this.centerContainer){const t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get(\"enableRtl\")?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,r=!1){var i;if(r){if(this.lastMovedInfo){const{columns:e,toIndex:t}=this.lastMovedInfo;WP.moveColumns(e,t,\"uiColumnMoved\",!0,this.columnModel)}return}if(this.lastDraggingEvent=e,PT(e.hDirection))return;const o=WP.normaliseX(e.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);t||this.checkCenterForScrolling(o);const a=this.normaliseDirection(e.hDirection),s=e.dragSource.type,l=(null==(i=e.dragSource.getDragItem().columns)?void 0:i.filter((e=>!e.getColDef().lockPinned||e.getPinned()==this.pinned)))||[],c=WP.attemptMoveColumns({allMovingColumns:l,isFromHeader:1===s,hDirection:a,xPosition:o,pinned:this.pinned,fromEnter:t,fakeEvent:n,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});c&&(this.lastMovedInfo=c)}normaliseDirection(e){if(!this.gridOptionsService.get(\"enableRtl\"))return e;switch(e){case 0:return 1;case 1:return 0;default:console.error(`AG Grid: Unknown direction ${e}`)}}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(XI.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(XI.ICON_RIGHT,!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(XI.ICON_MOVE))}moveInterval(){let e;this.intervalCount++,e=10+5*this.intervalCount,e>100&&(e=100);let t=null;const n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const e=this.lastDraggingEvent.dragItem.columns.filter((e=>!e.getColDef().lockPinned));if(e.length>0&&(this.dragAndDropService.setGhostIcon(XI.ICON_PINNED),this.failedMoveAttempts>7)){const t=this.needToMoveLeft?\"left\":\"right\";this.setColumnsPinned(e,t,\"uiColumnDragged\"),this.dragAndDropService.nudge()}}}};MT([xD(\"columnModel\")],$P.prototype,\"columnModel\",2),MT([xD(\"dragAndDropService\")],$P.prototype,\"dragAndDropService\",2),MT([xD(\"gridOptionsService\")],$P.prototype,\"gridOptionsService\",2),MT([xD(\"ctrlsService\")],$P.prototype,\"ctrlsService\",2),MT([CD],$P.prototype,\"init\",1);var YP=class extends vR{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){this.ctrlsService.whenReady((e=>{switch(this.pinned){case\"left\":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case\"right\":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]]}}))}isInterestedIn(e){return 1===e||0===e&&this.gridOptionsService.get(\"allowDragFromColumnsToolPanel\")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}init(){this.moveColumnFeature=this.createManagedBean(new $P(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new UP(this.pinned)),this.dragAndDropService.addDropTarget(this)}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.columnModel.isPivotMode()&&0===e.dragSource.type}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}};MT([xD(\"dragAndDropService\")],YP.prototype,\"dragAndDropService\",2),MT([xD(\"columnModel\")],YP.prototype,\"columnModel\",2),MT([xD(\"ctrlsService\")],YP.prototype,\"ctrlsService\",2),MT([CD],YP.prototype,\"postConstruct\",1),MT([CD],YP.prototype,\"init\",1);var KP=class e extends eP{constructor(t){super(e.TEMPLATE,t),this.headerCompVersion=0,this.column=t.getColumnGroupChild(),this.pinned=t.getPinned()}postConstruct(){const e=this.getGui();var t,n;t=\"col-id\",null!=(n=this.column.getColId())&&\"\"!=n?e.setAttribute(t,n):e.removeAttribute(t);const r={setWidth:t=>e.style.width=t,addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setAriaSort:t=>t?xM(e,t):AM(e),setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);const i=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement(\"afterend\",i)}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then((e=>this.afterCompCreated(t,e)))}afterCompCreated(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)}};KP.TEMPLATE='<div class=\"ag-header-cell\" role=\"columnheader\">\\n            <div ref=\"eResize\" class=\"ag-header-cell-resize\" role=\"presentation\"></div>\\n            <div ref=\"eHeaderCompWrapper\" class=\"ag-header-cell-comp-wrapper\" role=\"presentation\"></div>\\n        </div>',MT([Fk(\"eResize\")],KP.prototype,\"eResize\",2),MT([Fk(\"eHeaderCompWrapper\")],KP.prototype,\"eHeaderCompWrapper\",2),MT([CD],KP.prototype,\"postConstruct\",1),MT([SD],KP.prototype,\"destroyHeaderComp\",1);var qP=KP,QP=class e extends eP{constructor(t){super(e.TEMPLATE,t)}postConstruct(){const e=this.getGui();e.setAttribute(\"col-id\",this.ctrl.getColId());const t={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setResizableDisplayed:e=>yO(this.eResize,e),setWidth:t=>e.style.width=t,setAriaExpanded:t=>((t,n)=>null!=n?e.setAttribute(t,n):e.removeAttribute(t))(\"aria-expanded\",t),setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(t,e,this.eResize)}setUserCompDetails(e){e.newAgStackInstance().then((e=>this.afterHeaderCompCreated(e)))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive())return void t();const n=this.getGui(),r=e.getGui();n.appendChild(r),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(n)}};QP.TEMPLATE='<div class=\"ag-header-group-cell\" role=\"columnheader\">\\n            <div ref=\"eResize\" class=\"ag-header-cell-resize\" role=\"presentation\"></div>\\n        </div>',MT([Fk(\"eResize\")],QP.prototype,\"eResize\",2),MT([CD],QP.prototype,\"postConstruct\",1);var XP=QP,ZP=(e=>(e.COLUMN_GROUP=\"group\",e.COLUMN=\"column\",e.FLOATING_FILTER=\"filter\",e))(ZP||{}),JP=class extends Lk{constructor(e){super(),this.headerComps={},this.ctrl=e,this.setTemplate(`<div class=\"${this.ctrl.getHeaderRowClass()}\" role=\"row\"></div>`)}init(){wM(this.getGui(),this.ctrl.getAriaRowIndex());const e={setHeight:e=>this.getGui().style.height=e,setTop:e=>this.getGui().style.top=e,setHeaderCtrls:(e,t)=>this.setHeaderCtrls(e,t),setWidth:e=>this.getGui().style.width=e};this.ctrl.setComp(e)}destroyHeaderCtrls(){this.setHeaderCtrls([],!1)}setHeaderCtrls(e,t){if(!this.isAlive())return;const n=this.headerComps;if(this.headerComps={},e.forEach((e=>{const t=e.getInstanceId();let r=n[t];delete n[t],null==r&&(r=this.createHeaderComp(e),this.getGui().appendChild(r.getGui())),this.headerComps[t]=r})),WT(n,((e,t)=>{this.getGui().removeChild(t.getGui()),this.destroyBean(t)})),t){const e=KT(this.headerComps);e.sort(((e,t)=>e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()));const t=e.map((e=>e.getGui()));_O(this.getGui(),t)}}createHeaderComp(e){let t;switch(this.ctrl.getType()){case\"group\":t=new XP(e);break;case\"filter\":t=new nP(e);break;default:t=new qP(e)}return this.createBean(t),t.setParentComponent(this),t}};MT([CD],JP.prototype,\"init\",1),MT([SD],JP.prototype,\"destroyHeaderCtrls\",1);var eL=0,tL=class e extends vR{constructor(e,t,n){super(),this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.columnGroupChild=e,this.parentRowCtrl=n,this.beans=t,this.instanceId=e.getUniqueId()+\"-\"+eL++}postConstruct(){this.addManagedPropertyListeners([\"suppressHeaderFocus\"],(()=>this.refreshTabIndex()))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.focusService.getFocusedHeader();return vk(this.gridOptionsService,e,t,n)}getWrapperHasFocus(){return this.gridOptionsService.getDocument().activeElement===this.eGui}setGui(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onDisplayedColumnsChanged(){this.comp&&this.column&&(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:n}=this;fP.refreshFirstAndLastStyles(e,t,n.columnModel)}refreshAriaColIndex(){const{beans:e,column:t}=this,n=e.columnModel.getAriaColumnIndex(t);SM(this.eGui,n)}addResizeAndMoveKeyboardListeners(){this.resizeFeature&&(this.addManagedListener(this.eGui,\"keydown\",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,\"keyup\",this.onGuiKeyUp.bind(this)))}refreshTabIndex(){this.gridOptionsService.get(\"suppressHeaderFocus\")?this.eGui.removeAttribute(\"tabindex\"):this.eGui.setAttribute(\"tabindex\",\"-1\")}onGuiKeyDown(e){var t;const n=this.gridOptionsService.getDocument().activeElement,r=e.key===lk.LEFT||e.key===lk.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),n!==this.eGui||!e.shiftKey&&!e.altKey)return;if((this.isResizing||r)&&(e.preventDefault(),e.stopImmediatePropagation()),!r)return;const i=e.key===lk.LEFT!==this.gridOptionsService.get(\"enableRtl\"),o=QI[i?\"Left\":\"Right\"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const n=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(n,e.shiftKey),null==(t=this.resizeFeature)||t.toggleColumnResizing(!0)}else this.moveHeader(o)}getViewportAdjustedResizeDiff(e){let t=this.getResizeDiff(e);if(this.column.getPinned()){const e=this.pinnedWidthService.getPinnedLeftWidth(),n=this.pinnedWidthService.getPinnedRightWidth(),r=xO(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(e+n+t>r){if(!(r>e+n))return 0;t=r-e-n}}return t}getResizeDiff(e){let t=e.key===lk.LEFT!==this.gridOptionsService.get(\"enableRtl\");const n=this.column.getPinned(),r=this.gridOptionsService.get(\"enableRtl\");return n&&r!==(\"right\"===n)&&(t=!t),(t?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout((()=>{var e;null==(e=this.resizeFeature)||e.toggleColumnResizing(!1)}),150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case lk.PAGE_DOWN:case lk.PAGE_UP:case lk.PAGE_HOME:case lk.PAGE_END:t&&e.preventDefault()}}addDomData(){const t=e.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,t,this),this.addDestroyFunc((()=>this.gridOptionsService.setDomData(this.eGui,t,null)))}getGui(){return this.eGui}focus(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)}getRowIndex(){return this.parentRowCtrl.getRowIndex()}getParentRowCtrl(){return this.parentRowCtrl}getPinned(){return this.parentRowCtrl.getPinned()}getInstanceId(){return this.instanceId}getColumnGroupChild(){return this.columnGroupChild}removeDragSource(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const r=null!=e?e:t;this.gridOptionsService.get(\"preventDefaultOnContextMenu\")&&r.preventDefault();const i=n instanceof LD?n:void 0;this.menuService.isHeaderContextMenuEnabled(i)&&this.menuService.showHeaderContextMenu(i,e,t),this.dispatchColumnMouseEvent(CR.EVENT_COLUMN_HEADER_CONTEXT_MENU,n)}dispatchColumnMouseEvent(e,t){const n={type:e,column:t};this.eventService.dispatchEvent(n)}destroy(){super.destroy(),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null}};tL.DOM_DATA_KEY_HEADER_CTRL=\"headerCtrl\",MT([xD(\"pinnedWidthService\")],tL.prototype,\"pinnedWidthService\",2),MT([xD(\"focusService\")],tL.prototype,\"focusService\",2),MT([xD(\"userComponentFactory\")],tL.prototype,\"userComponentFactory\",2),MT([xD(\"ctrlsService\")],tL.prototype,\"ctrlsService\",2),MT([xD(\"dragAndDropService\")],tL.prototype,\"dragAndDropService\",2),MT([xD(\"menuService\")],tL.prototype,\"menuService\",2),MT([CD],tL.prototype,\"postConstruct\",1);var nL=tL,rL=class extends vR{constructor(e,t,n,r){super(),this.columnOrGroup=e,this.eCell=t,this.ariaEl=this.eCell.querySelector(\"[role=columnheader]\")||this.eCell,this.colsSpanning=r,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){return this.beans.gridOptionsService.get(\"enableRtl\")&&this.colsSpanning?HD(this.colsSpanning):this.columnOrGroup}postConstruct(){this.addManagedListener(this.columnOrGroup,LD.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",this.onLeftChanged.bind(this))}setLeftFirstTime(){const e=this.beans.gridOptionsService.get(\"suppressColumnMoveAnimation\"),t=NT(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=e.getLeft(),n=e.getOldLeft(),r=this.modifyLeftForPrintLayout(e,n),i=this.modifyLeftForPrintLayout(e,t);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((()=>{this.actualLeft===i&&this.setLeft(i)}))}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){if(!this.beans.gridOptionsService.isDomLayout(\"print\"))return t;if(\"left\"===e.getPinned())return t;const n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return\"right\"===e.getPinned()?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t}setLeft(e){let t;if(NT(e)&&(this.eCell.style.left=`${e}px`),this.columnOrGroup instanceof LD)t=this.columnOrGroup;else{const e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&EM(this.ariaEl,e.length),t=e[0]}}};MT([CD],rL.prototype,\"postConstruct\",1);var iL=class extends vR{constructor(e,t){super(),this.columns=e,this.element=t}postConstruct(){this.gridOptionsService.get(\"columnHoverHighlight\")&&this.addMouseHoverListeners()}addMouseHoverListeners(){this.addManagedListener(this.element,\"mouseout\",this.onMouseOut.bind(this)),this.addManagedListener(this.element,\"mouseover\",this.onMouseOver.bind(this))}onMouseOut(){this.columnHoverService.clearMouseOver()}onMouseOver(){this.columnHoverService.setMouseOver(this.columns)}};MT([xD(\"columnHoverService\")],iL.prototype,\"columnHoverService\",2),MT([CD],iL.prototype,\"postConstruct\",1);var oL=class extends nL{constructor(e,t,n){super(e,t,n),this.iconCreated=!1,this.column=e}setComp(e,t,n,r){this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,\"click\",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,LD.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))}resizeHeader(){}moveHeader(){}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass(\"ag-floating-filter-full-body\",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass(\"ag-floating-filter-body\",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=ak(\"filter\",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(){this.createManagedBean(new jk(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.localeService.getLocaleTextFunc();iM(this.eButtonShowMainFilter,e(\"ariaFilterMenuOpen\",\"Open Filter Menu\"))}onTabKeyDown(e){if(this.gridOptionsService.getDocument().activeElement===this.eGui)return;const t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();const n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.columnModel;let n=this.column;do{if(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n),!n)break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case lk.UP:case lk.DOWN:t||e.preventDefault();case lk.LEFT:case lk.RIGHT:if(t)return;e.stopPropagation();case lk.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case lk.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const t=!!e.relatedTarget&&!e.relatedTarget.classList.contains(\"ag-floating-filter\"),n=!!e.relatedTarget&&CO(e.relatedTarget,\"ag-floating-filter\");if(t&&n&&e.target===this.eGui){const e=this.lastFocusEvent,t=!(!e||e.key!==lk.TAB);if(e&&t){const t=e.shiftKey;this.focusService.focusInto(this.eGui,t)}}const r=this.getRowIndex();this.beans.focusService.setFocusedHeader(r,this.column)}setupHover(){this.createManagedBean(new iL([this.column],this.eGui));const e=()=>{if(!this.gridOptionsService.get(\"columnHoverHighlight\"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass(\"ag-column-hover\",e)};this.addManagedListener(this.eventService,CR.EVENT_COLUMN_HOVER_CHANGED,e),e()}setupLeft(){const e=new rL(this.column,this.eGui,this.beans);this.createManagedBean(e)}setupFilterButton(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()}setupUserComp(){if(!this.active)return;const e=this.beans.filterManager.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter()));e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:\"floatingFilter\",positionBy:\"button\"})}setupSyncWithFilter(){if(!this.active)return;const{filterManager:e}=this.beans,t=t=>{const n=this.comp.getFloatingFilterComp();n&&n.then((n=>{if(n){const r=e.getCurrentFloatingFilterParentModel(this.column);n.onParentModelChanged(r,t)}}))};this.destroySyncListener=this.addManagedListener(this.column,LD.EVENT_FILTER_CHANGED,t),e.isFilterActive(this.column)&&t(null)}setupWidth(){const e=()=>{const e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};this.addManagedListener(this.column,LD.EVENT_WIDTH_CHANGED,e),e()}setupFilterChangedListener(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,LD.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle(\"ag-filter-active\",this.column.isFilterActive())}}onColDefChanged(){var e,t;const n=this.active;this.setupActive();const r=!n&&this.active;n&&!this.active&&(null==(e=this.destroySyncListener)||e.call(this),null==(t=this.destroyFilterChangedListener)||t.call(this));const i=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter())):null,o=this.comp.getFloatingFilterComp();o&&i?o.then((e=>{var t;!e||this.beans.filterManager.areFilterCompsDifferent(null!=(t=this.userCompDetails)?t:null,i)?this.updateCompDetails(i,r):this.updateFloatingFilterParams(i)})):this.updateCompDetails(i,r)}updateCompDetails(e,t){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))}updateFloatingFilterParams(e){var t;if(!e)return;const n=e.params;null==(t=this.comp.getFloatingFilterComp())||t.then((e=>{let t=!1;(null==e?void 0:e.refresh)&&\"function\"==typeof e.refresh&&null!==e.refresh(n)&&(t=!0),!t&&(null==e?void 0:e.onParamsUpdated)&&\"function\"==typeof e.onParamsUpdated&&null!==e.onParamsUpdated(n)&&nD(\"Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.\")}))}destroy(){super.destroy(),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null}},aL=class extends vR{constructor(e,t,n,r,i){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=r,this.ctrl=i}postConstruct(){const e=[];let t,n;const r=()=>{if(yO(this.eResize,t),!t)return;const r=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(e.push(r),n){const t=this.gridOptionsService.get(\"skipHeaderOnAutoSize\"),n=()=>{this.columnModel.autoSizeColumn(this.column,\"uiColumnResized\",t)};this.eResize.addEventListener(\"dblclick\",n);const r=new kI(this.eResize);r.addEventListener(kI.EVENT_DOUBLE_TAP,n),e.push((()=>{this.eResize.removeEventListener(\"dblclick\",n),r.removeEventListener(kI.EVENT_DOUBLE_TAP,n),r.destroy()}))}},i=()=>{e.forEach((e=>e())),e.length=0},o=()=>{const e=this.column.isResizable(),o=!this.gridOptionsService.get(\"suppressAutoSize\")&&!this.column.getColDef().suppressAutoSize;(e!==t||o!==n)&&(t=e,n=o,i(),r())};o(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(o)}onResizing(e,t){const{column:n,lastResizeAmount:r,resizeStartWidth:i}=this,o=this.normaliseResizeAmount(t),a=[{key:n,newWidth:i+o}];this.column.getPinned()&&this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+(o-r)>xO(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50||(this.lastResizeAmount=o,this.columnModel.setColumnWidths(a,this.resizeWithShiftKey,e,\"uiColumnResized\"),e&&this.toggleColumnResizing(!1))}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass(\"ag-column-resizing\",e)}normaliseResizeAmount(e){let t=e;const n=\"left\"!==this.pinned,r=\"right\"===this.pinned;return this.gridOptionsService.get(\"enableRtl\")?n&&(t*=-1):r&&(t*=-1),t}};MT([xD(\"horizontalResizeService\")],aL.prototype,\"horizontalResizeService\",2),MT([xD(\"pinnedWidthService\")],aL.prototype,\"pinnedWidthService\",2),MT([xD(\"ctrlsService\")],aL.prototype,\"ctrlsService\",2),MT([xD(\"columnModel\")],aL.prototype,\"columnModel\",2),MT([CD],aL.prototype,\"postConstruct\",1);var sL=class extends vR{constructor(e){super(),this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1,this.column=e}onSpaceKeyDown(e){const t=this.cbSelectAll,n=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new rI),this.cbSelectAll.addCssClass(\"ag-header-select-all\"),JR(this.cbSelectAll.getGui(),\"presentation\"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,CR.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),hM(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute(\"tabindex\",\"-1\"),this.refreshSelectAllLabel()}onNewColumnsLoaded(){this.showOrHideSelectAll()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType(\"selectAllCheckbox\"),this.checkSelectionType(\"selectAllCheckbox\"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);const t=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){const e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e(\"ariaChecked\",\"checked\"):e(\"ariaUnchecked\",\"unchecked\"),n=e(\"ariaRowSelectAll\",\"Press Space to toggle all rows selection\");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty(\"selectAll\",`${n} (${t})`):this.headerCellCtrl.setAriaDescriptionProperty(\"selectAll\",null),this.cbSelectAll.setInputAriaLabel(`${n} (${t})`),this.headerCellCtrl.announceAriaDescription()}checkSelectionType(e){return!(\"multiple\"!==this.gridOptionsService.get(\"rowSelection\")&&(console.warn(`AG Grid: ${e} is only available if using 'multiple' rowSelection.`),1))}checkRightRowModelType(e){const t=this.rowModel.getType();return!(\"clientSide\"!==t&&\"serverSide\"!==t&&(console.warn(`AG Grid: ${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`),1))}onCbSelectAll(){if(this.processingEventFromCheckbox)return;if(!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),n=this.isCurrentPageOnly();let r=\"uiSelectAll\";n?r=\"uiSelectAllCurrentPage\":t&&(r=\"uiSelectAllFiltered\");const i={source:r,justFiltered:t,justCurrentPage:n};e?this.selectionService.selectAllRowNodes(i):this.selectionService.deselectAllRowNodes(i)}isCheckboxSelection(){let e=this.column.getColDef().headerCheckboxSelection;return\"function\"==typeof e&&(e=e(this.gridOptionsService.addGridCommonParams({column:this.column,colDef:this.column.getColDef()}))),!!e&&this.checkRightRowModelType(\"headerCheckboxSelection\")&&this.checkSelectionType(\"headerCheckboxSelection\")}isFilteredOnly(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly}isCurrentPageOnly(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly}};MT([xD(\"rowModel\")],sL.prototype,\"rowModel\",2),MT([xD(\"selectionService\")],sL.prototype,\"selectionService\",2);var lL=class extends nL{constructor(e,t,n){super(e,t,n),this.refreshFunctions=[],this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map,this.column=e}setComp(e,t,n,r){this.comp=e,this.setGui(t),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new aL(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new iL([this.column],t)),this.createManagedBean(new rL(this.column,t,this.beans)),this.createManagedBean(new jk(t,{shouldStopEventPropagation:e=>this.shouldStopEventPropagation(e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners([\"suppressMovableColumns\",\"suppressMenuHide\",\"suppressAggFuncInHeader\"],this.refresh.bind(this)),this.addManagedListener(this.column,LD.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))}resizeHeader(e,t){var n,r;if(!this.column.isResizable())return;const i=this.column.getActualWidth(),o=null!=(n=this.column.getMinWidth())?n:0,a=null!=(r=this.column.getMaxWidth())?r:Number.MAX_SAFE_INTEGER,s=Math.min(Math.max(i+e,o),a);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:s}],t,!0,\"uiColumnResized\")}moveHeader(e){const{eGui:t,column:n,gridOptionsService:r,ctrlsService:i}=this,o=this.getPinned(),a=t.getBoundingClientRect().left,s=n.getActualWidth(),l=0===e!==r.get(\"enableRtl\"),c=WP.normaliseX(l?a-20:a+s+20,o,!0,r,i);WP.attemptMoveColumns({allMovingColumns:[n],isFromHeader:!0,hDirection:e,xPosition:c,pinned:o,fromEnter:!1,fakeEvent:!1,gridOptionsService:r,columnModel:this.beans.columnModel}),i.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(n,\"auto\")}setupUserComp(){const e=this.lookupUserCompDetails();this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)}createParams(){return this.gridOptionsService.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:e=>{this.menuService.showColumnMenu({column:this.column,buttonElement:e,positionBy:\"button\"})},showColumnMenuAfterMouseClick:e=>{this.menuService.showColumnMenu({column:this.column,mouseEvent:e,positionBy:\"mouse\"})},showFilter:e=>{this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:\"columnFilter\",positionBy:\"button\"})},progressSort:e=>{this.beans.sortController.progressSort(this.column,!!e,\"uiColumnSorted\")},setSort:(e,t)=>{this.beans.sortController.setSortForColumn(this.column,e,!!t,\"uiColumnSorted\")},eGridHeader:this.getGui(),setTooltip:(e,t)=>{this.setupTooltip(e,t)}})}setupSelectAll(){this.selectAllFeature=this.createManagedBean(new sL(this.column)),this.selectAllFeature.setComp(this)}getSelectAllGui(){return this.selectAllFeature.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===lk.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===lk.ENTER&&this.onEnterKeyDown(e),e.key===lk.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){const t=e.shiftKey;this.beans.sortController.progressSort(this.column,t,\"uiColumnSorted\")}}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();n&&n instanceof LI&&n.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){if(!this.getGui().contains(e.relatedTarget)){const e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)}onFocusOut(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const n=\"whenTruncated\"===this.gridOptionsService.get(\"tooltipShowMode\"),r=this.eGui,i=this.column.getColDef();t||!n||i.headerComponent||(t=()=>{const e=r.querySelector(\".ag-header-cell-text\");return!e||e.scrollWidth>e.clientWidth});const o={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getGui:()=>r,getLocation:()=>\"header\",getTooltipValue:()=>null!=e?e:this.column.getColDef().headerTooltip,shouldDisplayTooltip:t},a=this.createManagedBean(new Ik(o));this.refreshFunctions.push((()=>a.refreshToolTip()))}setupClassesFromColDef(){const e=()=>{const e=this.column.getColDef(),t=fP.getHeaderClassesFromColDef(e,this.gridOptionsService,this.column,null),n=this.userHeaderClasses;this.userHeaderClasses=new Set(t),t.forEach((e=>{n.has(e)?n.delete(e):this.comp.addOrRemoveCssClass(e,!0)})),n.forEach((e=>this.comp.addOrRemoveCssClass(e,!1)))};this.refreshFunctions.push(e),e()}setDragSource(e){if(this.dragSourceElement=e,this.removeDragSource(),!e||!this.draggable)return;const{column:t,beans:n,displayName:r,dragAndDropService:i,gridOptionsService:o}=this,{columnModel:a}=n;let s=!this.gridOptionsService.get(\"suppressDragLeaveHidesColumns\");const l=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>s?XI.ICON_HIDE:XI.ICON_NOT_ALLOWED,getDragItem:()=>this.createDragItem(t),dragItemName:r,onDragStarted:()=>{s=!o.get(\"suppressDragLeaveHidesColumns\"),t.setMoving(!0,\"uiColumnMoved\")},onDragStopped:()=>t.setMoving(!1,\"uiColumnMoved\"),onGridEnter:e=>{var t;if(s){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!0,\"uiColumnMoved\")}},onGridExit:e=>{var t;if(s){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!1,\"uiColumnMoved\")}}};i.addDragSource(l,!0)}createDragItem(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}updateState(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}addRefreshFunction(e){this.refreshFunctions.push(e)}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((e=>e()))}refreshHeaderComp(){const e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))}calculateDisplayName(){return this.beans.columnModel.getDisplayNameForColumn(this.column,\"header\",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!(this.gridOptionsService.get(\"suppressMovableColumns\")||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}onColumnRowGroupChanged(){this.checkDisplayName()}onColumnPivotChanged(){this.checkDisplayName()}onColumnValueChanged(){this.checkDisplayName()}setupWidth(){const e=()=>{const e=this.column.getActualWidth();this.comp.setWidth(`${e}px`)};this.addManagedListener(this.column,LD.EVENT_WIDTH_CHANGED,e),e()}setupMovingCss(){const e=()=>{this.comp.addOrRemoveCssClass(\"ag-header-cell-moving\",this.column.isMoving())};this.addManagedListener(this.column,LD.EVENT_MOVING_CHANGED,e),e()}setupMenuClass(){const e=()=>{this.comp.addOrRemoveCssClass(\"ag-column-menu-visible\",this.column.isMenuVisible())};this.addManagedListener(this.column,LD.EVENT_MENU_VISIBLE_CHANGED,e),e()}setupSortableClass(){const e=()=>{this.comp.addOrRemoveCssClass(\"ag-header-cell-sortable\",!!this.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.eventService,LD.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))}setupFilterClass(){const e=()=>{const e=this.column.isFilterActive();this.comp.addOrRemoveCssClass(\"ag-header-cell-filtered\",e),this.refreshAria()};this.addManagedListener(this.column,LD.EVENT_FILTER_ACTIVE_CHANGED,e),e()}setupWrapTextClass(){const e=()=>{const e=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass(\"ag-header-cell-wrap-text\",e)};e(),this.addRefreshFunction(e)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:r}=this;if(!t.isSpanHeaderHeight())return e.style.removeProperty(\"top\"),e.style.removeProperty(\"height\"),n.addOrRemoveCssClass(\"ag-header-span-height\",!1),void n.addOrRemoveCssClass(\"ag-header-span-total\",!1);const{numberOfParents:i,isSpanningTotal:o}=this.column.getColumnGroupPaddingInfo();n.addOrRemoveCssClass(\"ag-header-span-height\",i>0);const{columnModel:a}=r,s=a.getColumnHeaderRowHeight();if(0===i)return n.addOrRemoveCssClass(\"ag-header-span-total\",!1),e.style.setProperty(\"top\",\"0px\"),void e.style.setProperty(\"height\",`${s}px`);n.addOrRemoveCssClass(\"ag-header-span-total\",o);const l=i*(a.isPivotMode()?a.getPivotGroupHeaderHeight():a.getGroupHeaderHeight());e.style.setProperty(\"top\",-l+\"px\"),e.style.setProperty(\"height\",`${s+l}px`)}setupAutoHeight(e){const{columnModel:t,resizeObserverService:n}=this.beans,r=n=>{if(!this.isAlive())return;const{paddingTop:i,paddingBottom:o,borderBottomWidth:a,borderTopWidth:s}=SO(this.getGui()),l=i+o+a+s,c=e.offsetHeight+l;if(n<5){const t=this.beans.gridOptionsService.getDocument();if(!t||!t.contains(e)||0==c)return void window.setTimeout((()=>r(n+1)),0)}t.setColumnHeaderHeight(this.column,c)};let i,o=!1;const a=()=>{const e=this.column.isAutoHeaderHeight();e&&!o&&s(),!e&&o&&l()},s=()=>{o=!0,r(0),this.comp.addOrRemoveCssClass(\"ag-header-cell-auto-height\",!0),i=n.observeResize(e,(()=>r(0)))},l=()=>{o=!1,i&&i(),this.comp.addOrRemoveCssClass(\"ag-header-cell-auto-height\",!1),i=void 0};a(),this.addDestroyFunc((()=>l())),this.addManagedListener(this.column,LD.EVENT_WIDTH_CHANGED,(()=>o&&r(0))),this.addManagedListener(this.eventService,LD.EVENT_SORT_CHANGED,(()=>{o&&window.setTimeout((()=>r(0)))})),this.addRefreshFunction(a)}refreshAriaSort(){if(this.sortable){const e=this.localeService.getLocaleTextFunc(),t=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(eM(t)),this.setAriaDescriptionProperty(\"sort\",e(\"ariaSortableColumn\",\"Press ENTER to sort\"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty(\"sort\",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty(\"menu\",e(\"ariaMenuColumn\",\"Press ALT DOWN to open column menu\"))}else this.setAriaDescriptionProperty(\"menu\",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty(\"filterButton\",e(\"ariaFilterColumn\",\"Press CTRL ENTER to open filter\"))}else this.setAriaDescriptionProperty(\"filterButton\",null)}refreshAriaFiltered(){const e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty(\"filter\",e(\"ariaColumnFiltered\",\"Column Filtered\")):this.setAriaDescriptionProperty(\"filter\",null)}setAriaDescriptionProperty(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){const e=this.beans.gridOptionsService.getDocument();if(!this.eGui.contains(e.activeElement))return;const t=Array.from(this.ariaDescriptionProperties.keys()).sort(((e,t)=>\"filter\"===e?-1:t.charCodeAt(0)-e.charCodeAt(0))).map((e=>this.ariaDescriptionProperties.get(e))).join(\". \");this.beans.ariaAnnouncementService.announceValue(t)}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(){const e=()=>{if(!this.gridOptionsService.get(\"columnHoverHighlight\"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass(\"ag-column-hover\",e)};this.addManagedListener(this.eventService,CR.EVENT_COLUMN_HOVER_CHANGED,e),e()}getColId(){return this.column.getColId()}addActiveHeaderMouseListeners(){const e=e=>this.handleMouseOverChange(\"mouseenter\"===e.type);this.addManagedListener(this.getGui(),\"mouseenter\",e),this.addManagedListener(this.getGui(),\"mouseleave\",e),this.addManagedListener(this.getGui(),\"click\",(()=>this.dispatchColumnMouseEvent(CR.EVENT_COLUMN_HEADER_CLICKED,this.column))),this.addManagedListener(this.getGui(),\"contextmenu\",(e=>this.handleContextMenuMouseEvent(e,void 0,this.column)))}handleMouseOverChange(e){this.setActiveHeader(e);const t={type:e?CR.EVENT_COLUMN_HEADER_MOUSE_OVER:CR.EVENT_COLUMN_HEADER_MOUSE_LEAVE,column:this.column};this.eventService.dispatchEvent(t)}setActiveHeader(e){this.comp.addOrRemoveCssClass(\"ag-header-active\",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return t instanceof LI?t.getAnchorElementForMenu(e):this.getGui()}destroy(){super.destroy(),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null}},cL=class extends vR{constructor(e,t,n,r){super(),this.eResize=t,this.comp=e,this.pinned=n,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);const e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gridOptionsService.get(\"suppressAutoSize\")){const e=this.gridOptionsService.get(\"skipHeaderOnAutoSize\");this.eResize.addEventListener(\"dblclick\",(()=>{const t=[];this.columnGroup.getDisplayedLeafColumns().forEach((e=>{e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&this.columnModel.autoSizeColumns({columns:t,skipHeader:e,stopAtGroup:this.columnGroup,source:\"uiColumnResized\"}),this.resizeLeafColumnsToFit(\"uiColumnResized\")}))}}onResizeStart(e){const t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)}onResizing(e,t,n=\"uiColumnResized\"){const r=this.normaliseDragChange(t),i=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(i,n,e)}getInitialValues(e){const t=this.getColumnsToResize(),n=this.getInitialSizeOfColumns(t),r={columnsToResize:t,resizeStartWidth:n,resizeRatios:this.getSizeRatiosOfColumns(t,n)};let i=null;if(e&&(i=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),i){const e=i.getDisplayedLeafColumns(),t=r.groupAfterColumns=e.filter((e=>e.isResizable())),n=r.groupAfterStartWidth=this.getInitialSizeOfColumns(t);r.groupAfterRatios=this.getSizeRatiosOfColumns(t,n)}else r.groupAfterColumns=void 0,r.groupAfterStartWidth=void 0,r.groupAfterRatios=void 0;return r}storeLocalValues(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:i,groupAfterStartWidth:o,groupAfterRatios:a}=e;this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=r,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=a}clearLocalValues(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}resizeLeafColumnsToFit(e){const t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){var r,i,o;if(!this.resizeCols||!this.resizeRatios)return;const a={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:null!=(r=this.resizeTakeFromCols)?r:void 0,groupAfterStartWidth:null!=(i=this.resizeTakeFromStartWidth)?i:void 0,groupAfterRatios:null!=(o=this.resizeTakeFromRatios)?o:void 0};this.resizeColumns(a,e,t,n)}resizeColumns(e,t,n,r=!0){const{columnsToResize:i,resizeStartWidth:o,resizeRatios:a,groupAfterColumns:s,groupAfterStartWidth:l,groupAfterRatios:c}=e,d=[];if(d.push({columns:i,ratios:a,width:t}),s){const e=t-o;d.push({columns:s,ratios:c,width:l-e})}this.columnModel.resizeColumnSets({resizeSets:d,finished:r,source:n}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass(\"ag-column-resizing\",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter((e=>e.isResizable()))}getInitialSizeOfColumns(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}getSizeRatiosOfColumns(e,t){return e.map((e=>e.getActualWidth()/t))}normaliseDragChange(e){let t=e;return this.gridOptionsService.get(\"enableRtl\")?\"left\"!==this.pinned&&(t*=-1):\"right\"===this.pinned&&(t*=-1),t}destroy(){super.destroy(),this.clearLocalValues()}};MT([xD(\"horizontalResizeService\")],cL.prototype,\"horizontalResizeService\",2),MT([xD(\"autoWidthCalculator\")],cL.prototype,\"autoWidthCalculator\",2),MT([xD(\"columnModel\")],cL.prototype,\"columnModel\",2),MT([CD],cL.prototype,\"postConstruct\",1);var dL=class extends vR{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,wR.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((t=>{t.addEventListener(\"widthChanged\",e),t.addEventListener(\"visibleChanged\",e),this.removeChildListenersFuncs.push((()=>{t.removeEventListener(\"widthChanged\",e),t.removeEventListener(\"visibleChanged\",e)}))}))}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach((e=>e())),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.addOrRemoveCssClass(\"ag-hidden\",0===e)}};MT([CD],dL.prototype,\"postConstruct\",1);var uL=class extends nL{constructor(e,t,n){super(e,t,n),this.onSuppressColMoveChange=()=>{if(!this.isAlive()||this.isSuppressMoving())this.removeDragSource();else if(!this.dragSource){const e=this.getGui();this.setDragSource(e)}},this.column=e}setComp(e,t,n){this.comp=e,this.setGui(t),this.displayName=this.beans.columnModel.getDisplayNameForColumnGroup(this.column,\"header\"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.addDestroyFunc((()=>{this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature))})),this.setupUserComp(),this.addHeaderMouseListeners();const r=this.getParentRowCtrl().getPinned(),i=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new iL(i,t)),this.createManagedBean(new rL(this.column,t,this.beans)),this.createManagedBean(new dL(e,this.column)),this.resizeFeature=this.createManagedBean(new cL(e,n,r,this.column)),this.createManagedBean(new jk(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(CR.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()}resizeHeader(e,t){if(!this.resizeFeature)return;const n=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(n,n.resizeStartWidth+e,\"uiColumnResized\",!0)}moveHeader(e){const{beans:t,eGui:n,column:r,gridOptionsService:i,ctrlsService:o}=this,a=i.get(\"enableRtl\"),s=0===e,l=this.getPinned(),c=n.getBoundingClientRect(),d=c.left,u=c.width,h=WP.normaliseX(s!==a?d-20:d+u+20,l,!0,i,o),p=r.getGroupId(),g=this.focusService.getFocusedHeader();WP.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:h,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:i,columnModel:t.columnModel});const f=r.getDisplayedLeafColumns(),m=s?f[0]:HD(f);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(m,\"auto\"),!this.isAlive()&&g&&this.restoreFocus(p,r,g)}restoreFocus(e,t,n){const r=t.getLeafColumns();if(!r.length)return;const i=r[0].getParent();if(!i)return;const o=this.findGroupWidthId(i,e);o&&this.focusService.focusHeaderPosition({headerPosition:DT(TT({},n),{column:o})})}findGroupWidthId(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null}resizeLeafColumnsToFit(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)}setupUserComp(){const e=this.gridOptionsService.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:e=>{this.beans.columnModel.setColumnGroupOpened(this.column.getProvidedColumnGroup(),e,\"gridInitializing\")},setTooltip:(e,t)=>{this.setupTooltip(e,t)}}),t=this.userComponentFactory.getHeaderGroupCompDetails(e);this.comp.setUserCompDetails(t)}addHeaderMouseListeners(){const e=e=>this.handleMouseOverChange(\"mouseenter\"===e.type);this.addManagedListener(this.getGui(),\"mouseenter\",e),this.addManagedListener(this.getGui(),\"mouseleave\",e),this.addManagedListener(this.getGui(),\"click\",(()=>this.dispatchColumnMouseEvent(CR.EVENT_COLUMN_HEADER_CLICKED,this.column.getProvidedColumnGroup()))),this.addManagedListener(this.getGui(),\"contextmenu\",(e=>this.handleContextMenuMouseEvent(e,void 0,this.column.getProvidedColumnGroup())))}handleMouseOverChange(e){const t={type:e?CR.EVENT_COLUMN_HEADER_MOUSE_OVER:CR.EVENT_COLUMN_HEADER_MOUSE_LEAVE,column:this.column.getProvidedColumnGroup()};this.eventService.dispatchEvent(t)}setupTooltip(e,t){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const n=this.column.getColGroupDef(),r=\"whenTruncated\"===this.gridOptionsService.get(\"tooltipShowMode\"),i=this.eGui;t||!r||(null==n?void 0:n.headerGroupComponent)||(t=()=>{const e=i.querySelector(\".ag-header-group-text\");return!e||e.scrollWidth>e.clientWidth});const o={getColumn:()=>this.column,getGui:()=>i,getLocation:()=>\"headerGroup\",getTooltipValue:()=>null!=e?e:n&&n.headerTooltip,shouldDisplayTooltip:t};n&&(o.getColDef=()=>n),this.createBean(new Ik(o))}setupExpandable(){const e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,_D.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,_D.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))}refreshExpanded(){const e=this.column;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?\"true\":\"false\"):this.comp.setAriaExpanded(void 0)}getColId(){return this.column.getUniqueId()}addClasses(){const e=this.column.getColGroupDef(),t=fP.getHeaderClassesFromColDef(e,this.gridOptionsService,null,this.column);this.column.isPadding()?(t.push(\"ag-header-group-cell-no-group\"),this.column.getLeafColumns().every((e=>e.isSpanHeaderHeight()))&&t.push(\"ag-header-span-height\")):t.push(\"ag-header-group-cell-with-group\"),t.forEach((e=>this.comp.addOrRemoveCssClass(e,!0)))}setupMovingCss(){const e=this.column.getProvidedColumnGroup().getLeafColumns(),t=()=>this.comp.addOrRemoveCssClass(\"ag-header-cell-moving\",this.column.isMoving());e.forEach((e=>{this.addManagedListener(e,LD.EVENT_MOVING_CHANGED,t)})),t()}onFocusIn(e){if(!this.eGui.contains(e.relatedTarget)){const e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.column)}}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(this.expandable&&t&&e.key===lk.ENTER){const e=this.column,t=!e.isExpanded();this.beans.columnModel.setColumnGroupOpened(e.getProvidedColumnGroup(),t,\"uiColumnExpanded\")}}setDragSource(e){if(!this.isAlive()||this.isSuppressMoving())return;if(this.removeDragSource(),!e)return;const{beans:t,column:n,displayName:r,gridOptionsService:i,dragAndDropService:o}=this,{columnModel:a}=t,s=n.getProvidedColumnGroup().getLeafColumns();let l=!i.get(\"suppressDragLeaveHidesColumns\");const c=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>l?XI.ICON_HIDE:XI.ICON_NOT_ALLOWED,dragItemName:r,getDragItem:()=>this.getDragItemForGroup(n),onDragStarted:()=>{l=!i.get(\"suppressDragLeaveHidesColumns\"),s.forEach((e=>e.setMoving(!0,\"uiColumnDragged\")))},onDragStopped:()=>s.forEach((e=>e.setMoving(!1,\"uiColumnDragged\"))),onGridEnter:e=>{var t;if(l){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!0,\"uiColumnMoved\")}},onGridExit:e=>{var t;if(l){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!1,\"uiColumnMoved\")}}};o.addDragSource(c,!0)}getDragItemForGroup(e){const t=e.getProvidedColumnGroup().getLeafColumns(),n={};t.forEach((e=>n[e.getId()]=e.isVisible()));const r=[];return this.beans.columnModel.getAllDisplayedColumns().forEach((e=>{t.indexOf(e)>=0&&(r.push(e),KD(t,e))})),t.forEach((e=>r.push(e))),{columns:r,visibleState:n}}isSuppressMoving(){let e=!1;return this.column.getLeafColumns().forEach((t=>{(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsService.get(\"suppressMovableColumns\")}},hL=0,pL=class extends vR{constructor(e,t,n){super(),this.instanceId=hL++,this.rowIndex=e,this.pinned=t,this.type=n;const r=\"group\"==n?\"ag-header-row-column-group\":\"filter\"==n?\"ag-header-row-column-filter\":\"ag-header-row-column\";this.headerRowClass=`ag-header-row ${r}`}postConstruct(){this.isPrintLayout=this.gridOptionsService.isDomLayout(\"print\"),this.isEnsureDomOrder=this.gridOptionsService.get(\"ensureDomOrder\")}getInstanceId(){return this.instanceId}setComp(e,t=!0){this.comp=e,t&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()}getHeaderRowClass(){return this.headerRowClass}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(){this.addManagedListener(this.eventService,CR.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_VIRTUAL_COLUMNS_CHANGED,(e=>this.onVirtualColumnsChanged(e.afterScroll))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener(\"ensureDomOrder\",(e=>this.isEnsureDomOrder=e.currentValue)),this.addManagedPropertyListener(\"headerHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"pivotHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"groupHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"pivotGroupHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"floatingFiltersHeight\",this.onRowHeightChanged.bind(this))}getHeaderCellCtrl(e){if(this.headerCellCtrls)return HT(this.headerCellCtrls).find((t=>t.getColumnGroupChild()===e))}onDisplayedColumnsChanged(){this.isPrintLayout=this.gridOptionsService.isDomLayout(\"print\"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}getType(){return this.type}onColumnResized(){this.setWidth()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{columnModel:e}=this.beans;return this.isPrintLayout?null!=this.pinned?0:e.getContainerWidth(\"right\")+e.getContainerWidth(\"left\")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){var{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+\"px\"),this.comp.setHeight(t+\"px\")}getTopAndHeight(){const{columnModel:e,filterManager:t}=this.beans;let n=e.getHeaderRowCount();const r=[];let i=0;t.hasFloatingFilters()&&(n++,i=1);const o=e.getColumnGroupHeaderRowHeight(),a=e.getColumnHeaderRowHeight(),s=n-(1+i);for(let e=0;e<s;e++)r.push(o);r.push(a);for(let t=0;t<i;t++)r.push(e.getFloatingFiltersHeight());let l=0;for(let e=0;e<this.rowIndex;e++)l+=r[e];return{topOffset:l,rowHeight:r[this.rowIndex]}}getPinned(){return this.pinned}getRowIndex(){return this.rowIndex}onVirtualColumnsChanged(e=!1){const t=this.getHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getHeaderCtrls(){const e=this.headerCellCtrls;this.headerCellCtrls=new Map;const t=this.getColumnsInViewport();for(const n of t)this.recycleAndCreateHeaderCtrls(n,e);const n=e=>{const{focusService:t,columnModel:n}=this.beans;return!!t.isHeaderWrapperFocused(e)&&n.isDisplayed(e.getColumnGroupChild())};if(e)for(const[t,r]of e)n(r)?this.headerCellCtrls.set(t,r):this.destroyBean(r);return Array.from(this.headerCellCtrls.values())}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls)return;if(e.isEmptyGroup())return;const n=e.getUniqueId();let r;if(t&&(r=t.get(n),t.delete(n)),r&&r.getColumnGroupChild()!=e&&(this.destroyBean(r),r=void 0),null==r)switch(this.type){case\"filter\":r=this.createBean(new oL(e,this.beans,this));break;case\"group\":r=this.createBean(new uL(e,this.beans,this));break;default:r=this.createBean(new lL(e,this.beans,this))}this.headerCellCtrls.set(n,r)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(null!=this.pinned)return[];let e=[];const t=this.getActualDepth(),{columnModel:n}=this.beans;return[\"left\",null,\"right\"].forEach((r=>{const i=n.getVirtualHeaderGroupRow(r,t);e=e.concat(i)})),e}getActualDepth(){return\"filter\"==this.type?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())}focusHeader(e,t){if(!this.headerCellCtrls)return!1;const n=Array.from(this.headerCellCtrls.values()).find((t=>t.getColumnGroupChild()==e));return!!n&&n.focus(t)}destroy(){this.headerCellCtrls&&this.headerCellCtrls.forEach((e=>{this.destroyBean(e)})),this.headerCellCtrls=void 0,super.destroy()}};MT([xD(\"beans\")],pL.prototype,\"beans\",2),MT([CD],pL.prototype,\"postConstruct\",1);var gL=class extends vR{constructor(e){super(),this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[],this.pinned=e}setComp(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,CR.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()}setupDragAndDrop(e){const t=new YP(this.pinned,e);this.createManagedBean(t)}refresh(e=!1){const t=new Dk,n=this.focusService.getFocusHeaderToUseAfterRefresh();(()=>{const e=this.columnModel.getHeaderRowCount()-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let n=0;n<e;n++){const e=this.createBean(new pL(t.next(),this.pinned,\"group\"));this.groupsRowCtrls.push(e)}})(),(()=>{const n=t.next(),r=!(this.hidden||null!=this.columnsRowCtrl&&e&&this.columnsRowCtrl.getRowIndex()===n);(r||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),r&&(this.columnsRowCtrl=this.createBean(new pL(n,this.pinned,\"column\")))})(),(()=>{this.includeFloatingFilter=this.filterManager.hasFloatingFilters()&&!this.hidden;const n=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void n();const r=t.next();if(this.filtersRowCtrl){const t=this.filtersRowCtrl.getRowIndex()!==r;e&&!t||n()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new pL(r,this.pinned,\"filter\")))})();const r=this.getAllCtrls();this.comp.setCtrls(r),this.restoreFocusOnHeader(n)}restoreFocusOnHeader(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(){const e=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new RP((e=>this.comp.setCenterWidth(`${e}px`)),!0))}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}setupPinnedWidth(){if(null==this.pinned)return;const e=\"left\"===this.pinned,t=\"right\"===this.pinned;this.hidden=!0;const n=()=>{const n=e?this.pinnedWidthService.getPinnedLeftWidth():this.pinnedWidthService.getPinnedRightWidth();if(null==n)return;const r=0==n,i=this.hidden!==r,o=this.gridOptionsService.get(\"enableRtl\"),a=this.gridOptionsService.getScrollbarWidth(),s=this.scrollVisibleService.isVerticalScrollShowing()&&(o&&e||!o&&t)?n+a:n;this.comp.setPinnedContainerWidth(`${s}px`),this.comp.setDisplayed(!r),i&&(this.hidden=r,this.refresh())};this.addManagedListener(this.eventService,CR.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,CR.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,CR.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}getHeaderCtrlForColumn(e){if(e instanceof LD){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(let t=0;t<this.groupsRowCtrls.length;t++){const n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}}getHtmlElementForColumnHeader(e){const t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null}getRowType(e){const t=this.getAllCtrls()[e];return t?t.getType():void 0}focusHeader(e,t,n){const r=this.getAllCtrls()[e];return!!r&&r.focusHeader(t,n)}getViewport(){return this.eViewport}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}destroy(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),super.destroy()}};MT([xD(\"ctrlsService\")],gL.prototype,\"ctrlsService\",2),MT([xD(\"scrollVisibleService\")],gL.prototype,\"scrollVisibleService\",2),MT([xD(\"pinnedWidthService\")],gL.prototype,\"pinnedWidthService\",2),MT([xD(\"columnModel\")],gL.prototype,\"columnModel\",2),MT([xD(\"focusService\")],gL.prototype,\"focusService\",2),MT([xD(\"filterManager\")],gL.prototype,\"filterManager\",2);var fL=class e extends Lk{constructor(e){super(),this.headerRowComps={},this.rowCompsList=[],this.pinned=e}init(){this.selectAndSetTemplate();const e={setDisplayed:e=>this.setDisplayed(e),setCtrls:e=>this.setCtrls(e),setCenterWidth:e=>this.eCenterContainer.style.width=e,setViewportScrollLeft:e=>this.getGui().scrollLeft=e,setPinnedContainerWidth:e=>{const t=this.getGui();t.style.width=e,t.style.maxWidth=e,t.style.minWidth=e}};this.createManagedBean(new gL(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){const t=\"left\"==this.pinned,n=\"right\"==this.pinned,r=t?e.PINNED_LEFT_TEMPLATE:n?e.PINNED_RIGHT_TEMPLATE:e.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()}destroyRowComps(){this.setCtrls([])}destroyRowComp(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())}setCtrls(e){const t=this.headerRowComps;let n;this.headerRowComps={},this.rowCompsList=[];const r=e=>{const t=e.getGui();t.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(t),n&&FO(this.eRowContainer,t,n),n=t};e.forEach((e=>{const n=e.getInstanceId(),i=t[n];delete t[n];const o=i||this.createBean(new JP(e));this.headerRowComps[n]=o,this.rowCompsList.push(o),r(o)})),KT(t).forEach((e=>this.destroyRowComp(e)))}};fL.PINNED_LEFT_TEMPLATE='<div class=\"ag-pinned-left-header\" role=\"rowgroup\"></div>',fL.PINNED_RIGHT_TEMPLATE='<div class=\"ag-pinned-right-header\" role=\"rowgroup\"></div>',fL.CENTER_TEMPLATE='<div class=\"ag-header-viewport\" role=\"presentation\">\\n            <div class=\"ag-header-container\" ref=\"eCenterContainer\" role=\"rowgroup\"></div>\\n        </div>',MT([Fk(\"eCenterContainer\")],fL.prototype,\"eCenterContainer\",2),MT([CD],fL.prototype,\"init\",1),MT([SD],fL.prototype,\"destroyRowComps\",1);var mL=fL,vL=class extends vR{constructor(){super(...arguments),this.currentHeaderRowWithoutSpan=-1}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCon=e.gridBodyCtrl}));const e=this.gridOptionsService.getDocument();this.addManagedListener(e,\"mousedown\",(()=>this.setCurrentHeaderRowWithoutSpan(-1)))}getHeaderRowCount(){const e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0}navigateVertically(e,t,n){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;const{headerRowIndex:r,column:i}=t,o=this.getHeaderRowCount(),a=0===e;let{headerRowIndex:s,column:l,headerRowIndexWithoutSpan:c}=a?this.headerPositionUtils.getColumnVisibleParent(i,r):this.headerPositionUtils.getColumnVisibleChild(i,r),d=!1;return s<0&&(s=0,l=i,d=!0),s>=o?(s=-1,this.setCurrentHeaderRowWithoutSpan(-1)):void 0!==c&&(this.currentHeaderRowWithoutSpan=c),!(!d&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:l},allowUserOverride:!0,event:n})}setCurrentHeaderRowWithoutSpan(e){this.currentHeaderRowWithoutSpan=e}navigateHorizontally(e,t=!1,n){const r=this.focusService.getFocusedHeader(),i=2===e,o=this.gridOptionsService.get(\"enableRtl\");let a,s;return-1!==this.currentHeaderRowWithoutSpan?r.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=r.headerRowIndex,i!==o?(s=\"Before\",a=this.headerPositionUtils.findHeader(r,s)):(s=\"After\",a=this.headerPositionUtils.findHeader(r,s)),a||!t?this.focusService.focusHeaderPosition({headerPosition:a,direction:s,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(r,s,n)}focusNextHeaderRow(e,t,n){const r=e.headerRowIndex;let i,o=null;if(\"Before\"===t?r>0&&(i=r-1,this.currentHeaderRowWithoutSpan-=1,o=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,\"end\")):(i=r+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),o=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,\"start\")),!o)return!1;const{column:a,headerRowIndex:s}=this.headerPositionUtils.getHeaderIndexToFocus(o.column,null==o?void 0:o.headerRowIndex);return this.focusService.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:s},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t=\"After\"){if(e.getPinned())return;let n;if(e instanceof wR){const r=e.getDisplayedLeafColumns();n=\"Before\"===t?HD(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}};MT([xD(\"focusService\")],vL.prototype,\"focusService\",2),MT([xD(\"headerPositionUtils\")],vL.prototype,\"headerPositionUtils\",2),MT([xD(\"ctrlsService\")],vL.prototype,\"ctrlsService\",2),MT([CD],vL.prototype,\"postConstruct\",1),vL=MT([ED(\"headerNavigationService\")],vL);var yL=class extends vR{setComp(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new jk(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight();const r=this.onHeaderContextMenu.bind(this);this.addManagedListener(this.eGui,\"contextmenu\",r),this.mockContextMenuForIPad(r),this.ctrlsService.registerGridHeaderCtrl(this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener(\"headerHeight\",e),this.addManagedPropertyListener(\"pivotHeaderHeight\",e),this.addManagedPropertyListener(\"groupHeaderHeight\",e),this.addManagedPropertyListener(\"pivotGroupHeaderHeight\",e),this.addManagedPropertyListener(\"floatingFiltersHeight\",e),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)}getHeaderHeight(){return this.headerHeight}setHeaderHeight(){const{columnModel:e}=this;let t,n=0,r=e.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(r++,n=1);const i=this.columnModel.getColumnGroupHeaderRowHeight(),o=this.columnModel.getColumnHeaderRowHeight(),a=r-(1+n);if(t=n*e.getFloatingFiltersHeight(),t+=a*i,t+=o,this.headerHeight===t)return;this.headerHeight=t;const s=`${t+1}px`;this.comp.setHeightAndMinHeight(s),this.eventService.dispatchEvent({type:CR.EVENT_HEADER_HEIGHT_CHANGED})}onPivotModeChanged(){const e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass(\"ag-pivot-on\",e),this.comp.addOrRemoveCssClass(\"ag-pivot-off\",!e)}onDisplayedColumnsChanged(){const e=this.columnModel.getAllDisplayedColumns().some((e=>e.isSpanHeaderHeight()));this.comp.addOrRemoveCssClass(\"ag-header-allow-overflow\",e)}onTabKeyDown(e){const t=this.gridOptionsService.get(\"enableRtl\"),n=e.shiftKey!==t?2:3;(this.headerNavigationService.navigateHorizontally(n,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()}handleKeyDown(e){let t=null;switch(e.key){case lk.LEFT:t=2;case lk.RIGHT:NT(t)||(t=3),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case lk.UP:t=0;case lk.DOWN:NT(t)||(t=1),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}}onFocusOut(e){const t=this.gridOptionsService.getDocument(),{relatedTarget:n}=e;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()}onHeaderContextMenu(e,t,n){if(!e&&!n||!this.menuService.isHeaderContextMenuEnabled())return;const{target:r}=null!=e?e:t;r!==this.eGui&&r!==this.ctrlsService.getHeaderRowContainerCtrl().getViewport()||this.menuService.showHeaderContextMenu(void 0,e,n)}mockContextMenuForIPad(e){if(!UM())return;const t=new kI(this.eGui);this.addManagedListener(t,kI.EVENT_LONG_TAP,(t=>{e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((()=>t.destroy()))}};MT([xD(\"headerNavigationService\")],yL.prototype,\"headerNavigationService\",2),MT([xD(\"focusService\")],yL.prototype,\"focusService\",2),MT([xD(\"columnModel\")],yL.prototype,\"columnModel\",2),MT([xD(\"ctrlsService\")],yL.prototype,\"ctrlsService\",2),MT([xD(\"filterManager\")],yL.prototype,\"filterManager\",2),MT([xD(\"menuService\")],yL.prototype,\"menuService\",2);var bL=class e extends Lk{constructor(){super(e.TEMPLATE)}postConstruct(){const e={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setHeightAndMinHeight:e=>{this.getGui().style.height=e,this.getGui().style.minHeight=e}};this.createManagedBean(new yL).setComp(e,this.getGui(),this.getFocusableElement());const t=e=>{this.createManagedBean(e),this.appendChild(e)};t(new mL(\"left\")),t(new mL(null)),t(new mL(\"right\"))}};bL.TEMPLATE='<div class=\"ag-header\" role=\"presentation\"/>',MT([CD],bL.prototype,\"postConstruct\",1);var wL=bL,CL=class extends vR{addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0};return this.dragService.addDragSource(t),()=>this.dragService.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)}setResizeIcons(){const e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}};MT([xD(\"dragService\")],CL.prototype,\"dragService\",2),MT([xD(\"ctrlsService\")],CL.prototype,\"ctrlsService\",2),CL=MT([ED(\"horizontalResizeService\")],CL);var SL=class extends vR{hideActiveMenu(){this.hidePopup&&this.hidePopup()}showMenuAfterMouseEvent(e,t,n){this.showPopup(e,(r=>{this.popupService.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:r})}),n,t.target,this.menuService.isLegacyMenuEnabled())}showMenuAfterButtonClick(e,t,n){let r=-1,i=\"left\";const o=this.menuService.isLegacyMenuEnabled();!o&&this.gridOptionsService.get(\"enableRtl\")&&(r=1,i=\"right\");let a=o?void 0:4*r,s=o?void 0:4;this.showPopup(e,(r=>{this.popupService.positionPopupByComponent({type:n,eventSource:t,ePopup:r,nudgeX:a,nudgeY:s,alignSide:i,keepWithinBounds:!0,position:\"under\",column:e})}),n,t,o)}showPopup(e,t,n,r,i){const o=e?this.filterManager.getOrCreateFilterWrapper(e,\"COLUMN_MENU\"):void 0;if(!o||!e)throw new Error(\"AG Grid - unable to show popup filter, filter instantiation failed\");const a=document.createElement(\"div\");let s;JR(a,\"presentation\"),a.classList.add(\"ag-menu\"),i||a.classList.add(\"ag-filter-menu\"),this.tabListener=this.addManagedListener(a,\"keydown\",(e=>this.trapFocusWithin(e,a))),o.guiPromise.then((e=>a.appendChild(e)));const l=this.menuService.isColumnMenuAnchoringEnabled()?null!=r?r:this.ctrlsService.getGridBodyCtrl().getGui():void 0,c=this.localeService.getLocaleTextFunc(),d=i&&\"columnFilter\"!==n?c(\"ariaLabelColumnMenu\",\"Column Menu\"):c(\"ariaLabelColumnFilter\",\"Column Filter\"),u=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:t=>{e.setMenuVisible(!1,\"contextMenu\");const i=t instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),i&&r&&PO(r)){const e=this.focusService.findTabbableParent(r);e&&e.focus()}var a;null==(a=o.filterPromise)||a.then((e=>{var t;return null==(t=null==e?void 0:e.afterGuiDetached)?void 0:t.call(e)})),this.dispatchVisibleChangedEvent(!1,n,e)},positionCallback:()=>t(a),anchorToElement:l,ariaLabel:d});u&&(this.hidePopup=s=u.hideFunc),o.filterPromise.then((e=>{t(a),e.afterGuiAttached&&e.afterGuiAttached({container:n,hidePopup:s})})),e.setMenuVisible(!0,\"contextMenu\"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==lk.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){const r={type:CR.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:e,switchingTab:!1,key:t,column:null!=n?n:null};this.eventService.dispatchEvent(r)}isMenuEnabled(e){var t;return e.isFilterAllowed()&&(null!=(t=e.getColDef().menuTabs)?t:[\"filterMenuTab\"]).includes(\"filterMenuTab\")}showMenuAfterContextMenuEvent(){}};MT([xD(\"filterManager\")],SL.prototype,\"filterManager\",2),MT([xD(\"popupService\")],SL.prototype,\"popupService\",2),MT([xD(\"focusService\")],SL.prototype,\"focusService\",2),MT([xD(\"ctrlsService\")],SL.prototype,\"ctrlsService\",2),MT([xD(\"menuService\")],SL.prototype,\"menuService\",2),SL=MT([ED(\"filterMenuFactory\")],SL);var EL=(e=>(e.TAB_GUARD=\"ag-tab-guard\",e.TAB_GUARD_TOP=\"ag-tab-guard-top\",e.TAB_GUARD_BOTTOM=\"ag-tab-guard-bottom\",e))(EL||{}),xL=class extends vR{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1;const{comp:t,eTopGuard:n,eBottomGuard:r,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:o,focusInnerElement:a,onFocusIn:s,onFocusOut:l,shouldStopEventPropagation:c,onTabKeyDown:d,handleKeyDown:u,eFocusableElement:h}=e;this.comp=t,this.eTopGuard=n,this.eBottomGuard=r,this.providedFocusInnerElement=a,this.eFocusableElement=h,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!o,this.providedFocusIn=s,this.providedFocusOut=l,this.providedShouldStopEventPropagation=c,this.providedOnTabKeyDown=d,this.providedHandleKeyDown=u}postConstruct(){this.createManagedBean(new jk(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((e=>this.addManagedListener(e,\"focus\",this.onFocus.bind(this))))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute(\"tabIndex\")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gridOptionsService.get(\"tabIndex\");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty&&0===this.focusService.findFocusableElements(this.eFocusableElement,\".ag-tab-guard\").length)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);const t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){const t=this.gridOptionsService.getDocument(),n=this.focusService.findFocusableElements(t.body,null,!0),r=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===r)return;let i,o;e?(i=0,o=r):(i=r+1,o=n.length);const a=n.slice(i,o),s=this.gridOptionsService.get(\"tabIndex\");a.sort(((e,t)=>{const n=parseInt(e.getAttribute(\"tabindex\")||\"0\"),r=parseInt(t.getAttribute(\"tabindex\")||\"0\");return r===s?1:n===s?-1:0===n?1:0===r?-1:n-r})),a[e?a.length-1:0].focus()}onFocusIn(e){this.focusTrapActive||(this.providedFocusIn&&this.providedFocusIn(e),this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(e);if(this.focusTrapActive)return;if(e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout((()=>this.activateTabGuards()),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout((()=>{this.forcingFocusOut=!1,this.activateTabGuards()}))}isTabGuard(e){return e===this.eTopGuard||e===this.eBottomGuard}};MT([xD(\"focusService\")],xL.prototype,\"focusService\",2),MT([CD],xL.prototype,\"postConstruct\",1);var AL=class extends Lk{initialiseTabGuard(e){this.eTopGuard=this.createTabGuard(\"top\"),this.eBottomGuard=this.createTabGuard(\"bottom\"),this.eFocusableElement=this.getFocusableElement();const t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:e=>{t.forEach((t=>null!=e?t.setAttribute(\"tabindex\",e):t.removeAttribute(\"tabindex\")))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new xL({comp:n,focusTrapActive:!!e.focusTrapActive,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation,forceFocusOutWhenTabGuardsAreEmpty:e.forceFocusOutWhenTabGuardsAreEmpty}))}createTabGuard(e){const t=document.createElement(\"div\"),n=\"top\"===e?\"ag-tab-guard-top\":\"ag-tab-guard-bottom\";return t.classList.add(\"ag-tab-guard\",n),JR(t,\"presentation\"),t}addTabGuards(e,t){this.eFocusableElement.insertAdjacentElement(\"afterbegin\",e),this.eFocusableElement.insertAdjacentElement(\"beforeend\",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];kO(this.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t){YO(e)||(e=e.getGui());const{eBottomGuard:n}=this;n?n.insertAdjacentElement(\"beforebegin\",e):super.appendChild(e,t)}},TL=class e extends AL{constructor(t){super(e.getTemplate(t.cssClass)),this.items=[],this.tabbedItemScrollMap=new Map,this.params=t}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach((e=>this.addItem(e))),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc((()=>{var e,t,n;return null==(n=null==(t=null==(e=this.activeItem)?void 0:e.tabbedItem)?void 0:t.afterDetachedCallback)?void 0:n.call(t)}))}static getTemplate(e){return`<div class=\"ag-tabs ${e}\">\\n            <div ref=\"eHeader\"></div>\\n            <div ref=\"eBody\" role=\"presentation\" class=\"ag-tabs-body ${e?`${e}-body`:\"\"}\"></div>\\n        </div>`}setupHeader(){const{enableCloseButton:e,cssClass:t}=this.params,n=(e,n)=>{e.classList.add(`ag-tabs-${n}`),t&&e.classList.add(`${t}-${n}`)};e?(this.setupCloseButton(n),this.eTabHeader=this.gridOptionsService.getDocument().createElement(\"div\"),n(this.eHeader,\"header-wrapper\"),JR(this.eHeader,\"presentation\"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,JR(this.eTabHeader,\"tablist\"),n(this.eTabHeader,\"header\")}setupCloseButton(e){const t=this.gridOptionsService.getDocument(),n=t.createElement(\"button\");e(n,\"close-button\");const r=ak(\"close\",this.gridOptionsService,void 0,!0);iM(n,this.params.closeButtonAriaLabel),n.appendChild(r),this.addManagedListener(n,\"click\",(()=>{var e,t;return null==(t=(e=this.params).onCloseClicked)?void 0:t.call(e)}));const i=t.createElement(\"div\");e(i,\"close-button-wrapper\"),JR(i,\"presentation\"),i.appendChild(n),this.eHeader.appendChild(i),this.eCloseButton=n}handleKeyDown(e){const t=this.gridOptionsService.getDocument();switch(e.key){case lk.RIGHT:case lk.LEFT:if(!this.eTabHeader.contains(t.activeElement))return;const n=e.key===lk.RIGHT,r=this.gridOptionsService.get(\"enableRtl\"),i=this.items.indexOf(this.activeItem),o=n!==r?Math.min(i+1,this.items.length-1):Math.max(i-1,0);if(i===o)return;e.preventDefault();const a=this.items[o];this.showItemWrapper(a),a.eHeaderButton.focus();break;case lk.UP:case lk.DOWN:e.stopPropagation()}}onTabKeyDown(e){var t,n,r,i;if(e.defaultPrevented)return;const{focusService:o,eHeader:a,eBody:s,activeItem:l,params:c}=this,{suppressTrapFocus:d,enableCloseButton:u}=c,h=this.gridOptionsService.getDocument().activeElement,p=e.target,g=e.shiftKey;if(a.contains(h))return e.preventDefault(),void(u&&g&&!(null==(t=this.eCloseButton)?void 0:t.contains(h))?null==(n=this.eCloseButton)||n.focus():d&&g?null==(r=this.focusService.findFocusableElementBeforeTabGuard(this.gridOptionsService.getDocument().body,p))||r.focus():this.focusBody(e.shiftKey));let f=null;if(o.isTargetUnderManagedComponent(s,p)&&(g&&(f=this.focusService.findFocusableElementBeforeTabGuard(s,p)),f||d||(f=l.eHeaderButton)),!f&&s.contains(h)&&(f=o.findNextFocusableElement(s,!1,g),!f))return e.preventDefault(),void(d&&!g?this.forceFocusOutOfContainer(g):u&&!g?null==(i=this.eCloseButton)||i.focus():this.focusHeader());f&&(e.preventDefault(),f.focus())}focusInnerElement(e){e?this.focusHeader():this.focusBody(!0)}focusHeader(e){this.activeItem.eHeaderButton.focus({preventScroll:e})}focusBody(e){this.focusService.focusInto(this.eBody,e)}setAfterAttachedParams(e){this.afterAttachedParams=e}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(e){const t=document.createElement(\"span\");JR(t,\"tab\"),t.setAttribute(\"tabindex\",\"-1\"),t.appendChild(e.title),t.classList.add(\"ag-tab\"),this.eTabHeader.appendChild(t),iM(t,e.titleLabel);const n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener(\"click\",this.showItemWrapper.bind(this,n))}showItem(e){const t=this.items.find((t=>t.tabbedItem===e));t&&this.showItemWrapper(t)}showItemWrapper(e){var t,n,r,i,o,a;const{tabbedItem:s,eHeaderButton:l}=e;null==(n=(t=this.params).onItemClicked)||n.call(t,{item:s}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),kO(this.eBody),s.bodyPromise.then((e=>{this.eBody.appendChild(e);const t=!this.focusService.isKeyboardMode();if(this.params.suppressFocusBodyOnOpen||this.focusService.focusInto(this.eBody,!1,t),s.afterAttachedCallback&&s.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){const t=s.getScrollableContainer&&s.getScrollableContainer()||e;this.lastScrollListener=this.addManagedListener(t,\"scroll\",(()=>{this.tabbedItemScrollMap.set(s.name,t.scrollTop)}));const n=this.tabbedItemScrollMap.get(s.name);void 0!==n&&setTimeout((()=>{t.scrollTop=n}),0)}})),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove(\"ag-tab-selected\"),null==(a=(o=this.activeItem.tabbedItem).afterDetachedCallback)||a.call(o)),l.classList.add(\"ag-tab-selected\"),this.activeItem=e):null==(i=(r=this.params).onActiveItemClicked)||i.call(r)}};MT([xD(\"focusService\")],TL.prototype,\"focusService\",2),MT([Fk(\"eHeader\")],TL.prototype,\"eHeader\",2),MT([Fk(\"eBody\")],TL.prototype,\"eBody\",2),MT([CD],TL.prototype,\"postConstruct\",1);var DL=class extends vR{constructor(){super(...arguments),this.polyfillFunctions=[]}observeResize(e,t){const n=this.gridOptionsService.getWindow(),r=()=>{var n,r;let i=null!=(n=null==e?void 0:e.clientWidth)?n:0,o=null!=(r=null==e?void 0:e.clientHeight)?r:0,a=!0;const s=()=>{var n,r;if(a){const a=null!=(n=null==e?void 0:e.clientWidth)?n:0,l=null!=(r=null==e?void 0:e.clientHeight)?r:0;(a!==i||l!==o)&&(i=a,o=l,t()),this.doNextPolyfillTurn(s)}};return s(),()=>a=!1},i=this.gridOptionsService.get(\"suppressBrowserResizeObserver\");return n.ResizeObserver&&!i?(()=>{const r=new n.ResizeObserver(t);return r.observe(e),()=>r.disconnect()})():this.getFrameworkOverrides().wrapIncoming((()=>r()),\"resize-observer\")}doNextPolyfillTurn(e){this.polyfillFunctions.push(e),this.schedulePolyfill()}schedulePolyfill(){this.polyfillScheduled||(this.polyfillScheduled=!0,window.setTimeout((()=>{const e=this.polyfillFunctions;this.polyfillScheduled=!1,this.polyfillFunctions=[],e.forEach((e=>e()))}),50))}};DL=MT([ED(\"resizeObserverService\")],DL);var RL=class extends vR{constructor(){super(...arguments),this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(e){const t=this.gridOptionsService.get(\"pagination\");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){const e=this.paginationProxy.getCurrentPage();e!==this.lastPage&&(this.lastPage=e,this.scrollGoingDown=!0)}this.lastScrollTop=e}init(){this.useAnimationFrame=!this.gridOptionsService.get(\"suppressAnimationFrame\")}isOn(){return this.useAnimationFrame}verifyAnimationFrameOn(e){!1===this.useAnimationFrame&&console.warn(`AG Grid: AnimationFrameService.${e} called but animation frames are off`)}createTask(e,t,n){this.verifyAnimationFrameOn(n);const r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort(((e,n)=>e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder)),e.sorted=!0}addDestroyTask(e){this.verifyAnimationFrameOn(\"createTasksP3\"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn(\"executeFrame\");const t=this.createTasksP1,n=t.list,r=this.createTasksP2,i=r.list,o=this.destroyTasks,a=(new Date).getTime();let s=(new Date).getTime()-a;const l=e<=0,c=this.ctrlsService.getGridBodyCtrl();for(;l||s<e;){if(!c.getScrollFeature().scrollGridIfNeeded()){let e;if(n.length)this.sortTaskList(t),e=n.pop().task;else if(i.length)this.sortTaskList(r),e=i.pop().task;else{if(!o.length){this.cancelledTasks.clear();break}e=o.pop()}this.cancelledTasks.has(e)||e()}s=(new Date).getTime()-a}n.length||i.length||o.length?this.requestFrame():this.stopTicking()}stopTicking(){this.ticking=!1}flushAllFrames(){this.useAnimationFrame&&this.executeFrame(-1)}schedule(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)}requestAnimationFrame(e){const t=this.gridOptionsService.getWindow();t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)}isQueueEmpty(){return!this.ticking}debounce(e){let t=!1;return()=>{this.isOn()?t||(t=!0,this.addDestroyTask((()=>{t=!1,e()}))):window.setTimeout(e,0)}}};MT([xD(\"ctrlsService\")],RL.prototype,\"ctrlsService\",2),MT([xD(\"paginationProxy\")],RL.prototype,\"paginationProxy\",2),MT([CD],RL.prototype,\"init\",1),RL=MT([ED(\"animationFrameService\")],RL);var ML=class extends vR{postConstruct(){this.isClientSideRowModel=\"clientSide\"===this.rowModel.getType()}expandRows(e){if(!this.isClientSideRowModel)return;const t=new Set(e);this.rowModel.forEachNode((e=>{e.id&&t.has(e.id)&&(e.expanded=!0)})),this.onGroupExpandedOrCollapsed()}getExpandedRows(){const e=[];return this.rowModel.forEachNode((({expanded:t,id:n})=>{t&&n&&e.push(n)})),e}expandAll(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)}setRowNodeExpanded(e,t,n){e&&(n&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,n),e.setExpanded(t))}onGroupExpandedOrCollapsed(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:\"map\"})}};MT([xD(\"rowModel\")],ML.prototype,\"rowModel\",2),MT([CD],ML.prototype,\"postConstruct\",1),ML=MT([ED(\"expansionService\")],ML);var OL=class extends vR{postConstruct(){var e;this.activeMenuFactory=null!=(e=this.enterpriseMenuFactory)?e:this.filterMenuFactory}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,\"columnMenu\")}showFilterMenu(e){const t=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(t,e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,t,n)}showContextMenu(e){var t,n,r;const{column:i,anchorToElement:o,rowNode:a,value:s}=e;null==(r=this.contextMenuFactory)||r.onContextMenu(null!=(t=e.mouseEvent)?t:null,null!=(n=e.touchEvent)?n:null,null!=a?a:null,null!=i?i:null,s,o)}showColumnChooser(e){var t;null==(t=this.columnChooserFactory)||t.showColumnChooser(e)}hidePopupMenu(){var e;null==(e=this.contextMenuFactory)||e.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()}hideColumnChooser(){var e;null==(e=this.columnChooserFactory)||e.hideActiveColumnChooser()}isColumnMenuInHeaderEnabled(e){const{suppressMenu:t,suppressHeaderMenuButton:n}=e.getColDef();return!(null!=n?n:t)&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&this.filterManager.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(null==e?void 0:e.getColDef().suppressHeaderContextMenu)&&\"new\"===this.getColumnMenuType()}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(UM()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return this.filterManager.isFilterAllowed(e)&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isColumnMenuAnchoringEnabled(){return!this.isLegacyMenuEnabled()}areAdditionalColumnMenuItemsEnabled(){return\"new\"===this.getColumnMenuType()}isLegacyMenuEnabled(){return\"legacy\"===this.getColumnMenuType()}isFloatingFilterButtonEnabled(e){var t;const n=e.getColDef(),r=null==(t=n.floatingFilterComponentParams)?void 0:t.suppressFilterButton;return null!=r&&nD(\"As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead.\"),null==n.suppressFloatingFilterButton?!r:!n.suppressFloatingFilterButton}getColumnMenuType(){var e;return null!=(e=this.gridOptionsService.get(\"columnMenu\"))?e:\"legacy\"}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gridOptionsService.get(\"suppressMenuHide\");return this.isLegacyMenuEnabled()?e:!this.gridOptionsService.exists(\"suppressMenuHide\")||e}showColumnMenuCommon(e,t,n,r){const{column:i,positionBy:o}=t;if(\"button\"===o){const{buttonElement:o}=t;e.showMenuAfterButtonClick(i,o,n,r)}else if(\"mouse\"===o){const{mouseEvent:o}=t;e.showMenuAfterMouseEvent(i,o,n,r)}else i&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(i,\"auto\"),this.animationFrameService.requestAnimationFrame((()=>{const t=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()).getHeaderCtrlForColumn(i);e.showMenuAfterButtonClick(i,t.getAnchorElementForMenu(r),n,!0)})))}};MT([AD(\"enterpriseMenuFactory\")],OL.prototype,\"enterpriseMenuFactory\",2),MT([xD(\"filterMenuFactory\")],OL.prototype,\"filterMenuFactory\",2),MT([AD(\"contextMenuFactory\")],OL.prototype,\"contextMenuFactory\",2),MT([xD(\"ctrlsService\")],OL.prototype,\"ctrlsService\",2),MT([xD(\"animationFrameService\")],OL.prototype,\"animationFrameService\",2),MT([AD(\"columnChooserFactory\")],OL.prototype,\"columnChooserFactory\",2),MT([xD(\"filterManager\")],OL.prototype,\"filterManager\",2),MT([CD],OL.prototype,\"postConstruct\",1),OL=MT([ED(\"menuService\")],OL);var kL=class extends vR{postConstruct(){this.ctrlsService.whenReady((e=>{this.centerRowContainerCtrl=e.centerRowContainerCtrl}))}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(n),this.addElementsToContainerAndGetWidth(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1}addElementsToContainerAndGetWidth(e){const t=document.createElement(\"form\");t.style.position=\"fixed\";const n=this.centerRowContainerCtrl.getContainerElement();e.forEach((e=>this.cloneItemIntoDummy(e,t))),n.appendChild(t);const r=t.offsetWidth;return n.removeChild(t),r+this.getAutoSizePadding()}getAutoSizePadding(){return this.gridOptionsService.get(\"autoSizePadding\")}getHeaderCellForColumn(e){let t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((n=>{const r=n.getHtmlElementForColumnHeader(e);null!=r&&(t=r)})),t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width=\"\",n.style.position=\"static\",n.style.left=\"\";const r=document.createElement(\"div\"),i=r.classList;[\"ag-header-cell\",\"ag-header-group-cell\"].some((e=>n.classList.contains(e)))?(i.add(\"ag-header\",\"ag-header-row\"),r.style.position=\"static\"):i.add(\"ag-row\");let o=e.parentElement;for(;o;){if([\"ag-header-row\",\"ag-row\"].some((e=>o.classList.contains(e)))){for(let e=0;e<o.classList.length;e++){const t=o.classList[e];\"ag-row-position-absolute\"!=t&&i.add(t)}break}o=o.parentElement}r.appendChild(n),t.appendChild(r)}};MT([xD(\"rowRenderer\")],kL.prototype,\"rowRenderer\",2),MT([xD(\"ctrlsService\")],kL.prototype,\"ctrlsService\",2),MT([xD(\"rowCssClassCalculator\")],kL.prototype,\"rowCssClassCalculator\",2),MT([CD],kL.prototype,\"postConstruct\",1),kL=MT([ED(\"autoWidthCalculator\")],kL);var IL=class extends vR{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyRowCtrls=[],this.containerHeight=0}postConstruct(){this.isClientSide=\"clientSide\"===this.rowModel.getType(),this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl}))}getStickyRowCtrls(){return this.stickyRowCtrls}checkStickyRows(){let e=0;if(!this.gridOptionsService.isGroupRowsSticky())return this.refreshNodesAndContainerHeight([],e);const t=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),r=r=>{var i,o,a;let s;if(t.push(r),this.isClientSide){let e=r;for(;e.isExpandable()&&e.expanded;)if(e.master)e=e.detailNode;else if(e.childrenAfterSort){if(0===e.childrenAfterSort.length)break;e=HD(e.childrenAfterSort)}s=e.rowTop+e.rowHeight}else if(r.master)s=r.detailNode.rowTop+r.detailNode.rowHeight;else{const e=null==(i=r.childStore)?void 0:i.getStoreBounds();s=(null!=(o=null==e?void 0:e.heightPx)?o:0)+(null!=(a=null==e?void 0:e.topPx)?a:0)}const l=n+e+r.rowHeight;r.stickyRowTop=s<l?e+(s-l):e,e=0,t.forEach((t=>{const n=t.stickyRowTop+t.rowHeight;e<n&&(e=n)}))};let i=0;for(;;){const o=n+e,a=this.rowModel.getRowIndexAtPixel(o),s=this.rowModel.getRow(a);if(null==s)break;if(s.level<0)break;if(100==i++)break;const l=[];let c=s.parent;for(;c.level>=0;)l.push(c),c=c.parent;const d=l.reverse().find((e=>t.indexOf(e)<0&&e.displayed));if(d)r(d);else{if(!(s.isExpandable()&&s.expanded&&s.rowTop<o))break;r(s)}}return this.refreshNodesAndContainerHeight(t,e)}refreshStickyNode(e){const t=[];for(let n=0;n<this.stickyRowCtrls.length;n++){const r=this.stickyRowCtrls[n].getRowNode();r!==e&&t.push(r)}this.refreshNodesAndContainerHeight(t,this.containerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(e,t){let n=!1;const r=this.stickyRowCtrls.filter((t=>-1===e.indexOf(t.getRowNode()))),i=e.filter((e=>-1===this.stickyRowCtrls.findIndex((t=>t.getRowNode()===e))));(r.length||i.length)&&(n=!0);const o={};r.forEach((e=>{o[e.getRowNode().id]=e,this.stickyRowCtrls=this.stickyRowCtrls.filter((t=>t!==e))}));for(const e of Object.values(o))e.getRowNode().sticky=!1;this.destroyRowCtrls(o,!1);const a=i.map((e=>(e.sticky=!0,this.createRowCon(e,!1,!1))));return this.stickyRowCtrls.push(...a),this.stickyRowCtrls.forEach((e=>e.setRowTop(e.getRowNode().stickyRowTop))),this.stickyRowCtrls.sort(((e,t)=>t.getRowNode().rowIndex-e.getRowNode().rowIndex)),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t),n=!0),n}};MT([xD(\"rowModel\")],IL.prototype,\"rowModel\",2),MT([xD(\"rowRenderer\")],IL.prototype,\"rowRenderer\",2),MT([xD(\"ctrlsService\")],IL.prototype,\"ctrlsService\",2),MT([CD],IL.prototype,\"postConstruct\",1);var NL=class extends vR{constructor(){super(...arguments),this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{this.getAllCellCtrls().forEach((e=>e.onRangeSelectionChanged()))},t=()=>{this.getAllCellCtrls().forEach((e=>e.updateRangeBordersIfRangeCount()))},n=()=>{this.eventService.addEventListener(CR.EVENT_RANGE_SELECTION_CHANGED,e),this.eventService.addEventListener(CR.EVENT_COLUMN_MOVED,t),this.eventService.addEventListener(CR.EVENT_COLUMN_PINNED,t),this.eventService.addEventListener(CR.EVENT_COLUMN_VISIBLE,t)},r=()=>{this.eventService.removeEventListener(CR.EVENT_RANGE_SELECTION_CHANGED,e),this.eventService.removeEventListener(CR.EVENT_COLUMN_MOVED,t),this.eventService.removeEventListener(CR.EVENT_COLUMN_PINNED,t),this.eventService.removeEventListener(CR.EVENT_COLUMN_VISIBLE,t)};this.addDestroyFunc((()=>r())),this.addManagedPropertyListener(\"enableRangeSelection\",(e=>{e.currentValue?n():r()})),this.gridOptionsService.get(\"enableRangeSelection\")&&n()}}postConstruct(){this.ctrlsService.whenReady((()=>{this.gridBodyCtrl=this.ctrlsService.getGridBodyCtrl(),this.initialise()}))}initialise(){if(this.addManagedListener(this.eventService,CR.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListeners([\"domLayout\",\"embedFullWidthRows\"],(()=>this.onDomLayoutChanged())),this.addManagedPropertyListeners([\"suppressMaxRenderedRowRestriction\",\"rowBuffer\"],(()=>this.redraw())),this.addManagedPropertyListeners([\"suppressCellFocus\",\"getBusinessKeyForNode\",\"fullWidthCellRenderer\",\"fullWidthCellRendererParams\",\"rowStyle\",\"getRowStyle\",\"rowClass\",\"getRowClass\",\"rowClassRules\",\"groupRowRenderer\",\"groupRowRendererParams\",\"loadingCellRenderer\",\"loadingCellRendererParams\",\"detailCellRenderer\",\"detailCellRendererParams\",\"enableRangeSelection\",\"enableCellTextSelection\"],(()=>this.redrawRows())),this.gridOptionsService.isGroupRowsSticky()){const e=this.rowModel.getType();\"clientSide\"!==e&&\"serverSide\"!==e||(this.stickyRowFeature=this.createManagedBean(new IL(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout(\"print\"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.get(\"embedFullWidthRows\"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gridOptionsService.get(\"keepDetailRows\")){const e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new PL(t)}}getKeepDetailRowsCount(){return this.gridOptionsService.get(\"keepDetailRowsCount\")}getStickyTopRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]}updateAllRowCtrls(){const e=KT(this.rowCtrlsByRowIndex),t=KT(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}onCellFocusChanged(e){this.getAllCellCtrls().forEach((t=>t.onCellFocused(e))),this.getFullWidthRowCtrls().forEach((t=>t.onFullWidthRowFocused(e)))}registerCellEventListeners(){this.addManagedListener(this.eventService,CR.EVENT_CELL_FOCUSED,(e=>{this.onCellFocusChanged(e)})),this.addManagedListener(this.eventService,CR.EVENT_CELL_FOCUS_CLEARED,(()=>{this.onCellFocusChanged()})),this.addManagedListener(this.eventService,CR.EVENT_FLASH_CELLS,(e=>{this.getAllCellCtrls().forEach((t=>t.onFlashCells(e)))})),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_HOVER_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onColumnHover()))})),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onDisplayedColumnsChanged()))})),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(()=>{this.printLayout&&this.getAllCellCtrls().forEach((e=>e.onLeftChanged()))})),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,CR.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach((e=>e())),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.columnModel.getAllGridColumns().forEach((e=>{const t=t=>{this.getAllCellCtrls().forEach((n=>{n.getColumn()===e&&t(n)}))},n=()=>{t((e=>e.onLeftChanged()))},r=()=>{t((e=>e.onWidthChanged()))},i=()=>{t((e=>e.onFirstRightPinnedChanged()))},o=()=>{t((e=>e.onLastLeftPinnedChanged()))},a=()=>{t((e=>e.onColDefChanged()))};e.addEventListener(\"leftChanged\",n),e.addEventListener(\"widthChanged\",r),e.addEventListener(\"firstRightPinnedChanged\",i),e.addEventListener(\"lastLeftPinnedChanged\",o),e.addEventListener(\"colDefChanged\",a),this.destroyFuncsForColumnListeners.push((()=>{e.removeEventListener(\"leftChanged\",n),e.removeEventListener(\"widthChanged\",r),e.removeEventListener(\"firstRightPinnedChanged\",i),e.removeEventListener(\"lastLeftPinnedChanged\",o),e.removeEventListener(\"colDefChanged\",a)}))}))}onDomLayoutChanged(){const e=this.gridOptionsService.isDomLayout(\"print\"),t=e||this.gridOptionsService.get(\"embedFullWidthRows\"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsForColumn(e){const t=[];return this.getAllRowCtrls().forEach((n=>{const r=n.getCellElement(e);r&&t.push(r)})),t}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())}getTopRowCtrls(){return this.topRowCtrls}getCentreRowCtrls(){return this.allRowCtrls}getBottomRowCtrls(){return this.bottomRowCtrls}refreshFloatingRows(e,t){e.forEach((e=>{e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((t=>{const n=new CP(t,this.beans,!1,!1,this.printLayout);e.push(n)}))}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){var n;if(e.sticky)this.stickyRowFeature.refreshStickyNode(e);else{if(null==(n=this.cachedRowCtrls)?void 0:n.has(e))return void this.cachedRowCtrls.removeRow(e);{const t=t=>{const n=t[e.rowIndex];n&&n.getRowNode()===e&&(n.destroyFirstPass(),n.destroySecondPass(),t[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case\"top\":t(this.topRowCtrls);break;case\"bottom\":t(this.bottomRowCtrls);break;default:t(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){if(null!=e)return null==e||e.forEach((e=>this.redrawRow(e,!0))),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(e){const t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;const n=this.gridOptionsService.getDocument().activeElement,r=this.gridOptionsService.getDomData(n,yP.DOM_DATA_KEY_CELL_CTRL),i=this.gridOptionsService.getDomData(n,CP.DOM_DATA_KEY_ROW_CTRL);return r||i?t:null}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&this.gridOptionsService.isAnimateRows(),i=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gridOptionsService.get(\"suppressScrollOnNewData\");t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()}updateContainerHeights(){if(this.printLayout)return void this.rowContainerHeightService.setModelHeight(null);let e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(\"AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.\");this.refreshInProgress=!0}releaseLockOnRefresh(){this.refreshInProgress=!1}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){e&&(this.focusService.setRestoreFocusedCell(e),this.onCellFocusChanged(this.beans.gridOptionsService.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:\"mock\"})))}stopEditing(e=!1){this.getAllRowCtrls().forEach((t=>{t.stopEditing(e)}))}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let r=0;r<n;r++){const n=t[r].getAllCellCtrls(),i=n.length;for(let t=0;t<i;t++)e.push(n[t])}return e}getAllRowCtrls(){const e=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],t=[...this.topRowCtrls,...this.bottomRowCtrls,...e];for(const e of Object.keys(this.rowCtrlsByRowIndex))t.push(this.rowCtrlsByRowIndex[e]);return t}addRenderedRowListener(e,t,n){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)}flashCells(e={}){this.getCellCtrls(e.rowNodes,e.columns).forEach((t=>t.flashCell(e)))}refreshCells(e={}){const t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((e=>e.refreshOrDestroyCell(t))),e.rowNodes&&(this.getRowCtrls(e.rowNodes).forEach((e=>{e.isFullWidth()&&(e.refreshFullWidth()||this.redrawRow(e.getRowNode(),!0))})),this.dispatchDisplayedRowsChanged(!1))}getCellRendererInstances(e){var t;const n=this.getCellCtrls(e.rowNodes,e.columns).map((e=>e.getCellRenderer())).filter((e=>null!=e));if(null==(t=e.columns)?void 0:t.length)return n;const r=[],i=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach((e=>{if(i&&!this.isRowInMap(e.getRowNode(),i))return;if(!e.isFullWidth())return;const t=e.getFullWidthCellRenderers();for(let e=0;e<t.length;e++){const n=t[e];null!=n&&r.push(n)}})),[...r,...n]}getCellEditorInstances(e){const t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((e=>{const n=e.getCellEditor();n&&t.push(n)})),t}getEditingCells(){const e=[];return this.getAllCellCtrls().forEach((t=>{if(t.isEditing()){const n=t.getCellPosition();e.push(n)}})),e}mapRowNodes(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach((e=>{const n=e.id;\"top\"===e.rowPinned?t.top[n]=e:\"bottom\"===e.rowPinned?t.bottom[n]=e:t.normal[n]=e})),t}isRowInMap(e,t){const n=e.id,r=e.rowPinned;return\"bottom\"===r?null!=t.bottom[n]:\"top\"===r?null!=t.top[n]:null!=t.normal[n]}getRowCtrls(e){const t=this.mapRowNodes(e),n=this.getAllRowCtrls();return e&&t?n.filter((e=>{const n=e.getRowNode();return this.isRowInMap(n,t)})):n}getCellCtrls(e,t){let n;NT(t)&&(n={},t.forEach((e=>{const t=this.columnModel.getGridColumn(e);NT(t)&&(n[t.getId()]=!0)})));const r=[];return this.getRowCtrls(e).forEach((e=>{e.getAllCellCtrls().forEach((e=>{const t=e.getColumn().getId();n&&!n[t]||r.push(e)}))})),r}destroy(){this.removeAllRowComps(),super.destroy()}removeAllRowComps(){const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}getRowsToRecycle(){const e=[];WT(this.rowCtrlsByRowIndex,((t,n)=>{null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);const t={};return WT(this.rowCtrlsByRowIndex,((e,n)=>{const r=n.getRowNode();t[r.id]=n})),this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach((e=>{const n=this.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(t),n.destroySecondPass()),delete this.rowCtrlsByRowIndex[e]}))}onBodyScroll(e){\"vertical\"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){const{afterScroll:t}=e;let n;this.stickyRowFeature&&WM()&&(n=this.getCellToRestoreFocusToAfterRefresh()||void 0);const r=this.firstRenderedRow,i=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let o=!1;this.stickyRowFeature&&(o=this.stickyRowFeature.checkStickyRows());const a=this.firstRenderedRow!==r||this.lastRenderedRow!==i;if((!t||o||a)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,t),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(t&&!o),null!=n)){const e=this.getCellToRestoreFocusToAfterRefresh();null!=n&&null==e&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const n={};e.forEach((e=>n[e]=!0));const r=Object.keys(this.rowCtrlsByRowIndex).filter((e=>!n[e]));this.removeRowCtrls(r,t)}calculateIndexesToDraw(e){let t=nO(this.firstRenderedRow,this.lastRenderedRow);const n=(e,n)=>{const r=n.getRowNode().rowIndex;null!=r&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(n)&&t.push(r)};WT(this.rowCtrlsByRowIndex,n),WT(e,n),t.sort(((e,t)=>e-t));const r=[];for(let e=0;e<t.length;e++){const n=t[e],i=this.paginationProxy.getRow(n);i&&!i.sticky&&r.push(n)}return r}recycleRows(e,t=!1,n=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(r,!t);const i=[];r.forEach((r=>{const o=this.createOrUpdateRowCtrl(r,e,t,n);NT(o)&&i.push(o)})),e&&(!n||this.gridOptionsService.get(\"suppressAnimationFrame\")||this.printLayout?this.destroyRowCtrls(e,t):this.beans.animationFrameService.addDestroyTask((()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}))),this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){const t={type:CR.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)}onDisplayedColumnsChanged(){const e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach((t=>{const n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=this.mapRowNodes(e);return this.getAllRowCtrls().filter((e=>{if(!e.isFullWidth())return!1;const n=e.getRowNode();return!(null!=t&&!this.isRowInMap(n,t))}))}createOrUpdateRowCtrl(e,t,n,r){let i,o=this.rowCtrlsByRowIndex[e];if(o||(i=this.paginationProxy.getRow(e),NT(i)&&NT(t)&&t[i.id]&&i.alreadyRendered&&(o=t[i.id],t[i.id]=null)),!o){if(i||(i=this.paginationProxy.getRow(e)),!NT(i))return;o=this.createRowCon(i,n,r)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=o,o}destroyRowCtrls(e,t){const n=[];WT(e,((e,r)=>{r&&(this.cachedRowCtrls&&r.isCacheable()?this.cachedRowCtrls.addRow(r):(r.destroyFirstPass(!t),t?(this.zombieRowCtrls[r.getInstanceId()]=r,n.push((()=>{r.destroySecondPass(),delete this.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),t&&(n.push((()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()})),aD(n))}getRowBuffer(){return this.gridOptionsService.get(\"rowBuffer\")}getRowBufferInPixels(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()}workOutFirstAndLastRowsToRender(){let e,t;if(this.rowContainerHeightService.updateOffset(),this.paginationProxy.isRowsToRender())if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{const n=this.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsService.get(\"suppressRowVirtualisation\");let o,a,s=!1;do{const e=this.paginationProxy.getPixelOffset(),{pageFirstPixel:t,pageLastPixel:l}=this.paginationProxy.getCurrentPagePixelRange(),c=this.rowContainerHeightService.getDivStretchOffset(),d=r.getScrollFeature().getVScrollPosition(),u=d.top,h=d.bottom;i?(o=t+c,a=l+c):(o=Math.max(u+e-n,t)+c,a=Math.min(h+e+n,l)+c),this.firstVisibleVPixel=Math.max(u+e,t)+c,s=this.ensureAllRowsInRangeHaveHeightsCalculated(o,a)}while(s);let l=this.paginationProxy.getRowIndexAtPixel(o),c=this.paginationProxy.getRowIndexAtPixel(a);const d=this.paginationProxy.getPageFirstRow(),u=this.paginationProxy.getPageLastRow();l<d&&(l=d),c>u&&(c=u),e=l,t=c}else e=0,t=-1;const n=this.gridOptionsService.isDomLayout(\"normal\"),r=this.gridOptionsService.get(\"suppressMaxRenderedRowRestriction\"),i=Math.max(this.getRowBuffer(),500);n&&!r&&t-e>i&&(t=e+i);const o=e!==this.firstRenderedRow,a=t!==this.lastRenderedRow;if(o||a){this.firstRenderedRow=e,this.lastRenderedRow=t;const n={type:CR.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(n)}}dispatchFirstDataRenderedEvent(){if(this.dataFirstRenderedFired)return;this.dataFirstRenderedFired=!0;const e={type:CR.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((()=>{this.beans.eventService.dispatchEvent(e)}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n}getFirstVisibleVerticalPixel(){return this.firstVisibleVPixel}getFirstVirtualRenderedRow(){return this.firstRenderedRow}getLastVirtualRenderedRow(){return this.lastRenderedRow}doNotUnVirtualiseRow(e){const t=!1,n=e.getRowNode(),r=this.focusService.isRowNodeFocused(n),i=e.isEditing(),o=n.detail;return(r||i||o)&&!!this.paginationProxy.isRowPresent(n)||t}createRowCon(e,t,n){const r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;const i=this.gridOptionsService.get(\"suppressAnimationFrame\"),o=n&&!i&&!this.printLayout;return new CP(e,this.beans,t,o,this.printLayout)}getRenderedNodes(){const e=this.rowCtrlsByRowIndex;return Object.keys(e).map((t=>e[t].getRowNode()))}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case\"top\":t=this.topRowCtrls[n];break;case\"bottom\":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find((e=>e.getRowNode().rowIndex===n))||null)}return t}getRowNode(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}}isRangeInRenderedViewport(e,t){if(null==e||null==t)return!1;const n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow||n)}};MT([xD(\"animationFrameService\")],NL.prototype,\"animationFrameService\",2),MT([xD(\"paginationProxy\")],NL.prototype,\"paginationProxy\",2),MT([xD(\"columnModel\")],NL.prototype,\"columnModel\",2),MT([xD(\"pinnedRowModel\")],NL.prototype,\"pinnedRowModel\",2),MT([xD(\"rowModel\")],NL.prototype,\"rowModel\",2),MT([xD(\"focusService\")],NL.prototype,\"focusService\",2),MT([xD(\"beans\")],NL.prototype,\"beans\",2),MT([xD(\"rowContainerHeightService\")],NL.prototype,\"rowContainerHeightService\",2),MT([xD(\"ctrlsService\")],NL.prototype,\"ctrlsService\",2),MT([CD],NL.prototype,\"postConstruct\",1),NL=MT([ED(\"rowRenderer\")],NL);var PL=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(null==e||null==e.id)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null}has(e){return null!=this.entriesMap[e.id]}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],KD(this.entriesList,n)}removeFromCache(e){const t=e.getRowNode().id;delete this.entriesMap[t],KD(this.entriesList,e)}getEntries(){return this.entriesList}},LL=class extends vR{formatValue(e,t,n,r,i=!0){let o,a=null;const s=e.getColDef();if(r?o=r:i&&(o=s.valueFormatter),o){const r=this.gridOptionsService.addGridCommonParams({value:n,node:t,data:t?t.data:null,colDef:s,column:e});a=\"function\"==typeof o?o(r):this.expressionService.evaluate(o,r)}else if(s.refData)return s.refData[n]||\"\";return null==a&&Array.isArray(n)&&(a=n.join(\", \")),a}};MT([xD(\"expressionService\")],LL.prototype,\"expressionService\",2),LL=MT([ED(\"valueFormatterService\")],LL);var FL=class extends vR{init(){this.setPinnedTopRowData(),this.setPinnedBottomRowData(),this.addManagedPropertyListener(\"pinnedTopRowData\",(()=>this.setPinnedTopRowData())),this.addManagedPropertyListener(\"pinnedBottomRowData\",(()=>this.setPinnedBottomRowData()))}isEmpty(e){return LT(\"top\"===e?this.pinnedTopRows:this.pinnedBottomRows)}isRowsToRender(e){return!this.isEmpty(e)}getRowAtPixel(e,t){const n=\"top\"===t?this.pinnedTopRows:this.pinnedBottomRows;if(LT(n))return 0;for(let t=0;t<n.length;t++){const r=n[t];if(r.rowTop+r.rowHeight-1>=e)return t}return n.length-1}setPinnedTopRowData(){const e=this.gridOptionsService.get(\"pinnedTopRowData\");this.pinnedTopRows=this.createNodesFromData(e,!0);const t={type:CR.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)}setPinnedBottomRowData(){const e=this.gridOptionsService.get(\"pinnedBottomRowData\");this.pinnedBottomRows=this.createNodesFromData(e,!1);const t={type:CR.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)}createNodesFromData(e,t){const n=[];if(e){let r=0;e.forEach(((e,i)=>{const o=new KI(this.beans);o.data=e;const a=t?KI.ID_PREFIX_TOP_PINNED:KI.ID_PREFIX_BOTTOM_PINNED;o.id=a+i,o.rowPinned=t?\"top\":\"bottom\",o.setRowTop(r),o.setRowHeight(this.gridOptionsService.getRowHeightForNode(o).height),o.setRowIndex(i),r+=o.rowHeight,n.push(o)}))}return n}getPinnedTopRowData(){return this.pinnedTopRows}getPinnedBottomRowData(){return this.pinnedBottomRows}getPinnedTopTotalHeight(){return this.getTotalHeight(this.pinnedTopRows)}getPinnedTopRowCount(){return this.pinnedTopRows?this.pinnedTopRows.length:0}getPinnedBottomRowCount(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0}getPinnedTopRow(e){return this.pinnedTopRows[e]}getPinnedBottomRow(e){return this.pinnedBottomRows[e]}forEachPinnedTopRow(e){LT(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)}forEachPinnedBottomRow(e){LT(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)}getPinnedBottomTotalHeight(){return this.getTotalHeight(this.pinnedBottomRows)}getTotalHeight(e){if(!e||0===e.length)return 0;const t=HD(e);return t.rowTop+t.rowHeight}};MT([xD(\"beans\")],FL.prototype,\"beans\",2),MT([CD],FL.prototype,\"init\",1),FL=MT([ED(\"pinnedRowModel\")],FL);var _L=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}setInactive(){this.active=!1}isActive(){return this.active}depthFirstSearchChangedPath(e,t){if(e.children)for(let n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)}depthFirstSearchEverything(e,t,n){if(e.childrenAfterGroup)for(let r=0;r<e.childrenAfterGroup.length;r++){const i=e.childrenAfterGroup[r];i.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,n):n&&t(i)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,n=!1){this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,n=0;for(;!this.mapToItems[t.id];){const e={rowNode:t,children:null};this.mapToItems[t.id]=e,n++,t=t.parent}return n}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let n=e;for(;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach((e=>this.nodeIdsToColumns[n.id][e.getId()]=!0)),n=n.parent}linkPathItems(e,t){let n=e;for(let e=0;e<t;e++){const e=this.mapToItems[n.id],t=this.mapToItems[n.parent.id];t.children||(t.children=[]),t.children.push(e),n=n.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const n=this.nodeIdsToColumns[e.id];return t.filter((e=>n[e.getId()]))}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const n=this.nodeIdsToColumns[e.id];return t.filter((e=>!n[e.getId()]))}},zL=class e extends vR{constructor(t){super(),this.state=e.STATE_WAITING_TO_LOAD,this.version=0,this.id=t}getId(){return this.id}load(){this.state=e.STATE_LOADING,this.loadFromDatasource()}getVersion(){return this.version}setStateWaitingToLoad(){this.version++,this.state=e.STATE_WAITING_TO_LOAD}getState(){return this.state}pageLoadFailed(t){this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)}success(e,t){this.successCommon(e,t)}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(t,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=e.STATE_LOADED,this.processServerResult(n))}dispatchLoadCompleted(t=!0){const n={type:e.EVENT_LOAD_COMPLETE,success:t,block:this};this.dispatchEvent(n)}};zL.EVENT_LOAD_COMPLETE=\"loadComplete\",zL.STATE_WAITING_TO_LOAD=\"needsLoading\",zL.STATE_LOADING=\"loading\",zL.STATE_LOADED=\"loaded\",zL.STATE_FAILED=\"failed\";var GL=zL,VL=class extends vR{constructor(){super(...arguments),this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();const e=this.gridOptionsService.get(\"blockLoadDebounceMillis\");e&&e>0&&(this.checkBlockToLoadDebounce=Tk.debounce(this.performCheckBlocksToLoad.bind(this),e))}setBeans(e){this.logger=e.create(\"RowNodeBlockLoader\")}getMaxConcurrentDatasourceRequests(){const e=this.gridOptionsService.get(\"maxConcurrentDatasourceRequests\");return null==e?2:e<=0?void 0:e}addBlock(e){this.blocks.push(e),e.addEventListener(GL.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Tk.removeFromArray(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:VL.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:VL.BLOCK_LOADER_FINISHED_EVENT})}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void this.logger.log(\"checkBlockToLoad: max loads exceeded\");const e=this.getAvailableLoadingCount(),t=this.blocks.filter((e=>e.getState()===GL.STATE_WAITING_TO_LOAD)).slice(0,e);this.registerLoads(t.length),t.forEach((e=>e.load())),this.printCacheStatus()}getBlockState(){if(this.gridOptionsService.isRowModelType(\"serverSide\"))return this.rowModel.getBlockStates();const e={};return this.blocks.forEach((t=>{const{id:n,state:r}=t.getBlockStateJson();e[n]=r})),e}printCacheStatus(){this.logger.isLogging()&&this.logger.log(`printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}isLoading(){return this.activeBlockLoadsCount>0}registerLoads(e){this.activeBlockLoadsCount+=e}getAvailableLoadingCount(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0}};VL.BLOCK_LOADED_EVENT=\"blockLoaded\",VL.BLOCK_LOADER_FINISHED_EVENT=\"blockLoaderFinished\",MT([xD(\"rowModel\")],VL.prototype,\"rowModel\",2),MT([CD],VL.prototype,\"postConstruct\",1),MT([OT(0,DD(\"loggerFactory\"))],VL.prototype,\"setBeans\",1),VL=MT([ED(\"rowNodeBlockLoader\")],VL);var BL=class extends vR{constructor(){super(...arguments),this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.pixelOffset=0,this.masterRowCount=0}postConstruct(){this.active=this.gridOptionsService.get(\"pagination\"),this.pageSizeFromGridOptions=this.gridOptionsService.get(\"paginationPageSize\"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,CR.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener(\"pagination\",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener(\"paginationPageSize\",this.onPageSizeGridOptionChanged.bind(this)),this.onModelUpdated()}ensureRowHeightsValid(e,t,n,r){const i=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return i&&this.calculatePages(),i}isPaginateChildRows(){return!(!this.gridOptionsService.get(\"groupRemoveSingleChildren\")&&!this.gridOptionsService.get(\"groupRemoveLowestSingleChildren\"))||this.gridOptionsService.get(\"paginateChildRows\")}onModelUpdated(e){this.calculatePages();const t={type:CR.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,newPageSize:!!e&&e.newPageSize,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)}onPaginationGridOptionChanged(){this.active=this.gridOptionsService.get(\"pagination\"),this.calculatePages();const e={type:CR.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)}onPageSizeGridOptionChanged(){this.setPageSize(this.gridOptionsService.get(\"paginationPageSize\"),\"gridOptions\")}goToPage(e){if(!this.active||this.currentPage===e||\"number\"!=typeof this.currentPage)return;this.currentPage=e;const t={type:CR.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,newPageSize:!1};this.onModelUpdated(t)}getPixelOffset(){return this.pixelOffset}getRow(e){return this.rowModel.getRow(e)}getRowNode(e){return this.rowModel.getRowNode(e)}getRowIndexAtPixel(e){return this.rowModel.getRowIndexAtPixel(e)}getCurrentPageHeight(){return PT(this.topRowBounds)||PT(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)}getCurrentPagePixelRange(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}}isRowPresent(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)}isEmpty(){return this.rowModel.isEmpty()}isRowsToRender(){return this.rowModel.isRowsToRender()}forEachNode(e){return this.rowModel.forEachNode(e)}forEachNodeOnPage(e){const t=this.getPageFirstRow(),n=this.getPageLastRow();for(let r=t;r<=n;r++){const t=this.getRow(r);t&&e(t)}}getType(){return this.rowModel.getType()}getRowBounds(e){const t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t}getPageFirstRow(){return this.topRowBounds?this.topRowBounds.rowIndex:-1}getPageLastRow(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1}getRowCount(){return this.rowModel.getRowCount()}getPageForIndex(e){return Math.floor(e/this.pageSize)}goToPageWithIndex(e){if(!this.active)return;const t=this.getPageForIndex(e);this.goToPage(t)}isRowInPage(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage}isLastPageFound(){return this.rowModel.isLastRowIndexKnown()}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return NT(this.pageSizeAutoCalculated)?this.pageSizeAutoCalculated:NT(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:NT(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:NT(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&this.onModelUpdated({type:CR.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0})}setPageSize(e,t){const n=this.pageSize;switch(t){case\"autoCalculated\":this.pageSizeAutoCalculated=e;break;case\"pageSizeSelector\":this.pageSizeFromPageSizeSelector=e,0!==this.currentPage&&this.goToFirstPage();break;case\"initialState\":this.pageSizeFromInitialState=e;break;case\"gridOptions\":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,0!==this.currentPage&&this.goToFirstPage()}if(n!==this.pageSize){const e={type:CR.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1,newPageSize:!0};this.onModelUpdated(e)}}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(NT(this.topRowBounds)?this.topRowBounds.rowTop:0)}setPixelOffset(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:CR.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)return void this.setZeroRows();const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();const t=this.pageSize*this.currentPage;let n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{const e=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=e-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){if(this.masterRowCount=this.rowModel.getRowCount(),0===this.masterRowCount)return void this.setZeroRows();const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}calculatedPagesNotActive(){this.setPageSize(this.masterRowCount,\"autoCalculated\"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1}};MT([xD(\"rowModel\")],BL.prototype,\"rowModel\",2),MT([CD],BL.prototype,\"postConstruct\",1),BL=MT([ED(\"paginationProxy\")],BL);var HL=class extends vR{processAllCellClasses(e,t,n,r){this.processClassRules(void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}processClassRules(e,t,n,r,i){if(null==t&&null==e)return;const o={},a={},s=(e,t)=>{e.split(\" \").forEach((e=>{\"\"!=e.trim()&&t(e)}))};if(t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const i=e[r],l=t[i];let c;\"string\"==typeof l?c=this.expressionService.evaluate(l,n):\"function\"==typeof l&&(c=l(n)),s(i,(e=>{c?o[e]=!0:a[e]=!0}))}}e&&i&&Object.keys(e).forEach((e=>s(e,(e=>{o[e]||(a[e]=!0)})))),i&&Object.keys(a).forEach(i),Object.keys(o).forEach(r)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let r;return r=\"function\"==typeof n?n(t):n,\"string\"==typeof r&&(r=[r]),r||[]}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach((e=>{n(e)}))}};MT([xD(\"expressionService\")],HL.prototype,\"expressionService\",2),HL=MT([ED(\"stylingService\")],HL);var jL=class extends rI{constructor(e){super(e,\"ag-toggle-button\")}setValue(e,t){return super.setValue(e,t),this.addOrRemoveCssClass(\"ag-selected\",this.getValue()),this}},UL=class extends nI{constructor(e){super(e,\"ag-text-area\",null,\"textarea\")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},WL=class extends mI{constructor(e){super(e,\"ag-date-field\",\"date\")}postConstruct(){super.postConstruct(),this.addManagedListener(this.eInput,\"wheel\",this.onWheel.bind(this));const e=GM();this.addManagedListener(this.eInput,\"mousedown\",(()=>{this.isDisabled()||e||this.eInput.focus()})),this.eInput.step=\"any\"}onWheel(e){document.activeElement===this.eInput&&e.preventDefault()}setMin(e){var t;const n=e instanceof Date?null!=(t=lO(null!=e?e:null,!1))?t:void 0:e;return this.min===n||(this.min=n,QO(this.eInput,\"min\",n)),this}setMax(e){var t;const n=e instanceof Date?null!=(t=lO(null!=e?e:null,!1))?t:void 0:e;return this.max===n||(this.max=n,QO(this.eInput,\"max\",n)),this}setStep(e){return this.step===e||(this.step=e,QO(this.eInput,\"step\",e)),this}getDate(){var e;if(this.eInput.validity.valid)return null!=(e=uO(this.getValue()))?e:void 0}setDate(e,t){this.setValue(lO(null!=e?e:null,!1),t)}},$L=class extends nI{constructor(e){super(e,\"ag-range-field\",\"range\")}postConstruct(){super.postConstruct();const{min:e,max:t,step:n}=this.config;null!=e&&this.setMinValue(e),null!=t&&this.setMaxValue(t),this.setStep(n||1)}addInputListeners(){this.addManagedListener(this.eInput,\"input\",(e=>{const t=e.target.value;this.setValue(t)}))}setMinValue(e){return this.min=e,this.eInput.setAttribute(\"min\",e.toString()),this}setMaxValue(e){return this.max=e,this.eInput.setAttribute(\"max\",e.toString()),this}setStep(e){return this.eInput.setAttribute(\"step\",e.toString()),this}setValue(e,t){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());const n=super.setValue(e,t);return this.eInput.value=e,n}},YL=class extends Lk{constructor(e,t){super('<div class=\"ag-rich-select-row\" role=\"presentation\"></div>'),this.params=e,this.wrapperEl=t}postConstruct(){this.addManagedListener(this.getGui(),\"click\",this.onClick.bind(this))}setState(e){let t=\"\";this.params.valueFormatter&&(t=this.params.valueFormatter(e)),this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),this.value=e}highlightString(e){const{parsedValue:t}=this;if(this.params.cellRenderer||!NT(t))return;let n=NT(e);if(n){const r=null==t?void 0:t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){const n=r+e.length,i=kR(t.slice(0,r),!0),o=kR(t.slice(r,n),!0),a=kR(t.slice(n));this.renderValueWithoutRenderer(`${i}<span class=\"ag-rich-select-row-text-highlight\">${o}</span>${a}`)}else n=!1}n||this.renderValueWithoutRenderer(t)}updateHighlighted(e){var t;const n=this.getGui(),r=`ag-rich-select-row-${this.getCompId()}`;null==(t=n.parentElement)||t.setAttribute(\"id\",r),e&&(pM(this.getParentComponent().getAriaElement(),r),this.wrapperEl.setAttribute(\"data-active-option\",r)),TM(n.parentElement,e),this.addOrRemoveCssClass(\"ag-rich-select-row-selected\",e)}populateWithoutRenderer(e,t){const n=this.gridOptionsService.getDocument(),r=this.getGui(),i=n.createElement(\"span\");i.style.overflow=\"hidden\",i.style.textOverflow=\"ellipsis\";const o=kR(NT(t)?t:e,!0);this.parsedValue=NT(o)?o:null,r.appendChild(i),this.renderValueWithoutRenderer(o),this.setTooltip({newTooltipText:this.parsedValue,shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})}renderValueWithoutRenderer(e){const t=this.getGui().querySelector(\"span\");t&&(t.innerHTML=NT(e)?e:\"&nbsp;\")}populateWithRenderer(e,t){let n,r;return this.params.cellRenderer&&(r=this.userComponentFactory.getCellRendererDetails(this.params,{value:e,valueFormatted:t,setTooltip:(e,t)=>{this.setTooltip({newTooltipText:e,shouldDisplayTooltip:t})}})),r&&(n=r.newAgStackInstance()),n&&ZO(n,this.getGui()),!!n&&(n.then((e=>{this.addDestroyFunc((()=>{this.getContext().destroyBean(e)}))})),!0)}onClick(){const e=this.getParentComponent(),t={type:CR.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};null==e||e.dispatchEvent(t)}};MT([xD(\"userComponentFactory\")],YL.prototype,\"userComponentFactory\",2),MT([CD],YL.prototype,\"postConstruct\",1);var KL=class e extends AL{constructor(t){super(e.getTemplate((null==t?void 0:t.cssIdentifier)||\"default\")),this.renderedRows=new Map,this.rowHeight=20,this.isHeightFromTheme=!0;const{cssIdentifier:n=\"default\",ariaRole:r=\"listbox\",listName:i}=t||{};this.cssIdentifier=n,this.ariaRole=r,this.listName=i}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e),focusInnerElement:e=>this.focusInnerElement(e),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)}),this.setAriaProperties(),this.addManagedListener(this.eventService,CR.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))}onGridStylesChanged(){this.rowHeight=this.getItemHeight(),this.refresh()}setAriaProperties(){const e=this.localeService.getLocaleTextFunc()(\"ariaDefaultListName\",this.listName||\"List\"),t=this.eContainer;JR(t,this.ariaRole),iM(t,e)}addResizeObserver(){const e=this.resizeObserverService.observeResize(this.getGui(),(()=>this.animationFrameService.requestAnimationFrame((()=>this.drawVirtualRows()))));this.addDestroyFunc(e)}focusInnerElement(e){this.focusRow(e?this.model.getRowCount()-1:0)}onFocusIn(e){const t=e.target;t.classList.contains(\"ag-virtual-list-item\")&&(this.lastFocusedRowIndex=nM(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){switch(e.key){case lk.UP:case lk.DOWN:this.navigate(e.key===lk.UP)&&e.preventDefault()}}onTabKeyDown(e){this.navigate(e.shiftKey)?e.preventDefault():(lR(e),this.forceFocusOutOfContainer(e.shiftKey))}navigate(e){if(null==this.lastFocusedRowIndex)return!1;const t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount()||(this.focusRow(t),0))}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(e){this.ensureIndexVisible(e),window.setTimeout((()=>{if(!this.isAlive())return;const t=this.renderedRows.get(e);t&&t.eDiv.focus()}),10)}getComponentAt(e){const t=this.renderedRows.get(e);return t&&t.rowComponent}forEachRenderedRow(e){this.renderedRows.forEach(((t,n)=>e(t.rowComponent,n)))}static getTemplate(e){return`<div class=\"ag-virtual-list-viewport ag-${e}-virtual-list-viewport\" role=\"presentation\">\\n                <div class=\"ag-virtual-list-container ag-${e}-virtual-list-container\" ref=\"eContainer\"></div>\\n            </div>`}getItemHeight(){return this.isHeightFromTheme?this.environment.getListItemHeight():this.rowHeight}ensureIndexVisible(e,t=!0){const n=this.model.getRowCount();if(\"number\"!=typeof e||e<0||e>=n)return console.warn(\"AG Grid: invalid row index for ensureIndexVisible: \"+e),!1;const r=e*this.rowHeight,i=r+this.rowHeight,o=this.getGui(),a=o.scrollTop,s=o.offsetHeight,l=a+s,c=t?0:this.rowHeight,d=l<i-c;if(a>r+c)return o.scrollTop=r,!0;if(d){const e=i-s;return o.scrollTop=e,!0}return!1}setComponentCreator(e){this.componentCreator=e}setComponentUpdater(e){this.componentUpdater=e}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(e){this.isHeightFromTheme=!1,this.rowHeight=e,this.refresh()}refresh(e){if(null==this.model||!this.isAlive())return;const t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+\"px\",pD((()=>this.eContainer.clientHeight>=t*this.rowHeight),(()=>{this.isAlive()&&(this.canSoftRefresh(e)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))}))}canSoftRefresh(e){return!!(e&&this.renderedRows.size&&\"function\"==typeof this.model.areRowsEqual&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach(((e,t)=>this.removeRow(t)))}drawVirtualRows(e){if(!this.isAlive()||!this.model)return;const t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight,i=Math.floor(n/this.rowHeight),o=Math.floor(r/this.rowHeight);this.ensureRowsRendered(i,o,e)}ensureRowsRendered(e,t,n){this.renderedRows.forEach(((n,r)=>{(r<e||r>t)&&r!==this.lastFocusedRowIndex&&this.removeRow(r)})),n&&this.refreshRows();for(let n=e;n<=t;n++)this.renderedRows.has(n)||n<this.model.getRowCount()&&this.insertRow(n)}insertRow(e){const t=this.model.getRow(e),n=document.createElement(\"div\");n.classList.add(\"ag-virtual-list-item\",`ag-${this.cssIdentifier}-virtual-list-item`),JR(n,\"tree\"===this.ariaRole?\"treeitem\":\"option\"),mM(n,this.model.getRowCount()),vM(n,e+1),n.setAttribute(\"tabindex\",\"-1\"),n.style.height=`${this.rowHeight}px`,n.style.top=this.rowHeight*e+\"px\";const r=this.componentCreator(t,n);r.addGuiEventListener(\"focusin\",(()=>this.lastFocusedRowIndex=e)),n.appendChild(r.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement(\"afterend\",n):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement(\"beforebegin\",n):this.eContainer.appendChild(n),this.renderedRows.set(e,{rowComponent:r,eDiv:n,value:t})}removeRow(e){const t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)}refreshRows(){const e=this.model.getRowCount();this.renderedRows.forEach(((t,n)=>{var r,i;if(n>=e)this.removeRow(n);else{const e=this.model.getRow(n);(null==(i=(r=this.model).areRowsEqual)?void 0:i.call(r,t.value,e))?this.componentUpdater(e,t.rowComponent):this.removeRow(n)}}))}addScrollListener(){this.addGuiEventListener(\"scroll\",(()=>this.drawVirtualRows()),{passive:!0})}setModel(e){this.model=e}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),super.destroy())}};MT([xD(\"resizeObserverService\")],KL.prototype,\"resizeObserverService\",2),MT([xD(\"animationFrameService\")],KL.prototype,\"animationFrameService\",2),MT([Fk(\"eContainer\")],KL.prototype,\"eContainer\",2),MT([CD],KL.prototype,\"postConstruct\",1);var qL=KL,QL=class extends Xk{constructor(e){var t,n;super(DT(TT({pickerAriaLabelKey:\"ariaLabelRichSelectField\",pickerAriaLabelValue:\"Rich Select Field\",pickerType:\"ag-list\",className:\"ag-rich-select\",pickerIcon:\"smallDown\",ariaRole:\"combobox\",template:null!=(t=null==e?void 0:e.template)?t:'\\n    <div class=\"ag-picker-field\" role=\"presentation\">\\n        <div ref=\"eLabel\"></div>\\n            <div ref=\"eWrapper\" class=\"ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed\">\\n            <div ref=\"eDisplayField\" class=\"ag-picker-field-display\"></div>\\n            <ag-input-text-field ref=\"eInput\" class=\"ag-rich-select-field-input\"></ag-input-text-field>\\n            <div ref=\"eIcon\" class=\"ag-picker-field-icon\" aria-hidden=\"true\"></div>\\n        </div>\\n    </div>',modalPicker:!1},e),{maxPickerHeight:null!=(n=null==e?void 0:e.maxPickerHeight)?n:\"calc(var(--ag-row-height) * 6.5)\"})),this.searchString=\"\",this.highlightedItem=-1,this.lastRowHovered=-1,this.searchStringCreator=null;const{cellRowHeight:r,value:i,valueList:o,searchStringCreator:a}=e||{};null!=r&&(this.cellRowHeight=r),void 0!==i&&(this.value=i),null!=o&&(this.values=o),a&&(this.searchStringCreator=a)}postConstruct(){super.postConstruct(),this.createLoadingElement(),this.createListComponent();const{allowTyping:e,placeholder:t}=this.config;e?(this.eInput.setAutoComplete(!1).setInputPlaceholder(t),this.eDisplayField.classList.add(\"ag-hidden\")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=this.gridOptionsService.get(\"tabIndex\");const{searchDebounceDelay:n=300}=this.config;this.clearSearchString=uD(this.clearSearchString,n),this.renderSelectedValue(),e&&(this.eInput.onValueChange((e=>this.searchTextFromString(e))),this.addManagedListener(this.eWrapper,\"focus\",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,\"focusout\",this.onWrapperFocusOut.bind(this))}createLoadingElement(){const e=this.gridOptionsService.getDocument(),t=this.localeService.getLocaleTextFunc(),n=e.createElement(\"div\");n.classList.add(\"ag-loading-text\"),n.innerText=t(\"loadingOoo\",\"Loading...\"),this.eLoading=n}createListComponent(){this.listComponent=this.createBean(new qL({cssIdentifier:\"rich-select\"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this)),this.listComponent.setComponentUpdater(((e,t)=>{})),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,CR.EVENT_FIELD_PICKER_VALUE_SELECTED,(e=>{this.onListValueSelected(e.value,e.fromEnterKey)}));const{cellRowHeight:e}=this;e&&this.listComponent.setRowHeight(e);const t=this.listComponent.getGui(),n=this.listComponent.getAriaElement();this.addManagedListener(t,\"mousemove\",this.onPickerMouseMove.bind(this)),this.addManagedListener(t,\"mousedown\",(e=>e.preventDefault())),t.classList.add(\"ag-rich-select-list\");const r=`ag-rich-select-list-${this.listComponent.getCompId()}`;n.setAttribute(\"id\",r),iM(n,this.localeService.getLocaleTextFunc()(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue)),RM(this.eWrapper,n)}renderSelectedValue(){const{value:e,eDisplayField:t,config:n}=this,{allowTyping:r,initialInputValue:i}=this.config,o=this.config.valueFormatter?this.config.valueFormatter(e):e;if(r)return void this.eInput.setValue(null!=i?i:o);let a,s;if(n.cellRenderer&&(a=this.userComponentFactory.getCellRendererDetails(this.config,{value:e,valueFormatted:o})),a&&(s=a.newAgStackInstance()),s)kO(t),ZO(s,t),s.then((e=>{this.addDestroyFunc((()=>this.getContext().destroyBean(e)))}));else{if(NT(this.value))t.innerText=o,t.classList.remove(\"ag-display-as-placeholder\");else{const{placeholder:e}=n;NT(e)?(t.innerHTML=`${kR(e)}`,t.classList.add(\"ag-display-as-placeholder\")):kO(t)}this.setTooltip({newTooltipText:null!=o?o:null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth})}}getCurrentValueIndex(){const{currentList:e,value:t}=this;if(null==t||!e)return-1;for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}highlightFilterMatch(){var e;null==(e=this.listComponent)||e.forEachRenderedRow(((e,t)=>{e.highlightString(this.searchString)}))}highlightSelectedValue(e){var t;null==e&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,null==(t=this.listComponent)||t.forEachRenderedRow(((t,n)=>{const r=-1!==e&&this.highlightedItem===n;t.updateHighlighted(r)}))}setRowHeight(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listComponent.setRowHeight(e)}createPickerComponent(){const{values:e}=this;return e&&this.setValueList({valueList:e}),this.listComponent}setSearchStringCreator(e){this.searchStringCreator=e}setValueList(e){const{valueList:t,refresh:n}=e;this.listComponent&&this.currentList!==t&&(this.currentList=t,this.listComponent.setModel({getRowCount:()=>t.length,getRow:e=>t[e],areRowsEqual:(e,t)=>e===t}),n&&(this.values?this.listComponent.refresh(!0):(this.values=t,this.isPickerDisplayed&&this.showCurrentValueInPicker())))}showPicker(){super.showPicker(),this.showCurrentValueInPicker(),this.displayOrHidePicker()}showCurrentValueInPicker(){var e,t;if(!this.listComponent)return;if(!this.currentList)return void(this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading));(null==(e=this.eLoading)?void 0:e.offsetParent)&&(null==(t=this.eLoading.parentElement)||t.removeChild(this.eLoading));const n=this.getCurrentValueIndex();-1!==n?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(n),this.listComponent.refresh(!0),this.highlightSelectedValue(n)):this.listComponent.refresh()}beforeHidePicker(){this.highlightedItem=-1,super.beforeHidePicker()}onWrapperFocus(){if(!this.eInput)return;const e=this.eInput.getFocusableElement();e.focus(),e.select()}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}buildSearchStringFromKeyboardEvent(e){let{key:t}=e;if(t===lk.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t=\"\";else if(!fk(e))return;e.preventDefault(),this.searchTextFromCharacter(t)}searchTextFromCharacter(e){this.searchString+=e,this.runSearch(),this.clearSearchString()}searchTextFromString(e){null==e&&(e=\"\"),this.searchString=e,this.runSearch()}buildSearchStrings(e){const{valueFormatter:t=(e=>e)}=this.config;let n;return\"number\"==typeof e[0]||\"string\"==typeof e[0]?n=e.map((e=>t(e))):\"object\"==typeof e[0]&&this.searchStringCreator&&(n=this.searchStringCreator(e)),n}getSuggestionsAndFilteredValues(e,t){let n=[],r=[];if(!e.length)return{suggestions:n,filteredValues:r};const{searchType:i=\"fuzzy\",filterList:o}=this.config;if(\"fuzzy\"===i){const e=tk(this.searchString,t,!0);n=e.values;const i=e.indices;if(o&&i.length)for(let e=0;e<i.length;e++)r.push(this.values[i[e]])}else n=t.filter(((e,t)=>{const n=e.toLocaleLowerCase(),a=this.searchString.toLocaleLowerCase(),s=\"match\"===i?n.startsWith(a):-1!==n.indexOf(a);return o&&s&&r.push(this.values[t]),s}));return{suggestions:n,filteredValues:r}}filterListModel(e){const{filterList:t}=this.config;t&&(this.setValueList({valueList:e,refresh:!0}),this.alignPickerToComponent())}runSearch(){var e,t;const{values:n}=this,r=this.buildSearchStrings(n);if(!r)return void this.highlightSelectedValue(-1);const{suggestions:i,filteredValues:o}=this.getSuggestionsAndFilteredValues(this.searchString,r),{filterList:a,highlightMatch:s,searchType:l=\"fuzzy\"}=this.config,c=o.length,d=!(!a||\"\"===this.searchString);if(this.filterListModel(d?o:n),i.length){const e=d?0:r.indexOf(i[0]);this.selectListItem(e)}else if(this.highlightSelectedValue(-1),!d||c)null==(e=this.listComponent)||e.ensureIndexVisible(0);else if(d){this.getAriaElement().removeAttribute(\"data-active-option\");const e=null==(t=this.listComponent)?void 0:t.getAriaElement();e&&pM(e,null)}s&&\"fuzzy\"!==l&&this.highlightFilterMatch(),this.displayOrHidePicker()}displayOrHidePicker(){var e;const t=null==(e=this.listComponent)?void 0:e.getGui(),n=!!this.currentList&&0===this.currentList.length;null==t||t.classList.toggle(\"ag-hidden\",n)}clearSearchString(){this.searchString=\"\"}selectListItem(e,t){!this.isPickerDisplayed||!this.currentList||!this.listComponent||e<0||e>=this.currentList.length||(this.listComponent.ensureIndexVisible(e,!t)&&!t&&this.listComponent.refresh(!0),this.highlightSelectedValue(e))}setValue(e,t,n){const r=this.currentList?this.currentList.indexOf(e):-1;return-1===r?this:(this.value=e,n||this.selectListItem(r),this.renderSelectedValue(),super.setValue(e,t))}createRowComponent(e){const t=new YL(this.config,this.eWrapper);t.setParentComponent(this.listComponent),this.getContext().createBean(t),t.setState(e);const{highlightMatch:n,searchType:r=\"fuzzy\"}=this.config;return n&&\"fuzzy\"!==r&&t.highlightString(this.searchString),t}getRowForMouseEvent(e){const{listComponent:t}=this;if(!t)return-1;const n=(null==t?void 0:t.getGui()).getBoundingClientRect(),r=t.getScrollTop(),i=e.clientY-n.top+r;return Math.floor(i/t.getRowHeight())}onPickerMouseMove(e){if(!this.listComponent)return;const t=this.getRowForMouseEvent(e);-1!==t&&t!=this.lastRowHovered&&(this.lastRowHovered=t,this.selectListItem(t,!0))}onNavigationKeyDown(e,t){e.preventDefault();const n=t===lk.DOWN;if(!this.isPickerDisplayed&&n)return void this.showPicker();const r=this.highlightedItem,i=-1===r?0:r+(n?1:-1);this.selectListItem(i)}onEnterKeyDown(e){this.isPickerDisplayed&&(e.preventDefault(),this.currentList&&this.onListValueSelected(this.currentList[this.highlightedItem],!0))}onTabKeyDown(){this.isPickerDisplayed&&this.currentList&&this.setValue(this.currentList[this.highlightedItem],!1,!0)}onListValueSelected(e,t){this.setValue(e,!1,!0),this.dispatchPickerEvent(e,t),this.hidePicker()}dispatchPickerEvent(e,t){const n={type:CR.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:t,value:e};this.dispatchEvent(n)}getFocusableElement(){const{allowTyping:e}=this.config;return e?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(e){const t=e.key,{allowTyping:n}=this.config;switch(t){case lk.LEFT:case lk.RIGHT:case lk.PAGE_HOME:case lk.PAGE_END:n||e.preventDefault();break;case lk.PAGE_UP:case lk.PAGE_DOWN:e.preventDefault();break;case lk.DOWN:case lk.UP:this.onNavigationKeyDown(e,t);break;case lk.ESCAPE:this.isPickerDisplayed&&(PO(this.listComponent.getGui())&&(e.preventDefault(),lR(e)),this.hidePicker());break;case lk.ENTER:this.onEnterKeyDown(e);break;case lk.TAB:this.onTabKeyDown();break;default:n||this.buildSearchStringFromKeyboardEvent(e)}}destroy(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,super.destroy()}};MT([xD(\"userComponentFactory\")],QL.prototype,\"userComponentFactory\",2),MT([Fk(\"eInput\")],QL.prototype,\"eInput\",2);var XL=class e extends qk{constructor(t){super(t,e.TEMPLATE),this.labelAlignment=\"top\"}init(){this.eSlider.addCssClass(\"ag-slider-field\");const{minValue:e,maxValue:t,textFieldWidth:n,step:r,value:i,onValueChange:o}=this.config;null!=e&&this.setMinValue(e),null!=t&&this.setMaxValue(t),null!=n&&this.setTextFieldWidth(n),null!=r&&this.setStep(r),null!=i&&this.setValue(i),null!=o&&this.onValueChange(o)}onValueChange(e){const t=CR.EVENT_FIELD_VALUE_CHANGED;return this.addManagedListener(this.eText,t,(()=>{const t=parseFloat(this.eText.getValue());this.eSlider.setValue(t.toString(),!0),e(t||0)})),this.addManagedListener(this.eSlider,t,(()=>{const t=this.eSlider.getValue();this.eText.setValue(t,!0),e(parseFloat(t))})),this}setSliderWidth(e){return this.eSlider.setWidth(e),this}setTextFieldWidth(e){return this.eText.setWidth(e),this}setMinValue(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this}setMaxValue(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this}getValue(){return this.eText.getValue()}setValue(e,t){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),t||this.dispatchEvent({type:CR.EVENT_FIELD_VALUE_CHANGED})),this}setStep(e){return this.eSlider.setStep(e),this.eText.setStep(e),this}};XL.TEMPLATE='<div class=\"ag-slider\">\\n            <label ref=\"eLabel\"></label>\\n            <div class=\"ag-wrapper ag-slider-wrapper\">\\n                <ag-input-range ref=\"eSlider\"></ag-input-range>\\n                <ag-input-number-field ref=\"eText\"></ag-input-number-field>\\n            </div>\\n        </div>',MT([Fk(\"eLabel\")],XL.prototype,\"eLabel\",2),MT([Fk(\"eSlider\")],XL.prototype,\"eSlider\",2),MT([Fk(\"eText\")],XL.prototype,\"eText\",2),MT([CD],XL.prototype,\"init\",1);var ZL=XL,JL=class e extends Lk{constructor(t={}){super(e.getTemplate(t)),this.params=t,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1;const{enabled:n,items:r,suppressEnabledCheckbox:i,expanded:o,suppressToggleExpandOnEnableChange:a,useToggle:s}=t;this.cssIdentifier=t.cssIdentifier||\"default\",this.enabled=null==n||n,this.items=r||[],this.useToggle=null!=s&&s,this.alignItems=t.alignItems||\"center\",this.expanded=null==o||o,null!=i&&(this.suppressEnabledCheckbox=i),null!=a&&(this.suppressToggleExpandOnEnableChange=a)}static getTemplate(e){const t=e.cssIdentifier||\"default\";return`\\n            <div class=\"ag-group ag-${t}-group\" role=\"presentation\">\\n                <div ref=\"eToolbar\" class=\"ag-group-toolbar ag-${t}-group-toolbar\">\\n                    <ag-checkbox ref=\"cbGroupEnabled\"></ag-checkbox>\\n                </div>\\n                <div ref=\"eContainer\" class=\"ag-group-container ag-group-container-${e.direction||\"vertical\"} ag-${t}-group-container\"></div>\\n            </div>\\n        `}postConstruct(){if(this.setupTitleBar(),this.items.length){const e=this.items;this.items=[],this.addItems(e)}const e=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e(\"enabled\",\"Enabled\")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);const{onEnableChange:t,suppressOpenCloseIcons:n}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(null!=n&&n),this.refreshChildDisplay(),yO(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange((e=>{this.setEnabled(e,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(e)})),null!=t&&this.onEnableChange(t)}refreshChildDisplay(){var e;yO(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),null==(e=this.eTitleBar)||e.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(e){this.alignItems!==e&&this.removeCssClass(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=e;const t=`ag-group-item-alignment-${this.alignItems}`;return this.addCssClass(t),this}toggleGroupExpand(t){var n;let r=!1;if((null==(n=this.eTitleBar)?void 0:n.isSuppressCollapse())&&!this.useToggle)t=!0,r=!0;else if(t=null!=t?t:!this.expanded,this.expanded===t)return this;return this.expanded=t,this.refreshChildDisplay(),yO(this.eContainer,t),r||this.dispatchEvent({type:t?e.EVENT_EXPANDED:e.EVENT_COLLAPSED}),this}addItems(e){e.forEach((e=>this.addItem(e)))}prependItem(e){this.insertItem(e,!0)}addItem(e){this.insertItem(e,!1)}insertItem(e,t){const n=this.eContainer,r=e instanceof Lk?e.getGui():e;r.classList.add(\"ag-group-item\",`ag-${this.cssIdentifier}-group-item`),t?(n.insertAdjacentElement(\"afterbegin\",r),this.items.unshift(r)):(n.appendChild(r),this.items.push(r))}hideItem(e,t){yO(this.items[t],!e)}getItemIndex(e){const t=e instanceof Lk?e.getGui():e;return this.items.indexOf(t)}setTitle(e){var t;return null==(t=this.eTitleBar)||t.setTitle(e),this}addCssClassToTitleBar(e){var t;null==(t=this.eTitleBar)||t.addCssClass(e)}dispatchEnableChangeEvent(t){const n={type:e.EVENT_ENABLE_CHANGE,enabled:t};this.dispatchEvent(n)}setEnabled(e,t,n){var r;return this.enabled=e,this.refreshDisabledStyles(),n||this.toggleGroupExpand(e),t||(this.cbGroupEnabled.setValue(e),null==(r=this.eToggle)||r.setValue(e)),this}isEnabled(){return this.enabled}onEnableChange(t){return this.addManagedListener(this,e.EVENT_ENABLE_CHANGE,(e=>t(e.enabled))),this}hideEnabledCheckbox(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(e){var t;return null==(t=this.eTitleBar)||t.hideOpenCloseIcons(e),this}refreshDisabledStyles(){var e;const t=!this.enabled;this.eContainer.classList.toggle(\"ag-disabled\",t),null==(e=this.eTitleBar)||e.refreshDisabledStyles(this.suppressEnabledCheckbox&&t),this.eContainer.classList.toggle(\"ag-disabled-group-container\",t)}setupTitleBar(){const e=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement(\"beforebegin\",e.getGui())}createDefaultTitleBar(){const e=this.createManagedBean(new nF(this.params));return this.eTitleBar=e,e.refreshOnExpand(this.expanded),this.addManagedListener(e,nF.EVENT_EXPAND_CHANGED,(e=>this.toggleGroupExpand(e.expanded))),e}createToggleTitleBar(){var e;const t=this.createManagedBean(new jL({value:this.enabled,label:this.params.title,labelAlignment:\"left\",labelWidth:\"flex\",onValueChange:e=>{this.setEnabled(e,!0),this.dispatchEnableChangeEvent(e)}}));return t.addCssClass(\"ag-group-title-bar\"),t.addCssClass(`ag-${null!=(e=this.params.cssIdentifier)?e:\"default\"}-group-title-bar ag-unselectable`),this.eToggle=t,this.toggleGroupExpand(this.enabled),t}};JL.EVENT_EXPANDED=\"expanded\",JL.EVENT_COLLAPSED=\"collapsed\",JL.EVENT_ENABLE_CHANGE=\"enableChange\",MT([Fk(\"eToolbar\")],JL.prototype,\"eToolbar\",2),MT([Fk(\"cbGroupEnabled\")],JL.prototype,\"cbGroupEnabled\",2),MT([Fk(\"eContainer\")],JL.prototype,\"eContainer\",2),MT([CD],JL.prototype,\"postConstruct\",1);var eF=JL,tF=class e extends Lk{constructor(t={}){super(e.getTemplate(t)),this.suppressOpenCloseIcons=!1;const{title:n,suppressOpenCloseIcons:r}=t;this.title=n,null!=r&&(this.suppressOpenCloseIcons=r)}static getTemplate(e){var t;const n=null!=(t=e.cssIdentifier)?t:\"default\";return`\\n            <div class=\"ag-group-title-bar ag-${n}-group-title-bar ag-unselectable\" role=\"button\">\\n                <span class=\"ag-group-title-bar-icon ag-${n}-group-title-bar-icon\" ref=\"eGroupOpenedIcon\" role=\"presentation\"></span>\\n                <span class=\"ag-group-title-bar-icon ag-${n}-group-title-bar-icon\" ref=\"eGroupClosedIcon\" role=\"presentation\"></span>\\n                <span ref=\"eTitle\" class=\"ag-group-title ag-${n}-group-title\"></span>\\n            </div>\\n        `}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild(ok(\"columnSelectClosed\",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(ok(\"columnSelectOpen\",this.gridOptionsService,null)),this.addManagedListener(this.getGui(),\"click\",(()=>this.dispatchExpandChanged())),this.addManagedListener(this.getGui(),\"keydown\",(e=>{switch(e.key){case lk.ENTER:case lk.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case lk.RIGHT:case lk.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===lk.RIGHT)}}))}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||gM(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;yO(this.eGroupOpenedIcon,t&&e),yO(this.eGroupClosedIcon,t&&!e)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(t){const n={type:e.EVENT_EXPAND_CHANGED,expanded:t};this.dispatchEvent(n)}setTitle(e){return this.eTitle.innerText=e||\"\",yO(this.getGui(),null!=e),this}hideOpenCloseIcons(e){return this.suppressOpenCloseIcons=e,e&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(e){const t=this.getGui();e?(t.classList.add(\"ag-disabled-group-title-bar\"),t.removeAttribute(\"tabindex\")):(t.classList.remove(\"ag-disabled-group-title-bar\"),\"string\"==typeof this.title?t.setAttribute(\"tabindex\",\"0\"):t.removeAttribute(\"tabindex\"))}};tF.EVENT_EXPAND_CHANGED=\"expandedChanged\",MT([Fk(\"eGroupOpenedIcon\")],tF.prototype,\"eGroupOpenedIcon\",2),MT([Fk(\"eGroupClosedIcon\")],tF.prototype,\"eGroupClosedIcon\",2),MT([Fk(\"eTitle\")],tF.prototype,\"eTitle\",2),MT([CD],tF.prototype,\"postConstruct\",1);var nF=tF,rF=class extends AL{constructor(e=0,t){super('<div class=\"ag-menu-list\" role=\"tree\"></div>'),this.level=e,this.menuItems=[],this.params=null!=t?t:{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.handleFocusIn(e),onFocusOut:e=>this.handleFocusOut(e)})}onTabKeyDown(e){const t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains(\"ag-focus-managed\")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)}handleKeyDown(e){switch(e.key){case lk.UP:case lk.RIGHT:case lk.DOWN:case lk.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case lk.ESCAPE:this.closeIfIsChild()&&lR(e)}}handleFocusIn(e){var t,n;const r=e.relatedTarget;(this.tabGuardCtrl.isTabGuard(r)||!this.getGui().contains(r)&&!(null==(n=null==(t=this.activeMenuItem)?void 0:t.getSubMenuGui())?void 0:n.contains(r)))&&(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(e){var t;const n=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(n)||(null==(t=this.activeMenuItem.getSubMenuGui())?void 0:t.contains(n))||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(e){null!=e&&Rk.all(e.map((e=>\"separator\"===e?Rk.resolve({eGui:this.createSeparator()}):\"string\"==typeof e?(console.warn(`AG Grid: unrecognised menu item ${e}`),Rk.resolve({eGui:null})):this.addItem(e)))).then((e=>{e.forEach((e=>{(null==e?void 0:e.eGui)&&(this.appendChild(e.eGui),e.comp&&this.menuItems.push(e.comp))}))}))}addItem(e){const t=this.createManagedBean(new aF);return t.init({menuItemDef:e,isAnotherSubMenuOpen:()=>this.menuItems.some((e=>e.isSubMenuOpen())),level:this.level,contextParams:this.params}).then((()=>(t.setParentComponent(this),this.addManagedListener(t,aF.EVENT_CLOSE_MENU,(e=>{this.dispatchEvent(e)})),this.addManagedListener(t,aF.EVENT_MENU_ITEM_ACTIVATED,(e=>{this.activeMenuItem&&this.activeMenuItem!==e.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=e.menuItem})),{comp:t,eGui:t.getGui()})))}activateFirstItem(){const e=this.menuItems.filter((e=>!e.isDisabled()))[0];e&&e.activate()}createSeparator(){return LO('\\n            <div class=\"ag-menu-separator\" aria-hidden=\"true\">\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n            </div>')}handleNavKey(e){switch(e){case lk.UP:case lk.DOWN:const t=this.findNextItem(e===lk.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsService.get(\"enableRtl\")?lk.RIGHT:lk.LEFT)?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return!!(t&&t instanceof aF)&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0)}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(e){const t=this.menuItems.filter((e=>!e.isDisabled()));if(!t.length)return;if(!this.activeMenuItem)return e?HD(t):t[0];let n;e&&t.reverse();let r=!1;for(let e=0;e<t.length;e++){const i=t[e];if(r){n=i;break}i===this.activeMenuItem&&(r=!0)}return r&&!n?t[0]:n||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}};MT([xD(\"focusService\")],rF.prototype,\"focusService\",2),MT([CD],rF.prototype,\"postConstruct\",1);var iF=class extends AL{constructor(e){super(),this.wrappedComponent=e,this.setTemplateFromElement(e.getGui())}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)})}handleKeyDown(e){e.key===lk.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout((()=>e.getGui().focus()),0)}};MT([CD],iF.prototype,\"postConstruct\",1);var oF=class e extends vR{constructor(){super(...arguments),this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}init(e){var t,n;const{menuItemDef:r,isAnotherSubMenuOpen:i,level:o,childComponent:a,contextParams:s}=e;return this.params=e.menuItemDef,this.level=o,this.isAnotherSubMenuOpen=i,this.childComponent=a,this.contextParams=s,this.cssClassPrefix=null!=(n=null==(t=this.params.menuItemParams)?void 0:t.cssClassPrefix)?n:\"ag-menu-option\",this.userComponentFactory.getMenuItemCompDetails(this.params,DT(TT({},r),{level:o,isAnotherSubMenuOpen:i,openSubMenu:e=>this.openSubMenu(e),closeSubMenu:()=>this.closeSubMenu(),closeMenu:e=>this.closeMenu(e),updateTooltip:(e,t)=>this.refreshTooltip(e,t),onItemActivated:()=>this.onItemActivated()})).newAgStackInstance().then((e=>{var t;this.menuItemComp=e;const n=null==(t=e.configureDefaults)?void 0:t.call(e);n&&this.configureDefaults(!0===n?void 0:n)}))}addListeners(e,t){(null==t?void 0:t.suppressClick)||this.addManagedListener(e,\"click\",(e=>this.onItemSelected(e))),(null==t?void 0:t.suppressKeyboardSelect)||this.addManagedListener(e,\"keydown\",(e=>{e.key!==lk.ENTER&&e.key!==lk.SPACE||(e.preventDefault(),this.onItemSelected(e))})),(null==t?void 0:t.suppressMouseDown)||this.addManagedListener(e,\"mousedown\",(e=>{e.stopPropagation(),e.preventDefault()})),(null==t?void 0:t.suppressMouseOver)||(this.addManagedListener(e,\"mouseenter\",(()=>this.onMouseEnter())),this.addManagedListener(e,\"mouseleave\",(()=>this.onMouseLeave())))}isDisabled(){return!!this.params.disabled}openSubMenu(t=!1){var n,r;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const i=LO('<div class=\"ag-menu\" role=\"presentation\"></div>');let o;this.eSubMenuGui=i;let a=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const e=this.createBean(new iF(this.childComponent));e.setParentComponent(this);const t=e.getGui(),n=\"mouseenter\",r=()=>this.cancelDeactivate();t.addEventListener(n,r),o=()=>t.removeEventListener(n,r),i.appendChild(t),this.childComponent.afterGuiAttached&&(a=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const n=this.createBean(new rF(this.level+1,this.contextParams));n.setParentComponent(this),n.addMenuItems(this.params.subMenu),i.appendChild(n.getGui()),this.addManagedListener(n,e.EVENT_CLOSE_MENU,(e=>this.dispatchEvent(e))),n.addGuiEventListener(\"mouseenter\",(()=>this.cancelDeactivate())),o=()=>this.destroyBean(n),t&&(a=()=>{n.activateFirstItem(),this.subMenuIsOpening=!1})}const s=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:i}),l=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:i,positionCallback:s,anchorToElement:this.eGui,ariaLabel:l(\"ariaLabelSubMenu\",\"SubMenu\"),afterGuiAttached:a});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{var e,t;c&&c.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),o(),null==(t=(e=this.menuItemComp).setExpanded)||t.call(e,!1),this.eSubMenuGui=void 0},null==(r=(n=this.menuItemComp).setExpanded)||r.call(n,!0)}setAriaExpanded(e){this.suppressAria||gM(this.eGui,e)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(e){var t,n;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),null==(n=(t=this.menuItemComp).setActive)||n.call(t,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout((()=>{this.isAlive()&&this.isActive&&this.openSubMenu()}),300),this.onItemActivated())}deactivate(){var e,t;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),null==(t=(e=this.menuItemComp).setActive)||t.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(e){this.parentComponent=e}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(e){var t,n;null==(n=(t=this.menuItemComp).select)||n.call(t),this.params.action?this.getFrameworkOverrides().wrapOutgoing((()=>this.params.action(this.gridOptionsService.addGridCommonParams(TT({},this.contextParams))))):this.openSubMenu(e&&\"keydown\"===e.type),this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect||this.closeMenu(e)}closeMenu(t){const n={type:e.EVENT_CLOSE_MENU,event:t};this.dispatchEvent(n)}onItemActivated(){const t={type:e.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(t)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((()=>this.activate(!0)),e.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((()=>this.deactivate()),e.ACTIVATION_DELAY):this.deactivate()}configureDefaults(e){var t,n,r;if(this.tooltip=this.params.tooltip,!this.menuItemComp)return void setTimeout((()=>this.configureDefaults(e)));let i=this.menuItemComp.getGui();const o=null==(n=(t=this.menuItemComp).getRootElement)?void 0:n.call(t);o&&((null==e?void 0:e.suppressRootStyles)||i.classList.add(\"ag-menu-option-custom\"),i=o),this.eGui=i,this.suppressRootStyles=!!(null==e?void 0:e.suppressRootStyles),this.suppressRootStyles||(i.classList.add(this.cssClassPrefix),null==(r=this.params.cssClasses)||r.forEach((e=>i.classList.add(e))),this.params.disabled&&i.classList.add(`${this.cssClassPrefix}-disabled`)),(null==e?void 0:e.suppressTooltip)||this.refreshTooltip(),this.suppressAria=!!(null==e?void 0:e.suppressAria),this.suppressAria||(JR(i,\"treeitem\"),dM(i,this.level+1),this.params.disabled&&uM(i,!0)),(null==e?void 0:e.suppressTabIndex)||i.setAttribute(\"tabindex\",\"-1\"),this.params.disabled||this.addListeners(i,e),this.suppressFocus=!!(null==e?void 0:e.suppressFocus)}refreshTooltip(e,t){this.tooltip=e,this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e&&this.menuItemComp&&(this.tooltipFeature=this.createBean(new Ik({getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>\"menu\",shouldDisplayTooltip:t})))}destroy(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),super.destroy()}};oF.EVENT_CLOSE_MENU=\"closeMenu\",oF.EVENT_MENU_ITEM_ACTIVATED=\"menuItemActivated\",oF.ACTIVATION_DELAY=80,MT([xD(\"popupService\")],oF.prototype,\"popupService\",2),MT([xD(\"userComponentFactory\")],oF.prototype,\"userComponentFactory\",2),MT([xD(\"beans\")],oF.prototype,\"beans\",2);var aF=oF,sF=class e extends Lk{constructor(t){super(e.getTemplate(t)),this.config=t,this.closable=!0}static getTemplate(e){const t=e.cssIdentifier||\"default\";return`<div class=\"ag-panel ag-${t}-panel\" tabindex=\"-1\">\\n            <div ref=\"eTitleBar\" class=\"ag-panel-title-bar ag-${t}-panel-title-bar ag-unselectable\">\\n                <span ref=\"eTitle\" class=\"ag-panel-title-bar-title ag-${t}-panel-title-bar-title\"></span>\\n                <div ref=\"eTitleBarButtons\" class=\"ag-panel-title-bar-buttons ag-${t}-panel-title-bar-buttons\"></div>\\n            </div>\\n            <div ref=\"eContentWrapper\" class=\"ag-panel-content-wrapper ag-${t}-panel-content-wrapper\"></div>\\n        </div>`}postConstruct(){const{component:e,closable:t,hideTitleBar:n,title:r,minWidth:i=250,width:o,minHeight:a=250,height:s,centered:l,popup:c,x:d,y:u}=this.config;this.positionableFeature=new $k(this.getGui(),{minWidth:i,width:o,minHeight:a,height:s,centered:l,x:d,y:u,popup:c,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const h=this.getGui();e&&this.setBodyComponent(e),n?yO(this.eTitleBar,!1):(r&&this.setTitle(r),this.setClosable(null!=t?t:this.closable)),this.addManagedListener(this.eTitleBar,\"mousedown\",(e=>{const t=this.gridOptionsService.getDocument();if(h.contains(e.relatedTarget)||h.contains(t.activeElement)||this.eTitleBarButtons.contains(e.target))return void e.preventDefault();const n=this.eContentWrapper.querySelector(\"button, [href], input, select, textarea, [tabindex]\");n&&n.focus()})),c&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height=\"0\")}renderComponent(){const e=this.getGui();e.focus(),this.close=()=>{e.parentElement.removeChild(e),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(e){this.positionableFeature.setHeight(e)}getWidth(){return this.positionableFeature.getWidth()}setWidth(e){this.positionableFeature.setWidth(e)}setClosable(t){if(t!==this.closable&&(this.closable=t),t){const t=this.closeButtonComp=new Lk(e.CLOSE_BTN_TEMPLATE);this.getContext().createBean(t);const n=t.getGui(),r=ak(\"close\",this.gridOptionsService);r.classList.add(\"ag-panel-title-bar-button-icon\"),n.appendChild(r),this.addTitleBarButton(t),t.addManagedListener(n,\"click\",this.onBtClose.bind(this))}else if(this.closeButtonComp){const e=this.closeButtonComp.getGui();e.parentElement.removeChild(e),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())}addTitleBarButton(e,t){const n=this.eTitleBarButtons,r=n.children,i=r.length;null==t&&(t=i),t=Math.max(0,Math.min(t,i)),e.addCssClass(\"ag-panel-title-bar-button\");const o=e.getGui();0===t?n.insertAdjacentElement(\"afterbegin\",o):t===i?n.insertAdjacentElement(\"beforeend\",o):r[t-1].insertAdjacentElement(\"afterend\",o),e.setParentComponent(this)}getBodyHeight(){return EO(this.eContentWrapper)}getBodyWidth(){return xO(this.eContentWrapper)}setTitle(e){this.eTitle.innerText=e}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));const e=this.getGui();e&&PO(e)&&this.close(),super.destroy()}};sF.CLOSE_BTN_TEMPLATE='<div class=\"ag-button\"></div>',MT([Fk(\"eContentWrapper\")],sF.prototype,\"eContentWrapper\",2),MT([Fk(\"eTitleBar\")],sF.prototype,\"eTitleBar\",2),MT([Fk(\"eTitleBarButtons\")],sF.prototype,\"eTitleBarButtons\",2),MT([Fk(\"eTitle\")],sF.prototype,\"eTitle\",2),MT([CD],sF.prototype,\"postConstruct\",1);var lF=sF;MT([xD(\"popupService\")],class extends lF{constructor(e){super(DT(TT({},e),{popup:!0})),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}postConstruct(){const e=this.getGui(),{movable:t,resizable:n,maximizable:r}=this.config;this.addCssClass(\"ag-dialog\"),super.postConstruct(),this.addManagedListener(e,\"focusin\",(t=>{this.popupService.bringPopupToFront(e)})),t&&this.setMovable(t),r&&this.setMaximizable(r),n&&this.setResizable(n)}renderComponent(){const e=this.getGui(),{alwaysOnTop:t,modal:n,title:r,afterGuiAttached:i}=this.config,o=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:t,ariaLabel:r||o(\"ariaLabelDialog\",\"Dialog\"),afterGuiAttached:i});a&&(this.close=a.hideFunc)}onClosed(e){var t,n;this.destroy(),null==(n=(t=this.config).closedCallback)||n.call(t,e)}toggleMaximize(){const e=this.positionableFeature.getPosition();if(this.isMaximized){const{x:e,y:t,width:n,height:r}=this.lastPosition;this.setWidth(n),this.setHeight(r),this.positionableFeature.offsetElement(e,t)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight(\"100%\"),this.setWidth(\"100%\");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){yO(this.maximizeIcon,!this.isMaximized),yO(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((e=>e())),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(e){this.positionableFeature.setResizable(e)}setMovable(e){this.positionableFeature.setMovable(e,this.eTitleBar)}setMaximizable(e){if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));const t=this.eTitleBar;if(!t||e===this.isMaximizable)return;const n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedListener(n.getGui(),\"click\",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(t,\"dblclick\",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,\"resize\",(()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}))}buildMaximizeAndMinimizeElements(){const e=this.maximizeButtonComp=this.createBean(new Lk('<div class=\"ag-dialog-button\"></span>')),t=e.getGui();return this.maximizeIcon=ak(\"maximize\",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add(\"ag-panel-title-bar-button-icon\"),this.minimizeIcon=ak(\"minimize\",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add(\"ag-panel-title-bar-button-icon\"),e}}.prototype,\"popupService\",2);var cF=0,dF=class extends vR{constructor(){super(...arguments),this.popupList=[]}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridCtrl=e.gridCtrl})),this.addManagedListener(this.eventService,CR.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))}getPopupParent(){return this.gridOptionsService.get(\"popupParent\")||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:n}=e,r=this.getPopupIndex(n);-1!==r&&(this.popupList[r].alignedToElement=t);const i=t.getBoundingClientRect(),o=this.getParentRect(),a=this.keepXYWithinBounds(n,i.top-o.top,0),s=n.clientWidth>0?n.clientWidth:200;n.style.minWidth=`${s}px`;const l=o.right-o.left-s;let c;function d(){return i.right-o.left-2}function u(){return i.left-o.left-s}this.gridOptionsService.get(\"enableRtl\")?(c=u(),c<0&&(c=d(),this.setAlignedStyles(n,\"left\")),c>l&&(c=0,this.setAlignedStyles(n,\"right\"))):(c=d(),c>l&&(c=u(),this.setAlignedStyles(n,\"right\")),c<0&&(c=0,this.setAlignedStyles(n,\"left\"))),n.style.left=`${c}px`,n.style.top=`${a}px`}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,eventSource:o,alignSide:a=\"left\",position:s=\"over\",column:l,rowNode:c,type:d}=e,u=o.getBoundingClientRect(),h=this.getParentRect(),p=this.getPopupIndex(t);-1!==p&&(this.popupList[p].alignedToElement=o),this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,updatePosition:()=>{let n,i=u.left-h.left;return\"right\"===a&&(i-=t.offsetWidth-u.width),\"over\"===s?(n=u.top-h.top,this.setAlignedStyles(t,\"over\")):(this.setAlignedStyles(t,\"under\"),n=\"under\"===this.shouldRenderUnderOrAbove(t,u,h,e.nudgeY||0)?u.top-h.top+u.height:u.top-t.offsetHeight-2*(r||0)-h.top),{x:i,y:n}},postProcessCallback:()=>this.callPostProcessPopup(d,t,o,null,l,c)})}shouldRenderUnderOrAbove(e,t,n,r){const i=n.bottom-t.bottom,o=t.top-n.top,a=e.offsetHeight+r;return i>a?\"under\":o>a||o>i?\"above\":\"under\"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(-1===n)return;const r=this.popupList[n],{alignedToElement:i}=r;i&&([\"right\",\"left\",\"over\",\"above\",\"under\"].forEach((t=>{i.classList.remove(`ag-has-popup-positioned-${t}`),e.classList.remove(`ag-popup-positioned-${t}`)})),t&&(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`)))}callPostProcessPopup(e,t,n,r,i,o){const a=this.gridOptionsService.getCallback(\"postProcessPopup\");a&&a({column:i,rowNode:o,ePopup:t,type:e,eventSource:n,mouseEvent:r})}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:r,nudgeY:i,skipObserver:o,updatePosition:a}=e,s={width:0,height:0},l=(o=!1)=>{let{x:l,y:c}=a();o&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,r&&(l+=r),i&&(c+=i),n&&(l=this.keepXYWithinBounds(t,l,1),c=this.keepXYWithinBounds(t,c,0)),t.style.left=`${l}px`,t.style.top=`${c}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const e=this.resizeObserverService.observeResize(t,(()=>l(!0)));setTimeout((()=>e()),dF.WAIT_FOR_POPUP_CONTENT_RESIZE)}}getActivePopups(){return this.popupList.map((e=>e.element))}getPopupList(){return this.popupList}getParentRect(){const e=this.gridOptionsService.getDocument();let t=this.getPopupParent();return t===e.body?t=e.documentElement:\"static\"===getComputedStyle(t).position&&(t=t.offsetParent),DO(t)}keepXYWithinBounds(e,t,n){const r=0===n,i=r?\"clientHeight\":\"clientWidth\",o=r?\"top\":\"left\",a=r?\"offsetHeight\":\"offsetWidth\",s=r?\"scrollTop\":\"scrollLeft\",l=this.gridOptionsService.getDocument(),c=l.documentElement,d=this.getPopupParent(),u=d.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect(),p=d===l.body,g=e[a];let f=p?(r?AO:TO)(c)+c[s]:d[i];p&&(f-=Math.abs(h[o]-u[o]));const m=f-g;return Math.min(Math.max(t,0),Math.abs(m))}addPopup(e){const t=this.gridOptionsService.getDocument(),{eChild:n,ariaLabel:r,alwaysOnTop:i,positionCallback:o,anchorToElement:a}=e;if(!t)return console.warn(\"AG Grid: could not find the document, document is empty\"),{hideFunc:()=>{}};const s=this.getPopupIndex(n);if(-1!==s)return{hideFunc:this.popupList[s].hideFunc};this.initialisePopupPosition(n);const l=this.createPopupWrapper(n,r,!!i),c=this.addEventListenersToPopup(DT(TT({},e),{wrapperEl:l}));return o&&o(),this.addPopupToPopupList(n,l,c,a),{hideFunc:c}}initialisePopupPosition(e){const t=this.getPopupParent().getBoundingClientRect();NT(e.style.top)||(e.style.top=-1*t.top+\"px\"),NT(e.style.left)||(e.style.left=-1*t.left+\"px\")}createPopupWrapper(e,t,n){const r=this.getPopupParent(),i=document.createElement(\"div\"),{allThemes:o}=this.environment.getTheme();return o.length&&i.classList.add(...o),i.classList.add(\"ag-popup\"),e.classList.add(this.gridOptionsService.get(\"enableRtl\")?\"ag-rtl\":\"ag-ltr\",\"ag-popup-child\"),e.hasAttribute(\"role\")||JR(e,\"dialog\"),iM(e,t),i.appendChild(e),r.appendChild(i),n?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),i}handleThemeChange(){const{allThemes:e}=this.environment.getTheme();for(const t of this.popupList){for(const e of Array.from(t.wrapper.classList))e.startsWith(\"ag-theme-\")&&t.wrapper.classList.remove(e);e.length&&t.wrapper.classList.add(...e)}}addEventListenersToPopup(e){const t=this.gridOptionsService.getDocument(),n=this.getPopupParent(),{wrapperEl:r,eChild:i,click:o,closedCallback:a,afterGuiAttached:s,closeOnEsc:l,modal:c}=e;let d=!1;const u=e=>{r.contains(t.activeElement)&&(e.key!==lk.ESCAPE||cR(e)||g({keyboardEvent:e}))},h=e=>g({mouseEvent:e}),p=e=>g({touchEvent:e}),g=(e={})=>{const{mouseEvent:o,touchEvent:s,keyboardEvent:l}=e;this.isEventFromCurrentPopup({mouseEvent:o,touchEvent:s},i)||d||(d=!0,n.removeChild(r),t.removeEventListener(\"keydown\",u),t.removeEventListener(\"mousedown\",h),t.removeEventListener(\"touchstart\",p),t.removeEventListener(\"contextmenu\",h),this.eventService.removeEventListener(CR.EVENT_DRAG_STARTED,h),a&&a(o||s||l),this.removePopupFromPopupList(i))};return s&&s({hidePopup:g}),window.setTimeout((()=>{l&&t.addEventListener(\"keydown\",u),c&&(t.addEventListener(\"mousedown\",h),this.eventService.addEventListener(CR.EVENT_DRAG_STARTED,h),t.addEventListener(\"touchstart\",p),t.addEventListener(\"contextmenu\",h))}),0),g}addPopupToPopupList(e,t,n,r){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:cF++,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r)}getPopupIndex(e){return this.popupList.findIndex((t=>t.element===e))}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(-1===n)return;const r=this.popupList[n];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then((e=>e&&e())),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter((t=>t.element!==e))}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:r,ePopup:i}=e,o=r.getBoundingClientRect(),a=n.top-o.top,s=n.left-o.left;let l=a,c=s;const d=i.style.top,u=parseInt(d.substring(0,d.length-1),10),h=i.style.left,p=parseInt(h.substring(0,h.length-1),10);return new Rk((n=>{this.getFrameworkOverrides().setInterval((()=>{const n=t.getBoundingClientRect(),o=r.getBoundingClientRect();if(0==o.top&&0==o.left&&0==o.height&&0==o.width)return void e.hidePopup();const d=n.top-o.top;if(d!=l){const e=this.keepXYWithinBounds(i,u+a-d,0);i.style.top=`${e}px`}l=d;const h=n.left-o.left;if(h!=c){const e=this.keepXYWithinBounds(i,p+s-h,1);i.style.left=`${e}px`}c=h}),200).then((e=>{n((()=>{null!=e&&window.clearInterval(e)}))}))}))}hasAnchoredPopup(){return this.popupList.some((e=>e.isAnchored))}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:r}=e,i=n||r;if(!i)return!1;const o=this.getPopupIndex(t);if(-1===o)return!1;for(let e=o;e<this.popupList.length;e++)if(hR(this.popupList[e].element,i))return!0;return this.isElementWithinCustomPopup(i.target)}isElementWithinCustomPopup(e){const t=this.gridOptionsService.getDocument();for(;e&&e!==t.body;){if(e.classList.contains(\"ag-custom-component-popup\")||null===e.parentElement)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains(\"ag-popup\")&&e.parentElement;)e=e.parentElement;return e.classList.contains(\"ag-popup\")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle(\"ag-always-on-top\",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(\".ag-popup\")),r=n.length,i=Array.prototype.slice.call(t.querySelectorAll(\".ag-popup.ag-always-on-top\")),o=i.length,a=this.getWrapper(e);if(!a||r<=1||!t.contains(e))return;const s=n.indexOf(a),l=a.querySelectorAll(\"div\"),c=[];for(l.forEach((e=>{0!==e.scrollTop&&c.push([e,e.scrollTop])})),o?a.classList.contains(\"ag-always-on-top\")?s!==r-1&&HD(i).insertAdjacentElement(\"afterend\",a):s!==r-o-1&&i[0].insertAdjacentElement(\"beforebegin\",a):s!==r-1&&HD(n).insertAdjacentElement(\"afterend\",a);c.length;){const e=c.pop();e[0].scrollTop=e[1]}}};dF.WAIT_FOR_POPUP_CONTENT_RESIZE=200,MT([xD(\"focusService\")],dF.prototype,\"focusService\",2),MT([xD(\"ctrlsService\")],dF.prototype,\"ctrlsService\",2),MT([xD(\"resizeObserverService\")],dF.prototype,\"resizeObserverService\",2),MT([CD],dF.prototype,\"postConstruct\",1),dF=MT([ED(\"popupService\")],dF);var uF=class extends Lk{constructor(){super('\\n        <div class=\"ag-autocomplete-row\" role=\"presentation\">\\n            <div class=\"ag-autocomplete-row-label\"></div>\\n        </div>'),this.hasHighlighting=!1}setState(e,t){this.value=e,this.render(),this.updateSelected(t)}updateSelected(e){this.addOrRemoveCssClass(\"ag-autocomplete-row-selected\",e)}setSearchString(e){var t;let n=!1;if(NT(e)){const r=null==(t=this.value)?void 0:t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){n=!0,this.hasHighlighting=!0;const t=r+e.length,i=kR(this.value.slice(0,r)),o=kR(this.value.slice(r,t)),a=kR(this.value.slice(t));this.getGui().lastElementChild.innerHTML=`${i}<b>${o}</b>${a}`}}!n&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){var e;this.getGui().lastElementChild.innerHTML=null!=(e=kR(this.value))?e:\"&nbsp;\"}},hF=class e extends zI{constructor(t){super(e.TEMPLATE),this.params=t,this.searchString=\"\"}destroy(){super.destroy()}init(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new qL({cssIdentifier:\"autocomplete\"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:e=>this.autocompleteEntries[e]});const e=this.virtualList.getGui();this.addManagedListener(e,\"click\",(()=>this.params.onConfirmed())),this.addManagedListener(e,\"mousemove\",this.onMouseMove.bind(this)),this.addManagedListener(e,\"mousedown\",(e=>e.preventDefault())),this.setSelectedValue(0)}onNavigationKeyDown(e,t){e.preventDefault();const n=this.autocompleteEntries.indexOf(this.selectedValue),r=t===lk.UP?n-1:n+1;this.checkSetSelectedValue(r)}setSearch(e){this.searchString=e,NT(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(e,t){let n,r=!1;const i=e.toLocaleLowerCase(),o=t.filter((e=>{const t=e.toLocaleLowerCase().indexOf(i),o=0===t,a=t>=0;return a&&(!n||!r&&o||r===o&&e.length<n.length)&&(n=e,r=o),a}));return!n&&o.length&&(n=o[0]),{topMatch:n,allMatches:o}}runSearch(){var e,t;const{autocompleteEntries:n}=this.params,r=n.map((e=>{var t;return null!=(t=e.displayValue)?t:e.key}));let i,o;if(this.params.useFuzzySearch)i=tk(this.searchString,r,!0).values,o=i.length?i[0]:void 0;else{const e=this.runContainsSearch(this.searchString,r);i=e.allMatches,o=e.topMatch}let a=n.filter((({key:e,displayValue:t})=>i.includes(null!=t?t:e)));if(!a.length&&this.selectedValue&&(null==(t=null==(e=this.params)?void 0:e.forceLastSelection)?void 0:t.call(e,this.selectedValue,this.searchString))&&(a=[this.selectedValue]),this.autocompleteEntries=a,this.virtualList.refresh(),!o)return;const s=i.indexOf(o);this.checkSetSelectedValue(s)}updateSearchInList(){this.virtualList.forEachRenderedRow((e=>e.setSearchString(this.searchString)))}checkSetSelectedValue(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)}setSelectedValue(e){const t=this.autocompleteEntries[e];this.selectedValue!==t&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow(((t,n)=>{t.updateSelected(e===n)})))}createRowComponent(e){var t;const n=new uF;return this.getContext().createBean(n),n.setState(null!=(t=e.displayValue)?t:e.key,e===this.selectedValue),n}onMouseMove(e){const t=this.virtualList.getGui().getBoundingClientRect(),n=this.virtualList.getScrollTop(),r=e.clientY-t.top+n,i=Math.floor(r/this.virtualList.getRowHeight());this.checkSetSelectedValue(i)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){var e;return this.autocompleteEntries.length&&null!=(e=this.selectedValue)?e:null}};hF.TEMPLATE='<div class=\"ag-autocomplete-list-popup\">\\n            <div ref=\"eList\" class=\"ag-autocomplete-list\"></div>\\n        <div>',MT([Fk(\"eList\")],hF.prototype,\"eList\",2),MT([CD],hF.prototype,\"init\",1);var pF=hF,gF=class e extends Lk{constructor(){super('\\n            <div class=\"ag-autocomplete\" role=\"presentation\">\\n                <ag-input-text-field ref=\"eAutocompleteInput\"></ag-input-text-field>\\n            </div>'),this.isListOpen=!1,this.lastPosition=0,this.valid=!0}postConstruct(){this.eAutocompleteInput.onValueChange((e=>this.onValueChanged(e))),this.eAutocompleteInput.getInputElement().setAttribute(\"autocomplete\",\"off\"),this.addGuiEventListener(\"keydown\",this.onKeyDown.bind(this)),this.addGuiEventListener(\"click\",this.updatePositionAndList.bind(this)),this.addDestroyFunc((()=>{this.destroyBean(this.autocompleteList)})),this.addGuiEventListener(\"focusout\",(()=>this.onFocusOut()))}onValueChanged(e){const t=IT(e);this.updateValue(t),this.updateAutocompleteList(t)}updateValue(t){this.updateLastPosition(),this.dispatchEvent({type:e.EVENT_VALUE_CHANGED,value:t}),this.validate(t)}updateAutocompleteList(e){var t,n,r,i;const o=null!=(n=null==(t=this.listGenerator)?void 0:t.call(this,e,this.lastPosition))?n:{enabled:!1};if(o.type&&o.type===(null==(r=this.autocompleteListParams)?void 0:r.type)||this.isListOpen&&this.closeList(),this.autocompleteListParams=o,null==(i=this.autocompleteListParams)?void 0:i.enabled){this.isListOpen||this.openList();const{searchString:e}=this.autocompleteListParams;this.autocompleteList.setSearch(null!=e?e:\"\")}else this.isListOpen&&this.closeList()}onKeyDown(e){const t=e.key;switch(this.updateLastPosition(),t){case lk.ENTER:this.onEnterKeyDown(e);break;case lk.TAB:this.onTabKeyDown(e);break;case lk.DOWN:case lk.UP:this.onUpDownKeyDown(e,t);break;case lk.LEFT:case lk.RIGHT:case lk.PAGE_HOME:case lk.PAGE_END:setTimeout((()=>{this.updatePositionAndList()}));break;case lk.ESCAPE:this.onEscapeKeyDown(e);break;case lk.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList())}}confirmSelection(){var t;const n=null==(t=this.autocompleteList)?void 0:t.getSelectedValue();n&&(this.closeList(),this.dispatchEvent({type:e.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:n,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())}onEnterKeyDown(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(e,t){var n;e.preventDefault(),this.isListOpen?null==(n=this.autocompleteList)||n.onNavigationKeyDown(e,t):this.forceOpenList()}onEscapeKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){var e;this.updateLastPosition(),this.updateAutocompleteList(null!=(e=this.eAutocompleteInput.getValue())?e:null)}setCaret(e,t){const n=this.gridOptionsService.getDocument();t&&n.activeElement===n.body&&this.eAutocompleteInput.getFocusableElement().focus();const r=this.eAutocompleteInput.getInputElement();r.setSelectionRange(e,e),e===r.value.length&&(r.scrollLeft=r.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){var e;this.lastPosition=null!=(e=this.eAutocompleteInput.getInputElement().selectionStart)?e:0}validate(t){var n;this.validator&&(this.validationMessage=this.validator(t),this.eAutocompleteInput.getInputElement().setCustomValidity(null!=(n=this.validationMessage)?n:\"\"),this.valid=!this.validationMessage,this.dispatchEvent({type:e.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new pF({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));const e=this.autocompleteList.getGui(),t={ePopup:e,type:\"autocomplete\",eventSource:this.getGui(),position:\"under\",alignSide:this.gridOptionsService.get(\"enableRtl\")?\"right\":\"left\",keepWithinBounds:!0},n=this.popupService.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:()=>this.popupService.positionPopupByComponent(t),ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:e.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})}getValue(){return IT(this.eAutocompleteInput.getValue())}setInputPlaceholder(e){return this.eAutocompleteInput.setInputPlaceholder(e),this}setInputAriaLabel(e){return this.eAutocompleteInput.setInputAriaLabel(e),this}setListAriaLabel(e){return this.listAriaLabel=e,this}setListGenerator(e){return this.listGenerator=e,this}setValidator(e){return this.validator=e,this}isValid(){return this.valid}setValue(e){const{value:t,position:n,silent:r,updateListOnlyIfOpen:i,restoreFocus:o}=e;this.eAutocompleteInput.setValue(t,!0),this.setCaret(null!=n?n:this.lastPosition,o),r||this.updateValue(t),i&&!this.isListOpen||this.updateAutocompleteList(t)}setForceLastSelection(e){return this.forceLastSelection=e,this}setInputDisabled(e){return this.eAutocompleteInput.setDisabled(e),this}};gF.EVENT_VALUE_CHANGED=\"eventValueChanged\",gF.EVENT_VALUE_CONFIRMED=\"eventValueConfirmed\",gF.EVENT_OPTION_SELECTED=\"eventOptionSelected\",gF.EVENT_VALID_CHANGED=\"eventValidChanged\",MT([xD(\"popupService\")],gF.prototype,\"popupService\",2),MT([Fk(\"eAutocompleteInput\")],gF.prototype,\"eAutocompleteInput\",2),MT([CD],gF.prototype,\"postConstruct\",1);var fF=gF,mF=class e extends Lk{constructor(e,t,n,r){super(),this.dragSourceDropTarget=e,this.ghost=t,this.horizontal=n,this.template=r}init(){var t;this.setTemplate(null!=(t=this.template)?t:e.TEMPLATE);const n=this.getGui();this.addElementClasses(n),this.addElementClasses(this.eDragHandle,\"drag-handle\"),this.addElementClasses(this.eText,\"text\"),this.addElementClasses(this.eButton,\"button\"),this.eDragHandle.appendChild(ak(\"columnDrag\",this.gridOptionsService)),this.eButton.appendChild(ak(\"cancel\",this.gridOptionsService)),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle(\"ag-column-select-column-readonly\",!this.isDraggable())}setupAria(){const e=this.localeService.getLocaleTextFunc(),t=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(t,e),iM(this.getGui(),t.join(\". \"))}addAdditionalAriaInstructions(e,t){if(this.isRemovable()){const n=t(\"ariaDropZoneColumnComponentDescription\",\"Press DELETE to remove\");e.push(n)}}setupTooltip(){const e=()=>{const e=this.getTooltip();this.setTooltip({newTooltipText:e})};e(),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,e)}getDragSourceId(){}getDefaultIconName(){return XI.ICON_NOT_ALLOWED}addDragSource(){const{dragAndDropService:e,eDragHandle:t}=this,n=this.createGetDragItem(),r=this.getDefaultIconName(),i={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:t,getDefaultIconName:()=>r,getDragItem:n,dragItemName:this.getDisplayName()};e.addDragSource(i,!0),this.addDestroyFunc((()=>e.removeDragSource(i)))}setupComponents(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass(\"ag-column-drop-cell-ghost\")}isRemovable(){return!0}refreshRemove(){yO(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();const t={type:e.EVENT_COLUMN_REMOVE};this.addGuiEventListener(\"keydown\",(e=>this.onKeyDown(e))),this.addManagedListener(this.eButton,\"click\",(e=>{this.dispatchEvent(t),e.stopPropagation()}));const n=new kI(this.eButton);this.addManagedListener(n,kI.EVENT_TAP,(()=>{this.dispatchEvent(t)})),this.addDestroyFunc(n.destroy.bind(n))}onKeyDown(t){t.key===lk.DELETE&&this.isRemovable()&&(t.preventDefault(),this.dispatchEvent({type:e.EVENT_COLUMN_REMOVE}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){const e=kR(this.getDisplayValue());this.eText.innerHTML=e}addElementClasses(e,t){t=t?`-${t}`:\"\";const n=this.horizontal?\"horizontal\":\"vertical\";e.classList.add(`ag-column-drop-cell${t}`,`ag-column-drop-${n}-cell${t}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}};mF.EVENT_COLUMN_REMOVE=\"columnRemove\",mF.TEMPLATE='<span role=\"option\">\\n          <span ref=\"eDragHandle\" class=\"ag-drag-handle ag-column-drop-cell-drag-handle\" role=\"presentation\"></span>\\n          <span ref=\"eText\" class=\"ag-column-drop-cell-text\" aria-hidden=\"true\"></span>\\n          <span ref=\"eButton\" class=\"ag-column-drop-cell-button\" role=\"presentation\"></span>\\n        </span>',MT([xD(\"dragAndDropService\")],mF.prototype,\"dragAndDropService\",2),MT([Fk(\"eText\")],mF.prototype,\"eText\",2),MT([Fk(\"eDragHandle\")],mF.prototype,\"eDragHandle\",2),MT([Fk(\"eButton\")],mF.prototype,\"eButton\",2),MT([CD],mF.prototype,\"init\",1);var vF=mF,yF=class e extends Lk{constructor(t){super('<div class=\"ag-unselectable\" role=\"presentation\"></div>'),this.horizontal=t,this.state=e.STATE_NOT_DRAGGING,this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=document.createElement(\"div\"),this.addElementClasses(this.ePillDropList,\"list\"),JR(this.ePillDropList,\"listbox\")}isHorizontal(){return this.horizontal}toggleResizable(e){this.positionableFeature.setResizable(!!e&&{bottom:!0}),this.resizeEnabled=e}isSourceEventFromTarget(e){const{dropZoneTarget:t,dragSource:n}=e;return t.contains(n.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach((e=>e())),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,kO(this.getGui()),kO(this.ePillDropList)}init(e){this.params=null!=e?e:{},this.createManagedBean(new jk(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new $k(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),iM(this.ePillDropList,this.getAriaLabel())}handleKeyDown(e){const t=!this.horizontal;let n=e.key===lk.DOWN,r=e.key===lk.UP;if(!t){const t=this.gridOptionsService.get(\"enableRtl\");n=!t&&e.key===lk.RIGHT||t&&e.key===lk.LEFT,r=!t&&e.key===lk.LEFT||t&&e.key===lk.RIGHT}if(!n&&!r)return;const i=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,r);i&&(e.preventDefault(),i.focus())}addElementClasses(e,t){t=t?`-${t}`:\"\";const n=this.horizontal?\"horizontal\":\"vertical\";e.classList.add(`ag-column-drop${t}`,`ag-column-drop-${n}${t}`)}setupDropTarget(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.dragAndDropService.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(e){const t=this.getNewInsertIndex(e);if(t<0)return!1;const n=this.minimumAllowedNewInsertIndex(),r=Math.max(n,t),i=r!==this.insertIndex;return i&&(this.insertIndex=r),i}getNewInsertIndex(e){const t=e.event,n=this.horizontal?t.clientX:t.clientY,r=this.childPillComponents.map((e=>e.getGui().getBoundingClientRect())),i=r.findIndex((e=>this.horizontal?e.right>n&&e.left<n:e.top<n&&e.bottom>n));if(-1===i){const e=this.gridOptionsService.get(\"enableRtl\");return r.every((e=>n>(this.horizontal?e.right:e.bottom)))?e&&this.horizontal?0:this.childPillComponents.length:r.every((e=>n<(this.horizontal?e.left:e.top)))?e&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i}checkDragStartedBySelf(t){this.state===e.STATE_NOT_DRAGGING&&(this.state=e.STATE_REARRANGE_ITEMS,this.potentialDndItems=this.getItems(t.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(t),this.refreshGui())}onDragging(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()}handleDragEnterEnd(e){}onDragEnter(t){const n=this.getItems(t.dragSource.getDragItem());this.state=e.STATE_NEW_ITEMS_IN;const r=n.filter((e=>this.isItemDroppable(e,t))),i=r.every((e=>-1!==this.childPillComponents.map((e=>e.getItem())).indexOf(e)));0!==r.length&&(this.potentialDndItems=r,i?this.state=e.STATE_NOT_DRAGGING:(this.handleDragEnterEnd(t),this.checkInsertIndex(t),this.refreshGui()))}isPotentialDndItems(){return BD(this.potentialDndItems)}handleDragLeaveEnd(e){}onDragLeave(t){if(this.state===e.STATE_REARRANGE_ITEMS){const e=this.getItems(t.dragSource.getDragItem());this.removeItems(e)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(t),this.potentialDndItems=[],this.refreshGui()),this.state=e.STATE_NOT_DRAGGING}refreshOnDragStop(){return!0}onDragStop(){if(this.isPotentialDndItems()){let t=!1;this.state===e.STATE_NEW_ITEMS_IN?(this.addItems(this.potentialDndItems),t=!0):t=this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],!this.refreshOnDragStop()&&t||this.refreshGui()}this.state=e.STATE_NOT_DRAGGING}removeItems(e){const t=this.getExistingItems().filter((t=>!eR(e,t)));this.updateItems(t)}addItems(e){if(!e)return;const t=this.getExistingItems().slice(),n=e.filter((e=>t.indexOf(e)<0));ZD(t,n,this.insertIndex),this.updateItems(t)}addItem(e){this.insertIndex=this.getExistingItems().length,this.addItems([e]),this.refreshGui()}rearrangeItems(e){const t=this.getNonGhostItems().slice();return ZD(t,e,this.insertIndex),!jD(t,this.getExistingItems())&&(this.updateItems(t),!0)}refreshGui(){const e=this.ePillDropList.scrollTop,t=this.resizeEnabled,n=this.getFocusedItem();let r=this.focusService.findNextFocusableElement();r||(r=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),this.isHorizontal()||(this.ePillDropList.scrollTop=e),t&&this.toggleResizable(t),this.focusService.isKeyboardMode()&&this.restoreFocus(n,r)}getFocusedItem(){const e=this.getGui(),t=this.gridOptionsService.getDocument().activeElement;return e.contains(t)?Array.from(e.querySelectorAll(\".ag-column-drop-cell\")).indexOf(t):-1}restoreFocus(e,t){const n=this.getGui(),r=Array.from(n.querySelectorAll(\".ag-column-drop-cell\"));if(-1===e)return;0===r.length&&t.focus();const i=r[Math.min(r.length-1,e)];i&&i.focus()}focusList(e){const t=e?this.childPillComponents.length-1:0;this.restoreFocus(t,this.getFocusableElement())}getNonGhostItems(){const e=this.getExistingItems();return this.isPotentialDndItems()?e.filter((e=>!eR(this.potentialDndItems,e))):e}addItemsToGui(){const e=this.getNonGhostItems().map((e=>this.createItemComponent(e,!1)));if(this.isPotentialDndItems()){const t=this.potentialDndItems.map((e=>this.createItemComponent(e,!0)));this.insertIndex>=e.length?e.push(...t):e.splice(this.insertIndex,0,...t)}this.appendChild(this.ePillDropList),e.forEach(((e,t)=>{t>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(e.getGui())})),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){this.childPillComponents.forEach(((e,t)=>{const n=e.getGui();vM(n,t+1),mM(n,this.childPillComponents.length)}))}createItemComponent(e,t){const n=this.createPillComponent(e,this.dropTarget,t,this.horizontal);return n.addEventListener(vF.EVENT_COLUMN_REMOVE,this.removeItems.bind(this,[e])),this.context.createBean(n),this.guiDestroyFunctions.push((()=>this.destroyBean(n))),t||this.childPillComponents.push(n),n}addIconAndTitleToGui(){const{title:e,icon:t}=this.params;if(!e||!t)return;const n=document.createElement(\"div\");if(hM(n,!0),this.addElementClasses(n,\"title-bar\"),this.addElementClasses(t,\"icon\"),this.addOrRemoveCssClass(\"ag-column-drop-empty\",this.isExistingItemsEmpty()),n.appendChild(t),!this.horizontal){const t=document.createElement(\"span\");this.addElementClasses(t,\"title\"),t.innerHTML=e,n.appendChild(t)}this.appendChild(n)}isExistingItemsEmpty(){return 0===this.getExistingItems().length}addEmptyMessageToGui(){const{emptyMessage:e}=this.params;if(!e||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;const t=document.createElement(\"span\");t.innerHTML=e,this.addElementClasses(t,\"empty-message\"),this.ePillDropList.appendChild(t)}addArrow(e){if(this.horizontal){const t=ak(this.gridOptionsService.get(\"enableRtl\")?\"smallLeft\":\"smallRight\",this.gridOptionsService);this.addElementClasses(t,\"cell-separator\"),e.appendChild(t)}}};yF.STATE_NOT_DRAGGING=\"notDragging\",yF.STATE_NEW_ITEMS_IN=\"newItemsIn\",yF.STATE_REARRANGE_ITEMS=\"rearrangeItems\",MT([xD(\"focusService\")],yF.prototype,\"focusService\",2),MT([xD(\"dragAndDropService\")],yF.prototype,\"dragAndDropService\",2);var bF=[\"touchstart\",\"touchend\",\"touchmove\",\"touchcancel\"],wF=class{constructor(e=\"javascript\"){this.frameworkName=e,this.renderingEngine=\"vanilla\",this.wrapIncoming=e=>e(),this.wrapOutgoing=e=>e()}setInterval(e,t){return new Rk((n=>{n(window.setInterval(e,t))}))}addEventListener(e,t,n,r){const i=eR(bF,t);e.addEventListener(t,n,{capture:!!r,passive:i})}get shouldWrapOutgoing(){return!1}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`https://www.ag-grid.com/${\"solid\"===this.frameworkName?\"react\":this.frameworkName}-data-grid${e?`/${e}`:\"\"}`}},CF=class extends vR{getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===lk.UP,r=e===lk.DOWN,i=e===lk.LEFT;let o,a;if(n||r)a=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=t.column;else{const e=this.columnModel.getAllDisplayedColumns(),n=this.gridOptionsService.get(\"enableRtl\");a=t.rowIndex,o=i!==n?e[0]:HD(e)}return{rowIndex:a,rowPinned:null,column:o}}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,r=!1;for(;!r;){switch(e){case lk.UP:n=this.getCellAbove(n);break;case lk.DOWN:n=this.getCellBelow(n);break;case lk.RIGHT:n=this.gridOptionsService.get(\"enableRtl\")?this.getCellToLeft(n):this.getCellToRight(n);break;case lk.LEFT:n=this.gridOptionsService.get(\"enableRtl\")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn(\"AG Grid: unknown key for navigation \"+e)}r=!n||this.isCellGoodToFocusOn(n)}return n}isCellGoodToFocusOn(e){const t=e.column;let n;switch(e.rowPinned){case\"top\":n=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case\"bottom\":n=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:n=this.rowModel.getRow(e.rowIndex)}return!!n&&!t.isSuppressNavigable(n)}getCellToLeft(e){if(!e)return null;const t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getRowBelow(e){const t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case\"bottom\":return null;case\"top\":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(\"bottom\")?{rowIndex:0,rowPinned:\"bottom\"}:null;default:return this.pinnedRowModel.isRowsToRender(\"bottom\")?{rowIndex:0,rowPinned:\"bottom\"}:null}const r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r)||{rowIndex:t+1,rowPinned:n}}getNextStickyPosition(e,t){if(!this.gridOptionsService.isGroupRowsSticky()||!e||!e.sticky)return;const n=[...this.rowRenderer.getStickyTopRowCtrls()].sort(((e,t)=>e.getRowNode().rowIndex-t.getRowNode().rowIndex)),r=t?-1:1,i=n.findIndex((t=>t.getRowNode().rowIndex===e.rowIndex)),o=n[i+r];return o?{rowIndex:o.getRowNode().rowIndex,rowPinned:null}:void 0}getCellBelow(e){if(!e)return null;const t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}isLastRowInContainer(e){const t=e.rowPinned,n=e.rowIndex;return\"top\"===t?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:\"bottom\"===t?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n}getRowAbove(e){const t=e.rowIndex,n=e.rowPinned;if(n?0===t:t===this.paginationProxy.getPageFirstRow())return\"top\"===n?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(\"top\")?this.getLastFloatingTopRow():null;const r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r,!0)||{rowIndex:t-1,rowPinned:n}}getCellAbove(e){if(!e)return null;const t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}getLastBodyCell(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}}getLastFloatingTopRow(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:\"top\"}}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const t=this.columnModel.getAllDisplayedColumns();let n=e.rowIndex,r=e.rowPinned,i=this.columnModel.getDisplayedColAfter(e.column);if(!i){i=t[0];const o=this.getRowBelow(e);if(PT(o))return null;if(!o.rowPinned&&!this.paginationProxy.isRowInPage(o))return null;n=o?o.rowIndex:null,r=o?o.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}}getNextTabbedCellBackwards(e){const t=this.columnModel.getAllDisplayedColumns();let n=e.rowIndex,r=e.rowPinned,i=this.columnModel.getDisplayedColBefore(e.column);if(!i){i=HD(t);const o=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(PT(o))return null;if(!o.rowPinned&&!this.paginationProxy.isRowInPage(o))return null;n=o?o.rowIndex:null,r=o?o.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}}};MT([xD(\"columnModel\")],CF.prototype,\"columnModel\",2),MT([xD(\"rowModel\")],CF.prototype,\"rowModel\",2),MT([xD(\"rowRenderer\")],CF.prototype,\"rowRenderer\",2),MT([xD(\"pinnedRowModel\")],CF.prototype,\"pinnedRowModel\",2),MT([xD(\"paginationProxy\")],CF.prototype,\"paginationProxy\",2),CF=MT([ED(\"cellNavigationService\")],CF);var SF=class extends vR{constructor(){super(...arguments),this.consuming=!1}setBeans(e){this.logger=e.create(\"AlignedGridsService\")}getAlignedGridApis(){var e;let t=null!=(e=this.gridOptionsService.get(\"alignedGrids\"))?e:[];const n=\"function\"==typeof t;\"function\"==typeof t&&(t=t());const r=()=>`See ${this.getFrameworkOverrides().getDocLink(\"aligned-grids\")}`;return t.map((e=>{var t;if(!e)return rD(\"alignedGrids contains an undefined option.\"),n||rD('You may want to configure via a callback to avoid setup race conditions:\\n                     \"alignedGrids: () => [linkedGrid]\"'),void rD(r());if(e instanceof XN)return e;const i=e;return\"current\"in i?null==(t=i.current)?void 0:t.api:(i.api||rD(`alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ${r()}`),i.api)})).filter((e=>!!e&&!e.isDestroyed()))}init(){this.addManagedListener(this.eventService,CR.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach((t=>{const n=t.__getAlignedGridService();e(n)}))}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent((t=>{t.onColumnEvent(e)}))}fireScrollEvent(e){\"horizontal\"===e.direction&&this.fireEvent((t=>{t.onScrollEvent(e)}))}onScrollEvent(e){this.onEvent((()=>{this.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left,!0)}))}getMasterColumns(e){const t=[];return e.columns?e.columns.forEach((e=>{t.push(e)})):e.column&&t.push(e.column),t}getColumnIds(e){const t=[];return e.columns?e.columns.forEach((e=>{t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t}onColumnEvent(e){this.onEvent((()=>{switch(e.type){case CR.EVENT_COLUMN_MOVED:case CR.EVENT_COLUMN_VISIBLE:case CR.EVENT_COLUMN_PINNED:case CR.EVENT_COLUMN_RESIZED:const t=e;this.processColumnEvent(t);break;case CR.EVENT_COLUMN_GROUP_OPENED:const n=e;this.processGroupOpenedEvent(n);break;case CR.EVENT_COLUMN_PIVOT_CHANGED:console.warn(\"AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.\")}}))}processGroupOpenedEvent(e){e.columnGroups.forEach((t=>{let n=null;if(t){const e=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(e)}t&&!n||(this.logger.log(\"onColumnEvent-> processing \"+e+\" expanded = \"+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),\"alignedGridChanged\"))}))}processColumnEvent(e){var t;const n=e.column;let r=null;if(n&&(r=this.columnModel.getPrimaryColumn(n.getColId())),n&&!r)return;const i=this.getMasterColumns(e);switch(e.type){case CR.EVENT_COLUMN_MOVED:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId})));this.columnModel.applyColumnState({state:n,applyOrder:!0},\"alignedGridChanged\"),this.logger.log(`onColumnEvent-> processing ${e.type} toIndex = ${t.toIndex}`)}break;case CR.EVENT_COLUMN_VISIBLE:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId,hide:e.hide})));this.columnModel.applyColumnState({state:n},\"alignedGridChanged\"),this.logger.log(`onColumnEvent-> processing ${e.type} visible = ${t.visible}`)}break;case CR.EVENT_COLUMN_PINNED:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId,pinned:e.pinned})));this.columnModel.applyColumnState({state:n},\"alignedGridChanged\"),this.logger.log(`onColumnEvent-> processing ${e.type} pinned = ${t.pinned}`)}break;case CR.EVENT_COLUMN_RESIZED:const n=e,r={};i.forEach((t=>{this.logger.log(`onColumnEvent-> processing ${e.type} actualWidth = ${t.getActualWidth()}`),r[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}})),null==(t=n.flexColumns)||t.forEach((e=>{r[e.getId()]&&delete r[e.getId()]})),this.columnModel.setColumnWidths(Object.values(r),!1,n.finished,\"alignedGridChanged\")}const o=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach((e=>{e.setGridOption(\"alwaysShowVerticalScroll\",o)}))}};MT([xD(\"columnModel\")],SF.prototype,\"columnModel\",2),MT([xD(\"ctrlsService\")],SF.prototype,\"ctrlsService\",2),MT([OT(0,DD(\"loggerFactory\"))],SF.prototype,\"setBeans\",1),MT([CD],SF.prototype,\"init\",1),SF=MT([ED(\"alignedGridsService\")],SF);var EF=class extends vR{constructor(){super(...arguments),this.selectedNodes=new Map,this.lastRowNode=null}init(){this.rowSelection=this.gridOptionsService.get(\"rowSelection\"),this.groupSelectsChildren=this.gridOptionsService.get(\"groupSelectsChildren\"),this.addManagedPropertyListeners([\"groupSelectsChildren\",\"rowSelection\"],(()=>{this.groupSelectsChildren=this.gridOptionsService.get(\"groupSelectsChildren\"),this.rowSelection=this.gridOptionsService.get(\"rowSelection\"),this.deselectAllRowNodes({source:\"api\"})})),this.addManagedListener(this.eventService,CR.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))}destroy(){super.destroy(),this.resetNodes(),this.lastRowNode=null}isMultiselect(){return\"multiple\"===this.rowSelection}setNodesSelected(e){var t;const{newValue:n,clearSelection:r,suppressFinishActions:i,rangeSelect:o,nodes:a,event:s,source:l=\"api\"}=e;if(0===a.length)return 0;if(a.length>1&&!this.isMultiselect())return console.warn(\"AG Grid: cannot multi select while rowSelection='single'\"),0;const c=this.groupSelectsChildren&&!0===e.groupSelectsFiltered,d=a.map((e=>e.footer?e.sibling:e));if(o){if(a.length>1)return console.warn(\"AG Grid: cannot range select while selecting multiple rows\"),0;let e=null;if(\"checkboxSelected\"===l&&!1===n&&this.lastRowNode&&(this.lastRowNode.id?e=this.lastRowNode:this.lastRowNode=null),null==e&&(e=this.getLastSelectedNode()),e){const t=d[0];if(t!==e&&this.isMultiselect())return this.selectRange(t,e,n,l)}}this.lastRowNode=n?null:d[0];let u=0;for(let e=0;e<d.length;e++){const r=d[e];c&&r.group||r.selectThisNode(n,s,l)&&u++,this.groupSelectsChildren&&(null==(t=r.childrenAfterGroup)?void 0:t.length)&&(u+=this.selectChildren(r,n,c,l))}if(!i&&(n&&(r||!this.isMultiselect())&&(u+=this.clearOtherNodes(d[0],l)),u>0)){this.updateGroupsFromChildrenSelections(l);const e={type:CR.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(e)}return u}selectRange(e,t,n=!0,r){const i=this.rowModel.getNodesInRangeForSelection(e,t);let o=0;i.forEach((e=>{e.group&&this.groupSelectsChildren||e.selectThisNode(n,void 0,r)&&o++})),this.updateGroupsFromChildrenSelections(r);const a={type:CR.EVENT_SELECTION_CHANGED,source:r};return this.eventService.dispatchEvent(a),o}selectChildren(e,t,n,r){const i=n?e.childrenAfterAggFilter:e.childrenAfterGroup;return PT(i)?0:this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:n,source:r,nodes:i})}getLastSelectedNode(){const e=Array.from(this.selectedNodes.keys());if(0==e.length)return null;return this.selectedNodes.get(HD(e))||null}getSelectedNodes(){const e=[];return this.selectedNodes.forEach((t=>{t&&e.push(t)})),e}getSelectedRows(){const e=[];return this.selectedNodes.forEach((t=>{t&&t.data&&e.push(t.data)})),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach(((n,r)=>{n&&e(n)&&t.set(r,n)})),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsChildren)return!1;if(\"clientSide\"!==this.rowModel.getType())return!1;const n=this.rowModel.getRootNode();t||(t=new _L(!0,n)).setInactive();let r=!1;return t.forEachChangedNodeDepthFirst((t=>{if(t!==n){const n=t.calculateSelectedFromChildren();r=t.selectThisNode(null!==n&&n,void 0,e)||r}})),r}clearOtherNodes(e,t){const n=new Map;let r=0;return this.selectedNodes.forEach((i=>{if(i&&i.id!==e.id){const e=this.selectedNodes.get(i.id);r+=e.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),this.groupSelectsChildren&&i.parent&&n.set(i.parent.id,i.parent)}})),n.forEach((e=>{const n=e.calculateSelectedFromChildren();e.selectThisNode(null!==n&&n,void 0,t)})),r}onRowSelected(e){const t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}syncInOldRowNode(e,t){if(NT(t)&&e.id!==t.id&&t){const n=t.id;this.selectedNodes.get(n)==e&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)}reset(e){const t=this.getSelectionCount();if(this.resetNodes(),t){const t={type:CR.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(t)}}resetNodes(){var e;null==(e=this.selectedNodes)||e.clear()}getBestCostNodeSelection(){if(\"clientSide\"!==this.rowModel.getType())return;const e=this.rowModel.getTopLevelNodes();if(null===e)return;const t=[];return function e(n){for(let r=0,i=n.length;r<i;r++){const i=n[r];if(i.isSelected())t.push(i);else{const t=i;t.group&&t.children&&e(t.children)}}}(e),t}isEmpty(){let e=0;return this.selectedNodes.forEach((t=>{t&&e++})),0===e}deselectAllRowNodes(e){const t=e=>e.selectThisNode(!1,void 0,r),n=\"clientSide\"===this.rowModel.getType(),{source:r,justFiltered:i,justCurrentPage:o}=e;if(o||i){if(!n)return void console.error(\"AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'\");this.getNodesToSelect(i,o).forEach(t)}else this.selectedNodes.forEach((e=>{e&&t(e)})),this.reset(r);n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);const a={type:CR.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(a)}getSelectedCounts(e,t){let n=0,r=0;return this.getNodesToSelect(e,t).forEach((e=>{this.groupSelectsChildren&&e.group||(e.isSelected()?n++:e.selectable&&r++)})),{selectedCount:n,notSelectedCount:r}}getSelectAllState(e,t){const{selectedCount:n,notSelectedCount:r}=this.getSelectedCounts(e,t);return(0!==n||0!==r)&&(n>0&&r>0?null:n>0)}hasNodesToSelect(e=!1,t=!1){return this.getNodesToSelect(e,t).filter((e=>e.selectable)).length>0}getNodesToSelect(e=!1,t=!1){if(\"clientSide\"!==this.rowModel.getType())throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`);const n=[];if(t)return this.paginationProxy.forEachNodeOnPage((e=>{if(e.group)if(e.expanded)this.groupSelectsChildren||n.push(e);else{const t=e=>{var r;n.push(e),(null==(r=e.childrenAfterFilter)?void 0:r.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else n.push(e)})),n;const r=this.rowModel;return e?(r.forEachNodeAfterFilter((e=>{n.push(e)})),n):(r.forEachNode((e=>{n.push(e)})),n)}selectAllRowNodes(e){if(\"clientSide\"!==this.rowModel.getType())throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`);const{source:t,justFiltered:n,justCurrentPage:r}=e;this.getNodesToSelect(n,r).forEach((e=>e.selectThisNode(!0,void 0,t))),\"clientSide\"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);const i={type:CR.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(i)}getSelectionState(){const e=[];return this.selectedNodes.forEach((t=>{(null==t?void 0:t.id)&&e.push(t.id)})),e.length?e:null}setSelectionState(e,t){if(!Array.isArray(e))return;const n=new Set(e),r=[];this.rowModel.forEachNode((e=>{n.has(e.id)&&r.push(e)})),this.setNodesSelected({newValue:!0,nodes:r,source:t})}};MT([xD(\"rowModel\")],EF.prototype,\"rowModel\",2),MT([xD(\"paginationProxy\")],EF.prototype,\"paginationProxy\",2),MT([CD],EF.prototype,\"init\",1),EF=MT([ED(\"selectionService\")],EF);var xF=class{constructor(e){this.viaApi=(e,...t)=>(nD(`Since v31, 'columnApi.${e}' is deprecated and moved to 'api.${e}'.`),this.api[e](...t)),this.api=e}sizeColumnsToFit(e){this.viaApi(\"sizeColumnsToFit\",e)}setColumnGroupOpened(e,t){this.viaApi(\"setColumnGroupOpened\",e,t)}getColumnGroup(e,t){return this.viaApi(\"getColumnGroup\",e,t)}getProvidedColumnGroup(e){return this.viaApi(\"getProvidedColumnGroup\",e)}getDisplayNameForColumn(e,t){return this.viaApi(\"getDisplayNameForColumn\",e,t)}getDisplayNameForColumnGroup(e,t){return this.viaApi(\"getDisplayNameForColumnGroup\",e,t)}getColumn(e){return this.viaApi(\"getColumn\",e)}getColumns(){return this.viaApi(\"getColumns\")}applyColumnState(e){return this.viaApi(\"applyColumnState\",e)}getColumnState(){return this.viaApi(\"getColumnState\")}resetColumnState(){this.viaApi(\"resetColumnState\")}getColumnGroupState(){return this.viaApi(\"getColumnGroupState\")}setColumnGroupState(e){this.viaApi(\"setColumnGroupState\",e)}resetColumnGroupState(){this.viaApi(\"resetColumnGroupState\")}isPinning(){return this.viaApi(\"isPinning\")}isPinningLeft(){return this.viaApi(\"isPinningLeft\")}isPinningRight(){return this.viaApi(\"isPinningRight\")}getDisplayedColAfter(e){return this.viaApi(\"getDisplayedColAfter\",e)}getDisplayedColBefore(e){return this.viaApi(\"getDisplayedColBefore\",e)}setColumnVisible(e,t){this.viaApi(\"setColumnVisible\",e,t)}setColumnsVisible(e,t){this.viaApi(\"setColumnsVisible\",e,t)}setColumnPinned(e,t){this.viaApi(\"setColumnPinned\",e,t)}setColumnsPinned(e,t){this.viaApi(\"setColumnsPinned\",e,t)}getAllGridColumns(){return this.viaApi(\"getAllGridColumns\")}getDisplayedLeftColumns(){return this.viaApi(\"getDisplayedLeftColumns\")}getDisplayedCenterColumns(){return this.viaApi(\"getDisplayedCenterColumns\")}getDisplayedRightColumns(){return this.viaApi(\"getDisplayedRightColumns\")}getAllDisplayedColumns(){return this.viaApi(\"getAllDisplayedColumns\")}getAllDisplayedVirtualColumns(){return this.viaApi(\"getAllDisplayedVirtualColumns\")}moveColumn(e,t){this.viaApi(\"moveColumn\",e,t)}moveColumnByIndex(e,t){this.viaApi(\"moveColumnByIndex\",e,t)}moveColumns(e,t){this.viaApi(\"moveColumns\",e,t)}moveRowGroupColumn(e,t){this.viaApi(\"moveRowGroupColumn\",e,t)}setColumnAggFunc(e,t){this.viaApi(\"setColumnAggFunc\",e,t)}setColumnWidth(e,t,n=!0,r){this.viaApi(\"setColumnWidth\",e,t,n,r)}setColumnWidths(e,t=!0,n){this.viaApi(\"setColumnWidths\",e,t,n)}setPivotMode(e){this.viaApi(\"setPivotMode\",e)}isPivotMode(){return this.viaApi(\"isPivotMode\")}getPivotResultColumn(e,t){return this.viaApi(\"getPivotResultColumn\",e,t)}setValueColumns(e){this.viaApi(\"setValueColumns\",e)}getValueColumns(){return this.viaApi(\"getValueColumns\")}removeValueColumn(e){this.viaApi(\"removeValueColumn\",e)}removeValueColumns(e){this.viaApi(\"removeValueColumns\",e)}addValueColumn(e){this.viaApi(\"addValueColumn\",e)}addValueColumns(e){this.viaApi(\"addValueColumns\",e)}setRowGroupColumns(e){this.viaApi(\"setRowGroupColumns\",e)}removeRowGroupColumn(e){this.viaApi(\"removeRowGroupColumn\",e)}removeRowGroupColumns(e){this.viaApi(\"removeRowGroupColumns\",e)}addRowGroupColumn(e){this.viaApi(\"addRowGroupColumn\",e)}addRowGroupColumns(e){this.viaApi(\"addRowGroupColumns\",e)}getRowGroupColumns(){return this.viaApi(\"getRowGroupColumns\")}setPivotColumns(e){this.viaApi(\"setPivotColumns\",e)}removePivotColumn(e){this.viaApi(\"removePivotColumn\",e)}removePivotColumns(e){this.viaApi(\"removePivotColumns\",e)}addPivotColumn(e){this.viaApi(\"addPivotColumn\",e)}addPivotColumns(e){this.viaApi(\"addPivotColumns\",e)}getPivotColumns(){return this.viaApi(\"getPivotColumns\")}getLeftDisplayedColumnGroups(){return this.viaApi(\"getLeftDisplayedColumnGroups\")}getCenterDisplayedColumnGroups(){return this.viaApi(\"getCenterDisplayedColumnGroups\")}getRightDisplayedColumnGroups(){return this.viaApi(\"getRightDisplayedColumnGroups\")}getAllDisplayedColumnGroups(){return this.viaApi(\"getAllDisplayedColumnGroups\")}autoSizeColumn(e,t){return this.viaApi(\"autoSizeColumn\",e,t)}autoSizeColumns(e,t){this.viaApi(\"autoSizeColumns\",e,t)}autoSizeAllColumns(e){this.viaApi(\"autoSizeAllColumns\",e)}setPivotResultColumns(e){this.viaApi(\"setPivotResultColumns\",e)}getPivotResultColumns(){return this.viaApi(\"getPivotResultColumns\")}};MT([xD(\"gridApi\")],xF.prototype,\"api\",2),xF=MT([ED(\"columnApi\")],xF);var AF=class extends vR{constructor(){super(...arguments),this.initialised=!1,this.isSsrm=!1}init(){this.isSsrm=this.gridOptionsService.isRowModelType(\"serverSide\"),this.cellExpressions=this.gridOptionsService.get(\"enableCellExpressions\"),this.isTreeData=this.gridOptionsService.get(\"treeData\"),this.initialised=!0;const e=e=>this.callColumnCellValueChangedHandler(e),t=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(CR.EVENT_CELL_VALUE_CHANGED,e,t),this.addDestroyFunc((()=>this.eventService.removeEventListener(CR.EVENT_CELL_VALUE_CHANGED,e,t))),this.addManagedPropertyListener(\"treeData\",(e=>this.isTreeData=e.currentValue))}getValue(e,t,n=!1,r=!1){if(this.initialised||this.init(),!t)return;const i=e.getColDef(),o=i.field,a=e.getColId(),s=t.data;let l;const c=t.groupData&&void 0!==t.groupData[a],d=!r&&t.aggData&&void 0!==t.aggData[a],u=this.isSsrm&&r&&!!e.getColDef().aggFunc,h=this.isSsrm&&t.footer&&t.field&&(!0===e.getColDef().showRowGroup||e.getColDef().showRowGroup===t.field);if(n&&i.filterValueGetter?l=this.executeFilterValueGetter(i.filterValueGetter,s,e,t):this.isTreeData&&d?l=t.aggData[a]:this.isTreeData&&i.valueGetter?l=this.executeValueGetter(i.valueGetter,s,e,t):this.isTreeData&&o&&s?l=QT(s,o,e.isFieldContainsDots()):c?l=t.groupData[a]:d?l=t.aggData[a]:i.valueGetter?l=this.executeValueGetter(i.valueGetter,s,e,t):h?l=QT(s,t.field,e.isFieldContainsDots()):o&&s&&!u&&(l=QT(s,o,e.isFieldContainsDots())),this.cellExpressions&&\"string\"==typeof l&&0===l.indexOf(\"=\")){const n=l.substring(1);l=this.executeValueGetter(n,s,e,t)}if(null==l){const n=this.getOpenedGroup(t,e);if(null!=n)return n}return l}getOpenedGroup(e,t){if(!this.gridOptionsService.get(\"showOpenedGroup\"))return;if(!t.getColDef().showRowGroup)return;const n=t.getColDef().showRowGroup;let r=e.parent;for(;null!=r;){if(r.rowGroupColumn&&(!0===n||n===r.rowGroupColumn.getColId()))return r.key;r=r.parent}}setValue(e,t,n,r){const i=this.columnModel.getPrimaryColumn(t);if(!e||!i)return!1;PT(e.data)&&(e.data={});const{field:o,valueSetter:a}=i.getColDef();if(PT(o)&&PT(a))return console.warn(\"AG Grid: you need either field or valueSetter set on colDef for editing to work\"),!1;if(!this.dataTypeService.checkType(i,n))return console.warn(\"AG Grid: Data type of the new value does not match the cell data type of the column\"),!1;const s=this.gridOptionsService.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(i,e),newValue:n,colDef:i.getColDef(),column:i});let l;if(s.newValue=n,l=NT(a)?\"function\"==typeof a?a(s):this.expressionService.evaluate(a,s):this.setValueUsingField(e.data,o,n,i.isFieldContainsDots()),void 0===l&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),s.newValue=this.getValue(i,e);const c={type:CR.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:s.column,api:s.api,columnApi:s.columnApi,colDef:s.colDef,context:s.context,data:e.data,node:e,oldValue:s.oldValue,newValue:s.newValue,value:s.newValue,source:r};return this.eventService.dispatchEvent(c),!0}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;\"function\"==typeof t&&this.getFrameworkOverrides().wrapOutgoing((()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})}))}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(r){const r=t.split(\".\");let o=e;for(;r.length>0&&o;){const e=r.shift();0===r.length?(i=o[e]===n,i||(o[e]=n)):o=o[e]}}else i=e[t]===n,i||(e[t]=n);return!i}executeFilterValueGetter(e,t,n,r){const i=this.gridOptionsService.addGridCommonParams({data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});return\"function\"==typeof e?e(i):this.expressionService.evaluate(e,i)}executeValueGetter(e,t,n,r){const i=n.getColId(),o=this.valueCache.getValue(r,i);if(void 0!==o)return o;const a=this.gridOptionsService.addGridCommonParams({data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});let s;return s=\"function\"==typeof e?e(a):this.expressionService.evaluate(e,a),this.valueCache.setValue(r,i,s),s}getValueCallback(e,t){const n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){const n=this.getValue(e,t),r=e.getColDef().keyCreator;let i=n;return r&&(i=r(this.gridOptionsService.addGridCommonParams({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data}))),\"string\"==typeof i||null==i||(i=String(i),\"[object Object]\"===i&&nD(\"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key\")),i}};MT([xD(\"expressionService\")],AF.prototype,\"expressionService\",2),MT([xD(\"columnModel\")],AF.prototype,\"columnModel\",2),MT([xD(\"valueCache\")],AF.prototype,\"valueCache\",2),MT([xD(\"dataTypeService\")],AF.prototype,\"dataTypeService\",2),MT([CD],AF.prototype,\"init\",1),AF=MT([ED(\"valueService\")],AF);var TF=class extends vR{constructor(){super(...arguments),this.expressionToFunctionCache={}}setBeans(e){this.logger=e.create(\"ExpressionService\")}evaluate(e,t){if(\"string\"==typeof e)return this.evaluateExpression(e,t);console.error(\"AG Grid: value should be either a string or a function\",e)}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log(\"Processing of the expression failed\"),console.log(\"Expression = \"+e),console.log(\"Params =\",t),console.log(\"Exception = \"+n),null}}createExpressionFunction(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];const t=this.createFunctionBody(e),n=new Function(\"x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup\",t);return this.expressionToFunctionCache[e]=n,n}createFunctionBody(e){return e.indexOf(\"return\")>=0?e:\"return \"+e+\";\"}};MT([OT(0,DD(\"loggerFactory\"))],TF.prototype,\"setBeans\",1),TF=MT([ED(\"expressionService\")],TF);var DF=class extends vR{constructor(){super(...arguments),this.templateCache={},this.waitingCallbacks={}}getTemplate(e,t){const n=this.templateCache[e];if(n)return n;let r=this.waitingCallbacks[e];const i=this;if(!r){r=[],this.waitingCallbacks[e]=r;const t=new XMLHttpRequest;t.onload=function(){i.handleHttpResult(this,e)},t.open(\"GET\",e),t.send()}return t&&r.push(t),null}handleHttpResult(e,t){if(200!==e.status||null===e.response)return void console.warn(`AG Grid: Unable to get template error ${e.status} - ${t}`);this.templateCache[t]=e.response||e.responseText;const n=this.waitingCallbacks[t];for(let e=0;e<n.length;e++)(0,n[e])()}};DF=MT([ED(\"templateService\")],DF);var RF=class extends vR{setBeans(e){this.logging=e.get(\"debug\")}create(e){return new MF(e,this.isLogging.bind(this))}isLogging(){return this.logging}};MT([OT(0,DD(\"gridOptionsService\"))],RF.prototype,\"setBeans\",1),RF=MT([ED(\"loggerFactory\")],RF);var MF=class{constructor(e,t){this.name=e,this.isLoggingFunc=t}isLogging(){return this.isLoggingFunc()}log(e){this.isLoggingFunc()&&console.log(\"AG Grid.\"+this.name+\": \"+e)}},OF=class extends vR{setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute(\"grid-id\",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:()=>this.eGui,isInterestedIn:e=>1===e||0===e,getIconName:()=>XI.ICON_NOT_ALLOWED}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new rP(this.view)),this.addRtlSupport();const r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((()=>r())),this.ctrlsService.registerGridCtrl(this)}isDetailGrid(){var e;const t=this.focusService.findTabbableParent(this.getGui());return(null==(e=null==t?void 0:t.getAttribute(\"row-id\"))?void 0:e.startsWith(\"detail\"))||!1}showDropZones(){return yD.__isRegistered(\"@ag-grid-enterprise/row-grouping\",this.context.getGridId())}showSideBar(){return yD.__isRegistered(\"@ag-grid-enterprise/side-bar\",this.context.getGridId())}showStatusBar(){return yD.__isRegistered(\"@ag-grid-enterprise/status-bar\",this.context.getGridId())}showWatermark(){return yD.__isRegistered(\"@ag-grid-enterprise/core\",this.context.getGridId())}onGridSizeChanged(){const e={type:CR.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)}addRtlSupport(){const e=this.gridOptionsService.get(\"enableRtl\")?\"ag-rtl\":\"ag-ltr\";this.view.setRtlClass(e)}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?\"ew-resize\":null)}disableUserSelect(e){this.view.setUserSelect(e?\"none\":null)}focusNextInnerContainer(e){const t=this.gridOptionsService.getDocument(),n=this.view.getFocusableContainers(),r=n.findIndex((e=>e.contains(t.activeElement)))+(e?-1:1);return!(r<=0||r>=n.length)&&this.focusService.focusInto(n[r])}focusInnerElement(e){const t=this.view.getFocusableContainers(),n=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(HD(t),!0);const e=HD(n);if(this.focusService.focusGridView(e,!0))return!0}if(0===this.gridOptionsService.get(\"headerHeight\")||this.gridOptionsService.get(\"suppressHeaderFocus\")){if(this.focusService.focusGridView(n[0]))return!0;for(let e=1;e<t.length;e++)if(this.focusService.focusInto(t[e]))return!0;return!1}return this.focusService.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}};MT([xD(\"focusService\")],OF.prototype,\"focusService\",2),MT([xD(\"resizeObserverService\")],OF.prototype,\"resizeObserverService\",2),MT([xD(\"columnModel\")],OF.prototype,\"columnModel\",2),MT([xD(\"ctrlsService\")],OF.prototype,\"ctrlsService\",2),MT([xD(\"mouseEventService\")],OF.prototype,\"mouseEventService\",2),MT([xD(\"dragAndDropService\")],OF.prototype,\"dragAndDropService\",2);var kF=class extends AL{constructor(e){super(),this.eGridDiv=e}postConstruct(){this.logger=this.loggerFactory.create(\"GridComp\");const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:e=>this.addCssClass(e),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:e=>{this.getGui().style.userSelect=null!=e?e:\"\",this.getGui().style.webkitUserSelect=null!=e?e:\"\"},setCursor:e=>{this.getGui().style.cursor=null!=e?e:\"\"}};this.ctrl=this.createManagedBean(new OF);const t=this.createTemplate();this.setTemplate(t),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.ctrl.focusInnerElement(e),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((()=>{this.eGridDiv.removeChild(e),this.logger.log(\"Grid removed from DOM\")}))}updateLayoutClasses(e,t){const n=this.eRootWrapperBody.classList;n.toggle(\"ag-layout-auto-height\",t.autoHeight),n.toggle(\"ag-layout-normal\",t.normal),n.toggle(\"ag-layout-print\",t.print),this.addOrRemoveCssClass(\"ag-layout-auto-height\",t.autoHeight),this.addOrRemoveCssClass(\"ag-layout-normal\",t.normal),this.addOrRemoveCssClass(\"ag-layout-print\",t.print)}createTemplate(){return`<div class=\"ag-root-wrapper\" role=\"presentation\">\\n                ${this.ctrl.showDropZones()?\"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>\":\"\"}\\n                <div class=\"ag-root-wrapper-body\" ref=\"rootWrapperBody\" role=\"presentation\">\\n                    <ag-grid-body ref=\"gridBody\"></ag-grid-body>\\n                    ${this.ctrl.showSideBar()?'<ag-side-bar ref=\"sideBar\"></ag-side-bar>':\"\"}\\n                </div>\\n                ${this.ctrl.showStatusBar()?'<ag-status-bar ref=\"statusBar\"></ag-status-bar>':\"\"}\\n                <ag-pagination></ag-pagination>\\n                ${this.ctrl.showWatermark()?\"<ag-watermark></ag-watermark>\":\"\"}\\n            </div>`}getFocusableElement(){return this.eRootWrapperBody}getFocusableContainers(){const e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((e=>PO(e)))}};MT([xD(\"loggerFactory\")],kF.prototype,\"loggerFactory\",2),MT([Fk(\"gridBody\")],kF.prototype,\"gridBodyComp\",2),MT([Fk(\"sideBar\")],kF.prototype,\"sideBarComp\",2),MT([Fk(\"rootWrapperBody\")],kF.prototype,\"eRootWrapperBody\",2),MT([CD],kF.prototype,\"postConstruct\",1);var IF=class extends vR{progressSort(e,t,n){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)}setSortForColumn(e,t,n,r){\"asc\"!==t&&\"desc\"!==t&&(t=null);let i=[e];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){const t=this.columnModel.getSourceColumnsForGroupColumn(e),n=null==t?void 0:t.filter((e=>e.isSortable()));n&&(i=[e,...n])}i.forEach((e=>e.setSort(t,r)));const o=[];if(!n&&!this.gridOptionsService.get(\"alwaysMultiSort\")||this.gridOptionsService.get(\"suppressMultiSort\")){const e=this.clearSortBarTheseColumns(i,r);o.push(...e)}this.updateSortIndex(e),o.push(...i),this.dispatchSortChangedEvents(r,o)}updateSortIndex(e){const t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),r=t&&n||e,i=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((e=>e.setSortIndex(null)));const o=i.filter((e=>!(t&&e.getColDef().showRowGroup||e===r)));(r.getSort()?[...o,r]:o).forEach(((e,t)=>{e.setSortIndex(t)}))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){const e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((e=>!!e.getSort()));return e&&e.length>0}dispatchSortChangedEvents(e,t){const n={type:CR.EVENT_SORT_CHANGED,source:e};t&&(n.columns=t),this.eventService.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((r=>{e.includes(r)||(r.getSort()&&n.push(r),r.setSort(void 0,t))})),n}getNextSortDirection(e){let t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsService.get(\"sortingOrder\")?this.gridOptionsService.get(\"sortingOrder\"):IF.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn(`AG Grid: sortingOrder must be an array with at least one element, currently it's ${t}`),null;const n=t.indexOf(e.getSort()),r=n<0,i=n==t.length-1;let o;return o=r||i?t[0]:t[n+1],IF.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn(\"AG Grid: invalid sort type \"+o),null):o}getIndexedSortMap(){let e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((e=>!!e.getSort()));if(this.columnModel.isPivotMode()){const t=this.gridOptionsService.isColumnsSortingCoupledToGroup();e=e.filter((e=>{const n=!!e.getAggFunc(),r=!e.isPrimary(),i=t?this.columnModel.getGroupDisplayColumnForGroup(e.getId()):e.getColDef().showRowGroup;return n||r||i}))}const t=this.columnModel.getRowGroupColumns().filter((e=>!!e.getSort())),n={};e.forEach(((e,t)=>n[e.getId()]=t)),e.sort(((e,t)=>{const r=e.getSortIndex(),i=t.getSortIndex();return null!=r&&null!=i?r-i:null==r&&null==i?n[e.getId()]>n[t.getId()]?1:-1:null==i?-1:1}));const r=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!t.length;r&&(e=[...new Set(e.map((e=>{var t;return null!=(t=this.columnModel.getGroupDisplayColumnForGroup(e.getId()))?t:e})))]);const i=new Map;return e.forEach(((e,t)=>i.set(e,t))),r&&t.forEach((e=>{const t=this.columnModel.getGroupDisplayColumnForGroup(e.getId());i.set(e,i.get(t))})),i}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort((([e,t],[n,r])=>t-r)).map((([e])=>e))}getSortModel(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),colId:e.getId()})))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),column:e})))}canColumnDisplayMixedSort(e){const t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();const n=null!=e.getColDef().field||e.getColDef().valueGetter?[e,...t]:t,r=n[0].getSort();return n.every((e=>e.getSort()==r))?r:\"mixed\"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}};IF.DEFAULT_SORTING_ORDER=[\"asc\",\"desc\",null],MT([xD(\"columnModel\")],IF.prototype,\"columnModel\",2),IF=MT([ED(\"sortController\")],IF);var NF=class extends vR{static addKeyboardModeEvents(e){this.instanceCount>0||(e.addEventListener(\"keydown\",NF.toggleKeyboardMode),e.addEventListener(\"mousedown\",NF.toggleKeyboardMode))}static removeKeyboardModeEvents(e){this.instanceCount>0||(e.addEventListener(\"keydown\",NF.toggleKeyboardMode),e.addEventListener(\"mousedown\",NF.toggleKeyboardMode))}static toggleKeyboardMode(e){const t=NF.keyboardModeActive,n=\"keydown\"===e.type;n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(NF.keyboardModeActive=n)}static unregisterGridCompController(e){NF.removeKeyboardModeEvents(e)}init(){const e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady((e=>{this.gridCtrl=e.gridCtrl}))}registerKeyboardFocusEvents(){const e=this.gridOptionsService.getDocument();NF.addKeyboardModeEvents(e),NF.instanceCount++,this.addDestroyFunc((()=>{NF.instanceCount--,NF.unregisterGridCompController(e)}))}onColumnEverythingChanged(){if(!this.focusedCellPosition)return;const e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}isKeyboardMode(){return NF.keyboardModeActive}getFocusCellToUseAfterRefresh(){const e=this.gridOptionsService.getDocument();return this.gridOptionsService.get(\"suppressFocusAfterRefresh\")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,CP.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition}getFocusHeaderToUseAfterRefresh(){const e=this.gridOptionsService.getDocument();return this.gridOptionsService.get(\"suppressFocusAfterRefresh\")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,nL.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition}isDomDataMissingInHierarchy(e,t){let n=e;for(;n;){if(this.gridOptionsService.getDomData(n,t))return!1;n=n.parentNode}return!0}getFocusedCell(){return this.focusedCellPosition}shouldRestoreFocus(e){return!!this.isCellRestoreFocused(e)&&(setTimeout((()=>{this.restoredFocusedCellPosition=null}),0),!0)}isCellRestoreFocused(e){return null!=this.restoredFocusedCellPosition&&this.cellPositionUtils.equals(e,this.restoredFocusedCellPosition)}setRestoreFocusedCell(e){\"react\"===this.getFrameworkOverrides().renderingEngine&&(this.restoredFocusedCellPosition=e)}getFocusEventParams(){const{rowIndex:e,rowPinned:t,column:n}=this.focusedCellPosition,r={rowIndex:e,rowPinned:t,column:n,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:t});return i&&(r.isFullWidthCell=i.isFullWidth()),r}clearFocusedCell(){if(this.restoredFocusedCellPosition=null,null==this.focusedCellPosition)return;const e=TT({type:CR.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}setFocusedCell(e){const{column:t,rowIndex:n,rowPinned:r,forceBrowserFocus:i=!1,preventScrollOnBrowserFocus:o=!1}=e,a=this.columnModel.getGridColumn(t);if(!a)return void(this.focusedCellPosition=null);this.focusedCellPosition=a?{rowIndex:n,rowPinned:IT(r),column:a}:null;const s=DT(TT({type:CR.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:i,preventScrollOnBrowserFocus:o,floating:null});this.eventService.dispatchEvent(s)}isCellFocused(e){return null!=this.focusedCellPosition&&this.cellPositionUtils.equals(e,this.focusedCellPosition)}isRowNodeFocused(e){return this.isRowFocused(e.rowIndex,e.rowPinned)}isHeaderWrapperFocused(e){if(null==this.focusedHeaderPosition)return!1;const t=e.getColumnGroupChild(),n=e.getRowIndex(),r=e.getPinned(),{column:i,headerRowIndex:o}=this.focusedHeaderPosition;return t===i&&n===o&&r==i.getPinned()}clearFocusedHeader(){this.focusedHeaderPosition=null}getFocusedHeader(){return this.focusedHeaderPosition}setFocusedHeader(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}}focusHeaderPosition(e){if(this.gridOptionsService.get(\"suppressHeaderFocus\"))return!1;const{direction:t,fromTab:n,allowUserOverride:r,event:i,fromCell:o,rowWithoutSpanValue:a}=e;let{headerPosition:s}=e;if(o&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(s);if(r){const e=this.getFocusedHeader(),r=this.headerNavigationService.getHeaderRowCount();if(n){const n=this.gridOptionsService.getCallback(\"tabToNextHeader\");n&&(s=n({backwards:\"Before\"===t,previousHeaderPosition:e,nextHeaderPosition:s,headerRowCount:r}))}else{const t=this.gridOptionsService.getCallback(\"navigateToNextHeader\");t&&i&&(s=t({key:i.key,previousHeaderPosition:e,nextHeaderPosition:s,headerRowCount:r,event:i}))}}if(!s)return!1;if(-1===s.headerRowIndex)return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(s):this.focusGridView(s.column);this.headerNavigationService.scrollToColumn(s.column,t);const l=this.ctrlsService.getHeaderRowContainerCtrl(s.column.getPinned()).focusHeader(s.headerRowIndex,s.column,i);return l&&(null!=a||o)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(null!=a?a:-1),l}focusFirstHeader(){let e=this.columnModel.getAllDisplayedColumns()[0];if(!e)return!1;e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0));const t=this.headerPositionUtils.getHeaderIndexToFocus(e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){const t=this.headerNavigationService.getHeaderRowCount()-1,n=HD(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCellPosition}isRowFocused(e,t){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===IT(t)}findFocusableElements(e,t,n=!1){const r=fO;let i=mO;t&&(i+=\", \"+t),n&&(i+=', [tabindex=\"-1\"]');const o=Array.prototype.slice.apply(e.querySelectorAll(r)).filter((e=>PO(e))),a=Array.prototype.slice.apply(e.querySelectorAll(i));return a.length?((e,t)=>e.filter((e=>-1===t.indexOf(e))))(o,a):o}focusInto(e,t=!1,n=!1){const r=this.findFocusableElements(e,null,n),i=t?HD(r):r[0];return!!i&&(i.focus({preventScroll:!0}),!0)}findFocusableElementBeforeTabGuard(e,t){if(!t)return null;const n=this.findFocusableElements(e),r=n.indexOf(t);if(-1===r)return null;let i=-1;for(let e=r-1;e>=0;e--)if(n[e].classList.contains(\"ag-tab-guard-top\")){i=e;break}return i<=0?null:n[i-1]}findNextFocusableElement(e=this.eGridDiv,t,n){const r=this.findFocusableElements(e,t?':not([tabindex=\"-1\"])':null),i=this.gridOptionsService.getDocument().activeElement;let o;o=t?r.findIndex((e=>e.contains(i))):r.indexOf(i);const a=o+(n?-1:1);return a<0||a>=r.length?null:r[a]}isTargetUnderManagedComponent(e,t){if(!t)return!1;const n=e.querySelectorAll(`.${jk.FOCUS_MANAGED_CLASS}`);if(!n.length)return!1;for(let e=0;e<n.length;e++)if(n[e].contains(t))return!0;return!1}findTabbableParent(e,t=5){let n=0;for(;e&&null===$M(e)&&++n<=t;)e=e.parentElement;return null===$M(e)?null:e}focusGridView(e,t){if(this.gridOptionsService.get(\"suppressCellFocus\"))return t?this.gridOptionsService.get(\"suppressHeaderFocus\")?this.focusNextGridCoreContainer(!0,!0):this.focusLastHeader():this.focusNextGridCoreContainer(!1);const n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;const{rowIndex:r,rowPinned:i}=n,o=this.getFocusedHeader();if(!e&&o&&(e=o.column),null==r||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell({rowIndex:r,column:e,rowPinned:IT(i),forceBrowserFocus:!0}),this.rangeService){const t={rowIndex:r,rowPinned:i,column:e};this.rangeService.setRangeToCell(t)}return!0}focusNextGridCoreContainer(e,t=!1){return!(t||!this.gridCtrl.focusNextInnerContainer(e))||((t||!e&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(e),!1)}focusAdvancedFilter(e){return this.advancedFilterFocusColumn=null==e?void 0:e.column,this.advancedFilterService.getCtrl().focusHeaderComp()}focusNextFromAdvancedFilter(e,t){var n,r;const i=null!=(r=t?void 0:this.advancedFilterFocusColumn)?r:null==(n=this.columnModel.getAllDisplayedColumns())?void 0:n[0];return e?this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(i)}clearAdvancedFilterColumn(){this.advancedFilterFocusColumn=void 0}};NF.keyboardModeActive=!1,NF.instanceCount=0,MT([xD(\"eGridDiv\")],NF.prototype,\"eGridDiv\",2),MT([xD(\"columnModel\")],NF.prototype,\"columnModel\",2),MT([xD(\"headerNavigationService\")],NF.prototype,\"headerNavigationService\",2),MT([xD(\"headerPositionUtils\")],NF.prototype,\"headerPositionUtils\",2),MT([xD(\"rowRenderer\")],NF.prototype,\"rowRenderer\",2),MT([xD(\"rowPositionUtils\")],NF.prototype,\"rowPositionUtils\",2),MT([xD(\"cellPositionUtils\")],NF.prototype,\"cellPositionUtils\",2),MT([AD(\"rangeService\")],NF.prototype,\"rangeService\",2),MT([xD(\"navigationService\")],NF.prototype,\"navigationService\",2),MT([xD(\"ctrlsService\")],NF.prototype,\"ctrlsService\",2),MT([xD(\"filterManager\")],NF.prototype,\"filterManager\",2),MT([AD(\"advancedFilterService\")],NF.prototype,\"advancedFilterService\",2),MT([CD],NF.prototype,\"init\",1),NF=MT([ED(\"focusService\")],NF);var PF=class extends vR{setMouseOver(e){this.selectedColumns=e;const t={type:CR.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)}clearMouseOver(){this.selectedColumns=null;const e={type:CR.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)}isHovered(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0}};PF=MT([ED(\"columnHoverService\")],PF);var LF=class extends vR{constructor(){super(...arguments),this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.ctrlsService.whenReady((e=>this.gridBodyCtrl=e.gridBodyCtrl))}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){this.active||this.gridOptionsService.get(\"suppressColumnMoveAnimation\")||this.gridOptionsService.get(\"enableRtl\")||(this.ensureAnimationCssClassPresent(),this.active=!0)}finish(){this.active&&this.flush((()=>{this.active=!1}))}executeNextVMTurn(e){this.active?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((()=>{this.animationThreadCount===e&&this.gridBodyCtrl.setColumnMovingCss(!1)}))}flush(e){if(0===this.executeNextFuncs.length&&0===this.executeLaterFuncs.length)return void e();const t=e=>{for(;e.length;){const t=e.pop();t&&t()}};this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>t(this.executeNextFuncs)),0),window.setTimeout((()=>{t(this.executeLaterFuncs),e()}),200)}))}};MT([xD(\"ctrlsService\")],LF.prototype,\"ctrlsService\",2),MT([CD],LF.prototype,\"postConstruct\",1),LF=MT([ED(\"columnAnimationService\")],LF);var FF=class extends vR{postConstruct(){this.ctrlsService.whenReady((e=>{this.centerRowContainerCon=e.centerRowContainerCtrl,this.addManagedListener(this.eventService,CR.EVENT_BODY_HEIGHT_CHANGED,this.checkPageSize.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_SCROLL_VISIBILITY_CHANGED,this.checkPageSize.bind(this)),this.addManagedPropertyListener(\"paginationAutoPageSize\",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()}))}notActive(){return!this.gridOptionsService.get(\"paginationAutoPageSize\")||null==this.centerRowContainerCon}onPaginationAutoSizeChanged(){this.notActive()?this.paginationProxy.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){const t=()=>{const t=this.gridOptionsService.getRowHeightAsNumber(),n=Math.floor(e/t);this.paginationProxy.setPageSize(n,\"autoCalculated\")};this.isBodyRendered?uD((()=>t()),50)():(t(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};MT([xD(\"ctrlsService\")],FF.prototype,\"ctrlsService\",2),MT([xD(\"paginationProxy\")],FF.prototype,\"paginationProxy\",2),MT([CD],FF.prototype,\"postConstruct\",1),FF=MT([ED(\"paginationAutoPageSizeService\")],FF);var _F=class extends vR{constructor(){super(...arguments),this.cacheVersion=0}init(){this.active=this.gridOptionsService.get(\"valueCache\"),this.neverExpires=this.gridOptionsService.get(\"valueCacheNeverExpires\")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}};MT([CD],_F.prototype,\"init\",1),_F=MT([ED(\"valueCache\")],_F);var zF=class extends vR{init(){\"clientSide\"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,CR.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))}onCellValueChanged(e){\"paste\"!==e.source&&this.doChangeDetection(e.node,e.column)}doChangeDetection(e,t){if(this.gridOptionsService.get(\"suppressChangeDetection\"))return;const n=[e];if(this.clientSideRowModel&&!e.isRowPinned()){const r=this.gridOptionsService.get(\"aggregateOnlyChangedColumns\"),i=new _L(r,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i),i.forEachChangedNodeDepthFirst((e=>{n.push(e)}))}this.rowRenderer.refreshCells({rowNodes:n})}};MT([xD(\"rowModel\")],zF.prototype,\"rowModel\",2),MT([xD(\"rowRenderer\")],zF.prototype,\"rowRenderer\",2),MT([CD],zF.prototype,\"init\",1),zF=MT([ED(\"changeDetectionService\")],zF);var GF=class extends vR{adaptFunction(e,t){const n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null}adaptCellRendererFunction(e){return class{refresh(e){return!1}getGui(){return this.eGui}init(t){const n=e(t),r=typeof n;this.eGui=\"string\"!==r&&\"number\"!==r&&\"boolean\"!==r?null!=n?n:LO(\"<span></span>\"):LO(\"<span>\"+n+\"</span>\")}}}doesImplementIComponent(e){return!!e&&e.prototype&&\"getGui\"in e.prototype}};MT([xD(\"componentMetadataProvider\")],GF.prototype,\"componentMetadataProvider\",2),GF=MT([ED(\"agComponentUtils\")],GF);var VF=class extends vR{postConstruct(){this.componentMetaData={dateComponent:{mandatoryMethodList:[\"getDate\",\"setDate\"],optionalMethodList:[\"afterGuiAttached\",\"setInputPlaceholder\",\"setInputAriaLabel\",\"setDisabled\",\"onParamsUpdated\",\"refresh\"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"]},floatingFilterComponent:{mandatoryMethodList:[\"onParentModelChanged\"],optionalMethodList:[\"afterGuiAttached\",\"onParamsUpdated\",\"refresh\"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:[\"getValue\"],optionalMethodList:[\"isPopup\",\"isCancelBeforeStart\",\"isCancelAfterEnd\",\"getPopupPosition\",\"focusIn\",\"focusOut\",\"afterGuiAttached\",\"refresh\"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:[\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:[\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:[\"isFilterActive\",\"doesFilterPass\",\"getModel\",\"setModel\"],optionalMethodList:[\"afterGuiAttached\",\"afterGuiDetached\",\"onNewRowsLoaded\",\"getModelAsString\",\"onFloatingFilterChanged\",\"onAnyFilterChanged\",\"refresh\"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"getState\"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:[\"setActive\",\"select\",\"setExpanded\",\"configureDefaults\"]}}}retrieve(e){return this.componentMetaData[e]}};MT([xD(\"agComponentUtils\")],VF.prototype,\"agComponentUtils\",2),MT([CD],VF.prototype,\"postConstruct\",1),VF=MT([ED(\"componentMetadataProvider\")],VF);var BF={\"ag-theme-custom\":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},\"ag-theme-material\":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},\"ag-theme-balham\":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},\"ag-theme-alpine\":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240},\"ag-theme-quartz\":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:260}},HF={headerHeight:[\"ag-header-row\"],headerCellMinWidth:[\"ag-header-cell\"],listItemHeight:[\"ag-virtual-list-item\"],rowHeight:[\"ag-row\"],chartMenuPanelWidth:[\"ag-chart-docked-container\"]},jF=class extends vR{constructor(){super(...arguments),this.calculatedSizes={}}postConstruct(){var e;const t=null!=(e=this.getTheme().el)?e:this.eGridDiv;this.addManagedPropertyListener(\"rowHeight\",(()=>this.refreshRowHeightVariable())),this.mutationObserver=new MutationObserver((()=>{this.calculatedSizes={},this.fireGridStylesChangedEvent()})),this.mutationObserver.observe(t||this.eGridDiv,{attributes:!0,attributeFilter:[\"class\"]})}fireGridStylesChangedEvent(){const e={type:CR.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)}getSassVariable(e){const{themeFamily:t,el:n}=this.getTheme();if(!t||0!==t.indexOf(\"ag-theme\"))return;this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[t]||(this.calculatedSizes[t]={});const r=this.calculatedSizes[t][e];return null!=r?r:(this.calculatedSizes[t][e]=this.calculateValueForSassProperty(e,t,n),this.calculatedSizes[t][e])}calculateValueForSassProperty(e,t,n){const r=\"ag-theme-\"+(t.match(\"material\")?\"material\":t.match(\"balham\")?\"balham\":t.match(\"alpine\")?\"alpine\":\"custom\"),i=BF[r][e],o=this.gridOptionsService.getDocument();if(n||(n=this.eGridDiv),!HF[e])return i;const a=HF[e],s=o.createElement(\"div\"),l=Array.from(n.classList);s.classList.add(t,...l),s.style.position=\"absolute\";const c=a.reduce(((e,t)=>{const n=o.createElement(\"div\");return n.style.position=\"static\",n.classList.add(t),e.appendChild(n),n}),s);let d=0;if(o.body){o.body.appendChild(s);const t=-1!==e.toLowerCase().indexOf(\"height\")?\"height\":\"width\";d=parseInt(window.getComputedStyle(c)[t],10),o.body.removeChild(s)}return d||i}isThemeDark(){const{theme:e}=this.getTheme();return!!e&&e.indexOf(\"dark\")>=0}chartMenuPanelWidth(){return this.getSassVariable(\"chartMenuPanelWidth\")}getTheme(){const e=/\\bag-(material|(?:theme-([\\w\\-]*)))\\b/g;let t=this.eGridDiv,n=null,r=[];for(;t;){if(n=e.exec(t.className),n){const n=t.className.match(e);n&&(r=n);break}t=t.parentElement||void 0}if(!n)return{allThemes:r};const i=n[0];return{theme:i,el:t,themeFamily:i.replace(/-dark$/,\"\"),allThemes:r}}getFromTheme(e,t){var n;return null!=(n=this.getSassVariable(t))?n:e}getDefaultRowHeight(){return this.getFromTheme(25,\"rowHeight\")}getListItemHeight(){return this.getFromTheme(20,\"listItemHeight\")}refreshRowHeightVariable(){const e=this.eGridDiv.style.getPropertyValue(\"--ag-line-height\").trim(),t=this.gridOptionsService.get(\"rowHeight\");if(null==t||isNaN(t)||!isFinite(t))return null!==e&&this.eGridDiv.style.setProperty(\"--ag-line-height\",null),-1;const n=`${t}px`;return e!=n?(this.eGridDiv.style.setProperty(\"--ag-line-height\",n),t):\"\"!=e?parseFloat(e):-1}getMinColWidth(){const e=this.getFromTheme(null,\"headerCellMinWidth\");return NT(e)?Math.max(e,10):10}destroy(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),super.destroy()}};MT([xD(\"eGridDiv\")],jF.prototype,\"eGridDiv\",2),MT([CD],jF.prototype,\"postConstruct\",1),jF=MT([ED(\"environment\")],jF);var UF=class extends vR{constructor(){super(...arguments),this.scrollY=0,this.uiBodyHeight=0}agWire(e){this.logger=e.create(\"RowContainerHeightService\")}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=YM(),this.logger.log(\"maxDivHeight = \"+this.maxDivHeight)}isStretching(){return this.stretching}getDivStretchOffset(){return this.divStretchOffset}updateOffset(){if(!this.stretching)return;const e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log(`Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:CR.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=\"number\"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:CR.EVENT_HEIGHT_SCALE_CHANGED}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getUiContainerHeight(){return this.uiContainerHeight}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t}};MT([xD(\"ctrlsService\")],UF.prototype,\"ctrlsService\",2),MT([OT(0,DD(\"loggerFactory\"))],UF.prototype,\"agWire\",1),MT([CD],UF.prototype,\"postConstruct\",1),UF=MT([ED(\"rowContainerHeightService\")],UF);var WF=class extends vR{init(){this.addManagedPropertyListener(\"isRowSelectable\",(()=>this.updateSelectable()))}updateSelectableAfterGrouping(){this.updateSelectable(!0)}updateSelectable(e=!1){const t=!!this.gridOptionsService.get(\"rowSelection\"),n=this.gridOptionsService.get(\"isRowSelectable\");if(!t||!n)return;const r=this.gridOptionsService.get(\"groupSelectsChildren\"),i=\"clientSide\"===this.rowModel.getType()&&r,o=[],a=t=>{if(e&&!t.group)return;if(i&&t.group){const e=t.childrenAfterGroup.some((e=>!0===e.selectable));return void t.setRowSelectable(e,!0)}const r=!n||n(t);t.setRowSelectable(r,!0),!r&&t.isSelected()&&o.push(t)};if(i){const e=this.rowModel;new _L(!1,e.getRootNode()).forEachChangedNodeDepthFirst(a,!0,!0)}else this.rowModel.forEachNode(a);o.length&&this.selectionService.setNodesSelected({nodes:o,newValue:!1,source:\"selectableChanged\"}),i&&this.selectionService instanceof EF&&this.selectionService.updateGroupsFromChildrenSelections(\"selectableChanged\")}};MT([xD(\"rowModel\")],WF.prototype,\"rowModel\",2),MT([xD(\"selectionService\")],WF.prototype,\"selectionService\",2),MT([CD],WF.prototype,\"init\",1),WF=MT([ED(\"selectableService\")],WF);var $F=class extends Lk{constructor(){super(),this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1}postConstruct(){const e=this.gridOptionsService.get(\"enableRtl\");this.setTemplate(this.getTemplate());const{btFirst:t,btPrevious:n,btNext:r,btLast:i,pageSizeComp:o}=this;this.activateTabIndex([t,n,r,i]),t.insertAdjacentElement(\"afterbegin\",ak(e?\"last\":\"first\",this.gridOptionsService)),n.insertAdjacentElement(\"afterbegin\",ak(e?\"next\":\"previous\",this.gridOptionsService)),r.insertAdjacentElement(\"afterbegin\",ak(e?\"previous\":\"next\",this.gridOptionsService)),i.insertAdjacentElement(\"afterbegin\",ak(e?\"first\":\"last\",this.gridOptionsService)),this.addManagedPropertyListener(\"pagination\",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener(\"suppressPaginationPanel\",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners([\"paginationPageSizeSelector\",\"paginationAutoPageSize\",\"suppressPaginationPanel\"],(()=>this.onPageSizeRelatedOptionsChange())),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.onPaginationChanged()}onPaginationChanged(){const e=this.gridOptionsService.get(\"pagination\")&&!this.gridOptionsService.get(\"suppressPaginationPanel\");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedListener(this.eventService,CR.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((e=>{const{el:t,fn:n}=e;this.addManagedListener(t,\"click\",n),this.addManagedListener(t,\"keydown\",(e=>{e.key!==lk.ENTER&&e.key!==lk.SPACE||(e.preventDefault(),n())}))})),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()}setCurrentPageLabel(){const e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.textContent=this.formatNumber(n)}formatNumber(e){const t=this.gridOptionsService.getCallback(\"paginationNumberFormatter\");if(t)return t({value:e});const n=this.localeService.getLocaleTextFunc();return aO(e,n(\"thousandSeparator\",\",\"),n(\"decimalSeparator\",\".\"))}getTemplate(){const e=this.localeService.getLocaleTextFunc(),t=e(\"page\",\"Page\"),n=e(\"to\",\"to\"),r=e(\"of\",\"of\"),i=e(\"firstPage\",\"First Page\"),o=e(\"previousPage\",\"Previous Page\"),a=e(\"nextPage\",\"Next Page\"),s=e(\"lastPage\",\"Last Page\"),l=this.getCompId();return`<div class=\"ag-paging-panel ag-unselectable\" id=\"ag-${l}\">\\n                <ag-page-size-selector ref=\"pageSizeComp\"></ag-page-size-selector>\\n                <span class=\"ag-paging-row-summary-panel\" role=\"status\">\\n                    <span id=\"ag-${l}-first-row\" ref=\"lbFirstRowOnPage\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                    <span id=\"ag-${l}-to\">${n}</span>\\n                    <span id=\"ag-${l}-last-row\" ref=\"lbLastRowOnPage\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                    <span id=\"ag-${l}-of\">${r}</span>\\n                    <span id=\"ag-${l}-row-count\" ref=\"lbRecordCount\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                </span>\\n                <span class=\"ag-paging-page-summary-panel\" role=\"presentation\">\\n                    <div ref=\"btFirst\" class=\"ag-button ag-paging-button\" role=\"button\" aria-label=\"${i}\"></div>\\n                    <div ref=\"btPrevious\" class=\"ag-button ag-paging-button\" role=\"button\" aria-label=\"${o}\"></div>\\n                    <span class=\"ag-paging-description\" role=\"status\">\\n                        <span id=\"ag-${l}-start-page\">${t}</span>\\n                        <span id=\"ag-${l}-start-page-number\" ref=\"lbCurrent\" class=\"ag-paging-number\"></span>\\n                        <span id=\"ag-${l}-of-page\">${r}</span>\\n                        <span id=\"ag-${l}-of-page-number\" ref=\"lbTotal\" class=\"ag-paging-number\"></span>\\n                    </span>\\n                    <div ref=\"btNext\" class=\"ag-button ag-paging-button\" role=\"button\" aria-label=\"${a}\"></div>\\n                    <div ref=\"btLast\" class=\"ag-button ag-paging-button\" role=\"button\" aria-label=\"${s}\"></div>\\n                </span>\\n            </div>`}onBtNext(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()}enableOrDisableButtons(){const e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=this.isZeroPagesToDisplay(),i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){uM(e,t),e.classList.toggle(\"ag-disabled\",t)}updateRowLabels(){const e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;let i,o;if(this.isZeroPagesToDisplay()?i=o=0:(i=t*e+1,o=i+t-1,n&&o>r&&(o=r)),this.lbFirstRowOnPage.textContent=this.formatNumber(i),this.rowNodeBlockLoader.isLoading()){const e=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=e(\"pageLastRowUnknown\",\"?\")}else this.lbLastRowOnPage.textContent=this.formatNumber(o)}isZeroPagesToDisplay(){const e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t}setTotalLabels(){const e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){const e=this.paginationProxy.getRow(0);if(e&&e.group&&!e.groupData&&!e.aggData)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.textContent=this.formatNumber(t),this.lbRecordCount.textContent=this.formatNumber(n);else{const e=this.localeService.getLocaleTextFunc()(\"more\",\"more\");this.lbTotal.innerHTML=e,this.lbRecordCount.innerHTML=e}}setTotalLabelsToZero(){this.lbFirstRowOnPage.textContent=this.formatNumber(0),this.lbCurrent.textContent=this.formatNumber(0),this.lbLastRowOnPage.textContent=this.formatNumber(0),this.lbTotal.textContent=this.formatNumber(0),this.lbRecordCount.textContent=this.formatNumber(0)}};MT([xD(\"paginationProxy\")],$F.prototype,\"paginationProxy\",2),MT([xD(\"rowNodeBlockLoader\")],$F.prototype,\"rowNodeBlockLoader\",2),MT([Fk(\"btFirst\")],$F.prototype,\"btFirst\",2),MT([Fk(\"btPrevious\")],$F.prototype,\"btPrevious\",2),MT([Fk(\"btNext\")],$F.prototype,\"btNext\",2),MT([Fk(\"btLast\")],$F.prototype,\"btLast\",2),MT([Fk(\"lbRecordCount\")],$F.prototype,\"lbRecordCount\",2),MT([Fk(\"lbFirstRowOnPage\")],$F.prototype,\"lbFirstRowOnPage\",2),MT([Fk(\"lbLastRowOnPage\")],$F.prototype,\"lbLastRowOnPage\",2),MT([Fk(\"lbCurrent\")],$F.prototype,\"lbCurrent\",2),MT([Fk(\"lbTotal\")],$F.prototype,\"lbTotal\",2),MT([Fk(\"pageSizeComp\")],$F.prototype,\"pageSizeComp\",2),MT([CD],$F.prototype,\"postConstruct\",1);var YF=class e extends Lk{constructor(){super(e.TEMPLATE),this.inProgress=!1,this.destroyRequested=!1}updateLayoutClasses(e,t){const n=this.eOverlayWrapper.classList;n.toggle(\"ag-layout-auto-height\",t.autoHeight),n.toggle(\"ag-layout-normal\",t.normal),n.toggle(\"ag-layout-print\",t.print)}postConstruct(){this.createManagedBean(new rP(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.registerOverlayWrapperComp(this)}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&t.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n){this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((e=>{this.inProgress=!1,this.eOverlayWrapper.appendChild(e.getGui()),this.activeOverlay=e,this.updateListenerDestroyFunc=n,this.destroyRequested&&(this.destroyRequested=!1,this.destroyActiveOverlay())})),this.setDisplayed(!0,{skipAriaHidden:!0}))}destroyActiveOverlay(){var e;this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),null==(e=this.updateListenerDestroyFunc)||e.call(this),kO(this.eOverlayWrapper))}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}destroy(){this.destroyActiveOverlay(),super.destroy()}};YF.TEMPLATE='\\n        <div class=\"ag-overlay\" role=\"presentation\">\\n            <div class=\"ag-overlay-panel\" role=\"presentation\">\\n                <div class=\"ag-overlay-wrapper\" ref=\"eOverlayWrapper\" role=\"presentation\"></div>\\n            </div>\\n        </div>',MT([xD(\"overlayService\")],YF.prototype,\"overlayService\",2),MT([Fk(\"eOverlayWrapper\")],YF.prototype,\"eOverlayWrapper\",2),MT([CD],YF.prototype,\"postConstruct\",1);var KF=YF,qF=class extends vR{getFirstRow(){let e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=\"top\":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=\"bottom\"),void 0===e?null:{rowIndex:t,rowPinned:e}}getLastRow(){let e,t=null;const n=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=\"bottom\",e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t=\"top\",e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}}getRowNode(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}}sameRow(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}before(e,t){switch(e.rowPinned){case\"top\":if(\"top\"!==t.rowPinned)return!0;break;case\"bottom\":if(\"bottom\"!==t.rowPinned)return!1;break;default:if(NT(t.rowPinned))return\"top\"!==t.rowPinned}return e.rowIndex<t.rowIndex}rowMax(e){let t;return e.forEach((e=>{(void 0===t||this.before(t,e))&&(t=e)})),t}rowMin(e){let t;return e.forEach((e=>{(void 0===t||this.before(e,t))&&(t=e)})),t}};MT([xD(\"rowModel\")],qF.prototype,\"rowModel\",2),MT([xD(\"pinnedRowModel\")],qF.prototype,\"pinnedRowModel\",2),MT([xD(\"paginationProxy\")],qF.prototype,\"paginationProxy\",2),qF=MT([ED(\"rowPositionUtils\")],qF);var QF=class extends vR{createId(e){const{rowIndex:t,rowPinned:n,column:r}=e;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:n})}createIdFromValues(e){const{rowIndex:t,rowPinned:n,column:r}=e;return`${t}.${null==n?\"null\":n}.${r.getId()}`}equals(e,t){const n=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return n&&r&&i}};QF=MT([ED(\"cellPositionUtils\")],QF);var XF=class{constructor(e){this.cellValueChanges=e}},ZF=class extends XF{constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},JF=class e{constructor(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}};JF.DEFAULT_STACK_SIZE=10;var e_=JF,t_=class extends vR{constructor(){super(...arguments),this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=null!==this.activeCellEdit&&this.cellPositionUtils.equals(this.activeCellEdit,t),r=null!==this.activeRowEdit&&this.rowPositionUtils.sameRow(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:i,rowIndex:o,column:a,oldValue:s,value:l}=e,c={rowPinned:i,rowIndex:o,columnId:a.getColId(),newValue:l,oldValue:s};this.cellValueChanges.push(c)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}init(){if(!this.gridOptionsService.get(\"undoRedoCellEditing\"))return;const e=this.gridOptionsService.get(\"undoRedoCellEditingLimit\");e<=0||(this.undoStack=new e_(e),this.redoStack=new e_(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,CR.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,CR.EVENT_MODEL_UPDATED,(e=>{e.keepUndoRedoStack||this.clearStacks()})),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,CR.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((()=>{this.gridBodyCtrl=this.ctrlsService.getGridBodyCtrl()})))}getCurrentUndoStackSize(){return this.undoStack?this.undoStack.getCurrentStackSize():0}getCurrentRedoStackSize(){return this.redoStack?this.redoStack.getCurrentStackSize():0}undo(e){const t={type:CR.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);const n=this.undoRedo(this.undoStack,this.redoStack,\"initialRange\",\"oldValue\",\"undo\"),r={type:CR.EVENT_UNDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)}redo(e){const t={type:CR.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);const n=this.undoRedo(this.redoStack,this.undoStack,\"finalRange\",\"newValue\",\"redo\"),r={type:CR.EVENT_REDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)}undoRedo(e,t,n,r,i){if(!e)return!1;const o=e.pop();return!(!o||!o.cellValueChanges||(this.processAction(o,(e=>e[r]),i),o instanceof ZF?this.processRange(o.ranges||[o[n]]):this.processCell(o.cellValueChanges),t.push(o),0))}processAction(e,t,n){e.cellValueChanges.forEach((e=>{const{rowIndex:r,rowPinned:i,columnId:o}=e,a={rowIndex:r,rowPinned:i},s=this.getRowNode(a);s.displayed&&s.setDataValue(o,t(e),n)}))}processRange(e){let t;this.rangeService.removeAllCellRanges(!0),e.forEach(((n,r)=>{if(!n)return;const i=n.startRow,o=n.endRow;r===e.length-1&&(t={rowPinned:i.rowPinned,rowIndex:i.rowIndex,columnId:n.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnStart:n.startColumn,columns:n.columns};this.rangeService.addCellRange(a)}))}processCell(e){const t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},o=this.getRowNode(i),a={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(a,!!this.rangeService)}setLastFocusedCell(e,t){const{rowIndex:n,columnId:r,rowPinned:i}=e,o=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getGridColumn(r);if(!a)return;o.ensureIndexVisible(n),o.ensureColumnVisible(a);const s={rowIndex:n,column:a,rowPinned:i};this.focusService.setFocusedCell(DT(TT({},s),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(s)}addRowEditingListeners(){this.addManagedListener(this.eventService,CR.EVENT_ROW_EDITING_STARTED,(e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,CR.EVENT_ROW_EDITING_STOPPED,(()=>{const e=new XF(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null}))}addCellEditingListeners(){this.addManagedListener(this.eventService,CR.EVENT_CELL_EDITING_STARTED,(e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,CR.EVENT_CELL_EDITING_STOPPED,(e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const e=new XF(this.cellValueChanges);this.pushActionsToUndoStack(e)}}))}addPasteListeners(){this.addManagedListener(this.eventService,CR.EVENT_PASTE_START,(()=>{this.isPasting=!0})),this.addManagedListener(this.eventService,CR.EVENT_PASTE_END,(()=>{const e=new XF(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1}))}addFillListeners(){this.addManagedListener(this.eventService,CR.EVENT_FILL_START,(()=>{this.isRangeInAction=!0})),this.addManagedListener(this.eventService,CR.EVENT_FILL_END,(e=>{const t=new ZF(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1}))}addCellKeyListeners(){this.addManagedListener(this.eventService,CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(()=>{this.isRangeInAction=!0})),this.addManagedListener(this.eventService,CR.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(()=>{let e;e=this.rangeService&&this.gridOptionsService.get(\"enableRangeSelection\")?new ZF(this.cellValueChanges,void 0,void 0,[...this.rangeService.getCellRanges()]):new XF(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}))}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}getRowNode(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}}};MT([xD(\"focusService\")],t_.prototype,\"focusService\",2),MT([xD(\"ctrlsService\")],t_.prototype,\"ctrlsService\",2),MT([xD(\"rowModel\")],t_.prototype,\"rowModel\",2),MT([xD(\"pinnedRowModel\")],t_.prototype,\"pinnedRowModel\",2),MT([xD(\"cellPositionUtils\")],t_.prototype,\"cellPositionUtils\",2),MT([xD(\"rowPositionUtils\")],t_.prototype,\"rowPositionUtils\",2),MT([xD(\"columnModel\")],t_.prototype,\"columnModel\",2),MT([AD(\"rangeService\")],t_.prototype,\"rangeService\",2),MT([CD],t_.prototype,\"init\",1),t_=MT([ED(\"undoRedoService\")],t_);var n_=class extends vR{findHeader(e,t){let n,r,i;if(e.column instanceof wR?(r=`getDisplayedGroup${t}`,n=this.columnModel[r](e.column)):(i=`getDisplayedCol${t}`,n=this.columnModel[i](e.column)),!n)return;let{headerRowIndex:o}=e;if(\"filter\"!==this.getHeaderRowType(o)){const e=[n];for(;n.getParent();)n=n.getParent(),e.push(n);n=e[e.length-1-o]}const{column:a,headerRowIndex:s}=this.getHeaderIndexToFocus(n,o);return{column:a,headerRowIndex:s}}getHeaderIndexToFocus(e,t){let n;if(e instanceof wR&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){const r=e;n=r.getLeafColumns()[0];let i=n;for(;i!==r;)t++,i=i.getParent()}return{column:n||e,headerRowIndex:t}}isAnyChildSpanningHeaderHeight(e){return!!e&&e.getLeafColumns().some((e=>e.isSpanHeaderHeight()))}getColumnVisibleParent(e,t){const n=this.getHeaderRowType(t),r=\"column\"===n;let i=\"filter\"===n?e:e.getParent(),o=t-1,a=o;if(r&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;i&&i.isPadding();)i=i.getParent(),o--;a=o,o<0&&(i=e,o=t,a=void 0)}return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:a}}getColumnVisibleChild(e,t,n=\"After\"){let r=e,i=t+1,o=i;if(\"group\"===this.getHeaderRowType(t)){const t=e.getDisplayedLeafColumns(),o=\"After\"===n?t[0]:HD(t),a=[];let s=o;for(;s.getParent()!==e;)s=s.getParent(),a.push(s);if(r=o,o.isSpanHeaderHeight())for(let e=a.length-1;e>=0;e--){const t=a[e];if(!t.isPadding()){r=t;break}i++}else r=HD(a),r||(r=o)}return{column:r,headerRowIndex:i,headerRowIndexWithoutSpan:o}}getHeaderRowType(e){const t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const n=this.columnModel.getAllDisplayedColumns(),r=n[\"start\"===t?0:n.length-1];if(!r)return;const i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return\"group\"==i?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}};MT([xD(\"columnModel\")],n_.prototype,\"columnModel\",2),MT([xD(\"ctrlsService\")],n_.prototype,\"ctrlsService\",2),n_=MT([ED(\"headerPositionUtils\")],n_);var r_=class{buildColumnDefs(e,t,n){const r=[],i={};return e.forEach((e=>{let o=!0,a=this.createDefFromColumn(e,t,n),s=e.getOriginalParent(),l=null;for(;s;){let e=null;if(s.isPadding()){s=s.getOriginalParent();continue}const t=i[s.getGroupId()];if(t){t.children.push(a),o=!1;break}if(e=this.createDefFromGroup(s),e&&(e.children=[a],i[e.groupId]=e,a=e,s=s.getOriginalParent()),null!=s&&l===s){o=!1;break}l=s}o&&r.push(a)})),r}createDefFromGroup(e){const t=YT(e.getColGroupDef(),[\"children\"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=YT(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r}};r_=MT([ED(\"columnDefFactory\")],r_);var i_=class{getInitialRowClasses(e){const t=[];return NT(e.extraCssClass)&&t.push(e.extraCssClass),t.push(\"ag-row\"),t.push(e.rowFocused?\"ag-row-focus\":\"ag-row-no-focus\"),e.fadeRowIn&&t.push(\"ag-opacity-zero\"),t.push(e.rowIsEven?\"ag-row-even\":\"ag-row-odd\"),e.rowNode.isRowPinned()&&t.push(\"ag-row-pinned\"),e.rowNode.isSelected()&&t.push(\"ag-row-selected\"),e.rowNode.footer&&t.push(\"ag-row-footer\"),t.push(\"ag-row-level-\"+e.rowLevel),e.rowNode.stub&&t.push(\"ag-row-loading\"),e.fullWidthRow&&t.push(\"ag-full-width-row\"),e.expandable&&(t.push(\"ag-row-group\"),t.push(e.rowNode.expanded?\"ag-row-group-expanded\":\"ag-row-group-contracted\")),e.rowNode.dragging&&t.push(\"ag-row-dragging\"),nR(t,this.processClassesFromGridOptions(e.rowNode)),nR(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?\"ag-row-position-relative\":\"ag-row-position-absolute\"),e.firstRowOnPage&&t.push(\"ag-row-first\"),e.lastRowOnPage&&t.push(\"ag-row-last\"),e.fullWidthRow&&(\"left\"===e.pinned&&t.push(\"ag-cell-last-left-pinned\"),\"right\"===e.pinned&&t.push(\"ag-cell-first-right-pinned\")),t}processClassesFromGridOptions(e){const t=[],n=e=>{\"string\"==typeof e?t.push(e):Array.isArray(e)&&e.forEach((e=>t.push(e)))},r=this.gridOptionsService.get(\"rowClass\");if(r){if(\"function\"==typeof r)return console.warn(\"AG Grid: rowClass should not be a function, please use getRowClass instead\"),[];n(r)}const i=this.gridOptionsService.getCallback(\"getRowClass\");return i&&n(i({data:e.data,node:e,rowIndex:e.rowIndex})),t}preProcessRowClassRules(e){const t=[];return this.processRowClassRules(e,(e=>{t.push(e)}),(e=>{})),t}processRowClassRules(e,t,n){const r=this.gridOptionsService.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});this.stylingService.processClassRules(void 0,this.gridOptionsService.get(\"rowClassRules\"),r,t,n)}calculateRowLevel(e){return e.group?e.level:e.parent?e.parent.level+1:0}};MT([xD(\"stylingService\")],i_.prototype,\"stylingService\",2),MT([xD(\"gridOptionsService\")],i_.prototype,\"gridOptionsService\",2),i_=MT([ED(\"rowCssClassCalculator\")],i_);var o_=class extends vR{init(){this.isAccentedSort=this.gridOptionsService.get(\"accentedSort\"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener(\"accentedSort\",(e=>this.isAccentedSort=e.currentValue)),this.addManagedPropertyListener(\"autoGroupColumnDef\",(()=>this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup()))}doFullSort(e,t){const n=e.map(((e,t)=>({currentPos:t,rowNode:e})));return n.sort(this.compareRowNodes.bind(this,t)),n.map((e=>e.rowNode))}compareRowNodes(e,t,n){const r=t.rowNode,i=n.rowNode;for(let t=0,n=e.length;t<n;t++){const n=e[t],o=\"desc\"===n.sort,a=this.getValue(r,n.column),s=this.getValue(i,n.column);let l;const c=this.getComparator(n,r);if(l=c?c(a,s,r,i,o):Tk.defaultComparator(a,s,this.isAccentedSort),!isNaN(l)&&0!==l)return\"asc\"===n.sort?l:-1*l}return t.currentPos-n.currentPos}getComparator(e,t){const n=e.column,r=n.getColDef().comparator;if(null!=r)return r;if(!n.getColDef().showRowGroup)return;const i=!t.group&&n.getColDef().field;if(!i)return;const o=this.columnModel.getPrimaryColumn(i);return o?o.getColDef().comparator:void 0}getValue(e,t){var n,r;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){const r=null==(n=e.allLeafChildren)?void 0:n[0];return r?this.valueService.getValue(t,r,!1,!1):void 0}const i=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!i)return;return null==(r=e.groupData)?void 0:r[i.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)}};MT([xD(\"valueService\")],o_.prototype,\"valueService\",2),MT([xD(\"columnModel\")],o_.prototype,\"columnModel\",2),MT([CD],o_.prototype,\"init\",1),o_=MT([ED(\"rowNodeSorter\")],o_);var a_=class extends vR{constructor(){super(...arguments),this.ready=!1,this.readyCallbacks=[]}checkReady(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){const e=this.createReadyParams();this.readyCallbacks.forEach((t=>t(e))),this.readyCallbacks.length=0}}whenReady(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)}createReadyParams(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}}registerFakeHScrollComp(e){this.fakeHScrollComp=e,this.checkReady()}registerFakeVScrollComp(e){this.fakeVScrollComp=e,this.checkReady()}registerGridHeaderCtrl(e){this.gridHeaderCtrl=e,this.checkReady()}registerCenterRowContainerCtrl(e){this.centerRowContainerCtrl=e,this.checkReady()}registerLeftRowContainerCtrl(e){this.leftRowContainerCtrl=e,this.checkReady()}registerRightRowContainerCtrl(e){this.rightRowContainerCtrl=e,this.checkReady()}registerTopCenterRowContainerCtrl(e){this.topCenterRowContainerCtrl=e,this.checkReady()}registerTopLeftRowContainerCon(e){this.topLeftRowContainerCtrl=e,this.checkReady()}registerTopRightRowContainerCtrl(e){this.topRightRowContainerCtrl=e,this.checkReady()}registerStickyTopCenterRowContainerCtrl(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()}registerStickyTopLeftRowContainerCon(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()}registerStickyTopRightRowContainerCtrl(e){this.stickyTopRightRowContainerCtrl=e,this.checkReady()}registerBottomCenterRowContainerCtrl(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()}registerBottomLeftRowContainerCtrl(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()}registerBottomRightRowContainerCtrl(e){this.bottomRightRowContainerCtrl=e,this.checkReady()}registerHeaderContainer(e,t){switch(t){case\"left\":this.leftHeaderRowContainerCtrl=e;break;case\"right\":this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()}registerGridBodyCtrl(e){this.gridBodyCtrl=e,this.checkReady()}registerGridCtrl(e){this.gridCtrl=e,this.checkReady()}getFakeHScrollComp(){return this.fakeHScrollComp}getFakeVScrollComp(){return this.fakeVScrollComp}getGridHeaderCtrl(){return this.gridHeaderCtrl}getGridCtrl(){return this.gridCtrl}getCenterRowContainerCtrl(){return this.centerRowContainerCtrl}getTopCenterRowContainerCtrl(){return this.topCenterRowContainerCtrl}getBottomCenterRowContainerCtrl(){return this.bottomCenterRowContainerCtrl}getStickyTopCenterRowContainerCtrl(){return this.stickyTopCenterRowContainerCtrl}getGridBodyCtrl(){return this.gridBodyCtrl}getHeaderRowContainerCtrls(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]}getHeaderRowContainerCtrl(e){switch(e){case\"left\":return this.leftHeaderRowContainerCtrl;case\"right\":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}}};a_.NAME=\"ctrlsService\",a_=MT([ED(a_.NAME)],a_);var s_=class extends vR{constructor(){super(...arguments),this.registry={}}register(e){this.registry[e.controllerName]=e.controllerClass}getInstance(e){const t=this.registry[e];if(null!=t)return new t}};s_=MT([ED(\"ctrlsFactory\")],s_);var l_=class extends Lk{constructor(e,t){super(e),this.direction=t,this.hideTimeout=null}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass(\"ag-apple-scrollbar\",jM()||UM())}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=ZM(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui();[\"mouseenter\",\"mousedown\",\"touchstart\"].forEach((t=>this.addManagedListener(e,t,(()=>this.addOrRemoveCssClass(\"ag-scrollbar-active\",!0))))),[\"mouseleave\",\"touchend\"].forEach((t=>this.addManagedListener(e,t,(()=>this.addOrRemoveCssClass(\"ag-scrollbar-active\",!1)))))}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame((()=>this.setScrollVisible()))}hideAndShowInvisibleScrollAsNeeded(){this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL,(e=>{e.direction===this.direction&&(null!==this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=null),this.addOrRemoveCssClass(\"ag-scrollbar-scrolling\",!0))})),this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL_END,(()=>{this.hideTimeout=window.setTimeout((()=>{this.addOrRemoveCssClass(\"ag-scrollbar-scrolling\",!1),this.hideTimeout=null}),400)}))}attemptSettingScrollPosition(e){const t=this.getViewport();pD((()=>PO(t)),(()=>this.setScrollPosition(e)),100)}getViewport(){return this.eViewport}getContainer(){return this.eContainer}onScrollCallback(e){this.addManagedListener(this.getViewport(),\"scroll\",e)}};MT([Fk(\"eViewport\")],l_.prototype,\"eViewport\",2),MT([Fk(\"eContainer\")],l_.prototype,\"eContainer\",2),MT([xD(\"scrollVisibleService\")],l_.prototype,\"scrollVisibleService\",2),MT([xD(\"ctrlsService\")],l_.prototype,\"ctrlsService\",2),MT([xD(\"animationFrameService\")],l_.prototype,\"animationFrameService\",2);var c_=class e extends l_{constructor(){super(e.TEMPLATE,\"horizontal\")}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",e),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new RP((e=>this.eContainer.style.width=`${e}px`))),this.addManagedPropertyListeners([\"suppressHorizontalScroll\"],this.onScrollVisibilityChanged.bind(this))}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.get(\"enableRtl\"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}onPinnedRowDataChanged(){this.refreshCompBottom()}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleService.isVerticalScrollShowing();let t=this.columnModel.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,r=this.gridOptionsService.getScrollbarWidth();n&&(t+=r),jO(this.eRightSpacer,t),this.eRightSpacer.classList.toggle(\"ag-scroller-corner\",t<=r);let i=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(i+=r),jO(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle(\"ag-scroller-corner\",i<=r)}setScrollVisible(){const e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsService.get(\"suppressHorizontalScroll\"),r=e&&this.gridOptionsService.getScrollbarWidth()||0,i=n?0:0===r&&t?16:r;this.addOrRemoveCssClass(\"ag-scrollbar-invisible\",t),WO(this.getGui(),i),WO(this.eViewport,i),WO(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})}getScrollPosition(){return MO(this.getViewport(),this.enableRtl)}setScrollPosition(e){PO(this.getViewport())||this.attemptSettingScrollPosition(e),OO(this.getViewport(),e,this.enableRtl)}};c_.TEMPLATE='<div class=\"ag-body-horizontal-scroll\" aria-hidden=\"true\">\\n            <div class=\"ag-horizontal-left-spacer\" ref=\"eLeftSpacer\"></div>\\n            <div class=\"ag-body-horizontal-scroll-viewport\" ref=\"eViewport\">\\n                <div class=\"ag-body-horizontal-scroll-container\" ref=\"eContainer\"></div>\\n            </div>\\n            <div class=\"ag-horizontal-right-spacer\" ref=\"eRightSpacer\"></div>\\n        </div>',MT([Fk(\"eLeftSpacer\")],c_.prototype,\"eLeftSpacer\",2),MT([Fk(\"eRightSpacer\")],c_.prototype,\"eRightSpacer\",2),MT([xD(\"columnModel\")],c_.prototype,\"columnModel\",2),MT([xD(\"pinnedRowModel\")],c_.prototype,\"pinnedRowModel\",2),MT([CD],c_.prototype,\"postConstruct\",1);var d_=c_,u_=class extends vR{postConstruct(){const e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener(\"domLayout\",e)}checkContainerWidths(){const e=this.gridOptionsService.isDomLayout(\"print\"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:CR.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:CR.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))}getPinnedRightWidth(){return this.rightWidth}getPinnedLeftWidth(){return this.leftWidth}};MT([xD(\"columnModel\")],u_.prototype,\"columnModel\",2),MT([CD],u_.prototype,\"postConstruct\",1),u_=MT([ED(\"pinnedWidthService\")],u_);var h_=class extends vR{constructor(){super(...arguments),this.events=[]}postConstruct(){\"clientSide\"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)}dispatchExpanded(e){if(null==this.clientSideRowModel)return void this.eventService.dispatchEvent(e);this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((()=>{this.clientSideRowModel&&this.clientSideRowModel.onRowGroupOpened(),this.events.forEach((e=>this.eventService.dispatchEvent(e))),this.events=[]}))),this.dispatchExpandedDebounced()}};MT([xD(\"animationFrameService\")],h_.prototype,\"animationFrameService\",2),MT([xD(\"rowModel\")],h_.prototype,\"rowModel\",2),MT([CD],h_.prototype,\"postConstruct\",1),h_=MT([ED(\"rowNodeEventThrottle\")],h_);var p_=(e,t)=>{var n;return\"clientSide\"===(null!=(n=t.rowModelType)?n:\"clientSide\")?{module:\"@ag-grid-enterprise/row-grouping\"}:null},g_={enableRowGroup:p_,rowGroup:p_,rowGroupIndex:p_,enablePivot:p_,enableValue:p_,pivot:p_,pivotIndex:p_,aggFunc:p_,cellEditor:e=>\"agRichSelect\"===e.cellEditor||\"agRichSelectCellEditor\"===e.cellEditor?{module:\"@ag-grid-enterprise/rich-select\"}:null,menuTabs:e=>{var t;const n=[\"columnsMenuTab\",\"generalMenuTab\"];return(null==(t=e.menuTabs)?void 0:t.some((e=>n.includes(e))))?{module:\"@ag-grid-enterprise/menu\"}:null},columnsMenuParams:{module:[\"@ag-grid-enterprise/menu\",\"@ag-grid-enterprise/column-tool-panel\"]},columnChooserParams:{module:[\"@ag-grid-enterprise/menu\",\"@ag-grid-enterprise/column-tool-panel\"]},headerCheckboxSelection:{supportedRowModels:[\"clientSide\",\"serverSide\"],dependencies:(e,{rowSelection:t})=>\"multiple\"===t?null:\"headerCheckboxSelection is only supported with rowSelection=multiple\"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:[\"clientSide\"],dependencies:(e,{rowSelection:t})=>\"multiple\"===t?null:\"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple\"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:[\"clientSide\"],dependencies:(e,{rowSelection:t})=>\"multiple\"===t?null:\"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple\"},children:()=>f_},f_={objectName:\"colDef\",allProperties:UN.ALL_PROPERTIES,docsUrl:\"column-properties/\",deprecations:{columnsMenuParams:{version:\"31.1\",message:\"Use `columnChooserParams` instead.\"},suppressMenu:{version:\"31.1\",message:\"Use `suppressHeaderMenuButton` instead.\"},suppressCellFlash:{version:\"31.2\",message:\"Use `enableCellChangeFlash={false}` in the ColDef\"},dndSource:{version:\"31.2\",message:\"This feature has been replaced by `Row Dragging to an External DropZone`.\"},dndSourceOnRowDrag:{version:\"31.2\",message:\"This feature has been replaced by `Row Dragging to an External DropZone`.\"}},validations:g_},m_={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!1,enableBrowserTooltips:!1,tooltipTrigger:\"hover\",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:\"standard\",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:\"\\t\",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,suppressChartToolPanelsButton:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:\"never\",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:\"normal\",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:\"singleColumn\",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:\"never\",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:\"clientSide\",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!1,serverSidePivotResultFieldSeparator:\"_\",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:\"xy\",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,suppressGroupMaintainValueType:!1,functionsPassive:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,pivotMaxGeneratedColumns:-1},v_={sideBar:{module:\"@ag-grid-enterprise/side-bar\"},statusBar:{module:\"@ag-grid-enterprise/status-bar\"},enableCharts:{module:\"@ag-grid-enterprise/charts\"},getMainMenuItems:{module:\"@ag-grid-enterprise/menu\"},getContextMenuItems:{module:\"@ag-grid-enterprise/menu\"},allowContextMenuWithControlKey:{module:\"@ag-grid-enterprise/menu\"},enableAdvancedFilter:{module:\"@ag-grid-enterprise/advanced-filter\"},treeData:{supportedRowModels:[\"clientSide\",\"serverSide\"],module:\"@ag-grid-enterprise/row-grouping\",dependencies:e=>{var t;const n=null!=(t=e.rowModelType)?t:\"clientSide\";switch(n){case\"clientSide\":const t=`treeData requires 'getDataPath' in the ${n} row model.`;return e.getDataPath?null:t;case\"serverSide\":const r=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${n} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:r}return null}},masterDetail:{module:\"@ag-grid-enterprise/master-detail\"},enableRangeSelection:{module:\"@ag-grid-enterprise/range-selection\"},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:[\"clientSide\"]},groupIncludeFooter:{supportedRowModels:[\"clientSide\",\"serverSide\"],dependencies:e=>{var t;switch(null!=(t=e.rowModelType)?t:\"clientSide\"){case\"clientSide\":return null;case\"serverSide\":const t=\"groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll\";return e.suppressServerSideInfiniteScroll?t:null}return null}},groupIncludeTotalFooter:{supportedRowModels:[\"clientSide\"]},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:[\"multiple\"]}},suppressParentsInRowNodes:{dependencies:{groupSelectsChildren:[void 0,!1]}},viewportDatasource:{supportedRowModels:[\"viewport\"],module:\"@ag-grid-enterprise/viewport-row-model\"},serverSideDatasource:{supportedRowModels:[\"serverSide\"],module:\"@ag-grid-enterprise/server-side-row-model\"},cacheBlockSize:{supportedRowModels:[\"serverSide\",\"infinite\"]},datasource:{supportedRowModels:[\"infinite\"],module:\"@ag-grid-community/infinite-row-model\"},rowData:{supportedRowModels:[\"clientSide\"],module:\"@ag-grid-community/client-side-row-model\"},columnDefs:()=>f_,defaultColDef:()=>f_,defaultColGroupDef:()=>f_,autoGroupColumnDef:()=>f_},y_={objectName:\"gridOptions\",allProperties:[...UR.ALL_PROPERTIES,...$R.EVENT_CALLBACKS],propertyExceptions:[\"api\",\"columnApi\"],docsUrl:\"grid-options/\",deprecations:{enableChartToolPanelsButton:{version:\"29\"},functionsPassive:{version:\"29.2\"},onColumnRowGroupChangeRequest:{version:\"29.2\"},onColumnPivotChangeRequest:{version:\"29.2\"},onColumnValueChangeRequest:{version:\"29.2\"},onColumnAggFuncChangeRequest:{version:\"29.2\"},serverSideFilterAllLevels:{version:\"30\",message:\"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`.\"},suppressAggAtRootLevel:{version:\"30\",message:\"The root level aggregation is now suppressed by default. This can be toggled using  `alwaysAggregateAtRootLevel`.\"},excludeHiddenColumnsFromQuickFilter:{version:\"30\",message:\"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`.\"},enterMovesDown:{version:\"30\",renamed:\"enterNavigatesVertically\"},enterMovesDownAfterEdit:{version:\"30\",renamed:\"enterNavigatesVerticallyAfterEdit\"},suppressParentsInRowNodes:{version:\"30.2\",message:\"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization.\"},advancedFilterModel:{version:\"31\",message:\"Use `initialState.filter.advancedFilterModel` instead.\"},suppressAsyncEvents:{version:\"31\",message:\"Events should be handled asynchronously.\"},cellFadeDelay:{version:\"31.1\",renamed:\"cellFadeDuration\"},cellFlashDelay:{version:\"31.1\",renamed:\"cellFlashDuration\"},suppressServerSideInfiniteScroll:{version:\"31.1\"},serverSideSortOnServer:{version:\"31.1\"},serverSideFilterOnServer:{version:\"31.1\"},enableCellChangeFlash:{version:\"31.2\",message:\"Use `enableCellChangeFlash` in the `ColDef` or `defaultColDef` for all columns.\"}},validations:v_},b_=class{constructor(){this.destroyed=!1,this.domDataKey=\"__AG_\"+Math.random().toString(),this.propertyEventService=new MD,this.globalEventHandlerFactory=e=>(t,n)=>{if(this.destroyed)return;const r=SR.has(t);if(r&&!e||!r&&e)return;const i=$R.getCallbackForEvent(t),o=this.gridOptions[i];\"function\"==typeof o&&this.frameworkOverrides.wrapOutgoing((()=>{o(n)}))}}get context(){return this.gridOptions.context}init(){this.columnApi=new xF(this.api);const e=!this.get(\"suppressAsyncEvents\");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),e),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.getScrollbarWidth()}destroy(){this.destroyed=!0,this.columnApi=void 0}get(e){var t;return null!=(t=this.gridOptions[e])?t:m_[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return NT(this.gridOptions[e])}mergeGridCommonParams(e){return e?t=>{const n=t;return n.api=this.api,n.columnApi=this.columnApi,n.context=this.context,e(n)}:e}static toBoolean(e){return\"boolean\"==typeof e?e:\"string\"==typeof e&&(\"TRUE\"===e.toUpperCase()||\"\"==e)}static toNumber(e){if(\"number\"==typeof e)return e;if(\"string\"==typeof e){const t=parseInt(e);if(isNaN(t))return;return t}}static toConstrainedNum(e,t){return n=>{const r=b_.toNumber(n);if(!(null==r||r<e||r>t))return r}}static getCoercedValue(e,t){const n=b_.PROPERTY_COERCIONS.get(e);return n?n(t):t}static getCoercedGridOptions(e){const t={};return Object.entries(e).forEach((([e,n])=>{const r=b_.getCoercedValue(e,n);t[e]=r})),t}updateGridOptions({options:e,source:t=\"api\"}){const n={id:b_.changeSetId++,properties:[]},r=[];Object.entries(e).forEach((([e,i])=>{\"api\"===t&&HR[e]&&nD(`${e} is an initial property and cannot be updated.`);const o=b_.getCoercedValue(e,i),a=\"object\"==typeof o&&\"api\"===t,s=this.gridOptions[e];if(a||s!==o){this.gridOptions[e]=o;const i={type:e,currentValue:o,previousValue:s,changeSet:n,source:t};r.push(i)}})),this.validationService.processGridOptions(this.gridOptions),n.properties=r.map((e=>e.type)),r.forEach((e=>{this.gridOptions.debug&&console.log(`AG Grid: Updated property ${e.type} from `,e.previousValue,\" to  \",e.currentValue),this.propertyEventService.dispatchEvent(e)}))}addEventListener(e,t){this.propertyEventService.addEventListener(e,t)}removeEventListener(e,t){this.propertyEventService.removeEventListener(e,t)}getScrollbarWidth(){if(null==this.scrollbarWidth){const e=\"number\"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:QM();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:CR.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth}isRowModelType(e){return this.gridOptions.rowModelType===e||\"clientSide\"===e&&PT(this.gridOptions.rowModelType)}isDomLayout(e){var t;return(null!=(t=this.gridOptions.domLayout)?t:\"normal\")===e}isRowSelection(){return\"single\"===this.gridOptions.rowSelection||\"multiple\"===this.gridOptions.rowSelection}useAsyncEvents(){return!this.get(\"suppressAsyncEvents\")}isGetRowHeightFunction(){return\"function\"==typeof this.gridOptions.getRowHeight}getRowHeightForNode(e,t=!1,n){if(null==n&&(n=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};const r={node:e,data:e.data},i=this.getCallback(\"getRowHeight\")(r);if(this.isNumeric(i))return 0===i&&nD(\"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.\"),{height:Math.max(1,i),estimated:!1}}return e.detail&&this.get(\"masterDetail\")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}}getMasterDetailRowHeight(){return this.get(\"detailRowAutoHeight\")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}}getRowHeightAsNumber(){if(!this.gridOptions.rowHeight||PT(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();const e=this.environment.refreshRowHeightVariable();return-1!==e?e:(console.warn(\"AG Grid row height must be a number if not using standard row model\"),this.environment.getDefaultRowHeight())}isNumeric(e){return!isNaN(e)&&\"number\"==typeof e&&isFinite(e)}getDomDataKey(){return this.domDataKey}getDomData(e,t){const n=e[this.getDomDataKey()];return n?n[t]:void 0}setDomData(e,t,n){const r=this.getDomDataKey();let i=e[r];PT(i)&&(i={},e[r]=i),i[t]=n}getDocument(){let e=null;return this.gridOptions.getDocument&&NT(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&NT(e)?e:document}getWindow(){return this.getDocument().defaultView||window}getRootNode(){return this.eGridDiv.getRootNode()}getAsyncTransactionWaitMillis(){return NT(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50}isAnimateRows(){return!this.get(\"ensureDomOrder\")&&this.get(\"animateRows\")}isGroupRowsSticky(){return!(this.get(\"suppressGroupRowsSticky\")||this.get(\"paginateChildRows\")||this.get(\"groupHideOpenParents\")||this.isDomLayout(\"print\"))}isColumnsSortingCoupledToGroup(){const e=this.gridOptions.autoGroupColumnDef;return!(null==e?void 0:e.comparator)&&!this.get(\"treeData\")}getGroupAggFiltering(){const e=this.gridOptions.groupAggFiltering;return\"function\"==typeof e?this.getCallback(\"groupAggFiltering\"):!0===e?()=>!0:void 0}isGroupIncludeFooterTrueOrCallback(){const e=this.gridOptions.groupIncludeFooter;return!0===e||\"function\"==typeof e}getGroupIncludeFooter(){const e=this.gridOptions.groupIncludeFooter;return\"function\"==typeof e?this.getCallback(\"groupIncludeFooter\"):!0===e?()=>!0:()=>!1}isGroupMultiAutoColumn(){return this.gridOptions.groupDisplayType?\"multipleColumns\"===this.gridOptions.groupDisplayType:this.get(\"groupHideOpenParents\")}isGroupUseEntireRow(e){return!e&&\"groupRows\"===this.gridOptions.groupDisplayType}getGridCommonParams(){return{api:this.api,columnApi:this.columnApi,context:this.context}}addGridCommonParams(e){const t=e;return t.api=this.api,t.columnApi=this.columnApi,t.context=this.context,t}};b_.PROPERTY_COERCIONS=new Map([...UR.BOOLEAN_PROPERTIES.map((e=>[e,b_.toBoolean])),...UR.NUMBER_PROPERTIES.map((e=>[e,b_.toNumber])),[\"groupAggFiltering\",e=>\"function\"==typeof e?e:b_.toBoolean(e)],[\"pageSize\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"autoSizePadding\",b_.toConstrainedNum(0,Number.MAX_VALUE)],[\"keepDetailRowsCount\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"rowBuffer\",b_.toConstrainedNum(0,Number.MAX_VALUE)],[\"infiniteInitialRowCount\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"cacheOverflowSize\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"cacheBlockSize\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"serverSideInitialRowCount\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"viewportRowModelPageSize\",b_.toConstrainedNum(1,Number.MAX_VALUE)],[\"viewportRowModelBufferSize\",b_.toConstrainedNum(0,Number.MAX_VALUE)]]),b_.changeSetId=0,MT([xD(\"gridOptions\")],b_.prototype,\"gridOptions\",2),MT([xD(\"eventService\")],b_.prototype,\"eventService\",2),MT([xD(\"environment\")],b_.prototype,\"environment\",2),MT([xD(\"frameworkOverrides\")],b_.prototype,\"frameworkOverrides\",2),MT([xD(\"eGridDiv\")],b_.prototype,\"eGridDiv\",2),MT([xD(\"validationService\")],b_.prototype,\"validationService\",2),MT([xD(\"gridApi\")],b_.prototype,\"api\",2),MT([CD],b_.prototype,\"init\",1),MT([SD],b_.prototype,\"destroy\",1),b_=MT([ED(\"gridOptionsService\")],b_);var w_=class extends vR{getLocaleTextFunc(){const e=this.gridOptionsService.getCallback(\"getLocaleText\");if(e)return(t,n,r)=>e({key:t,defaultValue:n,variableValues:r});const t=this.gridOptionsService.get(\"localeText\");return(e,n,r)=>{let i=t&&t[e];if(i&&r&&r.length){let e=0;for(;!(e>=r.length)&&-1!==i.indexOf(\"${variable}\");)i=i.replace(\"${variable}\",r[e++])}return null!=i?i:n}}};w_=MT([ED(\"localeService\")],w_);var C_=class e extends l_{constructor(){super(e.TEMPLATE,\"vertical\")}postConstruct(){super.postConstruct(),this.createManagedBean(new TP(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,CR.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))}setScrollVisible(){const e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,n=e&&this.gridOptionsService.getScrollbarWidth()||0,r=0===n&&t?16:n;this.addOrRemoveCssClass(\"ag-scrollbar-invisible\",t),jO(this.getGui(),r),jO(this.eViewport,r),jO(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})}onRowContainerHeightChanged(){const{ctrlsService:e}=this,t=e.getGridBodyCtrl().getBodyViewportElement(),n=this.getScrollPosition(),r=t.scrollTop;n!=r&&this.setScrollPosition(r,!0)}getScrollPosition(){return this.getViewport().scrollTop}setScrollPosition(e,t){t||PO(this.getViewport())||this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e}};C_.TEMPLATE='<div class=\"ag-body-vertical-scroll\" aria-hidden=\"true\">\\n            <div class=\"ag-body-vertical-scroll-viewport\" ref=\"eViewport\">\\n                <div class=\"ag-body-vertical-scroll-container\" ref=\"eContainer\"></div>\\n            </div>\\n        </div>',MT([CD],C_.prototype,\"postConstruct\",1);var S_=C_,E_={january:\"January\",february:\"February\",march:\"March\",april:\"April\",may:\"May\",june:\"June\",july:\"July\",august:\"August\",september:\"September\",october:\"October\",november:\"November\",december:\"December\"},x_=[\"january\",\"february\",\"march\",\"april\",\"may\",\"june\",\"july\",\"august\",\"september\",\"october\",\"november\",\"december\"],A_=class extends vR{constructor(){super(...arguments),this.dataTypeDefinitions={},this.isWaitingForRowData=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}init(){this.groupHideOpenParents=this.gridOptionsService.get(\"groupHideOpenParents\"),this.addManagedPropertyListener(\"groupHideOpenParents\",(()=>{this.groupHideOpenParents=this.gridOptionsService.get(\"groupHideOpenParents\")})),this.processDataTypeDefinitions(),this.addManagedPropertyListener(\"dataTypeDefinitions\",(e=>{this.processDataTypeDefinitions(),this.columnModel.recreateColumnDefs(GR(e.source))}))}processDataTypeDefinitions(){var e;const t=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(t).forEach((([e,t])=>{this.dataTypeDefinitions[e]=DT(TT({},t),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(t)})}));const n=null!=(e=this.gridOptionsService.get(\"dataTypeDefinitions\"))?e:{};this.dataTypeMatchers={},Object.entries(n).forEach((([e,r])=>{const i=this.processDataTypeDefinition(r,n,[e],t);i&&(this.dataTypeDefinitions[e]=i,r.dataTypeMatcher&&(this.dataTypeMatchers[e]=r.dataTypeMatcher))})),this.checkObjectValueHandlers(t),[\"dateString\",\"text\",\"number\",\"boolean\",\"date\"].forEach((e=>{const n=this.dataTypeMatchers[e];n&&delete this.dataTypeMatchers[e],this.dataTypeMatchers[e]=null!=n?n:t[e].dataTypeMatcher}))}mergeDataTypeDefinitions(e,t){const n=TT(TT({},e),t);return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...this.convertColumnTypes(e.columnTypes),...this.convertColumnTypes(t.columnTypes)]),n}processDataTypeDefinition(e,t,n,r){let i;const o=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let n=r[o];const a=t[o];if(n&&a&&(n=a),!this.validateDataTypeDefinition(e,n,o))return;i=this.mergeDataTypeDefinitions(n,e)}else{if(n.includes(o))return void nD('Data type definition hierarchies (via the \"extendsDataType\" property) cannot contain circular references.');const a=t[o];if(!this.validateDataTypeDefinition(e,a,o))return;const s=this.processDataTypeDefinition(a,t,[...n,o],r);if(!s)return;i=this.mergeDataTypeDefinitions(s,e)}return DT(TT({},i),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(i)})}validateDataTypeDefinition(e,t,n){return t?t.baseDataType===e.baseDataType||(nD('The \"baseDataType\" property of a data type definition must match that of its parent.'),!1):(nD(`The data type definition ${n} does not exist.`),!1)}createGroupSafeValueFormatter(e){if(e.valueFormatter)return t=>{var n,r;if(null==(n=t.node)?void 0:n.group){const n=t.column.getAggFunc();if(n){if(\"first\"===n||\"last\"===n)return e.valueFormatter(t);if(\"number\"===e.baseDataType&&\"count\"!==n){if(\"number\"==typeof t.value)return e.valueFormatter(t);if(\"object\"==typeof t.value){if(!t.value)return;if(\"toNumber\"in t.value)return e.valueFormatter(DT(TT({},t),{value:t.value.toNumber()}));if(\"value\"in t.value)return e.valueFormatter(DT(TT({},t),{value:t.value.value}))}}}if(!this.gridOptionsService.get(\"suppressGroupMaintainValueType\"))return}else if(this.groupHideOpenParents&&t.column.isRowGroupActive()){if(\"string\"!=typeof t.value||(null==(r=e.dataTypeMatcher)?void 0:r.call(e,t.value)))return e.valueFormatter(t);if(!this.gridOptionsService.get(\"suppressGroupMaintainValueType\"))return}return e.valueFormatter(t)}}updateColDefAndGetDataTypeDefinitionColumnType(e,t,n){let{cellDataType:r}=t;const{field:i}=t;if(void 0===r&&(r=e.cellDataType),null!=r&&!0!==r||(r=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(i,n)),!r)return void(e.cellDataType=!1);const o=this.dataTypeDefinitions[r];if(o)return e.cellDataType=r,o.groupSafeValueFormatter&&(e.valueFormatter=o.groupSafeValueFormatter),o.valueParser&&(e.valueParser=o.valueParser),o.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,o,n),o.columnTypes;nD(`Missing data type definition - \"${r}\"`)}updateColDefAndGetColumnType(e,t,n){var r,i;const o=this.updateColDefAndGetDataTypeDefinitionColumnType(e,t,n),a=null!=(i=null!=(r=t.type)?r:o)?i:e.type;return e.type=a,a?this.convertColumnTypes(a):void 0}addColumnListeners(e){if(!this.isWaitingForRowData)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=e=>{t.add(e.key)};e.addEventListener(LD.EVENT_STATE_UPDATED,n),this.columnStateUpdateListenerDestroyFuncs.push((()=>e.removeEventListener(LD.EVENT_STATE_UPDATED,n)))}canInferCellDataType(e,t){var n;if(\"clientSide\"!==this.rowModel.getType())return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(t,r))return!1;const i=null===t.type?e.type:t.type;if(i){const e=null!=(n=this.gridOptionsService.get(\"columnTypes\"))?n:{};if(this.convertColumnTypes(i).some((t=>{const n=e[t.trim()];return n&&this.doColDefPropsPreventInference(n,r)})))return!1}return!this.doColDefPropsPreventInference(e,r)}doColDefPropsPreventInference(e,t){return[[\"cellRenderer\",\"agSparklineCellRenderer\"],[\"valueGetter\",void 0],[\"valueParser\",void 0],[\"refData\",void 0]].some((([n,r])=>this.doesColDefPropPreventInference(e,t,n,r)))}doesColDefPropPreventInference(e,t,n,r){if(!t[n])return!1;const i=e[n];return null===i?(t[n]=!1,!1):void 0===r?!!i:i===r}inferCellDataType(e,t){var n;if(!e)return;let r;const i=this.getInitialData();if(i){const t=e.indexOf(\".\")>=0&&!this.gridOptionsService.get(\"suppressFieldDotNotation\");r=QT(i,e,t)}else this.initWaitForRowData(t);if(null==r)return;const[o]=null!=(n=Object.entries(this.dataTypeMatchers).find((([e,t])=>t(r))))?n:[\"object\"];return o}getInitialData(){const e=this.gridOptionsService.get(\"rowData\");if(null==e?void 0:e.length)return e[0];if(this.initialData)return this.initialData;{const e=this.rowModel.getRootNode().allLeafChildren;if(null==e?void 0:e.length)return e[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isWaitingForRowData)return;this.isWaitingForRowData=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions;t&&this.columnModel.queueResizeOperations();const n=this.addManagedListener(this.eventService,CR.EVENT_ROW_DATA_UPDATE_STARTED,(e=>{const{firstRowData:r}=e;if(!r)return;null==n||n(),this.isWaitingForRowData=!1,this.processColumnsPendingInference(r,t),this.columnStateUpdatesPendingInference={},t&&this.columnModel.processResizeOperations();const i={type:CR.EVENT_DATA_TYPES_INFERRED};this.eventService.dispatchEvent(i)}))}isPendingInference(){return this.isWaitingForRowData}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.columnStateUpdateListenerDestroyFuncs.forEach((e=>e())),this.columnStateUpdateListenerDestroyFuncs=[];const r={},i={};Object.entries(this.columnStateUpdatesPendingInference).forEach((([e,o])=>{const a=this.columnModel.getGridColumn(e);if(!a)return;const s=a.getColDef();if(!this.columnModel.resetColumnDefIntoColumn(a,\"cellDataTypeInferred\"))return;const l=a.getColDef();if(t&&l.type&&l.type!==s.type){const t=this.getUpdatedColumnState(a,o);t.rowGroup&&null==t.rowGroupIndex&&(r[e]=t),t.pivot&&null==t.pivotIndex&&(i[e]=t),n.push(t)}})),t&&n.push(...this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(r,i)),n.length&&this.columnModel.applyColumnState({state:n},\"cellDataTypeInferred\"),this.initialData=null}getUpdatedColumnState(e,t){const n=this.columnModel.getColumnStateFromColDef(e);return t.forEach((e=>{delete n[e],\"rowGroup\"===e?delete n.rowGroupIndex:\"pivot\"===e&&delete n.pivotIndex})),n}checkObjectValueHandlers(e){const t=this.dataTypeDefinitions.object,n=e.object;this.hasObjectValueParser=t.valueParser!==n.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==n.valueFormatter}convertColumnTypes(e){let t=[];return e instanceof Array?e.some((e=>\"string\"!=typeof e))?console.warn(\"if colDef.type is supplied an array it should be of type 'string[]'\"):t=e:\"string\"==typeof e?t=e.split(\",\"):console.warn(\"colDef.type should be of type 'string' | 'string[]'\"),t}getDateStringTypeDefinition(e){var t;return e&&null!=(t=this.getDataTypeDefinition(e))?t:this.dataTypeDefinitions.dateString}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){var t;return null==(t=this.getDataTypeDefinition(e))?void 0:t.baseDataType}checkType(e,t){var n;if(null==t)return!0;const r=null==(n=this.getDataTypeDefinition(e))?void 0:n.dataTypeMatcher;return!r||r(t)}validateColDef(e){\"object\"===e.cellDataType&&(e.valueFormatter!==this.dataTypeDefinitions.object.groupSafeValueFormatter||this.hasObjectValueFormatter||nD('Cell data type is \"object\" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set \"colDef.valueFormatter\"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&nD('Cell data type is \"object\" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set \"colDef.valueParser\"'))}setColDefPropertiesForBaseDataType(e,t,n){const r=(e,n,r)=>{let i=e.getColDef().valueFormatter;return i===t.groupSafeValueFormatter&&(i=t.valueFormatter),this.valueFormatterService.formatValue(e,n,r,i)},i=yD.__isRegistered(\"@ag-grid-enterprise/set-filter\",this.context.getGridId()),o=this.localeService.getLocaleTextFunc(),a=t=>{const{filterParams:n}=e;e.filterParams=\"object\"==typeof n?TT(TT({},n),t):t};switch(t.baseDataType){case\"number\":e.cellEditor=\"agNumberCellEditor\",i&&a({comparator:(e,t)=>{const n=null==e?0:parseInt(e),r=null==t?0:parseInt(t);return n===r?0:n>r?1:-1}});break;case\"boolean\":e.cellEditor=\"agCheckboxCellEditor\",e.cellRenderer=\"agCheckboxCellRenderer\",e.suppressKeyboardEvent=e=>!!e.colDef.editable&&e.event.key===lk.SPACE,a(i?{valueFormatter:e=>NT(e.value)?o(String(e.value),e.value?\"True\":\"False\"):o(\"blanks\",\"(Blanks)\")}:{maxNumConditions:1,debounceMs:0,filterOptions:[\"empty\",{displayKey:\"true\",displayName:\"True\",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:\"false\",displayName:\"False\",predicate:(e,t)=>!1===t,numberOfInputs:0}]});break;case\"date\":e.cellEditor=\"agDateCellEditor\",e.keyCreator=e=>r(e.column,e.node,e.value),i&&a({valueFormatter:e=>{const t=r(e.column,e.node,e.value);return NT(t)?t:o(\"blanks\",\"(Blanks)\")},treeList:!0,treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=x_[Number(e)-1];return o(t,E_[t])}return null!=e?e:o(\"blanks\",\"(Blanks)\")}});break;case\"dateString\":{e.cellEditor=\"agDateStringCellEditor\",e.keyCreator=e=>r(e.column,e.node,e.value);const n=t.dateParser;a(i?{valueFormatter:e=>{const t=r(e.column,e.node,e.value);return NT(t)?t:o(\"blanks\",\"(Blanks)\")},treeList:!0,treeListPathGetter:e=>{const t=n(null!=e?e:void 0);return t?[String(t.getFullYear()),String(t.getMonth()+1),String(t.getDate())]:null},treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=x_[Number(e)-1];return o(t,E_[t])}return null!=e?e:o(\"blanks\",\"(Blanks)\")}}:{comparator:(e,t)=>{const r=n(t);return null==t||r<e?-1:r>e?1:0}});break}case\"object\":e.cellEditorParams={useFormatter:!0},e.comparator=(e,t)=>{const i=this.columnModel.getPrimaryColumn(n),o=null==i?void 0:i.getColDef();if(!i||!o)return 0;const a=null==e?\"\":r(i,null,e),s=null==t?\"\":r(i,null,t);return a===s?0:a>s?1:-1},e.keyCreator=e=>r(e.column,e.node,e.value),i?a({valueFormatter:e=>{const t=r(e.column,e.node,e.value);return NT(t)?t:o(\"blanks\",\"(Blanks)\")}}):e.filterValueGetter=e=>r(e.column,e.node,this.valueService.getValue(e.column,e.node))}}getDefaultDataTypes(){const e=e=>!!e.match(\"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\"),t=this.localeService.getLocaleTextFunc();return{number:{baseDataType:\"number\",valueParser:e=>{var t,n;return\"\"===(null==(n=null==(t=e.newValue)?void 0:t.trim)?void 0:n.call(t))?null:Number(e.newValue)},valueFormatter:e=>null==e.value?\"\":\"number\"!=typeof e.value||isNaN(e.value)?t(\"invalidNumber\",\"Invalid Number\"):String(e.value),dataTypeMatcher:e=>\"number\"==typeof e},text:{baseDataType:\"text\",valueParser:e=>\"\"===e.newValue?null:FT(e.newValue),dataTypeMatcher:e=>\"string\"==typeof e},boolean:{baseDataType:\"boolean\",valueParser:e=>{var t,n;return null==e.newValue?e.newValue:\"\"===(null==(n=null==(t=e.newValue)?void 0:t.trim)?void 0:n.call(t))?null:\"true\"===String(e.newValue).toLowerCase()},valueFormatter:e=>null==e.value?\"\":String(e.value),dataTypeMatcher:e=>\"boolean\"==typeof e},date:{baseDataType:\"date\",valueParser:e=>uO(null==e.newValue?null:String(e.newValue)),valueFormatter:e=>{var n;return null==e.value?\"\":e.value instanceof Date&&!isNaN(e.value.getTime())?null!=(n=lO(e.value,!1))?n:\"\":t(\"invalidDate\",\"Invalid Date\")},dataTypeMatcher:e=>e instanceof Date},dateString:{baseDataType:\"dateString\",dateParser:e=>{var t;return null!=(t=uO(e))?t:void 0},dateFormatter:e=>{var t;return null!=(t=lO(null!=e?e:null,!1))?t:void 0},valueParser:t=>e(String(t.newValue))?t.newValue:null,valueFormatter:t=>e(String(t.value))?t.value:\"\",dataTypeMatcher:t=>\"string\"==typeof t&&e(t)},object:{baseDataType:\"object\",valueParser:()=>null,valueFormatter:e=>{var t;return null!=(t=FT(e.value))?t:\"\"}}}}};MT([xD(\"rowModel\")],A_.prototype,\"rowModel\",2),MT([xD(\"columnModel\")],A_.prototype,\"columnModel\",2),MT([xD(\"columnUtils\")],A_.prototype,\"columnUtils\",2),MT([xD(\"valueService\")],A_.prototype,\"valueService\",2),MT([xD(\"valueFormatterService\")],A_.prototype,\"valueFormatterService\",2),MT([CD],A_.prototype,\"init\",1),A_=MT([ED(\"dataTypeService\")],A_);var T_=class extends vR{parseValue(e,t,n,r){const i=e.getColDef(),o=this.gridOptionsService.addGridCommonParams({node:t,data:null==t?void 0:t.data,oldValue:r,newValue:n,colDef:i,column:e}),a=i.valueParser;return NT(a)?\"function\"==typeof a?a(o):this.expressionService.evaluate(a,o):n}};MT([xD(\"expressionService\")],T_.prototype,\"expressionService\",2),T_=MT([ED(\"valueParserService\")],T_);var D_=class extends vR{constructor(){super(...arguments),this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener(\"columnDefs\",(e=>this.setColumnDefs(e)))}start(){this.ctrlsService.whenReady((()=>{const e=this.gridOptionsService.get(\"columnDefs\");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()}))}setColumnsAndData(e){this.columnModel.setColumnDefs(null!=e?e:[],\"gridInitializing\"),this.rowModel.start()}gridReady(){this.dispatchGridReadyEvent();const e=yD.__isRegistered(\"@ag-grid-enterprise/core\",this.context.getGridId());new MF(\"AG Grid\",(()=>this.gridOptionsService.get(\"debug\"))).log(`initialised successfully, enterprise = ${e}`)}dispatchGridReadyEvent(){const e={type:CR.EVENT_GRID_READY};this.eventService.dispatchEvent(e)}setColumnDefs(e){const t=this.gridOptionsService.get(\"columnDefs\");if(t)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(t)):void this.columnModel.setColumnDefs(t,GR(e.source))}};MT([xD(\"ctrlsService\")],D_.prototype,\"ctrlsService\",2),MT([xD(\"columnModel\")],D_.prototype,\"columnModel\",2),MT([xD(\"rowModel\")],D_.prototype,\"rowModel\",2),MT([CD],D_.prototype,\"postConstruct\",1),D_=MT([ED(\"syncService\")],D_);var R_=class extends vR{constructor(){super(...arguments),this.manuallyDisplayed=!1}postConstruct(){this.addManagedListener(this.eventService,CR.EVENT_ROW_DATA_UPDATED,(()=>this.onRowDataUpdated())),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.onNewColumnsLoaded()))}registerOverlayWrapperComp(e){this.overlayWrapperComp=e,(!this.gridOptionsService.get(\"columnDefs\")||this.gridOptionsService.isRowModelType(\"clientSide\")&&!this.gridOptionsService.get(\"rowData\"))&&this.showLoadingOverlay()}showLoadingOverlay(){if(this.gridOptionsService.get(\"suppressLoadingOverlay\"))return;const e=this.userComponentFactory.getLoadingOverlayCompDetails({});this.showOverlay(e,\"ag-overlay-loading-wrapper\",\"loadingOverlayComponentParams\")}showNoRowsOverlay(){if(this.gridOptionsService.get(\"suppressNoRowsOverlay\"))return;const e=this.userComponentFactory.getNoRowsOverlayCompDetails({});this.showOverlay(e,\"ag-overlay-no-rows-wrapper\",\"noRowsOverlayComponentParams\")}showOverlay(e,t,n){const r=e.newAgStackInstance(),i=this.addManagedPropertyListener(n,(({currentValue:e})=>{r.then((t=>{t.refresh&&t.refresh(this.gridOptionsService.addGridCommonParams(TT({},null!=e?e:{})))}))}));this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(r,t,i)}hideOverlay(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()}showOrHideOverlay(){const e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.get(\"suppressNoRowsOverlay\");e&&!t?this.showNoRowsOverlay():this.hideOverlay()}onRowDataUpdated(){this.showOrHideOverlay()}onNewColumnsLoaded(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()}};MT([xD(\"userComponentFactory\")],R_.prototype,\"userComponentFactory\",2),MT([xD(\"paginationProxy\")],R_.prototype,\"paginationProxy\",2),MT([xD(\"columnModel\")],R_.prototype,\"columnModel\",2),MT([CD],R_.prototype,\"postConstruct\",1),R_=MT([ED(\"overlayService\")],R_);var M_=class extends vR{constructor(){super(...arguments),this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=uD((()=>this.dispatchQueuedStateUpdateEvents()),0),this.onRowGroupOpenedDebounced=uD((()=>this.updateCachedState(\"rowGroupExpansion\",this.getRowGroupExpansionState())),0),this.onRowSelectedDebounced=uD((()=>{this.staleStateKeys.delete(\"rowSelection\"),this.updateCachedState(\"rowSelection\",this.getRowSelectionState())}),0),this.staleStateKeys=new Set}postConstruct(){var e;this.isClientSideRowModel=\"clientSide\"===this.rowModel.getType(),this.cachedState=null!=(e=this.gridOptionsService.get(\"initialState\"))?e:{},this.ctrlsService.whenReady((()=>this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnGridReady()))));const t=this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(({source:e})=>{\"gridInitializing\"===e&&(null==t||t(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnColumnsInitialised())))})),n=this.addManagedListener(this.eventService,CR.EVENT_ROW_COUNT_READY,(()=>{null==n||n(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnRowCountReady()))})),r=this.addManagedListener(this.eventService,CR.EVENT_FIRST_DATA_RENDERED,(()=>{null==r||r(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnFirstDataRendered()))}))}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){this.updateCachedState(\"sideBar\",this.getSideBarState()),this.addManagedListener(this.eventService,CR.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(()=>this.updateCachedState(\"sideBar\",this.getSideBarState()))),this.addManagedListener(this.eventService,CR.EVENT_SIDE_BAR_UPDATED,(()=>this.updateCachedState(\"sideBar\",this.getSideBarState())))}setupStateOnColumnsInitialised(){var e;const t=null!=(e=this.gridOptionsService.get(\"initialState\"))?e:{};this.setColumnState(t),this.setColumnGroupState(t),this.updateColumnState([\"aggregation\",\"columnOrder\",\"columnPinning\",\"columnSizing\",\"columnVisibility\",\"pivot\",\"pivot\",\"rowGroup\",\"sort\"]),this.updateCachedState(\"columnGroup\",this.getColumnGroupState()),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VALUE_CHANGED,(()=>this.updateColumnState([\"aggregation\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_MOVED,(()=>this.updateColumnState([\"columnOrder\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PINNED,(()=>this.updateColumnState([\"columnPinning\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_RESIZED,(()=>this.updateColumnState([\"columnSizing\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VISIBLE,(()=>this.updateColumnState([\"columnVisibility\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_CHANGED,(()=>this.updateColumnState([\"pivot\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.updateColumnState([\"pivot\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.updateColumnState([\"rowGroup\"]))),this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,(()=>this.updateColumnState([\"sort\"]))),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateColumnState([\"aggregation\",\"columnOrder\",\"columnPinning\",\"columnSizing\",\"columnVisibility\",\"pivot\",\"pivot\",\"rowGroup\",\"sort\"]))),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_GROUP_OPENED,(()=>this.updateCachedState(\"columnGroup\",this.getColumnGroupState())))}setupStateOnRowCountReady(){var e;const{filter:t,rowGroupExpansion:n,rowSelection:r,pagination:i}=null!=(e=this.gridOptionsService.get(\"initialState\"))?e:{},o=this.gridOptionsService.get(\"advancedFilterModel\");(t||o)&&this.setFilterState(t,o),n&&this.setRowGroupExpansionState(n),r&&this.setRowSelectionState(r),i&&this.setPaginationState(i),this.updateCachedState(\"filter\",this.getFilterState()),this.updateCachedState(\"rowGroupExpansion\",this.getRowGroupExpansionState()),this.updateCachedState(\"rowSelection\",this.getRowSelectionState()),this.updateCachedState(\"pagination\",this.getPaginationState()),this.addManagedListener(this.eventService,CR.EVENT_FILTER_CHANGED,(()=>this.updateCachedState(\"filter\",this.getFilterState()))),this.addManagedListener(this.eventService,CR.EVENT_ROW_GROUP_OPENED,(()=>this.onRowGroupOpenedDebounced())),this.addManagedListener(this.eventService,CR.EVENT_EXPAND_COLLAPSE_ALL,(()=>this.updateCachedState(\"rowGroupExpansion\",this.getRowGroupExpansionState()))),this.addManagedListener(this.eventService,CR.EVENT_SELECTION_CHANGED,(()=>{this.staleStateKeys.add(\"rowSelection\"),this.onRowSelectedDebounced()})),this.addManagedListener(this.eventService,CR.EVENT_PAGINATION_CHANGED,(e=>{(e.newPage||e.newPageSize)&&this.updateCachedState(\"pagination\",this.getPaginationState())}))}setupStateOnFirstDataRendered(){var e;const{scroll:t,rangeSelection:n,focusedCell:r,columnOrder:i}=null!=(e=this.gridOptionsService.get(\"initialState\"))?e:{};r&&this.setFocusedCellState(r),n&&this.setRangeSelectionState(n),t&&this.setScrollState(t),this.setColumnPivotState(!!(null==i?void 0:i.orderedColIds)),this.updateCachedState(\"sideBar\",this.getSideBarState()),this.updateCachedState(\"focusedCell\",this.getFocusedCellState()),this.updateCachedState(\"rangeSelection\",this.getRangeSelectionState()),this.updateCachedState(\"scroll\",this.getScrollState()),this.addManagedListener(this.eventService,CR.EVENT_CELL_FOCUSED,(()=>this.updateCachedState(\"focusedCell\",this.getFocusedCellState()))),this.addManagedListener(this.eventService,CR.EVENT_RANGE_SELECTION_CHANGED,(e=>{e.finished&&this.updateCachedState(\"rangeSelection\",this.getRangeSelectionState())})),this.addManagedListener(this.eventService,CR.EVENT_BODY_SCROLL_END,(()=>this.updateCachedState(\"scroll\",this.getScrollState())))}getColumnState(){const e=this.columnModel.isPivotMode(),t=[],n=[],r=[],i=[],o=[],a=[],s=[],l=[],c=[],d=this.columnModel.getColumnState();for(let e=0;e<d.length;e++){const{colId:u,sort:h,sortIndex:p,rowGroup:g,rowGroupIndex:f,aggFunc:m,pivot:v,pivotIndex:y,pinned:b,hide:w,width:C,flex:S}=d[e];c.push(u),h&&(t[null!=p?p:0]={colId:u,sort:h}),g&&(n[null!=f?f:0]=u),\"string\"==typeof m&&r.push({colId:u,aggFunc:m}),v&&(i[null!=y?y:0]=u),b&&(\"right\"===b?a:o).push(u),w&&s.push(u),(S||C)&&l.push({colId:u,flex:null!=S?S:void 0,width:C})}return{sort:t.length?{sortModel:t}:void 0,rowGroup:n.length?{groupColIds:n}:void 0,aggregation:r.length?{aggregationModel:r}:void 0,pivot:i.length||e?{pivotMode:e,pivotColIds:i}:void 0,columnPinning:o.length||a.length?{leftColIds:o,rightColIds:a}:void 0,columnVisibility:s.length?{hiddenColIds:s}:void 0,columnSizing:l.length?{columnSizingModel:l}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}setColumnState(e){const{sort:t,rowGroup:n,aggregation:r,pivot:i,columnPinning:o,columnVisibility:a,columnSizing:s,columnOrder:l}=e,c={},d=e=>{let t=c[e];return t||(t={colId:e},c[e]=t,t)};t&&t.sortModel.forEach((({colId:e,sort:t},n)=>{const r=d(e);r.sort=t,r.sortIndex=n})),n&&n.groupColIds.forEach(((e,t)=>{const n=d(e);n.rowGroup=!0,n.rowGroupIndex=t})),r&&r.aggregationModel.forEach((({colId:e,aggFunc:t})=>{d(e).aggFunc=t})),i&&(i.pivotColIds.forEach(((e,t)=>{const n=d(e);n.pivot=!0,n.pivotIndex=t})),this.gridOptionsService.updateGridOptions({options:{pivotMode:i.pivotMode},source:\"gridInitializing\"})),o&&(o.leftColIds.forEach((e=>{d(e).pinned=\"left\"})),o.rightColIds.forEach((e=>{d(e).pinned=\"right\"}))),a&&a.hiddenColIds.forEach((e=>{d(e).hide=!0})),s&&s.columnSizingModel.forEach((({colId:e,flex:t,width:n})=>{const r=d(e);r.flex=null!=t?t:null,r.width=n}));const u=null==l?void 0:l.orderedColIds,h=!!(null==u?void 0:u.length),p=h?u.map((e=>d(e))):Object.values(c);if(p.length){this.columnStates=p;const e={sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};this.columnModel.applyColumnState({state:p,applyOrder:h,defaultState:e},\"gridInitializing\")}}setColumnPivotState(e){const t=this.columnStates;this.columnStates=void 0;const n=this.columnGroupStates;if(this.columnGroupStates=void 0,this.columnModel.isSecondaryColumnsPresent()){if(t){let n=[];for(const e of t)this.columnModel.getSecondaryColumn(e.colId)&&n.push(e);this.columnModel.applyColumnState({state:n,applyOrder:e},\"gridInitializing\")}n&&this.columnModel.setColumnGroupState(n,\"gridInitializing\")}}getColumnGroupState(){const e=this.columnModel.getColumnGroupState(),t=[];return e.forEach((({groupId:e,open:n})=>{n&&t.push(e)})),t.length?{openColumnGroupIds:t}:void 0}setColumnGroupState(e){var t;if(!e.hasOwnProperty(\"columnGroup\"))return;const n=new Set(null==(t=e.columnGroup)?void 0:t.openColumnGroupIds),r=this.columnModel.getColumnGroupState().map((({groupId:e})=>{const t=n.has(e);return t&&n.delete(e),{groupId:e,open:t}}));n.forEach((e=>{r.push({groupId:e,open:!0})})),r.length&&(this.columnGroupStates=r),this.columnModel.setColumnGroupState(r,\"gridInitializing\")}getFilterState(){var e;let t=this.filterManager.getFilterModel();t&&0===Object.keys(t).length&&(t=void 0);const n=null!=(e=this.filterManager.getAdvancedFilterModel())?e:void 0;return t||n?{filterModel:t,advancedFilterModel:n}:void 0}setFilterState(e,t){const{filterModel:n,advancedFilterModel:r}=null!=e?e:{advancedFilterModel:t};n&&this.filterManager.setFilterModel(n,\"columnFilter\"),r&&this.filterManager.setAdvancedFilterModel(r)}getRangeSelectionState(){var e;const t=null==(e=this.rangeService)?void 0:e.getCellRanges().map((e=>{const{id:t,type:n,startRow:r,endRow:i,columns:o,startColumn:a}=e;return{id:t,type:n,startRow:r,endRow:i,colIds:o.map((e=>e.getColId())),startColId:a.getColId()}}));return(null==t?void 0:t.length)?{cellRanges:t}:void 0}setRangeSelectionState(e){var t;if(!this.gridOptionsService.get(\"enableRangeSelection\"))return;const n=e.cellRanges.map((e=>DT(TT({},e),{columns:e.colIds.map((e=>this.columnModel.getGridColumn(e))),startColumn:this.columnModel.getGridColumn(e.startColId)})));null==(t=this.rangeService)||t.setCellRanges(n)}getScrollState(){var e,t,n;if(!this.isClientSideRowModel)return;const r=null==(e=this.ctrlsService.getGridBodyCtrl())?void 0:e.getScrollFeature(),{left:i}=null!=(t=null==r?void 0:r.getHScrollPosition())?t:{left:0},{top:o}=null!=(n=null==r?void 0:r.getVScrollPosition())?n:{top:0};return o||i?{top:o,left:i}:void 0}setScrollState(e){var t;if(!this.isClientSideRowModel)return;const{top:n,left:r}=e;null==(t=this.ctrlsService.getGridBodyCtrl())||t.getScrollFeature().setScrollPosition(n,r)}getSideBarState(){var e,t;return null==(t=null==(e=this.sideBarService)?void 0:e.getSideBarComp())?void 0:t.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.focusService.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{colId:t,rowIndex:n,rowPinned:r}=e;this.focusService.setFocusedCell({column:this.columnModel.getGridColumn(t),rowIndex:n,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const e=this.paginationProxy.getCurrentPage(),t=this.gridOptionsService.get(\"paginationAutoPageSize\")?void 0:this.paginationProxy.getPageSize();if(e||t)return{page:e,pageSize:t}}setPaginationState(e){e.pageSize&&!this.gridOptionsService.get(\"paginationAutoPageSize\")&&this.paginationProxy.setPageSize(e.pageSize,\"initialState\"),\"number\"==typeof e.page&&this.paginationProxy.setPage(e.page)}getRowSelectionState(){var e;const t=this.selectionService.getSelectionState();return t&&(Array.isArray(t)||!1!==t.selectAll&&!1!==t.selectAllChildren||(null==(e=null==t?void 0:t.toggledNodes)?void 0:e.length))?t:void 0}setRowSelectionState(e){this.selectionService.setSelectionState(e,\"gridInitializing\")}getRowGroupExpansionState(){const e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0}setRowGroupExpansionState(e){this.expansionService.expandRows(e.expandedRowGroupIds)}updateColumnState(e){const t=this.getColumnState();let n=!1;Object.entries(t).forEach((([e,t])=>{VT(t,this.cachedState[e])||(n=!0)})),this.cachedState=TT(TT({},this.cachedState),t),n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),VT(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState=DT(TT({},this.cachedState),{[e]:t})}refreshStaleState(){this.staleStateKeys.forEach((e=>{\"rowSelection\"===e&&this.setCachedStateValue(e,this.getRowSelectionState())})),this.staleStateKeys.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach((e=>this.queuedUpdateSources.add(e))),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear();const t={type:CR.EVENT_STATE_UPDATED,sources:e,state:this.cachedState};this.eventService.dispatchEvent(t)}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout((()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.columnAnimationService.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([\"gridInitializing\"]))}))}};MT([xD(\"filterManager\")],M_.prototype,\"filterManager\",2),MT([AD(\"rangeService\")],M_.prototype,\"rangeService\",2),MT([xD(\"ctrlsService\")],M_.prototype,\"ctrlsService\",2),MT([AD(\"sideBarService\")],M_.prototype,\"sideBarService\",2),MT([xD(\"focusService\")],M_.prototype,\"focusService\",2),MT([xD(\"columnModel\")],M_.prototype,\"columnModel\",2),MT([xD(\"paginationProxy\")],M_.prototype,\"paginationProxy\",2),MT([xD(\"rowModel\")],M_.prototype,\"rowModel\",2),MT([xD(\"selectionService\")],M_.prototype,\"selectionService\",2),MT([xD(\"expansionService\")],M_.prototype,\"expansionService\",2),MT([xD(\"columnAnimationService\")],M_.prototype,\"columnAnimationService\",2),MT([CD],M_.prototype,\"postConstruct\",1),M_=MT([ED(\"stateService\")],M_);var O_=class extends vR{init(){this.processGridOptions(this.gridOptions)}processGridOptions(e){this.processOptions(e,y_)}processColumnDefs(e){this.processOptions(e,f_)}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,propertyExceptions:o,objectName:a,docsUrl:s}=t;i&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...null!=o?o:[],...Object.keys(r)],i,a,s);const l=new Set;Object.keys(e).forEach((t=>{var i;const o=r[t];if(o)if(\"renamed\"in o){const{renamed:n,version:r}=o;l.add(`As of v${r}, ${String(t)} is deprecated. Please use ${String(n)} instead.`),e[n]=e[t]}else{const{message:e,version:n}=o;l.add(`As of v${n}, ${String(t)} is deprecated. ${null!=e?e:\"\"}`)}const a=e[t];if(null==a||!1===a)return;const s=n[t];let c;if(!s)return;if(\"function\"==typeof s){const n=s(e,this.gridOptions);if(!n)return;if(\"objectName\"in n){const r=e[t];return Array.isArray(r)?void r.forEach((e=>{this.processOptions(e,n)})):void this.processOptions(e[t],n)}c=n}else c=s;const{module:d,dependencies:u,supportedRowModels:h}=c;if(h){const e=null!=(i=this.gridOptions.rowModelType)?i:\"clientSide\";if(!h.includes(e))return void l.add(`${String(t)} is not supported with the '${e}' row model.`)}if(d){const e=Array.isArray(d)?d:[d];let n=!0;if(e.forEach((e=>{yD.__assertRegistered(e,String(t),this.context.getGridId())||(n=!1,l.add(`${String(t)} is only available when ${e} is loaded.`))})),!n)return}if(u){const n=this.checkForWarning(t,u,e);if(n)return void l.add(n)}})),l.size>0&&l.forEach((e=>{nD(e)}))}checkForWarning(e,t,n){if(\"function\"==typeof t)return t(n,this.gridOptions);const r=Object.entries(t).find((([e,t])=>{const r=n[e];return!t.includes(r)}));if(!r)return null;const[i,o]=r;return o.length>1?`'${String(e)}' requires '${i}' to be one of [${o.join(\", \")}].`:`'${String(e)}' requires '${i}' to be ${o[0]}.`}checkProperties(e,t,n,r,i){const o=ek(Object.getOwnPropertyNames(e),[\"__ob__\",\"__v_skip\",\"__metadata__\",...t,...n],n);if(WT(o,((e,t)=>{nD(`invalid ${r} property '${e}' did you mean any of these: ${t.slice(0,8).join(\", \")}`)})),Object.keys(o).length>0&&i){const e=this.getFrameworkOverrides().getDocLink(i);nD(`to see all the valid ${r} properties please check: ${e}`)}}};MT([xD(\"gridOptions\")],O_.prototype,\"gridOptions\",2),MT([CD],O_.prototype,\"init\",1),O_=MT([ED(\"validationService\")],O_);var k_=class extends vR{constructor(){super(...arguments),this.syncEventListeners=new Map,this.asyncEventListeners=new Map,this.syncGlobalEventListeners=new Set,this.globalEventListenerPairs=new Map}postConstruct(){this.frameworkEventWrappingService=new OD(this.getFrameworkOverrides())}addEventListener(e,t){const n=this.frameworkEventWrappingService.wrap(t),r=this.gridOptionsService.useAsyncEvents()&&!SR.has(e),i=r?this.asyncEventListeners:this.syncEventListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventService.addEventListener(e,n,r)}removeEventListener(e,t){var n;const r=this.frameworkEventWrappingService.unwrap(t),i=this.asyncEventListeners.get(e),o=!!(null==i?void 0:i.delete(r));o||null==(n=this.syncEventListeners.get(e))||n.delete(r),this.eventService.removeEventListener(e,r,o)}addGlobalListener(e){const t=this.frameworkEventWrappingService.wrapGlobal(e);if(this.gridOptionsService.useAsyncEvents()){const n=(e,n)=>{SR.has(e)&&t(e,n)},r=(e,n)=>{SR.has(e)||t(e,n)};this.globalEventListenerPairs.set(e,{syncListener:n,asyncListener:r}),this.eventService.addGlobalListener(n,!1),this.eventService.addGlobalListener(r,!0)}else this.syncGlobalEventListeners.add(t),this.eventService.addGlobalListener(t,!1)}removeGlobalListener(e){const t=this.frameworkEventWrappingService.unwrapGlobal(e);if(this.globalEventListenerPairs.has(t)){const{syncListener:n,asyncListener:r}=this.globalEventListenerPairs.get(t);this.eventService.removeGlobalListener(n,!1),this.eventService.removeGlobalListener(r,!0),this.globalEventListenerPairs.delete(e)}else this.syncGlobalEventListeners.delete(t),this.eventService.removeGlobalListener(t,!1)}destroyEventListeners(e,t){e.forEach(((e,n)=>{e.forEach((e=>this.eventService.removeEventListener(n,e,t))),e.clear()})),e.clear()}destroyGlobalListeners(e,t){e.forEach((e=>this.eventService.removeGlobalListener(e,t))),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.globalEventListenerPairs.forEach((({syncListener:e,asyncListener:t})=>{this.eventService.removeGlobalListener(e,!1),this.eventService.removeGlobalListener(t,!0)})),this.globalEventListenerPairs.clear()}};MT([CD],k_.prototype,\"postConstruct\",1),k_=MT([ED(\"apiEventService\")],k_);var I_=class extends Lk{constructor(){super('<span class=\"ag-paging-page-size\"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.paginationProxy.getPageSize()||(this.paginationProxy.setPageSize(t,\"pageSizeSelector\"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}init(){this.addManagedPropertyListener(\"paginationPageSizeSelector\",(()=>{this.onPageSizeSelectorValuesChange()})),this.addManagedListener(this.eventService,CR.EVENT_PAGINATION_CHANGED,(e=>this.handlePaginationChanged(e)))}handlePaginationChanged(e){if(!this.selectPageSizeComp||!(null==e?void 0:e.newPageSize))return;const t=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(\"\"):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))}reset(){kO(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gridOptionsService.get(\"pagination\")&&!this.gridOptionsService.get(\"suppressPaginationPanel\")&&!this.gridOptionsService.get(\"paginationAutoPageSize\")&&!1!==this.gridOptionsService.get(\"paginationPageSizeSelector\")}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.paginationProxy.getPageSize(),n=!t||!e.includes(t);n&&(e.unshift(\"\"),nD(\"The paginationPageSize grid option is set to a value that is not in the list of page size options.\\n                Please make sure that the paginationPageSize grid option is set to one of the values in the \\n                paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.\")),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);const r=this.localeService.getLocaleTextFunc(),i=r(\"pageSizeSelectorLabel\",\"Page Size:\"),o=e.map((e=>({value:String(e),text:String(e)}))),a=r(\"ariaPageSizeSelectorLabel\",\"Page Size\");this.selectPageSizeComp=this.createManagedBean(new tI).addOptions(o).setValue(String(n?\"\":t)).setAriaLabel(a).setLabel(i).onValueChange((()=>this.handlePageSizeItemSelected())),this.hasEmptyOption=n}getPageSizeSelectorValues(){const e=this.gridOptionsService.get(\"paginationPageSizeSelector\");return Array.isArray(e)&&this.validateValues(e)?[...e].sort(((e,t)=>e-t)):[20,50,100]}validateValues(e){if(!e.length)return nD(\"The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake.\\n                If you want to hide the page size selector, please set the paginationPageSizeSelector to false.\"),!1;for(let t=0;t<e.length;t++){const n=e[t],r=n>0;if(\"number\"!=typeof n)return nD(\"The paginationPageSizeSelector grid option contains a non-numeric value.\\n                    Please make sure that all values in the paginationPageSizeSelector array are numbers.\"),!1;if(!r)return nD(\"The paginationPageSizeSelector grid option contains a negative number or zero.\\n                    Please make sure that all values in the paginationPageSizeSelector array are positive.\"),!1}return!0}destroy(){this.toggleSelectDisplay(!1),super.destroy()}};MT([xD(\"localeService\")],I_.prototype,\"localeService\",2),MT([xD(\"gridOptionsService\")],I_.prototype,\"gridOptionsService\",2),MT([xD(\"paginationProxy\")],I_.prototype,\"paginationProxy\",2),MT([CD],I_.prototype,\"init\",1);var N_=class extends vR{constructor(){super(),this.descriptionContainer=null,this.announceValue=uD(this.announceValue.bind(this),200)}postConstruct(){const e=this.gridOptionsService.getDocument(),t=this.descriptionContainer=e.createElement(\"div\");t.classList.add(\"ag-aria-description-container\"),sM(t,\"polite\"),cM(t,\"additions text\"),lM(t,!0),this.eGridDiv.appendChild(t)}announceValue(e){this.descriptionContainer&&(this.descriptionContainer.textContent=\"\",setTimeout((()=>{this.isAlive()&&this.descriptionContainer&&(this.descriptionContainer.textContent=e)}),50))}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(kO(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null}};MT([xD(\"eGridDiv\")],N_.prototype,\"eGridDiv\",2),MT([CD],N_.prototype,\"postConstruct\",1),N_=MT([ED(\"ariaAnnouncementService\")],N_);var P_=1,L_=class{create(e,t,n,r,i){var o;const a=!!t.debug,s=null!=(o=t.gridId)?o:String(P_++),l=this.getRegisteredModules(i,s),c=this.createBeansList(t.rowModelType,l,s),d=this.createProvidedBeans(e,t,i);if(!c)return void rD(\"Failed to create grid.\");const u={providedBeanInstances:d,beanClasses:c,debug:a,gridId:s},h=new MF(\"Context\",(()=>u.debug)),p=new bD(u,h),g=p.getBean(\"beans\");return this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),n(p),g.syncService.start(),r&&r(p),g.gridApi}registerControllers(e,t){t.forEach((t=>{t.controllers&&t.controllers.forEach((t=>e.ctrlsFactory.register(t)))}))}registerStackComponents(e,t){const n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)}getRegisteredModules(e,t){const n=e?e.modules:null,r=yD.__getRegisteredModules(t),i=[],o={},a=(e,t,n)=>{var r;o[(r=t).moduleName]||(o[r.moduleName]=!0,i.push(r),yD.__register(r,e,n)),t.dependantModules&&t.dependantModules.forEach((t=>a(e,t,n)))};return n&&n.forEach((e=>a(!0,e,t))),r&&r.forEach((e=>a(!yD.__isPackageBased(),e,void 0))),i}registerModuleUserComponents(e,t){this.extractModuleEntity(t,(e=>e.userComponents?e.userComponents:[])).forEach((t=>{e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;PT(r)&&(r=new wF);const i={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,globalSyncEventListener:n?n.globalSyncEventListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createAgStackComponentsList(e){let t=[{componentName:\"AgCheckbox\",componentClass:rI},{componentName:\"AgRadioButton\",componentClass:iI},{componentName:\"AgToggleButton\",componentClass:jL},{componentName:\"AgInputTextField\",componentClass:mI},{componentName:\"AgInputTextArea\",componentClass:UL},{componentName:\"AgInputNumberField\",componentClass:vI},{componentName:\"AgInputDateField\",componentClass:WL},{componentName:\"AgInputRange\",componentClass:$L},{componentName:\"AgRichSelect\",componentClass:QL},{componentName:\"AgSelect\",componentClass:tI},{componentName:\"AgSlider\",componentClass:ZL},{componentName:\"AgGridBody\",componentClass:LP},{componentName:\"AgHeaderRoot\",componentClass:wL},{componentName:\"AgSortIndicator\",componentClass:NI},{componentName:\"AgPagination\",componentClass:$F},{componentName:\"AgPageSizeSelector\",componentClass:I_},{componentName:\"AgOverlayWrapper\",componentClass:KF},{componentName:\"AgGroupComponent\",componentClass:eF},{componentName:\"AgRowContainer\",componentClass:jP},{componentName:\"AgFakeHorizontalScroll\",componentClass:d_},{componentName:\"AgFakeVerticalScroll\",componentClass:S_},{componentName:\"AgAutocomplete\",componentClass:fF}];const n=this.extractModuleEntity(e,(e=>e.agStackComponents?e.agStackComponents:[]));return t=t.concat(n),t}createBeansList(e=\"clientSide\",t,n){const r=t.filter((t=>!t.rowModel||t.rowModel===e)),i={clientSide:\"@ag-grid-community/client-side-row-model\",infinite:\"@ag-grid-community/infinite-row-model\",serverSide:\"@ag-grid-enterprise/server-side-row-model\",viewport:\"@ag-grid-enterprise/viewport-row-model\"};if(!i[e])return void rD(\"Could not find row model for rowModelType = \"+e);if(!yD.__assertRegistered(i[e],`rowModelType = '${e}'`,n))return;const o=[uP,qF,QF,n_,FF,XN,SN,GF,VF,DL,HN,UF,CL,w_,O_,FL,YN,BR,MD,b_,dF,EF,JN,zR,vL,BL,NL,TF,yR,DF,SF,zP,_F,AF,RF,VR,kL,SL,XI,xF,NF,_P,jF,CF,LL,HL,FP,IF,PF,LF,WF,AR,zF,RL,t_,YR,r_,i_,VL,o_,a_,u_,h_,s_,A_,T_,ZN,D_,R_,M_,ML,k_,N_,OL],a=this.extractModuleEntity(r,(e=>e.beans?e.beans:[]));o.push(...a);const s=[];return o.forEach((e=>{s.indexOf(e)<0&&s.push(e)})),s}extractModuleEntity(e,t){return[].concat(...e.map(t))}},F_=class{wrap(e,t,n=[],r){const i=this.createWrapper(e,r);return t.forEach((e=>{this.createMethod(i,e,!0)})),n.forEach((e=>{this.createMethod(i,e,!1)})),i}unwrap(e){return e}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn(\"AG Grid: Framework component is missing the method \"+t+\"()\"),null)}}},__=\"undefined\"==typeof global?{}:global;__.HTMLElement=\"undefined\"==typeof HTMLElement?{}:HTMLElement,__.HTMLButtonElement=\"undefined\"==typeof HTMLButtonElement?{}:HTMLButtonElement,__.HTMLSelectElement=\"undefined\"==typeof HTMLSelectElement?{}:HTMLSelectElement,__.HTMLInputElement=\"undefined\"==typeof HTMLInputElement?{}:HTMLInputElement,__.Node=\"undefined\"==typeof Node?{}:Node,__.MouseEvent=\"undefined\"==typeof MouseEvent?{}:MouseEvent;var z_=class e{constructor(t,n,r,i,o,a){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=n,this.eventService=r,this.columnModel=i,this.beans=a,this.selectionService=o,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return Tk.cloneObject(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(t){if(\"string\"==typeof t)return void console.warn(\"AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first\");this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(t);const n=this.rootNode,r=this.rootNode.sibling;n.childrenAfterFilter=null,n.childrenAfterGroup=null,n.childrenAfterAggFilter=null,n.childrenAfterSort=null,n.childrenMapped=null,n.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?n.allLeafChildren=t.map((t=>this.createNode(t,this.rootNode,e.TOP_LEVEL))):(n.allLeafChildren=[],n.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=n.childrenAfterFilter,r.childrenAfterGroup=n.childrenAfterGroup,r.childrenAfterAggFilter=n.childrenAfterAggFilter,r.childrenAfterSort=n.childrenAfterSort,r.childrenMapped=n.childrenMapped,r.allLeafChildren=n.allLeafChildren)}updateRowData(e,t){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);const n={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.executeAdd(e,n),this.updateSelection(r,\"rowDataChanged\"),t&&Tk.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){const t={type:CR.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:(null==e?void 0:e.length)?e[0]:null};this.eventService.dispatchEvent(t)}updateSelection(e,t){const n=e.length>0;if(n&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),n){const e={type:CR.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(e)}}executeAdd(t,n){var r;const{add:i,addIndex:o}=t;if(Tk.missingOrEmpty(i))return;const a=i.map((t=>this.createNode(t,this.rootNode,e.TOP_LEVEL)));if(\"number\"==typeof o&&o>=0){const{allLeafChildren:e}=this.rootNode,t=e.length;let n=o;if(this.gridOptionsService.get(\"treeData\")&&o>0&&t>0)for(let i=0;i<t;i++)if((null==(r=e[i])?void 0:r.rowIndex)==o-1){n=i+1;break}const i=e.slice(0,n),s=e.slice(n,e.length);this.rootNode.allLeafChildren=[...i,...a,...s]}else this.rootNode.allLeafChildren=[...this.rootNode.allLeafChildren,...a];this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=a}executeRemove(e,t,n){const{remove:r}=e;if(Tk.missingOrEmpty(r))return;const i={};r.forEach((e=>{const r=this.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete this.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((e=>!i[e.id])),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(t,n,r){const{update:i}=t;Tk.missingOrEmpty(i)||i.forEach((t=>{const i=this.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&r.push(i),this.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))}lookupRowNode(e){const t=this.gridOptionsService.getCallback(\"getRowId\");let n;if(t){const r=t({data:e,level:0});if(n=this.allNodesMap[r],!n)return console.error(`AG Grid: could not find row id=${r}, data item was not found for this id`),null}else if(n=this.rootNode.allLeafChildren.find((t=>t.data===e)),!n)return console.error(\"AG Grid: could not find data item as object was not found\",e),console.error(\"Consider using getRowId to help the Grid find matching row data\"),null;return n||null}createNode(e,t,n){const r=new KI(this.beans);r.group=!1,this.setMasterForRow(r,e,n,!0);const i=this.gridOptionsService.get(\"suppressParentsInRowNodes\");return t&&!i&&(r.parent=t),r.level=n,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn(`AG Grid: duplicate node id '${r.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[r.id]=r,this.nextId++,r}setMasterForRow(e,t,n,r){if(this.gridOptionsService.get(\"treeData\"))e.setMaster(!1),r&&(e.expanded=!1);else{if(this.gridOptionsService.get(\"masterDetail\")){const n=this.gridOptionsService.get(\"isRowMaster\");n?e.setMaster(n(t)):e.setMaster(!0)}else e.setMaster(!1);if(r){const t=this.columnModel.getRowGroupColumns(),r=n+(t?t.length:0);e.expanded=!!e.master&&this.isExpanded(r)}}}isExpanded(e){const t=this.gridOptionsService.get(\"groupDefaultExpanded\");return-1===t||e<t}};z_.TOP_LEVEL=0,z_.ROOT_NODE_ID=\"ROOT_NODE_ID\";var G_=z_,V_=class extends vR{constructor(){super(...arguments),this.onRowHeightChanged_debounced=Tk.debounce(this.onRowHeightChanged.bind(this),100),this.rowsToDisplay=[],this.hasStarted=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowCountReady=!1}init(){const e=this.refreshModel.bind(this,{step:\"group\"}),t=!this.gridOptionsService.get(\"suppressAnimationFrame\"),n=this.refreshModel.bind(this,{step:\"group\",afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:\"pivot\"})),this.addManagedListener(this.eventService,CR.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,CR.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_GRID_READY,(()=>this.onGridReady())),this.addPropertyListeners(),this.rootNode=new KI(this.beans),this.nodeManager=new G_(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)}addPropertyListeners(){const e=new Set([\"treeData\",\"masterDetail\"]),t=new Set([\"suppressParentsInRowNodes\",\"groupDefaultExpanded\",\"groupAllowUnbalanced\",\"initialGroupOrderComparator\",\"groupHideOpenParents\",\"groupDisplayType\"]),n=new Set([\"excludeChildrenWhenTreeDataFiltering\"]),r=new Set([\"removePivotHeaderRowWhenSingleValueColumn\",\"pivotRowTotals\",\"pivotColumnGroupTotals\",\"suppressExpandablePivotGroups\"]),i=new Set([\"getGroupRowAgg\",\"alwaysAggregateAtRootLevel\",\"groupIncludeTotalFooter\",\"suppressAggFilteredOnly\"]),o=new Set([\"postSortRows\",\"groupDisplayType\",\"accentedSort\"]),a=new Set([]),s=new Set([\"groupRemoveSingleChildren\",\"groupRemoveLowestSingleChildren\",\"groupIncludeFooter\"]),l=[...e,...t,...n,...r,...r,...i,...o,...a,...s];this.addManagedPropertyListeners(l,(l=>{var c;const d=null==(c=l.changeSet)?void 0:c.properties;if(!d)return;const u=e=>d.some((t=>e.has(t)));u(e)?this.setRowData(this.rootNode.allLeafChildren.map((e=>e.data))):u(t)?this.refreshModel({step:\"group\"}):u(n)?this.refreshModel({step:\"filter\"}):u(r)?this.refreshModel({step:\"pivot\"}):u(i)?this.refreshModel({step:\"aggregate\"}):u(o)?this.refreshModel({step:\"sort\"}):u(a)?this.refreshModel({step:\"filter_aggregates\"}):u(s)&&this.refreshModel({step:\"map\"})})),this.addManagedPropertyListener(\"rowHeight\",(()=>this.resetRowHeights()))}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){const e=this.gridOptionsService.get(\"rowData\");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,n,r){let i,o=!1;do{i=!1;const a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),c=Math.min(s,r);for(let e=l;e<=c;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=this.gridOptionsService.getRowHeightForNode(t);t.setRowHeight(e.height),i=!0,o=!0}}i&&this.setRowTopAndRowIndex()}while(i);return o}setRowTopAndRowIndex(){const e=this.environment.getDefaultRowHeight();let t=0;const n=new Set,r=this.gridOptionsService.isDomLayout(\"normal\");for(let i=0;i<this.rowsToDisplay.length;i++){const o=this.rowsToDisplay[i];if(null!=o.id&&n.add(o.id),null==o.rowHeight){const t=this.gridOptionsService.getRowHeightForNode(o,r,e);o.setRowHeight(t.height,t.estimated)}o.setRowTop(t),o.setRowIndex(i),t+=o.rowHeight}return n}clearRowTopAndRowIndex(e,t){const n=e.isActive(),r=e=>{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},i=e=>{if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){const t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(i)}};i(this.rootNode)}ensureRowsAtPixel(e,t,n=0){const r=this.getRowIndexAtPixel(t),i=this.getRow(r),o=!this.gridOptionsService.get(\"suppressAnimationFrame\");return i!==e[0]&&(e.forEach((e=>{Tk.removeFromArray(this.rootNode.allLeafChildren,e)})),e.forEach(((e,t)=>{Tk.insertIntoArray(this.rootNode.allLeafChildren,e,Math.max(r+n,0)+t)})),this.refreshModel({step:\"group\",keepRenderedRows:!0,keepEditingRows:!0,animate:o}),!0)}highlightRowAtPixel(e,t){const n=null!=t?this.getRowIndexAtPixel(t):null,r=null!=n?this.getRow(n):null;if(!r||!e||r===e||null==t)return void(this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null));const i=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(i),this.lastHighlightedRow=r}getHighlightPosition(e,t){if(!t){const n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return 1}const{rowTop:n,rowHeight:r}=t;return e-n<r/2?0:1}getLastHighlightedRowNode(){return this.lastHighlightedRow}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;const e=this.rootNode.childrenAfterAggFilter;return e?e.length:0}getTopLevelRowDisplayedIndex(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;let t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.get(\"groupHideOpenParents\"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex}getRowBounds(e){if(Tk.missing(this.rowsToDisplay))return null;const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:\"map\",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=this.gridOptionsService.isAnimateRows(),n=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?\"filter\":\"filter_aggregates\";this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:\"sort\",keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return\"clientSide\"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:\"pivot\"}):this.refreshModel({step:\"aggregate\"})}createChangePath(e){const t=Tk.missingOrEmpty(e),n=new _L(!1,this.rootNode);return(t||this.gridOptionsService.get(\"treeData\"))&&n.setInactive(),n}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gridOptionsService.get(\"suppressModelUpdateAfterUpdateTransaction\"))return!1;if(null==e.rowNodeTransactions)return!1;const t=e.rowNodeTransactions.filter((e=>null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0));return null==t||0==t.length}buildRefreshModelParams(e){let t=\"group\";const n={everything:\"group\",group:\"group\",filter:\"filter\",map:\"map\",aggregate:\"aggregate\",sort:\"sort\",pivot:\"pivot\"};if(Tk.exists(e)&&(t=n[e]),!Tk.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.get(\"suppressAnimationFrame\")};console.error(`AG Grid: invalid step ${e}, available steps are ${Object.keys(n).join(\", \")}`)}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())return;let t=\"object\"==typeof e&&\"step\"in e?e:this.buildRefreshModelParams(e);if(!t)return;if(this.isSuppressModelUpdateAfterUpdateTransaction(t))return;const n=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case\"group\":this.doRowGrouping(t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case\"filter\":this.doFilter(n);case\"pivot\":this.doPivot(n);case\"aggregate\":this.doAggregate(n);case\"filter_aggregates\":this.doFilterAggregates(n);case\"sort\":this.doSort(t.rowNodeTransactions,n);case\"map\":this.doRowsToDisplay()}const r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,r),this.isRefreshingModel=!1;const i={type:CR.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(i)}isEmpty(){const e=Tk.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Tk.missing(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return Tk.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!t,r=!1;const i=[],o=this.gridOptionsService.get(\"groupSelectsChildren\");return this.forEachNodeAfterFilterAndSort((a=>{if(!r)if(n&&(a===t||a===e)&&(r=!0,a.group&&o))i.push(...a.allLeafChildren);else{if(!n){if(a!==t&&a!==e)return;n=!0}(!a.group||!o)&&i.push(a)}})),i}setDatasource(e){console.error(\"AG Grid: should never call setDatasource on clientSideRowController\")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;let t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Tk.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let r=-1,i=-1;for(;;){const o=Math.floor((t+n)/2),a=this.rowsToDisplay[o];if(this.isRowInPixel(a,e))return o;if(a.rowTop<e?t=o+1:a.rowTop>e&&(n=o-1),r===t&&i===n)return o;r=t,i=n}}isRowInPixel(e,t){const n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(((t,n)=>e(t,n)))}forEachNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:t})}forEachNodeAfterFilter(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:t})}forEachNodeAfterFilterAndSort(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:t})}forEachPivotNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:t})}recursivelyWalkNodesAndCallback(e){var t;const{nodes:n,callback:r,recursionType:i,includeFooterNodes:o}=e;let{index:a}=e;for(let e=0;e<n.length;e++){const t=n[e];if(r(t,a++),t.hasChildren()&&!t.footer){let e=null;switch(i){case 0:e=t.childrenAfterGroup;break;case 1:e=t.childrenAfterAggFilter;break;case 2:e=t.childrenAfterSort;break;case 3:e=t.leafGroup?null:t.childrenAfterSort}e&&(a=this.recursivelyWalkNodesAndCallback({nodes:[...e],callback:r,recursionType:i,index:a,includeFooterNodes:o}))}}const s=null==(t=n[0])?void 0:t.parent;if(!o||!s)return a;if(s===this.rootNode){if(!this.gridOptionsService.get(\"groupIncludeTotalFooter\"))return a}else if(!this.gridOptionsService.getGroupIncludeFooter()({node:s}))return a;return s.createFooter(),r(s.sibling,a++),a}doAggregate(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})}doFilterAggregates(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter}expandOrCollapseAll(e){const t=this.gridOptionsService.get(\"treeData\"),n=this.columnModel.isPivotActive(),r=i=>{i&&i.forEach((i=>{const o=()=>{i.expanded=e,r(i.childrenAfterGroup)};t?Tk.exists(i.childrenAfterGroup)&&o():n?!i.leafGroup&&o():i.group&&o()}))};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:\"map\"});const i=e?\"expandAll\":\"collapseAll\",o={type:CR.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(o)}doSort(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})}doRowGrouping(e,t,n,r){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:t,changedPath:n}):this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:r}),this.gridOptionsService.get(\"groupSelectsChildren\")&&this.selectionService.updateGroupsFromChildrenSelections(\"rowGroupChanged\",n)){const e={type:CR.EVENT_SELECTION_CHANGED,source:\"rowGroupChanged\"};this.eventService.dispatchEvent(e)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren();this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:CR.EVENT_ROW_COUNT_READY}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})}getCopyOfNodesMap(){return this.nodeManager.getCopyOfNodesMap()}getRowNode(e){if(\"string\"==typeof e&&0==e.indexOf(KI.ID_PREFIX_ROW_GROUP)){let t;return this.forEachNode((n=>{n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset(\"rowDataChanged\"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){const e={type:CR.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:\"group\",newData:!0})}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((()=>{this.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache.onDataChanged();const e=[],t=[];let n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((r=>{const i=this.nodeManager.updateRowData(r.rowDataTransaction,void 0);t.push(i),r.callback&&e.push(r.callback.bind(null,i)),\"number\"==typeof r.rowDataTransaction.addIndex&&(n=!0)})),this.commonUpdateRowData(t,void 0,n),e.length>0&&window.setTimeout((()=>{e.forEach((e=>e()))}),0),t.length>0){const e={type:CR.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:t};this.eventService.dispatchEvent(e)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e,t){this.valueCache.onDataChanged();const n=this.nodeManager.updateRowData(e,t),r=\"number\"==typeof e.addIndex;return this.commonUpdateRowData([n],t,r),n}createRowNodeOrder(){if(this.gridOptionsService.get(\"suppressMaintainUnsortedOrder\"))return;const e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(let t=0;t<this.rootNode.allLeafChildren.length;t++)e[this.rootNode.allLeafChildren[t].id]=t;return e}commonUpdateRowData(e,t,n){if(!this.hasStarted)return;const r=!this.gridOptionsService.get(\"suppressAnimationFrame\");n&&(t=this.createRowNodeOrder());const i={type:CR.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(i),this.refreshModel({step:\"group\",rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r})}doRowsToDisplay(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})}onRowHeightChanged(){this.refreshModel({step:\"map\",keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode((t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0})),e}onGridStylesChanges(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}};MT([xD(\"columnModel\")],V_.prototype,\"columnModel\",2),MT([xD(\"selectionService\")],V_.prototype,\"selectionService\",2),MT([xD(\"filterManager\")],V_.prototype,\"filterManager\",2),MT([xD(\"valueCache\")],V_.prototype,\"valueCache\",2),MT([xD(\"beans\")],V_.prototype,\"beans\",2),MT([xD(\"filterStage\")],V_.prototype,\"filterStage\",2),MT([xD(\"sortStage\")],V_.prototype,\"sortStage\",2),MT([xD(\"flattenStage\")],V_.prototype,\"flattenStage\",2),MT([AD(\"groupStage\")],V_.prototype,\"groupStage\",2),MT([AD(\"aggregationStage\")],V_.prototype,\"aggregationStage\",2),MT([AD(\"pivotStage\")],V_.prototype,\"pivotStage\",2),MT([AD(\"filterAggregatesStage\")],V_.prototype,\"filterAggregatesStage\",2),MT([CD],V_.prototype,\"init\",1),V_=MT([ED(\"rowModel\")],V_);var B_=class extends vR{execute(e){const{changedPath:t}=e;this.filterService.filter(t)}};MT([xD(\"filterService\")],B_.prototype,\"filterService\",2),B_=MT([ED(\"filterStage\")],B_);var H_=class extends vR{execute(e){const t=this.sortController.getSortOptions(),n=Tk.exists(t)&&t.length>0,r=n&&Tk.exists(e.rowNodeTransactions)&&this.gridOptionsService.get(\"deltaSort\"),i=t.some((e=>this.gridOptionsService.isColumnsSortingCoupledToGroup()?e.column.isPrimary()&&e.column.isRowGroupActive():!!e.column.getColDef().showRowGroup));this.sortService.sort(t,n,r,e.rowNodeTransactions,e.changedPath,i)}};MT([xD(\"sortService\")],H_.prototype,\"sortService\",2),MT([xD(\"sortController\")],H_.prototype,\"sortController\",2),H_=MT([ED(\"sortStage\")],H_);var j_=class extends vR{execute(e){const t=e.rowNode,n=[],r=this.columnModel.isPivotMode(),i=r&&t.leafGroup,o=i?[t]:t.childrenAfterSort,a=this.getFlattenDetails();return this.recursivelyAddToRowsToDisplay(a,o,n,r,0),!i&&n.length>0&&a.groupIncludeTotalFooter&&(t.createFooter(),this.addRowNodeToRowsToDisplay(a,t.sibling,n,0)),n}getFlattenDetails(){const e=this.gridOptionsService.get(\"groupRemoveSingleChildren\");return{groupRemoveLowestSingleChildren:!e&&this.gridOptionsService.get(\"groupRemoveLowestSingleChildren\"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get(\"groupHideOpenParents\"),groupIncludeTotalFooter:this.gridOptionsService.get(\"groupIncludeTotalFooter\"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}}recursivelyAddToRowsToDisplay(e,t,n,r,i){if(!Tk.missingOrEmpty(t))for(let o=0;o<t.length;o++){const a=t[o],s=a.hasChildren(),l=r&&!s,c=e.groupRemoveSingleChildren&&s&&1===a.childrenAfterGroup.length,d=e.groupRemoveLowestSingleChildren&&s&&a.leafGroup&&1===a.childrenAfterGroup.length,u=r&&a.leafGroup,h=e.hideOpenParents&&a.expanded&&!a.master&&!u;if(!(l||h||c||d)&&this.addRowNodeToRowsToDisplay(e,a,n,i),!r||!a.leafGroup)if(s){const t=c||d;if(a.expanded||t){const o=t?i:i+1;this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,n,r,o),e.getGroupIncludeFooter({node:a})?(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,n,o)):a.destroyFooter()}}else if(a.master&&a.expanded){const t=this.createDetailNode(a);this.addRowNodeToRowsToDisplay(e,t,n,i)}}}addRowNodeToRowsToDisplay(e,t,n,r){n.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:r)}createDetailNode(e){if(Tk.exists(e.detailNode))return e.detailNode;const t=new KI(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Tk.exists(e.id)&&(t.id=\"detail_\"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t}};MT([xD(\"columnModel\")],j_.prototype,\"columnModel\",2),MT([xD(\"beans\")],j_.prototype,\"beans\",2),j_=MT([ED(\"flattenStage\")],j_);var U_=class extends vR{sort(e,t,n,r,i,o){const a=this.gridOptionsService.get(\"groupMaintainOrder\"),s=this.columnModel.getAllGridColumns().some((e=>e.isRowGroupActive()));let l={};n&&r&&(l=this.calculateDirtyNodes(r));const c=this.columnModel.isPivotMode(),d=this.gridOptionsService.getCallback(\"postSortRows\");i&&i.forEachChangedNodeDepthFirst((r=>{var u;this.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);const h=c&&r.leafGroup;if(a&&s&&!r.leafGroup&&!o){const e=null==(u=this.columnModel.getRowGroupColumns())?void 0:u[r.level+1],t=null===(null==e?void 0:e.getSort()),n=r.childrenAfterAggFilter.slice(0);if(r.childrenAfterSort&&!t){const e={};r.childrenAfterSort.forEach(((t,n)=>{e[t.id]=n})),n.sort(((t,n)=>{var r,i;return(null!=(r=e[t.id])?r:0)-(null!=(i=e[n.id])?i:0)}))}r.childrenAfterSort=n}else r.childrenAfterSort=!t||h?r.childrenAfterAggFilter.slice(0):n?this.doDeltaSort(r,l,i,e):this.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),this.updateChildIndexes(r),d){const e={nodes:r.childrenAfterSort};d(e)}})),this.updateGroupDataForHideOpenParents(i)}calculateDirtyNodes(e){const t={},n=e=>{e&&e.forEach((e=>t[e.id]=!0))};return e&&e.forEach((e=>{n(e.add),n(e.update),n(e.remove)})),t}doDeltaSort(e,t,n,r){const i=e.childrenAfterAggFilter,o=e.childrenAfterSort;if(!o)return this.rowNodeSorter.doFullSort(i,r);const a={},s=[];i.forEach((e=>{t[e.id]||!n.canSkip(e)?s.push(e):a[e.id]=!0}));const l=o.filter((e=>a[e.id])),c=(e,t)=>({currentPos:t,rowNode:e}),d=s.map(c).sort(((e,t)=>this.rowNodeSorter.compareRowNodes(r,e,t)));return this.mergeSortedArrays(r,d,l.map(c)).map((({rowNode:e})=>e))}mergeSortedArrays(e,t,n){const r=[];let i=0,o=0;for(;i<t.length&&o<n.length;)this.rowNodeSorter.compareRowNodes(e,t[i],n[o])<0?r.push(t[i++]):r.push(n[o++]);for(;i<t.length;)r.push(t[i++]);for(;o<n.length;)r.push(n[o++]);return r}updateChildIndexes(e){if(Tk.missing(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let n=0;n<t.length;n++){const r=t[n],i=0===n,o=n===e.childrenAfterSort.length-1;r.setFirstChild(i),r.setLastChild(o),r.setChildIndex(n)}}updateGroupDataForHideOpenParents(e){if(!this.gridOptionsService.get(\"groupHideOpenParents\"))return;if(this.gridOptionsService.get(\"treeData\"))return Tk.warnOnce(\"The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them.\"),!1;const t=e=>{this.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((e=>{e.hasChildren()&&t(e)}))};e&&e.executeFromRootNode((e=>t(e)))}pullDownGroupDataForHideOpenParents(e,t){this.gridOptionsService.get(\"groupHideOpenParents\")&&!Tk.missing(e)&&e.forEach((e=>{this.columnModel.getGroupDisplayColumns().forEach((n=>{const r=n.getColDef().showRowGroup;if(\"string\"!=typeof r)return void console.error(\"AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup\");const i=r,o=this.columnModel.getPrimaryColumn(i);if(o!==e.rowGroupColumn)if(t)e.setGroupValue(n.getId(),void 0);else{const t=e.getFirstChildOfFirstChild(o);t&&e.setGroupValue(n.getId(),t.key)}}))}))}};MT([xD(\"columnModel\")],U_.prototype,\"columnModel\",2),MT([xD(\"rowNodeSorter\")],U_.prototype,\"rowNodeSorter\",2),U_=MT([ED(\"sortService\")],U_);var W_=class extends vR{filter(e){const t=this.filterManager.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const n=(t,n)=>{t.hasChildren()?t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||n})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){const e=(t,r)=>{if(t.childrenAfterGroup)for(let i=0;i<t.childrenAfterGroup.length;i++){const o=t.childrenAfterGroup[i],a=r||this.filterManager.doesRowPassFilter({rowNode:o});o.childrenAfterGroup?e(t.childrenAfterGroup[i],a):n(o,a)}n(t,r)},r=t=>e(t,!1);t.executeFromRootNode(r)}else{const e=e=>n(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}doingTreeDataFiltering(){return this.gridOptionsService.get(\"treeData\")&&!this.gridOptionsService.get(\"excludeChildrenWhenTreeDataFiltering\")}};MT([xD(\"filterManager\")],W_.prototype,\"filterManager\",2),W_=MT([ED(\"filterService\")],W_);var $_=class extends vR{postConstruct(){\"clientSide\"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener(\"rowData\",(()=>this.onRowDataUpdated())))}isActive(){const e=this.gridOptionsService.exists(\"getRowId\");return!this.gridOptionsService.get(\"resetRowDataOnUpdate\")&&e}setRowData(e){const t=this.createTransactionForRowData(e);if(!t)return;const[n,r]=t;this.clientSideRowModel.updateRowData(n,r)}createTransactionForRowData(e){if(Tk.missing(this.clientSideRowModel))return void console.error(\"AG Grid: ImmutableService only works with ClientSideRowModel\");const t=this.gridOptionsService.getCallback(\"getRowId\");if(null==t)return void console.error(\"AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!\");const n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gridOptionsService.get(\"suppressMaintainUnsortedOrder\")?void 0:{};return Tk.exists(e)&&e.forEach(((e,o)=>{const a=t({data:e,level:0}),s=r[a];i&&(i[a]=o),s?(s.data!==e&&n.update.push(e),r[a]=void 0):n.add.push(e)})),Tk.iterateObject(r,((e,t)=>{t&&n.remove.push(t.data)})),[n,i]}onRowDataUpdated(){const e=this.gridOptionsService.get(\"rowData\");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset(\"rowDataChanged\"),this.clientSideRowModel.setRowData(e)))}};MT([xD(\"rowModel\")],$_.prototype,\"rowModel\",2),MT([xD(\"rowRenderer\")],$_.prototype,\"rowRenderer\",2),MT([xD(\"selectionService\")],$_.prototype,\"selectionService\",2),MT([CD],$_.prototype,\"postConstruct\",1);var Y_={version:\"31.2.0\",moduleName:\"@ag-grid-community/client-side-row-model\",rowModel:\"clientSide\",beans:[V_,B_,H_,j_,U_,W_,$_=MT([ED(\"immutableService\")],$_)]},K_=Object.defineProperty,q_=Object.getOwnPropertyDescriptor,Q_=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?q_(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&K_(t,n,o),o},X_=class extends GL{constructor(e,t,n){super(e),this.parentCache=t,this.params=n,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}postConstruct(){this.createRowNodes()}getBlockStateJson(){return{id:\"\"+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}}setDataAndId(e,t,n){Tk.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();Tk.missing(this.params.datasource.getRows)?console.warn(\"AG Grid: datasource is missing getRows method\"):window.setTimeout((()=>{this.params.datasource.getRows(e)}),0)}processServerFail(){}createLoadParams(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.getGridCommonParams().context}}forEachNode(e,t,n){this.rowNodes.forEach(((r,i)=>{this.startRow+i<n&&e(r,t.next())}))}getLastAccessed(){return this.lastAccessed}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.next());const n=e-this.startRow;return this.rowNodes[n]}getStartRow(){return this.startRow}getEndRow(){return this.endRow}createRowNodes(){this.rowNodes=[];for(let e=0;e<this.params.blockSize;e++){const t=this.startRow+e,n=new KI(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}}processServerResult(e){this.rowNodes.forEach(((t,n)=>{const r=e.rowData?e.rowData[n]:void 0;!t.id&&t.alreadyRendered&&r&&(this.rowNodes[n]=new KI(this.beans),this.rowNodes[n].setRowIndex(t.rowIndex),this.rowNodes[n].setRowTop(t.rowTop),this.rowNodes[n].setRowHeight(t.rowHeight),t.clearRowTopAndRowIndex()),this.setDataAndId(this.rowNodes[n],r,this.startRow+n)}));const t=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,t)}destroyRowNodes(){this.rowNodes.forEach((e=>{e.clearRowTopAndRowIndex()}))}};Q_([xD(\"beans\")],X_.prototype,\"beans\",2),Q_([CD],X_.prototype,\"postConstruct\",1),Q_([SD],X_.prototype,\"destroyRowNodes\",1);var Z_,J_=class e extends vR{constructor(e){super(),this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount,this.params=e}setBeans(e){this.logger=e.create(\"InfiniteCache\")}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)}createBlock(e){const t=this.createBean(new X_(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t}refreshCache(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((e=>e.setStateWaitingToLoad())),this.params.rowNodeBlockLoader.checkBlockToLoad())}destroyAllBlocks(){this.getBlocksInOrder().forEach((e=>this.destroyBlock(e)))}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(this.logger.log(`onPageLoaded: page = ${e.getId()}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(t){const n=this.getBlocksInOrder().filter((e=>e!=t));n.sort(((e,t)=>t.getLastAccessed()-e.getLastAccessed()));const r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,o=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach(((e,t)=>{if(e.getState()===X_.STATE_WAITING_TO_LOAD&&t>=o||r&&t>=i){if(this.isBlockCurrentlyDisplayed(e))return;if(this.isBlockFocused(e))return;this.removeBlockFromCache(e)}}))}isBlockFocused(e){const t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;const n=e.getStartRow(),r=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<r}isBlockCurrentlyDisplayed(e){const t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(\"number\"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const t=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<t&&(this.rowCount=t)}}setRowCount(e,t){this.rowCount=e,Tk.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t=new Dk;this.getBlocksInOrder().forEach((n=>n.forEachNode(e,t,this.rowCount)))}getBlocksInOrder(){const e=Tk.getAllValuesInObject(this.blocks).sort(((e,t)=>e.getId()-t.getId()));return e}destroyBlock(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();const e={type:CR.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}}destroyAllBlocksPastVirtualRowCount(){const e=[];this.getBlocksInOrder().forEach((t=>{t.getId()*this.params.blockSize>=this.rowCount&&e.push(t)})),e.length>0&&e.forEach((e=>this.destroyBlock(e)))}purgeCache(){this.getBlocksInOrder().forEach((e=>this.removeBlockFromCache(e))),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let r=-1,i=!1;const o=new Dk;Tk.missing(e)&&(i=!0);let a=!1;return this.getBlocksInOrder().forEach((s=>{a||(i&&r+1!==s.getId()?a=!0:(r=s.getId(),s.forEachNode((r=>{const o=r===e||r===t;(i||o)&&n.push(r),o&&(i=!i)}),o,this.rowCount)))})),a||i?[]:n}};J_.MAX_EMPTY_BLOCKS_TO_KEEP=2,Q_([xD(\"rowRenderer\")],J_.prototype,\"rowRenderer\",2),Q_([xD(\"focusService\")],J_.prototype,\"focusService\",2),Q_([(Z_=DD(\"loggerFactory\"),(e,t)=>Z_(e,t,0))],J_.prototype,\"setBeans\",1),Q_([SD],J_.prototype,\"destroyAllBlocks\",1);var ez=J_,tz=class extends vR{getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(e,t,n,r){return!1}init(){this.gridOptionsService.isRowModelType(\"infinite\")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((()=>this.destroyCache())),this.verifyProps())}verifyProps(){this.gridOptionsService.exists(\"initialGroupOrderComparator\")&&Tk.warnOnce(\"initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side\")}start(){this.setDatasource(this.gridOptionsService.get(\"datasource\"))}destroyDatasource(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedListener(this.eventService,CR.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,CR.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this)),this.addManagedPropertyListener(\"datasource\",(()=>this.setDatasource(this.gridOptionsService.get(\"datasource\")))),this.addManagedPropertyListener(\"cacheBlockSize\",(()=>this.resetCache())),this.addManagedPropertyListener(\"rowHeight\",(()=>{this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()}))}onFilterChanged(){this.reset()}onSortChanged(){this.reset()}onColumnEverything(){let e;e=!this.cacheParams||this.isSortModelDifferent(),e&&this.reset()}isSortModelDifferent(){return!Tk.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())}getType(){return\"infinite\"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]}reset(){this.datasource&&(null!=this.gridOptionsService.getCallback(\"getRowId\")||this.selectionService.reset(\"rowDataChanged\"),this.resetCache())}createModelUpdatedEvent(){return{type:CR.EVENT_MODEL_UPDATED,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1}}resetCache(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gridOptionsService.get(\"infiniteInitialRowCount\"),maxBlocksInCache:this.gridOptionsService.get(\"maxBlocksInCache\"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.gridOptionsService.get(\"cacheOverflowSize\"),blockSize:this.gridOptionsService.get(\"cacheBlockSize\"),lastAccessedSequence:new Dk},this.infiniteCache=this.createBean(new ez(this.cacheParams)),this.eventService.dispatchEventOnce({type:CR.EVENT_ROW_COUNT_READY});const e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}updateRowHeights(){this.forEachNode((e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}));const e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}destroyCache(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))}onCacheUpdated(){const e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}getRow(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)}getRowNode(e){let t;return this.forEachNode((n=>{n.id===e&&(t=n)})),t}forEachNode(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(0!==this.rowHeight){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache&&this.infiniteCache.refreshCache()}purgeCache(){this.infiniteCache&&this.infiniteCache.purgeCache()}isLastRowIndexKnown(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()}setRowCount(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)}};Q_([xD(\"filterManager\")],tz.prototype,\"filterManager\",2),Q_([xD(\"sortController\")],tz.prototype,\"sortController\",2),Q_([xD(\"selectionService\")],tz.prototype,\"selectionService\",2),Q_([xD(\"rowRenderer\")],tz.prototype,\"rowRenderer\",2),Q_([xD(\"rowNodeBlockLoader\")],tz.prototype,\"rowNodeBlockLoader\",2),Q_([CD],tz.prototype,\"init\",1),Q_([SD],tz.prototype,\"destroyDatasource\",1);var nz={version:\"31.2.0\",moduleName:\"@ag-grid-community/infinite-row-model\",rowModel:\"infinite\",beans:[tz=Q_([ED(\"rowModel\")],tz)]},rz=Object.defineProperty,iz=Object.defineProperties,oz=Object.getOwnPropertyDescriptor,az=Object.getOwnPropertyDescriptors,sz=Object.getOwnPropertySymbols,lz=Object.prototype.hasOwnProperty,cz=Object.prototype.propertyIsEnumerable,dz=(e,t,n)=>t in e?rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uz=(e,t)=>{for(var n in t||(t={}))lz.call(t,n)&&dz(e,n,t[n]);if(sz)for(var n of sz(t))cz.call(t,n)&&dz(e,n,t[n]);return e},hz=(e,t)=>iz(e,az(t)),pz=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?oz(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&rz(t,n,o),o},gz=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())})),fz=class{setBeans(e){this.beans=e}getFileName(e){const t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(\".\")?`${e}.${t}`:e}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},mz=class{constructor(e){this.groupColumns=[];const{columnModel:t,valueService:n,gridOptionsService:r,valueFormatterService:i,valueParserService:o,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.columnModel=t,this.valueService=n,this.gridOptionsService=r,this.valueFormatterService=i,this.valueParserService=o,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){this.groupColumns=e.filter((e=>!!e.getColDef().showRowGroup))}extractHeaderValue(e){const t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:\"\"}extractRowCellValue(e,t,n,r,i){const o=this.gridOptionsService.get(\"groupHideOpenParents\")&&!i.footer||!this.shouldRenderGroupSummaryCell(i,e,t)?this.valueService.getValue(e,i):this.createValueForGroupNode(e,i);return this.processCell({accumulatedRowIndex:n,rowNode:i,column:e,value:o,processCellCallback:this.processCellCallback,type:r})}shouldRenderGroupSummaryCell(e,t,n){var r;if(!e||!e.group)return!1;if(-1!==this.groupColumns.indexOf(t)){if(null!=(null==(r=e.groupData)?void 0:r[t.getId()]))return!0;if(this.gridOptionsService.isRowModelType(\"serverSide\")&&e.group)return!0;if(e.footer&&-1===e.level){const e=t.getColDef();return null==e||!0===e.showRowGroup||e.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}const i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===n&&i}getHeaderName(e,t){return e?e(this.gridOptionsService.addGridCommonParams({column:t})):this.columnModel.getDisplayNameForColumn(t,\"csv\",!0)}createValueForGroupNode(e,t){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:e,node:t}));const n=this.gridOptionsService.get(\"treeData\"),r=this.gridOptionsService.get(\"suppressGroupMaintainValueType\"),i=t=>{var i,o;if(n||r)return t.key;const a=null==(i=t.groupData)?void 0:i[e.getId()];return a&&t.rowGroupColumn&&!1!==t.rowGroupColumn.getColDef().useValueFormatterForExport&&null!=(o=this.valueFormatterService.formatValue(t.rowGroupColumn,t,a))?o:a},o=t.footer,a=[i(t)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,a.push(i(t));const s=a.reverse().join(\" -> \");return o?`Total ${s}`:s}processCell(e){var t;const{accumulatedRowIndex:n,rowNode:r,column:i,value:o,processCellCallback:a,type:s}=e;return a?{value:null!=(t=a(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:n,column:i,node:r,value:o,type:s,parseValue:e=>this.valueParserService.parseValue(i,r,e,this.valueService.getValue(i,r)),formatValue:e=>{var t;return null!=(t=this.valueFormatterService.formatValue(i,r,e))?t:e}})))?t:\"\"}:!1!==i.getColDef().useValueFormatterForExport?{value:null!=o?o:\"\",valueFormatted:this.valueFormatterService.formatValue(i,r,o)}:{value:null!=o?o:\"\"}}},vz=class{static download(e,t){const n=document.defaultView||window;if(!n)return void console.warn(\"AG Grid: There is no `window` associated with the current `document`\");const r=document.createElement(\"a\"),i=n.URL.createObjectURL(t);r.setAttribute(\"href\",i),r.setAttribute(\"download\",e),r.style.display=\"none\",document.body.appendChild(r),r.dispatchEvent(new MouseEvent(\"click\",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout((()=>{n.URL.revokeObjectURL(i)}),0)}},yz=class extends mz{constructor(e){super(e),this.isFirstLine=!0,this.result=\"\";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(\"string\"==typeof e?(/^\\s*\\n/.test(e)||this.beginNewLine(),e=e.replace(/\\r?\\n/g,\"\\r\\n\"),this.result+=e):e.forEach((e=>{this.beginNewLine(),e.forEach(((e,t)=>{0!==t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e.data.value||\"\"),e.mergeAcross&&this.appendEmptyCells(e.mergeAcross)}))})))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){0!=n&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes(\"\")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){var r;0!=t&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue(e,t,t,\"csv\",n);this.result+=this.putInQuotes(null!=(r=i.valueFormatted)?r:i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(null==e)return'\"\"';let t;return\"string\"==typeof e?t=e:\"function\"==typeof e.toString?t=e.toString():(console.warn(\"AG Grid: unknown value type during csv conversion\"),t=\"\"),'\"'+t.replace(/\"/g,'\"\"')+'\"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=\"\\r\\n\"),this.isFirstLine=!1}},bz=class extends fz{postConstruct(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})}getMergedParams(e){const t=this.gridOptionsService.get(\"defaultCsvExportParams\");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed())return void console.warn(\"AG Grid: Export cancelled. Export is not allowed as per your configuration.\");const t=this.getMergedParams(e),n=this.getData(t),r=new Blob([\"\\ufeff\",n],{type:\"text/plain\"}),i=\"function\"==typeof t.fileName?t.fileName(this.gridOptionsService.getGridCommonParams()):t.fileName;vz.download(this.getFileName(i),r)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return\"csv\"}createSerializingSession(e){const{columnModel:t,valueService:n,gridOptionsService:r,valueFormatterService:i,valueParserService:o}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:u}=e;return new yz({columnModel:t,valueService:n,gridOptionsService:r,valueFormatterService:i,valueParserService:o,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:u||\",\"})}isExportSuppressed(){return this.gridOptionsService.get(\"suppressCsvExport\")}};pz([xD(\"columnModel\")],bz.prototype,\"columnModel\",2),pz([xD(\"valueService\")],bz.prototype,\"valueService\",2),pz([xD(\"gridSerializer\")],bz.prototype,\"gridSerializer\",2),pz([xD(\"gridOptionsService\")],bz.prototype,\"gridOptionsService\",2),pz([xD(\"valueFormatterService\")],bz.prototype,\"valueFormatterService\",2),pz([xD(\"valueParserService\")],bz.prototype,\"valueParserService\",2),pz([CD],bz.prototype,\"postConstruct\",1),bz=pz([ED(\"csvCreator\")],bz);var wz=class extends vR{serialize(e,t={}){const{allColumns:n,columnKeys:r,skipRowGroups:i}=t,o=this.getColumnsToExport(n,i,r);return Tk.compose(this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t))(e).parse()}processRow(e,t,n,r){const i=t.shouldRowBeSkipped||(()=>!1),o=this.gridOptionsService.get(\"groupRemoveSingleChildren\"),a=this.gridOptionsService.get(\"groupRemoveLowestSingleChildren\"),s=null!=t.rowPositions||!!t.onlySelected,l=this.gridOptionsService.get(\"groupHideOpenParents\")&&!s,c=this.columnModel.isPivotMode()?r.leafGroup:!r.group,d=!!r.footer,u=(t.skipRowGroups,a&&r.leafGroup),h=1===r.allChildrenCount&&(o||u);if(!c&&!d&&(t.skipRowGroups||h||l)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&\"top\"===r.rowPinned||t.skipPinnedBottom&&\"bottom\"===r.rowPinned)return;if(-1===r.level&&!c&&!d)return;if(i(this.gridOptionsService.addGridCommonParams({node:r})))return;const p=e.onNewBodyRow(r);if(n.forEach(((e,t)=>{p.onColumn(e,t,r)})),t.getCustomContentBelowRow){const n=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:r}));n&&e.addCustomContent(n)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const r=new ER,i=this.displayedGroupCreator.createDisplayedGroups(t,r,null);this.recursivelyAddHeaderGroups(i,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const e=n.onNewHeaderRow();t.forEach(((t,n)=>{e.onColumn(t,n,void 0)}))}return n}}processPinnedTopRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter((e=>\"top\"===e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>this.pinnedRowModel.getPinnedTopRow(e.rowIndex))).forEach(r):this.pinnedRowModel.forEachPinnedTopRow(r),n}}processRows(e,t){return n=>{const r=this.rowModel,i=r.getType(),o=\"clientSide\"===i,a=\"serverSide\"===i,s=!o&&e.onlySelected,l=this.processRow.bind(this,n,e,t),{exportedRows:c=\"filteredAndSorted\"}=e;if(e.rowPositions)e.rowPositions.filter((e=>null==e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>r.getRow(e.rowIndex))).forEach(l);else if(this.columnModel.isPivotMode())o?r.forEachPivotNode(l,!0):a?r.forEachNodeAfterFilterAndSort(l,!0):r.forEachNode(l);else if(e.onlySelectedAllPages||s){const e=this.selectionService.getSelectedNodes();this.replicateSortedOrder(e),e.forEach(l)}else\"all\"===c?r.forEachNode(l):o||a?r.forEachNodeAfterFilterAndSort(l,!0):r.forEachNode(l);return n}}replicateSortedOrder(e){const t=this.sortController.getSortOptions(),n=(e,r)=>{var i,o,a,s;return null!=e.rowIndex&&null!=r.rowIndex?e.rowIndex-r.rowIndex:e.level===r.level?(null==(i=e.parent)?void 0:i.id)===(null==(o=r.parent)?void 0:o.id)?this.rowNodeSorter.compareRowNodes(t,{rowNode:e,currentPos:null!=(a=e.rowIndex)?a:-1},{rowNode:r,currentPos:null!=(s=r.rowIndex)?s:-1}):n(e.parent,r.parent):e.level>r.level?n(e.parent,r):n(e,r.parent)};e.sort(n)}processPinnedBottomRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter((e=>\"bottom\"===e.rowPinned)).sort(((e,t)=>e.rowIndex-t.rowIndex)).map((e=>this.pinnedRowModel.getPinnedBottomRow(e.rowIndex))).forEach(r):this.pinnedRowModel.forEachPinnedBottomRow(r),n}}getColumnsToExport(e=!1,t=!1,n){const r=this.columnModel.isPivotMode();if(n&&n.length)return this.columnModel.getGridColumns(n);const i=this.gridOptionsService.get(\"treeData\");let o=[];return o=e&&!r?this.columnModel.getAllGridColumns():this.columnModel.getAllDisplayedColumns(),t&&!i&&(o=o.filter((e=>e.getColId()!==xR))),o}recursivelyAddHeaderGroups(e,t,n){const r=[];e.forEach((e=>{const t=e;t.getChildren&&t.getChildren().forEach((e=>r.push(e)))})),e.length>0&&e[0]instanceof wR&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){const r=e.onNewHeaderGroupingRow();let i=0;t.forEach((e=>{const t=e;let o;o=n?n(this.gridOptionsService.addGridCommonParams({columnGroup:t})):this.columnModel.getDisplayNameForColumnGroup(t,\"header\");const a=t.getLeafColumns().reduce(((e,t,n,r)=>{let i=Tk.last(e);return\"open\"===t.getColumnGroupShow()?i&&null==i[1]||(i=[n],e.push(i)):i&&null==i[1]&&(i[1]=n-1),n===r.length-1&&i&&null==i[1]&&(i[1]=n),e}),[]);r.onColumn(t,o||\"\",i++,t.getLeafColumns().length-1,a)}))}};pz([xD(\"displayedGroupCreator\")],wz.prototype,\"displayedGroupCreator\",2),pz([xD(\"columnModel\")],wz.prototype,\"columnModel\",2),pz([xD(\"rowModel\")],wz.prototype,\"rowModel\",2),pz([xD(\"pinnedRowModel\")],wz.prototype,\"pinnedRowModel\",2),pz([xD(\"selectionService\")],wz.prototype,\"selectionService\",2),pz([xD(\"rowNodeSorter\")],wz.prototype,\"rowNodeSorter\",2),pz([xD(\"sortController\")],wz.prototype,\"sortController\",2);var Cz={version:\"31.2.0\",moduleName:\"@ag-grid-community/csv-export\",beans:[bz,wz=pz([ED(\"gridSerializer\")],wz)]};function Sz(e,t){let n=\"\";for(let r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}var Ez=e=>e.length?(e=>{if(!e.length)return 0;let t=-1,n=0,r=0,i=0;for(let o=0;o<e.length;o++)n=e[o],r=255&(t^n),i=xz[r],t=t>>>8^i;return~t})(\"string\"==typeof e?(new TextEncoder).encode(e):e):0,xz=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),{utf8_encode:Az}=Tk,Tz=(e,t)=>gz(void 0,null,(function*(){const{content:n}=e,{size:r,content:i}=n?Mz(n):{size:0,content:Uint8Array.from([])};let o,a,s=!1;if(\"file\"===e.type&&i&&r>0){const e=yield(e=>gz(void 0,null,(function*(){const t=new Blob([e]),{size:n,content:r}=yield(i=t,gz(void 0,null,(function*(){let e=0;const t=[],n=new WritableStream({write:n=>{t.push(n),e+=n.length}}),r=new ReadableStream({start:e=>{const t=new FileReader;t.onload=t=>{var n;(null==(n=t.target)?void 0:n.result)&&e.enqueue(t.target.result),e.close()},t.readAsArrayBuffer(i)}}),o=new window.CompressionStream(\"deflate-raw\");return yield r.pipeThrough(o).pipeTo(n),{size:e,content:new Blob(t)}})));var i;return{size:n,content:new Uint8Array(yield r.arrayBuffer())}})))(i);o=e.content,a=e.size,s=!0}const l=Rz(e,s,t,r,i,a);return hz(uz({},l),{content:o||i,isCompressed:s})})),Dz=(e,t)=>{const{content:n}=e,{content:r}=n?Mz(n):{content:Uint8Array.from([])},i=Rz(e,!1,t,r.length,r,void 0);return hz(uz({},i),{content:r,isCompressed:!1})},Rz=(e,t,n,r,i,o)=>{const{content:a,path:s,created:l}=e,c=(e=>{let t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2,t})(l),d=(e=>{let t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate(),t})(l),u=Ez(i),h=void 0!==o?o:r,p=Az(s),g=p!==s;let f=\"\";if(g){const e=Sz(1,1)+Sz(Ez(p),4)+p;f=\"up\"+Sz(e.length,2)+e}const m=\"\u0014\\0\"+(g?\"\\0\\b\":\"\\0\\0\")+Sz(t?8:0,2)+Sz(c,2)+Sz(d,2)+Sz(h?u:0,4)+Sz(null!=o?o:r,4)+Sz(r,4)+Sz(p.length,2)+Sz(f.length,2),v=\"PK\u0003\u0004\"+m+p+f,y=\"PK\u0001\u0002\u0014\\0\"+m+\"\\0\\0\\0\\0\\0\\0\"+(a?\"\\0\\0\\0\\0\":\"\u0010\\0\\0\\0\")+Sz(n,4)+p+f;return{localFileHeader:Uint8Array.from(v,(e=>e.charCodeAt(0))),centralDirectoryHeader:Uint8Array.from(y,(e=>e.charCodeAt(0)))}},Mz=e=>{let t;return t=\"string\"==typeof e?(e=>{const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})(atob(e.split(\";base64,\")[1])):e,{size:t.length,content:t}},Oz=class{static addFolders(e){e.forEach(this.addFolder.bind(this))}static addFolder(e){this.folders.push({path:e,created:new Date,isBase64:!1,type:\"folder\"})}static addFile(e,t,n=!1){this.files.push({path:e,created:new Date,content:n?t:(new TextEncoder).encode(t),isBase64:n,type:\"file\"})}static getZipFile(e=\"application/zip\"){return gz(this,null,(function*(){const t=yield this.buildCompressedFileStream();return this.clearStream(),new Blob([t],{type:e})}))}static getUncompressedZipFile(e=\"application/zip\"){const t=this.buildFileStream();return this.clearStream(),new Blob([t],{type:e})}static clearStream(){this.folders=[],this.files=[]}static packageFiles(e){let t=new Uint8Array(0),n=new Uint8Array(0),r=0,i=0;for(const o of e){const{localFileHeader:e,centralDirectoryHeader:a,content:s}=o,l=new Uint8Array(t.length+e.length);l.set(t),l.set(e,t.length),t=l;const c=new Uint8Array(t.length+s.length);c.set(t),c.set(s,t.length),t=c;const d=new Uint8Array(n.length+a.length);d.set(n),d.set(a,n.length),n=d,r+=e.length+s.length,i+=a.length}const o=((e,t,n)=>{const r=\"PK\u0005\u0006\\0\\0\\0\\0\"+Sz(e,2)+Sz(e,2)+Sz(t,4)+Sz(n,4)+\"\\0\\0\";return Uint8Array.from(r,(e=>e.charCodeAt(0)))})(e.length,i,r),a=new Uint8Array(t.length+n.length+o.length);return a.set(t),a.set(n,t.length),a.set(o,t.length+n.length),a}static buildCompressedFileStream(){return gz(this,null,(function*(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const e=yield Tz(r,n),{localFileHeader:i,content:o}=e;t.push(e),n+=i.length+o.length}return this.packageFiles(t)}))}static buildFileStream(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const e=Dz(r,n),{localFileHeader:i,content:o}=e;t.push(e),n+=i.length+o.length}return this.packageFiles(t)}};Oz.folders=[],Oz.files=[],yD.__registerModules([Y_,nz,Cz],!1,void 0);var kz=n(5848),Iz=Object.defineProperty,Nz=Object.defineProperties,Pz=Object.getOwnPropertyDescriptors,Lz=Object.getOwnPropertySymbols,Fz=Object.prototype.hasOwnProperty,_z=Object.prototype.propertyIsEnumerable,zz=(e,t,n)=>t in e?Iz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gz=(e,t)=>{for(var n in t||(t={}))Fz.call(t,n)&&zz(e,n,t[n]);if(Lz)for(var n of Lz(t))_z.call(t,n)&&zz(e,n,t[n]);return e},Vz=(e,t)=>Nz(e,Pz(t)),Bz=(0,t.createContext)({setMethods:()=>{}}),Hz=(0,t.memo)((e=>{const{initialProps:n,addUpdateCallback:r,CustomComponentClass:i,setMethods:o}=e,[a,s]=(0,t.useState)(n);return(0,t.useEffect)((()=>{r((e=>s(e)))}),[]),t.createElement(Bz.Provider,{value:{setMethods:o}},t.createElement(i,Gz({},a)))})),jz=0;function Uz(){return\"agPortalKey_\"+ ++jz}var Wz=class{constructor(e,t,n,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Uz(),this.portalKey=Uz(),this.instanceCreated=this.isStatelessComponent()?Rk.resolve(!1):new Rk((e=>{this.resolveInstanceCreated=e}))}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){return this.componentInstance&&\"function\"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||\"div\");return n.classList.add(\"ag-react-container\"),e.reactContainer=n,n}addParentContainerStyleAndClasses(){this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&(Tk.warnOnce('Since v31.1 \"getReactContainerStyle\" is deprecated. Apply styling directly to \".ag-react-container\" if needed.'),Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle())),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses())&&(Tk.warnOnce('Since v31.1 \"getReactContainerClasses\" is deprecated. Apply styling directly to \".ag-react-container\" if needed.'),this.componentInstance.getReactContainerClasses().forEach((e=>this.eParentElement.classList.add(e))))}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for(\"react.memo\"):60115}hasSymbol(){return\"function\"==typeof Symbol&&Symbol.for}isStateless(e){return\"function\"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||\"object\"==typeof e&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&null!=t[e]||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n)return void setTimeout((()=>this.callMethod(e,t)));const r=n[e];return r?r.apply(n,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new Rk((e=>this.createReactComponent(e)))}createOrUpdatePortal(e){this.isStatelessComponent()||(e.ref=e=>{var t;this.componentInstance=e,this.addParentContainerStyleAndClasses(),null==(t=this.resolveInstanceCreated)||t.call(this,!0),this.resolveInstanceCreated=void 0}),this.reactElement=this.createElement(this.reactComponent,Vz(Gz({},e),{key:this.key})),this.portal=(0,hr.createPortal)(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,n){return(0,t.createElement)(e,n)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,(t=>{e(t)}))}isNullValue(){return this.valueRenderedIsNull(this.params)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())}valueRenderedIsNull(e){if(!this.componentType.cellRenderer)return!1;const n=console.error;try{return console.error=()=>{},\"\"===(0,kz.qV)((0,t.createElement)(this.reactComponent,e))}catch(e){}finally{console.error=n}return!1}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){return!this.suppressFallbackMethods&&!!this[`${e}Component`]}};function $z(e,t,n){e.forEach((e=>{const r=t[e];r&&(n[e]=r)}))}var Yz=class extends Wz{constructor(){super(...arguments),this.awaitUpdateCallback=new Rk((e=>{this.resolveUpdateCallback=e})),this.wrapperComponent=Hz}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:e=>this.setMethods(e),addUpdateCallback:e=>{this.updateCallback=()=>(e(this.getProps()),new Rk((e=>{setTimeout((()=>{e()}))}))),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,$z(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return Vz(Gz({},this.sourceParams),{key:this.key,ref:this.ref})}refreshProps(){return this.updateCallback?this.updateCallback():new Rk((e=>this.awaitUpdateCallback.then((()=>{this.updateCallback().then((()=>e()))}))))}},Kz=class extends Yz{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return[\"afterGuiAttached\",\"setInputPlaceholder\",\"setInputAriaLabel\",\"setDisabled\"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},qz=class extends Yz{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterChangedCallback()}isFilterActive(){return null!=this.model}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.model=e,this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getOptionalMethods(){return[\"afterGuiAttached\",\"afterGuiDetached\",\"onNewRowsLoaded\",\"getModelAsString\",\"onAnyFilterChanged\"]}updateModel(e){this.setModel(e).then((()=>this.sourceParams.filterChangedCallback()))}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,delete e.filterModifiedCallback,delete e.valueGetter,e}};function Qz(e,t){e.parentFilterInstance((n=>{(n.setModel(t)||Rk.resolve()).then((()=>{e.filterParams.filterChangedCallback()}))}))}var Xz=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=e=>this.updateModel(e)}getProps(){return Vz(Gz({},this.floatingFilterParams),{model:this.model,onModelChange:this.onModelChange})}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){$z(this.getOptionalMethods(),e,this)}getOptionalMethods(){return[\"afterGuiAttached\"]}updateModel(e){this.model=e,this.refreshProps(),Qz(this.floatingFilterParams,e)}},Zz=class extends Yz{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return[\"afterGuiAttached\"]}updateModel(e){this.model=e,this.refreshProps(),Qz(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},Jz=class extends Yz{refresh(e){this.sourceParams=e,this.refreshProps()}},eG=class extends Yz{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return[\"select\",\"configureDefaults\"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then((()=>this.sourceParams.onItemActivated()))}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},tG=class extends Yz{refresh(e){this.sourceParams=e,this.refreshProps()}},nG=class extends Yz{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},rG=class extends Yz{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}},iG=class e{constructor(t,n,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||\"div\",this.refresher=t,this.maxComponentCreationTimeMs=r||e.MAX_COMPONENT_CREATION_TIME_IN_MS}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter((t=>t!==e)),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout((()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)})),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):(console.error(`AG Grid: React Component '${e.getReactComponentName()}' not created within ${this.maxComponentCreationTimeMs}ms.`),void console.error(\"    If the component is using `forwardRef` but not `useImperativeHandle`, add the following: `useImperativeHandle(ref, () => ({}));`\"));window.setTimeout((()=>{this.waitForInstance(e,t,n)}))}}};iG.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var oG=iG,aG=t.createContext({}),sG=(...e)=>e.filter((e=>null!=e&&\"\"!==e)).join(\" \"),lG=class e{constructor(...e){this.classesMap={},e.forEach((e=>{this.classesMap[e]=!0}))}setClass(t,n){if(!!this.classesMap[t]==n)return this;const r=new e;return r.classesMap=Gz({},this.classesMap),r.classesMap[t]=n,r}toString(){const e=Object.keys(this.classesMap).filter((e=>this.classesMap[e])).join(\" \");return e}},cG=e=>\"function\"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||\"object\"==typeof e&&e.$$typeof===(\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.memo\"):60115),dG=null!=hr.createRoot&&null!=hr.flushSync,uG=!1,hG=(e,t)=>{dG&&e&&!uG?hr.flushSync(t):t()};function pG(e,t,n){if(null==t||null==e)return t;if(e===t||0===t.length&&0===e.length)return e;if(n||0===e.length&&t.length>0||e.length>0&&0===t.length)return t;const r=[],i=[],o=new Map,a=new Map;for(let e=0;e<t.length;e++){const n=t[e];a.set(n.getInstanceId(),n)}for(let t=0;t<e.length;t++){const n=e[t];o.set(n.getInstanceId(),n),a.has(n.getInstanceId())&&r.push(n)}for(let e=0;e<t.length;e++){const n=t[e],r=n.getInstanceId();o.has(r)||i.push(n)}return r.length===e.length&&0===i.length?e:0===r.length&&i.length===t.length?t:[...r,...i]}var gG=(e,t,n,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const i=e.newAgStackInstance();if(!i)return;let o,a,s=!1;return i.then((e=>{s?t.destroyBean(e):(o=e,a=o.getGui(),n.appendChild(a),fG(r,o))})),()=>{s=!0,o&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(o),r&&fG(r,void 0))}},fG=(e,t)=>{e&&(e instanceof Function?e(t):e.current=t)},mG=(0,t.forwardRef)(((e,n)=>{var r;const i=(0,t.useContext)(aG).context,o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useRef)(null),l=(0,t.useRef)(null),c=(0,t.useRef)(null),d=(0,t.useRef)(),[u,h]=(0,t.useState)(),[p,g]=(0,t.useState)(),[f,m]=(0,t.useState)(),[v,y]=(0,t.useState)((()=>new lG)),[b,w]=(0,t.useState)((()=>new lG(\"ag-hidden\"))),[C,S]=(0,t.useState)((()=>new lG(\"ag-hidden\"))),[E,x]=(0,t.useState)((()=>new lG(\"ag-invisible\")));(0,t.useImperativeHandle)(n,(()=>({refresh:()=>!1}))),(0,t.useLayoutEffect)((()=>gG(u,i,a.current)),[u]);const A=(0,t.useCallback)((t=>{if(o.current=t,!o.current)return i.destroyBean(d.current),void(d.current=null);const n={setInnerRenderer:(e,t)=>{h(e),m(t)},setChildCount:e=>g(e),addOrRemoveCssClass:(e,t)=>y((n=>n.setClass(e,t))),setContractedDisplayed:e=>S((t=>t.setClass(\"ag-hidden\",!e))),setExpandedDisplayed:e=>w((t=>t.setClass(\"ag-hidden\",!e))),setCheckboxVisible:e=>x((t=>t.setClass(\"ag-invisible\",!e)))};d.current=i.createBean(new nN),d.current.init(n,o.current,s.current,l.current,c.current,mG,e)}),[]),T=(0,t.useMemo)((()=>`ag-cell-wrapper ${v.toString()}`),[v]),D=(0,t.useMemo)((()=>`ag-group-expanded ${b.toString()}`),[b]),R=(0,t.useMemo)((()=>`ag-group-contracted ${C.toString()}`),[C]),M=(0,t.useMemo)((()=>`ag-group-checkbox ${E.toString()}`),[E]),O=u&&u.componentFromFramework,k=O?u.componentClass:void 0,I=null==u&&null!=f,N=Tk.escapeString(f,!0);return t.createElement(\"span\",Gz({className:T,ref:A},e.colDef?{}:{role:null==(r=d.current)?void 0:r.getCellAriaRole()}),t.createElement(\"span\",{className:D,ref:l}),t.createElement(\"span\",{className:R,ref:c}),t.createElement(\"span\",{className:M,ref:s}),t.createElement(\"span\",{className:\"ag-group-value\",ref:a},I&&t.createElement(t.Fragment,null,N),O&&t.createElement(k,Gz({},u.params))),t.createElement(\"span\",{className:\"ag-group-child-count\"},p))})),vG=mG,yG=(0,t.memo)((e=>{const{ctrl:n}=e,r=n.isAlive(),{context:i}=(0,t.useContext)(aG),o=r?n.getColId():void 0,[a,s]=(0,t.useState)(),l=(0,t.useRef)(null),c=(0,t.useRef)(null),d=(0,t.useRef)(null),u=(0,t.useRef)();let h=(0,t.useRef)();r&&!h.current&&(h.current=new Mk((()=>l.current)));const p=(0,t.useCallback)((e=>{var t;if(l.current=e,!l.current||!r)return;const i={setWidth:e=>{l.current&&(l.current.style.width=e)},addOrRemoveCssClass:(e,t)=>h.current.addOrRemoveCssClass(e,t),setAriaSort:e=>{l.current&&(e?Tk.setAriaSort(l.current,e):Tk.removeAriaSort(l.current))},setUserCompDetails:e=>s(e),getUserCompInstance:()=>u.current||void 0};n.setComp(i,l.current,c.current,d.current);const o=n.getSelectAllGui();null==(t=c.current)||t.insertAdjacentElement(\"afterend\",o)}),[]);(0,t.useLayoutEffect)((()=>gG(a,i,d.current,u)),[a]),(0,t.useEffect)((()=>{n.setDragSource(l.current)}),[a]);const g=(0,t.useMemo)((()=>!(!(null==a?void 0:a.componentFromFramework)||!cG(a.componentClass))),[a]),f=a&&a.componentFromFramework,m=a&&a.componentClass;return t.createElement(\"div\",{ref:p,className:\"ag-header-cell\",\"col-id\":o,role:\"columnheader\"},t.createElement(\"div\",{ref:c,className:\"ag-header-cell-resize\",role:\"presentation\"}),t.createElement(\"div\",{ref:d,className:\"ag-header-cell-comp-wrapper\",role:\"presentation\"},f&&g&&t.createElement(m,Gz({},a.params)),f&&!g&&t.createElement(m,Vz(Gz({},a.params),{ref:u}))))})),bG=(0,t.memo)((e=>{const{context:n}=(0,t.useContext)(aG),{ctrl:r}=e,[i,o]=(0,t.useState)((()=>new lG)),[a,s]=(0,t.useState)((()=>new lG)),[l,c]=(0,t.useState)(\"false\"),[d,u]=(0,t.useState)(),[h,p]=(0,t.useState)(),g=(0,t.useMemo)((()=>r.getColId()),[]),f=(0,t.useRef)(null),m=(0,t.useRef)(null),v=(0,t.useRef)(),y=(0,t.useCallback)((e=>{if(f.current=e,!f.current)return;const t={setWidth:e=>{f.current&&(f.current.style.width=e)},addOrRemoveCssClass:(e,t)=>o((n=>n.setClass(e,t))),setUserCompDetails:e=>p(e),setResizableDisplayed:e=>{s((t=>t.setClass(\"ag-hidden\",!e))),c(e?\"false\":\"true\")},setAriaExpanded:e=>u(e),getUserCompInstance:()=>v.current||void 0};r.setComp(t,f.current,m.current)}),[]);(0,t.useLayoutEffect)((()=>gG(h,n,f.current)),[h]),(0,t.useEffect)((()=>{f.current&&r.setDragSource(f.current)}),[h]);const b=(0,t.useMemo)((()=>!(!(null==h?void 0:h.componentFromFramework)||!cG(h.componentClass))),[h]),w=(0,t.useMemo)((()=>\"ag-header-group-cell \"+i.toString()),[i]),C=(0,t.useMemo)((()=>\"ag-header-cell-resize \"+a.toString()),[a]),S=h&&h.componentFromFramework,E=h&&h.componentClass;return t.createElement(\"div\",{ref:y,className:w,\"col-id\":g,role:\"columnheader\",\"aria-expanded\":d},S&&b&&t.createElement(E,Gz({},h.params)),S&&!b&&t.createElement(E,Vz(Gz({},h.params),{ref:v})),t.createElement(\"div\",{ref:m,\"aria-hidden\":l,className:C}))}));function wG(){Tk.warnOnce(\"Using custom components without `reactiveCustomComponents = true` is deprecated.\")}var CG=(0,t.memo)((e=>{const{context:n,gridOptionsService:r}=(0,t.useContext)(aG),[i,o]=(0,t.useState)((()=>new lG(\"ag-header-cell\",\"ag-floating-filter\"))),[a,s]=(0,t.useState)((()=>new lG)),[l,c]=(0,t.useState)((()=>new lG(\"ag-floating-filter-button\",\"ag-hidden\"))),[d,u]=(0,t.useState)(\"false\"),[h,p]=(0,t.useState)(),[g,f]=(0,t.useState)(1),m=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useRef)(null),w=(0,t.useRef)(),C=(0,t.useRef)(),S=e=>{null!=e&&w.current&&w.current(e)},{ctrl:E}=e,x=(0,t.useCallback)((e=>{if(m.current=e,!m.current)return;C.current=new Rk((e=>{w.current=e}));const t={addOrRemoveCssClass:(e,t)=>o((n=>n.setClass(e,t))),addOrRemoveBodyCssClass:(e,t)=>s((n=>n.setClass(e,t))),setButtonWrapperDisplayed:e=>{c((t=>t.setClass(\"ag-hidden\",!e))),u(e?\"false\":\"true\")},setWidth:e=>{m.current&&(m.current.style.width=e)},setCompDetails:e=>p(e),getFloatingFilterComp:()=>C.current?C.current:null,setMenuIcon:e=>{var t;return null==(t=b.current)?void 0:t.appendChild(e)}};E.setComp(t,m.current,b.current,v.current)}),[]);(0,t.useLayoutEffect)((()=>gG(h,n,v.current,S)),[h]);const A=(0,t.useMemo)((()=>i.toString()),[i]),T=(0,t.useMemo)((()=>a.toString()),[a]),D=(0,t.useMemo)((()=>l.toString()),[l]),R=(0,t.useMemo)((()=>!!(h&&h.componentFromFramework&&cG(h.componentClass))),[h]),M=(0,t.useMemo)((()=>r.get(\"reactiveCustomComponents\")),[]),O=(0,t.useMemo)((()=>{if(h){if(M){const e=new Xz(h.params,(()=>f((e=>e+1))));return S(e),e}h.componentFromFramework&&wG()}}),[h]),k=null==O?void 0:O.getProps(),I=h&&h.componentFromFramework,N=h&&h.componentClass;return t.createElement(\"div\",{ref:x,className:A,role:\"gridcell\"},t.createElement(\"div\",{ref:v,className:T,role:\"presentation\"},I&&!M&&t.createElement(N,Vz(Gz({},h.params),{ref:R?()=>{}:S})),I&&M&&t.createElement(Bz.Provider,{value:{setMethods:e=>O.setMethods(e)}},t.createElement(N,Gz({},k)))),t.createElement(\"div\",{ref:y,\"aria-hidden\":d,className:D,role:\"presentation\"},t.createElement(\"button\",{ref:b,type:\"button\",className:\"ag-button ag-floating-filter-button-button\",tabIndex:-1})))})),SG=(0,t.memo)((e=>{const{ctrl:n}=e,{topOffset:r,rowHeight:i}=(0,t.useMemo)((()=>n.getTopAndHeight()),[]),o=n.getAriaRowIndex(),a=n.getHeaderRowClass(),[s,l]=(0,t.useState)((()=>i+\"px\")),[c,d]=(0,t.useState)((()=>r+\"px\")),[u,h]=(0,t.useState)((()=>n.getHeaderCtrls())),p=(0,t.useRef)(null),g=(0,t.useCallback)((e=>{if(p.current=e,!e)return;const t={setHeight:e=>l(e),setTop:e=>d(e),setHeaderCtrls:(e,t,n)=>{hG(n,(()=>{h((n=>pG(n,e,t)))}))},setWidth:e=>{p.current&&(p.current.style.width=e)}};n.setComp(t,!1)}),[]),f=(0,t.useMemo)((()=>({height:s,top:c})),[s,c]),m=(0,t.useCallback)((e=>{switch(n.getType()){case ZP.COLUMN_GROUP:return t.createElement(bG,{ctrl:e,key:e.getInstanceId()});case ZP.FLOATING_FILTER:return t.createElement(CG,{ctrl:e,key:e.getInstanceId()});default:return t.createElement(yG,{ctrl:e,key:e.getInstanceId()})}}),[]);return t.createElement(\"div\",{ref:g,className:a,role:\"row\",style:f,\"aria-rowindex\":o},u.map(m))})),EG=(0,t.memo)((e=>{const[n,r]=(0,t.useState)(!0),[i,o]=(0,t.useState)([]),{context:a}=(0,t.useContext)(aG),s=(0,t.useRef)(null),l=(0,t.useRef)(null),c=(0,t.useRef)(null),d=\"left\"===e.pinned,u=\"right\"===e.pinned,h=!d&&!u,p=(0,t.useCallback)((t=>{if(s.current=t,!s.current)return a.destroyBean(c.current),void(c.current=null);const n={setDisplayed:r,setCtrls:e=>o(e),setCenterWidth:e=>{l.current&&(l.current.style.width=e)},setViewportScrollLeft:e=>{s.current&&(s.current.scrollLeft=e)},setPinnedContainerWidth:e=>{s.current&&(s.current.style.width=e,s.current.style.minWidth=e,s.current.style.maxWidth=e)}};c.current=a.createBean(new gL(e.pinned)),c.current.setComp(n,s.current)}),[]),g=n?\"\":\"ag-hidden\",f=()=>i.map((e=>t.createElement(SG,{ctrl:e,key:e.getInstanceId()})));return t.createElement(t.Fragment,null,d&&t.createElement(\"div\",{ref:p,className:\"ag-pinned-left-header \"+g,\"aria-hidden\":!n,role:\"rowgroup\"},f()),u&&t.createElement(\"div\",{ref:p,className:\"ag-pinned-right-header \"+g,\"aria-hidden\":!n,role:\"rowgroup\"},f()),h&&t.createElement(\"div\",{ref:p,className:\"ag-header-viewport \"+g,role:\"presentation\"},t.createElement(\"div\",{ref:l,className:\"ag-header-container\",role:\"rowgroup\"},f())))})),xG=(0,t.memo)((()=>{const[e,n]=(0,t.useState)((()=>new lG)),[r,i]=(0,t.useState)(),{context:o}=(0,t.useContext)(aG),a=(0,t.useRef)(null),s=(0,t.useRef)(null),l=(0,t.useCallback)((e=>{if(a.current=e,!e)return o.destroyBean(s.current),void(s.current=null);const t={addOrRemoveCssClass:(e,t)=>n((n=>n.setClass(e,t))),setHeightAndMinHeight:e=>i(e)};s.current=o.createBean(new yL),s.current.setComp(t,a.current,a.current)}),[]),c=(0,t.useMemo)((()=>\"ag-header \"+e.toString()),[e]),d=(0,t.useMemo)((()=>({height:r,minHeight:r})),[r]);return t.createElement(\"div\",{ref:l,className:c,style:d,role:\"presentation\"},t.createElement(EG,{pinned:\"left\"}),t.createElement(EG,{pinned:null}),t.createElement(EG,{pinned:\"right\"}))})),AG=(e,n)=>{(0,t.useEffect)((()=>{const t=n.current;if(t){const n=t.parentElement;if(n){const r=document.createComment(e);return n.insertBefore(r,t),()=>{n.removeChild(r)}}}}),[e])},TG=(0,t.memo)((e=>{const[n,r]=(0,t.useState)(),{context:i,popupService:o,localeService:a,gridOptionsService:s}=(0,t.useContext)(aG);return(n=>{const l=(0,t.useRef)((()=>{const{editDetails:t,cellCtrl:n,eParentCell:l}=e,{compDetails:c}=t,d=s.get(\"stopEditingWhenCellsLoseFocus\"),u=i.createBean(new VP(c.params)),h=u.getGui();if(e.jsChildComp){const t=e.jsChildComp.getGui();t&&h.appendChild(t)}const p={column:n.getColumn(),rowNode:n.getRowNode(),type:\"popupCellEditor\",eventSource:l,ePopup:h,position:t.popupPosition,keepWithinBounds:!0},g=o.positionPopupByComponent.bind(o,p),f=a.getLocaleTextFunc(),m=o.addPopup({modal:d,eChild:h,closeOnEsc:!0,closedCallback:()=>{n.onPopupEditorClosed()},anchorToElement:l,positionCallback:g,ariaLabel:f(\"ariaLabelCellEditor\",\"Cell Editor\")}),v=m?m.hideFunc:void 0;return r(u),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),()=>{null!=v&&v(),i.destroyBean(u)}})),c=(0,t.useRef)(),d=(0,t.useRef)(!1),u=(0,t.useRef)(!1),[,h]=(0,t.useState)(0);d.current&&(u.current=!0),(0,t.useEffect)((()=>(d.current||(c.current=l.current(),d.current=!0),h((e=>e+1)),()=>{u.current&&c.current&&c.current()})),[])})(),t.createElement(t.Fragment,null,n&&e.wrappedContent&&(0,hr.createPortal)(e.wrappedContent,n.getGui()))})),DG=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Rk((e=>{this.resolveInstanceCreated=e})),this.onValueChange=e=>this.updateValue(e),this.value=e.value}getProps(){return Vz(Gz({},this.cellEditorParams),{initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange})}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){$z(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}setRef(e){var t;this.componentInstance=e,null==(t=this.resolveInstanceCreated)||t.call(this),this.resolveInstanceCreated=void 0}getOptionalMethods(){return[\"isPopup\",\"isCancelBeforeStart\",\"isCancelAfterEnd\",\"getPopupPosition\",\"focusIn\",\"focusOut\",\"afterGuiAttached\"]}updateValue(e){this.value=e,this.refreshProps()}},RG=(e,n,r)=>{const i=e.compProxy;return t.createElement(t.Fragment,null,!i&&t.createElement(n,Vz(Gz({},e.compDetails.params),{ref:r})),i&&((e,n,r)=>{const{compProxy:i}=e;r(i);const o=i.getProps(),a=cG(n);return t.createElement(Bz.Provider,{value:{setMethods:e=>i.setMethods(e)}},a&&t.createElement(n,Gz({},o)),!a&&t.createElement(n,Vz(Gz({},o),{ref:e=>i.setRef(e)})))})(e,n,r))},MG=(0,t.memo)((e=>{const{context:n}=(0,t.useContext)(aG),{cellCtrl:r,printLayout:i,editingRow:o}=e,a=r.getTabIndex(),s=r.getColumnIdSanitised(),l=r.getInstanceId(),[c,d]=(0,t.useState)((()=>r.isCellRenderer()?void 0:{compDetails:void 0,value:r.getValueToDisplay(),force:!1})),[u,h]=(0,t.useState)(),[p,g]=(0,t.useState)(1),[f,m]=(0,t.useState)(),[v,y]=(0,t.useState)(!1),[b,w]=(0,t.useState)(!1),[C,S]=(0,t.useState)(!1),[E,x]=(0,t.useState)(),A=(0,t.useMemo)((()=>r.isForceWrapper()),[r]),T=(0,t.useMemo)((()=>r.getCellAriaRole()),[r]),D=(0,t.useRef)(null),R=(0,t.useRef)(null),M=(0,t.useRef)(),O=(0,t.useRef)(),k=(0,t.useRef)(),I=(0,t.useRef)([]),N=(0,t.useRef)(),[P,L]=(0,t.useState)(0),F=(0,t.useCallback)((e=>{N.current=e,L((e=>e+1))}),[]),_=A||null!=c&&(v||C||b),z=(0,t.useCallback)(((e,t)=>{O.current=t,t&&(((e,t,n)=>{const r=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){const e=`AG Grid: Found an issue in column ${r.getColId()}. If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.`;Tk.doOnce((()=>console.warn(e)),\"jsEditorComp-isPopup-\"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){const e=`AG Grid: Found an issue in column ${r.getColId()}. If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.`;Tk.doOnce((()=>console.warn(e)),\"jsEditorComp-getPopupPosition-\"+n.getColumn().getColId())}})(e,t,r),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((()=>{r.stopEditing(!0),r.focusCell(!0)})))}),[r]),G=(0,t.useCallback)((e=>z(!0,e)),[z]),V=(0,t.useCallback)((e=>z(!1,e)),[z]);let B=(0,t.useRef)();B.current||(B.current=new Mk((()=>D.current))),((e,n,r,i,o,a)=>{const{context:s}=(0,t.useContext)(aG),l=(0,t.useCallback)((()=>{const e=o.current;if(!e)return;const t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),s.destroyBean(e),o.current=void 0}),[]);(0,t.useEffect)((()=>{const t=null!=e,i=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(!t||!i||n&&null==r)return void l();const s=e.compDetails;if(o.current){const t=o.current,n=!(null==t.refresh||0!=e.force)&&t.refresh(s.params);if(!0===n||void 0===n)return;l()}const c=s.newAgStackInstance();if(!c)return;const d=c.resolveNow(null,(e=>e));if(!d)return;const u=d.getGui();u&&((n?r:a.current).appendChild(u),o.current=d)}),[e,n,i]),(0,t.useEffect)((()=>l),[])})(c,_,N.current,P,M,D);const H=(0,t.useRef)();(0,t.useLayoutEffect)((()=>{const e=H.current,t=c;if(H.current=c,null==e||null==e.compDetails||null==t||null==t.compDetails)return;const n=e.compDetails,r=t.compDetails;n.componentClass==r.componentClass&&null!=R.current&&null!=R.current.refresh&&1!=R.current.refresh(r.params)&&g((e=>e+1))}),[c]),(0,t.useLayoutEffect)((()=>{if(!u||u.compDetails.componentFromFramework)return;const e=u.compDetails,t=!0===u.popup,r=(e=>{const t=e.newAgStackInstance();if(t)return t.resolveNow(null,(e=>e))})(e);if(!r)return;const i=r.getGui();if(z(t,r),!t){const e=(A?k:D).current;null==e||e.appendChild(i),r.afterGuiAttached&&r.afterGuiAttached()}return x(r),()=>{n.destroyBean(r),z(t,void 0),x(void 0),i&&i.parentElement&&i.parentElement.removeChild(i)}}),[u]);const j=(0,t.useCallback)((e=>{if(k.current=e,!k.current)return I.current.forEach((e=>e())),void(I.current=[]);const t=e=>{var t;if(e){const r=e.getGui();null==(t=k.current)||t.insertAdjacentElement(\"afterbegin\",r),I.current.push((()=>{n.destroyBean(e),Tk.removeFromParent(r)}))}return e};v&&t(r.createSelectionCheckbox()),C&&t(r.createDndSource()),b&&t(r.createRowDragComp())}),[r,n,C,b,v]),U=(0,t.useCallback)((e=>{if(D.current=e,!D.current)return;if(!r)return;const t={addOrRemoveCssClass:(e,t)=>B.current.addOrRemoveCssClass(e,t),setUserStyles:e=>m(e),getFocusableElement:()=>D.current,setIncludeSelection:e=>y(e),setIncludeRowDrag:e=>w(e),setIncludeDndSource:e=>S(e),getCellEditor:()=>O.current||null,getCellRenderer:()=>R.current?R.current:M.current,getParentOfValue:()=>N.current?N.current:k.current?k.current:D.current,setRenderDetails:(e,t,n)=>{d((r=>(null==r?void 0:r.compDetails)!==e||(null==r?void 0:r.value)!==t||(null==r?void 0:r.force)!==n?{value:t,compDetails:e,force:n}:r))},setEditDetails:(e,t,n,r)=>{if(e){let i;r?i=new DG(e.params,(()=>g((e=>e+1)))):e.componentFromFramework&&wG(),h({compDetails:e,popup:t,popupPosition:n,compProxy:i}),t||d(void 0)}else h((e=>{(null==e?void 0:e.compProxy)&&(O.current=void 0)}))}},n=k.current||void 0;r.setComp(t,D.current,n,i,o)}),[]),W=(0,t.useMemo)((()=>!!(c&&c.compDetails&&c.compDetails.componentFromFramework&&cG(c.compDetails.componentClass))),[c]);(0,t.useLayoutEffect)((()=>{var e;D.current&&(B.current.addOrRemoveCssClass(\"ag-cell-value\",!_),B.current.addOrRemoveCssClass(\"ag-cell-inline-editing\",!!u&&!u.popup),B.current.addOrRemoveCssClass(\"ag-cell-popup-editing\",!!u&&!!u.popup),B.current.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!u||!!u.popup),null==(e=r.getRowCtrl())||e.setInlineEditingCss(!!u),r.shouldRestoreFocus()&&!r.isEditing()&&D.current.focus({preventScroll:!0}))}));const $=()=>t.createElement(t.Fragment,null,null!=c&&((e,n,r,i,o,a,s)=>{const{compDetails:l,value:c}=e,d=!l,u=l&&l.componentFromFramework,h=l&&l.componentClass,p=(null==c?void 0:c.toString)?c.toString():c,g=()=>t.createElement(t.Fragment,null,d&&t.createElement(t.Fragment,null,p),u&&!a&&t.createElement(h,Vz(Gz({},l.params),{key:n,ref:i})),u&&a&&t.createElement(h,Vz(Gz({},l.params),{key:n})));return t.createElement(t.Fragment,null,o?t.createElement(\"span\",{role:\"presentation\",id:`cell-${r}`,className:\"ag-cell-value\",ref:s},g()):g())})(c,p,l,R,_,W,F),null!=u&&((e,n,r,i,o,a)=>{const s=e.compDetails,l=s.componentClass,c=s.componentFromFramework&&!e.popup,d=s.componentFromFramework&&e.popup,u=!s.componentFromFramework&&e.popup;return t.createElement(t.Fragment,null,c&&RG(e,l,n),d&&t.createElement(TG,{editDetails:e,cellCtrl:o,eParentCell:i,wrappedContent:RG(e,l,r)}),u&&a&&t.createElement(TG,{editDetails:e,cellCtrl:o,eParentCell:i,jsChildComp:a}))})(u,V,G,D.current,r,E));return t.createElement(\"div\",{ref:U,style:f,tabIndex:a,role:T,\"col-id\":s},_?t.createElement(\"div\",{className:\"ag-cell-wrapper\",role:\"presentation\",ref:j},$()):$())})),OG=(0,t.memo)((e=>{const{context:n,gridOptionsService:r}=(0,t.useContext)(aG),{rowCtrl:i,containerType:o}=e,a=i.getTabIndex(),s=(0,t.useRef)(i.getDomOrder()),l=i.isFullWidth(),c=i.getRowNode().displayed,[d,u]=(0,t.useState)((()=>c?i.getRowIndex():null)),[h,p]=(0,t.useState)((()=>i.getRowId())),[g,f]=(0,t.useState)((()=>i.getBusinessKey())),[m,v]=(0,t.useState)((()=>i.getRowStyles())),[y,b]=(0,t.useState)((()=>null)),[w,C]=(0,t.useState)(),[S,E]=(0,t.useState)((()=>c?i.getInitialRowTop(o):void 0)),[x,A]=(0,t.useState)((()=>c?i.getInitialTransform(o):void 0)),T=(0,t.useRef)(null),D=(0,t.useRef)(),R=(0,t.useRef)(!1),[M,O]=(0,t.useState)(0);(0,t.useEffect)((()=>{var e;if(R.current)return;if(!w)return;if(M>10)return;const t=null==(e=T.current)?void 0:e.firstChild;t?(i.setupDetailRowAutoHeight(t),R.current=!0):O((e=>e+1))}),[w,M]);let k=(0,t.useRef)();k.current||(k.current=new Mk((()=>T.current)));const I=(0,t.useCallback)((e=>{if(T.current=e,!T.current)return void i.unsetComp(o);if(!i.isAlive())return;const t={setTop:E,setTransform:A,addOrRemoveCssClass:(e,t)=>k.current.addOrRemoveCssClass(e,t),setDomOrder:e=>s.current=e,setRowIndex:u,setRowId:p,setRowBusinessKey:f,setUserStyles:v,setCellCtrls:(e,t)=>{hG(t,(()=>{b((t=>pG(t,e,s.current)))}))},showFullWidth:e=>C(e),getFullWidthCellRenderer:()=>D.current,refreshFullWidth:e=>_.current?(C((t=>Vz(Gz({},t),{params:e()}))),!0):!(!D.current||!D.current.refresh)&&D.current.refresh(e())};i.setComp(t,T.current,o)}),[]);(0,t.useLayoutEffect)((()=>gG(w,n,T.current,D)),[w]);const N=(0,t.useMemo)((()=>{const e={top:S,transform:x};return Object.assign(e,m),e}),[S,x,m]),P=l&&w&&w.componentFromFramework,L=!l&&null!=y,F=(0,t.useMemo)((()=>!(!(null==w?void 0:w.componentFromFramework)||!cG(w.componentClass))),[w]),_=(0,t.useRef)(!1);return(0,t.useEffect)((()=>{_.current=F&&!!w&&!!r.get(\"reactiveCustomComponents\")}),[F,w]),t.createElement(\"div\",{ref:I,role:\"row\",style:N,\"row-index\":d,\"row-id\":h,\"row-business-key\":g,tabIndex:a},L&&(null==y?void 0:y.map((e=>t.createElement(MG,{cellCtrl:e,editingRow:i.isEditing(),printLayout:i.isPrintLayout(),key:e.getInstanceId()})))),P&&(()=>{const e=w.componentClass;return t.createElement(t.Fragment,null,F&&t.createElement(e,Gz({},w.params)),!F&&t.createElement(e,Vz(Gz({},w.params),{ref:D})))})())})),kG=(0,t.memo)((e=>{const{context:n}=(0,t.useContext)(aG),{name:r}=e,i=(0,t.useMemo)((()=>OP(r)),[r]),o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useRef)([]),[l,c]=(0,t.useState)((()=>[])),d=(0,t.useRef)(!1),u=(0,t.useRef)(),h=(0,t.useMemo)((()=>PP.getRowContainerCssClasses(r)),[r]),p=(0,t.useMemo)((()=>sG(h.viewport)),[h]),g=(0,t.useMemo)((()=>sG(h.container)),[h]),f=r===MP.CENTER||r===MP.TOP_CENTER||r===MP.BOTTOM_CENTER||r===MP.STICKY_TOP_CENTER;AG(\" AG Row Container \"+r+\" \",f?o:a);const m=(0,t.useCallback)((()=>f?null!=o.current&&null!=a.current:null!=a.current),[]),v=(0,t.useCallback)((()=>f?null==o.current&&null==a.current:null==a.current),[]),y=(0,t.useCallback)((()=>{if(v()&&(n.destroyBean(u.current),u.current=null),m()){const e=e=>{hG(e,(()=>{c((e=>pG(e,s.current,d.current)))}))},t={setViewportHeight:e=>{o.current&&(o.current.style.height=e)},setRowCtrls:({rowCtrls:t,useFlushSync:n})=>{const r=!!n&&s.current.length>0&&t.length>0;s.current=t,e(r)},setDomOrder:t=>{d.current!=t&&(d.current=t,e(!1))},setContainerWidth:e=>{a.current&&(a.current.style.width=e)}};u.current=n.createBean(new PP(r)),u.current.setComp(t,a.current,o.current)}}),[m,v]),b=(0,t.useCallback)((e=>{a.current=e,y()}),[y]),w=(0,t.useCallback)((e=>{o.current=e,y()}),[y]),C=()=>t.createElement(\"div\",{className:g,ref:b,role:\"rowgroup\"},l.map((e=>t.createElement(OG,{rowCtrl:e,containerType:i,key:e.getInstanceId()}))));return t.createElement(t.Fragment,null,f?t.createElement(\"div\",{className:p,ref:w,role:\"presentation\"},C()):C())})),IG=(0,t.memo)((()=>{const{context:e,agStackComponentsRegistry:n,resizeObserverService:r}=(0,t.useContext)(aG),[i,o]=(0,t.useState)(\"\"),[a,s]=(0,t.useState)(0),[l,c]=(0,t.useState)(0),[d,u]=(0,t.useState)(\"0px\"),[h,p]=(0,t.useState)(\"0px\"),[g,f]=(0,t.useState)(\"100%\"),[m,v]=(0,t.useState)(\"\"),[y,b]=(0,t.useState)(\"\"),[w,C]=(0,t.useState)(null),[S,E]=(0,t.useState)(\"\"),[x,A]=(0,t.useState)(null),[T,D]=(0,t.useState)(\"ag-layout-normal\");let R=(0,t.useRef)();R.current||(R.current=new Mk((()=>M.current)));const M=(0,t.useRef)(null),O=(0,t.useRef)(null),k=(0,t.useRef)(null),I=(0,t.useRef)(null),N=(0,t.useRef)(null),P=(0,t.useRef)(null),L=(0,t.useRef)([]),F=(0,t.useRef)([]);AG(\" AG Grid Body \",M),AG(\" AG Pinned Top \",O),AG(\" AG Sticky Top \",k),AG(\" AG Middle \",N),AG(\" AG Pinned Bottom \",P);const _=(0,t.useCallback)((t=>{if(M.current=t,!M.current)return e.destroyBeans(L.current),F.current.forEach((e=>e())),L.current=[],void(F.current=[]);if(!e)return;const i=t=>{const r=n.getComponentClass(t),i=e.createBean(new r);return L.current.push(i),i},a=(e,t)=>{e.appendChild(t),F.current.push((()=>e.removeChild(t)))};a(M.current,document.createComment(\" AG Fake Horizontal Scroll \")),a(M.current,i(\"AG-FAKE-HORIZONTAL-SCROLL\").getGui()),a(M.current,document.createComment(\" AG Overlay Wrapper \")),a(M.current,i(\"AG-OVERLAY-WRAPPER\").getGui()),I.current&&(a(I.current,document.createComment(\" AG Fake Vertical Scroll \")),a(I.current,i(\"AG-FAKE-VERTICAL-SCROLL\").getGui()));const l={setRowAnimationCssOnBodyViewport:o,setColumnCount:e=>{M.current&&Tk.setAriaColCount(M.current,e)},setRowCount:e=>{M.current&&Tk.setAriaRowCount(M.current,e)},setTopHeight:s,setBottomHeight:c,setStickyTopHeight:u,setStickyTopTop:p,setStickyTopWidth:f,setTopDisplay:v,setBottomDisplay:b,setColumnMovingCss:(e,t)=>R.current.addOrRemoveCssClass(e,t),updateLayoutClasses:D,setAlwaysVerticalScrollClass:C,setPinnedTopBottomOverflowY:E,setCellSelectableCss:(e,t)=>A(t?e:null),setBodyViewportWidth:e=>{N.current&&(N.current.style.width=e)},registerBodyViewportResizeListener:e=>{if(N.current){const t=r.observeResize(N.current,e);F.current.push((()=>t()))}}},d=e.createBean(new aP);L.current.push(d),d.setComp(l,M.current,N.current,O.current,P.current,k.current)}),[]),z=(0,t.useMemo)((()=>sG(\"ag-root\",\"ag-unselectable\",T)),[T]),G=(0,t.useMemo)((()=>sG(\"ag-body-viewport\",i,T,w,x)),[i,T,w,x]),V=(0,t.useMemo)((()=>sG(\"ag-body\",T)),[T]),B=(0,t.useMemo)((()=>sG(\"ag-floating-top\",x)),[x]),H=(0,t.useMemo)((()=>sG(\"ag-sticky-top\",x)),[x]),j=(0,t.useMemo)((()=>sG(\"ag-floating-bottom\",x)),[x]),U=(0,t.useMemo)((()=>({height:a,minHeight:a,display:m,overflowY:S})),[a,m,S]),W=(0,t.useMemo)((()=>({height:d,top:h,width:g})),[d,h,g]),$=(0,t.useMemo)((()=>({height:l,minHeight:l,display:y,overflowY:S})),[l,y,S]),Y=e=>t.createElement(kG,{name:e,key:`${e}-container`}),K=({section:e,children:n,className:r,style:i})=>t.createElement(\"div\",{ref:e,className:r,role:\"presentation\",style:i},n.map(Y));return t.createElement(\"div\",{ref:_,className:z,role:\"treegrid\"},t.createElement(xG,null),K({section:O,className:B,style:U,children:[MP.TOP_LEFT,MP.TOP_CENTER,MP.TOP_RIGHT,MP.TOP_FULL_WIDTH]}),t.createElement(\"div\",{className:V,ref:I,role:\"presentation\"},K({section:N,className:G,children:[MP.LEFT,MP.CENTER,MP.RIGHT,MP.FULL_WIDTH]})),K({section:k,className:H,style:W,children:[MP.STICKY_TOP_LEFT,MP.STICKY_TOP_CENTER,MP.STICKY_TOP_RIGHT,MP.STICKY_TOP_FULL_WIDTH]}),K({section:P,className:j,style:$,children:[MP.BOTTOM_LEFT,MP.BOTTOM_CENTER,MP.BOTTOM_RIGHT,MP.BOTTOM_FULL_WIDTH]}))})),NG=(0,t.forwardRef)(((e,n)=>{const{children:r,eFocusableElement:i,onTabKeyDown:o,gridCtrl:a,forceFocusOutWhenTabGuardsAreEmpty:s}=e,{context:l}=(0,t.useContext)(aG),c=(0,t.useRef)(null),d=(0,t.useRef)(null),u=(0,t.useRef)(),h=e=>{const t=null==e?void 0:parseInt(e,10).toString();[c,d].forEach((e=>{var n,r;void 0===t?null==(n=e.current)||n.removeAttribute(\"tabindex\"):null==(r=e.current)||r.setAttribute(\"tabindex\",t)}))};(0,t.useImperativeHandle)(n,(()=>({forceFocusOutOfContainer(e){var t;null==(t=u.current)||t.forceFocusOutOfContainer(e)}})));const p=(0,t.useCallback)((()=>{if(!c.current&&!d.current)return l.destroyBean(u.current),void(u.current=null);if(c.current&&d.current){const e={setTabIndex:h};u.current=l.createBean(new xL({comp:e,eTopGuard:c.current,eBottomGuard:d.current,eFocusableElement:i,onTabKeyDown:o,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:e=>a.focusInnerElement(e)}))}}),[]),g=(0,t.useCallback)((e=>{c.current=e,p()}),[p]),f=(0,t.useCallback)((e=>{d.current=e,p()}),[p]),m=e=>{const n=\"top\"===e?EL.TAB_GUARD_TOP:EL.TAB_GUARD_BOTTOM;return t.createElement(\"div\",{className:`${EL.TAB_GUARD} ${n}`,role:\"presentation\",ref:\"top\"===e?g:f})};return t.createElement(t.Fragment,null,m(\"top\"),r,m(\"bottom\"))})),PG=(0,t.memo)(NG),LG=(0,t.memo)((({context:e})=>{const[n,r]=(0,t.useState)(\"\"),[i,o]=(0,t.useState)(\"\"),[a,s]=(0,t.useState)(\"\"),[l,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(null),[h,p]=(0,t.useState)(!1),[g,f]=(0,t.useState)(),m=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(),[b,w]=(0,t.useState)(null),C=(0,t.useRef)((()=>{})),S=(0,t.useCallback)((()=>{}),[]),E=(0,t.useMemo)((()=>e.isDestroyed()?null:e.getBean(\"beans\")),[e]);AG(\" AG Grid \",v);const x=(0,t.useCallback)((t=>{if(v.current=t,!v.current)return e.destroyBean(m.current),void(m.current=null);if(e.isDestroyed())return;m.current=e.createBean(new OF);const n=m.current;C.current=n.focusInnerElement.bind(n);const i={destroyGridUi:()=>{},setRtlClass:r,forceFocusOutOfContainer:e=>{var t;null==(t=y.current)||t.forceFocusOutOfContainer(e)},updateLayoutClasses:s,getFocusableContainers:()=>{var e,t;const n=[],r=null==(e=v.current)?void 0:e.querySelector(\".ag-root\"),i=null==(t=v.current)?void 0:t.querySelector(\".ag-side-bar:not(.ag-hidden)\");return r&&n.push(r),i&&n.push(i),n},setCursor:c,setUserSelect:u};n.setComp(i,v.current,v.current),p(!0)}),[]);(0,t.useEffect)((()=>{if(!(g&&E&&m.current&&b&&v.current))return;const t=m.current,n=[],{agStackComponentsRegistry:r}=E,i=r.getComponentClass(\"AG-GRID-HEADER-DROP-ZONES\"),o=r.getComponentClass(\"AG-SIDE-BAR\"),a=r.getComponentClass(\"AG-STATUS-BAR\"),s=r.getComponentClass(\"AG-WATERMARK\"),l=r.getComponentClass(\"AG-PAGINATION\"),c=[],d=v.current;if(t.showDropZones()&&i){const t=e.createBean(new i),r=t.getGui();d.insertAdjacentElement(\"afterbegin\",r),c.push(r),n.push(t)}if(t.showSideBar()&&o){const t=e.createBean(new o),r=t.getGui(),i=b.querySelector(\".ag-tab-guard-bottom\");i&&(i.insertAdjacentElement(\"beforebegin\",r),c.push(r)),n.push(t)}if(t.showStatusBar()&&a){const t=e.createBean(new a),r=t.getGui();d.insertAdjacentElement(\"beforeend\",r),c.push(r),n.push(t)}if(l){const t=e.createBean(new l),r=t.getGui();d.insertAdjacentElement(\"beforeend\",r),c.push(r),n.push(t)}if(t.showWatermark()&&s){const t=e.createBean(new s),r=t.getGui();d.insertAdjacentElement(\"beforeend\",r),c.push(r),n.push(t)}return()=>{e.destroyBeans(n),c.forEach((e=>{e.parentElement&&e.parentElement.removeChild(e)}))}}),[g,b,E]);const A=(0,t.useMemo)((()=>sG(\"ag-root-wrapper\",n,i,a)),[n,i,a]),T=(0,t.useMemo)((()=>sG(\"ag-root-wrapper-body\",\"ag-focus-managed\",a)),[a]),D=(0,t.useMemo)((()=>({userSelect:null!=d?d:\"\",WebkitUserSelect:null!=d?d:\"\",cursor:null!=l?l:\"\"})),[d,l]),R=(0,t.useCallback)((e=>{y.current=e,f(null!==e)}),[]);return t.createElement(\"div\",{ref:x,className:A,style:D,role:\"presentation\"},t.createElement(\"div\",{className:T,ref:w,role:\"presentation\"},h&&b&&E&&t.createElement(aG.Provider,{value:E},t.createElement(PG,{ref:R,eFocusableElement:b,onTabKeyDown:S,gridCtrl:m.current,forceFocusOutWhenTabGuardsAreEmpty:!0},t.createElement(IG,null)))))})),FG=e=>{var n,r;const i=(0,t.useRef)(),o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useRef)([]),l=(0,t.useRef)([]),c=(0,t.useRef)(e),d=(0,t.useRef)(!1),[u,h]=(0,t.useState)(void 0),[,p]=(0,t.useState)(0),g=(0,t.useCallback)((t=>{if(o.current=t,!o.current)return s.current.forEach((e=>e())),void(s.current.length=0);const n=e.modules||[];a.current||(a.current=new oG((()=>p((e=>e+1))),e.componentWrappingElement,e.maxComponentCreationTimeMs),s.current.push((()=>{var e;null==(e=a.current)||e.destroy(),a.current=null})));const r=$R.combineAttributesAndGridOptions(e.gridOptions,e),c={providedBeanInstances:{frameworkComponentWrapper:new _G(a.current,!!r.reactiveCustomComponents)},modules:n,frameworkOverrides:new GG},u=new L_;i.current=u.create(o.current,r,(t=>{h(t),s.current.push((()=>{t.destroy()})),t.getBean(a_.NAME).whenReady((()=>{if(t.isDestroyed())return;const n=i.current;n&&e.setGridApi&&e.setGridApi(n,new xF(n))}))}),(e=>{e.getBean(a_.NAME).whenReady((()=>{l.current.forEach((e=>e())),l.current.length=0,d.current=!0}))}),c)}),[]),f=(0,t.useMemo)((()=>Gz({height:\"100%\"},e.containerStyle||{})),[e.containerStyle]),m=(0,t.useCallback)((e=>{d.current?e():l.current.push(e)}),[]);return(0,t.useEffect)((()=>{const t=function(e,t){const n={};return Object.keys(t).forEach((r=>{const i=t[r];e[r]!==i&&(n[r]=i)})),n}(c.current,e);c.current=e,m((()=>{i.current&&$R.processOnChange(t,i.current)}))}),[e]),t.createElement(\"div\",{style:f,className:e.className,ref:g},u&&!u.isDestroyed()?t.createElement(LG,{context:u}):null,null!=(r=null==(n=a.current)?void 0:n.getPortals())?r:null)},_G=class extends F_{constructor(e,t){super(),this.parent=e,this.reactiveCustomComponents=t}createWrapper(e,t){if(this.reactiveCustomComponents){const n=(e=>{switch(e){case\"filter\":return qz;case\"floatingFilterComponent\":return Zz;case\"dateComponent\":return Kz;case\"loadingOverlayComponent\":return Jz;case\"noRowsOverlayComponent\":return tG;case\"statusPanel\":return nG;case\"toolPanel\":return rG;case\"menuItem\":return eG}})(t.propertyName);if(n)return new n(e,this.parent,t)}else switch(t.propertyName){case\"filter\":case\"floatingFilterComponent\":case\"dateComponent\":case\"loadingOverlayComponent\":case\"noRowsOverlayComponent\":case\"statusPanel\":case\"toolPanel\":case\"menuItem\":wG()}const n=!t.cellRenderer&&\"toolPanel\"!==t.propertyName;return new Wz(e,this.parent,t,n)}},zG=(0,t.forwardRef)(((e,n)=>{const{ctrlsFactory:r,context:i,gridOptionsService:o,resizeObserverService:a,clientSideRowModel:s,serverSideRowModel:l}=(0,t.useContext)(aG),[c,d]=(0,t.useState)((()=>new lG)),[u,h]=(0,t.useState)((()=>new lG)),[p,g]=(0,t.useState)(),[f,m]=(0,t.useState)(),v=(0,t.useRef)(),y=(0,t.useRef)(null),b=(0,t.useRef)(),w=(0,t.useMemo)((()=>yD.__getGridRegisteredModules(e.api.getGridId())),[e]),C=(0,t.useMemo)((()=>c.toString()+\" ag-details-row\"),[c]),S=(0,t.useMemo)((()=>u.toString()+\" ag-details-grid\"),[u]);n&&(0,t.useImperativeHandle)(n,(()=>({refresh(){var e,t;return null!=(t=null==(e=v.current)?void 0:e.refresh())&&t}}))),e.template&&Tk.warnOnce(\"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/\");const E=(0,t.useCallback)((t=>{if(y.current=t,!y.current)return i.destroyBean(v.current),void(b.current&&b.current());const n={addOrRemoveCssClass:(e,t)=>d((n=>n.setClass(e,t))),addOrRemoveDetailGridCssClass:(e,t)=>h((n=>n.setClass(e,t))),setDetailGrid:e=>g(e),setRowData:e=>m(e),getGui:()=>y.current},c=r.getInstance(\"detailCellRenderer\");if(c&&(i.createBean(c),c.init(n,e),v.current=c,o.get(\"detailRowAutoHeight\"))){const t=()=>{if(null==y.current)return;const t=y.current.clientHeight;null!=t&&t>0&&setTimeout((()=>{e.node.setRowHeight(t),s?s.onRowHeightChanged():l&&l.onRowHeightChanged()}),0)};b.current=a.observeResize(y.current,t),t()}}),[]),x=(0,t.useCallback)(((e,t)=>{var n;null==(n=v.current)||n.registerDetailWithMaster(e,t)}),[]);return t.createElement(\"div\",{className:C,ref:E},p&&t.createElement(FG,Vz(Gz({className:S},p),{modules:w,rowData:f,setGridApi:x})))})),GG=class extends wF{constructor(){super(\"react\"),this.frameworkComponents={agGroupCellRenderer:vG,agGroupRowRenderer:vG,agDetailCellRenderer:zG},this.wrapIncoming=(e,t)=>{return\"ensureVisible\"===t?(n=e,uG||setTimeout((()=>uG=!1),0),uG=!0,n()):e();var n},this.renderingEngine=\"react\"}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&\"getGui\"in t)}},VG=class extends t.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=(e,t)=>{this.api=e,this.columnApi=t,this.apiListeners.forEach((t=>t(e)))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return t.createElement(FG,Vz(Gz({},this.props),{setGridApi:this.setGridApi}))}};var BG=n(6937);function HG(e){if(e.type)return e;if(\"#\"===e.charAt(0))return HG(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?\"a\":\"\"}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(\", \")})`:\"\"}(e));const t=e.indexOf(\"(\"),n=e.substring(0,t);if(-1===[\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(n))throw new Error((0,lh.A)(9,e));let r,i=e.substring(t+1,e.length-1);if(\"color\"===n){if(i=i.split(\" \"),r=i.shift(),4===i.length&&\"/\"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(r))throw new Error((0,lh.A)(10,r))}else i=i.split(\",\");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}function jG(e,t){return e=HG(e),t=function(e,t=0,n=1){return(0,BG.A)(e,t,n)}(t),\"rgb\"!==e.type&&\"hsl\"!==e.type||(e.type+=\"a\"),\"color\"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf(\"rgb\")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf(\"hsl\")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf(\"color\")?`${n} ${r.join(\" \")}`:`${r.join(\", \")}`,`${t}(${r})`}(e)}function UG(e){return(0,un.Ay)(\"MuiSkeleton\",e)}(0,qt.A)(\"MuiSkeleton\",[\"root\",\"text\",\"rectangular\",\"rounded\",\"circular\",\"pulse\",\"wave\",\"withChildren\",\"fitContent\",\"heightAuto\"]);const WG=[\"animation\",\"className\",\"component\",\"height\",\"style\",\"variant\",\"width\"];let $G,YG,KG,qG,QG=e=>e;const XG=(0,$t.i7)($G||($G=QG`\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n`)),ZG=(0,$t.i7)(YG||(YG=QG`\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n`)),JG=(0,Ot.Ay)(\"span\",{name:\"MuiSkeleton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=(o=e.shape.borderRadius,String(o).match(/[\\d.\\-+]*\\s*(.*)/)[1]||\"\"||\"px\"),r=(i=e.shape.borderRadius,parseFloat(i));var i,o;return(0,Tt.A)({display:\"block\",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:jG(e.palette.text.primary,\"light\"===e.palette.mode?.11:.13),height:\"1.2em\"},\"text\"===t.variant&&{marginTop:0,marginBottom:0,height:\"auto\",transformOrigin:\"0 55%\",transform:\"scale(1, 0.60)\",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,\"&:empty:before\":{content:'\"\\\\00a0\"'}},\"circular\"===t.variant&&{borderRadius:\"50%\"},\"rounded\"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{\"& > *\":{visibility:\"hidden\"}},t.hasChildren&&!t.width&&{maxWidth:\"fit-content\"},t.hasChildren&&!t.height&&{height:\"auto\"})}),(({ownerState:e})=>\"pulse\"===e.animation&&(0,$t.AH)(KG||(KG=QG`\n      animation: ${0} 2s ease-in-out 0.5s infinite;\n    `),XG)),(({ownerState:e,theme:t})=>\"wave\"===e.animation&&(0,$t.AH)(qG||(qG=QG`\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: ${0} 2s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ${0},\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    `),ZG,(t.vars||t).palette.action.hover))),eV=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiSkeleton\"}),{animation:r=\"pulse\",className:i,component:o=\"span\",height:a,style:s,variant:l=\"text\",width:c}=n,d=(0,At.A)(n,WG),u=(0,Tt.A)({},n,{animation:r,component:o,variant:l,hasChildren:Boolean(d.children)}),h=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e,s={root:[\"root\",n,r,i&&\"withChildren\",i&&!o&&\"fitContent\",i&&!a&&\"heightAuto\"]};return(0,Rt.A)(s,UG,t)})(u);return(0,Kt.jsx)(JG,(0,Tt.A)({as:o,ref:t,className:(0,We.A)(h.root,i),ownerState:u},d,{style:(0,Tt.A)({width:c,height:a},s)}))})),tV=eV,nV=t.createContext();function rV(e){return(0,un.Ay)(\"MuiGrid\",e)}const iV=[\"auto\",!0,1,2,3,4,5,6,7,8,9,10,11,12],oV=(0,qt.A)(\"MuiGrid\",[\"root\",\"container\",\"item\",\"zeroMinWidth\",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...[\"column-reverse\",\"column\",\"row-reverse\",\"row\"].map((e=>`direction-xs-${e}`)),...[\"nowrap\",\"wrap-reverse\",\"wrap\"].map((e=>`wrap-xs-${e}`)),...iV.map((e=>`grid-xs-${e}`)),...iV.map((e=>`grid-sm-${e}`)),...iV.map((e=>`grid-md-${e}`)),...iV.map((e=>`grid-lg-${e}`)),...iV.map((e=>`grid-xl-${e}`))]),aV=oV,sV=[\"className\",\"columns\",\"columnSpacing\",\"component\",\"container\",\"direction\",\"item\",\"rowSpacing\",\"spacing\",\"wrap\",\"zeroMinWidth\"];function lV(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),\"\")||\"px\"}`}function cV({breakpoints:e,values:t}){let n=\"\";Object.keys(t).forEach((e=>{\"\"===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const dV=(0,Ot.Ay)(\"div\",{name:\"MuiGrid\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let d=[];r&&(d=function(e,t,n={}){if(!e||e<=0)return[];if(\"string\"==typeof e&&!Number.isNaN(Number(e))||\"number\"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,c,t));const u=[];return c.forEach((e=>{const r=n[e];r&&u.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...d,\"row\"!==i&&t[`direction-xs-${String(i)}`],\"wrap\"!==s&&t[`wrap-xs-${String(s)}`],...u]}})((({ownerState:e})=>(0,Tt.A)({boxSizing:\"border-box\"},e.container&&{display:\"flex\",flexWrap:\"wrap\",width:\"100%\"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},\"wrap\"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,Ks.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,Ks.NI)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf(\"column\")&&(t[`& > .${aV.item}`]={maxWidth:\"none\"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,Ks.kW)({values:r,breakpoints:e.breakpoints.values});let n;\"object\"==typeof t&&(n=cV({breakpoints:e.breakpoints.values,values:t})),i=(0,Ks.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return\"0px\"!==o?{marginTop:`-${lV(o)}`,[`& > .${aV.item}`]:{paddingTop:lV(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${aV.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,Ks.kW)({values:r,breakpoints:e.breakpoints.values});let n;\"object\"==typeof t&&(n=cV({breakpoints:e.breakpoints.values,values:t})),i=(0,Ks.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return\"0px\"!==o?{width:`calc(100% + ${lV(o)})`,marginLeft:`-${lV(o)}`,[`& > .${aV.item}`]:{paddingLeft:lV(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:\"100%\",marginLeft:0,[`& > .${aV.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(!0===n)o={flexBasis:0,flexGrow:1,maxWidth:\"100%\"};else if(\"auto\"===n)o={flexBasis:\"auto\",flexGrow:0,flexShrink:0,maxWidth:\"none\",width:\"auto\"};else{const a=(0,Ks.kW)({values:t.columns,breakpoints:e.breakpoints.values}),s=\"object\"==typeof a?a[i]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+\"%\";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if(\"0px\"!==n){const e=`calc(${l} + ${lV(n)})`;c={flexBasis:e,maxWidth:e}}}o=(0,Tt.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[i]?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r}),{})})),uV=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiGrid\"}),{breakpoints:i}=Dr(),o=(0,On.A)(r),{className:a,columns:s,columnSpacing:l,component:c=\"div\",container:d=!1,direction:u=\"row\",item:h=!1,rowSpacing:p,spacing:g=0,wrap:f=\"wrap\",zeroMinWidth:m=!1}=o,v=(0,At.A)(o,sV),y=p||g,b=l||g,w=t.useContext(nV),C=d?s||12:w,S={},E=(0,Tt.A)({},v);i.keys.forEach((e=>{null!=v[e]&&(S[e]=v[e],delete E[e])}));const x=(0,Tt.A)({},o,{columns:C,container:d,direction:u,item:h,rowSpacing:y,columnSpacing:b,wrap:f,zeroMinWidth:m,spacing:g},S,{breakpoints:i.keys}),A=(e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if(\"string\"==typeof e&&!Number.isNaN(Number(e))||\"number\"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const u={root:[\"root\",n&&\"container\",i&&\"item\",s&&\"zeroMinWidth\",...c,\"row\"!==r&&`direction-xs-${String(r)}`,\"wrap\"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,Rt.A)(u,rV,t)})(x);return(0,Kt.jsx)(nV.Provider,{value:C,children:(0,Kt.jsx)(dV,(0,Tt.A)({ownerState:x,className:(0,We.A)(A.root,a),as:c,ref:n},E))})})),hV=uV,pV=()=>t.createElement(hV,{container:!0,spacing:2},[1,2,3,4,5].map((e=>t.createElement(hV,{item:!0,xs:12,key:e},t.createElement(Gn,{sx:{display:\"flex\",alignItems:\"center\"}},Array.from({length:4}).map((e=>t.createElement(Gn,{sx:{flexGrow:1},margin:1,key:e},t.createElement(tV,{width:\"100%\",\"data-testid\":\"skeleton\"},t.createElement(cl,null,\".\"))))))))));var gV;const fV=(0,$t.i7)(gV||(gV=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([\"\\n0% {\\n  opacity: 0;\\n}\\n30% {\\n  opacity: 0.1;\\n}\\n50% {\\n  opacity: 0.3;\\n}\\n75% {\\n  opacity: 0.5;\\n}\\n90% {\\n  opacity: 0.8;\\n}\\n100% {\\n  opacity: 1;\\n},\"]))),mV=(0,Ot.Ay)(Gn)((()=>({width:\"100%\",height:\"100%\",animation:\"\".concat(fV,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),\"& .ag-theme-alpine\":{width:\"100%\",height:\"100%\",'& .ag-row-selected[aria-selected=\"true\"]':{backgroundColors:\"transparent !important\",backgroundImage:\"none !important\"},\"& .ag-row-hover\":{background:\"transparent !important\",backgroundImage:\"none !important\"}},\".ag-cell\":{whiteSpace:\"normal !important\",wordWrap:\"break-word !important\"},\"& .ag-body-viewport.ag-layout-normal\":{},\"& .ag-row-selected::before,.ag-row-hover.ag-row-selected::before\":{backgroundColor:\"rgba(33, 150, 243, 0.1) !important\",backgroundImage:\"none !important\"},\"& .ag-root-wrapper\":{background:\"#ffffff\",border:\"1px solid #cfd3db !important\",borderRadius:6,height:\"auto\",\"& .ag-header\":{backgroundColor:\"#f3f4f6 !important\",border:\"none\",height:\"58px !important\",minHeight:\"58px !important\",borderBottom:\"1px solid #c4c4c4\",\"&-row\":{height:\"58px !important\"},\"& .ag-header-cell\":{color:\"#232630\",fontSize:14,fontFamily:\"NotoSans-SemiBold\",whiteSpace:\"break-spaces\",\"&-resize::after\":{visibility:\"hidden\"},padding:\"8px 25px\",\"& .ag-header-cell-text\":{color:\"#232630\",fontSize:14,fontFamily:\"NotoSans-SemiBold\"}}},\"& .ag-center-cols-container\":{minWidth:\"100% !important\",overflowY:\"auto\",overflowX:\"hidden\"},\"& .ag-row\":{width:\"100%\",display:\"flex\",alignItems:\"center\",borderColor:\"#CFD3DB\",borderWidth:\"1px\",\":last-child\":{border:\"none\"},\"& .ag-cell\":{color:\"#232630\",fontSize:12,fontFamily:\"NotoSans-Regular\",padding:\"12px 25px !important\",height:\"50px\",\"&-focus:not(.ag-cell-range-selected)\":{border:\"0 !important\"},\"& .smart-agro-lite-default-label\":{color:\"#232630\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-green-label\":{color:\"#62801e\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\",width:\"fit-content\"},\"& .smart-agro-lite-blue-label\":{color:\"#0071cd\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\"},\"& .smart-agro-lite-red-label\":{color:\"#EB4B4B\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\",width:\"fit-content\"},\"& .smart-agro-lite-active-label\":{color:\"#14803C\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-inactive-label\":{color:\"#EE5B3A\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-yellow-label\":{color:\"#E99921\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-label\":{width:\"118px\",height:\"35px\",fontWeight:\"600\",fontSize:\"14px\",fontFamily:\"NotoSans-SemiBold\",borderRadius:Ds.spacing(.7),lineHeight:\"20px\",boxSizing:\"border-box\",padding:\"8px\",margin:\"0px\",\"&.grey-bg\":{backgroundColor:Ds.palette.secondary.light},\"&.green-bg\":{backgroundColor:\"#DFFBE8\",color:\"#14803C\"},\"&.orange-bg\":{backgroundColor:\"#FFDAB9\",color:\"#E99921\"},\"&.red-bg\":{backgroundColor:\"#FFF1F1\",color:\"#CF3537\"},\"&.know-more\":{color:Ds.palette.primary.light,cursor:\"pointer\"},\"&.regular-text\":{fontWeight:\"400\",fontSize:\"12px\",color:\"#232630\"}},\"& .disabled-label\":{opacity:\"0.5\",cursor:\"not-allowed\"}}}},\"& .ag-root-wrapper-body.ag-layout-normal\":{minHeight:\"400px\",overflow:\"auto\"},\"& .ag-body-vertical-scroll-viewport\":{\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"& .ag-body-horizontal-scroll-viewport\":{\"::-webkit-scrollbar\":{width:\"2px\",height:\"4px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}}}))),vV=e=>{let{columnDefs:t,rows:n,frameworkComponents:r,rowClass:o=\"cst-row\",onGridReady:a,onRowClicked:s=(()=>{}),noDataTemplate:l,onCellClicked:c=(()=>{})}=e;return i().createElement(mV,null,i().createElement(Gn,{className:\"ag-theme-alpines test\",width:\"100%\",height:\"100%\"},i().createElement(VG,{rowData:n,animateRows:!1,rowClass:o,columnDefs:t,enableBrowserTooltips:!0,overlayNoRowsTemplate:l||\"No data found\",defaultColDef:{resizable:!0,suppressMovable:!0,flex:1},onRowClicked:s,onCellClicked:c,components:{frameworkComponents:r},rowMultiSelectWithClick:!0,rowSelection:\"single\",onGridReady:a,loadingOverlayComponent:pV,rowHeight:56,suppressAnimationFrame:!0,headerHeight:56})))};var yV=n(7986),bV=n(261),wV=n(9764),CV=n.n(wV);const SV=e=>{let{totalPageCount:t,onPageChange:n,pageNo:r}=e;const o=Ng();return t>1?i().createElement(rl,{className:o.container,flexDirection:\"row\",justifyContent:\"center\",display:\"flex\",mt:2},i().createElement(CV(),{nextLabel:i().createElement(bV.A,null),onPageChange:e=>{n(e.selected)},forcePage:r,marginPagesDisplayed:1,pageRangeDisplayed:3,pageCount:t,previousLabel:i().createElement(yV.A,null),pageClassName:o.pageitem,previousClassName:o.pageitem,nextClassName:o.pageitem,breakClassName:o.pageitem,containerClassName:o.container,activeClassName:o.activePageItem})):null},EV=i().memo(SV),xV=e=>{let{value:t,isUnderLine:n,isRedColorText:r,onClick:o}=e;const a=Ng(),s=\"\".concat(a.underLine,\" pointer\");return i().createElement(rl,{key:t,direction:\"row\",justifyContent:\"space-between\"},i().createElement(cl,{variant:\"body1\",component:\"h3\",className:\"\".concat(n?s:a.rowText1,\" \").concat(r&&a.redTextColor),onClick:o},t))};var AV=n(244),TV=n(3888);const DV=e=>{let{value:t,onClick:n,testID:r}=e;return i().createElement(rl,{direction:\"row\",justifyContent:\"space-between\"},i().createElement(gl,{onClick:n,\"data-testid\":r},t?i().createElement(AV.A,{fontSize:\"large\",color:\"success\"}):i().createElement(TV.A,{fontSize:\"large\",color:\"disabled\"})))},RV=e=>{let{value:t}=e;const n=Ng();return i().createElement(rl,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"flex-start\"},i().createElement(Gn,{className:n.imageContainer,\"data-testid\":\"image-container\"},null!==t&&(null==t?void 0:t.length)>0?i().createElement(\"img\",{src:t,alt:t,className:n.imageRow}):null))};function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MV.apply(this,arguments)}let OV=function(e){return e.IMAGE=\"IMAGE\",e.TEXT=\"TEXT\",e.TOGGLE=\"TOGGLE\",e.ACTION=\"ACTION\",e.ANY=\"ANY\",e}({});const kV=e=>{const{type:t,actionList:n=[],onClick:r,testID:o}=e;switch(t){case OV.IMAGE:return i().createElement(RV,e);case OV.TOGGLE:return i().createElement(DV,MV({},e,{testID:o,onClick:t=>{var n,i;return r(null,null!==(n=null==e||null===(i=e.node)||void 0===i?void 0:i.rowIndex)&&void 0!==n?n:-1)}}));case OV.TEXT:return i().createElement(xV,e);case OV.ACTION:return i().createElement(rl,{flexDirection:\"row\",gap:1},n&&(null==n?void 0:n.length)>0&&(null==n?void 0:n.map((t=>i().createElement(xV,{key:t.name,value:t.name,isUnderLine:!0,isRedColorText:t.isColorRed,onClick:n=>{var i,o;return r(t,null!==(i=null==e||null===(o=e.node)||void 0===o?void 0:o.rowIndex)&&void 0!==i?i:-1)}})))));case OV.ANY:return i().createElement(rl,{flexDirection:\"row\",gap:1,alignItems:\"center\",justifyContent:\"center\"},e.children);default:return null}};var IV=n(891);const NV=[{name:\"Vietnamese\",code:\"vi\"},{name:\"English\",code:\"en\"}];let PV=function(e){return e.HYPER_LINK=\"HyperLink\",e.DESCRIPTIVE=\"Descriptive\",e}({});const LV=[{name:PV.HYPER_LINK},{name:PV.DESCRIPTIVE}];let FV=function(e){return e.GEO_HIERARCHY=\"Geo-hierarchy\",e.COMMERCIAL_HIERARCHY=\"Commercial-hierarchy\",e}({});const _V=[{name:FV.GEO_HIERARCHY,code:\"GeoHierarchy\"}];function zV(){return zV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zV.apply(this,arguments)}const GV=e=>i().createElement(kV,zV({},e,{type:OV.TEXT})),VV=e=>[{headerName:Te.ownerName,field:\"ownerName\",width:300,filter:!1,cellRenderer:e=>GV(e)},{headerName:Te.shopName,field:\"shopName\",width:300,filter:!1,cellRenderer:e=>GV(e)},{headerName:Te.mobileNumber,field:\"mobileNumber\",width:200,cellRenderer:e=>GV(e),filter:!1},{headerName:Te.province,field:\"province\",width:300,cellRenderer:e=>GV(e),autoHeight:!0},{headerName:Te.status,field:\"status\",width:200,cellRenderer:e=>{var t;return i().createElement(kV,zV({},e,{type:OV.TOGGLE,testID:\"\".concat(null==e||null===(t=e.data)||void 0===t?void 0:t.mobileNumber)}))},cellRendererParams:{onClick:e}},{filter:!1,headerName:Te.actions,field:\"action\",width:200,cellRenderer:e=>i().createElement(kV,zV({},e,{type:OV.ACTION,isUnderLine:!0,actionList:[{name:Te.details,isColorRed:!1}]})),cellRendererParams:{onClick:e}}],BV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return[{headerName:Te.brand,field:\"brand_name\",width:300,filter:!1,cellRenderer:e=>GV(e)},{headerName:Te.sku,field:\"sku\",width:300,filter:!1,cellRenderer:e=>GV(e)},{headerName:Te.sapCode,field:\"sap_code\",width:200,cellRenderer:e=>GV(e),filter:!1},{headerName:Te.enable,field:\"scan_enabled\",width:200,cellRenderer:e=>{var t;return i().createElement(kV,zV({},e,{type:OV.TOGGLE,testID:\"\".concat(null==e||null===(t=e.data)||void 0===t?void 0:t.sap_code)}))},cellRendererParams:{onClick:e}},{filter:!1,headerName:Te.actions,field:\"action\",width:200,cellRenderer:e=>i().createElement(kV,zV({},e,{type:OV.ACTION,isUnderLine:!0,actionList:[{name:Te.details,isColorRed:!1},{name:Te.edit,isColorRed:!1}]})),cellRendererParams:{onClick:e}}]};function HV(e){return(0,un.Ay)(\"MuiCard\",e)}(0,qt.A)(\"MuiCard\",[\"root\"]);const jV=[\"className\",\"raised\"],UV=(0,Ot.Ay)(ei,{name:\"MuiCard\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((()=>({overflow:\"hidden\"}))),WV=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiCard\"}),{className:r,raised:i=!1}=n,o=(0,At.A)(n,jV),a=(0,Tt.A)({},n,{raised:i}),s=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},HV,t)})(a);return(0,Kt.jsx)(UV,(0,Tt.A)({className:(0,We.A)(s.root,r),elevation:i?8:void 0,ref:t,ownerState:a},o))})),$V=e=>{let{heading:t,content:n,heading1:r,content2:o,marginTop:a=3}=e;const s=Ng();return i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mt:a,mr:3,ml:3,mb:2},i().createElement(rl,{direction:\"column\",width:\"100%\",alignItems:\"flex-start\",className:s.alignItem},i().createElement(cl,{component:\"h4\",variant:\"h4\",className:s.title},t),i().createElement(cl,{component:\"body\",variant:\"h5\",className:s.body},n)),r&&r.length>0&&i().createElement(rl,{direction:\"column\",alignItems:\"flex-start\",className:s.alignItem,width:\"100%\"},i().createElement(cl,{component:\"h4\",variant:\"h4\",className:s.title},r),i().createElement(cl,{component:\"h5\",variant:\"h5\",className:s.body},o)))},YV=e=>{var t,n;let{isOpenDrawer:r=!0,onRequestClose:o=(()=>{}),data:a=null}=e;const s=Ng();if(null===a)return null;const{ownerName:l,shopName:c,mobileNumber:d,status:u,geoData:h=[]}=a,p=h.find((e=>4===e.level.id)),g=h.find((e=>3===e.level.id));return i().createElement(Ps,{isDrawerOpen:r,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\",className:s.textWrap},\"\".concat(Te.ownerName,\" - \").concat(l)),i().createElement(gl,{className:\"closeIcon\",\"aria-label\":\"close\",onClick:o,\"data-testid\":\"closeIcon\"},i().createElement(Zv.A,null))),i().createElement(Gn,{className:\"\".concat(s.scrollCard,\" scrollable\")},i().createElement(WV,{variant:\"elevation\",elevation:0,className:s.cardMinorElevation},i().createElement($V,{heading:Te.shopName,content:c,heading1:Te.mobileNumber,content2:d}),i().createElement($V,{heading:Te.provincialCities,content:null!==(t=null==g?void 0:g.translatedName)&&void 0!==t?t:\"\",heading1:Te.ward,content2:null!==(n=null==p?void 0:p.translatedName)&&void 0!==n?n:\"\"}),i().createElement($V,{heading:Te.status,content:u?Te.active:Te.inactive}),i().createElement(Gn,{className:s.spacer})),i().createElement(Gn,{className:s.spacer}),i().createElement(WV,{variant:\"elevation\",elevation:0,className:s.cardMinorElevation},i().createElement($V,{heading:Te.lastLogin,heading1:Te.lastScan}),i().createElement($V,{heading:Te.averageScan,heading1:Te.availableLoyaltyPoints}),i().createElement(Gn,{className:s.spacer})))))};var KV=n(4851);const qV={Retailer_Connect_Logo:n(5943),Cropwise_Logo:n(3997),UploadPlaceholder:n(3117),FilterIcon:n(1195),RetailerList:n(2400),UploadImagePlaceholder:n(3156),ProgressComplete:n(1133)};var QV=n(684);function XV(){return XV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XV.apply(this,arguments)}const ZV=e=>{let{title:t,imageProps:n,showBreadCrumb:r=!0}=e;const o=Ng(),a=ue(),s=e=>{a(Le.START_PAGE)};return i().createElement(rl,{direction:\"row\",alignItems:\"center\",mt:0,mb:3.8,gap:0},i().createElement(\"button\",XV({onClick:s,onKeyDown:e=>{\"Enter\"!==e.key&&\" \"!==e.key||s()},className:\"\".concat(o.clearBorder,\" \").concat(o.image)},n),i().createElement(\"img\",{src:\"\".concat(qV.Retailer_Connect_Logo).replace(\"connect-main\",\"\"),alt:\"logo\",className:\"pointer\"})),r&&i().createElement(i().Fragment,null,i().createElement(QV.A,null),i().createElement(cl,{ml:2,variant:\"h2\",component:\"h2\"},t)))},JV=e=>{const[n,r]=(0,t.useState)(!1),[o,a]=(0,t.useState)(null),[s,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(1),[u,h]=(0,t.useState)(0),[p,g]=(0,t.useState)({pageNo:0,pageSize:10}),f=p.pageSize,[m,v]=(0,t.useState)([]),[y,b]=(0,t.useState)({startIndex:0,endIndex:f}),{User:w}=Ue();(0,t.useEffect)((()=>{C(0,1e3)}),[]);const C=async(e,t)=>{try{const n=await((e,t)=>{let{page_no:n,page_size:r}=e;return Hv.getInstances().getApiService($v(),Bv.GET,{page_no:n,page_size:r},{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)})})({page_no:e,page_size:t},w),r=null==n?void 0:n.map(((e,t)=>{var n,r;const i=e.geoData.find((e=>4===e.level.id));return{ownerName:null==e?void 0:e.ownerName,shopName:e.shopName,mobileNumber:e.mobileNumber,province:null!==(n=null==i?void 0:i.translatedName)&&void 0!==n?n:\"\",status:null!==(r=e.active)&&void 0!==r&&r,geoData:e.geoData}}));d(5),v(r)}catch(e){mt.error(e.message)}};return i().createElement(Ig,null,i().createElement(Gn,null,i().createElement(ZV,{title:Te.retailers}),i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.8,gap:2},i().createElement(rl,{direction:\"row\",gap:2},i().createElement(uT,{placeholderText:\"Search\",onSearchValueChange:e=>{null==s||s.setQuickFilter(e)}})),i().createElement(rl,{direction:\"row\",justifyContent:\"end\",alignItems:\"center\",gap:2},i().createElement(Hn,{startIcon:i().createElement(KV.A,null),buttonName:Te.downloadData,variant:\"outlined\",color:\"primary\",disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:e=>{m.length>0&&FA([...m].map((e=>(delete e.geoData,{...e,status:e.status?\"Enabled\":\"Disabled\"}))),\"RetailerList\",VV())}}),i().createElement(Hn,{buttonName:Te.ADD_RETAILER,variant:\"contained\",color:\"primary\",disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:()=>{r(!0)}}))),i().createElement(ei,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(vV,{rows:m.slice(y.startIndex,y.endIndex),columnDefs:VV(((e,t)=>{if(-1!==t){const n=m.slice(y.startIndex,y.endIndex)[t];null!==e&&e.name===Te.details?a(n):(n.status=!n.status,m[t]=n,v([...m]))}})),onGridReady:e=>{l(e.api),(null==m?void 0:m.length)>0&&d(Math.ceil(m.length/f))}})),i().createElement(EV,{totalPageCount:c,pageNo:u,onPageChange:e=>{const t=(e+1-1)*f,n=Math.min(t+f,m.length);b({startIndex:t,endIndex:n}),h(e),g((t=>({...t,pageNo:Number(e)})))}}),n&&i().createElement(GA,{isOpenDrawer:n,onRequestClose:e=>{r(!1),e&&C(0,1e3)}}),i().createElement(YV,{data:o,isOpenDrawer:null!==o,onRequestClose:e=>{a(null)}})))};function eB(e){return(0,un.Ay)(\"PrivateSwitchBase\",e)}(0,qt.A)(\"PrivateSwitchBase\",[\"root\",\"checked\",\"disabled\",\"input\",\"edgeStart\",\"edgeEnd\"]);const tB=[\"autoFocus\",\"checked\",\"checkedIcon\",\"className\",\"defaultChecked\",\"disabled\",\"disableFocusRipple\",\"edge\",\"icon\",\"id\",\"inputProps\",\"inputRef\",\"name\",\"onBlur\",\"onChange\",\"onFocus\",\"readOnly\",\"required\",\"tabIndex\",\"type\",\"value\"],nB=(0,Ot.Ay)(mn)((({ownerState:e})=>(0,Tt.A)({padding:9,borderRadius:\"50%\"},\"start\"===e.edge&&{marginLeft:\"small\"===e.size?-3:-12},\"end\"===e.edge&&{marginRight:\"small\"===e.size?-3:-12}))),rB=(0,Ot.Ay)(\"input\",{shouldForwardProp:kt.A})({cursor:\"inherit\",position:\"absolute\",opacity:0,width:\"100%\",height:\"100%\",top:0,left:0,margin:0,padding:0,zIndex:1}),iB=t.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:p,name:g,onBlur:f,onChange:m,onFocus:v,readOnly:y,required:b=!1,tabIndex:w,type:C,value:S}=e,E=(0,At.A)(e,tB),[x,A]=(0,cp.A)({controlled:r,default:Boolean(a),name:\"SwitchBase\",state:\"checked\"}),T=vl();let D=s;T&&void 0===D&&(D=T.disabled);const R=\"checkbox\"===C||\"radio\"===C,M=(0,Tt.A)({},e,{checked:x,disabled:D,disableFocusRipple:l,edge:c}),O=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:[\"root\",n&&\"checked\",r&&\"disabled\",i&&`edge${(0,vn.A)(i)}`],input:[\"input\"]};return(0,Rt.A)(o,eB,t)})(M);return(0,Kt.jsxs)(nB,(0,Tt.A)({component:\"span\",className:(0,We.A)(O.root,o),centerRipple:!0,focusRipple:!l,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{f&&f(e),T&&T.onBlur&&T.onBlur(e)},ownerState:M,ref:t},E,{children:[(0,Kt.jsx)(rB,(0,Tt.A)({autoFocus:n,checked:r,defaultChecked:a,className:O.input,disabled:D,id:R?u:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;A(t),m&&m(e,t)},readOnly:y,ref:p,required:b,ownerState:M,tabIndex:w,type:C},\"checkbox\"===C&&void 0===S?{}:{value:S},h)),x?i:d]}))})),oB=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"}),\"CheckBoxOutlineBlank\"),aB=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"}),\"CheckBox\"),sB=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"}),\"IndeterminateCheckBox\");function lB(e){return(0,un.Ay)(\"MuiCheckbox\",e)}const cB=(0,qt.A)(\"MuiCheckbox\",[\"root\",\"checked\",\"disabled\",\"indeterminate\",\"colorPrimary\",\"colorSecondary\",\"sizeSmall\",\"sizeMedium\"]),dB=[\"checkedIcon\",\"color\",\"icon\",\"indeterminate\",\"indeterminateIcon\",\"inputProps\",\"size\",\"className\"],uB=(0,Ot.Ay)(iB,{shouldForwardProp:e=>(0,kt.A)(e)||\"classes\"===e,name:\"MuiCheckbox\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,vn.A)(n.size)}`],\"default\"!==n.color&&t[`color${(0,vn.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,Tt.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${\"default\"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(\"default\"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},\"default\"!==t.color&&{[`&.${cB.checked}, &.${cB.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cB.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),hB=(0,Kt.jsx)(aB,{}),pB=(0,Kt.jsx)(oB,{}),gB=(0,Kt.jsx)(sB,{}),fB=t.forwardRef((function(e,n){var r,i;const o=(0,It.A)({props:e,name:\"MuiCheckbox\"}),{checkedIcon:a=hB,color:s=\"primary\",icon:l=pB,indeterminate:c=!1,indeterminateIcon:d=gB,inputProps:u,size:h=\"medium\",className:p}=o,g=(0,At.A)(o,dB),f=c?d:l,m=c?d:a,v=(0,Tt.A)({},o,{color:s,indeterminate:c,size:h}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:[\"root\",n&&\"indeterminate\",`color${(0,vn.A)(r)}`,`size${(0,vn.A)(i)}`]},a=(0,Rt.A)(o,lB,t);return(0,Tt.A)({},t,a)})(v);return(0,Kt.jsx)(uB,(0,Tt.A)({type:\"checkbox\",inputProps:(0,Tt.A)({\"data-indeterminate\":c},u),icon:t.cloneElement(f,{fontSize:null!=(r=f.props.fontSize)?r:h}),checkedIcon:t.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),ownerState:v,ref:n,className:(0,We.A)(y.root,p)},g,{classes:y}))})),mB=[\"children\",\"className\",\"disableTypography\",\"inset\",\"primary\",\"primaryTypographyProps\",\"secondary\",\"secondaryTypographyProps\"],vB=(0,Ot.Ay)(\"div\",{name:\"MuiListItemText\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xg.primary}`]:t.primary},{[`& .${xg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,Tt.A)({flex:\"1 1 auto\",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),yB=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiListItemText\"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:u}=r,h=(0,At.A)(r,mB),{dense:p}=t.useContext(uh);let g=null!=l?l:i,f=d;const m=(0,Tt.A)({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!f,dense:p}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:[\"root\",n&&\"inset\",o&&\"dense\",r&&i&&\"multiline\"],primary:[\"primary\"],secondary:[\"secondary\"]};return(0,Rt.A)(a,Eg,t)})(m);return null==g||g.type===cl||a||(g=(0,Kt.jsx)(cl,(0,Tt.A)({variant:p?\"body2\":\"body1\",className:v.primary,component:null!=c&&c.variant?void 0:\"span\",display:\"block\"},c,{children:g}))),null==f||f.type===cl||a||(f=(0,Kt.jsx)(cl,(0,Tt.A)({variant:\"body2\",className:v.secondary,color:\"text.secondary\",display:\"block\"},u,{children:f}))),(0,Kt.jsxs)(vB,(0,Tt.A)({className:(0,We.A)(v.root,o),ownerState:m,ref:n},h,{children:[g,f]}))}));function bB(){return bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bB.apply(this,arguments)}const wB=e=>{var n;const r=Ng(),[o,a]=(0,t.useState)(\"\"),[s,l]=(0,t.useState)(!1);(0,t.useEffect)((()=>{var t;0===(null===(t=e.value)||void 0===t?void 0:t.length)&&(a(\"\"),l(!1))}),[e.value]);const c=(e=>e.isSortReq?Lg()(e.options,(t=>{const n=e.labelKeys.find((e=>null!==t[e]&&void 0!==t[e]&&String(t[e]).trim().length>0));return t[n]})):e.options)(e),d=t=>{var n;const{value:r}=t.target;let i=[...e.value];e.multiSelect?i=\"string\"==typeof r?r.split(\",\"):r:null!==(n=i)&&void 0!==n&&n.includes(r)?i=i.filter((e=>e!==r)):i.push(r),r===Te.selectAll?h():(l(i.length===c.length),e.onChange(e.name,i)),(null==o?void 0:o.length)>0&&a(\"\")},u=t=>{const n=e.labelKeys.find((e=>{var n;return null!==t[e]&&void 0!==t[e]&&(null===(n=String(t[e]))||void 0===n?void 0:n.trim().length)>0}));return t[n]||e.defaultLabel},h=()=>{if(s)e.onChange(e.name,[]);else{const t=c.map((e=>u(e)));e.onChange(e.name,t)}l(!s)},p=(null==o?void 0:o.length)>0?c.filter((e=>u(e).toLowerCase().includes(o.toLowerCase()))):c;return i().createElement(wg,{key:e.key,name:e.name,className:r.custom_select,MenuProps:{classes:{paper:r.Select}},onChange:d,IconComponent:e=>i().createElement(Og.A,bB({},e,{className:r.selectExpandMore})),value:e.value,renderValue:t=>Array.isArray(t)&&0===t.length||!t?i().createElement(\"span\",{className:\"defaultPlaceholder\"},e.defaultLabel):Array.isArray(t)?null==t?void 0:t.join(\",\"):t,disabled:null!==(n=e.isDisabled)&&void 0!==n&&n,displayEmpty:!0},i().createElement(Mg,{value:\"\",disabled:!0,sx:{padding:\"6px 8px !important\"}},e.defaultLabel),e.searchOn&&i().createElement(uT,{placeholderText:\"Search\",inputStyle:{minWidth:\"unset !important\"},className:r.search,onSearchValueChange:e=>{a(e)}}),e.selectAll&&i().createElement(Gn,null,i().createElement(Mg,{value:Te.selectAll,sx:{padding:\"6px 0px !important\"},onClick:()=>h()},i().createElement(rl,{flexDirection:\"row\",justifyItems:\"center\",alignItems:\"center\"},i().createElement(fB,{checked:s}),i().createElement(yB,{primary:Te.selectAll})))),p.map(((t,n)=>i().createElement(Gn,{key:\"\".concat(t.id,\"-\").concat(n)},i().createElement(Mg,{key:\"\".concat(t.id,\"-\").concat(n),value:u(t),sx:{padding:\"6px 0px !important\"},onClick:()=>d({target:{value:u(t)}})},i().createElement(rl,{flexDirection:\"row\",justifyItems:\"center\",alignItems:\"center\"},i().createElement(fB,{checked:null==e?void 0:e.value.includes(u(t))}),i().createElement(yB,{primary:u(t)})))))))},CB=i().memo(wB);var SB=n(7340),EB=n(3951);function xB(e,n,r,i,o){const[a,s]=t.useState((()=>o&&r?r(e).matches:i?i(e).matches:n));return(0,gr.A)((()=>{let t=!0;if(!r)return;const n=r(e),i=()=>{t&&s(n.matches)};return i(),n.addListener(i),()=>{t=!1,n.removeListener(i)}}),[e,r]),a}const AB=t.useSyncExternalStore;function TB(e,n,r,i,o){const a=t.useCallback((()=>n),[n]),s=t.useMemo((()=>{if(o&&r)return()=>r(e).matches;if(null!==i){const{matches:t}=i(e);return()=>t}return a}),[a,e,i,o,r]),[l,c]=t.useMemo((()=>{if(null===r)return[a,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,r,e]);return AB(c,l,s)}function DB(e,t={}){const n=(0,EB.A)(),r=\"undefined\"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,SB.A)({name:\"MuiUseMediaQuery\",props:t,theme:n});let l=\"function\"==typeof e?e(n):e;return l=l.replace(/^@media( ?)/m,\"\"),(void 0!==AB?TB:xB)(l,i,o,a,s)}var RB=n(5556),MB=n.n(RB);const OB=MB().oneOfType([MB().func,MB().object]),kB=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),IB=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error(\"MUI X: The `views` prop must contain at least one view.\");o=i[0]}return{views:i,openTo:o}},NB=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},PB=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=NB(a,a.date(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let c=e,d=e;for(a.isBefore(e,i)&&(c=i,d=null),a.isAfter(e,r)&&(d&&(d=r),c=null);c||d;){if(c&&a.isAfter(c,r)&&(c=null),d&&a.isBefore(d,i)&&(d=null),c){if(!o(c))return c;c=a.addDays(c,1)}if(d){if(!o(d))return d;d=a.addDays(d,-1)}}return null},LB=(e,t,n)=>null!=t&&e.isValid(t)?t:n,FB=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},_B=(e,t,n)=>\"date\"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),zB=(e,t)=>{const n=e.setHours(e.date(),\"am\"===t?2:14);return e.format(n,\"meridiem\")},GB=[\"year\",\"month\",\"day\"],VB=e=>GB.includes(e),BB=(e,{format:t,views:n},r)=>{if(null!=t)return t;const i=e.formats;return kB(n,[\"year\"])?i.year:kB(n,[\"month\"])?i.month:kB(n,[\"day\"])?i.dayOfMonth:kB(n,[\"month\",\"year\"])?`${i.month} ${i.year}`:kB(n,[\"day\",\"month\"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},HB=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},jB=[\"hours\",\"minutes\",\"seconds\"],UB=e=>jB.includes(e),WB=(e,t)=>e?t.getHours(e)>=12?\"pm\":\"am\":null,$B=(e,t,n)=>n&&(e>=12?\"pm\":\"am\")!==t?\"am\"===t?e-12:e+12:e,YB=(e,t,n,r)=>{const i=$B(r.getHours(e),t,n);return r.setHours(e,i)},KB=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),qB=(e,t)=>(n,r)=>e?t.isAfter(n,r):KB(n,t)>KB(r,t),QB=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const i=e.formats;return kB(n,[\"hours\"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:kB(n,[\"minutes\"])?i.minutes:kB(n,[\"seconds\"])?i.seconds:kB(n,[\"minutes\",\"seconds\"])?`${i.minutes}:${i.seconds}`:kB(n,[\"hours\",\"minutes\",\"seconds\"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},XB={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ZB=(e,t,n)=>{if(t===XB.year)return e.startOfYear(n);if(t===XB.month)return e.startOfMonth(n);if(t===XB.day)return e.startOfDay(n);let r=n;return t<XB.minutes&&(r=e.setMinutes(r,0)),t<XB.seconds&&(r=e.setSeconds(r,0)),t<XB.milliseconds&&(r=e.setMilliseconds(r,0)),r},JB=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI X: The token \"${t}\" is not supported by the Date and Time Pickers.`,\"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.\"].join(\"\\n\"));return\"string\"==typeof n?{type:n,contentType:\"meridiem\"===n?\"letter\":\"digit\",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},eH=(e,t,n)=>{const r=[],i=e.date(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},tH=(e,t,n,r)=>{switch(n){case\"month\":return FB(e,e.date(void 0,t)).map((t=>e.formatByString(t,r)));case\"weekDay\":return eH(e,t,r);case\"meridiem\":{const n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},nH=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],rH=(e,t)=>{if(\"0\"===t[0])return e;const n=[];let r=\"\";for(let i=0;i<e.length;i+=1){r+=e[i];const o=t.indexOf(r);o>-1&&(n.push(o.toString()),r=\"\")}return n.join(\"\")},iH=(e,t)=>\"0\"===t[0]?e:e.split(\"\").map((e=>t[Number(e)])).join(\"\"),oH=(e,t)=>{const n=rH(e,t);return!Number.isNaN(Number(n))},aH=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},sH=(e,t,n,r,i)=>{if(\"day\"===i.type&&\"digit-with-letter\"===i.contentType){const r=e.setDate(n.longestMonth,t);return e.formatByString(r,i.format)}let o=t.toString();return i.hasLeadingZerosInInput&&(o=aH(o,i.maxLength)),iH(o,r)},lH=(e,t,n)=>{let r=e.value||e.placeholder;const i=\"non-input\"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return\"non-input\"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(rH(r,n)).toString()),[\"input-rtl\",\"input-ltr\"].includes(t)&&\"digit\"===e.contentType&&!i&&1===r.length&&(r=`${r}‎`),\"input-rtl\"===t&&(r=`⁨${r}⁩`),r},cH=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),dH=(e,t,n)=>4===e.formatByString(e.date(void 0,t),n).length,uH=(e,t,n,r,i)=>{if(\"digit\"!==n)return!1;const o=e.date(void 0,t);switch(r){case\"year\":return dH(e,t,i)?\"0001\"===e.formatByString(e.setYear(o,1),i):\"01\"===e.formatByString(e.setYear(o,2001),i);case\"month\":return e.formatByString(e.startOfYear(o),i).length>1;case\"day\":return e.formatByString(e.startOfMonth(o),i).length>1;case\"weekDay\":return e.formatByString(e.startOfWeek(o),i).length>1;case\"hours\":return e.formatByString(e.setHours(o,1),i).length>1;case\"minutes\":return e.formatByString(e.setMinutes(o,1),i).length>1;case\"seconds\":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error(\"Invalid section type\")}},hH={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},pH=(e,t,n,r,i,o)=>[...r].sort(((e,t)=>hH[e.type]-hH[t.type])).reduce(((r,i)=>!o||i.modified?((e,t,n,r,i)=>{switch(n.type){case\"year\":return e.setYear(i,e.getYear(r));case\"month\":return e.setMonth(i,e.getMonth(r));case\"weekDay\":{const i=eH(e,t,n.format),o=e.formatByString(r,n.format),a=i.indexOf(o),s=i.indexOf(n.value)-a;return e.addDays(r,s)}case\"day\":return e.setDate(i,e.getDate(r));case\"meridiem\":{const t=e.getHours(r)<12,n=e.getHours(i);return t&&n>=12?e.addHours(i,-12):!t&&n<12?e.addHours(i,12):i}case\"hours\":return e.setHours(i,e.getHours(r));case\"minutes\":return e.setMinutes(i,e.getMinutes(r));case\"seconds\":return e.setSeconds(i,e.getSeconds(r));default:return i}})(e,t,i,n,r):r),i),gH=(e,t)=>null==e?null:\"all\"===e?\"all\":\"string\"==typeof e?t.findIndex((t=>t.type===e)):e,fH=(e,t)=>{if(e.value)switch(e.type){case\"month\":{if(\"digit\"===e.contentType)return t.format(t.setMonth(t.date(),Number(e.value)-1),\"month\");const n=t.parse(e.value,e.format);return n?t.format(n,\"month\"):void 0}case\"day\":return\"digit\"===e.contentType?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),\"dayOfMonthFull\"):e.value;default:return}},mH=(e,t)=>{if(e.value)switch(e.type){case\"weekDay\":if(\"letter\"===e.contentType)return;return Number(e.value);case\"meridiem\":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case\"day\":return\"digit-with-letter\"===e.contentType?parseInt(e.value,10):Number(e.value);case\"month\":{if(\"digit\"===e.contentType)return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return\"letter\"!==e.contentType?Number(e.value):void 0}},vH=[\"value\",\"referenceDate\"],yH={emptyValue:null,getTodayValue:_B,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=(0,At.A)(e,vH);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{let o=i?i():ZB(t,n,_B(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,o)&&(o=ZB(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,o)&&(o=ZB(t,n,e.maxDate));const a=qB(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&a(e.minTime,o)&&(o=ZB(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:NB(t,o,e.minTime))),null!=e.maxTime&&a(o,e.maxTime)&&(o=ZB(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:NB(t,o,e.maxTime))),o})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},bH={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:e=>e.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(\"\"),getV6InputValueFromSections:(e,t,n)=>{const r=e.map((e=>{const r=lH(e,n?\"input-rtl\":\"input-ltr\",t);return`${e.startSeparator}${r}${e.endSeparator}`})).join(\"\");return n?`⁦${r}⁩`:r},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},wH=[\"localeText\"],CH=t.createContext(null),SH=function(e){const{localeText:n}=e,r=(0,At.A)(e,wH),{utils:i,localeText:o}=t.useContext(CH)??{utils:void 0,localeText:void 0},a=(0,It.A)({props:r,name:\"MuiLocalizationProvider\"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:d,adapterLocale:u,localeText:h}=a,p=t.useMemo((()=>(0,Tt.A)({},h,o,n)),[h,o,n]),g=t.useMemo((()=>{if(!l)return i||null;const e=new l({locale:u,formats:c,instance:d});if(!e.isMUIAdapter)throw new Error([\"MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`\",\"For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`\",\"More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation\"].join(\"\\n\"));return e}),[l,u,c,d,i]),f=t.useMemo((()=>g?{minDate:g.date(\"1900-01-01T00:00:00.000\"),maxDate:g.date(\"2099-12-31T00:00:00.000\")}:null),[g]),m=t.useMemo((()=>({utils:g,defaultDates:f,localeText:p})),[f,g,p]);return(0,Kt.jsx)(CH.Provider,{value:m,children:s})},EH={previousMonth:\"Previous month\",nextMonth:\"Next month\",openPreviousView:\"Open previous view\",openNextView:\"Open next view\",calendarViewSwitchingButtonAriaLabel:e=>\"year\"===e?\"year view is open, switch to calendar view\":\"calendar view is open, switch to year view\",start:\"Start\",end:\"End\",startDate:\"Start date\",startTime:\"Start time\",endDate:\"End date\",endTime:\"End time\",cancelButtonLabel:\"Cancel\",clearButtonLabel:\"Clear\",okButtonLabel:\"OK\",todayButtonLabel:\"Today\",datePickerToolbarTitle:\"Select date\",dateTimePickerToolbarTitle:\"Select date & time\",timePickerToolbarTitle:\"Select time\",dateRangePickerToolbarTitle:\"Select date range\",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?\"No time selected\":`Selected time is ${n.format(t,\"fullTime\")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:\"Week number\",calendarWeekNumberHeaderText:\"#\",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,\"fullDate\")}`:\"Choose date\",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,\"fullTime\")}`:\"Choose time\",fieldClearLabel:\"Clear value\",timeTableLabel:\"pick time\",dateTableLabel:\"pick date\",fieldYearPlaceholder:e=>\"Y\".repeat(e.digitAmount),fieldMonthPlaceholder:e=>\"letter\"===e.contentType?\"MMMM\":\"MM\",fieldDayPlaceholder:()=>\"DD\",fieldWeekDayPlaceholder:e=>\"letter\"===e.contentType?\"EEEE\":\"EE\",fieldHoursPlaceholder:()=>\"hh\",fieldMinutesPlaceholder:()=>\"mm\",fieldSecondsPlaceholder:()=>\"ss\",fieldMeridiemPlaceholder:()=>\"aa\",year:\"Year\",month:\"Month\",day:\"Day\",weekDay:\"Week day\",hours:\"Hours\",minutes:\"Minutes\",seconds:\"Seconds\",meridiem:\"Meridiem\",empty:\"Empty\"},xH=EH;var AH;AH=EH,(0,Tt.A)({},AH);const TH=()=>{const e=t.useContext(CH);if(null===e)throw new Error([\"MUI X: Can not find the date and time pickers localization context.\",\"It looks like you forgot to wrap your component in LocalizationProvider.\",\"This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package\"].join(\"\\n\"));if(null===e.utils)throw new Error([\"MUI X: Can not find the date and time pickers adapter from its localization context.\",\"It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.\"].join(\"\\n\"));const n=t.useMemo((()=>(0,Tt.A)({},xH,e.localeText)),[e.localeText]);return t.useMemo((()=>(0,Tt.A)({},e,{localeText:n})),[e,n])},DH=()=>TH().utils,RH=()=>TH().defaultDates,MH=()=>TH().localeText,OH=e=>{const n=DH(),r=t.useRef();return void 0===r.current&&(r.current=n.date(void 0,e)),r.current};function kH(e){return(0,un.Ay)(\"MuiPickersToolbar\",e)}(0,qt.A)(\"MuiPickersToolbar\",[\"root\",\"content\"]);const IH=[\"children\",\"className\",\"toolbarTitle\",\"hidden\",\"titleId\",\"isLandscape\",\"classes\",\"landscapeDirection\"],NH=(0,Ot.Ay)(\"div\",{name:\"MuiPickersToolbar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"space-between\",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:\"auto\",maxWidth:160,padding:16,justifyContent:\"flex-start\",flexWrap:\"wrap\"}}]}))),PH=(0,Ot.Ay)(\"div\",{name:\"MuiPickersToolbar\",slot:\"Content\",overridesResolver:(e,t)=>t.content})({display:\"flex\",flexWrap:\"wrap\",width:\"100%\",flex:1,justifyContent:\"space-between\",alignItems:\"center\",flexDirection:\"row\",variants:[{props:{isLandscape:!0},style:{justifyContent:\"flex-start\",alignItems:\"flex-start\",flexDirection:\"column\"}},{props:{isLandscape:!0,landscapeDirection:\"row\"},style:{flexDirection:\"row\"}}]}),LH=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPickersToolbar\"}),{children:r,className:i,toolbarTitle:o,hidden:a,titleId:s}=n,l=(0,At.A)(n,IH),c=n,d=(e=>{const{classes:t,isLandscape:n}=e,r={root:[\"root\"],content:[\"content\"],penIconButton:[\"penIconButton\",n&&\"penIconButtonLandscape\"]};return(0,Rt.A)(r,kH,t)})(c);return a?null:(0,Kt.jsxs)(NH,(0,Tt.A)({ref:t,className:(0,We.A)(d.root,i),ownerState:c},l,{children:[(0,Kt.jsx)(cl,{color:\"text.secondary\",variant:\"overline\",id:s,children:o}),(0,Kt.jsx)(PH,{className:d.content,ownerState:c,children:r})]}))}));function FH(e){return(0,un.Ay)(\"MuiDatePickerToolbar\",e)}(0,qt.A)(\"MuiDatePickerToolbar\",[\"root\",\"title\"]);const _H=[\"value\",\"isLandscape\",\"onChange\",\"toolbarFormat\",\"toolbarPlaceholder\",\"views\",\"className\",\"onViewChange\",\"view\"],zH=(0,Ot.Ay)(LH,{name:\"MuiDatePickerToolbar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),GH=(0,Ot.Ay)(cl,{name:\"MuiDatePickerToolbar\",slot:\"Title\",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:\"auto 16px auto auto\"}}]}),VH=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiDatePickerToolbar\"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s=\"––\",views:l,className:c}=r,d=(0,At.A)(r,_H),u=DH(),h=MH(),p=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],title:[\"title\"]},FH,t)})(r),g=t.useMemo((()=>{if(!i)return s;const e=BB(u,{format:a,views:l},!0);return u.formatByString(i,e)}),[i,a,s,u,l]),f=r;return(0,Kt.jsx)(zH,(0,Tt.A)({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:o,className:(0,We.A)(p.root,c)},d,{children:(0,Kt.jsx)(GH,{variant:\"h4\",align:o?\"left\":\"center\",ownerState:f,className:p.title,children:g})}))}));function BH(e,n){const r=DH(),i=RH(),o=(0,It.A)({props:e,name:n}),a=t.useMemo((()=>null==o.localeText?.toolbarTitle?o.localeText:(0,Tt.A)({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})),[o.localeText]);return(0,Tt.A)({},o,{localeText:a},IB({views:o.views,openTo:o.openTo,defaultViews:[\"year\",\"day\"],defaultOpenTo:\"day\"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:LB(r,o.minDate,i.minDate),maxDate:LB(r,o.maxDate,i.maxDate),slots:(0,Tt.A)({toolbar:VH},o.slots)})}const HH=({props:e,value:t,adapter:n})=>{if(null===t)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,c=n.utils.date(void 0,l),d=LB(n.utils,e.minDate,n.defaultDates.minDate),u=LB(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return\"invalidDate\";case Boolean(r&&r(t)):return\"shouldDisableDate\";case Boolean(i&&i(t)):return\"shouldDisableMonth\";case Boolean(o&&o(t)):return\"shouldDisableYear\";case Boolean(s&&n.utils.isAfterDay(t,c)):return\"disableFuture\";case Boolean(a&&n.utils.isBeforeDay(t,c)):return\"disablePast\";case Boolean(d&&n.utils.isBeforeDay(t,d)):return\"minDate\";case Boolean(u&&n.utils.isAfterDay(t,u)):return\"maxDate\";default:return null}};function jH(e){return(0,un.Ay)(\"MuiInputAdornment\",e)}const UH=(0,qt.A)(\"MuiInputAdornment\",[\"root\",\"filled\",\"standard\",\"outlined\",\"positionStart\",\"positionEnd\",\"disablePointerEvents\",\"hiddenLabel\",\"sizeSmall\"]);var WH;const $H=[\"children\",\"className\",\"component\",\"disablePointerEvents\",\"disableTypography\",\"position\",\"variant\"],YH=(0,Ot.Ay)(\"div\",{name:\"MuiInputAdornment\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,vn.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,Tt.A)({display:\"flex\",height:\"0.01em\",maxHeight:\"2em\",alignItems:\"center\",whiteSpace:\"nowrap\",color:(e.vars||e).palette.action.active},\"filled\"===t.variant&&{[`&.${UH.positionStart}&:not(.${UH.hiddenLabel})`]:{marginTop:16}},\"start\"===t.position&&{marginRight:8},\"end\"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:\"none\"}))),KH=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiInputAdornment\"}),{children:i,className:o,component:a=\"div\",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:d}=r,u=(0,At.A)(r,$H),h=vl()||{};let p=d;d&&h.variant,h&&!p&&(p=h.variant);const g=(0,Tt.A)({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:[\"root\",n&&\"disablePointerEvents\",i&&`position${(0,vn.A)(i)}`,a,r&&\"hiddenLabel\",o&&`size${(0,vn.A)(o)}`]};return(0,Rt.A)(s,jH,t)})(g);return(0,Kt.jsx)(ml.Provider,{value:null,children:(0,Kt.jsx)(YH,(0,Tt.A)({as:a,ownerState:g,className:(0,We.A)(f.root,o),ref:n},u,{children:\"string\"!=typeof i||l?(0,Kt.jsxs)(t.Fragment,{children:[\"start\"===c?WH||(WH=(0,Kt.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):null,i]}):(0,Kt.jsx)(cl,{color:\"text.secondary\",children:i})}))})}));function qH(e){if(null==e)return window;if(\"[object Window]\"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function QH(e){return e instanceof qH(e).Element||e instanceof Element}function XH(e){return e instanceof qH(e).HTMLElement||e instanceof HTMLElement}function ZH(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof qH(e).ShadowRoot||e instanceof ShadowRoot)}var JH=Math.max,ej=Math.min,tj=Math.round;function nj(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+\"/\"+e.version})).join(\" \"):navigator.userAgent}function rj(){return!/^((?!chrome|android).)*safari/i.test(nj())}function ij(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&XH(e)&&(i=e.offsetWidth>0&&tj(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&tj(r.height)/e.offsetHeight||1);var a=(QH(e)?qH(e):window).visualViewport,s=!rj()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,d=r.width/i,u=r.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function oj(e){var t=qH(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function aj(e){return e?(e.nodeName||\"\").toLowerCase():null}function sj(e){return((QH(e)?e.ownerDocument:e.document)||window.document).documentElement}function lj(e){return ij(sj(e)).left+oj(e).scrollLeft}function cj(e){return qH(e).getComputedStyle(e)}function dj(e){var t=cj(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function uj(e,t,n){void 0===n&&(n=!1);var r,i,o=XH(t),a=XH(t)&&function(e){var t=e.getBoundingClientRect(),n=tj(t.width)/e.offsetWidth||1,r=tj(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=sj(t),l=ij(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((\"body\"!==aj(t)||dj(s))&&(c=(r=t)!==qH(r)&&XH(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:oj(r)),XH(t)?((d=ij(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=lj(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function hj(e){var t=ij(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pj(e){return\"html\"===aj(e)?e:e.assignedSlot||e.parentNode||(ZH(e)?e.host:null)||sj(e)}function gj(e){return[\"html\",\"body\",\"#document\"].indexOf(aj(e))>=0?e.ownerDocument.body:XH(e)&&dj(e)?e:gj(pj(e))}function fj(e,t){var n;void 0===t&&(t=[]);var r=gj(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=qH(r),a=i?[o].concat(o.visualViewport||[],dj(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fj(pj(a)))}function mj(e){return[\"table\",\"td\",\"th\"].indexOf(aj(e))>=0}function vj(e){return XH(e)&&\"fixed\"!==cj(e).position?e.offsetParent:null}function yj(e){for(var t=qH(e),n=vj(e);n&&mj(n)&&\"static\"===cj(n).position;)n=vj(n);return n&&(\"html\"===aj(n)||\"body\"===aj(n)&&\"static\"===cj(n).position)?t:n||function(e){var t=/firefox/i.test(nj());if(/Trident/i.test(nj())&&XH(e)&&\"fixed\"===cj(e).position)return null;var n=pj(e);for(ZH(n)&&(n=n.host);XH(n)&&[\"html\",\"body\"].indexOf(aj(n))<0;){var r=cj(n);if(\"none\"!==r.transform||\"none\"!==r.perspective||\"paint\"===r.contain||-1!==[\"transform\",\"perspective\"].indexOf(r.willChange)||t&&\"filter\"===r.willChange||t&&r.filter&&\"none\"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var bj=\"top\",wj=\"bottom\",Cj=\"right\",Sj=\"left\",Ej=\"auto\",xj=[bj,wj,Cj,Sj],Aj=\"start\",Tj=\"end\",Dj=\"viewport\",Rj=\"popper\",Mj=xj.reduce((function(e,t){return e.concat([t+\"-\"+Aj,t+\"-\"+Tj])}),[]),Oj=[].concat(xj,[Ej]).reduce((function(e,t){return e.concat([t,t+\"-\"+Aj,t+\"-\"+Tj])}),[]),kj=[\"beforeRead\",\"read\",\"afterRead\",\"beforeMain\",\"main\",\"afterMain\",\"beforeWrite\",\"write\",\"afterWrite\"];function Ij(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Nj={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function Pj(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&\"function\"==typeof e.getBoundingClientRect)}))}function Lj(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Nj:i;return function(e,t,n){void 0===n&&(n=o);var i,a,s={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},Nj,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(n){var i=\"function\"==typeof n?n(s.options):n;u(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:QH(e)?fj(e):e.contextElement?fj(e.contextElement):[],popper:fj(t)};var a,c,h=function(e){var t=Ij(e);return kj.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=h.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if(\"function\"==typeof i){var o=i({state:s,name:t,instance:d,options:r});l.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Pj(t,n)){s.rects={reference:uj(t,yj(n),\"fixed\"===s.options.strategy),popper:hj(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,l=void 0===a?{}:a,u=i.name;\"function\"==typeof o&&(s=o({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){u(),c=!0}};if(!Pj(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var Fj={passive:!0};const _j={name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=qH(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener(\"scroll\",n.update,Fj)})),s&&l.addEventListener(\"resize\",n.update,Fj),function(){o&&c.forEach((function(e){e.removeEventListener(\"scroll\",n.update,Fj)})),s&&l.removeEventListener(\"resize\",n.update,Fj)}},data:{}};function zj(e){return e.split(\"-\")[0]}function Gj(e){return e.split(\"-\")[1]}function Vj(e){return[\"top\",\"bottom\"].indexOf(e)>=0?\"x\":\"y\"}function Bj(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?zj(i):null,a=i?Gj(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case bj:t={x:s,y:n.y-r.height};break;case wj:t={x:s,y:n.y+n.height};break;case Cj:t={x:n.x+n.width,y:l};break;case Sj:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Vj(o):null;if(null!=c){var d=\"y\"===c?\"height\":\"width\";switch(a){case Aj:t[c]=t[c]-(n[d]/2-r[d]/2);break;case Tj:t[c]=t[c]+(n[d]/2-r[d]/2)}}return t}var Hj={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function jj(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=a.x,p=void 0===h?0:h,g=a.y,f=void 0===g?0:g,m=\"function\"==typeof d?d({x:p,y:f}):{x:p,y:f};p=m.x,f=m.y;var v=a.hasOwnProperty(\"x\"),y=a.hasOwnProperty(\"y\"),b=Sj,w=bj,C=window;if(c){var S=yj(n),E=\"clientHeight\",x=\"clientWidth\";S===qH(n)&&\"static\"!==cj(S=sj(n)).position&&\"absolute\"===s&&(E=\"scrollHeight\",x=\"scrollWidth\"),(i===bj||(i===Sj||i===Cj)&&o===Tj)&&(w=wj,f-=(u&&S===C&&C.visualViewport?C.visualViewport.height:S[E])-r.height,f*=l?1:-1),i!==Sj&&(i!==bj&&i!==wj||o!==Tj)||(b=Cj,p-=(u&&S===C&&C.visualViewport?C.visualViewport.width:S[x])-r.width,p*=l?1:-1)}var A,T=Object.assign({position:s},c&&Hj),D=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:tj(n*i)/i||0,y:tj(r*i)/i||0}}({x:p,y:f},qH(n)):{x:p,y:f};return p=D.x,f=D.y,l?Object.assign({},T,((A={})[w]=y?\"0\":\"\",A[b]=v?\"0\":\"\",A.transform=(C.devicePixelRatio||1)<=1?\"translate(\"+p+\"px, \"+f+\"px)\":\"translate3d(\"+p+\"px, \"+f+\"px, 0)\",A)):Object.assign({},T,((t={})[w]=y?f+\"px\":\"\",t[b]=v?p+\"px\":\"\",t.transform=\"\",t))}const Uj={name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:zj(t.placement),variation:Gj(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:\"fixed\"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,jj(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,jj(Object.assign({},c,{offsets:t.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-placement\":t.placement})},data:{}},Wj={name:\"applyStyles\",enabled:!0,phase:\"write\",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];XH(i)&&aj(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?\"\":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]=\"\",e}),{});XH(r)&&aj(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:[\"computeStyles\"]},$j={name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Oj.reduce((function(e,n){return e[n]=function(e,t,n){var r=zj(e),i=[Sj,bj].indexOf(r)>=0?-1:1,o=\"function\"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Sj,Cj].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Yj={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function Kj(e){return e.replace(/left|right|bottom|top/g,(function(e){return Yj[e]}))}var qj={start:\"end\",end:\"start\"};function Qj(e){return e.replace(/start|end/g,(function(e){return qj[e]}))}function Xj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ZH(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zj(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jj(e,t,n){return t===Dj?Zj(function(e,t){var n=qH(e),r=sj(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=rj();(c||!c&&\"fixed\"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+lj(e),y:l}}(e,n)):QH(t)?function(e,t){var n=ij(e,!1,\"fixed\"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Zj(function(e){var t,n=sj(e),r=oj(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=JH(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=JH(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+lj(e),l=-r.scrollTop;return\"rtl\"===cj(i||n).direction&&(s+=JH(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(sj(e)))}function eU(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function tU(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function nU(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?\"clippingParents\":s,c=n.rootBoundary,d=void 0===c?Dj:c,u=n.elementContext,h=void 0===u?Rj:u,p=n.altBoundary,g=void 0!==p&&p,f=n.padding,m=void 0===f?0:f,v=eU(\"number\"!=typeof m?m:tU(m,xj)),y=h===Rj?\"reference\":Rj,b=e.rects.popper,w=e.elements[g?y:h],C=function(e,t,n,r){var i=\"clippingParents\"===t?function(e){var t=fj(pj(e)),n=[\"absolute\",\"fixed\"].indexOf(cj(e).position)>=0&&XH(e)?yj(e):e;return QH(n)?t.filter((function(e){return QH(e)&&Xj(e,n)&&\"body\"!==aj(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Jj(e,n,r);return t.top=JH(i.top,t.top),t.right=ej(i.right,t.right),t.bottom=ej(i.bottom,t.bottom),t.left=JH(i.left,t.left),t}),Jj(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(QH(w)?w:w.contextElement||sj(e.elements.popper),l,d,a),S=ij(e.elements.reference),E=Bj({reference:S,element:b,strategy:\"absolute\",placement:i}),x=Zj(Object.assign({},b,E)),A=h===Rj?x:S,T={top:C.top-A.top+v.top,bottom:A.bottom-C.bottom+v.bottom,left:C.left-A.left+v.left,right:A.right-C.right+v.right},D=e.modifiersData.offset;if(h===Rj&&D){var R=D[i];Object.keys(T).forEach((function(e){var t=[Cj,wj].indexOf(e)>=0?1:-1,n=[bj,wj].indexOf(e)>=0?\"y\":\"x\";T[e]+=R[n]*t}))}return T}const rU={name:\"flip\",enabled:!0,phase:\"main\",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=void 0===p||p,f=n.allowedAutoPlacements,m=t.options.placement,v=zj(m),y=l||(v!==m&&g?function(e){if(zj(e)===Ej)return[];var t=Kj(e);return[Qj(e),t,Qj(t)]}(m):[Kj(m)]),b=[m].concat(y).reduce((function(e,n){return e.concat(zj(n)===Ej?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Oj:l,d=Gj(r),u=d?s?Mj:Mj.filter((function(e){return Gj(e)===d})):xj,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var p=h.reduce((function(t,n){return t[n]=nU(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[zj(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:f}):n)}),[]),w=t.rects.reference,C=t.rects.popper,S=new Map,E=!0,x=b[0],A=0;A<b.length;A++){var T=b[A],D=zj(T),R=Gj(T)===Aj,M=[bj,wj].indexOf(D)>=0,O=M?\"width\":\"height\",k=nU(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),I=M?R?Cj:Sj:R?wj:bj;w[O]>C[O]&&(I=Kj(I));var N=Kj(I),P=[];if(o&&P.push(k[D]<=0),s&&P.push(k[I]<=0,k[N]<=0),P.every((function(e){return e}))){x=T,E=!1;break}S.set(T,P)}if(E)for(var L=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,\"break\"},F=g?3:1;F>0&&\"break\"!==L(F);F--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:[\"offset\"],data:{_skip:!1}};function iU(e,t,n){return JH(e,ej(t,n))}const oU={name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,g=n.tetherOffset,f=void 0===g?0:g,m=nU(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=zj(t.placement),y=Gj(t.placement),b=!y,w=Vj(v),C=\"x\"===w?\"y\":\"x\",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,A=\"function\"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,T=\"number\"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(o){var M,O=\"y\"===w?bj:Sj,k=\"y\"===w?wj:Cj,I=\"y\"===w?\"height\":\"width\",N=S[w],P=N+m[O],L=N-m[k],F=p?-x[I]/2:0,_=y===Aj?E[I]:x[I],z=y===Aj?-x[I]:-E[I],G=t.elements.arrow,V=p&&G?hj(G):{width:0,height:0},B=t.modifiersData[\"arrow#persistent\"]?t.modifiersData[\"arrow#persistent\"].padding:{top:0,right:0,bottom:0,left:0},H=B[O],j=B[k],U=iU(0,E[I],V[I]),W=b?E[I]/2-F-U-H-T.mainAxis:_-U-H-T.mainAxis,$=b?-E[I]/2+F+U+j+T.mainAxis:z+U+j+T.mainAxis,Y=t.elements.arrow&&yj(t.elements.arrow),K=Y?\"y\"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(M=null==D?void 0:D[w])?M:0,Q=N+$-q,X=iU(p?ej(P,N+W-q-K):P,N,p?JH(L,Q):L);S[w]=X,R[w]=X-N}if(s){var Z,J=\"x\"===w?bj:Sj,ee=\"x\"===w?wj:Cj,te=S[C],ne=\"y\"===C?\"height\":\"width\",re=te+m[J],ie=te-m[ee],oe=-1!==[bj,Sj].indexOf(v),ae=null!=(Z=null==D?void 0:D[C])?Z:0,se=oe?re:te-E[ne]-x[ne]-ae+T.altAxis,le=oe?te+E[ne]+x[ne]-ae-T.altAxis:ie,ce=p&&oe?function(e,t,n){var r=iU(e,t,n);return r>n?n:r}(se,te,le):iU(p?se:re,te,p?le:ie);S[C]=ce,R[C]=ce-te}t.modifiersData[r]=R}},requiresIfExists:[\"offset\"]},aU={name:\"arrow\",enabled:!0,phase:\"main\",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=zj(n.placement),l=Vj(s),c=[Sj,Cj].indexOf(s)>=0?\"height\":\"width\";if(o&&a){var d=function(e,t){return eU(\"number\"!=typeof(e=\"function\"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:tU(e,xj))}(i.padding,n),u=hj(o),h=\"y\"===l?bj:Sj,p=\"y\"===l?wj:Cj,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],m=yj(o),v=m?\"y\"===l?m.clientHeight||0:m.clientWidth||0:0,y=g/2-f/2,b=d[h],w=v-u[c]-d[p],C=v/2-u[c]/2+y,S=iU(b,C,w),E=l;n.modifiersData[r]=((t={})[E]=S,t.centerOffset=S-C,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?\"[data-popper-arrow]\":n;null!=r&&(\"string\"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xj(t.elements.popper,r)&&(t.elements.arrow=r)},requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]};function sU(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lU(e){return[bj,Cj,wj,Sj].some((function(t){return e[t]>=0}))}var cU=Lj({defaultModifiers:[_j,{name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Bj({reference:t.rects.reference,element:t.rects.popper,strategy:\"absolute\",placement:t.placement})},data:{}},Uj,Wj,$j,rU,oU,aU,{name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=nU(t,{elementContext:\"reference\"}),s=nU(t,{altBoundary:!0}),l=sU(a,r),c=sU(s,i,o),d=lU(l),u=lU(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-reference-hidden\":d,\"data-popper-escaped\":u})}}]});const dU=\"base\";function uU(e,t){const n=un.li[t];return n?`${dU}--${n}`:function(e,t){return`${dU}-${e}-${t}`}(e,t)}const hU=\"Popper\";function pU(e){return uU(hU,e)}!function(e,t){const n={};[\"root\"].forEach((t=>{n[t]=uU(e,t)}))}(hU);const gU={disableDefaultClasses:!1},fU=t.createContext(gU),mU=[\"anchorEl\",\"children\",\"direction\",\"disablePortal\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"slotProps\",\"slots\",\"TransitionProps\",\"ownerState\"],vU=[\"anchorEl\",\"children\",\"container\",\"direction\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"style\",\"transition\",\"slotProps\",\"slots\"];function yU(e){return\"function\"==typeof e?e():e}const bU={},wU=t.forwardRef((function(e,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:p={},slots:g={},TransitionProps:f}=e,m=(0,At.A)(e,mU),v=t.useRef(null),y=(0,Wn.A)(v,n),b=t.useRef(null),w=(0,Wn.A)(b,h),C=t.useRef(w);(0,gr.A)((()=>{C.current=w}),[w]),t.useImperativeHandle(h,(()=>b.current),[]);const S=function(e,t){if(\"ltr\"===t)return e;switch(e){case\"bottom-end\":return\"bottom-start\";case\"bottom-start\":return\"bottom-end\";case\"top-end\":return\"top-start\";case\"top-start\":return\"top-end\";default:return e}}(d,a),[E,x]=t.useState(S),[A,T]=t.useState(yU(i));t.useEffect((()=>{b.current&&b.current.forceUpdate()})),t.useEffect((()=>{i&&T(yU(i))}),[i]),(0,gr.A)((()=>{if(!A||!c)return;let e=[{name:\"preventOverflow\",options:{altBoundary:s}},{name:\"flip\",options:{altBoundary:s}},{name:\"onUpdate\",enabled:!0,phase:\"afterWrite\",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=cU(A,v.current,(0,Tt.A)({placement:S},u,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[A,s,l,c,u,S]);const D={placement:E};null!==f&&(D.TransitionProps=f);const R=(0,Rt.A)({root:[\"root\"]},function(e){const{disableDefaultClasses:n}=t.useContext(fU);return t=>n?\"\":e(t)}(pU)),M=null!=(r=g.root)?r:\"div\",O=Xn({elementType:M,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:\"tooltip\",ref:y},ownerState:e,className:R.root});return(0,Kt.jsx)(M,(0,Tt.A)({},O,{children:\"function\"==typeof o?o(D):o}))})),CU=t.forwardRef((function(e,n){const{anchorEl:r,children:i,container:o,direction:a=\"ltr\",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u=\"bottom\",popperOptions:h=bU,popperRef:p,style:g,transition:f=!1,slotProps:m={},slots:v={}}=e,y=(0,At.A)(e,vU),[b,w]=t.useState(!0);if(!l&&!d&&(!f||b))return null;let C;if(o)C=o;else if(r){const e=yU(r);C=e&&void 0!==e.nodeType?(0,Zn.A)(e).body:(0,Zn.A)(null).body}const S=d||!l||f&&!b?void 0:\"none\",E=f?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,Kt.jsx)(mr,{disablePortal:s,container:C,children:(0,Kt.jsx)(wU,(0,Tt.A)({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:f?!b:d,placement:u,popperOptions:h,popperRef:p,slotProps:m,slots:v},y,{style:(0,Tt.A)({position:\"fixed\",top:0,left:0,display:S},g),TransitionProps:E,children:i}))})}));var SU=n(5304);const EU=[\"anchorEl\",\"component\",\"components\",\"componentsProps\",\"container\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"transition\",\"slots\",\"slotProps\"],xU=(0,Ot.Ay)(CU,{name:\"MuiPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),AU=t.forwardRef((function(e,t){var n;const r=(0,SU.A)(),i=(0,It.A)({props:e,name:\"MuiPopper\"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:p,placement:g,popperOptions:f,popperRef:m,transition:v,slots:y,slotProps:b}=i,w=(0,At.A)(i,EU),C=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,S=(0,Tt.A)({anchorEl:o,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:p,placement:g,popperOptions:f,popperRef:m,transition:v},w);return(0,Kt.jsx)(xU,(0,Tt.A)({as:a,direction:null==r?void 0:r.direction,slots:{root:C},slotProps:null!=b?b:l},S,{ref:t}))})),TU=AU;function DU(e){return(0,un.Ay)(\"MuiPickersPopper\",e)}function RU(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}(0,qt.A)(\"MuiPickersPopper\",[\"root\",\"paper\"]);const MU=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?MU(t.shadowRoot):t:null},OU=\"@media (pointer: fine)\",kU=\"undefined\"!=typeof navigator&&navigator.userAgent.match(/android\\s(\\d+)|OS\\s(\\d+)/i),IU=kU&&kU[1]?parseInt(kU[1],10):null,NU=kU&&kU[2]?parseInt(kU[2],10):null,PU=IU&&IU<10||NU&&NU<13||!1,LU=()=>DB(\"@media (prefers-reduced-motion: reduce)\",{defaultMatches:!1})||PU,FU=[\"PaperComponent\",\"popperPlacement\",\"ownerState\",\"children\",\"paperSlotProps\",\"paperClasses\",\"onPaperClick\",\"onPaperTouchStart\"],_U=(0,Ot.Ay)(TU,{name:\"MuiPickersPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),zU=(0,Ot.Ay)(ei,{name:\"MuiPickersPopper\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:\"top center\",variants:[{props:({placement:e})=>[\"top\",\"top-start\",\"top-end\"].includes(e),style:{transformOrigin:\"bottom center\"}}]}),GU=t.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,d=(0,At.A)(e,FU),u=(0,Tt.A)({},i,{placement:r}),h=Xn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:u});return(0,Kt.jsx)(n,(0,Tt.A)({},d,h,{onClick:e=>{l(e),h.onClick?.(e)},onTouchStart:e=>{c(e),h.onTouchStart?.(e)},ownerState:u,children:o}))}));function VU(e){const n=(0,It.A)({props:e,name:\"MuiPickersPopper\"}),{anchorEl:r,children:i,containerRef:o=null,shouldRestoreFocus:a,onBlur:s,onDismiss:l,open:c,role:d,placement:u,slots:h,slotProps:p,reduceAnimations:g}=n;t.useEffect((()=>{function e(e){c&&\"Escape\"===e.key&&l()}return document.addEventListener(\"keydown\",e),()=>{document.removeEventListener(\"keydown\",e)}}),[l,c]);const f=t.useRef(null);t.useEffect((()=>{\"tooltip\"===d||a&&!a()||(c?f.current=MU(document):f.current&&f.current instanceof HTMLElement&&setTimeout((()=>{f.current instanceof HTMLElement&&f.current.focus()})))}),[c,d,a]);const[m,v,y]=function(e,n){const r=t.useRef(!1),i=t.useRef(!1),o=t.useRef(null),a=t.useRef(!1);t.useEffect((()=>{if(e)return document.addEventListener(\"mousedown\",t,!0),document.addEventListener(\"touchstart\",t,!0),()=>{document.removeEventListener(\"mousedown\",t,!0),document.removeEventListener(\"touchstart\",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);const s=(0,Jn.A)((e=>{if(!a.current)return;const t=i.current;i.current=!1;const s=(0,Zn.A)(o.current);if(!o.current||\"clientX\"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!s.documentElement.contains(e.target)||o.current.contains(e.target),l||t||n(e)})),l=()=>{i.current=!0};return t.useEffect((()=>{if(e){const e=(0,Zn.A)(o.current),t=()=>{r.current=!0};return e.addEventListener(\"touchstart\",s),e.addEventListener(\"touchmove\",t),()=>{e.removeEventListener(\"touchstart\",s),e.removeEventListener(\"touchmove\",t)}}}),[e,s]),t.useEffect((()=>{if(e){const e=(0,Zn.A)(o.current);return e.addEventListener(\"click\",s),()=>{e.removeEventListener(\"click\",s),i.current=!1}}}),[e,s]),[o,l,l]}(c,s??l),b=t.useRef(null),w=(0,Wn.A)(b,o),C=(0,Wn.A)(w,m),S=n,E=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],paper:[\"paper\"]},DU,t)})(S),x=LU(),A=g??x,T=h?.desktopTransition??A?Nr:Oh,D=h?.desktopTrapFocus??ur,R=h?.desktopPaper??zU,M=h?.popper??_U,O=Xn({elementType:M,externalSlotProps:p?.popper,additionalProps:{transition:!0,role:d,open:c,anchorEl:r,placement:u,onKeyDown:e=>{\"Escape\"===e.key&&(e.stopPropagation(),l())}},className:E.root,ownerState:n});return(0,Kt.jsx)(M,(0,Tt.A)({},O,{children:({TransitionProps:e,placement:t})=>(0,Kt.jsx)(D,(0,Tt.A)({open:c,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:\"tooltip\"===d,isEnabled:()=>!0},p?.desktopTrapFocus,{children:(0,Kt.jsx)(T,(0,Tt.A)({},e,p?.desktopTransition,{children:(0,Kt.jsx)(GU,{PaperComponent:R,ownerState:S,popperPlacement:t,ref:C,onPaperClick:v,onPaperTouchStart:y,paperClasses:E.paper,paperSlotProps:p?.desktopPaper,children:i})}))}))}))}function BU(e,n,r,i){const{value:o,onError:a}=e,s=TH(),l=t.useRef(i),c=n({adapter:s,value:o,props:e});return t.useEffect((()=>{a&&!r(c,l.current)&&a(c,o),l.current=c}),[r,a,l,c,o]),c}var HU=n(3833);const jU=({timezone:e,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const a=DH(),s=t.useRef(r),l=n??s.current??o.emptyValue,c=t.useMemo((()=>o.getTimezone(a,l)),[a,o,l]),d=(0,Jn.A)((e=>null==c?e:o.setTimezone(a,c,e))),u=e??c??\"default\";return{value:t.useMemo((()=>o.setTimezone(a,u,l)),[o,a,u,l]),handleValueChange:(0,Jn.A)(((e,...t)=>{const n=d(e);i?.(n,...t)})),timezone:u}},UU=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=(0,HU.A)({name:e,state:\"value\",controlled:n,default:r??o.emptyValue}),l=(0,Jn.A)(((e,...t)=>{s(e),i?.(e,...t)}));return jU({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function WU({onChange:e,onViewChange:n,openTo:r,view:i,views:o,autoFocus:a,focusedView:s,onFocusedViewChange:l}){const c=t.useRef(r),d=t.useRef(o),u=t.useRef(o.includes(r)?r:o[0]),[h,p]=(0,HU.A)({name:\"useViews\",state:\"view\",controlled:i,default:u.current}),g=t.useRef(a?h:null),[f,m]=(0,HU.A)({name:\"useViews\",state:\"focusedView\",controlled:s,default:g.current});t.useEffect((()=>{(c.current&&c.current!==r||d.current&&d.current.some((e=>!o.includes(e))))&&(p(o.includes(r)?r:o[0]),d.current=o,c.current=r)}),[r,p,h,o]);const v=o.indexOf(h),y=o[v-1]??null,b=o[v+1]??null,w=(0,Jn.A)(((e,t)=>{m(t?e:t=>e===t?null:t),l?.(e,t)})),C=(0,Jn.A)((e=>{w(e,!0),e!==h&&(p(e),n&&n(e))})),S=(0,Jn.A)((()=>{b&&C(b)})),E=(0,Jn.A)(((t,n,r)=>{const i=\"finish\"===n,a=r?o.indexOf(r)<o.length-1:Boolean(b);if(e(t,i&&a?\"partial\":n,r),r&&r!==h){const e=o[o.indexOf(r)+1];e&&C(e)}else i&&S()}));return{view:h,setView:C,focusedView:f,setFocusedView:w,nextView:b,previousView:y,defaultView:o.includes(r)?r:o[0],goToNextView:S,setValueAndGoToNextView:E}}const $U=[\"className\",\"sx\"];function YU(){return\"undefined\"==typeof window?\"portrait\":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?\"landscape\":\"portrait\":window.orientation&&90===Math.abs(Number(window.orientation))?\"landscape\":\"portrait\"}const KU=(e,t=\"warning\")=>{let n=!1;const r=Array.isArray(e)?e.join(\"\\n\"):e;return()=>{n||(n=!0,\"error\"===t?console.error(r):console.warn(r))}},qU=(KU([\"The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.\",\"You can replace it with the `textField` component slot in most cases.\",\"For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5).\"]),({props:e,valueManager:n,valueType:r,wrapperVariant:i,additionalViewProps:o,validator:a,autoFocusView:s,rendererInterceptor:l,fieldRef:c})=>{const d=(({props:e,valueManager:n,valueType:r,wrapperVariant:i,validator:o})=>{const{onAccept:a,onChange:s,value:l,defaultValue:c,closeOnSelect:d=\"desktop\"===i,timezone:u}=e,{current:h}=t.useRef(c),{current:p}=t.useRef(void 0!==l),g=DH(),f=TH(),{isOpen:m,setIsOpen:v}=(({open:e,onOpen:n,onClose:r})=>{const i=t.useRef(\"boolean\"==typeof e).current,[o,a]=t.useState(!1);return t.useEffect((()=>{if(i){if(\"boolean\"!=typeof e)throw new Error(\"You must not mix controlling and uncontrolled mode for `open` prop\");a(e)}}),[i,e]),{isOpen:o,setIsOpen:t.useCallback((e=>{i||a(e),e&&n&&n(),!e&&r&&r()}),[i,n,r])}})(e),[y,b]=t.useState((()=>{let e;return e=void 0!==l?l:void 0!==h?h:n.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:l,hasBeenModifiedSinceMount:!1}})),{timezone:w,handleValueChange:C}=jU({timezone:u,value:l,defaultValue:h,onChange:s,valueManager:n});BU((0,Tt.A)({},e,{value:y.draft,timezone:w}),o,n.isSameError,n.defaultErrorState);const S=(0,Jn.A)((t=>{const r={action:t,dateState:y,hasChanged:e=>!n.areValuesEqual(g,t.value,e),isControlled:p,closeOnSelect:d},i=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return\"setValueFromField\"===t.name||(\"setValueFromAction\"===t.name?!(!o||![\"accept\",\"today\",\"clear\"].includes(t.pickerAction))||n(r.lastPublishedValue):(\"setValueFromView\"===t.name&&\"shallow\"!==t.selectionState||\"setValueFromShortcut\"===t.name)&&(!!o||n(r.lastPublishedValue)))})(r),s=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return\"setValueFromAction\"===t.name?!(!a||![\"accept\",\"today\",\"clear\"].includes(t.pickerAction))||n(r.lastCommittedValue):\"setValueFromView\"===t.name&&\"finish\"===t.selectionState&&o?!!a||n(r.lastCommittedValue):\"setValueFromShortcut\"===t.name&&\"accept\"===t.changeImportance&&n(r.lastCommittedValue)})(r),l=(e=>{const{action:t,closeOnSelect:n}=e;return\"setValueFromAction\"===t.name||(\"setValueFromView\"===t.name?\"finish\"===t.selectionState&&n:\"setValueFromShortcut\"===t.name&&\"accept\"===t.changeImportance)})(r);if(b((e=>(0,Tt.A)({},e,{draft:t.value,lastPublishedValue:i?t.value:e.lastPublishedValue,lastCommittedValue:s?t.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),i){const n={validationError:\"setValueFromField\"===t.name?t.context.validationError:o({adapter:f,value:t.value,props:(0,Tt.A)({},e,{value:t.value,timezone:w})})};\"setValueFromShortcut\"===t.name&&(n.shortcut=t.shortcut),C(t.value,n)}s&&a&&a(t.value),l&&v(!1)}));if(void 0!==l&&(void 0===y.lastControlledValue||!n.areValuesEqual(g,y.lastControlledValue,l))){const e=n.areValuesEqual(g,y.draft,l);b((t=>(0,Tt.A)({},t,{lastControlledValue:l},e?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0})))}const E=(0,Jn.A)((()=>{S({value:n.emptyValue,name:\"setValueFromAction\",pickerAction:\"clear\"})})),x=(0,Jn.A)((()=>{S({value:y.lastPublishedValue,name:\"setValueFromAction\",pickerAction:\"accept\"})})),A=(0,Jn.A)((()=>{S({value:y.lastPublishedValue,name:\"setValueFromAction\",pickerAction:\"dismiss\"})})),T=(0,Jn.A)((()=>{S({value:y.lastCommittedValue,name:\"setValueFromAction\",pickerAction:\"cancel\"})})),D=(0,Jn.A)((()=>{S({value:n.getTodayValue(g,w,r),name:\"setValueFromAction\",pickerAction:\"today\"})})),R=(0,Jn.A)((e=>{e.preventDefault(),v(!0)})),M=(0,Jn.A)((e=>{e?.preventDefault(),v(!1)})),O=(0,Jn.A)(((e,t=\"partial\")=>S({name:\"setValueFromView\",value:e,selectionState:t}))),k=(0,Jn.A)(((e,t,n)=>S({name:\"setValueFromShortcut\",value:e,changeImportance:t,shortcut:n}))),I=(0,Jn.A)(((e,t)=>S({name:\"setValueFromField\",value:e,context:t}))),N={onClear:E,onAccept:x,onDismiss:A,onCancel:T,onSetToday:D,onOpen:R,onClose:M},P={value:y.draft,onChange:I},L=t.useMemo((()=>n.cleanValue(g,y.draft)),[g,n,y.draft]);return{open:m,fieldProps:P,viewProps:{value:L,onChange:O,onClose:M,open:m},layoutProps:(0,Tt.A)({},N,{value:L,onChange:O,onSelectShortcut:k,isValid:t=>{const r=o({adapter:f,value:t,props:(0,Tt.A)({},e,{value:t,timezone:w})});return!n.hasError(r)}}),actions:N}})({props:e,valueManager:n,valueType:r,wrapperVariant:i,validator:a}),u=(({props:e,propsFromPickerValue:n,additionalViewProps:r,autoFocusView:i,rendererInterceptor:o,fieldRef:a})=>{const{onChange:s,open:l,onClose:c}=n,{views:d,openTo:u,onViewChange:h,disableOpenPicker:p,viewRenderers:g,timezone:f}=e,m=(0,At.A)(e,$U),{view:v,setView:y,defaultView:b,focusedView:w,setFocusedView:C,setValueAndGoToNextView:S}=WU({view:void 0,views:d,openTo:u,onChange:s,onViewChange:h,autoFocus:i}),{hasUIView:E,viewModeLookup:x}=t.useMemo((()=>d.reduce(((e,t)=>{let n;return n=p?\"field\":null!=g[t]?\"UI\":\"field\",e.viewModeLookup[t]=n,\"UI\"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[p,g,d]),A=t.useMemo((()=>d.reduce(((e,t)=>null!=g[t]&&UB(t)?e+1:e),0)),[g,d]),T=x[v],D=(0,Jn.A)((()=>\"UI\"===T)),[R,M]=t.useState(\"UI\"===T?v:null);return R!==v&&\"UI\"===x[v]&&M(v),(0,gr.A)((()=>{\"field\"===T&&l&&(c(),setTimeout((()=>{a?.current?.focusField(v)})))}),[v]),(0,gr.A)((()=>{if(!l)return;let e=v;\"field\"===T&&null!=R&&(e=R),e!==b&&\"UI\"===x[e]&&\"UI\"===x[b]&&(e=b),e!==v&&y(e),C(e,!0)}),[l]),{hasUIView:E,shouldRestoreFocus:D,layoutProps:{views:d,view:R,onViewChange:y},renderCurrentView:()=>{if(null==R)return null;const e=g[R];if(null==e)return null;const t=(0,Tt.A)({},m,r,n,{views:d,timezone:f,onChange:S,view:R,onViewChange:y,focusedView:w,onFocusedViewChange:C,showViewSwitcher:A>1,timeViewsCount:A});return o?o(g,R,t):e(t)}}})({props:e,additionalViewProps:o,autoFocusView:s,fieldRef:c,propsFromPickerValue:d.viewProps,rendererInterceptor:l}),h=(({props:e,propsFromPickerValue:n,propsFromPickerViews:r,wrapperVariant:i})=>{const{orientation:o}=e,a=((e,n)=>{const[r,i]=t.useState(YU);return(0,gr.A)((()=>{const e=()=>{i(YU())};return window.addEventListener(\"orientationchange\",e),()=>{window.removeEventListener(\"orientationchange\",e)}}),[]),!RU(e,[\"hours\",\"minutes\",\"seconds\"])&&\"landscape\"===(n||r)})(r.views,o);return{layoutProps:(0,Tt.A)({},r,n,{isLandscape:a,wrapperVariant:i,disabled:e.disabled,readOnly:e.readOnly})}})({props:e,wrapperVariant:i,propsFromPickerValue:d.layoutProps,propsFromPickerViews:u.layoutProps});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:h.layoutProps}});function QU(e){return(0,un.Ay)(\"MuiPickersLayout\",e)}const XU=(0,qt.A)(\"MuiPickersLayout\",[\"root\",\"landscape\",\"contentWrapper\",\"toolbar\",\"actionBar\",\"tabs\",\"shortcuts\"]);function ZU(e){return(0,un.Ay)(\"MuiDialogActions\",e)}(0,qt.A)(\"MuiDialogActions\",[\"root\",\"spacing\"]);const JU=[\"className\",\"disableSpacing\"],eW=(0,Ot.Ay)(\"div\",{name:\"MuiDialogActions\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,Tt.A)({display:\"flex\",alignItems:\"center\",padding:8,justifyContent:\"flex-end\",flex:\"0 0 auto\"},!e.disableSpacing&&{\"& > :not(style) ~ :not(style)\":{marginLeft:8}}))),tW=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiDialogActions\"}),{className:r,disableSpacing:i=!1}=n,o=(0,At.A)(n,JU),a=(0,Tt.A)({},n,{disableSpacing:i}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:[\"root\",!n&&\"spacing\"]};return(0,Rt.A)(r,ZU,t)})(a);return(0,Kt.jsx)(eW,(0,Tt.A)({className:(0,We.A)(s.root,r),ownerState:a,ref:t},o))})),nW=[\"onAccept\",\"onClear\",\"onCancel\",\"onSetToday\",\"actions\"];function rW(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=(0,At.A)(e,nW),s=MH();if(null==o||0===o.length)return null;const l=o?.map((e=>{switch(e){case\"clear\":return(0,Kt.jsx)(Dn,{onClick:n,children:s.clearButtonLabel},e);case\"cancel\":return(0,Kt.jsx)(Dn,{onClick:r,children:s.cancelButtonLabel},e);case\"accept\":return(0,Kt.jsx)(Dn,{onClick:t,children:s.okButtonLabel},e);case\"today\":return(0,Kt.jsx)(Dn,{onClick:i,children:s.todayButtonLabel},e);default:return null}}));return(0,Kt.jsx)(tW,(0,Tt.A)({},a,{children:l}))}function iW(e){return(0,un.Ay)(\"MuiListItem\",e)}const oW=(0,qt.A)(\"MuiListItem\",[\"root\",\"container\",\"focusVisible\",\"dense\",\"alignItemsFlexStart\",\"disabled\",\"divider\",\"gutters\",\"padding\",\"button\",\"secondaryAction\",\"selected\"]),aW=(0,qt.A)(\"MuiListItemButton\",[\"root\",\"focusVisible\",\"dense\",\"alignItemsFlexStart\",\"disabled\",\"divider\",\"gutters\",\"selected\"]);function sW(e){return(0,un.Ay)(\"MuiListItemSecondaryAction\",e)}(0,qt.A)(\"MuiListItemSecondaryAction\",[\"root\",\"disableGutters\"]);const lW=[\"className\"],cW=(0,Ot.Ay)(\"div\",{name:\"MuiListItemSecondaryAction\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,Tt.A)({position:\"absolute\",right:16,top:\"50%\",transform:\"translateY(-50%)\"},e.disableGutters&&{right:0}))),dW=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiListItemSecondaryAction\"}),{className:i}=r,o=(0,At.A)(r,lW),a=t.useContext(uh),s=(0,Tt.A)({},r,{disableGutters:a.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:[\"root\",t&&\"disableGutters\"]};return(0,Rt.A)(r,sW,n)})(s);return(0,Kt.jsx)(cW,(0,Tt.A)({className:(0,We.A)(l.root,i),ownerState:s,ref:n},o))}));dW.muiName=\"ListItemSecondaryAction\";const uW=dW,hW=[\"className\"],pW=[\"alignItems\",\"autoFocus\",\"button\",\"children\",\"className\",\"component\",\"components\",\"componentsProps\",\"ContainerComponent\",\"ContainerProps\",\"dense\",\"disabled\",\"disableGutters\",\"disablePadding\",\"divider\",\"focusVisibleClassName\",\"secondaryAction\",\"selected\",\"slotProps\",\"slots\"],gW=(0,Ot.Ay)(\"div\",{name:\"MuiListItem\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,\"flex-start\"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,Tt.A)({display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",position:\"relative\",textDecoration:\"none\",width:\"100%\",boxSizing:\"border-box\",textAlign:\"left\"},!t.disablePadding&&(0,Tt.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${aW.root}`]:{paddingRight:48}},{[`&.${oW.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oW.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oW.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oW.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},\"flex-start\"===t.alignItems&&{alignItems:\"flex-start\"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:\"padding-box\"},t.button&&{transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest}),\"&:hover\":{textDecoration:\"none\",backgroundColor:(e.vars||e).palette.action.hover,\"@media (hover: none)\":{backgroundColor:\"transparent\"}},[`&.${oW.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Mt.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),fW=(0,Ot.Ay)(\"li\",{name:\"MuiListItem\",slot:\"Container\",overridesResolver:(e,t)=>t.container})({position:\"relative\"}),mW=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiListItem\"}),{alignItems:i=\"center\",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:d={},componentsProps:u={},ContainerComponent:h=\"li\",ContainerProps:{className:p}={},dense:g=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:w,selected:C=!1,slotProps:S={},slots:E={}}=r,x=(0,At.A)(r.ContainerProps,hW),A=(0,At.A)(r,pW),T=t.useContext(uh),D=t.useMemo((()=>({dense:g||T.dense||!1,alignItems:i,disableGutters:m})),[i,T.dense,g,m]),R=t.useRef(null);(0,vh.A)((()=>{o&&R.current&&R.current.focus()}),[o]);const M=t.Children.toArray(s),O=M.length&&(0,XA.A)(M[M.length-1],[\"ListItemSecondaryAction\"]),k=(0,Tt.A)({},r,{alignItems:i,autoFocus:o,button:a,dense:D.dense,disabled:f,disableGutters:m,disablePadding:v,divider:y,hasSecondaryAction:O,selected:C}),I=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e,u={root:[\"root\",i&&\"dense\",!a&&\"gutters\",!s&&\"padding\",l&&\"divider\",o&&\"disabled\",n&&\"button\",\"flex-start\"===t&&\"alignItemsFlexStart\",c&&\"secondaryAction\",d&&\"selected\"],container:[\"container\"]};return(0,Rt.A)(u,iW,r)})(k),N=(0,Nt.A)(R,n),P=E.root||d.Root||gW,L=S.root||u.root||{},F=(0,Tt.A)({className:(0,We.A)(I.root,L.className,l),disabled:f},A);let _=c||\"li\";return a&&(F.component=c||\"div\",F.focusVisibleClassName=(0,We.A)(oW.focusVisible,b),_=mn),O?(_=F.component||c?_:\"div\",\"li\"===h&&(\"li\"===_?_=\"div\":\"li\"===F.component&&(F.component=\"div\")),(0,Kt.jsx)(uh.Provider,{value:D,children:(0,Kt.jsxs)(fW,(0,Tt.A)({as:h,className:(0,We.A)(I.container,p),ref:N,ownerState:k},x,{children:[(0,Kt.jsx)(P,(0,Tt.A)({},L,!$n(P)&&{as:_,ownerState:(0,Tt.A)({},k,L.ownerState)},F,{children:M})),M.pop()]}))})):(0,Kt.jsx)(uh.Provider,{value:D,children:(0,Kt.jsxs)(P,(0,Tt.A)({},L,{as:_,ref:N},!$n(P)&&{ownerState:(0,Tt.A)({},k,L.ownerState)},F,{children:[M,w&&(0,Kt.jsx)(uW,{children:w})]}))})})),vW=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"}),\"Cancel\");function yW(e){return(0,un.Ay)(\"MuiChip\",e)}const bW=(0,qt.A)(\"MuiChip\",[\"root\",\"sizeSmall\",\"sizeMedium\",\"colorError\",\"colorInfo\",\"colorPrimary\",\"colorSecondary\",\"colorSuccess\",\"colorWarning\",\"disabled\",\"clickable\",\"clickableColorPrimary\",\"clickableColorSecondary\",\"deletable\",\"deletableColorPrimary\",\"deletableColorSecondary\",\"outlined\",\"filled\",\"outlinedPrimary\",\"outlinedSecondary\",\"filledPrimary\",\"filledSecondary\",\"avatar\",\"avatarSmall\",\"avatarMedium\",\"avatarColorPrimary\",\"avatarColorSecondary\",\"icon\",\"iconSmall\",\"iconMedium\",\"iconColorPrimary\",\"iconColorSecondary\",\"label\",\"labelSmall\",\"labelMedium\",\"deleteIcon\",\"deleteIconSmall\",\"deleteIconMedium\",\"deleteIconColorPrimary\",\"deleteIconColorSecondary\",\"deleteIconOutlinedColorPrimary\",\"deleteIconOutlinedColorSecondary\",\"deleteIconFilledColorPrimary\",\"deleteIconFilledColorSecondary\",\"focusVisible\"]),wW=[\"avatar\",\"className\",\"clickable\",\"color\",\"component\",\"deleteIcon\",\"disabled\",\"icon\",\"label\",\"onClick\",\"onDelete\",\"onKeyDown\",\"onKeyUp\",\"size\",\"variant\",\"tabIndex\",\"skipFocusWhenDisabled\"],CW=(0,Ot.Ay)(\"div\",{name:\"MuiChip\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${bW.avatar}`]:t.avatar},{[`& .${bW.avatar}`]:t[`avatar${(0,vn.A)(s)}`]},{[`& .${bW.avatar}`]:t[`avatarColor${(0,vn.A)(r)}`]},{[`& .${bW.icon}`]:t.icon},{[`& .${bW.icon}`]:t[`icon${(0,vn.A)(s)}`]},{[`& .${bW.icon}`]:t[`iconColor${(0,vn.A)(i)}`]},{[`& .${bW.deleteIcon}`]:t.deleteIcon},{[`& .${bW.deleteIcon}`]:t[`deleteIcon${(0,vn.A)(s)}`]},{[`& .${bW.deleteIcon}`]:t[`deleteIconColor${(0,vn.A)(r)}`]},{[`& .${bW.deleteIcon}`]:t[`deleteIcon${(0,vn.A)(l)}Color${(0,vn.A)(r)}`]},t.root,t[`size${(0,vn.A)(s)}`],t[`color${(0,vn.A)(r)}`],o&&t.clickable,o&&\"default\"!==r&&t[`clickableColor${(0,vn.A)(r)})`],a&&t.deletable,a&&\"default\"!==r&&t[`deletableColor${(0,vn.A)(r)}`],t[l],t[`${l}${(0,vn.A)(r)}`]]}})((({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,Tt.A)({maxWidth:\"100%\",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:\"nowrap\",transition:e.transitions.create([\"background-color\",\"box-shadow\"]),cursor:\"unset\",outline:0,textDecoration:\"none\",border:0,padding:0,verticalAlign:\"middle\",boxSizing:\"border-box\",[`&.${bW.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:\"none\"},[`& .${bW.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${bW.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${bW.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${bW.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${bW.icon}`]:(0,Tt.A)({marginLeft:5,marginRight:-6},\"small\"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,Tt.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},\"default\"!==t.color&&{color:\"inherit\"})),[`& .${bW.deleteIcon}`]:(0,Tt.A)({WebkitTapHighlightColor:\"transparent\",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,Mt.X4)(e.palette.text.primary,.26),fontSize:22,cursor:\"pointer\",margin:\"0 5px 0 -6px\",\"&:hover\":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,Mt.X4)(e.palette.text.primary,.4)}},\"small\"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},\"default\"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,Mt.X4)(e.palette[t.color].contrastText,.7),\"&:hover, &:active\":{color:(e.vars||e).palette[t.color].contrastText}})},\"small\"===t.size&&{height:24},\"default\"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${bW.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Mt.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&\"default\"!==t.color&&{[`&.${bW.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,Tt.A)({},t.clickable&&{userSelect:\"none\",WebkitTapHighlightColor:\"transparent\",cursor:\"pointer\",\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Mt.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${bW.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Mt.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},\"&:active\":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&\"default\"!==t.color&&{[`&:hover, &.${bW.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,Tt.A)({},\"outlined\"===t.variant&&{backgroundColor:\"transparent\",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${\"light\"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${bW.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bW.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${bW.avatar}`]:{marginLeft:4},[`& .${bW.avatarSmall}`]:{marginLeft:2},[`& .${bW.icon}`]:{marginLeft:4},[`& .${bW.iconSmall}`]:{marginLeft:2},[`& .${bW.deleteIcon}`]:{marginRight:5},[`& .${bW.deleteIconSmall}`]:{marginRight:3}},\"outlined\"===t.variant&&\"default\"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Mt.X4)(e.palette[t.color].main,.7)}`,[`&.${bW.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Mt.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${bW.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Mt.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${bW.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Mt.X4)(e.palette[t.color].main,.7),\"&:hover, &:active\":{color:(e.vars||e).palette[t.color].main}}}))),SW=(0,Ot.Ay)(\"span\",{name:\"MuiChip\",slot:\"Label\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,vn.A)(r)}`]]}})((({ownerState:e})=>(0,Tt.A)({overflow:\"hidden\",textOverflow:\"ellipsis\",paddingLeft:12,paddingRight:12,whiteSpace:\"nowrap\"},\"outlined\"===e.variant&&{paddingLeft:11,paddingRight:11},\"small\"===e.size&&{paddingLeft:8,paddingRight:8},\"small\"===e.size&&\"outlined\"===e.variant&&{paddingLeft:7,paddingRight:7})));function EW(e){return\"Backspace\"===e.key||\"Delete\"===e.key}const xW=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiChip\"}),{avatar:i,className:o,clickable:a,color:s=\"default\",component:l,deleteIcon:c,disabled:d=!1,icon:u,label:h,onClick:p,onDelete:g,onKeyDown:f,onKeyUp:m,size:v=\"medium\",variant:y=\"filled\",tabIndex:b,skipFocusWhenDisabled:w=!1}=r,C=(0,At.A)(r,wW),S=t.useRef(null),E=(0,Nt.A)(S,n),x=e=>{e.stopPropagation(),g&&g(e)},A=!(!1===a||!p)||a,T=A||g?mn:l||\"div\",D=(0,Tt.A)({},r,{component:T,disabled:d,size:v,color:s,iconColor:t.isValidElement(u)&&u.props.color||s,onDelete:!!g,clickable:A,variant:y}),R=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:[\"root\",l,n&&\"disabled\",`size${(0,vn.A)(r)}`,`color${(0,vn.A)(i)}`,s&&\"clickable\",s&&`clickableColor${(0,vn.A)(i)}`,a&&\"deletable\",a&&`deletableColor${(0,vn.A)(i)}`,`${l}${(0,vn.A)(i)}`],label:[\"label\",`label${(0,vn.A)(r)}`],avatar:[\"avatar\",`avatar${(0,vn.A)(r)}`,`avatarColor${(0,vn.A)(i)}`],icon:[\"icon\",`icon${(0,vn.A)(r)}`,`iconColor${(0,vn.A)(o)}`],deleteIcon:[\"deleteIcon\",`deleteIcon${(0,vn.A)(r)}`,`deleteIconColor${(0,vn.A)(i)}`,`deleteIcon${(0,vn.A)(l)}Color${(0,vn.A)(i)}`]};return(0,Rt.A)(c,yW,t)})(D),M=T===mn?(0,Tt.A)({component:l||\"div\",focusVisibleClassName:R.focusVisible},g&&{disableRipple:!0}):{};let O=null;g&&(O=c&&t.isValidElement(c)?t.cloneElement(c,{className:(0,We.A)(c.props.className,R.deleteIcon),onClick:x}):(0,Kt.jsx)(vW,{className:(0,We.A)(R.deleteIcon),onClick:x}));let k=null;i&&t.isValidElement(i)&&(k=t.cloneElement(i,{className:(0,We.A)(R.avatar,i.props.className)}));let I=null;return u&&t.isValidElement(u)&&(I=t.cloneElement(u,{className:(0,We.A)(R.icon,u.props.className)})),(0,Kt.jsxs)(CW,(0,Tt.A)({as:T,className:(0,We.A)(R.root,o),disabled:!(!A||!d)||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&EW(e)&&e.preventDefault(),f&&f(e)},onKeyUp:e=>{e.currentTarget===e.target&&(g&&EW(e)?g(e):\"Escape\"===e.key&&S.current&&S.current.blur()),m&&m(e)},ref:E,tabIndex:w&&d?-1:b,ownerState:D},M,C,{children:[k||I,(0,Kt.jsx)(SW,{className:(0,We.A)(R.label),ownerState:D,children:h}),O]}))})),AW=320,TW=[\"items\",\"changeImportance\",\"isLandscape\",\"onChange\",\"isValid\"],DW=[\"getValue\"];function RW(e){const{items:t,changeImportance:n=\"accept\",onChange:r,isValid:i}=e,o=(0,At.A)(e,TW);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=(0,At.A)(e,DW);const a=t({isValid:i});return{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)}}));return(0,Kt.jsx)(fh,(0,Tt.A)({dense:!0,sx:[{maxHeight:336,maxWidth:200,overflow:\"auto\"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,Kt.jsx)(mW,{children:(0,Kt.jsx)(xW,(0,Tt.A)({},e))},e.label)))}))}const MW=(0,Ot.Ay)(\"div\",{name:\"MuiPickersLayout\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:\"grid\",gridAutoColumns:\"max-content auto max-content\",gridAutoRows:\"max-content auto max-content\",[`& .${XU.actionBar}`]:{gridColumn:\"1 / 4\",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${XU.toolbar}`]:{gridColumn:\"rtl\"===e.direction?3:1,gridRow:\"2 / 3\"},[`.${XU.shortcuts}`]:{gridColumn:\"2 / 4\",gridRow:1}}},{props:{isLandscape:!1},style:{[`& .${XU.toolbar}`]:{gridColumn:\"2 / 4\",gridRow:1},[`& .${XU.shortcuts}`]:{gridColumn:\"rtl\"===e.direction?3:1,gridRow:\"2 / 3\"}}}]})));MW.propTypes={as:MB().elementType,ownerState:MB().shape({isLandscape:MB().bool.isRequired}).isRequired,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object])};const OW=(0,Ot.Ay)(\"div\",{name:\"MuiPickersLayout\",slot:\"ContentWrapper\",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:\"flex\",flexDirection:\"column\"}),kW=function(e){const n=(0,It.A)({props:e,name:\"MuiPickersLayout\"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=(e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:i,onSetToday:o,view:a,views:s,onViewChange:l,value:c,onChange:d,onSelectShortcut:u,isValid:h,isLandscape:p,disabled:g,readOnly:f,children:m,slots:v,slotProps:y}=e,b=(e=>{const{classes:t,isLandscape:n}=e,r={root:[\"root\",n&&\"landscape\"],contentWrapper:[\"contentWrapper\"],toolbar:[\"toolbar\"],actionBar:[\"actionBar\"],tabs:[\"tabs\"],landscape:[\"landscape\"],shortcuts:[\"shortcuts\"]};return(0,Rt.A)(r,QU,t)})(e),w=v?.actionBar??rW,C=Xn({elementType:w,externalSlotProps:y?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:i,onSetToday:o,actions:\"desktop\"===t?[]:[\"cancel\",\"accept\"],className:b.actionBar},ownerState:(0,Tt.A)({},e,{wrapperVariant:t})}),S=(0,Kt.jsx)(w,(0,Tt.A)({},C)),E=v?.toolbar,x=Xn({elementType:E,externalSlotProps:y?.toolbar,additionalProps:{isLandscape:p,onChange:d,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:f,className:b.toolbar},ownerState:(0,Tt.A)({},e,{wrapperVariant:t})}),A=function(e){return null!==e.view}(x)&&E?(0,Kt.jsx)(E,(0,Tt.A)({},x)):null,T=m,D=v?.tabs,R=a&&D?(0,Kt.jsx)(D,(0,Tt.A)({view:a,onViewChange:l,className:b.tabs},y?.tabs)):null,M=v?.shortcuts??RW,O=Xn({elementType:M,externalSlotProps:y?.shortcuts,additionalProps:{isValid:h,isLandscape:p,onChange:u,className:b.shortcuts},ownerState:{isValid:h,isLandscape:p,onChange:u,className:b.shortcuts,wrapperVariant:t}});return{toolbar:A,content:T,tabs:R,actionBar:S,shortcuts:a&&M?(0,Kt.jsx)(M,(0,Tt.A)({},O)):null}})(n),{sx:l,className:c,isLandscape:d,ref:u,wrapperVariant:h}=n,p=n,g=(e=>{const{isLandscape:t,classes:n}=e,r={root:[\"root\",t&&\"landscape\"],contentWrapper:[\"contentWrapper\"]};return(0,Rt.A)(r,QU,n)})(p);return(0,Kt.jsxs)(MW,{ref:u,sx:l,className:(0,We.A)(c,g.root),ownerState:p,children:[d?s:r,d?r:s,(0,Kt.jsx)(OW,{className:g.contentWrapper,children:\"desktop\"===h?(0,Kt.jsxs)(t.Fragment,{children:[i,o]}):(0,Kt.jsxs)(t.Fragment,{children:[o,i]})}),a]})},IW=[\"props\",\"getOpenDialogAriaText\"],NW=[\"ownerState\"],PW=[\"ownerState\"],LW=e=>{let{props:n,getOpenDialogAriaText:r}=e,i=(0,At.A)(e,IW);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:d,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:p,timezone:g,name:f,label:m,inputRef:v,readOnly:y,disabled:b,autoFocus:w,localeText:C,reduceAnimations:S}=n,E=DH(),x=t.useRef(null),A=t.useRef(null),T=(0,ch.A)(),D=a?.toolbar?.hidden??!1,{open:R,actions:M,hasUIView:O,layoutProps:k,renderCurrentView:I,shouldRestoreFocus:N,fieldProps:P}=qU((0,Tt.A)({},i,{props:n,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:\"desktop\"})),L=o.inputAdornment??KH,F=Xn({elementType:L,externalSlotProps:a?.inputAdornment,additionalProps:{position:\"end\"},ownerState:n}),_=(0,At.A)(F,NW),z=o.openPickerButton??gl,G=Xn({elementType:z,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:b||y,onClick:R?M.onClose:M.onOpen,\"aria-label\":r(P.value,E),edge:_.position},ownerState:n}),V=(0,At.A)(G,PW),B=o.openPickerIcon,H=o.field,j=Xn({elementType:H,externalSlotProps:a?.field,additionalProps:(0,Tt.A)({},P,D&&{id:T},{readOnly:y,disabled:b,className:s,sx:l,format:c,formatDensity:d,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:p,timezone:g,label:m,name:f,autoFocus:w&&!n.open,focused:!!R||void 0},v?{inputRef:v}:{}),ownerState:n});O&&(j.InputProps=(0,Tt.A)({},j.InputProps,{ref:x,[`${_.position}Adornment`]:(0,Kt.jsx)(L,(0,Tt.A)({},_,{children:(0,Kt.jsx)(z,(0,Tt.A)({},V,{children:(0,Kt.jsx)(B,(0,Tt.A)({},a?.openPickerIcon))}))}))}));const U=(0,Tt.A)({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},j.slots),W=o.layout??kW;let $=T;D&&($=m?`${T}-label`:void 0);const Y=(0,Tt.A)({},a,{toolbar:(0,Tt.A)({},a?.toolbar,{titleId:T}),popper:(0,Tt.A)({\"aria-labelledby\":$},a?.popper)}),K=(0,Wn.A)(A,j.unstableFieldRef);return{renderPicker:()=>(0,Kt.jsxs)(SH,{localeText:C,children:[(0,Kt.jsx)(H,(0,Tt.A)({},j,{slots:U,slotProps:Y,unstableFieldRef:K})),(0,Kt.jsx)(VU,(0,Tt.A)({role:\"dialog\",placement:\"bottom-start\",anchorEl:x.current},M,{open:R,slots:o,slotProps:Y,shouldRestoreFocus:N,reduceAnimations:S,children:(0,Kt.jsx)(W,(0,Tt.A)({},k,Y?.layout,{slots:o,slotProps:Y,children:I()}))}))]})}},FW=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M7 10l5 5 5-5z\"}),\"ArrowDropDown\"),_W=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z\"}),\"ArrowLeft\"),zW=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"}),\"ArrowRight\"),GW=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z\"}),\"Calendar\"),VW=(0,Cp.A)((0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(\"path\",{d:\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),(0,Kt.jsx)(\"path\",{d:\"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"})]}),\"Clock\"),BW=((0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z\"}),\"DateRange\"),(0,Cp.A)((0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(\"path\",{d:\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),(0,Kt.jsx)(\"path\",{d:\"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"})]}),\"Time\"),(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}),\"Clear\")),HW=(e,t,n,r,i)=>{switch(r.type){case\"year\":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,t),i).length,format:i});case\"month\":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case\"day\":return n.fieldDayPlaceholder({format:i});case\"weekDay\":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case\"hours\":return n.fieldHoursPlaceholder({format:i});case\"minutes\":return n.fieldMinutesPlaceholder({format:i});case\"seconds\":return n.fieldSecondsPlaceholder({format:i});case\"meridiem\":return n.fieldMeridiemPlaceholder({format:i});default:return i}},jW=({utils:e,timezone:t,date:n,shouldRespectLeadingZeros:r,localeText:i,localizedDigits:o,now:a,token:s,startSeparator:l})=>{if(\"\"===s)throw new Error(\"MUI X: Should not call `commitToken` with an empty token\");const c=JB(e,s),d=uH(e,t,c.contentType,c.type,s),u=r?d:\"digit\"===c.contentType,h=null!=n&&e.isValid(n);let p=h?e.formatByString(n,s):\"\",g=null;if(u)if(d)g=\"\"===p?e.formatByString(a,s).length:p.length;else{if(null==c.maxLength)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);g=c.maxLength,h&&(p=iH(aH(rH(p,o),g),o))}return(0,Tt.A)({},c,{format:s,maxLength:g,value:p,placeholder:HW(e,t,i,c,s),hasLeadingZerosInFormat:d,hasLeadingZerosInInput:u,startSeparator:l,endSeparator:\"\",modified:!1})},UW=e=>{let t=(({utils:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error(\"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.\");return i})(e);e.isRTL&&e.enableAccessibleFieldDOMStructure&&(t=t.split(\" \").reverse().join(\" \"));const n=(({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\\\${r}[^\\\\${i}]*\\\\${i})+`,\"g\");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})((0,Tt.A)({},e,{expandedFormat:t})),r=(e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),o=[];let a=\"\";const s=Object.keys(t.formatTokenMap).sort(((e,t)=>t.length-e.length)),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join(\"|\")})*$`),d=new RegExp(`^(${s.join(\"|\")})`),u=e=>r.find((t=>t.start<=e&&t.end>=e));let h=0;for(;h<n.length;){const t=u(h),r=null!=t,s=l.exec(n.slice(h))?.[1];if(!r&&null!=s&&c.test(s)){let t=s;for(;t.length>0;){const n=d.exec(t)[1];t=t.slice(n.length),o.push(jW((0,Tt.A)({},e,{now:i,token:n,startSeparator:a}))),a=\"\"}h+=s.length}else{const e=n[h];r&&t?.start===h||t?.end===h||(0===o.length?a+=e:o[o.length-1].endSeparator+=e),h+=1}}return 0===o.length&&a.length>0&&o.push({type:\"empty\",contentType:\"letter\",maxLength:null,format:\"\",value:\"\",placeholder:\"\",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:\"\",modified:!1}),o})((0,Tt.A)({},e,{expandedFormat:t,escapedParts:n}));return(({isRTL:e,formatDensity:t,sections:n})=>n.map((n=>{const r=n=>{let r=n;return e&&null!==r&&r.includes(\" \")&&(r=`⁩${r}⁦`),\"spacious\"===t&&[\"/\",\".\",\"-\"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n})))((0,Tt.A)({},e,{sections:r}))},WW=e=>null!=e.saveQuery,$W=e=>{const{internalProps:{disabled:n,readOnly:r=!1},forwardedProps:{sectionListRef:i,onBlur:o,onClick:a,onFocus:s,onInput:l,onPaste:c,focused:d,autoFocus:u=!1},fieldValueManager:h,applyCharacterEditing:p,resetCharacterQuery:g,setSelectedSections:f,parsedSelectedSections:m,state:v,clearActiveSection:y,clearValue:b,updateSectionValue:w,updateValueFromValueStr:C,sectionOrder:S,areAllSectionsEmpty:E,sectionsValueBoundaries:x}=e,A=t.useRef(null),T=(0,Wn.A)(i,A),D=MH(),R=DH(),M=(0,ch.A)(),[O,k]=t.useState(!1),I=t.useMemo((()=>({syncSelectionToDOM:()=>{if(!A.current)return;const e=document.getSelection();if(!e)return;if(null==m)return e.rangeCount>0&&A.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void(O&&A.current.getRoot().blur());if(!A.current.getRoot().contains(MU(document)))return;const t=new window.Range;let n;n=\"all\"===m?A.current.getRoot():\"empty\"===v.sections[m].type?A.current.getSectionContainer(m):A.current.getSectionContent(m),t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=MU(document);return e&&A.current&&A.current.getRoot().contains(e)?A.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!A.current)return;const t=gH(e,v.sections);k(!0),A.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!A.current)return;const t=gH(e,v.sections);k(null!==(\"all\"===t?0:t)),f(e)},isFieldFocused:()=>{const e=MU(document);return!!A.current&&A.current.getRoot().contains(e)}})),[m,f,v.sections,O]),N=(0,Jn.A)((e=>{if(!A.current)return;const t=v.sections[e];A.current.getSectionContent(e).innerHTML=t.value||t.placeholder,I.syncSelectionToDOM()})),P=(0,Jn.A)(((e,...t)=>{!e.isDefaultPrevented()&&A.current&&(k(!0),a?.(e,...t),\"all\"===m?setTimeout((()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void f(S.startIndex);let t=0,n=0;for(;n<e&&t<v.sections.length;){const e=v.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}f(t-1)})):O?A.current.getRoot().contains(e.target)||f(S.startIndex):(k(!0),f(S.startIndex)))})),L=(0,Jn.A)((e=>{if(l?.(e),!A.current||\"all\"!==m)return;const t=e.target.textContent??\"\";A.current.getRoot().innerHTML=v.sections.map((e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`)).join(\"\"),I.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(g(),b(),f(\"all\")):t.length>1?C(t):p({keyPressed:t,sectionIndex:0})})),F=(0,Jn.A)((e=>{if(c?.(e),r||\"all\"!==m)return void e.preventDefault();const t=e.clipboardData.getData(\"text\");e.preventDefault(),g(),C(t)})),_=(0,Jn.A)(((...e)=>{s?.(...e),!O&&A.current&&(k(!0),null!=A.current.getSectionIndexFromDOMElement(MU(document))||f(S.startIndex))})),z=(0,Jn.A)(((...e)=>{o?.(...e),setTimeout((()=>{if(!A.current)return;const e=MU(document);!A.current.getRoot().contains(e)&&(k(!1),f(null))}))})),G=(0,Jn.A)((e=>t=>{t.isDefaultPrevented()||r||f(e)})),V=(0,Jn.A)((e=>{e.preventDefault()})),B=(0,Jn.A)((e=>()=>{r||f(e)})),H=(0,Jn.A)((e=>{if(e.preventDefault(),r||\"number\"!=typeof m)return;const t=v.sections[m],n=e.clipboardData.getData(\"text\"),i=/^[a-zA-Z]+$/.test(n),o=/^[0-9]+$/.test(n),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(n);\"letter\"===t.contentType&&i||\"digit\"===t.contentType&&o||\"digit-with-letter\"===t.contentType&&a?(g(),w({activeSection:t,newSectionValue:n,shouldGoToNextSection:!0})):i||o||(g(),C(n))})),j=(0,Jn.A)((e=>{e.preventDefault(),e.dataTransfer.dropEffect=\"none\"})),U=(0,Jn.A)((e=>{if(!A.current)return;const t=e.target,n=t.textContent??\"\",i=A.current.getSectionIndexFromDOMElement(t),o=v.sections[i];if(!r&&A.current){if(0===n.length)return\"\"===o.value?void N(i):(g(),void y());p({keyPressed:n,sectionIndex:i}),N(i)}else N(i)}));(0,gr.A)((()=>{if(O&&A.current)if(\"all\"===m)A.current.getRoot().focus();else if(\"number\"==typeof m){const e=A.current.getSectionContent(m);e&&e.focus()}}),[m,O]);const W=t.useMemo((()=>v.sections.reduce(((e,t)=>(e[t.type]=x[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e)),{})),[x,v.sections]),$=\"all\"===m,Y=t.useMemo((()=>v.sections.map(((e,i)=>{const o=!$&&!n&&!r;return{container:{\"data-sectionindex\":i,onClick:G(i)},content:{tabIndex:$||i>0?-1:0,contentEditable:!$&&!n&&!r,role:\"spinbutton\",id:`${M}-${e.type}`,\"aria-labelledby\":`${M}-${e.type}`,\"aria-readonly\":r,\"aria-valuenow\":mH(e,R),\"aria-valuemin\":W[e.type].minimum,\"aria-valuemax\":W[e.type].maximum,\"aria-valuetext\":e.value?fH(e,R):D.empty,\"aria-label\":D[e.type],\"aria-disabled\":n,spellCheck:!o&&void 0,autoCapitalize:o?\"off\":void 0,autoCorrect:o?\"off\":void 0,[parseInt(t.version,10)>=17?\"enterKeyHint\":\"enterkeyhint\"]:o?\"next\":void 0,children:e.value||e.placeholder,onInput:U,onPaste:H,onFocus:B(i),onDragOver:j,onMouseUp:V,inputMode:\"letter\"===e.contentType?\"text\":\"numeric\"},before:{children:e.startSeparator},after:{children:e.endSeparator}}}))),[v.sections,B,H,j,U,G,V,n,r,$,D,R,W,M]),K=(0,Jn.A)((e=>{C(e.target.value)})),q=t.useMemo((()=>E?\"\":h.getV7HiddenInputValueFromSections(v.sections)),[E,v.sections,h]);return t.useEffect((()=>{if(null==A.current)throw new Error([\"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\",\"You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\",\"\",\"If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:\",\"\",\"<DatePicker slots={{ textField: MyCustomTextField }} />\",\"\",\"Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element\"].join(\"\\n\"));u&&A.current&&A.current.getSectionContent(S.startIndex).focus()}),[]),{interactions:I,returnedValue:{autoFocus:u,readOnly:r,focused:d??O,sectionListRef:T,onBlur:z,onClick:P,onFocus:_,onInput:L,onPaste:F,enableAccessibleFieldDOMStructure:!0,elements:Y,tabIndex:0===m?-1:0,contentEditable:$,value:q,onChange:K,areAllSectionsEmpty:E}}},YW=e=>e.replace(/[\\u2066\\u2067\\u2068\\u2069]/g,\"\"),KW=e=>{const n=\"rtl\"===Dr().direction,r=t.useRef(),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:d=!1},parsedSelectedSections:u,activeSectionIndex:h,state:p,fieldValueManager:g,valueManager:f,applyCharacterEditing:m,resetCharacterQuery:v,updateSectionValue:y,updateValueFromValueStr:b,clearActiveSection:w,clearValue:C,setTempAndroidValueStr:S,setSelectedSections:E,getSectionsFromValue:x,areAllSectionsEmpty:A,localizedDigits:T}=e,D=t.useRef(null),R=(0,Wn.A)(l,D),M=t.useMemo((()=>((e,t,n)=>{let r=0,i=n?1:0;const o=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=lH(s,n?\"input-rtl\":\"input-ltr\",t),c=`${s.startSeparator}${l}${s.endSeparator}`,d=YW(c).length,u=c.length,h=YW(l),p=i+(\"\"===h?0:l.indexOf(h[0]))+s.startSeparator.length,g=p+h.length;o.push((0,Tt.A)({},s,{start:r,end:r+d,startInInput:p,endInInput:g})),r+=d,i+=u}return o})(p.sections,T,n)),[p.sections,T,n]),O=t.useMemo((()=>({syncSelectionToDOM:()=>{if(!D.current)return;if(null==u)return void(D.current.scrollLeft&&(D.current.scrollLeft=0));if(D.current!==MU(document))return;const e=D.current.scrollTop;if(\"all\"===u)D.current.select();else{const e=M[u],t=\"empty\"===e.type?e.startInInput-e.startSeparator.length:e.startInInput,n=\"empty\"===e.type?e.endInInput+e.endSeparator.length:e.endInInput;t===D.current.selectionStart&&n===D.current.selectionEnd||D.current===MU(document)&&D.current.setSelectionRange(t,n)}D.current.scrollTop=e},getActiveSectionIndexFromDOM:()=>{const e=D.current.selectionStart??0,t=D.current.selectionEnd??0,n=!!D.current?.readOnly;if(0===e&&0===t||n)return null;const r=e<=M[0].startInInput?1:M.findIndex((t=>t.startInInput-t.startSeparator.length>e));return-1===r?M.length-1:r-1},focusField:(e=0)=>{D.current?.focus(),E(e)},setSelectedSections:e=>E(e),isFieldFocused:()=>D.current===MU(document)})),[D,u,M,E]),k=()=>{if(d)return void E(null);const e=D.current.selectionStart??0;let t;t=e<=M[0].startInInput||e>=M[M.length-1].endInInput?1:M.findIndex((t=>t.startInInput-t.startSeparator.length>e));const n=-1===t?M.length-1:t-1;E(n)},I=(0,Jn.A)(((...e)=>{i?.(...e);const t=D.current;clearTimeout(r.current),r.current=setTimeout((()=>{t&&t===D.current&&(null!=h||d||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?E(\"all\"):k()))}))})),N=(0,Jn.A)(((e,...t)=>{e.isDefaultPrevented()||(o?.(e,...t),k())})),P=(0,Jn.A)((e=>{if(a?.(e),e.preventDefault(),d)return;const t=e.clipboardData.getData(\"text\");if(\"number\"==typeof u){const e=p.sections[u],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if(\"letter\"===e.contentType&&n||\"digit\"===e.contentType&&r||\"digit-with-letter\"===e.contentType&&i)return v(),void y({activeSection:e,newSectionValue:t,shouldGoToNextSection:!0});if(n||r)return}v(),b(t)})),L=(0,Jn.A)(((...e)=>{s?.(...e),E(null)})),F=(0,Jn.A)((e=>{if(d)return;const t=e.target.value;if(\"\"===t)return v(),void C();const r=e.nativeEvent.data,i=r&&r.length>1,o=i?r:t,a=YW(o);if(null==h||i)return void b(i?r:a);let s;if(\"all\"===u&&1===a.length)s=a;else{const e=YW(g.getV6InputValueFromSections(M,T,n));let t=-1,r=-1;for(let n=0;n<e.length;n+=1)-1===t&&e[n]!==a[n]&&(t=n),-1===r&&e[e.length-n-1]!==a[a.length-n-1]&&(r=n);const i=M[h];if(t<i.start||e.length-r-1>i.end)return;const o=a.length-e.length+i.end-YW(i.endSeparator||\"\").length;s=a.slice(i.start+YW(i.startSeparator||\"\").length,o)}0!==s.length?m({keyPressed:s,sectionIndex:h}):navigator.userAgent.toLowerCase().indexOf(\"android\")>-1?S(o):(v(),w())})),_=t.useMemo((()=>c||g.getV6InputValueFromSections(x(f.emptyValue),T,n)),[c,g,x,f.emptyValue,T,n]),z=t.useMemo((()=>p.tempValueStrAndroid??g.getV6InputValueFromSections(p.sections,T,n)),[p.sections,g,p.tempValueStrAndroid,T,n]);t.useEffect((()=>(D.current&&D.current===MU(document)&&E(\"all\"),()=>{clearTimeout(r.current)})),[]);const G=t.useMemo((()=>null==h||\"letter\"===p.sections[h].contentType?\"text\":\"numeric\"),[h,p.sections]),V=D.current&&D.current===MU(document);return{interactions:O,returnedValue:{readOnly:d,onBlur:L,onClick:N,onFocus:I,onPaste:P,inputRef:R,enableAccessibleFieldDOMStructure:!1,placeholder:_,inputMode:G,autoComplete:\"off\",value:!V&&A?\"\":z,onChange:F}}},qW=e=>{const n=DH(),{internalProps:r,internalProps:{unstableFieldRef:i,minutesStep:o,enableAccessibleFieldDOMStructure:a=!1,disabled:s=!1,readOnly:l=!1},forwardedProps:{onKeyDown:c,error:d,clearable:u,onClear:h},fieldValueManager:p,valueManager:g,validator:f}=e,m=\"rtl\"===Dr().direction,v=(e=>{const n=DH(),r=MH(),i=TH(),o=\"rtl\"===Dr().direction,{valueManager:a,fieldValueManager:s,valueType:l,validator:c,internalProps:d,internalProps:{value:u,defaultValue:h,referenceDate:p,onChange:g,format:f,formatDensity:m=\"dense\",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:b=!1,timezone:w,enableAccessibleFieldDOMStructure:C=!1}}=e,{timezone:S,value:E,handleValueChange:x}=jU({timezone:w,value:u,defaultValue:h,onChange:g,valueManager:a}),A=t.useMemo((()=>(e=>{const t=e.date(void 0);return\"0\"===e.formatByString(e.setSeconds(t,0),\"s\")?nH:Array.from({length:10}).map(((n,r)=>e.formatByString(e.setSeconds(t,r),\"s\")))})(n)),[n]),T=t.useMemo((()=>((e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=FB(e,r).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:dH(e,n,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):a,longestMonth:s}),weekDay:({format:t,contentType:r})=>{if(\"digit\"===r){const r=eH(e,n,t).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:n})=>{const i=e.getHours(o);return rH(e.formatByString(e.endOfDay(r),n),t)!==i.toString()?{minimum:1,maximum:Number(rH(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:i}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(n,A,S)),[n,A,S]),D=t.useCallback(((e,t=null)=>s.getSectionsFromValue(n,e,t,(e=>UW({utils:n,timezone:S,localeText:r,localizedDigits:A,format:f,date:e,formatDensity:m,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:C,isRTL:o})))),[s,f,r,A,o,b,n,m,S,C]),[R,M]=t.useState((()=>{const e=D(E),t={sections:e,value:E,referenceValue:a.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>XB[e.type]??1))))(e),i=a.getInitialReferenceValue({referenceDate:p,value:E,utils:n,props:d,granularity:r,timezone:S});return(0,Tt.A)({},t,{referenceValue:i})})),[O,k]=(0,HU.A)({controlled:v,default:null,name:\"useField\",state:\"selectedSections\"}),I=e=>{k(e),y?.(e)},N=t.useMemo((()=>gH(O,R.sections)),[O,R.sections]),P=\"all\"===N?0:N,L=({value:e,referenceValue:t,sections:r})=>{if(M((n=>(0,Tt.A)({},n,{sections:r,value:e,referenceValue:t,tempValueStrAndroid:null}))),a.areValuesEqual(n,R.value,e))return;const o={validationError:c({adapter:i,value:e,props:(0,Tt.A)({},d,{value:e,timezone:S})})};x(e,o)},F=(e,t)=>{const n=[...R.sections];return n[e]=(0,Tt.A)({},n[e],{value:t,modified:!0}),n};return t.useEffect((()=>{const e=D(R.value);M((t=>(0,Tt.A)({},t,{sections:e})))}),[f,n.locale,o]),t.useEffect((()=>{let e;e=!a.areValuesEqual(n,R.value,E)||a.getTimezone(n,R.value)!==a.getTimezone(n,E),e&&M((e=>(0,Tt.A)({},e,{value:E,referenceValue:s.updateReferenceValue(n,E,e.referenceValue),sections:D(E)})))}),[E]),{state:R,activeSectionIndex:P,parsedSelectedSections:N,setSelectedSections:I,clearValue:()=>{L({value:a.emptyValue,referenceValue:R.referenceValue,sections:D(a.emptyValue)})},clearActiveSection:()=>{if(null==P)return;const e=R.sections[P],t=s.getActiveDateManager(n,R,e),r=t.getSections(R.sections).filter((e=>\"\"!==e.value)).length===(\"\"===e.value?0:1),i=F(P,\"\"),o=r?null:n.getInvalidDate(),a=t.getNewValuesFromNewActiveDate(o);L((0,Tt.A)({},a,{sections:i}))},updateSectionValue:({activeSection:e,newSectionValue:t,shouldGoToNextSection:r})=>{r&&P<R.sections.length-1&&I(P+1);const i=s.getActiveDateManager(n,R,e),o=F(P,t),a=i.getSections(o),l=((e,t,n)=>{const r=t.some((e=>\"day\"===e.type)),i=[],o=[];for(let e=0;e<t.length;e+=1){const a=t[e];r&&\"weekDay\"===a.type||(i.push(a.format),o.push(lH(a,\"non-input\",n)))}const a=i.join(\" \"),s=o.join(\" \");return e.parse(s,a)})(n,a,A);let c,d;if(null!=l&&n.isValid(l)){const e=pH(n,S,l,a,i.referenceDate,!0);c=i.getNewValuesFromNewActiveDate(e),d=!0}else c=i.getNewValuesFromNewActiveDate(l),d=(null!=l&&!n.isValid(l))!=(null!=i.date&&!n.isValid(i.date));return d?L((0,Tt.A)({},c,{sections:o})):M((e=>(0,Tt.A)({},e,c,{sections:o,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const t=s.parseValueStr(e,R.referenceValue,((e,t)=>{const i=n.parse(e,f);if(null==i||!n.isValid(i))return null;const a=UW({utils:n,timezone:S,localeText:r,localizedDigits:A,format:f,date:i,formatDensity:m,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:C,isRTL:o});return pH(n,S,i,a,t,!1)})),i=s.updateReferenceValue(n,t,R.referenceValue);L({value:t,referenceValue:i,sections:D(t,R.sections)})},setTempAndroidValueStr:e=>M((t=>(0,Tt.A)({},t,{tempValueStrAndroid:e}))),getSectionsFromValue:D,sectionsValueBoundaries:T,localizedDigits:A,timezone:S}})(e),{state:y,activeSectionIndex:b,parsedSelectedSections:w,setSelectedSections:C,clearValue:S,clearActiveSection:E,updateSectionValue:x,setTempAndroidValueStr:A,sectionsValueBoundaries:T,localizedDigits:D,timezone:R}=v,M=(({sections:e,updateSectionValue:n,sectionsValueBoundaries:r,localizedDigits:i,setTempAndroidValueStr:o,timezone:a})=>{const s=DH(),[l,c]=t.useState(null),d=(0,Jn.A)((()=>c(null)));t.useEffect((()=>{null!=l&&e[l.sectionIndex]?.type!==l.sectionType&&d()}),[e,l,d]),t.useEffect((()=>{if(null!=l){const e=setTimeout((()=>d()),5e3);return()=>{clearTimeout(e)}}return()=>{}}),[l,d]);const u=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=l&&(!i||i(l.value))&&l.sectionIndex===n){const e=`${l.value}${o}`,t=r(e,a);if(!WW(t))return c({sectionIndex:n,value:e,sectionType:a.type}),t}const s=r(o,a);return WW(s)&&!s.saveQuery?(d(),null):(c({sectionIndex:n,value:o,sectionType:a.type}),WW(s)?null:s)},h=(0,Jn.A)((t=>{const l=e[t.sectionIndex],c=oH(t.keyPressed,i)?(e=>{const t=(e,t)=>{const n=rH(e,i),o=Number(n),a=r[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(o>a.maximum)return{saveQuery:!1};if(o<a.minimum)return{saveQuery:!0};const l=10*o>a.maximum||n.length===a.maximum.toString().length;return{sectionValue:sH(s,o,a,i,t),shouldGoToNextSection:l}};return u(e,((e,n)=>{if(\"digit\"===n.contentType||\"digit-with-letter\"===n.contentType)return t(e,n);if(\"month\"===n.type){const r=uH(s,a,\"digit\",\"month\",\"MM\"),i=t(e,{type:n.type,format:\"MM\",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:\"digit\",maxLength:2});if(WW(i))return i;const o=cH(s,i.sectionValue,\"MM\",n.format);return(0,Tt.A)({},i,{sectionValue:o})}if(\"weekDay\"===n.type){const r=t(e,n);if(WW(r))return r;const i=eH(s,a,n.format)[Number(r.sectionValue)-1];return(0,Tt.A)({},r,{sectionValue:i})}return{saveQuery:!1}}),(e=>oH(e,i)))})((0,Tt.A)({},t,{keyPressed:iH(t.keyPressed,i)})):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,i)=>{const o=e=>tH(s,a,n.type,e);if(\"letter\"===n.contentType)return t(n.format,o(n.format),e);if(r&&null!=i&&\"letter\"===JB(s,r).contentType){const n=o(r),a=t(0,n,e);return WW(a)?{saveQuery:!1}:(0,Tt.A)({},a,{sectionValue:i(a.sectionValue,n)})}return{saveQuery:!1}};return u(e,((e,t)=>{switch(t.type){case\"month\":{const r=e=>cH(s,e,s.formats.month,t.format);return n(e,t,s.formats.month,r)}case\"weekDay\":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,s.formats.weekday,r)}case\"meridiem\":return n(e,t);default:return{saveQuery:!1}}}))})(t);null!=c?n({activeSection:l,newSectionValue:c.sectionValue,shouldGoToNextSection:c.shouldGoToNextSection}):o(null)}));return{applyCharacterEditing:h,resetCharacterQuery:d}})({sections:y.sections,updateSectionValue:x,sectionsValueBoundaries:T,localizedDigits:D,setTempAndroidValueStr:A,timezone:R}),{resetCharacterQuery:O}=M,k=g.areValuesEqual(n,y.value,g.emptyValue),I=a?$W:KW,N=t.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>t>=o&&e.endSeparator?.includes(\" \")&&\" / \"!==e.endSeparator)),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(y.sections,m&&!a)),[y.sections,m,a]),{returnedValue:P,interactions:L}=I((0,Tt.A)({},e,v,M,{areAllSectionsEmpty:k,sectionOrder:N})),F=(0,Jn.A)((e=>{switch(c?.(e),!0){case(e.ctrlKey||e.metaKey)&&\"a\"===e.key.toLowerCase()&&!e.shiftKey&&!e.altKey:e.preventDefault(),C(\"all\");break;case\"Enter\"===e.key:e.preventDefault();break;case\"ArrowRight\"===e.key:if(e.preventDefault(),null==w)C(N.startIndex);else if(\"all\"===w)C(N.endIndex);else{const e=N.neighbors[w].rightIndex;null!==e&&C(e)}break;case\"ArrowLeft\"===e.key:if(e.preventDefault(),null==w)C(N.endIndex);else if(\"all\"===w)C(N.startIndex);else{const e=N.neighbors[w].leftIndex;null!==e&&C(e)}break;case\"Delete\"===e.key:if(e.preventDefault(),l)break;null==w||\"all\"===w?S():E(),O();break;case[\"ArrowUp\",\"ArrowDown\",\"Home\",\"End\",\"PageUp\",\"PageDown\"].includes(e.key):{if(e.preventDefault(),l||null==b)break;const t=y.sections[b],r=p.getActiveDateManager(n,y,t),i=((e,t,n,r,i,o,a,s)=>{const l=(e=>{switch(e){case\"ArrowUp\":return 1;case\"ArrowDown\":return-1;case\"PageUp\":return 5;case\"PageDown\":return-5;default:return 0}})(r),c=\"Home\"===r,d=\"End\"===r,u=\"\"===n.value||c||d;return\"digit\"===n.contentType||\"digit-with-letter\"===n.contentType?(()=>{const r=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),h=t=>sH(e,t,r,o,n),p=\"minutes\"===n.type&&s?.minutesStep?s.minutesStep:1;let g=parseInt(rH(n.value,o),10)+l*p;if(u){if(\"year\"===n.type&&!d&&!c)return e.formatByString(e.date(void 0,t),n.format);g=l>0||c?r.minimum:r.maximum}return g%p!=0&&((l<0||c)&&(g+=p-(p+g)%p),(l>0||d)&&(g-=g%p)),g>r.maximum?h(r.minimum+(g-r.maximum-1)%(r.maximum-r.minimum+1)):g<r.minimum?h(r.maximum-(r.minimum-g-1)%(r.maximum-r.minimum+1)):h(g)})():(()=>{const r=tH(e,t,n.type,n.format);if(0===r.length)return n.value;if(u)return l>0||c?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[(i+r.length+l)%r.length]})()})(n,R,t,e.key,T,D,r.date,{minutesStep:o});x({activeSection:t,newSectionValue:i,shouldGoToNextSection:!1});break}}}));(0,gr.A)((()=>{L.syncSelectionToDOM()}));const _=BU((0,Tt.A)({},r,{value:y.value,timezone:R}),f,g.isSameError,g.defaultErrorState),z=t.useMemo((()=>void 0!==d?d:g.hasError(_)),[g,_,d]);t.useEffect((()=>{z||null!=b||O()}),[y.referenceValue,b,z]),t.useEffect((()=>{null!=y.tempValueStrAndroid&&null!=b&&(O(),E())}),[y.sections]),t.useImperativeHandle(i,(()=>({getSections:()=>y.sections,getActiveSectionIndex:L.getActiveSectionIndexFromDOM,setSelectedSections:L.setSelectedSections,focusField:L.focusField,isFieldFocused:L.isFieldFocused})));const G={onKeyDown:F,onClear:(0,Jn.A)(((e,...t)=>{e.preventDefault(),h?.(e,...t),S(),L.isFieldFocused()?C(N.startIndex):L.focusField(0)})),error:z,clearable:Boolean(u&&!k&&!l&&!s)},V={disabled:s,readOnly:l};return(0,Tt.A)({},e.forwardedProps,G,V,P)},QW=[\"disablePast\",\"disableFuture\",\"minDate\",\"maxDate\",\"shouldDisableDate\",\"shouldDisableMonth\",\"shouldDisableYear\"],XW=[\"disablePast\",\"disableFuture\",\"minTime\",\"maxTime\",\"shouldDisableTime\",\"minutesStep\",\"ampm\",\"disableIgnoringDatePartForTimeValidation\"],ZW=[\"minDateTime\",\"maxDateTime\"],JW=[...QW,...XW,...ZW],e$=e=>JW.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),t$=[\"value\",\"defaultValue\",\"referenceDate\",\"format\",\"formatDensity\",\"onChange\",\"timezone\",\"onError\",\"shouldRespectLeadingZeros\",\"selectedSections\",\"onSelectedSectionsChange\",\"unstableFieldRef\",\"enableAccessibleFieldDOMStructure\",\"disabled\",\"readOnly\",\"dateSeparator\"],n$=(e,t)=>{const n=(0,Tt.A)({},e),r={},i=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return t$.forEach(i),\"date\"===t?QW.forEach(i):\"time\"===t?XW.forEach(i):\"date-time\"===t&&(QW.forEach(i),XW.forEach(i),ZW.forEach(i)),{forwardedProps:n,internalProps:r}},r$=[\"clearable\",\"onClear\",\"InputProps\",\"sx\",\"slots\",\"slotProps\"],i$=[\"ownerState\"],o$=e=>{const n=MH(),{clearable:r,onClear:i,InputProps:o,sx:a,slots:s,slotProps:l}=e,c=(0,At.A)(e,r$),d=s?.clearButton??gl,u=Xn({elementType:d,externalSlotProps:l?.clearButton,ownerState:{},className:\"clearButton\",additionalProps:{title:n.fieldClearLabel}}),h=(0,At.A)(u,i$),p=s?.clearIcon??BW,g=Xn({elementType:p,externalSlotProps:l?.clearIcon,ownerState:{}});return(0,Tt.A)({},c,{InputProps:(0,Tt.A)({},o,{endAdornment:(0,Kt.jsxs)(t.Fragment,{children:[r&&(0,Kt.jsx)(KH,{position:\"end\",sx:{marginRight:o?.endAdornment?-1:-1.5},children:(0,Kt.jsx)(d,(0,Tt.A)({},h,{onClick:i,children:(0,Kt.jsx)(p,(0,Tt.A)({fontSize:\"small\"},g))}))}),o?.endAdornment]})}),sx:[{\"& .clearButton\":{opacity:1},\"@media (pointer: fine)\":{\"& .clearButton\":{opacity:0},\"&:hover, &:focus-within\":{\".clearButton\":{opacity:1}}}},...Array.isArray(a)?a:[a]]})};function a$(e){return(0,un.Ay)(\"MuiPickersTextField\",e)}function s$(e){return(0,un.Ay)(\"MuiPickersInputBase\",e)}(0,qt.A)(\"MuiPickersTextField\",[\"root\",\"focused\",\"disabled\",\"error\",\"required\"]);const l$=(0,qt.A)(\"MuiPickersInputBase\",[\"root\",\"focused\",\"disabled\",\"error\",\"notchedOutline\",\"sectionContent\",\"sectionBefore\",\"sectionAfter\",\"adornedStart\",\"adornedEnd\",\"input\"]);function c$(e){return(0,un.Ay)(\"MuiPickersOutlinedInput\",e)}const d$=(0,Tt.A)({},l$,(0,qt.A)(\"MuiPickersOutlinedInput\",[\"root\",\"notchedOutline\",\"input\"])),u$=[\"children\",\"className\",\"label\",\"notched\",\"shrink\"],h$=(0,Ot.Ay)(\"fieldset\",{name:\"MuiPickersOutlinedInput\",slot:\"NotchedOutline\",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return{textAlign:\"left\",position:\"absolute\",bottom:0,right:0,top:-5,left:0,margin:0,padding:\"0 8px\",pointerEvents:\"none\",borderRadius:\"inherit\",borderStyle:\"solid\",borderWidth:1,overflow:\"hidden\",minWidth:\"0%\",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),p$=(0,Ot.Ay)(\"span\")((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:\"inherit\"}))),g$=(0,Ot.Ay)(\"legend\")((({theme:e})=>({float:\"unset\",width:\"auto\",overflow:\"hidden\",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:\"11px\",transition:e.transitions.create(\"width\",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:\"block\",padding:0,height:11,fontSize:\"0.75em\",visibility:\"hidden\",maxWidth:.01,transition:e.transitions.create(\"max-width\",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:\"nowrap\",\"& > span\":{paddingLeft:5,paddingRight:5,display:\"inline-block\",opacity:0,visibility:\"visible\"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:\"100%\",transition:e.transitions.create(\"max-width\",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function f$(e){const{className:t,label:n}=e,r=(0,At.A)(e,u$),i=null!=n&&\"\"!==n,o=(0,Tt.A)({},e,{withLabel:i});return(0,Kt.jsx)(h$,(0,Tt.A)({\"aria-hidden\":!0,className:t},r,{ownerState:o,children:(0,Kt.jsx)(g$,{ownerState:o,children:i?(0,Kt.jsx)(p$,{children:n}):(0,Kt.jsx)(p$,{className:\"notranslate\",children:\"​\"})})}))}function m$(e){return(0,un.Ay)(\"MuiPickersSectionList\",e)}const v$=(0,qt.A)(\"MuiPickersSectionList\",[\"root\",\"section\",\"sectionContent\"]),y$=[\"slots\",\"slotProps\",\"elements\",\"sectionListRef\"],b$=(0,Ot.Ay)(\"div\",{name:\"MuiPickersSectionList\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({direction:\"ltr /*! @noflip */\",outline:\"none\"}),w$=(0,Ot.Ay)(\"span\",{name:\"MuiPickersSectionList\",slot:\"Section\",overridesResolver:(e,t)=>t.section})({}),C$=(0,Ot.Ay)(\"span\",{name:\"MuiPickersSectionList\",slot:\"SectionSeparator\",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:\"pre\"}),S$=(0,Ot.Ay)(\"span\",{name:\"MuiPickersSectionList\",slot:\"SectionContent\",overridesResolver:(e,t)=>t.sectionContent})({outline:\"none\"});function E$(e){const{slots:t,slotProps:n,element:r,classes:i}=e,o=t?.section??w$,a=Xn({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:{}}),s=t?.sectionContent??S$,l=Xn({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),c=t?.sectionSeparator??C$,d=Xn({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:\"before\"}}),u=Xn({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:\"after\"}});return(0,Kt.jsxs)(o,(0,Tt.A)({},a,{children:[(0,Kt.jsx)(c,(0,Tt.A)({},d)),(0,Kt.jsx)(s,(0,Tt.A)({},l)),(0,Kt.jsx)(c,(0,Tt.A)({},u))]}))}const x$=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiPickersSectionList\"}),{slots:i,slotProps:o,elements:a,sectionListRef:s}=r,l=(0,At.A)(r,y$),c=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],section:[\"section\"],sectionContent:[\"sectionContent\"]},m$,t)})(r),d=t.useRef(null),u=(0,Wn.A)(n,d),h=e=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return d.current};t.useImperativeHandle(s,(()=>({getRoot:()=>h(\"getRoot\"),getSectionContainer:e=>h(\"getSectionContainer\").querySelector(`.${v$.section}[data-sectionindex=\"${e}\"]`),getSectionContent:e=>h(\"getSectionContent\").querySelector(`.${v$.section}[data-sectionindex=\"${e}\"] .${v$.sectionContent}`),getSectionIndexFromDOMElement(e){const t=h(\"getSectionIndexFromDOMElement\");if(null==e||!t.contains(e))return null;let n=null;return e.classList.contains(v$.section)?n=e:e.classList.contains(v$.sectionContent)&&(n=e.parentElement),null==n?null:Number(n.dataset.sectionindex)}})));const p=i?.root??b$,g=Xn({elementType:p,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:u,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return(0,Kt.jsx)(p,(0,Tt.A)({},g,{children:g.contentEditable?a.map((({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`)).join(\"\"):(0,Kt.jsx)(t.Fragment,{children:a.map(((e,t)=>(0,Kt.jsx)(E$,{slots:i,slotProps:o,element:e,classes:c},t)))})}))})),A$=[\"elements\",\"areAllSectionsEmpty\",\"defaultValue\",\"label\",\"value\",\"onChange\",\"id\",\"autoFocus\",\"endAdornment\",\"startAdornment\",\"renderSuffix\",\"slots\",\"slotProps\",\"contentEditable\",\"tabIndex\",\"onInput\",\"onPaste\",\"onKeyDown\",\"fullWidth\",\"name\",\"readOnly\",\"inputProps\",\"inputRef\",\"sectionListRef\"],T$=(0,Ot.Ay)(\"div\",{name:\"MuiPickersInputBase\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>(0,Tt.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:\"text\",padding:0,display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",position:\"relative\",boxSizing:\"border-box\",letterSpacing:(.15/16,Math.round(937.5)/1e5+\"em\"),variants:[{props:{fullWidth:!0},style:{width:\"100%\"}}]}))),D$=(0,Ot.Ay)(b$,{name:\"MuiPickersInputBase\",slot:\"SectionsContainer\",overridesResolver:(e,t)=>t.sectionsContainer})((({theme:e})=>(0,Tt.A)({padding:\"4px 0 5px\",fontFamily:e.typography.fontFamily,fontSize:\"inherit\",lineHeight:\"1.4375em\",flexGrow:1,outline:\"none\",display:\"flex\",flexWrap:\"nowrap\",overflow:\"hidden\",letterSpacing:\"inherit\",width:\"182px\"},\"rtl\"===e.direction&&{textAlign:\"right /*! @noflip */\"},{variants:[{props:{size:\"small\"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:\"currentColor\",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:r})=>!e&&!t&&!n&&null==r,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:\"light\"===e.palette.mode?.42:.5}}]}))),R$=(0,Ot.Ay)(w$,{name:\"MuiPickersInputBase\",slot:\"Section\",overridesResolver:(e,t)=>t.section})((({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:\"inherit\",letterSpacing:\"inherit\",lineHeight:\"1.4375em\",display:\"flex\"}))),M$=(0,Ot.Ay)(S$,{name:\"MuiPickersInputBase\",slot:\"SectionContent\",overridesResolver:(e,t)=>t.content})((({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:\"1.4375em\",letterSpacing:\"inherit\",width:\"fit-content\",outline:\"none\"}))),O$=(0,Ot.Ay)(C$,{name:\"MuiPickersInputBase\",slot:\"Separator\",overridesResolver:(e,t)=>t.separator})((()=>({whiteSpace:\"pre\",letterSpacing:\"inherit\"}))),k$=(0,Ot.Ay)(\"input\",{name:\"MuiPickersInputBase\",slot:\"Input\",overridesResolver:(e,t)=>t.hiddenInput})((0,Tt.A)({},{border:0,clip:\"rect(0 0 0 0)\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",padding:0,position:\"absolute\",whiteSpace:\"nowrap\",width:\"1px\"})),I$=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiPickersInputBase\"}),{elements:i,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:c,startAdornment:d,renderSuffix:u,slots:h,slotProps:p,contentEditable:g,tabIndex:f,onInput:m,onPaste:v,onKeyDown:y,name:b,readOnly:w,inputProps:C,inputRef:S,sectionListRef:E}=r,x=(0,At.A)(r,A$),A=t.useRef(null),T=(0,Wn.A)(n,A),D=(0,Wn.A)(C?.ref,S),R=vl();if(!R)throw new Error(\"MUI X: PickersInputBase should always be used inside a PickersTextField component\");t.useEffect((()=>{R&&R.setAdornedStart(Boolean(d))}),[R,d]),t.useEffect((()=>{R&&(o?R.onEmpty():R.onFilled())}),[R,o]);const M=(0,Tt.A)({},r,R),O=(e=>{const{focused:t,disabled:n,error:r,classes:i,fullWidth:o,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:d}=e,u={root:[\"root\",t&&!n&&\"focused\",n&&\"disabled\",a&&\"readOnly\",r&&\"error\",o&&\"fullWidth\",`color${(0,ls.A)(s)}`,\"small\"===l&&\"inputSizeSmall\",Boolean(d)&&\"adornedStart\",Boolean(c)&&\"adornedEnd\"],notchedOutline:[\"notchedOutline\"],input:[\"input\"],sectionsContainer:[\"sectionsContainer\"],sectionContent:[\"sectionContent\"],sectionBefore:[\"sectionBefore\"],sectionAfter:[\"sectionAfter\"]};return(0,Rt.A)(u,s$,i)})(M),k=h?.root||T$,I=Xn({elementType:k,externalSlotProps:p?.root,externalForwardedProps:x,additionalProps:{\"aria-invalid\":R.error,ref:T},className:O.root,ownerState:M}),N=h?.input||D$;return(0,Kt.jsxs)(k,(0,Tt.A)({},I,{children:[d,(0,Kt.jsx)(x$,{sectionListRef:E,elements:i,contentEditable:g,tabIndex:f,className:O.sectionsContainer,onFocus:e=>{R.disabled?e.stopPropagation():R.onFocus?.(e)},onBlur:R.onBlur,onInput:m,onPaste:v,onKeyDown:y,slots:{root:N,section:R$,sectionContent:M$,sectionSeparator:O$},slotProps:{root:{ownerState:M},sectionContent:{className:l$.sectionContent},sectionSeparator:({position:e})=>({className:\"before\"===e?l$.sectionBefore:l$.sectionAfter})}}),c,u?u((0,Tt.A)({},R)):null,(0,Kt.jsx)(k$,(0,Tt.A)({name:b,className:O.input,value:a,onChange:s,id:l,\"aria-hidden\":\"true\",tabIndex:-1,readOnly:w,required:R.required,disabled:R.disabled},C,{ref:D}))]}))})),N$=[\"label\",\"autoFocus\",\"ownerState\",\"notched\"],P$=(0,Ot.Ay)(T$,{name:\"MuiPickersOutlinedInput\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return{padding:\"0 14px\",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${d$.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},\"@media (hover: none)\":{[`&:hover .${d$.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${d$.focused} .${d$.notchedOutline}`]:{borderStyle:\"solid\",borderWidth:2},[`&.${d$.disabled}`]:{[`& .${d$.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},\"*\":{color:(e.vars||e).palette.action.disabled}},[`&.${d$.error} .${d$.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t},style:{[`&.${d$.focused}:not(.${d$.error}) .${d$.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})))}})),L$=(0,Ot.Ay)(D$,{name:\"MuiPickersOutlinedInput\",slot:\"SectionsContainer\",overridesResolver:(e,t)=>t.sectionsContainer})({padding:\"16.5px 0\",variants:[{props:{size:\"small\"},style:{padding:\"8.5px 0\"}}]}),F$=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiPickersOutlinedInput\"}),{label:i,ownerState:o,notched:a}=r,s=(0,At.A)(r,N$),l=vl(),c=(0,Tt.A)({},r,o,l,{color:l?.color||\"primary\"}),d=(e=>{const{classes:t}=e,n=(0,Rt.A)({root:[\"root\"],notchedOutline:[\"notchedOutline\"],input:[\"input\"]},c$,t);return(0,Tt.A)({},t,n)})(c);return(0,Kt.jsx)(I$,(0,Tt.A)({slots:{root:P$,input:L$},renderSuffix:e=>(0,Kt.jsx)(f$,{shrink:Boolean(a||e.adornedStart||e.focused||e.filled),notched:Boolean(a||e.adornedStart||e.focused||e.filled),className:d.notchedOutline,label:null!=i&&\"\"!==i&&l?.required?(0,Kt.jsxs)(t.Fragment,{children:[i,\" \",\"*\"]}):i,ownerState:c})},s,{label:i,classes:d,ref:n}))}));function _$(e){return(0,un.Ay)(\"MuiPickersFilledInput\",e)}F$.muiName=\"Input\";const z$=(0,Tt.A)({},l$,(0,qt.A)(\"MuiPickersFilledInput\",[\"root\",\"underline\",\"input\"])),G$=[\"label\",\"autoFocus\",\"disableUnderline\",\"ownerState\"],V$=(0,Ot.Ay)(T$,{name:\"MuiPickersFilledInput\",slot:\"Root\",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Gs(e)&&\"disableUnderline\"!==e})((({theme:e})=>{const t=\"light\"===e.palette.mode,n=t?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\",r=t?\"rgba(0, 0, 0, 0.06)\":\"rgba(255, 255, 255, 0.09)\",i=t?\"rgba(0, 0, 0, 0.09)\":\"rgba(255, 255, 255, 0.13)\",o=t?\"rgba(0, 0, 0, 0.12)\":\"rgba(255, 255, 255, 0.12)\";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),\"&:hover\":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,\"@media (hover: none)\":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${z$.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${z$.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t,disableUnderline:!1},style:{\"&::after\":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:{disableUnderline:!1},style:{\"&::after\":{left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${z$.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${z$.error}`]:{\"&:before, &:after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${z$.disabled}, .${z$.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${z$.disabled}:before`]:{borderBottomStyle:\"dotted\"}}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:12}},{props:({endAdornment:e})=>!!e,style:{paddingRight:12}}]}})),B$=(0,Ot.Ay)(D$,{name:\"MuiPickersFilledInput\",slot:\"sectionsContainer\",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:\"small\"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:\"small\"},style:{paddingTop:8,paddingBottom:9}}]}),H$=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPickersFilledInput\"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=(0,At.A)(n,G$),s=vl(),l=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},i=(0,Rt.A)(r,_$,t);return(0,Tt.A)({},t,i)})((0,Tt.A)({},n,o,s,{color:s?.color||\"primary\"}));return(0,Kt.jsx)(I$,(0,Tt.A)({slots:{root:V$,input:B$},slotProps:{root:{disableUnderline:i}}},a,{label:r,classes:l,ref:t}))}));function j$(e){return(0,un.Ay)(\"MuiPickersFilledInput\",e)}H$.muiName=\"Input\";const U$=(0,Tt.A)({},l$,(0,qt.A)(\"MuiPickersInput\",[\"root\",\"input\"])),W$=[\"label\",\"autoFocus\",\"disableUnderline\",\"ownerState\"],$$=(0,Ot.Ay)(T$,{name:\"MuiPickersInput\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>{let t=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{\"label + &\":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter((t=>(e.vars??e).palette[t].main)).map((t=>({props:{color:t},style:{\"&::after\":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))),{props:{disableUnderline:!1},style:{\"&::after\":{background:\"red\",left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${U$.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${U$.error}`]:{\"&:before, &:after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${U$.disabled}, .${U$.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,\"@media (hover: none)\":{borderBottom:`1px solid ${t}`}},[`&.${U$.disabled}:before`]:{borderBottomStyle:\"dotted\"}}}]}})),Y$=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPickersInput\"}),{label:r,disableUnderline:i=!1,ownerState:o}=n,a=(0,At.A)(n,W$),s=vl(),l=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},i=(0,Rt.A)(r,j$,t);return(0,Tt.A)({},t,i)})((0,Tt.A)({},n,o,s,{disableUnderline:i,color:s?.color||\"primary\"}));return(0,Kt.jsx)(I$,(0,Tt.A)({slots:{root:$$}},a,{label:r,classes:l,ref:t}))}));Y$.muiName=\"Input\";const K$=[\"onFocus\",\"onBlur\",\"className\",\"color\",\"disabled\",\"error\",\"variant\",\"required\",\"InputProps\",\"inputProps\",\"inputRef\",\"sectionListRef\",\"elements\",\"areAllSectionsEmpty\",\"onClick\",\"onKeyDown\",\"onKeyUp\",\"onPaste\",\"onInput\",\"endAdornment\",\"startAdornment\",\"tabIndex\",\"contentEditable\",\"focused\",\"value\",\"onChange\",\"fullWidth\",\"id\",\"name\",\"helperText\",\"FormHelperTextProps\",\"label\",\"InputLabelProps\"],q$={standard:Y$,filled:H$,outlined:F$},Q$=(0,Ot.Ay)(tT,{name:\"MuiPickersTextField\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),X$=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiPickersTextField\"}),{onFocus:i,onBlur:o,className:a,color:s=\"primary\",disabled:l=!1,error:c=!1,variant:d=\"outlined\",required:u=!1,InputProps:h,inputProps:p,inputRef:g,sectionListRef:f,elements:m,areAllSectionsEmpty:v,onClick:y,onKeyDown:b,onPaste:w,onInput:C,endAdornment:S,startAdornment:E,tabIndex:x,contentEditable:A,focused:T,value:D,onChange:R,fullWidth:M,id:O,name:k,helperText:I,FormHelperTextProps:N,label:P,InputLabelProps:L}=r,F=(0,At.A)(r,K$),_=t.useRef(null),z=(0,Wn.A)(n,_),G=(0,ch.A)(O),V=I&&G?`${G}-helper-text`:void 0,B=P&&G?`${G}-label`:void 0,H=(0,Tt.A)({},r,{color:s,disabled:l,error:c,focused:T,required:u,variant:d}),j=(e=>{const{focused:t,disabled:n,classes:r,required:i}=e,o={root:[\"root\",t&&!n&&\"focused\",n&&\"disabled\",i&&\"required\"]};return(0,Rt.A)(o,a$,r)})(H),U=q$[d];return(0,Kt.jsxs)(Q$,(0,Tt.A)({className:(0,We.A)(j.root,a),ref:z,focused:T,onFocus:i,onBlur:o,disabled:l,variant:d,error:c,color:s,fullWidth:M,required:u,ownerState:H},F,{children:[(0,Kt.jsx)(QA,(0,Tt.A)({htmlFor:G,id:B},L,{children:P})),(0,Kt.jsx)(U,(0,Tt.A)({elements:m,areAllSectionsEmpty:v,onClick:y,onKeyDown:b,onInput:C,onPaste:w,endAdornment:S,startAdornment:E,tabIndex:x,contentEditable:A,value:D,onChange:R,id:G,fullWidth:M,inputProps:p,inputRef:g,sectionListRef:f,label:P,name:k,role:\"group\",\"aria-labelledby\":B},h)),I&&(0,Kt.jsx)(El,(0,Tt.A)({id:V},N,{children:I}))]}))})),Z$=[\"enableAccessibleFieldDOMStructure\"],J$=[\"InputProps\",\"readOnly\"],eY=[\"onPaste\",\"onKeyDown\",\"inputMode\",\"readOnly\",\"InputProps\",\"inputProps\",\"inputRef\"],tY=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=(0,At.A)(e,Z$);if(t){const{InputProps:e,readOnly:t}=n,r=(0,At.A)(n,J$);return(0,Tt.A)({},r,{InputProps:(0,Tt.A)({},e??{},{readOnly:t})})}const{onPaste:r,onKeyDown:i,inputMode:o,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,d=(0,At.A)(n,eY);return(0,Tt.A)({},d,{InputProps:(0,Tt.A)({},s??{},{readOnly:a}),inputProps:(0,Tt.A)({},l??{},{inputMode:o,onPaste:r,onKeyDown:i,ref:c})})},nY=[\"slots\",\"slotProps\",\"InputProps\",\"inputProps\"],rY=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiDateField\"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=(0,At.A)(n,nY),l=n,c=r?.textField??(e.enableAccessibleFieldDOMStructure?X$:aT),d=Xn({elementType:c,externalSlotProps:i?.textField,externalForwardedProps:s,additionalProps:{ref:t},ownerState:l});d.inputProps=(0,Tt.A)({},a,d.inputProps),d.InputProps=(0,Tt.A)({},o,d.InputProps);const u=(e=>{const t=(e=>{const t=DH(),n=RH();return(0,Tt.A)({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:LB(t,e.minDate,n.minDate),maxDate:LB(t,e.maxDate,n.maxDate)})})(e),{forwardedProps:n,internalProps:r}=n$(t,\"date\");return qW({forwardedProps:n,internalProps:r,valueManager:yH,fieldValueManager:bH,validator:HH,valueType:\"date\"})})(d),h=tY(u),p=o$((0,Tt.A)({},h,{slots:r,slotProps:i}));return(0,Kt.jsx)(c,(0,Tt.A)({},p))})),iY=({shouldDisableDate:e,shouldDisableMonth:n,shouldDisableYear:r,minDate:i,maxDate:o,disableFuture:a,disablePast:s,timezone:l})=>{const c=TH();return t.useCallback((t=>null!==HH({adapter:c,value:t,props:{shouldDisableDate:e,shouldDisableMonth:n,shouldDisableYear:r,minDate:i,maxDate:o,disableFuture:a,disablePast:s,timezone:l}})),[c,e,n,r,i,o,a,s,l])},oY=e=>(0,un.Ay)(\"MuiPickersFadeTransitionGroup\",e),aY=((0,qt.A)(\"MuiPickersFadeTransitionGroup\",[\"root\"]),(0,Ot.Ay)(Wt,{name:\"MuiPickersFadeTransitionGroup\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"block\",position:\"relative\"}));function sY(e){const t=(0,It.A)({props:e,name:\"MuiPickersFadeTransitionGroup\"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},oY,t)})(t),s=Dr();return i?n:(0,Kt.jsx)(aY,{className:(0,We.A)(a.root,r),children:(0,Kt.jsx)(Nr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function lY(e){return(0,un.Ay)(\"MuiPickersDay\",e)}const cY=(0,qt.A)(\"MuiPickersDay\",[\"root\",\"dayWithMargin\",\"dayOutsideMonth\",\"hiddenDaySpacingFiller\",\"today\",\"selected\",\"disabled\"]),dY=[\"autoFocus\",\"className\",\"day\",\"disabled\",\"disableHighlightToday\",\"disableMargin\",\"hidden\",\"isAnimating\",\"onClick\",\"onDaySelect\",\"onFocus\",\"onBlur\",\"onKeyDown\",\"onMouseDown\",\"onMouseEnter\",\"outsideCurrentMonth\",\"selected\",\"showDaysOutsideCurrentMonth\",\"children\",\"today\",\"isFirstVisibleCell\",\"isLastVisibleCell\"],uY=({theme:e})=>(0,Tt.A)({},e.typography.caption,{width:36,height:36,borderRadius:\"50%\",padding:0,backgroundColor:\"transparent\",transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,\"@media (pointer: fine)\":{\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.primary.main,e.palette.action.hoverOpacity)}},\"&:focus\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:jG(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${cY.selected}`]:{willChange:\"background-color\",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${cY.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,\"&:hover\":{willChange:\"background-color\",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${cY.disabled}:not(.${cY.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${cY.disabled}&.${cY.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:\"0 2px\"}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${cY.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),hY=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},pY=(0,Ot.Ay)(mn,{name:\"MuiPickersDay\",slot:\"Root\",overridesResolver:hY})(uY),gY=(0,Ot.Ay)(\"div\",{name:\"MuiPickersDay\",slot:\"Root\",overridesResolver:hY})((({theme:e})=>(0,Tt.A)({},uY({theme:e}),{opacity:0,pointerEvents:\"none\"}))),fY=()=>{},mY=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiPickersDay\"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:d,onClick:u,onDaySelect:h,onFocus:p=fY,onBlur:g=fY,onKeyDown:f=fY,onMouseDown:m=fY,onMouseEnter:v=fY,outsideCurrentMonth:y,selected:b=!1,showDaysOutsideCurrentMonth:w=!1,children:C,today:S=!1}=r,E=(0,At.A)(r,dY),x=(0,Tt.A)({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:c,selected:b,showDaysOutsideCurrentMonth:w,today:S}),A=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s,d={root:[\"root\",t&&!c&&\"selected\",o&&\"disabled\",!n&&\"dayWithMargin\",!r&&i&&\"today\",a&&s&&\"dayOutsideMonth\",c&&\"hiddenDaySpacingFiller\"],hiddenDaySpacingFiller:[\"hiddenDaySpacingFiller\"]};return(0,Rt.A)(d,lY,l)})(x),T=DH(),D=t.useRef(null),R=(0,Wn.A)(D,n);return(0,gr.A)((()=>{!i||s||d||y||D.current.focus()}),[i,s,d,y]),y&&!w?(0,Kt.jsx)(gY,{className:(0,We.A)(A.root,A.hiddenDaySpacingFiller,o),ownerState:x,role:E.role}):(0,Kt.jsx)(pY,(0,Tt.A)({className:(0,We.A)(A.root,o),ref:R,centerRipple:!0,disabled:s,tabIndex:b?0:-1,onKeyDown:e=>f(e,a),onFocus:e=>p(e,a),onBlur:e=>g(e,a),onMouseEnter:e=>v(e,a),onClick:e=>{s||h(a),y&&e.currentTarget.focus(),u&&u(e)},onMouseDown:e=>{m(e),y&&e.preventDefault()}},E,{ownerState:x,children:C||T.format(a,\"dayOfMonth\")}))})),vY=t.memo(mY);function yY(e,t){return e.replace(new RegExp(\"(^|\\\\s)\"+t+\"(?:\\\\s|$)\",\"g\"),\"$1\").replace(/\\s+/g,\" \").replace(/^\\s*|\\s*$/g,\"\")}var bY=function(e,t){return e&&t&&t.split(\" \").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):\"string\"==typeof n.className?n.className=yY(n.className,r):n.setAttribute(\"class\",yY(n.className&&n.className.baseVal||\"\",r)));var n,r}))},wY=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,\"exit\"),t.addClass(i,o?\"appear\":\"enter\",\"base\"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?\"appear\":\"enter\";t.addClass(i,o,\"active\"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?\"appear\":\"enter\";t.removeClasses(i,o),t.addClass(i,o,\"done\"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,\"appear\"),t.removeClasses(n,\"enter\"),t.addClass(n,\"exit\",\"base\"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,\"exit\",\"active\"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,\"exit\"),t.addClass(n,\"exit\",\"done\"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=\"string\"==typeof n,i=r?(r&&n?n+\"-\":\"\")+e:n[e];return{baseClassName:i,activeClassName:r?i+\"-active\":n[e+\"Active\"],doneClassName:r?i+\"-done\":n[e+\"Done\"]}},t}zt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+\"ClassName\"],i=this.getClassNames(\"enter\").doneClassName;\"appear\"===t&&\"done\"===n&&i&&(r+=\" \"+i),\"active\"===n&&e&&vr(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(\" \").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(\" \"+(e.className.baseVal||e.className)+\" \").indexOf(\" \"+t+\" \")}(n,r)||(\"string\"==typeof n.className?n.className=n.className+\" \"+r:n.setAttribute(\"class\",(n.className&&n.className.baseVal||\"\")+\" \"+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&bY(e,r),i&&bY(e,i),o&&bY(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,At.A)(e,[\"classNames\"]));return i().createElement(Ar,(0,Tt.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i().Component);wY.defaultProps={classNames:\"\"},wY.propTypes={};const CY=wY,SY=e=>(0,un.Ay)(\"MuiPickersSlideTransition\",e),EY=(0,qt.A)(\"MuiPickersSlideTransition\",[\"root\",\"slideEnter-left\",\"slideEnter-right\",\"slideEnterActive\",\"slideExit\",\"slideExitActiveLeft-left\",\"slideExitActiveLeft-right\"]),xY=[\"children\",\"className\",\"reduceAnimations\",\"slideDirection\",\"transKey\",\"classes\"],AY=(0,Ot.Ay)(Wt,{name:\"MuiPickersSlideTransition\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`.${EY[\"slideEnter-left\"]}`]:t[\"slideEnter-left\"]},{[`.${EY[\"slideEnter-right\"]}`]:t[\"slideEnter-right\"]},{[`.${EY.slideEnterActive}`]:t.slideEnterActive},{[`.${EY.slideExit}`]:t.slideExit},{[`.${EY[\"slideExitActiveLeft-left\"]}`]:t[\"slideExitActiveLeft-left\"]},{[`.${EY[\"slideExitActiveLeft-right\"]}`]:t[\"slideExitActiveLeft-right\"]}]})((({theme:e})=>{const t=e.transitions.create(\"transform\",{duration:e.transitions.duration.complex,easing:\"cubic-bezier(0.35, 0.8, 0.4, 1)\"});return{display:\"block\",position:\"relative\",overflowX:\"hidden\",\"& > *\":{position:\"absolute\",top:0,right:0,left:0},[`& .${EY[\"slideEnter-left\"]}`]:{willChange:\"transform\",transform:\"translate(100%)\",zIndex:1},[`& .${EY[\"slideEnter-right\"]}`]:{willChange:\"transform\",transform:\"translate(-100%)\",zIndex:1},[`& .${EY.slideEnterActive}`]:{transform:\"translate(0%)\",transition:t},[`& .${EY.slideExit}`]:{transform:\"translate(0%)\"},[`& .${EY[\"slideExitActiveLeft-left\"]}`]:{willChange:\"transform\",transform:\"translate(-100%)\",transition:t,zIndex:0},[`& .${EY[\"slideExitActiveLeft-right\"]}`]:{willChange:\"transform\",transform:\"translate(100%)\",transition:t,zIndex:0}}})),TY=e=>(0,un.Ay)(\"MuiDayCalendar\",e),DY=((0,qt.A)(\"MuiDayCalendar\",[\"root\",\"header\",\"weekDayLabel\",\"loadingContainer\",\"slideTransition\",\"monthContainer\",\"weekContainer\",\"weekNumberLabel\",\"weekNumber\"]),[\"parentProps\",\"day\",\"focusableDay\",\"selectedDays\",\"isDateDisabled\",\"currentMonthNumber\",\"isViewFocused\"]),RY=[\"ownerState\"],MY=(0,Ot.Ay)(\"div\",{name:\"MuiDayCalendar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),OY=(0,Ot.Ay)(\"div\",{name:\"MuiDayCalendar\",slot:\"Header\",overridesResolver:(e,t)=>t.header})({display:\"flex\",justifyContent:\"center\",alignItems:\"center\"}),kY=(0,Ot.Ay)(cl,{name:\"MuiDayCalendar\",slot:\"WeekDayLabel\",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:\"0 2px\",textAlign:\"center\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",color:(e.vars||e).palette.text.secondary}))),IY=(0,Ot.Ay)(cl,{name:\"MuiDayCalendar\",slot:\"WeekNumberLabel\",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:\"0 2px\",textAlign:\"center\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",color:e.palette.text.disabled}))),NY=(0,Ot.Ay)(cl,{name:\"MuiDayCalendar\",slot:\"WeekNumber\",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>(0,Tt.A)({},e.typography.caption,{width:36,height:36,padding:0,margin:\"0 2px\",color:e.palette.text.disabled,fontSize:\"0.75rem\",alignItems:\"center\",justifyContent:\"center\",display:\"inline-flex\"}))),PY=(0,Ot.Ay)(\"div\",{name:\"MuiDayCalendar\",slot:\"LoadingContainer\",overridesResolver:(e,t)=>t.loadingContainer})({display:\"flex\",justifyContent:\"center\",alignItems:\"center\",minHeight:240}),LY=(0,Ot.Ay)((function(e){const n=(0,It.A)({props:e,name:\"MuiPickersSlideTransition\"}),{children:r,className:i,reduceAnimations:o,transKey:a}=n,s=(0,At.A)(n,xY),l=(e=>{const{classes:t,slideDirection:n}=e,r={root:[\"root\"],exit:[\"slideExit\"],enterActive:[\"slideEnterActive\"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return(0,Rt.A)(r,SY,t)})(n),c=Dr();if(o)return(0,Kt.jsx)(\"div\",{className:(0,We.A)(l.root,i),children:r});const d={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return(0,Kt.jsx)(AY,{className:(0,We.A)(l.root,i),childFactory:e=>t.cloneElement(e,{classNames:d}),role:\"presentation\",children:(0,Kt.jsx)(CY,(0,Tt.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:d},s,{children:r}),a)})}),{name:\"MuiDayCalendar\",slot:\"SlideTransition\",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),FY=(0,Ot.Ay)(\"div\",{name:\"MuiDayCalendar\",slot:\"MonthContainer\",overridesResolver:(e,t)=>t.monthContainer})({overflow:\"hidden\"}),_Y=(0,Ot.Ay)(\"div\",{name:\"MuiDayCalendar\",slot:\"WeekContainer\",overridesResolver:(e,t)=>t.weekContainer})({margin:\"2px 0\",display:\"flex\",justifyContent:\"center\"});function zY(e){let{parentProps:n,day:r,focusableDay:i,selectedDays:o,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,c=(0,At.A)(e,DY);const{disabled:d,disableHighlightToday:u,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:p,slots:g,slotProps:f,timezone:m}=n,v=DH(),y=OH(m),b=null!==i&&v.isSameDay(r,i),w=o.some((e=>v.isSameDay(e,r))),C=v.isSameDay(r,y),S=g?.day??vY,E=Xn({elementType:S,externalSlotProps:f?.day,additionalProps:(0,Tt.A)({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:\"gridcell\",isAnimating:h,\"data-timestamp\":v.toJsDate(r).valueOf()},c),ownerState:(0,Tt.A)({},n,{day:r,selected:w})}),x=(0,At.A)(E,RY),A=t.useMemo((()=>d||a(r)),[d,a,r]),T=t.useMemo((()=>v.getMonth(r)!==s),[v,r,s]),D=t.useMemo((()=>{const e=v.startOfMonth(v.setMonth(r,s));return p?v.isSameDay(r,v.startOfWeek(e)):v.isSameDay(r,e)}),[s,r,p,v]),R=t.useMemo((()=>{const e=v.endOfMonth(v.setMonth(r,s));return p?v.isSameDay(r,v.endOfWeek(e)):v.isSameDay(r,e)}),[s,r,p,v]);return(0,Kt.jsx)(S,(0,Tt.A)({},x,{day:r,disabled:A,autoFocus:l&&b,today:C,outsideCurrentMonth:T,isFirstVisibleCell:D,isLastVisibleCell:R,selected:w,tabIndex:b?0:-1,\"aria-selected\":w,\"aria-current\":C?\"date\":void 0}))}function GY(e){const n=(0,It.A)({props:e,name:\"MuiDayCalendar\"}),r=DH(),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:u,readOnly:h,reduceAnimations:p,renderLoading:g=(()=>(0,Kt.jsx)(\"span\",{children:\"...\"})),slideDirection:f,TransitionProps:m,disablePast:v,disableFuture:y,minDate:b,maxDate:w,shouldDisableDate:C,shouldDisableMonth:S,shouldDisableYear:E,dayOfWeekFormatter:x=(e=>r.format(e,\"weekdayShort\").charAt(0).toUpperCase()),hasFocus:A,onFocusedViewChange:T,gridLabelId:D,displayWeekNumber:R,fixedWeekNumber:M,autoFocus:O,timezone:k}=n,I=OH(k),N=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],header:[\"header\"],weekDayLabel:[\"weekDayLabel\"],loadingContainer:[\"loadingContainer\"],slideTransition:[\"slideTransition\"],monthContainer:[\"monthContainer\"],weekContainer:[\"weekContainer\"],weekNumberLabel:[\"weekNumberLabel\"],weekNumber:[\"weekNumber\"]},TY,t)})(n),P=\"rtl\"===Dr().direction,L=iY({shouldDisableDate:C,shouldDisableMonth:S,shouldDisableYear:E,minDate:b,maxDate:w,disablePast:v,disableFuture:y,timezone:k}),F=MH(),[_,z]=(0,HU.A)({name:\"DayCalendar\",state:\"hasFocus\",controlled:A,default:O??!1}),[G,V]=t.useState((()=>l||I)),B=(0,Jn.A)((e=>{h||d(e)})),H=e=>{L(e)||(i(e),V(e),T?.(!0),z(!0))},j=(0,Jn.A)(((e,t)=>{switch(e.key){case\"ArrowUp\":H(r.addDays(t,-7)),e.preventDefault();break;case\"ArrowDown\":H(r.addDays(t,7)),e.preventDefault();break;case\"ArrowLeft\":{const n=r.addDays(t,P?1:-1),i=r.addMonths(t,P?1:-1),o=PB({utils:r,date:n,minDate:P?n:r.startOfMonth(i),maxDate:P?r.endOfMonth(i):n,isDateDisabled:L,timezone:k});H(o||n),e.preventDefault();break}case\"ArrowRight\":{const n=r.addDays(t,P?-1:1),i=r.addMonths(t,P?-1:1),o=PB({utils:r,date:n,minDate:P?r.startOfMonth(i):n,maxDate:P?n:r.endOfMonth(i),isDateDisabled:L,timezone:k});H(o||n),e.preventDefault();break}case\"Home\":H(r.startOfWeek(t)),e.preventDefault();break;case\"End\":H(r.endOfWeek(t)),e.preventDefault();break;case\"PageUp\":H(r.addMonths(t,1)),e.preventDefault();break;case\"PageDown\":H(r.addMonths(t,-1)),e.preventDefault()}})),U=(0,Jn.A)(((e,t)=>H(t))),W=(0,Jn.A)(((e,t)=>{_&&r.isSameDay(G,t)&&T?.(!1)})),$=r.getMonth(a),Y=r.getYear(a),K=t.useMemo((()=>s.filter((e=>!!e)).map((e=>r.startOfDay(e)))),[r,s]),q=`${Y}-${$}`,Q=t.useMemo((()=>t.createRef()),[q]),X=r.startOfWeek(I),Z=t.useMemo((()=>{const e=r.startOfMonth(a),t=r.endOfMonth(a);return L(G)||r.isAfterDay(G,t)||r.isBeforeDay(G,e)?PB({utils:r,date:G,minDate:e,maxDate:t,disablePast:v,disableFuture:y,isDateDisabled:L,timezone:k}):G}),[a,y,v,G,L,r,k]),J=t.useMemo((()=>{const e=r.setTimezone(a,k),t=r.getWeekArray(e);let n=r.addMonths(e,1);for(;M&&t.length<M;){const e=r.getWeekArray(n),i=r.isSameDay(t[t.length-1][0],e[0][0]);e.slice(i?1:0).forEach((e=>{t.length<M&&t.push(e)})),n=r.addMonths(n,1)}return t}),[a,M,r,k]);return(0,Kt.jsxs)(MY,{role:\"grid\",\"aria-labelledby\":D,className:N.root,children:[(0,Kt.jsxs)(OY,{role:\"row\",className:N.header,children:[R&&(0,Kt.jsx)(IY,{variant:\"caption\",role:\"columnheader\",\"aria-label\":F.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:F.calendarWeekNumberHeaderText}),HB(r,I).map(((e,t)=>(0,Kt.jsx)(kY,{variant:\"caption\",role:\"columnheader\",\"aria-label\":r.format(r.addDays(X,t),\"weekday\"),className:N.weekDayLabel,children:x(e)},t.toString())))]}),c?(0,Kt.jsx)(PY,{className:N.loadingContainer,children:g()}):(0,Kt.jsx)(LY,(0,Tt.A)({transKey:q,onExited:u,reduceAnimations:p,slideDirection:f,className:(0,We.A)(o,N.slideTransition)},m,{nodeRef:Q,children:(0,Kt.jsx)(FY,{ref:Q,role:\"rowgroup\",className:N.monthContainer,children:J.map(((e,t)=>(0,Kt.jsxs)(_Y,{role:\"row\",className:N.weekContainer,\"aria-rowindex\":t+1,children:[R&&(0,Kt.jsx)(NY,{className:N.weekNumber,role:\"rowheader\",\"aria-label\":F.calendarWeekNumberAriaLabelText(r.getWeekNumber(e[0])),children:F.calendarWeekNumberText(r.getWeekNumber(e[0]))}),e.map(((e,t)=>(0,Kt.jsx)(zY,{parentProps:n,day:e,selectedDays:K,focusableDay:Z,onKeyDown:j,onFocus:U,onBlur:W,onDaySelect:B,isDateDisabled:L,currentMonthNumber:$,isViewFocused:_,\"aria-colindex\":t+1},e.toString())))]},`week-${e[0]}`)))})}))]})}function VY(e){return(0,un.Ay)(\"MuiPickersMonth\",e)}const BY=(0,qt.A)(\"MuiPickersMonth\",[\"root\",\"monthButton\",\"disabled\",\"selected\"]),HY=[\"autoFocus\",\"children\",\"disabled\",\"selected\",\"value\",\"tabIndex\",\"onClick\",\"onKeyDown\",\"onFocus\",\"onBlur\",\"aria-current\",\"aria-label\",\"monthsPerRow\"],jY=(0,Ot.Ay)(\"div\",{name:\"MuiPickersMonth\",slot:\"Root\",overridesResolver:(e,t)=>[t.root]})({display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexBasis:\"33.3%\",variants:[{props:{monthsPerRow:4},style:{flexBasis:\"25%\"}}]}),UY=(0,Ot.Ay)(\"button\",{name:\"MuiPickersMonth\",slot:\"MonthButton\",overridesResolver:(e,t)=>[t.monthButton,{[`&.${BY.disabled}`]:t.disabled},{[`&.${BY.selected}`]:t.selected}]})((({theme:e})=>(0,Tt.A)({color:\"unset\",backgroundColor:\"transparent\",border:0,outline:0},e.typography.subtitle1,{margin:\"8px 0\",height:36,width:72,borderRadius:18,cursor:\"pointer\",\"&:focus\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.action.active,e.palette.action.hoverOpacity)},\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.action.active,e.palette.action.hoverOpacity)},\"&:disabled\":{cursor:\"auto\",pointerEvents:\"none\"},[`&.${BY.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${BY.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,\"&:focus, &:hover\":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),WY=t.memo((function(e){const n=(0,It.A)({props:e,name:\"MuiPickersMonth\"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:c,onKeyDown:d,onFocus:u,onBlur:h,\"aria-current\":p,\"aria-label\":g}=n,f=(0,At.A)(n,HY),m=t.useRef(null),v=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:[\"root\"],monthButton:[\"monthButton\",t&&\"disabled\",n&&\"selected\"]};return(0,Rt.A)(i,VY,r)})(n);return(0,gr.A)((()=>{r&&m.current?.focus()}),[r]),(0,Kt.jsx)(jY,(0,Tt.A)({className:v.root,ownerState:n},f,{children:(0,Kt.jsx)(UY,{ref:m,disabled:o,type:\"button\",role:\"radio\",tabIndex:o?-1:l,\"aria-current\":p,\"aria-checked\":a,\"aria-label\":g,onClick:e=>c(e,s),onKeyDown:e=>d(e,s),onFocus:e=>u(e,s),onBlur:e=>h(e,s),className:v.monthButton,ownerState:n,children:i})}))}));function $Y(e){return(0,un.Ay)(\"MuiMonthCalendar\",e)}(0,qt.A)(\"MuiMonthCalendar\",[\"root\"]);const YY=[\"className\",\"value\",\"defaultValue\",\"referenceDate\",\"disabled\",\"disableFuture\",\"disablePast\",\"maxDate\",\"minDate\",\"onChange\",\"shouldDisableMonth\",\"readOnly\",\"disableHighlightToday\",\"autoFocus\",\"onMonthFocus\",\"hasFocus\",\"onFocusedViewChange\",\"monthsPerRow\",\"timezone\",\"gridLabelId\"],KY=(0,Ot.Ay)(\"div\",{name:\"MuiMonthCalendar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexWrap:\"wrap\",alignContent:\"stretch\",padding:\"0 4px\",width:AW,boxSizing:\"border-box\"}),qY=t.forwardRef((function(e,n){const r=function(e,t){const n=DH(),r=RH(),i=(0,It.A)({props:e,name:\"MuiMonthCalendar\"});return(0,Tt.A)({disableFuture:!1,disablePast:!1},i,{minDate:LB(n,i.minDate,r.minDate),maxDate:LB(n,i.maxDate,r.maxDate)})}(e),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:d,maxDate:u,minDate:h,onChange:p,shouldDisableMonth:g,readOnly:f,autoFocus:m=!1,onMonthFocus:v,hasFocus:y,onFocusedViewChange:b,monthsPerRow:w=3,timezone:C,gridLabelId:S}=r,E=(0,At.A)(r,YY),{value:x,handleValueChange:A,timezone:T}=UU({name:\"MonthCalendar\",timezone:C,value:o,defaultValue:a,onChange:p,valueManager:yH}),D=OH(T),R=(0,kn.A)(),M=DH(),O=t.useMemo((()=>yH.getInitialReferenceValue({value:x,utils:M,props:r,timezone:T,referenceDate:s,granularity:XB.month})),[]),k=r,I=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},$Y,t)})(k),N=t.useMemo((()=>M.getMonth(D)),[M,D]),P=t.useMemo((()=>null!=x?M.getMonth(x):null),[x,M]),[L,F]=t.useState((()=>P||M.getMonth(O))),[_,z]=(0,HU.A)({name:\"MonthCalendar\",state:\"hasFocus\",controlled:y,default:m??!1}),G=(0,Jn.A)((e=>{z(e),b&&b(e)})),V=t.useCallback((e=>{const t=M.startOfMonth(d&&M.isAfter(D,h)?D:h),n=M.startOfMonth(c&&M.isBefore(D,u)?D:u),r=M.startOfMonth(e);return!!M.isBefore(r,t)||!!M.isAfter(r,n)||!!g&&g(r)}),[c,d,u,h,D,g,M]),B=(0,Jn.A)(((e,t)=>{if(f)return;const n=M.setMonth(x??O,t);A(n)})),H=(0,Jn.A)((e=>{V(M.setMonth(x??O,e))||(F(e),G(!0),v&&v(e))}));t.useEffect((()=>{F((e=>null!==P&&e!==P?P:e))}),[P]);const j=(0,Jn.A)(((e,t)=>{const n=12;switch(e.key){case\"ArrowUp\":H((n+t-3)%n),e.preventDefault();break;case\"ArrowDown\":H((n+t+3)%n),e.preventDefault();break;case\"ArrowLeft\":H((n+t+(\"ltr\"===R.direction?-1:1))%n),e.preventDefault();break;case\"ArrowRight\":H((n+t+(\"ltr\"===R.direction?1:-1))%n),e.preventDefault()}})),U=(0,Jn.A)(((e,t)=>{H(t)})),W=(0,Jn.A)(((e,t)=>{L===t&&G(!1)}));return(0,Kt.jsx)(KY,(0,Tt.A)({ref:n,className:(0,We.A)(I.root,i),ownerState:k,role:\"radiogroup\",\"aria-labelledby\":S},E,{children:FB(M,x??O).map((e=>{const t=M.getMonth(e),n=M.format(e,\"monthShort\"),r=M.format(e,\"month\"),i=t===P,o=l||V(e);return(0,Kt.jsx)(WY,{selected:i,value:t,onClick:B,onKeyDown:j,autoFocus:_&&t===L,disabled:o,tabIndex:t===L?0:-1,onFocus:U,onBlur:W,\"aria-current\":N===t?\"date\":void 0,\"aria-label\":r,monthsPerRow:w,children:n},n)}))}))}));function QY(e){return(0,un.Ay)(\"MuiPickersYear\",e)}const XY=(0,qt.A)(\"MuiPickersYear\",[\"root\",\"yearButton\",\"selected\",\"disabled\"]),ZY=[\"autoFocus\",\"className\",\"children\",\"disabled\",\"selected\",\"value\",\"tabIndex\",\"onClick\",\"onKeyDown\",\"onFocus\",\"onBlur\",\"aria-current\",\"yearsPerRow\"],JY=(0,Ot.Ay)(\"div\",{name:\"MuiPickersYear\",slot:\"Root\",overridesResolver:(e,t)=>[t.root]})({display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexBasis:\"33.3%\",variants:[{props:{yearsPerRow:4},style:{flexBasis:\"25%\"}}]}),eK=(0,Ot.Ay)(\"button\",{name:\"MuiPickersYear\",slot:\"YearButton\",overridesResolver:(e,t)=>[t.yearButton,{[`&.${XY.disabled}`]:t.disabled},{[`&.${XY.selected}`]:t.selected}]})((({theme:e})=>(0,Tt.A)({color:\"unset\",backgroundColor:\"transparent\",border:0,outline:0},e.typography.subtitle1,{margin:\"6px 0\",height:36,width:72,borderRadius:18,cursor:\"pointer\",\"&:focus\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:jG(e.palette.action.active,e.palette.action.focusOpacity)},\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.action.active,e.palette.action.hoverOpacity)},\"&:disabled\":{cursor:\"auto\",pointerEvents:\"none\"},[`&.${XY.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${XY.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,\"&:focus, &:hover\":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),tK=t.memo((function(e){const n=(0,It.A)({props:e,name:\"MuiPickersYear\"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:d,onKeyDown:u,onFocus:h,onBlur:p,\"aria-current\":g}=n,f=(0,At.A)(n,ZY),m=t.useRef(null),v=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:[\"root\"],yearButton:[\"yearButton\",t&&\"disabled\",n&&\"selected\"]};return(0,Rt.A)(i,QY,r)})(n);return t.useEffect((()=>{r&&m.current.focus()}),[r]),(0,Kt.jsx)(JY,(0,Tt.A)({className:(0,We.A)(v.root,i),ownerState:n},f,{children:(0,Kt.jsx)(eK,{ref:m,disabled:a,type:\"button\",role:\"radio\",tabIndex:a?-1:c,\"aria-current\":g,\"aria-checked\":s,onClick:e=>d(e,l),onKeyDown:e=>u(e,l),onFocus:e=>h(e,l),onBlur:e=>p(e,l),className:v.yearButton,ownerState:n,children:o})}))}));function nK(e){return(0,un.Ay)(\"MuiYearCalendar\",e)}(0,qt.A)(\"MuiYearCalendar\",[\"root\"]);const rK=[\"autoFocus\",\"className\",\"value\",\"defaultValue\",\"referenceDate\",\"disabled\",\"disableFuture\",\"disablePast\",\"maxDate\",\"minDate\",\"onChange\",\"readOnly\",\"shouldDisableYear\",\"disableHighlightToday\",\"onYearFocus\",\"hasFocus\",\"onFocusedViewChange\",\"yearsPerRow\",\"timezone\",\"gridLabelId\"],iK=(0,Ot.Ay)(\"div\",{name:\"MuiYearCalendar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",overflowY:\"auto\",height:\"100%\",padding:\"0 4px\",width:AW,maxHeight:280,boxSizing:\"border-box\",position:\"relative\"}),oK=t.forwardRef((function(e,n){const r=function(e,t){const n=DH(),r=RH(),i=(0,It.A)({props:e,name:\"MuiYearCalendar\"});return(0,Tt.A)({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:LB(n,i.minDate,r.minDate),maxDate:LB(n,i.maxDate,r.maxDate)})}(e),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:d,disablePast:u,maxDate:h,minDate:p,onChange:g,readOnly:f,shouldDisableYear:m,onYearFocus:v,hasFocus:y,onFocusedViewChange:b,yearsPerRow:w,timezone:C,gridLabelId:S}=r,E=(0,At.A)(r,rK),{value:x,handleValueChange:A,timezone:T}=UU({name:\"YearCalendar\",timezone:C,value:a,defaultValue:s,onChange:g,valueManager:yH}),D=OH(T),R=(0,kn.A)(),M=DH(),O=t.useMemo((()=>yH.getInitialReferenceValue({value:x,utils:M,props:r,timezone:T,referenceDate:l,granularity:XB.year})),[]),k=r,I=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},nK,t)})(k),N=t.useMemo((()=>M.getYear(D)),[M,D]),P=t.useMemo((()=>null!=x?M.getYear(x):null),[x,M]),[L,F]=t.useState((()=>P||M.getYear(O))),[_,z]=(0,HU.A)({name:\"YearCalendar\",state:\"hasFocus\",controlled:y,default:i??!1}),G=(0,Jn.A)((e=>{z(e),b&&b(e)})),V=t.useCallback((e=>{if(u&&M.isBeforeYear(e,D))return!0;if(d&&M.isAfterYear(e,D))return!0;if(p&&M.isBeforeYear(e,p))return!0;if(h&&M.isAfterYear(e,h))return!0;if(!m)return!1;const t=M.startOfYear(e);return m(t)}),[d,u,h,p,D,m,M]),B=(0,Jn.A)(((e,t)=>{if(f)return;const n=M.setYear(x??O,t);A(n)})),H=(0,Jn.A)((e=>{V(M.setYear(x??O,e))||(F(e),G(!0),v?.(e))}));t.useEffect((()=>{F((e=>null!==P&&e!==P?P:e))}),[P]);const j=(0,Jn.A)(((e,t)=>{switch(e.key){case\"ArrowUp\":H(t-w),e.preventDefault();break;case\"ArrowDown\":H(t+w),e.preventDefault();break;case\"ArrowLeft\":H(t+(\"ltr\"===R.direction?-1:1)),e.preventDefault();break;case\"ArrowRight\":H(t+(\"ltr\"===R.direction?1:-1)),e.preventDefault()}})),U=(0,Jn.A)(((e,t)=>{H(t)})),W=(0,Jn.A)(((e,t)=>{L===t&&G(!1)})),$=t.useRef(null),Y=(0,Wn.A)(n,$);return t.useEffect((()=>{if(i||null===$.current)return;const e=$.current.querySelector('[tabindex=\"0\"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=$.current.clientHeight,o=$.current.scrollTop,a=n+t;t>r||n<o||($.current.scrollTop=a-r/2-t/2)}),[i]),(0,Kt.jsx)(iK,(0,Tt.A)({ref:Y,className:(0,We.A)(I.root,o),ownerState:k,role:\"radiogroup\",\"aria-labelledby\":S},E,{children:M.getYearRange([p,h]).map((e=>{const t=M.getYear(e),n=t===P,r=c||V(e);return(0,Kt.jsx)(tK,{selected:n,value:t,onClick:B,onKeyDown:j,autoFocus:_&&t===L,disabled:r,tabIndex:t===L?0:-1,onFocus:U,onBlur:W,\"aria-current\":N===t?\"date\":void 0,yearsPerRow:w,children:M.format(e,\"year\")},M.format(e,\"year\"))}))}))}));function aK(e){return(0,un.Ay)(\"MuiPickersArrowSwitcher\",e)}(0,qt.A)(\"MuiPickersArrowSwitcher\",[\"root\",\"spacer\",\"button\"]);const sK=[\"children\",\"className\",\"slots\",\"slotProps\",\"isNextDisabled\",\"isNextHidden\",\"onGoToNext\",\"nextLabel\",\"isPreviousDisabled\",\"isPreviousHidden\",\"onGoToPrevious\",\"previousLabel\"],lK=[\"ownerState\"],cK=[\"ownerState\"],dK=(0,Ot.Ay)(\"div\",{name:\"MuiPickersArrowSwitcher\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\"}),uK=(0,Ot.Ay)(\"div\",{name:\"MuiPickersArrowSwitcher\",slot:\"Spacer\",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),hK=(0,Ot.Ay)(gl,{name:\"MuiPickersArrowSwitcher\",slot:\"Button\",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:\"hidden\"}}]}),pK=t.forwardRef((function(e,t){const n=\"rtl\"===Dr().direction,r=(0,It.A)({props:e,name:\"MuiPickersArrowSwitcher\"}),{children:i,className:o,slots:a,slotProps:s,isNextDisabled:l,isNextHidden:c,onGoToNext:d,nextLabel:u,isPreviousDisabled:h,isPreviousHidden:p,onGoToPrevious:g,previousLabel:f}=r,m=(0,At.A)(r,sK),v=r,y=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],spacer:[\"spacer\"],button:[\"button\"]},aK,t)})(v),b={isDisabled:l,isHidden:c,goTo:d,label:u},w={isDisabled:h,isHidden:p,goTo:g,label:f},C=a?.previousIconButton??hK,S=Xn({elementType:C,externalSlotProps:s?.previousIconButton,additionalProps:{size:\"medium\",title:w.label,\"aria-label\":w.label,disabled:w.isDisabled,edge:\"end\",onClick:w.goTo},ownerState:(0,Tt.A)({},v,{hidden:w.isHidden}),className:y.button}),E=a?.nextIconButton??hK,x=Xn({elementType:E,externalSlotProps:s?.nextIconButton,additionalProps:{size:\"medium\",title:b.label,\"aria-label\":b.label,disabled:b.isDisabled,edge:\"start\",onClick:b.goTo},ownerState:(0,Tt.A)({},v,{hidden:b.isHidden}),className:y.button}),A=a?.leftArrowIcon??_W,T=Xn({elementType:A,externalSlotProps:s?.leftArrowIcon,additionalProps:{fontSize:\"inherit\"},ownerState:void 0}),D=(0,At.A)(T,lK),R=a?.rightArrowIcon??zW,M=Xn({elementType:R,externalSlotProps:s?.rightArrowIcon,additionalProps:{fontSize:\"inherit\"},ownerState:void 0}),O=(0,At.A)(M,cK);return(0,Kt.jsxs)(dK,(0,Tt.A)({ref:t,className:(0,We.A)(y.root,o),ownerState:v},m,{children:[(0,Kt.jsx)(C,(0,Tt.A)({},S,{children:n?(0,Kt.jsx)(R,(0,Tt.A)({},O)):(0,Kt.jsx)(A,(0,Tt.A)({},D))})),i?(0,Kt.jsx)(cl,{variant:\"subtitle1\",component:\"span\",children:i}):(0,Kt.jsx)(uK,{className:y.spacer,ownerState:v}),(0,Kt.jsx)(E,(0,Tt.A)({},x,{children:n?(0,Kt.jsx)(A,(0,Tt.A)({},D)):(0,Kt.jsx)(R,(0,Tt.A)({},O))}))]}))}));function gK(e,n,r,i){const o=DH();return{meridiemMode:WB(e,o),handleMeridiemChange:t.useCallback((t=>{const a=null==e?null:YB(e,t,Boolean(n),o);r(a,i??\"partial\")}),[n,e,r,i,o])}}const fK=e=>(0,un.Ay)(\"MuiPickersCalendarHeader\",e),mK=(0,qt.A)(\"MuiPickersCalendarHeader\",[\"root\",\"labelContainer\",\"label\",\"switchViewButton\",\"switchViewIcon\"]),vK=[\"slots\",\"slotProps\",\"currentMonth\",\"disabled\",\"disableFuture\",\"disablePast\",\"maxDate\",\"minDate\",\"onMonthChange\",\"onViewChange\",\"view\",\"reduceAnimations\",\"views\",\"labelId\",\"className\",\"timezone\",\"format\"],yK=[\"ownerState\"],bK=(0,Ot.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",alignItems:\"center\",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),wK=(0,Ot.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"LabelContainer\",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>(0,Tt.A)({display:\"flex\",overflow:\"hidden\",alignItems:\"center\",cursor:\"pointer\",marginRight:\"auto\"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),CK=(0,Ot.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"Label\",overridesResolver:(e,t)=>t.label})({marginRight:6}),SK=(0,Ot.Ay)(gl,{name:\"MuiPickersCalendarHeader\",slot:\"SwitchViewButton\",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:\"auto\",variants:[{props:{view:\"year\"},style:{[`.${mK.switchViewIcon}`]:{transform:\"rotate(180deg)\"}}}]}),EK=(0,Ot.Ay)(FW,{name:\"MuiPickersCalendarHeader\",slot:\"SwitchViewIcon\",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:\"transform\",transition:e.transitions.create(\"transform\"),transform:\"rotate(0deg)\"}))),xK=t.forwardRef((function(e,n){const r=MH(),i=DH(),o=(0,It.A)({props:e,name:\"MuiPickersCalendarHeader\"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:d,disablePast:u,maxDate:h,minDate:p,onMonthChange:g,onViewChange:f,view:m,reduceAnimations:v,views:y,labelId:b,className:w,timezone:C,format:S=`${i.formats.month} ${i.formats.year}`}=o,E=(0,At.A)(o,vK),x=o,A=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],labelContainer:[\"labelContainer\"],label:[\"label\"],switchViewButton:[\"switchViewButton\"],switchViewIcon:[\"switchViewIcon\"]},fK,t)})(o),T=a?.switchViewButton??SK,D=Xn({elementType:T,externalSlotProps:s?.switchViewButton,additionalProps:{size:\"small\",\"aria-label\":r.calendarViewSwitchingButtonAriaLabel(m)},ownerState:x,className:A.switchViewButton}),R=a?.switchViewIcon??EK,M=Xn({elementType:R,externalSlotProps:s?.switchViewIcon,ownerState:void 0,className:A.switchViewIcon}),O=(0,At.A)(M,yK),k=function(e,{disableFuture:n,maxDate:r,timezone:i}){const o=DH();return t.useMemo((()=>{const t=o.date(void 0,i),a=o.startOfMonth(n&&o.isBefore(t,r)?t:r);return!o.isAfter(a,e)}),[n,r,e,o,i])}(l,{disableFuture:d,maxDate:h,timezone:C}),I=function(e,{disablePast:n,minDate:r,timezone:i}){const o=DH();return t.useMemo((()=>{const t=o.date(void 0,i),a=o.startOfMonth(n&&o.isAfter(t,r)?t:r);return!o.isBefore(a,e)}),[n,r,e,o,i])}(l,{disablePast:u,minDate:p,timezone:C});if(1===y.length&&\"year\"===y[0])return null;const N=i.formatByString(l,S);return(0,Kt.jsxs)(bK,(0,Tt.A)({},E,{ownerState:x,className:(0,We.A)(w,A.root),ref:n,children:[(0,Kt.jsxs)(wK,{role:\"presentation\",onClick:()=>{if(1!==y.length&&f&&!c)if(2===y.length)f(y.find((e=>e!==m))||y[0]);else{const e=0!==y.indexOf(m)?0:1;f(y[e])}},ownerState:x,\"aria-live\":\"polite\",className:A.labelContainer,children:[(0,Kt.jsx)(sY,{reduceAnimations:v,transKey:N,children:(0,Kt.jsx)(CK,{id:b,ownerState:x,className:A.label,children:N})}),y.length>1&&!c&&(0,Kt.jsx)(T,(0,Tt.A)({},D,{children:(0,Kt.jsx)(R,(0,Tt.A)({},O))}))]}),(0,Kt.jsx)(Nr,{in:\"day\"===m,children:(0,Kt.jsx)(pK,{slots:a,slotProps:s,onGoToPrevious:()=>g(i.addMonths(l,-1),\"right\"),isPreviousDisabled:I,previousLabel:r.previousMonth,onGoToNext:()=>g(i.addMonths(l,1),\"left\"),isNextDisabled:k,nextLabel:r.nextMonth})})]}))})),AK=(0,Ot.Ay)(\"div\")({overflow:\"hidden\",width:AW,maxHeight:336,display:\"flex\",flexDirection:\"column\",margin:\"0 auto\"}),TK=e=>(0,un.Ay)(\"MuiDateCalendar\",e),DK=((0,qt.A)(\"MuiDateCalendar\",[\"root\",\"viewTransitionContainer\"]),[\"autoFocus\",\"onViewChange\",\"value\",\"defaultValue\",\"referenceDate\",\"disableFuture\",\"disablePast\",\"onChange\",\"onYearChange\",\"onMonthChange\",\"reduceAnimations\",\"shouldDisableDate\",\"shouldDisableMonth\",\"shouldDisableYear\",\"view\",\"views\",\"openTo\",\"className\",\"disabled\",\"readOnly\",\"minDate\",\"maxDate\",\"disableHighlightToday\",\"focusedView\",\"onFocusedViewChange\",\"showDaysOutsideCurrentMonth\",\"fixedWeekNumber\",\"dayOfWeekFormatter\",\"slots\",\"slotProps\",\"loading\",\"renderLoading\",\"displayWeekNumber\",\"yearsPerRow\",\"monthsPerRow\",\"timezone\"]),RK=(0,Ot.Ay)(AK,{name:\"MuiDateCalendar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"column\",height:336}),MK=(0,Ot.Ay)(sY,{name:\"MuiDateCalendar\",slot:\"ViewTransitionContainer\",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),OK=t.forwardRef((function(e,n){const r=DH(),i=(0,ch.A)(),o=function(e,t){const n=DH(),r=RH(),i=LU(),o=(0,It.A)({props:e,name:\"MuiDateCalendar\"});return(0,Tt.A)({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??\"day\",views:o.views??[\"year\",\"day\"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>(0,Kt.jsx)(\"span\",{children:\"...\"})),minDate:LB(n,o.minDate,r.minDate),maxDate:LB(n,o.maxDate,r.maxDate)})}(e),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:d,disableFuture:u,disablePast:h,onChange:p,onYearChange:g,onMonthChange:f,reduceAnimations:m,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:b,view:w,views:C,openTo:S,className:E,disabled:x,readOnly:A,minDate:T,maxDate:D,disableHighlightToday:R,focusedView:M,onFocusedViewChange:O,showDaysOutsideCurrentMonth:k,fixedWeekNumber:I,dayOfWeekFormatter:N,slots:P,slotProps:L,loading:F,renderLoading:_,displayWeekNumber:z,yearsPerRow:G,monthsPerRow:V,timezone:B}=o,H=(0,At.A)(o,DK),{value:j,handleValueChange:U,timezone:W}=UU({name:\"DateCalendar\",timezone:B,value:l,defaultValue:c,onChange:p,valueManager:yH}),{view:$,setView:Y,focusedView:K,setFocusedView:q,goToNextView:Q,setValueAndGoToNextView:X}=WU({view:w,views:C,openTo:S,onChange:U,onViewChange:s,autoFocus:a,focusedView:M,onFocusedViewChange:O}),{referenceDate:Z,calendarState:J,changeFocusedDay:ee,changeMonth:te,handleChangeMonth:ne,isDateDisabled:re,onMonthSwitchingAnimationEnd:ie}=(e=>{const{value:n,referenceDate:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:d,shouldDisableDate:u,timezone:h}=e,p=DH(),g=t.useRef(((e,t,n)=>(r,i)=>{switch(i.type){case\"changeMonth\":return(0,Tt.A)({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case\"finishMonthSwitchingAnimation\":return(0,Tt.A)({},r,{isMonthSwitchingAnimating:!1});case\"changeFocusedDay\":{if(null!=r.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=null!=i.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return(0,Tt.A)({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,r.currentMonth)?\"left\":\"right\"})}default:throw new Error(\"missing support\")}})(Boolean(d),a,p)).current,f=t.useMemo((()=>yH.getInitialReferenceValue({value:n,utils:p,timezone:h,props:e,referenceDate:r,granularity:XB.day})),[]),[m,v]=t.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:f,currentMonth:p.startOfMonth(f),slideDirection:\"left\"}),y=t.useCallback((e=>{v((0,Tt.A)({type:\"changeMonth\"},e)),c&&c(e.newMonth)}),[c]),b=t.useCallback((e=>{const t=e;p.isSameMonth(t,m.currentMonth)||y({newMonth:p.startOfMonth(t),direction:p.isAfterDay(t,m.currentMonth)?\"left\":\"right\"})}),[m.currentMonth,y,p]),w=iY({shouldDisableDate:u,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:h}),C=t.useCallback((()=>{v({type:\"finishMonthSwitchingAnimation\"})}),[]),S=(0,Jn.A)(((e,t)=>{w(e)||v({type:\"changeFocusedDay\",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:f,calendarState:m,changeMonth:b,changeFocusedDay:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:C,handleChangeMonth:y}})({value:j,referenceDate:d,reduceAnimations:m,onMonthChange:f,minDate:T,maxDate:D,shouldDisableDate:v,disablePast:h,disableFuture:u,timezone:W}),oe=x&&j||T,ae=x&&j||D,se=`${i}-grid-label`,le=null!==K,ce=P?.calendarHeader??xK,de=Xn({elementType:ce,externalSlotProps:L?.calendarHeader,additionalProps:{views:C,view:$,currentMonth:J.currentMonth,onViewChange:Y,onMonthChange:(e,t)=>ne({newMonth:e,direction:t}),minDate:oe,maxDate:ae,disabled:x,disablePast:h,disableFuture:u,reduceAnimations:m,timezone:W,labelId:se,slots:P,slotProps:L},ownerState:o}),ue=(0,Jn.A)((e=>{const t=r.startOfMonth(e),n=r.endOfMonth(e),i=re(e)?PB({utils:r,date:e,minDate:r.isBefore(T,t)?t:T,maxDate:r.isAfter(D,n)?n:D,disablePast:h,disableFuture:u,isDateDisabled:re,timezone:W}):e;i?(X(i,\"finish\"),f?.(t)):(Q(),te(t)),ee(i,!0)})),he=(0,Jn.A)((e=>{const t=r.startOfYear(e),n=r.endOfYear(e),i=re(e)?PB({utils:r,date:e,minDate:r.isBefore(T,t)?t:T,maxDate:r.isAfter(D,n)?n:D,disablePast:h,disableFuture:u,isDateDisabled:re,timezone:W}):e;i?(X(i,\"finish\"),g?.(i)):(Q(),te(t)),ee(i,!0)})),pe=(0,Jn.A)((e=>U(e?NB(r,e,j??Z):e,\"finish\",$)));t.useEffect((()=>{null!=j&&r.isValid(j)&&te(j)}),[j]);const ge=o,fe=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],viewTransitionContainer:[\"viewTransitionContainer\"]},TK,t)})(ge),me={disablePast:h,disableFuture:u,maxDate:D,minDate:T},ve={disableHighlightToday:R,readOnly:A,disabled:x,timezone:W,gridLabelId:se},ye=t.useRef($);t.useEffect((()=>{ye.current!==$&&(K===ye.current&&q($,!0),ye.current=$)}),[K,q,$]);const be=t.useMemo((()=>[j]),[j]);return(0,Kt.jsxs)(RK,(0,Tt.A)({ref:n,className:(0,We.A)(fe.root,E),ownerState:ge},H,{children:[(0,Kt.jsx)(ce,(0,Tt.A)({},de)),(0,Kt.jsx)(MK,{reduceAnimations:m,className:fe.viewTransitionContainer,transKey:$,ownerState:ge,children:(0,Kt.jsxs)(\"div\",{children:[\"year\"===$&&(0,Kt.jsx)(oK,(0,Tt.A)({},me,ve,{value:j,onChange:he,shouldDisableYear:b,hasFocus:le,onFocusedViewChange:e=>q(\"year\",e),yearsPerRow:G,referenceDate:Z})),\"month\"===$&&(0,Kt.jsx)(qY,(0,Tt.A)({},me,ve,{hasFocus:le,className:E,value:j,onChange:ue,shouldDisableMonth:y,onFocusedViewChange:e=>q(\"month\",e),monthsPerRow:V,referenceDate:Z})),\"day\"===$&&(0,Kt.jsx)(GY,(0,Tt.A)({},J,me,ve,{onMonthSwitchingAnimationEnd:ie,onFocusedDayChange:ee,reduceAnimations:m,selectedDays:be,onSelectedDaysChange:pe,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:b,hasFocus:le,onFocusedViewChange:e=>q(\"day\",e),showDaysOutsideCurrentMonth:k,fixedWeekNumber:I,dayOfWeekFormatter:N,displayWeekNumber:z,slots:P,slotProps:L,loading:F,renderLoading:_}))]})})]}))})),kK=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minDate:p,maxDate:g,shouldDisableDate:f,shouldDisableMonth:m,shouldDisableYear:v,reduceAnimations:y,onMonthChange:b,monthsPerRow:w,onYearChange:C,yearsPerRow:S,slots:E,slotProps:x,loading:A,renderLoading:T,disableHighlightToday:D,readOnly:R,disabled:M,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:k,sx:I,autoFocus:N,fixedWeekNumber:P,displayWeekNumber:L,timezone:F})=>(0,Kt.jsx)(OK,{view:e,onViewChange:t,views:n.filter(VB),focusedView:r&&VB(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minDate:p,maxDate:g,shouldDisableDate:f,shouldDisableMonth:m,shouldDisableYear:v,reduceAnimations:y,onMonthChange:b,monthsPerRow:w,onYearChange:C,yearsPerRow:S,slots:E,slotProps:x,loading:A,renderLoading:T,disableHighlightToday:D,readOnly:R,disabled:M,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:k,sx:I,autoFocus:N,fixedWeekNumber:P,displayWeekNumber:L,timezone:F}),IK=t.forwardRef((function(e,t){const n=MH(),r=DH(),i=BH(e,\"MuiDesktopDatePicker\"),o=(0,Tt.A)({day:kK,month:kK,year:kK},i.viewRenderers),a=(0,Tt.A)({},i,{viewRenderers:o,format:BB(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:(0,Tt.A)({openPickerIcon:GW,field:rY},i.slots),slotProps:(0,Tt.A)({},i.slotProps,{field:e=>(0,Tt.A)({},qn(i.slotProps?.field,e),e$(i),{ref:t}),toolbar:(0,Tt.A)({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:s}=LW({props:a,valueManager:yH,valueType:\"date\",getOpenDialogAriaText:a.localeText?.openDatePickerDialogue??n.openDatePickerDialogue,validator:HH});return s()}));function NK(e){return(0,un.Ay)(\"MuiDialogContent\",e)}IK.propTypes={autoFocus:MB().bool,className:MB().string,closeOnSelect:MB().bool,dayOfWeekFormatter:MB().func,defaultValue:MB().object,disabled:MB().bool,disableFuture:MB().bool,disableHighlightToday:MB().bool,disableOpenPicker:MB().bool,disablePast:MB().bool,displayWeekNumber:MB().bool,enableAccessibleFieldDOMStructure:MB().any,fixedWeekNumber:MB().number,format:MB().string,formatDensity:MB().oneOf([\"dense\",\"spacious\"]),inputRef:OB,label:MB().node,loading:MB().bool,localeText:MB().object,maxDate:MB().object,minDate:MB().object,monthsPerRow:MB().oneOf([3,4]),name:MB().string,onAccept:MB().func,onChange:MB().func,onClose:MB().func,onError:MB().func,onMonthChange:MB().func,onOpen:MB().func,onSelectedSectionsChange:MB().func,onViewChange:MB().func,onYearChange:MB().func,open:MB().bool,openTo:MB().oneOf([\"day\",\"month\",\"year\"]),orientation:MB().oneOf([\"landscape\",\"portrait\"]),readOnly:MB().bool,reduceAnimations:MB().bool,referenceDate:MB().object,renderLoading:MB().func,selectedSections:MB().oneOfType([MB().oneOf([\"all\",\"day\",\"empty\",\"hours\",\"meridiem\",\"minutes\",\"month\",\"seconds\",\"weekDay\",\"year\"]),MB().number]),shouldDisableDate:MB().func,shouldDisableMonth:MB().func,shouldDisableYear:MB().func,showDaysOutsideCurrentMonth:MB().bool,slotProps:MB().object,slots:MB().object,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object]),timezone:MB().string,value:MB().object,view:MB().oneOf([\"day\",\"month\",\"year\"]),viewRenderers:MB().shape({day:MB().func,month:MB().func,year:MB().func}),views:MB().arrayOf(MB().oneOf([\"day\",\"month\",\"year\"]).isRequired),yearsPerRow:MB().oneOf([3,4])},(0,qt.A)(\"MuiDialogContent\",[\"root\",\"dividers\"]);const PK=(0,qt.A)(\"MuiDialogTitle\",[\"root\"]),LK=[\"className\",\"dividers\"],FK=(0,Ot.Ay)(\"div\",{name:\"MuiDialogContent\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,Tt.A)({flex:\"1 1 auto\",WebkitOverflowScrolling:\"touch\",overflowY:\"auto\",padding:\"20px 24px\"},t.dividers?{padding:\"16px 24px\",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${PK.root} + &`]:{paddingTop:0}}))),_K=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiDialogContent\"}),{className:r,dividers:i=!1}=n,o=(0,At.A)(n,LK),a=(0,Tt.A)({},n,{dividers:i}),s=(e=>{const{classes:t,dividers:n}=e,r={root:[\"root\",n&&\"dividers\"]};return(0,Rt.A)(r,NK,t)})(a);return(0,Kt.jsx)(FK,(0,Tt.A)({className:(0,We.A)(s.root,r),ownerState:a,ref:t},o))}));function zK(e){return(0,un.Ay)(\"MuiDialog\",e)}const GK=(0,qt.A)(\"MuiDialog\",[\"root\",\"scrollPaper\",\"scrollBody\",\"container\",\"paper\",\"paperScrollPaper\",\"paperScrollBody\",\"paperWidthFalse\",\"paperWidthXs\",\"paperWidthSm\",\"paperWidthMd\",\"paperWidthLg\",\"paperWidthXl\",\"paperFullWidth\",\"paperFullScreen\"]),VK=t.createContext({}),BK=[\"aria-describedby\",\"aria-labelledby\",\"BackdropComponent\",\"BackdropProps\",\"children\",\"className\",\"disableEscapeKeyDown\",\"fullScreen\",\"fullWidth\",\"maxWidth\",\"onBackdropClick\",\"onClose\",\"open\",\"PaperComponent\",\"PaperProps\",\"scroll\",\"TransitionComponent\",\"transitionDuration\",\"TransitionProps\"],HK=(0,Ot.Ay)(_r,{name:\"MuiDialog\",slot:\"Backdrop\",overrides:(e,t)=>t.backdrop})({zIndex:-1}),jK=(0,Ot.Ay)(jr,{name:\"MuiDialog\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({\"@media print\":{position:\"absolute !important\"}}),UK=(0,Ot.Ay)(\"div\",{name:\"MuiDialog\",slot:\"Container\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,vn.A)(n.scroll)}`]]}})((({ownerState:e})=>(0,Tt.A)({height:\"100%\",\"@media print\":{height:\"auto\"},outline:0},\"paper\"===e.scroll&&{display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},\"body\"===e.scroll&&{overflowY:\"auto\",overflowX:\"hidden\",textAlign:\"center\",\"&::after\":{content:'\"\"',display:\"inline-block\",verticalAlign:\"middle\",height:\"100%\",width:\"0\"}}))),WK=(0,Ot.Ay)(ei,{name:\"MuiDialog\",slot:\"Paper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,vn.A)(n.scroll)}`],t[`paperWidth${(0,vn.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,Tt.A)({margin:32,position:\"relative\",overflowY:\"auto\",\"@media print\":{overflowY:\"visible\",boxShadow:\"none\"}},\"paper\"===t.scroll&&{display:\"flex\",flexDirection:\"column\",maxHeight:\"calc(100% - 64px)\"},\"body\"===t.scroll&&{display:\"inline-block\",verticalAlign:\"middle\",textAlign:\"left\"},!t.maxWidth&&{maxWidth:\"calc(100% - 64px)\"},\"xs\"===t.maxWidth&&{maxWidth:\"px\"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${GK.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:\"calc(100% - 64px)\"}}},t.maxWidth&&\"xs\"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${GK.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:\"calc(100% - 64px)\"}}},t.fullWidth&&{width:\"calc(100% - 64px)\"},t.fullScreen&&{margin:0,width:\"100%\",maxWidth:\"100%\",height:\"100%\",maxHeight:\"none\",borderRadius:0,[`&.${GK.paperScrollBody}`]:{margin:0,maxWidth:\"100%\"}}))),$K=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiDialog\"}),i=Dr(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{\"aria-describedby\":a,\"aria-labelledby\":s,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:f=\"sm\",onBackdropClick:m,onClose:v,open:y,PaperComponent:b=ei,PaperProps:w={},scroll:C=\"paper\",TransitionComponent:S=Nr,transitionDuration:E=o,TransitionProps:x}=r,A=(0,At.A)(r,BK),T=(0,Tt.A)({},r,{disableEscapeKeyDown:h,fullScreen:p,fullWidth:g,maxWidth:f,scroll:C}),D=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:[\"root\"],container:[\"container\",`scroll${(0,vn.A)(n)}`],paper:[\"paper\",`paperScroll${(0,vn.A)(n)}`,`paperWidth${(0,vn.A)(String(r))}`,i&&\"paperFullWidth\",o&&\"paperFullScreen\"]};return(0,Rt.A)(a,zK,t)})(T),R=t.useRef(),M=(0,ch.A)(s),O=t.useMemo((()=>({titleId:M})),[M]);return(0,Kt.jsx)(jK,(0,Tt.A)({className:(0,We.A)(D.root,u),closeAfterTransition:!0,components:{Backdrop:HK},componentsProps:{backdrop:(0,Tt.A)({transitionDuration:E,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:y,ref:n,onClick:e=>{R.current&&(R.current=null,m&&m(e),v&&v(e,\"backdropClick\"))},ownerState:T},A,{children:(0,Kt.jsx)(S,(0,Tt.A)({appear:!0,in:y,timeout:E,role:\"presentation\"},x,{children:(0,Kt.jsx)(UK,{className:(0,We.A)(D.container),onMouseDown:e=>{R.current=e.target===e.currentTarget},ownerState:T,children:(0,Kt.jsx)(WK,(0,Tt.A)({as:b,elevation:24,role:\"dialog\",\"aria-describedby\":a,\"aria-labelledby\":M},w,{className:(0,We.A)(D.paper,w.className),ownerState:T,children:(0,Kt.jsx)(VK.Provider,{value:O,children:d})}))})}))}))})),YK=$K,KK=(0,Ot.Ay)(YK)({[`& .${GK.container}`]:{outline:0},[`& .${GK.paper}`]:{outline:0,minWidth:AW}}),qK=(0,Ot.Ay)(_K)({\"&:first-of-type\":{padding:0}});function QK(e){const{children:t,onDismiss:n,open:r,slots:i,slotProps:o}=e,a=i?.dialog??KK,s=i?.mobileTransition??Nr;return(0,Kt.jsx)(a,(0,Tt.A)({open:r,onClose:n},o?.dialog,{TransitionComponent:s,TransitionProps:o?.mobileTransition,PaperComponent:i?.mobilePaper,PaperProps:o?.mobilePaper,children:(0,Kt.jsx)(qK,{children:t})}))}const XK=[\"props\",\"getOpenDialogAriaText\"],ZK=e=>{let{props:n,getOpenDialogAriaText:r}=e,i=(0,At.A)(e,XK);const{slots:o,slotProps:a,className:s,sx:l,format:c,formatDensity:d,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:p,timezone:g,name:f,label:m,inputRef:v,readOnly:y,disabled:b,localeText:w}=n,C=DH(),S=t.useRef(null),E=(0,ch.A)(),x=a?.toolbar?.hidden??!1,{open:A,actions:T,layoutProps:D,renderCurrentView:R,fieldProps:M}=qU((0,Tt.A)({},i,{props:n,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:\"mobile\"})),O=o.field,k=Xn({elementType:O,externalSlotProps:a?.field,additionalProps:(0,Tt.A)({},M,x&&{id:E},!(b||y)&&{onClick:T.onOpen,onKeyDown:(I=T.onOpen,e=>{\"Enter\"!==e.key&&\" \"!==e.key||(I(e),e.preventDefault(),e.stopPropagation())})},{readOnly:y??!0,disabled:b,className:s,sx:l,format:c,formatDensity:d,enableAccessibleFieldDOMStructure:u,selectedSections:h,onSelectedSectionsChange:p,timezone:g,label:m,name:f},v?{inputRef:v}:{}),ownerState:n});var I;k.inputProps=(0,Tt.A)({},k.inputProps,{\"aria-label\":r(M.value,C)});const N=(0,Tt.A)({textField:o.textField},k.slots),P=o.layout??kW;let L=E;x&&(L=m?`${E}-label`:void 0);const F=(0,Tt.A)({},a,{toolbar:(0,Tt.A)({},a?.toolbar,{titleId:E}),mobilePaper:(0,Tt.A)({\"aria-labelledby\":L},a?.mobilePaper)}),_=(0,Wn.A)(S,k.unstableFieldRef);return{renderPicker:()=>(0,Kt.jsxs)(SH,{localeText:w,children:[(0,Kt.jsx)(O,(0,Tt.A)({},k,{slots:N,slotProps:F,unstableFieldRef:_})),(0,Kt.jsx)(QK,(0,Tt.A)({},T,{open:A,slots:o,slotProps:F,children:(0,Kt.jsx)(P,(0,Tt.A)({},D,F?.layout,{slots:o,slotProps:F,children:R()}))}))]})}},JK=t.forwardRef((function(e,t){const n=MH(),r=DH(),i=BH(e,\"MuiMobileDatePicker\"),o=(0,Tt.A)({day:kK,month:kK,year:kK},i.viewRenderers),a=(0,Tt.A)({},i,{viewRenderers:o,format:BB(r,i,!1),slots:(0,Tt.A)({field:rY},i.slots),slotProps:(0,Tt.A)({},i.slotProps,{field:e=>(0,Tt.A)({},qn(i.slotProps?.field,e),e$(i),{ref:t}),toolbar:(0,Tt.A)({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:s}=ZK({props:a,valueManager:yH,valueType:\"date\",getOpenDialogAriaText:a.localeText?.openDatePickerDialogue??n.openDatePickerDialogue,validator:HH});return s()}));JK.propTypes={autoFocus:MB().bool,className:MB().string,closeOnSelect:MB().bool,dayOfWeekFormatter:MB().func,defaultValue:MB().object,disabled:MB().bool,disableFuture:MB().bool,disableHighlightToday:MB().bool,disableOpenPicker:MB().bool,disablePast:MB().bool,displayWeekNumber:MB().bool,enableAccessibleFieldDOMStructure:MB().any,fixedWeekNumber:MB().number,format:MB().string,formatDensity:MB().oneOf([\"dense\",\"spacious\"]),inputRef:OB,label:MB().node,loading:MB().bool,localeText:MB().object,maxDate:MB().object,minDate:MB().object,monthsPerRow:MB().oneOf([3,4]),name:MB().string,onAccept:MB().func,onChange:MB().func,onClose:MB().func,onError:MB().func,onMonthChange:MB().func,onOpen:MB().func,onSelectedSectionsChange:MB().func,onViewChange:MB().func,onYearChange:MB().func,open:MB().bool,openTo:MB().oneOf([\"day\",\"month\",\"year\"]),orientation:MB().oneOf([\"landscape\",\"portrait\"]),readOnly:MB().bool,reduceAnimations:MB().bool,referenceDate:MB().object,renderLoading:MB().func,selectedSections:MB().oneOfType([MB().oneOf([\"all\",\"day\",\"empty\",\"hours\",\"meridiem\",\"minutes\",\"month\",\"seconds\",\"weekDay\",\"year\"]),MB().number]),shouldDisableDate:MB().func,shouldDisableMonth:MB().func,shouldDisableYear:MB().func,showDaysOutsideCurrentMonth:MB().bool,slotProps:MB().object,slots:MB().object,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object]),timezone:MB().string,value:MB().object,view:MB().oneOf([\"day\",\"month\",\"year\"]),viewRenderers:MB().shape({day:MB().func,month:MB().func,year:MB().func}),views:MB().arrayOf(MB().oneOf([\"day\",\"month\",\"year\"]).isRequired),yearsPerRow:MB().oneOf([3,4])};const eq=[\"desktopModeMediaQuery\"],tq=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiDatePicker\"}),{desktopModeMediaQuery:r=OU}=n,i=(0,At.A)(n,eq);return DB(r,{defaultMatches:!0})?(0,Kt.jsx)(IK,(0,Tt.A)({ref:t},i)):(0,Kt.jsx)(JK,(0,Tt.A)({ref:t},i))})),nq=({adapter:e,value:t,props:n})=>{if(null===t)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:s=!1,disablePast:l,disableFuture:c,timezone:d}=n,u=e.utils.date(void 0,d),h=qB(s,e.utils);switch(!0){case!e.utils.isValid(t):return\"invalidDate\";case Boolean(r&&h(r,t)):return\"minTime\";case Boolean(i&&h(t,i)):return\"maxTime\";case Boolean(c&&e.utils.isAfter(t,u)):return\"disableFuture\";case Boolean(l&&e.utils.isBefore(t,u)):return\"disablePast\";case Boolean(a&&a(t,\"hours\")):return\"shouldDisableTime-hours\";case Boolean(a&&a(t,\"minutes\")):return\"shouldDisableTime-minutes\";case Boolean(a&&a(t,\"seconds\")):return\"shouldDisableTime-seconds\";case Boolean(o&&e.utils.getMinutes(t)%o!=0):return\"minutesStep\";default:return null}},rq=[\"slots\",\"slotProps\",\"InputProps\",\"inputProps\"],iq=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiTimeField\"}),{slots:r,slotProps:i,InputProps:o,inputProps:a}=n,s=(0,At.A)(n,rq),l=n,c=r?.textField??(e.enableAccessibleFieldDOMStructure?X$:aT),d=Xn({elementType:c,externalSlotProps:i?.textField,externalForwardedProps:s,ownerState:l,additionalProps:{ref:t}});d.inputProps=(0,Tt.A)({},a,d.inputProps),d.InputProps=(0,Tt.A)({},o,d.InputProps);const u=(e=>{const t=(e=>{const t=DH(),n=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return(0,Tt.A)({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??n})})(e),{forwardedProps:n,internalProps:r}=n$(t,\"time\");return qW({forwardedProps:n,internalProps:r,valueManager:yH,fieldValueManager:bH,validator:nq,valueType:\"time\"})})(d),h=tY(u),p=o$((0,Tt.A)({},h,{slots:r,slotProps:i}));return(0,Kt.jsx)(c,(0,Tt.A)({},p))}));function oq(e){return(0,un.Ay)(\"MuiPickersToolbarText\",e)}const aq=(0,qt.A)(\"MuiPickersToolbarText\",[\"root\",\"selected\"]),sq=[\"className\",\"selected\",\"value\"],lq=(0,Ot.Ay)(cl,{name:\"MuiPickersToolbarText\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`&.${aq.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create(\"color\"),color:(e.vars||e).palette.text.secondary,[`&.${aq.selected}`]:{color:(e.vars||e).palette.text.primary}}))),cq=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPickersToolbarText\"}),{className:r,value:i}=n,o=(0,At.A)(n,sq),a=(e=>{const{classes:t,selected:n}=e,r={root:[\"root\",n&&\"selected\"]};return(0,Rt.A)(r,oq,t)})(n);return(0,Kt.jsx)(lq,(0,Tt.A)({ref:t,className:(0,We.A)(r,a.root),component:\"span\"},o,{children:i}))})),dq=[\"align\",\"className\",\"selected\",\"typographyClassName\",\"value\",\"variant\",\"width\"],uq=(0,Ot.Ay)(Dn,{name:\"MuiPickersToolbarButton\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:\"none\"}),hq=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiPickersToolbarButton\"}),{align:r,className:i,selected:o,typographyClassName:a,value:s,variant:l,width:c}=n,d=(0,At.A)(n,dq),u=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},kH,t)})(n);return(0,Kt.jsx)(uq,(0,Tt.A)({variant:\"text\",ref:t,className:(0,We.A)(i,u.root)},c?{sx:{width:c}}:{},d,{children:(0,Kt.jsx)(cq,{align:r,className:a,variant:l,value:s,selected:o})}))}));function pq(e){return(0,un.Ay)(\"MuiTimePickerToolbar\",e)}const gq=(0,qt.A)(\"MuiTimePickerToolbar\",[\"root\",\"separator\",\"hourMinuteLabel\",\"hourMinuteLabelLandscape\",\"hourMinuteLabelReverse\",\"ampmSelection\",\"ampmLandscape\",\"ampmLabel\"]),fq=[\"ampm\",\"ampmInClock\",\"value\",\"isLandscape\",\"onChange\",\"view\",\"onViewChange\",\"views\",\"disabled\",\"readOnly\",\"className\"],mq=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:[\"root\"],separator:[\"separator\"],hourMinuteLabel:[\"hourMinuteLabel\",n&&\"hourMinuteLabelLandscape\",\"rtl\"===t.direction&&\"hourMinuteLabelReverse\"],ampmSelection:[\"ampmSelection\",n&&\"ampmLandscape\"],ampmLabel:[\"ampmLabel\"]};return(0,Rt.A)(i,pq,r)},vq=(0,Ot.Ay)(LH,{name:\"MuiTimePickerToolbar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),yq=(0,Ot.Ay)(cq,{name:\"MuiTimePickerToolbar\",slot:\"Separator\",overridesResolver:(e,t)=>t.separator})({outline:0,margin:\"0 4px 0 2px\",cursor:\"default\"}),bq=(0,Ot.Ay)(\"div\",{name:\"MuiTimePickerToolbar\",slot:\"HourMinuteLabel\",overridesResolver:(e,t)=>[{[`&.${gq.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${gq.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})((({theme:e})=>(0,Tt.A)({display:\"flex\",justifyContent:\"flex-end\",alignItems:\"flex-end\"},\"rtl\"===e.direction&&{flexDirection:\"row-reverse\"},{variants:[{props:{isLandscape:!0},style:{marginTop:\"auto\"}}]})));bq.propTypes={as:MB().elementType,ownerState:MB().object.isRequired,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object])};const wq=(0,Ot.Ay)(\"div\",{name:\"MuiTimePickerToolbar\",slot:\"AmPmSelection\",overridesResolver:(e,t)=>[{[`.${gq.ampmLabel}`]:t.ampmLabel},{[`&.${gq.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:\"flex\",flexDirection:\"column\",marginRight:\"auto\",marginLeft:12,[`& .${gq.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:\"4px 0 auto\",flexDirection:\"row\",justifyContent:\"space-around\",flexBasis:\"100%\"}}]});function Cq(e){const t=(0,It.A)({props:e,name:\"MuiTimePickerToolbar\"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:c,disabled:d,readOnly:u,className:h}=t,p=(0,At.A)(t,fq),g=DH(),f=MH(),m=Dr(),v=Boolean(n&&!r&&c.includes(\"hours\")),{meridiemMode:y,handleMeridiemChange:b}=gK(i,n,a),w=t,C=mq((0,Tt.A)({},w,{theme:m})),S=(0,Kt.jsx)(yq,{tabIndex:-1,value:\":\",variant:\"h3\",selected:!1,className:C.separator});return(0,Kt.jsxs)(vq,(0,Tt.A)({landscapeDirection:\"row\",toolbarTitle:f.timePickerToolbarTitle,isLandscape:o,ownerState:w,className:(0,We.A)(C.root,h)},p,{children:[(0,Kt.jsxs)(bq,{className:C.hourMinuteLabel,ownerState:w,children:[RU(c,\"hours\")&&(0,Kt.jsx)(hq,{tabIndex:-1,variant:\"h3\",onClick:()=>l(\"hours\"),selected:\"hours\"===s,value:i?(E=i,n?g.format(E,\"hours12h\"):g.format(E,\"hours24h\")):\"--\"}),RU(c,[\"hours\",\"minutes\"])&&S,RU(c,\"minutes\")&&(0,Kt.jsx)(hq,{tabIndex:-1,variant:\"h3\",onClick:()=>l(\"minutes\"),selected:\"minutes\"===s,value:i?g.format(i,\"minutes\"):\"--\"}),RU(c,[\"minutes\",\"seconds\"])&&S,RU(c,\"seconds\")&&(0,Kt.jsx)(hq,{variant:\"h3\",onClick:()=>l(\"seconds\"),selected:\"seconds\"===s,value:i?g.format(i,\"seconds\"):\"--\"})]}),v&&(0,Kt.jsxs)(wq,{className:C.ampmSelection,ownerState:w,children:[(0,Kt.jsx)(hq,{disableRipple:!0,variant:\"subtitle2\",selected:\"am\"===y,typographyClassName:C.ampmLabel,value:zB(g,\"am\"),onClick:u?void 0:()=>b(\"am\"),disabled:d}),(0,Kt.jsx)(hq,{disableRipple:!0,variant:\"subtitle2\",selected:\"pm\"===y,typographyClassName:C.ampmLabel,value:zB(g,\"pm\"),onClick:u?void 0:()=>b(\"pm\"),disabled:d})]})]}));var E}function Sq(e,n){const r=DH(),i=(0,It.A)({props:e,name:n}),o=i.ampm??r.is12HourCycleInCurrentLocale(),a=t.useMemo((()=>null==i.localeText?.toolbarTitle?i.localeText:(0,Tt.A)({},i.localeText,{timePickerToolbarTitle:i.localeText.toolbarTitle})),[i.localeText]);return(0,Tt.A)({},i,{ampm:o,localeText:a},IB({views:i.views,openTo:i.openTo,defaultViews:[\"hours\",\"minutes\"],defaultOpenTo:\"hours\"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,slots:(0,Tt.A)({toolbar:Cq},i.slots),slotProps:(0,Tt.A)({},i.slotProps,{toolbar:(0,Tt.A)({ampm:o,ampmInClock:i.ampmInClock},i.slotProps?.toolbar)})})}function Eq(e){return(0,un.Ay)(\"MuiTimeClock\",e)}wq.propTypes={as:MB().elementType,ownerState:MB().object.isRequired,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object])},(0,qt.A)(\"MuiTimeClock\",[\"root\",\"arrowSwitcher\"]);const xq=220,Aq=36,Tq=xq/2,Dq=xq/2,Rq=Tq-Tq,Mq=0-Dq,Oq=(e,t,n)=>{const r=t-Tq,i=n-Dq;let o=(Math.atan2(Rq,Mq)-Math.atan2(r,i))*(180/Math.PI);o=Math.round(o/e)*e,o%=360;const a=r**2+i**2;return{value:Math.floor(o/e)||0,distance:Math.sqrt(a)}};function kq(e){return(0,un.Ay)(\"MuiClockPointer\",e)}(0,qt.A)(\"MuiClockPointer\",[\"root\",\"thumb\"]);const Iq=[\"className\",\"hasSelected\",\"isInner\",\"type\",\"viewValue\"],Nq=e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],thumb:[\"thumb\"]},kq,t)},Pq=(0,Ot.Ay)(\"div\",{name:\"MuiClockPointer\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:\"absolute\",left:\"calc(50% - 1px)\",bottom:\"50%\",transformOrigin:\"center bottom 0px\",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create([\"transform\",\"height\"])}}]}))),Lq=(0,Ot.Ay)(\"div\",{name:\"MuiClockPointer\",slot:\"Thumb\",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:\"50%\",position:\"absolute\",top:-21,left:\"calc(50% - 18px)\",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:\"content-box\",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]})));function Fq(e){const n=(0,It.A)({props:e,name:\"MuiClockPointer\"}),{className:r,isInner:i,type:o,viewValue:a}=n,s=(0,At.A)(n,Iq),l=t.useRef(o);t.useEffect((()=>{l.current=o}),[o]);const c=(0,Tt.A)({},n,{shouldAnimate:l.current!==o}),d=Nq(c);return(0,Kt.jsx)(Pq,(0,Tt.A)({style:(()=>{let e=360/(\"hours\"===o?12:60)*a;return\"hours\"===o&&a>12&&(e-=360),{height:Math.round((i?.26:.4)*xq),transform:`rotateZ(${e}deg)`}})(),className:(0,We.A)(r,d.root),ownerState:c},s,{children:(0,Kt.jsx)(Lq,{ownerState:c,className:d.thumb})}))}function _q(e){return(0,un.Ay)(\"MuiClock\",e)}(0,qt.A)(\"MuiClock\",[\"root\",\"clock\",\"wrapper\",\"squareMask\",\"pin\",\"amButton\",\"pmButton\",\"meridiemText\"]);const zq=(0,Ot.Ay)(\"div\",{name:\"MuiClock\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:\"flex\",justifyContent:\"center\",alignItems:\"center\",margin:e.spacing(2)}))),Gq=(0,Ot.Ay)(\"div\",{name:\"MuiClock\",slot:\"Clock\",overridesResolver:(e,t)=>t.clock})({backgroundColor:\"rgba(0,0,0,.07)\",borderRadius:\"50%\",height:220,width:220,flexShrink:0,position:\"relative\",pointerEvents:\"none\"}),Vq=(0,Ot.Ay)(\"div\",{name:\"MuiClock\",slot:\"Wrapper\",overridesResolver:(e,t)=>t.wrapper})({\"&:focus\":{outline:\"none\"}}),Bq=(0,Ot.Ay)(\"div\",{name:\"MuiClock\",slot:\"SquareMask\",overridesResolver:(e,t)=>t.squareMask})({width:\"100%\",height:\"100%\",position:\"absolute\",pointerEvents:\"auto\",outline:0,touchAction:\"none\",userSelect:\"none\",variants:[{props:{disabled:!1},style:{\"@media (pointer: fine)\":{cursor:\"pointer\",borderRadius:\"50%\"},\"&:active\":{cursor:\"move\"}}}]}),Hq=(0,Ot.Ay)(\"div\",{name:\"MuiClock\",slot:\"Pin\",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:\"50%\",backgroundColor:(e.vars||e).palette.primary.main,position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\"}))),jq=(0,Ot.Ay)(gl,{name:\"MuiClock\",slot:\"AmButton\",overridesResolver:(e,t)=>t.amButton})((({theme:e})=>({zIndex:1,position:\"absolute\",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Aq,variants:[{props:{meridiemMode:\"am\"},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,\"&:hover\":{backgroundColor:(e.vars||e).palette.primary.light}}}]}))),Uq=(0,Ot.Ay)(gl,{name:\"MuiClock\",slot:\"PmButton\",overridesResolver:(e,t)=>t.pmButton})((({theme:e})=>({zIndex:1,position:\"absolute\",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Aq,variants:[{props:{meridiemMode:\"pm\"},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,\"&:hover\":{backgroundColor:(e.vars||e).palette.primary.light}}}]}))),Wq=(0,Ot.Ay)(cl,{name:\"MuiClock\",slot:\"meridiemText\",overridesResolver:(e,t)=>t.meridiemText})({overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"});function $q(e){const n=(0,It.A)({props:e,name:\"MuiClock\"}),{ampm:r,ampmInClock:i,autoFocus:o,children:a,value:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:d,minutesStep:u=1,onChange:h,selectedId:p,type:g,viewValue:f,disabled:m=!1,readOnly:v,className:y}=n,b=n,w=DH(),C=MH(),S=t.useRef(!1),E=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],clock:[\"clock\"],wrapper:[\"wrapper\"],squareMask:[\"squareMask\"],pin:[\"pin\"],amButton:[\"amButton\"],pmButton:[\"pmButton\"],meridiemText:[\"meridiemText\"]},_q,t)})(b),x=c(f,g),A=!r&&\"hours\"===g&&(f<1||f>12),T=(e,t)=>{m||v||c(e,g)||h(e,t)},D=(e,t)=>{let{offsetX:n,offsetY:i}=e;if(void 0===n){const t=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o=\"seconds\"===g||\"minutes\"===g?((e,t,n=1)=>{const r=6*n;let{value:i}=Oq(r,e,t);return i=i*n%60,i})(n,i,u):((e,t,n)=>{const{value:r,distance:i}=Oq(30,e,t);let o=r||12;return n?o%=12:i<xq/2-Aq&&(o+=12,o%=24),o})(n,i,Boolean(r));T(o,t)},R=t.useMemo((()=>\"hours\"===g||f%5==0),[g,f]),M=\"minutes\"===g?u:1,O=t.useRef(null);return(0,gr.A)((()=>{o&&O.current.focus()}),[o]),(0,Kt.jsxs)(zq,{className:(0,We.A)(y,E.root),children:[(0,Kt.jsxs)(Gq,{className:E.clock,children:[(0,Kt.jsx)(Bq,{onTouchMove:e=>{S.current=!0,D(e,\"shallow\")},onTouchEnd:e=>{S.current&&(D(e,\"finish\"),S.current=!1)},onMouseUp:e=>{S.current&&(S.current=!1),D(e.nativeEvent,\"finish\")},onMouseMove:e=>{e.buttons>0&&D(e.nativeEvent,\"shallow\")},ownerState:{disabled:m},className:E.squareMask}),!x&&(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(Hq,{className:E.pin}),null!=s&&(0,Kt.jsx)(Fq,{type:g,viewValue:f,isInner:A,hasSelected:R})]}),(0,Kt.jsx)(Vq,{\"aria-activedescendant\":p,\"aria-label\":C.clockLabelText(g,s,w),ref:O,role:\"listbox\",onKeyDown:e=>{if(!S.current)switch(e.key){case\"Home\":T(0,\"partial\"),e.preventDefault();break;case\"End\":T(\"minutes\"===g?59:23,\"partial\"),e.preventDefault();break;case\"ArrowUp\":T(f+M,\"partial\"),e.preventDefault();break;case\"ArrowDown\":T(f-M,\"partial\"),e.preventDefault()}},tabIndex:0,className:E.wrapper,children:a})]}),r&&i&&(0,Kt.jsxs)(t.Fragment,{children:[(0,Kt.jsx)(jq,{onClick:v?void 0:()=>l(\"am\"),disabled:m||null===d,ownerState:b,className:E.amButton,title:zB(w,\"am\"),children:(0,Kt.jsx)(Wq,{variant:\"caption\",className:E.meridiemText,children:zB(w,\"am\")})}),(0,Kt.jsx)(Uq,{disabled:m||null===d,onClick:v?void 0:()=>l(\"pm\"),ownerState:b,className:E.pmButton,title:zB(w,\"pm\"),children:(0,Kt.jsx)(Wq,{variant:\"caption\",className:E.meridiemText,children:zB(w,\"pm\")})})]})]})}function Yq(e){return(0,un.Ay)(\"MuiClockNumber\",e)}const Kq=(0,qt.A)(\"MuiClockNumber\",[\"root\",\"selected\",\"disabled\"]),qq=[\"className\",\"disabled\",\"index\",\"inner\",\"label\",\"selected\"],Qq=(0,Ot.Ay)(\"span\",{name:\"MuiClockNumber\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`&.${Kq.disabled}`]:t.disabled},{[`&.${Kq.selected}`]:t.selected}]})((({theme:e})=>({height:Aq,width:Aq,position:\"absolute\",left:\"calc((100% - 36px) / 2)\",display:\"inline-flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"50%\",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,\"&:focused\":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Kq.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Kq.disabled}`]:{pointerEvents:\"none\",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:(0,Tt.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]})));function Xq(e){const t=(0,It.A)({props:e,name:\"MuiClockNumber\"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=(0,At.A)(t,qq),c=t,d=(e=>{const{classes:t,selected:n,disabled:r}=e,i={root:[\"root\",n&&\"selected\",r&&\"disabled\"]};return(0,Rt.A)(i,Yq,t)})(c),u=i%12/12*Math.PI*2-Math.PI/2,h=(xq-Aq-2)/2*(o?.65:1),p=Math.round(Math.cos(u)*h),g=Math.round(Math.sin(u)*h);return(0,Kt.jsx)(Qq,(0,Tt.A)({className:(0,We.A)(n,d.root),\"aria-disabled\":!!r||void 0,\"aria-selected\":!!s||void 0,role:\"option\",style:{transform:`translate(${p}px, ${g+(xq-Aq)/2}px`},ownerState:c},l,{children:a}))}const Zq=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?12:23,c=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a=\"00\");const l=!e&&(0===t||t>12);a=o.formatNumber(a);const d=c(t);s.push((0,Kt.jsx)(Xq,{id:d?i:void 0,index:t,inner:l,selected:d,disabled:r(t),label:a,\"aria-label\":n(a)},t))}return s},Jq=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o(\"05\")],[10,o(\"10\")],[15,o(\"15\")],[20,o(\"20\")],[25,o(\"25\")],[30,o(\"30\")],[35,o(\"35\")],[40,o(\"40\")],[45,o(\"45\")],[50,o(\"50\")],[55,o(\"55\")],[0,o(\"00\")]].map((([e,o],a)=>{const s=e===t;return(0,Kt.jsx)(Xq,{label:o,id:s?i:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,\"aria-label\":r(o)},e)}))},eQ=({value:e,referenceDate:n,utils:r,props:i,timezone:o})=>{const a=t.useMemo((()=>yH.getInitialReferenceValue({value:e,utils:r,props:i,referenceDate:n,granularity:XB.day,timezone:o,getTodayDate:()=>_B(r,o,\"date\")})),[]);return e??a},tQ=[\"ampm\",\"ampmInClock\",\"autoFocus\",\"slots\",\"slotProps\",\"value\",\"defaultValue\",\"referenceDate\",\"disableIgnoringDatePartForTimeValidation\",\"maxTime\",\"minTime\",\"disableFuture\",\"disablePast\",\"minutesStep\",\"shouldDisableTime\",\"showViewSwitcher\",\"onChange\",\"view\",\"views\",\"openTo\",\"onViewChange\",\"focusedView\",\"onFocusedViewChange\",\"className\",\"disabled\",\"readOnly\",\"timezone\"],nQ=(0,Ot.Ay)(AK,{name:\"MuiTimeClock\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"column\",position:\"relative\"}),rQ=(0,Ot.Ay)(pK,{name:\"MuiTimeClock\",slot:\"ArrowSwitcher\",overridesResolver:(e,t)=>t.arrowSwitcher})({position:\"absolute\",right:12,top:15}),iQ=[\"hours\",\"minutes\"],oQ=t.forwardRef((function(e,n){const r=DH(),i=(0,It.A)({props:e,name:\"MuiTimeClock\"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:d,defaultValue:u,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:g,minTime:f,disableFuture:m,disablePast:v,minutesStep:y=1,shouldDisableTime:b,showViewSwitcher:w,onChange:C,view:S,views:E=iQ,openTo:x,onViewChange:A,focusedView:T,onFocusedViewChange:D,className:R,disabled:M,readOnly:O,timezone:k}=i,I=(0,At.A)(i,tQ),{value:N,handleValueChange:P,timezone:L}=UU({name:\"TimeClock\",timezone:k,value:d,defaultValue:u,onChange:C,valueManager:yH}),F=eQ({value:N,referenceDate:h,utils:r,props:i,timezone:L}),_=MH(),z=OH(L),{view:G,setView:V,previousView:B,nextView:H,setValueAndGoToNextView:j}=WU({view:S,views:E,openTo:x,onViewChange:A,onChange:P,focusedView:T,onFocusedViewChange:D}),{meridiemMode:U,handleMeridiemChange:W}=gK(F,o,j),$=t.useCallback(((e,t)=>{const n=qB(p,r),i=\"hours\"===t||\"minutes\"===t&&E.includes(\"seconds\"),a=({start:e,end:t})=>!(f&&n(f,t)||g&&n(e,g)||m&&n(e,z)||v&&n(z,i?t:e)),s=(e,n=1)=>{if(e%n!=0)return!1;if(b)switch(t){case\"hours\":return!b(r.setHours(F,e),\"hours\");case\"minutes\":return!b(r.setMinutes(F,e),\"minutes\");case\"seconds\":return!b(r.setSeconds(F,e),\"seconds\");default:return!1}return!0};switch(t){case\"hours\":{const t=$B(e,U,o),n=r.setHours(F,t);return!a({start:r.setSeconds(r.setMinutes(n,0),0),end:r.setSeconds(r.setMinutes(n,59),59)})||!s(t)}case\"minutes\":{const t=r.setMinutes(F,e);return!a({start:r.setSeconds(t,0),end:r.setSeconds(t,59)})||!s(e,y)}case\"seconds\":{const t=r.setSeconds(F,e);return!a({start:t,end:t})||!s(e)}default:throw new Error(\"not supported\")}}),[o,F,p,g,U,f,y,b,r,m,v,z,E]),Y=(0,ch.A)(),K=t.useMemo((()=>{switch(G){case\"hours\":{const e=(e,t)=>{const n=$B(e,U,o);j(r.setHours(F,n),t,\"hours\")};return{onChange:e,viewValue:r.getHours(F),children:Zq({value:N,utils:r,ampm:o,onChange:e,getClockNumberText:_.hoursClockNumberText,isDisabled:e=>M||$(e,\"hours\"),selectedId:Y})}}case\"minutes\":{const e=r.getMinutes(F),t=(e,t)=>{j(r.setMinutes(F,e),t,\"minutes\")};return{viewValue:e,onChange:t,children:Jq({utils:r,value:e,onChange:t,getClockNumberText:_.minutesClockNumberText,isDisabled:e=>M||$(e,\"minutes\"),selectedId:Y})}}case\"seconds\":{const e=r.getSeconds(F),t=(e,t)=>{j(r.setSeconds(F,e),t,\"seconds\")};return{viewValue:e,onChange:t,children:Jq({utils:r,value:e,onChange:t,getClockNumberText:_.secondsClockNumberText,isDisabled:e=>M||$(e,\"seconds\"),selectedId:Y})}}default:throw new Error(\"You must provide the type for ClockView\")}}),[G,r,N,o,_.hoursClockNumberText,_.minutesClockNumberText,_.secondsClockNumberText,U,j,F,$,Y,M]),q=i,Q=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],arrowSwitcher:[\"arrowSwitcher\"]},Eq,t)})(q);return(0,Kt.jsxs)(nQ,(0,Tt.A)({ref:n,className:(0,We.A)(Q.root,R),ownerState:q},I,{children:[(0,Kt.jsx)($q,(0,Tt.A)({autoFocus:s??!!T,ampmInClock:a&&E.includes(\"hours\"),value:N,type:G,ampm:o,minutesStep:y,isTimeDisabled:$,meridiemMode:U,handleMeridiemChange:W,selectedId:Y,disabled:M,readOnly:O},K)),w&&(0,Kt.jsx)(rQ,{className:Q.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>V(B),isPreviousDisabled:!B,previousLabel:_.openPreviousView,onGoToNext:()=>V(H),isNextDisabled:!H,nextLabel:_.openNextView,ownerState:q})]}))}));function aQ(e){return(0,un.Ay)(\"MuiDigitalClock\",e)}(0,qt.A)(\"MuiDigitalClock\",[\"root\",\"list\",\"item\"]);const sQ=[\"ampm\",\"timeStep\",\"autoFocus\",\"slots\",\"slotProps\",\"value\",\"defaultValue\",\"referenceDate\",\"disableIgnoringDatePartForTimeValidation\",\"maxTime\",\"minTime\",\"disableFuture\",\"disablePast\",\"minutesStep\",\"shouldDisableTime\",\"onChange\",\"view\",\"openTo\",\"onViewChange\",\"focusedView\",\"onFocusedViewChange\",\"className\",\"disabled\",\"readOnly\",\"views\",\"skipDisabled\",\"timezone\"],lQ=(0,Ot.Ay)(AK,{name:\"MuiDigitalClock\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({overflowY:\"auto\",width:\"100%\",\"@media (prefers-reduced-motion: no-preference)\":{scrollBehavior:\"auto\"},maxHeight:232,variants:[{props:{alreadyRendered:!0},style:{\"@media (prefers-reduced-motion: no-preference)\":{scrollBehavior:\"smooth\"}}}]}),cQ=(0,Ot.Ay)(xh,{name:\"MuiDigitalClock\",slot:\"List\",overridesResolver:(e,t)=>t.list})({padding:0}),dQ=(0,Ot.Ay)(Mg,{name:\"MuiDigitalClock\",slot:\"Item\",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:\"8px 16px\",margin:\"2px 4px\",\"&:first-of-type\":{marginTop:4},\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.primary.main,e.palette.action.hoverOpacity)},\"&.Mui-selected\":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,\"&:focus-visible, &:hover\":{backgroundColor:(e.vars||e).palette.primary.dark}},\"&.Mui-focusVisible\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:jG(e.palette.primary.main,e.palette.action.focusOpacity)}}))),uQ=t.forwardRef((function(e,n){const r=DH(),i=t.useRef(null),o=(0,Wn.A)(n,i),a=(0,It.A)({props:e,name:\"MuiDigitalClock\"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeStep:l=30,autoFocus:c,slots:d,slotProps:u,value:h,defaultValue:p,referenceDate:g,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:m,minTime:v,disableFuture:y,disablePast:b,minutesStep:w=1,shouldDisableTime:C,onChange:S,view:E,openTo:x,onViewChange:A,focusedView:T,onFocusedViewChange:D,className:R,disabled:M,readOnly:O,views:k=[\"hours\"],skipDisabled:I=!1,timezone:N}=a,P=(0,At.A)(a,sQ),{value:L,handleValueChange:F,timezone:_}=UU({name:\"DigitalClock\",timezone:N,value:h,defaultValue:p,onChange:S,valueManager:yH}),z=MH(),G=OH(_),V=t.useMemo((()=>(0,Tt.A)({},a,{alreadyRendered:!!i.current})),[a]),B=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],list:[\"list\"],item:[\"item\"]},aQ,t)})(V),H=d?.digitalClockItem??dQ,j=Xn({elementType:H,externalSlotProps:u?.digitalClockItem,ownerState:{},className:B.item}),U=eQ({value:L,referenceDate:g,utils:r,props:a,timezone:_}),W=(0,Jn.A)((e=>F(e,\"finish\",\"hours\"))),{setValueAndGoToNextView:$}=WU({view:E,views:k,openTo:x,onViewChange:A,onChange:W,focusedView:T,onFocusedViewChange:D}),Y=(0,Jn.A)((e=>{$(e,\"finish\")}));t.useEffect((()=>{if(null===i.current)return;const e=i.current.querySelector('[role=\"listbox\"] [role=\"option\"][tabindex=\"0\"], [role=\"listbox\"] [role=\"option\"][aria-selected=\"true\"]');if(!e)return;const t=e.offsetTop;(c||T)&&e.focus(),i.current.scrollTop=t-4}));const K=t.useCallback((e=>{const t=qB(f,r);return!!(v&&t(v,e)||m&&t(e,m)||y&&t(e,G)||b&&t(G,e))||!!(r.getMinutes(e)%w!=0||C&&C(e,\"hours\"))}),[f,r,v,m,y,G,b,w,C]),q=t.useMemo((()=>{const e=r.startOfDay(U);return[e,...Array.from({length:Math.ceil(1440/l)-1},((t,n)=>r.addMinutes(e,l*(n+1))))]}),[U,l,r]),Q=q.findIndex((e=>r.isEqual(e,U)));return(0,Kt.jsx)(lQ,(0,Tt.A)({ref:o,className:(0,We.A)(B.root,R),ownerState:V},P,{children:(0,Kt.jsx)(cQ,{role:\"listbox\",\"aria-label\":z.timePickerToolbarTitle,className:B.list,children:q.map(((e,t)=>{if(I&&K(e))return null;const n=r.isEqual(e,L),i=r.format(e,s?\"fullTime12h\":\"fullTime24h\"),o=Q===t||-1===Q&&0===t?0:-1;return(0,Kt.jsx)(H,(0,Tt.A)({onClick:()=>!O&&Y(e),selected:n,disabled:M||K(e),disableRipple:O,role:\"option\",\"aria-disabled\":O,\"aria-selected\":n,tabIndex:o},j,{children:i}),i)}))})}))}));function hQ(e){return(0,un.Ay)(\"MuiMultiSectionDigitalClock\",e)}function pQ(e){return(0,un.Ay)(\"MuiMultiSectionDigitalClockSection\",e)}(0,qt.A)(\"MuiMultiSectionDigitalClock\",[\"root\"]),(0,qt.A)(\"MuiMultiSectionDigitalClockSection\",[\"root\",\"item\"]);const gQ=[\"autoFocus\",\"onChange\",\"className\",\"disabled\",\"readOnly\",\"items\",\"active\",\"slots\",\"slotProps\",\"skipDisabled\"],fQ=(0,Ot.Ay)(xh,{name:\"MuiMultiSectionDigitalClockSection\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:\"hidden\",\"@media (prefers-reduced-motion: no-preference)\":{scrollBehavior:\"auto\"},\"@media (pointer: fine)\":{\"&:hover\":{overflowY:\"auto\"}},\"@media (pointer: none), (pointer: coarse)\":{overflowY:\"auto\"},\"&:not(:first-of-type)\":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},\"&::after\":{display:\"block\",content:'\"\"',height:\"calc(100% - 40px - 6px)\"},variants:[{props:{alreadyRendered:!0},style:{\"@media (prefers-reduced-motion: no-preference)\":{scrollBehavior:\"smooth\"}}}]}))),mQ=(0,Ot.Ay)(Mg,{name:\"MuiMultiSectionDigitalClockSection\",slot:\"Item\",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:\"2px 4px\",width:48,justifyContent:\"center\",\"&:first-of-type\":{marginTop:4},\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:jG(e.palette.primary.main,e.palette.action.hoverOpacity)},\"&.Mui-selected\":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,\"&:focus-visible, &:hover\":{backgroundColor:(e.vars||e).palette.primary.dark}},\"&.Mui-focusVisible\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:jG(e.palette.primary.main,e.palette.action.focusOpacity)}}))),vQ=t.forwardRef((function(e,n){const r=t.useRef(null),i=(0,Wn.A)(n,r),o=t.useRef(null),a=(0,It.A)({props:e,name:\"MuiMultiSectionDigitalClockSection\"}),{autoFocus:s,onChange:l,className:c,disabled:d,readOnly:u,items:h,active:p,slots:g,slotProps:f,skipDisabled:m}=a,v=(0,At.A)(a,gQ),y=t.useMemo((()=>(0,Tt.A)({},a,{alreadyRendered:!!r.current})),[a]),b=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"],item:[\"item\"]},pQ,t)})(y),w=g?.digitalClockSectionItem??mQ;t.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role=\"option\"][tabindex=\"0\"], [role=\"option\"][aria-selected=\"true\"]');if(p&&s&&e&&e.focus(),!e||o.current===e)return;o.current=e;const t=e.offsetTop;r.current.scrollTop=t-4}));const C=h.findIndex((e=>e.isFocused(e.value)));return(0,Kt.jsx)(fQ,(0,Tt.A)({ref:i,className:(0,We.A)(b.root,c),ownerState:y,autoFocusItem:s&&p,role:\"listbox\"},v,{children:h.map(((e,t)=>{const n=e.isDisabled?.(e.value),r=d||n;if(m&&r)return null;const i=e.isSelected(e.value),o=C===t||-1===C&&0===t?0:-1;return(0,Kt.jsx)(w,(0,Tt.A)({onClick:()=>!u&&l(e.value),selected:i,disabled:r,disableRipple:u,role:\"option\",\"aria-disabled\":u||r||void 0,\"aria-label\":e.ariaLabel,\"aria-selected\":i,tabIndex:o,className:b.item},f?.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),yQ=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],d=(e,t)=>{const n=t??l;return null!==n&&(r?12===e?12===n||0===n:n===e||n-12===e:n===e)},u=e=>d(e,n.getHours(s)),h=r?11:23;for(let t=0;t<=h;t+=a){let a=n.format(n.setHours(e,t),r?\"hours12h\":\"hours24h\");const s=o(parseInt(a,10).toString());a=n.formatNumber(a),c.push({value:t,label:a,isSelected:d,isDisabled:i,isFocused:u,ariaLabel:s})}return c},bQ=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=t=>null!==e&&a&&e===t,l=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},((e,a)=>{const c=r*a;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:o(c.toString())}}))]},wQ=[\"ampm\",\"timeSteps\",\"autoFocus\",\"slots\",\"slotProps\",\"value\",\"defaultValue\",\"referenceDate\",\"disableIgnoringDatePartForTimeValidation\",\"maxTime\",\"minTime\",\"disableFuture\",\"disablePast\",\"minutesStep\",\"shouldDisableTime\",\"onChange\",\"view\",\"views\",\"openTo\",\"onViewChange\",\"focusedView\",\"onFocusedViewChange\",\"className\",\"disabled\",\"readOnly\",\"skipDisabled\",\"timezone\"],CQ=(0,Ot.Ay)(AK,{name:\"MuiMultiSectionDigitalClock\",slot:\"Root\",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:\"flex\",flexDirection:\"row\",width:\"100%\",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),SQ=t.forwardRef((function(e,n){const r=DH(),i=(0,It.A)({props:e,name:\"MuiMultiSectionDigitalClock\"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,slots:l,slotProps:c,value:d,defaultValue:u,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:g,minTime:f,disableFuture:m,disablePast:v,minutesStep:y=1,shouldDisableTime:b,onChange:w,view:C,views:S=[\"hours\",\"minutes\"],openTo:E,onViewChange:x,focusedView:A,onFocusedViewChange:T,className:D,disabled:R,readOnly:M,skipDisabled:O=!1,timezone:k}=i,I=(0,At.A)(i,wQ),{value:N,handleValueChange:P,timezone:L}=UU({name:\"MultiSectionDigitalClock\",timezone:k,value:d,defaultValue:u,onChange:w,valueManager:yH}),F=MH(),_=OH(L),z=t.useMemo((()=>(0,Tt.A)({hours:1,minutes:5,seconds:5},a)),[a]),G=eQ({value:N,referenceDate:h,utils:r,props:i,timezone:L}),V=(0,Jn.A)(((e,t,n)=>P(e,t,n))),B=t.useMemo((()=>o&&S.includes(\"hours\")?S.includes(\"meridiem\")?S:[...S,\"meridiem\"]:S),[o,S]),{view:H,setValueAndGoToNextView:j,focusedView:U}=WU({view:C,views:B,openTo:E,onViewChange:x,onChange:V,focusedView:A,onFocusedViewChange:T}),W=(0,Jn.A)((e=>{j(e,\"finish\",\"meridiem\")})),{meridiemMode:$,handleMeridiemChange:Y}=gK(G,o,W,\"finish\"),K=t.useCallback(((e,t)=>{const n=qB(p,r),i=\"hours\"===t||\"minutes\"===t&&B.includes(\"seconds\"),a=({start:e,end:t})=>!(f&&n(f,t)||g&&n(e,g)||m&&n(e,_)||v&&n(_,i?t:e)),s=(e,n=1)=>{if(e%n!=0)return!1;if(b)switch(t){case\"hours\":return!b(r.setHours(G,e),\"hours\");case\"minutes\":return!b(r.setMinutes(G,e),\"minutes\");case\"seconds\":return!b(r.setSeconds(G,e),\"seconds\");default:return!1}return!0};switch(t){case\"hours\":{const t=$B(e,$,o),n=r.setHours(G,t);return!a({start:r.setSeconds(r.setMinutes(n,0),0),end:r.setSeconds(r.setMinutes(n,59),59)})||!s(t)}case\"minutes\":{const t=r.setMinutes(G,e);return!a({start:r.setSeconds(t,0),end:r.setSeconds(t,59)})||!s(e,y)}case\"seconds\":{const t=r.setSeconds(G,e);return!a({start:t,end:t})||!s(e)}default:throw new Error(\"not supported\")}}),[o,G,p,g,$,f,y,b,r,m,v,_,B]),q=t.useCallback((e=>{switch(e){case\"hours\":return{onChange:e=>{const t=$B(e,$,o);j(r.setHours(G,t),\"finish\",\"hours\")},items:yQ({now:_,value:N,ampm:o,utils:r,isDisabled:e=>K(e,\"hours\"),timeStep:z.hours,resolveAriaLabel:F.hoursClockNumberText,valueOrReferenceDate:G})};case\"minutes\":return{onChange:e=>{j(r.setMinutes(G,e),\"finish\",\"minutes\")},items:bQ({value:r.getMinutes(G),utils:r,isDisabled:e=>K(e,\"minutes\"),resolveLabel:e=>r.format(r.setMinutes(_,e),\"minutes\"),timeStep:z.minutes,hasValue:!!N,resolveAriaLabel:F.minutesClockNumberText})};case\"seconds\":return{onChange:e=>{j(r.setSeconds(G,e),\"finish\",\"seconds\")},items:bQ({value:r.getSeconds(G),utils:r,isDisabled:e=>K(e,\"seconds\"),resolveLabel:e=>r.format(r.setSeconds(_,e),\"seconds\"),timeStep:z.seconds,hasValue:!!N,resolveAriaLabel:F.secondsClockNumberText})};case\"meridiem\":{const e=zB(r,\"am\"),t=zB(r,\"pm\");return{onChange:Y,items:[{value:\"am\",label:e,isSelected:()=>!!N&&\"am\"===$,isFocused:()=>!!G&&\"am\"===$,ariaLabel:e},{value:\"pm\",label:t,isSelected:()=>!!N&&\"pm\"===$,isFocused:()=>!!G&&\"pm\"===$,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[_,N,o,r,z.hours,z.minutes,z.seconds,F.hoursClockNumberText,F.minutesClockNumberText,F.secondsClockNumberText,$,j,G,K,Y]),Q=t.useMemo((()=>B.reduce(((e,t)=>(0,Tt.A)({},e,{[t]:q(t)})),{})),[B,q]),X=i,Z=(e=>{const{classes:t}=e;return(0,Rt.A)({root:[\"root\"]},hQ,t)})(X);return(0,Kt.jsx)(CQ,(0,Tt.A)({ref:n,className:(0,We.A)(Z.root,D),ownerState:X,role:\"group\"},I,{children:Object.entries(Q).map((([e,t])=>(0,Kt.jsx)(vQ,{items:t.items,onChange:t.onChange,active:H===e,autoFocus:s??U===e,disabled:R,readOnly:M,slots:l,slotProps:c,skipDisabled:O,\"aria-label\":F.selectViewText(e)},e)))}))})),EQ=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,ampmInClock:y,slots:b,slotProps:w,readOnly:C,disabled:S,sx:E,autoFocus:x,showViewSwitcher:A,disableIgnoringDatePartForTimeValidation:T,timezone:D})=>(0,Kt.jsx)(oQ,{view:e,onViewChange:t,focusedView:n&&UB(n)?n:null,onFocusedViewChange:r,views:i.filter(UB),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,ampmInClock:y,slots:b,slotProps:w,readOnly:C,disabled:S,sx:E,autoFocus:x,showViewSwitcher:A,disableIgnoringDatePartForTimeValidation:T,timezone:D}),xQ=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:C,sx:S,autoFocus:E,disableIgnoringDatePartForTimeValidation:x,timeSteps:A,skipDisabled:T,timezone:D})=>(0,Kt.jsx)(uQ,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(UB),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:C,sx:S,autoFocus:E,disableIgnoringDatePartForTimeValidation:x,timeStep:A?.minutes,skipDisabled:T,timezone:D}),AQ=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:C,sx:S,autoFocus:E,disableIgnoringDatePartForTimeValidation:x,timeSteps:A,skipDisabled:T,timezone:D})=>(0,Kt.jsx)(SQ,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(UB),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:d,disableFuture:u,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:f,minutesStep:m,ampm:v,slots:y,slotProps:b,readOnly:w,disabled:C,sx:S,autoFocus:E,disableIgnoringDatePartForTimeValidation:x,timeSteps:A,skipDisabled:T,timezone:D}),TQ=(e,t,n)=>n?t.filter((e=>!(e=>jB.includes(e)||\"meridiem\"===e)(e)||\"hours\"===e)):e?[...t,\"meridiem\"]:t,DQ=t.forwardRef((function(e,t){const n=MH(),r=DH(),i=Sq(e,\"MuiDesktopTimePicker\"),{shouldRenderTimeInASingleColumn:o,views:a,timeSteps:s}=function({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=(0,Tt.A)({hours:1,minutes:5,seconds:5},n),a=((e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t)(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:TQ(t,r,a)}}(i),l=o?xQ:AQ,c=(0,Tt.A)({hours:l,minutes:l,seconds:l,meridiem:l},i.viewRenderers),d=i.ampmInClock??!0,u=o?[]:[\"accept\"],h=c.hours?.name===AQ.name?a:a.filter((e=>\"meridiem\"!==e)),p=(0,Tt.A)({},i,{ampmInClock:d,timeSteps:s,viewRenderers:c,format:QB(r,i),views:o?[\"hours\"]:h,slots:(0,Tt.A)({field:iq,openPickerIcon:VW},i.slots),slotProps:(0,Tt.A)({},i.slotProps,{field:e=>(0,Tt.A)({},qn(i.slotProps?.field,e),e$(i),{ref:t}),toolbar:(0,Tt.A)({hidden:!0,ampmInClock:d},i.slotProps?.toolbar),actionBar:(0,Tt.A)({actions:u},i.slotProps?.actionBar)})}),{renderPicker:g}=LW({props:p,valueManager:yH,valueType:\"time\",getOpenDialogAriaText:p.localeText?.openTimePickerDialogue??n.openTimePickerDialogue,validator:nq});return g()}));DQ.propTypes={ampm:MB().bool,ampmInClock:MB().bool,autoFocus:MB().bool,className:MB().string,closeOnSelect:MB().bool,defaultValue:MB().object,disabled:MB().bool,disableFuture:MB().bool,disableIgnoringDatePartForTimeValidation:MB().bool,disableOpenPicker:MB().bool,disablePast:MB().bool,enableAccessibleFieldDOMStructure:MB().any,format:MB().string,formatDensity:MB().oneOf([\"dense\",\"spacious\"]),inputRef:OB,label:MB().node,localeText:MB().object,maxTime:MB().object,minTime:MB().object,minutesStep:MB().number,name:MB().string,onAccept:MB().func,onChange:MB().func,onClose:MB().func,onError:MB().func,onOpen:MB().func,onSelectedSectionsChange:MB().func,onViewChange:MB().func,open:MB().bool,openTo:MB().oneOf([\"hours\",\"meridiem\",\"minutes\",\"seconds\"]),orientation:MB().oneOf([\"landscape\",\"portrait\"]),readOnly:MB().bool,reduceAnimations:MB().bool,referenceDate:MB().object,selectedSections:MB().oneOfType([MB().oneOf([\"all\",\"day\",\"empty\",\"hours\",\"meridiem\",\"minutes\",\"month\",\"seconds\",\"weekDay\",\"year\"]),MB().number]),shouldDisableTime:MB().func,skipDisabled:MB().bool,slotProps:MB().object,slots:MB().object,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object]),thresholdToRenderTimeInASingleColumn:MB().number,timeSteps:MB().shape({hours:MB().number,minutes:MB().number,seconds:MB().number}),timezone:MB().string,value:MB().object,view:MB().oneOf([\"hours\",\"meridiem\",\"minutes\",\"seconds\"]),viewRenderers:MB().shape({hours:MB().func,meridiem:MB().func,minutes:MB().func,seconds:MB().func}),views:MB().arrayOf(MB().oneOf([\"hours\",\"minutes\",\"seconds\"]).isRequired)};const RQ=t.forwardRef((function(e,t){const n=MH(),r=DH(),i=Sq(e,\"MuiMobileTimePicker\"),o=(0,Tt.A)({hours:EQ,minutes:EQ,seconds:EQ},i.viewRenderers),a=i.ampmInClock??!1,s=(0,Tt.A)({},i,{ampmInClock:a,viewRenderers:o,format:QB(r,i),slots:(0,Tt.A)({field:iq},i.slots),slotProps:(0,Tt.A)({},i.slotProps,{field:e=>(0,Tt.A)({},qn(i.slotProps?.field,e),e$(i),{ref:t}),toolbar:(0,Tt.A)({hidden:!1,ampmInClock:a},i.slotProps?.toolbar)})}),{renderPicker:l}=ZK({props:s,valueManager:yH,valueType:\"time\",getOpenDialogAriaText:s.localeText?.openTimePickerDialogue??n.openTimePickerDialogue,validator:nq});return l()}));RQ.propTypes={ampm:MB().bool,ampmInClock:MB().bool,autoFocus:MB().bool,className:MB().string,closeOnSelect:MB().bool,defaultValue:MB().object,disabled:MB().bool,disableFuture:MB().bool,disableIgnoringDatePartForTimeValidation:MB().bool,disableOpenPicker:MB().bool,disablePast:MB().bool,enableAccessibleFieldDOMStructure:MB().any,format:MB().string,formatDensity:MB().oneOf([\"dense\",\"spacious\"]),inputRef:OB,label:MB().node,localeText:MB().object,maxTime:MB().object,minTime:MB().object,minutesStep:MB().number,name:MB().string,onAccept:MB().func,onChange:MB().func,onClose:MB().func,onError:MB().func,onOpen:MB().func,onSelectedSectionsChange:MB().func,onViewChange:MB().func,open:MB().bool,openTo:MB().oneOf([\"hours\",\"minutes\",\"seconds\"]),orientation:MB().oneOf([\"landscape\",\"portrait\"]),readOnly:MB().bool,reduceAnimations:MB().bool,referenceDate:MB().object,selectedSections:MB().oneOfType([MB().oneOf([\"all\",\"day\",\"empty\",\"hours\",\"meridiem\",\"minutes\",\"month\",\"seconds\",\"weekDay\",\"year\"]),MB().number]),shouldDisableTime:MB().func,slotProps:MB().object,slots:MB().object,sx:MB().oneOfType([MB().arrayOf(MB().oneOfType([MB().func,MB().object,MB().bool])),MB().func,MB().object]),timezone:MB().string,value:MB().object,view:MB().oneOf([\"hours\",\"minutes\",\"seconds\"]),viewRenderers:MB().shape({hours:MB().func,minutes:MB().func,seconds:MB().func}),views:MB().arrayOf(MB().oneOf([\"hours\",\"minutes\",\"seconds\"]).isRequired)};const MQ=[\"desktopModeMediaQuery\"],OQ=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiTimePicker\"}),{desktopModeMediaQuery:r=OU}=n,i=(0,At.A)(n,MQ);return DB(r,{defaultMatches:!0})?(0,Kt.jsx)(DQ,(0,Tt.A)({ref:t},i)):(0,Kt.jsx)(RQ,(0,Tt.A)({ref:t},i))})),kQ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De.allowedImageFileTypes;const[n,r]=(0,t.useState)(null),[i,o]=(0,t.useState)(\"\"),a=(0,t.useCallback)((e=>c(e,!0)),[]),s=(0,t.useCallback)((e=>c(e,!1)),[]),l=(0,t.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]),c=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.preventDefault(),t.stopPropagation();const i=n?t.dataTransfer.files[0]:t.target.files[0];if(i&&e.includes(i.type)){r(i);const e=new FileReader;e.onload=()=>{o(e.result)},e.readAsDataURL(i)}};return{handleDrop:a,handleFileInputChange:s,handleDragOver:l,handleOnFileClose:e=>{e.preventDefault(),e.stopPropagation(),r(null),o(\"\")},handleOnFilePicked:c,selectedFile:n,previewUrl:i}},IQ=e=>{let{isOpenDrawer:n=!0,onRequestClose:r=(e=>{}),user:o}=e;const a=Ng(),{provinceList:s,districtList:l,fetchDistrictWard:c,clearDistrictWardList:d}=Xv(o),{selectedFile:u,previewUrl:h,handleDrop:p,handleFileInputChange:g,handleDragOver:f,handleOnFileClose:m}=kQ(),{showLoader:v,hideLoader:y}=Jv(),[b]=(0,t.useState)({languageCode:null,title:\"\",bannerType:\"\",imageUrl:\"\",bannerStartDate:\"\",bannerStartTime:\"\",bannerEndDate:\"\",bannerEndTime:\"\",hierarchyType:null,bannerProvince:[],bannerCities:[],hyperlink:\"\",description:\"\",bannerCommercialGeoLocation:\"\"}),w=()=>{r(!1)},C=async e=>{try{((e,t)=>{const n=((e,t)=>{const n=DA()();return DA()(e,Re).add(DA()(t,Me).hour(),\"hour\").add(DA()(t,Me).minute(),\"minute\").isAfter(n)})(e.bannerStartDate,e.bannerStartTime),r=((e,t)=>{const n=DA()(e.bannerStartDate,Re),r=DA()(e.bannerEndDate,Re),i=DA()(e.bannerStartTime,Me),o=DA()(t,Me);return!r.isSame(n,\"day\")||!o.isBefore(i)})(e,e.bannerEndTime),i=\"Invalid Date\";if(e.bannerStartDate===i)throw new Error(\"Start Date is invalid\");if(null!==t&&!De.allowedImageFileTypes.includes(t.type))throw new Error(Te.fileExtAllowed);if(null!==t&&t.size>De.maxFileSize)throw new Error(Te.fileSizeLimit);if(e.bannerStartTime===i)throw new Error(\"Start Time is invalid\");if(e.bannerEndDate===i)throw new Error(\"End Date is invalid\");if(e.bannerEndTime===i)throw new Error(\"End Time is invalid\");if(null===t)throw new Error(Te.imageRequired);if(!n)throw new Error(Te.startTimeError);if(!r)throw new Error(Te.endTimeError);if((0,zA.isEmpty)(e.hyperlink)&&e.bannerType===PV.HYPER_LINK)throw new Error(Te.hyperLinkRequired);if(!Ne.HTTPS_CHECK.test(e.hyperlink.trim())&&e.bannerType===PV.HYPER_LINK)throw new Error(Te.hyperLinkValid);if((0,zA.isEmpty)(e.description)&&e.bannerType===PV.DESCRIPTIVE)throw new Error(Te.descRequired)})(e,u),e.districtList=l,e.selectedFile=u,v(),await((e,t)=>{var n,r;const i=\"\".concat(Re,\" \").concat(Me),o=NA(\"\".concat(e.bannerStartDate,\" \").concat(e.bannerStartTime),Oe,i),a=NA(\"\".concat(e.bannerEndDate,\" \").concat(e.bannerEndTime),Oe,i),s=PA(Oe),l=(0,zA.filter)(e.districtList,(t=>e.bannerCities.includes(t.name))),c=(0,zA.groupBy)(l,(e=>{var t;return null==e||null===(t=e.level)||void 0===t?void 0:t.id})),d=Object.keys(c).map((e=>({level:parseInt(e),ids:c[e].map((e=>e.id))}))),u={title:e.title,language_code:null===(n=e.languageCode)||void 0===n?void 0:n.code,hierarchy_type:null===(r=e.hierarchyType)||void 0===r?void 0:r.code,banner_type:e.bannerType.toUpperCase(),...e.bannerType===PV.DESCRIPTIVE&&{details:{description:e.description}},...e.bannerType===PV.HYPER_LINK&&{details:{hyperlink:e.hyperlink}},banner_hierarchy:d,created_at:s,start_date_time:o,end_date_time:a},h=new FormData;return null!==e.selectedFile&&h.append(\"file\",e.selectedFile),h.append(\"bannerDto\",new Blob([JSON.stringify(u)],{type:\"application/json\"})),Hv.getInstances().getApiService(Yv(),Bv.POST,h,{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken),\"Content-Type\":\"multipart/form-data\"})})(e,o)&&(y(),r(!0))}catch(e){y(),mt.error(e.message)}},S=(0,zA.debounce)((e=>{C(e)}),500);return i().createElement(Ps,{isDrawerOpen:n,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\"},Te.addBanner),i().createElement(gl,{className:\"closeIcon\",\"aria-label\":\"close\",onClick:()=>r(!1),\"data-testid\":\"closeIcon\"},i().createElement(Zv.A,null))),i().createElement(Gn,{className:\"\".concat(a.scrollCard,\" scrollable\")},i().createElement(qu,{initialValues:b,validationSchema:Xf,enableReinitialize:!0,onSubmit:(e,t)=>{S(e)}},(e=>{var t;let{values:n,setFieldValue:r}=e;return i().createElement(th,{\"data-testid\":\"AddBannerForm\",className:\"popupContent\"},i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.Language),i().createElement(Gn,{mt:.5}),i().createElement(_g,{name:\"languageCode\",options:NV,labelKey:\"name\",value:n.languageCode,defaultLabel:Te.selectLanguage,onChange:(e,t)=>{_A(r,e,t)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"languageCode\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.BANNER_TITLE),i().createElement(Gn,{mt:.5}),i().createElement(eh,{type:\"text\",name:\"title\",className:\"inputField\",placeholder:Te.BANNER_PLACEHOLDER,defaultValue:n.title,onChange:e=>{_A(r,e.target.name,e.target.value.replace(Ne.ALPHABETS_NUMERIC,\"\").substring(0,150))}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"title\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:1},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.image),i().createElement(Gn,{onDrop:p,onDragOver:f},i().createElement(rl,{mt:.5,width:\"100%\",className:a.imageContainerBannerUpload,justifyItems:\"center\",alignItems:\"center\",flexDirection:\"column\"},h.length>0?i().createElement(i().Fragment,null,i().createElement(\"img\",{className:a.previewImage,src:h,alt:\"picked\",\"data-testid\":\"picked\"}),i().createElement(Gn,{onClick:m,className:a.closeBtn,onKeyDown:e=>{\"Enter\"!==e.key&&\" \"!==e.key||m(e)}},i().createElement(rl,{alignItems:\"center\"},i().createElement(Zv.A,{color:\"info\"})))):i().createElement(rl,{alignSelf:\"center\",justifyItems:\"center\",alignItems:\"center\",flexDirection:\"column\"},i().createElement(Gn,{mt:1}),i().createElement(\"img\",{src:qV.UploadImagePlaceholder,alt:\"upload placeholder\"}),i().createElement(cl,{variant:\"h6\",mt:1,className:a.uploadText},Te.uploadimageDesc),i().createElement(Gn,{mt:1}),i().createElement(Dn,{component:\"label\",role:void 0,variant:\"contained\",tabIndex:-1,color:\"secondary\",className:a.uploadButton,disableElevation:!0},Te.browseFile,i().createElement(eh,{type:\"file\",accept:De.allowedImageFileTypes.join(\",\"),name:\"imageUrl\",className:\"inputField\",placeholder:\"upload image\",onChange:g,\"data-testid\":\"UploadImage\",hidden:!0}))))),i().createElement(El,{error:!0},i().createElement(sh,{name:\"imageUrl\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.startDate),i().createElement(Gn,{mt:.5}),i().createElement(tq,{name:\"bannerStartDate\",disablePast:!0,className:a.timePicker,format:\"DD/MM/YYYY\",onChange:e=>{_A(r,\"bannerStartDate\",IA(e,Re))},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}}}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerStartDate\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.startTime),i().createElement(Gn,{mt:.5}),i().createElement(OQ,{name:\"bannerStartTime\",className:a.timePicker,onChange:e=>{_A(r,\"bannerStartTime\",IA(e,Me))},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}}}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerStartTime\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.endDate),i().createElement(Gn,{mt:.5}),i().createElement(tq,{name:\"bannerEndDate\",disablePast:!0,className:a.timePicker,format:\"DD/MM/YYYY\",onChange:e=>{_A(r,\"bannerEndDate\",IA(e,Re))},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}}}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerEndDate\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.endTime),i().createElement(Gn,{mt:.5}),i().createElement(OQ,{name:\"bannerEndTime\",className:a.timePicker,onChange:e=>{_A(r,\"bannerEndTime\",IA(e,Me))},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}}}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerEndTime\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.locationHierarchy),i().createElement(Gn,{mt:.5}),i().createElement(_g,{name:\"hierarchyType\",labelKey:\"name\",options:_V,value:n.hierarchyType,defaultLabel:Te.selectLocationHierarchy,onChange:(e,t)=>{_A(r,e,t)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"hierarchyType\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.bannerType),i().createElement(Gn,{mt:.5}),i().createElement(_g,{name:\"bannerType\",labelKey:\"name\",options:LV,value:n.bannerType,defaultLabel:Te.selectBannerType,onChange:(e,t)=>{_A(r,\"hyperlink\",\"\"),_A(r,\"description\",\"\"),_A(r,e,t.name)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerType\"})))),(null===(t=n.hierarchyType)||void 0===t?void 0:t.name)===FV.GEO_HIERARCHY&&i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.PROVINCE),i().createElement(Gn,{mt:.5}),i().createElement(CB,{name:\"bannerProvince\",key:\"bannerProvince\",labelKeys:[\"translatedName\",\"name\"],options:s,isSortReq:!0,searchOn:s.length>0,selectAll:s.length>0,value:n.bannerProvince,defaultLabel:Te.PROVINCE_PLACEHOLDER,onChange:(e,t)=>{_A(r,e,t),_A(r,\"bannerCities\",[]),d(0),c(t)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerProvince\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.PROVINCIAL_CITIES_DISTRICT),i().createElement(Gn,{mt:.5}),i().createElement(CB,{name:\"bannerCities\",key:\"bannerCities\",labelKeys:[\"translatedName\",\"name\"],options:l,isSortReq:!0,searchOn:l.length>0,selectAll:l.length>0,value:n.bannerCities,defaultLabel:Te.PROVINCIAL_CITIES_DISTRICT_PLACEHOLDER,onChange:(e,t)=>{_A(r,e,t)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"bannerCities\"})))),n.bannerType===PV.DESCRIPTIVE&&i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},\"\".concat(Te.Description)),i().createElement(Gn,{mt:.5}),i().createElement(eh,{type:\"text\",as:\"textarea\",rows:10,name:\"description\",className:\"inputField \".concat(a.descTextArea),placeholder:\"Enter description\",defaultValue:n.description,onChange:e=>{_A(r,e.target.name,e.target.value)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"description\"})))),n.bannerType===PV.HYPER_LINK&&i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.HyperLink),i().createElement(Gn,{mt:.5}),i().createElement(eh,{type:\"text\",name:\"hyperlink\",className:\"inputField\",placeholder:Te.enterHyperLink,defaultValue:n.hyperlink,onChange:e=>{_A(r,e.target.name,e.target.value)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"HyperLink\"}))),i().createElement(Kv,{onRequestClose:w}))})))))},NQ=e=>{var t,n;let{isOpenDrawer:r=!0,onRequestClose:o=(()=>{}),data:a=null}=e;const s=Ng();if(null===a)return null;const{title:l,details:c,language_code:d,start_date_time:u,end_date_time:h,hierarchy_type:p}=a,{hyperlink:g=null,description:f=null,preSignedUrl:m=null}=null!=c?c:{};return i().createElement(Ps,{isDrawerOpen:r,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\",className:s.textWrap},\"\".concat(Te.title,\" - \").concat(l)),i().createElement(gl,{className:\"closeIcon\",\"aria-label\":\"close\",onClick:o},i().createElement(Zv.A,null))),i().createElement(Gn,{className:\"\".concat(s.scrollCard,\" scrollable\")},null!==m&&(null==m?void 0:m.length)>0&&i().createElement(rl,{direction:\"column\",alignItems:\"flex-start\",mt:1,mb:3.25},i().createElement(cl,{component:\"h4\",variant:\"h4\",className:s.textLeft},Te.image),i().createElement(\"img\",{src:m,alt:\"Banner_Image\",className:s.bannerImage})),i().createElement(WV,{variant:\"elevation\",elevation:0,className:s.cardMinorElevation},i().createElement($V,{heading:Te.startDateTime,content:\"\".concat(IA(u,Re),\" at \").concat(IA(u,Ie)),heading1:Te.endDateTime,content2:\"\".concat(IA(h,Re),\" at \").concat(IA(h,Ie))}),i().createElement($V,{heading:Te.Language,content:null!==(t=null===(n=NV.find((e=>e.code===d)))||void 0===n?void 0:n.name)&&void 0!==t?t:\"\"}),i().createElement($V,{heading:Te.Location,content:p}),null!==g&&String(g).length>0&&i().createElement($V,{heading:Te.HyperLink,content:g}),null!==f&&String(f).length>0&&i().createElement($V,{heading:Te.Description,content:f}),i().createElement(Gn,{className:s.spacer})))))},PQ=[\"className\",\"component\",\"disableGutters\",\"fixed\",\"maxWidth\",\"classes\"],LQ=(0,Ls.A)(),FQ=$s(\"div\",{name:\"MuiContainer\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,ls.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_Q=e=>(0,Ys.A)({props:e,name:\"MuiContainer\",defaultTheme:LQ}),zQ=function(e={}){const{createStyledComponent:n=FQ,useThemeProps:r=_Q,componentName:i=\"MuiContainer\"}=e,o=n((({theme:e,ownerState:t})=>(0,Tt.A)({width:\"100%\",marginLeft:\"auto\",boxSizing:\"border-box\",marginRight:\"auto\",display:\"block\"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(\"sm\")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,Tt.A)({},\"xs\"===t.maxWidth&&{[e.breakpoints.up(\"xs\")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&\"xs\"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),a=t.forwardRef((function(e,t){const n=r(e),{className:a,component:s=\"div\",disableGutters:l=!1,fixed:c=!1,maxWidth:d=\"lg\"}=n,u=(0,At.A)(n,PQ),h=(0,Tt.A)({},n,{component:s,disableGutters:l,fixed:c,maxWidth:d}),p=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:[\"root\",o&&`maxWidth${(0,ls.A)(String(o))}`,r&&\"fixed\",i&&\"disableGutters\"]};return(0,Rt.A)(a,(e=>(0,un.Ay)(t,e)),n)})(h,i);return(0,Kt.jsx)(o,(0,Tt.A)({as:s,ownerState:h,className:(0,We.A)(p.root,a),ref:t},u))}));return a}({createStyledComponent:(0,Ot.Ay)(\"div\",{name:\"MuiContainer\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,vn.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,It.A)({props:e,name:\"MuiContainer\"})}),GQ=zQ,VQ=e=>{let{isDrawerOpen:t,children:n,onClose:r}=e;const o=Ng();return t?i().createElement(GQ,{className:o.customBody},i().createElement(GQ,{className:o.customDrawerComponent},i().createElement(GQ,{className:o.children},n),i().createElement(rl,{className:o.closeWrapper,justifySelf:\"center\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"row\"},i().createElement(gl,{\"aria-label\":\"close\",onClick:r},i().createElement(Zv.A,{fontSize:\"small\",htmlColor:\"##C1C5C8\"}))))):null},BQ=i().memo(VQ),HQ=e=>{let{isOpenFilter:n,onClose:r=(e=>{}),value:o}=e;const a=Ng(),[s,l]=(0,t.useState)({bannerCreatedDate:null,bannerStartDate:null});(0,t.useEffect)((()=>{l(o)}),[o]);const c=()=>{r({bannerCreatedDate:null,bannerStartDate:null})};return i().createElement(BQ,{isDrawerOpen:n,onClose:c},i().createElement(rl,{flexDirection:\"row\",alignItems:\"center\",gap:1,justifyContent:\"space-between\"},i().createElement(rl,{mb:2,direction:\"row\",gap:4},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.campCreatedDate),i().createElement(Gn,{mt:.5}),i().createElement(tq,{\"data-testid\":\"date-picker\",name:\"bannerCreatedDate\",disablePast:!0,className:a.picker,value:s.bannerCreatedDate,onChange:e=>{l({...s,bannerCreatedDate:e})},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}}}})),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.campStartDate),i().createElement(Gn,{mt:.5}),i().createElement(tq,{\"data-testid\":\"date-picker1\",name:\"bannerStartDate\",disablePast:!0,className:a.picker,value:s.bannerStartDate,onChange:e=>{l({...s,bannerStartDate:e})},sx:{\"& label\":{color:\"#757575\"},\".Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{border:\"0.7px solid #C2C7D0 !important\"}},\"&:hover\":{border:\"0.7px solid #C2C7D0 !important\"}}}))),i().createElement(rl,{direction:\"row\",gap:2,alignItems:\"center\",justifyContent:\"center\"},i().createElement(Hn,{variant:\"outlined\",buttonName:Te.clearFilter,color:\"secondary\",onButtonClick:c,type:\"button\",className:a.cancelButton}),i().createElement(Hn,{variant:\"contained\",buttonName:Te.applyFilter,onButtonClick:()=>{r(s)},color:\"primary\",className:a.applyButton,type:\"button\"}))))},jQ=(0,Ot.Ay)(YK)((e=>{let{theme:t}=e;return{\"& .MuiDialogContent-root\":{padding:t.spacing(2)},\"& .MuiDialogActions-root\":{padding:t.spacing(1)}}})),UQ=gs({closeBtn:{position:\"absolute\",right:8,top:8,color:Ds.palette.grey[500]},dialog:{\"& .MuiPaper-root\":{borderRadius:\"unset !important\",width:\"50% !important\",background:\"\".concat(ys)}},container:{background:\"\".concat(ys),paddingTop:\"12px\",paddingBottom:\"16px\"},content:{backgroundColor:\"white\",maxWidth:\"unset !important\",height:\"fit-content\",padding:\"24px\",borderRadius:\"8px\",filter:\"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.01))\"},bodyText:{fontSize:\"17px !important\"},cancelButton:{borderRdius:\"4px\",border:\"1px solid #C2C7D0 !important\",background:\"#FFF !important\",color:\"#1D2B3A !important\"},applyButton:{}}),WQ=e=>{let{title:t,content:n,submitBtnText:r,cancelBtnText:o,isVisible:a,handleOnClose:s,handleOnSubmit:l}=e;const c=UQ();return i().createElement(jQ,{onClose:s,\"aria-labelledby\":\"customized-dialog-title\",open:a,className:c.dialog},i().createElement(GQ,{className:c.container},i().createElement(rl,{alignSelf:\"center\",justifyItems:\"center\",flexDirection:\"row\",justifyContent:\"space-between\",mb:2,mt:1},i().createElement(cl,{component:\"h6\",variant:\"h6\"},t),i().createElement(gl,{\"aria-label\":\"close\",onClick:s},i().createElement(Zv.A,null))),i().createElement(rl,{direction:\"column\",justifySelf:\"center\",alignItems:\"center\",className:c.content,gap:2.5},i().createElement(cl,{component:\"body\",variant:\"body1\",className:c.bodyText},n),i().createElement(rl,{alignSelf:\"center\",justifyItems:\"center\",flexDirection:\"row\",justifySelf:\"center\",gap:2},i().createElement(Hn,{variant:\"outlined\",buttonName:o,color:\"secondary\",onButtonClick:s,type:\"button\",className:c.cancelButton}),i().createElement(Hn,{variant:\"contained\",buttonName:r,onButtonClick:l,color:\"primary\",className:c.applyButton,type:\"button\"})))))},$Q=i().memo(WQ),YQ=()=>{const e=Ng(),[n,r]=(0,t.useState)(!1),[o,a]=(0,t.useState)(!1),[s,l]=(0,t.useState)(!1),[c,d]=(0,t.useState)(null),[u,h]=(0,t.useState)(null),[p,g]=(0,t.useState)(0),[f,m]=(0,t.useState)(0),[v,y]=(0,t.useState)({startIndex:0,endIndex:10}),b=(0,t.useRef)([]),[w,C]=(0,t.useState)([]),[S,E]=(0,t.useState)({bannerCreatedDate:null,bannerStartDate:null}),{User:x}=Ue();(0,t.useEffect)((()=>{A()}),[]);const A=async()=>{try{const e=await(e=>Hv.getInstances().getApiService(Yv(),Bv.GET,void 0,{\"bu-id\":e.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(e.AccessToken)}))(x);(null==e?void 0:e.length)>0&&(b.current=e,C(e))}catch(e){mt.error(e.message)}};return i().createElement(Ig,null,i().createElement(Gn,null,i().createElement(ZV,{title:Te.bannerAndScheme}),i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.8,gap:2},i().createElement(rl,{direction:\"row\",gap:2},i().createElement(uT,{placeholderText:\"Search\",onSearchValueChange:e=>{null==u||u.setQuickFilter(e)}})),i().createElement(rl,{direction:\"row\",justifyContent:\"end\",alignItems:\"center\",gap:2},i().createElement(rl,{flexDirection:\"row\",gap:1,alignItems:\"center\",onClick:()=>{a(!0)}},i().createElement(cl,{variant:\"h5\",className:e.filterText},\"Filter\"),i().createElement(\"img\",{src:qV.FilterIcon,alt:\"filter\",className:\"pointer\"})),i().createElement(Hn,{buttonName:Te.addBanner,variant:\"contained\",disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:()=>{r(!0)}}))),i().createElement(ei,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(vV,{rows:w.slice(v.startIndex,v.endIndex),columnDefs:(T=(e,t)=>{if(-1!==t){const n=w.slice(v.startIndex,v.endIndex)[t];e.name===Te.details?d(n):e.name===Te.delete&&l(!0)}},[{headerName:\"Image\",width:100,filter:!1,cellRenderer:e=>{var t,n;return i().createElement(kV,{value:null!==(t=null===(n=e.data)||void 0===n||null===(n=n.details)||void 0===n?void 0:n.preSignedUrl)&&void 0!==t?t:\"\",type:OV.IMAGE})}},{headerName:\"Title\",field:\"title\",width:300,cellRenderer:e=>GV(e),autoHeight:!0},{headerName:\"Created Date\",width:50,cellRenderer:e=>{var t,n;const r={...e};return r.value=IA(null!==(t=null===(n=r.data)||void 0===n?void 0:n.created_at)&&void 0!==t?t:\"\",ke),GV(r)},filter:!1,autoHeight:!0},{headerName:\"Validity\",width:400,filter:!1,cellRenderer:e=>{var t,n,r,i;const o={...e};return o.value=\"\".concat(IA(null!==(t=null===(n=o.data)||void 0===n?void 0:n.start_date_time)&&void 0!==t?t:\"\",ke),\" -  \").concat(IA(null!==(r=null===(i=o.data)||void 0===i?void 0:i.end_date_time)&&void 0!==r?r:\"\",ke)),GV(o)},autoHeight:!0},{headerName:\"Hyperlink\",width:400,cellRenderer:e=>{var t,n;const r={...e};return r.value=null!==(t=null===(n=r.data)||void 0===n||null===(n=n.details)||void 0===n?void 0:n.hyperlink)&&void 0!==t?t:\"\",r.isUnderLine=!0,GV(r)},autoHeight:!0},{headerName:\"Language\",field:\"language_code\",width:100,cellRenderer:e=>{var t,n;const r={...e};return r.value=null!==(t=null===(n=NV.find((t=>{var n,r;return(null===(n=t.code)||void 0===n?void 0:n.toLowerCase())===(null===(r=e.data)||void 0===r?void 0:r.language_code.toLowerCase())})))||void 0===n?void 0:n.name)&&void 0!==t?t:\"\",GV(r)}},{headerName:\"Location\",field:\"banner_hierarchy\",width:200,cellRenderer:e=>{var t;return i().createElement(kV,zV({},e,{type:OV.ANY}),i().createElement(IV.A,{fontSize:\"small\"}),i().createElement(xV,{value:\"\".concat(null===(t=e.value)||void 0===t?void 0:t.length,\" \").concat(Te.provinces)}))}},{filter:!1,headerName:\"Action\",field:\"action\",width:200,cellRenderer:e=>i().createElement(kV,zV({},e,{type:OV.ACTION,actionList:[{name:Te.details,isColorRed:!1},{name:Te.edit,isColorRed:!1},{name:Te.delete,isColorRed:!0}]})),cellRendererParams:{onClick:T}}]),onGridReady:e=>{h(e.api),(null==w?void 0:w.length)>0&&g(Math.ceil(w.length/10))}})),i().createElement(EV,{totalPageCount:p,pageNo:f,onPageChange:e=>{const t=10*(e+1-1),n=Math.min(t+10,w.length);y({startIndex:t,endIndex:n}),m(e)}}),n&&i().createElement(IQ,{isOpenDrawer:n,onRequestClose:e=>{r(!1),e&&A()},user:x}),o&&!1===s&&i().createElement(HQ,{isOpenFilter:o,onClose:e=>{const{bannerCreatedDate:t=null,bannerStartDate:n=null}=e,r=null!==t,i=null!==n,o=r?IA(t,Oe):null,s=i?IA(n,Oe):null;let l=w.filter((e=>o&&s?LA(e.created_at,o)&&LA(e.start_date_time,s):o?LA(e.created_at,o):!s||LA(e.start_date_time,s)));var c;!1!==r&&!1!==i||(l=null!==(c=null==b?void 0:b.current)&&void 0!==c?c:[]),C(l),E(e),a(!1)},value:S}),i().createElement(NQ,{data:c,isOpenDrawer:null!==c&&!1===s,onRequestClose:()=>{d(null)}}),i().createElement($Q,{submitBtnText:Te.yes,cancelBtnText:Te.no,title:Te.deleteBanner,content:Te.deleteBannerConfirmation,isVisible:s,handleOnClose:()=>l(!1),handleOnSubmit:()=>{}})));var T},KQ=gs({card:{width:\"100%\",flexShrink:\"0\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",minWidth:\"50%\",padding:\"24px 4px 10px 4px\",filter:\"drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15))\",borderRadius:\"8px !important\"},images:{margin:\"12px 0px 12px 0px\"},content:{textAlign:\"center\"},divider:{width:\"100%\",height:\"1.3px\",backgroundColor:\"\".concat(Ds.palette.grey[800],\" !important\")}}),qQ=e=>{let{dataList:t,handleOnItemClick:n}=e;const r=Dr(),o=DB(r.breakpoints.up(\"lg\")),a=DB(r.breakpoints.between(\"md\",\"lg\")),s=KQ(),l=\"\".concat(s.card,\" pointer\");return i().createElement(hV,{container:!0,spacing:2},i().createElement(hV,{item:!0,xs:12},i().createElement(fh,null,i().createElement(hV,{container:!0,spacing:2},t.map((e=>i().createElement(hV,{key:e.key,item:!0,xs:o?3:a?4:6},i().createElement(GQ,{onClick:t=>((e,t)=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),n&&n(t)})(t,e)},i().createElement(mW,null,i().createElement(WV,{className:l,variant:\"elevation\",elevation:0},i().createElement(\"img\",{src:e.icon,alt:e.name,width:36,height:36,className:s.images}),i().createElement(Gn,{mt:2}),i().createElement(Gn,{className:s.divider}),i().createElement(cl,{variant:\"subtitle1\",color:\"textPrimary\",mt:2,mb:2},e.name)))))))))))},QQ=i().memo(qQ),XQ=()=>{const e=ue(),[n]=(0,t.useState)([{key:Pe.RETAILER_LIST,name:Te.retailers,icon:qV.RetailerList,navigation:Le.RETAILER_LIST},{key:Pe.BANNER_SCHEME,name:Te.bannerAndScheme,icon:qV.UploadPlaceholder,navigation:Le.BANNER_LIST},{key:Pe.SCAN_POINT_LIST,name:Te.scanPoint,icon:qV.UploadPlaceholder,navigation:Le.SCAN_POINTS_LIST}]),{User:r=null}=Ue();return i().createElement(Ig,null,i().createElement(Gn,null,i().createElement(cl,{component:\"h2\",variant:\"h2\",mb:2,mt:1},\"\".concat(Te.hello,\", \").concat(null==r?void 0:r.UserDetails.first_name,\" \").concat(null==r?void 0:r.UserDetails.last_name)),i().createElement(ZV,{showBreadCrumb:!1,imageProps:{height:56}}),i().createElement(QQ,{dataList:n,handleOnItemClick:t=>{e(t.navigation,{state:t})}})))},ZQ=$s(kg)((()=>({background:\"\".concat(Es),top:\"20px\",marginBottom:\"20px\",width:\"100%\",height:\"absolute\",overflow:\"auto\",paddingTop:\"15px\",paddingBottom:\"10px\",textAlign:\"justify\",flexDirection:\"column\",borderRadius:\"10px\",boxShadow:\"0 .2px .2px rgba(0, 0, 0, 0.1)\",\"& .boxtTitle\":{colors:Cs,fontSize:\"16px\",lineHeight:\"20px\",fontWeight:\"500\",textAlign:\"center\",display:\"flex\",justifyContent:\"flex-start\"},\"& > hr\":{colors:\"#F3F4F6\",border:\"none\",borderBottom:\"2px solid #F3F4F6\",left:\"0px\",right:\"0px\",padding:\"0px\",top:\"20px\",outerWidth:\"100%\",paddingLeft:\"0px\",paddingRight:\"0px\",bottom:\"20px\"},\"& > *\":{paddingLeft:\"20px\",paddingRight:\"20px\"},\"& .circle\":{width:\"24px\",height:\"24px\",borderRadius:\"50%\",backgroundColor:\"#DFFBE8\",right:\"16px\",textAlign:\"center\",marginRight:\"10px\",fontSize:\"12px\",lineHeight:\"20px\",colors:\"#000000\"},\"& .boxCount\":{fontWeight:\"bold\",color:\"black\"},\"& .uploadProgress\":{width:\"100%\",color:\"#005693\",fontSize:\"12px\",fontWeight:\"600\",lineHeight:\"20px\",marginBottom:\"12px\"}}))),JQ=e=>i().createElement(i().Fragment,null,i().createElement(rl,{mb:2,direction:\"row\"},e.isCircle&&i().createElement(\"div\",{className:\"circle\"},i().createElement(cl,{className:\"boxCount\"},e.count)),i().createElement(cl,{className:\"boxtTitle\"},e.label)),i().createElement(\"hr\",null)),eX=i().memo(JQ),tX=[{dependencyName:\"Shipper\",keys:\"SHIPPER\"},{dependencyName:\"Display Box\",keys:\"DISPLAYBOX\"},{dependencyName:\"Unit\",keys:\"UNIT\"}],nX=[{dependencyName:\"Carton\",keys:\"CARTON\"},{dependencyName:\"Display Box\",keys:\"DISPLAYBOX\"},{dependencyName:\"Unit\",keys:\"UNIT\"}],rX=[{dependencyName:\"Shipper\",keys:\"SHIPPER\"},{dependencyName:\"Carton\",keys:\"CARTON\"},{dependencyName:\"Unit\",keys:\"UNIT\"}];var iX=n(4792),oX=n.n(iX);let aX;function sX(){if(aX)return aX;const e=document.createElement(\"div\"),t=document.createElement(\"div\");return t.style.width=\"10px\",t.style.height=\"1px\",e.appendChild(t),e.dir=\"rtl\",e.style.fontSize=\"14px\",e.style.width=\"4px\",e.style.height=\"1px\",e.style.position=\"absolute\",e.style.top=\"-1000px\",e.style.overflow=\"scroll\",document.body.appendChild(e),aX=\"reverse\",e.scrollLeft>0?aX=\"default\":(e.scrollLeft=1,0===e.scrollLeft&&(aX=\"negative\")),document.body.removeChild(e),aX}function lX(e,t){const n=e.scrollLeft;if(\"rtl\"!==t)return n;switch(sX()){case\"negative\":return e.scrollWidth-e.clientWidth+n;case\"reverse\":return e.scrollWidth-e.clientWidth-n;default:return n}}function cX(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const dX=[\"onChange\"],uX={width:99,height:99,position:\"absolute\",top:-9999,overflow:\"scroll\"},hX=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"}),\"KeyboardArrowLeft\"),pX=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"}),\"KeyboardArrowRight\");function gX(e){return(0,un.Ay)(\"MuiTabScrollButton\",e)}const fX=(0,qt.A)(\"MuiTabScrollButton\",[\"root\",\"vertical\",\"horizontal\",\"disabled\"]),mX=[\"className\",\"slots\",\"slotProps\",\"direction\",\"orientation\",\"disabled\"],vX=(0,Ot.Ay)(mn,{name:\"MuiTabScrollButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,Tt.A)({width:40,flexShrink:0,opacity:.8,[`&.${fX.disabled}`]:{opacity:0}},\"vertical\"===e.orientation&&{width:\"100%\",height:40,\"& svg\":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),yX=t.forwardRef((function(e,t){var n,r;const i=(0,It.A)({props:e,name:\"MuiTabScrollButton\"}),{className:o,slots:a={},slotProps:s={},direction:l}=i,c=(0,At.A)(i,mX),d=Un(),u=(0,Tt.A)({isRtl:d},i),h=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:[\"root\",n,r&&\"disabled\"]};return(0,Rt.A)(i,gX,t)})(u),p=null!=(n=a.StartScrollButtonIcon)?n:hX,g=null!=(r=a.EndScrollButtonIcon)?r:pX,f=Xn({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:\"small\"},ownerState:u}),m=Xn({elementType:g,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:\"small\"},ownerState:u});return(0,Kt.jsx)(vX,(0,Tt.A)({component:\"div\",className:(0,We.A)(h.root,o),ref:t,role:null,ownerState:u,tabIndex:null},c,{children:\"left\"===l?(0,Kt.jsx)(p,(0,Tt.A)({},f)):(0,Kt.jsx)(g,(0,Tt.A)({},m))}))}));function bX(e){return(0,un.Ay)(\"MuiTabs\",e)}const wX=(0,qt.A)(\"MuiTabs\",[\"root\",\"vertical\",\"flexContainer\",\"flexContainerVertical\",\"centered\",\"scroller\",\"fixed\",\"scrollableX\",\"scrollableY\",\"hideScrollbar\",\"scrollButtons\",\"scrollButtonsHideMobile\",\"indicator\"]),CX=[\"aria-label\",\"aria-labelledby\",\"action\",\"centered\",\"children\",\"className\",\"component\",\"allowScrollButtonsMobile\",\"indicatorColor\",\"onChange\",\"orientation\",\"ScrollButtonComponent\",\"scrollButtons\",\"selectionFollowsFocus\",\"slots\",\"slotProps\",\"TabIndicatorProps\",\"TabScrollButtonProps\",\"textColor\",\"value\",\"variant\",\"visibleScrollbar\"],SX=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,EX=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xX=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||\"true\"===i.getAttribute(\"aria-disabled\");if(i.hasAttribute(\"tabindex\")&&!t)return void i.focus();i=n(e,i)}},AX=(0,Ot.Ay)(\"div\",{name:\"MuiTabs\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wX.scrollButtons}`]:t.scrollButtons},{[`& .${wX.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,Tt.A)({overflow:\"hidden\",minHeight:48,WebkitOverflowScrolling:\"touch\",display:\"flex\"},e.vertical&&{flexDirection:\"column\"},e.scrollButtonsHideMobile&&{[`& .${wX.scrollButtons}`]:{[t.breakpoints.down(\"sm\")]:{display:\"none\"}}}))),TX=(0,Ot.Ay)(\"div\",{name:\"MuiTabs\",slot:\"Scroller\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,Tt.A)({position:\"relative\",display:\"inline-block\",flex:\"1 1 auto\",whiteSpace:\"nowrap\"},e.fixed&&{overflowX:\"hidden\",width:\"100%\"},e.hideScrollbar&&{scrollbarWidth:\"none\",\"&::-webkit-scrollbar\":{display:\"none\"}},e.scrollableX&&{overflowX:\"auto\",overflowY:\"hidden\"},e.scrollableY&&{overflowY:\"auto\",overflowX:\"hidden\"}))),DX=(0,Ot.Ay)(\"div\",{name:\"MuiTabs\",slot:\"FlexContainer\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>(0,Tt.A)({display:\"flex\"},e.vertical&&{flexDirection:\"column\"},e.centered&&{justifyContent:\"center\"}))),RX=(0,Ot.Ay)(\"span\",{name:\"MuiTabs\",slot:\"Indicator\",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,Tt.A)({position:\"absolute\",height:2,bottom:0,width:\"100%\",transition:t.transitions.create()},\"primary\"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},\"secondary\"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:\"100%\",width:2,right:0}))),MX=(0,Ot.Ay)((function(e){const{onChange:n}=e,r=(0,At.A)(e,dX),i=t.useRef(),o=t.useRef(null),a=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return(0,vh.A)((()=>{const e=(0,Ur.A)((()=>{const e=i.current;a(),e!==i.current&&n(i.current)})),t=(0,Wr.A)(o.current);return t.addEventListener(\"resize\",e),()=>{e.clear(),t.removeEventListener(\"resize\",e)}}),[n]),t.useEffect((()=>{a(),n(i.current)}),[n]),(0,Kt.jsx)(\"div\",(0,Tt.A)({style:uX,ref:o},r))}))({overflowX:\"auto\",overflowY:\"hidden\",scrollbarWidth:\"none\",\"&::-webkit-scrollbar\":{display:\"none\"}}),OX={},kX=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiTabs\"}),i=Dr(),o=Un(),{\"aria-label\":a,\"aria-labelledby\":s,action:l,centered:c=!1,children:d,className:u,component:h=\"div\",allowScrollButtonsMobile:p=!1,indicatorColor:g=\"primary\",onChange:f,orientation:m=\"horizontal\",ScrollButtonComponent:v=yX,scrollButtons:y=\"auto\",selectionFollowsFocus:b,slots:w={},slotProps:C={},TabIndicatorProps:S={},TabScrollButtonProps:E={},textColor:x=\"primary\",value:A,variant:T=\"standard\",visibleScrollbar:D=!1}=r,R=(0,At.A)(r,CX),M=\"scrollable\"===T,O=\"vertical\"===m,k=O?\"scrollTop\":\"scrollLeft\",I=O?\"top\":\"left\",N=O?\"bottom\":\"right\",P=O?\"clientHeight\":\"clientWidth\",L=O?\"height\":\"width\",F=(0,Tt.A)({},r,{component:h,allowScrollButtonsMobile:p,indicatorColor:g,orientation:m,vertical:O,scrollButtons:y,textColor:x,variant:T,visibleScrollbar:D,fixed:!M,hideScrollbar:M&&!D,scrollableX:M&&!O,scrollableY:M&&O,centered:c&&!M,scrollButtonsHideMobile:!p}),_=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:[\"root\",t&&\"vertical\"],scroller:[\"scroller\",n&&\"fixed\",r&&\"hideScrollbar\",i&&\"scrollableX\",o&&\"scrollableY\"],flexContainer:[\"flexContainer\",t&&\"flexContainerVertical\",a&&\"centered\"],indicator:[\"indicator\"],scrollButtons:[\"scrollButtons\",s&&\"scrollButtonsHideMobile\"],scrollableX:[i&&\"scrollableX\"],hideScrollbar:[r&&\"hideScrollbar\"]};return(0,Rt.A)(c,bX,l)})(F),z=Xn({elementType:w.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:F}),G=Xn({elementType:w.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:F}),[V,B]=t.useState(!1),[H,j]=t.useState(OX),[U,W]=t.useState(!1),[$,Y]=t.useState(!1),[K,q]=t.useState(!1),[Q,X]=t.useState({overflow:\"hidden\",scrollbarWidth:0}),Z=new Map,J=t.useRef(null),ee=t.useRef(null),te=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:lX(e,o?\"rtl\":\"ltr\"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==A){const e=ee.current.children;if(e.length>0){const t=e[Z.get(A)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ne=(0,Pt.A)((()=>{const{tabsMeta:e,tabMeta:t}=te();let n,r=0;if(O)n=\"top\",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?\"right\":\"left\",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[L]:t?t[L]:0};if(isNaN(H[n])||isNaN(H[L]))j(i);else{const e=Math.abs(H[n]-i[n]),t=Math.abs(H[L]-i[L]);(e>=1||t>=1)&&j(i)}})),re=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=cX,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=r=>{if(c)return void i(new Error(\"Animation cancelled\"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error(\"Element already at target position\")):requestAnimationFrame(d)}(k,J.current,e,{duration:i.transitions.duration.standard}):J.current[k]=e},ie=e=>{let t=J.current[k];O?t+=e:(t+=e*(o?-1:1),t*=o&&\"reverse\"===sX()?-1:1),re(t)},oe=()=>{const e=J.current[P];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const i=n[r];if(t+i[P]>e){0===r&&(t=e);break}t+=i[P]}return t},ae=()=>{ie(-1*oe())},se=()=>{ie(oe())},le=t.useCallback((e=>{X({overflow:null,scrollbarWidth:e})}),[]),ce=(0,Pt.A)((e=>{const{tabsMeta:t,tabMeta:n}=te();if(n&&t)if(n[I]<t[I]){const r=t[k]+(n[I]-t[I]);re(r,{animation:e})}else if(n[N]>t[N]){const r=t[k]+(n[N]-t[N]);re(r,{animation:e})}})),de=(0,Pt.A)((()=>{M&&!1!==y&&q(!K)}));t.useEffect((()=>{const e=(0,Ur.A)((()=>{J.current&&ne()}));let t;const n=(0,Wr.A)(J.current);let r;return n.addEventListener(\"resize\",e),\"undefined\"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),\"undefined\"!=typeof MutationObserver&&(r=new MutationObserver((n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),de()})),r.observe(ee.current,{childList:!0})),()=>{var i,o;e.clear(),n.removeEventListener(\"resize\",e),null==(i=r)||i.disconnect(),null==(o=t)||o.disconnect()}}),[ne,de]),t.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if(\"undefined\"!=typeof IntersectionObserver&&t>0&&M&&!1!==y){const n=e[0],r=e[t-1],i={root:J.current,threshold:.99},o=new IntersectionObserver((e=>{W(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{Y(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[M,y,K,null==d?void 0:d.length]),t.useEffect((()=>{B(!0)}),[]),t.useEffect((()=>{ne()})),t.useEffect((()=>{ce(OX!==H)}),[ce,H]),t.useImperativeHandle(l,(()=>({updateIndicator:ne,updateScrollButtons:de})),[ne,de]);const ue=(0,Kt.jsx)(RX,(0,Tt.A)({},S,{className:(0,We.A)(_.indicator,S.className),ownerState:F,style:(0,Tt.A)({},H,S.style)}));let he=0;const pe=t.Children.map(d,(e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?he:e.props.value;Z.set(n,he);const r=n===A;return he+=1,t.cloneElement(e,(0,Tt.A)({fullWidth:\"fullWidth\"===T,indicator:r&&!V&&ue,selected:r,selectionFollowsFocus:b,onChange:f,textColor:x,value:n},1!==he||!1!==A||e.props.tabIndex?{}:{tabIndex:0}))})),ge=(()=>{const e={};e.scrollbarSizeListener=M?(0,Kt.jsx)(MX,{onChange:le,className:(0,We.A)(_.scrollableX,_.hideScrollbar)}):null;const t=M&&(\"auto\"===y&&(U||$)||!0===y);return e.scrollButtonStart=t?(0,Kt.jsx)(v,(0,Tt.A)({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:o?\"right\":\"left\",onClick:ae,disabled:!U},E,{className:(0,We.A)(_.scrollButtons,E.className)})):null,e.scrollButtonEnd=t?(0,Kt.jsx)(v,(0,Tt.A)({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:m,direction:o?\"left\":\"right\",onClick:se,disabled:!$},E,{className:(0,We.A)(_.scrollButtons,E.className)})):null,e})();return(0,Kt.jsxs)(AX,(0,Tt.A)({className:(0,We.A)(_.root,u),ownerState:F,ref:n,as:h},R,{children:[ge.scrollButtonStart,ge.scrollbarSizeListener,(0,Kt.jsxs)(TX,{className:_.scroller,ownerState:F,style:{overflow:Q.overflow,[O?\"margin\"+(o?\"Left\":\"Right\"):\"marginBottom\"]:D?void 0:-Q.scrollbarWidth},ref:J,children:[(0,Kt.jsx)(DX,{\"aria-label\":a,\"aria-labelledby\":s,\"aria-orientation\":\"vertical\"===m?\"vertical\":null,className:_.flexContainer,ownerState:F,onKeyDown:e=>{const t=ee.current,n=(0,dh.A)(t).activeElement;if(\"tab\"!==n.getAttribute(\"role\"))return;let r=\"horizontal\"===m?\"ArrowLeft\":\"ArrowUp\",i=\"horizontal\"===m?\"ArrowRight\":\"ArrowDown\";switch(\"horizontal\"===m&&o&&(r=\"ArrowRight\",i=\"ArrowLeft\"),e.key){case r:e.preventDefault(),xX(t,n,EX);break;case i:e.preventDefault(),xX(t,n,SX);break;case\"Home\":e.preventDefault(),xX(t,null,SX);break;case\"End\":e.preventDefault(),xX(t,null,EX)}},ref:ee,role:\"tablist\",children:pe}),V&&ue]}),ge.scrollButtonEnd]}))})),IX=kX;function NX(e){return(0,un.Ay)(\"MuiTab\",e)}const PX=(0,qt.A)(\"MuiTab\",[\"root\",\"labelIcon\",\"textColorInherit\",\"textColorPrimary\",\"textColorSecondary\",\"selected\",\"disabled\",\"fullWidth\",\"wrapped\",\"iconWrapper\"]),LX=[\"className\",\"disabled\",\"disableFocusRipple\",\"fullWidth\",\"icon\",\"iconPosition\",\"indicator\",\"label\",\"onChange\",\"onClick\",\"onFocus\",\"selected\",\"selectionFollowsFocus\",\"textColor\",\"value\",\"wrapped\"],FX=(0,Ot.Ay)(mn,{name:\"MuiTab\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,vn.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,Tt.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:\"relative\",minHeight:48,flexShrink:0,padding:\"12px 16px\",overflow:\"hidden\",whiteSpace:\"normal\",textAlign:\"center\"},t.label&&{flexDirection:\"top\"===t.iconPosition||\"bottom\"===t.iconPosition?\"column\":\"row\"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${PX.iconWrapper}`]:(0,Tt.A)({},\"top\"===t.iconPosition&&{marginBottom:6},\"bottom\"===t.iconPosition&&{marginTop:6},\"start\"===t.iconPosition&&{marginRight:e.spacing(1)},\"end\"===t.iconPosition&&{marginLeft:e.spacing(1)})},\"inherit\"===t.textColor&&{color:\"inherit\",opacity:.6,[`&.${PX.selected}`]:{opacity:1},[`&.${PX.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},\"primary\"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${PX.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${PX.disabled}`]:{color:(e.vars||e).palette.text.disabled}},\"secondary\"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${PX.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${PX.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:\"none\"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),_X=t.forwardRef((function(e,n){const r=(0,It.A)({props:e,name:\"MuiTab\"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c=\"top\",indicator:d,label:u,onChange:h,onClick:p,onFocus:g,selected:f,selectionFollowsFocus:m,textColor:v=\"inherit\",value:y,wrapped:b=!1}=r,w=(0,At.A)(r,LX),C=(0,Tt.A)({},r,{disabled:o,disableFocusRipple:a,selected:f,icon:!!l,iconPosition:c,label:!!u,fullWidth:s,textColor:v,wrapped:b}),S=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:[\"root\",o&&a&&\"labelIcon\",`textColor${(0,vn.A)(n)}`,r&&\"fullWidth\",i&&\"wrapped\",s&&\"selected\",l&&\"disabled\"],iconWrapper:[\"iconWrapper\"]};return(0,Rt.A)(c,NX,t)})(C),E=l&&u&&t.isValidElement(l)?t.cloneElement(l,{className:(0,We.A)(S.iconWrapper,l.props.className)}):l;return(0,Kt.jsxs)(FX,(0,Tt.A)({focusRipple:!a,className:(0,We.A)(S.root,i),ref:n,role:\"tab\",\"aria-selected\":f,disabled:o,onClick:e=>{!f&&h&&h(e,y),p&&p(e)},onFocus:e=>{m&&!f&&h&&h(e,y),g&&g(e)},ownerState:C,tabIndex:f?0:-1},w,{children:[\"top\"===c||\"start\"===c?(0,Kt.jsxs)(t.Fragment,{children:[E,u]}):(0,Kt.jsxs)(t.Fragment,{children:[u,E]}),d]}))})),zX=e=>{let{children:t,value:n,index:r}=e;return i().createElement(\"div\",{role:\"tabpanel\",hidden:n!==r,id:\"tabpanel-\".concat(n),\"aria-labelledby\":\"tab-\".concat(n)},n===r&&i().createElement(Gn,{sx:{p:3,padding:0}},t))},GX=e=>{let{tabs:t,activeTab:n,children:r,onTabChange:o=(()=>{})}=e;return i().createElement(\"div\",null,i().createElement(Gn,{sx:{width:\"100%\",borderBottom:1,borderColor:\"divider\"}},i().createElement(IX,{value:n,onChange:(e,t)=>{o(t)},variant:\"fullWidth\"},t.map(((e,t)=>i().createElement(_X,{key:e.id,label:e.title,sx:{color:n===e.id?\"primary.main\":\"\".concat(Ds.palette.grey[200])}}))))),t.map((e=>i().createElement(zX,{value:n,index:e.id},t[n].content,r&&i().Children.map(r,(e=>i().cloneElement(e,{activeTab:n,onTabChange:o})))))))},VX=(0,Cp.A)((0,Kt.jsx)(\"path\",{d:\"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z\"}),\"DownloadOutlined\"),BX=(0,Ot.Ay)(Gn)((e=>{let{theme:t}=e;return{position:\"relative\",border:\"1px solid \".concat(t.palette.grey[100],\" \"),height:\"42px\",borderRadius:t.spacing(1),\"& .file-input\":{borderColor:t.palette.grey[100],visibility:\"hidden\"},\"& .MuiButtonBase-root\":{backgroundColor:t.palette.primary.main,position:\"absolute\",height:\"40px !important\",borderRadius:\"8px 0px 0px 8px\",borderRight:\"1px solid \".concat(t.palette.grey[100])},\"& .MuiButton-containedPrimary:hover\":{},\"&.file-upload\":{\"& .file-upload-btn:hover\":{}},\"& .browse-file\":{\"& .MuiButton-text:hover\":{backgroundColor:\"transparent\"}},\"& .file-custom-label\":{position:\"absolute\",left:\"111px\",top:\"8px\",width:\"250px\",whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},\"& .remove-file\":{position:\"absolute\",right:\"40px\",top:\"8px\",cursor:\"pointer\",color:t.palette.grey[200]}}})),HX=e=>{let{onUploadSuccess:n=(()=>{}),onRemoveHandler:r=(()=>{}),customClassName:o=\"\",buttonType:a=Te.containedButton,buttonLabel:s=Te.chooseFile,allowedFileExtension:l=[]}=e;const c=(0,t.useRef)(null),{selectedFile:d,handleDrop:u,handleDragOver:h,handleFileInputChange:p,handleOnFileClose:g}=kQ(l);return(0,t.useEffect)((()=>{d&&n(d),!d&&r()}),[d]),i().createElement(BX,{className:o},i().createElement(Hn,{buttonName:s,fullwidth:!1,variant:a,onButtonClick:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.click()},className:\"file-upload-btn\"}),i().createElement(Gn,{onDrop:u,onDragOver:h},i().createElement(\"input\",{accept:l,type:\"file\",ref:c,onChange:p,className:\"file-input\",multiple:!1,\"data-testid\":\"fileUploader\"})),d?i().createElement(i().Fragment,null,i().createElement(cl,{className:\"file-custom-label\"},d.name),i().createElement(cl,{component:\"span\",className:\"remove-file\",onClick:e=>g(e),\"data-testid\":\"remove-file\"},i().createElement(Zv.A,null))):i().createElement(cl,{className:\"file-custom-label\"},Te.noFileChosen))},jX=i().memo(HX);function UX(e){return(0,un.Ay)(\"MuiLinearProgress\",e)}const WX=(0,qt.A)(\"MuiLinearProgress\",[\"root\",\"colorPrimary\",\"colorSecondary\",\"determinate\",\"indeterminate\",\"buffer\",\"query\",\"dashed\",\"dashedColorPrimary\",\"dashedColorSecondary\",\"bar\",\"barColorPrimary\",\"barColorSecondary\",\"bar1Indeterminate\",\"bar1Determinate\",\"bar1Buffer\",\"bar2Indeterminate\",\"bar2Buffer\"]),$X=[\"className\",\"color\",\"value\",\"valueBuffer\",\"variant\"];let YX,KX,qX,QX,XX,ZX,JX=e=>e;const eZ=(0,$t.i7)(YX||(YX=JX`\n  0% {\n    left: -35%;\n    right: 100%;\n  }\n\n  60% {\n    left: 100%;\n    right: -90%;\n  }\n\n  100% {\n    left: 100%;\n    right: -90%;\n  }\n`)),tZ=(0,$t.i7)(KX||(KX=JX`\n  0% {\n    left: -200%;\n    right: 100%;\n  }\n\n  60% {\n    left: 107%;\n    right: -8%;\n  }\n\n  100% {\n    left: 107%;\n    right: -8%;\n  }\n`)),nZ=(0,$t.i7)(qX||(qX=JX`\n  0% {\n    opacity: 1;\n    background-position: 0 -23px;\n  }\n\n  60% {\n    opacity: 0;\n    background-position: 0 -23px;\n  }\n\n  100% {\n    opacity: 1;\n    background-position: -200px -23px;\n  }\n`)),rZ=(e,t)=>\"inherit\"===t?\"currentColor\":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:\"light\"===e.palette.mode?(0,Mt.a)(e.palette[t].main,.62):(0,Mt.e$)(e.palette[t].main,.5),iZ=(0,Ot.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,vn.A)(n.color)}`],t[n.variant]]}})((({ownerState:e,theme:t})=>(0,Tt.A)({position:\"relative\",overflow:\"hidden\",display:\"block\",height:4,zIndex:0,\"@media print\":{colorAdjust:\"exact\"},backgroundColor:rZ(t,e.color)},\"inherit\"===e.color&&\"buffer\"!==e.variant&&{backgroundColor:\"none\",\"&::before\":{content:'\"\"',position:\"absolute\",left:0,top:0,right:0,bottom:0,backgroundColor:\"currentColor\",opacity:.3}},\"buffer\"===e.variant&&{backgroundColor:\"transparent\"},\"query\"===e.variant&&{transform:\"rotate(180deg)\"}))),oZ=(0,Ot.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Dashed\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,vn.A)(n.color)}`]]}})((({ownerState:e,theme:t})=>{const n=rZ(t,e.color);return(0,Tt.A)({position:\"absolute\",marginTop:0,height:\"100%\",width:\"100%\"},\"inherit\"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:\"10px 10px\",backgroundPosition:\"0 -23px\"})}),(0,$t.AH)(QX||(QX=JX`\n    animation: ${0} 3s infinite linear;\n  `),nZ)),aZ=(0,Ot.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Bar1\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,vn.A)(n.color)}`],(\"indeterminate\"===n.variant||\"query\"===n.variant)&&t.bar1Indeterminate,\"determinate\"===n.variant&&t.bar1Determinate,\"buffer\"===n.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,Tt.A)({width:\"100%\",position:\"absolute\",left:0,bottom:0,top:0,transition:\"transform 0.2s linear\",transformOrigin:\"left\",backgroundColor:\"inherit\"===e.color?\"currentColor\":(t.vars||t).palette[e.color].main},\"determinate\"===e.variant&&{transition:\"transform .4s linear\"},\"buffer\"===e.variant&&{zIndex:1,transition:\"transform .4s linear\"})),(({ownerState:e})=>(\"indeterminate\"===e.variant||\"query\"===e.variant)&&(0,$t.AH)(XX||(XX=JX`\n      width: auto;\n      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n    `),eZ))),sZ=(0,Ot.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Bar2\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,vn.A)(n.color)}`],(\"indeterminate\"===n.variant||\"query\"===n.variant)&&t.bar2Indeterminate,\"buffer\"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,Tt.A)({width:\"100%\",position:\"absolute\",left:0,bottom:0,top:0,transition:\"transform 0.2s linear\",transformOrigin:\"left\"},\"buffer\"!==e.variant&&{backgroundColor:\"inherit\"===e.color?\"currentColor\":(t.vars||t).palette[e.color].main},\"inherit\"===e.color&&{opacity:.3},\"buffer\"===e.variant&&{backgroundColor:rZ(t,e.color),transition:\"transform .4s linear\"})),(({ownerState:e})=>(\"indeterminate\"===e.variant||\"query\"===e.variant)&&(0,$t.AH)(ZX||(ZX=JX`\n      width: auto;\n      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n    `),tZ))),lZ=t.forwardRef((function(e,t){const n=(0,It.A)({props:e,name:\"MuiLinearProgress\"}),{className:r,color:i=\"primary\",value:o,valueBuffer:a,variant:s=\"indeterminate\"}=n,l=(0,At.A)(n,$X),c=(0,Tt.A)({},n,{color:i,variant:s}),d=(e=>{const{classes:t,variant:n,color:r}=e,i={root:[\"root\",`color${(0,vn.A)(r)}`,n],dashed:[\"dashed\",`dashedColor${(0,vn.A)(r)}`],bar1:[\"bar\",`barColor${(0,vn.A)(r)}`,(\"indeterminate\"===n||\"query\"===n)&&\"bar1Indeterminate\",\"determinate\"===n&&\"bar1Determinate\",\"buffer\"===n&&\"bar1Buffer\"],bar2:[\"bar\",\"buffer\"!==n&&`barColor${(0,vn.A)(r)}`,\"buffer\"===n&&`color${(0,vn.A)(r)}`,(\"indeterminate\"===n||\"query\"===n)&&\"bar2Indeterminate\",\"buffer\"===n&&\"bar2Buffer\"]};return(0,Rt.A)(i,UX,t)})(c),u=Un(),h={},p={bar1:{},bar2:{}};if((\"determinate\"===s||\"buffer\"===s)&&void 0!==o){h[\"aria-valuenow\"]=Math.round(o),h[\"aria-valuemin\"]=0,h[\"aria-valuemax\"]=100;let e=o-100;u&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(\"buffer\"===s&&void 0!==a){let e=(a||0)-100;u&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,Kt.jsxs)(iZ,(0,Tt.A)({className:(0,We.A)(d.root,r),ownerState:c,role:\"progressbar\"},h,{ref:t},l,{children:[\"buffer\"===s?(0,Kt.jsx)(oZ,{className:d.dashed,ownerState:c}):null,(0,Kt.jsx)(aZ,{className:d.bar1,ownerState:c,style:p.bar1}),\"determinate\"===s?null:(0,Kt.jsx)(sZ,{className:d.bar2,ownerState:c,style:p.bar2})]}))})),cZ=lZ,dZ=(0,Ot.Ay)(cZ)((e=>{let{theme:t}=e;return{[\"&.\".concat(WX.colorPrimary)]:{height:15,borderRadius:14},[\"& .\".concat(WX.bar)]:{height:7,borderRadius:10,marginTop:\"4px\",marginLeft:\"5px\",width:\"98%\"}}}));function uZ(){return uZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uZ.apply(this,arguments)}const hZ=e=>{const t=Ng();return i().createElement(Gn,{sx:{display:\"flex\",alignItems:\"center\"}},i().createElement(Gn,{sx:{minWidth:35,marginRight:\"14px\"}},i().createElement(cl,{className:\"\".concat(t.loaderLabel,\" \").concat(100===e.value&&t.greenTextColor),variant:\"body2\"},\"\".concat(Math.round(e.value),\"%\"))),i().createElement(Gn,{sx:{width:\"100%\",mr:1}},i().createElement(dZ,uZ({variant:\"determinate\"},e,{classes:100==e.value?{colorPrimary:t.colorComplete,bar:t.barComplete}:{colorPrimary:t.colorProgress,bar:t.barProgress}}))))},pZ=i().memo(hZ),gZ=e=>{let{onDownload:n=(()=>{}),onUpload:r=(()=>{}),onFileSelect:o=(e=>{}),showProgress:a=!1}=e;const s=Ng(),[l,c]=(0,t.useState)(),[d,u]=(0,t.useState)(0),[h,p]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{o(l)}),[l]),(0,t.useEffect)((()=>{a&&!h&&p(a)}),[a]),function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=(0,t.useRef)();(0,t.useEffect)((()=>{i.current=e})),(0,t.useEffect)((()=>{if(null!==n&&r){const e=setInterval((function(){i.current()}),n);return()=>clearInterval(e)}}),[n,r])}((()=>{u((e=>e>=100?100:e+10))}),800,h),i().createElement(Gn,{sx:{width:\"100%\",marginTop:\"20px\"}},i().createElement(ZQ,null,i().createElement(rl,{mb:3,direction:\"row\",style:{marginBottom:\"0px\"}},i().createElement(\"div\",{className:\"circle\"},i().createElement(cl,{className:\"boxCount\"},\"1\")),i().createElement(cl,{className:\"boxtTitle\",width:\"70%\"},Te.downloadLabel,\" \"),i().createElement(Hn,{startIcon:i().createElement(VX,null),buttonName:Te.download,variant:\"outlined\",className:s.cancelButton,disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:e=>{n()}}))),i().createElement(ZQ,null,i().createElement(eX,{count:2,isCircle:!0,label:Te.uploadLabel}),i().createElement(rl,{direction:\"column\",mb:4},i().createElement(jX,{onUploadSuccess:e=>{e&&c(e)},onRemoveHandler:()=>{p(!1),u(0)},allowedFileExtension:De.allowedDocumentFileTypes}),i().createElement(\"div\",{style:{display:\"flex\",justifyContent:\"flex-end\",marginTop:\"40px\"}},h?i().createElement(Gn,{sx:{width:\"100%\"}},i().createElement(rl,{mb:3,direction:\"row\",style:{marginBottom:\"0px\"}},100===d&&i().createElement(\"div\",{className:\"circle\"},i().createElement(cl,{className:\"boxCount\"},i().createElement(\"img\",{src:qV.ProgressComplete,alt:\"progress complete\"}))),i().createElement(cl,{className:\"uploadProgress \".concat(100===d&&s.greenTextColor),width:\"70%\"},100===d?Te.uploadComplete:Te.uploadProgress)),i().createElement(pZ,{value:d})):i().createElement(Hn,{variant:\"contained\",buttonName:Te.upload,fullwidth:!1,type:\"submit\",onButtonClick:()=>{r()}})))))},fZ={numberOfItems:\"\",GTIN:\"\",weight:\"\",UOM:[],points:\"\",tabCount:\"\",selectedUOM:\"\",selecteDependency:\"\",SelectedDependencies:[],editableControl:!1},mZ=e=>{let{isOpenDrawer:n=!0,isEditable:r=!1,data:o=null,onRequestClose:a=(()=>{})}=e;const s=Ng(),{showLoader:l,hideLoader:c}=Jv(),{User:d}=Ue(),[u,h]=(0,t.useState)(0),[p,g]=(0,t.useState)([]),[f,m]=(0,t.useState)([]),[v,y]=(0,t.useState)(String),[b,w]=(0,t.useState)(String),[C]=(0,t.useState)([{...fZ,headerName:Te.shipperDetails,dependency:nX,categoryName:ze.SHIPPER},{...fZ,headerName:Te.cartonDetails,dependency:tX,categoryName:ze.CARTON},{...fZ,headerName:Te.displayBoxDetails,dependency:rX,categoryName:ze.BOX},{...fZ,headerName:Te.unitDetails,dependency:tX,categoryName:ze.UNIT}]),[S,E]=(0,t.useState)({brand:\"\",sku:\"\",sapCode:\"\",bannerProvince:[],controls:C}),[x,A]=(0,t.useState)(\"\"),[T,D]=(0,t.useState)(!1);function R(e){const t=e.headerName.trim().toLowerCase(),n=null==o?void 0:o.scan_points_catalogue_types.find((e=>t.includes(e.package_type.toLowerCase()))),r=function(e){switch(e){case Te.shipperDetails.toLowerCase():return ze.SHIPPER.toLowerCase();case Te.cartonDetails.toLowerCase():return ze.CARTON.toLowerCase();case Te.displayBoxDetails.toLowerCase():return ze.BOX.toLowerCase();default:return ze.UNIT.toLowerCase()}}(t),i=n?n.package_type.toLowerCase():r,a=function(e){switch(e){case\"shipper\":return Te.shipperDetails;case\"carton\":return Te.cartonDetails;case\"box\":return Te.displayBoxDetails;default:return Te.unitDetails}}(i),s=function(e){switch(e){case\"shipper\":return ze.SHIPPER;case\"carton\":return ze.CARTON;case\"box\":return ze.BOX;default:return ze.UNIT}}(i),l=function(e){switch(e){case\"shipper\":return nX;case\"carton\":default:return tX;case\"box\":return rX}}(i);return n?{headerName:a,numberOfItems:n.number_of_items.toString(),GTIN:n.gtins,weight:n.weight.toString(),UOM:[{Unit:n.uom}],points:n.points.toString(),dependency:n.dependencies||[],tabCount:\"\",selectedUOM:n.uom,selecteDependency:\"\",categoryName:s,SelectedDependencies:n.dependencies,editableControl:!1}:{...fZ,headerName:a,dependency:l,categoryName:s,editableControl:!0}}(0,t.useEffect)((()=>{M()}),[]),(0,t.useEffect)((()=>{!async function(){if(r){null!=o&&o.id&&y(o.id),null!=o&&o.brand_name?S.brand=o.brand_name:S.brand=\"\";const e=C.map(R);E({...S,controls:e})}else E({...S,controls:C})}()}),[r]);const M=async()=>{try{let e=await(e=>Hv.getInstances().getApiService(\"\".concat(Uv(),\"/admin/products\"),Bv.GET,{},{authorization:\"Bearer \".concat(e.AccessToken)}))(d);null!=e&&(null==e?void 0:e.length)>0&&g(e)}catch(e){}},O=()=>{a(!0)},k=(0,zA.debounce)((e=>{!function(e){r&&(e.brand=null==o?void 0:o.brand_name,e.sku=null==o?void 0:o.sku,e.sapCode=null==o?void 0:o.sap_code);const t=function(e){const t=[];for(const i of e){var n,r;const e=I(i.SelectedDependencies),o=N(i.GTIN);if(o.hasDuplicate)return mt.error(Te.gtinDuplicateError),null;t.push({gtins:o.values,package_type:null===(n=i.categoryName)||void 0===n?void 0:n.toUpperCase(),number_of_items:P(i.numberOfItems),dependencies:e,uom:null===(r=i.selectedUOM)||void 0===r?void 0:r.toUpperCase(),weight:P(i.weight),points:P(i.points)})}return t}(S.controls);if(!t)return;if(!function(e){for(const t of e)for(const n of t.dependencies){const t=e.find((e=>e.package_type===n));if(t&&!L(t,n))return mt.error(\"Required all fields of \"+oX()(n)),!1}return!0}(t))return;if(!function(e){for(const t of e)if(!F(t)){const e=t.package_type.toUpperCase()===ze.UNIT.toUpperCase()?\"Weight, UOM, Points, GTIN are required for \"+t.package_type:\"Number of items, Weight, UOM, Points,GTIN are required for \"+t.package_type;return mt.error(e),!1}return!0}(t))return;const n=t.filter((e=>!(0===e.gtins.length&&0===e.number_of_items&&0===e.weight&&0===e.points&&\"\"===e.uom)));_(e,n)}(e)}),500);function I(e){return e.map((e=>{let t=e.toString().toUpperCase().trim();return t===ze.DISPLAYBOX.toUpperCase()?ze.BOX.toUpperCase():t})).filter((e=>\"\"!==e))}function N(e){const t=e?e.toString().split(\",\"):[],n=t.some(((e,n)=>t.indexOf(e)!==n));return{values:t,hasDuplicate:n}}function P(e){return\"\"!==(null==e?void 0:e.trim())?parseInt(e):0}function L(e,t){const n=t.toUpperCase()===ze.UNIT.toUpperCase(),r=[e.gtins.length>0,\"\"!==e.uom.trim(),e.weight>0,e.points>0];return n||r.push(e.number_of_items>0),r.every(Boolean)}function F(e){const t=e.package_type.toUpperCase()===ze.UNIT.toUpperCase();let n;return n=!(t&&(e.gtins.length>0||\"\"!==e.uom||e.weight>0||e.points>0)||!t&&(e.gtins.length>0||\"\"!==e.uom||e.weight>0||e.points>0||e.dependencies.length>0||void 0!==e.number_of_items&&e.number_of_items>0))||(t?e.gtins.length>0&&\"\"!==e.uom&&e.weight>0&&e.points>0:e.gtins.length>0&&\"\"!==e.uom&&e.weight>0&&e.points>0&&void 0!==e.number_of_items&&e.number_of_items>0),n}const _=async(e,t)=>{const n={brand_name:e.brand,sku:e.sku,sku_id:b,sap_code:e.sapCode,scan_enabled:!0,scan_points_catalogue_types:t};r&&Object.assign(n,{id:v});try{l();const e=r?await((e,t)=>{return Hv.getInstances().getApiService((n=e.id,\"\".concat(Uv(),\"/admin/points/catalogue/\").concat(n)),Bv.PUT,e,{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)});var n})(n,d):await((e,t)=>Hv.getInstances().getApiService(\"\".concat(Uv(),\"/admin/points/catalogue\"),Bv.POST,e,{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)}))(n,d);void 0!==(null==e?void 0:e.id)?(r?mt.success(\"Record updated successfully\"):mt.success(\"Record added successfully\"),a(!0)):mt.error(e.errorMessage),c()}catch(e){c(),mt.error(e.message)}},z=(e,t,n,r,i)=>{const o=e.target.value.replace(/[^\\d]/g,\"\");_A(t,n,o),r===Te.numberOfItems?S.controls[i].numberOfItems=o:r===Te.weight?S.controls[i].weight=o:r===Te.points&&(S.controls[i].points=o)},G=(e,t,n,r)=>{_A(t,r,e.target.value),S.controls[n].GTIN=e.target.value};return i().createElement(Ps,{isDrawerOpen:n,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\"},r?Te.editProduct:Te.addProduct),i().createElement(gl,{\"aria-label\":\"close\",onClick:()=>a(!1),\"data-testid\":\"closeIcon\"},i().createElement(Zv.A,null))),i().createElement(GX,{tabs:Ve,activeTab:u,onTabChange:e=>{h(e)}},0===u?i().createElement(Gn,{className:\"\".concat(s.scrollCard,\" scrollable\")},i().createElement(qu,{initialValues:S,validationSchema:r?\"\":Zf,enableReinitialize:!0,onSubmit:(e,t)=>{k(e)}},(e=>{var t;let{values:n,setFieldValue:a}=e;return i().createElement(th,{className:\"popupContent\"},i().createElement(ZQ,null,i().createElement(eX,{label:Te.addBrand,isCircle:!1}),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.brand),i().createElement(_g,{name:\"brand\",labelKey:\"productName\",options:p,value:null!=o&&o.brand_name&&r?null==o?void 0:o.brand_name:n.brand,isDisabled:r,defaultLabel:Te.BRAND_PLACEHOLDER,onChange:(e,t)=>{_A(a,e,t.productName),_A(a,\"skuName\",\"\"),m([]),w(\"\"),y(t.productId),(e=>{const t=p.find((t=>(null==t?void 0:t.productName)===e));m(null==t?void 0:t.sku)})(t.productName)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"brand\"}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.sku),i().createElement(_g,{name:\"sku\",options:f,labelKey:\"skuName\",value:null!=o&&o.sku&&r?null==o?void 0:o.sku:n.sku,isDisabled:r,defaultLabel:Te.SKU_PLACEHOLDER,onChange:(e,t)=>{_A(a,e,t.skuName),w(t.skuId)}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"sku\"})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.sapCode),i().createElement(eh,{type:\"text\",name:\"sapCode\",className:\"inputField\",placeholder:Te.SAP_PLACEHOLDER,value:null!=o&&o.sap_code&&r?null==o?void 0:o.sap_code:n.sapCode,defaultValue:n.sapCode,disabled:r,onChange:e=>z(e,a,\"sapCode\",\"\",0)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"sapCode\"}))),i().createElement(Gn,{width:\"100%\"}))),null===(t=S.controls)||void 0===t?void 0:t.map(((e,t)=>{var o,s,l,c,d,u;return i().createElement(\"div\",{key:\"Control-\".concat(e.headerName,\"-\").concat(t)},(null==e?void 0:e.headerName)!==Te.unitDetails?i().createElement(ZQ,null,i().createElement(eX,{label:null==e?void 0:e.headerName,isCircle:!0,count:t+1}),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.numberOfItems),i().createElement(eh,{type:\"text\",name:\"numberOfItems\".concat(t),className:\"inputField\",placeholder:Te.NUMBER_ITEM_PLACEHOLDER,value:null==e?void 0:e.numberOfItems,disabled:r&&!(null!=e&&e.editableControl),onChange:e=>z(e,a,\"numberOfItems\".concat(t),Te.numberOfItems,t)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"numberOfItems\".concat(t)}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.GTIN),i().createElement(eh,{type:\"text\",name:\"GTIN\".concat(t),className:\"inputField\",placeholder:Te.GTIN_PLACEHOLDER,value:null==e?void 0:e.GTIN,onChange:e=>G(e,a,t,\"GTIN\".concat(t))}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"GTIN\".concat(t)})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.weight),i().createElement(eh,{type:\"text\",name:\"weight\".concat(t),className:\"inputField\",placeholder:Te.WEIGHT_PLACEHOLDER,value:null==e?void 0:e.weight,disabled:r&&!(null!=e&&e.editableControl),onChange:e=>z(e,a,\"weight\".concat(t),Te.weight,t)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"weight\".concat(t)}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.UOM),i().createElement(_g,{key:\"UOM-\".concat(e.headerName,\"-\").concat(t),name:\"UOM\".concat(t),labelKey:\"name\",options:Ge,value:r&&null!=e&&null!==(o=e.UOM[0])&&void 0!==o&&o.Unit?null==e||null===(s=e.UOM[0])||void 0===s?void 0:s.Unit:n[\"UOM\".concat(t)]||[],isDisabled:r&&!(null!=e&&e.editableControl),defaultLabel:Te.UOM_PLACEHOLDER,onChange:(t,n)=>{_A(a,t,n.name),e.selectedUOM=n.name}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"UOM\".concat(t)})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.points),i().createElement(eh,{type:\"text\",name:\"points\".concat(t),className:\"inputField\",placeholder:Te.POINTS_PLACEHOLDER,value:null==e?void 0:e.points,onChange:e=>z(e,a,\"points\".concat(t),Te.points,t)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"points\".concat(t)}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.dependency),i().createElement(CB,{key:\"Dependency-\".concat(e.headerName,\"-\").concat(t),name:\"dependency\".concat(t),labelKeys:[\"dependencyName\",\"keys\"],options:null==e?void 0:e.dependency,isSortReq:!0,searchOn:(null==e||null===(l=e.dependency)||void 0===l?void 0:l.length)>0,selectAll:(null==e||null===(c=e.dependency)||void 0===c?void 0:c.length)>0,value:r?null==e?void 0:e.SelectedDependencies:n[\"dependency\".concat(t)]||[],isDisabled:r&&!(null!=e&&e.editableControl),defaultLabel:Te.DEPENDENCY_PLACEHOLDER,onChange:(t,n)=>{_A(a,t,n),e.SelectedDependencies=[],e.SelectedDependencies=n}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"dependency\".concat(t)}))))):i().createElement(ZQ,null,i().createElement(eX,{label:null==e?void 0:e.headerName,isCircle:!0,count:t+1}),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.weight),i().createElement(eh,{type:\"text\",name:\"weight\".concat(t),className:\"inputField\",placeholder:Te.WEIGHT_PLACEHOLDER,value:e.weight,disabled:r&&!(null!=e&&e.editableControl),onChange:e=>z(e,a,\"weight\".concat(t),Te.weight,t)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"weight\".concat(t)}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.UOM),i().createElement(_g,{key:\"UOM-\".concat(e.headerName,\"-\").concat(t),name:\"UOM\".concat(t),labelKey:\"name\",options:Ge,value:r&&null!=e&&null!==(d=e.UOM[0])&&void 0!==d&&d.Unit?null==e||null===(u=e.UOM[0])||void 0===u?void 0:u.Unit:n[\"UOM\".concat(t)]||[],isSortReq:!0,isDisabled:r&&!(null!=e&&e.editableControl),defaultLabel:Te.UOM_PLACEHOLDER,onChange:(t,n)=>{_A(a,t,n.name),e.selectedUOM=n.name}}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"UOM\".concat(t)})))),i().createElement(rl,{mb:2,direction:\"row\",gap:2},i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.GTIN),i().createElement(eh,{type:\"text\",name:\"GTIN\".concat(t),className:\"inputField\",placeholder:Te.GTIN_PLACEHOLDER,value:e.GTIN,onChange:e=>G(e,a,t,\"GTIN\".concat(t))}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"GTIN\".concat(t)}))),i().createElement(Gn,{width:\"100%\"},i().createElement(cl,{variant:\"subtitle2\"},Te.points),i().createElement(eh,{type:\"text\",name:\"points\".concat(t),className:\"inputField\",placeholder:Te.POINTS_PLACEHOLDER,value:e.points,onChange:e=>z(e,a,\"points\".concat(t),Te.points,t)}),i().createElement(El,{error:!0},i().createElement(sh,{name:\"points\".concat(t)}))))))})),i().createElement(Kv,{isEditable:r,onRequestClose:O}))}))):i().createElement(gZ,{onDownload:async()=>{try{let e=await(e=>Hv.getInstances().getApiService(\"\".concat(Uv(),\"/admin/points/catalogue/urls/pre-signed\"),Bv.GET,{},{\"bu-id\":e.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(e.AccessToken)}))(d);null!==e&&window.open(e)}catch(e){mt.error(e.message)}},onUpload:async()=>{const e=new FormData;null!==x&&e.append(\"file\",x);try{D(!0);let t=(await((e,t)=>{return Hv.getInstances().getApiService((n=e,\"\".concat(Uv(),\"/admin/points/catalogue/uploads/urls/pre-signed?file_name=\").concat(n)),Bv.GET,{},{\"country-id\":t.selectedCountry.countryCode,\"user-id\":t.UserDetails.user_id,\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)});var n})(null==x?void 0:x.name,d)).replace(/\\s+/g,\"\");null!==t&&Vv.put(t,e).then((e=>{setTimeout((()=>{D(!1)}),1e3)}))}catch(e){mt.error(e.message)}},showProgress:T,onFileSelect:e=>(e=>{A(e)})(e)}))))},vZ=e=>{let{isOpenDrawer:t=!0,onRequestClose:n=(()=>{}),data:r=null}=e;const o=Ng();if(null===r)return null;const{brand_name:a,sku:s,sap_code:l,scan_points_catalogue_types:c=[]}=r;return i().createElement(Ps,{isDrawerOpen:t,anchor:\"right\"},i().createElement(Gn,{className:\"popupMain\"},i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(cl,{component:\"h1\",variant:\"h1\",className:o.textWrap},a),i().createElement(gl,{className:\"closeIcon\",\"aria-label\":\"close\",onClick:n},i().createElement(Zv.A,null))),i().createElement(Gn,{className:\"\".concat(o.scrollCard,\" scrollable\")},i().createElement(WV,{variant:\"elevation\",elevation:0,className:o.cardMinorElevation},i().createElement($V,{heading:Te.sku,content:s,heading1:Te.sapCode,content2:l,marginTop:1}),i().createElement(Gn,{className:o.spacer})),i().createElement(Gn,{className:o.spacer}),c.map((e=>i().createElement(Gn,{key:e.package_type},e.package_type!==Fe.UNIT?i().createElement(Gn,null,i().createElement(WV,{key:e.package_type,variant:\"elevation\",elevation:0,className:o.cardMinorElevation},i().createElement(cl,{ml:2.7,mt:1.5,mb:-1.5,component:\"body\",variant:\"subtitle1\"},(e=>{switch(e){case Fe.SHIPPER:return Te.shipperDetails;case Fe.BOX:return Te.boxDetails;case Fe.CARTON:return Te.cartonDetails;case Fe.UNIT:return Te.unitDetails;default:return\"\"}})(e.package_type)),i().createElement($V,{heading:e.package_type===Fe.UNIT?\"\":Te.numberOfItem,content:e.package_type===Fe.UNIT?\"\":\"\".concat(e.number_of_items),heading1:Te.gtin,content2:\"\".concat(e.gtins.join(\", \"))}),i().createElement($V,{heading:Te.weight,content:e.weight,heading1:Te.unitOfMeasure,content2:e.uom}),i().createElement($V,{heading:Te.points,content:e.points,heading1:0===e.dependencies.length?\"\":Te.dependency,content2:(0,zA.capitalize)(e.dependencies.join(\",\"))}),i().createElement(Gn,{className:o.spacer})),i().createElement(\"br\",null)):i().createElement(Gn,null,i().createElement(WV,{key:e.package_type,variant:\"elevation\",elevation:0,className:o.cardMinorElevation},i().createElement(cl,{ml:2.7,mt:1.5,mb:-1.5,component:\"body\",variant:\"subtitle1\"},e.package_type===Fe.UNIT?Te.unitDetails:\"\"),i().createElement($V,{heading:Te.weight,content:e.weight,heading1:Te.unitOfMeasure,content2:e.uom}),i().createElement($V,{heading:Te.gtin,content:\"\".concat(e.gtins.join(\", \")),heading1:Te.points,content2:e.points})),i().createElement(\"br\",null))))))))},yZ=i().memo(vZ),bZ=e=>{const[n,r]=(0,t.useState)(!1),[o,a]=(0,t.useState)(!1),[s,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[u,h]=(0,t.useState)(1),[p,g]=(0,t.useState)(0),[f,m]=(0,t.useState)([]),{showLoader:v,hideLoader:y}=Jv(),{User:b=null}=Ue();(0,t.useEffect)((()=>{w()}),[p]);const w=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";try{const t=await((e,t)=>{let{page_no:n,page_size:r=De.PAGE_SIZE,search_key:i=\"\"}=e;return Hv.getInstances().getApiService(\"\".concat(Uv(),\"/admin/points/catalogue\"),Bv.GET,{page_no:n,page_size:r,...i.length>0&&{search_key:i}},{\"bu-id\":t.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(t.AccessToken)})})({page_no:p,search_key:e},b);h(Math.ceil((null==t?void 0:t.totalElements)/De.PAGE_SIZE)),m(null==t?void 0:t.scanPointsCatalogueDtoList)}catch(e){mt.error(e.message)}};return i().createElement(Ig,null,i().createElement(Gn,null,i().createElement(ZV,{title:Te.scanPoint}),i().createElement(rl,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.8,gap:2},i().createElement(rl,{direction:\"row\",gap:2},i().createElement(uT,{placeholderText:\"Search\",onSearchValueChange:e=>{e.length>=3?w(e):0===e.length&&w()}})),i().createElement(rl,{direction:\"row\",justifyContent:\"end\",alignItems:\"center\",gap:2},i().createElement(Hn,{startIcon:i().createElement(KV.A,null),buttonName:Te.downloadData,variant:\"outlined\",color:\"primary\",disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:e=>{(null==f?void 0:f.length)>0&&FA([...f].map((e=>(delete e.scan_points_catalogue_types,{...e,scan_enabled:e.scan_enabled?\"Enabled\":\"Disabled\"}))),\"ScanPointList\",BV())}}),i().createElement(Hn,{buttonName:Te.addProduct,variant:\"contained\",disabled:!1,type:\"button\",fullwidth:!1,onButtonClick:()=>{d(null),a(!1),r(!0)}}))),i().createElement(ei,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(vV,{rows:f,columnDefs:BV((async(e,t)=>{if(-1!==t){const n=f[t];if(null!==e&&e.name===Te.details)l(n);else if(null!==e&&e.name===Te.edit)d(n),r(!0),a(!0);else{n.scan_enabled=!n.scan_enabled;try{v();const e=await((e,t,n)=>Hv.getInstances().getApiService(((e,t)=>\"\".concat(Uv(),\"/admin/points/catalogue/\").concat(e,\"/status?scanEnabled=\").concat(t))(e,t),Bv.PUT,{scanEnabled:t},{\"bu-id\":n.selectedBusinessUnit.bu_id,authorization:\"Bearer \".concat(n.AccessToken)}))(n.id,n.scan_enabled,b);null!=e&&e.message&&(f[t]=n,m([...f])),y()}catch(e){y(),mt.error(e.message)}}}}))})),i().createElement(EV,{totalPageCount:u,pageNo:p,onPageChange:e=>{g(e)},\"data-testid\":\"ScanList-TablePagination\"}),n&&i().createElement(mZ,{isOpenDrawer:n,isEditable:o,data:c,onRequestClose:e=>{r(!1),d(null),l(null),w(),a(!1),e&&g(0)}}),i().createElement(yZ,{data:s,isOpenDrawer:null!==s,onRequestClose:()=>{l(null)}})))},wZ=()=>{const e=ce(),n=ue(),{currentParentPath:r,onRouteChange:o}=Ue();return(0,t.useEffect)((()=>{\"/\"!==e.pathname&&o&&o({pathname:e.pathname,search:e.search}),mt.dismiss()}),[e]),(0,t.useEffect)((()=>{if(r){var t;const i=null==r||null===(t=r.pathname)||void 0===t?void 0:t.toLowerCase();i&&decodeURIComponent(e.pathname.toLowerCase())!==decodeURIComponent(i)&&n(r)}}),[r]),i().createElement(xe,null,i().createElement(Se,{element:i().createElement(Ce,{to:Le.DASHBOARD}),path:Le.ROOT}),i().createElement(Se,{element:i().createElement(XQ,null),path:Le.DASHBOARD}),i().createElement(Se,{path:Le.START_PAGE,element:i().createElement(XQ,null)}),i().createElement(Se,{path:Le.RETAILER_LIST,element:i().createElement(JV,null)}),i().createElement(Se,{path:Le.BANNER_LIST,element:i().createElement(YQ,null)}),i().createElement(Se,{path:Le.SCAN_POINTS_LIST,element:i().createElement(bZ,null)}))};new Set([\"application/x-www-form-urlencoded\",\"multipart/form-data\",\"text/plain\"]);try{window.__reactRouterVersion=\"6\"}catch(e){}new Map;const CZ=t.startTransition;function SZ(e){let{basename:n,children:r,future:i,window:o}=e,a=t.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=b.Pop,l=null,c=d();function d(){return(a.state||{idx:null}).idx}function u(){s=b.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:s,location:p.location,delta:t})}function h(e){let t=\"null\"!==i.location.origin?i.location.origin:i.location.href,n=\"string\"==typeof e?e:D(e);return n=n.replace(/ $/,\"%20\"),E(t,\"No window.location.(origin|href) available to create URL for href: \"+n),new URL(n,t)}null==c&&(c=0,a.replaceState(C({},a.state,{idx:c}),\"\"));let p={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error(\"A history only accepts one active listener\");return i.addEventListener(S,u),l=e,()=>{i.removeEventListener(S,u),l=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=b.Push;let r=T(p.location,e,t);n&&n(r,e),c=d()+1;let u=A(r,c),h=p.createHref(r);try{a.pushState(u,\"\",h)}catch(e){if(e instanceof DOMException&&\"DataCloneError\"===e.name)throw e;i.location.assign(h)}o&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s=b.Replace;let r=T(p.location,e,t);n&&n(r,e),c=d();let i=A(r,c),u=p.createHref(r);a.replaceState(i,\"\",u),o&&l&&l({action:s,location:p.location,delta:0})},go:e=>a.go(e)};return p}((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return T(\"\",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||\"default\")}),(function(e,t){return\"string\"==typeof t?t:D(t)}),null,e)}({window:o,v5Compat:!0}));let s=a.current,[l,c]=t.useState({action:s.action,location:s.location}),{v7_startTransition:d}=i||{},u=t.useCallback((e=>{d&&CZ?CZ((()=>c(e))):c(e)}),[c,d]);return t.useLayoutEffect((()=>s.listen(u)),[s,u]),t.createElement(Ee,{basename:n,children:r,location:l.location,navigationType:l.action,navigator:s,future:i})}var EZ,xZ;hr.flushSync,t.useId,\"undefined\"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration=\"useScrollRestoration\",e.UseSubmit=\"useSubmit\",e.UseSubmitFetcher=\"useSubmitFetcher\",e.UseFetcher=\"useFetcher\",e.useViewTransitionState=\"useViewTransitionState\"}(EZ||(EZ={})),function(e){e.UseFetcher=\"useFetcher\",e.UseFetchers=\"useFetchers\",e.UseScrollRestoration=\"useScrollRestoration\"}(xZ||(xZ={}));const AZ=e=>{let{children:n}=e;const r=Ng(),[o,a]=(0,t.useState)(!1),s=(0,t.useMemo)((()=>({showLoader:()=>{a(!0)},hideLoader:()=>{a(!1)}})),[]);return i().createElement(Be.Provider,{value:s},o&&i().createElement(\"button\",{\"data-testid\":\"loader-overlay\",className:r.loaderOverlay,onClick:e=>{e.stopPropagation(),e.preventDefault()}},i().createElement(\"output\",{\"data-testid\":\"loader-spinner\",className:r.loaderSpinner,\"aria-live\":\"polite\"})),n)};var TZ=n(8750),DZ={};DZ.styleTagTransform=m(),DZ.setAttributes=h(),DZ.insert=d().bind(null,\"head\"),DZ.domAPI=l(),DZ.insertStyleElement=g(),a()(TZ.A,DZ),TZ.A&&TZ.A.locals&&TZ.A.locals;const RZ=e=>((0,t.useEffect)((()=>{var t,n;null!=e&&null!==(t=e.BackOfficeProps)&&void 0!==t&&t.baseurl&&((e,t)=>{try{jv.A.setItem(e,t)}catch(e){console.log(e)}})(_e.BASE_URL,null==e||null===(n=e.BackOfficeProps)||void 0===n?void 0:n.baseurl)}),[]),i().createElement(je.Provider,{value:e},i().createElement(AZ,null,i().createElement(SZ,null,i().createElement(wZ,null),i().createElement(xt,null)))));var MZ=n(8134),OZ=n.n(MZ),kZ=n(5750),IZ=n.n(kZ),NZ=n(7872),PZ=n.n(NZ),LZ=n(7375),FZ=n.n(LZ);DA().extend(IZ()),DA().extend(OZ()),DA().extend(PZ()),DA().extend(FZ());const _Z=KU([\"Your locale has not been found.\",\"Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale\",\"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'\",\"fallback on English locale\"]),zZ={YY:\"year\",YYYY:{sectionType:\"year\",contentType:\"digit\",maxLength:4},M:{sectionType:\"month\",contentType:\"digit\",maxLength:2},MM:\"month\",MMM:{sectionType:\"month\",contentType:\"letter\"},MMMM:{sectionType:\"month\",contentType:\"letter\"},D:{sectionType:\"day\",contentType:\"digit\",maxLength:2},DD:\"day\",Do:{sectionType:\"day\",contentType:\"digit-with-letter\"},d:{sectionType:\"weekDay\",contentType:\"digit\",maxLength:2},dd:{sectionType:\"weekDay\",contentType:\"letter\"},ddd:{sectionType:\"weekDay\",contentType:\"letter\"},dddd:{sectionType:\"weekDay\",contentType:\"letter\"},A:\"meridiem\",a:\"meridiem\",H:{sectionType:\"hours\",contentType:\"digit\",maxLength:2},HH:\"hours\",h:{sectionType:\"hours\",contentType:\"digit\",maxLength:2},hh:\"hours\",m:{sectionType:\"minutes\",contentType:\"digit\",maxLength:2},mm:\"minutes\",s:{sectionType:\"seconds\",contentType:\"digit\",maxLength:2},ss:\"seconds\"},GZ={year:\"YYYY\",month:\"MMMM\",monthShort:\"MMM\",dayOfMonth:\"D\",dayOfMonthFull:\"Do\",weekday:\"dddd\",weekdayShort:\"dd\",hours24h:\"HH\",hours12h:\"hh\",meridiem:\"A\",minutes:\"mm\",seconds:\"ss\",fullDate:\"ll\",keyboardDate:\"L\",shortDate:\"MMM D\",normalDate:\"D MMMM\",normalDateWithWeekday:\"ddd, MMM D\",fullTime:\"LT\",fullTime12h:\"hh:mm A\",fullTime24h:\"HH:mm\",keyboardDateTime:\"L LT\",keyboardDateTime12h:\"L hh:mm A\",keyboardDateTime24h:\"L HH:mm\"},VZ=[\"Missing UTC plugin\",\"To be able to use UTC or timezones, you have to enable the `utc` plugin\",\"Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc\"].join(\"\\n\"),BZ=[\"Missing timezone plugin\",\"To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin\",\"Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone\"].join(\"\\n\");class HZ{constructor({locale:e,formats:t}={}){var n,r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib=\"dayjs\",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:\"[\",end:\"]\"},this.formatTokenMap=zZ,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==DA().utc,this.hasTimezonePlugin=()=>void 0!==DA().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case\"default\":return;case\"system\":return DA().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=DA().tz.guess();return\"UTC\"!==t?DA().tz(e,t):DA()(e)}return DA()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(VZ);return DA().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(VZ);if(!this.hasTimezonePlugin())throw new Error(BZ);const n=void 0!==e&&!e.endsWith(\"Z\");return DA()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=DA().Ls;let t=e[this.locale||\"en\"];return void 0===t&&(_Z(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if(\"UTC\"!==t){const n=e.tz(this.cleanTimezone(t),!0);return(n.$offset??0)===(e.$offset??0)?e:n}return e},this.date=(e,t=\"default\")=>{if(null===e)return null;let n;return n=\"UTC\"===t?this.createUTCDate(e):\"system\"===t||\"default\"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getInvalidDate=()=>DA()(new Date(\"Invalid date\")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?\"UTC\":\"system\"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if(\"UTC\"===t){if(!this.hasUTCPlugin())throw new Error(VZ);return e.utc()}if(\"system\"===t)return e.local();if(!this.hasTimezonePlugin()){if(\"default\"===t)return e;throw new Error(BZ)}return DA().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>\"\"===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||\"en\",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||\"\"),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const i=r&&r.toUpperCase();return n||t[r]||t[i].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,\"YYYY\"),this.isSameMonth=(e,t)=>this.isSame(e,t,\"YYYY-MM\"),this.isSameDay=(e,t)=>this.isSame(e,t,\"YYYY-MM-DD\"),this.isSameHour=(e,t)=>e.isSame(t,\"hour\"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,\"year\"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,\"day\"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,\"year\"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,\"day\"),this.isWithinRange=(e,[t,n])=>e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf(\"year\")),this.startOfMonth=e=>this.adjustOffset(e.startOf(\"month\")),this.startOfWeek=e=>this.adjustOffset(e.startOf(\"week\")),this.startOfDay=e=>this.adjustOffset(e.startOf(\"day\")),this.endOfYear=e=>this.adjustOffset(e.endOf(\"year\")),this.endOfMonth=e=>this.adjustOffset(e.endOf(\"month\")),this.endOfWeek=e=>this.adjustOffset(e.endOf(\"week\")),this.endOfDay=e=>this.adjustOffset(e.endOf(\"day\")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"year\"):e.add(t,\"year\")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"month\"):e.add(t,\"month\")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"week\"):e.add(t,\"week\")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"day\"):e.add(t,\"day\")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"hour\"):e.add(t,\"hour\")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"minute\"):e.add(t,\"minute\")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),\"second\"):e.add(t,\"second\")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set(\"year\",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set(\"month\",t)),this.setDate=(e,t)=>this.adjustOffset(e.set(\"date\",t)),this.setHours=(e,t)=>this.adjustOffset(e.set(\"hour\",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set(\"minute\",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set(\"second\",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set(\"millisecond\",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let i=0,o=n;const a=[];for(;o<r;){const e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=this.addDays(o,1),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),i=[];let o=n;for(;this.isBefore(o,r);)i.push(o),o=this.addYears(o,1);return i},this.dayjs=(n=DA(),(r=e)?(...e)=>n(...e).locale(r):n),this.locale=e,this.formats=(0,Tt.A)({},GZ,t),DA().extend(kA())}getDayOfWeek(e){return e.day()+1}}const jZ=e=>i().createElement(SH,{dateAdapter:HZ},i().createElement(w.a,{theme:Ds},i().createElement(RZ,e)))})(),module.exports=r})();","/*! For license information please see syngentasaksham.js.LICENSE.txt */\n!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],t):\"object\"==typeof exports?exports.syngentasaksham=t(require(\"react\")):e.syngentasaksham=t(e.React)}(self,e=>(()=>{var t,n,r={119:function(e,t,n){!function(e){\"use strict\";var t={1:\"۱\",2:\"۲\",3:\"۳\",4:\"۴\",5:\"۵\",6:\"۶\",7:\"۷\",8:\"۸\",9:\"۹\",0:\"۰\"},n={\"۱\":\"1\",\"۲\":\"2\",\"۳\":\"3\",\"۴\":\"4\",\"۵\":\"5\",\"۶\":\"6\",\"۷\":\"7\",\"۸\":\"8\",\"۹\":\"9\",\"۰\":\"0\"};e.defineLocale(\"fa\",{months:\"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر\".split(\"_\"),monthsShort:\"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر\".split(\"_\"),weekdays:\"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه\".split(\"_\"),weekdaysShort:\"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه\".split(\"_\"),weekdaysMin:\"ی_د_س_چ_پ_ج_ش\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?\"قبل از ظهر\":\"بعد از ظهر\"},calendar:{sameDay:\"[امروز ساعت] LT\",nextDay:\"[فردا ساعت] LT\",nextWeek:\"dddd [ساعت] LT\",lastDay:\"[دیروز ساعت] LT\",lastWeek:\"dddd [پیش] [ساعت] LT\",sameElse:\"L\"},relativeTime:{future:\"در %s\",past:\"%s پیش\",s:\"چند ثانیه\",ss:\"%d ثانیه\",m:\"یک دقیقه\",mm:\"%d دقیقه\",h:\"یک ساعت\",hh:\"%d ساعت\",d:\"یک روز\",dd:\"%d روز\",M:\"یک ماه\",MM:\"%d ماه\",y:\"یک سال\",yy:\"%d سال\"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},dayOfMonthOrdinalParse:/\\d{1,2}م/,ordinal:\"%dم\",week:{dow:6,doy:12}})}(n(95093))},373:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(27476),a=n(79039),i=n(79306),l=n(74488),s=n(94644),u=n(13709),c=n(13763),d=n(39519),p=n(3607),f=s.aTypedArray,g=s.exportTypedArrayMethod,h=r.Uint16Array,m=h&&o(h.prototype.sort),v=!(!m||a(function(){m(new h(2),null)})&&a(function(){m(new h(2),{})})),A=!!m&&!a(function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(p)return p<602;var e,t,n=new h(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});g(\"sort\",function(e){return void 0!==e&&i(e),A?m(this,e):l(f(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))},!A||v)},558:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ve}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(56203),a=n(81970),i=n.n(a),l=n(47767),s=n(96348),u=n(13075),c=n(92416),d=n(46374),p=n(27776),f=(n(74423),n(60739),n(21699),n(42762),n(47839)),g=n(60538),h=n(51545),m=n(80663),v=n(99478),A=n(47225),y=n(27305),E=n(29743),b=n(56254),_=n(43605),C=n(15664),w=n(29191),S=(n(26910),n(36874)),T=n(50275),O=n(32027),D=n(8239),R=n(14073),N=n(88084),L=n(34195),P=n(48506),M=n(64121),x=n(28152),I=n(1988),k=function(e){var t=e.initialForm,n=e.setTargetFilters,o=e.onRequestClose,a=e.headerName,l=e.parentHqAvailable,s=e.countryCode,u=e.conductedByData,c=void 0===u?[]:u,d=e.dropdownData1,p=e.dropdownYearOptions,f=e.cropData,g=void 0===f?[]:f,m=e.hasShowPortfolio,v=e.setSelectedConductedBy,A=e.getEvenTargetHqChilds,y=e.selectedConductedBy,E=e.getEventTypeData,b=e.portfolioData,_=e.resetFilters,w=(0,L.Bd)().t;return i().createElement(N.l1,{initialValues:t,enableReinitialize:!0,onSubmit:function(e,t){n(e),o()}},function(e){var t,n,u,f=e.values,S=e.setFieldValue;return i().createElement(N.lV,{className:\"popupContent floating-filter\"},i().createElement(D.Ay,{container:!0,columns:{xs:12},gap:1,columnSpacing:1,rowGap:1},l&&i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},a),i().createElement(N.D0,{name:\"parentHq\"},function(){return i().createElement(P.A,{options:null==d?void 0:d.parentHqData,onHandleChange:function(e){S(\"parentHq\",e)},selectedOption:null==f?void 0:f.parentHq})}),i().createElement(x.A,{errName:\"territory\"}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"TARGET_FOR_LABEL\"))),i().createElement(N.D0,{name:\"conductedBy\"},function(){return i().createElement(M.A,{name:\"conductedBy\",onChange:function(e,t){S(\"conductedBy\",t),v(t),S(\"hqName\",\"\"),A(t)},options:c,labelKey:\"label\",label:\"conductedBy\",selectedOption:f.conductedBy,value:f.conductedBy,defaultLabel:\"Select Target For\"})}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\",className:y?\"\":\"disabled-field\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"HQ_NAME\"))),i().createElement(N.D0,{name:\"hqName\"},function(){var e;return i().createElement(P.A,{name:\"\".concat(w(\"HQ_NAME\")),options:null!==(e=d.hqNameData)&&void 0!==e?e:[],onHandleChange:function(e){S(\"hqName\",e)},selectedOption:Array.isArray(null==f?void 0:f.hqName)?null==f?void 0:f.hqName:[],disabled:!y})}))),\"KR\"===s?i().createElement(i().Fragment,null,i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},w(\"RETAILER\")),i().createElement(N.D0,{name:\"retailer\"},function(){return i().createElement(M.A,{name:\"retailer\",onChange:function(e,t){S(\"retailer\",t)},options:g,labelKey:\"label\",label:\"retailer\",selectedOption:f.retailer,value:f.retailer,defaultLabel:w(\"SELECT_RETAILER\")})}),i().createElement(x.A,{errName:\"retailer\"}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},w(\"RETAILER_SEGMENT\")),i().createElement(N.D0,{name:\"retailer_segment\"},function(){return i().createElement(M.A,{name:\"retailer_segment\",onChange:function(e,t){S(\"retailer_segment\",t)},options:g,labelKey:\"label\",label:\"retailer_segment\",selectedOption:f.retailer_segment,value:f.retailer_segment,defaultLabel:w(\"SELECT_RETAILER_SEGMENT\")})}),i().createElement(x.A,{errName:\"retailer_segment\"})))):i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},w(\"CROP\")),i().createElement(N.D0,{name:\"crop\"},function(){return i().createElement(M.A,{name:\"crop\",onChange:function(e,t){S(\"crop\",t)},options:g,labelKey:\"label\",label:\"crop\",selectedOption:f.crop,value:f.crop,defaultLabel:w(\"SELECT_CROP\")})}),i().createElement(x.A,{errName:\"crop\"}))),m&&i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},w(\"PORTFOLIO_FIELD\")),i().createElement(N.D0,{name:\"portfolio\"},function(){return i().createElement(M.A,{name:\"portfolio\",onChange:function(e,t){S(\"portfolio\",t),S(\"addvanceEventType\",[]),E(null==t?void 0:t.value)},options:b,labelKey:\"label\",label:\"portfolio\",selectedOption:f.portfolio,value:f.portfolio,defaultLabel:w(\"SELECT_PORTFOLIO\")})}),i().createElement(x.A,{errName:\"portfolio\"}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,null,i().createElement(R.A,{variant:\"subtitle2\"},\"Event Type\"),i().createElement(N.D0,{name:\"addvanceEventType\"},function(){return i().createElement(P.A,{name:\"Event Type\",options:null==d?void 0:d.eventType,onHandleChange:function(e){S(\"addvanceEventType\",e)},selectedOption:null==f?void 0:f.addvanceEventType})}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},null!==(t=w(\"YEAR_LABEL\"))&&void 0!==t?t:\"\"),i().createElement(N.D0,{name:\"year\"},function(){var e,t,n;return i().createElement(M.A,{name:\"year\",onChange:function(e,t){S(\"year\",t)},options:null!==(e=null==p?void 0:p.options)&&void 0!==e?e:[],labelKey:\"label\",label:\"configurationType\",selectedOption:null!==(t=null==f?void 0:f.year)&&void 0!==t?t:\"\",value:null==f?void 0:f.year,defaultLabel:null!==(n=w(\"SELECT_YEAR\"))&&void 0!==n?n:\"\"})}))),i().createElement(D.Ay,{item:!0,xs:2},i().createElement(h.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"Months\"),i().createElement(N.D0,{name:\"months\"},function(){return i().createElement(P.A,{name:\"Months\",options:I.J,onHandleChange:function(e){S(\"months\",e)},selectedOption:null==f?void 0:f.months})})))),i().createElement(r.A,{direction:\"row\",justifyContent:\"end\",pr:4,mb:.5},i().createElement(h.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},i().createElement(C.A,{variant:\"outlined\",buttonName:null!==(n=w(\"CLEAR_FILTERS\"))&&void 0!==n?n:\"\",onButtonClick:function(){return _()},fullwidth:!1,color:\"primary\"}),i().createElement(C.A,{variant:\"contained\",buttonName:null!==(u=w(\"APPLY_FILTERS\"))&&void 0!==u?u:\"\",onButtonClick:function(){},fullwidth:!1,color:\"primary\",type:\"submit\",disabled:(null==f?void 0:f.conductedBy)&&!(null!=f&&f.hqName.length)}))),i().createElement(h.A,{onClick:o,className:\"smart-agro-lite-filter-cross\"},i().createElement(R.A,{className:\"icon-close closeIcon\"})))})};function B(e){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},B(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==B(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Y(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const G=function(e){var t,n,r=e.isFilterOpen,o=void 0!==r&&r,l=e.onRequestClose,s=void 0===l?function(){}:l,u=e.setTargetFilters,c=void 0===u?function(){}:u,d=e.targetFilters,p=void 0===d?function(){}:d,f=(0,a.useContext)(A.v),g=f.BackOfficeProps,m=g.globalStore.User,v=g.baseurl,y=f.triggerShowLoader,E=null===(t=m.selectedCountry)||void 0===t?void 0:t.countryCode,b=null==m||null===(n=m.selectedBusinessUnit)||void 0===n||null===(n=n.userRoleControls)||void 0===n?void 0:n.roleId,_=(0,O.i)(m).hasShowPortfolio,C=(new Date).getFullYear(),w=C+1,D={options:[{label:C.toString(),value:C.toString()},{label:w.toString(),value:w.toString()}]},R=U((0,a.useState)({conductedBy:\"\",parentHq:[],year:\"\",months:[],hqName:[],crop:\"\",portfolio:\"\",addvanceEventType:[],retailer:\"\",retailer_segment:\"\"}),2),N=R[0],L=R[1],P=U((0,a.useState)(\"\"),2),M=P[0],x=P[1],I=U((0,a.useState)(!1),2),B=I[0],F=I[1],H=U((0,a.useState)([]),2),Y=H[0],G=H[1],z=U((0,a.useState)(),2),V=z[0],q=z[1],W=U((0,a.useState)([]),2),Q=W[0],K=W[1],$=U((0,a.useState)([]),2),X=$[0],J=$[1],Z=U((0,a.useState)({eventType:[],hqNameData:[],parentHqData:[],cropData:[],portfolioData:[]}),2),ee=Z[0],te=Z[1],ne=function(e){if(\"country_admin\"==m.UserDetails.role_type_details.role_type_name){var t={sales_hierarchy_id:null==e?void 0:e.id};(0,T.dp)(m,v,y,t).then(function(e){if(e){var t=e.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});te(function(e){return j(j({},e),{},{hqNameData:t})})}}).catch(function(){})}else{var n={targetForId:null==e?void 0:e.id};(0,T.Zi)(m,v,y,n).then(function(e){if(e){var t=e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id}}).sort(function(e,t){return e.label.localeCompare(t.label)});te(function(e){return j(j({},e),{},{hqNameData:t})})}}).catch(function(){})}},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";(0,T.ul)(m,v,y,e).then(function(e){if(e){var t=e.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});te(function(e){return j(j({},e),{},{eventType:t})})}}).catch(function(){})};return(0,a.useEffect)(function(){var e;re(),(0,T.ih)(m,v,y).then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});K(t)}}).catch(function(){}),(0,T.x3)(m,v,y).then(function(e){if(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});J(n)}}).catch(function(){}),(0,T.r5)(m,v,y).then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{id:null==e?void 0:e.sales_hierarchy_id,label:null==e?void 0:e.sales_hierarchy_name,value:null==e?void 0:e.sales_hierarchy_code}});G(t)}}).catch(function(){}),e={roleIds:b},(0,T.bB)(m,v,y,e).then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){F(!0),x(null==e?void 0:e.label);var n=null==e?void 0:e.data.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});te(function(e){return j(j({},e),{},{parentHqData:n})})}}).catch(function(){})},[]),(0,a.useEffect)(function(){Object.keys(p).length?(L({conductedBy:p.conductedBy,parentHq:p.parentHq,year:p.year,months:p.months,hqName:p.hqName,crop:p.crop,portfolio:p.portfolio,addvanceEventType:p.addvanceEventType,retailer:p.retailer,retailer_segment:p.retailer_segment}),q(p.conductedBy),ne(p.conductedBy)):L({conductedBy:\"\",parentHq:[],year:\"\",months:[],hqName:[],crop:\"\",portfolio:\"\",addvanceEventType:[],retailer:\"\",retailer_segment:\"\"})},[]),i().createElement(h.A,null,i().createElement(S.A,{isDrawerOpen:o,anchor:\"top\",upper:!0},i().createElement(h.A,{p:3,className:\"floating-filter-wrapper\"},i().createElement(k,{initialForm:N,setTargetFilters:c,onRequestClose:s,headerName:M,parentHqAvailable:B,dropdownData1:ee,conductedByData:Y,dropdownYearOptions:D,cropData:Q,hasShowPortfolio:_,setSelectedConductedBy:q,getEvenTargetHqChilds:ne,selectedConductedBy:V,getEventTypeData:re,portfolioData:X,countryCode:E,resetFilters:function(){c([]),s()}}))))};var z=function(e,t,n,r){return{searchKey:n,filter:r,pageNo:e,pageSize:t,sort:[{field:\"eventTargetForModifiedAt\",order:\"DESC\"}]}},V=n(28161),q=(0,n(11848).Ay)(V.A)(function(e){return e.theme,{overflow:\"auto\"}}),W=n(6347),Q=n(15941),K=function(e){return Q.Ik().shape({target:Q.Yj().required(\"Target required\"),growers:Q.Yj().nullable().test(\"growers-required\",\"Growers per Event required\",function(t){return!e||null!=t&&\"\"!==t.trim()})})},$=function(){return Q.Ik().shape({target:Q.Yj().required(\"Target required\"),hqName:Q.Yj().required(\"HQ Name required\"),year:Q.Yj().required(\"Year required\"),month:Q.Yj().required(\"Month required\"),portfolio:Q.Yj().nullable().test(\"portfolio-required\",\"Portfolio required\",function(e){return!0!==this.parent.showPortfolio||null!=e&&\"\"!==e.trim()})})},X=function(e){return e.MONTHLY=\"MONTHLY\",e.DEFAULT=\"DEFAULT\",e.YOU_CANT_ACCESS=\"Upload window is closed for the selected month\",e}({});const J=function(e){var t,n=e.isDrawerOpen,l=e.onRequestClose,s=e.updateEventData,c=e.onUpdateEventTarget,d=e.saveButtonTooltip,p=e.onDelete,g=e.countryCode,h=e.eventConfigDate,m=e.User,y={hq_name:s.hq_name,crop:s.crop,event_type:s.event_type,year:s.year,month:s.month,target:s.target,total_growers:s.total_growers,growers:s.growers,retailer:s.retailer},E=(null==s||null===(t=s.event_type_dto)||void 0===t?void 0:t.event_master_type_code)===v.hD.GROWER_MEETING,b=(0,a.useContext)(A.v).triggerToastMsg,_=function(e,t,n){\"target\"===e.target.name?n(\"total_growers\",e.target.value*(null==t?void 0:t.growers)):\"growers\"===e.target.name&&n(\"total_growers\",e.target.value*(null==t?void 0:t.target)),n(e.target.name,e.target.value)};return i().createElement(S.A,{isDrawerOpen:n,anchor:\"right\"},i().createElement(V.A,{className:\"popupMain\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(R.A,{component:\"h1\",variant:\"h1\"},\"Edit Event Target\"),i().createElement(V.A,{onClick:function(){return l()},\"data-testid\":\"close-icon\"},i().createElement(R.A,{className:\"icon-close closeIcon\"}))),i().createElement(N.l1,{initialValues:y,validationSchema:K(E),enableReinitialize:!0,onSubmit:function(e){(0,u.iR)(h,e.month)?b({message:X.YOU_CANT_ACCESS,type:\"error\"}):c(e)}},function(e){var t,n=e.values,a=e.setFieldValue;return i().createElement(N.lV,{className:\"popupContent\"},i().createElement(r.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"HQ_NAME\"),\"*\"),i().createElement(N.D0,{name:\"hq_name\",type:\"text\",className:\"inputField disabledInput\",disabled:!0})),\"KR\"===g?i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"RETAILER\"),\"*\"),i().createElement(N.D0,{name:\"retailer\",type:\"text\",className:\"inputField disabledInput\",disabled:!0})):i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"CROP\"),\"*\"),i().createElement(N.D0,{name:\"crop\",type:\"text\",className:\"inputField disabledInput\",disabled:!0}))),i().createElement(r.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"EVENT_TYPE\"),\"*\"),i().createElement(N.D0,{name:\"event_type\",type:\"tel\",className:\"inputField disabledInput\",disabled:!0})),i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"YEAR\")),i().createElement(N.D0,{name:\"year\",type:\"tel\",className:\"inputField disabledInput\",disabled:!0}))),i().createElement(r.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"MONTH\")),i().createElement(N.D0,{name:\"month\",type:\"text\",className:\"inputField disabledInput\",disabled:!0})),i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"TARGET\")),i().createElement(N.D0,{name:\"target\",type:\"text\",className:\"inputField\",value:n.target,onChange:function(e){return _(e,n,a)}}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"target\"})))),E&&i().createElement(r.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},i().createElement(V.A,{width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"AVG_GROWERS_PER_EVENT\"),\"*\"),i().createElement(N.D0,{name:\"growers\",type:\"text\",className:\"inputField\",onChange:function(e){return _(e,n,a)}}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"growers\"}))),i().createElement(V.A,{width:\"100%\",mb:2},i().createElement(R.A,{variant:\"subtitle2\"},(0,o.t)(\"NO_OF_GROWERS\"),\"*\"),i().createElement(N.D0,{name:\"total_growers\",type:\"text\",className:\"inputField disabledInput\",disabled:!0}))),i().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},i().createElement(C.A,{variant:\"outlined\",buttonName:(0,o.t)(\"CANCEL\"),onButtonClick:function(){return l()},fullwidth:!1,color:\"secondary\",type:\"reset\"}),i().createElement(V.A,null,i().createElement(C.A,{variant:\"contained\",buttonName:(0,o.t)(\"DELETE\"),fullwidth:!1,color:\"primary\",disabled:!(null!=m&&null!==(t=m.selectedBusinessUnit)&&void 0!==t&&null!==(t=t.userRoleControls)&&void 0!==t&&t.roleId),onButtonClick:function(){return function(e){(0,u.iR)(h,e.month)?b({message:X.YOU_CANT_ACCESS,type:\"error\"}):p()}(n)}})),i().createElement(f.A,{arrow:!0,placement:\"top-start\",title:d},i().createElement(V.A,null,i().createElement(C.A,{variant:\"contained\",buttonName:(0,o.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",disabled:d.length>0,type:\"submit\"})))))})))};n(88431),n(33771),n(48598),n(3362),n(35874);var Z=n(34358),ee=n(98752),te=n(55854),ne=n(70380),re=n(27386),oe=n(82383);const ae=function(e){var t=e.isDrawerOpen,n=e.onHandleClose,o=e.initialForm,l=e.hierarchyName,s=e.handleDmhqChange,u=e.dropdownData,c=e.baseLineData,d=e.handleTargetChange,p=e.hasShowPortfolio,f=e.handlePortfolioChange,g=e.handleHQSelectionChange,h=e.selectedDropdown,m=e.handleChange,v=e.onMonthChange,A=e.validateAndExecute,y=e.onUploadSuccess,E=e.selectedFile,b=e.setSelectedFile,_=e.fileError,w=(0,L.Bd)().t,T=(0,a.useMemo)(function(){return c!==oe.Mq.NO_BASELINE},[c]);return i().createElement(S.A,{isDrawerOpen:t,anchor:\"right\"},i().createElement(V.A,{className:\"popupMain\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(R.A,{component:\"h1\",variant:\"h1\"},\"\".concat(w(\"UPLOAD_EVENT_TARGET\"))),i().createElement(V.A,{onClick:n},i().createElement(R.A,{className:\"icon-close closeIcon\"}))),i().createElement(N.l1,{initialValues:o,validationSchema:$,enableReinitialize:!0,onSubmit:function(){}},function(e){var t=e.values,o=e.setFieldValue,a=e.validateForm;return i().createElement(N.lV,{className:\"popupContent\"},i().createElement(V.A,{className:\"inputs-cards\"},i().createElement(V.A,{className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(R.A,{component:\"span\",className:\"round-badge\"},\"1\"),i().createElement(R.A,{variant:\"h6\",fontSize:14,fontWeight:500},\"\".concat(w(\"FILL_DETAILS\"))))),i().createElement(V.A,{className:\"input-card-body\"},i().createElement(r.A,{direction:\"row\",gap:2,mb:1},T?i().createElement(V.A,{width:\"50%\"},i().createElement(R.A,{variant:\"subtitle2\",sx:{color:\"\".concat(l?\"\":\"#ffffff !important\")}},null!=l?l:\"noLabel\"),i().createElement(N.D0,{name:\"dmhq\"},function(){return i().createElement(M.A,{name:\"dmhq\",onChange:function(e,t){return s(t,o)},options:u.dmhq,labelKey:\"label\",label:\"target\",value:t.dmhq,defaultLabel:\"NO_BASELINE\"!==c?\"Select Target\":\"NA\"})})):i().createElement(i().Fragment,null),i().createElement(V.A,{mb:2,width:T?\"50%\":\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"TARGET_LABEL\"))),i().createElement(N.D0,{name:\"target\"},function(){return i().createElement(M.A,{name:\"target\",\"data-testid\":\"target\",onChange:function(e,t){return d(t,o)},options:u.targetData,labelKey:\"label\",label:\"target\",selectedOption:t.target,value:t.target,defaultLabel:\"Select Target For\"})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"target\"})))),i().createElement(r.A,{direction:\"row\",gap:2,flexWrap:\"wrap\"},p&&i().createElement(V.A,{mb:2,width:\"48%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"SELECT_PORTFOLIO\"),\"*\")),i().createElement(N.D0,{name:\"portfolio\"},function(){return i().createElement(M.A,{name:\"portfolio\",\"data-testid\":\"portfolio\",onChange:function(e,t){return f(t,o)},options:null==u?void 0:u.portfolioData,labelKey:\"label\",label:\"portfolio\",selectedOption:t.portfolio,value:t.portfolio,defaultLabel:\"\".concat(w(\"SELECT_PORTFOLIO\"))})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"portfolio\"}))),i().createElement(V.A,{mb:2,width:\"48%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"HQ_NAME\"),\"*\")),i().createElement(N.D0,{name:\"hqName\"},function(){var e,t;return i().createElement(P.A,{name:\"\".concat(w(\"HQ_NAME\")),options:u.hqNameData,disabled:0===(null==u||null===(e=u.hqNameData)||void 0===e?void 0:e.length),onHandleChange:function(e){return g(e,o)},selectedOption:null!==(t=null==h?void 0:h.selectedHQ)&&void 0!==t?t:[]})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"hqName\"}))),i().createElement(V.A,{mb:2,width:\"48%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"CONFIGURATION_TYPE\"))),i().createElement(N.D0,{name:\"configurationType\"},function(){return i().createElement(M.A,{value:\"Monthly\",options:u.yearData,isDisabled:!0,name:\"configuration\",onChange:function(){},defaultLabel:\"configuration\"})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"configurationType\"})))),i().createElement(r.A,{direction:\"row\",gap:2},i().createElement(V.A,{mb:2,width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"YEAR\"))),i().createElement(N.D0,{name:\"year\"},function(){return i().createElement(M.A,{name:\"year\",onChange:function(e,t){return m(e,t,o)},options:u.yearData,labelKey:\"label\",label:\"year\",selectedOption:t.year,value:t.year,defaultLabel:\"Select Year\"})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"year\"}))),i().createElement(V.A,{mb:2,width:\"100%\"},i().createElement(R.A,{variant:\"subtitle2\"},\"\".concat(w(\"MONTH\"))),i().createElement(N.D0,{name:\"month\"},function(){return i().createElement(M.A,{name:\"month\",onChange:function(e,t){return v(e,t,o)},options:u.monthData,labelKey:\"label\",label:\"month\",selectedOption:t.month,value:t.month,defaultLabel:\"Select Month\"})}),i().createElement(W.A,{error:!0},i().createElement(N.Kw,{name:\"month\"})))))),i().createElement(V.A,{className:\"inputs-cards\"},i().createElement(V.A,{className:\"cards-header-wrapper\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(R.A,{component:\"span\",className:\"round-badge\"},\"2\"),i().createElement(R.A,{variant:\"h6\",fontSize:14,fontWeight:500},\"\".concat(w(\"DOWNLOAD_TEMPLATE\")))),i().createElement(C.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:\"Download\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return A(\"download\",{validateForm:a},t)},type:\"submit\"}))),i().createElement(V.A,{className:\"inputs-cards\"},i().createElement(V.A,{className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(R.A,{component:\"span\",className:\"round-badge\"},\"3\"),i().createElement(R.A,{variant:\"h6\",fontSize:14,fontWeight:500},\"\".concat(w(\"UPLOAD_DATA_SAMPLE\"))))),i().createElement(V.A,{className:\"input-card-body\"},i().createElement(re.A,{\"data-testid\":\"file-input\",customClassName:\"file-upload\",onUploadSuccess:function(e){y(e)},selectedFile:E,onRemoveHandler:function(){return b(null)}}),_&&i().createElement(R.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},_))),i().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlockEvents\"},i().createElement(C.A,{variant:\"outlined\",buttonName:w(\"CANCEL\"),onButtonClick:n,fullwidth:!1,color:\"secondary\"}),i().createElement(C.A,{variant:\"contained\",buttonName:w(\"SUBMIT\"),fullwidth:!1,color:\"primary\",type:\"submit\",onButtonClick:function(){return A(\"upload\",{validateForm:a},t)}})))})))};function ie(e){return ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ie(e)}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ie(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ie(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de=function(e,t){var n=ne.Ax.currentMonth;if(n===ne.Ax.lastMonthOfYear){var r=new Array(2).fill(0).map(function(e,t){return{label:(0,ne.Cp)(t),value:(0,ne.Cp)(t)}}),o=new Array(1).fill(0).map(function(e,t){return{label:(0,ne.tj)(t),value:(0,ne.tj)(t)}});e(function(e){return ue(ue({},e),{},{yearData:r,monthData:o})})}else e(function(e){return ue(ue({},e),{},{yearData:[{label:(0,ne.AV)(\"YYYY\"),value:(0,ne.AV)(\"YYYY\")}],monthData:(n=t,function(e){if(Array.isArray(e))return le(e)}(n)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(n)||function(e,t){if(e){if(\"string\"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}())});var n});return n},pe=(n(25440),n(96790)),fe=n(8085),ge=n(23835);function he(e){return he=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},he(e)}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach(function(t){Ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=he(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=he(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==he(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){return ye=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ye(e)}function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _e(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ye(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ye(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||we(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function we(e,t){if(e){if(\"string\"==typeof e)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Te=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,o=void 0===r?function(){}:r,l=(0,L.Bd)().t,s=(0,a.useContext)(A.v),c=s.BackOfficeProps,d=c.globalStore.User,p=c.baseurl,f=s.triggerShowLoader,g=s.triggerToastMsg,h=(0,O.i)(d).hasShowPortfolio,m=Ce((0,a.useState)(0),2),v=m[0],y=m[1],E=Ce((0,a.useState)({target:\"\",hqName:\"\",year:\"\",month:\"\",dmhq:\"\",portfolio:\"\",showPortfolio:h,eventConfigDate:v}),2),b=E[0],_=E[1],C=Ce((0,a.useState)({targetData:[],hqNameData:[],configTypeData:[],yearData:[],monthData:[],dmhq:[],portfolioData:[]}),2),w=C[0],S=C[1],D=Ce((0,a.useState)({selectedTarget:null,selectedHQ:[],selectedConfig:null,selectedYear:null,selectedMonth:null,selectedDMHQ:null,selectedPortfolio:null}),2),R=D[0],N=D[1],P=Ce((0,a.useState)(null),2),M=P[0],x=P[1],I=Ce((0,a.useState)(\"\"),2),k=I[0],B=I[1],F=Ce((0,a.useState)(),2),j=F[0],H=F[1],U=Ce((0,a.useState)(),2),Y=U[0],G=U[1],z=Ce((0,a.useState)(\"\"),2),V=z[0],q=z[1],W=new Array(13-Number((0,ne.AV)(\"M\"))).fill(0).map(function(e,t){return{label:(0,ne.tj)(t),value:(0,ne.tj)(t)}}).filter(function(e,t){return t<=1}),Q=function(e){var t,n,r,o=e.setDropdownData,i=e.selectedDropdown,l=e.setSelectedDropdown,s=e.dropdownData,c=e.setHierarchyName,d=e.selectedFile,p=e.setInitialForm,f=e.setSelectedDmhq,g=e.selectedDmhq,h=e.baseLineData,m=(0,a.useContext)(A.v),v=m.BackOfficeProps,y=v.globalStore.User,E=v.baseurl,b=m.triggerShowLoader,_=m.triggerToastMsg,C=(0,ge.A)().downloadTemplate,w=E,S=null==y||null===(t=y.UserDetails)||void 0===t?void 0:t.user_id,O=null!==(n=null==y?void 0:y.AccessToken)&&void 0!==n?n:\"\",D=null==y||null===(r=y.selectedCountry)||void 0===r?void 0:r.countryCode,R=(0,a.useCallback)(function(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",i={};return i.domain=w,i.endPoint=fe.p.GET_HQ_NAME,i.customHeaders={\"country-code\":D,Authorization:\"Bearer \".concat(O),\"bu-id\":y.selectedBusinessUnit.bu_id,\"role-type-name\":y.UserDetails.role_type_details.role_type_name,\"user-id\":y.UserDetails.user_id,\"role-id\":null==y||null===(r=y.selectedBusinessUnit)||void 0===r||null===(r=r.userRoleControls)||void 0===r?void 0:r.roleId},i.payLoad={sales_hierarchy_id:\"\".concat(e.value),parent_hq_id:\"\".concat(null!=t&&t.value?t.value:\"\"),portfolio_code:(0,u.XD)(a,y)},i.triggerLoader=b,(0,T.dw)(i).then(function(e){if(Array.isArray(e)&&(null==e?void 0:e.length)>0){var t=e.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ve(ve({},e),{},{hqNameData:t})}),l(function(e){return ve(ve({},e),{},{selectedHQ:t})}),n(\"hqName\",t.map(function(e){return e.label}).join(\",\"))}else o(function(e){return ve(ve({},e),{},{hqNameData:[]})}),l(function(e){return ve(ve({},e),{},{selectedHQ:[]})});return e}).catch(function(e){console.log(\"GET HQ NAME FAILED\",e)})},[s.targetData]);return{getTargetsMDOData:function(){var e,t,n={};return n.domain=E,n.endPoint=fe.p.GET_CONDUCTEDBY,n.customHeaders={\"country-code\":null==y||null===(e=y.selectedCountry)||void 0===e?void 0:e.countryCode,\"bu-id\":null==y?void 0:y.selectedBusinessUnit.bu_id,\"role-id\":null==y||null===(t=y.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId,Authorization:\"Bearer \".concat(null==y?void 0:y.AccessToken)},n.triggerLoader=b,(0,T.dw)(n).then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.sales_hierarchy_name,value:null==e?void 0:e.sales_hierarchy_id}});o(function(e){return ve(ve({},e),{},{targetData:t})})}}).catch(function(e){})},getPortfolioData:function(){var e,t={};return t.domain=w,t.endPoint=fe.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==y||null===(e=y.selectedBusinessUnit)||void 0===e?void 0:e.bu_code),t.customHeaders={\"country-code\":D,Authorization:\"Bearer \".concat(O),\"bu-id\":null==y?void 0:y.selectedBusinessUnit.bu_id},t.triggerLoader=b,(0,T.dw)(t).then(function(e){var t;if(Array.isArray(null==e?void 0:e.data)&&(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.code}});o(function(e){return ve(ve({},e),{},{portfolioData:r})})}return e}).catch(function(e){console.log(\"GET PORTFOLIO FAILED\",e)})},getHQData:R,getDMHQ:(0,a.useCallback)(function(){var e,t={};return t.domain=w,t.endPoint=fe.p.GET_DMHQ,t.customHeaders={\"country-code\":D,\"bu-id\":y.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(O),\"user-id\":y.UserDetails.user_id,\"role-id\":null==y||null===(e=y.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId,\"role-type-name\":y.UserDetails.role_type_details.role_type_name},t.triggerLoader=b,(0,T.dw)(t).then(function(e){var t=e.hqDataList,n=e.hqName;if(Array.isArray(t)&&(null==t?void 0:t.length)>0){var r=t.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});c(n),o(function(e){return ve(ve({},e),{},{dmhq:r})}),1===(null==r?void 0:r.length)&&(p(function(e){return ve(ve({},e),{},{dmhq:r[0]})}),f(r[0].value))}return e}).catch(function(e){console.log(\"GET DMHQ NAME FAILED\",e)})},[s.targetData]),getPresignedUrl:function(){var e,t,n,r,o={};o.domain=w,o.endPoint=\"\".concat(fe.p.GET_PRESIGNED_URL,\"?year_list=\").concat(null===(e=i.selectedYear)||void 0===e?void 0:e.value),o.customHeaders={Authorization:\"Bearer \".concat(O),\"country-code\":D,\"bu-id\":y.selectedBusinessUnit.bu_id};var a=(0,ee.S2)(d);return o.payLoad={file_name:a.name,portfolio_code:(0,u.XD)(null==i||null===(t=i.selectedPortfolio)||void 0===t?void 0:t.value,y),configuration_type:X.MONTHLY,baseline_configured_hq_id:null!=g?g:0,baseline_type:h,sales_hierarchy_id:null===(n=i.selectedTarget)||void 0===n?void 0:n.value,month_list:null===(r=i.selectedMonth)||void 0===r?void 0:r.value.toString().toUpperCase()},o.triggerLoader=b,(0,T.dw)(o).then(function(e){return e}).catch(function(e){return console.log(\"PRE SIGNED URL API FAILED\",e)})},downloadExcelTemplate:function(){var e,t,n,r,o,a,l=fe.p.DOWNLOAD_TEMPLATE;return C({baseUrl:\"\".concat(w).concat(l),payload:{month_list:[null===(e=i.selectedMonth)||void 0===e?void 0:e.value.toString().toUpperCase()],year_list:[null===(t=i.selectedYear)||void 0===t?void 0:t.value],head_quarter_ids:null===(n=i.selectedHQ)||void 0===n?void 0:n.map(function(e){return null==e?void 0:e.value}),bu_id:y.selectedBusinessUnit.bu_id,sales_hierarchy_id:null===(r=i.selectedTarget)||void 0===r?void 0:r.value,baseline_type:h,configuration_type:\"MONTHLY\",baseline_configured_hq_id:null!=g?g:0,portfolio_code:(0,u.XD)(null==i||null===(o=i.selectedPortfolio)||void 0===o?void 0:o.value,y),user_uuid:null==y||null===(a=y.UserDetails)||void 0===a?void 0:a.user_id},options:{headers:{\"Content-Type\":pe.LG.json,Authorization:\"Bearer \".concat(O),\"country-code\":D,\"user-id\":S},responseType:\"arraybuffer\"},requestType:\"post\"}).then(function(e){var t,n;null!==(t=(0,u.bA)(e))&&void 0!==t&&t.message&&_({message:null===(n=(0,u.bA)(e))||void 0===n?void 0:n.message,type:\"error\"})})}}}({setDropdownData:S,selectedDropdown:R,setSelectedDropdown:N,dropdownData:w,setHierarchyName:q,selectedFile:M,setInitialForm:_,setSelectedDmhq:G,selectedDmhq:Y,baseLineData:j}),K=Q.getTargetsMDOData,$=Q.getPortfolioData,J=Q.getHQData,re=Q.getDMHQ,oe=Q.getPresignedUrl,ie=Q.downloadExcelTemplate,le=function(e){var t,n,r={bu_id:null==d||null===(t=d.selectedBusinessUnit)||void 0===t?void 0:t.bu_id,role_id:e};null===(n=(0,T.XI)(d,p,f,r))||void 0===n||n.then(function(e){var t;null!=e&&e.configuration&&y(null==e||null===(t=e.configuration)||void 0===t?void 0:t.create_event_target_days)}).catch(function(e){})};(0,a.useEffect)(function(){Promise.allSettled([K(),de(S,W),se(),$()]).then(function(e){e.every(function(e){return\"fulfilled\"===e.status})&&(_(function(e){return be(be({},e),{},{year:(0,ne.AV)(\"YYYY\"),month:(0,ne.AV)(\"MMMM\")})}),N(function(e){var t,n,r,o,a,i,l,s;return be(be({},e),{},{selectedYear:{label:null!==(t=null===(n=R.selectedYear)||void 0===n?void 0:n.label)&&void 0!==t?t:(0,ne.AV)(\"YYYY\"),value:null!==(r=null===(o=R.selectedYear)||void 0===o?void 0:o.value)&&void 0!==r?r:(0,ne.AV)(\"YYYY\")},selectedMonth:{label:null!==(a=null===(i=R.selectedMonth)||void 0===i?void 0:i.label)&&void 0!==a?a:(0,ne.AV)(\"MMMM\"),value:null!==(l=null===(s=R.selectedMonth)||void 0===s?void 0:s.value)&&void 0!==l?l:(0,ne.AV)(\"MMMM\")}})}))}).catch(function(){})},[]);var se=function(){return(0,te.Q)(d,p,f).then(function(e){var t,n;return H(null==e||null===(t=e.data[0])||void 0===t?void 0:t.value),\"NO_BASELINE\"!==(null==e||null===(n=e.data[0])||void 0===n?void 0:n.value)?re():e}).catch(function(e){console.log(e)})},ue=(0,a.useCallback)(function(e,t){t(\"dmhq\",e),G(e.value),N(function(t){return be(be({},t),{},{selectedTarget:null,selectedHQ:[],selectedConfig:null,selectedDMHQ:e})}),_(function(t){return be(be({},t),{},{target:\"\",hqName:\"\",dmhq:e})})},[]),ce=(0,a.useCallback)(function(e,t){var n,r;t(\"target\",e.label.trim()),t(\"hqName\",\"\"),N(function(t){return be(be({},t),{},{selectedTarget:e,selectedHQ:[]})}),le(e.value),h&&null!=R&&null!==(n=R.selectedPortfolio)&&void 0!==n&&n.value?J(e,R.selectedDMHQ,t,null==R||null===(r=R.selectedPortfolio)||void 0===r?void 0:r.value):h||J(e,R.selectedDMHQ,t)},[h,R,le,J]),he=(0,a.useCallback)(function(e,t){t(\"hqName\",e.map(function(e){return e.label}).join(\",\")),N(function(t){return be(be({},t),{},{selectedHQ:e})})},[]),me=(0,a.useCallback)(function(e,t){t(\"hqName\",\"\"),t(\"portfolio\",e.label.trim()),N(function(t){return be(be({},t),{},{selectedHQ:[],selectedPortfolio:e})}),R.selectedTarget&&J(R.selectedTarget,R.selectedDMHQ,t,null==e?void 0:e.value)},[R.selectedTarget,R.selectedDMHQ,J]);return i().createElement(ae,{isDrawerOpen:n,onHandleClose:function(){o(!1)},initialForm:b,hierarchyName:V,handleDmhqChange:ue,dropdownData:w,baseLineData:j,handleTargetChange:ce,hasShowPortfolio:h,handlePortfolioChange:me,handleHQSelectionChange:he,selectedDropdown:R,handleChange:function(e,t,n){var r,o,a;n(\"year\",t.label.trim()),n(\"month\",\"\"),N(function(e){return be(be({},e),{},{selectedYear:t})}),r=t.value,o=new Array(12).fill(0).map(function(e,t){return{label:(0,ne.tj)(t+1),value:(0,ne.tj)(t+1)}}),a=r===(0,ne.Cp)(1)?o:W,S(function(e){return be(be({},e),{},{monthData:(t=a,function(e){if(Array.isArray(e))return Se(e)}(t)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||we(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}())});var t}),N(function(e){return be(be({},e),{},{selectedMonth:null})})},onMonthChange:function(e,t,n){n(\"month\",t.label.trim()),N(function(e){return be(be({},e),{},{selectedMonth:t})})},validateAndExecute:function(e,t,n){(0,t.validateForm)().then(function(t){0===Object.keys(t).length&&((0,u.iR)(v,n.month)?g({message:X.YOU_CANT_ACCESS,type:\"error\"}):\"download\"===e?ie():\"upload\"===e&&function(){if(M){if((0,ee.TC)(M.name))return oe().then(function(e){f(!0);var t=(0,ee.S2)(M);return(0,Z.i3)(e,t).then(function(e){f(!1),200===e.status&&\"OK\"===e.statusText?(o(!0),g({message:l(\"SUCCESS_TOAST_MSG\"),type:\"success\"}),x(null)):g({message:l(\"FAILURE_TOAST_MSG\"),type:\"error\"})}).catch(function(){f(!1),g({message:l(\"FAILURE_TOAST_MSG\"),type:\"error\"})})}).catch(function(){f(!1),g({message:l(\"FAILURE_TOAST_MSG\"),type:\"error\"})});B(\"\".concat(l(\"VALID_FILE_ERROR\")))}else B(\"\".concat(l(\"UPLOAD_CONDITION_TEXT\")))}())})},onUploadSuccess:function(e){B(\"\");var t=e[0];x(t)},selectedFile:M,setSelectedFile:x,fileError:k})};var Oe=n(21239),De=n(64499);function Re(e){return Re=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Re(e)}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Re(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Re(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return xe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ie=function(e){var t,n=e.RBACControls,r=(0,y.w)(n).hasCreateAccess,l=(0,a.useContext)(A.v),s=l.BackOfficeProps,c=s.globalStore.User,d=s.baseurl,p=l.triggerShowLoader,S=l.triggerToastMsg,D=(0,O.i)(c),R=D.hasShowPortfolio,N=D.hasPortfolioEnable,L=null===(t=c.selectedCountry)||void 0===t?void 0:t.countryCode,P=(0,ge.A)().downloadTemplate,M=Me((0,a.useState)({searchKey:\"\",pageNo:0,pageSize:10}),2),x=M[0],I=M[1],k=(new Date).getDate(),B=Me((0,a.useState)(),2),F=B[0],j=B[1],H=Me((0,a.useState)(),2),U=H[0],Y=H[1],V=Me((0,a.useState)(0),2),W=V[0],Q=V[1],K=Me((0,a.useState)([]),2),$=K[0],X=K[1],Z=Me((0,a.useState)(!1),2),ee=Z[0],te=Z[1],re=Me((0,a.useState)(!1),2),oe=re[0],ae=re[1],ie=Me((0,a.useState)(),2),le=ie[0],se=ie[1],ue=Me((0,a.useState)(\"\"),2),ce=ue[0],de=ue[1],pe=Me((0,a.useState)(!1),2),fe=pe[0],he=pe[1],me=Me((0,a.useState)({}),2),ve=me[0],Ae=me[1],ye=function(){var e,t,n,r={bu_id:null==c||null===(e=c.selectedBusinessUnit)||void 0===e?void 0:e.bu_id,role_id:null==c||null===(t=c.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId};null===(n=(0,T.XI)(c,d,p,r))||void 0===n||n.then(function(e){var t,n;null!=e&&e.configuration&&(j(null==e||null===(t=e.configuration)||void 0===t?void 0:t.create_event_target_days),Y(null==e||null===(n=e.configuration)||void 0===n?void 0:n.manage_event_target_days))}).catch(function(e){console.log(e)})},Ee=(0,a.useMemo)(function(){var e,t,n,r,o,a,i,l=[{field:\"hqId\",operator:\"IN\",values:null==ve||null===(e=ve.hqName)||void 0===e?void 0:e.map(function(e){return e.value})},{field:\"portfolioCode\",operator:\"EQUALS\",value:R?null==ve||null===(t=ve.portfolio)||void 0===t?void 0:t.value:(0,u.XD)(null==ve||null===(n=ve.portfolio)||void 0===n?void 0:n.value,c)},{field:\"cropId\",operator:\"EQUALS\",value:null==ve||null===(r=ve.crop)||void 0===r?void 0:r.id},{field:\"retailer\",operator:\"IN\",values:Array.isArray(null==ve?void 0:ve.crop)?ve.retailer.map(function(e){return e.value}):[]},{field:\"eventTypeId\",operator:\"IN\",values:null==ve||null===(o=ve.addvanceEventType)||void 0===o?void 0:o.map(function(e){return e.value})},{field:\"year\",operator:\"EQUALS\",value:null==ve||null===(a=ve.year)||void 0===a?void 0:a.value},{field:\"month\",operator:\"IN\",values:null==ve||null===(i=ve.months)||void 0===i?void 0:i.map(function(e){return e.value})}].filter(function(e){return Array.isArray(e.values)?e.values.length>0:\"string\"==typeof e.value?\"\"!==e.value.trim():void 0!==e.value});return I(function(e){return Le(Le({},e),{},{pageNo:0,pageSize:10})}),l},[ve]),be=(0,a.useCallback)(function(){var e=z(x.pageNo,x.pageSize,x.searchKey,Ee);(0,T.VX)(c,d,p,e).then(function(e){if(e){var t=e.total_elements,n=e.event_target_list;X(n),Q(t)}}).catch(function(e){S({message:e,type:\"error\"})})},[x,ve,Ee]);(0,a.useEffect)(function(){be()},[x.pageNo,x.pageSize,Ee,x.searchKey]),(0,a.useEffect)(function(){ye()},[]);var _e,Ce,we=function(){ae(!1)},Se=(0,a.useMemo)(function(){var e,t=k>U;return null!==(e=null==$?void 0:$.map(function(e){var n;return Le(Le({},e),{},{disable:t,event_type:null==e||null===(n=e.event_type_dto)||void 0===n?void 0:n.name})}))&&void 0!==e?e:[]},[$]);return(0,a.useEffect)(function(){ye()},[]),i().createElement(q,null,i().createElement(h.A,null,i().createElement(m.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(m.A,{direction:\"row\",alignItems:\"center\"},i().createElement(w.A,{menuItemData:v.A9,onHandleChange:function(e){I(function(t){return Le(Le({},t),{},{pageNo:0,pageSize:Number(e)})})},selectedItem:x.pageSize})),i().createElement(m.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",mb:2,spacing:2,marginTop:\"16px\"},i().createElement(h.A,null,i().createElement(Oe.A,{onSearchValueChange:function(e){I(function(t){return Le(Le({},t),{},{searchKey:e,pageNo:0})})},placeholderText:\"search\",searchValue:\"\"})),i().createElement(m.A,{flexDirection:\"row\",justifyContent:\"center\",gap:2},i().createElement(C.A,{className:(0,u.F7)(ve),buttonName:(0,o.t)(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:i().createElement(\"span\",{className:\"icon-filter\"}),variant:\"text\",onButtonClick:function(){return he(!0)}})),i().createElement(C.A,{variant:\"contained\",buttonName:(0,o.t)(\"UPLOAD_EVENT_TARGET\"),onButtonClick:function(){te(!0)},fullwidth:!1,color:\"primary\",disabled:!r}),i().createElement(C.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:(0,o.t)(\"DOWNLOAD_EVENT_TARGETS\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){return(0,De.hh)(c,d,(e=JSON.stringify(z(x.pageNo,x.pageSize,x.searchKey,Ee)),t=JSON.parse(e),JSON.stringify(t.filter).includes(\"year\")||t.filter.push({field:\"year\",operator:\"EQUALS\",value:ne.Ax.currentYear}),JSON.stringify(t.filter).includes(\"month\")||t.filter.push({field:\"month\",operator:\"IN\",values:[ne.Ax.currentUppercaseMonth]}),t),{triggerToastMsg:S,downloadTemplate:P},\"eventTargets\");var e,t}}))),i().createElement(g.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(_.A,{rows:Se,columnDefs:N?(0,E.$)(L):(_e=(0,E.$)(L),Ce=null==_e?void 0:_e.filter(function(e){return\"Portfolio\"!==(null==e?void 0:e.headerName)}),null!=Ce?Ce:[]),frameworkComponents:{EditActionComponent:function(e){var t,n=e.column,r=e.data,a=null!==(t=k>r.event_config_dto.configuration.manage_event_target_days&&(0,u.wn)(r.month))&&void 0!==t?t:(0,u.Sm)(r.month,r.year);return i().createElement(f.A,{arrow:!0,placement:\"top-start\",title:a?(0,o.t)(\"MANAGE_EVENT_TARGETS_CLOSED\"):\"\"},i().createElement(h.A,null,\" \",i().createElement(\"button\",{type:\"button\",className:\"\".concat(a?\"disabled-table-button\":\"\",\" smart-agro-lite-green-label remove-button\"),\"data-testid\":\"edit-button-0\",onClick:function(){ae(!0),se(r)}},{edit:{label:\"Edit\",className:\"smart-agro-lite-green-label remove-button\"}}[n.colId].label)))}}})),i().createElement(b.A,{pageNo:x.pageNo,totalPageCount:Math.ceil(W/x.pageSize),totalElements:W,onPageChange:function(e){I(function(t){return Le(Le({},t),{},{pageNo:Number(e)})})}})),ee&&i().createElement(Te,{isDrawerOpen:ee,onRequestClose:function(e){te(!1),e&&I({pageNo:0,pageSize:10,searchKey:\"\"})}}),oe&&i().createElement(J,{eventConfigDate:F,onRequestClose:we,isDrawerOpen:oe,updateEventData:le,onUpdateEventTarget:function(e){var t;null===(t=(0,T.V4)(c,d,p,Le(Le({},le),e)))||void 0===t||t.then(function(e){var t;(0,u.mN)(e)?(be(),we(),S({message:(0,o.t)(\"EVENT_UPDATED_SUCCESS\"),type:\"success\"})):(422===(null==e||null===(t=e.data)||void 0===t?void 0:t.statusCode)&&de(e.data.errorMessage),S({message:e.data.errorMessage,type:\"error\"}))}).catch(function(e){S({message:e.message,type:\"error\"})})},saveButtonTooltip:ce,onDelete:function(){(0,T.Jd)(c,d,p,le).then(function(e){(0,u.mN)(e)?(be(),we(),S({message:(0,o.t)(\"EVENT_DELETED_SUCCESS\"),type:\"success\"})):S({message:e.data.errorMessage,type:\"error\"})}).catch(function(e){S({message:e.message,type:\"error\"})})},countryCode:L,User:c}),fe&&i().createElement(G,{isFilterOpen:fe,onRequestClose:function(){he(!1)},setTargetFilters:Ae,targetFilters:ve}))};const ke=(0,a.memo)(Ie);var Be=n(37998),Fe=n(21770);const je=function(){return i().createElement(Fe.A,{bulkUploadModuleTypes:[v.wb.EVENT_TARGET],tableHeaders:Be.nT})};function He(e){return He=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},He(e)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach(function(t){Ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=He(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=He(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==He(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ve=function(e){var t,n,f=e.RBACControls,g=(0,l.zy)(),h=new URLSearchParams(g.search).get(\"tabname\"),m=(t=i().useState({tablist:[{id:1,tabName:(0,o.t)(\"EVENT_TARGETS\"),path:s.fp.Events_Planning_DataList,component:i().createElement(ke,{RBACControls:f}),queryParam:{tabname:s.fp.Events_Planning_DataList}},{id:2,tabName:(0,o.t)(\"MY_UPLOADS\"),path:s.fp.Uploads_ErrorLog,component:i().createElement(je,{RBACControls:f}),queryParam:{tabname:s.fp.Uploads_ErrorLog}}],currentTabs:s.fp.Events_Planning_DataList}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return ze(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),v=m[0],A=m[1];(0,a.useEffect)(function(){h&&A(function(e){return Ye(Ye({},e),{},{currentTabs:h})})},[h]);var y=(0,a.useCallback)(function(){return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:h?\"\".concat(h).concat(g.search):\"\".concat(s.fp.Events_Planning_DataList,\"/?\").concat((0,u.Nr)({tabname:null!=h?h:s.fp.Events_Planning_DataList}))})}),v.tablist.map(function(e){return i().createElement(l.qh,{key:e.id,path:e.path,element:e.component})}))},[]);return i().createElement(p.T,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(c.A,{routePathName:[{name:s.F_.Events,path:s.fp.Events},{name:s.F_.EventsPlanning,path:s.fp.EventsPlanning}]})),i().createElement(d.A,{tabStateProps:v,handleTabChange:function(e){A(function(t){return Ye(Ye({},t),{},{currentTabs:e})})},isParamsReq:!0}),y())}},602:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a}),n(81970);var r=n(20561),o=n(74848);const a=(0,r.A)((0,o.jsx)(\"path\",{d:\"M7 10l5 5 5-5z\"}),\"ArrowDropDown\")},655:(e,t,n)=>{\"use strict\";var r=n(36955),o=String;e.exports=function(e){if(\"Symbol\"===r(e))throw new TypeError(\"Cannot convert a Symbol value to a string\");return o(e)}},659:(e,t,n)=>{var r=n(51873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[l]=n:delete e[l]),o}},771:(e,t,n)=>{\"use strict\";var r=n(24994);t.X4=function(e,t){return e=l(e),t=i(t),\"rgb\"!==e.type&&\"hsl\"!==e.type||(e.type+=\"a\"),\"color\"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)},t.e$=c,t.tL=function(e,t=.15){return u(e)>.5?c(e,t):d(e,t)},t.eM=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=d;var o=r(n(78944)),a=r(n(68586));function i(e,t=0,n=1){return(0,a.default)(e,t,n)}function l(e){if(e.type)return e;if(\"#\"===e.charAt(0))return l(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?\"a\":\"\"}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(\", \")})`:\"\"}(e));const t=e.indexOf(\"(\"),n=e.substring(0,t);if(-1===[\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(n))throw new Error((0,o.default)(9,e));let r,a=e.substring(t+1,e.length-1);if(\"color\"===n){if(a=a.split(\" \"),r=a.shift(),4===a.length&&\"/\"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(r))throw new Error((0,o.default)(10,r))}else a=a.split(\",\");return a=a.map(e=>parseFloat(e)),{type:n,values:a,colorSpace:r}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf(\"rgb\")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf(\"hsl\")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf(\"color\")?`${n} ${r.join(\" \")}`:`${r.join(\", \")}`,`${t}(${r})`}function u(e){let t=\"hsl\"===(e=l(e)).type||\"hsla\"===e.type?l(function(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u=\"rgb\";const c=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return\"hsla\"===e.type&&(u+=\"a\",c.push(t[3])),s({type:u,values:c})}(e)).values:e.values;return t=t.map(t=>(\"color\"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf(\"hsl\"))e.values[2]*=1-t;else if(-1!==e.type.indexOf(\"rgb\")||-1!==e.type.indexOf(\"color\"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function d(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf(\"hsl\"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf(\"rgb\"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf(\"color\"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},773:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.Dots=void 0;var o=l(n(81970)),a=l(n(46942)),i=n(29445);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&d(e,t)}(h,e);var t,n,l,f,g=(l=h,f=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=p(l);if(f){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===r(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}(this,e)});function h(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,h),g.apply(this,arguments)}return t=h,n=[{key:\"clickHandler\",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:\"render\",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,l=t.onMouseLeave,c=t.infinite,d=t.slidesToScroll,p=t.slidesToShow,f=t.slideCount,g=t.currentSlide,h=(e={slideCount:f,slidesToScroll:d,slidesToShow:p,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,m={onMouseEnter:n,onMouseOver:r,onMouseLeave:l},v=[],A=0;A<h;A++){var y=(A+1)*d-1,E=c?y:(0,i.clamp)(y,0,f-1),b=E-(d-1),_=c?b:(0,i.clamp)(b,0,f-1),C=(0,a.default)({\"slick-active\":c?g>=_&&g<=E:g===_}),w={message:\"dots\",index:A,slidesToScroll:d,currentSlide:g},S=this.clickHandler.bind(this,w);v=v.concat(o.default.createElement(\"li\",{key:A,className:C},o.default.cloneElement(this.props.customPaging(A),{onClick:S})))}return o.default.cloneElement(this.props.appendDots(v),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:this.props.dotsClass},m))}}],n&&c(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),h}(o.default.PureComponent);t.Dots=f},920:(e,t,n)=>{\"use strict\";var r=n(69675),o=n(58859),a=n(14803),i=n(80507),l=n(72271)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(\"Side channel does not contain \"+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=l()),e.set(t,n)}};return t}},1084:(e,t,n)=>{var r=n(64194);e.exports=Array.isArray||function(e){return\"Array\"==r(e)}},1103:e=>{\"use strict\";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},1123:(e,t,n)=>{var r=n(21672).f,o=n(43066),a=n(15413)(\"toStringTag\");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},1221:function(e,t,n){!function(e){\"use strict\";var t=[\"جنوري\",\"فيبروري\",\"مارچ\",\"اپريل\",\"مئي\",\"جون\",\"جولاءِ\",\"آگسٽ\",\"سيپٽمبر\",\"آڪٽوبر\",\"نومبر\",\"ڊسمبر\"],n=[\"آچر\",\"سومر\",\"اڱارو\",\"اربع\",\"خميس\",\"جمع\",\"ڇنڇر\"];e.defineLocale(\"sd\",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd، D MMMM YYYY HH:mm\"},meridiemParse:/صبح|شام/,isPM:function(e){return\"شام\"===e},meridiem:function(e,t,n){return e<12?\"صبح\":\"شام\"},calendar:{sameDay:\"[اڄ] LT\",nextDay:\"[سڀاڻي] LT\",nextWeek:\"dddd [اڳين هفتي تي] LT\",lastDay:\"[ڪالهه] LT\",lastWeek:\"[گزريل هفتي] dddd [تي] LT\",sameElse:\"L\"},relativeTime:{future:\"%s پوء\",past:\"%s اڳ\",s:\"چند سيڪنڊ\",ss:\"%d سيڪنڊ\",m:\"هڪ منٽ\",mm:\"%d منٽ\",h:\"هڪ ڪلاڪ\",hh:\"%d ڪلاڪ\",d:\"هڪ ڏينهن\",dd:\"%d ڏينهن\",M:\"هڪ مهينو\",MM:\"%d مهينا\",y:\"هڪ سال\",yy:\"%d سال\"},preparse:function(e){return e.replace(/،/g,\",\")},postformat:function(e){return e.replace(/,/g,\"،\")},week:{dow:1,doy:4}})}(n(95093))},1275:(e,t,n)=>{t.f=n(15413)},1469:(e,t,n)=>{\"use strict\";var r=n(87433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1514:(e,t,n)=>{\"use strict\";n.d(t,{IT:()=>c,aY:()=>h,jf:()=>p,qb:()=>d,cI:()=>g,pO:()=>u,Cx:()=>f}),n(28706),n(26099),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(99478),i=n(13075),l=function(e){return e.ALL_DISTRIBUTORS=\"allDistributors\",e}({}),s=function(e,t,n,r){var i,s,u,c,d={};if(d.domain=t,d.triggerLoader=n,\"tmHq\"===r.apiName)return d.endPoint=o.p.GET_EVENT_TARGET_CHILD,d.payLoad=r.payloadData,d.customHeaders={\"country-code\":null==e||null===(u=e.selectedCountry)||void 0===u?void 0:u.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(c=e.UserDetails)||void 0===c?void 0:c.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d;if(r.apiName===a.uD.SALES_HQ)d.endPoint=o.p.GET_SALES_HIERARCHY_ID.replace(\"bu_id\",\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id));else{var p,f,g;if(r.apiName===a.uD.PARENT_LEVEL_GEO_DATA||r.apiName===a.uD.GEO_CHILD_DATA||r.apiName===a.uD.ALL_DISTRIBUTORS||r.apiName===a.uD.GEO_HIERARCHY_LIST)return r.apiName===a.uD.GEO_CHILD_DATA?d.endPoint=\"\".concat(o.p.GET_GEO_CHILD_DATA,\"?parentGeoDataIds=\").concat(r.payloadData):r.apiName===l.ALL_DISTRIBUTORS?(d.endPoint=o.p.GET_DISTRIBUTORS_NAMES,d.payLoad=r.payloadData):\"parentLevelGeoData\"===r.apiName?d.endPoint=o.p.GEO_PARENT_DATA.replace(\"__geoHierarchyId__\",r.payloadData):\"geoHierarchyList\"===r.apiName&&(d.endPoint=o.p.GET_GEOHIERARCHY_LIST),d.customHeaders={\"country-code\":null==e||null===(p=e.selectedCountry)||void 0===p?void 0:p.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d;if(\"updateOrphanRetailer\"===r.apiName||\"editOrphanData\"===r.apiName){var h;if(\"updateOrphanRetailer\"===r.apiName)d.endPoint=o.p.UPDATE_ORPHAN_RETAILER,d.payLoad=r.payloadData;else if(\"editOrphanData\"===r.apiName){var m;d.endPoint=o.p.GET_RETAILERS_DATA_BY_ID.replace(\"__ID__\",\"\".concat(null===(m=r.payloadData)||void 0===m?void 0:m.id))}return d.customHeaders={\"country-code\":null==e||null===(h=e.selectedCountry)||void 0===h?void 0:h.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d}if(\"listTableData\"===r.apiName)return d.endPoint=o.p.GET_RETAILERS_LIST,d.payLoad=r.payloadData,d.customHeaders={\"country-code\":null==e||null===(f=e.selectedCountry)||void 0===f?void 0:f.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(g=e.UserDetails)||void 0===g?void 0:g.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d}return d.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d},u=function(e,t,n,o,a){var l=s(e,t,n,{apiName:a,payloadData:o});return new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){if(!(0,i.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},c=function(e,t,n){var r=n.geoDataId,a=n.portfolio_code,l={};return l.domain=e.baseurl,l.endPoint=o.p.GET_HQ_NAMES.replace(\"__geoDataId__\",r),l.payLoad={portfolio_code:a},l.customHeaders={\"bu-id\":null==e?void 0:e.bu_id,\"country-code\":null==e?void 0:e.country_code,\"user-id\":null==e?void 0:e.user_id,\"role-type-name\":null==e?void 0:e.role_type_name,Authorization:null==e?void 0:e.Authorization},l.triggerLoader=t,(0,i.AT)(\"get\",l,!0)},d=function(e,t,n,o,a){var l=s(e,t,n,{apiName:a,payloadData:o});return new Promise(function(e,t){var n;null===(n=r.N.post(l))||void 0===n||n.then(function(t){if(!(0,i.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},p=function(e,t,n,o,a){var l=s(e,t,n,{apiName:a,payloadData:o});return new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){if(!(0,i.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},f=function(e,t,n,o,a){var l=s(e,t,n,{apiName:a,payloadData:o});return new Promise(function(e,t){var n;null===(n=r.N.put(l))||void 0===n||n.then(function(t){if(!(0,i.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},g=function(e,t,n,r){var o=s(e,t,n,{apiName:r});return(0,i.AT)(\"get\",o,!0)},h=function(e,t,n){var r,a={};return a.domain=t,a.endPoint=o.p.GET_RETAILER_CONfIG_DETAILS.replace(\"__buId__\",\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id)),a.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,i.AT)(\"get\",a,!0)}},1625:(e,t,n)=>{\"use strict\";var r=n(79504);e.exports=r({}.isPrototypeOf)},1632:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"zh-hk\",{months:\"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"星期日_星期一_星期二_星期三_星期四_星期五_星期六\".split(\"_\"),weekdaysShort:\"週日_週一_週二_週三_週四_週五_週六\".split(\"_\"),weekdaysMin:\"日_一_二_三_四_五_六\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY年M月D日\",LLL:\"YYYY年M月D日 HH:mm\",LLLL:\"YYYY年M月D日dddd HH:mm\",l:\"YYYY/M/D\",ll:\"YYYY年M月D日\",lll:\"YYYY年M月D日 HH:mm\",llll:\"YYYY年M月D日dddd HH:mm\"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),\"凌晨\"===t||\"早上\"===t||\"上午\"===t?e:\"中午\"===t?e>=11?e:e+12:\"下午\"===t||\"晚上\"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?\"凌晨\":r<900?\"早上\":r<1200?\"上午\":1200===r?\"中午\":r<1800?\"下午\":\"晚上\"},calendar:{sameDay:\"[今天]LT\",nextDay:\"[明天]LT\",nextWeek:\"[下]ddddLT\",lastDay:\"[昨天]LT\",lastWeek:\"[上]ddddLT\",sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"日\";case\"M\":return e+\"月\";case\"w\":case\"W\":return e+\"週\";default:return e}},relativeTime:{future:\"%s後\",past:\"%s前\",s:\"幾秒\",ss:\"%d 秒\",m:\"1 分鐘\",mm:\"%d 分鐘\",h:\"1 小時\",hh:\"%d 小時\",d:\"1 天\",dd:\"%d 天\",M:\"1 個月\",MM:\"%d 個月\",y:\"1 年\",yy:\"%d 年\"}})}(n(95093))},1668:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(34661).A},1688:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(47999);r({target:\"Date\",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},1733:e=>{var t=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1795:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"}),\"MoreVert\")},1845:(e,t,n)=>{\"use strict\";n.d(t,{L4:()=>a,ML:()=>o,l$:()=>i}),n(26099),n(3362);var r=n(95692),o=function(e){return new Promise(function(t,n){var o;null===(o=r.N.get(e))||void 0===o||o.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e))})})},a=function(e){return new Promise(function(t,n){var o;null===(o=r.N.post(e))||void 0===o||o.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e))})})},i=function(e){return new Promise(function(t,n){var o;null===(o=r.N.put(e))||void 0===o||o.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e))})})}},1882:(e,t,n)=>{var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return\"[object Function]\"==t||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}},1935:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(74705).A},1951:(e,t,n)=>{\"use strict\";var r=n(78227);t.f=r},1978:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var s=n(64436),u=a(n(81970)),c=n(63981),d=l(n(49910)),p=l(n(97803)),f=n(98400),g=n(67991);t.default=u.memo(function(e){var t=u.useContext(f.BeansContext).context,n=u.useState([]),r=n[0],o=n[1],a=e.name,l=u.useMemo(function(){return s.getRowContainerTypeForName(a)},[a]),h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),A=u.useRef([]),y=u.useRef(!1),E=u.useMemo(function(){return s.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),b=u.useMemo(function(){return c.classesList(E.wrapper)},[]),_=u.useMemo(function(){return c.classesList(E.viewport)},[]),C=u.useMemo(function(){return c.classesList(E.container)},[]),w=a===s.RowContainerName.CENTER,S=a===s.RowContainerName.TOP_CENTER||a===s.RowContainerName.BOTTOM_CENTER||a===s.RowContainerName.STICKY_TOP_CENTER,T=!w&&!S,O=w?h:S?m:v;function D(e){c.agFlushSync(e,function(){o(function(e){var t=A.current;if(y.current)return t;var n=e.filter(function(e){return t.indexOf(e)>=0}),r=t.filter(function(e){return n.indexOf(e)<0});return i(n,r)})})}d.default(\" AG Row Container \"+a+\" \",O),g.useLayoutEffectOnce(function(){var e=[],n={setViewportHeight:function(e){return m.current.style.height=e},setRowCtrls:function(e,t){if(A.current!==e){var n=t&&A.current.length>0&&e.length>0;A.current=e,D(n)}},setDomOrder:function(e){y.current!=e&&(y.current=e,D(!1))},setContainerWidth:function(e){return v.current.style.width=e}},r=t.createBean(new s.RowContainerCtrl(a));return e.push(r),r.setComp(n,v.current,m.current,h.current),function(){t.destroyBeans(e)}});var R=function(){return u.default.createElement(\"div\",{className:C,ref:v,role:r.length?\"rowgroup\":\"presentation\"},r.map(function(e){return u.default.createElement(p.default,{rowCtrl:e,containerType:l,key:e.getInstanceId()})}))};return u.default.createElement(u.default.Fragment,null,w&&u.default.createElement(\"div\",{className:b,ref:h,role:\"presentation\"},u.default.createElement(\"div\",{className:_,ref:m,role:\"presentation\"},R())),S&&u.default.createElement(\"div\",{className:_,ref:m,role:\"presentation\"},R()),T&&R())})},1988:(e,t,n)=>{\"use strict\";n.d(t,{I:()=>r,J:()=>o});var r=[{label:\"Monthly\",value:\"Monthly\"},{label:\"Yearly\",value:\"Yearly\"}],o=[{label:\"January\",value:\"JANUARY\"},{label:\"February\",value:\"FEBRUARY\"},{label:\"March\",value:\"MARCH\"},{label:\"April\",value:\"APRIL\"},{label:\"May\",value:\"MAY\"},{label:\"June\",value:\"JUNE\"},{label:\"July\",value:\"JULY\"},{label:\"August\",value:\"AUGUST\"},{label:\"September\",value:\"SEPTEMBER\"},{label:\"October\",value:\"OCTOBER\"},{label:\"November\",value:\"NOVEMBER\"},{label:\"December\",value:\"DECEMBER\"}]},2008:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).filter;r({target:\"Array\",proto:!0,forced:!n(70597)(\"filter\")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2055:(e,t,n)=>{\"use strict\";e.exports=n.p+\"69b0c6a0b04e495b568a.svg\"},2071:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>ne});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(11317),s=n(57223),u=n(89453),c=n(75659),d=n(34661),p=n(96248),f=n(28466),g=n(19741),h=n(38413),m=n(31609);function v(e){return(0,m.Ay)(\"MuiNativeSelect\",e)}const A=(0,h.A)(\"MuiNativeSelect\",[\"root\",\"select\",\"multiple\",\"filled\",\"outlined\",\"standard\",\"disabled\",\"icon\",\"iconOpen\",\"iconFilled\",\"iconOutlined\",\"iconStandard\",\"nativeInput\",\"error\"]);var y=n(11848),E=n(39770),b=n(74848);const _=[\"className\",\"disabled\",\"error\",\"IconComponent\",\"inputRef\",\"variant\"],C=({ownerState:e,theme:t})=>(0,r.A)({MozAppearance:\"none\",WebkitAppearance:\"none\",userSelect:\"none\",borderRadius:0,cursor:\"pointer\",\"&:focus\":(0,r.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:\"light\"===t.palette.mode?\"rgba(0, 0, 0, 0.05)\":\"rgba(255, 255, 255, 0.05)\"},{borderRadius:0}),\"&::-ms-expand\":{display:\"none\"},[`&.${A.disabled}`]:{cursor:\"default\"},\"&[multiple]\":{height:\"auto\"},\"&:not([multiple]) option, &:not([multiple]) optgroup\":{backgroundColor:(t.vars||t).palette.background.paper},\"&&&\":{paddingRight:24,minWidth:16}},\"filled\"===e.variant&&{\"&&&\":{paddingRight:32}},\"outlined\"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,\"&:focus\":{borderRadius:(t.vars||t).shape.borderRadius},\"&&&\":{paddingRight:32}}),w=(0,y.Ay)(\"select\",{name:\"MuiNativeSelect\",slot:\"Select\",shouldForwardProp:E.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${A.multiple}`]:t.multiple}]}})(C),S=({ownerState:e,theme:t})=>(0,r.A)({position:\"absolute\",right:0,top:\"calc(50% - .5em)\",pointerEvents:\"none\",color:(t.vars||t).palette.action.active,[`&.${A.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:\"rotate(180deg)\"},\"filled\"===e.variant&&{right:7},\"outlined\"===e.variant&&{right:7}),T=(0,y.Ay)(\"svg\",{name:\"MuiNativeSelect\",slot:\"Icon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,f.A)(n.variant)}`],n.open&&t.iconOpen]}})(S),O=a.forwardRef(function(e,t){const{className:n,disabled:l,error:s,IconComponent:u,inputRef:d,variant:p=\"standard\"}=e,g=(0,o.A)(e,_),h=(0,r.A)({},e,{disabled:l,variant:p,error:s}),m=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:[\"select\",n,r&&\"disabled\",o&&\"multiple\",i&&\"error\"],icon:[\"icon\",`icon${(0,f.A)(n)}`,a&&\"iconOpen\",r&&\"disabled\"]};return(0,c.A)(l,v,t)})(h);return(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)(w,(0,r.A)({ownerState:h,className:(0,i.A)(m.select,n),disabled:l,ref:d||t},g)),e.multiple?null:(0,b.jsx)(T,{as:u,ownerState:h,className:m.icon})]})});var D=n(82891),R=n(64438),N=n(96852),L=n(41159);function P(e){return(0,m.Ay)(\"MuiSelect\",e)}const M=(0,h.A)(\"MuiSelect\",[\"root\",\"select\",\"multiple\",\"filled\",\"outlined\",\"standard\",\"disabled\",\"focused\",\"icon\",\"iconOpen\",\"iconFilled\",\"iconOutlined\",\"iconStandard\",\"nativeInput\",\"error\"]);var x;const I=[\"aria-describedby\",\"aria-label\",\"autoFocus\",\"autoWidth\",\"children\",\"className\",\"defaultOpen\",\"defaultValue\",\"disabled\",\"displayEmpty\",\"error\",\"IconComponent\",\"inputRef\",\"labelId\",\"MenuProps\",\"multiple\",\"name\",\"onBlur\",\"onChange\",\"onClose\",\"onFocus\",\"onOpen\",\"open\",\"readOnly\",\"renderValue\",\"SelectDisplayProps\",\"tabIndex\",\"type\",\"value\",\"variant\"],k=(0,y.Ay)(\"div\",{name:\"MuiSelect\",slot:\"Select\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${M.select}`]:t.select},{[`&.${M.select}`]:t[n.variant]},{[`&.${M.error}`]:t.error},{[`&.${M.multiple}`]:t.multiple}]}})(C,{[`&.${M.select}`]:{height:\"auto\",minHeight:\"1.4375em\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",overflow:\"hidden\"}}),B=(0,y.Ay)(\"svg\",{name:\"MuiSelect\",slot:\"Icon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,f.A)(n.variant)}`],n.open&&t.iconOpen]}})(S),F=(0,y.Ay)(\"input\",{shouldForwardProp:e=>(0,R.A)(e)&&\"classes\"!==e,name:\"MuiSelect\",slot:\"NativeInput\",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:\"absolute\",opacity:0,pointerEvents:\"none\",width:\"100%\",boxSizing:\"border-box\"});function j(e,t){return\"object\"==typeof t&&null!==t?e===t:String(e)===String(t)}function H(e){return null==e||\"string\"==typeof e&&!e.trim()}const U=a.forwardRef(function(e,t){var n;const{\"aria-describedby\":l,\"aria-label\":s,autoFocus:h,autoWidth:m,children:v,className:A,defaultOpen:y,defaultValue:E,disabled:_,displayEmpty:C,error:w=!1,IconComponent:S,inputRef:T,labelId:O,MenuProps:R={},multiple:M,name:U,onBlur:Y,onChange:G,onClose:z,onFocus:V,onOpen:q,open:W,readOnly:Q,renderValue:K,SelectDisplayProps:$={},tabIndex:X,value:J,variant:Z=\"standard\"}=e,ee=(0,o.A)(e,I),[te,ne]=(0,L.A)({controlled:J,default:E,name:\"Select\"}),[re,oe]=(0,L.A)({controlled:W,default:y,name:\"Select\"}),ae=a.useRef(null),ie=a.useRef(null),[le,se]=a.useState(null),{current:ue}=a.useRef(null!=W),[ce,de]=a.useState(),pe=(0,N.A)(t,T),fe=a.useCallback(e=>{ie.current=e,e&&se(e)},[]),ge=null==le?void 0:le.parentNode;a.useImperativeHandle(pe,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:te}),[te]),a.useEffect(()=>{y&&re&&le&&!ue&&(de(m?null:ge.clientWidth),ie.current.focus())},[le,m]),a.useEffect(()=>{h&&ie.current.focus()},[h]),a.useEffect(()=>{if(!O)return;const e=(0,p.A)(ie.current).getElementById(O);if(e){const t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener(\"click\",t),()=>{e.removeEventListener(\"click\",t)}}},[O]);const he=(e,t)=>{e?q&&q(t):z&&z(t),ue||(de(m?null:ge.clientWidth),oe(e))},me=a.Children.toArray(v),ve=e=>t=>{let n;if(t.currentTarget.hasAttribute(\"tabindex\")){if(M){n=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==n&&(ne(n),G)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,\"target\",{writable:!0,value:{value:n,name:U}}),G(o,e)}M||he(!1,t)}},Ae=null!==le&&re;let ye,Ee;delete ee[\"aria-invalid\"];const be=[];let _e=!1,Ce=!1;((0,D.lq)({value:te})||C)&&(K?ye=K(te):_e=!0);const we=me.map(e=>{if(!a.isValidElement(e))return null;let t;if(M){if(!Array.isArray(te))throw new Error((0,u.A)(2));t=te.some(t=>j(t,e.props.value)),t&&_e&&be.push(e.props.children)}else t=j(te,e.props.value),t&&_e&&(Ee=e.props.children);return t&&(Ce=!0),a.cloneElement(e,{\"aria-selected\":t?\"true\":\"false\",onClick:ve(e),onKeyUp:t=>{\" \"===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:\"option\",selected:t,value:void 0,\"data-value\":e.props.value})});_e&&(ye=M?0===be.length?null:be.reduce((e,t,n)=>(e.push(t),n<be.length-1&&e.push(\", \"),e),[]):Ee);let Se,Te=ce;!m&&ue&&le&&(Te=ge.clientWidth),Se=void 0!==X?X:_?null:0;const Oe=$.id||(U?`mui-component-select-${U}`:void 0),De=(0,r.A)({},e,{variant:Z,value:te,open:Ae,error:w}),Re=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:[\"select\",n,r&&\"disabled\",o&&\"multiple\",i&&\"error\"],icon:[\"icon\",`icon${(0,f.A)(n)}`,a&&\"iconOpen\",r&&\"disabled\"],nativeInput:[\"nativeInput\"]};return(0,c.A)(l,P,t)})(De),Ne=(0,r.A)({},R.PaperProps,null==(n=R.slotProps)?void 0:n.paper),Le=(0,d.A)();return(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)(k,(0,r.A)({ref:fe,tabIndex:Se,role:\"combobox\",\"aria-controls\":Le,\"aria-disabled\":_?\"true\":void 0,\"aria-expanded\":Ae?\"true\":\"false\",\"aria-haspopup\":\"listbox\",\"aria-label\":s,\"aria-labelledby\":[O,Oe].filter(Boolean).join(\" \")||void 0,\"aria-describedby\":l,onKeyDown:e=>{Q||-1!==[\" \",\"ArrowUp\",\"ArrowDown\",\"Enter\"].indexOf(e.key)&&(e.preventDefault(),he(!0,e))},onMouseDown:_||Q?null:e=>{0===e.button&&(e.preventDefault(),ie.current.focus(),he(!0,e))},onBlur:e=>{!Ae&&Y&&(Object.defineProperty(e,\"target\",{writable:!0,value:{value:te,name:U}}),Y(e))},onFocus:V},$,{ownerState:De,className:(0,i.A)($.className,Re.select,A),id:Oe,children:H(ye)?x||(x=(0,b.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):ye})),(0,b.jsx)(F,(0,r.A)({\"aria-invalid\":w,value:Array.isArray(te)?te.join(\",\"):te,name:U,ref:ae,\"aria-hidden\":!0,onChange:e=>{const t=me.find(t=>t.props.value===e.target.value);void 0!==t&&(ne(t.props.value),G&&G(e,t))},tabIndex:-1,disabled:_,className:Re.nativeInput,autoFocus:h,ownerState:De},ee)),(0,b.jsx)(B,{as:S,className:Re.icon,ownerState:De}),(0,b.jsx)(g.A,(0,r.A)({id:`menu-${U||\"\"}`,anchorEl:ge,open:Ae,onClose:e=>{he(!1,e)},anchorOrigin:{vertical:\"bottom\",horizontal:\"center\"},transformOrigin:{vertical:\"top\",horizontal:\"center\"}},R,{MenuListProps:(0,r.A)({\"aria-labelledby\":O,role:\"listbox\",\"aria-multiselectable\":M?\"true\":void 0,disableListWrap:!0,id:Le},R.MenuListProps),slotProps:(0,r.A)({},R.slotProps,{paper:(0,r.A)({},Ne,{style:(0,r.A)({minWidth:Te},null!=Ne?Ne.style:null)})}),children:we}))]})});var Y=n(38086),G=n(79716),z=n(602),V=n(77623),q=n(21915),W=n(8641),Q=n(25669);const K=[\"autoWidth\",\"children\",\"classes\",\"className\",\"defaultOpen\",\"displayEmpty\",\"IconComponent\",\"id\",\"input\",\"inputProps\",\"label\",\"labelId\",\"MenuProps\",\"multiple\",\"native\",\"onClose\",\"onOpen\",\"open\",\"renderValue\",\"SelectDisplayProps\",\"variant\"],$=[\"root\"],X={name:\"MuiSelect\",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,E.A)(e)&&\"variant\"!==e,slot:\"Root\"},J=(0,y.Ay)(V.A,X)(\"\"),Z=(0,y.Ay)(W.A,X)(\"\"),ee=(0,y.Ay)(q.A,X)(\"\"),te=a.forwardRef(function(e,t){const n=(0,Q.b)({name:\"MuiSelect\",props:e}),{autoWidth:u=!1,children:c,classes:d={},className:p,defaultOpen:f=!1,displayEmpty:g=!1,IconComponent:h=z.A,id:m,input:v,inputProps:A,label:y,labelId:E,MenuProps:_,multiple:C=!1,native:w=!1,onClose:S,onOpen:T,open:D,renderValue:R,SelectDisplayProps:L,variant:P=\"outlined\"}=n,M=(0,o.A)(n,K),x=w?O:U,I=(0,G.A)(),k=(0,Y.A)({props:n,muiFormControl:I,states:[\"variant\",\"error\"]}),B=k.variant||P,F=(0,r.A)({},n,{variant:B,classes:d}),j=(e=>{const{classes:t}=e;return t})(F),H=(0,o.A)(j,$),V=v||{standard:(0,b.jsx)(J,{ownerState:F}),outlined:(0,b.jsx)(Z,{label:y,ownerState:F}),filled:(0,b.jsx)(ee,{ownerState:F})}[B],q=(0,N.A)(t,(0,s.A)(V));return(0,b.jsx)(a.Fragment,{children:a.cloneElement(V,(0,r.A)({inputComponent:x,inputProps:(0,r.A)({children:c,error:k.error,IconComponent:h,variant:B,type:void 0,multiple:C},w?{id:m}:{autoWidth:u,defaultOpen:f,displayEmpty:g,labelId:E,MenuProps:_,onClose:S,onOpen:T,open:D,renderValue:R,SelectDisplayProps:(0,r.A)({id:m},L)},A,{classes:A?(0,l.A)(H,A.classes):H},v?v.props.inputProps:{})},(C&&w||g)&&\"outlined\"===B?{notched:!0}:{},{ref:q,className:(0,i.A)(V.props.className,p,j.root)},!v&&{variant:B},M))})});te.muiName=\"Select\";const ne=te},2087:(e,t,n)=>{\"use strict\";var r=n(20034),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},2259:(e,t,n)=>{\"use strict\";n(70511)(\"iterator\")},2293:(e,t,n)=>{\"use strict\";var r=n(28551),o=n(35548),a=n(64117),i=n(78227)(\"species\");e.exports=function(e,t){var n,l=r(e).constructor;return void 0===l||a(n=r(l)[i])?t:o(n)}},2360:(e,t,n)=>{\"use strict\";var r,o=n(28551),a=n(96801),i=n(88727),l=n(30421),s=n(20397),u=n(4055),c=n(66119),d=\"prototype\",p=\"script\",f=c(\"IE_PROTO\"),g=function(){},h=function(e){return\"<\"+p+\">\"+e+\"</\"+p+\">\"},m=function(e){e.write(h(\"\")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject(\"htmlfile\")}catch(e){}var e,t,n;v=\"undefined\"!=typeof document?document.domain&&r?m(r):(t=u(\"iframe\"),n=\"java\"+p+\":\",t.style.display=\"none\",s.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h(\"document.F=Object\")),e.close(),e.F):m(r);for(var o=i.length;o--;)delete v[d][i[o]];return v()};l[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=o(e),n=new g,g[d]=null,n[f]=e):n=v(),void 0===t?n:a.f(n,t)}},2404:(e,t,n)=>{var r=n(60270);e.exports=function(e,t){return r(e,t)}},2478:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(48981),a=Math.floor,i=r(\"\".charAt),l=r(\"\".replace),s=r(\"\".slice),u=/\\$([$&'`]|\\d{1,2}|<[^>]*>)/g,c=/\\$([$&'`]|\\d{1,2})/g;e.exports=function(e,t,n,r,d,p){var f=n+e.length,g=r.length,h=c;return void 0!==d&&(d=o(d),h=u),l(p,h,function(o,l){var u;switch(i(l,0)){case\"$\":return\"$\";case\"&\":return e;case\"`\":return s(t,0,n);case\"'\":return s(t,f);case\"<\":u=d[s(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>g){var p=a(c/10);return 0===p?o:p<=g?void 0===r[p-1]?i(l,1):r[p-1]+i(l,1):o}u=r[c-1]}return void 0===u?\"\":u})}},2501:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(81970);function o({controlled:e,default:t,name:n,state:o=\"value\"}){const{current:a}=r.useRef(void 0!==e),[i,l]=r.useState(t);return[a?e:i,r.useCallback(e=>{a||l(e)},[])]}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,a=\"Expected a function\",i=\"__lodash_hash_undefined__\",l=\"__lodash_placeholder__\",s=32,u=128,c=1/0,d=9007199254740991,p=NaN,f=4294967295,g=[[\"ary\",u],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",16],[\"flip\",512],[\"partial\",s],[\"partialRight\",64],[\"rearg\",256]],h=\"[object Arguments]\",m=\"[object Array]\",v=\"[object Boolean]\",A=\"[object Date]\",y=\"[object Error]\",E=\"[object Function]\",b=\"[object GeneratorFunction]\",_=\"[object Map]\",C=\"[object Number]\",w=\"[object Object]\",S=\"[object Promise]\",T=\"[object RegExp]\",O=\"[object Set]\",D=\"[object String]\",R=\"[object Symbol]\",N=\"[object WeakMap]\",L=\"[object ArrayBuffer]\",P=\"[object DataView]\",M=\"[object Float32Array]\",x=\"[object Float64Array]\",I=\"[object Int8Array]\",k=\"[object Int16Array]\",B=\"[object Int32Array]\",F=\"[object Uint8Array]\",j=\"[object Uint8ClampedArray]\",H=\"[object Uint16Array]\",U=\"[object Uint32Array]\",Y=/\\b__p \\+= '';/g,G=/\\b(__p \\+=) '' \\+/g,z=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>\"']/g,W=RegExp(V.source),Q=RegExp(q.source),K=/<%-([\\s\\S]+?)%>/g,$=/<%([\\s\\S]+?)%>/g,X=/<%=([\\s\\S]+?)%>/g,J=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Z=/^\\w*$/,ee=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,te=/[\\\\^$.*+?()[\\]{}|]/g,ne=RegExp(te.source),re=/^\\s+/,oe=/\\s/,ae=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ie=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,le=/,? & /,se=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,ue=/[()=,{}\\[\\]\\/\\s]/,ce=/\\\\(\\\\)?/g,de=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,pe=/\\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,he=/^\\[object .+?Constructor\\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\\d*)$/,Ae=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,ye=/($^)/,Ee=/['\\n\\r\\u2028\\u2029\\\\]/g,be=\"\\\\ud800-\\\\udfff\",_e=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Ce=\"\\\\u2700-\\\\u27bf\",we=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Se=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Te=\"\\\\ufe0e\\\\ufe0f\",Oe=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\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\",De=\"[\"+be+\"]\",Re=\"[\"+Oe+\"]\",Ne=\"[\"+_e+\"]\",Le=\"\\\\d+\",Pe=\"[\"+Ce+\"]\",Me=\"[\"+we+\"]\",xe=\"[^\"+be+Oe+Le+Ce+we+Se+\"]\",Ie=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",ke=\"[^\"+be+\"]\",Be=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",Fe=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",je=\"[\"+Se+\"]\",He=\"\\\\u200d\",Ue=\"(?:\"+Me+\"|\"+xe+\")\",Ye=\"(?:\"+je+\"|\"+xe+\")\",Ge=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",ze=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",Ve=\"(?:\"+Ne+\"|\"+Ie+\")?\",qe=\"[\"+Te+\"]?\",We=qe+Ve+\"(?:\"+He+\"(?:\"+[ke,Be,Fe].join(\"|\")+\")\"+qe+Ve+\")*\",Qe=\"(?:\"+[Pe,Be,Fe].join(\"|\")+\")\"+We,Ke=\"(?:\"+[ke+Ne+\"?\",Ne,Be,Fe,De].join(\"|\")+\")\",$e=RegExp(\"['’]\",\"g\"),Xe=RegExp(Ne,\"g\"),Je=RegExp(Ie+\"(?=\"+Ie+\")|\"+Ke+We,\"g\"),Ze=RegExp([je+\"?\"+Me+\"+\"+Ge+\"(?=\"+[Re,je,\"$\"].join(\"|\")+\")\",Ye+\"+\"+ze+\"(?=\"+[Re,je+Ue,\"$\"].join(\"|\")+\")\",je+\"?\"+Ue+\"+\"+Ge,je+\"+\"+ze,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",Le,Qe].join(\"|\"),\"g\"),et=RegExp(\"[\"+He+be+_e+Te+\"]\"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=[\"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\"],rt=-1,ot={};ot[M]=ot[x]=ot[I]=ot[k]=ot[B]=ot[F]=ot[j]=ot[H]=ot[U]=!0,ot[h]=ot[m]=ot[L]=ot[v]=ot[P]=ot[A]=ot[y]=ot[E]=ot[_]=ot[C]=ot[w]=ot[T]=ot[O]=ot[D]=ot[N]=!1;var at={};at[h]=at[m]=at[L]=at[P]=at[v]=at[A]=at[M]=at[x]=at[I]=at[k]=at[B]=at[_]=at[C]=at[w]=at[T]=at[O]=at[D]=at[R]=at[F]=at[j]=at[H]=at[U]=!0,at[y]=at[E]=at[N]=!1;var it={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},lt=parseFloat,st=parseInt,ut=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct=\"object\"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function(\"return this\")(),pt=t&&!t.nodeType&&t,ft=pt&&e&&!e.nodeType&&e,gt=ft&&ft.exports===pt,ht=gt&&ut.process,mt=function(){try{return ft&&ft.require&&ft.require(\"util\").types||ht&&ht.binding&&ht.binding(\"util\")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,yt=mt&&mt.isMap,Et=mt&&mt.isRegExp,bt=mt&&mt.isSet,_t=mt&&mt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wt(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function Rt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Lt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Mt(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function xt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var kt=Gt(\"length\");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Ft(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Ut,n)}function Ht(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function Gt(e){return function(t){return null==t?o:t[e]}}function zt(e){return function(t){return null==e?o:e[t]}}function Vt(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function qt(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);i!==o&&(n=n===o?i:n+i)}return n}function Wt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,pn(e)+1).replace(re,\"\"):e}function Kt(e){return function(t){return e(t)}}function $t(e,t){return Lt(t,function(t){return e[t]})}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=zt({À:\"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\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),tn=zt({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function nn(e){return\"\\\\\"+it[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n];i!==t&&i!==l||(e[n]=l,a[o++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function cn(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):kt(e)}function dn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split(\"\")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var fn=zt({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"}),gn=function e(t){var n,r=(t=null==t?dt:gn.defaults(dt.Object(),t,gn.pick(dt,nt))).Array,oe=t.Date,be=t.Error,_e=t.Function,Ce=t.Math,we=t.Object,Se=t.RegExp,Te=t.String,Oe=t.TypeError,De=r.prototype,Re=_e.prototype,Ne=we.prototype,Le=t[\"__core-js_shared__\"],Pe=Re.toString,Me=Ne.hasOwnProperty,xe=0,Ie=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",ke=Ne.toString,Be=Pe.call(we),Fe=dt._,je=Se(\"^\"+Pe.call(Me).replace(te,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),He=gt?t.Buffer:o,Ue=t.Symbol,Ye=t.Uint8Array,Ge=He?He.allocUnsafe:o,ze=an(we.getPrototypeOf,we),Ve=we.create,qe=Ne.propertyIsEnumerable,We=De.splice,Qe=Ue?Ue.isConcatSpreadable:o,Ke=Ue?Ue.iterator:o,Je=Ue?Ue.toStringTag:o,et=function(){try{var e=ua(we,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),it=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=oe&&oe.now!==dt.Date.now&&oe.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=Ce.ceil,ft=Ce.floor,ht=we.getOwnPropertySymbols,mt=He?He.isBuffer:o,kt=t.isFinite,zt=De.join,hn=an(we.keys,we),mn=Ce.max,vn=Ce.min,An=oe.now,yn=t.parseInt,En=Ce.random,bn=De.reverse,_n=ua(t,\"DataView\"),Cn=ua(t,\"Map\"),wn=ua(t,\"Promise\"),Sn=ua(t,\"Set\"),Tn=ua(t,\"WeakMap\"),On=ua(we,\"create\"),Dn=Tn&&new Tn,Rn={},Nn=Ba(_n),Ln=Ba(Cn),Pn=Ba(wn),Mn=Ba(Sn),xn=Ba(Tn),In=Ue?Ue.prototype:o,kn=In?In.valueOf:o,Bn=In?In.toString:o;function Fn(e){if(el(e)&&!Gi(e)&&!(e instanceof Yn)){if(e instanceof Un)return e;if(Me.call(e,\"__wrapped__\"))return Fa(e)}return new Un(e)}var jn=function(){function e(){}return function(t){if(!Zi(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Yn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Wn(e){var t=this.__data__=new zn(e);this.size=t.size}function Qn(e,t){var n=Gi(e),r=!n&&Yi(e),o=!n&&!r&&Wi(e),a=!n&&!r&&!o&&sl(e),i=n||r||o||a,l=i?Wt(e.length,Te):[],s=l.length;for(var u in e)!t&&!Me.call(e,u)||i&&(\"length\"==u||o&&(\"offset\"==u||\"parent\"==u)||a&&(\"buffer\"==u||\"byteLength\"==u||\"byteOffset\"==u)||ma(u,s))||l.push(u);return l}function Kn(e){var t=e.length;return t?e[Vr(0,t-1)]:o}function $n(e,t){return Pa(Oo(e),ar(t,0,e.length))}function Xn(e){return Pa(Oo(e))}function Jn(e,t,n){(n!==o&&!ji(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];Me.call(e,t)&&ji(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ji(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,function(e,o,a){t(r,e,n(e),a)}),r}function nr(e,t){return e&&Do(t,Nl(t),e)}function rr(e,t,n){\"__proto__\"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,a=t.length,i=r(a),l=null==e;++n<a;)i[n]=l?o:Sl(e,t[n]);return i}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,a,i){var l,s=1&t,u=2&t,c=4&t;if(n&&(l=a?n(e,r,a,i):n(e)),l!==o)return l;if(!Zi(e))return e;var d=Gi(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&Me.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Oo(e,l)}else{var p=pa(e),f=p==E||p==b;if(Wi(e))return bo(e,s);if(p==w||p==h||f&&!a){if(l=u||f?{}:ga(e),!s)return u?function(e,t){return Do(e,da(e),t)}(e,function(e,t){return e&&Do(t,Ll(t),e)}(l,e)):function(e,t){return Do(e,ca(e),t)}(e,nr(l,e))}else{if(!at[p])return a?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case L:return _o(e);case v:case A:return new o(+e);case P:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case x:case I:case k:case B:case F:case j:case H:case U:return Co(e,n);case _:return new o;case C:case D:return new o(e);case T:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new o;case R:return r=e,kn?we(kn.call(r)):{}}}(e,p,s)}}i||(i=new Wn);var g=i.get(e);if(g)return g;i.set(e,l),al(e)?e.forEach(function(r){l.add(ir(r,t,n,r,e,i))}):tl(e)&&e.forEach(function(r,o){l.set(o,ir(r,t,n,o,e,i))});var m=d?o:(c?u?na:ta:u?Ll:Nl)(e);return St(m||e,function(r,o){m&&(r=e[o=r]),Zn(l,o,ir(r,t,n,o,e,i))}),l}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=we(e);r--;){var a=n[r],i=t[a],l=e[a];if(l===o&&!(a in e)||!i(l))return!1}return!0}function sr(e,t,n){if(\"function\"!=typeof e)throw new Oe(a);return Da(function(){e.apply(o,n)},t)}function ur(e,t,n,r){var o=-1,a=Rt,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=Lt(t,Kt(n))),r?(a=Nt,i=!1):t.length>=200&&(a=Xt,i=!1,t=new qn(t));e:for(;++o<l;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,i&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;s.push(c)}else a(t,d,r)||s.push(c)}return s}Fn.templateSettings={escape:K,evaluate:$,interpolate:X,variable:\"\",imports:{_:Fn}},Fn.prototype=Hn.prototype,Fn.prototype.constructor=Fn,Un.prototype=jn(Hn.prototype),Un.prototype.constructor=Un,Yn.prototype=jn(Hn.prototype),Yn.prototype.constructor=Yn,Gn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===i?o:n}return Me.call(t,e)?t[e]:o},Gn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Me.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?i:t,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():We.call(t,n,1),--this.size,0))},zn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},zn.prototype.has=function(e){return er(this.__data__,e)>-1},zn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Cn||zn),string:new Gn}},Vn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return la(this,e).get(e)},Vn.prototype.has=function(e){return la(this,e).has(e)},Vn.prototype.set=function(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,i),this},qn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.clear=function(){this.__data__=new zn,this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wn.prototype.get=function(e){return this.__data__.get(e)},Wn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var cr=Lo(Ar),dr=Lo(yr,!0);function pr(e,t){var n=!0;return cr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function fr(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(null!=l&&(s===o?l==l&&!ll(l):n(l,s)))var s=l,u=i}return u}function gr(e,t){var n=[];return cr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function hr(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=ha),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?hr(l,t-1,n,r,o):Pt(o,l):r||(o[o.length]=l)}return o}var mr=Po(),vr=Po(!0);function Ar(e,t){return e&&mr(e,t,Nl)}function yr(e,t){return e&&vr(e,t,Nl)}function Er(e,t){return Dt(t,function(t){return $i(e[t])})}function br(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[ka(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return Gi(e)?r:Pt(r,n(e))}function Cr(e){return null==e?e===o?\"[object Undefined]\":\"[object Null]\":Je&&Je in we(e)?function(e){var t=Me.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var a=ke.call(e);return r&&(t?e[Je]=n:delete e[Je]),a}(e):function(e){return ke.call(e)}(e)}function wr(e,t){return e>t}function Sr(e,t){return null!=e&&Me.call(e,t)}function Tr(e,t){return null!=e&&t in we(e)}function Or(e,t,n){for(var a=n?Nt:Rt,i=e[0].length,l=e.length,s=l,u=r(l),c=1/0,d=[];s--;){var p=e[s];s&&t&&(p=Lt(p,Kt(t))),c=vn(p.length,c),u[s]=!n&&(t||i>=120&&p.length>=120)?new qn(s&&p):o}p=e[0];var f=-1,g=u[0];e:for(;++f<i&&d.length<c;){var h=p[f],m=t?t(h):h;if(h=n||0!==h?h:0,!(g?Xt(g,m):a(d,m,n))){for(s=l;--s;){var v=u[s];if(!(v?Xt(v,m):a(e[s],m,n)))continue e}g&&g.push(m),d.push(h)}}return d}function Dr(e,t,n){var r=null==(e=Sa(e,t=vo(t,e)))?e:e[ka(Ka(t))];return null==r?o:Ct(r,e,n)}function Rr(e){return el(e)&&Cr(e)==h}function Nr(e,t,n,r,a){return e===t||(null==e||null==t||!el(e)&&!el(t)?e!=e&&t!=t:function(e,t,n,r,a,i){var l=Gi(e),s=Gi(t),u=l?m:pa(e),c=s?m:pa(t),d=(u=u==h?w:u)==w,p=(c=c==h?w:c)==w,f=u==c;if(f&&Wi(e)){if(!Wi(t))return!1;l=!0,d=!1}if(f&&!d)return i||(i=new Wn),l||sl(e)?Zo(e,t,n,r,a,i):function(e,t,n,r,o,a,i){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!a(new Ye(e),new Ye(t)));case v:case A:case C:return ji(+e,+t);case y:return e.name==t.name&&e.message==t.message;case T:case D:return e==t+\"\";case _:var l=on;case O:var s=1&r;if(l||(l=sn),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=Zo(l(e),l(t),r,o,a,i);return i.delete(e),c;case R:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,u,n,r,a,i);if(!(1&n)){var g=d&&Me.call(e,\"__wrapped__\"),E=p&&Me.call(t,\"__wrapped__\");if(g||E){var b=g?e.value():e,S=E?t.value():t;return i||(i=new Wn),a(b,S,n,r,i)}}return!!f&&(i||(i=new Wn),function(e,t,n,r,a,i){var l=1&n,s=ta(e),u=s.length;if(u!=ta(t).length&&!l)return!1;for(var c=u;c--;){var d=s[c];if(!(l?d in t:Me.call(t,d)))return!1}var p=i.get(e),f=i.get(t);if(p&&f)return p==t&&f==e;var g=!0;i.set(e,t),i.set(t,e);for(var h=l;++c<u;){var m=e[d=s[c]],v=t[d];if(r)var A=l?r(v,m,d,t,e,i):r(m,v,d,e,t,i);if(!(A===o?m===v||a(m,v,n,r,i):A)){g=!1;break}h||(h=\"constructor\"==d)}if(g&&!h){var y=e.constructor,E=t.constructor;y==E||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof y&&y instanceof y&&\"function\"==typeof E&&E instanceof E||(g=!1)}return i.delete(e),i.delete(t),g}(e,t,n,r,a,i))}(e,t,n,r,Nr,a))}function Lr(e,t,n,r){var a=n.length,i=a,l=!r;if(null==e)return!i;for(e=we(e);a--;){var s=n[a];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var u=(s=n[a])[0],c=e[u],d=s[1];if(l&&s[2]){if(c===o&&!(u in e))return!1}else{var p=new Wn;if(r)var f=r(c,d,u,e,t,p);if(!(f===o?Nr(d,c,3,r,p):f))return!1}}return!0}function Pr(e){return!(!Zi(e)||(t=e,Ie&&Ie in t))&&($i(e)?je:he).test(Ba(e));var t}function Mr(e){return\"function\"==typeof e?e:null==e?ns:\"object\"==typeof e?Gi(e)?Fr(e[0],e[1]):Br(e):ds(e)}function xr(e){if(!ba(e))return hn(e);var t=[];for(var n in we(e))Me.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}function Ir(e,t){return e<t}function kr(e,t){var n=-1,o=Vi(e)?r(e.length):[];return cr(e,function(e,r,a){o[++n]=t(e,r,a)}),o}function Br(e){var t=sa(e);return 1==t.length&&t[0][2]?Ca(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Fr(e,t){return Aa(e)&&_a(t)?Ca(ka(e),t):function(n){var r=Sl(n,e);return r===o&&r===t?Tl(n,e):Nr(t,r,3)}}function jr(e,t,n,r,a){e!==t&&mr(t,function(i,l){if(a||(a=new Wn),Zi(i))!function(e,t,n,r,a,i,l){var s=Ta(e,n),u=Ta(t,n),c=l.get(u);if(c)Jn(e,n,c);else{var d=i?i(s,u,n+\"\",e,t,l):o,p=d===o;if(p){var f=Gi(u),g=!f&&Wi(u),h=!f&&!g&&sl(u);d=u,f||g||h?Gi(s)?d=s:qi(s)?d=Oo(s):g?(p=!1,d=bo(u,!0)):h?(p=!1,d=Co(u,!0)):d=[]:rl(u)||Yi(u)?(d=s,Yi(s)?d=ml(s):Zi(s)&&!$i(s)||(d=ga(u))):p=!1}p&&(l.set(u,d),a(d,u,r,i,l),l.delete(u)),Jn(e,n,d)}}(e,t,l,n,jr,r,a);else{var s=r?r(Ta(e,l),i,l+\"\",e,t,a):o;s===o&&(s=i),Jn(e,l,s)}},Ll)}function Hr(e,t){var n=e.length;if(n)return ma(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Lt(t,function(e){return Gi(e)?function(t){return br(t,1===e.length?e[0]:e)}:e}):[ns];var r=-1;t=Lt(t,Kt(ia()));var o=kr(e,function(e,n,o){var a=Lt(t,function(t){return t(e)});return{criteria:a,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,i=o.length,l=n.length;++r<i;){var s=wo(o[r],a[r]);if(s)return r>=l?s:s*(\"desc\"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(o)}function Yr(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=br(e,i);n(l,i)&&$r(a,vo(i,e),l)}return a}function Gr(e,t,n,r){var o=r?Ht:jt,a=-1,i=t.length,l=e;for(e===t&&(t=Oo(t)),n&&(l=Lt(e,Kt(n)));++a<i;)for(var s=0,u=t[a],c=n?n(u):u;(s=o(l,c,s,r))>-1;)l!==e&&We.call(l,s,1),We.call(e,s,1);return e}function zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;ma(o)?We.call(e,o,1):so(e,o)}}return e}function Vr(e,t){return e+ft(En()*(t-e+1))}function qr(e,t){var n=\"\";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Wr(e,t){return Ra(wa(e,t,ns),e+\"\")}function Qr(e){return Kn(jl(e))}function Kr(e,t){var n=jl(e);return Pa(n,ar(t,0,n.length))}function $r(e,t,n,r){if(!Zi(e))return e;for(var a=-1,i=(t=vo(t,e)).length,l=i-1,s=e;null!=s&&++a<i;){var u=ka(t[a]),c=n;if(\"__proto__\"===u||\"constructor\"===u||\"prototype\"===u)return e;if(a!=l){var d=s[u];(c=r?r(d,u,s):o)===o&&(c=Zi(d)?d:ma(t[a+1])?[]:{})}Zn(s,u,c),s=s[u]}return e}var Xr=Dn?function(e,t){return Dn.set(e,t),e}:ns,Jr=et?function(e,t){return et(e,\"toString\",{configurable:!0,enumerable:!1,value:Zl(t),writable:!0})}:ns;function Zr(e){return Pa(jl(e))}function eo(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}function to(e,t){var n;return cr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if(\"number\"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!ll(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return ro(e,t,ns,n)}function ro(e,t,n,r){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=n(t))!=t,s=null===t,u=ll(t),c=t===o;a<i;){var d=ft((a+i)/2),p=n(e[d]),f=p!==o,g=null===p,h=p==p,m=ll(p);if(l)var v=r||h;else v=c?h&&(r||f):s?h&&f&&(r||!g):u?h&&f&&!g&&(r||!m):!g&&!m&&(r?p<=t:p<t);v?a=d+1:i=d}return vn(i,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!ji(l,s)){var s=l;a[o++]=0===i?0:i}}return a}function ao(e){return\"number\"==typeof e?e:ll(e)?p:+e}function io(e){if(\"string\"==typeof e)return e;if(Gi(e))return Lt(e,io)+\"\";if(ll(e))return Bn?Bn.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function lo(e,t,n){var r=-1,o=Rt,a=e.length,i=!0,l=[],s=l;if(n)i=!1,o=Nt;else if(a>=200){var u=t?null:Wo(e);if(u)return sn(u);i=!1,o=Xt,s=new qn}else s=t?[]:l;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d==d){for(var p=s.length;p--;)if(s[p]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}function so(e,t){return null==(e=Sa(e,t=vo(t,e)))||delete e[ka(Ka(t))]}function uo(e,t,n,r){return $r(e,t,n(br(e,t)),r)}function co(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?eo(e,r?0:a,r?a+1:o):eo(e,r?a+1:0,r?o:a)}function po(e,t){var n=e;return n instanceof Yn&&(n=n.value()),Mt(t,function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))},n)}function fo(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var l=e[a],s=-1;++s<o;)s!=a&&(i[a]=ur(i[a]||l,e[s],t,n));return lo(hr(i,1),t,n)}function go(e,t,n){for(var r=-1,a=e.length,i=t.length,l={};++r<a;){var s=r<i?t[r]:o;n(l,e[r],s)}return l}function ho(e){return qi(e)?e:[]}function mo(e){return\"function\"==typeof e?e:ns}function vo(e,t){return Gi(e)?e:Aa(e,t)?[e]:Ia(vl(e))}var Ao=Wr;function yo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var Eo=it||function(e){return dt.clearTimeout(e)};function bo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ye(t).set(new Ye(e)),t}function Co(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wo(e,t){if(e!==t){var n=e!==o,r=null===e,a=e==e,i=ll(e),l=t!==o,s=null===t,u=t==t,c=ll(t);if(!s&&!c&&!i&&e>t||i&&l&&u&&!s&&!c||r&&l&&u||!n&&u||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||s&&n&&a||!l&&a||!u)return-1}return 0}function So(e,t,n,o){for(var a=-1,i=e.length,l=n.length,s=-1,u=t.length,c=mn(i-l,0),d=r(u+c),p=!o;++s<u;)d[s]=t[s];for(;++a<l;)(p||a<i)&&(d[n[a]]=e[a]);for(;c--;)d[s++]=e[a++];return d}function To(e,t,n,o){for(var a=-1,i=e.length,l=-1,s=n.length,u=-1,c=t.length,d=mn(i-s,0),p=r(d+c),f=!o;++a<d;)p[a]=e[a];for(var g=a;++u<c;)p[g+u]=t[u];for(;++l<s;)(f||a<i)&&(p[g+n[l]]=e[a++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Do(e,t,n,r){var a=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var s=t[i],u=r?r(n[s],e[s],s,n,e):o;u===o&&(u=e[s]),a?rr(n,s,u):Zn(n,s,u)}return n}function Ro(e,t){return function(n,r){var o=Gi(n)?wt:tr,a=t?t():{};return o(n,e,ia(r,2),a)}}function No(e){return Wr(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:o,l=a>2?n[2]:o;for(i=e.length>3&&\"function\"==typeof i?(a--,i):o,l&&va(n[0],n[1],l)&&(i=a<3?o:i,a=1),t=we(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Vi(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=we(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function Po(e){return function(t,n,r){for(var o=-1,a=we(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}function Mo(e){return function(t){var n=rn(t=vl(t))?dn(t):o,r=n?n[0]:t.charAt(0),a=n?yo(n,1).join(\"\"):t.slice(1);return r[e]()+a}}function xo(e){return function(t){return Mt($l(Yl(t).replace($e,\"\")),e,\"\")}}function Io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Zi(r)?r:n}}function ko(e){return function(t,n,r){var a=we(t);if(!Vi(t)){var i=ia(n,3);t=Nl(t),n=function(e){return i(a[e],e,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:o}}function Bo(e){return ea(function(t){var n=t.length,r=n,i=Un.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if(\"function\"!=typeof l)throw new Oe(a);if(i&&!s&&\"wrapper\"==oa(l))var s=new Un([],!0)}for(r=s?r:n;++r<n;){var u=oa(l=t[r]),c=\"wrapper\"==u?ra(l):o;s=c&&ya(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[oa(c[0])].apply(s,c[3]):1==l.length&&ya(l)?s[u]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Gi(r))return s.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}})}function Fo(e,t,n,a,i,l,s,c,d,p){var f=t&u,g=1&t,h=2&t,m=24&t,v=512&t,A=h?o:Io(e);return function u(){for(var y=arguments.length,E=r(y),b=y;b--;)E[b]=arguments[b];if(m)var _=aa(u),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,_);if(a&&(E=So(E,a,i,m)),l&&(E=To(E,l,s,m)),y-=C,m&&y<p){var w=ln(E,_);return Vo(e,t,Fo,u.placeholder,n,E,w,c,d,p-y)}var S=g?n:this,T=h?S[e]:e;return y=E.length,c?E=function(e,t){for(var n=e.length,r=vn(t.length,n),a=Oo(e);r--;){var i=t[r];e[r]=ma(i,n)?a[i]:o}return e}(E,c):v&&y>1&&E.reverse(),f&&d<y&&(E.length=d),this&&this!==dt&&this instanceof u&&(T=A||Io(T)),T.apply(S,E)}}function jo(e,t){return function(n,r){return function(e,t,n,r){return Ar(e,function(e,o,a){t(r,n(e),o,a)}),r}(n,e,t(r),{})}}function Ho(e,t){return function(n,r){var a;if(n===o&&r===o)return t;if(n!==o&&(a=n),r!==o){if(a===o)return r;\"string\"==typeof n||\"string\"==typeof r?(n=io(n),r=io(r)):(n=ao(n),r=ao(r)),a=e(n,r)}return a}}function Uo(e){return ea(function(t){return t=Lt(t,Kt(ia())),Wr(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function Yo(e,t){var n=(t=t===o?\" \":io(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,pt(e/cn(t)));return rn(t)?yo(dn(r),0,e).join(\"\"):r.slice(0,e)}function Go(e){return function(t,n,a){return a&&\"number\"!=typeof a&&va(t,n,a)&&(n=a=o),t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n,o){for(var a=-1,i=mn(pt((t-e)/(n||1)),0),l=r(i);i--;)l[o?i:++a]=e,e+=n;return l}(t,n,a=a===o?t<n?1:-1:pl(a),e)}}function zo(e){return function(t,n){return\"string\"==typeof t&&\"string\"==typeof n||(t=hl(t),n=hl(n)),e(t,n)}}function Vo(e,t,n,r,a,i,l,u,c,d){var p=8&t;t|=p?s:64,4&(t&=~(p?64:s))||(t&=-4);var f=[e,t,a,p?i:o,p?l:o,p?o:i,p?o:l,u,c,d],g=n.apply(o,f);return ya(e)&&Oa(g,f),g.placeholder=r,Na(g,e,t)}function qo(e){var t=Ce[e];return function(e,n){if(e=hl(e),(n=null==n?0:vn(fl(n),292))&&kt(e)){var r=(vl(e)+\"e\").split(\"e\");return+((r=(vl(t(r[0]+\"e\"+(+r[1]+n)))+\"e\").split(\"e\"))[0]+\"e\"+(+r[1]-n))}return t(e)}}var Wo=Sn&&1/sn(new Sn([,-0]))[1]==c?function(e){return new Sn(e)}:ls;function Qo(e){return function(t){var n=pa(t);return n==_?on(t):n==O?un(t):function(e,t){return Lt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ko(e,t,n,i,c,d,p,f){var g=2&t;if(!g&&\"function\"!=typeof e)throw new Oe(a);var h=i?i.length:0;if(h||(t&=-97,i=c=o),p=p===o?p:mn(fl(p),0),f=f===o?f:fl(f),h-=c?c.length:0,64&t){var m=i,v=c;i=c=o}var A=g?o:ra(e),y=[e,t,n,i,c,m,v,d,p,f];if(A&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,i=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?So(c,s,t[4]):s,e[4]=c?ln(e[3],l):t[4]}(s=t[5])&&(c=e[5],e[5]=c?To(c,s,t[6]):s,e[6]=c?ln(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,A),e=y[0],t=y[1],n=y[2],i=y[3],c=y[4],!(f=y[9]=y[9]===o?g?0:e.length:mn(y[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?function(e,t,n){var a=Io(e);return function i(){for(var l=arguments.length,s=r(l),u=l,c=aa(i);u--;)s[u]=arguments[u];var d=l<3&&s[0]!==c&&s[l-1]!==c?[]:ln(s,c);return(l-=d.length)<n?Vo(e,t,Fo,i.placeholder,o,s,d,o,o,n-l):Ct(this&&this!==dt&&this instanceof i?a:e,this,s)}}(e,t,f):t!=s&&33!=t||c.length?Fo.apply(o,y):function(e,t,n,o){var a=1&t,i=Io(e);return function t(){for(var l=-1,s=arguments.length,u=-1,c=o.length,d=r(c+s),p=this&&this!==dt&&this instanceof t?i:e;++u<c;)d[u]=o[u];for(;s--;)d[u++]=arguments[++l];return Ct(p,a?n:this,d)}}(e,t,n,i);else var E=function(e,t,n){var r=1&t,o=Io(e);return function t(){return(this&&this!==dt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Na((A?Xr:Oa)(E,y),e,t)}function $o(e,t,n,r){return e===o||ji(e,Ne[n])&&!Me.call(r,n)?t:e}function Xo(e,t,n,r,a,i){return Zi(e)&&Zi(t)&&(i.set(t,e),jr(e,t,o,Xo,i),i.delete(t)),e}function Jo(e){return rl(e)?o:e}function Zo(e,t,n,r,a,i){var l=1&n,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,g=2&n?new qn:o;for(i.set(e,t),i.set(t,e);++p<s;){var h=e[p],m=t[p];if(r)var v=l?r(m,h,p,t,e,i):r(h,m,p,e,t,i);if(v!==o){if(v)continue;f=!1;break}if(g){if(!It(t,function(e,t){if(!Xt(g,t)&&(h===e||a(h,e,n,r,i)))return g.push(t)})){f=!1;break}}else if(h!==m&&!a(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function ea(e){return Ra(wa(e,o,za),e+\"\")}function ta(e){return _r(e,Nl,ca)}function na(e){return _r(e,Ll,da)}var ra=Dn?function(e){return Dn.get(e)}:ls;function oa(e){for(var t=e.name+\"\",n=Rn[t],r=Me.call(Rn,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function aa(e){return(Me.call(Fn,\"placeholder\")?Fn:e).placeholder}function ia(){var e=Fn.iteratee||rs;return e=e===rs?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,r,o=e.__data__;return(\"string\"==(r=typeof(n=t))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?o[\"string\"==typeof t?\"string\":\"hash\"]:o.map}function sa(e){for(var t=Nl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_a(o)]}return t}function ua(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var ca=ht?function(e){return null==e?[]:(e=we(e),Dt(ht(e),function(t){return qe.call(e,t)}))}:gs,da=ht?function(e){for(var t=[];e;)Pt(t,ca(e)),e=ze(e);return t}:gs,pa=Cr;function fa(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,a=!1;++r<o;){var i=ka(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Ji(o)&&ma(i,o)&&(Gi(e)||Yi(e))}function ga(e){return\"function\"!=typeof e.constructor||ba(e)?{}:jn(ze(e))}function ha(e){return Gi(e)||Yi(e)||!!(Qe&&e&&e[Qe])}function ma(e,t){var n=typeof e;return!!(t=null==t?d:t)&&(\"number\"==n||\"symbol\"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,n){if(!Zi(n))return!1;var r=typeof t;return!!(\"number\"==r?Vi(n)&&ma(t,n.length):\"string\"==r&&t in n)&&ji(n[t],e)}function Aa(e,t){if(Gi(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!ll(e))||Z.test(e)||!J.test(e)||null!=t&&e in we(t)}function ya(e){var t=oa(e),n=Fn[t];if(\"function\"!=typeof n||!(t in Yn.prototype))return!1;if(e===n)return!0;var r=ra(n);return!!r&&e===r[0]}(_n&&pa(new _n(new ArrayBuffer(1)))!=P||Cn&&pa(new Cn)!=_||wn&&pa(wn.resolve())!=S||Sn&&pa(new Sn)!=O||Tn&&pa(new Tn)!=N)&&(pa=function(e){var t=Cr(e),n=t==w?e.constructor:o,r=n?Ba(n):\"\";if(r)switch(r){case Nn:return P;case Ln:return _;case Pn:return S;case Mn:return O;case xn:return N}return t});var Ea=Le?$i:hs;function ba(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||Ne)}function _a(e){return e==e&&!Zi(e)}function Ca(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in we(n))}}function wa(e,t,n){return t=mn(t===o?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=mn(o.length-t,0),l=r(i);++a<i;)l[a]=o[t+a];a=-1;for(var s=r(t+1);++a<t;)s[a]=o[a];return s[t]=n(l),Ct(e,this,s)}}function Sa(e,t){return t.length<2?e:br(e,eo(t,0,-1))}function Ta(e,t){if((\"constructor\"!==t||\"function\"!=typeof e[t])&&\"__proto__\"!=t)return e[t]}var Oa=La(Xr),Da=ct||function(e,t){return dt.setTimeout(e,t)},Ra=La(Jr);function Na(e,t,n){var r=t+\"\";return Ra(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?\"& \":\"\")+t[r],t=t.join(n>2?\", \":\" \"),e.replace(ae,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(r,function(e,t){return St(g,function(n){var r=\"_.\"+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(le):[]}(r),n)))}function La(e){var t=0,n=0;return function(){var r=An(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Pa(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n<t;){var i=Vr(n,a),l=e[i];e[i]=e[n],e[n]=l}return e.length=t,e}var Ma,xa,Ia=(Ma=Mi(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(ce,\"$1\"):n||e)}),t},function(e){return 500===xa.size&&xa.clear(),e}),xa=Ma.cache,Ma);function ka(e){if(\"string\"==typeof e||ll(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function Ba(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function Fa(e){if(e instanceof Yn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ja=Wr(function(e,t){return qi(e)?ur(e,hr(t,1,qi,!0)):[]}),Ha=Wr(function(e,t){var n=Ka(t);return qi(n)&&(n=o),qi(e)?ur(e,hr(t,1,qi,!0),ia(n,2)):[]}),Ua=Wr(function(e,t){var n=Ka(t);return qi(n)&&(n=o),qi(e)?ur(e,hr(t,1,qi,!0),o,n):[]});function Ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=mn(r+o,0)),Ft(e,ia(t,3),o)}function Ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==o&&(a=fl(n),a=n<0?mn(r+a,0):vn(a,r-1)),Ft(e,ia(t,3),a,!0)}function za(e){return null!=e&&e.length?hr(e,1):[]}function Va(e){return e&&e.length?e[0]:o}var qa=Wr(function(e){var t=Lt(e,ho);return t.length&&t[0]===e[0]?Or(t):[]}),Wa=Wr(function(e){var t=Ka(e),n=Lt(e,ho);return t===Ka(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,ia(t,2)):[]}),Qa=Wr(function(e){var t=Ka(e),n=Lt(e,ho);return(t=\"function\"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]});function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:o}var $a=Wr(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var Ja=ea(function(e,t){var n=null==e?0:e.length,r=or(e,t);return zr(e,Lt(t,function(e){return ma(e,n)?+e:e}).sort(wo)),r});function Za(e){return null==e?e:bn.call(e)}var ei=Wr(function(e){return lo(hr(e,1,qi,!0))}),ti=Wr(function(e){var t=Ka(e);return qi(t)&&(t=o),lo(hr(e,1,qi,!0),ia(t,2))}),ni=Wr(function(e){var t=Ka(e);return t=\"function\"==typeof t?t:o,lo(hr(e,1,qi,!0),o,t)});function ri(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(qi(e))return t=mn(e.length,t),!0}),Wt(t,function(t){return Lt(e,Gt(t))})}function oi(e,t){if(!e||!e.length)return[];var n=ri(e);return null==t?n:Lt(n,function(e){return Ct(t,o,e)})}var ai=Wr(function(e,t){return qi(e)?ur(e,t):[]}),ii=Wr(function(e){return fo(Dt(e,qi))}),li=Wr(function(e){var t=Ka(e);return qi(t)&&(t=o),fo(Dt(e,qi),ia(t,2))}),si=Wr(function(e){var t=Ka(e);return t=\"function\"==typeof t?t:o,fo(Dt(e,qi),o,t)}),ui=Wr(ri),ci=Wr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n=\"function\"==typeof n?(e.pop(),n):o,oi(e,n)});function di(e){var t=Fn(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var fi=ea(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Yn&&ma(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pi,args:[a],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(a)}),gi=Ro(function(e,t,n){Me.call(e,n)?++e[n]:rr(e,n,1)}),hi=ko(Ya),mi=ko(Ga);function vi(e,t){return(Gi(e)?St:cr)(e,ia(t,3))}function Ai(e,t){return(Gi(e)?Tt:dr)(e,ia(t,3))}var yi=Ro(function(e,t,n){Me.call(e,n)?e[n].push(t):rr(e,n,[t])}),Ei=Wr(function(e,t,n){var o=-1,a=\"function\"==typeof t,i=Vi(e)?r(e.length):[];return cr(e,function(e){i[++o]=a?Ct(t,e,n):Dr(e,t,n)}),i}),bi=Ro(function(e,t,n){rr(e,n,t)});function _i(e,t){return(Gi(e)?Lt:kr)(e,ia(t,3))}var Ci=Ro(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),wi=Wr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,hr(t,1),[])}),Si=ut||function(){return dt.Date.now()};function Ti(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ko(e,u,o,o,o,o,t)}function Oi(e,t){var n;if(\"function\"!=typeof t)throw new Oe(a);return e=fl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Di=Wr(function(e,t,n){var r=1;if(n.length){var o=ln(n,aa(Di));r|=s}return Ko(e,r,t,n,o)}),Ri=Wr(function(e,t,n){var r=3;if(n.length){var o=ln(n,aa(Ri));r|=s}return Ko(t,r,e,n,o)});function Ni(e,t,n){var r,i,l,s,u,c,d=0,p=!1,f=!1,g=!0;if(\"function\"!=typeof e)throw new Oe(a);function h(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||f&&e-d>=l}function v(){var e=Si();if(m(e))return A(e);u=Da(v,function(e){var n=t-(e-c);return f?vn(n,l-(e-d)):n}(e))}function A(e){return u=o,g&&r?h(e):(r=i=o,s)}function y(){var e=Si(),n=m(e);if(r=arguments,i=this,c=e,n){if(u===o)return function(e){return d=e,u=Da(v,t),p?h(e):s}(c);if(f)return Eo(u),u=Da(v,t),h(c)}return u===o&&(u=Da(v,t)),s}return t=hl(t)||0,Zi(n)&&(p=!!n.leading,l=(f=\"maxWait\"in n)?mn(hl(n.maxWait)||0,t):l,g=\"trailing\"in n?!!n.trailing:g),y.cancel=function(){u!==o&&Eo(u),d=0,r=c=i=u=o},y.flush=function(){return u===o?s:A(Si())},y}var Li=Wr(function(e,t){return sr(e,1,t)}),Pi=Wr(function(e,t,n){return sr(e,hl(t)||0,n)});function Mi(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new Oe(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Mi.Cache||Vn),n}function xi(e){if(\"function\"!=typeof e)throw new Oe(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Mi.Cache=Vn;var Ii=Ao(function(e,t){var n=(t=1==t.length&&Gi(t[0])?Lt(t[0],Kt(ia())):Lt(hr(t,1),Kt(ia()))).length;return Wr(function(r){for(var o=-1,a=vn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)})}),ki=Wr(function(e,t){var n=ln(t,aa(ki));return Ko(e,s,o,t,n)}),Bi=Wr(function(e,t){var n=ln(t,aa(Bi));return Ko(e,64,o,t,n)}),Fi=ea(function(e,t){return Ko(e,256,o,o,o,t)});function ji(e,t){return e===t||e!=e&&t!=t}var Hi=zo(wr),Ui=zo(function(e,t){return e>=t}),Yi=Rr(function(){return arguments}())?Rr:function(e){return el(e)&&Me.call(e,\"callee\")&&!qe.call(e,\"callee\")},Gi=r.isArray,zi=vt?Kt(vt):function(e){return el(e)&&Cr(e)==L};function Vi(e){return null!=e&&Ji(e.length)&&!$i(e)}function qi(e){return el(e)&&Vi(e)}var Wi=mt||hs,Qi=At?Kt(At):function(e){return el(e)&&Cr(e)==A};function Ki(e){if(!el(e))return!1;var t=Cr(e);return t==y||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!rl(e)}function $i(e){if(!Zi(e))return!1;var t=Cr(e);return t==E||t==b||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function Xi(e){return\"number\"==typeof e&&e==fl(e)}function Ji(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=d}function Zi(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function el(e){return null!=e&&\"object\"==typeof e}var tl=yt?Kt(yt):function(e){return el(e)&&pa(e)==_};function nl(e){return\"number\"==typeof e||el(e)&&Cr(e)==C}function rl(e){if(!el(e)||Cr(e)!=w)return!1;var t=ze(e);if(null===t)return!0;var n=Me.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&Pe.call(n)==Be}var ol=Et?Kt(Et):function(e){return el(e)&&Cr(e)==T},al=bt?Kt(bt):function(e){return el(e)&&pa(e)==O};function il(e){return\"string\"==typeof e||!Gi(e)&&el(e)&&Cr(e)==D}function ll(e){return\"symbol\"==typeof e||el(e)&&Cr(e)==R}var sl=_t?Kt(_t):function(e){return el(e)&&Ji(e.length)&&!!ot[Cr(e)]},ul=zo(Ir),cl=zo(function(e,t){return e<=t});function dl(e){if(!e)return[];if(Vi(e))return il(e)?dn(e):Oo(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=pa(e);return(t==_?on:t==O?sn:jl)(e)}function pl(e){return e?(e=hl(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fl(e){var t=pl(e),n=t%1;return t==t?n?t-n:t:0}function gl(e){return e?ar(fl(e),0,f):0}function hl(e){if(\"number\"==typeof e)return e;if(ll(e))return p;if(Zi(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=Zi(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||me.test(e)?st(e.slice(2),n?2:8):fe.test(e)?p:+e}function ml(e){return Do(e,Ll(e))}function vl(e){return null==e?\"\":io(e)}var Al=No(function(e,t){if(ba(t)||Vi(t))Do(t,Nl(t),e);else for(var n in t)Me.call(t,n)&&Zn(e,n,t[n])}),yl=No(function(e,t){Do(t,Ll(t),e)}),El=No(function(e,t,n,r){Do(t,Ll(t),e,r)}),bl=No(function(e,t,n,r){Do(t,Nl(t),e,r)}),_l=ea(or),Cl=Wr(function(e,t){e=we(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&va(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],l=Ll(i),s=-1,u=l.length;++s<u;){var c=l[s],d=e[c];(d===o||ji(d,Ne[c])&&!Me.call(e,c))&&(e[c]=i[c])}return e}),wl=Wr(function(e){return e.push(o,Xo),Ct(Ml,o,e)});function Sl(e,t,n){var r=null==e?o:br(e,t);return r===o?n:r}function Tl(e,t){return null!=e&&fa(e,t,Tr)}var Ol=jo(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=ke.call(t)),e[t]=n},Zl(ns)),Dl=jo(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=ke.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]},ia),Rl=Wr(Dr);function Nl(e){return Vi(e)?Qn(e):xr(e)}function Ll(e){return Vi(e)?Qn(e,!0):function(e){if(!Zi(e))return function(e){var t=[];if(null!=e)for(var n in we(e))t.push(n);return t}(e);var t=ba(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&Me.call(e,r))&&n.push(r);return n}(e)}var Pl=No(function(e,t,n){jr(e,t,n)}),Ml=No(function(e,t,n,r){jr(e,t,n,r)}),xl=ea(function(e,t){var n={};if(null==e)return n;var r=!1;t=Lt(t,function(t){return t=vo(t,e),r||(r=t.length>1),t}),Do(e,na(e),n),r&&(n=ir(n,7,Jo));for(var o=t.length;o--;)so(n,t[o]);return n}),Il=ea(function(e,t){return null==e?{}:function(e,t){return Yr(e,t,function(t,n){return Tl(e,n)})}(e,t)});function kl(e,t){if(null==e)return{};var n=Lt(na(e),function(e){return[e]});return t=ia(t),Yr(e,n,function(e,n){return t(e,n[0])})}var Bl=Qo(Nl),Fl=Qo(Ll);function jl(e){return null==e?[]:$t(e,Nl(e))}var Hl=xo(function(e,t,n){return t=t.toLowerCase(),e+(n?Ul(t):t)});function Ul(e){return Kl(vl(e).toLowerCase())}function Yl(e){return(e=vl(e))&&e.replace(Ae,en).replace(Xe,\"\")}var Gl=xo(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),zl=xo(function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()}),Vl=Mo(\"toLowerCase\"),ql=xo(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()}),Wl=xo(function(e,t,n){return e+(n?\" \":\"\")+Kl(t)}),Ql=xo(function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()}),Kl=Mo(\"toUpperCase\");function $l(e,t,n){return e=vl(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Xl=Wr(function(e,t){try{return Ct(e,o,t)}catch(e){return Ki(e)?e:new be(e)}}),Jl=ea(function(e,t){return St(t,function(t){t=ka(t),rr(e,t,Di(e[t],e))}),e});function Zl(e){return function(){return e}}var es=Bo(),ts=Bo(!0);function ns(e){return e}function rs(e){return Mr(\"function\"==typeof e?e:ir(e,1))}var os=Wr(function(e,t){return function(n){return Dr(n,e,t)}}),as=Wr(function(e,t){return function(n){return Dr(e,n,t)}});function is(e,t,n){var r=Nl(t),o=Er(t,r);null!=n||Zi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Nl(t)));var a=!(Zi(n)&&\"chain\"in n&&!n.chain),i=$i(e);return St(o,function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})}),e}function ls(){}var ss=Uo(Lt),us=Uo(Ot),cs=Uo(It);function ds(e){return Aa(e)?Gt(ka(e)):function(e){return function(t){return br(t,e)}}(e)}var ps=Go(),fs=Go(!0);function gs(){return[]}function hs(){return!1}var ms,vs=Ho(function(e,t){return e+t},0),As=qo(\"ceil\"),ys=Ho(function(e,t){return e/t},1),Es=qo(\"floor\"),bs=Ho(function(e,t){return e*t},1),_s=qo(\"round\"),Cs=Ho(function(e,t){return e-t},0);return Fn.after=function(e,t){if(\"function\"!=typeof t)throw new Oe(a);return e=fl(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ti,Fn.assign=Al,Fn.assignIn=yl,Fn.assignInWith=El,Fn.assignWith=bl,Fn.at=_l,Fn.before=Oi,Fn.bind=Di,Fn.bindAll=Jl,Fn.bindKey=Ri,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gi(e)?e:[e]},Fn.chain=di,Fn.chunk=function(e,t,n){t=(n?va(e,t,n):t===o)?1:mn(fl(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,l=0,s=r(pt(a/t));i<a;)s[l++]=eo(e,i,i+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt(Gi(n)?Oo(n):[n],hr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ia();return e=t?Lt(e,function(e){if(\"function\"!=typeof e[1])throw new Oe(a);return[n(e[0]),e[1]]}):[],Wr(function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}})},Fn.conforms=function(e){return function(e){var t=Nl(e);return function(n){return lr(n,e,t)}}(ir(e,1))},Fn.constant=Zl,Fn.countBy=gi,Fn.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Fn.curry=function e(t,n,r){var a=Ko(t,8,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},Fn.curryRight=function e(t,n,r){var a=Ko(t,16,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},Fn.debounce=Ni,Fn.defaults=Cl,Fn.defaultsDeep=wl,Fn.defer=Li,Fn.delay=Pi,Fn.difference=ja,Fn.differenceBy=Ha,Fn.differenceWith=Ua,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:fl(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:fl(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?co(e,ia(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?co(e,ia(t,3),!0):[]},Fn.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&\"number\"!=typeof n&&va(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=fl(n))<0&&(n=-n>a?0:a+n),(r=r===o||r>a?a:fl(r))<0&&(r+=a),r=n>r?0:gl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Gi(e)?Dt:gr)(e,ia(t,3))},Fn.flatMap=function(e,t){return hr(_i(e,t),1)},Fn.flatMapDeep=function(e,t){return hr(_i(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===o?1:fl(n),hr(_i(e,t),n)},Fn.flatten=za,Fn.flattenDeep=function(e){return null!=e&&e.length?hr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?hr(e,t=t===o?1:fl(t)):[]},Fn.flip=function(e){return Ko(e,512)},Fn.flow=es,Fn.flowRight=ts,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:Er(e,Nl(e))},Fn.functionsIn=function(e){return null==e?[]:Er(e,Ll(e))},Fn.groupBy=yi,Fn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Fn.intersection=qa,Fn.intersectionBy=Wa,Fn.intersectionWith=Qa,Fn.invert=Ol,Fn.invertBy=Dl,Fn.invokeMap=Ei,Fn.iteratee=rs,Fn.keyBy=bi,Fn.keys=Nl,Fn.keysIn=Ll,Fn.map=_i,Fn.mapKeys=function(e,t){var n={};return t=ia(t,3),Ar(e,function(e,r,o){rr(n,t(e,r,o),e)}),n},Fn.mapValues=function(e,t){var n={};return t=ia(t,3),Ar(e,function(e,r,o){rr(n,r,t(e,r,o))}),n},Fn.matches=function(e){return Br(ir(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,ir(t,1))},Fn.memoize=Mi,Fn.merge=Pl,Fn.mergeWith=Ml,Fn.method=os,Fn.methodOf=as,Fn.mixin=is,Fn.negate=xi,Fn.nthArg=function(e){return e=fl(e),Wr(function(t){return Hr(t,e)})},Fn.omit=xl,Fn.omitBy=function(e,t){return kl(e,xi(ia(t)))},Fn.once=function(e){return Oi(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Gi(t)||(t=null==t?[]:[t]),Gi(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=ss,Fn.overArgs=Ii,Fn.overEvery=us,Fn.overSome=cs,Fn.partial=ki,Fn.partialRight=Bi,Fn.partition=Ci,Fn.pick=Il,Fn.pickBy=kl,Fn.property=ds,Fn.propertyOf=function(e){return function(t){return null==e?o:br(e,t)}},Fn.pull=$a,Fn.pullAll=Xa,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ia(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Fn.pullAt=Ja,Fn.range=ps,Fn.rangeRight=fs,Fn.rearg=Fi,Fn.reject=function(e,t){return(Gi(e)?Dt:gr)(e,xi(ia(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=ia(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return zr(e,o),n},Fn.rest=function(e,t){if(\"function\"!=typeof e)throw new Oe(a);return Wr(e,t=t===o?t:fl(t))},Fn.reverse=Za,Fn.sampleSize=function(e,t,n){return t=(n?va(e,t,n):t===o)?1:fl(t),(Gi(e)?$n:Kr)(e,t)},Fn.set=function(e,t,n){return null==e?e:$r(e,t,n)},Fn.setWith=function(e,t,n,r){return r=\"function\"==typeof r?r:o,null==e?e:$r(e,t,n,r)},Fn.shuffle=function(e){return(Gi(e)?Xn:Zr)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&\"number\"!=typeof n&&va(e,t,n)?(t=0,n=r):(t=null==t?0:fl(t),n=n===o?r:fl(n)),eo(e,t,n)):[]},Fn.sortBy=wi,Fn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ia(t,2)):[]},Fn.split=function(e,t,n){return n&&\"number\"!=typeof n&&va(e,t,n)&&(t=n=o),(n=n===o?f:n>>>0)?(e=vl(e))&&(\"string\"==typeof t||null!=t&&!ol(t))&&!(t=io(t))&&rn(e)?yo(dn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if(\"function\"!=typeof e)throw new Oe(a);return t=null==t?0:mn(fl(t),0),Wr(function(n){var r=n[t],o=yo(n,0,t);return r&&Pt(o,r),Ct(e,this,o)})},Fn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:fl(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:fl(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?co(e,ia(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?co(e,ia(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if(\"function\"!=typeof e)throw new Oe(a);return Zi(n)&&(r=\"leading\"in n?!!n.leading:r,o=\"trailing\"in n?!!n.trailing:o),Ni(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=pi,Fn.toArray=dl,Fn.toPairs=Bl,Fn.toPairsIn=Fl,Fn.toPath=function(e){return Gi(e)?Lt(e,ka):ll(e)?[e]:Oo(Ia(vl(e)))},Fn.toPlainObject=ml,Fn.transform=function(e,t,n){var r=Gi(e),o=r||Wi(e)||sl(e);if(t=ia(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Zi(e)&&$i(a)?jn(ze(e)):{}}return(o?St:Ar)(e,function(e,r,o){return t(n,e,r,o)}),n},Fn.unary=function(e){return Ti(e,1)},Fn.union=ei,Fn.unionBy=ti,Fn.unionWith=ni,Fn.uniq=function(e){return e&&e.length?lo(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?lo(e,ia(t,2)):[]},Fn.uniqWith=function(e,t){return t=\"function\"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},Fn.unset=function(e,t){return null==e||so(e,t)},Fn.unzip=ri,Fn.unzipWith=oi,Fn.update=function(e,t,n){return null==e?e:uo(e,t,mo(n))},Fn.updateWith=function(e,t,n,r){return r=\"function\"==typeof r?r:o,null==e?e:uo(e,t,mo(n),r)},Fn.values=jl,Fn.valuesIn=function(e){return null==e?[]:$t(e,Ll(e))},Fn.without=ai,Fn.words=$l,Fn.wrap=function(e,t){return ki(mo(t),e)},Fn.xor=ii,Fn.xorBy=li,Fn.xorWith=si,Fn.zip=ui,Fn.zipObject=function(e,t){return go(e||[],t||[],Zn)},Fn.zipObjectDeep=function(e,t){return go(e||[],t||[],$r)},Fn.zipWith=ci,Fn.entries=Bl,Fn.entriesIn=Fl,Fn.extend=yl,Fn.extendWith=El,is(Fn,Fn),Fn.add=vs,Fn.attempt=Xl,Fn.camelCase=Hl,Fn.capitalize=Ul,Fn.ceil=As,Fn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=hl(n))==n?n:0),t!==o&&(t=(t=hl(t))==t?t:0),ar(hl(e),t,n)},Fn.clone=function(e){return ir(e,4)},Fn.cloneDeep=function(e){return ir(e,5)},Fn.cloneDeepWith=function(e,t){return ir(e,5,t=\"function\"==typeof t?t:o)},Fn.cloneWith=function(e,t){return ir(e,4,t=\"function\"==typeof t?t:o)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,Nl(t))},Fn.deburr=Yl,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=ys,Fn.endsWith=function(e,t,n){e=vl(e),t=io(t);var r=e.length,a=n=n===o?r:ar(fl(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Fn.eq=ji,Fn.escape=function(e){return(e=vl(e))&&Q.test(e)?e.replace(q,tn):e},Fn.escapeRegExp=function(e){return(e=vl(e))&&ne.test(e)?e.replace(te,\"\\\\$&\"):e},Fn.every=function(e,t,n){var r=Gi(e)?Ot:pr;return n&&va(e,t,n)&&(t=o),r(e,ia(t,3))},Fn.find=hi,Fn.findIndex=Ya,Fn.findKey=function(e,t){return Bt(e,ia(t,3),Ar)},Fn.findLast=mi,Fn.findLastIndex=Ga,Fn.findLastKey=function(e,t){return Bt(e,ia(t,3),yr)},Fn.floor=Es,Fn.forEach=vi,Fn.forEachRight=Ai,Fn.forIn=function(e,t){return null==e?e:mr(e,ia(t,3),Ll)},Fn.forInRight=function(e,t){return null==e?e:vr(e,ia(t,3),Ll)},Fn.forOwn=function(e,t){return e&&Ar(e,ia(t,3))},Fn.forOwnRight=function(e,t){return e&&yr(e,ia(t,3))},Fn.get=Sl,Fn.gt=Hi,Fn.gte=Ui,Fn.has=function(e,t){return null!=e&&fa(e,t,Sr)},Fn.hasIn=Tl,Fn.head=Va,Fn.identity=ns,Fn.includes=function(e,t,n,r){e=Vi(e)?e:jl(e),n=n&&!r?fl(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:fl(n);return o<0&&(o=mn(r+o,0)),jt(e,t,o)},Fn.inRange=function(e,t,n){return t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=hl(e),t,n)},Fn.invoke=Rl,Fn.isArguments=Yi,Fn.isArray=Gi,Fn.isArrayBuffer=zi,Fn.isArrayLike=Vi,Fn.isArrayLikeObject=qi,Fn.isBoolean=function(e){return!0===e||!1===e||el(e)&&Cr(e)==v},Fn.isBuffer=Wi,Fn.isDate=Qi,Fn.isElement=function(e){return el(e)&&1===e.nodeType&&!rl(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Vi(e)&&(Gi(e)||\"string\"==typeof e||\"function\"==typeof e.splice||Wi(e)||sl(e)||Yi(e)))return!e.length;var t=pa(e);if(t==_||t==O)return!e.size;if(ba(e))return!xr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Nr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n=\"function\"==typeof n?n:o)?n(e,t):o;return r===o?Nr(e,t,o,n):!!r},Fn.isError=Ki,Fn.isFinite=function(e){return\"number\"==typeof e&&kt(e)},Fn.isFunction=$i,Fn.isInteger=Xi,Fn.isLength=Ji,Fn.isMap=tl,Fn.isMatch=function(e,t){return e===t||Lr(e,t,sa(t))},Fn.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:o,Lr(e,t,sa(t),n)},Fn.isNaN=function(e){return nl(e)&&e!=+e},Fn.isNative=function(e){if(Ea(e))throw new be(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return Pr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=nl,Fn.isObject=Zi,Fn.isObjectLike=el,Fn.isPlainObject=rl,Fn.isRegExp=ol,Fn.isSafeInteger=function(e){return Xi(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=al,Fn.isString=il,Fn.isSymbol=ll,Fn.isTypedArray=sl,Fn.isUndefined=function(e){return e===o},Fn.isWeakMap=function(e){return el(e)&&pa(e)==N},Fn.isWeakSet=function(e){return el(e)&&\"[object WeakSet]\"==Cr(e)},Fn.join=function(e,t){return null==e?\"\":zt.call(e,t)},Fn.kebabCase=Gl,Fn.last=Ka,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=fl(n))<0?mn(r+a,0):vn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,Ut,a,!0)},Fn.lowerCase=zl,Fn.lowerFirst=Vl,Fn.lt=ul,Fn.lte=cl,Fn.max=function(e){return e&&e.length?fr(e,ns,wr):o},Fn.maxBy=function(e,t){return e&&e.length?fr(e,ia(t,2),wr):o},Fn.mean=function(e){return Yt(e,ns)},Fn.meanBy=function(e,t){return Yt(e,ia(t,2))},Fn.min=function(e){return e&&e.length?fr(e,ns,Ir):o},Fn.minBy=function(e,t){return e&&e.length?fr(e,ia(t,2),Ir):o},Fn.stubArray=gs,Fn.stubFalse=hs,Fn.stubObject=function(){return{}},Fn.stubString=function(){return\"\"},Fn.stubTrue=function(){return!0},Fn.multiply=bs,Fn.nth=function(e,t){return e&&e.length?Hr(e,fl(t)):o},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=ls,Fn.now=Si,Fn.pad=function(e,t,n){e=vl(e);var r=(t=fl(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Yo(ft(o),n)+e+Yo(pt(o),n)},Fn.padEnd=function(e,t,n){e=vl(e);var r=(t=fl(t))?cn(e):0;return t&&r<t?e+Yo(t-r,n):e},Fn.padStart=function(e,t,n){e=vl(e);var r=(t=fl(t))?cn(e):0;return t&&r<t?Yo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(vl(e).replace(re,\"\"),t||0)},Fn.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&va(e,t,n)&&(t=n=o),n===o&&(\"boolean\"==typeof t?(n=t,t=o):\"boolean\"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pl(e),t===o?(t=e,e=0):t=pl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=En();return vn(e+a*(t-e+lt(\"1e-\"+((a+\"\").length-1))),t)}return Vr(e,t)},Fn.reduce=function(e,t,n){var r=Gi(e)?Mt:Vt,o=arguments.length<3;return r(e,ia(t,4),n,o,cr)},Fn.reduceRight=function(e,t,n){var r=Gi(e)?xt:Vt,o=arguments.length<3;return r(e,ia(t,4),n,o,dr)},Fn.repeat=function(e,t,n){return t=(n?va(e,t,n):t===o)?1:fl(t),qr(vl(e),t)},Fn.replace=function(){var e=arguments,t=vl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,a=(t=vo(t,e)).length;for(a||(a=1,e=o);++r<a;){var i=null==e?o:e[ka(t[r])];i===o&&(r=a,i=n),e=$i(i)?i.call(e):i}return e},Fn.round=_s,Fn.runInContext=e,Fn.sample=function(e){return(Gi(e)?Kn:Qr)(e)},Fn.size=function(e){if(null==e)return 0;if(Vi(e))return il(e)?cn(e):e.length;var t=pa(e);return t==_||t==O?e.size:xr(e).length},Fn.snakeCase=ql,Fn.some=function(e,t,n){var r=Gi(e)?It:to;return n&&va(e,t,n)&&(t=o),r(e,ia(t,3))},Fn.sortedIndex=function(e,t){return no(e,t)},Fn.sortedIndexBy=function(e,t,n){return ro(e,t,ia(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&ji(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return no(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ia(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(ji(e[n],t))return n}return-1},Fn.startCase=Wl,Fn.startsWith=function(e,t,n){return e=vl(e),n=null==n?0:ar(fl(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Fn.subtract=Cs,Fn.sum=function(e){return e&&e.length?qt(e,ns):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,ia(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&va(e,t,n)&&(t=o),e=vl(e),t=El({},t,r,$o);var a,i,l=El({},t.imports,r.imports,$o),s=Nl(l),u=$t(l,s),c=0,d=t.interpolate||ye,p=\"__p += '\",f=Se((t.escape||ye).source+\"|\"+d.source+\"|\"+(d===X?de:ye).source+\"|\"+(t.evaluate||ye).source+\"|$\",\"g\"),g=\"//# sourceURL=\"+(Me.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++rt+\"]\")+\"\\n\";e.replace(f,function(t,n,r,o,l,s){return r||(r=o),p+=e.slice(c,s).replace(Ee,nn),n&&(a=!0,p+=\"' +\\n__e(\"+n+\") +\\n'\"),l&&(i=!0,p+=\"';\\n\"+l+\";\\n__p += '\"),r&&(p+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),c=s+t.length,t}),p+=\"';\\n\";var h=Me.call(t,\"variable\")&&t.variable;if(h){if(ue.test(h))throw new be(\"Invalid `variable` option passed into `_.template`\")}else p=\"with (obj) {\\n\"+p+\"\\n}\\n\";p=(i?p.replace(Y,\"\"):p).replace(G,\"$1\").replace(z,\"$1;\"),p=\"function(\"+(h||\"obj\")+\") {\\n\"+(h?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(i?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+p+\"return __p\\n}\";var m=Xl(function(){return _e(s,g+\"return \"+p).apply(o,u)});if(m.source=p,Ki(m))throw m;return m},Fn.times=function(e,t){if((e=fl(e))<1||e>d)return[];var n=f,r=vn(e,f);t=ia(t),e-=f;for(var o=Wt(r,t);++n<e;)t(n);return o},Fn.toFinite=pl,Fn.toInteger=fl,Fn.toLength=gl,Fn.toLower=function(e){return vl(e).toLowerCase()},Fn.toNumber=hl,Fn.toSafeInteger=function(e){return e?ar(fl(e),-9007199254740991,d):0===e?e:0},Fn.toString=vl,Fn.toUpper=function(e){return vl(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=vl(e))&&(n||t===o))return Qt(e);if(!e||!(t=io(t)))return e;var r=dn(e),a=dn(t);return yo(r,Jt(r,a),Zt(r,a)+1).join(\"\")},Fn.trimEnd=function(e,t,n){if((e=vl(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=io(t)))return e;var r=dn(e);return yo(r,0,Zt(r,dn(t))+1).join(\"\")},Fn.trimStart=function(e,t,n){if((e=vl(e))&&(n||t===o))return e.replace(re,\"\");if(!e||!(t=io(t)))return e;var r=dn(e);return yo(r,Jt(r,dn(t))).join(\"\")},Fn.truncate=function(e,t){var n=30,r=\"...\";if(Zi(t)){var a=\"separator\"in t?t.separator:a;n=\"length\"in t?fl(t.length):n,r=\"omission\"in t?io(t.omission):r}var i=(e=vl(e)).length;if(rn(e)){var l=dn(e);i=l.length}if(n>=i)return e;var s=n-cn(r);if(s<1)return r;var u=l?yo(l,0,s).join(\"\"):e.slice(0,s);if(a===o)return u+r;if(l&&(s+=u.length-s),ol(a)){if(e.slice(s).search(a)){var c,d=u;for(a.global||(a=Se(a.source,vl(pe.exec(a))+\"g\")),a.lastIndex=0;c=a.exec(d);)var p=c.index;u=u.slice(0,p===o?s:p)}}else if(e.indexOf(io(a),s)!=s){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+r},Fn.unescape=function(e){return(e=vl(e))&&W.test(e)?e.replace(V,fn):e},Fn.uniqueId=function(e){var t=++xe;return vl(e)+t},Fn.upperCase=Ql,Fn.upperFirst=Kl,Fn.each=vi,Fn.eachRight=Ai,Fn.first=Va,is(Fn,(ms={},Ar(Fn,function(e,t){Me.call(Fn.prototype,t)||(ms[t]=e)}),ms),{chain:!1}),Fn.VERSION=\"4.17.21\",St([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){Fn[e].placeholder=Fn}),St([\"drop\",\"take\"],function(e,t){Yn.prototype[e]=function(n){n=n===o?1:mn(fl(n),0);var r=this.__filtered__&&!t?new Yn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,f),type:e+(r.__dir__<0?\"Right\":\"\")}),r},Yn.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),St([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,r=1==n||3==n;Yn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ia(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St([\"head\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");Yn.prototype[e]=function(){return this[n](1).value()[0]}}),St([\"initial\",\"tail\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");Yn.prototype[e]=function(){return this.__filtered__?new Yn(this):this[n](1)}}),Yn.prototype.compact=function(){return this.filter(ns)},Yn.prototype.find=function(e){return this.filter(e).head()},Yn.prototype.findLast=function(e){return this.reverse().find(e)},Yn.prototype.invokeMap=Wr(function(e,t){return\"function\"==typeof e?new Yn(this):this.map(function(n){return Dr(n,e,t)})}),Yn.prototype.reject=function(e){return this.filter(xi(ia(e)))},Yn.prototype.slice=function(e,t){e=fl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Yn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=fl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Yn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Yn.prototype.toArray=function(){return this.take(f)},Ar(Yn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Fn[r?\"take\"+(\"last\"==t?\"Right\":\"\"):t],i=r||/^find/.test(t);a&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof Yn,u=l[0],c=s||Gi(t),d=function(e){var t=a.apply(Fn,Pt([e],l));return r&&p?t[0]:t};c&&n&&\"function\"==typeof u&&1!=u.length&&(s=c=!1);var p=this.__chain__,f=!!this.__actions__.length,g=i&&!p,h=s&&!f;if(!i&&c){t=h?t:new Yn(this);var m=e.apply(t,l);return m.__actions__.push({func:pi,args:[d],thisArg:o}),new Un(m,p)}return g&&h?e.apply(this,l):(m=this.thru(d),g?r?m.value()[0]:m.value():m)})}),St([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Gi(o)?o:[],e)}return this[n](function(n){return t.apply(Gi(n)?n:[],e)})}}),Ar(Yn.prototype,function(e,t){var n=Fn[t];if(n){var r=n.name+\"\";Me.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}}),Rn[Fo(o,2).name]=[{name:\"wrapper\",func:o}],Yn.prototype.clone=function(){var e=new Yn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Yn.prototype.reverse=function(){if(this.__filtered__){var e=new Yn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Yn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case\"drop\":e+=i;break;case\"dropRight\":t-=i;break;case\"take\":t=vn(t,e+i);break;case\"takeRight\":e=mn(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,l=a.end,s=l-i,u=r?l:i-1,c=this.__iteratees__,d=c.length,p=0,f=vn(s,this.__takeCount__);if(!n||!r&&o==s&&f==s)return po(e,this.__actions__);var g=[];e:for(;s--&&p<f;){for(var h=-1,m=e[u+=t];++h<d;){var v=c[h],A=v.iteratee,y=v.type,E=A(m);if(2==y)m=E;else if(!E){if(1==y)continue e;break e}}g[p++]=m}return g},Fn.prototype.at=fi,Fn.prototype.chain=function(){return di(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===o&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Fa(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Yn){var t=e;return this.__actions__.length&&(t=new Yn(this)),(t=t.reverse()).__actions__.push({func:pi,args:[Za],thisArg:o}),new Un(t,this.__chain__)}return this.thru(Za)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ke&&(Fn.prototype[Ke]=function(){return this}),Fn}();dt._=gn,(r=function(){return gn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},2694:(e,t,n)=>{\"use strict\";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw l.name=\"Invariant Violation\",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},2778:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(21529).A},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if(\"object\"!=typeof e||!e||\"object\"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<a.length;s++){var u=a[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}},2879:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(58168),o=n(52197);const a=function(e,t,n){return void 0===e||(0,o.A)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},2892:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(96395),a=n(43724),i=n(44576),l=n(19167),s=n(79504),u=n(92796),c=n(39297),d=n(23167),p=n(1625),f=n(10757),g=n(72777),h=n(79039),m=n(38480).f,v=n(77347).f,A=n(24913).f,y=n(31240),E=n(43802).trim,b=\"Number\",_=i[b],C=l[b],w=_.prototype,S=i.TypeError,T=s(\"\".slice),O=s(\"\".charCodeAt),D=u(b,!_(\" 0o1\")||!_(\"0b1\")||_(\"+0x1\")),R=function(e){var t,n=arguments.length<1?0:_(function(e){var t=g(e,\"number\");return\"bigint\"==typeof t?t:function(e){var t,n,r,o,a,i,l,s,u=g(e,\"number\");if(f(u))throw new S(\"Cannot convert a Symbol value to a number\");if(\"string\"==typeof u&&u.length>2)if(u=E(u),43===(t=O(u,0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(i=(a=T(u,2)).length,l=0;l<i;l++)if((s=O(a,l))<48||s>o)return NaN;return parseInt(a,r)}return+u}(t)}(e));return p(w,t=this)&&h(function(){y(t)})?d(Object(n),this,R):n};R.prototype=w,D&&!o&&(w.constructor=R),r({global:!0,constructor:!0,wrap:!0,forced:D},{Number:R});var N=function(e,t){for(var n,r=a?m(t):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range\".split(\",\"),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&A(e,n,v(t,n))};o&&C&&N(l[b],C),(D||o)&&N(l[b],_)},2981:(e,t,n)=>{n(82919);var r=n(6791).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},3035:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={s:[\"mõne sekundi\",\"mõni sekund\",\"paar sekundit\"],ss:[e+\"sekundi\",e+\"sekundit\"],m:[\"ühe minuti\",\"üks minut\"],mm:[e+\" minuti\",e+\" minutit\"],h:[\"ühe tunni\",\"tund aega\",\"üks tund\"],hh:[e+\" tunni\",e+\" tundi\"],d:[\"ühe päeva\",\"üks päev\"],M:[\"kuu aja\",\"kuu aega\",\"üks kuu\"],MM:[e+\" kuu\",e+\" kuud\"],y:[\"ühe aasta\",\"aasta\",\"üks aasta\"],yy:[e+\" aasta\",e+\" aastat\"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale(\"et\",{months:\"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember\".split(\"_\"),monthsShort:\"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets\".split(\"_\"),weekdays:\"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev\".split(\"_\"),weekdaysShort:\"P_E_T_K_N_R_L\".split(\"_\"),weekdaysMin:\"P_E_T_K_N_R_L\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd, D. MMMM YYYY H:mm\"},calendar:{sameDay:\"[Täna,] LT\",nextDay:\"[Homme,] LT\",nextWeek:\"[Järgmine] dddd LT\",lastDay:\"[Eile,] LT\",lastWeek:\"[Eelmine] dddd LT\",sameElse:\"L\"},relativeTime:{future:\"%s pärast\",past:\"%s tagasi\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:\"%d päeva\",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},3142:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>a.A});var r=n(58749),o=n(58094),a=n(28336)},3296:(e,t,n)=>{\"use strict\";n(45806)},3322:function(e,t,n){!function(e){\"use strict\";var t={words:{ss:[\"секунда\",\"секунде\",\"секунди\"],m:[\"један минут\",\"једног минута\"],mm:[\"минут\",\"минута\",\"минута\"],h:[\"један сат\",\"једног сата\"],hh:[\"сат\",\"сата\",\"сати\"],d:[\"један дан\",\"једног дана\"],dd:[\"дан\",\"дана\",\"дана\"],M:[\"један месец\",\"једног месеца\"],MM:[\"месец\",\"месеца\",\"месеци\"],y:[\"једну годину\",\"једне године\"],yy:[\"годину\",\"године\",\"година\"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?\"y\"===r&&n?\"једна година\":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),\"yy\"===r&&n&&\"годину\"===a?e+\" година\":e+\" \"+a)}};e.defineLocale(\"sr-cyrl\",{months:\"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар\".split(\"_\"),monthsShort:\"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.\".split(\"_\"),monthsParseExact:!0,weekdays:\"недеља_понедељак_уторак_среда_четвртак_петак_субота\".split(\"_\"),weekdaysShort:\"нед._пон._уто._сре._чет._пет._суб.\".split(\"_\"),weekdaysMin:\"не_по_ут_ср_че_пе_су\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"D. M. YYYY.\",LL:\"D. MMMM YYYY.\",LLL:\"D. MMMM YYYY. H:mm\",LLLL:\"dddd, D. MMMM YYYY. H:mm\"},calendar:{sameDay:\"[данас у] LT\",nextDay:\"[сутра у] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[у] [недељу] [у] LT\";case 3:return\"[у] [среду] [у] LT\";case 6:return\"[у] [суботу] [у] LT\";case 1:case 2:case 4:case 5:return\"[у] dddd [у] LT\"}},lastDay:\"[јуче у] LT\",lastWeek:function(){return[\"[прошле] [недеље] [у] LT\",\"[прошлог] [понедељка] [у] LT\",\"[прошлог] [уторка] [у] LT\",\"[прошле] [среде] [у] LT\",\"[прошлог] [четвртка] [у] LT\",\"[прошлог] [петка] [у] LT\",\"[прошле] [суботе] [у] LT\"][this.day()]},sameElse:\"L\"},relativeTime:{future:\"за %s\",past:\"пре %s\",s:\"неколико секунди\",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},3362:(e,t,n)=>{\"use strict\";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},3451:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(30421),i=n(20034),l=n(39297),s=n(24913).f,u=n(38480),c=n(10298),d=n(34124),p=n(33392),f=n(92744),g=!1,h=p(\"meta\"),m=0,v=function(e){s(e,h,{value:{objectID:\"O\"+m++,weakData:{}}})},A=e.exports={enable:function(){A.enable=function(){},g=!0;var e=u.f,t=o([].splice),n={};n[h]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===h){t(r,o,1);break}return r},r({target:\"Object\",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!i(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!l(e,h)){if(!d(e))return\"F\";if(!t)return\"E\";v(e)}return e[h].objectID},getWeakData:function(e,t){if(!l(e,h)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[h].weakData},onFreeze:function(e){return f&&g&&d(e)&&!l(e,h)&&v(e),e}};a[h]=!0},3470:e=>{\"use strict\";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3508:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"eu\",{months:\"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua\".split(\"_\"),monthsShort:\"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.\".split(\"_\"),monthsParseExact:!0,weekdays:\"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata\".split(\"_\"),weekdaysShort:\"ig._al._ar._az._og._ol._lr.\".split(\"_\"),weekdaysMin:\"ig_al_ar_az_og_ol_lr\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"YYYY[ko] MMMM[ren] D[a]\",LLL:\"YYYY[ko] MMMM[ren] D[a] HH:mm\",LLLL:\"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm\",l:\"YYYY-M-D\",ll:\"YYYY[ko] MMM D[a]\",lll:\"YYYY[ko] MMM D[a] HH:mm\",llll:\"ddd, YYYY[ko] MMM D[a] HH:mm\"},calendar:{sameDay:\"[gaur] LT[etan]\",nextDay:\"[bihar] LT[etan]\",nextWeek:\"dddd LT[etan]\",lastDay:\"[atzo] LT[etan]\",lastWeek:\"[aurreko] dddd LT[etan]\",sameElse:\"L\"},relativeTime:{future:\"%s barru\",past:\"duela %s\",s:\"segundo batzuk\",ss:\"%d segundo\",m:\"minutu bat\",mm:\"%d minutu\",h:\"ordu bat\",hh:\"%d ordu\",d:\"egun bat\",dd:\"%d egun\",M:\"hilabete bat\",MM:\"%d hilabete\",y:\"urte bat\",yy:\"%d urte\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},3561:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>m});var r=n(58168),o=n(98587),a=n(81970),i=n(31523),l=n(44877),s=n(71547),u=n(21529),c=n(74705),d=n(74848);const p=[\"onChange\",\"maxRows\",\"minRows\",\"style\",\"value\"];function f(e){return parseInt(e,10)||0}const g={visibility:\"hidden\",position:\"absolute\",overflow:\"hidden\",height:0,top:0,left:0,transform:\"translateZ(0)\"};function h(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const m=a.forwardRef(function(e,t){const{onChange:n,maxRows:m,minRows:v=1,style:A,value:y}=e,E=(0,o.A)(e,p),{current:b}=a.useRef(null!=y),_=a.useRef(null),C=(0,i.A)(t,_),w=a.useRef(null),S=a.useRef(null),T=a.useCallback(()=>{const t=_.current,n=S.current;if(!t||!n)return;const r=(0,l.A)(t).getComputedStyle(t);if(\"0px\"===r.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=t.value||e.placeholder||\"x\",\"\\n\"===n.value.slice(-1)&&(n.value+=\" \");const o=r.boxSizing,a=f(r.paddingBottom)+f(r.paddingTop),i=f(r.borderBottomWidth)+f(r.borderTopWidth),s=n.scrollHeight;n.value=\"x\";const u=n.scrollHeight;let c=s;return v&&(c=Math.max(Number(v)*u,c)),m&&(c=Math.min(Number(m)*u,c)),c=Math.max(c,u),{outerHeightStyle:c+(\"border-box\"===o?a+i:0),overflowing:Math.abs(c-s)<=1}},[m,v,e.placeholder]),O=(0,s.A)(()=>{const e=_.current,t=T();if(!e||!t||h(t))return!1;const n=t.outerHeightStyle;return null!=w.current&&w.current!==n}),D=a.useCallback(()=>{const e=_.current,t=T();if(!e||!t||h(t))return;const n=t.outerHeightStyle;w.current!==n&&(w.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?\"hidden\":\"\"},[T]),R=a.useRef(-1);return(0,u.A)(()=>{const e=(0,c.A)(D),t=null==_?void 0:_.current;if(!t)return;const n=(0,l.A)(t);let r;return n.addEventListener(\"resize\",e),\"undefined\"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{O()&&(r.unobserve(t),cancelAnimationFrame(R.current),D(),R.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(R.current),n.removeEventListener(\"resize\",e),r&&r.disconnect()}},[T,D,O]),(0,u.A)(()=>{D()}),(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)(\"textarea\",(0,r.A)({value:y,onChange:e=>{b||D(),n&&n(e)},ref:C,rows:v,style:A},E)),(0,d.jsx)(\"textarea\",{\"aria-hidden\":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,r.A)({},g,A,{paddingTop:0,paddingBottom:0})})]})})},3607:(e,t,n)=>{\"use strict\";var r=n(82839).match(/AppleWebKit\\/(\\d+)\\./);e.exports=!!r&&+r[1]},3650:(e,t,n)=>{var r=n(74335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(89935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},3717:(e,t,n)=>{\"use strict\";var r=n(79504),o=2147483647,a=/[^\\0-\\u007E]/,i=/[.\\u3002\\uFF0E\\uFF61]/g,l=\"Overflow: input needs wider integers to process\",s=RangeError,u=r(i.exec),c=Math.floor,d=String.fromCharCode,p=r(\"\".charCodeAt),f=r([].join),g=r([].push),h=r(\"\".replace),m=r(\"\".split),v=r(\"\".toLowerCase),A=function(e){return e+22+75*(e<26)},y=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},E=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=p(e,n++);if(o>=55296&&o<=56319&&n<r){var a=p(e,n++);56320==(64512&a)?g(t,((1023&o)<<10)+(1023&a)+65536):(g(t,o),n--)}else g(t,o)}return t}(e);var n,r,a=e.length,i=128,u=0,h=72;for(n=0;n<e.length;n++)(r=e[n])<128&&g(t,d(r));var m=t.length,v=m;for(m&&g(t,\"-\");v<a;){var E=o;for(n=0;n<e.length;n++)(r=e[n])>=i&&r<E&&(E=r);var b=v+1;if(E-i>c((o-u)/b))throw new s(l);for(u+=(E-i)*b,i=E,n=0;n<e.length;n++){if((r=e[n])<i&&++u>o)throw new s(l);if(r===i){for(var _=u,C=36;;){var w=C<=h?1:C>=h+26?26:C-h;if(_<w)break;var S=_-w,T=36-w;g(t,d(A(w+S%T))),_=c(S/T),C+=36}g(t,d(A(_))),h=y(u,b,v===m),u=0,v++}}u++,i++}return f(t,\"\")};e.exports=function(e){var t,n,r=[],o=m(h(v(e),i,\".\"),\".\");for(t=0;t<o.length;t++)n=o[t],g(r,u(a,n)?\"xn--\"+E(n):n);return f(r,\".\")}},3727:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a6675b2991f94f897f6b.woff2\"},4055:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(20034),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},4124:(e,t,n)=>{var r=n(45539)(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()});e.exports=r},4146:(e,t,n)=>{\"use strict\";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if(\"string\"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=s(t),h=s(n),m=0;m<i.length;++m){var v=i[m];if(!(a[v]||r&&r[v]||h&&h[v]||l&&l[v])){var A=p(n,v);try{u(t,v,A)}catch(e){}}}}return t}},4417:e=>{\"use strict\";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['\"].*['\"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/[\"'() \\t\\n]|(%20)/.test(e)||t.needQuotes?'\"'.concat(e.replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\"),'\"'):e):e}},4452:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var l=i(n(81970)),s=n(98400),u=n(64436),c=n(63981),d=n(9670),p=n(67991);t.default=l.memo(function(e){var t=l.useContext(s.BeansContext).context,n=l.useState(),o=n[0],a=n[1],i=l.useState(),f=i[0],g=i[1],h=l.useState(),m=h[0],v=h[1],A=l.useState(),y=A[0],E=A[1],b=l.useState(),_=b[0],C=b[1],w=l.useRef(null),S=l.useRef(null),T=l.useRef(null),O=l.useRef(),D=e.ctrl,R=l.useMemo(function(){return new u.CssClassManager(function(){return w.current})},[]);p.useLayoutEffectOnce(function(){var e={setWidth:function(e){return w.current.style.width=e},addOrRemoveCssClass:function(e,t){return R.addOrRemoveCssClass(e,t)},setColId:function(e){return g(e)},setTitle:function(e){return a(e)},setAriaDescription:function(e){return E(e)},setAriaSort:function(e){return v(e)},setUserCompDetails:function(e){return C(e)},getUserCompInstance:function(){return O.current||void 0}};D.setComp(e,w.current,S.current,T.current);var t=D.getSelectAllGui();S.current.insertAdjacentElement(\"afterend\",t)}),l.useLayoutEffect(function(){return d.showJsComp(_,t,T.current,O)},[_]),l.useEffect(function(){D.setDragSource(w.current)},[_]);var N=l.useMemo(function(){return!(!(null==_?void 0:_.componentFromFramework)||!c.isComponentStateless(_.componentClass))},[_]),L=_&&_.componentFromFramework,P=_&&_.componentClass;return l.default.createElement(\"div\",{ref:w,className:\"ag-header-cell\",title:o,\"col-id\":f,\"aria-sort\":m,role:\"columnheader\",tabIndex:-1,\"aria-description\":y},l.default.createElement(\"div\",{ref:S,className:\"ag-header-cell-resize\",role:\"presentation\"}),l.default.createElement(\"div\",{ref:T,className:\"ag-header-cell-comp-wrapper\",role:\"presentation\"},L&&N&&l.default.createElement(P,r({},_.params)),L&&!N&&l.default.createElement(P,r({},_.params,{ref:O}))))})},4495:(e,t,n)=>{\"use strict\";var r=n(39519),o=n(79039),a=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol(\"symbol detection\");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},4589:(e,t,n)=>{\"use strict\";var r;t.A=void 0;var o=((r=n(38120))&&r.__esModule?r:{default:r}).default;t.A=o},4620:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>le}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(60538),o=n(80663),a=n(51545),i=n(56203),l=n(81970),s=n.n(l),u=n(56254),c=n(37998),d=n(96348),p=n(47225),f=n(13075),g=n(27305),h=n(43605),m=n(92416),v=n(15664),A=n(21239),y=n(80648),E=n(94415),b=n(31797),_=n(28161),C=(0,n(11848).Ay)(_.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\"}}),w=n(73300),S=n(99478),T=(n(50113),n(62062),n(25440),n(14073)),O=n(6347),D=n(90815),R=n(88084),N=n(34195),L=n(36874),P=n(76906),M=(n(42762),n(15941)),x=function(){return M.Ik().shape({no_of_packets:M.ai().required(\"Demo Packets Dispatched is required\"),tm_hq_id:M.Yj().required(\"TM HQ is required\"),demo_courier_tracking_number:M.Yj().required(\"Courier details is required\").matches(/^[a-zA-Z0-9\\s/-]+$/,\"Only letters, numbers, spaces, hyphens (-), and forward slashes (/) are allowed.\").max(20,\"Courier details cannot be more than 20 characters\").trim(),demo_courier_details_id:M.Yj().required(\"Courier Company Name is required\"),expected_delivery_date:M.Yj().required(\"Expected Delivery Date is required\")})},I=n(19021),k=n(8085),B=(n(98752),n(64121)),F=n(82997),j=n(98777),H=n(47363),U=n(39738),Y=n(70380),G=n(67621);function z(e){var t=e.history;return l.createElement(G.n,null,l.createElement(U.A,{orientation:\"vertical\"},null==t?void 0:t.map(function(e){return l.createElement(F.A,{active:e.comments,key:e.status},l.createElement(H.A,{icon:l.createElement(\"span\",{\"data-testid\":\"Rejected\"===e.action_taken?\"icon-warning\":\"icon-check\",className:\"\".concat(\"Rejected\"===e.action_taken?\"icon-warning\":\"icon-check\",\" stepper-iconwrapper\")})},l.createElement(T.A,{color:\"#696F88\"},l.createElement(\"strong\",null,e.created_by),\" Demo \",e.status,\" \",\" on \",(0,Y.Yq)(e.created_at,\"Do MMM, YYYY\"),\" \")),e.comments&&l.createElement(j.A,null,l.createElement(T.A,{color:\"#696F88\"},\"Comment: \",e.comments)))})))}function V(e){return V=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},V(e)}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=V(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==V(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.drawerDetails,o=void 0===r?{}:r,a=e.onRequestClose,i=void 0===a?function(){}:a,u=e.onUpdate,c=(0,N.Bd)().t,d=(0,l.useContext)(p.v),g=d.BackOfficeProps,h=g.globalStore.User,m=g.baseurl,A=d.triggerShowLoader,y=d.triggerToastMsg,E=K(K({},o),{},{no_of_packets:\"\",tm_hq_id:\"\",demo_courier_tracking_number:\"\",demo_courier_details_id:\"\",expected_delivery_date:\"\",distributor_bu_id:\"\",history:[]}),b=q((0,l.useState)([]),2),C=b[0],w=b[1],S=q((0,l.useState)([]),2),M=S[0],F=S[1],j=q((0,l.useState)(E),2),H=j[0],U=j[1],G=\"CREATED\"!=(null==o?void 0:o.status);(0,l.useEffect)(function(){(function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=\"\".concat(k.p.GET_TM_LIST_BY_DISTRIBUTOR_BU_ID).replace(\"__DITRIBUTOR_UUID__\",null==r?void 0:r.saksham_distributor_uuid),a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,distributorUUID:null==r?void 0:r.saksham_distributor_uuid,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,f.AT)(\"get\",a,!0)})(h,m,A,K({},o)).then(function(e){if(e){var t=null==(n=e)?void 0:n.map(function(e){return{value:null==e?void 0:e.hq_data_id,label:null==e?void 0:e.hq_data_name,id:null==e?void 0:e.hq_data_id,tm_name:null==e?void 0:e.user_name}});w(t)}var n}).catch(function(e){console.error(\"Error fetching TM list:\",e.message)}),function(e,t,n){var r,o={};return o.domain=t,o.endPoint=\"\".concat(k.p.GET_COURIER_DETAILS_BY_BU_ID),o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,(0,f.AT)(\"get\",o,!0)}(h,m,A).then(function(e){if(e){var t=null==(n=e)?void 0:n.map(function(e){return{value:null==e?void 0:e.id,label:null==e?void 0:e.courier_name,id:null==e?void 0:e.courier_code,code:null==e?void 0:e.courier_code}});F(t)}var n}).catch(function(e){console.error(\"Error fetching courier details:\",e.message)}),function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=k.p.GET_DEMO_DISPATCH_DETAILS_BY_ID.replace(\"__DEMO_UNIQUE_ID__\",r.demo_unique_id),i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,f.AT)(\"get\",i,!0)}(h,m,A,{demo_unique_id:String(null==o?void 0:o.demo_unique_id)}).then(function(e){if(e){var t,n,r,o,a=K(K({},e),{},{expected_delivery_date:null!=e&&e.expected_delivery_date?(0,Y.Yq)(null==e?void 0:e.expected_delivery_date,\"MM/DD/YYYY\",\"DD-MM-YYYY\"):\"\",demo_courier_details_id:null!==(t=null==e?void 0:e.demo_courier_details_id)&&void 0!==t?t:\"\",demo_courier_tracking_number:null!==(n=null==e?void 0:e.demo_courier_tracking_number)&&void 0!==n?n:\"\",no_of_packets:null!==(r=null==e?void 0:e.no_of_packets)&&void 0!==r?r:\"\",tm_hq_id:null!==(o=null==e?void 0:e.tm_hq_id)&&void 0!==o?o:\"\"});U(a)}}).catch(function(e){console.error(\"Error fetching dispatch details:\",e.message),y({message:null==e?void 0:e.message,type:\"error\"})})},[]);var V=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return s().createElement(_.A,{width:\"48%\"},s().createElement(T.A,{variant:\"subtitle2\"},t,\"*\"),s().createElement(I.A,{name:e,onHandleChange:function(t){return n(e,t)},disabled:o||G,value:r,label:\"\",customPlaceholder:\"Enter \".concat(t)}),s().createElement(O.A,{error:!0,style:{textWrap:\"wrap\"}},s().createElement(R.Kw,{name:e})))},W=function(e,t,n,r,o){var a=(null==o?void 0:o.find(function(t){return t.value==(null==r?void 0:r[e])}))||\"\";return s().createElement(_.A,{width:\"48%\"},s().createElement(T.A,{variant:\"subtitle2\"},t,\"*\"),s().createElement(B.A,{name:e,onChange:function(t,r){n(e,null==r?void 0:r.value)},options:o,labelKey:\"label\",label:t,selectedOption:null==r?void 0:r[e],value:a,defaultLabel:\"Select \".concat(t),isDisabled:G}),s().createElement(O.A,{error:!0},s().createElement(R.Kw,{name:e})))};return s().createElement(L.A,{isDrawerOpen:n,anchor:\"right\"},s().createElement(_.A,{className:\"popupMain\"},s().createElement(D.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},s().createElement(T.A,{variant:\"h5\",fontSize:24,fontWeight:500},c(\"UPDATE_DEMO_DETAILS\")),s().createElement(_.A,{\"data-testid\":\"closeIcon\",onClick:function(){return i(!1)}},s().createElement(T.A,{className:\"icon-close closeIcon\"}))),s().createElement(R.l1,{initialValues:H,enableReinitialize:!0,validationSchema:x,onSubmit:function(e){var t=K(K({},e),{},{demo_status:\"DISPATCHED\",demo_unique_id:null==o?void 0:o.demo_unique_id,distributor_bu_id:null==o?void 0:o.saksham_distributor_bu_uuid,expected_delivery_date:(0,Y.Yq)(null==e?void 0:e.expected_delivery_date,\"DD-MM-YYYY\")});(function(e,t,n,r){var o,a,i={};return i.domain=t,i.payLoad=r,i.endPoint=k.p.GET_DEMO_DISPATCH_DETAILS_BY_ID.replace(\"__DEMO_UNIQUE_ID__\",r.demo_unique_id),i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,demo_unique_id:r.demo_unique_id,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,f.AT)(\"put\",i,!0)})(h,m,A,t).then(function(e){e&&(u(),y({message:c(\"DEMO_DETAILS_UPDATED_SUCCESSFULLY\"),type:\"success\"}),i(!1))}).catch(function(e){console.error(\"Error updating demo details:\",e.message),y({message:null==e?void 0:e.message,type:\"error\"})})}},function(e){var t,n,r,o=e.values,a=e.setFieldValue;return s().createElement(R.lV,{className:\"popupContent\"},s().createElement(_.A,{className:\"inputs-cards\"},s().createElement(_.A,{className:\"cards-header-wrapper\"},s().createElement(D.A,{direction:\"row\",gap:2,mb:1},V(\"no_of_packets\",c(\"DEMO_PACKETS_DISPATCHED\"),a,null==o?void 0:o.no_of_packets,!0),W(\"tm_hq_id\",c(\"TMHQ\"),a,o,C)),s().createElement(D.A,{direction:\"row\",gap:2,mb:1},V(\"tm_name\",c(\"TM_NAME\"),a,(null==C||null===(t=C.find(function(e){return e.value==(null==o?void 0:o.tm_hq_id)}))||void 0===t?void 0:t.tm_name)||\"\",!0,C),V(\"demo_courier_tracking_number\",c(\"COURIER_DETAILS\"),function(e,t){return a(e,t.replace(/^\\s+/,\"\"))},null==o?void 0:o.demo_courier_tracking_number)),s().createElement(D.A,{direction:\"row\",gap:2,mb:1},W(\"demo_courier_details_id\",c(\"COURIER_COMPANY_NAME\"),a,o,M),function(e,t,n,r){return s().createElement(_.A,{width:\"48%\"},s().createElement(T.A,{variant:\"subtitle2\"},t,\"*\"),s().createElement(P.A,{calenderType:[\"month\",\"day\"],value:null==r?void 0:r[e],handleChangeDatePicker:function(t){n(e,t)},minDate:Y.Ax.currentDate,maxDate:\"\",disabled:G,restrictManualEntry:!0}),s().createElement(O.A,{error:!0},s().createElement(R.Kw,{name:e})))}(\"expected_delivery_date\",c(\"EXPECTED_DELIVERY_DATE\"),a,o)))),s().createElement(D.A,{direction:\"row\",gap:2,mb:4,justifyContent:\"end\"},s().createElement(v.A,{disabled:G,variant:\"contained\",buttonName:null!==(n=c(\"UPDATE\"))&&void 0!==n?n:\"\",fullwidth:!1,color:\"primary\",type:\"submit\"})),s().createElement(D.A,{direction:\"row\",gap:2},s().createElement(_.A,{className:\"user-detail-box\",width:\"100%\"},s().createElement(T.A,{variant:\"h2\",m:.5},c(\"HISTORY\")),s().createElement(z,{history:(null==H||null===(r=H.demo_tracking_details_log_list)||void 0===r?void 0:r.map(function(e){return{id:\"\",status:e.demoStatus,comments:\"\",action_taken:\"\",created_by:\"\",created_at:e.createdAt}}))||[]}))))})))};var J=n(17575),Z=n(95272);function ee(e){return ee=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach(function(t){re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function re(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ee(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ee(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ie=function(e){var t=e.RBACControls,n=(0,g.w)(t).hasUpdateAccess,_=(0,l.useContext)(p.v),O=_.BackOfficeProps,D=O.globalStore.User,R=O.baseurl,N=_.triggerShowLoader,L=_.triggerToastMsg,P=(0,Z.XC)(D),M=oe((0,l.useState)([]),2),x=M[0],I=M[1],k=oe((0,l.useState)({pageNo:0,pageSize:10}),2),B=k[0],F=k[1],j=oe((0,l.useState)({}),2),H=j[0],U=j[1],Y=oe((0,l.useState)(0),2),G=Y[0],z=Y[1],V=oe((0,l.useState)(0),2),q=V[0],W=V[1],Q=oe((0,l.useState)(!1),2),K=Q[0],$=Q[1],ee=(0,E.U)(D,R,N,L,null===w.Gu||void 0===w.Gu?void 0:w.Gu.DISPATCH_LIST),te=ee.filtersOptions,re=ee.fetchDistributors,ae=oe((0,l.useState)({}),2),ie=ae[0],le=ae[1],se=oe((0,l.useState)([]),2),ue=se[0],ce=se[1],de=oe((0,l.useState)(!1),2),pe=de[0],fe=de[1],ge=function(){(0,y.SY)(D,R,N,(0,Z.HU)({defaultFilters:P,searchFilters:x,selectedFilters:ie,DEMO_PMIN_STATUS:w.OV,paginationState:B,DEFAULT_SORT:S.r4})).then(function(e){var t,n;null!=e&&e.data&&(ce(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]),z(null==e?void 0:e.totalPageCount),W(null!==(n=null==e?void 0:e.totalElements)&&void 0!==n?n:0),$(!1))})};return(0,l.useEffect)(function(){ge()},[B,ie,x]),s().createElement(s().Fragment,null,s().createElement(C,null,s().createElement(a.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(a.A,null,s().createElement(m.A,{routePathName:[{name:d.F_.Demo_Tracking,path:d.fp.Demo_Tracking},{name:d.F_.Demo_Dispatch_Details,path:d.fp.Demo_Dispatch_Details}]}))),s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(a.A,{mt:2},s().createElement(A.A,{onSearchValueChange:function(e){I([{field:\"search\",operator:\"LIKE\",value:e}]),F(function(e){return ne(ne({},e),{},{pageNo:0})})},placeholderText:(0,i.t)(\"SEARCH\"),searchBasedOn:(0,i.t)(\"SEARCH_BY_DISPATCH_DETAILS\")})),s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},s().createElement(v.A,{className:(0,f.F7)(ie),buttonName:(0,i.t)(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){$(!0)}}))),s().createElement(r.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(h.A,{rows:ue,columnDefs:c.ZT,frameworkComponents:{ActionComponent:function(e){var t=e.column,r=e.data,o=!(null!=r&&r.saksham_distributor_code&&null!=r&&r.crop_name),a=o?\"disabled-action-label remove-button\":\"smart-agro-lite-green-label remove-button\",i={demo_unique_id:{label:null==r?void 0:r.demo_requester_code,className:\"smart-agro-lite-green-label\"}};return s().createElement(\"button\",{type:\"button\",onClick:function(){fe(!0),n&&U(r)},disabled:o,className:a,tabIndex:0},i[t.colId].label)},StatusComponent:function(e){return(0,J.q)(ne(ne({},e),{},{translation:\"none\"}))},PminDistributorNameCodeComponent:function(e){return function(e){var t=e.data;return s().createElement(T.A,null,null==t?void 0:t.pmin_distributor_name,\"-\",null==t?void 0:t.pmin_distributor_code)}(ne({},e))},SakshamDistributorNameCodeComponent:function(e){return function(e){var t=e.data;return s().createElement(T.A,null,null==t?void 0:t.saksham_distributor_name,\"-\",null==t?void 0:t.saksham_distributor_code)}(ne({},e))}}})),s().createElement(u.A,{pageNo:B.pageNo,totalPageCount:Math.ceil(G),totalElements:q,onPageChange:function(e){F(function(t){return ne(ne({},t),{},{pageNo:Number(e)})})}}))),K&&s().createElement(b.A,{onRequestClose:function(){return $(!1)},isFilterOpen:K,onFilterSubmit:function(e){le(e),F(function(e){return ne(ne({},e),{},{pageNo:0,pageSize:10})})},onClearFilters:function(){le({}),$(!1)},filtersOptions:te,initialValues:ie,onHQChange:function(e){re(e)},screenName:w.Gu.DISPATCH_LIST}),pe&&s().createElement(X,{isDrawerOpen:pe,drawerDetails:H,onRequestClose:function(e){fe(!1),e&&F({pageNo:0,pageSize:10})},onUpdate:ge}))};const le=(0,l.memo)(ie)},4664:(e,t,n)=>{var r=n(79770),o=n(63345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=l},4704:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},4711:(e,t,n)=>{\"use strict\";e.exports=n.p+\"277114b6d54462782b4f.woff\"},4901:(e,t,n)=>{var r=n(72552),o=n(30294),a=n(40346),i={};i[\"[object Float32Array]\"]=i[\"[object Float64Array]\"]=i[\"[object Int8Array]\"]=i[\"[object Int16Array]\"]=i[\"[object Int32Array]\"]=i[\"[object Uint8Array]\"]=i[\"[object Uint8ClampedArray]\"]=i[\"[object Uint16Array]\"]=i[\"[object Uint32Array]\"]=!0,i[\"[object Arguments]\"]=i[\"[object Array]\"]=i[\"[object ArrayBuffer]\"]=i[\"[object Boolean]\"]=i[\"[object DataView]\"]=i[\"[object Date]\"]=i[\"[object Error]\"]=i[\"[object Function]\"]=i[\"[object Map]\"]=i[\"[object Number]\"]=i[\"[object Object]\"]=i[\"[object RegExp]\"]=i[\"[object Set]\"]=i[\"[object String]\"]=i[\"[object WeakMap]\"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},5506:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(32357).entries;r({target:\"Object\",stat:!0},{entries:function(e){return o(e)}})},5556:(e,t,n)=>{e.exports=n(2694)()},5673:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3\"}),\"Visibility\")},5699:(e,t,n)=>{\"use strict\";e.exports=n.p+\"3bcf546689319f69a5b8.woff2\"},5746:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(89228),a=n(28551),i=n(20034),l=n(67750),s=n(3470),u=n(655),c=n(55966),d=n(56682);o(\"search\",function(e,t,n){return[function(t){var n=l(this),o=i(t)?c(t,e):void 0;return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=a(this),o=u(e),i=n(t,r,o);if(i.done)return i.value;var l=r.lastIndex;s(l,0)||(r.lastIndex=0);var c=d(r,o);return s(r.lastIndex,l)||(r.lastIndex=l),null===c?-1:c.index}]})},5748:(e,t)=>{\"use strict\";t.A=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},5784:function(e,t,n){!function(e){\"use strict\";var t=\"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december\".split(\"_\"),n=\"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec\".split(\"_\");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+\" \";switch(n){case\"s\":return t||o?\"pár sekúnd\":\"pár sekundami\";case\"ss\":return t||o?a+(r(e)?\"sekundy\":\"sekúnd\"):a+\"sekundami\";case\"m\":return t?\"minúta\":o?\"minútu\":\"minútou\";case\"mm\":return t||o?a+(r(e)?\"minúty\":\"minút\"):a+\"minútami\";case\"h\":return t?\"hodina\":o?\"hodinu\":\"hodinou\";case\"hh\":return t||o?a+(r(e)?\"hodiny\":\"hodín\"):a+\"hodinami\";case\"d\":return t||o?\"deň\":\"dňom\";case\"dd\":return t||o?a+(r(e)?\"dni\":\"dní\"):a+\"dňami\";case\"M\":return t||o?\"mesiac\":\"mesiacom\";case\"MM\":return t||o?a+(r(e)?\"mesiace\":\"mesiacov\"):a+\"mesiacmi\";case\"y\":return t||o?\"rok\":\"rokom\";case\"yy\":return t||o?a+(r(e)?\"roky\":\"rokov\"):a+\"rokmi\"}}e.defineLocale(\"sk\",{months:t,monthsShort:n,weekdays:\"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota\".split(\"_\"),weekdaysShort:\"ne_po_ut_st_št_pi_so\".split(\"_\"),weekdaysMin:\"ne_po_ut_st_št_pi_so\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd D. MMMM YYYY H:mm\"},calendar:{sameDay:\"[dnes o] LT\",nextDay:\"[zajtra o] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[v nedeľu o] LT\";case 1:case 2:return\"[v] dddd [o] LT\";case 3:return\"[v stredu o] LT\";case 4:return\"[vo štvrtok o] LT\";case 5:return\"[v piatok o] LT\";case 6:return\"[v sobotu o] LT\"}},lastDay:\"[včera o] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[minulú nedeľu o] LT\";case 1:case 2:case 4:case 5:return\"[minulý] dddd [o] LT\";case 3:return\"[minulú stredu o] LT\";case 6:return\"[minulú sobotu o] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"pred %s\",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},5861:(e,t,n)=>{var r=n(55580),o=n(68223),a=n(32804),i=n(76545),l=n(28303),s=n(72552),u=n(47473),c=\"[object Map]\",d=\"[object Promise]\",p=\"[object Set]\",f=\"[object WeakMap]\",g=\"[object DataView]\",h=u(r),m=u(o),v=u(a),A=u(i),y=u(l),E=s;(r&&E(new r(new ArrayBuffer(1)))!=g||o&&E(new o)!=c||a&&E(a.resolve())!=d||i&&E(new i)!=p||l&&E(new l)!=f)&&(E=function(e){var t=s(e),n=\"[object Object]\"==t?e.constructor:void 0,r=n?u(n):\"\";if(r)switch(r){case h:return g;case m:return c;case v:return d;case A:return p;case y:return f}return t}),e.exports=E},5913:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(81970),o=n.n(r),a=n(90815),i=n(28161),l=n(14073),s=n(15664),u=n(34195);const c=function(e){var t=e.resetFilters,n=e.onApplyFilters,r=e.onRequestClose,c=(0,u.Bd)().t;return o().createElement(o().Fragment,null,o().createElement(a.A,{direction:\"row\",justifyContent:\"right\",gap:2,mb:2},o().createElement(i.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},o().createElement(s.A,{variant:\"outlined\",buttonName:c(\"CLEAR_FILTERS\"),onButtonClick:t,fullwidth:!1,color:\"primary\"}),o().createElement(s.A,{variant:\"contained\",buttonName:c(\"APPLY_FILTERS\"),onButtonClick:n,fullwidth:!1,color:\"primary\",type:\"submit\"}))),o().createElement(i.A,{onClick:r,className:\"smart-agro-lite-filter-cross\"},o().createElement(l.A,{className:\"icon-close closeIcon\"})))}},6025:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(58168),o=n(98587),a=n(31523),i=n(2879),l=n(56677),s=n(22505);const u=[\"className\",\"elementType\",\"ownerState\",\"externalForwardedProps\",\"getSlotOwnerState\",\"internalForwardedProps\"],c=[\"component\",\"slots\",\"slotProps\"],d=[\"component\"];function p(e,t){const{className:n,elementType:p,ownerState:f,externalForwardedProps:g,getSlotOwnerState:h,internalForwardedProps:m}=t,v=(0,o.A)(t,u),{component:A,slots:y={[e]:void 0},slotProps:E={[e]:void 0}}=g,b=(0,o.A)(g,c),_=y[e]||p,C=(0,l.A)(E[e],f),w=(0,s.A)((0,r.A)({className:n},v,{externalForwardedProps:\"root\"===e?b:void 0,externalSlotProps:C})),{props:{component:S},internalRef:T}=w,O=(0,o.A)(w.props,d),D=(0,a.A)(T,null==C?void 0:C.ref,t.ref),R=h?h(O):{},N=(0,r.A)({},f,R),L=\"root\"===e?S||A:S,P=(0,i.A)(_,(0,r.A)({},\"root\"===e&&!A&&!y[e]&&m,\"root\"!==e&&!y[e]&&m,O,L&&{as:L},{ref:D}),N);return Object.keys(R).forEach(e=>{delete P[e]}),[_,P]}},6064:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d}),n(23792),n(26099),n(62953);var r=n(28161),o=n(14073),a=n(88084),i=n(81970),l=n.n(i),s=n(34195),u=n(64121),c=[{label:\"Active\",value:!0},{label:\"In Active\",value:!1}];const d=function(e){var t=e.values,n=e.setFieldValue,i=e.setSelectedStatus,d=e.width,p=void 0===d?\"30%\":d,f=(0,s.Bd)().t;return l().createElement(r.A,{width:p},l().createElement(o.A,{variant:\"subtitle2\"},f(\"STATUS\")),l().createElement(a.D0,{name:\"status\"},function(){return l().createElement(u.A,{name:\"status\",onChange:function(e,t){n(\"status\",t.label),i(t)},options:c,labelKey:\"label\",label:\"status\",selectedOption:t.status,value:t.status,defaultLabel:f(\"SELECT_STATUS\")})}))}},6151:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e32e700bffd92741c526.svg\"},6170:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a),l=n(4417),s=n.n(l),u=new URL(n(61854),n.b),c=i()(o()),d=s()(u);c.push([e.id,`@font-face {\\n  font-family: \"agGridBalham\";\\n  src: url(${d});\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-balham, .ag-theme-balham-dark {\\n  --ag-balham-active-color: #0091ea;\\n  --ag-foreground-color: #000;\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: #f5f7f7;\\n  --ag-tooltip-background-color: #cbd0d3;\\n  --ag-subheader-background-color: #e2e9eb;\\n  --ag-control-panel-background-color: #f5f7f7;\\n  --ag-border-color: #bdc3c7;\\n  --ag-odd-row-background-color: #fcfdfe;\\n  --ag-row-hover-color: #ecf0f1;\\n  --ag-column-hover-color: #ecf0f1;\\n  --ag-input-border-color: #95a5a6;\\n  --ag-invalid-color: #e02525;\\n  --ag-input-disabled-background-color: #ebebeb;\\n  --ag-checkbox-unchecked-color: #7f8c8d;\\n  --ag-input-focus-border-color: #719ECE;\\n  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);\\n  --ag-range-selection-border-color: var(--ag-balham-active-color);\\n  --ag-checkbox-checked-color: var(--ag-balham-active-color);\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);\\n  --ag-row-border-color: rgba(189, 195, 199, 0.58);\\n  --ag-chip-background-color: rgba(0, 0, 0, 0.1);\\n  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);\\n  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);\\n  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);\\n  --ag-header-column-separator-display: block;\\n  --ag-header-column-separator-height: 50%;\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 6);\\n  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-input-height: calc(var(--ag-grid-size) * 4);\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 12px;\\n  --ag-icon-font-family: agGridBalham;\\n  --ag-border-radius: 2px;\\n  --ag-checkbox-border-radius: 3px;\\n  --ag-card-shadow: none;\\n}\\n\\n.ag-theme-balham-dark {\\n  --ag-balham-active-color: #00B0FF;\\n  --ag-foreground-color: #F5F5F5;\\n  --ag-background-color: #2d3436;\\n  --ag-header-background-color: #1c1c1c;\\n  --ag-tooltip-background-color: #1c1f20;\\n  --ag-subheader-background-color: #111;\\n  --ag-control-panel-background-color: #202020;\\n  --ag-border-color: #424242;\\n  --ag-odd-row-background-color: #262c2e;\\n  --ag-row-hover-color: #3d4749;\\n  --ag-column-hover-color: #3d4749;\\n  --ag-input-border-color: #f0f0f0;\\n  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\\n  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\\n  --ag-checkbox-unchecked-color: #ecf0f1;\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\\n  --ag-row-border-color: #5c5c5c;\\n  --ag-chip-background-color: rgba(245, 245, 245, 0.08);\\n  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\\n  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\\n  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\\n  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\\n  --ag-toggle-button-off-background-color: transparent;\\n  --ag-toggle-button-off-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\\n  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\\n  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-header,\\n.ag-theme-balham .ag-filter-toolpanel-search,\\n.ag-theme-balham .ag-status-bar,\\n.ag-theme-balham .ag-header-row,\\n.ag-theme-balham .ag-multi-filter-group-title-bar, .ag-theme-balham-dark .ag-filter-toolpanel-header,\\n.ag-theme-balham-dark .ag-filter-toolpanel-search,\\n.ag-theme-balham-dark .ag-status-bar,\\n.ag-theme-balham-dark .ag-header-row,\\n.ag-theme-balham-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 600;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar, .ag-theme-balham-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-status-bar {\\n  font-weight: 600;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham.ag-dnd-ghost, .ag-theme-balham-dark.ag-dnd-ghost {\\n  font-size: var(--ag-font-size);\\n  font-weight: 600;\\n}\\n.ag-theme-balham .ag-tab, .ag-theme-balham-dark .ag-tab {\\n  border: 1px solid transparent;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  margin: var(--ag-grid-size);\\n  margin-bottom: -1px;\\n}\\n.ag-theme-balham .ag-tab-selected, .ag-theme-balham-dark .ag-tab-selected {\\n  background-color: var(--ag-background-color);\\n  border-color: var(--ag-border-color);\\n  border-bottom-color: transparent;\\n}\\n.ag-theme-balham .ag-tabs-header, .ag-theme-balham-dark .ag-tabs-header {\\n  border-bottom: 1px solid var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-column-drop-cell, .ag-theme-balham-dark .ag-column-drop-cell {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-title, .ag-theme-balham-dark .ag-column-drop-vertical-title {\\n  color: var(--ag-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell, .ag-theme-balham-dark .ag-column-drop-vertical-cell {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell-text, .ag-theme-balham-dark .ag-column-drop-vertical-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-icon, .ag-theme-balham-dark .ag-column-drop-vertical-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message {\\n  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message {\\n  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-horizontal, .ag-theme-balham-dark .ag-column-drop-horizontal {\\n  height: var(--ag-header-height);\\n}\\n.ag-theme-balham .ag-column-drop-empty, .ag-theme-balham-dark .ag-column-drop-empty {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-horizontal-cell-text, .ag-theme-balham-dark .ag-column-drop-horizontal-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical, .ag-theme-balham-dark .ag-column-drop-vertical {\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-menu-header, .ag-theme-balham-dark .ag-menu-header {\\n  background-color: var(--ag-header-background-color);\\n}\\n.ag-theme-balham .ag-overlay-loading-center, .ag-theme-balham-dark .ag-overlay-loading-center {\\n  background-color: var(--ag-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  color: var(--ag-foreground-color);\\n  padding: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-theme-balham .ag-tooltip, .ag-theme-balham-dark .ag-tooltip {\\n  border: none;\\n}\\n.ag-theme-balham .ag-panel-title-bar-button-icon, .ag-theme-balham-dark .ag-panel-title-bar-button-icon {\\n  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));\\n}\\n.ag-theme-balham .ag-chart-data-section,\\n.ag-theme-balham .ag-chart-format-section, .ag-theme-balham-dark .ag-chart-data-section,\\n.ag-theme-balham-dark .ag-chart-format-section {\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-group-toolbar, .ag-theme-balham-dark .ag-group-toolbar {\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n.ag-theme-balham .ag-chart-tab, .ag-theme-balham-dark .ag-chart-tab {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-item, .ag-theme-balham-dark .ag-charts-format-sub-level-group-item {\\n  margin-bottom: calc(var(--ag-grid-size) * 1.5);\\n}\\n.ag-theme-balham .ag-chart-menu-close, .ag-theme-balham-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-right: none;\\n}\\n\\n.ag-theme-balham-dark {\\n  color-scheme: dark;\\n}\\n`,\"\",{version:3,sources:[\"webpack://./node_modules/ag-grid-community/styles/ag-theme-balham.css\"],names:[],mappings:\"AAAA;EACE,2BAA2B;EAC3B,4CAA+gO;EAC/gO,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,iCAAiC;EACjC,2BAA2B;EAC3B,2BAA2B;EAC3B,qCAAqC;EACrC,sCAAsC;EACtC,wCAAwC;EACxC,4CAA4C;EAC5C,0BAA0B;EAC1B,sCAAsC;EACtC,6BAA6B;EAC7B,gCAAgC;EAChC,gCAAgC;EAChC,2BAA2B;EAC3B,6CAA6C;EAC7C,sCAAsC;EACtC,sCAAsC;EACtC,2EAA2E;EAC3E,gEAAgE;EAChE,0DAA0D;EAC1D,0DAA0D;EAC1D,oDAAoD;EACpD,mDAAmD;EACnD,iEAAiE;EACjE,gDAAgD;EAChD,8CAA8C;EAC9C,6DAA6D;EAC7D,gEAAgE;EAChE,gEAAgE;EAChE,gEAAgE;EAChE,2DAA2D;EAC3D,4DAA4D;EAC5D,0DAA0D;EAC1D,2CAA2C;EAC3C,wCAAwC;EACxC,mBAAmB;EACnB,oBAAoB;EACpB,8CAA8C;EAC9C,iDAAiD;EACjD,oDAAoD;EACpD,+EAA+E;EAC/E,2DAA2D;EAC3D,gDAAgD;EAChD,qIAAqI;EACrI,oBAAoB;EACpB,mCAAmC;EACnC,uBAAuB;EACvB,gCAAgC;EAChC,sBAAsB;AACxB;;AAEA;EACE,iCAAiC;EACjC,8BAA8B;EAC9B,8BAA8B;EAC9B,qCAAqC;EACrC,sCAAsC;EACtC,qCAAqC;EACrC,4CAA4C;EAC5C,0BAA0B;EAC1B,sCAAsC;EACtC,6BAA6B;EAC7B,gCAAgC;EAChC,gCAAgC;EAChC,2DAA2D;EAC3D,2DAA2D;EAC3D,sCAAsC;EACtC,2DAA2D;EAC3D,yDAAyD;EACzD,8DAA8D;EAC9D,8BAA8B;EAC9B,qDAAqD;EACrD,6DAA6D;EAC7D,gEAAgE;EAChE,gEAAgE;EAChE,gEAAgE;EAChE,2DAA2D;EAC3D,yDAAyD;EACzD,0DAA0D;EAC1D,uDAAuD;EACvD,oDAAoD;EACpD,+DAA+D;EAC/D,4EAA4E;EAC5E,oEAAoE;EACpE,6EAA6E;AAC/E;;AAEA;;;;;;;;;EASE,gBAAgB;EAChB,wCAAwC;AAC1C;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,gBAAgB;EAChB,0CAA0C;AAC5C;AACA;EACE,8BAA8B;EAC9B,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,0DAA0D;EAC1D,2BAA2B;EAC3B,mBAAmB;AACrB;AACA;EACE,4CAA4C;EAC5C,oCAAoC;EACpC,gCAAgC;AAClC;AACA;EACE,+CAA+C;AACjD;AACA;EACE,qCAAqC;AACvC;AACA;EACE,iCAAiC;AACnC;AACA;EACE,0CAA0C;EAC1C,2CAA2C;AAC7C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,iEAAiE;EACjE,kCAAkC;AACpC;;AAEA;EACE,kEAAkE;EAClE,iCAAiC;AACnC;;AAEA;EACE,+BAA+B;AACjC;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,mDAAmD;AACrD;AACA;EACE,4CAA4C;EAC5C,wCAAwC;EACxC,iCAAiC;EACjC,sCAAsC;AACxC;AACA;EACE,YAAY;AACd;AACA;EACE,0DAA0D;AAC5D;AACA;;;EAGE,+CAA+C;AACjD;AACA;EACE,8DAA8D;AAChE;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,8CAA8C;AAChD;AACA;EACE,sCAAsC;AACxC;AACA;EACE,oCAAoC;AACtC;AACA;EACE,6CAA6C;EAC7C,kDAAkD;EAClD,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB\",sourcesContent:['@font-face {\\n  font-family: \"agGridBalham\";\\n  src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABToAAsAAAAAKtAAABSXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIkABmAAiyoKsTSobwE2AiQDghwLgRAABCAFhEYHhGMbNyVVBDYOIDRjr6uI6kkh+/8ygRtD4jmwCxG6Uc8o3ROFxLQ2sYXYmrIGce1xv8pXhIMxezz3sL/PuB39LLa+YsghSdHkgf9j733/r8LSK4siEzgBRzgeDWhnPOufNl8fcPDH3reZM0lVZW1lhXQdnt9m7/NB5X9CIh06GTjCQl2oCObE6B8uytzGyrW1wVo4l9qrsFaJq2bliMtwkeeVt7sRH53vzr58LxIMUoEKUqxQQbl0AbCv+qumwLUyZ1gSDkbGq/v1VbHlArbkJyvtR8D/zf2bBXYlUDQlELqenclM5r3m3rnp/3m/lD8lykkpPyVCC6iAXvpKlDIsqpW7CtiR3bNCrtC7rtKuq1uoOeVk7MIDYmqaIqQ4q0cPBCllfKoy+H9seR+uAm2m2KiYsbVvTyMASaiI2vMamZG2/zk/lAO53TyAjwnD/ndrRcJJGZSoFNRfcUxGdR39ce41sMK5ruZHkRmZnwO5mD+jbg9TtJC7eBRDYJwgmVQGWjUtWWyatjl/+ENz+p+ZU10yIZSQZcv09EuuPizOMXUkkKrCr7yIVN5ta55eMp7pRicQHg5p2qLjy4805CpFbC7MvnzyobpQpowpxsQGdCEH4xrTGisUqPdtXglNsQy2uApzDJV8VXgGrbtkg7DDJdl5+z80/rq+lKlkekEEhx9m5afD1BIXwdyOuVbmFoQJcXtoE7NZ5baz/m11gXbSXEVxyo3Pfszyl4pzbW4aXn5dF1Oq8lSv3nSqSwEEK1RqW/p26KnnqjfvPv0rSoKaKQ/bgH0PSGEwW64bNsxOS5zxkTMxQ7/BHJJ+Q5uMZhQVyQIMM1RLU5ijMGeBfqyp1jRTqkMtG2IMuRxm0E3vwSiuU5pg36l2zH6mW1r5+oV0WrFlQpqW7rh1VlmMnolYEW9yFdUiPG3je6GM2Fcg/S/a5gx65qW3jTosJKLyKpV2s00F84fadtCmtPuhP+pM7oKmRprW7mRZ+xRT7CNeqt6RXAnNnPcPVRSZPtE6h1WGscmK2+6gqWkTRTuMUnTh/Vzx+MIOVywpknS9YiK3thQNnBa6v4C77z58VAYKiNCjbu9hYrN33YvSL5FBZmOSj0KzubsMIBaIAiVADIgkpQeHGNqbX0LT/CsT8h8p6tSI7uyfY7df1XMq9dee06/wJXnrBu278NqVBfY8HXDKV5V7UROCz6VqS0GGAak4dUK5PoFKg+iM6k7rGppa2jq6evoGhkbRBqdm5hb+JlxZ29jaadk7ODo5G7q4url7GGp5eml5e/iAEOe2Pbe5XFmLE7OSeAL8xsSU6/rfX8/Toi7MK8ZPAUSfjRpB6YM4t1ewMmCVtQBrrAFYZ+3ABqsENlkvtlg5sM2agB1WDeyxZmCfNQIHrAOHrBY4YjXAMevCKasAzlg9cM6qgAvWiUvWgytWB1yzVuCGdeO2YR9fCnohFUIahBCEdAgZEKpBqA6hBoSaEGpBqA2hDoS6EOpBqA+hAYSGEBpBaAyhCYSmEJpBaA6hBYSWEFpBaA2hDYS2ENpBaK8FyeDrgH7SEUInCJ0hdIHQlbmpdINSdIfQA0JPCL0g9GbmoI8WJIMvjLoQgRBlpolB3Ykz85EwlVKA/qerPAB3IH62JJ3VIuke1g1zvVbK10IhyZVTsFphUHEHHUCV5CouQBhKo8qAkiZrK9KG1ZA2H6lHGj6SLhAwqL35fJ8Umgv7U5HxuYw/k8GBEe14mYrJ9KMff0moj0IkoNNH8JgcqdCHirqLpTCBD5VO14b5lPn6qrdOp4sEDD8GfSSdrwgQ0/0kNBrd14cmEYin1ZtF94lPlioQS2vPuN2yL4p3uFwx35ec9XgCv5y82+sd99MM25MRmAtY8J1Px/xQeu5Z0FeTdg2M9SA210wEQkCzer36bkG3pN2lalKd53cBFEIBQ2gN2K1t9Yp6RZ09msuankCIORnXE2QCxoQxA/lWj8IkjLjDoHhw6AGbXyOQWhvmUiUL7q5kJ72VrIQnhdlZtPiiB9ALMDEej87vYxHG6SgFqUelIiQKEA7L5vFANKvXi7LtbjegWlyuGpbt7nHqnLjndh6cCjlNTt7HyogivJJzdDELYte+FkFiLG0e3zMursjHy8onkTjexO8S9wHLU/szyBreoSlFaOhUJXtJanFZwVMLEEE5MKLCsykDpyG2JyY8dcEzbz1QhuTkMgHjuai51l5tC+ER9pADfCJmsz/1aQi0wpeJtwnaUXRqiaWtqwuxHerp6NgFWfcfc6D2C0eApcnWIuzoQWzHgWVnt703oLXV3oxb+s4jtpAWHs5cur29GbX3QtaOQ8JDPUetx3pNH+xuj3V7LR22LmBpbhYoDwqau9tJnGwVQYmDzRbAx5qawr0WISEUpnGWdnNFS2fvQUH54Urxo6jkNNZTWgLrPgHsoka/yK7EbOf7LEcu2B3HrEcvMu/TT0qa3NrRc4C/eJAsD1pZhyRKB9a8vG4JTopqxQsdABYVhjeX3DtgOyQkihc8gNh6IOvyBhy7otLsJVF3DMTFfSqpwvgCPeFyjS+P6AgP6ISoG3mFRvy8K5LvxncVyMOjNU7kOanVqy13eKNFnvBdWEKvt9se0OJSlfQBi9uN2uONxyCrx4PYxtemvboLS3eE10sGu9zGgNuFoBKsmXi7IJ58kM3lAilOYvd6odo2VZdegt6pagLgTXrlLcKeQo/mMgSx51oE3QVu9SUZyIM6tTZOr/GZthWq4NFnUBCYRCAUV5ZnPruAl4OsqUeEzmRAzBJDDvEv22wERpfnMwGjAKuoLMaLCCbEIAuXN/EFF9wjdqiwLtfYswOBu7xaLbQrEFL1i/tcsr0Jl9xZ57TkFW/U0bjJNpcK63fpjsRqW0XCi56ITi3Z6x1zxj3CclylEuyUQdorAce8gfs8cWeRBfmK2eHN1BPGUgvmKkACzHMDBpebjOMESWClBIFjOFk7s21ISTgTgd0qxxwvulyfBta6cbcsXqInUwMeMAJx1kjEQ4SrN+Hx4OAnXvGyXcTtzLjKslte45VRp6IId0Zs2fUEn17eYzL4ZrYz8riOPFRrlXaE9NhUB8RtALE5rwKK5dpDlGl/fAOCrdcfIZi929Jl67H2zmbYLt8nv4KigAmh9kuRvP5KQtQqRR5LP5dG7orojT8sKh9oUefHYoJmyd7QvvGKRvgzMh/gtwkk2O2Ym6pyUW9Qp1xKCprRZtHhAKKTvZksqpvsW/COKt7Pg5RQJb/yKJy15TGIYDG/Hf6tcXe0vUHzLcEoRLhGohBpGxlBFEJLARo4JM5WcgCJASh5GwHoqi4P8iAPczjk2HKsC5BzSeUfC2Y41C7ufORdv5DEcAZgYgUkUUthwQhlzagIzyALMKJoOXHLKoz9L1ZTqIzxqo145XQ2YNXa+Pomi8BdjjfbRcZWq9BTQbRM7HK5w4643V5jkSG/3xV36LJ0tLpFhspxGcxPKOp1jD4XJq1Lez3hJz2Ijte9MFWtTvWFR6i3rzoVWGguBXbfgjhJuZQKJlN2562DZ3Ojg2WIu8HRXA1kzKdcRJmdOExp/sdoHIZZwb1/uL8q3PsvPWnpq7+mfFPhP2w01i9HImJKU75KjPgqeVr+V7/9zntMSVkO7rjS0x3byP460tOZzHsQuDrXrXvwFKwH55J3DSAoxVxBRGE6HRZFOPPIdRimI6KcrrTlCbhJk6ZWp2lMPRgTSFObNN3ANJ19Qbf6MBbGOHDQebCKDzgT9NbB41n17fXP05eYlgz+s3R4KYix6AojIgp1Y/TmhRE65uKU3/etkY24KlsruzpChn+sR7/bu/fBg+C2tvkLEp7MxKd6kx5EpwzG6pLOmpYevLi2Z09HSQmFkqC/o0e/c/vOsYS+vsYXuEQO0oBcgr1sBGe+NEYZL+oMUQaHDudEBcHW39lsx0/kARygr25Ia9JoTNpordpk0oQy2ZqgUvcxBA/RKwnjj/Tv74lcrTrdpNE2G9uVqUrwe1Bjxhk78Ftl+dIF1tQT0OjK0brRFaPHog9r2sZTTwJ+WraiAXL5qRL9v4QW7PEwNskG+P6VuuHdqQL5zaUwTxQfwqXvYlbrl0SzRaeiRl4sH0mSkpWsncdZErFAKGPdH+KijayaWQtfMjgEl7VH9MfYfSCc/6OQW0ddLtjNnB2X+0Mgl0mf1JUsFB64zd0R36i5qHaINUBQjS7LRmjimGfi+a3s81PFUQ/D/ZDd3Cpwn+2XWq2KXN3Q+uGTQpOuVqfjOTBdjU+gF9XKovllteV1/DSZxsPCMCajdtSbJJX03o6YHfdi9u6OgAtQdmGM7Zs7+VXf8xpUkduqATdrOC+QlvncBu4Ur8ic0zg3U2hkc+R/xU80Ttz1FLvpx45gcLJz5hatuNzEbRTzxWPIlUT1mA00P/ZINhds9fYpsMlXGsjfTYucReFOpnTlWDaMIh9Asu7Od8VOh8mUqejm5POK+CmR+bGR+HDYmsMH/hvqf9HvSGj5P4ssg5TF+Qm5+hm8Mv5kGR7r6MjQl8bFlcYrhUlZ68M/Zf4vg2Tpi+c16XdRMoODTyUJlfFlcbGleoUgOUv3RWuERtM2FSJmO1oitA1mae7uIOjZqEJcNzNn7qjZ8vnMKlaxMS9WRxTglxiwK6VmmJUFfaafZw5MvY0/Il9iWSLPzXaS9MC4GeNjZyzJSjNil1jjXwPjp90DUBcVY+mraijWKwJRA4NIOP2T/NyC6hWMxQ47wECVBKlckZ+kb9ysSKuKMnBWVB9+hc82U1d/iyHh/3yKOjujegUH/N2c97FbMGQYAv9/DPUGR52x3nixjq4tyuBuR8L7A1bjC3Zy6w31yxJiDbHLDCjn94l/TzhrOAs0czztN3TDkAGEbH7d0N9QToOSWA819kOoru5Hw4/9hYOAKHUjWoZIC9qa+81znIXcOr2+vFCQ1sCBTyoAJ2XoLKvku3ejemql63e9Nc95KFp/f96uUj9NdpBzzpw3wjUXFxz7ZgVSlisuzT7EMZtjR9UfHZvLlJVFcyj7drc6cuAUb8qOPcm5A9M1gDvVMGxYEHjnjiPxGmrLIdYNG4Z1CanMqWzZVG2A809XpPTg5R3KF59T0tKqqvLza7X7O5kIEPVUUmWsqq8ywPTGKvDoPfz553CIv3DLZcrnfJUX5hekic2zr/7yS+cXzi9P6FLSaV3SJdaQ9YL/VxC0f9kUCI/Oj5x7iD4VLVNPUuZljzPFnFOQ/CmCZMMd406oCCIUGUGJ80psYxINeVC6NkU96TO/PD9Mka3MLQjL0fRTc9RYqBqXm3wx3/zizWmajNCWux9pJlpabt21pFEZPjH08uoa/1kRZuna5p/omv4HSVDj0upqA7JVlChJLt5RQG0cGC/Kmir9///nYDRPxj3lbfyB+KHRe4pbL7eK5WflYqt8iAb/8edsGLlBrkQg04ekMZKz0mjpx/CrrzdIU6RnJakgv37rVj9pXK79TsfgnJIZW7r0hsDPZbKsMz9OmFBZRqOKFXF5t+c0N4+Ov0w/b4rYfLL+j87OqYu4iESytFTou5jT1Lx4O/q9R/T+2bNBO1n1v7Hj3tBe+w3UgN/rv5wc9inmu9oLrDYHhhVhjo0LVeoJaZqqJRsd9kfAHO3vYoTb3PSxsgm+dStrLoEMav0qw98xWQN/ymk1RmN/bV0NdHooyvHYLXWrLtctTF+5CgSlDFZMCSlW2mzK4pApzjTGuHsvVk4JcfqkLU9YXh5fEhtbEl/+xg0fURJbHvcG4cqKy4t7D+MFbvOxM/jnkW49n1qmA+M4Q0plQ8P07BnZMC/hIYkGOuuQwqQoUsiB3KQEFdkBZnPHYzhfh9m8HQORyRVs9kQfBSKTVjuWK+4Z3Txv3okT/evWJyUBB3eOXBYgi80UTjSHxunoHDfu+aBZHu3vY4sY+/w5h73hm8ACqI63VpAw078kMPob5zfyWWjHKqZ5MT+j4wnsyVDnBDl90oFbq3/GdQG+/sVv7BLfvgnCaZPJPSVx48GqT1Hzn4+gNEdlGlYbAgb3bZjPWuZlIkuM8+kTdDQIPzfgoAbD9Aq4DKqEwazBvR2msZSTtLRvazoA5kd4PvxK5CINeczi1zVJ38NwnGGPEpkblj+8WRjlTZm7+lVdBAfYVWDZZYZZ/5FIkvvYlouknrLWzWp4uZ4L14JdZyTbJImSbbElGmU7tq+Llm3Wdx48d+v6/sDvrnNoOlv/hx8KDwJgEv2nyxbMmw8+HkS9yw9AOTrlIduTBlt5TptNid8vRfhcFNEbSZgn/C+Ff76ktA7t2ogx2xMGXgXUhlrfG9xGCoe03Aa+JwkQavMge8kPYitAgRY2v/yxMI52Mlz/AjwwD8AAotIBBMTAghkFsEAbwJB/CKiQf5nRgBB4wAfyX/VBALGRyOE3Q0EINCkZ/A+J9jOkAPkn+iWBOGezvslflBqZhrvpk9fD/UBCAUU7zMdQV3+v6gYnnIfvTHZPKfFQhB/R6BRUy8PtrcOxJ8P5DPwPifYzpPA0cH/iyV0SWjbhmCfs/sUjVAgzDXfb3vPEmf1DEXfToGjd+dDcuj7ce5VcNyhTC+fhu1DBCQkD31Xx9x7RYD2FBLo8/HtkSY5XT0aInKdqVM2VxBT3q2Kx2uwOp+HyN4P599GH6h4MR+PJdDZfLFfrzXa3PxxP58v1dn88X+8PJpRxIU3LdlzPD8IoTqQyuUKp8uW7Wh3Ae0EPGplaEOGtXkI1rQEymBoTQPT1DqN5mnkfzf5oPzpuEsmiouRIoPjWq8dCXJM/N5xYxhJtxdK9wiVTvTFMKmAU7ZXhcjRGuNZLU9dLs+iVxWoa3LO2+u0UEA72U9dkONYENVzSga2LKUOrmUml6pWXWJoeyEu5CrSUIDptU6Sc43aJwUbyfYY95njCq4y09CWVzCWICZ8R6wgp8YbTlNileEkpNeWtrK8l7rfD47yoMo3s3CvH5aiR6INeVVjxpmYB44yWN+rfeGFA67yHtyqIjdSnX6hwnwkDPIFUxMimMpLgyWw3WtmiOKycUwEA);\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-balham, .ag-theme-balham-dark {\\n  --ag-balham-active-color: #0091ea;\\n  --ag-foreground-color: #000;\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: #f5f7f7;\\n  --ag-tooltip-background-color: #cbd0d3;\\n  --ag-subheader-background-color: #e2e9eb;\\n  --ag-control-panel-background-color: #f5f7f7;\\n  --ag-border-color: #bdc3c7;\\n  --ag-odd-row-background-color: #fcfdfe;\\n  --ag-row-hover-color: #ecf0f1;\\n  --ag-column-hover-color: #ecf0f1;\\n  --ag-input-border-color: #95a5a6;\\n  --ag-invalid-color: #e02525;\\n  --ag-input-disabled-background-color: #ebebeb;\\n  --ag-checkbox-unchecked-color: #7f8c8d;\\n  --ag-input-focus-border-color: #719ECE;\\n  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);\\n  --ag-range-selection-border-color: var(--ag-balham-active-color);\\n  --ag-checkbox-checked-color: var(--ag-balham-active-color);\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);\\n  --ag-row-border-color: rgba(189, 195, 199, 0.58);\\n  --ag-chip-background-color: rgba(0, 0, 0, 0.1);\\n  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);\\n  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);\\n  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);\\n  --ag-header-column-separator-display: block;\\n  --ag-header-column-separator-height: 50%;\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 6);\\n  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-input-height: calc(var(--ag-grid-size) * 4);\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 12px;\\n  --ag-icon-font-family: agGridBalham;\\n  --ag-border-radius: 2px;\\n  --ag-checkbox-border-radius: 3px;\\n  --ag-card-shadow: none;\\n}\\n\\n.ag-theme-balham-dark {\\n  --ag-balham-active-color: #00B0FF;\\n  --ag-foreground-color: #F5F5F5;\\n  --ag-background-color: #2d3436;\\n  --ag-header-background-color: #1c1c1c;\\n  --ag-tooltip-background-color: #1c1f20;\\n  --ag-subheader-background-color: #111;\\n  --ag-control-panel-background-color: #202020;\\n  --ag-border-color: #424242;\\n  --ag-odd-row-background-color: #262c2e;\\n  --ag-row-hover-color: #3d4749;\\n  --ag-column-hover-color: #3d4749;\\n  --ag-input-border-color: #f0f0f0;\\n  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\\n  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\\n  --ag-checkbox-unchecked-color: #ecf0f1;\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\\n  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\\n  --ag-row-border-color: #5c5c5c;\\n  --ag-chip-background-color: rgba(245, 245, 245, 0.08);\\n  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\\n  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\\n  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\\n  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\\n  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\\n  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\\n  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\\n  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\\n  --ag-toggle-button-off-background-color: transparent;\\n  --ag-toggle-button-off-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\\n  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\\n  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-header,\\n.ag-theme-balham .ag-filter-toolpanel-search,\\n.ag-theme-balham .ag-status-bar,\\n.ag-theme-balham .ag-header-row,\\n.ag-theme-balham .ag-multi-filter-group-title-bar, .ag-theme-balham-dark .ag-filter-toolpanel-header,\\n.ag-theme-balham-dark .ag-filter-toolpanel-search,\\n.ag-theme-balham-dark .ag-status-bar,\\n.ag-theme-balham-dark .ag-header-row,\\n.ag-theme-balham-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 600;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar, .ag-theme-balham-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-status-bar {\\n  font-weight: 600;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham.ag-dnd-ghost, .ag-theme-balham-dark.ag-dnd-ghost {\\n  font-size: var(--ag-font-size);\\n  font-weight: 600;\\n}\\n.ag-theme-balham .ag-tab, .ag-theme-balham-dark .ag-tab {\\n  border: 1px solid transparent;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  margin: var(--ag-grid-size);\\n  margin-bottom: -1px;\\n}\\n.ag-theme-balham .ag-tab-selected, .ag-theme-balham-dark .ag-tab-selected {\\n  background-color: var(--ag-background-color);\\n  border-color: var(--ag-border-color);\\n  border-bottom-color: transparent;\\n}\\n.ag-theme-balham .ag-tabs-header, .ag-theme-balham-dark .ag-tabs-header {\\n  border-bottom: 1px solid var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-column-drop-cell, .ag-theme-balham-dark .ag-column-drop-cell {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-title, .ag-theme-balham-dark .ag-column-drop-vertical-title {\\n  color: var(--ag-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell, .ag-theme-balham-dark .ag-column-drop-vertical-cell {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell-text, .ag-theme-balham-dark .ag-column-drop-vertical-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-icon, .ag-theme-balham-dark .ag-column-drop-vertical-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message {\\n  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message {\\n  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-balham .ag-column-drop-horizontal, .ag-theme-balham-dark .ag-column-drop-horizontal {\\n  height: var(--ag-header-height);\\n}\\n.ag-theme-balham .ag-column-drop-empty, .ag-theme-balham-dark .ag-column-drop-empty {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n.ag-theme-balham .ag-column-drop-horizontal-cell-text, .ag-theme-balham-dark .ag-column-drop-horizontal-cell-text {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-column-drop-vertical, .ag-theme-balham-dark .ag-column-drop-vertical {\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-balham .ag-menu-header, .ag-theme-balham-dark .ag-menu-header {\\n  background-color: var(--ag-header-background-color);\\n}\\n.ag-theme-balham .ag-overlay-loading-center, .ag-theme-balham-dark .ag-overlay-loading-center {\\n  background-color: var(--ag-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  color: var(--ag-foreground-color);\\n  padding: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-theme-balham .ag-tooltip, .ag-theme-balham-dark .ag-tooltip {\\n  border: none;\\n}\\n.ag-theme-balham .ag-panel-title-bar-button-icon, .ag-theme-balham-dark .ag-panel-title-bar-button-icon {\\n  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));\\n}\\n.ag-theme-balham .ag-chart-data-section,\\n.ag-theme-balham .ag-chart-format-section, .ag-theme-balham-dark .ag-chart-data-section,\\n.ag-theme-balham-dark .ag-chart-format-section {\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-group-toolbar, .ag-theme-balham-dark .ag-group-toolbar {\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n.ag-theme-balham .ag-chart-tab, .ag-theme-balham-dark .ag-chart-tab {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-item, .ag-theme-balham-dark .ag-charts-format-sub-level-group-item {\\n  margin-bottom: calc(var(--ag-grid-size) * 1.5);\\n}\\n.ag-theme-balham .ag-chart-menu-close, .ag-theme-balham-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-border-color);\\n}\\n.ag-theme-balham .ag-chart-menu-close .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-right: none;\\n}\\n\\n.ag-theme-balham-dark {\\n  color-scheme: dark;\\n}\\n'],sourceRoot:\"\"}]);const p=c},6181:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={s:[\"çend sanîye\",\"çend sanîyeyan\"],ss:[e+\" sanîye\",e+\" sanîyeyan\"],m:[\"deqîqeyek\",\"deqîqeyekê\"],mm:[e+\" deqîqe\",e+\" deqîqeyan\"],h:[\"saetek\",\"saetekê\"],hh:[e+\" saet\",e+\" saetan\"],d:[\"rojek\",\"rojekê\"],dd:[e+\" roj\",e+\" rojan\"],w:[\"hefteyek\",\"hefteyekê\"],ww:[e+\" hefte\",e+\" hefteyan\"],M:[\"mehek\",\"mehekê\"],MM:[e+\" meh\",e+\" mehan\"],y:[\"salek\",\"salekê\"],yy:[e+\" sal\",e+\" salan\"]};return t?o[n][0]:o[n][1]}e.defineLocale(\"ku-kmr\",{months:\"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar\".split(\"_\"),monthsShort:\"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber\".split(\"_\"),monthsParseExact:!0,weekdays:\"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî\".split(\"_\"),weekdaysShort:\"Yek_Du_Sê_Çar_Pên_În_Şem\".split(\"_\"),weekdaysMin:\"Ye_Du_Sê_Ça_Pê_În_Şe\".split(\"_\"),meridiem:function(e,t,n){return e<12?n?\"bn\":\"BN\":n?\"pn\":\"PN\"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"Do MMMM[a] YYYY[an]\",LLL:\"Do MMMM[a] YYYY[an] HH:mm\",LLLL:\"dddd, Do MMMM[a] YYYY[an] HH:mm\",ll:\"Do MMM[.] YYYY[an]\",lll:\"Do MMM[.] YYYY[an] HH:mm\",llll:\"ddd[.], Do MMM[.] YYYY[an] HH:mm\"},calendar:{sameDay:\"[Îro di saet] LT [de]\",nextDay:\"[Sibê di saet] LT [de]\",nextWeek:\"dddd [di saet] LT [de]\",lastDay:\"[Duh di saet] LT [de]\",lastWeek:\"dddd[a borî di saet] LT [de]\",sameElse:\"L\"},relativeTime:{future:\"di %s de\",past:\"berî %s\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}(?:yê|ê|\\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes(\"w\")||n.includes(\"m\")?e+\".\":e+function(e){var t=(e=\"\"+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):\"\";return 12==n||13==n||\"2\"!=t&&\"3\"!=t&&\"50\"!=n&&\"70\"!=t&&\"80\"!=t?\"ê\":\"yê\"}(e)},week:{dow:1,doy:4}})}(n(95093))},6188:e=>{\"use strict\";e.exports=Math.max},6347:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(38086),u=n(79716),c=n(11848),d=n(28466),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiFormHelperText\",e)}const h=(0,p.A)(\"MuiFormHelperText\",[\"root\",\"error\",\"disabled\",\"sizeSmall\",\"sizeMedium\",\"contained\",\"focused\",\"filled\",\"required\"]);var m,v=n(25669),A=n(74848);const y=[\"children\",\"className\",\"component\",\"disabled\",\"error\",\"filled\",\"focused\",\"margin\",\"required\",\"variant\"],E=(0,c.Ay)(\"p\",{name:\"MuiFormHelperText\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,o.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:\"left\",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}},\"small\"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),b=a.forwardRef(function(e,t){const n=(0,v.b)({props:e,name:\"MuiFormHelperText\"}),{children:a,className:c,component:p=\"p\"}=n,f=(0,r.A)(n,y),h=(0,u.A)(),b=(0,s.A)({props:n,muiFormControl:h,states:[\"variant\",\"size\",\"disabled\",\"error\",\"filled\",\"focused\",\"required\"]}),_=(0,o.A)({},n,{component:p,contained:\"filled\"===b.variant||\"outlined\"===b.variant,variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),C=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:u}=e,c={root:[\"root\",o&&\"disabled\",a&&\"error\",r&&`size${(0,d.A)(r)}`,n&&\"contained\",s&&\"focused\",i&&\"filled\",u&&\"required\"]};return(0,l.A)(c,g,t)})(_);return(0,A.jsx)(E,(0,o.A)({as:p,ownerState:_,className:(0,i.A)(C.root,c),ref:t},f,{children:\" \"===a?m||(m=(0,A.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):a}))})},6372:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d});var r=n(28161),o=n(90815),a=n(14073),i=n(56203),l=n(81970),s=n.n(l),u=n(26472),c=n(36874);const d=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,l=e.documents,d=e.docType;return s().createElement(c.A,{isDrawerOpen:t,anchor:\"right\"},s().createElement(r.A,{className:\"popupMain customWidth\"},s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:-24},s().createElement(a.A,{component:\"h1\",variant:\"h1\"},d,\" \",(0,i.t)(\"DOCUMENTS\")),s().createElement(r.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return n()}},s().createElement(a.A,{className:\"icon-close closeIcon\"}))),s().createElement(u.A,{documents:l})))}},6398:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>un});var r=n(98587),o=n(58168),a=n(81970),i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};const l=\"object\"===(\"undefined\"==typeof window?\"undefined\":i(window))&&\"object\"===(\"undefined\"==typeof document?\"undefined\":i(document))&&9===document.nodeType;var s=n(92901),u=n(77387),c=n(9417),d={}.constructor;function p(e){if(null==e||\"object\"!=typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==d)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function f(e,t,n){void 0===e&&(e=\"unnamed\");var r=n.jss,o=p(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var g=function(e,t){for(var n=\"\",r=0;r<e.length&&\"!important\"!==e[r];r++)n&&(n+=t),n+=e[r];return n},h=function(e){if(!Array.isArray(e))return e;var t=\"\";if(Array.isArray(e[0]))for(var n=0;n<e.length&&\"!important\"!==e[n];n++)t&&(t+=\", \"),t+=g(e[n],\" \");else t=g(e,\", \");return\"!important\"===e[e.length-1]&&(t+=\" !important\"),t};function m(e){return e&&!1===e.format?{linebreak:\"\",space:\"\"}:{linebreak:\"\\n\",space:\" \"}}function v(e,t){for(var n=\"\",r=0;r<t;r++)n+=\"  \";return n+e}function A(e,t,n){void 0===n&&(n={});var r=\"\";if(!t)return r;var o=n.indent,a=void 0===o?0:o,i=t.fallbacks;!1===n.format&&(a=-1/0);var l=m(n),s=l.linebreak,u=l.space;if(e&&a++,i)if(Array.isArray(i))for(var c=0;c<i.length;c++){var d=i[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=s),r+=v(p+\":\"+u+h(f)+\";\",a))}}else for(var g in i){var A=i[g];null!=A&&(r&&(r+=s),r+=v(g+\":\"+u+h(A)+\";\",a))}for(var y in t){var E=t[y];null!=E&&\"fallbacks\"!==y&&(r&&(r+=s),r+=v(y+\":\"+u+h(E)+\";\",a))}return(r||n.allowEmpty)&&e?(r&&(r=\"\"+s+r+s),v(\"\"+e+u+\"{\"+r,--a)+v(\"}\",a)):r}var y=/([[\\].#*$><+~=|^:(),\"'`\\s])/g,E=\"undefined\"!=typeof CSS&&CSS.escape,b=function(e){return E?E(e):e.replace(y,\"\\\\$1\")},_=function(){function e(e,t,n){this.type=\"style\",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==o||!1===o,i=e in this.style;if(a&&!i&&!r)return this;var l=a&&i;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),C=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var a=r.selector,i=r.scoped,l=r.sheet,s=r.generateId;return a?o.selectorText=a:!1!==i&&(o.id=s((0,c.A)((0,c.A)(o)),l),o.selectorText=\".\"+b(o.id)),o}(0,u.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];\"object\"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=h(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return A(this.selectorText,this.style,n)},(0,s.A)(t,[{key:\"selector\",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(_),w={onCreateRule:function(e,t,n){return\"@\"===e[0]||n.parent&&\"keyframes\"===n.parent.type?null:new C(e,t,n)}},S={indent:1,children:!0},T=/@([\\w-]+)/,O=function(){function e(e,t,n){this.type=\"conditional\",this.isProcessed=!1,this.key=e;var r=e.match(T);for(var a in this.at=r?r[1]:\"unknown\",this.query=n.name||\"@\"+this.at,this.options=n,this.rules=new X((0,o.A)({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=S);var t=m(e).linebreak;if(null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+\" {}\";var n=this.rules.toString(e);return n?this.query+\" {\"+t+n+t+\"}\":\"\"},e}(),D=/@container|@media|@supports\\s+/,R={onCreateRule:function(e,t,n){return D.test(e)?new O(e,t,n):null}},N={indent:1,children:!0},L=/@keyframes\\s+([\\w-]+)/,P=function(){function e(e,t,n){this.type=\"keyframes\",this.at=\"@keyframes\",this.isProcessed=!1;var r=e.match(L);r&&r[1]?this.name=r[1]:this.name=\"noname\",this.key=this.type+\"-\"+this.name,this.options=n;var a=n.scoped,i=n.sheet,l=n.generateId;for(var s in this.id=!1===a?this.name:b(l(this,i)),this.rules=new X((0,o.A)({},n,{parent:this})),t)this.rules.add(s,t[s],(0,o.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=N);var t=m(e).linebreak;if(null==e.indent&&(e.indent=N.indent),null==e.children&&(e.children=N.children),!1===e.children)return this.at+\" \"+this.id+\" {}\";var n=this.rules.toString(e);return n&&(n=\"\"+t+n+t),this.at+\" \"+this.id+\" {\"+n+\"}\"},e}(),M=/@keyframes\\s+/,x=/\\$([\\w-]+)/g,I=function(e,t){return\"string\"==typeof e?e.replace(x,function(e,n){return n in t?t[n]:e}):e},k=function(e,t,n){var r=e[t],o=I(r,n);o!==r&&(e[t]=o)},B={onCreateRule:function(e,t,n){return\"string\"==typeof e&&M.test(e)?new P(e,t,n):null},onProcessStyle:function(e,t,n){return\"style\"===t.type&&n?(\"animation-name\"in e&&k(e,\"animation-name\",n.keyframes),\"animation\"in e&&k(e,\"animation\",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case\"animation\":case\"animation-name\":return I(e,r.keyframes);default:return e}}},F=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,o.A)({},e,{allowEmpty:!0}):e;return A(this.key,this.style,n)},t}(_),j={onCreateRule:function(e,t,n){return n.parent&&\"keyframes\"===n.parent.type?new F(e,t,n):null}},H=function(){function e(e,t,n){this.type=\"font-face\",this.at=\"@font-face\",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=m(e).linebreak;if(Array.isArray(this.style)){for(var n=\"\",r=0;r<this.style.length;r++)n+=A(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return A(this.at,this.style,e)},e}(),U=/@font-face/,Y={onCreateRule:function(e,t,n){return U.test(e)?new H(e,t,n):null}},G=function(){function e(e,t,n){this.type=\"viewport\",this.at=\"@viewport\",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return A(this.key,this.style,e)},e}(),z={onCreateRule:function(e,t,n){return\"@viewport\"===e||\"@-ms-viewport\"===e?new G(e,t,n):null}},V=function(){function e(e,t,n){this.type=\"simple\",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t=\"\",n=0;n<this.value.length;n++)t+=this.key+\" \"+this.value[n]+\";\",this.value[n+1]&&(t+=\"\\n\");return t}return this.key+\" \"+this.value+\";\"},e}(),q={\"@charset\":!0,\"@import\":!0,\"@namespace\":!0},W={onCreateRule:function(e,t,n){return e in q?new V(e,t,n):null}},Q=[w,R,B,j,Y,z,W],K={process:!0},$={force:!0,process:!0},X=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,a=r.parent,i=r.sheet,l=r.jss,s=r.Renderer,u=r.generateId,c=r.scoped,d=(0,o.A)({classes:this.classes,parent:a,sheet:i,jss:l,Renderer:s,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+\"-d\"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector=\".\"+b(this.classes[p]));var g=f(p,t,d);if(!g)return null;this.register(g);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,g),g},t.replace=function(e,t,n){var r=this.get(e),a=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==a&&(i=(0,o.A)({},n,{index:a})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof C?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof C?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if(\"string\"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=K);var o=this.options,a=o.jss.plugins,i=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(a.onUpdate(n,t,i,r),r.process&&l&&l!==t.style){for(var s in a.onProcessStyle(t.style,t,i),t.style){var u=t.style[s];u!==l[s]&&t.prop(s,u,$)}for(var c in l){var d=t.style[c],p=l[c];null==d&&d!==p&&t.prop(c,null,$)}}}},t.toString=function(e){for(var t=\"\",n=this.options.sheet,r=!!n&&n.options.link,o=m(e).linebreak,a=0;a<this.index.length;a++){var i=this.index[a].toString(e);(i||r)&&(t&&(t+=o),t+=i)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,o.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new X(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=\"object\"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Z=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:\"external\"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,o=(0,r.A)(t,[\"attached\"]),a=m(o).linebreak,i=\"\",l=0;l<this.registry.length;l++){var s=this.registry[l];null!=n&&s.attached!==n||(i&&(i+=a),i+=s.toString(o))}return i},(0,s.A)(e,[{key:\"index\",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),te=new ee,ne=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window&&window.Math===Math?window:\"undefined\"!=typeof self&&self.Math===Math?self:Function(\"return this\")(),re=\"2f1acc6c3a606b082e5eef5e54414ffb\";null==ne[re]&&(ne[re]=0);var oe=ne[re]++,ae=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o=\"\",a=\"\";return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?\"\"+(a||\"c\")+oe+o+t:a+n.key+\"-\"+oe+(o?\"-\"+o:\"\")+\"-\"+t}},ie=function(e){var t;return function(){return t||(t=e()),t}},le=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return\"\"}},se=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=h(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf(\"!important\"):-1,a=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,a,o>-1?\"important\":\"\")}}catch(e){return!1}return!0},ue=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},ce=function(e,t){return e.selectorText=t,e.selectorText===t},de=ie(function(){return document.querySelector(\"head\")});var pe=ie(function(){var e=document.querySelector('meta[property=\"csp-nonce\"]');return e?e.getAttribute(\"content\"):null}),fe=function(e,t,n){try{\"insertRule\"in e?e.insertRule(t,n):\"appendRule\"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},ge=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},he=function(){function e(e){this.getPropertyValue=le,this.setProperty=se,this.removeProperty=ue,this.setSelector=ce,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement(\"style\");return e.textContent=\"\\n\",e}(),this.element.setAttribute(\"data-jss\",\"\"),n&&this.element.setAttribute(\"media\",n),r&&this.element.setAttribute(\"data-meta\",r);var a=pe();a&&this.element.setAttribute(\"nonce\",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&\"string\"==typeof r){var o=function(e){for(var t=de(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&\"number\"==typeof n.nodeType){var o=n,a=o.parentNode;a&&a.insertBefore(e,o.nextSibling)}else de().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=\"\\n\")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent=\"\\n\"+e.toString()+\"\\n\")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if(\"conditional\"===e.type||\"keyframes\"===e.type){var a=ge(n,t);if(!1===(o=fe(n,r.toString({children:!1}),a)))return!1;this.refCssRule(e,a,o)}return this.insertRules(r.rules,o),o}var i=e.toString();if(!i)return!1;var l=ge(n,t),s=fe(n,i,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ve=function(){function e(e){this.id=me++,this.version=\"10.10.0\",this.plugins=new Z,this.options={id:{minify:!1},createGenerateId:ae,Renderer:l?he:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<Q.length;t++)this.plugins.use(Q[t],{queue:\"internal\"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,o.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),\"Renderer\"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;\"number\"!=typeof n&&(n=0===te.index?0:te.index+1);var r=new J(e,(0,o.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),\"object\"==typeof e)return this.createRule(void 0,e,t);var r=(0,o.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var a=f(e,t,r);return a&&this.plugins.onProcessRule(a),a},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ae=function(e){return new ve(e)},ye=\"object\"==typeof CSS&&null!=CSS&&\"number\"in CSS;function Ee(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if(\"function\"===o)t||(t={}),t[n]=r;else if(\"object\"===o&&null!==r&&!Array.isArray(r)){var a=Ee(r);a&&(t||(t={}),t[n]=a)}}return t}function be(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const a=(0,o.A)({},t);return Object.keys(n).forEach(e=>{n[e]&&(a[e]=`${t[e]} ${n[e]}`)}),a}Ae();const _e={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},Ce=_e;var we=n(84022),Se=n(64673);const Te=[\"checked\",\"disabled\",\"error\",\"focused\",\"focusVisible\",\"required\",\"expanded\",\"selected\"];var Oe=Date.now(),De=\"fnValues\"+Oe,Re=\"fnStyle\"+ ++Oe;var Ne=\"@global\",Le=function(){function e(e,t,n){for(var r in this.type=\"global\",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new X((0,o.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Pe=function(){function e(e,t,n){this.type=\"global\",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,o.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):\"\"},e}(),Me=/\\s*,\\s*/g;function xe(e,t){for(var n=e.split(Me),r=\"\",o=0;o<n.length;o++)r+=t+\" \"+n[o].trim(),n[o+1]&&(r+=\", \");return r}var Ie=/\\s*,\\s*/g,ke=/&/g,Be=/\\$([\\w-]+)/g;var Fe=/[A-Z]/g,je=/^ms-/,He={};function Ue(e){return\"-\"+e.toLowerCase()}const Ye=function(e){if(He.hasOwnProperty(e))return He[e];var t=e.replace(Fe,Ue);return He[e]=je.test(t)?\"-\"+t:t};function Ge(e){var t={};for(var n in e)t[0===n.indexOf(\"--\")?n:Ye(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ge):t.fallbacks=Ge(e.fallbacks)),t}var ze=ye&&CSS?CSS.px:\"px\",Ve=ye&&CSS?CSS.ms:\"ms\",qe=ye&&CSS?CSS.percent:\"%\";function We(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Qe=We({\"animation-delay\":Ve,\"animation-duration\":Ve,\"background-position\":ze,\"background-position-x\":ze,\"background-position-y\":ze,\"background-size\":ze,border:ze,\"border-bottom\":ze,\"border-bottom-left-radius\":ze,\"border-bottom-right-radius\":ze,\"border-bottom-width\":ze,\"border-left\":ze,\"border-left-width\":ze,\"border-radius\":ze,\"border-right\":ze,\"border-right-width\":ze,\"border-top\":ze,\"border-top-left-radius\":ze,\"border-top-right-radius\":ze,\"border-top-width\":ze,\"border-width\":ze,\"border-block\":ze,\"border-block-end\":ze,\"border-block-end-width\":ze,\"border-block-start\":ze,\"border-block-start-width\":ze,\"border-block-width\":ze,\"border-inline\":ze,\"border-inline-end\":ze,\"border-inline-end-width\":ze,\"border-inline-start\":ze,\"border-inline-start-width\":ze,\"border-inline-width\":ze,\"border-start-start-radius\":ze,\"border-start-end-radius\":ze,\"border-end-start-radius\":ze,\"border-end-end-radius\":ze,margin:ze,\"margin-bottom\":ze,\"margin-left\":ze,\"margin-right\":ze,\"margin-top\":ze,\"margin-block\":ze,\"margin-block-end\":ze,\"margin-block-start\":ze,\"margin-inline\":ze,\"margin-inline-end\":ze,\"margin-inline-start\":ze,padding:ze,\"padding-bottom\":ze,\"padding-left\":ze,\"padding-right\":ze,\"padding-top\":ze,\"padding-block\":ze,\"padding-block-end\":ze,\"padding-block-start\":ze,\"padding-inline\":ze,\"padding-inline-end\":ze,\"padding-inline-start\":ze,\"mask-position-x\":ze,\"mask-position-y\":ze,\"mask-size\":ze,height:ze,width:ze,\"min-height\":ze,\"max-height\":ze,\"min-width\":ze,\"max-width\":ze,bottom:ze,left:ze,top:ze,right:ze,inset:ze,\"inset-block\":ze,\"inset-block-end\":ze,\"inset-block-start\":ze,\"inset-inline\":ze,\"inset-inline-end\":ze,\"inset-inline-start\":ze,\"box-shadow\":ze,\"text-shadow\":ze,\"column-gap\":ze,\"column-rule\":ze,\"column-rule-width\":ze,\"column-width\":ze,\"font-size\":ze,\"font-size-delta\":ze,\"letter-spacing\":ze,\"text-decoration-thickness\":ze,\"text-indent\":ze,\"text-stroke\":ze,\"text-stroke-width\":ze,\"word-spacing\":ze,motion:ze,\"motion-offset\":ze,outline:ze,\"outline-offset\":ze,\"outline-width\":ze,perspective:ze,\"perspective-origin-x\":qe,\"perspective-origin-y\":qe,\"transform-origin\":qe,\"transform-origin-x\":qe,\"transform-origin-y\":qe,\"transform-origin-z\":qe,\"transition-delay\":Ve,\"transition-duration\":Ve,\"vertical-align\":ze,\"flex-basis\":ze,\"shape-margin\":ze,size:ze,gap:ze,grid:ze,\"grid-gap\":ze,\"row-gap\":ze,\"grid-row-gap\":ze,\"grid-column-gap\":ze,\"grid-template-rows\":ze,\"grid-template-columns\":ze,\"grid-auto-rows\":ze,\"grid-auto-columns\":ze,\"box-shadow-x\":ze,\"box-shadow-y\":ze,\"box-shadow-blur\":ze,\"box-shadow-spread\":ze,\"font-line-height\":ze,\"text-shadow-x\":ze,\"text-shadow-y\":ze,\"text-shadow-blur\":ze});function Ke(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Ke(e,t[r],n);else if(\"object\"==typeof t)if(\"fallbacks\"===e)for(var o in t)t[o]=Ke(o,t[o],n);else for(var a in t)t[a]=Ke(e+\"-\"+a,t[a],n);else if(\"number\"==typeof t&&!1===isNaN(t)){var i=n[e]||Qe[e];return!i||0===t&&i===ze?t.toString():\"function\"==typeof i?i(t).toString():\"\"+t+i}return t}var $e=n(43145),Xe=n(73893),Je=n(27800);var Ze=\"\",et=\"\",tt=\"\",nt=\"\",rt=l&&\"ontouchstart\"in document.documentElement;if(l){var ot={Moz:\"-moz-\",ms:\"-ms-\",O:\"-o-\",Webkit:\"-webkit-\"},at=document.createElement(\"p\").style;for(var it in ot)if(it+\"Transform\"in at){Ze=it,et=ot[it];break}\"Webkit\"===Ze&&\"msHyphens\"in at&&(Ze=\"ms\",et=ot.ms,nt=\"edge\"),\"Webkit\"===Ze&&\"-apple-trailing-word\"in at&&(tt=\"apple\")}var lt=Ze,st=et,ut=tt,ct=nt,dt=rt,pt={noPrefill:[\"appearance\"],supportedProperty:function(e){return\"appearance\"===e&&(\"ms\"===lt?\"-webkit-\"+e:st+e)}},ft={noPrefill:[\"color-adjust\"],supportedProperty:function(e){return\"color-adjust\"===e&&(\"Webkit\"===lt?st+\"print-\"+e:e)}},gt=/[-\\s]+(.)?/g;function ht(e,t){return t?t.toUpperCase():\"\"}function mt(e){return e.replace(gt,ht)}function vt(e){return mt(\"-\"+e)}var At,yt={noPrefill:[\"mask\"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(\"Webkit\"===lt){var n=\"mask-image\";if(mt(n)in t)return e;if(lt+vt(n)in t)return st+e}return e}},Et={noPrefill:[\"text-orientation\"],supportedProperty:function(e){return\"text-orientation\"===e&&(\"apple\"!==ut||dt?e:st+e)}},bt={noPrefill:[\"transform\"],supportedProperty:function(e,t,n){return\"transform\"===e&&(n.transform?e:st+e)}},_t={noPrefill:[\"transition\"],supportedProperty:function(e,t,n){return\"transition\"===e&&(n.transition?e:st+e)}},Ct={noPrefill:[\"writing-mode\"],supportedProperty:function(e){return\"writing-mode\"===e&&(\"Webkit\"===lt||\"ms\"===lt&&\"edge\"!==ct?st+e:e)}},wt={noPrefill:[\"user-select\"],supportedProperty:function(e){return\"user-select\"===e&&(\"Moz\"===lt||\"ms\"===lt||\"apple\"===ut?st+e:e)}},St={supportedProperty:function(e,t){return!!/^break-/.test(e)&&(\"Webkit\"===lt?\"WebkitColumn\"+vt(e)in t&&st+\"column-\"+e:\"Moz\"===lt&&\"page\"+vt(e)in t&&\"page-\"+e)}},Tt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(\"Moz\"===lt)return e;var n=e.replace(\"-inline\",\"\");return lt+vt(n)in t&&st+n}},Ot={supportedProperty:function(e,t){return mt(e)in t&&e}},Dt={supportedProperty:function(e,t){var n=vt(e);return\"-\"===e[0]||\"-\"===e[0]&&\"-\"===e[1]?e:lt+n in t?st+e:\"Webkit\"!==lt&&\"Webkit\"+n in t&&\"-webkit-\"+e}},Rt={supportedProperty:function(e){return\"scroll-snap\"===e.substring(0,11)&&(\"ms\"===lt?\"\"+st+e:e)}},Nt={supportedProperty:function(e){return\"overscroll-behavior\"===e&&(\"ms\"===lt?st+\"scroll-chaining\":e)}},Lt={\"flex-grow\":\"flex-positive\",\"flex-shrink\":\"flex-negative\",\"flex-basis\":\"flex-preferred-size\",\"justify-content\":\"flex-pack\",order:\"flex-order\",\"align-items\":\"flex-align\",\"align-content\":\"flex-line-pack\"},Pt={supportedProperty:function(e,t){var n=Lt[e];return!!n&&lt+vt(n)in t&&st+n}},Mt={flex:\"box-flex\",\"flex-grow\":\"box-flex\",\"flex-direction\":[\"box-orient\",\"box-direction\"],order:\"box-ordinal-group\",\"align-items\":\"box-align\",\"flex-flow\":[\"box-orient\",\"box-direction\"],\"justify-content\":\"box-pack\"},xt=Object.keys(Mt),It=function(e){return st+e},kt={supportedProperty:function(e,t,n){var r=n.multiple;if(xt.indexOf(e)>-1){var o=Mt[e];if(!Array.isArray(o))return lt+vt(o)in t&&st+o;if(!r)return!1;for(var a=0;a<o.length;a++)if(!(lt+vt(o[0])in t))return!1;return o.map(It)}return!1}},Bt=[pt,ft,yt,Et,bt,_t,Ct,wt,St,Tt,Ot,Dt,Rt,Nt,Pt,kt],Ft=Bt.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),jt=Bt.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return(0,$e.A)(e)}(n=t.noPrefill)||(0,Xe.A)(n)||(0,Je.A)(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),e;var n},[]),Ht={};if(l){At=document.createElement(\"p\");var Ut=window.getComputedStyle(document.documentElement,\"\");for(var Yt in Ut)isNaN(Yt)||(Ht[Ut[Yt]]=Ut[Yt]);jt.forEach(function(e){return delete Ht[e]})}function Gt(e,t){if(void 0===t&&(t={}),!At)return e;if(null!=Ht[e])return Ht[e];\"transition\"!==e&&\"transform\"!==e||(t[e]=e in At.style);for(var n=0;n<Ft.length&&(Ht[e]=Ft[n](e,At.style,t),!Ht[e]);n++);try{At.style[e]=\"\"}catch(e){return!1}return Ht[e]}var zt,Vt={},qt={transition:1,\"transition-property\":1,\"-webkit-transition\":1,\"-webkit-transition-property\":1},Wt=/(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;function Qt(e,t,n){return\"var\"===t?\"var\":\"all\"===t?\"all\":\"all\"===n?\", all\":(t?Gt(t):\", \"+Gt(n))||t||n}function Kt(e,t){var n=t;if(!zt||\"content\"===e)return t;if(\"string\"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Vt[r])return Vt[r];try{zt.style[e]=n}catch(e){return Vt[r]=!1,!1}if(qt[e])n=n.replace(Wt,Qt);else if(\"\"===zt.style[e]&&(\"-ms-flex\"===(n=st+n)&&(zt.style[e]=\"-ms-flexbox\"),zt.style[e]=n,\"\"===zt.style[e]))return Vt[r]=!1,!1;return zt.style[e]=\"\",Vt[r]=n,Vt[r]}l&&(zt=document.createElement(\"p\"));n(74848);const $t=Ae({plugins:[{onCreateRule:function(e,t,n){if(\"function\"!=typeof t)return null;var r=f(e,{},n);return r[Re]=t,r},onProcessStyle:function(e,t){if(De in t||Re in t)return e;var n={};for(var r in e){var o=e[r];\"function\"==typeof o&&(delete e[r],n[r]=o)}return t[De]=n,e},onUpdate:function(e,t,n,r){var o=t,a=o[Re];a&&(o.style=a(e)||{});var i=o[De];if(i)for(var l in i)o.prop(l,i[l](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ne)return new Le(e,t,n);if(\"@\"===e[0]&&\"@global \"===e.substr(0,8))return new Pe(e,t,n);var r=n.parent;return r&&(\"global\"===r.type||r.options.parent&&\"global\"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){\"style\"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,a=r?r[Ne]:null;if(a){for(var i in a)t.addRule(i,a[i],(0,o.A)({},n,{selector:xe(i,e.selector)}));delete r[Ne]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var a in r)if(\"@\"===a[0]&&a.substr(0,7)===Ne){var i=xe(a.substr(7),e.selector);t.addRule(i,r[a],(0,o.A)({},n,{selector:i})),delete r[a]}}(e,t))}},function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Ie),r=e.split(Ie),o=\"\",a=0;a<n.length;a++)for(var i=n[a],l=0;l<r.length;l++){var s=r[l];o&&(o+=\", \"),o+=-1!==s.indexOf(\"&\")?s.replace(ke,i):i+\" \"+s}return o}function n(e,t,n){if(n)return(0,o.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var a=(0,o.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete a.name,a}return{onProcessStyle:function(r,a,i){if(\"style\"!==a.type)return r;var l,s,u=a,c=u.options.parent;for(var d in r){var p=-1!==d.indexOf(\"&\"),f=\"@\"===d[0];if(p||f){if(l=n(u,c,l),p){var g=t(d,u.selector);s||(s=e(c,i)),g=g.replace(Be,s);var h=u.key+\"-\"+d;\"replaceRule\"in c?c.replaceRule(h,r[d],(0,o.A)({},l,{selector:g})):c.addRule(h,r[d],(0,o.A)({},l,{selector:g}))}else f&&c.addRule(d,{},l).addRule(u.key,r[d],{selector:u.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ge(e[t]);return e}return Ge(e)},onChangeValue:function(e,t,n){if(0===t.indexOf(\"--\"))return e;var r=Ye(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=We(e);return{onProcessStyle:function(e,n){if(\"style\"!==n.type)return e;for(var r in e)e[r]=Ke(r,e[r],t);return e},onChangeValue:function(e,n){return Ke(n,e,t)}}}(),\"undefined\"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if(\"fallbacks\"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,a=Gt(n);a&&a!==n&&(o=!0);var i=!1,l=Kt(a,h(r));l&&l!==r&&(i=!0),(o||i)&&(o&&delete t[n],t[a||n]=l||r)}}return t}return{onProcessRule:function(e){if(\"keyframes\"===e.type){var t=e;t.at=function(e){return\"-\"===e[1]||\"ms\"===lt?e:\"@\"+st+\"keyframes\"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return\"style\"!==n.type?t:e(t)},onChangeValue:function(e,t){return Kt(t,h(e))||e}}}(),(Zt=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if(\"style\"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Zt),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Xt={disableGeneration:!1,generateClassName:function(e={}){const{disableGlobal:t=!1,productionPrefix:n=\"jss\",seed:r=\"\"}=e,o=\"\"===r?\"\":`${r}-`;let a=0;const i=()=>(a+=1,a);return(e,a)=>{const l=a.options.name;if(l&&0===l.indexOf(\"Mui\")&&!a.options.link&&!t){if(-1!==Te.indexOf(e.key))return`Mui-${e.key}`;const t=`${o}${l}-${e.key}`;return a.options.theme[Se.A]&&\"\"===r?`${t}-${i()}`:t}return`${o}${n}${i()}`}}(),jss:$t,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Jt=a.createContext(Xt);var Zt;let en=-1e9;var tn=n(11317),nn=n(13967);const rn=[\"variant\"];function on(e){return 0===e.length}const an={},ln=[\"name\",\"classNamePrefix\",\"Component\",\"defaultTheme\"];function sn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:a},i){if(n.disableGeneration)return;let l=Ce.get(n.sheetsManager,r,t);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ce.set(n.sheetsManager,r,t,l));const s=(0,o.A)({},r.options,n,{theme:t,flip:\"boolean\"==typeof n.flip?n.flip:\"rtl\"===t.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=n.sheetsRegistry;if(0===l.refs){let e;n.sheetsCache&&(e=Ce.get(n.sheetsCache,r,t));const i=r.create(t,a);e||(e=n.jss.createStyleSheet(i,(0,o.A)({link:!1},s)),e.attach(),n.sheetsCache&&Ce.set(n.sheetsCache,r,t,e)),u&&u.add(e),l.staticSheet=e,l.dynamicStyles=Ee(i)}if(l.dynamicStyles){const t=n.jss.createStyleSheet(l.dynamicStyles,(0,o.A)({link:!0},s));t.update(i),t.attach(),e.dynamicSheet=t,e.classes=be({baseClasses:l.staticSheet.classes,newClasses:t.classes}),u&&u.add(t)}else e.classes=l.staticSheet.classes;l.refs+=1}function un(e,t={}){const{name:n,classNamePrefix:i,Component:l,defaultTheme:s=an}=t,u=(0,r.A)(t,ln),c=function(e){const t=\"function\"==typeof e;return{create:(n,a)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!a||!n.components||!n.components[a]||!n.components[a].styleOverrides&&!n.components[a].variants)return i;const l=n.components[a].styleOverrides||{},s=n.components[a].variants||[],u=(0,o.A)({},i);return Object.keys(l).forEach(e=>{u[e]=(0,tn.A)(u[e]||{},l[e])}),s.forEach(e=>{const t=function(e){const{variant:t}=e,n=(0,r.A)(e,rn);let o=t||\"\";return Object.keys(n).sort().forEach(t=>{o+=\"color\"===t?on(o)?e[t]:(0,nn.A)(e[t]):`${on(o)?t:(0,nn.A)(t)}${(0,nn.A)(e[t].toString())}`}),o}(e.props);u[t]=(0,tn.A)(u[t]||{},e.style)}),u},options:{}}}(e),d=n||i||\"makeStyles\";return c.options={index:(en+=1,en),name:n,meta:d,classNamePrefix:d},(e={})=>{const t=function(){var e;const t=(0,we.A)();return null!=(e=null==t?void 0:t.$$material)?e:t}()||s,r=(0,o.A)({},a.useContext(Jt),u),i=a.useRef(),d=a.useRef();!function(o,l){const s=a.useRef([]);let u;const p=a.useMemo(()=>({}),l);s.current!==p&&(s.current=p,u=(()=>{const o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return sn(o,e),d.current=!1,i.current=o,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const o=Ce.get(n.sheetsManager,r,t);o.refs-=1;const a=n.sheetsRegistry;0===o.refs&&(Ce.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}(o)}})()),a.useEffect(()=>()=>{u&&u()},[p])}(0,[t,c]),a.useEffect(()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(i.current,e),d.current=!0});const p=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=be({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(i.current,e.classes,l);return p}}},6469:(e,t,n)=>{\"use strict\";var r=n(78227),o=n(2360),a=n(24913).f,i=r(\"unscopables\"),l=Array.prototype;void 0===l[i]&&a(l,i,{configurable:!0,value:o(null)}),e.exports=function(e){l[i][e]=!0}},6497:(e,t,n)=>{\"use strict\";n.d(t,{f3:()=>N,Sh:()=>R,Ay:()=>P,Oj:()=>D,WC:()=>O});var r=n(98587),o=n(58168),a=n(89453),i=n(81970),l=n(34164),s=n(75659),u=n(52197),c=n(3561),d=n(38086),p=n(33800),f=n(79716),g=n(11848),h=n(25669),m=n(28466),v=n(96852),A=n(2778),y=n(32967),E=n(22765),b=n(58312),_=n(74848);const C=function(e){return(0,_.jsx)(y.A,(0,o.A)({},e,{defaultTheme:E.A,themeId:b.A}))};var w=n(82891),S=n(51175);const T=[\"aria-describedby\",\"autoComplete\",\"autoFocus\",\"className\",\"color\",\"components\",\"componentsProps\",\"defaultValue\",\"disabled\",\"disableInjectingGlobalStyles\",\"endAdornment\",\"error\",\"fullWidth\",\"id\",\"inputComponent\",\"inputProps\",\"inputRef\",\"margin\",\"maxRows\",\"minRows\",\"multiline\",\"name\",\"onBlur\",\"onChange\",\"onClick\",\"onFocus\",\"onKeyDown\",\"onKeyUp\",\"placeholder\",\"readOnly\",\"renderSuffix\",\"rows\",\"size\",\"slotProps\",\"slots\",\"startAdornment\",\"type\",\"value\"],O=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,\"small\"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,m.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,\"small\"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,\"search\"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},R=(0,g.Ay)(\"div\",{name:\"MuiInputBase\",slot:\"Root\",overridesResolver:O})(({theme:e,ownerState:t})=>(0,o.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:\"1.4375em\",boxSizing:\"border-box\",position:\"relative\",cursor:\"text\",display:\"inline-flex\",alignItems:\"center\",[`&.${S.A.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:\"default\"}},t.multiline&&(0,o.A)({padding:\"4px 0 5px\"},\"small\"===t.size&&{paddingTop:1}),t.fullWidth&&{width:\"100%\"})),N=(0,g.Ay)(\"input\",{name:\"MuiInputBase\",slot:\"Input\",overridesResolver:D})(({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode,r=(0,o.A)({color:\"currentColor\"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create(\"opacity\",{duration:e.transitions.duration.shorter})}),a={opacity:\"0 !important\"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,o.A)({font:\"inherit\",letterSpacing:\"inherit\",color:\"currentColor\",padding:\"4px 0 5px\",border:0,boxSizing:\"content-box\",background:\"none\",height:\"1.4375em\",margin:0,WebkitTapHighlightColor:\"transparent\",display:\"block\",minWidth:0,width:\"100%\",animationName:\"mui-auto-fill-cancel\",animationDuration:\"10ms\",\"&::-webkit-input-placeholder\":r,\"&::-moz-placeholder\":r,\"&:-ms-input-placeholder\":r,\"&::-ms-input-placeholder\":r,\"&:focus\":{outline:0},\"&:invalid\":{boxShadow:\"none\"},\"&::-webkit-search-decoration\":{WebkitAppearance:\"none\"},[`label[data-shrink=false] + .${S.A.formControl} &`]:{\"&::-webkit-input-placeholder\":a,\"&::-moz-placeholder\":a,\"&:-ms-input-placeholder\":a,\"&::-ms-input-placeholder\":a,\"&:focus::-webkit-input-placeholder\":i,\"&:focus::-moz-placeholder\":i,\"&:focus:-ms-input-placeholder\":i,\"&:focus::-ms-input-placeholder\":i},[`&.${S.A.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},\"&:-webkit-autofill\":{animationDuration:\"5000s\",animationName:\"mui-auto-fill\"}},\"small\"===t.size&&{paddingTop:1},t.multiline&&{height:\"auto\",resize:\"none\",padding:0,paddingTop:0},\"search\"===t.type&&{MozAppearance:\"textfield\"})}),L=(0,_.jsx)(C,{styles:{\"@keyframes mui-auto-fill\":{from:{display:\"block\"}},\"@keyframes mui-auto-fill-cancel\":{from:{display:\"block\"}}}}),P=i.forwardRef(function(e,t){var n;const g=(0,h.b)({props:e,name:\"MuiInputBase\"}),{\"aria-describedby\":y,autoComplete:E,autoFocus:b,className:C,components:O={},componentsProps:D={},defaultValue:P,disabled:M,disableInjectingGlobalStyles:x,endAdornment:I,fullWidth:k=!1,id:B,inputComponent:F=\"input\",inputProps:j={},inputRef:H,maxRows:U,minRows:Y,multiline:G=!1,name:z,onBlur:V,onChange:q,onClick:W,onFocus:Q,onKeyDown:K,onKeyUp:$,placeholder:X,readOnly:J,renderSuffix:Z,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:oe=\"text\",value:ae}=g,ie=(0,r.A)(g,T),le=null!=j.value?j.value:ae,{current:se}=i.useRef(null!=le),ue=i.useRef(),ce=i.useCallback(e=>{},[]),de=(0,v.A)(ue,H,j.ref,ce),[pe,fe]=i.useState(!1),ge=(0,f.A)(),he=(0,d.A)({props:g,muiFormControl:ge,states:[\"color\",\"disabled\",\"error\",\"hiddenLabel\",\"size\",\"required\",\"filled\"]});he.focused=ge?ge.focused:pe,i.useEffect(()=>{!ge&&M&&pe&&(fe(!1),V&&V())},[ge,M,pe,V]);const me=ge&&ge.onFilled,ve=ge&&ge.onEmpty,Ae=i.useCallback(e=>{(0,w.lq)(e)?me&&me():ve&&ve()},[me,ve]);(0,A.A)(()=>{se&&Ae({value:le})},[le,Ae,se]),i.useEffect(()=>{Ae(ue.current)},[]);let ye=F,Ee=j;G&&\"input\"===ye&&(Ee=ee?(0,o.A)({type:void 0,minRows:ee,maxRows:ee},Ee):(0,o.A)({type:void 0,maxRows:U,minRows:Y},Ee),ye=c.A),i.useEffect(()=>{ge&&ge.setAdornedStart(Boolean(re))},[ge,re]);const be=(0,o.A)({},g,{color:he.color||\"primary\",disabled:he.disabled,endAdornment:I,error:he.error,focused:he.focused,formControl:ge,fullWidth:k,hiddenLabel:he.hiddenLabel,multiline:G,size:he.size,startAdornment:re,type:oe}),_e=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:p,size:f,startAdornment:g,type:h}=e,v={root:[\"root\",`color${(0,m.A)(n)}`,r&&\"disabled\",o&&\"error\",u&&\"fullWidth\",i&&\"focused\",l&&\"formControl\",f&&\"medium\"!==f&&`size${(0,m.A)(f)}`,d&&\"multiline\",g&&\"adornedStart\",a&&\"adornedEnd\",c&&\"hiddenLabel\",p&&\"readOnly\"],input:[\"input\",r&&\"disabled\",\"search\"===h&&\"inputTypeSearch\",d&&\"inputMultiline\",\"small\"===f&&\"inputSizeSmall\",c&&\"inputHiddenLabel\",g&&\"inputAdornedStart\",a&&\"inputAdornedEnd\",p&&\"readOnly\"]};return(0,s.A)(v,S.g,t)})(be),Ce=ne.root||O.Root||R,we=te.root||D.root||{},Se=ne.input||O.Input||N;return Ee=(0,o.A)({},Ee,null!=(n=te.input)?n:D.input),(0,_.jsxs)(i.Fragment,{children:[!x&&L,(0,_.jsxs)(Ce,(0,o.A)({},we,!(0,u.A)(Ce)&&{ownerState:(0,o.A)({},be,we.ownerState)},{ref:t,onClick:e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),W&&W(e)}},ie,{className:(0,l.A)(_e.root,we.className,C,J&&\"MuiInputBase-readOnly\"),children:[re,(0,_.jsx)(p.A.Provider,{value:null,children:(0,_.jsx)(Se,(0,o.A)({ownerState:be,\"aria-invalid\":he.error,\"aria-describedby\":y,autoComplete:E,autoFocus:b,defaultValue:P,disabled:he.disabled,id:B,onAnimationStart:e=>{Ae(\"mui-auto-fill-cancel\"===e.animationName?ue.current:{value:\"x\"})},name:z,placeholder:X,readOnly:J,required:he.required,rows:ee,value:le,onKeyDown:K,onKeyUp:$,type:oe},Ee,!(0,u.A)(Se)&&{as:ye,ownerState:(0,o.A)({},be,Ee.ownerState)},{ref:de,className:(0,l.A)(_e.input,Ee.className,J&&\"MuiInputBase-readOnly\"),onBlur:e=>{V&&V(e),j.onBlur&&j.onBlur(e),ge&&ge.onBlur?ge.onBlur(e):fe(!1)},onChange:(e,...t)=>{if(!se){const t=e.target||ue.current;if(null==t)throw new Error((0,a.A)(1));Ae({value:t.value})}j.onChange&&j.onChange(e,...t),q&&q(e,...t)},onFocus:e=>{he.disabled?e.stopPropagation():(Q&&Q(e),j.onFocus&&j.onFocus(e),ge&&ge.onFocus?ge.onFocus(e):fe(!0))}}))}),I,Z?Z((0,o.A)({},he,{startAdornment:re})):null]}))]})})},6515:(e,t,n)=>{\"use strict\";e.exports=n.p+\"f7f5cae88e5c6e15690f.woff2\"},6549:e=>{\"use strict\";e.exports=Object.getOwnPropertyDescriptor},6739:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>I}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(60538),i=n(56203),l=n(81970),s=n.n(l),u=n(99478),c=n(37998),d=n(96348),p=n(47225),f=n(56254),g=n(43605),h=n(92416),m=n(15664),v=n(21239),A=n(43356),y=n(25475),E=n(17575),b=n(13075),_=n(31797),C=n(94415),w=n(73300),S=n(95272),T=n(47767),O=function(e){var t,n,r=(0,T.Zp)(),o=e.column,a=e.data,i={demo_unique_id:{label:null==a?void 0:a.demo_requester_code,className:\"smart-agro-lite-green-label remove-button\"}};return s().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){r(d.fp.Demo_Request_Data,{state:a})}},null!==(t=null===(n=i[o.colId])||void 0===n?void 0:n.label)&&void 0!==t?t:\"\")};function D(e){return D=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},D(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=D(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==D(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=function(){var e=(0,l.useContext)(p.v),t=e.BackOfficeProps,n=t.globalStore.User,T=t.baseurl,D=e.triggerShowLoader,R=(0,S.XC)(n),L=P((0,l.useState)({pageNo:0,pageSize:10}),2),M=L[0],x=L[1],I=P((0,l.useState)(0),2),k=I[0],B=I[1],F=P((0,l.useState)(0),2),j=F[0],H=F[1],U=P((0,l.useState)([]),2),Y=U[0],G=U[1],z=P((0,l.useState)([]),2),V=z[0],q=z[1],W=P((0,l.useState)({}),2),Q=W[0],K=W[1],$=P((0,l.useState)(!1),2),X=$[0],J=$[1],Z=(0,C.U)(n,T,D,function(){},null===w.Gu||void 0===w.Gu?void 0:w.Gu.DEMO_LIST),ee=Z.filtersOptions,te=Z.fetchDistributors;return(0,l.useEffect)(function(){(0,y.S)(n,T,D,(0,S.HU)({defaultFilters:R,searchFilters:V,selectedFilters:Q,DEMO_PMIN_STATUS:w.OV,paginationState:M,DEFAULT_SORT:u.r4})).then(function(e){var t;null!=e&&e.data&&(G(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]),B(null==e?void 0:e.totalElements),H(null==e?void 0:e.totalPageCount),J(!1))})},[V,M,Q]),s().createElement(A.l,null,s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,null,s().createElement(h.A,{routePathName:[{name:d.F_.Demo_Tracking,path:d.fp.Demo_Tracking},{name:d.F_.Demo_List,path:\"\".concat(d.fp.Demo_Tracking,\"/\").concat(d.fp.Demo_List)}]}))),s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,{mt:2},s().createElement(v.A,{onSearchValueChange:function(e){return q([{field:\"search\",operator:\"LIKE\",value:e}]),void x(function(e){return N(N({},e),{},{pageNo:0,pageSize:10})})},placeholderText:(0,i.t)(\"SEARCH\"),searchValue:\"\",searchBasedOn:(0,i.t)(\"SEARCH_BY_NAMES\")})),s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},s().createElement(m.A,{className:(0,b.F7)(Q),\"data-testid\":\"filters-button\",buttonName:(0,i.t)(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return J(!0)}}))),X&&s().createElement(_.A,{\"data-testid\":\"demo-dispatch-filters\",filtersOptions:ee,initialValues:Q,onFilterSubmit:function(e){K(e),x(function(e){return N(N({},e),{},{pageNo:0,pageSize:10})})},onClearFilters:function(){K({}),J(!1)},onHQChange:function(e){te(e)},isFilterOpen:X,onRequestClose:function(){return J(!1)}}),s().createElement(a.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(g.A,{rows:Y,columnDefs:c.o2,frameworkComponents:{ActionComponent:O,StatusComponent:E.q}}),s().createElement(f.A,{pageNo:M.pageNo,totalPageCount:j,totalElements:k,onPageChange:function(e){x(function(t){return N(N({},t),{},{pageNo:Number(e)})})}}))))};const I=(0,l.memo)(x)},6761:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(69565),i=n(79504),l=n(96395),s=n(43724),u=n(4495),c=n(79039),d=n(39297),p=n(1625),f=n(28551),g=n(25397),h=n(56969),m=n(655),v=n(6980),A=n(2360),y=n(71072),E=n(38480),b=n(10298),_=n(33717),C=n(77347),w=n(24913),S=n(96801),T=n(48773),O=n(36840),D=n(62106),R=n(25745),N=n(66119),L=n(30421),P=n(33392),M=n(78227),x=n(1951),I=n(70511),k=n(58242),B=n(10687),F=n(91181),j=n(59213).forEach,H=N(\"hidden\"),U=\"Symbol\",Y=\"prototype\",G=F.set,z=F.getterFor(U),V=Object[Y],q=o.Symbol,W=q&&q[Y],Q=o.RangeError,K=o.TypeError,$=o.QObject,X=C.f,J=w.f,Z=b.f,ee=T.f,te=i([].push),ne=R(\"symbols\"),re=R(\"op-symbols\"),oe=R(\"wks\"),ae=!$||!$[Y]||!$[Y].findChild,ie=function(e,t,n){var r=X(V,t);r&&delete V[t],J(e,t,n),r&&e!==V&&J(V,t,r)},le=s&&c(function(){return 7!==A(J({},\"a\",{get:function(){return J(this,\"a\",{value:7}).a}})).a})?ie:J,se=function(e,t){var n=ne[e]=A(W);return G(n,{type:U,tag:e,description:t}),s||(n.description=t),n},ue=function(e,t,n){e===V&&ue(re,t,n),f(e);var r=h(t);return f(n),d(ne,r)?(n.enumerable?(d(e,H)&&e[H][r]&&(e[H][r]=!1),n=A(n,{enumerable:v(0,!1)})):(d(e,H)||J(e,H,v(1,A(null))),e[H][r]=!0),le(e,r,n)):J(e,r,n)},ce=function(e,t){f(e);var n=g(t),r=y(n).concat(ge(n));return j(r,function(t){s&&!a(de,n,t)||ue(e,t,n[t])}),e},de=function(e){var t=h(e),n=a(ee,this,t);return!(this===V&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,H)&&this[H][t])||n)},pe=function(e,t){var n=g(e),r=h(t);if(n!==V||!d(ne,r)||d(re,r)){var o=X(n,r);return!o||!d(ne,r)||d(n,H)&&n[H][r]||(o.enumerable=!0),o}},fe=function(e){var t=Z(g(e)),n=[];return j(t,function(e){d(ne,e)||d(L,e)||te(n,e)}),n},ge=function(e){var t=e===V,n=Z(t?re:g(e)),r=[];return j(n,function(e){!d(ne,e)||t&&!d(V,e)||te(r,ne[e])}),r};u||(O(W=(q=function(){if(p(W,this))throw new K(\"Symbol is not a constructor\");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=P(e),n=function(e){var r=void 0===this?o:this;r===V&&a(n,re,e),d(r,H)&&d(r[H],t)&&(r[H][t]=!1);var i=v(1,e);try{le(r,t,i)}catch(e){if(!(e instanceof Q))throw e;ie(r,t,i)}};return s&&ae&&le(V,t,{configurable:!0,set:n}),se(t,e)})[Y],\"toString\",function(){return z(this).tag}),O(q,\"withoutSetter\",function(e){return se(P(e),e)}),T.f=de,w.f=ue,S.f=ce,C.f=pe,E.f=b.f=fe,_.f=ge,x.f=function(e){return se(M(e),e)},s&&(D(W,\"description\",{configurable:!0,get:function(){return z(this).description}}),l||O(V,\"propertyIsEnumerable\",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),j(y(oe),function(e){I(e)}),r({target:U,stat:!0,forced:!u},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:\"Object\",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?A(e):ce(A(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:pe}),r({target:\"Object\",stat:!0,forced:!u},{getOwnPropertyNames:fe}),k(),B(q,U),L[H]=!0},6774:(e,t)=>{\"use strict\";Symbol.for(\"react.transitional.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\");Symbol.for(\"react.provider\");Symbol.for(\"react.consumer\"),Symbol.for(\"react.context\");var n=Symbol.for(\"react.forward_ref\"),r=(Symbol.for(\"react.suspense\"),Symbol.for(\"react.suspense_list\"),Symbol.for(\"react.memo\"));Symbol.for(\"react.lazy\"),Symbol.for(\"react.view_transition\"),Symbol.for(\"react.client.reference\");t.vM=n,t.lD=r},6791:e=>{var t=e.exports={version:\"2.6.12\"};\"number\"==typeof __e&&(__e=t)},6885:(e,t,n)=>{\"use strict\";n.d(t,{$F:()=>l,Dp:()=>s,_:()=>p,_A:()=>f,aC:()=>u,dR:()=>c,y0:()=>d}),n(28706),n(48598),n(62062),n(26099),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(13075),i=function(e,t,n,r){var a,i={};if(i.domain=t,i.triggerLoader=n,i.payLoad=r.apiPayload,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},\"getRetailerSOWYears\"===r.apiName)i.endPoint=o.p.RETAILER_CONFIGURATION_YEARS,i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id;else if(\"getRetailerFormId\"===r.apiName)i.endPoint=o.p.GET_FORM_TABS;else if(\"getRetailerSOWLabels\"===r.apiName){var l;i.endPoint=o.p.GET_EVENT_DETAILS.replace(\"__SUB_TYPE_ID__\",null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId),i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id}else if(\"getRetailerSOWValidations\"===r.apiName)i.endPoint=function(e){return\"\".concat(o.p.RETAILER_CONFIGURATION_YEARS,\"/\").concat(e.year,\"?\").concat(e.formFieldIds.map(function(e){return\"form_field_configuration_ids=\".concat(e)}).join(\"&\"))}(r),i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id;else if(\"saveRetailerConfigDetails\"===r.apiName){var s;i.endPoint=o.p.GET_RETAILER_WALLET,i.customHeaders[\"user-id\"]=null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id}else if(\"getRetailerSOWFormData\"===r.apiName){var u,c,d;i.endPoint=null!==(u=i.payLoad)&&void 0!==u&&u.portfolio_code||null==e||null===(c=e.selectedBusinessUnit)||void 0===c||!c.portfolio_enable||null==e||null===(d=e.selectedBusinessUnit)||void 0===d||!d.portfolio_code?o.p.GET_RETAILER_WALLET:\"\".concat(o.p.GET_RETAILER_WALLET,\"?portfolio_code=\",\"DEFAULT\")}else if(\"isActiveRetailerSOW\"===r.apiName){var p;i.endPoint=o.p.SAVE_ATTENDANCE_TYPES,r.isUser&&(i.customHeaders[\"role-id\"]=null==e||null===(p=e.selectedBusinessUnit)||void 0===p||null===(p=p.userRoleControls)||void 0===p?void 0:p.roleId),i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id}return i},l=function(e,t,n){var o=i(e,t,n,{apiName:\"getRetailerSOWYears\",apiPayload:{}});return new Promise(function(e,t){var n;null===(n=r.N.get(o))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},s=function(e,t,n){var o=i(e,t,n,{apiName:\"getRetailerFormId\",apiPayload:{}});return new Promise(function(e,t){var n;null===(n=r.N.get(o))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},u=function(e,t,n,o){var l=i(e,t,n,{apiName:\"getRetailerSOWLabels\",apiPayload:o});return new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},c=function(e,t,n,o,l,s){var u=i(e,t,n,{apiName:\"getRetailerSOWValidations\",apiPayload:o,year:s,formFieldIds:l});return new Promise(function(e,t){var n;null===(n=r.N.get(u))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},d=function(e,t,n,o,l){var s=i(e,t,n,{apiName:\"saveRetailerConfigDetails\",apiPayload:o});return new Promise(function(e,t){var n,o;\"save\"===l?null===(n=r.N.post(s))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))}):null===(o=r.N.put(s))||void 0===o||o.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},p=function(e,t,n,o){var l=i(e,t,n,{apiName:\"getRetailerSOWFormData\",apiPayload:o});return new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},f=function(e,t,n,o,l){var s=i(e,t,n,{apiName:\"isActiveRetailerSOW\",isUser:l,apiPayload:o});return new Promise(function(e,t){var n;null===(n=r.N.get(s))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})}},6925:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},6935:(e,t,n)=>{var r=n(21672),o=n(90531),a=n(64796);e.exports=n(75872)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),l=i.length,s=0;l>s;)r.f(e,n=i[s++],t[n]);return e}},6947:function(e,t,n){!function(e){\"use strict\";var t={1:\"١\",2:\"٢\",3:\"٣\",4:\"٤\",5:\"٥\",6:\"٦\",7:\"٧\",8:\"٨\",9:\"٩\",0:\"٠\"},n={\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"٠\":\"0\"};e.defineLocale(\"ar-ps\",{months:\"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل\".split(\"_\"),monthsShort:\"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١\".split(\"_\"),weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/ص|م/,isPM:function(e){return\"م\"===e},meridiem:function(e,t,n){return e<12?\"ص\":\"م\"},calendar:{sameDay:\"[اليوم على الساعة] LT\",nextDay:\"[غدا على الساعة] LT\",nextWeek:\"dddd [على الساعة] LT\",lastDay:\"[أمس على الساعة] LT\",lastWeek:\"dddd [على الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"في %s\",past:\"منذ %s\",s:\"ثوان\",ss:\"%d ثانية\",m:\"دقيقة\",mm:\"%d دقائق\",h:\"ساعة\",hh:\"%d ساعات\",d:\"يوم\",dd:\"%d أيام\",M:\"شهر\",MM:\"%d أشهر\",y:\"سنة\",yy:\"%d سنوات\"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).split(\"\").reverse().join(\"\").replace(/[١٢](?![\\u062a\\u0643])/g,function(e){return n[e]}).split(\"\").reverse().join(\"\").replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},week:{dow:0,doy:6}})}(n(95093))},6959:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s,N:()=>l});var r=n(58168),o=n(38413),a=n(31609),i=n(51175);function l(e){return(0,a.Ay)(\"MuiFilledInput\",e)}const s=(0,r.A)({},i.A,(0,o.A)(\"MuiFilledInput\",[\"root\",\"underline\",\"input\"]))},6980:e=>{\"use strict\";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:(e,t,n)=>{\"use strict\";var r=n(4495);e.exports=r&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator},7176:(e,t,n)=>{\"use strict\";var r,o=n(73126),a=n(75795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||\"object\"!=typeof e||!(\"code\"in e)||\"ERR_PROTO_ACCESS\"!==e.code)throw e}var i=!!r&&a&&a(Object.prototype,\"__proto__\"),l=Object,s=l.getPrototypeOf;e.exports=i&&\"function\"==typeof i.get?o([i.get]):\"function\"==typeof s&&function(e){return s(null==e?e:l(e))}},7260:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var s=n(64436),u=a(n(81970)),c=n(98400),d=l(n(4452)),p=l(n(82415)),f=l(n(75094)),g=n(67991);t.default=u.memo(function(e){var t=u.useContext(c.BeansContext).gridOptionsService,n=u.useState(),r=n[0],o=n[1],a=u.useState(),l=a[0],h=a[1],m=u.useState(),v=m[0],A=m[1],y=u.useState(),E=y[0],b=y[1],_=u.useState([]),C=_[0],w=_[1],S=u.useRef(null),T=e.ctrl,O=T.getType()===s.HeaderRowType.COLUMN,D=T.getType()===s.HeaderRowType.COLUMN_GROUP,R=T.getType()===s.HeaderRowType.FLOATING_FILTER,N=u.useCallback(function(e,n){var r=t.is(\"ensureDomOrder\"),o=t.isDomLayout(\"print\");if(r||o)return n;var a=s._.mapById(e,function(e){return e.getInstanceId()}),l=s._.mapById(n,function(e){return e.getInstanceId()}),u=e.filter(function(e){return l.has(e.getInstanceId())}),c=n.filter(function(e){return!a.has(e.getInstanceId())});return i(u,c)},[]);g.useLayoutEffectOnce(function(){var e={setTransform:function(e){return o(e)},setHeight:function(e){return h(e)},setTop:function(e){return A(e)},setHeaderCtrls:function(e){return w(function(t){return N(t,e)})},setWidth:function(e){return S.current.style.width=e},setAriaRowIndex:function(e){return b(e)}};T.setComp(e)});var L=u.useMemo(function(){return{transform:r,height:l,top:v}},[r,l,v]),P=u.useMemo(function(){var e=[\"ag-header-row\"];return O&&e.push(\"ag-header-row-column\"),D&&e.push(\"ag-header-row-column-group\"),R&&e.push(\"ag-header-row-column-filter\"),e.join(\" \")},[]),M=u.useCallback(function(e){switch(T.getType()){case s.HeaderRowType.COLUMN_GROUP:return u.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});case s.HeaderRowType.FLOATING_FILTER:return u.default.createElement(f.default,{ctrl:e,key:e.getInstanceId()});default:return u.default.createElement(d.default,{ctrl:e,key:e.getInstanceId()})}},[]);return u.default.createElement(\"div\",{ref:S,className:P,role:\"row\",style:L,\"aria-rowindex\":E},C.map(M))})},7306:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ca\",{months:{standalone:\"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre\".split(\"_\"),format:\"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\"_\"),isFormat:/D[oD]?(\\s)+MMMM/},monthsShort:\"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.\".split(\"_\"),monthsParseExact:!0,weekdays:\"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte\".split(\"_\"),weekdaysShort:\"dg._dl._dt._dc._dj._dv._ds.\".split(\"_\"),weekdaysMin:\"dg_dl_dt_dc_dj_dv_ds\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM [de] YYYY\",ll:\"D MMM YYYY\",LLL:\"D MMMM [de] YYYY [a les] H:mm\",lll:\"D MMM YYYY, H:mm\",LLLL:\"dddd D MMMM [de] YYYY [a les] H:mm\",llll:\"ddd D MMM YYYY, H:mm\"},calendar:{sameDay:function(){return\"[avui a \"+(1!==this.hours()?\"les\":\"la\")+\"] LT\"},nextDay:function(){return\"[demà a \"+(1!==this.hours()?\"les\":\"la\")+\"] LT\"},nextWeek:function(){return\"dddd [a \"+(1!==this.hours()?\"les\":\"la\")+\"] LT\"},lastDay:function(){return\"[ahir a \"+(1!==this.hours()?\"les\":\"la\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [passat a \"+(1!==this.hours()?\"les\":\"la\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"d'aquí %s\",past:\"fa %s\",s:\"uns segons\",ss:\"%d segons\",m:\"un minut\",mm:\"%d minuts\",h:\"una hora\",hh:\"%d hores\",d:\"un dia\",dd:\"%d dies\",M:\"un mes\",MM:\"%d mesos\",y:\"un any\",yy:\"%d anys\"},dayOfMonthOrdinalParse:/\\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?\"r\":2===e?\"n\":3===e?\"r\":4===e?\"t\":\"è\";return\"w\"!==t&&\"W\"!==t||(n=\"a\"),e+n},week:{dow:1,doy:4}})}(n(95093))},7318:(e,t,n)=>{\"use strict\";n.d(t,{I:()=>u,M:()=>s});var r=n(28161),o=n(11848),a=n(6398),i=n(43457),l=n(17630),s=(0,o.Ay)(r.A)(function(e){return e.theme,{animation:\"\".concat(i._A,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),PageWrapper:i.ff,\" .tab-content-wrapper\":{marginTop:\"10px\"},\"& .config-input-wrapper\":{\"& .MuiFormControl-root\":{\"& .MuiInputBase-root.MuiOutlinedInput-root\":{height:\"32px !important\"}}},\"& .input-adornment-wrapper\":{\"& .MuiSvgIcon-root\":{fontSize:\"14px\",lineHeight:\"14px\",cursor:\"pointer\",color:l.T.secondaryTextColor}},\"& .smart-agro-lite-box-conatiner\":{\"& .MuiTypography-body1\":{minWidth:\"235px\"}},\"& .MuiTypography-subtitle1\":{padding:\"0px  !important\"}}}),u=(0,a.A)({EventDetails:{padding:\"16px\",marginBottom:\"8px\",minHeight:\"300px\",overflowY:\"auto\",width:\"100%\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiTypography-h4\":{backgroundColor:l.T.accordianBg,padding:\"4px 6px\",borderRadius:\"4px\"},\"& .Smart-agro-lite-event-details-wrapper\":{height:\"70%\",overflowY:\"auto\",marginBottom:\"16px\",\"& .MuiAccordionSummary-root\":{padding:\"8px 16px !important\"},\"& .MuiButtonBase-root.MuiAccordionSummary-root\":{flexDirection:\"inherit !important\",backgroundColor:l.T.accordianBg},\"& .MuiPaper-root\":{padding:\"0px  !important\"},\"& .smart-agro-lite-box-conatiner\":{minHeight:\"280px\",width:\"100%\",display:\"none\",padding:\"8px\",\"& .MuiTypography-body1\":{width:\"100%\"}},\"& .config-input-wrapper\":{\"& .MuiFormControl-root\":{display:\"none\",\"&.MuiInputBase-root.MuiOutlinedInput-root\":{height:\"32px !important\"}}}},\"& .divider-wrapper\":{height:\"200px\",alignSelf:\"start\",\"& .MuiDivider-root\":{borderColor:\"\".concat(l.w.palette.grey[800]),margin:\"0px\"}}},minHeightAuto:{minHeight:\"auto\"}})},7400:(e,t,n)=>{\"use strict\";var r=n(74623);Object.defineProperty(t,\"Ay\",{enumerable:!0,get:function(){return o.default}});var o=r(n(71190))},7421:(e,t,n)=>{var r=n(6791),o=n(56903),a=\"__core-js_shared__\",i=o[a]||(o[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:r.version,mode:n(98849)?\"pure\":\"global\",copyright:\"© 2020 Denis Pushkarev (zloirock.ru)\"})},7463:(e,t)=>{\"use strict\";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(\"object\"==typeof performance&&\"function\"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,p=null,f=3,g=!1,h=!1,m=!1,v=\"function\"==typeof setTimeout?setTimeout:null,A=\"function\"==typeof clearTimeout?clearTimeout:null,y=\"undefined\"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function b(e){if(m=!1,E(e),!h)if(null!==r(u))h=!0,M(_);else{var t=r(c);null!==t&&x(b,t.startTime-e)}}function _(e,n){h=!1,m&&(m=!1,A(T),T=-1),g=!0;var a=f;try{for(E(n),p=r(u);null!==p&&(!(p.expirationTime>n)||e&&!R());){var i=p.callback;if(\"function\"==typeof i){p.callback=null,f=p.priorityLevel;var l=i(p.expirationTime<=n);n=t.unstable_now(),\"function\"==typeof l?p.callback=l:p===r(u)&&o(u),E(n)}else o(u);p=r(u)}if(null!==p)var s=!0;else{var d=r(c);null!==d&&x(b,d.startTime-n),s=!1}return s}finally{p=null,f=a,g=!1}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,w=!1,S=null,T=-1,O=5,D=-1;function R(){return!(t.unstable_now()-D<O)}function N(){if(null!==S){var e=t.unstable_now();D=e;var n=!0;try{n=S(!0,e)}finally{n?C():(w=!1,S=null)}}else w=!1}if(\"function\"==typeof y)C=function(){y(N)};else if(\"undefined\"!=typeof MessageChannel){var L=new MessageChannel,P=L.port2;L.port1.onmessage=N,C=function(){P.postMessage(null)}}else C=function(){v(N,0)};function M(e){S=e,w||(w=!0,C())}function x(e,n){T=v(function(){e(t.unstable_now())},n)}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(e){e.callback=null},t.unstable_continueExecution=function(){h||g||(h=!0,M(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a=\"object\"==typeof a&&null!==a&&\"number\"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(A(T),T=-1):m=!0,x(b,a-i))):(e.sortIndex=l,n(u,e),h||g||(h=!0,M(_))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7501:(e,t,n)=>{\"use strict\";n.d(t,{KC:()=>o,NU:()=>r,bW:()=>a,r3:()=>i});var r=[\"Annual\"],o=function(e){return e.LIQUIDATION_ROLE=\"liquidation_role\",e.LIQUIDATION_HQ_HIERARCHY=\"liquidation_pricing_hq_level\",e.LIQUIDATION_DURATION_TYPE=\"liquidation_duration_type\",e.LIQUIDATION_TARGET_START_DATE=\"liquidation_target_start_date\",e.LIQUIDATION_TARGET_END_DATE=\"liquidation_target_end_date\",e.LIQUIDATION_ACTUAL_START_DATE=\"liquidation_actual_start_date\",e.LIQUIDATION_ACTUAL_END_DATE=\"liquidation_actual_end_date\",e}({}),a=function(e){return e.PAY_FOR_PERFORMANCE_ROLE=\"pay_for_performance_role\",e.PAY_FOR_PERFORMANCE_DURATION_TYPE=\"pay_for_performance_duration_type\",e.PAY_FOR_PERFORMANCE_TARGET_START_DATE=\"pay_for_performance_target_start_date\",e.PAY_FOR_PERFORMANCE_TARGET_END_DATE=\"pay_for_performance_target_end_date\",e.PAY_FOR_PERFORMANCE_ACTUAL_START_DATE=\"pay_for_performance_actual_start_date\",e.PAY_FOR_PERFORMANCE_ACTUAL_END_DATE=\"pay_for_performance_actual_end_date\",e}({}),i=function(e){return e.LIQUIDATION=\"LIQUIDATION\",e.PAY_FOR_PERFORMANCE=\"PAY_FOR_PERFORMANCE\",e}({})},7542:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Q}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(47767),s=n(37998),u=n(96348),c=n(47225),d=n(9483),p=n(39118),f=n(52848),g=n(11641),h=n(60538),m=n(64137),v=n(43884),A=n(14774),y=n(33198),E=n(96627),b=n(86798),_=n(14073),C=n(80663),w=n(17630),S=n(13075),T=function(e){var t,n=e.expandRowsData,o=e.rowIndex,a=e.expandRowKeys,l=e.expandComponent;return i().createElement(A.A,{style:{paddingBottom:0,paddingTop:0,padding:0},colSpan:6},i().createElement(f.A,{in:(null==n?void 0:n.index)===o,timeout:\"auto\",unmountOnExit:!0},l?i().createElement(r.A,{p:2,className:\"collapse-inner-table\"},l):i().createElement(i().Fragment,null,\"  \",null==n||null===(t=n.data)||void 0===t?void 0:t.map(function(e,t){return i().createElement(C.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",m:2.5,key:\"table-inner-item-\".concat((0,S.gP)())},null==a?void 0:a.map(function(t,n){return\"count\"!==(null==t?void 0:t.type)?i().createElement(_.A,{minWidth:\"150px\",textAlign:\"left\",fontSize:12,key:(0,S.gP)()},e[null==t?void 0:t.key]):i().createElement(C.A,{spacing:1,flexDirection:\"row\",justifyContent:\"center\",alignItems:\"center\",gap:1,key:(0,S.gP)()},i().createElement(_.A,{minWidth:\"60px\",fontSize:20,fontWeight:600,color:t.color,lineHeight:\"21px\",component:\"strong\",textAlign:\"right\"},e[null==t?void 0:t.key]),i().createElement(_.A,{fontSize:12,lineHeight:\"16px\",fontWeight:400,color:t.color},t.title))}))}))))},O=function(e){var t=e.rowData,n=e.rowKeys,r=e.expandRowKeys,o=e.expandRowsData,a=e.rowIndex,l=e.onExpand,s=e.expandComponent;return i().createElement(i().Fragment,null,i().createElement(b.A,{sx:{\"& > *\":{borderBottom:\"unset\"}}},null==n?void 0:n.map(function(e,n){return\"expand\"===e.type?i().createElement(A.A,{key:(0,S.gP)(),style:{borderBottom:\"1px solid #e0e0e0\"}},i().createElement(C.A,{flexDirection:\"row\",textAlign:\"end\",alignItems:\"center\",justifyContent:\"space-between\"},i().createElement(_.A,{fontSize:14,fontWeight:400,fontFamily:\"NotoSans-Regular\",color:e.color(t[e.key]),mr:1},t[e.key]),i().createElement(g.A,{\"data-testid\":\"expand-row-data\",\"aria-label\":\"expand row\",size:\"small\",onClick:function(){(null==o?void 0:o.index)===a?l({index:null}):l({index:a})}},(null==o?void 0:o.index)===a?i().createElement(p.A,null):i().createElement(d.A,null)))):i().createElement(A.A,{key:\"attendance-approval-\".concat((0,S.gP)()),component:\"th\",scope:\"row\",sx:{fontFamily:\"NotoSans-Medium\",fontSize:14,color:w.w.palette.text.secondary,fontWeight:400}},t[e.key])})),i().createElement(b.A,null,i().createElement(T,{expandRowsData:o,rowIndex:a,expandRowKeys:r,expandComponent:s})))};const D=function(e){var t=e.headerData,n=e.rowsData,r=e.rowKeys,o=e.expandRowKeys,a=e.expandRowsData,l=e.expandComponent,s=e.onExpand;return i().createElement(y.A,{component:h.A,elevation:0,className:\"collapsible-table-container\"},i().createElement(m.A,{\"aria-label\":\"collapsible table\",style:{border:\"1px solid #e0e0e0\"}},i().createElement(E.A,null,i().createElement(b.A,null,t.length>0&&(null==t?void 0:t.map(function(e,n){return i().createElement(A.A,{key:\"collapsible-header-\".concat((0,S.gP)()),sx:{fontFamily:\"NotoSans-Regular\",fontWeight:600,fontSize:14,color:w.w.palette.text.secondary,width:\"\".concat(100/t.length,\"%\")}},e.headerName)})))),i().createElement(v.A,null,null!=n&&n.length?null==n?void 0:n.map(function(e,t){return i().createElement(O,{rowKeys:r,key:\"table-row-\".concat((0,S.gP)(),\"}\"),rowData:e,expandRowKeys:o,expandRowsData:a,rowIndex:t,onExpand:s,expandComponent:l})}):i().createElement(b.A,{sx:{height:\"60vh\"}},i().createElement(A.A,{colSpan:r.length,align:\"center\"},\"No Rows To Show\")))))};var R=n(56254),N=n(43605),L=n(92416),P=n(25475),M=n(71543),x=n(56203);const I=function(e){var t,n;return i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",mb:2,p:1,gap:4},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"center\",alignItems:\"center\",gap:1},i().createElement(_.A,{fontSize:14,fontWeight:600,color:w.w.palette.grey[900],lineHeight:\"21px\"},(0,x.t)(\"DISTRIBUTOR\"),\":\"),i().createElement(_.A,{fontFamily:\"NotoSans-Bold\",fontSize:16,lineHeight:\"20px\",fontWeight:700},null==e||null===(t=e.demoTrackingDetails)||void 0===t?void 0:t.distributor_name)),i().createElement(M.A,{sx:{m:0,height:21,borderColor:\"#CFD3DB\"},orientation:\"vertical\",variant:\"middle\",flexItem:!0}),i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"center\",alignItems:\"center\",gap:1},i().createElement(_.A,{fontSize:14,fontWeight:600,color:w.w.palette.grey[900],lineHeight:\"21px\"},(0,x.t)(\"CROP\"),\":\"),i().createElement(_.A,{fontSize:16,lineHeight:\"20px\",fontWeight:700,fontFamily:\"NotoSans-Bold\"},null==e||null===(n=e.demoTrackingDetails)||void 0===n?void 0:n.crop_name)))};var k=n(43356);function B(e){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},B(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==B(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=n(17575);function Y(e){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Y(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Q=function(){var e,t=(0,a.useContext)(c.v),n=t.BackOfficeProps,d=n.globalStore.User,p=n.baseurl,f=t.triggerShowLoader,g=(0,l.zy)().state,h=q((0,a.useState)({}),2),m=h[0],v=h[1],A=q((0,a.useState)({pageNo:0,pageSize:10}),2),y=A[0],E=A[1],b=q((0,a.useState)(0),2),_=b[0],C=b[1],w=q((0,a.useState)([]),2),S=w[0],T=w[1];(0,a.useEffect)(function(){localStorage.removeItem(\"visitDetailsState\")},[]),(0,a.useEffect)(function(){var e=y.pageNo,t=y.pageSize;(0,P.O)(d,p,f,{state:g,pageNo:e,pageSize:t}).then(function(e){e&&(T(O(null==e?void 0:e.data)),C(e.totalPageCount))}).catch(function(){})},[y]);var O=function(e){return e.map(function(e){return z(z({},e),{},{hq:g.hq})})};return i().createElement(k.l,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,null,i().createElement(L.A,{routePathName:[{name:u.F_.Demo_Tracking,path:u.fp.Demo_Tracking},{name:u.F_.Demo_List,path:\"\".concat(u.fp.Demo_Tracking,\"/\").concat(u.fp.Demo_List)},{name:\"Demo Product Tracking ID  : \".concat(null==g?void 0:g.demo_requester_code),path:\"\"}]}))),i().createElement(I,{demoTrackingDetails:g}),i().createElement(D,{headerData:s.wv,rowKeys:s.lm,rowsData:S,expandRowKeys:s.T8,expandRowsData:m,onExpand:function(e){var t;v({data:null==S||null===(t=S[null==e?void 0:e.index])||void 0===t?void 0:t.growers,index:null==e?void 0:e.index})},expandComponent:i().createElement(N.A,{rows:null!==(e=null==m?void 0:m.data)&&void 0!==e?e:[],columnDefs:s.QS,frameworkComponents:{ActionComponent:function(e){return function(e){var t=e.data,n=e.state,r=e.demoDetails,o=(0,l.Zp)(),a=\"DEMO_NOT_STARTED\"==(null==t?void 0:t.status),s=a?\"disabled-action-label remove-button\":\"smart-agro-lite-green-label remove-button\";return i().createElement(\"button\",{type:\"button\",id:\"editItem\",disabled:a,className:s,onClick:function(){var e=\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Demo_Tracking,\"/\").concat(u.fp.Demo_List,\"/visitdetails/3/first_visit\"),a=j(j(j({},n),t),r);o(e,{state:a})}},(0,x.t)(\"DETAILS\"))}(z(z({},e),{},{demoDetails:null==S?void 0:S[null==m?void 0:m.index],state:g}))},StatusComponent:U.q}})}),i().createElement(R.A,{totalPageCount:_,pageNo:y.pageNo,totalElements:_,onPageChange:function(e){E(function(t){return z(z({},t),{},{pageNo:Number(e)})})}})))}},7621:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var l=n(64436),s=a(n(81970)),u=n(98400),c=i(n(66124)),d=i(n(49910)),p=i(n(1978)),f=n(67991),g=n(63981);t.default=s.memo(function(){var e=s.useContext(u.BeansContext),t=e.context,n=e.agStackComponentsRegistry,r=e.resizeObserverService,o=s.useState(\"\"),a=o[0],i=o[1],h=s.useState(0),m=h[0],v=h[1],A=s.useState(0),y=A[0],E=A[1],b=s.useState(\"0px\"),_=b[0],C=b[1],w=s.useState(\"0px\"),S=w[0],T=w[1],O=s.useState(\"100%\"),D=O[0],R=O[1],N=s.useState(\"\"),L=N[0],P=N[1],M=s.useState(\"\"),x=M[0],I=M[1],k=s.useState(null),B=k[0],F=k[1],j=s.useState(\"\"),H=j[0],U=j[1],Y=s.useState(null),G=Y[0],z=Y[1],V=s.useState(\"ag-layout-normal\"),q=V[0],W=V[1],Q=s.useMemo(function(){return new l.CssClassManager(function(){return K.current})},[]),K=s.useRef(null),$=s.useRef(null),X=s.useRef(null),J=s.useRef(null),Z=s.useRef(null),ee=s.useRef(null);d.default(\" AG Grid Body \",K),d.default(\" AG Pinned Top \",$),d.default(\" AG Sticky Top \",X),d.default(\" AG Middle \",Z),d.default(\" AG Pinned Bottom \",ee),f.useLayoutEffectOnce(function(){var e=[],o=[];if(t){var a=function(r){var o=n.getComponentClass(r),a=t.createBean(new o);return e.push(a),a};K.current.appendChild(document.createComment(\" AG Fake Horizontal Scroll \")),K.current.appendChild(a(\"AG-FAKE-HORIZONTAL-SCROLL\").getGui()),K.current.appendChild(document.createComment(\" AG Overlay Wrapper \")),K.current.appendChild(a(\"AG-OVERLAY-WRAPPER\").getGui()),J.current.appendChild(document.createComment(\" AG Fake Vertical Scroll \")),J.current.appendChild(a(\"AG-FAKE-VERTICAL-SCROLL\").getGui());var s={setRowAnimationCssOnBodyViewport:i,setColumnCount:function(e){return l._.setAriaColCount(K.current,e)},setRowCount:function(e){return l._.setAriaRowCount(K.current,e)},setTopHeight:v,setBottomHeight:E,setStickyTopHeight:C,setStickyTopTop:T,setStickyTopWidth:R,setTopDisplay:P,setBottomDisplay:I,setColumnMovingCss:function(e,t){return Q.addOrRemoveCssClass(e,t)},updateLayoutClasses:W,setAlwaysVerticalScrollClass:F,setPinnedTopBottomOverflowY:U,setCellSelectableCss:z,setBodyViewportWidth:function(e){return Z.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=r.observeResize(Z.current,e);o.push(function(){return t()})}},u=t.createBean(new l.GridBodyCtrl);return e.push(u),u.setComp(s,K.current,Z.current,$.current,ee.current,X.current),function(){t.destroyBeans(e),o.forEach(function(e){return e()})}}});var te=s.useMemo(function(){return g.classesList(\"ag-root\",\"ag-unselectable\",q)},[q]),ne=s.useMemo(function(){return g.classesList(\"ag-body-viewport\",a,q,B,G)},[a,q,B,G]),re=s.useMemo(function(){return g.classesList(\"ag-body\",q)},[q]),oe=s.useMemo(function(){return g.classesList(\"ag-body-clipper\",q)},[q]),ae=s.useMemo(function(){return g.classesList(\"ag-floating-top\",G)},[G]),ie=s.useMemo(function(){return g.classesList(\"ag-sticky-top\",G)},[G]),le=s.useMemo(function(){return g.classesList(\"ag-floating-bottom\",G)},[G]),se=s.useMemo(function(){return{height:m,minHeight:m,display:L,overflowY:H}},[m,L,H]),ue=s.useMemo(function(){return{height:_,top:S,width:D}},[_,S,D]),ce=s.useMemo(function(){return{height:y,minHeight:y,display:x,overflowY:H}},[y,x,H]),de=function(e){return s.default.createElement(p.default,{name:e,key:e+\"-container\"})},pe=function(e){var t=e.section,n=e.children,r=e.className,o=e.style;return s.default.createElement(\"div\",{ref:t,className:r,role:\"presentation\",style:o},n.map(de))};return s.default.createElement(\"div\",{ref:K,className:te,role:\"treegrid\"},s.default.createElement(c.default,null),pe({section:$,className:ae,style:se,children:[l.RowContainerName.TOP_LEFT,l.RowContainerName.TOP_CENTER,l.RowContainerName.TOP_RIGHT,l.RowContainerName.TOP_FULL_WIDTH]}),s.default.createElement(\"div\",{className:re,ref:J,role:\"presentation\"},s.default.createElement(\"div\",{className:oe,role:\"presentation\"},pe({section:Z,className:ne,children:[l.RowContainerName.LEFT,l.RowContainerName.CENTER,l.RowContainerName.RIGHT,l.RowContainerName.FULL_WIDTH]}))),pe({section:X,className:ie,style:ue,children:[l.RowContainerName.STICKY_TOP_LEFT,l.RowContainerName.STICKY_TOP_CENTER,l.RowContainerName.STICKY_TOP_RIGHT,l.RowContainerName.STICKY_TOP_FULL_WIDTH]}),pe({section:ee,className:le,style:ce,children:[l.RowContainerName.BOTTOM_LEFT,l.RowContainerName.BOTTOM_CENTER,l.RowContainerName.BOTTOM_RIGHT,l.RowContainerName.BOTTOM_FULL_WIDTH]}))})},7743:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565),a=n(79306),i=n(36043),l=n(1103),s=n(72652);r({target:\"Promise\",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=i.f(t),r=n.reject,u=l(function(){var i=a(t.resolve);s(e,function(e){o(i,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},7745:(e,t,n)=>{var r=n(56903).document;e.exports=r&&r.documentElement},7860:(e,t,n)=>{\"use strict\";var r=n(82839);e.exports=/web0s(?!.*chrome)/i.test(r)},7928:(e,t,n)=>{\"use strict\";n.d(t,{AL:()=>i,S3:()=>a,kq:()=>l}),n(27495),n(25440);var r=n(8085),o=n(13075),a=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=r.p.GET_EVENT_DETAILS.replace(\"__SUB_TYPE_ID__\",null==a?void 0:a.crop_id),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.payLoad={form_id:\"5\"},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},i=function(e,t,n,a){var i,l,s,u={};return u.domain=t,u.endPoint=\"\".concat(r.p.GET_VISIT_DETAILS_BY_ID).replace(\"__DEMO_DISTRIBUTION_UUID__\",null==a||null===(i=a.state)||void 0===i?void 0:i.demo_distribution_uuid).replace(\"__GROWER_UUID__\",null==a||null===(l=a.state)||void 0===l?void 0:l.grower_uuid),u.customHeaders={\"country-code\":null==e||null===(s=e.selectedCountry)||void 0===s?void 0:s.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=n,(0,o.AT)(\"get\",u,!0)},l=function(e,t,n,a){var i,l=a.filename,s=a.demo_grower_details_id,u={};return u.domain=t,u.endPoint=r.p.GET_DEMO_TRACKING_IMAGE_PRESIGNED_URL.replace(\"__DEMO_TRACKING_GROWER_DETAILS_UUID__\",s),u.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},u.payLoad={file_name:l},u.triggerLoader=n,(0,o.AT)(\"get\",u,!1)}},7986:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z\"}),\"KeyboardArrowLeft\")},8085:(e,t,n)=>{\"use strict\";n.d(t,{p:()=>r});var r={GETLEVEL_DETAILS:\"levels\",GET_EMPLOYEETYPES:\"employeetypes\",GETPARENTSALESHIERARCHY:\"sales/hierarchies/parents/__LEVEL__\",SAVESALEHIERARCHY:\"sales/hierarchies\",GETSALESHIERARCHY:\"sales/hierarchies\",GETSALESHIERARCHY_BYID:\"sales/hierarchies/__ID__\",GETCONFIGUREDLEASTSALESHIERARCHYID:\"attendance/marker-id\",GET_GEOHIERARCHY_LIST:\"geo/hierarchy/list\",GET_GEOHIERARCHY_BY_ID:\"geo/hierarchy/:Id\",SAVE_GEOHIERARCHY:\"geo/hierarchy\",UPDATE_GEOHIERARCHY:\"geo/hierarchy/:Id\",GEO_DATA_LIST:\"master/geo/data\",GET_GEO_DATA_LIST_BY_ID:\"master/geo/data/__ID__\",SAVE_GEO_DATA:\"master/geo/data\",UPDATE_GEO_DATA:\"master/geo/data/__ID__\",GEO_PARENT_DATA:\"master/geo/data/parents/__geoHierarchyId__\",GEO_DATA_DOWNLOAD_TEMPLATE:\"master/geo/data/download/templates\",GEO_DATA_GET_PRE_SIGNED_URL:\"files/geo/data/urls\",GET_HQDATA_LIST:\"master/hq/data\",SAVE_ORPHAN_SCHEDULAR_RECORD:\"master/hq/data/orphan-schedulers\",GET_ALTERNATIVE_HQDATA_LIST:\"master/hq/data/__ID__/alternative/hq\",GET_HQDATA_VALIDATION:\"master/hq/data/__ID__/__ENDDATE__\",GET_HQDATA_BY_HQ_HIERACHY_SEQUENCE:\"master/hq\",GET_HQDATA_BY_ID:\"master/hq/data/__ID__\",SAVE_HQDATA:\"master/hq/data\",UPDATE_HQDATA:\"master/hq/data/__ID__\",GET_PARENT_LIST:\"master/hq/data/parents/__HQHIERARCHYID__\",GET_CHILD_LIST_SAVE:\"master/geo/data/childs/hq/hierarchies/__HQHIERARCHYID__\",GET_CHILD_LIST_EDIT:\"master/geo/data/childs/hq/hierarchies/__HQHIERARCHYID__/hq/data/__HQDATAID__\",SAVE_GEO:\"master/hq/data/__HQDATAID__/geo/data\",GET_GEO_DATA_LIST:\"master/hq/data/__HQDATAID__/geo/data\",GET_GEO_DATA_LIST_BY_SEARCH_VALUE:\"master/geo/data/search/parent/hq/__PARENTHQID__\",UPDATE_HQGEO_DATA:\"master/hq/data/__HQDATAID__/geo/data\",INITIAL_STATE_LIST:\"master/hq/geo/data\",GET_USERS_LIST:\"web/users/hq/hierarchy/__HQHIERARCHYID__\",GET_USERS_FILTER:\"web/users/hq/hierarchies/__HQHIERARCHYID__\",USER_HIERARCHIES_LIST:\"hq/hierarchies/parent/__id__\",IS_UNMAPPED_GEO_DATA_RETAILER:\"master/hq/data/__hqId__/geo/data/retailers/exists\",GET_HQDATA_FILTER:\"master/hq/data/filter\",SAVEHQHIERARCHY:\"hq/hierarchies\",GETHQHIERARCHYBYID:\"hq/hierarchies/__ID__\",GETPARENTHQHIERARCHY:\"hq/hierarchies/parents/__LEVEL__\",GETHQHIERARCHYDATA:\"hq/hierarchies\",GETGEOHIERARCHIESBYPARENT:\"hq/hierarchies/geo/hierarchies/__LEVEL__\",GETSALESHIERARCHYLISTBYLEVEL:\"/sales/hierarchies/levels/__LEVEL__\",GET_HQ_NAMES:\"master/hq/data/geo/data/__geoDataId__\",USERS_DATA:\"web/users\",GET_USERS_DATA_BY_ID:\"web/users/__ID__\",GET_ROLE_HIERARCHY:\"sales/hierarchies/childs\",UPDATE_USER_DATA:\"web/users/__ID__\",CLEAR_END_DATE:\"web/users/clear-end-date\",GET_MDOSBYID:\"web/users/mdo/__ID__\",GET_MDOS:\"web/users/mdo\",GET_MDO_VALIDATIONS:\"country/config\",GET_MDO_ENDORSEMENT_CONFIGURATION:\"web/users/mdo/endorsement/configuration\",GET_EVENTCONFIG:\"configuration/events\",UPDATE_EVENTCONFIG:\"configuration/events/__ID__\",GET_FORM_TABS:\"forms\",GET_EVENT_TYPES:\"event/types?buId=__BUID__\",GET_EVENT_DETAILS:\"forms/configuration/__SUB_TYPE_ID__\",GET_DEFAULT_FORM_EVENT_DETAILS:\"forms/__FORM_ID__/templates\",SAVE_FORM_EVENT_CONFIGURATION:\"forms/configuration\",GET_GROWERS_FORM:\"configuration/forms/__FORM_ID__\",GET_USER_ROLES:\"sales/hierarchies\",GET_DEFAULT_DATA:\"access-control/app/__COUNTRY_APP_ID__\",GET_ROLE_DATA:\"global/role-authorization\",UPDATE_RBAC_DATA:\"global/role-authorization\",SAVE_RBAC_DATA:\"global/role-authorization\",GET_CROPDATA:\"crops/bu/__ID__\",GET_BRANDSDATA:\"brands/bu/__BUID__/crops\",GET_EVENTSLIST:\"events\",GET_CONDUCTEDBY:\"configuration/events/saleshierarchies/\",GET_HQNAME:\"master/hq/data/salesHierarchy/__salesID__/user/__userUUID__\",GET_EVENTTYPES:\"event/types\",GET_EVENTIMAGES:\"events/__UUID__/image/__ID__\",GET_EVENTBYID:\"events/__UUID__\",GET_EVENTSTATUS:\"events/status\",DOWNLOAD_EVENTS_ACTUALS:\"events/download/reports\",GET_TARGET_MDO:\"events/targets/bus\",GET_HQ_NAME:\"events/targets/headquarters/sales/hierarchies\",DOWNLOAD_TEMPLATE:\"events/targets/download/templates\",GET_PRESIGNED_URL:\"files/event/target/urls\",GET_EVENT_TARGETS_LISTING:\"events/targets\",GET_EVENT_TARGET_HQ_PARENT:\"events/targets/hq/parent\",GET_EVENT_TARGET_CHILD:\"events/targets/hq/child\",EVENT_TYPES:\"event/types\",DOWNLOAD_EVENTS_TARGET:\"events/targets/download/reports\",DOWNLOAD_LIQUIDATIONS_REPORTS:\"liquidations/targets/actuals/download/reports\",GET_RETAILERS_DATA:\"retailers\",GET_RETAILERS_DATA_BY_ID:\"retailers/__ID__\",RETAILER_DOWNLOAD_TEMPLATE:\"retailers/download/templates?__HQ_ID__\",RETAILER_BGP_DOWNLOAD_TEMPLATE:\"retailers/bgp/download/template\",GET_HQ_RETAILER_NAME:\"retailers/download/templates/hq/data/details\",GET_RETAILER_PRESIGNED_URL:\"files/retailer/urls\",GET_RETAILERSFILTER_DATA:\"retailers/filters\",GET_RETAILERS_LIST:\"retailers/list\",GET_SALES_HIERARCHY_ID:\"marketdevelopment/bu/bu_id\",GET_TOUCH_BASE:\"retailers/touch-base?status=__status__\",RETAILERS_FORM_FIELDS_DATA:\"configuration/forms/__FORM_ID__\",RETAILER_DEATILS:\"retailers/__FORM_ID__\",RETAILER_PERFORMANCE:\"retailers/performance\",DISABLE_RETAILERS_FIELDS:\"configuration/values\",GET_RETAILER_CATEGORY:\"retailers/categories\",GET_DISTRIBUTORS_NAMES:\"distributors\",ACTIVATE_AND_DEACTIVATE_RETAILER:\"retailers/retailer_uuid/status\",SAVE_RETAILERS_DETAILS:\"retailers/save\",APPROVE_RETAILERS_DETAILS:\"retailers/retailer_uuid/approval\",VERIFYING_KYC:\"/retailers/retailer_uuid/verify\",GET_DOCUMENTS_URL:\"retailers/retailer_uuid/documents/presigned-urls\",GET_ATTACHMENT_URL:\"retailers/retailer_uuid/attachments/presigned-urls\",UPLOAD_DOCUMENTS:\"retailers/documents\",DOWNALOAD_ANNUAL_TURNOVER:\"retailers/annual/turnover/download/templates\",UPLOAD_ANNUAL_TURNOVER:\"retailers/annual/turnover/upload\",GET_RETAILER_CONfIG_DETAILS:\"retailers/config/__buId__\",GET_HIERARCHY_DETAILS:\"hq/hierarchies/__id__\",GET_LICENSE_TYPES:\"license-types\",getRetailerPerformance:\"retailers/__RETAILER_UUID__/performance\",GET_OTP:\"mobile/__NEW_NUMBER__/send-otp\",VERIFY_OTP_UPDATE_NUMBER:\"retailers/__UUID__/verify-otp/__NEW_NUMBER__\",GET_PUSHNOTIFICATIONS:\"notifications/reasons\",GET_FREQUENCY:\"notifications/frequency\",GET_DAYS:\"notifications/dayOfMonth\",GET_PUSHNOTIFICATIONSBYID:\"notifications/reasons/__ID__/config\",GET_SUPPORT_HELP_DATA:\"helpsupport/__BUID__\",SAVE_SUPPORT_HELP_DATA:\"helpsupport\",PUBLISH_SUPPORT_HELP_DATA:\"helpsupport/publish \",UPDATE_SUPPORT_HELP_DATA:\"helpsupport/__ID__\",GET_SUPPORT_FAQ_DATA:\"faq/__BUID__\",SAVE_SUPPORT_FAQ_DATA:\"faq\",PUBLISH_SUPPORT_FAQ_DATA:\"faq/publish\",UPDATE_SUPPORT_FAQ_DATA:\"faq/__ID__\",BULK_UPLOAD:\"bulk/uploads\",BULK_UPLOAD_ERROR_LOG:\"bulk/uploads/__ERR_ID__/error/logs\",GET_ATTENDANCE_CONFIG_DATA:\"configuration/values\",GET_ATTENDANCE_FINAL_APPROVAL_BUTTON_STATUS:\"attendance/finalapproval\",GET_ATTENDANCE_REGULARIZED_HISTORY_LOGS:\"attendance/regularized/history/logs\",DOWNLOAD_HOLIDAY_EMPTY_TEMPLATE:\"holidays/download/empty/template\",DOWNLOAD_HOLIDAY_DATA_TEMPLATE:\"holidays/download\",HOLIDAY_UPLOAD_ERROR_LOGS:\"holiday/upload/error/logs\",GET_ATTENDANCE_CONFIG:\"attendance/config\",UPLOAD_HOLIDAY_TEMPLATE:\"holidays/upload\",GET_ATTENDANCE_APPROVER:\"admin/countryapp/__COUNTRY_ID__/bu/__BU_ID__/approvers\",GET_EVENTS_CONFIG_DATA:\"configuration/values\",GET_ATTENDANCE_CONFIG_VALUES:\"configuration/values\",GET_APPROVAL_ATTENDANCE_DATA:\"attendance\",GET_APPROVAL_COMMENTS:\"attendance/comments\",PUT_FINAL_APPROVAL:\"attendance/finalapproval\",GET_ATTENDANCE_TYPES:\"attendance/types\",SAVE_ATTENDANCE_TYPES:\"configuration/values\",GET_ATTENDENCE_APPROVER_FILTER_DATA:\"attendance/approver/filters\",GET_APPROVER_FILTER_OPTIONS_DATA:\"events/targets/hq/child\",GET_APPROVER_TM_DATA:\"attendance/approval/summary\",GET_APPROVAL_REASONS:\"attendance/reasons\",GET_MDO_DATA:\"attendance/details\",GET_PAY_CYCLE_OPTIONS:\"attendance/approval/paycycles\",EVENT_BASE_LINE_HQDATA:\"event-baseline/hqData\",GET_EVENT_MASTER_TYPE:\"event/master/baseline\",GET_BASELINE_EVENT_TYPES:\"event/types/baseline\",GET_DMHQ:\"event-baseline/hqData\",SAVE_BASE_LINE:\"event-baseline\",DELETE_BASE_LINE:\"event-baseline/__ID__\",GET_BASE_LINE:\"events/baselines\",UPDATE_BASE_LINE:\"events/baseline\",GET_YEAR_DATA:\"liquidations/__LIQUIDATION_TYPE__/templates/durations/options\",GET_LIQUIDATION_TEMPLATE:\"liquidations/download/templates\",GET_LIQUIDATION_HQDATA:\"liquidations/download/templates/hq/data/details\",GET_LIQUIDATION_NNRDATA:\"liquidations/download/templates/nnr/hqs\",GET_LIQUIDATION_CATEGORY:\"liquidations/categories\",GET_PAY_FOR_PERFORMANCE_LISTDATA:\"pfp\",GET_PFP_TEMPLATE:\"pfp/download/templates\",GET_PFP_DOWNLOAD_REPORTS:\"pfp/download/reports\",UPLOAD_TARGETS_PFP_TEMPLATE:\"files/pay-for-performance/targets/urls\",UPLOAD_ACTUALS_PFP_TEMPLATE:\"files/pay-for-performance/actuals/urls\",PFP_VARIETIES:\"pfp/brand-sku/varieties\",GET_MODULE_CONFIG_LISTDATA:\"mlp/module-config/list\",GET_MLP_FULL_DETAILS_CARDS:\"mlp/active-hq-users\",GET_MLP_FULL_DETAILS_TABLE:\"mlp/details\",GET_MLP_GEO_LIST:\"mlp/geo-list\",SUBMIT_MLP_GEO_LIST:\"mlp/geo-list/submit\",GET_MLP_TALUKA_DETAILS:\"mlp/taluka-details\",GET_MLP_TALUKA_APPROVAL_DATA:\"mlp/taluka/approval-data\",GET_MLP_GEO_SUMMARY:\"mlp/geo-summary\",GET_MLP_MARKET_SHARE_DETAILS:\"mlp/market-share-details\",GET_SEASON_DATA:\"mlp/seasons\",GET_SEASON_CROP_DATA:\"mlp/season/crop\",GET_COMPETITOR_DATA:\"mlp/competitors\",GET_BRAND_DATA_BY_CROP_ID_BU_ID:\"brands/bu/__BU_ID__/crops/__CROP_ID__\",SAVE_NEW_MLP_DATA:\"mlp/save\",DELETE_MLP:\"mlp/__ID__\",MLP_DOWNLOAD_TEMPLATE:\"mlp/download/template\",MLP_GET_AGRONOMY_PRESIGNED_URL:\"files/micro-level-planning/urls\",MLP_VALIDATE_AGRONOMY_TEMPLATE:\"mlp/validate-agronomy-template\",GET_MLP_DETAILS_BY_ID:\"mlp/__ID__\",GET_AGRONOMY_TEMPLATE_UPLOAD_CONFIRMATION:\"mlp/agronomy-recommendation/__MLP_ID__\",GET_MLP_ROLE_CONFIG:\"configuration/values\",GET_TALUKA_DETAILS:\"mlp/taluka-data\",GET_TALUKA_DISTRIBUTORS:\"mlp/taluka-distributor\",SAVE_TALUKA_DETAILS:\"mlp/geo-submission/save\",SAVE_APPROVE_REJECT_DETAILS:\"mlp/geo-submission/update-approver-status\",GET_MLP_CATEGORY_VALUES:\"mlp/category-value/__MLP_ID__\",GET_MLP_SEED_RATE:\"mlp/seed-rate\",GET_LIQUIDATION_LISTDATA:\"liquidations/targets/actuals\",GET_LIQUIDATION_TAB_VALUES:\"hq/hierarchies/parents\",GET_FILTERS_LABELS_LIST:\"hq/hierarchies/filters\",GET_FIRST_LEVEL_FILTER_LIST:\"events/targets/headquarters/sales/hierarchies\",GET_FILTERS_LIST:\"events/targets/hq/child\",GET_YEAR_FILTER_LIST:\"liquidations/annual/durations\",GET_BRAND_FILETR_LIST:\"liquidations/brands\",UPLOAD_TARGETS_LIQUIDATION_TEMPLATE:\"files/liquidation/targets/urls\",UPLOAD_ACTUALS_LIQUIDATION_TEMPLATE:\"files/liquidation/actuals/urls\",DOWNLOAD_DISTRIBUTOR_EMPTY_TEMPLATE:\"distributors/templates\",DOWNLOAD_DISTRIBUTOR_DATA_TEMPLATE:\"distributors/templates\",UPLOAD_DISTRIBUTOR_TEMPLATE:\"files/distributor/urls\",GET_SELECTED_SALES:\"configuration/leaderboard-discussionboard\",GET_BASELINE_CONFIG_TEMPLATE_DATA:\"event/target/templates\",GET_DEMO_DISPATCH_LIST:\"demo-tracking/list\",GET_DEMO_LIST:\"demo-tracking/hq/list\",GET_MATERIAL_FILTER_OPTIONS:\"demo-tracking/filters/materials\",GET_TMHQ_FILTER_OPTIONS:\"demo-tracking/filters/hqs\",GET_CROP_FILTER_OPTIONS:\"demo-tracking/filters/crops\",GET_DISTRIBUTOR_FILTER_OPTIONS:\"demo-tracking/filters/distributors\",GET_ALL_HQS:\"demo-tracking/downloads/templates/hqs\",GET_TM_LIST_BY_DISTRIBUTOR_BU_ID:\"distributors/__DITRIBUTOR_UUID__/mapped-hqs\",GET_COURIER_DETAILS_BY_BU_ID:\"master/demo-tracking/couriers\",DOWNLOAD_DEMO_TRACKING:\"demo-tracking/downloads/templates?__HQ_ID__\",UPLOAD_DEMO_COURIER_TEMPLATE:\"files/demo-tracking/urls\",GET_DEMO_DISPATCH_DETAILS_BY_ID:\"demo-tracking/demo-unique-id/__DEMO_UNIQUE_ID__/details\",GET_VISIT_DETAILS_BY_ID:\"demo-tracking/visits/__DEMO_DISTRIBUTION_UUID__/grower/__GROWER_UUID__\",GET_DEMO_TRACKING_IMAGE_PRESIGNED_URL:\"demo-tracking/__DEMO_TRACKING_GROWER_DETAILS_UUID__/visit/presigned-urls\",GET_DEMO_TRACKING_CROPS_LIST:\"master/demo-tracking/crops\",GET_DEMO_TRACKING_DATA:\"master/demo-tracking/crops/configurations/__CROP_ID__\",SAVE_DEMO_TRACKING:\"master/demo-tracking/crops/configurations\",GET_DEMO_RQUEST_LIST:\"demo-tracking/__DEMO_PRODUCT_TRACKING_UUID__/distributions\",GET_DEMO_RQUEST_DETAILS:\"demo-tracking/__DEMO_PRODUCT_TRACKING_UUID__/details\",GET_IS_DEMO_MAPPED_TO_DISTRIBUTOR:\"demo-tracking/demo-status/distributor/validate\",GET_PRODUCT_DEMO_TRACKING_SUMMARY:\"events/product-demo-tracking/summary\",GET_PRODUCT_DEMO_TRACKING_MDO_LIST:\"product-demo-tracking/mdo/list\",GET_PRODUCT_DEMO_TRACKING_TM_LIST:\"product-demo-tracking/tm/list\",GET_PRODUCT_DEMO_TRACKING_DISTRIBUTOR_LIST:\"product-demo-tracking/distributor/list\",GET_PRODUCT_DEMO_TRACKING_DISTRIBUTOR_DETAILS_LIST:\"product-demo-tracking/distributor/details/list\",GET_PRODUCT_DEMO_TRACKING_YEARS:\"events/product-demo-tracking/years\",GET_PRODUCT_DEMO_TRACKING_BRANDS:\"events/product-demo-tracking/brands\",GET_PRODUCT_DEMO_TRACKING_INVOICES:\"product-demo-tracking/download-report\",GET_MY_DISTRIBUTORS:\"distributors/configured-parent?hq_ids=__HQ_ID__\",SAVE_MY_DISTRIBUTORS:\"distributors/hqs/__HQ_ID__\",GET_DISTRIBUTORS_COUNT:\"distributors/count\",GET_AUTO_SYNC_DATA:\"admin/__BU_ID__/config\",UPDATE_AUTO_SYNC_DATA:\"admin/__BU_ID__/config/auto-sync\",GET_CONFIGURATION_VALUES:\"configuration/values\",GET_ROLE_SOW_CONFIG:\"retailers/sow/configurations/roles\",GET_SALES_HIERARCHYID_ID:\"marketdevelopment/bu/__BUID__\",GET_HQ_FILTER_OPTIONS:\"web/users/hq/hierarchy/hqHierarchyId\",GET_HQ_CHILD_FILTER_OPTIONS:\"events/targets/hq/child\",GET_HQ_HISTORY:\"master/hq/histories/list\",DOWNLOAD_HQ_HISTORY_REPORT:\"master/hq/histories/reports\",MASTERS_HQ_OPTIONS:\"master/hq/data/hq/__ID__\",DOWNLOAD_LIQUIDATIONS_REPORT:\"liquidations/status/reports\",GET_RETAILER_WALLET:\"retailers/sow\",GET_ROLE_CONFIGURATION_DATA:\"retailers/sow/configurations/field-labels/roles/__role_id__\",SAVE_RETAILER_SOW_CONFIG:\"retailers/sow/configurations\",RETAILER_CONFIGURATION_YEARS:\"retailers/sow/configurations/years\",RETAILER_SOW_LIST_DATA:\"retailers/sow/configurations/details\",RETAILERS_SOW_GET_BY_ID:\"retailers/sow/configurations/__ID__\",GET_BGP_GROWTH_RULE_HQS:\"bgp/growth-rules/hqs\",SAVE_BGP_GROWTH_RULES:\"bgp/growth-rules/save\",GET_HEADQUARTERS_TABS:\"retailers/bgp/planner/headquarters\",GET_BGP_HQ_LIST:\"retailers/config/hqData\",GET_BGP_YEARS_LIST:\"retailers/bgp/filter/years\",GET_RETAILERS_BGP_LIST:\"retailers/bgp/list\",GET_BRANDS_LIST:\"retailers/bgp/retailer_bgp_id\",POST_ADD_BRAND_LIST:\"retailers/bgp\",GET_TMHQ_BGP_LIST:\"retailers/bgp/planner/headquarters\",GET_DOWNLOAD_BGP_REPORT:\"retailers/bgp/exports/reports\",GET_BRANDS:\"brands/bgp-prices\",GET_RETAILER_SHOPNAMES:\"retailers/shop/list\",DOWNLOAD_BRANDS:\"brands/bgp-prices/downloads/templates\",GET_RETAILER_BGP_DOWNLOADS:\"retailers/bgp/retailer_bgp_id/downloads\",UPLOAD_BRANDS:\"retailers/bgp/upload\",GET_BGP_HQ:\"retailers/bgp/summary/__ID__\",DOWNLOAD_RETAILER_BGP_REPORT:\"retailers/bgp/reports/report_id\",ALL_DOWNLOAD_HISTORIES:\"retailers/bgp/downloads/history\",GET_WEEK_OFF_HOLIDAY_LIST:\"attendance/holidays-weekoffs\",GET_ATTENDANCE_LIST:\"attendance\",DOWNLOAD_MAN_POWER_REPORT:\"attendance/reports\",DOWNLOAD_MAN_POWER_REPORT_PAYCYCLE:\"attendance/download/manpower/report\",GET_GEO_CHILD_DATA:\"master/geo/data/childs\",UPDATE_ORPHAN_RETAILER:\"retailers/hq/distributor\",GET_OCR_EVENTS_LIST:\"event/ocr/details\",GET_OCR_IMAGES:\"event/ocr/images?event_uuid=__EVENT_UUID__&event_code=__EVENT_CODE__\",GET_OCR_TEMPLATE:\"event/ocr/__OCR_UUID__/files\",GET_PORTFOLIOS_LIST_BY_BU_CODE:\"admin/by-code/__bu_code__\",GET_PORTFOLIOS_LIST_BY_ROLE_AUTH:\"admin/role-authorization\",GET_MASTER_HQ_DATA_CHILDS:\"master/hq/data/childs\",GET_MY_TERRITORIES:\"master/geo/data/useruuid\",GET_HQ_HIERARCHIES_ID:\"hq/hierarchies/__HQHIERARCHYID__\",EVENT_BASELINE_VALIDATION:\"events/baselines/__id__/verify/targets\",GET_LIQUIDATION_MASTER_HQ_DATA_CHILDS:\"master/hq/data/user/childs\",GET_LIQUIDATION_SUMMARY:\"liquidations/sumrudhi?view_type=SUMMARY\",GET_LIQUIDATION_DETAIL:\"liquidations/sumrudhi?view_type=DETAILS\",GET_LIQUIDATION_RETAILER_DETAILS:\"liquidations/sumrudhi/details\",GET_LIQUIDATION_RETAILER_LIST:\"liquidations/retailers/brands/details\",GET_MDO_HQ_LIST:\"master/hq/data/childs/filter\",ASSIGN_HQ_TO_RETAILER:\"retailers/assign-mdo\",GET_ENDORSEMENT_DATA:\"safety/endorsement/list\"}},8181:(e,t,n)=>{\"use strict\";e.exports=n.p+\"86a0c49b5df07bb817c5.svg\"},8208:(e,t,n)=>{\"use strict\";var r=n(71748);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=function(t){function n(){var e,t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(t=(0,s.default)(this,(e=(0,u.default)(n)).call.apply(e,[this].concat(o)))).state={},t.handleKeyDown=function(e){var n,r=t.props,o=r.axis,a=void 0===o?\"x\":o,i=r.children,l=r.onChangeIndex,s=r.slideCount;switch((0,p.default)(e)){case\"page down\":case\"down\":\"y\"===a?n=\"decrease\":\"y-reverse\"===a&&(n=\"increase\");break;case\"left\":\"x\"===a?n=\"decrease\":\"x-reverse\"===a&&(n=\"increase\");break;case\"page up\":case\"up\":\"y\"===a?n=\"increase\":\"y-reverse\"===a&&(n=\"decrease\");break;case\"right\":\"x\"===a?n=\"increase\":\"x-reverse\"===a&&(n=\"decrease\")}if(n){var u=t.state.index,c=u;\"increase\"===n?c+=1:c-=1,(s||i)&&(c=(0,g.mod)(c,s||d.default.Children.count(i))),void 0===t.props.index&&t.setState({index:c}),l&&l(c,u)}},t.handleChangeIndex=function(e,n,r){void 0===t.props.index&&t.setState({index:e}),t.props.onChangeIndex&&t.props.onChangeIndex(e,n,r)},t}return(0,c.default)(n,t),(0,l.default)(n,[{key:\"UNSAFE_componentWillMount\",value:function(){this.setState({index:this.props.index||0})}},{key:\"UNSAFE_componentWillReceiveProps\",value:function(e){var t=e.index;\"number\"==typeof t&&t!==this.props.index&&this.setState({index:t})}},{key:\"render\",value:function(){var t=this.props,n=(t.index,t.onChangeIndex,(0,a.default)(t,[\"index\",\"onChangeIndex\"])),r=this.state.index;return d.default.createElement(f.default,{target:\"window\",onKeyDown:this.handleKeyDown},d.default.createElement(e,(0,o.default)({index:r,onChangeIndex:this.handleChangeIndex},n)))}}]),n}(d.default.Component);return t.propTypes={},t};var o=r(n(80772)),a=r(n(35233)),i=r(n(81297)),l=r(n(44953)),s=r(n(74338)),u=r(n(12977)),c=r(n(67217)),d=r(n(81970)),p=(r(n(5556)),r(n(36545))),f=r(n(43760)),g=n(77004)},8235:function(e,t,n){!function(e){\"use strict\";var t={1:\"१\",2:\"२\",3:\"३\",4:\"४\",5:\"५\",6:\"६\",7:\"७\",8:\"८\",9:\"९\",0:\"०\"},n={\"१\":\"1\",\"२\":\"2\",\"३\":\"3\",\"४\":\"4\",\"५\":\"5\",\"६\":\"6\",\"७\":\"7\",\"८\":\"8\",\"९\":\"9\",\"०\":\"0\"};e.defineLocale(\"ne\",{months:\"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर\".split(\"_\"),monthsShort:\"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.\".split(\"_\"),monthsParseExact:!0,weekdays:\"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार\".split(\"_\"),weekdaysShort:\"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.\".split(\"_\"),weekdaysMin:\"आ._सो._मं._बु._बि._शु._श.\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"Aको h:mm बजे\",LTS:\"Aको h:mm:ss बजे\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, Aको h:mm बजे\",LLLL:\"dddd, D MMMM YYYY, Aको h:mm बजे\"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"राति\"===t?e<4?e:e+12:\"बिहान\"===t?e:\"दिउँसो\"===t?e>=10?e:e+12:\"साँझ\"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?\"राति\":e<12?\"बिहान\":e<16?\"दिउँसो\":e<20?\"साँझ\":\"राति\"},calendar:{sameDay:\"[आज] LT\",nextDay:\"[भोलि] LT\",nextWeek:\"[आउँदो] dddd[,] LT\",lastDay:\"[हिजो] LT\",lastWeek:\"[गएको] dddd[,] LT\",sameElse:\"L\"},relativeTime:{future:\"%sमा\",past:\"%s अगाडि\",s:\"केही क्षण\",ss:\"%d सेकेण्ड\",m:\"एक मिनेट\",mm:\"%d मिनेट\",h:\"एक घण्टा\",hh:\"%d घण्टा\",d:\"एक दिन\",dd:\"%d दिन\",M:\"एक महिना\",MM:\"%d महिना\",y:\"एक बर्ष\",yy:\"%d बर्ष\"},week:{dow:0,doy:6}})}(n(95093))},8239:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>S});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(89452),s=n(39599),u=n(75659),c=n(11848),d=n(25669),p=n(44675);const f=a.createContext();var g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiGrid\",e)}const v=[\"auto\",!0,1,2,3,4,5,6,7,8,9,10,11,12],A=(0,g.A)(\"MuiGrid\",[\"root\",\"container\",\"item\",\"zeroMinWidth\",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...[\"column-reverse\",\"column\",\"row-reverse\",\"row\"].map(e=>`direction-xs-${e}`),...[\"nowrap\",\"wrap-reverse\",\"wrap\"].map(e=>`wrap-xs-${e}`),...v.map(e=>`grid-xs-${e}`),...v.map(e=>`grid-sm-${e}`),...v.map(e=>`grid-md-${e}`),...v.map(e=>`grid-lg-${e}`),...v.map(e=>`grid-xl-${e}`)]);var y=n(74848);const E=[\"className\",\"columns\",\"columnSpacing\",\"component\",\"container\",\"direction\",\"item\",\"rowSpacing\",\"spacing\",\"wrap\",\"zeroMinWidth\"];function b(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),\"\")||\"px\"}`}function _({breakpoints:e,values:t}){let n=\"\";Object.keys(t).forEach(e=>{\"\"===n&&0!==t[e]&&(n=e)});const r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}const C=(0,c.Ay)(\"div\",{name:\"MuiGrid\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=function(e,t,n={}){if(!e||e<=0)return[];if(\"string\"==typeof e&&!Number.isNaN(Number(e))||\"number\"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])}),r}(i,u,t));const d=[];return u.forEach(e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...c,\"row\"!==o&&t[`direction-xs-${String(o)}`],\"wrap\"!==l&&t[`wrap-xs-${String(l)}`],...d]}})(({ownerState:e})=>(0,o.A)({boxSizing:\"border-box\"},e.container&&{display:\"flex\",flexWrap:\"wrap\",width:\"100%\"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},\"wrap\"!==e.wrap&&{flexWrap:e.wrap}),function({theme:e,ownerState:t}){const n=(0,l.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,l.NI)({theme:e},n,e=>{const t={flexDirection:e};return 0===e.indexOf(\"column\")&&(t[`& > .${A.item}`]={maxWidth:\"none\"}),t})},function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,l.kW)({values:r,breakpoints:e.breakpoints.values});let n;\"object\"==typeof t&&(n=_({breakpoints:e.breakpoints.values,values:t})),o=(0,l.NI)({theme:e},t,(t,r)=>{var o;const a=e.spacing(t);return\"0px\"!==a?{marginTop:`-${b(a)}`,[`& > .${A.item}`]:{paddingTop:b(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${A.item}`]:{paddingTop:0}}})}return o},function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=(0,l.kW)({values:r,breakpoints:e.breakpoints.values});let n;\"object\"==typeof t&&(n=_({breakpoints:e.breakpoints.values,values:t})),o=(0,l.NI)({theme:e},t,(t,r)=>{var o;const a=e.spacing(t);return\"0px\"!==a?{width:`calc(100% + ${b(a)})`,marginLeft:`-${b(a)}`,[`& > .${A.item}`]:{paddingLeft:b(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:\"100%\",marginLeft:0,[`& > .${A.item}`]:{paddingLeft:0}}})}return o},function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,a)=>{let i={};if(t[a]&&(n=t[a]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:\"100%\"};else if(\"auto\"===n)i={flexBasis:\"auto\",flexGrow:0,flexShrink:0,maxWidth:\"none\",width:\"auto\"};else{const s=(0,l.kW)({values:t.columns,breakpoints:e.breakpoints.values}),u=\"object\"==typeof s?s[a]:s;if(null==u)return r;const c=Math.round(n/u*1e8)/1e6+\"%\";let d={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if(\"0px\"!==n){const e=`calc(${c} + ${b(n)})`;d={flexBasis:e,maxWidth:e}}}i=(0,o.A)({flexBasis:c,flexGrow:0,maxWidth:c},d)}return 0===e.breakpoints.values[a]?Object.assign(r,i):r[e.breakpoints.up(a)]=i,r},{})}),w=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiGrid\"}),{breakpoints:l}=(0,p.A)(),c=(0,s.A)(n),{className:g,columns:h,columnSpacing:v,component:A=\"div\",container:b=!1,direction:_=\"row\",item:w=!1,rowSpacing:S,spacing:T=0,wrap:O=\"wrap\",zeroMinWidth:D=!1}=c,R=(0,r.A)(c,E),N=S||T,L=v||T,P=a.useContext(f),M=b?h||12:P,x={},I=(0,o.A)({},R);l.keys.forEach(e=>{null!=R[e]&&(x[e]=R[e],delete I[e])});const k=(0,o.A)({},c,{columns:M,container:b,direction:_,item:w,rowSpacing:N,columnSpacing:L,wrap:O,zeroMinWidth:D,spacing:T},x,{breakpoints:l.keys}),B=(e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if(\"string\"==typeof e&&!Number.isNaN(Number(e))||\"number\"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}(a,s));const d=[];s.forEach(t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)});const p={root:[\"root\",n&&\"container\",o&&\"item\",l&&\"zeroMinWidth\",...c,\"row\"!==r&&`direction-xs-${String(r)}`,\"wrap\"!==i&&`wrap-xs-${String(i)}`,...d]};return(0,u.A)(p,m,t)})(k);return(0,y.jsx)(f.Provider,{value:M,children:(0,y.jsx)(C,(0,o.A)({ownerState:k,className:(0,i.A)(B.root,g),as:A,ref:t},I))})}),S=w},8379:(e,t,n)=>{\"use strict\";var r=n(18745),o=n(25397),a=n(91291),i=n(26198),l=n(34598),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=l(\"lastIndexOf\"),p=c||!d;e.exports=p?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=i(t);if(0===n)return-1;var l=n-1;for(arguments.length>1&&(l=s(l,a(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in t&&t[l]===e)return l||0;return-1}:u},8451:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"}),\"ChevronLeft\")},8641:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>w});var r,o=n(98587),a=n(58168),i=n(81970),l=n(75659),s=n(11848),u=n(39770),c=n(74848);const d=[\"children\",\"classes\",\"className\",\"label\",\"notched\"],p=(0,s.Ay)(\"fieldset\",{name:\"MuiNotchedOutlined\",shouldForwardProp:u.A})({textAlign:\"left\",position:\"absolute\",bottom:0,right:0,top:-5,left:0,margin:0,padding:\"0 8px\",pointerEvents:\"none\",borderRadius:\"inherit\",borderStyle:\"solid\",borderWidth:1,overflow:\"hidden\",minWidth:\"0%\"}),f=(0,s.Ay)(\"legend\",{name:\"MuiNotchedOutlined\",shouldForwardProp:u.A})(({ownerState:e,theme:t})=>(0,a.A)({float:\"unset\",width:\"auto\",overflow:\"hidden\"},!e.withLabel&&{padding:0,lineHeight:\"11px\",transition:t.transitions.create(\"width\",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,a.A)({display:\"block\",padding:0,height:11,fontSize:\"0.75em\",visibility:\"hidden\",maxWidth:.01,transition:t.transitions.create(\"max-width\",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:\"nowrap\",\"& > span\":{paddingLeft:5,paddingRight:5,display:\"inline-block\",opacity:0,visibility:\"visible\"}},e.notched&&{maxWidth:\"100%\",transition:t.transitions.create(\"max-width\",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));var g=n(79716),h=n(38086),m=n(71023),v=n(6497),A=n(25669);const y=[\"components\",\"fullWidth\",\"inputComponent\",\"label\",\"multiline\",\"notched\",\"slots\",\"type\"],E=(0,s.Ay)(v.Sh,{shouldForwardProp:e=>(0,u.A)(e)||\"classes\"===e,name:\"MuiOutlinedInput\",slot:\"Root\",overridesResolver:v.WC})(({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return(0,a.A)({position:\"relative\",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},\"@media (hover: none)\":{[`&:hover .${m.A.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${m.A.error} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${m.A.disabled} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,a.A)({padding:\"16.5px 14px\"},\"small\"===t.size&&{padding:\"8.5px 14px\"}))}),b=(0,s.Ay)(function(e){const{className:t,label:n,notched:i}=e,l=(0,o.A)(e,d),s=null!=n&&\"\"!==n,u=(0,a.A)({},e,{notched:i,withLabel:s});return(0,c.jsx)(p,(0,a.A)({\"aria-hidden\":!0,className:t,ownerState:u},l,{children:(0,c.jsx)(f,{ownerState:u,children:s?(0,c.jsx)(\"span\",{children:n}):r||(r=(0,c.jsx)(\"span\",{className:\"notranslate\",children:\"​\"}))})}))},{name:\"MuiOutlinedInput\",slot:\"NotchedOutline\",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.23)\":\"rgba(255, 255, 255, 0.23)\";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_=(0,s.Ay)(v.f3,{name:\"MuiOutlinedInput\",slot:\"Input\",overridesResolver:v.Oj})(({theme:e,ownerState:t})=>(0,a.A)({padding:\"16.5px 14px\"},!e.vars&&{\"&:-webkit-autofill\":{WebkitBoxShadow:\"light\"===e.palette.mode?null:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"light\"===e.palette.mode?null:\"#fff\",caretColor:\"light\"===e.palette.mode?null:\"#fff\",borderRadius:\"inherit\"}},e.vars&&{\"&:-webkit-autofill\":{borderRadius:\"inherit\"},[e.getColorSchemeSelector(\"dark\")]:{\"&:-webkit-autofill\":{WebkitBoxShadow:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"#fff\",caretColor:\"#fff\"}}},\"small\"===t.size&&{padding:\"8.5px 14px\"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),C=i.forwardRef(function(e,t){var n,r,s,u,d;const p=(0,A.b)({props:e,name:\"MuiOutlinedInput\"}),{components:f={},fullWidth:C=!1,inputComponent:w=\"input\",label:S,multiline:T=!1,notched:O,slots:D={},type:R=\"text\"}=p,N=(0,o.A)(p,y),L=(e=>{const{classes:t}=e,n=(0,l.A)({root:[\"root\"],notchedOutline:[\"notchedOutline\"],input:[\"input\"]},m.v,t);return(0,a.A)({},t,n)})(p),P=(0,g.A)(),M=(0,h.A)({props:p,muiFormControl:P,states:[\"color\",\"disabled\",\"error\",\"focused\",\"hiddenLabel\",\"size\",\"required\"]}),x=(0,a.A)({},p,{color:M.color||\"primary\",disabled:M.disabled,error:M.error,focused:M.focused,formControl:P,fullWidth:C,hiddenLabel:M.hiddenLabel,multiline:T,size:M.size,type:R}),I=null!=(n=null!=(r=D.root)?r:f.Root)?n:E,k=null!=(s=null!=(u=D.input)?u:f.Input)?s:_;return(0,c.jsx)(v.Ay,(0,a.A)({slots:{root:I,input:k},renderSuffix:e=>(0,c.jsx)(b,{ownerState:x,className:L.notchedOutline,label:null!=S&&\"\"!==S&&M.required?d||(d=(0,c.jsxs)(i.Fragment,{children:[S,\" \",\"*\"]})):S,notched:void 0!==O?O:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:C,inputComponent:w,multiline:T,ref:t,type:R},N,{classes:(0,a.A)({},L,{notchedOutline:null})}))});C.muiName=\"Input\";const w=C},8676:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>y});var r=n(58168),o=n(98587),a=n(22532),i=n(11317),l=n(58749),s=n(33571);const u=[\"ownerState\"],c=[\"variants\"],d=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function p(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}function f(e,t){return t&&e&&\"object\"==typeof e&&e.styles&&!e.styles.startsWith(\"@layer\")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const g=(0,l.A)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function A(e,t,n){let{ownerState:i}=t,l=(0,o.A)(t,u);const s=\"function\"==typeof e?e((0,r.A)({ownerState:i},l)):e;if(Array.isArray(s))return s.flatMap(e=>A(e,(0,r.A)({ownerState:i},l),n));if(s&&\"object\"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,o.A)(s,c);return e.forEach(e=>{let o=!0;if(\"function\"==typeof e.props?o=e.props((0,r.A)({ownerState:i},l,i)):Object.keys(e.props).forEach(t=>{(null==i?void 0:i[t])!==e.props[t]&&l[t]!==e.props[t]&&(o=!1)}),o){Array.isArray(t)||(t=[t]);const o=\"function\"==typeof e.style?e.style((0,r.A)({ownerState:i},l,i)):e.style;t.push(n?f((0,a.internal_serializeStyles)(o),n):o)}}),t}return n?f((0,a.internal_serializeStyles)(s),n):s}const y=function(e={}){const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:l=p,slotShouldForwardProp:u=p}=e,c=e=>(0,s.A)((0,r.A)({},e,{theme:m((0,r.A)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,s={})=>{(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:g,skipVariantsResolver:y,skipSx:E,overridesResolver:b=v(h(g))}=s,_=(0,o.A)(s,d),C=f&&f.startsWith(\"Mui\")||g?\"components\":\"custom\",w=void 0!==y?y:g&&\"Root\"!==g&&\"root\"!==g||!1,S=E||!1;let T=p;\"Root\"===g||\"root\"===g?T=l:g?T=u:function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96}(e)&&(T=void 0);const O=(0,a.default)(e,(0,r.A)({shouldForwardProp:T,label:void 0},_)),D=e=>\"function\"==typeof e&&e.__emotion_real!==e||(0,i.Q)(e)?o=>{const a=m({theme:o.theme,defaultTheme:n,themeId:t});return A(e,(0,r.A)({},o,{theme:a}),a.modularCssLayers?C:void 0)}:e,R=(o,...a)=>{let i=D(o);const l=a?a.map(D):[];f&&b&&l.push(e=>{const o=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[f]||!o.components[f].styleOverrides)return null;const a=o.components[f].styleOverrides,i={};return Object.entries(a).forEach(([t,n])=>{i[t]=A(n,(0,r.A)({},e,{theme:o}),o.modularCssLayers?\"theme\":void 0)}),b(e,i)}),f&&!w&&l.push(e=>{var o;const a=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));return A({variants:null==a||null==(o=a.components)||null==(o=o[f])?void 0:o.variants},(0,r.A)({},e,{theme:a}),a.modularCssLayers?\"theme\":void 0)}),S||l.push(c);const s=l.length-a.length;if(Array.isArray(o)&&s>0){const e=new Array(s).fill(\"\");i=[...o,...e],i.raw=[...o.raw,...e]}const u=O(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return O.withConfig&&(R.withConfig=O.withConfig),R}}()},8830:(e,t,n)=>{var r=n(43570),o=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):a(e,t)}},8845:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z\"}),\"PictureAsPdf\")},8863:(e,t,n)=>{\"use strict\";e.exports=n.p+\"9a8fa2c80d3f9071674a.svg\"},8995:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).map,a=r.aTypedArray,i=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)(\"map\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(i(e))(t)})})},9023:(e,t,n)=>{\"use strict\";e.exports=n.p+\"6364af07f108ff9f8f08.woff\"},9033:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-in\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:0,doy:6}})}(n(95093))},9250:(e,t,n)=>{var r=n(43570),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},9325:(e,t,n)=>{var r=n(34840),o=\"object\"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function(\"return this\")();e.exports=a},9332:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>ce}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(71543),i=n(60538),l=n(81970),s=n.n(l),u=n(34195),c=n(8085),d=n(99478),p=n(37998),f=n(96348),g=n(47225),h=n(27305),m=n(56254),v=n(43605),A=n(92416),y=n(15664),E=n(21239),b=n(29191),_=n(59615),C=(n(50113),n(42762),n(36874)),w=n(62220),S=n(32027),T=n(78208),O=n(13075),D=n(32112),R=n(70380),N=n(14595),L=n(14073),P=n(6347),M=n(88084),x=n(56203),I=n(64121),k=n(15941),B=n(76906),F=n(96713);function j(e){return j=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},j(e)}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=j(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==j(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=function(e){var t=e.initialForm,n=e.isEditingMode,a=e.isShowParentData,i=e.isShowAdid,l=e.onHandleCancel,u=e.parentHqList,c=e.parentHQ,p=e.portfolioList,f=e.selectedRole,g=e.enableDefaultPortfolio,h=e.getParentHQData,m=e.setPortfolioCode,v=e.hierarchyRole,A=e.setParentHQ,E=e.setParentHqList,b=e.setSelectedRole,_=e.onSubmitHandleClearEndDateConfirmation,C=e.validations,w=e.hasShowPortfolio,S=e.User,T=n&&!(0,d.EB)(S);return s().createElement(M.l1,{initialValues:t,validationSchema:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return k.Ik().shape({role:k.Yj().required(\"Role required\"),portfolio:k.Ik().test(\"portfolio-required\",\"Portfolio required\",function(e){return!(this.parent.showPortfolio&&!e)}),parent_hq_id:k.Ik().test(\"parent-hq-required\",\"Parent HQ required\",function(e){return!(this.parent.isShowParentData&&Number(n)>0&&!e)}),email:k.Yj().email(\"Please enter a valid email\").trim(\"Starting spaces are not allowed\").required(\"Email required\"),firstName:k.Yj().min(3,\"First Name should be atleast 3 characters\").max(30,\"First Name should be a max of 30 characters\").trim(\"Starting spaces are not allowed\").required(\"First Name required\"),lastName:k.Yj().min(1,\"Last Name should be atleast 1 character\").max(30,\"Last Name should be a max of 30 characters\").trim(\"Starting spaces are not allowed\").required(\"Last Name required\"),mobile_number:k.Yj().required(\"Phone Number required\").matches(/^\\d+$/,\"Must be only digits\").min(null==e?void 0:e.phoneLength,\"Phone number should be \".concat(null==e?void 0:e.phoneLength,\" digits\")).max(null==e?void 0:e.phoneLength,\"Phone number should be \".concat(null==e?void 0:e.phoneLength,\" digits\")).trim(\"Starting spaces are not allowed\"),employeeId:k.Yj().nullable().matches(/^[A-Za-z0-9]*$/,\"Special Characters not Allowed\"),startDate:k.Yj().required(\"Start Date required\").test(\"valid-date\",\"Invalid date\",function(e){return!!e&&(0,R.ux)(e,[\"MM/DD/YYYY\",\"MM-DD-YYYY\",\"MM.DD.YYYY\"])}),endDate:k.YO().of(k.Yj()).nullable().test(\"is-valid-date\",\"Invalid Date\",function(e){return console.log(e,\"is-valid-date\"),null==e||!e[1]||!(e&&e.length>0&&(0,R.vd)(null==e?void 0:e[1]))||(0,R.Gc)(null==e?void 0:e[0],null==e?void 0:e[1],\"MM/DD/YYYY\")}),ad_id:t?k.Yj().required(\"ADID required\").matches(/^[a-z0-9._%+-]+@(syngenta\\.org|syngenta\\.in|syngenta\\.com)$/i,\"Please enter a valid ADID\"):k.Yj().nullable()})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({isDisabledEmployeeId:T},C),i,c)},enableReinitialize:!0,onSubmit:_},function(e){var t=e.values,d=e.setFieldValue;return s().createElement(M.lV,{className:\"popupContent\",style:{maxHeight:\"none\"},\"aria-labelledby\":\"form\"},s().createElement(o.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},s().createElement(r.A,{width:\"50%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"ROLE_FIELD\")),s().createElement(M.D0,{name:\"role\"},function(){return s().createElement(I.A,{name:\"role\",onChange:function(e,t){d(\"parent_hq_id\",\"\"),d(\"role\",t.label),t&&\"number\"==typeof t.value&&b(t.value),a&&!w&&h(t.parentId,\"\"),d(\"portfolio\",\"\"),t.parentId||A(\"\"),E([]),t.parentId&&A(t.parentId)},options:v,labelKey:\"label\",label:\"role\",selectedOption:t.role,value:t.role,defaultLabel:(0,x.t)(\"SELECT_ROLE\"),isDisabled:n})}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"role\"}))),t.showPortfolio&&s().createElement(r.A,{width:\"50%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"PORTFOLIO_FIELD\")),s().createElement(M.D0,{name:\"portfolio\"},function(){return s().createElement(I.A,{name:\"portfolio\",onChange:function(e,t){d(\"portfolio\",t),m(t.value),a&&h(c,t.value),Number(null==g?void 0:g.value)!==Number(f)&&d(\"parent_hq_id\",\"\")},options:p,labelKey:\"label\",label:\"portfolio\",selectedOption:t.portfolio,value:t.portfolio,defaultLabel:(0,x.t)(\"SELECT_PORTFOLIO\"),isDisabled:n})}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"portfolio\"})))),a&&c&&s().createElement(F.m,{values:t,parentHqList:u,setFieldValue:d}),s().createElement(o.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"EMAIL_USER\")),s().createElement(M.D0,{name:\"email\",type:\"text\",className:\"\".concat(n?\"inputField disabledInput\":\"inputField\"),onChange:function(e){return d(\"email\",e.target.value)},placeholder:(0,x.t)(\"MAIL_PLACEHOLDER\"),defaultValue:null==t?void 0:t.email,disabled:n}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"email\"})))),i&&s().createElement(o.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},\"\".concat((0,x.t)(\"ADID\"),\" *\")),s().createElement(M.D0,{name:\"ad_id\",type:\"text\",onChange:function(e){return d(\"ad_id\",e.target.value)},disabled:n,className:\"\".concat(n?\"inputField disabledInput\":\"inputField\"),placeholder:(0,x.t)(\"ADID_PLACEHOLDER\"),defaultValue:null==t?void 0:t.ad_id}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"ad_id\"})))),s().createElement(o.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"USER_FIRST_NAME\")),s().createElement(M.D0,{name:\"firstName\",type:\"text\",className:\"inputField\",onChange:function(e){return d(\"firstName\",e.target.value)},placeholder:(0,x.t)(\"FIRST_NAME_PLACEHOLDER\"),defaultValue:null==t?void 0:t.firstName}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"firstName\"}))),s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"USER_LAST_NAME\")),s().createElement(M.D0,{name:\"lastName\",type:\"text\",className:\"inputField\",onChange:function(e){return d(\"lastName\",e.target.value)},placeholder:(0,x.t)(\"LAST_NAME_PLACEHOLDER\"),defaultValue:null==t?void 0:t.lastName}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"lastName\"})))),s().createElement(o.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"USER_PHONE_NO\")),s().createElement(M.D0,{name:\"mobile_number\",type:\"tel\",className:\"inputField\",onChange:function(e){return d(\"mobile_number\",e.target.value)},placeholder:(0,x.t)(\"NUMBER_PLACEHOLDER\"),defaultValue:null==t?void 0:t.mobile_number}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"mobile_number\"}))),s().createElement(r.A,{width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"EMPLOYEE_ID\")),s().createElement(M.D0,{name:\"employeeId\",type:\"text\",className:\"inputField \".concat(T?\"disabledInput\":\"\"),onChange:function(e){return d(\"employeeId\",e.target.value)},placeholder:(0,x.t)(\"EMP_ID_PLACEHOLDER\"),defaultValue:null==t?void 0:t.employeeId,disabled:T}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"employeeId\"})))),s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"USER_START_DATE\")),s().createElement(M.D0,{name:\"startDate\",type:\"text\"},function(){return s().createElement(B.A,{value:t.startDate,defaultValue:t.startDate,handleChangeDatePicker:function(e){d(\"startDate\",e)},disabled:n,minDate:null===R.Ax||void 0===R.Ax?void 0:R.Ax.todayDate})}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"startDate\"}))),s().createElement(r.A,{mb:2,width:\"100%\"},n&&s().createElement(r.A,{\"data-testid\":\"date-picker-wrapper\"},s().createElement(L.A,{variant:\"subtitle2\"},(0,x.t)(\"END_DATE\")),s().createElement(M.D0,{name:\"endDate\"},function(){var e,n;return s().createElement(B.A,{value:null!==(e=null==t||null===(n=t.endDate)||void 0===n?void 0:n[1])&&void 0!==e?e:\"\",handleChangeDatePicker:function(e){d(\"endDate\",[(0,R.Yq)(t.startDate,\"MM/DD/YYYY\"),e])},minDate:R.Ax.todayDate})}),s().createElement(P.A,{error:!0},s().createElement(M.Kw,{name:\"endDate\"}))))),s().createElement(o.A,{direction:\"row\",gap:2,className:\"addUserbtnsBlock\"},s().createElement(y.A,{variant:\"outlined\",buttonName:(0,x.t)(\"CANCEL\"),onButtonClick:l,fullwidth:!1,color:\"secondary\"}),s().createElement(y.A,{variant:\"contained\",buttonName:n?(0,x.t)(\"UPDATE\"):(0,x.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))})};function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const V=function(e){var t,n,o=e.isDrawerOpen,a=void 0!==o&&o,i=e.onRequestClose,p=void 0===i?function(){}:i,f=e.isEditingMode,h=void 0!==f&&f,m=e.selectedRowItem,v=e.smartAgroBaseUrl,A=e.authenticationToken,y=e.userDetails,E=e.selectedCountry,b=e.selectedBusinessUnits,_=e.triggerToast,L=void 0===_?function(){}:_,P=e.triggerShowLoader,M=void 0===P?function(){}:P,x=e.countryAppId,I=(0,l.useContext)(g.v).BackOfficeProps,k=I.baseurl,B=I.globalStore.User,F=(0,S.i)(B).hasShowPortfolio,j=G((0,l.useState)(!1),2),H=j[0],U=j[1],z=G((0,l.useState)(\"0\"),2),V=z[0],q=z[1],W=G((0,l.useState)(!1),2),Q=W[0],K=W[1],$=G((0,l.useState)(!1),2),X=$[0],J=$[1],Z=G((0,l.useState)(!1),2),ee=Z[0],te=Z[1],ne=G((0,l.useState)({}),2),re=ne[0],oe=ne[1],ae=G((0,l.useState)({}),2),ie=ae[0],le=ae[1],se=G((0,l.useState)(\"\"),2),ue=se[0],ce=se[1],de=G((0,l.useState)(),2),pe=de[0],fe=de[1],ge={role:\"\",portfolio:\"\",showPortfolio:F,email:\"\",firstName:\"\",lastName:\"\",mobile_number:\"\",employeeId:\"\",startDate:\"\",endDate:\"\",parent_hq_id:\"\",isShowParentData:H,ad_id:\"\"},he=G((0,l.useState)(ge),2),me=he[0],ve=he[1],Ae=G((0,l.useState)([]),2),ye=Ae[0],Ee=Ae[1],be=G((0,l.useState)([]),2),_e=be[0],Ce=be[1],we=G((0,l.useState)([]),2),Se=we[0],Te=we[1],Oe=G((0,l.useState)(0),2),De=Oe[0],Re=Oe[1],Ne=G((0,l.useState)({}),2),Le=Ne[0],Pe=Ne[1],Me=(0,u.Bd)().t;(0,l.useEffect)(function(){var e;e={moduleName:d.Rk.USER_MODULE_NAME,keys:[d.Rk.ADMIN_ENABLE_ADID,d.Rk.ENABLE_DEFAULT_PORTFOLIO_PARENT_POPULATION_SALES_HIERARCHY_ID],apiName:d.Rk.ADID_CONFIGURATION},(0,T.j)((0,O.rZ)(B,k),M,e).then(function(e){var t;K(\"true\"===(null===(t=(0,O.Ws)(d.Rk.ADMIN_ENABLE_ADID,e))||void 0===t?void 0:t.value)),fe((0,O.Ws)(d.Rk.ENABLE_DEFAULT_PORTFOLIO_PARENT_POPULATION_SALES_HIERARCHY_ID,e))}).catch(function(e){}),(0,w.AI)(B,k,M).then(function(e){var t;U(\"true\"===(null==e||null===(t=e.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.value))}).catch(function(e){}),Be(),(0,w.Hh)(B,k,M).then(function(e){Pe(null==e?void 0:e.data)}).catch(function(e){})},[]),(0,l.useEffect)(function(){if(null!=ye&&ye.length&&null!=pe&&pe.value){var e,t=null==ye||null===(e=ye.find(function(e){return(null==e?void 0:e.label)===(null==m?void 0:m.sales_hierarchy_name)}))||void 0===e?void 0:e.parentId;F&&t&&ue?xe(t,ue):!F&&t&&xe(t,\"\")}},[ye,ue,pe]);var xe=function(e,t){(0,w.w3)(B,k,M,\"\".concat(e),Number(null==pe?void 0:pe.value)===Number(De||(null==m?void 0:m.sales_hierarchy_id))?\"DEFAULT\":t).then(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{value:null==e?void 0:e.id,label:null==e?void 0:e.name}});Te(n)}).catch(function(e){})};(0,l.useEffect)(function(){De&&F&&je()},[De,F]);var Ie=function(){!function(){var e,t=_e.find(function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.portfolio_code)}),n=null==Se?void 0:Se.find(function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.parent_hq_id)}),r=null==ye||null===(e=ye.find(function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.sales_hierarchy_id)}))||void 0===e?void 0:e.parentId;q(r),ce(null==m?void 0:m.portfolio_code),ve({role:null==m?void 0:m.sales_hierarchy_name,showPortfolio:F,portfolio:{id:(null==t?void 0:t.id)||0,label:(null==t?void 0:t.label)||\" \",value:(null==t?void 0:t.value)||\" \"},firstName:null==m?void 0:m.first_name,lastName:null==m?void 0:m.last_name,email:null==m?void 0:m.email_id,mobile_number:null==m?void 0:m.mobile_number,employeeId:null==m?void 0:m.employee_id,startDate:(0,R.Yq)(null==m?void 0:m.start_date,\"MM/DD/YYYY\",\"YYYY-MM-DD\"),endDate:null!=m&&m.end_date?[(0,R.Yq)(null==m?void 0:m.start_date,\"MM-DD-YYYY\"),(0,R.Yq)(null==m?void 0:m.end_date,\"MM-DD-YYYY\")]:\"\",parent_hq_id:n,isShowParentData:H,ad_id:null==m?void 0:m.ad_id}),Re(null==m?void 0:m.sales_hierarchy_id)}()},ke=function(){ve(ge)};(0,l.useEffect)(function(){(h?Ie:ke)()},[m,h,_e,Se,H,ye]);var Be=function(){var e,t={};return t.domain=v,t.endPoint=c.p.GET_ROLE_HIERARCHY,t.customHeaders={\"country-code\":null==E?void 0:E.countryCode,\"role-id\":null==b||null===(e=b.userRoleControls)||void 0===e?void 0:e.roleId,\"bu-id\":null==b?void 0:b.bu_id,Authorization:\"Bearer \".concat(A)},t.triggerLoader=M,(0,w.MC)(t).then(function(e){if(e){var t=Array.isArray(e)&&e.length>0&&e.map(function(e){return{label:e.name,value:e.id,parentId:e.parentId}});Ee(t)}}).catch(function(e){})},Fe=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"DEFAULT\",r=null==_e?void 0:_e.filter(function(e){return(null==e?void 0:e.value)==n});return null!==(e=null==r||null===(t=r[0])||void 0===t?void 0:t.id)&&void 0!==e?e:null},je=function(){var e={};return e.domain=v,e.endPoint=c.p.GET_PORTFOLIOS_LIST_BY_ROLE_AUTH,e.customHeaders={\"country-code\":null==E?void 0:E.countryCode,\"role-id\":De,\"bu-id\":null==b?void 0:b.bu_id,Authorization:\"Bearer \".concat(A)},e.triggerLoader=M,(0,w.Q2)(e).then(function(e){if(null!=e&&e.data){var t,n,r=Array.isArray(null==e?void 0:e.data)&&(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0?null==e||null===(n=e.data)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}}):[];Ce(r)}}).catch(function(e){})},He=function(e){var t,n,r,o,a,i,l,s,u,d,f=c.p.UPDATE_USER_DATA.replace(\"__ID__\",\"\".concat(null==m?void 0:m.user_uuid)),g={};g.endPoint=f,g.domain=v,g.customHeaders={\"country-code\":\"\".concat(E.countryCode),\"user-id\":y.user_id,\"bu-id\":b.bu_id,Authorization:\"Bearer \".concat(A)},g.triggerLoader=M;var h={country_app_id:x,sales_hierarchy_id:null==m?void 0:m.sales_hierarchy_id,first_name:null==e?void 0:e.firstName,last_name:null==e?void 0:e.lastName,mobile_number:null==e?void 0:e.mobile_number,end_date:null!=e&&null!==(t=e.endDate)&&void 0!==t&&t[1]?(0,R.Yq)(null==e||null===(n=e.endDate)||void 0===n?void 0:n[1],\"YYYY-MM-DD\"):null,email_id:null==e?void 0:e.email.trim(),employee_id:null!=e&&null!==(r=e.employeeId)&&void 0!==r&&r.length?null==e?void 0:e.employeeId:null,portfolio_id:Fe(null!==(o=null==e||null===(a=e.portfolio)||void 0===a?void 0:a.value)&&void 0!==o?o:\"DEFAULT\"),portfolio_code:null!==(i=null==e||null===(l=e.portfolio)||void 0===l?void 0:l.value)&&void 0!==i?i:\"DEFAULT\",parent_hq_id:null!==(s=null==e||null===(u=e.parent_hq_id)||void 0===u?void 0:u.value)&&void 0!==s?s:null,ad_id:null!=e&&null!==(d=e.ad_id)&&void 0!==d&&d.length?null==e?void 0:e.ad_id:null};return g.payLoad=h,Ue((0,w.DG)(g),function(){return p(!0)})},Ue=function(e,t){return null==e?void 0:e.then(function(e){var n;200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status)?(L({message:e.data,type:\"success\"}),t()):L({message:null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage,type:\"error\"})}).catch(function(e){var t;L({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},Ye=function(){p(!0)},Ge=function(e){!function(e){var t;(null==m?void 0:m.parent_hq_id)!==(null==e||null===(t=e.parent_hq_id)||void 0===t?void 0:t.value)&&null!=m&&m.parent_hq_id?(le(e),J(!0)):He(e)}(e)},ze=function(e){!function(e){var t,n,r,o,a,i,l,s,u={};u.domain=v,u.endPoint=c.p.USERS_DATA,u.customHeaders={\"country-code\":\"\".concat(E.countryCode),\"user-id\":y.user_id,\"bu-id\":b.bu_id,Authorization:\"Bearer \".concat(A)},u.triggerLoader=M;var d={country_app_id:x,sales_hierarchy_id:De,first_name:null==e?void 0:e.firstName.trim(),last_name:null==e?void 0:e.lastName.trim(),email_id:null==e?void 0:e.email.trim(),mobile_number:null==e?void 0:e.mobile_number.trim(),employee_id:null!=e&&null!==(t=e.employeeId)&&void 0!==t&&t.length?null==e?void 0:e.employeeId:null,portfolio_id:Fe(null!==(n=null==e||null===(r=e.portfolio)||void 0===r?void 0:r.value)&&void 0!==n?n:\"DEFAULT\"),portfolio_code:null!==(o=null==e||null===(a=e.portfolio)||void 0===a?void 0:a.value)&&void 0!==o?o:\"DEFAULT\",start_date:(0,R.Yq)(null==e?void 0:e.startDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\"),parent_hq_id:null!==(i=null==e||null===(l=e.parent_hq_id)||void 0===l?void 0:l.value)&&void 0!==i?i:null,ad_id:null!=e&&null!==(s=e.ad_id)&&void 0!==s&&s.length?null==e?void 0:e.ad_id:null};u.payLoad=d,Ue((0,w.Ti)(u),function(){return p(!0)})}(e)},Ve=function(e){(h?Ge:ze)(e)};return s().createElement(C.A,{isDrawerOpen:a,anchor:\"right\"},s().createElement(r.A,{className:\"popupMain \"},s().createElement(N.A,{text:Me(h?\"EDIT_USER\":\"ADD_USER\"),onClose:function(){return p(!1)},dataTestId:\"onRequestClose\"}),s().createElement(Y,{initialForm:me,hasShowPortfolio:F,isEditingMode:h,isShowParentData:H,isShowAdid:Q,onHandleCancel:Ye,parentHqList:Se,parentHQ:V,portfolioList:_e,selectedRole:De,enableDefaultPortfolio:pe,getParentHQData:xe,setPortfolioCode:ce,hierarchyRole:ye,setParentHQ:q,setParentHqList:Te,setSelectedRole:Re,onSubmitHandleClearEndDateConfirmation:function(e){var t;null!=m&&m.end_date&&\"\"==(null==e||null===(t=e.endDate)||void 0===t?void 0:t[1])?(te(!0),oe(e)):Ve(e)},validations:Le,User:B}),X&&s().createElement(D.R,{isVisible:X,message:d.JS.CHANGE_PARENT_CONFIRMATION_POPUP,onSave:function(){return He(ie)},onRequestClose:function(){return J(!1)}}),ee&&s().createElement(D.R,{isVisible:ee,message:d.JS.CLEAR_END_DATE_ACTIVE_USER_CONFIRMATION_POPUP,onSave:function(){return Ve(re)},onRequestClose:function(){te(!1),Ye()},primaryBtnName:null!==(t=Me(\"PROCEED\"))&&void 0!==t?t:\"\",secondaryBtnName:null!==(n=Me(\"CANCEL\"))&&void 0!==n?n:\"\"})))};var q=n(27776);function W(e){return W=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},W(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=W(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==W(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=function(e){var t=e.isFilterOpen,n=e.onRequestClose,a=e.initialValues,i=e.validationSchema,l=e.onSubmit,u=e.onReset,c=e.renderFields,d=e.t,p=e.isFloating,f=void 0!==p&&p,g=e.getDisabled,h=e.stackProps,m=void 0===h?{}:h,v=K(K({},{direction:\"row\",justifyContent:\"end\",gap:2,mb:2}),m);return s().createElement(r.A,null,s().createElement(C.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},s().createElement(r.A,{p:3,className:f?\"floating-filter-wrapper\":\"\"},s().createElement(M.l1,{initialValues:a,validationSchema:i,enableReinitialize:!0,onSubmit:l},function(e){var t=e.values,a=e.setFieldValue;return s().createElement(M.lV,{className:\"popupContent \".concat(f?\"floating-filter\":\"\")},c(t,a),s().createElement(o.A,v,s().createElement(r.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},s().createElement(y.A,{variant:\"outlined\",\"data-testid\":\"reset-filter-button\",buttonName:d(\"CLEAR_FILTERS\"),onButtonClick:u,fullwidth:!1,color:\"primary\"}),s().createElement(y.A,{variant:\"contained\",buttonName:d(\"APPLY_FILTERS\"),fullwidth:!1,disabled:!!g&&g(t),color:\"primary\",type:\"submit\"}))),s().createElement(r.A,{onClick:n,className:\"smart-agro-lite-filter-cross\",\"data-testid\":\"close-filter-button\"},s().createElement(L.A,{className:\"icon-close closeIcon\"})))}))))};var J=n(6064);const Z=function(e){var t=e.values,n=e.setFieldValue,a=e.hierarchyRole,i=e.setSelectedRole,l=e.setSelectedStatus,c=(0,u.Bd)().t;return s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"start\",gap:7},s().createElement(r.A,{width:\"30%\"},s().createElement(L.A,{variant:\"subtitle2\"},c(\"USER_ROLE\")),s().createElement(M.D0,{name:\"userRole\"},function(){return s().createElement(I.A,{name:\"userRole\",onChange:function(e,t){n(\"userRole\",t.label),i(t)},options:a,labelKey:\"label\",label:\"userRole\",selectedOption:t.userRole,value:t.userRole,defaultLabel:c(\"SELECT_ROLE\")})})),s().createElement(J.A,{values:t,setFieldValue:n,setSelectedStatus:l}))};function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ne=function(e){var t,n,r=e.isDrawerOpen,o=void 0!==r&&r,a=e.onRequestClose,i=void 0===a?function(){}:a,d=e.smartAgroBaseUrl,p=e.authenticationToken,f=(e.userId,e.triggerToast,e.triggerShowLoader),g=void 0===f?function(){}:f,h=e.setFilters,m=e.setFilterStatus,v=e.selectedCountry,A=e.selectedBusinessUnits,y=e.selectedFilter,E=e.selectedFilterStatus,b=ee((0,l.useState)({userRole:null!==(t=null==y?void 0:y.label)&&void 0!==t?t:\"\",status:null!==(n=null==E?void 0:E.label)&&void 0!==n?n:\"\"}),2),_=b[0],C=b[1],S=ee((0,l.useState)([]),2),T=S[0],O=S[1],D=ee((0,l.useState)(y),2),R=D[0],N=D[1],L=ee((0,l.useState)(E),2),P=L[0],M=L[1],x=(0,u.Bd)().t;return(0,l.useEffect)(function(){var e;(e={}).domain=d,e.endPoint=c.p.GET_ROLE_HIERARCHY,e.customHeaders={\"country-code\":null==v?void 0:v.countryCode,\"role-id\":null,\"bu-id\":null==A?void 0:A.bu_id,Authorization:\"Bearer \".concat(p)},e.triggerLoader=g,(0,w.MC)(e).then(function(e){if(e){var t=Array.isArray(e)&&e.length>0&&e.map(function(e){return{label:e.name,value:e.id}});O(t)}}).catch(function(){})},[]),s().createElement(X,{isFilterOpen:o,onRequestClose:function(){return i(!1)},initialValues:_,validationSchema:null,onSubmit:function(e){h(R),m(P),i(!0)},onReset:function(){h({}),m({}),C({userRole:\"\",status:\"\"}),N({}),M({}),i(!0)},renderFields:function(e,t){return s().createElement(Z,{values:e,setFieldValue:t,hierarchyRole:T,setSelectedRole:N,setSelectedStatus:M})},t:x,stackProps:{direction:\"row\",justifyContent:\"end\",gap:1,p:1,mt:2,alignItems:\"center\"}})};var re=n(33722);function oe(e){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oe(e)}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function le(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ce=function(e){var t,n,C=e.RBACControls,T=(0,h.w)(C),O=T.hasCreateAccess,N=T.hasUpdateAccess,L=(0,l.useContext)(g.v),P=L.BackOfficeProps,M=P.baseurl,I=P.globalStore.User,k=I.AccessToken,B=I.UserDetails,F=I.selectedCountry,j=I.selectedBusinessUnit,H=I.selectedApplication,U=L.triggerShowLoader,Y=L.triggerToastMsg,G=(0,l.useContext)(g.v).BackOfficeProps.globalStore.User,z=(0,S.i)(G),W=z.hasShowPortfolio,Q=z.hasPortfolioCode,K=z.hasPortfolioEnable,$=se((0,l.useState)({searchValue:\"\",pageNo:0,pageSize:10,sortBy:\"\",sortOrder:\"\",sales_hierarchy_Role_Id:0}),2),X=$[0],J=$[1],Z=se((0,l.useState)([]),2),ee=Z[0],te=Z[1],oe=se(s().useState(d.T3),2),ae=oe[0],le=oe[1],ue=se((0,l.useState)(!1),2),ce=ue[0],de=ue[1],pe=se((0,l.useState)(!1),2),fe=pe[0],ge=pe[1],he=se((0,l.useState)({}),2),me=he[0],ve=he[1],Ae=se((0,l.useState)(!1),2),ye=Ae[0],Ee=Ae[1],be=se(s().useState(null),2),_e=be[0],Ce=be[1],we=se(s().useState(null),2),Se=we[0],Te=we[1],Oe=se((0,l.useState)(!1),2),De=Oe[0],Re=Oe[1],Ne=se((0,l.useState)(!1),2),Le=Ne[0],Pe=Ne[1],Me=se((0,l.useState)(1),2),xe=Me[0],Ie=Me[1],ke=se((0,l.useState)(0),2),Be=ke[0],Fe=ke[1],je=X.searchValue,He=X.pageNo,Ue=X.pageSize,Ye=(0,u.Bd)().t,Ge=function(){var e,t=function(){var e,t={};return t.domain=M,t.endPoint=c.p.USERS_DATA,t.customHeaders={\"country-code\":F.countryCode,\"user-id\":B.user_id,\"role-type-name\":B.role_type_details.role_type_name,\"bu-id\":j.bu_id,\"role-id\":null==j||null===(e=j.userRoleControls)||void 0===e?void 0:e.roleId,Authorization:\"Bearer \".concat(k)},t.payLoad={page_no:He,page_size:Ue,filter_by_sales_hierarchy_id:null!=_e&&_e.value?Number(_e.value):null,is_status_active:Se?Se.value:null},!W&&K&&(t.payLoad[\"portfolio-code\"]=Q),je&&(t.payLoad.search_key=je.toLocaleLowerCase()),ae&&(t.payLoad.sort_order=\"1\"===ae?\"asc\":\"desc\"),t.triggerLoader=U,t}();return null===(e=(0,w.FG)(t))||void 0===e?void 0:e.then(function(e){var t=1;(null==e?void 0:e.total_elements)>Ue&&(t=Math.ceil((null==e?void 0:e.total_elements)/Ue)),Ie(t),Fe(null==e?void 0:e.total_elements);var n=e.user_view_details_list;if(n.length>0){var r=function(e){return e.map(function(e){return{userId:e.user_id,email:e.email_id,name:e.user_name,role:e.sales_hierarchy_name,startDate:e.start_date?(0,R.Yq)(e.start_date,\"DD MMM YYYY\"):\"NA\",status:e.is_active?\"Active\":\"InActive\",endDate:e.end_date?(0,R.Yq)(e.end_date,\"DD MMM YYYY\"):\"NA\",employee_id:null==e?void 0:e.employee_id,mobile_number:null==e?void 0:e.mobile_number}})}(n);te(r)}else te([])}).catch(function(e){console.log(\"USER DATA LIST ERR\",e)})},ze=function(e){var t,n=c.p.GET_USERS_DATA_BY_ID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.userId)),r={};return r.endPoint=n,r.domain=M,r.customHeaders={\"country-code\":F.countryCode,\"user-id\":B.user_id,\"bu-id\":j.bu_id,\"role-id\":null,Authorization:\"Bearer \".concat(k)},r.triggerLoader=U,null===(t=(0,w.FG)(r))||void 0===t?void 0:t.then(function(e){e&&(de(!0),ge(!0),ve(e))}).catch(function(e){console.log(\"ERR on GetSalesHier \".concat(e))})},Ve=function(e){Pe(!0),ve(e)};return(0,l.useEffect)(function(){Ge()},[je,ae,He,Ue,_e,Se,ye]),s().createElement(q.T,null,s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,null,s().createElement(A.A,{routePathName:[{name:f.F_.UserManagement,path:f.fp.UserManagement},{name:f.F_.Users,path:f.fp.Users}]})),s().createElement(r.A,null,s().createElement(E.A,{onSearchValueChange:function(e){return J(function(t){return ie(ie({},t),{},{searchValue:e,pageNo:0})})},placeholderText:Ye(\"SEARCH\"),searchValue:\"\",searchBasedOn:Ye(\"USERS_SEARCH\")}))),s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(b.A,{menuItemData:[5,20,100],onHandleChange:function(e){J(function(t){return ie(ie({},t),{},{pageNo:0,pageSize:Number(e)})})},selectedItem:Ue}),s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mb:2,gap:2},s().createElement(y.A,{className:null!=_e&&_e.label||null!=Se&&Se.label?\"button-with-dot\":\"\",buttonName:Ye(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){Re(!0)},disabled:!O}),s().createElement(a.A,{orientation:\"vertical\",flexItem:!0}),s().createElement(_.A,{onSort:function(e){return le(null==e?void 0:e.toString())},sortBy:ae,showLastUpdatedOn:!0}),s().createElement(y.A,{variant:\"contained\",buttonName:Ye(\"ADD_USER\"),onButtonClick:function(){de(!0)},fullwidth:!1,color:\"primary\",disabled:!O}))),s().createElement(i.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(v.A,{rows:ee,columnDefs:p.sE,frameworkComponents:{EditActionComponent:function(e){return function(e){var t=e.column,n=e.data,r=e.hasUpdateAccess,o=e.getUserDetailsById,a=e.showConfirmationPopupOnClearEndDateFun;if(\"Active\"==(null==n?void 0:n.status)){var i,l={edit:{label:(0,x.t)(\"EDIT\"),className:\"smart-agro-lite-green-label\"}},u=null!=t&&t.colId&&null!==(i=l[t.colId])&&void 0!==i&&i.label?l[t.colId].label:(0,x.t)(\"EDIT\");return s().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button \".concat(r?\"\":\"disabled-label\"),onKeyDown:function(){},onClick:function(){r&&\"function\"==typeof o&&o(n)}},u)}return s().createElement(re.A,{column:t,data:n,updateEndDate:a})}(ie(ie({},e),{},{hasUpdateAccess:N,getUserDetailsById:ze,showConfirmationPopupOnClearEndDateFun:Ve}))}}})),s().createElement(m.A,{totalPageCount:xe,totalElements:Be,onPageChange:function(e){J(function(t){return ie(ie({},t),{},{pageNo:Number(e)})})}}),ce&&s().createElement(V,{isDrawerOpen:ce,onRequestClose:function(e){de(!1),e&&Ge(),ge(!1),ve({})},isEditingMode:fe,selectedRowItem:me,smartAgroBaseUrl:M,authenticationToken:k,userDetails:B,selectedCountry:F,selectedBusinessUnits:j,triggerToast:Y,triggerShowLoader:U,countryAppId:H.country_app_id}),De&&s().createElement(ne,{isDrawerOpen:De,onRequestClose:function(e){Re(!1)},smartAgroBaseUrl:M,authenticationToken:k,userDetails:B,selectedCountry:F,selectedBusinessUnits:j,triggerToast:Y,triggerShowLoader:U,setFilters:function(e){e&&(Ce(e),J(function(e){return ie(ie({},e),{},{pageNo:0,pageSize:10})}))},setFilterStatus:function(e){e&&Te(e)},selectedFilter:_e,selectedFilterStatus:Se}),s().createElement(D.R,{message:d.JS.CLEAR_END_DATE_USER_CONFIRMATION_POPUP,isVisible:Le,onRequestClose:function(){return Pe(!1)},onSave:function(){return function(e){Pe(!1);var t={isMDOUser:!1,country_app_id:H.country_app_id,bu_id:j.bu_id,email_id:null==e?void 0:e.email,mobile_number:null==e?void 0:e.mobile_number,employee_id:null==e?void 0:e.employee_id,user_uuid:null==e?void 0:e.userId};(0,w.To)(G,M,U,t).then(function(e){e&&null!=e&&e.statusCode&&(Ee(function(e){return!e}),Y({message:e.message,type:\"success\"}))}).catch(function(e){U(!1),Y({message:e.message,type:\"error\"})})}(me)},primaryBtnName:null!==(t=Ye(\"PROCEED\"))&&void 0!==t?t:\"\",secondaryBtnName:null!==(n=Ye(\"CANCEL\"))&&void 0!==n?n:\"\"})))}},9376:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Y}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(21699),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(28161),a=n(81970),i=n.n(a),l=n(47767),s=n(96348),u=n(47225),c=n(13075),d=n(92416),p=n(46374),f=n(7318),g=n(56203),h=(n(48598),n(3362),n(9391),n(25440),n(14073)),m=n(34195),v=n(96790),A=n(8085),y=n(34358),E=n(98752),b=n(15664),_=n(27386),C=n(50275),w=(n(60739),n(95692)),S=function(e){var t,n,r;return{\"country-code\":null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode,\"bu-id\":null==e||null===(n=e.selectedBusinessUnit)||void 0===n?void 0:n.bu_id,Authorization:\"Bearer \".concat(null!==(r=null==e?void 0:e.AccessToken)&&void 0!==r?r:\"\")}},T=n(11848),O=n(17630),D=(0,T.Ay)(o.A)(function(){return{\"& .inputs-cards\":{marginBottom:O.w.spacing(2),borderRadius:O.w.spacing(.5),backgroundColor:O.w.palette.secondary.main,\"& .cards-header-wrapper\":{whiteSpace:\"nowrap\",color:O.w.palette.grey[400],\"& .round-badge\":{width:\"30px\",height:\"30px\",textAlign:\"center\",borderRadius:\"50px\",padding:\"3px\",fontWeight:\"500\",fontSize:\"14px\",color:O.w.palette.grey[400],backgroundColor:\"#DFFBE8\"}},\"& .input-card-body\":{padding:\"16px\",borderTop:\"1px solid \".concat(O.w.palette.secondary.light)}},\" & .inputboxes-wrapper\":{height:\"calc(100vh - 360px)\"},\"& .clickable-text\":{cursor:\"pointer\"},\"& .file-custom-label\":{minWidth:\"250px\",width:\"auto !important\"}}});function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e){var t=e.tabName,n=(0,a.useContext)(u.v),d=n.BackOfficeProps,p=d.globalStore.User,f=d.baseurl,g=n.triggerShowLoader,T=n.triggerToastMsg,O=f,N=(0,m.Bd)().t,L=(0,l.Zp)(),P=R((0,a.useState)(null),2),M=P[0],x=P[1],I=R((0,a.useState)(\"\"),2),k=I[0],B=I[1],F=function(e){return g(!0),(0,y.Ti)(function(e){var n,r;return\"emptyTemplate\"===e?n=t?\"\".concat(O).concat(A.p.DOWNLOAD_HOLIDAY_EMPTY_TEMPLATE):\"\".concat(O).concat(A.p.DOWNLOAD_DISTRIBUTOR_EMPTY_TEMPLATE):\"holidayList\"===e?n=\"\".concat(O).concat(A.p.DOWNLOAD_HOLIDAY_DATA_TEMPLATE):\"distributorList\"===e&&(n=\"\".concat(O).concat(A.p.DOWNLOAD_DISTRIBUTOR_DATA_TEMPLATE,\"?shouldIncludeData=\").concat(!0)),{baseUrl:n,options:{headers:(r=S(p),r[\"Content-Type\"]=v.LG.octet_stream,r)}}}(e)).then(function(e){var t=(0,c.mN)(e);if(!t){var n=(new TextDecoder).decode(null==e?void 0:e.data),r=JSON.parse(n);T({message:null==r?void 0:r.errorMessage,type:\"error\"})}t&&T({message:e.data,type:\"success\"})}).catch(function(e){T({message:N(\"DOWNLOAD_FAILED\"),type:\"error\"})}).finally(function(){g(!1)})},j=function(e){var t=e.name.split(\".\").pop(),n=(null==e?void 0:e.name.split(\".\").slice(0,-1).join(\".\")).replace(/[^a-zA-Z0-9]/g,\"-\");return new File([e],\"\".concat(n,\".\").concat(t),{type:e.type})};return(0,a.useEffect)(function(){x(null)},[t]),i().createElement(D,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mb:3.25,mt:2},i().createElement(b.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:N(t?\"DOWNLOAD_HOLIDAYS_LIST\":\"DOWNLOAD_DISTRIBUTOR_LIST\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){F(t?\"holidayList\":\"distributorList\")}})),i().createElement(o.A,{className:\"inputboxes-wrapper\"},i().createElement(o.A,{className:\"inputs-cards\"},i().createElement(o.A,{className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(h.A,{component:\"span\",className:\"round-badge\"},\"1\"),i().createElement(h.A,{variant:\"h6\",fontSize:14,fontWeight:500},N(\"DOWNLOAD_TEMEPLATE\")),i().createElement(b.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:N(\"TEMPLATE\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return F(\"emptyTemplate\")}})))),i().createElement(o.A,{className:\"inputs-cards\"},i().createElement(o.A,{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2,className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(h.A,{component:\"span\",className:\"round-badge\"},\"2\"),i().createElement(h.A,{variant:\"h6\",fontSize:14,fontWeight:500},N(\"UPLOAD_FILE\")))),i().createElement(o.A,{className:\"input-card-body\"},i().createElement(_.A,{onUploadSuccess:function(e){!function(e){B(!1);var t=e[0];x(t)}(e)},selectedFile:M,onRemoveHandler:function(){return x(null)}}),k&&i().createElement(h.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},k)))),i().createElement(r.A,{direction:\"row\",gap:2,justifyContent:\"end\"},i().createElement(b.A,{variant:\"outlined\",buttonName:N(\"CANCEL\"),onButtonClick:function(){return L(\"/\".concat(s.fp.SmartAgro))},fullwidth:!1,color:\"secondary\"}),i().createElement(b.A,{variant:\"contained\",buttonName:N(\"SUBMIT\"),fullwidth:!1,color:\"primary\",onButtonClick:t?function(){var e;M?(0,E.TC)(M.name)?(g(!0),null===(e=function(e,t,n,r){var o,a={};a.domain=t,a.endPoint=A.p.UPLOAD_HOLIDAY_TEMPLATE,a.customHeaders=S(e),a.customHeaders[\"user-id\"]=null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id;var i=function(e){var t=new FormData;return t.append(\"file\",e),t.append(\"data\",JSON.stringify(e)),t}(r);return a.payLoad=i,a.triggerLoader=n,new Promise(function(e,t){var n;null===(n=w.N.uploadFile(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})})}(p,f,g,M))||void 0===e||e.then(function(e){g(!1);var t=(0,c.mN)(e);if(t||T({message:N(\"HOLIDAY_UPLOAD_FAILED\"),type:\"error\"}),t)return x(null),void T({message:e.data,type:\"success\"});throw new Error(N(\"ERROR_IN_HOLIDAYTEMPLATE\"))}).catch(function(e){g(!1),T({message:e.message,type:\"error\"})})):B(N(\"VALID_FILE_ERROR\")):B(N(\"UPLOAD_CONDITION_TEXT\"))}:function(){if(M){if((0,E.TC)(M.name))return function(){var e={};e.domain=f,e.endPoint=A.p.UPLOAD_DISTRIBUTOR_TEMPLATE,e.customHeaders={\"country-code\":\"\".concat(p.selectedCountry.countryCode),Authorization:\"Bearer \".concat(p.AccessToken)};var t=j(M);return e.payLoad={file_name:t.name},e.triggerLoader=g,(0,C.dw)(e).then(function(e){return e}).catch(function(e){return console.log(\"PRE SIGNED URL API FAILED\",e)})}().then(function(e){g(!0);var t=j(M);return(0,y.i3)(e,t).then(function(e){g(!1),(0,c.mN)(e)&&\"OK\"===e.statusText?(T({message:N(\"SUCCESS_TOAST_MSG\"),type:\"success\"}),x(null)):T({message:N(\"FAILURE_TOAST_MSG\"),type:\"error\"})}).catch(function(e){g(!1),T({message:N(\"FAILURE_TOAST_MSG\"),type:\"error\"})})}).catch(function(e){g(!1),T({message:N(\"FAILURE_TOAST_MSG\"),type:\"error\"})});B(\"\".concat(N(\"VALID_FILE_ERROR\")))}else B(\"\".concat(N(\"UPLOAD_CONDITION_TEXT\")))}})))};var P=n(99478),M=n(37998),x=n(21770);const I=function(){return i().createElement(x.A,{bulkUploadModuleTypes:[P.wb.HOLIDAY,P.wb.DISTRIBUTORS],tableHeaders:M.u2})};var k=[{id:1,tabName:(0,g.t)(\"HOLIDAY_UPLOAD\"),path:s.fp.Holiday_Upload,component:i().createElement(L,{tabName:!0}),queryParam:{tabname:s.fp.Holiday_Upload}},{id:2,tabName:(0,g.t)(\"DISTRIBUTOR_UPLOAD\"),path:s.fp.distributor_Upload,component:i().createElement(L,{tabName:!1}),queryParam:{tabname:s.fp.distributor_Upload}},{id:3,tabName:(0,g.t)(\"MY_UPLOADS\"),path:s.fp.Uploads_ErrorLog,component:i().createElement(I,null),queryParam:{tabname:s.fp.Uploads_ErrorLog}}];function B(e){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},B(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==B(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Y=function(){var e,t,n=(0,l.Zp)(),g=(0,l.zy)(),h=(0,a.useContext)(u.v).BackOfficeProps.globalStore.User,m=null==h?void 0:h.selectedCountry.countryCode,v=new URLSearchParams(g.search).get(\"tabname\"),A=(e=i().useState({tablist:k,currentTabs:s.fp.Holiday_Upload}),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),y=A[0],E=A[1],b={PK:[s.fp.distributor_Upload],PH:[s.fp.distributor_Upload],BD:[s.fp.distributor_Upload]};(0,a.useEffect)(function(){var e=k.filter(function(e){return!(m in b&&b[m].includes(e.path))});v&&E(function(t){return j(j({},t),{},{tablist:e,currentTabs:v||t.currentTabs})})},[v]),(0,a.useEffect)(function(){var e=function(){n(\"/\".concat(s.fp.SmartAgro))};return window.addEventListener(\"popstate\",e),function(){window.removeEventListener(\"popstate\",e)}},[n]);var _=(0,a.useCallback)(function(){return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:v?\"\".concat(v).concat(g.search):\"\".concat(s.fp.Holiday_Upload,\"/?\").concat((0,c.Nr)({tabname:null!=v?v:s.fp.Holiday_Upload})),replace:!0})}),y.tablist.map(function(e){return i().createElement(l.qh,{key:e.id,path:\"\".concat(e.path),element:e.component})}))},[]);return i().createElement(f.M,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(o.A,null,i().createElement(d.A,{routePathName:[{name:s.F_.Uploads,path:s.fp.Uploads}]}))),i().createElement(p.A,{tabStateProps:y,handleTabChange:function(e){return function(e){E(function(t){return j(j({},t),{},{currentTabs:e})})}(e)},isParamsReq:!0}),_())}},9378:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>z});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(34661),u=n(11848),c=n(25669),d=n(77623),p=n(21915),f=n(8641),g=n(38086),h=n(79716),m=n(28466),v=n(38413),A=n(31609);function y(e){return(0,A.Ay)(\"MuiFormLabel\",e)}const E=(0,v.A)(\"MuiFormLabel\",[\"root\",\"colorSecondary\",\"focused\",\"disabled\",\"error\",\"filled\",\"required\",\"asterisk\"]);var b=n(74848);const _=[\"children\",\"className\",\"color\",\"component\",\"disabled\",\"error\",\"filled\",\"focused\",\"required\"],C=(0,u.Ay)(\"label\",{name:\"MuiFormLabel\",slot:\"Root\",overridesResolver:({ownerState:e},t)=>(0,r.A)({},t.root,\"secondary\"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,r.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:\"1.4375em\",padding:0,position:\"relative\",[`&.${E.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${E.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${E.error}`]:{color:(e.vars||e).palette.error.main}})),w=(0,u.Ay)(\"span\",{name:\"MuiFormLabel\",slot:\"Asterisk\",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${E.error}`]:{color:(e.vars||e).palette.error.main}})),S=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiFormLabel\"}),{children:a,className:s,component:u=\"label\"}=n,d=(0,o.A)(n,_),p=(0,h.A)(),f=(0,g.A)({props:n,muiFormControl:p,states:[\"color\",\"required\",\"focused\",\"disabled\",\"error\",\"filled\"]}),v=(0,r.A)({},n,{color:f.color||\"primary\",component:u,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),A=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,u={root:[\"root\",`color${(0,m.A)(n)}`,o&&\"disabled\",a&&\"error\",i&&\"filled\",r&&\"focused\",s&&\"required\"],asterisk:[\"asterisk\",a&&\"error\"]};return(0,l.A)(u,y,t)})(v);return(0,b.jsxs)(C,(0,r.A)({as:u,ownerState:v,className:(0,i.A)(A.root,s),ref:t},d,{children:[a,f.required&&(0,b.jsxs)(w,{ownerState:v,\"aria-hidden\":!0,className:A.asterisk,children:[\" \",\"*\"]})]}))});var T=n(39770);function O(e){return(0,A.Ay)(\"MuiInputLabel\",e)}(0,v.A)(\"MuiInputLabel\",[\"root\",\"focused\",\"disabled\",\"error\",\"required\",\"asterisk\",\"formControl\",\"sizeSmall\",\"shrink\",\"animated\",\"standard\",\"filled\",\"outlined\"]);const D=[\"disableAnimation\",\"margin\",\"shrink\",\"variant\",\"className\"],R=(0,u.Ay)(S,{shouldForwardProp:e=>(0,T.A)(e)||\"classes\"===e,name:\"MuiInputLabel\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,\"small\"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,r.A)({display:\"block\",transformOrigin:\"top left\",whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",maxWidth:\"100%\"},t.formControl&&{position:\"absolute\",left:0,top:0,transform:\"translate(0, 20px) scale(1)\"},\"small\"===t.size&&{transform:\"translate(0, 17px) scale(1)\"},t.shrink&&{transform:\"translate(0, -1.5px) scale(0.75)\",transformOrigin:\"top left\",maxWidth:\"133%\"},!t.disableAnimation&&{transition:e.transitions.create([\"color\",\"transform\",\"max-width\"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},\"filled\"===t.variant&&(0,r.A)({zIndex:1,pointerEvents:\"none\",transform:\"translate(12px, 16px) scale(1)\",maxWidth:\"calc(100% - 24px)\"},\"small\"===t.size&&{transform:\"translate(12px, 13px) scale(1)\"},t.shrink&&(0,r.A)({userSelect:\"none\",pointerEvents:\"auto\",transform:\"translate(12px, 7px) scale(0.75)\",maxWidth:\"calc(133% - 24px)\"},\"small\"===t.size&&{transform:\"translate(12px, 4px) scale(0.75)\"})),\"outlined\"===t.variant&&(0,r.A)({zIndex:1,pointerEvents:\"none\",transform:\"translate(14px, 16px) scale(1)\",maxWidth:\"calc(100% - 24px)\"},\"small\"===t.size&&{transform:\"translate(14px, 9px) scale(1)\"},t.shrink&&{userSelect:\"none\",pointerEvents:\"auto\",maxWidth:\"calc(133% - 32px)\",transform:\"translate(14px, -9px) scale(0.75)\"}))),N=a.forwardRef(function(e,t){const n=(0,c.b)({name:\"MuiInputLabel\",props:e}),{disableAnimation:a=!1,shrink:s,className:u}=n,d=(0,o.A)(n,D),p=(0,h.A)();let f=s;void 0===f&&p&&(f=p.filled||p.focused||p.adornedStart);const v=(0,g.A)({props:n,muiFormControl:p,states:[\"size\",\"variant\",\"required\",\"focused\"]}),A=(0,r.A)({},n,{disableAnimation:a,formControl:p,shrink:f,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),y=(e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:i,variant:s,required:u}=e,c={root:[\"root\",n&&\"formControl\",!i&&\"animated\",a&&\"shrink\",o&&\"normal\"!==o&&`size${(0,m.A)(o)}`,s],asterisk:[u&&\"asterisk\"]},d=(0,l.A)(c,O,t);return(0,r.A)({},t,d)})(A);return(0,b.jsx)(R,(0,r.A)({\"data-shrink\":f,ownerState:A,ref:t,className:(0,i.A)(y.root,u)},d,{classes:y}))});var L=n(82891),P=n(18593),M=n(33800);function x(e){return(0,A.Ay)(\"MuiFormControl\",e)}(0,v.A)(\"MuiFormControl\",[\"root\",\"marginNone\",\"marginNormal\",\"marginDense\",\"fullWidth\",\"disabled\"]);const I=[\"children\",\"className\",\"color\",\"component\",\"disabled\",\"error\",\"focused\",\"fullWidth\",\"hiddenLabel\",\"margin\",\"required\",\"size\",\"variant\"],k=(0,u.Ay)(\"div\",{name:\"MuiFormControl\",slot:\"Root\",overridesResolver:({ownerState:e},t)=>(0,r.A)({},t.root,t[`margin${(0,m.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,r.A)({display:\"inline-flex\",flexDirection:\"column\",position:\"relative\",minWidth:0,padding:0,margin:0,border:0,verticalAlign:\"top\"},\"normal\"===e.margin&&{marginTop:16,marginBottom:8},\"dense\"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:\"100%\"})),B=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiFormControl\"}),{children:s,className:u,color:d=\"primary\",component:p=\"div\",disabled:f=!1,error:g=!1,focused:h,fullWidth:v=!1,hiddenLabel:A=!1,margin:y=\"none\",required:E=!1,size:_=\"medium\",variant:C=\"outlined\"}=n,w=(0,o.A)(n,I),S=(0,r.A)({},n,{color:d,component:p,disabled:f,error:g,fullWidth:v,hiddenLabel:A,margin:y,required:E,size:_,variant:C}),T=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:[\"root\",\"none\"!==n&&`margin${(0,m.A)(n)}`,r&&\"fullWidth\"]};return(0,l.A)(o,x,t)})(S),[O,D]=a.useState(()=>{let e=!1;return s&&a.Children.forEach(s,t=>{if(!(0,P.A)(t,[\"Input\",\"Select\"]))return;const n=(0,P.A)(t,[\"Select\"])?t.props.input:t;n&&(0,L.gr)(n.props)&&(e=!0)}),e}),[R,N]=a.useState(()=>{let e=!1;return s&&a.Children.forEach(s,t=>{(0,P.A)(t,[\"Input\",\"Select\"])&&((0,L.lq)(t.props,!0)||(0,L.lq)(t.props.inputProps,!0))&&(e=!0)}),e}),[B,F]=a.useState(!1);f&&B&&F(!1);const j=void 0===h||f?B:h;let H;const U=a.useMemo(()=>({adornedStart:O,setAdornedStart:D,color:d,disabled:f,error:g,filled:R,focused:j,fullWidth:v,hiddenLabel:A,size:_,onBlur:()=>{F(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{F(!0)},registerEffect:H,required:E,variant:C}),[O,d,f,g,R,j,v,A,H,E,_,C]);return(0,b.jsx)(M.A.Provider,{value:U,children:(0,b.jsx)(k,(0,r.A)({as:p,ownerState:S,className:(0,i.A)(T.root,u),ref:t},w,{children:s}))})});var F=n(6347),j=n(2071);function H(e){return(0,A.Ay)(\"MuiTextField\",e)}(0,v.A)(\"MuiTextField\",[\"root\"]);const U=[\"autoComplete\",\"autoFocus\",\"children\",\"className\",\"color\",\"defaultValue\",\"disabled\",\"error\",\"FormHelperTextProps\",\"fullWidth\",\"helperText\",\"id\",\"InputLabelProps\",\"inputProps\",\"InputProps\",\"inputRef\",\"label\",\"maxRows\",\"minRows\",\"multiline\",\"name\",\"onBlur\",\"onChange\",\"onFocus\",\"placeholder\",\"required\",\"rows\",\"select\",\"SelectProps\",\"type\",\"value\",\"variant\"],Y={standard:d.A,filled:p.A,outlined:f.A},G=(0,u.Ay)(B,{name:\"MuiTextField\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),z=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiTextField\"}),{autoComplete:a,autoFocus:u=!1,children:d,className:p,color:f=\"primary\",defaultValue:g,disabled:h=!1,error:m=!1,FormHelperTextProps:v,fullWidth:A=!1,helperText:y,id:E,InputLabelProps:_,inputProps:C,InputProps:w,inputRef:S,label:T,maxRows:O,minRows:D,multiline:R=!1,name:L,onBlur:P,onChange:M,onFocus:x,placeholder:I,required:k=!1,rows:B,select:z=!1,SelectProps:V,type:q,value:W,variant:Q=\"outlined\"}=n,K=(0,o.A)(n,U),$=(0,r.A)({},n,{autoFocus:u,color:f,disabled:h,error:m,fullWidth:A,multiline:R,required:k,select:z,variant:Q}),X=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},H,t)})($),J={};\"outlined\"===Q&&(_&&void 0!==_.shrink&&(J.notched=_.shrink),J.label=T),z&&(V&&V.native||(J.id=void 0),J[\"aria-describedby\"]=void 0);const Z=(0,s.A)(E),ee=y&&Z?`${Z}-helper-text`:void 0,te=T&&Z?`${Z}-label`:void 0,ne=Y[Q],re=(0,b.jsx)(ne,(0,r.A)({\"aria-describedby\":ee,autoComplete:a,autoFocus:u,defaultValue:g,fullWidth:A,multiline:R,name:L,rows:B,maxRows:O,minRows:D,type:q,value:W,id:Z,inputRef:S,onBlur:P,onChange:M,onFocus:x,placeholder:I,inputProps:C},J,w));return(0,b.jsxs)(G,(0,r.A)({className:(0,i.A)(X.root,p),disabled:h,error:m,fullWidth:A,ref:t,required:k,color:f,variant:Q,ownerState:$},K,{children:[null!=T&&\"\"!==T&&(0,b.jsx)(N,(0,r.A)({htmlFor:Z,id:te},_,{children:T})),z?(0,b.jsx)(j.A,(0,r.A)({\"aria-describedby\":ee,id:Z,labelId:te,value:W,input:re},V,{children:d})):re,y&&(0,b.jsx)(F.A,(0,r.A)({id:ee},v,{children:y}))]}))})},9391:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(96395),a=n(80550),i=n(79039),l=n(97751),s=n(94901),u=n(2293),c=n(93438),d=n(36840),p=a&&a.prototype;if(r({target:\"Promise\",proto:!0,real:!0,forced:!!a&&i(function(){p.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,l(\"Promise\")),n=s(e);return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}}),!o&&s(a)){var f=l(\"Promise\").prototype.finally;p.finally!==f&&d(p,\"finally\",f,{unsafe:!0})}},9417:(e,t,n)=>{\"use strict\";function r(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}n.d(t,{A:()=>r})},9483:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"}),\"KeyboardArrowDown\")},9506:(e,t)=>{\"use strict\";t.A=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},9539:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(28551),a=n(55966);e.exports=function(e,t,n){var i,l;o(e);try{if(!(i=a(e,\"return\"))){if(\"throw\"===t)throw n;return n}i=r(i,e)}catch(e){l=!0,i=e}if(\"throw\"===t)throw n;if(l)throw i;return o(i),n}},9670:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.createSyncJsComp=t.showJsComp=void 0,t.showJsComp=function(e,t,r,o){if(e&&!e.componentFromFramework){var a=e.newAgStackInstance();if(a){var i,l,s=!1;return a.then(function(e){s?t.destroyBean(e):(l=(i=e).getGui(),r.appendChild(l),n(o,i))}),function(){s=!0,i&&(l&&l.parentElement&&l.parentElement.removeChild(l),t.destroyBean(i),o&&n(o,void 0))}}}};var n=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};t.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,function(e){return e})}},9749:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a5d07cd06ea22d9b2ae4.woff2\"},9771:e=>{\"use strict\";e.exports=function(){}},9793:(e,t,n)=>{var r=n(17346);e.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},9868:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(91291),i=n(31240),l=n(72333),s=n(79039),u=RangeError,c=String,d=Math.floor,p=o(l),f=o(\"\".slice),g=o(1.1.toFixed),h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)},m=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},A=function(e){for(var t=6,n=\"\";--t>=0;)if(\"\"!==n||0===t||0!==e[t]){var r=c(e[t]);n=\"\"===n?r:n+p(\"0\",7-r.length)+r}return n};r({target:\"Number\",proto:!0,forced:s(function(){return\"0.000\"!==g(8e-5,3)||\"1\"!==g(.9,0)||\"1.25\"!==g(1.255,2)||\"1000000000000000128\"!==g(0xde0b6b3a7640080,0)})||!s(function(){g({})})},{toFixed:function(e){var t,n,r,o,l=i(this),s=a(e),d=[0,0,0,0,0,0],g=\"\",y=\"0\";if(s<0||s>20)throw new u(\"Incorrect fraction digits\");if(l!=l)return\"NaN\";if(l<=-1e21||l>=1e21)return c(l);if(l<0&&(g=\"-\",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*h(2,69,1))-69)<0?l*h(2,-t,1):l/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(d,0,n),r=s;r>=7;)m(d,1e7,0),r-=7;for(m(d,h(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<<r),m(d,1,1),v(d,2),y=A(d)}else m(d,0,n),m(d,1<<-t,0),y=A(d)+p(\"0\",s);return s>0?g+((o=y.length)<=s?\"0.\"+p(\"0\",s-o)+y:f(y,0,o-s)+\".\"+f(y,o-s)):g+y}})},9957:(e,t,n)=>{\"use strict\";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(66743);e.exports=a.call(r,o)},10076:e=>{\"use strict\";e.exports=Function.prototype.call},10287:(e,t,n)=>{\"use strict\";n(46518)({target:\"Object\",stat:!0},{setPrototypeOf:n(52967)})},10298:(e,t,n)=>{\"use strict\";var r=n(22195),o=n(25397),a=n(38480).f,i=n(67680),l=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&\"Window\"===r(e)?function(e){try{return a(e)}catch(e){return i(l)}}(e):a(o(e))}},10350:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(39297),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,l=o(a,\"name\"),s=l&&\"something\"===function(){}.name,u=l&&(!r||r&&i(a,\"name\").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:u}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10436:(e,t,n)=>{\"use strict\";var r,o,a,i,l=n(46518),s=n(96395),u=n(16193),c=n(44576),d=n(19167),p=n(69565),f=n(36840),g=n(52967),h=n(10687),m=n(87633),v=n(79306),A=n(94901),y=n(20034),E=n(90679),b=n(2293),_=n(59225).set,C=n(91955),w=n(90757),S=n(1103),T=n(18265),O=n(91181),D=n(80550),R=n(10916),N=n(36043),L=\"Promise\",P=R.CONSTRUCTOR,M=R.REJECTION_EVENT,x=R.SUBCLASSING,I=O.getterFor(L),k=O.set,B=D&&D.prototype,F=D,j=B,H=c.TypeError,U=c.document,Y=c.process,G=N.f,z=G,V=!!(U&&U.createEvent&&c.dispatchEvent),q=\"unhandledrejection\",W=function(e){var t;return!(!y(e)||!A(t=e.then))&&t},Q=function(e,t){var n,r,o,a=t.value,i=1===t.state,l=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{l?(i||(2===t.rejection&&Z(t),t.rejection=1),!0===l?n=a:(c&&c.enter(),n=l(a),c&&(c.exit(),o=!0)),n===e.promise?u(new H(\"Promise-chain cycle\")):(r=W(n))?p(r,n,s,u):s(n)):u(a)}catch(e){c&&!o&&c.exit(),u(e)}},K=function(e,t){e.notified||(e.notified=!0,C(function(){for(var n,r=e.reactions;n=r.get();)Q(n,e);e.notified=!1,t&&!e.rejection&&X(e)}))},$=function(e,t,n){var r,o;V?((r=U.createEvent(\"Event\")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!M&&(o=c[\"on\"+e])?o(r):e===q&&w(\"Unhandled promise rejection\",n)},X=function(e){p(_,c,function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=S(function(){u?Y.emit(\"unhandledRejection\",r,n):$(q,n,r)}),e.rejection=u||J(e)?2:1,t.error))throw t.value})},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){p(_,c,function(){var t=e.facade;u?Y.emit(\"rejectionHandled\",t):$(\"rejectionhandled\",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new H(\"Promise can't be resolved itself\");var r=W(t);r?C(function(){var n={done:!1};try{p(r,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}}):(e.value=t,e.state=1,K(e,!1))}catch(t){te({done:!1},t,e)}}};if(P&&(j=(F=function(e){E(this,j),v(e),p(r,this);var t=I(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){k(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:null})}).prototype=f(j,\"then\",function(e,t){var n=I(this),r=G(b(this,F));return n.parent=!0,r.ok=!A(e)||e,r.fail=A(t)&&t,r.domain=u?Y.domain:void 0,0===n.state?n.reactions.add(r):C(function(){Q(r,n)}),r.promise}),o=function(){var e=new r,t=I(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},N.f=G=function(e){return e===F||e===a?new o(e):z(e)},!s&&A(D)&&B!==Object.prototype)){i=B.then,x||f(B,\"then\",function(e,t){var n=this;return new F(function(e,t){p(i,n,e,t)}).then(e,t)},{unsafe:!0});try{delete B.constructor}catch(e){}g&&g(B,j)}l({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:F}),a=d.Promise,h(F,L,!1,!0),m(L)},10481:(e,t,n)=>{\"use strict\";n.d(t,{Rd:()=>i,hG:()=>l,sw:()=>s,tl:()=>u,x7:()=>c}),n(28706),n(26099),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(13075),i=function(e,t,n,r){var i,l={};return l.domain=t,l.endPoint=o.p.RETAILER_DEATILS.replace(\"__FORM_ID__\",\"\".concat(r)),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},l.triggerLoader=n,(0,a.AT)(\"get\",l,!0)},l=function(e,t,n,r){var i,l,s={};return s.domain=t,s.endPoint=\"\".concat(o.p.VERIFYING_KYC).replace(\"retailer_uuid\",r.retailerId),s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id},s.payLoad={comments:r.comments,kycVerificationStatus:null==r?void 0:r.KycVerificationStatus},s.triggerLoader=n,(0,a.AT)(\"put\",s,!0)},s=function(e,t,n,r){var i,l={};return l.domain=t,l.endPoint=o.p.SAVE_RETAILERS_DETAILS,l.payLoad=r,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,a.AT)(\"post\",l,!1)},u=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=o.p.UPLOAD_DOCUMENTS,l.payLoad=a,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(l))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},c=function(e,t,n){var r,i={};return i.domain=t,i.endPoint=\"\".concat(o.p.GET_LICENSE_TYPES,\"?buId=\").concat(null==e?void 0:e.selectedBusinessUnit.bu_id),i.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,a.AT)(\"get\",i,!0)}},10485:(e,t,n)=>{var r=n(90326),o=n(90531),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,r){try{(r=n(33971)(Function.call,n(22682).f(Object.prototype,\"__proto__\").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},10540:e=>{\"use strict\";e.exports=function(e){var t=document.createElement(\"style\");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},10687:(e,t,n)=>{\"use strict\";var r=n(24913).f,o=n(39297),a=n(78227)(\"toStringTag\");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,a)&&r(e,a,{configurable:!0,value:t})}},10757:(e,t,n)=>{\"use strict\";var r=n(97751),o=n(94901),a=n(1625),i=n(7040),l=Object;e.exports=i?function(e){return\"symbol\"==typeof e}:function(e){var t=r(\"Symbol\");return o(t)&&a(t.prototype,l(e))}},10776:(e,t,n)=>{var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},10885:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"m7 10 5 5 5-5z\"}),\"ArrowDropDown\")},10901:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u});var r=n(27558),o=n(81970),a=n.n(o),i=n(28161),l=(0,n(11848).Ay)(i.A)(function(e){var t=e.theme;return{\"& .MuiSvgIcon-root\":{color:t.palette.grey[300]},\"& .Mui-checked\":{\"& .MuiSvgIcon-root\":{color:t.palette.primary.main}},\"& .Mui-disabled\":{cursor:\"not-allowed !important\",opacity:\"0.7\",pointerEvents:\"auto !important\"}}}),s=function(e){var t=e.label,n=e.value,o=e.isChecked,i=void 0!==o&&o,s=e.disabled,u=e.style,c=e.customClassName,d=e.onCheckboxChange,p=void 0===d?function(){}:d,f=e.labelMarginLeft,g=e.fontStyle,h=function(e){e.stopPropagation()};return a().createElement(l,{className:c,style:u,onClick:h},a().createElement(r.A,{checked:i,disabled:s,onChange:function(e){p(e.target.value)},value:n,onClick:h}),t&&a().createElement(\"button\",{type:\"button\",className:\"remove-button \".concat(null!=g?g:\"\"),style:{marginLeft:null!=f?f:\"8px\",userSelect:\"none\"},onClick:function(e){e.preventDefault(),e.stopPropagation()}},t))};const u=a().memo(s)},10916:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(80550),a=n(94901),i=n(92796),l=n(33706),s=n(78227),u=n(84215),c=n(96395),d=n(39519),p=o&&o.prototype,f=s(\"species\"),g=!1,h=a(r.PromiseRejectionEvent),m=i(\"Promise\",function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(c&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[f]=r,!(g=n.then(function(){})instanceof r))return!0}return!(t||\"BROWSER\"!==u&&\"DENO\"!==u||h)});e.exports={CONSTRUCTOR:m,REJECTION_EVENT:h,SUBCLASSING:g}},10917:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>L});var r=n(65724),o=n(68864),a=n(98587),i=n(58168),l=n(81970),s=n.n(l),u=n(34164),c=n(75659),d=n(771),p=n(28466),f=n(55860),g=n(11848),h=n(25669),m=n(38413),v=n(31609);function A(e){return(0,v.Ay)(\"MuiSwitch\",e)}const y=(0,m.A)(\"MuiSwitch\",[\"root\",\"edgeStart\",\"edgeEnd\",\"switchBase\",\"colorPrimary\",\"colorSecondary\",\"sizeSmall\",\"sizeMedium\",\"checked\",\"disabled\",\"input\",\"thumb\",\"track\"]);var E=n(74848);const b=[\"className\",\"color\",\"edge\",\"size\",\"sx\"],_=(0,g.Ay)(\"span\",{name:\"MuiSwitch\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,p.A)(n.edge)}`],t[`size${(0,p.A)(n.size)}`]]}})({display:\"inline-flex\",width:58,height:38,overflow:\"hidden\",padding:12,boxSizing:\"border-box\",position:\"relative\",flexShrink:0,zIndex:0,verticalAlign:\"middle\",\"@media print\":{colorAdjust:\"exact\"},variants:[{props:{edge:\"start\"},style:{marginLeft:-8}},{props:{edge:\"end\"},style:{marginRight:-8}},{props:{size:\"small\"},style:{width:40,height:24,padding:7,[`& .${y.thumb}`]:{width:16,height:16},[`& .${y.switchBase}`]:{padding:4,[`&.${y.checked}`]:{transform:\"translateX(16px)\"}}}}]}),C=(0,g.Ay)(f.A,{name:\"MuiSwitch\",slot:\"SwitchBase\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${y.input}`]:t.input},\"default\"!==n.color&&t[`color${(0,p.A)(n.color)}`]]}})(({theme:e})=>({position:\"absolute\",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${\"light\"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create([\"left\",\"transform\"],{duration:e.transitions.duration.shortest}),[`&.${y.checked}`]:{transform:\"translateX(20px)\"},[`&.${y.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${\"light\"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${y.checked} + .${y.track}`]:{opacity:.5},[`&.${y.disabled} + .${y.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:\"\"+(\"light\"===e.palette.mode?.12:.2)},[`& .${y.input}`]:{left:\"-100%\",width:\"300%\"}}),({theme:e})=>({\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,d.X4)(e.palette.action.active,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([t])=>({props:{color:t},style:{[`&.${y.checked}`]:{color:(e.vars||e).palette[t].main,\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,d.X4)(e.palette[t].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},[`&.${y.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${\"light\"===e.palette.mode?(0,d.a)(e.palette[t].main,.62):(0,d.e$)(e.palette[t].main,.55)}`}},[`&.${y.checked} + .${y.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),w=(0,g.Ay)(\"span\",{name:\"MuiSwitch\",slot:\"Track\",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:\"100%\",width:\"100%\",borderRadius:7,zIndex:-1,transition:e.transitions.create([\"opacity\",\"background-color\"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${\"light\"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:\"\"+(\"light\"===e.palette.mode?.38:.3)})),S=(0,g.Ay)(\"span\",{name:\"MuiSwitch\",slot:\"Thumb\",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:\"currentColor\",width:20,height:20,borderRadius:\"50%\"})),T=l.forwardRef(function(e,t){const n=(0,h.b)({props:e,name:\"MuiSwitch\"}),{className:r,color:o=\"primary\",edge:l=!1,size:s=\"medium\",sx:d}=n,f=(0,a.A)(n,b),g=(0,i.A)({},n,{color:o,edge:l,size:s}),m=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,s={root:[\"root\",n&&`edge${(0,p.A)(n)}`,`size${(0,p.A)(r)}`],switchBase:[\"switchBase\",`color${(0,p.A)(o)}`,a&&\"checked\",l&&\"disabled\"],thumb:[\"thumb\"],track:[\"track\"],input:[\"input\"]},u=(0,c.A)(s,A,t);return(0,i.A)({},t,u)})(g),v=(0,E.jsx)(S,{className:m.thumb,ownerState:g});return(0,E.jsxs)(_,{className:(0,u.A)(m.root,r),sx:d,ownerState:g,children:[(0,E.jsx)(C,(0,i.A)({type:\"checkbox\",icon:v,checkedIcon:v,ref:t,ownerState:g},f,{classes:(0,i.A)({},m,{root:m.switchBase})})),(0,E.jsx)(w,{className:m.track,ownerState:g})]})});var O=n(28161),D=n(17630),R=(0,g.Ay)(O.A)(function(e){var t=e.theme;return{\"& .MuiSwitch-root\":{width:\"32px\",height:\"16px\",padding:0},\"& .MuiButtonBase-root\":{padding:0,margin:\"2px\",transitionDuration:\"300ms\",backgroundColor:\"trasnparent\",\"& .MuiSwitch-thumb\":{color:t.palette.secondary.main},\"&.Mui-checked\":{transform:\"translateX(19px)\",\"& .MuiSwitch-thumb\":{color:t.palette.common.white}}},\"& .MuiSwitch-track\":{opacity:\"1\",background:D.T.iconColor,borderRadius:\"25px\"},\"& .MuiButtonBase-root.MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track\":{opacity:\"1\",border:0,backgroundColor:t.palette.success.main},\"& .MuiButtonBase-root.MuiSwitch-switchBase\":{\"& .MuiSwitch-thumb\":{height:\"12px\",width:\"12px\"}},\"&.MuiSwitch-thumb\":{height:\"12px\",width:\"12px\"}}}),N=function(e){var t=e.isChecked,n=e.handleChange,a=void 0===n?function(){}:n,i=e.value,l=e.label,u=e.labelPlacement,c=void 0===u?\"\":u;return s().createElement(R,null,s().createElement(r.A,null,s().createElement(o.A,{control:s().createElement(T,{checked:t,onChange:function(e){return a(e.target.checked)},inputProps:{\"aria-label\":\"controlled\"},size:\"medium\",value:i}),label:l,labelPlacement:c})))};const L=s().memo(N)},11002:e=>{\"use strict\";e.exports=Function.prototype.apply},11025:function(e,t,n){!function(e){\"use strict\";var t={1:\"௧\",2:\"௨\",3:\"௩\",4:\"௪\",5:\"௫\",6:\"௬\",7:\"௭\",8:\"௮\",9:\"௯\",0:\"௦\"},n={\"௧\":\"1\",\"௨\":\"2\",\"௩\":\"3\",\"௪\":\"4\",\"௫\":\"5\",\"௬\":\"6\",\"௭\":\"7\",\"௮\":\"8\",\"௯\":\"9\",\"௦\":\"0\"};e.defineLocale(\"ta\",{months:\"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்\".split(\"_\"),monthsShort:\"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்\".split(\"_\"),weekdays:\"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை\".split(\"_\"),weekdaysShort:\"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி\".split(\"_\"),weekdaysMin:\"ஞா_தி_செ_பு_வி_வெ_ச\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, HH:mm\",LLLL:\"dddd, D MMMM YYYY, HH:mm\"},calendar:{sameDay:\"[இன்று] LT\",nextDay:\"[நாளை] LT\",nextWeek:\"dddd, LT\",lastDay:\"[நேற்று] LT\",lastWeek:\"[கடந்த வாரம்] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s இல்\",past:\"%s முன்\",s:\"ஒரு சில விநாடிகள்\",ss:\"%d விநாடிகள்\",m:\"ஒரு நிமிடம்\",mm:\"%d நிமிடங்கள்\",h:\"ஒரு மணி நேரம்\",hh:\"%d மணி நேரம்\",d:\"ஒரு நாள்\",dd:\"%d நாட்கள்\",M:\"ஒரு மாதம்\",MM:\"%d மாதங்கள்\",y:\"ஒரு வருடம்\",yy:\"%d ஆண்டுகள்\"},dayOfMonthOrdinalParse:/\\d{1,2}வது/,ordinal:function(e){return e+\"வது\"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?\" யாமம்\":e<6?\" வைகறை\":e<10?\" காலை\":e<14?\" நண்பகல்\":e<18?\" எற்பாடு\":e<22?\" மாலை\":\" யாமம்\"},meridiemHour:function(e,t){return 12===e&&(e=0),\"யாமம்\"===t?e<2?e:e+12:\"வைகறை\"===t||\"காலை\"===t||\"நண்பகல்\"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11056:(e,t,n)=>{\"use strict\";var r=n(24913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},11156:(e,t,n)=>{e.exports={default:n(20852),__esModule:!0}},11317:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l,Q:()=>a});var r=n(58168),o=n(81970);function a(e){if(\"object\"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(o.isValidElement(e)||!a(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=i(e[n])}),t}function l(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach(r=>{o.isValidElement(t[r])?s[r]=t[r]:a(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&a(e[r])?s[r]=l(e[r],t[r],n):n.clone?s[r]=a(t[r])?i(t[r]):t[r]:s[r]=t[r]}),s}},11392:(e,t,n)=>{\"use strict\";var r,o=n(46518),a=n(27476),i=n(77347).f,l=n(18014),s=n(655),u=n(60511),c=n(67750),d=n(41436),p=n(96395),f=a(\"\".slice),g=Math.min,h=d(\"startsWith\");o({target:\"String\",proto:!0,forced:!(!p&&!h&&(r=i(String.prototype,\"startsWith\"),r&&!r.writable)||h)},{startsWith:function(e){var t=s(c(this));u(e);var n=l(g(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return f(t,n,n+r.length)===r}})},11441:(e,t,n)=>{var r=n(28028),o=function(e){var t=\"\",n=Object.keys(e);return n.forEach(function(o,a){var i=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&\"number\"==typeof i&&(i+=\"px\"),t+=!0===i?o:!1===i?\"not \"+o:\"(\"+o+\": \"+i+\")\",a<n.length-1&&(t+=\" and \")}),t};e.exports=function(e){var t=\"\";return\"string\"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=\", \")}),t):o(e)}},11470:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){return e+\" \"+function(e,t){return 2===t?function(e){var t={m:\"v\",b:\"v\",d:\"z\"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:\"munutenn\",MM:\"miz\",dd:\"devezh\"}[n],e)}function n(e){return e>9?n(e%10):e}var r=[/^gen/i,/^c[ʼ\\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale(\"br\",{months:\"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu\".split(\"_\"),monthsShort:\"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker\".split(\"_\"),weekdays:\"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn\".split(\"_\"),weekdaysShort:\"Sul_Lun_Meu_Mer_Yao_Gwe_Sad\".split(\"_\"),weekdaysMin:\"Su_Lu_Me_Mer_Ya_Gw_Sa\".split(\"_\"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [a viz] MMMM YYYY\",LLL:\"D [a viz] MMMM YYYY HH:mm\",LLLL:\"dddd, D [a viz] MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Hiziv da] LT\",nextDay:\"[Warcʼhoazh da] LT\",nextWeek:\"dddd [da] LT\",lastDay:\"[Decʼh da] LT\",lastWeek:\"dddd [paset da] LT\",sameElse:\"L\"},relativeTime:{future:\"a-benn %s\",past:\"%s ʼzo\",s:\"un nebeud segondennoù\",ss:\"%d eilenn\",m:\"ur vunutenn\",mm:t,h:\"un eur\",hh:\"%d eur\",d:\"un devezh\",dd:t,M:\"ur miz\",MM:t,y:\"ur bloaz\",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+\" bloaz\";default:return e+\" vloaz\"}}},dayOfMonthOrdinalParse:/\\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?\"añ\":\"vet\")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return\"g.m.\"===e},meridiem:function(e,t,n){return e<12?\"a.m.\":\"g.m.\"}})}(n(95093))},11641:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>E});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(11848),c=n(25669),d=n(18850),p=n(28466),f=n(38413),g=n(31609);function h(e){return(0,g.Ay)(\"MuiIconButton\",e)}const m=(0,f.A)(\"MuiIconButton\",[\"root\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorError\",\"colorInfo\",\"colorSuccess\",\"colorWarning\",\"edgeStart\",\"edgeEnd\",\"sizeSmall\",\"sizeMedium\",\"sizeLarge\"]);var v=n(74848);const A=[\"edge\",\"children\",\"className\",\"color\",\"disabled\",\"disableFocusRipple\",\"size\"],y=(0,u.Ay)(d.A,{name:\"MuiIconButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"default\"!==n.color&&t[`color${(0,p.A)(n.color)}`],n.edge&&t[`edge${(0,p.A)(n.edge)}`],t[`size${(0,p.A)(n.size)}`]]}})(({theme:e,ownerState:t})=>(0,o.A)({textAlign:\"center\",flex:\"0 0 auto\",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:\"50%\",overflow:\"visible\",color:(e.vars||e).palette.action.active,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.action.active,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},\"start\"===t.edge&&{marginLeft:\"small\"===t.size?-3:-12},\"end\"===t.edge&&{marginRight:\"small\"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,o.A)({},\"inherit\"===t.color&&{color:\"inherit\"},\"inherit\"!==t.color&&\"default\"!==t.color&&(0,o.A)({color:null==r?void 0:r.main},!t.disableRipple&&{\"&:hover\":(0,o.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(r.main,e.palette.action.hoverOpacity)},{\"@media (hover: none)\":{backgroundColor:\"transparent\"}})}),\"small\"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},\"large\"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:\"transparent\",color:(e.vars||e).palette.action.disabled}})}),E=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiIconButton\"}),{edge:a=!1,children:s,className:u,color:d=\"default\",disabled:f=!1,disableFocusRipple:g=!1,size:m=\"medium\"}=n,E=(0,r.A)(n,A),b=(0,o.A)({},n,{edge:a,color:d,disabled:f,disableFocusRipple:g,size:m}),_=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:[\"root\",n&&\"disabled\",\"default\"!==r&&`color${(0,p.A)(r)}`,o&&`edge${(0,p.A)(o)}`,`size${(0,p.A)(a)}`]};return(0,l.A)(i,h,t)})(b);return(0,v.jsx)(y,(0,o.A)({className:(0,i.A)(_.root,u),centerRipple:!0,focusRipple:!g,disabled:f,ref:t},E,{ownerState:b,children:s}))})},11713:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"he\",{months:\"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר\".split(\"_\"),monthsShort:\"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳\".split(\"_\"),weekdays:\"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת\".split(\"_\"),weekdaysShort:\"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳\".split(\"_\"),weekdaysMin:\"א_ב_ג_ד_ה_ו_ש\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [ב]MMMM YYYY\",LLL:\"D [ב]MMMM YYYY HH:mm\",LLLL:\"dddd, D [ב]MMMM YYYY HH:mm\",l:\"D/M/YYYY\",ll:\"D MMM YYYY\",lll:\"D MMM YYYY HH:mm\",llll:\"ddd, D MMM YYYY HH:mm\"},calendar:{sameDay:\"[היום ב־]LT\",nextDay:\"[מחר ב־]LT\",nextWeek:\"dddd [בשעה] LT\",lastDay:\"[אתמול ב־]LT\",lastWeek:\"[ביום] dddd [האחרון בשעה] LT\",sameElse:\"L\"},relativeTime:{future:\"בעוד %s\",past:\"לפני %s\",s:\"מספר שניות\",ss:\"%d שניות\",m:\"דקה\",mm:\"%d דקות\",h:\"שעה\",hh:function(e){return 2===e?\"שעתיים\":e+\" שעות\"},d:\"יום\",dd:function(e){return 2===e?\"יומיים\":e+\" ימים\"},M:\"חודש\",MM:function(e){return 2===e?\"חודשיים\":e+\" חודשים\"},y:\"שנה\",yy:function(e){return 2===e?\"שנתיים\":e%10==0&&10!==e?e+\" שנה\":e+\" שנים\"}},meridiemParse:/אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה\"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?\"לפנות בוקר\":e<10?\"בבוקר\":e<12?n?'לפנה\"צ':\"לפני הצהריים\":e<18?n?'אחה\"צ':\"אחרי הצהריים\":\"בערב\"}})}(n(95093))},11715:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r,S:()=>o});var r=function(e){return e.LIQUIDATIONS_TAB_NAME=\"Liquidation Targets / Actuals Report\",e.LIQUIDATION=\"LIQUIDATION\",e.LIQUIDATION_ROLE=\"liquidation_role\",e}({}),o=3},11729:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d});var r=n(55373),o=Object.defineProperty,a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function u(e,t,n,o){const{renderedPath:u,remainingParams:d}=function(e,t){const n=((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&s(e,n,t[n]);if(a)for(var n of a(t))l.call(t,n)&&s(e,n,t[n]);return e})({},t),r=e.replace(/:[_A-Za-z]+[_A-Za-z0-9]*/g,e=>{const r=e.slice(1);return function(e,t){const n=[\"boolean\",\"string\",\"number\"];if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`Missing value for path parameter ${t}.`);if(!n.includes(typeof e[t]))throw new TypeError(`Path parameter ${t} cannot be of type ${typeof e[t]}. Allowed types are: ${n.join(\", \")}.`);if(\"string\"==typeof e[t]&&\"\"===e[t].trim())throw new Error(`Path parameter ${t} cannot be an empty string.`)}(t,r),delete n[r],encodeURIComponent(t[r])});return{renderedPath:r,remainingParams:n}}(e,t),p=function(e){return Object.keys(e).filter(t=>null!=e[t]).reduce((t,n)=>(t[n]=e[n],t),{})}(d),f=function(e,t){var n,o;if(Object.keys(e).length<1)return\"\";const a={format:null!=(o=null==(n=null==t?void 0:t.objectFormat)?void 0:n.format)?o:\"RFC1738\",arrayFormat:null==t?void 0:t.arrayFormat};return r.stringify(e,a)}(p,o),g=c(u,\"?\",f);return n?function(e,t,n){return e.length?c(t,\"/\",n):c(t,\"?\",n)}(u,n,g):g}function c(e,t,n){const r=e.endsWith(t)?e.slice(0,-t.length):e,o=n.startsWith(t)?n.slice(t.length):n;return\"\"===r||\"\"===o?r+o:r+t+o}const d=function(e){var t=e.baseUrl,n=void 0===t?\"\":t,r=e.endpointUrl,o=void 0===r?\"\":r,a=e.params;return function(e,t,n={},r={}){return\"string\"==typeof t?u(t,n,e,r):u(e,t,void 0,r)}(n,o,void 0===a?{}:a)}},11745:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(27476),a=n(79039),i=n(66346),l=n(28551),s=n(35610),u=n(18014),c=i.ArrayBuffer,d=i.DataView,p=d.prototype,f=o(c.prototype.slice),g=o(p.getUint8),h=o(p.setUint8);r({target:\"ArrayBuffer\",proto:!0,unsafe:!0,forced:a(function(){return!new c(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(f&&void 0===t)return f(l(this),e);for(var n=l(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),a=new c(u(o-r)),i=new d(this),p=new d(a),m=0;r<o;)h(p,m++,g(i,r++));return a}})},11848:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>l});var r=n(56461),o=n(22765),a=n(58312),i=n(39770);const l=(0,r.Ay)({themeId:a.A,defaultTheme:o.A,rootShouldForwardProp:i.A})},11885:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"te\",{months:\"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్\".split(\"_\"),monthsShort:\"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.\".split(\"_\"),monthsParseExact:!0,weekdays:\"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం\".split(\"_\"),weekdaysShort:\"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని\".split(\"_\"),weekdaysMin:\"ఆ_సో_మం_బు_గు_శు_శ\".split(\"_\"),longDateFormat:{LT:\"A h:mm\",LTS:\"A h:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm\",LLLL:\"dddd, D MMMM YYYY, A h:mm\"},calendar:{sameDay:\"[నేడు] LT\",nextDay:\"[రేపు] LT\",nextWeek:\"dddd, LT\",lastDay:\"[నిన్న] LT\",lastWeek:\"[గత] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s లో\",past:\"%s క్రితం\",s:\"కొన్ని క్షణాలు\",ss:\"%d సెకన్లు\",m:\"ఒక నిమిషం\",mm:\"%d నిమిషాలు\",h:\"ఒక గంట\",hh:\"%d గంటలు\",d:\"ఒక రోజు\",dd:\"%d రోజులు\",M:\"ఒక నెల\",MM:\"%d నెలలు\",y:\"ఒక సంవత్సరం\",yy:\"%d సంవత్సరాలు\"},dayOfMonthOrdinalParse:/\\d{1,2}వ/,ordinal:\"%dవ\",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),\"రాత్రి\"===t?e<4?e:e+12:\"ఉదయం\"===t?e:\"మధ్యాహ్నం\"===t?e>=10?e:e+12:\"సాయంత్రం\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"రాత్రి\":e<10?\"ఉదయం\":e<17?\"మధ్యాహ్నం\":e<20?\"సాయంత్రం\":\"రాత్రి\"},week:{dow:0,doy:6}})}(n(95093))},12041:(e,t,n)=>{\"use strict\";n(79978)},12092:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}),\"Clear\")},12211:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},12461:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},12475:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e},e.exports.__esModule=!0,e.exports.default=e.exports},12507:(e,t,n)=>{var r=n(28754),o=n(49698),a=n(63912),i=n(13222);e.exports=function(e){return function(t){t=i(t);var n=o(t)?a(t):void 0,l=n?n[0]:t.charAt(0),s=n?r(n,1).join(\"\"):t.slice(1);return l[e]()+s}}},12651:(e,t,n)=>{var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}},12749:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},12794:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>P});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(52197),c=n(11848),d=n(25669),p=n(18850),f=n(18593),g=n(2778),h=n(96852),m=n(32850),v=n(38413),A=n(31609);function y(e){return(0,A.Ay)(\"MuiListItem\",e)}const E=(0,v.A)(\"MuiListItem\",[\"root\",\"container\",\"focusVisible\",\"dense\",\"alignItemsFlexStart\",\"disabled\",\"divider\",\"gutters\",\"padding\",\"button\",\"secondaryAction\",\"selected\"]),b=(0,v.A)(\"MuiListItemButton\",[\"root\",\"focusVisible\",\"dense\",\"alignItemsFlexStart\",\"disabled\",\"divider\",\"gutters\",\"selected\"]);function _(e){return(0,A.Ay)(\"MuiListItemSecondaryAction\",e)}(0,v.A)(\"MuiListItemSecondaryAction\",[\"root\",\"disableGutters\"]);var C=n(74848);const w=[\"className\"],S=(0,c.Ay)(\"div\",{name:\"MuiListItemSecondaryAction\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>(0,o.A)({position:\"absolute\",right:16,top:\"50%\",transform:\"translateY(-50%)\"},e.disableGutters&&{right:0})),T=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiListItemSecondaryAction\"}),{className:s}=n,u=(0,r.A)(n,w),c=a.useContext(m.A),p=(0,o.A)({},n,{disableGutters:c.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:[\"root\",t&&\"disableGutters\"]};return(0,l.A)(r,_,n)})(p);return(0,C.jsx)(S,(0,o.A)({className:(0,i.A)(f.root,s),ownerState:p,ref:t},u))});T.muiName=\"ListItemSecondaryAction\";const O=T,D=[\"className\"],R=[\"alignItems\",\"autoFocus\",\"button\",\"children\",\"className\",\"component\",\"components\",\"componentsProps\",\"ContainerComponent\",\"ContainerProps\",\"dense\",\"disabled\",\"disableGutters\",\"disablePadding\",\"divider\",\"focusVisibleClassName\",\"secondaryAction\",\"selected\",\"slotProps\",\"slots\"],N=(0,c.Ay)(\"div\",{name:\"MuiListItem\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,\"flex-start\"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>(0,o.A)({display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",position:\"relative\",textDecoration:\"none\",width:\"100%\",boxSizing:\"border-box\",textAlign:\"left\"},!t.disablePadding&&(0,o.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${b.root}`]:{paddingRight:48}},{[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${E.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${E.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},\"flex-start\"===t.alignItems&&{alignItems:\"flex-start\"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:\"padding-box\"},t.button&&{transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest}),\"&:hover\":{textDecoration:\"none\",backgroundColor:(e.vars||e).palette.action.hover,\"@media (hover: none)\":{backgroundColor:\"transparent\"}},[`&.${E.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),L=(0,c.Ay)(\"li\",{name:\"MuiListItem\",slot:\"Container\",overridesResolver:(e,t)=>t.container})({position:\"relative\"}),P=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiListItem\"}),{alignItems:s=\"center\",autoFocus:c=!1,button:v=!1,children:A,className:b,component:_,components:w={},componentsProps:S={},ContainerComponent:T=\"li\",ContainerProps:{className:P}={},dense:M=!1,disabled:x=!1,disableGutters:I=!1,disablePadding:k=!1,divider:B=!1,focusVisibleClassName:F,secondaryAction:j,selected:H=!1,slotProps:U={},slots:Y={}}=n,G=(0,r.A)(n.ContainerProps,D),z=(0,r.A)(n,R),V=a.useContext(m.A),q=a.useMemo(()=>({dense:M||V.dense||!1,alignItems:s,disableGutters:I}),[s,V.dense,M,I]),W=a.useRef(null);(0,g.A)(()=>{c&&W.current&&W.current.focus()},[c]);const Q=a.Children.toArray(A),K=Q.length&&(0,f.A)(Q[Q.length-1],[\"ListItemSecondaryAction\"]),$=(0,o.A)({},n,{alignItems:s,autoFocus:c,button:v,dense:q.dense,disabled:x,disableGutters:I,disablePadding:k,divider:B,hasSecondaryAction:K,selected:H}),X=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:u,hasSecondaryAction:c,selected:d}=e,p={root:[\"root\",o&&\"dense\",!i&&\"gutters\",!s&&\"padding\",u&&\"divider\",a&&\"disabled\",n&&\"button\",\"flex-start\"===t&&\"alignItemsFlexStart\",c&&\"secondaryAction\",d&&\"selected\"],container:[\"container\"]};return(0,l.A)(p,y,r)})($),J=(0,h.A)(W,t),Z=Y.root||w.Root||N,ee=U.root||S.root||{},te=(0,o.A)({className:(0,i.A)(X.root,ee.className,b),disabled:x},z);let ne=_||\"li\";return v&&(te.component=_||\"div\",te.focusVisibleClassName=(0,i.A)(E.focusVisible,F),ne=p.A),K?(ne=te.component||_?ne:\"div\",\"li\"===T&&(\"li\"===ne?ne=\"div\":\"li\"===te.component&&(te.component=\"div\")),(0,C.jsx)(m.A.Provider,{value:q,children:(0,C.jsxs)(L,(0,o.A)({as:T,className:(0,i.A)(X.container,P),ref:J,ownerState:$},G,{children:[(0,C.jsx)(Z,(0,o.A)({},ee,!(0,u.A)(Z)&&{as:ne,ownerState:(0,o.A)({},$,ee.ownerState)},te,{children:Q})),Q.pop()]}))})):(0,C.jsx)(m.A.Provider,{value:q,children:(0,C.jsxs)(Z,(0,o.A)({},ee,{as:ne,ref:J},!(0,u.A)(Z)&&{ownerState:(0,o.A)({},$,ee.ownerState)},te,{children:[Q,j&&(0,C.jsx)(O,{children:j})]}))})})},12887:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79039),a=n(79504),i=n(94644),l=n(23792),s=n(78227)(\"iterator\"),u=r.Uint8Array,c=a(l.values),d=a(l.keys),p=a(l.entries),f=i.aTypedArray,g=i.exportTypedArrayMethod,h=u&&u.prototype,m=!o(function(){h[s].call([1])}),v=!!h&&h.values&&h[s]===h.values&&\"values\"===h.values.name,A=function(){return c(f(this))};g(\"entries\",function(){return p(f(this))},m),g(\"keys\",function(){return d(f(this))},m),g(\"values\",A,m||!v,{name:\"values\"}),g(s,A,m||!v,{name:\"values\"})},12977:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},13075:(e,t,n)=>{\"use strict\";n.d(t,{$3:()=>A,AQ:()=>re,AT:()=>_,AY:()=>oe,EY:()=>I,Ee:()=>ae,F7:()=>C,Fl:()=>S,KB:()=>le,Lc:()=>z,Ly:()=>j,MO:()=>W,Nr:()=>g,OP:()=>f,R5:()=>P,Rk:()=>se,Sm:()=>N,Tl:()=>V,VW:()=>G,Ws:()=>k,XD:()=>X,YQ:()=>ee,ZY:()=>B,Zr:()=>ue,aq:()=>U,bA:()=>w,c2:()=>y,f5:()=>ne,fW:()=>H,gN:()=>q,gP:()=>b,iH:()=>L,iR:()=>R,iy:()=>h,jT:()=>$,k2:()=>F,kQ:()=>Y,mM:()=>T,mN:()=>p,mi:()=>K,oH:()=>Z,pj:()=>E,pp:()=>v,rZ:()=>x,rb:()=>Q,rq:()=>M,sE:()=>ie,sg:()=>te,t2:()=>m,wn:()=>D,y2:()=>J,yf:()=>O}),n(52675),n(89463),n(2259),n(45700),n(28706),n(33771),n(2008),n(50113),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(62062),n(94490),n(34782),n(15086),n(54743),n(11745),n(38309),n(1688),n(89572),n(23288),n(2892),n(40150),n(25843),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(31415),n(21699),n(47764),n(68156),n(25440),n(68363),n(21489),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(33684),n(12041),n(23500),n(62953),n(76031),n(48408);var r=n(95093),o=n.n(r),a=n(95692),i=n(99478),l=n(79e3);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=d(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==d(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},d(e)}var p=function(e){var t,n=null!==(t=null==e?void 0:e.statusCode)&&void 0!==t?t:null==e?void 0:e.status;return i.NR.indexOf(n)>=0},f=function(e){return!!(e&&Array.isArray(e)&&e.length>0)},g=(new Array(13-Number(o()().format(\"M\"))).fill(0).map(function(e,t){return{label:o()().add(t,\"month\").format(\"MMMM\"),value:o()().add(t,\"month\").format(\"MMMM\")}}),function(e){return e?new URLSearchParams(e).toString():null}),h=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1;return{paycycleStartDate:\"\".concat(t,\"-\").concat(n.toString().padStart(2,\"0\"),\"-01\"),paycycleEndDate:new Date(t,n,0).toISOString().split(\"T\")[0]}},m=function(e,t){return\"\".concat(o()(e).format(\"D MMM\"),\" - \").concat(o()(t).format(\"D MMM YYYY\"))},v=function(e){return o()(e).format(\"YYYY-MM-DD\")},A=function(e){return o()(e).format(\"YYYY-MM-DD HH:mm:ss\")},y=function(e){return new Date(e).toISOString()},E=function(e){return e.map(function(e){return Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&\"\"!==e[t]||(e[t]=\"--\")}),e})},b=function(){return\"xxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replaceAll(/[xy]/g,function(e){var t=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(\"x\"===e?t:3&t|8).toString(16)})},_=function(e,t,n){return new Promise(function(r,o){var i;null===(i=a.N[e](t))||void 0===i||i.then(function(e){var t,a,i=p(e);if(null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage)return o(new Error(null==e||null===(a=e.data)||void 0===a?void 0:a.errorMessage));if(!i)throw new Error(e.error);return null!=e&&e.data&&n?r(null==e?void 0:e.data):n?void 0:r(e)}).catch(function(e){return o(new Error(e.message))})})},C=function(e){if(Array.isArray(e))return e.length>0?\"button-with-dot\":\"\";if(!e||\"object\"!==d(e))return\"\";var t=Object.keys(e);return 0===t.length?\"\":t.some(function(t){var n=e[t];return Array.isArray(n)?0!==n.length&&n.some(function(e){return\"object\"!==d(e)||null===e||!(\"checked\"in e)||e.checked}):\"object\"===d(n)&&null!==n?Object.keys(n).length>0:\"string\"==typeof n&&n.length>0})?\"button-with-dot\":\"\"},w=function(e){var t=new TextDecoder(\"utf-8\"),n={message:\"\"};if(e.data instanceof ArrayBuffer){var r=t.decode(e.data),o=JSON.parse(r);null!=o&&o.errorMessage&&(n.message=null==o?void 0:o.errorMessage)}return n},S=function(e){if(null===e)return\"\";var t=e.toLowerCase().replaceAll(\"_\",\" \").replaceAll(/(?: |\\b)(\\w)/g,function(e){return e.toUpperCase()}).replaceAll(/\\s+/g,\" \");return t.charAt(0).toUpperCase()+t.slice(1)},T=function(e){var t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,\"0\"),o=String(t.getDate()).padStart(2,\"0\"),a=String(t.getHours()).padStart(2,\"0\"),i=String(t.getMinutes()).padStart(2,\"0\"),l=String(t.getSeconds()).padStart(2,\"0\"),s=String(t.getMilliseconds()).padStart(3,\"0\");return\"\".concat(n,\"-\").concat(r,\"-\").concat(o,\"T\").concat(a,\":\").concat(i,\":\").concat(l,\".\").concat(s,\"Z\")},O=function(e){return new Date(e).setHours(0,0,0,0)>(new Date).setHours(0,0,0,0)};function D(e){var t=o()().month(),n=o()(e,\"MMMM\",!0);return!!n.isValid()&&n.month()===t}function R(e,t){var n={January:1,February:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12}[t],r=new Date,o=r.getDate();return n===r.getMonth()+1&&e<o}var N=function(e,t){var n=new Date(Date.parse(e+\" 1, \"+t)).getMonth(),r=new Date;return new Date(t,n)<new Date(r.getFullYear(),r.getMonth())},L=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()};function P(e,t){var n=new Date,r=new Date(e.split(\"-\").reverse().join(\"-\")),o=new Date(t.split(\"-\").reverse().join(\"-\"));return n>=r&&n<=o}var M=function(e,t){var n=null==t?void 0:t.retailer_licence_type,r=(null==t?void 0:t.code)===i.LY.GST,o=r?i.QL.GST_NUMBER:/^[a-zA-Z0-9/,.-]+$/,a=r?15:1,l=r?15:26;return null!=e&&e.length?e.length<a||e.length>l?\"\".concat(n,r?\" number must be exactly 15 characters\":\" number can be upto 26 characters\"):o.test(e)?null:r?\"Please enter a valid \".concat(n,\" document number\"):\"Only alphanumeric characters and the symbols /-., are allowed\":\"\".concat(n,\" number is required\")},x=function(e,t){var n,r,o,a,l,s,u;return{country_code:null==e||null===(n=e.selectedCountry)||void 0===n?void 0:n.countryCode,bu_id:null==e||null===(r=e.selectedBusinessUnit)||void 0===r?void 0:r.bu_id,bu_code:null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_code,user_id:null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,role_type_name:null==e||null===(l=e.UserDetails)||void 0===l||null===(l=l.role_type_details)||void 0===l?void 0:l.role_type_name,role_id:null==e||null===(s=e.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId,baseurl:t,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),isCountryAdmin:(null==e||null===(u=e.UserDetails)||void 0===u||null===(u=u.role_type_details)||void 0===u?void 0:u.role_type_name)===i.Rk.COUNTRY_ADMIN}},I=function(e,t){var n=null==t?void 0:t.map(function(t){return\"\".concat(e,\"=\").concat(t)});return(null==n?void 0:n.join(\"&\"))||\"\"},k=function(e,t){return null==t?void 0:t.find(function(t){return(null==t?void 0:t.key)===e})},B=function(e,t){var n,r=null==t||null===(n=t.subModuleElements)||void 0===n||null===(n=n.find(function(t){return(null==t?void 0:t.module_name)===e}))||void 0===n?void 0:n.permissions;return{read:!(null==r||!r.length)&&r.includes(\"READ\"),create:!(null==r||!r.length)&&r.includes(\"CREATE\"),update:!(null==r||!r.length)&&r.includes(\"UPDATE\")}},F=function(e,t){var n=new Date(e),r=new Date(t),o=[],a=[];o.push(n.toDateString());var i=new Date(n);for(i.setDate(i.getDate()+1);i<=r;)0===i.getDay()&&o.length>0&&(a.push(o),o=[]),o.push(i.toDateString()),i.setDate(i.getDate()+1);return o.length>0&&a.push(o),null==a?void 0:a.length},j=function(e,t,n){return null==n?void 0:n.map(function(n){return{label:null==n?void 0:n[e],value:null==n?void 0:n[t],checked:!1}})},H=function(e,t){return Number(e)===Number(t)},U=function(e,t){var n=document.createElement(\"a\");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},Y=function(e){var t=o()().year(),n=Number.parseInt(e,10)===t?o()().month():0;return Array.from({length:12-n},function(e,t){var r=n+t,a=o()().month(r).format(\"MMMM\");return{label:a,value:a}})},G=function(e){return function(e,t){return e?\"button-with-dot\":function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\")||\"\"}(t)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\")},z=function(e,t){var n=new Date,r=n.getFullYear();function o(e){var t=e.split(/[-/\\s]+/),n=Number.parseInt(t[0],10),o=t[1],a=t[2]?Number.parseInt(t[2],10):r,i=Number.isNaN(Number(o))?new Date(\"\".concat(o,\" 1, \").concat(a)).getMonth():Number.parseInt(o,10)-1;return new Date(a,i,n)}var a=o(e),i=o(t);return i.setHours(23,59,59,999),n>=a&&n<=i},V=function(e){return l.A.t(e)},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var a=o[r];if(\"\"!==a&&null!=a&&!1!==a)return a}},W=function(e,t){var n,r;return null!==(n=null===(r=t.find(function(t){return t.field_unique_id===e}))||void 0===r?void 0:r.label)&&void 0!==n?n:\"\"},Q=function(e){return e.replaceAll(/[^a-zA-Z0-9.]/g,\"_\")},K=function(e){if(!e)return!1;var t=e.split(\".\").pop().toLowerCase();return[\"png\",\"pdf\",\"odt\",\"jpg\",\"jpeg\",\"docx\"].includes(t)},$=function(e,t,n){var r;return null==n||null===(r=n[e])||void 0===r?void 0:r.map(function(n){var r,o=null==t||null===(r=t[e])||void 0===r?void 0:r.find(function(e){return n.label===(null==e?void 0:e.label)});return u(u({},n),{},{checked:null==o?void 0:o.checked})})},X=function(e,t){var n,r;return null!=e&&\"\"!==e?String(e):null!==(n=null==t||null===(r=t.selectedBusinessUnit)||void 0===r?void 0:r.portfolio_code)&&void 0!==n?n:\"DEFAULT\"},J=function(e,t,n){return t?null!=e&&e.portfolio?[e.portfolio.value]:[]:[n]},Z=function(e,t,n){var r,o,a=null==e||null===(r=e.userRoleControls)||void 0===r?void 0:r.module_access_information_dto_list.find(function(e){return(null==e?void 0:e.module_name)===t}),i=null==a||null===(o=a.sub_module.find(function(e){return(null==e?void 0:e.module_name)===n}))||void 0===o?void 0:o.permissions;return null!=i?i:[]},ee=function(e,t){return null!=e?e:t};function te(e,t){var n;return function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){e.apply(r,a)},t)}}var ne=function(e,t,n,r){t?r(e):n(e)},re=function(e){var t;return null!==(t=null==e?void 0:e.map(function(e){return u(u({},e),{},{headerName:l.A.t(null==e?void 0:e.headerName)})}))&&void 0!==t?t:[]},oe=function(e,t){var n,r,o,a,i=null==e?void 0:e.some(function(e){return\"total_actual_value\"===(null==e?void 0:e.field)}),l=Number(\"string\"==typeof(null==t?void 0:t.total_actual_value)?null==t?void 0:t.total_actual_value.replaceAll(/[^\\d.]/g,\"\"):null!==(n=null==t?void 0:t.total_actual_value)&&void 0!==n?n:0),s=Number(\"string\"==typeof(null==t?void 0:t.total_planned_value)?null==t?void 0:t.total_planned_value.replaceAll(/[^\\d.]/g,\"\"):null!==(r=null==t?void 0:t.total_planned_value)&&void 0!==r?r:0);if(i&&l&&s)return 100*l/s;var u=null==e?void 0:e.some(function(e){return\"total_actual_volume\"===(null==e?void 0:e.field)}),c=Number(\"string\"==typeof(null==t?void 0:t.total_actual_volume)?null==t?void 0:t.total_actual_volume.replaceAll(/[^\\d.]/g,\"\"):null!==(o=null==t?void 0:t.total_actual_volume)&&void 0!==o?o:0),d=Number(\"string\"==typeof(null==t?void 0:t.total_planned_volume)?null==t?void 0:t.total_planned_volume.replaceAll(/[^\\d.]/g,\"\"):null!==(a=null==t?void 0:t.total_planned_volume)&&void 0!==a?a:0);return u&&c&&d?100*c/d:0},ae=function(e){return e%1>=.5?Math.round(e):Math.floor(e)},ie=function(e,t){var n=new Set(null==e?void 0:e.map(function(e){return null==e?void 0:e.distributor_uuid}).filter(function(e){return null!=e}));return t.filter(function(e){return!n.has(null==e?void 0:e.distributor_uuid)})},le=function(e,t,n){var r=ie(t,n).length;return\"\".concat(e-r)},se=function(e){var t,n=null==e||null===(t=e.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.role_code;return{isTM:\"TM\"===n,isBM:\"BM\"===n,isDML:\"DML\"===n,isCountryAdmin:\"CA\"===n}},ue=function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}},13144:(e,t,n)=>{\"use strict\";var r=n(66743),o=n(11002),a=n(10076),i=n(47119);e.exports=i||r.call(a,o)},13167:e=>{e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},13222:(e,t,n)=>{var r=n(77556);e.exports=function(e){return null==e?\"\":r(e)}},13491:function(e){(function(){var t,n,r,o,a,i;\"undefined\"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:\"undefined\"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),i=1e9*process.uptime(),a=o-i):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},13709:(e,t,n)=>{\"use strict\";var r=n(82839).match(/firefox\\/(\\d+)/i);e.exports=!!r&&+r[1]},13711:(e,t,n)=>{\"use strict\";e.exports=n.p+\"fd2b99c5f06b62429f77.eot\"},13763:(e,t,n)=>{\"use strict\";var r=n(82839);e.exports=/MSIE|Trident/.test(r)},13925:(e,t,n)=>{\"use strict\";var r=n(20034);e.exports=function(e){return r(e)||null===e}},13967:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(89453);function o(e){if(\"string\"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},14073:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>E});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(39599),s=n(75659),u=n(11848),c=n(25669),d=n(28466),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiTypography\",e)}(0,p.A)(\"MuiTypography\",[\"root\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"subtitle1\",\"subtitle2\",\"body1\",\"body2\",\"inherit\",\"button\",\"caption\",\"overline\",\"alignLeft\",\"alignRight\",\"alignCenter\",\"alignJustify\",\"noWrap\",\"gutterBottom\",\"paragraph\"]);var h=n(74848);const m=[\"align\",\"className\",\"component\",\"gutterBottom\",\"noWrap\",\"paragraph\",\"variant\",\"variantMapping\"],v=(0,u.Ay)(\"span\",{name:\"MuiTypography\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],\"inherit\"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,o.A)({margin:0},\"inherit\"===t.variant&&{font:\"inherit\"},\"inherit\"!==t.variant&&e.typography[t.variant],\"inherit\"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},t.gutterBottom&&{marginBottom:\"0.35em\"},t.paragraph&&{marginBottom:16})),A={h1:\"h1\",h2:\"h2\",h3:\"h3\",h4:\"h4\",h5:\"h5\",h6:\"h6\",subtitle1:\"h6\",subtitle2:\"h6\",body1:\"p\",body2:\"p\",inherit:\"p\"},y={primary:\"primary.main\",textPrimary:\"text.primary\",secondary:\"secondary.main\",textSecondary:\"text.secondary\",error:\"error.main\"},E=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiTypography\"}),a=(e=>y[e]||e)(n.color),u=(0,l.A)((0,o.A)({},n,{color:a})),{align:p=\"inherit\",className:f,component:E,gutterBottom:b=!1,noWrap:_=!1,paragraph:C=!1,variant:w=\"body1\",variantMapping:S=A}=u,T=(0,r.A)(u,m),O=(0,o.A)({},u,{align:p,color:a,className:f,component:E,gutterBottom:b,noWrap:_,paragraph:C,variant:w,variantMapping:S}),D=E||(C?\"p\":S[w]||A[w])||\"span\",R=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:[\"root\",a,\"inherit\"!==e.align&&`align${(0,d.A)(t)}`,n&&\"gutterBottom\",r&&\"noWrap\",o&&\"paragraph\"]};return(0,s.A)(l,g,i)})(O);return(0,h.jsx)(v,(0,o.A)({as:D,ref:t,ownerState:O,className:(0,i.A)(R.root,f)},T))})},14119:(e,t,n)=>{\"use strict\";e.exports=n.p+\"fcaab283846894e68109.woff2\"},14248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},14259:(e,t)=>{t.f=Object.getOwnPropertySymbols},14528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},14595:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s});var r=n(90815),o=n(14073),a=n(28161),i=n(81970),l=n.n(i);const s=function(e){var t=e.text,n=e.onClose,i=e.dataTestId;return l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},l().createElement(o.A,{component:\"h1\",variant:\"h1\"},t),l().createElement(a.A,{onClick:n,\"data-testid\":i,sx:{cursor:\"pointer\"}},l().createElement(o.A,{className:\"icon-close closeIcon\"})))}},14620:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(11317);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},14632:(e,t,n)=>{var r=n(21672),o=n(15495);e.exports=n(75872)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},14774:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(28466),c=n(52332),d=n(27256),p=n(25669),f=n(11848),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiTableCell\",e)}const v=(0,g.A)(\"MuiTableCell\",[\"root\",\"head\",\"body\",\"footer\",\"sizeSmall\",\"sizeMedium\",\"paddingCheckbox\",\"paddingNone\",\"alignLeft\",\"alignCenter\",\"alignRight\",\"alignJustify\",\"stickyHeader\"]);var A=n(74848);const y=[\"align\",\"className\",\"component\",\"padding\",\"scope\",\"size\",\"sortDirection\",\"variant\"],E=(0,f.Ay)(\"td\",{name:\"MuiTableCell\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,u.A)(n.size)}`],\"normal\"!==n.padding&&t[`padding${(0,u.A)(n.padding)}`],\"inherit\"!==n.align&&t[`align${(0,u.A)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,o.A)({},e.typography.body2,{display:\"table-cell\",verticalAlign:\"inherit\",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\\n    ${\"light\"===e.palette.mode?(0,s.a)((0,s.X4)(e.palette.divider,1),.88):(0,s.e$)((0,s.X4)(e.palette.divider,1),.68)}`,textAlign:\"left\",padding:16},\"head\"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},\"body\"===t.variant&&{color:(e.vars||e).palette.text.primary},\"footer\"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},\"small\"===t.size&&{padding:\"6px 16px\",[`&.${v.paddingCheckbox}`]:{width:24,padding:\"0 12px 0 16px\",\"& > *\":{padding:0}}},\"checkbox\"===t.padding&&{width:48,padding:\"0 0 0 4px\"},\"none\"===t.padding&&{padding:0},\"left\"===t.align&&{textAlign:\"left\"},\"center\"===t.align&&{textAlign:\"center\"},\"right\"===t.align&&{textAlign:\"right\",flexDirection:\"row-reverse\"},\"justify\"===t.align&&{textAlign:\"justify\"},t.stickyHeader&&{position:\"sticky\",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),b=a.forwardRef(function(e,t){const n=(0,p.b)({props:e,name:\"MuiTableCell\"}),{align:s=\"inherit\",className:f,component:g,padding:h,scope:v,size:b,sortDirection:_,variant:C}=n,w=(0,r.A)(n,y),S=a.useContext(c.A),T=a.useContext(d.A),O=T&&\"head\"===T.variant;let D;D=g||(O?\"th\":\"td\");let R=v;\"td\"===D?R=void 0:!R&&O&&(R=\"col\");const N=C||T&&T.variant,L=(0,o.A)({},n,{align:s,component:D,padding:h||(S&&S.padding?S.padding:\"normal\"),size:b||(S&&S.size?S.size:\"medium\"),sortDirection:_,stickyHeader:\"head\"===N&&S&&S.stickyHeader,variant:N}),P=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:[\"root\",n,i&&\"stickyHeader\",\"inherit\"!==r&&`align${(0,u.A)(r)}`,\"normal\"!==o&&`padding${(0,u.A)(o)}`,`size${(0,u.A)(a)}`]};return(0,l.A)(s,m,t)})(L);let M=null;return _&&(M=\"asc\"===_?\"ascending\":\"descending\"),(0,A.jsx)(E,(0,o.A)({as:D,ref:t,className:(0,i.A)(P.root,f),\"aria-sort\":M,scope:R,ownerState:L},w))})},14792:(e,t,n)=>{var r=n(13222),o=n(55808);e.exports=function(e){return o(r(e).toLowerCase())}},14803:(e,t,n)=>{\"use strict\";var r=n(58859),o=n(69675),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o(\"Side channel does not contain \"+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return a(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},14877:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d53011fd54cca994f454.ttf?hasvnq\"},14913:(e,t,n)=>{e.exports=!n(75872)&&!n(82451)(function(){return 7!=Object.defineProperty(n(50559)(\"div\"),\"a\",{get:function(){return 7}}).a})},14977:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>v});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(60538),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiCard\",e)}(0,d.A)(\"MuiCard\",[\"root\"]);var g=n(74848);const h=[\"className\",\"raised\"],m=(0,s.Ay)(c.A,{name:\"MuiCard\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(()=>({overflow:\"hidden\"})),v=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiCard\"}),{className:a,raised:s=!1}=n,c=(0,o.A)(n,h),d=(0,r.A)({},n,{raised:s}),p=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},f,t)})(d);return(0,g.jsx)(m,(0,r.A)({className:(0,i.A)(p.root,a),elevation:s?8:void 0,ref:t,ownerState:d},c))})},15001:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>S});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(28466),u=n(11848),c=n(25669),d=n(81984),p=n(96852),f=n(14073),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiLink\",e)}const v=(0,g.A)(\"MuiLink\",[\"root\",\"underlineNone\",\"underlineHover\",\"underlineAlways\",\"button\",\"focusVisible\"]);var A=n(86481),y=n(771);const E={primary:\"primary.main\",textPrimary:\"text.primary\",secondary:\"secondary.main\",textSecondary:\"text.secondary\",error:\"error.main\"},b=({theme:e,ownerState:t})=>{const n=(e=>E[e]||e)(t.color),r=(0,A.Yn)(e,`palette.${n}`,!1)||t.color,o=(0,A.Yn)(e,`palette.${n}Channel`);return\"vars\"in e&&o?`rgba(${o} / 0.4)`:(0,y.X4)(r,.4)};var _=n(74848);const C=[\"className\",\"color\",\"component\",\"onBlur\",\"onFocus\",\"TypographyClasses\",\"underline\",\"variant\",\"sx\"],w=(0,u.Ay)(f.A,{name:\"MuiLink\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,s.A)(n.underline)}`],\"button\"===n.component&&t.button]}})(({theme:e,ownerState:t})=>(0,o.A)({},\"none\"===t.underline&&{textDecoration:\"none\"},\"hover\"===t.underline&&{textDecoration:\"none\",\"&:hover\":{textDecoration:\"underline\"}},\"always\"===t.underline&&(0,o.A)({textDecoration:\"underline\"},\"inherit\"!==t.color&&{textDecorationColor:b({theme:e,ownerState:t})},{\"&:hover\":{textDecorationColor:\"inherit\"}}),\"button\"===t.component&&{position:\"relative\",WebkitTapHighlightColor:\"transparent\",backgroundColor:\"transparent\",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:\"pointer\",userSelect:\"none\",verticalAlign:\"middle\",MozAppearance:\"none\",WebkitAppearance:\"none\",\"&::-moz-focus-inner\":{borderStyle:\"none\"},[`&.${v.focusVisible}`]:{outline:\"auto\"}})),S=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiLink\"}),{className:u,color:f=\"primary\",component:g=\"a\",onBlur:h,onFocus:v,TypographyClasses:A,underline:y=\"always\",variant:b=\"inherit\",sx:S}=n,T=(0,r.A)(n,C),{isFocusVisibleRef:O,onBlur:D,onFocus:R,ref:N}=(0,d.A)(),[L,P]=a.useState(!1),M=(0,p.A)(t,N),x=(0,o.A)({},n,{color:f,component:g,focusVisible:L,underline:y,variant:b}),I=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:[\"root\",`underline${(0,s.A)(o)}`,\"button\"===n&&\"button\",r&&\"focusVisible\"]};return(0,l.A)(a,m,t)})(x);return(0,_.jsx)(w,(0,o.A)({color:f,className:(0,i.A)(I.root,u),classes:A,component:g,onBlur:e=>{D(e),!1===O.current&&P(!1),h&&h(e)},onFocus:e=>{R(e),!0===O.current&&P(!0),v&&v(e)},ref:M,ownerState:x,variant:b,sx:[...Object.keys(E).includes(f)?[]:[{color:f}],...Array.isArray(S)?S:[S]]},T))})},15086:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).some;r({target:\"Array\",proto:!0,forced:!n(34598)(\"some\")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},15169:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return l(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.AgGridReact=void 0;var u=s(n(81970)),c=n(88368),d=n(29389),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return o(t,e),t.prototype.render=function(){return this.props.suppressReactUi?u.default.createElement(c.AgGridReactLegacy,a({},this.props,{setGridApi:this.setGridApi})):u.default.createElement(d.AgGridReactUi,a({},this.props,{setGridApi:this.setGridApi}))},t}(u.Component);t.AgGridReact=p},15255:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(90815),o=n(28161),a=n(14073),i=n(56203),l=n(15664),s=n(81970),u=n.n(s);const c=function(e){var t=e.onClearFilters,n=e.onClose,s=e.isApplyDisabled,c=void 0!==s&&s;return u().createElement(u().Fragment,null,u().createElement(r.A,{direction:\"row\",justifyContent:\"end\",pr:4,mb:.5},u().createElement(o.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},u().createElement(l.A,{variant:\"outlined\",buttonName:(0,i.t)(\"CLEAR_FILTERS\"),onButtonClick:function(){return t()},fullwidth:!1,color:\"primary\",type:\"reset\"}),u().createElement(l.A,{variant:\"contained\",buttonName:(0,i.t)(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:c}))),u().createElement(o.A,{\"data-testid\":\"closeIcon\",onClick:n,className:\"smart-agro-lite-filter-cross\"},u().createElement(a.A,{className:\"icon-close closeIcon\"})))}},15379:(e,t,n)=>{\"use strict\";e.exports=n.p+\"52f2b51b366bcbb7999b.woff\"},15389:(e,t,n)=>{var r=n(93663),o=n(87978),a=n(83488),i=n(56449),l=n(50583);e.exports=function(e){return\"function\"==typeof e?e:null==e?a:\"object\"==typeof e?i(e)?o(e[0],e[1]):r(e):l(e)}},15407:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(61566),o=n(40921),a=n(48719),i=n(90815),l=n(16576),s=n(81970),u=n.n(s),c=(n(28706),n(11848)),d=n(28161),p=n(17630),f=(0,c.Ay)(d.A)(function(e){var t=e.theme;return{\"& .MuiButtonBase-root\":{flexDirection:\"row-reverse\",alignItems:\"center\"},\"& .MuiPaper-root\":{boxShadow:\"none\",border:\"1px solid #E8EAED\",borderRadius:\"6px !important\",padding:\"16px 32px 16px 24px\",\"&:hover\":{boxShadow:\"0px 4px 20px rgb(170 180 190 / 30%)\"},\"& .MuiAccordionSummary-root\":{flexDirection:\"row-reverse\",minHeight:t.spacing(0),gap:t.spacing(1.25),padding:t.spacing(0),\"& .MuiAccordionSummary-expandIconWrapper\":{svg:{width:\"12px\"},color:\"#696F88\",\"&.Mui-expanded\":{transform:\"rotate(90deg)\"}},\"& .MuiAccordionSummary-content\":{margin:t.spacing(0),color:\"#000000\",font:\"normal normal 600 16px/20px NotoSans-Semibold\",\"&.Mui-expanded\":{margin:t.spacing(0)}},\"& .text-label\":{fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\"},\"& .red-label\":{color:p.T.dangerRed},\"& .green-label\":{color:p.T.mainGreen}},\"& .MuiCollapse-root\":{\"& .MuiAccordionDetails-root\":{padding:\"\".concat(t.spacing(2),\" \").concat(t.spacing(5),\" \").concat(t.spacing(0),\" \").concat(t.spacing(4.5),\" \"),color:\"#232630\",font:\"normal normal 400 14px/24px NotoSans-Regular\"}},\"& .MuiButtonBase-root.Mui-expanded\":{minHeight:t.spacing(0)}}}}),g=function(e){var t=e.accordionSummary,n=e.accordionDetails,s=e.accordionKey,c=void 0===s?\"\":s,d=e.isExpand,p=void 0!==d&&d,g=e.handleChange,h=void 0===g?function(){}:g,m=e.expandIcon,v=void 0===m?u().createElement(r.A,null):m;return u().createElement(f,null,u().createElement(o.A,{key:c,expanded:p,onChange:function(){return h(c)}},u().createElement(a.A,{expandIcon:v,\"aria-controls\":\"panel1a-content\",id:\"panel1a-header\"},u().createElement(i.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",width:\"100%\"},t)),u().createElement(l.A,null,n)))};const h=u().memo(g)},15413:(e,t,n)=>{var r=n(7421)(\"wks\"),o=n(93108),a=n(56903).Symbol,i=\"function\"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)(\"Symbol.\"+e))}).store=r},15495:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},15575:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(79472)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==a},{setInterval:a})},15583:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{EventsRootRoute:()=>c,default:()=>d}),n(74423),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(27305),s=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))}),u=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,79485))}),c=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},o().createElement(u,{RBACControls:t}))}),null==n?void 0:n.map(function(e,t){return o().createElement(a.qh,{key:\"events-route-\".concat(e.moduleName),path:[i.pW[\"EVENTS-PLANNING-TARGET\"],i.pW.WEB_PRODUCT_DEMO_TRACKING].includes(e.moduleName)?\"\".concat(e.path,\"/*\"):e.path,element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(s,null)),path:i.fp.PageNotFound}))};const d=c},15614:(e,t,n)=>{\"use strict\";n.d(t,{I:()=>a});var r=n(6398),o=n(17630),a=(0,r.A)({EventBaselineFields:{height:\"calc(100vh - 220px)\"},EventBaseline:{padding:\"24px\",minHeight:\"60px\",borderRadius:\"6px\",\"& .btn-icon\":{fontSize:\"14px !important\"},marginBottom:\"10px\",\"& .colored-header-label\":{backgroundColor:o.T.accordianBg,padding:\"8px 8px 8px 12px\",color:o.T.textColor,borderRadius:\"4px\"},\"& .template-card\":{padding:\"8px 8px 8px 0px\",minWidth:\"50%\",maxWidth:\"50%\",\"& .MuiSvgIcon-root\":{fontSize:\"32px\"},\"& .MuiFormControlLabel-root\":{marginLeft:\"-5px\"}}},eventBaselineInputWrapper:{minWidth:\"240px\"},EvenbtBaselineTooltip:{\"& .MuiTooltip-popper\":{backgroundColor:o.w.palette.grey[500]}},\"& .MuiTypography-subtitle1\":{padding:\"0px !important\"}})},15617:(e,t,n)=>{\"use strict\";var r=n(33164);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},15652:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=r(function(){if(\"function\"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,\"a\",{value:8})}})},15664:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(86990),o=n(81970),a=n.n(o),i=n(11848),l=n(28161),s=(0,i.Ay)(l.A)(function(e){var t=e.theme;return{\"& .MuiButtonBase-root\":{height:t.spacing(4),padding:\"6px 12px\",font:\"normal normal 600 14px/20px NotoSans-Semibold\",\"&.MuiButton-containedPrimary:hover\":{backgroundColor:t.palette.primary.main},\"&.MuiButton-outlinedSecondary\":{border:\"1px solid \".concat(t.palette.grey[100]),color:\"#1D2B3A\"},\"&.MuiButton-outlinedPrimary\":{border:\"1px solid \".concat(t.palette.primary.main)},\"&.MuiButton-text\":{color:t.palette.text.secondary}},\"& .deactivate-btn\":{backgroundColor:t.palette.error.main,color:\"\".concat(t.palette.secondary.main,\" !important\"),\"&:hover\":{backgroundColor:\"\".concat(t.palette.error.main,\" !important\")}}}}),u=function(e){var t=e.variant,n=e.buttonName,o=e.onButtonClick,i=void 0===o?function(){}:o,l=e.startIcon,u=e.endIcon,c=e.disableElevation,d=void 0===c||c,p=e.fullwidth,f=e.disabled,g=e.type,h=e.id,m=e.className,v=(e.color,e.dataTestId);return a().createElement(s,null,a().createElement(r.A,{startIcon:l,endIcon:u,variant:t,onClick:i,disableElevation:d,fullWidth:p,disabled:f,type:g,id:h,className:m,disableRipple:!0,\"data-testid\":v},n))};const c=a().memo(u)},15750:function(e){e.exports=function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};return function(t,n,r){var o=n.prototype,a=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t=\"YYYY-MM-DDTHH:mm:ssZ\");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,o){var a=o&&o.toUpperCase();return r||n[o]||e[o]||n[a].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return a.call(this,r)}}}()},15823:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(69565),i=n(43724),l=n(72805),s=n(94644),u=n(66346),c=n(90679),d=n(6980),p=n(66699),f=n(2087),g=n(18014),h=n(57696),m=n(58229),v=n(58319),A=n(56969),y=n(39297),E=n(36955),b=n(20034),_=n(10757),C=n(2360),w=n(1625),S=n(52967),T=n(38480).f,O=n(43251),D=n(59213).forEach,R=n(87633),N=n(62106),L=n(24913),P=n(77347),M=n(35370),x=n(91181),I=n(23167),k=x.get,B=x.set,F=x.enforce,j=L.f,H=P.f,U=o.RangeError,Y=u.ArrayBuffer,G=Y.prototype,z=u.DataView,V=s.NATIVE_ARRAY_BUFFER_VIEWS,q=s.TYPED_ARRAY_TAG,W=s.TypedArray,Q=s.TypedArrayPrototype,K=s.isTypedArray,$=\"BYTES_PER_ELEMENT\",X=\"Wrong length\",J=function(e,t){N(e,t,{configurable:!0,get:function(){return k(this)[t]}})},Z=function(e){var t;return w(G,e)||\"ArrayBuffer\"===(t=E(e))||\"SharedArrayBuffer\"===t},ee=function(e,t){return K(e)&&!_(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=A(t),ee(e,t)?d(2,e[t]):H(e,t)},ne=function(e,t,n){return t=A(t),!(ee(e,t)&&b(n)&&y(n,\"value\"))||y(n,\"get\")||y(n,\"set\")||n.configurable||y(n,\"writable\")&&!n.writable||y(n,\"enumerable\")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};i?(V||(P.f=te,L.f=ne,J(Q,\"buffer\"),J(Q,\"byteOffset\"),J(Q,\"byteLength\"),J(Q,\"length\")),r({target:\"Object\",stat:!0,forced:!V},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var i=e.match(/\\d+/)[0]/8,s=e+(n?\"Clamped\":\"\")+\"Array\",u=\"get\"+e,d=\"set\"+e,f=o[s],A=f,y=A&&A.prototype,E={},_=function(e,t){j(e,t,{get:function(){return function(e,t){var n=k(e);return n.view[u](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=k(e);o.view[d](t*i+o.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};V?l&&(A=t(function(e,t,n,r){return c(e,y),I(b(t)?Z(t)?void 0!==r?new f(t,m(n,i),r):void 0!==n?new f(t,m(n,i)):new f(t):K(t)?M(A,t):a(O,A,t):new f(h(t)),e,A)}),S&&S(A,W),D(T(f),function(e){e in A||p(A,e,f[e])}),A.prototype=y):(A=t(function(e,t,n,r){c(e,y);var o,l,s,u=0,d=0;if(b(t)){if(!Z(t))return K(t)?M(A,t):a(O,A,t);o=t,d=m(n,i);var p=t.byteLength;if(void 0===r){if(p%i)throw new U(X);if((l=p-d)<0)throw new U(X)}else if((l=g(r)*i)+d>p)throw new U(X);s=l/i}else s=h(t),o=new Y(l=s*i);for(B(e,{buffer:o,byteOffset:d,byteLength:l,length:s,view:new z(o)});u<s;)_(e,u++)}),S&&S(A,W),y=A.prototype=C(Q)),y.constructor!==A&&p(y,\"constructor\",A),F(y).TypedArrayConstructor=A,q&&p(y,q,s);var w=A!==f;E[s]=A,r({global:!0,constructor:!0,forced:w,sham:!V},E),$ in A||p(A,$,i),$ in y||p(y,$,i),R(s)}):e.exports=function(){}},15867:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"lo\",{months:\"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ\".split(\"_\"),monthsShort:\"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ\".split(\"_\"),weekdays:\"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ\".split(\"_\"),weekdaysShort:\"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ\".split(\"_\"),weekdaysMin:\"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"ວັນdddd D MMMM YYYY HH:mm\"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return\"ຕອນແລງ\"===e},meridiem:function(e,t,n){return e<12?\"ຕອນເຊົ້າ\":\"ຕອນແລງ\"},calendar:{sameDay:\"[ມື້ນີ້ເວລາ] LT\",nextDay:\"[ມື້ອື່ນເວລາ] LT\",nextWeek:\"[ວັນ]dddd[ໜ້າເວລາ] LT\",lastDay:\"[ມື້ວານນີ້ເວລາ] LT\",lastWeek:\"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT\",sameElse:\"L\"},relativeTime:{future:\"ອີກ %s\",past:\"%sຜ່ານມາ\",s:\"ບໍ່ເທົ່າໃດວິນາທີ\",ss:\"%d ວິນາທີ\",m:\"1 ນາທີ\",mm:\"%d ນາທີ\",h:\"1 ຊົ່ວໂມງ\",hh:\"%d ຊົ່ວໂມງ\",d:\"1 ມື້\",dd:\"%d ມື້\",M:\"1 ເດືອນ\",MM:\"%d ເດືອນ\",y:\"1 ປີ\",yy:\"%d ປີ\"},dayOfMonthOrdinalParse:/(ທີ່)\\d{1,2}/,ordinal:function(e){return\"ທີ່\"+e}})}(n(95093))},15941:(e,t,n)=>{\"use strict\";var r,o;n.d(t,{YO:()=>Ee,zM:()=>G,p6:()=>ne,gl:()=>U,ai:()=>J,Ik:()=>Ae,Yj:()=>$});try{r=Map}catch(e){}try{o=Set}catch(e){}function a(e,t,n){if(!e||\"object\"!=typeof e||\"function\"==typeof e)return e;if(e.nodeType&&\"cloneNode\"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(i);if(r&&e instanceof r)return new Map(Array.from(e.entries()));if(o&&e instanceof o)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var l=Object.create(e);for(var s in n.push(l),e){var u=t.findIndex(function(t){return t===e[s]});l[s]=u>-1?n[u]:a(e[s],t,n)}return l}return e}function i(e){return a(e,[],[])}const l=Object.prototype.toString,s=Error.prototype.toString,u=RegExp.prototype.toString,c=\"undefined\"!=typeof Symbol?Symbol.prototype.toString:()=>\"\",d=/^Symbol\\((.*)\\)(.*)$/;function p(e,t=!1){if(null==e||!0===e||!1===e)return\"\"+e;const n=typeof e;if(\"number\"===n)return function(e){return e!=+e?\"NaN\":0===e&&1/e<0?\"-0\":\"\"+e}(e);if(\"string\"===n)return t?`\"${e}\"`:e;if(\"function\"===n)return\"[Function \"+(e.name||\"anonymous\")+\"]\";if(\"symbol\"===n)return c.call(e).replace(d,\"Symbol($1)\");const r=l.call(e).slice(8,-1);return\"Date\"===r?isNaN(e.getTime())?\"\"+e:e.toISOString(e):\"Error\"===r||e instanceof Error?\"[\"+s.call(e)+\"]\":\"RegExp\"===r?u.call(e):null}function f(e,t){let n=p(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=p(this[e],t);return null!==r?r:n},2)}let g={default:\"${path} is invalid\",required:\"${path} is a required field\",oneOf:\"${path} must be one of the following values: ${values}\",notOneOf:\"${path} must not be one of the following values: ${values}\",notType:({path:e,type:t,value:n,originalValue:r})=>{let o=null!=r&&r!==n,a=`${e} must be a \\`${t}\\` type, but the final value was: \\`${f(n,!0)}\\``+(o?` (cast from the value \\`${f(r,!0)}\\`).`:\".\");return null===n&&(a+='\\n If \"null\" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:\"${path} must be defined\"},h={length:\"${path} must be exactly ${length} characters\",min:\"${path} must be at least ${min} characters\",max:\"${path} must be at most ${max} characters\",matches:'${path} must match the following: \"${regex}\"',email:\"${path} must be a valid email\",url:\"${path} must be a valid URL\",uuid:\"${path} must be a valid UUID\",trim:\"${path} must be a trimmed string\",lowercase:\"${path} must be a lowercase string\",uppercase:\"${path} must be a upper case string\"},m={min:\"${path} must be greater than or equal to ${min}\",max:\"${path} must be less than or equal to ${max}\",lessThan:\"${path} must be less than ${less}\",moreThan:\"${path} must be greater than ${more}\",positive:\"${path} must be a positive number\",negative:\"${path} must be a negative number\",integer:\"${path} must be an integer\"},v={min:\"${path} field must be later than ${min}\",max:\"${path} field must be at earlier than ${max}\"},A={isValue:\"${path} field must be ${value}\"},y={noUnknown:\"${path} field has unspecified keys: ${unknown}\"},E={min:\"${path} field must have at least ${min} items\",max:\"${path} field must have less than or equal to ${max} items\",length:\"${path} must have ${length} items\"};Object.assign(Object.create(null),{mixed:g,string:h,number:m,date:v,object:y,array:E,boolean:A});var b=n(61448),_=n.n(b);const C=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,\"function\"==typeof t)return void(this.fn=t);if(!_()(t,\"is\"))throw new TypeError(\"`is:` is required for `when()` conditions\");if(!t.then&&!t.otherwise)throw new TypeError(\"either `then:` or `otherwise:` is required for `when()` conditions\");let{is:n,then:r,otherwise:o}=t,a=\"function\"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),i=a(...e)?r:o;if(i)return\"function\"==typeof i?i(n):n.concat(i.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!C(r))throw new TypeError(\"conditions must return a schema object\");return r.resolve(t)}};function S(e){return null==e?[]:[].concat(e)}function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}let O=/\\$\\{\\s*(\\w+)\\s*\\}/g;class D extends Error{static formatError(e,t){const n=t.label||t.path||\"this\";return n!==t.path&&(t=T({},t,{path:n})),\"string\"==typeof e?e.replace(O,(e,n)=>f(t[n])):\"function\"==typeof e?e(t):e}static isError(e){return e&&\"ValidationError\"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name=\"ValidationError\",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],S(e).forEach(e=>{D.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,D)}}function R(e,t){let{endEarly:n,tests:r,args:o,value:a,errors:i,sort:l,path:s}=e,u=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})(t),c=r.length;const d=[];if(i=i||[],!c)return i.length?u(new D(i,a,s)):u(null,a);for(let e=0;e<r.length;e++)(0,r[e])(o,function(e){if(e){if(!D.isError(e))return u(e,a);if(n)return e.value=a,u(e,a);d.push(e)}if(--c<=0){if(d.length&&(l&&d.sort(l),i.length&&d.push(...i),i=d),i.length)return void u(new D(i,a,s),a);u(null,a)}})}var N=n(73916),L=n.n(N),P=n(73668);class M{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,\"string\"!=typeof e)throw new TypeError(\"ref must be a string, got: \"+e);if(this.key=e.trim(),\"\"===e)throw new TypeError(\"ref must be a non-empty string\");this.isContext=\"$\"===this.key[0],this.isValue=\".\"===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?\"$\":this.isValue?\".\":\"\";this.path=this.key.slice(n.length),this.getter=this.path&&(0,P.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:\"ref\",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function I(e){function t(t,n){let{value:r,path:o=\"\",label:a,options:i,originalValue:l,sync:s}=t,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,[\"value\",\"path\",\"label\",\"options\",\"originalValue\",\"sync\"]);const{name:c,test:d,params:p,message:f}=e;let{parent:g,context:h}=i;function m(e){return M.isRef(e)?e.getValue(r,g,h):e}function v(e={}){const t=L()(x({value:r,originalValue:l,label:a,path:e.path||o},p,e.params),m),n=new D(D.formatError(e.message||f,t),r,t.path,e.type||c);return n.params=t,n}let A,y=x({path:o,parent:g,type:c,createError:v,resolve:m,options:i,originalValue:l},u);if(s){try{var E;if(A=d.call(y,r,y),\"function\"==typeof(null==(E=A)?void 0:E.then))throw new Error(`Validation test of type: \"${y.type}\" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void n(e)}D.isError(A)?n(A):A?n(null,A):n(v())}else try{Promise.resolve(d.call(y,r,y)).then(e=>{D.isError(e)?n(e):e?n(null,e):n(v())}).catch(n)}catch(e){n(e)}}return t.OPTIONS=e,t}function k(e,t,n,r=n){let o,a,i;return t?((0,P.forEach)(t,(l,s,u)=>{let c=s?(e=>e.substr(0,e.length-1).substr(1))(l):l;if((e=e.resolve({context:r,parent:o,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: \"${e._type}\")`);o=n,n=n&&n[c],e=e.fields[c]}a=c,i=s?\"[\"+l+\"]\":\".\"+l}),{schema:e,parent:o,parentPath:a}):{parent:o,parentPath:t,schema:e}}M.prototype.__isYupRef=!0;class B{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(M.isRef(n)?e(n):n),[])}add(e){M.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){M.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new B;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}class j{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new B,this._blacklist=new B,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(g.notType)}),this.type=(null==e?void 0:e.type)||\"mixed\",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:\"optional\"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=i(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&\"mixed\"!==this.type)throw new TypeError(`You cannot \\`concat()\\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=F({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let o=f(e),a=f(r);throw new TypeError(`The value of ${t.path||\"field\"} could not be cast to a value that satisfies the schema type: \"${n._type}\". \\n\\nattempted value: ${o} \\n`+(a!==o?`result of cast: ${a}`:\"\"))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:o,from:a=[],originalValue:i=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,u=e;l||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:o,options:t,originalValue:i,schema:this,label:this.spec.label,sync:r,from:a},d=[];this._typeError&&d.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),R({args:c,value:u,path:o,sync:r,tests:d,endEarly:s},e=>{e?n(e,u):R({tests:this.tests.concat(p),args:c,path:o,sync:r,value:u,endEarly:s},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return\"function\"==typeof n?r._validate(e,t,n):new Promise((n,o)=>r._validate(e,t,(e,t)=>{e?o(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(D.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(D.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:\"function\"==typeof e?e.call(this):i(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=g.defined){return this.test({message:e,name:\"defined\",exclusive:!0,test:e=>void 0!==e})}required(e=g.required){return this.clone({presence:\"required\"}).withMutation(t=>t.test({message:e,name:\"required\",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:\"optional\"});return e.tests=e.tests.filter(e=>\"required\"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?\"function\"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=g.default),\"function\"!=typeof t.test)throw new TypeError(\"`test` is a required parameters\");let n=this.clone(),r=I(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError(\"Exclusive tests must provide a unique `name` identifying the test\");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||\"string\"==typeof e||(t=e,e=\".\");let n=this.clone(),r=S(e).map(e=>new M(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=I({message:e,name:\"typeError\",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=g.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=I({message:t,name:\"oneOf\",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(\", \"),resolved:n}})}}),n}notOneOf(e,t=g.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=I({message:t,name:\"notOneOf\",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(\", \"),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec;return{meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)}}}j.prototype.__isYupSchema__=!0;for(const e of[\"validate\",\"validateSync\"])j.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:a,schema:i}=k(this,t,n,r.context);return i[e](o&&o[a],F({},r,{parent:o,path:t}))};for(const e of[\"equals\",\"is\"])j.prototype[e]=j.prototype.oneOf;for(const e of[\"not\",\"nope\"])j.prototype[e]=j.prototype.notOneOf;j.prototype.optional=j.prototype.notRequired;const H=j;function U(){return new H}U.prototype=H.prototype;const Y=e=>null==e;function G(){return new z}class z extends j{constructor(){super({type:\"boolean\"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),\"boolean\"==typeof e}isTrue(e=A.isValue){return this.test({message:e,name:\"is-value\",exclusive:!0,params:{value:\"true\"},test:e=>Y(e)||!0===e})}isFalse(e=A.isValue){return this.test({message:e,name:\"is-value\",exclusive:!0,params:{value:\"false\"},test:e=>Y(e)||!1===e})}}G.prototype=z.prototype;let V=/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i,q=/^((https?|ftp):)?\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i,W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Q=e=>Y(e)||e===e.trim(),K={}.toString();function $(){return new X}class X extends j{constructor(){super({type:\"string\"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===K?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),\"string\"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=h.length){return this.test({message:t,name:\"length\",exclusive:!0,params:{length:e},test(t){return Y(t)||t.length===this.resolve(e)}})}min(e,t=h.min){return this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(t){return Y(t)||t.length>=this.resolve(e)}})}max(e,t=h.max){return this.test({name:\"max\",exclusive:!0,message:t,params:{max:e},test(t){return Y(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&(\"object\"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||\"matches\",message:n||h.matches,params:{regex:e},test:t=>Y(t)||\"\"===t&&o||-1!==t.search(e)})}email(e=h.email){return this.matches(V,{name:\"email\",message:e,excludeEmptyString:!0})}url(e=h.url){return this.matches(q,{name:\"url\",message:e,excludeEmptyString:!0})}uuid(e=h.uuid){return this.matches(W,{name:\"uuid\",message:e,excludeEmptyString:!1})}ensure(){return this.default(\"\").transform(e=>null===e?\"\":e)}trim(e=h.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:\"trim\",test:Q})}lowercase(e=h.lowercase){return this.transform(e=>Y(e)?e:e.toLowerCase()).test({message:e,name:\"string_case\",exclusive:!0,test:e=>Y(e)||e===e.toLowerCase()})}uppercase(e=h.uppercase){return this.transform(e=>Y(e)?e:e.toUpperCase()).test({message:e,name:\"string_case\",exclusive:!0,test:e=>Y(e)||e===e.toUpperCase()})}}function J(){return new Z}$.prototype=X.prototype;class Z extends j{constructor(){super({type:\"number\"}),this.withMutation(()=>{this.transform(function(e){let t=e;if(\"string\"==typeof t){if(t=t.replace(/\\s/g,\"\"),\"\"===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),\"number\"==typeof e&&!(e=>e!=+e)(e)}min(e,t=m.min){return this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(t){return Y(t)||t>=this.resolve(e)}})}max(e,t=m.max){return this.test({message:t,name:\"max\",exclusive:!0,params:{max:e},test(t){return Y(t)||t<=this.resolve(e)}})}lessThan(e,t=m.lessThan){return this.test({message:t,name:\"max\",exclusive:!0,params:{less:e},test(t){return Y(t)||t<this.resolve(e)}})}moreThan(e,t=m.moreThan){return this.test({message:t,name:\"min\",exclusive:!0,params:{more:e},test(t){return Y(t)||t>this.resolve(e)}})}positive(e=m.positive){return this.moreThan(0,e)}negative(e=m.negative){return this.lessThan(0,e)}integer(e=m.integer){return this.test({name:\"integer\",message:e,test:e=>Y(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>Y(e)?e:0|e)}round(e){var t;let n=[\"ceil\",\"floor\",\"round\",\"trunc\"];if(\"trunc\"===(e=(null==(t=e)?void 0:t.toLowerCase())||\"round\"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError(\"Only valid options for round() are: \"+n.join(\", \"));return this.transform(t=>Y(t)?t:Math[e](t))}}J.prototype=Z.prototype;var ee=/^(\\d{4}|[+\\-]\\d{6})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:[ T]?(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,\\.](\\d{1,}))?)?(?:(Z)|([+\\-])(\\d{2})(?::?(\\d{2}))?)?)?$/;let te=new Date(\"\");function ne(){return new re}class re extends j{constructor(){super({type:\"date\"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],o=0;if(n=ee.exec(e)){for(var a,i=0;a=r[i];++i)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&\"\"!==n[8]||void 0!==n[9]&&\"\"!==n[9]?(\"Z\"!==n[8]&&void 0!==n[9]&&(o=60*n[10]+n[11],\"+\"===n[9]&&(o=0-o)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+o,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?te:new Date(e))})})}_typeCheck(e){return t=e,\"[object Date]\"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let n;if(M.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\\`${t}\\` must be a Date or a value that can be \\`cast()\\` to a Date`);n=r}return n}min(e,t=v.min){let n=this.prepareParam(e,\"min\");return this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(e){return Y(e)||e>=this.resolve(n)}})}max(e,t=v.max){let n=this.prepareParam(e,\"max\");return this.test({message:t,name:\"max\",exclusive:!0,params:{max:e},test(e){return Y(e)||e<=this.resolve(n)}})}}re.INVALID_DATE=te,ne.prototype=re.prototype,ne.INVALID_DATE=te;var oe=n(4124),ae=n.n(oe),ie=n(84058),le=n.n(ie),se=n(79674),ue=n.n(se),ce=n(92981),de=n.n(ce);function pe(e,t){let n=1/0;return e.some((e,r)=>{var o;if(-1!==(null==(o=t.path)?void 0:o.indexOf(e)))return n=r,!0}),n}function fe(e){return(t,n)=>pe(e,t)-pe(e,n)}function ge(){return ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(this,arguments)}let he=e=>\"[object Object]\"===Object.prototype.toString.call(e);const me=fe([]);class ve extends j{constructor(e){super({type:\"object\"}),this.fields=Object.create(null),this._sortErrors=me,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return he(e)||\"function\"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let o=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,i=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),l={},s=ge({},t,{parent:l,__validating:t.__validating||!1}),u=!1;for(const e of i){let n=o[e],i=_()(r,e);if(n){let o,a=r[e];s.path=(t.path?`${t.path}.`:\"\")+e,n=n.resolve({value:a,context:t.context,parent:l});let i=\"spec\"in n?n.spec:void 0,c=null==i?void 0:i.strict;if(null==i?void 0:i.strip){u=u||e in r;continue}o=t.__validating&&c?r[e]:n.cast(r[e],s),void 0!==o&&(l[e]=o)}else i&&!a&&(l[e]=r[e]);l[e]!==r[e]&&(u=!0)}return u?l:r}_validate(e,t={},n){let r=[],{sync:o,from:a=[],originalValue:i=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;a=[{schema:this,value:i},...a],t.__validating=!0,t.originalValue=i,t.from=a,super._validate(e,t,(e,u)=>{if(e){if(!D.isError(e)||l)return void n(e,u);r.push(e)}if(!s||!he(u))return void n(r[0]||null,u);i=i||u;let c=this._nodes.map(e=>(n,r)=>{let o=-1===e.indexOf(\".\")?(t.path?`${t.path}.`:\"\")+e:`${t.path||\"\"}[\"${e}\"]`,l=this.fields[e];l&&\"validate\"in l?l.validate(u[e],ge({},t,{path:o,from:a,strict:!0,parent:u,originalValue:i[e]}),r):r(null)});R({sync:o,tests:c,value:u,errors:r,endEarly:l,sort:this._sortErrors,path:t.path},n)})}clone(e){const t=super.clone(e);return t.fields=ge({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];void 0===r?n[e]=t:r instanceof j&&t instanceof j&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{const n=this.fields[t];e[t]=\"default\"in n?n.getDefault():void 0}),e}_getDefault(){return\"default\"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=fe(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=(0,P.split)(e)[0];r.add(a),o.has(`${t}-${a}`)||n.push([t,a])}for(const t in e)if(_()(e,t)){let n=e[t];r.add(t),M.isRef(n)&&n.isSibling?a(n.path,t):C(n)&&\"deps\"in n&&n.deps.forEach(e=>a(e,t))}return de().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const t of e)delete n[t];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,P.getter)(e,!0);return this.transform(o=>{if(null==o)return o;let a=o;return _()(o,e)&&(a=ge({},o),n||delete a[e],a[t]=r(o)),a})}noUnknown(e=!0,t=y.noUnknown){\"string\"==typeof e&&(t=e,e=!0);let n=this.test({name:\"noUnknown\",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(\", \")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=y.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ue()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(le())}snakeCase(){return this.transformKeys(ae())}constantCase(){return this.transformKeys(e=>ae()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=L()(this.fields,e=>e.describe()),e}}function Ae(e){return new ve(e)}function ye(){return ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}function Ee(e){return new be(e)}Ae.prototype=ve.prototype;class be extends j{constructor(e){super({type:\"array\"}),this.innerType=void 0,this.innerType=e,this.withMutation(()=>{this.transform(function(e){if(\"string\"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const o=n.map((e,n)=>{const o=this.innerType.cast(e,ye({},t,{path:`${t.path||\"\"}[${n}]`}));return o!==e&&(r=!0),o});return r?o:n}_validate(e,t={},n){var r,o;let a=[],i=t.sync,l=t.path,s=this.innerType,u=null!=(r=t.abortEarly)?r:this.spec.abortEarly,c=null!=(o=t.recursive)?o:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!D.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!s||!this._typeCheck(r))return void n(a[0]||null,r);d=d||r;let o=new Array(r.length);for(let e=0;e<r.length;e++){let n=r[e],a=`${t.path||\"\"}[${e}]`,i=ye({},t,{path:a,strict:!0,parent:r,index:e,originalValue:d[e]});o[e]=(e,t)=>s.validate(n,i,t)}R({sync:i,path:l,value:r,errors:a,endEarly:u,tests:o},n)})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!C(e))throw new TypeError(\"`array.of()` sub-schema must be a valid yup schema not: \"+f(e));return t.innerType=e,t}length(e,t=E.length){return this.test({message:t,name:\"length\",exclusive:!0,params:{length:e},test(t){return Y(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||E.min,this.test({message:t,name:\"min\",exclusive:!0,params:{min:e},test(t){return Y(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||E.max,this.test({message:t,name:\"max\",exclusive:!0,params:{max:e},test(t){return Y(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}Ee.prototype=be.prototype},16034:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(32357).values;r({target:\"Object\",stat:!0},{values:function(e){return o(e)}})},16193:(e,t,n)=>{\"use strict\";var r=n(84215);e.exports=\"NODE\"===r},16468:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(79504),i=n(92796),l=n(36840),s=n(3451),u=n(72652),c=n(90679),d=n(94901),p=n(64117),f=n(20034),g=n(79039),h=n(84428),m=n(10687),v=n(23167);e.exports=function(e,t,n){var A=-1!==e.indexOf(\"Map\"),y=-1!==e.indexOf(\"Weak\"),E=A?\"set\":\"add\",b=o[e],_=b&&b.prototype,C=b,w={},S=function(e){var t=a(_[e]);l(_,e,\"add\"===e?function(e){return t(this,0===e?0:e),this}:\"delete\"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:\"get\"===e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:\"has\"===e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(i(e,!d(b)||!(y||_.forEach&&!g(function(){(new b).entries().next()}))))C=n.getConstructor(t,e,A,E),s.enable();else if(i(e,!0)){var T=new C,O=T[E](y?{}:-0,1)!==T,D=g(function(){T.has(1)}),R=h(function(e){new b(e)}),N=!y&&g(function(){for(var e=new b,t=5;t--;)e[E](t,t);return!e.has(-0)});R||((C=t(function(e,t){c(e,_);var n=v(new b,e,C);return p(t)||u(t,n[E],{that:n,AS_ENTRIES:A}),n})).prototype=_,_.constructor=C),(D||N)&&(S(\"delete\"),S(\"has\"),A&&S(\"get\")),(N||O)&&S(E),y&&_.clear&&delete _.clear}return w[e]=C,r({global:!0,constructor:!0,forced:C!==b},w),m(C,e),y||n.setStrong(C,e,A),C}},16499:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565),a=n(79306),i=n(36043),l=n(1103),s=n(72652);r({target:\"Promise\",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=i.f(t),r=n.resolve,u=n.reject,c=l(function(){var n=a(t.resolve),i=[],l=0,c=1;s(e,function(e){var a=l++,s=!1;c++,o(n,t,e).then(function(e){s||(s=!0,i[a]=e,--c||r(i))},u)}),--c||r(i)});return c.error&&u(c.value),n.promise}})},16540:(e,t,n)=>{\"use strict\";e.exports=n.p+\"49598b1b805cb0d217f1.eot\"},16576:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>m});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(38413),d=n(31609);function p(e){return(0,d.Ay)(\"MuiAccordionDetails\",e)}(0,c.A)(\"MuiAccordionDetails\",[\"root\"]);var f=n(74848);const g=[\"className\"],h=(0,s.Ay)(\"div\",{name:\"MuiAccordionDetails\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),m=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiAccordionDetails\"}),{className:a}=n,s=(0,o.A)(n,g),c=n,d=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},p,t)})(c);return(0,f.jsx)(h,(0,r.A)({className:(0,i.A)(d.root,a),ref:t,ownerState:c},s))})},16606:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(47379),o=n(82858);function a({props:e,name:t,defaultTheme:n,themeId:a}){let i=(0,o.A)(n);a&&(i=i[a]||i);const l=function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,o):o}({theme:i,name:t,props:e});return l}},16618:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){return\"m\"===n?t?\"хвилина\":\"хвилину\":\"h\"===n?t?\"година\":\"годину\":e+\" \"+(r=+e,o={ss:t?\"секунда_секунди_секунд\":\"секунду_секунди_секунд\",mm:t?\"хвилина_хвилини_хвилин\":\"хвилину_хвилини_хвилин\",hh:t?\"година_години_годин\":\"годину_години_годин\",dd:\"день_дні_днів\",MM:\"місяць_місяці_місяців\",yy:\"рік_роки_років\"}[n].split(\"_\"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}function n(e){return function(){return e+\"о\"+(11===this.hours()?\"б\":\"\")+\"] LT\"}}e.defineLocale(\"uk\",{months:{format:\"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня\".split(\"_\"),standalone:\"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень\".split(\"_\")},monthsShort:\"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд\".split(\"_\"),weekdays:function(e,t){var n={nominative:\"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота\".split(\"_\"),accusative:\"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу\".split(\"_\"),genitive:\"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи\".split(\"_\")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\\[[ВвУу]\\]) ?dddd/.test(t)?\"accusative\":/\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(t)?\"genitive\":\"nominative\"][e.day()]:n.nominative},weekdaysShort:\"нд_пн_вт_ср_чт_пт_сб\".split(\"_\"),weekdaysMin:\"нд_пн_вт_ср_чт_пт_сб\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY р.\",LLL:\"D MMMM YYYY р., HH:mm\",LLLL:\"dddd, D MMMM YYYY р., HH:mm\"},calendar:{sameDay:n(\"[Сьогодні \"),nextDay:n(\"[Завтра \"),lastDay:n(\"[Вчора \"),nextWeek:n(\"[У] dddd [\"),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n(\"[Минулої] dddd [\").call(this);case 1:case 2:case 4:return n(\"[Минулого] dddd [\").call(this)}},sameElse:\"L\"},relativeTime:{future:\"за %s\",past:\"%s тому\",s:\"декілька секунд\",ss:t,m:t,mm:t,h:\"годину\",hh:t,d:\"день\",dd:t,M:\"місяць\",MM:t,y:\"рік\",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?\"ночі\":e<12?\"ранку\":e<17?\"дня\":\"вечора\"},dayOfMonthOrdinalParse:/\\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case\"M\":case\"d\":case\"DDD\":case\"w\":case\"W\":return e+\"-й\";case\"D\":return e+\"-го\";default:return e}},week:{dow:1,doy:7}})}(n(95093))},16655:(e,t,n)=>{\"use strict\";var r=n(71748);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=function(t){function n(e){var t;return(0,i.default)(this,n),(t=(0,s.default)(this,(0,u.default)(n).call(this,e))).timer=null,t.state={},t.handleInterval=function(){var e=t.props,n=e.children,r=e.direction,o=e.onChangeIndex,a=e.slideCount,i=t.state.index,l=i;\"incremental\"===r?l+=1:l-=1,(a||n)&&(l=(0,g.mod)(l,a||d.default.Children.count(n))),void 0===t.props.index&&t.setState({index:l}),o&&o(l,i)},t.handleChangeIndex=function(e,n,r){void 0===t.props.index&&t.setState({index:e}),t.props.onChangeIndex&&t.props.onChangeIndex(e,n,r)},t.handleSwitching=function(e,n){t.timer?(clearInterval(t.timer),t.timer=null):\"end\"===n&&t.startInterval(),t.props.onSwitching&&t.props.onSwitching(e,n)},t.handleVisibilityChange=function(e){e.target.hidden?clearInterval(t.timer):t.startInterval()},t.state.index=e.index||0,t}return(0,c.default)(n,t),(0,l.default)(n,[{key:\"componentDidMount\",value:function(){this.startInterval()}},{key:\"UNSAFE_componentWillReceiveProps\",value:function(e){var t=e.index;\"number\"==typeof t&&t!==this.props.index&&this.setState({index:t})}},{key:\"componentDidUpdate\",value:function(e){!(0,p.shallowEqualObjects)({index:e.index,interval:e.interval,autoplay:e.autoplay},{index:this.props.index,interval:this.props.interval,autoplay:this.props.autoplay})&&this.startInterval()}},{key:\"componentWillUnmount\",value:function(){clearInterval(this.timer)}},{key:\"startInterval\",value:function(){var e=this.props,t=e.autoplay,n=e.interval;clearInterval(this.timer),t&&(this.timer=setInterval(this.handleInterval,n))}},{key:\"render\",value:function(){var t=this.props,n=t.autoplay,r=(t.direction,t.index,t.interval,t.onChangeIndex),i=(0,a.default)(t,[\"autoplay\",\"direction\",\"index\",\"interval\",\"onChangeIndex\"]),l=this.state.index;return n?d.default.createElement(f.default,{target:\"document\",onVisibilityChange:this.handleVisibilityChange},d.default.createElement(e,(0,o.default)({index:l,onChangeIndex:this.handleChangeIndex,onSwitching:this.handleSwitching},i))):d.default.createElement(e,(0,o.default)({index:l,onChangeIndex:r},i))}}]),n}(d.default.Component);return t.propTypes={},t.defaultProps={autoplay:!0,direction:\"incremental\",interval:3e3},t};var o=r(n(80772)),a=r(n(35233)),i=r(n(81297)),l=r(n(44953)),s=r(n(74338)),u=r(n(12977)),c=r(n(67217)),d=r(n(81970)),p=(r(n(5556)),n(83390)),f=r(n(43760)),g=n(77004)},16750:(e,t,n)=>{\"use strict\";e.exports=n.p+\"03caa3c1b84861825aea.woff2\"},16823:e=>{\"use strict\";var t=String;e.exports=function(e){try{return t(e)}catch(e){return\"Object\"}}},17091:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>c,p0:()=>l});var r=n(98587),o=n(58168);const a=[\"duration\",\"easing\",\"delay\"],i={easeInOut:\"cubic-bezier(0.4, 0, 0.2, 1)\",easeOut:\"cubic-bezier(0.0, 0, 0.2, 1)\",easeIn:\"cubic-bezier(0.4, 0, 1, 1)\",sharp:\"cubic-bezier(0.4, 0, 0.6, 1)\"},l={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return`${Math.round(e)}ms`}function u(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function c(e){const t=(0,o.A)({},i,e.easing),n=(0,o.A)({},l,e.duration);return(0,o.A)({getAutoHeightDuration:u,create:(e=[\"all\"],o={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:u=0}=o;return(0,r.A)(o,a),(Array.isArray(e)?e:[e]).map(e=>`${e} ${\"string\"==typeof i?i:s(i)} ${l} ${\"string\"==typeof u?u:s(u)}`).join(\",\")}},e,{easing:t,duration:n})}},17160:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"hy-am\",{months:{format:\"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի\".split(\"_\"),standalone:\"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր\".split(\"_\")},monthsShort:\"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ\".split(\"_\"),weekdays:\"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ\".split(\"_\"),weekdaysShort:\"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ\".split(\"_\"),weekdaysMin:\"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY թ.\",LLL:\"D MMMM YYYY թ., HH:mm\",LLLL:\"dddd, D MMMM YYYY թ., HH:mm\"},calendar:{sameDay:\"[այսօր] LT\",nextDay:\"[վաղը] LT\",lastDay:\"[երեկ] LT\",nextWeek:function(){return\"dddd [օրը ժամը] LT\"},lastWeek:function(){return\"[անցած] dddd [օրը ժամը] LT\"},sameElse:\"L\"},relativeTime:{future:\"%s հետո\",past:\"%s առաջ\",s:\"մի քանի վայրկյան\",ss:\"%d վայրկյան\",m:\"րոպե\",mm:\"%d րոպե\",h:\"ժամ\",hh:\"%d ժամ\",d:\"օր\",dd:\"%d օր\",M:\"ամիս\",MM:\"%d ամիս\",y:\"տարի\",yy:\"%d տարի\"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?\"գիշերվա\":e<12?\"առավոտվա\":e<17?\"ցերեկվա\":\"երեկոյան\"},dayOfMonthOrdinalParse:/\\d{1,2}|\\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case\"DDD\":case\"w\":case\"W\":case\"DDDo\":return 1===e?e+\"-ին\":e+\"-րդ\";default:return e}},week:{dow:1,doy:7}})}(n(95093))},17197:(e,t,n)=>{\"use strict\";n.d(t,{Q:()=>r});var r=function(e){return e.RETAILERS_BGP_DETAILS=\"Retailers BGP Details\",e.TMHQ_BGP_DETAILS=\"TMHQ BGP Details\",e.MY_UPLOADS=\"My Uploads\",e.MY_DOWNLOADS=\"My Downloads\",e}({})},17241:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(81970);const o=n.n(r)().createContext(null)},17255:(e,t,n)=>{var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},17346:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},17357:function(e,t,n){!function(e){\"use strict\";var t={1:\"১\",2:\"২\",3:\"৩\",4:\"৪\",5:\"৫\",6:\"৬\",7:\"৭\",8:\"৮\",9:\"৯\",0:\"০\"},n={\"১\":\"1\",\"২\":\"2\",\"৩\":\"3\",\"৪\":\"4\",\"৫\":\"5\",\"৬\":\"6\",\"৭\":\"7\",\"৮\":\"8\",\"৯\":\"9\",\"০\":\"0\"};e.defineLocale(\"bn-bd\",{months:\"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর\".split(\"_\"),monthsShort:\"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে\".split(\"_\"),weekdays:\"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার\".split(\"_\"),weekdaysShort:\"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি\".split(\"_\"),weekdaysMin:\"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি\".split(\"_\"),longDateFormat:{LT:\"A h:mm সময়\",LTS:\"A h:mm:ss সময়\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm সময়\",LLLL:\"dddd, D MMMM YYYY, A h:mm সময়\"},calendar:{sameDay:\"[আজ] LT\",nextDay:\"[আগামীকাল] LT\",nextWeek:\"dddd, LT\",lastDay:\"[গতকাল] LT\",lastWeek:\"[গত] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s পরে\",past:\"%s আগে\",s:\"কয়েক সেকেন্ড\",ss:\"%d সেকেন্ড\",m:\"এক মিনিট\",mm:\"%d মিনিট\",h:\"এক ঘন্টা\",hh:\"%d ঘন্টা\",d:\"এক দিন\",dd:\"%d দিন\",M:\"এক মাস\",MM:\"%d মাস\",y:\"এক বছর\",yy:\"%d বছর\"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),\"রাত\"===t?e<4?e:e+12:\"ভোর\"===t||\"সকাল\"===t?e:\"দুপুর\"===t?e>=3?e:e+12:\"বিকাল\"===t||\"সন্ধ্যা\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"রাত\":e<6?\"ভোর\":e<12?\"সকাল\":e<15?\"দুপুর\":e<18?\"বিকাল\":e<20?\"সন্ধ্যা\":\"রাত\"},week:{dow:0,doy:6}})}(n(95093))},17365:(e,t,n)=>{\"use strict\";function r(e,t){\"function\"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},17383:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")},e.exports.__esModule=!0,e.exports.default=e.exports},17437:(e,t,n)=>{\"use strict\";n.d(t,{AH:()=>p,i7:()=>f,mL:()=>d});var r,o,a=n(24684),i=n(81970),l=n(30041),s=n(71287),u=n(43174),c=(n(55655),n(4146),function(e,t){var n=arguments;if(null==t||!a.h.call(t,\"css\"))return i.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=a.E,o[1]=(0,a.c)(e,t);for(var l=2;l<r;l++)o[l]=n[l];return i.createElement.apply(null,o)});r=c||(c={}),o||(o=r.JSX||(r.JSX={}));var d=(0,a.w)(function(e,t){var n=e.styles,r=(0,u.J)([n],void 0,i.useContext(a.T)),o=i.useRef();return(0,s.i)(function(){var e=t.key+\"-global\",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion=\"'+e+\" \"+r.name+'\"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute(\"data-emotion\",e),n.hydrate([i])),o.current=[n,a],function(){n.flush()}},[t]),(0,s.i)(function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,l.sk)(t,r.next,!0),n.tags.length){var a=n.tags[n.tags.length-1].nextElementSibling;n.before=a,n.flush()}t.insert(\"\",r,n,!1)}},[t,r.name]),null});function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.J)(t)}function f(){var e=p.apply(void 0,arguments),t=\"animation-\"+e.name;return{name:t,styles:\"@keyframes \"+t+\"{\"+e.styles+\"}\",anim:1,toString:function(){return\"_EMO_\"+this.name+\"_\"+this.styles+\"_EMO_\"}}}},17538:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"si\",{months:\"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්\".split(\"_\"),monthsShort:\"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ\".split(\"_\"),weekdays:\"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා\".split(\"_\"),weekdaysShort:\"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන\".split(\"_\"),weekdaysMin:\"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"a h:mm\",LTS:\"a h:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY MMMM D\",LLL:\"YYYY MMMM D, a h:mm\",LLLL:\"YYYY MMMM D [වැනි] dddd, a h:mm:ss\"},calendar:{sameDay:\"[අද] LT[ට]\",nextDay:\"[හෙට] LT[ට]\",nextWeek:\"dddd LT[ට]\",lastDay:\"[ඊයේ] LT[ට]\",lastWeek:\"[පසුගිය] dddd LT[ට]\",sameElse:\"L\"},relativeTime:{future:\"%sකින්\",past:\"%sකට පෙර\",s:\"තත්පර කිහිපය\",ss:\"තත්පර %d\",m:\"මිනිත්තුව\",mm:\"මිනිත්තු %d\",h:\"පැය\",hh:\"පැය %d\",d:\"දිනය\",dd:\"දින %d\",M:\"මාසය\",MM:\"මාස %d\",y:\"වසර\",yy:\"වසර %d\"},dayOfMonthOrdinalParse:/\\d{1,2} වැනි/,ordinal:function(e){return e+\" වැනි\"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return\"ප.ව.\"===e||\"පස් වරු\"===e},meridiem:function(e,t,n){return e>11?n?\"ප.ව.\":\"පස් වරු\":n?\"පෙ.ව.\":\"පෙර වරු\"}})}(n(95093))},17575:(e,t,n)=>{\"use strict\";n.d(t,{q:()=>l}),n(74423),n(21699);var r=n(14073),o=n(81970),a=n.n(o),i=n(17630),l=function(e){var t=e.data,n=e.color;if(e.translation,null==t||!t.status)return null;var o=t.status,l=o,s=o;if(\"none\"===n)return a().createElement(r.A,null,s);var u={orange:[\"IN_PROGRESS\",\"PICKED\",\"ASSIGNED\",\"DEMO_FIRST_VISIT_COMPLETED\",\"DEMO_SECOND_VISIT_COMPLETED\"],green:[\"COMPLETED\",\"DEMO_COMPLETED\"],primaryLight:[\"CREATED\",\"DISPATCHED\",\"NEW\"],red:[\"DEMO_NOT_STARTED\",\"REJECTED\"]};return u.orange.includes(o)?a().createElement(r.A,{color:i.T.orange},l):u.green.includes(o)?a().createElement(r.A,{color:i.T.activeGreen},l):u.primaryLight.includes(o)?a().createElement(r.A,{color:i.w.palette.primary.light},l):u.red.includes(o)?a().createElement(r.A,{color:i.T.dangerRed},l):a().createElement(r.A,null,l)}},17578:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l,O:()=>i}),n(27495);var r=n(95093),o=n.n(r),a=n(15941),i=function(){return a.Ik().shape({tmhq:a.YO().min(1,\"TMHQ is required\"),mdohq:a.YO().min(1,\"MDOHQ is required\"),brands:a.YO().min(1,\"Brand is required\"),fromDate:a.Yj().notRequired().nullable(),toDate:a.YO().notRequired().nullable().test(\"is-valid-date\",\"Invalid Date\",function(e){return!(e&&e.length>0&&o()().isValid(null==e?void 0:e[1]))||o()(null==e?void 0:e[1],\"MM/DD/YYYY\").isSameOrAfter(null==e?void 0:e[0])})})},l=function(){return a.Ik().shape({retailer:a.YO().min(1,\"Retailer is required\")})}},17630:(e,t,n)=>{\"use strict\";n.d(t,{T:()=>o,w:()=>s});var r=n(76544),o={mainGreen:\"#62801E\",mainBlue:\"#0071CD\",activeGreen:\"#14803C\",darkBlue:\"#00004B\",mainYellow:\"#FEE123\",lightwhite:\"#F3F4F6\",borderColor:\"#CFD3DB\",borderGrey:\"#C2C7D0\",iconColor:\"#A3A9B9\",lightBG:\"#FAFBFC\",shadow1:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",borderColor1:\"#C2C7D0\",borderColor2:\"#E8EAED\",mainHeadingBlack:\"#14151C\",bodyBlack:\"#232630\",primaryBlack:\"#000000\",dangerRed:\"#CF3537\",secondaryTextColor:\"#696F88\",dropDownBorderColor:\"#F1F1F1\",white:\"#ffffff\",webgray:\"#2F3031\",webgrayLight:\"#707374\",graybg:\"#F2F4F6\",greyShade:\"#C1C5C8\",textColor:\"#363948\",accordianBg:\"#F6F2FE\",borderGreyList:\"#DFE2E7\",secondaryBlack:\" #111928\",greyText:\"#4D5165\",lightBlue:\"#005693\",uranianBlue:\"#C6E6FF\",mainBlue1:\"#1D2B3A\",orange:\"#E99921\",greenProgress:\"#0C612C\",greenBorder:\"#C3EAD1\",greyBg:\"#F4F4F4\"},a=\"NotoSans-Medium\",i=\"NotoSans-Regular\",l=\"NotoSans-Bold\",s=(0,r.A)({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},palette:{primary:{main:o.mainGreen,light:o.mainBlue,dark:o.darkBlue},secondary:{main:o.white,light:o.lightwhite,dark:o.lightBG},error:{main:o.dangerRed},success:{main:o.mainGreen,light:o.activeGreen,dark:o.darkBlue},info:{main:o.iconColor,dark:o.mainHeadingBlack,light:o.lightBlue,contrastText:o.orange},background:{default:o.white},grey:{100:o.borderGrey,200:o.secondaryTextColor,300:o.borderColor1,400:o.primaryBlack,500:o.secondaryTextColor,700:o.greyShade,800:o.borderGreyList,900:o.greyText},text:{primary:o.mainHeadingBlack,secondary:o.bodyBlack}},typography:{fontFamily:i,fontWeightLight:\"normal\",h1:{fontWeight:\"500\",fontSize:\"24px\",lineHeight:\"24px\",fontFamily:a,color:o.primaryBlack},h2:{fontWeight:\"700\",fontSize:\"20px\",lineHeight:\"27px\",fontFamily:l,color:o.bodyBlack},h3:{fontWeight:\"700\",fontSize:\"14px\",lineHeight:\"20px\",fontFamily:l,color:o.mainHeadingBlack},h4:{fontWeight:\"700\",fontSize:\"14px\",lineHeight:\"27px\",fontFamily:l,color:o.bodyBlack},h5:{color:o.bodyBlack,fontFamily:a,fontSize:\"14px\",lineHeight:\"20px\",fontWeight:\"500\"},h6:{color:\"\".concat(o.mainHeadingBlack,\" !important\")},subtitle1:{fontWeight:\"600\",fontSize:\"16px\",lineHeight:\"22px\",fontFamily:l,color:o.mainHeadingBlack},subtitle2:{fontWeight:\"600\",fontSize:\"14px\",lineHeight:\"20px\",fontFamily:l,color:\"\".concat(o.mainHeadingBlack,\" !important\")},body1:{fontWeight:\"400\",fontSize:\"14px\",fontFamily:i,color:o.bodyBlack,lineHeight:\"24px\"},body2:{fontWeight:\"400\",fontSize:\"12px\",lineHeight:\"16px\",fontFamily:i,color:o.bodyBlack},button:{fontFamily:l,fontWeight:\"600\",textTransform:\"capitalize\",whiteSpace:\"nowrap\"}},components:{MuiTextField:{defaultProps:{size:\"small\"}},MuiCheckbox:{defaultProps:{size:\"small\"}},MuiSelect:{defaultProps:{size:\"small\"},styleOverrides:{select:{zIndex:1}}},MuiInputBase:{styleOverrides:{root:{\"& img\":{position:\"absolute\",right:\"10px\"},\"&:hover\":{\"& .MuiOutlinedInput-notchedOutline\":{borderColor:o.borderGrey}},\"& input, & textarea\":{boxSizing:\"border-box\",height:\"unset\"}}}},MuiDivider:{styleOverrides:{root:{borderColor:\"#BCBCBC\"}}},MuiButton:{defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiButtonBase:{styleOverrides:{root:{textTransform:\"capitalize\"}},defaultProps:{disableRipple:!0,disableTouchRipple:!0}},MuiOutlinedInput:{styleOverrides:{multiline:{paddingLeft:\"8px\",paddingRight:\"8px\",\"& textarea\":{paddingLeft:\"0px\",paddingRight:\"0px\"}},input:{paddingLeft:\"8px\",paddingRight:\"8px\",fontWeight:500,color:o.bodyBlack}}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:o.white,color:o.secondaryBlack,boxShadow:o.shadow1,padding:\"8px\",margin:\"0px\",marginTop:\"0px !important\",marginBottom:\"0px !important\"},arrow:{color:o.white}}}}})},17633:(e,t,n)=>{\"use strict\";var r=n(81970);function o(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var a=Object.prototype.hasOwnProperty,i=/^[: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]*$/,l={},s={};function u(e){return!!a.call(s,e)||!a.call(l,e)&&(i.test(e)?s[e]=!0:(l[e]=!0,!1))}function c(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var d={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){d[e]=new c(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];d[t]=new c(t,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){d[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){d[e]=new c(e,2,!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\".split(\" \").forEach(function(e){d[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){d[e]=new c(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){d[e]=new c(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){d[e]=new c(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){d[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var p=/[\\-:]([a-z])/g;function f(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\".split(\" \").forEach(function(e){var t=e.replace(p,f);d[t]=new c(t,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(p,f);d[t]=new c(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(p,f);d[t]=new c(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var g={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},h=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(g).forEach(function(e){h.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),g[t]=g[e]})});var m=/[\"'&<>]/;function v(e){if(\"boolean\"==typeof e||\"number\"==typeof e)return\"\"+e;e=\"\"+e;var t=m.exec(e);if(t){var n,r=\"\",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=\"&quot;\";break;case 38:t=\"&amp;\";break;case 39:t=\"&#x27;\";break;case 60:t=\"&lt;\";break;case 62:t=\"&gt;\";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var A=/([A-Z])/g,y=/^ms-/,E=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var _=new Map;function C(e,t,n){if(\"object\"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(a.call(n,r)){var i=n[r];if(null!=i&&\"boolean\"!=typeof i&&\"\"!==i){if(0===r.indexOf(\"--\")){var l=v(r);i=v((\"\"+i).trim())}else{l=r;var s=_.get(l);void 0!==s||(s=v(l.replace(A,\"-$1\").toLowerCase().replace(y,\"-ms-\")),_.set(l,s)),l=s,i=\"number\"==typeof i?0===i||a.call(g,r)?\"\"+i:i+\"px\":v((\"\"+i).trim())}t?(t=!1,e.push(' style=\"',l,\":\",i)):e.push(\";\",l,\":\",i)}}t||e.push('\"')}function w(e,t,n,r){switch(n){case\"style\":return void C(e,t,r);case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":return}if(!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(\" \",n,'=\"\"');break;case 4:!0===r?e.push(\" \",n,'=\"\"'):!1!==r&&e.push(\" \",n,'=\"',v(r),'\"');break;case 5:isNaN(r)||e.push(\" \",n,'=\"',v(r),'\"');break;case 6:!isNaN(r)&&1<=r&&e.push(\" \",n,'=\"',v(r),'\"');break;default:t.sanitizeURL&&(r=\"\"+r),e.push(\" \",n,'=\"',v(r),'\"')}}else if(u(n)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(\"data-\"!==(t=n.toLowerCase().slice(0,5))&&\"aria-\"!==t)return}e.push(\" \",n,'=\"',v(r),'\"')}}function S(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if(\"object\"!=typeof t||!(\"__html\"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(\"\"+t)}}function T(e,t,n,r){e.push(R(n));var o,i=n=null;for(o in t)if(a.call(t,o)){var l=t[o];if(null!=l)switch(o){case\"children\":n=l;break;case\"dangerouslySetInnerHTML\":i=l;break;default:w(e,r,o,l)}}return e.push(\">\"),S(e,i,n),\"string\"==typeof n?(e.push(v(n)),null):n}var O=/^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/,D=new Map;function R(e){var t=D.get(e);if(void 0===t){if(!O.test(e))throw Error(o(65,e));t=\"<\"+e,D.set(e,t)}return t}function N(e,t,n){if(e.push('\\x3c!--$?--\\x3e<template id=\"'),null===n)throw Error(o(395));return e.push(n),e.push('\"></template>')}var L=/[<\\u2028\\u2029]/g;function P(e){return JSON.stringify(e).replace(L,function(e){switch(e){case\"<\":return\"\\\\u003c\";case\"\\u2028\":return\"\\\\u2028\";case\"\\u2029\":return\"\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function M(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(\"\"===t?e=r:(r&&e.push(\"\\x3c!-- --\\x3e\"),e.push(v(t)),e=!0),e)}var x=Object.assign,I=Symbol.for(\"react.element\"),k=Symbol.for(\"react.portal\"),B=Symbol.for(\"react.fragment\"),F=Symbol.for(\"react.strict_mode\"),j=Symbol.for(\"react.profiler\"),H=Symbol.for(\"react.provider\"),U=Symbol.for(\"react.context\"),Y=Symbol.for(\"react.forward_ref\"),G=Symbol.for(\"react.suspense\"),z=Symbol.for(\"react.suspense_list\"),V=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),W=Symbol.for(\"react.scope\"),Q=Symbol.for(\"react.debug_trace_mode\"),K=Symbol.for(\"react.legacy_hidden\"),$=Symbol.for(\"react.default_value\"),X=Symbol.iterator;function J(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case B:return\"Fragment\";case k:return\"Portal\";case j:return\"Profiler\";case F:return\"StrictMode\";case G:return\"Suspense\";case z:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case U:return(e.displayName||\"Context\")+\".Consumer\";case H:return(e._context.displayName||\"Context\")+\".Provider\";case Y:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case V:return null!==(t=e.displayName||null)?t:J(e.type)||\"Memo\";case q:t=e._payload,e=e._init;try{return J(e(t))}catch(e){}}return null}var Z={};function ee(e,t){if(!(e=e.contextTypes))return Z;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ae(e,t)}function ie(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):ie(e,n),t.context._currentValue2=t.value}function le(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ae(t,e):ie(t,e),te=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=se,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context=\"object\"==typeof i&&null!==i?i._currentValue2:r,\"function\"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:x({},o,i),e.state=o),\"function\"!=typeof t.getDerivedStateFromProps&&\"function\"!=typeof e.getSnapshotBeforeUpdate&&(\"function\"==typeof e.UNSAFE_componentWillMount||\"function\"==typeof e.componentWillMount))if(t=e.state,\"function\"==typeof e.componentWillMount&&e.componentWillMount(),\"function\"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l=\"function\"==typeof l?l.call(e,a,n,r):l)&&(o?(o=!1,a=x({},a,l)):x(a,l))}e.state=a}else a.queue=null}var ce={id:1,overflow:\"\"};function de(e,t,n){var r=e.id;e=e.overflow;var o=32-pe(r)-1;r&=~(1<<o),n+=1;var a=32-pe(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-pe(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2,he=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},me=null,ve=null,Ae=null,ye=null,Ee=!1,be=!1,_e=0,Ce=null,we=0;function Se(){if(null===me)throw Error(o(321));return me}function Te(){if(0<we)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Oe(){return null===ye?null===Ae?(Ee=!1,Ae=ye=Te()):(Ee=!0,ye=Ae):null===ye.next?(Ee=!1,ye=ye.next=Te()):(Ee=!0,ye=ye.next),ye}function De(){ve=me=null,be=!1,Ae=null,we=0,ye=Ce=null}function Re(e,t){return\"function\"==typeof t?t(e):t}function Ne(e,t,n){if(me=Se(),ye=Oe(),Ee){var r=ye.queue;if(t=r.dispatch,null!==Ce&&void 0!==(n=Ce.get(r))){Ce.delete(r),r=ye.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return ye.memoizedState=r,[r,t]}return[ye.memoizedState,t]}return e=e===Re?\"function\"==typeof t?t():t:void 0!==n?n(t):t,ye.memoizedState=e,e=(e=ye.queue={last:null,dispatch:null}).dispatch=Pe.bind(null,me,e),[ye.memoizedState,e]}function Le(e,t){if(me=Se(),t=void 0===t?null:t,null!==(ye=Oe())){var n=ye.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!he(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),ye.memoizedState=[e,t],e}function Pe(e,t,n){if(25<=we)throw Error(o(301));if(e===me)if(be=!0,e={action:n,next:null},null===Ce&&(Ce=new Map),void 0===(n=Ce.get(t)))Ce.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Me(){throw Error(o(394))}function xe(){}var Ie={readContext:function(e){return e._currentValue2},useContext:function(e){return Se(),e._currentValue2},useMemo:Le,useReducer:Ne,useRef:function(e){me=Se();var t=(ye=Oe()).memoizedState;return null===t?(e={current:e},ye.memoizedState=e):t},useState:function(e){return Ne(Re,e)},useInsertionEffect:xe,useLayoutEffect:function(){},useCallback:function(e,t){return Le(function(){return e},t)},useImperativeHandle:xe,useEffect:xe,useDebugValue:xe,useDeferredValue:function(e){return Se(),e},useTransition:function(){return Se(),[!1,Me]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var n=ke;if(null===n)throw Error(o(404));return t=_e++,e=\":\"+n.idPrefix+\"R\"+e,0<t&&(e+=\"H\"+t.toString(32)),e+\":\"},useMutableSource:function(e,t){return Se(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},ke=null,Be=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function je(){}function He(e,t,n,r,o,a,i,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function Ue(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function Ye(e,t){if(null!=(e=e.onError(t))&&\"string\"!=typeof e)throw Error('onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"'+typeof e+'\" instead');return e}function Ge(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function ze(e,t,n,r,o){for(me={},ve=t,_e=0,e=n(r,o);be;)be=!1,_e=0,we+=1,ye=null,e=n(r,o);return De(),e}function Ve(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var l=t.legacyContext;if(\"function\"!=typeof n.getChildContext)r=l;else{for(var s in n=n.getChildContext())if(!(s in i))throw Error(o(108,J(r)||\"Unknown\",s));r=x({},l,n)}t.legacyContext=r,Qe(e,t,a),t.legacyContext=l}else Qe(e,t,a)}function qe(e,t){if(e&&e.defaultProps){for(var n in t=x({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function We(e,t,n,i,l){if(\"function\"==typeof n)if(n.prototype&&n.prototype.isReactComponent){l=ee(n,t.legacyContext);var s=n.contextType;ue(s=new n(i,\"object\"==typeof s&&null!==s?s._currentValue2:l),n,i,l),Ve(e,t,s,n)}else{l=ze(e,t,n,i,s=ee(n,t.legacyContext));var c=0!==_e;if(\"object\"==typeof l&&null!==l&&\"function\"==typeof l.render&&void 0===l.$$typeof)ue(l,n,i,s),Ve(e,t,l,n);else if(c){i=t.treeContext,t.treeContext=de(i,1,0);try{Qe(e,t,l)}finally{t.treeContext=i}}else Qe(e,t,l)}else{if(\"string\"!=typeof n){switch(n){case K:case Q:case F:case j:case B:case z:return void Qe(e,t,i.children);case W:throw Error(o(343));case G:e:{n=t.blockedBoundary,l=t.blockedSegment,s=i.fallback,i=i.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c=new Set,errorDigest:null},p=Ue(0,l.chunks.length,d,l.formatContext,!1,!1);l.children.push(p),l.lastPushedText=!1;var f=Ue(0,0,null,l.formatContext,!1,!1);f.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=f;try{if($e(e,t,i),e.responseState.generateStaticMarkup||f.lastPushedText&&f.textEmbedded&&f.chunks.push(\"\\x3c!-- --\\x3e\"),f.status=1,Ze(d,f),0===d.pendingTasks)break e}catch(t){f.status=4,d.forceClientRender=!0,d.errorDigest=Ye(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=l}t=He(e,s,n,p,c,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(\"object\"==typeof n&&null!==n)switch(n.$$typeof){case Y:if(i=ze(e,t,n.render,i,l),0!==_e){n=t.treeContext,t.treeContext=de(n,1,0);try{Qe(e,t,i)}finally{t.treeContext=n}}else Qe(e,t,i);return;case V:return void We(e,t,n=n.type,i=qe(n,i),l);case H:if(l=i.children,n=n._context,i=i.value,s=n._currentValue2,n._currentValue2=i,te=i={parent:c=te,depth:null===c?0:c.depth+1,context:n,parentValue:s,value:i},t.context=i,Qe(e,t,l),null===(e=te))throw Error(o(403));return i=e.parentValue,e.context._currentValue2=i===$?e.context._defaultValue:i,e=te=e.parent,void(t.context=e);case U:return void Qe(e,t,i=(i=i.children)(n._currentValue2));case q:return void We(e,t,n=(l=n._init)(n._payload),i=qe(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,\"\"))}switch(s=function(e,t,n,i,l){switch(t){case\"select\":e.push(R(\"select\"));var s=null,c=null;for(g in n)if(a.call(n,g)){var d=n[g];if(null!=d)switch(g){case\"children\":s=d;break;case\"dangerouslySetInnerHTML\":c=d;break;case\"defaultValue\":case\"value\":break;default:w(e,i,g,d)}}return e.push(\">\"),S(e,c,s),s;case\"option\":c=l.selectedValue,e.push(R(\"option\"));var p=d=null,f=null,g=null;for(s in n)if(a.call(n,s)){var h=n[s];if(null!=h)switch(s){case\"children\":d=h;break;case\"selected\":f=h;break;case\"dangerouslySetInnerHTML\":g=h;break;case\"value\":p=h;default:w(e,i,s,h)}}if(null!=c)if(n=null!==p?\"\"+p:function(e){var t=\"\";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(d),E(c)){for(i=0;i<c.length;i++)if(\"\"+c[i]===n){e.push(' selected=\"\"');break}}else\"\"+c===n&&e.push(' selected=\"\"');else f&&e.push(' selected=\"\"');return e.push(\">\"),S(e,g,d),d;case\"textarea\":for(d in e.push(R(\"textarea\")),g=c=s=null,n)if(a.call(n,d)&&null!=(p=n[d]))switch(d){case\"children\":g=p;break;case\"value\":s=p;break;case\"defaultValue\":c=p;break;case\"dangerouslySetInnerHTML\":throw Error(o(91));default:w(e,i,d,p)}if(null===s&&null!==c&&(s=c),e.push(\">\"),null!=g){if(null!=s)throw Error(o(92));if(E(g)&&1<g.length)throw Error(o(93));s=\"\"+g}return\"string\"==typeof s&&\"\\n\"===s[0]&&e.push(\"\\n\"),null!==s&&e.push(v(\"\"+s)),null;case\"input\":for(c in e.push(R(\"input\")),p=g=d=s=null,n)if(a.call(n,c)&&null!=(f=n[c]))switch(c){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(399,\"input\"));case\"defaultChecked\":p=f;break;case\"defaultValue\":d=f;break;case\"checked\":g=f;break;case\"value\":s=f;break;default:w(e,i,c,f)}return null!==g?w(e,i,\"checked\",g):null!==p&&w(e,i,\"checked\",p),null!==s?w(e,i,\"value\",s):null!==d&&w(e,i,\"value\",d),e.push(\"/>\"),null;case\"menuitem\":for(var m in e.push(R(\"menuitem\")),n)if(a.call(n,m)&&null!=(s=n[m]))switch(m){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(400));default:w(e,i,m,s)}return e.push(\">\"),null;case\"title\":for(h in e.push(R(\"title\")),s=null,n)if(a.call(n,h)&&null!=(c=n[h]))switch(h){case\"children\":s=c;break;case\"dangerouslySetInnerHTML\":throw Error(o(434));default:w(e,i,h,c)}return e.push(\">\"),s;case\"listing\":case\"pre\":for(p in e.push(R(t)),c=s=null,n)if(a.call(n,p)&&null!=(d=n[p]))switch(p){case\"children\":s=d;break;case\"dangerouslySetInnerHTML\":c=d;break;default:w(e,i,p,d)}if(e.push(\">\"),null!=c){if(null!=s)throw Error(o(60));if(\"object\"!=typeof c||!(\"__html\"in c))throw Error(o(61));null!=(n=c.__html)&&(\"string\"==typeof n&&0<n.length&&\"\\n\"===n[0]?e.push(\"\\n\",n):e.push(\"\"+n))}return\"string\"==typeof s&&\"\\n\"===s[0]&&e.push(\"\\n\"),s;case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":for(var A in e.push(R(t)),n)if(a.call(n,A)&&null!=(s=n[A]))switch(A){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(399,t));default:w(e,i,A,s)}return e.push(\"/>\"),null;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 T(e,n,t,i);case\"html\":return 0===l.insertionMode&&e.push(\"<!DOCTYPE html>\"),T(e,n,t,i);default:if(-1===t.indexOf(\"-\")&&\"string\"!=typeof n.is)return T(e,n,t,i);for(f in e.push(R(t)),c=s=null,n)if(a.call(n,f)&&null!=(d=n[f]))switch(f){case\"children\":s=d;break;case\"dangerouslySetInnerHTML\":c=d;break;case\"style\":C(e,i,d);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":break;default:u(f)&&\"function\"!=typeof d&&\"symbol\"!=typeof d&&e.push(\" \",f,'=\"',v(d),'\"')}return e.push(\">\"),S(e,c,s),s}}((l=t.blockedSegment).chunks,n,i,e.responseState,l.formatContext),l.lastPushedText=!1,c=l.formatContext,l.formatContext=function(e,t,n){switch(t){case\"select\":return b(1,null!=n.value?n.value:n.defaultValue);case\"svg\":return b(2,null);case\"math\":return b(3,null);case\"foreignObject\":return b(1,null);case\"table\":return b(4,null);case\"thead\":case\"tbody\":case\"tfoot\":return b(5,null);case\"colgroup\":return b(7,null);case\"tr\":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(c,n,i),$e(e,t,s),l.formatContext=c,n){case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break;default:l.chunks.push(\"</\",n,\">\")}l.lastPushedText=!1}}function Qe(e,t,n){if(t.node=n,\"object\"==typeof n&&null!==n){switch(n.$$typeof){case I:return void We(e,t,n.type,n.props,n.ref);case k:throw Error(o(257));case q:var r=n._init;return void Qe(e,t,n=r(n._payload))}if(E(n))return void Ke(e,t,n);if((r=null===n||\"object\"!=typeof n?null:\"function\"==typeof(r=X&&n[X]||n[\"@@iterator\"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);Ke(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}\"string\"==typeof n?(r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):\"number\"==typeof n&&((r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,\"\"+n,e.responseState,r.lastPushedText))}function Ke(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=de(a,r,o);try{$e(e,t,n[o])}finally{t.treeContext=a}}}function $e(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Qe(e,t,n)}catch(s){if(De(),\"object\"!=typeof s||null===s||\"function\"!=typeof s.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,le(a),s;n=s;var i=t.blockedSegment,l=Ue(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=He(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,le(a)}}function Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Je(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Je(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Ze(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Ze(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=je,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Ze(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Xe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Ze(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Be.current;Be.current=Ie;var r=ke;ke=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){le(i.context);try{Qe(l,i,i.node),l.responseState.generateStaticMarkup||s.lastPushedText&&s.textEmbedded&&s.chunks.push(\"\\x3c!-- --\\x3e\"),i.abortSet.delete(i),s.status=1,et(l,i.blockedBoundary,s)}catch(e){if(De(),\"object\"==typeof e&&null!==e&&\"function\"==typeof e.then){var u=i.ping;e.then(u,u)}else{i.abortSet.delete(i),s.status=4;var c=i.blockedBoundary,d=e,p=Ye(l,d);null===c?Ge(l,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=p,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks&&(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&lt(e,e.destination)}catch(t){Ye(e,t),Ge(e,t)}finally{ke=r,Be.current=n,n===Ie&&le(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id=\"'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('\"></template>');case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var l=0;l<n.length;l++){for(a=n[l];i<a.index;i++)t.push(r[i]);a=rt(e,t,a)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(a=t.push(r[i])),a;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push(\"\\x3c!--$!--\\x3e\"),t.push(\"<template\"),r&&(t.push(' data-dgst=\"'),r=v(r),t.push(r),t.push('\"')),t.push(\"></template>\")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push(\"\\x3c!--/$--\\x3e\");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;return a=a.boundaryPrefix+i.toString(16),r=r.id=a,N(t,e.responseState,r),nt(e,t,n),t.push(\"\\x3c!--/$--\\x3e\")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),N(t,e.responseState,r.id),nt(e,t,n),t.push(\"\\x3c!--/$--\\x3e\");if(e.responseState.generateStaticMarkup||t.push(\"\\x3c!--$--\\x3e\"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push(\"\\x3c!--/$--\\x3e\")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 2:return e.push('<svg aria-hidden=\"true\" style=\"display:none\" id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 3:return e.push('<math aria-hidden=\"true\" style=\"display:none\" id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 4:return e.push('<table hidden id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 5:return e.push('<table hidden><tbody id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 6:return e.push('<table hidden><tr id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');case 7:return e.push('<table hidden><colgroup id=\"'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('\">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push(\"</div>\");case 2:return e.push(\"</svg>\");case 3:return e.push(\"</math>\");case 4:return e.push(\"</table>\");case 5:return e.push(\"</tbody></table>\");case 6:return e.push(\"</tr></table>\");case 7:return e.push(\"</colgroup></table>\");default:throw Error(o(397))}}(t,n.formatContext)}function at(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)it(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC(\"'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\"')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('\",\"'),t.push(e.segmentPrefix),t.push(n),t.push('\")<\\/script>')}function it(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS(\"'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('\",\"'),t.push(e.placeholderPrefix),t.push(a),t.push('\")<\\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var a,i=e.clientRenderedBoundaries;for(a=0;a<i.length;a++){var l=i[a];r=t;var s=e.responseState,u=l.id,c=l.errorDigest,d=l.errorMessage,p=l.errorComponentStack;if(r.push(s.startInlineScript),s.sentClientRenderFunction?r.push('$RX(\"'):(s.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\"')),null===u)throw Error(o(395));if(r.push(u),r.push('\"'),c||d||p){r.push(\",\");var f=P(c||\"\");r.push(f)}if(d||p){r.push(\",\");var g=P(d||\"\");r.push(g)}if(p){r.push(\",\");var h=P(p);r.push(h)}if(!r.push(\")<\\/script>\"))return e.destination=null,a++,void i.splice(0,a)}i.splice(0,a);var m=e.completedBoundaries;for(a=0;a<m.length;a++)if(!at(e,t,m[a]))return e.destination=null,a++,void m.splice(0,a);m.splice(0,a);var v=e.partialBoundaries;for(a=0;a<v.length;a++){var A=v[a];e:{i=e,l=t;var y=A.completedSegments;for(s=0;s<y.length;s++)if(!it(i,l,A,y[s])){s++,y.splice(0,s);var E=!1;break e}y.splice(0,s),E=!0}if(!E)return e.destination=null,a++,void v.splice(0,a)}v.splice(0,a);var b=e.completedBoundaries;for(a=0;a<b.length;a++)if(!at(e,t,b[a]))return e.destination=null,a++,void b.splice(0,a);b.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function st(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Je(n,e,t)}),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(t){Ye(e,t),Ge(e,t)}}function ut(){}function ct(e,t,n,r){var a=!1,i=null,l=\"\",s={push:function(e){return null!==e&&(l+=e),!0},destroy:function(e){a=!0,i=e}},u=!1;if(e=function(e,t,n,r,o,a,i){var l=[],s=new Set;return(n=Ue(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:s,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Fe:o,onAllReady:je,onShellReady:void 0===i?je:i,onShellError:je,onFatalError:je},0,null,n,!1,!1)).parentFlushed=!0,e=He(t,e,null,n,s,Z,null,ce),l.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:\"<script>\",placeholderPrefix:(t=void 0===t?\"\":t)+\"P:\",segmentPrefix:t+\"S:\",boundaryPrefix:t+\"B:\",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,0,function(){u=!0}),tt(e),st(e,r),1===e.status)e.status=2,s.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=s;try{lt(e,s)}catch(t){Ye(e,t),Ge(e,t)}}if(a)throw i;if(!u)throw Error(o(426));return l}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ct(e,t,!0,'The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ct(e,t,!1,'The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server')},t.version=\"18.3.1\"},17670:(e,t,n)=>{var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},17730:function(e,t,n){!function(e){\"use strict\";var t=\"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.\".split(\"_\"),n=\"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic\".split(\"_\"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;e.defineLocale(\"es-mx\",{months:\"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"domingo_lunes_martes_miércoles_jueves_viernes_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mié._jue._vie._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY H:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY H:mm\"},calendar:{sameDay:function(){return\"[hoy a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextDay:function(){return\"[mañana a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextWeek:function(){return\"dddd [a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastDay:function(){return\"[ayer a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [pasado a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"en %s\",past:\"hace %s\",s:\"unos segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"una hora\",hh:\"%d horas\",d:\"un día\",dd:\"%d días\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un año\",yy:\"%d años\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:0,doy:4},invalidDate:\"Fecha inválida\"})}(n(95093))},17961:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ae}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(71543),i=n(60538),l=n(81970),s=n.n(l),u=n(34195),c=n(8085),d=n(99478),p=n(37998),f=n(96348),g=n(47225),h=n(27305),m=n(56254),v=n(43605),A=n(92416),y=n(15664),E=n(21239),b=n(29191),_=n(59615),C=(n(50113),n(42762),n(36874)),w=n(62220),S=(n(28706),n(13075)),T=function(e){return(0,S.AT)(\"get\",e,!1)},O=n(32027),D=n(32112),R=n(78208),N=n(70380),L=n(14595),P=(n(88431),n(25276),n(72712),n(15086),n(26910),n(60739),n(94170),n(64601),n(59904),n(40875),n(10287),n(3362),n(14073)),M=n(88084),x=n(56203),I=n(64121),k=(n(12041),n(15941)),B=n(28152),F=n(76906),j=n(96713),H=n(10901);const U=function(e){var t,n=e.isOpen,a=e.onClose,i=e.endorsementChecks,l=e.checklistItems,u=e.onEndorsementCheckboxChange,c=e.showEndorsementValidation,d=e.onEndorse,p=e.values,f=e.endorsementConfig;return s().createElement(C.A,{isDrawerOpen:n,anchor:\"right\",sx:{\"& .MuiDrawer-paper\":{width:\"560px\",padding:\"16px 16px 18px 16px\"}}},s().createElement(r.A,{sx:{height:\"100%\",display:\"flex\",flexDirection:\"column\",backgroundColor:\"#ffffff\",\"& .MuiTypography-h1\":{fontSize:\"24px\",lineHeight:\"32px\",color:\"#232630\",fontFamily:\"NotoSans-Regular\",fontWeight:400},\"& .endorsement-rich-text\":{color:\"#232630\",fontSize:\"14px\",lineHeight:\"20px\",fontWeight:400,textAlign:\"left\",fontFamily:\"NotoSans-Regular\"},\"& .endorsement-rich-text p\":{margin:0,marginBottom:\"8px\"},\"& .endorsement-rich-text p:last-of-type\":{marginBottom:0},\"& .endorsement-rich-text strong\":{fontWeight:700,fontFamily:\"NotoSans-Bold\"},\"& .endorsement-checkbox\":{display:\"flex\",alignItems:\"flex-start\",marginBottom:\"8px\"},\"& .endorsement-checkbox .MuiCheckbox-root\":{padding:\"4px 6px 0 0\",marginLeft:0},\"& .endorsement-checkbox .MuiSvgIcon-root\":{fontSize:\"18px\"},\"& .endorsement-checkbox-label\":{textAlign:\"left\",whiteSpace:\"normal\",lineHeight:\"20px\",color:\"#232630\",fontSize:\"14px\",marginLeft:\"0 !important\",fontFamily:\"NotoSans-Regular\",paddingTop:\"1px\"}}},s().createElement(r.A,{mb:\"20px\",sx:{\"& .MuiStack-root\":{mb:\"0 !important\"}}},s().createElement(L.A,{text:\"Safety Endorsement\",onClose:a})),(null==f?void 0:f.declarationText)&&s().createElement(s().Fragment,null,s().createElement(P.A,{variant:\"body2\",fontWeight:700,mb:.5,sx:{fontSize:\"14px\",lineHeight:\"20px\",color:\"#232630\",fontFamily:\"NotoSans-Bold\"}},\"Declaration\"),s().createElement(P.A,{variant:\"body2\",component:\"div\",className:\"endorsement-rich-text\",mb:1.5,dangerouslySetInnerHTML:{__html:null==f?void 0:f.declarationText}})),(null==f?void 0:f.safetyChecklistText)&&s().createElement(s().Fragment,null,s().createElement(P.A,{variant:\"body2\",fontWeight:700,mb:.5,sx:{fontSize:\"14px\",lineHeight:\"20px\",color:\"#232630\",fontFamily:\"NotoSans-Bold\"}},\"Safety Checklist\"),s().createElement(P.A,{variant:\"body2\",component:\"div\",className:\"endorsement-rich-text\",mb:1.25,dangerouslySetInnerHTML:{__html:null==f?void 0:f.safetyChecklistText}}),s().createElement(r.A,{mb:1.5},null==l?void 0:l.map(function(e){var t;return s().createElement(H.A,{key:null==e?void 0:e.id,value:null==e?void 0:e.id,isChecked:null!==(t=i[null==e?void 0:e.id])&&void 0!==t&&t,onCheckboxChange:function(){return u(null==e?void 0:e.id)},customClassName:\"endorsement-checkbox\",fontStyle:\"endorsement-checkbox-label\",label:null==e?void 0:e.label})})),c&&s().createElement(P.A,{variant:\"body2\",color:\"error\",mb:1.5,sx:{fontSize:\"12px\",lineHeight:\"16px\"}},\"ⓘ \",(0,x.t)(\"MDO_ENDORSEMENT_CHECKBOX_VALIDATION\"))),(null==f?void 0:f.acknowledgementText)&&s().createElement(s().Fragment,null,s().createElement(P.A,{variant:\"body2\",fontWeight:700,mb:.5,sx:{fontSize:\"16px\",lineHeight:\"22px\",color:\"#232630\",fontFamily:\"NotoSans-Bold\"}},\"Acknowledgement\"),s().createElement(P.A,{variant:\"body2\",component:\"div\",className:\"endorsement-rich-text\",mb:1,dangerouslySetInnerHTML:{__html:null==f?void 0:f.acknowledgementText}}),s().createElement(P.A,{variant:\"body2\",sx:{fontSize:\"14px\",lineHeight:\"22px\",color:\"#232630\",fontFamily:\"NotoSans-Regular\"}},s().createElement(\"strong\",null,(0,x.t)(\"MDO_ENDORSEMENT_NAME_LABEL\"),\":\"),\" \",null==p?void 0:p.firstName,\" \",null==p?void 0:p.lastName),s().createElement(P.A,{variant:\"body2\",sx:{fontSize:\"14px\",lineHeight:\"22px\",color:\"#232630\",fontFamily:\"NotoSans-Regular\"}},s().createElement(\"strong\",null,(0,x.t)(\"MDO_ENDORSEMENT_PHONE_LABEL\"),\":\"),\" \",null==p?void 0:p.phoneNumber),s().createElement(P.A,{variant:\"body2\",mb:2,sx:{fontSize:\"14px\",lineHeight:\"22px\",color:\"#232630\",fontFamily:\"NotoSans-Regular\"}},s().createElement(\"strong\",null,(0,x.t)(\"EMP_ID\"),\":\"),\" \",null!==(t=null==p?void 0:p.employeeId)&&void 0!==t?t:\"-\")),s().createElement(o.A,{direction:\"row\",justifyContent:\"flex-end\",gap:1.5,mt:\"auto\",pt:1,pb:1.5},s().createElement(y.A,{variant:\"outlined\",buttonName:(0,x.t)(\"CANCEL\"),onButtonClick:a,fullwidth:!1,color:\"secondary\"}),s().createElement(y.A,{variant:\"contained\",buttonName:\"Endorsed\",onButtonClick:d,fullwidth:!1,color:\"primary\"}))))};function Y(e){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Y(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return W(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(W(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,W(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,W(d,\"constructor\",u),W(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",W(u,o,\"GeneratorFunction\"),W(d),W(d,o,\"Generator\"),W(d,r,function(){return this}),W(d,\"toString\",function(){return\"[object Generator]\"}),(q=function(){return{w:a,m:p}})()}function W(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}W=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){W(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},W(e,t,n,r)}function Q(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const X=function(e){var t,n,a=e.isEditingMode,i=e.onHandleCancel,u=e.parentHqList,c=e.isShowParentData,p=e.portfolioList,f=e.setPortfolioCode,g=e.onSubmitHandleClearEndDateConfirmation,h=e.employeeIdValidations,m=e.mdoValidations,v=e.initialForm,A=e.empTypes,E=e.User,b=e.endorsementConfig,_=/^[a-zA-Z ]+$/,C=/^[0-9a-zA-Z]+$/,w=(0,d.EB)(E),S=a&&!w,T=K((0,l.useState)(!1),2),O=T[0],D=T[1],R=K((0,l.useState)(!1),2),L=R[0],H=R[1],Y=K((0,l.useState)(!1),2),G=Y[0],W=Y[1],$=K((0,l.useState)(!1),2),X=$[0],J=$[1],Z=K((0,l.useState)(!1),2),ee=Z[0],te=Z[1],ne=K((0,l.useState)({}),2),re=ne[0],oe=ne[1],ae=K((0,l.useState)(\"\"),2),ie=ae[0],le=ae[1],se=null===(t=null==b?void 0:b.enableSafetyEndorsement)||void 0===t||t,ue=null===(n=null==b?void 0:b.enableSafetyChecklist)||void 0===n||n,ce=(0,l.useMemo)(function(){var e,t,n=(null!==(e=null==b?void 0:b.safefy_checklist_details)&&void 0!==e?e:[]).filter(function(e){return null==e?void 0:e.is_active}),r=null!==(t=null==b?void 0:b.safet_checklist_order)&&void 0!==t?t:[];return n.sort(function(e,t){var n=r.indexOf(Number(null==e?void 0:e.id)),o=r.indexOf(Number(null==t?void 0:t.id));return(-1===n?Number.MAX_SAFE_INTEGER:n)-(-1===o?Number.MAX_SAFE_INTEGER:o)})},[b]),de=function(e){var t,n,r,o,a,i,l,s;return JSON.stringify({firstName:null!==(t=null==e||null===(n=e.firstName)||void 0===n?void 0:n.trim())&&void 0!==t?t:\"\",lastName:null!==(r=null==e||null===(o=e.lastName)||void 0===o?void 0:o.trim())&&void 0!==r?r:\"\",phoneNumber:null!==(a=null==e||null===(i=e.phoneNumber)||void 0===i?void 0:i.trim())&&void 0!==a?a:\"\",employeeId:null!==(l=null==e||null===(s=e.employeeId)||void 0===s?void 0:s.trim())&&void 0!==l?l:\"\"})},pe=function(){H(!1);var e=ce.reduce(function(e,t){return e[null==t?void 0:t.id]=!1,e},{});oe(e)},fe=function(){var e,t=(e=q().m(function e(t,n,r){var o,a;return q().w(function(e){for(;;)switch(e.n){case 0:return o=[\"firstName\",\"lastName\",\"phoneNumber\",\"employeeId\"],e.n=1,r();case 1:if(a=e.v,!o.some(function(e){return!(null==a||!a[e])})){e.n=2;break}return W(!0),J(!1),t({firstName:!0,lastName:!0,phoneNumber:!0,employeeId:!0},!0),e.a(2);case 2:W(!1),J(!1),pe(),n(\"user_endorsment_details\",null),te(!1),D(!0);case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Q(a,r,o,i,l,\"next\",e)}function l(e){Q(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r){return t.apply(this,arguments)}}(),ge=function(e){H(!1),oe(function(t){return z(z({},t),{},V({},e,!t[e]))})},he=function(){D(!1),H(!1)};return s().createElement(M.l1,{initialValues:v,validationSchema:function(){return function(e){var t,n,r,o,a,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k.Ik().shape({portfolio:k.Ik().test(\"portfolio-required\",\"Portfolio required\",function(e){return!0!==this.parent.showPortfolio||null!=e}),parent_hq_id:k.Ik().test(\"parent-hq-required\",\"Parent HQ required\",function(e){return!0!==this.parent.isShowParentData||null!=e}),firstName:k.Yj().test(\"min-non-space-characters\",\"First Name should be at least 3 characters\",function(e){return e&&e.replaceAll(/\\s/g,\"\").length>=3}).min(3,\"First Name should be at least 3 characters\").max(30,\"First Name should be a max of 30 characters\").required(\"First Name required\"),lastName:k.Yj().test(\"min-non-space-characters\",\"Last Name should be at least 1 character\",function(e){return e&&e.replaceAll(/\\s/g,\"\").length>=1}).min(1,\"Last Name should be at least 1 character\").max(30,\"Last Name should be a max of 30 characters\").required(\"Last Name required\"),phoneNumber:k.Yj().required(\"Phone Number required\").matches(/^\\d+$/,\"Must be only digits\").min(null==e?void 0:e.phoneLength,\"Phone number should be \".concat(null==e?void 0:e.phoneLength,\" digits\")).max(null==e?void 0:e.phoneLength,\"Phone number should be \".concat(null==e?void 0:e.phoneLength,\" digits\")),employeeType:k.Ik().required(\"Employee Type required\"),mdoStartDate:k.Yj().required(\"Start Date required\").test(\"valid-date\",\"Invalid date\",function(e){return!!e&&(0,N.ux)(e,[\"MM/DD/YYYY\",\"MM-DD-YYYY\",\"MM.DD.YYYY\"])}),mdoEndDate:k.YO().notRequired().nullable().test(\"is-valid-date\",\"Invalid Date\",function(e){return console.log(\"END DATE\",e),null==e||!e[1]||!(null!=e&&e.length&&!(0,N.ux)(null==e?void 0:e[1],\"MM/DD/YYYY\"))&&(!(e&&e.length>0&&(0,N.vd)(null==e?void 0:e[1]))||(0,N.Si)(null==e?void 0:e[0],null==e?void 0:e[1],\"MM/DD/YYYY\"))}),employeeId:k.Yj().min(null!==(t=null==l||null===(n=l.employeeIdValidations)||void 0===n?void 0:n.min_value)&&void 0!==t?t:0,\"Employee ID should be a min of \".concat(null==l||null===(r=l.employeeIdValidations)||void 0===r?void 0:r.min_value,\" characters\")).max(null!==(o=null==l||null===(a=l.employeeIdValidations)||void 0===a?void 0:a.max_value)&&void 0!==o?o:0,\"Employee ID should be a max of \".concat(null==l||null===(i=l.employeeIdValidations)||void 0===i?void 0:i.max_value,\" characters\")).test(\"conditional-required\",\"Employee ID is required\",function(e){return!(null==l||!l.isDisabledEmployeeId)||null!=e&&\"\"!==e}).nullable(),mdoHQ:k.Yj().notRequired().nullable()})}(m,{employeeIdValidations:h,isDisabledEmployeeId:S})},enableReinitialize:!0,onSubmit:g},function(e){var t,n,l=e.values,d=e.setFieldValue,g=e.submitForm,h=e.setTouched,m=e.validateForm,v=de(l),E=ee&&\"\"!==ie&&ie===v;return s().createElement(M.lV,{className:\"popupContent\",\"aria-labelledby\":\"form\"},l.showPortfolio&&s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"PORTFOLIO_FIELD\"),\"*\"),s().createElement(M.D0,{name:\"portfolio\"},function(){return s().createElement(I.A,{name:\"portfolio\",onChange:function(e,t){d(\"portfolio\",t),f(t.value)},options:p,labelKey:\"label\",label:\"portfolio\",selectedOption:l.portfolio,value:l.portfolio,defaultLabel:(0,x.t)(\"SELECT_PORTFOLIO\"),isDisabled:a})}),s().createElement(B.A,{errName:\"portfolio\"})),c&&s().createElement(j.m,{values:l,parentHqList:u,setFieldValue:d}),s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"FIRST_NAME\"),\"*\"),s().createElement(M.D0,{name:\"firstName\",type:\"text\",className:\"inputField\",onChange:function(e){(\"\"===e.target.value||_.test(e.target.value))&&d(\"firstName\",e.target.value)},placeholder:(0,x.t)(\"ENTER_FIRSTNAME\"),defaultValue:null==l?void 0:l.firstName}),s().createElement(B.A,{errName:\"firstName\"})),s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"LAST_NAME\"),\"*\"),s().createElement(M.D0,{name:\"lastName\",type:\"text\",className:\"inputField\",onChange:function(e){(\"\"===e.target.value||_.test(e.target.value))&&d(\"lastName\",e.target.value)},placeholder:(0,x.t)(\"ENTER_LASTNAME\"),defaultValue:null==l?void 0:l.lastName}),s().createElement(B.A,{errName:\"lastName\"}))),s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"PHONE_NO\"),\"*\"),s().createElement(M.D0,{name:\"phoneNumber\",type:\"tel\",className:\"inputField\",onChange:function(e){d(\"phoneNumber\",e.target.value.trim())},placeholder:(0,x.t)(\"ENTER_PHONENO\"),defaultValue:null==l?void 0:l.phoneNumber}),s().createElement(B.A,{errName:\"phoneNumber\"})),s().createElement(r.A,{mb:2,width:\"100%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"EMP_TYPE\"),\"*\"),s().createElement(M.D0,{name:\"employeeType\"},function(){return s().createElement(I.A,{name:\"employeeType\",onChange:function(e,t){d(\"employeeType\",t)},options:A,labelKey:\"label\",label:\"employeeType\",selectedOption:l.employeeType,value:l.employeeType,defaultLabel:(0,x.t)(\"SELECT_EMPTYPE\")})}),s().createElement(B.A,{errName:\"employeeType\"}))),s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(r.A,{mb:2,width:\"100%\",\"data-testid\":\"mdoStartDate\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"MDO_STARTDATE\"),\"*\"),s().createElement(F.A,{value:l.mdoStartDate,handleChangeDatePicker:function(e){d(\"mdoStartDate\",e)},disabled:a,minDate:N.Ax.todayDate}),s().createElement(B.A,{errName:\"mdoStartDate\"})),s().createElement(r.A,{mb:2,width:\"100%\",\"data-testid\":\"mdoEndDate\"},a&&s().createElement(s().Fragment,null,s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"MDO_ENDDATE\")),s().createElement(F.A,{value:null!==(t=null===(n=l.mdoEndDate)||void 0===n?void 0:n[1])&&void 0!==t?t:\"\",handleChangeDatePicker:function(e){d(\"mdoEndDate\",[(0,N.Yq)(l.mdoStartDate,\"MM/DD/YYYY\"),e])},minDate:N.Ax.todayDate}),s().createElement(B.A,{errName:\"mdoEndDate\"})))),s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(r.A,{mb:2,width:\"48%\"},s().createElement(P.A,{variant:\"subtitle2\"},(0,x.t)(\"EMP_ID\"),\"*\"),s().createElement(M.D0,{name:\"employeeId\",type:\"tel\",className:\"inputField \".concat(S?\"disabledInput\":\"\"),onChange:function(e){(\"\"===e.target.value||C.test(e.target.value))&&d(\"employeeId\",e.target.value.trim())},placeholder:(0,x.t)(\"ENTER_EMPID\"),defaultValue:null==l?void 0:l.employeeId,disabled:S}),s().createElement(B.A,{errName:\"employeeId\"}))),!a&&se&&s().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2,mb:1},s().createElement(y.A,{variant:\"outlined\",buttonName:E?\"Endorsement Completed >\":\"Complete Endorsement >\",fullwidth:!1,color:\"primary\",disabled:E,onButtonClick:function(){return fe(h,d,m)}})),!a&&G&&s().createElement(o.A,{direction:\"row\",alignItems:\"center\",gap:.5,mb:2},s().createElement(P.A,{variant:\"caption\",color:\"error\",sx:{display:\"flex\",alignItems:\"center\",gap:.5}},\"ⓘ \",(0,x.t)(\"MDO_ENDORSEMENT_MANDATORY_DETAILS_VALIDATION\"))),!a&&!E&&X&&s().createElement(o.A,{direction:\"row\",alignItems:\"center\",gap:.5,mb:2},s().createElement(P.A,{variant:\"caption\",color:\"error\",sx:{display:\"flex\",alignItems:\"center\",gap:.5}},\"ⓘ \",(0,x.t)(\"MDO_COMPLETE_ENDORSEMENT_VALIDATION\"))),s().createElement(o.A,{direction:\"row\",gap:2,justifyContent:\"flex-end\",mt:1},s().createElement(y.A,{variant:\"outlined\",buttonName:(0,x.t)(\"CANCEL\"),onButtonClick:i,fullwidth:!1,color:\"secondary\"}),s().createElement(y.A,{variant:\"contained\",buttonName:a?(0,x.t)(\"UPDATE\"):(0,x.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"button\",onButtonClick:function(){if(!a&&se&&!E)return function(e){var t,n,r,o,a=Boolean(null==e||null===(t=e.firstName)||void 0===t?void 0:t.trim()),i=Boolean(null==e||null===(n=e.lastName)||void 0===n?void 0:n.trim()),l=Boolean(null==e||null===(r=e.phoneNumber)||void 0===r?void 0:r.trim()),s=Boolean(null==e||null===(o=e.employeeId)||void 0===o?void 0:o.trim());return a&&i&&l&&s}(l)?(W(!1),J(!0),void h(Object.keys(l).reduce(function(e,t){return e[t]=!0,e},{}),!0)):(W(!1),J(!0),void g());W(!1),J(!1),g()}})),!a&&se&&O&&s().createElement(U,{isOpen:O,onClose:he,endorsementChecks:re,checklistItems:ce,onEndorsementCheckboxChange:ge,showEndorsementValidation:L,onEndorse:function(){return function(e,t){var n,r=ce.map(function(e){return null==e?void 0:e.id}).every(function(e){return re[e]});if(!ue||r){var o=ce.filter(function(e){return re[null==e?void 0:e.id]}).map(function(e){return Number(null==e?void 0:e.id)});e(\"user_endorsment_details\",{endorsement_configuration_id:null!==(n=null==b?void 0:b.endorsementConfigurationId)&&void 0!==n?n:1,safety_checklist_ids:o}),le(de(t)),te(!0),W(!1),J(!1),D(!1)}else H(!0)}(d,l)},values:l,endorsementConfig:b}))})};function J(e){return J=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},J(e)}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function te(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=J(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==J(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return re(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oe=\"enable_safety_endorsement_role\";const ae=function(e){var t,n,o,a,i,p,f,h=e.isDrawerOpen,m=void 0!==h&&h,v=e.onRequestClose,A=void 0===v?function(){}:v,y=e.isEditingMode,E=void 0!==y&&y,b=e.SelectedRowItem,_=void 0===b?{}:b,P=e.empTypes,M=void 0===P?[]:P,x=(0,l.useContext)(g.v),I=x.BackOfficeProps,k=I.globalStore.User,B=I.baseurl,F=x.triggerShowLoader,j=x.triggerToastMsg,H=null===(t=k.selectedCountry)||void 0===t?void 0:t.countryCode,U=null!==(n=null==k||null===(o=k.selectedApplication)||void 0===o?void 0:o.country_app_id)&&void 0!==n?n:\"\",Y=null!=B?B:\"\",G=null==k||null===(a=k.UserDetails)||void 0===a?void 0:a.user_id,z=null!==(i=null==k?void 0:k.AccessToken)&&void 0!==i?i:\"\",V=null==k?void 0:k.selectedBusinessUnit,q=ne((0,l.useState)(!1),2),W=q[0],Q=q[1],K=ne((0,l.useState)(!1),2),$=K[0],J=K[1],Z=ne((0,l.useState)({}),2),te=Z[0],re=Z[1],ae=ne((0,l.useState)({}),2),ie=ae[0],le=ae[1],se=(0,O.i)(k),ue=se.hasShowPortfolio,ce=se.hasPortfolioCode,de=se.hasPortfolioEnable,pe=(0,u.Bd)().t,fe=ne((0,l.useState)(!1),2),ge=fe[0],he=fe[1],me=function(e,t){return{portfolio:\"\",showPortfolio:e,firstName:\"\",lastName:\"\",phoneNumber:\"\",employeeType:\"\",mdoStartDate:\"\",mdoEndDate:\"\",mdoHQ:\"\",employeeId:\"\",isShowParentData:t,parent_hq_id:\"\"}}(ue,ge),ve=ne((0,l.useState)(me),2),Ae=ve[0],ye=ve[1],Ee=ne((0,l.useState)(),2),be=Ee[0],_e=Ee[1],Ce=ne((0,l.useState)([]),2),we=Ce[0],Se=Ce[1],Te=ne((0,l.useState)([]),2),Oe=Te[0],De=Te[1],Re=ne((0,l.useState)(0),2),Ne=Re[0],Le=Re[1],Pe=ne((0,l.useState)({}),2),Me=Pe[0],xe=Pe[1],Ie=ne((0,l.useState)(!ue&&de?ce:\"\"),2),ke=Ie[0],Be=Ie[1],Fe=ne((0,l.useState)({endorsementConfigurationId:null,enableSafetyEndorsement:!1,declarationText:\"\",acknowledgementText:\"\",safetyChecklistText:\"\",safet_checklist_order:[],safefy_checklist_details:[]}),2),je=Fe[0],He=Fe[1];(0,l.useEffect)(function(){ye(function(e){return ee(ee({},e),{},{isShowParentData:ge})})},[ge]),(0,l.useEffect)(function(){!Ne||ue&&!ke||function(e){(0,w.w3)(k,B,F,\"\".concat(e),ke).then(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{value:null==e?void 0:e.id,label:null==e?void 0:e.name}});De(n)}).catch(function(){})}(Ne)},[Ne,ke,ue]),(0,l.useEffect)(function(){(0,w.AI)(k,B,F).then(function(e){var t;he(\"true\"===(null==e||null===(t=e.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.value))}).catch(function(){}),Ye(),(0,w.Hh)(k,B,F).then(function(e){xe(null==e?void 0:e.data)}).catch(function(){})},[]),(0,l.useEffect)(function(){if(E){var e,t,n,r,o,a,i=M.filter(function(e){return(null==e?void 0:e.id)===(null==_?void 0:_.employee_type_id)}),l=we.find(function(e){return(null==e?void 0:e.value)===(null==_?void 0:_.portfolio_code)}),s=null==Oe?void 0:Oe.find(function(e){return(null==e?void 0:e.value)===(null==_?void 0:_.parent_hq_id)});Be(null==_?void 0:_.portfolio_code),ye({showPortfolio:ue,firstName:null==_?void 0:_.first_name,lastName:null==_?void 0:_.last_name,phoneNumber:null==_?void 0:_.mobile_number,employeeType:{id:(null===(e=i[0])||void 0===e?void 0:e.id)||0,label:null!==(t=null===(n=i[0])||void 0===n?void 0:n.label)&&void 0!==t?t:\" \",value:null!==(r=null===(o=i[0])||void 0===o?void 0:o.value)&&void 0!==r?r:\" \"},portfolio:{id:(null==l?void 0:l.id)||0,label:(null==l?void 0:l.label)||\" \",value:(null==l?void 0:l.value)||\" \"},mdoStartDate:null!=_&&_.start_date?(0,N.Yq)(null==_?void 0:_.start_date,\"MM-DD-YYYY\"):null,mdoEndDate:null!=_&&_.end_date?[(0,N.Yq)(null==_?void 0:_.start_date,\"MM/DD/YYYY\"),(0,N.Yq)(null==_?void 0:_.end_date,\"MM/DD/YYYY\")]:null,mdoHQ:\"\",employeeId:null!==(a=null==_?void 0:_.employee_id)&&void 0!==a?a:\"\",parent_hq_id:s,isShowParentData:ge})}else ye(me)},[we,Oe]);var Ue=function(){A(!0)},Ye=function(){var e={};return e.domain=Y,e.endPoint=c.p.GET_SALES_HIERARCHYID_ID.replace(\"__BUID__\",\"\".concat(null==V?void 0:V.bu_id)),e.customHeaders={\"country-code\":H,bu_id:null==V?void 0:V.bu_id,Authorization:\"Bearer \".concat(z)},e.triggerLoader=F,T(e).then(function(e){var t,n,r;(201===e.status||200===e.status&&null!=e&&null!==(t=e.data)&&void 0!==t&&t.sales_hierarchy_id)&&(Le(null==e||null===(n=e.data)||void 0===n?void 0:n.parent_id),function(e){var t={};t.domain=Y,t.endPoint=c.p.GET_PORTFOLIOS_LIST_BY_ROLE_AUTH,t.customHeaders={\"country-code\":H,\"role-id\":e,\"bu-id\":null==V?void 0:V.bu_id,Authorization:\"Bearer \".concat(z)},t.triggerLoader=F,T(t).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});Se(n)}}).catch(function(e){console.log(\"portfolio fetch Error\",e)})}(null==e||null===(r=e.data)||void 0===r?void 0:r.sales_hierarchy_id))}).catch(function(e){console.log(\"portfolio fetch Error\",e)})},Ge=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"DEFAULT\",r=null==we?void 0:we.filter(function(e){return(null==e?void 0:e.value)==n});return null!==(e=null==r||null===(t=r[0])||void 0===t?void 0:t.id)&&void 0!==e?e:null},ze=function(e){var t,n,r,o,a,i,l,s,u,d,p=c.p.GET_MDOSBYID.replace(\"__ID__\",\"\".concat(null==_?void 0:_.user_uuid)),f={};return f.endPoint=p,f.domain=Y,f.customHeaders={\"country-code\":H,Authorization:\"Bearer \".concat(z),\"user-id\":G,\"bu-id\":null==V?void 0:V.bu_id},f.payLoad={country_app_id:U,first_name:null==e?void 0:e.firstName.trim(),last_name:null==e?void 0:e.lastName.trim(),mobile_number:null==e?void 0:e.phoneNumber,headquarter_data_id:null==e?void 0:e.mdoHQ,employee_type_id:null==e||null===(t=e.employeeType)||void 0===t?void 0:t.id,start_date:null!=e&&e.mdoStartDate?(0,N.Yq)(null==e?void 0:e.mdoStartDate,\"YYYY-MM-DD\"):null,end_date:null!=e&&null!==(n=e.mdoEndDate)&&void 0!==n&&n[1]?(0,N.Yq)(null==e?void 0:e.mdoEndDate[1],\"YYYY-MM-DD\"):null,employee_id:(null==e?void 0:e.employeeId)||null,portfolio_id:Ge(ue?null!==(r=null==e||null===(o=e.portfolio)||void 0===o?void 0:o.value)&&void 0!==r?r:\"DEFAULT\":null!=ce?ce:\"DEFAULT\"),portfolio_code:ue?null!==(a=null==e||null===(i=e.portfolio)||void 0===i?void 0:i.value)&&void 0!==a?a:\"DEFAULT\":null!=ce?ce:\"DEFAULT\",parent_hq_id:null!==(l=null==e||null===(s=e.parent_hq_id)||void 0===s?void 0:s.value)&&void 0!==l?l:null},f.triggerLoader=F,null===(d=f,u=(0,S.AT)(\"put\",d,!1))||void 0===u?void 0:u.then(function(e){var t;if(201===e.status||200===e.status)return A(!0),void j({message:e.data,type:\"success\"});throw j({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){Ve(e)})},Ve=function(e){var t;j({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})},qe=function(e){!function(e){(null==_?void 0:_.parent_hq_id)!==e.parent_hq_id.value&&null!=_&&_.parent_hq_id?(le(e),Q(!0)):ze(e)}(e)},We=function(e){!function(e){var t,n,r,o,a,i,l,s,u,d={};d.domain=Y,d.endPoint=c.p.GET_MDOS,d.customHeaders={\"country-code\":H,Authorization:\"Bearer \".concat(z),\"user-id\":G,\"bu-id\":null==V?void 0:V.bu_id},d.payLoad=ee({country_app_id:U,first_name:null==e?void 0:e.firstName.trim(),last_name:null==e?void 0:e.lastName.trim(),mobile_number:null==e?void 0:e.phoneNumber,start_date:null!=e&&e.mdoStartDate?(0,N.Yq)(null==e?void 0:e.mdoStartDate,\"YYYY-MM-DD\"):null,headquarter_data_id:(null==e?void 0:e.mdoHQ)||null,employee_type_id:(null==e||null===(t=e.employeeType)||void 0===t?void 0:t.id)||null,portfolio_id:Ge(ue?null!==(n=null==e||null===(r=e.portfolio)||void 0===r?void 0:r.value)&&void 0!==n?n:\"DEFAULT\":null!=ce?ce:\"DEFAULT\"),portfolio_code:ue?null!==(o=null==e||null===(a=e.portfolio)||void 0===a?void 0:a.value)&&void 0!==o?o:\"DEFAULT\":null!=ce?ce:\"DEFAULT\",parent_hq_id:null!==(i=null==e||null===(l=e.parent_hq_id)||void 0===l?void 0:l.value)&&void 0!==i?i:null,employee_id:null==e?void 0:e.employeeId},null!=e&&e.user_endorsment_details?{user_endorsement_details:null==e?void 0:e.user_endorsment_details}:{}),d.triggerLoader=F,null===(u=d,s=(0,S.AT)(\"post\",u,!1))||void 0===s||s.then(function(e){var t,n;if(201===e.status||200===e.status)return A(!0),void j({message:e.data,type:\"success\"});throw j({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){Ve(e)})}(e)},Qe=function(e){(E?qe:We)(e)};(0,l.useEffect)(function(){var e;e={moduleName:d.Rk.WEB_UI,keys:[d.Rk.EMPLOYEE_ID_CHAR_LIMIT],apiName:d.Rk.EMPLOYEE_ID_CHAR_LIMIT},(0,R.j)((0,S.rZ)(k,B),F,e).then(function(e){var t,n=JSON.parse(null===(t=(0,S.Ws)(d.Rk.EMPLOYEE_ID_CHAR_LIMIT,e))||void 0===t?void 0:t.value);_e(n)}).catch(function(){})},[]);return(0,l.useEffect)(function(){var e,t,n;(function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=\"\".concat(c.p.SAVE_ATTENDANCE_TYPES,\"?moduleName=\").concat(r.moduleName,\"&\").concat((0,S.EY)(\"keys\",r.keys),\"&portfolioCode=\").concat(null==r?void 0:r.portfolioCode),a.triggerLoader=n,a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==r?void 0:r.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},(0,S.AT)(\"get\",a,!0)})(k,B,F,{moduleName:\"SAFETY_ENDORSEMENT\",keys:[oe],roleId:null==k||null===(e=k.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId,portfolioCode:null!==(t=null==k||null===(n=k.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code)&&void 0!==t?t:\"DEFAULT\"}).then(function(e){He(function(t){return ee(ee({},t),{},{enableSafetyEndorsement:(n=oe,r=e,o=null==r?void 0:r.find(function(e){return(null==e?void 0:e.key)===n}),\"true\"===\"\".concat(null==o?void 0:o.value).toLowerCase())});var n,r,o})}).catch(function(){He(function(e){return ee(ee({},e),{},{enableSafetyEndorsement:!1})})}),function(e,t,n){var r,o={};return o.domain=t,o.endPoint=c.p.GET_ENDORSEMENT_DATA,o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,(0,S.AT)(\"get\",o,!0)}(k,Y,F).then(function(e){var t,n=null!==(t=null==e?void 0:e[0])&&void 0!==t?t:{};He(function(e){var t,r,o,a,i,l;return ee(ee({},e),{},{endorsementConfigurationId:null!==(t=null==n?void 0:n.endorsment_configuration_id)&&void 0!==t?t:null,declarationText:null!==(r=null==n?void 0:n.declaration_txt)&&void 0!==r?r:\"\",acknowledgementText:null!==(o=null==n?void 0:n.acknowledgement_txt)&&void 0!==o?o:\"\",safetyChecklistText:null!==(a=null==n?void 0:n.safety_checklist_txt)&&void 0!==a?a:\"\",safet_checklist_order:null!==(i=null==n?void 0:n.safet_checklist_order)&&void 0!==i?i:[],safefy_checklist_details:null!==(l=null==n?void 0:n.safefy_checklist_details)&&void 0!==l?l:[]})})}).catch(function(){})},[]),s().createElement(C.A,{isDrawerOpen:m,anchor:\"right\"},s().createElement(r.A,{className:\"popupMain\"},s().createElement(L.A,{text:pe(E?\"EDIT_MDO\":\"ADD_MDO\"),onClose:function(){return A(!1)},dataTestId:\"onRequestClose\"}),s().createElement(X,{isEditingMode:E,onHandleCancel:Ue,parentHqList:Oe,isShowParentData:ge,portfolioList:we,setPortfolioCode:Be,onSubmitHandleClearEndDateConfirmation:function(e){var t;null!=_&&_.end_date&&\"\"==(null==e||null===(t=e.mdoEndDate)||void 0===t?void 0:t[1])?(J(!0),re(e)):Qe(e)},employeeIdValidations:be,mdoValidations:Me,initialForm:Ae,empTypes:M,User:k,endorsementConfig:je})),W&&s().createElement(D.R,{isVisible:W,message:d.JS.CHANGE_PARENT_CONFIRMATION_POPUP,onSave:function(){return ze(ie)},onRequestClose:function(){return Q(!1)}}),$&&s().createElement(D.R,{isVisible:$,message:d.JS.CLEAR_END_DATE_ACTIVE_USER_CONFIRMATION_POPUP,onSave:function(){return Qe(te)},onRequestClose:function(){J(!1),Ue()},primaryBtnName:null!==(p=pe(\"PROCEED\"))&&void 0!==p?p:\"\",secondaryBtnName:null!==(f=pe(\"CANCEL\"))&&void 0!==f?f:\"\"}))};var ie=n(6064);function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ue=function(e){var t,n=e.isDrawerOpen,a=void 0!==n&&n,i=e.onRequestClose,c=void 0===i?function(){}:i,d=e.setFilter,p=void 0===d?function(){}:d,f=e.selectedFilter,g=(0,u.Bd)().t,h=le((0,l.useState)({status:null!==(t=null==f?void 0:f.label)&&void 0!==t?t:\"\"}),2),m=h[0],v=h[1],A=le((0,l.useState)(f),2),E=A[0],b=A[1],_=function(){p({}),b({}),v({status:\"\"}),c(!0)};return s().createElement(r.A,null,s().createElement(C.A,{isDrawerOpen:a,anchor:\"top\",upper:!0},s().createElement(r.A,{p:3},s().createElement(M.l1,{initialValues:m,enableReinitialize:!0,onSubmit:function(e,t){p(E),c(!0)}},function(e){var t=e.values,n=e.setFieldValue;return s().createElement(M.lV,null,s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"start\",gap:7},s().createElement(ie.A,{values:t,setFieldValue:n,setSelectedStatus:b})),s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",gap:1},s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",gap:2,p:1,justifyContent:\"end\",alignItems:\"center\",mt:2},s().createElement(y.A,{variant:\"outlined\",buttonName:g(\"CLEAR_FILTERS\"),onButtonClick:_,fullwidth:!1,color:\"secondary\"}),s().createElement(y.A,{variant:\"contained\",buttonName:g(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))),s().createElement(r.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return c(!1)},className:\"smart-agro-lite-filter-cross\"},s().createElement(P.A,{className:\"icon-close closeIcon\"})))}))))};var ce=(0,n(11848).Ay)(r.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .disabled-field\":{backgroundColor:\"#f0f0f0\",color:\"#888\",cursor:\"not-allowed\"}}}),de=n(33722);function pe(e){return pe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},pe(e)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){he(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=pe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==pe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ae=function(e){var t,n,C,S,R,L=e.RBACControls,P=(0,h.w)(L),M=P.hasCreateAccess,I=P.hasUpdateAccess,k=(0,l.useContext)(g.v),B=k.BackOfficeProps.globalStore.User,F=B.selectedBusinessUnit,j=B.selectedApplication,H=k.triggerToastMsg,U=(0,l.useContext)(g.v),Y=U.BackOfficeProps,G=Y.globalStore.User,z=Y.baseurl,V=U.triggerShowLoader,q=(0,O.i)(G),W=q.hasShowPortfolio,Q=q.hasPortfolioCode,K=q.hasPortfolioEnable,$=null===(t=G.selectedCountry)||void 0===t?void 0:t.countryCode,X=z,J=null!==(n=null==G?void 0:G.AccessToken)&&void 0!==n?n:\"\",Z=null===(C=G.UserDetails)||void 0===C?void 0:C.user_id,ee=null==G?void 0:G.selectedBusinessUnit,te=(0,u.Bd)().t,ne=me((0,l.useState)([]),2),re=ne[0],oe=ne[1],ie=me((0,l.useState)(!1),2),le=ie[0],se=ie[1],pe=me((0,l.useState)(!1),2),fe=pe[0],he=pe[1],ve=me((0,l.useState)(!1),2),Ae=ve[0],ye=ve[1],Ee=me((0,l.useState)(d.T3),2),be=Ee[0],_e=Ee[1],Ce=me((0,l.useState)(!1),2),we=Ce[0],Se=Ce[1],Te=me((0,l.useState)({}),2),Oe=Te[0],De=Te[1],Re=me((0,l.useState)(1),2),Ne=Re[0],Le=Re[1],Pe=me((0,l.useState)(0),2),Me=Pe[0],xe=Pe[1],Ie=me((0,l.useState)(5),2),ke=Ie[0],Be=Ie[1],Fe=me((0,l.useState)(!1),2),je=Fe[0],He=Fe[1],Ue=me(s().useState(null),2),Ye=Ue[0],Ge=Ue[1],ze=me((0,l.useState)([]),2),Ve=ze[0],qe=ze[1],We=me((0,l.useState)({searchValue:\"\",pageNo:0,pageSize:10}),2),Qe=We[0],Ke=We[1],$e=Qe.searchValue,Xe=Qe.pageNo,Je=Qe.pageSize,Ze=function(e){ye(!0),De(e)},et=function(e){var t,n=c.p.GET_MDOSBYID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.uuid)),r={};r.endPoint=n,r.domain=X,r.customHeaders={\"country-code\":$,\"bu-id\":null==ee?void 0:ee.bu_id,\"user-id\":Z,Authorization:\"Bearer \".concat(J)},r.triggerLoader=V,null===(t=T(r))||void 0===t||t.then(function(e){null!=e&&e.data&&(se(!0),Se(!0),De(null==e?void 0:e.data))}).catch(function(e){console.log(\"ERR on GetMdos \".concat(e))})};(0,l.useEffect)(function(){tt()},[le,Qe,be,Ye,je]),(0,l.useEffect)(function(){var e;(e={}).domain=X,e.endPoint=c.p.GET_EMPLOYEETYPES,e.customHeaders={\"country-code\":$,Authorization:\"Bearer \".concat(J)},e.triggerLoader=V,T(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});oe(n)}}).catch(function(e){console.log(\"Employee Types Error\",e)})},[]);var tt=function(){var e,t={};t.domain=X,t.endPoint=c.p.GET_MDOS,t.customHeaders={\"country-code\":$,\"bu-id\":null==ee?void 0:ee.bu_id,\"user-id\":Z,\"role-type-name\":G.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(J)},t.payLoad={search_key:$e.toUpperCase(),page_no:Xe,page_size:Je,sort_order:\"asc\",sort_by:d.Cl.MODIFIED_AT,is_status_active:Ye?Ye.value:null},!W&&K&&(t.payLoad[\"portfolio-code\"]=Q),be&&(t.payLoad.sort_order=\"1\"===be?\"asc\":\"desc\"),t.triggerLoader=V,null===(e=T(t))||void 0===e||e.then(function(e){var t,n,r,o,a=1;if((null==e||null===(t=e.data)||void 0===t?void 0:t.total_elements)>Je&&(a=Math.ceil((null==e||null===(o=e.data)||void 0===o?void 0:o.total_elements)/Je)),Le(a),xe(null==e||null===(n=e.data)||void 0===n?void 0:n.total_elements),(null==e||null===(r=e.data)||void 0===r||null===(r=r.user_view_details_list)||void 0===r?void 0:r.length)>0){var i,l=null==e||null===(i=e.data)||void 0===i||null===(i=i.user_view_details_list)||void 0===i?void 0:i.map(function(e){return{uuid:null==e?void 0:e.user_uuid,firstName:null==e?void 0:e.first_name,lastName:null==e?void 0:e.last_name,phoneNumber:null==e?void 0:e.mobile_number,mdoStartDate:null!=e&&e.start_date?(0,N.Yq)(null==e?void 0:e.start_date,\"DD-MM-YYYY\"):null,mdoEndDate:null!=e&&e.end_date?(0,N.Yq)(null==e?void 0:e.end_date,\"DD-MM-YYYY\"):null,status:null!=e&&e.is_active?\"Active\":\"InActive\",employee_id:null==e?void 0:e.employee_id,email:null==e?void 0:e.email_id}});qe(l)}else qe([])}).catch(function(e){console.log(\"FETCH MDOs\",e)})},nt={id:\"SO\",pk:\"FO\",ph:\"FP/SC\",bd:\"SPO\"}[G.selectedCountry.countryCode.toLowerCase()]||f.F_.MDO;return s().createElement(ce,null,s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,{mb:2},s().createElement(A.A,{routePathName:[{name:f.F_.UserManagement,path:f.fp.UserManagement},{name:nt,path:f.fp.MDO}]})),s().createElement(r.A,null,s().createElement(E.A,{onSearchValueChange:function(e){return Ke(function(t){return ge(ge({},t),{},{pageNo:0,searchValue:e})})},placeholderText:te(\"SEARCH\"),searchValue:\"\",searchBasedOn:te(\"MDOS_SEARCH\")}))),s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(b.A,{menuItemData:[5,20,100],onHandleChange:function(e){Ke(function(t){return ge(ge({},t),{},{pageSize:e})}),Be(e)},selectedItem:ke}),s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mb:2,gap:2},s().createElement(y.A,{className:null!=Ye&&Ye.label?\"button-with-dot\":\"\",buttonName:te(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){he(!0)},disabled:!M}),s().createElement(a.A,{orientation:\"vertical\",flexItem:!0}),s().createElement(_.A,{onSort:function(e){return _e(null==e?void 0:e.toString())},sortBy:be,showLastUpdatedOn:!0}),s().createElement(y.A,{variant:\"contained\",buttonName:te(\"ADD_MDO\"),onButtonClick:function(){return se(!0)},fullwidth:!1,color:\"primary\",type:\"button\",disabled:!M}))),s().createElement(i.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(v.A,{rows:Ve,columnDefs:p.cn,frameworkComponents:{EditActionComponent:function(e){return function(e){var t=e.column,n=e.data,r=e.hasUpdateAccess,o=e.getMdoById,a=e.showConfirmationPopupOnClearEndDateFun,i={edit:(0,x.t)(\"EDIT\")};return\"status\"===t.colId&&\"Active\"===(null==n?void 0:n.status)?s().createElement(\"p\",{className:\"smart-agro-lite-active-label\"},n.status):\"status\"===t.colId&&\"InActive\"===(null==n?void 0:n.status)?s().createElement(\"p\",{className:\"smart-agro-lite-inactive-label\"},n.status):\"Active\"===(null==n?void 0:n.status)?s().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button \".concat(r?\"\":\"disabled-label\"),onClick:function(){return r&&o?o(n):void 0}},i[t.colId]):s().createElement(de.A,{column:t,data:n,updateEndDate:a})}(ge(ge({},e),{},{hasUpdateAccess:I,getMdoById:et,showConfirmationPopupOnClearEndDateFun:Ze}))}}})),s().createElement(m.A,{pageNo:Qe.pageNo,totalPageCount:Ne,totalElements:Me,onPageChange:function(e){Ke(function(t){return ge(ge({},t),{},{pageNo:Number(e)})})}}),le&&s().createElement(ae,{isDrawerOpen:le,onRequestClose:function(e){se(!1),Se(!1),De(null)},isEditingMode:we,SelectedRowItem:Oe,empTypes:re}),fe&&s().createElement(ue,{isDrawerOpen:fe,onRequestClose:function(e){he(!1)},setFilter:function(e){e&&(Ge(e),Ke(function(e){return ge(ge({},e),{},{pageNo:0,pageSize:10})}))},selectedFilter:Ye}),s().createElement(D.R,{message:d.JS.CLEAR_END_DATE_USER_CONFIRMATION_POPUP,isVisible:Ae,onRequestClose:function(){return ye(!1)},onSave:function(){return function(e){ye(!1);var t={isMDOUser:!0,country_app_id:j.country_app_id,bu_id:F.bu_id,email_id:null==e?void 0:e.email,mobile_number:null==e?void 0:e.phoneNumber,employee_id:null==e?void 0:e.employee_id,user_uuid:null==e?void 0:e.uuid};(0,w.To)(G,X,V,t).then(function(e){null!=e&&e.statusCode&&(He(function(e){return!e}),H({message:e.message,type:\"success\"}))}).catch(function(e){V(!1),H({message:e.message,type:\"error\"})})}(Oe)},primaryBtnName:null!==(S=te(\"PROCEED\"))&&void 0!==S?S:\"\",secondaryBtnName:null!==(R=te(\"CANCEL\"))&&void 0!==R?R:\"\"})))}},18014:(e,t,n)=>{\"use strict\";var r=n(91291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},18259:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a825c5924a8ad9bc9e7c.eot\"},18265:e=>{\"use strict\";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},18593:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(81970);const o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},18727:(e,t,n)=>{\"use strict\";var r=n(36955);e.exports=function(e){var t=r(e);return\"BigInt64Array\"===t||\"BigUint64Array\"===t}},18745:(e,t,n)=>{\"use strict\";var r=n(40616),o=Function.prototype,a=o.apply,i=o.call;e.exports=\"object\"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},18814:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(44576).RegExp;e.exports=r(function(){var e=o(\"(?<a>b)\",\"g\");return\"b\"!==e.exec(\"b\").groups.a||\"bc\"!==\"b\".replace(e,\"$<a>c\")})},18850:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>k});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(96852),d=n(83034),p=n(81984),f=n(22618),g=n(17437),h=n(33068),m=n(74848);var v=n(38413);const A=(0,v.A)(\"MuiTouchRipple\",[\"root\",\"ripple\",\"rippleVisible\",\"ripplePulsate\",\"child\",\"childLeaving\",\"childPulsate\"]),y=[\"center\",\"classes\",\"className\"];let E,b,_,C,w=e=>e;const S=(0,g.i7)(E||(E=w`\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n`)),T=(0,g.i7)(b||(b=w`\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n`)),O=(0,g.i7)(_||(_=w`\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n`)),D=(0,s.Ay)(\"span\",{name:\"MuiTouchRipple\",slot:\"Root\"})({overflow:\"hidden\",pointerEvents:\"none\",position:\"absolute\",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:\"inherit\"}),R=(0,s.Ay)(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:l,rippleSize:s,in:u,onExited:c,timeout:d}=e,[p,f]=a.useState(!1),g=(0,i.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+l,left:-s/2+o},v=(0,i.A)(n.child,p&&n.childLeaving,r&&n.childPulsate);return u||p||f(!0),a.useEffect(()=>{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}},[c,u,d]),(0,m.jsx)(\"span\",{className:g,style:h,children:(0,m.jsx)(\"span\",{className:v})})},{name:\"MuiTouchRipple\",slot:\"Ripple\"})(C||(C=w`\n  opacity: 0;\n  position: absolute;\n\n  &.${0} {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  &.${0} {\n    animation-duration: ${0}ms;\n  }\n\n  & .${0} {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & .${0} {\n    opacity: 0;\n    animation-name: ${0};\n    animation-duration: ${0}ms;\n    animation-timing-function: ${0};\n  }\n\n  & .${0} {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ${0};\n    animation-duration: 2500ms;\n    animation-timing-function: ${0};\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n`),A.rippleVisible,S,550,({theme:e})=>e.transitions.easing.easeInOut,A.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,A.child,A.childLeaving,T,550,({theme:e})=>e.transitions.easing.easeInOut,A.childPulsate,O,({theme:e})=>e.transitions.easing.easeInOut),N=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiTouchRipple\"}),{center:l=!1,classes:s={},className:c}=n,d=(0,o.A)(n,y),[p,g]=a.useState([]),v=a.useRef(0),E=a.useRef(null);a.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const b=a.useRef(!1),_=(0,h.A)(),C=a.useRef(null),w=a.useRef(null),S=a.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;g(e=>[...e,(0,m.jsx)(R,{classes:{ripple:(0,i.A)(s.ripple,A.ripple),rippleVisible:(0,i.A)(s.rippleVisible,A.rippleVisible),ripplePulsate:(0,i.A)(s.ripplePulsate,A.ripplePulsate),child:(0,i.A)(s.child,A.child),childLeaving:(0,i.A)(s.childLeaving,A.childLeaving),childPulsate:(0,i.A)(s.childPulsate,A.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},v.current)]),v.current+=1,E.current=a},[s]),T=a.useCallback((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:o=l||t.pulsate,fakeElement:a=!1}=t;if(\"mousedown\"===(null==e?void 0:e.type)&&b.current)return void(b.current=!1);\"touchstart\"===(null==e?void 0:e.type)&&(b.current=!0);const i=a?null:w.current,s=i?i.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(o)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((i?i.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((i?i.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===C.current&&(C.current=()=>{S({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},_.start(80,()=>{C.current&&(C.current(),C.current=null)})):S({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[l,S,_]),O=a.useCallback(()=>{T({},{pulsate:!0})},[T]),N=a.useCallback((e,t)=>{if(_.clear(),\"touchend\"===(null==e?void 0:e.type)&&C.current)return C.current(),C.current=null,void _.start(0,()=>{N(e,t)});C.current=null,g(e=>e.length>0?e.slice(1):e),E.current=t},[_]);return a.useImperativeHandle(t,()=>({pulsate:O,start:T,stop:N}),[O,T,N]),(0,m.jsx)(D,(0,r.A)({className:(0,i.A)(A.root,s.root,c),ref:w},d,{children:(0,m.jsx)(f.A,{component:null,exit:!0,children:p})}))});var L=n(31609);function P(e){return(0,L.Ay)(\"MuiButtonBase\",e)}const M=(0,v.A)(\"MuiButtonBase\",[\"root\",\"disabled\",\"focusVisible\"]),x=[\"action\",\"centerRipple\",\"children\",\"className\",\"component\",\"disabled\",\"disableRipple\",\"disableTouchRipple\",\"focusRipple\",\"focusVisibleClassName\",\"LinkComponent\",\"onBlur\",\"onClick\",\"onContextMenu\",\"onDragLeave\",\"onFocus\",\"onFocusVisible\",\"onKeyDown\",\"onKeyUp\",\"onMouseDown\",\"onMouseLeave\",\"onMouseUp\",\"onTouchEnd\",\"onTouchMove\",\"onTouchStart\",\"tabIndex\",\"TouchRippleProps\",\"touchRippleRef\",\"type\"],I=(0,s.Ay)(\"button\",{name:\"MuiButtonBase\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",boxSizing:\"border-box\",WebkitTapHighlightColor:\"transparent\",backgroundColor:\"transparent\",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:\"pointer\",userSelect:\"none\",verticalAlign:\"middle\",MozAppearance:\"none\",WebkitAppearance:\"none\",textDecoration:\"none\",color:\"inherit\",\"&::-moz-focus-inner\":{borderStyle:\"none\"},[`&.${M.disabled}`]:{pointerEvents:\"none\",cursor:\"default\"},\"@media print\":{colorAdjust:\"exact\"}}),k=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiButtonBase\"}),{action:s,centerRipple:f=!1,children:g,className:h,component:v=\"button\",disabled:A=!1,disableRipple:y=!1,disableTouchRipple:E=!1,focusRipple:b=!1,LinkComponent:_=\"a\",onBlur:C,onClick:w,onContextMenu:S,onDragLeave:T,onFocus:O,onFocusVisible:D,onKeyDown:R,onKeyUp:L,onMouseDown:M,onMouseLeave:k,onMouseUp:B,onTouchEnd:F,onTouchMove:j,onTouchStart:H,tabIndex:U=0,TouchRippleProps:Y,touchRippleRef:G,type:z}=n,V=(0,o.A)(n,x),q=a.useRef(null),W=a.useRef(null),Q=(0,c.A)(W,G),{isFocusVisibleRef:K,onFocus:$,onBlur:X,ref:J}=(0,p.A)(),[Z,ee]=a.useState(!1);A&&Z&&ee(!1),a.useImperativeHandle(s,()=>({focusVisible:()=>{ee(!0),q.current.focus()}}),[]);const[te,ne]=a.useState(!1);a.useEffect(()=>{ne(!0)},[]);const re=te&&!y&&!A;function oe(e,t,n=E){return(0,d.A)(r=>(t&&t(r),!n&&W.current&&W.current[e](r),!0))}a.useEffect(()=>{Z&&b&&!y&&te&&W.current.pulsate()},[y,b,Z,te]);const ae=oe(\"start\",M),ie=oe(\"stop\",S),le=oe(\"stop\",T),se=oe(\"stop\",B),ue=oe(\"stop\",e=>{Z&&e.preventDefault(),k&&k(e)}),ce=oe(\"start\",H),de=oe(\"stop\",F),pe=oe(\"stop\",j),fe=oe(\"stop\",e=>{X(e),!1===K.current&&ee(!1),C&&C(e)},!1),ge=(0,d.A)(e=>{q.current||(q.current=e.currentTarget),$(e),!0===K.current&&(ee(!0),D&&D(e)),O&&O(e)}),he=()=>{const e=q.current;return v&&\"button\"!==v&&!(\"A\"===e.tagName&&e.href)},me=a.useRef(!1),ve=(0,d.A)(e=>{b&&!me.current&&Z&&W.current&&\" \"===e.key&&(me.current=!0,W.current.stop(e,()=>{W.current.start(e)})),e.target===e.currentTarget&&he()&&\" \"===e.key&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&he()&&\"Enter\"===e.key&&!A&&(e.preventDefault(),w&&w(e))}),Ae=(0,d.A)(e=>{b&&\" \"===e.key&&W.current&&Z&&!e.defaultPrevented&&(me.current=!1,W.current.stop(e,()=>{W.current.pulsate(e)})),L&&L(e),w&&e.target===e.currentTarget&&he()&&\" \"===e.key&&!e.defaultPrevented&&w(e)});let ye=v;\"button\"===ye&&(V.href||V.to)&&(ye=_);const Ee={};\"button\"===ye?(Ee.type=void 0===z?\"button\":z,Ee.disabled=A):(V.href||V.to||(Ee.role=\"button\"),A&&(Ee[\"aria-disabled\"]=A));const be=(0,c.A)(t,J,q),_e=(0,r.A)({},n,{centerRipple:f,component:v,disabled:A,disableRipple:y,disableTouchRipple:E,focusRipple:b,tabIndex:U,focusVisible:Z}),Ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a={root:[\"root\",t&&\"disabled\",n&&\"focusVisible\"]},i=(0,l.A)(a,P,o);return n&&r&&(i.root+=` ${r}`),i})(_e);return(0,m.jsxs)(I,(0,r.A)({as:ye,className:(0,i.A)(Ce.root,h),ownerState:_e,onBlur:fe,onClick:w,onContextMenu:ie,onFocus:ge,onKeyDown:ve,onKeyUp:Ae,onMouseDown:ae,onMouseLeave:ue,onMouseUp:se,onDragLeave:le,onTouchEnd:de,onTouchMove:pe,onTouchStart:ce,ref:be,tabIndex:A?-1:U,type:z},Ee,V,{children:[g,re?(0,m.jsx)(N,(0,r.A)({ref:Q,center:f},Y)):null]}))})},18978:(e,t,n)=>{\"use strict\";n.d(t,{Bs:()=>c,FU:()=>u,UX:()=>s,_n:()=>d,i:()=>p,k6:()=>f}),n(28706),n(48598),n(62062),n(26099),n(3362);var r=n(96790),o=n(8085),a=n(34358),i=n(13075),l=n(92782),s=function(e,t,n,l){var s={};return s.domain=t,s.endPoint=o.p.GET_LIQUIDATION_LISTDATA,s.triggerLoader=n,s.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},s.payLoad=l,new Promise(function(e,t){(0,a.uB)(s,r.dF.POST).then(function(t){if((0,i.mN)(t)){var n,r=null!==(n=t.data)&&void 0!==n&&n.data?{totalPageCount:(o=t.data).totalPageCount,totalElements:o.totalElements,data:null==o?void 0:o.data.map(function(e){return{id:e.id,hqName:e.hqName,brand:e.brand,year:e.year,targetVolume:e.targetVolume,targetValue:e.targetValue,actualVolume:e.actualVolume,actualValue:e.actualValue,status:e.status}})}:{};return e(r)}var o;throw new Error((0,i.Tl)(\"NO_LIQUIDATION_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})},u=function(e,t,n,l){var s,u={};return u.domain=t,u.endPoint=o.p.GET_FILTERS_LABELS_LIST,u.payLoad={salesHierarchyId:l},u.triggerLoader=n,u.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"role-id\":null==e||null===(s=e.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId,\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,a.uB)(u,r.dF.GET).then(function(t){if((0,i.mN)(t))return e(t.data);throw new Error((0,i.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})},c=function(e,t,n,r){var a={};return a.domain=n,a.endPoint=o.p.GET_FIRST_LEVEL_FILTER_LIST,a.payLoad={\"sales_hierarchy_id \":e},a.triggerLoader=r,a.customHeaders={\"country-code\":\"\".concat(t.selectedCountry.countryCode),\"bu-id\":\"\".concat(t.selectedBusinessUnit.bu_id),\"role-type-name\":\"\".concat(t.UserDetails.role_type_details.role_type_name),\"user-id\":\"\".concat(t.UserDetails.user_id),Authorization:\"Bearer \".concat(t.AccessToken)},(0,i.AT)(\"get\",a,!0)},d=function(e,t,n,l){var s={};return s.domain=t,s.endPoint=\"\".concat(o.p.GET_FILTERS_LIST,\"?targetForId=\").concat(l.targetForId,\"&\").concat(l.parentHqIds.map(function(e){return\"parentHqIds=\".concat(e)}).join(\"&\")),s.triggerLoader=n,s.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,a.uB)(s,r.dF.GET).then(function(t){if((0,i.mN)(t))return e(t.data);throw new Error((0,i.Tl)(\"NO_LIST_AVAILABLE\"))}).catch(function(e){return t(e)})})},p=function(e,t,n){var r={};return r.domain=t,r.endPoint=o.p.GET_YEAR_FILTER_LIST,r.triggerLoader=n,new Promise(function(t,n){(0,l.mi)(r,e,(0,i.Tl)(\"NO_FILTER_LIST_AVAILABLE\"),{resolve:t,reject:n})})},f=function(e,t,n){var r,a,s,u,c={};return c.domain=t,c.endPoint=o.p.GET_BRAND_FILETR_LIST,null!=e&&null!==(r=e.selectedBusinessUnit)&&void 0!==r&&r.portfolio_enable&&\"TM\"===(null==e||null===(a=e.selectedBusinessUnit)||void 0===a||null===(a=a.userRoleControls)||void 0===a?void 0:a.role_code)&&(c.endPoint=\"\".concat(c.endPoint,\"?portfolio_code=\").concat(null!==(s=null==e||null===(u=e.selectedBusinessUnit)||void 0===u?void 0:u.portfolio_code)&&void 0!==s?s:\"DEFAULT\")),c.triggerLoader=n,new Promise(function(t,n){(0,l.mi)(c,e,(0,i.Tl)(\"NO_BRANDS_AVAILABLE\"),{resolve:t,reject:n})})}},19021:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u}),n(62010);var r=n(28161),o=n(9378),a=n(81970),i=n.n(a),l=(0,n(11848).Ay)(r.A)(function(e){var t=e.theme;return{\"& .MuiInputBase-root.MuiOutlinedInput-root\":{border:\"1px solid \".concat(t.palette.grey[100]),height:40,\"&.Mui-focused\":{border:\"1px solid \".concat(t.palette.grey[100])},\"&:hover\":{border:\"1px solid \".concat(t.palette.grey[100])},\"& input\":{font:\"normal normal 400 14px/20px  NotoSans-Regular\",color:t.palette.grey[500]},\"& fieldset\":{border:0}}}}),s=function(e){var t=e.label,n=e.name,a=e.value,s=e.isMultiLine,u=e.style,c=e.onHandleChange,d=void 0===c?function(){}:c,p=e.InputProps,f=e.disabled,g=e.customClassName,h=e.customPlaceholder;return i().createElement(l,null,i().createElement(r.A,{component:\"form\",noValidate:!0,autoComplete:\"off\"},i().createElement(o.A,{label:t,variant:\"outlined\",defaultValue:a,value:a,onKeyUp:function(e){\"Enter\"===e.key&&e.preventDefault()},onChange:function(e){return d(e.target.value)},multiline:s,sx:u,InputProps:p,disabled:f,className:g,placeholder:h,name:n})))};const u=i().memo(s)},19067:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a),l=n(4417),s=n.n(l),u=new URL(n(19651),n.b),c=i()(o()),d=s()(u);c.push([e.id,`.ag-icon {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.ag-icon-aggregation::before {\\n  content: var(--ag-icon-font-code-aggregation, \"\\\\f101\");\\n}\\n\\n.ag-icon-arrows::before {\\n  content: var(--ag-icon-font-code-arrows, \"\\\\f102\");\\n}\\n\\n.ag-icon-asc::before {\\n  content: var(--ag-icon-font-code-asc, \"\\\\f103\");\\n}\\n\\n.ag-icon-cancel::before {\\n  content: var(--ag-icon-font-code-cancel, \"\\\\f104\");\\n}\\n\\n.ag-icon-chart::before {\\n  content: var(--ag-icon-font-code-chart, \"\\\\f105\");\\n}\\n\\n.ag-icon-checkbox-checked::before {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n}\\n\\n.ag-icon-checkbox-indeterminate::before {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n}\\n\\n.ag-icon-checkbox-unchecked::before {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n}\\n\\n.ag-icon-color-picker::before {\\n  content: var(--ag-icon-font-code-color-picker, \"\\\\f109\");\\n}\\n\\n.ag-icon-columns::before {\\n  content: var(--ag-icon-font-code-columns, \"\\\\f10a\");\\n}\\n\\n.ag-icon-contracted::before {\\n  content: var(--ag-icon-font-code-contracted, \"\\\\f10b\");\\n}\\n\\n.ag-icon-copy::before {\\n  content: var(--ag-icon-font-code-copy, \"\\\\f10c\");\\n}\\n\\n.ag-icon-cross::before {\\n  content: var(--ag-icon-font-code-cross, \"\\\\f10d\");\\n}\\n\\n.ag-icon-csv::before {\\n  content: var(--ag-icon-font-code-csv, \"\\\\f10e\");\\n}\\n\\n.ag-icon-cut::before {\\n  content: var(--ag-icon-font-code-cut, \"\\\\f10f\");\\n}\\n\\n.ag-icon-desc::before {\\n  content: var(--ag-icon-font-code-desc, \"\\\\f110\");\\n}\\n\\n.ag-icon-excel::before {\\n  content: var(--ag-icon-font-code-excel, \"\\\\f111\");\\n}\\n\\n.ag-icon-expanded::before {\\n  content: var(--ag-icon-font-code-expanded, \"\\\\f112\");\\n}\\n\\n.ag-icon-eye-slash::before {\\n  content: var(--ag-icon-font-code-eye-slash, \"\\\\f113\");\\n}\\n\\n.ag-icon-eye::before {\\n  content: var(--ag-icon-font-code-eye, \"\\\\f114\");\\n}\\n\\n.ag-icon-filter::before {\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n}\\n\\n.ag-icon-first::before {\\n  content: var(--ag-icon-font-code-first, \"\\\\f116\");\\n}\\n\\n.ag-icon-grip::before {\\n  content: var(--ag-icon-font-code-grip, \"\\\\f117\");\\n}\\n\\n.ag-icon-group::before {\\n  content: var(--ag-icon-font-code-group, \"\\\\f118\");\\n}\\n\\n.ag-icon-last::before {\\n  content: var(--ag-icon-font-code-last, \"\\\\f119\");\\n}\\n\\n.ag-icon-left::before {\\n  content: var(--ag-icon-font-code-left, \"\\\\f11a\");\\n}\\n\\n.ag-icon-linked::before {\\n  content: var(--ag-icon-font-code-linked, \"\\\\f11b\");\\n}\\n\\n.ag-icon-loading::before {\\n  content: var(--ag-icon-font-code-loading, \"\\\\f11c\");\\n}\\n\\n.ag-icon-maximize::before {\\n  content: var(--ag-icon-font-code-maximize, \"\\\\f11d\");\\n}\\n\\n.ag-icon-menu::before {\\n  content: var(--ag-icon-font-code-menu, \"\\\\f11e\");\\n}\\n\\n.ag-icon-minimize::before {\\n  content: var(--ag-icon-font-code-minimize, \"\\\\f11f\");\\n}\\n\\n.ag-icon-next::before {\\n  content: var(--ag-icon-font-code-next, \"\\\\f120\");\\n}\\n\\n.ag-icon-none::before {\\n  content: var(--ag-icon-font-code-none, \"\\\\f121\");\\n}\\n\\n.ag-icon-not-allowed::before {\\n  content: var(--ag-icon-font-code-not-allowed, \"\\\\f122\");\\n}\\n\\n.ag-icon-paste::before {\\n  content: var(--ag-icon-font-code-paste, \"\\\\f123\");\\n}\\n\\n.ag-icon-pin::before {\\n  content: var(--ag-icon-font-code-pin, \"\\\\f124\");\\n}\\n\\n.ag-icon-pivot::before {\\n  content: var(--ag-icon-font-code-pivot, \"\\\\f125\");\\n}\\n\\n.ag-icon-previous::before {\\n  content: var(--ag-icon-font-code-previous, \"\\\\f126\");\\n}\\n\\n.ag-icon-radio-button-off::before {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n}\\n\\n.ag-icon-radio-button-on::before {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n}\\n\\n.ag-icon-right::before {\\n  content: var(--ag-icon-font-code-right, \"\\\\f129\");\\n}\\n\\n.ag-icon-save::before {\\n  content: var(--ag-icon-font-code-save, \"\\\\f12a\");\\n}\\n\\n.ag-icon-small-down::before {\\n  content: var(--ag-icon-font-code-small-down, \"\\\\f12b\");\\n}\\n\\n.ag-icon-small-left::before {\\n  content: var(--ag-icon-font-code-small-left, \"\\\\f12c\");\\n}\\n\\n.ag-icon-small-right::before {\\n  content: var(--ag-icon-font-code-small-right, \"\\\\f12d\");\\n}\\n\\n.ag-icon-small-up::before {\\n  content: var(--ag-icon-font-code-small-up, \"\\\\f12e\");\\n}\\n\\n.ag-icon-tick::before {\\n  content: var(--ag-icon-font-code-tick, \"\\\\f12f\");\\n}\\n\\n.ag-icon-tree-closed::before {\\n  content: var(--ag-icon-font-code-tree-closed, \"\\\\f130\");\\n}\\n\\n.ag-icon-tree-indeterminate::before {\\n  content: var(--ag-icon-font-code-tree-indeterminate, \"\\\\f131\");\\n}\\n\\n.ag-icon-tree-open::before {\\n  content: var(--ag-icon-font-code-tree-open, \"\\\\f132\");\\n}\\n\\n.ag-icon-unlinked::before {\\n  content: var(--ag-icon-font-code-unlinked, \"\\\\f133\");\\n}\\n\\n.ag-icon-row-drag::before {\\n  content: var(--ag-icon-font-code-grip);\\n}\\n\\n.ag-left-arrow::before {\\n  content: var(--ag-icon-font-code-left);\\n}\\n\\n.ag-right-arrow::before {\\n  content: var(--ag-icon-font-code-right);\\n}\\n\\n[class*=ag-theme-] {\\n  --ag-foreground-color: #000;\\n  --ag-data-color: var(--ag-foreground-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-header-foreground-color: var(--ag-secondary-foreground-color);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: transparent;\\n  --ag-tooltip-background-color: transparent;\\n  --ag-subheader-background-color: transparent;\\n  --ag-subheader-toolbar-background-color: transparent;\\n  --ag-control-panel-background-color: transparent;\\n  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);\\n  --ag-selected-row-background-color: #BBB;\\n  --ag-odd-row-background-color: var(--ag-background-color);\\n  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);\\n  --ag-row-hover-color: transparent;\\n  --ag-column-hover-color: transparent;\\n  --ag-range-selection-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-border-style: solid;\\n  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);\\n  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);\\n  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-width: 0;\\n  --ag-selected-tab-underline-transition-speed: 0s;\\n  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);\\n  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);\\n  --ag-header-cell-hover-background-color: transparent;\\n  --ag-header-cell-moving-background-color: var(--ag-background-color);\\n  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);\\n  --ag-value-change-delta-up-color: #43a047;\\n  --ag-value-change-delta-down-color: #e53935;\\n  --ag-chip-background-color: transparent;\\n  --ag-borders: solid 1px;\\n  --ag-border-color: rgba(0, 0, 0, 0.25);\\n  --ag-borders-critical: var(--ag-borders);\\n  --ag-borders-secondary: var(--ag-borders);\\n  --ag-secondary-border-color: var(--ag-border-color);\\n  --ag-row-border-style: solid;\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-row-border-width: 1px;\\n  --ag-cell-horizontal-border: solid transparent;\\n  --ag-borders-input: var(--ag-borders-secondary);\\n  --ag-input-border-color: var(--ag-secondary-border-color);\\n  --ag-borders-input-invalid: solid 2px;\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-borders-side-button: var(--ag-borders);\\n  --ag-border-radius: 0px;\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-header-column-separator-display: none;\\n  --ag-header-column-separator-height: 100%;\\n  --ag-header-column-separator-width: 1px;\\n  --ag-header-column-separator-color: var(--ag-secondary-border-color);\\n  --ag-header-column-resize-handle-display: none;\\n  --ag-header-column-resize-handle-height: 50%;\\n  --ag-header-column-resize-handle-width: 1px;\\n  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);\\n  --ag-invalid-color: red;\\n  --ag-input-disabled-border-color: var(--ag-input-border-color);\\n  --ag-input-disabled-background-color: transparent;\\n  --ag-checkbox-background-color: transparent;\\n  --ag-checkbox-border-radius: var(--ag-border-radius);\\n  --ag-checkbox-checked-color: var(--ag-foreground-color);\\n  --ag-checkbox-unchecked-color: var(--ag-foreground-color);\\n  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-switch-background-color: var(--ag-background-color);\\n  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);\\n  --ag-toggle-button-border-width: 1px;\\n  --ag-toggle-button-height: var(--ag-icon-size);\\n  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);\\n  --ag-input-focus-box-shadow: none;\\n  --ag-input-focus-border-color: none;\\n  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);\\n  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 12px;\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: var(--ag-grid-size);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);\\n  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);\\n  --ag-header-height: var(--ag-row-height);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 5);\\n  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));\\n  --ag-filter-tool-panel-group-indent: 16px;\\n  --ag-tab-min-width: 220px;\\n  --ag-menu-min-width: 181px;\\n  --ag-side-bar-panel-width: 200px;\\n  --ag-font-family: \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 14px;\\n  --ag-card-radius: var(--ag-border-radius);\\n  --ag-card-shadow: none;\\n  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\\n}\\n\\n.ag-root-wrapper, .ag-sticky-top, .ag-dnd-ghost {\\n  background-color: var(--ag-background-color);\\n}\\n\\n[class*=ag-theme-] {\\n  -webkit-font-smoothing: antialiased;\\n  font-family: var(--ag-font-family);\\n  font-size: var(--ag-font-size);\\n  line-height: normal;\\n  color: var(--ag-foreground-color);\\n}\\n\\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\\n  display: block;\\n}\\n\\n.ag-hidden {\\n  display: none !important;\\n}\\n\\n.ag-invisible {\\n  visibility: hidden !important;\\n}\\n\\n.ag-no-transition {\\n  transition: none !important;\\n}\\n\\n.ag-drag-handle {\\n  cursor: grab;\\n}\\n\\n.ag-column-drop-wrapper {\\n  display: flex;\\n}\\n\\n.ag-column-drop-horizontal-half-width {\\n  display: inline-block;\\n  width: 50% !important;\\n}\\n\\n.ag-unselectable {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-selectable {\\n  -moz-user-select: text;\\n  -webkit-user-select: text;\\n  -ms-user-select: text;\\n  user-select: text;\\n}\\n\\n.ag-tab {\\n  position: relative;\\n}\\n\\n.ag-tab-guard {\\n  position: absolute;\\n  width: 0;\\n  height: 0;\\n  display: block;\\n}\\n\\n.ag-select-agg-func-popup {\\n  position: absolute;\\n}\\n\\n.ag-input-wrapper, .ag-picker-field-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  line-height: normal;\\n  position: relative;\\n}\\n\\n.ag-shake-left-to-right {\\n  animation-direction: alternate;\\n  animation-duration: 0.2s;\\n  animation-iteration-count: infinite;\\n  animation-name: ag-shake-left-to-right;\\n}\\n\\n@keyframes ag-shake-left-to-right {\\n  from {\\n    padding-left: 6px;\\n    padding-right: 2px;\\n  }\\n  to {\\n    padding-left: 2px;\\n    padding-right: 6px;\\n  }\\n}\\n.ag-root-wrapper {\\n  cursor: default;\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n}\\n.ag-root-wrapper.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-watermark {\\n  position: absolute;\\n  bottom: 20px;\\n  right: 25px;\\n  opacity: 0.5;\\n  transition: opacity 1s ease-out 3s;\\n}\\n.ag-watermark::before {\\n  content: \"\";\\n  background-image: url(${d});\\n  background-repeat: no-repeat;\\n  background-size: 170px 40px;\\n  display: block;\\n  height: 40px;\\n  width: 170px;\\n  opacity: 0.5;\\n}\\n\\n.ag-watermark-text {\\n  opacity: 0.5;\\n  font-weight: bold;\\n  font-family: Impact, sans-serif;\\n  font-size: 19px;\\n  padding-left: 0.7rem;\\n}\\n\\n.ag-root-wrapper-body {\\n  display: flex;\\n  flex-direction: row;\\n}\\n.ag-root-wrapper-body.ag-layout-normal {\\n  flex: 1 1 auto;\\n  height: 0;\\n  min-height: 0;\\n}\\n\\n.ag-root {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  width: 0;\\n}\\n.ag-root.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-header-viewport,\\n.ag-floating-top-viewport,\\n.ag-body-viewport,\\n.ag-center-cols-viewport,\\n.ag-floating-bottom-viewport,\\n.ag-body-horizontal-scroll-viewport,\\n.ag-body-vertical-scroll-viewport,\\n.ag-virtual-list-viewport,\\n.ag-sticky-top-viewport {\\n  position: relative;\\n  height: 100%;\\n  min-width: 0px;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-body-viewport {\\n  display: flex;\\n}\\n.ag-body-viewport.ag-layout-normal {\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-center-cols-viewport {\\n  width: 100%;\\n  overflow-x: auto;\\n}\\n\\n.ag-body-horizontal-scroll-viewport {\\n  overflow-x: scroll;\\n}\\n\\n.ag-body-vertical-scroll-viewport {\\n  overflow-y: scroll;\\n}\\n\\n.ag-virtual-list-viewport {\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-body-container,\\n.ag-pinned-right-cols-container,\\n.ag-center-cols-container,\\n.ag-pinned-left-cols-container,\\n.ag-floating-bottom-container,\\n.ag-body-horizontal-scroll-container,\\n.ag-body-vertical-scroll-container,\\n.ag-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-virtual-list-container,\\n.ag-sticky-top-container {\\n  position: relative;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-floating-bottom-container,\\n.ag-sticky-top-container {\\n  height: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-center-cols-container {\\n  display: block;\\n}\\n\\n.ag-pinned-right-cols-container {\\n  display: block;\\n}\\n\\n.ag-body-horizontal-scroll-container {\\n  height: 100%;\\n}\\n\\n.ag-body-vertical-scroll-container {\\n  width: 100%;\\n}\\n\\n.ag-full-width-container,\\n.ag-floating-top-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-sticky-top-full-width-container {\\n  position: absolute;\\n  top: 0px;\\n  pointer-events: none;\\n}\\n.ag-ltr .ag-full-width-container,\\n.ag-ltr .ag-floating-top-full-width-container,\\n.ag-ltr .ag-floating-bottom-full-width-container,\\n.ag-ltr .ag-sticky-top-full-width-container {\\n  left: 0;\\n}\\n.ag-rtl .ag-full-width-container,\\n.ag-rtl .ag-floating-top-full-width-container,\\n.ag-rtl .ag-floating-bottom-full-width-container,\\n.ag-rtl .ag-sticky-top-full-width-container {\\n  right: 0;\\n}\\n\\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\\n  display: inline-block;\\n  overflow: hidden;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-virtual-list-container {\\n  overflow: hidden;\\n}\\n\\n.ag-center-cols-clipper {\\n  flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  min-height: 100%;\\n  transform: translate3d(0, 0, 0);\\n}\\n\\n.ag-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  flex-direction: row !important;\\n  min-height: 0;\\n}\\n\\n.ag-body-clipper {\\n  overflow: hidden;\\n  min-width: 0px;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  transform: translate3d(0, 0, 0);\\n}\\n\\n.ag-body-horizontal-scroll,\\n.ag-body-vertical-scroll {\\n  min-height: 0;\\n  min-width: 0;\\n  display: flex;\\n  position: relative;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  position: absolute;\\n  bottom: 0;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {\\n  opacity: 0;\\n  transition: opacity 400ms;\\n  visibility: hidden;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {\\n  visibility: visible;\\n  opacity: 1;\\n}\\n\\n.ag-body-horizontal-scroll {\\n  width: 100%;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n  right: 0;\\n}\\n\\n.ag-body-vertical-scroll {\\n  height: 100%;\\n}\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  top: 0;\\n  z-index: 10;\\n}\\n.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  right: 0;\\n}\\n.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n}\\n\\n.ag-force-vertical-scroll {\\n  overflow-y: scroll !important;\\n}\\n\\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\\n  height: 100%;\\n  min-width: 0;\\n  overflow-x: scroll;\\n}\\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\\n  overflow-x: hidden;\\n}\\n\\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n}\\n\\n.ag-header-cell-sortable .ag-header-cell-label {\\n  cursor: pointer;\\n}\\n\\n.ag-header {\\n  display: flex;\\n  width: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-pinned-left-header {\\n  height: 100%;\\n}\\n\\n.ag-pinned-right-header {\\n  height: 100%;\\n}\\n\\n.ag-header-row {\\n  position: absolute;\\n}\\n\\n.ag-header-row:not(.ag-header-row-column-group) {\\n  overflow: hidden;\\n}\\n\\n.ag-header.ag-header-allow-overflow .ag-header-row {\\n  overflow: visible;\\n}\\n\\n.ag-header-cell {\\n  display: inline-flex;\\n  align-items: center;\\n  position: absolute;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button {\\n  opacity: 1;\\n}\\n\\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\\n  transition: opacity 0.2s;\\n  opacity: 0;\\n}\\n\\n.ag-header-group-cell-label, .ag-header-cell-label {\\n  display: flex;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n  align-items: center;\\n  text-overflow: ellipsis;\\n  align-self: stretch;\\n}\\n\\n.ag-header-group-cell-label.ag-sticky-label {\\n  position: sticky;\\n  flex: none;\\n}\\n\\n.ag-header-cell-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {\\n  height: 100%;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-comp-wrapper {\\n  width: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {\\n  white-space: normal;\\n}\\n\\n.ag-right-aligned-header .ag-header-cell-label {\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-header-group-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-header-cell-resize {\\n  position: absolute;\\n  z-index: 2;\\n  height: 100%;\\n  width: 8px;\\n  top: 0;\\n  cursor: ew-resize;\\n}\\n.ag-ltr .ag-header-cell-resize {\\n  right: -4px;\\n}\\n.ag-rtl .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize {\\n  right: -4px;\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-header-select-all {\\n  display: flex;\\n}\\n\\n.ag-column-moving .ag-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-group-cell {\\n  transition: left 0.2s, width 0.2s;\\n}\\n\\n.ag-column-panel {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 3 1 0px;\\n}\\n\\n.ag-column-select-header {\\n  position: relative;\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-column-select-header-icon {\\n  position: relative;\\n}\\n\\n.ag-column-select-header-filter-wrapper {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select-header-filter {\\n  width: 100%;\\n}\\n\\n.ag-column-select-list {\\n  flex: 1 1 0px;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop {\\n  position: relative;\\n  display: inline-flex;\\n  align-items: center;\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-column-drop-list {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell-text {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-column-drop-vertical {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  align-items: stretch;\\n  flex: 1 1 0px;\\n}\\n\\n.ag-column-drop-vertical-title-bar {\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-column-drop-vertical-list {\\n  position: relative;\\n  align-items: stretch;\\n  flex-grow: 1;\\n  flex-direction: column;\\n  overflow-x: auto;\\n}\\n.ag-column-drop-vertical-list > * {\\n  flex: none;\\n}\\n\\n.ag-column-drop-empty .ag-column-drop-vertical-list {\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  display: block;\\n}\\n\\n.ag-column-drop.ag-column-drop-horizontal {\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-cell-button {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-toolpanel {\\n  flex: 1 1 0px;\\n  min-width: 0;\\n}\\n\\n.ag-filter-toolpanel-header {\\n  position: relative;\\n}\\n\\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-filter-apply-panel {\\n  display: flex;\\n  justify-content: flex-end;\\n  overflow: hidden;\\n}\\n\\n.ag-row-animation .ag-row {\\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s;\\n}\\n\\n.ag-row-animation .ag-row.ag-after-created {\\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s;\\n}\\n\\n.ag-row-no-animation .ag-row {\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-row {\\n  white-space: nowrap;\\n  width: 100%;\\n}\\n\\n.ag-row-loading {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-row-position-absolute {\\n  position: absolute;\\n}\\n\\n.ag-row-position-relative {\\n  position: relative;\\n}\\n\\n.ag-full-width-row {\\n  overflow: hidden;\\n  pointer-events: all;\\n}\\n\\n.ag-row-inline-editing {\\n  z-index: 1;\\n}\\n\\n.ag-row-dragging {\\n  z-index: 2;\\n}\\n\\n.ag-stub-cell {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-cell {\\n  display: inline-block;\\n  position: absolute;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n\\n.ag-cell-value {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-cell-value, .ag-group-value {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-cell-wrap-text {\\n  white-space: normal;\\n  word-break: break-all;\\n}\\n\\n.ag-cell-wrapper {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-cell-wrapper.ag-row-group {\\n  align-items: flex-start;\\n}\\n\\n.ag-sparkline-wrapper {\\n  position: absolute;\\n  height: 100%;\\n  width: 100%;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  height: 100%;\\n  align-items: center;\\n}\\n\\n.ag-cell-inline-editing {\\n  z-index: 1;\\n}\\n.ag-cell-inline-editing .ag-cell-wrapper,\\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor,\\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor input {\\n  height: 100%;\\n  width: 100%;\\n  line-height: normal;\\n}\\n\\n.ag-cell .ag-icon {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n\\n.ag-set-filter-item {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n}\\n\\n.ag-set-filter-item-checkbox {\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-set-filter-group-icons {\\n  display: block;\\n}\\n.ag-set-filter-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-body-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n}\\n\\n.ag-filter-filter {\\n  flex: 1 1 0px;\\n}\\n\\n.ag-filter-condition {\\n  display: flex;\\n  justify-content: center;\\n}\\n\\n.ag-floating-filter-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n}\\n\\n.ag-floating-filter-full-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  width: 100%;\\n  align-items: center;\\n  overflow: hidden;\\n}\\n\\n.ag-floating-filter-full-body > div {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input {\\n  align-items: center;\\n  display: flex;\\n  width: 100%;\\n}\\n.ag-floating-filter-input > * {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-button {\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-dnd-ghost {\\n  position: absolute;\\n  display: inline-flex;\\n  align-items: center;\\n  cursor: move;\\n  white-space: nowrap;\\n  z-index: 9999;\\n}\\n\\n.ag-overlay {\\n  height: 100%;\\n  left: 0;\\n  pointer-events: none;\\n  position: absolute;\\n  top: 0;\\n  width: 100%;\\n}\\n\\n.ag-overlay-panel {\\n  display: flex;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-overlay-wrapper {\\n  display: flex;\\n  flex: none;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n  text-align: center;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  pointer-events: all;\\n}\\n\\n.ag-popup-child {\\n  z-index: 5;\\n  top: 0;\\n}\\n\\n.ag-popup-editor {\\n  position: absolute;\\n  z-index: 1;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-large-text-input {\\n  display: block;\\n}\\n\\n.ag-virtual-list-item {\\n  position: absolute;\\n  width: 100%;\\n}\\n\\n.ag-floating-top {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-floating-bottom {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-sticky-top {\\n  position: absolute;\\n  display: flex;\\n  width: 100%;\\n}\\n\\n.ag-pinned-left-sticky-top,\\n.ag-pinned-right-sticky-top {\\n  position: relative;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-sticky-top-full-width-container {\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-dialog, .ag-panel {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-panel-title-bar {\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  cursor: default;\\n}\\n\\n.ag-panel-title-bar-title {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-panel-title-bar-buttons {\\n  display: flex;\\n}\\n\\n.ag-panel-title-bar-button {\\n  cursor: pointer;\\n}\\n\\n.ag-panel-content-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-dialog {\\n  position: absolute;\\n}\\n\\n.ag-resizer {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 1;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n.ag-resizer.ag-resizer-topLeft {\\n  top: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-top {\\n  top: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-topRight {\\n  top: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-right {\\n  top: 5px;\\n  right: 0;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n.ag-resizer.ag-resizer-bottomRight {\\n  bottom: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-bottom {\\n  bottom: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-bottomLeft {\\n  bottom: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-left {\\n  left: 0;\\n  top: 5px;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n\\n.ag-tooltip {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n.ag-tooltip-custom {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n.ag-value-slide-out {\\n  margin-right: 5px;\\n  opacity: 1;\\n  transition: opacity 3s, margin-right 3s;\\n  transition-timing-function: linear;\\n}\\n\\n.ag-value-slide-out-end {\\n  margin-right: 10px;\\n  opacity: 0;\\n}\\n\\n.ag-opacity-zero {\\n  opacity: 0 !important;\\n}\\n\\n.ag-menu {\\n  max-height: 100%;\\n  overflow-y: auto;\\n  position: absolute;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-menu-column-select-wrapper {\\n  height: 265px;\\n  overflow: auto;\\n}\\n.ag-menu-column-select-wrapper .ag-column-select {\\n  height: 100%;\\n}\\n\\n.ag-menu-list {\\n  display: table;\\n  width: 100%;\\n}\\n\\n.ag-menu-option, .ag-menu-separator {\\n  display: table-row;\\n}\\n\\n.ag-menu-option-part, .ag-menu-separator-part {\\n  display: table-cell;\\n  vertical-align: middle;\\n}\\n\\n.ag-menu-option-text {\\n  white-space: nowrap;\\n}\\n\\n.ag-compact-menu-option {\\n  width: 100%;\\n  display: flex;\\n  flex-wrap: nowrap;\\n}\\n\\n.ag-compact-menu-option-text {\\n  white-space: nowrap;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-rich-select {\\n  cursor: default;\\n  outline: none;\\n}\\n\\n.ag-rich-select-value {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-rich-select-value-icon {\\n  flex: 1 1 auto;\\n  order: 1;\\n}\\n.ag-ltr .ag-rich-select-value-icon {\\n  text-align: right;\\n}\\n.ag-rtl .ag-rich-select-value-icon {\\n  text-align: left;\\n}\\n\\n.ag-rich-select-list {\\n  position: relative;\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  display: flex;\\n}\\n\\n.ag-rich-select-row {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-paging-panel {\\n  align-items: center;\\n  display: flex;\\n  justify-content: flex-end;\\n}\\n\\n.ag-paging-page-summary-panel {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-paging-button {\\n  position: relative;\\n}\\n\\n.ag-disabled .ag-paging-page-summary-panel {\\n  pointer-events: none;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  display: flex;\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-column-select-column,\\n.ag-column-select-column-group,\\n.ag-select-agg-func-item {\\n  position: relative;\\n  align-items: center;\\n  display: flex;\\n  flex-direction: row;\\n  flex-wrap: nowrap;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n.ag-column-select-column > *,\\n.ag-column-select-column-group > *,\\n.ag-select-agg-func-item > * {\\n  flex: none;\\n}\\n\\n.ag-column-select-checkbox {\\n  display: flex;\\n}\\n\\n.ag-tool-panel-horizontal-resize {\\n  cursor: ew-resize;\\n  height: 100%;\\n  position: absolute;\\n  top: 0;\\n  width: 5px;\\n  z-index: 1;\\n}\\n\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n\\n.ag-details-row {\\n  width: 100%;\\n}\\n\\n.ag-details-row-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-details-grid {\\n  width: 100%;\\n}\\n\\n.ag-details-grid-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-header-group-cell {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n  position: absolute;\\n}\\n\\n.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize {\\n  display: none;\\n}\\n\\n.ag-cell-label-container {\\n  display: flex;\\n  justify-content: space-between;\\n  flex-direction: row-reverse;\\n  align-items: center;\\n  height: 100%;\\n  width: 100%;\\n  overflow: hidden;\\n  padding: 5px 0px;\\n}\\n\\n.ag-right-aligned-header .ag-cell-label-container {\\n  flex-direction: row;\\n}\\n.ag-right-aligned-header .ag-header-cell-text {\\n  text-align: end;\\n}\\n\\n.ag-side-bar {\\n  display: flex;\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-side-bar-left {\\n  order: -1;\\n  flex-direction: row;\\n}\\n\\n.ag-side-button-button {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  align-items: center;\\n  justify-content: center;\\n  flex-wrap: nowrap;\\n  white-space: nowrap;\\n  outline: none;\\n  cursor: pointer;\\n}\\n\\n.ag-side-button-label {\\n  writing-mode: vertical-lr;\\n}\\n\\n.ag-status-bar {\\n  display: flex;\\n  justify-content: space-between;\\n  overflow: hidden;\\n}\\n\\n.ag-status-panel {\\n  display: inline-flex;\\n}\\n\\n.ag-status-name-value {\\n  white-space: nowrap;\\n}\\n\\n.ag-status-bar-left {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-center {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-right {\\n  display: inline-flex;\\n}\\n\\n.ag-icon {\\n  display: block;\\n  speak: none;\\n}\\n\\n.ag-group {\\n  position: relative;\\n  width: 100%;\\n}\\n\\n.ag-group-title-bar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-title {\\n  display: block;\\n  flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-group-title-bar .ag-group-title {\\n  cursor: default;\\n}\\n\\n.ag-group-toolbar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-container {\\n  display: flex;\\n}\\n\\n.ag-disabled .ag-group-container {\\n  pointer-events: none;\\n}\\n\\n.ag-group-container-horizontal {\\n  flex-direction: row;\\n  flex-wrap: wrap;\\n}\\n\\n.ag-group-container-vertical {\\n  flex-direction: column;\\n}\\n\\n.ag-column-group-icons {\\n  display: block;\\n}\\n.ag-column-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-group-item-alignment-stretch .ag-group-item {\\n  align-items: stretch;\\n}\\n\\n.ag-group-item-alignment-start .ag-group-item {\\n  align-items: flex-start;\\n}\\n\\n.ag-group-item-alignment-end .ag-group-item {\\n  align-items: flex-end;\\n}\\n\\n.ag-toggle-button-icon {\\n  transition: right 0.3s;\\n  position: absolute;\\n  top: -1px;\\n}\\n\\n.ag-input-field, .ag-select {\\n  display: flex;\\n  flex-direction: row;\\n  align-items: center;\\n}\\n\\n.ag-input-field-input {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input .ag-input-field-input[type=date] {\\n  width: 1px;\\n}\\n\\n.ag-range-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select-wrapper {\\n  display: flex;\\n}\\n\\n.ag-angle-select-parent-circle {\\n  display: block;\\n  position: relative;\\n}\\n\\n.ag-angle-select-child-circle {\\n  position: absolute;\\n}\\n\\n.ag-slider-wrapper {\\n  display: flex;\\n}\\n.ag-slider-wrapper .ag-input-field {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field-display {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-picker-field-icon {\\n  display: flex;\\n  border: 0;\\n  padding: 0;\\n  margin: 0;\\n  cursor: pointer;\\n}\\n\\n.ag-picker-field-wrapper {\\n  overflow: hidden;\\n}\\n\\n.ag-label-align-right .ag-label {\\n  order: 1;\\n}\\n.ag-label-align-right > * {\\n  flex: none;\\n}\\n\\n.ag-label-align-top {\\n  flex-direction: column;\\n  align-items: flex-start;\\n}\\n.ag-label-align-top > * {\\n  align-self: stretch;\\n}\\n\\n.ag-label-ellipsis {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  flex: 1;\\n}\\n\\n.ag-color-panel {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  text-align: center;\\n}\\n\\n.ag-spectrum-color {\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n  cursor: default;\\n}\\n\\n.ag-spectrum-fill {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-spectrum-val {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-dragger {\\n  position: absolute;\\n  pointer-events: none;\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-hue {\\n  cursor: default;\\n  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\\n}\\n\\n.ag-spectrum-alpha {\\n  cursor: default;\\n}\\n\\n.ag-spectrum-hue-background {\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-tool {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-slider {\\n  position: absolute;\\n  pointer-events: none;\\n}\\n\\n.ag-recent-colors {\\n  display: flex;\\n}\\n\\n.ag-recent-color {\\n  cursor: pointer;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr {\\n  direction: ltr;\\n}\\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\\n  flex-direction: row;\\n}\\n\\n.ag-rtl {\\n  direction: rtl;\\n}\\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\\n  flex-direction: row-reverse;\\n}\\n.ag-rtl .ag-icon-contracted,\\n.ag-rtl .ag-icon-expanded,\\n.ag-rtl .ag-icon-tree-closed {\\n  display: block;\\n  transform: rotate(180deg);\\n}\\n\\n.ag-body .ag-body-viewport {\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-layout-print.ag-body {\\n  display: block;\\n  height: unset;\\n}\\n.ag-layout-print.ag-body-clipper {\\n  height: unset;\\n}\\n.ag-layout-print.ag-root-wrapper {\\n  display: inline-flex;\\n}\\n.ag-layout-print .ag-center-cols-clipper {\\n  min-width: 100%;\\n}\\n.ag-layout-print .ag-body-vertical-scroll {\\n  display: none;\\n}\\n.ag-layout-print .ag-body-horizontal-scroll {\\n  display: none;\\n}\\n.ag-layout-print.ag-force-vertical-scroll {\\n  overflow-y: visible !important;\\n}\\n\\n@media print {\\n  .ag-root-wrapper.ag-layout-print {\\n    display: table;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\\n  .ag-root-wrapper.ag-layout-print .ag-root,\\n  .ag-root-wrapper.ag-layout-print .ag-body-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-clipper,\\n  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\\n    height: auto !important;\\n    overflow: hidden !important;\\n    display: block !important;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-row, .ag-root-wrapper.ag-layout-print .ag-cell {\\n    break-inside: avoid;\\n  }\\n}\\n[class^=ag-], [class^=ag-]:focus, [class^=ag-]:after, [class^=ag-]:before {\\n  box-sizing: border-box;\\n  outline: none;\\n}\\n\\n[class^=ag-]::-ms-clear {\\n  display: none;\\n}\\n\\n.ag-checkbox .ag-input-wrapper,\\n.ag-radio-button .ag-input-wrapper {\\n  overflow: visible;\\n}\\n\\n.ag-range-field .ag-input-wrapper {\\n  height: 100%;\\n}\\n\\n.ag-toggle-button {\\n  flex: none;\\n  width: unset;\\n  min-width: unset;\\n}\\n\\n.ag-ltr .ag-label-align-right .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label-align-right .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\ninput[class^=ag-] {\\n  margin: 0;\\n  background-color: var(--ag-background-color);\\n}\\n\\ntextarea[class^=ag-],\\nselect[class^=ag-] {\\n  background-color: var(--ag-background-color);\\n}\\n\\ninput[class^=ag-]:not([type]),\\ninput[class^=ag-][type=text],\\ninput[class^=ag-][type=number],\\ninput[class^=ag-][type=tel],\\ninput[class^=ag-][type=date],\\ninput[class^=ag-][type=datetime-local],\\ntextarea[class^=ag-] {\\n  font-size: inherit;\\n  line-height: inherit;\\n  color: inherit;\\n  border: var(--ag-borders-input) var(--ag-input-border-color);\\n}\\ninput[class^=ag-]:not([type]):disabled,\\ninput[class^=ag-][type=text]:disabled,\\ninput[class^=ag-][type=number]:disabled,\\ninput[class^=ag-][type=tel]:disabled,\\ninput[class^=ag-][type=date]:disabled,\\ninput[class^=ag-][type=datetime-local]:disabled,\\ntextarea[class^=ag-]:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\ninput[class^=ag-]:not([type]):focus,\\ninput[class^=ag-][type=text]:focus,\\ninput[class^=ag-][type=number]:focus,\\ninput[class^=ag-][type=tel]:focus,\\ninput[class^=ag-][type=date]:focus,\\ninput[class^=ag-][type=datetime-local]:focus,\\ntextarea[class^=ag-]:focus {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-]:not([type]):invalid,\\ninput[class^=ag-][type=text]:invalid,\\ninput[class^=ag-][type=number]:invalid,\\ninput[class^=ag-][type=tel]:invalid,\\ninput[class^=ag-][type=date]:invalid,\\ninput[class^=ag-][type=datetime-local]:invalid,\\ntextarea[class^=ag-]:invalid {\\n  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);\\n}\\n\\ninput[class^=ag-][type=number] {\\n  -moz-appearance: textfield;\\n}\\ninput[class^=ag-][type=number]::-webkit-outer-spin-button, input[class^=ag-][type=number]::-webkit-inner-spin-button {\\n  -webkit-appearance: none;\\n  margin: 0;\\n}\\n\\ninput[class^=ag-][type=range] {\\n  padding: 0;\\n}\\n\\ninput[class^=ag-][type=button]:focus, button[class^=ag-]:focus {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-drag-handle {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-list-item, .ag-virtual-list-item {\\n  height: var(--ag-list-item-height);\\n}\\n\\n.ag-keyboard-focus .ag-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-select-list {\\n  background-color: var(--ag-background-color);\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n}\\n\\n.ag-list-item {\\n  display: flex;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-list-item.ag-active-item {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-select-list-item {\\n  padding-left: 4px;\\n  padding-right: 4px;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n.ag-select-list-item span {\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n  overflow: hidden;\\n}\\n\\n.ag-select .ag-picker-field-wrapper {\\n  background-color: var(--ag-background-color);\\n  min-height: var(--ag-list-item-height);\\n  cursor: default;\\n}\\n.ag-select.ag-disabled .ag-picker-field-wrapper:focus {\\n  box-shadow: none;\\n}\\n.ag-select:not(.ag-cell-editor, .ag-label-align-top) {\\n  height: var(--ag-list-item-height);\\n}\\n.ag-select .ag-picker-field-display {\\n  margin: 4px;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-select .ag-picker-field-icon {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-select.ag-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-rich-select {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-rich-select-list {\\n  width: 100%;\\n  min-width: 200px;\\n  height: calc(var(--ag-row-height) * 6.5);\\n}\\n\\n.ag-rich-select-value {\\n  height: var(--ag-row-height);\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  padding-top: 0;\\n  padding-bottom: 0;\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  cursor: default;\\n  height: var(--ag-list-item-height);\\n}\\n.ag-keyboard-focus .ag-rich-select-virtual-list-item:focus::after {\\n  content: none;\\n}\\n.ag-rich-select-virtual-list-item:hover {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-ltr .ag-rich-select-row {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-rich-select-row {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-rich-select-row-selected {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-row-drag,\\n.ag-selection-checkbox,\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-ltr .ag-row-drag,\\n.ag-ltr .ag-selection-checkbox,\\n.ag-ltr .ag-group-expanded,\\n.ag-ltr .ag-group-contracted {\\n  margin-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-row-drag,\\n.ag-rtl .ag-selection-checkbox,\\n.ag-rtl .ag-group-expanded,\\n.ag-rtl .ag-group-contracted {\\n  margin-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  cursor: pointer;\\n}\\n\\n.ag-group-title-bar-icon {\\n  cursor: pointer;\\n  flex: none;\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-ltr .ag-group-child-count {\\n  margin-left: 2px;\\n}\\n.ag-rtl .ag-group-child-count {\\n  margin-right: 2px;\\n}\\n\\n.ag-group-title-bar {\\n  background-color: var(--ag-subheader-background-color);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-group-toolbar {\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n\\n.ag-disabled-group-title-bar, .ag-disabled-group-container {\\n  opacity: 0.5;\\n}\\n\\n.group-item {\\n  margin: calc(var(--ag-grid-size) * 0.5) 0;\\n}\\n\\n.ag-label {\\n  white-space: nowrap;\\n}\\n.ag-ltr .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-label-align-top .ag-label {\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-angle-select[disabled] {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n.ag-angle-select[disabled] .ag-angle-select-field {\\n  opacity: 0.4;\\n}\\n\\n.ag-ltr .ag-slider-field,\\n.ag-ltr .ag-angle-select-field {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-slider-field,\\n.ag-rtl .ag-angle-select-field {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-angle-select-parent-circle {\\n  width: 24px;\\n  height: 24px;\\n  border-radius: 12px;\\n  border: solid 1px;\\n  border-color: var(--ag-border-color);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-angle-select-child-circle {\\n  top: 4px;\\n  left: 12px;\\n  width: 6px;\\n  height: 6px;\\n  margin-left: -3px;\\n  margin-top: -4px;\\n  border-radius: 3px;\\n  background-color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-picker-field-wrapper {\\n  border: 1px solid;\\n  border-color: var(--ag-border-color);\\n  border-radius: 5px;\\n}\\n.ag-picker-field-wrapper:focus {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-picker-field-button {\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-dialog.ag-color-dialog {\\n  border-radius: 5px;\\n}\\n\\n.ag-color-picker .ag-picker-field-display {\\n  height: var(--ag-icon-size);\\n}\\n\\n.ag-color-panel {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-spectrum-color {\\n  background-color: rgb(255, 0, 0);\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tools {\\n  padding: 10px;\\n}\\n\\n.ag-spectrum-sat {\\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-val {\\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-dragger {\\n  border-radius: 12px;\\n  height: 12px;\\n  width: 12px;\\n  border: 1px solid white;\\n  background: black;\\n  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n}\\n\\n.ag-spectrum-hue-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tool {\\n  margin-bottom: 10px;\\n  height: 11px;\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-slider {\\n  margin-top: -12px;\\n  width: 13px;\\n  height: 13px;\\n  border-radius: 13px;\\n  background-color: rgb(248, 248, 248);\\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n}\\n\\n.ag-recent-color {\\n  margin: 0 3px;\\n}\\n.ag-recent-color:first-child {\\n  margin-left: 0;\\n}\\n.ag-recent-color:last-child {\\n  margin-right: 0;\\n}\\n\\n.ag-dnd-ghost {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height) !important;\\n  line-height: var(--ag-header-height);\\n  margin: 0;\\n  padding: 0 calc(var(--ag-grid-size) * 2);\\n  transform: translateY(calc(var(--ag-grid-size) * 2));\\n}\\n\\n.ag-dnd-ghost-icon {\\n  margin-right: var(--ag-grid-size);\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-popup-child:not(.ag-tooltip-custom) {\\n  box-shadow: var(--ag-popup-shadow);\\n}\\n\\n.ag-dragging-range-handle .ag-dialog,\\n.ag-dragging-fill-handle .ag-dialog {\\n  opacity: 0.7;\\n  pointer-events: none;\\n}\\n\\n.ag-dialog {\\n  border-radius: var(--ag-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-panel {\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-panel-title-bar {\\n  background-color: var(--ag-header-background-color);\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-panel-title-bar-button {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-panel-title-bar-button {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-tooltip {\\n  background-color: var(--ag-tooltip-background-color);\\n  color: var(--ag-foreground-color);\\n  padding: var(--ag-grid-size);\\n  border: var(--ag-borders) var(--ag-border-color);\\n  border-radius: var(--ag-card-radius);\\n  transition: opacity 1s;\\n  white-space: normal;\\n}\\n.ag-tooltip.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n\\n.ag-tooltip-custom {\\n  transition: opacity 1s;\\n}\\n.ag-tooltip-custom.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: calc(1 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: calc(1 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: calc(2 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: calc(2 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: calc(3 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: calc(3 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: calc(4 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: calc(4 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: calc(5 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: calc(5 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: calc(6 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: calc(6 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: calc(7 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: calc(7 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: calc(8 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: calc(8 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: calc(9 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: calc(9 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-column-select-header-icon {\\n  cursor: pointer;\\n}\\n\\n.ag-keyboard-focus .ag-column-select-header-icon:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-header-icon:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-ltr .ag-column-group-icons:not(:last-child),\\n.ag-ltr .ag-column-select-header-icon:not(:last-child),\\n.ag-ltr .ag-column-select-header-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-ltr .ag-column-select-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-label:not(:last-child) {\\n  margin-right: var(--ag-widget-horizontal-spacing);\\n}\\n.ag-rtl .ag-column-group-icons:not(:last-child),\\n.ag-rtl .ag-column-select-header-icon:not(:last-child),\\n.ag-rtl .ag-column-select-header-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-rtl .ag-column-select-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-label:not(:last-child) {\\n  margin-left: var(--ag-widget-horizontal-spacing);\\n}\\n\\n.ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-column-group:not(:last-child),\\n.ag-column-select-column:not(:last-child) {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-column-select-column-readonly,\\n.ag-column-select-column-group-readonly {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n\\n.ag-ltr .ag-column-select-add-group-indent {\\n  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-column-select-add-group-indent {\\n  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-select-virtual-list-viewport {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;\\n}\\n\\n.ag-column-select-virtual-list-item {\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-rtl {\\n  text-align: right;\\n}\\n\\n.ag-root-wrapper {\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: calc(1 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: calc(1 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: calc(2 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: calc(2 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: calc(3 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: calc(3 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: calc(4 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: calc(4 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: calc(5 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: calc(5 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: calc(6 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: calc(6 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: calc(7 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: calc(7 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: calc(8 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: calc(8 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: calc(9 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: calc(9 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n\\n.ag-ltr .ag-row-group-indent-10 {\\n  padding-left: calc(10 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-10 {\\n  padding-right: calc(10 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n\\n.ag-ltr .ag-row-group-indent-11 {\\n  padding-left: calc(11 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-11 {\\n  padding-right: calc(11 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n\\n.ag-ltr .ag-row-group-indent-12 {\\n  padding-left: calc(12 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-12 {\\n  padding-right: calc(12 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n\\n.ag-ltr .ag-row-group-indent-13 {\\n  padding-left: calc(13 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-13 {\\n  padding-right: calc(13 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n\\n.ag-ltr .ag-row-group-indent-14 {\\n  padding-left: calc(14 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-14 {\\n  padding-right: calc(14 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n\\n.ag-ltr .ag-row-group-indent-15 {\\n  padding-left: calc(15 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-15 {\\n  padding-right: calc(15 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n\\n.ag-ltr .ag-row-group-indent-16 {\\n  padding-left: calc(16 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-16 {\\n  padding-right: calc(16 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n\\n.ag-ltr .ag-row-group-indent-17 {\\n  padding-left: calc(17 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-17 {\\n  padding-right: calc(17 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n\\n.ag-ltr .ag-row-group-indent-18 {\\n  padding-left: calc(18 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-18 {\\n  padding-right: calc(18 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n\\n.ag-ltr .ag-row-group-indent-19 {\\n  padding-left: calc(19 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-19 {\\n  padding-right: calc(19 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n\\n.ag-ltr .ag-row-group-indent-20 {\\n  padding-left: calc(20 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-20 {\\n  padding-right: calc(20 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n\\n.ag-ltr .ag-row-group-indent-21 {\\n  padding-left: calc(21 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-21 {\\n  padding-right: calc(21 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n\\n.ag-ltr .ag-row-group-indent-22 {\\n  padding-left: calc(22 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-22 {\\n  padding-right: calc(22 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n\\n.ag-ltr .ag-row-group-indent-23 {\\n  padding-left: calc(23 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-23 {\\n  padding-right: calc(23 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n\\n.ag-ltr .ag-row-group-indent-24 {\\n  padding-left: calc(24 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-24 {\\n  padding-right: calc(24 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n\\n.ag-ltr .ag-row-group-indent-25 {\\n  padding-left: calc(25 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-25 {\\n  padding-right: calc(25 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n\\n.ag-ltr .ag-row-group-indent-26 {\\n  padding-left: calc(26 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-26 {\\n  padding-right: calc(26 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n\\n.ag-ltr .ag-row-group-indent-27 {\\n  padding-left: calc(27 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-27 {\\n  padding-right: calc(27 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n\\n.ag-ltr .ag-row-group-indent-28 {\\n  padding-left: calc(28 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-28 {\\n  padding-right: calc(28 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n\\n.ag-ltr .ag-row-group-indent-29 {\\n  padding-left: calc(29 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-29 {\\n  padding-right: calc(29 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n\\n.ag-ltr .ag-row-group-indent-30 {\\n  padding-left: calc(30 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-30 {\\n  padding-right: calc(30 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n\\n.ag-ltr .ag-row-group-indent-31 {\\n  padding-left: calc(31 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-31 {\\n  padding-right: calc(31 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n\\n.ag-ltr .ag-row-group-indent-32 {\\n  padding-left: calc(32 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-32 {\\n  padding-right: calc(32 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n\\n.ag-ltr .ag-row-group-indent-33 {\\n  padding-left: calc(33 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-33 {\\n  padding-right: calc(33 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n\\n.ag-ltr .ag-row-group-indent-34 {\\n  padding-left: calc(34 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-34 {\\n  padding-right: calc(34 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n\\n.ag-ltr .ag-row-group-indent-35 {\\n  padding-left: calc(35 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-35 {\\n  padding-right: calc(35 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n\\n.ag-ltr .ag-row-group-indent-36 {\\n  padding-left: calc(36 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-36 {\\n  padding-right: calc(36 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n\\n.ag-ltr .ag-row-group-indent-37 {\\n  padding-left: calc(37 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-37 {\\n  padding-right: calc(37 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n\\n.ag-ltr .ag-row-group-indent-38 {\\n  padding-left: calc(38 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-38 {\\n  padding-right: calc(38 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n\\n.ag-ltr .ag-row-group-indent-39 {\\n  padding-left: calc(39 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-39 {\\n  padding-right: calc(39 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n\\n.ag-ltr .ag-row-group-indent-40 {\\n  padding-left: calc(40 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-40 {\\n  padding-right: calc(40 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n\\n.ag-ltr .ag-row-group-indent-41 {\\n  padding-left: calc(41 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-41 {\\n  padding-right: calc(41 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n\\n.ag-ltr .ag-row-group-indent-42 {\\n  padding-left: calc(42 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-42 {\\n  padding-right: calc(42 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n\\n.ag-ltr .ag-row-group-indent-43 {\\n  padding-left: calc(43 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-43 {\\n  padding-right: calc(43 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n\\n.ag-ltr .ag-row-group-indent-44 {\\n  padding-left: calc(44 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-44 {\\n  padding-right: calc(44 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n\\n.ag-ltr .ag-row-group-indent-45 {\\n  padding-left: calc(45 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-45 {\\n  padding-right: calc(45 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n\\n.ag-ltr .ag-row-group-indent-46 {\\n  padding-left: calc(46 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-46 {\\n  padding-right: calc(46 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n\\n.ag-ltr .ag-row-group-indent-47 {\\n  padding-left: calc(47 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-47 {\\n  padding-right: calc(47 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n\\n.ag-ltr .ag-row-group-indent-48 {\\n  padding-left: calc(48 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-48 {\\n  padding-right: calc(48 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n\\n.ag-ltr .ag-row-group-indent-49 {\\n  padding-left: calc(49 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-49 {\\n  padding-right: calc(49 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n\\n.ag-ltr .ag-row-group-indent-50 {\\n  padding-left: calc(50 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-50 {\\n  padding-right: calc(50 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n\\n.ag-ltr .ag-row-group-indent-51 {\\n  padding-left: calc(51 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-51 {\\n  padding-right: calc(51 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n\\n.ag-ltr .ag-row-group-indent-52 {\\n  padding-left: calc(52 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-52 {\\n  padding-right: calc(52 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n\\n.ag-ltr .ag-row-group-indent-53 {\\n  padding-left: calc(53 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-53 {\\n  padding-right: calc(53 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n\\n.ag-ltr .ag-row-group-indent-54 {\\n  padding-left: calc(54 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-54 {\\n  padding-right: calc(54 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n\\n.ag-ltr .ag-row-group-indent-55 {\\n  padding-left: calc(55 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-55 {\\n  padding-right: calc(55 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n\\n.ag-ltr .ag-row-group-indent-56 {\\n  padding-left: calc(56 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-56 {\\n  padding-right: calc(56 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n\\n.ag-ltr .ag-row-group-indent-57 {\\n  padding-left: calc(57 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-57 {\\n  padding-right: calc(57 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n\\n.ag-ltr .ag-row-group-indent-58 {\\n  padding-left: calc(58 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-58 {\\n  padding-right: calc(58 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n\\n.ag-ltr .ag-row-group-indent-59 {\\n  padding-left: calc(59 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-59 {\\n  padding-right: calc(59 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n\\n.ag-ltr .ag-row-group-indent-60 {\\n  padding-left: calc(60 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-60 {\\n  padding-right: calc(60 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n\\n.ag-ltr .ag-row-group-indent-61 {\\n  padding-left: calc(61 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-61 {\\n  padding-right: calc(61 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n\\n.ag-ltr .ag-row-group-indent-62 {\\n  padding-left: calc(62 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-62 {\\n  padding-right: calc(62 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n\\n.ag-ltr .ag-row-group-indent-63 {\\n  padding-left: calc(63 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-63 {\\n  padding-right: calc(63 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n\\n.ag-ltr .ag-row-group-indent-64 {\\n  padding-left: calc(64 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-64 {\\n  padding-right: calc(64 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n\\n.ag-ltr .ag-row-group-indent-65 {\\n  padding-left: calc(65 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-65 {\\n  padding-right: calc(65 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n\\n.ag-ltr .ag-row-group-indent-66 {\\n  padding-left: calc(66 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-66 {\\n  padding-right: calc(66 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n\\n.ag-ltr .ag-row-group-indent-67 {\\n  padding-left: calc(67 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-67 {\\n  padding-right: calc(67 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n\\n.ag-ltr .ag-row-group-indent-68 {\\n  padding-left: calc(68 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-68 {\\n  padding-right: calc(68 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n\\n.ag-ltr .ag-row-group-indent-69 {\\n  padding-left: calc(69 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-69 {\\n  padding-right: calc(69 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n\\n.ag-ltr .ag-row-group-indent-70 {\\n  padding-left: calc(70 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-70 {\\n  padding-right: calc(70 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n\\n.ag-ltr .ag-row-group-indent-71 {\\n  padding-left: calc(71 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-71 {\\n  padding-right: calc(71 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n\\n.ag-ltr .ag-row-group-indent-72 {\\n  padding-left: calc(72 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-72 {\\n  padding-right: calc(72 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n\\n.ag-ltr .ag-row-group-indent-73 {\\n  padding-left: calc(73 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-73 {\\n  padding-right: calc(73 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n\\n.ag-ltr .ag-row-group-indent-74 {\\n  padding-left: calc(74 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-74 {\\n  padding-right: calc(74 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n\\n.ag-ltr .ag-row-group-indent-75 {\\n  padding-left: calc(75 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-75 {\\n  padding-right: calc(75 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n\\n.ag-ltr .ag-row-group-indent-76 {\\n  padding-left: calc(76 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-76 {\\n  padding-right: calc(76 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n\\n.ag-ltr .ag-row-group-indent-77 {\\n  padding-left: calc(77 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-77 {\\n  padding-right: calc(77 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n\\n.ag-ltr .ag-row-group-indent-78 {\\n  padding-left: calc(78 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-78 {\\n  padding-right: calc(78 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n\\n.ag-ltr .ag-row-group-indent-79 {\\n  padding-left: calc(79 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-79 {\\n  padding-right: calc(79 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n\\n.ag-ltr .ag-row-group-indent-80 {\\n  padding-left: calc(80 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-80 {\\n  padding-right: calc(80 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n\\n.ag-ltr .ag-row-group-indent-81 {\\n  padding-left: calc(81 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-81 {\\n  padding-right: calc(81 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n\\n.ag-ltr .ag-row-group-indent-82 {\\n  padding-left: calc(82 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-82 {\\n  padding-right: calc(82 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n\\n.ag-ltr .ag-row-group-indent-83 {\\n  padding-left: calc(83 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-83 {\\n  padding-right: calc(83 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n\\n.ag-ltr .ag-row-group-indent-84 {\\n  padding-left: calc(84 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-84 {\\n  padding-right: calc(84 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n\\n.ag-ltr .ag-row-group-indent-85 {\\n  padding-left: calc(85 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-85 {\\n  padding-right: calc(85 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n\\n.ag-ltr .ag-row-group-indent-86 {\\n  padding-left: calc(86 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-86 {\\n  padding-right: calc(86 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n\\n.ag-ltr .ag-row-group-indent-87 {\\n  padding-left: calc(87 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-87 {\\n  padding-right: calc(87 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n\\n.ag-ltr .ag-row-group-indent-88 {\\n  padding-left: calc(88 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-88 {\\n  padding-right: calc(88 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n\\n.ag-ltr .ag-row-group-indent-89 {\\n  padding-left: calc(89 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-89 {\\n  padding-right: calc(89 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n\\n.ag-ltr .ag-row-group-indent-90 {\\n  padding-left: calc(90 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-90 {\\n  padding-right: calc(90 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n\\n.ag-ltr .ag-row-group-indent-91 {\\n  padding-left: calc(91 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-91 {\\n  padding-right: calc(91 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n\\n.ag-ltr .ag-row-group-indent-92 {\\n  padding-left: calc(92 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-92 {\\n  padding-right: calc(92 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n\\n.ag-ltr .ag-row-group-indent-93 {\\n  padding-left: calc(93 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-93 {\\n  padding-right: calc(93 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n\\n.ag-ltr .ag-row-group-indent-94 {\\n  padding-left: calc(94 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-94 {\\n  padding-right: calc(94 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n\\n.ag-ltr .ag-row-group-indent-95 {\\n  padding-left: calc(95 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-95 {\\n  padding-right: calc(95 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n\\n.ag-ltr .ag-row-group-indent-96 {\\n  padding-left: calc(96 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-96 {\\n  padding-right: calc(96 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n\\n.ag-ltr .ag-row-group-indent-97 {\\n  padding-left: calc(97 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-97 {\\n  padding-right: calc(97 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n\\n.ag-ltr .ag-row-group-indent-98 {\\n  padding-left: calc(98 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-98 {\\n  padding-right: calc(98 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n\\n.ag-ltr .ag-row-group-indent-99 {\\n  padding-left: calc(99 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-99 {\\n  padding-right: calc(99 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row-group-leaf-indent {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-group-leaf-indent {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-value-change-delta {\\n  padding-right: 2px;\\n}\\n\\n.ag-value-change-delta-up {\\n  color: var(--ag-value-change-delta-up-color);\\n}\\n\\n.ag-value-change-delta-down {\\n  color: var(--ag-value-change-delta-down-color);\\n}\\n\\n.ag-value-change-value {\\n  background-color: transparent;\\n  border-radius: 1px;\\n  padding-left: 1px;\\n  padding-right: 1px;\\n  transition: background-color 1s;\\n}\\n\\n.ag-value-change-value-highlight {\\n  background-color: var(--ag-value-change-value-highlight-background-color);\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-cell-data-changed {\\n  background-color: var(--ag-value-change-value-highlight-background-color) !important;\\n}\\n\\n.ag-cell-data-changed-animation {\\n  background-color: transparent;\\n}\\n\\n.ag-cell-highlight {\\n  background-color: var(--ag-range-selection-highlight-color) !important;\\n}\\n\\n.ag-row {\\n  height: var(--ag-row-height);\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-data-color);\\n  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);\\n}\\n\\n.ag-row-highlight-above::after, .ag-row-highlight-below::after {\\n  content: \"\";\\n  position: absolute;\\n  width: calc(100% - 1px);\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n  left: 1px;\\n}\\n\\n.ag-row-highlight-above::after {\\n  top: -1px;\\n}\\n\\n.ag-row-highlight-above.ag-row-first::after {\\n  top: 0;\\n}\\n\\n.ag-row-highlight-below::after {\\n  bottom: 0px;\\n}\\n\\n.ag-row-odd {\\n  background-color: var(--ag-odd-row-background-color);\\n}\\n\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-row-selected::before {\\n  content: \"\";\\n  background-color: var(--ag-selected-row-background-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-row-hover:not(.ag-full-width-row)::before,\\n.ag-row-hover.ag-full-width-row.ag-row-group::before {\\n  content: \"\";\\n  background-color: var(--ag-row-hover-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-row-hover.ag-full-width-row.ag-row-group > * {\\n  position: relative;\\n}\\n\\n.ag-row-hover.ag-row-selected::before {\\n  background-color: var(--ag-row-hover-color);\\n  background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));\\n}\\n\\n.ag-column-hover {\\n  background-color: var(--ag-column-hover-color);\\n}\\n\\n.ag-ltr .ag-right-aligned-cell {\\n  text-align: right;\\n}\\n.ag-rtl .ag-right-aligned-cell {\\n  text-align: left;\\n}\\n\\n.ag-ltr .ag-right-aligned-cell .ag-cell-value,\\n.ag-ltr .ag-right-aligned-cell .ag-group-value {\\n  margin-left: auto;\\n}\\n.ag-rtl .ag-right-aligned-cell .ag-cell-value,\\n.ag-rtl .ag-right-aligned-cell .ag-group-value {\\n  margin-right: auto;\\n}\\n\\n.ag-cell, .ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  border: 1px solid transparent;\\n  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  -webkit-font-smoothing: subpixel-antialiased;\\n}\\n\\n.ag-row > .ag-cell-wrapper {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n}\\n\\n.ag-row-dragging {\\n  cursor: move;\\n  opacity: 0.5;\\n}\\n\\n.ag-cell-inline-editing {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  padding: 0;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-popup-editor {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-control-panel-background-color);\\n  padding: 0;\\n}\\n\\n.ag-large-text-input {\\n  height: auto;\\n  padding: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-rtl .ag-large-text-input textarea {\\n  resize: none;\\n}\\n\\n.ag-details-row {\\n  padding: calc(var(--ag-grid-size) * 5);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-layout-auto-height .ag-center-cols-clipper, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-clipper, .ag-layout-print .ag-center-cols-container {\\n  min-height: 50px;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  background-color: var(--ag-modal-overlay-background-color);\\n}\\n\\n.ag-overlay-loading-center {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 30px;\\n}\\n\\n.ag-loading {\\n  display: flex;\\n  height: 100%;\\n  align-items: center;\\n}\\n.ag-ltr .ag-loading {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-loading {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-loading-icon {\\n  padding-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-loading-icon {\\n  padding-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-icon-loading {\\n  animation-name: spin;\\n  animation-duration: 1000ms;\\n  animation-iteration-count: infinite;\\n  animation-timing-function: linear;\\n}\\n\\n@keyframes spin {\\n  from {\\n    transform: rotate(0deg);\\n  }\\n  to {\\n    transform: rotate(360deg);\\n  }\\n}\\n.ag-floating-top {\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-floating-bottom {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-cell {\\n  border-right: var(--ag-cell-horizontal-border);\\n}\\n.ag-rtl .ag-cell {\\n  border-left: var(--ag-cell-horizontal-border);\\n}\\n.ag-ltr .ag-cell {\\n  border-right-width: 1px;\\n}\\n.ag-rtl .ag-cell {\\n  border-left-width: 1px;\\n}\\n\\n.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell-range-selected:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\\n  background-color: var(--ag-range-selection-chart-background-color) !important;\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\\n  background-color: var(--ag-range-selection-chart-category-background-color) !important;\\n}\\n\\n.ag-cell-range-selected-1:not(.ag-cell-focus),\\n.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n\\n.ag-cell-range-selected-2:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\\n  background-color: var(--ag-range-selection-background-color-2);\\n}\\n\\n.ag-cell-range-selected-3:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\\n  background-color: var(--ag-range-selection-background-color-3);\\n}\\n\\n.ag-cell-range-selected-4:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\\n  background-color: var(--ag-range-selection-background-color-4);\\n}\\n\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\\n  border-top-color: var(--ag-range-selection-border-color);\\n  border-top-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\\n  border-right-color: var(--ag-range-selection-border-color);\\n  border-right-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n  border-bottom-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\\n  border-left-color: var(--ag-range-selection-border-color);\\n  border-left-style: var(--ag-range-selection-border-style);\\n}\\n\\n.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-ltr .ag-cell-range-single-cell,\\n.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-rtl .ag-cell-range-single-cell,\\n.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\\n  border: 1px solid;\\n  border-color: var(--ag-range-selection-border-color);\\n  border-style: var(--ag-range-selection-border-style);\\n  outline: initial;\\n}\\n\\n.ag-cell.ag-selection-fill-top,\\n.ag-cell.ag-selection-fill-top.ag-cell-range-selected {\\n  border-top: 1px dashed;\\n  border-top-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-right,\\n.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-right,\\n.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-cell.ag-selection-fill-bottom,\\n.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\\n  border-bottom: 1px dashed;\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-left,\\n.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-left,\\n.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-fill-handle, .ag-range-handle {\\n  position: absolute;\\n  width: 6px;\\n  height: 6px;\\n  bottom: -1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-ltr .ag-fill-handle, .ag-ltr .ag-range-handle {\\n  right: -1px;\\n}\\n.ag-rtl .ag-fill-handle, .ag-rtl .ag-range-handle {\\n  left: -1px;\\n}\\n\\n.ag-fill-handle {\\n  cursor: cell;\\n}\\n\\n.ag-range-handle {\\n  cursor: nwse-resize;\\n}\\n\\n.ag-cell-inline-editing {\\n  border-color: var(--ag-input-focus-border-color) !important;\\n}\\n\\n.ag-menu {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  padding: 0;\\n}\\n\\n.ag-menu-list {\\n  cursor: default;\\n  padding: var(--ag-grid-size) 0;\\n}\\n\\n.ag-menu-separator {\\n  height: calc(var(--ag-grid-size) * 2 + 1px);\\n}\\n\\n.ag-menu-separator-part::after {\\n  content: \"\";\\n  display: block;\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-menu-option-active, .ag-compact-menu-option-active {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-menu-option-part, .ag-compact-menu-option-part {\\n  line-height: var(--ag-icon-size);\\n  padding: calc(var(--ag-grid-size) + 2px) 0;\\n}\\n\\n.ag-menu-option-disabled, .ag-compact-menu-option-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-menu-option-icon, .ag-compact-menu-option-icon {\\n  width: var(--ag-icon-size);\\n}\\n.ag-ltr .ag-menu-option-icon, .ag-ltr .ag-compact-menu-option-icon {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-menu-option-icon, .ag-rtl .ag-compact-menu-option-icon {\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-menu-option-text, .ag-compact-menu-option-text {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-menu-option-shortcut, .ag-ltr .ag-compact-menu-option-shortcut {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-menu-option-shortcut, .ag-rtl .ag-compact-menu-option-shortcut {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-menu-option-popup-pointer, .ag-compact-menu-option-popup-pointer {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-tabs {\\n  min-width: var(--ag-tab-min-width);\\n}\\n\\n.ag-tabs-header {\\n  width: 100%;\\n  display: flex;\\n}\\n\\n.ag-tab {\\n  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  justify-content: center;\\n  cursor: pointer;\\n}\\n\\n.ag-keyboard-focus .ag-tab:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-tab:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-tab-selected {\\n  border-bottom-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-menu-header {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-filter-separator {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-filter-select .ag-picker-field-wrapper {\\n  width: 0;\\n}\\n\\n.ag-filter-condition-operator {\\n  height: 17px;\\n}\\n\\n.ag-ltr .ag-filter-condition-operator-or {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-condition-operator-or {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-set-filter-select-all {\\n  padding-top: var(--ag-widget-container-vertical-padding);\\n}\\n\\n.ag-set-filter-list, .ag-filter-no-matches {\\n  height: calc(var(--ag-list-item-height) * 6);\\n}\\n\\n.ag-set-filter-tree-list {\\n  height: calc(var(--ag-list-item-height) * 10);\\n}\\n\\n.ag-set-filter-filter {\\n  margin-top: var(--ag-widget-container-vertical-padding);\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-to {\\n  margin-top: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-mini-filter {\\n  margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-set-filter-item {\\n  margin: 0px var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-set-filter-add-group-indent {\\n  margin-left: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-set-filter-add-group-indent {\\n  margin-right: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: calc(1 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: calc(1 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: calc(2 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: calc(2 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: calc(3 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: calc(3 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: calc(4 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: calc(4 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: calc(5 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: calc(5 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: calc(6 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: calc(6 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: calc(7 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: calc(7 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: calc(8 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: calc(8 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: calc(9 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: calc(9 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-group-icons {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-set-filter-group-icons {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-apply-panel {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-filter-apply-panel-button {\\n  line-height: 1.5;\\n}\\n.ag-ltr .ag-filter-apply-panel-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-apply-panel-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-simple-filter-body-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n  overflow-y: auto;\\n  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));\\n}\\n.ag-simple-filter-body-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n.ag-simple-filter-body-wrapper .ag-resizer-wrapper {\\n  margin: 0;\\n}\\n\\n.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,\\n.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {\\n  min-width: calc(var(--ag-menu-min-width) - 2px);\\n}\\n\\n.ag-filter-no-matches {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-multi-filter-menu-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-multi-filter-group-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);\\n  background-color: transparent;\\n}\\n\\n.ag-group-filter-field-select-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-group-filter-field-select-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-side-bar {\\n  position: relative;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  width: var(--ag-side-bar-panel-width);\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-side-buttons {\\n  padding-top: calc(var(--ag-grid-size) * 4);\\n  width: calc(var(--ag-icon-size) + 4px);\\n  position: relative;\\n  color: var(--ag-foreground-color);\\n  overflow: hidden;\\n}\\n\\nbutton.ag-side-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  background: transparent;\\n  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;\\n  width: 100%;\\n  margin: 0;\\n  min-height: calc(var(--ag-grid-size) * 18);\\n  background-position-y: center;\\n  background-position-x: center;\\n  background-repeat: no-repeat;\\n  border: none;\\n  border-top: var(--ag-borders-side-button) var(--ag-border-color);\\n  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);\\n}\\nbutton.ag-side-button-button:focus {\\n  box-shadow: none;\\n}\\n\\n.ag-keyboard-focus .ag-side-button-button:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-side-button-button:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-selected button.ag-side-button-button {\\n  background-color: var(--ag-side-button-selected-background-color);\\n}\\n\\n.ag-side-button-icon-wrapper {\\n  margin-bottom: 3px;\\n}\\n\\n.ag-ltr .ag-side-bar-left,\\n.ag-rtl .ag-side-bar-right {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-side-button-button {\\n  border-right: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-right var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-right-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-rtl .ag-side-bar-left,\\n.ag-ltr .ag-side-bar-right {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-side-button-button {\\n  border-left: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-left var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-left-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-filter-toolpanel-header {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-header,\\n.ag-ltr .ag-filter-toolpanel-search {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-header,\\n.ag-rtl .ag-filter-toolpanel-search {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-keyboard-focus .ag-filter-toolpanel-header:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n  position: absolute;\\n}\\n.ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0-header {\\n  height: calc(var(--ag-grid-size) * 8);\\n}\\n\\n.ag-filter-toolpanel-group-item {\\n  margin-top: calc(var(--ag-grid-size) * 0.5);\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-filter-toolpanel-search {\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-filter-toolpanel-search-input {\\n  flex-grow: 1;\\n  height: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-ltr .ag-filter-toolpanel-search-input {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-search-input {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0 {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-expand,\\n.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-expand,\\n.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-instance-filter {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-instance-header-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-instance-header-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-set-filter-group-icons {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-pivot-mode-panel {\\n  min-height: var(--ag-header-height);\\n  height: var(--ag-header-height);\\n  display: flex;\\n}\\n\\n.ag-pivot-mode-select {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-ltr .ag-pivot-mode-select {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-pivot-mode-select {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-keyboard-focus .ag-column-select-header:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-header:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-header {\\n  height: var(--ag-header-height);\\n  align-items: center;\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-panel-column-select {\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-group-icons,\\n.ag-column-select-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-select-list .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-column-select-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-column-select-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-header {\\n  background-color: var(--ag-header-background-color);\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-row {\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-pinned-right-header {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-pinned-left-header {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-header-cell,\\n.ag-header-group-cell {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-header-cell.ag-header-cell-moving,\\n.ag-header-group-cell.ag-header-cell-moving {\\n  background-color: var(--ag-header-cell-moving-background-color);\\n}\\n\\n.ag-ltr .ag-header-group-cell-label.ag-sticky-label {\\n  left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-group-cell-label.ag-sticky-label {\\n  right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-header-cell.ag-header-span-height::after,\\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\\n  height: calc(100% - var(--ag-grid-size) * 4);\\n  top: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-keyboard-focus .ag-header-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-header-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n.ag-keyboard-focus .ag-header-group-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-header-group-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-header-expand-icon {\\n  cursor: pointer;\\n}\\n.ag-ltr .ag-header-expand-icon {\\n  padding-left: 4px;\\n}\\n.ag-rtl .ag-header-expand-icon {\\n  padding-right: 4px;\\n}\\n\\n.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),\\n.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-group-cell:first-of-type.ag-column-resizing,\\n.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {\\n  background-color: var(--ag-header-cell-hover-background-color);\\n}\\n\\n.ag-header-cell::after,\\n.ag-header-group-cell::after {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-separator-display);\\n  width: var(--ag-header-column-separator-width);\\n  height: var(--ag-header-column-separator-height);\\n  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);\\n  background-color: var(--ag-header-column-separator-color);\\n}\\n.ag-ltr .ag-header-cell::after,\\n.ag-ltr .ag-header-group-cell::after {\\n  right: 0;\\n}\\n.ag-rtl .ag-header-cell::after,\\n.ag-rtl .ag-header-group-cell::after {\\n  left: 0;\\n}\\n\\n.ag-header-cell-resize {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-resize::after {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-resize-handle-display);\\n  width: var(--ag-header-column-resize-handle-width);\\n  height: var(--ag-header-column-resize-handle-height);\\n  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);\\n  background-color: var(--ag-header-column-resize-handle-color);\\n}\\n\\n.ag-header-cell.ag-header-span-height::after,\\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\\n  height: calc(100% - var(--ag-grid-size) * 4);\\n  top: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {\\n  right: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize::after {\\n  left: 50%;\\n}\\n\\n.ag-ltr .ag-header-select-all {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-select-all {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-floating-filter-button {\\n  margin-left: calc(var(--ag-grid-size) * 3);\\n}\\n.ag-rtl .ag-floating-filter-button {\\n  margin-right: calc(var(--ag-grid-size) * 3);\\n}\\n\\n.ag-floating-filter-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  appearance: none;\\n  background: transparent;\\n  border: none;\\n  height: var(--ag-icon-size);\\n  padding: 0;\\n  width: var(--ag-icon-size);\\n}\\n\\n.ag-filter-loading {\\n  background-color: var(--ag-control-panel-background-color);\\n  height: 100%;\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  position: absolute;\\n  width: 100%;\\n  z-index: 1;\\n}\\n\\n.ag-paging-panel {\\n  border-top: 1px solid;\\n  border-top-color: var(--ag-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n.ag-paging-panel > * {\\n  margin: 0 var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-paging-button {\\n  cursor: pointer;\\n}\\n\\n.ag-paging-button.ag-disabled {\\n  cursor: default;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-keyboard-focus .ag-paging-button:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-paging-button:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-paging-button, .ag-paging-description {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-status-bar {\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  color: var(--ag-disabled-foreground-color);\\n  padding-right: calc(var(--ag-grid-size) * 4);\\n  padding-left: calc(var(--ag-grid-size) * 4);\\n  line-height: 1.5;\\n}\\n\\n.ag-status-name-value-value {\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-status-bar-center {\\n  text-align: center;\\n}\\n\\n.ag-status-name-value {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell {\\n  background: var(--ag-chip-background-color);\\n  border-radius: calc(var(--ag-grid-size) * 4);\\n  height: calc(var(--ag-grid-size) * 4);\\n  padding: 0 calc(var(--ag-grid-size) * 0.5);\\n  border: 1px solid transparent;\\n}\\n\\n.ag-keyboard-focus .ag-column-drop-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-drop-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 2px;\\n  left: 2px;\\n  display: block;\\n  width: calc(100% - 4px);\\n  height: calc(100% - 4px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-drop-cell-text {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-cell-button {\\n  min-width: calc(var(--ag-grid-size) * 4);\\n  margin: 0 calc(var(--ag-grid-size) * 0.5);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-cell-drag-handle {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell-ghost {\\n  opacity: 0.5;\\n}\\n\\n.ag-column-drop-horizontal {\\n  background-color: var(--ag-control-panel-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-row-height);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-column-drop-horizontal {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-column-drop-horizontal-cell-separator {\\n  margin: 0 var(--ag-grid-size);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-horizontal-empty-message {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-icon {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal-icon {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-column-drop-vertical-list {\\n  padding-bottom: var(--ag-grid-size);\\n  padding-right: var(--ag-grid-size);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-cell {\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical {\\n  min-height: 50px;\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-column-drop-vertical.ag-last-column-drop {\\n  border-bottom: none;\\n}\\n\\n.ag-column-drop-vertical-icon {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  overflow: hidden;\\n  color: var(--ag-disabled-foreground-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-select-agg-func-popup {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background: var(--ag-background-color);\\n  height: calc(var(--ag-grid-size) * 5 * 3.5);\\n  padding: 0;\\n}\\n\\n.ag-select-agg-func-virtual-list-item {\\n  cursor: default;\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-select-agg-func-virtual-list-item:hover {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-sort-indicator-container {\\n  display: flex;\\n}\\n\\n.ag-ltr .ag-sort-indicator-icon {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-sort-indicator-icon {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-chart {\\n  position: relative;\\n  display: flex;\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-chart-components-wrapper {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-title-edit {\\n  position: absolute;\\n  display: none;\\n  top: 0;\\n  left: 0;\\n  text-align: center;\\n}\\n\\n.ag-chart-title-edit.currently-editing {\\n  display: inline-block;\\n}\\n\\n.ag-chart-canvas-wrapper {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-charts-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-menu {\\n  position: absolute;\\n  top: 10px;\\n  width: 24px;\\n  overflow: hidden;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-ltr .ag-chart-menu {\\n  right: 20px;\\n}\\n.ag-rtl .ag-chart-menu {\\n  left: 20px;\\n}\\n\\n.ag-chart-docked-container {\\n  position: relative;\\n  width: 0;\\n  min-width: 0;\\n  transition: min-width 0.4s;\\n}\\n\\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\\n  max-width: 0;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu {\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu-header {\\n  flex: none;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  cursor: default;\\n}\\n\\n.ag-chart-tabbed-menu-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: stretch;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tab {\\n  width: 100%;\\n  overflow: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings {\\n  overflow-x: hidden;\\n}\\n\\n.ag-chart-settings-wrapper {\\n  position: relative;\\n  flex-direction: column;\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-settings-nav-bar {\\n  display: flex;\\n  align-items: center;\\n  width: 100%;\\n  height: 30px;\\n  padding: 0 10px;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-chart-settings-card-selector {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-around;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  padding: 0 10px;\\n}\\n\\n.ag-chart-settings-card-item {\\n  cursor: pointer;\\n  width: 10px;\\n  height: 10px;\\n  background-color: #000;\\n  position: relative;\\n}\\n.ag-chart-settings-card-item.ag-not-selected {\\n  opacity: 0.2;\\n}\\n.ag-chart-settings-card-item::before {\\n  content: \" \";\\n  display: block;\\n  position: absolute;\\n  background-color: transparent;\\n  left: 50%;\\n  top: 50%;\\n  margin-left: -10px;\\n  margin-top: -10px;\\n  width: 20px;\\n  height: 20px;\\n}\\n\\n.ag-chart-settings-prev,\\n.ag-chart-settings-next {\\n  position: relative;\\n  flex: none;\\n}\\n\\n.ag-chart-settings-prev-button,\\n.ag-chart-settings-next-button {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  cursor: pointer;\\n  opacity: 0;\\n}\\n\\n.ag-chart-settings-mini-charts-container {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow-x: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings-mini-wrapper {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  display: flex;\\n  flex-direction: column;\\n  width: 100%;\\n  min-height: 100%;\\n  overflow: hidden;\\n}\\n.ag-chart-settings-mini-wrapper.ag-animating {\\n  transition: left 0.3s;\\n  transition-timing-function: ease-in-out;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  cursor: pointer;\\n}\\n\\n.ag-chart-mini-thumbnail-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-data-wrapper,\\n.ag-chart-format-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-chart-data-wrapper {\\n  height: 100%;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section {\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-empty-text {\\n  display: flex;\\n  top: 0;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n}\\n\\n.ag-chart .ag-chart-menu {\\n  display: none;\\n}\\n\\n.ag-chart-menu-hidden:hover .ag-chart-menu {\\n  display: block;\\n}\\n\\n.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  display: flex;\\n  flex-direction: row;\\n  overflow: auto;\\n  top: 5px;\\n  gap: calc(var(--ag-grid-size) * 3 - 8px);\\n  width: auto;\\n}\\n.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: right;\\n}\\n.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: left;\\n}\\n\\n.ag-chart-menu-close {\\n  display: none;\\n}\\n\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  position: absolute;\\n  top: 50%;\\n  transition: transform 0.33s ease-in-out;\\n  padding: 0;\\n  display: block;\\n  cursor: pointer;\\n  border: none;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  left: 0px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon {\\n  padding: 14px 5px 14px 2px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  content: \"\";\\n  position: absolute;\\n  top: -40px;\\n  bottom: -40px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: 0px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: -10px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: -10px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-icon-menu {\\n  display: none;\\n}\\n\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(3px, -50%);\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(5px, -50%);\\n}\\n\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(-3px, -50%);\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(-5px, -50%);\\n}\\n\\n.ag-charts-font-size-color {\\n  display: flex;\\n  align-self: stretch;\\n  justify-content: space-between;\\n}\\n\\n.ag-charts-data-group-item {\\n  position: relative;\\n}\\n\\n.ag-chart-menu {\\n  border-radius: var(--ag-card-radius);\\n  background: var(--ag-background-color);\\n}\\n\\n.ag-chart-menu-icon {\\n  opacity: 0.5;\\n  line-height: 24px;\\n  font-size: 24px;\\n  width: 24px;\\n  height: 24px;\\n  margin: 2px 0;\\n  cursor: pointer;\\n  border-radius: var(--ag-card-radius);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-chart-menu-icon:hover {\\n  opacity: 1;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-radius: 5px;\\n  margin: 5px;\\n}\\n.ag-chart-mini-thumbnail:nth-last-child(3), .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\\n  margin-left: auto;\\n  margin-right: auto;\\n}\\n.ag-ltr .ag-chart-mini-thumbnail:first-child {\\n  margin-left: 0;\\n}\\n.ag-rtl .ag-chart-mini-thumbnail:first-child {\\n  margin-right: 0;\\n}\\n.ag-ltr .ag-chart-mini-thumbnail:last-child {\\n  margin-right: 0;\\n}\\n.ag-rtl .ag-chart-mini-thumbnail:last-child {\\n  margin-left: 0;\\n}\\n.ag-chart-mini-thumbnail.ag-selected {\\n  border-color: var(--ag-minichart-selected-chart-color);\\n}\\n\\n.ag-chart-settings-card-item {\\n  background: var(--ag-foreground-color);\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 4px;\\n}\\n.ag-chart-settings-card-item.ag-selected {\\n  background-color: var(--ag-minichart-selected-page-color);\\n}\\n\\n.ag-chart-data-column-drag-handle {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-charts-settings-group-title-bar,\\n.ag-charts-data-group-title-bar,\\n.ag-charts-format-top-level-group-title-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-charts-settings-group-container {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-charts-data-group-container {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\\n  height: var(--ag-list-item-height);\\n}\\n.ag-charts-data-group-container .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-charts-data-group-container .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-charts-data-group-container .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-charts-format-top-level-group-container {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-charts-format-top-level-group-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-charts-format-sub-level-group-container {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-charts-format-sub-level-group-container > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-charts-group-container.ag-group-container-horizontal {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section {\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-menu-panel {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-ltr .ag-chart-menu-panel {\\n  border-left: solid 1px var(--ag-border-color);\\n}\\n.ag-rtl .ag-chart-menu-panel {\\n  border-right: solid 1px var(--ag-border-color);\\n}\\n\\n.ag-date-time-list-page-title-bar {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-title {\\n  flex-grow: 1;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-labels-row,\\n.ag-date-time-list-page-entries-row {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-column-label,\\n.ag-date-time-list-page-entry {\\n  flex-basis: 0;\\n  flex-grow: 1;\\n}\\n\\n.ag-date-time-list-page-entry {\\n  cursor: pointer;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-label {\\n  text-align: center;\\n}\\n\\n.ag-input-field-input {\\n  width: 100%;\\n  min-width: 0;\\n}\\n\\n.ag-checkbox-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n}\\n.ag-checkbox-input-wrapper input, .ag-checkbox-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-checkbox-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-checkbox-input-wrapper::after {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n  color: var(--ag-checkbox-checked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-indeterminate::after {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n  color: var(--ag-checkbox-indeterminate-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-toggle-button-input-wrapper {\\n  box-sizing: border-box;\\n  width: var(--ag-toggle-button-width);\\n  height: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-off-background-color);\\n  border-radius: calc(var(--ag-toggle-button-height) * 0.5);\\n  position: relative;\\n  flex: none;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-off-border-color);\\n}\\n.ag-toggle-button-input-wrapper input {\\n  opacity: 0;\\n  height: 100%;\\n  width: 100%;\\n}\\n.ag-toggle-button-input-wrapper:focus-within {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-toggle-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-toggle-button-input-wrapper.ag-checked {\\n  background-color: var(--ag-toggle-button-on-background-color);\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n.ag-toggle-button-input-wrapper::before {\\n  content: \" \";\\n  position: absolute;\\n  top: calc(0px - var(--ag-toggle-button-border-width));\\n  left: calc(0px - var(--ag-toggle-button-border-width));\\n  display: block;\\n  box-sizing: border-box;\\n  height: var(--ag-toggle-button-height);\\n  width: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-switch-background-color);\\n  border-radius: 100%;\\n  transition: left 100ms;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-switch-border-color);\\n}\\n.ag-toggle-button-input-wrapper.ag-checked::before {\\n  left: calc(100% - var(--ag-toggle-button-height));\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n\\n.ag-radio-button-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n  border-radius: var(--ag-icon-size);\\n}\\n.ag-radio-button-input-wrapper input, .ag-radio-button-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-radio-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-radio-button-input-wrapper::after {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-radio-button-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n  color: var(--ag-checkbox-checked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n\\ninput[class^=ag-][type=range] {\\n  -webkit-appearance: none;\\n  width: 100%;\\n  height: 100%;\\n  background: none;\\n  overflow: visible;\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-runnable-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-moz-range-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-ms-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  color: transparent;\\n  width: calc(100% - 2px);\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));\\n}\\ninput[class^=ag-][type=range]::-ms-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]::-moz-ag-range-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]:focus {\\n  outline: none;\\n}\\ninput[class^=ag-][type=range]:focus::-webkit-slider-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-ms-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-moz-ag-range-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-ms-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:disabled {\\n  opacity: 0.5;\\n}\\n`,\"\",{version:3,sources:[\"webpack://./node_modules/ag-grid-community/styles/ag-grid.css\"],names:[],mappings:\"AAAA;EACE,uCAAuC;EACvC,8BAA8B;EAC9B,gCAAgC;EAChC,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,mCAAmC;EACnC,kCAAkC;AACpC;;AAEA;EACE,sDAAsD;AACxD;;AAEA;EACE,iDAAiD;AACnD;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,iDAAiD;AACnD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,2DAA2D;AAC7D;;AAEA;EACE,iEAAiE;AACnE;;AAEA;EACE,6DAA6D;AAC/D;;AAEA;EACE,uDAAuD;AACzD;;AAEA;EACE,kDAAkD;AACpD;;AAEA;EACE,qDAAqD;AACvD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,oDAAoD;AACtD;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,iDAAiD;AACnD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,iDAAiD;AACnD;;AAEA;EACE,kDAAkD;AACpD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,sDAAsD;AACxD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,2DAA2D;AAC7D;;AAEA;EACE,0DAA0D;AAC5D;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,qDAAqD;AACvD;;AAEA;EACE,qDAAqD;AACvD;;AAEA;EACE,sDAAsD;AACxD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,+CAA+C;AACjD;;AAEA;EACE,sDAAsD;AACxD;;AAEA;EACE,6DAA6D;AAC/D;;AAEA;EACE,oDAAoD;AACtD;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,uCAAuC;AACzC;;AAEA;EACE,2BAA2B;EAC3B,2CAA2C;EAC3C,2DAA2D;EAC3D,kEAAkE;EAClE,kDAAkD;EAClD,2BAA2B;EAC3B,yCAAyC;EACzC,0CAA0C;EAC1C,4CAA4C;EAC5C,oDAAoD;EACpD,gDAAgD;EAChD,oFAAoF;EACpF,wCAAwC;EACxC,yDAAyD;EACzD,8DAA8D;EAC9D,iCAAiC;EACjC,oCAAoC;EACpC,6DAA6D;EAC7D,wCAAwC;EACxC,yDAAyD;EACzD,mFAAmF;EACnF,mFAAmF;EACnF,mFAAmF;EACnF,4EAA4E;EAC5E,yEAAyE;EACzE,oCAAoC;EACpC,gDAAgD;EAChD,4EAA4E;EAC5E,kEAAkE;EAClE,oDAAoD;EACpD,oEAAoE;EACpE,2EAA2E;EAC3E,yCAAyC;EACzC,2CAA2C;EAC3C,uCAAuC;EACvC,uBAAuB;EACvB,sCAAsC;EACtC,wCAAwC;EACxC,yCAAyC;EACzC,mDAAmD;EACnD,4BAA4B;EAC5B,uDAAuD;EACvD,0BAA0B;EAC1B,8CAA8C;EAC9C,+CAA+C;EAC/C,yDAAyD;EACzD,qCAAqC;EACrC,wDAAwD;EACxD,2CAA2C;EAC3C,uBAAuB;EACvB,uDAAuD;EACvD,0CAA0C;EAC1C,yCAAyC;EACzC,uCAAuC;EACvC,oEAAoE;EACpE,8CAA8C;EAC9C,4CAA4C;EAC5C,2CAA2C;EAC3C,wEAAwE;EACxE,uBAAuB;EACvB,8DAA8D;EAC9D,iDAAiD;EACjD,2CAA2C;EAC3C,oDAAoD;EACpD,uDAAuD;EACvD,yDAAyD;EACzD,qEAAqE;EACrE,uEAAuE;EACvE,2EAA2E;EAC3E,oEAAoE;EACpE,wEAAwE;EACxE,sEAAsE;EACtE,gFAAgF;EAChF,oCAAoC;EACpC,8CAA8C;EAC9C,kEAAkE;EAClE,iCAAiC;EACjC,mCAAmC;EACnC,qEAAqE;EACrE,oEAAoE;EACpE,mBAAmB;EACnB,oBAAoB;EACpB,yEAAyE;EACzE,uEAAuE;EACvE,6DAA6D;EAC7D,iDAAiD;EACjD,2DAA2D;EAC3D,2DAA2D;EAC3D,oDAAoD;EACpD,wCAAwC;EACxC,oDAAoD;EACpD,+EAA+E;EAC/E,4EAA4E;EAC5E,qFAAqF;EACrF,yCAAyC;EACzC,yBAAyB;EACzB,0BAA0B;EAC1B,gCAAgC;EAChC,8CAA8C;EAC9C,oBAAoB;EACpB,yCAAyC;EACzC,sBAAsB;EACtB,kDAAkD;AACpD;;AAEA;EACE,4CAA4C;AAC9C;;AAEA;EACE,mCAAmC;EACnC,kCAAkC;EAClC,8BAA8B;EAC9B,mBAAmB;EACnB,iCAAiC;AACnC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,qBAAqB;AACvB;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;AAChB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,cAAc;EACd,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,8BAA8B;EAC9B,wBAAwB;EACxB,mCAAmC;EACnC,sCAAsC;AACxC;;AAEA;EACE;IACE,iBAAiB;IACjB,kBAAkB;EACpB;EACA;IACE,iBAAiB;IACjB,kBAAkB;EACpB;AACF;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,yDAAq+M;EACr+M,4BAA4B;EAC5B,2BAA2B;EAC3B,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,iBAAiB;EACjB,+BAA+B;EAC/B,eAAe;EACf,oBAAoB;AACtB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,SAAS;EACT,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,QAAQ;AACV;AACA;EACE,YAAY;AACd;;AAEA;;;;;;;;;EASE,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,gBAAgB;EAChB,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iCAAiC;AACnC;;AAEA;EACE,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;;;;;;;;;;;;;EAaE,kBAAkB;AACpB;;AAEA;;;;EAIE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;;;;EAIE,kBAAkB;EAClB,QAAQ;EACR,oBAAoB;AACtB;AACA;;;;EAIE,OAAO;AACT;AACA;;;;EAIE,QAAQ;AACV;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,+BAA+B;AACjC;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,8BAA8B;EAC9B,aAAa;AACf;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd,cAAc;EACd,YAAY;EACZ,+BAA+B;AACjC;;AAEA;;EAEE,aAAa;EACb,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;EAClB,SAAS;AACX;AACA;;EAEE,UAAU;EACV,yBAAyB;EACzB,kBAAkB;AACpB;AACA;;;EAGE,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;AACA;EACE,OAAO;EACP,QAAQ;AACV;;AAEA;EACE,YAAY;AACd;AACA;EACE,MAAM;EACN,WAAW;AACb;AACA;EACE,QAAQ;AACV;AACA;EACE,OAAO;AACT;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,wBAAwB;EACxB,UAAU;AACZ;;AAEA;EACE,aAAa;EACb,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,UAAU;AACZ;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,YAAY;EACZ,UAAU;EACV,MAAM;EACN,iBAAiB;AACnB;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,cAAc;EACd,WAAW;AACb;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,YAAY;EACZ,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,YAAY;AACd;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,yBAAyB;EACzB,gBAAgB;AAClB;;AAEA;EACE,yEAAyE;AAC3E;;AAEA;EACE,sFAAsF;AACxF;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,mBAAmB;EACnB,qBAAqB;AACvB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,OAAO;EACP,MAAM;AACR;;AAEA;EACE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,UAAU;AACZ;AACA;;;;;EAKE,YAAY;EACZ,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,uBAAuB;AACzB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,YAAY;AACd;;AAEA;EACE,aAAa;EACb,cAAc;EACd,YAAY;EACZ,WAAW;EACX,mBAAmB;EACnB,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,mBAAmB;EACnB,aAAa;EACb,WAAW;AACb;AACA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,YAAY;EACZ,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,OAAO;EACP,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,WAAW;AACb;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,aAAa;EACb,UAAU;EACV,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,uBAAuB;EACvB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,UAAU;EACV,MAAM;AACR;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,WAAW;AACb;;AAEA;;EAEE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,UAAU;EACV,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,UAAU;EACV,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,QAAQ;EACR,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,UAAU;EACV,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,QAAQ;EACR,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,SAAS;EACT,UAAU;EACV,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,OAAO;EACP,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,OAAO;EACP,QAAQ;EACR,WAAW;EACX,UAAU;EACV,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;AAChB;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,uCAAuC;EACvC,kCAAkC;AACpC;;AAEA;EACE,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,cAAc;AAChB;AACA;EACE,YAAY;AACd;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,aAAa;EACb,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,cAAc;AAChB;;AAEA;EACE,eAAe;EACf,aAAa;AACf;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,QAAQ;AACV;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,cAAc;EACd,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;EACnB,aAAa;EACb,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;;;EAGE,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,mBAAmB;EACnB,iBAAiB;EACjB,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;AACd;AACA;;;EAGE,UAAU;AACZ;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,8BAA8B;EAC9B,2BAA2B;EAC3B,mBAAmB;EACnB,YAAY;EACZ,WAAW;EACX,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,2BAA2B;AAC7B;;AAEA;EACE,SAAS;EACT,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;EACb,eAAe;AACjB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,8BAA8B;EAC9B,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,cAAc;EACd,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,sBAAsB;EACtB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,aAAa;EACb,SAAS;EACT,UAAU;EACV,SAAS;EACT,eAAe;AACjB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,QAAQ;AACV;AACA;EACE,UAAU;AACZ;;AAEA;EACE,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;EACnB,OAAO;AACT;;AAEA;EACE,WAAW;EACX,aAAa;EACb,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;AACX;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,+HAA+H;AACjI;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,2EAA2E;EAC3E,WAAW;EACX,YAAY;AACd;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,cAAc;AAChB;AACA;EACE,2BAA2B;AAC7B;AACA;;;EAGE,cAAc;EACd,yBAAyB;AAC3B;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,cAAc;EACd,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,oBAAoB;AACtB;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,8BAA8B;AAChC;;AAEA;EACE;IACE,cAAc;EAChB;EACA;;;;;;;;IAQE,uBAAuB;IACvB,2BAA2B;IAC3B,yBAAyB;EAC3B;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE,sBAAsB;EACtB,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;;EAEE,iBAAiB;AACnB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,UAAU;EACV,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,gCAAgC;AAClC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,SAAS;EACT,4CAA4C;AAC9C;;AAEA;;EAEE,4CAA4C;AAC9C;;AAEA;;;;;;;EAOE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;EACd,4DAA4D;AAC9D;AACA;;;;;;;EAOE,0CAA0C;EAC1C,2DAA2D;EAC3D,mDAAmD;AACrD;AACA;;;;;;;EAOE,aAAa;EACb,4CAA4C;EAC5C,gDAAgD;AAClD;AACA;;;;;;;EAOE,4EAA4E;AAC9E;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,wBAAwB;EACxB,SAAS;AACX;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,4CAA4C;AAC9C;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,4CAA4C;EAC5C,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;;AAEA;EACE,4CAA4C;EAC5C,sCAAsC;EACtC,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,YAAY;AACd;;AAEA;EACE,0DAA0D;AAC5D;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,wCAAwC;AAC1C;;AAEA;EACE,4BAA4B;EAC5B,2EAA2E;EAC3E,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,+CAA+C;AACjD;AACA;EACE,gDAAgD;AAClD;AACA;EACE,kCAAkC;AACpC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,eAAe;EACf,kCAAkC;AACpC;AACA;EACE,aAAa;AACf;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,+CAA+C;AACjD;AACA;EACE,gDAAgD;AAClD;;AAEA;EACE,yDAAyD;AAC3D;;AAEA;;;;EAIE,2CAA2C;AAC7C;AACA;;;;EAIE,2CAA2C;AAC7C;AACA;;;;EAIE,0CAA0C;AAC5C;;AAEA;EACE,oHAAoH;EACpH,wFAAwF;EACxF,4FAA4F;EAC5F,aAAa;EACb,mBAAmB;EACnB,UAAU;AACZ;;AAEA;;EAEE,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,UAAU;EACV,2CAA2C;AAC7C;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,sDAAsD;EACtD,4BAA4B;AAC9B;;AAEA;EACE,4BAA4B;EAC5B,8DAA8D;AAChE;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,iCAAiC;AACnC;AACA;EACE,gCAAgC;AAClC;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,0CAA0C;EAC1C,oBAAoB;AACtB;AACA;EACE,YAAY;AACd;;AAEA;;EAEE,2CAA2C;AAC7C;AACA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,iBAAiB;EACjB,oCAAoC;EACpC,4CAA4C;AAC9C;;AAEA;EACE,QAAQ;EACR,UAAU;EACV,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,sDAAsD;AACxD;;AAEA;EACE,iBAAiB;EACjB,oCAAoC;EACpC,kBAAkB;AACpB;AACA;EACE,4CAA4C;AAC9C;;AAEA;EACE,4CAA4C;EAC5C,2CAA2C;AAC7C;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,gCAAgC;EAChC,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,0EAA0E;AAC5E;;AAEA;EACE,wEAAwE;AAC1E;;AAEA;EACE,mBAAmB;EACnB,YAAY;EACZ,WAAW;EACX,uBAAuB;EACvB,iBAAiB;EACjB,2CAA2C;AAC7C;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,oCAAoC;EACpC,2CAA2C;AAC7C;;AAEA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;EAC5B,gBAAgB;EAChB,uBAAuB;EACvB,oEAAoE;EACpE,2CAA2C;EAC3C,0CAA0C;EAC1C,oCAAoC;EACpC,SAAS;EACT,wCAAwC;EACxC,oDAAoD;AACtD;;AAEA;EACE,iCAAiC;EACjC,iCAAiC;AACnC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;;EAEE,YAAY;EACZ,oBAAoB;AACtB;;AAEA;EACE,sCAAsC;EACtC,gDAAgD;AAClD;;AAEA;EACE,4CAA4C;AAC9C;;AAEA;EACE,mDAAmD;EACnD,wCAAwC;EACxC,+BAA+B;EAC/B,8DAA8D;EAC9D,uDAAuD;AACzD;;AAEA;EACE,gCAAgC;AAClC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,oDAAoD;EACpD,iCAAiC;EACjC,4BAA4B;EAC5B,gDAAgD;EAChD,oCAAoC;EACpC,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;;AAEA;EACE,sBAAsB;AACxB;AACA;EACE,UAAU;AACZ;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,4DAA4D;AAC9D;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;;;;;;;;EAQE,iDAAiD;AACnD;AACA;;;;;;;;EAQE,gDAAgD;AAClD;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;;EAEE,gDAAgD;AAClD;;AAEA;;EAEE,0CAA0C;EAC1C,oBAAoB;AACtB;;AAEA;EACE,gEAAgE;AAClE;AACA;EACE,iEAAiE;AACnE;;AAEA;EACE,oEAAoE;AACtE;;AAEA;EACE,wDAAwD;AAC1D;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gDAAgD;AAClD;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,2FAA2F;AAC7F;AACA;EACE,4FAA4F;AAC9F;;AAEA;EACE,uDAAuD;AACzD;AACA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4FAA4F;AAC9F;AACA;EACE,6FAA6F;AAC/F;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,6CAA6C;AAC/C;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,4CAA4C;AAC9C;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,6BAA6B;EAC7B,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,+BAA+B;AACjC;;AAEA;EACE,yEAAyE;EACzE,iCAAiC;AACnC;;AAEA;EACE,oFAAoF;AACtF;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,sEAAsE;AACxE;;AAEA;EACE,4BAA4B;EAC5B,4CAA4C;EAC5C,2BAA2B;EAC3B,+FAA+F;AACjG;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,uBAAuB;EACvB,WAAW;EACX,wDAAwD;EACxD,SAAS;AACX;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,MAAM;AACR;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,oDAAoD;AACtD;;AAEA;EACE,+DAA+D;AACjE;AACA;EACE,8DAA8D;AAChE;;AAEA;EACE,WAAW;EACX,yDAAyD;EACzD,cAAc;EACd,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;AACX;;AAEA;;EAEE,WAAW;EACX,2CAA2C;EAC3C,cAAc;EACd,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,2CAA2C;EAC3C,mHAAmH;AACrH;;AAEA;EACE,8CAA8C;AAChD;;AAEA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,kBAAkB;AACpB;;AAEA;EACE,oHAAoH;EACpH,wFAAwF;EACxF,6BAA6B;EAC7B,iGAAiG;EACjG,2DAA2D;EAC3D,4DAA4D;EAC5D,4CAA4C;AAC9C;;AAEA;EACE,2DAA2D;EAC3D,4DAA4D;AAC9D;;AAEA;EACE,YAAY;EACZ,YAAY;AACd;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;EAC5B,UAAU;EACV,0DAA0D;AAC5D;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;EAC5B,0DAA0D;EAC1D,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,0CAA0C;AAC5C;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,sCAAsC;EACtC,4CAA4C;AAC9C;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,0DAA0D;AAC5D;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;AAC9B;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,+CAA+C;AACjD;AACA;EACE,gDAAgD;AAClD;;AAEA;EACE,4CAA4C;AAC9C;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,oBAAoB;EACpB,0BAA0B;EAC1B,mCAAmC;EACnC,iCAAiC;AACnC;;AAEA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;AACA;EACE,gEAAgE;AAClE;;AAEA;EACE,6DAA6D;AAC/D;;AAEA;EACE,8CAA8C;AAChD;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,uBAAuB;AACzB;AACA;EACE,sBAAsB;AACxB;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,+DAA+D;AACjE;;AAEA;;EAEE,4DAA4D;AAC9D;AACA;;EAEE,6EAA6E;AAC/E;AACA;;EAEE,sFAAsF;AACxF;;AAEA;;EAEE,4DAA4D;AAC9D;;AAEA;;EAEE,8DAA8D;AAChE;;AAEA;;EAEE,8DAA8D;AAChE;;AAEA;;EAEE,8DAA8D;AAChE;;AAEA;EACE,wDAAwD;EACxD,wDAAwD;AAC1D;AACA;EACE,0DAA0D;EAC1D,0DAA0D;AAC5D;AACA;EACE,2DAA2D;EAC3D,2DAA2D;AAC7D;AACA;EACE,yDAAyD;EACzD,yDAAyD;AAC3D;;AAEA;;;;;;;;;EASE,iBAAiB;EACjB,oDAAoD;EACpD,oDAAoD;EACpD,gBAAgB;AAClB;;AAEA;;EAEE,sBAAsB;EACtB,wDAAwD;AAC1D;;AAEA;;EAEE,0EAA0E;AAC5E;AACA;;EAEE,yEAAyE;AAC3E;;AAEA;;EAEE,yBAAyB;EACzB,2DAA2D;AAC7D;;AAEA;;EAEE,yEAAyE;AAC3E;AACA;;EAEE,0EAA0E;AAC5E;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,wDAAwD;AAC1D;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2DAA2D;AAC7D;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;EAC5B,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,8BAA8B;AAChC;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,WAAW;EACX,cAAc;EACd,6DAA6D;AAC/D;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,gCAAgC;EAChC,0CAA0C;AAC5C;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,0BAA0B;AAC5B;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,4CAA4C;AAC9C;;AAEA;EACE,2CAA2C;EAC3C,4CAA4C;AAC9C;;AAEA;EACE,kCAAkC;AACpC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,WAAW;EACX,aAAa;AACf;;AAEA;EACE,uEAAuE;EACvE,2EAA2E;EAC3E,aAAa;EACb,UAAU;EACV,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;AACjB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,2DAA2D;AAC7D;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,6DAA6D;AAC/D;;AAEA;EACE,QAAQ;AACV;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,0CAA0C;AAC5C;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,wDAAwD;AAC1D;;AAEA;EACE,4CAA4C;AAC9C;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,uDAAuD;EACvD,0DAA0D;EAC1D,2DAA2D;AAC7D;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,iGAAiG;AACnG;;AAEA;EACE,yDAAyD;AAC3D;;AAEA;EACE,gHAAgH;AAClH;AACA;EACE,iHAAiH;AACnH;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,wDAAwD;AAC1D;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,2DAA2D;AAC7D;AACA;EACE,0DAA0D;AAC5D;;AAEA;EACE,kGAAkG;EAClG,wEAAwE;AAC1E;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,kGAAkG;EAClG,qGAAqG;EACrG,gBAAgB;EAChB,8HAA8H;AAChI;AACA;EACE,gDAAgD;AAClD;AACA;EACE,SAAS;AACX;;AAEA;;EAEE,+CAA+C;AACjD;;AAEA;EACE,kGAAkG;AACpG;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,0DAA0D;EAC1D,6BAA6B;AAC/B;;AAEA;EACE,kGAAkG;EAClG,qGAAqG;AACvG;AACA;EACE,gDAAgD;AAClD;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,qCAAqC;EACrC,0DAA0D;AAC5D;;AAEA;EACE,0CAA0C;EAC1C,sCAAsC;EACtC,kBAAkB;EAClB,iCAAiC;EACjC,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,uBAAuB;EACvB,wEAAwE;EACxE,WAAW;EACX,SAAS;EACT,0CAA0C;EAC1C,6BAA6B;EAC7B,6BAA6B;EAC7B,4BAA4B;EAC5B,YAAY;EACZ,gEAAgE;EAChE,mEAAmE;AACrE;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,iEAAiE;AACnE;;AAEA;EACE,kBAAkB;AACpB;;AAEA;;EAEE,sDAAsD;AACxD;AACA;;EAEE,qDAAqD;AACvD;AACA;;EAEE,sEAAsE;EACtE,0EAA0E;AAC5E;AACA;;EAEE,0DAA0D;AAC5D;;AAEA;;EAEE,qDAAqD;AACvD;AACA;;EAEE,sDAAsD;AACxD;AACA;;EAEE,qEAAqE;EACrE,yEAAyE;AAC3E;AACA;;EAEE,yDAAyD;AAC3D;;AAEA;EACE,qCAAqC;AACvC;;AAEA;;EAEE,iCAAiC;AACnC;AACA;;EAEE,kCAAkC;AACpC;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,uCAAuC;EACvC,8BAA8B;EAC9B,gCAAgC;EAChC,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,mCAAmC;EACnC,kCAAkC;EAClC,iDAAiD;EACjD,kBAAkB;AACpB;AACA;EACE,iCAAiC;AACnC;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,2CAA2C;EAC3C,8CAA8C;AAChD;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,YAAY;EACZ,qCAAqC;AACvC;AACA;EACE,iCAAiC;AACnC;AACA;EACE,gCAAgC;AAClC;;AAEA;EACE,wEAAwE;AAC1E;;AAEA;;EAEE,iCAAiC;AACnC;AACA;;EAEE,gCAAgC;AAClC;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,sFAAsF;AACxF;AACA;EACE,uFAAuF;AACzF;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,uFAAuF;AACzF;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,uDAAuD;EACvD,oDAAoD;EACpD,+BAA+B;AACjC;;AAEA;EACE,gCAAgC;AAClC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,mCAAmC;EACnC,+BAA+B;EAC/B,aAAa;AACf;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,0DAA0D;AAC5D;AACA;EACE,2DAA2D;AAC7D;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,+BAA+B;EAC/B,mBAAmB;EACnB,wDAAwD;EACxD,2EAA2E;AAC7E;;AAEA;EACE,2EAA2E;EAC3E,wEAAwE;AAC1E;;AAEA;;EAEE,2CAA2C;AAC7C;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,wDAAwD;AAC1D;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;;AAEA;EACE,mDAAmD;EACnD,gEAAgE;AAClE;;AAEA;EACE,wCAAwC;EACxC,+BAA+B;AACjC;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,+DAA+D;AACjE;;AAEA;EACE,gCAAgC;AAClC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,iCAAiC;AACnC;AACA;EACE,gCAAgC;AAClC;;AAEA;;EAEE,+CAA+C;EAC/C,gDAAgD;AAClD;AACA;;EAEE,+DAA+D;AACjE;;AAEA;EACE,uCAAuC;AACzC;AACA;EACE,wCAAwC;AAC1C;;AAEA;;EAEE,4CAA4C;EAC5C,kCAAkC;AACpC;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,2CAA2C;AAC7C;;AAEA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;;AAEA;;EAEE,6DAA6D;AAC/D;;AAEA;;;;;;;EAOE,8DAA8D;AAChE;;AAEA;;EAEE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,kDAAkD;EAClD,8CAA8C;EAC9C,gDAAgD;EAChD,+DAA+D;EAC/D,yDAAyD;AAC3D;AACA;;EAEE,QAAQ;AACV;AACA;;EAEE,OAAO;AACT;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,sDAAsD;EACtD,kDAAkD;EAClD,oDAAoD;EACpD,mEAAmE;EACnE,6DAA6D;AAC/D;;AAEA;;EAEE,4CAA4C;EAC5C,kCAAkC;AACpC;;AAEA;EACE,6DAA6D;AAC/D;AACA;EACE,8DAA8D;AAChE;;AAEA;EACE,6DAA6D;AAC/D;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,+CAA+C;AACjD;AACA;EACE,8CAA8C;AAChD;;AAEA;EACE,0CAA0C;AAC5C;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,gBAAgB;EAChB,uBAAuB;EACvB,YAAY;EACZ,2BAA2B;EAC3B,UAAU;EACV,0BAA0B;AAC5B;;AAEA;EACE,0DAA0D;EAC1D,YAAY;EACZ,kGAAkG;EAClG,kBAAkB;EAClB,WAAW;EACX,UAAU;AACZ;;AAEA;EACE,qBAAqB;EACrB,wCAAwC;EACxC,2CAA2C;EAC3C,+BAA+B;AACjC;AACA;EACE,2CAA2C;AAC7C;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,0CAA0C;AAC5C;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,oDAAoD;EACpD,0CAA0C;EAC1C,4CAA4C;EAC5C,2CAA2C;EAC3C,gBAAgB;AAClB;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gCAAgC;EAChC,iCAAiC;EACjC,0CAA0C;EAC1C,6CAA6C;AAC/C;;AAEA;EACE,2CAA2C;EAC3C,4CAA4C;EAC5C,qCAAqC;EACrC,0CAA0C;EAC1C,6BAA6B;AAC/B;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,wCAAwC;EACxC,yCAAyC;EACzC,2CAA2C;AAC7C;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,0DAA0D;EAC1D,2CAA2C;EAC3C,4BAA4B;EAC5B,uDAAuD;AACzD;AACA;EACE,+CAA+C;AACjD;AACA;EACE,gDAAgD;AAClD;;AAEA;EACE,sDAAsD;AACxD;AACA;EACE,qDAAqD;AACvD;;AAEA;EACE,6BAA6B;EAC7B,2CAA2C;AAC7C;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,+CAA+C;AACjD;AACA;EACE,8CAA8C;AAChD;;AAEA;EACE,mCAAmC;EACnC,kCAAkC;EAClC,iCAAiC;AACnC;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;EAChB,2EAA2E;AAC7E;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,gCAAgC;EAChC,iCAAiC;AACnC;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB,0CAA0C;EAC1C,+BAA+B;AACjC;;AAEA;EACE,gDAAgD;EAChD,sCAAsC;EACtC,oCAAoC;EACpC,iCAAiC;EACjC,4BAA4B;EAC5B,sCAAsC;EACtC,2CAA2C;EAC3C,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,2CAA2C;AAC7C;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,gDAAgD;AAClD;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,iCAAiC;AACnC;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,gBAAgB;EAChB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,MAAM;EACN,OAAO;EACP,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,gBAAgB;EAChB,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,0BAA0B;AAC5B;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;EACb,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;EACE,UAAU;EACV,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,aAAa;EACb,cAAc;EACd,oBAAoB;EACpB,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,sBAAsB;EACtB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,eAAe;EACf,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,6BAA6B;EAC7B,cAAc;EACd,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,6BAA6B;EAC7B,SAAS;EACT,QAAQ;EACR,kBAAkB;EAClB,iBAAiB;EACjB,WAAW;EACX,YAAY;AACd;;AAEA;;EAEE,kBAAkB;EAClB,UAAU;AACZ;;AAEA;;EAEE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,eAAe;EACf,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,aAAa;EACb,sBAAsB;EACtB,WAAW;EACX,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,qBAAqB;EACrB,uCAAuC;AACzC;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,aAAa;EACb,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;EACtB,yBAAyB;EACzB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;;EAEE,aAAa;EACb,SAAS;AACX;;AAEA;EACE,aAAa;EACb,MAAM;EACN,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,uBAAuB;AACzB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,cAAc;EACd,QAAQ;EACR,wCAAwC;EACxC,WAAW;AACb;AACA;EACE,0EAA0E;EAC1E,sBAAsB;AACxB;AACA;EACE,yEAAyE;EACzE,qBAAqB;AACvB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,uCAAuC;EACvC,UAAU;EACV,cAAc;EACd,eAAe;EACf,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;;AAEA;EACE,+BAA+B;AACjC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,gCAAgC;AAClC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,gCAAgC;AAClC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,8BAA8B;AAChC;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oCAAoC;EACpC,sCAAsC;AACxC;;AAEA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,aAAa;EACb,eAAe;EACf,oCAAoC;EACpC,2CAA2C;AAC7C;AACA;EACE,UAAU;AACZ;;AAEA;EACE,kDAAkD;EAClD,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,sDAAsD;AACxD;;AAEA;EACE,sCAAsC;EACtC,UAAU;EACV,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,yDAAyD;AAC3D;;AAEA;EACE,gCAAgC;AAClC;;AAEA;;;EAGE,wEAAwE;AAC1E;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,8GAA8G;AAChH;AACA;EACE,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,wDAAwD;AAC1D;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;;AAEA;EACE,0CAA0C;EAC1C,4BAA4B;AAC9B;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kGAAkG;EAClG,qGAAqG;AACvG;AACA;EACE,gDAAgD;AAClD;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;;EAEE,aAAa;EACb,SAAS;AACX;;AAEA;EACE,0DAA0D;AAC5D;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,8CAA8C;AAChD;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,kBAAkB;AACpB;;AAEA;;EAEE,aAAa;AACf;;AAEA;;EAEE,aAAa;EACb,YAAY;AACd;;AAEA;EACE,eAAe;EACf,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,uCAAuC;EACvC,8BAA8B;EAC9B,gCAAgC;EAChC,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,mCAAmC;EACnC,kCAAkC;EAClC,0BAA0B;EAC1B,2BAA2B;EAC3B,qDAAqD;EACrD,+CAA+C;EAC/C,qBAAqB;EACrB,sBAAsB;EACtB,UAAU;AACZ;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,4CAA4C;AAC9C;AACA;EACE,YAAY;AACd;AACA;EACE,6DAA6D;EAC7D,yCAAyC;EACzC,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,2DAA2D;EAC3D,uCAAuC;EACvC,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,iEAAiE;EACjE,6CAA6C;EAC7C,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;;AAEA;EACE,sBAAsB;EACtB,oCAAoC;EACpC,sCAAsC;EACtC,8DAA8D;EAC9D,yDAAyD;EACzD,kBAAkB;EAClB,UAAU;EACV,kDAAkD;EAClD,sDAAsD;AACxD;AACA;EACE,UAAU;EACV,YAAY;EACZ,WAAW;AACb;AACA;EACE,aAAa;EACb,4CAA4C;AAC9C;AACA;EACE,YAAY;AACd;AACA;EACE,6DAA6D;EAC7D,qDAAqD;AACvD;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,qDAAqD;EACrD,sDAAsD;EACtD,cAAc;EACd,sBAAsB;EACtB,sCAAsC;EACtC,qCAAqC;EACrC,iEAAiE;EACjE,mBAAmB;EACnB,sBAAsB;EACtB,kDAAkD;EAClD,yDAAyD;AAC3D;AACA;EACE,iDAAiD;EACjD,qDAAqD;AACvD;;AAEA;EACE,uCAAuC;EACvC,8BAA8B;EAC9B,gCAAgC;EAChC,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,mCAAmC;EACnC,kCAAkC;EAClC,0BAA0B;EAC1B,2BAA2B;EAC3B,qDAAqD;EACrD,+CAA+C;EAC/C,qBAAqB;EACrB,sBAAsB;EACtB,UAAU;EACV,kCAAkC;AACpC;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,4CAA4C;AAC9C;AACA;EACE,YAAY;AACd;AACA;EACE,2DAA2D;EAC3D,yCAAyC;EACzC,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,0DAA0D;EAC1D,uCAAuC;EACvC,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;;AAEA;EACE,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,wCAAwC;EACxC,sCAAsC;EACtC,+CAA+C;AACjD;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,wCAAwC;EACxC,sCAAsC;EACtC,+CAA+C;AACjD;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,wCAAwC;EACxC,sCAAsC;EACtC,+CAA+C;EAC/C,kBAAkB;EAClB,uBAAuB;AACzB;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,0BAA0B;EAC1B,2BAA2B;EAC3B,4CAA4C;EAC5C,iBAAiB;EACjB,gDAAgD;EAChD,kCAAkC;EAClC,+DAA+D;AACjE;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,0BAA0B;EAC1B,2BAA2B;EAC3B,4CAA4C;EAC5C,iBAAiB;EACjB,gDAAgD;EAChD,kCAAkC;AACpC;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,0BAA0B;EAC1B,2BAA2B;EAC3B,4CAA4C;EAC5C,iBAAiB;EACjB,gDAAgD;EAChD,kCAAkC;AACpC;AACA;EACE,aAAa;AACf;AACA;EACE,4CAA4C;EAC5C,8CAA8C;AAChD;AACA;EACE,4CAA4C;EAC5C,8CAA8C;AAChD;AACA;EACE,4CAA4C;EAC5C,8CAA8C;AAChD;AACA;EACE,oDAAoD;AACtD;AACA;EACE,oDAAoD;AACtD;AACA;EACE,oDAAoD;AACtD;AACA;EACE,YAAY;AACd\",sourcesContent:['.ag-icon {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.ag-icon-aggregation::before {\\n  content: var(--ag-icon-font-code-aggregation, \"\\\\f101\");\\n}\\n\\n.ag-icon-arrows::before {\\n  content: var(--ag-icon-font-code-arrows, \"\\\\f102\");\\n}\\n\\n.ag-icon-asc::before {\\n  content: var(--ag-icon-font-code-asc, \"\\\\f103\");\\n}\\n\\n.ag-icon-cancel::before {\\n  content: var(--ag-icon-font-code-cancel, \"\\\\f104\");\\n}\\n\\n.ag-icon-chart::before {\\n  content: var(--ag-icon-font-code-chart, \"\\\\f105\");\\n}\\n\\n.ag-icon-checkbox-checked::before {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n}\\n\\n.ag-icon-checkbox-indeterminate::before {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n}\\n\\n.ag-icon-checkbox-unchecked::before {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n}\\n\\n.ag-icon-color-picker::before {\\n  content: var(--ag-icon-font-code-color-picker, \"\\\\f109\");\\n}\\n\\n.ag-icon-columns::before {\\n  content: var(--ag-icon-font-code-columns, \"\\\\f10a\");\\n}\\n\\n.ag-icon-contracted::before {\\n  content: var(--ag-icon-font-code-contracted, \"\\\\f10b\");\\n}\\n\\n.ag-icon-copy::before {\\n  content: var(--ag-icon-font-code-copy, \"\\\\f10c\");\\n}\\n\\n.ag-icon-cross::before {\\n  content: var(--ag-icon-font-code-cross, \"\\\\f10d\");\\n}\\n\\n.ag-icon-csv::before {\\n  content: var(--ag-icon-font-code-csv, \"\\\\f10e\");\\n}\\n\\n.ag-icon-cut::before {\\n  content: var(--ag-icon-font-code-cut, \"\\\\f10f\");\\n}\\n\\n.ag-icon-desc::before {\\n  content: var(--ag-icon-font-code-desc, \"\\\\f110\");\\n}\\n\\n.ag-icon-excel::before {\\n  content: var(--ag-icon-font-code-excel, \"\\\\f111\");\\n}\\n\\n.ag-icon-expanded::before {\\n  content: var(--ag-icon-font-code-expanded, \"\\\\f112\");\\n}\\n\\n.ag-icon-eye-slash::before {\\n  content: var(--ag-icon-font-code-eye-slash, \"\\\\f113\");\\n}\\n\\n.ag-icon-eye::before {\\n  content: var(--ag-icon-font-code-eye, \"\\\\f114\");\\n}\\n\\n.ag-icon-filter::before {\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n}\\n\\n.ag-icon-first::before {\\n  content: var(--ag-icon-font-code-first, \"\\\\f116\");\\n}\\n\\n.ag-icon-grip::before {\\n  content: var(--ag-icon-font-code-grip, \"\\\\f117\");\\n}\\n\\n.ag-icon-group::before {\\n  content: var(--ag-icon-font-code-group, \"\\\\f118\");\\n}\\n\\n.ag-icon-last::before {\\n  content: var(--ag-icon-font-code-last, \"\\\\f119\");\\n}\\n\\n.ag-icon-left::before {\\n  content: var(--ag-icon-font-code-left, \"\\\\f11a\");\\n}\\n\\n.ag-icon-linked::before {\\n  content: var(--ag-icon-font-code-linked, \"\\\\f11b\");\\n}\\n\\n.ag-icon-loading::before {\\n  content: var(--ag-icon-font-code-loading, \"\\\\f11c\");\\n}\\n\\n.ag-icon-maximize::before {\\n  content: var(--ag-icon-font-code-maximize, \"\\\\f11d\");\\n}\\n\\n.ag-icon-menu::before {\\n  content: var(--ag-icon-font-code-menu, \"\\\\f11e\");\\n}\\n\\n.ag-icon-minimize::before {\\n  content: var(--ag-icon-font-code-minimize, \"\\\\f11f\");\\n}\\n\\n.ag-icon-next::before {\\n  content: var(--ag-icon-font-code-next, \"\\\\f120\");\\n}\\n\\n.ag-icon-none::before {\\n  content: var(--ag-icon-font-code-none, \"\\\\f121\");\\n}\\n\\n.ag-icon-not-allowed::before {\\n  content: var(--ag-icon-font-code-not-allowed, \"\\\\f122\");\\n}\\n\\n.ag-icon-paste::before {\\n  content: var(--ag-icon-font-code-paste, \"\\\\f123\");\\n}\\n\\n.ag-icon-pin::before {\\n  content: var(--ag-icon-font-code-pin, \"\\\\f124\");\\n}\\n\\n.ag-icon-pivot::before {\\n  content: var(--ag-icon-font-code-pivot, \"\\\\f125\");\\n}\\n\\n.ag-icon-previous::before {\\n  content: var(--ag-icon-font-code-previous, \"\\\\f126\");\\n}\\n\\n.ag-icon-radio-button-off::before {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n}\\n\\n.ag-icon-radio-button-on::before {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n}\\n\\n.ag-icon-right::before {\\n  content: var(--ag-icon-font-code-right, \"\\\\f129\");\\n}\\n\\n.ag-icon-save::before {\\n  content: var(--ag-icon-font-code-save, \"\\\\f12a\");\\n}\\n\\n.ag-icon-small-down::before {\\n  content: var(--ag-icon-font-code-small-down, \"\\\\f12b\");\\n}\\n\\n.ag-icon-small-left::before {\\n  content: var(--ag-icon-font-code-small-left, \"\\\\f12c\");\\n}\\n\\n.ag-icon-small-right::before {\\n  content: var(--ag-icon-font-code-small-right, \"\\\\f12d\");\\n}\\n\\n.ag-icon-small-up::before {\\n  content: var(--ag-icon-font-code-small-up, \"\\\\f12e\");\\n}\\n\\n.ag-icon-tick::before {\\n  content: var(--ag-icon-font-code-tick, \"\\\\f12f\");\\n}\\n\\n.ag-icon-tree-closed::before {\\n  content: var(--ag-icon-font-code-tree-closed, \"\\\\f130\");\\n}\\n\\n.ag-icon-tree-indeterminate::before {\\n  content: var(--ag-icon-font-code-tree-indeterminate, \"\\\\f131\");\\n}\\n\\n.ag-icon-tree-open::before {\\n  content: var(--ag-icon-font-code-tree-open, \"\\\\f132\");\\n}\\n\\n.ag-icon-unlinked::before {\\n  content: var(--ag-icon-font-code-unlinked, \"\\\\f133\");\\n}\\n\\n.ag-icon-row-drag::before {\\n  content: var(--ag-icon-font-code-grip);\\n}\\n\\n.ag-left-arrow::before {\\n  content: var(--ag-icon-font-code-left);\\n}\\n\\n.ag-right-arrow::before {\\n  content: var(--ag-icon-font-code-right);\\n}\\n\\n[class*=ag-theme-] {\\n  --ag-foreground-color: #000;\\n  --ag-data-color: var(--ag-foreground-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-header-foreground-color: var(--ag-secondary-foreground-color);\\n  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);\\n  --ag-background-color: #fff;\\n  --ag-header-background-color: transparent;\\n  --ag-tooltip-background-color: transparent;\\n  --ag-subheader-background-color: transparent;\\n  --ag-subheader-toolbar-background-color: transparent;\\n  --ag-control-panel-background-color: transparent;\\n  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);\\n  --ag-selected-row-background-color: #BBB;\\n  --ag-odd-row-background-color: var(--ag-background-color);\\n  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);\\n  --ag-row-hover-color: transparent;\\n  --ag-column-hover-color: transparent;\\n  --ag-range-selection-border-color: var(--ag-foreground-color);\\n  --ag-range-selection-border-style: solid;\\n  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);\\n  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);\\n  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);\\n  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);\\n  --ag-selected-tab-underline-width: 0;\\n  --ag-selected-tab-underline-transition-speed: 0s;\\n  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);\\n  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);\\n  --ag-header-cell-hover-background-color: transparent;\\n  --ag-header-cell-moving-background-color: var(--ag-background-color);\\n  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);\\n  --ag-value-change-delta-up-color: #43a047;\\n  --ag-value-change-delta-down-color: #e53935;\\n  --ag-chip-background-color: transparent;\\n  --ag-borders: solid 1px;\\n  --ag-border-color: rgba(0, 0, 0, 0.25);\\n  --ag-borders-critical: var(--ag-borders);\\n  --ag-borders-secondary: var(--ag-borders);\\n  --ag-secondary-border-color: var(--ag-border-color);\\n  --ag-row-border-style: solid;\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-row-border-width: 1px;\\n  --ag-cell-horizontal-border: solid transparent;\\n  --ag-borders-input: var(--ag-borders-secondary);\\n  --ag-input-border-color: var(--ag-secondary-border-color);\\n  --ag-borders-input-invalid: solid 2px;\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-borders-side-button: var(--ag-borders);\\n  --ag-border-radius: 0px;\\n  --ag-row-border-color: var(--ag-secondary-border-color);\\n  --ag-header-column-separator-display: none;\\n  --ag-header-column-separator-height: 100%;\\n  --ag-header-column-separator-width: 1px;\\n  --ag-header-column-separator-color: var(--ag-secondary-border-color);\\n  --ag-header-column-resize-handle-display: none;\\n  --ag-header-column-resize-handle-height: 50%;\\n  --ag-header-column-resize-handle-width: 1px;\\n  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);\\n  --ag-invalid-color: red;\\n  --ag-input-disabled-border-color: var(--ag-input-border-color);\\n  --ag-input-disabled-background-color: transparent;\\n  --ag-checkbox-background-color: transparent;\\n  --ag-checkbox-border-radius: var(--ag-border-radius);\\n  --ag-checkbox-checked-color: var(--ag-foreground-color);\\n  --ag-checkbox-unchecked-color: var(--ag-foreground-color);\\n  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);\\n  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);\\n  --ag-toggle-button-switch-background-color: var(--ag-background-color);\\n  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);\\n  --ag-toggle-button-border-width: 1px;\\n  --ag-toggle-button-height: var(--ag-icon-size);\\n  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);\\n  --ag-input-focus-box-shadow: none;\\n  --ag-input-focus-border-color: none;\\n  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);\\n  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);\\n  --ag-grid-size: 4px;\\n  --ag-icon-size: 12px;\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);\\n  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: var(--ag-grid-size);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);\\n  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);\\n  --ag-header-height: var(--ag-row-height);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 5);\\n  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\\n  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));\\n  --ag-filter-tool-panel-group-indent: 16px;\\n  --ag-tab-min-width: 220px;\\n  --ag-menu-min-width: 181px;\\n  --ag-side-bar-panel-width: 200px;\\n  --ag-font-family: \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 14px;\\n  --ag-card-radius: var(--ag-border-radius);\\n  --ag-card-shadow: none;\\n  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\\n}\\n\\n.ag-root-wrapper, .ag-sticky-top, .ag-dnd-ghost {\\n  background-color: var(--ag-background-color);\\n}\\n\\n[class*=ag-theme-] {\\n  -webkit-font-smoothing: antialiased;\\n  font-family: var(--ag-font-family);\\n  font-size: var(--ag-font-size);\\n  line-height: normal;\\n  color: var(--ag-foreground-color);\\n}\\n\\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\\n  display: block;\\n}\\n\\n.ag-hidden {\\n  display: none !important;\\n}\\n\\n.ag-invisible {\\n  visibility: hidden !important;\\n}\\n\\n.ag-no-transition {\\n  transition: none !important;\\n}\\n\\n.ag-drag-handle {\\n  cursor: grab;\\n}\\n\\n.ag-column-drop-wrapper {\\n  display: flex;\\n}\\n\\n.ag-column-drop-horizontal-half-width {\\n  display: inline-block;\\n  width: 50% !important;\\n}\\n\\n.ag-unselectable {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-selectable {\\n  -moz-user-select: text;\\n  -webkit-user-select: text;\\n  -ms-user-select: text;\\n  user-select: text;\\n}\\n\\n.ag-tab {\\n  position: relative;\\n}\\n\\n.ag-tab-guard {\\n  position: absolute;\\n  width: 0;\\n  height: 0;\\n  display: block;\\n}\\n\\n.ag-select-agg-func-popup {\\n  position: absolute;\\n}\\n\\n.ag-input-wrapper, .ag-picker-field-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  line-height: normal;\\n  position: relative;\\n}\\n\\n.ag-shake-left-to-right {\\n  animation-direction: alternate;\\n  animation-duration: 0.2s;\\n  animation-iteration-count: infinite;\\n  animation-name: ag-shake-left-to-right;\\n}\\n\\n@keyframes ag-shake-left-to-right {\\n  from {\\n    padding-left: 6px;\\n    padding-right: 2px;\\n  }\\n  to {\\n    padding-left: 2px;\\n    padding-right: 6px;\\n  }\\n}\\n.ag-root-wrapper {\\n  cursor: default;\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n}\\n.ag-root-wrapper.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-watermark {\\n  position: absolute;\\n  bottom: 20px;\\n  right: 25px;\\n  opacity: 0.5;\\n  transition: opacity 1s ease-out 3s;\\n}\\n.ag-watermark::before {\\n  content: \"\";\\n  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDIzNSA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxuczpzZXJpZj0iaHR0cDovL3d3dy5zZXJpZi5jb20vIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjI7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDAuNjM1NzIzLDAsMCwwLjYzNTcyMywtNDkyLjkyMSwtMzIzLjYwOCkiPgogICAgICAgIDxwYXRoIGQ9Ik0xMDk5LjQsNTQ5LjRMMTA5OS40LDUzNi45TDEwNzguMSw1MzYuOUwxMDY1LjYsNTQ5LjRMMTA5OS40LDU0OS40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTEyMy40LDUxOC40TDEwOTYuNyw1MTguNEwxMDg0LjEsNTMwLjlMMTEyMy40LDUzMC45TDExMjMuNCw1MTguNFoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwNTMuMiw1NjEuOUwxMDU5LjYsNTU1LjVMMTA4MS4yLDU1NS41TDEwODEuMiw1NjhMMTA1My4yLDU2OEwxMDUzLjIsNTYxLjlaIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDU3LjksNTQzLjNMMTA3MS43LDU0My4zTDEwODQuMyw1MzAuOEwxMDU3LjksNTMwLjhMMTA1Ny45LDU0My4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTA0Mi44LDU2MS45TDEwNTMuMiw1NjEuOUwxMDY1LjYsNTQ5LjRMMTA0Mi44LDU0OS40TDEwNDIuOCw1NjEuOVoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwOTYuNyw1MTguNEwxMDkwLjMsNTI0LjhMMTA0OS41LDUyNC44TDEwNDkuNSw1MTIuM0wxMDk2LjcsNTEyLjNMMTA5Ni43LDUxOC40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNODI4LjYsNTU5LjdMODA5LDU1OS43TDgwNS42LDU2OC4xTDc5Nyw1NjguMUw4MTUuMSw1MjUuN0w4MjIuNiw1MjUuN0w4NDAuNyw1NjguMUw4MzIsNTY4LjFMODI4LjYsNTU5LjdaTTgyNS45LDU1M0w4MTguOCw1MzUuN0w4MTEuNyw1NTNMODI1LjksNTUzWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTYwLjEsNTQxLjNDOTYyLjYsNTM3LjYgOTY4LjksNTM3LjIgOTcxLjUsNTM3LjJMOTcxLjUsNTQ0LjRDOTY4LjMsNTQ0LjQgOTY1LjEsNTQ0LjUgOTYzLjIsNTQ1LjlDOTYxLjMsNTQ3LjMgOTYwLjMsNTQ5LjIgOTYwLjMsNTUxLjVMOTYwLjMsNTY4LjFMOTUyLjUsNTY4LjFMOTUyLjUsNTM3LjJMOTYwLDUzNy4yTDk2MC4xLDU0MS4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTM3LjIiIHdpZHRoPSI3LjgiIGhlaWdodD0iMzAuOSIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTIzLjQiIHdpZHRoPSI3LjgiIGhlaWdodD0iOS4yIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDIyLjMsNTIzLjRMMTAyMi4zLDU2OC4xTDEwMTQuOCw1NjguMUwxMDE0LjYsNTYzLjRDMTAxMy41LDU2NSAxMDEyLjEsNTY2LjMgMTAxMC40LDU2Ny4zQzEwMDguNyw1NjguMiAxMDA2LjYsNTY4LjcgMTAwNC4yLDU2OC43QzEwMDIuMSw1NjguNyAxMDAwLjEsNTY4LjMgOTk4LjQsNTY3LjZDOTk2LjYsNTY2LjggOTk1LDU2NS44IDk5My43LDU2NC40Qzk5Mi40LDU2MyA5OTEuMyw1NjEuMyA5OTAuNiw1NTkuNEM5ODkuOCw1NTcuNSA5ODkuNSw1NTUuMyA5ODkuNSw1NTIuOUM5ODkuNSw1NTAuNSA5ODkuOSw1NDguMyA5OTAuNiw1NDYuM0M5OTEuNCw1NDQuMyA5OTIuNCw1NDIuNiA5OTMuNyw1NDEuMkM5OTUsNTM5LjggOTk2LjYsNTM4LjcgOTk4LjQsNTM3LjlDMTAwMC4yLDUzNy4xIDEwMDIuMSw1MzYuNyAxMDA0LjIsNTM2LjdDMTAwNi42LDUzNi43IDEwMDguNiw1MzcuMSAxMDEwLjMsNTM4QzEwMTIsNTM4LjkgMTAxMy40LDU0MC4xIDEwMTQuNSw1NDEuOEwxMDE0LjUsNTIzLjVMMTAyMi4zLDUyMy41TDEwMjIuMyw1MjMuNFpNMTAwNS45LDU2MkMxMDA4LjUsNTYyIDEwMTAuNSw1NjEuMSAxMDEyLjEsNTU5LjRDMTAxMy43LDU1Ny43IDEwMTQuNSw1NTUuNCAxMDE0LjUsNTUyLjZDMTAxNC41LDU0OS44IDEwMTMuNyw1NDcuNiAxMDEyLjEsNTQ1LjhDMTAxMC41LDU0NC4xIDEwMDguNSw1NDMuMiAxMDA1LjksNTQzLjJDMTAwMy40LDU0My4yIDEwMDEuMyw1NDQuMSA5OTkuOCw1NDUuOEM5OTguMiw1NDcuNSA5OTcuNCw1NDkuOCA5OTcuNCw1NTIuNkM5OTcuNCw1NTUuNCA5OTguMiw1NTcuNiA5OTkuOCw1NTkuM0MxMDAxLjQsNTYxLjEgMTAwMy40LDU2MiAxMDA1LjksNTYyIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik04ODUuOCw1NDQuMkw4NjYuNSw1NDQuMkw4NjYuNSw1NTAuOUw4NzcuNSw1NTAuOUM4NzcuMiw1NTQuMyA4NzUuOSw1NTYuOSA4NzMuNyw1NTlDODcxLjUsNTYxIDg2OC43LDU2MiA4NjUuMSw1NjJDODYzLjEsNTYyIDg2MS4yLDU2MS42IDg1OS42LDU2MC45Qzg1Ny45LDU2MC4yIDg1Ni41LDU1OS4yIDg1NS4zLDU1Ny44Qzg1NC4xLDU1Ni41IDg1My4yLDU1NC45IDg1Mi41LDU1M0M4NTEuOCw1NTEuMSA4NTEuNSw1NDkuMSA4NTEuNSw1NDYuOEM4NTEuNSw1NDQuNSA4NTEuOCw1NDIuNSA4NTIuNSw1NDAuNkM4NTMuMSw1MzguNyA4NTQuMSw1MzcuMiA4NTUuMyw1MzUuOEM4NTYuNSw1MzQuNSA4NTcuOSw1MzMuNSA4NTkuNiw1MzIuN0M4NjEuMyw1MzIgODYzLjEsNTMxLjYgODY1LjIsNTMxLjZDODY5LjQsNTMxLjYgODcyLjYsNTMyLjYgODc0LjgsNTM0LjZMODgwLDUyOS40Qzg3Ni4xLDUyNi40IDg3MS4xLDUyNC44IDg2NS4yLDUyNC44Qzg2MS45LDUyNC44IDg1OC45LDUyNS4zIDg1Ni4yLDUyNi40Qzg1My41LDUyNy41IDg1MS4yLDUyOC45IDg0OS4zLDUzMC44Qzg0Ny40LDUzMi43IDg0NS45LDUzNSA4NDQuOSw1MzcuN0M4NDMuOSw1NDAuNCA4NDMuNCw1NDMuNCA4NDMuNCw1NDYuNkM4NDMuNCw1NDkuOCA4NDMuOSw1NTIuOCA4NDUsNTU1LjVDODQ2LjEsNTU4LjIgODQ3LjUsNTYwLjUgODQ5LjQsNTYyLjRDODUxLjMsNTY0LjMgODUzLjYsNTY1LjggODU2LjMsNTY2LjhDODU5LDU2Ny45IDg2Miw1NjguNCA4NjUuMiw1NjguNEM4NjguNCw1NjguNCA4NzEuMyw1NjcuOSA4NzMuOSw1NjYuOEM4NzYuNSw1NjUuNyA4NzguNyw1NjQuMyA4ODAuNSw1NjIuNEM4ODIuMyw1NjAuNSA4ODMuNyw1NTguMiA4ODQuNyw1NTUuNUM4ODUuNyw1NTIuOCA4ODYuMiw1NDkuOCA4ODYuMiw1NDYuNkw4ODYuMiw1NDUuM0M4ODUuOSw1NDUuMSA4ODUuOCw1NDQuNiA4ODUuOCw1NDQuMiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTQ2LjgsNTQ0LjJMOTI3LjUsNTQ0LjJMOTI3LjUsNTUwLjlMOTM4LjUsNTUwLjlDOTM4LjIsNTU0LjMgOTM2LjksNTU2LjkgOTM0LjcsNTU5QzkzMi41LDU2MSA5MjkuNyw1NjIgOTI2LjEsNTYyQzkyNC4xLDU2MiA5MjIuMiw1NjEuNiA5MjAuNiw1NjAuOUM5MTguOSw1NjAuMiA5MTcuNSw1NTkuMiA5MTYuMyw1NTcuOEM5MTUuMSw1NTYuNSA5MTQuMiw1NTQuOSA5MTMuNSw1NTNDOTEyLjgsNTUxLjEgOTEyLjUsNTQ5LjEgOTEyLjUsNTQ2LjhDOTEyLjUsNTQ0LjUgOTEyLjgsNTQyLjUgOTEzLjUsNTQwLjZDOTE0LjEsNTM4LjcgOTE1LjEsNTM3LjIgOTE2LjMsNTM1LjhDOTE3LjUsNTM0LjUgOTE4LjksNTMzLjUgOTIwLjYsNTMyLjdDOTIyLjMsNTMyIDkyNC4xLDUzMS42IDkyNi4yLDUzMS42QzkzMC40LDUzMS42IDkzMy42LDUzMi42IDkzNS44LDUzNC42TDk0MSw1MjkuNEM5MzcuMSw1MjYuNCA5MzIuMSw1MjQuOCA5MjYuMiw1MjQuOEM5MjIuOSw1MjQuOCA5MTkuOSw1MjUuMyA5MTcuMiw1MjYuNEM5MTQuNSw1MjcuNSA5MTIuMiw1MjguOSA5MTAuMyw1MzAuOEM5MDguNCw1MzIuNyA5MDYuOSw1MzUgOTA1LjksNTM3LjdDOTA0LjksNTQwLjQgOTA0LjQsNTQzLjQgOTA0LjQsNTQ2LjZDOTA0LjQsNTQ5LjggOTA0LjksNTUyLjggOTA2LDU1NS41QzkwNy4xLDU1OC4yIDkwOC41LDU2MC41IDkxMC40LDU2Mi40QzkxMi4zLDU2NC4zIDkxNC42LDU2NS44IDkxNy4zLDU2Ni44QzkyMCw1NjcuOSA5MjMsNTY4LjQgOTI2LjIsNTY4LjRDOTI5LjQsNTY4LjQgOTMyLjMsNTY3LjkgOTM0LjksNTY2LjhDOTM3LjUsNTY1LjcgOTM5LjcsNTY0LjMgOTQxLjUsNTYyLjRDOTQzLjMsNTYwLjUgOTQ0LjcsNTU4LjIgOTQ1LjcsNTU1LjVDOTQ2LjcsNTUyLjggOTQ3LjIsNTQ5LjggOTQ3LjIsNTQ2LjZMOTQ3LjIsNTQ1LjNDOTQ2LjksNTQ1LjEgOTQ2LjgsNTQ0LjYgOTQ2LjgsNTQ0LjIiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=);\\n  background-repeat: no-repeat;\\n  background-size: 170px 40px;\\n  display: block;\\n  height: 40px;\\n  width: 170px;\\n  opacity: 0.5;\\n}\\n\\n.ag-watermark-text {\\n  opacity: 0.5;\\n  font-weight: bold;\\n  font-family: Impact, sans-serif;\\n  font-size: 19px;\\n  padding-left: 0.7rem;\\n}\\n\\n.ag-root-wrapper-body {\\n  display: flex;\\n  flex-direction: row;\\n}\\n.ag-root-wrapper-body.ag-layout-normal {\\n  flex: 1 1 auto;\\n  height: 0;\\n  min-height: 0;\\n}\\n\\n.ag-root {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  width: 0;\\n}\\n.ag-root.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-header-viewport,\\n.ag-floating-top-viewport,\\n.ag-body-viewport,\\n.ag-center-cols-viewport,\\n.ag-floating-bottom-viewport,\\n.ag-body-horizontal-scroll-viewport,\\n.ag-body-vertical-scroll-viewport,\\n.ag-virtual-list-viewport,\\n.ag-sticky-top-viewport {\\n  position: relative;\\n  height: 100%;\\n  min-width: 0px;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-body-viewport {\\n  display: flex;\\n}\\n.ag-body-viewport.ag-layout-normal {\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-center-cols-viewport {\\n  width: 100%;\\n  overflow-x: auto;\\n}\\n\\n.ag-body-horizontal-scroll-viewport {\\n  overflow-x: scroll;\\n}\\n\\n.ag-body-vertical-scroll-viewport {\\n  overflow-y: scroll;\\n}\\n\\n.ag-virtual-list-viewport {\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-body-container,\\n.ag-pinned-right-cols-container,\\n.ag-center-cols-container,\\n.ag-pinned-left-cols-container,\\n.ag-floating-bottom-container,\\n.ag-body-horizontal-scroll-container,\\n.ag-body-vertical-scroll-container,\\n.ag-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-virtual-list-container,\\n.ag-sticky-top-container {\\n  position: relative;\\n}\\n\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-floating-bottom-container,\\n.ag-sticky-top-container {\\n  height: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-center-cols-container {\\n  display: block;\\n}\\n\\n.ag-pinned-right-cols-container {\\n  display: block;\\n}\\n\\n.ag-body-horizontal-scroll-container {\\n  height: 100%;\\n}\\n\\n.ag-body-vertical-scroll-container {\\n  width: 100%;\\n}\\n\\n.ag-full-width-container,\\n.ag-floating-top-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-sticky-top-full-width-container {\\n  position: absolute;\\n  top: 0px;\\n  pointer-events: none;\\n}\\n.ag-ltr .ag-full-width-container,\\n.ag-ltr .ag-floating-top-full-width-container,\\n.ag-ltr .ag-floating-bottom-full-width-container,\\n.ag-ltr .ag-sticky-top-full-width-container {\\n  left: 0;\\n}\\n.ag-rtl .ag-full-width-container,\\n.ag-rtl .ag-floating-top-full-width-container,\\n.ag-rtl .ag-floating-bottom-full-width-container,\\n.ag-rtl .ag-sticky-top-full-width-container {\\n  right: 0;\\n}\\n\\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\\n  display: inline-block;\\n  overflow: hidden;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-virtual-list-container {\\n  overflow: hidden;\\n}\\n\\n.ag-center-cols-clipper {\\n  flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  min-height: 100%;\\n  transform: translate3d(0, 0, 0);\\n}\\n\\n.ag-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  flex-direction: row !important;\\n  min-height: 0;\\n}\\n\\n.ag-body-clipper {\\n  overflow: hidden;\\n  min-width: 0px;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  transform: translate3d(0, 0, 0);\\n}\\n\\n.ag-body-horizontal-scroll,\\n.ag-body-vertical-scroll {\\n  min-height: 0;\\n  min-width: 0;\\n  display: flex;\\n  position: relative;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  position: absolute;\\n  bottom: 0;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {\\n  opacity: 0;\\n  transition: opacity 400ms;\\n  visibility: hidden;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,\\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {\\n  visibility: visible;\\n  opacity: 1;\\n}\\n\\n.ag-body-horizontal-scroll {\\n  width: 100%;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n  right: 0;\\n}\\n\\n.ag-body-vertical-scroll {\\n  height: 100%;\\n}\\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  top: 0;\\n  z-index: 10;\\n}\\n.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  right: 0;\\n}\\n.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {\\n  left: 0;\\n}\\n\\n.ag-force-vertical-scroll {\\n  overflow-y: scroll !important;\\n}\\n\\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\\n  height: 100%;\\n  min-width: 0;\\n  overflow-x: scroll;\\n}\\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\\n  overflow-x: hidden;\\n}\\n\\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n}\\n\\n.ag-header-cell-sortable .ag-header-cell-label {\\n  cursor: pointer;\\n}\\n\\n.ag-header {\\n  display: flex;\\n  width: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-pinned-left-header {\\n  height: 100%;\\n}\\n\\n.ag-pinned-right-header {\\n  height: 100%;\\n}\\n\\n.ag-header-row {\\n  position: absolute;\\n}\\n\\n.ag-header-row:not(.ag-header-row-column-group) {\\n  overflow: hidden;\\n}\\n\\n.ag-header.ag-header-allow-overflow .ag-header-row {\\n  overflow: visible;\\n}\\n\\n.ag-header-cell {\\n  display: inline-flex;\\n  align-items: center;\\n  position: absolute;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button {\\n  opacity: 1;\\n}\\n\\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\\n  transition: opacity 0.2s;\\n  opacity: 0;\\n}\\n\\n.ag-header-group-cell-label, .ag-header-cell-label {\\n  display: flex;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n  align-items: center;\\n  text-overflow: ellipsis;\\n  align-self: stretch;\\n}\\n\\n.ag-header-group-cell-label.ag-sticky-label {\\n  position: sticky;\\n  flex: none;\\n}\\n\\n.ag-header-cell-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {\\n  height: 100%;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-comp-wrapper {\\n  width: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {\\n  white-space: normal;\\n}\\n\\n.ag-right-aligned-header .ag-header-cell-label {\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-header-group-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-header-cell-resize {\\n  position: absolute;\\n  z-index: 2;\\n  height: 100%;\\n  width: 8px;\\n  top: 0;\\n  cursor: ew-resize;\\n}\\n.ag-ltr .ag-header-cell-resize {\\n  right: -4px;\\n}\\n.ag-rtl .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize {\\n  right: -4px;\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-header-select-all {\\n  display: flex;\\n}\\n\\n.ag-column-moving .ag-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-cell {\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-group-cell {\\n  transition: left 0.2s, width 0.2s;\\n}\\n\\n.ag-column-panel {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  flex: 3 1 0px;\\n}\\n\\n.ag-column-select-header {\\n  position: relative;\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-column-select-header-icon {\\n  position: relative;\\n}\\n\\n.ag-column-select-header-filter-wrapper {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-column-select-header-filter {\\n  width: 100%;\\n}\\n\\n.ag-column-select-list {\\n  flex: 1 1 0px;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop {\\n  position: relative;\\n  display: inline-flex;\\n  align-items: center;\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-column-drop-list {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell {\\n  position: relative;\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-column-drop-cell-text {\\n  overflow: hidden;\\n  flex: 1 1 auto;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-column-drop-vertical {\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n  align-items: stretch;\\n  flex: 1 1 0px;\\n}\\n\\n.ag-column-drop-vertical-title-bar {\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-column-drop-vertical-list {\\n  position: relative;\\n  align-items: stretch;\\n  flex-grow: 1;\\n  flex-direction: column;\\n  overflow-x: auto;\\n}\\n.ag-column-drop-vertical-list > * {\\n  flex: none;\\n}\\n\\n.ag-column-drop-empty .ag-column-drop-vertical-list {\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  display: block;\\n}\\n\\n.ag-column-drop.ag-column-drop-horizontal {\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-cell-button {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-toolpanel {\\n  flex: 1 1 0px;\\n  min-width: 0;\\n}\\n\\n.ag-filter-toolpanel-header {\\n  position: relative;\\n}\\n\\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-filter-apply-panel {\\n  display: flex;\\n  justify-content: flex-end;\\n  overflow: hidden;\\n}\\n\\n.ag-row-animation .ag-row {\\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s;\\n}\\n\\n.ag-row-animation .ag-row.ag-after-created {\\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s;\\n}\\n\\n.ag-row-no-animation .ag-row {\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-row {\\n  white-space: nowrap;\\n  width: 100%;\\n}\\n\\n.ag-row-loading {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-row-position-absolute {\\n  position: absolute;\\n}\\n\\n.ag-row-position-relative {\\n  position: relative;\\n}\\n\\n.ag-full-width-row {\\n  overflow: hidden;\\n  pointer-events: all;\\n}\\n\\n.ag-row-inline-editing {\\n  z-index: 1;\\n}\\n\\n.ag-row-dragging {\\n  z-index: 2;\\n}\\n\\n.ag-stub-cell {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-cell {\\n  display: inline-block;\\n  position: absolute;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n\\n.ag-cell-value {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-cell-value, .ag-group-value {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-cell-wrap-text {\\n  white-space: normal;\\n  word-break: break-all;\\n}\\n\\n.ag-cell-wrapper {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-cell-wrapper.ag-row-group {\\n  align-items: flex-start;\\n}\\n\\n.ag-sparkline-wrapper {\\n  position: absolute;\\n  height: 100%;\\n  width: 100%;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  height: 100%;\\n  align-items: center;\\n}\\n\\n.ag-cell-inline-editing {\\n  z-index: 1;\\n}\\n.ag-cell-inline-editing .ag-cell-wrapper,\\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor,\\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor input {\\n  height: 100%;\\n  width: 100%;\\n  line-height: normal;\\n}\\n\\n.ag-cell .ag-icon {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n\\n.ag-set-filter-item {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n}\\n\\n.ag-set-filter-item-checkbox {\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-set-filter-group-icons {\\n  display: block;\\n}\\n.ag-set-filter-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-body-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n}\\n\\n.ag-filter-filter {\\n  flex: 1 1 0px;\\n}\\n\\n.ag-filter-condition {\\n  display: flex;\\n  justify-content: center;\\n}\\n\\n.ag-floating-filter-body {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n}\\n\\n.ag-floating-filter-full-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  width: 100%;\\n  align-items: center;\\n  overflow: hidden;\\n}\\n\\n.ag-floating-filter-full-body > div {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input {\\n  align-items: center;\\n  display: flex;\\n  width: 100%;\\n}\\n.ag-floating-filter-input > * {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-button {\\n  display: flex;\\n  flex: none;\\n}\\n\\n.ag-dnd-ghost {\\n  position: absolute;\\n  display: inline-flex;\\n  align-items: center;\\n  cursor: move;\\n  white-space: nowrap;\\n  z-index: 9999;\\n}\\n\\n.ag-overlay {\\n  height: 100%;\\n  left: 0;\\n  pointer-events: none;\\n  position: absolute;\\n  top: 0;\\n  width: 100%;\\n}\\n\\n.ag-overlay-panel {\\n  display: flex;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-overlay-wrapper {\\n  display: flex;\\n  flex: none;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n  text-align: center;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  pointer-events: all;\\n}\\n\\n.ag-popup-child {\\n  z-index: 5;\\n  top: 0;\\n}\\n\\n.ag-popup-editor {\\n  position: absolute;\\n  z-index: 1;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-large-text-input {\\n  display: block;\\n}\\n\\n.ag-virtual-list-item {\\n  position: absolute;\\n  width: 100%;\\n}\\n\\n.ag-floating-top {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-floating-bottom {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-sticky-top {\\n  position: absolute;\\n  display: flex;\\n  width: 100%;\\n}\\n\\n.ag-pinned-left-sticky-top,\\n.ag-pinned-right-sticky-top {\\n  position: relative;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-sticky-top-full-width-container {\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-dialog, .ag-panel {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-panel-title-bar {\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  cursor: default;\\n}\\n\\n.ag-panel-title-bar-title {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-panel-title-bar-buttons {\\n  display: flex;\\n}\\n\\n.ag-panel-title-bar-button {\\n  cursor: pointer;\\n}\\n\\n.ag-panel-content-wrapper {\\n  display: flex;\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-dialog {\\n  position: absolute;\\n}\\n\\n.ag-resizer {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 1;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n.ag-resizer.ag-resizer-topLeft {\\n  top: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-top {\\n  top: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-topRight {\\n  top: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-right {\\n  top: 5px;\\n  right: 0;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n.ag-resizer.ag-resizer-bottomRight {\\n  bottom: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-bottom {\\n  bottom: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-bottomLeft {\\n  bottom: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-left {\\n  left: 0;\\n  top: 5px;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n\\n.ag-tooltip {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n.ag-tooltip-custom {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n.ag-value-slide-out {\\n  margin-right: 5px;\\n  opacity: 1;\\n  transition: opacity 3s, margin-right 3s;\\n  transition-timing-function: linear;\\n}\\n\\n.ag-value-slide-out-end {\\n  margin-right: 10px;\\n  opacity: 0;\\n}\\n\\n.ag-opacity-zero {\\n  opacity: 0 !important;\\n}\\n\\n.ag-menu {\\n  max-height: 100%;\\n  overflow-y: auto;\\n  position: absolute;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-menu-column-select-wrapper {\\n  height: 265px;\\n  overflow: auto;\\n}\\n.ag-menu-column-select-wrapper .ag-column-select {\\n  height: 100%;\\n}\\n\\n.ag-menu-list {\\n  display: table;\\n  width: 100%;\\n}\\n\\n.ag-menu-option, .ag-menu-separator {\\n  display: table-row;\\n}\\n\\n.ag-menu-option-part, .ag-menu-separator-part {\\n  display: table-cell;\\n  vertical-align: middle;\\n}\\n\\n.ag-menu-option-text {\\n  white-space: nowrap;\\n}\\n\\n.ag-compact-menu-option {\\n  width: 100%;\\n  display: flex;\\n  flex-wrap: nowrap;\\n}\\n\\n.ag-compact-menu-option-text {\\n  white-space: nowrap;\\n  flex: 1 1 auto;\\n}\\n\\n.ag-rich-select {\\n  cursor: default;\\n  outline: none;\\n}\\n\\n.ag-rich-select-value {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-rich-select-value-icon {\\n  flex: 1 1 auto;\\n  order: 1;\\n}\\n.ag-ltr .ag-rich-select-value-icon {\\n  text-align: right;\\n}\\n.ag-rtl .ag-rich-select-value-icon {\\n  text-align: left;\\n}\\n\\n.ag-rich-select-list {\\n  position: relative;\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  display: flex;\\n}\\n\\n.ag-rich-select-row {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-paging-panel {\\n  align-items: center;\\n  display: flex;\\n  justify-content: flex-end;\\n}\\n\\n.ag-paging-page-summary-panel {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-paging-button {\\n  position: relative;\\n}\\n\\n.ag-disabled .ag-paging-page-summary-panel {\\n  pointer-events: none;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  display: flex;\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-column-select-column,\\n.ag-column-select-column-group,\\n.ag-select-agg-func-item {\\n  position: relative;\\n  align-items: center;\\n  display: flex;\\n  flex-direction: row;\\n  flex-wrap: nowrap;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n.ag-column-select-column > *,\\n.ag-column-select-column-group > *,\\n.ag-select-agg-func-item > * {\\n  flex: none;\\n}\\n\\n.ag-column-select-checkbox {\\n  display: flex;\\n}\\n\\n.ag-tool-panel-horizontal-resize {\\n  cursor: ew-resize;\\n  height: 100%;\\n  position: absolute;\\n  top: 0;\\n  width: 5px;\\n  z-index: 1;\\n}\\n\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n\\n.ag-details-row {\\n  width: 100%;\\n}\\n\\n.ag-details-row-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-details-grid {\\n  width: 100%;\\n}\\n\\n.ag-details-grid-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-header-group-cell {\\n  display: flex;\\n  align-items: center;\\n  height: 100%;\\n  position: absolute;\\n}\\n\\n.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize {\\n  display: none;\\n}\\n\\n.ag-cell-label-container {\\n  display: flex;\\n  justify-content: space-between;\\n  flex-direction: row-reverse;\\n  align-items: center;\\n  height: 100%;\\n  width: 100%;\\n  overflow: hidden;\\n  padding: 5px 0px;\\n}\\n\\n.ag-right-aligned-header .ag-cell-label-container {\\n  flex-direction: row;\\n}\\n.ag-right-aligned-header .ag-header-cell-text {\\n  text-align: end;\\n}\\n\\n.ag-side-bar {\\n  display: flex;\\n  flex-direction: row-reverse;\\n}\\n\\n.ag-side-bar-left {\\n  order: -1;\\n  flex-direction: row;\\n}\\n\\n.ag-side-button-button {\\n  position: relative;\\n  display: flex;\\n  flex-direction: column;\\n  align-items: center;\\n  justify-content: center;\\n  flex-wrap: nowrap;\\n  white-space: nowrap;\\n  outline: none;\\n  cursor: pointer;\\n}\\n\\n.ag-side-button-label {\\n  writing-mode: vertical-lr;\\n}\\n\\n.ag-status-bar {\\n  display: flex;\\n  justify-content: space-between;\\n  overflow: hidden;\\n}\\n\\n.ag-status-panel {\\n  display: inline-flex;\\n}\\n\\n.ag-status-name-value {\\n  white-space: nowrap;\\n}\\n\\n.ag-status-bar-left {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-center {\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-right {\\n  display: inline-flex;\\n}\\n\\n.ag-icon {\\n  display: block;\\n  speak: none;\\n}\\n\\n.ag-group {\\n  position: relative;\\n  width: 100%;\\n}\\n\\n.ag-group-title-bar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-title {\\n  display: block;\\n  flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-group-title-bar .ag-group-title {\\n  cursor: default;\\n}\\n\\n.ag-group-toolbar {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-group-container {\\n  display: flex;\\n}\\n\\n.ag-disabled .ag-group-container {\\n  pointer-events: none;\\n}\\n\\n.ag-group-container-horizontal {\\n  flex-direction: row;\\n  flex-wrap: wrap;\\n}\\n\\n.ag-group-container-vertical {\\n  flex-direction: column;\\n}\\n\\n.ag-column-group-icons {\\n  display: block;\\n}\\n.ag-column-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-group-item-alignment-stretch .ag-group-item {\\n  align-items: stretch;\\n}\\n\\n.ag-group-item-alignment-start .ag-group-item {\\n  align-items: flex-start;\\n}\\n\\n.ag-group-item-alignment-end .ag-group-item {\\n  align-items: flex-end;\\n}\\n\\n.ag-toggle-button-icon {\\n  transition: right 0.3s;\\n  position: absolute;\\n  top: -1px;\\n}\\n\\n.ag-input-field, .ag-select {\\n  display: flex;\\n  flex-direction: row;\\n  align-items: center;\\n}\\n\\n.ag-input-field-input {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input .ag-input-field-input[type=date] {\\n  width: 1px;\\n}\\n\\n.ag-range-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-angle-select-wrapper {\\n  display: flex;\\n}\\n\\n.ag-angle-select-parent-circle {\\n  display: block;\\n  position: relative;\\n}\\n\\n.ag-angle-select-child-circle {\\n  position: absolute;\\n}\\n\\n.ag-slider-wrapper {\\n  display: flex;\\n}\\n.ag-slider-wrapper .ag-input-field {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field-display {\\n  flex: 1 1 auto;\\n}\\n\\n.ag-picker-field {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-picker-field-icon {\\n  display: flex;\\n  border: 0;\\n  padding: 0;\\n  margin: 0;\\n  cursor: pointer;\\n}\\n\\n.ag-picker-field-wrapper {\\n  overflow: hidden;\\n}\\n\\n.ag-label-align-right .ag-label {\\n  order: 1;\\n}\\n.ag-label-align-right > * {\\n  flex: none;\\n}\\n\\n.ag-label-align-top {\\n  flex-direction: column;\\n  align-items: flex-start;\\n}\\n.ag-label-align-top > * {\\n  align-self: stretch;\\n}\\n\\n.ag-label-ellipsis {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  flex: 1;\\n}\\n\\n.ag-color-panel {\\n  width: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  text-align: center;\\n}\\n\\n.ag-spectrum-color {\\n  flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n  cursor: default;\\n}\\n\\n.ag-spectrum-fill {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-spectrum-val {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-dragger {\\n  position: absolute;\\n  pointer-events: none;\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-hue {\\n  cursor: default;\\n  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\\n}\\n\\n.ag-spectrum-alpha {\\n  cursor: default;\\n}\\n\\n.ag-spectrum-hue-background {\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-tool {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-slider {\\n  position: absolute;\\n  pointer-events: none;\\n}\\n\\n.ag-recent-colors {\\n  display: flex;\\n}\\n\\n.ag-recent-color {\\n  cursor: pointer;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr {\\n  direction: ltr;\\n}\\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\\n  flex-direction: row;\\n}\\n\\n.ag-rtl {\\n  direction: rtl;\\n}\\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\\n  flex-direction: row-reverse;\\n}\\n.ag-rtl .ag-icon-contracted,\\n.ag-rtl .ag-icon-expanded,\\n.ag-rtl .ag-icon-tree-closed {\\n  display: block;\\n  transform: rotate(180deg);\\n}\\n\\n.ag-body .ag-body-viewport {\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-layout-print.ag-body {\\n  display: block;\\n  height: unset;\\n}\\n.ag-layout-print.ag-body-clipper {\\n  height: unset;\\n}\\n.ag-layout-print.ag-root-wrapper {\\n  display: inline-flex;\\n}\\n.ag-layout-print .ag-center-cols-clipper {\\n  min-width: 100%;\\n}\\n.ag-layout-print .ag-body-vertical-scroll {\\n  display: none;\\n}\\n.ag-layout-print .ag-body-horizontal-scroll {\\n  display: none;\\n}\\n.ag-layout-print.ag-force-vertical-scroll {\\n  overflow-y: visible !important;\\n}\\n\\n@media print {\\n  .ag-root-wrapper.ag-layout-print {\\n    display: table;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\\n  .ag-root-wrapper.ag-layout-print .ag-root,\\n  .ag-root-wrapper.ag-layout-print .ag-body-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-center-cols-clipper,\\n  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\\n  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\\n    height: auto !important;\\n    overflow: hidden !important;\\n    display: block !important;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-row, .ag-root-wrapper.ag-layout-print .ag-cell {\\n    break-inside: avoid;\\n  }\\n}\\n[class^=ag-], [class^=ag-]:focus, [class^=ag-]:after, [class^=ag-]:before {\\n  box-sizing: border-box;\\n  outline: none;\\n}\\n\\n[class^=ag-]::-ms-clear {\\n  display: none;\\n}\\n\\n.ag-checkbox .ag-input-wrapper,\\n.ag-radio-button .ag-input-wrapper {\\n  overflow: visible;\\n}\\n\\n.ag-range-field .ag-input-wrapper {\\n  height: 100%;\\n}\\n\\n.ag-toggle-button {\\n  flex: none;\\n  width: unset;\\n  min-width: unset;\\n}\\n\\n.ag-ltr .ag-label-align-right .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label-align-right .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\ninput[class^=ag-] {\\n  margin: 0;\\n  background-color: var(--ag-background-color);\\n}\\n\\ntextarea[class^=ag-],\\nselect[class^=ag-] {\\n  background-color: var(--ag-background-color);\\n}\\n\\ninput[class^=ag-]:not([type]),\\ninput[class^=ag-][type=text],\\ninput[class^=ag-][type=number],\\ninput[class^=ag-][type=tel],\\ninput[class^=ag-][type=date],\\ninput[class^=ag-][type=datetime-local],\\ntextarea[class^=ag-] {\\n  font-size: inherit;\\n  line-height: inherit;\\n  color: inherit;\\n  border: var(--ag-borders-input) var(--ag-input-border-color);\\n}\\ninput[class^=ag-]:not([type]):disabled,\\ninput[class^=ag-][type=text]:disabled,\\ninput[class^=ag-][type=number]:disabled,\\ninput[class^=ag-][type=tel]:disabled,\\ninput[class^=ag-][type=date]:disabled,\\ninput[class^=ag-][type=datetime-local]:disabled,\\ntextarea[class^=ag-]:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\ninput[class^=ag-]:not([type]):focus,\\ninput[class^=ag-][type=text]:focus,\\ninput[class^=ag-][type=number]:focus,\\ninput[class^=ag-][type=tel]:focus,\\ninput[class^=ag-][type=date]:focus,\\ninput[class^=ag-][type=datetime-local]:focus,\\ntextarea[class^=ag-]:focus {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-]:not([type]):invalid,\\ninput[class^=ag-][type=text]:invalid,\\ninput[class^=ag-][type=number]:invalid,\\ninput[class^=ag-][type=tel]:invalid,\\ninput[class^=ag-][type=date]:invalid,\\ninput[class^=ag-][type=datetime-local]:invalid,\\ntextarea[class^=ag-]:invalid {\\n  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);\\n}\\n\\ninput[class^=ag-][type=number] {\\n  -moz-appearance: textfield;\\n}\\ninput[class^=ag-][type=number]::-webkit-outer-spin-button, input[class^=ag-][type=number]::-webkit-inner-spin-button {\\n  -webkit-appearance: none;\\n  margin: 0;\\n}\\n\\ninput[class^=ag-][type=range] {\\n  padding: 0;\\n}\\n\\ninput[class^=ag-][type=button]:focus, button[class^=ag-]:focus {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-drag-handle {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-list-item, .ag-virtual-list-item {\\n  height: var(--ag-list-item-height);\\n}\\n\\n.ag-keyboard-focus .ag-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-select-list {\\n  background-color: var(--ag-background-color);\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n}\\n\\n.ag-list-item {\\n  display: flex;\\n  align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-list-item.ag-active-item {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-select-list-item {\\n  padding-left: 4px;\\n  padding-right: 4px;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n.ag-select-list-item span {\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n  overflow: hidden;\\n}\\n\\n.ag-select .ag-picker-field-wrapper {\\n  background-color: var(--ag-background-color);\\n  min-height: var(--ag-list-item-height);\\n  cursor: default;\\n}\\n.ag-select.ag-disabled .ag-picker-field-wrapper:focus {\\n  box-shadow: none;\\n}\\n.ag-select:not(.ag-cell-editor, .ag-label-align-top) {\\n  height: var(--ag-list-item-height);\\n}\\n.ag-select .ag-picker-field-display {\\n  margin: 4px;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-select .ag-picker-field-icon {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-select.ag-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-rich-select {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-rich-select-list {\\n  width: 100%;\\n  min-width: 200px;\\n  height: calc(var(--ag-row-height) * 6.5);\\n}\\n\\n.ag-rich-select-value {\\n  height: var(--ag-row-height);\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  padding-top: 0;\\n  padding-bottom: 0;\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-ltr .ag-rich-select-value {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-rich-select-value {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  cursor: default;\\n  height: var(--ag-list-item-height);\\n}\\n.ag-keyboard-focus .ag-rich-select-virtual-list-item:focus::after {\\n  content: none;\\n}\\n.ag-rich-select-virtual-list-item:hover {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-ltr .ag-rich-select-row {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-rich-select-row {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-rich-select-row-selected {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-row-drag,\\n.ag-selection-checkbox,\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-ltr .ag-row-drag,\\n.ag-ltr .ag-selection-checkbox,\\n.ag-ltr .ag-group-expanded,\\n.ag-ltr .ag-group-contracted {\\n  margin-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-row-drag,\\n.ag-rtl .ag-selection-checkbox,\\n.ag-rtl .ag-group-expanded,\\n.ag-rtl .ag-group-contracted {\\n  margin-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  display: flex;\\n  align-items: center;\\n  flex: none;\\n}\\n\\n.ag-group-expanded,\\n.ag-group-contracted {\\n  cursor: pointer;\\n}\\n\\n.ag-group-title-bar-icon {\\n  cursor: pointer;\\n  flex: none;\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-ltr .ag-group-child-count {\\n  margin-left: 2px;\\n}\\n.ag-rtl .ag-group-child-count {\\n  margin-right: 2px;\\n}\\n\\n.ag-group-title-bar {\\n  background-color: var(--ag-subheader-background-color);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-group-toolbar {\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-subheader-toolbar-background-color);\\n}\\n\\n.ag-disabled-group-title-bar, .ag-disabled-group-container {\\n  opacity: 0.5;\\n}\\n\\n.group-item {\\n  margin: calc(var(--ag-grid-size) * 0.5) 0;\\n}\\n\\n.ag-label {\\n  white-space: nowrap;\\n}\\n.ag-ltr .ag-label {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-label {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-label-align-top .ag-label {\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-angle-select[disabled] {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n.ag-angle-select[disabled] .ag-angle-select-field {\\n  opacity: 0.4;\\n}\\n\\n.ag-ltr .ag-slider-field,\\n.ag-ltr .ag-angle-select-field {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-slider-field,\\n.ag-rtl .ag-angle-select-field {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-angle-select-parent-circle {\\n  width: 24px;\\n  height: 24px;\\n  border-radius: 12px;\\n  border: solid 1px;\\n  border-color: var(--ag-border-color);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-angle-select-child-circle {\\n  top: 4px;\\n  left: 12px;\\n  width: 6px;\\n  height: 6px;\\n  margin-left: -3px;\\n  margin-top: -4px;\\n  border-radius: 3px;\\n  background-color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-picker-field-wrapper {\\n  border: 1px solid;\\n  border-color: var(--ag-border-color);\\n  border-radius: 5px;\\n}\\n.ag-picker-field-wrapper:focus {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n\\n.ag-picker-field-button {\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-dialog.ag-color-dialog {\\n  border-radius: 5px;\\n}\\n\\n.ag-color-picker .ag-picker-field-display {\\n  height: var(--ag-icon-size);\\n}\\n\\n.ag-color-panel {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-spectrum-color {\\n  background-color: rgb(255, 0, 0);\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tools {\\n  padding: 10px;\\n}\\n\\n.ag-spectrum-sat {\\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-val {\\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\\n}\\n\\n.ag-spectrum-dragger {\\n  border-radius: 12px;\\n  height: 12px;\\n  width: 12px;\\n  border: 1px solid white;\\n  background: black;\\n  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n}\\n\\n.ag-spectrum-hue-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-tool {\\n  margin-bottom: 10px;\\n  height: 11px;\\n  border-radius: 2px;\\n}\\n\\n.ag-spectrum-slider {\\n  margin-top: -12px;\\n  width: 13px;\\n  height: 13px;\\n  border-radius: 13px;\\n  background-color: rgb(248, 248, 248);\\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n}\\n\\n.ag-recent-color {\\n  margin: 0 3px;\\n}\\n.ag-recent-color:first-child {\\n  margin-left: 0;\\n}\\n.ag-recent-color:last-child {\\n  margin-right: 0;\\n}\\n\\n.ag-dnd-ghost {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height) !important;\\n  line-height: var(--ag-header-height);\\n  margin: 0;\\n  padding: 0 calc(var(--ag-grid-size) * 2);\\n  transform: translateY(calc(var(--ag-grid-size) * 2));\\n}\\n\\n.ag-dnd-ghost-icon {\\n  margin-right: var(--ag-grid-size);\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-popup-child:not(.ag-tooltip-custom) {\\n  box-shadow: var(--ag-popup-shadow);\\n}\\n\\n.ag-dragging-range-handle .ag-dialog,\\n.ag-dragging-fill-handle .ag-dialog {\\n  opacity: 0.7;\\n  pointer-events: none;\\n}\\n\\n.ag-dialog {\\n  border-radius: var(--ag-border-radius);\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-panel {\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-panel-title-bar {\\n  background-color: var(--ag-header-background-color);\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-panel-title-bar-button {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-panel-title-bar-button {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-tooltip {\\n  background-color: var(--ag-tooltip-background-color);\\n  color: var(--ag-foreground-color);\\n  padding: var(--ag-grid-size);\\n  border: var(--ag-borders) var(--ag-border-color);\\n  border-radius: var(--ag-card-radius);\\n  transition: opacity 1s;\\n  white-space: normal;\\n}\\n.ag-tooltip.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n\\n.ag-tooltip-custom {\\n  transition: opacity 1s;\\n}\\n.ag-tooltip-custom.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: calc(1 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: calc(1 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: calc(2 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: calc(2 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: calc(3 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: calc(3 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: calc(4 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: calc(4 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: calc(5 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: calc(5 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: calc(6 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: calc(6 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: calc(7 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: calc(7 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: calc(8 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: calc(8 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: calc(9 * var(--ag-column-select-indent-size));\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: calc(9 * var(--ag-column-select-indent-size));\\n}\\n\\n.ag-column-select-header-icon {\\n  cursor: pointer;\\n}\\n\\n.ag-keyboard-focus .ag-column-select-header-icon:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-header-icon:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-ltr .ag-column-group-icons:not(:last-child),\\n.ag-ltr .ag-column-select-header-icon:not(:last-child),\\n.ag-ltr .ag-column-select-header-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-ltr .ag-column-select-checkbox:not(:last-child),\\n.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-ltr .ag-column-select-column-label:not(:last-child) {\\n  margin-right: var(--ag-widget-horizontal-spacing);\\n}\\n.ag-rtl .ag-column-group-icons:not(:last-child),\\n.ag-rtl .ag-column-select-header-icon:not(:last-child),\\n.ag-rtl .ag-column-select-header-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),\\n.ag-rtl .ag-column-select-checkbox:not(:last-child),\\n.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),\\n.ag-rtl .ag-column-select-column-label:not(:last-child) {\\n  margin-left: var(--ag-widget-horizontal-spacing);\\n}\\n\\n.ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-column-group:not(:last-child),\\n.ag-column-select-column:not(:last-child) {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-column-select-column-readonly,\\n.ag-column-select-column-group-readonly {\\n  color: var(--ag-disabled-foreground-color);\\n  pointer-events: none;\\n}\\n\\n.ag-ltr .ag-column-select-add-group-indent {\\n  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-column-select-add-group-indent {\\n  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-select-virtual-list-viewport {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;\\n}\\n\\n.ag-column-select-virtual-list-item {\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-rtl {\\n  text-align: right;\\n}\\n\\n.ag-root-wrapper {\\n  border: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: calc(1 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: calc(1 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: calc(2 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: calc(2 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: calc(3 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: calc(3 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: calc(4 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: calc(4 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: calc(5 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: calc(5 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: calc(6 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: calc(6 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: calc(7 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: calc(7 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: calc(8 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: calc(8 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: calc(9 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: calc(9 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\\n}\\n\\n.ag-ltr .ag-row-group-indent-10 {\\n  padding-left: calc(10 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-10 {\\n  padding-right: calc(10 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\\n}\\n\\n.ag-ltr .ag-row-group-indent-11 {\\n  padding-left: calc(11 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-11 {\\n  padding-right: calc(11 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\\n}\\n\\n.ag-ltr .ag-row-group-indent-12 {\\n  padding-left: calc(12 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-12 {\\n  padding-right: calc(12 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\\n}\\n\\n.ag-ltr .ag-row-group-indent-13 {\\n  padding-left: calc(13 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-13 {\\n  padding-right: calc(13 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\\n}\\n\\n.ag-ltr .ag-row-group-indent-14 {\\n  padding-left: calc(14 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-14 {\\n  padding-right: calc(14 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\\n}\\n\\n.ag-ltr .ag-row-group-indent-15 {\\n  padding-left: calc(15 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-15 {\\n  padding-right: calc(15 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\\n}\\n\\n.ag-ltr .ag-row-group-indent-16 {\\n  padding-left: calc(16 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-16 {\\n  padding-right: calc(16 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\\n}\\n\\n.ag-ltr .ag-row-group-indent-17 {\\n  padding-left: calc(17 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-17 {\\n  padding-right: calc(17 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\\n}\\n\\n.ag-ltr .ag-row-group-indent-18 {\\n  padding-left: calc(18 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-18 {\\n  padding-right: calc(18 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\\n}\\n\\n.ag-ltr .ag-row-group-indent-19 {\\n  padding-left: calc(19 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-19 {\\n  padding-right: calc(19 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\\n}\\n\\n.ag-ltr .ag-row-group-indent-20 {\\n  padding-left: calc(20 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-20 {\\n  padding-right: calc(20 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\\n}\\n\\n.ag-ltr .ag-row-group-indent-21 {\\n  padding-left: calc(21 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-21 {\\n  padding-right: calc(21 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\\n}\\n\\n.ag-ltr .ag-row-group-indent-22 {\\n  padding-left: calc(22 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-22 {\\n  padding-right: calc(22 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\\n}\\n\\n.ag-ltr .ag-row-group-indent-23 {\\n  padding-left: calc(23 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-23 {\\n  padding-right: calc(23 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\\n}\\n\\n.ag-ltr .ag-row-group-indent-24 {\\n  padding-left: calc(24 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-24 {\\n  padding-right: calc(24 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\\n}\\n\\n.ag-ltr .ag-row-group-indent-25 {\\n  padding-left: calc(25 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-25 {\\n  padding-right: calc(25 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\\n}\\n\\n.ag-ltr .ag-row-group-indent-26 {\\n  padding-left: calc(26 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-26 {\\n  padding-right: calc(26 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\\n}\\n\\n.ag-ltr .ag-row-group-indent-27 {\\n  padding-left: calc(27 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-27 {\\n  padding-right: calc(27 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\\n}\\n\\n.ag-ltr .ag-row-group-indent-28 {\\n  padding-left: calc(28 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-28 {\\n  padding-right: calc(28 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\\n}\\n\\n.ag-ltr .ag-row-group-indent-29 {\\n  padding-left: calc(29 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-29 {\\n  padding-right: calc(29 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\\n}\\n\\n.ag-ltr .ag-row-group-indent-30 {\\n  padding-left: calc(30 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-30 {\\n  padding-right: calc(30 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\\n}\\n\\n.ag-ltr .ag-row-group-indent-31 {\\n  padding-left: calc(31 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-31 {\\n  padding-right: calc(31 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\\n}\\n\\n.ag-ltr .ag-row-group-indent-32 {\\n  padding-left: calc(32 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-32 {\\n  padding-right: calc(32 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\\n}\\n\\n.ag-ltr .ag-row-group-indent-33 {\\n  padding-left: calc(33 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-33 {\\n  padding-right: calc(33 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\\n}\\n\\n.ag-ltr .ag-row-group-indent-34 {\\n  padding-left: calc(34 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-34 {\\n  padding-right: calc(34 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\\n}\\n\\n.ag-ltr .ag-row-group-indent-35 {\\n  padding-left: calc(35 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-35 {\\n  padding-right: calc(35 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\\n}\\n\\n.ag-ltr .ag-row-group-indent-36 {\\n  padding-left: calc(36 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-36 {\\n  padding-right: calc(36 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\\n}\\n\\n.ag-ltr .ag-row-group-indent-37 {\\n  padding-left: calc(37 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-37 {\\n  padding-right: calc(37 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\\n}\\n\\n.ag-ltr .ag-row-group-indent-38 {\\n  padding-left: calc(38 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-38 {\\n  padding-right: calc(38 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\\n}\\n\\n.ag-ltr .ag-row-group-indent-39 {\\n  padding-left: calc(39 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-39 {\\n  padding-right: calc(39 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\\n}\\n\\n.ag-ltr .ag-row-group-indent-40 {\\n  padding-left: calc(40 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-40 {\\n  padding-right: calc(40 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\\n}\\n\\n.ag-ltr .ag-row-group-indent-41 {\\n  padding-left: calc(41 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-41 {\\n  padding-right: calc(41 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\\n}\\n\\n.ag-ltr .ag-row-group-indent-42 {\\n  padding-left: calc(42 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-42 {\\n  padding-right: calc(42 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\\n}\\n\\n.ag-ltr .ag-row-group-indent-43 {\\n  padding-left: calc(43 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-43 {\\n  padding-right: calc(43 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\\n}\\n\\n.ag-ltr .ag-row-group-indent-44 {\\n  padding-left: calc(44 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-44 {\\n  padding-right: calc(44 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\\n}\\n\\n.ag-ltr .ag-row-group-indent-45 {\\n  padding-left: calc(45 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-45 {\\n  padding-right: calc(45 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\\n}\\n\\n.ag-ltr .ag-row-group-indent-46 {\\n  padding-left: calc(46 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-46 {\\n  padding-right: calc(46 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\\n}\\n\\n.ag-ltr .ag-row-group-indent-47 {\\n  padding-left: calc(47 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-47 {\\n  padding-right: calc(47 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\\n}\\n\\n.ag-ltr .ag-row-group-indent-48 {\\n  padding-left: calc(48 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-48 {\\n  padding-right: calc(48 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\\n}\\n\\n.ag-ltr .ag-row-group-indent-49 {\\n  padding-left: calc(49 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-49 {\\n  padding-right: calc(49 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\\n}\\n\\n.ag-ltr .ag-row-group-indent-50 {\\n  padding-left: calc(50 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-50 {\\n  padding-right: calc(50 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\\n}\\n\\n.ag-ltr .ag-row-group-indent-51 {\\n  padding-left: calc(51 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-51 {\\n  padding-right: calc(51 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\\n}\\n\\n.ag-ltr .ag-row-group-indent-52 {\\n  padding-left: calc(52 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-52 {\\n  padding-right: calc(52 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\\n}\\n\\n.ag-ltr .ag-row-group-indent-53 {\\n  padding-left: calc(53 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-53 {\\n  padding-right: calc(53 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\\n}\\n\\n.ag-ltr .ag-row-group-indent-54 {\\n  padding-left: calc(54 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-54 {\\n  padding-right: calc(54 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\\n}\\n\\n.ag-ltr .ag-row-group-indent-55 {\\n  padding-left: calc(55 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-55 {\\n  padding-right: calc(55 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\\n}\\n\\n.ag-ltr .ag-row-group-indent-56 {\\n  padding-left: calc(56 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-56 {\\n  padding-right: calc(56 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\\n}\\n\\n.ag-ltr .ag-row-group-indent-57 {\\n  padding-left: calc(57 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-57 {\\n  padding-right: calc(57 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\\n}\\n\\n.ag-ltr .ag-row-group-indent-58 {\\n  padding-left: calc(58 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-58 {\\n  padding-right: calc(58 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\\n}\\n\\n.ag-ltr .ag-row-group-indent-59 {\\n  padding-left: calc(59 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-59 {\\n  padding-right: calc(59 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\\n}\\n\\n.ag-ltr .ag-row-group-indent-60 {\\n  padding-left: calc(60 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-60 {\\n  padding-right: calc(60 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\\n}\\n\\n.ag-ltr .ag-row-group-indent-61 {\\n  padding-left: calc(61 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-61 {\\n  padding-right: calc(61 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\\n}\\n\\n.ag-ltr .ag-row-group-indent-62 {\\n  padding-left: calc(62 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-62 {\\n  padding-right: calc(62 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\\n}\\n\\n.ag-ltr .ag-row-group-indent-63 {\\n  padding-left: calc(63 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-63 {\\n  padding-right: calc(63 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\\n}\\n\\n.ag-ltr .ag-row-group-indent-64 {\\n  padding-left: calc(64 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-64 {\\n  padding-right: calc(64 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\\n}\\n\\n.ag-ltr .ag-row-group-indent-65 {\\n  padding-left: calc(65 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-65 {\\n  padding-right: calc(65 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\\n}\\n\\n.ag-ltr .ag-row-group-indent-66 {\\n  padding-left: calc(66 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-66 {\\n  padding-right: calc(66 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\\n}\\n\\n.ag-ltr .ag-row-group-indent-67 {\\n  padding-left: calc(67 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-67 {\\n  padding-right: calc(67 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\\n}\\n\\n.ag-ltr .ag-row-group-indent-68 {\\n  padding-left: calc(68 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-68 {\\n  padding-right: calc(68 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\\n}\\n\\n.ag-ltr .ag-row-group-indent-69 {\\n  padding-left: calc(69 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-69 {\\n  padding-right: calc(69 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\\n}\\n\\n.ag-ltr .ag-row-group-indent-70 {\\n  padding-left: calc(70 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-70 {\\n  padding-right: calc(70 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\\n}\\n\\n.ag-ltr .ag-row-group-indent-71 {\\n  padding-left: calc(71 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-71 {\\n  padding-right: calc(71 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\\n}\\n\\n.ag-ltr .ag-row-group-indent-72 {\\n  padding-left: calc(72 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-72 {\\n  padding-right: calc(72 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\\n}\\n\\n.ag-ltr .ag-row-group-indent-73 {\\n  padding-left: calc(73 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-73 {\\n  padding-right: calc(73 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\\n}\\n\\n.ag-ltr .ag-row-group-indent-74 {\\n  padding-left: calc(74 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-74 {\\n  padding-right: calc(74 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\\n}\\n\\n.ag-ltr .ag-row-group-indent-75 {\\n  padding-left: calc(75 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-75 {\\n  padding-right: calc(75 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\\n}\\n\\n.ag-ltr .ag-row-group-indent-76 {\\n  padding-left: calc(76 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-76 {\\n  padding-right: calc(76 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\\n}\\n\\n.ag-ltr .ag-row-group-indent-77 {\\n  padding-left: calc(77 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-77 {\\n  padding-right: calc(77 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\\n}\\n\\n.ag-ltr .ag-row-group-indent-78 {\\n  padding-left: calc(78 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-78 {\\n  padding-right: calc(78 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\\n}\\n\\n.ag-ltr .ag-row-group-indent-79 {\\n  padding-left: calc(79 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-79 {\\n  padding-right: calc(79 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\\n}\\n\\n.ag-ltr .ag-row-group-indent-80 {\\n  padding-left: calc(80 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-80 {\\n  padding-right: calc(80 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\\n}\\n\\n.ag-ltr .ag-row-group-indent-81 {\\n  padding-left: calc(81 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-81 {\\n  padding-right: calc(81 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\\n}\\n\\n.ag-ltr .ag-row-group-indent-82 {\\n  padding-left: calc(82 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-82 {\\n  padding-right: calc(82 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\\n}\\n\\n.ag-ltr .ag-row-group-indent-83 {\\n  padding-left: calc(83 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-83 {\\n  padding-right: calc(83 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\\n}\\n\\n.ag-ltr .ag-row-group-indent-84 {\\n  padding-left: calc(84 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-84 {\\n  padding-right: calc(84 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\\n}\\n\\n.ag-ltr .ag-row-group-indent-85 {\\n  padding-left: calc(85 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-85 {\\n  padding-right: calc(85 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\\n}\\n\\n.ag-ltr .ag-row-group-indent-86 {\\n  padding-left: calc(86 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-86 {\\n  padding-right: calc(86 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\\n}\\n\\n.ag-ltr .ag-row-group-indent-87 {\\n  padding-left: calc(87 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-87 {\\n  padding-right: calc(87 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\\n}\\n\\n.ag-ltr .ag-row-group-indent-88 {\\n  padding-left: calc(88 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-88 {\\n  padding-right: calc(88 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\\n}\\n\\n.ag-ltr .ag-row-group-indent-89 {\\n  padding-left: calc(89 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-89 {\\n  padding-right: calc(89 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\\n}\\n\\n.ag-ltr .ag-row-group-indent-90 {\\n  padding-left: calc(90 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-90 {\\n  padding-right: calc(90 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\\n}\\n\\n.ag-ltr .ag-row-group-indent-91 {\\n  padding-left: calc(91 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-91 {\\n  padding-right: calc(91 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\\n}\\n\\n.ag-ltr .ag-row-group-indent-92 {\\n  padding-left: calc(92 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-92 {\\n  padding-right: calc(92 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\\n}\\n\\n.ag-ltr .ag-row-group-indent-93 {\\n  padding-left: calc(93 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-93 {\\n  padding-right: calc(93 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\\n}\\n\\n.ag-ltr .ag-row-group-indent-94 {\\n  padding-left: calc(94 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-94 {\\n  padding-right: calc(94 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\\n}\\n\\n.ag-ltr .ag-row-group-indent-95 {\\n  padding-left: calc(95 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-95 {\\n  padding-right: calc(95 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\\n}\\n\\n.ag-ltr .ag-row-group-indent-96 {\\n  padding-left: calc(96 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-96 {\\n  padding-right: calc(96 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\\n}\\n\\n.ag-ltr .ag-row-group-indent-97 {\\n  padding-left: calc(97 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-97 {\\n  padding-right: calc(97 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\\n}\\n\\n.ag-ltr .ag-row-group-indent-98 {\\n  padding-left: calc(98 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-98 {\\n  padding-right: calc(98 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\\n}\\n\\n.ag-ltr .ag-row-group-indent-99 {\\n  padding-left: calc(99 * var(--ag-row-group-indent-size));\\n}\\n.ag-rtl .ag-row-group-indent-99 {\\n  padding-right: calc(99 * var(--ag-row-group-indent-size));\\n}\\n\\n.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-ltr .ag-row-group-leaf-indent {\\n  margin-left: var(--ag-row-group-indent-size);\\n}\\n.ag-rtl .ag-row-group-leaf-indent {\\n  margin-right: var(--ag-row-group-indent-size);\\n}\\n\\n.ag-value-change-delta {\\n  padding-right: 2px;\\n}\\n\\n.ag-value-change-delta-up {\\n  color: var(--ag-value-change-delta-up-color);\\n}\\n\\n.ag-value-change-delta-down {\\n  color: var(--ag-value-change-delta-down-color);\\n}\\n\\n.ag-value-change-value {\\n  background-color: transparent;\\n  border-radius: 1px;\\n  padding-left: 1px;\\n  padding-right: 1px;\\n  transition: background-color 1s;\\n}\\n\\n.ag-value-change-value-highlight {\\n  background-color: var(--ag-value-change-value-highlight-background-color);\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-cell-data-changed {\\n  background-color: var(--ag-value-change-value-highlight-background-color) !important;\\n}\\n\\n.ag-cell-data-changed-animation {\\n  background-color: transparent;\\n}\\n\\n.ag-cell-highlight {\\n  background-color: var(--ag-range-selection-highlight-color) !important;\\n}\\n\\n.ag-row {\\n  height: var(--ag-row-height);\\n  background-color: var(--ag-background-color);\\n  color: var(--ag-data-color);\\n  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);\\n}\\n\\n.ag-row-highlight-above::after, .ag-row-highlight-below::after {\\n  content: \"\";\\n  position: absolute;\\n  width: calc(100% - 1px);\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n  left: 1px;\\n}\\n\\n.ag-row-highlight-above::after {\\n  top: -1px;\\n}\\n\\n.ag-row-highlight-above.ag-row-first::after {\\n  top: 0;\\n}\\n\\n.ag-row-highlight-below::after {\\n  bottom: 0px;\\n}\\n\\n.ag-row-odd {\\n  background-color: var(--ag-odd-row-background-color);\\n}\\n\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-row-selected::before {\\n  content: \"\";\\n  background-color: var(--ag-selected-row-background-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-row-hover:not(.ag-full-width-row)::before,\\n.ag-row-hover.ag-full-width-row.ag-row-group::before {\\n  content: \"\";\\n  background-color: var(--ag-row-hover-color);\\n  display: block;\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-row-hover.ag-full-width-row.ag-row-group > * {\\n  position: relative;\\n}\\n\\n.ag-row-hover.ag-row-selected::before {\\n  background-color: var(--ag-row-hover-color);\\n  background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));\\n}\\n\\n.ag-column-hover {\\n  background-color: var(--ag-column-hover-color);\\n}\\n\\n.ag-ltr .ag-right-aligned-cell {\\n  text-align: right;\\n}\\n.ag-rtl .ag-right-aligned-cell {\\n  text-align: left;\\n}\\n\\n.ag-ltr .ag-right-aligned-cell .ag-cell-value,\\n.ag-ltr .ag-right-aligned-cell .ag-group-value {\\n  margin-left: auto;\\n}\\n.ag-rtl .ag-right-aligned-cell .ag-cell-value,\\n.ag-rtl .ag-right-aligned-cell .ag-group-value {\\n  margin-right: auto;\\n}\\n\\n.ag-cell, .ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\\n  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\\n  border: 1px solid transparent;\\n  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  -webkit-font-smoothing: subpixel-antialiased;\\n}\\n\\n.ag-row > .ag-cell-wrapper {\\n  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\\n  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\\n}\\n\\n.ag-row-dragging {\\n  cursor: move;\\n  opacity: 0.5;\\n}\\n\\n.ag-cell-inline-editing {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  padding: 0;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-popup-editor {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background-color: var(--ag-control-panel-background-color);\\n  padding: 0;\\n}\\n\\n.ag-large-text-input {\\n  height: auto;\\n  padding: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-rtl .ag-large-text-input textarea {\\n  resize: none;\\n}\\n\\n.ag-details-row {\\n  padding: calc(var(--ag-grid-size) * 5);\\n  background-color: var(--ag-background-color);\\n}\\n\\n.ag-layout-auto-height .ag-center-cols-clipper, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-clipper, .ag-layout-print .ag-center-cols-container {\\n  min-height: 50px;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  background-color: var(--ag-modal-overlay-background-color);\\n}\\n\\n.ag-overlay-loading-center {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 30px;\\n}\\n\\n.ag-loading {\\n  display: flex;\\n  height: 100%;\\n  align-items: center;\\n}\\n.ag-ltr .ag-loading {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-loading {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-loading-icon {\\n  padding-right: var(--ag-cell-widget-spacing);\\n}\\n.ag-rtl .ag-loading-icon {\\n  padding-left: var(--ag-cell-widget-spacing);\\n}\\n\\n.ag-icon-loading {\\n  animation-name: spin;\\n  animation-duration: 1000ms;\\n  animation-iteration-count: infinite;\\n  animation-timing-function: linear;\\n}\\n\\n@keyframes spin {\\n  from {\\n    transform: rotate(0deg);\\n  }\\n  to {\\n    transform: rotate(360deg);\\n  }\\n}\\n.ag-floating-top {\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-floating-bottom {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-cell {\\n  border-right: var(--ag-cell-horizontal-border);\\n}\\n.ag-rtl .ag-cell {\\n  border-left: var(--ag-cell-horizontal-border);\\n}\\n.ag-ltr .ag-cell {\\n  border-right-width: 1px;\\n}\\n.ag-rtl .ag-cell {\\n  border-left-width: 1px;\\n}\\n\\n.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-cell-range-selected:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\\n  background-color: var(--ag-range-selection-chart-background-color) !important;\\n}\\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\\n  background-color: var(--ag-range-selection-chart-category-background-color) !important;\\n}\\n\\n.ag-cell-range-selected-1:not(.ag-cell-focus),\\n.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\\n  background-color: var(--ag-range-selection-background-color);\\n}\\n\\n.ag-cell-range-selected-2:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\\n  background-color: var(--ag-range-selection-background-color-2);\\n}\\n\\n.ag-cell-range-selected-3:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\\n  background-color: var(--ag-range-selection-background-color-3);\\n}\\n\\n.ag-cell-range-selected-4:not(.ag-cell-focus),\\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\\n  background-color: var(--ag-range-selection-background-color-4);\\n}\\n\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\\n  border-top-color: var(--ag-range-selection-border-color);\\n  border-top-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\\n  border-right-color: var(--ag-range-selection-border-color);\\n  border-right-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n  border-bottom-style: var(--ag-range-selection-border-style);\\n}\\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\\n  border-left-color: var(--ag-range-selection-border-color);\\n  border-left-style: var(--ag-range-selection-border-style);\\n}\\n\\n.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-ltr .ag-cell-range-single-cell,\\n.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\\n.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\\n.ag-rtl .ag-cell-range-single-cell,\\n.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\\n  border: 1px solid;\\n  border-color: var(--ag-range-selection-border-color);\\n  border-style: var(--ag-range-selection-border-style);\\n  outline: initial;\\n}\\n\\n.ag-cell.ag-selection-fill-top,\\n.ag-cell.ag-selection-fill-top.ag-cell-range-selected {\\n  border-top: 1px dashed;\\n  border-top-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-right,\\n.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-right,\\n.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-cell.ag-selection-fill-bottom,\\n.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\\n  border-bottom: 1px dashed;\\n  border-bottom-color: var(--ag-range-selection-border-color);\\n}\\n\\n.ag-ltr .ag-cell.ag-selection-fill-left,\\n.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-left: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n.ag-rtl .ag-cell.ag-selection-fill-left,\\n.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-right: 1px dashed var(--ag-range-selection-border-color) !important;\\n}\\n\\n.ag-fill-handle, .ag-range-handle {\\n  position: absolute;\\n  width: 6px;\\n  height: 6px;\\n  bottom: -1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-ltr .ag-fill-handle, .ag-ltr .ag-range-handle {\\n  right: -1px;\\n}\\n.ag-rtl .ag-fill-handle, .ag-rtl .ag-range-handle {\\n  left: -1px;\\n}\\n\\n.ag-fill-handle {\\n  cursor: cell;\\n}\\n\\n.ag-range-handle {\\n  cursor: nwse-resize;\\n}\\n\\n.ag-cell-inline-editing {\\n  border-color: var(--ag-input-focus-border-color) !important;\\n}\\n\\n.ag-menu {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  padding: 0;\\n}\\n\\n.ag-menu-list {\\n  cursor: default;\\n  padding: var(--ag-grid-size) 0;\\n}\\n\\n.ag-menu-separator {\\n  height: calc(var(--ag-grid-size) * 2 + 1px);\\n}\\n\\n.ag-menu-separator-part::after {\\n  content: \"\";\\n  display: block;\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-menu-option-active, .ag-compact-menu-option-active {\\n  background-color: var(--ag-row-hover-color);\\n}\\n\\n.ag-menu-option-part, .ag-compact-menu-option-part {\\n  line-height: var(--ag-icon-size);\\n  padding: calc(var(--ag-grid-size) + 2px) 0;\\n}\\n\\n.ag-menu-option-disabled, .ag-compact-menu-option-disabled {\\n  opacity: 0.5;\\n}\\n\\n.ag-menu-option-icon, .ag-compact-menu-option-icon {\\n  width: var(--ag-icon-size);\\n}\\n.ag-ltr .ag-menu-option-icon, .ag-ltr .ag-compact-menu-option-icon {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-menu-option-icon, .ag-rtl .ag-compact-menu-option-icon {\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-menu-option-text, .ag-compact-menu-option-text {\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n  padding-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-menu-option-shortcut, .ag-ltr .ag-compact-menu-option-shortcut {\\n  padding-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-menu-option-shortcut, .ag-rtl .ag-compact-menu-option-shortcut {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-menu-option-popup-pointer, .ag-compact-menu-option-popup-pointer {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-tabs {\\n  min-width: var(--ag-tab-min-width);\\n}\\n\\n.ag-tabs-header {\\n  width: 100%;\\n  display: flex;\\n}\\n\\n.ag-tab {\\n  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);\\n  display: flex;\\n  flex: none;\\n  align-items: center;\\n  justify-content: center;\\n  cursor: pointer;\\n}\\n\\n.ag-keyboard-focus .ag-tab:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-tab:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-tab-selected {\\n  border-bottom-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-menu-header {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-filter-separator {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-filter-select .ag-picker-field-wrapper {\\n  width: 0;\\n}\\n\\n.ag-filter-condition-operator {\\n  height: 17px;\\n}\\n\\n.ag-ltr .ag-filter-condition-operator-or {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-condition-operator-or {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-set-filter-select-all {\\n  padding-top: var(--ag-widget-container-vertical-padding);\\n}\\n\\n.ag-set-filter-list, .ag-filter-no-matches {\\n  height: calc(var(--ag-list-item-height) * 6);\\n}\\n\\n.ag-set-filter-tree-list {\\n  height: calc(var(--ag-list-item-height) * 10);\\n}\\n\\n.ag-set-filter-filter {\\n  margin-top: var(--ag-widget-container-vertical-padding);\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-to {\\n  margin-top: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-mini-filter {\\n  margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-set-filter-item {\\n  margin: 0px var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-set-filter-add-group-indent {\\n  margin-left: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-set-filter-add-group-indent {\\n  margin-right: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-icon-size) + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-set-filter-indent-1 {\\n  padding-left: calc(1 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-1 {\\n  padding-right: calc(1 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-2 {\\n  padding-left: calc(2 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-2 {\\n  padding-right: calc(2 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-3 {\\n  padding-left: calc(3 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-3 {\\n  padding-right: calc(3 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-4 {\\n  padding-left: calc(4 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-4 {\\n  padding-right: calc(4 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-5 {\\n  padding-left: calc(5 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-5 {\\n  padding-right: calc(5 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-6 {\\n  padding-left: calc(6 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-6 {\\n  padding-right: calc(6 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-7 {\\n  padding-left: calc(7 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-7 {\\n  padding-right: calc(7 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-8 {\\n  padding-left: calc(8 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-8 {\\n  padding-right: calc(8 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-indent-9 {\\n  padding-left: calc(9 * var(--ag-set-filter-indent-size));\\n}\\n.ag-rtl .ag-set-filter-indent-9 {\\n  padding-right: calc(9 * var(--ag-set-filter-indent-size));\\n}\\n\\n.ag-ltr .ag-set-filter-group-icons {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-set-filter-group-icons {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-filter-apply-panel {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-filter-apply-panel-button {\\n  line-height: 1.5;\\n}\\n.ag-ltr .ag-filter-apply-panel-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-rtl .ag-filter-apply-panel-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-simple-filter-body-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n  overflow-y: auto;\\n  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));\\n}\\n.ag-simple-filter-body-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n.ag-simple-filter-body-wrapper .ag-resizer-wrapper {\\n  margin: 0;\\n}\\n\\n.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,\\n.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {\\n  min-width: calc(var(--ag-menu-min-width) - 2px);\\n}\\n\\n.ag-filter-no-matches {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-multi-filter-menu-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-multi-filter-group-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);\\n  background-color: transparent;\\n}\\n\\n.ag-group-filter-field-select-wrapper {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-group-filter-field-select-wrapper > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-side-bar {\\n  position: relative;\\n}\\n\\n.ag-tool-panel-wrapper {\\n  width: var(--ag-side-bar-panel-width);\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n\\n.ag-side-buttons {\\n  padding-top: calc(var(--ag-grid-size) * 4);\\n  width: calc(var(--ag-icon-size) + 4px);\\n  position: relative;\\n  color: var(--ag-foreground-color);\\n  overflow: hidden;\\n}\\n\\nbutton.ag-side-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  background: transparent;\\n  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;\\n  width: 100%;\\n  margin: 0;\\n  min-height: calc(var(--ag-grid-size) * 18);\\n  background-position-y: center;\\n  background-position-x: center;\\n  background-repeat: no-repeat;\\n  border: none;\\n  border-top: var(--ag-borders-side-button) var(--ag-border-color);\\n  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);\\n}\\nbutton.ag-side-button-button:focus {\\n  box-shadow: none;\\n}\\n\\n.ag-keyboard-focus .ag-side-button-button:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-side-button-button:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-selected button.ag-side-button-button {\\n  background-color: var(--ag-side-button-selected-background-color);\\n}\\n\\n.ag-side-button-icon-wrapper {\\n  margin-bottom: 3px;\\n}\\n\\n.ag-ltr .ag-side-bar-left,\\n.ag-rtl .ag-side-bar-right {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-side-bar-left .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-side-button-button {\\n  border-right: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-right var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-right-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-rtl .ag-side-bar-left,\\n.ag-ltr .ag-side-bar-right {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-side-bar-left .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-side-button-button {\\n  border-left: var(--ag-selected-tab-underline-width) solid transparent;\\n  transition: border-left var(--ag-selected-tab-underline-transition-speed);\\n}\\n.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-left-color: var(--ag-selected-tab-underline-color);\\n}\\n\\n.ag-filter-toolpanel-header {\\n  height: calc(var(--ag-grid-size) * 6);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-header,\\n.ag-ltr .ag-filter-toolpanel-search {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-header,\\n.ag-rtl .ag-filter-toolpanel-search {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-keyboard-focus .ag-filter-toolpanel-header:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  content: var(--ag-icon-font-code-filter, \"\\\\f115\");\\n  position: absolute;\\n}\\n.ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0-header {\\n  height: calc(var(--ag-grid-size) * 8);\\n}\\n\\n.ag-filter-toolpanel-group-item {\\n  margin-top: calc(var(--ag-grid-size) * 0.5);\\n  margin-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n\\n.ag-filter-toolpanel-search {\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-filter-toolpanel-search-input {\\n  flex-grow: 1;\\n  height: calc(var(--ag-grid-size) * 4);\\n}\\n.ag-ltr .ag-filter-toolpanel-search-input {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-search-input {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-0 {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-expand,\\n.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-expand,\\n.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\\n}\\n\\n.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-filter-toolpanel-instance-filter {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-filter-toolpanel-instance-header-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-filter-toolpanel-instance-header-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-set-filter-group-icons {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-pivot-mode-panel {\\n  min-height: var(--ag-header-height);\\n  height: var(--ag-header-height);\\n  display: flex;\\n}\\n\\n.ag-pivot-mode-select {\\n  display: flex;\\n  align-items: center;\\n}\\n.ag-ltr .ag-pivot-mode-select {\\n  margin-left: var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-rtl .ag-pivot-mode-select {\\n  margin-right: var(--ag-widget-container-horizontal-padding);\\n}\\n\\n.ag-keyboard-focus .ag-column-select-header:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-select-header:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-select-header {\\n  height: var(--ag-header-height);\\n  align-items: center;\\n  padding: 0 var(--ag-widget-container-horizontal-padding);\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-panel-column-select {\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-column-group-icons,\\n.ag-column-select-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-select-list .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-column-select-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-column-select-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-header {\\n  background-color: var(--ag-header-background-color);\\n  border-bottom: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-row {\\n  color: var(--ag-header-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n\\n.ag-pinned-right-header {\\n  border-left: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-pinned-left-header {\\n  border-right: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-header-cell,\\n.ag-header-group-cell {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-header-cell.ag-header-cell-moving,\\n.ag-header-group-cell.ag-header-cell-moving {\\n  background-color: var(--ag-header-cell-moving-background-color);\\n}\\n\\n.ag-ltr .ag-header-group-cell-label.ag-sticky-label {\\n  left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-group-cell-label.ag-sticky-label {\\n  right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-header-cell.ag-header-span-height::after,\\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\\n  height: calc(100% - var(--ag-grid-size) * 4);\\n  top: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-keyboard-focus .ag-header-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-header-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n.ag-keyboard-focus .ag-header-group-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-header-group-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-header-icon {\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-header-expand-icon {\\n  cursor: pointer;\\n}\\n.ag-ltr .ag-header-expand-icon {\\n  padding-left: 4px;\\n}\\n.ag-rtl .ag-header-expand-icon {\\n  padding-right: 4px;\\n}\\n\\n.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),\\n.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\\n  border-top: var(--ag-borders-critical) var(--ag-border-color);\\n}\\n\\n.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,\\n.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-group-cell:first-of-type.ag-column-resizing,\\n.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,\\n.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {\\n  background-color: var(--ag-header-cell-hover-background-color);\\n}\\n\\n.ag-header-cell::after,\\n.ag-header-group-cell::after {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-separator-display);\\n  width: var(--ag-header-column-separator-width);\\n  height: var(--ag-header-column-separator-height);\\n  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);\\n  background-color: var(--ag-header-column-separator-color);\\n}\\n.ag-ltr .ag-header-cell::after,\\n.ag-ltr .ag-header-group-cell::after {\\n  right: 0;\\n}\\n.ag-rtl .ag-header-cell::after,\\n.ag-rtl .ag-header-group-cell::after {\\n  left: 0;\\n}\\n\\n.ag-header-cell-resize {\\n  display: flex;\\n  align-items: center;\\n}\\n\\n.ag-header-cell-resize::after {\\n  content: \"\";\\n  position: absolute;\\n  z-index: 1;\\n  display: var(--ag-header-column-resize-handle-display);\\n  width: var(--ag-header-column-resize-handle-width);\\n  height: var(--ag-header-column-resize-handle-height);\\n  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);\\n  background-color: var(--ag-header-column-resize-handle-color);\\n}\\n\\n.ag-header-cell.ag-header-span-height::after,\\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\\n  height: calc(100% - var(--ag-grid-size) * 4);\\n  top: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {\\n  right: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize::after {\\n  left: calc(50% - var(--ag-header-column-resize-handle-width));\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize::after {\\n  left: 50%;\\n}\\n\\n.ag-ltr .ag-header-select-all {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-header-select-all {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-floating-filter-button {\\n  margin-left: calc(var(--ag-grid-size) * 3);\\n}\\n.ag-rtl .ag-floating-filter-button {\\n  margin-right: calc(var(--ag-grid-size) * 3);\\n}\\n\\n.ag-floating-filter-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  appearance: none;\\n  background: transparent;\\n  border: none;\\n  height: var(--ag-icon-size);\\n  padding: 0;\\n  width: var(--ag-icon-size);\\n}\\n\\n.ag-filter-loading {\\n  background-color: var(--ag-control-panel-background-color);\\n  height: 100%;\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  position: absolute;\\n  width: 100%;\\n  z-index: 1;\\n}\\n\\n.ag-paging-panel {\\n  border-top: 1px solid;\\n  border-top-color: var(--ag-border-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-header-height);\\n}\\n.ag-paging-panel > * {\\n  margin: 0 var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-paging-button {\\n  cursor: pointer;\\n}\\n\\n.ag-paging-button.ag-disabled {\\n  cursor: default;\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-keyboard-focus .ag-paging-button:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-paging-button:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-paging-button, .ag-paging-description {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-status-bar {\\n  border-top: var(--ag-borders) var(--ag-border-color);\\n  color: var(--ag-disabled-foreground-color);\\n  padding-right: calc(var(--ag-grid-size) * 4);\\n  padding-left: calc(var(--ag-grid-size) * 4);\\n  line-height: 1.5;\\n}\\n\\n.ag-status-name-value-value {\\n  color: var(--ag-foreground-color);\\n}\\n\\n.ag-status-bar-center {\\n  text-align: center;\\n}\\n\\n.ag-status-name-value {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n  padding-top: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell {\\n  background: var(--ag-chip-background-color);\\n  border-radius: calc(var(--ag-grid-size) * 4);\\n  height: calc(var(--ag-grid-size) * 4);\\n  padding: 0 calc(var(--ag-grid-size) * 0.5);\\n  border: 1px solid transparent;\\n}\\n\\n.ag-keyboard-focus .ag-column-drop-cell:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-column-drop-cell:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 2px;\\n  left: 2px;\\n  display: block;\\n  width: calc(100% - 4px);\\n  height: calc(100% - 4px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-column-drop-cell-text {\\n  margin: 0 var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-cell-button {\\n  min-width: calc(var(--ag-grid-size) * 4);\\n  margin: 0 calc(var(--ag-grid-size) * 0.5);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-cell-drag-handle {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n}\\n\\n.ag-column-drop-cell-ghost {\\n  opacity: 0.5;\\n}\\n\\n.ag-column-drop-horizontal {\\n  background-color: var(--ag-control-panel-background-color);\\n  color: var(--ag-secondary-foreground-color);\\n  height: var(--ag-row-height);\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-ltr .ag-column-drop-horizontal {\\n  padding-left: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal {\\n  padding-right: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-right: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-left: var(--ag-borders) var(--ag-border-color);\\n}\\n\\n.ag-column-drop-horizontal-cell-separator {\\n  margin: 0 var(--ag-grid-size);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n\\n.ag-column-drop-horizontal-empty-message {\\n  color: var(--ag-disabled-foreground-color);\\n}\\n\\n.ag-ltr .ag-column-drop-horizontal-icon {\\n  margin-right: var(--ag-cell-horizontal-padding);\\n}\\n.ag-rtl .ag-column-drop-horizontal-icon {\\n  margin-left: var(--ag-cell-horizontal-padding);\\n}\\n\\n.ag-column-drop-vertical-list {\\n  padding-bottom: var(--ag-grid-size);\\n  padding-right: var(--ag-grid-size);\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-cell {\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical {\\n  min-height: 50px;\\n  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-column-drop-vertical.ag-last-column-drop {\\n  border-bottom: none;\\n}\\n\\n.ag-column-drop-vertical-icon {\\n  margin-left: var(--ag-grid-size);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  overflow: hidden;\\n  color: var(--ag-disabled-foreground-color);\\n  margin-top: var(--ag-grid-size);\\n}\\n\\n.ag-select-agg-func-popup {\\n  border: var(--ag-borders) var(--ag-border-color);\\n  background: var(--ag-background-color);\\n  border-radius: var(--ag-card-radius);\\n  box-shadow: var(--ag-card-shadow);\\n  padding: var(--ag-grid-size);\\n  background: var(--ag-background-color);\\n  height: calc(var(--ag-grid-size) * 5 * 3.5);\\n  padding: 0;\\n}\\n\\n.ag-select-agg-func-virtual-list-item {\\n  cursor: default;\\n  padding-left: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-select-agg-func-virtual-list-item:hover {\\n  background-color: var(--ag-selected-row-background-color);\\n}\\n\\n.ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\\n  content: \"\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: var(--ag-input-focus-border-color);\\n}\\n\\n.ag-sort-indicator-container {\\n  display: flex;\\n}\\n\\n.ag-ltr .ag-sort-indicator-icon {\\n  padding-left: var(--ag-grid-size);\\n}\\n.ag-rtl .ag-sort-indicator-icon {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-chart {\\n  position: relative;\\n  display: flex;\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-chart-components-wrapper {\\n  position: relative;\\n  display: flex;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-title-edit {\\n  position: absolute;\\n  display: none;\\n  top: 0;\\n  left: 0;\\n  text-align: center;\\n}\\n\\n.ag-chart-title-edit.currently-editing {\\n  display: inline-block;\\n}\\n\\n.ag-chart-canvas-wrapper {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-charts-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-menu {\\n  position: absolute;\\n  top: 10px;\\n  width: 24px;\\n  overflow: hidden;\\n  display: flex;\\n  flex-direction: column;\\n}\\n.ag-ltr .ag-chart-menu {\\n  right: 20px;\\n}\\n.ag-rtl .ag-chart-menu {\\n  left: 20px;\\n}\\n\\n.ag-chart-docked-container {\\n  position: relative;\\n  width: 0;\\n  min-width: 0;\\n  transition: min-width 0.4s;\\n}\\n\\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\\n  max-width: 0;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu {\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  flex-direction: column;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu-header {\\n  flex: none;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n  cursor: default;\\n}\\n\\n.ag-chart-tabbed-menu-body {\\n  display: flex;\\n  flex: 1 1 auto;\\n  align-items: stretch;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tab {\\n  width: 100%;\\n  overflow: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings {\\n  overflow-x: hidden;\\n}\\n\\n.ag-chart-settings-wrapper {\\n  position: relative;\\n  flex-direction: column;\\n  width: 100%;\\n  height: 100%;\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-settings-nav-bar {\\n  display: flex;\\n  align-items: center;\\n  width: 100%;\\n  height: 30px;\\n  padding: 0 10px;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-chart-settings-card-selector {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-around;\\n  flex: 1 1 auto;\\n  height: 100%;\\n  padding: 0 10px;\\n}\\n\\n.ag-chart-settings-card-item {\\n  cursor: pointer;\\n  width: 10px;\\n  height: 10px;\\n  background-color: #000;\\n  position: relative;\\n}\\n.ag-chart-settings-card-item.ag-not-selected {\\n  opacity: 0.2;\\n}\\n.ag-chart-settings-card-item::before {\\n  content: \" \";\\n  display: block;\\n  position: absolute;\\n  background-color: transparent;\\n  left: 50%;\\n  top: 50%;\\n  margin-left: -10px;\\n  margin-top: -10px;\\n  width: 20px;\\n  height: 20px;\\n}\\n\\n.ag-chart-settings-prev,\\n.ag-chart-settings-next {\\n  position: relative;\\n  flex: none;\\n}\\n\\n.ag-chart-settings-prev-button,\\n.ag-chart-settings-next-button {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  cursor: pointer;\\n  opacity: 0;\\n}\\n\\n.ag-chart-settings-mini-charts-container {\\n  position: relative;\\n  flex: 1 1 auto;\\n  overflow-x: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings-mini-wrapper {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  display: flex;\\n  flex-direction: column;\\n  width: 100%;\\n  min-height: 100%;\\n  overflow: hidden;\\n}\\n.ag-chart-settings-mini-wrapper.ag-animating {\\n  transition: left 0.3s;\\n  transition-timing-function: ease-in-out;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  cursor: pointer;\\n}\\n\\n.ag-chart-mini-thumbnail-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-data-wrapper,\\n.ag-chart-format-wrapper {\\n  display: flex;\\n  flex-direction: column;\\n  position: relative;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  -ms-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-chart-data-wrapper {\\n  height: 100%;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section {\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-empty-text {\\n  display: flex;\\n  top: 0;\\n  width: 100%;\\n  height: 100%;\\n  align-items: center;\\n  justify-content: center;\\n}\\n\\n.ag-chart .ag-chart-menu {\\n  display: none;\\n}\\n\\n.ag-chart-menu-hidden:hover .ag-chart-menu {\\n  display: block;\\n}\\n\\n.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  display: flex;\\n  flex-direction: row;\\n  overflow: auto;\\n  top: 5px;\\n  gap: calc(var(--ag-grid-size) * 3 - 8px);\\n  width: auto;\\n}\\n.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: right;\\n}\\n.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu {\\n  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\\n  justify-content: left;\\n}\\n\\n.ag-chart-menu-close {\\n  display: none;\\n}\\n\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  position: absolute;\\n  top: 50%;\\n  transition: transform 0.33s ease-in-out;\\n  padding: 0;\\n  display: block;\\n  cursor: pointer;\\n  border: none;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  left: 0px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon {\\n  padding: 14px 5px 14px 2px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  content: \"\";\\n  position: absolute;\\n  top: -40px;\\n  bottom: -40px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: 0px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: 0px;\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  left: -10px;\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\\n  right: -10px;\\n}\\n.ag-chart-tool-panel-button-enable .ag-icon-menu {\\n  display: none;\\n}\\n\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(3px, -50%);\\n}\\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(5px, -50%);\\n}\\n\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\\n  transform: translate(-3px, -50%);\\n}\\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(0, -50%);\\n}\\n.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\\n  transform: translate(-5px, -50%);\\n}\\n\\n.ag-charts-font-size-color {\\n  display: flex;\\n  align-self: stretch;\\n  justify-content: space-between;\\n}\\n\\n.ag-charts-data-group-item {\\n  position: relative;\\n}\\n\\n.ag-chart-menu {\\n  border-radius: var(--ag-card-radius);\\n  background: var(--ag-background-color);\\n}\\n\\n.ag-chart-menu-icon {\\n  opacity: 0.5;\\n  line-height: 24px;\\n  font-size: 24px;\\n  width: 24px;\\n  height: 24px;\\n  margin: 2px 0;\\n  cursor: pointer;\\n  border-radius: var(--ag-card-radius);\\n  color: var(--ag-secondary-foreground-color);\\n}\\n.ag-chart-menu-icon:hover {\\n  opacity: 1;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  border: 1px solid var(--ag-secondary-border-color);\\n  border-radius: 5px;\\n  margin: 5px;\\n}\\n.ag-chart-mini-thumbnail:nth-last-child(3), .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\\n  margin-left: auto;\\n  margin-right: auto;\\n}\\n.ag-ltr .ag-chart-mini-thumbnail:first-child {\\n  margin-left: 0;\\n}\\n.ag-rtl .ag-chart-mini-thumbnail:first-child {\\n  margin-right: 0;\\n}\\n.ag-ltr .ag-chart-mini-thumbnail:last-child {\\n  margin-right: 0;\\n}\\n.ag-rtl .ag-chart-mini-thumbnail:last-child {\\n  margin-left: 0;\\n}\\n.ag-chart-mini-thumbnail.ag-selected {\\n  border-color: var(--ag-minichart-selected-chart-color);\\n}\\n\\n.ag-chart-settings-card-item {\\n  background: var(--ag-foreground-color);\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 4px;\\n}\\n.ag-chart-settings-card-item.ag-selected {\\n  background-color: var(--ag-minichart-selected-page-color);\\n}\\n\\n.ag-chart-data-column-drag-handle {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-charts-settings-group-title-bar,\\n.ag-charts-data-group-title-bar,\\n.ag-charts-format-top-level-group-title-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n\\n.ag-charts-settings-group-container {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-charts-data-group-container {\\n  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);\\n}\\n.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\\n  height: var(--ag-list-item-height);\\n}\\n.ag-charts-data-group-container .ag-list-item-hovered::after {\\n  content: \"\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: var(--ag-range-selection-border-color);\\n}\\n.ag-charts-data-group-container .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-charts-data-group-container .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n\\n.ag-charts-format-top-level-group-container {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-charts-format-top-level-group-item {\\n  margin: var(--ag-grid-size) 0;\\n}\\n\\n.ag-charts-format-sub-level-group-container {\\n  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\\n  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\\n}\\n.ag-charts-format-sub-level-group-container > * {\\n  margin-bottom: var(--ag-widget-vertical-spacing);\\n}\\n\\n.ag-charts-group-container.ag-group-container-horizontal {\\n  padding: var(--ag-grid-size);\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section {\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-menu-panel {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-ltr .ag-chart-menu-panel {\\n  border-left: solid 1px var(--ag-border-color);\\n}\\n.ag-rtl .ag-chart-menu-panel {\\n  border-right: solid 1px var(--ag-border-color);\\n}\\n\\n.ag-date-time-list-page-title-bar {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-title {\\n  flex-grow: 1;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-labels-row,\\n.ag-date-time-list-page-entries-row {\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-column-label,\\n.ag-date-time-list-page-entry {\\n  flex-basis: 0;\\n  flex-grow: 1;\\n}\\n\\n.ag-date-time-list-page-entry {\\n  cursor: pointer;\\n  text-align: center;\\n}\\n\\n.ag-date-time-list-page-column-label {\\n  text-align: center;\\n}\\n\\n.ag-input-field-input {\\n  width: 100%;\\n  min-width: 0;\\n}\\n\\n.ag-checkbox-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n}\\n.ag-checkbox-input-wrapper input, .ag-checkbox-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-checkbox-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-checkbox-input-wrapper::after {\\n  content: var(--ag-icon-font-code-checkbox-unchecked, \"\\\\f108\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-checkbox-checked, \"\\\\f106\");\\n  color: var(--ag-checkbox-checked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-checkbox-input-wrapper.ag-indeterminate::after {\\n  content: var(--ag-icon-font-code-checkbox-indeterminate, \"\\\\f107\");\\n  color: var(--ag-checkbox-indeterminate-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-toggle-button-input-wrapper {\\n  box-sizing: border-box;\\n  width: var(--ag-toggle-button-width);\\n  height: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-off-background-color);\\n  border-radius: calc(var(--ag-toggle-button-height) * 0.5);\\n  position: relative;\\n  flex: none;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-off-border-color);\\n}\\n.ag-toggle-button-input-wrapper input {\\n  opacity: 0;\\n  height: 100%;\\n  width: 100%;\\n}\\n.ag-toggle-button-input-wrapper:focus-within {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-toggle-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-toggle-button-input-wrapper.ag-checked {\\n  background-color: var(--ag-toggle-button-on-background-color);\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n.ag-toggle-button-input-wrapper::before {\\n  content: \" \";\\n  position: absolute;\\n  top: calc(0px - var(--ag-toggle-button-border-width));\\n  left: calc(0px - var(--ag-toggle-button-border-width));\\n  display: block;\\n  box-sizing: border-box;\\n  height: var(--ag-toggle-button-height);\\n  width: var(--ag-toggle-button-height);\\n  background-color: var(--ag-toggle-button-switch-background-color);\\n  border-radius: 100%;\\n  transition: left 100ms;\\n  border: var(--ag-toggle-button-border-width) solid;\\n  border-color: var(--ag-toggle-button-switch-border-color);\\n}\\n.ag-toggle-button-input-wrapper.ag-checked::before {\\n  left: calc(100% - var(--ag-toggle-button-height));\\n  border-color: var(--ag-toggle-button-on-border-color);\\n}\\n\\n.ag-radio-button-input-wrapper {\\n  font-family: var(--ag-icon-font-family);\\n  font-size: var(--ag-icon-size);\\n  line-height: var(--ag-icon-size);\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-checkbox-background-color);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  display: inline-block;\\n  vertical-align: middle;\\n  flex: none;\\n  border-radius: var(--ag-icon-size);\\n}\\n.ag-radio-button-input-wrapper input, .ag-radio-button-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {\\n  outline: none;\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n}\\n.ag-radio-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-radio-button-input-wrapper::after {\\n  content: var(--ag-icon-font-code-radio-button-off, \"\\\\f127\");\\n  color: var(--ag-checkbox-unchecked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-radio-button-input-wrapper.ag-checked::after {\\n  content: var(--ag-icon-font-code-radio-button-on, \"\\\\f128\");\\n  color: var(--ag-checkbox-checked-color);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n\\ninput[class^=ag-][type=range] {\\n  -webkit-appearance: none;\\n  width: 100%;\\n  height: 100%;\\n  background: none;\\n  overflow: visible;\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-runnable-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-moz-range-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n}\\ninput[class^=ag-][type=range]::-ms-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: var(--ag-border-color);\\n  border-radius: var(--ag-border-radius);\\n  border-radius: var(--ag-checkbox-border-radius);\\n  color: transparent;\\n  width: calc(100% - 2px);\\n}\\ninput[class^=ag-][type=range]::-webkit-slider-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));\\n}\\ninput[class^=ag-][type=range]::-ms-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]::-moz-ag-range-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: var(--ag-icon-size);\\n  height: var(--ag-icon-size);\\n  background-color: var(--ag-background-color);\\n  border: 1px solid;\\n  border-color: var(--ag-checkbox-unchecked-color);\\n  border-radius: var(--ag-icon-size);\\n}\\ninput[class^=ag-][type=range]:focus {\\n  outline: none;\\n}\\ninput[class^=ag-][type=range]:focus::-webkit-slider-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-ms-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\\n  box-shadow: var(--ag-input-focus-box-shadow);\\n  border-color: var(--ag-checkbox-checked-color);\\n}\\ninput[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-moz-ag-range-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:active::-ms-track {\\n  background-color: var(--ag-input-focus-border-color);\\n}\\ninput[class^=ag-][type=range]:disabled {\\n  opacity: 0.5;\\n}\\n'],sourceRoot:\"\"}]);const p=c},19087:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>P}),n(52675),n(89463),n(2259),n(28706),n(50113),n(23418),n(64346),n(23792),n(48598),n(62062),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(90815),o=n(14073),a=n(8239),i=n(28161),l=n(56203),s=n(81970),u=n.n(s),c=n(2543),d=n.n(c),p=n(17630),f=(n(25276),n(94170),n(69085),[\"cardData\"]);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}function h(e){return h=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},h(e)}const m=function(e){var t=e.cardData,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,f);return u().createElement(a.Ay,{item:!0,xs:12},u().createElement(i.A,g({},n,{className:\"user-detail-box\"}),u().createElement(a.Ay,{container:!0,columns:{xs:12},rowGap:2},null==t?void 0:t.map(function(e){var t;return\"object\"!=h(null==e?void 0:e.value)?u().createElement(a.Ay,{key:null==e?void 0:e.name,item:!0,xs:4},u().createElement(i.A,{className:\"user-details-container\"},u().createElement(o.A,{variant:\"h3\",color:\"#1D2B3A\"},null==e?void 0:e.name),u().createElement(o.A,{variant:\"body1\",color:\"#696F88\",component:\"span\",lineHeight:\"20px\"},null!==(t=null==e?void 0:e.value)&&void 0!==t?t:\"\"))):null}))))};var v=n(82348),A=n(6372),y=n(37695),E=n(70380),b=n(47767),_=(n(2008),n(51629),n(59904),n(84185),n(40875),n(10287),n(3362),n(42762),n(23500),n(3296),n(27208),n(48408),n(71083)),C=n(7928);function w(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return S(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(S(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,S(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,S(d,\"constructor\",u),S(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",S(u,o,\"GeneratorFunction\"),S(d),S(d,o,\"Generator\"),S(d,r,function(){return this}),S(d,\"toString\",function(){return\"[object Generator]\"}),(w=function(){return{w:a,m:p}})()}function S(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}S=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){S(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},S(e,t,n,r)}function T(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var R=n(95272);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var L={xs:12};const P=function(e){var t,n,c=e.data,f=void 0===c?[]:c,g=e.visitDates,h=void 0===g?{}:g,S=e.User,D=e.baseurl,P=e.triggerShowLoader,M=e.locationState,x=(0,b.zy)(),I=(t=(0,s.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),k=I[0],B=I[1],F=(0,s.useMemo)(function(){var e=x.pathname.split(\"/\");return decodeURIComponent(e[e.length-1])},[null==x?void 0:x.pathname]),j=(0,s.useMemo)(function(){var e=f.find(function(e){return\"Photos\"===e.name});return(null==e?void 0:e.value)||[]},[f]),H=(0,s.useMemo)(function(){return d().chunk((0,R.LA)(f),3)},[f]),U=function(e){var t=e.images,n=e.User,r=e.baseurl,o=e.triggerShowLoader,a=e.locationState,i=O((0,s.useState)([]),2),l=i[0],u=i[1],c=O((0,s.useState)(!1),2),d=c[0],p=c[1],f=O((0,s.useState)(null),2),g=f[0],h=f[1];return(0,s.useEffect)(function(){if(t.length){var e=function(){var e,i=(e=w().m(function e(){var i,l,s,c,d,f,g;return w().w(function(e){for(;;)switch(e.p=e.n){case 0:return p(!0),h(null),e.p=1,i=t.map(function(e){var t;return(0,C.kq)(n,r,o,{filename:\"string\"==typeof(null==e?void 0:e.image_key)&&null!=e&&e.image_key&&(null===(t=e.image_key.split(\"/\").pop())||void 0===t?void 0:t.trim())||\"\",demo_grower_details_id:null==a?void 0:a.demo_grower_details_id})}),e.n=2,Promise.all(i);case 2:return l=e.v,s=l.filter(function(e){var t;return!(null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage)}),c=s.map(function(e){var t;return _.A.get(null==e||null===(t=e.data)||void 0===t?void 0:t[\"Presigned-Url\"],{responseType:\"arraybuffer\"})}),e.n=3,Promise.all(c);case 3:d=e.v,f=d.map(function(e){var t=new Blob([e.data],{type:\"image/png\"});return URL.createObjectURL(t)}),u(f),e.n=5;break;case 4:e.p=4,g=e.v,console.error(\"Failed to fetch presigned URLs:\",g),h(g instanceof Error?g:new Error(\"Unknown error\"));case 5:return e.p=5,p(!1),e.f(5);case 6:return e.a(2)}},e,null,[[1,4,5,6]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){T(a,r,o,i,l,\"next\",e)}function l(e){T(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return i.apply(this,arguments)}}();return e(),function(){l.forEach(function(e){return URL.revokeObjectURL(e)})}}u([])},[t,n,r,null==a?void 0:a.demo_grower_details_id]),{presignedUrlList:l,isLoading:d,error:g}}({images:j,User:S,baseurl:D,triggerShowLoader:P,locationState:M}),Y=U.presignedUrlList,G=U.isLoading,z=function(){B(!0)};return u().createElement(y.M,{sx:{padding:\"16px\",backgroundColor:p.w.palette.secondary.main}},u().createElement(v._,null,u().createElement(r.A,{direction:\"row\",spacing:.5},u().createElement(o.A,{variant:\"h3\",color:\"#1D2B3A\"},\"\".concat((0,l.t)(F.toUpperCase()),\" \").concat((0,l.t)(\"DATE\"),\" :\")),u().createElement(o.A,{variant:\"body1\",color:\"#696F88\",component:\"span\",lineHeight:\"20px\"},h?(0,E.Yq)(h,\"DD/MM/YYYY\"):\"\")),u().createElement(a.Ay,{container:!0,columns:L,spacing:2},H.map(function(e,t){var n=e.map(function(e){return\"\".concat(e.name,\"-\").concat(String(e.value))}).join(\"|\");return u().createElement(m,{key:\"\".concat(n,\"-\").concat(t),sx:{marginBottom:\"0px !important\"},cardData:e})})),j.length?u().createElement(a.Ay,{container:!0,columns:L,spacing:2},u().createElement(a.Ay,{item:!0,xs:12},u().createElement(i.A,{sx:{marginBottom:\"0px !important\"},className:\"user-detail-box\"},u().createElement(a.Ay,{container:!0,columns:L,rowGap:2},u().createElement(a.Ay,{item:!0,xs:4},u().createElement(i.A,{className:\"user-details-container\"},u().createElement(o.A,{variant:\"h3\",color:\"#1D2B3A\",mb:1},(0,l.t)(\"PHOTOS\")),u().createElement(r.A,{direction:\"row\",justifyContent:\"start\",gap:2},function(){var e;if(!j.length)return null;var t=j.length-1;return u().createElement(i.A,{onClick:G?void 0:z,\"data-testid\":\"imageOnClick\",className:\"image-count-wrapper \".concat(j.length>1?\"img-overlay\":\"\",\" pointer\"),sx:{cursor:G?\"not-allowed\":\"pointer\",opacity:G?.6:1}},u().createElement(\"img\",{src:(null==Y?void 0:Y[0])||\"\",alt:null!==(e=(0,l.t)(\"FIRST_VISIT_DETAILS_DOCUMENT\"))&&void 0!==e?e:\"\",width:\"100%\",className:\"doc-icon\"}),t>0&&u().createElement(o.A,{className:\"images-count\"},\"+ \",t))}()))))))):null,u().createElement(A.A,{docType:\"Visit Photos\",isDrawerOpen:k,documents:Y,onRequestClose:function(){B(!1)}})))}},19167:(e,t,n)=>{\"use strict\";var r=n(44576);e.exports=r},19219:e=>{e.exports=function(e,t){return e.has(t)}},19369:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(79504),a=r.aTypedArray,i=r.exportTypedArrayMethod,l=o([].join);i(\"join\",function(e){return l(a(this),e)})},19617:(e,t,n)=>{\"use strict\";var r=n(25397),o=n(35610),a=n(26198),i=function(e){return function(t,n,i){var l=r(t),s=a(l);if(0===s)return!e&&-1;var u,c=o(i,s);if(e&&n!=n){for(;s>c;)if((u=l[c++])!=u)return!0}else for(;s>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},19651:e=>{\"use strict\";e.exports=\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDIzNSA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxuczpzZXJpZj0iaHR0cDovL3d3dy5zZXJpZi5jb20vIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjI7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDAuNjM1NzIzLDAsMCwwLjYzNTcyMywtNDkyLjkyMSwtMzIzLjYwOCkiPgogICAgICAgIDxwYXRoIGQ9Ik0xMDk5LjQsNTQ5LjRMMTA5OS40LDUzNi45TDEwNzguMSw1MzYuOUwxMDY1LjYsNTQ5LjRMMTA5OS40LDU0OS40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTEyMy40LDUxOC40TDEwOTYuNyw1MTguNEwxMDg0LjEsNTMwLjlMMTEyMy40LDUzMC45TDExMjMuNCw1MTguNFoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwNTMuMiw1NjEuOUwxMDU5LjYsNTU1LjVMMTA4MS4yLDU1NS41TDEwODEuMiw1NjhMMTA1My4yLDU2OEwxMDUzLjIsNTYxLjlaIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDU3LjksNTQzLjNMMTA3MS43LDU0My4zTDEwODQuMyw1MzAuOEwxMDU3LjksNTMwLjhMMTA1Ny45LDU0My4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTA0Mi44LDU2MS45TDEwNTMuMiw1NjEuOUwxMDY1LjYsNTQ5LjRMMTA0Mi44LDU0OS40TDEwNDIuOCw1NjEuOVoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwOTYuNyw1MTguNEwxMDkwLjMsNTI0LjhMMTA0OS41LDUyNC44TDEwNDkuNSw1MTIuM0wxMDk2LjcsNTEyLjNMMTA5Ni43LDUxOC40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNODI4LjYsNTU5LjdMODA5LDU1OS43TDgwNS42LDU2OC4xTDc5Nyw1NjguMUw4MTUuMSw1MjUuN0w4MjIuNiw1MjUuN0w4NDAuNyw1NjguMUw4MzIsNTY4LjFMODI4LjYsNTU5LjdaTTgyNS45LDU1M0w4MTguOCw1MzUuN0w4MTEuNyw1NTNMODI1LjksNTUzWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTYwLjEsNTQxLjNDOTYyLjYsNTM3LjYgOTY4LjksNTM3LjIgOTcxLjUsNTM3LjJMOTcxLjUsNTQ0LjRDOTY4LjMsNTQ0LjQgOTY1LjEsNTQ0LjUgOTYzLjIsNTQ1LjlDOTYxLjMsNTQ3LjMgOTYwLjMsNTQ5LjIgOTYwLjMsNTUxLjVMOTYwLjMsNTY4LjFMOTUyLjUsNTY4LjFMOTUyLjUsNTM3LjJMOTYwLDUzNy4yTDk2MC4xLDU0MS4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTM3LjIiIHdpZHRoPSI3LjgiIGhlaWdodD0iMzAuOSIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTIzLjQiIHdpZHRoPSI3LjgiIGhlaWdodD0iOS4yIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDIyLjMsNTIzLjRMMTAyMi4zLDU2OC4xTDEwMTQuOCw1NjguMUwxMDE0LjYsNTYzLjRDMTAxMy41LDU2NSAxMDEyLjEsNTY2LjMgMTAxMC40LDU2Ny4zQzEwMDguNyw1NjguMiAxMDA2LjYsNTY4LjcgMTAwNC4yLDU2OC43QzEwMDIuMSw1NjguNyAxMDAwLjEsNTY4LjMgOTk4LjQsNTY3LjZDOTk2LjYsNTY2LjggOTk1LDU2NS44IDk5My43LDU2NC40Qzk5Mi40LDU2MyA5OTEuMyw1NjEuMyA5OTAuNiw1NTkuNEM5ODkuOCw1NTcuNSA5ODkuNSw1NTUuMyA5ODkuNSw1NTIuOUM5ODkuNSw1NTAuNSA5ODkuOSw1NDguMyA5OTAuNiw1NDYuM0M5OTEuNCw1NDQuMyA5OTIuNCw1NDIuNiA5OTMuNyw1NDEuMkM5OTUsNTM5LjggOTk2LjYsNTM4LjcgOTk4LjQsNTM3LjlDMTAwMC4yLDUzNy4xIDEwMDIuMSw1MzYuNyAxMDA0LjIsNTM2LjdDMTAwNi42LDUzNi43IDEwMDguNiw1MzcuMSAxMDEwLjMsNTM4QzEwMTIsNTM4LjkgMTAxMy40LDU0MC4xIDEwMTQuNSw1NDEuOEwxMDE0LjUsNTIzLjVMMTAyMi4zLDUyMy41TDEwMjIuMyw1MjMuNFpNMTAwNS45LDU2MkMxMDA4LjUsNTYyIDEwMTAuNSw1NjEuMSAxMDEyLjEsNTU5LjRDMTAxMy43LDU1Ny43IDEwMTQuNSw1NTUuNCAxMDE0LjUsNTUyLjZDMTAxNC41LDU0OS44IDEwMTMuNyw1NDcuNiAxMDEyLjEsNTQ1LjhDMTAxMC41LDU0NC4xIDEwMDguNSw1NDMuMiAxMDA1LjksNTQzLjJDMTAwMy40LDU0My4yIDEwMDEuMyw1NDQuMSA5OTkuOCw1NDUuOEM5OTguMiw1NDcuNSA5OTcuNCw1NDkuOCA5OTcuNCw1NTIuNkM5OTcuNCw1NTUuNCA5OTguMiw1NTcuNiA5OTkuOCw1NTkuM0MxMDAxLjQsNTYxLjEgMTAwMy40LDU2MiAxMDA1LjksNTYyIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik04ODUuOCw1NDQuMkw4NjYuNSw1NDQuMkw4NjYuNSw1NTAuOUw4NzcuNSw1NTAuOUM4NzcuMiw1NTQuMyA4NzUuOSw1NTYuOSA4NzMuNyw1NTlDODcxLjUsNTYxIDg2OC43LDU2MiA4NjUuMSw1NjJDODYzLjEsNTYyIDg2MS4yLDU2MS42IDg1OS42LDU2MC45Qzg1Ny45LDU2MC4yIDg1Ni41LDU1OS4yIDg1NS4zLDU1Ny44Qzg1NC4xLDU1Ni41IDg1My4yLDU1NC45IDg1Mi41LDU1M0M4NTEuOCw1NTEuMSA4NTEuNSw1NDkuMSA4NTEuNSw1NDYuOEM4NTEuNSw1NDQuNSA4NTEuOCw1NDIuNSA4NTIuNSw1NDAuNkM4NTMuMSw1MzguNyA4NTQuMSw1MzcuMiA4NTUuMyw1MzUuOEM4NTYuNSw1MzQuNSA4NTcuOSw1MzMuNSA4NTkuNiw1MzIuN0M4NjEuMyw1MzIgODYzLjEsNTMxLjYgODY1LjIsNTMxLjZDODY5LjQsNTMxLjYgODcyLjYsNTMyLjYgODc0LjgsNTM0LjZMODgwLDUyOS40Qzg3Ni4xLDUyNi40IDg3MS4xLDUyNC44IDg2NS4yLDUyNC44Qzg2MS45LDUyNC44IDg1OC45LDUyNS4zIDg1Ni4yLDUyNi40Qzg1My41LDUyNy41IDg1MS4yLDUyOC45IDg0OS4zLDUzMC44Qzg0Ny40LDUzMi43IDg0NS45LDUzNSA4NDQuOSw1MzcuN0M4NDMuOSw1NDAuNCA4NDMuNCw1NDMuNCA4NDMuNCw1NDYuNkM4NDMuNCw1NDkuOCA4NDMuOSw1NTIuOCA4NDUsNTU1LjVDODQ2LjEsNTU4LjIgODQ3LjUsNTYwLjUgODQ5LjQsNTYyLjRDODUxLjMsNTY0LjMgODUzLjYsNTY1LjggODU2LjMsNTY2LjhDODU5LDU2Ny45IDg2Miw1NjguNCA4NjUuMiw1NjguNEM4NjguNCw1NjguNCA4NzEuMyw1NjcuOSA4NzMuOSw1NjYuOEM4NzYuNSw1NjUuNyA4NzguNyw1NjQuMyA4ODAuNSw1NjIuNEM4ODIuMyw1NjAuNSA4ODMuNyw1NTguMiA4ODQuNyw1NTUuNUM4ODUuNyw1NTIuOCA4ODYuMiw1NDkuOCA4ODYuMiw1NDYuNkw4ODYuMiw1NDUuM0M4ODUuOSw1NDUuMSA4ODUuOCw1NDQuNiA4ODUuOCw1NDQuMiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTQ2LjgsNTQ0LjJMOTI3LjUsNTQ0LjJMOTI3LjUsNTUwLjlMOTM4LjUsNTUwLjlDOTM4LjIsNTU0LjMgOTM2LjksNTU2LjkgOTM0LjcsNTU5QzkzMi41LDU2MSA5MjkuNyw1NjIgOTI2LjEsNTYyQzkyNC4xLDU2MiA5MjIuMiw1NjEuNiA5MjAuNiw1NjAuOUM5MTguOSw1NjAuMiA5MTcuNSw1NTkuMiA5MTYuMyw1NTcuOEM5MTUuMSw1NTYuNSA5MTQuMiw1NTQuOSA5MTMuNSw1NTNDOTEyLjgsNTUxLjEgOTEyLjUsNTQ5LjEgOTEyLjUsNTQ2LjhDOTEyLjUsNTQ0LjUgOTEyLjgsNTQyLjUgOTEzLjUsNTQwLjZDOTE0LjEsNTM4LjcgOTE1LjEsNTM3LjIgOTE2LjMsNTM1LjhDOTE3LjUsNTM0LjUgOTE4LjksNTMzLjUgOTIwLjYsNTMyLjdDOTIyLjMsNTMyIDkyNC4xLDUzMS42IDkyNi4yLDUzMS42QzkzMC40LDUzMS42IDkzMy42LDUzMi42IDkzNS44LDUzNC42TDk0MSw1MjkuNEM5MzcuMSw1MjYuNCA5MzIuMSw1MjQuOCA5MjYuMiw1MjQuOEM5MjIuOSw1MjQuOCA5MTkuOSw1MjUuMyA5MTcuMiw1MjYuNEM5MTQuNSw1MjcuNSA5MTIuMiw1MjguOSA5MTAuMyw1MzAuOEM5MDguNCw1MzIuNyA5MDYuOSw1MzUgOTA1LjksNTM3LjdDOTA0LjksNTQwLjQgOTA0LjQsNTQzLjQgOTA0LjQsNTQ2LjZDOTA0LjQsNTQ5LjggOTA0LjksNTUyLjggOTA2LDU1NS41QzkwNy4xLDU1OC4yIDkwOC41LDU2MC41IDkxMC40LDU2Mi40QzkxMi4zLDU2NC4zIDkxNC42LDU2NS44IDkxNy4zLDU2Ni44QzkyMCw1NjcuOSA5MjMsNTY4LjQgOTI2LjIsNTY4LjRDOTI5LjQsNTY4LjQgOTMyLjMsNTY3LjkgOTM0LjksNTY2LjhDOTM3LjUsNTY1LjcgOTM5LjcsNTY0LjMgOTQxLjUsNTYyLjRDOTQzLjMsNTYwLjUgOTQ0LjcsNTU4LjIgOTQ1LjcsNTU1LjVDOTQ2LjcsNTUyLjggOTQ3LjIsNTQ5LjggOTQ3LjIsNTQ2LjZMOTQ3LjIsNTQ1LjNDOTQ2LjksNTQ1LjEgOTQ2LjgsNTQ0LjYgOTQ2LjgsNTQ0LjIiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=\"},19741:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>J});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(73788),u=n(79329),c=n(96248),d=n(49799);const p=n(93205).A;var f=n(96852),g=n(2778),h=n(74848);const m=[\"actions\",\"autoFocus\",\"autoFocusItem\",\"children\",\"className\",\"disabledItemsFocusable\",\"disableListWrap\",\"onKeyDown\",\"variant\"];function v(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function A(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function y(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(\"\")))}function E(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||\"true\"===l.getAttribute(\"aria-disabled\"));if(l.hasAttribute(\"tabindex\")&&y(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const b=a.forwardRef(function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:l=!1,children:s,className:u,disabledItemsFocusable:b=!1,disableListWrap:_=!1,onKeyDown:C,variant:w=\"selectedMenu\"}=e,S=(0,o.A)(e,m),T=a.useRef(null),O=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,g.A)(()=>{i&&T.current.focus()},[i]),a.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!T.current.style.width;if(e.clientHeight<T.current.clientHeight&&n){const n=`${p((0,c.A)(e))}px`;T.current.style[\"rtl\"===t?\"paddingLeft\":\"paddingRight\"]=n,T.current.style.width=`calc(100% + ${n})`}return T.current}}),[]);const D=(0,f.A)(T,t);let R=-1;a.Children.forEach(s,(e,t)=>{a.isValidElement(e)?(e.props.disabled||(\"selectedMenu\"===w&&e.props.selected||-1===R)&&(R=t),R===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(R+=1,R>=s.length&&(R=-1))):R===t&&(R+=1,R>=s.length&&(R=-1))});const N=a.Children.map(s,(e,t)=>{if(t===R){const t={};return l&&(t.autoFocus=!0),void 0===e.props.tabIndex&&\"selectedMenu\"===w&&(t.tabIndex=0),a.cloneElement(e,t)}return e});return(0,h.jsx)(d.A,(0,r.A)({role:\"menu\",ref:D,className:u,onKeyDown:e=>{const t=T.current,n=e.key,r=(0,c.A)(t).activeElement;if(\"ArrowDown\"===n)e.preventDefault(),E(t,r,_,b,v);else if(\"ArrowUp\"===n)e.preventDefault(),E(t,r,_,b,A);else if(\"Home\"===n)e.preventDefault(),E(t,null,_,b,v);else if(\"End\"===n)e.preventDefault(),E(t,null,_,b,A);else if(1===n.length){const o=O.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=r&&!o.repeating&&y(r,o);o.previousKeyMatched&&(l||E(t,r,!1,b,v,o))?e.preventDefault():o.previousKeyMatched=!1}C&&C(e)},tabIndex:i?0:-1},S,{children:N}))});var _=n(52197),C=n(11848),w=n(25669),S=n(1935),T=n(93749),O=n(87467),D=n(79801),R=n(60538),N=n(38413),L=n(31609);function P(e){return(0,L.Ay)(\"MuiPopover\",e)}(0,N.A)(\"MuiPopover\",[\"root\",\"paper\"]);const M=[\"onEntering\"],x=[\"action\",\"anchorEl\",\"anchorOrigin\",\"anchorPosition\",\"anchorReference\",\"children\",\"className\",\"container\",\"elevation\",\"marginThreshold\",\"open\",\"PaperProps\",\"slots\",\"slotProps\",\"transformOrigin\",\"TransitionComponent\",\"transitionDuration\",\"TransitionProps\",\"disableScrollLock\"],I=[\"slotProps\"];function k(e,t){let n=0;return\"number\"==typeof t?n=t:\"center\"===t?n=e.height/2:\"bottom\"===t&&(n=e.height),n}function B(e,t){let n=0;return\"number\"==typeof t?n=t:\"center\"===t?n=e.width/2:\"right\"===t&&(n=e.width),n}function F(e){return[e.horizontal,e.vertical].map(e=>\"number\"==typeof e?`${e}px`:e).join(\" \")}function j(e){return\"function\"==typeof e?e():e}const H=(0,C.Ay)(D.A,{name:\"MuiPopover\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),U=(0,C.Ay)(R.A,{name:\"MuiPopover\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})({position:\"absolute\",overflowY:\"auto\",overflowX:\"hidden\",minWidth:16,minHeight:16,maxWidth:\"calc(100% - 32px)\",maxHeight:\"calc(100% - 32px)\",outline:0}),Y=a.forwardRef(function(e,t){var n,s,d;const p=(0,w.b)({props:e,name:\"MuiPopover\"}),{action:g,anchorEl:m,anchorOrigin:v={vertical:\"top\",horizontal:\"left\"},anchorPosition:A,anchorReference:y=\"anchorEl\",children:E,className:b,container:C,elevation:D=8,marginThreshold:R=16,open:N,PaperProps:L={},slots:Y,slotProps:G,transformOrigin:z={vertical:\"top\",horizontal:\"left\"},TransitionComponent:V=O.A,transitionDuration:q=\"auto\",TransitionProps:{onEntering:W}={},disableScrollLock:Q=!1}=p,K=(0,o.A)(p.TransitionProps,M),$=(0,o.A)(p,x),X=null!=(n=null==G?void 0:G.paper)?n:L,J=a.useRef(),Z=(0,f.A)(J,X.ref),ee=(0,r.A)({},p,{anchorOrigin:v,anchorReference:y,elevation:D,marginThreshold:R,externalPaperSlotProps:X,transformOrigin:z,TransitionComponent:V,transitionDuration:q,TransitionProps:K}),te=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"],paper:[\"paper\"]},P,t)})(ee),ne=a.useCallback(()=>{if(\"anchorPosition\"===y)return A;const e=j(m),t=(e&&1===e.nodeType?e:(0,c.A)(J.current).body).getBoundingClientRect();return{top:t.top+k(t,v.vertical),left:t.left+B(t,v.horizontal)}},[m,v.horizontal,v.vertical,A,y]),re=a.useCallback(e=>({vertical:k(e,z.vertical),horizontal:B(e,z.horizontal)}),[z.horizontal,z.vertical]),oe=a.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if(\"none\"===y)return{top:null,left:null,transformOrigin:F(n)};const r=ne();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,l=a+t.width,s=(0,T.A)(j(m)),u=s.innerHeight-R,c=s.innerWidth-R;if(null!==R&&o<R){const e=o-R;o-=e,n.vertical+=e}else if(null!==R&&i>u){const e=i-u;o-=e,n.vertical+=e}if(null!==R&&a<R){const e=a-R;a-=e,n.horizontal+=e}else if(l>c){const e=l-c;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:F(n)}},[m,y,ne,re,R]),[ae,ie]=a.useState(N),le=a.useCallback(()=>{const e=J.current;if(!e)return;const t=oe(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ie(!0)},[oe]);a.useEffect(()=>(Q&&window.addEventListener(\"scroll\",le),()=>window.removeEventListener(\"scroll\",le)),[m,Q,le]),a.useEffect(()=>{N&&le()}),a.useImperativeHandle(g,()=>N?{updatePosition:()=>{le()}}:null,[N,le]),a.useEffect(()=>{if(!N)return;const e=(0,S.A)(()=>{le()}),t=(0,T.A)(m);return t.addEventListener(\"resize\",e),()=>{e.clear(),t.removeEventListener(\"resize\",e)}},[m,N,le]);let se=q;\"auto\"!==q||V.muiSupportAuto||(se=void 0);const ue=C||(m?(0,c.A)(j(m)).body:void 0),ce=null!=(s=null==Y?void 0:Y.root)?s:H,de=null!=(d=null==Y?void 0:Y.paper)?d:U,pe=(0,u.A)({elementType:de,externalSlotProps:(0,r.A)({},X,{style:ae?X.style:(0,r.A)({},X.style,{opacity:0})}),additionalProps:{elevation:D,ref:Z},ownerState:ee,className:(0,i.A)(te.paper,null==X?void 0:X.className)}),fe=(0,u.A)({elementType:ce,externalSlotProps:(null==G?void 0:G.root)||{},externalForwardedProps:$,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ue,open:N},ownerState:ee,className:(0,i.A)(te.root,b)}),{slotProps:ge}=fe,he=(0,o.A)(fe,I);return(0,h.jsx)(ce,(0,r.A)({},he,!(0,_.A)(ce)&&{slotProps:ge,disableScrollLock:Q},{children:(0,h.jsx)(V,(0,r.A)({appear:!0,in:N,onEntering:(e,t)=>{W&&W(e,t),le()},onExited:()=>{ie(!1)},timeout:se},K,{children:(0,h.jsx)(de,(0,r.A)({},pe,{children:E}))}))}))});var G=n(39770);function z(e){return(0,L.Ay)(\"MuiMenu\",e)}(0,N.A)(\"MuiMenu\",[\"root\",\"paper\",\"list\"]);const V=[\"onEntering\"],q=[\"autoFocus\",\"children\",\"className\",\"disableAutoFocusItem\",\"MenuListProps\",\"onClose\",\"open\",\"PaperProps\",\"PopoverClasses\",\"transitionDuration\",\"TransitionProps\",\"variant\",\"slots\",\"slotProps\"],W={vertical:\"top\",horizontal:\"right\"},Q={vertical:\"top\",horizontal:\"left\"},K=(0,C.Ay)(Y,{shouldForwardProp:e=>(0,G.A)(e)||\"classes\"===e,name:\"MuiMenu\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),$=(0,C.Ay)(U,{name:\"MuiMenu\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})({maxHeight:\"calc(100% - 96px)\",WebkitOverflowScrolling:\"touch\"}),X=(0,C.Ay)(b,{name:\"MuiMenu\",slot:\"List\",overridesResolver:(e,t)=>t.list})({outline:0}),J=a.forwardRef(function(e,t){var n,c;const d=(0,w.b)({props:e,name:\"MuiMenu\"}),{autoFocus:p=!0,children:f,className:g,disableAutoFocusItem:m=!1,MenuListProps:v={},onClose:A,open:y,PaperProps:E={},PopoverClasses:b,transitionDuration:_=\"auto\",TransitionProps:{onEntering:C}={},variant:S=\"selectedMenu\",slots:T={},slotProps:O={}}=d,D=(0,o.A)(d.TransitionProps,V),R=(0,o.A)(d,q),N=(0,s.I)(),L=(0,r.A)({},d,{autoFocus:p,disableAutoFocusItem:m,MenuListProps:v,onEntering:C,PaperProps:E,transitionDuration:_,TransitionProps:D,variant:S}),P=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"],paper:[\"paper\"],list:[\"list\"]},z,t)})(L),M=p&&!m&&y,x=a.useRef(null);let I=-1;a.Children.map(f,(e,t)=>{a.isValidElement(e)&&(e.props.disabled||(\"selectedMenu\"===S&&e.props.selected||-1===I)&&(I=t))});const k=null!=(n=T.paper)?n:$,B=null!=(c=O.paper)?c:E,F=(0,u.A)({elementType:T.root,externalSlotProps:O.root,ownerState:L,className:[P.root,g]}),j=(0,u.A)({elementType:k,externalSlotProps:B,ownerState:L,className:P.paper});return(0,h.jsx)(K,(0,r.A)({onClose:A,anchorOrigin:{vertical:\"bottom\",horizontal:N?\"right\":\"left\"},transformOrigin:N?W:Q,slots:{paper:k,root:T.root},slotProps:{root:F,paper:j},open:y,ref:t,transitionDuration:_,TransitionProps:(0,r.A)({onEntering:(e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,{direction:N?\"rtl\":\"ltr\"}),C&&C(e,t)}},D),ownerState:L},R,{classes:b,children:(0,h.jsx)(X,(0,r.A)({onKeyDown:e=>{\"Tab\"===e.key&&(e.preventDefault(),A&&A(e,\"tabKeyDown\"))},actions:x,autoFocus:p&&(-1===I||m),autoFocusItem:M,variant:S},v,{className:(0,i.A)(P.list,v.className),children:f}))}))})},19786:(e,t,n)=>{var r=n(56903),o=n(6791),a=n(33971),i=n(14632),l=n(43066),s=\"prototype\",u=function(e,t,n){var c,d,p,f=e&u.F,g=e&u.G,h=e&u.S,m=e&u.P,v=e&u.B,A=e&u.W,y=g?o:o[t]||(o[t]={}),E=y[s],b=g?r:h?r[t]:(r[t]||{})[s];for(c in g&&(n=t),n)(d=!f&&b&&void 0!==b[c])&&l(y,c)||(p=d?b[c]:n[c],y[c]=g&&\"function\"!=typeof b[c]?n[c]:v&&d?a(p,r):A&&b[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(p):m&&\"function\"==typeof p?a(Function.call,p):p,m&&((y.virtual||(y.virtual={}))[c]=p,e&u.R&&E&&!E[c]&&i(E,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},19940:(e,t,n)=>{\"use strict\";n.d(t,{DG:()=>r,Sf:()=>i,Sn:()=>o,dO:()=>a});var r=function(e){return e.ATTENDANCE_TYPE=\"attendance_type\",e.ATTENDANCE_APPROVAL_REQ=\"attendance_is_approval_required\",e.ATTENDANCE_ROLE=\"attendance_role\",e.ENABLE_COMP_OFF=\"attendance_enable_comp_off\",e}({}),o=function(e){return e.ATTENDANCE_MODULE=\"ATTENDANCE\",e.EVENT_BASELINE_MODULE=\"BASELINE\",e.MANUAL_ATTENDANCE=\"MANUAL_ATTENDANCE\",e}({}),a=[{value:\"NO_BASELINE\",label:\"No Baseline\"},{value:\"BASIC\",label:\"Basic Baseline\"},{value:\"ADVANCED\",label:\"Advanced Baseline\"}],i=[{value:\"BASELINE_TYPE\",label:\"baseline_type\"},{value:\"EVENT_TARGET_TEMPLATE\",label:\"event_targets_template\"}]},20034:(e,t,n)=>{\"use strict\";var r=n(94901);e.exports=function(e){return\"object\"==typeof e?null!==e:r(e)}},20181:(e,t,n)=>{var r=/^\\s+|\\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt,s=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u=\"object\"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function(\"return this\")(),d=Object.prototype.toString,p=Math.max,f=Math.min,g=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&(\"object\"==t||\"function\"==t)}function m(e){if(\"number\"==typeof e)return e;if(function(e){return\"symbol\"==typeof e||function(e){return!!e&&\"object\"==typeof e}(e)&&\"[object Symbol]\"==d.call(e)}(e))return NaN;if(h(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=e.replace(r,\"\");var n=a.test(e);return n||i.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,l,s,u=0,c=!1,d=!1,v=!0;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");function A(t){var n=r,a=o;return r=o=void 0,u=t,i=e.apply(a,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=a}function E(){var e=g();if(y(e))return b(e);l=setTimeout(E,function(e){var n=t-(e-s);return d?f(n,a-(e-u)):n}(e))}function b(e){return l=void 0,v&&r?A(e):(r=o=void 0,i)}function _(){var e=g(),n=y(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(E,t),c?A(e):i}(s);if(d)return l=setTimeout(E,t),A(s)}return void 0===l&&(l=setTimeout(E,t)),i}return t=m(t)||0,h(n)&&(c=!!n.leading,a=(d=\"maxWait\"in n)?p(m(n.maxWait)||0,t):a,v=\"trailing\"in n?!!n.trailing:v),_.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},_.flush=function(){return void 0===l?i:b(g())},_}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},20376:(e,t)=>{\"use strict\";var n;t.J=void 0,(n=t.J||(t.J={})).IdentityCheck=\"IdentityCheck\",n.DeepValueCheck=\"DeepValueCheck\",n.NoCheck=\"NoCheck\"},20397:(e,t,n)=>{\"use strict\";var r=n(97751);e.exports=r(\"document\",\"documentElement\")},20426:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},20456:(e,t,n)=>{\"use strict\";e.exports=n.p+\"c23e1f78719e1ddf61f9.eot\"},20561:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(58168),o=n(81970),a=n(75765),i=n(74848);function l(e,t){function n(n,o){return(0,i.jsx)(a.A,(0,r.A)({\"data-testid\":`${t}Icon`,ref:o},n,{children:e}))}return n.muiName=a.A.muiName,o.memo(o.forwardRef(n))}},20566:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var l=n(64436),s=i(n(81970)),u=n(98400),c=n(9670),d=n(67991),p=n(63981),f=s.forwardRef(function(e,t){var n=s.useContext(u.BeansContext).context,o=s.useRef(null),a=s.useRef(null),i=s.useRef(null),g=s.useRef(null),h=s.useRef(null),m=s.useState(),v=m[0],A=m[1],y=s.useState(),E=y[0],b=y[1],_=s.useState(),C=_[0],w=_[1],S=s.useState(new p.CssClasses),T=S[0],O=S[1],D=s.useState(new p.CssClasses(\"ag-hidden\")),R=D[0],N=D[1],L=s.useState(new p.CssClasses(\"ag-hidden\")),P=L[0],M=L[1],x=s.useState(new p.CssClasses(\"ag-invisible\")),I=x[0],k=x[1];s.useImperativeHandle(t,function(){return{refresh:function(){return!1}}}),s.useLayoutEffect(function(){return c.showJsComp(v,n,a.current)},[v]),d.useLayoutEffectOnce(function(){var t={setInnerRenderer:function(e,t){A(e),w(t)},setChildCount:function(e){return b(e)},addOrRemoveCssClass:function(e,t){return O(function(n){return n.setClass(e,t)})},setContractedDisplayed:function(e){return M(function(t){return t.setClass(\"ag-hidden\",!e)})},setExpandedDisplayed:function(e){return N(function(t){return t.setClass(\"ag-hidden\",!e)})},setCheckboxVisible:function(e){return k(function(t){return t.setClass(\"ag-invisible\",!e)})}},r=n.createBean(new l.GroupCellRendererCtrl);return r.init(t,o.current,i.current,g.current,h.current,f,e),function(){n.destroyBean(r)}});var B=s.useMemo(function(){return\"ag-cell-wrapper \"+T.toString()},[T]),F=s.useMemo(function(){return\"ag-group-expanded \"+R.toString()},[R]),j=s.useMemo(function(){return\"ag-group-contracted \"+P.toString()},[P]),H=s.useMemo(function(){return\"ag-group-checkbox \"+I.toString()},[I]),U=v&&v.componentFromFramework,Y=U?v.componentClass:void 0,G=null==v&&null!=C,z=l._.escapeString(C,!0);return s.default.createElement(\"span\",r({className:B,ref:o},e.colDef?{}:{role:\"gridcell\"}),s.default.createElement(\"span\",{className:F,ref:g}),s.default.createElement(\"span\",{className:j,ref:h}),s.default.createElement(\"span\",{className:H,ref:i}),s.default.createElement(\"span\",{className:\"ag-group-value\",ref:a},G&&s.default.createElement(s.default.Fragment,null,z),U&&s.default.createElement(Y,r({},v.params))),s.default.createElement(\"span\",{className:\"ag-group-child-count\"},E))});t.default=f},20573:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M5 15h2V8.41L18.59 20 20 18.59 8.41 7H15V5H5z\"}),\"NorthWest\")},20623:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>C});var r=n(81970),o=n.n(r),a=n(45708),i=n.n(a),l=n(85072),s=n.n(l),u=n(97825),c=n.n(u),d=n(77659),p=n.n(d),f=n(55056),g=n.n(f),h=n(10540),m=n.n(h),v=n(41113),A=n.n(v),y=n(78564),E={};E.styleTagTransform=A(),E.setAttributes=g(),E.insert=p().bind(null,\"head\"),E.domAPI=c(),E.insertStyleElement=m(),s()(y.A,E),y.A&&y.A.locals&&y.A.locals;var b=n(28161),_=(0,n(11848).Ay)(b.A)(function(e){var t=e.theme;return{marginBottom:t.spacing(2),\"& .ql-toolbar\":{backgroundColor:t.palette.grey[300],border:\"1px solid \".concat(t.palette.grey[300]),borderRadius:\"4px 4px 0 0\",padding:t.spacing(2),fontFamily:\"NotoSans-Medium\",\"& .ql-formats\":{marginRight:t.spacing(8),\"&:nth-of-type(2), &:nth-of-type(3)\":{\"& button\":{padding:\"2px 40px 2px 0\"}},\"& button\":{padding:\"3px 30px 3px 0\",\"&.ql-active\":{color:t.palette.success.main,\"&  .ql-fill\":{fill:t.palette.success.main},\"&  .ql-stroke\":{stroke:t.palette.success.main}},\"&:hover\":{color:t.palette.success.main,\"&  .ql-fill\":{fill:t.palette.success.main},\"&  .ql-stroke\":{stroke:t.palette.success.main}},\"&  .ql-fill \":{fill:t.palette.grey[400]},\"&  .ql-stroke \":{stroke:t.palette.grey[400]}}}},\"& .ql-container \":{borderRadius:\"0 0 4px 4px\",color:t.palette.text.secondary,border:\"1px solid \".concat(t.palette.grey[300]),font:\"normal 400 14px NotoSans-Regular\",\"& .ql-editor\":{padding:t.spacing(2),height:\"calc(100vh - 362px)\",overflow:\"auto\",\"& p\":{color:t.palette.text.secondary,font:\"normal 400 14px NotoSans-Regular\",lineHeight:\"24px\"}}}}});const C=function(e){var t=e.editorHtml,n=e.setEditorHtml,a=e.showHtmlOptions;return(0,r.useEffect)(function(){\"<p><br></p>\"===t&&n(\"\")},[t]),o().createElement(_,{id:\"genericEditor\",\"data-testid\":\"genericEditor\"},o().createElement(i(),{placeholder:\"Write something\",value:t,onChange:n,modules:a?{toolbar:[[\"bold\",\"italic\",\"underline\",\"strike\"],[{list:\"ordered\"},{list:\"bullet\"},{indent:\"-1\"},{indent:\"+1\"}]],clipboard:{matchVisual:!1}}:{toolbar:!1,clipboard:{matchVisual:!1}},formats:[\"header\",\"font\",\"size\",\"bold\",\"italic\",\"underline\",\"strike\",\"blockquote\",\"list\",\"bullet\",\"indent\",\"link\",\"image\",\"video\"],theme:\"snow\",readOnly:!a}))}},20816:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e){if(\"object\"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=(0,r.A)(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==(0,r.A)(t)?t:t+\"\"}},20838:function(e,t,n){!function(e){\"use strict\";var t=\"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.\".split(\"_\"),n=\"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic\".split(\"_\"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;e.defineLocale(\"es-do\",{months:\"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"domingo_lunes_martes_miércoles_jueves_viernes_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mié._jue._vie._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY h:mm A\",LLLL:\"dddd, D [de] MMMM [de] YYYY h:mm A\"},calendar:{sameDay:function(){return\"[hoy a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextDay:function(){return\"[mañana a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextWeek:function(){return\"dddd [a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastDay:function(){return\"[ayer a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [pasado a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"en %s\",past:\"hace %s\",s:\"unos segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"una hora\",hh:\"%d horas\",d:\"un día\",dd:\"%d días\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un año\",yy:\"%d años\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},20852:(e,t,n)=>{n(53742);var r=n(6791).Object;e.exports=function(e,t){return r.create(e,t)}},20973:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>g});var r=n(58168),o=n(98587),a=n(81970),i=n(80851),l=n(57223),s=n(44675),u=n(35186),c=n(96852),d=n(74848);const p=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"],f={entering:{opacity:1},entered:{opacity:1}},g=a.forwardRef(function(e,t){const n=(0,s.A)(),g={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:h,appear:m=!0,children:v,easing:A,in:y,onEnter:E,onEntered:b,onEntering:_,onExit:C,onExited:w,onExiting:S,style:T,timeout:O=g,TransitionComponent:D=i.Ay}=e,R=(0,o.A)(e,p),N=a.useRef(null),L=(0,c.A)(N,(0,l.A)(v),t),P=e=>t=>{if(e){const n=N.current;void 0===t?e(n):e(n,t)}},M=P(_),x=P((e,t)=>{(0,u.q)(e);const r=(0,u.c)({style:T,timeout:O,easing:A},{mode:\"enter\"});e.style.webkitTransition=n.transitions.create(\"opacity\",r),e.style.transition=n.transitions.create(\"opacity\",r),E&&E(e,t)}),I=P(b),k=P(S),B=P(e=>{const t=(0,u.c)({style:T,timeout:O,easing:A},{mode:\"exit\"});e.style.webkitTransition=n.transitions.create(\"opacity\",t),e.style.transition=n.transitions.create(\"opacity\",t),C&&C(e)}),F=P(w);return(0,d.jsx)(D,(0,r.A)({appear:m,in:y,nodeRef:N,onEnter:x,onEntered:I,onEntering:M,onExit:B,onExited:F,onExiting:k,addEndListener:e=>{h&&h(N.current,e)},timeout:O},R,{children:(e,t)=>a.cloneElement(v,(0,r.A)({style:(0,r.A)({opacity:0,visibility:\"exited\"!==e||y?void 0:\"hidden\"},f[e],T,v.props.style),ref:L},t))}))})},21007:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r}),n(76031);const r=function(e,t){var n;return function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){e.apply(r,a)},t)}}},21020:(e,t,n)=>{\"use strict\";var r=n(81970),o=Symbol.for(\"react.element\"),a=Symbol.for(\"react.fragment\"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=\"\"+n),void 0!==t.key&&(u=\"\"+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},21135:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"vi\",{months:\"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12\".split(\"_\"),monthsShort:\"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12\".split(\"_\"),monthsParseExact:!0,weekdays:\"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy\".split(\"_\"),weekdaysShort:\"CN_T2_T3_T4_T5_T6_T7\".split(\"_\"),weekdaysMin:\"CN_T2_T3_T4_T5_T6_T7\".split(\"_\"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?\"sa\":\"SA\":n?\"ch\":\"CH\"},longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM [năm] YYYY\",LLL:\"D MMMM [năm] YYYY HH:mm\",LLLL:\"dddd, D MMMM [năm] YYYY HH:mm\",l:\"DD/M/YYYY\",ll:\"D MMM YYYY\",lll:\"D MMM YYYY HH:mm\",llll:\"ddd, D MMM YYYY HH:mm\"},calendar:{sameDay:\"[Hôm nay lúc] LT\",nextDay:\"[Ngày mai lúc] LT\",nextWeek:\"dddd [tuần tới lúc] LT\",lastDay:\"[Hôm qua lúc] LT\",lastWeek:\"dddd [tuần trước lúc] LT\",sameElse:\"L\"},relativeTime:{future:\"%s tới\",past:\"%s trước\",s:\"vài giây\",ss:\"%d giây\",m:\"một phút\",mm:\"%d phút\",h:\"một giờ\",hh:\"%d giờ\",d:\"một ngày\",dd:\"%d ngày\",w:\"một tuần\",ww:\"%d tuần\",M:\"một tháng\",MM:\"%d tháng\",y:\"một năm\",yy:\"%d năm\"},dayOfMonthOrdinalParse:/\\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},21239:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(64745),o=n(12092),a=n(9378),i=n(14073),l=n(2543),s=n.n(l),u=n(81970),c=n.n(u),d=n(6398),p=n(17630),f=(0,d.A)({searchFieldHelper:{marginLeft:\"auto\",border:\"1px solid \".concat(p.w.palette.grey[300]),color:\"\".concat(p.w.palette.grey[500],\" !important\"),backgroundColor:\"\".concat(p.w.palette.secondary.dark),borderRadius:p.w.shape.borderRadius,font:\"normal normal 400 14px NotoSans-Regular !important\",\"&.Mui-focused\":{border:\"1px solid \".concat(p.w.palette.grey[300])},\"& .css-1o9s3wi-MuiInputBase-input-MuiOutlinedInput-input\":{padding:0,paddingLeft:7},\"& input\":{font:\"normal normal 400 14px NotoSans-Regular !important\",padding:\"12px\",\"&:placeholder\":{color:\"\".concat(p.w.palette.grey[500],\" !important\")}},\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0}},iconHelper:{color:\"#23263080\"},textFieldHelper:{width:\"100%\"}}),g=function(e){var t,n=f(),l=e.searchValue,d=e.clearSearchIcon,p=e.onResetSearchValue,g=void 0===p?function(){}:p,h=e.inputTextid;(0,u.useEffect)(function(){document.getElementById(null!=h?h:\"genericSearchField\").value=\"\",g(!1)},[e.isResetSearchValue]);var m=s().debounce(function(t){e.onSearchValueChange(t.target.value)},500);return c().createElement(\"div\",{className:n.searchFieldHelper},c().createElement(a.A,{\"data-testid\":\"genericSearchField\",id:null!=h?h:\"genericSearchField\",variant:\"outlined\",placeholder:e.placeholderText,className:n.textFieldHelper,InputProps:{startAdornment:c().createElement(r.A,{fontSize:\"small\",className:n.iconHelper}),endAdornment:d&&null!=l&&l.length?c().createElement(i.A,{className:\"pointer\",\"data-testid\":\"arrowBackIcon\",onClick:function(){return g(!0)}},c().createElement(o.A,{fontSize:\"small\",className:n.iconHelper})):c().createElement(c().Fragment,null)},onChange:m,title:null!==(t=e.searchBasedOn)&&void 0!==t?t:\"\"}))};const h=c().memo(g)},21270:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r={Agro_Lite_Logo:n(77097),Sakham_2_0_Logo:n(62718),cropwise_logo:n(75056),cropwise_loader:n(67957),placeholder_img:n(35926),smart_grower_logo:n(82677),syngenta_logo:n(41173),internal_server_problem:n(80509),no_shop_profile:n(66030)}},21301:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d264bb5ede8634a908c5.woff\"},21489:(e,t,n)=>{\"use strict\";n(15823)(\"Uint8\",function(e){return function(t,n,r){return e(this,t,n,r)}})},21529:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(81970);const o=\"undefined\"!=typeof window?r.useLayoutEffect:r.useEffect},21536:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>T}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(60538),o=n(51545),a=n(80663),i=n(56203),l=n(81970),s=n.n(l),u=n(96348),c=n(47225),d=n(56254),p=n(43605),f=n(92416),g=n(21239),h=n(67683),m=(n(3362),n(95692)),v=n(8085),A=n(13075);function y(e){return y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},y(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var S=function(){var e=(0,l.useContext)(c.v),t=e.BackOfficeProps,n=t.globalStore.User,y=t.baseurl,E=e.triggerShowLoader,_=e.triggerToastMsg,w=C((0,l.useState)({pageNo:0,pageSize:10}),2),S=w[0],T=w[1],O=C((0,l.useState)(0),2),D=O[0],R=O[1],N=C((0,l.useState)([]),2),L=N[0],P=N[1],M=C((0,l.useState)(\"\"),2),x=M[0],I=M[1],k=C((0,l.useState)([]),2),B=k[0],F=k[1];return(0,l.useEffect)(function(){var e;e={page_no:S.pageNo,page_size:S.pageSize,search_key:x},function(e,t,n,r){var o,a,i={};return i.domain=t,i.triggerLoader=n,i.payLoad=r,i.endPoint=v.p.GET_MY_TERRITORIES,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id},new Promise(function(e,t){var n;null===(n=m.N.get(i))||void 0===n||n.then(function(t){if(!(0,A.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})}(n,y,E,e).then(function(e){if(null!=e&&e.lables){var t,n=null==e||null===(t=e.hqGeoDataList)||void 0===t?void 0:t.map(function(e){return b(b({},null==e?void 0:e.geoDataNamesList),e)});P(n),function(e){var t;console.log(\"data\",e);var n=[];n.push({headerName:null==e?void 0:e.hqHierarchyName,field:\"hqDataName\",flex:1}),null==e||null===(t=e.geoHierarchyNamesList)||void 0===t||t.forEach(function(e){n.push({headerName:e,field:e,flex:1})}),F(n)}(null==e?void 0:e.lables),R(null==e?void 0:e.totalElements)}}).catch(function(e){_({message:e,type:\"error\"})})},[x,S]),s().createElement(h.X,null,s().createElement(o.A,null,s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,null,s().createElement(f.A,{routePathName:[{name:u.F_.My_Territories,path:u.fp.My_Territories}]}))),s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,{mt:2},s().createElement(g.A,{onSearchValueChange:function(e){I(e),T(function(e){return b(b({},e),{},{pageNo:0})})},placeholderText:(0,i.t)(\"SEARCH\"),searchValue:\"\",searchBasedOn:\"Search by HQ\"}))),s().createElement(r.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(p.A,{rows:L,columnDefs:B})),s().createElement(d.A,{totalPageCount:Math.ceil(D/S.pageSize),pageNo:S.pageNo,totalElements:D,onPageChange:function(e){T(function(t){return b(b({},t),{},{pageNo:Number(e)})})}})))};const T=(0,l.memo)(S)},21549:(e,t,n)=>{var r=n(22032),o=n(63862),a=n(66721),i=n(12749),l=n(35749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},21590:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a),l=n(4417),s=n.n(l),u=new URL(n(98235),n.b),c=i()(o()),d=s()(u);c.push([e.id,`@font-face {\\n  font-family: \"agGridAlpine\";\\n  src: url(${d});\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-alpine, .ag-theme-alpine-dark {\\n  --ag-alpine-active-color: #2196f3;\\n  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);\\n  --ag-row-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-column-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);\\n  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);\\n  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);\\n  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);\\n  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);\\n  --ag-background-color: #fff;\\n  --ag-foreground-color: #181d1f;\\n  --ag-border-color: #babfc7;\\n  --ag-secondary-border-color: #dde2eb;\\n  --ag-header-background-color: #f8f8f8;\\n  --ag-tooltip-background-color: #f8f8f8;\\n  --ag-odd-row-background-color: #fcfcfc;\\n  --ag-control-panel-background-color: #f8f8f8;\\n  --ag-subheader-background-color: #fff;\\n  --ag-invalid-color: #e02525;\\n  --ag-checkbox-unchecked-color: #999;\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-checkbox-checked-color: var(--ag-alpine-active-color);\\n  --ag-range-selection-border-color: var(--ag-alpine-active-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-input-border-color: var(--ag-border-color);\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);\\n  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);\\n  --ag-chip-background-color: rgba(24, 29, 31, 0.07);\\n  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);\\n  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);\\n  --ag-borders: solid 1px;\\n  --ag-border-radius: 3px;\\n  --ag-borders-side-button: none;\\n  --ag-side-button-selected-background-color: transparent;\\n  --ag-header-column-resize-handle-display: block;\\n  --ag-header-column-resize-handle-width: 2px;\\n  --ag-header-column-resize-handle-height: 30%;\\n  --ag-grid-size: 6px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 4);\\n  --ag-column-select-indent-size: var(--ag-icon-size);\\n  --ag-set-filter-indent-size: var(--ag-icon-size);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);\\n  --ag-toggle-button-height: 18px;\\n  --ag-toggle-button-width: 28px;\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 13px;\\n  --ag-icon-font-family: agGridAlpine;\\n  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);\\n  --ag-selected-tab-underline-width: 2px;\\n  --ag-selected-tab-underline-transition-speed: 0.3s;\\n  --ag-tab-min-width: 240px;\\n  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  --ag-popup-shadow: var(--ag-card-shadow);\\n  --ag-side-bar-panel-width: 250px;\\n}\\n\\n.ag-theme-alpine-dark {\\n  --ag-background-color: #181d1f;\\n  --ag-foreground-color: #fff;\\n  --ag-border-color: #68686e;\\n  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);\\n  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);\\n  --ag-header-background-color: #222628;\\n  --ag-tooltip-background-color: #222628;\\n  --ag-odd-row-background-color: #222628;\\n  --ag-control-panel-background-color: #222628;\\n  --ag-subheader-background-color: #000;\\n  --ag-input-disabled-background-color: #282c2f;\\n  --ag-input-focus-box-shadow:\\n      0 0 2px 0.5px rgba(255, 255, 255, 0.5),\\n      0 0 4px 3px var(--ag-input-focus-border-color);\\n  --ag-card-shadow: 0 1px 20px 1px black;\\n  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);\\n  --ag-chip-background-color: rgba(255, 255, 255, 0.07);\\n  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);\\n  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-header,\\n.ag-theme-alpine .ag-filter-toolpanel-search,\\n.ag-theme-alpine .ag-status-bar,\\n.ag-theme-alpine .ag-header-row,\\n.ag-theme-alpine .ag-panel-title-bar-title,\\n.ag-theme-alpine .ag-multi-filter-group-title-bar, .ag-theme-alpine-dark .ag-filter-toolpanel-header,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-search,\\n.ag-theme-alpine-dark .ag-status-bar,\\n.ag-theme-alpine-dark .ag-header-row,\\n.ag-theme-alpine-dark .ag-panel-title-bar-title,\\n.ag-theme-alpine-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 700;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-alpine .ag-row, .ag-theme-alpine-dark .ag-row {\\n  font-size: calc(var(--ag-font-size) + 1px);\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]),\\n.ag-theme-alpine input[class^=ag-][type=text],\\n.ag-theme-alpine input[class^=ag-][type=number],\\n.ag-theme-alpine input[class^=ag-][type=tel],\\n.ag-theme-alpine input[class^=ag-][type=date],\\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine textarea[class^=ag-], .ag-theme-alpine-dark input[class^=ag-]:not([type]),\\n.ag-theme-alpine-dark input[class^=ag-][type=text],\\n.ag-theme-alpine-dark input[class^=ag-][type=number],\\n.ag-theme-alpine-dark input[class^=ag-][type=tel],\\n.ag-theme-alpine-dark input[class^=ag-][type=date],\\n.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine-dark textarea[class^=ag-] {\\n  min-height: calc(var(--ag-grid-size) * 4);\\n  border-radius: var(--ag-border-radius);\\n}\\n.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-tab, .ag-theme-alpine-dark .ag-tab {\\n  padding: calc(var(--ag-grid-size) * 1.5);\\n  transition: color 0.4s;\\n  flex: 1 1 auto;\\n}\\n.ag-theme-alpine .ag-tab-selected, .ag-theme-alpine-dark .ag-tab-selected {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-menu, .ag-theme-alpine-dark .ag-menu {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-menu-header, .ag-theme-alpine-dark .ag-menu-header {\\n  background-color: var(--ag-control-panel-background-color);\\n  padding-top: 1px;\\n}\\n.ag-theme-alpine .ag-tabs-header, .ag-theme-alpine-dark .ag-tabs-header {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine .ag-charts-data-group-title-bar,\\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-data-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar {\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail, .ag-theme-alpine-dark .ag-chart-mini-thumbnail {\\n  background-color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-settings-nav-bar, .ag-theme-alpine-dark .ag-chart-settings-nav-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar {\\n  margin-top: var(--ag-grid-size);\\n}\\n.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar {\\n  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar {\\n  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-sub-level-group, .ag-theme-alpine-dark .ag-charts-format-sub-level-group {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  padding-left: var(--ag-grid-size);\\n  margin-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar {\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  background: none;\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-container {\\n  padding-bottom: 0;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child {\\n  margin-bottom: 0;\\n}\\n.ag-theme-alpine.ag-dnd-ghost, .ag-theme-alpine-dark.ag-dnd-ghost {\\n  font-size: calc(var(--ag-font-size) - 1px);\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-side-buttons, .ag-theme-alpine-dark .ag-side-buttons {\\n  width: calc(var(--ag-grid-size) * 5);\\n}\\n.ag-theme-alpine .ag-standard-button, .ag-theme-alpine-dark .ag-standard-button {\\n  appearance: none;\\n  -webkit-appearance: none;\\n  border-radius: var(--ag-border-radius);\\n  border: 1px solid;\\n  border-color: var(--ag-alpine-active-color);\\n  color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-background-color);\\n  font-weight: 600;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-standard-button:hover, .ag-theme-alpine-dark .ag-standard-button:hover {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-row-hover-color);\\n}\\n.ag-theme-alpine .ag-standard-button:active, .ag-theme-alpine-dark .ag-standard-button:active {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-alpine-active-color);\\n  color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-standard-button:disabled, .ag-theme-alpine-dark .ag-standard-button:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\n.ag-theme-alpine .ag-column-drop-vertical, .ag-theme-alpine-dark .ag-column-drop-vertical {\\n  min-height: 75px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-title-bar, .ag-theme-alpine-dark .ag-column-drop-vertical-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: 0px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-empty-message, .ag-theme-alpine-dark .ag-column-drop-vertical-empty-message {\\n  display: flex;\\n  align-items: center;\\n  border: dashed 1px;\\n  border-color: var(--ag-border-color);\\n  margin: calc(var(--ag-grid-size) * 2);\\n  padding: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-column-drop-empty-message, .ag-theme-alpine-dark .ag-column-drop-empty-message {\\n  color: var(--ag-foreground-color);\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-status-bar, .ag-theme-alpine-dark .ag-status-bar {\\n  font-weight: normal;\\n}\\n.ag-theme-alpine .ag-status-name-value-value, .ag-theme-alpine-dark .ag-status-name-value-value {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number, .ag-theme-alpine-dark .ag-paging-number, .ag-theme-alpine-dark .ag-paging-row-summary-panel-number {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button, .ag-theme-alpine-dark .ag-column-drop-cell-button {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button:hover, .ag-theme-alpine-dark .ag-column-drop-cell-button:hover {\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine .ag-side-button-button:hover,\\n.ag-theme-alpine .ag-tab:hover,\\n.ag-theme-alpine .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine .ag-header-expand-icon:hover,\\n.ag-theme-alpine .ag-column-group-icons:hover,\\n.ag-theme-alpine .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine .ag-chart-settings-prev:hover,\\n.ag-theme-alpine .ag-chart-settings-next:hover,\\n.ag-theme-alpine .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine .ag-column-select-header-icon:hover,\\n.ag-theme-alpine .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine .ag-chart-menu-icon:hover,\\n.ag-theme-alpine .ag-chart-menu-close:hover, .ag-theme-alpine-dark .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine-dark .ag-side-button-button:hover,\\n.ag-theme-alpine-dark .ag-tab:hover,\\n.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine-dark .ag-header-expand-icon:hover,\\n.ag-theme-alpine-dark .ag-column-group-icons:hover,\\n.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-prev:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-next:hover,\\n.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine-dark .ag-column-select-header-icon:hover,\\n.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-close:hover {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close, .ag-theme-alpine-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  border-right: none;\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover, .ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover {\\n  opacity: 0.35;\\n}\\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter {\\n  border: none;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  margin-left: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter {\\n  border-right: dashed 1px;\\n  border-right-color: var(--ag-border-color);\\n  margin-right: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine-dark .ag-set-filter-list {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container {\\n  min-height: 150px;\\n}\\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height, .ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 60px;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-entry-is-current, .ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current {\\n  background-color: var(--ag-alpine-active-color);\\n}\\n\\n.ag-theme-alpine-dark {\\n  color-scheme: dark;\\n}\\n`,\"\",{version:3,sources:[\"webpack://./node_modules/ag-grid-community/styles/ag-theme-alpine.css\"],names:[],mappings:\"AAAA;EACE,2BAA2B;EAC3B,4CAA+lM;EAC/lM,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,iCAAiC;EACjC,2DAA2D;EAC3D,6CAA6C;EAC7C,gDAAgD;EAChD,sDAAsD;EACtD,8DAA8D;EAC9D,iEAAiE;EACjE,iEAAiE;EACjE,iEAAiE;EACjE,2BAA2B;EAC3B,8BAA8B;EAC9B,0BAA0B;EAC1B,oCAAoC;EACpC,qCAAqC;EACrC,sCAAsC;EACtC,sCAAsC;EACtC,4CAA4C;EAC5C,qCAAqC;EACrC,2BAA2B;EAC3B,mCAAmC;EACnC,0DAA0D;EAC1D,0DAA0D;EAC1D,gEAAgE;EAChE,2DAA2D;EAC3D,+CAA+C;EAC/C,wDAAwD;EACxD,8EAA8E;EAC9E,qDAAqD;EACrD,kDAAkD;EAClD,0DAA0D;EAC1D,+DAA+D;EAC/D,uBAAuB;EACvB,uBAAuB;EACvB,8BAA8B;EAC9B,uDAAuD;EACvD,+CAA+C;EAC/C,2CAA2C;EAC3C,4CAA4C;EAC5C,mBAAmB;EACnB,oBAAoB;EACpB,8CAA8C;EAC9C,iDAAiD;EACjD,oDAAoD;EACpD,mDAAmD;EACnD,gDAAgD;EAChD,2DAA2D;EAC3D,uDAAuD;EACvD,qEAAqE;EACrE,uEAAuE;EACvE,6DAA6D;EAC7D,+BAA+B;EAC/B,8BAA8B;EAC9B,qIAAqI;EACrI,oBAAoB;EACpB,mCAAmC;EACnC,gEAAgE;EAChE,sCAAsC;EACtC,kDAAkD;EAClD,yBAAyB;EACzB,wDAAwD;EACxD,wCAAwC;EACxC,gCAAgC;AAClC;;AAEA;EACE,8BAA8B;EAC9B,2BAA2B;EAC3B,0BAA0B;EAC1B,kDAAkD;EAClD,2DAA2D;EAC3D,qCAAqC;EACrC,sCAAsC;EACtC,sCAAsC;EACtC,4CAA4C;EAC5C,qCAAqC;EACrC,6CAA6C;EAC7C;;oDAEkD;EAClD,sCAAsC;EACtC,wDAAwD;EACxD,qDAAqD;EACrD,0DAA0D;EAC1D,+DAA+D;AACjE;;AAEA;;;;;;;;;;;EAWE,gBAAgB;EAChB,wCAAwC;AAC1C;AACA;EACE,0CAA0C;AAC5C;AACA;;;;;;;;;;;;;EAaE,yCAAyC;EACzC,sCAAsC;AACxC;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,wCAAwC;EACxC,sBAAsB;EACtB,cAAc;AAChB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,0DAA0D;AAC5D;AACA;EACE,0DAA0D;EAC1D,gBAAgB;AAClB;AACA;EACE,uDAAuD;AACzD;AACA;;;;;EAKE,0DAA0D;EAC1D,kEAAkE;AACpE;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,wEAAwE;AAC1E;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,gCAAgC;AAClC;;AAEA;EACE,+BAA+B;AACjC;AACA;EACE,uEAAuE;AACzE;;AAEA;EACE,wEAAwE;AAC1E;;AAEA;EACE,uBAAuB;EACvB,yCAAyC;EACzC,iCAAiC;EACjC,4CAA4C;AAC9C;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0CAA0C;EAC1C,gBAAgB;AAClB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,sCAAsC;EACtC,iBAAiB;EACjB,2CAA2C;EAC3C,oCAAoC;EACpC,4CAA4C;EAC5C,gBAAgB;EAChB,0DAA0D;AAC5D;AACA;EACE,2CAA2C;EAC3C,2CAA2C;AAC7C;AACA;EACE,2CAA2C;EAC3C,+CAA+C;EAC/C,iCAAiC;AACnC;AACA;EACE,0CAA0C;EAC1C,2DAA2D;EAC3D,mDAAmD;AACrD;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sCAAsC;EACtC,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,oCAAoC;EACpC,qCAAqC;EACrC,sCAAsC;AACxC;AACA;EACE,iCAAiC;EACjC,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCE,oCAAoC;AACtC;AACA;EACE,sCAAsC;AACxC;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,6CAA6C;EAC7C,wCAAwC;EACxC,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,0CAA0C;EAC1C,iCAAiC;AACnC;;AAEA;EACE,2CAA2C;EAC3C,gCAAgC;AAClC;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,YAAY;EACZ,0DAA0D;AAC5D;AACA;EACE,uBAAuB;EACvB,yCAAyC;EACzC,4CAA4C;AAC9C;;AAEA;EACE,wBAAwB;EACxB,0CAA0C;EAC1C,6CAA6C;AAC/C;;AAEA;EACE,4CAA4C;EAC5C,+CAA+C;AACjD;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,+CAA+C;AACjD;;AAEA;EACE,kBAAkB;AACpB\",sourcesContent:['@font-face {\\n  font-family: \"agGridAlpine\";\\n  src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABIkAAsAAAAAJkAAABHTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIkABmAAiyoKp0ygSgE2AiQDgjALgRoABCAFhEYHhRwbXyFFIbBxAJDYv7AiqieV7P96QZO4Gu9qEMLAgorXqyjcVJKxQxvbtQieEq6u3unbTP3JwOa8v9MeN5Q8Caix/+09wyXRVJ6IfU2IWoiiiWgSIp5JhMSQaX44l/dN+kSUcPER5OzkhHT7gd9m7/PN/wkLMCowCmy8M+qHlXA73abzZiEb3DVcFEavrFyzTvMyXLeieOl4CQlIYbBNxUopM8Nip4zZ0vd82bEQmAQkTsiVYMv9DdPoIJ9DCT5BRcD/P/dqmWTV4A1khZ6f04HXNve+mwJnKdEvp5wBsgWC/5ues98OENRmp4Dl3IQnoXcm1Jydm/+MzfZ0da0rjEJkDPufQ66CYNqwBz9fhdkubhpvRgCmW3MZ9WZ/0uxT+y+dsRzmrRhA3DGcOn50v6mbLFgQE4TvcWyxpK4fl3wNVrgUXkcWRp2jpdEz0efRd9H/kLC2pYAY6p8bw1GEICmaIYgthlYsNmTaHE5dVpnJdT5rWQJjpIs2p6m7ldKIo45RDyqaUsSD6yDj7q/uKinhvdMmTBLlEbCopjVbTsRV0kGei7DXN54VtteylXaUdDSPaa+Ac+UhaYEJNa52HUV2kA3cQVq+tcAxp7Qg6+K2mETrApdi6y3eLMI7dcZFkraCSQ6fzNip7qiKcLCVq+hvOa+AcXspHXiIvvxUcX3a1wHrxZzkxYFOPnjf2Xg8Ude1oja/f90i7i5lKbx40E0ta2DETVJc1dUZ9731xTff/fQfAlOFFHn4ADa/ImNPzMrDspK+zTTH3fmko4S0xESEddPEKWoamIMWga2TmJgoWgsM4TRYdzRdSNbprCHLhgWnnE8zmBjTQzBCwjSHsNniQK3NttnmW3czBzI2JyyqamyrrpUbo0ujalAu3kWxjDzTJqyQU1wXgKVTps2ZdOequYYwYi9NleshqbVeXtI50VQwtbP69rfCNLch55ioujFqKGxo4mYj7c/yesxOmNzAPsTNyMw+pNzaEJRX6LjuTpooygim0BCQROxcCPpaO1xHDSO5mK5Y5GG4Lw4iNyIfcJu9+/DD5sAAEWaUd0mjRxqHfLH+F0FXsSNWFX9FGg/mYsDpOQqsA2IgMl1cHmJQWLcOEuU9GOwfM4UZsIU/59z49b95g/V+nXThF1LJnhHE/dZ1QxxYnrlTMF9xt6IhJF+RyJoCJwPOOJecvbaewIBgpuDiQsMiomLiEpJS0jKyctRai0rKKvhFWFPX0NTS1tHV0zcwNDI2MTUzt7C00ra2sQUhwRvONbatFefI79QbbmnxpFVf//15cb7l9tcep/1MQPQxGvpYv1cOfT/YVuAAq+AgKwCHWB2HWRI4wro4yrYBx1gJOM7SwElWxilWBE6zBs6wLHCWZYBzrIULbDtwkeWBSywFXGZNXGEdXGU54Bqr4jpr48bAHr+AvkSAEAVCDAhxICSAkARCChBSgZAGhHQgZAAhEwhZQMgGQg4QcoGQB4R8IBQAoRAIRUAoBkIJEEqBUAaEciBUAKESCFVAqAZCDRBqgVAHhHogNAChEQhNQGgGQgsQWoHQBoR2IHQAoRMIXUDoBkIP1K7TC/SmDwj9AEiyyBPxCDeJ32Jq/L5SuCTQgA+9YgrDr0OwVUVexYVeyFNcwF0FuoE0V1IcHYu52gT+0kXBK4nr6el0CcZlMiPM9IKDQY100KueobGOYYxqXmE2bizVAIvs3nqFKcc2YSnyk3Q66OkY8nTCVJah4UHTi65clskzVJytzLmz0OWG+nq6ehZcVgN2CUBdufG7YapTyZhAEsBCmDTFKiHIKIpeKyIJIV1OElQuSUcvo0RIF3kpyKIZOErmSCplKmKxYhTkUoyaXolRUsvfwaJMisimqRySziJkuA5G4YBJcQYmM1KdmYYUM2dxY/X5OURfOXuuSUKTUvLpEAvZCEemZ6S/uQf1kkyysiqfJsnvzYbNx8FV9QKi9O3ylLF1OaUYAy/Yp+PoaciqKjvhIGOqrgDDdVlkUKq4irNkPegq57Eipi6rWqrHMyGppKQSWtZGLfNK70FU8OU882IMadJnkR3cThwvKld0DA9jqsHRrq4+RLltSour902A71VtvK5RTDUNekfUY1bt7WoNqRjfi6lc227klPfOTg2uHkOUXYO8wdFJ5dTYMHeMdJ7lvq1LNQw0Gq7LDq7m3YIm6XY+omzVKGDi++/FrjYexeNdwt5ZLWnrH9vFXdPkSZeWFIuLquVlRBlPESMzkDpP5coKrg4uU+0dV0zsU2unlJP7a1RXiPGinJeSBe19ozvNZNkEOtaEyqyS9jSDpjpmVw7h6hELkuYPSG6xBbgTpKbTru2qQR7Vtr63Y6pRRLleIs0iyOpsEbnSrrMmuWbTi1HRUdmL2OLyMsXjz62Qexf9l2YprqazKVG6XCaisrR9qPEmV+jlrFDVq1cCY3GRkEovXwl+GbHYL4PilZUK5dJH8W1lBBAohXBqSMhB6HqKziZICc7AaAzByf2crEsnlgETqQA2kueLAAWoywPhAIuVlpBEliUohuuZSWdXVuVQrALl8ct4Rd4KNSy9dAwh50x3FRjg6otHl45cwKC2tRbjYChuC/a1mVROBRNh1eyBjmFtHkr5EgPF4fqz4DIWA0NuMjCZ0evIPq2gIKUKZLbn3UsbKSKaJkmCEpH0DMysVEbyRHQf/XxVHlquUi0LpQeXQFFpDBnWd0l1wRqbBwGcc2OqRxTDqlHl2Bq2Lg4sBJdS/Hb/VZgS70mk+/zGIof4Ve7j7ntDCK7GYov3eJgzRQirt5t1cC2IU4IT7lX8MbtuR0uaq8E1/CErSrZracnmx9yexUXBH+W7l5dtfyroX1kJ/buMrbNE71mwW6lRcHuvBrsgUrPXE+QZryHAuK83Dzja7GToaa8xu3UKBxyhFu1xhFaprlgTOIJXAG7bNx9Svh0TAE6fwgBvnA5l8HzFV3wlrzKbVDSoS1RTo/aeqieNT83co86TR95gAusmS1J/b6/lALsa18FKLKl5ZVWFVFIgvSxS8j0JXcLNbCTmGDUaxEjQuyjIOr+CrPdPYCS+gTyzCFdPP+XcZTcSyJ0tp8H3b5+HomdemfChsI0ZbXD9VUCKUO2xrGivk03b1tZH07k08kT6JVFe0Z5h8EHX6uoL4sX/q6Op8AJ28Zq60rDikJDisNK/WtobLw4pDfsrJ33yOzXfF3QiVRNeBVhVsOSBcu0z+XN5Q4O8UQ6h361itj7ztmfxvI8t3h8HJ4zLTUs7fWrHjrR0setzL+9ab356MzZX5T+wXugerh8dGOgqL2cwoqNO17WdPnV6Knp8/IvrpIUjJIKjBXHjCwi88rwuqG5XazcytQ0Hn8Ya4Nf7hM3Y0F+fnSN4oYceOoGjmBA/bM0+7whOYkdwZCWOYicot13nxefhQXBuXlxcXsorGUos0XKdE4TM/y+t2rhemTCDuEndAtwkbiH7/2vip3NXrP5uaPoMWTRwjzH6CVk/sMz80mbezEga8Lw/get4YiNqyo90NTHsYzVHvRfE4c8F2u+vsqdpi03s3mm2hTmXZ8M+99AE/4Ld8k7tDaYxZcIe4D8K2Qq+Zn/xTFp1Grn9rDUR6X/amrAM84fjeLztp0x6Ir/w3O+hNfcEbjPekIrpmgsWzNe1c/YWmQde9DXA+k3qYIIZvOlQyErOpYXYGI8gMiCQlHQMGSg5fgAZJIwpayqqdyuwD8prEtdABgS52gykWJ7tCe4+G7yvO7hnH4q4NWY0prsWXWnk288F2nai4hAIjB+a0FQZmac3fzq36e13v6h5myfiGDs+icwT5fVdJU4YcPyYxqlpNTlNh743+cLczDyY3kQ1B3+ia8Cx55hArTZ0ZoXdfv5eHv62C1qxmHQvobrj61usMzw8Q+ILj13UVhUGVlPQnVDfbJUREZ6SVllqcCE+O8AiprRcEZKclew00hfslezhkeQVjOmXNAblxB7FRJBYnBbhlG8eUyZR8wWg5uIt/aQ732hfdUVpuUWM+pgR/1hl1Ld0x080OZ+HdbKVVUb4x92e2qSWdhoZGhAy2+aSnv3a3FUjmsoS/jS73ur58Sd4LDh8qHB0MJZzD4iHBNj02HKhtlUkF+1vDRcVKMwPI1quwUudMEwYqhUFilp3yUXyWSqUP2sNrJMNojBR67Mk7CothruzDWLjsqXAxPbF6urI5MHIc+kVtj5wspx1GswYDC8JDS3e0NKG8FRPTrOWTiMe6UR6w45FMSR6VgkvqXMDlqmC1E9dHj+WJHoeEknyogSpgrmUzML6dNb1kJKMoCuVvMMuYWNj7q8IEhuLIL/qL5g+IvJ+8fQLBF4NrxPWyetE+/WFdSDc5S4fMr18lgX4OT6jr7yhR8JC4R+bu6HaE3leH0VT5dXtSg8OFHineqWkeKV6F4RLnbbMz1s6SVNNkRZe1hsEfFA9ufgq89WJKUdw7N5TMrMkGX/i9IkjXnzBreRuQj4gJyBT/s03BpYR6erTXavvlpd+PRwltP3BxiZl119JSdJKXR1z54iMU+9qNH//rf3nS7+vZuWPuruLNphgFhYbK3j69cbfa+q/w/9Y5t9bWIAA05HaBA+PBH3UujT9kP5QG8wCzd/D5hfhobd1bxk4BJkY3HpywZhjEuRwV7aP3aEliBxC+2mtu0dSomfde59qk/eI0HbeFfC+XTIMsUnSb93UchDe0pFvFj4VpGzUgeIWkeiArLUFUe7bhjEd/nXr5kOtteJNm2Hi3ugrqjHy6tXoul+VFLrmuqhULrmuhRda2ukq1X3Vha4XOO71Kj5cWxiSJxDkhRT+lFJuPE9QGPJTris8uJWwIS5uw6chRdqn4V8X/6yZcrv42JGXsqSZUAz/rF493qxzp0XTYbeEgUL4p4udVqXgMYeeEtiQ+k/WP6mc81tj+eRJXFxEuK1tbCxoY+uK6+DehFlmdIWSVAjHj88iBzwkoetChLAsKtxmvsR9R2FOjoG4WqloF78TEz7fbsdhJe4BSdoRG4qLkpMHB4P27oPWzW/evN78B3jNGLdRnzcvKgS9NQQAABqnMk0jSSTYabMJrYTmkyqPplkCqkAPa1/HKABvXqLr0JvOcv3oz7rGQ4qKrtaZzPRqxD8ht3UfTJSX0rUMxkm37g16DV2FNloTqmhXqNAnVVf4FzUaUg5a02WzFZVBm6wJZFOaMFPRasShjG5pLYCiLJlXie5ATZvW4x19sim9+l+py4OFtD12JZyoRwY4ugqA5Bv+fUjhjE9/oQEwflXQYVi0KpjY78hJv0woYmXN2R96//v7AiGM+n53VSkGzJ0P4PfzQiM45QhEgscGA/Q3HICGuil8dQLtmC7g4AV6vMAQwNZ6HE6NgymsBRQQHUNAwBwULmMAGzoAReAg6CDwENMFHiyDHgJvFmBA/W8g46vh4Irkd0b4kuheUomE3xiGZCU7Qfwm/1FqZDKPGzYVXd0XEopVdKZbTB3Dk6o3XjibT6ZxSSmxKcI/CNr2quX5fuMR95pb4LxhBV9E5LxIioigb7jZfYPEEonJcoz/cA0V7xsjxqPWg6Tvl8KUJkBhdYzOcrRXo+CJ+oZn9i7Bcig+tSqSkHzge1H4rh8IXLPVK4jyf6dUM/OyZgu0cNsVjGqSXt/9sAUKBg4BCQXqTwSAL/Dq1/P/n5OUyebyhWKpXKnW6o1mq93p9vqD4Wg8mc7mi+VqvdkSyriQSlu243p+pVqrN5qtdqfb6w/kWsexg2CwGpn27AhPddse2IMgwLQLlxW9WK0Rfjuem6AY3V3mDJEcKkqOZBWvinIGkrKfQCeWpsREqOzfwyFTPYImFQuKbge6LLswXOs2nHEbXt1xWWEXv7q1g5VRrHaP7hB/bGqytd8OS/d8pRq13d1Vqu6EiWX3LOWh7JRqyppe91JRw2e5n9q6SOEgxxxzXHEnJw2PiKJzpZx1h5rwmFobmxJP6HaLhnPE7VK0W2pkPSiDY+ShXsiF3g433aDK1LD355neaFcq9LpTY8Sjej80NI4nipQ20THUKnRwJ3cYdGQ2cqWCSKQ4zLblgnQwPEN5LptWIJCKGJlUIOn96swaJxsUi5G3rg0A);\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-alpine, .ag-theme-alpine-dark {\\n  --ag-alpine-active-color: #2196f3;\\n  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);\\n  --ag-row-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-column-hover-color: rgba(33, 150, 243, 0.1);\\n  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);\\n  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);\\n  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);\\n  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);\\n  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);\\n  --ag-background-color: #fff;\\n  --ag-foreground-color: #181d1f;\\n  --ag-border-color: #babfc7;\\n  --ag-secondary-border-color: #dde2eb;\\n  --ag-header-background-color: #f8f8f8;\\n  --ag-tooltip-background-color: #f8f8f8;\\n  --ag-odd-row-background-color: #fcfcfc;\\n  --ag-control-panel-background-color: #f8f8f8;\\n  --ag-subheader-background-color: #fff;\\n  --ag-invalid-color: #e02525;\\n  --ag-checkbox-unchecked-color: #999;\\n  --ag-checkbox-background-color: var(--ag-background-color);\\n  --ag-checkbox-checked-color: var(--ag-alpine-active-color);\\n  --ag-range-selection-border-color: var(--ag-alpine-active-color);\\n  --ag-secondary-foreground-color: var(--ag-foreground-color);\\n  --ag-input-border-color: var(--ag-border-color);\\n  --ag-input-border-color-invalid: var(--ag-invalid-color);\\n  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);\\n  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);\\n  --ag-chip-background-color: rgba(24, 29, 31, 0.07);\\n  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);\\n  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);\\n  --ag-borders: solid 1px;\\n  --ag-border-radius: 3px;\\n  --ag-borders-side-button: none;\\n  --ag-side-button-selected-background-color: transparent;\\n  --ag-header-column-resize-handle-display: block;\\n  --ag-header-column-resize-handle-width: 2px;\\n  --ag-header-column-resize-handle-height: 30%;\\n  --ag-grid-size: 6px;\\n  --ag-icon-size: 16px;\\n  --ag-row-height: calc(var(--ag-grid-size) * 7);\\n  --ag-header-height: calc(var(--ag-grid-size) * 8);\\n  --ag-list-item-height: calc(var(--ag-grid-size) * 4);\\n  --ag-column-select-indent-size: var(--ag-icon-size);\\n  --ag-set-filter-indent-size: var(--ag-icon-size);\\n  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\\n  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);\\n  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);\\n  --ag-toggle-button-height: 18px;\\n  --ag-toggle-button-width: 28px;\\n  --ag-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\\n  --ag-font-size: 13px;\\n  --ag-icon-font-family: agGridAlpine;\\n  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);\\n  --ag-selected-tab-underline-width: 2px;\\n  --ag-selected-tab-underline-transition-speed: 0.3s;\\n  --ag-tab-min-width: 240px;\\n  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  --ag-popup-shadow: var(--ag-card-shadow);\\n  --ag-side-bar-panel-width: 250px;\\n}\\n\\n.ag-theme-alpine-dark {\\n  --ag-background-color: #181d1f;\\n  --ag-foreground-color: #fff;\\n  --ag-border-color: #68686e;\\n  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);\\n  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);\\n  --ag-header-background-color: #222628;\\n  --ag-tooltip-background-color: #222628;\\n  --ag-odd-row-background-color: #222628;\\n  --ag-control-panel-background-color: #222628;\\n  --ag-subheader-background-color: #000;\\n  --ag-input-disabled-background-color: #282c2f;\\n  --ag-input-focus-box-shadow:\\n      0 0 2px 0.5px rgba(255, 255, 255, 0.5),\\n      0 0 4px 3px var(--ag-input-focus-border-color);\\n  --ag-card-shadow: 0 1px 20px 1px black;\\n  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);\\n  --ag-chip-background-color: rgba(255, 255, 255, 0.07);\\n  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);\\n  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-header,\\n.ag-theme-alpine .ag-filter-toolpanel-search,\\n.ag-theme-alpine .ag-status-bar,\\n.ag-theme-alpine .ag-header-row,\\n.ag-theme-alpine .ag-panel-title-bar-title,\\n.ag-theme-alpine .ag-multi-filter-group-title-bar, .ag-theme-alpine-dark .ag-filter-toolpanel-header,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-search,\\n.ag-theme-alpine-dark .ag-status-bar,\\n.ag-theme-alpine-dark .ag-header-row,\\n.ag-theme-alpine-dark .ag-panel-title-bar-title,\\n.ag-theme-alpine-dark .ag-multi-filter-group-title-bar {\\n  font-weight: 700;\\n  color: var(--ag-header-foreground-color);\\n}\\n.ag-theme-alpine .ag-row, .ag-theme-alpine-dark .ag-row {\\n  font-size: calc(var(--ag-font-size) + 1px);\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]),\\n.ag-theme-alpine input[class^=ag-][type=text],\\n.ag-theme-alpine input[class^=ag-][type=number],\\n.ag-theme-alpine input[class^=ag-][type=tel],\\n.ag-theme-alpine input[class^=ag-][type=date],\\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine textarea[class^=ag-], .ag-theme-alpine-dark input[class^=ag-]:not([type]),\\n.ag-theme-alpine-dark input[class^=ag-][type=text],\\n.ag-theme-alpine-dark input[class^=ag-][type=number],\\n.ag-theme-alpine-dark input[class^=ag-][type=tel],\\n.ag-theme-alpine-dark input[class^=ag-][type=date],\\n.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine-dark textarea[class^=ag-] {\\n  min-height: calc(var(--ag-grid-size) * 4);\\n  border-radius: var(--ag-border-radius);\\n}\\n.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-] {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-] {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-tab, .ag-theme-alpine-dark .ag-tab {\\n  padding: calc(var(--ag-grid-size) * 1.5);\\n  transition: color 0.4s;\\n  flex: 1 1 auto;\\n}\\n.ag-theme-alpine .ag-tab-selected, .ag-theme-alpine-dark .ag-tab-selected {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-menu, .ag-theme-alpine-dark .ag-menu {\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-menu-header, .ag-theme-alpine-dark .ag-menu-header {\\n  background-color: var(--ag-control-panel-background-color);\\n  padding-top: 1px;\\n}\\n.ag-theme-alpine .ag-tabs-header, .ag-theme-alpine-dark .ag-tabs-header {\\n  border-bottom: var(--ag-borders) var(--ag-border-color);\\n}\\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine .ag-charts-data-group-title-bar,\\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-data-group-title-bar,\\n.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar {\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail, .ag-theme-alpine-dark .ag-chart-mini-thumbnail {\\n  background-color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-settings-nav-bar, .ag-theme-alpine-dark .ag-chart-settings-nav-bar {\\n  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon {\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon {\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar {\\n  margin-top: var(--ag-grid-size);\\n}\\n.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar {\\n  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar {\\n  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);\\n}\\n\\n.ag-theme-alpine .ag-charts-format-sub-level-group, .ag-theme-alpine-dark .ag-charts-format-sub-level-group {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  padding-left: var(--ag-grid-size);\\n  margin-bottom: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar {\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  background: none;\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-container {\\n  padding-bottom: 0;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child {\\n  margin-bottom: 0;\\n}\\n.ag-theme-alpine.ag-dnd-ghost, .ag-theme-alpine-dark.ag-dnd-ghost {\\n  font-size: calc(var(--ag-font-size) - 1px);\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-side-buttons, .ag-theme-alpine-dark .ag-side-buttons {\\n  width: calc(var(--ag-grid-size) * 5);\\n}\\n.ag-theme-alpine .ag-standard-button, .ag-theme-alpine-dark .ag-standard-button {\\n  appearance: none;\\n  -webkit-appearance: none;\\n  border-radius: var(--ag-border-radius);\\n  border: 1px solid;\\n  border-color: var(--ag-alpine-active-color);\\n  color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-background-color);\\n  font-weight: 600;\\n  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-standard-button:hover, .ag-theme-alpine-dark .ag-standard-button:hover {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-row-hover-color);\\n}\\n.ag-theme-alpine .ag-standard-button:active, .ag-theme-alpine-dark .ag-standard-button:active {\\n  border-color: var(--ag-alpine-active-color);\\n  background-color: var(--ag-alpine-active-color);\\n  color: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-standard-button:disabled, .ag-theme-alpine-dark .ag-standard-button:disabled {\\n  color: var(--ag-disabled-foreground-color);\\n  background-color: var(--ag-input-disabled-background-color);\\n  border-color: var(--ag-input-disabled-border-color);\\n}\\n.ag-theme-alpine .ag-column-drop-vertical, .ag-theme-alpine-dark .ag-column-drop-vertical {\\n  min-height: 75px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-title-bar, .ag-theme-alpine-dark .ag-column-drop-vertical-title-bar {\\n  padding: calc(var(--ag-grid-size) * 2);\\n  padding-bottom: 0px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-empty-message, .ag-theme-alpine-dark .ag-column-drop-vertical-empty-message {\\n  display: flex;\\n  align-items: center;\\n  border: dashed 1px;\\n  border-color: var(--ag-border-color);\\n  margin: calc(var(--ag-grid-size) * 2);\\n  padding: calc(var(--ag-grid-size) * 2);\\n}\\n.ag-theme-alpine .ag-column-drop-empty-message, .ag-theme-alpine-dark .ag-column-drop-empty-message {\\n  color: var(--ag-foreground-color);\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-status-bar, .ag-theme-alpine-dark .ag-status-bar {\\n  font-weight: normal;\\n}\\n.ag-theme-alpine .ag-status-name-value-value, .ag-theme-alpine-dark .ag-status-name-value-value {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number, .ag-theme-alpine-dark .ag-paging-number, .ag-theme-alpine-dark .ag-paging-row-summary-panel-number {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button, .ag-theme-alpine-dark .ag-column-drop-cell-button {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button:hover, .ag-theme-alpine-dark .ag-column-drop-cell-button:hover {\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine .ag-side-button-button:hover,\\n.ag-theme-alpine .ag-tab:hover,\\n.ag-theme-alpine .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine .ag-header-expand-icon:hover,\\n.ag-theme-alpine .ag-column-group-icons:hover,\\n.ag-theme-alpine .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine .ag-chart-settings-prev:hover,\\n.ag-theme-alpine .ag-chart-settings-next:hover,\\n.ag-theme-alpine .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine .ag-column-select-header-icon:hover,\\n.ag-theme-alpine .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine .ag-chart-menu-icon:hover,\\n.ag-theme-alpine .ag-chart-menu-close:hover, .ag-theme-alpine-dark .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine-dark .ag-side-button-button:hover,\\n.ag-theme-alpine-dark .ag-tab:hover,\\n.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine-dark .ag-header-expand-icon:hover,\\n.ag-theme-alpine-dark .ag-column-group-icons:hover,\\n.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,\\n.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-prev:hover,\\n.ag-theme-alpine-dark .ag-chart-settings-next:hover,\\n.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine-dark .ag-column-select-header-icon:hover,\\n.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-icon:hover,\\n.ag-theme-alpine-dark .ag-chart-menu-close:hover {\\n  color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close, .ag-theme-alpine-dark .ag-chart-menu-close {\\n  background: var(--ag-background-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon {\\n  border-color: var(--ag-alpine-active-color);\\n}\\n.ag-theme-alpine .ag-chart-menu-close .ag-icon, .ag-theme-alpine-dark .ag-chart-menu-close .ag-icon {\\n  background: var(--ag-header-background-color);\\n  border: 1px solid var(--ag-border-color);\\n  border-right: none;\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover, .ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover {\\n  opacity: 0.35;\\n}\\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: calc(var(--ag-grid-size) * 2);\\n  margin-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: calc(var(--ag-grid-size) * 2);\\n  margin-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container {\\n  padding-left: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container {\\n  padding-right: var(--ag-grid-size);\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter {\\n  border: none;\\n  background-color: var(--ag-control-panel-background-color);\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter {\\n  border-left: dashed 1px;\\n  border-left-color: var(--ag-border-color);\\n  margin-left: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter {\\n  border-right: dashed 1px;\\n  border-right-color: var(--ag-border-color);\\n  margin-right: calc(var(--ag-icon-size) * 0.5);\\n}\\n\\n.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine-dark .ag-set-filter-list {\\n  padding-top: calc(var(--ag-grid-size) * 0.5);\\n  padding-bottom: calc(var(--ag-grid-size) * 0.5);\\n}\\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container {\\n  min-height: 150px;\\n}\\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height, .ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 60px;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-entry-is-current, .ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current {\\n  background-color: var(--ag-alpine-active-color);\\n}\\n\\n.ag-theme-alpine-dark {\\n  color-scheme: dark;\\n}\\n'],sourceRoot:\"\"}]);const p=c},21595:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>P}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(15086),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r,o,a,i=n(90815),l=n(28161),s=n(14073),u=n(81970),c=n.n(u),d=n(47767),p=n(96348),f=n(47225),g=n(70380),h=n(13075),m=n(92416),v=(n(52811),n(17437)),A=n(11848),y=(0,v.i7)(r||(o=[\"\\n0% {\\n  opacity: 0;\\n}\\n30% {\\n  opacity: 0.1;\\n}\\n50% {\\n  opacity: 0.3;\\n}\\n75% {\\n  opacity: 0.5;\\n}\\n90% {\\n  opacity: 0.8;\\n}\\n100% {\\n  opacity: 1;\\n},\"],a||(a=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}})))),E=(0,A.Ay)(l.A)(function(e){return e.theme,{animation:\"\".concat(y,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .tab-input-wrapper\":{\"& .MuiInputBase-root\":{height:\"47px\"}},\"& .scroll-wrapper-cards\":{height:\"600px\",overflow:\"auto\",\"::-webkit-scrollbar\":{width:\"8px\",height:\"4px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}}}}),b=n(46374),_=n(86444),C=n(65180);function w(e){return w=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=w(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==w(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var N=(0,u.lazy)(function(){return Promise.resolve().then(n.bind(n,23944))}),L=(0,u.lazy)(function(){return Promise.resolve().then(n.bind(n,51389))});const P=function(){var e,t,n=D((0,u.useState)(null),2),r=n[0],o=n[1],a=function(e){o(e)},v=null!=r&&r.isAttendanceRegularizationRequired?\"Regularize\":\"Approvals\",A=null!=r&&r.startDate?(0,g.Yq)(r.startDate,\"DD-MMM-YYYY\"):\"-\",y=null!=r&&r.endDate?(0,g.Yq)(r.endDate,\"DD-MMM-YYYY\"):\"-\",w=(0,u.useContext)(f.v),S=w.BackOfficeProps,O=S.globalStore.User,R=S.baseurl,P=w.triggerShowLoader,M=(0,h.Rk)(O).isCountryAdmin,x=(0,d.zy)(),I=new URLSearchParams(x.search),k=null!==(e=null==I?void 0:I.get(\"tabname\"))&&void 0!==e?e:null==I?void 0:I.get(\"tabName\"),B=D((0,u.useState)(\"\"),2),F=B[0],j=B[1],H={tablist:[{id:1,tabName:\"\".concat(null!==(t=null==F?void 0:F.sales_hierarchy_code)&&void 0!==t?t:\"\",\" Attendance\"),path:p.fp.Mdo_attendance,component:c().createElement(N,{salesHierarchyId:\"\",tabName:\"attendance\",getApprovalsConfigData:a}),queryParam:{tabname:p.fp.Mdo_attendance}},{id:2,tabName:v,path:p.fp.Approval,component:c().createElement(C.default,{salesHierarchyId:\"\",tabName:\"approval\",getApprovalsConfigData:a}),queryParam:{tabname:p.fp.Approval}}],currentTabs:p.fp.Mdo_attendance},U=D((0,u.useState)(H),2),Y=U[0],G=U[1];(0,u.useEffect)(function(){(0,_.h$)(O,P,R).then(function(e){Promise.all([(0,_.uh)(O,R,P,e.data),(0,_.Sx)(O,R,P,e.data)]).then(function(t){var n,r=D(t,2),o=r[0],i=r[1];j(i.data);var l,s,u,d=null==O||null===(n=O.selectedBusinessUnit)||void 0===n||null===(n=n.userRoleControls)||void 0===n?void 0:n.roleId,f=function(e,t){var n;return null==e||null===(n=e.data)||void 0===n?void 0:n.some(function(e){return e.id===t})}(o,d);G(d&&!f?{tablist:[{id:1,tabName:\"\".concat(null!==(l=null==i||null===(s=i.data)||void 0===s?void 0:s.sales_hierarchy_code)&&void 0!==l?l:\"\",\" Attendance\"),path:p.fp.Mdo_attendance,component:c().createElement(N,{salesHierarchyId:i.data,leastMarkerId:e.data,tabName:\"attendance\",getApprovalsConfigData:a}),queryParam:{tabname:p.fp.Mdo_attendance}}],currentTabs:p.fp.Mdo_attendance}:{tablist:[{id:1,tabName:\"\".concat(null!==(u=i.data.sales_hierarchy_code)&&void 0!==u?u:\"\",\" Attendance\"),path:p.fp.Mdo_attendance,component:c().createElement(N,{salesHierarchyId:i.data,leastMarkerId:e.data,tabName:\"attendance\",getApprovalsConfigData:a}),queryParam:{tabname:p.fp.Mdo_attendance}},{id:2,tabName:v,path:p.fp.Approval,component:c().createElement(C.default,{salesHierarchyId:i.data,tabName:\"approval\",leastMarkerId:e.data,getApprovalsConfigData:a}),queryParam:{tabname:p.fp.Approval}}],currentTabs:p.fp.Mdo_attendance})})})},[]),(0,u.useEffect)(function(){k&&G(function(e){return T(T({},e),{},{currentTabs:k})})},[k,Y.tablist]),(0,u.useEffect)(function(){G(function(e){var t=e.tablist.map(function(e){return e.path===p.fp.Approval?T(T({},e),{},{tabName:v}):e});return t.some(function(t,n){var r;return t.tabName!==(null===(r=e.tablist[n])||void 0===r?void 0:r.tabName)})?T(T({},e),{},{tablist:t}):e})},[v]);var z=(0,u.useCallback)(function(){return c().createElement(d.BV,null,c().createElement(d.qh,{index:!0,element:c().createElement(d.C5,{to:k?\"\".concat(k).concat(x.search):\"\".concat(p.fp.Mdo_attendance,\"/?\").concat((0,h.Nr)({tabname:null!=k?k:p.fp.Mdo_attendance}))})}),Y.tablist.map(function(e){return c().createElement(d.qh,{key:e.id,path:\"\".concat(e.path,\"/*\"),element:e.component})}),c().createElement(d.qh,{path:\":id/\".concat(p.fp.Attendance_Details),element:c().createElement(L,null)}))},[Y]);return c().createElement(E,null,c().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},c().createElement(l.A,null,c().createElement(m.A,{routePathName:[{name:p.F_.Attendance,path:p.fp.Attendance}]}))),c().createElement(b.A,{tabStateProps:Y,handleTabChange:function(e){return function(e){G(function(t){return T(T({},t),{},{currentTabs:e})})}(e)},isParamsReq:!0}),Y.currentTabs==p.fp.Approval&&!M&&c().createElement(s.A,{mt:2,variant:\"h5\",color:\"text.secondary\"},\"Pay Cycle \".concat(null!=r&&r.isAttendanceRegularizationRequired?\"Regularization\":\"Approval\",\" Dates: \").concat(A,\" to \").concat(null!=r&&r.endDate?(0,g.yH)(r.endDate,1,\"day\",\"subtract\",\"DD-MMM-YYYY\"):y)),z())}},21672:(e,t,n)=>{var r=n(90531),o=n(14913),a=n(78381),i=Object.defineProperty;t.f=n(75872)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(e[t]=n.value),e}},21699:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(60511),i=n(67750),l=n(655),s=n(41436),u=o(\"\".indexOf);r({target:\"String\",proto:!0,forced:!s(\"includes\")},{includes:function(e){return!!~u(l(i(this)),l(a(e)),arguments.length>1?arguments[1]:void 0)}})},21770:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>U}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(80663),o=n(81970),a=n.n(o),i=n(47225),l=n(70380),s=n(56254),u=n(43605),c=n(20561),d=n(74848);const p=(0,c.A)((0,d.jsx)(\"path\",{d:\"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"}),\"ErrorOutline\");var f=n(58407),g=n(61197),h=n(92067),m=n(28161),v=n(90815),A=n(14073),y=n(34195),E=n(37998),b=n(17630),_=n(15664),C=n(36874);const w=function(e){var t,n,r,o,i,l,s=e.isDrawerOpen,c=e.onHandleClose,d=void 0===c?function(){}:c,w=e.ErrorLogItem,S=e.errLogList,T=e.isRetailerBgp,O=void 0!==T&&T,D=e.onReupload,R=void 0===D?function(){}:D,N=e.onDownload,L=void 0===N?function(){}:N,P=(0,y.Bd)().t,M=null!==(t=null!==(n=null==w?void 0:w.totalRowsCount)&&void 0!==n?n:null==w?void 0:w.total_retailers)&&void 0!==t?t:0,x=null!==(r=null!==(o=null==w?void 0:w.successRowCount)&&void 0!==o?o:null==w?void 0:w.success_rows_count)&&void 0!==r?r:0,I=null!==(i=null!==(l=null==w?void 0:w.failedRowCount)&&void 0!==l?l:null==w?void 0:w.failed_rows_count)&&void 0!==i?i:Math.max(M-x,0);return a().createElement(C.A,{isDrawerOpen:s,anchor:\"right\"},a().createElement(m.A,{className:\"popupMain customWidth \".concat(O?\"bgp-error-log-drawer\":\"\")},a().createElement(v.A,{direction:\"row\",justifyContent:\"space-between\",alignItems:\"center\",mb:3.25},a().createElement(A.A,{component:\"h1\",variant:\"h1\"},\"File:\".concat(w.fileName)),a().createElement(m.A,{onClick:d},a().createElement(A.A,{className:\"icon-close closeIcon\"}))),O?a().createElement(v.A,{className:\"bgp-error-log-banner-row\",direction:\"row\",gap:3},a().createElement(v.A,{className:\"error-msg-card bgp-error-msg-card\",direction:\"row\",alignItems:\"center\",gap:2},a().createElement(m.A,{onClick:d},a().createElement(A.A,{className:\"icon-warning icon-message\"})),a().createElement(m.A,null,a().createElement(A.A,{variant:\"h5\",className:\"bgp-error-title\"},\"\".concat(P(\"FILE_UPLOAD_ERROR\"))),a().createElement(A.A,{component:\"body\",variant:\"body1\",className:\"bgp-error-description\"},\"\".concat(P(\"ERROR_DESCRIPTION\"))))),a().createElement(v.A,{className:\"bgp-error-log-actions\",gap:1},a().createElement(_.A,{buttonName:\"Re-upload\",variant:\"contained\",className:\"bgp-error-log-action\",onButtonClick:R}),a().createElement(_.A,{buttonName:\"Download\",variant:\"outlined\",className:\"bgp-error-log-action\",onButtonClick:L}))):a().createElement(m.A,null,a().createElement(v.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:2,alignContent:\"baseline\",className:\"error-msg-card\"},a().createElement(m.A,{onClick:d},a().createElement(A.A,{className:\"icon-warning icon-message\"})),a().createElement(m.A,null,a().createElement(A.A,{variant:\"h5\",fontSize:16,fontWeight:600,color:b.w.palette.info.dark},\"\".concat(P(\"FILE_UPLOAD_ERROR\"))),a().createElement(A.A,{component:\"body\",variant:\"body1\",color:b.w.palette.info.dark},\"\".concat(P(\"ERROR_DESCRIPTION\")))))),O&&a().createElement(v.A,{direction:\"row\",spacing:2,mb:2},a().createElement(m.A,{className:\"error-log-summary-card total\"},a().createElement(v.A,{direction:\"row\",alignItems:\"center\",gap:1},a().createElement(h.A,{className:\"error-log-summary-icon\"}),a().createElement(A.A,null,\"Total No. of Retailers\")),a().createElement(A.A,{className:\"error-log-summary-value\"},M)),a().createElement(m.A,{className:\"error-log-summary-card created\"},a().createElement(v.A,{direction:\"row\",alignItems:\"center\",gap:1},a().createElement(f.A,{className:\"error-log-summary-icon success\"}),a().createElement(A.A,null,\"No. of Retailers BGP Created\")),a().createElement(A.A,{className:\"error-log-summary-value\"},x)),a().createElement(m.A,{className:\"error-log-summary-card not-created\"},a().createElement(v.A,{direction:\"row\",alignItems:\"center\",gap:1},a().createElement(g.A,{className:\"error-log-summary-icon error\"}),a().createElement(A.A,null,\"No. of Retailers BGP Not Created\")),a().createElement(A.A,{className:\"error-log-summary-value\"},I))),a().createElement(m.A,{className:\"table-border-red\"},a().createElement(u.A,{rows:S,columnDefs:E.ok})),a().createElement(v.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:2,mt:3},a().createElement(p,{className:\"info-icon\"}),a().createElement(A.A,{component:\"span\",color:b.w.palette.info.light,fontSize:16},\"\".concat(P(\"REUPLOAD_TEXT\"))))))};var S=n(56203),T=n(8676),O=n(51545),D=(0,T.A)(O.A)(function(e){return e.theme,{\"& .table-row-click\":{\"& .ag-row\":{cursor:\"pointer !important\"}}}}),R=(n(74423),n(3362),n(21699),n(25440),n(48408),n(96790)),N=n(8085),L=n(34358),P=n(99478),M=n(13075),x=n(52695);function I(e){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},I(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==I(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const U=function(e){var t=e.bulkUploadModuleTypes,n=e.tableHeaders,c=e.mockResponse,d=e.mockErrorLogs,p=e.isRetailerBgp,f=void 0!==p&&p,g=(0,o.useContext)(i.v),h=g.BackOfficeProps,m=h.globalStore.User,v=h.baseurl,A=g.triggerShowLoader,y=g.triggerToastMsg,E=j((0,o.useState)(!1),2),b=E[0],_=E[1],C=j((0,o.useState)(),2),T=C[0],O=C[1],I=j((0,o.useState)([]),2),k=I[0],F=I[1],H=j((0,o.useState)({pageNo:0,pageSize:10}),2),U=H[0],Y=H[1],G=j((0,o.useState)(0),2),z=G[0],V=G[1],q=j((0,o.useState)([]),2),W=q[0],Q=q[1];return(0,o.useEffect)(function(){var e;T&&(d?Q(\"function\"==typeof d?d(T):d):null===(e=function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=N.p.BULK_UPLOAD_ERROR_LOG.replace(\"__ERR_ID__\",null==r?void 0:r.id),a.customHeaders={\"country-code\":\"\".concat(null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,new Promise(function(e,t){(0,L.uB)(a,R.dF.GET).then(function(t){if((0,M.mN)(t))return e(null==t?void 0:t.data);throw new Error((0,M.Tl)(\"NO_ERROR_LOG_LIST_DATA\"))}).catch(function(e){return t(e)})})}(m,v,A,T))||void 0===e||e.then(function(e){(null==e?void 0:e.length)>0?Q(e):Q([])}).catch(function(e){y({message:null==e?void 0:e.message,type:\"error\"})}))},[T]),(0,o.useEffect)(function(){!function(){var e;if(c){var n,r,o,a=\"function\"==typeof c?c(U.pageNo,U.pageSize):c,i=null!==(n=null==a||null===(r=a.upload_document_list)||void 0===r?void 0:r.map(function(e){var t,n;return{id:null==e?void 0:e.id,fileName:null==e?void 0:e.file_name,uploadedOn:\"\".concat((0,l.SK)(e.start_time),\" | \").concat((0,l.SK)(e.end_time),\" \"),status:null==e?void 0:e.status,totalRowsCount:null==e?void 0:e.total_rows_count,successRowCount:null==e?void 0:e.success_rows_count,failedRowCount:null==e?void 0:e.failed_rows_count,moduleType:(null==e||null===(t=e.module_type)||void 0===t?void 0:t.charAt(0))+(null==e||null===(n=e.module_type)||void 0===n?void 0:n.slice(1).toLowerCase()),uploadedFor:null==e?void 0:e.uploaded_for}}))&&void 0!==n?n:[];return F(i),void V(null!==(o=null==a?void 0:a.total_elements)&&void 0!==o?o:0)}null===(e=function(e,t,n,r,o){var a,i,l,s,u={};u.domain=n,u.endPoint=N.p.BULK_UPLOAD,u.triggerLoader=r;var c=new URLSearchParams({pageNo:null===(a=t.pageNo)||void 0===a?void 0:a.toString(),pageSize:null===(i=t.pageSize)||void 0===i?void 0:i.toString()});return o.forEach(function(e){return c.append(\"bulkUploadModuleType\",e)}),u.endPoint+=\"?\".concat(null==c?void 0:c.toString()),u.customHeaders={\"country-code\":\"\".concat(null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":\"\".concat(null==e||null===(s=e.selectedBusinessUnit)||void 0===s?void 0:s.bu_id),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name)},(o.includes(P.wb.EVENT_TARGET)||o.includes(x.H.LIQUIDATION)||o.includes(P.wb.ANNUAL_TURNOVER)||o.includes(x.H.PAY_FOR_PERFORMANCE))&&(u.customHeaders[\"user-id\"]=e.UserDetails.user_id),new Promise(function(e,t){(0,L.uB)(u,R.dF.GET).then(function(t){if((0,M.mN)(t))return e(t.data);throw new Error((0,M.Tl)(\"NO_UPLOADS_LIST_DATA\"))}).catch(function(e){return t(e)})})}(m,U,v,A,t))||void 0===e||e.then(function(e){var t,n,r=[];(null==e||null===(t=e.upload_document_list)||void 0===t?void 0:t.length)>0?(V(null==e?void 0:e.total_elements),r=null==e||null===(n=e.upload_document_list)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.id,fileName:null==e?void 0:e.file_name,uploadedOn:\"\".concat((0,l.SK)(e.start_time),\" | \").concat((0,l.SK)(e.end_time),\" \"),status:null==e?void 0:e.status,totalRowsCount:null==e?void 0:e.total_rows_count,successRowCount:null==e?void 0:e.success_rows_count,failedRowCount:null==e?void 0:e.failed_rows_count,moduleType:(null==e?void 0:e.module_type.charAt(0))+(null==e?void 0:e.module_type.slice(1).toLowerCase()),uploadedFor:e.uploaded_for}}),F(r)):(F(r),V(0))}).catch(function(e){y({message:null==e?void 0:e.message,type:\"error\"})})}()},[U]),a().createElement(D,{\"data-testid\":\"my-uploads\"},a().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mt:2,mb:2,gap:2}),a().createElement(u.A,{rows:k,columnDefs:n,frameworkComponents:{MyUploadsEditActionComponent:function(e){return function(e){var t,n,o=e.data,i=e.setIsKnowMoreDetailsOpen,l=e.setErrorLogItem;return a().createElement(a().Fragment,null,\"failure\"===(null==o||null===(t=o.status)||void 0===t?void 0:t.toLowerCase())||\"PARTIAL_SUCCESS\"===(null==o?void 0:o.status)||\"INPROGRESS\"===(null==o?void 0:o.status)?a().createElement(r.A,{flexDirection:\"row\",justifyContent:\"flex-start\"},a().createElement(\"p\",{className:\"smart-agro-lite-label \".concat(\"INPROGRESS\"===(null==o?void 0:o.status)?\"yellow\":\"red\",\"-bg\")},\"PARTIAL_SUCCESS\"===(n=null==o?void 0:o.status)?(0,S.t)(\"PARTIAL_SUCCESS\"):\"INPROGRESS\"===n?(0,S.t)(\"INPROGRESS\"):(0,S.t)(\"FAILED\")),\"INPROGRESS\"!==(null==o?void 0:o.status)&&a().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-label know-more remove-button\",onClick:function(){i(!0),l(o)}},\"\".concat((0,S.t)(\"KNOW_MORE\")))):a().createElement(r.A,{flexDirection:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:1},a().createElement(\"p\",{className:\"smart-agro-lite-label green-bg\"},\"\".concat((0,S.t)(\"COMPLETED\"))),a().createElement(\"p\",{className:\"smart-agro-lite-label\"},\" \".concat((0,S.t)(\"FILE_UPLOADED\"),\" \"))))}(B(B({},e),{},{setIsKnowMoreDetailsOpen:_,setErrorLogItem:O}))}}}),a().createElement(s.A,{totalPageCount:Math.ceil(z/(null==U?void 0:U.pageSize)),totalElements:z,onPageChange:function(e){Y(function(t){return B(B({},t),{},{pageNo:Number(e)})})},\"data-testid\":\"table-pagination\"}),b&&a().createElement(w,{isDrawerOpen:b,onHandleClose:function(){return _(!1)},ErrorLogItem:T,errLogList:W,isRetailerBgp:f}))}},21827:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"it-ch\",{months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Oggi alle] LT\",nextDay:\"[Domani alle] LT\",nextWeek:\"dddd [alle] LT\",lastDay:\"[Ieri alle] LT\",lastWeek:function(){return 0===this.day()?\"[la scorsa] dddd [alle] LT\":\"[lo scorso] dddd [alle] LT\"},sameElse:\"L\"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?\"tra\":\"in\")+\" \"+e},past:\"%s fa\",s:\"alcuni secondi\",ss:\"%d secondi\",m:\"un minuto\",mm:\"%d minuti\",h:\"un'ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},21915:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(11317),l=n(75659),s=n(6497),u=n(11848),c=n(39770),d=n(25669),p=n(6959),f=n(74848);const g=[\"disableUnderline\",\"components\",\"componentsProps\",\"fullWidth\",\"hiddenLabel\",\"inputComponent\",\"multiline\",\"slotProps\",\"slots\",\"type\"],h=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||\"classes\"===e,name:\"MuiFilledInput\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.WC)(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=\"light\"===e.palette.mode,a=r?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\",i=r?\"rgba(0, 0, 0, 0.06)\":\"rgba(255, 255, 255, 0.09)\",l=r?\"rgba(0, 0, 0, 0.09)\":\"rgba(255, 255, 255, 0.13)\",s=r?\"rgba(0, 0, 0, 0.12)\":\"rgba(255, 255, 255, 0.12)\";return(0,o.A)({position:\"relative\",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),\"&:hover\":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,\"@media (hover: none)\":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${p.A.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${p.A.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{\"&::after\":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||\"primary\"])?void 0:n.main}`,left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${p.A.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${p.A.error}`]:{\"&::before, &::after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${p.A.disabled}, .${p.A.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${p.A.disabled}:before`]:{borderBottomStyle:\"dotted\"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,o.A)({padding:\"25px 12px 8px\"},\"small\"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&\"small\"===t.size&&{paddingTop:8,paddingBottom:9}))}),m=(0,u.Ay)(s.f3,{name:\"MuiFilledInput\",slot:\"Input\",overridesResolver:s.Oj})(({theme:e,ownerState:t})=>(0,o.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{\"&:-webkit-autofill\":{WebkitBoxShadow:\"light\"===e.palette.mode?null:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"light\"===e.palette.mode?null:\"#fff\",caretColor:\"light\"===e.palette.mode?null:\"#fff\",borderTopLeftRadius:\"inherit\",borderTopRightRadius:\"inherit\"}},e.vars&&{\"&:-webkit-autofill\":{borderTopLeftRadius:\"inherit\",borderTopRightRadius:\"inherit\"},[e.getColorSchemeSelector(\"dark\")]:{\"&:-webkit-autofill\":{WebkitBoxShadow:\"0 0 0 100px #266798 inset\",WebkitTextFillColor:\"#fff\",caretColor:\"#fff\"}}},\"small\"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&\"small\"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),v=a.forwardRef(function(e,t){var n,a,u,c;const v=(0,d.b)({props:e,name:\"MuiFilledInput\"}),{components:A={},componentsProps:y,fullWidth:E=!1,inputComponent:b=\"input\",multiline:_=!1,slotProps:C,slots:w={},type:S=\"text\"}=v,T=(0,r.A)(v,g),O=(0,o.A)({},v,{fullWidth:E,inputComponent:b,multiline:_,type:S}),D=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},a=(0,l.A)(r,p.N,t);return(0,o.A)({},t,a)})(v),R={root:{ownerState:O},input:{ownerState:O}},N=(null!=C?C:y)?(0,i.A)(R,null!=C?C:y):R,L=null!=(n=null!=(a=w.root)?a:A.Root)?n:h,P=null!=(u=null!=(c=w.input)?c:A.Input)?u:m;return(0,f.jsx)(s.Ay,(0,o.A)({slots:{root:L,input:P},componentsProps:N,fullWidth:E,inputComponent:b,multiline:_,ref:t,type:S},T,{classes:D}))});v.muiName=\"Input\";const A=v},21986:(e,t,n)=>{var r=n(51873),o=n(37828),a=n(75288),i=n(25911),l=n(20317),s=n(84247),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case\"[object DataView]\":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case\"[object ArrayBuffer]\":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case\"[object Boolean]\":case\"[object Date]\":case\"[object Number]\":return a(+e,+t);case\"[object Error]\":return e.name==t.name&&e.message==t.message;case\"[object RegExp]\":case\"[object String]\":return e==t+\"\";case\"[object Map]\":var f=l;case\"[object Set]\":var g=1&r;if(f||(f=s),e.size!=t.size&&!g)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var m=i(f(e),f(t),r,u,d,p);return p.delete(e),m;case\"[object Symbol]\":if(c)return c.call(e)==c.call(t)}return!1}},22032:(e,t,n)=>{var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},22039:(e,t,n)=>{\"use strict\";e.exports=n.p+\"93ce6eb3906149fded76.woff\"},22195:(e,t,n)=>{\"use strict\";var r=n(79504),o=r({}.toString),a=r(\"\".slice);e.exports=function(e){return a(o(e),8,-1)}},22225:e=>{var t=\"\\\\ud800-\\\\udfff\",n=\"\\\\u2700-\\\\u27bf\",r=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",o=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",a=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\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\",i=\"[\"+a+\"]\",l=\"\\\\d+\",s=\"[\"+n+\"]\",u=\"[\"+r+\"]\",c=\"[^\"+t+a+l+n+r+o+\"]\",d=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",p=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",f=\"[\"+o+\"]\",g=\"(?:\"+u+\"|\"+c+\")\",h=\"(?:\"+f+\"|\"+c+\")\",m=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",v=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",A=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",y=\"[\\\\ufe0e\\\\ufe0f]?\",E=y+A+\"(?:\\\\u200d(?:\"+[\"[^\"+t+\"]\",d,p].join(\"|\")+\")\"+y+A+\")*\",b=\"(?:\"+[s,d,p].join(\"|\")+\")\"+E,_=RegExp([f+\"?\"+u+\"+\"+m+\"(?=\"+[i,f,\"$\"].join(\"|\")+\")\",h+\"+\"+v+\"(?=\"+[i,f+g,\"$\"].join(\"|\")+\")\",f+\"?\"+g+\"+\"+m,f+\"+\"+v,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",l,b].join(\"|\"),\"g\");e.exports=function(e){return e.match(_)||[]}},22274:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"nb\",{months:\"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember\".split(\"_\"),monthsShort:\"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.\".split(\"_\"),monthsParseExact:!0,weekdays:\"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag\".split(\"_\"),weekdaysShort:\"sø._ma._ti._on._to._fr._lø.\".split(\"_\"),weekdaysMin:\"sø_ma_ti_on_to_fr_lø\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY [kl.] HH:mm\",LLLL:\"dddd D. MMMM YYYY [kl.] HH:mm\"},calendar:{sameDay:\"[i dag kl.] LT\",nextDay:\"[i morgen kl.] LT\",nextWeek:\"dddd [kl.] LT\",lastDay:\"[i går kl.] LT\",lastWeek:\"[forrige] dddd [kl.] LT\",sameElse:\"L\"},relativeTime:{future:\"om %s\",past:\"%s siden\",s:\"noen sekunder\",ss:\"%d sekunder\",m:\"ett minutt\",mm:\"%d minutter\",h:\"én time\",hh:\"%d timer\",d:\"én dag\",dd:\"%d dager\",w:\"én uke\",ww:\"%d uker\",M:\"én måned\",MM:\"%d måneder\",y:\"ett år\",yy:\"%d år\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},22386:(e,t,n)=>{var r=n(51098);e.exports=new r},22499:e=>{e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},22505:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(58168),o=n(34164),a=n(74959);const i=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&\"function\"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},l=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:l,externalForwardedProps:s,className:u}=e;if(!t){const e=(0,o.A)(null==n?void 0:n.className,u,null==s?void 0:s.className,null==l?void 0:l.className),t=(0,r.A)({},null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),a=(0,r.A)({},n,s,l);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const c=(0,a.A)((0,r.A)({},s,l)),d=i(l),p=i(s),f=t(c),g=(0,o.A)(null==f?void 0:f.className,null==n?void 0:n.className,u,null==s?void 0:s.className,null==l?void 0:l.className),h=(0,r.A)({},null==f?void 0:f.style,null==n?void 0:n.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,r.A)({},f,n,p,d);return g.length>0&&(m.className=g),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}},22524:e=>{e.exports={isFunction:function(e){return\"function\"==typeof e},isArray:function(e){return\"[object Array]\"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},22532:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{GlobalStyles:()=>_.A,StyledEngineProvider:()=>b,ThemeContext:()=>o.T,css:()=>v.AH,default:()=>C,internal_processStyles:()=>w,internal_serializeStyles:()=>T,keyframes:()=>v.i7});var r=n(58168),o=n(24684),a=n(43174),i=n(71287),l=n(30041),s=n(81970),u=n(36289),c=/^((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)-.*))$/,d=(0,u.A)(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=function(e){return\"theme\"!==e},f=function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96?d:p},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return\"function\"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.SF)(t,n,r),(0,i.s)(function(){return(0,l.sk)(t,n,r)}),null},m=function e(t,n){var i,u,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==n&&(i=n.label,u=n.target);var p=g(t,n,c),m=p||f(d),v=!m(\"as\");return function(){var A=arguments,y=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push(\"label:\"+i+\";\"),null==A[0]||void 0===A[0].raw)y.push.apply(y,A);else{var E=A[0];y.push(E[0]);for(var b=A.length,_=1;_<b;_++)y.push(A[_],E[_])}var C=(0,o.w)(function(e,t,n){var r=v&&e.as||d,i=\"\",c=[],g=e;if(null==e.theme){for(var A in g={},e)g[A]=e[A];g.theme=s.useContext(o.T)}\"string\"==typeof e.className?i=(0,l.Rk)(t.registered,c,e.className):null!=e.className&&(i=e.className+\" \");var E=(0,a.J)(y.concat(c),t.registered,g);i+=t.key+\"-\"+E.name,void 0!==u&&(i+=\" \"+u);var b=v&&void 0===p?f(r):m,_={};for(var C in e)v&&\"as\"===C||b(C)&&(_[C]=e[C]);return _.className=i,n&&(_.ref=n),s.createElement(s.Fragment,null,s.createElement(h,{cache:t,serialized:E,isStringTag:\"string\"==typeof r}),s.createElement(r,_))});return C.displayName=void 0!==i?i:\"Styled(\"+(\"string\"==typeof d?d:d.displayName||d.name||\"Component\")+\")\",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=y,C.__emotion_forwardProp=p,Object.defineProperty(C,\"toString\",{value:function(){return\".\"+u}}),C.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:g(C,o,!0)})).apply(void 0,y)},C}}.bind(null);[\"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\",\"marquee\",\"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\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"].forEach(function(e){m[e]=m(e)});var v=n(17437),A=n(55655),y=n(74848);const E=new Map;function b(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,a=s.useMemo(()=>{const e=`${t}-${n}`;if(\"object\"==typeof document&&E.has(e))return E.get(e);const r=function(e,t){const n=(0,A.A)({key:\"css\",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return E.set(e,r),r},[t,n]);return t||n?(0,y.jsx)(o.C,{value:a,children:r}):r}var _=n(39940);function C(e,t){return m(e,t)}const w=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},S=[];function T(e){return S[0]=e,(0,a.J)(S)}},22551:(e,t,n)=>{\"use strict\";var r=n(81970),o=n(69982);function a(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var i=new Set,l={};function s(e,t){u(e,t),u(e+\"Capture\",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},g={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var m={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){m[e]=new h(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];m[t]=new h(t,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){m[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){m[e]=new h(e,2,!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\".split(\" \").forEach(function(e){m[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){m[e]=new h(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){m[e]=new h(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){m[e]=new h(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){m[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||\"o\"!==t[0]&&\"O\"!==t[0]||\"n\"!==t[1]&&\"N\"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case\"function\":case\"symbol\":return!0;case\"boolean\":return!r&&(null!==n?!n.acceptsBooleans:\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(g,e)||!d.call(f,e)&&(p.test(e)?g[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,\"\"+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&\"\":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?\"\":\"\"+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}\"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(e){var t=e.replace(v,A);m[t]=new h(t,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(v,A);m[t]=new h(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(v,A);m[t]=new h(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),m.xlinkHref=new h(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for(\"react.element\"),_=Symbol.for(\"react.portal\"),C=Symbol.for(\"react.fragment\"),w=Symbol.for(\"react.strict_mode\"),S=Symbol.for(\"react.profiler\"),T=Symbol.for(\"react.provider\"),O=Symbol.for(\"react.context\"),D=Symbol.for(\"react.forward_ref\"),R=Symbol.for(\"react.suspense\"),N=Symbol.for(\"react.suspense_list\"),L=Symbol.for(\"react.memo\"),P=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var M=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.cache\"),Symbol.for(\"react.tracing_marker\");var x=Symbol.iterator;function I(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=x&&e[x]||e[\"@@iterator\"])?e:null}var k,B=Object.assign;function F(e){if(void 0===k)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);k=t&&t[1]||\"\"}return\"\\n\"+k+e}var j=!1;function H(e,t){if(!e||j)return\"\";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&\"string\"==typeof t.stack){for(var o=t.stack.split(\"\\n\"),a=r.stack.split(\"\\n\"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s=\"\\n\"+o[i].replace(\" at new \",\" at \");return e.displayName&&s.includes(\"<anonymous>\")&&(s=s.replace(\"<anonymous>\",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:\"\")?F(e):\"\"}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F(\"Lazy\");case 13:return F(\"Suspense\");case 19:return F(\"SuspenseList\");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);default:return\"\"}}function Y(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case C:return\"Fragment\";case _:return\"Portal\";case S:return\"Profiler\";case w:return\"StrictMode\";case R:return\"Suspense\";case N:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case O:return(e.displayName||\"Context\")+\".Consumer\";case T:return(e._context.displayName||\"Context\")+\".Provider\";case D:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case L:return null!==(t=e.displayName||null)?t:Y(e.type)||\"Memo\";case P:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=t.render).displayName||e.name||\"\",t.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Y(t);case 8:return t===w?\"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(\"function\"==typeof t)return t.displayName||t.name||null;if(\"string\"==typeof t)return t}return null}function z(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function V(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&\"function\"==typeof n.get&&\"function\"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=V(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?\"\":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:\"checkbox\"===t.type||\"radio\"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,\"checked\",t,!1)}function J(e,t){X(e,t);var n=z(t.value),r=t.type;if(null!=n)\"number\"===r?(0===n&&\"\"===e.value||e.value!=n)&&(e.value=\"\"+n):e.value!==\"\"+n&&(e.value=\"\"+n);else if(\"submit\"===r||\"reset\"===r)return void e.removeAttribute(\"value\");t.hasOwnProperty(\"value\")?ee(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty(\"value\")||t.hasOwnProperty(\"defaultValue\")){var r=t.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==t.value&&null!==t.value))return;t=\"\"+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}\"\"!==(n=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==n&&(e.name=n)}function ee(e,t,n){\"number\"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t[\"$\"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=\"\"+z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=\"\"),n=t}e._wrapperState={initialValue:z(n)}}function ae(e,t){var n=z(t.value),r=z(t.defaultValue);null!=n&&((n=\"\"+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=\"\"+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&\"\"!==t&&null!==t&&(e.value=t)}function le(e){switch(e){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 se(e,t){return null==e||\"http://www.w3.org/1999/xhtml\"===e?le(t):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===t?\"http://www.w3.org/1999/xhtml\":e}var ue,ce,de=(ce=function(e,t){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=t;else{for((ue=ue||document.createElement(\"div\")).innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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},ge=[\"Webkit\",\"ms\",\"Moz\",\"O\"];function he(e,t,n){return null==t||\"boolean\"==typeof t||\"\"===t?\"\":n||\"number\"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(\"\"+t).trim():t+\"px\"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf(\"--\"),o=he(n,t[n],r);\"float\"===n&&(n=\"cssFloat\"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){ge.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=B({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 Ae(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(\"object\"!=typeof t.dangerouslySetInnerHTML||!(\"__html\"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&\"object\"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf(\"-\"))return\"string\"==typeof t.is;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 Ee=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ce=null,we=null;function Se(e){if(e=vo(e)){if(\"function\"!=typeof _e)throw Error(a(280));var t=e.stateNode;t&&(t=yo(t),_e(e.stateNode,e.type,t))}}function Te(e){Ce?we?we.push(e):we=[e]:Ce=e}function Oe(){if(Ce){var e=Ce,t=we;if(we=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function De(e,t){return e(t)}function Re(){}var Ne=!1;function Le(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return De(e,t,n)}finally{Ne=!1,(null!==Ce||null!==we)&&(Re(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=yo(n);if(null===r)return null;n=r[t];e:switch(t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&\"function\"!=typeof n)throw Error(a(231,t,typeof n));return n}var Me=!1;if(c)try{var xe={};Object.defineProperty(xe,\"passive\",{get:function(){Me=!0}}),window.addEventListener(\"test\",xe,xe),window.removeEventListener(\"test\",xe,xe)}catch(ce){Me=!1}function Ie(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ke=!1,Be=null,Fe=!1,je=null,He={onError:function(e){ke=!0,Be=e}};function Ue(e,t,n,r,o,a,i,l,s){ke=!1,Be=null,Ie.apply(He,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ze(e){if(Ye(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ze(o),e;if(i===r)return ze(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var We=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,$e=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function gt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function At(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function Et(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,_t,Ct,wt,St,Tt=!1,Ot=[],Dt=null,Rt=null,Nt=null,Lt=new Map,Pt=new Map,Mt=[],xt=\"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 It(e,t){switch(e){case\"focusin\":case\"focusout\":Dt=null;break;case\"dragenter\":case\"dragleave\":Rt=null;break;case\"mouseover\":case\"mouseout\":Nt=null;break;case\"pointerover\":case\"pointerout\":Lt.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":Pt.delete(t.pointerId)}}function kt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=vo(t))&&_t(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Bt(e){var t=mo(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void St(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ee=r,n.target.dispatchEvent(r),Ee=null,t.shift()}return!0}function jt(e,t,n){Ft(e)&&n.delete(t)}function Ht(){Tt=!1,null!==Dt&&Ft(Dt)&&(Dt=null),null!==Rt&&Ft(Rt)&&(Rt=null),null!==Nt&&Ft(Nt)&&(Nt=null),Lt.forEach(jt),Pt.forEach(jt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ht)))}function Yt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dt&&Ut(Dt,e),null!==Rt&&Ut(Rt,e),null!==Nt&&Ut(Nt,e),Lt.forEach(t),Pt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Mt.shift()}var Gt=E.ReactCurrentBatchConfig,zt=!0;function Vt(e,t,n,r){var o=yt,a=Gt.transition;Gt.transition=null;try{yt=1,Wt(e,t,n,r)}finally{yt=o,Gt.transition=a}}function qt(e,t,n,r){var o=yt,a=Gt.transition;Gt.transition=null;try{yt=4,Wt(e,t,n,r)}finally{yt=o,Gt.transition=a}}function Wt(e,t,n,r){if(zt){var o=Kt(e,t,n,r);if(null===o)Ur(e,t,r,Qt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case\"focusin\":return Dt=kt(Dt,e,t,n,r,o),!0;case\"dragenter\":return Rt=kt(Rt,e,t,n,r,o),!0;case\"mouseover\":return Nt=kt(Nt,e,t,n,r,o),!0;case\"pointerover\":var a=o.pointerId;return Lt.set(a,kt(Lt.get(a)||null,e,t,n,r,o)),!0;case\"gotpointercapture\":return a=o.pointerId,Pt.set(a,kt(Pt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<xt.indexOf(e)){for(;null!==o;){var a=vo(o);if(null!==a&&bt(a),null===(a=Kt(e,t,n,r))&&Ur(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Qt=null;function Kt(e,t,n,r){if(Qt=null,null!==(e=mo(e=be(r))))if(null===(t=Ye(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function $t(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 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(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o=\"value\"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=B({},un,{view:0,detail:0}),pn=on(dn),fn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==sn&&(sn&&\"mousemove\"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return\"movementY\"in e?e.movementY:ln}}),gn=on(fn),hn=on(B({},fn,{dataTransfer:0})),mn=on(B({},dn,{relatedTarget:0})),vn=on(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),An=on(B({},un,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),yn=on(B({},un,{data:0})),En={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},bn={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\"},_n={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function wn(){return Cn}var Sn=on(B({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=tn(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?bn[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return\"keypress\"===e.type?tn(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?tn(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),Tn=on(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Dn=on(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=on(B({},fn,{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})),Nn=[9,13,27,32],Ln=c&&\"CompositionEvent\"in window,Pn=null;c&&\"documentMode\"in document&&(Pn=document.documentMode);var Mn=c&&\"TextEvent\"in window&&!Pn,xn=c&&(!Ln||Pn&&8<Pn&&11>=Pn),In=String.fromCharCode(32),kn=!1;function Bn(e,t){switch(e){case\"keyup\":return-1!==Nn.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Fn(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var jn=!1,Hn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!Hn[e.type]:\"textarea\"===t}function Yn(e,t,n,r){Te(r),0<(t=Gr(t,\"onChange\")).length&&(n=new cn(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,zn=null;function Vn(e){Ir(e,0)}function qn(e){if(W(Ao(e)))return e}function Wn(e,t){if(\"change\"===e)return t}var Qn=!1;if(c){var Kn;if(c){var $n=\"oninput\"in document;if(!$n){var Xn=document.createElement(\"div\");Xn.setAttribute(\"oninput\",\"return;\"),$n=\"function\"==typeof Xn.oninput}Kn=$n}else Kn=!1;Qn=Kn&&(!document.documentMode||9<document.documentMode)}function Jn(){Gn&&(Gn.detachEvent(\"onpropertychange\",Zn),zn=Gn=null)}function Zn(e){if(\"value\"===e.propertyName&&qn(zn)){var t=[];Yn(t,zn,e,be(e)),Le(Vn,t)}}function er(e,t,n){\"focusin\"===e?(Jn(),zn=n,(Gn=t).attachEvent(\"onpropertychange\",Zn)):\"focusout\"===e&&Jn()}function tr(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return qn(zn)}function nr(e,t){if(\"click\"===e)return qn(t)}function rr(e,t){if(\"input\"===e||\"change\"===e)return qn(t)}var or=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(or(e,t))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!or(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):\"contains\"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n=\"string\"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}function dr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=lr(n,a);var i=lr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=c&&\"documentMode\"in document&&11>=document.documentMode,fr=null,gr=null,hr=null,mr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==fr||fr!==Q(r)||(r=\"selectionStart\"in(r=fr)&&cr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&ar(hr,r)||(hr=r,0<(r=Gr(gr,\"onSelect\")).length&&(t=new cn(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var yr={animationend:Ar(\"Animation\",\"AnimationEnd\"),animationiteration:Ar(\"Animation\",\"AnimationIteration\"),animationstart:Ar(\"Animation\",\"AnimationStart\"),transitionend:Ar(\"Transition\",\"TransitionEnd\")},Er={},br={};function _r(e){if(Er[e])return Er[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in br)return Er[e]=n[t];return e}c&&(br=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),\"TransitionEvent\"in window||delete yr.transitionend.transition);var Cr=_r(\"animationend\"),wr=_r(\"animationiteration\"),Sr=_r(\"animationstart\"),Tr=_r(\"transitionend\"),Or=new Map,Dr=\"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 Rr(e,t){Or.set(e,t),s(t,[e])}for(var Nr=0;Nr<Dr.length;Nr++){var Lr=Dr[Nr];Rr(Lr.toLowerCase(),\"on\"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Cr,\"onAnimationEnd\"),Rr(wr,\"onAnimationIteration\"),Rr(Sr,\"onAnimationStart\"),Rr(\"dblclick\",\"onDoubleClick\"),Rr(\"focusin\",\"onFocus\"),Rr(\"focusout\",\"onBlur\"),Rr(Tr,\"onTransitionEnd\"),u(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),u(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),u(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),u(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),s(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),s(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),s(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),s(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),s(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),s(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var Pr=\"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(\" \"),Mr=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(Pr));function xr(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Ue.apply(this,arguments),ke){if(!ke)throw Error(a(198));var c=Be;ke=!1,Be=null,Fe||(Fe=!0,je=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;xr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;xr(o,l,u),a=s}}}if(Fe)throw e=je,Fe=!1,je=null,e}function kr(e,t){var n=t[fo];void 0===n&&(n=t[fo]=new Set);var r=e+\"__bubble\";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Fr=\"_reactListening\"+Math.random().toString(36).slice(2);function jr(e){if(!e[Fr]){e[Fr]=!0,i.forEach(function(t){\"selectionchange\"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Br(\"selectionchange\",!1,t))}}function Hr(e,t,n,r){switch($t(t)){case 1:var o=Vt;break;case 4:o=qt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!Me||\"touchstart\"!==t&&\"touchmove\"!==t&&\"wheel\"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=mo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Le(function(){var r=a,o=be(n),i=[];e:{var l=Or.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case\"keypress\":if(0===tn(n))break e;case\"keydown\":case\"keyup\":s=Sn;break;case\"focusin\":u=\"focus\",s=mn;break;case\"focusout\":u=\"blur\",s=mn;break;case\"beforeblur\":case\"afterblur\":s=mn;break;case\"click\":if(2===n.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":s=gn;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":s=hn;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":s=On;break;case Cr:case wr:case Sr:s=vn;break;case Tr:s=Dn;break;case\"scroll\":s=pn;break;case\"wheel\":s=Rn;break;case\"copy\":case\"cut\":case\"paste\":s=An;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":s=Tn}var c=!!(4&t),d=!c&&\"scroll\"===e,p=c?null!==l?l+\"Capture\":null:l;c=[];for(var f,g=r;null!==g;){var h=(f=g).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&null!=(h=Pe(g,p))&&c.push(Yr(g,h,f))),d)break;g=g.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s=\"mouseout\"===e||\"pointerout\"===e,(!(l=\"mouseover\"===e||\"pointerover\"===e)||n===Ee||!(u=n.relatedTarget||n.fromElement)||!mo(u)&&!u[po])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?mo(u):null)&&(u!==(d=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=gn,h=\"onMouseLeave\",p=\"onMouseEnter\",g=\"mouse\",\"pointerout\"!==e&&\"pointerover\"!==e||(c=Tn,h=\"onPointerLeave\",p=\"onPointerEnter\",g=\"pointer\"),d=null==s?l:Ao(s),f=null==u?l:Ao(u),(l=new c(h,g+\"leave\",s,n,o)).target=d,l.relatedTarget=f,h=null,mo(o)===r&&((c=new c(p,g+\"enter\",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,g=0,f=c=s;f;f=zr(f))g++;for(f=0,h=p;h;h=zr(h))f++;for(;0<g-f;)c=zr(c),g--;for(;0<f-g;)p=zr(p),f--;for(;g--;){if(c===p||null!==p&&c===p.alternate)break e;c=zr(c),p=zr(p)}c=null}else c=null;null!==s&&Vr(i,l,s,c,!1),null!==u&&null!==d&&Vr(i,d,u,c,!0)}if(\"select\"===(s=(l=r?Ao(r):window).nodeName&&l.nodeName.toLowerCase())||\"input\"===s&&\"file\"===l.type)var m=Wn;else if(Un(l))if(Qn)m=rr;else{m=tr;var v=er}else(s=l.nodeName)&&\"input\"===s.toLowerCase()&&(\"checkbox\"===l.type||\"radio\"===l.type)&&(m=nr);switch(m&&(m=m(e,r))?Yn(i,m,n,o):(v&&v(e,l,r),\"focusout\"===e&&(v=l._wrapperState)&&v.controlled&&\"number\"===l.type&&ee(l,\"number\",l.value)),v=r?Ao(r):window,e){case\"focusin\":(Un(v)||\"true\"===v.contentEditable)&&(fr=v,gr=r,hr=null);break;case\"focusout\":hr=gr=fr=null;break;case\"mousedown\":mr=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":mr=!1,vr(i,n,o);break;case\"selectionchange\":if(pr)break;case\"keydown\":case\"keyup\":vr(i,n,o)}var A;if(Ln)e:{switch(e){case\"compositionstart\":var y=\"onCompositionStart\";break e;case\"compositionend\":y=\"onCompositionEnd\";break e;case\"compositionupdate\":y=\"onCompositionUpdate\";break e}y=void 0}else jn?Bn(e,n)&&(y=\"onCompositionEnd\"):\"keydown\"===e&&229===n.keyCode&&(y=\"onCompositionStart\");y&&(xn&&\"ko\"!==n.locale&&(jn||\"onCompositionStart\"!==y?\"onCompositionEnd\"===y&&jn&&(A=en()):(Jt=\"value\"in(Xt=o)?Xt.value:Xt.textContent,jn=!0)),0<(v=Gr(r,y)).length&&(y=new yn(y,e,null,n,o),i.push({event:y,listeners:v}),(A||null!==(A=Fn(n)))&&(y.data=A))),(A=Mn?function(e,t){switch(e){case\"compositionend\":return Fn(t);case\"keypress\":return 32!==t.which?null:(kn=!0,In);case\"textInput\":return(e=t.data)===In&&kn?null:e;default:return null}}(e,n):function(e,t){if(jn)return\"compositionend\"===e||!Ln&&Bn(e,t)?(e=en(),Zt=Jt=Xt=null,jn=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return xn&&\"ko\"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,\"onBeforeInput\")).length&&(o=new yn(\"onBeforeInput\",\"beforeinput\",null,n,o),i.push({event:o,listeners:r}),o.data=A)}Ir(i,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+\"Capture\",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Pe(e,n))&&r.unshift(Yr(e,a,o)),null!=(a=Pe(e,t))&&r.push(Yr(e,a,o))),e=e.return}return r}function zr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Pe(n,a))&&i.unshift(Yr(n,s,l)):o||null!=(s=Pe(n,a))&&i.push(Yr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var qr=/\\r\\n?/g,Wr=/\\u0000|\\uFFFD/g;function Qr(e){return(\"string\"==typeof e?e:\"\"+e).replace(qr,\"\\n\").replace(Wr,\"\")}function Kr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(a(425))}function $r(){}var Xr=null,Jr=null;function Zr(e,t){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof t.children||\"number\"==typeof t.children||\"object\"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var eo=\"function\"==typeof setTimeout?setTimeout:void 0,to=\"function\"==typeof clearTimeout?clearTimeout:void 0,no=\"function\"==typeof Promise?Promise:void 0,ro=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==no?function(e){return no.resolve(null).then(e).catch(oo)}:eo;function oo(e){setTimeout(function(){throw e})}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if(\"/$\"===(n=o.data)){if(0===r)return e.removeChild(o),void Yt(t);r--}else\"$\"!==n&&\"$?\"!==n&&\"$!\"!==n||r++;n=o}while(n);Yt(t)}function io(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if(\"$\"===(t=e.data)||\"$!\"===t||\"$?\"===t)break;if(\"/$\"===t)return null}}return e}function lo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),uo=\"__reactFiber$\"+so,co=\"__reactProps$\"+so,po=\"__reactContainer$\"+so,fo=\"__reactEvents$\"+so,go=\"__reactListeners$\"+so,ho=\"__reactHandles$\"+so;function mo(e){var t=e[uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[uo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lo(e);null!==e;){if(n=e[uo])return n;e=lo(e)}return t}n=(e=n).parentNode}return null}function vo(e){return!(e=e[uo]||e[po])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ao(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function yo(e){return e[co]||null}var Eo=[],bo=-1;function _o(e){return{current:e}}function Co(e){0>bo||(e.current=Eo[bo],Eo[bo]=null,bo--)}function wo(e,t){bo++,Eo[bo]=e.current,e.current=t}var So={},To=_o(So),Oo=_o(!1),Do=So;function Ro(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=e.childContextTypes}function Lo(){Co(Oo),Co(To)}function Po(e,t,n){if(To.current!==So)throw Error(a(168));wo(To,t),wo(Oo,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,\"function\"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||\"Unknown\",o));return B({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,Do=To.current,wo(To,e),wo(Oo,Oo.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Do),r.__reactInternalMemoizedMergedChildContext=e,Co(Oo),Co(To),wo(To,e)):Co(Oo),wo(Oo,n)}var ko=null,Bo=!1,Fo=!1;function jo(e){null===ko?ko=[e]:ko.push(e)}function Ho(){if(!Fo&&null!==ko){Fo=!0;var e=0,t=yt;try{var n=ko;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ko=null,Bo=!1}catch(t){throw null!==ko&&(ko=ko.slice(e+1)),We(Ze,Ho),t}finally{yt=t,Fo=!1}}return null}var Uo=[],Yo=0,Go=null,zo=0,Vo=[],qo=0,Wo=null,Qo=1,Ko=\"\";function $o(e,t){Uo[Yo++]=zo,Uo[Yo++]=Go,Go=e,zo=t}function Xo(e,t,n){Vo[qo++]=Qo,Vo[qo++]=Ko,Vo[qo++]=Wo,Wo=e;var r=Qo;e=Ko;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qo=1<<32-it(t)+o|n<<o|r,Ko=a+e}else Qo=1<<a|n<<o|r,Ko=e}function Jo(e){null!==e.return&&($o(e,1),Xo(e,1,0))}function Zo(e){for(;e===Go;)Go=Uo[--Yo],Uo[Yo]=null,zo=Uo[--Yo],Uo[Yo]=null;for(;e===Wo;)Wo=Vo[--qo],Vo[qo]=null,Ko=Vo[--qo],Vo[qo]=null,Qo=Vo[--qo],Vo[qo]=null}var ea=null,ta=null,na=!1,ra=null;function oa(e,t){var n=Du(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function aa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ea=e,ta=io(t.firstChild),!0);case 6:return null!==(t=\"\"===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ea=e,ta=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Wo?{id:Qo,overflow:Ko}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ea=e,ta=null,!0);default:return!1}}function ia(e){return!(!(1&e.mode)||128&e.flags)}function la(e){if(na){var t=ta;if(t){var n=t;if(!aa(e,t)){if(ia(e))throw Error(a(418));t=io(n.nextSibling);var r=ea;t&&aa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,na=!1,ea=e)}}else{if(ia(e))throw Error(a(418));e.flags=-4097&e.flags|2,na=!1,ea=e}}}function sa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ea=e}function ua(e){if(e!==ea)return!1;if(!na)return sa(e),na=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t=\"head\"!==(t=e.type)&&\"body\"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=ta)){if(ia(e))throw ca(),Error(a(418));for(;t;)oa(e,t),t=io(t.nextSibling)}if(sa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(\"/$\"===n){if(0===t){ta=io(e.nextSibling);break e}t--}else\"$\"!==n&&\"$!\"!==n&&\"$?\"!==n||t++}e=e.nextSibling}ta=null}}else ta=ea?io(e.stateNode.nextSibling):null;return!0}function ca(){for(var e=ta;e;)e=io(e.nextSibling)}function da(){ta=ea=null,na=!1}function pa(e){null===ra?ra=[e]:ra.push(e)}var fa=E.ReactCurrentBatchConfig;function ga(e,t,n){if(null!==(e=n.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=\"\"+e;return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if(\"string\"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ha(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function ma(e){return(0,e._init)(e._payload)}function va(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=xu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===P&&ma(a)===t.type)?((r=o(t,n.props)).ref=ga(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=ga(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Iu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Pu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return(t=xu(\"\"+t,e.mode,n)).return=e,t;if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case _:return(t=Iu(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Pu(t,e.mode,n,null)).return=e,t;ha(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return null!==o?null:s(e,t,\"\"+n,r);if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?u(e,t,n,r):null;case _:return n.key===o?c(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);ha(e,n)}return null}function g(e,t,n,r,o){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return s(t,e=e.get(n)||null,\"\"+r,o);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return g(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);ha(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,d=a,h=a=0,m=null;null!==d&&h<l.length;h++){d.index>h?(m=d,d=null):m=d.sibling;var v=f(o,d,l[h],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,d=m}if(h===l.length)return n(o,d),na&&$o(o,h),u;if(null===d){for(;h<l.length;h++)null!==(d=p(o,l[h],s))&&(a=i(d,a,h),null===c?u=d:c.sibling=d,c=d);return na&&$o(o,h),u}for(d=r(o,d);h<l.length;h++)null!==(m=g(d,o,h,l[h],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?h:m.key),a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(o,e)}),na&&$o(o,h),u}function m(o,l,s,u){var c=I(s);if(\"function\"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=c=null,h=l,m=l=0,v=null,A=s.next();null!==h&&!A.done;m++,A=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,A.value,u);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,m),null===d?c=y:d.sibling=y,d=y,h=v}if(A.done)return n(o,h),na&&$o(o,m),c;if(null===h){for(;!A.done;m++,A=s.next())null!==(A=p(o,A.value,u))&&(l=i(A,l,m),null===d?c=A:d.sibling=A,d=A);return na&&$o(o,m),c}for(h=r(o,h);!A.done;m++,A=s.next())null!==(A=g(h,o,m,A.value,u))&&(e&&null!==A.alternate&&h.delete(null===A.key?m:A.key),l=i(A,l,m),null===d?c=A:d.sibling=A,d=A);return e&&h.forEach(function(e){return t(o,e)}),na&&$o(o,m),c}return function e(r,a,i,s){if(\"object\"==typeof i&&null!==i&&i.type===C&&null===i.key&&(i=i.props.children),\"object\"==typeof i&&null!==i){switch(i.$$typeof){case b:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===C){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||\"object\"==typeof u&&null!==u&&u.$$typeof===P&&ma(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=ga(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===C?((a=Pu(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Lu(i.type,i.key,i.props,null,r.mode,s)).ref=ga(r,a,i),s.return=r,r=s)}return l(r);case _:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Iu(i,r.mode,s)).return=r,r=a}return l(r);case P:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return h(r,a,i,s);if(I(i))return m(r,a,i,s);ha(r,i)}return\"string\"==typeof i&&\"\"!==i||\"number\"==typeof i?(i=\"\"+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=xu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Aa=va(!0),ya=va(!1),Ea=_o(null),ba=null,_a=null,Ca=null;function wa(){Ca=_a=ba=null}function Sa(e){var t=Ea.current;Co(Ea),e._currentValue=t}function Ta(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oa(e,t){ba=e,Ca=_a=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ml=!0),e.firstContext=null)}function Da(e){var t=e._currentValue;if(Ca!==e)if(e={context:e,memoizedValue:t,next:null},null===_a){if(null===ba)throw Error(a(308));_a=e,ba.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Ra=null;function Na(e){null===Ra?Ra=[e]:Ra.push(e)}function La(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pa(e,r)}function Pa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ma=!1;function xa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ka(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ss){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pa(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pa(e,n)}function Fa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}function ja(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ha(e,t,n,r){var o=e.updateQueue;Ma=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(i=0,c=u=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,h=l;switch(p=t,f=n,h.tag){case 1:if(\"function\"==typeof(g=h.payload)){d=g.call(f,d,p);break e}d=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p=\"function\"==typeof(g=h.payload)?g.call(f,d,p):g))break e;d=B({},d,p);break e;case 2:Ma=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ms|=i,e.lanes=i,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,\"function\"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ya={},Ga=_o(Ya),za=_o(Ya),Va=_o(Ya);function qa(e){if(e===Ya)throw Error(a(174));return e}function Wa(e,t){switch(wo(Va,t),wo(za,e),wo(Ga,Ya),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,\"\");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(Ga),wo(Ga,t)}function Qa(){Co(Ga),Co(za),Co(Va)}function Ka(e){qa(Va.current);var t=qa(Ga.current),n=se(t,e.type);t!==n&&(wo(za,e),wo(Ga,n))}function $a(e){za.current===e&&(Co(Ga),Co(za))}var Xa=_o(0);function Ja(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Za=[];function ei(){for(var e=0;e<Za.length;e++)Za[e]._workInProgressVersionPrimary=null;Za.length=0}var ti=E.ReactCurrentDispatcher,ni=E.ReactCurrentBatchConfig,ri=0,oi=null,ai=null,ii=null,li=!1,si=!1,ui=0,ci=0;function di(){throw Error(a(321))}function pi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function fi(e,t,n,r,o,i){if(ri=i,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ti.current=null===e||null===e.memoizedState?$i:Xi,e=n(r,o),si){i=0;do{if(si=!1,ui=0,25<=i)throw Error(a(301));i+=1,ii=ai=null,t.updateQueue=null,ti.current=Ji,e=n(r,o)}while(si)}if(ti.current=Ki,t=null!==ai&&null!==ai.next,ri=0,ii=ai=oi=null,li=!1,t)throw Error(a(300));return e}function gi(){var e=0!==ui;return ui=0,e}function hi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ii?oi.memoizedState=ii=e:ii=ii.next=e,ii}function mi(){if(null===ai){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=ai.next;var t=null===ii?oi.memoizedState:ii.next;if(null!==t)ii=t,ai=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ai=e).memoizedState,baseState:ai.baseState,baseQueue:ai.baseQueue,queue:ai.queue,next:null},null===ii?oi.memoizedState=ii=e:ii=ii.next=e}return ii}function vi(e,t){return\"function\"==typeof t?t(e):t}function Ai(e){var t=mi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ai,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((ri&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=p,l=r):u=u.next=p,oi.lanes|=d,Ms|=d}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,or(r,t.memoizedState)||(ml=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,oi.lanes|=i,Ms|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yi(e){var t=mi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);or(i,t.memoizedState)||(ml=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ei(){}function bi(e,t){var n=oi,r=mi(),o=t(),i=!or(r.memoizedState,o);if(i&&(r.memoizedState=o,ml=!0),r=r.queue,Mi(wi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ii&&1&ii.memoizedState.tag){if(n.flags|=2048,Di(9,Ci.bind(null,n,r,o,t),void 0,null),null===Ts)throw Error(a(349));30&ri||_i(n,t,o)}return o}function _i(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ci(e,t,n,r){t.value=n,t.getSnapshot=r,Si(t)&&Ti(e)}function wi(e,t,n){return n(function(){Si(t)&&Ti(e)})}function Si(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(e){return!0}}function Ti(e){var t=Pa(e,1);null!==t&&Zs(t,e,1,-1)}function Oi(e){var t=hi();return\"function\"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vi.bind(null,oi,e),[t.memoizedState,e]}function Di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return mi().memoizedState}function Ni(e,t,n,r){var o=hi();oi.flags|=e,o.memoizedState=Di(1|t,n,void 0,void 0===r?null:r)}function Li(e,t,n,r){var o=mi();r=void 0===r?null:r;var a=void 0;if(null!==ai){var i=ai.memoizedState;if(a=i.destroy,null!==r&&pi(r,i.deps))return void(o.memoizedState=Di(t,n,a,r))}oi.flags|=e,o.memoizedState=Di(1|t,n,a,r)}function Pi(e,t){return Ni(8390656,8,e,t)}function Mi(e,t){return Li(2048,8,e,t)}function xi(e,t){return Li(4,2,e,t)}function Ii(e,t){return Li(4,4,e,t)}function ki(e,t){return\"function\"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bi(e,t,n){return n=null!=n?n.concat([e]):null,Li(4,4,ki.bind(null,t,e),n)}function Fi(){}function ji(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hi(e,t){var n=mi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ui(e,t,n){return 21&ri?(or(n,t)||(n=ht(),oi.lanes|=n,Ms|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ml=!0),e.memoizedState=n)}function Yi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ni.transition;ni.transition={};try{e(!1),t()}finally{yt=n,ni.transition=r}}function Gi(){return mi().memoizedState}function zi(e,t,n){var r=Js(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qi(e)?Wi(t,n):null!==(n=La(e,t,n,r))&&(Zs(n,e,r,Xs()),Qi(n,t,r))}function Vi(e,t,n){var r=Js(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qi(e))Wi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,or(l,i)){var s=t.interleaved;return null===s?(o.next=o,Na(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=La(e,t,o,r))&&(Zs(n,e,r,o=Xs()),Qi(n,t,r))}}function qi(e){var t=e.alternate;return e===oi||null!==t&&t===oi}function Wi(e,t){si=li=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qi(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}var Ki={readContext:Da,useCallback:di,useContext:di,useEffect:di,useImperativeHandle:di,useInsertionEffect:di,useLayoutEffect:di,useMemo:di,useReducer:di,useRef:di,useState:di,useDebugValue:di,useDeferredValue:di,useTransition:di,useMutableSource:di,useSyncExternalStore:di,useId:di,unstable_isNewReconciler:!1},$i={readContext:Da,useCallback:function(e,t){return hi().memoizedState=[e,void 0===t?null:t],e},useContext:Da,useEffect:Pi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4194308,4,ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=hi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=zi.bind(null,oi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},hi().memoizedState=e},useState:Oi,useDebugValue:Fi,useDeferredValue:function(e){return hi().memoizedState=e},useTransition:function(){var e=Oi(!1),t=e[0];return e=Yi.bind(null,e[1]),hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oi,o=hi();if(na){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ts)throw Error(a(349));30&ri||_i(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Pi(wi.bind(null,r,i,e),[e]),r.flags|=2048,Di(9,Ci.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hi(),t=Ts.identifierPrefix;if(na){var n=Ko;t=\":\"+t+\"R\"+(n=(Qo&~(1<<32-it(Qo)-1)).toString(32)+n),0<(n=ui++)&&(t+=\"H\"+n.toString(32)),t+=\":\"}else t=\":\"+t+\"r\"+(n=ci++).toString(32)+\":\";return e.memoizedState=t},unstable_isNewReconciler:!1},Xi={readContext:Da,useCallback:ji,useContext:Da,useEffect:Mi,useImperativeHandle:Bi,useInsertionEffect:xi,useLayoutEffect:Ii,useMemo:Hi,useReducer:Ai,useRef:Ri,useState:function(){return Ai(vi)},useDebugValue:Fi,useDeferredValue:function(e){return Ui(mi(),ai.memoizedState,e)},useTransition:function(){return[Ai(vi)[0],mi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:bi,useId:Gi,unstable_isNewReconciler:!1},Ji={readContext:Da,useCallback:ji,useContext:Da,useEffect:Mi,useImperativeHandle:Bi,useInsertionEffect:xi,useLayoutEffect:Ii,useMemo:Hi,useReducer:yi,useRef:Ri,useState:function(){return yi(vi)},useDebugValue:Fi,useDeferredValue:function(e){var t=mi();return null===ai?t.memoizedState=e:Ui(t,ai.memoizedState,e)},useTransition:function(){return[yi(vi)[0],mi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:bi,useId:Gi,unstable_isNewReconciler:!1};function Zi(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function el(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var tl={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xs(),o=Js(e),a=ka(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ba(e,a,o))&&(Zs(t,e,o,r),Fa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xs(),o=Js(e),a=ka(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ba(e,a,o))&&(Zs(t,e,o,r),Fa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xs(),r=Js(e),o=ka(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ba(e,o,r))&&(Zs(t,e,r,n),Fa(t,e,r))}};function nl(e,t,n,r,o,a,i){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&ar(n,r)&&ar(o,a))}function rl(e,t,n){var r=!1,o=So,a=t.contextType;return\"object\"==typeof a&&null!==a?a=Da(a):(o=No(t)?Do:To.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):So),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=tl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ol(e,t,n,r){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tl.enqueueReplaceState(t,t.state,null)}function al(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},xa(e);var a=t.contextType;\"object\"==typeof a&&null!==a?o.context=Da(a):(a=No(t)?Do:To.current,o.context=Ro(e,a)),o.state=e.memoizedState,\"function\"==typeof(a=t.getDerivedStateFromProps)&&(el(e,t,a,n),o.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof o.getSnapshotBeforeUpdate||\"function\"!=typeof o.UNSAFE_componentWillMount&&\"function\"!=typeof o.componentWillMount||(t=o.state,\"function\"==typeof o.componentWillMount&&o.componentWillMount(),\"function\"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&tl.enqueueReplaceState(o,o.state,null),Ha(e,n,o,r),o.state=e.memoizedState),\"function\"==typeof o.componentDidMount&&(e.flags|=4194308)}function il(e,t){try{var n=\"\",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o=\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ll(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function sl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ul=\"function\"==typeof WeakMap?WeakMap:Map;function cl(e,t,n){(n=ka(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Ys=r),sl(0,t)},n}function dl(e,t,n){(n=ka(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){sl(0,t)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(n.callback=function(){sl(0,t),\"function\"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:\"\"})}),n}function pl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ul;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function fl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ka(-1,1)).tag=2,Ba(n,t,1))),n.lanes|=1),e)}var hl=E.ReactCurrentOwner,ml=!1;function vl(e,t,n,r){t.child=null===e?ya(t,null,n,r):Aa(t,e.child,n,r)}function Al(e,t,n,r,o){n=n.render;var a=t.ref;return Oa(t,o),r=fi(e,t,n,r,a,o),n=gi(),null===e||ml?(na&&n&&Jo(t),t.flags|=1,vl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function yl(e,t,n,r,o){if(null===e){var a=n.type;return\"function\"!=typeof a||Ru(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(i,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Nu(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ar(a,r)&&e.ref===t.ref){if(ml=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);131072&e.flags&&(ml=!0)}}return Cl(e,t,n,r,o)}function bl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if(\"hidden\"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wo(Ns,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,wo(Ns,Rs),Rs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wo(Ns,Rs),Rs|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,wo(Ns,Rs),Rs|=r;return vl(e,t,o,n),t.child}function _l(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cl(e,t,n,r,o){var a=No(n)?Do:To.current;return a=Ro(t,a),Oa(t,o),n=fi(e,t,n,r,a,o),r=gi(),null===e||ml?(na&&r&&Jo(t),t.flags|=1,vl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function wl(e,t,n,r,o){if(No(n)){var a=!0;xo(t)}else a=!1;if(Oa(t,o),null===t.stateNode)Hl(e,t),rl(t,n,r),al(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;u=\"object\"==typeof u&&null!==u?Da(u):Ro(t,u=No(n)?Do:To.current);var c=n.getDerivedStateFromProps,d=\"function\"==typeof c||\"function\"==typeof i.getSnapshotBeforeUpdate;d||\"function\"!=typeof i.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ol(t,i,r,u),Ma=!1;var p=t.memoizedState;i.state=p,Ha(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Oo.current||Ma?(\"function\"==typeof c&&(el(t,n,c,r),s=t.memoizedState),(l=Ma||nl(t,n,l,r,p,s,u))?(d||\"function\"!=typeof i.UNSAFE_componentWillMount&&\"function\"!=typeof i.componentWillMount||(\"function\"==typeof i.componentWillMount&&i.componentWillMount(),\"function\"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),\"function\"==typeof i.componentDidMount&&(t.flags|=4194308)):(\"function\"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):(\"function\"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Zi(t.type,l),i.props=u,d=t.pendingProps,p=i.context,s=\"object\"==typeof(s=n.contextType)&&null!==s?Da(s):Ro(t,s=No(n)?Do:To.current);var f=n.getDerivedStateFromProps;(c=\"function\"==typeof f||\"function\"==typeof i.getSnapshotBeforeUpdate)||\"function\"!=typeof i.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&ol(t,i,r,s),Ma=!1,p=t.memoizedState,i.state=p,Ha(t,r,i,o);var g=t.memoizedState;l!==d||p!==g||Oo.current||Ma?(\"function\"==typeof f&&(el(t,n,f,r),g=t.memoizedState),(u=Ma||nl(t,n,u,r,p,g,s)||!1)?(c||\"function\"!=typeof i.UNSAFE_componentWillUpdate&&\"function\"!=typeof i.componentWillUpdate||(\"function\"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,g,s),\"function\"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,g,s)),\"function\"==typeof i.componentDidUpdate&&(t.flags|=4),\"function\"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):(\"function\"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=s,r=u):(\"function\"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Sl(e,t,n,r,a,o)}function Sl(e,t,n,r,o,a){_l(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Io(t,n,!1),Ul(e,t,a);r=t.stateNode,hl.current=t;var l=i&&\"function\"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Aa(t,e.child,null,a),t.child=Aa(t,null,l,a)):vl(e,t,l,a),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Po(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Po(0,t.context,!1),Wa(e,t.containerInfo)}function Ol(e,t,n,r,o){return da(),pa(o),t.flags|=256,vl(e,t,n,r),t.child}var Dl,Rl,Nl,Ll,Pl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function xl(e,t,n){var r,o=t.pendingProps,i=Xa.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),wo(Xa,1&i),null===e)return la(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?\"$!\"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:\"hidden\",children:s},1&o||null===l?l=Mu(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Pu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Pl,e):Il(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,kl(e,t,l,r=ll(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mu({mode:\"visible\",children:r.children},o,0,null),(i=Pu(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Aa(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Pl,i);if(!(1&t.mode))return kl(e,t,l,null);if(\"$!\"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,kl(e,t,l,r=ll(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),ml||s){if(null!==(r=Ts)){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Pa(e,o),Zs(r,e,o,-1))}return pu(),kl(e,t,l,r=ll(Error(a(421))))}return\"$?\"===o.data?(t.flags|=128,t.child=e.child,t=wu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ta=io(o.nextSibling),ea=t,na=!0,ra=null,null!==e&&(Vo[qo++]=Qo,Vo[qo++]=Ko,Vo[qo++]=Wo,Qo=e.id,Ko=e.overflow,Wo=t),(t=Il(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:\"hidden\",children:o.children};return 1&s||t.child===i?(o=Nu(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Nu(r,l):(l=Pu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ml(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Pl,o}return e=(l=e.child).sibling,o=Nu(l,{mode:\"visible\",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Il(e,t){return(t=Mu({mode:\"visible\",children:t},e.mode,0,null)).return=e,e.child=t}function kl(e,t,n,r){return null!==r&&pa(r),Aa(t,e.child,null,n),(e=Il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ta(e.return,t,n)}function Fl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function jl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(vl(e,t,r.children,n),2&(r=Xa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(wo(Xa,r),1&t.mode)switch(o){case\"forwards\":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ja(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Fl(t,!1,o,n,a);break;case\"backwards\":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ja(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Fl(t,!0,n,null,a);break;case\"together\":Fl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Yl(e,t){if(!na)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zl(e,t,n){var r=t.pendingProps;switch(Zo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return No(t.type)&&Lo(),Gl(t),null;case 3:return r=t.stateNode,Qa(),Co(Oo),Co(To),ei(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ua(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ra&&(ru(ra),ra=null))),Rl(e,t),Gl(t),null;case 5:$a(t);var o=qa(Va.current);if(n=t.type,null!==e&&null!=t.stateNode)Nl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gl(t),null}if(e=qa(Ga.current),ua(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[uo]=t,r[co]=i,e=!!(1&t.mode),n){case\"dialog\":kr(\"cancel\",r),kr(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":kr(\"load\",r);break;case\"video\":case\"audio\":for(o=0;o<Pr.length;o++)kr(Pr[o],r);break;case\"source\":kr(\"error\",r);break;case\"img\":case\"image\":case\"link\":kr(\"error\",r),kr(\"load\",r);break;case\"details\":kr(\"toggle\",r);break;case\"input\":$(r,i),kr(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!i.multiple},kr(\"invalid\",r);break;case\"textarea\":oe(r,i),kr(\"invalid\",r)}for(var s in Ae(n,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];\"children\"===s?\"string\"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Kr(r.textContent,u,e),o=[\"children\",u]):\"number\"==typeof u&&r.textContent!==\"\"+u&&(!0!==i.suppressHydrationWarning&&Kr(r.textContent,u,e),o=[\"children\",\"\"+u]):l.hasOwnProperty(s)&&null!=u&&\"onScroll\"===s&&kr(\"scroll\",r)}switch(n){case\"input\":q(r),Z(r,i,!0);break;case\"textarea\":q(r),ie(r);break;case\"select\":case\"option\":break;default:\"function\"==typeof i.onClick&&(r.onclick=$r)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,\"http://www.w3.org/1999/xhtml\"===e&&(e=le(n)),\"http://www.w3.org/1999/xhtml\"===e?\"script\"===n?((e=s.createElement(\"div\")).innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):\"string\"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),\"select\"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[uo]=t,e[co]=r,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case\"dialog\":kr(\"cancel\",e),kr(\"close\",e),o=r;break;case\"iframe\":case\"object\":case\"embed\":kr(\"load\",e),o=r;break;case\"video\":case\"audio\":for(o=0;o<Pr.length;o++)kr(Pr[o],e);o=r;break;case\"source\":kr(\"error\",e),o=r;break;case\"img\":case\"image\":case\"link\":kr(\"error\",e),kr(\"load\",e),o=r;break;case\"details\":kr(\"toggle\",e),o=r;break;case\"input\":$(e,r),o=K(e,r),kr(\"invalid\",e);break;case\"option\":default:o=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),kr(\"invalid\",e);break;case\"textarea\":oe(e,r),o=re(e,r),kr(\"invalid\",e)}for(i in Ae(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];\"style\"===i?me(e,c):\"dangerouslySetInnerHTML\"===i?null!=(c=c?c.__html:void 0)&&de(e,c):\"children\"===i?\"string\"==typeof c?(\"textarea\"!==n||\"\"!==c)&&pe(e,c):\"number\"==typeof c&&pe(e,\"\"+c):\"suppressContentEditableWarning\"!==i&&\"suppressHydrationWarning\"!==i&&\"autoFocus\"!==i&&(l.hasOwnProperty(i)?null!=c&&\"onScroll\"===i&&kr(\"scroll\",e):null!=c&&y(e,i,c,s))}switch(n){case\"input\":q(e),Z(e,r,!1);break;case\"textarea\":q(e),ie(e);break;case\"option\":null!=r.value&&e.setAttribute(\"value\",\"\"+z(r.value));break;case\"select\":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:\"function\"==typeof o.onClick&&(e.onclick=$r)}switch(n){case\"button\":case\"input\":case\"select\":case\"textarea\":r=!!r.autoFocus;break e;case\"img\":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,r);else{if(\"string\"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=qa(Va.current),qa(Ga.current),ua(t)){if(r=t.stateNode,n=t.memoizedProps,r[uo]=t,(i=r.nodeValue!==n)&&null!==(e=ea))switch(e.tag){case 3:Kr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[uo]=t,t.stateNode=r}return Gl(t),null;case 13:if(Co(Xa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(na&&null!==ta&&1&t.mode&&!(128&t.flags))ca(),da(),t.flags|=98560,i=!1;else if(i=ua(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[uo]=t}else da(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),i=!1}else null!==ra&&(ru(ra),ra=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Xa.current?0===Ls&&(Ls=3):pu())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return Qa(),Rl(e,t),null===e&&jr(t.stateNode.containerInfo),Gl(t),null;case 10:return Sa(t.type._context),Gl(t),null;case 19:if(Co(Xa),null===(i=t.memoizedState))return Gl(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)Yl(i,!1);else{if(0!==Ls||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=Ja(e))){for(t.flags|=128,Yl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return wo(Xa,1&Xa.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>js&&(t.flags|=128,r=!0,Yl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ja(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Yl(i,!0),null===i.tail&&\"hidden\"===i.tailMode&&!s.alternate&&!na)return Gl(t),null}else 2*Xe()-i.renderingStartTime>js&&1073741824!==n&&(t.flags|=128,r=!0,Yl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=Xa.current,wo(Xa,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return su(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Rs)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Vl(e,t){switch(Zo(t),t.tag){case 1:return No(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qa(),Co(Oo),Co(To),ei(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $a(t),null;case 13:if(Co(Xa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));da()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(Xa),null;case 4:return Qa(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return su(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rl=function(){},Nl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qa(Ga.current);var a,i=null;switch(n){case\"input\":o=K(e,o),r=K(e,r),i=[];break;case\"select\":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case\"textarea\":o=re(e,o),r=re(e,r),i=[];break;default:\"function\"!=typeof o.onClick&&\"function\"==typeof r.onClick&&(e.onclick=$r)}for(c in Ae(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if(\"style\"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]=\"\")}else\"dangerouslySetInnerHTML\"!==c&&\"children\"!==c&&\"suppressContentEditableWarning\"!==c&&\"suppressHydrationWarning\"!==c&&\"autoFocus\"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if(\"style\"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]=\"\");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else\"dangerouslySetInnerHTML\"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):\"children\"===c?\"string\"!=typeof u&&\"number\"!=typeof u||(i=i||[]).push(c,\"\"+u):\"suppressContentEditableWarning\"!==c&&\"suppressHydrationWarning\"!==c&&(l.hasOwnProperty(c)?(null!=u&&\"onScroll\"===c&&kr(\"scroll\",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push(\"style\",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var ql=!1,Wl=!1,Ql=\"function\"==typeof WeakSet?WeakSet:Set,Kl=null;function $l(e,t){var n=e.ref;if(null!==n)if(\"function\"==typeof n)try{n(null)}catch(n){bu(e,t,n)}else n.current=null}function Xl(e,t,n){try{n()}catch(n){bu(e,t,n)}}var Jl=!1;function Zl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Xl(t,n,a)}o=o.next}while(o!==r)}}function es(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ts(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,\"function\"==typeof t?t(e):t.current=e}}function ns(e){var t=e.alternate;null!==t&&(e.alternate=null,ns(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[uo],delete t[co],delete t[fo],delete t[go],delete t[ho]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rs(e){return 5===e.tag||3===e.tag||4===e.tag}function os(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function as(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(as(e,t,n),e=e.sibling;null!==e;)as(e,t,n),e=e.sibling}function is(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(is(e,t,n),e=e.sibling;null!==e;)is(e,t,n),e=e.sibling}var ls=null,ss=!1;function us(e,t,n){for(n=n.child;null!==n;)cs(e,t,n),n=n.sibling}function cs(e,t,n){if(at&&\"function\"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Wl||$l(n,t);case 6:var r=ls,o=ss;ls=null,us(e,t,n),ss=o,null!==(ls=r)&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ls.removeChild(n.stateNode));break;case 18:null!==ls&&(ss?(e=ls,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),Yt(e)):ao(ls,n.stateNode));break;case 4:r=ls,o=ss,ls=n.stateNode.containerInfo,ss=!0,us(e,t,n),ls=r,ss=o;break;case 0:case 11:case 14:case 15:if(!Wl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&Xl(n,t,i),o=o.next}while(o!==r)}us(e,t,n);break;case 1:if(!Wl&&($l(n,t),\"function\"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){bu(n,t,e)}us(e,t,n);break;case 21:us(e,t,n);break;case 22:1&n.mode?(Wl=(r=Wl)||null!==n.memoizedState,us(e,t,n),Wl=r):us(e,t,n);break;default:us(e,t,n)}}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach(function(t){var r=Su.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ps(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ls=s.stateNode,ss=!1;break e;case 3:case 4:ls=s.stateNode.containerInfo,ss=!0;break e}s=s.return}if(null===ls)throw Error(a(160));cs(i,l,o),ls=null,ss=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){bu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fs(t,e),t=t.sibling}function fs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ps(t,e),gs(e),4&r){try{Zl(3,e,e.return),es(3,e)}catch(t){bu(e,e.return,t)}try{Zl(5,e,e.return)}catch(t){bu(e,e.return,t)}}break;case 1:ps(t,e),gs(e),512&r&&null!==n&&$l(n,n.return);break;case 5:if(ps(t,e),gs(e),512&r&&null!==n&&$l(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,\"\")}catch(t){bu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{\"input\"===s&&\"radio\"===i.type&&null!=i.name&&X(o,i),ye(s,l);var c=ye(s,i);for(l=0;l<u.length;l+=2){var d=u[l],p=u[l+1];\"style\"===d?me(o,p):\"dangerouslySetInnerHTML\"===d?de(o,p):\"children\"===d?pe(o,p):y(o,d,p,c)}switch(s){case\"input\":J(o,i);break;case\"textarea\":ae(o,i);break;case\"select\":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;null!=g?ne(o,!!i.multiple,g,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:\"\",!1))}o[co]=i}catch(t){bu(e,e.return,t)}}break;case 6:if(ps(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){bu(e,e.return,t)}}break;case 3:if(ps(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Yt(t.containerInfo)}catch(t){bu(e,e.return,t)}break;case 4:default:ps(t,e),gs(e);break;case 13:ps(t,e),gs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Fs=Xe())),4&r&&ds(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Wl=(c=Wl)||d,ps(t,e),Wl=c):ps(t,e),gs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Kl=e,d=e.child;null!==d;){for(p=Kl=d;null!==Kl;){switch(g=(f=Kl).child,f.tag){case 0:case 11:case 14:case 15:Zl(4,f,f.return);break;case 1:$l(f,f.return);var h=f.stateNode;if(\"function\"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){bu(r,n,e)}}break;case 5:$l(f,f.return);break;case 22:if(null!==f.memoizedState){As(p);continue}}null!==g?(g.return=f,Kl=g):As(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,c?\"function\"==typeof(i=o.style).setProperty?i.setProperty(\"display\",\"none\",\"important\"):i.display=\"none\":(s=p.stateNode,l=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty(\"display\")?u.display:null,s.style.display=he(\"display\",l))}catch(t){bu(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?\"\":p.memoizedProps}catch(t){bu(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ps(t,e),gs(e),4&r&&ds(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(rs(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,\"\"),r.flags&=-33),is(e,os(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;as(e,os(e),i);break;default:throw Error(a(161))}}catch(t){bu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function hs(e,t,n){Kl=e,ms(e,t,n)}function ms(e,t,n){for(var r=!!(1&e.mode);null!==Kl;){var o=Kl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||ql;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Wl;l=ql;var u=Wl;if(ql=i,(Wl=s)&&!u)for(Kl=o;null!==Kl;)s=(i=Kl).child,22===i.tag&&null!==i.memoizedState?ys(o):null!==s?(s.return=i,Kl=s):ys(o);for(;null!==a;)Kl=a,ms(a,t,n),a=a.sibling;Kl=o,ql=l,Wl=u}vs(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Kl=a):vs(e)}}function vs(e){for(;null!==Kl;){var t=Kl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Wl||es(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Wl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Zi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ua(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case\"button\":case\"input\":case\"select\":case\"textarea\":u.autoFocus&&n.focus();break;case\"img\":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Yt(p)}}}break;default:throw Error(a(163))}Wl||512&t.flags&&ts(t)}catch(e){bu(t,t.return,e)}}if(t===e){Kl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Kl=n;break}Kl=t.return}}function As(e){for(;null!==Kl;){var t=Kl;if(t===e){Kl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Kl=n;break}Kl=t.return}}function ys(e){for(;null!==Kl;){var t=Kl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{es(4,t)}catch(e){bu(t,n,e)}break;case 1:var r=t.stateNode;if(\"function\"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){bu(t,o,e)}}var a=t.return;try{ts(t)}catch(e){bu(t,a,e)}break;case 5:var i=t.return;try{ts(t)}catch(e){bu(t,i,e)}}}catch(e){bu(t,t.return,e)}if(t===e){Kl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Kl=l;break}Kl=t.return}}var Es,bs=Math.ceil,_s=E.ReactCurrentDispatcher,Cs=E.ReactCurrentOwner,ws=E.ReactCurrentBatchConfig,Ss=0,Ts=null,Os=null,Ds=0,Rs=0,Ns=_o(0),Ls=0,Ps=null,Ms=0,xs=0,Is=0,ks=null,Bs=null,Fs=0,js=1/0,Hs=null,Us=!1,Ys=null,Gs=null,zs=!1,Vs=null,qs=0,Ws=0,Qs=null,Ks=-1,$s=0;function Xs(){return 6&Ss?Xe():-1!==Ks?Ks:Ks=Xe()}function Js(e){return 1&e.mode?2&Ss&&0!==Ds?Ds&-Ds:null!==fa.transition?(0===$s&&($s=ht()),$s):0!==(e=yt)?e:e=void 0===(e=window.event)?16:$t(e.type):1}function Zs(e,t,n,r){if(50<Ws)throw Ws=0,Qs=null,Error(a(185));vt(e,n,r),2&Ss&&e===Ts||(e===Ts&&(!(2&Ss)&&(xs|=n),4===Ls&&ou(e,Ds)),eu(e,r),1===n&&0===Ss&&!(1&t.mode)&&(js=Xe()+500,Bo&&Ho()))}function eu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Ts?Ds:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Bo=!0,jo(e)}(au.bind(null,e)):jo(au.bind(null,e)),ro(function(){!(6&Ss)&&Ho()}),n=null;else{switch(Et(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tu(n,tu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tu(e,t){if(Ks=-1,$s=0,6&Ss)throw Error(a(327));var n=e.callbackNode;if(yu()&&e.callbackNode!==n)return null;var r=pt(e,e===Ts?Ds:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=fu(e,r);else{t=r;var o=Ss;Ss|=2;var i=du();for(Ts===e&&Ds===t||(Hs=null,js=Xe()+500,uu(e,t));;)try{hu();break}catch(t){cu(e,t)}wa(),_s.current=i,Ss=o,null!==Os?t=0:(Ts=null,Ds=0,t=Ls)}if(0!==t){if(2===t&&0!==(o=gt(e))&&(r=o,t=nu(e,o)),1===t)throw n=Ps,uu(e,0),ou(e,r),eu(e,Xe()),n;if(6===t)ou(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!or(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=fu(e,r),2===t&&(i=gt(e),0!==i&&(r=i,t=nu(e,i))),1!==t)))throw n=Ps,uu(e,0),ou(e,r),eu(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Au(e,Bs,Hs);break;case 3:if(ou(e,r),(130023424&r)===r&&10<(t=Fs+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Xs(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=eo(Au.bind(null,e,Bs,Hs),t);break}Au(e,Bs,Hs);break;case 4:if(ou(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bs(r/1960))-r)){e.timeoutHandle=eo(Au.bind(null,e,Bs,Hs),r);break}Au(e,Bs,Hs);break;default:throw Error(a(329))}}}return eu(e,Xe()),e.callbackNode===n?tu.bind(null,e):null}function nu(e,t){var n=ks;return e.current.memoizedState.isDehydrated&&(uu(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Bs,Bs=n,null!==t&&ru(t)),e}function ru(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function ou(e,t){for(t&=~Is,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function au(e){if(6&Ss)throw Error(a(327));yu();var t=pt(e,0);if(!(1&t))return eu(e,Xe()),null;var n=fu(e,t);if(0!==e.tag&&2===n){var r=gt(e);0!==r&&(t=r,n=nu(e,r))}if(1===n)throw n=Ps,uu(e,0),ou(e,t),eu(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e,Bs,Hs),eu(e,Xe()),null}function iu(e,t){var n=Ss;Ss|=1;try{return e(t)}finally{0===(Ss=n)&&(js=Xe()+500,Bo&&Ho())}}function lu(e){null!==Vs&&0===Vs.tag&&!(6&Ss)&&yu();var t=Ss;Ss|=1;var n=ws.transition,r=yt;try{if(ws.transition=null,yt=1,e)return e()}finally{yt=r,ws.transition=n,!(6&(Ss=t))&&Ho()}}function su(){Rs=Ns.current,Co(Ns)}function uu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,to(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(Zo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Qa(),Co(Oo),Co(To),ei();break;case 5:$a(r);break;case 4:Qa();break;case 13:case 19:Co(Xa);break;case 10:Sa(r.type._context);break;case 22:case 23:su()}n=n.return}if(Ts=e,Os=e=Nu(e.current,null),Ds=Rs=t,Ls=0,Ps=null,Is=xs=Ms=0,Bs=ks=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function cu(e,t){for(;;){var n=Os;try{if(wa(),ti.current=Ki,li){for(var r=oi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}li=!1}if(ri=0,ii=ai=oi=null,si=!1,ui=0,Cs.current=null,null===n||null===n.return){Ls=1,Ps=t,Os=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=Ds,s.flags|=32768,null!==u&&\"object\"==typeof u&&\"function\"==typeof u.then){var c=u,d=s,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=fl(l);if(null!==g){g.flags&=-257,gl(g,l,s,0,t),1&g.mode&&pl(i,c,t),u=c;var h=(t=g).updateQueue;if(null===h){var m=new Set;m.add(u),t.updateQueue=m}else h.add(u);break e}if(!(1&t)){pl(i,c,t),pu();break e}u=Error(a(426))}else if(na&&1&s.mode){var v=fl(l);if(null!==v){!(65536&v.flags)&&(v.flags|=256),gl(v,l,s,0,t),pa(il(u,s));break e}}i=u=il(u,s),4!==Ls&&(Ls=2),null===ks?ks=[i]:ks.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,ja(i,cl(0,u,t));break e;case 1:s=u;var A=i.type,y=i.stateNode;if(!(128&i.flags||\"function\"!=typeof A.getDerivedStateFromError&&(null===y||\"function\"!=typeof y.componentDidCatch||null!==Gs&&Gs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,ja(i,dl(i,s,t));break e}}i=i.return}while(null!==i)}vu(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function du(){var e=_s.current;return _s.current=Ki,null===e?Ki:e}function pu(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Ts||!(268435455&Ms)&&!(268435455&xs)||ou(Ts,Ds)}function fu(e,t){var n=Ss;Ss|=2;var r=du();for(Ts===e&&Ds===t||(Hs=null,uu(e,t));;)try{gu();break}catch(t){cu(e,t)}if(wa(),Ss=n,_s.current=r,null!==Os)throw Error(a(261));return Ts=null,Ds=0,Ls}function gu(){for(;null!==Os;)mu(Os)}function hu(){for(;null!==Os&&!Ke();)mu(Os)}function mu(e){var t=Es(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?vu(e):Os=t,Cs.current=null}function vu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vl(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return Ls=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=zl(n,t,Rs)))return void(Os=n);if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Ls&&(Ls=5)}function Au(e,t,n){var r=yt,o=ws.transition;try{ws.transition=null,yt=1,function(e,t,n,r){do{yu()}while(null!==Vs);if(6&Ss)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ts&&(Os=Ts=null,Ds=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||zs||(zs=!0,Tu(tt,function(){return yu(),null})),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=ws.transition,ws.transition=null;var l=yt;yt=1;var s=Ss;Ss|=4,Cs.current=null,function(e,t){if(Xr=zt,cr(e=ur())){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==n||0!==o&&3!==p.nodeType||(s=l+o),p!==i||0!==r&&3!==p.nodeType||(u=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(g=p.firstChild);)f=p,p=g;for(;;){if(p===e)break t;if(f===n&&++c===o&&(s=l),f===i&&++d===r&&(u=l),null!==(g=p.nextSibling))break;f=(p=f).parentNode}p=g}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jr={focusedElem:e,selectionRange:n},zt=!1,Kl=t;null!==Kl;)if(e=(t=Kl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Kl=e;else for(;null!==Kl;){t=Kl;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,A=t.stateNode,y=A.getSnapshotBeforeUpdate(t.elementType===t.type?m:Zi(t.type,m),v);A.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var E=t.stateNode.containerInfo;1===E.nodeType?E.textContent=\"\":9===E.nodeType&&E.documentElement&&E.removeChild(E.documentElement);break;default:throw Error(a(163))}}catch(e){bu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Kl=e;break}Kl=t.return}h=Jl,Jl=!1}(e,n),fs(n,e),dr(Jr),zt=!!Xr,Jr=Xr=null,e.current=n,hs(n,e,o),$e(),Ss=s,yt=l,ws.transition=i}else e.current=n;if(zs&&(zs=!1,Vs=e,qs=o),0===(i=e.pendingLanes)&&(Gs=null),function(e){if(at&&\"function\"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),eu(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Us)throw Us=!1,e=Ys,Ys=null,e;!!(1&qs)&&0!==e.tag&&yu(),1&(i=e.pendingLanes)?e===Qs?Ws++:(Ws=0,Qs=e):Ws=0,Ho()}(e,t,n,r)}finally{ws.transition=o,yt=r}return null}function yu(){if(null!==Vs){var e=Et(qs),t=ws.transition,n=yt;try{if(ws.transition=null,yt=16>e?16:e,null===Vs)var r=!1;else{if(e=Vs,Vs=null,qs=0,6&Ss)throw Error(a(331));var o=Ss;for(Ss|=4,Kl=e.current;null!==Kl;){var i=Kl,l=i.child;if(16&Kl.flags){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Kl=c;null!==Kl;){var d=Kl;switch(d.tag){case 0:case 11:case 15:Zl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Kl=p;else for(;null!==Kl;){var f=(d=Kl).sibling,g=d.return;if(ns(d),d===c){Kl=null;break}if(null!==f){f.return=g,Kl=f;break}Kl=g}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Kl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Kl=l;else e:for(;null!==Kl;){if(2048&(i=Kl).flags)switch(i.tag){case 0:case 11:case 15:Zl(9,i,i.return)}var A=i.sibling;if(null!==A){A.return=i.return,Kl=A;break e}Kl=i.return}}var y=e.current;for(Kl=y;null!==Kl;){var E=(l=Kl).child;if(2064&l.subtreeFlags&&null!==E)E.return=l,Kl=E;else e:for(l=y;null!==Kl;){if(2048&(s=Kl).flags)try{switch(s.tag){case 0:case 11:case 15:es(9,s)}}catch(e){bu(s,s.return,e)}if(s===l){Kl=null;break e}var b=s.sibling;if(null!==b){b.return=s.return,Kl=b;break e}Kl=s.return}}if(Ss=o,Ho(),at&&\"function\"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,ws.transition=t}}return!1}function Eu(e,t,n){e=Ba(e,t=cl(0,t=il(n,t),1),1),t=Xs(),null!==e&&(vt(e,1,t),eu(e,t))}function bu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if(\"function\"==typeof t.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=Ba(t,e=dl(t,e=il(n,e),1),1),e=Xs(),null!==t&&(vt(t,1,e),eu(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xs(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Ds&n)===n&&(4===Ls||3===Ls&&(130023424&Ds)===Ds&&500>Xe()-Fs?uu(e,0):Is|=n),eu(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Xs();null!==(e=Pa(e,t))&&(vt(e,t,n),eu(e,n))}function wu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Su(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Cu(e,n)}function Tu(e,t){return We(e,t)}function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Ou(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,i){var l=2;if(r=e,\"function\"==typeof e)Ru(e)&&(l=1);else if(\"string\"==typeof e)l=5;else e:switch(e){case C:return Pu(n.children,o,i,t);case w:l=8,o|=8;break;case S:return(e=Du(12,n,t,2|o)).elementType=S,e.lanes=i,e;case R:return(e=Du(13,n,t,o)).elementType=R,e.lanes=i,e;case N:return(e=Du(19,n,t,o)).elementType=N,e.lanes=i,e;case M:return Mu(n,o,i,t);default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case O:l=9;break e;case D:l=11;break e;case L:l=14;break e;case P:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,\"\"))}return(t=Du(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Pu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function xu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Iu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ku(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,a,i,l,s){return e=new ku(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Du(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xa(a),e}function Fu(e){if(!e)return So;e:{if(Ye(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return Mo(e,n,t)}return t}function ju(e,t,n,r,o,a,i,l,s){return(e=Bu(n,r,!0,e,0,a,0,l,s)).context=Fu(null),n=e.current,(a=ka(r=Xs(),o=Js(n))).callback=null!=t?t:null,Ba(n,a,o),e.current.lanes=o,vt(e,o,r),eu(e,r),e}function Hu(e,t,n,r){var o=t.current,a=Xs(),i=Js(o);return n=Fu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ka(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ba(o,t,i))&&(Zs(e,o,i,a),Fa(e,o,i)),i}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Es=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)ml=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ml=!1,function(e,t,n){switch(t.tag){case 3:Tl(t),da();break;case 5:Ka(t);break;case 1:No(t.type)&&xo(t);break;case 4:Wa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;wo(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(wo(Xa,1&Xa.current),t.flags|=128,null):0!==(n&t.child.childLanes)?xl(e,t,n):(wo(Xa,1&Xa.current),null!==(e=Ul(e,t,n))?e.sibling:null);wo(Xa,1&Xa.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return jl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),wo(Xa,Xa.current),r)break;return null;case 22:case 23:return t.lanes=0,bl(e,t,n)}return Ul(e,t,n)}(e,t,n);ml=!!(131072&e.flags)}else ml=!1,na&&1048576&t.flags&&Xo(t,zo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Ro(t,To.current);Oa(t,n),o=fi(null,t,r,e,o,n);var i=gi();return t.flags|=1,\"object\"==typeof o&&null!==o&&\"function\"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,xo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,xa(t),o.updater=tl,t.stateNode=o,o._reactInternals=t,al(t,r,e,n),t=Sl(null,t,r,!0,i,n)):(t.tag=0,na&&i&&Jo(t),vl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if(\"function\"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===L)return 14}return 2}(r),e=Zi(r,e),o){case 0:t=Cl(null,t,r,e,n);break e;case 1:t=wl(null,t,r,e,n);break e;case 11:t=Al(null,t,r,e,n);break e;case 14:t=yl(null,t,r,Zi(r.type,e),n);break e}throw Error(a(306,r,\"\"))}return t;case 0:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:Zi(r,o),n);case 1:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:Zi(r,o),n);case 3:e:{if(Tl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ia(e,t),Ha(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ol(e,t,r,n,o=il(Error(a(423)),t));break e}if(r!==o){t=Ol(e,t,r,n,o=il(Error(a(424)),t));break e}for(ta=io(t.stateNode.containerInfo.firstChild),ea=t,na=!0,ra=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(da(),r===o){t=Ul(e,t,n);break e}vl(e,t,r,n)}t=t.child}return t;case 5:return Ka(t),null===e&&la(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Zr(r,o)?l=null:null!==i&&Zr(r,i)&&(t.flags|=32),_l(e,t),vl(e,t,l,n),t.child;case 6:return null===e&&la(t),null;case 13:return xl(e,t,n);case 4:return Wa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Aa(t,null,r,n):vl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:Zi(r,o),n);case 7:return vl(e,t,t.pendingProps,n),t.child;case 8:case 12:return vl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,wo(Ea,r._currentValue),r._currentValue=l,null!==i)if(or(i.value,l)){if(i.children===o.children&&!Oo.current){t=Ul(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=ka(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Ta(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ta(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}vl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oa(t,n),r=r(o=Da(o)),t.flags|=1,vl(e,t,r,n),t.child;case 14:return o=Zi(r=t.type,t.pendingProps),yl(e,t,r,o=Zi(r.type,o),n);case 15:return El(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zi(r,o),Hl(e,t),t.tag=1,No(r)?(e=!0,xo(t)):e=!1,Oa(t,n),rl(t,r,o),al(t,r,o,n),Sl(null,t,r,!0,e,n);case 19:return jl(e,t,n);case 22:return bl(e,t,n)}throw Error(a(156,t.tag))};var zu=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Wu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function Ku(){}function $u(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(\"function\"==typeof o){var l=o;o=function(){var e=Uu(i);l.call(e)}}Hu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if(\"function\"==typeof r){var a=r;r=function(){var e=Uu(i);a.call(e)}}var i=ju(t,r,e,0,null,!1,0,\"\",Ku);return e._reactRootContainer=i,e[po]=i.current,jr(8===e.nodeType?e.parentNode:e),lu(),i}for(;o=e.lastChild;)e.removeChild(o);if(\"function\"==typeof r){var l=r;r=function(){var e=Uu(s);l.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,\"\",Ku);return e._reactRootContainer=s,e[po]=s.current,jr(8===e.nodeType?e.parentNode:e),lu(function(){Hu(t,s,n,r)}),s}(n,t,e,o,r);return Uu(i)}qu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hu(e,t,null,null)},qu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lu(function(){Hu(null,e,null,null)}),t[po]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Bt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(At(t,1|n),eu(t,Xe()),!(6&Ss)&&(js=Xe()+500,Ho()))}break;case 13:lu(function(){var t=Pa(e,1);if(null!==t){var n=Xs();Zs(t,e,1,n)}}),Gu(e,1)}},_t=function(e){if(13===e.tag){var t=Pa(e,134217728);null!==t&&Zs(t,e,134217728,Xs()),Gu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=Js(e),n=Pa(e,t);null!==n&&Zs(n,e,t,Xs()),Gu(e,t)}},wt=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},_e=function(e,t,n){switch(t){case\"input\":if(J(e,n),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=yo(r);if(!o)throw Error(a(90));W(r),J(r,o)}}}break;case\"textarea\":ae(e,n);break;case\"select\":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=iu,Re=lu;var Xu={usingClientEntryPoint:!1,Events:[vo,Ao,yo,Te,Oe,iu]},Ju={findFiberByHostInstance:mo,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"},Zu={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1-next-f1338f8080-20240426\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{ot=ec.inject(Zu),at=ec}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Wu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:\"\"+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Wu(e))throw Error(a(299));var n=!1,r=\"\",o=zu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,o),e[po]=t.current,jr(8===e.nodeType?e.parentNode:e),new Vu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if(\"function\"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(\",\"),Error(a(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return lu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(a(200));return $u(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Wu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i=\"\",l=zu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=ju(t,null,e,1,null!=n?n:null,o,0,i,l),e[po]=t.current,jr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new qu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(a(200));return $u(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(a(40));return!!e._reactRootContainer&&(lu(function(){$u(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0)},t.unstable_batchedUpdates=iu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return $u(e,t,n,!1,r)},t.version=\"18.3.1-next-f1338f8080-20240426\"},22618:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h});var r=n(98587),o=n(58168),a=n(9417),i=n(77387),l=n(81970),s=n.n(l),u=n(17241);function c(e,t){var n=Object.create(null);return e&&l.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,l.isValidElement)(e)?t(e):e}(e)}),n}function d(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var r=c(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if((0,l.isValidElement)(i)){var s=a in t,u=a in r,c=t[a],p=(0,l.isValidElement)(c)&&!c.props.in;!u||s&&!p?u||!s||p?u&&s&&(0,l.isValidElement)(c)&&(o[a]=(0,l.cloneElement)(i,{onExited:n.bind(null,i),in:c.props.in,exit:d(i,\"exit\",e),enter:d(i,\"enter\",e)})):o[a]=(0,l.cloneElement)(i,{in:!1}):o[a]=(0,l.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:d(i,\"exit\",e),enter:d(i,\"enter\",e)})}}),o}var f=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},g=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,a.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,c(n.children,function(e){return(0,l.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:d(e,\"appear\",n),enter:d(e,\"enter\",n),exit:d(e,\"exit\",n)})})):p(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.A)(e,[\"component\",\"childFactory\"]),a=this.state.contextValue,i=f(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s().createElement(u.A.Provider,{value:a},i):s().createElement(u.A.Provider,{value:a},s().createElement(t,o,i))},t}(s().Component);g.propTypes={},g.defaultProps={component:\"div\",childFactory:function(e){return e}};const h=g},22682:(e,t,n)=>{var r=n(98936),o=n(15495),a=n(69204),i=n(78381),l=n(43066),s=n(14913),u=Object.getOwnPropertyDescriptor;t.f=n(75872)?u:function(e,t){if(e=a(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},22765:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=(0,n(76544).A)()},22799:(e,t)=>{\"use strict\";var n=\"function\"==typeof Symbol&&Symbol.for,r=n?Symbol.for(\"react.element\"):60103,o=n?Symbol.for(\"react.portal\"):60106,a=n?Symbol.for(\"react.fragment\"):60107,i=n?Symbol.for(\"react.strict_mode\"):60108,l=n?Symbol.for(\"react.profiler\"):60114,s=n?Symbol.for(\"react.provider\"):60109,u=n?Symbol.for(\"react.context\"):60110,c=n?Symbol.for(\"react.async_mode\"):60111,d=n?Symbol.for(\"react.concurrent_mode\"):60111,p=n?Symbol.for(\"react.forward_ref\"):60112,f=n?Symbol.for(\"react.suspense\"):60113,g=n?Symbol.for(\"react.suspense_list\"):60120,h=n?Symbol.for(\"react.memo\"):60115,m=n?Symbol.for(\"react.lazy\"):60116,v=n?Symbol.for(\"react.block\"):60121,A=n?Symbol.for(\"react.fundamental\"):60117,y=n?Symbol.for(\"react.responder\"):60118,E=n?Symbol.for(\"react.scope\"):60119;function b(e){if(\"object\"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case h:case s:return e;default:return t}}case o:return t}}}function _(e){return b(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||b(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===s},t.isElement=function(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===m},t.isMemo=function(e){return b(e)===h},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===i},t.isSuspense=function(e){return b(e)===f},t.isValidElementType=function(e){return\"string\"==typeof e||\"function\"==typeof e||e===a||e===d||e===l||e===i||e===f||e===g||\"object\"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===A||e.$$typeof===y||e.$$typeof===E||e.$$typeof===v)},t.typeOf=b},22812:e=>{\"use strict\";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t(\"Not enough arguments\");return e}},23029:(e,t,n)=>{\"use strict\";function r(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}n.d(t,{A:()=>r})},23061:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=function(e){return r(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||t.split('\"').length>3})}},23167:(e,t,n)=>{\"use strict\";var r=n(94901),o=n(20034),a=n(52967);e.exports=function(e,t,n){var i,l;return a&&r(i=t.constructor)&&i!==n&&o(l=i.prototype)&&l!==n.prototype&&a(e,l),e}},23288:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(36840),a=Date.prototype,i=\"Invalid Date\",l=\"toString\",s=r(a[l]),u=r(a.getTime);String(new Date(NaN))!==i&&o(a,l,function(){var e=u(this);return e==e?s(this):i})},23360:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(28161),o=n(11848),a=n(43457),i=n(17630),l=(0,o.Ay)(r.A)(function(){return{width:\"100%\",height:\"100%\",animation:\"\".concat(a._A,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),\"& .ag-theme-alpine\":{width:\"100%\",height:\"100%\",'& .ag-row-selected[aria-selected=\"true\"]':{backgroundColors:\"transparent !important\",backgroundImage:\"none !important\"},\"& .ag-row-hover\":{background:\"transparent !important\",backgroundImage:\"none !important\"}},\"& .ag-body-viewport.ag-layout-normal\":{},\"& .ag-row-selected::before,.ag-row-hover.ag-row-selected::before\":{backgroundColor:\"rgba(33, 150, 243, 0.1) !important\",backgroundImage:\"none !important\"},\"& .ag-cell-label-container\":{padding:\"0px\"},\"& .ag-root-wrapper\":{background:\"#ffffff\",border:\"1px solid #cfd3db !important\",borderRadius:6,height:\"auto\",\"& .ag-header\":{backgroundColor:\"#f3f4f6 !important\",border:\"none\",height:\"58px !important\",minHeight:\"58px !important\",borderBottom:\"1px solid #c4c4c4\",\"&-row\":{height:\"58px !important\"},\"& .ag-header-cell\":{color:\"#232630\",fontSize:14,fontFamily:\"NotoSans-SemiBold\",whiteSpace:\"break-spaces\",\"&-resize::after\":{visibility:\"hidden\"},\"& .ag-header-cell-text\":{color:\"#232630\",fontSize:14,fontFamily:\"NotoSans-SemiBold\"}}},\"& .ag-center-cols-container\":{minWidth:\"100% !important\",overflowY:\"auto\",overflowX:\"hidden\"},\"& .ag-row\":{width:\"100%\",display:\"flex\",alignItems:\"center\",borderColor:i.T.borderColor,\"& .ag-cell\":{color:\"#232630\",fontSize:12,fontFamily:\"NotoSans-Regular\",height:\"50px\",\"&-focus:not(.ag-cell-range-selected)\":{border:\"0 !important\"},\"& .smart-agro-lite-default-label\":{color:\"#232630\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-green-label\":{color:\"#62801e\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\",width:\"fit-content\"},\"& .smart-agro-lite-blue-label\":{color:\"#0071cd\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\"},\"& .smart-agro-lite-red-label\":{color:\"#EB4B4B\",fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,cursor:\"pointer\",width:\"fit-content\"},\"& .smart-agro-lite-active-label\":{color:\"#14803C\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-inactive-label\":{color:\"#EE5B3A\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-yellow-label\":{color:\"#E99921\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-red-label_no_link\":{color:\"#EB4B4B\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-blue-label_no_link\":{color:\"#0071cd\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .smart-agro-lite-label\":{width:\"118px\",height:\"35px\",fontWeight:\"600\",fontSize:\"14px\",fontFamily:\"NotoSans-SemiBold\",borderRadius:i.w.spacing(.7),lineHeight:\"20px\",boxSizing:\"border-box\",padding:\"8px\",margin:\"0px\",\"&.grey-bg\":{backgroundColor:i.w.palette.secondary.light},\"&.green-bg\":{backgroundColor:\"#DFFBE8\",color:\"#14803C\"},\"&.red-bg\":{backgroundColor:\"#FFF1F1\",color:\"#CF3537\"},\"&.yellow-bg\":{backgroundColor:\"#FFF3DD\",color:\"#E99921\"},\"&.orange-bg\":{backgroundColor:\"#fff3dd\",color:\"#b18542\"},\"&.know-more\":{color:i.w.palette.primary.light,cursor:\"pointer\"},\"&.regular-text\":{fontWeight:\"400\",fontSize:\"12px\",color:\"#232630\"}},\"& .disabled-label\":{opacity:\"0.5\",cursor:\"not-allowed\"},\"& .disabled-action-label\":{fontSize:14,fontFamily:\"NotoSans-Semibold\",textDecoration:\"underline\",margin:0,width:\"fit-content\",opacity:\"0.5\",cursor:\"not-allowed\"}}}},\"& .ag-root-wrapper-body.ag-layout-normal\":{minHeight:\"400px\",overflow:\"auto\"},\"& .ag-body-vertical-scroll-viewport\":{\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"& .ag-body-horizontal-scroll-viewport\":{\"::-webkit-scrollbar\":{width:\"2px\",height:\"4px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"&  .table-input-filed\":{\"& .MuiInputBase-root\":{height:\"38px !important\"}}}})},23418:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(97916);r({target:\"Array\",stat:!0,forced:!n(84428)(function(e){Array.from(e)})},{from:o})},23500:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(67400),a=n(79296),i=n(90235),l=n(66699),s=function(e){if(e&&e.forEach!==i)try{l(e,\"forEach\",i)}catch(t){e.forEach=i}};for(var u in o)o[u]&&s(r[u]&&r[u].prototype);s(a)},23631:(e,t,n)=>{\"use strict\";e.exports=n.p+\"286bc5010cf484f65ba9.eot\"},23792:(e,t,n)=>{\"use strict\";var r=n(25397),o=n(6469),a=n(26269),i=n(91181),l=n(24913).f,s=n(51088),u=n(62529),c=n(96395),d=n(43724),p=\"Array Iterator\",f=i.set,g=i.getterFor(p);e.exports=s(Array,\"Array\",function(e,t){f(this,{type:p,target:r(e),index:0,kind:t})},function(){var e=g(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case\"keys\":return u(n,!1);case\"values\":return u(t[n],!1)}return u([n,t[n]],!1)},\"values\");var h=a.Arguments=a.Array;if(o(\"keys\"),o(\"values\"),o(\"entries\"),!c&&d&&\"values\"!==h.name)try{l(h,\"name\",{value:\"values\"})}catch(e){}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}},23827:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ja\",{eras:[{since:\"2019-05-01\",offset:1,name:\"令和\",narrow:\"㋿\",abbr:\"R\"},{since:\"1989-01-08\",until:\"2019-04-30\",offset:1,name:\"平成\",narrow:\"㍻\",abbr:\"H\"},{since:\"1926-12-25\",until:\"1989-01-07\",offset:1,name:\"昭和\",narrow:\"㍼\",abbr:\"S\"},{since:\"1912-07-30\",until:\"1926-12-24\",offset:1,name:\"大正\",narrow:\"㍽\",abbr:\"T\"},{since:\"1873-01-01\",until:\"1912-07-29\",offset:6,name:\"明治\",narrow:\"㍾\",abbr:\"M\"},{since:\"0001-01-01\",until:\"1873-12-31\",offset:1,name:\"西暦\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"紀元前\",narrow:\"BC\",abbr:\"BC\"}],eraYearOrdinalRegex:/(元|\\d+)年/,eraYearOrdinalParse:function(e,t){return\"元\"===t[1]?1:parseInt(t[1]||e,10)},months:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日\".split(\"_\"),weekdaysShort:\"日_月_火_水_木_金_土\".split(\"_\"),weekdaysMin:\"日_月_火_水_木_金_土\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY年M月D日\",LLL:\"YYYY年M月D日 HH:mm\",LLLL:\"YYYY年M月D日 dddd HH:mm\",l:\"YYYY/MM/DD\",ll:\"YYYY年M月D日\",lll:\"YYYY年M月D日 HH:mm\",llll:\"YYYY年M月D日(ddd) HH:mm\"},meridiemParse:/午前|午後/i,isPM:function(e){return\"午後\"===e},meridiem:function(e,t,n){return e<12?\"午前\":\"午後\"},calendar:{sameDay:\"[今日] LT\",nextDay:\"[明日] LT\",nextWeek:function(e){return e.week()!==this.week()?\"[来週]dddd LT\":\"dddd LT\"},lastDay:\"[昨日] LT\",lastWeek:function(e){return this.week()!==e.week()?\"[先週]dddd LT\":\"dddd LT\"},sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}日/,ordinal:function(e,t){switch(t){case\"y\":return 1===e?\"元年\":e+\"年\";case\"d\":case\"D\":case\"DDD\":return e+\"日\";default:return e}},relativeTime:{future:\"%s後\",past:\"%s前\",s:\"数秒\",ss:\"%d秒\",m:\"1分\",mm:\"%d分\",h:\"1時間\",hh:\"%d時間\",d:\"1日\",dd:\"%d日\",M:\"1ヶ月\",MM:\"%dヶ月\",y:\"1年\",yy:\"%d年\"}})}(n(95093))},23835:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>h}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(94170),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(47764),n(71761),n(23500),n(62953),n(3296),n(27208),n(48408);var r=n(81970),o=n(71083),a=n(13075),i=n(47225),l=n(56203);function s(e){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},s(e)}function u(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return c(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),f=d.prototype=l.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return s.prototype=d,c(f,\"constructor\",d),c(d,\"constructor\",s),s.displayName=\"GeneratorFunction\",c(d,o,\"GeneratorFunction\"),c(f),c(f,o,\"Generator\"),c(f,r,function(){return this}),c(f,\"toString\",function(){return\"[object Generator]\"}),(u=function(){return{w:a,m:g}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}c=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){c(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},c(e,t,n,r)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=s(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==s(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}const h=function(){var e=(0,r.useContext)(i.v),t=e.triggerShowLoader,n=e.triggerToastMsg,s=(0,r.useCallback)(function(){var e,r=(e=u().m(function e(r){var i,s,c,d,f,g,h,m,v,A,y,E,b;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:if(i=r.baseUrl,s=r.options,c=r.payload,d=r.requestType,t(!0),e.p=1,f={},\"post\"!==d){e.n=3;break}return e.n=2,o.A.post(i,c,p(p({},s),{},{responseType:\"blob\"}));case 2:f=e.v,e.n=5;break;case 3:return e.n=4,o.A.get(i,p(p({},s),{},{responseType:\"blob\"}));case 4:f=e.v;case 5:if(!(0,a.mN)(f)){e.n=6;break}g=f.headers[\"content-disposition\"],h=\"download\",g&&2===(m=g.match(/filename=\"?(.+)\"?/i)).length&&(h=m[1]),v=new Blob([f.data],{type:f.headers[\"content-type\"]}),A=window.URL.createObjectURL(v),(y=document.createElement(\"a\")).href=A,y.setAttribute(\"download\",h),document.body.appendChild(y),y.click(),y.remove(),window.URL.revokeObjectURL(A),e.n=7;break;case 6:return e.a(2,f.data.text().then(function(e){try{var t,r=JSON.parse(e);return n({message:null!==(t=r.errorMessage)&&void 0!==t?t:(0,l.t)(\"DOWNLOAD_TEMPLATE_FAILED\"),type:\"error\"}),r.errorMessage}catch(e){return null!=e?e:(0,l.t)(\"DOWNLOAD_TEMPLATE_FAILED\")}}));case 7:return e.a(2,f);case 8:e.p=8,b=e.v,n({message:null!==(E=null==b?void 0:b.message)&&void 0!==E?E:(0,l.t)(\"DOWNLOAD_TEMPLATE_FAILED\"),type:\"error\"});case 9:return e.p=9,t(!1),e.f(9);case 10:return e.a(2)}},e,null,[[1,8,9,10]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){g(a,r,o,i,l,\"next\",e)}function l(e){g(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}(),[t,n]);return{downloadTemplate:s}}},23944:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>De}),n(52675),n(89463),n(2259),n(45700),n(88431),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(94490),n(34782),n(1688),n(60739),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(51545),o=n(81970),a=n.n(o),i=n(34195),l=n(99478),s=n(47225),u=n(70380),c=n(13075),d=n(50381),p=n(56908),f=n(28161),g=n(36874),h=n(8239),m=n(14073),v=n(6347),A=n(88084),y=n(56203),E=n(62809),b=n(64121),_=[{label:\"PENDING\",value:\"PENDING\"},{label:\"APPROVED\",value:\"APPROVED\"}],C=n(15664);const w=function(e){var t=e.selectedFilters,n=e.onFilterSubmit,r=e.onRequestClose,o=e.labelNames,i=e.multipleCheckBoxes,l=e.getOptionsByLabel,s=e.onCheckBoxChange,u=e.tabName,c=e.isTMRole,d=e.onClearFilters,p=e.disableSubmit,g=e.setLabelOptions,w=e.savedOptions;return a().createElement(A.l1,{initialValues:t,enableReinitialize:!0,onSubmit:function(e,t){n(e),r()}},function(e){var t=e.values,n=e.setFieldValue;return a().createElement(A.lV,{className:\"popupContent\"},a().createElement(h.Ay,{container:!0,columns:10,spacing:1,mb:2},null==o?void 0:o.map(function(e,r){var o,u;return i(e)?a().createElement(h.Ay,{className:null!==(u=l(e))&&void 0!==u&&u.length?\"\":\"disabled-field\",key:e,item:!0,xs:2},a().createElement(f.A,null,a().createElement(m.A,{variant:\"subtitle2\",mb:1},e),a().createElement(A.D0,{name:e},function(){return function(e,t,n,r){var o,i,u;return a().createElement(E.A,{key:e,name:e,showClearAll:!0,labelKey:\"label\",options:l(e),onCheckboxChange:function(n){return s(n,t,e,r)},isDisabled:!(null!==(o=l(e))&&void 0!==o&&o.length),selectedOptions:(null==n||null===(i=n[e])||void 0===i?void 0:i.length)>0&&(null==n||null===(u=n[e])||void 0===u||null===(u=u.filter(function(e){return e.checked}))||void 0===u?void 0:u.map(function(e){return e.label}))||[],defaultLabel:\"Select\",isSortReq:!0})}(e,r,t,n)}),a().createElement(v.A,{error:!0},a().createElement(A.Kw,{name:e})))):a().createElement(h.Ay,{className:null!==(o=l(e))&&void 0!==o&&o.length?\"\":\"disabled-field\",key:e,item:!0,xs:2},a().createElement(f.A,null,a().createElement(m.A,{variant:\"subtitle2\",mb:1},e),a().createElement(A.D0,{name:e},function(){return function(e,t,n){var r;return a().createElement(b.A,{name:e,onChange:function(t,r){return n(e,r)},isDisabled:!(null!==(r=l(e))&&void 0!==r&&r.length),options:l(e),labelKey:\"label\",selectedOption:null==t?void 0:t[e],value:null==t?void 0:t[e],defaultLabel:\"Select\"})}(e,t,n)}),a().createElement(v.A,{error:!0},a().createElement(A.Kw,{name:e}))))}),\"approval\"===u&&!c&&a().createElement(h.Ay,{item:!0,xs:2},a().createElement(f.A,{width:\"97.5%\"},a().createElement(m.A,{variant:\"subtitle2\",mb:1},\"Approval Status\"),a().createElement(A.D0,{name:\"status\"},function(){return a().createElement(b.A,{name:\"state\",onChange:function(e,t){n(\"status\",t.value)},options:_,labelKey:\"label\",label:\"state\",selectedOption:t.state,value:t.status,defaultLabel:\"Select Approval Status\"})})))),a().createElement(f.A,{display:\"flex\",justifyContent:\"end\",alignItems:\"center\",gap:2,mt:3,mr:1,mb:2},a().createElement(C.A,{variant:\"outlined\",buttonName:(0,y.t)(\"CLEAR_FILTERS\"),onButtonClick:function(){return d()},fullwidth:!1,color:\"primary\",type:\"reset\"}),a().createElement(C.A,{variant:\"contained\",buttonName:(0,y.t)(\"APPLY_FILTERS\"),onButtonClick:function(){},fullwidth:!1,color:\"primary\",type:\"submit\",disabled:p(t)})),a().createElement(\"button\",{type:\"button\",\"data-testid\":\"closeIcon\",onClick:function(){g(w),r()},className:\"smart-agro-lite-filter-cross remove-button\",\"aria-label\":\"Close filters\"},a().createElement(m.A,{className:\"icon-close closeIcon\"})))})};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e){var t,n,r=e.isDrawerOpen,i=e.onRequestClose,s=e.setLabelOptions,u=e.onFilterSubmit,c=e.labelNames,d=e.labelOptions,p=e.onFilterChange,h=e.selectedFilters,m=e.onClearFilters,v=e.tabName,A=e.isTMRole,y=(t=(0,o.useState)(d),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}())[0];return a().createElement(g.A,{isDrawerOpen:r,anchor:\"top\",upper:!0},a().createElement(f.A,{p:3},a().createElement(w,{selectedFilters:h,onFilterSubmit:u,onRequestClose:i,labelNames:c,multipleCheckBoxes:function(e){return e!==l.Sp.APPROVAL_STATUS&&e!==l.Sp.PAY_CYCLE},getOptionsByLabel:function(e){var t;return(null==d||null===(t=d.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===t?void 0:t.options)||[]},onCheckBoxChange:function(e,t,n,r){var o=e.filter(function(e){return e.checked}).map(function(e){return e.value});p(o,t,r),r(n,e)},tabName:v,isTMRole:A,onClearFilters:m,disableSubmit:function(e){var t;return!(null==e||!e[c[0]]||null!=e&&null!==(t=e[\"TM HQ\"])&&void 0!==t&&t.find(function(e){return null==e?void 0:e.checked}))},setLabelOptions:s,savedOptions:y})))};function O(e){return O=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},O(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=O(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==O(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(28706),n(48980),n(25276);var M=n(86444),x=n(80663),I=n(86608),k=(0,o.memo)(function(e){var t=e.isVisible,n=e.isFinalApproved,r=e.onRequestClose,o=e.onSubmit,i=e.setIsFinalApproved;return a().createElement(I.A,{isVisible:t},a().createElement(x.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,className:\"modal-header\",m:1},a().createElement(m.A,{variant:\"h2\",fontSize:18},(0,y.t)(\"ATTENDANCE_APPROVAL\")),a().createElement(f.A,null,a().createElement(m.A,{className:\"icon-close closeIcon\",onClick:r}))),n?a().createElement(a().Fragment,null,a().createElement(m.A,{fontSize:16,p:3},(0,y.t)(\"FINAL_APPROVED_SUCCESSFULLY\")),a().createElement(x.A,{direction:\"row\",justifyContent:\"end\",p:2,gap:2},a().createElement(C.A,{buttonName:(0,y.t)(\"OK\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){i(!1),r()}}))):a().createElement(a().Fragment,null,a().createElement(m.A,{fontSize:16,p:3},(0,y.t)(\"FINAL_APPROVAL_CONFIRMATION\")),a().createElement(x.A,{direction:\"row\",justifyContent:\"end\",p:2,gap:2},a().createElement(C.A,{buttonName:(0,y.t)(\"NO\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:r}),a().createElement(C.A,{buttonName:(0,y.t)(\"YES\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:o}))))}),B=n(90815),F=n(47767),j=n(96348),H=n(65343),U=n(60538),Y=n(17630),G=n(45620),z=n(11848),V=(0,z.Ay)(f.A)(function(e){var t=e.theme;return{\"& .MuiPaper-root\":{border:\"1px solid \".concat(t.palette.grey[100]),borderRadius:\"6px\"}}}),q=function(e){var t,n=e.activeApproverButton,r=e.isEventBased,o=e.data,i=e.tabName,l=e.onApprove,s=void 0===l?function(){}:l,u=e.handleChange,c=void 0===u?function(){}:u;return a().createElement(V,null,a().createElement(U.A,{className:\"attendance-view-card\",elevation:0},a().createElement(B.A,{direction:\"row\",justifyContent:\"space-between\",gap:2,p:1,alignItems:\"center\"},a().createElement(f.A,{width:\"20%\"},a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},o.userName),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},o.hqDataNames)),a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2},a().createElement(G.A,{value:o.presentCountPercent,thickness:3,size:50,labelIcon:\"icon-inventory\",progressBg:\"#14803C\",progressTrackBg:\"#DFFBE8\"}),a().createElement(f.A,null,a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},o.presentCount,\" Days\"),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},\"Present\"))),a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2},a().createElement(G.A,{value:o.notMarkedCountPercent,thickness:3,size:50,labelIcon:\"icon-content_paste_off\",progressTrackBg:r?\"#FFF1F1\":\"#FFF3DD\",progressBg:r?\"#CF3537\":\"#E99921\"}),a().createElement(f.A,null,a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},o.notMarkedCount,\" Days\"),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},r?(0,y.t)(\"ABSENT\"):(0,y.t)(\"NOT_MARKED\")))),a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2,alignContent:\"center\"},a().createElement(G.A,{value:o.absentCountPercent,thickness:3,size:50,labelIcon:\"icon-logout\",progressTrackBg:r?\"#EAF6FF\":\"#FFF1F1\",progressBg:r?\"#0071CD\":\"#CF3537\"}),a().createElement(f.A,null,a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},o.absentCount,\" Days\"),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},r?(0,y.t)(\"APPLIED_LEAVES\"):(0,y.t)(\"LEAVE\")))),a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2},a().createElement(G.A,{value:o.holidaysCountPercent,thickness:3,size:50,labelIcon:\"icon-flag\",progressBg:\"#696F88\",progressTrackBg:\"#F3F4F6\"}),a().createElement(f.A,null,a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},o.holidaysCount,\" Days\"),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},\"Holiday\"))),\"approval\"===i&&n&&a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2},a().createElement(C.A,{variant:\"contained\",buttonName:null!=o&&o.isApproved?\"Approved\":\"Approve\",onButtonClick:function(){return s()},fullwidth:!1,color:\"primary\",type:\"submit\",disabled:(null==o?void 0:o.notMarkedCount)>0||(null!==(t=null==o?void 0:o.isApproved)&&void 0!==t?t:null==o?void 0:o.isFinalApproved)})),a().createElement(f.A,{\"data-testid\":\"handleChange\",onClick:function(){return c(o)},className:\"pointer\",color:Y.w.palette.grey[200]},a().createElement(H.A,null)))))};const W=a().memo(q);var Q=n(10885),K=n(40921),$=n(48719),X=n(16576),J=(0,z.Ay)(f.A)(function(e){var t=e.theme;return{\"& .MuiAccordionSummary-root\":{borderRadius:\"6px\"},\"& .MuiPaper-root\":{border:\"1px solid \".concat(t.palette.grey[100]),borderRadius:\"6px\"},\"& .Mui-expanded\":{backgroundColor:Y.T.greyBg,transition:\"all 0.2s ease-in\"},\"& .MuiAccordionDetails-root\":{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},\"& .MuiAccordionSummary-content\":{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"}}}),Z=function(e){var t,n=e.data,r=e.tabName,o=e.handleChange,i=void 0===o?function(){}:o,l=e.isExpand,s=void 0!==l&&l,u=e.accordionSummary,c=e.accordionKey;return a().createElement(J,null,a().createElement(K.A,{key:c,expanded:s,onChange:function(){return i(n.userUUID)}},a().createElement($.A,{expandIcon:a().createElement(Q.A,null)},a().createElement(f.A,null,a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:Y.w.palette.grey[400]},n.userName),a().createElement(m.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:Y.w.palette.grey[900]},n.hqNames)),a().createElement(x.A,{direction:\"row\",gap:1,alignItems:\"center\"},\"approval\"===r&&a().createElement(m.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,textTransform:\"capitalize\"},null==n||null===(t=n.status)||void 0===t?void 0:t.toLowerCase()))),a().createElement(X.A,null,u)))};const ee=a().memo(Z);function te(e){return te=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},te(e)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach(function(t){oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=te(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==te(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ae=function(e){var t=e.canWrapAroundMarker,n=e.approvalSummaryDetails,r=e.approvalSummaryData,o=e.activeApproverButton,i=e.tabName,s=e.leastMarkerId,u=e.listOfMonthsForAttendanceHistory,c=e.selectedMonth,d=e.payCycleOptions,p=e.payCycle,f=e.onApprove,g=e.isEventBased,h=e.isExpandId,v=e.setIsVisibleFinalApprovePopup,A=e.getActiveFinalApprove,y=e.onExpand,E=(0,F.Zp)(),b=function(e){return e/30*100},_=function(e){var t=e;return re(re({},e),{},{absentCountPercent:Math.round(b(null==t?void 0:t.absentCount)),holidaysCountPercent:Math.round(b(null==t?void 0:t.holidaysCount)),notMarkedCountPercent:Math.round(b(null==t?void 0:t.notMarkedCount)),presentCountPercent:Math.round(b(null==t?void 0:t.presentCount))})};return a().createElement(B.A,{gap:2,overflow:\"auto\"},t?a().createElement(a().Fragment,null,n.length>0?null==n?void 0:n.map(function(e){return a().createElement(W,{key:null==e?void 0:e.userUUID,activeApproverButton:o,handleChange:function(){E(\"../\".concat(null==e?void 0:e.userUUID,\"/\").concat(j.fp.Attendance_Details,\"?tabName=\").concat(i,\"&leastMarkerId=\").concat(s,\"&selectedMonthIndex=\").concat(\"attendance\"===i?u.indexOf(c):d.indexOf(p),\"&hq_id=\").concat(null==e?void 0:e.hqId))},data:_(e),tabName:i,onApprove:function(){return f(null==e?void 0:e.userUUID,null==e?void 0:e.hqId)},isEventBased:g})}):a().createElement(B.A,{alignItems:\"center\",justifyContent:\"center\",marginTop:25},a().createElement(m.A,{variant:\"h6\"},l.JS.MDOS_NOT_FOUND))):a().createElement(a().Fragment,null,(null==r?void 0:r.length)>0?null==r?void 0:r.map(function(e){var t;return a().createElement(ee,{key:null==e?void 0:e.userUUID,tabName:i,data:e,isExpand:h===(null==e?void 0:e.userUUID),accordionKey:e.userUUID,isDisabledFinalApprove:null==n||null===(t=n[0])||void 0===t?void 0:t.isFinalApproved,onFinalApprove:function(){return v(!0)},isShowApproverButton:\"approval\"===i&&h===(null==e?void 0:e.userUUID)&&A(),accordionSummary:a().createElement(a().Fragment,null,n.length>0&&(null==n?void 0:n.map(function(e){return a().createElement(W,{key:null==e?void 0:e.userUUID,activeApproverButton:o,handleChange:function(){E(\"../\".concat(null==e?void 0:e.userUUID,\"/\").concat(j.fp.Attendance_Details,\"?tabName=\").concat(i,\"&leastMarkerId=\").concat(s,\"&parentUUID=\").concat(h,\"&selectedMonthIndex=\").concat(\"attendance\"===i?u.indexOf(c):d.indexOf(p),\"&hq_id=\").concat(null==e?void 0:e.hqId))},data:_(e),tabName:i,onApprove:function(){return f(null==e?void 0:e.userUUID,null==e?void 0:e.hqId)},isEventBased:g})}))),handleChange:function(e){return y(e)}})}):a().createElement(B.A,{alignItems:\"center\",justifyContent:\"center\",marginTop:25},a().createElement(m.A,{variant:\"h6\"},l.JS.TMS_NOT_FOUND))))};var ie,le=n(21239),se=(n(9868),n(71543));n(52811);var ue,ce,de=(0,z.Ay)(f.A)(ie||(ue=[\".attendance-count {\\n          text-align: center;\\n          border: 1px solid \",\";\\n          padding: 8px;\\n          border-radius: 4px;\\n\\n          .count-text {\\n                    min-width: 100px;\\n                    font-weight: 600;\\n                    font-size: 14px;\\n          }\\n\\n          .MuiDivider-root {\\n                    border-right-width: 2px;\\n                    border-color: #d9d9d9;\\n          }\\n\\n          .count-color-grey {\\n                    color: \",\";\\n          }\\n\\n          .count-color-green {\\n                    color: \",\";\\n          }\\n\\n          .count-color-orange {\\n                    color: \",\";\\n          }\\n}\\n\\n\"],ce||(ce=ue.slice(0)),ie=Object.freeze(Object.defineProperties(ue,{raw:{value:Object.freeze(ce)}}))),Y.w.palette.grey[100],Y.T.greyText,Y.w.palette.success.light,Y.w.palette.info.contrastText);const pe=function(e){var t=e.approvalSummaryData,n=function(e){var n;return null==t||null===(n=t.filter(function(t){return(null==t?void 0:t.status)===e}))||void 0===n?void 0:n.length};return a().createElement(de,null,a().createElement(B.A,{className:\"attendance-count\",direction:\"row\",justifyContent:\"flex-start\",gap:2},a().createElement(f.A,{className:\"counts\"},a().createElement(m.A,{color:Y.T.greyText,fontSize:14,fontWeight:600,className:\"count-color-grey count-text\"},(0,y.t)(\"TOTAL_TMS\")),a().createElement(m.A,{className:\"count-color-grey count-text\"},null==t?void 0:t.length)),a().createElement(se.A,{orientation:\"vertical\",variant:\"middle\",flexItem:!0}),a().createElement(f.A,{className:\"counts\"},a().createElement(m.A,{className:\"count-color-green count-text\"},(0,y.t)(\"APPROVED\")),a().createElement(m.A,{className:\"count-color-green count-text\"},n(\"APPROVED\"))),a().createElement(se.A,{orientation:\"vertical\",variant:\"middle\",flexItem:!0}),a().createElement(f.A,{className:\"counts\"},a().createElement(m.A,{className:\"count-color-orange count-text\"},(0,y.t)(\"PENDING\")),a().createElement(m.A,{className:\"count-color-orange count-text\"},n(\"PENDING\"))),a().createElement(se.A,{orientation:\"vertical\",variant:\"middle\",flexItem:!0}),a().createElement(f.A,{className:\"counts\"},a().createElement(m.A,{className:\"count-color-green count-text\"},(0,y.t)(\"APPROVED\")),a().createElement(m.A,{className:\"count-color-green count-text\"},null!=t&&t.length?(100*n(\"APPROVED\")/(null==t?void 0:t.length)).toFixed(2):0,\"%\"))))};var fe=n(8085),ge=n(34358);const he=function(e){var t=e.payCycleDate,n=e.recentPayCycle,r=(0,o.useContext)(s.v),i=r.BackOfficeProps,l=i.globalStore.User,d=i.baseurl,p=r.triggerShowLoader,f=r.triggerToastMsg;return a().createElement(C.A,{startIcon:a().createElement(\"span\",{className:\"icon-icon-download\"}),variant:\"contained\",buttonName:(0,y.t)(\"MANPOWER_REPORT\"),onButtonClick:function(){var e,r=(null==t?void 0:t.startDate)===(null==n?void 0:n.startDate)&&(null==t?void 0:t.endDate)===(null==n?void 0:n.endDate),o=\"\".concat(fe.p.DOWNLOAD_MAN_POWER_REPORT_PAYCYCLE,\"?fromDate=\").concat(null!=t&&t.startDate?(0,u.Yq)(null==t?void 0:t.startDate,\"YYYY-MM-DD\"):null,\"&toDate=\").concat(null!=t&&t.endDate?(0,u.Yq)(null==t?void 0:t.endDate,\"YYYY-MM-DD\"):null,\"&isRecentPaycycle=\").concat(r);return(0,ge.Ti)({baseUrl:\"\".concat(d).concat(o),options:{headers:{Authorization:\"Bearer \".concat(null==l?void 0:l.AccessToken),\"bu-id\":null==l?void 0:l.selectedBusinessUnit.bu_id,\"country-code\":null==l||null===(e=l.selectedCountry)||void 0===e?void 0:e.countryCode,\"user-id\":l.UserDetails.user_id,\"role-type-name\":l.UserDetails.role_type_details.role_type_name},responseType:\"arraybuffer\"}}).then(function(e){var t,n;null!==(t=(0,c.bA)(e))&&void 0!==t&&t.message&&f({message:null===(n=(0,c.bA)(e))||void 0===n?void 0:n.message,type:\"error\"}),p(!1)}).catch(function(e){p(!1),console.log(\"error\",null==e?void 0:e.message)})},fullwidth:!1,color:\"primary\"})},me=function(e){var t,n,r,o=e.onSearch,i=e.setIsExpandId,l=e.tabName,s=e.selectedMonth,u=e.listOfMonthsForAttendanceHistory,d=e.setSelectedMonthOfAttendanceHistory,p=e.payCycle,g=e.payCycleOptions,h=e.onSelectPayCycle,m=e.User,v=e.calendarCycle,A=e.calendarRecentPayCycle,E=e.canWrapAroundMarker,_=e.approvalSummaryData,w=e.selectedFilters,S=e.setIsFilterOpen,T=e.activeApproverButton,O=e.finalApprovedButtonStatusDetails,D=e.setIsVisibleFinalApprovePopup,R=e.salesHierarchyId;return a().createElement(B.A,{direction:\"row\",justifyContent:\"space-between\",gap:2,pt:2,pb:2,alignItems:\"center\"},a().createElement(f.A,null,a().createElement(B.A,{direction:\"row\",gap:2,alignItems:\"center\"},a().createElement(f.A,{mt:2},a().createElement(le.A,{onSearchValueChange:function(e){o(e),i(\"\")},placeholderText:(0,y.t)(\"SEARCH\"),searchValue:\"\",searchBasedOn:\"\".concat((0,y.t)(\"SEARCH_BY\"),\" \").concat((null==R||null===(n=R.parent)||void 0===n?void 0:n.hq_hierarchy_id)===(null==m||null===(r=m.selectedBusinessUnit)||void 0===r||null===(r=r.userRoleControls)||void 0===r?void 0:r.roleId)?(0,y.t)(\"MDO_NAME_LABEL\"):\"\".concat((0,y.t)(\"TM_NAME\"),\" & \").concat((0,y.t)(\"TM_HQ_NAME\")))})),\"attendance\"===l&&a().createElement(f.A,{mt:2,width:230,className:\"tab-input-wrapper\"},a().createElement(b.A,{value:s,name:\"Select Month\",options:u,labelKey:\"label\",label:\"View Attendance For\",defaultLabel:\"View Attendance For\",onChange:function(e,t){d(t)}})),\"approval\"===l&&a().createElement(f.A,{mt:2,width:230,className:\"tab-input-wrapper\"},a().createElement(b.A,{value:p,name:\"Select Pay Cycle\",options:g,labelKey:\"label\",label:\"Select Pay Cycle\",defaultLabel:\"Select Pay Cycle\",onChange:function(e,t){return h(t)}})))),a().createElement(B.A,{direction:\"row\",alignItems:\"center\",gap:2},\"country_admin\"===m.UserDetails.role_type_details.role_type_name&&\"approval\"===l&&a().createElement(he,{payCycleDate:v,recentPayCycle:A}),\"approval\"===l&&!E&&null!=_&&_.length?a().createElement(pe,{approvalSummaryData:_}):a().createElement(a().Fragment,null),a().createElement(C.A,{className:(0,c.VW)(null==w?void 0:w.status,(0,c.F7)(w)),buttonName:null!==(t=(0,y.t)(\"FILTERS\"))&&void 0!==t?t:\"\",color:\"transparent\",fullwidth:!1,endIcon:a().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return S(!0)}}),\"approval\"===l&&T&&a().createElement(C.A,{variant:\"contained\",buttonName:null!=O&&O.showFinalApproved?(0,y.t)(\"FINAL_APPROVED\"):(0,y.t)(\"FINAL_APPROVAL\"),onButtonClick:function(){return D(!0)},fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!(null!=O&&O.enableFinalApproval)})))};function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return _e(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_e(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_e(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,_e(d,\"constructor\",u),_e(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",_e(u,o,\"GeneratorFunction\"),_e(d),_e(d,o,\"Generator\"),_e(d,r,function(){return this}),_e(d,\"toString\",function(){return\"[object Generator]\"}),(be=function(){return{w:a,m:p}})()}function _e(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}_e=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){_e(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},_e(e,t,n,r)}function Ce(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function we(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ce(a,r,o,i,l,\"next\",e)}function l(e){Ce(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Te(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Te(e,t){if(e){if(\"string\"==typeof e)return Oe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const De=function(e){var t,n,f=e.salesHierarchyId,g=e.tabName,h=e.leastMarkerId,m=e.getApprovalsConfigData,v=(0,o.useContext)(s.v),A=v.BackOfficeProps,y=A.globalStore.User,E=A.baseurl,b=v.triggerShowLoader,_=v.triggerToastMsg,C=(0,i.Bd)().t,w=Se((0,o.useState)(!1),2),S=w[0],O=w[1],D=Se((0,o.useState)([]),2),N=D[0],P=D[1],x=Se((0,o.useState)(!1),2),I=x[0],B=x[1],F=Se((0,o.useState)([]),2),j=F[0],H=F[1],U=Se((0,o.useState)([]),2),Y=U[0],G=U[1],z=Se((0,o.useState)([]),2),V=z[0],q=z[1],W=Se((0,o.useState)([]),2),Q=W[0],K=W[1],$=Se((0,o.useState)({}),2),X=$[0],J=$[1],Z=Se((0,o.useState)([]),2),ee=Z[0],te=Z[1],ne=Se((0,o.useState)(\"\"),2),re=ne[0],oe=ne[1],ie=Se((0,o.useState)(\"\"),2),le=ie[0],se=ie[1],ue=Se((0,o.useState)({}),2),ce=ue[0],de=ue[1],pe=Se((0,o.useState)([]),2),fe=pe[0],ge=pe[1],he=Se((0,o.useState)([]),2),ve=he[0],Ae=he[1],Ee=Se((0,o.useState)(\"\"),2),_e=Ee[0],Ce=Ee[1],De=Se((0,o.useState)(!1),2),Re=De[0],Ne=De[1],Le=Se((0,o.useState)(),2),Pe=Le[0],Me=Le[1],xe=Se((0,o.useState)(),2),Ie=xe[0],ke=xe[1],Be=Se((0,o.useState)(!1),2),Fe=Be[0],je=Be[1],He=Se((0,o.useState)({}),2),Ue=He[0],Ye=He[1],Ge=Se((0,o.useState)(0),2),ze=Ge[0],Ve=Ge[1],qe=Se((0,o.useState)(!1),2),We=qe[0],Qe=qe[1],Ke=Se((0,o.useState)(!1),2),$e=Ke[0],Xe=Ke[1],Je=null!=Pe&&Pe.value?JSON.parse(null==Pe?void 0:Pe.value):{fromDate:null===(t=ve[0])||void 0===t?void 0:t.paycycleStartDate,toDate:null===(n=ve[0])||void 0===n?void 0:n.paycycleEndDate},Ze=function(e,t){var n;if(null!=e&&e.value)return JSON.parse(e.value);var r=null!==(n=null==t?void 0:t[0])&&void 0!==n?n:{};return{fromDate:r.paycycleStartDate,toDate:r.paycycleEndDate}}(Ie,ve),et={startDate:(0,c.$3)(null==Je?void 0:Je.fromDate),endDate:(0,c.$3)(null==Je?void 0:Je.toDate)},tt={startDate:(0,c.$3)(null==Ze?void 0:Ze.fromDate),endDate:(0,c.$3)(null==Ze?void 0:Ze.toDate)},nt=function(){var e=we(be().m(function e(t,n){var r,o,a,i;return be().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,d.sN)({baseurl:E,User:y,triggerShowLoader:b,triggerToastMsg:_,markerUUID:t,markerID:h,calendarCycle:et,tmUUID:null!=t?t:null==y||null===(r=y.UserDetails)||void 0===r?void 0:r.user_id,tmUserID:re,hqId:n});case 1:return i=e.v,e.a(2,{weekOffList:null==i||null===(o=i.weekOff)||void 0===o?void 0:o.weekOffDates,holidaysList:null==i||null===(a=i.weekOff)||void 0===a?void 0:a.holidayDates,attendanceList:{present:i.present,absent:i.absent,not_marked:i.not_marked}})}},e)}));return function(t,n){return e.apply(this,arguments)}}(),rt=function(e,t){(0,M.Bm)(y,E,b,ye(ye({},e),{userUUID:y.UserDetails.user_id,isApprover:g===p.q.APPROVAl}),t).then(function(e){var t;te(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}).catch(function(){})},ot=function(){var e={startDate:(0,u.Yq)(null==et?void 0:et.startDate,\"YYYY-MM-DD\"),endDate:(0,u.Yq)(null==et?void 0:et.endDate,\"YYYY-MM-DD\")};(0,M.tV)(y,E,e,b).then(function(e){var t;Ye(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:{})}).catch(function(){})},at=function(e){(0,M.wj)(y,E,b,e).then(function(e){!function(e){K(null==e?void 0:e.leastAttendanceApprovalsDto),te([]),O(!1)}(null==e?void 0:e.data)})};(0,o.useEffect)(function(){var e,t,n,r=(null==f||null===(e=f.parent)||void 0===e?void 0:e.hq_hierarchy_id)===(null==y||null===(t=y.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId);Ne(r);var o,a=function(e,t,n,r){var o,a,i,s,u;return a=e?{countryAppId:null==t||null===(i=t.selectedApplication)||void 0===i?void 0:i.country_app_id,search:e}:{countryAppId:null==t||null===(s=t.selectedApplication)||void 0===s?void 0:s.country_app_id},null!==(o=n[l.Sp.TMHQ])&&void 0!==o&&o.length&&(a.hqDataIds=null===(u=n[l.Sp.TMHQ])||void 0===u||null===(u=u.filter(function(e){return e.checked}))||void 0===u?void 0:u.map(function(e){return e.value})),\"approval\"===r&&(a.isApprover=!0),null!=n&&n.status&&(a.status=null==n?void 0:n.status),a}(le,y,X,g),i=function(e,t){return ye({fromDate:(0,c.$3)(e),toDate:(0,c.$3)(t)},le&&{searchKey:le})},s=function(e,t){return ye({fromDate:(0,c.mM)(e),toDate:(0,c.mM)(t)},a)};null!=f&&null!==(n=f.parent)&&void 0!==n&&n.hq_hierarchy_id&&(r?(o={},\"approval\"===g&&null!=Je&&Je.fromDate?(o=i(null==et?void 0:et.startDate,null==et?void 0:et.endDate),rt(o,a),ot()):null!=ce&&ce.fromDate?(o=i(null==ce?void 0:ce.fromDate,null==ce?void 0:ce.toDate),rt(o,a)):le&&rt(o={searchKey:le},a)):function(){var e={};\"approval\"===g&&null!=Je&&Je.fromDate?(e=s(null==et?void 0:et.startDate,null==et?void 0:et.endDate),ot(),at(e)):null!=ce&&ce.fromDate&&(e=s(null==ce?void 0:ce.fromDate,null==ce?void 0:ce.toDate),at(e))}())},[X,le,ce,f,ze]);var it=function(){(0,M.Gf)(y,E,h,b).then(function(e){var t,n,r;t=e.data[0].value,n=(r=(0,u.NO)(t),function(e){if(Array.isArray(e))return Oe(e)}(r)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(r)||Te(r)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()).reverse(),H(n),lt(n[0])}).catch(function(){})},lt=function(e){var t=(0,u.HW)(e,\"start\"),n=(0,u.HW)(e,\"end\");Ce(e),oe(\"\"),de({fromDate:t,toDate:n})},st=function(e,t){var n=null==e?void 0:e.map(function(e){var t,n,r,o;return null!=e&&null!==(t=e.approvals)&&void 0!==t&&t.length?ye(ye({},e),{},{isOnApprove:!0,approvals:[ye(ye({},null==e||null===(n=e.approvals)||void 0===n?void 0:n[0]),{},{isApproved:!0,approvalTime:(new Date).toISOString()})]}):ye(ye({},e),{},{approvals:[{attendanceEntryId:null==e?void 0:e.attendanceUUID,approvedByUuid:null==y||null===(r=y.UserDetails)||void 0===r?void 0:r.user_id,attendanceStatus:null==e?void 0:e.attendanceStatus,isApproved:!0,isFinalApproved:!1,approvalComments:\"\",approvalTime:(new Date).toISOString(),createdBy:null==y||null===(o=y.UserDetails)||void 0===o?void 0:o.user_id,createdAt:(new Date).toISOString()}]})});delete n.selectedDate,function(e,t){var n,r={approversAttendanceList:[{userId:t,attendanceList:e}]};null===(n=(0,d.bQ)(y,E,b,r,h))||void 0===n||n.then(function(e){var t;200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status)?(Ve(function(e){return e+1}),_({message:C(\"APPROVED_SUCCESSFULLY\"),type:\"success\"})):_({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"})}).catch(function(e){})}(n,t)},ut=function(){var e=we(be().m(function e(t,n){var r,o,a,i,l,s,u,c;return be().w(function(e){for(;;)switch(e.n){case 0:return i=d.Ch,l=et,e.n=1,nt(t,n);case 1:if(s=e.v,u=r=i(l,s),a=null===u){e.n=2;break}a=void 0===r;case 2:if(o=a){e.n=3;break}o=null===(r=r.filter(function(e){var t,n;return!((null==e?void 0:e.attendanceStatus)===p.q.HOLIDAY&&(null==e||null===(t=e.details)||void 0===t||!t.attendanceUUID)||(null==e?void 0:e.attendanceStatus)===p.q.WEEK_OFF&&(null==e||null===(n=e.details)||void 0===n||!n.attendanceUUID))}))||void 0===r;case 3:if(!o){e.n=4;break}c=void 0,e.n=5;break;case 4:c=r.map(function(e){return null==e?void 0:e.details});case 5:st(c,t);case 6:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),ct=function(e){var t,n,r,o,a,i,l,s=ye({approverUserUUIDs:[null!=re&&re.length?re:null==y||null===(t=y.UserDetails)||void 0===t?void 0:t.user_id]},(i=\"\",l=\"\",null!=Pe&&Pe.value?(i=(0,c.c2)(null===(n=JSON.parse(null==Pe?void 0:Pe.value))||void 0===n?void 0:n.fromDate),l=(0,c.c2)(null===(r=JSON.parse(null==Pe?void 0:Pe.value))||void 0===r?void 0:r.toDate)):(i=(0,c.c2)(null===(o=ve[ve.length-1])||void 0===o?void 0:o.paycycleStartDate),l=(0,c.c2)(null===(a=ve[0])||void 0===a?void 0:a.paycycleEndDate)),{payCycleStartDate:i,payCycleEndDate:l}));(0,M.pi)(y,E,b,ye(ye({},s),{},{isFinalApprove:e})).then(function(t){if(200===(null==t?void 0:t.status)||201===(null==t?void 0:t.status))Ve(function(e){return e+1}),e&&(Qe(!0),ct(!1),_({message:C(\"APPROVED_SUCCESSFULLY\"),type:\"success\"}));else if(e){var n;_({message:null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage,type:\"error\"})}}).catch(function(e){})};return(0,o.useEffect)(function(){Promise.all([(0,d.oV)(y,E,b,h),(0,M.Dz)(y,E,b)]).then(function(e){var t,n,r,o,a=Se(e,2),i=a[0],l=a[1],s=null==l||null===(t=l.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.paycylePeriodName,value:JSON.stringify({fromDate:null==e?void 0:e.paycycleStartDate,toDate:null==e?void 0:e.paycycleEndDate})}}),c=null===(n=JSON.parse(null==i||null===(r=i.data)||void 0===r||null===(r=r.find(function(e){return(null==e?void 0:e.key)===p.q.ATTENDANCE_APPROVER_CONFIGURATION}))||void 0===r?void 0:r.value))||void 0===n?void 0:n.find(function(e){var t;return(null==e?void 0:e.approver_id)===(null==y||null===(t=y.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId)}),d=null==i||null===(o=i.data)||void 0===o||null===(o=o.find(function(e){return(null==e?void 0:e.key)===p.q.ATTENDANCE_TYPE}))||void 0===o?void 0:o.value;B(d===p.q.EVENT_BASED_ATTENDANCE),Ae(null==l?void 0:l.data),ge(s),null!=s&&s.length&&(Me(s[0]),ke(s[0])),null==m||m({isEnableWindowPayCycle:!1,startDate:\"\",endDate:\"\",isAttendanceRegularizationRequired:\"true\"===(null==c?void 0:c.is_attendance_regularization_required)}),g===p.q.APPROVAl&&h&&function(e){var t=new Date,n=new Date(t.getFullYear(),t.getMonth(),null==e?void 0:e.start_date),r=new Date(n.getTime()+24*(null==e?void 0:e.duration)*60*60*1e3);null==m||m({isEnableWindowPayCycle:t>=n&&t<=r,startDate:(0,u.Yq)(n,\"YYYY-MM-DD\"),endDate:(0,u.Yq)(r,\"YYYY-MM-DD\"),isAttendanceRegularizationRequired:\"true\"===(null==e?void 0:e.is_attendance_regularization_required)}),\"true\"!==(null==e?void 0:e.is_attendance_regularization_required)?je(t>=n&&t<=r):je(!1)}(c)}).catch(function(){})},[h]),(0,o.useEffect)(function(){Promise.all([(0,M.Vi)(y,E,b)]).then(function(e){var t=Se(e,1)[0];!function(e){var t,n=e.approverRes,r=e.setLabelNames,o=e.User,a=e.getApproverFiltersOptions,i=e.baseurl,l=e.triggerShowLoader,s=e.setLabelOptions,u=e.labelOptions;(0,e.setApproverFilterData)(null==n?void 0:n.data);var c=null==n||null===(t=n.data)||void 0===t?void 0:t.map(function(e){return null==e?void 0:e.name});if(r(L(c)),\"country_admin\"!==o.UserDetails.role_type_details.role_type_name){var d;a(o,i,l,{targetForId:null==o||null===(d=o.selectedBusinessUnit)||void 0===d||null===(d=d.userRoleControls)||void 0===d?void 0:d.roleId,parentHqIds:[]}).then(function(e){var t;s([].concat(L(u),[{labelName:c[0],options:null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}})}]))}).catch(function(){})}else{var p,f=null==n||null===(p=n.data[0])||void 0===p||null===(p=p.hq_data_list)||void 0===p?void 0:p.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});s([].concat(L(u),[{labelName:c[0],options:f}]))}}({setApproverFilterData:P,approverRes:t,setLabelNames:G,User:y,getApproverFiltersOptions:M.nl,baseurl:E,triggerShowLoader:b,setLabelOptions:q,labelOptions:V})}).catch(function(e){}),ot()},[]),(0,o.useEffect)(function(){h&&it()},[h]),(0,o.useEffect)(function(){null!=ve&&ve.length&&ct(!1)},[ve,Pe]),a().createElement(r.A,null,a().createElement(me,{onSearch:function(e){se(e)},setIsExpandId:oe,tabName:g,selectedMonth:_e,listOfMonthsForAttendanceHistory:j,setSelectedMonthOfAttendanceHistory:lt,payCycle:Pe,payCycleOptions:fe,onSelectPayCycle:function(e){Me(e),oe(\"\");var t=JSON.parse(null==e?void 0:e.value);de({fromDate:(0,c.$3)(null==t?void 0:t.fromDate),toDate:(0,c.$3)(null==t?void 0:t.toDate)})},User:y,calendarCycle:et,calendarRecentPayCycle:tt,canWrapAroundMarker:Re,approvalSummaryData:Q,selectedFilters:X,setIsFilterOpen:O,activeApproverButton:Fe,finalApprovedButtonStatusDetails:Ue,setIsVisibleFinalApprovePopup:Xe,salesHierarchyId:f}),a().createElement(ae,{canWrapAroundMarker:Re,approvalSummaryDetails:ee,approvalSummaryData:Q,activeApproverButton:Fe,tabName:g,leastMarkerId:h,listOfMonthsForAttendanceHistory:j,selectedMonth:_e,payCycleOptions:fe,payCycle:Pe,onApprove:ut,isEventBased:I,isExpandId:re,setIsVisibleFinalApprovePopup:Xe,getActiveFinalApprove:function(){return null==ee?void 0:ee.every(function(e){return null==e?void 0:e.isApproved})},onExpand:function(e){oe(re&&re===e?\"\":e);var t=e,n={userUUID:t,isApprover:g===p.q.APPROVAl};if(t){var r=ye(ye({},n),{},{fromDate:\"approval\"===g?(0,c.$3)(null==et?void 0:et.startDate):(0,c.$3)(null==ce?void 0:ce.fromDate),toDate:\"approval\"===g?(0,c.$3)(null==et?void 0:et.endDate):(0,c.$3)(null==ce?void 0:ce.toDate)});(0,M.Bm)(y,E,b,Object.keys(ce).length?r:n,{}).then(function(e){var t;te(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[])}).catch(function(e){_({message:e.message,type:\"error\"})})}else te([])}}),S&&a().createElement(T,{onFilterChange:function(e,t,n){var r=null==N?void 0:N[t+1],o=null==r?void 0:r.sales_hierarchy_id,a={targetForId:o,parentHqIds:e};o&&(0,M.nl)(y,E,b,a).then(function(e){!function(e,t,n){var r,o=null==e||null===(r=e.data)||void 0===r?void 0:r.map(function(e){return{name:null==e?void 0:e.hq_data_name,id:null==e?void 0:e.hq_data_id}});!function(e,t,n,r,o){var a,i=L(n),s={options:null==e||null===(a=e.hq_data_list)||void 0===a?void 0:a.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),labelName:null==e?void 0:e.name},u=n.findIndex(function(t){return(null==t?void 0:t.labelName)===(null==e?void 0:e.name)});-1!==u?i[u]=s:i=[].concat(L(n),[s]),function(e,t,n,r,o){var a=L(r),i=L(n);a.slice(null==a?void 0:a.indexOf(t)).forEach(function(t,n){t===l.Sp.TMHQ?e(t,[]):e(t,\"\"),n>0&&(i=i.map(function(e){return e.labelName===t?R(R({},e),{},{options:[]}):e})),o(L(i))})}(t,null==e?void 0:e.name,i,r,o)}({name:null==t?void 0:t.name,hq_data_list:o},n,V,Y,q)}(e,r,n)}).catch(function(e){_({message:e.message,type:\"error\"})})},labelNames:Y,labelOptions:V,onRequestClose:function(){O(!1)},isDrawerOpen:S,onFilterSubmit:J,onClearFilters:function(){var e=null==V?void 0:V.filter(function(e){return(null==e?void 0:e.labelName)===l.Sp.APPROVAL_STATUS||(null==e?void 0:e.labelName)===Y[0]||(null==e?void 0:e.labelName)===l.Sp.PAY_CYCLE}).map(function(e){return e.labelName===Y[0]?ye(ye({},e),{},{options:e.options.map(function(e){return ye(ye({},e),{},{checked:!1})})}):e});q(e),J({}),O(!1)},selectedFilters:X,setLabelOptions:q,tabName:g,isTMRole:Re}),$e&&a().createElement(k,{isVisible:$e,onRequestClose:function(){return Xe(!1)},onSubmit:function(){ct(!0)},isFinalApproved:We,setIsFinalApproved:Qe}))}},24279:(e,t,n)=>{\"use strict\";n.d(t,{X4:()=>i});var r=n(89453),o=n(90725);function a(e){if(e.type)return e;if(\"#\"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?\"a\":\"\"}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(\", \")})`:\"\"}(e));const t=e.indexOf(\"(\"),n=e.substring(0,t);if(-1===[\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(n))throw new Error((0,r.A)(9,e));let o,i=e.substring(t+1,e.length-1);if(\"color\"===n){if(i=i.split(\" \"),o=i.shift(),4===i.length&&\"/\"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(o))throw new Error((0,r.A)(10,o))}else i=i.split(\",\");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:o}}function i(e,t){return e=a(e),t=function(e,t=0,n=1){return(0,o.A)(e,t,n)}(t),\"rgb\"!==e.type&&\"hsl\"!==e.type||(e.type+=\"a\"),\"color\"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf(\"rgb\")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf(\"hsl\")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf(\"color\")?`${n} ${r.join(\" \")}`:`${r.join(\", \")}`,`${t}(${r})`}(e)}},24359:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(66346);r({global:!0,constructor:!0,forced:!n(77811)},{DataView:o.DataView})},24457:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){var r=\" \";return(e%100>=20||e>=100&&e%100==0)&&(r=\" de \"),e+r+{ss:\"secunde\",mm:\"minute\",hh:\"ore\",dd:\"zile\",ww:\"săptămâni\",MM:\"luni\",yy:\"ani\"}[n]}e.defineLocale(\"ro\",{months:\"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie\".split(\"_\"),monthsShort:\"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"duminică_luni_marți_miercuri_joi_vineri_sâmbătă\".split(\"_\"),weekdaysShort:\"Dum_Lun_Mar_Mie_Joi_Vin_Sâm\".split(\"_\"),weekdaysMin:\"Du_Lu_Ma_Mi_Jo_Vi_Sâ\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY H:mm\",LLLL:\"dddd, D MMMM YYYY H:mm\"},calendar:{sameDay:\"[azi la] LT\",nextDay:\"[mâine la] LT\",nextWeek:\"dddd [la] LT\",lastDay:\"[ieri la] LT\",lastWeek:\"[fosta] dddd [la] LT\",sameElse:\"L\"},relativeTime:{future:\"peste %s\",past:\"%s în urmă\",s:\"câteva secunde\",ss:t,m:\"un minut\",mm:t,h:\"o oră\",hh:t,d:\"o zi\",dd:t,w:\"o săptămână\",ww:t,M:\"o lună\",MM:t,y:\"un an\",yy:t},week:{dow:1,doy:7}})}(n(95093))},24496:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ar-ma\",{months:\"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر\".split(\"_\"),monthsShort:\"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر\".split(\"_\"),weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[اليوم على الساعة] LT\",nextDay:\"[غدا على الساعة] LT\",nextWeek:\"dddd [على الساعة] LT\",lastDay:\"[أمس على الساعة] LT\",lastWeek:\"dddd [على الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"في %s\",past:\"منذ %s\",s:\"ثوان\",ss:\"%d ثانية\",m:\"دقيقة\",mm:\"%d دقائق\",h:\"ساعة\",hh:\"%d ساعات\",d:\"يوم\",dd:\"%d أيام\",M:\"شهر\",MM:\"%d أشهر\",y:\"سنة\",yy:\"%d سنوات\"},week:{dow:1,doy:4}})}(n(95093))},24599:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(79472)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==a},{setTimeout:a})},24647:(e,t,n)=>{var r=n(54552)({À:\"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\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"});e.exports=r},24684:(e,t,n)=>{\"use strict\";n.d(t,{C:()=>u,E:()=>m,T:()=>d,c:()=>g,h:()=>p,w:()=>c});var r=n(81970),o=n(55655),a=n(30041),i=n(43174),l=n(71287),s=r.createContext(\"undefined\"!=typeof HTMLElement?(0,o.A)({key:\"css\"}):null),u=s.Provider,c=function(e){return(0,r.forwardRef)(function(t,n){var o=(0,r.useContext)(s);return e(t,o,n)})},d=r.createContext({}),p={}.hasOwnProperty,f=\"__EMOTION_TYPE_PLEASE_DO_NOT_USE__\",g=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,a.SF)(t,n,r),(0,l.s)(function(){return(0,a.sk)(t,n,r)}),null},m=c(function(e,t,n){var o=e.css;\"string\"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var l=e[f],s=[o],u=\"\";\"string\"==typeof e.className?u=(0,a.Rk)(t.registered,s,e.className):null!=e.className&&(u=e.className+\" \");var c=(0,i.J)(s,void 0,r.useContext(d));u+=t.key+\"-\"+c.name;var g={};for(var m in e)p.call(e,m)&&\"css\"!==m&&m!==f&&(g[m]=e[m]);return g.className=u,n&&(g.ref=n),r.createElement(r.Fragment,null,r.createElement(h,{cache:t,serialized:c,isStringTag:\"string\"==typeof l}),r.createElement(l,g))})},24730:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Me}),n(52675),n(89463),n(2259),n(28706),n(2008),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(2892),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(37998),i=n(47225),l=n(27305),s=n(79043),u=(n(45700),n(51629),n(62062),n(89572),n(67945),n(84185),n(83851),n(81278),n(79432),n(3362),n(35874),n(23500),n(28161)),c=n(90815),d=n(14073),p=n(56203),f=n(13075),g=n(36874),h=(n(94170),n(59904),n(40875),n(10287),n(25440),n(96790)),m=n(8085),v=n(34358);function A(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return y(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(y(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,y(d,\"constructor\",u),y(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",y(u,o,\"GeneratorFunction\"),y(d),y(d,o,\"Generator\"),y(d,r,function(){return this}),y(d,\"toString\",function(){return\"[object Generator]\"}),(A=function(){return{w:a,m:p}})()}function y(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}y=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){y(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},y(e,t,n,r)}function E(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){E(a,r,o,i,l,\"next\",e)}function l(e){E(a,r,o,i,l,\"throw\",e)}i(void 0)})}}var _=function(e){return e.map(function(e){var t;return{label:e.name,value:e.id,code:null!==(t=e.code)&&void 0!==t?t:null}})},C=function(){var e=b(A().m(function e(t){var n,r,o=arguments;return A().w(function(e){for(;;)if(0===e.n)return n=o.length>2&&void 0!==o[2]?o[2]:function(){},(r={}).domain=o.length>1&&void 0!==o[1]?o[1]:\"\",r.endPoint=m.p.GET_DMHQ,r.triggerLoader=n,r.customHeaders={\"bu-id\":t.selectedBusinessUnit.bu_id,\"country-code\":t.selectedCountry.countryCode,Authorization:\"Bearer \".concat(t.AccessToken),\"user-id\":t.UserDetails.user_id,\"role-id\":t.selectedBusinessUnit.userRoleControls.roleId,\"role-type-name\":t.UserDetails.role_type_details.role_type_name},e.a(2,new Promise(function(e,t){(0,v.uB)(r).then(function(t){if((0,f.mN)(t)){var n,r=(null===(n=t.data)||void 0===n||null===(n=n.hqDataList)||void 0===n?void 0:n.length)>0?_(t.data.hqDataList):[];return e(r)}throw new Error((0,f.Tl)(\"DMHQ_DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(new Error(e.message))})}))},e)}));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=b(A().m(function e(t){var n,r,o,a=arguments;return A().w(function(e){for(;;)if(0===e.n)return n=a.length>2&&void 0!==a[2]?a[2]:function(){},r=a.length>3&&void 0!==a[3]?a[3]:\"\",(o={}).domain=a.length>1&&void 0!==a[1]?a[1]:\"\",o.endPoint=m.p.GET_EVENT_MASTER_TYPE,o.triggerLoader=n,o.customHeaders={\"country-code\":t.selectedCountry.countryCode,Authorization:\"Bearer \".concat(t.AccessToken)},r&&(o.customHeaders.portfolioCode=r),e.a(2,new Promise(function(e,t){(0,v.uB)(o).then(function(t){if((0,f.mN)(t)){var n=t.data.length>0?_(t.data):[];return e(n)}throw new Error((0,f.Tl)(\"EVENT_MASTER_TYPES_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})}))},e)}));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=b(A().m(function e(t){var n,r,o,a=arguments;return A().w(function(e){for(;;)if(0===e.n)return r=a.length>2&&void 0!==a[2]?a[2]:function(){},(o={}).domain=a.length>1&&void 0!==a[1]?a[1]:\"\",o.endPoint=m.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==t||null===(n=t.selectedBusinessUnit)||void 0===n?void 0:n.bu_code),o.triggerLoader=r,o.customHeaders={\"country-code\":t.selectedCountry.countryCode,Authorization:\"Bearer \".concat(t.AccessToken)},e.a(2,new Promise(function(e,t){(0,v.uB)(o).then(function(t){if((0,f.mN)(t)){var n,r,o=(null==t||null===(n=t.data)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.length)>0?_(null==t||null===(r=t.data)||void 0===r?void 0:r.data):[];return e(o)}throw new Error((0,f.Tl)(\"PORTFOLIOS_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})}))},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=b(A().m(function e(t){var n,r,o,a=arguments;return A().w(function(e){for(;;)if(0===e.n)return n=a.length>2&&void 0!==a[2]?a[2]:function(){},r=a.length>3&&void 0!==a[3]?a[3]:\"\",(o={}).domain=a.length>1&&void 0!==a[1]?a[1]:\"\",o.endPoint=m.p.GET_BASELINE_EVENT_TYPES,o.triggerLoader=n,o.customHeaders={\"country-code\":t.selectedCountry.countryCode,Authorization:\"Bearer \".concat(t.AccessToken)},r&&(o.customHeaders.portfolioCode=r),e.a(2,new Promise(function(e,t){(0,v.uB)(o).then(function(t){if((0,f.mN)(t)){var n=t.data.length>0?t.data.map(function(e){return{label:e.name,value:e.id,code:e.event_master_type_code}}):[];return e(n)}throw new Error((0,f.Tl)(\"EVENT_TYPES_DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})}))},e)}));return function(t){return e.apply(this,arguments)}}(),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r={};return r.domain=t,r.endPoint=m.p.GET_TARGET_MDO,r.customHeaders={\"country-code\":e.selectedCountry.countryCode,Authorization:\"Bearer \".concat(e.AccessToken)},r.payLoad={bu_id:e.selectedBusinessUnit.bu_id},r.triggerLoader=n,new Promise(function(e,t){(0,v.uB)(r).then(function(t){if((0,f.mN)(t)){var n=t.data.length>0?_(t.data):[];return e(n)}throw new Error((0,f.Tl)(\"ROLES_DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})},D=n(82383),R=n(32027),N=n(70380),L=n(6347),P=n(88084),M=n(15664),x=n(64121),I=(n(42762),n(15941)),k=function(e,t,n){return I.Yj().test(\"\".concat(t,\"-conditional\"),function(r){var o,a=this.parent.eventMasterType;if((null==a||null===(o=a.code)||void 0===o?void 0:o.toUpperCase())!==e)return!0;if(null==r||!r.trim())return this.createError({message:String((0,p.t)(\"REQ_\".concat(t.toUpperCase()))),path:this.path});if(!/^\\d+$/.test(r))return this.createError({message:String((0,p.t)(\"ENTER_NUMBERS\")),path:this.path});var i=Number(r);return i<=0?this.createError({message:String((0,p.t)(\"MIN_\".concat(t.toUpperCase()))),path:this.path}):!(i>n)||this.createError({message:String((0,p.t)(\"MAX_\".concat(t.toUpperCase()))),path:this.path})})},B=function(e){return{dmHQName:I.Ik().required(String((0,p.t)(\"REQ_DM_HQ_NAME\"))),eventMasterType:I.Ik().required(String(e?(0,p.t)(\"REQ_EVENT_MASTER_TYPE\"):(0,p.t)(\"REQ_EVENT_TYPE\"))),portfolio:I.Ik().test(\"portfolio-required\",\"Portfolio required\",function(e){return!0!==this.parent.showPortfolio||null!=e}),configurationType:I.Yj().required(String((0,p.t)(\"REQ_CONFIGURATION_TYPE\"))),role:I.Ik().required(String((0,p.t)(\"REQ_ROLE\"))),year:I.Ik().required(String((0,p.t)(\"REQ_YEAR\"))),month:I.Ik().test(\"month-required\",String((0,p.t)(\"REQ_MONTH\")),function(e){var t,n=this.parent.configurationType;return\"yearly\"===(null==n||null===(t=n.value)||void 0===t?void 0:t.toLowerCase())||null!=e}),baselineValue:(t=0,n=999,r=\"BASELINE\",a=String((0,p.t)(\"ENTER_NUMBERS\")),i=String((0,p.t)(\"MIN_\".concat(r))),l=String((0,p.t)(\"MAX_\".concat(r))),s=String((0,p.t)(\"REQ_\".concat(r))),(o=a,I.Yj().matches(/^\\d+$/,o)).test(\"min-value\",i,function(e){return Number(e)>t}).test(\"max-value\",l,function(e){return Number(e)<=n}).required(s)),noOfGrowers:k(D.pQ.GROWERS,\"growers\",9999),noOfRetailers:k(D.pQ.RETAILERS,\"retailers\",999),maxBaseline:I.Ik().required(String((0,p.t)(\"REQ_MAX_BASELINE\")))};var t,n,r,o,a,i,l,s},F=function(e){return I.Ik().shape(B(e))},j=function(e){var t=B(e);return I.Ik().shape({dmHQName:I.Yj().optional().required(String((0,p.t)(\"REQ_DM_HQ_NAME\"))),eventMasterType:t.eventMasterType.optional(),portfolio:I.Ik().optional().required(String((0,p.t)(\"REQ_PORTFOLIO\"))),configurationType:I.Yj().optional().required(String((0,p.t)(\"REQ_CONFIGURATION_TYPE\"))),role:I.Yj().optional().required(String((0,p.t)(\"REQ_ROLE\"))),year:I.Yj().optional().required(String((0,p.t)(\"REQ_YEAR\"))),month:I.Yj().optional().required(String((0,p.t)(\"REQ_MONTH\"))),baselineValue:t.baselineValue,noOfGrowers:t.noOfGrowers,noOfRetailers:t.noOfRetailers,maxBaseline:t.maxBaseline})};function H(e){return H=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},H(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=H(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==H(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){var t=e.onRequestClose,n=e.selectedItem,r=e.dropdownData,a=e.handleYearChange,i=e.isBasicBaseLine,l=e.getEventTypeDataBasedOnPortfolioCode,s=e.hasShowPortfolio,f=e.baselineSubmitForm,g=e.formRef,h=e.initialForm,m=e.isEditingMode,v=function(e,t,n){return e?[]:t?n.eventMasterTypeList:n.eventTypesList},A=function(e,t,n){var r;return e?\"\".concat(null==n||null===(r=n.eventMasterType)||void 0===r?void 0:r.label):t?(0,p.t)(\"SELECT_EVENT_MASTER_TYPE\"):(0,p.t)(\"SELECT_EVENT_TYPE\")};return o().createElement(P.l1,{initialValues:Y(Y({},h),{},{showPortfolio:s}),validationSchema:m?j(i):F(i),enableReinitialize:!0,onSubmit:function(e,t){f(e)},innerRef:g},function(e){var f,g,h,y,E,b,_,C,w,S,T,O=e.values,R=e.setFieldValue;return o().createElement(P.lV,{className:\"popupContent\",\"data-testid\":\"formik-form\"},o().createElement(c.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2,flexWrap:\"wrap\"},o().createElement(u.A,{width:\"48%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"DMHQ_NAME\"),\"*\"),o().createElement(P.D0,{name:\"dmHQName\"},function(){return o().createElement(x.A,{name:\"dmHQName\",onChange:function(e,t){R(\"dmHQName\",t)},options:m?[]:r.dmHQList,labelKey:\"label\",label:\"dmHQName\",selectedOption:O.dmHQName,value:null==O?void 0:O.dmHQName,defaultLabel:m?\"\".concat(O.dmHQName):(0,p.t)(\"SELECT_DMHQ\"),isDisabled:m})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"dmHQName\"}))),s&&o().createElement(u.A,{width:\"48%\"},o().createElement(d.A,{variant:\"subtitle2\"},\"\".concat((0,p.t)(\"PORTFOLIO_FIELD\"),\"*\")),o().createElement(P.D0,{name:\"portfolio\"},function(){var e;return o().createElement(x.A,{name:\"portfolio\",onChange:function(e,t){R(\"portfolio\",t),l(null==t?void 0:t.code)},options:m?[]:r.portfolioDataList,labelKey:\"label\",label:\"portfolio\",selectedOption:O.portfolio,value:O.portfolio,defaultLabel:m?\"\".concat(null===(e=O.portfolio)||void 0===e?void 0:e.label):(0,p.t)(\"SELECT_PORTFOLIO\"),isDisabled:m})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"portfolio\"}))),o().createElement(u.A,{width:\"48%\"},o().createElement(d.A,{variant:\"subtitle2\"},i?\"Event Master Type*\":\"Event Type*\"),o().createElement(P.D0,{name:\"eventMasterType\"},function(){return o().createElement(x.A,{name:\"eventMasterType\",onChange:function(e,t){R(\"eventMasterType\",t)},options:v(m,i,r),labelKey:\"label\",label:\"eventMasterType\",selectedOption:O.eventMasterType,value:O.eventMasterType,defaultLabel:A(m,i,O),isDisabled:m})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"eventMasterType\"})))),o().createElement(c.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"ROLE\"),\"*\"),o().createElement(P.D0,{name:\"role\"},function(){return o().createElement(x.A,{name:\"role\",onChange:function(e,t){R(\"role\",t)},options:m?[]:r.roleList,labelKey:\"label\",label:\"role\",selectedOption:O.role,value:O.role,defaultLabel:m?\"\".concat(null==O?void 0:O.role):(0,p.t)(\"SELECT_ROLE_TYPE\"),isDisabled:m})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"role\"}))),o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"CONFIGURATION_TYPE\")),o().createElement(P.D0,{name:\"configurationType\",type:\"text\",className:\"inputField disabled-field\",disabled:!0,defaultValue:null==O?void 0:O.configurationType}))),o().createElement(c.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"YEAR\")),o().createElement(P.D0,{name:\"year\"},function(){return o().createElement(x.A,{name:\"year\",onChange:function(e,t){return a(R,t)},options:m?[]:r.yearList,labelKey:\"label\",label:\"year\",selectedOption:O.year,value:O.year,defaultLabel:m?\"\".concat(O.year):(0,p.t)(\"SELECT_YEAR\"),isDisabled:m})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"year\"}))),o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"MONTH\")),o().createElement(P.D0,{name:\"month\"},function(){var e;return o().createElement(x.A,{name:\"month\",onChange:function(e,t){R(\"month\",t)},options:m?[]:r.monthList,labelKey:\"label\",label:\"month\",selectedOption:O.month,value:O.month,defaultLabel:m?\"\".concat(O.month):(0,p.t)(\"SELECT_MONTH\"),isDisabled:m||\"yearly\"===(null===(e=O.configurationType)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.toLowerCase())})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"month\"})))),o().createElement(c.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"BASELINE_VALUE\"),\"*\"),o().createElement(P.D0,{name:\"baselineValue\",type:\"text\",className:\"inputField \",onChange:function(e){var t,n;R(\"noOfRetailers\",(null===(t=O.eventMasterType)||void 0===t?void 0:t.code)===D.pQ.RETAILERS?e.target.value:\"\"),R(\"baselineValue\",null!==(n=e.target.value)&&void 0!==n?n:\"\")},placeholder:null!==(f=(0,p.t)(\"BASELINE_VALUE\"))&&void 0!==f?f:\"Baseline Value\",defaultValue:null!==(g=null==O?void 0:O.baselineValue)&&void 0!==g?g:\"\"}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"baselineValue\"}))),o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"MAXIMUM_BASELINE\"),\" %\"),o().createElement(P.D0,{name:\"maxBaseline\"},function(){return o().createElement(x.A,{name:\"maxBaseline\",onChange:function(e,t){R(\"maxBaseline\",t)},options:r.maxBaseLineList,labelKey:\"label\",label:\"maxBaseline\",selectedOption:O.maxBaseline,value:O.maxBaseline,defaultLabel:(0,p.t)(\"SELECT_MAX_BASELINE\")})}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"maxBaseline\"})))),o().createElement(c.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},m&&(null==n||null===(h=n.eventTypeCode)||void 0===h?void 0:h.toUpperCase())===D.pQ.RETAILERS||(null===(y=O.eventMasterType)||void 0===y||null===(y=y.code)||void 0===y?void 0:y.toUpperCase())===D.pQ.RETAILERS?o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"NO_OF_RETAILERS\")),o().createElement(P.D0,{disabled:(null===(E=O.eventMasterType)||void 0===E||null===(E=E.code)||void 0===E?void 0:E.toUpperCase())===D.pQ.RETAILERS,name:\"noOfRetailers\",type:\"text\",className:\"inputField disabledInput\",placeholder:(0,p.t)(\"NO_OF_RETAILERS\"),defaultValue:(0,p.t)(\"NO_OF_RETAILERS\")}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"noOfRetailers\"}))):o().createElement(o().Fragment,null),m&&(null==n||null===(b=n.eventTypeCode)||void 0===b?void 0:b.toUpperCase())===D.pQ.GROWERS||(null===(_=O.eventMasterType)||void 0===_||null===(_=_.code)||void 0===_?void 0:_.toUpperCase())===D.pQ.GROWERS?o().createElement(u.A,{width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},(0,p.t)(\"NO_OF_GROWERS\")),o().createElement(P.D0,{name:\"noOfGrowers\",type:\"text\",className:\"inputField\",onChange:function(e){return R(\"noOfGrowers\",e.target.value)},placeholder:null!==(C=(0,p.t)(\"NO_OF_GROWERS\"))&&void 0!==C?C:\"No. Of Growers\",defaultValue:(0,p.t)(\"NO_OF_GROWERS\")}),o().createElement(L.A,{error:!0},o().createElement(P.Kw,{name:\"noOfGrowers\"}))):o().createElement(o().Fragment,null)),o().createElement(c.A,{direction:\"row\",gap:2,className:\"btnsBlockBaseline\"},o().createElement(M.A,{variant:\"outlined\",buttonName:null!==(w=(0,p.t)(\"CANCEL\"))&&void 0!==w?w:\"Cancel\",onButtonClick:function(){return t(!1)},fullwidth:!1,color:\"secondary\"}),o().createElement(M.A,{variant:\"contained\",buttonName:m?null!==(S=(0,p.t)(\"UPDATE\"))&&void 0!==S?S:\"Update\":null!==(T=(0,p.t)(\"SAVE\"))&&void 0!==T?T:\"Save\",fullwidth:!1,color:\"primary\",type:\"submit\"})))})};function V(e){return V=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},V(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=V(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==V(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const X=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,a=e.onRequestClose,l=void 0===a?function(){}:a,s=e.isEditingMode,A=void 0!==s&&s,y=e.isBasicBaseLine,E=void 0!==y&&y,b=e.selectedItem,_=(0,r.useContext)(i.v),L=_.BackOfficeProps,P=L.globalStore.User,M=L.baseurl,x=_.triggerShowLoader,I=void 0===x?function(){}:x,k=_.triggerToastMsg,B=void 0===k?function(){}:k,F=(0,R.i)(P).hasShowPortfolio,j=(0,r.useRef)(null),H=K((0,r.useState)(D.UC),2),U=H[0],Y=H[1],G=K((0,r.useState)(D.pC),2),V=G[0],q=G[1];(0,r.useEffect)(function(){var e,t,n,r,o,a,i,l,s,u;e=N.Ax.currentYear,t=e+1,q(function(n){return W(W({},n),{},{yearList:[{label:\"\".concat(e),value:e},{label:\"\".concat(t),value:t}]})}),A&&b?Y({dmHQName:b.dmhqName,eventMasterType:{label:b.eventMasterType,value:b.eventMasterType,code:b.eventTypeCode},portfolio:{label:b.portfolioCode,value:b.portfolioCode,code:b.portfolioCode},showPortfolio:F,configurationType:b.configType,role:null!==(n=b.role)&&void 0!==n?n:\"\",year:null===(r=b.year)||void 0===r?void 0:r.toString(),month:null===(o=b.month)||void 0===o?void 0:o.toString(),baselineValue:null===(a=b.baseLineValue)||void 0===a?void 0:a.toString(),noOfGrowers:null===(i=b.growers)||void 0===i?void 0:i.toString(),noOfRetailers:null===(l=b.retailers)||void 0===l?void 0:l.toString(),maxBaseline:Q(null!==(s=null==b||null===(u=b.maxBaseline)||void 0===u?void 0:u.toString())&&void 0!==s?s:\"\")}):$()},[]);var Q=function(e){return D.co.filter(function(t){return t.value===e})[0]},$=function(){Promise.allSettled([C(P,M,I),w(P,M,I),S(P,M,I),T(P,M,I),O(P,M,I)]).then(function(e){var t=K(e?e.map(function(e){return null==e?void 0:e.value}):[],5),n=t[0],r=void 0===n?[]:n,o=t[1],a=void 0===o?[]:o,i=t[2],l=void 0===i?[]:i,s=t[3],u=void 0===s?[]:s,c=t[4],d=void 0===c?[]:c;q(function(e){return W(W({},e),{},{dmHQList:(0,f.OP)(r)?r:[],portfolioDataList:(0,f.OP)(l)?l:[],eventMasterTypeList:(0,f.OP)(a)?a:[],eventTypesList:(0,f.OP)(u)?u:[],roleList:(0,f.OP)(d)?d:[]})})}),Y(function(e){return W(W({},e),{},{maxBaseline:D.co[1]})})};return o().createElement(g.A,{isDrawerOpen:n,anchor:\"right\"},o().createElement(u.A,{className:\"popupMain\"},o().createElement(c.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},o().createElement(d.A,{component:\"h1\",variant:\"h1\"},A?(0,p.t)(\"EDIT_BASELINE\"):(0,p.t)(\"ADD_BASELINE\")),o().createElement(u.A,{\"data-testid\":\"closeIcon\",onClick:function(){return l(!1)}},o().createElement(d.A,{className:\"icon-close closeIcon\"}))),o().createElement(z,{initialForm:U,isEditingMode:A,isBasicBaseLine:E,dropdownData:V,baselineSubmitForm:function(e){var t=function(e){var t,n,r,o,a,i,l,s,u,c,d,p,f,g,h,m,v={};return A&&b?(v.id=b.id,v.baseline_value=Number(e.baselineValue),v.no_of_growers=Number(null!==(t=e.noOfGrowers)&&void 0!==t?t:0),v.no_of_retailers=Number(null!==(n=e.noOfRetailers)&&void 0!==n?n:0),v.maximum_percent=Number(null===(r=e.maxBaseline)||void 0===r?void 0:r.value),v.portfolio_code=null!==(o=null==e||null===(a=e.portfolio)||void 0===a?void 0:a.code)&&void 0!==o?o:\"DEFAULT\"):(v.baseline_type=E?D.Mq.BASIC:D.Mq.ADVANCED,v.configuration_type=e.configurationType,v.year=Number(null===(i=e.year)||void 0===i?void 0:i.value),v.month=null===(l=e.month)||void 0===l?void 0:l.value.toString().toUpperCase(),v.baseline_value=Number(e.baselineValue),v.no_of_growers=Number(null!==(s=e.noOfGrowers)&&void 0!==s?s:0),v.no_of_retailers=Number(null!==(u=e.noOfRetailers)&&void 0!==u?u:0),v.maximum_percent=Number(null===(c=e.maxBaseline)||void 0===c?void 0:c.value),v.hq_data_id=Number(null===(d=e.dmHQName)||void 0===d?void 0:d.value),v.event_master_type_id=E?Number(null===(p=e.eventMasterType)||void 0===p?void 0:p.value):0,v.event_type_id=E?0:Number(null===(f=e.eventMasterType)||void 0===f?void 0:f.value),v.sales_hierarchy_id=Number(null===(g=e.role)||void 0===g?void 0:g.value),v.portfolio_code=null!==(h=null==e||null===(m=e.portfolio)||void 0===m?void 0:m.code)&&void 0!==h?h:\"DEFAULT\"),v}(e),n=A?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};return o.domain=t,o.endPoint=m.p.UPDATE_BASE_LINE,o.customHeaders={\"country-code\":e.selectedCountry.countryCode,Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=r,o.triggerLoader=n,new Promise(function(e,t){(0,v.uB)(o,h.dF.PUT).then(function(t){if((0,f.mN)(t))return e(t);throw new Error(\"\".concat(t.data.errorMessage))}).catch(function(e){return t(e)})})}(P,M,I,t):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};return o.domain=t,o.endPoint=m.p.SAVE_BASE_LINE,o.customHeaders={\"bu-id\":e.selectedBusinessUnit.bu_id,\"country-code\":e.selectedCountry.countryCode,Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=r,o.triggerLoader=n,new Promise(function(e,t){(0,v.uB)(o,h.dF.POST).then(function(t){if((0,f.mN)(t))return e(t);throw new Error(\"\".concat(t.data.errorMessage))}).catch(function(e){return t(e)})})}(P,M,I,t);return n.then(function(e){e&&(B({message:A?(0,p.t)(\"UPDATE_MESSAGE\"):(0,p.t)(\"SAVE_MESSAGE\"),type:\"success\"}),l(!0))}).catch(function(e){console.log(\"BASELINE ERRE\",e),B({message:\"\".concat(e),type:\"error\"})})},formRef:j,getEventTypeDataBasedOnPortfolioCode:function(e){Promise.allSettled([w(P,M,I,e),T(P,M,I,e)]).then(function(e){var t=K(e?e.map(function(e){return null==e?void 0:e.value}):[],2),n=t[0],r=void 0===n?[]:n,o=t[1],a=void 0===o?[]:o;q(function(e){return W(W({},e),{},{eventMasterTypeList:(0,f.OP)(r)?r:[],eventTypesList:(0,f.OP)(a)?a:[]})})})},hasShowPortfolio:F,onRequestClose:l,handleYearChange:function(e,t){q(function(e){return W(W({},e),{},{monthList:(0,f.kQ)(t.value)})}),e(\"year\",t),e(\"month\",\"\")},selectedItem:b})))};var J=n(8239),Z=n(34195),ee=n(48506),te=n(1988),ne=function(e){var t=e.initialForm,n=e.setTargetFilters,r=e.onRequestClose,a=e.dropdownData,i=e.hasShowPortfolio,l=e.getEventTypeData,s=e.getEventMasterData,p=e.isBasicBaseLine,f=e.setSelectedConfigurationType,g=e.dropdownYearOptions,h=e.selectedConfigurationType,m=e.resetFilters,v=(0,Z.Bd)().t;return o().createElement(P.l1,{initialValues:t,enableReinitialize:!0,onSubmit:function(e,t){n(e),r()}},function(e){var t=e.values,n=e.setFieldValue;return o().createElement(P.lV,{className:\"popupContent floating-filter\"},o().createElement(J.Ay,{container:!0,columns:{xs:13},gap:1,columnSpacing:1,mb:2},o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,{mb:2,width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},\"\".concat(v(\"HQ_NAME\"))),o().createElement(P.D0,{name:\"hqName\"},function(){return o().createElement(ee.A,{name:v(\"HQ_NAME\"),options:a.hqNameData,onHandleChange:function(e){n(\"hqName\",e)},selectedOption:null==t?void 0:t.hqName})}))),i&&o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,null,o().createElement(d.A,{variant:\"subtitle2\"},v(\"PORTFOLIO_FIELD\")),o().createElement(P.D0,{name:\"portfolio\"},function(){return o().createElement(x.A,{name:\"portfolio\",onChange:function(e,t){n(\"portfolio\",t),n(\"basicEventMasterType\",[]),n(\"advanceEventType\",[]),l(null==t?void 0:t.value),s(null==t?void 0:t.value)},options:null==a?void 0:a.portfolioData,labelKey:\"label\",label:\"portfolio\",selectedOption:null==t?void 0:t.portfolio,value:null==t?void 0:t.portfolio,defaultLabel:v(\"SELECT_PORTFOLIO\")})}))),!0===p&&o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,null,o().createElement(d.A,{variant:\"subtitle2\"},\"Event Master Type\"),o().createElement(P.D0,{name:\"basicEventMasterType\"},function(){return o().createElement(ee.A,{name:\"Event Master Type\",options:a.eventMasterType,onHandleChange:function(e){n(\"basicEventMasterType\",e)},selectedOption:null==t?void 0:t.basicEventMasterType})}))),!1===p&&o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,null,o().createElement(d.A,{variant:\"subtitle2\"},\"Event Type\"),o().createElement(P.D0,{name:\"advanceEventType\"},function(){return o().createElement(ee.A,{name:\"Event Type\",options:a.eventType,onHandleChange:function(e){n(\"advanceEventType\",e)},selectedOption:null==t?void 0:t.advanceEventType})}))),o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,null,o().createElement(d.A,{variant:\"subtitle2\"},\"Configuration Type\"),o().createElement(P.D0,{name:\"configurationType\"},function(){return o().createElement(x.A,{name:\"configurationType\",onChange:function(e,t){f(t),n(\"configurationType\",t)},options:te.I,labelKey:\"label\",label:\"configurationType\",selectedOption:null==t?void 0:t.configurationType,value:null==t?void 0:t.configurationType,defaultLabel:\"Select Configuration Type\"})}))),o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,{mb:2},o().createElement(d.A,{variant:\"subtitle2\"},\"Year\"),o().createElement(P.D0,{name:\"year\"},function(){return o().createElement(x.A,{name:\"year\",onChange:function(e,t){n(\"year\",t)},options:null==g?void 0:g.options,labelKey:\"label\",label:\"year\",selectedOption:null==t?void 0:t.year,value:null==t?void 0:t.year,defaultLabel:\"Select Year\"})}))),o().createElement(J.Ay,{item:!0,xs:3},o().createElement(u.A,{mb:2,width:\"100%\"},o().createElement(d.A,{variant:\"subtitle2\"},\" \",v(\"ROLE\")),o().createElement(P.D0,{name:\"role\"},function(){return o().createElement(ee.A,{name:\"Role\",options:a.roleData,onHandleChange:function(e){n(\"role\",e)},selectedOption:null==t?void 0:t.role})})))),o().createElement(J.Ay,{container:!0,columns:{xs:13},gap:1},o().createElement(J.Ay,{item:!0,xs:3},\"Monthly\"==(null==h?void 0:h.value)&&o().createElement(u.A,null,o().createElement(d.A,{variant:\"subtitle2\"},\"Months\"),o().createElement(P.D0,{name:\"months\"},function(){return o().createElement(ee.A,{name:\"Months\",options:te.J,onHandleChange:function(e){n(\"months\",e)},selectedOption:null==t?void 0:t.months})}))),o().createElement(J.Ay,{item:!0,xs:9.1},o().createElement(c.A,{direction:\"row\",justifyContent:\"end\",mt:2.5,ml:2},o().createElement(u.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},o().createElement(M.A,{variant:\"outlined\",buttonName:v(\"CLEAR_FILTERS\"),onButtonClick:function(){return m()},fullwidth:!1,color:\"primary\"}),o().createElement(M.A,{variant:\"contained\",buttonName:v(\"APPLY_FILTERS\"),onButtonClick:function(){},fullwidth:!1,color:\"primary\",type:\"submit\"}))))),o().createElement(u.A,{onClick:r,className:\"smart-agro-lite-filter-cross\"},o().createElement(d.A,{className:\"icon-close closeIcon\"})))})},re=(n(26910),n(64499));function oe(e){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oe(e)}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function le(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ce=function(e){var t=e.isFilterOpen,n=void 0!==t&&t,a=e.onRequestClose,l=void 0===a?function(){}:a,s=e.isBasicBaseLine,c=void 0!==s&&s,d=e.setTargetFilters,p=void 0===d?function(){}:d,f=e.targetFilters,h=void 0===f?function(){}:f,v=(0,r.useContext)(i.v).BackOfficeProps.globalStore.User,A=(0,R.i)(v).hasShowPortfolio,y=(new Date).getFullYear(),E=y+1,b={options:[{label:y.toString(),value:y.toString()},{label:E.toString(),value:E.toString()}]},_=se((0,r.useState)({hqName:[],configurationType:null,portfolio:null,year:null,months:[],basicEventMasterType:[],advanceEventType:[],role:[]}),2),C=_[0],w=_[1],S=se((0,r.useState)({hqNameData:[],portfolioData:[],eventMasterType:[],eventType:[],roleData:[]}),2),T=S[0],O=S[1],D=se((0,r.useState)({label:\"\",value:\"\"}),2),N=D[0],L=D[1],P=function(e){var t,n,o=e.setDropdownData,a=(0,r.useContext)(i.v),l=a.BackOfficeProps,s=l.globalStore.User,u=l.baseurl,c=a.triggerShowLoader,d=a.triggerToastMsg,p=null===(t=s.selectedCountry)||void 0===t?void 0:t.countryCode,f=u,g=null!==(n=null==s?void 0:s.AccessToken)&&void 0!==n?n:\"\",h=null==s?void 0:s.selectedBusinessUnit;return{getHqNameData:function(){var e={};return e.domain=f,e.endPoint=m.p.EVENT_BASE_LINE_HQDATA,e.customHeaders={\"country-code\":p,\"bu-id\":null==h?void 0:h.bu_id,Authorization:\"Bearer \".concat(g),\"user-id\":s.UserDetails.user_id,\"role-id\":s.selectedBusinessUnit.userRoleControls.roleId,\"role-type-name\":s.UserDetails.role_type_details.role_type_name},e.triggerLoader=c,(0,re.kQ)(e).then(function(e){var t,n;if(Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.hqDataList)&&(null==e||null===(n=e.data)||void 0===n||null===(n=n.hqDataList)||void 0===n?void 0:n.length)>0){var r,a=null==e||null===(r=e.data)||void 0===r?void 0:r.hqDataList.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ie(ie({},e),{},{hqNameData:a})})}return e}).catch(function(e){var t;d({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},getPortfolioData:function(){var e,t={};return t.domain=f,t.endPoint=m.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==s||null===(e=s.selectedBusinessUnit)||void 0===e?void 0:e.bu_code),t.customHeaders={\"country-code\":p,\"bu-id\":null==h?void 0:h.bu_id,Authorization:\"Bearer \".concat(g),\"user-id\":s.UserDetails.user_id},t.triggerLoader=c,(0,re.kQ)(t).then(function(e){var t,n;if(Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.data)&&(null==e||null===(n=e.data)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.length)>0){var r,a=null==e||null===(r=e.data)||void 0===r?void 0:r.data.map(function(e){return{label:e.name,value:e.code,id:null==e?void 0:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ie(ie({},e),{},{portfolioData:a})})}return e}).catch(function(e){var t;d({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},getEventTypeData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",t={};return t.domain=f,t.endPoint=m.p.GET_BASELINE_EVENT_TYPES,t.customHeaders={\"country-code\":p,Authorization:\"Bearer \".concat(g)},e&&(t.customHeaders.portfolioCode=e),t.triggerLoader=c,(0,re.kQ)(t).then(function(e){var t;if(Array.isArray(null==e?void 0:e.data)&&(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n=null==e?void 0:e.data.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ie(ie({},e),{},{eventType:n})})}return e}).catch(function(e){var t;d({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},getEventMasterData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",t={};return t.domain=f,t.endPoint=m.p.GET_EVENT_MASTER_TYPE,t.customHeaders={\"country-code\":p,Authorization:\"Bearer \".concat(g)},e&&(t.customHeaders.portfolioCode=e),t.triggerLoader=c,(0,re.kQ)(t).then(function(e){var t;if(Array.isArray(null==e?void 0:e.data)&&(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n=null==e?void 0:e.data.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ie(ie({},e),{},{eventMasterType:n})})}return e}).catch(function(e){var t;d({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},getRoleDropDownData:function(){var e={};return e.domain=f,e.endPoint=m.p.GET_TARGET_MDO,e.customHeaders={\"country-code\":p,Authorization:\"Bearer \".concat(g)},e.payLoad={bu_id:null==h?void 0:h.bu_id},e.triggerLoader=c,(0,re.$c)(e).then(function(e){var t;if(Array.isArray(null==e?void 0:e.data)&&(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n=null==e?void 0:e.data.map(function(e){return{label:e.name,value:e.id}}).sort(function(e,t){return e.label.localeCompare(t.label)});o(function(e){return ie(ie({},e),{},{roleData:n})})}return e}).catch(function(e){var t;d({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})}}}({setDropdownData:O}),M=P.getHqNameData,x=P.getPortfolioData,I=P.getEventTypeData,k=P.getEventMasterData,B=P.getRoleDropDownData;return(0,r.useEffect)(function(){M(),x(),I(),k(),B()},[]),(0,r.useEffect)(function(){Object.keys(h).length?(w({hqName:h.hqName,configurationType:h.configurationType,portfolio:h.portfolio,year:h.year,months:h.months,basicEventMasterType:h.basicEventMasterType,advanceEventType:h.advanceEventType,role:h.role}),L(h.configurationType)):w({hqName:[],configurationType:null,portfolio:null,year:null,months:[],basicEventMasterType:[],advanceEventType:[],role:[]})},[]),o().createElement(u.A,null,o().createElement(g.A,{isDrawerOpen:n,anchor:\"top\",upper:!0},o().createElement(u.A,{p:3,className:\"event-baseline-floating-filter-wrapper\"},o().createElement(ne,{initialForm:C,setTargetFilters:p,onRequestClose:l,dropdownData:T,isBasicBaseLine:c,getEventTypeData:I,getEventMasterData:k,dropdownYearOptions:b,setSelectedConfigurationType:L,selectedConfigurationType:N,hasShowPortfolio:A,resetFilters:function(){p([]),l()}}))))};var de=n(86608),pe=n(99478);const fe=function(e){var t=e.popUpClose,n=e.errorMessageValue;return o().createElement(u.A,null,o().createElement(c.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,pb:0},o().createElement(d.A,{variant:\"h1\",color:\"red\"},\"ERROR\"),o().createElement(u.A,null,o().createElement(d.A,{className:\"icon-close closeIcon\",\"data-testid\":\"closePopIcon\",onClick:t}))),o().createElement(u.A,{className:\"modal-body\",p:2},o().createElement(c.A,{flexDirection:\"row\",justifyContent:\"center\",alignItems:\"start\",gap:2},o().createElement(u.A,null,o().createElement(d.A,null,n)))))};function ge(e){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ge(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ge(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ge(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(60739);var Ae=n(60538),ye=n(51545),Ee=n(80663),be=n(96348),_e=n(56254),Ce=n(43605),we=n(92416),Se=(0,n(11848).Ay)(u.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",\"& .ag-row\":{cursor:\"pointer\"}}});function Te(e){return Te=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Te(e)}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach(function(t){Re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Re(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Te(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Te(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne=function(e){var t=e.targetFilters,n=e.setIsFilterOpen,r=e.setIsDrawerOpen,a=e.hasCreateAccess,i=e.listData,l=e.tableColumnDef,s=e.EditActionComponent,u=e.paginationState,c=e.totalPageCount,d=e.totalElements,g=e.setPaginationState;return o().createElement(Se,null,o().createElement(ye.A,null,o().createElement(Ee.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(ye.A,null,o().createElement(we.A,{routePathName:[{name:be.F_.Events,path:be.fp.Events},{name:be.F_.Events_Basic_Baseline,path:be.fp.EventsBaseline}]}))),o().createElement(Ee.A,{flexDirection:\"row\",justifyContent:\"flex-end\",alignItems:\"center\",mb:2,gap:2},o().createElement(M.A,{className:(0,f.F7)(t),buttonName:(0,p.t)(\"Filters\"),color:\"trasnparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),variant:\"text\",onButtonClick:function(){return n(!0)}}),o().createElement(M.A,{buttonName:(0,p.t)(\"ADD_BASELINE_CONFIGURATION\"),color:\"trasnparent\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){return r(!0)},disabled:!a})),o().createElement(Ae.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(Ce.A,{rows:i,columnDefs:l,frameworkComponents:{EditActionComponent:s}})),o().createElement(_e.A,{pageNo:u.pageNo,totalPageCount:Math.ceil(c),totalElements:d,onPageChange:function(e){g(function(t){return De(De({},t),{},{pageNo:Number(e)})})}})))};function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Me=function(e){var t=e.RBACControls,n=(0,l.w)(t),u=n.hasCreateAccess,c=n.hasUpdateAccess,d=n.hasDeleteAccess,g=(0,r.useContext)(i.v),A=g.BackOfficeProps,y=A.globalStore.User,E=A.baseurl,b=g.triggerShowLoader,_=g.triggerToastMsg,C=(0,R.i)(y),w=C.hasShowPortfolio,S=C.hasPortfolioEnable,T=Le((0,r.useState)({pageNo:0,pageSize:10}),2),O=T[0],L=T[1],P=Le((0,r.useState)(0),2),M=P[0],x=P[1],I=Le((0,r.useState)(0),2),k=I[0],B=I[1],F=Le((0,r.useState)([]),2),j=F[0],H=F[1],U=Le((0,r.useState)(!1),2),Y=U[0],G=U[1],z=Le((0,r.useState)(\"\"),2),V=z[0],q=z[1],W=Le((0,r.useState)(!1),2),Q=W[0],K=W[1],$=Le((0,r.useState)(null),2),J=$[0],Z=$[1],ee=Le((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re=Le((0,r.useState)({}),2),oe=re[0],ae=re[1],ie=Le((0,r.useState)(!1),2),le=ie[0],se=ie[1],ue=Le((0,r.useState)(\"\"),2),ge=ue[0],he=ue[1],ve=(0,r.useMemo)(function(){return V===D.Mq.BASIC},[V]),Ae=(0,r.useMemo)(function(){return function(e){var t,n,r,o,a,i,l,s,u,c=e.User,d=e.isBasicBaseLine,p=e.BaselineType,g=e.targetFilters,h=e.hasShowPortfolio,m=e.setPaginationState,v=[{field:\"buId\",operator:\"EQUALS\",value:c.selectedBusinessUnit.bu_id},{field:\"baselineType\",operator:\"EQUALS\",value:d?p.BASIC:p.ADVANCED},{field:\"hqDataId\",operator:\"IN\",values:null==g||null===(t=g.hqName)||void 0===t?void 0:t.map(function(e){return JSON.stringify(e.value)})},{field:\"eventMasterTypeId\",operator:\"IN\",values:null==g||null===(n=g.basicEventMasterType)||void 0===n?void 0:n.map(function(e){return JSON.stringify(e.value)})},{field:\"eventTypeId\",operator:\"IN\",values:null==g||null===(r=g.advanceEventType)||void 0===r?void 0:r.map(function(e){return JSON.stringify(e.value)})},{field:\"configurationType\",operator:\"EQUALS\",value:null==g||null===(o=g.configurationType)||void 0===o?void 0:o.value},{field:\"year\",operator:\"EQUALS\",value:null==g||null===(a=g.year)||void 0===a?void 0:a.value},{field:\"portfolioCode\",operator:\"EQUALS\",value:h?null==g||null===(i=g.portfolio)||void 0===i?void 0:i.value:(0,f.XD)(null==g||null===(l=g.portfolio)||void 0===l?void 0:l.value,c)},{field:\"salesHierarchyId\",operator:\"IN\",values:null==g||null===(s=g.role)||void 0===s?void 0:s.map(function(e){return JSON.stringify(e.value)})},{field:\"month\",values:null==g||null===(u=g.months)||void 0===u?void 0:u.map(function(e){return e.value}),operator:\"IN\"}].filter(function(e){return Array.isArray(e.values)?e.values.length>0:\"string\"==typeof e.value?\"\"!==e.value.trim():void 0!==e.value});return m(function(e){return me(me({},e),{},{pageNo:0,pageSize:10})}),v}({User:y,isBasicBaseLine:ve,BaselineType:D.Mq,targetFilters:oe,hasShowPortfolio:w,setPaginationState:L})},[oe,ve]);(0,r.useEffect)(function(){ye()},[]),(0,r.useEffect)(function(){V&&Ee()},[O,oe,Ae,V]);var ye=function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r={};return r.domain=t,r.endPoint=m.p.GET_ATTENDANCE_CONFIG_DATA,r.triggerLoader=n,r.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(e.AccessToken)},r.payLoad={moduleName:\"BASELINE\",keys:\"baseline_type\"},new Promise(function(e,t){(0,v.uB)(r).then(function(t){if((0,f.mN)(t)){var n,r=(null===(n=t.data)||void 0===n?void 0:n.length)>0?t.data[0]:[];return e(r)}throw new Error((0,f.Tl)(\"NO_BASELINE_CONFIG_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})})(y,E,b).then(function(e){e&&q(e.value.toUpperCase())}).catch(function(e){})},Ee=(0,r.useCallback)(function(){var e={filter:Ae,pageNo:O.pageNo,pageSize:O.pageSize};(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};return o.domain=t,o.endPoint=m.p.GET_BASE_LINE,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=r,new Promise(function(e,t){(0,v.uB)(o,h.dF.POST).then(function(t){if((0,f.mN)(t)){var n=t.data,r=n.data,o=n.pageNo,a=n.pageSize,i=n.totalPageCount,l=n.totalElements,s=(null==r?void 0:r.length)>0?function(e){return e.map(function(e){return{id:e.id,dmhqName:e.name,eventMasterType:e.eventType,eventType:e.eventType,configType:e.configType,year:e.year,month:e.month,baseLineValue:e.baselineValue,growers:0===Number(e.growers)?\"NA\":e.growers,retailers:0===Number(e.retailers)?\"NA\":e.retailers,role:e.roleName,maxBaseline:e.maximumPercent,eventTypeCode:e.eventTypeCode,portfolioCode:null==e?void 0:e.portfolioCode}})}(t.data.data):[];return e({pageNo:o,pageSize:a,totalPageCount:i,data:s,totalElements:l})}throw new Error((0,f.Tl)(\"NO_BASELINE_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})})(y,E,b,e).then(function(e){e?(H(e.data),x(null==e?void 0:e.totalPageCount),B(null==e?void 0:e.totalElements)):(H([]),B(0))}).catch(function(e){})},[O,oe,Ae]),be=function(e,t){var n;null===(n=function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=m.p.EVENT_BASELINE_VALIDATION.replace(\"__id__\",r),a.customHeaders={\"country-code\":\"\".concat(null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,new Promise(function(e,t){(0,v.uB)(a,h.dF.GET).then(function(t){if((0,f.mN)(t))return e(t);throw new Error((0,f.Tl)(\"NO_DATA_FOUND\"))}).catch(function(e){return t(e)})})}(y,E,b,null==e?void 0:e.id))||void 0===n||n.then(function(n){n&&(!0===(null==n?void 0:n.data)?(se(!0),he(\"edit\"===t?pe.EA:pe.vj)):\"edit\"===t?(Z(e),K(!0)):\"delete\"===t&&(G(!0),Z(e)))}).catch(function(e){_({message:null==e?void 0:e.message,type:\"error\"})})},_e=(0,r.useMemo)(function(){var e=S?a.k7:function(e){var t=null==e?void 0:e.filter(function(e){return\"Portfolio\"!==(null==e?void 0:e.headerName)});return null!=t?t:[]}(a.k7);return ve?null==e?void 0:e.filter(function(e){var t;return\"eventtype\"!==(null===(t=e.field)||void 0===t?void 0:t.toLowerCase())}):null==e?void 0:e.filter(function(e){var t;return\"eventmastertype\"!==(null===(t=e.field)||void 0===t?void 0:t.toLowerCase())})},[ve]);return o().createElement(o().Fragment,null,o().createElement(Ne,{targetFilters:oe,setIsFilterOpen:ne,setIsDrawerOpen:K,hasCreateAccess:u,listData:j,tableColumnDef:_e,EditActionComponent:function(e){var t=e.column,n=e.data,r=(0,N.AV)(\"YYYY-MM\"),a=Number((0,N.Hf)(null==n?void 0:n.month)),i=n.year,l=(0,N.Yq)(\"\".concat(i,\"-\").concat(a)).isBefore(\"\".concat(r)),s={edit:{label:\"Edit\",className:\"smart-agro-lite-green-label remove-button \".concat(!c||l?\"disabled-label\":\"\",\" \")},delete:{label:\"Delete\",className:\"smart-agro-lite-red-label remove-button \".concat(!d||l?\"disabled-label\":\"\")}};return o().createElement(\"button\",{type:\"button\",className:s[t.colId].className,onClick:function(){l||(\"edit\"===t.colId.toLowerCase()?be(n,\"edit\"):\"delete\"===t.colId.toLowerCase()&&be(n,\"delete\"))}},s[t.colId].label)},paginationState:O,totalPageCount:M,totalElements:k,setPaginationState:L}),Q&&o().createElement(X,{isDrawerOpen:Q,isBasicBaseLine:ve,selectedItem:J,isEditingMode:!!J,onRequestClose:function(e){K(!1),Z(null),e&&L({pageNo:0,pageSize:10})}}),te&&o().createElement(ce,{isFilterOpen:te,onRequestClose:function(){ne(!1)},isBasicBaseLine:ve,setTargetFilters:ae,targetFilters:oe}),le&&o().createElement(de.A,{isVisible:le},o().createElement(fe,{popUpClose:function(){se(!1)},errorMessageValue:ge})),Y&&o().createElement(s.B,{isVisible:Y,message:\"\".concat((0,p.t)(\"CONFIGURATION_DELETE_CONFIRMATION\")),onRequestClose:function(){return G(!1)},onButtonClick:function(){G(!1);var e={id:null==J?void 0:J.id};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};return o.domain=t,o.endPoint=m.p.DELETE_BASE_LINE.replace(\"__ID__\",null==r?void 0:r.id),o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,v.uB)(o,h.dF.DELETE).then(function(t){if((0,f.mN)(t))return e(t.data);throw new Error((0,f.Tl)(\"BASELINE_DELETE_API_FAILED\"))}).catch(function(e){return t(e)})})}(y,E,b,e).then(function(e){e&&(G(!1),Z(null),_({message:\"\".concat(e),type:\"success\"}),Ee())}).catch(function(e){})}}))}},24739:(e,t,n)=>{var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},24913:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(35917),a=n(48686),i=n(28551),l=n(56969),s=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=\"enumerable\",p=\"configurable\",f=\"writable\";t.f=r?a?function(e,t,n){if(i(e),t=l(t),i(n),\"function\"==typeof e&&\"prototype\"===t&&\"value\"in n&&f in n&&!n[f]){var r=c(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(i(e),t=l(t),i(n),o)try{return u(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw new s(\"Accessors not supported\");return\"value\"in n&&(e[t]=n.value),e}},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},25177:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"af\",{months:\"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember\".split(\"_\"),monthsShort:\"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des\".split(\"_\"),weekdays:\"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag\".split(\"_\"),weekdaysShort:\"Son_Maa_Din_Woe_Don_Vry_Sat\".split(\"_\"),weekdaysMin:\"So_Ma_Di_Wo_Do_Vr_Sa\".split(\"_\"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?\"vm\":\"VM\":n?\"nm\":\"NM\"},longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Vandag om] LT\",nextDay:\"[Môre om] LT\",nextWeek:\"dddd [om] LT\",lastDay:\"[Gister om] LT\",lastWeek:\"[Laas] dddd [om] LT\",sameElse:\"L\"},relativeTime:{future:\"oor %s\",past:\"%s gelede\",s:\"'n paar sekondes\",ss:\"%d sekondes\",m:\"'n minuut\",mm:\"%d minute\",h:\"'n uur\",hh:\"%d ure\",d:\"'n dag\",dd:\"%d dae\",M:\"'n maand\",MM:\"%d maande\",y:\"'n jaar\",yy:\"%d jaar\"},dayOfMonthOrdinalParse:/\\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?\"ste\":\"de\")},week:{dow:1,doy:4}})}(n(95093))},25239:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>_});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(28466),u=n(14073),c=n(33800),d=n(79716),p=n(11848),f=n(38413),g=n(31609);function h(e){return(0,g.Ay)(\"MuiInputAdornment\",e)}const m=(0,f.A)(\"MuiInputAdornment\",[\"root\",\"filled\",\"standard\",\"outlined\",\"positionStart\",\"positionEnd\",\"disablePointerEvents\",\"hiddenLabel\",\"sizeSmall\"]);var v,A=n(25669),y=n(74848);const E=[\"children\",\"className\",\"component\",\"disablePointerEvents\",\"disableTypography\",\"position\",\"variant\"],b=(0,p.Ay)(\"div\",{name:\"MuiInputAdornment\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,s.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,o.A)({display:\"flex\",height:\"0.01em\",maxHeight:\"2em\",alignItems:\"center\",whiteSpace:\"nowrap\",color:(e.vars||e).palette.action.active},\"filled\"===t.variant&&{[`&.${m.positionStart}&:not(.${m.hiddenLabel})`]:{marginTop:16}},\"start\"===t.position&&{marginRight:8},\"end\"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:\"none\"})),_=a.forwardRef(function(e,t){const n=(0,A.b)({props:e,name:\"MuiInputAdornment\"}),{children:p,className:f,component:g=\"div\",disablePointerEvents:m=!1,disableTypography:_=!1,position:C,variant:w}=n,S=(0,r.A)(n,E),T=(0,d.A)()||{};let O=w;w&&T.variant,T&&!O&&(O=T.variant);const D=(0,o.A)({},n,{hiddenLabel:T.hiddenLabel,size:T.size,disablePointerEvents:m,position:C,variant:O}),R=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,u={root:[\"root\",n&&\"disablePointerEvents\",o&&`position${(0,s.A)(o)}`,i,r&&\"hiddenLabel\",a&&`size${(0,s.A)(a)}`]};return(0,l.A)(u,h,t)})(D);return(0,y.jsx)(c.A.Provider,{value:null,children:(0,y.jsx)(b,(0,o.A)({as:g,ownerState:D,className:(0,i.A)(R.root,f),ref:t},S,{children:\"string\"!=typeof p||_?(0,y.jsxs)(a.Fragment,{children:[\"start\"===C?v||(v=(0,y.jsx)(\"span\",{className:\"notranslate\",children:\"​\"})):null,p]}):(0,y.jsx)(u.A,{color:\"text.secondary\",children:p})}))})})},25276:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(27476),a=n(19617).indexOf,i=n(34598),l=o([].indexOf),s=!!l&&1/l([1],1,-0)<0;r({target:\"Array\",proto:!0,forced:s||!i(\"indexOf\")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?l(this,e,t)||0:a(this,e,t)}})},25353:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1356d8c15a63aaf5414f.svg\"},25397:(e,t,n)=>{\"use strict\";var r=n(47055),o=n(67750);e.exports=function(e){return r(o(e))}},25428:(e,t,n)=>{\"use strict\";n(46518)({target:\"Number\",stat:!0},{isFinite:n(50360)})},25440:(e,t,n)=>{\"use strict\";var r=n(18745),o=n(69565),a=n(79504),i=n(89228),l=n(79039),s=n(28551),u=n(94901),c=n(20034),d=n(91291),p=n(18014),f=n(655),g=n(67750),h=n(57829),m=n(55966),v=n(2478),A=n(61034),y=n(56682),E=n(78227)(\"replace\"),b=Math.max,_=Math.min,C=a([].concat),w=a([].push),S=a(\"\".indexOf),T=a(\"\".slice),O=function(e){return void 0===e?e:String(e)},D=\"$0\"===\"a\".replace(/./,\"$0\"),R=!!/./[E]&&\"\"===/./[E](\"a\",\"$0\");i(\"replace\",function(e,t,n){var a=R?\"$\":\"$0\";return[function(e,n){var r=g(this),a=c(e)?m(e,E):void 0;return a?o(a,e,r,n):o(t,f(r),e,n)},function(e,o){var i=s(this),l=f(e);if(\"string\"==typeof o&&-1===S(o,a)&&-1===S(o,\"$<\")){var c=n(t,i,l,o);if(c.done)return c.value}var g=u(o);g||(o=f(o));var m,E=f(A(i)),D=-1!==S(E,\"g\");D&&(m=-1!==S(E,\"u\"),i.lastIndex=0);for(var R,N=[];null!==(R=y(i,l))&&(w(N,R),D);)\"\"===f(R[0])&&(i.lastIndex=h(l,p(i.lastIndex),m));for(var L=\"\",P=0,M=0;M<N.length;M++){for(var x,I=f((R=N[M])[0]),k=b(_(d(R.index),l.length),0),B=[],F=1;F<R.length;F++)w(B,O(R[F]));var j=R.groups;if(g){var H=C([I],B,k,l);void 0!==j&&w(H,j),x=f(r(o,void 0,H))}else x=v(I,l,k,B,j,o);k>=P&&(L+=T(l,P,k)+x,P=k+I.length)}return L+T(l,P)}]},!!l(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:\"7\"},e},\"7\"!==\"\".replace(e,\"$<a>\")})||!D||R)},25442:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Me}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(47767),s=n(8085),u=n(99478),c=n(96348),d=n(78208),p=n(47225),f=n(13075),g=n(92416),h=n(27776),m=n(46374),v=(n(15086),n(94170),n(59904),n(40875),n(10287),n(3362),n(42762),n(14073)),A=n(60538),y=n(56203),E=n(17630),b=n(27305),_=n(34358),C=n(64121),w=n(33417),S=(n(25440),n(32755)),T=(n(95692),function(e,t,n,r,o){var a,i,l,u={};return u.domain=t,\"cropsData\"===r?(u.endPoint=s.p.GET_CROPDATA.replace(\"__ID__\",\"\".concat(null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_id)),u.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}):(u.endPoint=s.p.GET_DEMO_TRACKING_DATA.replace(\"__CROP_ID__\",\"\".concat(o)),u.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}),u.triggerLoader=n,(0,f.AT)(\"get\",u,!1)}),O=n(54534),D={BASIC:\"Basic Details\",ADVANCED:\"Advanced Details\",CROP:\"Crop\",PERFORMANCE:\"Performance\",FIRST_VISIT:\"First Visit\",SECOND_VISIT:\"Second Visit\",PREVIEW:\"Preview Details\"},R={EVENT_ACTUAL:\"Events\",GROWER_ONBOARDING:\"Growers\",GEO_DATA:\"Geo\",RETAILER_ONBOARDING:\"Retailers\",DEMO_TRACKING:\"Demo Tracking\",RETAILERS_SOW:\"Retailers SOW\",PRODUCT_DEMO_TRACKING:\"Product Demo Tracking\"},N=function(e){return e[e.EVENTS=1]=\"EVENTS\",e[e.GROWERS=2]=\"GROWERS\",e[e.GEO=3]=\"GEO\",e[e.RETAILERS=4]=\"RETAILERS\",e[e.DEMO_TRACKING=5]=\"DEMO_TRACKING\",e[e.RETAILERS_SOW=6]=\"RETAILERS_SOW\",e[e.PRODUCT_DEMO_TRACKING=7]=\"PRODUCT_DEMO_TRACKING\",e}({});function L(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return P(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(P(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,P(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,P(d,\"constructor\",u),P(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",P(u,o,\"GeneratorFunction\"),P(d),P(d,o,\"Generator\"),P(d,r,function(){return this}),P(d,\"toString\",function(){return\"[object Generator]\"}),(L=function(){return{w:a,m:p}})()}function P(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}P=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){P(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},P(e,t,n,r)}function M(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){M(a,r,o,i,l,\"next\",e)}function l(e){M(a,r,o,i,l,\"throw\",e)}i(void 0)})}}var I=function(){var e=x(L().m(function e(t){var n,r,o,a;return L().w(function(e){for(;;)if(0===e.n)return n=t.baseUrl,r=t.user,o=t.triggerShowLoader,(a={}).domain=n,a.endPoint=s.p.GET_EVENT_TYPES.replace(\"__BUID__\",\"\".concat(r.selectedBusinessUnit.bu_id)),a.customHeaders={\"country-code\":r.selectedCountry.countryCode,Authorization:\"Bearer \".concat(r.AccessToken)},a.triggerLoader=o,e.a(2,(0,O.QX)(a))},e)}));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=x(L().m(function e(t){var n,r,o,a,i;return L().w(function(e){for(;;)if(0===e.n)return n=t.baseUrl,r=t.user,o=t.triggerShowLoader,a=t.tab_form_template_id,t.eventItem,(i={}).domain=n,i.endPoint=s.p.GET_DEFAULT_FORM_EVENT_DETAILS.replace(\"__FORM_ID__\",\"\".concat(a)),i.customHeaders={\"country-code\":r.selectedCountry.countryCode,Authorization:\"Bearer \".concat(r.AccessToken)},i.triggerLoader=o,e.a(2,(0,O.Sj)(i))},e)}));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=x(L().m(function e(t){var n,r,o,a,i,l;return L().w(function(e){for(;;)if(0===e.n)return n=t.baseUrl,r=t.user,o=t.triggerShowLoader,a=t.tab_form_template_id,i=t.eventItem,(l={}).domain=n,l.endPoint=a===N.GROWERS||a===N.RETAILERS?s.p.GET_GROWERS_FORM.replace(\"__FORM_ID__\",\"\".concat(a)):s.p.GET_EVENT_DETAILS.replace(\"__SUB_TYPE_ID__\",\"\".concat(null==i?void 0:i.id)),l.customHeaders={\"country-code\":r.selectedCountry.countryCode,Authorization:\"Bearer \".concat(r.AccessToken),\"bu-id\":r.selectedBusinessUnit.bu_id},l.payLoad={form_id:a},l.triggerLoader=o,e.a(2,(0,O.Sj)(l))},e)}));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=x(L().m(function e(t){var n,r,o;return L().w(function(e){for(;;)if(0===e.n)return n=t.user,r=t.baseUrl,o=t.triggerShowLoader,e.a(2,T(n,r,o,\"cropsData\"))},e)}));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=x(L().m(function e(t){var n,r,o,a;return L().w(function(e){for(;;)if(0===e.n)return n=t.baseUrl,r=t.user,o=t.triggerShowLoader,(a={}).domain=n,a.endPoint=s.p.SAVESALEHIERARCHY,a.customHeaders={\"country-code\":r.selectedCountry.countryCode,Authorization:\"Bearer \".concat(r.AccessToken),\"bu-id\":r.selectedBusinessUnit.bu_id},a.payLoad={page_size:50},a.triggerLoader=o,e.a(2,(0,S.LJ)(a))},e)}));return function(t){return e.apply(this,arguments)}}(),H=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.map(function(e,o){var a,i;return{page_category:e.page_category,isExpand:0===o,form_field_configuration_dto_list:null!==(a=(null==e||null===(i=e.form_field_configuration_dto_list)||void 0===i?void 0:i.length)>0&&(null==e?void 0:e.form_field_configuration_dto_list.map(function(e){var o,a;return{form_template_id:e.form_template_id,field_name:e.field_name,form_field_configuration_id:e.form_field_configuration_id,field_unique_id:e.field_unique_id,event_type_id:(t===N.EVENTS||r)&&n&&(null===(o=Object.keys(n))||void 0===o?void 0:o.length)>0?null==n?void 0:n.id:e.event_type,is_required:e.is_required,is_visible:e.is_visible,label:null==e?void 0:e.label,is_editable:e.is_editable,control_type:e.control_type,validations:null!==(a=null==e?void 0:e.validations)&&void 0!==a?a:[]}})))&&void 0!==a?a:[]}}).filter(function(e){return e.form_field_configuration_dto_list})},U=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e.map(function(e){return t.forEach(function(t){e.page_category===t.page_category&&e.form_field_configuration_dto_list.forEach(function(e){return t.form_field_configuration_dto_list.forEach(function(t){e.form_template_id===t.form_template_id&&(e.event_type_id=(n===N.EVENTS||o)&&r?null==r?void 0:r.id:t.event_type_id,e.form_field_configuration_id=t.form_field_configuration_id,e.is_required=t.is_required,e.is_visible=t.is_visible,e.is_editable=t.is_editable,e.label=null==t?void 0:t.label,e.validations=t.validations)}),e})}),e})},Y=(n(46449),n(93514),function(e,t){var n;if(!e||0===e.length)return\"0\";var r=e.find(function(e){return e.validation_type===t});return null!==(n=null==r?void 0:r.validation_value)&&void 0!==n?n:\"0\"}),G=function(e){return e===N.EVENTS?\"Events\":e===N.GROWERS?\"Growers\":e===N.RETAILERS?\"Retailers\":e===N.RETAILERS_SOW?\"Retailer SOW\":e===N.DEMO_TRACKING?\"Demo Tracking\":e===N.PRODUCT_DEMO_TRACKING?\"Product Demo Tracking\":\"Geo\"},z=function(e,t,n,r){return t===N.RETAILERS_SOW?n.id:t===N.DEMO_TRACKING?r.id:e.event_type_id},V=n(8239),q=n(79043),W=n(15664),Q=n(51545),K=n(15407),$=n(10901),X=n(19021),J=/^(?!.*[-+])\\d{0,5}$/,Z=(0,a.memo)(function(e){var t,n,l=e.formTodoItem,s=e.addFieldHandler,u=void 0===s?function(){}:s,c=e.keepMandatoryHandler,d=void 0===c?function(){}:c,f=e.editableHandler,g=void 0===f?function(){}:f,h=e.minValidationHandler,m=void 0===h?function(){}:h,A=e.maxValidationHandler,E=void 0===A?function(){}:A,b=e.isConfigEnable,_=void 0!==b&&b,C=e.isEditableRequired,w=void 0!==C&&C,S=function(){var e,t,n=(0,a.useContext)(p.v).BackOfficeProps.globalStore.User,r=null!==(e=null==n||null===(t=n.selectedBusinessUnit)||void 0===t?void 0:t.bu_code)&&void 0!==e?e:\"\",o=\"veg\"===r.toLowerCase(),i=\"fc\"===r.toLowerCase(),l=\"cp\"===r.toLowerCase();return{buCode:r,isVegBU:o,isFCBU:i,isCPBU:l}}(),T=S.isCPBU,O=S.isFCBU,D=S.isVegBU,R=Y(null==l?void 0:l.validations,\"MIN_LENGTH\"),N=Y(null==l?void 0:l.validations,\"MAX_LENGTH\"),L=Number(R)>Number(N),P=Number(N)<Number(R),M=\"NUMERICAL\"===(null===(t=l.control_type)||void 0===t?void 0:t.toUpperCase())||\"FREE_TEXT\"===(null===(n=l.control_type)||void 0===n?void 0:n.toUpperCase()),x=(15===l.field_unique_id||236===l.field_unique_id)&&(D||O||T);return i().createElement(V.Ay,{container:!0,columns:{xs:12,lg:12,xl:12},p:1,alignItems:\"center\"},i().createElement(V.Ay,{item:!0,xs:4},i().createElement(v.A,{fontSize:14},l.field_name)),i().createElement(V.Ay,{item:!0,xs:4},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"center\",gap:5},i().createElement($.A,{isChecked:l.is_visible,value:l.form_template_id,onCheckboxChange:function(){return u(l)},disabled:!_,customClassName:_?\" \":\"disabled-field\"}),w&&i().createElement($.A,{isChecked:l.is_editable,value:l.form_template_id,onCheckboxChange:function(){return g(l)},disabled:!_,customClassName:_?\" \":\"disabled-field\"}),i().createElement($.A,{isChecked:l.is_required,value:l.form_template_id,onCheckboxChange:function(){return d(l)},disabled:!_,customClassName:_?\" \":\"disabled-field\"}))),M&&i().createElement(V.Ay,{item:!0,xs:2,textAlign:\"end\"},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"start\",alignItems:\"center\",gap:4.5},i().createElement(r.A,{className:\"form-config-input \".concat(L?\"invalid-textfield\":\"\")},i().createElement(X.A,{label:\"\",customPlaceholder:\"123\",onHandleChange:function(e){J.test(e)&&m(e,l)},value:R,disabled:!_,customClassName:_?\" \":\"disabled-field\"}),i().createElement(v.A,{component:\"span\",className:\"error-tool-tip\"},(0,y.t)(\"MIN_GREATER_THAN_MAX\"))),i().createElement(r.A,{className:\"form-config-input \".concat(P?\"invalid-textfield\":\"\")},i().createElement(X.A,{label:\"\",customPlaceholder:\"123\",onHandleChange:function(e){J.test(e)&&E(e,l)},value:N,disabled:!_,customClassName:_?\" \":\"disabled-field\"}),i().createElement(v.A,{component:\"span\",className:\"error-tool-tip\"},(0,y.t)(\"MIN_GREATER_THAN_MAX\"))))),i().createElement(V.Ay,{item:!0,xs:2},x&&i().createElement(v.A,{fontSize:10,fontStyle:\"italic\",color:\"text.secondary\",textAlign:\"left\",lineHeight:1.5,maxWidth:160,pl:1},(0,y.t)(\"GROWER_COUNT_NUMERICAL_MESSAGE\"))))});const ee=function(e){var t=e.formTodoList,n=void 0===t?[]:t,o=e.addFieldHandler,a=void 0===o?function(){}:o,l=e.keepMandatoryHandler,s=void 0===l?function(){}:l,u=e.editableHandler,c=void 0===u?function(){}:u,d=e.minValidationHandler,p=void 0===d?function(){}:d,f=e.maxValidationHandler,g=void 0===f?function(){}:f,h=e.isConfigEnable,m=void 0!==h&&h,v=e.isEditableRequired,A=void 0!==v&&v;return i().createElement(r.A,{className:\"event-details-items-wrapper\"},i().createElement(r.A,{className:\"smart-agro-lite-box-conatiner\"},n.length>0&&n.map(function(e,t){return i().createElement(Z,{key:\"form-item-todo-list-\".concat(e.field_name,\"-\").concat(e.field_name),formTodoItem:e,addFieldHandler:a,editableHandler:c,keepMandatoryHandler:s,minValidationHandler:p,maxValidationHandler:g,isConfigEnable:m,isEditableRequired:A})})))};var te=function(e){var t=e.formTodoData,n=void 0===t?[]:t,r=e.onAccordionHandleChange,o=void 0===r?function(){}:r,a=e.addFieldHandler,l=void 0===a?function(){}:a,s=e.editableHandler,u=void 0===s?function(){}:s,c=e.keepMandatoryHandler,d=void 0===c?function(){}:c,p=e.minValidationHandler,f=void 0===p?function(){}:p,g=e.maxValidationHandler,h=void 0===g?function(){}:g,m=e.isConfigEnable,A=void 0===m||m,y=e.isEditableRequired,E=void 0!==y&&y;return i().createElement(Q.A,null,n.length>0&&n.map(function(e){return i().createElement(i().Fragment,null,e.form_field_configuration_dto_list.length>0&&i().createElement(K.A,{isExpand:e.isExpand,handleChange:o,accordionKey:e.page_category,key:\"form-accordion-\".concat(e.page_category,\"-\").concat(e.page_category),accordionSummary:i().createElement(v.A,null,D[\"\".concat(e.page_category)]),accordionDetails:i().createElement(i().Fragment,null,(null==e?void 0:e.form_field_configuration_dto_list.length)>0&&i().createElement(ee,{key:\"event-form-todo-list-\".concat(e.page_category,\"-\").concat(e.page_category),formTodoList:e.form_field_configuration_dto_list,addFieldHandler:function(t){return l(t,e.page_category)},keepMandatoryHandler:function(t){return d(t,e.page_category)},editableHandler:function(t){return u(t,e.page_category)},minValidationHandler:function(t,n){return f(t,n,e.page_category)},maxValidationHandler:function(t,n){return h(t,n,e.page_category)},isConfigEnable:A,isEditableRequired:E}))}))}))},ne=n(6398);function re(e){return re=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},re(e)}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=re(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==re(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=function(e){return{\"& .invalid-textfield\":{position:\"relative\",\"& .MuiInputBase-root\":{borderColor:\"\".concat(e.palette.error.main,\" !important\"),backgroundColor:\"\".concat(e.palette.secondary.dark,\" !important\"),boxShadow:\"0 0 1px 1px \".concat(e.palette.error.main)},\"& .error-tool-tip\":{position:\"absolute\",top:\"40px\",left:\"0px\",backgroundColor:e.palette.secondary.dark,color:\"\".concat(e.palette.error.main),boxShadow:\"1px 1px 20px 0px \".concat(e.palette.grey[100]),padding:\"5px\",borderRadius:\"10px\",minWidth:\"180px\",zIndex:\"1000\",\"&::after\":{content:\"''\",position:\"absolute\",top:\"-18px\",left:\"5px\",borderWidth:\"10px\",borderStyle:\"solid\",borderColor:\"transparent  transparent \".concat(e.palette.secondary.dark,\" transparent\"),zIndex:\"1000\"}},\"&:hover\":{\"& .error-tool-tip\":{display:\"block\"}}}}},se=(0,ne.A)({tabContainerHelper:{paddingLeft:16,\"& .MuiTabs-scroller\":{overflowX:\"auto !important\",\"::-webkit-scrollbar\":{display:\"none\"}}},tabHelper:{textTransform:\"none !important\"},activeTab:{fontWeight:\"600 !important\"},FormConfig:{display:\"flex\",alignItems:\"start\",justifyContent:\"space-between\",height:\"calc(100vh - 215px)\",\"& .btn-icon\":{fontSize:\"14px !important\"}},EventsTypeContainer:{width:\"25%\",maxWidth:\"252px\",height:\"100%\",overflowY:\"auto\",borderRight:\"1px solid \".concat(E.w.palette.grey[800]),scrollbarWidth:\"thin\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .smart-agro-lite-event-type-header\":{color:E.T.textColor,padding:\"16px\",lineHeight:\"20px\",position:\"sticky\",backgroundColor:E.w.palette.secondary.main,top:\"0px\",zIndex:\"1\",borderBottom:\"1px solid \".concat(E.w.palette.grey[800])},\"& .MuiList-root\":{paddingTop:\"0px\",color:E.T.textColor,overflowY:\"auto\",\"& .MuiListItem-root\":{borderTop:\"1px solid \".concat(E.w.palette.grey[800]),display:\"flex\",alignItems:\"center\",overflow:\"hidden\",padding:\"0px\",\"& .smart-agro-lite-link\":{fontSize:\"14px\",color:E.T.textColor,fontWeight:\"600\",lineHeight:\"20px\",width:\"100%\",padding:\"16px\",textDecoration:\"none\",display:\"-webkit-box\",\"-webkit-line-clamp\":2,overflow:\"hidden\",textOverflow:\"ellipsis\"},\"&.active-link\":{backgroundColor:E.T.accordianBg},\"&:hover\":{backgroundColor:E.T.accordianBg},\"& .MuiButtonBase-root\":{whiteSpace:\"normal\",textAlign:\"left\",width:\"100%\",\"&:hover\":{backgroundColor:\"transparent\"}}}}},EventDetails:ae({width:\"85%\",padding:\"8px !important\",height:\"calc(100vh - 230px)\",\"& .MuiAccordion-root\":{marginBottom:\"16px\",border:\"none\"},\"& .Smart-agro-lite-event-details-wrapper\":{height:\"calc(100vh - 360px)\",overflowY:\"auto\",overflowX:\"hidden\",marginBottom:\"16px\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiAccordionSummary-root\":{padding:\"8px 16px !important\"},\"& .MuiButtonBase-root.MuiAccordionSummary-root\":{flexDirection:\"inherit !important\",backgroundColor:E.T.accordianBg},\"& .MuiPaper-root\":{padding:\"0px  !important\",border:\"none\"},\"& .smart-agro-lite-box-conatiner\":{width:\"100%\",padding:\"8px\",\"& .MuiGrid-container\":{\"& .MuiGrid-item:nth-child(odd)\":{},\"& .MuiFormControlLabel-root\":{marginLeft:\"0px\"}},\"& .form-item:not(:last-child)\":{borderBottom:\"1px solid \".concat(E.w.palette.secondary.light)}}},\"& .MuiAccordionSummary-root\":{flexDirection:\"inherit !important\"},\"& .MuiAccordionDetails-root\":{padding:\"0px 16px 0px 16px !important\"},\"& .divider-wrapper\":{paddingTop:\"8px\",height:\"200px\",alignSelf:\"start\",\"& .MuiDivider-root\":{borderColor:\"\".concat(E.w.palette.grey[800])}},\"& .smart-agro-lite-event-details-footer\":{paddingTop:\"16px\",borderTop:\"1px solid \".concat(E.w.palette.grey[800])},\"& .form-config-input\":{width:\"48px\",\"& .MuiInputBase-root\":{backgroundColor:E.w.palette.secondary.light,height:\"32px !important\"},\"& .error-tool-tip\":{display:\"none\"}}},le(E.w))}),ue=(0,ne.A)({GrowerDetails:ae({width:\"100%\",padding:\"8px !important\",paddingBottom:\"0px !important\",height:\"calc(100vh - 230px)\",\"& .MuiAccordion-root\":{marginBottom:\"16px\",border:\"none\"},\"& .Smart-agro-lite-event-details-wrapper\":{height:\"calc(100vh - 340px)\",overflowY:\"auto\",overflowX:\"hidden\",marginBottom:\"16px\",borderBottom:\"1px solid \".concat(E.w.palette.grey[800]),\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiAccordionSummary-root\":{padding:\"8px 16px !important\"},\"& .MuiButtonBase-root.MuiAccordionSummary-root\":{flexDirection:\"inherit !important\",backgroundColor:E.T.accordianBg},\"& .MuiPaper-root\":{padding:\"0px  !important\",border:\"none\",marginBottom:\"12px\",\"& .MuiGrid-container\":{\"&.MuiGrid-item:nth-child(even)\":{borderLeft:\"1px solid \".concat(E.T.borderGreyList)}}},\"& .MuiGrid-container\":{\"& .MuiGrid-item:first-child\":{},\"& .MuiFormControlLabel-root\":{marginLeft:\"0px\"}},\"& .smart-agro-lite-box-conatiner\":{width:\"100%\",padding:\"8px\",\"& .form-item\":{borderBottom:\"1px solid \".concat(E.w.palette.secondary.light)}}},\"& .MuiAccordionSummary-root\":{flexDirection:\"inherit !important\"},\"& .MuiAccordionDetails-root\":{padding:\"0px 16px 0px 16px !important\"},\"& .divider-wrapper\":{paddingTop:\"8px\",height:\"200px\",alignSelf:\"start\",\"& .MuiDivider-root\":{borderColor:\"\".concat(E.w.palette.grey[800])}},\"& .smart-agro-lite-event-details-footer\":{},\"& .form-config-input\":{width:\"48px\",\"& .MuiInputBase-root\":{backgroundColor:E.w.palette.secondary.light,height:\"32px !important\"},\"& .error-tool-tip\":{display:\"none\"},\"& .MuiInputBase-input\":{MozAppearance:\"textfield\",\"&::-webkit-outer-spin-button\":{\"-webkit-appearance\":\"none\"},\"&::-webkit-inner-spin-button\":{\"-webkit-appearance\":\"none\"}}}},le(E.w))});function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const de=function(e){var t,n,l=e.form_tab_id,s=e.formTodoData,u=e.selectedEventTypes,c=e.onAccordionHandleChange,d=e.addFieldHandler,p=e.keepMandatoryHandler,f=e.editableHandler,g=e.minValidationHandler,h=e.maxValidationHandler,m=e.maxFilesValidationHandler,A=e.fileTypeValidationHandler,b=e.hasCreateAccess,_=e.hasUpdateAccess,C=e.refreshEventDetails,w=e.setVisible,S=e.isValidForm,T=e.isVisible,O=e.saveEventsConfigurationForm,D=e.saveGrowersConfigurationForm,R=se(),L=ue(),P=(t=(0,a.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return ce(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),M=P[0],x=P[1];return console.log(\"selectedEventTypes\",u),i().createElement(i().Fragment,null,i().createElement(r.A,{className:l===N.GROWERS||N.RETAILERS?L.GrowerDetails:R.EventDetails,p:2},s.length>0?i().createElement(V.Ay,{container:!0,columns:{xs:12},p:.5},i().createElement(V.Ay,{item:!0,xs:4},i().createElement(v.A,{variant:\"h1\",fontSize:18,fontWeight:600,color:E.T.textColor},null==u?void 0:u.name)),i().createElement(V.Ay,{item:!0,xs:4},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"space-between\",gap:2},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"space-between\",gap:2},i().createElement(v.A,{fontSize:14,ml:1},\"\".concat((0,y.t)(\"ADD_FIELD\"))),l===N.RETAILERS_SOW&&i().createElement(v.A,{fontSize:14,ml:1},(0,y.t)(\"EDITABLE\")),i().createElement(v.A,{fontSize:14},(0,y.t)(\"KEEP_MANDATORY\"))))),i().createElement(V.Ay,{item:!0,xs:2,textAlign:\"end\"},i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"start\",gap:7},i().createElement(v.A,{fontSize:14},(0,y.t)(\"MIN\")),i().createElement(v.A,{fontSize:14},(0,y.t)(\"MAX\")))),i().createElement(V.Ay,{item:!0,xs:2,textAlign:\"end\"},!M&&i().createElement(W.A,{onButtonClick:function(){return x(!0)},variant:\"contained\",startIcon:i().createElement(\"span\",{className:\"icon-pencil btn-icon\"}),buttonName:(0,y.t)(\"EDIT\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:b&&_}))):i().createElement(i().Fragment,null),i().createElement(r.A,{className:\"Smart-agro-lite-event-details-wrapper\"},s.length>0?i().createElement(te,{formTodoData:s,onAccordionHandleChange:c,addFieldHandler:d,keepMandatoryHandler:p,editableHandler:f,minValidationHandler:g,maxValidationHandler:h,maxFilesValidationHandler:m,fileTypeValidationHandler:A,isConfigEnable:M,isEditableRequired:l===N.RETAILERS_SOW}):i().createElement(i().Fragment,null)),M&&i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},i().createElement(o.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},i().createElement(W.A,{buttonName:(0,y.t)(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){l!==N.GROWERS&&l!==N.RETAILERS||C(l),x(!1)}}),i().createElement(W.A,{buttonName:(0,y.t)(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){w(!0)},disabled:b&&_||S})))),T&&i().createElement(q.B,{isVisible:T,message:\"The previous configuration for \".concat(G(l),\" form will be updated with new configuration, please confirm.\"),onRequestClose:function(){l!==N.GROWERS&&l!==N.RETAILERS||C(l),w(!1)},onButtonClick:function(){S||(l===N.EVENTS||l===N.RETAILERS_SOW||l===N.DEMO_TRACKING||l===N.PRODUCT_DEMO_TRACKING?(O(),x(!1)):l!==N.GROWERS&&l!==N.RETAILERS||(D(),x(!1)))}}))};function pe(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||ge(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ge(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ge(e,t){if(e){if(\"string\"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const me=function(e){var t=e.data,n=void 0===t?[]:t,r=e.selectedEventTypes,o=e.form_tab_id,l=void 0===o?N.EVENTS:o,u=e.refreshEventDetails,c=void 0===u?function(){}:u,d=e.hasCreateAccess,f=void 0!==d&&d,g=e.hasUpdateAccess,h=void 0!==g&&g,m=e.selectedUserRole,v=void 0===m?{}:m,A=e.selectedCrop,y=void 0===A?{}:A,E=(0,a.useContext)(p.v),b=E.BackOfficeProps,_=b.globalStore.User,C=b.baseurl,w=E.triggerShowLoader,S=E.triggerToastMsg,T=fe((0,a.useState)(n),2),D=T[0],R=T[1],L=fe((0,a.useState)(!1),2),P=L[0],M=L[1];(0,a.useEffect)(function(){R(n)},[n]);var x=(0,a.useMemo)(function(){return function(e){return e.length>0&&(null==e?void 0:e.some(function(e){var t;return(null==e?void 0:e.form_field_configuration_dto_list.length)>0&&(null==e||null===(t=e.form_field_configuration_dto_list)||void 0===t?void 0:t.some(function(e){var t=Y(null==e?void 0:e.validations,\"MIN_LENGTH\"),n=Y(null==e?void 0:e.validations,\"MAX_LENGTH\"),r=Number(t)>Number(n),o=Number(n)<Number(t);return!(!r&&!o)}))}))}(D)},[D]);return i().createElement(de,{form_tab_id:l,formTodoData:D,selectedEventTypes:r,onAccordionHandleChange:function(e){R(pe(D).map(function(t){return t.page_category===e?t.isExpand=!t.isExpand:t.isExpand=!1,t}))},addFieldHandler:function(e,t){var n=pe(D).map(function(n){return n.page_category===t&&n.form_field_configuration_dto_list.forEach(function(t){return t.form_template_id===e.form_template_id&&(t.is_visible=!t.is_visible,t.is_required=!1,t.is_editable=!1),t}),n});R(n)},keepMandatoryHandler:function(e,t){var n=pe(D).map(function(n){return n.page_category===t&&n.form_field_configuration_dto_list.forEach(function(t){return t.form_template_id===e.form_template_id&&(t.is_required=!t.is_required,t.is_visible=!0),t}),n});R(n)},editableHandler:function(e,t){var n=pe(D);n.forEach(function(n){n.page_category===t&&n.form_field_configuration_dto_list.forEach(function(t){t.form_template_id===e.form_template_id&&(t.is_editable=!t.is_editable,t.is_visible=!0)})}),R(n)},minValidationHandler:function(e,t,n){var r=pe(D).map(function(r){return r.page_category===n&&r.form_field_configuration_dto_list.forEach(function(n){if(n.form_template_id===t.form_template_id){var r,o,a=n.validations&&n.validations.length>0&&(null===(r=n.validations)||void 0===r?void 0:r.filter(function(e){return\"MIN_LENGTH\"===e.validation_type}).length)>0;if(0!==(null===(o=n.validations)||void 0===o?void 0:o.length)&&a){if(a){var i;null==n||null===(i=n.validations)||void 0===i||i.map(function(t){return\"MIN_LENGTH\"===t.validation_type&&(t.validation_value=e),t})}}else{var l,s={validation_id:null,validation_type:\"MIN_LENGTH\",validation_value:e};null===(l=n.validations)||void 0===l||l.push(s)}}return n}),r});R(r)},maxValidationHandler:function(e,t,n){var r=pe(D).map(function(r){return r.page_category===n&&r.form_field_configuration_dto_list.forEach(function(n){if(n.form_template_id===t.form_template_id){var r,o,a=(null==n?void 0:n.validations)&&n.validations.length>0&&(null===(r=n.validations)||void 0===r?void 0:r.filter(function(e){return\"MAX_LENGTH\"===e.validation_type}).length)>0;if(0!==(null===(o=n.validations)||void 0===o?void 0:o.length)&&a){if(a){var i;null==n||null===(i=n.validations)||void 0===i||i.map(function(t){return\"MAX_LENGTH\"===t.validation_type&&(t.validation_value=e),t})}}else{var l={validation_id:null,validation_type:\"MAX_LENGTH\",validation_value:e};n.validations.push(l)}}return n}),r});R(r)},hasCreateAccess:f,hasUpdateAccess:h,refreshEventDetails:c,setVisible:M,isValidForm:x,isVisible:P,saveEventsConfigurationForm:function(){M(!1);var e={};e.domain=C,e.endPoint=s.p.SAVE_FORM_EVENT_CONFIGURATION,e.customHeaders={\"user-id\":_.UserDetails.user_id,\"country-code\":_.selectedCountry.countryCode,Authorization:\"Bearer \".concat(_.AccessToken),\"bu-id\":_.selectedBusinessUnit.bu_id},e.triggerLoader=w;var t=D.map(function(e){return e.form_field_configuration_dto_list}).flat().map(function(e){return{form_field_configuration_id:e.form_field_configuration_id,event_type_id:z(e,l,v,y),is_visible:e.is_visible,is_editable:l===N.RETAILERS_SOW?e.is_editable:null,is_required:e.is_required,form_template_id:e.form_template_id,form_validation:e.validations,label:null==e?void 0:e.label}});return e.payLoad=t,(0,O.VY)(e).then(function(e){var t;(0,O.ZX)(e.status)?(c(r),S({type:\"success\",message:e.data})):S({type:\"error\",message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage})}).catch(function(e){console.log(\"Save Form Failed \".concat(e))})},saveGrowersConfigurationForm:function(){M(!1);var e={};e.domain=C,e.endPoint=s.p.SAVE_FORM_EVENT_CONFIGURATION,e.customHeaders={\"user-id\":_.UserDetails.user_id,\"country-code\":_.selectedCountry.countryCode,Authorization:\"Bearer \".concat(_.AccessToken),\"bu-id\":_.selectedBusinessUnit.bu_id},e.triggerLoader=w;var t=D.map(function(e){return e.form_field_configuration_dto_list}).flat().map(function(e){return{form_field_configuration_id:e.form_field_configuration_id,event_type_id:null,is_visible:e.is_visible,is_required:e.is_required,form_template_id:e.form_template_id,form_validation:e.validations,label:null==e?void 0:e.label}});return e.payLoad=t,(0,O.VY)(e).then(function(e){var t;(0,O.ZX)(e.status)?(c(r),S({type:\"success\",message:e.data})):S({type:\"error\",message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage})}).catch(function(e){console.log(\"Save Form Failed \".concat(e))})}})};var ve=n(49799),Ae=n(12794);const ye=function(e){var t=e.data,n=void 0===t?[]:t,o=e.onChangeEventTypes,a=void 0===o?function(){}:o,l=e.selectedEventTypes,s=e.headerName;console.log(\"events\",n);var u=se();return i().createElement(r.A,{className:u.EventsTypeContainer},s&&i().createElement(v.A,{variant:\"h1\",fontSize:18,fontWeight:600,className:\"smart-agro-lite-event-type-header\"},s),i().createElement(ve.A,null,n.length>0&&n.filter(function(e){return e.is_active}).map(function(e){return i().createElement(Ae.Ay,{key:e.id},i().createElement(Ae.Ay,{key:e.id,className:\"smart-agro-lite-link \".concat(e.id===(null==l?void 0:l.id)?\"active-link\":\"\")},i().createElement(W.A,{buttonName:e.name,onButtonClick:function(){a(e)}})))})))};function Ee(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return be(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(be(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,be(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,be(d,\"constructor\",u),be(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",be(u,o,\"GeneratorFunction\"),be(d),be(d,o,\"Generator\"),be(d,r,function(){return this}),be(d,\"toString\",function(){return\"[object Generator]\"}),(Ee=function(){return{w:a,m:p}})()}function be(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}be=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){be(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},be(e,t,n,r)}function _e(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ce(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){_e(a,r,o,i,l,\"next\",e)}function l(e){_e(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Te=function(e){var t,n,o=e.RBACControls,l=e.isEnabledProductDemoTracking,s=(0,b.w)(o),u=s.hasCreateAccess,c=s.hasUpdateAccess,d=se(),f=new URLSearchParams(location.search),g=Number(f.get(\"tabid\")),h=(null!==(t=f.get(\"tabname\"))&&void 0!==t?t:\"\").toLowerCase().trim()===R.PRODUCT_DEMO_TRACKING.toLowerCase(),m=g===N.EVENTS||h,S=(0,a.useContext)(p.v),T=S.BackOfficeProps,O=T.globalStore.User,D=T.baseurl,L=S.triggerShowLoader,P=S.triggerToastMsg,M=we((0,a.useState)([]),2),x=M[0],Y=M[1],G=we((0,a.useState)([]),2),z=G[0],V=G[1],q=we((0,a.useState)({}),2),W=q[0],Q=q[1],K=we((0,a.useState)([]),2),$=K[0],X=K[1],J=we((0,a.useState)(null),2),Z=J[0],ee=J[1],te=we((0,a.useState)(!1),2),ne=te[0],re=te[1],oe=we((0,a.useState)([]),2),ae=oe[0],ie=oe[1],le=we((0,a.useState)(\"\"),2),ue=le[0],ce=le[1];(0,a.useEffect)(function(){Y([]),X([]),ee(null),V([]),Q({}),g===N.DEMO_TRACKING?ge():g===N.RETAILERS_SOW?he():m?de():(g===N.GROWERS||N.RETAILERS)&&pe()},[g,m,l]),(0,a.useEffect)(function(){m&&Z?pe(Z):ue&&g===N.RETAILERS_SOW?pe(ue):null!=W&&W.id&&g===N.DEMO_TRACKING&&pe(W)},[Z,ue,W,m]);var de=function(){var e=Ce(Ee().m(function e(){var t,n,r;return Ee().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,I({baseUrl:D,user:O,triggerShowLoader:L});case 1:(t=e.v)&&t.length>0&&(n=t.filter(function(e){var n,r=null!==(n=null==e?void 0:e.event_master_type_code)&&void 0!==n?n:null==e?void 0:e.code;return h?\"DA\"===r:\"DA\"!==r&&!(\"CP\"===(null==O?void 0:O.selectedBusinessUnit.bu_code)&&l&&null!=t&&t.some(function(t){var n;return\"DA\"===(null!==(n=null==t?void 0:t.event_master_type_code)&&void 0!==n?n:null==t?void 0:t.code)&&(null==t?void 0:t.parent_id)===(null==e?void 0:e.id)}))}),r=n.map(function(e){return{id:e.id,code:e.code,name:e.name,is_active:e.is_active}}),Y(r));case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=Ce(Ee().m(function e(t){return Ee().w(function(e){for(;;)switch(e.n){case 0:ee(null!=t?t:null),k({baseUrl:D,user:O,triggerShowLoader:L,tab_form_template_id:g,eventItem:t}).then(function(){var e=Ce(Ee().m(function e(n){var r,o,a,i,l,s;return Ee().w(function(e){for(;;)switch(e.n){case 0:if(!((0,_.ge)(n.status)&&(null==n?void 0:n.data.length)>0)){e.n=5;break}return o=H(n.data,g,Z,m),e.n=1,fe(t);case 1:if(l=r=e.v,!(i=null!==l)){e.n=2;break}i=void 0!==r;case 2:if(!i){e.n=3;break}s=r,e.n=4;break;case 3:s=[];case 4:a=U(o,s,g,Z,m),X(a);case 5:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=Ce(Ee().m(function e(t){return Ee().w(function(e){for(;;)if(0===e.n)return e.a(2,B({baseUrl:D,user:O,triggerShowLoader:L,tab_form_template_id:g,eventItem:t}).then(function(e){var t=[];return(0,_.ge)(e.status)&&(null==e?void 0:e.data.length)>0?(re(!0),t=H(e.data,g,Z,m)):re(!1),t}).catch(function(e){console.log(\"events form err\",e)}))},e)}));return function(t){return e.apply(this,arguments)}}(),ge=function(){var e=Ce(Ee().m(function e(){return Ee().w(function(e){for(;;)switch(e.n){case 0:F({user:O,baseUrl:D,triggerShowLoader:L}).then(function(e){var t;if(e.data.length>0){var n=e.data.map(function(e){return{id:e.id,value:e.code,label:e.name}});return V(n),void Q(n[0])}throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage)}).catch(function(e){P({message:e.message,type:\"error\"})});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=Ce(Ee().m(function e(){return Ee().w(function(e){for(;;)switch(e.n){case 0:j({baseUrl:D,user:O,triggerShowLoader:L}).then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.sales_hierarchy_view_List.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.sales_hierarchy_view_List.map(function(e){return{id:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.name}});ie(r),ce(r[0])}}).catch(function(e){});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return i().createElement(i().Fragment,null,g===N.DEMO_TRACKING&&i().createElement(r.A,{mt:1,width:\"30%\"},i().createElement(v.A,{variant:\"body1\",fontWeight:500,mb:1},(0,y.t)(\"PUBLISH_DEMO_TRACKING\")),i().createElement(v.A,{variant:\"body1\",fontWeight:700},(0,y.t)(\"SELECT_CROP\")),i().createElement(w.A,{name:\"crop\",onHandleChange:function(e){return Q(e)},options:z,label:(0,y.t)(\"SELECT_CROP\"),value:null!==(n=W.label)&&void 0!==n?n:\"\"})),g===N.RETAILERS_SOW&&i().createElement(r.A,{mb:1,mt:1,width:\"20%\"},i().createElement(v.A,{variant:\"subtitle2\"},(0,y.t)(\"USER_ROLE_DROPDOWN_LABEL\")),i().createElement(C.A,{name:\"userRole\",onChange:function(e,t){return ce(t)},options:ae,labelKey:\"label\",label:\"UserRole\",selectedOption:ue,value:ue,defaultLabel:\"Select Role\"})),i().createElement(v.A,{variant:\"body1\",color:E.w.palette.grey[900],fontSize:14,p:1},g===N.EVENTS&&(0,y.t)(\"PUBLISH_EVENTS_TYPES\"),g===N.GROWERS&&(0,y.t)(\"PUBLISH_GROWERS\"),g===N.RETAILERS&&(0,y.t)(\"PUBLISH_RETAILERS\"),g===N.PRODUCT_DEMO_TRACKING&&(0,y.t)(\"PUBLISH_SIDE_HEADER_PRODUCT\")),i().createElement(A.A,{className:d.FormConfig},m&&x.length>0&&i().createElement(ye,{data:x,selectedEventTypes:Z,onChangeEventTypes:function(e){ee(e)},headerName:h?(0,y.t)(\"PRODUCT_DEMO_TYPES\"):(0,y.t)(\"EVENT_TYPES\")}),$.length>0&&i().createElement(me,{data:$,selectedEventTypes:Z,isUpdateConfig:ne,refreshEventDetails:pe,form_tab_id:g,hasCreateAccess:!u,hasUpdateAccess:!c,selectedUserRole:ue,selectedCrop:W})))};function Oe(e){return Oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Oe(e)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach(function(t){Ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ne(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Me=function(e){var t=e.RBACControls,n=(0,l.zy)(),v=new URLSearchParams(n.search),A=v.get(\"tabname\"),y=v.get(\"tabid\"),E=(0,a.useContext)(p.v),b=E.BackOfficeProps,_=b.globalStore.User,C=b.baseurl,w=E.triggerShowLoader,S=Le(i().useState({tablist:[],currentTabs:\"/\"}),2),T=S[0],D=S[1],L=Le(i().useState(!1),2),P=L[0],M=L[1];(0,a.useEffect)(function(){x()},[P]),(0,a.useEffect)(function(){A&&D(function(e){return Re(Re({},e),{},{currentTabs:A})})},[A,T.tablist]);var x=function(){var e={};return e.domain=C,e.endPoint=s.p.GET_FORM_TABS,e.customHeaders={\"country-code\":_.selectedCountry.countryCode,Authorization:\"Bearer \".concat(_.AccessToken)},e.triggerLoader=w,(0,O.QX)(e).then(function(e){if(e.forms.length>0){var n=e.forms.map(function(e){return{id:e.form_id,tabName:R[e.form_name],path:\"\".concat(R[e.form_name]).toLowerCase(),component:e.form_id!==N.GEO?i().createElement(Te,{RBACControls:t,isEnabledProductDemoTracking:P}):i().createElement(i().Fragment,null),queryParam:{tabname:\"\".concat(R[e.form_name]).toLowerCase(),tabid:e.form_id}}});return function(e){var t={apiName:u.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS,moduleName:u.Rk.DEMO_TRACKING,keys:[u.Rk.DEMO_TRACKING_CONFIGURATION_KEY,u.Rk.PRODUCT_DEMO_TRACKING_CONFIGURATION_KEY]};(0,d.j)((0,f.rZ)(_,C),w,t).then(function(t){var n,r,o=\"true\"===(null===(n=(0,f.Ws)(u.Rk.DEMO_TRACKING_CONFIGURATION_KEY,t))||void 0===n?void 0:n.value),a=\"true\"===(null===(r=(0,f.Ws)(u.Rk.PRODUCT_DEMO_TRACKING_CONFIGURATION_KEY,t))||void 0===r?void 0:r.value);M(a);var i=e.filter(function(e){return(o||e.tabName!==R.DEMO_TRACKING)&&(a||e.tabName!==R.PRODUCT_DEMO_TRACKING)}),l=i.find(function(e){return e.tabName===R.PRODUCT_DEMO_TRACKING}),s=i.filter(function(e){return e.tabName!==R.PRODUCT_DEMO_TRACKING});l&&s.push(l),D(function(e){var t;return Re(Re({},e),{},{tablist:s,currentTabs:(null===(t=s[0])||void 0===t?void 0:t.path)||\"/\"})})}).catch(function(e){})}(n),n}}).catch(function(e){})},I=(0,a.useCallback)(function(){var e;return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:A?\"\".concat(A).concat(n.search):\"\".concat(T.currentTabs,\"/?\").concat((0,f.Nr)({tabname:null!=A?A:T.currentTabs,tabid:null!=y?y:null===(e=T.tablist)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.id}))})}),T.tablist.map(function(e){return i().createElement(l.qh,{key:e.path,path:\"\".concat(e.path),element:e.component})}))},[T.tablist]);return i().createElement(h.T,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,null,i().createElement(g.A,{routePathName:[{name:c.F_.Configurations,path:c.fp.Configurations},{name:c.F_.Form_Config,path:c.fp.Form_Config}]})))),i().createElement(m.A,{tabStateProps:T,handleTabChange:function(e){return t=e,void D(function(e){return Re(Re({},e),{},{currentTabs:t})});var t},isParamsReq:!0}),T.tablist.length>0&&I())}},25475:(e,t,n)=>{\"use strict\";n.d(t,{O:()=>a,S:()=>i}),n(27495),n(25440);var r=n(8085),o=n(13075),a=function(e,t,n,a){var i,l,s,u,c={};return c.domain=t,c.endPoint=\"\".concat(r.p.GET_DEMO_RQUEST_DETAILS).replace(\"__DEMO_PRODUCT_TRACKING_UUID__\",null===(i=a.state)||void 0===i?void 0:i.demo_tracking_details_uuid),c.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),demo_tracking_details_uuid:null==a||null===(u=a.state)||void 0===u?void 0:u.demo_tracking_details_uuid},c.triggerLoader=n,(0,o.AT)(\"get\",c,!1)},i=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=r.p.GET_DEMO_LIST,s.payLoad=a,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,o.AT)(\"post\",s,!0)}},25535:(e,t,n)=>{\"use strict\";e.exports=n.p+\"816ea24f5f3f78ae80fd.eot?hasvnq\"},25571:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s,B:()=>l});var r=n(58168),o=n(38413),a=n(31609),i=n(51175);function l(e){return(0,a.Ay)(\"MuiInput\",e)}const s=(0,r.A)({},i.A,(0,o.A)(\"MuiInput\",[\"root\",\"underline\",\"input\"]))},25669:(e,t,n)=>{\"use strict\";n.d(t,{b:()=>o}),n(81970);var r=n(72221);function o(e){return(0,r.b)(e)}n(74848)},25739:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ab39b1fad268c4b40c45.woff2\"},25745:(e,t,n)=>{\"use strict\";var r=n(77629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},25843:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(52703);r({target:\"Number\",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},25911:(e,t,n)=>{var r=n(38859),o=n(14248),a=n(19219);e.exports=function(e,t,n,i,l,s){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=-1,h=!0,m=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++g<c;){var v=e[g],A=t[g];if(i)var y=u?i(A,v,g,t,e,s):i(v,A,g,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(m){if(!o(t,function(e,t){if(!a(m,t)&&(v===e||l(v,e,n,i,s)))return m.push(t)})){h=!1;break}}else if(v!==A&&!l(v,A,n,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},25926:(e,t,n)=>{\"use strict\";e.exports=n.p+\"86a1fc91f451e213b44e.svg\"},25942:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.Track=void 0;var o=l(n(81970)),a=l(n(46942)),i=n(29445);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function d(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){var t,n,r,o,a;return r=(a=e.rtl?e.slideCount-1-e.index:e.index)<0||a>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-o-1&&a<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow,{\"slick-slide\":!0,\"slick-active\":t,\"slick-center\":n,\"slick-cloned\":r,\"slick-current\":a===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},v=function(e,t){return e.key||t},A=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&c(e,t)}(y,e);var t,n,l,f,A=(l=y,f=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=p(l);if(f){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===r(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return d(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=A.call.apply(A,[this].concat(n))),\"node\",null),h(d(e),\"handleRef\",function(t){e.node=t}),e}return t=y,(n=[{key:\"render\",value:function(){var e=function(e){var t,n=[],r=[],l=[],s=o.default.Children.count(e.children),u=(0,i.lazyStartIndex)(e),c=(0,i.lazyEndIndex)(e);return o.default.Children.forEach(e.children,function(d,p){var f,h={message:\"children\",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?d:o.default.createElement(\"div\",null);var A=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position=\"relative\",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition=\"opacity \"+e.speed+\"ms \"+e.cssEase+\", visibility \"+e.speed+\"ms \"+e.cssEase)),t}(g(g({},e),{},{index:p})),y=f.props.className||\"\",E=m(g(g({},e),{},{index:p}));if(n.push(o.default.cloneElement(f,{key:\"original\"+v(f,p),\"data-index\":p,className:(0,a.default)(E,y),tabIndex:\"-1\",\"aria-hidden\":!E[\"slick-active\"],style:g(g({outline:\"none\"},f.props.style||{}),A),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})),e.infinite&&!1===e.fade){var b=s-p;b<=(0,i.getPreClones)(e)&&s!==e.slidesToShow&&((t=-b)>=u&&(f=d),E=m(g(g({},e),{},{index:t})),r.push(o.default.cloneElement(f,{key:\"precloned\"+v(f,t),\"data-index\":t,tabIndex:\"-1\",className:(0,a.default)(E,y),\"aria-hidden\":!E[\"slick-active\"],style:g(g({},f.props.style||{}),A),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))),s!==e.slidesToShow&&((t=s+p)<c&&(f=d),E=m(g(g({},e),{},{index:t})),l.push(o.default.cloneElement(f,{key:\"postcloned\"+v(f,t),\"data-index\":t,tabIndex:\"-1\",className:(0,a.default)(E,y),\"aria-hidden\":!E[\"slick-active\"],style:g(g({},f.props.style||{}),A),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})))}}),e.rtl?r.concat(n,l).reverse():r.concat(n,l)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.default.createElement(\"div\",s({ref:this.handleRef,className:\"slick-track\",style:this.props.trackStyle},n),e)}}])&&u(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),y}(o.default.PureComponent);t.Track=A},26009:(e,t,n)=>{\"use strict\";n.d(t,{H:()=>r,u:()=>o});var r=function(e){return e.ATTENDANCE_PAYCYCLE_START_DATE=\"attendance_paycycle_start_date\",e.ATTENDANCE_PAYCYCLE_END_DATE=\"attendance_paycycle_end_date\",e.ATTENDNACE_MARK_PAST_ATTENDNACE_IN_DAYS=\"attendance_mark_past_attendance_in_days\",e.ATTENDANCE__MARK_PAST_LEAVE_IN_DAYS=\"attendance_mark_past_leave_in_days\",e.ATTENDANCE_MARK_FEATURE_LEAVE_IN_DAYS=\"attendance_mark_future_leave_in_days\",e.ATTENDANCE_VIEW_ATTENDANCE_HISTORY_IN_MONTHS=\"attendance_view_attendance_history_in_months\",e.ATTENDANCE_WEEK_OFF=\"attendance_week_off\",e.ATTENDANCE_EVENT_BASED_ATTENDANCE=\"attendance_event_based_attendance\",e.ATTENDANCE_ROLE=\"attendance_role\",e.ATTENDANCE_TYPE=\"attendance_type\",e.ATTENDANCE_MANPOWER_GENERATION_DAY_OF_THE_MONTH=\"attendance_manpower_generation_day_of_the_month\",e}({}),o=function(e){return e.ATTENDANCE_VIEW_ATTENDANCE_HISTORY_IN_MONTHS=\"attendance_view_attendance_history_in_months\",e}({})},26025:(e,t,n)=>{var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},26036:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},26099:(e,t,n)=>{\"use strict\";var r=n(92140),o=n(36840),a=n(53179);r||o(Object.prototype,\"toString\",a,{unsafe:!0})},26111:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[e+\" Tage\",e+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM:[e+\" Monate\",e+\" Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[e+\" Jahre\",e+\" Jahren\"]};return t?o[n][0]:o[n][1]}e.defineLocale(\"de-at\",{months:\"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag\".split(\"_\"),weekdaysShort:\"So._Mo._Di._Mi._Do._Fr._Sa.\".split(\"_\"),weekdaysMin:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd, D. MMMM YYYY HH:mm\"},calendar:{sameDay:\"[heute um] LT [Uhr]\",sameElse:\"L\",nextDay:\"[morgen um] LT [Uhr]\",nextWeek:\"dddd [um] LT [Uhr]\",lastDay:\"[gestern um] LT [Uhr]\",lastWeek:\"[letzten] dddd [um] LT [Uhr]\"},relativeTime:{future:\"in %s\",past:\"vor %s\",s:\"ein paar Sekunden\",ss:\"%d Sekunden\",m:t,mm:\"%d Minuten\",h:t,hh:\"%d Stunden\",d:t,dd:t,w:t,ww:\"%d Wochen\",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},26198:(e,t,n)=>{\"use strict\";var r=n(18014);e.exports=function(e){return r(e.length)}},26269:e=>{\"use strict\";e.exports={}},26308:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){var r=e+\" \";switch(n){case\"ss\":return r+(1===e?\"sekunda\":2===e||3===e||4===e?\"sekunde\":\"sekundi\");case\"m\":return t?\"jedna minuta\":\"jedne minute\";case\"mm\":return r+(1===e?\"minuta\":2===e||3===e||4===e?\"minute\":\"minuta\");case\"h\":return t?\"jedan sat\":\"jednog sata\";case\"hh\":return r+(1===e?\"sat\":2===e||3===e||4===e?\"sata\":\"sati\");case\"dd\":return r+(1===e?\"dan\":\"dana\");case\"MM\":return r+(1===e?\"mjesec\":2===e||3===e||4===e?\"mjeseca\":\"mjeseci\");case\"yy\":return r+(1===e?\"godina\":2===e||3===e||4===e?\"godine\":\"godina\")}}e.defineLocale(\"hr\",{months:{format:\"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca\".split(\"_\"),standalone:\"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac\".split(\"_\")},monthsShort:\"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.\".split(\"_\"),monthsParseExact:!0,weekdays:\"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota\".split(\"_\"),weekdaysShort:\"ned._pon._uto._sri._čet._pet._sub.\".split(\"_\"),weekdaysMin:\"ne_po_ut_sr_če_pe_su\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"Do MMMM YYYY\",LLL:\"Do MMMM YYYY H:mm\",LLLL:\"dddd, Do MMMM YYYY H:mm\"},calendar:{sameDay:\"[danas u] LT\",nextDay:\"[sutra u] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[u] [nedjelju] [u] LT\";case 3:return\"[u] [srijedu] [u] LT\";case 6:return\"[u] [subotu] [u] LT\";case 1:case 2:case 4:case 5:return\"[u] dddd [u] LT\"}},lastDay:\"[jučer u] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[prošlu] [nedjelju] [u] LT\";case 3:return\"[prošlu] [srijedu] [u] LT\";case 6:return\"[prošle] [subote] [u] LT\";case 1:case 2:case 4:case 5:return\"[prošli] dddd [u] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"prije %s\",s:\"par sekundi\",ss:t,m:t,mm:t,h:t,hh:t,d:\"dan\",dd:t,M:\"mjesec\",MM:t,y:\"godinu\",yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},26435:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"fr-ca\",{months:\"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre\".split(\"_\"),monthsShort:\"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.\".split(\"_\"),monthsParseExact:!0,weekdays:\"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi\".split(\"_\"),weekdaysShort:\"dim._lun._mar._mer._jeu._ven._sam.\".split(\"_\"),weekdaysMin:\"di_lu_ma_me_je_ve_sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Aujourd’hui à] LT\",nextDay:\"[Demain à] LT\",nextWeek:\"dddd [à] LT\",lastDay:\"[Hier à] LT\",lastWeek:\"dddd [dernier à] LT\",sameElse:\"L\"},relativeTime:{future:\"dans %s\",past:\"il y a %s\",s:\"quelques secondes\",ss:\"%d secondes\",m:\"une minute\",mm:\"%d minutes\",h:\"une heure\",hh:\"%d heures\",d:\"un jour\",dd:\"%d jours\",M:\"un mois\",MM:\"%d mois\",y:\"un an\",yy:\"%d ans\"},dayOfMonthOrdinalParse:/\\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case\"M\":case\"Q\":case\"D\":case\"DDD\":case\"d\":return e+(1===e?\"er\":\"e\");case\"w\":case\"W\":return e+(1===e?\"re\":\"e\")}}})}(n(95093))},26445:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ff5c70bc6f9a3ef04fe1.woff\"},26472:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>y}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(62062),n(34782),n(23288),n(94170),n(62010),n(69085),n(26099),n(27495),n(38781),n(47764),n(62953);var r,o=n(8451),a=n(27562),i=n(28161),l=n(81970),s=n.n(l),u=n(4589);n(67945),n(52811);var c,d,p=(0,n(11848).Ay)(i.A)(r||(c=[\"\\n          transform: translate(0%, 30%);\\n          .slick-slider {\\n        overflow: hidden;\\n        cursor: pointer;\\n      }\\n      .slick-list, .slick-slider, .slick-track {\\n        position: relative;\\n        display: block;\\n    }\\n    .slick-loading .slick-slide, .slick-loading .slick-track {\\n        visibility: hidden;\\n    }\\n    .slick-slider {\\n        box-sizing: border-box;\\n        -webkit-user-select: none;\\n        -moz-user-select: none;\\n        -ms-user-select: none;\\n        user-select: none;\\n        -webkit-touch-callout: none;\\n        -khtml-user-select: none;\\n        -ms-touch-action: pan-y;\\n        touch-action: pan-y;\\n        -webkit-tap-highlight-color: transparent;\\n    }\\n    .slick-list {\\n        overflow: hidden;\\n        margin: 0;\\n        padding: 0;\\n    }\\n    .slick-list:focus {\\n        outline: 0;\\n    }\\n    .slick-list.dragging {\\n        cursor: pointer;\\n        cursor: hand;\\n    }\\n    .slick-slider .slick-list, .slick-slider .slick-track {\\n        -webkit-transform: translate3d(0, 0, 0);\\n        -moz-transform: translate3d(0, 0, 0);\\n        -ms-transform: translate3d(0, 0, 0);\\n        -o-transform: translate3d(0, 0, 0);\\n        transform: translate3d(0, 0, 0);\\n    }\\n    .slick-track {\\n        top: 0;\\n        left: 0;\\n    }\\n    .slick-track:after, .slick-track:before {\\n        display: table;\\n        content: ''}\\n    .slick-track:after {\\n        clear: both;\\n    }\\n    .slick-slide {\\n        display: none;\\n        float: left;\\n        height: 100%;\\n        min-height: 1px;\\n    }\\n    [dir=rtl] .slick-slide {\\n        float: right;\\n    }\\n    .slick-slide img {\\n        display: block;\\n    }\\n    .slick-slide.slick-loading img {\\n        display: none;\\n    }\\n    .slick-slide.dragging img {\\n        pointer-events: none;\\n    }\\n    .slick-initialized .slick-slide {\\n        display: flex;\\n        justify-content: center;\\n    }\\n    .slick-vertical .slick-slide {\\n        display: block;\\n        height: auto;\\n        border: 1px solid transparent;\\n    }\\n    .slick-arrow.slick-hidden {\\n        display: none;\\n    }\\n    .slider-main-image{\\n  \\n        width:700px !important;\\n        height:500px;\\n        img{\\n            object-fit:contain\\n         }\\n    }\\n  \\n  \\n    .slider-nav-image{\\n img{\\n    width:70px;\\nheight:70px;\\n    object-fit:contain\\n }\\n    }\\n\\n    .slider-nav{\\n        margin: 0px auto;\\n        width: 620px;\\n        justify-content: center;\\n        display: flex;\\n\\n        .slick-track{\\n           min-width: 600px;\\n}\\n        .slick-current {\\n                img{\\n            \\n                        width:120px;\\nheight:120px;\\n                    transition:all 0.2s ease-in-out;\\n                }\\n            } \\n        }\\n      \\n        .slider-main {\\n            display:flex;\\n            justify-content: center;\\n            align-items: center;\\n            margin:20px auto;\\n        }\\n        .slick-arrow{\\n            color: #696F88;\\n            font-size:32px;\\n        }\\n        .disabled-arrow {\\n            color: grey !important;\\n            pointer-events: none !important; /* This ensures the button is not clickable */\\n        }\\n        \"],d||(d=c.slice(0)),r=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(d)}}))));function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e){var t=e.onClick,n=e.currentSlide;return s().createElement(\"button\",{type:\"button\",onClick:t,className:\"remove-button \".concat(0===n?\"disabled-arrow\":\"\")},s().createElement(o.A,null))},v=function(e){var t=e.onClick,n=e.currentSlide,r=e.documents;return s().createElement(\"button\",{type:\"button\",onClick:t,className:\"remove-button \".concat(n===(null==r?void 0:r.length)-1?\"disabled-arrow\":\"\")},s().createElement(a.A,null))},A=function(e){var t=e.id,n=e.className,r=e.documents,o=g((0,l.useState)(),2),a=o[0],c=o[1],d=g((0,l.useState)(),2),h=d[0],A=d[1],y=g((0,l.useState)(0),2),E=y[0],b=y[1],_={dots:!1,speed:500,slidesToShow:1,slidesToScroll:1,arrows:!0,fade:!1,arrow:!0,beforeChange:function(e,t){return b(t)}};return s().createElement(p,null,s().createElement(i.A,{className:n,id:t},s().createElement(u.A,f({asNavFor:h,className:\"slider-main\",prevArrow:s().createElement(m,{currentSlide:E}),nextArrow:s().createElement(v,{currentSlide:E,documents:r})},_,{ref:function(e){return c(e)}}),null==r?void 0:r.map(function(e){return s().createElement(i.A,{key:e,className:\"slider-main-image\"},s().createElement(\"img\",{src:e,alt:\"image-name\",width:\"100%\",height:\"100%\"}))})),s().createElement(u.A,{className:\"slider-nav\",asNavFor:a,ref:function(e){return A(e)},slidesToShow:(null==r?void 0:r.length)>2?3:null==r?void 0:r.length,swipeToSlide:!0,focusOnSelect:!0,centerMode:!0,arrows:!1,infinite:!0},null==r?void 0:r.map(function(e){return s().createElement(i.A,{key:e,className:\"slider-nav-image\"},s().createElement(\"img\",{src:e,alt:\"image-name\",width:\"100%\"}))}))))};const y=s().memo(A)},26478:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.NewReactComponent=void 0;var l=n(81970),s=n(40961),u=n(64436),c=n(54574),d=n(65848),p=i(n(99348)),f=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.oldPortal=null,o.key=p.default(),o.portalKey=p.default(),o}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new u.AgPromise(function(e){return t.createReactComponent(e)})},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=l.createElement(this.reactComponent,a(a({},e),{key:this.key})),this.portal=s.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,function(t){e(t)})},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},\"\"===d.renderToStaticMarkup(l.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+\"Component\"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+\"Component\"]},t}(c.ReactComponent);t.NewReactComponent=f},26638:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>he}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953);var r=n(81970),o=n.n(r),a=(n(28706),n(60538)),i=n(51545),l=n(80663),s=n(99478),u=n(37998),c=n(96348),d=n(13075),p=n(56254),f=n(43605),g=n(92416),h=n(15664),m=n(21239),v=n(29191),A=n(84262),y=n(47767);const E=function(e){var t=(0,y.Zp)(),n=e.column,r=e.data;return o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){t(\"\".concat(c.fp.Kyc_Edit_Details,\"?verifiedStatus=\").concat(null==r?void 0:r.verificationStatus),{state:{kycVerifierItem:r}})}},{details:{label:\"Details\",className:\"smart-agro-lite-green-label\"}}[n.colId].label)};var b=n(56203);const _=function(e){var t=e.data;switch(null==t?void 0:t.verificationStatus){case\"NOT_VERIFIED\":return o().createElement(\"p\",{className:\"smart-agro-lite-yellow-label\"},(0,b.t)(\"NOT_VERIFIED\"));case\"VERIFIED\":return o().createElement(\"p\",{className:\"capitalize smart-agro-lite-active-label\"},t.verificationStatus);case\"REJECTED\":case\"RE_KYC\":return o().createElement(\"p\",{className:\"smart-agro-lite-blue-label_no_link\"},(0,b.t)(\"\".concat(null==t?void 0:t.verificationStatus)));default:return o().createElement(o().Fragment,null)}};var C=n(34195);function w(e){return w=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=w(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==w(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var N=function(e){var t=e.setPaginationState,n=e.paginationState,r=e.onSearch,y=e.selectedFilters,b=e.setIsFilterOpen,w=e.listData,S=e.User,O=e.totalPageCount,R=e.totalElements,N=(0,C.Bd)().t;return o().createElement(i.A,null,o().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(i.A,null,o().createElement(g.A,{routePathName:[{name:c.F_.Retailers,path:c.fp.Retailers},{name:c.F_.Kyc_Verifier,path:\"\".concat(c.fp.Retailers,\"/\").concat(c.fp.Kyc_Verifier)}]}))),o().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(l.A,{direction:\"row\",alignItems:\"center\"},o().createElement(v.A,{menuItemData:s.A9,onHandleChange:function(e){t(function(t){return T(T({},t),{},{pageNo:0,pageSize:Number(e)})})},selectedItem:n.pageSize}))),o().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(i.A,{mt:2},o().createElement(m.A,{onSearchValueChange:function(e){return r(e)},placeholderText:N(\"SEARCH\"),searchBasedOn:\"\".concat(N(\"KYC_SEARCH\"))})),o().createElement(l.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},o().createElement(h.A,{className:(0,d.F7)(y),buttonName:N(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return b(!0)}}))),o().createElement(a.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(f.A,{rows:w,columnDefs:\"true\"==(null==S?void 0:S.isEnableKYCVerifier)?u.UQ:[].concat(D(u.UQ.slice(0,5)),D(u.UQ.slice(6))),frameworkComponents:{ActionComponent:E,RetailersListStatusComponent:A.ZV,VerificationStatusComponent:_}})),o().createElement(p.A,{pageNo:n.pageNo,totalPageCount:Math.ceil(O),totalElements:R,onPageChange:function(e){t(function(t){return T(T({},t),{},{pageNo:Number(e)})})}}))},L=n(47225),P=(n(48598),n(3362),n(25440),n(8085)),M=n(95093),x=n.n(M),I=n(96790),k=n(95692),B=n(34358);function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=function(e){return e.TMHQ=\"TM HQ\",e.MDOHQ=\"MDO HQ\",e.VerifierStatus=\"Verifier Status\",e}({}),H=function(e){return e.VERIFIER_STATUS=\"Verifier Status\",e}({}),U=\"onboardingDateFrom\",Y=\"onboardingDateTo\",G=\"modifiedDateFrom\",z=\"modifiedDateTo\",V=function(e){return e.MODULE=\"RETAILERS\",e.CONFIGURATION_KEY=\"retailer_kyc_verifier_hq_hierarchy_level\",e}({});function q(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Q=function(e){var t,n=e.filterPayload,o=e.paginationState,a=e.setListData,i=e.setTotalPageCount,l=e.setTotalElements,s=e.setIsFilterOpen,u=e.setLabelNames,c=e.setFiltersList,p=e.setLabelOptions,f=e.labelOptions,g=(0,r.useContext)(L.v),h=g.BackOfficeProps,m=h.globalStore.User,v=h.baseurl,A=g.triggerShowLoader,y=g.triggerToastMsg,E=[{field:\"retailerBuList.isRetailerMapped\",operator:\"EQUALS\",value:\"true\"},{field:\"retailerRequestType\",operator:\"EQUALS\",value:\"RETAILER_VERIFIER\"},{field:\"status\",operator:\"IN\",values:[\"APPROVED\"]},{field:\"retailerBuList.isActive\",operator:\"EQUALS\",value:\"true\"},{field:\"retailerBuList.buId\",operator:\"EQUALS\",value:null==m||null===(t=m.selectedBusinessUnit)||void 0===t?void 0:t.bu_id}],b=function(e,t){var n;null===(n=function(e,t,n,r){var o={};return o.domain=n,o.endPoint=P.p.MASTERS_HQ_OPTIONS.replace(\"__ID__\",e),o.triggerLoader=r,o.customHeaders={\"country-code\":\"\".concat(t.selectedCountry.countryCode),\"bu-id\":\"\".concat(t.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(t.AccessToken)},new Promise(function(e,t){(0,B.uB)(o,I.dF.GET).then(function(t){if((0,d.mN)(t))return e(t.data);throw new Error((0,d.Tl)(\"NO_LIST_AVAILABLE\"))}).catch(function(e){return t(e)})})}(e,m,v,A))||void 0===n||n.then(function(e){if(e){var n=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.hq_name,value:null==e?void 0:e.hq_data_id,checked:!1}});p([].concat(q(f),[{labelName:t,options:n}]))}}).catch(function(e){y({message:e.message,type:\"error\"})})};return{getListData:function(){var e=[{field:\"shopName\",order:\"DESC\"}];\"true\"==(null==m?void 0:m.isEnableKYCVerifier)&&(e[0].field=\"lastModifiedDate\");var t={sort:e,filter:[].concat(E,q(n)),pageNo:o.pageNo,pageSize:o.pageSize};(function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=P.p.GET_RETAILERS_LIST,i.payLoad=r,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,new Promise(function(e,t){(0,B.uB)(i,I.dF.POST).then(function(t){if((0,d.mN)(t)){var n,r=null!==(n=t.data)&&void 0!==n&&n.data?{totalPageCount:(o=t.data).totalPageCount,totalElements:o.totalElements,data:null==o?void 0:o.data.map(function(e){return{hqName:e.hqName,ownerName:e.ownerName,shopName:e.shopName,mobileNumber:e.mobileNumber,status:e.status,id:e.id,verificationStatus:e.verificationStatus,onboardedDate:x()(e.onboardedDate).format(\"DD-MM-YYYY\"),lastModifiedDate:x()(e.lastModifiedDate).format(\"DD-MM-YYYY\")}})}:{};return e(r)}var o;throw new Error((0,d.Tl)(\"NO_KYC_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})})(m,v,A,t).then(function(e){null!=e&&e.data&&(a((null==e?void 0:e.data)||[]),i(null==e?void 0:e.totalPageCount),l(null==e?void 0:e.totalElements),s(!1))}).catch(function(e){}),s(!1)},configData:function(){(function(e,t,n){var r,o,a={};return a.domain=t,a.endPoint=\"\".concat(P.p.GET_EVENTS_CONFIG_DATA,\"?keys=\").concat(V.CONFIGURATION_KEY,\"&moduleName=\").concat(V.MODULE),a.customHeaders={\"bu-id\":null==e||null===(r=e.selectedBusinessUnit)||void 0===r?void 0:r.bu_id,\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.showLoader=n,new Promise(function(e,t){var n;null===(n=k.N.get(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})})(m,v,A).then(function(e){var t,n,r;null!=e&&e.data&&(n=null==e||null===(t=e.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.value,null===(r=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=P.p.GET_HQ_HIERARCHIES_ID.replace(\"__HQHIERARCHYID__\",r),o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,B.uB)(o,I.dF.GET).then(function(t){if((0,d.mN)(t))return e(t.data);throw new Error((0,d.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})}(m,v,A,n))||void 0===r||r.then(function(e){if(e){var t=[null==e?void 0:e.name],n=[].concat(t);\"true\"==(null==m?void 0:m.isEnableKYCVerifier)&&(n=[].concat(t,[H.VERIFIER_STATUS])),u(n),c(e),b(null==e?void 0:e.sales_hierarchy_id,null==e?void 0:e.name)}}).catch(function(e){y({message:e.message,type:\"error\"})}))})}}},K=(n(50113),n(6347)),$=n(8239),X=n(14073),J=n(88084),Z=n(70380),ee=n(76906),te=n(36874),ne=n(28152),re=n(62809);function oe(e){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oe(e)}const ae=function(e){var t=e.isFilterOpen,n=e.onRequestClose,a=e.setLabelOptions,s=e.onFilterSubmit,u=e.labelNames,c=e.labelOptions,p=e.onFilterChange,f=e.selectedFilters,g=e.onClearFilters,m=c,v=(0,Z.AV)(\"MM/DD/YYYY\"),A=(0,r.useRef)(\"from\"),y=(0,r.useRef)(\"from\"),E=function(e,t,n,r,o,a){var i=!!e,l=!!t;i!==l?a[i?o:r]=(0,b.t)(\"PLEASE_SELECT_A_DATE\"):i&&l&&!(0,Z.Si)(e,t)&&(a[\"to\"===n?o:r]=(0,b.t)(\"FROM_DATE_LATER_THAN_TO_DATE\"))},_=function(e){var t=e.labelKey,n=e.fieldKey,r=e.values,a=e.minDate,l=e.maxDate,s=e.lastEditedRef,u=e.edge,c=e.setFieldValue,d=e.setFieldTouched,p=e.errors,f=e.touched,g=e.submitCount;return o().createElement($.Ay,{item:!0,xs:3},o().createElement(i.A,null,o().createElement(X.A,{variant:\"subtitle2\"},(0,b.t)(t)),o().createElement(J.D0,{name:n},function(){var e;return o().createElement(ee.A,{value:null!==(e=null==r?void 0:r[n])&&void 0!==e?e:\"\",minDate:a,maxDate:l,restrictManualEntry:!0,handleChangeDatePicker:function(e){return function(e,t,n,r,o,a){n.current=r,o(e,t&&\"Invalid date\"!==t?t:null),a(e,!0,!1)}(n,e,s,u,c,d)}})}),function(e,t,n,r){return(r>0||null!=n&&n[e])&&null!=t&&t[e]?o().createElement(K.A,{error:!0},t[e]):null}(n,p,f,g)))},C=function(e){var t;return(null==c||null===(t=c.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===t?void 0:t.options)||[]};return o().createElement(i.A,null,o().createElement(te.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(i.A,{p:3},o().createElement(J.l1,{initialValues:f,enableReinitialize:!0,validate:function(e){var t={};return E(e[U],e[Y],A.current,U,Y,t),E(e[G],e[z],y.current,G,z,t),t},onSubmit:function(e,t){s(e)}},function(e){return function(e,t,r,s,c,f){return o().createElement(J.lV,{className:\"popupContent\"},o().createElement($.Ay,{container:!0,columns:12,spacing:1,mb:2},null==u?void 0:u.map(function(n,r){return o().createElement($.Ay,{item:!0,xs:3,key:n},o().createElement(i.A,null,o().createElement(X.A,{variant:\"subtitle2\"},n),o().createElement(J.D0,{name:n},function(){var a,i,l,s,u,c;return o().createElement(re.A,{key:n,name:n,showClearAll:!0,labelKey:\"label\",options:(0,d.jT)(n,e,(s={},u=n,c=C(n),(u=function(e){var t=function(e){if(\"object\"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==oe(t)?t:t+\"\"}(u))in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,s)),onCheckboxChange:function(e){return function(e,t,n,r){var o=e.filter(function(e){return e.checked}).map(function(e){return e.value});n!==H.VERIFIER_STATUS&&p(o,t,r),r(n,e)}(e,r,n,t)},isDisabled:!(null!==(a=C(n))&&void 0!==a&&a.length),selectedOptions:(null==e||null===(i=e[n])||void 0===i?void 0:i.length)>0&&(null==e||null===(l=e[n])||void 0===l||null===(l=l.filter(function(e){return e.checked}))||void 0===l?void 0:l.map(function(e){return e.label}))||[],defaultLabel:\"Select\",isSortReq:n!==j.VerifierStatus})}),o().createElement(ne.A,{errName:\"tmHQ\"})))})),function(e,t,n,r,a,i){return o().createElement(o().Fragment,null,o().createElement(X.A,{variant:\"subtitle1\",mb:1},(0,b.t)(\"ONBOARDING_DATE_RANGE\")),o().createElement($.Ay,{container:!0,columns:12,spacing:1,mb:2},_({labelKey:\"ONBOARDING_DATE_FROM\",fieldKey:U,values:e,minDate:void 0,maxDate:(null==e?void 0:e[Y])||v,lastEditedRef:A,edge:\"from\",setFieldValue:t,setFieldTouched:n,errors:r,touched:a,submitCount:i}),_({labelKey:\"ONBOARDING_DATE_TO\",fieldKey:Y,values:e,minDate:(null==e?void 0:e[U])||void 0,maxDate:v,lastEditedRef:A,edge:\"to\",setFieldValue:t,setFieldTouched:n,errors:r,touched:a,submitCount:i})),o().createElement(X.A,{variant:\"subtitle1\",mb:1},(0,b.t)(\"LAST_MODIFIED_DATE\")),o().createElement($.Ay,{container:!0,columns:12,spacing:1,mb:2},_({labelKey:\"MODIFIED_DATE_FROM\",fieldKey:G,values:e,minDate:void 0,maxDate:(null==e?void 0:e[z])||v,lastEditedRef:y,edge:\"from\",setFieldValue:t,setFieldTouched:n,errors:r,touched:a,submitCount:i}),_({labelKey:\"MODIFIED_DATE_TO\",fieldKey:z,values:e,minDate:(null==e?void 0:e[G])||void 0,maxDate:v,lastEditedRef:y,edge:\"to\",setFieldValue:t,setFieldTouched:n,errors:r,touched:a,submitCount:i})))}(e,t,r,s,c,f),o().createElement(l.A,{direction:\"row\",justifyContent:\"right\"},o().createElement(i.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},o().createElement(h.A,{variant:\"outlined\",buttonName:(0,b.t)(\"CLEAR_FILTERS\"),onButtonClick:function(){return g()},fullwidth:!1,color:\"primary\"}),o().createElement(h.A,{variant:\"contained\",buttonName:(0,b.t)(\"APPLY_FILTERS\"),onButtonClick:function(){console.log(\"APPLY_FILTERS clicked\")},fullwidth:!1,color:\"primary\",type:\"submit\"}))),o().createElement(i.A,{onClick:function(){a(m),n()},className:\"smart-agro-lite-filter-cross\"},o().createElement(X.A,{className:\"icon-close closeIcon\",\"data-testid\":\"close-icon\"})))}(e.values,e.setFieldValue,e.setFieldTouched,e.errors,e.touched,e.submitCount)}))))};var ie=n(28161),le=(0,n(11848).Ay)(ie.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\"}}),se=n(77576);function ue(e){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ue(e)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ue(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ue(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const he=function(){var e,t=(0,se.h)().showReKYCfeature,n=fe((0,r.useState)({pageNo:0,pageSize:10}),2),a=n[0],i=n[1],l=fe((0,r.useState)([]),2),s=l[0],u=l[1],c=fe((0,r.useState)(!1),2),d=c[0],p=c[1],f=fe((0,r.useState)([]),2),g=f[0],h=f[1],m=fe((0,r.useState)([{labelName:\"Verifier Status\",options:[{label:\"Verified\",value:\"VERIFIED\",checked:!1},{label:\"Not Verified\",value:\"NOT_VERIFIED\",checked:!1}].concat((e=t?[{label:\"Re-KYC\",value:\"RE_KYC\",checked:!1}]:[],function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()))}]),2),v=m[0],A=m[1],y=fe((0,r.useState)({}),2),E=y[0],b=y[1],_=fe((0,r.useState)([]),2),C=_[0],w=_[1],S=fe((0,r.useState)([]),2),T=S[0],O=S[1],D=fe((0,r.useState)(0),2),R=D[0],P=D[1],M=fe((0,r.useState)(0),2),x=M[0],I=M[1],k=(0,r.useContext)(L.v).BackOfficeProps.globalStore.User,B=Q({filterPayload:C,paginationState:a,setListData:u,setTotalPageCount:P,setTotalElements:I,setIsFilterOpen:p,setLabelNames:O,setFiltersList:h,setLabelOptions:A,labelOptions:v}),j=B.getListData,V=B.configData;(0,r.useEffect)(function(){j()},[a,C]),(0,r.useEffect)(function(){V()},[]);var q=function(e){var t,n,r,o=null==g?void 0:g.name,a=de({},e),l=[];null!==(t=a[o])&&void 0!==t&&t.length&&l.push(K(\"hqDataId\",a[o])),null!=a&&null!==(n=a[H.VERIFIER_STATUS])&&void 0!==n&&n.length&&l.push(K(\"verificationStatus\",null==a?void 0:a[H.VERIFIER_STATUS])),null!=a&&null!==(r=a.search)&&void 0!==r&&r.length&&l.push(K(\"search\",null==a?void 0:a.search)),W(l,null==a?void 0:a[U],null==a?void 0:a[Y],\"onboardingDateFrom\",\"onboardingDateTo\"),W(l,null==a?void 0:a[G],null==a?void 0:a[z],\"modifiedDateFrom\",\"modifiedDateTo\"),w(l),i(function(e){return de(de({},e),{},{pageNo:0,pageSize:10})})},W=function(e,t,n,r,o){t&&n&&e.push({field:r,operator:\"EQUALS\",value:(0,Z.Yq)(t,\"YYYY-MM-DD\",\"MM/DD/YYYY\")},{field:o,operator:\"EQUALS\",value:(0,Z.Yq)(n,\"YYYY-MM-DD\",\"MM/DD/YYYY\")})},K=function(e,t){var n,r={field:e,operator:\"search\"===e?\"LIKE\":\"IN\"};return\"search\"===e?r.value=null==t||null===(n=t[0])||void 0===n?void 0:n.value:r.values=t.map(function(e){return e.value}),r};return o().createElement(o().Fragment,null,o().createElement(le,null,o().createElement(N,{setPaginationState:i,paginationState:a,onSearch:function(e){var t={search:[{label:\"search\",value:e}]};q(de(de({},E),t))},selectedFilters:E,setIsFilterOpen:p,listData:s,totalPageCount:R,totalElements:x,User:k})),d&&o().createElement(ae,{onFilterChange:function(){},labelNames:T,labelOptions:v,onRequestClose:function(){p(!1)},isFilterOpen:d,onFilterSubmit:function(e){b(e),q(e)},onClearFilters:function(){var e=null==v?void 0:v.filter(function(e){return(null==e?void 0:e.labelName)===T[0]||(null==e?void 0:e.labelName)===H.VERIFIER_STATUS}).map(function(e){return e.labelName===T[0]||(null==e?void 0:e.labelName)===H.VERIFIER_STATUS?de(de({},e),{},{options:e.options.map(function(e){return de(de({},e),{},{checked:!1})})}):e});A(e),b({}),w([]),p(!1)},selectedFilters:E,setLabelOptions:A}))}},26910:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(79306),i=n(48981),l=n(26198),s=n(84606),u=n(655),c=n(79039),d=n(74488),p=n(34598),f=n(13709),g=n(13763),h=n(39519),m=n(3607),v=[],A=o(v.sort),y=o(v.push),E=c(function(){v.sort(void 0)}),b=c(function(){v.sort(null)}),_=p(\"sort\"),C=!c(function(){if(h)return h<70;if(!(f&&f>3)){if(g)return!0;if(m)return m<603;var e,t,n,r,o=\"\";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort(function(e,t){return t.v-e.v}),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return\"DGBEFHACIJK\"!==o}});r({target:\"Array\",proto:!0,forced:E||!b||!_||!C},{sort:function(e){void 0!==e&&a(e);var t=i(this);if(C)return void 0===e?A(t):A(t,e);var n,r,o=[],c=l(t);for(r=0;r<c;r++)r in t&&y(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=l(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)s(t,r++);return t}})},27080:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,'.rc-time-picker {\\n  display: inline-block;\\n  position: relative;\\n  box-sizing: border-box;\\n}\\n.rc-time-picker * {\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-clear {\\n  position: absolute;\\n  right: 6px;\\n  cursor: pointer;\\n  overflow: hidden;\\n  width: 20px;\\n  height: 20px;\\n  text-align: center;\\n  line-height: 20px;\\n  top: 3px;\\n  margin: 0;\\n}\\n.rc-time-picker-clear-icon:after {\\n  content: \"x\";\\n  font-size: 12px;\\n  font-style: normal;\\n  color: #aaa;\\n  display: inline-block;\\n  line-height: 1;\\n  height: 20px;\\n  width: 20px;\\n  -webkit-transition: color 0.3s ease;\\n  transition: color 0.3s ease;\\n}\\n.rc-time-picker-clear-icon:hover:after {\\n  color: #666;\\n}\\n.rc-time-picker-input {\\n  width: 100%;\\n  position: relative;\\n  display: inline-block;\\n  padding: 4px 7px;\\n  height: 28px;\\n  cursor: text;\\n  font-size: 12px;\\n  line-height: 1.5;\\n  color: #666;\\n  background-color: #fff;\\n  background-image: none;\\n  border: 1px solid #d9d9d9;\\n  border-radius: 4px;\\n  -webkit-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\\n  transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\\n}\\n.rc-time-picker-input[disabled] {\\n  color: #ccc;\\n  background: #f7f7f7;\\n  cursor: not-allowed;\\n}\\n.rc-time-picker-panel {\\n  z-index: 1070;\\n  width: 170px;\\n  position: absolute;\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-panel * {\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-panel-inner {\\n  display: inline-block;\\n  position: relative;\\n  outline: none;\\n  list-style: none;\\n  font-size: 12px;\\n  text-align: left;\\n  background-color: #fff;\\n  border-radius: 4px;\\n  box-shadow: 0 1px 5px #ccc;\\n  background-clip: padding-box;\\n  border: 1px solid #ccc;\\n  line-height: 1.5;\\n}\\n.rc-time-picker-panel-narrow {\\n  max-width: 113px;\\n}\\n.rc-time-picker-panel-input {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  cursor: auto;\\n  line-height: 1.5;\\n  outline: 0;\\n  border: 1px solid transparent;\\n}\\n.rc-time-picker-panel-input-wrap {\\n  box-sizing: border-box;\\n  position: relative;\\n  padding: 6px;\\n  border-bottom: 1px solid #e9e9e9;\\n}\\n.rc-time-picker-panel-input-invalid {\\n  border-color: red;\\n}\\n.rc-time-picker-panel-select {\\n  float: left;\\n  font-size: 12px;\\n  border: 1px solid #e9e9e9;\\n  border-width: 0 1px;\\n  margin-left: -1px;\\n  box-sizing: border-box;\\n  width: 56px;\\n  max-height: 144px;\\n  overflow-y: auto;\\n  position: relative;\\n}\\n.rc-time-picker-panel-select-active {\\n  overflow-y: auto;\\n}\\n.rc-time-picker-panel-select:first-child {\\n  border-left: 0;\\n  margin-left: 0;\\n}\\n.rc-time-picker-panel-select:last-child {\\n  border-right: 0;\\n}\\n.rc-time-picker-panel-select ul {\\n  list-style: none;\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n}\\n.rc-time-picker-panel-select li {\\n  list-style: none;\\n  margin: 0;\\n  padding: 0 0 0 16px;\\n  width: 100%;\\n  height: 24px;\\n  line-height: 24px;\\n  text-align: left;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n      -ms-user-select: none;\\n          user-select: none;\\n}\\n.rc-time-picker-panel-select li:hover {\\n  background: #edfaff;\\n}\\nli.rc-time-picker-panel-select-option-selected {\\n  background: #f7f7f7;\\n  font-weight: bold;\\n}\\nli.rc-time-picker-panel-select-option-disabled {\\n  color: #ccc;\\n}\\nli.rc-time-picker-panel-select-option-disabled:hover {\\n  background: transparent;\\n  cursor: not-allowed;\\n}\\n',\"\",{version:3,sources:[\"webpack://./node_modules/rc-time-picker/assets/index.css\"],names:[],mappings:\"AAAA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,iBAAiB;EACjB,QAAQ;EACR,SAAS;AACX;AACA;EACE,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,WAAW;EACX,qBAAqB;EACrB,cAAc;EACd,YAAY;EACZ,WAAW;EACX,mCAAmC;EACnC,2BAA2B;AAC7B;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;EAChB,YAAY;EACZ,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,WAAW;EACX,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,gLAAgL;EAChL,wKAAwK;AAC1K;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,YAAY;EACZ,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,aAAa;EACb,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,sBAAsB;EACtB,kBAAkB;EAClB,0BAA0B;EAC1B,4BAA4B;EAC5B,sBAAsB;EACtB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,6BAA6B;AAC/B;AACA;EACE,sBAAsB;EACtB,kBAAkB;EAClB,YAAY;EACZ,gCAAgC;AAClC;AACA;EACE,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,eAAe;EACf,yBAAyB;EACzB,mBAAmB;EACnB,iBAAiB;EACjB,sBAAsB;EACtB,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,yBAAyB;KACtB,sBAAsB;MACrB,qBAAqB;UACjB,iBAAiB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,WAAW;AACb;AACA;EACE,uBAAuB;EACvB,mBAAmB;AACrB\",sourcesContent:['.rc-time-picker {\\n  display: inline-block;\\n  position: relative;\\n  box-sizing: border-box;\\n}\\n.rc-time-picker * {\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-clear {\\n  position: absolute;\\n  right: 6px;\\n  cursor: pointer;\\n  overflow: hidden;\\n  width: 20px;\\n  height: 20px;\\n  text-align: center;\\n  line-height: 20px;\\n  top: 3px;\\n  margin: 0;\\n}\\n.rc-time-picker-clear-icon:after {\\n  content: \"x\";\\n  font-size: 12px;\\n  font-style: normal;\\n  color: #aaa;\\n  display: inline-block;\\n  line-height: 1;\\n  height: 20px;\\n  width: 20px;\\n  -webkit-transition: color 0.3s ease;\\n  transition: color 0.3s ease;\\n}\\n.rc-time-picker-clear-icon:hover:after {\\n  color: #666;\\n}\\n.rc-time-picker-input {\\n  width: 100%;\\n  position: relative;\\n  display: inline-block;\\n  padding: 4px 7px;\\n  height: 28px;\\n  cursor: text;\\n  font-size: 12px;\\n  line-height: 1.5;\\n  color: #666;\\n  background-color: #fff;\\n  background-image: none;\\n  border: 1px solid #d9d9d9;\\n  border-radius: 4px;\\n  -webkit-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\\n  transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\\n}\\n.rc-time-picker-input[disabled] {\\n  color: #ccc;\\n  background: #f7f7f7;\\n  cursor: not-allowed;\\n}\\n.rc-time-picker-panel {\\n  z-index: 1070;\\n  width: 170px;\\n  position: absolute;\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-panel * {\\n  box-sizing: border-box;\\n}\\n.rc-time-picker-panel-inner {\\n  display: inline-block;\\n  position: relative;\\n  outline: none;\\n  list-style: none;\\n  font-size: 12px;\\n  text-align: left;\\n  background-color: #fff;\\n  border-radius: 4px;\\n  box-shadow: 0 1px 5px #ccc;\\n  background-clip: padding-box;\\n  border: 1px solid #ccc;\\n  line-height: 1.5;\\n}\\n.rc-time-picker-panel-narrow {\\n  max-width: 113px;\\n}\\n.rc-time-picker-panel-input {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  cursor: auto;\\n  line-height: 1.5;\\n  outline: 0;\\n  border: 1px solid transparent;\\n}\\n.rc-time-picker-panel-input-wrap {\\n  box-sizing: border-box;\\n  position: relative;\\n  padding: 6px;\\n  border-bottom: 1px solid #e9e9e9;\\n}\\n.rc-time-picker-panel-input-invalid {\\n  border-color: red;\\n}\\n.rc-time-picker-panel-select {\\n  float: left;\\n  font-size: 12px;\\n  border: 1px solid #e9e9e9;\\n  border-width: 0 1px;\\n  margin-left: -1px;\\n  box-sizing: border-box;\\n  width: 56px;\\n  max-height: 144px;\\n  overflow-y: auto;\\n  position: relative;\\n}\\n.rc-time-picker-panel-select-active {\\n  overflow-y: auto;\\n}\\n.rc-time-picker-panel-select:first-child {\\n  border-left: 0;\\n  margin-left: 0;\\n}\\n.rc-time-picker-panel-select:last-child {\\n  border-right: 0;\\n}\\n.rc-time-picker-panel-select ul {\\n  list-style: none;\\n  box-sizing: border-box;\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n}\\n.rc-time-picker-panel-select li {\\n  list-style: none;\\n  margin: 0;\\n  padding: 0 0 0 16px;\\n  width: 100%;\\n  height: 24px;\\n  line-height: 24px;\\n  text-align: left;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n      -ms-user-select: none;\\n          user-select: none;\\n}\\n.rc-time-picker-panel-select li:hover {\\n  background: #edfaff;\\n}\\nli.rc-time-picker-panel-select-option-selected {\\n  background: #f7f7f7;\\n  font-weight: bold;\\n}\\nli.rc-time-picker-panel-select-option-disabled {\\n  color: #ccc;\\n}\\nli.rc-time-picker-panel-select-option-disabled:hover {\\n  background: transparent;\\n  cursor: not-allowed;\\n}\\n'],sourceRoot:\"\"}]);const l=i},27088:function(e,t,n){!function(e){\"use strict\";var t={0:\"-ші\",1:\"-ші\",2:\"-ші\",3:\"-ші\",4:\"-ші\",5:\"-ші\",6:\"-шы\",7:\"-ші\",8:\"-ші\",9:\"-шы\",10:\"-шы\",20:\"-шы\",30:\"-шы\",40:\"-шы\",50:\"-ші\",60:\"-шы\",70:\"-ші\",80:\"-ші\",90:\"-шы\",100:\"-ші\"};e.defineLocale(\"kk\",{months:\"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан\".split(\"_\"),monthsShort:\"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел\".split(\"_\"),weekdays:\"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі\".split(\"_\"),weekdaysShort:\"жек_дүй_сей_сәр_бей_жұм_сен\".split(\"_\"),weekdaysMin:\"жк_дй_сй_ср_бй_жм_сн\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Бүгін сағат] LT\",nextDay:\"[Ертең сағат] LT\",nextWeek:\"dddd [сағат] LT\",lastDay:\"[Кеше сағат] LT\",lastWeek:\"[Өткен аптаның] dddd [сағат] LT\",sameElse:\"L\"},relativeTime:{future:\"%s ішінде\",past:\"%s бұрын\",s:\"бірнеше секунд\",ss:\"%d секунд\",m:\"бір минут\",mm:\"%d минут\",h:\"бір сағат\",hh:\"%d сағат\",d:\"бір күн\",dd:\"%d күн\",M:\"бір ай\",MM:\"%d ай\",y:\"бір жыл\",yy:\"%d жыл\"},dayOfMonthOrdinalParse:/\\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},27203:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u});var r=n(8239),o=n(28161),a=n(14073),i=n(56203),l=n(81970),s=n.n(l);const u=function(e){var t=e.retailerDetails;return s().createElement(r.Ay,{container:!0,columns:{xs:12},rowGap:4,mb:2},s().createElement(r.Ay,{item:!0,xs:4},s().createElement(o.A,{className:\"user-details-container\"},s().createElement(a.A,{variant:\"h5\",color:\"#1D2B3A\"},(0,i.t)(\"OWNERNAME\")),s().createElement(a.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},null==t?void 0:t.owner_name))),s().createElement(r.Ay,{item:!0,xs:4},s().createElement(o.A,{className:\"user-details-container\"},s().createElement(a.A,{variant:\"h5\",color:\"#1D2B3A\"},(0,i.t)(\"SHOPNAME\")),s().createElement(a.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},null==t?void 0:t.shop_name))),s().createElement(r.Ay,{item:!0,xs:4},s().createElement(o.A,{className:\"user-details-container\"},s().createElement(a.A,{variant:\"h5\",color:\"#1D2B3A\"},(0,i.t)(\"MOBILENO\")),s().createElement(a.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},null==t?void 0:t.mobile))))}},27208:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565);r({target:\"URL\",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},27256:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext()},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27305:(e,t,n)=>{\"use strict\";n.d(t,{T:()=>a,w:()=>o}),n(2008),n(74423),n(26099),n(21699);var r=n(99478),o=function(e){var t,n,o,a,i,l,s,u,c=null!==(t=null===(n=e.permissions)||void 0===n?void 0:n.includes(r.g2.READ))&&void 0!==t&&t,d=null!==(o=null===(a=e.permissions)||void 0===a?void 0:a.includes(r.g2.CREATE))&&void 0!==o&&o,p=null!==(i=null===(l=e.permissions)||void 0===l?void 0:l.includes(r.g2.UPDATE))&&void 0!==i&&i;return{hasReadAccess:c,hasCreateAccess:d,hasDeleteAccess:null!==(s=null===(u=e.permissions)||void 0===u?void 0:u.includes(r.g2.DELETE))&&void 0!==s&&s,hasUpdateAccess:p}},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{readableModules:null!==(e=null==t?void 0:t.filter(function(e){var t;return null==e||null===(t=e.permissions)||void 0===t?void 0:t.includes(r.g2.READ)}))&&void 0!==e?e:[]}}},27307:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.LegacyReactComponent=void 0;var i=n(81970),l=n(40961),s=n(64436),u=n(54574),c=n(65848),d=a(n(99348)),p=function(e){function t(t,n,r,o){var a=e.call(this,t,r,o)||this;return a.staticMarkup=null,a.staticRenderTime=0,a.parentComponent=n,a}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new s.AgPromise(function(n){return t.createReactComponent(e,n)})},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var r=i.createElement(this.reactComponent,e),o=l.createPortal(r,this.eParentElement,d.default());this.portal=o,this.portalManager.mountReactPortal(o,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return\"\"===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var r=Date.now(),o=c.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=t,\"\"===o?this.staticMarkup=o:o&&(this.staticMarkup=document.createElement(\"span\"),this.staticMarkup.innerHTML=o,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(u.ReactComponent);t.LegacyReactComponent=p},27318:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>R}),n(52675),n(89463),n(2259),n(28706),n(23418),n(64346),n(23792),n(62062),n(34782),n(15086),n(26910),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(90891),o=n(90815),a=n(28161),i=n(14073),l=n(60538),s=n(47839),u=n(11641),c=n(81970),d=n.n(c),p=n(34195),f=n(47767),g=n(96348),h=n(17630),m=n(47225),v=n(13075),A=n(79043),y=n(92416),E=n(15664),b=n(37306),_=n(27776),C=n(74072),w=n(19940),S=n(55854),T=n(15614);function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const R=function(){var e=(0,c.useContext)(m.v),t=e.BackOfficeProps,n=t.globalStore.User,D=t.baseurl,R=e.triggerShowLoader,N=e.triggerToastMsg,L=O((0,c.useState)(!1),2),P=L[0],M=L[1],x=(0,p.Bd)().t,I=(0,T.I)(),k=(0,f.Zp)(),B=O((0,c.useState)(),2),F=B[0],j=B[1],H=O((0,c.useState)(\"\"),2),U=H[0],Y=H[1],G=O((0,c.useState)([]),2),z=G[0],V=G[1],q=z.slice().sort(function(e,t){return e.id-t.id}),W=O((0,c.useState)(\"\"),2),Q=W[0],K=W[1],$=O((0,c.useState)(\"\"),2),X=$[0],J=$[1],Z=(0,c.useCallback)(function(e){var t=e.some(function(e){return e.templateCode.toLowerCase()===Q.toLowerCase()});J(t?Q:\"\")},[z,F]);return(0,c.useEffect)(function(){(0,S.Q)(n,D,R).then(function(e){var t,n,r,o,a;if((0,v.mN)(e))return j(null==e||null===(n=e.data[0])||void 0===n?void 0:n.value),Y(null==e||null===(r=e.data[0])||void 0===r?void 0:r.value),J(null==e||null===(o=e.data[1])||void 0===o?void 0:o.value),void K(null==e||null===(a=e.data[1])||void 0===a?void 0:a.value);throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage)}).catch(function(e){N({message:e.message,type:\"error\"})})},[]),(0,c.useEffect)(function(){var e;F&&(e=F,(0,S.T)(n,D,R,e).then(function(e){var t;if((0,v.mN)(e))return V(e.data),void Z(e.data);throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage)}).catch(function(e){N({message:e.message,type:\"error\"})}))},[F]),d().createElement(_.T,null,d().createElement(a.A,null,d().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},d().createElement(a.A,null,d().createElement(y.A,{routePathName:[{name:g.F_.Configurations,path:g.fp.Configurations},{name:g.F_.Events_Baseline_Config,path:g.fp.Events_Baseline_Config}]})))),d().createElement(a.A,{className:I.EventBaselineFields},d().createElement(l.A,{className:I.EventBaseline},d().createElement(a.A,{className:I.eventBaselineInputWrapper},d().createElement(o.A,{direction:\"row\",spacing:2,alignItems:\"center\"},d().createElement(i.A,{variant:\"subtitle1\",color:h.T.textColor},\"\".concat(x(\"EVENT_BASELINE_TYPE\"))),d().createElement(s.A,{title:x(\"CHOOSE_EVENT_BASELINE_TYPE\"),placement:\"right\",arrow:!0,className:I.EvenbtBaselineTooltip},d().createElement(u.A,null,d().createElement(r.A,null)))),d().createElement(o.A,{justifyContent:\"start\",direction:\"row\",spacing:2},w.dO.map(function(e,t){return d().createElement(b.A,{key:(0,v.gP)(),checked:(null==e?void 0:e.value)===F&&F,label:null==e?void 0:e.label,name:null==e?void 0:e.label,onChange:function(e){j(e)},value:null==e?void 0:e.value})})))),d().createElement(l.A,{className:I.EventBaseline},d().createElement(a.A,{className:I.eventBaselineInputWrapper},d().createElement(i.A,{variant:\"h3\",fontSize:12,className:\"colored-header-label\"},x(\"TEMPLATES\")),d().createElement(o.A,{className:\"template-card-wrapper\",direction:\"row\",justifyContent:\"space-between\",gap:1},q.map(function(e){return d().createElement(a.A,{className:\"template-card\",key:e.id},d().createElement(b.A,{checked:X===e.templateCode,label:e.templateName,name:e.templateName,onChange:function(e){return J(e)},value:e.templateCode}),d().createElement(i.A,{variant:\"body2\",color:h.T.iconColor,p:1,pl:0,fontSize:16},\"This template contains following headers\"),d().createElement(i.A,{variant:\"body2\",color:h.T.primaryBlack,fontSize:16,lineHeight:\"normal\",fontWeight:500},e.description))}))))),d().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},d().createElement(o.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},d().createElement(E.A,{buttonName:\"\".concat(x(\"CANCEL\")),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){U===F?k(\"/\".concat(g.fp.SmartAgro,\"/\").concat(g.fp.Configurations)):M(!0)}}),d().createElement(E.A,{buttonName:\"\".concat(x(\"SAVE\")),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){return function(){if(X){var e=[{key:\"baseline_type\",value:F,marker_id:null},{key:\"event_targets_template\",value:X,marker_id:null}];(0,C.LE)(n,D,R,e).then(function(e){!function(e,t){Y(F),N({message:e?t.data:t.data.error,type:e?\"success\":\"error\"})}((0,v.mN)(e),e)}).catch(function(e){N({message:e.message,type:\"error\"})})}else N({type:\"warn\",message:x(\"SELECT_TEMPLATE\")})}()}}))),d().createElement(A.B,{isVisible:P,message:\"\".concat(x(\"CONFIRMATION_TEXT\")),onRequestClose:function(){return M(!1)},onButtonClick:function(){M(!1),j(U)}}))}},27320:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>s,getFunctionName:()=>a});var r=n(6774);const o=/^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;function a(e){const t=`${e}`.match(o);return t&&t[1]||\"\"}function i(e,t=\"\"){return e.displayName||e.name||a(e)||t}function l(e,t,n){const r=i(t);return e.displayName||(\"\"!==r?`${n}(${r})`:n)}function s(e){if(null!=e){if(\"string\"==typeof e)return e;if(\"function\"==typeof e)return i(e,\"Component\");if(\"object\"==typeof e)switch(e.$$typeof){case r.vM:return l(e,e.render,\"ForwardRef\");case r.lD:return l(e,e.type,\"memo\");default:return}}}},27337:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(35610),i=RangeError,l=String.fromCharCode,s=String.fromCodePoint,u=o([].join);r({target:\"String\",stat:!0,arity:1,forced:!!s&&1!==s.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],a(t,1114111)!==t)throw new i(t+\" is not a valid code point\");n[o]=t<65536?l(t):l(55296+((t-=65536)>>10),t%1024+56320)}return u(n,\"\")}})},27386:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p}),n(62010);var r=n(14073),o=n(81970),a=n.n(o),i=n(99478),l=n(15664),s=n(11848),u=n(28161),c=(0,s.Ay)(u.A)(function(e){var t=e.theme;return{position:\"relative\",border:\"1px solid \".concat(t.palette.grey[100],\" \"),height:\"42px\",borderRadius:t.spacing(1),\"& .file-input\":{borderColor:t.palette.grey[100],visibility:\"hidden\"},\"& .MuiButtonBase-root\":{backgroundColor:t.palette.primary.dark,position:\"absolute\",height:\"40px !important\",borderRadius:\"8px 0px 0px 8px\",borderRight:\"1px solid \".concat(t.palette.grey[100])},\"& .MuiButton-containedPrimary:hover\":{backgroundColor:\"\".concat(t.palette.primary.dark,\" !important\")},\"&.file-upload\":{\"& .file-upload-btn:hover\":{backgroundColor:\"\".concat(t.palette.primary.dark,\" !important\")}},\"& .browse-file\":{\"& .MuiButton-text:hover\":{backgroundColor:\"transparent\"}},\"& .file-custom-label\":{position:\"absolute\",left:\"111px\",top:\"8px\",width:\"250px\",whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},\"& .remove-file\":{position:\"absolute\",right:\"40px\",top:\"8px\",cursor:\"pointer\",color:t.palette.grey[200]}}}),d=function(e){var t=e.onUploadSuccess,n=void 0===t?function(){}:t,s=e.selectedFile,u=e.onRemoveHandler,d=void 0===u?function(){}:u,p=e.allowRemove,f=void 0===p||p,g=e.customClassName,h=void 0===g?\"\":g,m=e.buttonType,v=void 0===m?\"contained\":m,A=e.buttonLabel,y=void 0===A?\"Choose file\":A,E=(0,o.useRef)(null);return(0,o.useEffect)(function(){!s&&E.current&&(E.current.value=\"\")},[s]),a().createElement(c,{className:h},a().createElement(l.A,{buttonName:y,fullwidth:!1,variant:v,onButtonClick:function(){var e;return null===(e=E.current)||void 0===e?void 0:e.click()},className:\"file-upload-btn\"}),a().createElement(\"input\",{accept:i.G_,type:\"file\",ref:E,onChange:function(e){var t=e.target.files;n(t)},className:\"file-input\",multiple:!1,\"data-testid\":\"file-input\"}),s?a().createElement(a().Fragment,null,a().createElement(r.A,{className:\"file-custom-label\"},s.name),f&&a().createElement(r.A,{component:\"span\",className:\"icon-close remove-file \",onClick:function(){E.current&&(E.current.value=\"\"),d()},\"data-testid\":\"remove-file\"})):a().createElement(r.A,{className:\"file-custom-label\"},\"No File Chosen\"))};const p=a().memo(d)},27476:(e,t,n)=>{\"use strict\";var r=n(22195),o=n(79504);e.exports=function(e){if(\"Function\"===r(e))return o(e)}},27495:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(57323);r({target:\"RegExp\",proto:!0,forced:/./.exec!==o},{exec:o})},27534:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&\"[object Arguments]\"==r(e)}},27558:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>D});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(55860),c=n(20561),d=n(74848);const p=(0,c.A)((0,d.jsx)(\"path\",{d:\"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"}),\"CheckBoxOutlineBlank\"),f=(0,c.A)((0,d.jsx)(\"path\",{d:\"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"}),\"CheckBox\"),g=(0,c.A)((0,d.jsx)(\"path\",{d:\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z\"}),\"IndeterminateCheckBox\");var h=n(28466),m=n(25669),v=n(11848),A=n(39770),y=n(38413),E=n(31609);function b(e){return(0,E.Ay)(\"MuiCheckbox\",e)}const _=(0,y.A)(\"MuiCheckbox\",[\"root\",\"checked\",\"disabled\",\"indeterminate\",\"colorPrimary\",\"colorSecondary\",\"sizeSmall\",\"sizeMedium\"]),C=[\"checkedIcon\",\"color\",\"icon\",\"indeterminate\",\"indeterminateIcon\",\"inputProps\",\"size\",\"className\"],w=(0,v.Ay)(u.A,{shouldForwardProp:e=>(0,A.A)(e)||\"classes\"===e,name:\"MuiCheckbox\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,h.A)(n.size)}`],\"default\"!==n.color&&t[`color${(0,h.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,o.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${\"default\"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(\"default\"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},\"default\"!==t.color&&{[`&.${_.checked}, &.${_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),S=(0,d.jsx)(f,{}),T=(0,d.jsx)(p,{}),O=(0,d.jsx)(g,{}),D=a.forwardRef(function(e,t){var n,s;const u=(0,m.b)({props:e,name:\"MuiCheckbox\"}),{checkedIcon:c=S,color:p=\"primary\",icon:f=T,indeterminate:g=!1,indeterminateIcon:v=O,inputProps:A,size:y=\"medium\",className:E}=u,_=(0,r.A)(u,C),D=g?v:f,R=g?v:c,N=(0,o.A)({},u,{color:p,indeterminate:g,size:y}),L=(e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:[\"root\",n&&\"indeterminate\",`color${(0,h.A)(r)}`,`size${(0,h.A)(a)}`]},s=(0,l.A)(i,b,t);return(0,o.A)({},t,s)})(N);return(0,d.jsx)(w,(0,o.A)({type:\"checkbox\",inputProps:(0,o.A)({\"data-indeterminate\":g},A),icon:a.cloneElement(D,{fontSize:null!=(n=D.props.fontSize)?n:y}),checkedIcon:a.cloneElement(R,{fontSize:null!=(s=R.props.fontSize)?s:y}),ownerState:N,ref:t,className:(0,i.A)(L.root,E)},_,{classes:L}))})},27562:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"}),\"ChevronRight\")},27691:(e,t,n)=>{\"use strict\";e.exports=n.p+\"4062538cc5c2b586dae4.svg\"},27714:(e,t,n)=>{\"use strict\";var r=i(n(65971)),o=i(n(11156)),a=i(n(97479));function i(e){return e&&e.__esModule?e:{default:e}}t.A=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+(void 0===t?\"undefined\":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},27776:(e,t,n)=>{\"use strict\";n.d(t,{T:()=>i});var r=n(28161),o=n(11848),a=n(43457),i=(0,o.Ay)(r.A)(function(){return{animation:\"\".concat(a._A,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",paddingBottom:\"12px\",overflowY:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .MuiTypography-subtitle1\":{padding:\"0px  !important\"},\"& .pagination-container\":{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"}}})},27800:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if(\"string\"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},27822:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>j}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(62062),n(34782),n(26910),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(28161),o=n(90815),a=n(60538),i=n(81970),l=n.n(i),s=n(34195),u=n(11729),c=n(8085),d=n(99478),p=n(37998),f=n(96348),g=n(27305),h=n(47225),m=n(43605),v=n(92416),A=n(15664),y=n(59615),E=(n(2892),n(25440),n(28462)),b=n(49833),_=(n(42762),n(15941)),C=n(58969),w=function(){return _.Ik().shape({level:_.Yj().required(\"Level required\"),geoHierarchyName:_.Yj().min(2,C.N.GEOHIERARCHY_NAME_MIN).max(30,C.N.GEOHIERARCHY_NAME_MAX).trim(\"Starting spaces are not allowed\").matches(/^[A-Za-z ]*$/,\"Please enter valid Geo Hierarchy Name\").required(\"Geo Hierarchy Name required\")})},S=n(14073),T=n(6347),O=n(88084),D=n(64121);const R=function(e){var t=e.formikProps,n=e.isEditingMode,a=e.levelData,i=e.setSelectedLevel,u=t.values,c=t.setFieldValue,d=(0,s.Bd)().t;return l().createElement(o.A,{direction:\"row\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(S.A,{variant:\"subtitle2\"},\"\".concat(d(\"LEVEL\"),\"*\")),l().createElement(O.D0,{name:\"level\"},function(){return l().createElement(D.A,{name:\"level\",onChange:function(e,t){i(t),c(\"level\",t.label)},options:a,labelKey:\"label\",label:\"level\",selectedOption:u.level,value:u.level,defaultLabel:d(\"SELECT_LEVEL\"),isDisabled:n})}),l().createElement(T.A,{error:!0},l().createElement(O.Kw,{name:\"level\"}))),l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(S.A,{variant:\"subtitle2\"},\"\".concat(d(\"GEO_HIERARCHY_NAME\"),\"*\")),l().createElement(O.D0,{name:\"geoHierarchyName\",type:\"text\",className:\"inputField\",onChange:function(e){return c(\"geoHierarchyName\",e.target.value)},placeholder:\"\".concat(d(\"ENTER_NAME\")),defaultValue:null==u?void 0:u.geoHierarchyName}),l().createElement(T.A,{error:!0},l().createElement(O.Kw,{name:\"geoHierarchyName\"}))))};var N=n(13075);function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e){var t,n,r=e.isDrawerOpen,o=void 0!==r&&r,a=e.onRequestClose,u=void 0===a?function(){}:a,d=e.isEditingMode,p=void 0!==d&&d,f=e.SelectedRowItem,g=void 0===f?{}:f,m=(0,i.useContext)(h.v),v=m.BackOfficeProps,A=v.globalStore.User,y=v.baseurl,_=m.triggerShowLoader,C=m.triggerToastMsg,S=y,T=null!==(t=null==A?void 0:A.AccessToken)&&void 0!==t?t:\"\",O=null==A||null===(n=A.selectedCountry)||void 0===n?void 0:n.countryCode,D=L((0,i.useState)({level:\"\",geoHierarchyName:\"\"}),2),P=D[0],M=D[1],x=L((0,i.useState)({label:\"\",value:\"\"}),2),I=x[0],k=x[1],B=L((0,i.useState)([]),2),F=B[0],j=B[1],H=(0,s.Bd)().t;(0,i.useEffect)(function(){p?(M({level:g.level_dto.label_name,geoHierarchyName:g.name}),k({id:g.level_dto.id,label:g.level_dto.label_name,value:g.level_dto.sequence})):M({level:\"\",geoHierarchyName:\"\"})},[p]),(0,i.useEffect)(function(){G()},[]);var U=function(e){var t,n={};n.domain=S,n.endPoint=c.p.SAVE_GEOHIERARCHY,n.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(T)},n.payLoad={name:e.geoHierarchyName,level_dto:{id:I.id,sequence:I.value,label_name:I.label}},n.triggerLoader=_,null===(t=(0,b.g1)(n))||void 0===t||t.then(function(e){var t,n;if(200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status))return u(!0),void C({message:e.data,type:\"success\"});throw C({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(){})},Y=function(e){var t,n={};n.domain=S,n.endPoint=c.p.UPDATE_GEOHIERARCHY.replace(\":Id\",g.id),n.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(T)},n.payLoad={name:\"\".concat(e.geoHierarchyName),level_dto:{id:Number(I.id),sequence:Number(I.value),label_name:\"\".concat(I.label)}},n.triggerLoader=_,null===(t=(0,b.aU)(n))||void 0===t||t.then(function(e){var t,n;if(200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status))return u(!0),void C({message:e.data,type:\"success\"});throw C({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.errorMessage)}).catch(function(){})},G=function(){var e={};e.domain=S,e.endPoint=c.p.GETLEVEL_DETAILS,e.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(T)},e.triggerLoader=_,(0,b.jg)(e).then(function(e){var t=e.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.label_name,value:null==e?void 0:e.sequence}});j(t)}).catch(function(){})};return l().createElement(E.A,{isDrawerOpen:o,onRequestClose:u,id:\"add-geo-hierarchy-drawer\",title:H(p?\"EDIT_GEO_HIERARCHY\":\"ADD_GEO_HIERARCHY\"),initialValues:P,validationSchema:w,onSubmit:function(e){return(0,N.f5)(e,p,U,Y)},fields:function(e){return l().createElement(R,{formikProps:e,isEditingMode:p,levelData:F,setSelectedLevel:k})},submitLabel:H(p?\"UPDATE\":\"SAVE\"),cancelLabel:H(\"CANCEL\")})};var x=n(8676),I=n(51545),k=(0,x.A)(I.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\"}});function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t,n,E,_=e.RBACControls,C=(0,g.w)(_),w=C.hasCreateAccess,S=C.hasUpdateAccess,T=(0,i.useContext)(h.v),O=T.BackOfficeProps,D=O.globalStore.User,R=O.baseurl,N=T.triggerShowLoader,L=R,P=null==D||null===(t=D.UserDetails)||void 0===t?void 0:t.user_id,x=null!==(n=null==D?void 0:D.AccessToken)&&void 0!==n?n:\"\",I=null==D||null===(E=D.selectedCountry)||void 0===E?void 0:E.countryCode,F=B((0,i.useState)(!1),2),j=F[0],H=F[1],U=B((0,i.useState)(!1),2),Y=U[0],G=U[1],z=B((0,i.useState)({}),2),V=z[0],q=z[1],W=B(l().useState(d.M5),2),Q=W[0],K=W[1],$=B((0,i.useState)([]),2),X=$[0],J=$[1],Z=(0,s.Bd)().t;(0,i.useEffect)(function(){ee()},[\"\",Q,0,10]);var ee=function(){var e,t={};t.domain=L,t.endPoint=c.p.GET_GEOHIERARCHY_LIST,t.payLoad={pageNo:0,pageSize:10},Q&&(t.payLoad.sort=\"1\"===Q?\"asc\":\"desc\"),t.customHeaders={\"country-code\":I,\"user-id\":P,Authorization:\"Bearer \".concat(x)},t.triggerLoader=N,null===(e=(0,b.no)(t))||void 0===e||e.then(function(e){if((null==e?void 0:e.geo_hierarchy_view_List.length)>0){var t=null==e?void 0:e.geo_hierarchy_view_List.map(function(e,t){return{id:e.id,name:e.name,level_label_name:e.level_label_name,parent_id:e.parent_id,parent_name:e.parent_name}});J(t)}else J([])}).catch(function(e){})};return l().createElement(k,null,l().createElement(r.A,null,l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,null,l().createElement(v.A,{routePathName:[{name:f.F_.Masters,path:f.fp.Masters},{name:f.F_.GeoHierarchy,path:f.fp.GeoHierarchy}]})),l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mb:2,gap:2},l().createElement(y.A,{sortBy:Q,onSort:function(e){return K(null==e?void 0:e.toString())},showLastUpdatedOn:!0}),l().createElement(A.A,{variant:\"contained\",buttonName:Z(\"ADD_NEW_BUTTON\"),disabled:!w,onButtonClick:function(){return H(!0)},fullwidth:!1,color:\"primary\"}))),l().createElement(a.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},l().createElement(m.A,{rows:X,columnDefs:p.hP,frameworkComponents:{EditActionComponent:function(e){var t=e.column,n=e.data,r={edit:Z(\"EDIT\")};return l().createElement(\"button\",{type:\"button\",id:\"editItem\",className:\"smart-agro-lite-green-label \".concat(S?\"\":\"disabled-label\"),onClick:function(){S&&function(e){var t,n={},r=(0,u.A)({baseUrl:L,endpointUrl:c.p.GET_GEOHIERARCHY_BY_ID,params:{Id:e.id}});n.customHeaders={\"country-code\":I,Authorization:\"Bearer \".concat(x)},n.endPoint=r,n.triggerLoader=N,null===(t=(0,b.no)(n))||void 0===t||t.then(function(e){e&&(G(!0),H(!0),q(e))}).catch(function(e){})}(n)},onKeyDown:function(){},tabIndex:0,style:{background:\"none\",border:\"none\"}},r[t.colId])}}})),j&&l().createElement(M,{isDrawerOpen:j,onRequestClose:function(e){H(!1),e&&ee(),H(!1),G(!1),q(null)},isEditingMode:Y,SelectedRowItem:V})))}},28005:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>c}),n(2008),n(74423),n(26099),n(21699);var r=n(51545),o=n(81970),a=n.n(o),i=n(99478),l=n(92416),s=n(75007),u=n(36738);const c=function(e){var t=e.RBACControls,n=(null==t?void 0:t.length)>0&&(null==t?void 0:t.filter(function(e){var t;return null==e||null===(t=e.permissions)||void 0===t?void 0:t.includes(i.g2.READ)}));return a().createElement(s.N,null,a().createElement(r.A,{mb:2},a().createElement(l.A,null)),n&&a().createElement(u.A,{moduleData:n}))}},28028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return\"-\"+e.toLowerCase()}).toLowerCase()}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},28152:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s});var r=n(6347),o=n(88084),a=n(81970),i=n.n(a),l=function(e){var t=e.errName;return i().createElement(r.A,{error:!0},i().createElement(o.Kw,{name:t}))};const s=i().memo(l)},28161:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u});var r=n(67413),o=n(79071),a=n(76544),i=n(58312);const l=(0,n(38413).A)(\"MuiBox\",[\"root\"]),s=(0,a.A)(),u=(0,r.A)({themeId:i.A,defaultTheme:s,defaultClassName:l.root,generateClassName:o.A.generate})},28217:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>q,parseSalesHierarchy:()=>V}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(60739),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(34195),i=n(47767),l=n(47225),s=n(13075),u=n(79043),c=n(74072),d=n(19940),p=n(32027),f=(n(28706),n(90891)),g=n(90815),h=n(14073),m=n(47839),v=n(11641),A=n(28161),y=n(6347),E=n(60538),b=n(88084),_=n(56203),C=n(96348),w=n(17630),S=n(92416),T=n(15664),O=n(64121),D=n(37306),R=n(27776),N=n(15941),L=function(){return N.Ik().shape({role:N.Yj().required((0,s.Tl)(\"ROLE_SELECT\"))})},P=(0,n(6398).A)({AdminConfigFields:{height:\"calc(100vh - 220px)\",\"& .MuiFormControlLabel-root.Mui-disabled \":{cursor:\"not-allowed\"}},AdminConfig:{padding:\"24px\",minHeight:\"60px\",borderRadius:\"6px\",\"& .btn-icon\":{fontSize:\"14px !important\"},marginBottom:\"10px\"},adminConfigInputWrapper:{minWidth:\"240px\"},AdminConfigTooltip:{\"& .MuiTooltip-popper\":{backgroundColor:w.w.palette.grey[500]}}});function M(e){return M=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},M(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=M(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==M(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B=function(e){var t=e.initialForm,n=e.saveAttendanceTypes,r=e.setSelectedRoleValue,a=e.fetchAdminAttendanceData,i=e.roleData,l=e.hasShowPortfolio,s=e.setSelectedPortfolioValue,u=e.selectedRoleValue,c=e.portfolioData,d=e.attendanceTypes,p=e.setEnablePopup,N=e.navigate,M=e.renderConfirmationPopupToResetForm,x=P(),k={ATTENDANCE_TYPE:(0,_.t)(\"CHOOSE_ATTENDANCE_TYPE\"),ENABLE_APPROVAL:(0,_.t)(\"ATTENDANCE_APPROVAL_ENABLE\")},B=function(e){var t=k[e]||\"\";return o().createElement(g.A,{direction:\"row\",spacing:2,alignItems:\"center\"},o().createElement(h.A,{variant:\"subtitle1\",color:w.T.textColor},\"\".concat((0,_.t)(e))),o().createElement(m.A,{title:\"\".concat((0,_.t)(t)),placement:\"right\",arrow:!0},o().createElement(v.A,null,\" \",o().createElement(f.A,null),\" \")))};return o().createElement(R.T,null,o().createElement(b.l1,{initialValues:t,enableReinitialize:!0,validationSchema:L,onSubmit:function(e){n(e)}},function(e){var t,n,R,L,P,k,F,j,H=e.values,U=e.resetForm,Y=e.setFieldValue,G=e.dirty;return o().createElement(b.lV,null,o().createElement(A.A,null,o().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(A.A,null,o().createElement(S.A,{routePathName:[{name:C.F_.Configurations,path:C.fp.Configurations},{name:C.F_.Admin_Config,path:C.fp.Admin_Config}]})))),o().createElement(A.A,{className:x.AdminConfigFields},o().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},o().createElement(A.A,{className:x.adminConfigInputWrapper,mt:4},o().createElement(h.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"SELECT_ATTENDANCE_MARKER\"))),o().createElement(b.D0,{name:\"role\"},function(){return o().createElement(O.A,{name:\"selectRole\",onChange:function(e,t){Y(\"role\",null==t?void 0:t.value),r(t),a(null==t?void 0:t.id,Y,!0,null==H?void 0:H.portfolio),a(null==t?void 0:t.id,Y,!1,null==H?void 0:H.portfolio)},options:i,labelKey:\"value\",label:\"SelectRole\",selectedOption:H.role,value:H.role,defaultLabel:\"Select Attendance Marker\"})}),o().createElement(y.A,{error:!0},o().createElement(b.Kw,{name:\"role\"}))),l&&o().createElement(A.A,{className:x.adminConfigInputWrapper,mt:4},o().createElement(h.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"SELECT_PORTFOLIO\"))),o().createElement(b.D0,{name:\"portfolio\"},function(){return o().createElement(O.A,{name:\"portfolio\",onChange:function(e,t){Y(\"portfolio\",null==t?void 0:t.value),s(t),a(null==u?void 0:u.id,Y,!0,null==t?void 0:t.value),a(null==u?void 0:u.id,Y,!1,null==t?void 0:t.value)},options:c,labelKey:\"value\",label:\"portfolio\",selectedOption:H.portfolio,value:H.portfolio,defaultLabel:\"\".concat((0,_.t)(\"SELECT_PORTFOLIO\"))})}),o().createElement(y.A,{error:!0},o().createElement(b.Kw,{name:\"portfolio\"})))),o().createElement(E.A,{className:x.AdminConfig},o().createElement(A.A,{className:x.adminConfigInputWrapper},B(\"ATTENDANCE_TYPE\"),o().createElement(g.A,{justifyContent:\"start\",direction:\"row\",spacing:2,ml:.5},null==d?void 0:d.map(function(e){var t;return o().createElement(D.A,{key:null==e?void 0:e.id,checked:(null==e?void 0:e.value)===(null==H||null===(t=H.attendanceData)||void 0===t?void 0:t.attendance_type),label:e.name,name:\"attendanceType\",onChange:function(e){var t;Y(\"attendanceData\",I(I({},H.attendanceData),{},{attendance_type:e,enable_approval:\"EVENT_BASED_ATTENDANCE\"===e||\"NO_ATTENDANCE\"===e?\"false\":null==H||null===(t=H.attendanceData)||void 0===t?void 0:t.enable_approval}))},value:null==e?void 0:e.value,disabled:!G})})))),o().createElement(E.A,{className:x.AdminConfig},o().createElement(g.A,{className:x.adminConfigInputWrapper,direction:\"row\",justifyContent:\"start\",spacing:2},B(\"ENABLE_APPROVAL\"),o().createElement(D.A,{checked:\"true\"===(null==H||null===(t=H.attendanceData)||void 0===t?void 0:t.enable_approval),label:\"Yes\",name:\"Yes\",onChange:function(){return Y(\"attendanceData\",I(I({},H.attendanceData),{},{enable_approval:\"true\"}))},value:\"Yes\",disabled:!G||\"NO_ATTENDANCE\"===(null==H||null===(n=H.attendanceData)||void 0===n?void 0:n.attendance_type)}),o().createElement(D.A,{checked:\"false\"===(null==H||null===(R=H.attendanceData)||void 0===R?void 0:R.enable_approval),label:\"No\",name:\"No\",onChange:function(){return Y(\"attendanceData\",I(I({},H.attendanceData),{},{enable_approval:\"false\"}))},value:\"No\",disabled:!G||\"NO_ATTENDANCE\"===(null==H||null===(L=H.attendanceData)||void 0===L?void 0:L.attendance_type)}))),o().createElement(E.A,{className:x.AdminConfig},o().createElement(g.A,{className:x.adminConfigInputWrapper,direction:\"row\",justifyContent:\"start\",spacing:2},o().createElement(g.A,{direction:\"row\",spacing:2,alignItems:\"center\"},o().createElement(h.A,{variant:\"subtitle1\",color:w.T.textColor},\"\".concat((0,_.t)(\"ENABLE_LEAVES_COMPOFF\"))),o().createElement(m.A,{title:\"\".concat((0,_.t)(\"Enable or Disable Leaves/Comp-off\")),placement:\"right\",arrow:!0},o().createElement(v.A,null,\" \",o().createElement(f.A,null),\" \"))),o().createElement(D.A,{checked:\"true\"===(null==H||null===(P=H.attendanceData)||void 0===P?void 0:P.enable_leaves),label:\"Yes\",name:\"Yes\",onChange:function(){return Y(\"attendanceData\",I(I({},H.attendanceData),{},{enable_leaves:\"true\"}))},value:\"Yes\",disabled:!G||\"NO_ATTENDANCE\"===(null==H||null===(k=H.attendanceData)||void 0===k?void 0:k.attendance_type)}),o().createElement(D.A,{checked:\"false\"===(null==H||null===(F=H.attendanceData)||void 0===F?void 0:F.enable_leaves),label:\"No\",name:\"No\",onChange:function(){return Y(\"attendanceData\",I(I({},H.attendanceData),{},{enable_leaves:\"false\"}))},value:\"No\",disabled:!G||\"NO_ATTENDANCE\"===(null==H||null===(j=H.attendanceData)||void 0===j?void 0:j.attendance_type)})))),o().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},o().createElement(g.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},o().createElement(T.A,{buttonName:(0,_.t)(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return G?p(G):N(\"/\".concat(C.fp.SmartAgro,\"/\").concat(C.fp.Configurations))}}),o().createElement(T.A,{buttonName:(0,_.t)(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){},type:\"submit\"}))),M(U))}))};function F(e){return F=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},F(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=F(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==F(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||G(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function G(e,t){if(e){if(\"string\"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var V=function(e){return null==e?void 0:e.sales_hierarchy_view_List.map(function(e){return{value:e.code,label:e.name,id:e.id}})};const q=function(){var e,t=(0,r.useContext)(l.v),n=t.BackOfficeProps,f=n.globalStore.User,g=n.baseurl,h=t.triggerShowLoader,m=t.triggerToastMsg,v=(0,i.Zp)(),A=(0,a.Bd)().t,y=(0,p.i)(f).hasShowPortfolio,E=Y((0,r.useState)(!1),2),b=E[0],_=E[1],C=Y((0,r.useState)([]),2),w=C[0],S=C[1],T=Y((0,r.useState)([]),2),O=T[0],D=T[1],R={role:\"\",portfolio:(null==f||null===(e=f.selectedBusinessUnit)||void 0===e?void 0:e.portfolio_code)||\"DEFAULT\",attendanceData:{attendance_type:d.Sn.MANUAL_ATTENDANCE},hierarchyData:\"\"},N=Y((0,r.useState)([]),2),L=N[0],P=N[1],M=Y((0,r.useState)(),2),x=M[0],I=M[1],k=Y((0,r.useState)(),2),F=k[0],j=k[1],U=function(e){var t,n,r=null!=e&&null!==(t=e.hierarchyData)&&void 0!==t&&t.hierarchy_data?function(e){if(Array.isArray(e))return z(e)}(n=e.hierarchyData.hierarchy_data)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(n)||G(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}():[],o=[{marker_id:null==x?void 0:x.id,marker_code:null==x?void 0:x.value}];return 0===r.length?o:0===(null==r?void 0:r.filter(function(e){return(null==x?void 0:x.id)===e.marker_id})).length?(r.push(o[0]),r):null==r?void 0:r.map(function(e){return e.marker_id===(null==x?void 0:x.id)?H(H({},e),{},{marker_code:null==x?void 0:x.value}):e})},q=function(e,t){var n=null==t?void 0:t.filter(function(t){return(null==t?void 0:t.key)===e});return n.length>0?n[0]:[]},W=function(e){var t;m({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})};return(0,r.useEffect)(function(){var e,t;null===(e=(0,c.$c)(f,g,h))||void 0===e||e.then(function(e){if(!(0,s.mN)(e))throw new Error(e.error);if(!(e.data.sales_hierarchy_view_List.length>0))throw new Error(A(\"SALES_HIERARCHY_API_FAILED\"));var t=V(e.data);S(t)}).catch(function(e){W(e)}),y&&(null===(t=(0,c.fx)(f,g,h))||void 0===t||t.then(function(e){var t;if(!(0,s.mN)(e))throw new Error(e.error);if(!((null==e||null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.length)>0))throw new Error(A(\"SALES_HIERARCHY_API_FAILED\"));var n,r=null==e||null===(n=e.data)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.map(function(e){return{value:e.code,label:e.name,id:e.id}});D(r)}).catch(function(e){W(e)})),(0,c.Xh)(f,g,h).then(function(e){if(!(0,s.mN)(e))throw new Error(e.error);if(e.data.length>0){var t=e.data.map(function(e){return{name:e.name,value:e.value}});P(t)}}).catch(function(e){W(e)})},[]),o().createElement(B,{initialForm:R,saveAttendanceTypes:function(e){var t=function(e){var t,n,r,o,a,i,l;return[{key:d.DG.ATTENDANCE_TYPE,value:null==e||null===(t=e.attendanceData)||void 0===t?void 0:t.attendance_type,marker_id:null==x?void 0:x.id,portfolio_code:(0,s.gN)(null==F?void 0:F.value,null==f||null===(n=f.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code,\"DEFAULT\")},{key:d.DG.ATTENDANCE_APPROVAL_REQ,value:null==e||null===(r=e.attendanceData)||void 0===r?void 0:r.enable_approval,marker_id:null==x?void 0:x.id,portfolio_code:(0,s.gN)(null==F?void 0:F.value,null==f||null===(o=f.selectedBusinessUnit)||void 0===o?void 0:o.portfolio_code,\"DEFAULT\")},{key:d.DG.ATTENDANCE_ROLE,value:JSON.stringify(U(e)),marker_id:null,portfolio_code:(0,s.gN)(null==F?void 0:F.value,null==f||null===(a=f.selectedBusinessUnit)||void 0===a?void 0:a.portfolio_code,\"DEFAULT\")},{key:d.DG.ENABLE_COMP_OFF,value:null==e||null===(i=e.attendanceData)||void 0===i?void 0:i.enable_leaves,marker_id:null==x?void 0:x.id,portfolio_code:(0,s.gN)(null==F?void 0:F.value,null==f||null===(l=f.selectedBusinessUnit)||void 0===l?void 0:l.portfolio_code,\"DEFAULT\")}]}(e);(0,c.LE)(f,g,h,t).then(function(e){var t=(0,s.mN)(e);m({message:t?e.data:e.data.error,type:t?\"success\":\"error\"})}).catch(function(e){W(e)})},setSelectedRoleValue:I,fetchAdminAttendanceData:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";(0,c.GW)(f,g,e,h,n,r).then(function(e){if(!(0,s.mN)(e))throw new Error(e.error);if(e.data.length>0)if(n){var r,o,a,i={attendance_type:null===(r=q(d.DG.ATTENDANCE_TYPE,null==e?void 0:e.data))||void 0===r?void 0:r.value,enable_approval:null===(o=q(d.DG.ATTENDANCE_APPROVAL_REQ,null==e?void 0:e.data))||void 0===o?void 0:o.value,enable_leaves:null===(a=q(d.DG.ENABLE_COMP_OFF,null==e?void 0:e.data))||void 0===a?void 0:a.value};t(\"attendanceData\",i)}else{var l;t(\"hierarchyData\",{hierarchy_data:JSON.parse(null===(l=q(d.DG.ATTENDANCE_ROLE,null==e?void 0:e.data))||void 0===l?void 0:l.value)})}}).catch(function(e){W(e)})},roleData:w,hasShowPortfolio:y,setSelectedPortfolioValue:j,selectedRoleValue:x,portfolioData:O,attendanceTypes:L,setEnablePopup:_,navigate:v,renderConfirmationPopupToResetForm:function(e){return o().createElement(u.B,{isVisible:b,message:\"\".concat(A(\"CONFIRMATION_TEXT\")),onRequestClose:function(){return _(!1)},onButtonClick:function(){e(),I({}),j({}),_(!1)}})}})}},28298:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-ca\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"YYYY-MM-DD\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")}})}(n(95093))},28303:(e,t,n)=>{var r=n(56110)(n(9325),\"WeakMap\");e.exports=r},28310:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{RetailersRootRoute:()=>Ne,default:()=>Le}),n(28706),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(13075),s=n(27305),u=n(84189),c=(n(52675),n(89463),n(2259),n(45700),n(2008),n(50113),n(48980),n(51629),n(23418),n(64346),n(72712),n(34782),n(15086),n(89572),n(23288),n(62010),n(2892),n(9868),n(67945),n(84185),n(83851),n(81278),n(79432),n(27495),n(38781),n(25440),n(5746),n(23500),n(48408),n(14073)),d=n(60538),p=n(80663),f=n(51545),g=n(56203),h=n(8085),m=n(34358),v=n(99478),A=n(17630),y=n(47225),E=n(43605),b=n(92416),_=n(15664),C=n(28161),w=n(90815),S=n(6347),T=n(88084),O=n(36874),D=n(64121),R=(n(87220),n(15941)),N=function(){return R.Ik().shape({planner_target_volume:R.Yj().required(\"Planned Volume is required\").matches(/^\\d+(\\.\\d{1,2})?$/,\"Planned Volume must be a valid number\").test(\"min-value\",\"Planned Volume must be at least 1\",function(e){return Number.parseFloat(e)>=1}).test(\"max-value\",\"Planned Volume cannot exceed 99,999\",function(e){return Number.parseFloat(e)<=99999}),brand_name:R.Ik().test(\"is-not-empty\",\"Brand is required\",function(e){return Object.keys(e).length>0})})},L=n(34195);function P(e){return P=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},P(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=P(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==P(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,r=e.onAddBgpDetails,a=e.shopName,i=e.brandNames,l={shop_name:a,brand_name:{},planner_target_volume:\"\"},s=(0,L.Bd)().t;return o().createElement(O.A,{isDrawerOpen:t,anchor:\"right\"},o().createElement(C.A,{className:\"popupMain \"},o().createElement(w.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},o().createElement(c.A,{component:\"h1\",variant:\"h1\"},s(\"ADD_BRAND_TARGET\")),o().createElement(C.A,{onClick:n},o().createElement(c.A,{className:\"icon-close closeIcon\"}))),o().createElement(T.l1,{initialValues:l,validationSchema:N,enableReinitialize:!0,onSubmit:function(e){var t,n,o,a;r(x(x({},e),{},{brand_name:null==e||null===(t=e.brand_name)||void 0===t?void 0:t.label,brand_id:null==e||null===(n=e.brand_name)||void 0===n?void 0:n.value,target_value:null!=e&&null!==(o=e.brand_name)&&void 0!==o&&o.price&&null!=e&&e.planner_target_volume?Number((null==e||null===(a=e.brand_name)||void 0===a?void 0:a.price)*(null==e?void 0:e.planner_target_volume)/1e5).toFixed(2):\"\"}))}},function(e){var t=e.values,r=e.setFieldValue;return e.errors,o().createElement(T.lV,{className:\"popupContent\"},o().createElement(w.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},o().createElement(C.A,{width:\"100%\"},o().createElement(c.A,{variant:\"subtitle2\"},s(\"SHOPNAME\")),o().createElement(T.D0,{name:\"shop_name\",type:\"text\",className:\"inputField\",onChange:function(e){return r(\"shop_name\",e.target.value)},placeholder:s(\"ENTER_SHOP_NAME\"),defaultValue:null==t?void 0:t.shop_name,disabled:!0}),o().createElement(S.A,{error:!0},o().createElement(T.Kw,{name:\"shop_name\"}))),o().createElement(C.A,{width:\"100%\"},o().createElement(c.A,{variant:\"subtitle2\"},s(\"BRAND\")),o().createElement(T.D0,{name:\"brand_name\"},function(){var e,n;return o().createElement(D.A,{name:\"brand_name\",onChange:function(e,t){r(\"brand_name\",t)},options:i,labelKey:\"label\",label:\"brand_name\",selectedOption:null===(e=t.brand_name)||void 0===e?void 0:e.label,value:null==t||null===(n=t.brand_name)||void 0===n?void 0:n.label,defaultLabel:\"Select Brand\"})}),o().createElement(S.A,{error:!0},o().createElement(T.Kw,{name:\"brand_name\"})))),o().createElement(w.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},o().createElement(C.A,{width:\"50%\"},o().createElement(c.A,{variant:\"subtitle2\"},s(\"PLANNED_VOLUME\")),o().createElement(T.D0,{name:\"planner_target_volume\",type:\"text\",className:\"inputField\",onChange:function(e){return r(\"planner_target_volume\",e.target.value)},placeholder:s(\"ENTER_PLANNED_VOLUME\"),defaultValue:null==t?void 0:t.shop_name}),o().createElement(S.A,{error:!0},o().createElement(T.Kw,{name:\"planner_target_volume\"})))),o().createElement(w.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},o().createElement(_.A,{variant:\"outlined\",buttonName:s(\"CANCEL\"),onButtonClick:n,fullwidth:!1,color:\"secondary\"}),o().createElement(_.A,{dataTestId:\"add-button\",variant:\"contained\",buttonName:s(\"ADD\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))})))};var B=n(77284),F=n(11848),j=n(43457),H=(0,F.Ay)(C.A)(function(e){var t=e.theme;return{animation:\"\".concat(j._A,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",paddingBottom:\"12px\",overflowY:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .MuiTypography-subtitle1\":{padding:\"0px  !important\"},\"& .inputField\":{color:\"#14151C\",fontSize:\"14px\",padding:\"10px\",fontFamily:\"NotoSans-Regular\",border:\"1px solid #C2C7D0\",borderRadius:\"4px\",width:\"50% \",height:30,backgroundColor:\"\".concat(t.palette.secondary.main),\"&:focus-visible\":{outline:\"none\"},\"&.disabledInput\":{opacity:\"0.5\",cursor:\"not-allowed\"}},\"& .plannerInput\":{marginTop:\"-12px !important\"}}}),U=n(77060),Y=n(70380),G=n(98752),z=n(27386),V=(n(60739),n(95692)),q=function(e){var t,n,r,o,a,i=e.User,s=e.baseurl,u=e.triggerShowLoader,c=e.selectedFile,d=e.onUploadProgress,p={};return p.domain=s,p.endPoint=h.p.UPLOAD_BRANDS,p.customHeaders={\"user-id\":null==i||null===(t=i.UserDetails)||void 0===t?void 0:t.user_id,\"bu-id\":\"\".concat(null==i||null===(n=i.selectedBusinessUnit)||void 0===n?void 0:n.bu_id),\"country-code\":null==i||null===(r=i.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==i?void 0:i.AccessToken)},p.onUploadProgress=function(e){return d(e)},p.payLoad=(o=c,(a=new FormData).append(\"file\",o),a.append(\"data\",JSON.stringify(o)),a),p.triggerLoader=u,new Promise(function(e,t){var n;null===(n=V.N.uploadFile(p))||void 0===n||n.then(function(n){var r,o;if(null!=n&&null!==(r=n.data)&&void 0!==r&&r.errorMessage&&t(new Error(null==n||null===(o=n.data)||void 0===o?void 0:o.errorMessage)),(0,l.mN)(n))return e(n)}).catch(function(e){return t(new Error(e.message))})})};function W(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||K(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function K(e,t){if(e){if(\"string\"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const X=function(e){var t,n,a,i=e.isDrawerOpen,l=void 0!==i&&i,s=e.onRequestClose,u=void 0===s?function(){}:s,d=e.retailerDetails,p=void 0===d?{}:d,f=e.setListData,g=e.setIsUploadedBrand,A=e.brandNames,E=(0,L.Bd)().t,b=(0,r.useContext)(y.v),S=b.BackOfficeProps,T=S.globalStore.User,D=S.baseurl,R=b.triggerShowLoader,N=b.triggerToastMsg,P=(0,U.A)().uploadFileWithHeaders,M=Q((0,r.useState)(null),2),x=M[0],I=M[1],k=Q((0,r.useState)(\"\"),2),B=k[0],F=k[1];return o().createElement(O.A,{isDrawerOpen:l,anchor:\"right\"},o().createElement(C.A,{className:\"popupMain\"},o().createElement(w.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},o().createElement(c.A,{variant:\"h5\",fontSize:24,fontWeight:500},E(\"UPLOAD_BRAND_TARGET\")),o().createElement(C.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return u(!1)}},o().createElement(c.A,{className:\"icon-close closeIcon\"}))),o().createElement(w.A,{className:\"popupContent\"},o().createElement(C.A,{className:\"inputs-cards\"},o().createElement(C.A,{className:\"cards-header-wrapper\"},o().createElement(w.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1,justifyContent:\"space-between\"},o().createElement(w.A,{direction:\"row\",alignItems:\"center\",gap:2},o().createElement(c.A,{component:\"span\",className:\"round-badge\"},\"1\"),o().createElement(c.A,{variant:\"h6\",fontSize:14,fontWeight:500},E(\"DOWNLOAD_TEMEPLATE\"))),o().createElement(_.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:null!==(t=E(\"DOWNLOAD\"))&&void 0!==t?t:\"\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){var e,t,n,r,o;return(0,m.Ti)({baseUrl:\"\".concat(D).concat(h.p.DOWNLOAD_BRANDS,\"?shop_name=\").concat(null==p?void 0:p.shop_name,\"&portfolio_code=\").concat(null!=T&&null!==(e=T.selectedBusinessUnit)&&void 0!==e&&e.portfolio_enable&&null!=T&&null!==(t=T.selectedBusinessUnit)&&void 0!==t&&t.portfolio_code?null==T||null===(n=T.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code:\"DEFAULT\",\"&year=\").concat(Y.Ax.currentYear),options:{headers:{\"country-code\":null==T||null===(r=T.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==T?void 0:T.selectedBusinessUnit.bu_id,\"user-id\":null==T||null===(o=T.UserDetails)||void 0===o?void 0:o.user_id,Authorization:\"Bearer \".concat(null==T?void 0:T.AccessToken)},responseType:\"arraybuffer\"}}).then(function(e){R(!1)}).catch(function(){R(!1),N({message:E(\"DOWNLOAD_FAILED\"),type:\"error\"})})}})),o().createElement(C.A,{className:\"inputs-cards\"},o().createElement(C.A,{className:\"cards-header-wrapper\"},o().createElement(w.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},o().createElement(c.A,{component:\"span\",className:\"round-badge\"},\"2\"),o().createElement(c.A,{variant:\"h6\",fontSize:14,fontWeight:500},E(\"UPLOAD_FILE\")))),o().createElement(C.A,{className:\"input-card-body\"},o().createElement(z.A,{onUploadSuccess:function(e){!function(e){F(!1);var t=e[0];I(t)}(e)},selectedFile:x,onRemoveHandler:function(){return I(null)}}),B&&o().createElement(c.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},B))))),o().createElement(w.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},o().createElement(_.A,{variant:\"outlined\",buttonName:null!==(n=E(\"CANCEL\"))&&void 0!==n?n:\"\",onButtonClick:function(){u(!1)},fullwidth:!1,color:\"secondary\"}),o().createElement(_.A,{variant:\"contained\",buttonName:null!==(a=E(\"UPLOAD\"))&&void 0!==a?a:\"\",fullwidth:!1,color:\"primary\",onButtonClick:function(){x?(0,G.TC)(x.name)?P(q,{User:T,baseurl:D,triggerShowLoader:R,selectedFile:x}).then(function(e){if(null!=e&&e.data){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{brand_name:null==e?void 0:e.brandName,planner_target_volume:null==e?void 0:e.targetVolume,brand_id:null==e?void 0:e.brandId,target_value:(t=e,r=null==A||null===(n=A.find(function(e){return e.value===(null==t?void 0:t.brandId)}))||void 0===n?void 0:n.price,o=(null==t?void 0:t.targetVolume)*r/1e5,Number(o).toFixed(2)),crop_name:null==e?void 0:e.cropName};var t,n,r,o});f(function(e){return[].concat(W(e),W(n))}),I(null),u(!0),g(!0),N({message:v.PB,type:\"success\"})}else N({message:v.or,type:\"error\"})}).catch(function(e){R(!1),N({message:e.message,type:\"error\"})}):F(E(\"VALID_FILE_ERROR\")):F(E(\"UPLOAD_CONDITION_TEXT\"))}})))))};var J=n(21007);const Z=function(e){var t=e.label,n=e.value;return o().createElement(C.A,null,o().createElement(c.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:A.w.palette.grey[400]},t),o().createElement(c.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:A.w.palette.grey[900]},n))};var ee=n(67034),te=n(78208),ne=n(89994);function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ae=(0,r.memo)(function(e){var t=e.value,n=e.onChange,a=e.index,i=e.activeRowIndex,l=e.isDisabled,s=e.isZeroPlannedVolumeAllowed,u=re((0,r.useState)(t),2),c=u[0],d=u[1],p=re((0,r.useState)(\"\"),2),f=p[0],h=p[1],m=function(e){return e?/^\\d+(\\.\\d{1,2})?$/.test(e)?!s&&Number(e)<=0?(0,g.t)(\"PLANNER_VOLUME_MIN_VALUE_EXCEEDED\"):Number(e)>99999?(0,g.t)(\"PLANNER_VOLUME_MAX_VALUE_EXCEEDED\"):\"\":(0,g.t)(\"PLANNER_VOLUME_INVALID_FORMAT\"):(0,g.t)(\"PLANNER_VOLUME_REQUIRED\")};return(0,r.useEffect)(function(){d(t),h(m(t))},[t]),o().createElement(C.A,{width:\"100%\",className:\"table-input-filed \".concat(f?\"plannerInput\":\"\")},o().createElement(\"input\",{onChange:function(e){var t=e.target.value;d(t),n(t)},onBlur:function(){h(m(c))},autoFocus:a===i,value:c,className:\"inputField\",disabled:l,name:\"planner_target_volume\"}),f&&o().createElement(S.A,{error:!0},f))});ae.displayName=\"InputCellRenderer\";const ie=ae;var le=(0,r.memo)(function(e){var t=e.value,n=e.rowIndex,r=e.activeRowIndex,a=e.isDisabled,i=e.onValueChange,l=e.isZeroPlannedVolumeAllowed;return o().createElement(ie,{value:t,onChange:function(t){return i(t,e)},index:n,activeRowIndex:r,isDisabled:a,isZeroPlannedVolumeAllowed:l})});le.displayName=\"PlannedVolumeCellRenderer\";const se=le;function ue(e){return ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ue(e)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ue(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ue(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||he(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||he(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function he(e,t){if(e){if(\"string\"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ve=function(){var e,t,n,s,u,C,w=(0,a.Zp)(),S=(0,a.zy)(),T=o().createRef(),O=new URLSearchParams(S.search),D={status:O.get(\"status\"),shop_name:O.get(\"shop_name\"),mobile_number:O.get(\"mobile_number\"),hq:O.get(\"hq\"),hq_name:O.get(\"hq_name\"),uuid:O.get(\"retailer_uuid\"),retailer_bgp_id:O.get(\"retailer_bgp_id\"),hq_user_name:O.get(\"hq_user_name\"),parent_hq_user_name:O.get(\"parent_hq_user_name\"),portfolio_code:O.get(\"portfolio_code\"),tier:O.get(\"tier\")},R=(0,r.useContext)(y.v),N=R.BackOfficeProps,L=N.globalStore.User,P=N.baseurl,M=R.triggerShowLoader,x=R.triggerToastMsg,I=ge((0,r.useState)([]),2),F=I[0],j=I[1],U=ge((0,r.useState)(!1),2),Y=U[0],G=U[1],z=ge((0,r.useState)(!1),2),V=z[0],q=z[1],W=ge((0,r.useState)([]),2),Q=W[0],K=W[1],$=ge((0,r.useState)(!1),2),re=$[0],oe=$[1],ae=ge((0,r.useState)(!1),2),ie=ae[0],le=ae[1],ue=ge((0,r.useState)([]),2),ce=ue[0],pe=ue[1],he=ge((0,r.useState)(-1),2),me=he[0],ve=he[1],Ae=ge((0,r.useState)([]),2),ye=Ae[0],Ee=Ae[1],be=ge((0,r.useState)([]),2),_e=be[0],Ce=be[1],we=ge((0,r.useState)({}),2),Se=we[0],Te=we[1],Oe=ge((0,r.useState)(!1),2),De=Oe[0],Re=Oe[1],Ne=ge((0,r.useState)(!1),2),Le=Ne[0],Pe=Ne[1],Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"brand_id\";return null!=F&&F.length?e.filter(function(n,r){return-1===(null==e?void 0:e.slice(r+1).findIndex(function(e){return e[t]===n[t]}))}):[]},xe=Me(fe(F)),Ie=null===(e=Me(F))||void 0===e||null===(e=e.filter(function(e){return!(null!=e&&e.is_brand_mapping_deleted)}))||void 0===e?void 0:e.map(function(e){var t,n;return de(de({},e),{},{actual_value:((null!==(t=null==e?void 0:e.actual_value)&&void 0!==t?t:0)/1e5).toFixed(2),liquidation_volume:\"\".concat(100*(null==e?void 0:e.actual_volume)/(null==e?void 0:e.planner_target_volume)?null===(n=Number(100*(null==e?void 0:e.actual_volume)/(null==e?void 0:e.planner_target_volume)))||void 0===n?void 0:n.toFixed(2):100*(null==e?void 0:e.actual_volume)/(null==e?void 0:e.planner_target_volume),\"%\")})}),ke=function(e){return(null==D?void 0:D.status)===e},Be=function(){return null==xe?void 0:xe.find(function(e){return!(null!=e&&e.is_brand_mapping_deleted)&&(!/^\\d+(\\.\\d{1,2})?$/.test(null==e?void 0:e.planner_target_volume)||!(null!=e&&e.planner_target_volume)||!Le&&Number(null==e?void 0:e.planner_target_volume)<=0||Number(null==e?void 0:e.planner_target_volume)>99999)})},Fe=function(e,t){var n=[],r=[];t.forEachNode(function(t){var o;(null==t||null===(o=t.data)||void 0===o?void 0:o.brand_id)===e&&(r=[].concat(fe(ce),[de(de({},t.data),{},{is_brand_mapping_deleted:!0})])),n.push(t.data)});var o=(null==D?void 0:D.status)===v.vg.BGP_NOT_CREATED?fe(n.filter(function(t){return(null==t?void 0:t.brand_id)!==e})):[].concat(fe(r),fe(n.filter(function(t){return(null==t?void 0:t.brand_id)!==e})));j(o),pe(r)},je=function(e,t){return(null==t?void 0:t.find(function(t){return(null==t?void 0:t.key)===e}))||\"\"},He=function(e){return(null==e?void 0:e.planner_target_volume)!==(null==e?void 0:e.retailer_target_volume)&&0!==(null==e?void 0:e.retailer_target_volume)},Ue=(0,J.A)(function(e,t){var n,r,o,a;xe[t.rowIndex][t.colDef.field]=e,Ie[t.rowIndex][t.colDef.field]=e,Ie[t.rowIndex].target_value=(n=e,r=t.data,a=null==Q||null===(o=Q.find(function(e){return e.value===(null==r?void 0:r.brand_id)}))||void 0===o?void 0:o.price,Number(n*a/1e5).toFixed(2));var i=null==F?void 0:F.filter(function(e){return null==e?void 0:e.is_brand_mapping_deleted});j([].concat(fe(i),fe(Ie))),ve(t.rowIndex)},400),Ye=ke(v.vg.PENDING_FOR_RETAILER_ACCEPTANCE)||ke(v.vg.BGP_CREATED),Ge={headerName:\"\".concat((0,g.t)(\"PLANNED_VOLUME\"),\" (In Kg/Lt)\"),cellRendererFramework:se,cellRendererParams:function(e){return de({activeRowIndex:me,isDisabled:Ye,onValueChange:Ue,isZeroPlannedVolumeAllowed:Le},e)},field:\"planner_target_volume\",flex:1};return(0,r.useEffect)(function(){var e,t;ke(v.vg.BGP_NOT_CREATED)||(0,B.bu)(L,P,M,\"\".concat(null==D?void 0:D.retailer_bgp_id)).then(function(e){var t=null==e?void 0:e.map(function(e){return(null==D?void 0:D.status)===v.vg.PENDING_FOR_TM_APPROVAL?de(de({},e),{},{planner_target_volume:He(e)?null==e?void 0:e.retailer_target_volume:null==e?void 0:e.planner_target_volume,color:He(e)?\"#FFE4AE\":\"\"}):e});j(t)}),t=[(0,ne.Bn)(null==D?void 0:D.status),(0,ne.lQ)(null==D?void 0:D.status),v.Rk.IS_RETAILER_BGP_TOTAL_PLANNED_VALUE_REQUIRED,(0,ne.Jf)(null==D?void 0:D.status),v.Rk.IS_ZERO_BGP_PLANNED_VOLUME_ALLOWED],(0,te.C)(L,P,M,{moduleName:\"RETAILERS\",keys:t,roleId:null==L||null===(e=L.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId}).then(function(e){var t,n,r,o,a,i=null===(t=(0,l.Ws)((0,ne.Bn)(null==D?void 0:D.status),e))||void 0===t?void 0:t.value,s=null===(n=(0,l.Ws)((0,ne.lQ)(null==D?void 0:D.status),e))||void 0===n?void 0:n.value,u=null===(r=(0,l.Ws)((0,ne.Jf)(null==D?void 0:D.status),e))||void 0===r?void 0:r.value,c=null===(o=(0,l.Ws)(v.Rk.IS_RETAILER_BGP_TOTAL_PLANNED_VALUE_REQUIRED,e))||void 0===o?void 0:o.value,d=null===(a=(0,l.Ws)(v.Rk.IS_ZERO_BGP_PLANNED_VOLUME_ALLOWED,e))||void 0===a?void 0:a.value;Ee((0,l.AQ)(i?JSON.parse(i):null)),Ce((0,l.AQ)(s?JSON.parse(s):null)),Re(\"true\"===c),Pe(\"true\"===d),Te(u?JSON.parse(u):null)}).catch(function(){}),(0,B.$F)(L,P,M).then(function(e){var t=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.brandName,value:null==e?void 0:e.brandId,price:null==e?void 0:e.price}});K(t)}),(0,B.P6)(L,P,M,{moduleName:\"RETAILERS\",keys:[\"retailer_enable_bgp\",\"retailer_bgp_start_date\",\"retailer_bgp_end_date\"]}).then(function(e){var t,n,r,o=null===(t=je(\"retailer_bgp_start_date\",null==e?void 0:e.data))||void 0===t?void 0:t.value,a=null===(n=je(\"retailer_bgp_end_date\",null==e?void 0:e.data))||void 0===n?void 0:n.value,i=(null===(r=je(\"retailer_enable_bgp\",null==e?void 0:e.data))||void 0===r?void 0:r.isActive)&&(0,l.Lc)(o,a);q(i)})},[null==D?void 0:D.status]),o().createElement(H,{\"data-testid\":\"retailers-bgp-details\",\"data-deleted-rows\":ce.length},o().createElement(p.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(b.A,{routePathName:[{name:i.F_.Retailers,path:i.fp.Retailers},{name:i.F_.Retailers_Bgp,path:\"\".concat(i.fp.Retailers,\"/\").concat(i.fp.Retailers_Bgp)},{name:(null==D?void 0:D.status)===v.vg.BGP_NOT_CREATED?i.F_.BGPDetails:(null==D?void 0:D.status)===v.vg.PENDING_FOR_TM_APPROVAL?(0,g.t)(\"REVIEW_BGP_DETAILS\"):(0,g.t)(\"VIEW_BGP_DETAILS\"),path:i.fp.BGPDetails}]})),o().createElement(p.A,{flexDirection:\"row\",justifyContent:\"space-between\"},null==_e?void 0:_e.map(function(e){return o().createElement(Z,{key:null==e?void 0:e.headerName,label:null==e?void 0:e.headerName,value:null==D?void 0:D[null==e?void 0:e.field]})})),o().createElement(p.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},(null==Se?void 0:Se.isShowUploadButton)&&(ke(v.vg.BGP_NOT_CREATED)||ke(v.vg.PENDING_FOR_TM_APPROVAL))&&!ie&&V&&o().createElement(_.A,{variant:\"contained\",buttonName:(0,g.t)(\"UPLOAD_PLAN\"),onButtonClick:function(){return oe(!0)},fullwidth:!1,color:\"primary\"}),(null==Se?void 0:Se.isShowAddTargetButton)&&(ke(v.vg.BGP_NOT_CREATED)||ke(v.vg.PENDING_FOR_TM_APPROVAL))&&V&&o().createElement(_.A,{variant:\"contained\",buttonName:(0,g.t)(\"ADD_TARGET\"),onButtonClick:function(){return G(!0)},fullwidth:!1,color:\"primary\"}),(ke(v.vg.BGP_CREATED)||ke(v.vg.PENDING_FOR_RETAILER_ACCEPTANCE))&&o().createElement(_.A,{variant:\"contained\",buttonName:(0,g.t)(\"DOWNLOAD\"),onButtonClick:function(){var e,t=\"\".concat(h.p.GET_RETAILER_BGP_DOWNLOADS,\"?shop_name=\").concat(null==D?void 0:D.shop_name).replace(\"retailer_bgp_id\",\"\".concat(D.retailer_bgp_id));return M(!0),(0,m.Ti)({baseUrl:\"\".concat(P).concat(t),options:{headers:{Authorization:\"Bearer \".concat(null==L?void 0:L.AccessToken),\"bu-id\":null==L?void 0:L.selectedBusinessUnit.bu_id,\"country-code\":null==L||null===(e=L.selectedCountry)||void 0===e?void 0:e.countryCode},responseType:\"arraybuffer\"}}).then(function(e){M(!1)}).catch(function(){M(!1),x({message:(0,g.t)(\"DOWNLOAD_FAILED\"),type:\"error\"})})},fullwidth:!1,color:\"primary\"})),!(0,v.EB)(L)&&o().createElement(p.A,{flexDirection:\"row\",justifyContent:\"start\",mt:2,gap:2},o().createElement(c.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:A.w.palette.grey[400]},\"\".concat((0,g.t)(\"TOTAL\"),\" \").concat(null==ye||null===(t=ye.find(function(e){return\"planner_target_volume\"===(null==e?void 0:e.field)}))||void 0===t?void 0:t.headerName,\" : \").concat(null!==(n=Number(null!==(s=null==Ie?void 0:Ie.reduce(function(e,t){return e+Number(null==t?void 0:t.planner_target_volume)},0))&&void 0!==s?s:0).toFixed(2))&&void 0!==n?n:\"\")),De?o().createElement(c.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:A.w.palette.grey[400]},\"\".concat((0,g.t)(\"TOTAL_PLANNED_VALUE\"),\" : \").concat(null!==(u=Number(null!==(C=null==Ie?void 0:Ie.reduce(function(e,t){return e+Number(null==t?void 0:t.target_value)},0))&&void 0!==C?C:0).toFixed(2))&&void 0!==u?u:\"\",\" (Lakhs)\")):o().createElement(o().Fragment,null)),o().createElement(f.A,null,o().createElement(p.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2}),o().createElement(d.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table fixed-row-size\",elevation:0},o().createElement(E.A,{gridRef:T,rows:Ie,columnDefs:null==ye?void 0:ye.map(function(e){return\"planner_target_volume\"===(null==e?void 0:e.field)?de(de({},Ge),{},{headerName:(0,g.t)(null==e?void 0:e.headerName)}):e}),isPaginationHidden:!0,frameworkComponents:{ActionComponent:function(e){return function(e){var t=e.data,n=e.api,r=e.getActiveButton,a=e.onDeleteBgp;return(r(v.vg.BGP_NOT_CREATED)||r(v.vg.PENDING_FOR_TM_APPROVAL))&&o().createElement(\"button\",{type:\"button\",style:{background:\"none\",border:\"none\"},\"data-testid\":\"delete-brand\",onClick:function(){return a(null==t?void 0:t.brand_id,n)},className:\"smart-agro-lite-green-label\",\"aria-label\":\"delete-brand\",tabIndex:0},o().createElement(ee.A,null))}(de(de({},e),{},{getActiveButton:ke,onDeleteBgp:Fe}))},BrandComponent:function(e){var t=e.data;return o().createElement(c.A,{component:\"span\",fontSize:12,lineHeight:\"16px\"},null==t?void 0:t.brand_name,(null==t?void 0:t.color)&&o().createElement(c.A,{color:A.w.palette.error.main,lineHeight:\"12px\",fontSize:12},\" (\",(0,g.t)(\"UPDATE_BY_RETAILER\"),\")\"))}}}))),o().createElement(p.A,{mt:2,direction:\"row\",justifyContent:\"end\"},ke(v.vg.BGP_NOT_CREATED)&&null!=F&&F.length?o().createElement(_.A,{variant:\"contained\",buttonName:(0,g.t)(\"SUBMIT\"),onButtonClick:function(){var e,t,n;n={retailer_uuid:null==D?void 0:D.uuid,business_growth_plan_status:v.vg.PENDING_FOR_RETAILER_ACCEPTANCE,retailer_bgp_brand_with_volume_details:null==xe||null===(e=xe.filter(function(e){return 0!==Number(null==e?void 0:e.planner_target_volume)}))||void 0===e?void 0:e.map(function(e){return{brand_id:null==e?void 0:e.brand_id,planner_target_volume:Number(null==e?void 0:e.planner_target_volume),retailer_target_volume:0,is_brand_mapping_deleted:!(null==e||!e.is_brand_mapping_deleted)}}),is_requested_by_planner:!0,portfolio_code:(null==L||null===(t=L.selectedBusinessUnit)||void 0===t?void 0:t.portfolio_code)||\"DEFAULT\"},Be()||(0,B.H6)(L,P,M,n).then(function(e){e&&(w(-1),x({message:(0,g.t)(\"RETAILERS_BRANDS_ADDED\"),type:\"success\"}))}).catch(function(e){M(!1),x({message:e.message,type:\"error\"})})},fullwidth:!1,color:\"primary\"}):o().createElement(o().Fragment,null),ke(v.vg.PENDING_FOR_TM_APPROVAL)&&null!=Ie&&Ie.length?o().createElement(_.A,{variant:\"contained\",buttonName:(0,g.t)(\"APPROVE_REQUEST\"),onButtonClick:function(){var e,t={retailer_uuid:null==D?void 0:D.uuid,business_growth_plan_status:v.vg.BGP_CREATED,retailer_bgp_brand_with_volume_details:null==xe?void 0:xe.map(function(e){return{brand_id:null==e?void 0:e.brand_id,planner_target_volume:Number(null==e?void 0:e.planner_target_volume),retailer_target_volume:(null==e?void 0:e.retailer_target_volume)||0,is_brand_mapping_deleted:!!(null!=e&&e.is_brand_mapping_deleted||0===Number(null==e?void 0:e.planner_target_volume))}}),is_requested_by_planner:!0,portfolio_code:(null==L||null===(e=L.selectedBusinessUnit)||void 0===e?void 0:e.portfolio_code)||\"DEFAULT\"};Be()||(0,B._5)(L,P,M,t).then(function(e){e&&(w(-1),x({message:(0,g.t)(\"RETAILERS_BRANDS_UPDATED\"),type:\"success\"}))}).catch(function(e){M(!1),x({message:e.message,type:\"error\"})})},fullwidth:!1,color:\"primary\"}):o().createElement(o().Fragment,null)),o().createElement(k,{isDrawerOpen:Y,onRequestClose:function(){return G(!1)},shopName:\"\".concat(null==D?void 0:D.shop_name),onAddBgpDetails:function(e){j(function(t){return[].concat(fe(t),[e])}),G(!1)},brandNames:null==Q?void 0:Q.filter(function(e){return!(null!=F&&F.some(function(t){return(null==t?void 0:t.brand_id)===(null==e?void 0:e.value)&&!(null!=t&&t.is_brand_mapping_deleted)}))})}),re&&o().createElement(X,{isDrawerOpen:re,onRequestClose:function(){return oe(!1)},retailerDetails:D,setListData:j,brandNames:Q,setIsUploadedBrand:le}))};const Ae=(0,r.memo)(ve);var ye=n(37998),Ee=n(21770),be=n(96178);const _e=function(){return o().createElement(be.z,null,o().createElement(C.A,null,o().createElement(p.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(C.A,null,o().createElement(b.A,{routePathName:[{name:i.F_.Retailers,path:i.fp.Retailers},{name:i.F_.Retailers_list,path:\"\".concat(i.fp.Retailers,\"/\").concat(i.fp.Retailer_List)},{name:i.F_.Retailers_My_Uploads,path:i.fp.Retailers_My_Uploads}]})))),o().createElement(Ee.A,{bulkUploadModuleTypes:[v.wb.ANNUAL_TURNOVER],tableHeaders:ye.u2}))};var Ce=n(51440),we=n(27776);const Se=function(){var e=new URLSearchParams(location.search).get(\"tmHqName\");return o().createElement(we.T,null,o().createElement(w.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(b.A,{routePathName:[{name:i.F_.Retailers,path:i.fp.Retailers},{name:i.F_.Retailers_Bgp,path:\"\".concat(i.fp.Retailers,\"/\").concat(i.fp.Retailers_Bgp,\"/\").concat(i.fp.TMHQ_BGP_Details,\"/?tabname=tmhqbgpdetails\")},{name:null!=e?e:\"\",path:\"\"}]})),o().createElement(Ce.A,null))};var Te=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,29889))}),Oe=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,54894))}),De=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,80918))}),Re=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))}),Ne=function(e){var t=e.RBACControls,n={RetailerApprover:(0,l.ZY)(\"RETAILER-APPROVER\",t)},c=(0,s.T)(t.subModuleProps).readableModules,d=function(e){return e.moduleName===i.pW[\"UPLOAD-RETAILERS\"]?\"\".concat(e.path,\"/*\"):e.path};return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},o().createElement(Te,{RBACControls:t}))}),null==c?void 0:c.map(function(e,t){return o().createElement(a.qh,{key:\"retailers-route-\".concat(e.moduleName),path:d(e),element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{path:\"\".concat(i.fp.Retailer_List,\"/:id/:uuid/\").concat(i.fp.Retailer_Details,\"/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(Oe,{RBACPermissions:n}))}),o().createElement(a.qh,{path:\"\".concat(i.fp.Kyc_Verifier,\"/\").concat(i.fp.Kyc_Edit_Details,\"/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(De,null))}),o().createElement(a.qh,{path:\"\".concat(i.fp.Retailer_List,\"/\").concat(i.fp.Retailers_My_Uploads,\"/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(_e,null))}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(u.default,null)),path:\"\".concat(i.fp.Retailers_Bgp,\"/*\")}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(Ae,null)),path:\"\".concat(i.fp.BGPDetails,\"/*\")}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(Se,null)),path:\"\".concat(i.fp.MDOHQ_BGP_Details,\"/*\")}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(Re,null)),path:i.fp.PageNotFound}))};const Le=Ne},28336:(e,t,n)=>{\"use strict\";function r(e,t){const n=this;if(n.vars&&\"function\"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\\[[^\\]]+\\])/,\"*:where($1)\");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},28452:(e,t,n)=>{var r=n(73738).default,o=n(12475);e.exports=function(e,t){if(t&&(\"object\"==r(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},28462:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d});var r=n(28161),o=n(90815),a=n(14073),i=n(88084),l=n(81970),s=n.n(l),u=n(15664),c=n(36874);const d=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,l=e.id,d=void 0===l?\"generic-drawer\":l,p=e.title,f=e.initialValues,g=e.validationSchema,h=e.onSubmit,m=e.fields,v=e.isSubmitDisabled,A=void 0!==v&&v,y=e.submitLabel,E=void 0===y?\"Save\":y,b=e.cancelLabel,_=void 0===b?\"Cancel\":b;return s().createElement(c.A,{isDrawerOpen:t,anchor:\"right\",id:d},s().createElement(r.A,{className:\"popupMain\",id:\"\".concat(d,\"-container\")},s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25,id:\"\".concat(d,\"-header\")},s().createElement(a.A,{component:\"h1\",variant:\"h1\",id:\"\".concat(d,\"-title\")},p),s().createElement(r.A,{onClick:function(){return n(!1)},id:\"\".concat(d,\"-close-button\")},s().createElement(a.A,{className:\"icon-close closeIcon\",\"data-testid\":\"closeIcon\",id:\"\".concat(d,\"-close-icon\")}))),s().createElement(i.l1,{initialValues:f,validationSchema:g,enableReinitialize:!0,onSubmit:h},function(e){return s().createElement(i.lV,{className:\"popupContent\",id:\"\".concat(d,\"-form\"),\"data-testid\":\"\".concat(d,\"-form\")},m(e),s().createElement(o.A,{direction:\"row\",gap:2,className:\"btnsBlock\",id:\"\".concat(d,\"-buttons-container\")},s().createElement(u.A,{id:\"\".concat(d,\"-cancel-button\"),variant:\"outlined\",buttonName:_,onButtonClick:function(){return n(!1)},fullwidth:!1,color:\"secondary\"}),s().createElement(u.A,{id:\"\".concat(d,\"-submit-button\"),variant:\"contained\",buttonName:E,fullwidth:!1,color:\"primary\",disabled:A||e.isSubmitting,type:\"submit\"})))})))}},28466:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(13967).A},28551:(e,t,n)=>{\"use strict\";var r=n(20034),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+\" is not an object\")}},28586:(e,t,n)=>{var r=n(56449),o=n(44394),a=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,i=/^\\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},28597:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z\"}),\"Edit\")},28706:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79039),a=n(34376),i=n(20034),l=n(48981),s=n(26198),u=n(96837),c=n(97040),d=n(1469),p=n(70597),f=n(78227),g=n(39519),h=f(\"isConcatSpreadable\"),m=g>=51||!o(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),v=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)};r({target:\"Array\",proto:!0,arity:1,forced:!m||!p(\"concat\")},{concat:function(e){var t,n,r,o,a,i=l(this),p=d(i,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(v(a=-1===t?i:arguments[t]))for(o=s(a),u(f+o),n=0;n<o;n++,f++)n in a&&c(p,f,a[n]);else u(f+1),c(p,f++,a);return p.length=f,p}})},28754:(e,t,n)=>{var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},28845:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(69565),a=n(94644),i=n(26198),l=n(58229),s=n(48981),u=n(79039),c=r.RangeError,d=r.Int8Array,p=d&&d.prototype,f=p&&p.set,g=a.aTypedArray,h=a.exportTypedArrayMethod,m=!u(function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]}),v=m&&a.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var e=new d(2);return e.set(1),e.set(\"2\",1),0!==e[0]||2!==e[1]});h(\"set\",function(e){g(this);var t=l(arguments.length>1?arguments[1]:void 0,1),n=s(e);if(m)return o(f,this,n,t);var r=this.length,a=i(n),u=0;if(a+t>r)throw new c(\"Wrong length\");for(;u<a;)this[t+u]=n[u++]},!m||v)},28852:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>m}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);function p(e){return p=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=p(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==p(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules,o=n.length>0?n.map(function(e){return e.moduleName===i.pW[\"MODULE-CONFIG\"]?g(g({},e),{},{path:\"\".concat(i.fp.Module_Config,\"/events\")}):e.moduleName===i.pW[\"FORM-CONFIGURATIONS\"]?g(g({},e),{},{path:\"\".concat(i.fp.Form_Config,\"/events/?tabname=events&tabid=1\")}):e}):[];return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Configurations,path:i.fp.EntryPath}]})),o.length>0?a().createElement(d.A,{moduleData:o}):a().createElement(c.A,null))}},28861:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"tet\",{months:\"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru\".split(\"_\"),monthsShort:\"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez\".split(\"_\"),weekdays:\"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu\".split(\"_\"),weekdaysShort:\"Dom_Seg_Ters_Kua_Kint_Sest_Sab\".split(\"_\"),weekdaysMin:\"Do_Seg_Te_Ku_Ki_Ses_Sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Ohin iha] LT\",nextDay:\"[Aban iha] LT\",nextWeek:\"dddd [iha] LT\",lastDay:\"[Horiseik iha] LT\",lastWeek:\"dddd [semana kotuk] [iha] LT\",sameElse:\"L\"},relativeTime:{future:\"iha %s\",past:\"%s liuba\",s:\"segundu balun\",ss:\"segundu %d\",m:\"minutu ida\",mm:\"minutu %d\",h:\"oras ida\",hh:\"oras %d\",d:\"loron ida\",dd:\"loron %d\",M:\"fulan ida\",MM:\"fulan %d\",y:\"tinan ida\",yy:\"tinan %d\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},28913:(e,t,n)=>{\"use strict\";e.exports=n.p+\"043449e47693cddca9ab.svg\"},28957:(e,t,n)=>{\"use strict\";var r=n(56903),o=n(43066),a=n(75872),i=n(19786),l=n(83070),s=n(83281).KEY,u=n(82451),c=n(7421),d=n(1123),p=n(93108),f=n(15413),g=n(1275),h=n(62613),m=n(76358),v=n(1084),A=n(90531),y=n(90326),E=n(64873),b=n(69204),_=n(78381),C=n(15495),w=n(67780),S=n(37106),T=n(22682),O=n(14259),D=n(21672),R=n(64796),N=T.f,L=D.f,P=S.f,M=r.Symbol,x=r.JSON,I=x&&x.stringify,k=\"prototype\",B=f(\"_hidden\"),F=f(\"toPrimitive\"),j={}.propertyIsEnumerable,H=c(\"symbol-registry\"),U=c(\"symbols\"),Y=c(\"op-symbols\"),G=Object[k],z=\"function\"==typeof M&&!!O.f,V=r.QObject,q=!V||!V[k]||!V[k].findChild,W=a&&u(function(){return 7!=w(L({},\"a\",{get:function(){return L(this,\"a\",{value:7}).a}})).a})?function(e,t,n){var r=N(G,t);r&&delete G[t],L(e,t,n),r&&e!==G&&L(G,t,r)}:L,Q=function(e){var t=U[e]=w(M[k]);return t._k=e,t},K=z&&\"symbol\"==typeof M.iterator?function(e){return\"symbol\"==typeof e}:function(e){return e instanceof M},$=function(e,t,n){return e===G&&$(Y,t,n),A(e),t=_(t,!0),A(n),o(U,t)?(n.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),n=w(n,{enumerable:C(0,!1)})):(o(e,B)||L(e,B,C(1,{})),e[B][t]=!0),W(e,t,n)):L(e,t,n)},X=function(e,t){A(e);for(var n,r=m(t=b(t)),o=0,a=r.length;a>o;)$(e,n=r[o++],t[n]);return e},J=function(e){var t=j.call(this,e=_(e,!0));return!(this===G&&o(U,e)&&!o(Y,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,B)&&this[B][e])||t)},Z=function(e,t){if(e=b(e),t=_(t,!0),e!==G||!o(U,t)||o(Y,t)){var n=N(e,t);return!n||!o(U,t)||o(e,B)&&e[B][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=P(b(e)),r=[],a=0;n.length>a;)o(U,t=n[a++])||t==B||t==s||r.push(t);return r},te=function(e){for(var t,n=e===G,r=P(n?Y:b(e)),a=[],i=0;r.length>i;)!o(U,t=r[i++])||n&&!o(G,t)||a.push(U[t]);return a};z||(l((M=function(){if(this instanceof M)throw TypeError(\"Symbol is not a constructor!\");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(Y,n),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),W(this,e,C(1,n))};return a&&q&&W(G,e,{configurable:!0,set:t}),Q(e)})[k],\"toString\",function(){return this._k}),T.f=Z,D.f=$,n(79032).f=S.f=ee,n(98936).f=J,O.f=te,a&&!n(98849)&&l(G,\"propertyIsEnumerable\",J,!0),g.f=function(e){return Q(f(e))}),i(i.G+i.W+i.F*!z,{Symbol:M});for(var ne=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),re=0;ne.length>re;)f(ne[re++]);for(var oe=R(f.store),ae=0;oe.length>ae;)h(oe[ae++]);i(i.S+i.F*!z,\"Symbol\",{for:function(e){return o(H,e+=\"\")?H[e]:H[e]=M(e)},keyFor:function(e){if(!K(e))throw TypeError(e+\" is not a symbol!\");for(var t in H)if(H[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),i(i.S+i.F*!z,\"Object\",{create:function(e,t){return void 0===t?w(e):X(w(e),t)},defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ie=u(function(){O.f(1)});i(i.S+i.F*ie,\"Object\",{getOwnPropertySymbols:function(e){return O.f(E(e))}}),x&&i(i.S+i.F*(!z||u(function(){var e=M();return\"[null]\"!=I([e])||\"{}\"!=I({a:e})||\"{}\"!=I(Object(e))})),\"JSON\",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if(\"function\"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,I.apply(x,r)}}),M[k][F]||n(14632)(M[k],F,M[k].valueOf),d(M,\"Symbol\"),d(Math,\"Math\",!0),d(r.JSON,\"JSON\",!0)},28959:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){return\"m\"===n?t?\"хвіліна\":\"хвіліну\":\"h\"===n?t?\"гадзіна\":\"гадзіну\":e+\" \"+(r=+e,o={ss:t?\"секунда_секунды_секунд\":\"секунду_секунды_секунд\",mm:t?\"хвіліна_хвіліны_хвілін\":\"хвіліну_хвіліны_хвілін\",hh:t?\"гадзіна_гадзіны_гадзін\":\"гадзіну_гадзіны_гадзін\",dd:\"дзень_дні_дзён\",MM:\"месяц_месяцы_месяцаў\",yy:\"год_гады_гадоў\"}[n].split(\"_\"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}e.defineLocale(\"be\",{months:{format:\"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня\".split(\"_\"),standalone:\"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань\".split(\"_\")},monthsShort:\"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж\".split(\"_\"),weekdays:{format:\"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу\".split(\"_\"),standalone:\"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота\".split(\"_\"),isFormat:/\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/},weekdaysShort:\"нд_пн_ат_ср_чц_пт_сб\".split(\"_\"),weekdaysMin:\"нд_пн_ат_ср_чц_пт_сб\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., HH:mm\",LLLL:\"dddd, D MMMM YYYY г., HH:mm\"},calendar:{sameDay:\"[Сёння ў] LT\",nextDay:\"[Заўтра ў] LT\",lastDay:\"[Учора ў] LT\",nextWeek:function(){return\"[У] dddd [ў] LT\"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return\"[У мінулую] dddd [ў] LT\";case 1:case 2:case 4:return\"[У мінулы] dddd [ў] LT\"}},sameElse:\"L\"},relativeTime:{future:\"праз %s\",past:\"%s таму\",s:\"некалькі секунд\",m:t,mm:t,h:t,hh:t,d:\"дзень\",dd:t,M:\"месяц\",MM:t,y:\"год\",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?\"ночы\":e<12?\"раніцы\":e<17?\"дня\":\"вечара\"},dayOfMonthOrdinalParse:/\\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case\"M\":case\"d\":case\"DDD\":case\"w\":case\"W\":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+\"-ы\":e+\"-і\";case\"D\":return e+\"-га\";default:return e}},week:{dow:1,doy:7}})}(n(95093))},29097:(e,t,n)=>{\"use strict\";var r=n(4704);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=r(n(81970));t.default=function(e,t){var n=!1,r=function(e){return e?e.key:\"empty\"};if(e.children.length&&t.children.length){var a=o.default.Children.map(e.children,r)[e.index];null!=a&&a===o.default.Children.map(t.children,r)[t.index]&&(n=!0)}return n}},29148:(e,t,n)=>{\"use strict\";n.d(t,{i:()=>m}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(34782),n(15086),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(21699),n(47764),n(23500),n(62953);var r=n(81970),o=n(47225),a=n(50154);function i(e){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i(e)}function l(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),c}var i={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),f=d.prototype=u.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return c.prototype=d,s(f,\"constructor\",d),s(d,\"constructor\",c),c.displayName=\"GeneratorFunction\",s(d,o,\"GeneratorFunction\"),s(f),s(f,o,\"Generator\"),s(f,r,function(){return this}),s(f,\"toString\",function(){return\"[object Generator]\"}),(l=function(){return{w:a,m:g}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}s=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){s(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},s(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,\"next\",e)}function l(e){u(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=i(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==i(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e){var t=(0,r.useContext)(o.v),n=t.BackOfficeProps,i=n.globalStore.User,s=n.baseurl,u=t.triggerShowLoader,d=t.triggerToastMsg,f=g((0,r.useState)(!1),2),h=f[0],m=f[1],v=g((0,r.useState)([]),2),A=v[0],y=v[1],E=g((0,r.useState)(\"\"),2),b=E[0],_=E[1],C=g((0,r.useState)([]),2),w=C[0],S=C[1],T=g((0,r.useState)({pageNo:0,pageSize:10}),2),O=T[0],D=T[1],R=g((0,r.useState)([]),2),N=R[0],L=R[1],P=g((0,r.useState)([]),2),M=P[0],x=P[1],I=g((0,r.useState)([]),2),k=I[0],B=I[1],F=(0,r.useCallback)(function(t){var n;_(t),D(function(e){return p(p({},e),{},{pageNo:0})}),t?(\"summary\"===e?n=M.filter(function(e){var n;return null===(n=e.brandName)||void 0===n?void 0:n.toLowerCase().includes(t.toLowerCase())}):\"detail\"===e&&(n=w.filter(function(e){return[e.brandName,e.mdoHqName].some(function(e){var n,r;return null!==(n=null==e||null===(r=e.toLowerCase())||void 0===r?void 0:r.includes(t.toLowerCase()))&&void 0!==n&&n})})),B(n)):B(\"summary\"===e?M:w)},[e,M,w]),j=(0,r.useCallback)(function(){var e=c(l().m(function e(t,n,r,o){var c,p,f,g;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,a.Cd)(t,n,r,o,s,i,u);case 1:c=e.v,p=c.data.samridhiLiquidationRetailerBrandDetails,S(null!=(f=void 0===p?[]:p)?f:[]),B(null!=f?f:[]),e.n=3;break;case 2:e.p=2,g=e.v,d({message:g.message,type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n,r,o){return e.apply(this,arguments)}}(),[s,i,u,d]),H=(0,r.useCallback)(function(){(0,a.aO)(i,s,u).then(function(e){L(e.data)}).catch(function(e){d({message:e.message,type:\"error\"})})},[i,s,u,d]),U=(0,r.useCallback)(function(){var e=c(l().m(function e(t,n,r,o){var c,p,f,g;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,a.XB)(t,n,r,o,s,i,u);case 1:c=e.v,p=c.data.samridhiLiquidationRetailerBrandDetails,x(null!=(f=void 0===p?[]:p)?f:[]),B(null!=f?f:[]),e.n=3;break;case 2:e.p=2,g=e.v,d({message:g.message,type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n,r,o){return e.apply(this,arguments)}}(),[s,i,u,d]);return{isFilterOpen:h,setIsFilterOpen:m,liquidationDetailFilters:A,setLiquidationDetailFilters:y,searchValue:b,onSearch:F,liquidationDetailList:w,paginationState:O,setPaginationState:D,fetchLiquidationDetails:j,fetchHqData:H,hqData:N,searchSummaryData:k,fetchSummaryData:U}}},29191:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p}),n(62062),n(26099);var r=n(81970),o=n.n(r),a=n(11848),i=n(28161),l=n(6398),s=n(17630),u=(0,l.A)({customPageSelect:{\"&.MuiPaper-root\":{backgroundColor:s.w.palette.secondary.dark,borderRadius:s.w.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\"},\"& ul\":{\"& li\":{padding:\"6px 16px\",font:\"normal normal 400 14px NotoSans-Regular\",color:s.w.palette.info.dark}}}}),c=(0,a.Ay)(i.A)(function(e){var t=e.theme;return{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",\"& > .MuiTypography-body1\":{font:\"normal normal 600 14px NotoSans-SemiBold\"},\"& .smart-agro-lite-paginationDropdown\":{margin:\"0px 8px\",borderRadius:t.shape.borderRadius,minWidth:\"70px\",height:\"32px\",color:t.palette.text.secondary,\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .MuiSelect-outlined\":{background:t.palette.secondary.dark,border:\"1px solid \".concat(t.palette.grey[300]),padding:\"5px 14px\"}},\"& .smart-agro-lite-pageCountlist\":{padding:\"0px !important\"},\"& .MuiSvgIcon-root \":{zIndex:\"1\"}}}),d=function(e){return e.menuItemData,e.onHandleChange,e.selectedItem,u(),o().createElement(c,null,!1)};const p=o().memo(d)},29231:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"tl-ph\",{months:\"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre\".split(\"_\"),monthsShort:\"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis\".split(\"_\"),weekdays:\"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado\".split(\"_\"),weekdaysShort:\"Lin_Lun_Mar_Miy_Huw_Biy_Sab\".split(\"_\"),weekdaysMin:\"Li_Lu_Ma_Mi_Hu_Bi_Sab\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"MM/D/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY HH:mm\",LLLL:\"dddd, MMMM DD, YYYY HH:mm\"},calendar:{sameDay:\"LT [ngayong araw]\",nextDay:\"[Bukas ng] LT\",nextWeek:\"LT [sa susunod na] dddd\",lastDay:\"LT [kahapon]\",lastWeek:\"LT [noong nakaraang] dddd\",sameElse:\"L\"},relativeTime:{future:\"sa loob ng %s\",past:\"%s ang nakalipas\",s:\"ilang segundo\",ss:\"%d segundo\",m:\"isang minuto\",mm:\"%d minuto\",h:\"isang oras\",hh:\"%d oras\",d:\"isang araw\",dd:\"%d araw\",M:\"isang buwan\",MM:\"%d buwan\",y:\"isang taon\",yy:\"%d taon\"},dayOfMonthOrdinalParse:/\\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},29362:(e,t,n)=>{var r=n(84920),o=n(82429);e.exports=function(e,t){return!t||\"object\"!==r(t)&&\"function\"!=typeof t?o(e):t}},29389:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return l(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.AgGridReactUi=void 0;var c=n(64436),d=s(n(81970)),p=n(26478),f=n(68583),g=u(n(72245)),h=n(42184),m=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.eGui=d.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new f.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push(function(){return n.portalManager.destroy()}),n}return o(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),d.default.createElement(\"div\",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&d.default.createElement(g.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return a({height:\"100%\"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new v(this.portalManager)},modules:t,frameworkOverrides:new h.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{},this.gridOptions=c.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new c.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(t){e.setState({context:t}),t.getBean(c.CtrlsService.NAME).whenReady(function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push(function(){return e.api.destroy()})})},function(t){t.getBean(c.CtrlsService.NAME).whenReady(function(){e.whenReadyFuncs.forEach(function(e){return e()}),e.whenReadyFuncs.length=0,e.ready=!0})},n)}},t.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&c._.doOnce(function(){return console.warn(\"AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/\")},\"rowDataChangeDetectionStrategy_Deprecation\")},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=!!t.debug;Object.keys(t).forEach(function(o){c.ComponentUtil.ALL_PROPERTIES_SET.has(o)&&e[o]!==t[o]&&(r&&console.log(\"agGridReact: [\"+o+\"] property changed\"),n[o]={previousValue:e[o],currentValue:t[o]})}),c.ComponentUtil.EVENT_CALLBACKS.forEach(function(o){e[o]!==t[o]&&(r&&console.log(\"agGridReact: [\"+o+\"] event callback changed\"),n[o]={previousValue:e[o],currentValue:t[o]})})},t.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return c.ComponentUtil.processOnChange(e,t.api)})},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t}(d.Component);t.AgGridReactUi=m;var v=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new p.NewReactComponent(e,this.parent,t)},t}(c.BaseComponentWrapper)},29423:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(79039),a=n(67680),i=r.aTypedArray,l=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)(\"slice\",function(e,t){for(var n=a(i(this),e,t),r=l(this),o=0,s=n.length,u=new r(s);s>o;)u[o]=n[o++];return u},o(function(){new Int8Array(1).slice()}))},29445:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=s,t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=t.extractObject=void 0;var r,o=(r=n(81970))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){return Math.max(t,Math.min(e,n))}var u=function(e){[\"onTouchStart\",\"onTouchMove\",\"onWheel\"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=u;var c=function(e){for(var t=[],n=d(e),r=p(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t};t.getOnDemandLazySlides=c,t.getRequiredLazySlides=function(e){for(var t=[],n=d(e),r=p(e),o=n;o<r;o++)t.push(o);return t};var d=function(e){return e.currentSlide-f(e)};t.lazyStartIndex=d;var p=function(e){return e.currentSlide+g(e)};t.lazyEndIndex=p;var f=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=f;var g=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=g;var h=function(e){return e&&e.offsetWidth||0};t.getWidth=h;var m=function(e){return e&&e.offsetHeight||0};t.getHeight=m;var v=function(e){var t,n,r,o,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?\"left\":o>=135&&o<=225?\"right\":!0===a?o>=35&&o<=135?\"up\":\"down\":\"vertical\"};t.getSwipeDirection=v;var A=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=A,t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t,n=o.default.Children.count(e.children),r=e.listRef,a=Math.ceil(h(r)),l=e.trackRef&&e.trackRef.node,s=Math.ceil(h(l));if(e.vertical)t=a;else{var u=e.centerMode&&2*parseInt(e.centerPadding);\"string\"==typeof e.centerPadding&&\"%\"===e.centerPadding.slice(-1)&&(u*=a/100),t=Math.ceil((a-u)/e.slidesToShow)}var d=r&&m(r.querySelector('[data-index=\"0\"]')),p=d*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var g=e.lazyLoadedList||[],v=c(i(i({},e),{},{currentSlide:f,lazyLoadedList:g})),A={slideCount:n,slideWidth:t,listWidth:a,trackWidth:s,currentSlide:f,slideHeight:d,listHeight:p,lazyLoadedList:g=g.concat(v)};return null===e.autoplaying&&e.autoplay&&(A.autoplaying=\"playing\"),A},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,l=e.slideCount,u=e.lazyLoad,d=e.currentSlide,p=e.centerMode,f=e.slidesToScroll,g=e.slidesToShow,h=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var v,y,E,b=a,_={},T={},O=o?a:s(a,0,l-1);if(r){if(!o&&(a<0||a>=l))return{};a<0?b=a+l:a>=l&&(b=a-l),u&&m.indexOf(b)<0&&(m=m.concat(b)),_={animating:!0,currentSlide:b,lazyLoadedList:m,targetSlide:b},T={animating:!1,targetSlide:b}}else v=b,b<0?(v=b+l,o?l%f!==0&&(v=l-l%f):v=0):!A(e)&&b>d?b=v=d:p&&b>=l?(b=o?l:l-1,v=o?0:l-1):b>=l&&(v=b-l,o?l%f!==0&&(v=0):v=l-g),!o&&b+g>=l&&(v=l-g),y=S(i(i({},e),{},{slideIndex:b})),E=S(i(i({},e),{},{slideIndex:v})),o||(y===E&&(b=v),y=E),u&&(m=m.concat(c(i(i({},e),{},{currentSlide:b})))),h?(_={animating:!0,currentSlide:v,trackStyle:w(i(i({},e),{},{left:y})),lazyLoadedList:m,targetSlide:O},T={animating:!1,currentSlide:v,trackStyle:C(i(i({},e),{},{left:E})),swipeLeft:null,targetSlide:O}):_={currentSlide:v,trackStyle:C(i(i({},e),{},{left:E})),lazyLoadedList:m,targetSlide:O};return{state:_,nextState:T}},t.changeSlide=function(e,t){var n,r,o,a,l=e.slidesToScroll,s=e.slidesToShow,u=e.slideCount,c=e.currentSlide,d=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=u%l!==0?0:(u-c)%l,\"previous\"===t.message)a=c-(o=0===n?l:s-n),p&&!f&&(a=-1===(r=c-o)?u-1:r),f||(a=d-l);else if(\"next\"===t.message)a=c+(o=0===n?l:n),p&&!f&&(a=(c+l)%u+n),f||(a=d+l);else if(\"dots\"===t.message)a=t.index*t.slidesToScroll;else if(\"children\"===t.message){if(a=t.index,f){var g=R(i(i({},e),{},{targetSlide:a}));a>t.currentSlide&&\"left\"===g?a-=u:a<t.currentSlide&&\"right\"===g&&(a+=u)}}else\"index\"===t.message&&(a=Number(t.index));return a},t.keyHandler=function(e,t,n){return e.target.tagName.match(\"TEXTAREA|INPUT|SELECT\")||!t?\"\":37===e.keyCode?n?\"next\":\"previous\":39===e.keyCode?n?\"previous\":\"next\":\"\"},t.swipeStart=function(e,t,n){return\"IMG\"===e.target.tagName&&u(e),!t||!n&&-1!==e.type.indexOf(\"mouse\")?\"\":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,a=t.swipeToSlide,l=t.verticalSwiping,s=t.rtl,c=t.currentSlide,d=t.edgeFriction,p=t.edgeDragged,f=t.onEdge,g=t.swiped,h=t.swiping,m=t.slideCount,y=t.slidesToScroll,E=t.infinite,b=t.touchObject,_=t.swipeEvent,w=t.listHeight,T=t.listWidth;if(!n){if(r)return u(e);o&&a&&l&&u(e);var O,D={},R=S(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));var N=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!l&&!h&&N>10)return{scrolling:!0};l&&(b.swipeLength=N);var L=(s?-1:1)*(b.curX>b.startX?1:-1);l&&(L=b.curY>b.startY?1:-1);var P=Math.ceil(m/y),M=v(t.touchObject,l),x=b.swipeLength;return E||(0===c&&(\"right\"===M||\"down\"===M)||c+1>=P&&(\"left\"===M||\"up\"===M)||!A(t)&&(\"left\"===M||\"up\"===M))&&(x=b.swipeLength*d,!1===p&&f&&(f(M),D.edgeDragged=!0)),!g&&_&&(_(M),D.swiped=!0),O=o?R+x*(w/T)*L:s?R-x*L:R+x*L,l&&(O=R+x*L),D=i(i({},D),{},{touchObject:b,swipeLeft:O,trackStyle:C(i(i({},t),{},{left:O}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(D.swiping=!0,u(e)),D}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,l=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,d=t.swipeToSlide,p=t.scrolling,f=t.onSwipe,g=t.targetSlide,h=t.currentSlide,m=t.infinite;if(!n)return r&&u(e),{};var A=s?c/l:a/l,y=v(o,s),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return _;if(!o.swipeLength)return _;if(o.swipeLength>A){var C,T;u(e),f&&f(y);var O=m?h:g;switch(y){case\"left\":case\"up\":T=O+b(t),C=d?E(t,T):T,_.currentDirection=0;break;case\"right\":case\"down\":T=O-b(t),C=d?E(t,T):T,_.currentDirection=1;break;default:C=O}_.triggerSlideHandler=C}else{var D=S(t);_.trackStyle=w(i(i({},t),{},{left:D}))}return _};var y=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o};t.getNavigableIndexes=y;var E=function(e,t){var n=y(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t};t.checkNavigable=E;var b=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(\".slick-slide\")||[];if(Array.from(o).every(function(r){if(e.vertical){if(r.offsetTop+m(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+h(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var a=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}return e.slidesToScroll};t.getSlideCount=b;var _=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error(\"Keys Missing:\",e)};t.checkSpecKeys=_;var C=function(e){var t,n;_(e,[\"left\",\"variableWidth\",\"slideCount\",\"slidesToShow\",\"slideWidth\"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=D(e)*e.slideWidth;var o={opacity:1,transition:\"\",WebkitTransition:\"\"};if(e.useTransform){var a=e.vertical?\"translate3d(0px, \"+e.left+\"px, 0px)\":\"translate3d(\"+e.left+\"px, 0px, 0px)\",l=e.vertical?\"translate3d(0px, \"+e.left+\"px, 0px)\":\"translate3d(\"+e.left+\"px, 0px, 0px)\",s=e.vertical?\"translateY(\"+e.left+\"px)\":\"translateX(\"+e.left+\"px)\";o=i(i({},o),{},{WebkitTransform:a,transform:l,msTransform:s})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+\"px\":o.marginLeft=e.left+\"px\"),o};t.getTrackCSS=C;var w=function(e){_(e,[\"left\",\"variableWidth\",\"slideCount\",\"slidesToShow\",\"slideWidth\",\"speed\",\"cssEase\"]);var t=C(e);return e.useTransform?(t.WebkitTransition=\"-webkit-transform \"+e.speed+\"ms \"+e.cssEase,t.transition=\"transform \"+e.speed+\"ms \"+e.cssEase):e.vertical?t.transition=\"top \"+e.speed+\"ms \"+e.cssEase:t.transition=\"left \"+e.speed+\"ms \"+e.cssEase,t};t.getTrackAnimateCSS=w;var S=function(e){if(e.unslick)return 0;_(e,[\"slideIndex\",\"trackRef\",\"infinite\",\"centerMode\",\"slideCount\",\"slidesToShow\",\"slidesToScroll\",\"slideWidth\",\"listWidth\",\"variableWidth\",\"slideHeight\"]);var t,n,r=e.slideIndex,o=e.trackRef,a=e.infinite,i=e.centerMode,l=e.slideCount,s=e.slidesToShow,u=e.slidesToScroll,c=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,g=e.fade,h=e.vertical;if(g||1===e.slideCount)return 0;var m=0;if(a?(m=-T(e),l%u!==0&&r+u>l&&(m=-(r>l?s-(r-l):l%u)),i&&(m+=parseInt(s/2))):(l%u!==0&&r+u>l&&(m=s-l%u),i&&(m=parseInt(s/2))),t=h?r*f*-1+m*f:r*c*-1+m*c,!0===p){var v,A=o&&o.node;if(v=r+T(e),t=(n=A&&A.childNodes[v])?-1*n.offsetLeft:0,!0===i){v=a?r+T(e):r,n=A&&A.children[v],t=0;for(var y=0;y<v;y++)t-=A&&A.children[y]&&A.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=S;var T=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=T;var O=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=O;var D=function(e){return 1===e.slideCount?1:T(e)+e.slideCount+O(e)};t.getTotalSlides=D;var R=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+N(e)?\"left\":\"right\":e.targetSlide<e.currentSlide-L(e)?\"right\":\"left\"};t.siblingDirection=R;var N=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),r&&t%2==0&&(a+=1),a}return r?0:t-1};t.slidesOnRight=N;var L=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),r||t%2!=0||(a+=1),a}return r?t-1:0};t.slidesOnLeft=L,t.canUseDOM=function(){return!(\"undefined\"==typeof window||!window.document||!window.document.createElement)}},29491:(e,t,n)=>{var r=n(43570),o=n(54947);e.exports=function(e){return function(t,n){var a,i,l=String(o(t)),s=r(n),u=l.length;return s<0||s>=u?e?\"\":void 0:(a=l.charCodeAt(s))<55296||a>56319||s+1===u||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):a:e?l.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},29511:(e,t,n)=>{var r=n(95636);e.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},29743:(e,t,n)=>{\"use strict\";n.d(t,{$:()=>i,S:()=>l}),n(52675),n(89463),n(2259),n(28706),n(2008),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(37998);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i=function(e){var t=o(r.$N);if(\"KR\"===e){var n=t.filter(function(e){return\"crop\"!==e.field});return[].concat(o(n.slice(0,2)),o(r.K8),o(n.slice(2)))}return t},l=function(e){var t=o(r.iR);if(\"KR\"===e){var n=t.filter(function(e){return\"crop\"!==e.field});return[].concat(o(n.slice(0,2)),o(r.Hc),o(n.slice(2)))}return t}},29803:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ye}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(48598),n(62062),n(34782),n(26910),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(5506),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(8085),i=n(99478),l=n(47225),s=n(13075),u=n(27305),c=n(51545),d=n(36874),p=n(64499),f=n(32027),g=n(70380),h=n(8239),m=n(14073),v=n(80663),A=n(88084),y=n(34195),E=n(48506),b=n(15664),_=n(76906),C=n(64121),w=n(28152),S=n(15941),T=function(){return S.Ik().shape({hqName:S.Ik().notRequired().nullable(),crop:S.Ik().notRequired().nullable(),eventType:S.Ik().notRequired().nullable(),eventStatus:S.Ik().notRequired().nullable(),brand:S.Ik().notRequired().nullable(),conductedBy:S.Ik().notRequired().nullable(),fromDate:S.Yj().notRequired().nullable(),toDate:S.YO().notRequired().nullable().test(\"is-valid-date\",\"Invalid Date\",function(e){return!(e&&e.length>0&&(0,g.vd)(null==e?void 0:e[1]))||(0,g.Si)(null==e?void 0:e[0],null==e?void 0:e[1],\"MM/DD/YYYY\")})})},O=function(e){var t=e.initialForm,n=e.defaultState,r=e.onRequestClose,a=e.setEventFilters,i=e.setState,l=e.getHqNameData,s=e.conductedByData,u=e.hqNameData,d=e.countryCode,p=e.cropData,f=e.brandsData,S=e.setBrandsData,O=e.getBrandsData,D=e.hasShowPortfolio,R=e.getEventTypes,N=e.portfolioData,L=e.eventTypes,P=e.eventStatus,M=e.resetFilters,x=(0,y.Bd)().t,I=function(){M()};return o().createElement(A.l1,{initialValues:t,validationSchema:T,enableReinitialize:!0,onSubmit:function(e,t){a(e),i(n),r()}},function(e){var t,n=e.values,a=e.setFieldValue;return o().createElement(A.lV,{className:\"popupContent\"},o().createElement(h.Ay,{container:!0,columns:{xs:12},gap:1,columnSpacing:1,rowGap:1},o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"CONDUCTED_BY\")),o().createElement(A.D0,{name:\"conductedBy\"},function(){return o().createElement(C.A,{name:\"conductedBy\",onChange:function(e,t){l(t.id),a(\"conductedBy\",t),a(\"hqName\",[])},options:s,labelKey:\"label\",label:\"conductedBy\",selectedOption:n.conductedBy,value:n.conductedBy,defaultLabel:x(\"SELECT_CONDUCTED_BY\")})}),o().createElement(w.A,{errName:\"conductedBy\"}))),o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"HQ_NAME\")),o().createElement(A.D0,{name:\"hqName\"},function(){return o().createElement(E.A,{name:\"HQ Name\",options:u,disabled:0===(null==u?void 0:u.length),onHandleChange:function(e){a(\"hqName\",e)},selectedOption:null==n?void 0:n.hqName,\"data-testid\":\"hqNameDropdown\"})}),o().createElement(w.A,{errName:\"hqName\"}))),\"KR\"!==d&&o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"CROP\")),o().createElement(A.D0,{name:\"crop\"},function(){return o().createElement(E.A,{key:\"crop\",name:\"crop\",options:p,onHandleChange:function(e){S([]),a(\"brand\",[]),a(\"crop\",e),(null==e?void 0:e.length)&&O(e)},selectedOption:null==n?void 0:n.crop})}),o().createElement(w.A,{errName:\"crop\"}))),\"KR\"===d&&o().createElement(o().Fragment,null,o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"RETAILER\")),o().createElement(A.D0,{name:\"retailer\"},function(){return o().createElement(E.A,{key:\"retailer\",name:\"retailer\",options:p,onHandleChange:function(e){a(\"retailer\",e)},selectedOption:null==n?void 0:n.retailer})}),o().createElement(w.A,{errName:\"retailer\"}))),o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"RETAILER_SEGMENT\")),o().createElement(A.D0,{name:\"retailer_segment\"},function(){return o().createElement(E.A,{key:\"retailer_segment\",name:\"retailer_segment\",options:p,onHandleChange:function(e){a(\"retailer_segment\",e)},selectedOption:null==n?void 0:n.retailer_segment})}),o().createElement(w.A,{errName:\"retailer_segment\"})))),o().createElement(h.Ay,{xs:2,item:!0},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"BRAND\")),o().createElement(A.D0,{name:\"brand\"},function(){return o().createElement(E.A,{key:\"brand\",name:\"brand\",options:f,disabled:0===(null==f?void 0:f.length),onHandleChange:function(e){a(\"brand\",e)},selectedOption:null==n?void 0:n.brand})}),o().createElement(w.A,{errName:\"brand\"}))),D&&o().createElement(h.Ay,{item:!0,xs:2},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"PORTFOLIO_FIELD\")),o().createElement(A.D0,{name:\"portfolio\"},function(){return o().createElement(C.A,{name:\"portfolio\",onChange:function(e,t){a(\"portfolio\",t),a(\"eventType\",[]),R(null==t?void 0:t.value)},options:N,labelKey:\"label\",label:\"portfolio\",selectedOption:n.portfolio,value:n.portfolio,defaultLabel:x(\"SELECT_PORTFOLIO\")})}),o().createElement(w.A,{errName:\"portfolio\"}))),o().createElement(h.Ay,{xs:2,item:!0},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"EVENT_TYPE\")),o().createElement(A.D0,{name:\"eventType\"},function(){return o().createElement(C.A,{name:x(\"EVENT_TYPE\"),onChange:function(e,t){a(\"eventType\",t)},options:L,labelKey:\"label\",label:\"eventType\",selectedOption:n.eventType,value:n.eventType,defaultLabel:x(\"ALLEVENT_TYPE\")})}),o().createElement(w.A,{errName:\"eventType\"}))),o().createElement(h.Ay,{xs:2,item:!0},o().createElement(c.A,{width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"EVENT_STATUS\")),o().createElement(A.D0,{name:\"eventStatus\"},function(){return o().createElement(C.A,{name:\"eventStatus\",onChange:function(e,t){a(\"eventStatus\",t)},options:P,labelKey:\"label\",label:\"eventStatus\",selectedOption:n.eventStatus,value:n.eventStatus,defaultLabel:x(\"ALLEVENT_STATUS\")})}),o().createElement(w.A,{errName:\"eventStatus\"}))),o().createElement(h.Ay,{xs:2,item:!0},o().createElement(c.A,{mb:2,width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"FROM_DATE\")),o().createElement(_.A,{value:n.fromDate,handleChangeDatePicker:function(e){\"Invalid date\"!==e?(a(\"toDate\",(0,g.rL)(3,e)),a(\"fromDate\",e)):(a(\"fromDate\",null),a(\"toDate\",null))}}),o().createElement(w.A,{errName:\"fromDate\"}))),o().createElement(h.Ay,{xs:2,item:!0},o().createElement(c.A,{mb:2,width:\"100%\"},o().createElement(m.A,{variant:\"subtitle2\"},x(\"TO_DATE\")),o().createElement(_.A,{value:null!==(t=n.toDate)&&void 0!==t?t:\"\",disabled:!n.fromDate,handleChangeDatePicker:function(e){a(\"toDate\",\"Invalid date\"!==e?e:null)},minDate:n.fromDate,maxDate:(0,g.rL)(3,n.fromDate)}),o().createElement(w.A,{errName:\"toDate\"})))),o().createElement(v.A,{direction:\"row\",justifyContent:\"right\",gap:2,mb:2},o().createElement(c.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},o().createElement(b.A,{dataTestId:\"clearFiltersButton\",variant:\"outlined\",buttonName:x(\"CLEAR_FILTERS\"),onButtonClick:I,fullwidth:!1,color:\"primary\"}),o().createElement(b.A,{dataTestId:\"applyFiltersButton\",variant:\"contained\",buttonName:x(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\"}))),o().createElement(c.A,{onClick:r,className:\"smart-agro-lite-filter-cross\"},o().createElement(m.A,{className:\"icon-close closeIcon\"})))})};function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const N=function(e){var t,n,i,s,u=e.isFilterOpen,h=void 0!==u&&u,m=e.onRequestClose,v=void 0===m?function(){}:m,A=e.setEventFilters,y=void 0===A?function(){}:A,E=e.eventFilters,b=void 0===E?{}:E,_=e.setState,C=void 0===_?Function:_,w=(0,r.useContext)(l.v),S=w.BackOfficeProps,T=S.globalStore.User,R=S.baseurl,N=w.triggerShowLoader,L=null===(t=T.selectedCountry)||void 0===t?void 0:t.countryCode,P=R,M=null!==(n=null==T?void 0:T.AccessToken)&&void 0!==n?n:\"\",x=null===(i=T.UserDetails)||void 0===i?void 0:i.user_id,I=null==T?void 0:T.selectedBusinessUnit,k=null==T||null===(s=T.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId,B=(0,f.i)(T).hasShowPortfolio,F=D((0,r.useState)([]),2),j=F[0],H=F[1],U=D((0,r.useState)([]),2),Y=U[0],G=U[1],z=D((0,r.useState)([]),2),V=z[0],q=z[1],W=D((0,r.useState)([]),2),Q=W[0],K=W[1],$=D((0,r.useState)([]),2),X=$[0],J=$[1],Z=D((0,r.useState)([]),2),ee=Z[0],te=Z[1],ne=D((0,r.useState)([]),2),re=ne[0],oe=ne[1],ae=D((0,r.useState)({hqName:[],crop:[],eventType:\"\",brand:\"\",conductedBy:\"\",portfolio:\"\",fromDate:\"\",toDate:\"\",eventStatus:\"\",retailer:[],retailer_segment:[]}),2),ie=ae[0],le=ae[1];(0,r.useEffect)(function(){var e,t,n;Object.keys(b).length&&(le({hqName:null==b?void 0:b.hqName,crop:null==b?void 0:b.crop,eventType:null==b?void 0:b.eventType,brand:null==b?void 0:b.brand,conductedBy:null==b?void 0:b.conductedBy,portfolio:null==b?void 0:b.portfolio,fromDate:null==b?void 0:b.fromDate,toDate:null==b?void 0:b.toDate,eventStatus:null==b?void 0:b.eventStatus,retailer:null==b?void 0:b.retailer,retailer_segment:b.retailer_segment}),(null==b||null===(e=b.brand)||void 0===e?void 0:e.length)>0&&ue(b.brand),null!=b&&b.conductedBy&&fe(null==b||null===(n=b.conductedBy)||void 0===n?void 0:n.id),ue(null==b||null===(t=b.crop)||void 0===t?void 0:t.id))},[]),(0,r.useEffect)(function(){se(),ce(),de(),pe(),ge()},[]);var se=function(){var e={},t=a.p.GET_CROPDATA.replace(\"__ID__\",\"\".concat(null==I?void 0:I.bu_id));return e.domain=P,e.endPoint=t,e.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(M)},e.triggerLoader=N,(0,p.kQ)(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}});H(n)}}).catch(function(e){console.log(\"Fetch Crop Data Error\",e)})},ue=function(e){G([]);var t={},n=function(e){var t=null==e?void 0:e.map(function(e){return e.value}),n=null==t?void 0:t.map(function(e){return\"crop_id=\".concat(e)}).join(\"&\"),r=a.p.GET_BRANDSDATA.replace(\"__BUID__\",\"\".concat(null==I?void 0:I.bu_id));return\"\".concat(r,\"?\").concat(n)}(e);return t.domain=P,t.endPoint=n,t.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(M)},t.triggerLoader=N,(0,p.kQ)(t).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}});G(n)}}).catch(function(e){console.log(\"Fetch Brands Data Error\",e)})},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\",t={};return t.domain=P,t.endPoint=a.p.GET_EVENTTYPES,t.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(M)},t.payLoad={buId:null==I?void 0:I.bu_id},e&&(t.payLoad.portfolioCode=e),t.triggerLoader=N,(0,p.kQ)(t).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});q(n)}}).catch(function(e){console.log(\"Fetch Brands Data Error\",e)})},de=function(){var e={};return e.domain=P,e.endPoint=a.p.GET_CONDUCTEDBY,e.customHeaders={\"country-code\":L,\"bu-id\":null==I?void 0:I.bu_id,Authorization:\"Bearer \".concat(M)},e.triggerLoader=N,(0,p.kQ)(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.sales_hierarchy_id,label:null==e?void 0:e.sales_hierarchy_name,value:null==e?void 0:e.sales_hierarchy_code}});K(n)}}).catch(function(e){console.log(\"Fetch ConductedBy Data Error\",e)})},pe=function(){var e={};return e.domain=P,e.endPoint=a.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==I?void 0:I.bu_code),e.customHeaders={\"country-code\":L,\"bu-id\":null==I?void 0:I.bu_id,Authorization:\"Bearer \".concat(M)},e.triggerLoader=N,(0,p.kQ)(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});J(n)}}).catch(function(e){console.log(\"Fetch portfolio Data Error\",e)})},fe=function(e){var t={},n=a.p.GET_HQNAME.replace(\"__salesID__\",\"\".concat(e)).replace(\"__userUUID__\",\"\".concat(x));return t.domain=P,t.endPoint=n,t.customHeaders={\"country-code\":L,\"bu-id\":null==I?void 0:I.bu_id,\"role-id\":k,Authorization:\"Bearer \".concat(M)},t.triggerLoader=N,(0,p.kQ)(t).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}});n.sort(function(e,t){var n=e.label.toUpperCase(),r=t.label.toUpperCase();return n<r?-1:n>r?1:0}),te(n)}}).catch(function(e){console.log(\"Fetch HQData Data Error\",e)})},ge=function(){var e={};return e.domain=P,e.endPoint=a.p.GET_EVENTSTATUS,e.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(M)},e.payLoad={buId:null==I?void 0:I.bu_id},e.triggerLoader=N,(0,p.kQ)(e).then(function(e){201!==e.status&&200!==e.status||oe(e.data)}).catch(function(e){console.log(\"Fetch Brands Data Error\",e)})};return o().createElement(c.A,null,o().createElement(d.A,{isDrawerOpen:h,anchor:\"top\",upper:!0,sx:{\"& .MuiPaper-root\":{minHeight:\"350px\",\"& .MuiGrid-container\":{height:\"calc(350px - 120px)\"}}}},o().createElement(c.A,{p:3},o().createElement(O,{initialForm:ie,defaultState:{pageNo:0,pageSize:10},onRequestClose:v,setEventFilters:y,setState:C,getHqNameData:fe,conductedByData:Q,hqNameData:ee,countryCode:L,cropData:j,brandsData:Y,setBrandsData:G,getBrandsData:ue,hasShowPortfolio:B,getEventTypes:ce,portfolioData:X,eventTypes:V,eventStatus:re,resetFilters:function(){le({hqName:[],crop:[],eventType:[],portfolio:\"\",brand:\"\",conductedBy:\"\",fromDate:(0,g.zX)(3),toDate:g.Ax.currentDate,eventStatus:\"\",retailer:[],retailer_segment:[]}),y({fromDate:(0,g.zX)(3),toDate:g.Ax.currentDate}),v()}}))))};var L=n(28161),P=n(11848),M=(0,P.Ay)(L.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",\"& .ag-row\":{cursor:\"pointer\"}}}),x=(n(74423),n(21699),n(71543)),I=n(60538),k=n(96348),B=n(17630),F=n(29743),j=n(56254),H=n(43605),U=n(92416),Y=n(7986),G=n(50261),z=n(86990),V=n(98587),q=n(58168),W=n(34164),Q=n(75659),K=n(28466),$=n(87458),X=n(25669),J=n(64438),Z=n(38413),ee=n(31609);function te(e){return(0,ee.Ay)(\"MuiMobileStepper\",e)}(0,Z.A)(\"MuiMobileStepper\",[\"root\",\"positionBottom\",\"positionTop\",\"positionStatic\",\"dots\",\"dot\",\"dotActive\",\"progress\"]);var ne=n(74848);const re=[\"activeStep\",\"backButton\",\"className\",\"LinearProgressProps\",\"nextButton\",\"position\",\"steps\",\"variant\"],oe=(0,P.Ay)(I.A,{name:\"MuiMobileStepper\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,K.A)(n.position)}`]]}})(({theme:e,ownerState:t})=>(0,q.A)({display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",background:(e.vars||e).palette.background.default,padding:8},\"bottom\"===t.position&&{position:\"fixed\",bottom:0,left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper},\"top\"===t.position&&{position:\"fixed\",top:0,left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper})),ae=(0,P.Ay)(\"div\",{name:\"MuiMobileStepper\",slot:\"Dots\",overridesResolver:(e,t)=>t.dots})(({ownerState:e})=>(0,q.A)({},\"dots\"===e.variant&&{display:\"flex\",flexDirection:\"row\"})),ie=(0,P.Ay)(\"div\",{name:\"MuiMobileStepper\",slot:\"Dot\",shouldForwardProp:e=>(0,J.A)(e)&&\"dotActive\"!==e,overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(({theme:e,ownerState:t,dotActive:n})=>(0,q.A)({},\"dots\"===t.variant&&(0,q.A)({transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:\"50%\",width:8,height:8,margin:\"0 2px\"},n&&{backgroundColor:(e.vars||e).palette.primary.main}))),le=(0,P.Ay)($.A,{name:\"MuiMobileStepper\",slot:\"Progress\",overridesResolver:(e,t)=>t.progress})(({ownerState:e})=>(0,q.A)({},\"progress\"===e.variant&&{width:\"50%\"})),se=r.forwardRef(function(e,t){const n=(0,X.b)({props:e,name:\"MuiMobileStepper\"}),{activeStep:o=0,backButton:a,className:i,LinearProgressProps:l,nextButton:s,position:u=\"bottom\",steps:c,variant:d=\"dots\"}=n,p=(0,V.A)(n,re),f=(0,q.A)({},n,{activeStep:o,position:u,variant:d});let g;\"progress\"===d&&(g=1===c?100:Math.ceil(o/(c-1)*100));const h=(e=>{const{classes:t,position:n}=e,r={root:[\"root\",`position${(0,K.A)(n)}`],dots:[\"dots\"],dot:[\"dot\"],dotActive:[\"dotActive\"],progress:[\"progress\"]};return(0,Q.A)(r,te,t)})(f);return(0,ne.jsxs)(oe,(0,q.A)({square:!0,elevation:0,className:(0,W.A)(h.root,i),ref:t,ownerState:f},p,{children:[a,\"text\"===d&&(0,ne.jsxs)(r.Fragment,{children:[o+1,\" / \",c]}),\"dots\"===d&&(0,ne.jsx)(ae,{ownerState:f,className:h.dots,children:[...new Array(c)].map((e,t)=>(0,ne.jsx)(ie,{className:(0,W.A)(h.dot,t===o&&h.dotActive),ownerState:f,dotActive:t===o},t))}),\"progress\"===d&&(0,ne.jsx)(le,(0,q.A)({ownerState:f,className:h.progress,variant:\"determinate\",value:g},l)),s]}))});var ue=n(44675),ce=n(7400),de=n(53432),pe=(0,P.Ay)(c.A)(function(e){return e.theme,{maxWidth:\"400px\",flexGrow:1,\"& .custom-carousal\":{height:\"fit-content\",display:\"block\",maxWidth:\"400px\",overflow:\"hidden\",width:\"100%\"}}});function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ge=(0,de.Cc)(ce.Ay);const he=function(e){var t,n,o=e.images,a=(0,ue.A)(),i=(t=r.useState(0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),l=i[0],s=i[1],u=null==o?void 0:o.length;return r.createElement(pe,null,r.createElement(ge,{axis:\"rtl\"===a.direction?\"x-reverse\":\"x\",index:l,onChangeIndex:function(e){s(e)},enableMouseEvents:!0},null==o?void 0:o.map(function(e,t){return r.createElement(\"div\",{key:e.label},Math.abs(l-t)<=2?r.createElement(L.A,{component:\"img\",className:\"custom-carousal\",src:\"data:image/jpeg;base64,\".concat(e.imgPath),alt:e.label}):null)})),u>1&&r.createElement(se,{steps:0,position:\"static\",activeStep:l,nextButton:r.createElement(z.A,{\"data-testid\":\"handleNext\",size:\"small\",onClick:function(){s(function(e){return e+1})},disabled:l===u-1},\"rtl\"===a.direction?r.createElement(Y.A,null):r.createElement(G.A,null)),backButton:r.createElement(z.A,{size:\"small\",onClick:function(){s(function(e){return e-1})},disabled:0===l,\"data-testid\":\"handleBack\"},\"rtl\"===a.direction?r.createElement(G.A,null):r.createElement(Y.A,null))}))};var me=n(86608),ve=n(29191),Ae=n(59615),ye=function(e){return e.attendeeTypesName=\"Attendee Types Name\",e.brand=\"Brand\",e.conductedBy=\"Conducted By\",e.crop=\"Crop\",e.eventDateTime=\"Event Date & Time\",e.eventId=\"Event ID\",e.eventStatus=\"Event Status\",e.eventTitle=\"Event Title\",e.eventType=\"Event Type\",e.geoHierarchyName=\"Geo Hierarchy Name\",e.growerCount=\"Grower Count\",e.hqHierarchyName=\"HQ Hierarchy Name\",e.wasSafetyCovered=\"Stewardship\",e.village=\"Village\",e}({}),Ee=[\"eventUUID\",\"userId\",\"imageIdList\",\"eventAttendees\",\"eventBrands\",\"geoDataValue\",\"cropId\",\"eventTypeId\",\"withReportingManager\",\"headquarterDataId\",\"headquarterHierarchyId\",\"salesHierarchyId\",\"geoDataId\",\"retailerUUID\",\"IsDeleted\",\"eventCode\",\"geoHierarchyName\",\"hqHierarchyName\",\"withReportingManager\",\"geoData\",\"village\",\"retailerPerformance\",\"otherAttendees\",\"eventGrowers\"],be=[{imgPath:\"iVBORw0KGgoAAAANSUhEUgAAAOAAAADgCAMAAAAt85rTAAAAYFBMVEX////e3t6vr697e3t+fn7Q0NCsrKx3d3e8vLy3t7fOzs7AwMC2traxsbHS0tLFxcXo6Ojv7+/09PTz8/Pd3d2enp7q6upxcXGUlJSDg4OLi4uPj4+np6eNjY2goKBra2uLzSdZAAAM6ElEQVR4nO2dibKiOhCGwUSCoCFsEXC57/+WtzsbAdTRqfGIp/JXTQ2iePqzO93ZxCgKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCvoG1RJUV582422qGg5qmjgWovyNmJJP1DSA+as4Yz7XdgucMUTt7wBdAvqcQsryu9unboJ3ITVmo9rnd3LWj/icLxHTtM9PG/yqSmX+s8pQ/KvykHyFT0l9IhmXn7b8STlAztE7L3B+iQ+FtVdCVZBxw3UYOtIJcvZ9gFWjeTJrb1XVJXJy0+Du6lsAubG3mdpblVII8Qi0+ZDFL6q25sc3n0Z3SikazheA4oct/UvV2UNAKwUqYp/zS7Jo/ZJDIHCbLwMsixcjTljA8q12/TOJVx0Sm0+E12+165+p0fYW2ycdUjUW8DuqRMQLUFYUz9pbqgtAX1IlKnDeS/YK8/ricdZdjeriRXtje8GXlMHyVcDGXvAlSVS+6hDbBLMvyTHxqw5xgG8169/J2ftsVcu+DNDa+3SVcBe8165/pap4wV4JH4KwF3xJGbQ5Jn+io8YRKn7hgs+qkphWRG40sfdGuNa8yHMoJdxe8ENm/p2qUsRxjIUhtvZ6SbTk28UFDeDlxXcA1lIgXtwgYGPtHZOoyPJ81sDEFvlyrJWZeX3xs0Y/KweH/zAqrUMKG5UqFFUwOkmNt3rASiq2URK72sZe2y+JLYtrk6ULyhw6A5V5Pl9E8adVzehAJfZEjb26SpRbB2OIS17k/jmXlFZXJcoFX6yqmjY3VT1RkY0wqUKG59PxVOO12dWNJWRzC9Am0VSqWEw9wLSpxeRMnsY3k9JKtABUSTROtaAMVpk9tv8X9sgKruDmBfnqxhKLEFVJtLEwpTt8IKkBUcXqAOt47kIs7c7eOsruYU0A7atWOBpcZNE6GsMSBkvFH/nAa7V91QrHEvIGYOnsrSLV4HYP+HZQ+qRtliuccVo0Qggyme6UsACYwwfCKmEvWF2VgHCc8Qksg7vR3j/y7Wtss/p4lYOlZUctEnsHWP0ZsII2aw6L1ZXBaN4IG0yisQGEfoncox4SKsC9BlxfEl00QlUl9lo4pRbDmCHdIeT+lnb7FAAL82iVM06z7jZWCWuvjjhctI4bnhnQucBrZW6OV1glojFGGwdo7c387UuVGjPyLWIeDgcHuMWenTle3VhCqZ4n0dI6Ki2yjMfTzKgX5yFwNecBvcbNBbsVlsFoVihUlVAeOhy0nyDX5EWRNfF0jruWolFxix01/eJDutJ1CT+PqgkZQzcRkqZFwWfb7ipspoV5zVpnnPw8ivG4XeKNnDsYL6ltd3LkzFcO6DdCDLJi84DQ+TMv1H5RCS5MzdkVzjgpVW5GTQPmD9lG4ecADs0KG9GrLIMorxFildht/uxCB4myD9ZZJaJJI8SxhLb6dR1WOJbQGgsFVon48LwDjRdNxK6xJ6rlemvoA/6XDtwcPo1xXzZG1YxTtvnLGN1/GuO+Ki/HREXyGley0Rck6acx7msCmCfOZouQPMGcJKutEtFYKDBNFAkKIa3Go4dabZWIRhcioNifUc9BedqstkqgxiQa4dAPx/H7w5OeM1pxlYhcoZgOcNU4frd/knO/asBy7GtPpRZ/myzfbZLHcXtea1dbyzZCcec7czCQL0VcpPskOd9uouc1J9HZ1JMQQt75NllVCojbHOPW54T/z+uccXJarFEoTHnn22SQhvg2g0S0GR266iQ6m3qacgLmHc5axk0DDXS/OScrXDmbaL5GMZN8ZL7aQLRyvlvbLTwnft/3O5e6sd/CROgaV1T+Qrdi9G4y/UotXfeL4FCTRvgrWt1M9RiYvw9OSfyahHlP9ZffvCEoKCgoKCgoKCgoKCgoKCgoKCgoKOgXqcgy98UinhXedyEEzzIuFjPaePNGs62gnNySUeJbjdfX/Mb9GiuB98njjVm2r73bPL5rJf8/xo47c9yxo9vT0my6nrD+dJ1vAilbxlp9yBnoYp/YHeGtxv31DYEn28kaaVVcT/CmjAyd/pNxz6zIu3bmHymlvfn0OsIsTtoTgqYQQtvpBWVLyFUfcriWEuu0gcCDce/rjuCzvl/ijhIjdtZnBupOvWu7EAJag0fAhFEybLJsA1azdhKmC0CzG7RRDxxg3RIK7+eZzSmBN+02h8O5GzILSFrzVZp3bUk80r4nA58CZkf4w+r7RgLsJJMtyR5gTuhlIMbDO9KfvJcKQroc/rnr1AdwMF9iMlvDAJC9e6PXkZ7OQKPaigUsT4ScTHCJE6GD/+l6gDtCkpYM6pV1xzp47OI5ZySJGWV2k1vVkSVMPJD3A5JTDE5SYBYwh1hzfxceMD8BeIApmLchVL206UnC2egxfK+qp65Rb4FvsTn9RwAprfeM0ioaAc+jA8GF0E6uXjL0AM9gXkHJGa+F9+AeYAlBXuIb2RNw1bCoBD8TokzW4LEkcoCyI9poLYitwSuPHuAVAONefRhwDa2zERAiFHJTAZ+cjlGIdJIsaip4kKRVDSrftucGAaMdUwndAMaXSV5JyCTbTwAhkiHPQoqKoR1HAHgxba4lDLKr6KkO4KhBFHVUC6XaAp6uSskbAUUkLuAzB8h7SryvOhwIvuQGYNWSfotxukePQaxljBpA2StsfK2ueFlvg5FfTqBLoQFtHWSntwJCwieQKg1gMwXc3wMsO9JzdBsEIzizgkRiPZhR0mFYp+AhOQOE3gMlOm95hf7NgCU2O4wrBBRQzzbjK65Q7W62wVoBVgxbMUNPQSYddKFLILvgnW8T6Capuzk1g+0RNG3b9tQCjn2n9wLCR077eDcmmdZt0q4gPXT+XdQcoFSA6HfIn3glAqqSKTp0EvYwqSkOmGRcLobYHgF/IIuq+AMz94n5PCGt9K62Q4tk/pePRsD4Qi6xSpiHDemlB4itGPmOQGg+q9Z7T3D9zwM2RzqYEI0K6sUoJlF/17UHeFIVQkBxGJR7XIhC07vEJajGq80p6ro5HwFUbrMdD/i4be8F+pt+UfQBIfUjIASc6flgZOL/ukXr17gOOORVdtZB6gH+SKHXgBKHOwYQqjc9boQsBdQIcpn0QEbATNd4TLMqVh2g6/sBPVS6Tn0+vMfBRAGOlfw0epDsdV0U77ohiwNEX7muIwda0kO6Q6OmXwsYAbe9zj4QmeSKENIA5gz7aVpneAf9B7IBTjPatl1P6Vgm+kGpP79pN9yRHg0gJk+XtJuW6QLMrrMeJALqxoTFDmMOM6SyFzyoDjqvrHGoImbEKA6MmbJupg5iNUjWp9o3ddZY74bkRd/TsSo1h64frss72pVXSrUHYZyhrcrbs3qZhAIHCbcmPR2/EwnjTUdbFYd26Ntzam6gG596K3oN+xmDgoKCgoKCgv6s2v7AAMhbDmvwl2y8nhv+MIM9djfrr3I4rNxZfWvfuuHqVxz4Sn6CUJzcohazI4ly38LYjfSnjbWxOjPW20uOjOl5v/I/6FAX7uxRDXY59DVxqaofulV8JRuHdXayywDiwM3Ijp4qGAg5QGanAEpGzYSaOquHYhmeNO9Iu893qnHU05kbg+pJMhjx0f5a8OIKQz8z4rgPSMnOnmXq+i0cFFIKjqtxN2bwf1qicyZq4RREr+Muw4GwsvAu4ODmAHxA7dQGxlrkXUPbp4UenNzEB8f6doFpx8x66T1A0p3tAq4PaEfVOLv26TsHgAcnE4UVxOVgH9Q4CEcX3AE8ki4+GrAbgDjFfWMV5mc192DD3Dp1pF2Ik9X3ACnFVbNen3WAdl4EF0In88ifEAL6bTAFQ8c1XsRF/Ltt8BjF0NDy6LYHcRaq/3CawTLRmXvwG5OOY1AJiDFsYg8Aq4SQU3kHcLaW8wm5lQUQPoaHR+/ZQU8bPgBUc6DpugGt8PEckC4ByRQw2qhF8JuAh+l66ieEbfBqfpPdmMTGtIDT1phyKptKUH6SQUD4FFga9bcAW7tk+DnNs2gO9o0/2VIwswXjMA1RnZaMBzHXDnVLloC4ReXTU6BzQMHGhSG1MKPn5YG7N66Qbg+MBYTayYpbgIXJsJ/UHBD38PT2PstYJfRWCg6NyTi2AGj9AguIHeyhI5rL78lAN/D06c7ooqvGqbOqxPyjWXAtQ48bJCRWs7TgAFUTXfRF1c6wj9/qcAFY7YHwkgkpsotnoFrTbKTknRtijIC4lYF6gLyUoknVIuGn+9pLQKjcEJjk1J5wQOfuA1e2ao2tw7GePTkCQqnwAEmHy2Y4KEw+f5sd0RE2uyVolROm170Gb0heXo9mNcxFHXS2LWAMfXQ9os+Odpso69bwc8PiOgyLdlIVh9Ol3c1GOmJ/vZzO3q9JlP3gakc6DLrX2Zzb4TJcrptv+SXXoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoF+k/wHhBgFzuFSBLgAAAABJRU5ErkJggg==\"}],_e={\"& .modalBody\":{height:\"80vh\",\"& .modal-body\":{height:\"calc(80vh - 40px)\",overflow:\"auto\"}}},Ce=n(21239),we=n(90815),Se=n(56203);const Te=function(e){var t=e.eventGrowers;return o().createElement(we.A,{mb:1,flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"start\",gap:1,width:\"100%\"},o().createElement(o().Fragment,null,o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},(0,Se.t)(\"GROWERS_ATTENDED\")),o().createElement(m.A,{fontSize:14,fontWeight:500},t.map(function(e){return e.growerName}).join(\", \"))))};var Oe=n(23835);function De(e){return De=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},De(e)}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=De(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==De(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me=function(e){var t=e.setState,n=e.setShowEntries,a=e.showEntries,i=e.popUpClose,u=e.eventsById,d=e.countryCode,g=e.geoDataValue,h=e.retailerPerformance,A=e.eventBrands,y=e.otherAttendees,E=e.eventGrowers,_=e.images,C=e.downloadReportsPayload,w=e.eventFilters,S=e.hasReadAccess,T=e.sortId,O=e.setSortId,D=e.setFilterOpen,R=e.eventsList,N=e.removePortfolioHeader,L=e.eventsRowClick,P=e.state,M=e.paginationCount,Y=e.totalElements,G=e.open,z=(0,Oe.A)().downloadTemplate,V=(0,r.useContext)(l.v),q=V.BackOfficeProps,W=q.globalStore.User,Q=q.baseurl,K=V.triggerToastMsg,$=(0,f.i)(W).hasPortfolioEnable;return o().createElement(c.A,null,o().createElement(v.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(c.A,null,o().createElement(U.A,{routePathName:[{name:k.F_.Events,path:k.fp.Events},{name:k.F_.EventsActual,path:k.fp.EventsActual}]}))),o().createElement(v.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(v.A,{direction:\"row\",alignItems:\"center\"},o().createElement(ve.A,{menuItemData:[5,20,100],onHandleChange:function(e){t(function(t){return Le(Le({},t),{},{pageSize:e})}),n(e)},selectedItem:a})),G&&o().createElement(me.A,{isVisible:G,sx:_e},o().createElement(c.A,null,o().createElement(v.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,pb:0},o().createElement(m.A,{variant:\"h1\"},\"\".concat((0,Se.t)(\"EVENT_DETAILS\"))),o().createElement(c.A,null,o().createElement(m.A,{className:\"icon-close closeIcon\",onClick:i}))),o().createElement(c.A,{className:\"modal-body\",p:2},o().createElement(m.A,{mb:1,fontSize:20,fontWeight:700,color:B.w.palette.primary.main},null==u?void 0:u.hqName),o().createElement(v.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"start\",gap:2},o().createElement(c.A,{className:\"event-details-wrapper\",width:\"60%\"},Object.entries(u).map(function(e){var t,n,r,a,i=(a=2,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(r,a)||function(e,t){if(e){if(\"string\"==typeof e)return Re(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,t):void 0}}(r,a)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),l=i[0],s=i[1];if(!Ee.includes(l)&&s&&(\"KR\"!==d||\"crop\"!==l))return o().createElement(v.A,{mb:1,flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"start\",gap:1,width:\"100%\",key:l},o().createElement(o().Fragment,null,o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},null!==(n=ye[t=l])&&void 0!==n?n:t),o().createElement(m.A,{fontSize:14,fontWeight:500},s)))}),g.length>0&&(null==g?void 0:g.map(function(e){return o().createElement(v.A,{mb:1,flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"start\",gap:1,width:\"100%\",key:e.event_uuid},o().createElement(o().Fragment,null,o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},null==e?void 0:e.geo_hierarchy_name),o().createElement(m.A,{fontSize:14,fontWeight:500},null==e?void 0:e.name)))})),h.length>0&&h.map(function(e){return o().createElement(v.A,{key:e.event_uuid,mb:1,flexDirection:\"column\",justifyContent:\"flex-start\",alignItems:\"start\",gap:1,width:\"100%\"},o().createElement(v.A,{flexDirection:\"row\",width:\"100%\",gap:1},o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"\".concat((0,Se.t)(\"ORDER_VALUE\"))),o().createElement(m.A,{fontSize:14,fontWeight:500},e.orderValue)),o().createElement(v.A,{flexDirection:\"row\",width:\"100%\",gap:1},o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"\".concat((0,Se.t)(\"PLACEMENT\"))),o().createElement(m.A,{fontSize:14,fontWeight:500},e.placement)),o().createElement(v.A,{flexDirection:\"row\",width:\"100%\",gap:1},o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"\".concat((0,Se.t)(\"LIQUIDATION\"))),o().createElement(m.A,{fontSize:14,fontWeight:500},e.liquidation)),o().createElement(v.A,{flexDirection:\"row\",width:\"100%\",gap:1},o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"\".concat((0,Se.t)(\"COLLECTION\"))),o().createElement(m.A,{fontSize:14,fontWeight:500},e.collection)))}),A.length>0&&o().createElement(v.A,{mb:1,flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"start\",gap:1,width:\"100%\"},o().createElement(o().Fragment,null,o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"Brand Name\"),o().createElement(m.A,{fontSize:14,fontWeight:500},A.map(function(e){return e.brandName}).join(\", \")))),y.length>0&&o().createElement(v.A,{mb:1,flexDirection:\"row\",justifyContent:\"space-start\",alignItems:\"start\",gap:1,width:\"100%\"},o().createElement(o().Fragment,null,o().createElement(m.A,{textTransform:\"capitalize\",fontSize:14,fontWeight:500,color:B.w.palette.primary.main,minWidth:\"50%\"},\"Other Attendees\"),o().createElement(m.A,{fontSize:14,fontWeight:500},y.map(function(e){return e.attendeeTypeName}).join(\", \")))),E.length>0&&o().createElement(Te,{eventGrowers:E})),o().createElement(c.A,{className:\"image-holder\",width:\"40%\"},o().createElement(he,{images:(null==_?void 0:_.length)>0?_:be})))))),o().createElement(v.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",mb:2,spacing:2},o().createElement(v.A,{flexDirection:\"row\",justifyContent:\"center\",gap:2},o().createElement(c.A,null,o().createElement(Ce.A,{onSearchValueChange:function(e){t(function(t){return Le(Le({},t),{},{searchValue:e,pageNo:0})})},placeholderText:(0,Se.t)(\"SEARCH\"),searchValue:\"\"})),o().createElement(b.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:(0,Se.t)(\"DOWNLOAD_EVENT_ACTUALS\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){return(0,p.hh)(W,Q,C,{triggerToastMsg:K,downloadTemplate:z},\"eventActuals\")}}),o().createElement(b.A,{buttonName:(0,Se.t)(\"FILTERS\"),className:(0,s.F7)(w),color:\"transparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),variant:\"text\",onButtonClick:function(){return D(!0)},disabled:!S}),o().createElement(x.A,{orientation:\"vertical\",flexItem:!0}),o().createElement(Ae.A,{onSort:function(e){return O(null==e?void 0:e.toString())},sortBy:T,showLastUpdatedOn:!0})))),o().createElement(I.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(H.A,{rows:R,columnDefs:$?(0,F.S)(d):N((0,F.S)(d)),onRowClicked:function(e){return L(null==e?void 0:e.data)}})),o().createElement(j.A,{pageNo:P.pageNo,totalPageCount:M,totalElements:Y,onPageChange:function(e){t(function(t){return Le(Le({},t),{},{pageNo:Number(e)})})}}))};function xe(e){return xe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},xe(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach(function(t){Be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Be(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=xe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=xe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==xe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||He(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||He(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function He(e,t){if(e){if(\"string\"==typeof e)return Ue(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(e,t):void 0}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ye=function(e){var t,n,c,d,h,m,v,A,y=e.RBACControls,E=(0,u.w)(y).hasReadAccess,b=(0,r.useContext)(l.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,S=b.triggerShowLoader,T=(0,f.i)(C).hasShowPortfolio,O=null===(t=C.selectedCountry)||void 0===t?void 0:t.countryCode,D=w,R=null!==(n=null==C?void 0:C.AccessToken)&&void 0!==n?n:\"\",L=null===(c=C.UserDetails)||void 0===c?void 0:c.user_id,P=null==C?void 0:C.selectedBusinessUnit,x=je((0,r.useState)(!1),2),I=x[0],k=x[1],B=je((0,r.useState)(i.T3),2),F=B[0],j=B[1],H=je((0,r.useState)(1),2),U=H[0],Y=H[1],G=je((0,r.useState)(0),2),z=G[0],V=G[1],q=je((0,r.useState)(5),2),W=q[0],Q=q[1],K=je((0,r.useState)({pageNo:0,pageSize:10,searchValue:\"\"}),2),$=K[0],X=K[1],J=$.pageNo,Z=$.pageSize,ee=$.searchValue,te=je((0,r.useState)(!1),2),ne=te[0],re=te[1],oe=je((0,r.useState)([]),2),ae=oe[0],ie=oe[1],le=je((0,r.useState)({fromDate:(0,g.zX)(3),toDate:g.Ax.currentDate}),2),se=le[0],ue=le[1],ce=je((0,r.useState)({}),2),de=ce[0],pe=ce[1],fe=je((0,r.useState)([]),2),ge=fe[0],he=fe[1],me=je((0,r.useState)([]),2),ve=me[0],Ae=me[1],ye=je((0,r.useState)([]),2),Ee=ye[0],be=ye[1],_e=je((0,r.useState)([]),2),Ce=_e[0],we=_e[1],Se=je((0,r.useState)([]),2),Te=Se[0],Oe=Se[1],De=je((0,r.useState)([]),2),Re=De[0],Ne=De[1];(0,r.useEffect)(function(){Ge()},[$,F,se,ee]);var Le,Pe,xe=function(e){return Array.isArray(e)?e.map(function(e){return e.value}):[]},Ie=Fe(xe(null==se?void 0:se.crop).map(function(e){return e})),Be=Fe(xe(null==se?void 0:se.hqName).map(function(e){return e})),He=Fe(xe(null==se?void 0:se.brand).map(function(e){return e})),Ue={crop_id:null!=Ie&&Ie.length?Ie:[],hq_data_id:null!=Be&&Be.length?Be:[],brand_id:null!=He&&He.length?He:[],event_type:null!==(d=null==se||null===(h=se.eventType)||void 0===h?void 0:h.id)&&void 0!==d?d:null,conducted_by:null==se||null===(m=se.conductedBy)||void 0===m?void 0:m.id,from_date:null!=se&&se.fromDate?(0,g.Yq)(null==se?void 0:se.fromDate,\"YYYY-MM-DD\"):null,to_date:null!=se&&se.toDate?(0,g.Yq)(null==se?void 0:se.toDate,\"YYYY-MM-DD\"):null,event_status:null!==(v=null==se?void 0:se.eventStatus)&&void 0!==v?v:null,page_no:J,page_size:Z,sort:\"desc\"};if(T&&null!=se&&null!==(A=se.portfolio)&&void 0!==A&&A.value)Ue.portfolio_code=null!==(Le=null==se||null===(Pe=se.portfolio)||void 0===Pe?void 0:Pe.value)&&void 0!==Le?Le:\"DEFAULT\";else if(!T){var Ye;Ue.portfolio_code=(0,s.XD)(null==se||null===(Ye=se.portfolio)||void 0===Ye?void 0:Ye.value,C)}var Ge=function(){var e,t,n,r,o,i,l,u={};u.domain=D,u.endPoint=function(){if(0===Object.keys(se).length)return a.p.GET_EVENTSLIST;var e=[].concat(Fe(xe(null==se?void 0:se.crop).map(function(e){return\"crop_id=\".concat(e)})),Fe(xe(null==se?void 0:se.hqName).map(function(e){return\"hq_data_id=\".concat(e)})),Fe(xe(null==se?void 0:se.brand).map(function(e){return\"brand_id=\".concat(e)})));return\"\".concat(a.p.GET_EVENTSLIST,\"?\").concat(e.join(\"&\"))}(),u.customHeaders={\"bu-id\":null==P?void 0:P.bu_id,\"country-code\":O,\"user-id\":L,\"role-type-name\":\"\".concat(C.UserDetails.role_type_details.role_type_name),Authorization:\"Bearer \".concat(R)},u.payLoad={event_type:null!==(e=null==se||null===(t=se.eventType)||void 0===t?void 0:t.id)&&void 0!==e?e:null,conducted_by:null==se||null===(n=se.conductedBy)||void 0===n?void 0:n.id,portfolio_code:T?null==se||null===(r=se.portfolio)||void 0===r?void 0:r.value:(0,s.XD)(null==se||null===(o=se.portfolio)||void 0===o?void 0:o.value,C),from_date:null!=se&&se.fromDate?(0,g.Yq)(null==se?void 0:se.fromDate,\"YYYY-MM-DD\"):null,to_date:null!=se&&se.toDate?(0,g.Yq)(null==se?void 0:se.toDate,\"YYYY-MM-DD\"):null,event_status:null!==(i=null==se?void 0:se.eventStatus)&&void 0!==i?i:null,retailer:se.retialer,retailer_segment:se.retailer_segemnt,page_no:J,page_size:Z,sort:\"desc\"},ee&&(u.payLoad.search_key=ee.toLocaleLowerCase()),F&&(u.payLoad.sort=\"1\"===F?\"asc\":\"desc\"),u.triggerLoader=S,null===(l=(0,p.kQ)(u))||void 0===l||l.then(function(e){var t,n,r,o,a=1;if((null==e||null===(t=e.data)||void 0===t?void 0:t.total_elements)>Z&&(a=Math.ceil((null==e||null===(o=e.data)||void 0===o?void 0:o.total_elements)/Z)),Y(a),V(null==e||null===(n=e.data)||void 0===n?void 0:n.total_elements),(null==e||null===(r=e.data)||void 0===r||null===(r=r.event_details_list)||void 0===r?void 0:r.length)>0){var i,l=null==e||null===(i=e.data)||void 0===i||null===(i=i.event_details_list)||void 0===i?void 0:i.map(function(e){return{crop:null==e?void 0:e.crop,village:null==e?void 0:e.village,brand:null==e?void 0:e.brand,conductedBy:null==e?void 0:e.conductedBy,hqName:null==e?void 0:e.hqName,eventType:null==e?void 0:e.eventType,eventDateTime:null!=e&&e.eventDateTime?(0,g.Yq)(null==e?void 0:e.eventDateTime,\"DD-MM-YYYY\"):null,growerCount:null==e?void 0:e.growerCount,attendeeTypesName:null==e?void 0:e.attendeeTypesName,wasSafetyCovered:null==e?void 0:e.wasSafetyCovered,imageIdList:null==e?void 0:e.imageIdList,eventId:null==e?void 0:e.eventId,eventUUID:null==e?void 0:e.eventUUID,userId:null==e?void 0:e.userId,eventTitle:null==e?void 0:e.eventTitle,portfolioCode:null==e?void 0:e.portfolioCode,eventStatus:(t=null==e?void 0:e.eventStatus,t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():\"\")};var t});ie(l)}else ie([])}).catch(function(e){console.log(\"fetch Events err\",e)})},ze=function(e,t){var n={},r=a.p.GET_EVENTIMAGES.replace(\"__UUID__\",\"\".concat(e)).replace(\"__ID__\",\"\".concat(t));return n.domain=D,n.endPoint=r,n.headerType=\"image/jpeg\",n.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(R)},n.triggerLoader=S,(0,p.kQ)(n).then(function(e){if(201===e.status||200===e.status)return{imgPath:e.data}}).catch(function(e){console.log(\"Fetch EventImages Data Error\",e)})};return o().createElement(M,null,o().createElement(Me,{setState:X,setShowEntries:Q,showEntries:W,popUpClose:function(){he([]),re(!1)},eventsById:de,countryCode:O,geoDataValue:ve,retailerPerformance:Ee,eventBrands:Ce,otherAttendees:Te,eventGrowers:Re,images:ge,downloadReportsPayload:Ue,eventFilters:se,hasReadAccess:E,sortId:F,setSortId:j,setFilterOpen:k,eventsList:ae,removePortfolioHeader:function(e){var t=null==e?void 0:e.filter(function(e){return\"Portfolio\"!==(null==e?void 0:e.headerName)});return null!=t?t:[]},eventsRowClick:function(e){var t,n=a.p.GET_EVENTBYID.replace(\"__UUID__\",\"\".concat(null==e?void 0:e.eventUUID)),r={};r.endPoint=n,r.domain=D,r.customHeaders={\"bu-id\":null==P?void 0:P.bu_id,\"country-code\":O,\"user-id\":L,Authorization:\"Bearer \".concat(R)},r.triggerLoader=S,null===(t=(0,p.kQ)(r))||void 0===t||t.then(function(e){var t,n,r,o,a;201!==e.status&&200!==e.status||null==e||!e.data||(Object.entries(e.data).forEach(function(t){var n=je(t,2),r=n[0],o=n[1];if(\"eventDateTime\"===r)e.data.eventDateTime=o?(0,g.KG)(o):null;else if(\"wasSafetyCovered\"===r){var a=(0,s.Fl)(o);e.data.wasSafetyCovered=null===o?null:a}}),Ae(null==e?void 0:e.data.geoData),be(null==e||null===(t=e.data)||void 0===t?void 0:t.retailerPerformance),we(null==e||null===(n=e.data)||void 0===n?void 0:n.eventBrands),Oe(null==e||null===(r=e.data)||void 0===r?void 0:r.eventAttendees),Ne(null==e||null===(o=e.data)||void 0===o?void 0:o.eventGrowers),pe(null==e?void 0:e.data),(null==e||null===(a=e.data)||void 0===a||null===(a=a.imageIdList)||void 0===a?void 0:a.length)>0?function(e){var t=[];e.imageIdList.map(function(n){t.push(ze(null==e?void 0:e.eventUUID,n))}),Promise.all(t).then(function(e){var t=e.filter(function(e){return void 0!==e});he(t),re(!0)})}(null==e?void 0:e.data):re(!0))}).catch(function(e){console.log(\"ERR on GetEventsByID \".concat(e))})},state:$,paginationCount:U,totalElements:z,open:ne}),I&&o().createElement(N,{isFilterOpen:I,onRequestClose:function(){return k(!1)},setEventFilters:function(e){ue(e),X(function(e){return ke(ke({},e),{},{pageNo:0,pageSize:10})})},eventFilters:se,setState:X}))}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},29834:(e,t,n)=>{\"use strict\";n.d(t,{BO:()=>u,aN:()=>c,qU:()=>d,zu:()=>p}),n(52675),n(89463),n(28706),n(64346),n(23792),n(48598),n(62062),n(94170),n(59904),n(84185),n(40875),n(10287),n(26099),n(16034),n(3362),n(62953);var r=n(95692),o=n(8085),a=n(13075);function i(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var i=r&&r.prototype instanceof u?r:u,c=Object.create(i.prototype);return l(c,\"_invoke\",function(n,r,o){var a,i,l,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,i=0,l=e,p.n=n,s}};function f(n,r){for(i=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(i=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,i=0))}if(o||n>1)return s;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),i=c,l=g;(t=i<2?e:l)||!d;){a||(i?i<3?(i>1&&(p.n=-1),f(i,l)):p.n=l:p.v=l);try{if(u=2,a){if(i||(o=\"next\"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),i=1);a=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),c}var s={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),f=d.prototype=u.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return c.prototype=d,l(f,\"constructor\",d),l(d,\"constructor\",c),c.displayName=\"GeneratorFunction\",l(d,o,\"GeneratorFunction\"),l(f),l(f,o,\"Generator\"),l(f,r,function(){return this}),l(f,\"toString\",function(){return\"[object Generator]\"}),(i=function(){return{w:a,m:g}})()}function l(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}l=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){l(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},l(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var u=function(){var e,t=(e=i().m(function e(t,n,l,s){var u,c,d;return i().w(function(e){for(;;)switch(e.n){case 0:return(c={}).domain=n,c.endPoint=\"\".concat(o.p.GET_BGP_GROWTH_RULE_HQS,\"?planningCycle=\").concat(encodeURIComponent(s)),c.customHeaders={\"country-code\":null==t||null===(u=t.selectedCountry)||void 0===u?void 0:u.countryCode,\"bu-id\":null==t?void 0:t.selectedBusinessUnit.bu_id,\"user-id\":null==t?void 0:t.UserDetails.user_id,Authorization:\"Bearer \".concat(null==t?void 0:t.AccessToken,\" \")},c.triggerLoader=l,e.n=1,r.N.get(c);case 1:if(d=e.v,(0,a.mN)(d)&&Array.isArray(null==d?void 0:d.data)){e.n=2;break}throw new Error(\"Unable to fetch division growth rules\");case 2:return e.a(2,d.data)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,\"next\",e)}function l(e){s(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r,o){return t.apply(this,arguments)}}(),c=function(e,t,n){var i,l={};return l.domain=t,l.endPoint=\"\".concat(o.p.GET_CONFIGURATION_VALUES,\"?moduleName=\").concat(n.moduleName,\"&\").concat(Object.values(n.keys).map(function(e){return\"keys=\".concat(e)}).join(\"&\")),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken,\" \")},new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){if((0,a.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})},d=function(e,t,n,i){var l,s={};return s.domain=t,s.endPoint=o.p.GET_CONFIGURATION_VALUES,s.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e?void 0:e.UserDetails.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken,\" \")},s.payLoad=i,s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(s))||void 0===n||n.then(function(n){var r;return(0,a.mN)(n)?e(n):t(new Error((null==n||null===(r=n.data)||void 0===r?void 0:r.errorMessage)||(null==n?void 0:n.error)||\"Unable to save retailer configuration\"))}).catch(function(e){return t(new Error(e))})})},p=function(e,t,n,i){var l,s={};return s.domain=t,s.endPoint=o.p.SAVE_BGP_GROWTH_RULES,s.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e?void 0:e.UserDetails.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken,\" \")},s.payLoad=i,s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(s))||void 0===n||n.then(function(n){return(0,a.mN)(n)?e(n):t(new Error(\"Unable to save division growth rules\"))}).catch(function(e){return t(new Error(e))})})}},29849:function(e,t,n){!function(e){\"use strict\";var t={1:\"੧\",2:\"੨\",3:\"੩\",4:\"੪\",5:\"੫\",6:\"੬\",7:\"੭\",8:\"੮\",9:\"੯\",0:\"੦\"},n={\"੧\":\"1\",\"੨\":\"2\",\"੩\":\"3\",\"੪\":\"4\",\"੫\":\"5\",\"੬\":\"6\",\"੭\":\"7\",\"੮\":\"8\",\"੯\":\"9\",\"੦\":\"0\"};e.defineLocale(\"pa-in\",{months:\"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ\".split(\"_\"),monthsShort:\"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ\".split(\"_\"),weekdays:\"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ\".split(\"_\"),weekdaysShort:\"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ\".split(\"_\"),weekdaysMin:\"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ\".split(\"_\"),longDateFormat:{LT:\"A h:mm ਵਜੇ\",LTS:\"A h:mm:ss ਵਜੇ\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm ਵਜੇ\",LLLL:\"dddd, D MMMM YYYY, A h:mm ਵਜੇ\"},calendar:{sameDay:\"[ਅਜ] LT\",nextDay:\"[ਕਲ] LT\",nextWeek:\"[ਅਗਲਾ] dddd, LT\",lastDay:\"[ਕਲ] LT\",lastWeek:\"[ਪਿਛਲੇ] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s ਵਿੱਚ\",past:\"%s ਪਿਛਲੇ\",s:\"ਕੁਝ ਸਕਿੰਟ\",ss:\"%d ਸਕਿੰਟ\",m:\"ਇਕ ਮਿੰਟ\",mm:\"%d ਮਿੰਟ\",h:\"ਇੱਕ ਘੰਟਾ\",hh:\"%d ਘੰਟੇ\",d:\"ਇੱਕ ਦਿਨ\",dd:\"%d ਦਿਨ\",M:\"ਇੱਕ ਮਹੀਨਾ\",MM:\"%d ਮਹੀਨੇ\",y:\"ਇੱਕ ਸਾਲ\",yy:\"%d ਸਾਲ\"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"ਰਾਤ\"===t?e<4?e:e+12:\"ਸਵੇਰ\"===t?e:\"ਦੁਪਹਿਰ\"===t?e>=10?e:e+12:\"ਸ਼ਾਮ\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"ਰਾਤ\":e<10?\"ਸਵੇਰ\":e<17?\"ਦੁਪਹਿਰ\":e<20?\"ਸ਼ਾਮ\":\"ਰਾਤ\"},week:{dow:0,doy:6}})}(n(95093))},29889:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>m}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);function p(e){return p=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=p(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==p(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules,p=n.length>0&&n.map(function(e){return g(g({},e),{},{path:e.moduleName===i.pW[\"UPLOAD-RETAILERS\"]?\"\".concat(i.fp.Upload_Retailers,\"/listofretailers\"):e.path})});return(0,o.useEffect)(function(){localStorage.removeItem(\"SELECTED_TAB\"),localStorage.removeItem(\"selectedFilters\")},[]),a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Retailers,path:i.fp.EntryPath}]})),p.length>0?a().createElement(d.A,{moduleData:p}):a().createElement(c.A,null))}},29948:(e,t,n)=>{\"use strict\";var r=n(35370),o=n(94644).getTypedArrayConstructor;e.exports=function(e,t){return r(o(e),t)}},29994:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f2fb55134a17174a60e.eot\"},30041:(e,t,n)=>{\"use strict\";function r(e,t,n){var r=\"\";return n.split(\" \").forEach(function(n){void 0!==e[n]?t.push(e[n]+\";\"):n&&(r+=n+\" \")}),r}n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>a});var o=function(e,t,n){var r=e.key+\"-\"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+\"-\"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?\".\"+r:\"\",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},30115:e=>{\"use strict\";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o=\"undefined\"!=typeof Element;function a(e,i){if(e===i)return!0;if(e&&i&&\"object\"==typeof e&&\"object\"==typeof i){var l,s,u,c=t(e),d=t(i);if(c&&d){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(!a(e[l],i[l]))return!1;return!0}if(c!=d)return!1;var p=e instanceof Date,f=i instanceof Date;if(p!=f)return!1;if(p&&f)return e.getTime()==i.getTime();var g=e instanceof RegExp,h=i instanceof RegExp;if(g!=h)return!1;if(g&&h)return e.toString()==i.toString();var m=n(e);if((s=m.length)!==n(i).length)return!1;for(l=s;0!==l--;)if(!r.call(i,m[l]))return!1;if(o&&e instanceof Element&&i instanceof Element)return e===i;for(l=s;0!==l--;)if(!(\"_owner\"===(u=m[l])&&e.$$typeof||a(e[u],i[u])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn(\"Warning: react-fast-compare does not handle circular references.\",e.name,e.message),!1;throw e}}},30237:(e,t,n)=>{\"use strict\";n(6469)(\"flatMap\")},30294:e=>{e.exports=function(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30301:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>x}),n(52675),n(89463),n(2259),n(28706),n(23418),n(64346),n(23792),n(34782),n(23288),n(94170),n(62010),n(9868),n(59904),n(84185),n(40875),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(25440),n(62953);var r=n(90815),o=n(14073),a=n(8239),i=n(28161),l=n(88084),s=n(56203),u=n(81970),c=n.n(u),d=n(47767),p=n(8085),f=n(17630),g=n(47225),h=n(70380),m=n(15664),v=n(76906),A=n(35165),y=n(37695),E=n(27203),b=n(95692),_=n(13075);function C(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return w(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(w(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,w(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,w(d,\"constructor\",u),w(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",w(u,o,\"GeneratorFunction\"),w(d),w(d,o,\"Generator\"),w(d,r,function(){return this}),w(d,\"toString\",function(){return\"[object Generator]\"}),(C=function(){return{w:a,m:p}})()}function w(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}w=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){w(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},w(e,t,n,r)}function S(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var T=function(){var e,t=(e=C().m(function e(t){return C().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e,n){var r;null===(r=b.N.get(t))||void 0===r||r.then(function(t){var n;if((0,_.mN)(t))return e(null==t?void 0:t.data);throw new Error(null!==(n=null==t?void 0:t.data.errorMessage)&&void 0!==n?n:(0,_.Tl)(\"FAILED_TO_FETCH_RETAILER_PERFORMANCE\"))}).catch(function(e){return n(new Error(e.message))})}))},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){S(a,r,o,i,l,\"next\",e)}function l(e){S(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),O=n(82348);function D(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return R(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(R(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,R(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,R(d,\"constructor\",u),R(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",R(u,o,\"GeneratorFunction\"),R(d),R(d,o,\"Generator\"),R(d,r,function(){return this}),R(d,\"toString\",function(){return\"[object Generator]\"}),(D=function(){return{w:a,m:p}})()}function R(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}R=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){R(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},R(e,t,n,r)}function N(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function L(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){N(a,r,o,i,l,\"next\",e)}function l(e){N(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const x=function(){var e=(0,u.useContext)(g.v),t=e.BackOfficeProps,n=t.globalStore.User,b=t.baseurl,_=e.triggerShowLoader,C=void 0===_?function(){}:_,w=(0,d.g)().id,S={startDate:h.Ax.startDateOfMonth,endDate:h.Ax.currentDate},R=P((0,u.useState)({}),2),N=R[0],M=R[1],x=P((0,u.useState)({}),2),I=x[0],k=x[1],B=P((0,u.useState)(\"\"),2),F=B[0],j=B[1];(0,u.useEffect)(function(){Q()},[]);var H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"k\";return null!=e?\"\".concat((e/1e3).toFixed(arguments.length>2&&void 0!==arguments[2]?arguments[2]:2),\" \").concat(t):\"NA\"},U=H(I.inventory),Y=H(I.orderDeficit,\"k\",I.orderDeficit?2:0),G=H(I.totalPlacement,\"k\",I.totalPlacement?2:0),z=H(I.totalLiquidation,\"k\",I.totalLiquidation?2:0),V=H(I.totalCollection),q=H(I.totalOrderValue),W=I.annualPlan?\"\".concat(I.annualPlan,\" Lakhs\"):\"NA\",Q=function(){var e=L(D().m(function e(){var t;return D().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,A.Rd)(n,b,C,w);case 1:(t=e.v)&&(M(t),j(null==t?void 0:t.retailer_uuid)),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),K=function(){var e=L(D().m(function e(t){var r,o;return D().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,(r={}).domain=b,r.endPoint=p.p.getRetailerPerformance.replace(\"__RETAILER_UUID__\",F),r.payLoad={start_date:(0,h.Yq)(null==t?void 0:t.startDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\"),end_date:(0,h.Yq)(null==t?void 0:t.endDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\")},r.customHeaders={\"bu-id\":n.selectedBusinessUnit.bu_id,\"country-code\":n.selectedCountry.countryCode,Authorization:\"Bearer \".concat(n.AccessToken)},r.triggerLoader=C,e.n=1,T(r);case 1:(o=e.v)&&k(o),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();return(0,u.useEffect)(function(){F&&K(S)},[F]),c().createElement(y.M,{sx:{backgroundColor:f.w.palette.secondary.main,padding:\"16px\"}},c().createElement(O._,null,c().createElement(r.A,{direction:\"row\",justifyContent:\"space-between\",mt:2,mb:2},c().createElement(o.A,{variant:\"h2\"},\"\".concat((0,s.t)(\"PERFORMANCE\")))),c().createElement(a.Ay,{container:!0,columns:{xs:12},spacing:2},c().createElement(a.Ay,{item:!0,xs:12},c().createElement(i.A,{className:\"user-detail-box\"},c().createElement(E.A,{retailerDetails:N})))),c().createElement(a.Ay,{item:!0,xs:12},c().createElement(l.l1,{enableReinitialize:!0,initialValues:S,onSubmit:function(e,t){K(e)}},function(e){var t=e.values,n=e.setFieldValue;return c().createElement(l.lV,{className:\"popupContent\"},c().createElement(r.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},c().createElement(i.A,{mb:2,width:\"100%\"},c().createElement(o.A,{variant:\"subtitle2\"},(0,s.t)(\"USER_START_DATE\")),c().createElement(l.D0,{name:\"startDate\",type:\"text\"},function(){return c().createElement(v.A,{restrictManualEntry:!0,value:null==t?void 0:t.startDate,defaultValue:null==t?void 0:t.startDate,handleChangeDatePicker:function(e){n(\"startDate\",e)},minDate:h.Ax.startDateOfYear,maxDate:h.Ax.currentDate})})),c().createElement(i.A,{mb:2,width:\"100%\"},c().createElement(c().Fragment,null,c().createElement(o.A,{variant:\"subtitle2\"},\"End Date *\"),c().createElement(l.D0,{name:\"endDate\"},function(){var e;return c().createElement(v.A,{restrictManualEntry:!0,value:null!==(e=null==t?void 0:t.endDate)&&void 0!==e?e:t.startDate,defaultValue:null==t?void 0:t.endDate,handleChangeDatePicker:function(e){n(\"endDate\",e)},disabled:!t.startDate,minDate:t.startDate,maxDate:h.Ax.currentDate})}))),c().createElement(i.A,{mb:2,mt:3,width:\"100%\"},c().createElement(m.A,{variant:\"contained\",buttonName:\"Apply\",fullwidth:!1,color:\"primary\",type:\"submit\"}))))})),c().createElement(a.Ay,{item:!0,xs:12},c().createElement(i.A,{className:\"user-detail-box\"},c().createElement(a.Ay,{container:!0,columns:{xs:12},rowGap:2,mb:2},c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"ANNUAL_RETAILER_PLAN\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},W))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"TOTAL_ORDER_VALUE\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},q))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"TOTAL_COLLECTION\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},V))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"TOTAL_LIQUIDATION\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},z)))),c().createElement(a.Ay,{container:!0,columns:{xs:12},rowGap:2,mb:2},c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"TOTAL_PLACEMENT\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},G))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"ORDER_DEFICIT\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},Y))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},\"\".concat((0,s.t)(\"INVENTORY\"))),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},U))),c().createElement(a.Ay,{item:!0,xs:3},c().createElement(i.A,{className:\"user-details-container\"},c().createElement(o.A,{variant:\"h5\",color:\"#1D2B3A\"},(0,s.t)(\"NOOFVISITS\")),c().createElement(o.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},I.noOfVisits?\"\".concat(I.noOfVisits):\"NA\"))))))))}},30306:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"mk\",{months:\"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември\".split(\"_\"),monthsShort:\"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек\".split(\"_\"),weekdays:\"недела_понеделник_вторник_среда_четврток_петок_сабота\".split(\"_\"),weekdaysShort:\"нед_пон_вто_сре_чет_пет_саб\".split(\"_\"),weekdaysMin:\"нe_пo_вт_ср_че_пе_сa\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"D.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY H:mm\",LLLL:\"dddd, D MMMM YYYY H:mm\"},calendar:{sameDay:\"[Денес во] LT\",nextDay:\"[Утре во] LT\",nextWeek:\"[Во] dddd [во] LT\",lastDay:\"[Вчера во] LT\",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return\"[Изминатата] dddd [во] LT\";case 1:case 2:case 4:case 5:return\"[Изминатиот] dddd [во] LT\"}},sameElse:\"L\"},relativeTime:{future:\"за %s\",past:\"пред %s\",s:\"неколку секунди\",ss:\"%d секунди\",m:\"една минута\",mm:\"%d минути\",h:\"еден час\",hh:\"%d часа\",d:\"еден ден\",dd:\"%d дена\",M:\"еден месец\",MM:\"%d месеци\",y:\"една година\",yy:\"%d години\"},dayOfMonthOrdinalParse:/\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+\"-ев\":0===n?e+\"-ен\":n>10&&n<20?e+\"-ти\":1===t?e+\"-ви\":2===t?e+\"-ри\":7===t||8===t?e+\"-ми\":e+\"-ти\"},week:{dow:1,doy:7}})}(n(95093))},30361:e=>{var t=/^(?:0|[1-9]\\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&(\"number\"==r||\"symbol\"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},30421:e=>{\"use strict\";e.exports={}},30566:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79306),a=n(20034),i=n(39297),l=n(67680),s=n(40616),u=Function,c=r([].concat),d=r([].join),p={};e.exports=s?u.bind:function(e){var t=o(this),n=t.prototype,r=l(arguments,1),s=function(){var n=c(r,l(arguments));return this instanceof s?function(e,t,n){if(!i(p,t)){for(var r=[],o=0;o<t;o++)r[o]=\"a[\"+o+\"]\";p[t]=u(\"C,a\",\"return new C(\"+d(r,\",\")+\")\")}return p[t](e,n)}(t,n.length,n):t.apply(e,n)};return a(n)&&(s.prototype=n),s}},30623:(e,t,n)=>{\"use strict\";n.d(t,{P5:()=>r,U7:()=>o,hv:()=>a});var r=function(e){return e.RETAILER_STATUS=\"Retailer Status\",e.VERIFICATION_STATUS=\"Verification Status\",e}({}),o=[{labelName:\"Retailer Status\",options:[{label:\"Pending For Approval\",value:\"PENDING_FOR_APPROVAL\",checked:!1},{label:\"Approved\",value:\"APPROVED\",checked:!1},{label:\"Rejected\",value:\"REJECTED\",checked:!1}]},{labelName:\"Verification Status\",options:[{label:\"Verified\",value:\"VERIFIED\",checked:!1},{label:\"Not Verified\",value:\"NOT_VERIFIED\",checked:!1},{label:\"Re-KYC\",value:\"RE_KYC\",checked:!1}]}],a=function(e){return e.INVALID_INPUTS=\"Invalid inputs\",e.INVALID_OTP=\"Invalid Verification Code\",e.CHANGE_MOBILE_NUMBER=\"Change Mobile Number\",e}({})},30641:(e,t,n)=>{var r=n(86649),o=n(95950);e.exports=function(e,t){return e&&r(e,t,o)}},30655:e=>{\"use strict\";var t=Object.defineProperty||!1;if(t)try{t({},\"a\",{value:1})}catch(e){t=!1}e.exports=t},30756:(e,t,n)=>{var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},30837:(e,t,n)=>{try{var r=n(69264)}catch(e){r=n(69264)}var o=/\\s+/,a=Object.prototype.toString;function i(e){if(!e||!e.nodeType)throw new Error(\"A DOM element reference is required\");this.el=e,this.list=e.classList}e.exports=function(e){return new i(e)},i.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(\" \"),this},i.prototype.remove=function(e){if(\"[object RegExp]\"==a.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(\" \"),this},i.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},i.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},i.prototype.array=function(){var e=(this.el.getAttribute(\"class\")||\"\").replace(/^\\s+|\\s+$/g,\"\").split(o);return\"\"===e[0]&&e.shift(),e},i.prototype.has=i.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},31052:function(e,t,n){!function(e){\"use strict\";var t=\"pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut\".split(\"_\");function n(e,n,r,o){var a=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a=\"\";return n>0&&(a+=t[n]+\"vatlh\"),r>0&&(a+=(\"\"!==a?\" \":\"\")+t[r]+\"maH\"),o>0&&(a+=(\"\"!==a?\" \":\"\")+t[o]),\"\"===a?\"pagh\":a}(e);switch(r){case\"ss\":return a+\" lup\";case\"mm\":return a+\" tup\";case\"hh\":return a+\" rep\";case\"dd\":return a+\" jaj\";case\"MM\":return a+\" jar\";case\"yy\":return a+\" DIS\"}}e.defineLocale(\"tlh\",{months:\"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’\".split(\"_\"),monthsShort:\"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’\".split(\"_\"),monthsParseExact:!0,weekdays:\"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj\".split(\"_\"),weekdaysShort:\"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj\".split(\"_\"),weekdaysMin:\"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[DaHjaj] LT\",nextDay:\"[wa’leS] LT\",nextWeek:\"LLL\",lastDay:\"[wa’Hu’] LT\",lastWeek:\"LLL\",sameElse:\"L\"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf(\"jaj\")?t.slice(0,-3)+\"leS\":-1!==e.indexOf(\"jar\")?t.slice(0,-3)+\"waQ\":-1!==e.indexOf(\"DIS\")?t.slice(0,-3)+\"nem\":t+\" pIq\"},past:function(e){var t=e;return-1!==e.indexOf(\"jaj\")?t.slice(0,-3)+\"Hu’\":-1!==e.indexOf(\"jar\")?t.slice(0,-3)+\"wen\":-1!==e.indexOf(\"DIS\")?t.slice(0,-3)+\"ben\":t+\" ret\"},s:\"puS lup\",ss:n,m:\"wa’ tup\",mm:n,h:\"wa’ rep\",hh:n,d:\"wa’ jaj\",dd:n,M:\"wa’ jar\",MM:n,y:\"wa’ DIS\",yy:n},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},31165:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{MasterRootRoute:()=>s,default:()=>u}),n(23792),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(27305),i=n(72448),l=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,41616))}),s=function(e){var t=e.RBACControls,n=(0,a.T)(t.subModuleProps).readableModules;return o().createElement(i.A,{readableModules:n,childComponent:o().createElement(l,{RBACControls:t})})};const u=s},31175:(e,t,n)=>{var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},31240:(e,t,n)=>{\"use strict\";var r=n(79504);e.exports=r(1.1.valueOf)},31380:e=>{e.exports=function(e){return this.__data__.set(e,\"__lodash_hash_undefined__\"),this}},31411:(e,t,n)=>{\"use strict\";e.exports=n.p+\"7f9bc24f7b573a988236.woff\"},31415:(e,t,n)=>{\"use strict\";n(92405)},31523:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n(17365);function a(...e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.A)(e,t)})},e)}},31541:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"zh-mo\",{months:\"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"星期日_星期一_星期二_星期三_星期四_星期五_星期六\".split(\"_\"),weekdaysShort:\"週日_週一_週二_週三_週四_週五_週六\".split(\"_\"),weekdaysMin:\"日_一_二_三_四_五_六\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"YYYY年M月D日\",LLL:\"YYYY年M月D日 HH:mm\",LLLL:\"YYYY年M月D日dddd HH:mm\",l:\"D/M/YYYY\",ll:\"YYYY年M月D日\",lll:\"YYYY年M月D日 HH:mm\",llll:\"YYYY年M月D日dddd HH:mm\"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),\"凌晨\"===t||\"早上\"===t||\"上午\"===t?e:\"中午\"===t?e>=11?e:e+12:\"下午\"===t||\"晚上\"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?\"凌晨\":r<900?\"早上\":r<1130?\"上午\":r<1230?\"中午\":r<1800?\"下午\":\"晚上\"},calendar:{sameDay:\"[今天] LT\",nextDay:\"[明天] LT\",nextWeek:\"[下]dddd LT\",lastDay:\"[昨天] LT\",lastWeek:\"[上]dddd LT\",sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"日\";case\"M\":return e+\"月\";case\"w\":case\"W\":return e+\"週\";default:return e}},relativeTime:{future:\"%s內\",past:\"%s前\",s:\"幾秒\",ss:\"%d 秒\",m:\"1 分鐘\",mm:\"%d 分鐘\",h:\"1 小時\",hh:\"%d 小時\",d:\"1 天\",dd:\"%d 天\",M:\"1 個月\",MM:\"%d 個月\",y:\"1 年\",yy:\"%d 年\"}})}(n(95093))},31545:function(e,t,n){!function(e){\"use strict\";var t={1:\"༡\",2:\"༢\",3:\"༣\",4:\"༤\",5:\"༥\",6:\"༦\",7:\"༧\",8:\"༨\",9:\"༩\",0:\"༠\"},n={\"༡\":\"1\",\"༢\":\"2\",\"༣\":\"3\",\"༤\":\"4\",\"༥\":\"5\",\"༦\":\"6\",\"༧\":\"7\",\"༨\":\"8\",\"༩\":\"9\",\"༠\":\"0\"};e.defineLocale(\"bo\",{months:\"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ\".split(\"_\"),monthsShort:\"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12\".split(\"_\"),monthsShortRegex:/^(ཟླ་\\d{1,2})/,monthsParseExact:!0,weekdays:\"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་\".split(\"_\"),weekdaysShort:\"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་\".split(\"_\"),weekdaysMin:\"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན\".split(\"_\"),longDateFormat:{LT:\"A h:mm\",LTS:\"A h:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm\",LLLL:\"dddd, D MMMM YYYY, A h:mm\"},calendar:{sameDay:\"[དི་རིང] LT\",nextDay:\"[སང་ཉིན] LT\",nextWeek:\"[བདུན་ཕྲག་རྗེས་མ], LT\",lastDay:\"[ཁ་སང] LT\",lastWeek:\"[བདུན་ཕྲག་མཐའ་མ] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s ལ་\",past:\"%s སྔན་ལ\",s:\"ལམ་སང\",ss:\"%d སྐར་ཆ།\",m:\"སྐར་མ་གཅིག\",mm:\"%d སྐར་མ\",h:\"ཆུ་ཚོད་གཅིག\",hh:\"%d ཆུ་ཚོད\",d:\"ཉིན་གཅིག\",dd:\"%d ཉིན་\",M:\"ཟླ་བ་གཅིག\",MM:\"%d ཟླ་བ\",y:\"ལོ་གཅིག\",yy:\"%d ལོ\"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"མཚན་མོ\"===t&&e>=4||\"ཉིན་གུང\"===t&&e<5||\"དགོང་དག\"===t?e+12:e},meridiem:function(e,t,n){return e<4?\"མཚན་མོ\":e<10?\"ཞོགས་ཀས\":e<17?\"ཉིན་གུང\":e<20?\"དགོང་དག\":\"མཚན་མོ\"},week:{dow:0,doy:6}})}(n(95093))},31575:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(80926).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"reduce\",function(e){var t=arguments.length;return o(a(this),e,t,t>1?arguments[1]:void 0)})},31609:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>a});var r=n(79071);const o={active:\"active\",checked:\"checked\",completed:\"completed\",disabled:\"disabled\",error:\"error\",expanded:\"expanded\",focused:\"focused\",focusVisible:\"focusVisible\",open:\"open\",readOnly:\"readOnly\",required:\"required\",selected:\"selected\"};function a(e,t,n=\"Mui\"){const a=o[t];return a?`${n}-${a}`:`${r.A.generate(e)}-${t}`}},31694:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"find\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},31769:(e,t,n)=>{var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},31797:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>C}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(26910),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(8239),o=n(14073),a=n(51545),i=n(80663),l=n(88084),s=n(81970),u=n.n(s),c=n(34195),d=n(15664),p=n(36874),f=n(28152),g=n(64121),h=n(48506),m=n(15941),v=function(e){var t=e.isMandatoryDistributorField;return m.Ik().shape({distributor:m.YO().when([\"tmhq\"],function(e){return e&&t?m.YO().min(1,\"At least one distributor is required\").required(\"At least one distributor is required\"):m.YO()})})},A=n(73300);function y(e){return y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},y(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=function(e){var t,n,s,m,y,E=e.filtersOptions,_=e.initialValues,C=e.onFilterSubmit,w=e.onClearFilters,S=e.onHQChange,T=e.isFilterOpen,O=void 0!==T&&T,D=e.onRequestClose,R=e.screenName,N=void 0===R?\"\":R,L=(0,c.Bd)().t,P=null!==(t=null==E||null===(n=E.tmhq)||void 0===n?void 0:n.sort(function(e,t){var n;return null==e||null===(n=e.label)||void 0===n?void 0:n.localeCompare(null==t?void 0:t.label)}))&&void 0!==t?t:[],M=null!==(s=E.crop)&&void 0!==s?s:[],x=null!==(m=E.distributor)&&void 0!==m?m:[],I=null!==(y=E.status)&&void 0!==y?y:[];return u().createElement(a.A,null,u().createElement(p.A,{isDrawerOpen:O,anchor:\"top\",upper:!0},u().createElement(a.A,{p:3,className:\"retailer-floating-filter-wrapper\"},u().createElement(l.l1,{initialValues:Object.keys(_).length?_:{tmhq:null,crop:[],distributor:[],status:null},enableReinitialize:!0,validationSchema:v({isMandatoryDistributorField:N==(null===A.Gu||void 0===A.Gu?void 0:A.Gu.DISPATCH_LIST)}),onSubmit:function(e){C(e)}},function(e){var t,n,s,c=e.values,p=e.setFieldValue;return u().createElement(l.lV,{className:\"popupContent floating-filter\",\"data-testid\":\"demo-dispatch-filters\"},u().createElement(r.Ay,{container:!0,columns:12,spacing:2,wrap:\"nowrap\"},u().createElement(r.Ay,{item:!0,xs:3},u().createElement(o.A,{variant:\"subtitle2\"},L(\"CROP\")),u().createElement(h.A,{name:\"crop\",options:M,selectedOption:c.crop,onHandleChange:function(e){return p(\"crop\",e.map(function(e){return b(b({},e),{},{checked:!0})}))},multiple:!0,placeholder:\"Select Crop\"}),u().createElement(f.A,{errName:\"crop\"})),u().createElement(r.Ay,{item:!0,xs:3},u().createElement(o.A,{variant:\"subtitle2\"},L(\"TMHQ\")),u().createElement(g.A,{name:\"tmhq\",options:P,labelKey:\"label\",value:c.tmhq,selectedOption:c.tmhq,onChange:function(e,t){p(\"tmhq\",t),S(null==t?void 0:t.value),p(\"distributor\",[])},defaultLabel:\"Select TMHQ\"}),u().createElement(f.A,{errName:\"tmhq\"})),u().createElement(r.Ay,{item:!0,xs:3},u().createElement(o.A,{variant:\"subtitle2\"},L(\"DISTRIBUTOR\")),u().createElement(h.A,{name:\"distributor\",options:x,selectedOption:null!==(t=c.distributor)&&void 0!==t?t:[],onHandleChange:function(e){p(\"distributor\",e.map(function(e){return b(b({},e),{},{checked:!0})}))},multiple:!0,placeholder:\"Select Distributor\",disabled:!c.tmhq}),u().createElement(f.A,{errName:\"distributor\"})),u().createElement(r.Ay,{item:!0,xs:3,pr:4,mb:.5},u().createElement(o.A,{variant:\"subtitle2\"},L(\"STATUS\")),u().createElement(g.A,{name:\"status\",options:I,labelKey:\"label\",value:c.status,selectedOption:c.status,onChange:function(e,t){p(\"status\",t?b(b({},t),{},{checked:!0}):null)},defaultLabel:\"Select Status\"}),u().createElement(f.A,{errName:\"status\"}))),u().createElement(i.A,{direction:\"row\",justifyContent:\"end\",pr:4,mb:.5,mt:2},u().createElement(a.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},u().createElement(d.A,{variant:\"outlined\",buttonName:null!==(n=L(\"CLEAR_FILTERS\"))&&void 0!==n?n:\"\",onButtonClick:w,fullwidth:!1,color:\"primary\",type:\"reset\"}),u().createElement(d.A,{variant:\"contained\",buttonName:null!==(s=L(\"APPLY_FILTERS\"))&&void 0!==s?s:\"\",fullwidth:!1,color:\"primary\",type:\"submit\"}))),u().createElement(a.A,{\"data-testid\":\"onRequestClose\",onClick:D,className:\"smart-agro-lite-filter-cross\"},u().createElement(o.A,{className:\"icon-close closeIcon\"})))}))))}},32023:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d647a25c2a9efb712018.woff2\"},32027:(e,t,n)=>{\"use strict\";n.d(t,{i:()=>r});var r=function(e){var t=(null==e?void 0:e.selectedBusinessUnit)||{},n=t.portfolio_enable,r=t.portfolio_code,o=t.userRoleControls,a=(void 0===o?{}:o).role_name;return{hasShowPortfolio:n&&\"COUNTRY_ADMIN\"===a,hasPortfolioEnable:n,hasPortfolioCode:r}}},32028:(e,t,n)=>{var r,o=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,a=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,i=\"\\\\ud800-\\\\udfff\",l=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23\",s=\"\\\\u20d0-\\\\u20f0\",u=\"\\\\u2700-\\\\u27bf\",c=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",d=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",p=\"\\\\ufe0e\\\\ufe0f\",f=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\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\",g=\"[\"+i+\"]\",h=\"[\"+f+\"]\",m=\"[\"+l+s+\"]\",v=\"\\\\d+\",A=\"[\"+u+\"]\",y=\"[\"+c+\"]\",E=\"[^\"+i+f+v+u+c+d+\"]\",b=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",_=\"[^\"+i+\"]\",C=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",w=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",S=\"[\"+d+\"]\",T=\"\\\\u200d\",O=\"(?:\"+y+\"|\"+E+\")\",D=\"(?:\"+S+\"|\"+E+\")\",R=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",N=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",L=\"(?:\"+m+\"|\"+b+\")?\",P=\"[\"+p+\"]?\",M=P+L+\"(?:\"+T+\"(?:\"+[_,C,w].join(\"|\")+\")\"+P+L+\")*\",x=\"(?:\"+[A,C,w].join(\"|\")+\")\"+M,I=\"(?:\"+[_+m+\"?\",m,C,w,g].join(\"|\")+\")\",k=RegExp(\"['’]\",\"g\"),B=RegExp(m,\"g\"),F=RegExp(b+\"(?=\"+b+\")|\"+I+M,\"g\"),j=RegExp([S+\"?\"+y+\"+\"+R+\"(?=\"+[h,S,\"$\"].join(\"|\")+\")\",D+\"+\"+N+\"(?=\"+[h,S+O,\"$\"].join(\"|\")+\")\",S+\"?\"+O+\"+\"+R,S+\"+\"+N,v,x].join(\"|\"),\"g\"),H=RegExp(\"[\"+T+i+l+s+p+\"]\"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Y=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,G=\"object\"==typeof self&&self&&self.Object===Object&&self,z=Y||G||Function(\"return this\")(),V=(r={À:\"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\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"ss\"},function(e){return null==r?void 0:r[e]});function q(e){return H.test(e)}var W=Object.prototype.toString,Q=z.Symbol,K=Q?Q.prototype:void 0,$=K?K.toString:void 0;function X(e){return null==e?\"\":function(e){if(\"string\"==typeof e)return e;if(function(e){return\"symbol\"==typeof e||function(e){return!!e&&\"object\"==typeof e}(e)&&\"[object Symbol]\"==W.call(e)}(e))return $?$.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}(e)}var J,Z=(J=function(e,t,n){return t=t.toLowerCase(),e+(n?ee(X(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=X(e),void 0===t?function(e){return U.test(e)}(e)?function(e){return e.match(j)||[]}(e):function(e){return e.match(o)||[]}(e):e.match(t)||[]}(function(e){return(e=X(e))&&e.replace(a,V).replace(B,\"\")}(e).replace(k,\"\")),J,\"\")}),ee=function(e){var t,n,r,o,a=q(e=X(e))?function(e){return q(e)?function(e){return e.match(F)||[]}(e):function(e){return e.split(\"\")}(e)}(e):void 0,i=a?a[0]:e.charAt(0),l=a?(t=a,n=1,o=t.length,r=void 0===r?o:r,!n&&r>=o?t:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}(t,n,r)).join(\"\"):e.slice(1);return i.toUpperCase()+l};e.exports=Z},32088:(e,t,n)=>{\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(n(50817)),a=r(n(45228)),i=!0,l=!1,s=[\"altKey\",\"bubbles\",\"cancelable\",\"ctrlKey\",\"currentTarget\",\"eventPhase\",\"metaKey\",\"shiftKey\",\"target\",\"timeStamp\",\"view\",\"type\"];function u(e){return null==e}var c=[{reg:/^key/,props:[\"char\",\"charCode\",\"key\",\"keyCode\",\"which\"],fix:function(e,t){u(e.which)&&(e.which=u(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:[\"touches\",\"changedTouches\",\"targetTouches\"]},{reg:/^hashchange$/,props:[\"newURL\",\"oldURL\"]},{reg:/^gesturechange$/i,props:[\"rotation\",\"scale\"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,a=t.wheelDelta,i=t.axis,l=t.wheelDeltaY,s=t.wheelDeltaX,u=t.detail;a&&(o=a/120),u&&(o=0-(u%3==0?u/3:u)),void 0!==i&&(i===e.HORIZONTAL_AXIS?(r=0,n=0-o):i===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==l&&(r=l/120),void 0!==s&&(n=-1*s/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:[\"buttons\",\"clientX\",\"clientY\",\"button\",\"offsetX\",\"relatedTarget\",\"which\",\"fromElement\",\"toElement\",\"offsetY\",\"pageX\",\"pageY\",\"screenX\",\"screenY\"],fix:function(e,t){var n=void 0,r=void 0,o=void 0,a=e.target,i=t.button;return a&&u(e.pageX)&&!u(t.clientX)&&(r=(n=a.ownerDocument||document).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===a?e.toElement:e.fromElement),e}}];function d(){return i}function p(){return l}function f(e){var t=e.type,n=\"function\"==typeof e.stopPropagation||\"boolean\"==typeof e.cancelBubble;o.default.call(this),this.nativeEvent=e;var r=p;\"defaultPrevented\"in e?r=e.defaultPrevented?d:p:\"getPreventDefault\"in e?r=e.getPreventDefault()?d:p:\"returnValue\"in e&&(r=e.returnValue===l?d:p),this.isDefaultPrevented=r;var a=[],i=void 0,u=void 0,f=s.concat();for(c.forEach(function(e){t.match(e.reg)&&(f=f.concat(e.props),e.fix&&a.push(e.fix))}),i=f.length;i;)this[u=f[--i]]=e[u];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),i=a.length;i;)(0,a[--i])(this,e);this.timeStamp=e.timeStamp||Date.now()}var g=o.default.prototype;(0,a.default)(f.prototype,g,{constructor:f,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=l,g.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=i,g.stopPropagation.call(this)}}),t.default=f,e.exports=t.default},32112:(e,t,n)=>{\"use strict\";n.d(t,{R:()=>d});var r=n(28161),o=n(14073),a=n(90815),i=n(56203),l=n(81970),s=n.n(l),u=n(86608),c=n(15664),d=(0,l.memo)(function(e){var t=e.onRequestClose,n=void 0===t?function(){}:t,l=e.isVisible,d=e.message,p=e.onSave,f=e.primaryBtnName,g=e.secondaryBtnName;return s().createElement(u.A,{isVisible:l},s().createElement(r.A,{p:3},s().createElement(o.A,{variant:\"subtitle2\"},d)),s().createElement(a.A,{direction:\"row\",gap:2,justifyContent:\"end\",className:\"btnsBlock\",p:2},s().createElement(c.A,{variant:\"outlined\",buttonName:null!=g?g:(0,i.t)(\"No\"),onButtonClick:n,fullwidth:!1,color:\"secondary\"}),s().createElement(c.A,{variant:\"contained\",disabled:!1,buttonName:null!=f?f:(0,i.t)(\"YES\"),fullwidth:!1,onButtonClick:p,color:\"primary\",type:\"submit\"})))})},32124:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={s:[\"थोडया सॅकंडांनी\",\"थोडे सॅकंड\"],ss:[e+\" सॅकंडांनी\",e+\" सॅकंड\"],m:[\"एका मिणटान\",\"एक मिनूट\"],mm:[e+\" मिणटांनी\",e+\" मिणटां\"],h:[\"एका वरान\",\"एक वर\"],hh:[e+\" वरांनी\",e+\" वरां\"],d:[\"एका दिसान\",\"एक दीस\"],dd:[e+\" दिसांनी\",e+\" दीस\"],M:[\"एका म्हयन्यान\",\"एक म्हयनो\"],MM:[e+\" म्हयन्यानी\",e+\" म्हयने\"],y:[\"एका वर्सान\",\"एक वर्स\"],yy:[e+\" वर्सांनी\",e+\" वर्सां\"]};return r?o[n][0]:o[n][1]}e.defineLocale(\"gom-deva\",{months:{standalone:\"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर\".split(\"_\"),format:\"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या\".split(\"_\"),isFormat:/MMMM(\\s)+D[oD]?/},monthsShort:\"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.\".split(\"_\"),monthsParseExact:!0,weekdays:\"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार\".split(\"_\"),weekdaysShort:\"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.\".split(\"_\"),weekdaysMin:\"आ_सो_मं_बु_ब्रे_सु_शे\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"A h:mm [वाजतां]\",LTS:\"A h:mm:ss [वाजतां]\",L:\"DD-MM-YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY A h:mm [वाजतां]\",LLLL:\"dddd, MMMM Do, YYYY, A h:mm [वाजतां]\",llll:\"ddd, D MMM YYYY, A h:mm [वाजतां]\"},calendar:{sameDay:\"[आयज] LT\",nextDay:\"[फाल्यां] LT\",nextWeek:\"[फुडलो] dddd[,] LT\",lastDay:\"[काल] LT\",lastWeek:\"[फाटलो] dddd[,] LT\",sameElse:\"L\"},relativeTime:{future:\"%s\",past:\"%s आदीं\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}(वेर)/,ordinal:function(e,t){return\"D\"===t?e+\"वेर\":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),\"राती\"===t?e<4?e:e+12:\"सकाळीं\"===t?e:\"दनपारां\"===t?e>12?e:e+12:\"सांजे\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"राती\":e<12?\"सकाळीं\":e<16?\"दनपारां\":e<20?\"सांजे\":\"राती\"}})}(n(95093))},32223:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n,r){function a(t){var r=new o.default(t);n.call(e,r)}if(e.addEventListener){var i=(l=!1,\"object\"==typeof r?l=r.capture||!1:\"boolean\"==typeof r&&(l=r),e.addEventListener(t,a,r||!1),{v:{remove:function(){e.removeEventListener(t,a,l)}}});if(\"object\"==typeof i)return i.v}else if(e.attachEvent)return e.attachEvent(\"on\"+t,a),{remove:function(){e.detachEvent(\"on\"+t,a)}};var l};var r,o=(r=n(32088))&&r.__esModule?r:{default:r};e.exports=t.default},32244:(e,t,n)=>{\"use strict\";e.exports=n.p+\"b0215fbc9e1007670ba2.woff\"},32325:(e,t,n)=>{\"use strict\";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},32357:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(79039),a=n(79504),i=n(42787),l=n(71072),s=n(25397),u=a(n(48773).f),c=a([].push),d=r&&o(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),p=function(e){return function(t){for(var n,o=s(t),a=l(o),p=d&&null===i(o),f=a.length,g=0,h=[];f>g;)n=a[g++],r&&!(p?n in o:u(o,n))||c(h,e?[n,o[n]]:o[n]);return h}};e.exports={entries:p(!0),values:p(!1)}},32469:(e,t,n)=>{n(62613)(\"asyncIterator\")},32755:(e,t,n)=>{\"use strict\";n.d(t,{Eg:()=>i,LJ:()=>a,s4:()=>l}),n(26099),n(3362);var r=n(95692),o=n(13075),a=function(e){return new Promise(function(t,n){var a;null===(a=r.N.get(e))||void 0===a||a.then(function(e){if((0,o.mN)(e))return t(e)}).catch(function(e){return n(new Error(e.message))})})},i=function(e){return new Promise(function(t,n){var a;null===(a=r.N.post(e))||void 0===a||a.then(function(e){if((0,o.mN)(e))return t(e)}).catch(function(e){return n(new Error(e.message))})})},l=function(e){return new Promise(function(t,n){var o;null===(o=r.N.put(e))||void 0===o||o.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})}},32804:(e,t,n)=>{var r=n(56110)(n(9325),\"Promise\");e.exports=r},32850:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext({})},32934:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"eo\",{months:\"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro\".split(\"_\"),monthsShort:\"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec\".split(\"_\"),weekdays:\"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato\".split(\"_\"),weekdaysShort:\"dim_lun_mard_merk_ĵaŭ_ven_sab\".split(\"_\"),weekdaysMin:\"di_lu_ma_me_ĵa_ve_sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"[la] D[-an de] MMMM, YYYY\",LLL:\"[la] D[-an de] MMMM, YYYY HH:mm\",LLLL:\"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm\",llll:\"ddd, [la] D[-an de] MMM, YYYY HH:mm\"},meridiemParse:/[ap]\\.t\\.m/i,isPM:function(e){return\"p\"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?\"p.t.m.\":\"P.T.M.\":n?\"a.t.m.\":\"A.T.M.\"},calendar:{sameDay:\"[Hodiaŭ je] LT\",nextDay:\"[Morgaŭ je] LT\",nextWeek:\"dddd[n je] LT\",lastDay:\"[Hieraŭ je] LT\",lastWeek:\"[pasintan] dddd[n je] LT\",sameElse:\"L\"},relativeTime:{future:\"post %s\",past:\"antaŭ %s\",s:\"kelkaj sekundoj\",ss:\"%d sekundoj\",m:\"unu minuto\",mm:\"%d minutoj\",h:\"unu horo\",hh:\"%d horoj\",d:\"unu tago\",dd:\"%d tagoj\",M:\"unu monato\",MM:\"%d monatoj\",y:\"unu jaro\",yy:\"%d jaroj\"},dayOfMonthOrdinalParse:/\\d{1,2}a/,ordinal:\"%da\",week:{dow:1,doy:7}})}(n(95093))},32967:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s}),n(81970);var r=n(22532),o=n(39940),a=n(82858),i=n(74848);function l(e){const t=(0,r.internal_serializeStyles)(e);return e!==t&&t.styles?(t.styles.match(/^@layer\\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}const s=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,a.A)(n),s=t&&r[t]||r;let u=\"function\"==typeof e?e(s):e;return s.modularCssLayers&&(u=Array.isArray(u)?u.map(e=>l(\"function\"==typeof e?e(s):e)):l(u)),(0,i.jsx)(o.A,{styles:u})}},32995:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a7c56cad90b85de104bf.eot\"},33025:(e,t,n)=>{n(28957),n(44345),n(32469),n(75529),e.exports=n(6791).Symbol},33068:(e,t,n)=>{\"use strict\";n.d(t,{E:()=>i,A:()=>l});var r=n(81970);const o={},a=[];class i{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new i}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function l(){const e=function(e){const t=r.useRef(o);return t.current===o&&(t.current=e(void 0)),t}(i.create).current;var t;return t=e.disposeEffect,r.useEffect(t,a),e}},33110:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(97751),a=n(18745),i=n(69565),l=n(79504),s=n(79039),u=n(94901),c=n(10757),d=n(67680),p=n(66933),f=n(4495),g=String,h=o(\"JSON\",\"stringify\"),m=l(/./.exec),v=l(\"\".charAt),A=l(\"\".charCodeAt),y=l(\"\".replace),E=l(1.1.toString),b=/[\\uD800-\\uDFFF]/g,_=/^[\\uD800-\\uDBFF]$/,C=/^[\\uDC00-\\uDFFF]$/,w=!f||s(function(){var e=o(\"Symbol\")(\"stringify detection\");return\"[null]\"!==h([e])||\"{}\"!==h({a:e})||\"{}\"!==h(Object(e))}),S=s(function(){return'\"\\\\udf06\\\\ud834\"'!==h(\"\\udf06\\ud834\")||'\"\\\\udead\"'!==h(\"\\udead\")}),T=function(e,t){var n=d(arguments),r=p(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=i(r,this,g(e),t)),!c(t))return t},a(h,null,n)},O=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(_,e)&&!m(C,o)||m(C,e)&&!m(_,r)?\"\\\\u\"+E(A(e,0),16):e};h&&r({target:\"JSON\",stat:!0,arity:3,forced:w||S},{stringify:function(e,t,n){var r=d(arguments),o=a(w?T:h,null,r);return S&&\"string\"==typeof o?y(o,b,O):o}})},33164:(e,t,n)=>{\"use strict\";var r=n(77782),o=n(53602),a=Math.abs;e.exports=function(e,t,n,i){var l=+e,s=a(l),u=r(l);if(s<i)return u*o(s/i/t)*i*t;var c=(1+t/2220446049250313e-31)*s,d=c-(c-s);return d>n||d!=d?u*(1/0):u*d}},33198:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>m});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(25669),u=n(11848),c=n(38413),d=n(31609);function p(e){return(0,d.Ay)(\"MuiTableContainer\",e)}(0,c.A)(\"MuiTableContainer\",[\"root\"]);var f=n(74848);const g=[\"className\",\"component\"],h=(0,u.Ay)(\"div\",{name:\"MuiTableContainer\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({width:\"100%\",overflowX:\"auto\"}),m=a.forwardRef(function(e,t){const n=(0,s.b)({props:e,name:\"MuiTableContainer\"}),{className:a,component:u=\"div\"}=n,c=(0,o.A)(n,g),d=(0,r.A)({},n,{component:u}),m=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},p,t)})(d);return(0,f.jsx)(h,(0,r.A)({ref:t,as:u,className:(0,i.A)(m.root,a),ownerState:d},c))})},33206:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"forEach\",function(e){o(a(this),e,arguments.length>1?arguments[1]:void 0)})},33392:(e,t,n)=>{\"use strict\";var r=n(79504),o=0,a=Math.random(),i=r(1.1.toString);e.exports=function(e){return\"Symbol(\"+(void 0===e?\"\":e)+\")_\"+i(++o+a,36)}},33417:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>fe}),n(94170),n(69085);var r=n(9483),o=n(9378),a=n(98587),i=n(58168),l=n(81970),s=n.n(l),u=n(34164),c=n(75659),d=n(771),p=n(34661),f=n(2501);var g=n(71547),h=n(17365);function m(e){return void 0!==e.normalize?e.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\"):e}function v(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const A=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o=\"any\",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=m(u));const c=u?e.filter(e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=m(r)),\"start\"===o?0===r.indexOf(u):r.indexOf(u)>-1}):e;return\"number\"==typeof r?c.slice(0,r):c}}(),y=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},E=[],b=function(e){const{unstable_isActiveElementInListbox:t=y,unstable_classNamePrefix:n=\"Mui\",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:c=!1,componentName:d=\"useAutocomplete\",defaultValue:m=(e.multiple?E:null),disableClearable:b=!1,disableCloseOnSelect:_=!1,disabled:C,disabledItemsFocusable:w=!1,disableListWrap:S=!1,filterOptions:T=A,filterSelectedOptions:O=!1,freeSolo:D=!1,getOptionDisabled:R,getOptionKey:N,getOptionLabel:L=e=>{var t;return null!=(t=e.label)?t:e},groupBy:P,handleHomeEndKeys:M=!e.freeSolo,id:x,includeInputInList:I=!1,inputValue:k,isOptionEqualToValue:B=(e,t)=>e===t,multiple:F=!1,onChange:j,onClose:H,onHighlightChange:U,onInputChange:Y,onOpen:G,open:z,openOnFocus:V=!1,options:q,readOnly:W=!1,selectOnFocus:Q=!e.freeSolo,value:K}=e,$=(0,p.A)(x);let X=L;X=e=>{const t=L(e);return\"string\"!=typeof t?String(t):t};const J=l.useRef(!1),Z=l.useRef(!0),ee=l.useRef(null),te=l.useRef(null),[ne,re]=l.useState(null),[oe,ae]=l.useState(-1),ie=o?0:-1,le=l.useRef(ie),[se,ue]=(0,f.A)({controlled:K,default:m,name:d}),[ce,de]=(0,f.A)({controlled:k,default:\"\",name:d,state:\"inputValue\"}),[pe,fe]=l.useState(!1),ge=l.useCallback((e,t)=>{if(!(F?se.length<t.length:null!==t)&&!u)return;let n;if(F)n=\"\";else if(null==t)n=\"\";else{const e=X(t);n=\"string\"==typeof e?e:\"\"}ce!==n&&(de(n),Y&&Y(e,n,\"reset\"))},[X,ce,F,Y,de,u,se]),[he,me]=(0,f.A)({controlled:z,default:!1,name:d,state:\"open\"}),[ve,Ae]=l.useState(!0),ye=!F&&null!=se&&ce===X(se),Ee=he&&!W,be=Ee?T(q.filter(e=>!O||!(F?se:[se]).some(t=>null!==t&&B(e,t))),{inputValue:ye&&ve?\"\":ce,getOptionLabel:X}):[],_e=(e=>{const t=l.useRef({});return l.useEffect(()=>{t.current=e}),t.current})({filteredOptions:be,value:se,inputValue:ce});l.useEffect(()=>{const e=se!==_e.value;pe&&!e||D&&!e||ge(null,se)},[se,ge,pe,_e.value,D]);const Ce=he&&be.length>0&&!W,we=(0,g.A)(e=>{-1===e?ee.current.focus():ne.querySelector(`[data-tag-index=\"${e}\"]`).focus()});l.useEffect(()=>{F&&oe>se.length-1&&(ae(-1),we(-1))},[se,F,oe,we]);const Se=(0,g.A)(({event:e,index:t,reason:r=\"auto\"})=>{if(le.current=t,-1===t?ee.current.removeAttribute(\"aria-activedescendant\"):ee.current.setAttribute(\"aria-activedescendant\",`${$}-option-${t}`),U&&U(e,-1===t?null:be[t],r),!te.current)return;const o=te.current.querySelector(`[role=\"option\"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=te.current;if(\"listbox\"!==te.current.getAttribute(\"role\")&&(a=te.current.parentElement.querySelector('[role=\"listbox\"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=te.current.querySelector(`[data-option-index=\"${t}\"]`);if(i&&(i.classList.add(`${n}-focused`),\"keyboard\"===r&&i.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&\"mouse\"!==r&&\"touch\"!==r)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(P?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(P?1.3:0))}}),Te=(0,g.A)(({event:e,diff:t,direction:n=\"next\",reason:o=\"auto\"})=>{if(!Ee)return;const a=function(e,t){if(!te.current||e<0||e>=be.length)return-1;let n=e;for(;;){const r=te.current.querySelector(`[data-option-index=\"${n}\"]`),o=!w&&(!r||r.disabled||\"true\"===r.getAttribute(\"aria-disabled\"));if(r&&r.hasAttribute(\"tabindex\")&&!o)return n;if(n=\"next\"===t?(n+1)%be.length:(n-1+be.length)%be.length,n===e)return-1}}((()=>{const e=be.length-1;if(\"reset\"===t)return ie;if(\"start\"===t)return 0;if(\"end\"===t)return e;const n=le.current+t;return n<0?-1===n&&I?-1:S&&-1!==le.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:S||Math.abs(t)>1?e:0:n})(),n);if(Se({index:a,reason:o,event:e}),r&&\"reset\"!==t)if(-1===a)ee.current.value=ce;else{const e=X(be[a]);ee.current.value=e,0===e.toLowerCase().indexOf(ce.toLowerCase())&&ce.length>0&&ee.current.setSelectionRange(ce.length,e.length)}}),Oe=l.useCallback(()=>{if(!Ee)return;const e=(()=>{if(-1!==le.current&&_e.filteredOptions&&_e.filteredOptions.length!==be.length&&_e.inputValue===ce&&(F?se.length===_e.value.length&&_e.value.every((e,t)=>X(se[t])===X(e)):(e=_e.value,t=se,(e?X(e):\"\")===(t?X(t):\"\")))){const e=_e.filteredOptions[le.current];if(e)return v(be,t=>X(t)===X(e))}var e,t;return-1})();if(-1!==e)return void(le.current=e);const t=F?se[0]:se;if(0!==be.length&&null!=t){if(te.current){if(null!=t){const e=be[le.current];if(F&&e&&-1!==v(se,t=>B(e,t)))return;const n=v(be,e=>B(e,t));return void(-1===n?Te({diff:\"reset\"}):Se({index:n}))}le.current>=be.length-1?Se({index:be.length-1}):Se({index:le.current})}}else Te({diff:\"reset\"})},[be.length,!F&&se,O,Te,Se,Ee,ce,F]),De=(0,g.A)(e=>{(0,h.A)(te,e),e&&Oe()});l.useEffect(()=>{Oe()},[Oe]);const Re=e=>{he||(me(!0),Ae(!0),G&&G(e))},Ne=(e,t)=>{he&&(me(!1),H&&H(e,t))},Le=(e,t,n,r)=>{if(F){if(se.length===t.length&&se.every((e,n)=>e===t[n]))return}else if(se===t)return;j&&j(e,t,n,r),ue(t)},Pe=l.useRef(!1),Me=(e,t,n=\"selectOption\",r=\"options\")=>{let o=n,a=t;if(F){a=Array.isArray(se)?se.slice():[];const e=v(a,e=>B(t,e));-1===e?a.push(t):\"freeSolo\"!==r&&(a.splice(e,1),o=\"removeOption\")}ge(e,a),Le(e,a,o,{option:t}),_||e&&(e.ctrlKey||e.metaKey)||Ne(e,o),(!0===s||\"touch\"===s&&Pe.current||\"mouse\"===s&&!Pe.current)&&ee.current.blur()},xe=(e,t)=>{if(!F)return;\"\"===ce&&Ne(e,\"toggleInput\");let n=oe;-1===oe?\"\"===ce&&\"previous\"===t&&(n=se.length-1):(n+=\"next\"===t?1:-1,n<0&&(n=0),n===se.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if(\"next\"===t&&n===se.length||\"previous\"===t&&-1===n)return-1;const e=ne.querySelector(`[data-tag-index=\"${n}\"]`);if(e&&e.hasAttribute(\"tabindex\")&&!e.disabled&&\"true\"!==e.getAttribute(\"aria-disabled\"))return n;n+=\"next\"===t?1:-1}}(n,t),ae(n),we(n)},Ie=e=>{J.current=!0,de(\"\"),Y&&Y(e,\"\",\"clear\"),Le(e,F?[]:null,\"clear\")},ke=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==oe&&-1===[\"ArrowLeft\",\"ArrowRight\"].indexOf(t.key)&&(ae(-1),we(-1)),229!==t.which))switch(t.key){case\"Home\":Ee&&M&&(t.preventDefault(),Te({diff:\"start\",direction:\"next\",reason:\"keyboard\",event:t}));break;case\"End\":Ee&&M&&(t.preventDefault(),Te({diff:\"end\",direction:\"previous\",reason:\"keyboard\",event:t}));break;case\"PageUp\":t.preventDefault(),Te({diff:-5,direction:\"previous\",reason:\"keyboard\",event:t}),Re(t);break;case\"PageDown\":t.preventDefault(),Te({diff:5,direction:\"next\",reason:\"keyboard\",event:t}),Re(t);break;case\"ArrowDown\":t.preventDefault(),Te({diff:1,direction:\"next\",reason:\"keyboard\",event:t}),Re(t);break;case\"ArrowUp\":t.preventDefault(),Te({diff:-1,direction:\"previous\",reason:\"keyboard\",event:t}),Re(t);break;case\"ArrowLeft\":xe(t,\"previous\");break;case\"ArrowRight\":xe(t,\"next\");break;case\"Enter\":if(-1!==le.current&&Ee){const e=be[le.current],n=!!R&&R(e);if(t.preventDefault(),n)return;Me(t,e,\"selectOption\"),r&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else D&&\"\"!==ce&&!1===ye&&(F&&t.preventDefault(),Me(t,ce,\"createOption\",\"freeSolo\"));break;case\"Escape\":Ee?(t.preventDefault(),t.stopPropagation(),Ne(t,\"escape\")):c&&(\"\"!==ce||F&&se.length>0)&&(t.preventDefault(),t.stopPropagation(),Ie(t));break;case\"Backspace\":if(F&&!W&&\"\"===ce&&se.length>0){const e=-1===oe?se.length-1:oe,n=se.slice();n.splice(e,1),Le(t,n,\"removeOption\",{option:se[e]})}break;case\"Delete\":if(F&&!W&&\"\"===ce&&se.length>0&&-1!==oe){const e=oe,n=se.slice();n.splice(e,1),Le(t,n,\"removeOption\",{option:se[e]})}}},Be=e=>{fe(!0),V&&!J.current&&Re(e)},Fe=e=>{t(te)?ee.current.focus():(fe(!1),Z.current=!0,J.current=!1,a&&-1!==le.current&&Ee?Me(e,be[le.current],\"blur\"):a&&D&&\"\"!==ce?Me(e,ce,\"blur\",\"freeSolo\"):u&&ge(e,se),Ne(e,\"blur\"))},je=e=>{const t=e.target.value;ce!==t&&(de(t),Ae(!1),Y&&Y(e,t,\"input\")),\"\"===t?b||F||Le(e,null,\"clear\"):Re(e)},He=e=>{const t=Number(e.currentTarget.getAttribute(\"data-option-index\"));le.current!==t&&Se({event:e,index:t,reason:\"mouse\"})},Ue=e=>{Se({event:e,index:Number(e.currentTarget.getAttribute(\"data-option-index\")),reason:\"touch\"}),Pe.current=!0},Ye=e=>{const t=Number(e.currentTarget.getAttribute(\"data-option-index\"));Me(e,be[t],\"selectOption\"),Pe.current=!1},Ge=e=>t=>{const n=se.slice();n.splice(e,1),Le(t,n,\"removeOption\",{option:se[e]})},ze=e=>{he?Ne(e,\"toggleInput\"):Re(e)},Ve=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute(\"id\")!==$&&e.preventDefault()},qe=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),Q&&Z.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),Z.current=!1)},We=e=>{C||\"\"!==ce&&he||ze(e)};let Qe=D&&ce.length>0;Qe=Qe||(F?se.length>0:null!==se);let Ke=be;return P&&(new Map,Ke=be.reduce((e,t,n)=>{const r=P(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),C&&pe&&Fe(),{getRootProps:(e={})=>(0,i.A)({\"aria-owns\":Ce?`${$}-listbox`:null},e,{onKeyDown:ke(e),onMouseDown:Ve,onClick:qe}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ce,onBlur:Fe,onFocus:Be,onChange:je,onMouseDown:We,\"aria-activedescendant\":Ee?\"\":null,\"aria-autocomplete\":r?\"both\":\"list\",\"aria-controls\":Ce?`${$}-listbox`:void 0,\"aria-expanded\":Ce,autoComplete:\"off\",ref:ee,autoCapitalize:\"none\",spellCheck:\"false\",role:\"combobox\",disabled:C}),getClearProps:()=>({tabIndex:-1,type:\"button\",onClick:Ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:\"button\",onClick:ze}),getTagProps:({index:e})=>(0,i.A)({key:e,\"data-tag-index\":e,tabIndex:-1},!W&&{onDelete:Ge(e)}),getListboxProps:()=>({role:\"listbox\",id:`${$}-listbox`,\"aria-labelledby\":`${$}-label`,ref:De,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(F?se:[se]).some(e=>null!=e&&B(t,e)),o=!!R&&R(t);return{key:null!=(n=null==N?void 0:N(t))?n:X(t),tabIndex:-1,role:\"option\",id:`${$}-option-${e}`,onMouseMove:He,onClick:Ye,onTouchStart:Ue,\"data-option-index\":e,\"aria-disabled\":o,\"aria-selected\":r}},id:$,inputValue:ce,value:se,dirty:Qe,expanded:Ee&&ne,popupOpen:Ee,focused:pe||-1!==oe,anchorEl:ne,setAnchorEl:re,focusedTag:oe,groupedOptions:Ke}};var _=n(87558),C=n(11848),w=n(25669),S=n(28466),T=n(38413),O=n(31609);function D(e){return(0,O.Ay)(\"MuiListSubheader\",e)}(0,T.A)(\"MuiListSubheader\",[\"root\",\"colorPrimary\",\"colorInherit\",\"gutters\",\"inset\",\"sticky\"]);var R=n(74848);const N=[\"className\",\"color\",\"component\",\"disableGutters\",\"disableSticky\",\"inset\"],L=(0,C.Ay)(\"li\",{name:\"MuiListSubheader\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"default\"!==n.color&&t[`color${(0,S.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,i.A)({boxSizing:\"border-box\",lineHeight:\"48px\",listStyle:\"none\",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},\"primary\"===t.color&&{color:(e.vars||e).palette.primary.main},\"inherit\"===t.color&&{color:\"inherit\"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:\"sticky\",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),P=l.forwardRef(function(e,t){const n=(0,w.b)({props:e,name:\"MuiListSubheader\"}),{className:r,color:o=\"default\",component:l=\"li\",disableGutters:s=!1,disableSticky:d=!1,inset:p=!1}=n,f=(0,a.A)(n,N),g=(0,i.A)({},n,{color:o,component:l,disableGutters:s,disableSticky:d,inset:p}),h=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:[\"root\",\"default\"!==n&&`color${(0,S.A)(n)}`,!r&&\"gutters\",o&&\"inset\",!a&&\"sticky\"]};return(0,c.A)(i,D,t)})(g);return(0,R.jsx)(L,(0,i.A)({as:l,className:(0,u.A)(h.root,r),ref:t,ownerState:g},f))});P.muiSkipListHighlight=!0;const M=P;var x=n(60538),I=n(11641),k=n(82022),B=n(25571),F=n(51175),j=n(71023),H=n(6959),U=n(49350),Y=n(602);function G(e){return(0,O.Ay)(\"MuiAutocomplete\",e)}const z=(0,T.A)(\"MuiAutocomplete\",[\"root\",\"expanded\",\"fullWidth\",\"focused\",\"focusVisible\",\"tag\",\"tagSizeSmall\",\"tagSizeMedium\",\"hasPopupIcon\",\"hasClearIcon\",\"inputRoot\",\"input\",\"inputFocused\",\"endAdornment\",\"clearIndicator\",\"popupIndicator\",\"popupIndicatorOpen\",\"popper\",\"popperDisablePortal\",\"paper\",\"listbox\",\"loading\",\"noOptions\",\"option\",\"groupLabel\",\"groupUl\"]);var V,q,W=n(96852);const Q=[\"autoComplete\",\"autoHighlight\",\"autoSelect\",\"blurOnSelect\",\"ChipProps\",\"className\",\"clearIcon\",\"clearOnBlur\",\"clearOnEscape\",\"clearText\",\"closeText\",\"componentsProps\",\"defaultValue\",\"disableClearable\",\"disableCloseOnSelect\",\"disabled\",\"disabledItemsFocusable\",\"disableListWrap\",\"disablePortal\",\"filterOptions\",\"filterSelectedOptions\",\"forcePopupIcon\",\"freeSolo\",\"fullWidth\",\"getLimitTagsText\",\"getOptionDisabled\",\"getOptionKey\",\"getOptionLabel\",\"isOptionEqualToValue\",\"groupBy\",\"handleHomeEndKeys\",\"id\",\"includeInputInList\",\"inputValue\",\"limitTags\",\"ListboxComponent\",\"ListboxProps\",\"loading\",\"loadingText\",\"multiple\",\"noOptionsText\",\"onChange\",\"onClose\",\"onHighlightChange\",\"onInputChange\",\"onOpen\",\"open\",\"openOnFocus\",\"openText\",\"options\",\"PaperComponent\",\"PopperComponent\",\"popupIcon\",\"readOnly\",\"renderGroup\",\"renderInput\",\"renderOption\",\"renderTags\",\"selectOnFocus\",\"size\",\"slotProps\",\"value\"],K=[\"ref\"],$=[\"key\"],X=[\"key\"],J=(0,C.Ay)(\"div\",{name:\"MuiAutocomplete\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${z.tag}`]:t.tag},{[`& .${z.tag}`]:t[`tagSize${(0,S.A)(l)}`]},{[`& .${z.inputRoot}`]:t.inputRoot},{[`& .${z.input}`]:t.input},{[`& .${z.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${z.focused} .${z.clearIndicator}`]:{visibility:\"visible\"},\"@media (pointer: fine)\":{[`&:hover .${z.clearIndicator}`]:{visibility:\"visible\"}},[`& .${z.tag}`]:{margin:3,maxWidth:\"calc(100% - 6px)\"},[`& .${z.inputRoot}`]:{[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:30},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:56},[`& .${z.input}`]:{width:0,minWidth:30}},[`& .${B.A.root}`]:{paddingBottom:1,\"& .MuiInput-input\":{padding:\"4px 4px 4px 0px\"}},[`& .${B.A.root}.${F.A.sizeSmall}`]:{[`& .${B.A.input}`]:{padding:\"2px 4px 3px 0\"}},[`& .${j.A.root}`]:{padding:9,[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:39},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:65},[`& .${z.input}`]:{padding:\"7.5px 4px 7.5px 5px\"},[`& .${z.endAdornment}`]:{right:9}},[`& .${j.A.root}.${F.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${z.input}`]:{padding:\"2.5px 4px 2.5px 8px\"}},[`& .${H.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${z.hasPopupIcon}&, .${z.hasClearIcon}&`]:{paddingRight:39},[`.${z.hasPopupIcon}.${z.hasClearIcon}&`]:{paddingRight:65},[`& .${H.A.input}`]:{padding:\"7px 4px\"},[`& .${z.endAdornment}`]:{right:9}},[`& .${H.A.root}.${F.A.sizeSmall}`]:{paddingBottom:1,[`& .${H.A.input}`]:{padding:\"2.5px 4px\"}},[`& .${F.A.hiddenLabel}`]:{paddingTop:8},[`& .${H.A.root}.${F.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${z.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${H.A.root}.${F.A.hiddenLabel}.${F.A.sizeSmall}`]:{[`& .${z.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${z.input}`]:{flexGrow:1,textOverflow:\"ellipsis\",opacity:0},variants:[{props:{fullWidth:!0},style:{width:\"100%\"}},{props:{size:\"small\"},style:{[`& .${z.tag}`]:{margin:2,maxWidth:\"calc(100% - 4px)\"}}},{props:{inputFocused:!0},style:{[`& .${z.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${z.inputRoot}`]:{flexWrap:\"wrap\"}}}]}),Z=(0,C.Ay)(\"div\",{name:\"MuiAutocomplete\",slot:\"EndAdornment\",overridesResolver:(e,t)=>t.endAdornment})({position:\"absolute\",right:0,top:\"50%\",transform:\"translate(0, -50%)\"}),ee=(0,C.Ay)(I.A,{name:\"MuiAutocomplete\",slot:\"ClearIndicator\",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:\"hidden\"}),te=(0,C.Ay)(I.A,{name:\"MuiAutocomplete\",slot:\"PopupIndicator\",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:\"rotate(180deg)\"}}]}),ne=(0,C.Ay)(_.A,{name:\"MuiAutocomplete\",slot:\"Popper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:\"absolute\"}}]})),re=(0,C.Ay)(x.A,{name:\"MuiAutocomplete\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,i.A)({},e.typography.body1,{overflow:\"auto\"})),oe=(0,C.Ay)(\"div\",{name:\"MuiAutocomplete\",slot:\"Loading\",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:\"14px 16px\"})),ae=(0,C.Ay)(\"div\",{name:\"MuiAutocomplete\",slot:\"NoOptions\",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:\"14px 16px\"})),ie=(0,C.Ay)(\"div\",{name:\"MuiAutocomplete\",slot:\"Listbox\",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:\"none\",margin:0,padding:\"8px 0\",maxHeight:\"40vh\",overflow:\"auto\",position:\"relative\",[`& .${z.option}`]:{minHeight:48,display:\"flex\",overflow:\"hidden\",justifyContent:\"flex-start\",alignItems:\"center\",cursor:\"pointer\",paddingTop:6,boxSizing:\"border-box\",outline:\"0\",WebkitTapHighlightColor:\"transparent\",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up(\"sm\")]:{minHeight:\"auto\"},[`&.${z.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,\"@media (hover: none)\":{backgroundColor:\"transparent\"}},'&[aria-disabled=\"true\"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:\"none\"},[`&.${z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected=\"true\"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,d.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${z.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,d.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${z.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,d.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),le=(0,C.Ay)(M,{name:\"MuiAutocomplete\",slot:\"GroupLabel\",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),se=(0,C.Ay)(\"ul\",{name:\"MuiAutocomplete\",slot:\"GroupUl\",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${z.option}`]:{paddingLeft:24}}),ue=l.forwardRef(function(e,t){var n,r,o,s;const d=(0,w.b)({props:e,name:\"MuiAutocomplete\"}),{autoComplete:p=!1,autoHighlight:f=!1,autoSelect:g=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:A=V||(V=(0,R.jsx)(U.A,{fontSize:\"small\"})),clearOnBlur:y=!d.freeSolo,clearOnEscape:E=!1,clearText:C=\"Clear\",closeText:T=\"Close\",componentsProps:O={},defaultValue:D=(d.multiple?[]:null),disableClearable:N=!1,disableCloseOnSelect:L=!1,disabled:P=!1,disabledItemsFocusable:M=!1,disableListWrap:I=!1,disablePortal:B=!1,filterSelectedOptions:F=!1,forcePopupIcon:j=\"auto\",freeSolo:H=!1,fullWidth:z=!1,getLimitTagsText:ue=e=>`+${e}`,getOptionLabel:ce,groupBy:de,handleHomeEndKeys:pe=!d.freeSolo,includeInputInList:fe=!1,limitTags:ge=-1,ListboxComponent:he=\"ul\",ListboxProps:me,loading:ve=!1,loadingText:Ae=\"Loading…\",multiple:ye=!1,noOptionsText:Ee=\"No options\",openOnFocus:be=!1,openText:_e=\"Open\",PaperComponent:Ce=x.A,PopperComponent:we=_.A,popupIcon:Se=q||(q=(0,R.jsx)(Y.A,{})),readOnly:Te=!1,renderGroup:Oe,renderInput:De,renderOption:Re,renderTags:Ne,selectOnFocus:Le=!d.freeSolo,size:Pe=\"medium\",slotProps:Me={}}=d,xe=(0,a.A)(d,Q),{getRootProps:Ie,getInputProps:ke,getInputLabelProps:Be,getPopupIndicatorProps:Fe,getClearProps:je,getTagProps:He,getListboxProps:Ue,getOptionProps:Ye,value:Ge,dirty:ze,expanded:Ve,id:qe,popupOpen:We,focused:Qe,focusedTag:Ke,anchorEl:$e,setAnchorEl:Xe,inputValue:Je,groupedOptions:Ze}=b((0,i.A)({},d,{componentName:\"Autocomplete\"})),et=!N&&!P&&ze&&!Te,tt=(!H||!0===j)&&!1!==j,{onMouseDown:nt}=ke(),{ref:rt}=null!=me?me:{},ot=Ue(),{ref:at}=ot,it=(0,a.A)(ot,K),lt=(0,W.A)(at,rt),st=ce||(e=>{var t;return null!=(t=e.label)?t:e}),ut=(0,i.A)({},d,{disablePortal:B,expanded:Ve,focused:Qe,fullWidth:z,getOptionLabel:st,hasClearIcon:et,hasPopupIcon:tt,inputFocused:-1===Ke,popupOpen:We,size:Pe}),ct=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:u,size:d}=e,p={root:[\"root\",r&&\"expanded\",o&&\"focused\",a&&\"fullWidth\",i&&\"hasClearIcon\",l&&\"hasPopupIcon\"],inputRoot:[\"inputRoot\"],input:[\"input\",s&&\"inputFocused\"],tag:[\"tag\",`tagSize${(0,S.A)(d)}`],endAdornment:[\"endAdornment\"],clearIndicator:[\"clearIndicator\"],popupIndicator:[\"popupIndicator\",u&&\"popupIndicatorOpen\"],popper:[\"popper\",n&&\"popperDisablePortal\"],paper:[\"paper\"],listbox:[\"listbox\"],loading:[\"loading\"],noOptions:[\"noOptions\"],option:[\"option\"],groupLabel:[\"groupLabel\"],groupUl:[\"groupUl\"]};return(0,c.A)(p,G,t)})(ut);let dt;if(ye&&Ge.length>0){const e=e=>(0,i.A)({className:ct.tag,disabled:P},He(e));dt=Ne?Ne(Ge,e,ut):Ge.map((t,n)=>{const r=e({index:n}),{key:o}=r,l=(0,a.A)(r,$);return(0,R.jsx)(k.A,(0,i.A)({label:st(t),size:Pe},l,m),o)})}if(ge>-1&&Array.isArray(dt)){const e=dt.length-ge;!Qe&&e>0&&(dt=dt.splice(0,ge),dt.push((0,R.jsx)(\"span\",{className:ct.tag,children:ue(e)},dt.length)))}const pt=Oe||(e=>(0,R.jsxs)(\"li\",{children:[(0,R.jsx)(le,{className:ct.groupLabel,ownerState:ut,component:\"div\",children:e.group}),(0,R.jsx)(se,{className:ct.groupUl,ownerState:ut,children:e.children})]},e.key)),ft=Re||((e,t)=>{const{key:n}=e,r=(0,a.A)(e,X);return(0,R.jsx)(\"li\",(0,i.A)({},r,{children:st(t)}),n)}),gt=(e,t)=>{const n=Ye({option:e,index:t});return ft((0,i.A)({},n,{className:ct.option}),e,{selected:n[\"aria-selected\"],index:t,inputValue:Je},ut)},ht=null!=(n=Me.clearIndicator)?n:O.clearIndicator,mt=null!=(r=Me.paper)?r:O.paper,vt=null!=(o=Me.popper)?o:O.popper,At=null!=(s=Me.popupIndicator)?s:O.popupIndicator;return(0,R.jsxs)(l.Fragment,{children:[(0,R.jsx)(J,(0,i.A)({ref:t,className:(0,u.A)(ct.root,v),ownerState:ut},Ie(xe),{children:De({id:qe,disabled:P,fullWidth:!0,size:\"small\"===Pe?\"small\":void 0,InputLabelProps:Be(),InputProps:(0,i.A)({ref:Xe,className:ct.inputRoot,startAdornment:dt,onClick:e=>{e.target===e.currentTarget&&nt(e)}},(et||tt)&&{endAdornment:(0,R.jsxs)(Z,{className:ct.endAdornment,ownerState:ut,children:[et?(0,R.jsx)(ee,(0,i.A)({},je(),{\"aria-label\":C,title:C,ownerState:ut},ht,{className:(0,u.A)(ct.clearIndicator,null==ht?void 0:ht.className),children:A})):null,tt?(0,R.jsx)(te,(0,i.A)({},Fe(),{disabled:P,\"aria-label\":We?T:_e,title:We?T:_e,ownerState:ut},At,{className:(0,u.A)(ct.popupIndicator,null==At?void 0:At.className),children:Se})):null]})}),inputProps:(0,i.A)({className:ct.input,disabled:P,readOnly:Te},ke())})})),$e?(0,R.jsx)(ne,(0,i.A)({as:we,disablePortal:B,style:{width:$e?$e.clientWidth:null},ownerState:ut,role:\"presentation\",anchorEl:$e,open:We},vt,{className:(0,u.A)(ct.popper,null==vt?void 0:vt.className),children:(0,R.jsxs)(re,(0,i.A)({ownerState:ut,as:Ce},mt,{className:(0,u.A)(ct.paper,null==mt?void 0:mt.className),children:[ve&&0===Ze.length?(0,R.jsx)(oe,{className:ct.loading,ownerState:ut,children:Ae}):null,0!==Ze.length||H||ve?null:(0,R.jsx)(ae,{className:ct.noOptions,ownerState:ut,role:\"presentation\",onMouseDown:e=>{e.preventDefault()},children:Ee}),Ze.length>0?(0,R.jsx)(ie,(0,i.A)({as:he,className:ct.listbox,ownerState:ut},it,me,{ref:lt,children:Ze.map((e,t)=>de?pt({key:e.key,group:e.group,children:e.options.map((t,n)=>gt(t,e.index+n))}):gt(e,t))})):null]}))})):null]})});var ce=n(28161),de=(0,C.Ay)(ce.A)(function(e){var t=e.theme;return{\"& .MuiInputBase-root.MuiOutlinedInput-root\":{border:\"1px solid \".concat(t.palette.grey[100]),height:40,\"&.Mui-focused\":{border:\"1px solid \".concat(t.palette.grey[100])},\"&:hover\":{border:\"1px solid \".concat(t.palette.grey[100])},\"& input\":{font:\"normal normal 400 14px/20px  NotoSans-Regular\",color:t.palette.info.dark,padding:\"0px\",\"&:placeholder\":{color:\"#757575\",fontSize:\"14px\"}},\"& fieldset\":{border:0}}}});function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(null,arguments)}const fe=function(e){var t=e.options,n=e.onHandleChange,a=e.value,i=e.label,l=e.disabled;return s().createElement(de,null,s().createElement(ue,{popupIcon:s().createElement(r.A,null),options:t,value:a,onChange:function(e,t){return n(t)},disabled:l,disableClearable:!(null!=a&&a.value),renderInput:function(e){return s().createElement(o.A,pe({},e,{placeholder:i}))}}))}},33478:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"se\",{months:\"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu\".split(\"_\"),monthsShort:\"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov\".split(\"_\"),weekdays:\"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat\".split(\"_\"),weekdaysShort:\"sotn_vuos_maŋ_gask_duor_bear_láv\".split(\"_\"),weekdaysMin:\"s_v_m_g_d_b_L\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"MMMM D. [b.] YYYY\",LLL:\"MMMM D. [b.] YYYY [ti.] HH:mm\",LLLL:\"dddd, MMMM D. [b.] YYYY [ti.] HH:mm\"},calendar:{sameDay:\"[otne ti] LT\",nextDay:\"[ihttin ti] LT\",nextWeek:\"dddd [ti] LT\",lastDay:\"[ikte ti] LT\",lastWeek:\"[ovddit] dddd [ti] LT\",sameElse:\"L\"},relativeTime:{future:\"%s geažes\",past:\"maŋit %s\",s:\"moadde sekunddat\",ss:\"%d sekunddat\",m:\"okta minuhta\",mm:\"%d minuhtat\",h:\"okta diimmu\",hh:\"%d diimmut\",d:\"okta beaivi\",dd:\"%d beaivvit\",M:\"okta mánnu\",MM:\"%d mánut\",y:\"okta jahki\",yy:\"%d jagit\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},33517:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79039),a=n(94901),i=n(36955),l=n(97751),s=n(33706),u=function(){},c=l(\"Reflect\",\"construct\"),d=/^\\s*(?:class|function)\\b/,p=r(d.exec),f=!d.test(u),g=function(e){if(!a(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},h=function(e){if(!a(e))return!1;switch(i(e)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1}try{return f||!!p(d,s(e))}catch(e){return!0}};h.sham=!0,e.exports=!c||o(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0})||e})?h:g},33571:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c,k:()=>s});var r=n(13967),o=n(14620),a=n(86481),i=n(89452),l=n(94188);function s(){function e(e,t,n,o){const l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};const{cssProperty:u=e,themeKey:c,transform:d,style:p}=s;if(null==t)return null;if(\"typography\"===c&&\"inherit\"===t)return{[e]:t};const f=(0,a.Yn)(n,c)||{};return p?p(l):(0,i.NI)(l,t,t=>{let n=(0,a.BO)(f,d,t);return t===n&&\"string\"==typeof t&&(n=(0,a.BO)(f,d,`${e}${\"default\"===t?\"\":(0,r.A)(t)}`,t)),!1===u?n:{[u]:n}})}return function t(n){var r;const{sx:a,theme:s={},nested:u}=n||{};if(!a)return null;const c=null!=(r=s.unstable_sxConfig)?r:l.A;function d(n){let r=n;if(\"function\"==typeof n)r=n(s);else if(\"object\"!=typeof n)return n;if(!r)return null;const a=(0,i.EU)(s.breakpoints),l=Object.keys(a);let d=a;return Object.keys(r).forEach(n=>{const a=\"function\"==typeof(l=r[n])?l(s):l;var l;if(null!=a)if(\"object\"==typeof a)if(c[n])d=(0,o.A)(d,e(n,a,s,c));else{const e=(0,i.NI)({theme:s},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?d=(0,o.A)(d,e):d[n]=t({sx:a,theme:s,nested:!0})}else d=(0,o.A)(d,e(n,a,s,c))}),!u&&s.modularCssLayers?{\"@layer sx\":(0,i.vf)(l,d)}:(0,i.vf)(l,d)}return Array.isArray(a)?a.map(d):d(a)}}const u=s();u.filterProps=[\"sx\"];const c=u},33683:(e,t,n)=>{\"use strict\";e.exports=n.p+\"02b2c37678257fb78fce.svg\"},33684:(e,t,n)=>{\"use strict\";var r=n(94644).exportTypedArrayMethod,o=n(79039),a=n(44576),i=n(79504),l=a.Uint8Array,s=l&&l.prototype||{},u=[].toString,c=i([].join);o(function(){u.call({})})&&(u=function(){return c(this)});var d=s.toString!==u;r(\"toString\",u,d)},33706:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(94901),a=n(77629),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},33717:(e,t)=>{\"use strict\";t.f=Object.getOwnPropertySymbols},33722:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n.n(r);const a=function(e){var t=e.data,n=e.updateEndDate;return e.column,o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onKeyDown:function(){},onClick:function(){return n(t)}},\"Clear end date\")}},33771:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(84373),a=n(6469);r({target:\"Array\",proto:!0},{fill:o}),a(\"fill\")},33800:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext(void 0)},33904:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79039),a=n(79504),i=n(655),l=n(43802).trim,s=n(47452),u=a(\"\".charAt),c=r.parseFloat,d=r.Symbol,p=d&&d.iterator,f=1/c(s+\"-0\")!=-1/0||p&&!o(function(){c(Object(p))});e.exports=f?function(e){var t=l(i(e)),n=c(t);return 0===n&&\"-\"===u(t,0)?-0:n}:c},33971:(e,t,n)=>{var r=n(73934);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},33994:(e,t,n)=>{\"use strict\";var r=n(57657).IteratorPrototype,o=n(2360),a=n(6980),i=n(10687),l=n(26269),s=function(){return this};e.exports=function(e,t,n,u){var c=t+\" Iterator\";return e.prototype=o(r,{next:a(+!u,n)}),i(e,c,!1,!0),l[c]=s,e}},34115:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>J}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(31415),n(21699),n(47764),n(23500),n(62953);var r=n(60538),o=n(51545),a=n(80663),i=n(56203),l=n(81970),s=n.n(l),u=n(37998),c=n(96348),d=n(56254),p=n(43605),f=n(92416),g=n(15664),h=n(21239),m=n(67683);function v(){return s().createElement(\"div\",{style:{backgroundColor:\"#f9e1e1\",borderRadius:\"8px\",padding:\"8px 12px\",marginBottom:\"12px\",fontSize:\"12px\",color:\"#d32f2f\",lineHeight:\"1.5\"}},s().createElement(\"span\",{style:{fontWeight:\"500\"}},\"* Please Map MDOHQ to correct talukas from Masters Module \"),s().createElement(\"a\",{href:\"\".concat(globalThis.location.origin,\"/\").concat(c.fp.SmartAgro,\"/\").concat(c.fp.Masters,\"/\").concat(c.fp.HeadQuartersData),style:{color:\"#d32f2f\",textDecoration:\"underline\",fontWeight:\"500\"},target:\"_blank\",rel:\"noopener noreferrer\"},\"(\",\"\".concat(globalThis.location.origin,\"/\").concat(c.fp.SmartAgro,\"/\").concat(c.fp.Masters,\"/\").concat(c.fp.HeadQuartersData),\")\"),s().createElement(\"span\",{style:{fontWeight:\"500\"}},\" to use Multi-Retailer HQ Mapping\"))}n(62480);var A=n(10901);var y=n(90815),E=n(14073),b=n(28161),_=n(64121),C=n(86608),w=n(1514),S=n(13075),T=n(8085);function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var R=(0,l.memo)(function(e){var t,n,r,o,a=e.isVisible,u=void 0!==a&&a,c=e.onRequestClose,d=void 0===c?function(){}:c,p=e.onAssignRetailersHandler,f=e.isCountryAdmin,h=void 0!==f&&f,m=e.headersInfo,v=e.selectedGeoData,A=m.User,D=m.baseurl,R=m.triggerShowLoader,N=O((0,l.useState)(),2),L=N[0],P=N[1],M=O((0,l.useState)(),2),x=M[0],I=M[1],k=O((0,l.useState)([]),2),B=k[0],F=k[1],j=O((0,l.useState)([]),2),H=j[0],U=j[1],Y=!x,G=function(e){var t,n={parent_hq_id:e,portfolio_code:null==v?void 0:v.portfolio,geoDataId:null==v||null===(t=v.locationDetails)||void 0===t?void 0:t.id};(function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=T.p.GET_MDO_HQ_LIST,i.payLoad=r,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,S.AT)(\"post\",i,!0)})(A,D,R,n).then(function(e){var t=null==e?void 0:e.map(function(e){return{label:e.name,value:e.id}});U(t)}).catch(function(){})};return(0,l.useEffect)(function(){var e,t;t={portfolio_code:null==v?void 0:v.portfolio,geoDataId:null==v||null===(e=v.locationDetails)||void 0===e?void 0:e.id},(0,w.IT)((0,S.rZ)(A,D),R,t).then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{label:e.name,value:e.id}});F(t),1!==(null==t?void 0:t.length)||h||(P(t[0]),G(t[0].value))}}).catch(function(){})},[]),s().createElement(C.A,{isVisible:u},s().createElement(y.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,className:\"modal-header\",m:1},s().createElement(E.A,{variant:\"h2\",fontSize:18},(0,i.t)(\"BULK_ASSIGN_RETAILER\")),s().createElement(b.A,null,s().createElement(E.A,{className:\"icon-close closeIcon\",onClick:d}))),s().createElement(b.A,{pl:3,pr:3},s().createElement(E.A,{variant:\"body1\"},s().createElement(\"b\",null,null!==(t=null==v||null===(n=v.selectedRetailers)||void 0===n?void 0:n.length)&&void 0!==t?t:0,\" \",(0,i.t)(1===(null==v||null===(r=v.selectedRetailers)||void 0===r?void 0:r.length)?\"RETAILER_SELECTED\":\"RETAILERS_SELECTED\"),\": \"),(0,i.t)(\"ASSIGN_RETAILERS_DESCRIPTION\",{taluka:null!==(o=null==v?void 0:v.taluka)&&void 0!==o?o:\"\"}))),s().createElement(b.A,{width:\"48%\",marginBottom:\"-13px\",p:3},s().createElement(E.A,{mb:1,variant:\"subtitle2\"},(0,i.t)(\"SELECT_ACTIVE_TMHQ\")),s().createElement(_.A,{name:\"tmhq\",onChange:function(e,t){I(null),G(null==t?void 0:t.value),P(t)},options:B,labelKey:\"label\",label:\"label\",selectedOption:L,value:L,defaultLabel:(0,i.t)(\"SELECT_ACTIVE_TMHQ\"),isDisabled:!h&&1===(null==B?void 0:B.length)})),s().createElement(b.A,{mb:2,width:\"48%\",p:3},s().createElement(E.A,{mb:1,variant:\"subtitle2\"},(0,i.t)(\"ASSIGN_TO_MDO_HQ\")),s().createElement(_.A,{name:\"mdohq\",onChange:function(e,t){I(t)},options:H,labelKey:\"label\",label:\"label\",selectedOption:x,value:x,defaultLabel:(0,i.t)(\"SELECT_MDOHQ\")})),s().createElement(y.A,{direction:\"row\",gap:2,justifyContent:\"flex-end\",className:\"btnsBlock\",p:2},s().createElement(g.A,{variant:\"outlined\",buttonName:(0,i.t)(\"CANCEL\"),fullwidth:!1,onButtonClick:d,color:\"primary\",type:\"button\"}),s().createElement(g.A,{variant:\"contained\",buttonName:(0,i.t)(\"ASSIGN_RETAILER\"),onButtonClick:function(){var e;return p(null==x?void 0:x.value,null==v||null===(e=v.selectedRetailers)||void 0===e?void 0:e.map(function(e){return null==e?void 0:e.retailerUUID}))},fullwidth:!1,color:\"secondary\",disabled:Y})))});R.displayName=\"MultiRetailerHqMappingModal\";var N=n(94985),L=n(47225),P=n(89994),M=n(99478),x=(n(26910),n(88084)),I=n(34195),k=n(36874),B=n(48506);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return j(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var H=[];const U=function(e){var t=e.isFilterOpen,n=void 0!==t&&t,r=e.onRequestClose,i=void 0===r?function(){}:r,u=e.initialForm,c=e.setInitialForm,d=void 0===c?function(){}:c,p=e.onSubmit,f=e.onClearFilters,h=(0,l.useContext)(L.v),m=h.BackOfficeProps,v=m.globalStore.User,A=m.baseurl,y=h.triggerToastMsg,b=h.triggerShowLoader,C=(0,I.Bd)().t,S=F((0,l.useState)(H),2),T=S[0],O=S[1],D=F((0,l.useState)(H),2),R=D[0],N=D[1],P=F((0,l.useState)(H),2),M=P[0],j=P[1],U=F((0,l.useState)([]),2),Y=U[0],G=U[1],z=[{label:C(\"ORPHAN_RETAILERS\"),value:\"ORPHAN\"},{label:C(\"NON_ORPHAN_RETAILERS\"),value:\"NON_ORPHAN\"}],V=(0,l.useCallback)(function(){return{mdoHq:[],state:\"\",district:\"\",taluka:[],assignmentType:\"\"}},[]),q=(0,l.useCallback)(function(e){var t,n,r=null==e||null===(t=e.state)||void 0===t?void 0:t.value,o=null==e||null===(n=e.district)||void 0===n?void 0:n.value,a=Array.isArray(e.taluka)&&e.taluka.length>0;return!(!r||o)||!(!o||a)},[]),W=function(){var e=V();d(e),i(),null==f||f()},Q=function(e){return(null==e?void 0:e.map(function(e){return{id:e.parent_id,label:e.name,value:e.id}}))||[]},K=function(e){return(0,w.pO)(v,A,b,e,\"geoChildData\").then(function(e){return e||[]}).catch(function(e){return y({message:e,type:\"error\"}),[]})},$=function(e){return K(e).then(function(e){null!=e&&e.length&&N(Q(e))})},X=function(e){return K(e).then(function(e){null!=e&&e.length&&j(Q(e))})};(0,l.useEffect)(function(){(0,w.aY)(v,A,b).then(function(e){var t;null!=e&&e.headquarter_hierarchy_id&&(t={targetForId:e.headquarter_hierarchy_id},(0,w.pO)(v,A,b,t,\"tmHq\").then(function(e){e&&G(function(e){return e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id}}).sort(function(e,t){return e.label.localeCompare(t.label)})}(e))}).catch(function(e){return y({message:e,type:\"error\"})}))}).catch(function(){}),(0,w.pO)(v,A,b,\"\",\"geoHierarchyList\").then(function(e){var t=null==e?void 0:e.geo_hierarchy_view_List;if(null!=t&&t.length){var n,r=t.find(function(e){return 2===e.level_sequence});null!=r&&r.id&&(n=r.id,(0,w.pO)(v,A,b,n,\"parentLevelGeoData\").then(function(e){var t=null==e?void 0:e.geo_data_parent_details_list;if(null!=t&&t.length)return K(t[0].parent_id).then(function(e){return O(Q(e))})}).catch(function(e){return y({message:e,type:\"error\"})}))}}).catch(function(e){return y({message:e,type:\"error\"})})},[]),(0,l.useEffect)(function(){var e,t;if(n){var r=u||V();null!==(e=r.state)&&void 0!==e&&e.value&&$(r.state.value),null!==(t=r.district)&&void 0!==t&&t.value&&X(r.district.value)}},[n,u]);var J=(0,l.useMemo)(function(){return Y||[]},[Y]),Z=(0,l.useMemo)(function(){return M||[]},[M]),ee=function(e){return s().createElement(o.A,{width:\"30%\"},e)},te=function(e,t,n,r,o,a){return s().createElement(x.D0,{name:e},function(i){var l=i.form.setFieldValue;return s().createElement(_.A,{name:e,onChange:function(e,t){return a(t,l)},options:n,labelKey:\"label\",label:t,selectedOption:r,value:r,defaultLabel:o})})},ne=function(e,t,n){return s().createElement(x.D0,{name:e},function(r){var o,a=r.form.setFieldValue;return s().createElement(B.A,{name:e,options:n,selectedOption:null!==(o=t[e])&&void 0!==o?o:[],onHandleChange:function(t){a(e,t||[])},disabled:!n.length})})};return s().createElement(o.A,null,s().createElement(k.A,{isDrawerOpen:n,anchor:\"top\",upper:!0},s().createElement(o.A,{p:3,className:\"mdo-floating-filter-wrapper\"},s().createElement(x.l1,{initialValues:u||V(),enableReinitialize:!0,onSubmit:function(e){null==p||p(e),d(e),i()}},function(e){var t=e.values,n=e.isSubmitting,r=q(t)||n;return s().createElement(x.lV,{className:\"popupContent bgp-floating-filter-mdo\"},s().createElement(a.A,{direction:\"row\",gap:4,mb:2},ee(s().createElement(s().Fragment,null,s().createElement(E.A,{variant:\"subtitle2\"},C(\"MDO_HQ\")),ne(\"mdoHq\",t,J))),ee(s().createElement(s().Fragment,null,s().createElement(E.A,{variant:\"subtitle2\"},C(\"STATE\")),te(\"state\",\"state\",T,t.state,C(\"SELECT_STATE\"),function(e,t){t(\"state\",e||\"\"),t(\"district\",\"\"),t(\"taluka\",[]),null!=e&&e.value&&$(e.value)}))),ee(s().createElement(s().Fragment,null,s().createElement(E.A,{variant:\"subtitle2\"},C(\"DISTRICT\")),te(\"district\",\"district\",R,t.district,C(\"SELECT_DISTRICT\"),function(e,t){t(\"district\",e||\"\"),t(\"taluka\",[]),null!=e&&e.value&&X(e.value)})))),s().createElement(a.A,{direction:\"row\",gap:4,mb:2},ee(s().createElement(s().Fragment,null,s().createElement(E.A,{variant:\"subtitle2\"},C(\"TALUKA\")),ne(\"taluka\",t,Z))),ee(s().createElement(s().Fragment,null,s().createElement(E.A,{variant:\"subtitle2\"},C(\"ASSIGNMENT_TYPE\")),te(\"assignmentType\",\"assignmentType\",z,t.assignmentType,C(\"SELECT_ASSIGNMENT_TYPE\"),function(e,t){return t(\"assignmentType\",e||\"\")})))),s().createElement(a.A,{direction:\"row\",justifyContent:\"right\",gap:2,mb:2},s().createElement(o.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},s().createElement(g.A,{variant:\"outlined\",buttonName:C(\"CLEAR_FILTERS\"),onButtonClick:W,fullwidth:!1,color:\"primary\"}),s().createElement(g.A,{variant:\"contained\",buttonName:C(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:r}))),s().createElement(o.A,{onClick:function(){return i(!1)},className:\"smart-agro-lite-filter-cross\"},s().createElement(E.A,{className:\"icon-close closeIcon\"})))}))))};var Y=n(47767);function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||K(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function K(e,t){if(e){if(\"string\"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var X=function(){var e,t,n=(0,l.useContext)(L.v),y=n.BackOfficeProps,E=y.globalStore.User,b=y.baseurl,_=n.triggerShowLoader,C=n.triggerToastMsg,w=(0,Y.Zp)(),O=Q((0,l.useState)({mdoHq:[],state:\"\",district:\"\",taluka:[],assignmentType:\"\"}),2),D=O[0],x=O[1],I=[{field:\"retailerRequestType\",operator:\"EQUALS\",value:\"RETAILER_MAPPING\"},{field:\"retailerBuList.buId\",operator:\"EQUALS\",value:null==E?void 0:E.selectedBusinessUnit.bu_id}],k=Q((0,l.useState)({pageNo:0,pageSize:10}),2),B=k[0],F=k[1],j=Q((0,l.useState)(0),2),H=j[0],G=j[1],z=Q((0,l.useState)(0),2),q=z[0],K=z[1],$=Q((0,l.useState)(!1),2),X=$[0],J=$[1],Z=Q((0,l.useState)(null),2),ee=Z[0],te=Z[1],ne=Q((0,l.useState)(!1),2),re=ne[0],oe=ne[1],ae=Q((0,l.useState)([]),2),ie=ae[0],le=ae[1],se=Q((0,l.useState)([]),2),ue=se[0],ce=se[1],de=Q((0,l.useState)(\"\"),2),pe=de[0],fe=de[1],ge=Q((0,l.useState)(I),2),he=ge[0],me=ge[1],ve=Q((0,l.useState)({}),2),Ae=ve[0],ye=ve[1],Ee=Q((0,l.useState)([]),2),be=Ee[0],_e=Ee[1],Ce=(0,M.EB)(E)?W(u.SA):null===u.SA||void 0===u.SA?void 0:u.SA.filter(function(e){return\"portfolio\"!==(null==e?void 0:e.field)}),we=(0,l.useCallback)(function(e){var t,n=[],r=Array.isArray(e.mdoHq)?e.mdoHq.map(function(e){return e.value}):[];r.length&&n.push({field:\"hqDataId\",operator:\"IN\",values:r});var o=Array.isArray(e.taluka)?e.taluka.map(function(e){return e.value}):[];if(o.length&&n.push({field:\"geoData\",operator:\"IN\",values:o}),null!==(t=e.assignmentType)&&void 0!==t&&t.value){var a=\"ORPHAN\"===e.assignmentType.value;n.push({field:\"retailerBuList.isRetailerMapped\",operator:\"EQUALS\",value:a?\"false\":\"true\"})}return n},[]),Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue,t=[].concat(W(he),W(null!=pe&&pe.length?[{field:\"search\",operator:\"LIKE\",value:pe}]:[])),n={sort:M.r4,filter:t,pageNo:B.pageNo,pageSize:B.pageSize};(0,N.ao)(E,b,_,n).then(function(t){var n,r;null!=t&&t.data&&((0,P.ao)(t),le(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.map(function(t){return V(V({},t),{},{color:null!=t&&t.retailerMapped?\"\":\"#EEF0F3\",checked:null==e?void 0:e.includes(null==t?void 0:t.id)})}))&&void 0!==n?n:[]),K(null==t?void 0:t.totalElements),G(null==t?void 0:t.totalPageCount))}).catch(function(){})},Te=(0,l.useCallback)(function(e){x(e),ye(e);var t=we(e);me([].concat(I,W(t))),oe(!1),F(function(e){return V(V({},e),{},{pageNo:0})})},[we,I]),Oe=(0,l.useCallback)(function(){x({mdoHq:[],state:\"\",district:\"\",taluka:[],assignmentType:\"\"}),ye({}),me(I),F(function(e){return V(V({},e),{},{pageNo:0})})},[I]),De=function(e,t,n){ce(function(n){return t?[].concat(W(n),[e]):null==n?void 0:n.filter(function(t){return t!==e})}),_e(function(r){var o=null!=n?n:null==ie?void 0:ie.find(function(t){return(null==t?void 0:t.id)===e});return t?[].concat(W(r),[o]):null==r?void 0:r.filter(function(t){return(null==t?void 0:t.id)!==e})}),le(function(n){return n.map(function(n){return n.id===e?V(V({},n),{},{checked:t}):n})})};return(0,l.useEffect)(function(){Se()},[pe,B,he]),s().createElement(m.X,null,s().createElement(o.A,null,s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,null,s().createElement(f.A,{routePathName:[{name:c.F_.Retailers,path:c.fp.Retailers},{name:c.F_.Retailers_Mapping,path:c.fp.RetailersMapping}]}))),s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,{mt:2},s().createElement(h.A,{onSearchValueChange:function(e){fe(e),F(function(e){return V(V({},e),{},{pageNo:0})})},placeholderText:(0,i.t)(\"SEARCH\"),searchValue:pe,searchBasedOn:\"\".concat((0,i.t)(\"RETAILER_MAPPING_SEARCH\"))})),s().createElement(a.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},s().createElement(g.A,{variant:\"contained\",buttonName:(0,i.t)(\"MULTI_RETAILER_HQ_MAPPING\"),fullwidth:!1,color:\"primary\",disabled:0===(null==be?void 0:be.length),onButtonClick:function(){var e=null!=be?be:[],t=new Set(e.map(function(e){return null==e?void 0:e.portfolio}));if(new Set(e.map(function(e){var t;return null==e||null===(t=e.locationDetails)||void 0===t?void 0:t.id})).size>1||(0,M.EB)(E)&&t.size>1)C({message:(0,i.t)((0,M.EB)(E)?\"SELECTED_RETAILERS_DIFFERENT_TALUKAS_AND_PORTFOLIOS\":\"SELECTED_RETAILERS_DIFFERENT_TALUKAS\"),type:\"error\"});else{J(!0);var n=e[0];te(V(V({},n),{},{selectedRetailers:e}))}}}),s().createElement(g.A,{className:(0,S.F7)(Ae),buttonName:null!==(e=(0,i.t)(\"FILTERS\"))&&void 0!==e?e:\"Filters\",color:\"transparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return oe(!0)}}))),s().createElement(v,null),s().createElement(r.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(p.A,{rows:ie,columnDefs:Ce,frameworkComponents:{DetailsActionComponent:function(e){return function(e,t){var n=e.label;return s().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:t},n)}(V(V({},e),{},{label:\"Details\"}),function(){var t,n;return w(\"../\".concat(c.fp.Retailer_List,\"/\").concat(null==e||null===(t=e.data)||void 0===t?void 0:t.id,\"/\").concat(null==e||null===(n=e.data)||void 0===n?void 0:n.retailerUUID,\"/\").concat(c.fp.Retailer_Details,\"/user details\"),{state:{retailerItem:null==e?void 0:e.data}})})},TMHQCheckBoxComponent:function(e){return function(e){var t=e.value,n=void 0===t?\"\":t,r=e.data,o=e.onCheckboxChange,a=void 0===o?function(){}:o;return s().createElement(A.A,{style:{marginTop:\"-5px\"},labelMarginLeft:\"0px\",isChecked:(null==r?void 0:r.checked)||!1,value:n,label:null==r?void 0:r.parentHqName,fontStyle:\"font-styles\",onCheckboxChange:function(){return a(null==r?void 0:r.id,!(null!=r&&r.checked),r)}})}(V(V({},e),{},{onCheckboxChange:De}))}}})),s().createElement(d.A,{pageNo:B.pageNo,totalPageCount:H,totalElements:q,onPageChange:function(e){F(function(t){return V(V({},t),{},{pageNo:Number(e)})})}}),X&&s().createElement(R,{isVisible:X,onRequestClose:function(){return J(!1)},onAssignRetailersHandler:function(e,t){(function(e,t,n,r){var o,a,i=r.hqId,l=r.retailerIds,s={};return s.domain=t,s.endPoint=\"\".concat(T.p.ASSIGN_HQ_TO_RETAILER,\"?hq_id=\").concat(i),s.payLoad={retailerIds:l},s.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,S.AT)(\"put\",s,!0)})(E,b,_,{hqId:e,retailerIds:t}).then(function(e){C({message:e,type:\"success\"}),J(!1),ce([]),_e([]),te(null),le([]),Se([])}).catch(function(e){C({message:null==e?void 0:e.message,type:\"error\"})})},talukaName:null!==(t=null==ee?void 0:ee.taluka)&&void 0!==t?t:\"\",isCountryAdmin:(0,M.EB)(E),headersInfo:{User:E,baseurl:b,triggerShowLoader:_},selectedGeoData:ee})),re&&s().createElement(U,{isFilterOpen:re,onRequestClose:function(){oe(!1)},initialForm:D,setInitialForm:x,onSubmit:Te,onClearFilters:Oe}))};const J=(0,l.memo)(X)},34124:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(20034),a=n(22195),i=n(15652),l=Object.isExtensible,s=r(function(){l(1)});e.exports=s||i?function(e){return!!o(e)&&(!i||\"ArrayBuffer\"!==a(e))&&(!l||l(e))}:l},34164:(e,t,n)=>{\"use strict\";function r(e){var t,n,o=\"\";if(\"string\"==typeof e||\"number\"==typeof e)o+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=\" \"),o+=n)}else for(n in e)e[n]&&(o&&(o+=\" \"),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o=\"\",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=\" \"),o+=t);return o}},34195:(e,t,n)=>{\"use strict\";n.d(t,{r9:()=>E,Bd:()=>N});var r=n(81970);function o(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];\"string\"==typeof n[0]&&(n[0]=\"react-i18next:: \".concat(n[0])),(e=console).warn.apply(e,n)}}n(34915),Object.create(null);var a={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];\"string\"==typeof t[0]&&a[t[0]]||(\"string\"==typeof t[0]&&(a[t[0]]=new Date),o.apply(void 0,t))}var l=function(e,t){return function(){e.isInitialized?t():e.on(\"initialized\",function n(){setTimeout(function(){e.off(\"initialized\",n)},0),t()})}};function s(e,t,n){e.loadNamespaces(t,l(e,n))}function u(e,t,n,r){\"string\"==typeof n&&(n=[n]),n.forEach(function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,l(e,r))}var c=n(64467),d=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,p={\"&amp;\":\"&\",\"&#38;\":\"&\",\"&lt;\":\"<\",\"&#60;\":\"<\",\"&gt;\":\">\",\"&#62;\":\">\",\"&apos;\":\"'\",\"&#39;\":\"'\",\"&quot;\":'\"',\"&#34;\":'\"',\"&nbsp;\":\" \",\"&#160;\":\" \",\"&copy;\":\"©\",\"&#169;\":\"©\",\"&reg;\":\"®\",\"&#174;\":\"®\",\"&hellip;\":\"…\",\"&#8230;\":\"…\",\"&#x2F;\":\"/\",\"&#47;\":\"/\"},f=function(e){return p[e]};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,c.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m,v={bindI18n:\"languageChanged\",bindI18nStore:\"\",transEmptyNodeValue:\"\",transSupportBasicHtmlNodes:!0,transWrapTextNodes:\"\",transKeepBasicHtmlNodesFor:[\"br\",\"strong\",\"i\",\"p\"],useSuspense:!0,unescape:function(e){return e.replace(d,f)}},A=n(23029),y=n(92901),E={type:\"3rdParty\",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v=h(h({},v),e)}(e.options.react),function(e){m=e}(e)}},b=(0,r.createContext)(),_=function(){function e(){(0,A.A)(this,e),this.usedNamespaces={}}return(0,y.A)(e,[{key:\"addUsedNamespaces\",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:\"getUsedNamespaces\",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),C=n(96369),w=n(27800),S=n(76562);var T=n(82284);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,c.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=function(e,t){var n=(0,r.useRef)();return(0,r.useEffect)(function(){n.current=t?n.current:e},[e,t]),n.current};function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=(0,r.useContext)(b)||{},a=o.i18n,l=o.defaultNS,c=n||a||m;if(c&&!c.reportNamespaces&&(c.reportNamespaces=new _),!c){i(\"You will need to pass in an i18next instance by using initReactI18next\");var d=function(e,t){return\"string\"==typeof t?t:t&&\"object\"===(0,T.A)(t)&&\"string\"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},p=[d,{},!1];return p.t=d,p.i18n={},p.ready=!1,p}c.options.react&&void 0!==c.options.react.wait&&i(\"It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.\");var f=D(D(D({},v),c.options.react),t),g=f.useSuspense,h=f.keyPrefix,A=e||l||c.options&&c.options.defaultNS;A=\"string\"==typeof A?[A]:A||[\"translation\"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(A);var y=(c.isInitialized||c.initializedStoreOnce)&&A.every(function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf(\"languageChanging\")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if(\"cimode\"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state[\"\".concat(e,\"|\").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf(\"languageChanging\")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}(e,t,n):(i(\"i18n.languages were undefined or empty\",t.languages),!0)}(e,c,f)});function E(){return c.getFixedT(t.lng||null,\"fallback\"===f.nsMode?A:A[0],h)}var O,N,L=(O=(0,r.useState)(E),N=2,(0,C.A)(O)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(O,N)||(0,w.A)(O,N)||(0,S.A)()),P=L[0],M=L[1],x=A.join();t.lng&&(x=\"\".concat(t.lng).concat(x));var I=R(x),k=(0,r.useRef)(!0);(0,r.useEffect)(function(){var e=f.bindI18n,n=f.bindI18nStore;function r(){k.current&&M(E)}return k.current=!0,y||g||(t.lng?u(c,t.lng,A,function(){k.current&&M(E)}):s(c,A,function(){k.current&&M(E)})),y&&I&&I!==x&&k.current&&M(E),e&&c&&c.on(e,r),n&&c&&c.store.on(n,r),function(){k.current=!1,e&&c&&e.split(\" \").forEach(function(e){return c.off(e,r)}),n&&c&&n.split(\" \").forEach(function(e){return c.store.off(e,r)})}},[c,x]);var B=(0,r.useRef)(!0);(0,r.useEffect)(function(){k.current&&!B.current&&M(E),B.current=!1},[c,h]);var F=[P,c,y];if(F.t=P,F.i18n=c,F.ready=y,y)return F;if(!y&&!g)return F;throw new Promise(function(e){t.lng?u(c,t.lng,A,function(){return e()}):s(c,A,function(){return e()})})}},34274:(e,t,n)=>{\"use strict\";n.d(t,{D:()=>d,_:()=>c}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(47764),n(25440),n(11392),n(42762),n(12041),n(23500),n(62953);var r=n(56203),o=n(15941),a=n(43828);function i(e){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=i(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==i(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.Yj();return(n=\"Mobile\"===e?n.required(\"Mobile number is required\"):n.test(\"\".concat(e,\" is optional\"),\"\",function(e){return!e||/^\\d+$/.test(null!=e?e:\"\")})).test(\"\".concat(e,\" number starts with a valid digit\"),\"\".concat(e,\" number should start with digits 5-9\"),function(e){return!e||/^[5-9]/.test(null!=e?e:\"\")}).test(\"\".concat(e,\" number has no special characters\"),\"\".concat(e,\" number should not contain special characters or alphabets\"),function(e){return!e||/^\\d+$/.test(null!=e?e:\"\")}).test(\"is-10-digits-long\",\"\".concat(e,\" number should have \").concat((null==t?void 0:t.maxLength)||10,\" digits\"),function(e){return!e||e.replaceAll(/\\D/g,\"\").length===((null==t?void 0:t.maxLength)||10)}).trim(\"Starting spaces are not allowed\")},d=function(){var e,t,n,i,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.Ik().shape(s(s({head_quater_name:o.Yj().required(\"Headquarter is required\"),owner_name:o.Yj().required(\"Owner Name is required\").matches(/^[a-zA-Z\\s]+$/,\"Only alphabets are allowed for the Owner Name\"),shop_name:o.Yj().required(\"Shop Name is required\").min(null==l||null===(e=l[a.o0.SHOP_NAME])||void 0===e?void 0:e.minLength,\"Shop Name cannot be less than \".concat(null==l||null===(t=l[a.o0.SHOP_NAME])||void 0===t?void 0:t.minLength,\" characters\")).max(null==l||null===(n=l[a.o0.SHOP_NAME])||void 0===n?void 0:n.maxLength,\"Shop Name cannot be more than \".concat(null==l||null===(i=l[a.o0.SHOP_NAME])||void 0===i?void 0:i.maxLength,\" characters\")).matches(/^[a-zA-Z\\d./&,' ]+$/,\"Only alphabets, numbers, and . / & ,' are allowed for the Shop Name\"),mobile:c(\"Mobile\",null==l?void 0:l[a.o0.MOBILE]),contact_name:o.Yj().matches(/^[a-zA-Z\\s]+$/,\"Only alphabets are allowed for the BU Contact Person Name\"),retailer_bu_mobile:c(\"BU Contact Person\",null==l?void 0:l[a.o0.RETAILER_BU_MOBILE]),canonical_address:o.Yj().nullable().required(\"Shop Location is required\"),pincode:o.Yj().nullable().required(\"\".concat((0,r.t)(\"ZIP_REQUIRED\"))).test(\"\".concat((0,r.t)(\"NO_SP_CHARACTERS\")),\"\".concat((0,r.t)(\"ZIP_CODE_VALIDATION\")),function(e){return/^\\d+$/.test(null!=e?e:\"\")}).test({name:\"len\",message:\"\".concat((0,r.t)(\"ZIP_CODE_MIN_MAX_VALUE\")),test:function(e){return!!e&&/^\\d{1,6}$/.test(e)}}).test({name:\"start\",message:\"\".concat((0,r.t)(\"ZIP_CODE_START\")),test:function(e){return!!e&&!e.startsWith(\"0\")}}),Village:o.Yj().matches(/^[^,]*$/,\"Commas are not allowed in the Village Name\")},u&&{retailer_distributors:o.YO().min(1,\"At least one Preferred Distributor is required.\")}),{},{retailer_category_code:o.Ik().nullable().required(\"Retailer Category is required\"),total_wholesale_percentage:o.ai().typeError(\"Only numbers are allowed for Total Wholesale Percentage\").min(0,\"Total Wholesale Percentage cannot be negative\").max(100,\"Total Wholesale Percentage cannot be more than 100\").nullable(),total_retailer_percentage:o.ai().typeError(\"Only numbers are allowed for Total Retailer Percentage\").min(0,\"Total Retailer Percentage cannot be negative\").max(100,\"Total Retailer Percentage cannot be more than 100\").nullable()}))}},34358:(e,t,n)=>{\"use strict\";n.d(t,{Ti:()=>f,Un:()=>g,ge:()=>d,i3:()=>h,uB:()=>p}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(74423),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(21699),n(47764),n(25440),n(42762),n(23500),n(62953),n(3296),n(27208),n(48408);var r=n(71083),o=n(13075),a=n(96790),i=n(95692);function l(e){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=l(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==l(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){return 200===e||201===e},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.dF.GET;return new Promise(function(n,r){var o;null===(o=(t===a.dF.DELETE?i.N.delete:t===a.dF.PUT?i.N.put:t===a.dF.POST?i.N.post:i.N.get)(e))||void 0===o||o.then(function(e){e?n(e):r(new Error(\"Request failed\"))}).catch(function(e){return r(e)})})},f=function(e){var t=e.baseUrl,n=e.options;return new Promise(function(e,a){r.A.get(t,u(u({},n),{},{responseType:\"arraybuffer\"})).then(function(t){if((0,o.mN)(t)){var n=window.URL.createObjectURL(new Blob([t.data],{type:t.headers[\"content-type\"]})),r=document.createElement(\"a\");r.href=n;var a=\"\".concat(t.headers[\"content-disposition\"]).replace(\"attachment; filename=\",\"\").trim();r.setAttribute(\"download\",a),document.body.appendChild(r),r.click()}return e(t)}).catch(function(e){return a(e)})})},g=function(e){var t=e.baseUrl,n=e.options;return new Promise(function(e,a){r.A.post(t,n.data,u(u({},n),{},{responseType:\"arraybuffer\",headers:u(u({},n.headers),{},{\"Content-Type\":\"application/json\"})})).then(function(t){var n=t.headers[\"content-type\"];if(n&&n.includes(\"application/json\")){var r=JSON.parse((new TextDecoder).decode(t.data));if(console.log(\"jsonResponse>>\",r),!(0,o.mN)(r)){var a=new Error(r.errorMessage||\"API call unsuccessful. Status: \".concat(r.statusCode));throw a.statusCode=r.statusCode,a.errorCode=r.errorCode,a}}if(!(0,o.mN)(t)){var i=new Error(\"API call unsuccessful. Status: \".concat(t.status));throw i.statusCode=t.status,i}console.log(\"if called\");var l=window.URL.createObjectURL(new Blob([t.data],{type:t.headers[\"content-type\"]})),s=document.createElement(\"a\");s.href=l;var u=\"\".concat(t.headers[\"content-disposition\"]).replace(\"attachment; filename=\",\"\").trim();s.setAttribute(\"download\",u),document.body.appendChild(s),s.click(),e(t)}).catch(function(e){return a(e)})})},h=function(e,t){return r.A.put(e,t,{headers:{\"Content-Type\":null==t?void 0:t.type}})}},34376:(e,t,n)=>{\"use strict\";var r=n(22195);e.exports=Array.isArray||function(e){return\"Array\"===r(e)}},34527:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(34376),a=TypeError,i=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],\"length\",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(o(e)&&!i(e,\"length\").writable)throw new a(\"Cannot set read only .length\");return e.length=t}:function(e,t){return e.length=t}},34579:(e,t,n)=>{var r=n(77736);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},34598:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},34661:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(81970);let o=0;const a=r[\"useId\".toString()];function i(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),a=e||t;return r.useEffect(()=>{null==t&&(o+=1,n(`mui-${o}`))},[t]),a}(e)}},34782:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(34376),a=n(33517),i=n(20034),l=n(35610),s=n(26198),u=n(25397),c=n(97040),d=n(78227),p=n(70597),f=n(67680),g=p(\"slice\"),h=d(\"species\"),m=Array,v=Math.max;r({target:\"Array\",proto:!0,forced:!g},{slice:function(e,t){var n,r,d,p=u(this),g=s(p),A=l(e,g),y=l(void 0===t?g:t,g);if(o(p)&&(n=p.constructor,(a(n)&&(n===m||o(n.prototype))||i(n)&&null===(n=n[h]))&&(n=void 0),n===m||void 0===n))return f(p,A,y);for(r=new(void 0===n?m:n)(v(y-A,0)),d=0;A<y;A++,d++)A in p&&c(r,d,p[A]);return r.length=d,r}})},34840:(e,t,n)=>{var r=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34915:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},34999:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.InnerSlider=void 0;var r=p(n(81970)),o=p(n(68841)),a=p(n(20181)),i=p(n(46942)),l=n(29445),s=n(25942),u=n(773),c=n(89223),d=p(n(43591));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return f=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},f(e)}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function y(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&A(e,t)}(C,e);var t,n,p,h,_=(p=C,h=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=E(p);if(h){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===f(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return y(e)}(this,e)});function C(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,C),b(y(t=_.call(this,e)),\"listRefHandler\",function(e){return t.list=e}),b(y(t),\"trackRefHandler\",function(e){return t.track=e}),b(y(t),\"adaptHeight\",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index=\"'.concat(t.state.currentSlide,'\"]'));t.list.style.height=(0,l.getHeight)(e)+\"px\"}}),b(y(t),\"componentDidMount\",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,l.getOnDemandLazySlides)(m(m({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=m({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay(\"update\")}),\"progressive\"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(\".slick-slide\"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener(\"resize\",t.onWindowResized):window.attachEvent(\"onresize\",t.onWindowResized)}),b(y(t),\"componentWillUnmount\",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener(\"resize\",t.onWindowResized):window.detachEvent(\"onresize\",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),b(y(t),\"componentDidUpdate\",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,l.getOnDemandLazySlides)(m(m({},t.props),t.state));n.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}}),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var o=m(m({listRef:t.list,trackRef:t.track},t.props),t.state),a=t.didPropsChange(e);a&&t.updateState(o,a,function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:\"index\",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay(\"update\"):t.pause(\"paused\")})}),b(y(t),\"onWindowResized\",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,a.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),b(y(t),\"resizeWindow\",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=m(m({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,function(){t.props.autoplay?t.autoPlay(\"update\"):t.pause(\"paused\")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),b(y(t),\"updateState\",function(e,n,o){var a=(0,l.initializedState)(e);e=m(m(m({},e),a),{},{slideIndex:a.currentSlide});var i=(0,l.getTrackLeft)(e);e=m(m({},e),{},{left:i});var s=(0,l.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(a.trackStyle=s),t.setState(a,o)}),b(y(t),\"ssrInit\",function(){if(t.props.variableWidth){var e=0,n=0,o=[],a=(0,l.getPreClones)(m(m(m({},t.props),t.state),{},{slideCount:t.props.children.length})),i=(0,l.getPostClones)(m(m(m({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var s=0;s<a;s++)n+=o[o.length-1-s],e+=o[o.length-1-s];for(var u=0;u<i;u++)e+=o[u];for(var c=0;c<t.state.currentSlide;c++)n+=o[c];var d={width:e+\"px\",left:-n+\"px\"};if(t.props.centerMode){var p=\"\".concat(o[t.state.currentSlide],\"px\");d.left=\"calc(\".concat(d.left,\" + (100% - \").concat(p,\") / 2 ) \")}return{trackStyle:d}}var f=r.default.Children.count(t.props.children),g=m(m(m({},t.props),t.state),{},{slideCount:f}),h=(0,l.getPreClones)(g)+(0,l.getPostClones)(g)+f,v=100/t.props.slidesToShow*h,A=100/h,y=-A*((0,l.getPreClones)(g)+t.state.currentSlide)*v/100;return t.props.centerMode&&(y+=(100-A*v/100)/2),{slideWidth:A+\"%\",trackStyle:{width:v+\"%\",left:y+\"%\"}}}),b(y(t),\"checkImagesLoad\",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(\".slick-slide img\")||[],n=e.length,r=0;Array.prototype.forEach.call(e,function(e){var o=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var a=e.onclick;e.onclick=function(){a(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),b(y(t),\"progressiveLazyLoad\",function(){for(var e=[],n=m(m({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,l.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-(0,l.getPreClones)(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),b(y(t),\"slideHandler\",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,o=r.asNavFor,a=r.beforeChange,i=r.onLazyLoad,s=r.speed,u=r.afterChange,c=t.state.currentSlide,d=(0,l.slideHandler)(m(m(m({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),p=d.state,f=d.nextState;if(p){a&&a(c,p.currentSlide);var g=p.lazyLoadedList.filter(function(e){return t.state.lazyLoadedList.indexOf(e)<0});i&&g.length>0&&i(g),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),u&&u(c),delete t.animationEndCallback),t.setState(p,function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),f&&(t.animationEndCallback=setTimeout(function(){var e=f.animating,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(f,[\"animating\"]);t.setState(n,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),u&&u(p.currentSlide),delete t.animationEndCallback})},s))})}}),b(y(t),\"changeSlide\",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=m(m({},t.props),t.state),o=(0,l.changeSlide)(r,e);if((0===o||o)&&(!0===n?t.slideHandler(o,n):t.slideHandler(o),t.props.autoplay&&t.autoPlay(\"update\"),t.props.focusOnSelect)){var a=t.list.querySelectorAll(\".slick-current\");a[0]&&a[0].focus()}}),b(y(t),\"clickHandler\",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),b(y(t),\"keyHandler\",function(e){var n=(0,l.keyHandler)(e,t.props.accessibility,t.props.rtl);\"\"!==n&&t.changeSlide({message:n})}),b(y(t),\"selectHandler\",function(e){t.changeSlide(e)}),b(y(t),\"disableBodyScroll\",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),b(y(t),\"enableBodyScroll\",function(){window.ontouchmove=null}),b(y(t),\"swipeStart\",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,l.swipeStart)(e,t.props.swipe,t.props.draggable);\"\"!==n&&t.setState(n)}),b(y(t),\"swipeMove\",function(e){var n=(0,l.swipeMove)(e,m(m(m({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))}),b(y(t),\"swipeEnd\",function(e){var n=(0,l.swipeEnd)(e,m(m(m({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}}),b(y(t),\"touchEnd\",function(e){t.swipeEnd(e),t.clickable=!0}),b(y(t),\"slickPrev\",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:\"previous\"})},0))}),b(y(t),\"slickNext\",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:\"next\"})},0))}),b(y(t),\"slickGoTo\",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return\"\";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:\"index\",index:e,currentSlide:t.state.currentSlide},n)},0))}),b(y(t),\"play\",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,l.canGoNext)(m(m({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),b(y(t),\"autoPlay\",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if(\"update\"===e){if(\"hovered\"===n||\"focused\"===n||\"paused\"===n)return}else if(\"leave\"===e){if(\"paused\"===n||\"focused\"===n)return}else if(\"blur\"===e&&(\"paused\"===n||\"hovered\"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:\"playing\"})}),b(y(t),\"pause\",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;\"paused\"===e?t.setState({autoplaying:\"paused\"}):\"focused\"===e?\"hovered\"!==n&&\"playing\"!==n||t.setState({autoplaying:\"focused\"}):\"playing\"===n&&t.setState({autoplaying:\"hovered\"})}),b(y(t),\"onDotsOver\",function(){return t.props.autoplay&&t.pause(\"hovered\")}),b(y(t),\"onDotsLeave\",function(){return t.props.autoplay&&\"hovered\"===t.state.autoplaying&&t.autoPlay(\"leave\")}),b(y(t),\"onTrackOver\",function(){return t.props.autoplay&&t.pause(\"hovered\")}),b(y(t),\"onTrackLeave\",function(){return t.props.autoplay&&\"hovered\"===t.state.autoplaying&&t.autoPlay(\"leave\")}),b(y(t),\"onSlideFocus\",function(){return t.props.autoplay&&t.pause(\"focused\")}),b(y(t),\"onSlideBlur\",function(){return t.props.autoplay&&\"focused\"===t.state.autoplaying&&t.autoPlay(\"blur\")}),b(y(t),\"render\",function(){var e,n,o,a=(0,i.default)(\"slick-slider\",t.props.className,{\"slick-vertical\":t.props.vertical,\"slick-initialized\":!0}),d=m(m({},t.props),t.state),p=(0,l.extractObject)(d,[\"fade\",\"cssEase\",\"speed\",\"infinite\",\"centerMode\",\"focusOnSelect\",\"currentSlide\",\"lazyLoad\",\"lazyLoadedList\",\"rtl\",\"slideWidth\",\"slideHeight\",\"listHeight\",\"vertical\",\"slidesToShow\",\"slidesToScroll\",\"slideCount\",\"trackStyle\",\"variableWidth\",\"unslick\",\"centerPadding\",\"targetSlide\",\"useCSS\"]),f=t.props.pauseOnHover;if(p=m(m({},p),{},{onMouseEnter:f?t.onTrackOver:null,onMouseLeave:f?t.onTrackLeave:null,onMouseOver:f?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var h=(0,l.extractObject)(d,[\"dotsClass\",\"slideCount\",\"slidesToShow\",\"currentSlide\",\"slidesToScroll\",\"clickHandler\",\"children\",\"customPaging\",\"infinite\",\"appendDots\"]),v=t.props.pauseOnDotsHover;h=m(m({},h),{},{clickHandler:t.changeSlide,onMouseEnter:v?t.onDotsLeave:null,onMouseOver:v?t.onDotsOver:null,onMouseLeave:v?t.onDotsLeave:null}),e=r.default.createElement(u.Dots,h)}var A=(0,l.extractObject)(d,[\"infinite\",\"centerMode\",\"currentSlide\",\"slideCount\",\"slidesToShow\",\"prevArrow\",\"nextArrow\"]);A.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(c.PrevArrow,A),o=r.default.createElement(c.NextArrow,A));var y=null;t.props.vertical&&(y={height:t.state.listHeight});var E=null;!1===t.props.vertical?!0===t.props.centerMode&&(E={padding:\"0px \"+t.props.centerPadding}):!0===t.props.centerMode&&(E={padding:t.props.centerPadding+\" 0px\"});var b=m(m({},y),E),_=t.props.touchMove,C={className:\"slick-list\",style:b,onClick:t.clickHandler,onMouseDown:_?t.swipeStart:null,onMouseMove:t.state.dragging&&_?t.swipeMove:null,onMouseUp:_?t.swipeEnd:null,onMouseLeave:t.state.dragging&&_?t.swipeEnd:null,onTouchStart:_?t.swipeStart:null,onTouchMove:t.state.dragging&&_?t.swipeMove:null,onTouchEnd:_?t.touchEnd:null,onTouchCancel:t.state.dragging&&_?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},w={className:a,dir:\"ltr\",style:t.props.style};return t.props.unslick&&(C={className:\"slick-list\"},w={className:a}),r.default.createElement(\"div\",w,t.props.unslick?\"\":n,r.default.createElement(\"div\",g({ref:t.listRefHandler},C),r.default.createElement(s.Track,g({ref:t.trackRefHandler},p),t.props.children)),t.props.unslick?\"\":o,t.props.unslick?\"\":e)}),t.list=null,t.track=null,t.state=m(m({},o.default),{},{currentSlide:t.props.initialSlide,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=m(m({},t.state),n),t}return t=C,(n=[{key:\"didPropsChange\",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var a=o[n];if(!e.hasOwnProperty(a)){t=!0;break}if(\"object\"!==f(e[a])&&\"function\"!=typeof e[a]&&e[a]!==this.props[a]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&v(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),C}(r.default.Component);t.InnerSlider=_},35031:(e,t,n)=>{\"use strict\";var r=n(97751),o=n(79504),a=n(38480),i=n(33717),l=n(28551),s=o([].concat);e.exports=r(\"Reflect\",\"ownKeys\")||function(e){var t=a.f(l(e)),n=i.f;return n?s(t,n(e)):t}},35165:(e,t,n)=>{\"use strict\";n.d(t,{JF:()=>A,Qs:()=>h,Rd:()=>d,Zn:()=>p,_O:()=>m,ao:()=>c,od:()=>E,op:()=>y,pA:()=>f,sw:()=>v,vA:()=>g}),n(52675),n(28706),n(25276),n(27495),n(25440);var r=n(8085),o=n(99478),a=n(13075),i=[\"retailerUUID\"],l=[\"retailerUUID\"],s=[\"retailerUUID\"];function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=function(e,t,n){var o,i={};return i.domain=t,i.endPoint=r.p.RETAILERS_FORM_FIELDS_DATA.replace(\"__FORM_ID__\",\"4\"),i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,a.AT)(\"get\",i,!0)},d=function(e,t,n,o){var i,l={};return l.domain=t,l.endPoint=r.p.RETAILER_DEATILS.replace(\"__FORM_ID__\",\"\".concat(o)),l.customHeaders={\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,a.AT)(\"get\",l,!0)},p=function(e,t,n,o){var i,l={};return l.domain=t,l.endPoint=\"\".concat(r.p.RETAILER_PERFORMANCE,\"?retailerUUIDList=\").concat(o,\"&buCode=\").concat(null==e?void 0:e.selectedBusinessUnit.bu_code),l.customHeaders={\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,buCode:\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_code),\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),retailerUUIDList:null!=o?o:[]},l.triggerLoader=n,(0,a.AT)(\"get\",l,!0)},f=function(e,t,n,o){var i,l,s={};return s.domain=t,s.endPoint=r.p.DISABLE_RETAILERS_FIELDS,s.payLoad=o,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId},s.triggerLoader=n,(0,a.AT)(\"get\",s,!0)},g=function(e,t,n){var o,i={};return i.domain=t,i.endPoint=r.p.GET_RETAILER_CATEGORY,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,a.AT)(\"get\",i,!0)},h=function(e,t,n,i){var l,s,u,c,d={};return d.domain=t,d.payLoad=i,(0,o.EB)(e)||(0,o.UH)(e)?delete i[\"retailer-bu-id\"]:i[\"portfolio-code\"]=null!=e&&null!==(s=e.selectedBusinessUnit)&&void 0!==s&&s.portfolio_enable&&null!=e&&null!==(u=e.selectedBusinessUnit)&&void 0!==u&&u.portfolio_code?null==e||null===(c=e.selectedBusinessUnit)||void 0===c?void 0:c.portfolio_code:\"DEFAULT\",d.endPoint=r.p.GET_DISTRIBUTORS_NAMES,d.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d.triggerLoader=n,(0,a.AT)(\"get\",d,!0)},m=function(e,t,n,o){var i,l={};return l.domain=t,l.endPoint=\"\".concat(r.p.ACTIVATE_AND_DEACTIVATE_RETAILER,\"?make_retailer_active=\").concat(o.isRetailerActive).replace(\"retailer_uuid\",o.retailerId),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},l.triggerLoader=n,(0,a.AT)(\"put\",l,!1)},v=function(e,t,n,o){var i,l={};return l.domain=t,l.endPoint=r.p.SAVE_RETAILERS_DETAILS,l.payLoad=o,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,a.AT)(\"post\",l,!1)},A=function(e,t,n,o){var l,s,c=o.retailerUUID,d=u(o,i),p={};return p.domain=t,p.endPoint=r.p.APPROVE_RETAILERS_DETAILS.replace(\"retailer_uuid\",c),p.payLoad=d,p.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id},p.triggerLoader=n,(0,a.AT)(\"put\",p,!1)},y=function(e,t,n,o){var i,s=o.retailerUUID,c=u(o,l),d={};return d.domain=t,d.endPoint=r.p.GET_DOCUMENTS_URL.replace(\"retailer_uuid\",s),d.payLoad=c,d.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},d.triggerLoader=n,(0,a.AT)(\"get\",d,!1)},E=function(e,t,n,o){var i,l=o.retailerUUID,c=u(o,s),d={};return d.domain=t,d.endPoint=r.p.GET_ATTACHMENT_URL.replace(\"retailer_uuid\",l),d.payLoad=c,d.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},d.triggerLoader=n,(0,a.AT)(\"get\",d,!1)}},35184:(e,t,n)=>{\"use strict\";n.d(t,{L:()=>i});var r=n(51545),o=n(8676),a=n(17630),i=(0,o.A)(r.A)(function(){return{\"& .MuiAccordionSummary-root\":{flexDirection:\"inherit !important\"},\"& .MuiAccordionSummary-expandIconWrapper svg\":{width:\"47px !important\"},\".MuiAccordionSummary-expandIconWrapper.Mui-expanded\":{transform:\"rotate(180deg) !important\"},\".MuiAccordionSummary-content  .progress-bar-label\":{left:\"11px\",width:\"50px\",\"&  .label-text \":{fontSize:\"10px\"}},\".green-themed-table\":{\"& .ag-root-wrapper\":{borderColor:\"transparent !important\"},\"& .ag-root-wrapper .ag-header\":{backgroundColor:\"#65833A !important\",borderColor:\"#65833A !important\",\"& .ag-header-cell-text \":{color:\"#ffffff !important\"}}},\"& .MuiPaper-rounded\":{border:\"1px solid \".concat(a.w.palette.primary.main,\" !important\")}}})},35186:(e,t,n)=>{\"use strict\";n.d(t,{c:()=>o,q:()=>r});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:\"number\"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:\"object\"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}},35233:(e,t,n)=>{var r=n(51063);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},35345:e=>{\"use strict\";e.exports=URIError},35358:(e,t,n)=>{var r={\"./af\":25177,\"./af.js\":25177,\"./ar\":61509,\"./ar-dz\":41488,\"./ar-dz.js\":41488,\"./ar-kw\":58676,\"./ar-kw.js\":58676,\"./ar-ly\":42353,\"./ar-ly.js\":42353,\"./ar-ma\":24496,\"./ar-ma.js\":24496,\"./ar-ps\":6947,\"./ar-ps.js\":6947,\"./ar-sa\":82682,\"./ar-sa.js\":82682,\"./ar-tn\":89756,\"./ar-tn.js\":89756,\"./ar.js\":61509,\"./az\":95533,\"./az.js\":95533,\"./be\":28959,\"./be.js\":28959,\"./bg\":47777,\"./bg.js\":47777,\"./bm\":54903,\"./bm.js\":54903,\"./bn\":61290,\"./bn-bd\":17357,\"./bn-bd.js\":17357,\"./bn.js\":61290,\"./bo\":31545,\"./bo.js\":31545,\"./br\":11470,\"./br.js\":11470,\"./bs\":44429,\"./bs.js\":44429,\"./ca\":7306,\"./ca.js\":7306,\"./cs\":56464,\"./cs.js\":56464,\"./cv\":73635,\"./cv.js\":73635,\"./cy\":64226,\"./cy.js\":64226,\"./da\":93601,\"./da.js\":93601,\"./de\":77853,\"./de-at\":26111,\"./de-at.js\":26111,\"./de-ch\":54697,\"./de-ch.js\":54697,\"./de.js\":77853,\"./dv\":60708,\"./dv.js\":60708,\"./el\":54691,\"./el.js\":54691,\"./en-au\":53872,\"./en-au.js\":53872,\"./en-ca\":28298,\"./en-ca.js\":28298,\"./en-gb\":56195,\"./en-gb.js\":56195,\"./en-ie\":66584,\"./en-ie.js\":66584,\"./en-il\":65543,\"./en-il.js\":65543,\"./en-in\":9033,\"./en-in.js\":9033,\"./en-nz\":79402,\"./en-nz.js\":79402,\"./en-sg\":43004,\"./en-sg.js\":43004,\"./eo\":32934,\"./eo.js\":32934,\"./es\":97650,\"./es-do\":20838,\"./es-do.js\":20838,\"./es-mx\":17730,\"./es-mx.js\":17730,\"./es-us\":56575,\"./es-us.js\":56575,\"./es.js\":97650,\"./et\":3035,\"./et.js\":3035,\"./eu\":3508,\"./eu.js\":3508,\"./fa\":119,\"./fa.js\":119,\"./fi\":90527,\"./fi.js\":90527,\"./fil\":95995,\"./fil.js\":95995,\"./fo\":52477,\"./fo.js\":52477,\"./fr\":85498,\"./fr-ca\":26435,\"./fr-ca.js\":26435,\"./fr-ch\":37892,\"./fr-ch.js\":37892,\"./fr.js\":85498,\"./fy\":37071,\"./fy.js\":37071,\"./ga\":41734,\"./ga.js\":41734,\"./gd\":70217,\"./gd.js\":70217,\"./gl\":77329,\"./gl.js\":77329,\"./gom-deva\":32124,\"./gom-deva.js\":32124,\"./gom-latn\":93383,\"./gom-latn.js\":93383,\"./gu\":95050,\"./gu.js\":95050,\"./he\":11713,\"./he.js\":11713,\"./hi\":43861,\"./hi.js\":43861,\"./hr\":26308,\"./hr.js\":26308,\"./hu\":90609,\"./hu.js\":90609,\"./hy-am\":17160,\"./hy-am.js\":17160,\"./id\":74063,\"./id.js\":74063,\"./is\":89374,\"./is.js\":89374,\"./it\":88383,\"./it-ch\":21827,\"./it-ch.js\":21827,\"./it.js\":88383,\"./ja\":23827,\"./ja.js\":23827,\"./jv\":89722,\"./jv.js\":89722,\"./ka\":41794,\"./ka.js\":41794,\"./kk\":27088,\"./kk.js\":27088,\"./km\":96870,\"./km.js\":96870,\"./kn\":84451,\"./kn.js\":84451,\"./ko\":63164,\"./ko.js\":63164,\"./ku\":98174,\"./ku-kmr\":6181,\"./ku-kmr.js\":6181,\"./ku.js\":98174,\"./ky\":78474,\"./ky.js\":78474,\"./lb\":79680,\"./lb.js\":79680,\"./lo\":15867,\"./lo.js\":15867,\"./lt\":45766,\"./lt.js\":45766,\"./lv\":69532,\"./lv.js\":69532,\"./me\":58076,\"./me.js\":58076,\"./mi\":41848,\"./mi.js\":41848,\"./mk\":30306,\"./mk.js\":30306,\"./ml\":73739,\"./ml.js\":73739,\"./mn\":99053,\"./mn.js\":99053,\"./mr\":86169,\"./mr.js\":86169,\"./ms\":73386,\"./ms-my\":92297,\"./ms-my.js\":92297,\"./ms.js\":73386,\"./mt\":77075,\"./mt.js\":77075,\"./my\":72264,\"./my.js\":72264,\"./nb\":22274,\"./nb.js\":22274,\"./ne\":8235,\"./ne.js\":8235,\"./nl\":92572,\"./nl-be\":43784,\"./nl-be.js\":43784,\"./nl.js\":92572,\"./nn\":54566,\"./nn.js\":54566,\"./oc-lnc\":69330,\"./oc-lnc.js\":69330,\"./pa-in\":29849,\"./pa-in.js\":29849,\"./pl\":94418,\"./pl.js\":94418,\"./pt\":79834,\"./pt-br\":48303,\"./pt-br.js\":48303,\"./pt.js\":79834,\"./ro\":24457,\"./ro.js\":24457,\"./ru\":82271,\"./ru.js\":82271,\"./sd\":1221,\"./sd.js\":1221,\"./se\":33478,\"./se.js\":33478,\"./si\":17538,\"./si.js\":17538,\"./sk\":5784,\"./sk.js\":5784,\"./sl\":46637,\"./sl.js\":46637,\"./sq\":86794,\"./sq.js\":86794,\"./sr\":45719,\"./sr-cyrl\":3322,\"./sr-cyrl.js\":3322,\"./sr.js\":45719,\"./ss\":56e3,\"./ss.js\":56e3,\"./sv\":41011,\"./sv.js\":41011,\"./sw\":40748,\"./sw.js\":40748,\"./ta\":11025,\"./ta.js\":11025,\"./te\":11885,\"./te.js\":11885,\"./tet\":28861,\"./tet.js\":28861,\"./tg\":86571,\"./tg.js\":86571,\"./th\":55802,\"./th.js\":55802,\"./tk\":59527,\"./tk.js\":59527,\"./tl-ph\":29231,\"./tl-ph.js\":29231,\"./tlh\":31052,\"./tlh.js\":31052,\"./tr\":85096,\"./tr.js\":85096,\"./tzl\":79846,\"./tzl.js\":79846,\"./tzm\":81765,\"./tzm-latn\":97711,\"./tzm-latn.js\":97711,\"./tzm.js\":81765,\"./ug-cn\":48414,\"./ug-cn.js\":48414,\"./uk\":16618,\"./uk.js\":16618,\"./ur\":57777,\"./ur.js\":57777,\"./uz\":57609,\"./uz-latn\":72475,\"./uz-latn.js\":72475,\"./uz.js\":57609,\"./vi\":21135,\"./vi.js\":21135,\"./x-pseudo\":64051,\"./x-pseudo.js\":64051,\"./yo\":82218,\"./yo.js\":82218,\"./zh-cn\":52648,\"./zh-cn.js\":52648,\"./zh-hk\":1632,\"./zh-hk.js\":1632,\"./zh-mo\":31541,\"./zh-mo.js\":31541,\"./zh-tw\":50304,\"./zh-tw.js\":50304};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error(\"Cannot find module '\"+e+\"'\");throw t.code=\"MODULE_NOT_FOUND\",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=35358},35370:(e,t,n)=>{\"use strict\";var r=n(26198);e.exports=function(e,t,n){for(var o=0,a=arguments.length>2?n:r(t),i=new e(a);a>o;)i[o]=t[o++];return i}},35476:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"}),\"ArrowForwardIosSharp\")},35546:(e,t,n)=>{\"use strict\";n.d(t,{X6:()=>s,py:()=>a,t4:()=>i,w4:()=>l}),n(52675),n(89463),n(2259),n(50113),n(23418),n(64346),n(23792),n(62062),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(99478);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e){return e.TAB_ONE=\"1\",e.TAB_TW0=\"2\",e.TAB_THREE=\"3\",e}({}),i=function(e){return e.YEAR=\"Year\",e.BRAND=\"Brand\",e.STATUS=\"Status\",e}({}),l=[{labelName:\"Status\",options:[{label:\"Not Uploaded\",value:\"NOT_UPLOADED\",checked:!1},{label:\"Pending\",value:\"PENDING\",checked:!1},{label:\"Accepted\",value:\"ACCEPTED\",checked:!1}]}],s=function(e,t,n){var a,i={field:\"salesHierarchyId\",operator:\"EQUALS\",value:t},l=r.r4,s=function(e){if(Array.isArray(e))return o(e)}(a=e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(a)||function(e,t){if(e){if(\"string\"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(a)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}();return e.find(function(e){return\"salesHierarchyId\"===e.field})?s=e.map(function(e){return\"salesHierarchyId\"===e.field?i:e}):s.push(i),{sort:l,filter:s,pageNo:n.pageNo,pageSize:n.pageSize}}},35548:(e,t,n)=>{\"use strict\";var r=n(33517),o=n(16823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+\" is not a constructor\")}},35610:(e,t,n)=>{\"use strict\";var r=n(91291),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},35633:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>E}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23792),n(62062),n(15086),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(28161),o=n(14073),a=n(8239),i=n(90815),l=n(88084),s=n(81970),u=n.n(s),c=n(34195),d=n(15664),p=n(36874),f=n(64121),g=n(62809),h=n(48506);function m(e){return m=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=m(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==m(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E=function(e){var t=e.isFilterOpen,n=e.onRequestClose,s=e.onFilterSubmit,m=e.filtersOptions,v=e.onClearFilters,y=e.selectedFilters,E=e.onChangeHq,b=void 0===E?function(){}:E,_=e.setFiltersOptions,C=void 0===_?function(){}:_,w=e.dynamicFilterLabels,S=void 0===w?[]:w,T=e.onDynamicFilterChange,O=e.userRoleType,D=e.hasShowPortfolio,R=new URLSearchParams(location.search).get(\"tabname\"),N=(0,c.Bd)().t,L=S[S.length-1],P=function(e,t){var n;return(null==e||null===(n=e[t])||void 0===n||null===(n=n.filter(function(e){return e.checked}))||void 0===n?void 0:n.map(function(e){return e.label}))||[]},M=function(e,t){var n,r,o,a;return null!=t&&t[e]?(null==t||null===(n=t[e])||void 0===n||n.forEach(function(t){var n,r=null==m||null===(n=m[e])||void 0===n?void 0:n.find(function(e){return(null==e?void 0:e.value)===(null==t?void 0:t.value)});r&&(r.checked=t.checked)}),null!==(r=null==m?void 0:m[e])&&void 0!==r?r:[]):null!==(o=null==m||null===(a=m[e])||void 0===a?void 0:a.map(function(e){return A(A({},e),{},{checked:!1,id:null==e?void 0:e.value})}))&&void 0!==o?o:[]},x=function(e,t,n,r){r(e,n.map(function(e){return A(A({},e),{},{checked:!0})}));var o=n.map(function(e){return e.value});e===L&&function(e,t,n){n(e,t),b(t),null!=t&&t.some(function(e){return null==e?void 0:e.checked})||C(A(A({},m),{},{shop_name:[]}))}(e,n,r),\"function\"==typeof T&&T(o,t,r)};return u().createElement(r.A,null,u().createElement(p.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},u().createElement(r.A,{p:3,className:\"mdo-floating-filter-wrapper\"},u().createElement(l.l1,{initialValues:y,enableReinitialize:!0,onSubmit:function(e){return s(e)}},function(e){var t,s,c,p,y=e.values,E=e.setFieldValue;return u().createElement(l.lV,{className:\"popupContent bgp-floating-filter-mdo\"},u().createElement(a.Ay,{container:!0,columns:12,spacing:1,mb:2},S.map(function(e,t){var n;return u().createElement(a.Ay,{item:!0,xs:3,key:e},function(e){var t=e.label,n=e.idx,a=e.options,i=e.values,s=e.setFieldValue,c=e.handleDynamicFilterChange,d=e.t;return u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{variant:\"subtitle2\"},d(t.toUpperCase())),u().createElement(l.D0,{name:t},n===(null==S?void 0:S.length)-1?function(){var e;return u().createElement(h.A,{name:t,options:a,selectedOption:null!==(e=i[t])&&void 0!==e?e:[],onHandleChange:function(e){return c(t,n,e,s)},disabled:!a.length})}:function(){var e,r,o,l;return u().createElement(f.A,{name:t,onChange:function(e,r){s(t,[A(A({},r),{},{checked:!0})]),\"function\"==typeof T&&T([null==r?void 0:r.value],n,s)},options:a,labelKey:\"label\",label:t,selectedOption:null!==(e=null==i||null===(r=i[t])||void 0===r?void 0:r[0])&&void 0!==e?e:void 0,value:null!==(o=null==i||null===(l=i[t])||void 0===l?void 0:l[0])&&void 0!==o?o:void 0,defaultLabel:\"\".concat(d(\"SELECT\"),\" \").concat(t.toUpperCase()),isDisabled:!a.length})}))}({label:e,idx:t,options:null!==(n=m[e])&&void 0!==n?n:[],values:y,setFieldValue:E,handleDynamicFilterChange:x,t:N}))}),\"country_admin\"!==O&&\"retailerbgpdetails\"!==R&&u().createElement(a.Ay,{item:!0,xs:2},u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{variant:\"subtitle2\"},N(\"MDO_HQ\")),u().createElement(l.D0,{name:\"hq\"},function(){var e,t;return u().createElement(h.A,{name:\"hq\",options:M(\"hq\",y),selectedOption:null!==(e=y.hq)&&void 0!==e?e:[],onHandleChange:function(e){var t=e.map(function(e){return A(A({},e),{},{checked:!0})});E(\"hq\",t),b(t),null!=e&&e.length||C(A(A({},m),{},{shop_name:[]}))},disableSearch:!1,disabled:!(null!==(t=m.hq)&&void 0!==t&&t.length)})}))),\"retailerbgpdetails\"===R&&u().createElement(u().Fragment,null,u().createElement(a.Ay,{item:!0,xs:3},u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{\"data-testid\":\"shop-name-label\",variant:\"subtitle2\"},N(\"SHOPNAME\")),u().createElement(l.D0,{name:\"shop_name\"},function(){var e,t;return u().createElement(h.A,{name:\"shop_name\",options:M(\"shop_name\",y),selectedOption:null!==(e=y.shop_name)&&void 0!==e?e:[],onHandleChange:function(e){E(\"shop_name\",e)},disableSearch:!1,disabled:!(null!==(t=m.shop_name)&&void 0!==t&&t.length)})}))),u().createElement(a.Ay,{item:!0,xs:3},u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{variant:\"subtitle2\"},N(\"STATUS\")),u().createElement(l.D0,{name:\"status\"},function(){var e;return u().createElement(g.A,{name:\"status\",labelKey:\"label\",options:M(\"status\",y),onCheckboxChange:function(e){return E(\"status\",e)},selectedOptions:P(y,\"status\"),defaultLabel:\"Select\",isDisabled:!(null!=m&&null!==(e=m.status)&&void 0!==e&&e.length),isSortReq:!0})}))),u().createElement(a.Ay,{item:!0,xs:3},u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{variant:\"subtitle2\"},N(\"YEAR_TEXT\")),u().createElement(l.D0,{name:\"year\"},function(){return u().createElement(f.A,{name:\"year\",onChange:function(e,t){return E(\"year\",t)},options:null==m?void 0:m.year,labelKey:\"label\",label:\"year\",selectedOption:y.year,value:null==y?void 0:y.year,defaultLabel:\"Select Year\"})})))),\"country_admin\"===O&&D&&u().createElement(a.Ay,{item:!0,xs:3},u().createElement(r.A,{width:\"100%\"},u().createElement(o.A,{variant:\"subtitle2\"},N(\"PORTFOLIO_FIELD\")),u().createElement(l.D0,{name:\"portfolio\"},function(){return u().createElement(f.A,{name:\"portfolio\",onChange:function(e,t){E(\"portfolio\",t)},options:null==m?void 0:m.portfolio,labelKey:\"label\",label:\"portfolio\",selectedOption:y.portfolio,value:y.portfolio,defaultLabel:N(\"SELECT_PORTFOLIO\")})})))),u().createElement(i.A,{direction:\"row\",justifyContent:\"end\"},u().createElement(r.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},u().createElement(d.A,{variant:\"outlined\",buttonName:null!==(t=N(\"CLEAR_FILTERS\"))&&void 0!==t?t:\"\",onButtonClick:function(){return v()},\"data-testid\":\"clearFilter\",fullwidth:!1,color:\"primary\",type:\"reset\"}),u().createElement(d.A,{variant:\"contained\",buttonName:null!==(s=N(\"APPLY_FILTERS\"))&&void 0!==s?s:\"\",onButtonClick:function(){},fullwidth:!1,disabled:(null==y||null===(c=y[S[0]])||void 0===c?void 0:c.length)&&!(null!=y&&null!==(p=y[L])&&void 0!==p&&p.length),color:\"primary\",type:\"submit\"}))),u().createElement(r.A,{\"data-testid\":\"closeIcon\",onClick:function(){return n(!1)},className:\"smart-agro-lite-filter-cross\"},u().createElement(o.A,{className:\"icon-close closeIcon\"})))}))))}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?\"__lodash_hash_undefined__\":t,this}},35874:(e,t,n)=>{\"use strict\";n(96167)},35917:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(79039),a=n(4055);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(a(\"div\"),\"a\",{get:function(){return 7}}).a})},35926:(e,t,n)=>{\"use strict\";e.exports=n.p+\"433445f3711720fe4248.svg\"},35945:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},36033:(e,t,n)=>{\"use strict\";n(48523)},36043:(e,t,n)=>{\"use strict\";var r=n(79306),o=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new o(\"Bad Promise constructor\");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},36072:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(80926).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"reduceRight\",function(e){var t=arguments.length;return o(a(this),e,t,t>1?arguments[1]:void 0)})},36211:(e,t,n)=>{var r=n(7421)(\"keys\"),o=n(93108);e.exports=function(e){return r[e]||(r[e]=o(e))}},36289:(e,t,n)=>{\"use strict\";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},36321:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>_}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(25440),n(62953);var r=n(28161),o=n(90815),a=n(14073),i=n(81970),l=n.n(i),s=n(34195),u=n(8085),c=n(96348),d=n(17630),p=n(47225),f=n(27305),g=n(92416),h=n(15664),m=n(20623),v=n(72181),A=n(1845),y=n(42603);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(e){var t=e.RBACControls,n=(0,f.w)(t),b=n.hasCreateAccess,_=n.hasUpdateAccess,C=(0,i.useContext)(p.v),w=C.BackOfficeProps,S=w.globalStore.User,T=w.baseurl,O=C.triggerShowLoader,D=E((0,i.useState)(!1),2),R=D[0],N=D[1],L=E((0,i.useState)(\"\"),2),P=L[0],M=L[1],x=E((0,i.useState)(),2),I=x[0],k=x[1],B=(0,s.Bd)().t;(0,i.useEffect)(function(){F()},[P]);var F=function(){var e,t={};t.domain=T,t.endPoint=u.p.GET_SUPPORT_HELP_DATA.replace(\"__BUID__\",S.selectedBusinessUnit.bu_id),t.customHeaders={\"country-code\":S.selectedCountry.countryCode,Authorization:\"Bearer \".concat(S.AccessToken)},t.triggerLoader=O,null===(e=(0,A.ML)(t))||void 0===e||e.then(function(e){k(e.id),401===(null==e?void 0:e.statusCode)?M(\"\".concat(B(\"NO_DATA\"))):404===(null==e?void 0:e.statusCode)?M(\"\"):M(null==e?void 0:e.help_support)}).catch(function(e){})};return l().createElement(v.t,null,l().createElement(r.A,null,l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,null,l().createElement(g.A,{routePathName:[{name:c.F_.Support,path:c.fp.HelpAndSupport},{name:c.F_.Help,path:c.fp.Help}]}))),l().createElement(o.A,{direction:\"row\",alignItems:\"end\",justifyContent:\"space-between\",mb:2},l().createElement(a.A,{variant:\"h5\",component:\"p\",className:\"title\",color:d.w.palette.text.primary,fontFamily:\"NotoSans-Regular\",fontWeight:\"600\"},B(\"HELP_DESCRIPTION\")),!R&&l().createElement(h.A,{onButtonClick:function(){N(!0)},variant:\"contained\",startIcon:l().createElement(\"span\",{className:\"icon-pencil btn-icon\"}),buttonName:B(\"EDIT\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!b&&!_})),R?l().createElement(y.A,{setEditContent:N,type:\"help\",id:I,data:P,getData:function(){F()}}):l().createElement(r.A,null,l().createElement(m.A,{editorHtml:P,showHtmlOptions:!1}))))}},36462:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e571800c9718f51d8894.woff2\"},36545:(e,t)=>{function n(e){if(e&&\"object\"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if(\"number\"==typeof e)return i[e];var n,a=String(e);return(n=r[a.toLowerCase()])?n:(n=o[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&\"object\"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if(\"string\"==typeof t){var a;if(a=r[t.toLowerCase()])return a===n;if(a=o[t.toLowerCase()])return a===n}else if(\"number\"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,\"pause/break\":19,\"caps lock\":20,esc:27,space:32,\"page up\":33,\"page down\":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,\"left command\":91,\"right command\":93,\"numpad *\":106,\"numpad +\":107,\"numpad -\":109,\"numpad .\":110,\"numpad /\":111,\"num lock\":144,\"scroll lock\":145,\"my computer\":182,\"my calculator\":183,\";\":186,\"=\":187,\",\":188,\"-\":189,\".\":190,\"/\":191,\"`\":192,\"[\":219,\"\\\\\":220,\"]\":221,\"'\":222},o=t.aliases={windows:91,\"⇧\":16,\"⌥\":18,\"⌃\":17,\"⌘\":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r[\"f\"+a]=a+111;for(a=0;a<10;a++)r[\"numpad \"+a]=a+96;var i=t.names=t.title={};for(a in r)i[r[a]]=a;for(var l in o)r[l]=o[l]},36546:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f4808d8bf723898488a.woff\"},36556:(e,t,n)=>{\"use strict\";var r=n(70453),o=n(73126),a=o([r(\"%String.prototype.indexOf%\")]);e.exports=function(e,t){var n=r(e,!!t);return\"function\"==typeof n&&a(e,\".prototype.\")>-1?o([n]):n}},36593:(e,t,n)=>{var r=n(52807);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},36667:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Q}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(26910),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(81970),a=n.n(o),i=n(8085),l=n(99478),s=n(27305),u=n(47225),c=(n(28706),n(42762),n(34195)),d=n(28462),p=(n(3362),n(95692)),f=function(e){return new Promise(function(t,n){var r;null===(r=p.N.get(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})},g=function(e){return new Promise(function(t,n){var r;null===(r=p.N.get(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})},h=n(15941),m=n(58969),v=function(){return h.Ik().shape({businessUnit:h.Yj().required(\"BusinessUnit required\"),level:h.Ik().required(\"Level required\"),headQuartersName:h.Yj().min(3,m.N.HEADQUARTERNAME_MIN).max(20,m.N.HEADQUARTERNAME_MAX).trim(\"Starting spaces are not allowed\").matches(/^[A-Za-z ]*$/,\"Please enter valid HQ Hierarchy Name\").required(\"Head Quarter Hierarchy Name is required\"),parent:h.Ik().nullable().test(\"parent-required\",\"Parent required\",function(e){var t=this.parent.level;return!1===(null==t?void 0:t.hasParent)||null!=e}),geoHierarchy:h.Ik().required(\"Geo Hierarchy required\"),salesHierarchy:h.Ik().required(\"Sales Hierarchy required\")})},A=n(90815),y=n(14073),E=n(88084),b=n(64121),_=n(28152);const C=function(e){var t=e.formikProps,n=e.isEditingMode,o=e.salesHierarchyLevels,i=e.salesHierarchyParent,l=e.geoHierarchyData,s=e.salesHierarchyData,u=e.parentDisable,d=e.BUSINESS_UNIT,p=e.onChangeLevelInput,f=e.updateGeoHierachyDetails,g=t.values,h=t.setFieldValue,m=(0,c.Bd)().t;return a().createElement(a().Fragment,null,a().createElement(A.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"BUSINESS_UNIT\"),\"*\"),a().createElement(E.D0,{name:\"businessUnit\",type:\"text\",className:\"inputField disabledInput\",defaultValue:null==d?void 0:d.bu_name,disabled:!0}),a().createElement(_.A,{errName:\"businessUnit\"})),a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"LEVEL\"),\"*\"),a().createElement(E.D0,{name:\"level\"},function(){return a().createElement(b.A,{name:\"level\",onChange:function(e,t){p(t,h)},options:o,labelKey:\"label\",label:\"level\",selectedOption:g.level,value:g.level,defaultLabel:m(\"SELECT_LEVEL\"),isDisabled:n})}),a().createElement(_.A,{errName:\"level\"}))),a().createElement(A.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"HQHIERARCHY_NAME\"),\"*\"),a().createElement(E.D0,{name:\"headQuartersName\",type:\"text\",className:\"inputField\",onChange:function(e){return h(\"headQuartersName\",e.target.value)},placeholder:m(\"ENTER_NAME\"),defaultValue:null==g?void 0:g.headQuartersName}),a().createElement(_.A,{errName:\"headQuartersName\"})),a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"PARENT\"),\"*\"),a().createElement(E.D0,{name:\"level\"},function(){return a().createElement(b.A,{name:\"parent\",onChange:function(e,t){h(\"geoHierarchy\",\"\"),h(\"parent\",t),f(t)},options:i,labelKey:\"label\",label:\"parent\",selectedOption:g.parent,value:g.parent,defaultLabel:m(\"SELECT_PARENT\"),isDisabled:n||u,isSortReq:!0})}),a().createElement(_.A,{errName:\"parent\"}))),a().createElement(A.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"GEO_HIERARCHY\"),\"*\"),a().createElement(E.D0,{name:\"geoHierarchy\"},function(){return a().createElement(b.A,{name:\"geoHierarchy\",onChange:function(e,t){h(\"geoHierarchy\",t)},options:l,labelKey:\"label\",label:\"geoHierarchy\",selectedOption:g.geoHierarchy,value:g.geoHierarchy,defaultLabel:m(\"SELECT_GEOHQ\"),isDisabled:n})}),a().createElement(_.A,{errName:\"geoHierarchy\"})),a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},m(\"SALES_HIERARCHY\"),\"*\"),a().createElement(E.D0,{name:\"salesHierarchy\"},function(){return a().createElement(b.A,{name:\"salesHierarchy\",onChange:function(e,t){h(\"salesHierarchy\",t)},options:s,labelKey:\"label\",label:\"salesHierarchy\",selectedOption:g.salesHierarchy,value:g.salesHierarchy,defaultLabel:m(\"SELECT_SALESHIER\"),isDisabled:n})}),a().createElement(_.A,{errName:\"salesHierarchy\"}))))};var w=n(13075);function S(e){return S=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},S(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){D(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=S(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==S(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e){var t,n,r,l=e.isDrawerOpen,s=void 0!==l&&l,h=e.onRequestClose,m=void 0===h?function(){}:h,A=e.isEditingMode,y=void 0!==A&&A,E=e.SelectedRowItem,b=void 0===E?{}:E,_=(0,o.useContext)(u.v),S=_.BackOfficeProps,T=S.globalStore.User,D=S.baseurl,N=_.triggerShowLoader,L=_.triggerToastMsg,P=null===(t=T.selectedCountry)||void 0===t?void 0:t.countryCode,M=D,x=null==T||null===(n=T.UserDetails)||void 0===n?void 0:n.user_id,I=null!==(r=null==T?void 0:T.AccessToken)&&void 0!==r?r:\"\",k=null==T?void 0:T.selectedBusinessUnit,B=(0,c.Bd)().t,F=R((0,o.useState)([]),2),j=F[0],H=F[1],U=R((0,o.useState)(!1),2),Y=U[0],G=U[1],z=R((0,o.useState)([]),2),V=z[0],q=z[1],W=R((0,o.useState)([]),2),Q=W[0],K=W[1],$=R((0,o.useState)([]),2),X=$[0],J=$[1],Z=R((0,o.useState)(1),2),ee=Z[0],te=Z[1],ne=(0,o.useState)(function(e){return{businessUnit:null==e?void 0:e.bu_name,level:\"\",headQuartersName:\"\",parent:\"\",geoHierarchy:\"\",salesHierarchy:\"\",editMode:!1}}(k)),re=R(ne,2),oe=re[0],ae=re[1];(0,o.useEffect)(function(){var e,t,n;y&&(te(null==b||null===(e=b.level_dto)||void 0===e?void 0:e.id),ue({value:null==b||null===(t=b.level_dto)||void 0===t?void 0:t.id}),ie({value:null==b||null===(n=b.level_dto)||void 0===n?void 0:n.sequence}),le({id:null==b?void 0:b.parent_id}),ae(function(e,t){var n,r,o,a;return{businessUnit:null==e?void 0:e.bu_name,level:{id:null==e||null===(n=e.level_dto)||void 0===n?void 0:n.id,label:null==e||null===(r=e.level_dto)||void 0===r?void 0:r.label_name,value:null==e||null===(o=e.level_dto)||void 0===o?void 0:o.sequence,hasParent:1!==(null==e||null===(a=e.level_dto)||void 0===a?void 0:a.id)},headQuartersName:null==e?void 0:e.name,parent:null===(null==e?void 0:e.parent_id)?\"N/A\":null==e?void 0:e.parent,geoHierarchy:null==e?void 0:e.geoHierarchy,salesHierarchy:null==e?void 0:e.salesHierarchy,editMode:t}}(b,y)))},[b,y]),(0,o.useEffect)(function(){se()},[]);var ie=function(e){var t=i.p.GETPARENTHQHIERARCHY.replace(\"__LEVEL__\",\"\".concat(null==e?void 0:e.value)),n={};return n.domain=M,n.endPoint=t,n.customHeaders={\"country-code\":P,Authorization:\"Bearer \".concat(I),\"bu-id\":null==k?void 0:k.bu_id},n.triggerLoader=N,f(n).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});G(!1),q(n);var r=n.filter(function(e){return e.id===(null==b?void 0:b.parent_id)});null!=r&&r.length&&ae(function(e){return O(O({},e),{},{parent:{label:r[0].label}})})}else G(!0),le({id:0})}).catch(function(e){console.log(\"LEVELERR\",e)})},le=function(e){var t=i.p.GETGEOHIERARCHIESBYPARENT.replace(\"__LEVEL__\",\"\".concat(function(e){var t,n,r=ee;return null!=b&&null!==(t=b.level_dto)&&void 0!==t&&t.id?r=null==b||null===(n=b.level_dto)||void 0===n?void 0:n.id:0===e.id&&(r=1),r}(e))),n={};return n.domain=M,n.endPoint=t,n.customHeaders={\"country-code\":P,Authorization:\"Bearer \".concat(I)},n.payLoad={parentId:null==e?void 0:e.id},n.triggerLoader=N,f(n).then(function(e){if(201!==e.status&&200!==e.status)throw new Error(e.errorMessage);var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});K(n);var r=n.filter(function(e){return e.id===(null==b?void 0:b.geo_hierarchy_id)});null!=r&&r.length&&ae(function(e){return O(O({},e),{},{geoHierarchy:{label:r[0].label}})})}).catch(function(e){console.log(\"GeoHier\",e)})},se=function(){var e={};e.domain=M,e.endPoint=i.p.GETLEVEL_DETAILS,e.customHeaders={\"country-code\":P,Authorization:\"Bearer \".concat(I)},e.triggerLoader=N,g(e).then(function(e){if(201!==e.status&&200!==e.status)throw new Error(e.errorMessage);var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e,t){return{id:null==e?void 0:e.id,label:null==e?void 0:e.label_name,value:null==e?void 0:e.sequence,hasParent:t>0}});H(n)}).catch(function(e){console.log(\"LEVELERR\",e)})},ue=function(e){var t=i.p.GETSALESHIERARCHYLISTBYLEVEL.replace(\"__LEVEL__\",\"\".concat(null==e?void 0:e.value)),n={};return n.domain=M,n.endPoint=t,n.customHeaders={\"country-code\":P,Authorization:\"Bearer \".concat(I),\"bu-id\":null==k?void 0:k.bu_id},n.triggerLoader=N,g(n).then(function(e){if(201!==e.status&&200!==e.status)throw new Error(e.errorMessage);var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}});J(n);var r=n.filter(function(e){return e.id===(null==b?void 0:b.sales_hierarchy_id)});null!=r&&r.length&&ae(function(e){return O(O({},e),{},{salesHierarchy:{label:r[0].label}})})}).catch(function(e){console.log(\"LEVELERR\",e)})},ce=function(e){var t,n,r,o,a,l,s,u,c,d={};d.domain=M,d.endPoint=i.p.SAVEHQHIERARCHY,d.customHeaders={\"country-code\":P,\"user-id\":x,Authorization:\"Bearer \".concat(I)},d.payLoad={name:null==e?void 0:e.headQuartersName.trim(),bu_id:null==k?void 0:k.bu_id,bu_name:null==k?void 0:k.bu_name,parent_id:1===(null==e||null===(t=e.level)||void 0===t?void 0:t.value)?null:null==e||null===(n=e.parent)||void 0===n?void 0:n.id,geo_hierarchy_id:null==e||null===(r=e.geoHierarchy)||void 0===r?void 0:r.id,sales_hierarchy_id:null==e||null===(o=e.salesHierarchy)||void 0===o?void 0:o.id,level_dto:{id:null==e||null===(a=e.level)||void 0===a?void 0:a.id,sequence:null==e||null===(l=e.level)||void 0===l?void 0:l.value,label_name:null==e||null===(s=e.level)||void 0===s?void 0:s.label}},d.triggerLoader=N,null===(c=d,u=new Promise(function(e,t){var n;null===(n=p.N.post(c))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===u||u.then(function(e){var t,n;if(201===e.status||200===e.status)return L({message:e.data,type:\"success\"}),void m(!0);throw L({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){console.log(\"OnSubmit\",e)})},de=function(e){var t,n,r=i.p.GETHQHIERARCHYBYID.replace(\"__ID__\",\"\".concat(null==b?void 0:b.id)),o={};o.endPoint=r,o.domain=M,o.customHeaders={\"country-code\":P,\"user-id\":x,Authorization:\"Bearer \".concat(I)},o.payLoad={name:null==e?void 0:e.headQuartersName.trim(),bu_id:null==b?void 0:b.bu_id},o.triggerLoader=N,null===(n=o,t=new Promise(function(e,t){var r;null===(r=p.N.put(n))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===t||t.then(function(e){var t,n;if(201===e.status||200===e.status)return L({message:e.data,type:\"success\"}),void m(!0);throw L({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){console.log(\"UpdateHQ\",e)})},pe=function(e,t){te(null==e?void 0:e.value),1===(null==e?void 0:e.id)?t(\"parent\",\"NA\"):t(\"parent\",\"\"),t(\"level\",e),ie(e),ue(e),t(\"geoHierarchy\",\"\"),t(\"salesHierarchy\",\"\")};return a().createElement(d.A,{isDrawerOpen:s,onRequestClose:m,id:\"hq-hierarchy-drawer\",title:\"\".concat(B(y?\"EDIT\":\"ADD\"),\" \").concat(B(\"HQ_HIERARCHY_LABEL\")),initialValues:oe,validationSchema:v,onSubmit:function(e){return(0,w.f5)(e,y,ce,de)},fields:function(e){return a().createElement(C,{formikProps:e,isEditingMode:y,salesHierarchyLevels:j,salesHierarchyParent:V,geoHierarchyData:Q,salesHierarchyData:X,parentDisable:Y,BUSINESS_UNIT:k,onChangeLevelInput:pe,updateGeoHierachyDetails:le})},submitLabel:B(y?\"UPDATE\":\"SAVE\"),cancelLabel:B(\"CANCEL\")})};var P=(0,n(11848).Ay)(r.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\"}}),M=n(60538),x=n(37998),I=n(96348),k=n(43605),B=n(92416),F=n(15664),j=n(59615),H=n(56203);const U=function(e){var t=e.setSortId,n=e.sortId,o=e.setIsDrawerOpen,i=e.hasCreateAccess,l=e.hqHierarchyList,s=e.EditActionComponent;return a().createElement(a().Fragment,null,a().createElement(A.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},a().createElement(r.A,{mb:2},a().createElement(B.A,{routePathName:[{name:I.F_.Masters,path:I.fp.Masters},{name:I.F_.HeadQuarterHierarchy,path:I.fp.HeadQuarterHierarchy}]})),a().createElement(A.A,{justifyContent:\"end\",direction:\"row\",gap:2,alignItems:\"center\",mb:2},a().createElement(j.A,{sortBy:n,onSort:function(e){return t(null==e?void 0:e.toString())},showLastUpdatedOn:!0}),a().createElement(F.A,{variant:\"contained\",color:\"primary\",buttonName:\"\".concat((0,H.t)(\"ADD_NEW_BUTTON\")),onButtonClick:function(){return o(!0)},fullwidth:!1,disabled:!i}))),a().createElement(M.A,{elevation:0,className:\"ag-theme-alpine smart-agro-lite-custom-table\"},a().createElement(k.A,{rows:l,columnDefs:x.RS,frameworkComponents:{EditActionComponent:s}})))};function Y(e){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Y(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Q=function(e){var t,n,d=e.RBACControls,p=(0,s.w)(d),g=p.hasCreateAccess,h=p.hasUpdateAccess,m=(0,o.useContext)(u.v),v=m.BackOfficeProps,A=v.baseurl,y=v.globalStore.User,E=m.triggerShowLoader,b=A,_=null===(t=y.selectedCountry)||void 0===t?void 0:t.countryCode,C=null!==(n=null==y?void 0:y.AccessToken)&&void 0!==n?n:\"\",w=null==y?void 0:y.selectedBusinessUnit,S=q((0,o.useState)(!1),2),T=S[0],O=S[1],D=q((0,o.useState)(!1),2),R=D[0],N=D[1],M=q((0,o.useState)({}),2),x=M[0],I=M[1],k=q((0,o.useState)(l.M5),2),B=k[0],F=k[1],j=q((0,o.useState)([]),2),H=j[0],Y=j[1];(0,o.useEffect)(function(){G()},[R,B]);var G=function(){var e,t={};t.domain=b,t.endPoint=i.p.GETHQHIERARCHYDATA,t.payLoad={},t.customHeaders={\"country-code\":_,\"bu-id\":null==w?void 0:w.bu_id,Authorization:\"Bearer \".concat(C)},B&&(t.payLoad.sort=\"1\"===B?\"asc\":\"desc\"),t.triggerLoader=E,null===(e=f(t))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.map(function(e){return{businessUnit:null==e?void 0:e.bu_name,geoHierarchy:null==e?void 0:e.geo_hierarchy_name,headQuartersName:null==e?void 0:e.name,level:null==e?void 0:e.level_label_name,parent:null==e?void 0:e.parent_name,salesHierarchy:null==e?void 0:e.sales_hierarchy_name,id:null==e?void 0:e.id}});Y(r)}else Y([])}).catch(function(e){console.log(\"FETCHSales\",e)})},V=function(e){var t,n=i.p.GETHQHIERARCHYBYID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.id)),r={};r.endPoint=n,r.domain=b,r.customHeaders={\"country-code\":_,Authorization:\"Bearer \".concat(C)},r.triggerLoader=E,null===(t=f(r))||void 0===t||t.then(function(e){200!==(null==e?void 0:e.status)&&201!==(null==e?void 0:e.status)||(N(!0),O(!0),I(null==e?void 0:e.data))}).catch(function(e){console.log(\"ERR on GetHQHier \".concat(e))})};return a().createElement(P,null,a().createElement(r.A,null,a().createElement(U,{setSortId:F,sortId:B,setIsDrawerOpen:N,hasCreateAccess:g,hqHierarchyList:H,EditActionComponent:function(e){return function(e){var t=(0,c.Bd)().t,n=e.column,r=e.data,o=e.hasUpdateAccess,i=e.getHeadQuartersById,l={edit:t(\"EDIT\")};return a().createElement(\"button\",{type:\"button\",id:\"editItem\",className:\"smart-agro-lite-green-label remove-button \".concat(o?\"\":\"disabled-label\"),onClick:function(){o&&i(r)}},l[n.colId])}(z(z({},e),{},{hasUpdateAccess:h,getHeadQuartersById:V}))}}),R&&a().createElement(L,{isDrawerOpen:R,onRequestClose:function(e){N(!1),O(!1),I(null)},isEditingMode:T,SelectedRowItem:x})))}},36738:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A}),n(62062),n(26099);var r=n(8239),o=n(14073),a=n(71543),i=n(81970),l=n.n(i),s=n(84976),u=n(14977),c=n(37636),d=n(11848),p=n(28161),f=(0,d.Ay)(p.A)(function(){return{\"& .MuiPaper-root\":{boxShadow:\"0px 4px 10px rgba(0, 0, 0, 0.1)\",borderRadius:6,width:\"100%\",height:128,cursor:\"pointer\",\"&:hover\":{transform:\"scale(1.1)\",transition:\"all 0.3s ease-in-out\",boxShadow:\"0px 4px 20px rgb(170 180 190 / 30%)\"},\"& .css-46bh2p-MuiCardContent-root\":{display:\"flex\",flexDirection:\"column\",justifyContent:\"end\",padding:\"16px\",height:\"100%\"}}}}),g=function(e){var t=e.children,n=e.onCardPress,r=void 0===n?function(){}:n;return l().createElement(f,null,l().createElement(u.A,{elevation:0,onClick:r},l().createElement(c.A,null,t)))};const h=l().memo(g);var m=(0,d.Ay)(p.A)(function(){return{\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& span\":{'&[class^=\"icon-\"], &[class*=\" icon-\"]':{color:\"#62801E\",fontSize:33,lineHeight:\"normal\"}},\"& .MuiDivider-root\":{margin:\"20px 0 8px\"},\"& .cardTitle\":{color:\"#232630\",font:\"normal normal 600 16px/22px NotoSans-Semibold\"},\"& .module-link\":{textDecoration:\"none\"}}}),v=function(e){var t=e.moduleData,n=e.onCardPress,i=void 0===n?function(){}:n;return l().createElement(m,null,l().createElement(r.Ay,{container:!0,spacing:4},t.map(function(e){return l().createElement(r.Ay,{key:\"\".concat(e.path),item:!0,xl:3,lg:3,md:3,sm:3},l().createElement(s.N_,{className:\"module-link\",to:e.path},l().createElement(h,{key:e.id,onCardPress:function(){return i(e)}},l().createElement(o.A,{component:\"span\",className:e.iconName}),l().createElement(a.A,null),l().createElement(o.A,{className:\"cardTitle\"},e.displayName))))})))};const A=l().memo(v)},36829:(e,t,n)=>{\"use strict\";e.exports=n.p+\"17185cabe508f919165b.svg?hasvnq\"},36840:(e,t,n)=>{\"use strict\";var r=n(94901),o=n(24913),a=n(50283),i=n(39433);e.exports=function(e,t,n,l){l||(l={});var s=l.enumerable,u=void 0!==l.name?l.name:t;if(r(n)&&a(n,u,l),l.global)s?e[t]=n:i(t,n);else{try{l.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},36843:(e,t,n)=>{\"use strict\";n.d(t,{F1:()=>u,Nx:()=>s,SI:()=>i,Vs:()=>l}),n(28706),n(27495),n(25440);var r=n(8085),o=n(13075),a=n(11715),i=function(e,t,n){var i,l={};return l.domain=t,l.endPoint=\"\".concat(r.p.GET_CONFIGURATION_VALUES,\"?moduleName=\").concat(a.A.LIQUIDATION,\"&keys=\").concat(a.A.LIQUIDATION_ROLE),l.customHeaders={\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},l=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=r.p.GETSALESHIERARCHY_BYID.replace(\"__ID__\",a),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},s=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=\"\".concat(r.p.GET_FILTERS_LABELS_LIST,\"?salesHierarchyId=\").concat(a),s.customHeaders={\"role-id\":null==e||null===(i=e.selectedBusinessUnit)||void 0===i||null===(i=i.userRoleControls)||void 0===i?void 0:i.roleId,\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,o.AT)(\"get\",s,!0)},u=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=r.p.MASTERS_HQ_OPTIONS.replace(\"__ID__\",a),l.customHeaders={\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)}},36874:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>K}),n(89907);var r=n(98587),o=n(58168),a=n(81970),i=n.n(a),l=n(34164),s=n(75659),u=n(73788),c=n(79801),d=n(80851),p=n(57223),f=n(1935),g=n(96852),h=n(44675),m=n(35186),v=n(93749),A=n(74848);const y=[\"addEndListener\",\"appear\",\"children\",\"container\",\"direction\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function E(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=(0,v.A)(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue(\"-webkit-transform\")||e.getPropertyValue(\"transform\")}let l=0,s=0;if(i&&\"none\"!==i&&\"string\"==typeof i){const e=i.split(\"(\")[1].split(\")\")[0].split(\",\");l=parseInt(e[4],10),s=parseInt(e[5],10)}return\"left\"===e?o?`translateX(${o.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:\"right\"===e?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:\"up\"===e?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${a.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}(e,t,\"function\"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const b=a.forwardRef(function(e,t){const n=(0,h.A)(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},l={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:u=!0,children:c,container:b,direction:_=\"down\",easing:C=i,in:w,onEnter:S,onEntered:T,onEntering:O,onExit:D,onExited:R,onExiting:N,style:L,timeout:P=l,TransitionComponent:M=d.Ay}=e,x=(0,r.A)(e,y),I=a.useRef(null),k=(0,g.A)((0,p.A)(c),I,t),B=e=>t=>{e&&(void 0===t?e(I.current):e(I.current,t))},F=B((e,t)=>{E(_,e,b),(0,m.q)(e),S&&S(e,t)}),j=B((e,t)=>{const r=(0,m.c)({timeout:P,style:L,easing:C},{mode:\"enter\"});e.style.webkitTransition=n.transitions.create(\"-webkit-transform\",(0,o.A)({},r)),e.style.transition=n.transitions.create(\"transform\",(0,o.A)({},r)),e.style.webkitTransform=\"none\",e.style.transform=\"none\",O&&O(e,t)}),H=B(T),U=B(N),Y=B(e=>{const t=(0,m.c)({timeout:P,style:L,easing:C},{mode:\"exit\"});e.style.webkitTransition=n.transitions.create(\"-webkit-transform\",t),e.style.transition=n.transitions.create(\"transform\",t),E(_,e,b),D&&D(e)}),G=B(e=>{e.style.webkitTransition=\"\",e.style.transition=\"\",R&&R(e)}),z=a.useCallback(()=>{I.current&&E(_,I.current,b)},[_,b]);return a.useEffect(()=>{if(w||\"down\"===_||\"right\"===_)return;const e=(0,f.A)(()=>{I.current&&E(_,I.current,b)}),t=(0,v.A)(I.current);return t.addEventListener(\"resize\",e),()=>{e.clear(),t.removeEventListener(\"resize\",e)}},[_,w,b]),a.useEffect(()=>{w||z()},[w,z]),(0,A.jsx)(M,(0,o.A)({nodeRef:I,onEnter:F,onEntered:H,onEntering:j,onExit:Y,onExited:G,onExiting:U,addEndListener:e=>{s&&s(I.current,e)},appear:u,in:w,timeout:P},x,{children:(e,t)=>a.cloneElement(c,(0,o.A)({ref:k,style:(0,o.A)({visibility:\"exited\"!==e||w?void 0:\"hidden\"},L,c.props.style)},t))}))}),_=b;var C=n(60538),w=n(28466),S=n(25669),T=n(11848),O=n(39770),D=n(38413),R=n(31609);function N(e){return(0,R.Ay)(\"MuiDrawer\",e)}(0,D.A)(\"MuiDrawer\",[\"root\",\"docked\",\"paper\",\"paperAnchorLeft\",\"paperAnchorRight\",\"paperAnchorTop\",\"paperAnchorBottom\",\"paperAnchorDockedLeft\",\"paperAnchorDockedRight\",\"paperAnchorDockedTop\",\"paperAnchorDockedBottom\",\"modal\"]);const L=[\"BackdropProps\"],P=[\"anchor\",\"BackdropProps\",\"children\",\"className\",\"elevation\",\"hideBackdrop\",\"ModalProps\",\"onClose\",\"open\",\"PaperProps\",\"SlideProps\",\"TransitionComponent\",\"transitionDuration\",\"variant\"],M=(e,t)=>{const{ownerState:n}=e;return[t.root,(\"permanent\"===n.variant||\"persistent\"===n.variant)&&t.docked,t.modal]},x=(0,T.Ay)(c.A,{name:\"MuiDrawer\",slot:\"Root\",overridesResolver:M})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),I=(0,T.Ay)(\"div\",{shouldForwardProp:O.A,name:\"MuiDrawer\",slot:\"Docked\",skipVariantsResolver:!1,overridesResolver:M})({flex:\"0 0 auto\"}),k=(0,T.Ay)(C.A,{name:\"MuiDrawer\",slot:\"Paper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,w.A)(n.anchor)}`],\"temporary\"!==n.variant&&t[`paperAnchorDocked${(0,w.A)(n.anchor)}`]]}})(({theme:e,ownerState:t})=>(0,o.A)({overflowY:\"auto\",display:\"flex\",flexDirection:\"column\",height:\"100%\",flex:\"1 0 auto\",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:\"touch\",position:\"fixed\",top:0,outline:0},\"left\"===t.anchor&&{left:0},\"top\"===t.anchor&&{top:0,left:0,right:0,height:\"auto\",maxHeight:\"100%\"},\"right\"===t.anchor&&{right:0},\"bottom\"===t.anchor&&{top:\"auto\",left:0,bottom:0,right:0,height:\"auto\",maxHeight:\"100%\"},\"left\"===t.anchor&&\"temporary\"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},\"top\"===t.anchor&&\"temporary\"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},\"right\"===t.anchor&&\"temporary\"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},\"bottom\"===t.anchor&&\"temporary\"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),B={left:\"right\",right:\"left\",top:\"down\",bottom:\"up\"},F=a.forwardRef(function(e,t){const n=(0,S.b)({props:e,name:\"MuiDrawer\"}),i=(0,h.A)(),c=(0,u.I)(),d={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:p=\"left\",BackdropProps:f,children:g,className:m,elevation:v=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:E}={},onClose:b,open:C=!1,PaperProps:T={},SlideProps:O,TransitionComponent:D=_,transitionDuration:R=d,variant:M=\"temporary\"}=n,F=(0,r.A)(n.ModalProps,L),j=(0,r.A)(n,P),H=a.useRef(!1);a.useEffect(()=>{H.current=!0},[]);const U=function({direction:e},t){return\"rtl\"===e&&function(e){return-1!==[\"left\",\"right\"].indexOf(e)}(t)?B[t]:t}({direction:c?\"rtl\":\"ltr\"},p),Y=p,G=(0,o.A)({},n,{anchor:Y,elevation:v,open:C,variant:M},j),z=(e=>{const{classes:t,anchor:n,variant:r}=e,o={root:[\"root\"],docked:[(\"permanent\"===r||\"persistent\"===r)&&\"docked\"],modal:[\"modal\"],paper:[\"paper\",`paperAnchor${(0,w.A)(n)}`,\"temporary\"!==r&&`paperAnchorDocked${(0,w.A)(n)}`]};return(0,s.A)(o,N,t)})(G),V=(0,A.jsx)(k,(0,o.A)({elevation:\"temporary\"===M?v:0,square:!0},T,{className:(0,l.A)(z.paper,T.className),ownerState:G,children:g}));if(\"permanent\"===M)return(0,A.jsx)(I,(0,o.A)({className:(0,l.A)(z.root,z.docked,m),ownerState:G,ref:t},j,{children:V}));const q=(0,A.jsx)(D,(0,o.A)({in:C,direction:B[U],timeout:R,appear:H.current},O,{children:V}));return\"persistent\"===M?(0,A.jsx)(I,(0,o.A)({className:(0,l.A)(z.root,z.docked,m),ownerState:G,ref:t},j,{children:q})):(0,A.jsx)(x,(0,o.A)({BackdropProps:(0,o.A)({},f,E,{transitionDuration:R}),className:(0,l.A)(z.root,z.modal,m),open:C,ownerState:G,onClose:b,hideBackdrop:y,ref:t},j,F,{children:q}))}),j=F;n(34782),n(67945),n(52811);var H,U,Y,G=n(17437),z=n(6398),V=n(17630),q=(0,G.i7)(H||(U=[\"\\n0% {\\n    -webkit-transform: rotate(-45deg);\\n            transform: rotate(-45deg);\\n    opacity: 0;\\n  }\\n  100% {\\n    -webkit-transform: rotate(0);\\n            transform: rotate(0);\\n    opacity: 1;\\n  }\\n\"],Y||(Y=U.slice(0)),H=Object.freeze(Object.defineProperties(U,{raw:{value:Object.freeze(Y)}})))),W=((0,T.Ay)(\"div\")({\"&:hover\":{animation:\"\".concat(q,\" 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both !important\")}}),(0,z.A)({customDrawerComponent:{\"& .popupMain\":{padding:\"25px\",width:\"544px\",height:\"100%\",backgroundColor:\" #FAFBFC\",\"&.editor-popup\":{width:800,\"& .css-k6hn3i .ql-container .ql-editor\":{height:\"calc(100vh - 500px)\"}},\"& .closeIcon\":{color:\"#C1C5C8\",fontSize:\"14px\",cursor:\"pointer\",\"&:hover\":{animation:\"\".concat(q,\" 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both !important\")}}},\"& .customWidth\":{width:\"950px !important\"},\"& .popupContent\":{maxHeight:\"calc(100vh - 155px)\",minHeight:\"580px\",overflow:\"auto\",padding:\"4px\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .selectDropdown\":{border:\"1px solid #C2C7D0\",borderRadius:\"4px\",padding:10,width:\"100%\",\"&.MuiInput-underline:before\":{display:\"none\"}}},\"& .btnsBlock\":{position:\"absolute\",bottom:\"25px\",right:\"25px\"},\"& .addUserbtnsBlock\":{position:\"absolute\",paddingBottom:\"14px\",right:\"25px\"},\"& .btnsBlockBaseline\":{position:\"absolute\",bottom:\"5px\",right:\"25px\"},\"& .btnsBlockEvents\":{display:\"flex\",justifyContent:\"end\"},\"& .downloadPdfBtn\":{marginTop:\"15px\",marginRight:\"-14px\",display:\"flex\",justifyContent:\"end\"},\"& .inputField\":{color:\"#14151C\",fontSize:\"14px\",padding:\"10px\",fontFamily:\"NotoSans-Regular\",border:\"1px solid #C2C7D0\",borderRadius:\"4px\",width:\"100% \",height:40,backgroundColor:\"\".concat(V.w.palette.secondary.main),\"&:focus-visible\":{outline:\"none\"},\"&.disabledInput\":{opacity:\"0.5\",cursor:\"not-allowed\"}},\"& .text-area\":{height:\"auto\",resize:\"none\"},\"& .ipFieldMain\":{width:\"100%\",\"& .MuiInputBase-root\":{background:\"#fff\",borderRadius:\"4px\",padding:\"12px 10px\"}},\"& .Mui-error\":{fontWeight:\"700\"},\"& .Mui-disabled\":{opacity:\"1.3\",cursor:\"not-allowed\"},\"& .inputs-cards\":{marginBottom:V.w.spacing(2),borderRadius:V.w.spacing(.5),backgroundColor:V.w.palette.secondary.main,\"& .cards-header-wrapper\":{whiteSpace:\"nowrap\",color:V.w.palette.grey[400]},\"& .input-card-body\":{padding:\"16px\",borderTop:\"1px solid \".concat(V.w.palette.secondary.light)}},\"& .round-badge\":{width:\"30px\",height:\"30px\",textAlign:\"center\",borderRadius:\"50px\",padding:\"3px\",fontWeight:\"500\",fontSize:\"14px\",color:V.w.palette.grey[400],backgroundColor:\"#DFFBE8\"},\"& .MuiTextField-root\":{width:\"100%\",\"& :hover, .Mui-focused\":{\"& .MuiOutlinedInput-notchedOutline\":{borderColor:V.w.palette.grey[100]}},\"& .MuiInputBase-root\":{height:\"40px\"}},\"& .drawer-switch-component\":{\"& .MuiFormGroup-root\":{\"& .MuiFormControlLabel-root\":{justifyContent:\"flex-end\",gap:\"16px\",margin:\"0px\",width:\"fit-content\"}},\"& .MuiSwitch-root\":{width:\"45px\",height:\"24px\",padding:0},\"& .MuiButtonBase-root\":{margin:\"3px\",\"&.MuiSwitch-switchBase\":{\"& .MuiSwitch-thumb\":{height:\"18px\",width:\"18px\"}}}},\"& .time-picker-wrapper\":{width:\"100%\",\"& .rc-time-picker\":{width:\"100%\",\"& .rc-time-picker-input\":{height:\"40px\",borderColor:V.w.palette.grey[100]},\"& .rc-time-picker-clear\":{top:\"8px\",\"& .rc-time-picker-clear-icon:after\":{fontSize:\"18px\"}},\"& .timer-icon\":{position:\"absolute\",zIndex:\"1\",top:\"10px\",right:\"8px\",color:V.w.palette.grey[200]}},\"& .rc-time-picker-panel-inner\":{borderColor:V.w.palette.grey[100],width:\"100%\"}},\"& .MuiInputBase-root\":{maxWidth:\"234px\",minWidth:\"100%\"},\"& .error-msg-card\":{margin:\"24px 0px\",border:\"1px solid \".concat(V.w.palette.error.main),padding:\"16px\",boxShadow:\"0px 4px 10px rgba(0, 0, 0, 0.1)\",borderRadius:V.w.spacing(.5),borderLeftWidth:\"6px\",alignItems:\"start\",height:\"80px\"},\"& .icon-message\":{fontSize:\"20px\",color:V.w.palette.error.main},\"& .info-icon\":{color:V.w.palette.info.light,fontSize:\"20\"},\"& .table-border-red\":{\"& .ag-root-wrapper \":{border:\"none !important\",\"& .ag-row\":{minHeight:\"60px\",alignItems:\"baseline\"}}},\"& .border-top\":{borderTop:\"2px solid \"},\"& .document-view-lits\":{\"& .MuiListItem-root\":{color:V.w.palette.info.light,display:\"flex\",gap:\"10px\",borderBottom:\"1px solid  \".concat(V.w.palette.grey[100]),borderRadius:\"4px\",cursor:\"pointer\",margin:\"5px auto\",\"& .MuiLink-root\":{whiteSpace:\"wrap\",overflow:\"hidden\",width:\"100%\",color:V.w.palette.info.light},\"&:hover\":{backgroundColor:V.w.palette.grey[700],color:\"\".concat(V.w.palette.secondary.main,\" \")}},\"& .currently-viewing\":{backgroundColor:V.w.palette.grey[700],color:\"\".concat(V.w.palette.secondary.main,\" \"),\"& .pdf-file-name \":{color:\"\".concat(V.w.palette.secondary.main,\" \")}}},\"& .pdf-view-wrapper\":{width:\"30%\",\"& .pdf-file-name \":{whiteSpace:\"wrap\",overflow:\"hidden\",textOverflow:\"ellipsis\",width:\"100%\"}},\"& .pdf-wrapper\":{width:\"70%\"},\"& .iframe-container\":{minWidth:\"70%\",height:\"80vh\"}},filterComponent:{\"& .MuiPaper-root\":{top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",\"& .smart-agro-lite-filter-cross\":{position:\"fixed\",zIndex:\"3\",width:\"100%\",\" & .closeIcon \":{position:\"absolute\",transform:\"translateY(4px)\",left:\"45%\",padding:\"8px\",backgroundColor:V.w.palette.secondary.main,width:\"40px\",textAlign:\"center\",alignItems:\"center\",height:\"40px\",borderRadius:\"50%\",color:V.w.palette.grey[700],cursor:\"pointer\"}}},\"& .MuiTextField-root\":{minWidth:\"100% !important\"},\"& .floating-filter-wrapper\":{minHeight:\"214px\"},\"& .event-baseline-floating-filter-wrapper\":{minHeight:\"280px\"},\"& .distributor-level-filter-wrapper\":{minHeight:\"264px\"},\"& .floating-filter\":{position:\"fixed\",width:\"calc(100% - 72px)\",\"& .multi-select\":{maxWidth:\"400px !important\"}},\"& .bgp-floating-filter-wrapper\":{minHeight:\"245px\"},\"& .bgp-floating-filter\":{position:\"fixed\",width:\"calc(100% - 72px)\",\"& .multi-select\":{maxWidth:\"400px !important\"}},\"& .bgp-floating-filter-mdo\":{position:\"fixed\",width:\"calc(100% - 72px)\",backgroundColor:\"#FAFBFC\",left:\"72px\",padding:\"25px\",\"& .multi-select\":{maxWidth:\"400px !important\"}},\"& .filter-date-picker  .MuiInputBase-adornedEnd\":{width:\"calc(100% - 10px)\"},\"& .multi-select\":{minWidth:\"100% !important\"},\"& .floating-filter-retailer\":{width:\"98%\"},\"& .liquidation-floating-filter-wrapper\":{minHeight:\"225px\"},\"& .retailer-floating-filter-wrapper\":{minHeight:\"168px\"},\"& .mdo-floating-filter-wrapper\":{minHeight:\"155px\"},\"& .liquidation-floating-filter\":{position:\"fixed\",width:\"calc(100% - 100px)\",\"& .multi-select\":{maxWidth:\"400px !important\"}}}})),Q=function(e){var t=e.isDrawerOpen,n=e.children,r=e.anchor,o=void 0===r?\"right\":r,a=e.upper,l=void 0!==a&&a,s=e.sx,u=W();return i().createElement(j,{anchor:o,open:t,className:l?u.filterComponent:u.customDrawerComponent,sx:s},n)};const K=i().memo(Q)},36955:(e,t,n)=>{\"use strict\";var r=n(92140),o=n(94901),a=n(22195),i=n(78227)(\"toStringTag\"),l=Object,s=\"Arguments\"===a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?\"Undefined\":null===e?\"Null\":\"string\"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),i))?n:s?a(t):\"Object\"===(r=a(t))&&o(t.callee)?\"Arguments\":r}},37071:function(e,t,n){!function(e){\"use strict\";var t=\"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.\".split(\"_\"),n=\"jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des\".split(\"_\");e.defineLocale(\"fy\",{months:\"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:\"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon\".split(\"_\"),weekdaysShort:\"si._mo._ti._wo._to._fr._so.\".split(\"_\"),weekdaysMin:\"Si_Mo_Ti_Wo_To_Fr_So\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD-MM-YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[hjoed om] LT\",nextDay:\"[moarn om] LT\",nextWeek:\"dddd [om] LT\",lastDay:\"[juster om] LT\",lastWeek:\"[ôfrûne] dddd [om] LT\",sameElse:\"L\"},relativeTime:{future:\"oer %s\",past:\"%s lyn\",s:\"in pear sekonden\",ss:\"%d sekonden\",m:\"ien minút\",mm:\"%d minuten\",h:\"ien oere\",hh:\"%d oeren\",d:\"ien dei\",dd:\"%d dagen\",M:\"ien moanne\",MM:\"%d moannen\",y:\"ien jier\",yy:\"%d jierren\"},dayOfMonthOrdinalParse:/\\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?\"ste\":\"de\")},week:{dow:1,doy:4}})}(n(95093))},37106:(e,t,n)=>{var r=n(69204),o=n(79032).f,a={}.toString,i=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&\"[object Window]\"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},37217:(e,t,n)=>{var r=n(80079),o=n(51420),a=n(90938),i=n(63605),l=n(29817),s=n(80945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=l,u.prototype.set=s,e.exports=u},37306:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u}),n(62010);var r=n(68864),o=n(66848),a=n(14073),i=n(81970),l=n.n(i),s=function(e){return l().createElement(r.A,{control:l().createElement(o.A,{name:e.name,sx:{p:.5},size:\"small\",checked:e.checked,value:e.value,onChange:function(t){e.onChange(t.target.value)},key:e.key,disabled:e.disabled}),label:l().createElement(a.A,{style:{lineHeight:\"unset\",paddingLeft:8},variant:\"body2\",fontSize:14},e.label)})};const u=l().memo(s)},37636:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>m});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(38413),d=n(31609);function p(e){return(0,d.Ay)(\"MuiCardContent\",e)}(0,c.A)(\"MuiCardContent\",[\"root\"]);var f=n(74848);const g=[\"className\",\"component\"],h=(0,s.Ay)(\"div\",{name:\"MuiCardContent\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(()=>({padding:16,\"&:last-child\":{paddingBottom:24}})),m=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiCardContent\"}),{className:a,component:s=\"div\"}=n,c=(0,o.A)(n,g),d=(0,r.A)({},n,{component:s}),m=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},p,t)})(d);return(0,f.jsx)(h,(0,r.A)({as:s,className:(0,i.A)(m.root,a),ownerState:d,ref:t},c))})},37695:(e,t,n)=>{\"use strict\";n.d(t,{M:()=>c,n:()=>u}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(28161),o=n(11848);function a(e){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==a(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){return{\"& .comments-sections\":{textarea:{width:\"100%\",color:e.palette.grey[200],border:\"1px solid \".concat(e.palette.grey[100]),fontFamily:\"NotoSans-Regular\",fontSize:\"16px\",fontWeight:500,padding:\"16px\",resize:\"none\",outline:\"none\",borderRadius:e.spacing(.5),\" &:hover\":{borderColor:e.palette.grey[100],outline:\"none\"}},\"& .inputField\":{color:\"#14151C\",fontSize:\"14px\",padding:\"10px\",fontFamily:\"NotoSans-Regular\",border:\"1px solid #C2C7D0\",borderRadius:\"4px\",width:\"100% \",height:40,backgroundColor:\"\".concat(e.palette.secondary.main),\"&:focus-visible\":{outline:\"none\"},\"&.disabledInput\":{opacity:\"0.5\",cursor:\"not-allowed\"}}}}},c=(0,o.Ay)(r.A)(function(e){var t=e.theme;return l(l({\"& .user-detail-box\":{padding:\"16px\",backgroundColor:t.palette.secondary.light,margin:\"16px 0px\"},\"& .user-details-container\":{position:\"relative\",\"& .image-count-wrapper\":{position:\"relative\",\"&.img-overlay\":{\"&:after\":{content:'\" \"',width:\"60px\",height:\"60px\",position:\"absolute\",top:\"0\",left:\"0\",backgroundColor:\"#5F5C5B\",opacity:\"0.7\"}}},\"& .doc-icon\":{objectFit:\"cover\",width:\"60px\",height:\"60px\",position:\"relative\"},\"& .images-count\":{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"absolute\",top:\"0px\",left:\"0px\",height:\"60px\",width:\"60px\",color:t.palette.secondary.main,fontSize:\"20px\",fontWeight:\"700\",zIndex:\"100\"}},\"& .viewmode\":{\"& .MuiInputBase-input\":{paddingLeft:\"0px\"},\"& .MuiInputBase-root, .text-filed \":{border:\"none !important\",backgroundColor:\"transparent !important\",pointerEvents:\"none\",padding:\"8px 0px\",paddingLeft:\"0px\",\"& .MuiSvgIcon-root\":{display:\"none\"}}},\"& .editmode\":{\"& .MuiInputBase-root, .text-filed\":{backgroundColor:t.palette.secondary.main,maxWidth:\"240px\",transition:\"all 0.2s ease-in-out\"}}},u(t)),{},{\"& .shop-image\":{width:\"152px\",height:\"152px\",img:{objectFit:\"cover\"}},\"& .document-details-box\":{margin:\"0px !important\"}})})},37719:(e,t,n)=>{n(78750),n(96653),e.exports=n(1275).f(\"iterator\")},37720:(e,t,n)=>{\"use strict\";var r=n(74765),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push(\"%\"+((t<16?\"0\":\"\")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},s=1024;e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:\"o\"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],l=Object.keys(i),s=0;s<l.length;++s){var u=l[s],c=i[u];\"object\"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\\+/g,\" \");if(\"iso-8859-1\"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var l=e;if(\"symbol\"==typeof e?l=Symbol.prototype.toString.call(e):\"string\"!=typeof e&&(l=String(e)),\"iso-8859-1\"===n)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return\"%26%23\"+parseInt(e.slice(2),16)+\"%3B\"});for(var u=\"\",c=0;c<l.length;c+=s){for(var d=l.length>=s?l.slice(c,c+s):l,p=[],f=0;f<d.length;++f){var g=d.charCodeAt(f);45===g||46===g||95===g||126===g||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||a===r.RFC1738&&(40===g||41===g)?p[p.length]=d.charAt(f):g<128?p[p.length]=i[g]:g<2048?p[p.length]=i[192|g>>6]+i[128|63&g]:g<55296||g>=57344?p[p.length]=i[224|g>>12]+i[128|g>>6&63]+i[128|63&g]:(f+=1,g=65536+((1023&g)<<10|1023&d.charCodeAt(f)),p[p.length]=i[240|g>>18]+i[128|g>>12&63]+i[128|g>>6&63]+i[128|63&g])}u+=p.join(\"\")}return u},isBuffer:function(e){return!(!e||\"object\"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return\"[object RegExp]\"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if(\"object\"!=typeof n&&\"function\"!=typeof n){if(a(t))t.push(n);else{if(!t||\"object\"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||\"object\"!=typeof t)return[t].concat(n);var i=t;return a(t)&&!a(n)&&(i=l(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(o.call(t,a)){var i=t[a];i&&\"object\"==typeof i&&n&&\"object\"==typeof n?t[a]=e(i,n,r):t.push(n)}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var i=n[a];return o.call(t,a)?t[a]=e(t[a],i,r):t[a]=i,t},i)}}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},37872:function(e){e.exports=function(){\"use strict\";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var a=n(e),i=n(t),l=\"(\"===(o=o||\"()\")[0],s=\")\"===o[1];return(l?this.isAfter(a,r):!this.isBefore(a,r))&&(s?this.isBefore(i,r):!this.isAfter(i,r))||(l?this.isBefore(a,r):!this.isAfter(a,r))&&(s?this.isAfter(i,r):!this.isBefore(i,r))}}}()},37892:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"fr-ch\",{months:\"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre\".split(\"_\"),monthsShort:\"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.\".split(\"_\"),monthsParseExact:!0,weekdays:\"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi\".split(\"_\"),weekdaysShort:\"dim._lun._mar._mer._jeu._ven._sam.\".split(\"_\"),weekdaysMin:\"di_lu_ma_me_je_ve_sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Aujourd’hui à] LT\",nextDay:\"[Demain à] LT\",nextWeek:\"dddd [à] LT\",lastDay:\"[Hier à] LT\",lastWeek:\"dddd [dernier à] LT\",sameElse:\"L\"},relativeTime:{future:\"dans %s\",past:\"il y a %s\",s:\"quelques secondes\",ss:\"%d secondes\",m:\"une minute\",mm:\"%d minutes\",h:\"une heure\",hh:\"%d heures\",d:\"un jour\",dd:\"%d jours\",M:\"un mois\",MM:\"%d mois\",y:\"un an\",yy:\"%d ans\"},dayOfMonthOrdinalParse:/\\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case\"M\":case\"Q\":case\"D\":case\"DDD\":case\"d\":return e+(1===e?\"er\":\"e\");case\"w\":case\"W\":return e+(1===e?\"re\":\"e\")}},week:{dow:1,doy:4}})}(n(95093))},37998:(e,t,n)=>{\"use strict\";n.d(t,{$N:()=>f,Bs:()=>ee,E5:()=>Y,FS:()=>ne,G_:()=>L,HA:()=>I,HM:()=>b,Hc:()=>y,K8:()=>g,OL:()=>Z,Pr:()=>U,QS:()=>G,RS:()=>u,SA:()=>te,T8:()=>W,U0:()=>K,UH:()=>D,UQ:()=>v,Xh:()=>M,Xp:()=>X,ZT:()=>k,b5:()=>N,bL:()=>c,cn:()=>d,eJ:()=>h,er:()=>j,hP:()=>l,hb:()=>C,iR:()=>A,j:()=>J,k7:()=>O,lh:()=>F,lm:()=>Q,mR:()=>q,nT:()=>w,o2:()=>B,ok:()=>T,pL:()=>E,rO:()=>m,rT:()=>V,sE:()=>p,sy:()=>_,ty:()=>H,u2:()=>x,uZ:()=>s,w2:()=>i,w6:()=>R,wv:()=>z,xR:()=>P,xd:()=>S,yG:()=>$}),n(74423),n(25276),n(21699),n(42762);var r=n(79e3),o=n(17630),a=n(70380),i=(n(81970),[{headerName:r.A.t(\"LEVEL\"),field:\"level\",width:200},{headerName:r.A.t(\"SALES_HIERARCHY_CODE\"),field:\"salesHierarchyCode\",width:250},{headerName:r.A.t(\"SALES_HIERARCHY_NAME\"),field:\"salesHierarchyName\",width:250},{headerName:r.A.t(\"PARENT\"),field:\"parentName\",width:250},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:200}]),l=[{headerName:r.A.t(\"LEVEL\"),field:\"level_label_name\",width:300},{headerName:r.A.t(\"GEO_HIERARCHY_NAME\"),field:\"name\",width:300},{headerName:r.A.t(\"PARENT\"),field:\"parent_name\",width:300},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:300}],s=[{headerName:r.A.t(\"GEO_HIERARCHY\"),field:\"geohierarchyname\",width:300},{headerName:r.A.t(\"GEO_NAME_HERADER\"),field:\"name\",width:300},{headerName:r.A.t(\"PARENT\"),field:\"parentName\",width:300},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:300}],u=[{headerName:r.A.t(\"BUSINESS_UNIT\"),field:\"businessUnit\",width:200},{headerName:r.A.t(\"LEVEL\"),field:\"level\",width:120},{headerName:r.A.t(\"HQHIERARCHY_NAME\"),field:\"headQuartersName\",width:200},{headerName:r.A.t(\"PARENT\"),field:\"parent\",width:120},{headerName:r.A.t(\"GEO_HIERARCHY\"),field:\"geoHierarchy\",width:200},{headerName:r.A.t(\"SALES_HIERARCHY\"),field:\"salesHierarchy\",width:200},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:120}],c=[{headerName:r.A.t(\"HQ_HIERARCHY\"),field:\"hq_hierarchy_name\",width:150},{headerName:r.A.t(\"HQ_NAME\"),field:\"name\",width:150},{headerName:r.A.t(\"PARENT_HQ_NAME\"),field:\"parent_name\",width:140},{headerName:r.A.t(\"USER\"),field:\"user_name\",width:140},{headerName:r.A.t(\"MOBILE_NUMBER\"),field:\"mobile_number\",width:140},{headerName:r.A.t(\"COST_CENTER\"),field:\"cost_center\",width:140},{headerName:r.A.t(\"START_DATE\"),field:\"start_date\",width:140},{headerName:r.A.t(\"END_DATE\"),field:\"end_date\",width:140},{headerName:r.A.t(\"ALTERNATIVE_HQ\"),field:\"alternative_head_quarter_name\",width:140},{headerName:r.A.t(\"STATUS\"),field:\"status\",width:130,cellStyle:function(e){return\"Active\"===e.value?{color:o.T.activeGreen}:{color:o.T.dangerRed}}},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:120},{headerName:\"\",field:\"geo\",cellRenderer:\"EditActionComponent\",width:120}],d=[{headerName:r.A.t(\"FIRST_NAME\"),field:\"firstName\",width:200},{headerName:r.A.t(\"LAST_NAME\"),field:\"lastName\",width:200},{headerName:r.A.t(\"PHONE_NO\"),field:\"phoneNumber\",width:200},{headerName:r.A.t(\"MDO_STARTDATE\"),field:\"mdoStartDate\",width:180},{headerName:r.A.t(\"MDO_ENDDATE\"),field:\"mdoEndDate\",width:180},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"EditActionComponent\",width:140},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:140}],p=(r.A.t(\"MDO_HQ_LABEL_DOW\"),r.A.t(\"TMHQ_NAME\"),r.A.t(\"MDO_NAME_LABEL\"),r.A.t(\"MDO_HQ_START_DATE\"),r.A.t(\"MDOHQ_ENDDATE\"),[{headerName:r.A.t(\"NAME\"),field:\"name\",width:230,tooltipField:\"name\"},{headerName:r.A.t(\"USER_NAME\"),field:\"email\",width:230,tooltipField:\"email\"},{headerName:r.A.t(\"ROLE\"),field:\"role\",width:170,tooltipField:\"role\"},{headerName:r.A.t(\"START_DATE\"),field:\"startDate\",width:140},{headerName:r.A.t(\"END_DATE\"),field:\"endDate\",width:140},{headerName:r.A.t(\"STATUS\"),field:\"status\",width:130,cellStyle:function(e){return\"Active\"===e.value?{color:o.T.activeGreen}:{color:o.T.dangerRed}}},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:140}]),f=[{headerName:r.A.t(\"TARGET_FOR_LABEL\"),field:\"target_for\",width:150},{headerName:r.A.t(\"HQ_NAME_TARGET\"),field:\"hq_name\",width:150},{headerName:r.A.t(\"CROP\"),field:\"crop\",width:150},{headerName:r.A.t(\"EVENT_TYPE\"),field:\"event_type\",width:150},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120},{headerName:r.A.t(\"MONTH_LABEL\"),field:\"month\",width:120},{headerName:r.A.t(\"TARGET_HEADER\"),field:\"target\",width:120},{headerName:r.A.t(\"AVG_GROWERS\"),field:\"growers\",width:180},{headerName:r.A.t(\"NO_OF_GROWERS\"),field:\"total_growers\",width:150},{headerName:r.A.t(\"STATUS\"),field:\"status\",width:120},{headerName:r.A.t(\"PORTFOLIO_FIELD\"),field:\"portfolio_code\",width:120},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:120}],g=[{headerName:r.A.t(\"RETAILERS\"),field:\"retailers\",width:150},{headerName:r.A.t(\"RETAILER_SEGMENT\"),field:\"retailer_segment\",width:180}],h=[{headerName:r.A.t(\"MDO_HQ_LABEL\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"DISTRICT\"),field:\"district\",flex:1},{headerName:r.A.t(\"TALUKA\"),field:\"taluka\",flex:1},{headerName:r.A.t(\"OWNER_NAME\"),field:\"ownerName\",flex:1},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shopName\",width:150},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobileNumber\",flex:1},{headerName:r.A.t(\"APPROVAL_STATUS\"),field:\"status\",cellRenderer:\"RetailersListStatusComponent\",flex:1},{headerName:r.A.t(\"VERIFICATION_STATUS\"),field:\"status\",cellRenderer:\"VerificationStatusComponent\",width:1},{headerName:r.A.t(\"ACTIONS\"),field:\"details\",cellRenderer:\"ActionComponent\",flex:1},{headerName:\"\",field:\"editMobile\",cellRenderer:\"EditActionComponent\",width:200}],m=[{headerName:r.A.t(\"HQ_NAME\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"UPDATED_BY\"),field:\"updatedBy\",flex:1},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shopName\",flex:1},{headerName:r.A.t(\"OWNERNAME\"),field:\"ownerName\",flex:1},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobileNumber\",flex:1},{headerName:r.A.t(\"STATE\"),field:\"state\",flex:1},{headerName:r.A.t(\"DISTRICT\"),field:\"district\",flex:1},{headerName:r.A.t(\"TALUKA\"),field:\"taluka\",flex:1},{headerName:r.A.t(\"ACTIONS\"),field:\"editOrphanRetailer\",cellRenderer:\"EditActionComponent\",flex:1}],v=[{headerName:r.A.t(\"MDO_HQ\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"OWNERNAME\"),field:\"ownerName\",flex:1},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shopName\",flex:1},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobileNumber\",flex:1},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"RetailersListStatusComponent\",flex:1},{headerName:r.A.t(\"VERIFICATION_STATUS\"),field:\"verificationStatus\",cellRenderer:\"VerificationStatusComponent\",flex:1},{headerName:r.A.t(\"ONBOARDED_DATE\"),field:\"onboardedDate\",flex:1},{headerName:r.A.t(\"LAST_MODIFIED_DATE\"),field:\"lastModifiedDate\",flex:1},{headerName:r.A.t(\"ACTIONS\"),field:\"details\",cellRenderer:\"ActionComponent\",flex:1}],A=[{headerName:r.A.t(\"CONDUCTED_BY\"),field:\"conductedBy\",width:180},{headerName:r.A.t(\"HQ_NAME_TARGET\"),field:\"hqName\",width:180},{headerName:r.A.t(\"CROP\"),field:\"crop\",width:120},{headerName:r.A.t(\"EVENT_TYPES\"),field:\"eventType\",width:150},{headerName:r.A.t(\"EVENT_DATE\"),field:\"eventDateTime\",width:130},{headerName:r.A.t(\"VILLAGE\"),field:\"village\",width:120},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:120},{headerName:r.A.t(\"PORTFOLIO_FIELD\"),field:\"portfolioCode\",width:120},{headerName:r.A.t(\"STATUS\"),field:\"eventStatus\",cellStyle:function(e){return{color:\"Published\"===e.value?o.T.activeGreen:o.T.orange}},width:120}],y=[{headerName:r.A.t(\"RETAILERS\"),field:\"retailers\",width:120},{headerName:r.A.t(\"RETAILER_SEGMENT\"),field:\"retailer_segment\",width:180}],E=[{headerName:r.A.t(\"NOTIFICATION_REASON\"),field:\"reasonName\",width:600},{headerName:r.A.t(\"SUBSCRIPTION\"),field:\"subscription\",cellRenderer:\"EditActionComponent\",width:300},{headerName:\"\",field:\"action\",cellRenderer:\"EditActionComponent\",width:120}],b=[{headerName:r.A.t(\"SOHQ_NAME\"),field:\"sohq_name\",width:200},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shop_name\",width:200},{headerName:r.A.t(\"OWNERNAME\"),field:\"owner_name\",width:200},{headerName:r.A.t(\"MOBILE_NUMBER\"),field:\"mobile_number\",width:200},{headerName:r.A.t(\"PROVINCE\"),field:\"province\",width:200},{headerName:r.A.t(\"RETAILER_CATEGORY\"),field:\"retailer_category\",width:200}],_=[{headerName:r.A.t(\"SOHQ_NAME\"),field:\"sohq_name\",width:200},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shop_name\",width:200},{headerName:r.A.t(\"OWNERNAME\"),field:\"owner_name\",width:200},{headerName:r.A.t(\"MOBILE_NUMBER\"),field:\"mobile_number\",width:200},{headerName:r.A.t(\"RETAILER_SEGMENT\"),field:\"retailer_segment\",width:200},{headerName:r.A.t(\"PROVINCE\"),field:\"province\",width:200},{headerName:r.A.t(\"RETAILER_CATEGORY\"),field:\"retailer_category\",width:200}],C=[{headerName:r.A.t(\"FILE_NAME\"),field:\"fileName\",width:400},{headerName:r.A.t(\"UPLOADED_ON\"),field:\"uploadedOn\",width:400},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"EditActionComponent\",width:400}],w=[{headerName:r.A.t(\"FILE_NAME\"),field:\"fileName\",tooltipField:\"fileName\",flex:1},{headerName:r.A.t(\"UPLOADED_ON\"),field:\"uploadedOn\",flex:1,tooltipField:\"fileName\"},{headerName:r.A.t(\"UPLOADED_FOR\"),field:\"uploadedFor\",flex:1},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"MyUploadsEditActionComponent\",flex:1}],S=[{headerName:r.A.t(\"FILE_NAME\"),field:\"fileName\",width:400},{headerName:r.A.t(\"PROCESSED_ON\"),field:\"uploadedOn\",width:400},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"MyUploadsEditActionComponent\",width:400}],T=[{headerName:r.A.t(\"ERROR\"),field:\"errorType\",width:250,wrapText:!0,autoHeight:!0,resizable:!0},{headerName:r.A.t(\"FAILURE_REASON\"),field:\"failureReason\",width:500,wrapText:!0,autoHeight:!0,resizable:!0},{headerName:r.A.t(\"ROW_NUMBER\"),field:\"rowNumber\",width:150,wrapText:!0,autoHeight:!0,resizable:!0}],O=(r.A.t(\"FILE_NAME\"),r.A.t(\"LINE\"),r.A.t(\"ERROR\"),r.A.t(\"DATE_TIME\"),[{headerName:r.A.t(\"DMHQ_NAME\"),field:\"dmhqName\",width:150},{headerName:r.A.t(\"EVENT_MASTER_TYPE\"),field:\"eventMasterType\",width:180},{headerName:r.A.t(\"EVENT_TYPE\"),field:\"eventType\",width:140},{headerName:r.A.t(\"CONFIG_TYPE\"),field:\"configType\",width:140},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:100},{headerName:r.A.t(\"MONTH_LABEL\"),field:\"month\",width:140},{headerName:r.A.t(\"BASELINE_VALUE\"),field:\"baseLineValue\",width:150},{headerName:r.A.t(\"HASH_GROWERS\"),field:\"growers\",width:120},{headerName:r.A.t(\"HASH_RETAILERS\"),field:\"retailers\",width:120},{headerName:r.A.t(\"ROLE_NAME\"),field:\"role\",width:120},{headerName:r.A.t(\"PORTFOLIO\"),field:\"portfolioCode\",width:120},{headerName:\"\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:110},{headerName:\"\",field:\"delete\",cellRenderer:\"EditActionComponent\",width:110}]),D=[{headerName:r.A.t(\"TM_HQ\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:140,flex:1},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VOLUME\"),field:\"targetVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VALUE\"),field:\"targetValue\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES\"),field:\"actualVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VALUE\"),field:\"actualValue\",width:180,flex:1},{headerName:r.A.t(\"TARGET_STATUS\"),field:\"status\",width:140,flex:1}],R=[{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120,flex:1},{headerName:r.A.t(\"TM_HQ\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"MATERIAL_CODE\"),field:\"brand\",width:140,flex:1},{headerName:r.A.t(\"VARIETY_NAME\"),field:\"brand\",width:140,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VOLUME_KG\"),field:\"targetVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VALUE_MIO\"),field:\"targetValue\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES_KG\"),field:\"actualVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VALUE_MIO\"),field:\"actualValue\",width:180,flex:1}],N=[{headerName:r.A.t(\"MLP_NAME\"),field:\"mlpName\",flex:1},{headerName:r.A.t(\"BRANDS\"),field:\"brands\",width:140,flex:1},{headerName:r.A.t(\"START_DATE\"),field:\"startDate\",width:140,flex:1},{headerName:r.A.t(\"END_DATE\"),field:\"endDate\",width:180,flex:1},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"StatusComponent\",width:180,flex:1},{headerName:r.A.t(\"ACTIONS\"),cellRenderer:\"ActionComponent\",field:\"view\",flex:1}],L=[{key:\"name\",labelKey:\"MLP_NAME\"},{key:\"season\",labelKey:\"SEASON\"},{key:\"crop\",labelKey:\"CROP\"},{key:\"startDate\",labelKey:\"START_DATE\"},{key:\"endDate\",labelKey:\"END_DATE\"},{key:\"status\",labelKey:\"STATUS\",isStatus:!0}],P=[{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120,flex:1},{headerName:r.A.t(\"MDO_HQ_LABEL\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"MATERIAL_CODE\"),field:\"materialCode\",width:140,flex:1},{headerName:r.A.t(\"VARIETY_NAME\"),field:\"varietyName\",width:140,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VOLUME_KG\"),field:\"targetVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VALUE_MIO\"),field:\"targetValue\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES_KG\"),field:\"actualVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VALUE_MIO\"),field:\"actualValue\",width:160,flex:1}],M=[{headerName:r.A.t(\"MDO_HQ_LABEL\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:140,flex:1},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VOLUME\"),field:\"targetVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_TARGET_VALUE\"),field:\"targetValue\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES\"),field:\"actualVolume\",width:180,flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VALUE\"),field:\"actualValue\",width:160,flex:1},{headerName:r.A.t(\"TARGET_STATUS\"),field:\"status\",width:140,flex:1}],x=[{headerName:r.A.t(\"FILE_NAME\"),field:\"fileName\",width:400},{headerName:r.A.t(\"PROCESSED_ON\"),field:\"uploadedOn\",width:400},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"MyUploadsEditActionComponent\",width:400}],I=[{headerName:r.A.t(\"DISTRIBUTOR_CODE\"),field:\"distributor_code\",width:200},{headerName:r.A.t(\"DISTRIBUTOR_NAME\"),field:\"distributor_name\",width:200},{headerName:r.A.t(\"CP_CODE\"),field:\"gsap_code\",width:150},{headerName:r.A.t(\"SEEDS_CODE\"),field:\"fsap_code\",width:150}],k=[{headerName:r.A.t(\"PMIN_ID\"),field:\"demo_unique_id\",cellRenderer:\"ActionComponent\",width:180},{headerName:r.A.t(\"MATERIAL_DESCRIPTION\"),field:\"material_description\",width:180},{headerName:r.A.t(\"CROP\"),field:\"crop_name\",width:180},{headerName:r.A.t(\"DISTRIBUTOR_CODE_PMIN\"),field:\"pmin_distributor_code\",cellRenderer:\"PminDistributorNameCodeComponent\",wrapText:!0,autoHeight:!0,width:200,cellStyle:{display:\"flex\",alignItems:\"center\"}},{headerName:r.A.t(\"DISTRIBUTOR_CODE_SAKSHAM\"),field:\"saksham_distributor_code\",cellRenderer:\"SakshamDistributorNameCodeComponent\",wrapText:!0,autoHeight:!0,width:200,cellStyle:{display:\"flex\",alignItems:\"center\"}},{headerName:r.A.t(\"DEMO_PACKETS_PMIN\"),field:\"no_of_packets\",width:180},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"StatusComponent\",width:150}],B=[{headerName:r.A.t(\"PMIN_ID\"),field:\"demo_unique_id\",cellRenderer:\"ActionComponent\",width:200},{headerName:r.A.t(\"TMHQ\"),field:\"tm_hq_name\",width:200},{headerName:r.A.t(\"DISTRIBUTOR\"),field:\"distributor_name\",width:200},{headerName:r.A.t(\"CROP\"),field:\"crop_name\",width:200},{headerName:r.A.t(\"DISPATCHED_PACKETS\"),field:\"dispatched_packets\",width:200},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"StatusComponent\",width:200}],F=[{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:160},{headerName:r.A.t(\"SALES_ORDER_NUMBER\"),field:\"sales_order_number\",width:190},{headerName:r.A.t(\"TOTAL_FOC_ORDER_QTY\"),field:\"total_foc_order_qty\",width:230},{headerName:r.A.t(\"INVOICE_NUMBER\"),field:\"invoice_number\",width:140},{headerName:r.A.t(\"INVOICE_DATE\"),field:\"invoice_date\",width:150},{headerName:r.A.t(\"TOTAL_FOC_INVOICED_QTY\"),field:\"total_foc_invoiced_qty\",width:250}],j=[{headerName:r.A.t(\"MDO_HQ\"),field:\"mdoHqName\",width:140},{headerName:r.A.t(\"MDO_NAME\"),field:\"mdoUserName\",width:140},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobile\",width:140},{headerName:r.A.t(\"BRAND\"),field:\"brandName\",width:140},{headerName:r.A.t(\"CROP\"),field:\"cropName\",width:120},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:100},{headerName:r.A.t(\"LAID_DOWN_QTY\"),field:\"laidDownQty\",width:180},{headerName:r.A.t(\"DEMO_LAID_DOWN_COUNT\"),field:\"laidDownCount\",width:180},{headerName:r.A.t(\"DEMO_LAID_DOWN_PLOT_SHOWCASING\"),field:\"laidDownPlotShowcasing\",width:200},{headerName:r.A.t(\"GROWERS_ATTENDED_SHOWCASE_COUNT\"),field:\"growerAttendedShowcasingCount\",width:220}],H=[{headerName:r.A.t(\"TM_HQ\"),field:\"tmHqName\",width:140},{headerName:r.A.t(\"TM_NAME\"),field:\"tmUserName\",width:140},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobile\",width:140},{headerName:r.A.t(\"BRAND\"),field:\"brandName\",width:140},{headerName:r.A.t(\"CROP\"),field:\"cropName\",width:120},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:100},{headerName:r.A.t(\"TOTAL_FOC_ORDER_QTY\"),field:\"focOrderQuantity\",width:200},{headerName:r.A.t(\"TOTAL_FOC_INVOICED_QTY\"),field:\"focInvoiceQuantity\",width:200},{headerName:r.A.t(\"LAID_DOWN_QTY\"),field:\"laidDownQty\",width:180},{headerName:r.A.t(\"DEMO_LAID_DOWN_COUNT\"),field:\"laidDownCount\",width:180},{headerName:r.A.t(\"DEMO_LAID_DOWN_PLOT_SHOWCASING\"),field:\"laidDownPlotShowcasing\",width:200},{headerName:r.A.t(\"GROWERS_ATTENDED_SHOWCASE_COUNT\"),field:\"growerAttendedShowcasingCount\",width:220}],U=[{headerName:r.A.t(\"DIVISION\"),field:\"division\",width:120},{headerName:r.A.t(\"BM_NAME\"),field:\"bmName\",width:140},{headerName:r.A.t(\"TM_NAME\"),field:\"tmName\",width:140},{headerName:r.A.t(\"DISTRIBUTOR_NAME\"),field:\"distributorName\",width:160},{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:100},{headerName:r.A.t(\"DISTRIBUTOR_BP_ID\"),field:\"distributorBpId\",width:140},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:140},{headerName:r.A.t(\"TOTAL_FOC_ORDER_QTY\"),field:\"totalFocOrderQty\",width:220},{headerName:r.A.t(\"TOTAL_FOC_INVOICED_QTY\"),field:\"totalFocInvoicedQty\",width:220},{headerName:r.A.t(\"ACTIONS\"),field:\"action\",colId:\"details\",width:100,cellRenderer:\"DetailsActionComponent\"}],Y=[{headerName:r.A.t(\"YEAR_LABEL\"),field:\"year\",width:120,valueFormatter:function(e){var t=e.value;return null!=t?t:\"N/A\"}},{headerName:r.A.t(\"BRAND\"),field:\"brand\",width:160,valueFormatter:function(e){var t=e.value;return null!=t?t:\"N/A\"}},{headerName:r.A.t(\"SALES_ORDER_NUMBER\"),field:\"salesOrderNumber\",width:190,valueFormatter:function(e){var t=e.value;return null!=t?t:\"N/A\"}},{headerName:r.A.t(\"TOTAL_FOC_ORDER_QTY\"),field:\"totalFocOrderQty\",width:230,valueFormatter:function(e){var t=e.value;return null!=t?t:\"N/A\"}},{headerName:r.A.t(\"INVOICE_NUMBER\"),field:\"invoiceNumber\",width:140,valueFormatter:function(e){var t=e.value;return null==t||\"\"===String(t).trim()||\"N/A\"===String(t).trim().toUpperCase()?\"N/A\":\"#\".concat(t)}},{headerName:r.A.t(\"INVOICE_DATE\"),field:\"invoiceDate\",width:150,valueFormatter:function(e){var t=e.value;if(null==t||\"\"===String(t).trim()||\"N/A\"===String(t).trim().toUpperCase())return\"N/A\";var n=String(t).trim(),r=n.includes(\"/\")?\"DD/MM/YYYY\":n.includes(\"-\")&&2===n.indexOf(\"-\")?\"DD-MM-YYYY\":\"YYYY-MM-DD\",o=(0,a.Yq)(n,\"DD-MM-YYYY\",r);return o&&\"Invalid date\"!==o?o:n}},{headerName:r.A.t(\"TOTAL_FOC_INVOICED_QTY\"),field:\"totalFocInvoicedQty\",width:250,valueFormatter:function(e){var t=e.value;return null!=t?t:\"N/A\"}}],G=(r.A.t(\"SHOP_NAME\"),r.A.t(\"PHONE_NO\"),r.A.t(\"PLANNED_VALUE_IN_LAKHS\"),r.A.t(\"ACTUAL_VALUE_LABEL\"),r.A.t(\"ACHIEVEMENT\"),r.A.t(\"STATUS\"),r.A.t(\"ACTIONS\"),[{headerName:r.A.t(\"GROWER_NAME\"),field:\"grower_name\",flex:1},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobile_number\",flex:1},{headerName:r.A.t(\"NO_OF_PACKETS\"),field:\"assigned_packets\",flex:1},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"StatusComponent\",width:300},{headerName:r.A.t(\"ACTIONS\"),cellRenderer:\"ActionComponent\",field:\"view\",flex:1}]),z=[{headerName:r.A.t(\"TMHQ\"),headerValue:\"tm_hq_name\",width:200},{headerName:r.A.t(\"MDOHQ\"),headerValue:\"mdo_hq_name\",width:200},{headerName:r.A.t(\"DISPATCHED_PACKETS\"),headerValue:\"dispatched_packets\",width:150},{headerName:r.A.t(\"STATUS\"),headerValue:\"status\",cellRenderer:\"StatusComponent\",width:150}],V=[{headerName:r.A.t(\"MDO_HQ_LABEL_DOW\"),headerValue:\"hQName\",field:\"hQName\",flex:1},{headerName:r.A.t(\"MDO_NAME_LABEL\"),headerValue:\"name\",field:\"name\",flex:1},{headerName:r.A.t(\"ASSIGNMENT_START_DATE\"),field:\"startDate\",headerValue:\"startDate\",flex:1},{headerName:r.A.t(\"ASSIGNMENT_END_DATE\"),field:\"endDate\",headerValue:\"endDate\",flex:1},{headerName:r.A.t(\"TM_HQ_NAME\"),field:\"parentHqName\",headerValue:\"parentHqName\",flex:1}],q=[{headerName:r.A.t(\"TM_HQ_NAME\"),field:\"hQName\",headerValue:\"hqName\",flex:1},{headerName:r.A.t(\"TM_NAME\"),field:\"name\",headerValue:\"name\",flex:1},{headerName:r.A.t(\"ASSIGNMENT_START_DATE\"),field:\"startDate\",headerValue:\"startDate\",flex:1},{headerName:r.A.t(\"ASSIGNMENT_END_DATE\"),field:\"endDate\",headerValue:\"endDate\",flex:1},{headerName:r.A.t(\"BM_HQ_NAME\"),field:\"parentHqName\",headerValue:\"parentHqName\",flex:1}],W=(r.A.t(\"TM_NAME\"),r.A.t(\"STATUS\"),o.w.palette.text.secondary,o.w.palette.success.light,r.A.t(\"PRESENT\"),r.A.t(\"LEAVE\"),o.w.palette.info.contrastText,r.A.t(\"NOT_MARKED\"),[{key:\"growerName\",color:\"\",type:\"\",title:\"\"},{key:\"mobileNo\",color:\"\",type:\"\",title:\"\"},{key:\"numberOfPackets\",color:\"\",type:\"\",title:\"\"},{key:\"distributionStatus\",color:function(e){return\"NOT_STARTED\"===e?o.w.palette.info.contrastText:\"IN_PROGRESS\"===e||\"COMPLETED\"===e?o.w.palette.success.light:\"\"},type:\"\"}]),Q=[{key:\"tm_hq_name\",color:o.w.palette.text.secondary,type:\"\"},{key:\"mdo_hq_name\",color:o.w.palette.text.secondary,type:\"\"},{key:\"dispatched_packets\",color:o.w.palette.text.secondary,type:\"\"},{key:\"status\",color:function(e){return\"IN_PROGRESS\"===e?o.T.orange:\"COMPLETED\"===e?o.T.activeGreen:\"Not Started\"===e||\"DISPATCHED\"===e?o.T.orange:\"CREATED\"===e?o.T.mainBlue:\"\"},type:\"expand\"}],K=[{headerName:r.A.t(\"YEAR_SHARE\"),field:\"year\",width:300},{headerName:r.A.t(\"ROLE\"),field:\"sales_hierarchy_code\",width:300},{headerName:r.A.t(\"CONFIGURATION_NAME\"),field:\"field_name\",width:300},{headerName:r.A.t(\"START_DATE\"),field:\"from_date\",width:300},{headerName:r.A.t(\"END_DATE\"),field:\"to_date\",width:300},{headerName:\"Actions\",field:\"edit\",cellRenderer:\"SOWConfigEditActionComponent\",width:120}],$=(r.A.t(\"SHOP_NAME\"),r.A.t(\"MDO_HQ\"),r.A.t(\"PORTFOLIO\"),r.A.t(\"PHONE_NO\"),r.A.t(\"PLANNED_VALUE_IN_LAKHS\"),r.A.t(\"ACTUAL_VALUE_LABEL\"),r.A.t(\"ACHIEVEMENT\"),r.A.t(\"STATUS\"),r.A.t(\"ACTIONS\"),r.A.t(\"BRAND_NAME\"),r.A.t(\"PLANNED_VALUE_IN_LAKHS\"),r.A.t(\"ACTIONS\"),r.A.t(\"ACTUAL_VOLUME_IN_KG\"),r.A.t(\"LIQUIDATION_PERCENTAGE\"),[{headerName:r.A.t(\"PORTFOLIO\"),field:\"portfolio_code\",width:300},{headerName:r.A.t(\"DM_HQ\"),field:\"head_quarter_Names\",width:300},{headerName:r.A.t(\"SELECT_DISPLAY_BRAND_CATEGORY\"),field:\"display_brand_category_Names\",width:300},{headerName:r.A.t(\"SELECT_PERCENTAGE_BRAND_CATEGORY\"),field:\"percentage_brand_category_Names\",width:300}]),X=[{headerName:r.A.t(\"HEAD_QUARTER\"),field:\"hq_name\",width:250},{headerName:r.A.t(\"CREATED_BY\"),field:\"hq_user_name\",width:250},{headerName:r.A.t(\"EVENT_TYPE\"),field:\"event_type_name\",width:250},{headerName:r.A.t(\"EVENT_CODE\"),field:\"event_code\",width:250},{headerName:r.A.t(\"EVENT_DATE\"),field:\"event_date_time\"},{headerName:r.A.t(\"VILLAGE\"),field:\"geo_data_name\",width:250},{headerName:\"Actions\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:120}],J=[{headerName:r.A.t(\"BRAND_NAME\"),field:\"brandName\",flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES\"),field:\"quantity\",flex:1}],Z=[{headerName:r.A.t(\"MDOHQ\"),field:\"mdoHqName\",flex:1},{headerName:r.A.t(\"BRAND_NAME\"),field:\"brandName\",flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES\"),field:\"quantity\",flex:1},{headerName:\"\",field:\"details\",cellRenderer:\"ActionComponent\",flex:1}],ee=[{headerName:r.A.t(\"RETAILER\"),field:\"retailerName\",flex:1},{headerName:r.A.t(\"BRAND_NAME\"),field:\"brandName\",flex:1},{headerName:r.A.t(\"TOTAL_ACTUAL_VOLUMES\"),field:\"quantity\",flex:1}],te=[{headerName:r.A.t(\"TMHQ\"),field:\"actions\",cellRenderer:\"TMHQCheckBoxComponent\",flex:1},{headerName:r.A.t(\"MDOHQ\"),field:\"hqName\",flex:1},{headerName:r.A.t(\"PORTFOLIO\"),field:\"portfolio\",flex:1},{headerName:r.A.t(\"TALUKA\"),field:\"taluka\",flex:1},{headerName:r.A.t(\"OWNER_NAME\"),field:\"ownerName\",flex:1},{headerName:r.A.t(\"SHOP_NAME\"),field:\"shopName\",flex:1},{headerName:r.A.t(\"MOBILE_NO\"),field:\"mobileNumber\",flex:1},{headerName:r.A.t(\"ACTIONS\"),field:\"actions\",cellRenderer:\"DetailsActionComponent\",flex:1}],ne=[{headerName:r.A.t(\"FILE_NAME\"),field:\"fileName\",width:400},{headerName:r.A.t(\"DOWNLOADED_ON\"),field:\"downloadedOn\",width:400},{headerName:r.A.t(\"STATUS\"),field:\"status\",cellRenderer:\"MyDownloadsActionComponent\",width:400}];r.A.t(\"MLP_CODE\"),r.A.t(\"MLP_NAME\"),r.A.t(\"SEASON\"),r.A.t(\"CROP\"),r.A.t(\"START_DATE\"),r.A.t(\"END_DATE\"),r.A.t(\"STATUS\"),r.A.t(\"APPROVED_BY\"),r.A.t(\"PREVIOUS_YEAR\"),r.A.t(\"CURRENT_YEAR_ACTUAL\"),r.A.t(\"NEXT_YEAR_ESTIMATE\"),r.A.t(\"MDOHQ_NAME\"),r.A.t(\"MDO_NAME\"),r.A.t(\"LAST_YEAR_MAN_MONTHS\"),r.A.t(\"CURRENT_YEAR_MAN_MONTHS\"),r.A.t(\"NEXT_YEAR_MAN_MONTHS_PROPOSAL\"),r.A.t(\"PREVIOUS_YEAR_ACTUAL_NET_SALES\"),r.A.t(\"CURRENT_YEAR_SALES_PLAN\"),r.A.t(\"CURRENT_YEAR_ACTUAL_NET_SALES\"),r.A.t(\"GROWTH_OVER_LAST_YEAR\"),r.A.t(\"NEXT_YEAR_SALES_PLAN\"),r.A.t(\"AGRONOMY_RECOMMENDATION\"),r.A.t(\"FOCUSED_HYBRID\"),r.A.t(\"TOTAL_SALES_MT_CY\"),r.A.t(\"MAJOR_HYBRID_NAME\")},38086:(e,t,n)=>{\"use strict\";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,{A:()=>r})},38120:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=u(n(81970)),a=n(34999),i=u(n(11441)),l=u(n(41327)),s=n(29445);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=(0,s.canUseDOM)()&&n(22386),y=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&g(e,t)}(E,e);var t,n,u,d,y=(u=E,d=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=m(u);if(d){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===r(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return h(e)}(this,e)});function E(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,E),v(h(t=y.call(this,e)),\"innerSliderRefHandler\",function(e){return t.innerSlider=e}),v(h(t),\"slickPrev\",function(){return t.innerSlider.slickPrev()}),v(h(t),\"slickNext\",function(){return t.innerSlider.slickNext()}),v(h(t),\"slickGoTo\",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)}),v(h(t),\"slickPause\",function(){return t.innerSlider.pause(\"paused\")}),v(h(t),\"slickPlay\",function(){return t.innerSlider.autoPlay(\"play\")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=E,(n=[{key:\"media\",value:function(e,t){A.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:\"componentDidMount\",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,s.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,s.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:\"componentWillUnmount\",value:function(){this._responsiveMediaHandlers.forEach(function(e){A.unregister(e.query,e.handler)})}},{key:\"render\",value:function(){var e,t,n=this;(e=this.state.breakpoint?\"unslick\"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?\"unslick\":p(p(p({},l.default),this.props),t[0].settings):p(p({},l.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=o.default.Children.toArray(this.props.children);r=r.filter(function(e){return\"string\"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn(\"variableWidth is not supported in case of rows > 1 or slidesPerRow > 1\"),e.variableWidth=!1);for(var i=[],s=null,u=0;u<r.length;u+=e.rows*e.slidesPerRow){for(var d=[],f=u;f<u+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var g=[],h=f;h<f+e.slidesPerRow&&(e.variableWidth&&r[h].props.style&&(s=r[h].props.style.width),!(h>=r.length));h+=1)g.push(o.default.cloneElement(r[h],{key:100*u+10*f+h,tabIndex:-1,style:{width:\"\".concat(100/e.slidesPerRow,\"%\"),display:\"inline-block\"}}));d.push(o.default.createElement(\"div\",{key:10*u+f},g))}e.variableWidth?i.push(o.default.createElement(\"div\",{key:u,style:{width:s}},d)):i.push(o.default.createElement(\"div\",{key:u},d))}if(\"unslick\"===e){var m=\"regular slider \"+(this.props.className||\"\");return o.default.createElement(\"div\",{className:m},r)}return i.length<=e.slidesToShow&&(e.unslick=!0),o.default.createElement(a.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}])&&f(t.prototype,n),Object.defineProperty(t,\"prototype\",{writable:!1}),E}(o.default.Component);t.default=y},38293:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>z}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(62062),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(25440),n(62953);var r,o,a,i=n(28161),l=n(14073),s=n(60538),u=n(80663),c=n(81970),d=n.n(c),p=n(8085),f=n(96348),g=n(27305),h=n(47225),m=n(92416),v=n(64121),A=(n(3362),n(95692)),y=function(e){return new Promise(function(t,n){var r;null===(r=A.N.get(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})},E=(n(67945),n(52811),n(17437)),b=n(8676),_=n(51545),C=n(17630),w=(0,E.i7)(r||(o=[\"\\n0% {\\n  opacity: 0;\\n}\\n30% {\\n  opacity: 0.1;\\n}\\n50% {\\n  opacity: 0.3;\\n}\\n75% {\\n  opacity: 0.5;\\n}\\n90% {\\n  opacity: 0.8;\\n}\\n100% {\\n  opacity: 1;\\n},\"],a||(a=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}})))),S=(0,b.A)(_.A)(function(e){return e.theme,{animation:\"\".concat(w,\" 1s  cubic-bezier(0, -0.26, 0.96, 0.64)\"),background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .Smart-agro-lite-event-details-wrapper\":{height:\"70%\",overflowY:\"auto\",marginBottom:\"16px\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiAccordionSummary-root\":{padding:\"8px 16px !important\"},\"& .MuiButtonBase-root.MuiAccordionSummary-root\":{flexDirection:\"inherit !important\",\"& .MuiTypography-root\":{color:C.T.primaryBlack,fontSize:\"16px\",fontWeight:\"700\"},\"& .accordian-icon\":{color:C.T.secondaryTextColor}},\"& .MuiPaper-root\":{padding:\"16px  !important\"},\"& .smart-agro-lite-box-conatiner\":{minHeight:\"280px\",width:\"100%\",padding:\"8px\"}},\"& .MuiAccordionSummary-root\":{flexDirection:\"inherit !important\"},\"& .MuiAccordionDetails-root\":{padding:\"16px !important\",\"& .MuiTypography-root\":{fontSize:\"16px\",fontWeight:\"500\",color:C.T.primaryBlack}}}}),T=(0,b.A)(_.A)(function(e){return e.theme,{\"& .MuiFormControlLabel-root\":{width:\"150px\"}}}),O=(n(45700),n(2008),n(48980),n(51629),n(74423),n(72712),n(15086),n(89572),n(2892),n(69085),n(84185),n(5506),n(79432),n(16034),n(21699),n(23500),n(90815)),D=n(34195),R=n(11729),N=n(99478),L=n(13075),P=n(15664),M=n(10901);function x(e){return x=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},x(e)}function I(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=x(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==x(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||B(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function B(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=function(e){var t,n,r,o,a,s=e.roleData,u=e.portfolioData,f=e.hasCreateAccess,g=e.hasUpdateAccess,m=(0,c.useContext)(h.v),v=m.BackOfficeProps,E=v.globalStore.User,b=v.baseurl,_=m.triggerToastMsg,C=m.triggerShowLoader,w=null===(t=E.selectedCountry)||void 0===t?void 0:t.countryCode,S=b,x=null!==(n=null==E?void 0:E.AccessToken)&&void 0!==n?n:\"\",j=null==E||null===(r=E.selectedBusinessUnit)||void 0===r?void 0:r.bu_id,H=null==E||null===(o=E.selectedApplication)||void 0===o?void 0:o.country_app_id,U=null==E||null===(a=E.UserDetails)||void 0===a?void 0:a.email_id,Y=k((0,c.useState)([]),2),G=Y[0],z=Y[1],V=k((0,c.useState)(!1),2),q=V[0],W=V[1],Q=k((0,c.useState)(null),2),K=Q[0],$=Q[1],X=(0,D.Bd)().t;(0,c.useEffect)(function(){Z()},[s,u]);var J=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={};return n.domain=S,n.endPoint=p.p.GET_DEFAULT_DATA.replace(\"__COUNTRY_APP_ID__\",String(H)),n.customHeaders={\"country-code\":w,Authorization:\"Bearer \".concat(x)},n.triggerLoader=C,null===(e=y(n))||void 0===e?void 0:e.then(function(e){if((0,L.mN)(e)){var n,r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.entries(e).map(function(e){var n=k(e,2);return{moduleName:n[0],permission:n[1].map(function(e){return{accessName:e,isChecked:!t}})}})}(null==e||null===(n=e.data)||void 0===n?void 0:n.authorization_data),o=function(e,t){return e.map(function(e){return t.length>0&&t.forEach(function(t){t.moduleName===e.moduleName&&function(e,t){var n;null==e||null===(n=e.permission)||void 0===n||n.map(function(e){t.permission.includes(e.accessName)?e.isChecked=!0:e.isChecked=!1})}(e,t)}),e})}(r,t);z(o)}throw new Error(e.errorMessage)}).catch(function(e){console.log(e)})},Z=function(){var e,t,n={},r=(0,R.A)({baseUrl:S,endpointUrl:p.p.GET_ROLE_DATA,params:{role_id:null==s?void 0:s.id,portfolio_id:null!==(e=null==u?void 0:u.id)&&void 0!==e?e:null,bu_id:j,country_app_id:H}});return n.customHeaders={Authorization:\"Bearer \".concat(x)},n.endPoint=r,n.triggerLoader=C,null===(t=y(n))||void 0===t?void 0:t.then(function(e){if(200===e.status||201===e.status){var t,n;W(!0);var r=Object.entries(null==e||null===(t=e.data)||void 0===t?void 0:t.authorization_data).map(function(e){var t=k(e,2);return{moduleName:t[0],permission:t[1]}});return $(null==e||null===(n=e.data)||void 0===n?void 0:n.role_authorization_id),J(r)}return W(!1),J()}).catch(function(e){console.log(e)})},ee=function(e){return e.length>0&&e.map(function(e){if(e.permission.filter(function(e){return e.isChecked}).length>0)return I({},\"\".concat(e.moduleName),e.permission.filter(function(e){return e.isChecked}).map(function(e){return e.accessName}))}).filter(Boolean).reduce(function(e,t){return Object.assign(e,I({},\"\".concat(Object.keys(t)),Object.values(t)[0]))},{})},te=function(e,t){var n,r=function(e){if(Array.isArray(e))return F(e)}(n=G)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(n)||B(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}();r=function(e,t,n){return e.map(function(e){return e.moduleName===t.moduleName&&e.permission.map(function(t){var r=function(e){var t,n=[\"UPDATE\",\"CREATE\"];return null===(t=e.permission.filter(function(e){return null==n?void 0:n.includes(e.accessName)}))||void 0===t?void 0:t.some(function(e){return!e.isChecked})}(e);n!==N.g2.READ&&r&&t.accessName===N.g2.READ?t.isChecked=!0:t.accessName===n&&(t.isChecked=!t.isChecked)}),e})}(r,e,t),r=function(e,t,n){return e.map(function(e){return e.moduleName===t.moduleName&&e.permission.map(function(t){n===N.g2.READ&&function(e){return e.permission.findIndex(function(e){return e.accessName===N.g2.READ&&!e.isChecked})}(e)>-1&&(t.accessName!==N.g2.CREATE&&t.accessName!==N.g2.UPDATE||(t.isChecked=!1))}),e})}(r,e,t),z(r)};return d().createElement(T,{className:\"event-details-items-wrapper\"},G.map(function(e){var t,n;return d().createElement(O.A,{flexDirection:\"row\",justifyContent:\"start\",alignItems:\"center\",ml:3,key:e.moduleName},d().createElement(i.A,{width:\"30%\"},d().createElement(l.A,null,e.moduleName)),d().createElement(i.A,null,d().createElement(O.A,{flexDirection:\"row\",justifyContent:\"start\",gap:2},(null==e||null===(t=e.permission)||void 0===t?void 0:t.length)>0&&(null==e||null===(n=e.permission)||void 0===n?void 0:n.map(function(t){return d().createElement(M.A,{isChecked:t.isChecked,value:t.accessName,onCheckboxChange:function(t){te(e,String(t))},label:t.accessName,key:t.accessName})})))))}),d().createElement(O.A,{flexDirection:\"row\",alignItems:\"center\",justifyContent:\"end\",mt:2,p:2},d().createElement(P.A,{buttonName:X(q?\"UPDATE\":\"SAVE\"),fullwidth:!1,type:\"submit\",variant:\"contained\",onButtonClick:function(){var e,t,n,r;q?function(){var e,t={};t.domain=S,t.endPoint=p.p.UPDATE_RBAC_DATA,t.customHeaders={\"user-email-id\":\"\",Authorization:\"Bearer \".concat(x)},t.payLoad={authorization_data:ee(G)};var n,r=(0,R.A)({baseUrl:S,endpointUrl:p.p.UPDATE_RBAC_DATA,params:{role_authorization_id:K}});t.endPoint=r,t.triggerLoader=C,null===(n=t,e=new Promise(function(e,t){var r;null===(r=A.N.put(n))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===e||e.then(function(e){var t;if(201===e.status||200===e.status)return Z(),void _({message:X(\"PERMISSIONS_UPDATED\"),type:\"success\"});throw _({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){})}():((r={}).domain=S,r.endPoint=p.p.SAVE_RBAC_DATA,r.customHeaders={\"user-email-id\":U,Authorization:\"Bearer \".concat(x)},r.payLoad={role_type_id:3,role_id:s.id,role_code:s.code,role_name:s.label,portfolio_id:null!==(e=null==u?void 0:u.id)&&void 0!==e?e:null,country_app_id:H,bu_id:j,authorization_data:ee(G)},r.triggerLoader=C,null===(n=r,t=new Promise(function(e,t){var r;null===(r=A.N.post(n))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===t||t.then(function(e){var t;if(201===e.status||200===e.status)return Z(),void _({message:X(\"PERMISSIONS_SAVED\"),type:\"success\"});throw _({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){}))},disabled:q?g:f})))};const H=d().memo(j);var U=n(32027);function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const z=function(e){var t,n,r,o=e.RBACControls,a=(0,g.w)(o),A=a.hasCreateAccess,E=a.hasUpdateAccess,b=(0,c.useContext)(h.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,T=b.triggerShowLoader,O=null===(t=C.selectedCountry)||void 0===t?void 0:t.countryCode,D=w,R=null!==(n=null==C?void 0:C.AccessToken)&&void 0!==n?n:\"\",N=null==C||null===(r=C.selectedBusinessUnit)||void 0===r?void 0:r.bu_id,L=null==C?void 0:C.selectedBusinessUnit,P=(0,U.i)(C).hasShowPortfolio,M=Y((0,c.useState)([]),2),x=M[0],I=M[1],k=Y((0,c.useState)([]),2),B=k[0],F=k[1],j=Y((0,c.useState)(),2),G=j[0],z=j[1],V=Y((0,c.useState)(),2),q=V[0],W=V[1];(0,c.useEffect)(function(){Q(),P&&K()},[]);var Q=function(){var e={};return e.domain=D,e.endPoint=p.p.GET_USER_ROLES,e.customHeaders={\"country-code\":O,\"bu-id \":N,Authorization:\"Bearer \".concat(R)},e.triggerLoader=T,y(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t||null===(t=t.sales_hierarchy_view_List)||void 0===t?void 0:t.map(function(e){return{id:e.id,label:null==e?void 0:e.name,code:null==e?void 0:e.code}});I(n),z(n[0])}else I([])}).catch(function(e){console.log(\"fetch user roles\",e)})},K=function(){var e={};return e.domain=D,e.endPoint=p.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==L?void 0:L.bu_code),e.customHeaders={\"country-code\":O,\"bu-id \":N,Authorization:\"Bearer \".concat(R)},e.triggerLoader=T,y(e).then(function(e){if(201===e.status||200===e.status){var t,n=null==e||null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.map(function(e){return{id:e.id,label:null==e?void 0:e.name,code:null==e?void 0:e.code}});F(n),W(n[0])}else F([])}).catch(function(e){console.log(\"fetch portfolio list\",e)})};return d().createElement(S,null,d().createElement(u.A,{flexDirection:\"row\",justifyContent:\"space-between\",mb:2},d().createElement(m.A,{routePathName:[{name:f.F_.UserManagement,path:f.fp.UserManagement},{name:f.F_.RBAC,path:f.fp.RBAC}]})),d().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},d().createElement(i.A,{mb:1,width:\"25%\"},d().createElement(l.A,{variant:\"subtitle2\"},\"User Role\"),d().createElement(v.A,{name:\"userRole\",onChange:function(e,t){z(t)},options:x,labelKey:\"label\",label:\"UserRole\",selectedOption:G,value:G,defaultLabel:\"Select Role\"})),P&&d().createElement(i.A,{mb:1,width:\"25%\"},d().createElement(l.A,{variant:\"subtitle2\"},\"Portfolio\"),d().createElement(v.A,{name:\"portfolio\",onChange:function(e,t){W(t)},options:B,labelKey:\"label\",label:\"portfolio\",selectedOption:q,value:q,defaultLabel:\"Select Portfolio\"}))),d().createElement(i.A,{className:\"Smart-agro-lite-event-details-wrapper\"},d().createElement(s.A,{elevation:1},d().createElement(i.A,{className:\"event-details-items-wrapper\"},d().createElement(l.A,{variant:\"subtitle1\",fontSize:20,ml:2.7,mb:2},\"Permissions\"),G&&d().createElement(H,{hasCreateAccess:!A,hasUpdateAccess:!E,roleData:G,portfolioData:q})))))}},38309:(e,t,n)=>{\"use strict\";n(24359)},38386:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>s});var r=n(81970),o=n.n(r),a=n(37998),i=n(29148),l=n(48041);const s=function(){return o().createElement(l.A,{useTableData:i.i,columnDefs:a.j,hasActionComponent:!1,viewType:\"summary\"})}},38413:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(31609);function o(e,t,n=\"Mui\"){const o={};return t.forEach(t=>{o[t]=(0,r.Ay)(e,t,n)}),o}},38480:(e,t,n)=>{\"use strict\";var r=n(61828),o=n(88727).concat(\"length\",\"prototype\");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},38781:(e,t,n)=>{\"use strict\";var r=n(10350).PROPER,o=n(36840),a=n(28551),i=n(655),l=n(79039),s=n(61034),u=\"toString\",c=RegExp.prototype,d=c[u],p=l(function(){return\"/a/b\"!==d.call({source:\"a\",flags:\"b\"})}),f=r&&d.name!==u;(p||f)&&o(c,u,function(){var e=a(this);return\"/\"+i(e.source)+\"/\"+i(s(e))},{unsafe:!0})},38859:(e,t,n)=>{var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},39118:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z\"}),\"KeyboardArrowUp\")},39297:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(48981),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},39433:(e,t,n)=>{\"use strict\";var r=n(44576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},39468:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f34831f690384fdef1b.svg\"},39519:(e,t,n)=>{\"use strict\";var r,o,a=n(44576),i=n(82839),l=a.process,s=a.Deno,u=l&&l.versions||s&&s.version,c=u&&u.v8;c&&(o=(r=c.split(\".\"))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\\/(\\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\\/(\\d+)/))&&(o=+r[1]),e.exports=o},39599:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u});var r=n(58168),o=n(98587),a=n(11317),i=n(94188);const l=[\"sx\"],s=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function u(e){const{sx:t}=e,n=(0,o.A)(e,l),{systemProps:i,otherProps:u}=s(n);let c;return c=Array.isArray(t)?[i,...t]:\"function\"==typeof t?(...e)=>{const n=t(...e);return(0,a.Q)(n)?(0,r.A)({},i,n):i}:(0,r.A)({},i,t),(0,r.A)({},u,{sx:c})}},39738:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>S});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(25669),u=n(11848),c=n(38413),d=n(31609);function p(e){return(0,d.Ay)(\"MuiStepper\",e)}(0,c.A)(\"MuiStepper\",[\"root\",\"horizontal\",\"vertical\",\"nonLinear\",\"alternativeLabel\"]);var f=n(28466),g=n(98624),h=n(91382);function m(e){return(0,d.Ay)(\"MuiStepConnector\",e)}(0,c.A)(\"MuiStepConnector\",[\"root\",\"horizontal\",\"vertical\",\"alternativeLabel\",\"active\",\"completed\",\"disabled\",\"line\",\"lineHorizontal\",\"lineVertical\"]);var v=n(74848);const A=[\"className\"],y=(0,u.Ay)(\"div\",{name:\"MuiStepConnector\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>(0,o.A)({flex:\"1 1 auto\"},\"vertical\"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:\"absolute\",top:12,left:\"calc(-50% + 20px)\",right:\"calc(50% + 20px)\"})),E=(0,u.Ay)(\"span\",{name:\"MuiStepConnector\",slot:\"Line\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,f.A)(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=\"light\"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,o.A)({display:\"block\",borderColor:t.vars?t.vars.palette.StepConnector.border:n},\"horizontal\"===e.orientation&&{borderTopStyle:\"solid\",borderTopWidth:1},\"vertical\"===e.orientation&&{borderLeftStyle:\"solid\",borderLeftWidth:1,minHeight:24})}),b=a.forwardRef(function(e,t){const n=(0,s.b)({props:e,name:\"MuiStepConnector\"}),{className:u}=n,c=(0,r.A)(n,A),{alternativeLabel:d,orientation:p=\"horizontal\"}=a.useContext(g.A),{active:b,disabled:_,completed:C}=a.useContext(h.A),w=(0,o.A)({},n,{alternativeLabel:d,orientation:p,active:b,completed:C,disabled:_}),S=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:[\"root\",n,r&&\"alternativeLabel\",o&&\"active\",a&&\"completed\",i&&\"disabled\"],line:[\"line\",`line${(0,f.A)(n)}`]};return(0,l.A)(s,m,t)})(w);return(0,v.jsx)(y,(0,o.A)({className:(0,i.A)(S.root,u),ref:t,ownerState:w},c,{children:(0,v.jsx)(E,{className:S.line,ownerState:w})}))}),_=[\"activeStep\",\"alternativeLabel\",\"children\",\"className\",\"component\",\"connector\",\"nonLinear\",\"orientation\"],C=(0,u.Ay)(\"div\",{name:\"MuiStepper\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>(0,o.A)({display:\"flex\"},\"horizontal\"===e.orientation&&{flexDirection:\"row\",alignItems:\"center\"},\"vertical\"===e.orientation&&{flexDirection:\"column\"},e.alternativeLabel&&{alignItems:\"flex-start\"})),w=(0,v.jsx)(b,{}),S=a.forwardRef(function(e,t){const n=(0,s.b)({props:e,name:\"MuiStepper\"}),{activeStep:u=0,alternativeLabel:c=!1,children:d,className:f,component:h=\"div\",connector:m=w,nonLinear:A=!1,orientation:y=\"horizontal\"}=n,E=(0,r.A)(n,_),b=(0,o.A)({},n,{nonLinear:A,alternativeLabel:c,orientation:y,component:h}),S=(e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e,a={root:[\"root\",t,n&&\"nonLinear\",r&&\"alternativeLabel\"]};return(0,l.A)(a,p,o)})(b),T=a.Children.toArray(d).filter(Boolean),O=T.map((e,t)=>a.cloneElement(e,(0,o.A)({index:t,last:t+1===T.length},e.props))),D=a.useMemo(()=>({activeStep:u,alternativeLabel:c,connector:m,nonLinear:A,orientation:y}),[u,c,m,A,y]);return(0,v.jsx)(g.A.Provider,{value:D,children:(0,v.jsx)(C,(0,o.A)({as:h,ownerState:b,className:(0,i.A)(S.root,f),ref:t},E,{children:O}))})})},39770:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(64438);const o=e=>(0,r.A)(e)&&\"classes\"!==e},39781:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}),\"Close\")},39940:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a}),n(81970);var r=n(17437),o=n(74848);function a(e){const{styles:t,defaultTheme:n={}}=e,a=\"function\"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:a})}},40150:(e,t,n)=>{\"use strict\";n(46518)({target:\"Number\",stat:!0},{isNaN:function(e){return e!=e}})},40165:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ff5058b09c2d59b1fbad.svg\"},40280:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(97751),a=n(96395),i=n(80550),l=n(10916).CONSTRUCTOR,s=n(93438),u=o(\"Promise\"),c=a&&!l;r({target:\"Promise\",stat:!0,forced:a||l},{resolve:function(e){return s(c&&this===u?i:this,e)}})},40346:e=>{e.exports=function(e){return null!=e&&\"object\"==typeof e}},40490:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d62a54afa2acb7e6c701.eot\"},40533:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>st}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(84976),s=n(47767),u=n(56203),c=n(96348),d=n(27305),p=n(47225),f=n(13075),g=n(92416),h=n(46374),m=(n(48598),n(16034),n(25440),n(34358)),v=n(98752),A=n(96790),y=n(95692),E=n(8085),b=function(e){return e.TM_HQ=\"TM HQ Name\",e.MDO_HQ=\"MDO HQ Name\",e.YEAR=\"Year\",e.VARIETY_NAME=\"Variety Name\",e}({}),_=function(e){return e.PAY_FOR_PERFORMANCE=\"PAY_FOR_PERFORMANCE\",e}({}),C=function(e){return e.PAY_FOR_PERFORMANCE_ROLE=\"pay_for_performance_role\",e.PAY_FOR_PERFORMANCE_HQ_HIERARCHY=\"pay_for_performance_pricing_hq_level\",e.PAY_FOR_PERFORMANCE_DURATION_TYPE=\"pay_for_performance_duration_type\",e.PAY_FOR_PERFORMANCE_TARGET_START_DATE=\"pay_for_performance_target_start_date\",e.PAY_FOR_PERFORMANCE_TARGET_END_DATE=\"pay_for_performance_target_end_date\",e.PAY_FOR_PERFORMANCE_ACTUAL_START_DATE=\"pay_for_performance_actual_start_date\",e.PAY_FOR_PERFORMANCE_ACTUAL_END_DATE=\"pay_for_performance_actual_end_date\",e}({}),w=function(e){return e.PAY_FOR_PERFORMANCE_DATA=\"payForPerformanceData\",e}({}),S=[b.TM_HQ,b.MDO_HQ];function T(e){return T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},T(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=T(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==T(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e,t,n,r){var o={};return o.domain=n,\"salesHierarchy\"===e?o.endPoint=E.p.SAVESALEHIERARCHY:\"payForPerformanceData\"===e&&(o.domain=n.replace(\"v1\",\"v2\"),o.endPoint=\"\".concat(E.p.GET_ATTENDANCE_CONFIG_DATA,\"?\",\"moduleName=\".concat(_.PAY_FOR_PERFORMANCE),\"&\").concat(null==Object?void 0:Object.values(C).map(function(e){return\"keys=\".concat(e)}).join(\"&\"))),o.customHeaders=function(e){var t;return{\"country-code\":null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}}(t),o.triggerLoader=r,new Promise(function(e,t){var n;null===(n=y.N.get(o))||void 0===n||n.then(function(t){if((0,f.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})},L=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=E.p.GET_PAY_FOR_PERFORMANCE_LISTDATA,o.triggerLoader=n,o.customHeaders=D({\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},e.UserDetails.role_type_details.role_type_id?{\"role-id\":\"\".concat(e.UserDetails.role_type_details.role_type_id)}:{}),o.payLoad=D({},r),new Promise(function(e,t){(0,m.uB)(o,A.dF.POST).then(function(t){if((0,f.mN)(t)){var n,r=null!==(n=t.data)&&void 0!==n&&n.pay_for_performance_details_dto_set?{totalPageCount:(o=t.data).total_pages,totalElements:o.total_records,data:null==o?void 0:o.pay_for_performance_details_dto_set.map(function(e){return{id:e.hq_id,hqName:e.hq_name,brand:e.brand,year:e.year,targetVolume:e.total_target_volume,targetValue:e.total_target_value,actualVolume:e.total_achieved_volume,actualValue:e.total_achieved_value,status:e.status,materialCode:e.product_code,varietyName:e.sku_name}})}:{};return e(r)}var o;throw new Error((0,f.Tl)(\"NO_DATA_FOUND\"))}).catch(function(e){return t(e)})})},P=function(e,t,n,r){var o={};return o.domain=n,o.endPoint=E.p.GET_FIRST_LEVEL_FILTER_LIST,o.payLoad=e,o.triggerLoader=r,o.customHeaders={\"country-code\":\"\".concat(t.selectedCountry.countryCode),\"bu-id\":\"\".concat(t.selectedBusinessUnit.bu_id),\"role-type-name\":\"\".concat(t.UserDetails.role_type_details.role_type_name),\"user-id\":\"\".concat(t.UserDetails.user_id),Authorization:\"Bearer \".concat(t.AccessToken)},(0,f.AT)(\"get\",o,!0)},M=function(e,t,n,r){var o,a,i=r.triggerToastMsg,l=r.downloadTemplate,s={\"Content-Type\":A.LG.json,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)};return l({baseUrl:\"\".concat(t).concat(E.p.GET_PFP_DOWNLOAD_REPORTS),options:{headers:s,responseType:\"arraybuffer\"},payload:n,requestType:\"post\"}).then(function(e){var t=(0,f.bA)(e);t&&i({message:null==t?void 0:t.message,type:\"error\"})})},x=n(92782),I=n(60538),k=n(34195),B=n(37998),F=n(23835),j=n(18978);function H(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return U(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,U(d,\"constructor\",u),U(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",U(u,o,\"GeneratorFunction\"),U(d),U(d,o,\"Generator\"),U(d,r,function(){return this}),U(d,\"toString\",function(){return\"[object Generator]\"}),(H=function(){return{w:a,m:p}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}U=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){U(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},U(e,t,n,r)}function Y(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Y(a,r,o,i,l,\"next\",e)}function l(e){Y(a,r,o,i,l,\"throw\",e)}i(void 0)})}}var z=function(){var e=(0,a.useContext)(p.v),t=e.BackOfficeProps,n=t.globalStore.User,r=t.baseurl,o=e.triggerShowLoader,i=e.triggerToastMsg,l=(0,k.Bd)().t,s=(0,a.useCallback)(function(){var e=G(H().m(function e(t){var a,s;return H().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,L(n,r,o,t);case 1:return a=e.v,e.a(2,a);case 2:throw e.p=2,s=e.v,i({message:s.message||l(\"FAILED_TO_FETCH_LIST_DATA\"),type:\"error\"}),s;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),[n,r,l]),u=(0,a.useCallback)(function(){var e=G(H().m(function e(t){var a,s;return H().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,P(t,n,r,o);case 1:return a=e.v,e.a(2,a);case 2:throw e.p=2,s=e.v,i({message:s.message||l(\"FAILED_TO_FETCH_HQ_FILTERS\"),type:\"error\"}),s;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),[n,r,l]),c=(0,a.useCallback)(G(H().m(function e(){var t,a;return H().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,j.i)(n,r,o);case 1:return t=e.v,e.a(2,t);case 2:throw e.p=2,a=e.v,i({message:a.message||l(\"FAILED_TO_FETCH_YEAR_FILTERS\"),type:\"error\"}),a;case 3:return e.a(2)}},e,null,[[0,2]])})),[n,r,l]),d=(0,a.useCallback)(G(H().m(function e(){var t,a,s;return H().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,N(w.PAY_FOR_PERFORMANCE_DATA,n,r,o);case 1:if(null!=(a=e.v)&&null!==(t=a.data)&&void 0!==t&&null!==(t=t.configurationDetailsDtos)&&void 0!==t&&t.length){e.n=2;break}throw new Error(l(\"PAY_FOR_PERFORMANCE_GET_FAILED\"));case 2:return e.a(2,a.data.configurationDetailsDtos);case 3:throw e.p=3,s=e.v,i({message:s.message||s,type:\"error\"}),s;case 4:return e.a(2)}},e,null,[[0,3]])})),[n,r,l]),f=(0,a.useCallback)(function(){var e=G(H().m(function e(t,o){var a;return H().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,M(n,r,t,{triggerToastMsg:i,downloadTemplate:o});case 1:e.n=3;break;case 2:throw e.p=2,a=e.v,i({message:a.message||l(\"FAILED_TO_DOWNLOAD_REPORT\"),type:\"error\"}),a;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n){return e.apply(this,arguments)}}(),[n,r,i,l]);return{fetchListData:s,fetchHQFilters:u,fetchYearFilters:c,fetchConfigurationData:d,downloadReports:f}},V=(n(74423),n(15086),n(54554),n(35546));function q(e){return q=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},q(e)}function W(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Q(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Q(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Q(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Q(d,\"constructor\",u),Q(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Q(u,o,\"GeneratorFunction\"),Q(d),Q(d,o,\"Generator\"),Q(d,r,function(){return this}),Q(d,\"toString\",function(){return\"[object Generator]\"}),(W=function(){return{w:a,m:p}})()}function Q(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Q=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Q(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Q(e,t,n,r)}function K(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function $(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){K(a,r,o,i,l,\"next\",e)}function l(e){K(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function X(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=q(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==q(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e,t){if(e){if(\"string\"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var re=function(e){var t,n,r=e.selectedTabId,o=e.hqHierarchyDetails,i=e.isChildTab,l=e.setInitialForm,s=(0,a.useContext)(p.v),u=s.BackOfficeProps,c=u.globalStore.User,d=u.baseurl,g=s.triggerShowLoader,h=z(),m=h.fetchHQFilters,v=h.fetchYearFilters,A=(t=(0,a.useState)({isFilterOpen:!1,labelNames:[],labelOptions:V.w4,selectedFilters:{},onChangeSelectedFilters:{},filterPayload:{},isApplyDisabled:!1}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||te(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),y=A[0],_=A[1],C=(0,a.useCallback)(function(e){_(function(t){return Z(Z({},t),e)})},[]),w=(0,a.useCallback)(function(e){var t,n,r;return{hq_ids:(null==e||null===(t=e[i?b.MDO_HQ:b.TM_HQ])||void 0===t?void 0:t.map(function(e){return e.value}))||[],years:null!=e&&null!==(n=e[b.YEAR])&&void 0!==n&&n.label?[e[b.YEAR].label]:[],varieties:null==e||null===(r=e[b.VARIETY_NAME])||void 0===r?void 0:r.map(function(e){return null==e?void 0:e.value})}},[i]),S=(0,a.useCallback)(function(e,t){_(function(n){return Z(Z({},n),{},{labelOptions:n.labelOptions.some(function(t){return t.labelName===e})?n.labelOptions.map(function(n){return n.labelName===e?Z(Z({},n),{},{options:t}):n}):[].concat(X(n.labelOptions),[{labelName:e,options:t}])})})},[]),T=(0,a.useCallback)(function(){var e=$(W().m(function e(t,n){var r,o,a,i,l,s,u=arguments;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:[],e.p=1,o=[],!(a=n===b.MDO_HQ)){e.n=3;break}return i={targetForId:t.sales_hierarchy_id,parentHqIds:t.parent_hq_id.map(function(e){return e.value})},e.n=2,(0,j._n)(c,d,g,i);case 2:o=e.v,e.n=5;break;case 3:return e.n=4,m(t);case 4:o=e.v;case 5:o&&(l=o.map(function(e){return{label:a?e.hq_data_name:e.name,value:a?e.hq_data_id:e.id,checked:r.some(function(t){return t.value===e.id})}}),S(n,l)),e.n=7;break;case 6:e.p=6,s=e.v,console.error(\"Error fetching HQ filter list:\",s);case 7:return e.a(2)}},e,null,[[1,6]])}));return function(t,n){return e.apply(this,arguments)}}(),[m,S]),O=(0,a.useCallback)($(W().m(function e(){var t,n,r,o;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,v();case 1:n=e.v,r=null==n||null===(t=n.slice(-2))||void 0===t?void 0:t.map(function(e){return{label:e.name,value:e.id,checked:!1}}),S(V.t4.YEAR,r),e.n=3;break;case 2:e.p=2,o=e.v,console.error(\"Error fetching year filters:\",o);case 3:return e.a(2)}},e,null,[[0,2]])})),[v,S]),D=(0,a.useCallback)(function(){var e=[{label:b.TM_HQ,value:\"tm_hq\",ismultiSelect:!1},{label:b.VARIETY_NAME,value:\"variety_name\",ismultiSelect:!0},{label:b.YEAR,value:\"year\",ismultiSelect:!1}];i&&e.splice(1,0,{label:b.MDO_HQ,value:\"mdo_hq\",ismultiSelect:!0}),C({labelNames:e}),T({sales_hierarchy_id:o.parentTabId},b.TM_HQ)},[i,o.parentTabId,T,C]),R=(0,a.useCallback)(function(e,t,n,o){if(i&&o===b.TM_HQ){var a=!e||Array.isArray(e)&&0===e.length;C({isApplyDisabled:!0,onChangeSelectedFilters:Z(Z({},y.onChangeSelectedFilters),{},ee(ee({},b.MDO_HQ,[]),o,Array.isArray(e)?e.filter(function(e){return e.checked}):e))}),a?S(b.MDO_HQ,[]):T({sales_hierarchy_id:r,parent_hq_id:e,portfolio_code:\"DEFAULT\"},b.MDO_HQ)}else C({onChangeSelectedFilters:Z(Z({},y.onChangeSelectedFilters),{},ee({},o,Array.isArray(e)?e.filter(function(e){return e.checked}):e))})},[i,y.onChangeSelectedFilters,r,T,C]),N=(0,a.useCallback)(function(e){var t=w(e);return C({filterPayload:t,selectedFilters:e,isFilterOpen:!1}),t},[w,C]),L=(0,a.useCallback)(function(){var e=y.labelOptions.filter(function(e){return[b.VARIETY_NAME,b.YEAR,y.labelNames[0],b.TM_HQ].includes(e.labelName)}).map(function(e){return Z(Z({},e),{},{options:e.options.map(function(e){return Z(Z({},e),{},{checked:!1})})})});C({labelOptions:X(e),selectedFilters:{},onChangeSelectedFilters:{},filterPayload:{},isFilterOpen:!1}),l({})},[y.labelOptions,y.labelNames,C]),P=(0,a.useCallback)(function(){C({onChangeSelectedFilters:y.selectedFilters,isFilterOpen:!1});var e=y.labelOptions.map(function(e){return e.labelName===b.MDO_HQ?e:Z(Z({},e),{},{options:e.options.map(function(t){var n=y.selectedFilters[e.labelName];return Array.isArray(n)?Z(Z({},t),{},{checked:n.some(function(e){return e.value===t.value})}):Z(Z({},t),{},n?{checked:n.value===t.value}:{checked:!1})})})});if(C({labelOptions:e}),i){var t,n,o=null===(t=y.selectedFilters)||void 0===t?void 0:t[b.TM_HQ];o?T({sales_hierarchy_id:r,parent_hq_id:[o],portfolio_code:\"DEFAULT\"},b.MDO_HQ,(null===(n=y.selectedFilters)||void 0===n?void 0:n[b.MDO_HQ])||[]):S(b.MDO_HQ,[])}},[y.selectedFilters,y.onChangeSelectedFilters,y.labelOptions,i,r,T,S,C]),M=(0,a.useCallback)(function(){C({isFilterOpen:!0})},[C]),x=(0,a.useCallback)(function(){var e;return null===(e=y.labelOptions)||void 0===e||null===(e=e.find(function(e){return(null==e?void 0:e.labelName)===b.TM_HQ}))||void 0===e?void 0:e.options},[y.labelOptions]);(0,a.useEffect)(function(){if(y.labelNames.length>0){var e=w(y.selectedFilters);C({filterPayload:e})}},[y.labelNames,y.selectedFilters,w,C]);return(0,a.useEffect)(function(){var e;!i||!y.onChangeSelectedFilters[b.TM_HQ]||y.onChangeSelectedFilters[b.MDO_HQ]&&0!==(null===(e=y.onChangeSelectedFilters[b.MDO_HQ])||void 0===e?void 0:e.length)?C({isApplyDisabled:!1}):C({isApplyDisabled:!0})},[y.onChangeSelectedFilters,i,C]),(0,a.useEffect)(function(){L(),O(),D()},[r,o]),(0,a.useEffect)(function(){(function(e,t,n){var r={};return r.domain=t,r.triggerLoader=n,r.endPoint=E.p.PFP_VARIETIES,r.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(e.AccessToken)},(0,f.AT)(\"get\",r,!0)})(c,d,g).then(function(e){var t=e.map(function(e){return{label:e,value:e}});S(b.VARIETY_NAME,null!=t?t:[])}).catch(function(){})},[]),{filterState:y,handleFilterChange:R,handleFilterSubmit:N,handleClearFilters:L,handleFilterClose:P,openFilters:M,updateLabelOptions:S,getActiveTMHQs:x,buildFilterPayload:w}},oe=n(70380),ae=n(56254),ie=n(43605),le=n(15664),se=n(21239),ue=(n(21699),n(8239)),ce=n(14073),de=n(88084),pe=n(36874),fe=n(28152),ge=n(62809),he=n(48506),me=n(64121);function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const be=function(e){var t=e.isFilterOpen,n=e.onRequestClose,l=e.setLabelOptions,s=e.onFilterSubmit,u=e.labelNames,c=e.labelOptions,d=e.onFilterChange,p=e.onClearFilters,f=e.isApplyDisabled,g=e.onChangeSelectedFilters,h=(0,k.Bd)().t,m=(0,a.useMemo)(function(){return c},[c]),v=(0,a.useCallback)(function(e){var t,n;return null!==(t=null==c||null===(n=c.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===n?void 0:n.options)&&void 0!==t?t:[]},[c]),A=(0,a.useCallback)(function(e,t){var n;return(null==e||null===(n=e[t])||void 0===n||null===(n=n.filter(function(e){return e.checked}))||void 0===n?void 0:n.map(function(e){return e.label}))||[]},[]),y=(0,a.useCallback)(function(e,t,n,r){d(e,t,r,n),r(n,e)},[d]),E=(0,a.useCallback)(function(e,t,n,r){t===b.TM_HQ&&n(b.MDO_HQ,[]),d(e||[],r,n,t),n(t,e||[])},[d]),_=(0,a.useCallback)(function(){l(m),n()},[m,l,n]),C=(0,a.useCallback)(function(e,t,n,r){var o,a=v(e);return i().createElement(he.A,{name:e,options:a,selectedOption:null!==(o=null==t?void 0:t[e])&&void 0!==o?o:[],onHandleChange:function(t){E(t.map(function(e){return ye(ye({},e),{},{checked:!0})}),e,n,r)},disabled:!a.length})},[v,E]),w=(0,a.useCallback)(function(e,t,n,r){var o=v(e),a=A(t,e);return i().createElement(ge.A,{name:e,showClearAll:!0,labelKey:\"label\",options:o,onCheckboxChange:function(t){return y(t,r,e,n)},isDisabled:!o.length,selectedOptions:a,defaultLabel:\"Select\",isSortReq:!0})},[v,A,y]),T=(0,a.useCallback)(function(e,t,n,r){var o;return i().createElement(me.A,{name:e,onChange:function(t,o){return y(o,r,e,n)},isDisabled:!(null!==(o=v(e))&&void 0!==o&&o.length),options:v(e),labelKey:\"label\",label:e,selectedOption:null==t?void 0:t[e],value:null==t?void 0:t[e],defaultLabel:\"Select \".concat(e)})},[v,y]);return i().createElement(pe.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},i().createElement(r.A,{p:3,className:\"mdo-floating-filter-wrapper\"},i().createElement(de.l1,{initialValues:g||{},onSubmit:s},function(e){var t=e.values,n=e.setFieldValue;return i().createElement(de.lV,{className:\"popupContent bgp-floating-filter-mdo\"},i().createElement(ue.Ay,{container:!0,columns:12,spacing:1,mb:2},null==u?void 0:u.map(function(e,o){var a;return a=S.includes(e.label)?\"autoComplete\":e.label===b.VARIETY_NAME?\"multiSelect\":\"dropdown\",i().createElement(ue.Ay,{item:!0,xs:3,key:\"\".concat(e.label,\"-\").concat(o)},i().createElement(r.A,null,i().createElement(ce.A,{variant:\"subtitle2\"},e.label),\"autoComplete\"===a&&C(e.label,t,n,o),\"multiSelect\"===a&&w(e.label,t,n,o),\"dropdown\"===a&&T(e.label,t,n,o),i().createElement(fe.A,{errName:e.value})))})),i().createElement(o.A,{direction:\"row\",justifyContent:\"flex-end\"},i().createElement(r.A,{display:\"flex\",width:\"30%\",justifyContent:\"flex-end\",alignItems:\"center\",gap:1},i().createElement(le.A,{variant:\"outlined\",buttonName:h(\"CLEAR_FILTERS\"),onButtonClick:p,fullwidth:!1,color:\"primary\"}),i().createElement(le.A,{variant:\"contained\",buttonName:h(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:f}))),i().createElement(r.A,{onClick:_,\"data-testid\":\"closeIcon\",className:\"smart-agro-lite-filter-cross\"},i().createElement(ce.A,{className:\"icon-close closeIcon\"})))})))};n(9391);var _e=n(27386),Ce=n(80875),we=n(47953),Se=n(15941),Te=function(){return Se.Ik().shape({year:Se.Ik().nullable().test(\"is-empty\",\"Please select an Target Type\",function(e){return null==e?void 0:e.label}),TMHQ:Se.Ik().nullable().test(\"is-empty\",\"Please select TMHQ\",function(e){return null==e?void 0:e.label})})},Oe=n(99478);function De(e){return De=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},De(e)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Le(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=De(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==De(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Me(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const xe=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,l=e.onRequestClose,s=void 0===l?function(){}:l,u=e.uploadType,c=e.activeTMHQs,d=(0,k.Bd)().t,g=(0,a.useContext)(p.v),h=g.BackOfficeProps,y=h.globalStore.User,b=h.baseurl,_=g.triggerShowLoader,C=g.triggerToastMsg,w=Pe((0,a.useState)(null),2),S=w[0],T=w[1],O=Pe((0,a.useState)([]),2),D=O[0],R=O[1],N=Pe((0,a.useState)(\"\"),2),L=N[0],P=N[1],M=function(){s(!1)},x=function(){if(S){if((0,v.TC)(S.name))return function(e,t,n,r,o){var a,i={};i.domain=t,i.endPoint=o,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)};var l=(0,v.S2)(r);return i.payLoad={file_name:l.name},i.triggerLoader=n,(0,f.AT)(\"get\",i,!1)}(y,b,_,S,\"target\"===u?E.p.UPLOAD_TARGETS_PFP_TEMPLATE:E.p.UPLOAD_ACTUALS_PFP_TEMPLATE).then(function(e){_(!0);var t=(0,v.S2)(S);return(0,m.i3)(null==e?void 0:e.data,t).then(function(e){_(!1),200===e.status&&\"OK\"===e.statusText?(s(!0),T(null),C({message:Oe.PB,type:\"success\"})):C({message:Oe.or,type:\"error\"})}).catch(function(e){C({message:Oe.or,type:\"error\"}),_(!1)})}).catch(function(e){C({message:Oe.or,type:\"error\"}),_(!1)});P(d(\"VALID_FILE_ERROR\"))}else P(d(\"UPLOAD_CONDITION_TEXT\"))};return(0,a.useEffect)(function(){var e,t;t={apiName:we.Q.FETCH_YEAR_DATA,User:y,baseUrl:b,triggerShowLoader:_,liquidationType:\"target\"===u?\"TARGET\":\"ACTUAL\"},null===(e=(0,Ce.xx)(t))||void 0===e||e.then(function(e){if(e.data.length>0){var t=null==(n=e.data)?void 0:n.map(function(e){var t;return{value:null==e||null===(t=e.id)||void 0===t?void 0:t.toString(),label:e.name}});R(null==t?void 0:t.map(function(e){return Ne(Ne({},e),{},{label:\"Annual - \".concat(null==e?void 0:e.label)})}))}var n}).catch(function(){})},[]),i().createElement(pe.A,{isDrawerOpen:n,anchor:\"right\"},i().createElement(r.A,{className:\"popupMain\"},i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(ce.A,{variant:\"h5\",fontSize:24,fontWeight:500},d(\"target\"===u?\"UPLOAD_PFP_TARGET\":\"UPLOAD_PFP_ACTUAL\")),i().createElement(r.A,{onClick:function(){return s(!1)},\"data-testid\":\"closeIcon\"},i().createElement(ce.A,{className:\"icon-close closeIcon\"}))),i().createElement(de.l1,{initialValues:{year:{value:\"\",label:\"\"},TMHQ:{value:\"\",label:\"\"}},validationSchema:Te,enableReinitialize:!0,onSubmit:function(e){_(!0),(0,m.Ti)(function(e){var t,n;return{baseUrl:\"\".concat(b).concat(E.p.GET_PFP_TEMPLATE),options:{headers:{\"country-code\":\"\".concat(y.selectedCountry.countryCode),\"role-type-name\":\"\".concat(y.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(y.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(y.UserDetails.user_id),\"Content-Type\":A.LG.octet_stream,Authorization:\"Bearer \".concat(null==y?void 0:y.AccessToken)},params:{duration_details_id:null==e||null===(t=e.year)||void 0===t?void 0:t.value,liquidation_type:\"target\"===u?\"TARGET\":\"ACTUAL\",parent_hq_id:null==e||null===(n=e.TMHQ)||void 0===n?void 0:n.value},responseType:\"arraybuffer\"}}}(e)).then(function(e){(0,f.mN)(e)||C({message:d(\"DOWNLOAD_FAILED\"),type:\"error\"})}).catch(function(e){C({message:e,type:\"error\"})}).finally(function(){_(!1)})}},function(e){var t,n,a,l,s,u,p,f,g=e.values,h=e.setFieldValue;return i().createElement(de.lV,{className:\"popupContent\"},i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\"},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(ce.A,{className:\"round-badge\",component:\"span\"},\"1\"),i().createElement(ce.A,{fontWeight:500,variant:\"h6\",fontSize:14},d(\"FILL_DETAILS\"))),i().createElement(o.A,{direction:\"row\",gap:2,mb:1},i().createElement(r.A,{width:\"100%\",mb:2},i().createElement(ce.A,{fontWeight:700,variant:\"body1\"},d(\"TARGET_TYPE\")),i().createElement(me.A,{name:\"year\",onChange:function(e,t){h(\"year\",t)},options:D,labelKey:\"label\",label:\"\",selectedOption:null!==(t=null===(n=g.year)||void 0===n?void 0:n.label)&&void 0!==t?t:\"\",value:null!==(a=null===(l=g.year)||void 0===l?void 0:l.label)&&void 0!==a?a:\"\",defaultLabel:d(\"SELECT_TARGET_TYPE\")}),i().createElement(fe.A,{errName:\"year\"})),i().createElement(r.A,{mb:2,width:\"100%\"},i().createElement(ce.A,{variant:\"body1\",fontWeight:700},d(\"ACTIVE_TMHQS\")),i().createElement(me.A,{name:\"TMHQ\",onChange:function(e,t){h(\"TMHQ\",t)},options:c,labelKey:\"label\",label:\"\",selectedOption:null!==(s=null===(u=g.TMHQ)||void 0===u?void 0:u.label)&&void 0!==s?s:\"\",value:null!==(p=null===(f=g.TMHQ)||void 0===f?void 0:f.label)&&void 0!==p?p:\"\",defaultLabel:d(\"SELECT_ACTIVE_TMHQ\")}),i().createElement(fe.A,{errName:\"TMHQ\"}))),i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(ce.A,{component:\"span\",className:\"round-badge\"},\"2\"),i().createElement(ce.A,{variant:\"h6\",fontSize:14,fontWeight:500},d(\"DOWNLOAD_TEMEPLATE\"))),i().createElement(le.A,{variant:\"outlined\",startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),type:\"submit\",buttonName:d(\"DOWNLOAD\"),fullwidth:!1}))),i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\"},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(ce.A,{className:\"round-badge\",component:\"span\"},\"3\"),i().createElement(ce.A,{fontSize:14,variant:\"h6\",fontWeight:500},d(\"UPLOAD_COMPLETED_TEMPLATE\")))),i().createElement(r.A,{className:\"input-card-body\"},i().createElement(_e.A,{onUploadSuccess:function(e){return function(e){P(!1);var t=e[0];T(t)}(e)},selectedFile:S,onRemoveHandler:function(){return T(null)}}),L?i().createElement(ce.A,{fontSize:12,p:.5,color:\"#ff0000\",fontWeight:700},L):null)))),i().createElement(o.A,{className:\"btnsBlock\",direction:\"row\",gap:2},i().createElement(le.A,{variant:\"outlined\",buttonName:\"\".concat(d(\"CANCEL\")),color:\"secondary\",fullwidth:!1,onButtonClick:M}),i().createElement(le.A,{variant:\"contained\",buttonName:d(\"UPLOAD\"),fullwidth:!1,color:\"primary\",onButtonClick:x})))})))};function Ie(e){return Ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ie(e)}function ke(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Be(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Be(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Be(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Be(d,\"constructor\",u),Be(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Be(u,o,\"GeneratorFunction\"),Be(d),Be(d,o,\"Generator\"),Be(d,r,function(){return this}),Be(d,\"toString\",function(){return\"[object Generator]\"}),(ke=function(){return{w:a,m:p}})()}function Be(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Be=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Be(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Be(e,t,n,r)}function Fe(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function je(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Fe(a,r,o,i,l,\"next\",e)}function l(e){Fe(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach(function(t){Ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ye(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ie(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ie(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ze(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ve=Number(10);const qe=function(e){var t=e.hqName,n=e.selectedTabId,l=e.hasUpdateAccess,u=e.selectedTabName,c=e.hqHierarchyDetails,d=(0,s.g)(),g=(0,k.Bd)().t,h=(0,F.A)().downloadTemplate,m=(0,a.useContext)(p.v).BackOfficeProps.globalStore.User,v=Ge((0,a.useState)(),2),A=v[0],y=v[1],E=z(),b=E.fetchListData,_=E.fetchConfigurationData,C=E.downloadReports,w=c.childTabId===n,S=\"MDO\"===u,T=(null==d?void 0:d.id)===V.py.TAB_ONE,O=re({selectedTabId:n,hqHierarchyDetails:c,isChildTab:w,setInitialForm:y}),D=O.filterState,R=O.handleFilterChange,N=O.handleFilterSubmit,L=O.handleClearFilters,P=O.handleFilterClose,M=O.openFilters,x=O.getActiveTMHQs,j=O.updateLabelOptions,H=Ge((0,a.useState)({liquidationListData:[],paginationState:{pageNo:0,pageSize:Ve},totalPageCount:0,totalElements:0,noDataTemplateName:g(\"TARGETS_ARE_NOT_UPLOADED\"),showUploadTargets:!1,showUploadActuals:!1,isDrawerOpen:!1,uploadType:\"\",searchValue:\"\"}),2),U=H[0],Y=H[1],G=(0,a.useMemo)(function(){return(T?B.w6:B.xR).map(function(e){return\"hqName\"===e.field?Ue(Ue({},e),{},{headerName:t}):e})},[T,t]),q=(0,a.useMemo)(function(){return x()},[x]),W=function(e){Y(function(t){return Ue(Ue({},t),e)})},Q=function(e){return e.map(function(e){return Ue(Ue({},e),{},{actualValue:0===e.actualValue?\"NA\":e.actualValue,actualVolume:0===e.actualVolume?\"NA\":e.actualVolume})})},K=(0,a.useCallback)(je(ke().m(function e(){var t,r,o;return ke().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=Ue(Ue({},D.filterPayload),{},{search_term:U.searchValue,page_number:U.paginationState.pageNo,page_size:U.paginationState.pageSize,sales_hierarchy_id:n}),e.p=1,e.n=2,b(t);case 2:(r=e.v)&&W({noDataTemplateName:0===r.data.length?g(\"NO_MATCHING_RECORDS\"):g(\"TARGETS_ARE_NOT_UPLOADED\"),liquidationListData:Q(r.data),totalPageCount:r.totalPageCount,totalElements:r.totalElements}),e.n=4;break;case 3:e.p=3,o=e.v,console.error(\"Error fetching list data:\",o);case 4:return e.a(2)}},e,null,[[1,3]])})),[U.paginationState,D.filterPayload,U.searchValue,n,b,g]),$=function(){var e=je(ke().m(function e(){var t,n,r,o,a;return ke().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,_();case 1:t=e.v,n={},t.forEach(function(e){n[e.key]=e.value}),r=(0,oe.AV)(\"DD-MMM\"),W({showUploadActuals:(o=function(e,t){return(0,oe._M)(r,n[e],n[t])||(0,oe.ny)(r,n[e])||(0,oe.ny)(r,n[t])})(\"pay_for_performance_actual_start_date\",\"pay_for_performance_actual_end_date\"),showUploadTargets:o(\"pay_for_performance_target_start_date\",\"pay_for_performance_target_end_date\")}),e.n=3;break;case 2:e.p=2,a=e.v,console.error(\"Error fetching configuration data:\",a);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)(function(){$()},[]),(0,a.useEffect)(function(){K()},[U.paginationState,D.filterPayload,U.searchValue,n]),(0,a.useEffect)(function(){W({paginationState:{pageNo:0,pageSize:Ve}})},[n,c]),i().createElement(i().Fragment,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,{mt:2},i().createElement(se.A,{onSearchValueChange:function(e){var t=e.replace(/^\\s+/,\"\");W({searchValue:t,paginationState:Ue(Ue({},U.paginationState),{},{pageNo:0})})},placeholderText:g(\"SEARCH\"),searchValue:\"\",searchBasedOn:g(\"SEARCH_BY_MATERIAL_CODE_VARIETY_NAME\")})),i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},S&&i().createElement(le.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:g(\"DOWNLOAD_PAY_FOR_PERFORMANCE_TARGET\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){C(Ue(Ue({},D.filterPayload),{},{sales_hierarchy_id:n,page_number:U.paginationState.pageNo,page_size:U.paginationState.pageSize,search_term:U.searchValue}),h)}}),!T&&l&&S&&!(0,Oe.EB)(m)&&i().createElement(i().Fragment,null,U.showUploadTargets&&i().createElement(le.A,{variant:\"contained\",buttonName:g(\"UPLOAD_TARGETS\"),onButtonClick:function(){return W({isDrawerOpen:!0,uploadType:\"target\"})},fullwidth:!1,color:\"primary\"}),U.showUploadActuals&&i().createElement(le.A,{variant:\"contained\",buttonName:g(\"UPLOAD_ACTUALS\"),onButtonClick:function(){return W({isDrawerOpen:!0,uploadType:\"actual\"})},fullwidth:!1,color:\"primary\"})),i().createElement(le.A,{className:(0,f.F7)(D.selectedFilters),buttonName:g(\"FILTERS\"),color:\"transparent\",fullwidth:!1,endIcon:i().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:M}))),i().createElement(I.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(ie.A,{rows:U.liquidationListData,columnDefs:G,noDataTemplate:U.noDataTemplateName})),i().createElement(ae.A,{totalPageCount:Math.ceil(U.totalPageCount),pageNo:U.paginationState.pageNo,onPageChange:function(e){W({paginationState:Ue(Ue({},U.paginationState),{},{pageNo:Number(e)})})},totalElements:U.totalElements}),U.isDrawerOpen&&i().createElement(xe,{isDrawerOpen:U.isDrawerOpen,onRequestClose:function(){return W({isDrawerOpen:!1})},uploadType:U.uploadType,activeTMHQs:q}),D.isFilterOpen&&i().createElement(be,{onFilterChange:R,labelNames:D.labelNames,labelOptions:D.labelOptions,onRequestClose:P,isFilterOpen:D.isFilterOpen,onFilterSubmit:function(e){N(e),y(e),W({paginationState:Ue(Ue({},U.paginationState),{},{pageNo:0})})},onClearFilters:L,selectedFilters:D.selectedFilters,setLabelOptions:j,setIsSelectedLastHierarchy:function(){},isSelectedLastHierarchy:0,onChangeSelectedFilters:A,isApplyDisabled:D.isApplyDisabled}))};var We=n(58125),Qe=n(21770),Ke=n(52695);const $e=function(){return i().createElement(Qe.A,{bulkUploadModuleTypes:[Ke.H.PAY_FOR_PERFORMANCE],tableHeaders:B.xd})};function Xe(e){return Xe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Xe(e)}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach(function(t){et(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function et(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Xe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Xe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Xe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return nt(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(nt(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,nt(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,nt(d,\"constructor\",u),nt(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",nt(u,o,\"GeneratorFunction\"),nt(d),nt(d,o,\"Generator\"),nt(d,r,function(){return this}),nt(d,\"toString\",function(){return\"[object Generator]\"}),(tt=function(){return{w:a,m:p}})()}function nt(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}nt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){nt(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},nt(e,t,n,r)}function rt(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ot(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){rt(a,r,o,i,l,\"next\",e)}function l(e){rt(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||it(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function it(e,t){if(e){if(\"string\"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const st=function(e){var t=e.RBACControls,n=(0,d.w)(t).hasUpdateAccess,m=(0,a.useContext)(p.v),v=m.BackOfficeProps,A=v.globalStore.User,y=v.baseurl,E=m.triggerShowLoader,b=m.triggerToastMsg,_=at((0,l.ok)(),1)[0].get(\"tabname\"),S=at((0,a.useState)(\"\"),2),T=S[0],O=S[1],D=at((0,a.useState)({tablist:[],currentTabs:\"\"}),2),R=D[0],L=D[1],P={id:3,tabName:(0,u.t)(\"MY_UPLOADS\"),path:c.fp.Uploads_ErrorLog,component:i().createElement($e,null),queryParam:{tabname:c.fp.Uploads_ErrorLog}},M=(0,a.useCallback)(ot(tt().m(function e(){var t,n,r,o,a;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,N(w.PAY_FOR_PERFORMANCE_DATA,A,y,E);case 1:n=e.v,(null==(r=null==n||null===(t=n.data)||void 0===t?void 0:t.configurationDetailsDtos)?void 0:r.length)>0&&null!=(o=r.find(function(e){return e.key===C.PAY_FOR_PERFORMANCE_ROLE}))&&o.value&&O(o.value),e.n=3;break;case 2:e.p=2,a=e.v,b({message:a.message,type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])})),[A,y]),I=(0,a.useCallback)(function(e,t,r,o,a,l){return[{id:1,tabName:\"\".concat(e,\" \").concat((0,u.t)(\"TARGET_DETAILS\")),path:e.toLowerCase(),component:i().createElement(qe,{hqName:r,selectedTabId:a,hasUpdateAccess:n,selectedTabName:e,hqHierarchyDetails:{parentTabName:e,childTabName:t,parentHqName:r,childHqName:o,parentTabId:a,childTabId:l}}),queryParam:{tabname:e.toLowerCase()}},{id:2,tabName:\"\".concat(t,\" \").concat((0,u.t)(\"TARGET_DETAILS\")),path:t.toLowerCase(),component:i().createElement(qe,{hqName:o,selectedTabId:l,hasUpdateAccess:n,selectedTabName:t,hqHierarchyDetails:{parentTabName:e,childTabName:t,parentHqName:r,childHqName:o,parentTabId:a,childTabId:l}}),queryParam:{tabname:t.toLowerCase()}}].concat(function(e){if(Array.isArray(e))return lt(e)}(s=(0,Oe.EB)(A)?[]:[P])||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(s)||it(s)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}());var s},[n,P]),k=(0,a.useCallback)(ot(tt().m(function e(){var t,n,r,o;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(T){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,(0,x.q4)(A,T,y,E);case 2:(t=e.v)&&(r=I(t.parent.sales_hierarchy_code,t.sales_hierarchy_code,t.parent.hq_hierarchy_name,t.hq_hierarchy_name,t.parent.sales_hierarchy_id,t.sales_hierarchy_id),L({tablist:r,currentTabs:_||(null==t||null===(n=t.parent)||void 0===n?void 0:n.sales_hierarchy_code.toLowerCase())})),e.n=4;break;case 3:e.p=3,o=e.v,b({message:o.message,type:\"error\"});case 4:return e.a(2)}},e,null,[[1,3]])})),[T,A,y,I,_]),B=(0,a.useCallback)(function(e){L(function(t){return Ze(Ze({},t),{},{currentTabs:e})})},[]),F=(0,a.useCallback)(function(){var e=_||R.currentTabs,t=\"\".concat(e,\"/?\").concat((0,f.Nr)({tabname:e}));return i().createElement(s.BV,null,i().createElement(s.qh,{index:!0,element:i().createElement(s.C5,{to:t,replace:!0})}),R.tablist.map(function(e){return i().createElement(s.qh,{key:e.id,path:e.path,element:e.component})}))},[R.tablist,R.currentTabs,_]);return(0,a.useEffect)(function(){M()},[]),(0,a.useEffect)(function(){T&&k()},[T]),(0,a.useEffect)(function(){_&&R.tablist.length>0&&L(function(e){return Ze(Ze({},e),{},{currentTabs:_})})},[_,R.tablist.length]),i().createElement(We.H,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(g.A,{routePathName:[{name:c.F_.Pay_For_Performance,path:c.fp.Pay_For_Performance}]})),i().createElement(h.A,{tabStateProps:R,handleTabChange:B,isParamsReq:!0})),R.tablist.length>0&&F())}},40597:(e,t,n)=>{\"use strict\";e.exports=n.p+\"97ab79bf26671cb12052.svg\"},40616:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=!r(function(){var e=function(){}.bind();return\"function\"!=typeof e||e.hasOwnProperty(\"prototype\")})},40748:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"sw\",{months:\"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba\".split(\"_\"),monthsShort:\"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des\".split(\"_\"),weekdays:\"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi\".split(\"_\"),weekdaysShort:\"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos\".split(\"_\"),weekdaysMin:\"J2_J3_J4_J5_Al_Ij_J1\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"hh:mm A\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[leo saa] LT\",nextDay:\"[kesho saa] LT\",nextWeek:\"[wiki ijayo] dddd [saat] LT\",lastDay:\"[jana] LT\",lastWeek:\"[wiki iliyopita] dddd [saat] LT\",sameElse:\"L\"},relativeTime:{future:\"%s baadaye\",past:\"tokea %s\",s:\"hivi punde\",ss:\"sekunde %d\",m:\"dakika moja\",mm:\"dakika %d\",h:\"saa limoja\",hh:\"masaa %d\",d:\"siku moja\",dd:\"siku %d\",M:\"mwezi mmoja\",MM:\"miezi %d\",y:\"mwaka mmoja\",yy:\"miaka %d\"},week:{dow:1,doy:7}})}(n(95093))},40875:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79039),a=n(48981),i=n(42787),l=n(12211);r({target:\"Object\",stat:!0,forced:o(function(){i(1)}),sham:!l},{getPrototypeOf:function(e){return i(a(e))}})},40882:e=>{e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},40921:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>_});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(52848),d=n(60538),p=n(55120),f=n(41159),g=n(6025),h=n(38413),m=n(31609);function v(e){return(0,m.Ay)(\"MuiAccordion\",e)}const A=(0,h.A)(\"MuiAccordion\",[\"root\",\"rounded\",\"expanded\",\"disabled\",\"gutters\",\"region\"]);var y=n(74848);const E=[\"children\",\"className\",\"defaultExpanded\",\"disabled\",\"disableGutters\",\"expanded\",\"onChange\",\"square\",\"slots\",\"slotProps\",\"TransitionComponent\",\"TransitionProps\"],b=(0,s.Ay)(d.A,{name:\"MuiAccordion\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${A.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:\"relative\",transition:e.transitions.create([\"margin\"],t),overflowAnchor:\"none\",\"&::before\":{position:\"absolute\",left:0,top:-1,right:0,height:1,content:'\"\"',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create([\"opacity\",\"background-color\"],t)},\"&:first-of-type\":{\"&::before\":{display:\"none\"}},[`&.${A.expanded}`]:{\"&::before\":{opacity:0},\"&:first-of-type\":{marginTop:0},\"&:last-of-type\":{marginBottom:0},\"& + &\":{\"&::before\":{display:\"none\"}}},[`&.${A.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,\"&:first-of-type\":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},\"&:last-of-type\":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,\"@supports (-ms-ime-align: auto)\":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${A.expanded}`]:{margin:\"16px 0\"}}}]})),_=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiAccordion\"}),{children:s,className:d,defaultExpanded:h=!1,disabled:m=!1,disableGutters:A=!1,expanded:_,onChange:C,square:w=!1,slots:S={},slotProps:T={},TransitionComponent:O,TransitionProps:D}=n,R=(0,o.A)(n,E),[N,L]=(0,f.A)({controlled:_,default:h,name:\"Accordion\",state:\"expanded\"}),P=a.useCallback(e=>{L(!N),C&&C(e,!N)},[N,C,L]),[M,...x]=a.Children.toArray(s),I=a.useMemo(()=>({expanded:N,disabled:m,disableGutters:A,toggle:P}),[N,m,A,P]),k=(0,r.A)({},n,{square:w,disabled:m,disableGutters:A,expanded:N}),B=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e,i={root:[\"root\",!n&&\"rounded\",r&&\"expanded\",o&&\"disabled\",!a&&\"gutters\"],region:[\"region\"]};return(0,l.A)(i,v,t)})(k),F=(0,r.A)({transition:O},S),j=(0,r.A)({transition:D},T),[H,U]=(0,g.A)(\"transition\",{elementType:c.A,externalForwardedProps:{slots:F,slotProps:j},ownerState:k});return(0,y.jsxs)(b,(0,r.A)({className:(0,i.A)(B.root,d),ref:t,ownerState:k,square:w},R,{children:[(0,y.jsx)(p.A.Provider,{value:I,children:M}),(0,y.jsx)(H,(0,r.A)({in:N,timeout:\"auto\"},U,{children:(0,y.jsx)(\"div\",{\"aria-labelledby\":M.props.id,id:M.props[\"aria-controls\"],role:\"region\",className:B.region,children:x})}))]}))})},40961:(e,t,n)=>{\"use strict\";!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},41011:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"sv\",{months:\"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december\".split(\"_\"),monthsShort:\"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec\".split(\"_\"),weekdays:\"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag\".split(\"_\"),weekdaysShort:\"sön_mån_tis_ons_tor_fre_lör\".split(\"_\"),weekdaysMin:\"sö_må_ti_on_to_fr_lö\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [kl.] HH:mm\",LLLL:\"dddd D MMMM YYYY [kl.] HH:mm\",lll:\"D MMM YYYY HH:mm\",llll:\"ddd D MMM YYYY HH:mm\"},calendar:{sameDay:\"[Idag] LT\",nextDay:\"[Imorgon] LT\",lastDay:\"[Igår] LT\",nextWeek:\"[På] dddd LT\",lastWeek:\"[I] dddd[s] LT\",sameElse:\"L\"},relativeTime:{future:\"om %s\",past:\"för %s sedan\",s:\"några sekunder\",ss:\"%d sekunder\",m:\"en minut\",mm:\"%d minuter\",h:\"en timme\",hh:\"%d timmar\",d:\"en dag\",dd:\"%d dagar\",M:\"en månad\",MM:\"%d månader\",y:\"ett år\",yy:\"%d år\"},dayOfMonthOrdinalParse:/\\d{1,2}(\\:e|\\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\":e\":1===t||2===t?\":a\":\":e\")},week:{dow:1,doy:4}})}(n(95093))},41113:e=>{\"use strict\";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41159:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(2501).A},41173:(e,t,n)=>{\"use strict\";e.exports=n.p+\"43e91ca3ff1311bf0f28.svg\"},41237:e=>{\"use strict\";e.exports=EvalError},41327:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=(r=n(81970))&&r.__esModule?r:{default:r},a={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement(\"ul\",{style:{display:\"block\"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:\"50px\",className:\"\",cssEase:\"ease\",customPaging:function(e){return o.default.createElement(\"button\",null,e+1)},dots:!1,dotsClass:\"slick-dots\",draggable:!0,easing:\"linear\",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:\"div\",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=a},41333:e=>{\"use strict\";e.exports=function(){if(\"function\"!=typeof Symbol||\"function\"!=typeof Object.getOwnPropertySymbols)return!1;if(\"symbol\"==typeof Symbol.iterator)return!0;var e={},t=Symbol(\"test\"),n=Object(t);if(\"string\"==typeof t)return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(t))return!1;if(\"[object Symbol]\"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if(\"function\"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if(\"function\"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(\"function\"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},41405:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(18745),a=n(94644),i=n(79039),l=n(67680),s=r.Int8Array,u=a.aTypedArray,c=a.exportTypedArrayMethod,d=[].toLocaleString,p=!!s&&i(function(){d.call(new s(1))});c(\"toLocaleString\",function(){return o(d,p?l(u(this)):u(this),l(arguments))},i(function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()})||!i(function(){s.prototype.toLocaleString.call([1,2])}))},41436:(e,t,n)=>{\"use strict\";var r=n(78227)(\"match\");e.exports=function(e){var t=/./;try{\"/./\"[e](t)}catch(n){try{return t[r]=!1,\"/./\"[e](t)}catch(e){}}return!1}},41488:function(e,t,n){!function(e){\"use strict\";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:[\"أقل من ثانية\",\"ثانية واحدة\",[\"ثانيتان\",\"ثانيتين\"],\"%d ثوان\",\"%d ثانية\",\"%d ثانية\"],m:[\"أقل من دقيقة\",\"دقيقة واحدة\",[\"دقيقتان\",\"دقيقتين\"],\"%d دقائق\",\"%d دقيقة\",\"%d دقيقة\"],h:[\"أقل من ساعة\",\"ساعة واحدة\",[\"ساعتان\",\"ساعتين\"],\"%d ساعات\",\"%d ساعة\",\"%d ساعة\"],d:[\"أقل من يوم\",\"يوم واحد\",[\"يومان\",\"يومين\"],\"%d أيام\",\"%d يومًا\",\"%d يوم\"],M:[\"أقل من شهر\",\"شهر واحد\",[\"شهران\",\"شهرين\"],\"%d أشهر\",\"%d شهرا\",\"%d شهر\"],y:[\"أقل من عام\",\"عام واحد\",[\"عامان\",\"عامين\"],\"%d أعوام\",\"%d عامًا\",\"%d عام\"]},r=function(e){return function(r,o,a,i){var l=t(r),s=n[e][t(r)];return 2===l&&(s=s[o?0:1]),s.replace(/%d/i,r)}},o=[\"جانفي\",\"فيفري\",\"مارس\",\"أفريل\",\"ماي\",\"جوان\",\"جويلية\",\"أوت\",\"سبتمبر\",\"أكتوبر\",\"نوفمبر\",\"ديسمبر\"];e.defineLocale(\"ar-dz\",{months:o,monthsShort:o,weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"D/‏M/‏YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/ص|م/,isPM:function(e){return\"م\"===e},meridiem:function(e,t,n){return e<12?\"ص\":\"م\"},calendar:{sameDay:\"[اليوم عند الساعة] LT\",nextDay:\"[غدًا عند الساعة] LT\",nextWeek:\"dddd [عند الساعة] LT\",lastDay:\"[أمس عند الساعة] LT\",lastWeek:\"dddd [عند الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"بعد %s\",past:\"منذ %s\",s:r(\"s\"),ss:r(\"s\"),m:r(\"m\"),mm:r(\"m\"),h:r(\"h\"),hh:r(\"h\"),d:r(\"d\"),dd:r(\"d\"),M:r(\"M\"),MM:r(\"M\"),y:r(\"y\"),yy:r(\"y\")},postformat:function(e){return e.replace(/,/g,\"،\")},week:{dow:0,doy:4}})}(n(95093))},41616:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>p});var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);const p=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Masters,path:i.fp.EntryPath}]})),n.length>0?a().createElement(d.A,{moduleData:n}):a().createElement(c.A,null))}},41734:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ga\",{months:[\"Eanáir\",\"Feabhra\",\"Márta\",\"Aibreán\",\"Bealtaine\",\"Meitheamh\",\"Iúil\",\"Lúnasa\",\"Meán Fómhair\",\"Deireadh Fómhair\",\"Samhain\",\"Nollaig\"],monthsShort:[\"Ean\",\"Feabh\",\"Márt\",\"Aib\",\"Beal\",\"Meith\",\"Iúil\",\"Lún\",\"M.F.\",\"D.F.\",\"Samh\",\"Noll\"],monthsParseExact:!0,weekdays:[\"Dé Domhnaigh\",\"Dé Luain\",\"Dé Máirt\",\"Dé Céadaoin\",\"Déardaoin\",\"Dé hAoine\",\"Dé Sathairn\"],weekdaysShort:[\"Domh\",\"Luan\",\"Máirt\",\"Céad\",\"Déar\",\"Aoine\",\"Sath\"],weekdaysMin:[\"Do\",\"Lu\",\"Má\",\"Cé\",\"Dé\",\"A\",\"Sa\"],longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Inniu ag] LT\",nextDay:\"[Amárach ag] LT\",nextWeek:\"dddd [ag] LT\",lastDay:\"[Inné ag] LT\",lastWeek:\"dddd [seo caite] [ag] LT\",sameElse:\"L\"},relativeTime:{future:\"i %s\",past:\"%s ó shin\",s:\"cúpla soicind\",ss:\"%d soicind\",m:\"nóiméad\",mm:\"%d nóiméad\",h:\"uair an chloig\",hh:\"%d uair an chloig\",d:\"lá\",dd:\"%d lá\",M:\"mí\",MM:\"%d míonna\",y:\"bliain\",yy:\"%d bliain\"},dayOfMonthOrdinalParse:/\\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?\"d\":e%10==2?\"na\":\"mh\")},week:{dow:1,doy:4}})}(n(95093))},41794:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ka\",{months:\"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი\".split(\"_\"),monthsShort:\"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ\".split(\"_\"),weekdays:{standalone:\"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი\".split(\"_\"),format:\"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს\".split(\"_\"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:\"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ\".split(\"_\"),weekdaysMin:\"კვ_ორ_სა_ოთ_ხუ_პა_შა\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[დღეს] LT[-ზე]\",nextDay:\"[ხვალ] LT[-ზე]\",lastDay:\"[გუშინ] LT[-ზე]\",nextWeek:\"[შემდეგ] dddd LT[-ზე]\",lastWeek:\"[წინა] dddd LT-ზე\",sameElse:\"L\"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(e,t,n){return\"ი\"===n?t+\"ში\":t+n+\"ში\"})},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,\"ის წინ\"):/წელი/.test(e)?e.replace(/წელი$/,\"წლის წინ\"):e},s:\"რამდენიმე წამი\",ss:\"%d წამი\",m:\"წუთი\",mm:\"%d წუთი\",h:\"საათი\",hh:\"%d საათი\",d:\"დღე\",dd:\"%d დღე\",M:\"თვე\",MM:\"%d თვე\",y:\"წელი\",yy:\"%d წელი\"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+\"-ლი\":e<20||e<=100&&e%20==0||e%100==0?\"მე-\"+e:e+\"-ე\"},week:{dow:1,doy:7}})}(n(95093))},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<l;){var c=(u=n[i])[0],d=e[c],p=u[1];if(s&&u[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(a)var g=a(d,p,c,e,t,f);if(!(void 0===g?o(p,d,3,a,f):g))return!1}}return!0}},41848:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"mi\",{months:\"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea\".split(\"_\"),monthsShort:\"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki\".split(\"_\"),monthsRegex:/(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,monthsShortRegex:/(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,weekdays:\"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei\".split(\"_\"),weekdaysShort:\"Ta_Ma_Tū_We_Tāi_Pa_Hā\".split(\"_\"),weekdaysMin:\"Ta_Ma_Tū_We_Tāi_Pa_Hā\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [i] HH:mm\",LLLL:\"dddd, D MMMM YYYY [i] HH:mm\"},calendar:{sameDay:\"[i teie mahana, i] LT\",nextDay:\"[apopo i] LT\",nextWeek:\"dddd [i] LT\",lastDay:\"[inanahi i] LT\",lastWeek:\"dddd [whakamutunga i] LT\",sameElse:\"L\"},relativeTime:{future:\"i roto i %s\",past:\"%s i mua\",s:\"te hēkona ruarua\",ss:\"%d hēkona\",m:\"he meneti\",mm:\"%d meneti\",h:\"te haora\",hh:\"%d haora\",d:\"he ra\",dd:\"%d ra\",M:\"he marama\",MM:\"%d marama\",y:\"he tau\",yy:\"%d tau\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},42032:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"default\",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(58928)},42054:e=>{var t=\"\\\\ud800-\\\\udfff\",n=\"[\"+t+\"]\",r=\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]\",o=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",a=\"[^\"+t+\"]\",i=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",l=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",s=\"(?:\"+r+\"|\"+o+\")?\",u=\"[\\\\ufe0e\\\\ufe0f]?\",c=u+s+\"(?:\\\\u200d(?:\"+[a,i,l].join(\"|\")+\")\"+u+s+\")*\",d=\"(?:\"+[a+r+\"?\",r,i,l,n].join(\"|\")+\")\",p=RegExp(o+\"(?=\"+o+\")|\"+d+c,\"g\");e.exports=function(e){return e.match(p)||[]}},42184:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReactFrameworkOverrides=void 0;var i=n(64436),l=a(n(20566)),s=a(n(97726)),u=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:l.default,agGroupRowRenderer:l.default,agDetailCellRenderer:s.default},n.reactUi=t,n}return o(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&\"getGui\"in t)},t}(i.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=u},42353:function(e,t,n){!function(e){\"use strict\";var t={1:\"1\",2:\"2\",3:\"3\",4:\"4\",5:\"5\",6:\"6\",7:\"7\",8:\"8\",9:\"9\",0:\"0\"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:[\"أقل من ثانية\",\"ثانية واحدة\",[\"ثانيتان\",\"ثانيتين\"],\"%d ثوان\",\"%d ثانية\",\"%d ثانية\"],m:[\"أقل من دقيقة\",\"دقيقة واحدة\",[\"دقيقتان\",\"دقيقتين\"],\"%d دقائق\",\"%d دقيقة\",\"%d دقيقة\"],h:[\"أقل من ساعة\",\"ساعة واحدة\",[\"ساعتان\",\"ساعتين\"],\"%d ساعات\",\"%d ساعة\",\"%d ساعة\"],d:[\"أقل من يوم\",\"يوم واحد\",[\"يومان\",\"يومين\"],\"%d أيام\",\"%d يومًا\",\"%d يوم\"],M:[\"أقل من شهر\",\"شهر واحد\",[\"شهران\",\"شهرين\"],\"%d أشهر\",\"%d شهرا\",\"%d شهر\"],y:[\"أقل من عام\",\"عام واحد\",[\"عامان\",\"عامين\"],\"%d أعوام\",\"%d عامًا\",\"%d عام\"]},o=function(e){return function(t,o,a,i){var l=n(t),s=r[e][n(t)];return 2===l&&(s=s[o?0:1]),s.replace(/%d/i,t)}},a=[\"يناير\",\"فبراير\",\"مارس\",\"أبريل\",\"مايو\",\"يونيو\",\"يوليو\",\"أغسطس\",\"سبتمبر\",\"أكتوبر\",\"نوفمبر\",\"ديسمبر\"];e.defineLocale(\"ar-ly\",{months:a,monthsShort:a,weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"D/‏M/‏YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/ص|م/,isPM:function(e){return\"م\"===e},meridiem:function(e,t,n){return e<12?\"ص\":\"م\"},calendar:{sameDay:\"[اليوم عند الساعة] LT\",nextDay:\"[غدًا عند الساعة] LT\",nextWeek:\"dddd [عند الساعة] LT\",lastDay:\"[أمس عند الساعة] LT\",lastWeek:\"dddd [عند الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"بعد %s\",past:\"منذ %s\",s:o(\"s\"),ss:o(\"s\"),m:o(\"m\"),mm:o(\"m\"),h:o(\"h\"),hh:o(\"h\"),d:o(\"d\"),dd:o(\"d\"),M:o(\"M\"),MM:o(\"M\"),y:o(\"y\"),yy:o(\"y\")},preparse:function(e){return e.replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},week:{dow:6,doy:12}})}(n(95093))},42603:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(25440),n(62953);var r=n(28161),o=n(90815),a=n(56203),i=n(81970),l=n.n(i),s=n(8085),u=n(47225),c=n(13075),d=n(79043),p=n(15664),f=n(20623),g=n(1845),h=n(60538),m=n(11848),v=n(17630),A=(0,m.Ay)(h.A)(function(e){return e.theme,{\"& .editor-view\":{minHeight:\"380px\",maxHeight:\"400px\",overflow:\"auto\",\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"& .ql-toolbar\":{backgroundColor:\"\".concat(v.T.accordianBg,\" !important\")}}});function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const b=function(e){var t=e.setEditContent,n=e.setSaveHelpSupport,h=e.type,m=e.id,v=e.data,E=e.getData,b=(0,i.useContext)(u.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,S=b.triggerShowLoader,T=b.triggerToastMsg,O=y((0,i.useState)(v),2),D=O[0],R=O[1],N=y((0,i.useState)(!1),2),L=N[0],P=N[1],M=v;return l().createElement(l().Fragment,null,l().createElement(A,{elevation:0},M!==D?l().createElement(d.B,{isVisible:L,message:(0,a.t)(\"CONFIRMATION_TEXT\"),onRequestClose:function(){return P(!1)},onButtonClick:function(){t(!1),P(!1)}}):l().createElement(l().Fragment,null),l().createElement(r.A,null,l().createElement(f.A,{editorHtml:D,setEditorHtml:R,showHtmlOptions:!0}))),l().createElement(o.A,{direction:\"row\",gap:2,justifyContent:\"end\",alignItems:\"center\"},l().createElement(o.A,{direction:\"row\",gap:2,justifyContent:\"end\",alignItems:\"center\"},l().createElement(p.A,{variant:\"outlined\",buttonName:(0,a.t)(\"CANCEL\"),fullwidth:!1,onButtonClick:function(){M===D?(t(!1),E()):P(!0)}}),l().createElement(p.A,{variant:\"contained\",buttonName:(0,a.t)(\"SAVE\"),fullwidth:!1,onButtonClick:function(){var e,r={};r.domain=w,r.endPoint=\"help\"==h?s.p.SAVE_SUPPORT_HELP_DATA:s.p.SAVE_SUPPORT_FAQ_DATA,r.customHeaders={\"country-code\":C.selectedCountry.countryCode,\"user-id\":C.UserDetails.user_id,Authorization:\"Bearer \".concat(C.AccessToken)},r.payLoad=\"help\"==h?{bu_id:C.selectedBusinessUnit.bu_id,help_support:D}:{bu_id:C.selectedBusinessUnit.bu_id,faq:D},r.triggerLoader=S,null===(e=(0,g.L4)(r))||void 0===e||e.then(function(e){var r;if(400!=e.statusCode)throw(0,c.mN)(e)&&(t(!1),E(),T({message:e,type:\"success\"}),n(!0)),T({message:null==e?void 0:e.error,type:\"error\"}),new Error(null==e||null===(r=e.data)||void 0===r?void 0:r.errorMessage);!function(){var e,n={};n.domain=w,n.endPoint=\"help\"==h?s.p.UPDATE_SUPPORT_HELP_DATA.replace(\"__ID__\",m):s.p.UPDATE_SUPPORT_FAQ_DATA.replace(\"__ID__\",m),n.customHeaders={\"country-code\":C.selectedCountry.countryCode,\"user-id\":C.UserDetails.user_id,Authorization:\"Bearer \".concat(C.AccessToken)},n.payLoad=\"help\"==h?{bu_id:C.selectedBusinessUnit.bu_id,help_support:D}:{faq:D,bu_id:C.selectedBusinessUnit.bu_id},n.triggerLoader=S,null===(e=(0,g.l$)(n))||void 0===e||e.then(function(e){e?(t(!1),E(),T({message:e,type:\"success\"})):T({message:null==e?void 0:e.error,type:\"error\"})})}()})}}))))}},42634:()=>{},42670:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},42762:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(43802).trim;r({target:\"String\",proto:!0,forced:n(60706)(\"trim\")},{trim:function(){return o(this)}})},42787:(e,t,n)=>{\"use strict\";var r=n(39297),o=n(94901),a=n(48981),i=n(66119),l=n(12211),s=i(\"IE_PROTO\"),u=Object,c=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=a(e);if(r(t,s))return t[s];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},43004:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-sg\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},43066:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},43145:(e,t,n)=>{\"use strict\";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},43174:(e,t,n)=>{\"use strict\";n.d(t,{J:()=>m});var r={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,scale: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},o=n(36289),a=!1,i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&\"boolean\"!=typeof e},c=(0,o.A)(function(e){return s(e)?e:e.replace(i,\"-$&\").toLowerCase()}),d=function(e,t){switch(e){case\"animation\":case\"animationName\":if(\"string\"==typeof t)return t.replace(l,function(e,t,n){return g={name:t,styles:n,next:g},t})}return 1===r[e]||s(e)||\"number\"!=typeof t||0===t?t:t+\"px\"},p=\"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.\";function f(e,t,n){if(null==n)return\"\";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case\"boolean\":return\"\";case\"object\":var o=n;if(1===o.anim)return g={name:o.name,styles:o.styles,next:g},o.name;var i=n;if(void 0!==i.styles){var l=i.next;if(void 0!==l)for(;void 0!==l;)g={name:l.name,styles:l.styles,next:g},l=l.next;return i.styles+\";\"}return function(e,t,n){var r=\"\";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+\";\";else for(var i in n){var l=n[i];if(\"object\"!=typeof l){var s=l;null!=t&&void 0!==t[s]?r+=i+\"{\"+t[s]+\"}\":u(s)&&(r+=c(i)+\":\"+d(i,s)+\";\")}else{if(\"NO_COMPONENT_SELECTOR\"===i&&a)throw new Error(p);if(!Array.isArray(l)||\"string\"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var g=f(e,t,l);switch(i){case\"animation\":case\"animationName\":r+=c(i)+\":\"+g+\";\";break;default:r+=i+\"{\"+g+\"}\"}}else for(var h=0;h<l.length;h++)u(l[h])&&(r+=c(i)+\":\"+d(i,l[h])+\";\")}}return r}(e,t,n);case\"function\":if(void 0!==e){var s=g,h=n(e);return g=s,f(e,t,h)}}var m=n;if(null==t)return m;var v=t[m];return void 0!==v?v:m}var g,h=/label:\\s*([^\\s;{]+)\\s*(;|$)/g;function m(e,t,n){if(1===e.length&&\"object\"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o=\"\";g=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=f(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=f(n,t,e[i]),r&&(o+=a[i]);h.lastIndex=0;for(var l,s=\"\";null!==(l=h.exec(o));)s+=\"-\"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:g}}},43251:(e,t,n)=>{\"use strict\";var r=n(76080),o=n(69565),a=n(35548),i=n(48981),l=n(26198),s=n(70081),u=n(50851),c=n(44209),d=n(18727),p=n(94644).aTypedArrayConstructor,f=n(75854);e.exports=function(e){var t,n,g,h,m,v,A,y,E=a(this),b=i(e),_=arguments.length,C=_>1?arguments[1]:void 0,w=void 0!==C,S=u(b);if(S&&!c(S))for(y=(A=s(b,S)).next,b=[];!(v=o(y,A)).done;)b.push(v.value);for(w&&_>2&&(C=r(C,arguments[2])),n=l(b),g=new(p(E))(n),h=d(g),t=0;n>t;t++)m=w?C(b[t],t):b[t],g[t]=h?f(m):+m;return g}},43356:(e,t,n)=>{\"use strict\";n.d(t,{l:()=>d}),n(34782),n(67945),n(52811);var r,o,a=n(17437),i=n(28161),l=n(11848),s=n(17630);function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c=(0,a.i7)(r||(r=u([\"\\n0% {\\n  opacity: 0;\\n}\\n30% {\\n  opacity: 0.1;\\n}\\n50% {\\n  opacity: 0.3;\\n}\\n75% {\\n  opacity: 0.5;\\n}\\n90% {\\n  opacity: 0.8;\\n}\\n100% {\\n  opacity: 1;\\n},\"]))),d=((0,l.Ay)(i.A)(o||(o=u([\"\\n  animation: \",\" 1s cubic-bezier(0; -0.26; 0.96; 0.64);\\n  background: #f5f5f5;\\n  position: absolute;\\n  top: 80px;\\n  left: 72px;\\n  width: calc(100% - 72px);\\n  height: calc(100% - 80px);\\n  padding: 25px;\\n  paddingbottom: 12px;\\n  overflowy: auto;\\n   \\n  \\n  .attendance-summary-table {\\n    .ag-root-wrapper .ag-row .ag-cell {\\n      padding: 0px !important;\\n      height: auto;\\n    }\\n    .ag-root-wrapper .ag-row {\\n      align-items: start;\\n    }\\n  }\\n  .collapsible-table-container {\\n    border: 1px solid \",\";\\n    height: calc(100vh - 300px);\\n    overflow: auto;\\n  }\\n  .MuiTable-root {\\n    border-collapse: inherit;\\n    border-radius: 5px;\\n\\n    .MuiTableBody-root {\\n      .MuiTableRow-root {\\n        &:last-child {\\n          .MuiTableCell-root {\\n            border-bottom: none;\\n            border-bottom-right-radius: 5px;\\n            border-bottom-left-radius: 5px;\\n          }\\n        }\\n      }\\n    }\\n  }\\n  .MuiTableHead-root {\\n    background-color: \",';\\n    border-radius: 5px;\\n    position: sticky;\\n    height: 42px;\\n    width: 100%;\\n    top: 0px;\\n    z-index: 1000;\\n    .MuiTableRow-root {\\n      font-family: \"NotoSans-Regular\";\\n      font-size: 14px;\\n      font-weight: 600;\\n\\n      .MuiTableCell-root {\\n        padding: 16px;\\n        border-color: ',\";\\n      }\\n    }\\n  }\\n  .MuiTableRow-root {\\n    vertical-align: revert;\\n    border-radius: 5px;\\n    .MuiTableCell-root {\\n      padding: 8px 16px;\\n      &:first-child {\\n        width: 90%;\\n      }\\n      &:last-child {\\n        text-align: center;\\n      }\\n    }\\n  }\\n  .MuiTableCell-root {\\n    border-color: \",\";\\n  }\\n  .MuiCollapse-wrapper {\\n    background-color: \",\";\\n  }\\n\\n\"])),c,s.w.palette.grey[300],s.w.palette.secondary.light,s.w.palette.grey[800],s.w.palette.secondary.light,s.T.accordianBg),(0,l.Ay)(i.A)(function(e){return{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\",\"& .collapse-inner-table\":{height:\" 240px\",\"& .ag-root-wrapper-body\":{minHeight:\"212px !important\"},\"& .ag-header\":{borderBottom:\"none  !important\"},\"& .ag-root-wrapper \":{border:\"none !important\"}},\"& .MuiTableHead-root\":{backgroundColor:e.theme.palette.secondary.light},\"& .MuiTableRow-root\":{borderRadius:\"4px\",margin:\"8px 0px\"}}}))},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){\"__proto__\"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43381:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e1383e74eaee4a4ca015.woff2\"},43457:(e,t,n)=>{\"use strict\";n.d(t,{_A:()=>Qt,ff:()=>Wt,Lw:()=>Kt}),n(34782),n(67945),n(52811);var r=n(17437),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,\"function\"==typeof SuppressedError&&SuppressedError;var i=n(81970),l=n.n(i),s=n(2833),u=n.n(s),c=\"-ms-\",d=\"-moz-\",p=\"-webkit-\",f=\"comm\",g=\"rule\",h=\"decl\",m=\"@keyframes\",v=Math.abs,A=String.fromCharCode,y=Object.assign;function E(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function C(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function S(e,t,n){return e.slice(t,n)}function T(e){return e.length}function O(e){return e.length}function D(e,t){return t.push(e),e}function R(e,t){return e.filter(function(e){return!b(e,t)})}var N=1,L=1,P=0,M=0,x=0,I=\"\";function k(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:N,column:L,length:i,return:\"\",siblings:l}}function B(e,t){return y(k(\"\",null,null,\"\",null,null,0,e.siblings),e,{length:-e.length},t)}function F(e){for(;e.root;)e=B(e.root,{children:[e]});D(e,e.siblings)}function j(){return x=M>0?w(I,--M):0,L--,10===x&&(L=1,N--),x}function H(){return x=M<P?w(I,M++):0,L++,10===x&&(L=1,N++),x}function U(){return w(I,M)}function Y(){return M}function G(e,t){return S(I,e,t)}function z(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 V(e){return E(G(M-1,Q(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(x=U())&&x<33;)H();return z(e)>2||z(x)>3?\"\":\" \"}function W(e,t){for(;--t&&H()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return G(e,Y()+(t<6&&32==U()&&32==H()))}function Q(e){for(;H();)switch(x){case e:return M;case 34:case 39:34!==e&&39!==e&&Q(x);break;case 40:41===e&&Q(e);break;case 92:H()}return M}function K(e,t){for(;H()&&e+x!==57&&(e+x!==84||47!==U()););return\"/*\"+G(t,M-1)+\"*\"+A(47===e?e:H())}function $(e){for(;!z(U());)H();return G(e,M)}function X(e,t){for(var n=\"\",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||\"\";return n}function J(e,t,n,r){switch(e.type){case\"@layer\":if(e.children.length)break;case\"@import\":case h:return e.return=e.return||e.value;case f:return\"\";case m:return e.return=e.value+\"{\"+X(e.children,r)+\"}\";case g:if(!T(e.value=e.props.join(\",\")))return\"\"}return T(n=X(e.children,r))?e.return=e.value+\"{\"+n+\"}\":\"\"}function Z(e,t,n){switch(function(e,t){return 45^w(e,0)?(((t<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}(e,t)){case 5103:return p+\"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return p+e+e;case 4789:return d+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return p+e+d+e+c+e+e;case 5936:switch(w(e,t+11)){case 114:return p+e+c+_(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return p+e+c+_(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return p+e+c+_(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}case 6828:case 4268:case 2903:return p+e+c+e+e;case 6165:return p+e+c+\"flex-\"+e+e;case 5187:return p+e+_(e,/(\\w+).+(:[^]+)/,p+\"box-$1$2\"+c+\"flex-$1$2\")+e;case 5443:return p+e+c+\"flex-item-\"+_(e,/flex-|-self/g,\"\")+(b(e,/flex-|baseline/)?\"\":c+\"grid-row-\"+_(e,/flex-|-self/g,\"\"))+e;case 4675:return p+e+c+\"flex-line-pack\"+_(e,/align-content|flex-|-self/g,\"\")+e;case 5548:return p+e+c+_(e,\"shrink\",\"negative\")+e;case 5292:return p+e+c+_(e,\"basis\",\"preferred-size\")+e;case 6060:return p+\"box-\"+_(e,\"-grow\",\"\")+p+e+c+_(e,\"grow\",\"positive\")+e;case 4554:return p+_(e,/([^-])(transform)/g,\"$1\"+p+\"$2\")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,p+\"$1\"),/(image-set)/,p+\"$1\"),e,\"\")+e;case 5495:case 3959:return _(e,/(image-set\\([^]*)/,p+\"$1$`$1\");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,p+\"box-pack:$3\"+c+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+p+e+e;case 4200:if(!b(e,/flex-|baseline/))return c+\"grid-column-align\"+S(e,t)+e;break;case 2592:case 3360:return c+_(e,\"template-\",\"\")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,b(e.props,/grid-\\w+-end/)})?~C(e+(n=n[t].value),\"span\",0)?e:c+_(e,\"-start\",\"\")+e+c+\"grid-row-span:\"+(~C(n,\"span\",0)?b(n,/\\d+/):+b(n,/\\d+/)-+b(e,/\\d+/))+\";\":c+_(e,\"-start\",\"\")+e;case 4896:case 4128:return n&&n.some(function(e){return b(e.props,/grid-\\w+-start/)})?e:c+_(_(e,\"-end\",\"-span\"),\"span \",\"\")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,p+\"$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(T(e)-1-t>6)switch(w(e,t+1)){case 109:if(45!==w(e,t+4))break;case 102:return _(e,/(.+:)(.+)-([^]+)/,\"$1\"+p+\"$2-$3$1\"+d+(108==w(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~C(e,\"stretch\",0)?Z(_(e,\"stretch\",\"fill-available\"),t,n)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\\d+)(\\s*\\/\\s*(span)?\\s*(\\d+))?(.*)/,function(t,n,r,o,a,i,l){return c+n+\":\"+r+l+(o?c+n+\"-span:\"+(a?i:+i-+r)+l:\"\")+e});case 4949:if(121===w(e,t+6))return _(e,\":\",\":\"+p)+e;break;case 6444:switch(w(e,45===w(e,14)?18:11)){case 120:return _(e,/(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/,\"$1\"+p+(45===w(e,14)?\"inline-\":\"\")+\"box$3$1\"+p+\"$2$3$1\"+c+\"$2box$3\")+e;case 100:return _(e,\":\",\":\"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,\"scroll-\",\"scroll-snap-\")+e}return e}function ee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Z(e.value,e.length,n));case m:return X([B(e,{value:_(e.value,\"@\",\"@\"+p)})],r);case g:if(e.length)return function(e,t){return e.map(t).join(\"\")}(n=e.props,function(t){switch(b(t,r=/(::plac\\w+|:read-\\w+)/)){case\":read-only\":case\":read-write\":F(B(e,{props:[_(t,/:(read-\\w+)/,\":-moz-$1\")]})),F(B(e,{props:[t]})),y(e,{props:R(n,r)});break;case\"::placeholder\":F(B(e,{props:[_(t,/:(plac\\w+)/,\":\"+p+\"input-$1\")]})),F(B(e,{props:[_(t,/:(plac\\w+)/,\":-moz-$1\")]})),F(B(e,{props:[_(t,/:(plac\\w+)/,c+\"input-$1\")]})),F(B(e,{props:[t]})),y(e,{props:R(n,r)})}return\"\"})}}function te(e){return function(e){return I=\"\",e}(ne(\"\",null,null,null,[\"\"],e=function(e){return N=L=1,P=T(I=e),M=0,[]}(e),0,[0],e))}function ne(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,p=0,f=0,g=0,h=1,m=1,y=1,E=0,b=\"\",S=o,O=a,R=r,N=b;m;)switch(g=E,E=H()){case 40:if(108!=g&&58==w(N,d-1)){-1!=C(N+=_(V(E),\"&\",\"&\\f\"),\"&\\f\",v(u?l[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:N+=V(E);break;case 9:case 10:case 13:case 32:N+=q(g);break;case 92:N+=W(Y()-1,7);continue;case 47:switch(U()){case 42:case 47:D(oe(K(H(),Y()),t,n,s),s);break;default:N+=\"/\"}break;case 123*h:l[u++]=T(N)*y;case 125*h:case 59:case 0:switch(E){case 0:case 125:m=0;case 59+c:-1==y&&(N=_(N,/\\f/g,\"\")),f>0&&T(N)-d&&D(f>32?ae(N+\";\",r,n,d-1,s):ae(_(N,\" \",\"\")+\";\",r,n,d-2,s),s);break;case 59:N+=\";\";default:if(D(R=re(N,t,n,u,c,o,l,b,S=[],O=[],d,a),a),123===E)if(0===c)ne(N,t,R,R,S,a,d,l,O);else switch(99===p&&110===w(N,3)?100:p){case 100:case 108:case 109:case 115:ne(e,R,R,r&&D(re(e,R,R,0,0,o,l,b,o,S=[],d,O),O),o,O,d,l,r?S:O);break;default:ne(N,R,R,R,[\"\"],O,0,l,O)}}u=c=f=0,h=y=1,b=N=\"\",d=i;break;case 58:d=1+T(N),f=g;default:if(h<1)if(123==E)--h;else if(125==E&&0==h++&&125==j())continue;switch(N+=A(E),E*h){case 38:y=c>0?1:(N+=\"\\f\",-1);break;case 44:l[u++]=(T(N)-1)*y,y=1;break;case 64:45===U()&&(N+=V(H())),p=U(),c=d=T(b=N+=$(Y())),E++;break;case 45:45===g&&2==T(N)&&(h=0)}}return a}function re(e,t,n,r,o,a,i,l,s,u,c,d){for(var p=o-1,f=0===o?a:[\"\"],h=O(f),m=0,A=0,y=0;m<r;++m)for(var b=0,C=S(e,p+1,p=v(A=i[m])),w=e;b<h;++b)(w=E(A>0?f[b]+\" \"+C:_(C,/&\\f/g,f[b])))&&(s[y++]=w);return k(e,t,n,0===o?g:l,s,u,c,d)}function oe(e,t,n,r){return k(e,t,n,f,A(x),S(e,2,-2),0,r)}function ae(e,t,n,r,o){return k(e,t,n,h,S(e,0,r),S(e,r+1,-1),r,o)}var ie={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},le=\"undefined\"!=typeof process&&void 0!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}&&({ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.REACT_APP_SC_ATTR||{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SC_ATTR)||\"data-styled\",se=\"active\",ue=\"data-styled-version\",ce=\"6.1.19\",de=\"/*!sc*/\\n\",pe=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,fe=Boolean(\"boolean\"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:\"undefined\"!=typeof process&&void 0!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}&&void 0!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.REACT_APP_SC_DISABLE_SPEEDY&&\"\"!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.REACT_APP_SC_DISABLE_SPEEDY?\"false\"!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.REACT_APP_SC_DISABLE_SPEEDY&&{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.REACT_APP_SC_DISABLE_SPEEDY:\"undefined\"!=typeof process&&void 0!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}&&void 0!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SC_DISABLE_SPEEDY&&\"\"!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SC_DISABLE_SPEEDY&&\"false\"!=={ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SC_DISABLE_SPEEDY&&{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SC_DISABLE_SPEEDY),ge=(new Set,Object.freeze([])),he=Object.freeze({});var me=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\",\"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\",\"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\"]),ve=/[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^`{|}~-]+/g,Ae=/(^-|-$)/g;function ye(e){return e.replace(ve,\"-\").replace(Ae,\"\")}var Ee=/(a)(d)/gi,be=function(e){return String.fromCharCode(e+(e>25?39:97))};function _e(e){var t,n=\"\";for(t=Math.abs(e);t>52;t=t/52|0)n=be(t%52)+n;return(be(t%52)+n).replace(Ee,\"$1-$2\")}var Ce,we=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Se=function(e){return we(5381,e)};function Te(e){return\"string\"==typeof e&&!0}var Oe=\"function\"==typeof Symbol&&Symbol.for,De=Oe?Symbol.for(\"react.memo\"):60115,Re=Oe?Symbol.for(\"react.forward_ref\"):60112,Ne={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Pe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Me=((Ce={})[Re]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[De]=Pe,Ce);function xe(e){return(\"type\"in(t=e)&&t.type.$$typeof)===De?Pe:\"$$typeof\"in e?Me[e.$$typeof]:Ne;var t}var Ie=Object.defineProperty,ke=Object.getOwnPropertyNames,Be=Object.getOwnPropertySymbols,Fe=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,He=Object.prototype;function Ue(e,t,n){if(\"string\"!=typeof t){if(He){var r=je(t);r&&r!==He&&Ue(e,r,n)}var o=ke(t);Be&&(o=o.concat(Be(t)));for(var a=xe(e),i=xe(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Le||n&&n[s]||i&&s in i||a&&s in a)){var u=Fe(t,s);try{Ie(e,s,u)}catch(e){}}}}return e}function Ye(e){return\"function\"==typeof e}function Ge(e){return\"object\"==typeof e&&\"styledComponentId\"in e}function ze(e,t){return e&&t?\"\".concat(e,\" \").concat(t):e||t||\"\"}function Ve(e,t){if(0===e.length)return\"\";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function qe(e){return null!==e&&\"object\"==typeof e&&e.constructor.name===Object.name&&!(\"props\"in e&&e.$$typeof)}function We(e,t,n){if(void 0===n&&(n=!1),!n&&!qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=We(e[r],t[r]);else if(qe(t))for(var r in t)e[r]=We(e[r],t[r]);return e}function Qe(e,t){Object.defineProperty(e,\"toString\",{value:t})}function Ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 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(\", \")):\"\"))}var $e=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Ke(16,\"\".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=(a=0,t.length);a<l;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t=\"\";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+=\"\".concat(this.tag.getRule(a)).concat(de);return t},e}(),Xe=new Map,Je=new Map,Ze=1,et=function(e){if(Xe.has(e))return Xe.get(e);for(;Je.has(Ze);)Ze++;var t=Ze++;return Xe.set(e,t),Je.set(t,e),t},tt=function(e,t){Ze=t+1,Xe.set(e,t),Je.set(t,e)},nt=\"style[\".concat(le,\"][\").concat(ue,'=\"').concat(ce,'\"]'),rt=new RegExp(\"^\".concat(le,'\\\\.g(\\\\d+)\\\\[id=\"([\\\\w\\\\d-]+)\"\\\\].*?\"([^\"]*)')),ot=function(e,t,n){for(var r,o=n.split(\",\"),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},at=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:\"\").split(de),o=[],a=0,i=r.length;a<i;a++){var l=r[a].trim();if(l){var s=l.match(rt);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(tt(c,u),ot(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},it=function(e){for(var t=document.querySelectorAll(nt),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(le)!==se&&(at(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function lt(){return n.nc}var st=function(e){var t=document.head,n=e||t,r=document.createElement(\"style\"),o=function(e){var t=Array.from(e.querySelectorAll(\"style[\".concat(le,\"]\")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(le,se),r.setAttribute(ue,ce);var i=lt();return i&&r.setAttribute(\"nonce\",i),n.insertBefore(r,a),r},ut=function(){function e(e){this.element=st(e),this.element.appendChild(document.createTextNode(\"\")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Ke(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:\"\"},e}(),ct=function(){function e(e){this.element=st(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:\"\"},e}(),dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:\"\"},e}(),pt=pe,ft={isServer:!pe,useCSSOMInjection:!fe},gt=function(){function e(e,t,n){void 0===e&&(e=he),void 0===t&&(t={});var r=this;this.options=o(o({},ft),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&pt&&(pt=!1,it(this)),Qe(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r=\"\",o=function(n){var o=function(e){return Je.get(e)}(n);if(void 0===o)return\"continue\";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return\"continue\";var l=\"\".concat(le,\".g\").concat(n,'[id=\"').concat(o,'\"]'),s=\"\";void 0!==a&&a.forEach(function(e){e.length>0&&(s+=\"\".concat(e,\",\"))}),r+=\"\".concat(i).concat(l,'{content:\"').concat(s,'\"}').concat(de)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return et(e)},e.prototype.rehydrate=function(){!this.server&&pe&&it(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(o(o({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new dt(n):t?new ut(n):new ct(n)}(this.options),new $e(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(et(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(et(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(et(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ht=/&/g,mt=/^\\s*\\/\\/.*$/gm;function vt(e,t){return e.map(function(e){return\"rule\"===e.type&&(e.value=\"\".concat(t,\" \").concat(e.value),e.value=e.value.replaceAll(\",\",\",\".concat(t,\" \")),e.props=e.props.map(function(e){return\"\".concat(t,\" \").concat(e)})),Array.isArray(e.children)&&\"@keyframes\"!==e.type&&(e.children=vt(e.children,t)),e})}function At(e){var t,n,r,o=void 0===e?he:e,a=o.options,i=void 0===a?he:a,l=o.plugins,s=void 0===l?ge:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,\"\").length>0?\".\".concat(t):e},c=s.slice();c.push(function(e){e.type===g&&e.value.includes(\"&\")&&(e.props[0]=e.props[0].replace(ht,n).replace(r,u))}),i.prefix&&c.push(ee),c.push(J);var d=function(e,o,a,l){void 0===o&&(o=\"\"),void 0===a&&(a=\"\"),void 0===l&&(l=\"&\"),t=l,n=o,r=new RegExp(\"\\\\\".concat(n,\"\\\\b\"),\"g\");var s=e.replace(mt,\"\"),u=te(a||o?\"\".concat(a,\" \").concat(o,\" { \").concat(s,\" }\"):s);i.namespace&&(u=vt(u,i.namespace));var d,p,f,g=[];return X(u,(d=c.concat((f=function(e){return g.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=O(d),function(e,t,n,r){for(var o=\"\",a=0;a<p;a++)o+=d[a](e,t,n,r)||\"\";return o})),g};return d.hash=s.length?s.reduce(function(e,t){return t.name||Ke(15),we(e,t.name)},5381).toString():\"\",d}var yt=new gt,Et=At(),bt=l().createContext({shouldForwardProp:void 0,styleSheet:yt,stylis:Et}),_t=(bt.Consumer,l().createContext(void 0));function Ct(){return(0,i.useContext)(bt)}function wt(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=Ct().styleSheet,a=(0,i.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,i.useMemo)(function(){return At({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,i.useEffect)(function(){u()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var c=(0,i.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:s}},[e.shouldForwardProp,a,s]);return l().createElement(bt.Provider,{value:c},l().createElement(_t.Provider,{value:s},e.children))}var St=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Et);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,\"@keyframes\"))},this.name=e,this.id=\"sc-keyframes-\".concat(e),this.rules=t,Qe(this,function(){throw Ke(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Et),this.name+e.hash},e}(),Tt=function(e){return e>=\"A\"&&e<=\"Z\"};function Ot(e){for(var t=\"\",n=0;n<e.length;n++){var r=e[n];if(1===n&&\"-\"===r&&\"-\"===e[0])return e;Tt(r)?t+=\"-\"+r.toLowerCase():t+=r}return t.startsWith(\"ms-\")?\"-\"+t:t}var Dt=function(e){return null==e||!1===e||\"\"===e},Rt=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Dt(i)&&(Array.isArray(i)&&i.isCss||Ye(i)?r.push(\"\".concat(Ot(o),\":\"),i,\";\"):qe(i)?r.push.apply(r,a(a([\"\".concat(o,\" {\")],Rt(i),!1),[\"}\"],!1)):r.push(\"\".concat(Ot(o),\": \").concat((t=o,null==(n=i)||\"boolean\"==typeof n||\"\"===n?\"\":\"number\"!=typeof n||0===n||t in ie||t.startsWith(\"--\")?String(n).trim():\"\".concat(n,\"px\")),\";\")))}return r};function Nt(e,t,n,r){return Dt(e)?[]:Ge(e)?[\".\".concat(e.styledComponentId)]:Ye(e)?!Ye(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Nt(e(t),t,n,r):e instanceof St?n?(e.inject(n,r),[e.getName(r)]):[e]:qe(e)?Rt(e):Array.isArray(e)?Array.prototype.concat.apply(ge,e.map(function(e){return Nt(e,t,n,r)})):[e.toString()];var o}function Lt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ye(n)&&!Ge(n))return!1}return!0}var Pt=Se(ce),Mt=function(){function e(e,t,n){this.rules=e,this.staticRulesId=\"\",this.isStatic=(void 0===n||n.isStatic)&&Lt(e),this.componentId=t,this.baseHash=we(Pt,t),this.baseStyle=n,gt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):\"\";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ze(r,this.staticRulesId);else{var o=Ve(Nt(this.rules,e,t,n)),a=_e(we(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,\".\".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=ze(r,a),this.staticRulesId=a}else{for(var l=we(this.baseHash,n.hash),s=\"\",u=0;u<this.rules.length;u++){var c=this.rules[u];if(\"string\"==typeof c)s+=c;else if(c){var d=Ve(Nt(c,e,t,n));l=we(l,d+u),s+=d}}if(s){var p=_e(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,\".\".concat(p),void 0,this.componentId)),r=ze(r,p)}}return r},e}(),xt=l().createContext(void 0);xt.Consumer;var It={};function kt(e,t,n){var r=Ge(e),a=e,s=!Te(e),u=t.attrs,c=void 0===u?ge:u,d=t.componentId,p=void 0===d?function(e,t){var n=\"string\"!=typeof e?\"sc\":ye(e);It[n]=(It[n]||0)+1;var r=\"\".concat(n,\"-\").concat(function(e){return _e(Se(e)>>>0)}(ce+n+It[n]));return t?\"\".concat(t,\"-\").concat(r):r}(t.displayName,t.parentComponentId):d,f=t.displayName,g=void 0===f?function(e){return Te(e)?\"styled.\".concat(e):\"Styled(\".concat(function(e){return e.displayName||e.name||\"Component\"}(e),\")\")}(e):f,h=t.displayName&&t.componentId?\"\".concat(ye(t.displayName),\"-\").concat(t.componentId):t.componentId||p,m=r&&a.attrs?a.attrs.concat(c).filter(Boolean):c,v=t.shouldForwardProp;if(r&&a.shouldForwardProp){var A=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;v=function(e,t){return A(e,t)&&y(e,t)}}else v=A}var E=new Mt(n,h,r?a.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,p=l().useContext(xt),f=Ct(),g=e.shouldForwardProp||f.shouldForwardProp,h=function(e,t,n){return void 0===n&&(n=he),e.theme!==n.theme&&e.theme||t||n.theme}(t,p,s)||he,m=function(e,t,n){for(var r,a=o(o({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var l=Ye(r=e[i])?r(a):r;for(var s in l)a[s]=\"className\"===s?ze(a[s],l[s]):\"style\"===s?o(o({},a[s]),l[s]):l[s]}return t.className&&(a.className=ze(a.className,t.className)),a}(r,t,h),v=m.as||d,A={};for(var y in m)void 0===m[y]||\"$\"===y[0]||\"as\"===y||\"theme\"===y&&m.theme===h||(\"forwardedAs\"===y?A.as=m.forwardedAs:g&&!g(y,v)||(A[y]=m[y]));var E=function(e,t){var n=Ct();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,m),b=ze(u,c);return E&&(b+=\" \"+E),m.className&&(b+=\" \"+m.className),A[Te(v)&&!me.has(v)?\"class\":\"className\"]=b,n&&(A.ref=n),(0,i.createElement)(v,A)}(_,e,t)}b.displayName=g;var _=l().forwardRef(b);return _.attrs=m,_.componentStyle=E,_.displayName=g,_.shouldForwardProp=v,_.foldedComponentIds=r?ze(a.foldedComponentIds,a.styledComponentId):\"\",_.styledComponentId=h,_.target=r?a.target:e,Object.defineProperty(_,\"defaultProps\",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)We(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Qe(_,function(){return\".\".concat(_.styledComponentId)}),s&&Ue(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Bt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Ft=function(e){return Object.assign(e,{isCss:!0})};function jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ye(e)||qe(e))return Ft(Nt(Bt(ge,a([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&\"string\"==typeof r[0]?Nt(r):Ft(Nt(Bt(r,t)))}function Ht(e,t,n){if(void 0===n&&(n=he),!t)throw Ke(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,jt.apply(void 0,a([r],o,!1)))};return r.attrs=function(r){return Ht(e,t,o(o({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ht(e,t,o(o({},n),r))},r}var Ut,Yt,Gt,zt=function(e){return Ht(kt,e)},Vt=zt;function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}me.forEach(function(e){Vt[e]=zt(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Lt(e),gt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(Ve(Nt(this.rules,t,n,r)),\"\"),a=this.componentId+e;n.insertRules(a,a,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&gt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return\"\";var n=lt(),r=Ve([n&&'nonce=\"'.concat(n,'\"'),\"\".concat(le,'=\"true\"'),\"\".concat(ue,'=\"').concat(ce,'\"')].filter(Boolean),\" \");return\"<style \".concat(r,\">\").concat(t,\"</style>\")},this.getStyleTags=function(){if(e.sealed)throw Ke(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Ke(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[le]=\"\",t[ue]=ce,t.dangerouslySetInnerHTML={__html:n},t),a=lt();return a&&(r.nonce=a),[l().createElement(\"style\",o({},r,{key:\"sc-0-0\"}))]},this.seal=function(){e.sealed=!0},this.instance=new gt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Ke(2);return l().createElement(wt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Ke(3)}}(),\"__sc-\".concat(le,\"__\");var Wt=jt(Ut||(Ut=qt([\"\\nbackground: transparent;\\nbackground: #F5F5F5;\\nposition: absolute;\\ntop: 80px;\\nleft: 72px;\\nwidth: calc(100% - 72px);\\nheight: calc(100% - 80px);\\npadding: 25px;\\noverflow-y: auto;\\n\"]))),Qt=(0,r.i7)(Yt||(Yt=qt([\"\\n0%{\\n          opacity:0;\\n}\\n0 % {\\n          opacity: 0;\\n}\\n30 % {\\n          opacity: 0.1;\\n}\\n50 % {\\n          opacity: 0.3;\\n}\\n75 % {\\n          opacity: 0.5;\\n}\\n90 % {\\n          opacity: 0.8;\\n}\\n100 % {\\n          opacity: 1;\\n}, \"]))),Kt=jt(Gt||(Gt=qt([\"\\nbackgroundColor: transparent;\\n position: absolute,\\n              zIndex: 1000,\\n              width: 100%,\\n              height: 100%,\\n              padding: 20px,\\n              transition: all 0.3s ease-in-out,\\n              top: 0,\\n              left: 0,\\n              right: 0,\\n              bottom: 0,\\n              background-color: rgba(0,0,0,0.5),\\n              opacity: 0.4,\\n              cursor: not-allowed,\\n\"])))},43563:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>R}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(25440),n(42762),n(23500),n(62953),n(76031);var r=n(80663),o=n(56203),a=n(81970),i=n.n(a),l=n(8085),s=n(34358),u=n(37998),c=n(47225),d=n(70380),p=n(43605),f=n(8676),g=n(51545),h=(0,f.A)(g.A)(function(e){return e.theme,{\"& .table-row-click\":{\"& .ag-row\":{cursor:\"pointer !important\"}}}}),m=function(e){return\"COMPLETED\"===e?{status:\"Completed\",color:\"green-bg\"}:\"INPROGRESS\"===e?{status:\"In Progress\",color:\"yellow-bg\"}:{status:\"Failed\",color:\"red-bg\"}},v=n(13075),A=function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=l.p.ALL_DOWNLOAD_HISTORIES,i.payLoad=r,i.customHeaders={\"user-id\":null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id,\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"module-name\":\"RETAILER_BGP\",Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,v.AT)(\"get\",i,!0)},y=n(56254);function E(e){return E=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},E(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=E(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==E(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return S(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(S(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,S(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,S(d,\"constructor\",u),S(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",S(u,o,\"GeneratorFunction\"),S(d),S(d,o,\"Generator\"),S(d,r,function(){return this}),S(d,\"toString\",function(){return\"[object Generator]\"}),(w=function(){return{w:a,m:p}})()}function S(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}S=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){S(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},S(e,t,n,r)}function T(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const R=function(e){var t=e.refreshIntervalMs,n=void 0===t?0:t,f=(0,a.useContext)(c.v),g=f.BackOfficeProps,v=g.globalStore.User,E=g.baseurl,b=f.triggerShowLoader,C=f.triggerToastMsg,S=O((0,a.useState)(),2),D=S[0],R=S[1],N=O((0,a.useState)({pageNo:0,pageSize:10}),2),L=N[0],P=N[1],M=O((0,a.useState)(0),2),x=M[0],I=M[1];return(0,a.useEffect)(function(){var e,t=!0,r=function(){var a,i=(a=w().m(function a(){var i,l,s,u,c=arguments;return w().w(function(a){for(;;)switch(a.p=a.n){case 0:return i=c.length>0&&void 0!==c[0]&&c[0],a.p=1,a.n=2,A(v,E,i?b:function(){},L);case 2:l=a.v,t&&(R(null!==(s=null==l?void 0:l.content)&&void 0!==s?s:[]),I(null!==(u=null==l?void 0:l.totalElements)&&void 0!==u?u:0)),a.n=4;break;case 3:a.p=3,a.v,t&&i&&C({message:(0,o.t)(\"DOWNLOAD_FAILED\"),type:\"error\"});case 4:return a.p=4,t&&n>0&&(e=setTimeout(function(){r()},n)),a.f(4);case 5:return a.a(2)}},a,null,[[1,3,4,5]])}),function(){var e=this,t=arguments;return new Promise(function(n,r){var o=a.apply(e,t);function i(e){T(o,n,r,i,l,\"next\",e)}function l(e){T(o,n,r,i,l,\"throw\",e)}i(void 0)})});return function(){return i.apply(this,arguments)}}();return r(!0),function(){t=!1,clearTimeout(e)}},[L,n,v,E]),i().createElement(h,{\"data-testid\":\"my-uploads\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mt:2,mb:2,gap:2}),i().createElement(p.A,{rows:(null!=D?D:[]).map(function(e){var t,n;return _(_({},e),{},{fileName:(null==e||null===(t=e.fileName)||void 0===t?void 0:t.trim())||(\"INPROGRESS\"===(null==e?void 0:e.status)?(0,o.t)(\"DOWNLOAD_FILE_NAME_PENDING\",{defaultValue:\"File name pending\"}):(0,o.t)(\"DOWNLOAD_FILE_NAME_UNAVAILABLE\",{defaultValue:\"File name unavailable\"})),downloadedOn:\"\".concat((0,d.SK)(e.startTime),\" \").concat((n=null==e?void 0:e.endTime,n?\"| \".concat((0,d.SK)(n)):\" \"))})}),columnDefs:u.FS,frameworkComponents:{MyDownloadsActionComponent:function(e){return n=(t=_(_({},e),{},{onDownload:function(){return t=e.data.id,b(!0),(0,s.Ti)({baseUrl:\"\".concat(E).concat(l.p.DOWNLOAD_RETAILER_BGP_REPORT.replace(\"report_id\",t)),options:{headers:{\"country-code\":null==v||null===(n=v.selectedCountry)||void 0===n?void 0:n.countryCode,\"bu-id\":null==v?void 0:v.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==v?void 0:v.AccessToken)},responseType:\"arraybuffer\"}}).then(function(e){b(!1)}).catch(function(){b(!1),C({message:(0,o.t)(\"DOWNLOAD_FAILED\"),type:\"error\"})});var t,n}})).data,a=t.onDownload,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",spacing:1},i().createElement(\"p\",{className:\"smart-agro-lite-label \".concat(m(n.status).color)},m(n.status).status),\"COMPLETED\"===n.status&&i().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-label know-more remove-button\",onClick:a,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"6px\",marginLeft:\"-33px\"}},i().createElement(\"span\",{className:\"icon-icon-download\",style:{fontSize:\"18px\",color:\"#65833A\"}}),i().createElement(\"span\",{className:\"icon-Vector\",style:{fontSize:\"15px\",color:\"#232630\"}})));var t,n,a}}}),i().createElement(y.A,{pageNo:L.pageNo,totalPageCount:Math.ceil(x/L.pageSize),totalElements:x,onPageChange:function(e){P(function(t){return _(_({},t),{},{pageNo:Number(e)})})}}))}},43570:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},43591:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>C});var r=function(){if(\"undefined\"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,\"size\",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o=\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&window.document===document,a=void 0!==n.g&&n.g.Math===Math?n.g:\"undefined\"!=typeof self&&self.Math===Math?self:\"undefined\"!=typeof window&&window.Math===Math?window:Function(\"return this\")(),i=\"function\"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},l=[\"top\",\"right\",\"bottom\",\"left\",\"width\",\"height\",\"size\",\"weight\"],s=\"undefined\"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&l()}function a(){i(o)}function l(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(a,20);r=e}return l}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),s?(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)},e.prototype.disconnect_=function(){o&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?\"\":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},p=v(0,0,0,0);function f(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+f(e[\"border-\"+n+\"-width\"])},0)}var h=\"undefined\"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&\"function\"==typeof e.getBBox};function m(e){return o?h(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=[\"top\",\"right\",\"bottom\",\"left\"];n<r.length;n++){var o=r[n],a=e[\"padding-\"+o];t[o]=f(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,l=f(r.width),s=f(r.height);if(\"border-box\"===r.boxSizing&&(Math.round(l+a)!==t&&(l-=g(r,\"left\",\"right\")+a),Math.round(s+i)!==n&&(s-=g(r,\"top\",\"bottom\")+i)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(l+a)-t,c=Math.round(s+i)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return v(o.left,o.top,l,s)}(e):p}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var A=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,r,o,a,i,l,s,u=(r=(n=t).x,o=n.y,a=n.width,i=n.height,l=\"undefined\"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),c(s,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),s);c(this,{target:e,contentRect:u})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,\"function\"!=typeof e)throw new TypeError(\"The callback provided as parameter 1 is not a function.\");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");if(\"undefined\"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type \"Element\".');var t=this.observations_;t.has(e)||(t.set(e,new A(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");if(\"undefined\"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type \"Element\".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new y(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),b=\"undefined\"!=typeof WeakMap?new WeakMap:new r,_=function e(t){if(!(this instanceof e))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var n=u.getInstance(),r=new E(t,n,this);b.set(this,r)};[\"observe\",\"unobserve\",\"disconnect\"].forEach(function(e){_.prototype[e]=function(){var t;return(t=b.get(this))[e].apply(t,arguments)}});const C=void 0!==a.ResizeObserver?a.ResizeObserver:_},43605:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>ne}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(28161),o=n(85072),a=n.n(o),i=n(97825),l=n.n(i),s=n(77659),u=n.n(s),c=n(55056),d=n.n(c),p=n(10540),f=n.n(p),g=n(41113),h=n.n(g),m=n(19067),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=u().bind(null,\"head\"),v.domAPI=l(),v.insertStyleElement=f(),a()(m.A,v),m.A&&m.A.locals&&m.A.locals;var A=n(21590),y={};y.styleTagTransform=h(),y.setAttributes=d(),y.insert=u().bind(null,\"head\"),y.domAPI=l(),y.insertStyleElement=f(),a()(A.A,y),A.A&&A.A.locals&&A.A.locals;var E=n(6170),b={};b.styleTagTransform=h(),b.setAttributes=d(),b.insert=u().bind(null,\"head\"),b.domAPI=l(),b.insertStyleElement=f(),a()(E.A,b),E.A&&E.A.locals&&E.A.locals;var _=n(89973),C=n(81970),w=n.n(C),S=(n(62062),n(98587)),T=n(58168),O=n(34164),D=n(17437),R=n(75659);var N=n(24279),L=n(11848),P=n(25669),M=n(38413),x=n(31609);function I(e){return(0,x.Ay)(\"MuiSkeleton\",e)}(0,M.A)(\"MuiSkeleton\",[\"root\",\"text\",\"rectangular\",\"rounded\",\"circular\",\"pulse\",\"wave\",\"withChildren\",\"fitContent\",\"heightAuto\"]);var k=n(74848);const B=[\"animation\",\"className\",\"component\",\"height\",\"style\",\"variant\",\"width\"];let F,j,H,U,Y=e=>e;const G=(0,D.i7)(F||(F=Y`\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n`)),z=(0,D.i7)(j||(j=Y`\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n`)),V=(0,L.Ay)(\"span\",{name:\"MuiSkeleton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=(a=e.shape.borderRadius,String(a).match(/[\\d.\\-+]*\\s*(.*)/)[1]||\"\"||\"px\"),r=(o=e.shape.borderRadius,parseFloat(o));var o,a;return(0,T.A)({display:\"block\",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,N.X4)(e.palette.text.primary,\"light\"===e.palette.mode?.11:.13),height:\"1.2em\"},\"text\"===t.variant&&{marginTop:0,marginBottom:0,height:\"auto\",transformOrigin:\"0 55%\",transform:\"scale(1, 0.60)\",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,\"&:empty:before\":{content:'\"\\\\00a0\"'}},\"circular\"===t.variant&&{borderRadius:\"50%\"},\"rounded\"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{\"& > *\":{visibility:\"hidden\"}},t.hasChildren&&!t.width&&{maxWidth:\"fit-content\"},t.hasChildren&&!t.height&&{height:\"auto\"})},({ownerState:e})=>\"pulse\"===e.animation&&(0,D.AH)(H||(H=Y`\n      animation: ${0} 2s ease-in-out 0.5s infinite;\n    `),G),({ownerState:e,theme:t})=>\"wave\"===e.animation&&(0,D.AH)(U||(U=Y`\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: ${0} 2s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ${0},\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    `),z,(t.vars||t).palette.action.hover)),q=C.forwardRef(function(e,t){const n=(0,P.b)({props:e,name:\"MuiSkeleton\"}),{animation:r=\"pulse\",className:o,component:a=\"span\",height:i,style:l,variant:s=\"text\",width:u}=n,c=(0,S.A)(n,B),d=(0,T.A)({},n,{animation:r,component:a,variant:s,hasChildren:Boolean(c.children)}),p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e,l={root:[\"root\",n,r,o&&\"withChildren\",o&&!a&&\"fitContent\",o&&!i&&\"heightAuto\"]};return(0,R.A)(l,I,t)})(d);return(0,k.jsx)(V,(0,T.A)({as:a,ref:t,className:(0,O.A)(p.root,o),ownerState:d},c,{style:(0,T.A)({width:u,height:i},l)}))});var W=n(81385),Q=n(14073),K=n(8239);const $=function(){return C.createElement(\"div\",null,C.createElement(\"div\",null,C.createElement(K.Ay,{container:!0,spacing:8},[1,2,3,4,5].map(function(){return C.createElement(K.Ay,{item:!0,xs:!0,sx:{height:\"20px\"},key:\"\"},C.createElement(r.A,{sx:{display:\"flex\",alignItems:\"center\"}},C.createElement(r.A,{sx:{margin:1}},C.createElement(q,{variant:\"circular\"},C.createElement(W.A,null))),C.createElement(r.A,{sx:{width:\"100%\"}},C.createElement(q,{width:\"100%\"},C.createElement(Q.A,{width:565},\".\")))))}))))};var X=n(23360);function J(e){return J=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},J(e)}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function te(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=J(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==J(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ne=function(e){var t=e.columnDefs,n=e.rows,o=e.frameworkComponents,a=e.onGridReady,i=e.onRowClicked,l=e.noDataTemplate,s=e.gridRef,u=e.defaultCellMinWidth,c=e.isPaginationHidden,d=void 0!==c&&c,p=e.pinnedBottomRowData,f=e.getRowStyles;return w().createElement(X.A,null,w().createElement(r.A,{className:\"ag-theme-alpines test custom-table\"},w().createElement(_.AgGridReact,{key:\"table-item-\".concat(n.length),rowData:n,animateRows:!1,suppressRowVirtualisation:d,rowClass:\"cst-row\",columnDefs:t,enableBrowserTooltips:!0,overlayNoRowsTemplate:null!=l?l:\"No data found\",suppressScrollOnNewData:!0,defaultColDef:ee({resizable:!0,suppressMovable:!0,wrapHeaderText:!0,autoHeaderHeight:!0},u&&{minWidth:u}),onRowClicked:i||function(){},components:o,rowMultiSelectWithClick:!0,rowSelection:\"single\",onGridReady:a,loadingOverlayComponent:$,rowHeight:68,suppressAnimationFrame:!0,getRowStyle:function(e){var t,r,o,a;return null!=n&&null!==(t=n[null==e||null===(r=e.node)||void 0===r?void 0:r.rowIndex])&&void 0!==t&&t.color?{background:null==n||null===(o=n[null==e||null===(a=e.node)||void 0===a?void 0:a.rowIndex])||void 0===o?void 0:o.color}:f?f(e):void 0},ref:s,pinnedBottomRowData:null!=p?p:[]})))}},43724:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},43760:(e,t,n)=>{\"use strict\";function r(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(n(17383)),a=r(n(34579)),i=r(n(28452)),l=r(n(63072)),s=r(n(29511)),u=r(n(73738)),c=r(n(91847)),d=r(n(94634)),p=r(n(81970));r(n(5556)),r(n(9771));var f,g=(f=null,function(){if(null!==f)return f;var e,t,n=!1;try{window.addEventListener(\"test\",null,(e={},t={get:function(){n=!0}},Object.defineProperty(e,\"passive\",t)))}catch(e){}return f=n,n}()),h={capture:!1,passive:!1};function m(e){return d({},h,e)}function v(e,t,n){var r=[e,t];return r.push(g?n:n.capture),r}function A(e,t,n,r){e.addEventListener.apply(e,v(t,n,r))}function y(e,t,n,r){e.removeEventListener.apply(e,v(t,n,r))}var E=function(e){function t(){return o(this,t),i(this,l(t).apply(this,arguments))}return s(t,e),a(t,[{key:\"componentDidMount\",value:function(){this.applyListeners(A)}},{key:\"componentDidUpdate\",value:function(e){this.applyListeners(y,e),this.applyListeners(A)}},{key:\"componentWillUnmount\",value:function(){this.applyListeners(y)}},{key:\"applyListeners\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.target;if(n){var r=n;\"string\"==typeof n&&(r=window[n]),function(e,t){e.children,e.target;var n=c(e,[\"children\",\"target\"]);Object.keys(n).forEach(function(e){if(\"on\"===e.substring(0,2)){var r=n[e],o=u(r),a=\"object\"===o;if(a||\"function\"===o){var i=\"capture\"===e.substr(-7).toLowerCase(),l=e.substring(2).toLowerCase();l=i?l.substring(0,l.length-7):l,a?t(l,r.handler,r.options):t(l,r,m({capture:i}))}}})}(t,e.bind(null,r))}}},{key:\"render\",value:function(){return this.props.children||null}}]),t}(p.PureComponent);E.propTypes={},t.withOptions=function(e,t){return{handler:e,options:m(t)}},t.default=E},43784:function(e,t,n){!function(e){\"use strict\";var t=\"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.\".split(\"_\"),n=\"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec\".split(\"_\"),r=[/^jan/i,/^feb/i,/^(maart|mrt\\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;e.defineLocale(\"nl-be\",{months:\"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag\".split(\"_\"),weekdaysShort:\"zo._ma._di._wo._do._vr._za.\".split(\"_\"),weekdaysMin:\"zo_ma_di_wo_do_vr_za\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[vandaag om] LT\",nextDay:\"[morgen om] LT\",nextWeek:\"dddd [om] LT\",lastDay:\"[gisteren om] LT\",lastWeek:\"[afgelopen] dddd [om] LT\",sameElse:\"L\"},relativeTime:{future:\"over %s\",past:\"%s geleden\",s:\"een paar seconden\",ss:\"%d seconden\",m:\"één minuut\",mm:\"%d minuten\",h:\"één uur\",hh:\"%d uur\",d:\"één dag\",dd:\"%d dagen\",M:\"één maand\",MM:\"%d maanden\",y:\"één jaar\",yy:\"%d jaar\"},dayOfMonthOrdinalParse:/\\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?\"ste\":\"de\")},week:{dow:1,doy:4}})}(n(95093))},43802:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(67750),a=n(655),i=n(47452),l=r(\"\".replace),s=RegExp(\"^[\"+i+\"]+\"),u=RegExp(\"(^|[^\"+i+\"])[\"+i+\"]+$\"),c=function(e){return function(t){var n=a(o(t));return 1&e&&(n=l(n,s,\"\")),2&e&&(n=l(n,u,\"$1\")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},43828:(e,t,n)=>{\"use strict\";n.d(t,{QO:()=>E,Sj:()=>b,UP:()=>v,Xp:()=>A,jc:()=>f,o0:()=>p}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(94490),n(34782),n(15086),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(16034),n(27495),n(38781),n(21699),n(47764),n(23500),n(62953);var r=n(56203),o=n(13075);function a(e){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==a(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=function(e){return e[e.DISABLED_HEAD_QUARTER_ID=118]=\"DISABLED_HEAD_QUARTER_ID\",e[e.DISABLED_MOBILE_ID=119]=\"DISABLED_MOBILE_ID\",e}({}),p=function(e){return e[e.FULL_ADDRESS=173]=\"FULL_ADDRESS\",e[e.HEAD_QUATER_NAME=118]=\"HEAD_QUATER_NAME\",e[e.MOBILE=119]=\"MOBILE\",e[e.OWNER_NAME=120]=\"OWNER_NAME\",e[e.SHOP_NAME=121]=\"SHOP_NAME\",e[e.PINCODE=122]=\"PINCODE\",e[e.CANONICAL_ADDRESS=160]=\"CANONICAL_ADDRESS\",e[e.RETAILER_DISTRIBUTORS=125]=\"RETAILER_DISTRIBUTORS\",e[e.RETAILER_CATEGORY_CODE=133]=\"RETAILER_CATEGORY_CODE\",e[e.TOTAL_RETAILER_PERCENTAGE=134]=\"TOTAL_RETAILER_PERCENTAGE\",e[e.CONTACT_NAME=135]=\"CONTACT_NAME\",e[e.RETAILER_BU_MOBILE=136]=\"RETAILER_BU_MOBILE\",e[e.GEO_LOCATION=123]=\"GEO_LOCATION\",e[e.RETAILER_TYPE=124]=\"RETAILER_TYPE\",e}({}),f=function(e,t){var n,r,o,a,i,s,u=e.retailerDetails,c=e.user,d=e.formValues,p=e.preferredDistributorList,f={buId:null==c?void 0:c.selectedBusinessUnit.bu_id,userUUID:null==c||null===(n=c.UserDetails)||void 0===n?void 0:n.user_id,retailerCode:u.retailer_code,retailerAttachment:u.retailer_attachments,retailer_uuid:u.retailer_uuid,shop_name:d.shop_name,owner_name:d.owner_name,mobile:d.mobile,is_mobile_verified:u.is_mobile_verified,is_active:u.is_active,is_app_registered:u.is_app_registered,contact_name:null==d?void 0:d.contact_name,retailer_bu_mobile:null==d?void 0:d.retailer_bu_mobile,retailerBu:l({retailerBuId:u.retailer_bu_id,retailerUUID:u.retailer_uuid,buId:null==c?void 0:c.selectedBusinessUnit.bu_id,hqDataId:u.headquarter_id,userUUID:null==c||null===(r=c.UserDetails)||void 0===r?void 0:r.user_id,status:u.retailer_bu_status,contactName:null==d?void 0:d.contact_name,mobile:null==d?void 0:d.retailer_bu_mobile,isActive:u.is_retailer_bu_active,categoryCode:d.retailer_category_code.value},t&&\"REKYC_APPROVED\"===(null==u?void 0:u.re_kyc_status)?{re_kyc_status:\"REKYC_VERIFIED\"}:{}),retailerAddress:{id:0,address:d.canonical_address,fullAddress:null!==(o=d.full_address)&&void 0!==o?o:\"\",geoDataId:u.geo_data_id,pinCode:d.pincode,latitude:null===(a=g(d.geo_location))||void 0===a?void 0:a.latitude,longitude:null===(i=g(d.geo_location))||void 0===i?void 0:i.longitude},retailerType:{id:null,retailerType:null==d||null===(s=d.retailer_type)||void 0===s?void 0:s.value},retailerPreferredDistributorList:p,category:d.retailer_category_code.label};return\"DISTRIBUTOR_RETAILER\"===d.retailer_category_code.value&&(f.total_wholesale_percentage=Number(d.total_wholesale_percentage),f.total_retailer_percentage=Number(d.total_retailer_percentage)),f},g=function(e){var t=e.split(\"?\")[1].split(\"&\"),n=null,r=null;return t.forEach(function(e){var t=e.split(\"=\");if(\"q\"===t[0]){var o=t[1].split(\",\");n=o[0],r=o[1]}}),{latitude:n,longitude:r}},h=function(e){return e.RETAILER=\"RETAILER\",e.NURSERY=\"NURSERY\",e}({}),m=[{name:h.RETAILER,code:h.RETAILER},{name:h.NURSERY,code:h.NURSERY}],v=function(e,t){return[{labelName:(0,r.t)(\"PERCENTAGE_OF_SALES\"),value:t,disabled:!1,key:\"total_wholesale_percentage\"},{labelName:(0,r.t)(\"RETAILER_PERCENTAGE_OF_SALES\"),value:e,disabled:!1,key:\"total_retailer_percentage\"}]},A=function(e,t,n){var r=l({},n);if(\"DISTRIBUTOR_RETAILER\"===e){var o,a=t.filter(function(e){return!function(e,t){return null==e?void 0:e.some(function(e){return e.key===t})}(r.retailerDetails,e.key)});(o=r.retailerDetails).push.apply(o,u(a))}else r.retailerDetails=r.retailerDetails.filter(function(e){return\"total_retailer_percentage\"!==e.key&&\"total_wholesale_percentage\"!==e.key});return r},y=function(e,t,n,r,a,i){return{labelName:(0,o.MO)(n,e),options:t.map(function(e){var t,n;return l(l({value:null!==(t=e.code)&&void 0!==t?t:e.distributor_code,label:null!==(n=e.name)&&void 0!==n?n:\"retailer_distributors\"===r&&e.gSAPCode?\"\".concat(e.distributor_name,\" - \").concat(e.gSAPCode):e.distributor_name},\"retailer_distributors\"===r?{distributor_uuid:null==e?void 0:e.distributor_uuid}:{}),{},{checked:!1})}),value:a,disabled:i,key:r}},E=function(e,t,n){var r=e.retailerData.value;console.log(e,r);var a,i,s,c,f,g,h,A,E,b,_,C,w=[].concat(u(e.retailerLabels.value[0].form_field_configuration_dto_list),u(e.retailerLabels.value[1].form_field_configuration_dto_list)),S=JSON.parse(t),T=r.address.filter(function(e){return\"country\"!==e.name.toLocaleLowerCase()}).map(function(e){return{labelName:e.name,value:e.value,disabled:!0,key:e.name}}).reverse(),O=y(w,e.retailersCategory.value,p.RETAILER_CATEGORY_CODE,\"retailer_category_code\",(A=r.retailer_category_code,E=e.retailersCategory.value,C=E.find(function(e){return e.code===A}),{value:null!==(b=null==C?void 0:C.code)&&void 0!==b?b:\"\",label:null!==(_=null==C?void 0:C.name)&&void 0!==_?_:\"\"}),S.includes(p.RETAILER_CATEGORY_CODE)),D=y(w,m,p.RETAILER_TYPE,\"retailer_type\",{label:null==r?void 0:r.retailer_type,value:null==r?void 0:r.retailer_type},S.includes(p.RETAILER_TYPE)),R=y(w,e.distributorNames.value,p.RETAILER_DISTRIBUTORS,\"retailer_distributors\",(a=e.distributorNames.value,i=r,a.filter(function(e){return void 0!==i.retailer_distributors.find(function(t){return t.distributor_uuid===e.distributor_uuid})}).map(function(e){return{value:e.distributor_code,label:e.gSAPCode?\"\".concat(e.distributor_name,\" - \").concat(e.gSAPCode):\"\".concat(e.distributor_name),cp_code:e.gSAPCode,checked:!0}})),S.includes(p.RETAILER_DISTRIBUTORS)),N=function(e){return\"DISTRIBUTOR_RETAILER\"===e.retailer_category_code?v(e.total_wholesale_percentage,e.total_retailer_percentage):[]}(r),L=(f=function(e,t){return function(e,t,n,r,a){var i=[d.DISABLED_HEAD_QUARTER_ID,d.DISABLED_MOBILE_ID];return e===p.GEO_LOCATION?{labelName:\"Geo Location\",value:\"https://www.google.com/maps?q=\".concat(null==r?void 0:r.latitude,\",\").concat(null==r?void 0:r.longitude),disabled:!0,key:t}:{labelName:(0,o.MO)(e,n),value:r[t],disabled:a.includes(e)||i.includes(e),key:t}}(e,t,w,r,S)},g=T,h={retailersCategoryDropDownOptions:O,distributorDropDownOptions:R,retailersTypeDropDownOptions:D,totalRetailerFields:N},{ownerDetails:[f(p.OWNER_NAME,\"owner_name\"),f(p.SHOP_NAME,\"shop_name\"),f(p.MOBILE,\"mobile\"),f(p.HEAD_QUATER_NAME,\"head_quater_name\"),f(p.CONTACT_NAME,\"contact_name\"),f(p.RETAILER_BU_MOBILE,\"retailer_bu_mobile\")],geoDetails:[].concat(u(g),[f(p.CANONICAL_ADDRESS,\"canonical_address\"),f(p.FULL_ADDRESS,\"full_address\"),f(p.GEO_LOCATION,\"geo_location\"),f(p.PINCODE,\"pincode\")]),retailerDetails:[h.distributorDropDownOptions,h.retailersCategoryDropDownOptions,h.retailersTypeDropDownOptions].concat(u(h.totalRetailerFields))});return n(l(l({},(s=Object.values(L),c={},null==s||s.forEach(function(e){e.forEach(function(e){e.key&&void 0!==e.value&&(c[e.key]=e.value)})}),c)),{},{total_wholesale_percentage:r.total_wholesale_percentage,total_retailer_percentage:r.total_retailer_percentage,mappedDistributors:r.retailer_distributors})),L},b=function(e){var t,n={},r=null==e||null===(t=e.value)||void 0===t?void 0:t.filter(function(e){return\"BASIC\"===(null==e?void 0:e.page_category)||\"ADVANCED\"===(null==e?void 0:e.page_category)});return null==r||r.forEach(function(e){var t;null==e||null===(t=e.form_field_configuration_dto_list)||void 0===t||t.forEach(function(e){var t,r={};null==e||null===(t=e.validations)||void 0===t||t.forEach(function(e){\"MIN_LENGTH\"===(null==e?void 0:e.validation_type)&&(r.minLength=Number(null==e?void 0:e.validation_value)),\"MAX_LENGTH\"===(null==e?void 0:e.validation_type)&&(r.maxLength=Number(null==e?void 0:e.validation_value))}),null!=e&&e.label&&Object.keys(r).length&&(n[e.field_unique_id]=r)})}),n}},43861:function(e,t,n){!function(e){\"use strict\";var t={1:\"१\",2:\"२\",3:\"३\",4:\"४\",5:\"५\",6:\"६\",7:\"७\",8:\"८\",9:\"९\",0:\"०\"},n={\"१\":\"1\",\"२\":\"2\",\"३\":\"3\",\"४\":\"4\",\"५\":\"5\",\"६\":\"6\",\"७\":\"7\",\"८\":\"8\",\"९\":\"9\",\"०\":\"0\"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale(\"hi\",{months:{format:\"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर\".split(\"_\"),standalone:\"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर\".split(\"_\")},monthsShort:\"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.\".split(\"_\"),weekdays:\"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार\".split(\"_\"),weekdaysShort:\"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि\".split(\"_\"),weekdaysMin:\"र_सो_मं_बु_गु_शु_श\".split(\"_\"),longDateFormat:{LT:\"A h:mm बजे\",LTS:\"A h:mm:ss बजे\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm बजे\",LLLL:\"dddd, D MMMM YYYY, A h:mm बजे\"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,monthsShortRegex:/^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\\.?|फ़र\\.?|मार्च?|अप्रै\\.?|मई?|जून?|जुल\\.?|अग\\.?|सित\\.?|अक्टू\\.?|नव\\.?|दिस\\.?)/i,calendar:{sameDay:\"[आज] LT\",nextDay:\"[कल] LT\",nextWeek:\"dddd, LT\",lastDay:\"[कल] LT\",lastWeek:\"[पिछले] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s में\",past:\"%s पहले\",s:\"कुछ ही क्षण\",ss:\"%d सेकंड\",m:\"एक मिनट\",mm:\"%d मिनट\",h:\"एक घंटा\",hh:\"%d घंटे\",d:\"एक दिन\",dd:\"%d दिन\",M:\"एक महीने\",MM:\"%d महीने\",y:\"एक वर्ष\",yy:\"%d वर्ष\"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),\"रात\"===t?e<4?e:e+12:\"सुबह\"===t?e:\"दोपहर\"===t?e>=10?e:e+12:\"शाम\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"रात\":e<10?\"सुबह\":e<17?\"दोपहर\":e<20?\"शाम\":\"रात\"},week:{dow:0,doy:6}})}(n(95093))},43884:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>y});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(27256),u=n(25669),c=n(11848),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiTableBody\",e)}(0,d.A)(\"MuiTableBody\",[\"root\"]);var g=n(74848);const h=[\"className\",\"component\"],m=(0,c.Ay)(\"tbody\",{name:\"MuiTableBody\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"table-row-group\"}),v={variant:\"body\"},A=\"tbody\",y=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiTableBody\"}),{className:a,component:c=A}=n,d=(0,o.A)(n,h),p=(0,r.A)({},n,{component:c}),y=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},f,t)})(p);return(0,g.jsx)(s.A.Provider,{value:v,children:(0,g.jsx)(m,(0,r.A)({className:(0,i.A)(y.root,a),as:c,ref:t,role:c===A?null:\"rowgroup\",ownerState:p},d))})})},44141:(e,t,n)=>{\"use strict\";e.exports=n.p+\"4e1bfe9dbf349e4a2f03.svg\"},44209:(e,t,n)=>{\"use strict\";var r=n(78227),o=n(26269),a=r(\"iterator\"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},44213:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(79504),a=n(69565),i=n(79039),l=n(71072),s=n(33717),u=n(48773),c=n(48981),d=n(47055),p=Object.assign,f=Object.defineProperty,g=o([].concat);e.exports=!p||i(function(){if(r&&1!==p({b:1},p(f({},\"a\",{enumerable:!0,get:function(){f(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(\"assign detection\"),o=\"abcdefghijklmnopqrst\";return e[n]=7,o.split(\"\").forEach(function(e){t[e]=e}),7!==p({},e)[n]||l(p({},t)).join(\"\")!==o})?function(e,t){for(var n=c(e),o=arguments.length,i=1,p=s.f,f=u.f;o>i;)for(var h,m=d(arguments[i++]),v=p?g(l(m),p(m)):l(m),A=v.length,y=0;A>y;)h=v[y++],r&&!a(f,m,h)||(n[h]=m[h]);return n}:p},44239:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(11317)},44265:(e,t,n)=>{\"use strict\";var r=n(82839);e.exports=/ipad|iphone|ipod/i.test(r)&&\"undefined\"!=typeof Pebble},44345:()=>{},44363:(e,t,n)=>{\"use strict\";e.exports=n(22799)},44389:(e,t,n)=>{var r=n(19786);r(r.S,\"Object\",{setPrototypeOf:n(10485).set})},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return\"symbol\"==typeof e||o(e)&&\"[object Symbol]\"==r(e)}},44417:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>me}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(90815),o=n(28161),a=n(56203),i=n(81970),l=n.n(i),s=n(99478),u=n(47225),c=n(13075),d=n(15664),p=n(21239),f=(n(28706),n(59089),n(94170),n(59904),n(40875),n(10287),n(3362),n(5746),n(48408),n(90891)),g=n(94017),h=n(14073),m=n(98587),v=n(58168),A=n(34164),y=n(75659),E=n(771),b=n(11848),_=n(25669),C=n(6025),w=n(28466),S=n(60538),T=n(38413),O=n(31609);function D(e){return(0,O.Ay)(\"MuiAlert\",e)}const R=(0,T.A)(\"MuiAlert\",[\"root\",\"action\",\"icon\",\"message\",\"filled\",\"colorSuccess\",\"colorInfo\",\"colorWarning\",\"colorError\",\"filledSuccess\",\"filledInfo\",\"filledWarning\",\"filledError\",\"outlined\",\"outlinedSuccess\",\"outlinedInfo\",\"outlinedWarning\",\"outlinedError\",\"standard\",\"standardSuccess\",\"standardInfo\",\"standardWarning\",\"standardError\"]);var N=n(11641),L=n(20561),P=n(74848);const M=(0,L.A)((0,P.jsx)(\"path\",{d:\"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z\"}),\"SuccessOutlined\"),x=(0,L.A)((0,P.jsx)(\"path\",{d:\"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"}),\"ReportProblemOutlined\"),I=(0,L.A)((0,P.jsx)(\"path\",{d:\"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),\"ErrorOutline\"),k=(0,L.A)((0,P.jsx)(\"path\",{d:\"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z\"}),\"InfoOutlined\");var B=n(49350);const F=[\"action\",\"children\",\"className\",\"closeText\",\"color\",\"components\",\"componentsProps\",\"icon\",\"iconMapping\",\"onClose\",\"role\",\"severity\",\"slotProps\",\"slots\",\"variant\"],j=(0,b.Ay)(S.A,{name:\"MuiAlert\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,w.A)(n.color||n.severity)}`]]}})(({theme:e})=>{const t=\"light\"===e.palette.mode?E.e$:E.a,n=\"light\"===e.palette.mode?E.a:E.e$;return(0,v.A)({},e.typography.body2,{backgroundColor:\"transparent\",display:\"flex\",padding:\"6px 16px\",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:\"standard\"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${R.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:\"outlined\"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${R.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:\"filled\"},style:(0,v.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:\"dark\"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),H=(0,b.Ay)(\"div\",{name:\"MuiAlert\",slot:\"Icon\",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:\"7px 0\",display:\"flex\",fontSize:22,opacity:.9}),U=(0,b.Ay)(\"div\",{name:\"MuiAlert\",slot:\"Message\",overridesResolver:(e,t)=>t.message})({padding:\"8px 0\",minWidth:0,overflow:\"auto\"}),Y=(0,b.Ay)(\"div\",{name:\"MuiAlert\",slot:\"Action\",overridesResolver:(e,t)=>t.action})({display:\"flex\",alignItems:\"flex-start\",padding:\"4px 0 0 16px\",marginLeft:\"auto\",marginRight:-8}),G={success:(0,P.jsx)(M,{fontSize:\"inherit\"}),warning:(0,P.jsx)(x,{fontSize:\"inherit\"}),error:(0,P.jsx)(I,{fontSize:\"inherit\"}),info:(0,P.jsx)(k,{fontSize:\"inherit\"})},z=i.forwardRef(function(e,t){const n=(0,_.b)({props:e,name:\"MuiAlert\"}),{action:r,children:o,className:a,closeText:i=\"Close\",color:l,components:s={},componentsProps:u={},icon:c,iconMapping:d=G,onClose:p,role:f=\"alert\",severity:g=\"success\",slotProps:h={},slots:E={},variant:b=\"standard\"}=n,S=(0,m.A)(n,F),T=(0,v.A)({},n,{color:l,severity:g,variant:b,colorSeverity:l||g}),O=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:[\"root\",`color${(0,w.A)(n||r)}`,`${t}${(0,w.A)(n||r)}`,`${t}`],icon:[\"icon\"],message:[\"message\"],action:[\"action\"]};return(0,y.A)(a,D,o)})(T),R={slots:(0,v.A)({closeButton:s.CloseButton,closeIcon:s.CloseIcon},E),slotProps:(0,v.A)({},u,h)},[L,M]=(0,C.A)(\"closeButton\",{elementType:N.A,externalForwardedProps:R,ownerState:T}),[x,I]=(0,C.A)(\"closeIcon\",{elementType:B.A,externalForwardedProps:R,ownerState:T});return(0,P.jsxs)(j,(0,v.A)({role:f,elevation:0,ownerState:T,className:(0,A.A)(O.root,a),ref:t},S,{children:[!1!==c?(0,P.jsx)(H,{ownerState:T,className:O.icon,children:c||d[g]||G[g]}):null,(0,P.jsx)(U,{ownerState:T,className:O.message,children:o}),null!=r?(0,P.jsx)(Y,{ownerState:T,className:O.action,children:r}):null,null==r&&p?(0,P.jsx)(Y,{ownerState:T,className:O.action,children:(0,P.jsx)(L,(0,v.A)({size:\"small\",\"aria-label\":i,title:i,color:\"inherit\",onClick:p},M,{children:(0,P.jsx)(x,(0,v.A)({fontSize:\"small\"},I))}))}):null]}))});var V=n(47767),q=n(77284),W=n(96348),Q=n(17630),K=n(98752),$=n(36874),X=n(27386),J=n(68670),Z=n(17197);function ee(e){return ee=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ee(e)}function te(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return ne(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(ne(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ne(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,ne(d,\"constructor\",u),ne(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",ne(u,o,\"GeneratorFunction\"),ne(d),ne(d,o,\"Generator\"),ne(d,r,function(){return this}),ne(d,\"toString\",function(){return\"[object Generator]\"}),(te=function(){return{w:a,m:p}})()}function ne(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}ne=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){ne(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},ne(e,t,n,r)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ee(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ee(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||se(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function se(e,t){if(e){if(\"string\"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ce=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,s=e.selectedFilters,c=(0,V.zy)(),p=new URLSearchParams(c.search),m=p.get(\"tabname\"),v=p.get(\"id\"),A=(0,i.useContext)(u.v),y=A.BackOfficeProps,E=y.globalStore.User,b=y.baseurl,_=A.triggerShowLoader,C=A.triggerToastMsg,w=(0,i.useRef)(!1),S=le((0,i.useState)(!1),2),T=S[0],O=S[1],D=le((0,i.useState)(\"\"),2),R=D[0],N=D[1],L=le((0,i.useState)([]),2),P=(L[0],L[1]),M=le((0,i.useState)(null),2),x=M[0],I=M[1],k=le((0,i.useState)(\"\"),2),B=k[0],F=k[1],j=le((0,i.useState)(!1),2),H=j[0],U=j[1],Y=function(){var e,t=(e=te().m(function e(){var t,n,r,o,i,l,u;return te().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!w.current){e.n=1;break}return e.a(2);case 1:return N(\"\"),r=String((null==s?void 0:s.year)||(new Date).getFullYear()),o=(null==s||null===(t=s.portfolio)||void 0===t?void 0:t.value)||(null==E||null===(n=E.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code)||\"default\",e.p=2,e.n=3,(0,q.Ir)(E,b,_,oe({portfolio_code:[o],year:r},v&&{tm_hq_id:v}));case 3:if(null==(i=e.v)||!i.errorMessage){e.n=4;break}throw new Error(i.errorMessage);case 4:P(function(e){return[].concat(function(e){if(Array.isArray(e))return ue(e)}(t=e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||se(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),[{id:\"\".concat(Date.now(),\"-\").concat(e.length),name:\"\".concat((0,a.t)(\"DOWNLOAD_TEMPLATE\"),\" - \").concat(r),status:\"in-progress\"}]);var t}),e.n=6;break;case 5:e.p=5,u=e.v,l=null!=u&&u.message?(0,a.t)(u.message):(0,a.t)(\"DOWNLOAD_TEMPLATE_FAILED\"),N(l),\"function\"==typeof C&&C({message:l,type:\"error\"});case 6:return e.p=6,w.current=!1,O(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ie(a,r,o,i,l,\"next\",e)}function l(e){ie(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),G=function(){N(\"\"),I(null),F(\"\"),U(!1),n()};return l().createElement(l().Fragment,null,l().createElement($.A,{isDrawerOpen:t,anchor:\"right\"},l().createElement(o.A,{className:\"popupMain\"},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3},l().createElement(h.A,{component:\"h1\",variant:\"h1\"},(0,a.t)(\"BULK_BGP_UPLOAD\")),l().createElement(o.A,{onClick:G},l().createElement(h.A,{className:\"icon-close closeIcon\"}))),l().createElement(r.A,{className:\"popupContent\",gap:3,sx:{minHeight:\"auto\"}},R&&l().createElement(z,{severity:\"error\"},R),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",gap:1.5,sx:{backgroundColor:\"#FFFFFF\",border:\"1px solid #E0E4EA\",borderRadius:\"6px\",padding:\"12px\"}},l().createElement(f.A,{sx:{color:\"#6A7285\",fontSize:\"20px\"}}),l().createElement(h.A,{variant:\"body2\",sx:{color:\"#14151C\",lineHeight:1.5}},function(){if(!m||m===W.fp.Retailer_BGPDetails)return(0,a.t)(\"BULK_BGP_UPLOAD_INFO\");var e=m===W.fp.TMHQ_BGP_Details?Z.Q.TMHQ_BGP_DETAILS:m;return(0,a.t)(\"BULK_BGP_UPLOAD_TAB_INFO\",{tabName:e})}())),l().createElement(o.A,{sx:{backgroundColor:\"#FFFFFF\",borderRadius:\"6px\",padding:\"12px 14px\"}},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",gap:2},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",gap:1.25},l().createElement(h.A,{component:\"span\",className:\"round-badge\"},\"1\"),l().createElement(h.A,{variant:\"h6\",fontSize:14,fontWeight:500},(0,a.t)(\"DOWNLOAD_TEMPLATE\"))),l().createElement(d.A,{startIcon:l().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:(0,a.t)(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",onButtonClick:Y,disabled:T}))),l().createElement(o.A,{sx:{backgroundColor:\"#FFFFFF\",borderRadius:\"6px\",padding:\"12px 14px\"}},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",gap:1.25,mb:2},l().createElement(h.A,{component:\"span\",className:\"round-badge\"},\"2\"),l().createElement(h.A,{variant:\"h6\",fontSize:14,fontWeight:500},(0,a.t)(\"UPLOAD_DATA_SAMPLE\"))),l().createElement(X.A,{customClassName:\"file-upload\",onUploadSuccess:function(e){var t=null==e?void 0:e[0];if(I(t),F(\"\"),t)return(0,K.TC)(t.name)?void U(!0):(U(!1),void F((0,a.t)(\"VALID_FILE_ERROR\")));U(!1)},selectedFile:x,onRemoveHandler:function(){I(null),U(!1)}}),B&&l().createElement(h.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},B),H&&l().createElement(o.A,{mt:2},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",gap:1,mb:1.5},l().createElement(h.A,{component:\"span\",sx:{alignItems:\"center\",backgroundColor:\"#DDF8E8\",borderRadius:\"50%\",color:Q.T.greenProgress,display:\"inline-flex\",height:22,justifyContent:\"center\",minWidth:22,width:22}},l().createElement(g.A,{sx:{fontSize:14}})),l().createElement(h.A,{variant:\"body2\",color:Q.T.greenProgress,fontSize:12,fontWeight:600},(0,a.t)(\"BULK_BGP_UPLOAD_PROCESSED\"))),l().createElement(J.A,{value:100,isMessageHidden:!0})))),l().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},l().createElement(d.A,{variant:\"outlined\",buttonName:(0,a.t)(\"CANCEL\"),onButtonClick:G,fullwidth:!1,color:\"secondary\"}),l().createElement(d.A,{variant:\"contained\",buttonName:(0,a.t)(\"SUBMIT\"),onButtonClick:function(){x?(0,K.TC)(x.name)?U(!0):F((0,a.t)(\"VALID_FILE_ERROR\")):F((0,a.t)(\"UPLOAD_CONDITION_TEXT\"))},fullwidth:!1,color:\"primary\"})))))};function de(e){return de=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},de(e)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=de(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=de(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==de(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const me=function(e){var t,n,f=e.onSearch,g=e.setPaginationState,h=e.setIsFilterOpen,m=e.searchBasedOn,v=e.selectedFilters,A=e.isDownloadRequired,y=e.downloadReport,E=e.onBulkBgpUpload,b=e.isBGPUploadEnabled,_=void 0===b||b,C=(0,i.useContext)(u.v).BackOfficeProps.globalStore.User,w=(t=l().useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),S=w[0],T=w[1];return l().createElement(l().Fragment,null,l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(o.A,{mt:2},l().createElement(p.A,{onSearchValueChange:function(e){f(e),g(function(e){return fe(fe({},e),{},{pageNo:0})})},placeholderText:(0,a.t)(\"SEARCH\"),searchBasedOn:m})),l().createElement(r.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},_&&l().createElement(d.A,{variant:\"contained\",buttonName:(0,a.t)(\"BULK_BGP_UPLOAD\"),onButtonClick:function(){E&&E(),T(!0)},fullwidth:!1,color:\"primary\"}),l().createElement(d.A,{className:(0,c.F7)(v),buttonName:(0,a.t)(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:l().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){h(!0)}}),A&&(0,s.EB)(C)&&l().createElement(d.A,{startIcon:l().createElement(\"span\",{className:\"icon-icon-download\"}),variant:\"contained\",buttonName:(0,a.t)(\"DOWNLOAD_REPORT\"),onButtonClick:y,fullwidth:!1,color:\"primary\"}))),_&&l().createElement(ce,{isDrawerOpen:S,onRequestClose:function(){return T(!1)},selectedFilters:v}))}},44429:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){var r=e+\" \";switch(n){case\"ss\":return r+(1===e?\"sekunda\":2===e||3===e||4===e?\"sekunde\":\"sekundi\");case\"mm\":return r+(1===e?\"minuta\":2===e||3===e||4===e?\"minute\":\"minuta\");case\"h\":return\"jedan sat\";case\"hh\":return r+(1===e?\"sat\":2===e||3===e||4===e?\"sata\":\"sati\");case\"dd\":return r+(1===e?\"dan\":\"dana\");case\"MM\":return r+(1===e?\"mjesec\":2===e||3===e||4===e?\"mjeseca\":\"mjeseci\");case\"yy\":return r+(1===e?\"godina\":2===e||3===e||4===e?\"godine\":\"godina\")}}e.defineLocale(\"bs\",{months:\"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar\".split(\"_\"),monthsShort:\"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota\".split(\"_\"),weekdaysShort:\"ned._pon._uto._sri._čet._pet._sub.\".split(\"_\"),weekdaysMin:\"ne_po_ut_sr_če_pe_su\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd, D. MMMM YYYY H:mm\"},calendar:{sameDay:\"[danas u] LT\",nextDay:\"[sutra u] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[u] [nedjelju] [u] LT\";case 3:return\"[u] [srijedu] [u] LT\";case 6:return\"[u] [subotu] [u] LT\";case 1:case 2:case 4:case 5:return\"[u] dddd [u] LT\"}},lastDay:\"[jučer u] LT\",lastWeek:function(){switch(this.day()){case 0:case 3:return\"[prošlu] dddd [u] LT\";case 6:return\"[prošle] [subote] [u] LT\";case 1:case 2:case 4:case 5:return\"[prošli] dddd [u] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"prije %s\",s:\"par sekundi\",ss:t,m:function(e,t,n,r){if(\"m\"===n)return t?\"jedna minuta\":r?\"jednu minutu\":\"jedne minute\"},mm:t,h:t,hh:t,d:\"dan\",dd:t,M:\"mjesec\",MM:t,y:\"godinu\",yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},44496:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(19617).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"includes\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},44508:(e,t,n)=>{\"use strict\";var r,o=(r=n(89829))&&r.__esModule?r:{default:r};t.A=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},44576:function(e,t,n){\"use strict\";var r=function(e){return e&&e.Math===Math&&e};e.exports=r(\"object\"==typeof globalThis&&globalThis)||r(\"object\"==typeof window&&window)||r(\"object\"==typeof self&&self)||r(\"object\"==typeof n.g&&n.g)||r(\"object\"==typeof this&&this)||function(){return this}()||Function(\"return this\")()},44675:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i}),n(81970);var r=n(82858),o=n(22765),a=n(58312);function i(){const e=(0,r.A)(o.A);return e[a.A]||e}},44706:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ec6cddc957adc72a5f65.svg\"},44877:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(32325);function o(e){return(0,r.A)(e).defaultView||window}},44953:e=>{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},45061:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(81970),o=n(40961),a=n(31523),i=n(57223),l=n(21529),s=n(17365),u=n(74848);const c=r.forwardRef(function(e,t){const{children:n,container:c,disablePortal:d=!1}=e,[p,f]=r.useState(null),g=(0,a.A)(r.isValidElement(n)?(0,i.A)(n):null,t);if((0,l.A)(()=>{d||f(function(e){return\"function\"==typeof e?e():e}(c)||document.body)},[c,d]),(0,l.A)(()=>{if(p&&!d)return(0,s.A)(t,p),()=>{(0,s.A)(t,null)}},[t,p,d]),d){if(r.isValidElement(n)){const e={ref:g};return r.cloneElement(n,e)}return(0,u.jsx)(r.Fragment,{children:n})}return(0,u.jsx)(r.Fragment,{children:p?o.createPortal(n,p):p})})},45083:(e,t,n)=>{var r=n(1882),o=n(87296),a=n(23805),i=n(47473),l=/^\\[object .+?Constructor\\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,d=u.hasOwnProperty,p=RegExp(\"^\"+c.call(d).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:l).test(i(e))}},45143:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{ConfigurationRootRoute:()=>c,default:()=>d}),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(27305),s=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,28852))}),u=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))}),c=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},o().createElement(s,{RBACControls:t}))}),null==n?void 0:n.map(function(e,t){return o().createElement(a.qh,{key:\"configuration-route-\".concat(e.moduleName),path:e.moduleName===i.pW[\"FORM-CONFIGURATIONS\"]||e.moduleName===i.pW[\"MODULE-CONFIG\"]||e.moduleName===i.pW[\"ATTENDANCE-CONFIG\"]||e.moduleName===i.pW[\"EVENT-BASELINE-CONFIG\"]?\"\".concat(e.path,\"/*\"):e.path,element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(u,null)),path:i.fp.PageNotFound}))};const d=c},45228:e=>{\"use strict\";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(e){r[e]=e}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,l=function(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))n.call(a,u)&&(l[u]=a[u]);if(t){i=t(a);for(var c=0;c<i.length;c++)r.call(a,i[c])&&(l[i[c]]=a[i[c]])}}return l}},45270:(e,t,n)=>{\"use strict\";var r=n(64233),o=n(35945),a=n(52833),i=n(69204);e.exports=n(52500)(Array,\"Array\",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,\"keys\"==t?n:\"values\"==t?e[n]:[n,e[n]])},\"values\"),a.Arguments=a.Array,r(\"keys\"),r(\"values\"),r(\"entries\")},45434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},45539:(e,t,n)=>{var r=n(40882),o=n(50828),a=n(66645),i=RegExp(\"['’]\",\"g\");e.exports=function(e){return function(t){return r(a(o(t).replace(i,\"\")),e,\"\")}}},45588:(e,t,n)=>{\"use strict\";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o,a;function i(e){void 0===e&&(e={});let t,{initialEntries:n=[\"/\"],initialIndex:a,v5Compat:i=!1}=e;t=n.map((e,t)=>h(e,\"string\"==typeof e?null:e.state,0===t?\"default\":void 0));let l=f(null==a?t.length-1:a),d=o.Pop,p=null;function f(e){return Math.min(Math.max(e,0),t.length-1)}function g(){return t[l]}function h(e,n,o){void 0===n&&(n=null);let a=function(e,t,n,o){return void 0===n&&(n=null),r({pathname:\"string\"==typeof e?e:e.pathname,search:\"\",hash:\"\"},\"string\"==typeof t?c(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}(t?g().pathname:\"/\",e,n,o);return s(\"/\"===a.pathname.charAt(0),\"relative pathnames are not supported in memory history: \"+JSON.stringify(e)),a}function m(e){return\"string\"==typeof e?e:u(e)}return{get index(){return l},get action(){return d},get location(){return g()},createHref:m,createURL:e=>new URL(m(e),\"http://localhost\"),encodeLocation(e){let t=\"string\"==typeof e?c(e):e;return{pathname:t.pathname||\"\",search:t.search||\"\",hash:t.hash||\"\"}},push(e,n){d=o.Push;let r=h(e,n);l+=1,t.splice(l,t.length,r),i&&p&&p({action:d,location:r,delta:1})},replace(e,n){d=o.Replace;let r=h(e,n);t[l]=r,i&&p&&p({action:d,location:r,delta:0})},go(e){d=o.Pop;let n=f(l+e),r=t[n];l=n,p&&p({action:d,location:r,delta:e})},listen:e=>(p=e,()=>{p=null})}}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){\"undefined\"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e){let{pathname:t=\"/\",search:n=\"\",hash:r=\"\"}=e;return n&&\"?\"!==n&&(t+=\"?\"===n.charAt(0)?n:\"?\"+n),r&&\"#\"!==r&&(t+=\"#\"===r.charAt(0)?r:\"#\"+r),t}function c(e){let t={};if(e){let n=e.indexOf(\"#\");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(\"?\");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e,t,n){return void 0===n&&(n=\"/\"),function(e,t,n,r){let o=S((\"string\"==typeof t?c(t):t).pathname||\"/\",n);if(null==o)return null;let a=p(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=w(o);i=_(a[e],t,r)}return i}(e,t,n,!1)}function p(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=\"\");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||\"\":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith(\"/\")&&(l(i.relativePath.startsWith(r),'Absolute route path \"'+i.relativePath+'\" nested under path \"'+r+'\" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=R([r,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path \"'+s+'\".'),p(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(\"\"!==e.path&&null!=(n=e.path)&&n.includes(\"?\"))for(let n of f(e.path))o(e,t,n);else o(e,t)}),t}function f(e){let t=e.split(\"/\");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith(\"?\"),a=n.replace(/\\?$/,\"\");if(0===r.length)return o?[a,\"\"]:[a];let i=f(r.join(\"/\")),l=[];return l.push(...i.map(e=>\"\"===e?a:[a,e].join(\"/\"))),o&&l.push(...i),l.map(t=>e.startsWith(\"/\")&&\"\"===t?\"/\":t)}n.d(t,{AO:()=>u,B6:()=>C,Gh:()=>D,HS:()=>R,Oi:()=>l,Rr:()=>c,pX:()=>x,pb:()=>S,rc:()=>o,sC:()=>i,tH:()=>M,ue:()=>d,yD:()=>O}),function(e){e.Pop=\"POP\",e.Push=\"PUSH\",e.Replace=\"REPLACE\"}(o||(o={})),function(e){e.data=\"data\",e.deferred=\"deferred\",e.redirect=\"redirect\",e.error=\"error\"}(a||(a={})),new Set([\"lazy\",\"caseSensitive\",\"path\",\"id\",\"index\",\"children\"]);const g=/^:[\\w-]+$/,h=3,m=2,v=1,A=10,y=-2,E=e=>\"*\"===e;function b(e,t){let n=e.split(\"/\"),r=n.length;return n.some(E)&&(r+=y),t&&(r+=m),n.filter(e=>!E(e)).reduce((e,t)=>e+(g.test(t)?h:\"\"===t?v:A),r)}function _(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},a=\"/\",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u=\"/\"===a?t:t.slice(a.length)||\"/\",c=C({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=C({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),i.push({params:o,pathname:R([a,c.pathname]),pathnameBase:N(R([a,c.pathnameBase])),route:d}),\"/\"!==c.pathnameBase&&(a=R([a,c.pathnameBase]))}return i}function C(e,t){\"string\"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),s(\"*\"===e||!e.endsWith(\"*\")||e.endsWith(\"/*\"),'Route path \"'+e+'\" will be treated as if it were \"'+e.replace(/\\*$/,\"/*\")+'\" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to \"'+e.replace(/\\*$/,\"/*\")+'\".');let r=[],o=\"^\"+e.replace(/\\/*\\*?$/,\"\").replace(/^\\/*/,\"/\").replace(/[\\\\.*+^${}|()[\\]]/g,\"\\\\$&\").replace(/\\/:([\\w-]+)(\\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?\"/?([^\\\\/]+)?\":\"/([^\\\\/]+)\"));return e.endsWith(\"*\")?(r.push({paramName:\"*\"}),o+=\"*\"===e||\"/*\"===e?\"(.*)$\":\"(?:\\\\/(.+)|\\\\/*)$\"):n?o+=\"\\\\/*$\":\"\"!==e&&\"/\"!==e&&(o+=\"(?:(?=\\\\/|$))\"),[new RegExp(o,t?void 0:\"i\"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\\/+$/,\"$1\"),l=o.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if(\"*\"===r){let e=l[n]||\"\";i=a.slice(0,a.length-e.length).replace(/(.)\\/+$/,\"$1\")}const s=l[n];return e[r]=o&&!s?void 0:(s||\"\").replace(/%2F/g,\"/\"),e},{}),pathname:a,pathnameBase:i,pattern:e}}function w(e){try{return e.split(\"/\").map(e=>decodeURIComponent(e).replace(/\\//g,\"%2F\")).join(\"/\")}catch(t){return s(!1,'The URL path \"'+e+'\" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+\").\"),e}}function S(e,t){if(\"/\"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(\"/\")?t.length-1:t.length,r=e.charAt(n);return r&&\"/\"!==r?null:e.slice(n)||\"/\"}function T(e,t,n,r){return\"Cannot include a '\"+e+\"' character in a manually specified `to.\"+t+\"` field [\"+JSON.stringify(r)+\"].  Please separate it out to the `to.\"+n+'` field. Alternatively you may provide the full path as a string in <Link to=\"...\"> and the router will parse it for you.'}function O(e,t){let n=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function D(e,t,n,o){let a;void 0===o&&(o=!1),\"string\"==typeof e?a=c(e):(a=r({},e),l(!a.pathname||!a.pathname.includes(\"?\"),T(\"?\",\"pathname\",\"search\",a)),l(!a.pathname||!a.pathname.includes(\"#\"),T(\"#\",\"pathname\",\"hash\",a)),l(!a.search||!a.search.includes(\"#\"),T(\"#\",\"search\",\"hash\",a)));let i,s=\"\"===e||\"\"===a.pathname,u=s?\"/\":a.pathname;if(null==u)i=n;else{let e=t.length-1;if(!o&&u.startsWith(\"..\")){let t=u.split(\"/\");for(;\"..\"===t[0];)t.shift(),e-=1;a.pathname=t.join(\"/\")}i=e>=0?t[e]:\"/\"}let d=function(e,t){void 0===t&&(t=\"/\");let{pathname:n,search:r=\"\",hash:o=\"\"}=\"string\"==typeof e?c(e):e,a=n?n.startsWith(\"/\")?n:function(e,t){let n=t.replace(/\\/+$/,\"\").split(\"/\");return e.split(\"/\").forEach(e=>{\"..\"===e?n.length>1&&n.pop():\".\"!==e&&n.push(e)}),n.length>1?n.join(\"/\"):\"/\"}(n,t):t;return{pathname:a,search:L(r),hash:P(o)}}(a,i),p=u&&\"/\"!==u&&u.endsWith(\"/\"),f=(s||\".\"===u)&&n.endsWith(\"/\");return d.pathname.endsWith(\"/\")||!p&&!f||(d.pathname+=\"/\"),d}const R=e=>e.join(\"/\").replace(/\\/\\/+/g,\"/\"),N=e=>e.replace(/\\/+$/,\"\").replace(/^\\/*/,\"/\"),L=e=>e&&\"?\"!==e?e.startsWith(\"?\")?e:\"?\"+e:\"\",P=e=>e&&\"#\"!==e?e.startsWith(\"#\")?e:\"#\"+e:\"\";class M extends Error{}function x(e){return null!=e&&\"number\"==typeof e.status&&\"string\"==typeof e.statusText&&\"boolean\"==typeof e.internal&&\"data\"in e}const I=[\"post\",\"put\",\"patch\",\"delete\"],k=(new Set(I),[\"get\",...I]);new Set(k),new Set([301,302,303,307,308]),new Set([307,308]),Symbol(\"deferred\")},45620:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>M}),n(52675),n(25276),n(94170),n(69085);var r=n(28161),o=n(98587),a=n(58168),i=n(81970),l=n(34164),s=n(75659),u=n(17437),c=n(28466),d=n(25669),p=n(11848),f=n(38413),g=n(31609);function h(e){return(0,g.Ay)(\"MuiCircularProgress\",e)}(0,f.A)(\"MuiCircularProgress\",[\"root\",\"determinate\",\"indeterminate\",\"colorPrimary\",\"colorSecondary\",\"svg\",\"circle\",\"circleDeterminate\",\"circleIndeterminate\",\"circleDisableShrink\"]);var m=n(74848);const v=[\"className\",\"color\",\"disableShrink\",\"size\",\"style\",\"thickness\",\"value\",\"variant\"];let A,y,E,b,_=e=>e;const C=(0,u.i7)(A||(A=_`\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n`)),w=(0,u.i7)(y||(y=_`\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n`)),S=(0,p.Ay)(\"span\",{name:\"MuiCircularProgress\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,c.A)(n.color)}`]]}})(({ownerState:e,theme:t})=>(0,a.A)({display:\"inline-block\"},\"determinate\"===e.variant&&{transition:t.transitions.create(\"transform\")},\"inherit\"!==e.color&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>\"indeterminate\"===e.variant&&(0,u.AH)(E||(E=_`\n      animation: ${0} 1.4s linear infinite;\n    `),C)),T=(0,p.Ay)(\"svg\",{name:\"MuiCircularProgress\",slot:\"Svg\",overridesResolver:(e,t)=>t.svg})({display:\"block\"}),O=(0,p.Ay)(\"circle\",{name:\"MuiCircularProgress\",slot:\"Circle\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,c.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>(0,a.A)({stroke:\"currentColor\"},\"determinate\"===e.variant&&{transition:t.transitions.create(\"stroke-dashoffset\")},\"indeterminate\"===e.variant&&{strokeDasharray:\"80px, 200px\",strokeDashoffset:0}),({ownerState:e})=>\"indeterminate\"===e.variant&&!e.disableShrink&&(0,u.AH)(b||(b=_`\n      animation: ${0} 1.4s ease-in-out infinite;\n    `),w)),D=i.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiCircularProgress\"}),{className:r,color:i=\"primary\",disableShrink:u=!1,size:p=40,style:f,thickness:g=3.6,value:A=0,variant:y=\"indeterminate\"}=n,E=(0,o.A)(n,v),b=(0,a.A)({},n,{color:i,disableShrink:u,size:p,thickness:g,value:A,variant:y}),_=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:[\"root\",n,`color${(0,c.A)(r)}`],svg:[\"svg\"],circle:[\"circle\",`circle${(0,c.A)(n)}`,o&&\"circleDisableShrink\"]};return(0,s.A)(a,h,t)})(b),C={},w={},D={};if(\"determinate\"===y){const e=2*Math.PI*((44-g)/2);C.strokeDasharray=e.toFixed(3),D[\"aria-valuenow\"]=Math.round(A),C.strokeDashoffset=`${((100-A)/100*e).toFixed(3)}px`,w.transform=\"rotate(-90deg)\"}return(0,m.jsx)(S,(0,a.A)({className:(0,l.A)(_.root,r),style:(0,a.A)({width:p,height:p},w,f),ownerState:b,ref:t,role:\"progressbar\"},D,E,{children:(0,m.jsx)(T,{className:_.svg,ownerState:b,viewBox:\"22 22 44 44\",children:(0,m.jsx)(O,{className:_.circle,style:C,ownerState:b,cx:44,cy:44,r:(44-g)/2,fill:\"none\",strokeWidth:g})})}))});var R=n(14073),N=(0,p.Ay)(r.A)(function(e){var t=e.theme;return{position:\"relative\",maxHeight:\"50px\",\"& .label-out\":{width:\"104px\"},\"& .MuiCircularProgress-root\":{color:t.palette.primary.main},\"& .circle-track\":{position:\"absolute \"},\"& .progress-bar-label\":{position:\"absolute\",left:\"57px\",top:\"9px\"},\"& .label-text\":{color:t.palette.primary.main,fontSize:\"16px\",fontWeight:\"700\"},\"& .label-icon\":{position:\"absolute\",left:\"16px\",top:\"13px\",fontSize:\"20px\"}}}),L=[\"className\",\"color\",\"backgroundColor\",\"width\",\"height\",\"labelIcon\",\"progressTrackBg\",\"progressBg\"];function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(null,arguments)}const M=function(e){var t=e.className,n=(e.color,e.backgroundColor,e.width,e.height,e.labelIcon),o=e.progressTrackBg,a=e.progressBg,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,L);return i.createElement(N,{sx:{width:n?\"auto\":\"85px\"}},i.createElement(r.A,{className:t},i.createElement(D,P({variant:\"determinate\"},l,{className:\"circle-track\",value:100,sx:{color:\"\".concat(null!=o?o:\"#C2C7D0\",\"!important\")}})),i.createElement(D,P({variant:\"determinate\"},l,{sx:{color:\"\".concat(null!=a?a:\"#C2C7D0\",\"!important\")}})),n?i.createElement(R.A,{color:a,component:\"span\",className:\"label-icon \".concat(n)}):i.createElement(r.A,{className:\"progress-bar-label\"},i.createElement(R.A,{className:\"label-text\"},\"\".concat(Math.round(l.value<0?0:l.value),\"%\")))))}},45700:(e,t,n)=>{\"use strict\";var r=n(70511),o=n(58242);r(\"toPrimitive\"),o()},45708:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=l(n(81970)),u=l(n(40961)),c=l(n(2404)),d=l(n(91574)),p=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=[\"modules\",\"formats\",\"bounds\",\"theme\",\"children\"],n.cleanProps=[\"id\",\"className\",\"style\",\"placeholder\",\"tabIndex\",\"onChange\",\"onChangeSelection\",\"onFocus\",\"onBlur\",\"onKeyPress\",\"onKeyDown\",\"onKeyUp\"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var a,i,l,s;\"text-change\"===e?null===(i=(a=n).onEditorChangeText)||void 0===i||i.call(a,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):\"selection-change\"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:\"\",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(s.default.Children.count(e.children)>1)throw new Error(\"The Quill editing area can only be composed of a single React element.\");if(s.default.Children.count(e.children)&&\"textarea\"===(null===(t=s.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error(\"Quill does not support editing on a <textarea>. Use a <div> instead.\");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error(\"You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas\")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if(\"value\"in e){var o=this.getEditorContents(),a=null!=(n=e.value)?n:\"\";this.isEqualValue(a,o)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),i(this.cleanProps,this.dirtyProps).some(function(t){return!c.default(e[t],r.props[t])})},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some(function(n){return!c.default(e[n],t.props[n])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var a=this.regenerationSnapshot,i=(r=a.delta,a.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),f(function(){return n.setEditorSelection(l,i)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return\"value\"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error(\"Accessing non-instantiated editor\");return this.editor},t.prototype.createEditor=function(e,t){var n=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on(\"editor-change\",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off(\"editor-change\",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c.default(e.ops,t.ops):c.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();\"string\"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),f(function(){return n.setEditorSelection(e,r)})},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error(\"Instantiating on missing editing area\");var e=u.default.findDOMNode(this.editingArea);if(!e)throw new Error(\"Cannot find element for editing area\");if(3===e.nodeType)throw new Error(\"Editing area cannot be a text node\");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return s.default.Children.count(n)?s.default.cloneElement(s.default.Children.only(n),o):r?s.default.createElement(\"pre\",a({},o)):s.default.createElement(\"div\",a({},o))},t.prototype.render=function(){var e;return s.default.createElement(\"div\",{id:this.props.id,style:this.props.style,key:this.state.generation,className:\"quill \"+(e=this.props.className,null!=e?e:\"\"),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,a;if(this.editor){var i=this.isDelta(this.value)?r.getContents():r.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=i,null===(a=(o=this.props).onChange)||void 0===a||a.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,a,i,l,s;if(this.editor){var u=this.getEditorSelection(),d=!u&&e,p=u&&!e;c.default(e,u)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),d?null===(i=(a=this.props).onFocus)||void 0===i||i.call(a,e,t,n):p&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName=\"React Quill\",t.Quill=d.default,t.defaultProps={theme:\"snow\",modules:{},readOnly:!1},t}(s.default.Component);function f(e){Promise.resolve().then(e)}e.exports=p},45719:function(e,t,n){!function(e){\"use strict\";var t={words:{ss:[\"sekunda\",\"sekunde\",\"sekundi\"],m:[\"jedan minut\",\"jednog minuta\"],mm:[\"minut\",\"minuta\",\"minuta\"],h:[\"jedan sat\",\"jednog sata\"],hh:[\"sat\",\"sata\",\"sati\"],d:[\"jedan dan\",\"jednog dana\"],dd:[\"dan\",\"dana\",\"dana\"],M:[\"jedan mesec\",\"jednog meseca\"],MM:[\"mesec\",\"meseca\",\"meseci\"],y:[\"jednu godinu\",\"jedne godine\"],yy:[\"godinu\",\"godine\",\"godina\"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?\"y\"===r&&n?\"jedna godina\":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),\"yy\"===r&&n&&\"godinu\"===a?e+\" godina\":e+\" \"+a)}};e.defineLocale(\"sr\",{months:\"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar\".split(\"_\"),monthsShort:\"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota\".split(\"_\"),weekdaysShort:\"ned._pon._uto._sre._čet._pet._sub.\".split(\"_\"),weekdaysMin:\"ne_po_ut_sr_če_pe_su\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"D. M. YYYY.\",LL:\"D. MMMM YYYY.\",LLL:\"D. MMMM YYYY. H:mm\",LLLL:\"dddd, D. MMMM YYYY. H:mm\"},calendar:{sameDay:\"[danas u] LT\",nextDay:\"[sutra u] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[u] [nedelju] [u] LT\";case 3:return\"[u] [sredu] [u] LT\";case 6:return\"[u] [subotu] [u] LT\";case 1:case 2:case 4:case 5:return\"[u] dddd [u] LT\"}},lastDay:\"[juče u] LT\",lastWeek:function(){return[\"[prošle] [nedelje] [u] LT\",\"[prošlog] [ponedeljka] [u] LT\",\"[prošlog] [utorka] [u] LT\",\"[prošle] [srede] [u] LT\",\"[prošlog] [četvrtka] [u] LT\",\"[prošlog] [petka] [u] LT\",\"[prošle] [subote] [u] LT\"][this.day()]},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"pre %s\",s:\"nekoliko sekundi\",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},45766:function(e,t,n){!function(e){\"use strict\";var t={ss:\"sekundė_sekundžių_sekundes\",m:\"minutė_minutės_minutę\",mm:\"minutės_minučių_minutes\",h:\"valanda_valandos_valandą\",hh:\"valandos_valandų_valandas\",d:\"diena_dienos_dieną\",dd:\"dienos_dienų_dienas\",M:\"mėnuo_mėnesio_mėnesį\",MM:\"mėnesiai_mėnesių_mėnesius\",y:\"metai_metų_metus\",yy:\"metai_metų_metus\"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split(\"_\")}function a(e,t,a,i){var l=e+\" \";return 1===e?l+n(0,t,a[0],i):t?l+(r(e)?o(a)[1]:o(a)[0]):i?l+o(a)[1]:l+(r(e)?o(a)[1]:o(a)[2])}e.defineLocale(\"lt\",{months:{format:\"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio\".split(\"_\"),standalone:\"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis\".split(\"_\"),isFormat:/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/},monthsShort:\"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd\".split(\"_\"),weekdays:{format:\"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį\".split(\"_\"),standalone:\"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis\".split(\"_\"),isFormat:/dddd HH:mm/},weekdaysShort:\"Sek_Pir_Ant_Tre_Ket_Pen_Šeš\".split(\"_\"),weekdaysMin:\"S_P_A_T_K_Pn_Š\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"YYYY [m.] MMMM D [d.]\",LLL:\"YYYY [m.] MMMM D [d.], HH:mm [val.]\",LLLL:\"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]\",l:\"YYYY-MM-DD\",ll:\"YYYY [m.] MMMM D [d.]\",lll:\"YYYY [m.] MMMM D [d.], HH:mm [val.]\",llll:\"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]\"},calendar:{sameDay:\"[Šiandien] LT\",nextDay:\"[Rytoj] LT\",nextWeek:\"dddd LT\",lastDay:\"[Vakar] LT\",lastWeek:\"[Praėjusį] dddd LT\",sameElse:\"L\"},relativeTime:{future:\"po %s\",past:\"prieš %s\",s:function(e,t,n,r){return t?\"kelios sekundės\":r?\"kelių sekundžių\":\"kelias sekundes\"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\\d{1,2}-oji/,ordinal:function(e){return e+\"-oji\"},week:{dow:1,doy:4}})}(n(95093))},45806:(e,t,n)=>{\"use strict\";n(47764);var r,o=n(46518),a=n(43724),i=n(67416),l=n(44576),s=n(76080),u=n(79504),c=n(36840),d=n(62106),p=n(90679),f=n(39297),g=n(44213),h=n(97916),m=n(67680),v=n(68183).codeAt,A=n(3717),y=n(655),E=n(10687),b=n(22812),_=n(98406),C=n(91181),w=C.set,S=C.getterFor(\"URL\"),T=_.URLSearchParams,O=_.getState,D=l.URL,R=l.TypeError,N=l.parseInt,L=Math.floor,P=Math.pow,M=u(\"\".charAt),x=u(/./.exec),I=u([].join),k=u(1.1.toString),B=u([].pop),F=u([].push),j=u(\"\".replace),H=u([].shift),U=u(\"\".split),Y=u(\"\".slice),G=u(\"\".toLowerCase),z=u([].unshift),V=\"Invalid scheme\",q=\"Invalid host\",W=\"Invalid port\",Q=/[a-z]/i,K=/[\\d+-.a-z]/i,$=/\\d/,X=/^0x/i,J=/^[0-7]+$/,Z=/^\\d+$/,ee=/^[\\da-f]+$/i,te=/[\\0\\t\\n\\r #%/:<>?@[\\\\\\]^|]/,ne=/[\\0\\t\\n\\r #/:<>?@[\\\\\\]^|]/,re=/^[\\u0000-\\u0020]+/,oe=/(^|[^\\u0000-\\u0020])[\\u0000-\\u0020]+$/,ae=/[\\t\\n\\r]/g,ie=function(e){var t,n,r,o;if(\"number\"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=L(e/256);return I(t,\".\")}if(\"object\"==typeof e){for(t=\"\",r=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n?r:t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?\":\":\"::\",o=!0):(t+=k(e[n],16),n<7&&(t+=\":\")));return\"[\"+t+\"]\"}return e},le={},se=g({},le,{\" \":1,'\"':1,\"<\":1,\">\":1,\"`\":1}),ue=g({},se,{\"#\":1,\"?\":1,\"{\":1,\"}\":1}),ce=g({},ue,{\"/\":1,\":\":1,\";\":1,\"=\":1,\"@\":1,\"[\":1,\"\\\\\":1,\"]\":1,\"^\":1,\"|\":1}),de=function(e,t){var n=v(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2===e.length&&x(Q,M(e,0))&&(\":\"===(n=M(e,1))||!t&&\"|\"===n)},ge=function(e){var t;return e.length>1&&fe(Y(e,0,2))&&(2===e.length||\"/\"===(t=M(e,2))||\"\\\\\"===t||\"?\"===t||\"#\"===t)},he=function(e){return\".\"===e||\"%2e\"===G(e)},me=function(e){return\"..\"===(e=G(e))||\"%2e.\"===e||\".%2e\"===e||\"%2e%2e\"===e},ve={},Ae={},ye={},Ee={},be={},_e={},Ce={},we={},Se={},Te={},Oe={},De={},Re={},Ne={},Le={},Pe={},Me={},xe={},Ie={},ke={},Be={},Fe=function(e,t,n){var r,o,a,i=y(e);if(t){if(o=this.parse(i))throw new R(o);this.searchParams=null}else{if(void 0!==n&&(r=new Fe(n,!0)),o=this.parse(i,null,r))throw new R(o);(a=O(new T)).bindURL(this),this.searchParams=a}};Fe.prototype={type:\"URL\",parse:function(e,t,n){var o,a,i,l,s=this,u=t||ve,c=0,d=\"\",p=!1,g=!1,v=!1;for(e=y(e),t||(s.scheme=\"\",s.username=\"\",s.password=\"\",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=j(e,re,\"\"),e=j(e,oe,\"$1\")),e=j(e,ae,\"\"),o=h(e);c<=o.length;){switch(a=o[c],u){case ve:if(!a||!x(Q,a)){if(t)return V;u=ye;continue}d+=G(a),u=Ae;break;case Ae:if(a&&(x(K,a)||\"+\"===a||\"-\"===a||\".\"===a))d+=G(a);else{if(\":\"!==a){if(t)return V;d=\"\",u=ye,c=0;continue}if(t&&(s.isSpecial()!==f(pe,d)||\"file\"===d&&(s.includesCredentials()||null!==s.port)||\"file\"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&pe[s.scheme]===s.port&&(s.port=null));d=\"\",\"file\"===s.scheme?u=Ne:s.isSpecial()&&n&&n.scheme===s.scheme?u=Ee:s.isSpecial()?u=we:\"/\"===o[c+1]?(u=be,c++):(s.cannotBeABaseURL=!0,F(s.path,\"\"),u=Ie)}break;case ye:if(!n||n.cannotBeABaseURL&&\"#\"!==a)return V;if(n.cannotBeABaseURL&&\"#\"===a){s.scheme=n.scheme,s.path=m(n.path),s.query=n.query,s.fragment=\"\",s.cannotBeABaseURL=!0,u=Be;break}u=\"file\"===n.scheme?Ne:_e;continue;case Ee:if(\"/\"!==a||\"/\"!==o[c+1]){u=_e;continue}u=Se,c++;break;case be:if(\"/\"===a){u=Te;break}u=xe;continue;case _e:if(s.scheme=n.scheme,a===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query;else if(\"/\"===a||\"\\\\\"===a&&s.isSpecial())u=Ce;else if(\"?\"===a)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=\"\",u=ke;else{if(\"#\"!==a){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.path.length--,u=xe;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=m(n.path),s.query=n.query,s.fragment=\"\",u=Be}break;case Ce:if(!s.isSpecial()||\"/\"!==a&&\"\\\\\"!==a){if(\"/\"!==a){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=xe;continue}u=Te}else u=Se;break;case we:if(u=Se,\"/\"!==a||\"/\"!==M(d,c+1))continue;c++;break;case Se:if(\"/\"!==a&&\"\\\\\"!==a){u=Te;continue}break;case Te:if(\"@\"===a){p&&(d=\"%40\"+d),p=!0,i=h(d);for(var A=0;A<i.length;A++){var E=i[A];if(\":\"!==E||v){var b=de(E,ce);v?s.password+=b:s.username+=b}else v=!0}d=\"\"}else if(a===r||\"/\"===a||\"?\"===a||\"#\"===a||\"\\\\\"===a&&s.isSpecial()){if(p&&\"\"===d)return\"Invalid authority\";c-=h(d).length+1,d=\"\",u=Oe}else d+=a;break;case Oe:case De:if(t&&\"file\"===s.scheme){u=Pe;continue}if(\":\"!==a||g){if(a===r||\"/\"===a||\"?\"===a||\"#\"===a||\"\\\\\"===a&&s.isSpecial()){if(s.isSpecial()&&\"\"===d)return q;if(t&&\"\"===d&&(s.includesCredentials()||null!==s.port))return;if(l=s.parseHost(d))return l;if(d=\"\",u=Me,t)return;continue}\"[\"===a?g=!0:\"]\"===a&&(g=!1),d+=a}else{if(\"\"===d)return q;if(l=s.parseHost(d))return l;if(d=\"\",u=Re,t===De)return}break;case Re:if(!x($,a)){if(a===r||\"/\"===a||\"?\"===a||\"#\"===a||\"\\\\\"===a&&s.isSpecial()||t){if(\"\"!==d){var _=N(d,10);if(_>65535)return W;s.port=s.isSpecial()&&_===pe[s.scheme]?null:_,d=\"\"}if(t)return;u=Me;continue}return W}d+=a;break;case Ne:if(s.scheme=\"file\",\"/\"===a||\"\\\\\"===a)u=Le;else{if(!n||\"file\"!==n.scheme){u=xe;continue}switch(a){case r:s.host=n.host,s.path=m(n.path),s.query=n.query;break;case\"?\":s.host=n.host,s.path=m(n.path),s.query=\"\",u=ke;break;case\"#\":s.host=n.host,s.path=m(n.path),s.query=n.query,s.fragment=\"\",u=Be;break;default:ge(I(m(o,c),\"\"))||(s.host=n.host,s.path=m(n.path),s.shortenPath()),u=xe;continue}}break;case Le:if(\"/\"===a||\"\\\\\"===a){u=Pe;break}n&&\"file\"===n.scheme&&!ge(I(m(o,c),\"\"))&&(fe(n.path[0],!0)?F(s.path,n.path[0]):s.host=n.host),u=xe;continue;case Pe:if(a===r||\"/\"===a||\"\\\\\"===a||\"?\"===a||\"#\"===a){if(!t&&fe(d))u=xe;else if(\"\"===d){if(s.host=\"\",t)return;u=Me}else{if(l=s.parseHost(d))return l;if(\"localhost\"===s.host&&(s.host=\"\"),t)return;d=\"\",u=Me}continue}d+=a;break;case Me:if(s.isSpecial()){if(u=xe,\"/\"!==a&&\"\\\\\"!==a)continue}else if(t||\"?\"!==a)if(t||\"#\"!==a){if(a!==r&&(u=xe,\"/\"!==a))continue}else s.fragment=\"\",u=Be;else s.query=\"\",u=ke;break;case xe:if(a===r||\"/\"===a||\"\\\\\"===a&&s.isSpecial()||!t&&(\"?\"===a||\"#\"===a)){if(me(d)?(s.shortenPath(),\"/\"===a||\"\\\\\"===a&&s.isSpecial()||F(s.path,\"\")):he(d)?\"/\"===a||\"\\\\\"===a&&s.isSpecial()||F(s.path,\"\"):(\"file\"===s.scheme&&!s.path.length&&fe(d)&&(s.host&&(s.host=\"\"),d=M(d,0)+\":\"),F(s.path,d)),d=\"\",\"file\"===s.scheme&&(a===r||\"?\"===a||\"#\"===a))for(;s.path.length>1&&\"\"===s.path[0];)H(s.path);\"?\"===a?(s.query=\"\",u=ke):\"#\"===a&&(s.fragment=\"\",u=Be)}else d+=de(a,ue);break;case Ie:\"?\"===a?(s.query=\"\",u=ke):\"#\"===a?(s.fragment=\"\",u=Be):a!==r&&(s.path[0]+=de(a,le));break;case ke:t||\"#\"!==a?a!==r&&(\"'\"===a&&s.isSpecial()?s.query+=\"%27\":s.query+=\"#\"===a?\"%23\":de(a,le)):(s.fragment=\"\",u=Be);break;case Be:a!==r&&(s.fragment+=de(a,se))}c++}},parseHost:function(e){var t,n,r;if(\"[\"===M(e,0)){if(\"]\"!==M(e,e.length-1))return q;if(t=function(e){var t,n,r,o,a,i,l,s=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,p=function(){return M(e,d)};if(\":\"===p()){if(\":\"!==M(e,1))return;d+=2,c=++u}for(;p();){if(8===u)return;if(\":\"!==p()){for(t=n=0;n<4&&x(ee,p());)t=16*t+N(p(),16),d++,n++;if(\".\"===p()){if(0===n)return;if(d-=n,u>6)return;for(r=0;p();){if(o=null,r>0){if(!(\".\"===p()&&r<4))return;d++}if(!x($,p()))return;for(;x($,p());){if(a=N(p(),10),null===o)o=a;else{if(0===o)return;o=10*o+a}if(o>255)return;d++}s[u]=256*s[u]+o,2!==++r&&4!==r||u++}if(4!==r)return;break}if(\":\"===p()){if(d++,!p())return}else if(p())return;s[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(i=u-c,u=7;0!==u&&i>0;)l=s[u],s[u--]=s[c+i-1],s[c+--i]=l;else if(8!==u)return;return s}(Y(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=A(e),x(te,e))return q;if(t=function(e){var t,n,r,o,a,i,l,s=U(e,\".\");if(s.length&&\"\"===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(n=[],r=0;r<t;r++){if(\"\"===(o=s[r]))return e;if(a=10,o.length>1&&\"0\"===M(o,0)&&(a=x(X,o)?16:8,o=Y(o,8===a?1:2)),\"\"===o)i=0;else{if(!x(10===a?Z:8===a?J:ee,o))return e;i=N(o,a)}F(n,i)}for(r=0;r<t;r++)if(i=n[r],r===t-1){if(i>=P(256,5-t))return null}else if(i>255)return null;for(l=B(n),r=0;r<n.length;r++)l+=n[r]*P(256,3-r);return l}(e),null===t)return q;this.host=t}else{if(x(ne,e))return q;for(t=\"\",n=h(e),r=0;r<n.length;r++)t+=de(n[r],le);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||\"file\"===this.scheme},includesCredentials:function(){return\"\"!==this.username||\"\"!==this.password},isSpecial:function(){return f(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||\"file\"===this.scheme&&1===t&&fe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,l=e.query,s=e.fragment,u=t+\":\";return null!==o?(u+=\"//\",e.includesCredentials()&&(u+=n+(r?\":\"+r:\"\")+\"@\"),u+=ie(o),null!==a&&(u+=\":\"+a)):\"file\"===t&&(u+=\"//\"),u+=e.cannotBeABaseURL?i[0]:i.length?\"/\"+I(i,\"/\"):\"\",null!==l&&(u+=\"?\"+l),null!==s&&(u+=\"#\"+s),u},setHref:function(e){var t=this.parse(e);if(t)throw new R(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(\"blob\"===e)try{return new je(e.path[0]).origin}catch(e){return\"null\"}return\"file\"!==e&&this.isSpecial()?e+\"://\"+ie(this.host)+(null!==t?\":\"+t:\"\"):\"null\"},getProtocol:function(){return this.scheme+\":\"},setProtocol:function(e){this.parse(y(e)+\":\",ve)},getUsername:function(){return this.username},setUsername:function(e){var t=h(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username=\"\";for(var n=0;n<t.length;n++)this.username+=de(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=h(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password=\"\";for(var n=0;n<t.length;n++)this.password+=de(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?\"\":null===t?ie(e):ie(e)+\":\"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?\"\":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,De)},getPort:function(){var e=this.port;return null===e?\"\":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(\"\"===(e=y(e))?this.port=null:this.parse(e,Re))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?\"/\"+I(e,\"/\"):\"\"},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Me))},getSearch:function(){var e=this.query;return e?\"?\"+e:\"\"},setSearch:function(e){\"\"===(e=y(e))?this.query=null:(\"?\"===M(e,0)&&(e=Y(e,1)),this.query=\"\",this.parse(e,ke)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?\"#\"+e:\"\"},setHash:function(e){\"\"!==(e=y(e))?(\"#\"===M(e,0)&&(e=Y(e,1)),this.fragment=\"\",this.parse(e,Be)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var je=function(e){var t=p(this,He),n=b(arguments.length,1)>1?arguments[1]:void 0,r=w(t,new Fe(e,!1,n));a||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},He=je.prototype,Ue=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(He,\"href\",Ue(\"serialize\",\"setHref\")),d(He,\"origin\",Ue(\"getOrigin\")),d(He,\"protocol\",Ue(\"getProtocol\",\"setProtocol\")),d(He,\"username\",Ue(\"getUsername\",\"setUsername\")),d(He,\"password\",Ue(\"getPassword\",\"setPassword\")),d(He,\"host\",Ue(\"getHost\",\"setHost\")),d(He,\"hostname\",Ue(\"getHostname\",\"setHostname\")),d(He,\"port\",Ue(\"getPort\",\"setPort\")),d(He,\"pathname\",Ue(\"getPathname\",\"setPathname\")),d(He,\"search\",Ue(\"getSearch\",\"setSearch\")),d(He,\"searchParams\",Ue(\"getSearchParams\")),d(He,\"hash\",Ue(\"getHash\",\"setHash\"))),c(He,\"toJSON\",function(){return S(this).serialize()},{enumerable:!0}),c(He,\"toString\",function(){return S(this).serialize()},{enumerable:!0}),D){var Ye=D.createObjectURL,Ge=D.revokeObjectURL;Ye&&c(je,\"createObjectURL\",s(Ye,D)),Ge&&c(je,\"revokeObjectURL\",s(Ge,D))}E(je,\"URL\"),o({global:!0,constructor:!0,forced:!i,sham:!a},{URL:je})},46374:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>Ce}),n(28706),n(2008),n(62062),n(15086),n(94170),n(69085),n(79432),n(26099);var r=n(98587),o=n(58168),a=n(81970),i=n.n(a),l=n(34164),s=n(75659),u=n(73788),c=n(79329),d=n(11848),p=n(25669),f=n(44675),g=n(1935);let h;function m(){if(h)return h;const e=document.createElement(\"div\"),t=document.createElement(\"div\");return t.style.width=\"10px\",t.style.height=\"1px\",e.appendChild(t),e.dir=\"rtl\",e.style.fontSize=\"14px\",e.style.width=\"4px\",e.style.height=\"1px\",e.style.position=\"absolute\",e.style.top=\"-1000px\",e.style.overflow=\"scroll\",document.body.appendChild(e),h=\"reverse\",e.scrollLeft>0?h=\"default\":(e.scrollLeft=1,0===e.scrollLeft&&(h=\"negative\")),document.body.removeChild(e),h}function v(e,t){const n=e.scrollLeft;if(\"rtl\"!==t)return n;switch(m()){case\"negative\":return e.scrollWidth-e.clientWidth+n;case\"reverse\":return e.scrollWidth-e.clientWidth-n;default:return n}}function A(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var y=n(2778),E=n(93749),b=n(74848);const _=[\"onChange\"],C={width:99,height:99,position:\"absolute\",top:-9999,overflow:\"scroll\"};var w=n(20561);const S=(0,w.A)((0,b.jsx)(\"path\",{d:\"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"}),\"KeyboardArrowLeft\"),T=(0,w.A)((0,b.jsx)(\"path\",{d:\"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"}),\"KeyboardArrowRight\");var O=n(18850),D=n(38413),R=n(31609);function N(e){return(0,R.Ay)(\"MuiTabScrollButton\",e)}const L=(0,D.A)(\"MuiTabScrollButton\",[\"root\",\"vertical\",\"horizontal\",\"disabled\"]),P=[\"className\",\"slots\",\"slotProps\",\"direction\",\"orientation\",\"disabled\"],M=(0,d.Ay)(O.A,{name:\"MuiTabScrollButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>(0,o.A)({width:40,flexShrink:0,opacity:.8,[`&.${L.disabled}`]:{opacity:0}},\"vertical\"===e.orientation&&{width:\"100%\",height:40,\"& svg\":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),x=a.forwardRef(function(e,t){var n,a;const i=(0,p.b)({props:e,name:\"MuiTabScrollButton\"}),{className:d,slots:f={},slotProps:g={},direction:h}=i,m=(0,r.A)(i,P),v=(0,u.I)(),A=(0,o.A)({isRtl:v},i),y=(e=>{const{classes:t,orientation:n,disabled:r}=e,o={root:[\"root\",n,r&&\"disabled\"]};return(0,s.A)(o,N,t)})(A),E=null!=(n=f.StartScrollButtonIcon)?n:S,_=null!=(a=f.EndScrollButtonIcon)?a:T,C=(0,c.A)({elementType:E,externalSlotProps:g.startScrollButtonIcon,additionalProps:{fontSize:\"small\"},ownerState:A}),w=(0,c.A)({elementType:_,externalSlotProps:g.endScrollButtonIcon,additionalProps:{fontSize:\"small\"},ownerState:A});return(0,b.jsx)(M,(0,o.A)({component:\"div\",className:(0,l.A)(y.root,d),ref:t,role:null,ownerState:A,tabIndex:null},m,{children:\"left\"===h?(0,b.jsx)(E,(0,o.A)({},C)):(0,b.jsx)(_,(0,o.A)({},w))}))});var I=n(83034);function k(e){return(0,R.Ay)(\"MuiTabs\",e)}const B=(0,D.A)(\"MuiTabs\",[\"root\",\"vertical\",\"flexContainer\",\"flexContainerVertical\",\"centered\",\"scroller\",\"fixed\",\"scrollableX\",\"scrollableY\",\"hideScrollbar\",\"scrollButtons\",\"scrollButtonsHideMobile\",\"indicator\"]);var F=n(96248);const j=[\"aria-label\",\"aria-labelledby\",\"action\",\"centered\",\"children\",\"className\",\"component\",\"allowScrollButtonsMobile\",\"indicatorColor\",\"onChange\",\"orientation\",\"ScrollButtonComponent\",\"scrollButtons\",\"selectionFollowsFocus\",\"slots\",\"slotProps\",\"TabIndicatorProps\",\"TabScrollButtonProps\",\"textColor\",\"value\",\"variant\",\"visibleScrollbar\"],H=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,U=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Y=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||\"true\"===o.getAttribute(\"aria-disabled\");if(o.hasAttribute(\"tabindex\")&&!t)return void o.focus();o=n(e,o)}},G=(0,d.Ay)(\"div\",{name:\"MuiTabs\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${B.scrollButtons}`]:t.scrollButtons},{[`& .${B.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,o.A)({overflow:\"hidden\",minHeight:48,WebkitOverflowScrolling:\"touch\",display:\"flex\"},e.vertical&&{flexDirection:\"column\"},e.scrollButtonsHideMobile&&{[`& .${B.scrollButtons}`]:{[t.breakpoints.down(\"sm\")]:{display:\"none\"}}})),z=(0,d.Ay)(\"div\",{name:\"MuiTabs\",slot:\"Scroller\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>(0,o.A)({position:\"relative\",display:\"inline-block\",flex:\"1 1 auto\",whiteSpace:\"nowrap\"},e.fixed&&{overflowX:\"hidden\",width:\"100%\"},e.hideScrollbar&&{scrollbarWidth:\"none\",\"&::-webkit-scrollbar\":{display:\"none\"}},e.scrollableX&&{overflowX:\"auto\",overflowY:\"hidden\"},e.scrollableY&&{overflowY:\"auto\",overflowX:\"hidden\"})),V=(0,d.Ay)(\"div\",{name:\"MuiTabs\",slot:\"FlexContainer\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>(0,o.A)({display:\"flex\"},e.vertical&&{flexDirection:\"column\"},e.centered&&{justifyContent:\"center\"})),q=(0,d.Ay)(\"span\",{name:\"MuiTabs\",slot:\"Indicator\",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>(0,o.A)({position:\"absolute\",height:2,bottom:0,width:\"100%\",transition:t.transitions.create()},\"primary\"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},\"secondary\"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:\"100%\",width:2,right:0})),W=(0,d.Ay)(function(e){const{onChange:t}=e,n=(0,r.A)(e,_),i=a.useRef(),l=a.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return(0,y.A)(()=>{const e=(0,g.A)(()=>{const e=i.current;s(),e!==i.current&&t(i.current)}),n=(0,E.A)(l.current);return n.addEventListener(\"resize\",e),()=>{e.clear(),n.removeEventListener(\"resize\",e)}},[t]),a.useEffect(()=>{s(),t(i.current)},[t]),(0,b.jsx)(\"div\",(0,o.A)({style:C},n,{ref:l}))})({overflowX:\"auto\",overflowY:\"hidden\",scrollbarWidth:\"none\",\"&::-webkit-scrollbar\":{display:\"none\"}}),Q={},K=a.forwardRef(function(e,t){const n=(0,p.b)({props:e,name:\"MuiTabs\"}),i=(0,f.A)(),d=(0,u.I)(),{\"aria-label\":h,\"aria-labelledby\":y,action:_,centered:C=!1,children:w,className:S,component:T=\"div\",allowScrollButtonsMobile:O=!1,indicatorColor:D=\"primary\",onChange:R,orientation:N=\"horizontal\",ScrollButtonComponent:L=x,scrollButtons:P=\"auto\",selectionFollowsFocus:M,slots:B={},slotProps:K={},TabIndicatorProps:$={},TabScrollButtonProps:X={},textColor:J=\"primary\",value:Z,variant:ee=\"standard\",visibleScrollbar:te=!1}=n,ne=(0,r.A)(n,j),re=\"scrollable\"===ee,oe=\"vertical\"===N,ae=oe?\"scrollTop\":\"scrollLeft\",ie=oe?\"top\":\"left\",le=oe?\"bottom\":\"right\",se=oe?\"clientHeight\":\"clientWidth\",ue=oe?\"height\":\"width\",ce=(0,o.A)({},n,{component:T,allowScrollButtonsMobile:O,indicatorColor:D,orientation:N,vertical:oe,scrollButtons:P,textColor:J,variant:ee,visibleScrollbar:te,fixed:!re,hideScrollbar:re&&!te,scrollableX:re&&!oe,scrollableY:re&&oe,centered:C&&!re,scrollButtonsHideMobile:!O}),de=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:u}=e,c={root:[\"root\",t&&\"vertical\"],scroller:[\"scroller\",n&&\"fixed\",r&&\"hideScrollbar\",o&&\"scrollableX\",a&&\"scrollableY\"],flexContainer:[\"flexContainer\",t&&\"flexContainerVertical\",i&&\"centered\"],indicator:[\"indicator\"],scrollButtons:[\"scrollButtons\",l&&\"scrollButtonsHideMobile\"],scrollableX:[o&&\"scrollableX\"],hideScrollbar:[r&&\"hideScrollbar\"]};return(0,s.A)(c,k,u)})(ce),pe=(0,c.A)({elementType:B.StartScrollButtonIcon,externalSlotProps:K.startScrollButtonIcon,ownerState:ce}),fe=(0,c.A)({elementType:B.EndScrollButtonIcon,externalSlotProps:K.endScrollButtonIcon,ownerState:ce}),[ge,he]=a.useState(!1),[me,ve]=a.useState(Q),[Ae,ye]=a.useState(!1),[Ee,be]=a.useState(!1),[_e,Ce]=a.useState(!1),[we,Se]=a.useState({overflow:\"hidden\",scrollbarWidth:0}),Te=new Map,Oe=a.useRef(null),De=a.useRef(null),Re=()=>{const e=Oe.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:v(e,d?\"rtl\":\"ltr\"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==Z){const e=De.current.children;if(e.length>0){const t=e[Te.get(Z)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},Ne=(0,I.A)(()=>{const{tabsMeta:e,tabMeta:t}=Re();let n,r=0;if(oe)n=\"top\",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=d?\"right\":\"left\",t&&e){const o=d?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(d?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[ue]:t?t[ue]:0};if(isNaN(me[n])||isNaN(me[ue]))ve(o);else{const e=Math.abs(me[n]-o[n]),t=Math.abs(me[ue]-o[ue]);(e>=1||t>=1)&&ve(o)}}),Le=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:a=A,duration:i=300}=r;let l=null;const s=t[e];let u=!1;const c=r=>{if(u)return void o(new Error(\"Animation cancelled\"));null===l&&(l=r);const d=Math.min(1,(r-l)/i);t[e]=a(d)*(n-s)+s,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(c)};s===n?o(new Error(\"Element already at target position\")):requestAnimationFrame(c)}(ae,Oe.current,e,{duration:i.transitions.duration.standard}):Oe.current[ae]=e},Pe=e=>{let t=Oe.current[ae];oe?t+=e:(t+=e*(d?-1:1),t*=d&&\"reverse\"===m()?-1:1),Le(t)},Me=()=>{const e=Oe.current[se];let t=0;const n=Array.from(De.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[se]>e){0===r&&(t=e);break}t+=o[se]}return t},xe=()=>{Pe(-1*Me())},Ie=()=>{Pe(Me())},ke=a.useCallback(e=>{Se({overflow:null,scrollbarWidth:e})},[]),Be=(0,I.A)(e=>{const{tabsMeta:t,tabMeta:n}=Re();if(n&&t)if(n[ie]<t[ie]){const r=t[ae]+(n[ie]-t[ie]);Le(r,{animation:e})}else if(n[le]>t[le]){const r=t[ae]+(n[le]-t[le]);Le(r,{animation:e})}}),Fe=(0,I.A)(()=>{re&&!1!==P&&Ce(!_e)});a.useEffect(()=>{const e=(0,g.A)(()=>{Oe.current&&Ne()});let t;const n=(0,E.A)(Oe.current);let r;return n.addEventListener(\"resize\",e),\"undefined\"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(De.current.children).forEach(e=>{t.observe(e)})),\"undefined\"!=typeof MutationObserver&&(r=new MutationObserver(n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),Fe()}),r.observe(De.current,{childList:!0})),()=>{var o,a;e.clear(),n.removeEventListener(\"resize\",e),null==(o=r)||o.disconnect(),null==(a=t)||a.disconnect()}},[Ne,Fe]),a.useEffect(()=>{const e=Array.from(De.current.children),t=e.length;if(\"undefined\"!=typeof IntersectionObserver&&t>0&&re&&!1!==P){const n=e[0],r=e[t-1],o={root:Oe.current,threshold:.99},a=new IntersectionObserver(e=>{ye(!e[0].isIntersecting)},o);a.observe(n);const i=new IntersectionObserver(e=>{be(!e[0].isIntersecting)},o);return i.observe(r),()=>{a.disconnect(),i.disconnect()}}},[re,P,_e,null==w?void 0:w.length]),a.useEffect(()=>{he(!0)},[]),a.useEffect(()=>{Ne()}),a.useEffect(()=>{Be(Q!==me)},[Be,me]),a.useImperativeHandle(_,()=>({updateIndicator:Ne,updateScrollButtons:Fe}),[Ne,Fe]);const je=(0,b.jsx)(q,(0,o.A)({},$,{className:(0,l.A)(de.indicator,$.className),ownerState:ce,style:(0,o.A)({},me,$.style)}));let He=0;const Ue=a.Children.map(w,e=>{if(!a.isValidElement(e))return null;const t=void 0===e.props.value?He:e.props.value;Te.set(t,He);const n=t===Z;return He+=1,a.cloneElement(e,(0,o.A)({fullWidth:\"fullWidth\"===ee,indicator:n&&!ge&&je,selected:n,selectionFollowsFocus:M,onChange:R,textColor:J,value:t},1!==He||!1!==Z||e.props.tabIndex?{}:{tabIndex:0}))}),Ye=(()=>{const e={};e.scrollbarSizeListener=re?(0,b.jsx)(W,{onChange:ke,className:(0,l.A)(de.scrollableX,de.hideScrollbar)}):null;const t=re&&(\"auto\"===P&&(Ae||Ee)||!0===P);return e.scrollButtonStart=t?(0,b.jsx)(L,(0,o.A)({slots:{StartScrollButtonIcon:B.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:pe},orientation:N,direction:d?\"right\":\"left\",onClick:xe,disabled:!Ae},X,{className:(0,l.A)(de.scrollButtons,X.className)})):null,e.scrollButtonEnd=t?(0,b.jsx)(L,(0,o.A)({slots:{EndScrollButtonIcon:B.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:N,direction:d?\"left\":\"right\",onClick:Ie,disabled:!Ee},X,{className:(0,l.A)(de.scrollButtons,X.className)})):null,e})();return(0,b.jsxs)(G,(0,o.A)({className:(0,l.A)(de.root,S),ownerState:ce,ref:t,as:T},ne,{children:[Ye.scrollButtonStart,Ye.scrollbarSizeListener,(0,b.jsxs)(z,{className:de.scroller,ownerState:ce,style:{overflow:we.overflow,[oe?\"margin\"+(d?\"Left\":\"Right\"):\"marginBottom\"]:te?void 0:-we.scrollbarWidth},ref:Oe,children:[(0,b.jsx)(V,{\"aria-label\":h,\"aria-labelledby\":y,\"aria-orientation\":\"vertical\"===N?\"vertical\":null,className:de.flexContainer,ownerState:ce,onKeyDown:e=>{const t=De.current,n=(0,F.A)(t).activeElement;if(\"tab\"!==n.getAttribute(\"role\"))return;let r=\"horizontal\"===N?\"ArrowLeft\":\"ArrowUp\",o=\"horizontal\"===N?\"ArrowRight\":\"ArrowDown\";switch(\"horizontal\"===N&&d&&(r=\"ArrowRight\",o=\"ArrowLeft\"),e.key){case r:e.preventDefault(),Y(t,n,U);break;case o:e.preventDefault(),Y(t,n,H);break;case\"Home\":e.preventDefault(),Y(t,null,H);break;case\"End\":e.preventDefault(),Y(t,null,U)}},ref:De,role:\"tablist\",children:Ue}),ge&&je]}),Ye.scrollButtonEnd]}))});var $=n(28466);function X(e){return(0,R.Ay)(\"MuiTab\",e)}const J=(0,D.A)(\"MuiTab\",[\"root\",\"labelIcon\",\"textColorInherit\",\"textColorPrimary\",\"textColorSecondary\",\"selected\",\"disabled\",\"fullWidth\",\"wrapped\",\"iconWrapper\"]),Z=[\"className\",\"disabled\",\"disableFocusRipple\",\"fullWidth\",\"icon\",\"iconPosition\",\"indicator\",\"label\",\"onChange\",\"onClick\",\"onFocus\",\"selected\",\"selectionFollowsFocus\",\"textColor\",\"value\",\"wrapped\"],ee=(0,d.Ay)(O.A,{name:\"MuiTab\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,$.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${J.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>(0,o.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:\"relative\",minHeight:48,flexShrink:0,padding:\"12px 16px\",overflow:\"hidden\",whiteSpace:\"normal\",textAlign:\"center\"},t.label&&{flexDirection:\"top\"===t.iconPosition||\"bottom\"===t.iconPosition?\"column\":\"row\"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${J.iconWrapper}`]:(0,o.A)({},\"top\"===t.iconPosition&&{marginBottom:6},\"bottom\"===t.iconPosition&&{marginTop:6},\"start\"===t.iconPosition&&{marginRight:e.spacing(1)},\"end\"===t.iconPosition&&{marginLeft:e.spacing(1)})},\"inherit\"===t.textColor&&{color:\"inherit\",opacity:.6,[`&.${J.selected}`]:{opacity:1},[`&.${J.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},\"primary\"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${J.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${J.disabled}`]:{color:(e.vars||e).palette.text.disabled}},\"secondary\"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${J.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${J.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:\"none\"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),te=a.forwardRef(function(e,t){const n=(0,p.b)({props:e,name:\"MuiTab\"}),{className:i,disabled:u=!1,disableFocusRipple:c=!1,fullWidth:d,icon:f,iconPosition:g=\"top\",indicator:h,label:m,onChange:v,onClick:A,onFocus:y,selected:E,selectionFollowsFocus:_,textColor:C=\"inherit\",value:w,wrapped:S=!1}=n,T=(0,r.A)(n,Z),O=(0,o.A)({},n,{disabled:u,disableFocusRipple:c,selected:E,icon:!!f,iconPosition:g,label:!!m,fullWidth:d,textColor:C,wrapped:S}),D=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:l,disabled:u}=e,c={root:[\"root\",a&&i&&\"labelIcon\",`textColor${(0,$.A)(n)}`,r&&\"fullWidth\",o&&\"wrapped\",l&&\"selected\",u&&\"disabled\"],iconWrapper:[\"iconWrapper\"]};return(0,s.A)(c,X,t)})(O),R=f&&m&&a.isValidElement(f)?a.cloneElement(f,{className:(0,l.A)(D.iconWrapper,f.props.className)}):f;return(0,b.jsxs)(ee,(0,o.A)({focusRipple:!c,className:(0,l.A)(D.root,i),ref:t,role:\"tab\",\"aria-selected\":E,disabled:u,onClick:e=>{!E&&v&&v(e,w),A&&A(e)},onFocus:e=>{_&&!E&&v&&v(e,w),y&&y(e)},ownerState:O,tabIndex:E?0:-1},T,{children:[\"top\"===g||\"start\"===g?(0,b.jsxs)(a.Fragment,{children:[R,m]}):(0,b.jsxs)(a.Fragment,{children:[m,R]}),h]}))});var ne=n(28161),re=n(84976),oe=n(13075),ae=(n(52675),n(89463),n(2259),n(45700),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(27495),n(38781),n(47764),n(23500),n(62953),n(1795)),ie=n(19741),le=n(65724),se=n(73896),ue=n(68864),ce=n(27558),de=n(80663),pe=n(15664),fe=(0,d.Ay)(ne.A)(function(e){var t=e.theme;return{position:\"relative\",\"& .MuiTabs-fixed\":{borderBottom:\"1px solid \".concat(t.palette.grey[100])},\"& .MuiTabs-root\":{minHeight:t.spacing(0),\"& .MuiTabs-scroller\":{borderBottom:\"1px solid \".concat(t.palette.grey[100]),\"& .MuiTabs-indicator\":{borderRadius:\"2px 2px 0 0\"}}},\"& .MuiTabs-flexContainer\":{\"& .MuiButtonBase-root\":{color:t.palette.grey[200],font:\"normal normal 500 16px/22px NotoSans-Medium\",minHeight:t.spacing(0),paddingBottom:t.spacing(1),\"&.Mui-selected\":{color:t.palette.primary.main}}},\"& .tabs-scroll \":{\"& .MuiTabs-scroller\":{overflowX:\"auto !important\",scrollbarWidth:\"thin !important\",\"&::-webkit-scrollbar\":{width:\"6px\",height:\"5px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}}},\".tabs-selector\":{position:\"absolute\",top:\"0px\",right:\"0\"}}});function ge(e){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ge(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ge(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ge(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ee=a.memo(function(e){var t=e.options,n=void 0===t?[]:t,r=e.onApplySelectedTabs,o=(e.onItemClick,Ae(a.useState(null),2)),i=o[0],l=o[1],s=Ae(a.useState(n),2),u=s[0],c=s[1],d=Boolean(i);return a.createElement(a.Fragment,null,a.createElement(ne.A,{onClick:function(e){l(e.currentTarget)},\"data-testid\":\"handleClick\"},a.createElement(ae.A,null)),a.createElement(ie.A,{id:\"basic-menu\",open:d,onClose:function(){l(null)},MenuListProps:{\"aria-labelledby\":\"basic-button\"},anchorEl:i,className:\"menu-content\"},u.length>0&&u.map(function(e){return a.createElement(le.A,{key:e.label},a.createElement(se.A,{\"data-testid\":\"itemClickHandler\",key:\"menu-item-\".concat(e.label),onClick:function(){return t=e,n=u.map(function(e){return me(me({},e),{},{checked:e.label===t.label?!e.checked:e.checked})}),r=n.filter(function(e){return!0===e.checked}),n=r.length>=6?n.map(function(e){return me(me({},e),{},{disabled:!e.checked})}):n.map(function(e){return me(me({},e),{},{disabled:!1})}),void c(n);var t,n,r}},a.createElement(ue.A,{control:a.createElement(ce.A,{checked:null==e?void 0:e.checked,disabled:e.disabled}),label:e.label})))}),a.createElement(de.A,{direction:\"row\",justifyContent:\"center\",p:1},a.createElement(pe.A,{variant:\"contained\",color:\"primary\",fullwidth:!1,buttonName:\"Apply\",onButtonClick:function(){r(u),l(null)}}))))});function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(null,arguments)}var _e=function(e){var t,n=e.tabStateProps,r=n.tablist,o=n.currentTabs,a=e.handleTabChange,l=void 0===a?function(){}:a,s=e.isParamsReq,u=void 0!==s&&s,c=e.isRouteTabs,d=void 0===c||c,p=e.isScrollVisible,f=e.defaultTab,g=void 0===f?[]:f,h=e.onApplySelectedTabs;function m(e){return{id:\"simple-tab-\".concat(e),\"aria-controls\":\"simple-tabpanel-\".concat(e)}}var v=function(e){var t,n=null;return d&&u?n=\"\".concat(e.path,\"/?\").concat((t=e.queryParam,u&&t?(0,oe.Nr)(t):null)):d&&(n=e.path),n};return i().createElement(fe,null,i().createElement(K,{className:p,value:o,onChange:function(e,t){l(t)},\"aria-label\":\"basic tabs example\"},r.length&&Object.keys(r[0]).some(function(e){return\"checked\"===e})?null==r||null===(t=r.filter(function(e){return null==e?void 0:e.checked}))||void 0===t?void 0:t.map(function(e){return i().createElement(te,be({label:e.tabName,key:\"\".concat(e.tabName),value:e.path,component:d?re.N_:null,to:v(e)},m(0)))}):null==r?void 0:r.map(function(e){return i().createElement(te,be({label:e.tabName,key:\"\".concat(e.tabName),value:e.path,component:d?re.N_:null,to:v(e)},m(0)))})),(null==g?void 0:g.length)>4&&i().createElement(ne.A,{className:\"tabs-selector\"},i().createElement(Ee,{options:null==g?void 0:g.map(function(e){return{label:e.tabName,value:e.id,checked:null==e?void 0:e.checked}}),onApplySelectedTabs:h})))};const Ce=i().memo(_e)},46449:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(70259),a=n(48981),i=n(26198),l=n(91291),s=n(1469);r({target:\"Array\",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t),r=s(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:l(e)),r}})},46518:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(77347).f,a=n(66699),i=n(36840),l=n(39433),s=n(77740),u=n(92796);e.exports=function(e,t){var n,c,d,p,f,g=e.target,h=e.global,m=e.stat;if(n=h?r:m?r[g]||l(g,{}):r[g]&&r[g].prototype)for(c in t){if(p=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(h?c:g+(m?\".\":\"#\")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;s(p,d)}(e.sham||d&&d.sham)&&a(p,\"sham\",!0),i(n,c,p,e)}}},46637:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o=e+\" \";switch(n){case\"s\":return t||r?\"nekaj sekund\":\"nekaj sekundami\";case\"ss\":return o+(1===e?t?\"sekundo\":\"sekundi\":2===e?t||r?\"sekundi\":\"sekundah\":e<5?t||r?\"sekunde\":\"sekundah\":\"sekund\");case\"m\":return t?\"ena minuta\":\"eno minuto\";case\"mm\":return o+(1===e?t?\"minuta\":\"minuto\":2===e?t||r?\"minuti\":\"minutama\":e<5?t||r?\"minute\":\"minutami\":t||r?\"minut\":\"minutami\");case\"h\":return t?\"ena ura\":\"eno uro\";case\"hh\":return o+(1===e?t?\"ura\":\"uro\":2===e?t||r?\"uri\":\"urama\":e<5?t||r?\"ure\":\"urami\":t||r?\"ur\":\"urami\");case\"d\":return t||r?\"en dan\":\"enim dnem\";case\"dd\":return o+(1===e?t||r?\"dan\":\"dnem\":2===e?t||r?\"dni\":\"dnevoma\":t||r?\"dni\":\"dnevi\");case\"M\":return t||r?\"en mesec\":\"enim mesecem\";case\"MM\":return o+(1===e?t||r?\"mesec\":\"mesecem\":2===e?t||r?\"meseca\":\"mesecema\":e<5?t||r?\"mesece\":\"meseci\":t||r?\"mesecev\":\"meseci\");case\"y\":return t||r?\"eno leto\":\"enim letom\";case\"yy\":return o+(1===e?t||r?\"leto\":\"letom\":2===e?t||r?\"leti\":\"letoma\":e<5?t||r?\"leta\":\"leti\":t||r?\"let\":\"leti\")}}e.defineLocale(\"sl\",{months:\"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december\".split(\"_\"),monthsShort:\"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota\".split(\"_\"),weekdaysShort:\"ned._pon._tor._sre._čet._pet._sob.\".split(\"_\"),weekdaysMin:\"ne_po_to_sr_če_pe_so\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD. MM. YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd, D. MMMM YYYY H:mm\"},calendar:{sameDay:\"[danes ob] LT\",nextDay:\"[jutri ob] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[v] [nedeljo] [ob] LT\";case 3:return\"[v] [sredo] [ob] LT\";case 6:return\"[v] [soboto] [ob] LT\";case 1:case 2:case 4:case 5:return\"[v] dddd [ob] LT\"}},lastDay:\"[včeraj ob] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[prejšnjo] [nedeljo] [ob] LT\";case 3:return\"[prejšnjo] [sredo] [ob] LT\";case 6:return\"[prejšnjo] [soboto] [ob] LT\";case 1:case 2:case 4:case 5:return\"[prejšnji] dddd [ob] LT\"}},sameElse:\"L\"},relativeTime:{future:\"čez %s\",past:\"pred %s\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},46706:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},46942:(e,t)=>{var n;!function(){\"use strict\";var r={}.hasOwnProperty;function o(){for(var e=\"\",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if(\"string\"==typeof e||\"number\"==typeof e)return e;if(\"object\"!=typeof e)return\"\";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes(\"[native code]\"))return e.toString();var t=\"\";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+\" \"+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},47055:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79039),a=n(22195),i=Object,l=r(\"\".split);e.exports=o(function(){return!i(\"z\").propertyIsEnumerable(0)})?function(e){return\"String\"===a(e)?l(e,\"\"):i(e)}:i},47119:e=>{\"use strict\";e.exports=\"undefined\"!=typeof Reflect&&Reflect&&Reflect.apply},47225:(e,t,n)=>{\"use strict\";n.d(t,{v:()=>r});var r=(0,n(81970).createContext)({})},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47274:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2f8ef3eb51d7233a67b1.woff2\"},47298:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>ge}),n(52675),n(89463),n(2259),n(45700),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(54554),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(90891),i=n(90815),l=n(14073),s=n(47839),u=n(11641),c=n(17630);const d=function(e){var t=e.tooltipText,n=e.title,r=e.t,d=e.classes;return o().createElement(i.A,{direction:\"row\",spacing:2,alignItems:\"center\"},o().createElement(l.A,{variant:\"subtitle1\",color:c.T.primaryBlack},r(t)),o().createElement(s.A,{title:r(n),placement:\"right\",arrow:!0,className:d.AdminConfigTooltip},o().createElement(u.A,null,o().createElement(a.A,null))))};var p=n(34195),f=n(47767),g=n(47225),h=n(70380),m=n(13075),v=n(75027),A=(n(60739),n(28161)),y=n(60538),E=n(88084),b=n(96348),_=n(92416),C=n(15664),w=n(76906),S=n(64121),T=n(28152),O=n(27776),D=n(7501),R=n(15941),N=function(e){return R.Yj().nullable().required(e).test(\"is-valid-date\",\"Enter valid date\",function(e){return!(!e||!(0,h.ux)(e)||!(0,h.ux)(e,\"DD-MMM\")&&!(0,h.ux)(e,\"DD-MMM-YYYY\"))})},L=function(e){return R.YO().test(\"validator-custom-name\",function(t,n){var r=n.createError,o=n.path;return t?null!=t&&t.length&&(0,h.ux)(null==t?void 0:t[1])?null==t||!t.length||!(0,h.dE)(t,\"DD-MMM-YYYY\")||r({path:o,message:\"End Date should be greater than Start Date\"}):r({path:o,message:\"Enter valid date\"}):r({path:o,message:e})})},P=n(56203),M=n(79043);function x(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return I(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(I(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,I(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,I(d,\"constructor\",u),I(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",I(u,o,\"GeneratorFunction\"),I(d),I(d,o,\"Generator\"),I(d,r,function(){return this}),I(d,\"toString\",function(){return\"[object Generator]\"}),(x=function(){return{w:a,m:p}})()}function I(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}I=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){I(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},I(e,t,n,r)}function k(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}const B=function(e){var t=e.initialForm,n=e.saveLiquidationTargetsFormData,r=e.renderToolTip,a=e.roleData,s=e.hasLiquidationConfig,u=e.setPortfolioAndBrandTableData,c=e.callFetchHQByHQHierarchySequence,d=e.hqHierarchyData,p=e.minimumDate,f=e.maximumDate,g=e.setEnablePopup,m=e.navigate,I=e.enablePopup,B=e.renderPortfolioAndBrand,F=e.isPFP,j=(0,v.I)();return o().createElement(O.T,null,o().createElement(E.l1,{initialValues:t,enableReinitialize:!0,validationSchema:function(){return e=F,R.Ik().shape({salesHierarchyRole:R.Ik().nullable().test(\"is-empty\",\"SalesHierarchy Role Required\",function(e){return null==e?void 0:e.label}),hqHierarchy:R.Ik().nullable().test(\"is-empty\",\"HQ Hierarchy Required\",function(t){return!!e||(null==t?void 0:t.label)}),targetType:R.Yj().required(\"Target Type Required\"),targetUploadStartDate:N(\"Start Date Required\"),targetUploadEndDate:L(\"End Date Required\"),actualsUploadStartDate:N(\"Start Date Required\"),actualsUploadEndDate:L(\"End Date Required\")});var e},onSubmit:function(){var e,t=(e=x().m(function e(t,r){var o;return x().w(function(e){for(;;)switch(e.n){case 0:return o=r.resetForm,e.n=1,n(t);case 1:o({values:t});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){k(a,r,o,i,l,\"next\",e)}function l(e){k(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n){return t.apply(this,arguments)}}()},function(e){var n,v,O,R,N,L,x,k,H,U,Y,G,z=e.values,V=e.setFieldValue,q=e.dirty;return o().createElement(E.lV,null,o().createElement(A.A,null,o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(A.A,null,o().createElement(_.A,{routePathName:[{name:b.F_.Configurations,path:b.fp.Configurations},{name:F?b.F_.Pay_For_Performance:b.F_.Liquidation_Targets_Actuals,path:b.fp.Liquidation_Targets_Actuals}]})))),o().createElement(A.A,{position:\"relative\"},o().createElement(A.A,{className:j.AdminConfigFields},o().createElement(y.A,{className:j.AdminConfig,elevation:0},r(\"TARGET_FOR\",F?\"SELECT_PFP_TARGET_FOR_TOOLTIP\":\"SELECT_TARGET_FOR_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",justifyContent:\"start\",alignItems:\"center\",gap:2,mb:1},o().createElement(A.A,{className:j.adminConfigInputWrapper},o().createElement(l.A,{fontWeight:700,variant:\"body1\"},(0,P.t)(\"SELECT_ROLE\")),o().createElement(S.A,{onChange:function(e,t){return V(\"salesHierarchyRole\",t)},name:\"salesHierarchyRole\",options:a,labelKey:\"label\",label:\"\",selectedOption:null!==(n=null===(v=z.salesHierarchyRole)||void 0===v?void 0:v.label)&&void 0!==n?n:\"\",value:null!==(O=null===(R=z.salesHierarchyRole)||void 0===R?void 0:R.label)&&void 0!==O?O:\"\",defaultLabel:(0,P.t)(\"SELECT_ROLE\"),isDisabled:s}),o().createElement(T.A,{errName:\"salesHierarchyRole\"})))),F?o().createElement(o().Fragment,null):o().createElement(o().Fragment,null,o().createElement(y.A,{className:j.AdminConfig,elevation:0},r(\"SET_NNR_VALUE\",\"SET_NNR_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},o().createElement(A.A,{className:j.adminConfigInputWrapper},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"SELECT_HQ_HIERARCHY\")),o().createElement(S.A,{name:\"hqHierarchy\",onChange:function(e,t){V(\"hqHierarchy\",t),u([]),c(t)},options:d,labelKey:\"label\",label:\"\",selectedOption:null!==(N=null===(L=z.hqHierarchy)||void 0===L?void 0:L.label)&&void 0!==N?N:\"\",value:null!==(x=null===(k=z.hqHierarchy)||void 0===k?void 0:k.label)&&void 0!==x?x:\"\",defaultLabel:(0,P.t)(\"HQHIERARCHY_NAME\"),isDisabled:s}),o().createElement(T.A,{errName:\"hqHierarchy\"})))),B(z,V)),o().createElement(y.A,{className:j.AdminConfig,elevation:0},r(\"TARGET_TYPE\",\"TARGET_TYPE_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},o().createElement(A.A,{className:j.adminConfigInputWrapper},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"SELECT_TYPE\")),o().createElement(S.A,{name:\"targetType\",onChange:function(e,t){return V(\"targetType\",t)},options:D.NU,labelKey:\"label\",label:\"\",selectedOption:z.targetType,value:z.targetType,defaultLabel:(0,P.t)(\"YEARLY\"),isDisabled:s}),o().createElement(T.A,{errName:\"targetType\"})))),o().createElement(y.A,{className:j.AdminConfig,elevation:0},r(\"TARGETs_UPLOAD_DURATION\",F?\"TARGET_PFP_UPLOAD_TOOLTIP\":\"TARGET_UPLOAD_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",alignItems:\"start\",justifyContent:\"start\",mb:1,gap:2},o().createElement(A.A,{className:j.adminConfigInputWrapper},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"START_DATE\")),o().createElement(w.A,{calenderType:[\"month\",\"day\"],value:z.targetUploadStartDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=z&&null!==(t=z.targetUploadEndDate)&&void 0!==t&&t.length&&V(\"targetUploadEndDate\",[(0,h.Yq)(e,\"DD-MMM-YYYY\"),(0,h.Yq)(z.targetUploadEndDate[1],\"DD-MMM-YYYY\")]),V(\"targetUploadStartDate\",(0,h.Yq)(e,\"DD-MMM-YYYY\"))},customFormat:\"DD-MMM\",openToType:\"month\",minDate:p,maxDate:f}),o().createElement(T.A,{errName:\"targetUploadStartDate\"})),o().createElement(A.A,{className:\"\".concat(j.adminConfigInputWrapper)},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"END_DATE\")),o().createElement(w.A,{calenderType:[\"month\",\"day\"],value:null!==(H=null==z||null===(U=z.targetUploadEndDate)||void 0===U?void 0:U[1])&&void 0!==H?H:\"\",handleChangeDatePicker:function(e){V(\"targetUploadEndDate\",[z.targetUploadStartDate,(0,h.Yq)(e,\"DD-MMM-YYYY\")])},customFormat:\"DD-MMM\",openToType:\"month\",minDate:z.targetUploadStartDate,maxDate:f}),o().createElement(T.A,{errName:\"targetUploadEndDate\"})))),o().createElement(y.A,{className:j.AdminConfig,elevation:0},r(\"ACTUALS_UPLOAD_DURATION\",F?\"ACTUALS_PFP_UPLOAD_TOOLTIP\":\"ACTUALS_UPLOAD_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",alignItems:\"start\",justifyContent:\"start\",mb:1,gap:2},o().createElement(A.A,{className:j.adminConfigInputWrapper},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"START_DATE\")),o().createElement(w.A,{calenderType:[\"month\",\"day\"],value:z.actualsUploadStartDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=z&&null!==(t=z.actualsUploadEndDate)&&void 0!==t&&t.length&&V(\"actualsUploadEndDate\",[(0,h.Yq)(e,\"DD-MMM-YYYY\"),(0,h.Yq)(z.actualsUploadEndDate[1],\"DD-MMM-YYYY\")]),V(\"actualsUploadStartDate\",(0,h.Yq)(e,\"DD-MMM-YYYY\"))},customFormat:\"DD-MMM\",openToType:\"month\",minDate:p,maxDate:f}),o().createElement(T.A,{errName:\"actualsUploadStartDate\"})),o().createElement(A.A,{className:\"\".concat(j.adminConfigInputWrapper)},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"END_DATE\")),o().createElement(w.A,{calenderType:[\"month\",\"day\"],value:null!==(Y=null===(G=z.actualsUploadEndDate)||void 0===G?void 0:G[1])&&void 0!==Y?Y:\"\",handleChangeDatePicker:function(e){V(\"actualsUploadEndDate\",[z.actualsUploadStartDate,(0,h.Yq)(e,\"DD-MMM-YYYY\")])},customFormat:\"DD-MMM\",openToType:\"month\",minDate:z.actualsUploadStartDate,maxDate:f}),o().createElement(T.A,{errName:\"actualsUploadEndDate\"}))))),o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},o().createElement(i.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},o().createElement(C.A,{buttonName:(0,P.t)(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return q?g(q):m(-1)}}),o().createElement(C.A,{disabled:JSON.stringify(t)==JSON.stringify(z),buttonName:(0,P.t)(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",type:\"submit\"})))),o().createElement(M.B,{isVisible:I,message:\"\".concat((0,P.t)(\"CONFIRMATION_TEXT\")),onRequestClose:function(){return g(!1)},onButtonClick:function(){m(-1),g(!1)}}))}))};var F=n(77217),j=n(6347),H=n(37998),U=n(43605),Y=n(48506);function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W=function(e){var t,n,r,a,s,u,c,d,p=e.values,f=e.setFieldValue,g=e.portfolioAndBrandTableData,h=e.renderToolTip,m=e.setErrorState,E=e.portfolioData,b=e.getFieldErrorMessage,_=e.dmHQData,w=e.liquidationCategoryData,T=e.setPercentageCategoryData,O=e.percentageCategoryData,D=e.onClickAddButtonHandler,R=e.setDmHQData,N=e.setLiquidationCategoryData,L=(0,v.I)();return o().createElement(y.A,{className:L.AdminConfig,elevation:0},h(\"SET_PORTFOLIO_AND_BRAND_VALUE\",\"SET_PORTFOLIO_TOOLTIP\"),o().createElement(i.A,{direction:\"row\",alignItems:\"flex-start\",justifyContent:\"start\",mb:1,gap:2,alignContent:\"flex-start\"},o().createElement(A.A,{sx:{display:\"grid\",gridTemplateColumns:\"repeat(4, 260px)\",gap:2}},o().createElement(A.A,{sx:{width:250}},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"SELECT_PORTFOLIO\")),o().createElement(S.A,{name:\"portfolio\",onChange:function(e,t){m(function(e){return V(V({},e),{},{isPortfolioError:!1})}),f(\"portfolio\",t)},options:E,labelKey:\"label\",label:\"\",selectedOption:null!==(t=null===(n=p.portfolio)||void 0===n?void 0:n.label)&&void 0!==t?t:\"\",value:null!==(r=null===(a=p.portfolio)||void 0===a?void 0:a.label)&&void 0!==r?r:\"\",defaultLabel:(0,P.t)(\"SELECT_PORTFOLIO\")}),o().createElement(j.A,{error:!0},o().createElement(l.A,{className:\"MuiFormHelperText-root Mui-error-validation css-1xfrgey-MuiFormHelperText-root\"},b(\"portfolio\",p)))),o().createElement(A.A,{className:L.autoCompleteBox},o().createElement(l.A,{variant:\"body1\",fontWeight:700},\"Select \".concat(null==p||null===(s=p.hqHierarchy)||void 0===s?void 0:s.label)),o().createElement(Y.A,{name:(null==p||null===(u=p.hqHierarchy)||void 0===u?void 0:u.label)||\"DM HQ\",options:_,selectedOption:(null==p?void 0:p.dmhq)||[],onHandleChange:function(e){f(\"dmhq\",e),m(function(e){return V(V({},e),{},{isDmhqError:!1})})}}),o().createElement(j.A,{error:!0},o().createElement(l.A,{className:\"MuiFormHelperText-root Mui-error-validation css-1xfrgey-MuiFormHelperText-root\"},b(\"dmhq\",p)))),o().createElement(A.A,{className:L.autoCompleteBox},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"SELECT_DISPLAY_BRAND_CATEGORY\")),o().createElement(Y.A,{name:(0,P.t)(\"SELECT_DISPLAY_BRAND_CATEGORY\"),options:w,selectedOption:null!==(c=null==p?void 0:p.displayBrandCategory)&&void 0!==c?c:[],onHandleChange:function(e){f(\"displayBrandCategory\",e),m(function(t){return V(V({},t),{},{isDisplayBrandCategoryError:(null==e?void 0:e.length)<2})}),f(\"percentageBrandCategory\",[]);var t=null==e?void 0:e.map(function(e){return V(V({},e),{},{checked:!1})});T(t)},style:{maxWidth:250}}),o().createElement(j.A,{error:!0},o().createElement(l.A,{className:\"MuiFormHelperText-root Mui-error-validation css-1xfrgey-MuiFormHelperText-root\"},b(\"displayBrandCategory\",p)))),o().createElement(A.A,{className:L.autoCompleteBox},o().createElement(l.A,{variant:\"body1\",fontWeight:700},(0,P.t)(\"SELECT_PERCENTAGE_BRAND_CATEGORY\")),o().createElement(Y.A,{name:(0,P.t)(\"SELECT_PERCENTAGE_BRAND_CATEGORY\"),options:O,selectedOption:null!==(d=null==p?void 0:p.percentageBrandCategory)&&void 0!==d?d:[],onHandleChange:function(e){f(\"percentageBrandCategory\",e),m(function(t){return V(V({},t),{},{isPercentageBrandCategoryError:(null==e?void 0:e.length)<2||(null==e?void 0:e.length)>3})})},disabled:0===(null==O?void 0:O.length)}),o().createElement(j.A,{error:!0},o().createElement(l.A,{className:\"MuiFormHelperText-root Mui-error-validation css-1xfrgey-MuiFormHelperText-root\"},b(\"percentageBrandCategory\",p))))),o().createElement(A.A,{alignSelf:\"flex-start\",paddingTop:\"24px\",textAlign:\"end\",flexGrow:1},o().createElement(C.A,{onButtonClick:function(){if(D(p)){f(\"onAddPortfolioAndBrandClicked\",!0),f(\"portfolio\",[]),f(\"dmhq\",[]),f(\"displayBrandCategory\",[]),f(\"percentageBrandCategory\",[]);var e=null==_?void 0:_.map(function(e){return V(V({},e),{},{checked:!1})}),t=null==w?void 0:w.map(function(e){return V(V({},e),{},{checked:!1})});R(e),N(t),T([])}},buttonName:\"+ \".concat((0,P.t)(\"ADD\")),color:\"primary\",fullwidth:!1,variant:\"contained\"}))),null!=g&&g.length?o().createElement(y.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table fixed-row-size\",elevation:0,style:{marginTop:\"16px\"}},o().createElement(U.A,{rows:g,columnDefs:H.yG,isPaginationHidden:!0})):null)},Q=function(e){return o().createElement(W,e)};function K(e){return K=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},K(e)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function J(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=K(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=K(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==K(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(74423),n(21699);var Z=function(e){return null==e?void 0:e.map(function(e){return{value:(null==e?void 0:e.code)||e.id,label:e.name,id:e.id,code:null==e?void 0:e.code,checked:!1}})},ee=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():\"\"},te=function(e,t,n){var r,o=[];return(null==e?void 0:e.length)>0&&(null==t||null===(r=t.liquidationTemplateConfigs)||void 0===r||r.forEach(function(t){var r,a,i,l=null==e||null===(r=e.filter(function(e){var n;return null==t||null===(n=t.head_quarter_ids)||void 0===n?void 0:n.includes(null==e?void 0:e.id)}))||void 0===r?void 0:r.map(function(e){return null==e?void 0:e.label}),s=null==n||null===(a=n.filter(function(e){var n;return null==t||null===(n=t.display_brand_category_ids)||void 0===n?void 0:n.includes(null==e?void 0:e.id)}))||void 0===a?void 0:a.map(function(e){return null==e?void 0:e.label}),u=null==n||null===(i=n.filter(function(e){var n;return null==t||null===(n=t.percentage_brand_category_ids)||void 0===n?void 0:n.includes(null==e?void 0:e.id)}))||void 0===i?void 0:i.map(function(e){return null==e?void 0:e.label});o.push(X(X({},t),{},{head_quarter_Names:l,display_brand_category_Names:s,percentage_brand_category_Names:u}))})),o};function ne(e){return ne=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ne(e)}function re(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||pe(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function oe(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return ae(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(ae(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ae(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,ae(d,\"constructor\",u),ae(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",ae(u,o,\"GeneratorFunction\"),ae(d),ae(d,o,\"Generator\"),ae(d,r,function(){return this}),ae(d,\"toString\",function(){return\"[object Generator]\"}),(oe=function(){return{w:a,m:p}})()}function ae(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}ae=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){ae(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},ae(e,t,n,r)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach(function(t){se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ne(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ne(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ce(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ue(a,r,o,i,l,\"next\",e)}function l(e){ue(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||pe(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function pe(e,t){if(e){if(\"string\"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ge=function(){var e,t,n,a,i=(0,r.useContext)(g.v),l=i.BackOfficeProps,s=l.globalStore.User,u=l.baseurl,c=i.triggerShowLoader,A=i.triggerToastMsg,y=function(e){var t=e.User,n=e.baseurl,o=e.triggerShowLoader,a=(0,r.useCallback)(function(){return new Promise(function(e,r){var a;null===(a=(0,F.ou)(\"salesHierarchy\",t,n,o))||void 0===a||a.then(function(t){if((0,m.mN)(t)&&t.data.sales_hierarchy_view_List.length>0)return e(t.data);throw new Error(t.data.errorMessage)}).catch(function(e){return r(new Error(e))})})},[t,n,o]),i=(0,r.useCallback)(function(){return new Promise(function(e,r){var a;null===(a=(0,F.ou)(\"hqHierarchy\",t,n,o))||void 0===a||a.then(function(t){if((0,m.mN)(t))return e(t.data);throw new Error(t.data.errorMessage)}).catch(function(e){return r(new Error(e))})})},[t,n,o]),l=(0,r.useCallback)(function(e){return new Promise(function(r,a){var i=null==e?void 0:e.id;(0,F.a_)(i,t,n,o).then(function(e){if((0,m.mN)(e)&&e.data.length>0)return r(e.data);throw new Error(e.data.errorMessage)}).catch(function(e){return a(new Error(e))})})},[t,n,o]),s=(0,r.useCallback)(function(){return new Promise(function(e,r){(0,F.Al)(t,n,o).then(function(t){if((0,m.mN)(t)&&t.data.length>0)return e(t.data);throw new Error(t.data.errorMessage)}).catch(function(e){return r(new Error(e))})})},[t,n,o]),u=(0,r.useCallback)(function(){return new Promise(function(e,r){(0,F.Fj)(t,n,o).then(function(t){var n,r;if((0,m.mN)(t)&&(null==t||null===(n=t.data)||void 0===n?void 0:n.data.length)>0)return e(null==t||null===(r=t.data)||void 0===r?void 0:r.data);throw new Error(t.data.errorMessage)}).catch(function(e){return r(new Error(e))})})},[t,n,o]),c=(0,r.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(function(r,a){var i;null===(i=(0,F.ou)(\"liquidationData\",t,n,o,e))||void 0===i||i.then(function(e){var t;if((0,m.mN)(e)&&(null===(t=Object.keys(null==e?void 0:e.data))||void 0===t?void 0:t.length)>0)return r(e.data);throw new Error(e.data.errorMessage)}).catch(function(e){return a(new Error(e))})})},[t,n,o]);return{fetchSalesHierarchy:a,fetchHQHierarchyData:i,fetchHQByHQHierarchySequence:l,fetchLiquidationCategory:s,fetchPortfoliosByBuCode:u,loadLiquidationTargetsData:c}}({User:s,baseurl:u,triggerShowLoader:c}),E=y.fetchSalesHierarchy,b=y.fetchHQHierarchyData,_=y.fetchHQByHQHierarchySequence,C=y.fetchLiquidationCategory,w=y.fetchPortfoliosByBuCode,S=y.loadLiquidationTargetsData,T=(0,p.Bd)().t,O=(0,f.Zp)(),R=(0,v.I)(),N=h.Ax.minimumDateOfYear,L=h.Ax.maximumDateOfYear,P=null===(e=s.selectedBusinessUnit.userRoleControls.module_access_information_dto_list)||void 0===e?void 0:e.find(function(e){return\"CONFIGURATIONS\"===e.module_name}),M=null!==(t=null==P||null===(n=P.sub_module)||void 0===n?void 0:n.find(function(e){return\"WEB-PAY-FOR-PERFORMANCE-CONFIG\"===(null==e?void 0:e.module_name)}))&&void 0!==t?t:null,x=Boolean((null==M||null===(a=M.permissions)||void 0===a?void 0:a.length)>0),I=de((0,r.useState)({onAddPortfolioAndBrandClicked:!1,salesHierarchyRole:{id:0,value:\"\",label:\"\"},portfolio:\"\",dmhq:[],displayBrandCategory:[],percentageBrandCategory:[],hqHierarchy:{id:0,value:0,label:\"\"},targetType:\"\",targetUploadStartDate:\"\",targetUploadEndDate:\"\",actualsUploadStartDate:\"\",actualsUploadEndDate:\"\"}),2),k=I[0],j=I[1],H=de((0,r.useState)([]),2),U=H[0],Y=H[1],G=de((0,r.useState)([]),2),z=G[0],V=G[1],q=de((0,r.useState)([]),2),W=q[0],K=q[1],$=de((0,r.useState)([]),2),X=$[0],J=$[1],ne=de((0,r.useState)([]),2),ae=ne[0],ie=ne[1],se=de((0,r.useState)(!1),2),ue=se[0],pe=se[1],fe=de((0,r.useState)([]),2),ge=fe[0],he=fe[1],me=de((0,r.useState)(),2),ve=me[0],Ae=me[1],ye=de((0,r.useState)([]),2),Ee=ye[0],be=ye[1],_e=de((0,r.useState)({isPortfolioError:!1,isDmhqError:!1,isDisplayBrandCategoryError:!1,isPercentageBrandCategoryError:!1}),2),Ce=_e[0],we=_e[1],Se=function(){var e=ce(oe().m(function e(){var t,n,r,o,a;return oe().w(function(e){for(;;)switch(e.n){case 0:n={},null==ve||null===(t=ve.configurationDetailsDtos)||void 0===t||t.forEach(function(e){var t=e.key,r=e.value;n[t]=r}),r=U.filter(function(e){return e.id===Number(x?null==n?void 0:n.pay_for_performance_role:null==n?void 0:n.liquidation_role)}),(o=ge.filter(function(e){return e.id===Number(null==n?void 0:n.liquidation_pricing_hq_level)}))&&(null==o?void 0:o.length)>0&&Ne(o[0]),a=le(le({},k),{},{salesHierarchyRole:r&&r.length>0?r[0]:\"\",hqHierarchy:o&&o.length>0?o[0]:\"\",targetType:ee(x?null==n?void 0:n.pay_for_performance_duration_type:n.liquidation_duration_type),targetUploadStartDate:(0,h.Nq)(x?n.pay_for_performance_target_start_date:n.liquidation_target_start_date),targetUploadEndDate:[(0,h.Nq)(x?n.pay_for_performance_target_start_date:n.liquidation_target_start_date),(0,h.Nq)(x?n.pay_for_performance_target_end_date:n.liquidation_target_end_date)],actualsUploadStartDate:(0,h.Nq)(x?n.pay_for_performance_actual_start_date:n.liquidation_actual_start_date),actualsUploadEndDate:[(0,h.Nq)(x?n.pay_for_performance_actual_start_date:n.liquidation_actual_start_date),(0,h.Nq)(x?n.pay_for_performance_actual_end_date:n.liquidation_actual_end_date)]}),j(a);case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=ce(oe().m(function e(){return oe().w(function(e){for(;;)switch(e.n){case 0:E().then(function(e){var t,n=null==(t=e)?void 0:t.sales_hierarchy_view_List.map(function(e){return{value:e.code,label:e.name,id:e.id}});return Y(function(){return re(n)}),b()}).then(function(e){var t,n=null==(t=e)?void 0:t.map(function(e){return{value:e.id,label:e.name,id:e.id}});return he(function(){return re(n)}),w()}).then(function(e){var t=Z(e);return ie(function(){return re(t)}),C()}).then(function(e){var t=Z(e);return K(function(){return re(t)}),S()}).then(function(e){Ae(e)}).catch(function(e){});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)(function(){x&&S(x).then(function(e){Ae(e)}).catch(function(){})},[]);var Oe=function(e,t){return o().createElement(d,{tooltipText:e,title:t,t:T,classes:R})};(0,r.useEffect)(function(){Te()},[]),(0,r.useEffect)(function(){0!==U.length&&0!==ge.length&&Se()},[U,ge,ve]);var De=(0,r.useMemo)(function(){return x?!!k.targetType&&k.salesHierarchyRole:!!k.targetType&&k.hqHierarchy&&k.salesHierarchyRole},[k]),Re=function(e){var t,n,r=e.portfolio,o=e.dmhq,a=e.displayBrandCategory,i=e.percentageBrandCategory;if(r&&0!==(null==o?void 0:o.length)&&0!==(null==a?void 0:a.length)&&0!==(null==i?void 0:i.length)){var l={buId:null===(t=s.selectedBusinessUnit)||void 0===t?void 0:t.bu_id,portfolio_code:String(null==r?void 0:r.value)||\"DEFAULT\",portfolio_name:null==r?void 0:r.label,head_quarter_ids:o?null==o?void 0:o.map(function(e){return e.id}):[],head_quarter_Names:o?null==o?void 0:o.map(function(e){return e.label}):[],display_brand_category_ids:a?null==a?void 0:a.map(function(e){return e.id}):[],display_brand_category_Names:a?null==a?void 0:a.map(function(e){return e.label}):[],percentage_brand_category_ids:i?null==i?void 0:i.map(function(e){return e.id}):[],percentage_brand_category_Names:i?null==i?void 0:i.map(function(e){return e.label}):[]},u=null==l||null===(n=l.head_quarter_ids)||void 0===n?void 0:n.map(function(e,t){return le(le({},l),{},{head_quarter_ids:[e],head_quarter_Names:[l.head_quarter_Names[t]]})}),c=re(Ee);return null!=u&&u.length&&(null==u||u.map(function(e){null==c||c.map(function(t,n){var r,o;(null==e?void 0:e.portfolio_code)==(null==t?void 0:t.portfolio_code)&&(null==e||null===(r=e.head_quarter_ids)||void 0===r?void 0:r[0])==(null==t||null===(o=t.head_quarter_ids)||void 0===o?void 0:o[0])&&(null==c||c.splice(n,1))}),null==c||c.push(e)})),be(c),!0}we(function(e){return le(le({},e),{},{isPortfolioError:!r,isDisplayBrandCategoryError:0===(null==a?void 0:a.length),isDmhqError:0===(null==o?void 0:o.length),isPercentageBrandCategoryError:0===(null==i?void 0:i.length)})})},Ne=function(){var e=ce(oe().m(function e(t){var n,r,o,a,i;return oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,_(t);case 1:r=e.v,o=Z(r),V(re(o)),be(null!==(n=te(o,ve,W))&&void 0!==n?n:[]),e.n=3;break;case 2:e.p=2,i=e.v,A({message:null!==(a=null==i?void 0:i.message)&&void 0!==a?a:i,type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();return o().createElement(B,{initialForm:k,saveLiquidationTargetsFormData:function(e){x||0!==(null==Ee?void 0:Ee.length)?(0,F.Rm)(s,u,c,function(e){var t,n=le(le({},e),{},{targetType:String(\"string\"==typeof e.targetType?e.targetType:(null===(t=e.targetType)||void 0===t?void 0:t.value)||\"\")}),r=x?function(e){return[{key:D.bW.PAY_FOR_PERFORMANCE_ROLE,value:e.salesHierarchyRole.id.toString(),marker_id:null},{key:D.bW.PAY_FOR_PERFORMANCE_DURATION_TYPE,value:e.targetType.toUpperCase(),marker_id:null},{key:D.bW.PAY_FOR_PERFORMANCE_TARGET_START_DATE,value:(0,h.Yq)(e.targetUploadStartDate,\"DD-MMM\"),marker_id:null},{key:D.bW.PAY_FOR_PERFORMANCE_TARGET_END_DATE,value:(0,h.Yq)(e.targetUploadEndDate[1],\"DD-MMM\"),marker_id:null},{key:D.bW.PAY_FOR_PERFORMANCE_ACTUAL_START_DATE,value:(0,h.Yq)(e.actualsUploadStartDate,\"DD-MMM\"),marker_id:null},{key:D.bW.PAY_FOR_PERFORMANCE_ACTUAL_END_DATE,value:(0,h.Yq)(e.actualsUploadEndDate[1],\"DD-MMM\"),marker_id:null}]}(n):function(e){return[{key:D.KC.LIQUIDATION_ROLE,value:e.salesHierarchyRole.id.toString(),marker_id:null},{key:D.KC.LIQUIDATION_HQ_HIERARCHY,value:e.hqHierarchy.id.toString(),marker_id:null},{key:D.KC.LIQUIDATION_DURATION_TYPE,value:e.targetType.toUpperCase(),marker_id:null},{key:D.KC.LIQUIDATION_TARGET_START_DATE,value:(0,h.Yq)(e.targetUploadStartDate,\"DD-MMM\"),marker_id:null},{key:D.KC.LIQUIDATION_TARGET_END_DATE,value:(0,h.Yq)(e.targetUploadEndDate[1],\"DD-MMM\"),marker_id:null},{key:D.KC.LIQUIDATION_ACTUAL_START_DATE,value:(0,h.Yq)(e.actualsUploadStartDate,\"DD-MMM\"),marker_id:null},{key:D.KC.LIQUIDATION_ACTUAL_END_DATE,value:(0,h.Yq)(e.actualsUploadEndDate[1],\"DD-MMM\"),marker_id:null}]}(n);return{saveOrUpdateConfigurationValuesDtoSet:r,liquidationTemplateConfigDtoList:re(Ee)}}(e)).then(function(e){if(!(0,m.mN)(e))throw new Error(T(\"LIQUIDATION_SAVED_FAILED\"));A({message:T(\"LIQUIDATION_SAVED_SUCCESS\"),type:\"success\"})}).catch(function(e){A({message:null==e?void 0:e.message,type:\"error\"})}):A({message:T(\"PLEASE_ADD_PORTFOLIO_BRAND\"),type:\"error\"})},renderToolTip:Oe,roleData:U,hasLiquidationConfig:De,setPortfolioAndBrandTableData:be,hqHierarchyData:ge,minimumDate:N,maximumDate:L,setEnablePopup:pe,navigate:O,enablePopup:ue,renderPortfolioAndBrand:function(e,t){return o().createElement(Q,{values:e,setFieldValue:t,portfolioAndBrandTableData:Ee,renderToolTip:Oe,setErrorState:we,portfolioData:ae,getFieldErrorMessage:function(e,t){return function(e,t,n,r){var o;switch(e){case\"portfolio\":return n.isPortfolioError?r(\"REQ_PORTFOLIO\"):\" \";case\"dmhq\":return n.isDmhqError?\"\".concat(null==t||null===(o=t.hqHierarchy)||void 0===o?void 0:o.label,\" Required\"):\" \";case\"displayBrandCategory\":return function(e,t,n){var r,o,a=\" \";return t.isDisplayBrandCategoryError&&(a=(null==e||null===(r=e.displayBrandCategory)||void 0===r?void 0:r.length)>0&&(null==e||null===(o=e.displayBrandCategory)||void 0===o?void 0:o.length)<2?n(\"REQ_MIN_DISPLAY_BRAND_CATEGORY\"):n(\"REQ_DISPLAY_BRAND_CATEGORY\")),a}(t,n,r);case\"percentageBrandCategory\":return function(e,t,n){var r,o,a,i=\" \";return t.isPercentageBrandCategoryError&&(i=(null==e||null===(r=e.percentageBrandCategory)||void 0===r?void 0:r.length)>0&&((null==e||null===(o=e.percentageBrandCategory)||void 0===o?void 0:o.length)<2||(null==e||null===(a=e.percentageBrandCategory)||void 0===a?void 0:a.length)>3)?n(\"REQ_MIN_MAX_PER_BRAND_CATEGORY\"):n(\"REQ_PER_BRAND_CATEGORY\")),i}(t,n,r);default:return\" \"}}(e,t,Ce,T)},dmHQData:z,liquidationCategoryData:W,setPercentageCategoryData:J,percentageCategoryData:X,onClickAddButtonHandler:Re,setDmHQData:V,setLiquidationCategoryData:K})},isPFP:x})}},47363:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>x});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(20561),d=n(74848);const p=(0,c.A)((0,d.jsx)(\"path\",{d:\"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z\"}),\"CheckCircle\"),f=(0,c.A)((0,d.jsx)(\"path\",{d:\"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"}),\"Warning\");var g=n(75765),h=n(38413),m=n(31609);function v(e){return(0,m.Ay)(\"MuiStepIcon\",e)}const A=(0,h.A)(\"MuiStepIcon\",[\"root\",\"active\",\"completed\",\"error\",\"text\"]);var y;const E=[\"active\",\"className\",\"completed\",\"error\",\"icon\"],b=(0,s.Ay)(g.A,{name:\"MuiStepIcon\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:\"block\",transition:e.transitions.create(\"color\",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),_=(0,s.Ay)(\"text\",{name:\"MuiStepIcon\",slot:\"Text\",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),C=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiStepIcon\"}),{active:a=!1,className:s,completed:c=!1,error:g=!1,icon:h}=n,m=(0,r.A)(n,E),A=(0,o.A)({},n,{active:a,completed:c,error:g}),C=(e=>{const{classes:t,active:n,completed:r,error:o}=e,a={root:[\"root\",n&&\"active\",r&&\"completed\",o&&\"error\"],text:[\"text\"]};return(0,l.A)(a,v,t)})(A);if(\"number\"==typeof h||\"string\"==typeof h){const e=(0,i.A)(s,C.root);return g?(0,d.jsx)(b,(0,o.A)({as:f,className:e,ref:t,ownerState:A},m)):c?(0,d.jsx)(b,(0,o.A)({as:p,className:e,ref:t,ownerState:A},m)):(0,d.jsxs)(b,(0,o.A)({className:e,ref:t,ownerState:A},m,{children:[y||(y=(0,d.jsx)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\"})),(0,d.jsx)(_,{className:C.text,x:\"12\",y:\"12\",textAnchor:\"middle\",dominantBaseline:\"central\",ownerState:A,children:h})]}))}return h});var w=n(98624),S=n(91382);function T(e){return(0,m.Ay)(\"MuiStepLabel\",e)}const O=(0,h.A)(\"MuiStepLabel\",[\"root\",\"horizontal\",\"vertical\",\"label\",\"active\",\"completed\",\"error\",\"disabled\",\"iconContainer\",\"alternativeLabel\",\"labelContainer\"]),D=[\"children\",\"className\",\"componentsProps\",\"error\",\"icon\",\"optional\",\"slotProps\",\"StepIconComponent\",\"StepIconProps\"],R=(0,s.Ay)(\"span\",{name:\"MuiStepLabel\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>(0,o.A)({display:\"flex\",alignItems:\"center\",[`&.${O.alternativeLabel}`]:{flexDirection:\"column\"},[`&.${O.disabled}`]:{cursor:\"default\"}},\"vertical\"===e.orientation&&{textAlign:\"left\",padding:\"8px 0\"})),N=(0,s.Ay)(\"span\",{name:\"MuiStepLabel\",slot:\"Label\",overridesResolver:(e,t)=>t.label})(({theme:e})=>(0,o.A)({},e.typography.body2,{display:\"block\",transition:e.transitions.create(\"color\",{duration:e.transitions.duration.shortest}),[`&.${O.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${O.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${O.alternativeLabel}`]:{marginTop:16},[`&.${O.error}`]:{color:(e.vars||e).palette.error.main}})),L=(0,s.Ay)(\"span\",{name:\"MuiStepLabel\",slot:\"IconContainer\",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:\"flex\",paddingRight:8,[`&.${O.alternativeLabel}`]:{paddingRight:0}})),P=(0,s.Ay)(\"span\",{name:\"MuiStepLabel\",slot:\"LabelContainer\",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:\"100%\",color:(e.vars||e).palette.text.secondary,[`&.${O.alternativeLabel}`]:{textAlign:\"center\"}})),M=a.forwardRef(function(e,t){var n;const s=(0,u.b)({props:e,name:\"MuiStepLabel\"}),{children:c,className:p,componentsProps:f={},error:g=!1,icon:h,optional:m,slotProps:v={},StepIconComponent:A,StepIconProps:y}=s,E=(0,r.A)(s,D),{alternativeLabel:b,orientation:_}=a.useContext(w.A),{active:O,disabled:M,completed:x,icon:I}=a.useContext(S.A),k=h||I;let B=A;k&&!B&&(B=C);const F=(0,o.A)({},s,{active:O,alternativeLabel:b,completed:x,disabled:M,error:g,orientation:_}),j=(e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e,u={root:[\"root\",n,a&&\"error\",i&&\"disabled\",s&&\"alternativeLabel\"],label:[\"label\",r&&\"active\",o&&\"completed\",a&&\"error\",i&&\"disabled\",s&&\"alternativeLabel\"],iconContainer:[\"iconContainer\",r&&\"active\",o&&\"completed\",a&&\"error\",i&&\"disabled\",s&&\"alternativeLabel\"],labelContainer:[\"labelContainer\",s&&\"alternativeLabel\"]};return(0,l.A)(u,T,t)})(F),H=null!=(n=v.label)?n:f.label;return(0,d.jsxs)(R,(0,o.A)({className:(0,i.A)(j.root,p),ref:t,ownerState:F},E,{children:[k||B?(0,d.jsx)(L,{className:j.iconContainer,ownerState:F,children:(0,d.jsx)(B,(0,o.A)({completed:x,active:O,error:g,icon:k},y))}):null,(0,d.jsxs)(P,{className:j.labelContainer,ownerState:F,children:[c?(0,d.jsx)(N,(0,o.A)({ownerState:F},H,{className:(0,i.A)(j.label,null==H?void 0:H.className),children:c})):null,m]})]}))});M.muiName=\"StepLabel\";const x=M},47379:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(58168);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))n[a]=(0,r.A)({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},l=t[a];n[a]={},l&&Object.keys(l)?i&&Object.keys(i)?(n[a]=(0,r.A)({},l),Object.keys(i).forEach(e=>{n[a][e]=o(i[e],l[e])})):n[a]=l:n[a]=i}else void 0===n[a]&&(n[a]=e[a])}),n}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},47452:e=>{\"use strict\";e.exports=\"\\t\\n\\v\\f\\r                　\\u2028\\u2029\\ufeff\"},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}},47479:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e7c82f35b652f00856c0.woff\"},47764:(e,t,n)=>{\"use strict\";var r=n(68183).charAt,o=n(655),a=n(91181),i=n(51088),l=n(62529),s=\"String Iterator\",u=a.set,c=a.getterFor(s);i(String,\"String\",function(e){u(this,{type:s,string:o(e),index:0})},function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?l(void 0,!0):(e=r(n,o),t.index+=e.length,l(e,!1))})},47767:(e,t,n)=>{\"use strict\";n.d(t,{$P:()=>p,BV:()=>x,C5:()=>L,Rq:()=>l,Zp:()=>m,fS:()=>N,g:()=>v,jb:()=>s,qh:()=>P,sp:()=>i,x$:()=>A,zy:()=>g});var r=n(81970),o=n(45588);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const i=r.createContext(null),l=r.createContext(null),s=r.createContext(null),u=r.createContext(null),c=r.createContext({outlet:null,matches:[],isDataRoute:!1}),d=r.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;f()||(0,o.Oi)(!1);let{basename:a,navigator:i}=r.useContext(s),{hash:l,pathname:u,search:c}=A(e,{relative:n}),d=u;return\"/\"!==a&&(d=\"/\"===u?a:(0,o.HS)([a,u])),i.createHref({pathname:d,search:c,hash:l})}function f(){return null!=r.useContext(u)}function g(){return f()||(0,o.Oi)(!1),r.useContext(u).location}function h(e){r.useContext(s).static||r.useLayoutEffect(e)}function m(){let{isDataRoute:e}=r.useContext(c);return e?function(){let{router:e}=function(){let e=r.useContext(i);return e||(0,o.Oi)(!1),e}(w.UseNavigateStable),t=T(S.UseNavigateStable),n=r.useRef(!1);return h(()=>{n.current=!0}),r.useCallback(function(r,o){void 0===o&&(o={}),n.current&&(\"number\"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},o)))},[e,t])}():function(){f()||(0,o.Oi)(!1);let e=r.useContext(i),{basename:t,future:n,navigator:a}=r.useContext(s),{matches:l}=r.useContext(c),{pathname:u}=g(),d=JSON.stringify((0,o.yD)(l,n.v7_relativeSplatPath)),p=r.useRef(!1);return h(()=>{p.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!p.current)return;if(\"number\"==typeof n)return void a.go(n);let i=(0,o.Gh)(n,JSON.parse(d),u,\"path\"===r.relative);null==e&&\"/\"!==t&&(i.pathname=\"/\"===i.pathname?t:(0,o.HS)([t,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)},[t,a,d,u,e])}()}function v(){let{matches:e}=r.useContext(c),t=e[e.length-1];return t?t.params:{}}function A(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(s),{matches:i}=r.useContext(c),{pathname:l}=g(),u=JSON.stringify((0,o.yD)(i,a.v7_relativeSplatPath));return r.useMemo(()=>(0,o.Gh)(e,JSON.parse(u),l,\"path\"===n),[e,u,l,n])}function y(e,t,n,i){f()||(0,o.Oi)(!1);let{navigator:l}=r.useContext(s),{matches:d}=r.useContext(c),p=d[d.length-1],h=p?p.params:{},m=(p&&p.pathname,p?p.pathnameBase:\"/\");p&&p.route;let v,A=g();if(t){var y;let e=\"string\"==typeof t?(0,o.Rr)(t):t;\"/\"===m||(null==(y=e.pathname)?void 0:y.startsWith(m))||(0,o.Oi)(!1),v=e}else v=A;let E=v.pathname||\"/\",w=E;if(\"/\"!==m){let e=m.replace(/^\\//,\"\").split(\"/\");w=\"/\"+E.replace(/^\\//,\"\").split(\"/\").slice(e.length).join(\"/\")}let S=(0,o.ue)(e,{pathname:w}),T=function(e,t,n,a){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var l;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(l=a)&&l.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,u=null==(i=n)?void 0:i.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id]));e>=0||(0,o.Oi)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,o,a)=>{let i,l=!1,p=null,f=null;var g;n&&(i=u&&o.route.id?u[o.route.id]:void 0,p=o.route.errorElement||b,c&&(d<0&&0===a?(O[g=\"route-fallback\"]||(O[g]=!0),l=!0,f=null):d===a&&(l=!0,f=o.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,a+1)),m=()=>{let t;return t=i?p:l?f:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(C,{match:o,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?r.createElement(_,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.HS)([m,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:\"/\"===e.pathnameBase?m:(0,o.HS)([m,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),d,n,i);return t&&T?r.createElement(u.Provider,{value:{location:a({pathname:\"/\",search:\"\",hash:\"\",state:null,key:\"default\"},v),navigationType:o.rc.Pop}},T):T}function E(){let e=function(){var e;let t=r.useContext(d),n=function(){let e=r.useContext(l);return e||(0,o.Oi)(!1),e}(S.UseRouteError),a=T(S.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=(0,o.pX)(e)?e.status+\" \"+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:\"0.5rem\",backgroundColor:\"rgba(200,200,200, 0.5)\"};return r.createElement(r.Fragment,null,r.createElement(\"h2\",null,\"Unexpected Application Error!\"),r.createElement(\"h3\",{style:{fontStyle:\"italic\"}},t),n?r.createElement(\"pre\",{style:a},n):null,null)}const b=r.createElement(E,null);class _ extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||\"idle\"!==t.revalidation&&\"idle\"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(\"React Router caught the following error during render\",e,t)}render(){return void 0!==this.state.error?r.createElement(c.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C(e){let{routeContext:t,match:n,children:o}=e,a=r.useContext(i);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(c.Provider,{value:t},o)}var w=function(e){return e.UseBlocker=\"useBlocker\",e.UseRevalidator=\"useRevalidator\",e.UseNavigateStable=\"useNavigate\",e}(w||{}),S=function(e){return e.UseBlocker=\"useBlocker\",e.UseLoaderData=\"useLoaderData\",e.UseActionData=\"useActionData\",e.UseRouteError=\"useRouteError\",e.UseNavigation=\"useNavigation\",e.UseRouteLoaderData=\"useRouteLoaderData\",e.UseMatches=\"useMatches\",e.UseRevalidator=\"useRevalidator\",e.UseNavigateStable=\"useNavigate\",e.UseRouteId=\"useRouteId\",e}(S||{});function T(e){let t=function(){let e=r.useContext(c);return e||(0,o.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const O={},D=(e,t,n)=>{};const R=r.startTransition;function N(e){let{basename:t,children:n,initialEntries:a,initialIndex:i,future:l}=e,s=r.useRef();null==s.current&&(s.current=(0,o.sC)({initialEntries:a,initialIndex:i,v5Compat:!0}));let u=s.current,[c,d]=r.useState({action:u.action,location:u.location}),{v7_startTransition:p}=l||{},f=r.useCallback(e=>{p&&R?R(()=>d(e)):d(e)},[d,p]);return r.useLayoutEffect(()=>u.listen(f),[u,f]),r.useEffect(()=>{return void 0===(null==(e=l)?void 0:e.v7_startTransition)&&D(\"v7_startTransition\",\"React Router will begin wrapping state updates in `React.startTransition` in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_starttransition\"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||D(\"v7_relativeSplatPath\",\"Relative route resolution within Splat routes is changing in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath\"),void(t&&(void 0===t.v7_fetcherPersist&&D(\"v7_fetcherPersist\",\"The persistence behavior of fetchers is changing in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist\"),void 0===t.v7_normalizeFormMethod&&D(\"v7_normalizeFormMethod\",\"Casing of `formMethod` fields is being normalized to uppercase in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod\"),void 0===t.v7_partialHydration&&D(\"v7_partialHydration\",\"`RouterProvider` hydration behavior is changing in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_partialhydration\"),void 0===t.v7_skipActionErrorRevalidation&&D(\"v7_skipActionErrorRevalidation\",\"The revalidation behavior after 4xx/5xx `action` responses is changing in v7\",\"https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation\")));var e,t},[l]),r.createElement(M,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:l})}function L(e){let{to:t,replace:n,state:a,relative:i}=e;f()||(0,o.Oi)(!1);let{future:l,static:u}=r.useContext(s),{matches:d}=r.useContext(c),{pathname:p}=g(),h=m(),v=(0,o.Gh)(t,(0,o.yD)(d,l.v7_relativeSplatPath),p,\"path\"===i),A=JSON.stringify(v);return r.useEffect(()=>h(JSON.parse(A),{replace:n,state:a,relative:i}),[h,A,i,n,a]),null}function P(e){(0,o.Oi)(!1)}function M(e){let{basename:t=\"/\",children:n=null,location:i,navigationType:l=o.rc.Pop,navigator:c,static:d=!1,future:p}=e;f()&&(0,o.Oi)(!1);let g=t.replace(/^\\/*/,\"/\"),h=r.useMemo(()=>({basename:g,navigator:c,static:d,future:a({v7_relativeSplatPath:!1},p)}),[g,p,c,d]);\"string\"==typeof i&&(i=(0,o.Rr)(i));let{pathname:m=\"/\",search:v=\"\",hash:A=\"\",state:y=null,key:E=\"default\"}=i,b=r.useMemo(()=>{let e=(0,o.pb)(m,g);return null==e?null:{location:{pathname:e,search:v,hash:A,state:y,key:E},navigationType:l}},[g,m,v,A,y,E,l]);return null==b?null:r.createElement(s.Provider,{value:h},r.createElement(u.Provider,{children:n,value:b}))}function x(e){let{children:t,location:n}=e;return y(I(t),n)}function I(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,(e,a)=>{if(!r.isValidElement(e))return;let i=[...t,a];if(e.type===r.Fragment)return void n.push.apply(n,I(e.props.children,i));e.type!==P&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let l={id:e.props.id||i.join(\"-\"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=I(e.props.children,i)),n.push(l)}),n}new Promise(()=>{}),r.Component},47777:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"bg\",{months:\"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември\".split(\"_\"),monthsShort:\"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек\".split(\"_\"),weekdays:\"неделя_понеделник_вторник_сряда_четвъртък_петък_събота\".split(\"_\"),weekdaysShort:\"нед_пон_вто_сря_чет_пет_съб\".split(\"_\"),weekdaysMin:\"нд_пн_вт_ср_чт_пт_сб\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"D.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY H:mm\",LLLL:\"dddd, D MMMM YYYY H:mm\"},calendar:{sameDay:\"[Днес в] LT\",nextDay:\"[Утре в] LT\",nextWeek:\"dddd [в] LT\",lastDay:\"[Вчера в] LT\",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return\"[Миналата] dddd [в] LT\";case 1:case 2:case 4:case 5:return\"[Миналия] dddd [в] LT\"}},sameElse:\"L\"},relativeTime:{future:\"след %s\",past:\"преди %s\",s:\"няколко секунди\",ss:\"%d секунди\",m:\"минута\",mm:\"%d минути\",h:\"час\",hh:\"%d часа\",d:\"ден\",dd:\"%d дена\",w:\"седмица\",ww:\"%d седмици\",M:\"месец\",MM:\"%d месеца\",y:\"година\",yy:\"%d години\"},dayOfMonthOrdinalParse:/\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+\"-ев\":0===n?e+\"-ен\":n>10&&n<20?e+\"-ти\":1===t?e+\"-ви\":2===t?e+\"-ри\":7===t||8===t?e+\"-ми\":e+\"-ти\"},week:{dow:1,doy:7}})}(n(95093))},47839:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>B});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(33068),s=n(75659),u=n(771),c=n(73788),d=n(2879),p=n(57223),f=n(11848),g=n(44675),h=n(25669),m=n(28466),v=n(87467),A=n(87558),y=n(83034),E=n(96852),b=n(1668),_=n(81984),C=n(41159),w=n(38413),S=n(31609);function T(e){return(0,S.Ay)(\"MuiTooltip\",e)}const O=(0,w.A)(\"MuiTooltip\",[\"popper\",\"popperInteractive\",\"popperArrow\",\"popperClose\",\"tooltip\",\"tooltipArrow\",\"touch\",\"tooltipPlacementLeft\",\"tooltipPlacementRight\",\"tooltipPlacementTop\",\"tooltipPlacementBottom\",\"arrow\"]);var D=n(74848);const R=[\"arrow\",\"children\",\"classes\",\"components\",\"componentsProps\",\"describeChild\",\"disableFocusListener\",\"disableHoverListener\",\"disableInteractive\",\"disableTouchListener\",\"enterDelay\",\"enterNextDelay\",\"enterTouchDelay\",\"followCursor\",\"id\",\"leaveDelay\",\"leaveTouchDelay\",\"onClose\",\"onOpen\",\"open\",\"placement\",\"PopperComponent\",\"PopperProps\",\"slotProps\",\"slots\",\"title\",\"TransitionComponent\",\"TransitionProps\"],N=(0,f.Ay)(A.A,{name:\"MuiTooltip\",slot:\"Popper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>(0,o.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:\"none\"},!t.disableInteractive&&{pointerEvents:\"auto\"},!n&&{pointerEvents:\"none\"},t.arrow&&{[`&[data-popper-placement*=\"bottom\"] .${O.arrow}`]:{top:0,marginTop:\"-0.71em\",\"&::before\":{transformOrigin:\"0 100%\"}},[`&[data-popper-placement*=\"top\"] .${O.arrow}`]:{bottom:0,marginBottom:\"-0.71em\",\"&::before\":{transformOrigin:\"100% 0\"}},[`&[data-popper-placement*=\"right\"] .${O.arrow}`]:(0,o.A)({},t.isRtl?{right:0,marginRight:\"-0.71em\"}:{left:0,marginLeft:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"100% 100%\"}}),[`&[data-popper-placement*=\"left\"] .${O.arrow}`]:(0,o.A)({},t.isRtl?{left:0,marginLeft:\"-0.71em\"}:{right:0,marginRight:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"0 0\"}})})),L=(0,f.Ay)(\"div\",{name:\"MuiTooltip\",slot:\"Tooltip\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,m.A)(n.placement.split(\"-\")[0])}`]]}})(({theme:e,ownerState:t})=>{return(0,o.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,u.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:\"4px 8px\",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:\"break-word\",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:\"relative\",margin:0},t.touch&&{padding:\"8px 16px\",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5+\"em\"),fontWeight:e.typography.fontWeightRegular},{[`.${O.popper}[data-popper-placement*=\"left\"] &`]:(0,o.A)({transformOrigin:\"right center\"},t.isRtl?(0,o.A)({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"}):(0,o.A)({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"})),[`.${O.popper}[data-popper-placement*=\"right\"] &`]:(0,o.A)({transformOrigin:\"left center\"},t.isRtl?(0,o.A)({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"}):(0,o.A)({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"})),[`.${O.popper}[data-popper-placement*=\"top\"] &`]:(0,o.A)({transformOrigin:\"center bottom\",marginBottom:\"14px\"},t.touch&&{marginBottom:\"24px\"}),[`.${O.popper}[data-popper-placement*=\"bottom\"] &`]:(0,o.A)({transformOrigin:\"center top\",marginTop:\"14px\"},t.touch&&{marginTop:\"24px\"})});var n}),P=(0,f.Ay)(\"span\",{name:\"MuiTooltip\",slot:\"Arrow\",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:\"hidden\",position:\"absolute\",width:\"1em\",height:\"0.71em\",boxSizing:\"border-box\",color:e.vars?e.vars.palette.Tooltip.bg:(0,u.X4)(e.palette.grey[700],.9),\"&::before\":{content:'\"\"',margin:\"auto\",display:\"block\",width:\"100%\",height:\"100%\",backgroundColor:\"currentColor\",transform:\"rotate(45deg)\"}}));let M=!1;const x=new l.E;let I={x:0,y:0};function k(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const B=a.forwardRef(function(e,t){var n,u,f,w,S,O,B,F,j,H,U,Y,G,z,V,q,W,Q,K;const $=(0,h.b)({props:e,name:\"MuiTooltip\"}),{arrow:X=!1,children:J,components:Z={},componentsProps:ee={},describeChild:te=!1,disableFocusListener:ne=!1,disableHoverListener:re=!1,disableInteractive:oe=!1,disableTouchListener:ae=!1,enterDelay:ie=100,enterNextDelay:le=0,enterTouchDelay:se=700,followCursor:ue=!1,id:ce,leaveDelay:de=0,leaveTouchDelay:pe=1500,onClose:fe,onOpen:ge,open:he,placement:me=\"bottom\",PopperComponent:ve,PopperProps:Ae={},slotProps:ye={},slots:Ee={},title:be,TransitionComponent:_e=v.A,TransitionProps:Ce}=$,we=(0,r.A)($,R),Se=a.isValidElement(J)?J:(0,D.jsx)(\"span\",{children:J}),Te=(0,g.A)(),Oe=(0,c.I)(),[De,Re]=a.useState(),[Ne,Le]=a.useState(null),Pe=a.useRef(!1),Me=oe||ue,xe=(0,l.A)(),Ie=(0,l.A)(),ke=(0,l.A)(),Be=(0,l.A)(),[Fe,je]=(0,C.A)({controlled:he,default:!1,name:\"Tooltip\",state:\"open\"});let He=Fe;const Ue=(0,b.A)(ce),Ye=a.useRef(),Ge=(0,y.A)(()=>{void 0!==Ye.current&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),Be.clear()});a.useEffect(()=>Ge,[Ge]);const ze=e=>{x.clear(),M=!0,je(!0),ge&&!He&&ge(e)},Ve=(0,y.A)(e=>{x.start(800+de,()=>{M=!1}),je(!1),fe&&He&&fe(e),xe.start(Te.transitions.duration.shortest,()=>{Pe.current=!1})}),qe=e=>{Pe.current&&\"touchstart\"!==e.type||(De&&De.removeAttribute(\"title\"),Ie.clear(),ke.clear(),ie||M&&le?Ie.start(M?le:ie,()=>{ze(e)}):ze(e))},We=e=>{Ie.clear(),ke.start(de,()=>{Ve(e)})},{isFocusVisibleRef:Qe,onBlur:Ke,onFocus:$e,ref:Xe}=(0,_.A)(),[,Je]=a.useState(!1),Ze=e=>{Ke(e),!1===Qe.current&&(Je(!1),We(e))},et=e=>{De||Re(e.currentTarget),$e(e),!0===Qe.current&&(Je(!0),qe(e))},tt=e=>{Pe.current=!0;const t=Se.props;t.onTouchStart&&t.onTouchStart(e)};a.useEffect(()=>{if(He)return document.addEventListener(\"keydown\",e),()=>{document.removeEventListener(\"keydown\",e)};function e(e){\"Escape\"!==e.key&&\"Esc\"!==e.key||Ve(e)}},[Ve,He]);const nt=(0,E.A)((0,p.A)(Se),Xe,Re,t);be||0===be||(He=!1);const rt=a.useRef(),ot={},at=\"string\"==typeof be;te?(ot.title=He||!at||re?null:be,ot[\"aria-describedby\"]=He?Ue:null):(ot[\"aria-label\"]=at?be:null,ot[\"aria-labelledby\"]=He&&!at?Ue:null);const it=(0,o.A)({},ot,we,Se.props,{className:(0,i.A)(we.className,Se.props.className),onTouchStart:tt,ref:nt},ue?{onMouseMove:e=>{const t=Se.props;t.onMouseMove&&t.onMouseMove(e),I={x:e.clientX,y:e.clientY},rt.current&&rt.current.update()}}:{}),lt={};ae||(it.onTouchStart=e=>{tt(e),ke.clear(),xe.clear(),Ge(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=\"none\",Be.start(se,()=>{document.body.style.WebkitUserSelect=Ye.current,qe(e)})},it.onTouchEnd=e=>{Se.props.onTouchEnd&&Se.props.onTouchEnd(e),Ge(),ke.start(pe,()=>{Ve(e)})}),re||(it.onMouseOver=k(qe,it.onMouseOver),it.onMouseLeave=k(We,it.onMouseLeave),Me||(lt.onMouseOver=qe,lt.onMouseLeave=We)),ne||(it.onFocus=k(et,it.onFocus),it.onBlur=k(Ze,it.onBlur),Me||(lt.onFocus=et,lt.onBlur=Ze));const st=a.useMemo(()=>{var e;let t=[{name:\"arrow\",enabled:Boolean(Ne),options:{element:Ne,padding:4}}];return null!=(e=Ae.popperOptions)&&e.modifiers&&(t=t.concat(Ae.popperOptions.modifiers)),(0,o.A)({},Ae.popperOptions,{modifiers:t})},[Ne,Ae]),ut=(0,o.A)({},$,{isRtl:Oe,arrow:X,disableInteractive:Me,placement:me,PopperComponentProp:ve,touch:Pe.current}),ct=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:[\"popper\",!n&&\"popperInteractive\",r&&\"popperArrow\"],tooltip:[\"tooltip\",r&&\"tooltipArrow\",o&&\"touch\",`tooltipPlacement${(0,m.A)(a.split(\"-\")[0])}`],arrow:[\"arrow\"]};return(0,s.A)(i,T,t)})(ut),dt=null!=(n=null!=(u=Ee.popper)?u:Z.Popper)?n:N,pt=null!=(f=null!=(w=null!=(S=Ee.transition)?S:Z.Transition)?w:_e)?f:v.A,ft=null!=(O=null!=(B=Ee.tooltip)?B:Z.Tooltip)?O:L,gt=null!=(F=null!=(j=Ee.arrow)?j:Z.Arrow)?F:P,ht=(0,d.A)(dt,(0,o.A)({},Ae,null!=(H=ye.popper)?H:ee.popper,{className:(0,i.A)(ct.popper,null==Ae?void 0:Ae.className,null==(U=null!=(Y=ye.popper)?Y:ee.popper)?void 0:U.className)}),ut),mt=(0,d.A)(pt,(0,o.A)({},Ce,null!=(G=ye.transition)?G:ee.transition),ut),vt=(0,d.A)(ft,(0,o.A)({},null!=(z=ye.tooltip)?z:ee.tooltip,{className:(0,i.A)(ct.tooltip,null==(V=null!=(q=ye.tooltip)?q:ee.tooltip)?void 0:V.className)}),ut),At=(0,d.A)(gt,(0,o.A)({},null!=(W=ye.arrow)?W:ee.arrow,{className:(0,i.A)(ct.arrow,null==(Q=null!=(K=ye.arrow)?K:ee.arrow)?void 0:Q.className)}),ut);return(0,D.jsxs)(a.Fragment,{children:[a.cloneElement(Se,it),(0,D.jsx)(dt,(0,o.A)({as:null!=ve?ve:A.A,placement:me,anchorEl:ue?{getBoundingClientRect:()=>({top:I.y,left:I.x,right:I.x,bottom:I.y,width:0,height:0})}:De,popperRef:rt,open:!!De&&He,id:Ue,transition:!0},lt,ht,{popperOptions:st,children:({TransitionProps:e})=>(0,D.jsx)(pt,(0,o.A)({timeout:Te.transitions.duration.shorter},e,mt,{children:(0,D.jsxs)(ft,(0,o.A)({},vt,{children:[be,X?(0,D.jsx)(gt,(0,o.A)({},At,{ref:Le})):null]}))}))}))]})})},47845:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>b}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(21699),n(47764),n(5746),n(62480),n(23500),n(62953),n(48408);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(47767),s=n(96348),u=n(13075),c=n(92416),d=n(46374),p=n(38386),f=n(48475),g=n(58125),h=n(88013);function m(e){return m=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=m(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==m(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const b=function(e){var t,n,m=e.RBACControls,v=(0,l.zy)(),y=new URLSearchParams(v.search).get(\"tabname\"),b=(t=i().useState({tablist:[{id:1,tabName:\"Summary View\",path:s.fp.Liquidation_Summary,component:i().createElement(p.default,{RBACControls:m}),queryParam:{tabname:s.fp.Liquidation_Summary}},{id:2,tabName:\"Detail View\",path:s.fp.Liquidation_Detail,component:i().createElement(f.default,{RBACControls:m}),queryParam:{tabname:s.fp.Liquidation_Detail}}],currentTabs:s.fp.Liquidation_Summary}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),_=b[0],C=b[1];(0,a.useEffect)(function(){y&&C(function(e){return A(A({},e),{},{currentTabs:y})})},[y,_.tablist]),(0,a.useEffect)(function(){var e=function(){globalThis.location.pathname.includes(s.fp.Liquidation_Detail)&&C(function(e){return A(A({},e),{},{currentTabs:s.fp.Liquidation_Detail})})};return e(),globalThis.addEventListener(\"popstate\",e),function(){globalThis.removeEventListener(\"popstate\",e)}},[v.pathname]);var w=(0,a.useCallback)(function(){return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:y?\"\".concat(y).concat(v.search):\"\".concat(s.fp.Liquidation_Summary,\"/?\").concat((0,u.Nr)({tabname:null!=y?y:s.fp.Liquidation_Summary})),replace:!0})}),_.tablist.map(function(e){return i().createElement(l.qh,{key:e.id,path:e.path,element:e.component})}),i().createElement(l.qh,{path:\"\".concat(s.fp.Liquidation_Detail,\"/\").concat(s.fp.Liquidation_Retailer_Details,\"/*\"),element:i().createElement(h.default,{RBACControls:m})}))},[]);return i().createElement(g.H,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,null,i().createElement(c.A,{routePathName:[{name:s.F_.Liquidation_From_Sumridhi,path:s.fp.EntryPath}]}))),i().createElement(d.A,{tabStateProps:_,handleTabChange:function(e){return t=e,void C(function(e){return A(A({},e),{},{currentTabs:t})});var t},isParamsReq:!0})),i().createElement(r.A,null,_.tablist.length>0&&w()))}},47953:(e,t,n)=>{\"use strict\";n.d(t,{Q:()=>r});var r=function(e){return e.FETCH_YEAR_DATA=\"fetchYearData\",e.FETCH_LIQUIDATION_HQ=\"fetchLiquidationHQ\",e.FETCH_NNRHQ_DATA=\"fetchNnrHqData\",e.FETCH_PORTFOLIO_DATA=\"fetchPortfolioData\",e.TARGETS=\"Targets\",e.LIQUIDATION_DATA=\"liquidationData\",e.TARGET=\"TARGET\",e.ACTUAL=\"ACTUAL\",e}({})},47999:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79039),a=n(60533).start,i=RangeError,l=isFinite,s=Math.abs,u=Date.prototype,c=u.toISOString,d=r(u.getTime),p=r(u.getUTCDate),f=r(u.getUTCFullYear),g=r(u.getUTCHours),h=r(u.getUTCMilliseconds),m=r(u.getUTCMinutes),v=r(u.getUTCMonth),A=r(u.getUTCSeconds);e.exports=o(function(){return\"0385-07-25T07:06:39.999Z\"!==c.call(new Date(-50000000000001))})||!o(function(){c.call(new Date(NaN))})?function(){if(!l(d(this)))throw new i(\"Invalid time value\");var e=this,t=f(e),n=h(e),r=t<0?\"-\":t>9999?\"+\":\"\";return r+a(s(t),r?6:4,0)+\"-\"+a(v(e)+1,2,0)+\"-\"+a(p(e),2,0)+\"T\"+a(g(e),2,0)+\":\"+a(m(e),2,0)+\":\"+a(A(e),2,0)+\".\"+a(n,3,0)+\"Z\"}:c},48011:(e,t,n)=>{\"use strict\";var r=n(4704);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=r(n(81970)),a=(r(n(9771)),function(e){e.index;var t=e.children;o.default.Children.count(t)});t.default=a},48041:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>Y}),n(52675),n(89463),n(2259),n(45700),n(2008),n(50113),n(51629),n(64346),n(23792),n(62062),n(72712),n(34782),n(15086),n(89572),n(94170),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(47764),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(95093),i=n.n(a),l=(n(27495),n(25440),n(90815)),s=n(28161),u=n(34195),c=n(15664),d=n(21239);const p=function(e){var t=e.setIsFilterOpen,n=e.searchValue,r=e.onSearch,a=(0,u.Bd)().t;return o().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(s.A,{mt:2},o().createElement(d.A,{onSearchValueChange:function(e){var t=e.replace(/^\\s+/,\"\");r(t)},placeholderText:a(\"SEARCH\"),searchValue:n,searchBasedOn:\"Search by HQ Name Or Brand Name\"})),o().createElement(l.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},o().createElement(c.A,{buttonName:a(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){t(!0)}})))};var f=n(43605),g=n(56254),h=n(47767),m=n(96348);const v=function(e){var t=(0,h.Zp)(),n=e.column,r=e.data;return o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){t(m.fp.Liquidation_Retailer_Details,{state:{retailerItem:r}})}},{details:{label:\"Details\",className:\"smart-agro-lite-green-label\"}}[n.colId].label)};function A(e){return A=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},A(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=A(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==A(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=function(e){var t=e.rows,n=e.columnDefs,r=e.totalElements,a=e.paginationState,i=e.setPaginationState,l=e.hasActionComponent,s=void 0!==l&&l?{ActionComponent:v}:{},u=Math.ceil(r/a.pageSize);return o().createElement(o().Fragment,null,o().createElement(f.A,{rows:t,columnDefs:n,frameworkComponents:s}),o().createElement(g.A,{totalPageCount:u,totalElements:r,pageNo:a.pageNo,onPageChange:function(e){i(function(t){return E(E({},t),{},{pageNo:Number(e)})})}}))};n(78350),n(23418),n(30237),n(23288),n(62010),n(38781),n(31415);var C=n(8239),w=n(14073),S=n(88084),T=n(48506),O=n(36874),D=n(28152),R=n(76906),N=n(17578),L=n(5913);function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const x=function(e){var t=e.isFilterOpen,n=void 0!==t&&t,a=e.onRequestClose,l=void 0===a?function(){}:a,c=e.setLiquidationFilters,d=void 0===c?function(){}:c,p=e.liquidationFilters,f=void 0===p?{}:p,g=e.onFilterSubmit,h=void 0===g?function(){}:g,m=e.brandData,v=void 0===m?[]:m,A=e.viewType,y=e.hqData,E=void 0===y?[]:y,b=e.fetchSummaryData,_=e.fetchLiquidationDetails,M=(0,u.Bd)().t,x=P((0,r.useState)([]),2),I=x[0],k=x[1],B=P((0,r.useState)({tmhq:[],mdohq:[],brands:[],fromDate:\"\",toDate:\"\"}),2),F=B[0],j=B[1],H=i()(),U=i()().subtract(5,\"months\");(0,r.useEffect)(function(){var e,t,n,r,o;Object.keys(f).length&&j({tmhq:null!==(e=null==f?void 0:f.tmhq)&&void 0!==e?e:[],mdohq:null!==(t=null==f?void 0:f.mdohq)&&void 0!==t?t:[],brands:null!==(n=null==f?void 0:f.brands)&&void 0!==n?n:[],fromDate:null!==(r=null==f?void 0:f.fromDate)&&void 0!==r?r:\"\",toDate:null!==(o=null==f?void 0:f.toDate)&&void 0!==o?o:\"\"})},[f]);var Y=(null!=E?E:[]).map(function(e){return{label:e.hq_name,value:e.hq_data_id}}),G=(null!=I?I:[]).flatMap(function(e){var t,n;return null!==(t=null===(n=E.find(function(t){return t.hq_data_id===e.value}))||void 0===n||null===(n=n.child_hq_data)||void 0===n?void 0:n.map(function(e){return{label:e.hq_name,value:e.hq_data_id}}))&&void 0!==t?t:[]}),z=new Set(v.map(function(e){return e.brandName})),V=Array.from(z).map(function(e){var t=v.find(function(t){return t.brandName===e});return t?{label:String(e),value:t.brandId}:(console.warn(\"No brandId found for brandName: \".concat(e)),null)}).filter(function(e){return null!==e}),q=function(){j({tmhq:[],mdohq:[],brands:[],fromDate:\"\",toDate:\"\"}),k([]),d({});var e=E.reduce(function(e,t){return t.child_hq_data&&Array.isArray(t.child_hq_data)?e[t.hq_data_id]=t.child_hq_data.map(function(e){return e.hq_data_id}):e[t.hq_data_id]=[],e},{});\"summary\"===A?b(e,null,null,null):\"detail\"===A&&_(e,null,null,null),l()};return o().createElement(s.A,null,o().createElement(O.A,{isDrawerOpen:n,anchor:\"top\",upper:!0},o().createElement(s.A,{p:3,className:\"liquidation-floating-filter-wrapper\"},o().createElement(S.l1,{initialValues:F,validationSchema:N.O,enableReinitialize:!0,validateOnChange:!0,validateOnBlur:!0,onSubmit:function(e,t){d(e),h(e),l()}},function(e){var t=e.values,n=e.setFieldValue,r=e.errors,a=e.touched,i=e.setFieldTouched;return o().createElement(S.lV,{className:\"popupContent liquidation-floating-filter\"},o().createElement(C.Ay,{container:!0,columns:{xs:12},columnSpacing:1,rowGap:1},o().createElement(C.Ay,{item:!0,xs:3},o().createElement(s.A,{width:\"100%\"},o().createElement(w.A,{variant:\"subtitle2\"},M(\"TM_HQ\")),o().createElement(S.D0,{name:\"tmhq\"},function(){return o().createElement(T.A,{key:\"tmhq\",name:\"TMHQ\",options:Y,onHandleChange:function(e){n(\"tmhq\",e),k(e),n(\"mdohq\",[]),i(\"tmhq\",!0)},selectedOption:null==t?void 0:t.tmhq})}),a.tmhq&&r.tmhq&&o().createElement(D.A,{errName:\"tmhq\"}))),o().createElement(C.Ay,{xs:3,item:!0},o().createElement(s.A,{width:\"100%\"},o().createElement(w.A,{variant:\"subtitle2\"},M(\"MDO_HQ\")),o().createElement(S.D0,{name:\"mdohq\"},function(){return o().createElement(T.A,{key:\"mdohq\",name:\"MDOHQ\",options:G,disabled:0===I.length,onHandleChange:function(e){n(\"mdohq\",e),i(\"mdohq\",!0)},selectedOption:null==t?void 0:t.mdohq})}),a.mdohq&&r.mdohq&&o().createElement(D.A,{errName:\"mdohq\"}))),o().createElement(C.Ay,{xs:3,item:!0},o().createElement(s.A,{width:\"100%\"},o().createElement(w.A,{variant:\"subtitle2\"},M(\"FROM_DATE\")),o().createElement(R.A,{value:t.fromDate,handleChangeDatePicker:function(e){n(\"fromDate\",\"Invalid date\"!==e?e:null)},minDate:U.format(\"MM/DD/YYYY\"),maxDate:H.format(\"MM/DD/YYYY\")}),o().createElement(D.A,{errName:\"fromDate\"}))),o().createElement(C.Ay,{xs:3,item:!0},o().createElement(s.A,{width:\"100%\"},o().createElement(w.A,{variant:\"subtitle2\"},M(\"TO_DATE\")),o().createElement(R.A,{value:t.toDate,handleChangeDatePicker:function(e){n(\"toDate\",\"Invalid date\"!==e?e:null)},minDate:U.format(\"MM/DD/YYYY\"),maxDate:H.format(\"MM/DD/YYYY\")}),o().createElement(D.A,{errName:\"toDate\"})))),o().createElement(C.Ay,{container:!0,columns:{xs:12},columnSpacing:1,rowGap:1},o().createElement(C.Ay,{xs:3,item:!0},o().createElement(s.A,{width:\"100%\"},o().createElement(w.A,{variant:\"subtitle2\"},M(\"BRANDS\")),o().createElement(S.D0,{name:\"brands\"},function(){return o().createElement(T.A,{key:\"brands\",name:\"brands\",options:V,onHandleChange:function(e){n(\"brands\",e),i(\"brands\",!0)},selectedOption:null==t?void 0:t.brands})}),a.brands&&r.brands&&o().createElement(D.A,{errName:\"brands\"})))),o().createElement(L.A,{resetFilters:q,onApplyFilters:function(){},onRequestClose:l}))}))))};function I(e){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},I(e)}function k(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return B(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(B(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,B(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,B(d,\"constructor\",u),B(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",B(u,o,\"GeneratorFunction\"),B(d),B(d,o,\"Generator\"),B(d,r,function(){return this}),B(d,\"toString\",function(){return\"[object Generator]\"}),(k=function(){return{w:a,m:p}})()}function B(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}B=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){B(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},B(e,t,n,r)}function F(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==I(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=function(e){var t=e.useTableData,n=e.columnDefs,a=e.hasActionComponent,l=e.viewType,s=t(l),u=s.isFilterOpen,c=s.setIsFilterOpen,d=s.searchValue,f=s.onSearch,g=s.paginationState,h=s.setPaginationState,m=s.fetchHqData,v=s.hqData,A=s.liquidationDetailFilters,y=s.searchSummaryData,E=s.fetchSummaryData,b=s.fetchLiquidationDetails,C=s.setLiquidationDetailFilters,w=(0,r.useRef)(!1),S=(0,r.useMemo)(function(){var e=(g.pageNo+1)*g.pageSize,t=e-g.pageSize;return y.slice(t,e)},[y,g]),T=function(e,t){return e.tmhq.reduce(function(n,r){var o=t.find(function(e){return e.hq_data_id===r.value});return o&&(n[r.value]=function(e,t){return e.child_hq_data.filter(function(e){return t.some(function(t){return t.value===e.hq_data_id})}).map(function(e){return e.hq_data_id})}(o,e.mdohq)),n},{})},O=function(){var e,t=(e=k().m(function e(t,n,r,o){var a,i;return k().w(function(e){for(;;)switch(e.p=e.n){case 0:return a=\"summary\"===t?r:o,e.p=1,e.n=2,a(n.tm_mdo_hq,n.from_date,n.to_date,n.brand_id);case 2:e.n=4;break;case 3:e.p=3,i=e.v,console.error(\"Failed to fetch \".concat(t,\" data:\"),i);case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){F(a,r,o,i,l,\"next\",e)}function l(e){F(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r,o){return t.apply(this,arguments)}}(),D=(0,r.useCallback)(function(e){var t=function(e,t){return{tm_mdo_hq:T(e,t),from_date:i()(e.fromDate,\"MM/DD/YYYY\").valueOf(),to_date:i()(e.toDate,\"MM/DD/YYYY\").valueOf(),brand_id:e.brands.map(function(e){return e.value})}}(e,v);!function(e,t){t(H(H({},e),{},{tmhq:e.tmhq,mdohq:e.mdohq,from_date:e.fromDate,to_date:e.toDate,brand_id:e.brands.map(function(e){return e.value})}))}(e,C),function(e){e(function(e){return H(H({},e),{},{pageNo:0})})}(h),O(l,t,E,b)},[v,l,C,h,E,b]);return(0,r.useEffect)(function(){w.current||(m(),w.current=!0)},[m]),(0,r.useEffect)(function(){if(v.length>0){var e=v.reduce(function(e,t){return t.child_hq_data&&Array.isArray(t.child_hq_data)?e[t.hq_data_id]=t.child_hq_data.map(function(e){return e.hq_data_id}):e[t.hq_data_id]=[],e},{});(\"summary\"===l?E:b)(e,null,null,null).catch(function(e){console.error(\"Failed to fetch \".concat(l,\" data:\"),e)})}},[v]),o().createElement(o().Fragment,null,o().createElement(p,{setIsFilterOpen:c,searchValue:d,onSearch:f,disableSearch:!0}),o().createElement(_,{rows:S,columnDefs:n,totalElements:y.length,paginationState:g,setPaginationState:h,hasActionComponent:a}),u&&o().createElement(x,{isFilterOpen:u,onRequestClose:function(){return c(!1)},setLiquidationFilters:C,onFilterSubmit:D,liquidationFilters:A,hqData:v,brandData:y,viewType:l,fetchSummaryData:E,fetchLiquidationDetails:b}))}},48303:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"pt-br\",{months:\"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro\".split(\"_\"),monthsShort:\"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez\".split(\"_\"),weekdays:\"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado\".split(\"_\"),weekdaysShort:\"dom_seg_ter_qua_qui_sex_sáb\".split(\"_\"),weekdaysMin:\"do_2ª_3ª_4ª_5ª_6ª_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY [às] HH:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY [às] HH:mm\"},calendar:{sameDay:\"[Hoje às] LT\",nextDay:\"[Amanhã às] LT\",nextWeek:\"dddd [às] LT\",lastDay:\"[Ontem às] LT\",lastWeek:function(){return 0===this.day()||6===this.day()?\"[Último] dddd [às] LT\":\"[Última] dddd [às] LT\"},sameElse:\"L\"},relativeTime:{future:\"em %s\",past:\"há %s\",s:\"poucos segundos\",ss:\"%d segundos\",m:\"um minuto\",mm:\"%d minutos\",h:\"uma hora\",hh:\"%d horas\",d:\"um dia\",dd:\"%d dias\",M:\"um mês\",MM:\"%d meses\",y:\"um ano\",yy:\"%d anos\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",invalidDate:\"Data inválida\"})}(n(95093))},48408:(e,t,n)=>{\"use strict\";n(98406)},48414:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ug-cn\",{months:\"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر\".split(\"_\"),monthsShort:\"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر\".split(\"_\"),weekdays:\"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە\".split(\"_\"),weekdaysShort:\"يە_دۈ_سە_چا_پە_جۈ_شە\".split(\"_\"),weekdaysMin:\"يە_دۈ_سە_چا_پە_جۈ_شە\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"YYYY-يىلىM-ئاينىڭD-كۈنى\",LLL:\"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm\",LLLL:\"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm\"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"يېرىم كېچە\"===t||\"سەھەر\"===t||\"چۈشتىن بۇرۇن\"===t?e:\"چۈشتىن كېيىن\"===t||\"كەچ\"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?\"يېرىم كېچە\":r<900?\"سەھەر\":r<1130?\"چۈشتىن بۇرۇن\":r<1230?\"چۈش\":r<1800?\"چۈشتىن كېيىن\":\"كەچ\"},calendar:{sameDay:\"[بۈگۈن سائەت] LT\",nextDay:\"[ئەتە سائەت] LT\",nextWeek:\"[كېلەركى] dddd [سائەت] LT\",lastDay:\"[تۆنۈگۈن] LT\",lastWeek:\"[ئالدىنقى] dddd [سائەت] LT\",sameElse:\"L\"},relativeTime:{future:\"%s كېيىن\",past:\"%s بۇرۇن\",s:\"نەچچە سېكونت\",ss:\"%d سېكونت\",m:\"بىر مىنۇت\",mm:\"%d مىنۇت\",h:\"بىر سائەت\",hh:\"%d سائەت\",d:\"بىر كۈن\",dd:\"%d كۈن\",M:\"بىر ئاي\",MM:\"%d ئاي\",y:\"بىر يىل\",yy:\"%d يىل\"},dayOfMonthOrdinalParse:/\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"-كۈنى\";case\"w\":case\"W\":return e+\"-ھەپتە\";default:return e}},preparse:function(e){return e.replace(/،/g,\",\")},postformat:function(e){return e.replace(/,/g,\"،\")},week:{dow:1,doy:7}})}(n(95093))},48475:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>s});var r=n(81970),o=n.n(r),a=n(37998),i=n(29148),l=n(48041);const s=function(){return o().createElement(l.A,{useTableData:i.i,columnDefs:a.OL,hasActionComponent:!0,viewType:\"detail\"})}},48506:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u}),n(62010),n(27495),n(25440);var r=n(81970),o=n.n(r),a=n(87622),i=n(28161),l=(0,n(11848).Ay)(i.A)(function(e){var t=e.theme;return{\"& .multi-select\":{maxWidth:\"224px\",ul:{background:t.palette.common.white,li:{\"& .selected\":{background:t.palette.secondary.light}}}},\"& .dropdown-container\":{height:\"40px\",maxHeight:\"100%\",border:\"1px solid \".concat(t.palette.grey[100]),borderRadius:t.spacing(.5),backgroundColor:t.palette.secondary.main,\"&:focus-within\":{borderColor:t.palette.grey[100],boxShadow:\"none\"},\"& .gray\":{fontSize:\"14px\",color:\"#757575\"}},\"& .dropdown-content\":{zIndex:\"99 !important\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"input[type='text']\":{backgroundColor:t.palette.secondary.main,\"&:focus\":{backgroundColor:t.palette.secondary.main}},\"input[type='checkbox']\":{zIndex:\"10000\",WebkitAppearance:\"none\",MozAppearance:\"none\",appearance:\"none\",position:\"relative\",marginLeft:\"15px\",padding:\"1px\",paddingLeft:\"10px\",backgroundColor:t.palette.secondary.dark,\"&::after\":{content:\"''\",position:\"absolute\",width:\"12px\",height:\"12px\",backgroundColor:t.palette.secondary.main,border:\"1px solid \".concat(t.palette.grey[200]),right:\" 0px\",bottom:\"-1px\",borderRadius:\"2px\",marginRight:\"5px\",cursor:\"pointer\"},\"&:checked\":{\"&::after \":{backgroundColor:t.palette.primary.main,borderColor:t.palette.primary.main},\" &::before\":{content:\"'✓'\",position:\"absolute\",color:t.palette.secondary.main,fontSize:\"10px\",zIndex:\" 2\",right:\"7px\",bottom:\"0px\",cursor:\"pointer\"}}}}}),s=function(e){var t=e.options,n=void 0===t?[]:t,i=e.onHandleChange,s=void 0===i?function(){}:i,u=e.selectedOption,c=void 0===u?[]:u,d=e.disableSearch,p=void 0!==d&&d,f=e.disablePortal,g=e.disabled,h=e.name,m=void 0===h?\"\":h,v=(0,r.useMemo)(function(){var e=\"Select\";return m&&(e=\"Select \".concat(m.replace(/^./,function(e){return e.toUpperCase()}))),e},[]);return o().createElement(l,null,o().createElement(a.KF,{options:n,value:c,onChange:s,labelledBy:v,disablePortal:f,disableSearch:p,disabled:g,overrideStrings:{selectSomeItems:v}}))};const u=o().memo(s)},48523:(e,t,n)=>{\"use strict\";n(16468)(\"Map\",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(86938))},48598:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(47055),i=n(25397),l=n(34598),s=o([].join);r({target:\"Array\",proto:!0,forced:a!==Object||!l(\"join\",\",\")},{join:function(e){return s(i(this),void 0===e?\",\":e)}})},48648:e=>{\"use strict\";e.exports=\"undefined\"!=typeof Reflect&&Reflect.getPrototypeOf||null},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},48686:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(79039);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype})},48719:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(18850),d=n(55120),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiAccordionSummary\",e)}const h=(0,p.A)(\"MuiAccordionSummary\",[\"root\",\"expanded\",\"focusVisible\",\"disabled\",\"gutters\",\"contentGutters\",\"content\",\"expandIconWrapper\"]);var m=n(74848);const v=[\"children\",\"className\",\"expandIcon\",\"focusVisibleClassName\",\"onClick\"],A=(0,s.Ay)(c.A,{name:\"MuiAccordionSummary\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:\"flex\",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create([\"min-height\",\"background-color\"],t),[`&.${h.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${h.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${h.disabled})`]:{cursor:\"pointer\"},variants:[{props:e=>!e.disableGutters,style:{[`&.${h.expanded}`]:{minHeight:64}}}]}}),y=(0,s.Ay)(\"div\",{name:\"MuiAccordionSummary\",slot:\"Content\",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:\"flex\",flexGrow:1,margin:\"12px 0\",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create([\"margin\"],{duration:e.transitions.duration.shortest}),[`&.${h.expanded}`]:{margin:\"20px 0\"}}}]})),E=(0,s.Ay)(\"div\",{name:\"MuiAccordionSummary\",slot:\"ExpandIconWrapper\",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:\"flex\",color:(e.vars||e).palette.action.active,transform:\"rotate(0deg)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shortest}),[`&.${h.expanded}`]:{transform:\"rotate(180deg)\"}})),b=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiAccordionSummary\"}),{children:s,className:c,expandIcon:p,focusVisibleClassName:f,onClick:h}=n,b=(0,o.A)(n,v),{disabled:_=!1,disableGutters:C,expanded:w,toggle:S}=a.useContext(d.A),T=(0,r.A)({},n,{expanded:w,disabled:_,disableGutters:C}),O=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e,a={root:[\"root\",n&&\"expanded\",r&&\"disabled\",!o&&\"gutters\"],focusVisible:[\"focusVisible\"],content:[\"content\",n&&\"expanded\",!o&&\"contentGutters\"],expandIconWrapper:[\"expandIconWrapper\",n&&\"expanded\"]};return(0,l.A)(a,g,t)})(T);return(0,m.jsxs)(A,(0,r.A)({focusRipple:!1,disableRipple:!0,disabled:_,component:\"div\",\"aria-expanded\":w,className:(0,i.A)(O.root,c),focusVisibleClassName:(0,i.A)(O.focusVisible,f),onClick:e=>{S&&S(e),h&&h(e)},ref:t,ownerState:T},b,{children:[(0,m.jsx)(y,{className:O.content,ownerState:T,children:s}),p&&(0,m.jsx)(E,{className:O.expandIconWrapper,ownerState:T,children:p})]}))})},48773:(e,t)=>{\"use strict\";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},48980:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).findIndex,a=n(6469),i=\"findIndex\",l=!0;i in[]&&Array(1)[i](function(){l=!1}),r({target:\"Array\",proto:!0,forced:l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},48981:(e,t,n)=>{\"use strict\";var r=n(67750),o=Object;e.exports=function(e){return o(r(e))}},49326:(e,t,n)=>{var r=n(31769),o=n(72428),a=n(56449),i=n(30361),l=n(30294),s=n(77797);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var p=s(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&l(c)&&i(p,c)&&(a(e)||o(e))}},49350:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a}),n(81970);var r=n(20561),o=n(74848);const a=(0,r.A)((0,o.jsx)(\"path\",{d:\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}),\"Close\")},49667:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var l=a(n(81970)),s=n(98400),u=n(64436),c=n(63981),d=i(n(7260)),p=n(67991);t.default=l.memo(function(e){var t=l.useState(new c.CssClasses),n=t[0],r=t[1],o=l.useState(!1),a=o[0],i=o[1],f=l.useState([]),g=f[0],h=f[1],m=l.useContext(s.BeansContext).context,v=l.useRef(null),A=l.useRef(null),y=\"left\"===e.pinned,E=\"right\"===e.pinned,b=!y&&!E;p.useLayoutEffectOnce(function(){var t={setDisplayed:function(e){r(function(t){return t.setClass(\"ag-hidden\",!e)}),i(!e)},setCtrls:function(e){return h(e)},setCenterWidth:function(e){A.current&&(A.current.style.width=e)},setViewportScrollLeft:function(e){v.current&&(v.current.scrollLeft=e)},setPinnedContainerWidth:function(e){v.current.style.width=e,v.current.style.minWidth=e,v.current.style.maxWidth=e}},n=m.createBean(new u.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,v.current),function(){m.destroyBean(n)}});var _=l.useMemo(function(){return n.toString()},[n]),C=function(){return g.map(function(e){return l.default.createElement(d.default,{ctrl:e,key:e.getInstanceId()})})};return l.default.createElement(l.default.Fragment,null,y&&l.default.createElement(\"div\",{ref:v,className:\"ag-pinned-left-header \"+_,\"aria-hidden\":a,role:\"presentation\"},C()),E&&l.default.createElement(\"div\",{ref:v,className:\"ag-pinned-right-header \"+_,\"aria-hidden\":a,role:\"presentation\"},C()),b&&l.default.createElement(\"div\",{ref:v,className:\"ag-header-viewport \"+_,role:\"presentation\"},l.default.createElement(\"div\",{ref:A,className:\"ag-header-container\",role:\"rowgroup\"},C())))})},49698:e=>{var t=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\ufe0e\\\\ufe0f]\");e.exports=function(e){return t.test(e)}},49764:function(e,t,n){var r;r=e=>(()=>{var t={703:(e,t,n)=>{\"use strict\";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw l.name=\"Invariant Violation\",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},98:t=>{\"use strict\";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var o={};return(()=>{\"use strict\";r.r(o),r.d(o,{default:()=>E});var e=r(98),t=r.n(e),n=r(697),a=r.n(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var l=function(e){var n=e.pageClassName,r=e.pageLinkClassName,o=e.page,a=e.selected,l=e.activeClassName,s=e.activeLinkClassName,u=e.getEventListener,c=e.pageSelectedHandler,d=e.href,p=e.extraAriaContext,f=e.pageLabelBuilder,g=e.rel,h=e.ariaLabel||\"Page \"+o+(p?\" \"+p:\"\"),m=null;return a&&(m=\"page\",h=e.ariaLabel||\"Page \"+o+\" is your current page\",n=void 0!==n?n+\" \"+l:l,void 0!==r?void 0!==s&&(r=r+\" \"+s):r=s),t().createElement(\"li\",{className:n},t().createElement(\"a\",i({rel:g,role:d?void 0:\"button\",className:r,href:d,tabIndex:a?\"-1\":\"0\",\"aria-label\":h,\"aria-current\":m,onKeyPress:c},u(c)),f(o)))};l.propTypes={pageSelectedHandler:a().func.isRequired,selected:a().bool.isRequired,pageClassName:a().string,pageLinkClassName:a().string,activeClassName:a().string,activeLinkClassName:a().string,extraAriaContext:a().string,href:a().string,ariaLabel:a().string,page:a().number.isRequired,getEventListener:a().func.isRequired,pageLabelBuilder:a().func.isRequired,rel:a().string};const s=l;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var c=function(e){var n=e.breakLabel,r=e.breakAriaLabel,o=e.breakClassName,a=e.breakLinkClassName,i=e.breakHandler,l=e.getEventListener,s=o||\"break\";return t().createElement(\"li\",{className:s},t().createElement(\"a\",u({className:a,role:\"button\",tabIndex:\"0\",\"aria-label\":r,onKeyPress:i},l(i)),n))};c.propTypes={breakLabel:a().oneOfType([a().string,a().node]),breakAriaLabel:a().string,breakClassName:a().string,breakLinkClassName:a().string,breakHandler:a().func.isRequired,getEventListener:a().func.isRequired};const d=c;function p(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\"}function f(e){return f=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},f(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&h(e,t)}(l,e);var n,r,o,a,i=(o=l,a=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=v(o);if(a){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&(\"object\"===f(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return m(e)}(this,e)});function l(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l),A(m(n=i.call(this,e)),\"handlePreviousPage\",function(e){var t=n.state.selected;n.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})}),A(m(n),\"handleNextPage\",function(e){var t=n.state.selected,r=n.props.pageCount;n.handleClick(e,null,t<r-1?t+1:void 0,{isNext:!0})}),A(m(n),\"handlePageSelected\",function(e,t){if(n.state.selected===e)return n.callActiveCallback(e),void n.handleClick(t,null,void 0,{isActive:!0});n.handleClick(t,null,e)}),A(m(n),\"handlePageChange\",function(e){n.state.selected!==e&&(n.setState({selected:e}),n.callCallback(e))}),A(m(n),\"getEventListener\",function(e){return A({},n.props.eventListener,e)}),A(m(n),\"handleClick\",function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.isPrevious,i=void 0!==a&&a,l=o.isNext,s=void 0!==l&&l,u=o.isBreak,c=void 0!==u&&u,d=o.isActive,p=void 0!==d&&d;e.preventDefault?e.preventDefault():e.returnValue=!1;var f=n.state.selected,g=n.props.onClick,h=r;if(g){var m=g({index:t,selected:f,nextSelectedPage:r,event:e,isPrevious:i,isNext:s,isBreak:c,isActive:p});if(!1===m)return;Number.isInteger(m)&&(h=m)}void 0!==h&&n.handlePageChange(h)}),A(m(n),\"handleBreakClick\",function(e,t){var r=n.state.selected;n.handleClick(t,e,r<e?n.getForwardJump():n.getBackwardJump(),{isBreak:!0})}),A(m(n),\"callCallback\",function(e){void 0!==n.props.onPageChange&&\"function\"==typeof n.props.onPageChange&&n.props.onPageChange({selected:e})}),A(m(n),\"callActiveCallback\",function(e){void 0!==n.props.onPageActive&&\"function\"==typeof n.props.onPageActive&&n.props.onPageActive({selected:e})}),A(m(n),\"getElementPageRel\",function(e){var t=n.state.selected,r=n.props,o=r.nextPageRel,a=r.prevPageRel,i=r.selectedPageRel;return t-1===e?a:t===e?i:t+1===e?o:void 0}),A(m(n),\"pagination\",function(){var e=[],r=n.props,o=r.pageRangeDisplayed,a=r.pageCount,i=r.marginPagesDisplayed,l=r.breakLabel,s=r.breakClassName,u=r.breakLinkClassName,c=r.breakAriaLabels,p=n.state.selected;if(a<=o)for(var f=0;f<a;f++)e.push(n.getPageElement(f));else{var g=o/2,h=o-g;p>a-o/2?g=o-(h=a-p):p<o/2&&(h=o-(g=p));var m,v,A=function(e){return n.getPageElement(e)},y=[];for(m=0;m<a;m++){var E=m+1;if(E<=i)y.push({type:\"page\",index:m,display:A(m)});else if(E>a-i)y.push({type:\"page\",index:m,display:A(m)});else if(m>=p-g&&m<=p+(0===p&&o>1?h-1:h))y.push({type:\"page\",index:m,display:A(m)});else if(l&&y.length>0&&y[y.length-1].display!==v&&(o>0||i>0)){var b=m<p?c.backward:c.forward;v=t().createElement(d,{key:m,breakAriaLabel:b,breakLabel:l,breakClassName:s,breakLinkClassName:u,breakHandler:n.handleBreakClick.bind(null,m),getEventListener:n.getEventListener}),y.push({type:\"break\",index:m,display:v})}}y.forEach(function(t,n){var r=t;\"break\"===t.type&&y[n-1]&&\"page\"===y[n-1].type&&y[n+1]&&\"page\"===y[n+1].type&&y[n+1].index-y[n-1].index<=2&&(r={type:\"page\",index:t.index,display:A(t.index)}),e.push(r.display)})}return e}),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn(\"(react-paginate): Both initialPage (\".concat(e.initialPage,\") and forcePage (\").concat(e.forcePage,\") props are provided, which is discouraged.\")+\" Use exclusively forcePage prop for a controlled component.\\nSee https://reactjs.org/docs/forms.html#controlled-components\"),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,n.state={selected:r},n}return n=l,(r=[{key:\"componentDidMount\",value:function(){var e=this.props,t=e.initialPage,n=e.disableInitialCallback,r=e.extraAriaContext,o=e.pageCount,a=e.forcePage;void 0===t||n||this.callCallback(t),r&&console.warn(\"DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.\"),Number.isInteger(o)||console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(o,\"). Did you forget a Math.ceil()?\")),void 0!==t&&t>o-1&&console.warn(\"(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (\".concat(t,\" > \").concat(o-1,\").\")),void 0!==a&&a>o-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(a,\" > \").concat(o-1,\").\"))}},{key:\"componentDidUpdate\",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(this.props.forcePage,\" > \").concat(this.props.pageCount-1,\").\")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(this.props.pageCount,\"). Did you forget a Math.ceil()?\"))}},{key:\"getForwardJump\",value:function(){var e=this.state.selected,t=this.props,n=t.pageCount,r=e+t.pageRangeDisplayed;return r>=n?n-1:r}},{key:\"getBackwardJump\",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:\"getElementHref\",value:function(e){var t=this.props,n=t.hrefBuilder,r=t.pageCount,o=t.hrefAllControls;if(n)return o||e>=0&&e<r?n(e+1,r,this.state.selected):void 0}},{key:\"ariaLabelBuilder\",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var n=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(n=n+\" \"+this.props.extraAriaContext),n}}},{key:\"getPageElement\",value:function(e){var n=this.state.selected,r=this.props,o=r.pageClassName,a=r.pageLinkClassName,i=r.activeClassName,l=r.activeLinkClassName,u=r.extraAriaContext,c=r.pageLabelBuilder;return t().createElement(s,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:n===e,rel:this.getElementPageRel(e),pageClassName:o,pageLinkClassName:a,activeClassName:i,activeLinkClassName:l,extraAriaContext:u,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:c,getEventListener:this.getEventListener})}},{key:\"render\",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var n=this.props,r=n.disabledClassName,o=n.disabledLinkClassName,a=n.pageCount,i=n.className,l=n.containerClassName,s=n.previousLabel,u=n.previousClassName,c=n.previousLinkClassName,d=n.previousAriaLabel,f=n.prevRel,h=n.nextLabel,m=n.nextClassName,v=n.nextLinkClassName,A=n.nextAriaLabel,y=n.nextRel,E=this.state.selected,b=0===E,_=E===a-1,C=\"\".concat(p(u)).concat(b?\" \".concat(p(r)):\"\"),w=\"\".concat(p(m)).concat(_?\" \".concat(p(r)):\"\"),S=\"\".concat(p(c)).concat(b?\" \".concat(p(o)):\"\"),T=\"\".concat(p(v)).concat(_?\" \".concat(p(o)):\"\"),O=b?\"true\":\"false\",D=_?\"true\":\"false\";return t().createElement(\"ul\",{className:i||l,role:\"navigation\",\"aria-label\":\"Pagination\"},t().createElement(\"li\",{className:C},t().createElement(\"a\",g({className:S,href:this.getElementHref(E-1),tabIndex:b?\"-1\":\"0\",role:\"button\",onKeyPress:this.handlePreviousPage,\"aria-disabled\":O,\"aria-label\":d,rel:f},this.getEventListener(this.handlePreviousPage)),s)),this.pagination(),t().createElement(\"li\",{className:w},t().createElement(\"a\",g({className:T,href:this.getElementHref(E+1),tabIndex:_?\"-1\":\"0\",role:\"button\",onKeyPress:this.handleNextPage,\"aria-disabled\":D,\"aria-label\":A,rel:y},this.getEventListener(this.handleNextPage)),h)))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,\"prototype\",{writable:!1}),l}(e.Component);A(y,\"propTypes\",{pageCount:a().number.isRequired,pageRangeDisplayed:a().number,marginPagesDisplayed:a().number,previousLabel:a().node,previousAriaLabel:a().string,prevPageRel:a().string,prevRel:a().string,nextLabel:a().node,nextAriaLabel:a().string,nextPageRel:a().string,nextRel:a().string,breakLabel:a().oneOfType([a().string,a().node]),breakAriaLabels:a().shape({forward:a().string,backward:a().string}),hrefBuilder:a().func,hrefAllControls:a().bool,onPageChange:a().func,onPageActive:a().func,onClick:a().func,initialPage:a().number,forcePage:a().number,disableInitialCallback:a().bool,containerClassName:a().string,className:a().string,pageClassName:a().string,pageLinkClassName:a().string,pageLabelBuilder:a().func,activeClassName:a().string,activeLinkClassName:a().string,previousClassName:a().string,nextClassName:a().string,previousLinkClassName:a().string,nextLinkClassName:a().string,disabledClassName:a().string,disabledLinkClassName:a().string,breakClassName:a().string,breakLinkClassName:a().string,extraAriaContext:a().string,ariaLabelBuilder:a().func,eventListener:a().string,renderOnZeroPageCount:a().func,selectedPageRel:a().string}),A(y,\"defaultProps\",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:\"selected\",previousLabel:\"Previous\",previousClassName:\"previous\",previousAriaLabel:\"Previous page\",prevPageRel:\"prev\",prevRel:\"prev\",nextLabel:\"Next\",nextClassName:\"next\",nextAriaLabel:\"Next page\",nextPageRel:\"next\",nextRel:\"next\",breakLabel:\"...\",breakAriaLabels:{forward:\"Jump forward\",backward:\"Jump backward\"},disabledClassName:\"disabled\",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:\"onClick\",renderOnZeroPageCount:void 0,selectedPageRel:\"canonical\",hrefAllControls:!1});const E=y})(),o})(),e.exports=r(n(81970))},49773:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(4495),a=n(79039),i=n(33717),l=n(48981);r({target:\"Object\",stat:!0,forced:!o||a(function(){i.f(1)})},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(l(e)):[]}})},49799:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(32850),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiList\",e)}(0,d.A)(\"MuiList\",[\"root\",\"padding\",\"dense\",\"subheader\"]);var g=n(74848);const h=[\"children\",\"className\",\"component\",\"dense\",\"disablePadding\",\"subheader\"],m=(0,s.Ay)(\"ul\",{name:\"MuiList\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>(0,o.A)({listStyle:\"none\",margin:0,padding:0,position:\"relative\"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),v=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiList\"}),{children:s,className:d,component:p=\"ul\",dense:v=!1,disablePadding:A=!1,subheader:y}=n,E=(0,r.A)(n,h),b=a.useMemo(()=>({dense:v}),[v]),_=(0,o.A)({},n,{component:p,dense:v,disablePadding:A}),C=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,a={root:[\"root\",!n&&\"padding\",r&&\"dense\",o&&\"subheader\"]};return(0,l.A)(a,f,t)})(_);return(0,g.jsx)(c.A.Provider,{value:b,children:(0,g.jsxs)(m,(0,o.A)({as:p,className:(0,i.A)(C.root,d),ref:t,ownerState:_},E,{children:[y,s]}))})})},49833:(e,t,n)=>{\"use strict\";n.d(t,{aU:()=>l,g1:()=>a,jg:()=>s,no:()=>i}),n(28706),n(26099),n(3362);var r=n(95692),o=n(13075),a=function(e){return r.N.post(e).then(function(e){return e}).catch(function(e){throw new Error(\"\".concat((0,o.Tl)(\"ADD_GEOHIERARCHY_FAILED\"),\", \").concat(e))})},i=function(e){var t;return null===(t=r.N.get(e))||void 0===t?void 0:t.then(function(e){return e.data}).catch(function(e){throw new Error(\"\".concat((0,o.Tl)(\"GEOHIERARCHY_DATA_FAILED\"),\", \").concat(e))})},l=function(e){return r.N.put(e).then(function(e){return e}).catch(function(e){throw new Error(\"\".concat((0,o.Tl)(\"Update_GEOHIERARCHY_FAILED\"),\", \").concat(e))})},s=function(e){return new Promise(function(t,n){var o;null===(o=r.N.get(e))||void 0===o||o.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e))})})}},49885:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>R}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(10885),o=n(60684),a=n(28161),i=n(90815),l=n(14073),s=n(81970),u=n.n(s),c=n(17630),d=n(13075),p=n(43605),f=n(15407),g=n(56254),h=n(45620),m=n(56203),v=(n(28706),n(96348)),A=n(47767),y=n(99478),E=n(47225),b=function(e){var t,n=(0,A.Zp)(),r={view:{label:(0,m.t)(\"VIEW_DETAILS\"),className:\"smart-agro-lite-green-label\"}};return u().createElement(\"button\",{type:\"button\",onClick:function(){return n(null==e?void 0:e.navigateURL)},className:\"smart-agro-lite-green-label remove-button\"},r[null==e||null===(t=e.column)||void 0===t?void 0:t.colId].label)},_=function(e){var t=(0,s.useContext)(E.v).BackOfficeProps.globalStore.User,n=e.column,r=e.data;return(0,y.EB)(t)?(null==r?void 0:r.status)===y.vg.BGP_CREATED?u().createElement(b,{column:n,navigateURL:\"../\".concat(v.fp.BGPDetails,\"?status=\").concat(null==r?void 0:r.status,\"&shop_name=\").concat(null==r?void 0:r.shop_name,\"&mobile_number=\").concat(null==r?void 0:r.mobile_number,\"&hq=\").concat(null==r?void 0:r.parent_hq_name,\"&hq_name=\").concat(null==r?void 0:r.hq_name,\"&retailer_uuid=\").concat(null==r?void 0:r.retailer_uuid,\"&retailer_bgp_id=\").concat(null==r?void 0:r.retailer_bgp_id,\"&portfolio_code=\").concat(null==r?void 0:r.portfolio_code,\"&parent_hq_user_name=\").concat(null==r?void 0:r.parent_hq_user_name,\"&hq_user_name=\").concat(null==r?void 0:r.hq_user_name,\"&tier=\").concat(null==r?void 0:r.tier)}):u().createElement(\"span\",{className:\"smart-agro-lite-na-label\"},\"N/A\"):u().createElement(b,{column:n,navigateURL:\"../../\".concat(v.fp.BGPDetails,\"?status=\").concat(null==r?void 0:r.status,\"&shop_name=\").concat(null==r?void 0:r.shop_name,\"&mobile_number=\").concat(null==r?void 0:r.mobile_number,\"&hq=\").concat(null==r?void 0:r.parent_hq_name,\"&hq_name=\").concat(null==r?void 0:r.hq_name,\"&retailer_uuid=\").concat(null==r?void 0:r.retailer_uuid,\"&retailer_bgp_id=\").concat(null==r?void 0:r.retailer_bgp_id,\"&parent_hq_user_name=\").concat(null==r?void 0:r.parent_hq_user_name,\"&hq_user_name=\").concat(null==r?void 0:r.hq_user_name,\"&tier=\").concat(null==r?void 0:r.tier)})},C=n(89994);function w(e){return w=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=w(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==w(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e){var t=e.data,n=(0,C.fu)(null==t?void 0:t.status);return u().createElement(\"p\",{className:n.className},n.text)};const R=function(e){var t=e.retailerHq,n=e.isExpand,s=e.handleViewDetails,v=e.listData,A=e.paginationState,y=e.totalElements,E=e.setPaginationState,b=e.isTMHQList,C=e.tableHeaders,w=e.bgpTableHeaders;return u().createElement(a.A,null,null!=t&&t.length?null==t?void 0:t.map(function(e,t){return u().createElement(a.A,{mb:2,key:e.retailer_hq_id},u().createElement(f.A,{expandIcon:b?u().createElement(o.A,null):u().createElement(r.A,null),isExpand:e.retailer_hq_id===n,handleChange:function(){return s(e)},accordionKey:t,accordionSummary:u().createElement(u().Fragment,null,u().createElement(i.A,{direction:\"row\",alignItems:\"center\",width:\"30%\"},u().createElement(h.A,{value:(0,d.Ee)((0,d.AY)(C,e)),size:40,progressBg:\"#62801E\",className:\"label-out\"}),u().createElement(l.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:c.w.palette.grey[400],width:150},e.retailer_hq_name)),null==C?void 0:C.map(function(t){return u().createElement(i.A,{key:null==t?void 0:t.field,justifyContent:\"start\",width:\"20%\"},u().createElement(l.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:c.w.palette.grey[400]},null==t?void 0:t.headerName),u().createElement(l.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:c.w.palette.grey[900]},null==e?void 0:e[null==t?void 0:t.field]))}),u().createElement(l.A,{fontSize:14,sx:{\"text-decoration\":\"underline\"},color:c.w.palette.primary.main,onClick:function(){return s(e)}},e.retailer_hq_id===n?(0,m.t)(\"HIDE_DETAILS\"):(0,m.t)(\"VIEW_DETAILS\"))),accordionDetails:u().createElement(a.A,{className:\"green-themed-table fixed-row-size\"},u().createElement(p.A,{rows:(0,d.pj)(v),columnDefs:w,frameworkComponents:{ActionComponent:_,StatusComponent:D},isPaginationHidden:!0}))}))}):u().createElement(a.A,{sx:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"50vh\"}},(0,m.t)(\"NO_DATA_AVAILABLE\")),u().createElement(g.A,{pageNo:A.pageNo,totalPageCount:Math.ceil(y/A.pageSize),totalElements:y,onPageChange:function(e){E(function(t){return T(T({},t),{},{pageNo:Number(e)})})}}))}},49910:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(67991);t.default=function(e,t){r.useEffectOnce(function(){var n=t.current,r=n.parentElement;if(r){var o=document.createComment(e);return r.insertBefore(o,n),function(){r.removeChild(o)}}})}},50002:(e,t,n)=>{var r=n(82199),o=n(4664),a=n(95950);e.exports=function(e){return r(e,a,o)}},50104:(e,t,n)=>{var r=n(53661);function o(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new TypeError(\"Expected a function\");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},50113:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).find,a=n(6469),i=\"find\",l=!0;i in[]&&Array(1)[i](function(){l=!1}),r({target:\"Array\",proto:!0,forced:l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},50154:(e,t,n)=>{\"use strict\";n.d(t,{Cd:()=>p,aO:()=>g,Ko:()=>f,XB:()=>d}),n(52675),n(89463),n(94170),n(59904),n(84185),n(40875),n(10287),n(26099),n(3362);var r=n(8085),o=n(95692),a=n(13075),i=function(e){var t,n,r,o,a,i,l,s,u;return{\"country-code\":null!==(t=null==e||null===(n=e.selectedCountry)||void 0===n?void 0:n.countryCode)&&void 0!==t?t:\"\",\"bu-id\":null!==(r=null==e?void 0:e.selectedBusinessUnit.bu_id)&&void 0!==r?r:\"\",\"role-id\":null!==(o=null==e||null===(a=e.selectedBusinessUnit)||void 0===a||null===(a=a.userRoleControls)||void 0===a?void 0:a.roleId)&&void 0!==o?o:\"\",\"role-type-name\":null!==(i=e.UserDetails.role_type_details.role_type_name)&&void 0!==i?i:\"\",\"user-id\":null!==(l=null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id)&&void 0!==l?l:\"\",Authorization:\"Bearer \".concat(null!==(u=null==e?void 0:e.AccessToken)&&void 0!==u?u:\"\"),\"Content-Type\":\"application/json\"}},l=function(e){return new Promise(function(t,n){var r;null===(r=o.N.post(e))||void 0===r||r.then(function(e){if(!(0,a.mN)(e))throw new Error(e.error);if(null!=e&&e.data)return t(e)}).catch(function(e){return n(new Error(e))})})};function s(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return u(c,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),c}var i={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),f=d.prototype=l.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return c.prototype=d,u(f,\"constructor\",d),u(d,\"constructor\",c),c.displayName=\"GeneratorFunction\",u(d,o,\"GeneratorFunction\"),u(f),u(f,o,\"Generator\"),u(f,r,function(){return this}),u(f,\"toString\",function(){return\"[object Generator]\"}),(s=function(){return{w:a,m:g}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}u=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){u(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},u(e,t,n,r)}function c(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var d=function(){var e,t=(e=s().m(function e(t,n,o,a,u,c,d){var p;return s().w(function(e){for(;;)if(0===e.n)return(p={}).domain=u,p.endPoint=\"\".concat(r.p.GET_LIQUIDATION_SUMMARY),p.customHeaders=i(c),p.payLoad={tm_mdo_hq:t,from_date:n,to_date:o,brand_id:a},p.triggerLoader=d,e.a(2,l(p))},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){c(a,r,o,i,l,\"next\",e)}function l(e){c(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r,o,a,i,l){return t.apply(this,arguments)}}(),p=function(e,t,n,o,a,s,u){var c={};return c.domain=a,c.endPoint=\"\".concat(r.p.GET_LIQUIDATION_DETAIL),c.customHeaders=i(s),c.payLoad={tm_mdo_hq:e,from_date:t,to_date:n,brand_id:o},c.triggerLoader=u,l(c)},f=function(e,t,n,o){var a=e.tmMdoHq,s=e.fromDate,u=e.toDate,c=e.brandId,d=e.retailerId,p={};return p.domain=t,p.endPoint=\"\".concat(r.p.GET_LIQUIDATION_RETAILER_DETAILS),p.customHeaders=i(n),p.payLoad={tm_mdo_hq:a,from_date:s,to_date:u,brand_id:c,retailer_id:d},p.triggerLoader=o,l(p)},g=function(e,t,n){var l={};return l.domain=t,l.endPoint=\"\".concat(r.p.GET_LIQUIDATION_MASTER_HQ_DATA_CHILDS),l.customHeaders=i(e),l.triggerLoader=n,function(e){return new Promise(function(t,n){var r;null===(r=o.N.get(e))||void 0===r||r.then(function(e){if(!(0,a.mN)(e))throw new Error(e.error);if(null!=e&&e.data)return t(e)}).catch(function(e){return n(new Error(e))})})}(l)}},50261:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z\"}),\"KeyboardArrowRight\")},50275:(e,t,n)=>{\"use strict\";n.d(t,{Jd:()=>s,V4:()=>l,VX:()=>u,XI:()=>m,Zi:()=>g,bB:()=>c,dp:()=>v,dw:()=>i,ih:()=>d,r5:()=>f,ul:()=>h,x3:()=>p}),n(26099),n(3362),n(27495),n(25440);var r=n(8085),o=n(13075),a=n(92782),i=function(e){return(0,o.AT)(\"get\",e,!0)},l=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=r.p.GET_EVENT_TARGETS_LISTING,s.payLoad=a,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":e.UserDetails.role_type_details.is_super_admin_login?1:null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,o.AT)(\"put\",s,!1)},s=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=r.p.GET_EVENT_TARGETS_LISTING,s.payLoad=a,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,o.AT)(\"delete\",s,!1)},u=function(e,t,n,a){var i,l,s,u={};return u.domain=t,u.endPoint=r.p.GET_EVENT_TARGETS_LISTING,u.payLoad=a,u.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"role-id\":null==e||null===(s=e.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=n,(0,o.AT)(\"post\",u,!0)},c=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=r.p.GET_EVENT_TARGET_HQ_PARENT,l.payLoad=a,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},d=function(e,t,n){var o,i,l={};return l.domain=t,l.endPoint=r.p.GET_CROPDATA.replace(\"__ID__\",\"\".concat(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_id)),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){(0,a.pP)(l,{resolve:e,reject:t})})},p=function(e,t,n){var o,i,l={};return l.domain=t,l.endPoint=r.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",\"\".concat(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_code)),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){(0,a.pP)(l,{resolve:e,reject:t})})},f=function(e,t,n){var a,i,l={};return l.domain=t,l.endPoint=r.p.GET_CONDUCTEDBY,l.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(i=e.selectedBusinessUnit)||void 0===i||null===(i=i.userRoleControls)||void 0===i?void 0:i.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},g=function(e,t,n,a){var i,l,s={};return s.domain=t,s.payLoad=a,s.endPoint=r.p.GET_EVENT_TARGET_CHILD,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id},s.triggerLoader=n,(0,o.AT)(\"get\",s,!0)},h=function(e,t,n){var a,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",l={};return l.domain=t,l.endPoint=r.p.EVENT_TYPES,l.payLoad=i?{buId:null==e?void 0:e.selectedBusinessUnit.bu_id,portfolioCode:i}:{buId:null==e?void 0:e.selectedBusinessUnit.bu_id},l.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},m=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=r.p.GET_EVENTCONFIG,l.payLoad=a,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},v=function(e,t,n,a){var i,l,s={};return s.domain=t,s.payLoad=a,s.endPoint=r.p.GET_FIRST_LEVEL_FILTER_LIST,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name},s.triggerLoader=n,(0,o.AT)(\"get\",s,!0)}},50283:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(79039),a=n(94901),i=n(39297),l=n(43724),s=n(10350).CONFIGURABLE,u=n(33706),c=n(91181),d=c.enforce,p=c.get,f=String,g=Object.defineProperty,h=r(\"\".slice),m=r(\"\".replace),v=r([].join),A=l&&!o(function(){return 8!==g(function(){},\"length\",{value:8}).length}),y=String(String).split(\"String\"),E=e.exports=function(e,t,n){\"Symbol(\"===h(f(t),0,7)&&(t=\"[\"+m(f(t),/^Symbol\\(([^)]*)\\).*$/,\"$1\")+\"]\"),n&&n.getter&&(t=\"get \"+t),n&&n.setter&&(t=\"set \"+t),(!i(e,\"name\")||s&&e.name!==t)&&(l?g(e,\"name\",{value:t,configurable:!0}):e.name=t),A&&n&&i(n,\"arity\")&&e.length!==n.arity&&g(e,\"length\",{value:n.arity});try{n&&i(n,\"constructor\")&&n.constructor?l&&g(e,\"prototype\",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return i(r,\"source\")||(r.source=v(y,\"string\"==typeof t?t:\"\")),e};Function.prototype.toString=E(function(){return a(this)&&p(this).source||u(this)},\"toString\")},50304:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"zh-tw\",{months:\"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"星期日_星期一_星期二_星期三_星期四_星期五_星期六\".split(\"_\"),weekdaysShort:\"週日_週一_週二_週三_週四_週五_週六\".split(\"_\"),weekdaysMin:\"日_一_二_三_四_五_六\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY年M月D日\",LLL:\"YYYY年M月D日 HH:mm\",LLLL:\"YYYY年M月D日dddd HH:mm\",l:\"YYYY/M/D\",ll:\"YYYY年M月D日\",lll:\"YYYY年M月D日 HH:mm\",llll:\"YYYY年M月D日dddd HH:mm\"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),\"凌晨\"===t||\"早上\"===t||\"上午\"===t?e:\"中午\"===t?e>=11?e:e+12:\"下午\"===t||\"晚上\"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?\"凌晨\":r<900?\"早上\":r<1130?\"上午\":r<1230?\"中午\":r<1800?\"下午\":\"晚上\"},calendar:{sameDay:\"[今天] LT\",nextDay:\"[明天] LT\",nextWeek:\"[下]dddd LT\",lastDay:\"[昨天] LT\",lastWeek:\"[上]dddd LT\",sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"日\";case\"M\":return e+\"月\";case\"w\":case\"W\":return e+\"週\";default:return e}},relativeTime:{future:\"%s後\",past:\"%s前\",s:\"幾秒\",ss:\"%d 秒\",m:\"1 分鐘\",mm:\"%d 分鐘\",h:\"1 小時\",hh:\"%d 小時\",d:\"1 天\",dd:\"%d 天\",M:\"1 個月\",MM:\"%d 個月\",y:\"1 年\",yy:\"%d 年\"}})}(n(95093))},50360:(e,t,n)=>{\"use strict\";var r=n(44576).isFinite;e.exports=Number.isFinite||function(e){return\"number\"==typeof e&&r(e)}},50381:(e,t,n)=>{\"use strict\";n.d(t,{Ch:()=>C,OE:()=>y,Tl:()=>E,bQ:()=>A,lu:()=>b,oV:()=>S,sN:()=>w}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(25276),n(64346),n(23792),n(62062),n(72712),n(34782),n(15086),n(89572),n(23288),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(35874),n(23500),n(62953);var r=n(95093),o=n.n(r),a=n(95692),i=n(8085),l=n(13075),s=n(19940),u=n(56908);function c(e){return c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},c(e)}var d=[\"isOnApprove\"];function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=c(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==c(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){return new Promise(function(t,n){var r,o={};o.domain=e.baseurl,o.endPoint=i.p.GET_WEEK_OFF_HOLIDAY_LIST,o.payLoad={startDate:e.calendarCycle.startDate,endDate:e.calendarCycle.endDate,hq_id:e.hqId},o.customHeaders={\"country-code\":e.User.selectedCountry.countryCode,\"bu-id\":e.User.selectedBusinessUnit.bu_id,\"user-id\":e.tmUUID,Authorization:\"Bearer \".concat(e.User.AccessToken)},o.triggerLoader=e.triggerShowLoader,null===(r=a.N.get(o))||void 0===r||r.then(function(e){if((0,l.mN)(e)){var n;if(e.data)return t(e.data);throw new Error(null!==(n=e.data.errorMessage)&&void 0!==n?n:(0,l.Tl)(\"WEEK_OF_DAYS_API_FAILED\"))}}).catch(function(e){return n(new Error(e.message))})})},v=function(e){return new Promise(function(t,n){var r,o,s={};s.domain=e.baseurl,s.endPoint=i.p.GET_ATTENDANCE_LIST,s.payLoad={isApprover:!0,markerId:e.markerID,markerUUID:e.markerUUID},s.customHeaders={\"country-code\":e.User.selectedCountry.countryCode,\"bu-id\":e.User.selectedBusinessUnit.bu_id,\"user-id\":null!=e&&null!==(r=e.User)&&void 0!==r&&null!==(r=r.selectedBusinessUnit)&&void 0!==r&&null!==(r=r.userRoleControls)&&void 0!==r&&r.roleId?e.User.UserDetails.user_id:null==e?void 0:e.tmUserID,\"role-type-name\":e.User.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(e.User.AccessToken)},s.triggerLoader=e.triggerShowLoader,null===(o=a.N.get(s))||void 0===o||o.then(function(e){if((0,l.mN)(e)){var n;if(e.data)return t(e.data);throw new Error(null!==(n=e.data.errorMessage)&&void 0!==n?n:(0,l.Tl)(\"PRESENT_LIST_API_FAILED\"))}}).catch(function(e){return n(new Error(e.message))})})},A=function(e,t,n,r,o){var l,s,u,c={};c.domain=t,c.endPoint=\"\".concat(i.p.GET_APPROVAL_ATTENDANCE_DATA,\"?isApprover=\",!0,\"&markerId=\").concat(o);var p=null==r||null===(l=r.approversAttendanceList)||void 0===l||null===(l=l[0])||void 0===l||null===(l=l.attendanceList)||void 0===l?void 0:l.map(function(e){var t,n=e.isOnApprove,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);return g(g({},r),{},{attendanceStatus:n?null==r||null===(t=r.approvals[0])||void 0===t?void 0:t.attendanceStatus:null==r?void 0:r.attendanceStatus})});return r.approversAttendanceList[0].attendanceList=p,c.payLoad=r,c.customHeaders={\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(u=e.selectedCountry)||void 0===u?void 0:u.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,new Promise(function(e,t){var n;null===(n=a.N.post(c))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},y=function(e,t,n){var r,o={};return o.domain=t,o.endPoint=i.p.GET_APPROVAL_REASONS,o.customHeaders={\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,new Promise(function(e,t){var n;null===(n=a.N.get(o))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},E=function(e,t,n){var r,o={};return o.domain=t,o.endPoint=i.p.GET_APPROVAL_COMMENTS,o.customHeaders={\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,new Promise(function(e,t){var n;null===(n=a.N.get(o))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},b=function(e,t,n,r,o){var l,s,u,c={};return c.domain=t,c.endPoint=\"\".concat(i.p.GET_ATTENDANCE_REGULARIZED_HISTORY_LOGS,\"?payCycleStartDate=\").concat(r.startDate,\"&payCycleEndDate=\").concat(r.endDate),c.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e||null===(s=e.selectedBusinessUnit)||void 0===s?void 0:s.bu_id,\"user-id\":n,\"role-type-name\":null==e||null===(u=e.UserDetails)||void 0===u||null===(u=u.role_type_details)||void 0===u?void 0:u.role_type_name,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=o,new Promise(function(e,t){var n;null===(n=a.N.get(c))||void 0===n||n.then(e).catch(t)})},_=function(e,t){return e?u.q.HOLIDAY:t?u.q.WEEK_OFF:u.q.PRESENT},C=function(e,t){for(var n=o()(o()(e.startDate).format(\"YYYY-MM-DD\")),r=o()(o()(e.endDate).format(\"YYYY-MM-DD\")),a=[],i=n.clone();i.isSameOrBefore(r);)a.push(i.format(\"YYYY-MM-DD\")),i.add(1,\"day\");var l=[];return a.forEach(function(e){l.push(function(e,t){var n,r,a,i,l,s,c,d=null==t||null===(n=t.holidaysList)||void 0===n?void 0:n.some(function(t){return o()(o()(t).format(\"YYYY-MM-DD\")).isSame(e)}),p=null==t||null===(r=t.weekOffList)||void 0===r?void 0:r.some(function(t){return o()(o()(t).format(\"YYYY-MM-DD\")).isSame(e)});return!d||null!=t&&null!==(a=t.attendanceList)&&void 0!==a&&null!==(a=a.present)&&void 0!==a&&a.some(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)})?!p||null!=t&&null!==(i=t.attendanceList)&&void 0!==i&&null!==(i=i.present)&&void 0!==i&&i.some(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)})?(null===(l=t.attendanceList.present)||void 0===l?void 0:l.length)>0&&t.attendanceList.present.some(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)})?{date:e,attendanceStatus:_(d,p),details:g({},t.attendanceList.present.find(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)}))}:(null===(s=t.attendanceList.absent)||void 0===s?void 0:s.length)>0&&t.attendanceList.absent.some(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)})?{date:e,attendanceStatus:u.q.ABSENT,details:g({},t.attendanceList.absent.find(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)}))}:(null===(c=t.attendanceList.not_marked)||void 0===c?void 0:c.length)>0&&t.attendanceList.not_marked.some(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)})?{date:e,attendanceStatus:u.q.NOT_MARKED,details:g({},t.attendanceList.not_marked.find(function(t){return o()(o()(t.attendanceDateTime).format(\"YYYY-MM-DD\")).isSame(e)}))}:{date:e,attendanceStatus:u.q.NOT_MARKED,details:{}}:{date:e,attendanceStatus:u.q.WEEK_OFF,details:{}}:{date:e,attendanceStatus:u.q.HOLIDAY,details:{}}}(e,t))}),l},w=function(e){return new Promise(function(t,n){Promise.allSettled([m(e),v(e)]).then(function(n){var r,o,a=(o=2,function(e){if(Array.isArray(e))return e}(r=n)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(r,o)||function(e,t){if(e){if(\"string\"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(r,o)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),i=a[0],s=a[1];if(i.value&&s.value){var u=function(e,t){var n,r={};return e.approversAttendanceList&&Array.isArray(e.approversAttendanceList)&&e.approversAttendanceList.length>0&&(r=null===(n=e.approversAttendanceList.filter(function(e){return e.userId===t.markerUUID}).at(0))||void 0===n?void 0:n.attendanceList.reduce(function(e,t){var n;return e[t.attendanceStatus.toLowerCase()]=null!==(n=e[t.attendanceStatus.toLowerCase()])&&void 0!==n?n:[],e[t.attendanceStatus.toLowerCase()].push(t),e},Object.create(null))),r}(s.value,e),c=g({weekOff:i.value},u);return t(c)}throw new Error((0,l.Tl)(\"ATTENDANCE_LIST_API_FAILED\"))}).catch(function(e){return n(new Error(e.message))})})},S=function(e,t,n,r){var o,l,c={};return c.domain=t,c.endPoint=\"\".concat(i.p.GET_ATTENDANCE_CONFIG_VALUES,\"?keys=\").concat(u.q.ATTENDANCE_TYPE,\"&portfolioCode=\").concat((null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.portfolio_code)||\"DEFAULT\"),c.payLoad={moduleName:s.Sn.ATTENDANCE_MODULE,keys:u.q.ATTENDANCE_APPROVER_CONFIGURATION},c.customHeaders={\"role-id\":r,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,new Promise(function(e,t){var n;null===(n=a.N.get(c))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})}},50404:(e,t,n)=>{\"use strict\";e.exports=n.p+\"66da9e80acc25990995d.woff2\"},50539:(e,t,n)=>{\"use strict\";var r,o=(r=n(97479))&&r.__esModule?r:{default:r};t.A=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!==(void 0===t?\"undefined\":(0,o.default)(t))&&\"function\"!=typeof t?e:t}},50559:(e,t,n)=>{var r=n(90326),o=n(56903).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},50583:(e,t,n)=>{var r=n(47237),o=n(17255),a=n(28586),i=n(77797);e.exports=function(e){return a(e)?r(i(e)):o(e)}},50689:(e,t,n)=>{var r=n(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,l){var s=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var d=c;d--;){var p=u[d];if(!(s?p in t:o.call(t,p)))return!1}var f=l.get(e),g=l.get(t);if(f&&g)return f==t&&g==e;var h=!0;l.set(e,t),l.set(t,e);for(var m=s;++d<c;){var v=e[p=u[d]],A=t[p];if(a)var y=s?a(A,v,p,t,e,l):a(v,A,p,e,t,l);if(!(void 0===y?v===A||i(v,A,n,a,l):y)){h=!1;break}m||(m=\"constructor\"==p)}if(h&&!m){var E=e.constructor,b=t.constructor;E==b||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof E&&E instanceof E&&\"function\"==typeof b&&b instanceof b||(h=!1)}return l.delete(e),l.delete(t),h}},50778:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(77240);r({target:\"String\",proto:!0,forced:n(23061)(\"link\")},{link:function(e){return o(this,\"a\",\"href\",e)}})},50817:(e,t)=>{\"use strict\";function n(){return!1}function r(){return!0}function o(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,\"__esModule\",{value:!0}),o.prototype={isEventObject:1,constructor:o,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=r},stopPropagation:function(){this.isPropagationStopped=r},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=o,e.exports=t.default},50828:(e,t,n)=>{var r=n(24647),o=n(13222),a=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,i=RegExp(\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]\",\"g\");e.exports=function(e){return(e=o(e))&&e.replace(a,r).replace(i,\"\")}},50851:(e,t,n)=>{\"use strict\";var r=n(36955),o=n(55966),a=n(64117),i=n(26269),l=n(78227)(\"iterator\");e.exports=function(e){if(!a(e))return o(e,l)||o(e,\"@@iterator\")||i[r(e)]}},50852:(e,t,n)=>{\"use strict\";e.exports=n.p+\"81159d1de0d9dd1c7fb0.woff\"},50862:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(76673).A},51e3:(e,t,n)=>{\"use strict\";e.exports=n.p+\"90d125d0e8a0d905bb51.woff\"},51063:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},51088:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565),a=n(96395),i=n(10350),l=n(94901),s=n(33994),u=n(42787),c=n(52967),d=n(10687),p=n(66699),f=n(36840),g=n(78227),h=n(26269),m=n(57657),v=i.PROPER,A=i.CONFIGURABLE,y=m.IteratorPrototype,E=m.BUGGY_SAFARI_ITERATORS,b=g(\"iterator\"),_=\"keys\",C=\"values\",w=\"entries\",S=function(){return this};e.exports=function(e,t,n,i,g,m,T){s(n,t,i);var O,D,R,N=function(e){if(e===g&&I)return I;if(!E&&e&&e in M)return M[e];switch(e){case _:case C:case w:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+\" Iterator\",P=!1,M=e.prototype,x=M[b]||M[\"@@iterator\"]||g&&M[g],I=!E&&x||N(g),k=\"Array\"===t&&M.entries||x;if(k&&(O=u(k.call(new e)))!==Object.prototype&&O.next&&(a||u(O)===y||(c?c(O,y):l(O[b])||f(O,b,S)),d(O,L,!0,!0),a&&(h[L]=S)),v&&g===C&&x&&x.name!==C&&(!a&&A?p(M,\"name\",C):(P=!0,I=function(){return o(x,this)})),g)if(D={values:N(C),keys:m?I:N(_),entries:N(w)},T)for(R in D)(E||P||!(R in M))&&f(M,R,D[R]);else r({target:t,proto:!0,forced:E||P},D);return a&&!T||M[b]===I||f(M,b,I,{name:g}),h[t]=I,D}},51098:(e,t,n)=>{var r=n(71040),o=n(22524),a=o.each,i=o.isFunction,l=o.isArray;function s(){if(!window.matchMedia)throw new Error(\"matchMedia not present, legacy browsers require a polyfill\");this.queries={},this.browserIsIncapable=!window.matchMedia(\"only all\").matches}s.prototype={constructor:s,register:function(e,t,n){var o=this.queries,s=n&&this.browserIsIncapable;return o[e]||(o[e]=new r(e,s)),i(t)&&(t={match:t}),l(t)||(t=[t]),a(t,function(t){i(t)&&(t={match:t}),o[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=s},51175:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i,g:()=>a});var r=n(38413),o=n(31609);function a(e){return(0,o.Ay)(\"MuiInputBase\",e)}const i=(0,r.A)(\"MuiInputBase\",[\"root\",\"formControl\",\"focused\",\"disabled\",\"adornedStart\",\"adornedEnd\",\"error\",\"sizeSmall\",\"multiline\",\"colorSecondary\",\"fullWidth\",\"hiddenLabel\",\"readOnly\",\"input\",\"inputSizeSmall\",\"inputMultiline\",\"inputTypeSearch\",\"inputAdornedStart\",\"inputAdornedEnd\",\"inputHiddenLabel\"])},51246:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{DemoTrackingRootRoute:()=>P,default:()=>M}),n(28706),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(27305),s=(n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(74423),n(64346),n(34782),n(60739),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(27495),n(38781),n(21699),n(35874),n(23500),n(28161)),u=n(90815),c=n(56203),d=n(92416),p=n(46374),f=n(27776),g=n(7928),h=n(47225),m=n(70380);function v(e){return v=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},v(e)}function A(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return y(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(y(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,y(d,\"constructor\",u),y(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",y(u,o,\"GeneratorFunction\"),y(d),y(d,o,\"Generator\"),y(d,r,function(){return this}),y(d,\"toString\",function(){return\"[object Generator]\"}),(A=function(){return{w:a,m:p}})()}function y(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}y=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){y(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},y(e,t,n,r)}function E(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=v(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==v(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var T=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,19087))}),O=\"visitDetailsState\";const D=function(e){e.RBACPermissions;var t=(0,r.useContext)(h.v),n=t.BackOfficeProps,l=n.globalStore.User,v=n.baseurl,y=t.triggerShowLoader,b=t.triggerToastMsg,C=(0,a.zy)(),S=C.state,D=C.pathname,R=w((0,r.useState)({}),2),N=R[0],L=R[1],P=w((0,r.useState)(null),2),M=P[0],x=P[1],I=w((0,r.useState)({}),2),k=I[0],B=I[1],F=w((0,r.useState)({tablist:[],currentTabs:\"\"}),2),j=F[0],H=F[1];(0,r.useEffect)(function(){var e,t=D.split(\"/\"),n=decodeURIComponent(null!==(e=t.at(-1))&&void 0!==e?e:\"\");H(function(e){return _(_({},e),{},{currentTabs:n})})},[D]),(0,r.useEffect)(function(){if(S)x(S),localStorage.setItem(O,JSON.stringify(S));else{var e=localStorage.getItem(O);if(e)try{x(JSON.parse(e))}catch(e){console.error(\"Failed to parse stored state:\",e),localStorage.removeItem(O)}}},[S]);var U=(0,r.useCallback)(function(e){return Object.keys(e).map(function(t,n){return{id:n,tabName:(0,c.t)(t.toUpperCase()),path:(0,c.t)(t),component:o().createElement(T,{data:e[t],visitDates:k[t],User:l,baseurl:v,triggerShowLoader:y,locationState:M})}})},[k]);(0,r.useEffect)(function(){if(Object.keys(N).length>0){var e=U(N);H(function(t){return _(_({},t),{},{tablist:e})})}},[N,U,k]);var Y=(0,r.useCallback)(function(e,t){var n={};return e&&t?(function(e){var t;if(null!==(t=Object.keys(null==e?void 0:e.visits))&&void 0!==t&&t.length){var n,r={};null===(n=Object.keys(null==e?void 0:e.visits))||void 0===n||n.map(function(t){var n;r[t]=null==e||null===(n=e.visits)||void 0===n||null===(n=n[t])||void 0===n?void 0:n.created_at}),B(r)}}(t),null==e||e.forEach(function(e){var r,o=e.page_category,a=e.form_field_configuration_dto_list;Object.keys(null==t?void 0:t.visits).includes(null==o?void 0:o.toLowerCase())&&(n[null==o?void 0:o.toLowerCase()]=(null==a||null===(r=a.filter(function(e){return null==e?void 0:e.is_visible}))||void 0===r?void 0:r.map(function(e){var n,r,a;return{name:e.label,id:e.field_unique_id,value:\"DATE_PICKER\"===e.control_type&&null!=t&&null!==(n=t.visits)&&void 0!==n&&null!==(n=n[null==o?void 0:o.toLowerCase()])&&void 0!==n&&n[null==e?void 0:e.form_field_key]?(0,m.Yq)(null==t||null===(r=t.visits)||void 0===r||null===(r=r[null==o?void 0:o.toLowerCase()])||void 0===r?void 0:r[null==e?void 0:e.form_field_key],\"DD/MM/YYYY\"):null==t||null===(a=t.visits)||void 0===a||null===(a=a[null==o?void 0:o.toLowerCase()])||void 0===a?void 0:a[null==e?void 0:e.form_field_key]}}))||[])}),n):n},[]);(0,r.useEffect)(function(){if(null!=M&&M.demo_grower_details_id){var e=function(){var e,t=(e=A().m(function e(){var t,n,r,o,a,i;return A().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Promise.allSettled([(0,g.S3)(l,v,y,{crop_id:null==M?void 0:M.crop_id}),(0,g.AL)(l,v,y,{state:M,demo_grower_details_id:M.demo_grower_details_id})]);case 1:t=e.v,n=w(t,2),r=n[0],o=n[1],\"fulfilled\"===r.status&&\"fulfilled\"===o.status?(a=Y(r.value,o.value),L(a)):(console.error(\"Failed to fetch visit details:\",{formDataResult:r,visitDataResult:o}),null==b||b({message:\"Failed to load visit details\",type:\"error\"})),e.n=3;break;case 2:e.p=2,i=e.v,console.error(\"Error fetching visit details:\",i),null==b||b({message:\"An error occurred while loading visit details\",type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){E(a,r,o,i,l,\"next\",e)}function l(e){E(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();e()}},[null==M?void 0:M.demo_grower_details_id,l,v,Y]);var G=(0,r.useCallback)(function(e){H(function(t){return _(_({},t),{},{currentTabs:e})})},[]),z=(0,r.useMemo)(function(){return M?[{name:i.F_.Demo_Tracking,path:i.fp.Demo_Tracking},{name:\"Request ID : \".concat(M.demo_requester_code),path:\"\".concat(i.fp.Demo_Tracking,\"/\").concat(i.fp.Demo_List,\"/\").concat(i.fp.Demo_Request_Data),state:M},{name:M.grower_name,path:i.fp.Retailer_Details}]:[]},[M]);return o().createElement(f.T,null,o().createElement(s.A,null,o().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(s.A,null,o().createElement(d.A,{routePathName:z})))),j.tablist.length>0&&o().createElement(o().Fragment,null,o().createElement(p.A,{tabStateProps:j,handleTabChange:G}),o().createElement(a.BV,null,j.tablist.map(function(e){return o().createElement(a.qh,{key:e.id,path:e.path,element:e.component})}))))};var R=n(7542),N=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,89115))}),L=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))}),P=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},o().createElement(N,{RBACControls:t}))}),null==n?void 0:n.map(function(e,t){return o().createElement(a.qh,{key:\"demo-tracking-route-\".concat(e.moduleName),path:e.path,element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{path:\"\".concat(i.fp.Demo_List,\"/\").concat(i.fp.Demo_Request_Data,\"/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(R.default,null))}),o().createElement(a.qh,{path:\"\".concat(i.fp.Demo_List,\"/\").concat(i.fp.Visit_details,\"/:id/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(D,null))}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(L,null)),path:i.fp.PageNotFound}))};const M=P},51249:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"}),\"ErrorOutline\")},51389:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ae}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(1688),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(25440),n(5746),n(23500),n(62953),n(48408);var r=n(81970),o=n.n(r),a=n(34195),i=n(47767),l=n(47225),s=n(70380),u=n(13075),c=n(86444),d=n(50381),p=(n(62480),n(90815)),f=n(14073),g=n(60538),h=n(11641),m=n(28161),v=n(6347),A=n(8451),y=n(27562),E=n(20573),b=n(92659),_=n(88084),C=n(56203),w=n(99478),S=n(17630),T=n(65343),O=n(15664),D=n(45620),R=function(e){var t,n,r,a,i,l,s,u,c=e.isDetailsReq,d=void 0===c||c,h=e.calendarDateList,v=e.isEventBased,A=e.isApprove,y=e.onApprove,E=h;return o().createElement(g.A,{className:\"attendance-view-card\"},o().createElement(p.A,{direction:\"row\",justifyContent:\"space-between\",p:1,alignItems:\"center\"},o().createElement(m.A,{width:\"30%\"},o().createElement(f.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:S.w.palette.grey[400]},null==E?void 0:E.userName),o().createElement(f.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:S.w.palette.grey[900]},null==E?void 0:E.hqDataNames)),o().createElement(p.A,{direction:\"row\",gap:2,justifyContent:\"space-around\",width:\"70%\"},o().createElement(p.A,{direction:\"row\",alignItems:\"center\",gap:2},o().createElement(D.A,{value:null!==(t=null==E?void 0:E.presentCount)&&void 0!==t?t:0,labelIcon:\"icon-inventory\",thickness:3,size:50,progressTrackBg:\"#DFFBE8\",progressBg:\"#14803C\"}),o().createElement(m.A,null,o().createElement(f.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:S.w.palette.grey[400]},\"\".concat(null!==(n=null==E?void 0:E.presentCount)&&void 0!==n?n:0,\" Days\")),o().createElement(f.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:S.w.palette.grey[900]},\"Present\"))),o().createElement(p.A,{direction:\"row\",alignItems:\"center\",gap:2},o().createElement(D.A,{labelIcon:\"icon-content_paste_off\",thickness:3,size:50,progressTrackBg:v?\"#FFF1F1\":\"#FFF3DD\",value:null!==(r=null==E?void 0:E.notMarkedCount)&&void 0!==r?r:0,progressBg:v?\"#CF3537\":\"#E99921\"}),o().createElement(m.A,null,o().createElement(f.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:S.w.palette.grey[400]},\"\".concat(null!==(a=null==E?void 0:E.notMarkedCount)&&void 0!==a?a:0,\" Days\")),o().createElement(f.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:S.w.palette.grey[900]},v?(0,C.t)(\"ABSENT\"):(0,C.t)(\"NOT_MARKED\")))),o().createElement(p.A,{direction:\"row\",alignItems:\"center\",gap:2,alignContent:\"center\"},o().createElement(D.A,{labelIcon:\"icon-logout\",thickness:3,size:50,progressTrackBg:v?\"#EAF6FF\":\"#FFF1F1\",value:null!==(i=null==E?void 0:E.absentCount)&&void 0!==i?i:0,progressBg:v?\"#0071CD\":\"#CF3537\"}),o().createElement(m.A,null,o().createElement(f.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:S.w.palette.grey[400]},\"\".concat(null!==(l=null==E?void 0:E.absentCount)&&void 0!==l?l:0,\" Days\")),o().createElement(f.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:S.w.palette.grey[900]},v?(0,C.t)(\"APPLIED_LEAVES\"):(0,C.t)(\"LEAVE\")))),o().createElement(p.A,{direction:\"row\",alignItems:\"center\",gap:2},o().createElement(D.A,{labelIcon:\"icon-flag\",thickness:3,size:50,progressTrackBg:\"#F3F4F6\",value:null!==(s=null==E?void 0:E.holidaysCount)&&void 0!==s?s:0,progressBg:\"#696F88\"}),o().createElement(m.A,null,o().createElement(f.A,{variant:\"h5\",className:\"accoridan-title\",p:.5,color:S.w.palette.grey[400]},\"\".concat(null!==(u=null==E?void 0:E.holidaysCount)&&void 0!==u?u:0,\" Days\")),o().createElement(f.A,{variant:\"body2\",className:\"accoridan-subtitle\",p:.5,color:S.w.palette.grey[900]},\"Holiday\"))),A&&o().createElement(p.A,{direction:\"row\",alignItems:\"center\",gap:2},o().createElement(O.A,{variant:\"contained\",buttonName:null!=E&&E.isApproved?\"Approved\":\"Approve\",onButtonClick:function(){return y()},fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!(null==E||!E.notMarkedCount)||!(null==E||!E.isApproved)||!(null==h||!h.isFinalApproved)}))),d&&o().createElement(m.A,{color:S.w.palette.grey[200]},o().createElement(T.A,null))))};const N=o().memo(R);var L=n(64121),P=n(37306),M=n(15941),x=n(11848),I=(0,x.Ay)(m.A)(function(e){return{\"& .active\":{backgroundColor:\"#f0f0f0\",border:\"1px solid #ccc\"},\"& .MuiSvgIcon-root\":{fontSize:\"24px\"},\"& .MuiFormControlLabel-root\":{\"& .MuiTypography-root\":{fontSize:\"16px\"}},\"& .form-btns\":{\"& .MuiButton-root\":{minWidth:\"194px\"}},\"& .MuiPaper-root \":{boxShadow:\"none\"},\"& .payroll-selector\":{backgroundColor:e.theme.palette.secondary.light}}}),k=(n(33771),n(48980),n(15086),n(54554),n(80663)),B=n(51545),F=n(95093),j=n.n(F),H=n(56908);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Y=function(e){var t,n,r=e.calendarDateList,a=void 0===r?[]:r,i=e.onDayPress,l=void 0===i?function(){}:i,c=e.selectedDates,d=void 0===c?[]:c,p=e.isEventBased,g=e.tabName,h=(0,s.Yq)(null===(t=a.at(0))||void 0===t?void 0:t.date,\"YYYY-MM-DD\"),m=(0,s.Yq)(null===(n=a.at(-1))||void 0===n?void 0:n.date,\"YYYY-MM-DD\"),v=(0,s.Wd)(h,\"week\",\"start\"),A=(0,s.Yq)(v),y=(0,u.k2)(h,m);return o().createElement(o().Fragment,null,new Array(y).fill(0).map(function(e,t){var n=t;return o().createElement(k.A,{key:(0,u.gP)(),flexDirection:\"row\",gap:2,mb:2},new Array(7).fill(0).map(function(e,t){var r,i,c,v,y,E,b,_,C=\"Calendar-Week:\".concat(n,\":Day\").concat(t),w=0===n&&0===t?A.toDate():A.add(1,\"day\").toDate(),S=(0,s.Yq)(w,\"YYYY-MM-DD\"),T=d.some(function(e){return(0,s.Yq)(S).isSame(e)})?\"selected\":\"\",O=\"approval\"===g?function(e){var t,n=e.CalendarDate,r=e.calendarDateList,o=e.startDate,a=e.endDate,i=e.isEventBased,l=function(e){return j()(n).isSame(e.date)},s=function(e){return function(t){return l(t)&&t.attendanceStatus===e}},c=r.some(s(H.q.WEEK_OFF)),d=r.filter(function(e){var t,n;return l(e)&&(null===(t=e.details)||void 0===t?void 0:t.attendanceStatus)&&(null===(n=e.details)||void 0===n||null===(n=n.approvals)||void 0===n||null===(n=n.at(0))||void 0===n?void 0:n.attendanceStatus)}),p=(null==r||null===(t=r.find(function(e){return l(e)}))||void 0===t||null===(t=t.details)||void 0===t?void 0:t.attendanceStatus)===H.q.CAPS_PRESENT,f=function(e){var t;return(null===(t=d.at(0))||void 0===t||null===(t=t.details.approvals)||void 0===t||null===(t=t.at(0))||void 0===t||null===(t=t.attendanceStatus)||void 0===t?void 0:t.toLowerCase())===e},g=r.some(s(H.q.PRESENT)),h=r.some(s(H.q.ABSENT)),m=r.some(s(H.q.NOT_MARKED)),v=f(H.q.PRESENT),A=f(H.q.ABSENT),y=0===d.length,E=r.some(s(H.q.HOLIDAY)),b=E&&(v||p),_=c&&(v||p),C=j()(n).isBefore(a)||j()(n).isAfter(o),w=m&&y,S=\"\";return g&&A?S=i?\"present-applied_leave\":\"present-leave\":h&&v?S=i?\"applied_leave-present\":\"absent-present\":m&&v?S=i?\"manual_notmarked-present\":\"notmarked-present\":m&&A?S=i?\"manual_notmarked-absent\":\"notmarked-absent\":b?S=\"holiday-present\":_?S=\"passive-present\":A||m&&A||h?S=i?\"applied-leave\":\"leave\":v||g?S=\"present\":E?S=\"holiday\":c||(0,u.yf)(n)?S=\"passive\":w?S=i?\"leave\":\"unmarked\":C&&(S=\"passive\"),S}({CalendarDate:S,calendarDateList:a,startDate:h,endDate:m,isEventBased:p}):(r=S,i=a,c=h,v=m,y=p,E=function(e){var t;return null===(t=j()(r))||void 0===t?void 0:t.isSame(e.date)},b=function(e){return null==i?void 0:i.some(function(t){return E(t)&&t.attendanceStatus===e})},function(e,t){return e.isHoliday&&e.isPresent?\"holiday-present\":e.isWeekOff&&e.isPresent?\"passive-present\":e.isAbsent?t?\"applied-leave\":\"leave\":e.isPresent?\"present\":e.isHoliday?\"holiday\":e.isWeekOff||e.isFutureDate?\"passive\":e.isNotMarked?t?\"leave\":\"unmarked\":e.isOutsidePeriod?\"passive\":\"\"}({isPresent:(_=function(){var e;return null==i||null===(e=i.find(function(e){return E(e)}))||void 0===e||null===(e=e.details)||void 0===e?void 0:e.attendanceStatus})()===H.q.CAPS_PRESENT,isAbsent:_()===H.q.CAPS_ABSENT,isHoliday:b(H.q.HOLIDAY),isWeekOff:b(H.q.WEEK_OFF),isNotMarked:b(H.q.NOT_MARKED),isOutsidePeriod:j()(r).isBefore(v)||j()(r).isAfter(c),isFutureDate:(0,u.yf)(r)},y));return o().createElement(B.A,{key:C,className:\"\".concat(O,\" statusmarker \").concat(T),onClick:function(){return function(e){var t,n=function(e){if(Array.isArray(e))return U(e)}(t=d)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||function(e,t){if(e){if(\"string\"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),r=n.findIndex(function(t){return(0,s.Yq)(t).isSame(e)});-1===r?n.push(e):n.splice(r,1),l(n)}(w)}},o().createElement(f.A,{variant:\"h6\"},(0,s.Yq)(w,\"DD\")))}))}))};const G=(0,r.memo)(Y);var z=function(){return o().createElement(k.A,{flexDirection:\"row\",gap:2},[7,1,2,3,4,5,6].map(function(e){return o().createElement(f.A,{\"data-testid\":\"week-day\",key:\"week-weeks\".concat(e),fontWeight:\"500\",textAlign:\"center\",color:S.w.palette.grey[100],className:\"week-day\",fontSize:16},(0,s.wv)(e))}))};const V=(0,r.memo)(z);var q=function(e){var t=e.isEventBased;return o().createElement(m.A,{className:\"legend-calener\"},o().createElement(k.A,{direction:\"row\",justifyContent:\"space-evenly\",ml:3,maxWidth:\"440px\",\"data-testid\":\"legend-stack\"},o().createElement(m.A,{className:\"legend-indicator indicator-green\"},o().createElement(f.A,{variant:\"h3\"},\"Present\")),t?o().createElement(m.A,{className:\"legend-indicator indicator-blue\"},o().createElement(f.A,{variant:\"h3\"},(0,C.t)(\"APPLIED_LEAVES\"))):o().createElement(m.A,{className:\"legend-indicator indicator-red\"},o().createElement(f.A,{variant:\"h3\"},(0,C.t)(\"LEAVE\"))),t?o().createElement(m.A,{className:\"legend-indicator indicator-red\"},o().createElement(f.A,{variant:\"h3\"},(0,C.t)(\"ABSENT\"))):o().createElement(m.A,{className:\"legend-indicator indicator-orange\"},o().createElement(f.A,{variant:\"h3\"},(0,C.t)(\"NOT_MARKED\"))),o().createElement(m.A,{className:\"legend-indicator indicator-grey\"},o().createElement(f.A,{variant:\"h3\"},\"Holiday\"))))};const W=(0,r.memo)(q);var Q;n(52811);var K,$,X=(0,x.Ay)(m.A)(Q||(K=[\"\\n  min-width:480px;\\n  .week-day {\\n    width: 58px;\\n    boxsizzing: border-box;\\n    padding: 10px;\\n  }\\n  .dates-buttons {\\n    background-color: #eaf6ff;\\n    font-family: 'NotoSans-Regular' !important;\\n    width: 60px;\\n    height: 60px;\\n    color: \",\";\\n    font-size: 20px;\\n    font-weight: 600;\\n    text-align: center;\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    cursor: pointer;\\n    transition: all 0.05s ease-in-out;\\n    border: 1px solid transparent;\\n    &:hover,\\n    .active-date {\\n      background-color: #c6e6ff;\\n      border: 1px solid #0092e4;\\n    }\\n    &:before {\\n      font-family: 'sakshyam';\\n      font-size: 14px !important;\\n    }\\n    &.icon-alert {\\n      position: relative;\\n      &:before {\\n        top: 1px;\\n        right: 10px;\\n        position: absolute;\\n        color: #ee5b3a;\\n      }\\n    }\\n    &.icon-cross {\\n      position: relative;\\n      &:before {\\n        top: 2px;\\n        right: 8px;\\n        position: absolute;\\n        color: \",\";\\n      }\\n    }\\n    &.icon-check {\\n      position: relative;\\n      &:before {\\n        top: 2px;\\n        right: 8px;\\n        position: absolute;\\n        color: #65833a;\\n      }\\n    }\\n  }\\n\\n  .calendar-legend-wrapper {\\n    .legend-item {\\n      align-items: center;\\n    }\\n  }\\n  .disabled-date {\\n    opacity: 0.4;\\n    pointer-events: none;\\n  }\\n  .statusmarker {\\n    width: 58px;\\n    height: 58px;\\n    border-radius: 4px;\\n    text-align: center;\\n    align-content: center;\\n    display: grid;\\n    position: relative;\\n    transition: all 0.3s ease-in;\\n    border:1px solid \",\";\\n    cursor: pointer;\\n    &:after {\\n      content: '';\\n      position: absolute;\\n      width: 24px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 17px;\\n    }\\n  }\\n  .unmarked {\\n    background-color: #FFF3DD;\\n    &:after {\\n      background-color: #E99921;\\n    }\\n  }\\n  .holiday {\\n     background-color: #DFE2E7;\\n    pointer-events: none;\\n    &:after {\\n       background-color: \\n#696F88;\\n    }\\n  }\\n\\n  .present {\\n    background-color: #DFFBE8;\\n    &:after {\\n      background-color: #14803C;\\n    }\\n  }\\n  .holiday-present {\\n    background-color: #DFE2E7;\\n    &:after {\\n      background-color: #14803C;\\n    }\\n    pointer-events: none;\\n  }\\n  .passive-present {\\n    background-color: #F3F4F6;\\n    &:after {\\n      background-color: #14803C;\\n    }\\n    pointer-events: none;\\n  }\\n  .leave {\\n    background-color: #FFF1F1;\\n    &:after {\\n      background-color: #CF3537;\\n    }\\n  }\\n  .applied-leave {\\n    background-color: #EAF6FF;\\n    &:after {\\n      background-color: #0071CD;\\n    }\\n  }\\n  .selected {\\n    border: 2px solid #62801e;\\n    /* height: 60px; */\\n    /* width: 60px; */\\n    border-radius: 4px;\\n    /* position: absolute; */\\n  }\\n  .unmarked-leave {\\n    background-color: #ffedd2;\\n    &:after {\\n      background-color: #de9d40;\\n      left: 15px;\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #bf423e;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 28px;\\n    }\\n  }\\n  .present-applied_leave{\\n    background-color: #ffffff;\\n    \\n    &:after {\\n      background-color: #14803C;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #0071CD;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n  }\\n  .present-leave {\\n    background-color: #ffffff;\\n    \\n    &:after {\\n      background-color: #14803C;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #bf423e;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n  }\\n  .manual_notmarked-present{\\n           background-color: #ffffff;\\n    &:after {\\n      background-color: #CF3537;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #14803C;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n}\\n.manual_notmarked-absent{\\n           background-color: #ffffff;\\n    &:after {\\n      background-color: #CF3537;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #0071CD;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n}\\n  .notmarked-present{\\n           background-color: #ffffff;\\n    &:after {\\n      background-color: #ffedd2;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #0c612c;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n}\\n.notmarked-absent {\\n    background-color: #ffffff;\\n    &:after {\\n      background-color:#ffedd2;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #bf423e;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n  }\\n  .applied_leave-present {\\n    background-color: #ffffff;\\n    &:after {\\n      background-color: #0071CD;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #14803C;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n  }\\n\\n  .absent-present {\\n    background-color: #ffffff;\\n    &:after {\\n      background-color: #bf423e;\\n      /* left: 15px; */\\n      width: 12px;\\n    }\\n    &:before {\\n      background-color: #0c612c;\\n      content: '';\\n      position: absolute;\\n      width: 12px;\\n      height: 3px;\\n      bottom: 7px;\\n      left: 30px;\\n    }\\n  }\\n\\n  .hidden {\\n    display: none !important;\\n  }\\n.passive{\\n            background-color: #F3F4F6;\\n    border: 1px solid \",\";\\n    color: \",\";\\n    pointer-events: none;\\n}\\n\\n  .legend-indicator {\\n    position: relative;\\n    &:before {\\n      content: '';\\n      width: 17px;\\n      height: 4px;\\n      position: absolute;\\n      left: -28px;\\n      top: 8px;\\n    }\\n    &.indicator-green {\\n      &:before {\\n        background-color: #0c612c;\\n      }\\n    }\\n    &.indicator-red {\\n      &:before {\\n        background-color: #bf423e;\\n      }\\n    }\\n    &.indicator-blue {\\n      &:before {\\n        background-color: #0071CD;\\n      }\\n    }\\n    &.indicator-orange {\\n      &:before {\\n        background-color: #de9d40;\\n      }\\n    }\\n    &.indicator-blue {\\n      &:before {\\n        background-color: #306fc6;\\n      }\\n    }\\n     &.indicator-grey {\\n      &:before {\\n        background-color: \",\";;\\n      }\\n    }\\n  }\\n\"],$||($=K.slice(0)),Q=Object.freeze(Object.defineProperties(K,{raw:{value:Object.freeze($)}}))),S.w.palette.grey[400],S.w.palette.error.main,S.w.palette.grey[800],S.w.palette.grey[800],S.w.palette.grey[400],S.w.palette.grey[100]),J=function(e){var t=e.calendarCycle,n=e.onDayPress,r=void 0===n?function(){}:n,a=e.calendarDateList,i=void 0===a?[]:a,l=e.selectedDates,s=void 0===l?[]:l,u=e.isEventBased,c=e.tabName;return o().createElement(X,null,o().createElement(V,null),o().createElement(G,{calendarCycle:t,onDayPress:r,calendarDateList:i,selectedDates:s,isEventBased:u,tabName:c}),o().createElement(W,{isEventBased:u}))};const Z=(0,r.memo)(J);var ee=n(43605);function te(e){return te=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},te(e)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach(function(t){oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=te(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==te(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=[{field:\"editedDate\",headerName:\"Edited Date\",flex:1},{field:\"changeTo\",headerName:\"Change to\",flex:.8},{field:\"actionTakenBy\",headerName:\"Action Taken By\",flex:1},{field:\"comments\",headerName:\"Comments/Leave Type\",flex:1.4},{field:\"modifiedDate\",headerName:\"Modified Date & Time\",flex:1.4}];const ie=function(e){var t=e.tabNameHeading,n=e.mdoData,a=e.isEventBased,i=e.onApprove,s=e.tabName,u=e.activeApproverButton,c=e.onChangeCycle,d=e.selectedPayCycleIndex,T=e.payCycles,D=e.isEdit,R=e.payCycle,x=e.calendarDateList,k=e.calendarCycle,B=e.dateHandler,F=e.selectedDates,j=e.setIsEdit,H=e.clearSelectedDates,U=e.initialForm,Y=e.selectedApproveStatus,G=e.onSubmit,z=e.setSelectedApproveStatus,V=e.getReasons,q=e.getComments,W=e.isRegularizationRequired,Q=e.isAttendanceRegulerizationEnabled,K=e.hasApproverAttendanceConfiguration,$=e.attendanceHistory,X=void 0===$?[]:$,J=(0,r.useContext)(l.v).BackOfficeProps.globalStore.User,te=0===Number(d),ne=\"approval\"===s&&D&&(W||!(null!=n&&n.isApproved));return o().createElement(I,null,o().createElement(p.A,{direction:\"row\",justifyContent:\"flex-start\",p:1,gap:1,pt:2},o().createElement(f.A,{className:\"pointer\",\"data-testid\":\"arrowBackIcon\",onClick:function(){return globalThis.history.back()},color:S.w.palette.grey[200]},o().createElement(b.A,null)),o().createElement(f.A,{variant:\"h5\",fontSize:20},(0,C.t)(\"BACK_TO\"),\" \",t)),o().createElement(g.A,{elevation:0,sx:{padding:\"16px\"}},(null==n?void 0:n.userUUID)&&o().createElement(N,{isEventBased:a,onApprove:i,isApprove:\"approval\"===s&&u,isDetailsReq:!1,calendarDateList:n}),o().createElement(p.A,{p:2,className:\"payroll-selector\",direction:\"row\",alignItems:\"center\",justifyContent:\"center\",mt:2},o().createElement(h.A,{\"data-testid\":\"chevronLeftIcon\",onClick:function(){return c(-1)},disabled:Number(d)===(null==T?void 0:T.length)-1},o().createElement(A.A,null)),o().createElement(f.A,{variant:\"subtitle1\"},R),o().createElement(h.A,{\"data-testid\":\"chevronRightIcon\",onClick:function(){return c(1)},disabled:0===Number(d)},o().createElement(y.A,null))),null!=n&&n.userUUID?o().createElement(p.A,{flexDirection:\"row\",minHeight:\"400px\",gap:2,justifyContent:ne?\"start\":\"center\"},o().createElement(m.A,{m:4,className:ne?\"\":\"disable-pointer\",width:ne?\"50%\":\"auto\"},x.length>0&&o().createElement(Z,{calendarCycle:k,calendarDateList:x,onDayPress:B,selectedDates:F,isEventBased:a,tabName:s})),\"approval\"===s&&(u||W)&&(W||!(null!=n&&n.isApproved))&&te&&o().createElement(o().Fragment,null,D?o().createElement(o().Fragment,null,null!=F&&F.length?o().createElement(m.A,{width:\"50%\",p:2,display:\"grid\",alignContent:\"center\"},o().createElement(f.A,{variant:\"h3\",fontSize:18,textAlign:\"center\",p:1,color:S.T.textColor},(0,C.t)(\"EDIT_ATTENDANCE\")),o().createElement(m.A,{width:\"404px\",margin:\"auto\"},o().createElement(_.l1,{initialValues:U,validationSchema:function(){return function(e,t){return M.Ik().shape({reasons:t&&\"PRESENT\"===e?M.Ik().notRequired():M.Ik().required(\"ABSENT\"===e?\"Please select an Leave Type\":\"Please select an Activity / Event\"),comments:t&&\"ABSENT\"===e?M.Ik().notRequired():M.Ik().required(\"Please select a Comment\")})}(Y,W)},onSubmit:G},function(e){var t,n=e.values,r=e.setFieldValue,a=e.resetForm;return o().createElement(_.lV,null,o().createElement(m.A,{mb:2},o().createElement(f.A,{variant:\"h3\",color:S.T.textColor},\"Change to\"),o().createElement(p.A,{direction:\"row\",gap:2},o().createElement(P.A,{checked:\"PRESENT\"===Y,label:(0,C.t)(\"PRESENT\"),name:\"present\",onChange:function(){z(\"PRESENT\"),a()},value:\"Yes\"}),o().createElement(P.A,{checked:\"ABSENT\"===Y,label:(0,C.t)(\"LEAVE\"),name:\"No\",onChange:function(){z(\"ABSENT\"),a()},value:\"No\"})),W&&\"ABSENT\"===Y&&o().createElement(f.A,{variant:\"subtitle2\",fontWeight:600,sx:{color:\"\".concat(S.T.dangerRed,\" !important\")}},(0,C.t)(\"LEAVE_DISCLAIMER_MESSAGE\"))),!(W&&\"PRESENT\"===Y)&&o().createElement(m.A,{mb:2},o().createElement(f.A,{variant:\"subtitle2\",color:S.T.textColor},\"ABSENT\"===Y?(0,C.t)(\"SELECT_LEAVE\"):(0,C.t)(\"SELECT_ACTIVITY\")),o().createElement(_.D0,{name:\"reasons\"},function(){return o().createElement(L.A,{name:\"reasons\",onChange:function(e,t){r(\"reasons\",t)},options:V(\"PRESENT\"===Y?\"PRESENT\":\"LEAVE\"),labelKey:\"label\",label:\"reasons\",selectedOption:n.reasons,value:n.reasons,defaultLabel:\"Select\"})}),o().createElement(v.A,{error:!0},o().createElement(_.Kw,{name:\"reasons\"}))),!(W&&\"ABSENT\"===Y)&&o().createElement(m.A,{mb:2},o().createElement(f.A,{variant:\"subtitle2\",color:S.T.textColor},(0,C.t)(\"COMMENTS\")),o().createElement(_.D0,{name:\"comments\"},function(){return o().createElement(L.A,{value:null==n?void 0:n.comments,options:q(\"PRESENT\"===Y?\"PRESENT\":\"LEAVE\"),name:\"comments\",onChange:function(e,t){r(\"comments\",t)},labelKey:\"label\",label:\"comments\",defaultLabel:\"Select\"})}),o().createElement(v.A,{error:!0},o().createElement(_.Kw,{name:\"comments\"}))),o().createElement(p.A,{direction:\"row\",gap:2,justifyContent:\"space-between\",className:\"form-btns\"},o().createElement(O.A,{variant:\"outlined\",buttonName:null!==(t=(0,C.t)(\"CANCEL\"))&&void 0!==t?t:\"\",type:\"reset\",fullwidth:!1,color:\"secondary\",onButtonClick:function(){j(!1),null==H||H()}}),o().createElement(O.A,{variant:\"contained\",buttonName:(0,C.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))}))):o().createElement(m.A,{width:\"50%\",p:2,display:\"grid\",alignContent:\"center\"},o().createElement(f.A,{textAlign:\"center\",color:S.w.palette.grey[400]},o().createElement(p.A,{justifyContent:\"center\",alignItems:\"center\"},o().createElement(E.A,{sx:{color:{}}}),(0,C.t)(\"SELECT_DATE_TO_EDIT\"))))):o().createElement(p.A,{justifyContent:\"end\",width:\"100%\",direction:\"row\",p:2,alignItems:\"flex-start\"},o().createElement(O.A,{variant:\"contained\",buttonName:(0,C.t)(\"EDIT_ATTENDANCE\"),fullwidth:!1,color:\"primary\",onButtonClick:function(){return j(!0)},type:\"submit\",disabled:!W&&(null==n?void 0:n.isFinalApproved)})))):o().createElement(p.A,{alignItems:\"center\",justifyContent:\"center\",marginTop:25,marginBottom:25},o().createElement(f.A,{variant:\"h6\"},w.JS.NO_DATA_FOUND))),\"approval\"===s&&(K||(0,w.EB)(J))&&Q&&X.length>0&&o().createElement(g.A,{elevation:0,sx:{mt:2,overflow:\"hidden\",\"& .ag-row\":{boxSizing:\"border-box\",border:\"none !important\",backgroundColor:\"transparent !important\",boxShadow:\"inset 0 -1px 0 #cfd3db\"},\"& .ag-row-last\":{boxShadow:\"none\"}}},o().createElement(f.A,{component:\"h2\",sx:{fontSize:20,fontWeight:600,px:1.75,minHeight:52,display:\"flex\",alignItems:\"center\"}},\"History\"),o().createElement(ee.A,{rows:null==X?void 0:X.map(function(e){return re(re({},e),{},{changeTo:\"Absent\"===(null==e?void 0:e.changeTo)?\"Leave\":null==e?void 0:e.changeTo})}),columnDefs:ae,isPaginationHidden:!0})))};function le(e){return le=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},le(e)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=le(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=le(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==le(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function pe(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return fe(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(fe(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,fe(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,fe(d,\"constructor\",u),fe(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",fe(u,o,\"GeneratorFunction\"),fe(d),fe(d,o,\"Generator\"),fe(d,r,function(){return this}),fe(d,\"toString\",function(){return\"[object Generator]\"}),(pe=function(){return{w:a,m:p}})()}function fe(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}fe=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){fe(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},fe(e,t,n,r)}function ge(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function me(e,t){if(e){if(\"string\"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ae=function(){var e,t=(0,a.Bd)().t,n=(0,i.g)().id,p=(0,i.zy)(),f=new URLSearchParams(p.search),g=null==f?void 0:f.get(\"tabName\"),h=null==f?void 0:f.get(\"leastMarkerId\"),m=null==f?void 0:f.get(\"parentUUID\"),v=null==f?void 0:f.get(\"hq_id\"),A=null==f?void 0:f.get(\"selectedMonthIndex\"),y=n,E=t(\"approval\"===g?\"APPROVALS\":\"ATTENDANCE\"),b=(0,r.useContext)(l.v),_=b.BackOfficeProps,C=_.globalStore.User,S=_.baseurl,T=b.triggerShowLoader,O=b.triggerToastMsg,D=he((0,r.useState)({weekOffList:[],attendanceList:{}}),2),R=D[0],N=D[1],L=he((0,r.useState)([]),2),P=L[0],M=L[1],x=he((0,r.useState)(!1),2),I=x[0],k=x[1],B=he((0,r.useState)(\"PRESENT\"),2),F=B[0],j=B[1],U=he((0,r.useState)([]),2),Y=U[0],G=U[1],z=he((0,r.useState)([]),2),V=z[0],q=z[1],W=he((0,r.useState)([]),2),Q=W[0],K=W[1],$=he((0,r.useState)(!1),2),X=$[0],J=$[1],Z=he((0,r.useState)(!1),2),ee=Z[0],te=Z[1],ne=he((0,r.useState)(!1),2),re=ne[0],oe=ne[1],ae=he((0,r.useState)(!1),2),le=ae[0],se=ae[1],ce=he((0,r.useState)({}),2),fe=ce[0],me=ce[1],ve=he((0,r.useState)([]),2),Ae=ve[0],ye=ve[1],Ee=he((0,r.useState)(!1),2),be=Ee[0],_e=Ee[1],Ce=he((0,r.useState)([]),2),we=Ce[0],Se=Ce[1],Te=he((0,r.useState)(0),2),Oe=Te[0],De=Te[1],Re=null!==(e=we[Oe])&&void 0!==e?e:(0,u.iy)(),Ne=(0,u.t2)(null==Re?void 0:Re.paycycleStartDate,null==Re?void 0:Re.paycycleEndDate),Le={startDate:(0,u.$3)(null==Re?void 0:Re.paycycleStartDate),endDate:(0,u.$3)(null==Re?void 0:Re.paycycleEndDate)},Pe=function(){var e,t=(e=pe().m(function e(){var t,n,r,o,a,i;return pe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,d.sN)({baseurl:S,User:C,triggerShowLoader:T,triggerToastMsg:O,markerUUID:y,markerID:null!==(t=null==C||null===(n=C.selectedBusinessUnit)||void 0===n||null===(n=n.userRoleControls)||void 0===n?void 0:n.roleId)&&void 0!==t?t:h,calendarCycle:Le,tmUUID:null!=y?y:null==C||null===(r=C.UserDetails)||void 0===r?void 0:r.user_id,tmUserID:m,hqId:v});case 1:i=e.v,N({weekOffList:null==i||null===(o=i.weekOff)||void 0===o?void 0:o.weekOffDates,holidaysList:null==i||null===(a=i.weekOff)||void 0===a?void 0:a.holidayDates,attendanceList:{present:i.present,absent:i.absent,not_marked:i.not_marked}});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ge(a,r,o,i,l,\"next\",e)}function l(e){ge(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}(),Me=function(e,n,r){var o={approversAttendanceList:[{userId:y,attendanceList:e}]};(0,d.bQ)(C,S,T,o,h).then(function(e){var o;(0,u.mN)(e)?(n(),ye([]),xe(),Pe(),\"update\"===r&&Ie(),O({message:t(\"approve\"===r?\"APPROVED_SUCCESSFULLY\":\"MDO_ATTENDANCE_UPDATED_SUCCESSFULLY\"),type:\"success\"})):O({message:null==e||null===(o=e.data)||void 0===o?void 0:o.errorMessage,type:\"error\"})}).catch(function(e){})},xe=function(){var e,t={fromDate:(0,u.$3)(null==Re?void 0:Re.paycycleStartDate),toDate:(0,u.$3)(null==Re?void 0:Re.paycycleEndDate),userUUID:null!=m?m:null==C||null===(e=C.UserDetails)||void 0===e?void 0:e.user_id,isApprover:g===H.q.APPROVAl};(0,c.Bm)(C,S,T,t,{}).then(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.find(function(e){return(null==e?void 0:e.userUUID)===y});me(n)}).catch(function(){})},Ie=function(){\"approval\"===g&&(le||(0,w.EB)(C))&&re&&y&&Le.startDate&&Le.endDate?(0,d.lu)(C,S,y,{startDate:(0,u.pp)(null==Re?void 0:Re.paycycleStartDate),endDate:(0,u.pp)(null==Re?void 0:Re.paycycleEndDate)},T).then(function(e){var t,n,r,o,a=Array.isArray(null==e?void 0:e.data)?e.data:null!==(t=null!==(n=null==e||null===(r=e.data)||void 0===r?void 0:r.logs)&&void 0!==n?n:null==e||null===(o=e.data)||void 0===o?void 0:o.data)&&void 0!==t?t:[];K(a.map(function(e){var t,n,r,o,a,i,l,c,d,p,f,g,h,m,v,A,y,E=null!==(t=null!==(n=null==e?void 0:e.attendance_status)&&void 0!==n?n:null==e?void 0:e.attendanceStatus)&&void 0!==t?t:null==e?void 0:e.changeTo,b=null==E?void 0:E.toUpperCase(),_=E?(0,u.Zr)(E.toLowerCase().replace(/[_-]+/g,\" \")):\"\";return{editedDate:(null!==(r=null!==(o=null!==(a=null==e?void 0:e.attendance_date_time)&&void 0!==a?a:null==e?void 0:e.editedDate)&&void 0!==o?o:null==e?void 0:e.attendanceDate)&&void 0!==r?r:null==e?void 0:e.attendanceDateTime)?(0,s.Yq)(null!==(i=null!==(l=null!==(c=null==e?void 0:e.attendance_date_time)&&void 0!==c?c:null==e?void 0:e.editedDate)&&void 0!==l?l:null==e?void 0:e.attendanceDate)&&void 0!==i?i:null==e?void 0:e.attendanceDateTime,\"DD-MM-YYYY\"):\"\",changeTo:_,actionTakenBy:null!==(d=null!==(p=null!==(f=null!==(g=null==e?void 0:e.action_taken_user_name)&&void 0!==g?g:null==e?void 0:e.action_taken_by)&&void 0!==f?f:null==e?void 0:e.actionTakenBy)&&void 0!==p?p:null==e?void 0:e.modifiedByName)&&void 0!==d?d:null==e?void 0:e.modifiedBy,comments:\"PRESENT\"===b?null==e?void 0:e.comments:\"ABSENT\"===b?null==e?void 0:e.attendance_reason:null!==(h=null==e?void 0:e.comments)&&void 0!==h?h:null==e?void 0:e.attendance_reason,modifiedDate:(null!==(m=null!==(v=null==e?void 0:e.created_at)&&void 0!==v?v:null==e?void 0:e.modifiedDate)&&void 0!==m?m:null==e?void 0:e.modifiedAt)?(0,s.SK)(null!==(A=null!==(y=null==e?void 0:e.created_at)&&void 0!==y?y:null==e?void 0:e.modifiedDate)&&void 0!==A?A:null==e?void 0:e.modifiedAt,\"DD-MM-YYYY, hh:mm A\"):\"\"}}))}).catch(function(){return K([])}):K([])},ke=function(e,t){var n,r;return[{attendanceEntryId:null==e?void 0:e.attendanceUUID,attendanceReasonId:null==t||null===(n=t.reasons)||void 0===n?void 0:n.value,isDelete:!1,createdBy:null==C||null===(r=C.UserDetails)||void 0===r?void 0:r.user_id,createdAt:(new Date).toISOString(),modifiedBy:null,modifiedAt:null}]},Be=function(e,t,n,r,o){var a,i,l,s,u=ee&&\"ABSENT\"===r?null:null==t||null===(a=t.comments)||void 0===a?void 0:a.label,c=null!==(i=null==e?void 0:e.reasons)&&void 0!==i?i:[],d=(0,H.F)(n,e,u,r,ee),p=ee&&\"PRESENT\"===r;if(null!=e&&e.attendanceUUID){var f,g,h,m;o||(e.reasons=p?[]:[].concat(de(Array.isArray(c)&&c.length?c.map(function(e){return ue(ue({},e),{},{isDelete:!0})}):[]),de(ke(e,t))));var v=null!=e&&null!==(f=e.approvals)&&void 0!==f&&f.length?[ue(ue({},null==e||null===(g=e.approvals)||void 0===g?void 0:g[0]),{},{approvalComments:u,attendanceStatus:r,isApproved:!!ee||o,isFinalApproved:!!ee,createdBy:null==n||null===(h=n.UserDetails)||void 0===h?void 0:h.user_id,createdAt:(new Date).toISOString(),approvalTime:(new Date).toISOString()})]:d;return ue(ue({},e),{},{attendanceStatus:ee?r:null==e?void 0:e.attendanceStatus,isOnApprove:o,approvals:o?[ue(ue({},null!=e&&null!==(m=e.approvals)&&void 0!==m&&m.length?null==e?void 0:e.approvals[0]:d[0]),{},{isApproved:o})]:v})}return{userId:null==n||null===(l=n.UserDetails)||void 0===l?void 0:l.user_id,attendanceDateTime:new Date(null==e?void 0:e.selectedDate),attendanceStatus:ee?r:\"NOT_MARKED\",comments:u,createdBy:null==n||null===(s=n.UserDetails)||void 0===s?void 0:s.user_id,createdAt:(new Date).toISOString(),modifiedBy:null,modifiedAt:null,reasons:p?[]:ke(e,t),approvals:d}};return(0,r.useEffect)(function(){var e=(0,d.Ch)(Le,R);M(e)},[R]),(0,r.useEffect)(function(){null!=we&&we.length&&(Pe(),(0,d.oV)(C,S,T,h).then(function(e){var t,n,r,o,a,i=null===(t=JSON.parse(null==e||null===(n=e.data)||void 0===n||null===(n=n.find(function(e){return(null==e?void 0:e.key)===H.q.ATTENDANCE_APPROVER_CONFIGURATION}))||void 0===n?void 0:n.value))||void 0===t?void 0:t.find(function(e){var t;return(null==e?void 0:e.approver_id)===(null==C||null===(t=C.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId)});se(Boolean(i));var l=null==e||null===(r=e.data)||void 0===r||null===(r=r.find(function(e){return(null==e?void 0:e.key)===H.q.ATTENDANCE_TYPE}))||void 0===r?void 0:r.value;k(l===H.q.EVENT_BASED_ATTENDANCE),g===H.q.APPROVAl&&function(e){var t=new Date;te(!1);var n=new Date(t.getFullYear(),t.getMonth(),null==e?void 0:e.start_date),r=new Date(n.getTime()+24*(null==e?void 0:e.duration)*60*60*1e3);if(\"true\"===(null==e?void 0:e.is_attendance_regularization_required))return te(t>=n&&t<=r),void J(!1);J(t>=n&&t<=r)}(i);var s=null===(o=JSON.parse(null==e||null===(a=e.data)||void 0===a||null===(a=a.find(function(e){return(null==e?void 0:e.key)===H.q.ATTENDANCE_APPROVER_CONFIGURATION}))||void 0===a?void 0:a.value))||void 0===o?void 0:o.find(function(e){return\"true\"===(null==e?void 0:e.is_attendance_regularization_required)});(0,w.EB)(C)?oe(Boolean(s)):oe(\"true\"===(null==i?void 0:i.is_attendance_regularization_required))}).catch(function(){}),xe())},[we,Oe]),(0,r.useEffect)(function(){Ie()},[g,le,ee,re,Oe,we,y]),(0,r.useEffect)(function(){(0,d.Tl)(C,S,T).then(function(e){q(null==e?void 0:e.data)}),(0,d.OE)(C,S,T).then(function(e){var t;G(null==e||null===(t=e.data)||void 0===t?void 0:t.attendanceReasons)})},[]),(0,r.useEffect)(function(){\"approval\"===g?(0,c.Dz)(C,S,T).then(function(e){Se(null==e?void 0:e.data)}):h&&(0,c.Gf)(C,S,h,T).then(function(e){var t,n;t=e.data[0].value,n=Array.from({length:t},function(e,t){return{paycycleStartDate:(0,s.aF)(t,\"start\"),paycycleEndDate:(0,s.aF)(t,\"end\")}}),Se(n)}).catch(function(){})},[h]),(0,r.useEffect)(function(){De(A)},[we]),o().createElement(ie,{tabNameHeading:E,mdoData:fe,isEventBased:I,onApprove:function(){var e,t=null==P||null===(e=P.filter(function(e){var t;return null==e||null===(t=e.details)||void 0===t?void 0:t.attendanceUUID}))||void 0===e?void 0:e.map(function(e){var t=null==e?void 0:e.details;return Be(t,{},C,null==t?void 0:t.attendanceStatus,!0)});Me(t,function(){},\"approve\")},tabName:g,activeApproverButton:X,isRegularizationRequired:ee,isAttendanceRegulerizationEnabled:re,hasApproverAttendanceConfiguration:le,onChangeCycle:function(e){var t=Oe;-1===e?(t=Number(t)+1,De(t)):(t=Number(t)-1,De(t)),ye([])},selectedPayCycleIndex:Oe,payCycles:we,isEdit:be,payCycle:Ne,calendarDateList:P,calendarCycle:Le,dateHandler:function(e){ye(e)},selectedDates:Ae,setIsEdit:_e,clearSelectedDates:function(){return ye([])},initialForm:{reasons:\"\",comments:\"\"},selectedApproveStatus:F,onSubmit:function(e,t){var n,r=t.resetForm,o=null==Ae?void 0:Ae.map(function(e){var t=null==P?void 0:P.find(function(t){return(0,u.pp)(null==t?void 0:t.date)===(0,u.pp)(e)});if(null!=t&&t.date)return ue(ue({},null==t?void 0:t.details),{},{selectedDate:null==t?void 0:t.date})}),a=null==o?void 0:o.map(function(t){return Be(t,e,C,F,!1)});null===(n=a[0])||void 0===n||delete n.selectedDate,Me(a,r,\"update\")},setSelectedApproveStatus:j,getReasons:function(e){var t;return(null==Y||null===(t=Y.filter)||void 0===t||null===(t=t.call(Y,function(t){return(null==t?void 0:t.reasonType)===e&&(null==t?void 0:t.isActive)&&!(null!=t&&t.isCompoff)}))||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.reasonName,value:null==e?void 0:e.id}}))||[]},getComments:function(e){var t;return(null==V||null===(t=V.filter)||void 0===t||null===(t=t.call(V,function(t){return(null==t?void 0:t.reasonType)===e}))||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.commentContent,value:null==e?void 0:e.id}}))||[]},attendanceHistory:Q})}},51420:(e,t,n)=>{var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},51440:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>_}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(9868),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(81970),o=n.n(r),a=n(99478),i=n(47225),l=n(44417),s=n(77284),u=n(35633),c=(n(28706),n(48598),n(25440),n(8085)),d=n(13075),p=n(35184),f=n(32027),g=n(49885),h=n(78208);function m(e){return m=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=m(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==m(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(e){var t=e.isBGPUploadEnabled,n=void 0===t||t,m=(0,r.useContext)(i.v),v=m.BackOfficeProps,y=v.globalStore.User,b=v.baseurl,_=m.triggerShowLoader,C=m.triggerToastMsg,w=(0,f.i)(y),S=w.hasPortfolioEnable,T=w.hasPortfolioCode,O=w.hasShowPortfolio,D=new URLSearchParams(location.search),R=D.get(\"id\"),N=D.get(\"userId\"),L=D.get(\"roleId\"),P=D.get(\"portfolioCode\"),M=E((0,r.useState)({pageNo:0,pageSize:10}),2),x=M[0],I=M[1],k=E((0,r.useState)([]),2),B=k[0],F=k[1],j=E((0,r.useState)(0),2),H=j[0],U=j[1],Y=E((0,r.useState)(!1),2),G=Y[0],z=Y[1],V=E((0,r.useState)({}),2),q=V[0],W=V[1],Q=E((0,r.useState)({}),2),K=Q[0],$=Q[1],X=E((0,r.useState)([]),2),J=X[0],Z=X[1],ee=E((0,r.useState)([]),2),te=ee[0],ne=ee[1],re=E((0,r.useState)(),2),oe=re[0],ae=re[1],ie=E((0,r.useState)([]),2),le=ie[0],se=ie[1],ue=E((0,r.useState)([]),2),ce=ue[0],de=ue[1];return(0,r.useEffect)(function(){var e;e={parent_hq_id:R,userId:N},Promise.all([(0,s.Qn)(y,b,_,e),(0,s.DE)(y,b,_)]).then(function(e){var t,n,r,o,a=E(e,2);r=(t={hqList:a[0],years:a[1]}).years,o={hq:null==(n=t.hqList)?void 0:n.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),years:null==r?void 0:r.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),status:[{label:\"Created\",value:\"CREATED\",checked:!1},{label:\"Dispatched\",value:\"DISPATCHED\",checked:!1}]},W(o)}).catch(function(e){C({message:e.message,type:\"error\"})})},[R,N]),(0,r.useEffect)(function(){var e,t={searchFilters:J,selectedFilters:K,paginationState:x};null!=q&&null!==(e=q.hq)&&void 0!==e&&e.length&&function(e,t,n,r,o,a,i){var l,s,u,p,f,g,h,m,v={},A=c.p.GET_BGP_HQ.replace(\"__ID__\",r),y=(null!=o&&null!==(l=o.selectedFilters)&&void 0!==l&&null!==(l=l.hq)&&void 0!==l&&l.length?o.selectedFilters.hq:a.hq).map(function(e){return\"retailer_hq_id=\".concat(e.value)}).join(\"&\");null!=e&&null!==(s=e.selectedBusinessUnit)&&void 0!==s&&s.portfolio_enable&&(y=\"\".concat(y,\"&portfolio_code=\").concat(null!==(h=null!=i?i:null==e||null===(m=e.selectedBusinessUnit)||void 0===m?void 0:m.portfolio_code)&&void 0!==h?h:\"DEFAULT\"));var E=\"\".concat(A,\"?\").concat(y);return v.payLoad={retailer_hq_name:null==o?void 0:o.searchFilters,page_no:null==o||null===(u=o.paginationState)||void 0===u?void 0:u.pageNo,page_size:null==o||null===(p=o.paginationState)||void 0===p?void 0:p.pageSize},v.domain=t,v.endPoint=E,v.customHeaders={\"country-code\":null==e||null===(f=e.selectedCountry)||void 0===f?void 0:f.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(g=e.UserDetails)||void 0===g?void 0:g.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},v.triggerLoader=n,(0,d.AT)(\"get\",v,!0)}(y,b,_,R,t,q,P).then(function(e){ne(null==e?void 0:e.retailer_hq_datails),U(null==e?void 0:e.total_elements)})},[J,K,q,x]),(0,r.useEffect)(function(){var e,t;oe&&(t={retailer_hq_id:[e=oe],paginated:!1,userId:N,roleId:L},(S&&!O||P)&&(t.portfolio_code=P?[P]:[T]),(0,s.N8)(y,b,_,t).then(function(t){if(null!=t&&t.retailers_list){var n,r,o=null!==(n=null==t||null===(r=t.retailers_list)||void 0===r?void 0:r.map(function(e){return A(A({},e),{},{achievement:(null==e?void 0:e.status)===a.vg.BGP_CREATED?\"\".concat(100*(null==e?void 0:e.actual_value)/(null==e?void 0:e.planned_value),\"%\"):null,achievement_value:Number(null==e?void 0:e.planned_value)&&(null==e?void 0:e.status)===a.vg.BGP_CREATED?\"\".concat((100*Number(null==e?void 0:e.actual_value)/Number(null==e?void 0:e.planned_value)).toFixed(2),\"%\"):\"--\"})}))&&void 0!==n?n:[];F(o),ae(e),z(!1)}}))},[oe]),(0,r.useEffect)(function(){var e;(0,h.C)(y,b,_,{moduleName:\"RETAILERS\",keys:[a.Rk.HQ_WISE_BGP_DETAILS_HEADERS,a.Rk.HQ_WISE_RETAILER_BGP_DETAILS_TABLE_HEADERS],roleId:null==y||null===(e=y.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId}).then(function(e){var t,n,r=null===(t=(0,d.Ws)(a.Rk.HQ_WISE_BGP_DETAILS_HEADERS,e))||void 0===t?void 0:t.value,o=null===(n=(0,d.Ws)(a.Rk.HQ_WISE_RETAILER_BGP_DETAILS_TABLE_HEADERS,e))||void 0===n?void 0:n.value;se((0,d.AQ)(JSON.parse(r))),de((0,d.AQ)(JSON.parse(o)))}).catch(function(){})},[]),o().createElement(p.L,null,o().createElement(l.A,{isBGPUploadEnabled:n,onSearch:function(e){Z(e)},setPaginationState:I,setIsFilterOpen:z,searchBasedOn:\"Search by HQ Name\",selectedFilters:K}),o().createElement(g.A,{retailerHq:null==te?void 0:te.map(function(e){var t,n;return A(A({},e),{},{total_planned_volume:\"\".concat(null!==(t=null==e?void 0:e.total_planned_volume)&&void 0!==t?t:\"0\",\" Kgs\"),total_actual_volume:\"\".concat(null!==(n=null==e?void 0:e.total_actual_volume)&&void 0!==n?n:\"0\",\" Kgs\")})}),isExpand:oe,handleViewDetails:function(e){(null==e?void 0:e.retailer_hq_id)==oe?ae(null):ae(null==e?void 0:e.retailer_hq_id)},listData:null==B?void 0:B.map(function(e){return A(A({},e),{},{achievement_value:null!=e&&e.planned_value?\"\".concat((100*(null==e?void 0:e.actual_value)/(null==e?void 0:e.planned_value)).toFixed(2),\"%\"):null,achievement_volume:null!=e&&e.planned_volume?\"\".concat((0,d.Ee)(100*(null==e?void 0:e.actual_volume)/(null==e?void 0:e.planned_volume)),\"%\"):null})}),paginationState:x,totalElements:H,setPaginationState:I,tableHeaders:le,bgpTableHeaders:ce}),G&&o().createElement(u.A,{onRequestClose:function(){return z(!1)},isFilterOpen:G,onFilterSubmit:function(e){$(e),I(function(e){return A(A({},e),{},{pageNo:0,pageSize:10})}),z(!1)},onClearFilters:function(){$({}),z(!1)},filtersOptions:q,selectedFilters:K}))}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51481:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(36043);r({target:\"Promise\",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},51545:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(79071),o=n(67413);const a=(0,n(38413).A)(\"MuiBox\",[\"root\"]),i=(0,o.A)({defaultClassName:a.root,generateClassName:r.A.generate})},51629:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(90235);r({target:\"Array\",proto:!0,forced:[].forEach!==o},{forEach:o})},51848:(e,t,n)=>{\"use strict\";e.exports=n.p+\"070893ece28cd10fd8b3.svg\"},51855:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>re}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(26910),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(81970),a=n.n(o),i=n(34195),l=n(96790),s=n(8085),u=n(34358),c=n(99478),d=n(27305),p=n(47225),f=n(56254),g=n(28462),h=(n(42762),n(15941)),m=n(58969),v=function(){return h.Ik().shape({geoHierarchy:h.Yj().required(\"Geo Hierarchy is required\"),code:h.Yj().min(2,m.N.GEO_CODE_MIN_LENGTH).max(20,m.N.CODE_MAX_LENTGH).required(\"Geo Data Code required\"),name:h.Yj().min(2,m.N.NAME_MIN_LENGTH).max(50,m.N.NAME_MAX_LENTGH).trim(\"Starting spaces are not allowed\").matches(/^[A-Za-z ]*$/,\"Please enter valid Geo Data Name\").required(\"Geo Data Name required\"),parent:h.Yj().nullable().test(\"parent-required\",\"Parent required\",function(e){return\"Country\"===this.parent.geoHierarchy||null!=e&&\"\"!==e.trim()})})},A=n(90815),y=n(14073),E=n(6347),b=n(88084),_=n(64121),C=/^[A-Za-z]+$/;const w=function(e){var t=e.formikProps,n=e.isEditingMode,o=e.initialForm,l=e.geoHierarchyData,s=e.geoDataHierarchyParent,u=e.selectedLevel,c=e.setSelectedLevel,d=e.setSelectedParent,p=e.geoHierarchyParent,f=t.values,g=t.setFieldValue,h=(0,i.Bd)().t;return a().createElement(a().Fragment,null,a().createElement(A.A,{mb:2,direction:\"row\",gap:2},a().createElement(r.A,{width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},h(\"GEO_HIERARCHY_LABEL\")),a().createElement(b.D0,{name:\"geoHierarchy\"},function(){return a().createElement(_.A,{name:\"geoHierarchy\",onChange:function(e,t){c(t),g(\"geoHierarchy\",t.label),g(\"parent\",\"\"),p(t)},options:l,labelKey:\"label\",label:\"geoHierarchy\",selectedOption:f.geoHierarchy,value:f.geoHierarchy,defaultLabel:h(\"SELECT_GEO_HIERARCHY\"),isDisabled:n})}),a().createElement(E.A,{error:!0},a().createElement(b.Kw,{name:\"geoHierarchy\"}))),a().createElement(r.A,{width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},h(\"CODE\")),a().createElement(b.D0,{name:\"code\",type:\"text\",className:n?\"disabledInput inputField\":\"inputField\",onChange:function(e){(\"\"===e.target.value||C.test(e.target.value))&&g(\"code\",e.target.value)},placeholder:h(\"ENTER_CODE\"),defaultValue:null==f?void 0:f.code,disabled:n}),a().createElement(E.A,{error:!0},a().createElement(b.Kw,{name:\"code\"})))),a().createElement(A.A,{mb:2,direction:\"row\",gap:2},a().createElement(r.A,{width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},h(\"GEO_NAME\")),a().createElement(b.D0,{name:\"name\",type:\"text\",className:null===(null==o?void 0:o.parent)?\"disabledInput inputField\":\"inputField\",onChange:function(e){return g(\"name\",e.target.value)},placeholder:h(\"ENTER_NAME\"),disabled:null===(null==o?void 0:o.parent),defaultValue:null==f?void 0:f.name}),a().createElement(E.A,{error:!0},a().createElement(b.Kw,{name:\"name\"}))),a().createElement(r.A,{width:\"100%\"},a().createElement(y.A,{variant:\"subtitle2\"},h(\"GEO_PARENT\")),a().createElement(b.D0,{name:\"parent\"},function(){return a().createElement(_.A,{name:\"parent\",onChange:function(e,t){d(t),g(\"parent\",t.label)},options:s,labelKey:\"label\",label:\"parent\",selectedOption:f.parent,value:f.parent,defaultLabel:h(\"SELECT_PARENT\"),isDisabled:n||1==(null==u?void 0:u.id),isSortReq:!0})}),a().createElement(E.A,{error:!0},a().createElement(b.Kw,{name:\"parent\"})))))};var S=n(49833),T=(n(3362),n(95692)),O=function(e){return new Promise(function(t,n){var r;null===(r=T.N.get(e))||void 0===r||r.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e.message))})})},D=n(13075);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,l=void 0===r?function(){}:r,u=e.isEditingMode,c=void 0!==u&&u,d=e.SelectedRowItem,f=void 0===d?{}:d,h=R((0,o.useState)({geoHierarchy:\"\",code:\"\",name:\"\",parent:\"\"}),2),m=h[0],A=h[1],y=R((0,o.useState)({id:\"\",label:\"\",value:\"\",level_sequence:\"\"}),2),E=y[0],b=y[1],_=R((0,o.useState)({id:\"\",label:\"\",value:\"\"}),2),C=_[0],O=_[1],N=R((0,o.useState)([]),2),L=N[0],P=N[1],M=R((0,o.useState)([]),2),x=M[0],I=function(e){var t,n,r=e.setGeoDataHierarchyParent,a=e.setGeoHierarchyData,i=e.SelectedRowItem,l=e.onRequestClose,u=e.selectedParent,c=e.selectedLevel,d=(0,o.useContext)(p.v),f=d.BackOfficeProps.baseurl,g=d.BackOfficeProps.globalStore.User.AccessToken,h=d.triggerToastMsg,m=d.triggerShowLoader,v=null===(t=d.BackOfficeProps.globalStore.User.UserDetails)||void 0===t?void 0:t.user_id,A=null===(n=d.BackOfficeProps.globalStore.User.selectedCountry)||void 0===n?void 0:n.countryCode;return{geoHierarchyParent:function(e){var t,n=s.p.GEO_PARENT_DATA.replace(\"__geoHierarchyId__\",\"\".concat(null==e?void 0:e.id)),o={};o.domain=f,o.endPoint=n,o.customHeaders={\"country-code\":A,Authorization:\"Bearer \".concat(g)},o.triggerLoader=m,(t=o,new Promise(function(e,n){var r;null===(r=T.N.get(t))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return n(new Error(e.message))})})).then(function(e){var t;if(201!==e.status&&200!==e.status)throw h({message:null==e||null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage);var n,o=null===(n=e.data.geo_data_parent_details_list)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.parent_id,label:null==e?void 0:e.parent_name,value:null==e?void 0:e.parent_id}});r(o)}).catch(function(e){console.log(\"getParent\",e)})},fetchGeoHierarchyData:function(){var e,t={};t.domain=f,t.endPoint=s.p.GET_GEOHIERARCHY_LIST,t.payLoad={search_key:\"\"},t.customHeaders={\"country-code\":A,\"user-id\":v,Authorization:\"Bearer \".concat(g)},t.triggerLoader=m,null===(e=(0,S.no)(t))||void 0===e||e.then(function(e){var t;if(!((null==e||null===(t=e.geo_hierarchy_view_List)||void 0===t?void 0:t.length)>0))throw new Error(e.errorMessage);var n,r=null==e||null===(n=e.geo_hierarchy_view_List)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.parent_id,level_sequence:null==e?void 0:e.level_sequence}});a(r)}).catch(function(){})},onHandleUpdate:function(e){var t,n,r=s.p.UPDATE_GEO_DATA.replace(\"__ID__\",\"\".concat(null==i?void 0:i.id)),o={};o.endPoint=r,o.domain=f,o.customHeaders={\"country-code\":A,\"user-id\":v,Authorization:\"Bearer \".concat(g)},o.triggerLoader=m,o.payLoad={name:e.name.trim(),code:i.code.trim(),parent_id:i.parent_id||null,geo_hierarchy_id:i.geo_hierarchy_id,geo_hierarchy_level_sequence:i.geo_hierarchy_id},null===(n=o,t=new Promise(function(e,t){var r;null===(r=T.N.put(n))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})}))||void 0===t||t.then(function(e){var t,n;if(200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status))return h({message:e.data,type:\"success\"}),void l(!0);throw h({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(){})},onHandleSubmit:function(e){var t,n,r={};r.domain=f,r.endPoint=s.p.SAVE_GEO_DATA,r.customHeaders={\"country-code\":A,\"user-id\":v,Authorization:\"Bearer \".concat(g)},r.triggerLoader=m,r.payLoad={name:null==e?void 0:e.name.trim(),code:null==e?void 0:e.code.trim(),parent_id:(null==u?void 0:u.id)||null,geo_hierarchy_id:null==c?void 0:c.id,geo_hierarchy_level_sequence:null==c?void 0:c.level_sequence},null===(n=r,t=new Promise(function(e,t){var r;null===(r=T.N.post(n))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===t||t.then(function(e){var t,n;if(200===(null==e?void 0:e.status)||201===(null==e?void 0:e.status))return h({message:e.data,type:\"success\"}),void l(!0);throw h({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(){})}}}({setGeoDataHierarchyParent:P,setGeoHierarchyData:M[1],SelectedRowItem:f,onRequestClose:l,selectedParent:C,selectedLevel:E}),k=I.geoHierarchyParent,B=I.fetchGeoHierarchyData,F=I.onHandleUpdate,j=I.onHandleSubmit,H=(0,i.Bd)().t;return(0,o.useEffect)(function(){c&&A({geoHierarchy:null==f?void 0:f.geo_hierarchy_name,code:null==f?void 0:f.code,name:null==f?void 0:f.name,parent:null!=f&&f.parent_name?null==f?void 0:f.parent_name:\"N/A\"})},[f,c]),(0,o.useEffect)(function(){B()},[]),a().createElement(g.A,{isDrawerOpen:n,onRequestClose:l,id:\"add-geo-data-drawer\",title:null===(null==m?void 0:m.parent)?H(\"GEODATA_DETAILS\"):H(c?\"EDIT_GEO_DATA\":\"ADD_GEO_DATA\"),initialValues:m,validationSchema:v,onSubmit:function(e){return(0,D.f5)(e,c,j,F)},fields:function(e){return a().createElement(w,{formikProps:e,isEditingMode:c,initialForm:m,geoHierarchyData:x,geoDataHierarchyParent:L,selectedLevel:E,setSelectedLevel:b,setSelectedParent:O,geoHierarchyParent:k})},isSubmitDisabled:null===(null==m?void 0:m.parent),submitLabel:\"\".concat(H(c?\"UPDATE\":\"SAVE\")),cancelLabel:\"\".concat(H(\"CANCEL\"))})};var P=n(8676),M=n(51545),x=n(17630),I=(0,P.A)(M.A)(function(){return{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .smart-agro-lite-geoSelect\":{},\"& .smart-agro-lite-cst-input\":{border:\"1px solid \".concat(x.w.palette.grey[300]),height:x.w.spacing(5),borderRadius:x.w.shape.borderRadius,display:\"flex\",alignItems:\"center\",\"& .MuiDivider-root\":{height:x.w.spacing(4)},\"& .MuiInputBase-root\":{padding:x.w.spacing(1.5)}},\"& .smart-agro-lite-browse\":{\"& .browse-file\":{\"& .MuiButtonBase-root,\":{backgroundColor:\"transparent !important\",color:x.w.palette.primary.main},\"& .file-custom-label\":{width:\"133px\",left:\"90px\"},\"& .remove-file\":{right:\"10px\"}}},\"& .custom-button\":{border:\"none\",backgroundColor:\"transparent\",color:\"inherit\",padding:0,cursor:\"pointer\"}}}),k=n(98752),B=n(60538),F=n(37998),j=n(96348),H=n(43605),U=n(92416),Y=n(15664),G=n(27386),z=n(21239),V=n(59615);function q(e){return q=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},q(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=q(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==q(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $=function(e){var t=e.setState,n=e.onUploadSuccess,o=e.selectedFile,l=e.setSelectedFile,s=e.fileError,u=e.onHandleSubmit,c=e.hasCreateAccess,d=e.downloadGeoDataTemplate,p=e.setSortId,f=e.sortId,g=e.setIsDrawerOpen,h=e.geoDataList,m=e.EditActionComponent,v=(0,i.Bd)().t;return a().createElement(a().Fragment,null,a().createElement(A.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.8},a().createElement(r.A,null,a().createElement(U.A,{routePathName:[{name:j.F_.Masters,path:j.fp.Masters},{name:j.F_.GeoData,path:j.fp.GeoData}]})),a().createElement(r.A,null,a().createElement(z.A,{onSearchValueChange:function(e){t(function(t){return Q(Q({},t),{},{searchValue:e,pageNo:0})})},placeholderText:v(\"SEARCH\"),searchValue:\"\",searchBasedOn:\"\".concat(v(\"GEO_DATA_SEARCH\"))}))),a().createElement(A.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.8,gap:2},a().createElement(A.A,{direction:\"row\",gap:2,alignItems:\"center\"},a().createElement(r.A,{className:\"smart-agro-lite-browse\",position:\"relative\"},a().createElement(G.A,{onUploadSuccess:function(e){n(e)},customClassName:\"browse-file\",buttonType:\"text\",selectedFile:o,buttonLabel:\"Browse\",onRemoveHandler:function(){return l(null)}}),s&&a().createElement(y.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5,position:\"absolute\"},s)),a().createElement(A.A,{direction:\"row\",gap:2},a().createElement(Y.A,{variant:\"contained\",buttonName:v(\"UPLOAD\"),onButtonClick:u,fullwidth:!1,color:\"primary\",disabled:!c}),a().createElement(Y.A,{variant:\"contained\",buttonName:\"Download\",onButtonClick:d}))),a().createElement(A.A,{direction:\"row\",justifyContent:\"end\",alignItems:\"center\",gap:2},a().createElement(V.A,{onSort:function(e){return p(null==e?void 0:e.toString())},showLastUpdatedOn:!0,sortBy:f}),a().createElement(Y.A,{buttonName:v(\"ADD_NEW_BUTTON\"),variant:\"contained\",onButtonClick:function(){return g(!0)},fullwidth:!1,color:\"primary\",disabled:!c}))),a().createElement(B.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},a().createElement(H.A,{columnDefs:F.uZ,rows:h,frameworkComponents:{EditActionComponent:m}})))};function X(e){return X=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},X(e)}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=X(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=X(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==X(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const re=function(e){var t,n=e.RBACControls,g=(0,d.w)(n),h=g.hasCreateAccess,m=g.hasUpdateAccess;console.log(\"hasUpdateAccess>\",m);var v=(0,o.useContext)(p.v),A=v.BackOfficeProps.baseurl,y=v.BackOfficeProps.globalStore.User.AccessToken,E=null===(t=v.BackOfficeProps.globalStore.User.selectedCountry)||void 0===t?void 0:t.countryCode,b=te((0,o.useState)(!1),2),_=b[0],C=b[1],w=te((0,o.useState)(!1),2),S=w[0],T=w[1],D=te((0,o.useState)({}),2),R=D[0],N=D[1],P=te((0,o.useState)(1),2),M=P[0],x=P[1],B=te((0,o.useState)(0),2),F=B[0],j=B[1],H=te((0,o.useState)([]),2),U=H[0],Y=H[1],G=te((0,o.useState)({searchValue:\"\",pageNo:0,pageSize:10}),2),z=G[0],V=G[1],q=z.searchValue,W=z.pageNo,Q=z.pageSize,K=te(a().useState(c.M5),2),X=K[0],J=K[1],ee=(0,i.Bd)().t,ne=te((0,o.useState)(null),2),re=ne[0],oe=ne[1],ae=te((0,o.useState)(!1),2),ie=ae[0],le=ae[1],se=function(e){var t,n=s.p.GET_GEO_DATA_LIST_BY_ID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.id)),r={};r.endPoint=n,r.domain=A,r.customHeaders={\"country-code\":E,Authorization:\"Bearer \".concat(y)},r.triggerLoader=v.triggerShowLoader,null===(t=O(r))||void 0===t||t.then(function(e){e&&(C(!0),T(!0),N(e))}).catch(function(e){console.log(\"ERR on GetSalesHier \".concat(e))})},ue=function(){var e,t=function(){var e={};return e.domain=A,e.endPoint=s.p.GEO_DATA_LIST,e.customHeaders={\"country-code\":E,Authorization:\"Bearer \".concat(y)},e.payLoad={page_no:W,page_size:Q},q&&(e.payLoad.search_key=q.toLocaleLowerCase()),X&&(e.payLoad.sort=\"1\"===X?\"asc\":\"desc\"),e.triggerLoader=v.triggerShowLoader,e}();return null===(e=O(t))||void 0===e?void 0:e.then(function(e){var t=1;if((null==e?void 0:e.total_elements)>Q&&(t=Math.ceil((null==e?void 0:e.total_elements)/Q)),x(t),j(null==e?void 0:e.total_elements),(null==e?void 0:e.geo_data_view_List.length)>0){var n=null==e?void 0:e.geo_data_view_List.map(function(e,t){return{id:e.id,name:e.name,geohierarchyname:e.geo_hierarchy_name,parentName:e.parent_name}});Y(n)}else Y([])}).catch(function(e){console.log(\"FETCHSales\",e)})};return(0,o.useEffect)(function(){ue()},[q,X,W,Q]),a().createElement(I,null,a().createElement(r.A,null,a().createElement($,{setState:V,onUploadSuccess:function(e){le(!1);var t=e[0];oe(t)},selectedFile:re,setSelectedFile:oe,fileError:ie,onHandleSubmit:function(){if(re){if((0,k.TC)(re.name))return function(){var e={};e.domain=A,e.endPoint=s.p.GEO_DATA_GET_PRE_SIGNED_URL,e.customHeaders={Authorization:\"Bearer \".concat(y),\"country-code\":E};var t=(0,k.S2)(re);return e.payLoad={file_name:t.name},e.triggerLoader=v.triggerShowLoader,(0,u.uB)(e,l.dF.GET).then(function(e){if((0,u.ge)(e.status))return e.data}).catch(function(e){return console.log(\"PRE SIGNED URL API FAILED\",e)})}().then(function(e){return v.triggerShowLoader(!0),function(e,t){return(0,u.i3)(e,t).then(function(e){v.triggerShowLoader(!1),200===e.status&&\"OK\"===e.statusText?(v.triggerToastMsg({message:c.PB,type:\"success\"}),oe(null),V({searchValue:\"\",pageNo:0,pageSize:10})):v.triggerToastMsg({message:c.or,type:\"error\"})}).catch(function(e){v.triggerShowLoader(!1),v.triggerToastMsg({message:c.or,type:\"error\"})})}(e,(0,k.S2)(re))}).catch(function(e){v.triggerShowLoader(!1),v.triggerToastMsg({message:c.or,type:\"error\"})});le(\"Please upload valid template file\")}else le(\"Please upload downloaded template file\")},hasCreateAccess:h,downloadGeoDataTemplate:function(){var e;return null===(e=v.triggerShowLoader)||void 0===e||e.call(v,!0),(0,u.Ti)({baseUrl:\"\".concat(A).concat(s.p.GEO_DATA_DOWNLOAD_TEMPLATE),options:{headers:{\"Content-Type\":l.LG.octet_stream,Authorization:\"Bearer \".concat(y),\"country-code\":E}}}).then(function(){var e;null===(e=v.triggerShowLoader)||void 0===e||e.call(v,!1)}).catch(function(){var e;null===(e=v.triggerShowLoader)||void 0===e||e.call(v,!1)})},setSortId:J,sortId:X,setIsDrawerOpen:C,geoDataList:U,EditActionComponent:function(e){var t=e.column,n=e.data,r={edit:{label:ee(\"EDIT\"),className:\"smart-agro-lite-green-label\"}};return\"N/A\"===(null==n?void 0:n.parentName)?a().createElement(\"button\",{type:\"button\",id:\"viewItem\",className:\"smart-agro-lite-green-label \".concat(m?\"\":\"disabled-label\",\" custom-button\"),onClick:function(){return m?se(n):null}},\"View\"):a().createElement(\"button\",{type:\"button\",id:\"editItem\",className:\"smart-agro-lite-green-label \".concat(m?\"\":\"disabled-label\",\" custom-button\"),onClick:function(){return m?se(n):null},tabIndex:0},r[t.colId].label)}}),a().createElement(f.A,{totalPageCount:M,totalElements:F,onPageChange:function(e){V(function(t){return Z(Z({},t),{},{pageNo:Number(e)})})}}),_&&a().createElement(L,{isDrawerOpen:_,onRequestClose:function(e){C(!1),e&&ue(),T(!1),N(null)},isEditingMode:S,SelectedRowItem:R})))}},51866:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ec9d8de6132d39aa9c70.eot\"},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},52014:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>te}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(25276),n(89572),n(23288),n(94170),n(62010),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(10287),n(27495),n(38781),n(23500),n(28706),n(50113),n(64346),n(23792),n(62062),n(34782),n(15086),n(2892),n(79432),n(26099),n(3362),n(47764),n(35874),n(62953),n(3296),n(27208),n(48408);var r=n(71083),o=n(56203),a=n(81970),i=n.n(a),l=n(47767),s=n(99478),u=n(96348),c=n(17630),d=n(78208),p=n(47225),f=n(13075),g=n(79043),h=n(10481),m=n(6885),v=(n(60739),n(90815)),A=n(14073),y=n(28161),E=n(3561),b=n(6347),_=n(88084),C=n(15664),w=n(71939),S=n(64422),T=n(63795),O=n(34274),D=n(77576),R=n(43828);function N(e){return N=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},N(e)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=N(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==N(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return I(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(I(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,I(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,I(d,\"constructor\",u),I(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",I(u,o,\"GeneratorFunction\"),I(d),I(d,o,\"Generator\"),I(d,r,function(){return this}),I(d,\"toString\",function(){return\"[object Generator]\"}),(x=function(){return{w:a,m:p}})()}function I(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}I=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){I(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},I(e,t,n,r)}function k(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){k(a,r,o,i,l,\"next\",e)}function l(e){k(a,r,o,i,l,\"throw\",e)}i(void 0)})}}const F=function(e){var t,n=e.initialValues,r=e.isDocumentsError,l=e.onHandleSubmit,u=e.retailersFieldsConfigurations,c=e.retailerDetails,d=e.onCancel,p=e.onEdit,f=e.isEditDetailsMode,g=e.fieldsData,h=e.onDropdownChange,m=e.shopProfile,N=e.preferredDistributorConfiguration,L=e.retailerAddressValidationConfiguration,M=e.onDocumentsChange,I=e.disableFields,k=e.setCommentsData,F=e.commentsData,j=e.isCountryAdmin,H=e.retailerActiveStatus,U=e.setShowDeactivateModal,Y=e.RBACPermissions,G=e.showApprover,z=e.approveRetailersData,V=e.User,q=e.verificationStatus,W=e.isDistributorValidationRequired,Q=null==V||null===(t=V.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.role_code,K=(0,D.h)().showReKYCfeature,$=function(e){var t=e.User,n=e.userRole,r=e.verificationStatus,o=e.reKycStatus,i=e.isEditDetailsMode,l=e.showReKYCfeature,u=(0,a.useMemo)(function(){return l&&r===(null===s._S||void 0===s._S?void 0:s._S.RE_KYC)},[l,r]),c=(0,a.useMemo)(function(){return!(i||u&&(\"TM\"===n?o!==(null===s._S||void 0===s._S?void 0:s._S.AWAITING_REKYC_APPROVAL)&&o!==(null===s._S||void 0===s._S?void 0:s._S.REKYC_APPROVED):\"CA\"!==n||o!==(null===s._S||void 0===s._S?void 0:s._S.REKYC_APPROVED)))},[u,n,o,i]),d=(0,a.useMemo)(function(){return u?\"TM\"===n?i&&o!==(null===s._S||void 0===s._S?void 0:s._S.AWAITING_REKYC_APPROVAL):\"CA\"===n&&i&&o===(null===s._S||void 0===s._S?void 0:s._S.REKYC_APPROVED):i},[u,n,o,i]),p=(0,a.useMemo)(function(){return l&&\"true\"==(null==t?void 0:t.isEnableKYCVerifier)&&u&&\"TM\"===n&&o===(null===s._S||void 0===s._S?void 0:s._S.AWAITING_REKYC_APPROVAL)&&i},[l,u,n,o,i]);return{isReKyc:u,shouldShowEditButton:c,shouldShowCancelSaveButtons:d,shouldShowRejectUpdateButton:p}}({User:V,userRole:Q,verificationStatus:q,reKycStatus:null==c?void 0:c.re_kyc_status,isEditDetailsMode:f,showReKYCfeature:K}),X=$.shouldShowEditButton,J=$.shouldShowCancelSaveButtons,Z=$.shouldShowRejectUpdateButton;return i().createElement(_.l1,{initialValues:n,enableReinitialize:!1,onSubmit:function(e){r||l(e)},validationSchema:function(){return(0,O.D)((0,R.Sj)(u),W)},key:JSON.stringify(n)},function(e){var t,n,r,a,l,u,O,D=e.values,R=e.setFieldValue,V=e.resetForm;return i().createElement(_.lV,{className:\"popupContent\"},i().createElement(v.A,{direction:\"row\",justifyContent:\"space-between\",mt:2,mb:2},i().createElement(A.A,{variant:\"h2\"},\" \",(0,o.t)(\"UPPERCASE_RETAILER_DETAILS\")),i().createElement(v.A,{direction:\"row\",gap:2},function(e){return(null==c?void 0:c.status)===s._S.PENDING_FOR_APPROVAL||(null==c?void 0:c.status)===s._S.APPROVED?J?i().createElement(i().Fragment,null,i().createElement(C.A,{variant:\"outlined\",buttonName:(0,o.t)(\"CANCEL\"),fullwidth:!1,color:\"primary\",type:\"reset\",onButtonClick:B(x().m(function t(){return x().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e();case 1:d();case 2:return t.a(2)}},t)}))}),i().createElement(C.A,{variant:\"contained\",buttonName:(0,o.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})):X?i().createElement(C.A,{variant:\"contained\",buttonName:(0,o.t)(\"EDIT_DETAILS\"),fullwidth:!1,color:\"primary\",type:\"reset\",onButtonClick:p}):null:null}(V))),i().createElement(y.A,{className:f?\"editmode\":\"viewmode\"},g&&(null===(t=Object.keys(g))||void 0===t?void 0:t.map(function(e){return i().createElement(T.A,{key:e,fields:g[e],values:D,onValueChange:R,dropDownKeys:[\"retailer_category_code\",\"retailer_type\"],multiSelectDropdownKeys:[\"retailer_distributors\"],onDropdownChange:h,isEditDetailsMode:f,shopProfile:m,preferredDistributorConfiguration:N,retailerAddressValidationConfiguration:L})})),i().createElement(S.A,{onDocumentsChange:M,disabledFields:I,retailerDocuments:null==c?void 0:c.retailer_documents,getUploadedDocument:function(){}}),i().createElement(y.A,{className:\"user-detail-box\"},i().createElement(A.A,{variant:\"h2\",m:.5},(0,o.t)(\"HISTORY\")),i().createElement(w.A,{history:null!==(n=null==c?void 0:c.retailer_bu_logs)&&void 0!==n?n:[]})),!f&&i().createElement(i().Fragment,null,\" \",i().createElement(y.A,{className:\"comments-sections\"},i().createElement(A.A,{variant:\"h2\",m:.5},(0,o.t)(\"COMMENTS\")),i().createElement(E.A,{minRows:4,cols:4,placeholder:\"\".concat((0,o.t)(\"TYPING_HERE\")),onChange:function(e){return k(function(t){return P(P({},t),{},{comments:e.target.value})})}}),F.status===s._S.REJECTED&&!F.comments&&i().createElement(b.A,{error:!0},(0,o.t)(\"REQ_COMMENTS\"))),i().createElement(v.A,{direction:\"row\",justifyContent:\"space-between\",mt:1},i().createElement(v.A,null,j&&(null==c?void 0:c.status)===s._S.APPROVED&&i().createElement(v.A,null,H?i().createElement(C.A,{buttonName:(0,o.t)(\"DEACTIVATE\"),fullwidth:!1,className:\"deactivate-btn\",variant:\"contained\",onButtonClick:function(){return U(!0)}}):i().createElement(C.A,{buttonName:(0,o.t)(\"ACTIVATE\"),fullwidth:!1,variant:\"contained\",onButtonClick:function(){return U(!0)}}))),!Z&&(null==c?void 0:c.status)===s._S.PENDING_FOR_APPROVAL&&\"true\"===G&&(null==Y||null===(r=Y.RetailerApprover)||void 0===r?void 0:r.read)&&i().createElement(v.A,{direction:\"row\",justifyContent:\"start\",gap:2,alignItems:\"center\"},i().createElement(C.A,{buttonName:(0,o.t)(\"REJECT\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return z(s._S.REJECTED)},disabled:!(null!=Y&&null!==(a=Y.RetailerApprover)&&void 0!==a&&a.create||null!=Y&&null!==(l=Y.RetailerApprover)&&void 0!==l&&l.update)}),i().createElement(C.A,{buttonName:(0,o.t)(\"APPROVE\"),fullwidth:!1,variant:\"contained\",onButtonClick:function(){return z(s._S.APPROVED)},disabled:!(null!=Y&&null!==(u=Y.RetailerApprover)&&void 0!==u&&u.create||null!=Y&&null!==(O=Y.RetailerApprover)&&void 0!==O&&O.update)})))),Z&&i().createElement(v.A,{direction:\"row\",justifyContent:\"end\",gap:2,alignItems:\"center\"},i().createElement(C.A,{buttonName:(0,o.t)(\"REJECT\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return z(s._S.REJECTED)}}),i().createElement(C.A,{buttonName:(0,o.t)(\"UPDATE\"),fullwidth:!1,variant:\"contained\",type:\"submit\"}))))})};var j=n(35165),H=function(e){return e.MODULE_NAME=\"RETAILERS\",e.ENABLE_APPROVER_KEY=\"retailer_enable_kyc_approval\",e.DEFAULT=\"DEFAULT\",e}({}),U=n(37695);function Y(e){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Y(e)}var G=[\"isError\"];function z(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return V(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(V(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,V(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,V(d,\"constructor\",u),V(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",V(u,o,\"GeneratorFunction\"),V(d),V(d,o,\"Generator\"),V(d,r,function(){return this}),V(d,\"toString\",function(){return\"[object Generator]\"}),(z=function(){return{w:a,m:p}})()}function V(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}V=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){V(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},V(e,t,n,r)}function q(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Z(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Q(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Y(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Y(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Z(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Z(e,t){if(e){if(\"string\"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const te=function(e){var t,n,v,A,y,E=e.getRetailerDetails,b=e.RBACPermissions,_=(0,a.useContext)(p.v),C=_.BackOfficeProps,w=C.globalStore.User,S=C.baseurl,T=_.triggerShowLoader,O=_.triggerToastMsg,N=(0,f.rZ)(w,S).isCountryAdmin,L=(0,l.Zp)(),P=(0,l.g)().id,M=J((0,a.useState)(!1),2),x=M[0],I=M[1],k=J((0,a.useState)({}),2),B=k[0],Y=k[1],V=J((0,a.useState)(),2),K=V[0],X=V[1],Z=J((0,a.useState)({}),2),ee=Z[0],te=Z[1],ne=J((0,a.useState)({}),2),re=ne[0],oe=ne[1],ae=J((0,a.useState)({}),2),ie=ae[0],le=ae[1],se=J((0,a.useState)(!1),2),ue=se[0],ce=se[1],de=J((0,a.useState)(!1),2),pe=de[0],fe=de[1],ge=J((0,a.useState)([]),2),he=ge[0],me=ge[1],ve=J((0,a.useState)({status:\"\",comments:\"\"}),2),Ae=ve[0],ye=ve[1],Ee=J((0,a.useState)(\"\"),2),be=Ee[0],_e=Ee[1],Ce=J((0,a.useState)(\"false\"),2),we=Ce[0],Se=Ce[1],Te=J((0,a.useState)({}),2),Oe=Te[0],De=Te[1],Re=J((0,a.useState)({}),2),Ne=Re[0],Le=Re[1],Pe=J((0,a.useState)({}),2),Me=Pe[0],xe=Pe[1],Ie=null==re||null===(t=re.retailer_documents)||void 0===t?void 0:t.some(function(e){return null==e?void 0:e.isError}),ke=(0,l.zy)(),Be=(null!==(n=null==ke||null===(v=ke.state)||void 0===v?void 0:v.retailerItem)&&void 0!==n?n:{}).verificationStatus,Fe=null==w||null===(A=w.selectedBusinessUnit)||void 0===A||null===(A=A.userRoleControls)||void 0===A?void 0:A.role_code,je=(0,D.h)().showReKYCfeature,He=je&&Be===s._S.RE_KYC,Ue=null==re?void 0:re.re_kyc_status,Ye=je&&\"TM\"===Fe&&He&&Ue===s._S.AWAITING_REKYC_APPROVAL,Ge=function(){Promise.allSettled([(0,j.ao)(w,S,T),(0,j.Rd)(w,S,T,P),(0,j.vA)(w,S,T)]).then(function(e){var t,n,r,o,a,i,l,u,c=J(e,3),d=c[0],p=c[1],f=c[2];De(d),o={retailerLabels:d,retailerData:p,retailersCategory:f},a=null==p||null===(t=p.value)||void 0===t?void 0:t.status,i=null==p||null===(n=p.value)||void 0===n?void 0:n.headquarter_id,l={moduleName:s._S.RETAILERS,keys:a===s._S.PENDING_FOR_APPROVAL?s._S.PRE_APPROVAL:s._S.POST_APPROVAL},u={\"hq-id\":i,\"retailer-bu-id\":o.retailerData.value.retailer_bu_id},Promise.allSettled([(0,j.pA)(w,S,T,l),(0,j.Qs)(w,S,T,u)]).then(function(e){var t,n,r,a,i=J(e,2),l=i[0],s=i[1];X(JSON.parse(null!==(t=null==l||null===(n=l.value)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value)&&void 0!==t?t:\"\")),Y((0,R.QO)($($({},o),{},{distributorNames:s}),null!==(r=null==l||null===(a=l.value)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.value)&&void 0!==r?r:\"\",te)),me(s.value)}),E(null==p?void 0:p.value),Ke(null==p?void 0:p.value),oe(null==p?void 0:p.value),le(null==p?void 0:p.value),fe(null==p||null===(r=p.value)||void 0===r?void 0:r.is_retailer_bu_active)}).catch(function(){})},ze=function(e){(0,j.sw)(w,S,T,e).then(function(e){(0,f.mN)(e)?(I(!1),Ge(),O({message:e.data.message,type:\"success\"})):O({message:e.data.errorMessage,type:\"error\"})}).catch(function(e){O({message:e.message,type:\"error\"})})},Ve=function(e){(0,j.JF)(w,S,T,$($({},e),{},{retailerUUID:re.retailer_uuid})).then(function(t){(0,f.mN)(t)?(O({message:e.status===s._S.APPROVED?(0,o.t)(\"RETAILER_DETAILS_APPROVED_SUCCESSFULLY\"):(0,o.t)(\"RETAILER_DETAILS_REJECTED_SUCCESSFULLY\"),type:\"success\"}),L(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Retailers,\"/\").concat(u.fp.Retailer_List))):O({message:t.data.errorMessage,type:\"error\"})}).catch(function(e){O({message:e.message,type:\"error\"})})},qe=function(e){return e.map(function(e){var t,n=he.find(function(t){return t.distributor_code===e.value}),r=(null==n?void 0:n.distributor_uuid)||e.value,o=re.retailer_distributors.find(function(e){return e.distributor_uuid===r});return{id:null!==(t=null==o?void 0:o.id)&&void 0!==t?t:0,distributor_uuid:r}})},We=function(e,t,n){return\"DISTRIBUTOR_RETAILER\"===e&&Number(t)+Number(n)!==100},Qe=function(){var e,t=(e=z().m(function e(t){var n,r,a,i,l,u;return z().w(function(e){for(;;)switch(e.n){case 0:return a=null==re||null===(n=re.retailer_documents)||void 0===n?void 0:n.map(function(e){return e.isError,W(e,G)}),i={retailerUUID:null==re?void 0:re.retailer_uuid,buId:null==w?void 0:w.selectedBusinessUnit.bu_id,retailerDocumentList:a},e.n=1,(0,h.tl)(w,S,T,i);case 1:l=qe(t.retailer_distributors),(u=(0,R.jc)({retailerDetails:re,formValues:t,user:w,preferredDistributorList:[].concat(q(l),q((0,f.sE)(he,null==re?void 0:re.retailer_distributors)))},!1)).retailerBu.re_kyc_status=je&&Ye?s._S.REKYC_APPROVED:null,We(null===(r=t.retailer_category_code)||void 0===r?void 0:r.value,t.total_retailer_percentage,t.total_wholesale_percentage)?O({message:(0,o.t)(\"SUM_OF_WHOLESALE\"),type:\"error\"}):ze(u);case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Q(a,r,o,i,l,\"next\",e)}function l(e){Q(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),Ke=function(e){var t,n,o=null==e||null===(t=e.retailer_attachments)||void 0===t?void 0:t.find(function(e){return\"SHOP\"===(null==e?void 0:e.image_type)}),a={image_type:null==o?void 0:o.image_type,file_name:null==o||null===(n=o.image_key)||void 0===n?void 0:n.split(\"/\").slice(-1)[0],file_operation_type:\"DOWNLOAD\",retailerUUID:null==e?void 0:e.retailer_uuid};(0,j.od)(w,S,T,a).then(function(e){var t;null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage||r.A.get(null==e?void 0:e.data,{responseType:\"arraybuffer\"}).then(function(e){var t=new Blob([null==e?void 0:e.data],{type:\"image/png\"}),n=URL.createObjectURL(t);_e(n)})})};return(0,a.useEffect)(function(){var e;Ge(),(0,m._A)(w,S,T,{moduleName:H.MODULE_NAME,keys:H.ENABLE_APPROVER_KEY,portfolioCode:H.DEFAULT},!0).then(function(e){var t;Se(null==e||null===(t=e[0])||void 0===t?void 0:t.value)}),e={moduleName:s.Rk.RETAILERS,keys:[s.Rk.RETAILER_NO_OF_PREFERRED_DISTRIBUTORS,s.Rk.RETAILER_ADDRESS_VALIDATION],apiName:s.Rk.PREFERRED_DISTRIBUTOR},(0,d.j)((0,f.rZ)(w,S),T,e).then(function(e){Le((0,f.Ws)(s.Rk.RETAILER_NO_OF_PREFERRED_DISTRIBUTORS,e)),xe((0,f.Ws)(s.Rk.RETAILER_ADDRESS_VALIDATION,e))})},[]),i().createElement(U.M,{sx:{backgroundColor:c.w.palette.secondary.main,padding:\"16px\"}},i().createElement(F,{initialValues:ee,isDocumentsError:Ie,onHandleSubmit:Qe,retailersFieldsConfigurations:Oe,retailerDetails:re,setRetailerDetails:oe,setIsEditDetailsMode:I,onCancel:function(){oe(ie),I(!1)},onEdit:function(){return I(!0)},isEditDetailsMode:x,fieldsData:B,onDropdownChange:function(e,t){var n=(0,R.UP)(ee.total_wholesale_percentage,ee.total_retailer_percentage);\"retailer_category_code\"===e&&Y((0,R.Xp)(t.value,n,B))},shopProfile:be,preferredDistributorConfiguration:Ne,retailerAddressValidationConfiguration:Me,onDocumentsChange:function(e){var t,n=null==re||null===(t=re.retailer_documents)||void 0===t?void 0:t.map(function(t){return(null==t?void 0:t.document_number)===(null==e?void 0:e.document_number)&&(null==t?void 0:t.retailer_licence_type)===(null==e?void 0:e.retailer_licence_type)?$($({},t),{},{document_number:null==e?void 0:e.modifiedNumber,isError:null==e?void 0:e.isError}):t});oe(function(e){return $($({},e),{},{retailer_documents:n})})},disableFields:K,setCommentsData:ye,commentsData:Ae,isCountryAdmin:N,retailerActiveStatus:pe,setShowDeactivateModal:ce,RBACPermissions:b,showApprover:we,User:w,verificationStatus:Be,isDistributorValidationRequired:0!==Number((0,f.KB)(null==Ne?void 0:Ne.maxValue,null!=he?he:[],null!==(y=null==re?void 0:re.retailer_distributors)&&void 0!==y?y:[])),approveRetailersData:function(e){ye(function(t){return $($({},t),{},{status:e})});var t={status:e,comments:Ae.comments,re_kyc_status:null};je&&Ye?(t={status:s._S.APPROVED,re_kyc_status:s._S.REKYC_REJECTED,comments:Ae.comments},Ve(t)):(e!==s._S.REJECTED||Ae.comments)&&Ve(t)}}),i().createElement(g.B,{isVisible:ue,message:\"Retailer will be \".concat(pe?\"deactivated\":\"activated\",\" in Saksham and will be \").concat(pe?\"logout\":\"login\",\" from Sumridhi application. Are you sure?\"),onRequestClose:function(){return ce(!1)},onButtonClick:function(){var e={isRetailerActive:!pe,retailerId:null==re?void 0:re.retailer_uuid};(0,j._O)(w,S,T,e).then(function(e){(0,f.mN)(e)?(ce(!1),Ge(),O({message:e.data.isActive?(0,o.t)(\"RETAILER_ACTIVATED_SUCCESSFULLY\"):(0,o.t)(\"RETAILER_DEACTIVATED_SUCCESSFULLY\"),type:\"success\"}),L(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Retailers,\"/\").concat(u.fp.Retailer_List))):O({message:pe?(0,o.t)(\"RETAILER_NOT_ACTIVATED\"):(0,o.t)(\"RETAILER_NOT_DEACTIVATED\"),type:\"error\"})}).catch(function(e){O({message:e.message,type:\"error\"})})}}))}},52197:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e){return\"string\"==typeof e}},52332:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext()},52477:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"fo\",{months:\"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember\".split(\"_\"),monthsShort:\"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des\".split(\"_\"),weekdays:\"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur\".split(\"_\"),weekdaysShort:\"sun_mán_týs_mik_hós_frí_ley\".split(\"_\"),weekdaysMin:\"su_má_tý_mi_hó_fr_le\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D. MMMM, YYYY HH:mm\"},calendar:{sameDay:\"[Í dag kl.] LT\",nextDay:\"[Í morgin kl.] LT\",nextWeek:\"dddd [kl.] LT\",lastDay:\"[Í gjár kl.] LT\",lastWeek:\"[síðstu] dddd [kl] LT\",sameElse:\"L\"},relativeTime:{future:\"um %s\",past:\"%s síðani\",s:\"fá sekund\",ss:\"%d sekundir\",m:\"ein minuttur\",mm:\"%d minuttir\",h:\"ein tími\",hh:\"%d tímar\",d:\"ein dagur\",dd:\"%d dagar\",M:\"ein mánaður\",MM:\"%d mánaðir\",y:\"eitt ár\",yy:\"%d ár\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},52500:(e,t,n)=>{\"use strict\";var r=n(98849),o=n(19786),a=n(83070),i=n(14632),l=n(52833),s=n(81199),u=n(1123),c=n(66870),d=n(15413)(\"iterator\"),p=!([].keys&&\"next\"in[].keys()),f=\"keys\",g=\"values\",h=function(){return this};e.exports=function(e,t,n,m,v,A,y){s(n,t,m);var E,b,_,C=function(e){if(!p&&e in O)return O[e];switch(e){case f:case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+\" Iterator\",S=v==g,T=!1,O=e.prototype,D=O[d]||O[\"@@iterator\"]||v&&O[v],R=D||C(v),N=v?S?C(\"entries\"):R:void 0,L=\"Array\"==t&&O.entries||D;if(L&&(_=c(L.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),r||\"function\"==typeof _[d]||i(_,d,h)),S&&D&&D.name!==g&&(T=!0,R=function(){return D.call(this)}),r&&!y||!p&&!T&&O[d]||i(O,d,R),l[t]=R,l[w]=h,v)if(E={values:S?R:C(g),keys:A?R:C(f),entries:N},y)for(b in E)b in O||a(O,b,E[b]);else o(o.P+o.F*(p||T),t,E);return E}},52648:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"zh-cn\",{months:\"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"星期日_星期一_星期二_星期三_星期四_星期五_星期六\".split(\"_\"),weekdaysShort:\"周日_周一_周二_周三_周四_周五_周六\".split(\"_\"),weekdaysMin:\"日_一_二_三_四_五_六\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY年M月D日\",LLL:\"YYYY年M月D日Ah点mm分\",LLLL:\"YYYY年M月D日ddddAh点mm分\",l:\"YYYY/M/D\",ll:\"YYYY年M月D日\",lll:\"YYYY年M月D日 HH:mm\",llll:\"YYYY年M月D日dddd HH:mm\"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),\"凌晨\"===t||\"早上\"===t||\"上午\"===t?e:\"下午\"===t||\"晚上\"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?\"凌晨\":r<900?\"早上\":r<1130?\"上午\":r<1230?\"中午\":r<1800?\"下午\":\"晚上\"},calendar:{sameDay:\"[今天]LT\",nextDay:\"[明天]LT\",nextWeek:function(e){return e.week()!==this.week()?\"[下]dddLT\":\"[本]dddLT\"},lastDay:\"[昨天]LT\",lastWeek:function(e){return this.week()!==e.week()?\"[上]dddLT\":\"[本]dddLT\"},sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"日\";case\"M\":return e+\"月\";case\"w\":case\"W\":return e+\"周\";default:return e}},relativeTime:{future:\"%s后\",past:\"%s前\",s:\"几秒\",ss:\"%d 秒\",m:\"1 分钟\",mm:\"%d 分钟\",h:\"1 小时\",hh:\"%d 小时\",d:\"1 天\",dd:\"%d 天\",w:\"1 周\",ww:\"%d 周\",M:\"1 个月\",MM:\"%d 个月\",y:\"1 年\",yy:\"%d 年\"},week:{dow:1,doy:4}})}(n(95093))},52675:(e,t,n)=>{\"use strict\";n(6761),n(81510),n(97812),n(33110),n(49773)},52695:(e,t,n)=>{\"use strict\";n.d(t,{H:()=>r});var r=function(e){return e.LIQUIDATION=\"LIQUIDATION\",e.FETCH_My_UPLOADS_TABLE_DATA=\"fetchMyUploadsTableData\",e.FETCH_MY_UPLOADS_ERROR_LOGS=\"fetchMyUploadsErrorLogs\",e.PAY_FOR_PERFORMANCE=\"PAY_FOR_PERFORMANCE\",e.MICRO_LEVEL_PLANNING=\"MICRO_LEVEL_PLANNING\",e}({})},52703:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79039),a=n(79504),i=n(655),l=n(43802).trim,s=n(47452),u=r.parseInt,c=r.Symbol,d=c&&c.iterator,p=/^[+-]?0x/i,f=a(p.exec),g=8!==u(s+\"08\")||22!==u(s+\"0x16\")||d&&!o(function(){u(Object(d))});e.exports=g?function(e,t){var n=l(i(e));return u(n,t>>>0||(f(p,n)?16:10))}:u},52807:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},52811:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(92744),a=n(79039),i=n(20034),l=n(3451).onFreeze,s=Object.freeze;r({target:\"Object\",stat:!0,forced:a(function(){s(1)}),sham:!o},{freeze:function(e){return s&&i(e)?s(l(e)):e}})},52833:e=>{e.exports={}},52848:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>S});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(80851),s=n(33068),u=n(75659),c=n(11848),d=n(25669),p=n(17091),f=n(35186),g=n(44675),h=n(96852),m=n(38413),v=n(31609);function A(e){return(0,v.Ay)(\"MuiCollapse\",e)}(0,m.A)(\"MuiCollapse\",[\"root\",\"horizontal\",\"vertical\",\"entered\",\"hidden\",\"wrapper\",\"wrapperInner\"]);var y=n(74848);const E=[\"addEndListener\",\"children\",\"className\",\"collapsedSize\",\"component\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"orientation\",\"style\",\"timeout\",\"TransitionComponent\"],b=(0,c.Ay)(\"div\",{name:\"MuiCollapse\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],\"entered\"===n.state&&t.entered,\"exited\"===n.state&&!n.in&&\"0px\"===n.collapsedSize&&t.hidden]}})(({theme:e,ownerState:t})=>(0,o.A)({height:0,overflow:\"hidden\",transition:e.transitions.create(\"height\")},\"horizontal\"===t.orientation&&{height:\"auto\",width:0,transition:e.transitions.create(\"width\")},\"entered\"===t.state&&(0,o.A)({height:\"auto\",overflow:\"visible\"},\"horizontal\"===t.orientation&&{width:\"auto\"}),\"exited\"===t.state&&!t.in&&\"0px\"===t.collapsedSize&&{visibility:\"hidden\"})),_=(0,c.Ay)(\"div\",{name:\"MuiCollapse\",slot:\"Wrapper\",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>(0,o.A)({display:\"flex\",width:\"100%\"},\"horizontal\"===e.orientation&&{width:\"auto\",height:\"100%\"})),C=(0,c.Ay)(\"div\",{name:\"MuiCollapse\",slot:\"WrapperInner\",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>(0,o.A)({width:\"100%\"},\"horizontal\"===e.orientation&&{width:\"auto\",height:\"100%\"})),w=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiCollapse\"}),{addEndListener:c,children:m,className:v,collapsedSize:w=\"0px\",component:S,easing:T,in:O,onEnter:D,onEntered:R,onEntering:N,onExit:L,onExited:P,onExiting:M,orientation:x=\"vertical\",style:I,timeout:k=p.p0.standard,TransitionComponent:B=l.Ay}=n,F=(0,r.A)(n,E),j=(0,o.A)({},n,{orientation:x,collapsedSize:w}),H=(e=>{const{orientation:t,classes:n}=e,r={root:[\"root\",`${t}`],entered:[\"entered\"],hidden:[\"hidden\"],wrapper:[\"wrapper\",`${t}`],wrapperInner:[\"wrapperInner\",`${t}`]};return(0,u.A)(r,A,n)})(j),U=(0,g.A)(),Y=(0,s.A)(),G=a.useRef(null),z=a.useRef(),V=\"number\"==typeof w?`${w}px`:w,q=\"horizontal\"===x,W=q?\"width\":\"height\",Q=a.useRef(null),K=(0,h.A)(t,Q),$=e=>t=>{if(e){const n=Q.current;void 0===t?e(n):e(n,t)}},X=()=>G.current?G.current[q?\"clientWidth\":\"clientHeight\"]:0,J=$((e,t)=>{G.current&&q&&(G.current.style.position=\"absolute\"),e.style[W]=V,D&&D(e,t)}),Z=$((e,t)=>{const n=X();G.current&&q&&(G.current.style.position=\"\");const{duration:r,easing:o}=(0,f.c)({style:I,timeout:k,easing:T},{mode:\"enter\"});if(\"auto\"===k){const t=U.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,z.current=t}else e.style.transitionDuration=\"string\"==typeof r?r:`${r}ms`;e.style[W]=`${n}px`,e.style.transitionTimingFunction=o,N&&N(e,t)}),ee=$((e,t)=>{e.style[W]=\"auto\",R&&R(e,t)}),te=$(e=>{e.style[W]=`${X()}px`,L&&L(e)}),ne=$(P),re=$(e=>{const t=X(),{duration:n,easing:r}=(0,f.c)({style:I,timeout:k,easing:T},{mode:\"exit\"});if(\"auto\"===k){const n=U.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,z.current=n}else e.style.transitionDuration=\"string\"==typeof n?n:`${n}ms`;e.style[W]=V,e.style.transitionTimingFunction=r,M&&M(e)});return(0,y.jsx)(B,(0,o.A)({in:O,onEnter:J,onEntered:ee,onEntering:Z,onExit:te,onExited:ne,onExiting:re,addEndListener:e=>{\"auto\"===k&&Y.start(z.current||0,e),c&&c(Q.current,e)},nodeRef:Q,timeout:\"auto\"===k?null:k},F,{children:(e,t)=>(0,y.jsx)(b,(0,o.A)({as:S,className:(0,i.A)(H.root,v,{entered:H.entered,exited:!O&&\"0px\"===V&&H.hidden}[e]),style:(0,o.A)({[q?\"minWidth\":\"minHeight\"]:V},I),ref:K},t,{ownerState:(0,o.A)({},j,{state:e}),children:(0,y.jsx)(_,{ownerState:(0,o.A)({},j,{state:e}),className:H.wrapper,ref:G,children:(0,y.jsx)(C,{ownerState:(0,o.A)({},j,{state:e}),className:H.wrapperInner,children:m})})}))}))});w.muiSupportAuto=!0;const S=w},52967:(e,t,n)=>{\"use strict\";var r=n(46706),o=n(20034),a=n(67750),i=n(73506);e.exports=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,\"__proto__\",\"set\"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return a(n),i(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},53179:(e,t,n)=>{\"use strict\";var r=n(92140),o=n(36955);e.exports=r?{}.toString:function(){return\"[object \"+o(this)+\"]\"}},53307:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>je}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(28161),a=n(81970),i=n.n(a),l=n(34195),s=n(47767),u=n(96348),c=n(94692),d=n(13075),p=n(92416),f=n(21239),g=n(46374),h=n(27776),m=(n(94170),n(59904),n(40875),n(10287),n(3362),n(8085)),v=n(34358),A=n(99478),y=n(37998),E=n(47225),b=n(70380),_=n(27305),C=n(56254),w=n(43605),S=n(54534),T=n(8676),O=n(51545),D=(0,T.A)(O.A)(function(){return{\"& .table-row-click\":{\"& .ag-row\":{cursor:\"pointer !important\"}}}}),R=n(56203),N=(n(25440),n(51249)),L=n(14073),P=n(80663),M=n(17630),x=n(36874);function I(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return k(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(k(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,k(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,k(d,\"constructor\",u),k(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",k(u,o,\"GeneratorFunction\"),k(d),k(d,o,\"Generator\"),k(d,r,function(){return this}),k(d,\"toString\",function(){return\"[object Generator]\"}),(I=function(){return{w:a,m:p}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}k=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){k(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},k(e,t,n,r)}function B(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t,n,r=e.isDrawerOpen,o=e.onHandleClose,s=void 0===o?function(){}:o,u=e.getErrorLogItem,c=(0,a.useContext)(E.v),d=c.BackOfficeProps,p=d.baseurl,f=d.globalStore.User,g=f.AccessToken,h=f.selectedCountry,A=c.triggerShowLoader,b=(t=(0,a.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),_=b[0],C=b[1],S=(0,l.Bd)().t;(0,a.useEffect)(function(){T()},[u]);var T=function(){var e,t=(e=I().m(function e(){var t,n;return I().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,(t={}).domain=p,t.endPoint=m.p.BULK_UPLOAD_ERROR_LOG.replace(\"__ERR_ID__\",u.id),t.customHeaders={\"country-code\":h.countryCode,Authorization:\"Bearer \".concat(g)},t.triggerLoader=A,e.n=1,(0,v.uB)(t);case 1:n=e.v,(0,v.ge)(n.status)&&(n.data.length>0?C(n.data):C([])),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){B(a,r,o,i,l,\"next\",e)}function l(e){B(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();return i().createElement(x.A,{isDrawerOpen:r,anchor:\"right\"},i().createElement(O.A,{className:\"popupMain customWidth\"},i().createElement(P.A,{direction:\"row\",justifyContent:\"space-between\",alignItems:\"center\",mb:3.25},i().createElement(L.A,{component:\"h1\",variant:\"h1\"},\"File:\".concat(u.fileName)),i().createElement(O.A,{onClick:s},i().createElement(L.A,{className:\"icon-close closeIcon\"}))),i().createElement(O.A,null,i().createElement(P.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:2,alignContent:\"baseline\",className:\"error-msg-card\"},i().createElement(O.A,{onClick:s},i().createElement(L.A,{className:\"icon-warning icon-message\"})),i().createElement(O.A,null,i().createElement(L.A,{variant:\"h5\",fontSize:16,fontWeight:600,color:M.w.palette.info.dark},\"\".concat(S(\"FILE_UPLOAD_ERROR\"))),i().createElement(L.A,{component:\"body\",variant:\"body1\",color:M.w.palette.info.dark},\"\".concat(S(\"ERROR_DESCRIPTION\")))))),i().createElement(O.A,{className:\"table-border-red\"},i().createElement(w.A,{rows:_,columnDefs:y.ok})),i().createElement(P.A,{direction:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:2,mt:3},i().createElement(N.A,{className:\"info-icon\"}),i().createElement(L.A,{component:\"span\",color:M.w.palette.info.light,fontSize:16},\"\".concat(S(\"REUPLOAD_TEXT\"))))))};function H(e){return H=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},H(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=H(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==H(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return V(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(V(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,V(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,V(d,\"constructor\",u),V(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",V(u,o,\"GeneratorFunction\"),V(d),V(d,o,\"Generator\"),V(d,r,function(){return this}),V(d,\"toString\",function(){return\"[object Generator]\"}),(z=function(){return{w:a,m:p}})()}function V(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}V=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){V(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},V(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const K=function(e){var t=e.RBACControls;console.log(t,\"myuploadsRback\");var n=(0,_.w)(t).hasReadAccess,o=(0,a.useContext)(E.v),l=o.BackOfficeProps,s=l.baseurl,u=l.globalStore.User,c=u.AccessToken,d=u.selectedCountry,p=u.UserDetails,f=o.triggerShowLoader,g=W((0,a.useState)({pageNo:0,pageSize:10}),2),h=g[0],T=g[1],O=W((0,a.useState)([]),2),N=O[0],L=O[1],P=W((0,a.useState)(0),2),M=P[0],x=P[1],I=W((0,a.useState)(!1),2),k=I[0],B=I[1],F=W((0,a.useState)(null),2),H=F[0],U=F[1];(0,a.useEffect)(function(){G()},[h.pageNo,h.pageSize]);var G=function(){var e,t=(e=z().m(function e(){var t,n,r,o;return z().w(function(e){for(;;)switch(e.n){case 0:return(t={}).domain=s,t.endPoint=m.p.BULK_UPLOAD,t.payLoad={pageNo:h.pageNo,pageSize:h.pageSize,bulkUploadModuleType:A.wb.RETAILER},t.customHeaders={\"country-code\":d.countryCode,Authorization:\"Bearer \".concat(c),\"user-id\":p.user_id},t.triggerLoader=f,e.n=1,(0,v.uB)(t);case 1:n=e.v,(0,S.ZX)(n.status)&&(o=[],(null==n||null===(r=n.data)||void 0===r||null===(r=r.upload_document_list)||void 0===r?void 0:r.length)>0?(x(n.data.total_elements),o=n.data.upload_document_list.map(function(e){return{id:e.id,fileName:e.file_name,uploadedOn:\"\".concat((0,b.SK)(e.start_time),\" | \").concat((0,b.SK)(e.end_time),\" \"),status:e.status,totalRowsCount:e.total_rows_count,successRowCount:e.success_rows_count}}),L(o)):(L(o),x(0)));case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,\"next\",e)}function l(e){q(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();return i().createElement(D,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mt:2,mb:2,gap:2}),i().createElement(w.A,{rows:N,columnDefs:y.hb,frameworkComponents:{EditActionComponent:function(e){return function(e){var t,n=e.data,o=e.setIsKnowMoreDetailsOpen,a=e.setErrorLogItem,l=e.hasReadAccess;return i().createElement(i().Fragment,null,\"failure\"===(null==n||null===(t=n.status)||void 0===t?void 0:t.toLowerCase())?i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"flex-start\",gap:1},i().createElement(\"p\",{className:\"smart-agro-lite-label red-bg\"},\"\".concat((0,R.t)(\"FAILED\"))),i().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-label know-more remove-button \".concat(l?\"\":\"disabled-label\"),onClick:function(){l&&(o(!0),a(n))}},\"\".concat((0,R.t)(\"KNOW_MORE\")))):i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"flex-start\",alignItems:\"center\",gap:1},i().createElement(\"p\",{className:\"smart-agro-lite-label green-bg\"},\"\".concat((0,R.t)(\"COMPLETED\"))),i().createElement(\"p\",{className:\"smart-agro-lite-label\"},\"Retailers Uploaded \".concat(null==n?void 0:n.successRowCount))))}(Y(Y({},e),{},{setIsKnowMoreDetailsOpen:B,setErrorLogItem:U,hasReadAccess:n}))}}}),i().createElement(C.A,{totalPageCount:Math.ceil(M/h.pageSize),totalElements:M,onPageChange:function(e){T(function(t){return Y(Y({},t),{},{pageNo:Number(e)})})}}),k&&i().createElement(j,{isDrawerOpen:k,onHandleClose:function(){return B(!1)},getErrorLogItem:H}))};n(94490),n(26910);var $=n(60538),X=n(15664),J=n(95692),Z=(n(48598),n(12041),n(6347)),ee=n(88084),te=n(96790),ne=n(98752),re=n(48506),oe=n(27386),ae=n(50275),ie=n(15941),le=function(){return ie.Ik().shape({hqName:ie.Yj().required(\"HQ Name required\")})};function se(e){return se=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},se(e)}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=se(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==se(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ge=function(e){var t,n,s,u=e.isDrawerOpen,c=void 0!==u&&u,d=e.onRequestClose,p=void 0===d?function(){}:d,f=(0,a.useContext)(E.v),g=f.BackOfficeProps,h=g.globalStore.User,y=g.baseurl,b=f.triggerShowLoader,_=f.triggerToastMsg,C=y,w=null==h||null===(t=h.UserDetails)||void 0===t?void 0:t.user_id,S=null!==(n=null==h?void 0:h.AccessToken)&&void 0!==n?n:\"\",T=null==h||null===(s=h.selectedCountry)||void 0===s?void 0:s.countryCode,O=null==h?void 0:h.selectedBusinessUnit,D=pe((0,a.useState)({hqName:\"\"}),2),R=D[0],N=D[1],P=pe((0,a.useState)({hqNameData:[]}),2),M=P[0],I=P[1],k=pe((0,a.useState)({selectedHQ:[]}),2),B=k[0],F=k[1],j=pe((0,a.useState)(null),2),H=j[0],U=j[1],Y=pe((0,a.useState)(\"\"),2),G=Y[0],z=Y[1],V=(0,l.Bd)().t,q=function(){p(!1)},W=function(e){var t=e.name.split(\".\").pop(),n=(null==e?void 0:e.name.split(\".\").slice(0,-1).join(\".\")).replaceAll(/[^a-zA-Z0-9]/g,\"-\");return new File([e],\"\".concat(n,\".\").concat(t),{type:e.type})},Q=function(){if(H){if((0,ne.TC)(H.name))return function(){var e={};e.domain=C,e.endPoint=m.p.GET_RETAILER_PRESIGNED_URL,e.customHeaders={Authorization:\"Bearer \".concat(S),\"country-code\":T};var t=W(H);return console.debug(\"::>>:>:\",t),e.payLoad={file_name:t.name},e.triggerLoader=b,(0,ae.dw)(e).then(function(e){return e}).catch(function(e){return console.log(\"PRE SIGNED URL API FAILED\",e)})}().then(function(e){b(!0);var t=W(H);return(0,v.i3)(e,t).then(function(e){b(!1),200===e.status&&\"OK\"===e.statusText?(p(!0),_({message:A.PB,type:\"success\"})):_({message:A.or,type:\"error\"})}).catch(function(){b(!1),_({message:A.or,type:\"error\"})})}).catch(function(e){b(!1),console.log(\"UPLOAD FILE FAILED\",e),_({message:A.or,type:\"error\"})});z(V(\"VALID_FILE_ERROR\"))}else z(V(\"UPLOAD_CONDITION_TEXT\"))};return(0,a.useEffect)(function(){N({hqName:\"\"})},[]),(0,a.useEffect)(function(){var e,t;(t={}).domain=C,t.endPoint=m.p.GET_HQ_RETAILER_NAME,t.customHeaders={\"country-code\":T,\"bu-id\":null==O?void 0:O.bu_id,Authorization:\"Bearer \".concat(S),\"role-id\":null},t.payLoad={user_uuid:w},t.triggerLoader=b,(e=t,new Promise(function(t,n){var r;null===(r=J.N.get(e))||void 0===r||r.then(function(e){if((0,v.ge)(e.status))return t(e.data)}).catch(function(e){return n(e)})})).then(function(e){if(Array.isArray(e)&&(null==e?void 0:e.length)>0){var t=e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id}}).sort(function(e,t){return e.label.localeCompare(t.label)});I(function(e){return ce(ce({},e),{},{hqNameData:t})})}return e}).catch(function(e){console.log(\"GET HQ NAME FAILED\",e)})},[]),i().createElement(x.A,{isDrawerOpen:c,anchor:\"right\"},i().createElement(o.A,{className:\"popupMain\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(L.A,{component:\"h1\",variant:\"h1\"},V(\"UPLOAD_RETAILER\")),i().createElement(o.A,{onClick:function(){return p(!1)},\"data-testid\":\"on-request-close\"},i().createElement(L.A,{className:\"icon-close closeIcon\"}))),i().createElement(ee.l1,{initialValues:R,validationSchema:le,enableReinitialize:!0,onSubmit:function(){b(!0);var e=m.p.RETAILER_DOWNLOAD_TEMPLATE.replace(\"__HQ_ID__\",B.selectedHQ.map(function(e){return\"head_quarter_ids=\".concat(e.value)}).join(\"&\"));return(0,v.Ti)({baseUrl:\"\".concat(C).concat(e),options:{headers:{\"Content-Type\":te.LG.octet_stream,Authorization:\"Bearer \".concat(S),\"country-code\":T}}}).then(function(e){b(!1)}).catch(function(){b(!1),_({message:V(\"DOWNLOAD_FAILED\"),type:\"error\"})})}},function(e){var t=e.setFieldValue;return i().createElement(ee.lV,{className:\"popupContent\"},i().createElement(o.A,{className:\"inputs-cards\"},i().createElement(o.A,{className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(L.A,{component:\"span\",className:\"round-badge\"},\"1\"),i().createElement(L.A,{variant:\"h6\",fontSize:14,fontWeight:500},V(\"SELECT_HQ_NAME\")))),i().createElement(o.A,{className:\"input-card-body\"},i().createElement(r.A,{direction:\"row\",gap:2,mb:1},i().createElement(o.A,{mb:2,width:\"100%\"},i().createElement(L.A,{variant:\"subtitle2\"},V(\"HQ_NAMED\")),i().createElement(ee.D0,{name:\"hqName\"},function(){var e,n;return i().createElement(re.A,{name:null!==(e=V(\"HQ_NAMED\"))&&void 0!==e?e:\"\",options:M.hqNameData,onHandleChange:function(e){var n=function(e){return e.map(function(e){return e.label}).join(\",\")}(e);t(\"hqName\",String(n)),F({selectedHQ:e})},selectedOption:null!==(n=null==B?void 0:B.selectedHQ)&&void 0!==n?n:[]})}),i().createElement(Z.A,{error:!0},i().createElement(ee.Kw,{name:\"hqName\"}))))),i().createElement(o.A,{className:\"inputs-cards\"},i().createElement(o.A,{className:\"cards-header-wrapper\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(L.A,{component:\"span\",className:\"round-badge\"},\"2\"),i().createElement(L.A,{variant:\"h6\",fontSize:14,fontWeight:500},V(\"DOWNLOAD_TEMEPLATE\"))),i().createElement(X.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:V(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",type:\"submit\"}))),i().createElement(o.A,{className:\"inputs-cards\"},i().createElement(o.A,{className:\"cards-header-wrapper\"},i().createElement(r.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(L.A,{component:\"span\",className:\"round-badge\"},\"3\"),i().createElement(L.A,{variant:\"h6\",fontSize:14,fontWeight:500},V(\"UPLOAD_FILE\")))),i().createElement(o.A,{className:\"input-card-body\"},i().createElement(oe.A,{onUploadSuccess:function(e){!function(e){z(\"\");var t=e[0];U(t)}(e)},selectedFile:H,onRemoveHandler:function(){return U(null)}}),G&&i().createElement(L.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},G)))),i().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},i().createElement(X.A,{variant:\"outlined\",buttonName:V(\"CANCEL\"),onButtonClick:q,fullwidth:!1,color:\"secondary\"}),i().createElement(X.A,{variant:\"contained\",buttonName:V(\"SUBMIT\"),fullwidth:!1,color:\"primary\",onButtonClick:Q})))})))};var he=n(8239);const me=function(e){var t,n=e.isDrawerOpen,a=void 0!==n&&n,s=e.onRequestClose,u=void 0===s?function(){}:s,c=e.details,d=void 0===c?function(){}:c,p=(0,l.Bd)().t;return i().createElement(x.A,{isDrawerOpen:a,anchor:\"right\"},i().createElement(o.A,{className:\"popupMain customWidth\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(L.A,{component:\"h1\",variant:\"h1\"},p(\"RETAILER_DETAILS\")),i().createElement(o.A,{onClick:function(){return u(!1)},\"data-testid\":\"onRequestClose\"},i().createElement(L.A,{className:\"icon-close closeIcon\"}))),i().createElement(he.Ay,{container:!0,columns:10,mb:3,rowSpacing:3},i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"OWNER_NAME\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.owner_name?null==d?void 0:d.owner_name:\"--\")),i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"SHOP_NAME\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.shop_name?null==d?void 0:d.shop_name:\"--\")),i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"RETAILER_CATEGORY\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.category?null==d?void 0:d.category:\"--\")),i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"MOBILE_NUMBER\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.mobile?null==d?void 0:d.mobile:\"--\"))),i().createElement(he.Ay,{container:!0,columns:10,mb:3,rowSpacing:3},null==d?void 0:d.address.map(function(e){return i().createElement(he.Ay,{item:!0,xs:2,key:null==e?void 0:e.name},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},null==e?void 0:e.name),i().createElement(L.A,{variant:\"h5\"},null==e?void 0:e.value))}),i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"PIN_CODE\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.pincode?null==d?void 0:d.pincode:\"--\"))),i().createElement(he.Ay,{container:!0,columns:10,mb:3,rowSpacing:3},i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},null!=d&&d.head_quarter_hierarchy_name?null==d?void 0:d.head_quarter_hierarchy_name:\"--\"),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.head_quater_name?null==d?void 0:d.head_quater_name:\"--\")),i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"PARTNER_CODE\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.patner_code?null==d?void 0:d.patner_code:\"--\"))),i().createElement(he.Ay,{container:!0,columns:10,mb:3,rowSpacing:3},i().createElement(he.Ay,{item:!0,xs:2},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"RETAILER_STATUS\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.retailer_status?null==d?void 0:d.retailer_status:\"--\"))),i().createElement(he.Ay,{container:!0,columns:10,mb:3,rowSpacing:3},i().createElement(he.Ay,{item:!0,xs:4},i().createElement(L.A,{fontSize:14,color:M.w.palette.primary.main,fontWeight:500},p(\"ADDRESS\")),i().createElement(L.A,{variant:\"h5\"},null!=d&&d.canonical_address?null==d?void 0:d.canonical_address:\"--\"),i().createElement(L.A,{variant:\"h5\"},null!==(t=null==d?void 0:d.full_address)&&void 0!==t?t:\"--\")))))};n(74423),n(15086),n(16034);var ve=n(28152),Ae=n(33417);function ye(e){return ye=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ye(e)}function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _e(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ye(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ye(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const we=function(e){var t,n,s=e.isDrawerOpen,u=void 0!==s&&s,c=e.onRequestClose,d=void 0===c?function(){}:c,p=e.onHandleSubmit,f=e.retailerFilters,g=e.retialersFlterData,h=e.setSelectedDropdown,m=e.selectedDropdown,v=e.onClearFilters,A=e.lastFilterKeys,y=e.geoDataFilters,E=(0,l.Bd)().t,b=(t=(0,a.useState)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),_=b[0],C=b[1],w=function(){d(!0),v()},S=function(e,t){var n,r,o=[],a=null===(n=f[t])||void 0===n||null===(n=n.values)||void 0===n?void 0:n.filter(function(t){return!e.some(function(e){return e.label==t.label})});(null==a?void 0:a.length)&&a.forEach(function(e){e.value&&o.push(e.value)});var i=null===(r=f[t+1])||void 0===r?void 0:r.values.filter(function(e){return!o.includes(e.parentId)});h(function(e){var n;return be(be({},e),{},_e({},null===(n=f[t+1])||void 0===n?void 0:n.name,i))}),t<(null==f?void 0:f.length)&&S(i,t+1)},T=function(e){var t;return null==e||null===(t=e[null==A?void 0:A.hqDataKey])||void 0===t||!t.length},O=function(e){return function(t){h(function(n){return be(be({},n),{},_e({},e.name,t))})}};return(0,a.useEffect)(function(){var e,t,n,r,o,a;n=be({},e=m),r={},o=Object.values(g),a={values:null==e||null===(t=e.States)||void 0===t?void 0:t.value},null==o||o.forEach(function(e){null!=n&&n[null==e?void 0:e.name]&&(r[e.name]={id:e.id,values:n[e.name]})}),C(be(be({},r),{geo_data:a}))},[m]),i().createElement(o.A,null,i().createElement(x.A,{isDrawerOpen:u,anchor:\"top\",upper:!0},i().createElement(o.A,{p:3,className:\"floating-filter-wrapper\"},i().createElement(ee.l1,{initialValues:m,enableReinitialize:!0,onSubmit:function(){}},function(e){var t=e.values;return i().createElement(ee.lV,{className:\"popupContent floating-filter\"},i().createElement(he.Ay,{container:!0,columns:{xs:12},mb:2,spacing:1,className:\"floating-filter-retailer\"},null==f?void 0:f.map(function(e,t){return i().createElement(he.Ay,{item:!0,xs:3,key:e.name},i().createElement(o.A,{width:\"100%\"},i().createElement(L.A,{variant:\"subtitle2\"},e.name),i().createElement(ee.D0,{name:e.name},function(){var n;return i().createElement(re.A,{disableCloseOnSelect:!0,name:e.name,disablePortal:!0,options:e.values,onHandleChange:function(n){h(function(t){return be(be({},t),{},_e({},e.name,n))}),S(n,t)},selectedOption:null!==(n=null==m?void 0:m[e.name])&&void 0!==n?n:[]})}),i().createElement(ve.A,{errName:e.name})))}),null==y?void 0:y.map(function(e,t){return i().createElement(he.Ay,{item:!0,xs:2,key:e.name},i().createElement(o.A,{width:\"100%\"},i().createElement(L.A,{variant:\"subtitle2\"},e.name),i().createElement(ee.D0,{name:e.name},function(){return i().createElement(Ae.A,{onHandleChange:O(e),options:e.values,label:\"Select \"+e.name,value:null==m?void 0:m[e.name]})}),i().createElement(ve.A,{errName:e.name})))})),i().createElement(r.A,{direction:\"row\",justifyContent:\"end\",pr:4,mb:.5},i().createElement(o.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},i().createElement(X.A,{variant:\"outlined\",buttonName:E(\"CLEAR_FILTERS\"),onButtonClick:w,fullwidth:!1,color:\"primary\"}),i().createElement(X.A,{variant:\"contained\",buttonName:E(\"APPLY_FILTERS\"),onButtonClick:function(){p(_),d(!1)},disabled:T(t),fullwidth:!1,color:\"primary\",type:\"submit\"}))),i().createElement(o.A,{id:\"closeIcon\",onClick:function(){return d(!1)},className:\"smart-agro-lite-filter-cross\"},i().createElement(L.A,{className:\"icon-close closeIcon\"})))}))))};function Se(e){return Se=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Se(e)}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Se(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Se(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Le(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Le(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Le(e,t){if(e){if(\"string\"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Me=function(e){var t=e.RBACControls,n=(0,_.w)(t).hasCreateAccess,o=function(){var e,t=(0,a.useContext)(E.v).BackOfficeProps.globalStore.User;return\"KR\"===(null==t||null===(e=t.selectedCountry)||void 0===e?void 0:e.countryCode)?y.sy:y.HM}(),s=(0,a.useContext)(E.v),u=s.BackOfficeProps,c=u.globalStore.User,p=u.baseurl,f=s.triggerShowLoader,g=s.triggerToastMsg,h=Ne((0,a.useState)(!1),2),v=h[0],A=h[1],b=Ne((0,a.useState)(!1),2),S=b[0],T=b[1],O=Ne((0,a.useState)(!1),2),R=O[0],N=O[1],P=Ne((0,a.useState)([]),2),M=P[0],x=P[1],I=Ne(i().useState(0),2),k=I[0],B=I[1],F=Ne((0,a.useState)({}),2),j=F[0],H=F[1],U=Ne((0,a.useState)({}),2),Y=U[0],G=U[1],z=Ne((0,a.useState)([]),2),V=z[0],q=z[1],W=Ne((0,a.useState)([]),2),Q=W[0],K=W[1],Z=Ne((0,a.useState)({}),2),ee=Z[0],te=Z[1],ne=Ne((0,a.useState)({}),2),re=ne[0],oe=ne[1],ae=Ne((0,a.useState)({}),2),ie=ae[0],le=ae[1],se=Ne((0,a.useState)({}),2),ue=se[0],ce=se[1],de=Ne((0,a.useState)({}),2),pe=de[0],fe=de[1],he=(0,l.Bd)().t,ve=Ne((0,a.useState)({pageNo:0,pageSize:10}),2),Ae=ve[0],ye=ve[1],Ee=function(e,t){var n=[];return null==e||e.forEach(function(e){var r,o=null==e||null===(r=e[t])||void 0===r?void 0:r.map(function(e){var t;return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,parentId:null!==(t=null==e?void 0:e.parent_id)&&void 0!==t?t:null}}),a={id:null==e?void 0:e.id,name:null==e?void 0:e.lable_name,values:o};n.push(a)}),n},be=function(e){return function(e,t,n,r,o){var a,i,l={};return l.domain=t,l.endPoint=\"\".concat(m.p.GET_RETAILERS_DATA,\"?page_no=\").concat(o.pageNo,\"&page_size=\").concat(o.pageSize),l.payLoad=r,l.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){var n;null===(n=J.N.post(l))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})}(c,p,f,e,Ae).then(function(e){var t,n,r;(0,d.mN)(e)?null!=e&&e.data&&(B(null==e||null===(t=e.data)||void 0===t?void 0:t.total_elements),x((null==e||null===(n=e.data)||void 0===n?void 0:n.retailers_list)||[])):g({message:null==e||null===(r=e.data)||void 0===r?void 0:r.errorMessage,type:\"error\"})}).catch(function(e){g({message:e.message,type:\"error\"})})};return(0,a.useEffect)(function(){(function(e,t,n){var r,o,a={};return a.domain=t,a.endPoint=m.p.GET_RETAILERSFILTER_DATA,a.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,d.AT)(\"get\",a,!0)})(c,p,f).then(function(e){if(e){var t={hq_data:e.hq_data.slice().reverse(),geo_data:Oe(Oe({},e.geo_data),{},{geo_data_name:e.geo_data.geo_data_name.slice().reverse()})};te({hqDataKey:e.hq_data[0].lable_name,geoDataKey:e.geo_data.lable_name}),function(e){var t,n,r={};null!=e&&e.hq_data&&(t=Ee(null==e?void 0:e.hq_data,\"hq_data_name\")),null!=e&&e.geo_data&&(n=Ee([null==e?void 0:e.geo_data],\"geo_data_name\"));var o=Re(t);le(o),o.forEach(function(e){r[null==e?void 0:e.name]=null==e?void 0:e.values}),q(Re(t));var a=[];n.forEach(function(e){var t=e.values.toSorted(function(e,t){return e.label.localeCompare(t.label)});e.value=t,a.push(e)}),K(a),oe(r),ce(r)}(t)}}).catch(function(){})},[]),(0,a.useEffect)(function(){be(Y)},[Ae,Y]),i().createElement(D,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2,mt:2},i().createElement(L.A,{variant:\"h2\",\"data-testid\":\"retailer-heading\"},he(\"RETAILER_COUNT\"),\" : \",k),i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",mb:2,gap:2},i().createElement(X.A,{buttonName:he(\"FILTERS\"),className:(0,d.F7)(pe),color:\"trasnparent\",fullwidth:!1,endIcon:i().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){N(!0)}}),i().createElement(X.A,{variant:\"contained\",buttonName:he(\"UPLOAD_RETAILERS\"),onButtonClick:function(){A(!0)},fullwidth:!1,color:\"primary\",disabled:!n}))),i().createElement($.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table table-row-click\",elevation:0},i().createElement(w.A,{rows:M,columnDefs:o,onRowClicked:function(e){return t=null==e?void 0:e.data,void function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=m.p.GET_RETAILERS_DATA_BY_ID.replace(\"__ID__\",\"\".concat(null==r?void 0:r.id)),a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},a.triggerLoader=n,new Promise(function(e,t){var n;null===(n=J.N.get(a))||void 0===n||n.then(function(n){return(0,d.mN)(n)?null!=n&&n.data?e(null==n?void 0:n.data):void 0:t(new Error(\"Unable to process request\"))}).catch(function(){return t(new Error(\"Unable to process request\"))})})}(c,p,f,t).then(function(e){var t;e?(H(e),T(!0)):g({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"})}).catch(function(e){g({message:e,type:\"error\"})});var t}})),i().createElement(C.A,{pageNo:Ae.pageNo,totalElements:k,totalPageCount:Math.ceil(k/Ae.pageSize),onPageChange:function(e){ye(function(t){return Oe(Oe({},t),{},{pageNo:Number(e)})})}}),v&&i().createElement(ge,{isDrawerOpen:v,onRequestClose:function(){A(!1)}}),S&&i().createElement(me,{isDrawerOpen:S,onRequestClose:function(){T(!1)},details:j}),R&&i().createElement(we,{isDrawerOpen:R,onRequestClose:function(e){N(!1)},onHandleSubmit:function(e){var t,n;fe(e);var r={hq_data:{hq_hierarchy_id:e[ee.hqDataKey].id,hq_data_ids:e[ee.hqDataKey].values.map(function(e){return e.value})},geo_data:null!=e&&null!==(t=e.geo_data)&&void 0!==t&&t.values?[null==e||null===(n=e.geo_data)||void 0===n?void 0:n.values]:[]};G(r),ye(function(e){return Oe(Oe({},e),{},{pageNo:0,pageSize:10})})},retailerFilters:V,geoDataFilters:Q,retialersFlterData:ie,setSelectedDropdown:oe,selectedDropdown:re,onClearFilters:function(){return oe(ue),fe({}),void be({})},lastFilterKeys:ee}))};function xe(e){return xe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},xe(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach(function(t){Be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Be(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=xe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=xe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==xe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const je=function(e){var t,n,m=e.RBACControls,v=(0,l.Bd)().t,A=(0,s.zy)(),y=new URLSearchParams(A.search).get(\"tabname\"),E=(t=i().useState({tablist:[{id:1,tabName:v(\"LIST_OF_RETAILERS\"),path:u.fp.List_Of_Retailer,component:i().createElement(Me,{RBACControls:m}),queryParam:{tabname:u.fp.List_Of_Retailer}},{id:2,tabName:v(\"MY_UPLOADS\"),path:u.fp.Uploads_ErrorLog,component:i().createElement(K,{RBACControls:m}),queryParam:{tabname:u.fp.Uploads_ErrorLog}}],currentTabs:u.fp.List_Of_Retailer}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),b=E[0],_=E[1];(0,a.useEffect)(function(){y&&_(function(e){return ke(ke({},e),{},{currentTabs:y})})},[y]);var C=(0,a.useCallback)(function(){return i().createElement(s.BV,null,i().createElement(s.qh,{index:!0,element:i().createElement(s.C5,{to:y?\"\".concat(y).concat(A.search):\"\".concat(u.fp.List_Of_Retailer,\"/?\").concat((0,d.Nr)({tabname:null!=y?y:u.fp.List_Of_Retailer})),replace:!0})}),b.tablist.map(function(e){return i().createElement(s.qh,{key:e.id,path:e.path,element:e.component})}))},[]);return i().createElement(h.T,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(o.A,null,i().createElement(p.A,{routePathName:[{name:u.F_.Retailers,path:u.fp.Retailers},{name:u.F_.Upload_Retailer,path:u.fp.Upload_Retailers}]})),\"datalist\"===b.currentTabs.toLowerCase()&&i().createElement(o.A,null,i().createElement(f.A,{onSearchValueChange:function(e){(0,c.w3)(c.mu.RETAILER_SEARCH,e)},placeholderText:v(\"SEARCH\"),searchValue:\"\",searchBasedOn:v(\"SEARCH_BY_FIELDS_NAME\")}))),i().createElement(g.A,{tabStateProps:b,handleTabChange:function(e){return t=e,void _(function(e){return ke(ke({},e),{},{currentTabs:t})});var t},isParamsReq:!0}),C())}},53432:(e,t,n)=>{\"use strict\";var r=n(71748);Object.defineProperty(t,\"Cc\",{enumerable:!0,get:function(){return o.default}});var o=r(n(16655));r(n(8208)),r(n(80793))},53602:e=>{\"use strict\";var t=4503599627370496;e.exports=function(e){return e+t-t}},53640:(e,t,n)=>{\"use strict\";var r=n(28551),o=n(84270),a=TypeError;e.exports=function(e){if(r(this),\"string\"===e||\"default\"===e)e=\"string\";else if(\"number\"!==e)throw new a(\"Incorrect hint\");return o(this,e)}},53661:(e,t,n)=>{var r=n(63040),o=n(17670),a=n(90289),i=n(4509),l=n(72949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},53742:(e,t,n)=>{var r=n(19786);r(r.S,\"Object\",{create:n(67780)})},53872:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-au\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:0,doy:4}})}(n(95093))},53899:(e,t,n)=>{\"use strict\";e.exports=n.p+\"efe8522022f587768ad8.eot\"},53951:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n(24684);const a=function(e=null){const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},54281:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ae}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(81970),a=n.n(o),i=n(56254),l=n(27776),s=(n(62062),n(2543)),u=n.n(s),c=n(34195),d=n(47225),p=n(70380),f=n(36874),g=(n(94170),n(59904),n(40875),n(10287),n(3362),n(90815)),h=n(14073),m=n(6347),v=n(88084),A=n(56203),y=n(15664),E=n(76906),b=n(64121),_=n(15941),C=n(13075),w=function(){return _.Ik().shape({year:_.Ik().required((0,C.Tl)(\"REQ_YEAR\")),role:_.Ik().required((0,C.Tl)(\"REQ_ROLE\")),configurationName:_.Yj().required((0,C.Tl)(\"REQ_CONFIGURATION_NAME\")),startDate:_.Yj().nullable().required((0,C.Tl)(\"REQ_START\")),endDate:_.Yj().nullable().required((0,C.Tl)(\"REQ_END\"))})},S=function(){return _.Ik().shape({startDate:_.Yj().nullable().required((0,C.Tl)(\"REQ_START\")),endDate:_.Yj().nullable().required((0,C.Tl)(\"REQ_END\"))})};function T(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return O(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(O(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,O(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,O(d,\"constructor\",u),O(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",O(u,o,\"GeneratorFunction\"),O(d),O(d,o,\"Generator\"),O(d,r,function(){return this}),O(d,\"toString\",function(){return\"[object Generator]\"}),(T=function(){return{w:a,m:p}})()}function O(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}O=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){O(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},O(e,t,n,r)}function D(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}const R=function(e){var t,n=e.isEditingMode,o=e.selectedRowItem,i=e.onRequestClose,l=e.initialForm,s=e.updateShareOfWalletConfig,u=e.onHandleSubmit,c=e.setDefaultStartDate,d=e.dropdownYearOptions,p=e.setSelectedRole,f=e.fetchRolesConfigData,_=e.rolesData,C=e.setSelectedConfig,O=e.configData,R=e.selectedRole,N=e.defaultStartDate,L=e.onHandleCancel;return a().createElement(r.A,{className:\"popupMain\"},a().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},a().createElement(h.A,{variant:\"h5\",fontSize:20,fontWeight:500},n&&o?(0,A.t)(\"UPDATE_RETAILER_SOW_CONFIGURATION\")+(null==o||null===(t=o.data)||void 0===t?void 0:t.year):(0,A.t)(\"ADD_RETAILER_SOW_CONFIGURATION\")),a().createElement(r.A,{onClick:function(){return i(!1)},\"data-testid\":\"on-Request-Close\"},a().createElement(h.A,{className:\"icon-close closeIcon\"}))),a().createElement(v.l1,{enableReinitialize:!0,initialValues:l,validationSchema:n?S:w,onSubmit:function(e,t){n||u(e),function(e){n&&s(e)}(e)}},function(e){var t=e.values,o=e.setFieldValue;return a().createElement(v.lV,{className:\"popupContent\"},!n&&a().createElement(r.A,{width:\"48%\"},a().createElement(h.A,{variant:\"subtitle2\"},\"Year*\"),a().createElement(v.D0,{name:\"year\"},function(){return a().createElement(b.A,{name:\"year\",onChange:function(){var e,t=(e=T().m(function e(t,n){var r;return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o(\"year\",n);case 1:r=\"01/01/\".concat(Number(null==n?void 0:n.value)+1),o(\"startDate\",r),o(\"endDate\",r),c(r);case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){D(a,r,o,i,l,\"next\",e)}function l(e){D(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n){return t.apply(this,arguments)}}(),options:null==d?void 0:d.options,labelKey:\"label\",label:\"year\",selectedOption:null==t?void 0:t.year,value:null==t?void 0:t.year,defaultLabel:\"Select Year\"})}),a().createElement(m.A,{error:!0},a().createElement(v.Kw,{name:\"year\"}))),a().createElement(g.A,{direction:\"row\",gap:2,mt:2},a().createElement(r.A,{width:\"50%\"},a().createElement(h.A,{variant:\"subtitle2\"},\"Role *\"),a().createElement(v.D0,{name:\"role\"},function(){return a().createElement(b.A,{name:\"role\",onChange:function(e,t){o(\"role\",t),p(null==t?void 0:t.value),f(null==t?void 0:t.value),o(\"configurationName\",\"\")},options:_,labelKey:\"label\",label:\"role\",selectedOption:t.role,value:t.role,defaultLabel:(0,A.t)(\"SELECT_ROLE\"),isDisabled:n})}),a().createElement(m.A,{error:!0},a().createElement(v.Kw,{name:\"role\"}))),a().createElement(r.A,{width:\"50%\"},a().createElement(h.A,{variant:\"subtitle2\"},\"Configuration Name *\"),a().createElement(v.D0,{name:\"configurationName\"},function(){return a().createElement(b.A,{name:\"configurationName\",onChange:function(e,t){o(\"configurationName\",t.label),C(null==t?void 0:t.value)},options:O,labelKey:\"label\",label:\"configurationName\",selectedOption:t.configurationName,value:t.configurationName,defaultLabel:\"Select Configuration\",isDisabled:!R||n})}),a().createElement(m.A,{error:!0},a().createElement(v.Kw,{name:\"configurationName\"})))),a().createElement(g.A,{direction:\"row\",alignItems:\"flex-start\",gap:2,mt:2},a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(h.A,{variant:\"subtitle2\"},(0,A.t)(\"USER_START_DATE\")),a().createElement(v.D0,{name:\"startDate\",type:\"text\"},function(){var e,n,r;return a().createElement(E.A,{restrictManualEntry:!0,value:null!==(e=null==t?void 0:t.startDate)&&void 0!==e?e:N,defaultValue:null==t?void 0:t.startDate,handleChangeDatePicker:function(e){o(\"startDate\",e),o(\"endDate\",e)},disabled:!(null!=t&&t.year),minDate:\"01/01/\".concat(Number(null===(n=t.year)||void 0===n?void 0:n.value)+1),maxDate:\"12/31/\".concat(Number(null===(r=t.year)||void 0===r?void 0:r.value)+1)})}),a().createElement(m.A,{error:!0},a().createElement(v.Kw,{name:\"startDate\"}))),a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(a().Fragment,null,a().createElement(h.A,{variant:\"subtitle2\"},\"End Date *\"),a().createElement(v.D0,{name:\"endDate\"},function(){var e,n;return a().createElement(E.A,{restrictManualEntry:!0,value:null!==(e=null==t?void 0:t.endDate)&&void 0!==e?e:t.startDate,defaultValue:null==t?void 0:t.endDate,handleChangeDatePicker:function(e){o(\"endDate\",e)},disabled:!t.startDate,minDate:t.startDate,maxDate:\"12/31/\".concat(Number(null===(n=t.year)||void 0===n?void 0:n.value)+1)})}),a().createElement(m.A,{error:!0},a().createElement(v.Kw,{name:\"endDate\"}))))),a().createElement(g.A,{direction:\"row\",className:\"btnsBlock\",gap:2},a().createElement(y.A,{variant:\"outlined\",color:\"secondary\",onButtonClick:L,buttonName:(0,A.t)(\"CANCEL\"),fullwidth:!1}),a().createElement(y.A,{type:\"submit\",variant:\"contained\",buttonName:\"\".concat(n?(0,A.t)(\"UPDATE\"):(0,A.t)(\"SAVE\")),fullwidth:!1,color:\"primary\"})))}))};n(25440);var N=n(8085),L=function(e,t,n){var r,o={};return o.domain=t,o.endPoint=N.p.RETAILER_CONFIGURATION_YEARS,o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,(0,C.AT)(\"get\",o,!1)},P=function(e,t,n){var r,o={};return o.domain=t,o.endPoint=N.p.GET_USER_ROLES,o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,(0,C.AT)(\"get\",o,!1)};function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const I=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,i=void 0===r?function(){}:r,l=e.isEditingMode,s=e.selectedRowItem,g=(0,c.Bd)().t,h=(0,o.useContext)(d.v),m=h.BackOfficeProps,v=m.globalStore.User,A=m.baseurl,y=h.triggerShowLoader,E=h.triggerToastMsg,b=(new Date).getFullYear(),_=b-1,w={options:[{label:b.toString(),value:b.toString()},{label:_.toString(),value:_.toString()}]},S=M((0,o.useState)({year:\"\",role:\"\",configurationName:\"\",startDate:\"\",endDate:\"\"}),2),T=S[0],O=S[1],D=M((0,o.useState)([]),2),L=D[0],P=D[1],x=M((0,o.useState)(0),2),I=x[0],k=x[1],B=M((0,o.useState)([]),2),F=B[0],j=B[1],H=M((0,o.useState)(0),2),U=H[0],Y=H[1],G=M((0,o.useState)(\"\"),2),z=G[0],V=G[1],q=function(e){(function(e,t,n,r){var o,a={payLoad:{form_id:6}};return a.domain=t,a.endPoint=N.p.GET_ROLE_CONFIGURATION_DATA.replace(\"__role_id__\",\"\".concat(r)),a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,C.AT)(\"get\",a,!1)})(v,A,y,e).then(function(e){var t;if(!e)throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage);var n=null==e?void 0:e.data.map(function(e){return{id:null==e?void 0:e.form_field_configuration_id,label:null==e?void 0:e.field_name,value:null==e?void 0:e.form_field_configuration_id}});j(n)}).catch(function(e){E({message:e.message,type:\"error\"})})};return(0,o.useEffect)(function(){var e;null===(e=function(e,t,n){var r,o={};return o.domain=t,o.triggerLoader=n,o.payLoad={retailer_share_of_wallet_form_id:6},o.endPoint=N.p.GET_ROLE_SOW_CONFIG,o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},(0,C.AT)(\"get\",o,!0)}(v,A,y))||void 0===e||e.then(function(e){var t;if(!e)throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage);var n=null==e?void 0:e.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.id}}),r=u().sortBy(n,\"id\");P(r)}).catch(function(e){console.log(\"fetchroles api failed\",e)})},[]),(0,o.useEffect)(function(){var e,t,n,r,o,a,i,u;l&&(q(null==s||null===(e=s.data)||void 0===e?void 0:e.role_id),O({year:null==s||null===(t=s.data)||void 0===t?void 0:t.year,role:null==s||null===(n=s.data)||void 0===n?void 0:n.role_name,configurationName:null==s||null===(r=s.data)||void 0===r?void 0:r.field_name,startDate:(0,p.Yq)(null==s||null===(o=s.data)||void 0===o?void 0:o.from_date,\"MM/DD/YYYY\",\"DD-MM-YYYY\"),endDate:(0,p.Yq)(null==s||null===(a=s.data)||void 0===a?void 0:a.to_date,\"MM/DD/YYYY\",\"DD-MM-YYYY\")}),k(null==s||null===(i=s.data)||void 0===i?void 0:i.role_id),Y(null==s||null===(u=s.data)||void 0===u?void 0:u.form_field_configuration_id))},[l]),a().createElement(f.A,{isDrawerOpen:n,anchor:\"right\"},a().createElement(R,{isEditingMode:l,selectedRowItem:s,onRequestClose:i,initialForm:T,updateShareOfWalletConfig:function(e){var t,n,r,o={id:null==s||null===(t=s.data)||void 0===t?void 0:t.id,year:null==s||null===(n=s.data)||void 0===n?void 0:n.year,from_date:(0,p.Yq)(null==e?void 0:e.startDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\"),to_date:(0,p.Yq)(null==e?void 0:e.endDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\")};null===(r=function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=N.p.SAVE_RETAILER_SOW_CONFIG,i.payLoad=r,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id \":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id},i.triggerLoader=n,(0,C.AT)(\"put\",i,!0)}(v,A,y,o))||void 0===r||r.then(function(e){var t,n;null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage?E({message:null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage,type:\"error\"}):(i(!0),E({message:g(\"SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY\"),type:\"success\"}))}).catch(function(e){var t;E({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},onHandleSubmit:function(e){!function(e){var t;null===(t=function(e,t,n,r){var o,a={};return a.payLoad=r,a.domain=t,a.endPoint=N.p.SAVE_RETAILER_SOW_CONFIG,a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,C.AT)(\"post\",a,!1)}(v,A,y,e))||void 0===t||t.then(function(e){var t,n;null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage?E({message:null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage,type:\"error\"}):(i(!0),E({message:g(\"SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY\"),type:\"success\"}))}).catch(function(e){var t;E({message:null!==(t=e.message)&&void 0!==t?t:e,type:\"error\"})})}({year:null==e?void 0:e.year.value,role_id:I,form_configuration_id:U,from_date:(0,p.Yq)(null==e?void 0:e.startDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\"),to_date:(0,p.Yq)(null==e?void 0:e.endDate,\"YYYY-MM-DD\",\"MM/DD/YYYY\")})},setDefaultStartDate:V,dropdownYearOptions:w,setSelectedRole:k,fetchRolesConfigData:q,rolesData:L,setSelectedConfig:Y,configData:F,selectedRole:I,defaultStartDate:z,onHandleCancel:function(){i(!1)}}))};n(28706),n(5506);var k=n(99478);function B(e){return B=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},B(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=B(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==B(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||G(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Y(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function G(e,t){if(e){if(\"string\"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var V=(n(50113),n(8239)),q=n(51545),W=n(15255),Q=n(28152),K=n(62809);function $(e){return $=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},$(e)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=$(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==$(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.onFilterSubmit,o=e.filtersOptions,i=e.onClearFilters,l=e.selectedFilters,s=function(){n()},u=function(e,t){var n;return(null==e||null===(n=e[t])||void 0===n||null===(n=n.filter(function(e){return e.checked}))||void 0===n?void 0:n.map(function(e){return e.label}))||[]},c=function(e,t){var n,r;return null!=t&&t[e]?(null===(n=t[e])||void 0===n||n.forEach(function(t){var n,r=null==o||null===(n=o[e])||void 0===n?void 0:n.find(function(e){return e.label===t.label});r&&(r.checked=t.checked)}),(null==o?void 0:o[e])||[]):null==o||null===(r=o[e])||void 0===r?void 0:r.map(function(e){return J(J({},e),{},{checked:!1})})};return a().createElement(q.A,null,a().createElement(f.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},a().createElement(q.A,{p:3},a().createElement(v.l1,{initialValues:l,enableReinitialize:!0,onSubmit:function(e,t){r(e)}},function(e){var t=e.values,n=e.setFieldValue;return a().createElement(v.lV,{className:\"popupContent\"},a().createElement(V.Ay,{container:!0,columns:12,spacing:1,mb:2},a().createElement(V.Ay,{item:!0,xs:2},a().createElement(q.A,null,a().createElement(h.A,{variant:\"subtitle2\"},\"Year\"),a().createElement(v.D0,{name:\"year\"},function(){return a().createElement(K.A,{name:\"year\",showClearAll:!0,labelKey:\"label\",options:c(\"year\",t),onCheckboxChange:function(e){return n(\"year\",e)},selectedOptions:u(t,\"year\"),defaultLabel:\"Select\",isSortReq:!0})}),a().createElement(Q.A,{errName:\"tmHQ\"}))),a().createElement(V.Ay,{item:!0,xs:2},a().createElement(q.A,null,a().createElement(h.A,{variant:\"subtitle2\"},\"Role\"),a().createElement(v.D0,{name:\"role\"},function(){return a().createElement(K.A,{name:\"role\",showClearAll:!0,labelKey:\"label\",options:c(\"role\",t),onCheckboxChange:function(e){return n(\"role\",e)},selectedOptions:u(t,\"role\"),defaultLabel:\"Select\",isSortReq:!0})}),a().createElement(Q.A,{errName:\"tmHQ\"})))),a().createElement(W.A,{onClearFilters:i,onClose:s}))}))))};var te=n(60538),ne=n(37998),re=n(96348),oe=n(43605),ae=n(92416),ie=n(21239);function le(e){return le=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},le(e)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=le(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=le(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==le(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=function(e){var t=e.onSearch,n=e.setPaginationState,o=e.selectedFilters,i=e.setIsFilterOpen,l=e.setIsAddWalletOpen,s=e.listData,u=e.geRetailerCOnfigDataById,d=(0,c.Bd)().t;return a().createElement(a().Fragment,null,a().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},a().createElement(r.A,null,a().createElement(ae.A,{routePathName:[{name:re.F_.Configurations,path:re.fp.Configurations},{name:re.F_.Share_Of_Wallet_Config,path:re.fp.Share_Of_Wallet_Config}]}))),a().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},a().createElement(r.A,{mt:2},a().createElement(ie.A,{onSearchValueChange:function(e){t(e),n(function(e){return ue(ue({},e),{},{pageNo:0})})},placeholderText:d(\"SEARCH\"),searchValue:\"\",searchBasedOn:\"\".concat(d(\"SEARCH_BY_CONFIGURATIONS\"))})),a().createElement(g.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},a().createElement(y.A,{buttonName:d(\"FILTERS\"),color:\"transparent\",fullwidth:!1,className:(0,C.F7)(o),endIcon:a().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){i(!0)}}),a().createElement(y.A,{variant:\"contained\",buttonName:\"Add new\",onButtonClick:function(){l(!0)},fullwidth:!1,color:\"primary\"}))),a().createElement(te.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},a().createElement(oe.A,{rows:s,columnDefs:ne.U0,frameworkComponents:{SOWConfigEditActionComponent:function(e){return function(e){var t=e.column,n=e.data,r=e.geRetailerCOnfigDataById;if(null!=n&&n.is_editable_record){var o={edit:{label:(0,A.t)(\"EDIT\"),className:\"smart-agro-lite-green-label\"}};return a().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onKeyDown:function(){},onClick:function(){return r(n)}},o[t.colId].label)}return null}(ue(ue({},e),{},{geRetailerCOnfigDataById:u}))}}})))};function pe(e){return pe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},pe(e)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){he(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=pe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==pe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ae=function(){var e=me((0,o.useState)([]),2),t=e[0],n=e[1],s=me((0,o.useState)(!1),2),u=s[0],p=s[1],f=me((0,o.useState)(!1),2),g=f[0],h=f[1],m=me((0,o.useState)({}),2),v=m[0],A=m[1],y=me((0,o.useState)({}),2),E=y[0],b=y[1],_=me((0,o.useState)({pageNo:0,pageSize:10}),2),w=_[0],S=_[1],T=me((0,o.useState)([]),2),O=T[0],D=T[1],R=me((0,o.useState)(!1),2),M=R[0],x=R[1],B=me((0,o.useState)({}),2),F=B[0],H=B[1],G=me((0,o.useState)(0),2),z=G[0],V=G[1],q=me((0,o.useState)(0),2),W=q[0],Q=function(e){var t=e.searchFilters,n=e.fieldNames,r=e.selectedFilters,a=e.setFiltersOptions,i=e.paginationState,l=e.setListData,s=e.setTotalPageCount,u=e.setTotalElements,p=e.setIsFilterOpen,f=e.setIsAddWalletOpen,g=e.setIsEditingMode,h=e.setSelectedRowData,m=(0,c.Bd)().t,v=(0,o.useContext)(d.v),A=v.BackOfficeProps,y=A.globalStore.User,E=A.baseurl,b=v.triggerShowLoader,_=v.triggerToastMsg,w=[{field:\"formFieldConfiguration.buId\",operator:\"EQUALS\",value:null==y?void 0:y.selectedBusinessUnit.bu_id}],S=function(e){var t,n;return null!==(t=null==r||null===(n=r[e])||void 0===n||null===(n=n.filter(function(e){return null==e?void 0:e.checked}))||void 0===n?void 0:n.map(function(e){return e.value}))&&void 0!==t?t:[]};return{fetchAllFiltersOptions:function(){Promise.all([L(y,E,b),P(y,E,b)]).then(function(e){var t,n,r,o,i,l=U(e,2),s=l[0],u=l[1];o=(n={yearData:null==s?void 0:s.data,roleData:null==u||null===(t=u.data)||void 0===t?void 0:t.sales_hierarchy_view_List}).roleData,i={year:(null==(r=n.yearData)?void 0:r.map(function(e){return{label:e.toString(),value:e.toString(),checked:!1}}))||[],role:(null==o?void 0:o.map(function(e){return{label:e.name,value:e.id,checked:!1}}))||[]},a(i)}).catch(function(e){_({message:e.message,type:\"error\"})})},getListData:function(){var e={sort:k.r4,filter:[].concat(w,Y(t),Y(Object.entries(n).filter(function(e){var t=U(e,1)[0];return S(t).length>0}).map(function(e){var t=U(e,2),n=t[0];return j(j({},t[1]),{},{operator:\"IN\",values:S(n)})}))),pageNo:i.pageNo,pageSize:i.pageSize};(function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=N.p.RETAILER_SOW_LIST_DATA,a.payLoad=r,a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,C.AT)(\"post\",a,!0)})(y,E,b,e).then(function(e){var t,n;if(null==e||!e.data)throw new Error(null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)&&void 0!==t?t:m(\"NO_DATA_RECEIVED_FROM_SERVER\"));l(e.data),s(e.totalPageCount),u(e.totalElements),p(!1)}).catch(function(e){console.error(\"An error occurred while fetching data:\",e)})},geRetailerCOnfigDataById:function(e){(function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=N.p.RETAILERS_SOW_GET_BY_ID.replace(\"__ID__\",\"\".concat(null==r?void 0:r.id)),a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,C.AT)(\"get\",a,!1)})(y,E,b,e).then(function(e){var t,n;if(!e)throw new Error(null!==(t=null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)&&void 0!==t?t:m(\"NO_DATA_RECEIVED_FROM_SERVER\"));f(!0),g(!0),h(e)}).catch(function(e){console.error(\"An error occurred while fetching data by ID:\",e)})}}}({searchFilters:O,fieldNames:{year:{field:\"year\"},role:{field:\"formFieldConfiguration.eventTypeId\"}},selectedFilters:v,setFiltersOptions:b,paginationState:w,setListData:n,setTotalPageCount:q[1],setTotalElements:V,setIsFilterOpen:p,setIsAddWalletOpen:h,setIsEditingMode:x,setSelectedRowData:H}),K=Q.fetchAllFiltersOptions,$=Q.getListData,X=Q.geRetailerCOnfigDataById;return(0,o.useEffect)(function(){K()},[]),(0,o.useEffect)(function(){$()},[w,v,O]),a().createElement(a().Fragment,null,a().createElement(l.T,null,a().createElement(r.A,null,a().createElement(de,{onSearch:function(e){D(e?[{field:\"year\",operator:\"LIKE\",value:e},{field:\"formFieldConfiguration.formTemplate.formFieldLabel\",operator:\"LIKE\",value:e}]:[])},setPaginationState:S,selectedFilters:v,setIsFilterOpen:p,setIsAddWalletOpen:h,listData:t,geRetailerCOnfigDataById:X}),a().createElement(i.A,{pageNo:w.pageNo,totalPageCount:Math.ceil(W),totalElements:z,onPageChange:function(e){S(function(t){return ge(ge({},t),{},{pageNo:Number(e)})})}}))),u&&a().createElement(ee,{onRequestClose:function(){return p(!1)},isFilterOpen:u,onFilterSubmit:function(e){A(e),S(function(e){return ge(ge({},e),{},{pageNo:0,pageSize:10})})},onClearFilters:function(){A({}),p(!1)},filtersOptions:E,selectedFilters:v}),g&&a().createElement(I,{isDrawerOpen:g,onRequestClose:function(e){h(!1),e&&$(),x(!1),H({})},isEditingMode:M,selectedRowItem:F}))}},54534:(e,t,n)=>{\"use strict\";n.d(t,{QX:()=>i,Sj:()=>l,VY:()=>s,ZX:()=>a}),n(28706),n(26099),n(3362);var r=n(95692),o=n(13075),a=function(e){return 200===e||201===e},i=function(e){return new Promise(function(t,n){var o;null===(o=r.N.get(e))||void 0===o||o.then(function(e){if(a(e.status))return t(e.data)}).catch(function(e){return n(new Error(e))})})},l=function(e){return new Promise(function(t,n){var o;null===(o=r.N.get(e))||void 0===o||o.then(function(e){return t(e)}).catch(function(e){return n(new Error(e))})})},s=function(e){return r.N.post(e).then(function(e){return e}).catch(function(e){throw new Error(\"\".concat((0,o.Tl)(\"SAVE_GROWER\"),\", \").concat(e))})}},54552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},54554:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(48981),a=n(35610),i=n(91291),l=n(26198),s=n(34527),u=n(96837),c=n(1469),d=n(97040),p=n(84606),f=n(70597)(\"splice\"),g=Math.max,h=Math.min;r({target:\"Array\",proto:!0,forced:!f},{splice:function(e,t){var n,r,f,m,v,A,y=o(this),E=l(y),b=a(e,E),_=arguments.length;for(0===_?n=r=0:1===_?(n=0,r=E-b):(n=_-2,r=h(g(i(t),0),E-b)),u(E+n-r),f=c(y,r),m=0;m<r;m++)(v=b+m)in y&&d(f,m,y[v]);if(f.length=r,n<r){for(m=b;m<E-r;m++)A=m+n,(v=m+r)in y?y[A]=y[v]:p(y,A);for(m=E;m>E-r+n;m--)p(y,m-1)}else if(n>r)for(m=E-r;m>b;m--)A=m+n-1,(v=m+r-1)in y?y[A]=y[v]:p(y,A);for(m=0;m<n;m++)y[m+b]=arguments[m+2];return s(y,E-r+n),f}})},54566:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"nn\",{months:\"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember\".split(\"_\"),monthsShort:\"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.\".split(\"_\"),monthsParseExact:!0,weekdays:\"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag\".split(\"_\"),weekdaysShort:\"su._må._ty._on._to._fr._lau.\".split(\"_\"),weekdaysMin:\"su_må_ty_on_to_fr_la\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY [kl.] H:mm\",LLLL:\"dddd D. MMMM YYYY [kl.] HH:mm\"},calendar:{sameDay:\"[I dag klokka] LT\",nextDay:\"[I morgon klokka] LT\",nextWeek:\"dddd [klokka] LT\",lastDay:\"[I går klokka] LT\",lastWeek:\"[Føregåande] dddd [klokka] LT\",sameElse:\"L\"},relativeTime:{future:\"om %s\",past:\"%s sidan\",s:\"nokre sekund\",ss:\"%d sekund\",m:\"eit minutt\",mm:\"%d minutt\",h:\"ein time\",hh:\"%d timar\",d:\"ein dag\",dd:\"%d dagar\",w:\"ei veke\",ww:\"%d veker\",M:\"ein månad\",MM:\"%d månader\",y:\"eit år\",yy:\"%d år\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},54574:function(e,t){\"use strict\";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReactComponent=void 0;var o=function(e){function t(t,n,r){var o=e.call(this)||this;return o.portal=null,o.reactComponent=t,o.portalManager=n,o.componentType=r,o.statelessComponent=o.isStateless(o.reactComponent),o}return r(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&\"function\"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||\"div\");return n.classList.add(\"ag-react-container\"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(t){return e.eParentElement.classList.add(t)}))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for(\"react.memo\"):60115},t.prototype.hasSymbol=function(){return\"function\"==typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return\"function\"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||\"object\"==typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,r=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(r){var o=r[e];return o?o.apply(r,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout(function(){return n.callMethod(e,t)})},t.prototype.addMethod=function(e,t){this[e]=t},t}(function(){});t.ReactComponent=o},54691:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"el\",{monthsNominativeEl:\"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος\".split(\"_\"),monthsGenitiveEl:\"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου\".split(\"_\"),months:function(e,t){return e?\"string\"==typeof t&&/D/.test(t.substring(0,t.indexOf(\"MMMM\")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:\"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ\".split(\"_\"),weekdays:\"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο\".split(\"_\"),weekdaysShort:\"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ\".split(\"_\"),weekdaysMin:\"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα\".split(\"_\"),meridiem:function(e,t,n){return e>11?n?\"μμ\":\"ΜΜ\":n?\"πμ\":\"ΠΜ\"},isPM:function(e){return\"μ\"===(e+\"\").toLowerCase()[0]},meridiemParse:/[ΠΜ]\\.?Μ?\\.?/i,longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendarEl:{sameDay:\"[Σήμερα {}] LT\",nextDay:\"[Αύριο {}] LT\",nextWeek:\"dddd [{}] LT\",lastDay:\"[Χθες {}] LT\",lastWeek:function(){return 6===this.day()?\"[το προηγούμενο] dddd [{}] LT\":\"[την προηγούμενη] dddd [{}] LT\"},sameElse:\"L\"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return n=r,(\"undefined\"!=typeof Function&&n instanceof Function||\"[object Function]\"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace(\"{}\",o%12==1?\"στη\":\"στις\")},relativeTime:{future:\"σε %s\",past:\"%s πριν\",s:\"λίγα δευτερόλεπτα\",ss:\"%d δευτερόλεπτα\",m:\"ένα λεπτό\",mm:\"%d λεπτά\",h:\"μία ώρα\",hh:\"%d ώρες\",d:\"μία μέρα\",dd:\"%d μέρες\",M:\"ένας μήνας\",MM:\"%d μήνες\",y:\"ένας χρόνος\",yy:\"%d χρόνια\"},dayOfMonthOrdinalParse:/\\d{1,2}η/,ordinal:\"%dη\",week:{dow:1,doy:4}})}(n(95093))},54697:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[e+\" Tage\",e+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM:[e+\" Monate\",e+\" Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[e+\" Jahre\",e+\" Jahren\"]};return t?o[n][0]:o[n][1]}e.defineLocale(\"de-ch\",{months:\"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag\".split(\"_\"),weekdaysShort:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),weekdaysMin:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd, D. MMMM YYYY HH:mm\"},calendar:{sameDay:\"[heute um] LT [Uhr]\",sameElse:\"L\",nextDay:\"[morgen um] LT [Uhr]\",nextWeek:\"dddd [um] LT [Uhr]\",lastDay:\"[gestern um] LT [Uhr]\",lastWeek:\"[letzten] dddd [um] LT [Uhr]\"},relativeTime:{future:\"in %s\",past:\"vor %s\",s:\"ein paar Sekunden\",ss:\"%d Sekunden\",m:t,mm:\"%d Minuten\",h:t,hh:\"%d Stunden\",d:t,dd:t,w:t,ww:\"%d Wochen\",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},54743:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576),a=n(66346),i=n(87633),l=\"ArrayBuffer\",s=a[l];r({global:!0,constructor:!0,forced:o[l]!==s},{ArrayBuffer:s}),i(l)},54749:(e,t,n)=>{\"use strict\";e.exports=n.p+\"205d7f3d96a74e51b79e.svg\"},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},54894:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ee}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(47767),s=n(96348),u=n(47225),c=n(92416),d=n(46374),p=n(27776),f=(n(74423),n(15086),n(21699),n(14073)),g=n(80663),h=n(51545),m=n(88084),v=n(2543),A=n.n(v),y=n(34195),E=n(99478),b=n(17630),_=n(13075),C=(n(25440),n(95093),function(e){return e.replace(/[^A-Z]/gi,\"\")}),w=function(e){return e.replace(/[^\\d.]/g,\"\").replace(/^(\\.)/,\"0$1\").replace(/(\\.\\d*)\\./g,\"$1\")},S=function(e,t){return t>0&&e>0?e/t*100:0},T=n(15664),O=n(64121),D=n(28152),R=n(60538),N=n(45620),L=n(11848),P=(0,L.Ay)(r.A)(function(e){var t=e.theme,n=e.ChartValue;return{\"& .chart-card\":{padding:\"12px\",minWidth:\"420px\",\"& .card-header\":{borderBottom:\"1px solid \".concat(t.palette.grey[800]),padding:\"8px\"},\"& .chart-card-body\":{padding:\"12px\",display:\"flex\",justifyContent:\"center\",minHeight:\"90px\"},\"&  .progress-bar-label\":{left:\"10px\",top:\" 25px\",textAlign:\"center\",width:\"56px\",\"&  .label-text \":{color:\"#0071CD\"}},\"& .MuiCircularProgress-root\":{color:n>50?\"green\":\"#005693\"},\"& .circle-track\":{color:\"#C6E6FF\"}}}});const M=function(e){var t=e.ChartValue,n=e.heading;return i().createElement(P,{ChartValue:t},i().createElement(R.A,{elevation:1,className:\"chart-card\"},i().createElement(h.A,{className:\"card-header\"},i().createElement(f.A,{variant:\"subtitle2\",color:b.w.palette.grey[800]},n)),i().createElement(h.A,{className:\"chart-card-body\"},i().createElement(N.A,{value:null!=t?t:0,thickness:5,size:70,color:b.T.lightBlue,backgroundColor:b.T.uranianBlue,progressBg:\"rgba(0, 86, 147, 1)\"}))))};var x=n(19021),I=n(35165),k=(n(50113),n(25843),n(15941)),B=(0,L.Ay)(r.A)(function(e){var t=e.theme;return{padding:\"16px\",backgroundColor:t.palette.secondary.main,\"& .share-wallet-wrapper\":{margin:\"16px 0px\",minHeight:\"331px\",border:\" 1px solid \".concat(t.palette.grey[100]),borderRadius:\"10px\",display:\"flex\",justifyContent:\"space-between\",\"& .input-fileds-card\":{padding:\"24px\",display:\"flex\",justifyContent:\"center\",alignItems:\"baseline\",gap:\"24px\",flexDirection:\"column\",width:\"60%\",borderRadius:\"10px 0px 0px 10px\",\"& .MuiFormControl-root\":{width:\"100%\"}},\"& .charts-wrapper\":{padding:\"16px\",width:\"40%\",backgroundColor:t.palette.grey[800],borderRadius:\"0px 10px 10px 0px\",display:\"flex\",justifyContent:\"center\",gap:\"16px\",flexDirection:\"column\"}},\"& .disabled-field\":{\"& .MuiInputBase-input.MuiOutlinedInput-input.Mui-disabled\":{\"-webkit-text-fill-color\":\"rgb(0 0 0 / 65%)\"}}}}),F=function(e){return e.NAME=\"RETAILERS_SOW\",e}({}),j=function(e){return e.SAVE=\"save\",e.UPDATE=\"update\",e}({}),H=function(e){return e[e.YEAR=161]=\"YEAR\",e}({}),U=[162,163,164],Y=n(6885);function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const K=function(e){e.retailerItem;var t=(0,a.useContext)(u.v),n=t.BackOfficeProps,r=n.globalStore.User,o=n.baseurl,c=t.triggerShowLoader,d=t.triggerToastMsg,p=(0,l.Zp)(),v=(0,l.g)(),R=v.uuid,N=v.id,L=(0,y.Bd)().t,P=W((0,a.useState)({SyngentaSalesManualLakhs:0,SyngentaSalesSumridhiLakhs:0,TotalAnnualTurnOverLakhs:0}),2),G=P[0],z=P[1],Q=W((0,a.useState)({isYearField:!1,isEditable:!1}),2),K=Q[0],$=Q[1],X=W((0,a.useState)(0),2),J=X[0],Z=X[1],ee=W((0,a.useState)(0),2),te=ee[0],ne=ee[1],re=W((0,a.useState)(j.SAVE),2),oe=re[0],ae=re[1],ie=W((0,a.useState)([]),2),le=ie[0],se=ie[1],ue=W((0,a.useState)([\"\"]),2),ce=ue[0],de=ue[1],pe=W((0,a.useState)(\"\"),2),fe=pe[0],ge=pe[1],he=W((0,a.useState)({}),2),me=he[0],ve=he[1],Ae=function(e){var t,n,a={\"bu-id\":null==r?void 0:r.selectedBusinessUnit.bu_id,\"retailer-uuid\":R,year:e};return null!=r&&null!==(t=r.selectedBusinessUnit)&&void 0!==t&&t.portfolio_enable&&null!=r&&null!==(n=r.selectedBusinessUnit)&&void 0!==n&&n.portfolio_code&&(a.portfolio_code=\"DEFAULT\"),(0,Y._)(r,o,c,a).then(function(e){return ae(j.UPDATE),e}).catch(function(e){d({message:e,type:\"error\"})})},ye=function(e){var t,n=le.map(function(e){return[e.fieldConfigId]}),a={role_id:null==r||null===(t=r.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId};return(0,Y.dR)(r,o,c,a,n,e).then(function(e){return function(e){var t=A().cloneDeep(le),n={};return t.forEach(function(t){var r,o,a,i=null==e?void 0:e.filter(function(e){return(null==e?void 0:e.form_field_configuration_id)===(null==t?void 0:t.fieldConfigId)}),l=i[0];if((null==i?void 0:i.length)>0)if((null==l?void 0:l.field_name)===E.Yr.SYNGENTA_MANUAL_SALES&&(0,_.R5)(null==l?void 0:l.from_date,null==l?void 0:l.to_date)&&t.isEditable)t.isEditable=!0;else if((null==l?void 0:l.field_name)===E.Yr.SYNGENTA_SALES_SUMRIDHI)t.isEditable=!1;else{var s;t.isEditable=null!==(s=null==l?void 0:l.is_editable)&&void 0!==s&&s}n[C(null==t?void 0:t.fieldName)]=0,n[(a=null==t?void 0:t.fieldName,\"isValid\".concat(a.replace(/[^A-Z]/gi,\"\")))]=!(null==l||!l.from_date||null==l||!l.to_date)&&(0,_.R5)(null==i||null===(r=i[0])||void 0===r?void 0:r.from_date,null==i||null===(o=i[0])||void 0===o?void 0:o.to_date)}),se(t),z(n),n}(e)}).catch(function(e){d({message:e,type:\"error\"})})},Ee=function(e){if(e.form_field_configuration_dto_list.length>0){var t=[];e.form_field_configuration_dto_list.map(function(e){if(e.field_unique_id===H.YEAR)$({isYearField:!0,isEditable:e.is_editable});else if(U.includes(e.field_unique_id)){var n=V({fieldName:e.field_name,isEditable:e.is_editable,fieldConfigId:e.form_field_configuration_id},e);t.push(n)}}),se(t)}};return(0,a.useEffect)(function(){(0,Y.$F)(r,o,c).then(function(e){e&&e.length>0&&de(e)}).catch(function(e){d({message:e,type:\"error\"})}),(0,Y.Dp)(r,o,c).then(function(e){if(e.forms.length>0){var t=(a=e.forms,i=F.NAME,a.filter(function(e){return e.form_name===i}));t.length>0&&(n=t[0].form_id,(0,Y.aC)(r,o,c,{form_id:n}).then(function(e){var t=e.filter(function(e){return\"BASIC\"===e.page_category});(null==t?void 0:t.length)>0&&Ee(t[0])}).catch(function(e){d({message:e,type:\"error\"})}))}var n,a,i}).catch(function(e){d({message:e,type:\"error\"})}),(0,I.Rd)(r,o,c,N).then(function(e){(null==e?void 0:e.status)!==E._S.APPROVED&&d({message:E.JS.SOW_TM_APPROVE_ONLY,type:\"error\"}),ve(e)})},[]),i().createElement(B,null,i().createElement(m.l1,{initialValues:G,enableReinitialize:!0,validationSchema:function(){return e=le,n=(t=function(t){var n=e.find(function(e){return e.fieldName===t});if(!n)return{min:null,max:null,isRequired:!1};var r=n.validations.find(function(e){return\"MIN_LENGTH\"===e.validation_type}),o=n.validations.find(function(e){return\"MAX_LENGTH\"===e.validation_type});return{min:r?Number.parseInt(r.validation_value,10):null,max:o?Number.parseInt(o.validation_value,10):null,isRequired:n.is_required}})(\"Syngenta Sales Manual(Lakhs)\"),r=t(\"Total Annual Turn Over(Lakhs)\"),k.Ik().shape({SyngentaSalesManualLakhs:k.Yj().test(\"required\",\"Syngenta Sales(Manual) is required\",function(e){return!n.isRequired||null!=e&&e.length>0}).test(\"min\",\"Syngenta Sales(Manual) must be at least \".concat(n.min,\" characters long\"),function(e){var t;return null==e||e.length>=(null!==(t=n.min)&&void 0!==t?t:0)}).test(\"max\",\"Syngenta Sales(Manual) must be at most \".concat(n.max,\" characters long\"),function(e){var t;return null==e||e.length<=(null!==(t=n.max)&&void 0!==t?t:1/0)}).test(\"lessThanOrEqualToTotalTurnover\",\"Syngenta Sales(Manual) must be less than or equal to Total Annual Turn Over\",function(e){var t=this.parent.TotalAnnualTurnOverLakhs;return null==e||null==t||e.length<=t.length}).test(\"greaterThanZero\",\"Syngenta Sales(Manual) must be greater than 0\",function(e){return null!=e&&e.length>0}),TotalAnnualTurnOverLakhs:k.Yj().test(\"required\",\"Total Annual Turn Over is required\",function(e){return!r.isRequired||null!=e&&e.length>0}).test(\"min\",\"Total Annual Turnover must be at least \".concat(r.min,\" characters long\"),function(e){var t;return null==e||e.length>=(null!==(t=r.min)&&void 0!==t?t:0)}).test(\"max\",\"Total Annual Turnover must be at most \".concat(r.max,\" characters long\"),function(e){var t;return null==e||e.length<=(null!==(t=r.max)&&void 0!==t?t:1/0)})});var e,t,n,r},onSubmit:function(e){!function(e){var t,n={year:fe,bu_id:null==r?void 0:r.selectedBusinessUnit.bu_id,annual_turnover:null==e?void 0:e.TotalAnnualTurnOverLakhs,syngenta_sales:null==e?void 0:e.SyngentaSalesManualLakhs,sumridhi_sales:null==e?void 0:e.SyngentaSalesSumridhiLakhs,retailer_uuid:R,portfolio_details:[{syngenta_sales:null!==(t=null==e?void 0:e.SyngentaSalesManualLakhs)&&void 0!==t?t:0,portfolio_code:\"DEFAULT\"}]};oe===j.UPDATE&&(n.id=null==e?void 0:e.id),(0,Y.y0)(r,o,c,n,oe).then(function(e){if(e)return d({message:\"\".concat(L(\"SHARE_OF_WALLET_DATA\"),\" \").concat(oe===j.SAVE?L(\"SAVED\"):L(\"UPDATED\"),\" \").concat(L(\"SUCCESSFULLY\")),type:\"success\"}),void ae(j.UPDATE);throw new Error(L(\"UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET\"))}).catch(function(e){d({message:null==e?void 0:e.message,type:\"error\"})})}(e)}},function(e){var t,n,r=e.values,o=e.setFieldValue;return i().createElement(m.lV,null,(null==me?void 0:me.status)===E._S.APPROVED&&K.isYearField&&i().createElement(g.A,{direction:\"row\",alignItems:\"center\",gap:1},i().createElement(f.A,{variant:\"body1\",color:b.T.primaryBlack},L(\"SELECT_YEAR\"),\":\"),i().createElement(h.A,{width:270},i().createElement(O.A,{name:\"year\",onChange:function(e,t){var n;ge(t.toString()),n=t,Promise.all([ye(n),Ae(n)]).then(function(e){var t,n,r,o=W(e,2),a=o[0],i=o[1],l=a;l&&(l.SyngentaSalesManualLakhs=null!==(t=null==i?void 0:i.syngenta_sales)&&void 0!==t?t:0,l.SyngentaSalesSumridhiLakhs=null!==(n=null==i?void 0:i.sumridhi_sales)&&void 0!==n?n:0,l.TotalAnnualTurnOverLakhs=null!==(r=null==i?void 0:i.annual_turnover)&&void 0!==r?r:0,l.id=null==i?void 0:i.id),Z(S(null==i?void 0:i.syngenta_sales,null==i?void 0:i.annual_turnover)),ne(S(null==i?void 0:i.sumridhi_sales,null==i?void 0:i.annual_turnover)),z(l)}).catch(function(){z({SyngentaSalesManualLakhs:0,SyngentaSalesSumridhiLakhs:0,TotalAnnualTurnOverLakhs:0}),Z(0),ne(0)})},options:ce,value:fe,defaultLabel:L(\"SELECT\")}))),(null==me?void 0:me.status)===E._S.APPROVED&&fe&&null!=le&&le.some(function(e){return null==e?void 0:e.is_visible})?i().createElement(i().Fragment,null,i().createElement(h.A,{className:\"share-wallet-wrapper\"},i().createElement(h.A,{className:\"input-fileds-card\"},null==le||null===(t=le.filter(function(e){return null==e?void 0:e.is_visible}))||void 0===t?void 0:t.map(function(e,t){return i().createElement(h.A,{width:\"60%\",key:e.fieldName},i().createElement(f.A,{variant:\"h5\",color:b.T.mainBlue1,mb:.5},e.fieldName),function(e,t,n){return i().createElement(m.D0,{name:C(null==t?void 0:t.fieldName)},function(){var r,o;return i().createElement(x.A,{label:\"\",name:C(null==t?void 0:t.fieldName),onHandleChange:function(n){return function(e,t,n){e(C(t),w(n)),z(function(e){return V(V({},e),{},q({},C(t),Number(w(n))))}),function(e,t){\"SyngentaSalesManualLakhs\"===e?Z(S(t,null==G?void 0:G.TotalAnnualTurnOverLakhs)):\"SyngentaSalesSumridhiLakhs\"===e?ne(S(t,null==G?void 0:G.TotalAnnualTurnOverLakhs)):\"TotalAnnualTurnOverLakhs\"===e&&(Z(S(null==G?void 0:G.SyngentaSalesManualLakhs,t)),ne(S(null==G?void 0:G.SyngentaSalesSumridhiLakhs,t)))}(C(t),Number(w(n)))}(e,t.fieldName,n)},value:(null==t?void 0:t.fieldName)===E.Yr.SYNGENTA_SALES_SUMRIDHI&&0===(null==n?void 0:n.SyngentaSalesSumridhiLakhs)?\"NA\":\"₹ \".concat(null!==(r=null==n?void 0:n[+C(null==t?void 0:t.fieldName)])&&void 0!==r?r:null==n||null===(o=n[C(null==t?void 0:t.fieldName)])||void 0===o?void 0:o.toLocaleString()),disabled:!t.isEditable,customClassName:t.isEditable?\"\":\"disabled-field\"})})}(o,e,r),i().createElement(D.A,{errName:C(e.fieldName)}))})),i().createElement(h.A,{className:\"charts-wrapper\"},i().createElement(M,{heading:\"Retailer Share of Wallet(Manual)\",ChartValue:J}),i().createElement(M,{heading:\"Retailer Share of Wallet(Samrudhi)\",ChartValue:te}))),i().createElement(g.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},(null==me?void 0:me.status)!==E._S.REJECTED&&i().createElement(g.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},i().createElement(T.A,{buttonName:null!==(n=L(\"CANCEL\"))&&void 0!==n?n:\"\",color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return p(\"/\".concat(s.fp.SmartAgro,\"/\").concat(s.fp.Retailers))}}),i().createElement(T.A,{buttonName:oe===j.SAVE?L(\"SAVE\"):L(\"UPDATE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",type:\"submit\"})))):i().createElement(g.A,{alignItems:\"center\",justifyContent:\"center\",marginTop:25,marginBottom:25},i().createElement(f.A,{variant:\"h6\"},E.JS.NO_DATA_FOUND)))}))};n(94170),n(59904),n(40875),n(10287);var $=n(8239),X=n(37695),J=n(82348),Z=n(27203),ee=n(70380),te=n(56203);function ne(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return re(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(re(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,re(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,re(d,\"constructor\",u),re(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",re(u,o,\"GeneratorFunction\"),re(d),re(d,o,\"Generator\"),re(d,r,function(){return this}),re(d,\"toString\",function(){return\"[object Generator]\"}),(ne=function(){return{w:a,m:p}})()}function re(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}re=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){re(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},re(e,t,n,r)}function oe(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){oe(a,r,o,i,l,\"next\",e)}function l(e){oe(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const se=function(){var e,t=(0,a.useContext)(u.v),n=t.BackOfficeProps,s=n.globalStore.User,c=n.baseurl,d=t.triggerShowLoader,p=void 0===d?function(){}:d,g=(0,l.g)().id,h=ie((0,a.useState)({}),2),m=h[0],v=h[1],A=ie((0,a.useState)({}),2),y=A[0],E=A[1];(0,a.useEffect)(function(){_()},[]);var _=function(){var e=ae(ne().m(function e(){var t,n;return ne().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,I.Rd)(s,c,p,g);case 1:(t=e.v)&&(v(t),C([null==t?void 0:t.retailer_uuid])),e.n=3;break;case 2:e.p=2,n=e.v,console.log(n);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=ae(ne().m(function e(t){var n,r;return ne().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,I.Zn)(s,c,p,t);case 1:null!=(n=e.v)&&n.length&&E(null==n?void 0:n[0]),e.n=3;break;case 2:e.p=2,r=e.v,console.log(r);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();return i().createElement(X.M,{sx:{backgroundColor:b.w.palette.secondary.main,padding:\"16px\"}},i().createElement(J._,null,i().createElement(o.A,{direction:\"row\",justifyContent:\"space-between\",mt:2,mb:2},i().createElement(f.A,{variant:\"h2\"},(0,te.t)(\"SCANS_LIQUIDATION\"))),i().createElement($.Ay,{container:!0,columns:{xs:12},spacing:2},i().createElement($.Ay,{item:!0,xs:12},i().createElement(r.A,{className:\"user-detail-box\"},i().createElement(Z.A,{retailerDetails:m}))),i().createElement($.Ay,{item:!0,xs:12},i().createElement(r.A,{className:\"user-detail-box\"},i().createElement($.Ay,{container:!0,columns:{xs:12},rowGap:2,mb:2},i().createElement($.Ay,{item:!0,xs:3},i().createElement(r.A,{className:\"user-details-container\"},i().createElement(f.A,{variant:\"h5\",color:\"#1D2B3A\"},\"Total Points\"),i().createElement(f.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},null!==(e=null==y?void 0:y.loyalityPoint)&&void 0!==e?e:\"\"))),i().createElement($.Ay,{item:!0,xs:3},i().createElement(r.A,{className:\"user-details-container\"},i().createElement(f.A,{variant:\"h5\",color:\"#1D2B3A\"},\"Last Scan Time\"),i().createElement(f.A,{variant:\"h5\",color:\"#696F88\",component:\"span\"},null!=y&&y.lastScanTime?(0,ee.Yq)(null==y?void 0:y.lastScanTime,\"DD MMM, YYYY hh:mm A\"):\"\")))))))))};var ue=n(78208);function ce(e){return ce=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ce(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ce(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ce(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function me(e,t){if(e){if(\"string\"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ae=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,52014))}),ye=(0,a.lazy)(function(){return Promise.resolve().then(n.bind(n,30301))});const Ee=function(e){var t=e.RBACPermissions,n=(0,a.useContext)(u.v),f=n.BackOfficeProps,g=f.globalStore.User,h=f.baseurl,m=n.triggerShowLoader,v=(0,l.zy)().state,A=location.pathname.split(\"/\"),y=decodeURIComponent(A[A.length-1]),b=he((0,a.useState)({}),2),C=b[0],w=b[1],S={id:2,tabName:(0,te.t)(\"PERFORMANCE\"),path:\"performance\",component:i().createElement(ye,{retailerItem:null==v?void 0:v.retailerItem})},T={id:3,tabName:(0,te.t)(\"SCANS_LIQUIDATION\"),path:\"scans\",component:i().createElement(se,{retailerItem:null==v?void 0:v.retailerItem})},O={id:3,tabName:(0,te.t)(\"SHARE_OF_WALLET\"),path:\"share of wallet\",component:i().createElement(K,{retailerItem:null==v?void 0:v.retailerItem})},D=he(i().useState({tablist:[{id:1,tabName:(0,te.t)(\"RETAILER_DETAILS\"),path:\"user details\",component:i().createElement(Ae,{RBACPermissions:t,retailerItem:null==v?void 0:v.retailerItem,getRetailerDetails:w})}],currentTabs:y}),2),R=D[0],N=D[1];return(0,a.useEffect)(function(){var e;e={moduleName:E.Rk.RETAILERS,keys:[E.Rk.IS_RETAILERS_SOW_ENABLED,E.Rk.RETAILER_ENABLE_PERFORMANCE,E.Rk.RETAILER_SCAN_LIQUIDATION_ENABLED],apiName:E.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS},(0,ue.j)((0,_.rZ)(g,h),m,e).then(function(e){var t,n,r,o,a,i,l=\"true\"===(null===(t=(0,_.Ws)(E.Rk.IS_RETAILERS_SOW_ENABLED,e))||void 0===t?void 0:t.value)&&(null===(n=(0,_.Ws)(E.Rk.IS_RETAILERS_SOW_ENABLED,e))||void 0===n?void 0:n.isActive),s=\"true\"===(null===(r=(0,_.Ws)(E.Rk.RETAILER_ENABLE_PERFORMANCE,e))||void 0===r?void 0:r.value)&&(null===(o=(0,_.Ws)(E.Rk.RETAILER_ENABLE_PERFORMANCE,e))||void 0===o?void 0:o.isActive),u=\"true\"===(null===(a=(0,_.Ws)(E.Rk.RETAILER_SCAN_LIQUIDATION_ENABLED,e))||void 0===a?void 0:a.value)&&(null===(i=(0,_.Ws)(E.Rk.RETAILER_SCAN_LIQUIDATION_ENABLED,e))||void 0===i?void 0:i.isActive),c=[].concat(ge(R.tablist),ge(s?[S]:[]),ge(u?[T]:[]),ge(l?[O]:[]));N(pe(pe({},R),{},{tablist:c}))})},[]),i().createElement(p.T,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,null,i().createElement(c.A,{routePathName:[{name:s.F_.Retailers,path:s.fp.Retailers},{name:s.F_.Retailers_list,path:\"\".concat(s.fp.Retailers,\"/\").concat(s.fp.Retailer_List)},{name:null==C?void 0:C.shop_name,path:s.fp.Retailer_Details}]})))),i().createElement(d.A,{tabStateProps:R,handleTabChange:function(e){return t=e,void N(function(e){return pe(pe({},e),{},{currentTabs:t})});var t}}),i().createElement(l.BV,null,R.tablist.map(function(e){return i().createElement(l.qh,{key:e.path,path:\"\".concat(e.path),element:e.component})})))}},54903:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"bm\",{months:\"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo\".split(\"_\"),monthsShort:\"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des\".split(\"_\"),weekdays:\"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri\".split(\"_\"),weekdaysShort:\"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib\".split(\"_\"),weekdaysMin:\"Ka_Nt_Ta_Ar_Al_Ju_Si\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"MMMM [tile] D [san] YYYY\",LLL:\"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm\",LLLL:\"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm\"},calendar:{sameDay:\"[Bi lɛrɛ] LT\",nextDay:\"[Sini lɛrɛ] LT\",nextWeek:\"dddd [don lɛrɛ] LT\",lastDay:\"[Kunu lɛrɛ] LT\",lastWeek:\"dddd [tɛmɛnen lɛrɛ] LT\",sameElse:\"L\"},relativeTime:{future:\"%s kɔnɔ\",past:\"a bɛ %s bɔ\",s:\"sanga dama dama\",ss:\"sekondi %d\",m:\"miniti kelen\",mm:\"miniti %d\",h:\"lɛrɛ kelen\",hh:\"lɛrɛ %d\",d:\"tile kelen\",dd:\"tile %d\",M:\"kalo kelen\",MM:\"kalo %d\",y:\"san kelen\",yy:\"san %d\"},week:{dow:1,doy:4}})}(n(95093))},54947:e=>{e.exports=function(e){if(null==e)throw TypeError(\"Can't call method on  \"+e);return e}},55056:(e,t,n)=>{\"use strict\";e.exports=function(e){var t=n.nc;t&&e.setAttribute(\"nonce\",t)}},55081:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44576);r({global:!0,forced:o.globalThis!==o},{globalThis:o})},55120:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext({})},55373:(e,t,n)=>{\"use strict\";var r=n(98636),o=n(62642),a=n(74765);e.exports={formats:a,parse:o,stringify:r}},55481:(e,t,n)=>{var r=n(9325)[\"__core-js_shared__\"];e.exports=r},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===(\"function\"==typeof n&&n.prototype||t)}},55580:(e,t,n)=>{var r=n(56110)(n(9325),\"DataView\");e.exports=r},55655:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement(\"style\");return t.setAttribute(\"data-emotion\",e.key),void 0!==e.nonce&&t.setAttribute(\"nonce\",e.nonce),t.appendChild(document.createTextNode(\"\")),t.setAttribute(\"data-s\",\"\"),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function g(e,t){return t.push(e),e}var h=1,m=1,v=0,A=0,y=0,E=\"\";function b(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:h,column:m,length:i,return:\"\"}}function _(e,t){return i(b(\"\",null,null,\"\",null,null,0),e,{length:-e.length},t)}function C(){return y=A>0?c(E,--A):0,m--,10===y&&(m=1,h--),y}function w(){return y=A<v?c(E,A++):0,m++,10===y&&(m=1,h++),y}function S(){return c(E,A)}function T(){return A}function O(e,t){return d(E,e,t)}function D(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 R(e){return h=m=1,v=p(E=e),A=0,[]}function N(e){return E=\"\",e}function L(e){return l(O(A-1,x(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(y=S())&&y<33;)w();return D(e)>2||D(y)>3?\"\":\" \"}function M(e,t){for(;--t&&w()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return O(e,T()+(t<6&&32==S()&&32==w()))}function x(e){for(;w();)switch(y){case e:return A;case 34:case 39:34!==e&&39!==e&&x(y);break;case 40:41===e&&x(e);break;case 92:w()}return A}function I(e,t){for(;w()&&e+y!==57&&(e+y!==84||47!==S()););return\"/*\"+O(t,A-1)+\"*\"+a(47===e?e:w())}function k(e){for(;!D(S());)w();return O(e,A)}var B=\"-ms-\",F=\"-moz-\",j=\"-webkit-\",H=\"comm\",U=\"rule\",Y=\"decl\",G=\"@keyframes\";function z(e,t){for(var n=\"\",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||\"\";return n}function V(e,t,n,r){switch(e.type){case\"@layer\":if(e.children.length)break;case\"@import\":case Y:return e.return=e.return||e.value;case H:return\"\";case G:return e.return=e.value+\"{\"+z(e.children,r)+\"}\";case U:e.value=e.props.join(\",\")}return p(n=z(e.children,r))?e.return=e.value+\"{\"+n+\"}\":\"\"}function q(e){return N(W(\"\",null,null,null,[\"\"],e=R(e),0,[0],e))}function W(e,t,n,r,o,i,l,d,f){for(var h=0,m=0,v=l,A=0,y=0,E=0,b=1,_=1,O=1,D=0,R=\"\",N=o,x=i,B=r,F=R;_;)switch(E=D,D=w()){case 40:if(108!=E&&58==c(F,v-1)){-1!=u(F+=s(L(D),\"&\",\"&\\f\"),\"&\\f\")&&(O=-1);break}case 34:case 39:case 91:F+=L(D);break;case 9:case 10:case 13:case 32:F+=P(E);break;case 92:F+=M(T()-1,7);continue;case 47:switch(S()){case 42:case 47:g(K(I(w(),T()),t,n),f);break;default:F+=\"/\"}break;case 123*b:d[h++]=p(F)*O;case 125*b:case 59:case 0:switch(D){case 0:case 125:_=0;case 59+m:-1==O&&(F=s(F,/\\f/g,\"\")),y>0&&p(F)-v&&g(y>32?$(F+\";\",r,n,v-1):$(s(F,\" \",\"\")+\";\",r,n,v-2),f);break;case 59:F+=\";\";default:if(g(B=Q(F,t,n,h,m,o,d,R,N=[],x=[],v),i),123===D)if(0===m)W(F,t,B,B,N,i,v,d,x);else switch(99===A&&110===c(F,3)?100:A){case 100:case 108:case 109:case 115:W(e,B,B,r&&g(Q(e,B,B,0,0,o,d,R,o,N=[],v),x),o,x,v,d,r?N:x);break;default:W(F,B,B,B,[\"\"],x,0,d,x)}}h=m=y=0,b=O=1,R=F=\"\",v=l;break;case 58:v=1+p(F),y=E;default:if(b<1)if(123==D)--b;else if(125==D&&0==b++&&125==C())continue;switch(F+=a(D),D*b){case 38:O=m>0?1:(F+=\"\\f\",-1);break;case 44:d[h++]=(p(F)-1)*O,O=1;break;case 64:45===S()&&(F+=L(w())),A=S(),m=v=p(R=F+=k(T())),D++;break;case 45:45===E&&2==p(F)&&(b=0)}}return i}function Q(e,t,n,r,a,i,u,c,p,g,h){for(var m=a-1,v=0===a?i:[\"\"],A=f(v),y=0,E=0,_=0;y<r;++y)for(var C=0,w=d(e,m+1,m=o(E=u[y])),S=e;C<A;++C)(S=l(E>0?v[C]+\" \"+w:s(w,/&\\f/g,v[C])))&&(p[_++]=S);return b(e,t,n,0===a?U:c,p,g,h)}function K(e,t,n){return b(e,t,n,H,a(y),d(e,2,-2),0)}function $(e,t,n,r){return b(e,t,n,Y,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!D(o);)w();return O(e,A)},J=new WeakMap,Z=function(e){if(\"rule\"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;\"rule\"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(D(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=X(A-1,t,n);break;case 2:e[n]+=L(r);break;case 4:if(44===r){e[++n]=58===S()?\"&\\f\":\"\",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=w());return e}(R(e),t))}(t,o),l=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<l.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\\f/g,l[c]):l[c]+\" \"+i[s]}}},ee=function(e){if(\"decl\"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return=\"\",e.value=\"\")}};function te(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return j+\"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+F+e+B+e+e;case 6828:case 4268:return j+e+B+e+e;case 6165:return j+e+B+\"flex-\"+e+e;case 5187:return j+e+s(e,/(\\w+).+(:[^]+)/,j+\"box-$1$2\"+B+\"flex-$1$2\")+e;case 5443:return j+e+B+\"flex-item-\"+s(e,/flex-|-self/,\"\")+e;case 4675:return j+e+B+\"flex-line-pack\"+s(e,/align-content|flex-|-self/,\"\")+e;case 5548:return j+e+B+s(e,\"shrink\",\"negative\")+e;case 5292:return j+e+B+s(e,\"basis\",\"preferred-size\")+e;case 6060:return j+\"box-\"+s(e,\"-grow\",\"\")+j+e+B+s(e,\"grow\",\"positive\")+e;case 4554:return j+s(e,/([^-])(transform)/g,\"$1\"+j+\"$2\")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,j+\"$1\"),/(image-set)/,j+\"$1\"),e,\"\")+e;case 5495:case 3959:return s(e,/(image-set\\([^]*)/,j+\"$1$`$1\");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,j+\"box-pack:$3\"+B+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+j+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,j+\"$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(p(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,\"$1\"+j+\"$2-$3$1\"+F+(108==c(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~u(e,\"stretch\")?te(s(e,\"stretch\",\"fill-available\"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,p(e)-3-(~u(e,\"!important\")&&10))){case 107:return s(e,\":\",\":\"+j)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,\"$1\"+j+(45===c(e,14)?\"inline-\":\"\")+\"box$3$1\"+j+\"$2$3$1\"+B+\"$2box$3\")+e}break;case 5936:switch(c(e,t+11)){case 114:return j+e+B+s(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return j+e+B+s(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return j+e+B+s(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}return j+e+B+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=te(e.value,e.length);break;case G:return z([_(e,{value:s(e.value,\"@\",\"@\"+j)})],r);case U:if(e.length)return function(e,t){return e.map(t).join(\"\")}(e.props,function(t){switch(function(e){return(e=/(::plac\\w+|:read-\\w+)/.exec(e))?e[0]:e}(t)){case\":read-only\":case\":read-write\":return z([_(e,{props:[s(t,/:(read-\\w+)/,\":-moz-$1\")]})],r);case\"::placeholder\":return z([_(e,{props:[s(t,/:(plac\\w+)/,\":\"+j+\"input-$1\")]}),_(e,{props:[s(t,/:(plac\\w+)/,\":-moz-$1\")]}),_(e,{props:[s(t,/:(plac\\w+)/,B+\"input-$1\")]})],r)}return\"\"})}}],re=function(e){var t=e.key;if(\"css\"===t){var n=document.querySelectorAll(\"style[data-emotion]:not([data-s])\");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute(\"data-emotion\").indexOf(\" \")&&(document.head.appendChild(e),e.setAttribute(\"data-s\",\"\"))})}var o,a,i=e.stylisPlugins||ne,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^=\"'+t+' \"]'),function(e){for(var t=e.getAttribute(\"data-emotion\").split(\" \"),n=1;n<t.length;n++)l[t[n]]=!0;s.push(e)});var u,c,d,p,g=[V,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(c=[Z,ee].concat(i,g),d=f(c),function(e,t,n,r){for(var o=\"\",a=0;a<d;a++)o+=c[a](e,t,n,r)||\"\";return o});a=function(e,t,n,r){u=n,z(q(e?e+\"{\"+t.styles+\"}\":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return m.sheet.hydrate(s),m}},55802:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"th\",{months:\"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม\".split(\"_\"),monthsShort:\"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.\".split(\"_\"),monthsParseExact:!0,weekdays:\"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์\".split(\"_\"),weekdaysShort:\"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์\".split(\"_\"),weekdaysMin:\"อา._จ._อ._พ._พฤ._ศ._ส.\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY เวลา H:mm\",LLLL:\"วันddddที่ D MMMM YYYY เวลา H:mm\"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return\"หลังเที่ยง\"===e},meridiem:function(e,t,n){return e<12?\"ก่อนเที่ยง\":\"หลังเที่ยง\"},calendar:{sameDay:\"[วันนี้ เวลา] LT\",nextDay:\"[พรุ่งนี้ เวลา] LT\",nextWeek:\"dddd[หน้า เวลา] LT\",lastDay:\"[เมื่อวานนี้ เวลา] LT\",lastWeek:\"[วัน]dddd[ที่แล้ว เวลา] LT\",sameElse:\"L\"},relativeTime:{future:\"อีก %s\",past:\"%sที่แล้ว\",s:\"ไม่กี่วินาที\",ss:\"%d วินาที\",m:\"1 นาที\",mm:\"%d นาที\",h:\"1 ชั่วโมง\",hh:\"%d ชั่วโมง\",d:\"1 วัน\",dd:\"%d วัน\",w:\"1 สัปดาห์\",ww:\"%d สัปดาห์\",M:\"1 เดือน\",MM:\"%d เดือน\",y:\"1 ปี\",yy:\"%d ปี\"}})}(n(95093))},55808:(e,t,n)=>{var r=n(12507)(\"toUpperCase\");e.exports=r},55854:(e,t,n)=>{\"use strict\";n.d(t,{Q:()=>i,T:()=>l}),n(48598),n(62062),n(26099),n(3362);var r=n(95692),o=n(8085),a=n(19940),i=function(e,t,n){var i,l,s={},u=\"moduleName=\"+a.Sn.EVENT_BASELINE_MODULE,c=a.Sf.map(function(e){return\"keys=\"+e.label}).join(\"&\");return s.domain=t,s.endPoint=o.p.GET_EVENTS_CONFIG_DATA+\"?\"+u+\"&\"+c,s.customHeaders={\"role-id\":\"\",\"bu-id\":null==e||null===(i=e.selectedBusinessUnit)||void 0===i?void 0:i.bu_id,\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.showLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(s))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},l=function(e,t,n,a){var i,l={};return l.domain=t,l.endPoint=\"\".concat(o.p.GET_BASELINE_CONFIG_TEMPLATE_DATA),l.payLoad={baseline_type:a},l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.showLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})}},55860:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(28466),u=n(11848),c=n(39770),d=n(41159),p=n(79716),f=n(18850),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"PrivateSwitchBase\",e)}(0,g.A)(\"PrivateSwitchBase\",[\"root\",\"checked\",\"disabled\",\"input\",\"edgeStart\",\"edgeEnd\"]);var v=n(74848);const A=[\"autoFocus\",\"checked\",\"checkedIcon\",\"className\",\"defaultChecked\",\"disabled\",\"disableFocusRipple\",\"edge\",\"icon\",\"id\",\"inputProps\",\"inputRef\",\"name\",\"onBlur\",\"onChange\",\"onFocus\",\"readOnly\",\"required\",\"tabIndex\",\"type\",\"value\"],y=(0,u.Ay)(f.A,{name:\"MuiSwitchBase\"})(({ownerState:e})=>(0,o.A)({padding:9,borderRadius:\"50%\"},\"start\"===e.edge&&{marginLeft:\"small\"===e.size?-3:-12},\"end\"===e.edge&&{marginRight:\"small\"===e.size?-3:-12})),E=(0,u.Ay)(\"input\",{name:\"MuiSwitchBase\",shouldForwardProp:c.A})({cursor:\"inherit\",position:\"absolute\",opacity:0,width:\"100%\",height:\"100%\",top:0,left:0,margin:0,padding:0,zIndex:1}),b=a.forwardRef(function(e,t){const{autoFocus:n,checked:a,checkedIcon:u,className:c,defaultChecked:f,disabled:g,disableFocusRipple:h=!1,edge:b=!1,icon:_,id:C,inputProps:w,inputRef:S,name:T,onBlur:O,onChange:D,onFocus:R,readOnly:N,required:L=!1,tabIndex:P,type:M,value:x}=e,I=(0,r.A)(e,A),[k,B]=(0,d.A)({controlled:a,default:Boolean(f),name:\"SwitchBase\",state:\"checked\"}),F=(0,p.A)();let j=g;F&&void 0===j&&(j=F.disabled);const H=\"checkbox\"===M||\"radio\"===M,U=(0,o.A)({},e,{checked:k,disabled:j,disableFocusRipple:h,edge:b}),Y=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:[\"root\",n&&\"checked\",r&&\"disabled\",o&&`edge${(0,s.A)(o)}`],input:[\"input\"]};return(0,l.A)(a,m,t)})(U);return(0,v.jsxs)(y,(0,o.A)({component:\"span\",className:(0,i.A)(Y.root,c),centerRipple:!0,focusRipple:!h,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{R&&R(e),F&&F.onFocus&&F.onFocus(e)},onBlur:e=>{O&&O(e),F&&F.onBlur&&F.onBlur(e)},ownerState:U,ref:t},I,{children:[(0,v.jsx)(E,(0,o.A)({autoFocus:n,checked:a,defaultChecked:f,className:Y.input,disabled:j,id:H?C:void 0,name:T,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;B(t),D&&D(e,t)},readOnly:N,ref:S,required:L,ownerState:U,tabIndex:P,type:M},\"checkbox\"===M&&void 0===x?{}:{value:x},w)),k?u:_]}))})},55966:(e,t,n)=>{\"use strict\";var r=n(79306),o=n(64117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},56e3:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ss\",{months:\"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\"_\"),monthsShort:\"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo\".split(\"_\"),weekdays:\"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo\".split(\"_\"),weekdaysShort:\"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg\".split(\"_\"),weekdaysMin:\"Li_Us_Lb_Lt_Ls_Lh_Ug\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendar:{sameDay:\"[Namuhla nga] LT\",nextDay:\"[Kusasa nga] LT\",nextWeek:\"dddd [nga] LT\",lastDay:\"[Itolo nga] LT\",lastWeek:\"dddd [leliphelile] [nga] LT\",sameElse:\"L\"},relativeTime:{future:\"nga %s\",past:\"wenteka nga %s\",s:\"emizuzwana lomcane\",ss:\"%d mzuzwana\",m:\"umzuzu\",mm:\"%d emizuzu\",h:\"lihora\",hh:\"%d emahora\",d:\"lilanga\",dd:\"%d emalanga\",M:\"inyanga\",MM:\"%d tinyanga\",y:\"umnyaka\",yy:\"%d iminyaka\"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?\"ekuseni\":e<15?\"emini\":e<19?\"entsambama\":\"ebusuku\"},meridiemHour:function(e,t){return 12===e&&(e=0),\"ekuseni\"===t?e:\"emini\"===t?e>=11?e:e+12:\"entsambama\"===t||\"ebusuku\"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\\d{1,2}/,ordinal:\"%d\",week:{dow:1,doy:4}})}(n(95093))},56110:(e,t,n)=>{var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},56195:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-gb\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},56203:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>de,t:()=>pe});var r=n(82284),o=n(23029),a=n(92901),i=n(9417),l=n(63662);function s(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&(0,l.A)(e,t)}function u(e,t){if(t&&(\"object\"==(0,r.A)(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return(0,i.A)(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d=n(64467),p=n(96369),f=n(73893),g=n(27800),h=n(76562);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var A={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.init(t,n)}return(0,a.A)(e,[{key:\"init\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||\"i18next:\",this.logger=e||A,this.options=t,this.debug=t.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,n,r){return r&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(n).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(t){return new e(this.logger,v(v({},{prefix:\"\".concat(this.prefix,\":\").concat(t,\":\")}),this.options))}},{key:\"clone\",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),E=function(){function e(){(0,o.A)(this,e),this.observers={}}return(0,a.A)(e,[{key:\"on\",value:function(e,t){var n=this;return e.split(\" \").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function b(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function _(e){return null==e?\"\":\"\"+e}function C(e,t,n){function r(e){return e&&e.indexOf(\"###\")>-1?e.replace(/###/g,\".\"):e}function o(){return!e||\"string\"==typeof e}for(var a=\"string\"!=typeof t?[].concat(t):t.split(\".\");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function w(e,t,n){var r=C(e,t,Object);r.obj[r.k]=n}function S(e,t){var n=C(e,t),r=n.obj,o=n.k;if(r)return r[o]}function T(e,t,n){for(var r in t)\"__proto__\"!==r&&\"constructor\"!==r&&(r in e?\"string\"==typeof e[r]||e[r]instanceof String||\"string\"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):T(e[r],t[r],n):e[r]=t[r]);return e}function O(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var D={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function R(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return D[e]}):e}var N=\"undefined\"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(\"MSIE\")>-1,L=[\" \",\",\",\"?\",\"!\",\";\"];function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\".\";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;a<r.length;++a){if(!o)return;if(\"string\"==typeof o[r[a]]&&a+1<r.length)return;if(void 0===o[r[a]]){for(var i=2,l=r.slice(a,a+i).join(n),s=o[l];void 0===s&&r.length>a+i;)i++,s=o[l=r.slice(a,a+i).join(n)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(l)){if(\"string\"==typeof s)return s;if(l&&\"string\"==typeof s[l])return s[l]}var u=r.slice(a+i).join(n);return u?P(s,u,n):void 0}o=o[r[a]]}return o}}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var I=function(e){s(l,e);var t,n,r=(t=l,n=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)});function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return(0,o.A)(this,l),t=r.call(this),N&&E.call((0,i.A)(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,a.A)(l,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&\"string\"!=typeof n&&(i=i.concat(n)),n&&\"string\"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(\".\")>-1&&(i=e.split(\".\"));var l=S(this.data,i);return l||!a||\"string\"!=typeof n?l:P(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:\"addResource\",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(\".\")>-1&&(r=t,t=(i=e.split(\".\"))[1]),this.addNamespaces(t),w(this.data,i,r),o.silent||this.emit(\"added\",e,t,n,r)}},{key:\"addResources\",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)\"string\"!=typeof n[o]&&\"[object Array]\"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit(\"added\",e,t,n)}},{key:\"addResourceBundle\",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(\".\")>-1&&(r=n,n=t,t=(i=e.split(\".\"))[1]),this.addNamespaces(t);var l=S(this.data,i)||{};r?T(l,n,o):l=x(x({},l),n),w(this.data,i,l),a.silent||this.emit(\"added\",e,t,n)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t||(t=this.options.defaultNS),\"v1\"===this.options.compatibilityAPI?x(x({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"hasLanguageSomeTranslations\",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:\"toJSON\",value:function(){return this.data}}]),l}(E),k={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))}),t}};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j={},H=function(e){s(d,e);var t,n,l=(t=d,n=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)});function d(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.A)(this,d),t=l.call(this),N&&E.call((0,i.A)(t)),function(e,t,n){[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"].forEach(function(e){t[e]&&(n[e]=t[e])})}(0,e,(0,i.A)(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=y.create(\"translator\"),t}return(0,a.A)(d,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:\"extractFromKey\",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=\":\");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||\"\",n=n||\"\";var r=L.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return!0;var o=new RegExp(\"(\".concat(r.map(function(e){return\"?\"===e?\"\\\\?\":e}).join(\"|\"),\")\")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return\"string\"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:\"translate\",value:function(e,t,n){var o=this;if(\"object\"!==(0,r.A)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),\"object\"===(0,r.A)(t)&&(t=F({},t)),t||(t={}),null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),s=l.key,u=l.namespaces,c=u[u.length-1],p=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&\"cimode\"===p.toLowerCase()){if(f){var g=t.nsSeparator||this.options.nsSeparator;return a?{res:\"\".concat(c).concat(g).concat(s),usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c}:\"\".concat(c).concat(g).concat(s)}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:c}:s}var h=this.resolve(e,t),m=h&&h.res,v=h&&h.usedKey||s,A=h&&h.exactUsedKey||s,y=Object.prototype.toString.apply(m),E=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&m&&\"string\"!=typeof m&&\"boolean\"!=typeof m&&\"number\"!=typeof m&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(y)<0&&(\"string\"!=typeof E||\"[object Array]\"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,F(F({},t),{},{ns:u})):\"key '\".concat(s,\" (\").concat(this.language,\")' returned an object instead of string.\");return a?(h.res=_,h):_}if(i){var C=\"[object Array]\"===y,w=C?[]:{},S=C?A:v;for(var T in m)if(Object.prototype.hasOwnProperty.call(m,T)){var O=\"\".concat(S).concat(i).concat(T);w[T]=this.translate(O,F(F({},t),{joinArrays:!1,ns:u})),w[T]===O&&(w[T]=m[T])}m=w}}else if(b&&\"string\"==typeof E&&\"[object Array]\"===y)(m=m.join(E))&&(m=this.extendTranslation(m,e,t,n));else{var D=!1,R=!1,N=void 0!==t.count&&\"string\"!=typeof t.count,L=d.hasDefaultValue(t),P=N?this.pluralResolver.getSuffix(p,t.count,t):\"\",M=t[\"defaultValue\".concat(P)]||t.defaultValue;!this.isValidLookup(m)&&L&&(D=!0,m=M),this.isValidLookup(m)||(R=!0,m=s);var x=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:m,I=L&&M!==m&&this.options.updateMissing;if(R||D||I){if(this.logger.log(I?\"updateKey\":\"missingKey\",p,c,s,I?M:m),i){var k=this.resolve(s,F(F({},t),{},{keySeparator:!1}));k&&k.res&&this.logger.warn(\"Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.\")}var B=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&j&&j[0])for(var H=0;H<j.length;H++)B.push(j[H]);else\"all\"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var U=function(e,n,r){var a=L&&r!==m?r:x;o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,n,a,I,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,n,a,I,t),o.emit(\"missingKey\",e,c,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?B.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(n){U([e],s+n,t[\"defaultValue\".concat(n)]||M)})}):U(B,s,M))}m=this.extendTranslation(m,e,t,h,n),R&&m===s&&this.options.appendNamespaceToMissingKey&&(m=\"\".concat(c,\":\").concat(s)),(R||D)&&this.options.parseMissingKeyHandler&&(m=\"v1\"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?\"\".concat(c,\":\").concat(s):s,D?m:void 0):this.options.parseMissingKeyHandler(m))}return a?(h.res=m,h):m}},{key:\"extendTranslation\",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,F(F({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(F(F({},n),{interpolation:F(F({},this.options.interpolation),n.interpolation)}));var i,l=\"string\"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);i=s&&s.length}var u=n.replace&&\"string\"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=F(F({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);i<(c&&c.length)&&(n.nest=!1)}!n.lng&&\"v1\"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn(\"It seems you are nesting recursively key: \".concat(r[0],\" in key: \").concat(t[0])),null):a.translate.apply(a,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p=\"string\"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=k.handle(p,e,t,this.options&&this.options.postProcessPassResolved?F({i18nResolved:r},n):n,this)),e}},{key:\"resolve\",value:function(e){var t,n,r,o,a,i=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var s=i.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;i.options.fallbackNS&&(c=c.concat(i.options.fallbackNS));var d=void 0!==l.count&&\"string\"!=typeof l.count,p=d&&!l.ordinal&&0===l.count&&i.pluralResolver.shouldUseIntlApi(),f=void 0!==l.context&&(\"string\"==typeof l.context||\"number\"==typeof l.context)&&\"\"!==l.context,g=l.lngs?l.lngs:i.languageUtils.toResolveHierarchy(l.lng||i.language,l.fallbackLng);c.forEach(function(e){i.isValidLookup(t)||(a=e,!j[\"\".concat(g[0],\"-\").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(j[\"\".concat(g[0],\"-\").concat(e)]=!0,i.logger.warn('key \"'.concat(n,'\" for languages \"').concat(g.join(\", \"),'\" won\\'t get resolved as namespace \"').concat(a,'\" was not yet loaded'),\"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),g.forEach(function(n){if(!i.isValidLookup(t)){o=n;var a,s=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(s,u,n,e,l);else{var c;d&&(c=i.pluralResolver.getSuffix(n,l.count,l));var g=\"\".concat(i.options.pluralSeparator,\"zero\");if(d&&(s.push(u+c),p&&s.push(u+g)),f){var h=\"\".concat(u).concat(i.options.contextSeparator).concat(l.context);s.push(h),d&&(s.push(h+c),p&&s.push(h+g))}}for(;a=s.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,l))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:\"hasDefaultValue\",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&\"defaultValue\"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),d}(E);function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=function(){function e(t){(0,o.A)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create(\"languageUtils\")}return(0,a.A)(e,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),\"x\"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&e.indexOf(\"-\")>-1){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],n=e.split(\"-\");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),\"sgn\"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=U(n[2].toLowerCase()))),n.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isSupportedCode\",value:function(e){return(\"languageOnly\"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:\"getBestMatchFromCodes\",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){return e===r?e:e.indexOf(\"-\")<0&&r.indexOf(\"-\")<0?void 0:0===e.indexOf(r)?e:void 0})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"function\"==typeof e&&(e=e(t)),\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:\"toResolveHierarchy\",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn(\"rejecting language code not found in supportedLngs: \".concat(e)))};return\"string\"==typeof e&&e.indexOf(\"-\")>-1?(\"languageOnly\"!==this.options.load&&a(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&a(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&a(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&a(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))}),o}}]),e}(),G=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"tl\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kk\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"ht\",\"id\",\"ja\",\"jbo\",\"ka\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\",\"iw\"],nr:[1,2,20,21],fc:22}],z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},V=[\"v1\",\"v2\",\"v3\"],q={zero:0,one:1,two:2,few:3,many:4,other:5},W=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.languageUtils=t,this.options=r,this.logger=y.create(\"pluralResolver\"),this.options.compatibilityJSON&&\"v4\"!==this.options.compatibilityJSON||\"undefined\"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON=\"v3\",this.logger.error(\"Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.\")),this.rules=(n={},G.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:z[e.fc]}})}),n)}return(0,a.A)(e,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?\"ordinal\":\"cardinal\"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:\"getPluralFormsOfKey\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return\"\".concat(t).concat(e)})}},{key:\"getSuffixes\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return q[e]-q[t]}).map(function(e){return\"\".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:\"getSuffix\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?\"\".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn(\"no plural rule found for: \".concat(e)),\"\")}},{key:\"getSuffixRetroCompatible\",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:\"shouldUseIntlApi\",value:function(){return!V.includes(this.options.compatibilityJSON)}}]),e}();function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\".\",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(e,t,n){var r=S(e,n);return void 0!==r?r:S(t,n)}(e,t,n);return!a&&o&&\"string\"==typeof n&&void 0===(a=P(e,n,r))&&(a=P(t,n,r)),a}var X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.logger=y.create(\"interpolator\"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,a.A)(e,[{key:\"init\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:R,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||\"{{\",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||\"}}\",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||\",\",this.unescapePrefix=t.unescapeSuffix?\"\":t.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":t.unescapeSuffix||\"\",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O(\"$t(\"),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(\")\"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||\",\",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var n=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,\"g\")}},{key:\"interpolate\",value:function(e,t,n,r){var o,a,i,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=$(t,s,e,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(o,void 0,n,K(K(K({},r),t),{},{interpolationkey:e})):o}var a=e.split(l.formatSeparator),i=a.shift().trim(),u=a.join(l.formatSeparator).trim();return l.format($(t,s,i,l.options.keySeparator,l.options.ignoreJSONStructure),u,n,K(K(K({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach(function(t){for(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=c(n)))if(\"function\"==typeof d){var s=d(e,o,r);a=\"string\"==typeof s?s:\"\"}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=\"\";else{if(p){a=o[0];continue}l.logger.warn(\"missed to pass in variable \".concat(n,\" for interpolating \").concat(e)),a=\"\"}else\"string\"==typeof a||l.useRawValueToEscape||(a=_(a));var u=t.safeValue(a);if(e=e.replace(o[0],u),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=l.maxReplaces)break}}),e}},{key:\"nest\",value:function(e,t){var n,r,o,a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp(\"\".concat(n,\"[ ]*{\"))),a=\"{\".concat(r[1]);e=r[0];var i=(a=this.interpolate(a,o)).match(/'/g),l=a.match(/\"/g);(i&&i.length%2==0&&!l||l.length%2!=0)&&(a=a.replace(/'/g,'\"'));try{o=JSON.parse(a),t&&(o=K(K({},t),o))}catch(t){return this.logger.warn(\"failed parsing options string in nesting for key \".concat(e),t),\"\".concat(e).concat(n).concat(a)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var s=[];(o=(o=K({},i)).replace&&\"string\"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),s=c,u=!0}if((r=t(l.call(this,n[1].trim(),o),o))&&n[0]===e&&\"string\"!=typeof r)return r;\"string\"!=typeof r&&(r=_(r)),r||(this.logger.warn(\"missed to resolve \".concat(n[1],\" for nesting \").concat(e)),r=\"\"),u&&(r=s.reduce(function(e,t){return a.format(e,t,i.lng,K(K({},i),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e){var t={};return function(n,r,o){var a=r+JSON.stringify(o),i=t[a];return i||(i=e(r,o),t[a]=i),i(n)}}var te=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.logger=y.create(\"formatter\"),this.options=t,this.formats={number:ee(function(e,t){var n=new Intl.NumberFormat(e,Z({},t));return function(e){return n.format(e)}}),currency:ee(function(e,t){var n=new Intl.NumberFormat(e,Z(Z({},t),{},{style:\"currency\"}));return function(e){return n.format(e)}}),datetime:ee(function(e,t){var n=new Intl.DateTimeFormat(e,Z({},t));return function(e){return n.format(e)}}),relativetime:ee(function(e,t){var n=new Intl.RelativeTimeFormat(e,Z({},t));return function(e){return n.format(e,t.range||\"day\")}}),list:ee(function(e,t){var n=new Intl.ListFormat(e,Z({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,a.A)(e,[{key:\"init\",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||\",\"}},{key:\"add\",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:\"addCached\",value:function(e,t){this.formats[e.toLowerCase().trim()]=ee(t)}},{key:\"format\",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf(\"(\")>-1){var r=e.split(\"(\");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);\"currency\"===t&&o.indexOf(\":\")<0?n.currency||(n.currency=o.trim()):\"relativetime\"===t&&o.indexOf(\":\")<0?n.range||(n.range=o.trim()):o.split(\";\").forEach(function(e){if(e){var t,r=(t=e.split(\":\"),(0,p.A)(t)||(0,f.A)(t)||(0,g.A)(t)||(0,h.A)()),o=r[0],a=r.slice(1).join(\":\").trim().replace(/^'+|'+$/g,\"\");n[o.trim()]||(n[o.trim()]=a),\"false\"===a&&(n[o.trim()]=!1),\"true\"===a&&(n[o.trim()]=!0),isNaN(a)||(n[o.trim()]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}}(t),i=a.formatName,l=a.formatOptions;if(r.formats[i]){var s=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||n;s=r.formats[i](e,c,Z(Z(Z({},l),o),u))}catch(e){r.logger.warn(e)}return s}return r.logger.warn(\"there was no format function for \".concat(i)),e},e)}}]),e}();function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oe=function(e){s(l,e);var t,n,r=(t=l,n=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)});function l(e,t,n){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.A)(this,l),a=r.call(this),N&&E.call((0,i.A)(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=s,a.logger=y.create(\"backendConnector\"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,s.backend,s),a}return(0,a.A)(l,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a={},i={},l={},s={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var l=\"\".concat(e,\"|\").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?void 0===i[l]&&(i[l]=!0):(o.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===a[l]&&(a[l]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}},{key:\"loaded\",value:function(e,t,n){var r=e.split(\"|\"),o=r[0],a=r[1];t&&this.emit(\"failedLoading\",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){var r,l,s,u,c;r=n.loaded,l=a,(u=(s=C(r,[o],Object)).obj)[c=s.k]=u[c]||[],u[c].push(l),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(\"loaded\",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:a,callback:i});else{this.readingCalls++;var l=function(l,s){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}l&&s&&o<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*a,i)},a):i(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{var u=s(e,t);u&&\"function\"==typeof u.then?u.then(function(e){return l(null,e)}).catch(l):l(null,u)}catch(e){l(e)}}}},{key:\"prepareLoading\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),o&&o();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:\"reload\",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:\"loadOne\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",r=e.split(\"|\"),o=r[0],a=r[1];this.read(o,a,\"read\",void 0,void 0,function(r,i){r&&t.logger.warn(\"\".concat(n,\"loading namespace \").concat(a,\" for language \").concat(o,\" failed\"),r),!r&&i&&t.logger.log(\"\".concat(n,\"loaded namespace \").concat(a,\" for language \").concat(o),i),t.loaded(e,r,i)})}},{key:\"saveMissing\",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key \"'.concat(n,'\" as the namespace \"').concat(t,'\" was not yet loaded'),\"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\");else if(null!=n&&\"\"!==n){if(this.backend&&this.backend.create){var l=re(re({},a),{},{isUpdate:o}),s=this.backend.create.bind(this.backend);if(s.length<6)try{var u;(u=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&\"function\"==typeof u.then?u.then(function(e){return i(null,e)}).catch(i):i(null,u)}catch(e){i(e)}else s(e,t,n,r,i,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),l}(E);function ae(){return{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===(0,r.A)(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===(0,r.A)(e[2])||\"object\"===(0,r.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",nestingOptionsSeparator:\",\",maxReplaces:1e3,skipOnVariables:!0}}}function ie(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(\"cimode\")<0&&(e.supportedLngs=e.supportedLngs.concat([\"cimode\"])),e}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ue(){}var ce=function(e){s(d,e);var t,n,l=(t=d,n=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=c(t);if(n){var o=c(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)});function d(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,o.A)(this,d),e=l.call(this),N&&E.call((0,i.A)(e)),e.options=ie(n),e.services={},e.logger=y,e.modules={external:[]},t=(0,i.A)(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){\"function\"==typeof t[e]&&(t[e]=t[e].bind(t))}),r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,(0,i.A)(e));setTimeout(function(){e.init(n,r)},0)}return e}return(0,a.A)(d,[{key:\"init\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;\"function\"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(\"string\"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf(\"translation\")<0&&(t.defaultNS=t.ns[0]));var r=ae();function o(e){return e?\"function\"==typeof e?new e:e:null}if(this.options=se(se(se({},r),this.options),ie(t)),\"v1\"!==this.options.compatibilityAPI&&(this.options.interpolation=se(se({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?y.init(o(this.modules.logger),this.options):y.init(null,this.options),this.modules.formatter?a=this.modules.formatter:\"undefined\"!=typeof Intl&&(a=te);var i=new Y(this.options);this.store=new I(this.options.resources,this.options);var l=this.services;l.logger=y,l.resourceStore=this.store,l.languageUtils=i,l.pluralResolver=new W(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(a),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new X(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new oe(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on(\"*\",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new H(this.services,this.options),this.translator.on(\"*\",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&\"dev\"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn(\"init: no languageDetector is used and no lng is defined\"),[\"getResource\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),[\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=b(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn(\"init: i18next is already initialized. You should call init just once!\"),e.isInitialized=!0,e.options.isClone||e.logger.log(\"initialized\",e.options),e.emit(\"initialized\",e.options),u.resolve(r),n(t,r)};if(e.languages&&\"v1\"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:\"loadResources\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,r=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&\"cimode\"===r.toLowerCase())return n();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:\"reloadResources\",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ue),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:\"use\",value:function(e){if(!e)throw new Error(\"You are passing an undefined module! Please check the object you are passing to i18next.use()\");if(!e.type)throw new Error(\"You are passing a wrong module! Please check the object you are passing to i18next.use()\");return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&k.addPostProcessor(e),\"formatter\"===e.type&&(this.modules.formatter=e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"setResolvedLanguage\",value:function(e){if(e&&this.languages&&!([\"cimode\",\"dev\"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!([\"cimode\",\"dev\"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:\"changeLanguage\",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit(\"languageChanging\",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i=\"string\"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit(\"languageChanged\",a),n.logger.log(\"languageChanged\",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:\"getFixedT\",value:function(e,t,n){var o=this,a=function e(t,a){var i;if(\"object\"!==(0,r.A)(a)){for(var l=arguments.length,s=new Array(l>2?l-2:0),u=2;u<l;u++)s[u-2]=arguments[u];i=o.options.overloadTranslationOptionHandler([t,a].concat(s))}else i=se({},a);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var c,d=o.options.keySeparator||\".\";return c=i.keyPrefix&&Array.isArray(t)?t.map(function(e){return\"\".concat(i.keyPrefix).concat(d).concat(e)}):i.keyPrefix?\"\".concat(i.keyPrefix).concat(d).concat(t):t,o.t(c,i)};return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if(\"cimode\"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state[\"\".concat(e,\"|\").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,i);if(void 0!==l)return l}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}},{key:\"loadNamespaces\",value:function(e,t){var n=this,r=b();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var n=b();\"string\"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return\"rtl\";var t=this.services&&this.services.languageUtils||new Y(ae());return[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ug\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\",\"ckb\"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(\"-arab\")>1?\"rtl\":\"ltr\"}},{key:\"cloneInstance\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,r=se(se(se({},this.options),t),{isClone:!0}),o=new d(r);return void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),[\"store\",\"services\",\"language\"].forEach(function(t){o[t]=e[t]}),o.services=se({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new H(o.services,o.options),o.translator.on(\"*\",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(r,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:\"toJSON\",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),d}(E);(0,d.A)(ce,\"createInstance\",function(){return new ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var de=ce.createInstance();de.createInstance=ce.createInstance,de.createInstance,de.dir,de.init,de.loadResources,de.reloadResources,de.use,de.changeLanguage,de.getFixedT;var pe=de.t;de.exists,de.setDefaultNamespace,de.hasLoadedNamespace,de.loadNamespaces,de.loadLanguages},56236:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z\"}),\"CalendarTodayOutlined\")},56254:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>I}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(2892),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(49764),i=n.n(a),l=n(14073),s=n(98587),u=n(58168),c=n(34164),d=n(31609),p=n(75659),f=n(13967),g=n(16606),h=n(8676),m=n(58749),v=n(74848);const A=[\"className\",\"component\",\"disableGutters\",\"fixed\",\"maxWidth\",\"classes\"],y=(0,m.A)(),E=(0,h.A)(\"div\",{name:\"MuiContainer\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,f.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),b=e=>(0,g.A)({props:e,name:\"MuiContainer\",defaultTheme:y});var _=n(28466),C=n(11848),w=n(25669);const S=function(e={}){const{createStyledComponent:t=E,useThemeProps:n=b,componentName:o=\"MuiContainer\"}=e,a=t(({theme:e,ownerState:t})=>(0,u.A)({width:\"100%\",marginLeft:\"auto\",boxSizing:\"border-box\",marginRight:\"auto\",display:\"block\"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(\"sm\")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,u.A)({},\"xs\"===t.maxWidth&&{[e.breakpoints.up(\"xs\")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&\"xs\"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}})),i=r.forwardRef(function(e,t){const r=n(e),{className:i,component:l=\"div\",disableGutters:g=!1,fixed:h=!1,maxWidth:m=\"lg\"}=r,y=(0,s.A)(r,A),E=(0,u.A)({},r,{component:l,disableGutters:g,fixed:h,maxWidth:m}),b=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:a}=e,i={root:[\"root\",a&&`maxWidth${(0,f.A)(String(a))}`,r&&\"fixed\",o&&\"disableGutters\"]};return(0,p.A)(i,e=>(0,d.Ay)(t,e),n)})(E,o);return(0,v.jsx)(a,(0,u.A)({as:l,ownerState:E,className:(0,c.A)(b.root,i),ref:t},y))});return i}({createStyledComponent:(0,C.Ay)(\"div\",{name:\"MuiContainer\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,_.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,w.b)({props:e,name:\"MuiContainer\"})}),T=S;var O=n(7986),D=n(50261),R=n(34195),N=n(6398),L=n(17630),P=(0,N.A)({container:{display:\"flex\",justifyContent:\"center\",width:\"100%\"},paginationWrapper:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",width:\"100%\"},paginationContainer:{display:\"flex !important\",listStyle:\"none\",alignItems:\"center\",padding:\"0 !important\",margin:0,maxWidth:\"none !important\"},pageitem:{alignItems:\"center\",display:\"flex\",font:\"normal normal 400 14px NotoSans-Regular !important\",height:30,justifyContent:\"center\",minWidth:30,borderRadius:L.w.shape.borderRadius,marginLeft:8,backgroundColor:L.w.palette.secondary.dark,color:L.w.palette.info.dark,border:\"1px solid \".concat(L.w.palette.grey[100]),cursor:\"pointer\",maxWidth:\"max-content\",\"&:hover\":{borderColor:\"#0071cd\"},\"&.disabled\":{opacity:\"0.4\",\"& a\":{cursor:\"not-allowed\"}},\"& a\":{\"& svg\":{paddingTop:5,color:\"#A3A9B9\"},padding:\"6px 8px\"}},arrowItem:{composes:\"$pageitem\",width:\"30px !important\"},activePageItem:{color:L.w.palette.secondary.dark,backgroundColor:L.w.palette.success.main,border:\"1px solid \".concat(L.w.palette.success.light)},entriesInfo:{minWidth:\"auto\",whiteSpace:\"nowrap\",marginLeft:L.w.spacing(2),fontSize:\"14px\",color:L.w.palette.text.secondary}});function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=function(e){var t,n,a=e.totalPageCount,s=e.onPageChange,u=e.pageNo,d=e.totalElements,p=P(),f=(0,R.Bd)().t,g=Number(10)||10,h=(t=(0,r.useState)(null!=u?u:0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),m=h[0],v=h[1];return(0,r.useEffect)(function(){void 0!==u&&v(u)},[u]),o().createElement(T,{\"data-testid\":\"pagination-container\",className:p.paginationContainer},a>1&&o().createElement(o().Fragment,null,o().createElement(i(),{nextLabel:o().createElement(D.A,null),onPageChange:function(e){var t=e.selected;v(t),s(t)},forcePage:u,marginPagesDisplayed:1,pageRangeDisplayed:3,pageCount:a,previousLabel:o().createElement(O.A,null),pageClassName:p.pageitem,previousClassName:(0,c.A)(p.pageitem,p.arrowItem),nextClassName:(0,c.A)(p.pageitem,p.arrowItem),breakClassName:p.pageitem,containerClassName:p.container,activeClassName:p.activePageItem}),function(){if(0===d)return null;var e=m*g+1,t=Math.min((m+1)*g,d),n=f(\"ENTRIESINFO\",{start:e,end:t,total:d,entries:f(1===d?\"ENTRY\":\"ENTRIES\")});return o().createElement(l.A,{className:p.entriesInfo},n)}()))};const I=o().memo(x)},56279:(e,t,n)=>{\"use strict\";var r=n(36840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},56449:e=>{var t=Array.isArray;e.exports=t},56461:(e,t,n)=>{\"use strict\";var r=n(24994);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=g,slotShouldForwardProp:s=g}=e,c=e=>(0,u.default)((0,o.default)({},e,{theme:A((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,u={})=>{(0,i.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:f,skipVariantsResolver:h,skipSx:m,overridesResolver:b=y(v(f))}=u,_=(0,a.default)(u,p),C=d&&d.startsWith(\"Mui\")||f?\"components\":\"custom\",w=void 0!==h?h:f&&\"Root\"!==f&&\"root\"!==f||!1,S=m||!1;let T=g;\"Root\"===f||\"root\"===f?T=r:f?T=s:function(e){return\"string\"==typeof e&&e.charCodeAt(0)>96}(e)&&(T=void 0);const O=(0,i.default)(e,(0,o.default)({shouldForwardProp:T,label:void 0},_)),D=e=>\"function\"==typeof e&&e.__emotion_real!==e||(0,l.isPlainObject)(e)?r=>{const a=A({theme:r.theme,defaultTheme:n,themeId:t});return E(e,(0,o.default)({},r,{theme:a}),a.modularCssLayers?C:void 0)}:e,R=(r,...a)=>{let i=D(r);const l=a?a.map(D):[];d&&b&&l.push(e=>{const r=A((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const a=r.components[d].styleOverrides,i={};return Object.entries(a).forEach(([t,n])=>{i[t]=E(n,(0,o.default)({},e,{theme:r}),r.modularCssLayers?\"theme\":void 0)}),b(e,i)}),d&&!w&&l.push(e=>{var r;const a=A((0,o.default)({},e,{defaultTheme:n,themeId:t}));return E({variants:null==a||null==(r=a.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:a}),a.modularCssLayers?\"theme\":void 0)}),S||l.push(c);const s=l.length-a.length;if(Array.isArray(r)&&s>0){const e=new Array(s).fill(\"\");i=[...r,...e],i.raw=[...r.raw,...e]}const u=O(i,...l);return e.muiName&&(u.muiName=e.muiName),u};return O.withConfig&&(R.withConfig=O.withConfig),R}};var o=r(n(94634)),a=r(n(54893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(\"default\"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(22532)),l=n(44239),s=(r(n(57149)),r(n(27320)),r(n(3142))),u=r(n(83857));const c=[\"ownerState\"],d=[\"variants\"],p=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function f(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function g(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}function h(e,t){return t&&e&&\"object\"==typeof e&&e.styles&&!e.styles.startsWith(\"@layer\")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const m=(0,s.default)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function A({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function y(e){return e?(t,n)=>n[e]:null}function E(e,t,n){let{ownerState:r}=t,l=(0,a.default)(t,c);const s=\"function\"==typeof e?e((0,o.default)({ownerState:r},l)):e;if(Array.isArray(s))return s.flatMap(e=>E(e,(0,o.default)({ownerState:r},l),n));if(s&&\"object\"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,a.default)(s,d);return e.forEach(e=>{let a=!0;if(\"function\"==typeof e.props?a=e.props((0,o.default)({ownerState:r},l,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&l[t]!==e.props[t]&&(a=!1)}),a){Array.isArray(t)||(t=[t]);const a=\"function\"==typeof e.style?e.style((0,o.default)({ownerState:r},l,r)):e.style;t.push(n?h((0,i.internal_serializeStyles)(a),n):a)}}),t}return n?h((0,i.internal_serializeStyles)(s),n):s}},56464:function(e,t,n){!function(e){\"use strict\";var t={standalone:\"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec\".split(\"_\"),format:\"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince\".split(\"_\"),isFormat:/DD?[o.]?(\\[[^\\[\\]]*\\]|\\s)+MMMM/},n=\"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro\".split(\"_\"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,r){var o=e+\" \";switch(n){case\"s\":return t||r?\"pár sekund\":\"pár sekundami\";case\"ss\":return t||r?o+(a(e)?\"sekundy\":\"sekund\"):o+\"sekundami\";case\"m\":return t?\"minuta\":r?\"minutu\":\"minutou\";case\"mm\":return t||r?o+(a(e)?\"minuty\":\"minut\"):o+\"minutami\";case\"h\":return t?\"hodina\":r?\"hodinu\":\"hodinou\";case\"hh\":return t||r?o+(a(e)?\"hodiny\":\"hodin\"):o+\"hodinami\";case\"d\":return t||r?\"den\":\"dnem\";case\"dd\":return t||r?o+(a(e)?\"dny\":\"dní\"):o+\"dny\";case\"M\":return t||r?\"měsíc\":\"měsícem\";case\"MM\":return t||r?o+(a(e)?\"měsíce\":\"měsíců\"):o+\"měsíci\";case\"y\":return t||r?\"rok\":\"rokem\";case\"yy\":return t||r?o+(a(e)?\"roky\":\"let\"):o+\"lety\"}}e.defineLocale(\"cs\",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota\".split(\"_\"),weekdaysShort:\"ne_po_út_st_čt_pá_so\".split(\"_\"),weekdaysMin:\"ne_po_út_st_čt_pá_so\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd D. MMMM YYYY H:mm\",l:\"D. M. YYYY\"},calendar:{sameDay:\"[dnes v] LT\",nextDay:\"[zítra v] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[v neděli v] LT\";case 1:case 2:return\"[v] dddd [v] LT\";case 3:return\"[ve středu v] LT\";case 4:return\"[ve čtvrtek v] LT\";case 5:return\"[v pátek v] LT\";case 6:return\"[v sobotu v] LT\"}},lastDay:\"[včera v] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[minulou neděli v] LT\";case 1:case 2:return\"[minulé] dddd [v] LT\";case 3:return\"[minulou středu v] LT\";case 4:case 5:return\"[minulý] dddd [v] LT\";case 6:return\"[minulou sobotu v] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"před %s\",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},56575:function(e,t,n){!function(e){\"use strict\";var t=\"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.\".split(\"_\"),n=\"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic\".split(\"_\"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;e.defineLocale(\"es-us\",{months:\"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"domingo_lunes_martes_miércoles_jueves_viernes_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mié._jue._vie._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"MM/DD/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY h:mm A\",LLLL:\"dddd, D [de] MMMM [de] YYYY h:mm A\"},calendar:{sameDay:function(){return\"[hoy a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextDay:function(){return\"[mañana a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextWeek:function(){return\"dddd [a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastDay:function(){return\"[ayer a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [pasado a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"en %s\",past:\"hace %s\",s:\"unos segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"una hora\",hh:\"%d horas\",d:\"un día\",dd:\"%d días\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un año\",yy:\"%d años\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:0,doy:6}})}(n(95093))},56677:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e,t,n){return\"function\"==typeof e?e(t,n):e}},56682:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(28551),a=n(94901),i=n(22195),l=n(57323),s=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var u=r(n,e,t);return null!==u&&o(u),u}if(\"RegExp\"===i(e))return r(l,e,t);throw new s(\"RegExp#exec called on incompatible receiver\")}},56839:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>En});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a),l=n(4417),s=n.n(l),u=new URL(n(13711),n.b),c=new URL(n(32023),n.b),d=new URL(n(47479),n.b),p=new URL(n(75785),n.b),f=new URL(n(32995),n.b),g=new URL(n(5699),n.b),h=new URL(n(76059),n.b),m=new URL(n(86821),n.b),v=new URL(n(63147),n.b),A=new URL(n(25739),n.b),y=new URL(n(15379),n.b),E=new URL(n(80349),n.b),b=new URL(n(77351),n.b),_=new URL(n(3727),n.b),C=new URL(n(9023),n.b),w=new URL(n(28913),n.b),S=new URL(n(58357),n.b),T=new URL(n(9749),n.b),O=new URL(n(26445),n.b),D=new URL(n(87839),n.b),R=new URL(n(71661),n.b),N=new URL(n(88269),n.b),L=new URL(n(21301),n.b),P=new URL(n(59111),n.b),M=new URL(n(16540),n.b),x=new URL(n(71360),n.b),I=new URL(n(77366),n.b),k=new URL(n(44706),n.b),B=new URL(n(51866),n.b),F=new URL(n(61342),n.b),j=new URL(n(32244),n.b),H=new URL(n(51848),n.b),U=new URL(n(62222),n.b),Y=new URL(n(47274),n.b),G=new URL(n(51e3),n.b),z=new URL(n(98548),n.b),V=new URL(n(20456),n.b),q=new URL(n(50404),n.b),W=new URL(n(36546),n.b),Q=new URL(n(25926),n.b),K=new URL(n(29994),n.b),$=new URL(n(16750),n.b),X=new URL(n(50852),n.b),J=new URL(n(96600),n.b),Z=new URL(n(53899),n.b),ee=new URL(n(72619),n.b),te=new URL(n(31411),n.b),ne=new URL(n(54749),n.b),re=new URL(n(23631),n.b),oe=new URL(n(64439),n.b),ae=new URL(n(22039),n.b),ie=new URL(n(25353),n.b),le=new URL(n(63021),n.b),se=new URL(n(75181),n.b),ue=new URL(n(86485),n.b),ce=new URL(n(2055),n.b),de=new URL(n(79381),n.b),pe=new URL(n(43381),n.b),fe=new URL(n(95277),n.b),ge=new URL(n(8863),n.b),he=new URL(n(40490),n.b),me=new URL(n(36462),n.b),ve=new URL(n(81380),n.b),Ae=new URL(n(90744),n.b),ye=new URL(n(18259),n.b),Ee=new URL(n(6515),n.b),be=new URL(n(82923),n.b),_e=new URL(n(8181),n.b),Ce=new URL(n(60671),n.b),we=new URL(n(14119),n.b),Se=new URL(n(4711),n.b),Te=new URL(n(88505),n.b),Oe=new URL(n(25535),n.b),De=new URL(n(14877),n.b),Re=new URL(n(83383),n.b),Ne=new URL(n(36829),n.b),Le=i()(o()),Pe=s()(u),Me=s()(u,{hash:\"?#iefix\"}),xe=s()(c),Ie=s()(d),ke=s()(p,{hash:\"#NotoSans-BlackItalic\"}),Be=s()(f),Fe=s()(f,{hash:\"?#iefix\"}),je=s()(g),He=s()(h),Ue=s()(m,{hash:\"#NotoSans-Black\"}),Ye=s()(v),Ge=s()(v,{hash:\"?#iefix\"}),ze=s()(A),Ve=s()(y),qe=s()(E,{hash:\"#NotoSans-Bold\"}),We=s()(b),Qe=s()(b,{hash:\"?#iefix\"}),Ke=s()(_),$e=s()(C),Xe=s()(w,{hash:\"#NotoSans-BoldItalic\"}),Je=s()(S),Ze=s()(S,{hash:\"?#iefix\"}),et=s()(T),tt=s()(O),nt=s()(D,{hash:\"#NotoSans-ExtraBold\"}),rt=s()(R),ot=s()(R,{hash:\"?#iefix\"}),at=s()(N),it=s()(L),lt=s()(P,{hash:\"#NotoSans-ExtraBoldItalic\"}),st=s()(M),ut=s()(M,{hash:\"?#iefix\"}),ct=s()(x),dt=s()(I),pt=s()(k,{hash:\"#NotoSans-ExtraLight\"}),ft=s()(B),gt=s()(B,{hash:\"?#iefix\"}),ht=s()(F),mt=s()(j),vt=s()(H,{hash:\"#NotoSans-Light\"}),At=s()(U),yt=s()(U,{hash:\"?#iefix\"}),Et=s()(Y),bt=s()(G),_t=s()(z,{hash:\"#NotoSans-Italic\"}),Ct=s()(V),wt=s()(V,{hash:\"?#iefix\"}),St=s()(q),Tt=s()(W),Ot=s()(Q,{hash:\"#NotoSans-ExtraLightItalic\"}),Dt=s()(K),Rt=s()(K,{hash:\"?#iefix\"}),Nt=s()($),Lt=s()(X),Pt=s()(J,{hash:\"#NotoSans-LightItalic\"}),Mt=s()(Z),xt=s()(Z,{hash:\"?#iefix\"}),It=s()(ee),kt=s()(te),Bt=s()(ne,{hash:\"#NotoSans-MediumItalic\"}),Ft=s()(re),jt=s()(re,{hash:\"?#iefix\"}),Ht=s()(oe),Ut=s()(ae),Yt=s()(ie,{hash:\"#NotoSans-Medium\"}),Gt=s()(le),zt=s()(le,{hash:\"?#iefix\"}),Vt=s()(se),qt=s()(ue),Wt=s()(ce,{hash:\"#NotoSans-SemiBold\"}),Qt=s()(de),Kt=s()(de,{hash:\"?#iefix\"}),$t=s()(pe),Xt=s()(fe),Jt=s()(ge,{hash:\"#NotoSans-SemiBoldItalic\"}),Zt=s()(he),en=s()(he,{hash:\"?#iefix\"}),tn=s()(me),nn=s()(ve),rn=s()(Ae,{hash:\"#NotoSans-Regular\"}),on=s()(ye),an=s()(ye,{hash:\"?#iefix\"}),ln=s()(Ee),sn=s()(be),un=s()(_e,{hash:\"#NotoSans-Thin\"}),cn=s()(Ce),dn=s()(Ce,{hash:\"?#iefix\"}),pn=s()(we),fn=s()(Se),gn=s()(Te,{hash:\"#NotoSans-ThinItalic\"}),hn=s()(Oe),mn=s()(Oe,{hash:\"#iefix\"}),vn=s()(De),An=s()(Re),yn=s()(Ne,{hash:\"#sakshyam\"});Le.push([e.id,`@font-face{font-family:\"NotoSans-BlackItalic\";src:url(${Pe});src:url(${Me}) format(\"embedded-opentype\"),url(${xe}) format(\"woff2\"),url(${Ie}) format(\"woff\"),url(${ke}) format(\"svg\");font-weight:900;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Black\";src:url(${Be});src:url(${Fe}) format(\"embedded-opentype\"),url(${je}) format(\"woff2\"),url(${He}) format(\"woff\"),url(${Ue}) format(\"svg\");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Bold\";src:url(${Ye});src:url(${Ge}) format(\"embedded-opentype\"),url(${ze}) format(\"woff2\"),url(${Ve}) format(\"woff\"),url(${qe}) format(\"svg\");font-weight:bold;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-BoldItalic\";src:url(${We});src:url(${Qe}) format(\"embedded-opentype\"),url(${Ke}) format(\"woff2\"),url(${$e}) format(\"woff\"),url(${Xe}) format(\"svg\");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraBold\";src:url(${Je});src:url(${Ze}) format(\"embedded-opentype\"),url(${et}) format(\"woff2\"),url(${tt}) format(\"woff\"),url(${nt}) format(\"svg\");font-weight:bold;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-ExtraBoldItalic\";src:url(${rt});src:url(${ot}) format(\"embedded-opentype\"),url(${at}) format(\"woff2\"),url(${it}) format(\"woff\"),url(${lt}) format(\"svg\");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraLight\";src:url(${st});src:url(${ut}) format(\"embedded-opentype\"),url(${ct}) format(\"woff2\"),url(${dt}) format(\"woff\"),url(${pt}) format(\"svg\");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Light\";src:url(${ft});src:url(${gt}) format(\"embedded-opentype\"),url(${ht}) format(\"woff2\"),url(${mt}) format(\"woff\"),url(${vt}) format(\"svg\");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Italic\";src:url(${At});src:url(${yt}) format(\"embedded-opentype\"),url(${Et}) format(\"woff2\"),url(${bt}) format(\"woff\"),url(${_t}) format(\"svg\");font-weight:normal;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-ExtraLightItalic\";src:url(${Ct});src:url(${wt}) format(\"embedded-opentype\"),url(${St}) format(\"woff2\"),url(${Tt}) format(\"woff\"),url(${Ot}) format(\"svg\");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-LightItalic\";src:url(${Dt});src:url(${Rt}) format(\"embedded-opentype\"),url(${Nt}) format(\"woff2\"),url(${Lt}) format(\"woff\"),url(${Pt}) format(\"svg\");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-MediumItalic\";src:url(${Mt});src:url(${xt}) format(\"embedded-opentype\"),url(${It}) format(\"woff2\"),url(${kt}) format(\"woff\"),url(${Bt}) format(\"svg\");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Medium\";src:url(${Ft});src:url(${jt}) format(\"embedded-opentype\"),url(${Ht}) format(\"woff2\"),url(${Ut}) format(\"woff\"),url(${Yt}) format(\"svg\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-SemiBold\";src:url(${Gt});src:url(${zt}) format(\"embedded-opentype\"),url(${Vt}) format(\"woff2\"),url(${qt}) format(\"woff\"),url(${Wt}) format(\"svg\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-SemiBoldItalic\";src:url(${Qt});src:url(${Kt}) format(\"embedded-opentype\"),url(${$t}) format(\"woff2\"),url(${Xt}) format(\"woff\"),url(${Jt}) format(\"svg\");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:\"NotoSans-Regular\";src:url(${Zt});src:url(${en}) format(\"embedded-opentype\"),url(${tn}) format(\"woff2\"),url(${nn}) format(\"woff\"),url(${rn}) format(\"svg\");font-weight:normal;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-Thin\";src:url(${on});src:url(${an}) format(\"embedded-opentype\"),url(${ln}) format(\"woff2\"),url(${sn}) format(\"woff\"),url(${un}) format(\"svg\");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:\"NotoSans-ThinItalic\";src:url(${cn});src:url(${dn}) format(\"embedded-opentype\"),url(${pn}) format(\"woff2\"),url(${fn}) format(\"woff\"),url(${gn}) format(\"svg\");font-weight:100;font-style:italic;font-display:swap}body{margin:0;font-family:\"NotoSans-Regular\"}*{box-sizing:border-box}@font-face{font-family:\"sakshyam\";src:url(${hn});src:url(${mn}) format(\"embedded-opentype\"),url(${vn}) format(\"truetype\"),url(${An}) format(\"woff\"),url(${yn}) format(\"svg\");font-weight:normal;font-style:normal;font-display:block}[class^=icon-],[class*=\" icon-\"]{font-family:\"sakshyam\" !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-role-based-access-control:before{content:\"\"}.icon-admin-config:before{content:\"\"}.icon-attendance-config:before{content:\"\"}.icon-configurations:before{content:\"\"}.icon-event-actuals:before{content:\"\"}.icon-event-baseline-config:before{content:\"\"}.icon-event-planning:before{content:\"\"}.icon-events:before{content:\"\"}.icon-form-configurations:before{content:\"\"}.icon-geo-data:before{content:\"\"}.icon-geo-hierarchy:before{content:\"\"}.icon-head-quarters-data:before{content:\"\"}.icon-head-quarters-hierarchy:before{content:\"\"}.icon-masters:before{content:\"\"}.icon-module-config:before{content:\"\"}.icon-push-notification:before{content:\"\"}.icon-retailers:before{content:\"\"}.icon-retailers-list:before{content:\"\"}.icon-sales-hierarchy:before{content:\"\"}.icon-support:before{content:\"\"}.icon-upload-retailers:before{content:\"\"}.icon-user-management:before{content:\"\"}.icon-flag:before{content:\"\"}.icon-icon-content_paste_off:before{content:\"\"}.icon-inventory:before{content:\"\"}.icon-demo-tracking:before{content:\"\"}.icon-pdf:before{content:\"\"}.icon-document:before{content:\"\"}.icon-smartagro:before{content:\"\"}.icon-liquidation:before{content:\"\"}.icon-dot:before{content:\"\"}.icon-alert:before{content:\"\"}.icon-cross:before{content:\"\"}.icon-check:before{content:\"\"}.icon-FAQ:before{content:\"\"}.icon-warning:before{content:\"\"}.icon-time:before{content:\"\"}.icon-pencil:before{content:\"\"}.icon-pushnotification:before{content:\"\"}.icon-formconfig:before{content:\"\"}.icon-leaf-icon:before{content:\"\"}.icon-icon-download:before{content:\"\"}.icon-Global_Setting:before{content:\"\"}.icon-Admin:before{content:\"\"}.icon-Attendance-Approval:before{content:\"\"}.icon-Business-Unit:before{content:\"\"}.icon-Country:before{content:\"\"}.icon-Distributor-Upload:before{content:\"\"}.icon-Download-Report:before{content:\"\"}.icon-Events:before{content:\"\"}.icon-Geo-Upload:before{content:\"\"}.icon-Holiday-Upload:before{content:\"\"}.icon-Liquidation-Target:before{content:\"\"}.icon-Masters:before{content:\"\"}.icon-MDO-Attendance:before{content:\"\"}.icon-MDO:before{content:\"\"}.icon-Orphan-Retailer:before{content:\"\"}.icon-Retailer-KYC:before{content:\"\"}.icon-Sync:before{content:\"\"}.icon-TMHQ:before{content:\"\"}.icon-Uploads:before{content:\"\"}.icon-Users:before{content:\"\"}.icon-filter:before{content:\"\"}.icon-users:before{content:\"\"}.icon-sort:before{content:\"\"}.icon-close:before{content:\"\"}.icon-search:before{content:\"\"}.icon-apps:before{content:\"\"}.icon-building:before{content:\"\"}.icon-globe:before{content:\"\"}.icon-home:before{content:\"\"}.icon-saksham:before{content:\"\"}.icon-cropwise:before{content:\"\"}.icon-right-arrow:before{content:\"\"}.icon-arrow-right:before{content:\"\"}.icon-logout:before{content:\"\"}.icon-help:before{content:\"\"}.icon-Vector:before{content:\"\"}.icon-DistributorUpload:before{content:\"\"}.icon-attachment:before{content:\"\"}.icon-leaf-icon:before{content:\"\"}.icon-icon-download:before{content:\"\"}.icon-pencil:before{content:\"\"}.icon-img:before{content:\"\";color:#696f88}.icon-OCR-events:before{content:\"\";color:#4c8d35}.icon-pushnotification:before{content:\"\"}.icon-formconfig:before{content:\"\"}.icon-time:before{content:\"\"}.icon-warning:before{content:\"\"}.icon-FAQ:before{content:\"\"}.icon-alert:before{content:\"\"}.icon-cross:before{content:\"\"}.icon-check:before{content:\"\"}.icon-dot:before{content:\"\"}.icon-liquidation:before{content:\"\"}.icon-smartagro:before{content:\"\"}.icon-demo-tracking:before{content:\"\"}.icon-pdf:before{content:\"\"}.icon-document:before{content:\"\"}.icon-flag:before{content:\"\"}.icon-content_paste_off:before{content:\"\"}.icon-inventory:before{content:\"\"}.icon-mlp-location .path1:before{content:\"ຓ\";color:#65833a}.icon-mlp-location .path2:before{content:\"ດ\";color:#fff;margin-left:-1em}.icon-mlp-calender:before{content:\"\";color:#65833a}.icon-mlp-chat:before{content:\"\";color:#65833a}.icon-mlp-time:before{content:\"\";color:#65833a}.icon-mlp-profile:before{content:\"\";color:#65833a}.ag-theme-alpine .ag-row-selected::before,.ag-theme-alpine .ag-row-hover::before,.ag-theme-alpine .ag-row-focus::before{background-color:rgba(33,150,243,.1) !important;background-image:none !important}.fixed-row-size .custom-table .ag-root-wrapper .ag-row{height:68px !important}.mlp-table .custom-table .ag-root-wrapper .ag-layout-normal{height:100% !important;min-height:auto !important}.disabled-field,.disabled-field .MuiInputBase-input,.disabled-field .MuiButtonBase-root{cursor:not-allowed !important;opacity:.7;pointer-events:auto !important}.disabled-table-button{opacity:.7;pointer-events:none !important;color:#cfd3db !important}.Mui-error{font-weight:700 !important}.Mui-error-validation{font-weight:700 !important;color:red !important}.rmsc .dropdown-heading{cursor:pointer !important}.disabled-field .rmsc .dropdown-heading{cursor:not-allowed !important;opacity:.7;color:#000 !important}.capitalize{text-transform:lowercase}.capitalize:first-letter{text-transform:uppercase}.text-error{color:#cf3537 !important}.text-info{color:#005693}.pointer{cursor:pointer !important}.disable-pointer{pointer-events:none !important}.menu-content{scrollbar-width:thin !important}.menu-content ::-webkit-scrollbar{width:6px;height:5px}.menu-content ::-webkit-scrollbar-track{border-radius:10px}.menu-content ::-webkit-scrollbar-thumb{border-radius:10px;background-color:#cfd3db}.menu-content .MuiList-root{overflow-y:auto}.remove-button{border:none;background:none}.button-with-dot{position:relative}.button-with-dot::after{content:\"\";position:absolute;top:5px;right:5px;width:10px;height:10px;background-color:red;border-radius:50%}.font-styles{color:#232630;font-size:12px;font-family:NotoSans-Regular}.first-col-divider{position:relative}.first-col-divider::after{content:\"\";position:absolute;top:0;bottom:0;width:2px;background-color:#e0e0e0;pointer-events:none;z-index:10}.icon-product-demo-tracking:before{content:\"\";color:#65833a}.popupMain .bgp-error-log-action{width:126px;height:32px;padding:5px 12px;border-radius:4px;font-family:NotoSans-Semibold,sans-serif;font-size:14px;font-weight:600;text-transform:none}.popupMain .bgp-error-log-action.MuiButton-contained{background-color:#65833a;color:#fff}.popupMain .bgp-error-log-action.MuiButton-contained:hover{background-color:#65833a}.popupMain .bgp-error-log-action.MuiButton-outlined{border-color:#d8dde5;color:#232630;background-color:#fff}.popupMain.bgp-error-log-drawer{width:800px !important;padding:24px}.bgp-error-log-banner-row{width:100%;margin:24px 0 16px;align-items:flex-start}.bgp-error-msg-card{flex:1;height:80px;min-height:80px;margin:0 !important;padding:12px 14px;border:1px solid #cf3537;border-left:4px solid #cf3537;border-radius:4px;background:#fff}.bgp-error-log-actions{width:126px;flex:0 0 126px;align-items:stretch;padding-top:0}.bgp-error-log-actions .MuiButtonBase-root{width:126px;min-width:126px;height:32px;margin:0;justify-content:center}.bgp-error-title,.bgp-error-description{color:#232630}.bgp-error-title{margin:0;font-size:14px !important;font-weight:700 !important}.bgp-error-description{margin-top:4px !important;font-size:12px !important}.popupMain .error-log-summary-card{flex:1;min-height:52px;padding:9px 12px;border:1px solid #cfd3db;border-radius:6px;background-color:#f3f4f6;color:#1d2b3a;text-align:left}.popupMain .error-log-summary-card.total{border-color:#c6e6ff;background-color:#edf7ff}.popupMain .error-log-summary-card.created{border-color:#c3ead1;background-color:#e9f9ef}.popupMain .error-log-summary-card.not-created{border-color:#f1c7c8;background-color:#fff1f1}.popupMain .error-log-summary-icon{flex:0 0 auto;color:#697386;font-size:18px}.popupMain .error-log-summary-icon.success{color:#697386}.popupMain .error-log-summary-icon.error{color:#697386}.popupMain .error-log-summary-value{margin-left:28px;color:#005693;font-size:16px;font-weight:700}.popupMain .error-log-summary-card.created .error-log-summary-value{color:#14803c}.popupMain .error-log-summary-card.not-created .error-log-summary-value{color:#cf3537}`,\"\",{version:3,sources:[\"webpack://./src/app.styles.scss\"],names:[],mappings:\"AAAA,WAAA,kCACE,CAAA,2CACA,CAAA,4OACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,4BACE,CAAA,2CACA,CAAA,4OACA,CAAA,eAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,2BACE,CAAA,4CACA,CAAA,gPACA,CAAA,gBAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,iCACE,CAAA,4CACA,CAAA,gPACA,CAAA,gBAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,gCACE,CAAA,4CACA,CAAA,gPACA,CAAA,gBAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,sCACE,CAAA,4CACA,CAAA,gPACA,CAAA,gBAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,iCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,4BACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,6BACE,CAAA,4CACA,CAAA,gPACA,CAAA,kBAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,uCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,kCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,mCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,6BACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,+BACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,qCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,8BACE,CAAA,4CACA,CAAA,gPACA,CAAA,kBAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,2BACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAKA,CAAA,iBACA,CAAA,iBACA,CAAA,WAGF,iCACE,CAAA,4CACA,CAAA,gPACA,CAAA,eAMA,CAAA,iBACA,CAAA,iBACA,CAAA,KAGF,QACE,CAAA,8BACA,CAAA,EAGF,qBACE,CAAA,WAGF,sBACE,CAAA,4CACA,CAAA,mPACA,CAAA,kBAKA,CAAA,iBACA,CAAA,kBACA,CAAA,iCAGF,iCAGE,CAAA,WACA,CAAA,iBACA,CAAA,kBACA,CAAA,mBACA,CAAA,mBACA,CAAA,aACA,CAAA,kCAEA,CAAA,iCACA,CAAA,uCAIF,WACE,CAAA,0BAEF,WACE,CAAA,+BAEF,WACE,CAAA,4BAEF,WACE,CAAA,2BAEF,WACE,CAAA,mCAEF,WACE,CAAA,4BAEF,WACE,CAAA,oBAEF,WACE,CAAA,iCAEF,WACE,CAAA,sBAEF,WACE,CAAA,2BAEF,WACE,CAAA,gCAEF,WACE,CAAA,qCAEF,WACE,CAAA,qBAEF,WACE,CAAA,2BAEF,WACE,CAAA,+BAEF,WACE,CAAA,uBAEF,WACE,CAAA,4BAEF,WACE,CAAA,6BAEF,WACE,CAAA,qBAEF,WACE,CAAA,8BAEF,WACE,CAAA,6BAEF,WACE,CAAA,kBAEF,WACE,CAAA,oCAEF,WACE,CAAA,uBAEF,WACE,CAAA,2BAEF,WACE,CAAA,iBAEF,WACE,CAAA,sBAEF,WACE,CAAA,uBAEF,WACE,CAAA,yBAEF,WACE,CAAA,iBAEF,WACE,CAAA,mBAEF,WACE,CAAA,mBAEF,WACE,CAAA,mBAEF,WACE,CAAA,iBAEF,WACE,CAAA,qBAEF,WACE,CAAA,kBAEF,WACE,CAAA,oBAEF,WACE,CAAA,8BAEF,WACE,CAAA,wBAEF,WACE,CAAA,uBAEF,WACE,CAAA,2BAEF,WACE,CAAA,4BAEF,WACE,CAAA,mBAEF,WACE,CAAA,iCAGF,WACE,CAAA,2BAGF,WACE,CAAA,qBAGF,WACE,CAAA,gCAGF,WACE,CAAA,6BAGF,WACE,CAAA,oBAGF,WACE,CAAA,wBAGF,WACE,CAAA,4BAGF,WACE,CAAA,gCAGF,WACE,CAAA,qBAGF,WACE,CAAA,4BAGF,WACE,CAAA,iBAGF,WACE,CAAA,6BAGF,WACE,CAAA,0BAGF,WACE,CAAA,kBAGF,WACE,CAAA,kBAGF,WACE,CAAA,qBAGF,WACE,CAAA,mBAGF,WACE,CAAA,oBAGF,WACE,CAAA,mBAGF,WACE,CAAA,kBAGF,WACE,CAAA,mBAGF,WACE,CAAA,oBAGF,WACE,CAAA,kBAGF,WACE,CAAA,sBAGF,WACE,CAAA,mBAGF,WACE,CAAA,kBAGF,WACE,CAAA,qBAGF,WACE,CAAA,sBAGF,WACE,CAAA,yBAGF,WACE,CAAA,yBAGF,WACE,CAAA,oBAGF,WACE,CAAA,kBAGF,WACE,CAAA,oBAGF,WACE,CAAA,+BAGF,WACE,CAAA,wBAEF,WACE,CAAA,uBAGF,WACE,CAAA,2BAGF,WACE,CAAA,oBAGF,WACE,CAAA,iBAGF,WACE,CAAA,aACA,CAAA,wBAGF,WACE,CAAA,aACA,CAAA,8BAGF,WACE,CAAA,wBAGF,WACE,CAAA,kBAGF,WACE,CAAA,qBAEF,WACE,CAAA,iBAGF,WACE,CAAA,mBAEF,WACE,CAAA,mBAEF,WACE,CAAA,mBAEF,WACE,CAAA,iBAEF,WACE,CAAA,yBAGF,WACE,CAAA,uBAGF,WACE,CAAA,2BAGF,WACE,CAAA,iBAEF,WACE,CAAA,sBAEF,WACE,CAAA,kBAGF,WACE,CAAA,+BAEF,WACE,CAAA,uBAEF,WACE,CAAA,iCAGF,WACE,CAAA,aACA,CAAA,iCAEF,WACE,CAAA,UACA,CAAA,gBACA,CAAA,0BAEF,WACE,CAAA,aACA,CAAA,sBAEF,WACE,CAAA,aACA,CAAA,sBAEF,WACE,CAAA,aACA,CAAA,yBAEF,WACE,CAAA,aACA,CAAA,wHAQE,+CACE,CAAA,gCACA,CAAA,uDAQA,sBACE,CAAA,4DASF,sBACE,CAAA,0BACA,CAAA,wFAMR,6BAGE,CAAA,UACA,CAAA,8BACA,CAAA,uBAGF,UAEE,CAAA,8BACA,CAAA,wBACA,CAAA,WAGF,0BACE,CAAA,sBAEF,0BACE,CAAA,oBACA,CAAA,wBAEF,yBACE,CAAA,wCAGA,6BACE,CAAA,UACA,CAAA,qBACA,CAAA,YAGJ,wBACE,CAAA,yBAEF,wBACE,CAAA,YAEF,wBACE,CAAA,WAEF,aACE,CAAA,SAEF,yBACA,CAAA,iBAGA,8BACU,CAAA,cAGV,+BACW,CAAA,kCACmB,SACU,CAAA,UACC,CAAA,wCAEX,kBAAA,CAAA,wCACA,kBACU,CAAA,wBACA,CAAA,4BAE9B,eAEU,CAAA,eAKpB,WACU,CAAA,eACA,CAAA,iBAGV,iBACU,CAAA,wBAGV,UACU,CAAA,iBACA,CAAA,OACA,CAAA,SAEA,CAAA,UAEA,CAAA,WAEA,CAAA,oBAEA,CAAA,iBACA,CAAA,aAGV,aACE,CAAA,cACA,CAAA,4BACA,CAAA,mBAGF,iBACE,CAAA,0BAGF,UACE,CAAA,iBACA,CAAA,KACA,CAAA,QACA,CAAA,SACA,CAAA,wBACA,CAAA,mBACA,CAAA,UACA,CAAA,mCAEF,WACE,CAAA,aACA,CAAA,iCAGF,WACE,CAAA,WACA,CAAA,gBACA,CAAA,iBACA,CAAA,wCACA,CAAA,cACA,CAAA,eACA,CAAA,mBACA,CAAA,qDAGF,wBACE,CAAA,UACA,CAAA,2DAGF,wBACE,CAAA,oDAGF,oBACE,CAAA,aACA,CAAA,qBACA,CAAA,gCAGF,sBACE,CAAA,YACA,CAAA,0BAGF,UACE,CAAA,kBACA,CAAA,sBACA,CAAA,oBAGF,MACE,CAAA,WACA,CAAA,eACA,CAAA,mBACA,CAAA,iBACA,CAAA,wBACA,CAAA,6BACA,CAAA,iBACA,CAAA,eACA,CAAA,uBAGF,WACE,CAAA,cACA,CAAA,mBACA,CAAA,aACA,CAAA,2CAGF,WACE,CAAA,eACA,CAAA,WACA,CAAA,QACA,CAAA,sBACA,CAAA,wCAGF,aAEE,CAAA,iBAGF,QACE,CAAA,yBACA,CAAA,0BACA,CAAA,uBAGF,yBACE,CAAA,yBACA,CAAA,mCAGF,MACE,CAAA,eACA,CAAA,gBACA,CAAA,wBACA,CAAA,iBACA,CAAA,wBACA,CAAA,aACA,CAAA,eACA,CAAA,yCAGF,oBACE,CAAA,wBACA,CAAA,2CAGF,oBACE,CAAA,wBACA,CAAA,+CAGF,oBACE,CAAA,wBACA,CAAA,mCAGF,aACE,CAAA,aACA,CAAA,cACA,CAAA,2CAGF,aACE,CAAA,yCAGF,aACE,CAAA,oCAGF,gBACE,CAAA,aACA,CAAA,cACA,CAAA,eACA,CAAA,oEAGF,aACE,CAAA,wEAGF,aACE\",sourcesContent:[\"@font-face {\\n  font-family: 'NotoSans-BlackItalic';\\n  src: url('./../assets/fonts/NotoSans-BlackItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-BlackItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-BlackItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-BlackItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-BlackItalic.svg#NotoSans-BlackItalic')\\n      format('svg');\\n  font-weight: 900;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Black';\\n  src: url('./../assets/fonts/NotoSans-Black.eot');\\n  src: url('./../assets/fonts/NotoSans-Black.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Black.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Black.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Black.svg#NotoSans-Black') format('svg');\\n  font-weight: 900;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Bold';\\n  src: url('./../assets/fonts/NotoSans-Bold.eot');\\n  src: url('./../assets/fonts/NotoSans-Bold.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Bold.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Bold.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Bold.svg#NotoSans-Bold') format('svg');\\n  font-weight: bold;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-BoldItalic';\\n  src: url('./../assets/fonts/NotoSans-BoldItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-BoldItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-BoldItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-BoldItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-BoldItalic.svg#NotoSans-BoldItalic')\\n      format('svg');\\n  font-weight: bold;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-ExtraBold';\\n  src: url('./../assets/fonts/NotoSans-ExtraBold.eot');\\n  src: url('./../assets/fonts/NotoSans-ExtraBold.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-ExtraBold.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-ExtraBold.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-ExtraBold.svg#NotoSans-ExtraBold')\\n      format('svg');\\n  font-weight: bold;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-ExtraBoldItalic';\\n  src: url('./../assets/fonts/NotoSans-ExtraBoldItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-ExtraBoldItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-ExtraBoldItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-ExtraBoldItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-ExtraBoldItalic.svg#NotoSans-ExtraBoldItalic')\\n      format('svg');\\n  font-weight: bold;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-ExtraLight';\\n  src: url('./../assets/fonts/NotoSans-ExtraLight.eot');\\n  src: url('./../assets/fonts/NotoSans-ExtraLight.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-ExtraLight.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-ExtraLight.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-ExtraLight.svg#NotoSans-ExtraLight')\\n      format('svg');\\n  font-weight: 200;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Light';\\n  src: url('./../assets/fonts/NotoSans-Light.eot');\\n  src: url('./../assets/fonts/NotoSans-Light.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Light.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Light.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Light.svg#NotoSans-Light') format('svg');\\n  font-weight: 300;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Italic';\\n  src: url('./../assets/fonts/NotoSans-Italic.eot');\\n  src: url('./../assets/fonts/NotoSans-Italic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Italic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Italic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Italic.svg#NotoSans-Italic') format('svg');\\n  font-weight: normal;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-ExtraLightItalic';\\n  src: url('./../assets/fonts/NotoSans-ExtraLightItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-ExtraLightItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-ExtraLightItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-ExtraLightItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-ExtraLightItalic.svg#NotoSans-ExtraLightItalic')\\n      format('svg');\\n  font-weight: 200;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-LightItalic';\\n  src: url('./../assets/fonts/NotoSans-LightItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-LightItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-LightItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-LightItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-LightItalic.svg#NotoSans-LightItalic')\\n      format('svg');\\n  font-weight: 300;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-MediumItalic';\\n  src: url('./../assets/fonts/NotoSans-MediumItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-MediumItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-MediumItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-MediumItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-MediumItalic.svg#NotoSans-MediumItalic')\\n      format('svg');\\n  font-weight: 500;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Medium';\\n  src: url('./../assets/fonts/NotoSans-Medium.eot');\\n  src: url('./../assets/fonts/NotoSans-Medium.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Medium.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Medium.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Medium.svg#NotoSans-Medium') format('svg');\\n  font-weight: 500;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-SemiBold';\\n  src: url('./../assets/fonts/NotoSans-SemiBold.eot');\\n  src: url('./../assets/fonts/NotoSans-SemiBold.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-SemiBold.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-SemiBold.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-SemiBold.svg#NotoSans-SemiBold')\\n      format('svg');\\n  font-weight: 600;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-SemiBoldItalic';\\n  src: url('./../assets/fonts/NotoSans-SemiBoldItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-SemiBoldItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-SemiBoldItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-SemiBoldItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-SemiBoldItalic.svg#NotoSans-SemiBoldItalic')\\n      format('svg');\\n  font-weight: 600;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Regular';\\n  src: url('./../assets/fonts/NotoSans-Regular.eot');\\n  src: url('./../assets/fonts/NotoSans-Regular.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Regular.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Regular.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Regular.svg#NotoSans-Regular') format('svg');\\n  font-weight: normal;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-Thin';\\n  src: url('./../assets/fonts/NotoSans-Thin.eot');\\n  src: url('./../assets/fonts/NotoSans-Thin.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-Thin.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-Thin.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-Thin.svg#NotoSans-Thin') format('svg');\\n  font-weight: 100;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n\\n@font-face {\\n  font-family: 'NotoSans-ThinItalic';\\n  src: url('./../assets/fonts/NotoSans-ThinItalic.eot');\\n  src: url('./../assets/fonts/NotoSans-ThinItalic.eot?#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/fonts/NotoSans-ThinItalic.woff2') format('woff2'),\\n    url('./../assets/fonts/NotoSans-ThinItalic.woff') format('woff'),\\n    url('./../assets/fonts/NotoSans-ThinItalic.svg#NotoSans-ThinItalic')\\n      format('svg');\\n  font-weight: 100;\\n  font-style: italic;\\n  font-display: swap;\\n}\\n\\nbody {\\n  margin: 0;\\n  font-family: 'NotoSans-Regular';\\n}\\n\\n* {\\n  box-sizing: border-box;\\n}\\n\\n@font-face {\\n  font-family: 'sakshyam';\\n  src: url('./../assets/icons/sakshyam.eot?hasvnq');\\n  src: url('./../assets/icons/sakshyam.eot?hasvnq#iefix')\\n      format('embedded-opentype'),\\n    url('./../assets/icons/sakshyam.ttf?hasvnq') format('truetype'),\\n    url('./../assets/icons/sakshyam.woff?hasvnq') format('woff'),\\n    url('./../assets/icons/sakshyam.svg?hasvnq#sakshyam') format('svg');\\n  font-weight: normal;\\n  font-style: normal;\\n  font-display: block;\\n}\\n\\n[class^='icon-'],\\n[class*=' icon-'] {\\n  /* use !important to prevent issues with browser extensions that change fonts */\\n  font-family: 'sakshyam' !important;\\n  speak: never;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  line-height: 1;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n\\n// new icons\\n.icon-role-based-access-control:before {\\n  content: \\\"\\\\e94d\\\";\\n}\\n.icon-admin-config:before {\\n  content: \\\"\\\\e933\\\";\\n}\\n.icon-attendance-config:before {\\n  content: \\\"\\\\e934\\\";\\n}\\n.icon-configurations:before {\\n  content: \\\"\\\\e935\\\";\\n}\\n.icon-event-actuals:before {\\n  content: \\\"\\\\e936\\\";\\n}\\n.icon-event-baseline-config:before {\\n  content: \\\"\\\\e937\\\";\\n}\\n.icon-event-planning:before {\\n  content: \\\"\\\\e938\\\";\\n}\\n.icon-events:before {\\n  content: \\\"\\\\e939\\\";\\n}\\n.icon-form-configurations:before {\\n  content: \\\"\\\\e93a\\\";\\n}\\n.icon-geo-data:before {\\n  content: \\\"\\\\e93b\\\";\\n}\\n.icon-geo-hierarchy:before {\\n  content: \\\"\\\\e93c\\\";\\n}\\n.icon-head-quarters-data:before {\\n  content: \\\"\\\\e93d\\\";\\n}\\n.icon-head-quarters-hierarchy:before {\\n  content: \\\"\\\\e93e\\\";\\n}\\n.icon-masters:before {\\n  content: \\\"\\\\e93f\\\";\\n}\\n.icon-module-config:before {\\n  content: \\\"\\\\e940\\\";\\n}\\n.icon-push-notification:before {\\n  content: \\\"\\\\e941\\\";\\n}\\n.icon-retailers:before {\\n  content: \\\"\\\\e942\\\";\\n}\\n.icon-retailers-list:before {\\n  content: \\\"\\\\e943\\\";\\n}\\n.icon-sales-hierarchy:before {\\n  content: \\\"\\\\e946\\\";\\n}\\n.icon-support:before {\\n  content: \\\"\\\\e94a\\\";\\n}\\n.icon-upload-retailers:before {\\n  content: \\\"\\\\e94b\\\";\\n}\\n.icon-user-management:before {\\n  content: \\\"\\\\e94c\\\";\\n}\\n.icon-flag:before {\\n  content: \\\"\\\\e930\\\";\\n}\\n.icon-icon-content_paste_off:before {\\n  content: \\\"\\\\e931\\\";\\n}\\n.icon-inventory:before {\\n  content: \\\"\\\\e932\\\";\\n}\\n.icon-demo-tracking:before {\\n  content: \\\"\\\\e92d\\\";\\n}\\n.icon-pdf:before {\\n  content: \\\"\\\\e92e\\\";\\n}\\n.icon-document:before {\\n  content: \\\"\\\\e92f\\\";\\n}\\n.icon-smartagro:before {\\n  content: \\\"\\\\e92c\\\";\\n}\\n.icon-liquidation:before {\\n  content: \\\"\\\\e92b\\\";\\n}\\n.icon-dot:before {\\n  content: \\\"\\\\e92a\\\";\\n}\\n.icon-alert:before {\\n  content: \\\"\\\\e927\\\";\\n}\\n.icon-cross:before {\\n  content: \\\"\\\\e928\\\";\\n}\\n.icon-check:before {\\n  content: \\\"\\\\e929\\\";\\n}\\n.icon-FAQ:before {\\n  content: \\\"\\\\e926\\\";\\n}\\n.icon-warning:before {\\n  content: \\\"\\\\e925\\\";\\n}\\n.icon-time:before {\\n  content: \\\"\\\\e924\\\";\\n}\\n.icon-pencil:before {\\n  content: \\\"\\\\e921\\\";\\n}\\n.icon-pushnotification:before {\\n  content: \\\"\\\\e922\\\";\\n}\\n.icon-formconfig:before {\\n  content: \\\"\\\\e923\\\";\\n}\\n.icon-leaf-icon:before {\\n  content: \\\"\\\\e91f\\\";\\n}\\n.icon-icon-download:before {\\n  content: \\\"\\\\e920\\\";\\n}\\n.icon-Global_Setting:before {\\n  content: \\\"\\\\e91e\\\";\\n}\\n.icon-Admin:before {\\n  content: '\\\\e908';\\n}\\n\\n.icon-Attendance-Approval:before {\\n  content: '\\\\e909';\\n}\\n\\n.icon-Business-Unit:before {\\n  content: '\\\\e90a';\\n}\\n\\n.icon-Country:before {\\n  content: '\\\\e90b';\\n}\\n\\n.icon-Distributor-Upload:before {\\n  content: '\\\\e90c';\\n}\\n\\n.icon-Download-Report:before {\\n  content: '\\\\e90d';\\n}\\n\\n.icon-Events:before {\\n  content: '\\\\e90e';\\n}\\n\\n.icon-Geo-Upload:before {\\n  content: '\\\\e90f';\\n}\\n\\n.icon-Holiday-Upload:before {\\n  content: '\\\\e910';\\n}\\n\\n.icon-Liquidation-Target:before {\\n  content: '\\\\e912';\\n}\\n\\n.icon-Masters:before {\\n  content: '\\\\e914';\\n}\\n\\n.icon-MDO-Attendance:before {\\n  content: '\\\\e915';\\n}\\n\\n.icon-MDO:before {\\n  content: '\\\\e916';\\n}\\n\\n.icon-Orphan-Retailer:before {\\n  content: '\\\\e917';\\n}\\n\\n.icon-Retailer-KYC:before {\\n  content: '\\\\e918';\\n}\\n\\n.icon-Sync:before {\\n  content: '\\\\e919';\\n}\\n\\n.icon-TMHQ:before {\\n  content: '\\\\e91a';\\n}\\n\\n.icon-Uploads:before {\\n  content: '\\\\e91b';\\n}\\n\\n.icon-Users:before {\\n  content: '\\\\e91c';\\n}\\n\\n.icon-filter:before {\\n  content: '\\\\e900';\\n}\\n\\n.icon-users:before {\\n  content: '\\\\e901';\\n}\\n\\n.icon-sort:before {\\n  content: '\\\\e902';\\n}\\n\\n.icon-close:before {\\n  content: '\\\\e903';\\n}\\n\\n.icon-search:before {\\n  content: '\\\\e904';\\n}\\n\\n.icon-apps:before {\\n  content: '\\\\e911';\\n}\\n\\n.icon-building:before {\\n  content: '\\\\e913';\\n}\\n\\n.icon-globe:before {\\n  content: '\\\\e944';\\n}\\n\\n.icon-home:before {\\n  content: '\\\\e945';\\n}\\n\\n.icon-saksham:before {\\n  content: '\\\\e947';\\n}\\n\\n.icon-cropwise:before {\\n  content: '\\\\e948';\\n}\\n\\n.icon-right-arrow:before {\\n  content: '\\\\e949';\\n}\\n\\n.icon-arrow-right:before {\\n  content: '\\\\e905';\\n}\\n\\n.icon-logout:before {\\n  content: '\\\\e906';\\n}\\n\\n.icon-help:before {\\n  content: '\\\\e907';\\n}\\n\\n.icon-Vector:before {\\n  content: \\\"\\\\e94e\\\";\\n}\\n\\n.icon-DistributorUpload:before {\\n  content: '\\\\e91d';\\n}\\n.icon-attachment:before {\\n  content: '\\\\e91e';\\n}\\n\\n.icon-leaf-icon:before {\\n  content: '\\\\e91f';\\n}\\n\\n.icon-icon-download:before {\\n  content: '\\\\e920';\\n}\\n\\n.icon-pencil:before {\\n  content: '\\\\e921';\\n}\\n\\n.icon-img:before {\\n  content: \\\"\\\\e90a\\\";\\n  color: #696f88;\\n}\\n\\n.icon-OCR-events:before {\\n  content: \\\"\\\\e90d\\\";\\n  color: #4c8d35;\\n}\\n\\n.icon-pushnotification:before {\\n  content: '\\\\e922';\\n}\\n\\n.icon-formconfig:before {\\n  content: '\\\\e923';\\n}\\n\\n.icon-time:before {\\n  content: '\\\\e924';\\n}\\n.icon-warning:before {\\n  content: '\\\\e925';\\n}\\n\\n.icon-FAQ:before {\\n  content: '\\\\e926';\\n}\\n.icon-alert:before {\\n  content: '\\\\e927';\\n}\\n.icon-cross:before {\\n  content: '\\\\e928';\\n}\\n.icon-check:before {\\n  content: '\\\\e929';\\n}\\n.icon-dot:before {\\n  content: '\\\\e92a';\\n}\\n\\n.icon-liquidation:before {\\n  content: '\\\\e92b';\\n}\\n\\n.icon-smartagro:before {\\n  content: '\\\\e92c';\\n}\\n\\n.icon-demo-tracking:before {\\n  content: '\\\\e92d';\\n}\\n.icon-pdf:before {\\n  content: '\\\\e92e';\\n}\\n.icon-document:before {\\n  content: '\\\\e92f';\\n}\\n\\n.icon-flag:before {\\n  content: \\\"\\\\e930\\\";\\n}\\n.icon-content_paste_off:before {\\n  content: \\\"\\\\e931\\\";\\n}\\n.icon-inventory:before {\\n  content: \\\"\\\\e932\\\";\\n}\\n\\n.icon-mlp-location .path1:before {\\n  content: \\\"\\\\e93\\\";\\n  color: #65833a;\\n}\\n.icon-mlp-location .path2:before {\\n  content: \\\"\\\\e94\\\";\\n  color: #fff;\\n  margin-left: -1em;\\n}\\n.icon-mlp-calender:before {\\n  content: \\\"\\\\e912\\\";\\n  color: #65833a;\\n}\\n.icon-mlp-chat:before {\\n  content: \\\"\\\\e94f\\\";\\n  color: #65833a;\\n}\\n.icon-mlp-time:before {\\n  content: \\\"\\\\e951\\\";\\n  color: #65833a;\\n}\\n.icon-mlp-profile:before {\\n  content: \\\"\\\\e950\\\";\\n  color: #65833a;\\n}\\n \\n\\n.ag-theme-alpine {\\n  .ag-row-selected,\\n  .ag-row-hover,\\n  .ag-row-focus {\\n    &::before {\\n      background-color: rgba(33, 150, 243, 0.1) !important;\\n      background-image: none !important;\\n    }\\n  }\\n}\\n\\n.fixed-row-size{\\n  .custom-table{\\n    .ag-root-wrapper{\\n      .ag-row{\\n        height: 68px !important;\\n      }\\n    }\\n  }\\n}\\n\\n.mlp-table{\\n  .custom-table{\\n    .ag-root-wrapper{\\n      .ag-layout-normal{\\n        height: 100% !important;\\n        min-height: auto !important;\\n      }\\n    }\\n  }\\n}\\n\\n.disabled-field,\\n.disabled-field .MuiInputBase-input,\\n.disabled-field .MuiButtonBase-root {\\n  cursor: not-allowed !important;\\n  opacity: 0.7;\\n  pointer-events: auto !important;\\n}\\n\\n.disabled-table-button {\\n  // cursor: not-allowed !important;\\n  opacity: 0.7;\\n  pointer-events: none !important;\\n  color: #cfd3db !important;\\n}\\n\\n.Mui-error {\\n  font-weight: 700 !important;\\n}\\n.Mui-error-validation {\\n  font-weight: 700 !important;\\n  color: red !important\\n}\\n.rmsc .dropdown-heading {\\n  cursor: pointer !important;\\n}\\n.disabled-field {\\n  .rmsc .dropdown-heading {\\n    cursor: not-allowed !important;\\n    opacity: 0.7;\\n    color: black !important;\\n  }\\n}\\n.capitalize {\\n  text-transform: lowercase;\\n}\\n.capitalize:first-letter {\\n  text-transform: uppercase;\\n}\\n.text-error {\\n  color: #cf3537 !important;\\n}\\n.text-info {\\n  color: #005693;\\n}\\n.pointer {\\ncursor: pointer !important;\\n}\\n\\n.disable-pointer {\\n          pointer-events: none !important;\\n}\\n\\n.menu-content {\\n           scrollbar-width: thin !important;\\n                              ::-webkit-scrollbar{ \\n                                        width: 6px;\\n                                         height: 5px ;\\n                                        }\\n                              ::-webkit-scrollbar-track { border-radius: 10px}\\n                              ::-webkit-scrollbar-thumb  {\\n                                        border-radius: 10px;\\n                                        background-color: #CFD3DB;\\n                              }\\n          .MuiList-root{\\n                    // height: 700px;\\n                    overflow-y: auto;\\n                         \\n          }\\n}\\n\\n.remove-button {\\n          border: none;\\n          background: none;\\n}\\n\\n.button-with-dot {\\n          position: relative;\\n}\\n\\n.button-with-dot::after {\\n          content: \\\"\\\";\\n          position: absolute;\\n          top: 5px;\\n          /* Adjust as needed */\\n          right: 5px;\\n          /* Adjust as needed */\\n          width: 10px;\\n          /* Adjust as needed */\\n          height: 10px;\\n          /* Adjust as needed */\\n          background-color: red;\\n          border-radius: 50%;\\n}\\n\\n.font-styles{\\n  color: #232630;\\n  font-size: 12px;\\n  font-family: NotoSans-Regular;\\n}\\n\\n.first-col-divider {\\n  position: relative;\\n}\\n\\n.first-col-divider::after {\\n  content: '';\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  width: 2px;\\n  background-color: #e0e0e0;\\n  pointer-events: none;\\n  z-index: 10;\\n}\\n.icon-product-demo-tracking:before {\\n  content: \\\"\\\\e952\\\";\\n  color: #65833a;\\n}\\n\\n.popupMain .bgp-error-log-action {\\n  width: 126px;\\n  height: 32px;\\n  padding: 5px 12px;\\n  border-radius: 4px;\\n  font-family: NotoSans-Semibold, sans-serif;\\n  font-size: 14px;\\n  font-weight: 600;\\n  text-transform: none;\\n}\\n\\n.popupMain .bgp-error-log-action.MuiButton-contained {\\n  background-color: #65833a;\\n  color: #ffffff;\\n}\\n\\n.popupMain .bgp-error-log-action.MuiButton-contained:hover {\\n  background-color: #65833a;\\n}\\n\\n.popupMain .bgp-error-log-action.MuiButton-outlined {\\n  border-color: #d8dde5;\\n  color: #232630;\\n  background-color: #ffffff;\\n}\\n\\n.popupMain.bgp-error-log-drawer {\\n  width: 800px !important;\\n  padding: 24px;\\n}\\n\\n.bgp-error-log-banner-row {\\n  width: 100%;\\n  margin: 24px 0 16px;\\n  align-items: flex-start;\\n}\\n\\n.bgp-error-msg-card {\\n  flex: 1;\\n  height: 80px;\\n  min-height: 80px;\\n  margin: 0 !important;\\n  padding: 12px 14px;\\n  border: 1px solid #cf3537;\\n  border-left: 4px solid #cf3537;\\n  border-radius: 4px;\\n  background: #ffffff;\\n}\\n\\n.bgp-error-log-actions {\\n  width: 126px;\\n  flex: 0 0 126px;\\n  align-items: stretch;\\n  padding-top: 0;\\n}\\n\\n.bgp-error-log-actions .MuiButtonBase-root {\\n  width: 126px;\\n  min-width: 126px;\\n  height: 32px;\\n  margin: 0;\\n  justify-content: center;\\n}\\n\\n.bgp-error-title,\\n.bgp-error-description {\\n  color: #232630;\\n}\\n\\n.bgp-error-title {\\n  margin: 0;\\n  font-size: 14px !important;\\n  font-weight: 700 !important;\\n}\\n\\n.bgp-error-description {\\n  margin-top: 4px !important;\\n  font-size: 12px !important;\\n}\\n\\n.popupMain .error-log-summary-card {\\n  flex: 1;\\n  min-height: 52px;\\n  padding: 9px 12px;\\n  border: 1px solid #cfd3db;\\n  border-radius: 6px;\\n  background-color: #f3f4f6;\\n  color: #1d2b3a;\\n  text-align: left;\\n}\\n\\n.popupMain .error-log-summary-card.total {\\n  border-color: #c6e6ff;\\n  background-color: #edf7ff;\\n}\\n\\n.popupMain .error-log-summary-card.created {\\n  border-color: #c3ead1;\\n  background-color: #e9f9ef;\\n}\\n\\n.popupMain .error-log-summary-card.not-created {\\n  border-color: #f1c7c8;\\n  background-color: #fff1f1;\\n}\\n\\n.popupMain .error-log-summary-icon {\\n  flex: 0 0 auto;\\n  color: #697386;\\n  font-size: 18px;\\n}\\n\\n.popupMain .error-log-summary-icon.success {\\n  color: #697386;\\n}\\n\\n.popupMain .error-log-summary-icon.error {\\n  color: #697386;\\n}\\n\\n.popupMain .error-log-summary-value {\\n  margin-left: 28px;\\n  color: #005693;\\n  font-size: 16px;\\n  font-weight: 700;\\n}\\n\\n.popupMain .error-log-summary-card.created .error-log-summary-value {\\n  color: #14803c;\\n}\\n\\n.popupMain .error-log-summary-card.not-created .error-log-summary-value {\\n  color: #cf3537;\\n}\"],sourceRoot:\"\"}]);const En=Le},56903:e=>{var t=e.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=t)},56908:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=r(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==r(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{F:()=>s,q:()=>l}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(1688),n(89572),n(23288),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var l=function(e){return e.NOT_MARKED=\"not marked\",e.PRESENT=\"present\",e.ABSENT=\"absent\",e.WEEK_OFF=\"week off\",e.HOLIDAY=\"holiday\",e.ATTENDANCE_APPROVER_CONFIGURATION=\"attendance_approver_configurations\",e.ATTENDANCE_TYPE=\"attendance_type\",e.EVENT_BASED_ATTENDANCE=\"EVENT_BASED_ATTENDANCE\",e.APPROVAl=\"approval\",e.CAPS_PRESENT=\"PRESENT\",e.CAPS_ABSENT=\"ABSENT\",e}({}),s=function(e,t,n,r){var o,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return[a({attendanceEntryId:null==t?void 0:t.attendanceUUID,approvedByUuid:null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id,attendanceStatus:r,isApproved:!!i,isFinalApproved:!!i,approvalComments:n,approvalTime:(new Date).toISOString()},i?{finalApprovalTime:(new Date).toISOString()}:{})]}},56969:(e,t,n)=>{\"use strict\";var r=n(72777),o=n(10757);e.exports=function(e){var t=r(e,\"string\");return o(t)?t:t+\"\"}},57029:(e,t,n)=>{\"use strict\";var r=n(48981),o=n(35610),a=n(26198),i=n(84606),l=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n),u=o(e,s),c=o(t,s),d=arguments.length>2?arguments[2]:void 0,p=l((void 0===d?s:o(d,s))-c,s-u),f=1;for(c<u&&u<c+p&&(f=-1,c+=p-1,u+=p-1);p-- >0;)c in n?n[u]=n[c]:i(n,u),u+=f,c+=f;return n}},57149:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(13967)},57223:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(81970);function o(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}},57301:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"some\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},57323:(e,t,n)=>{\"use strict\";var r,o,a=n(69565),i=n(79504),l=n(655),s=n(67979),u=n(58429),c=n(25745),d=n(2360),p=n(91181).get,f=n(83635),g=n(18814),h=c(\"native-string-replace\",String.prototype.replace),m=RegExp.prototype.exec,v=m,A=i(\"\".charAt),y=i(\"\".indexOf),E=i(\"\".replace),b=i(\"\".slice),_=(o=/b*/g,a(m,r=/a/,\"a\"),a(m,o,\"a\"),0!==r.lastIndex||0!==o.lastIndex),C=u.BROKEN_CARET,w=void 0!==/()??/.exec(\"\")[1];(_||w||C||f||g)&&(v=function(e){var t,n,r,o,i,u,c,f=this,g=p(f),S=l(e),T=g.raw;if(T)return T.lastIndex=f.lastIndex,t=a(v,T,S),f.lastIndex=T.lastIndex,t;var O=g.groups,D=C&&f.sticky,R=a(s,f),N=f.source,L=0,P=S;if(D&&(R=E(R,\"y\",\"\"),-1===y(R,\"g\")&&(R+=\"g\"),P=b(S,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&\"\\n\"!==A(S,f.lastIndex-1))&&(N=\"(?: \"+N+\")\",P=\" \"+P,L++),n=new RegExp(\"^(?:\"+N+\")\",R)),w&&(n=new RegExp(\"^\"+N+\"$(?!\\\\s)\",R)),_&&(r=f.lastIndex),o=a(m,D?n:f,P),D?o?(o.input=b(o.input,L),o[0]=b(o[0],L),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:_&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),w&&o&&o.length>1&&a(h,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&O)for(o.groups=u=d(null),i=0;i<O.length;i++)u[(c=O[i])[0]]=o[c[1]];return o}),e.exports=v},57609:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"uz\",{months:\"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр\".split(\"_\"),monthsShort:\"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек\".split(\"_\"),weekdays:\"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба\".split(\"_\"),weekdaysShort:\"Якш_Душ_Сеш_Чор_Пай_Жум_Шан\".split(\"_\"),weekdaysMin:\"Як_Ду_Се_Чо_Па_Жу_Ша\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"D MMMM YYYY, dddd HH:mm\"},calendar:{sameDay:\"[Бугун соат] LT [да]\",nextDay:\"[Эртага] LT [да]\",nextWeek:\"dddd [куни соат] LT [да]\",lastDay:\"[Кеча соат] LT [да]\",lastWeek:\"[Утган] dddd [куни соат] LT [да]\",sameElse:\"L\"},relativeTime:{future:\"Якин %s ичида\",past:\"Бир неча %s олдин\",s:\"фурсат\",ss:\"%d фурсат\",m:\"бир дакика\",mm:\"%d дакика\",h:\"бир соат\",hh:\"%d соат\",d:\"бир кун\",dd:\"%d кун\",M:\"бир ой\",MM:\"%d ой\",y:\"бир йил\",yy:\"%d йил\"},week:{dow:1,doy:7}})}(n(95093))},57657:(e,t,n)=>{\"use strict\";var r,o,a,i=n(79039),l=n(94901),s=n(20034),u=n(2360),c=n(42787),d=n(36840),p=n(78227),f=n(96395),g=p(\"iterator\"),h=!1;[].keys&&(\"next\"in(a=[].keys())?(o=c(c(a)))!==Object.prototype&&(r=o):h=!0),!s(r)||i(function(){var e={};return r[g].call(e)!==e})?r={}:f&&(r=u(r)),l(r[g])||d(r,g,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},57696:(e,t,n)=>{\"use strict\";var r=n(91291),o=n(18014),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new a(\"Wrong length or index\");return n}},57777:function(e,t,n){!function(e){\"use strict\";var t=[\"جنوری\",\"فروری\",\"مارچ\",\"اپریل\",\"مئی\",\"جون\",\"جولائی\",\"اگست\",\"ستمبر\",\"اکتوبر\",\"نومبر\",\"دسمبر\"],n=[\"اتوار\",\"پیر\",\"منگل\",\"بدھ\",\"جمعرات\",\"جمعہ\",\"ہفتہ\"];e.defineLocale(\"ur\",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd، D MMMM YYYY HH:mm\"},meridiemParse:/صبح|شام/,isPM:function(e){return\"شام\"===e},meridiem:function(e,t,n){return e<12?\"صبح\":\"شام\"},calendar:{sameDay:\"[آج بوقت] LT\",nextDay:\"[کل بوقت] LT\",nextWeek:\"dddd [بوقت] LT\",lastDay:\"[گذشتہ روز بوقت] LT\",lastWeek:\"[گذشتہ] dddd [بوقت] LT\",sameElse:\"L\"},relativeTime:{future:\"%s بعد\",past:\"%s قبل\",s:\"چند سیکنڈ\",ss:\"%d سیکنڈ\",m:\"ایک منٹ\",mm:\"%d منٹ\",h:\"ایک گھنٹہ\",hh:\"%d گھنٹے\",d:\"ایک دن\",dd:\"%d دن\",M:\"ایک ماہ\",MM:\"%d ماہ\",y:\"ایک سال\",yy:\"%d سال\"},preparse:function(e){return e.replace(/،/g,\",\")},postformat:function(e){return e.replace(/,/g,\"،\")},week:{dow:1,doy:4}})}(n(95093))},57829:(e,t,n)=>{\"use strict\";var r=n(68183).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},58068:e=>{\"use strict\";e.exports=SyntaxError},58069:(e,t,n)=>{\"use strict\";n.d(t,{$m:()=>A,HE:()=>d,KQ:()=>m,OK:()=>h,SK:()=>c,VR:()=>u,YR:()=>a,aV:()=>s,iH:()=>i,qx:()=>f,vY:()=>l,xb:()=>p,xz:()=>g,zN:()=>v}),n(28706),n(27495),n(25440);var r=n(8085),o=n(13075),a=function(e){return(0,o.AT)(\"get\",e,!1)},i=function(e){return(0,o.AT)(\"post\",e,!1)},l=function(e){return(0,o.AT)(\"get\",e,!1)},s=function(e){return(0,o.AT)(\"get\",e,!1)},u=function(e){return(0,o.AT)(\"post\",e,!1)},c=function(e){return(0,o.AT)(\"post\",e,!1)},d=function(e){return(0,o.AT)(\"put\",e,!1)},p=function(e,t){var n={};return n.domain=e.baseurl,n.endPoint=r.p.GETHQHIERARCHYDATA,n.customHeaders={\"bu-id\":null==e?void 0:e.bu_id,\"country-code\":null==e?void 0:e.country_code,Authorization:null==e?void 0:e.Authorization},n.triggerLoader=t,(0,o.AT)(\"get\",n,!0)},f=function(e,t,n){var a={};return a.domain=e.baseurl,a.endPoint=r.p.USER_HIERARCHIES_LIST.replace(\"__id__\",n),a.customHeaders={\"bu-id\":null==e?void 0:e.bu_id,\"country-code\":null==e?void 0:e.country_code,Authorization:null==e?void 0:e.Authorization},a.triggerLoader=t,(0,o.AT)(\"get\",a,!0)},g=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={};return i.domain=e.baseurl,i.endPoint=r.p.GET_PARENT_LIST.replace(\"__HQHIERARCHYID__\",n),i.payLoad={\"portfolio-code\":a},i.customHeaders={\"country-code\":e.country_code,\"user-id\":e.user_id,\"role-id\":e.role_id,Authorization:e.Authorization},i.triggerLoader=t,(0,o.AT)(\"get\",i,!0)},h=function(e,t,n){var a={};return a.domain=e.baseurl,a.endPoint=\"\".concat(r.p.GET_USERS_FILTER.replace(\"__HQHIERARCHYID__\",null==n?void 0:n.hqHierarchyId),\"?\").concat((0,o.EY)(\"parent_hq_ids\",null==n?void 0:n.parent_hq_ids)),a.customHeaders={\"country-code\":e.country_code,\"bu-id\":e.bu_id,Authorization:e.Authorization},a.triggerLoader=t,(0,o.AT)(\"get\",a,!0)},m=function(e,t,n){var a={};return a.domain=e.baseurl,a.endPoint=\"\".concat(r.p.IS_UNMAPPED_GEO_DATA_RETAILER.replace(\"__hqId__\",null==n?void 0:n.hqId)),a.customHeaders={\"country-code\":e.country_code,Authorization:e.Authorization},a.triggerLoader=t,a.payLoad=null==n?void 0:n.new_geo_data_ids,(0,o.AT)(\"post\",a,!1)},v=function(e,t){var n={};return n.domain=e.baseurl,n.endPoint=r.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",e.bu_code),n.customHeaders={\"bu-id \":e.bu_id,\"country-code \":e.country_code,Authorization:e.Authorization},n.triggerLoader=t,(0,o.AT)(\"get\",n,!0)},A=function(e){return(0,o.AT)(\"post\",e,!1)}},58076:function(e,t,n){!function(e){\"use strict\";var t={words:{ss:[\"sekund\",\"sekunda\",\"sekundi\"],m:[\"jedan minut\",\"jednog minuta\"],mm:[\"minut\",\"minuta\",\"minuta\"],h:[\"jedan sat\",\"jednog sata\"],hh:[\"sat\",\"sata\",\"sati\"],dd:[\"dan\",\"dana\",\"dana\"],MM:[\"mjesec\",\"mjeseca\",\"mjeseci\"],yy:[\"godina\",\"godine\",\"godina\"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+\" \"+t.correctGrammaticalCase(e,o)}};e.defineLocale(\"me\",{months:\"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar\".split(\"_\"),monthsShort:\"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota\".split(\"_\"),weekdaysShort:\"ned._pon._uto._sri._čet._pet._sub.\".split(\"_\"),weekdaysMin:\"ne_po_ut_sr_če_pe_su\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm\",LLLL:\"dddd, D. MMMM YYYY H:mm\"},calendar:{sameDay:\"[danas u] LT\",nextDay:\"[sjutra u] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[u] [nedjelju] [u] LT\";case 3:return\"[u] [srijedu] [u] LT\";case 6:return\"[u] [subotu] [u] LT\";case 1:case 2:case 4:case 5:return\"[u] dddd [u] LT\"}},lastDay:\"[juče u] LT\",lastWeek:function(){return[\"[prošle] [nedjelje] [u] LT\",\"[prošlog] [ponedjeljka] [u] LT\",\"[prošlog] [utorka] [u] LT\",\"[prošle] [srijede] [u] LT\",\"[prošlog] [četvrtka] [u] LT\",\"[prošlog] [petka] [u] LT\",\"[prošle] [subote] [u] LT\"][this.day()]},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"prije %s\",s:\"nekoliko sekundi\",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:\"dan\",dd:t.translate,M:\"mjesec\",MM:t.translate,y:\"godinu\",yy:t.translate},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:7}})}(n(95093))},58094:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(98587),o=n(58168);const a=[\"values\",\"unit\",\"step\"],i=e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.A)({},e,{[t.key]:t.val}),{})};function l(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=\"px\",step:l=5}=e,s=(0,r.A)(e,a),u=i(t),c=Object.keys(u);function d(e){return`@media (min-width:${\"number\"==typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${(\"number\"==typeof t[e]?t[e]:e)-l/100}${n})`}function f(e,r){const o=c.indexOf(r);return`@media (min-width:${\"number\"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&\"number\"==typeof t[c[o]]?t[c[o]]:r)-l/100}${n})`}return(0,o.A)({keys:c,values:u,up:d,down:p,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):d(e)},not:function(e){const t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?p(c[t]):f(e,c[c.indexOf(e)+1]).replace(\"@media\",\"@media not all and\")},unit:n},s)}},58125:(e,t,n)=>{\"use strict\";n.d(t,{H:()=>o});var r=n(51545),o=(0,n(8676).A)(r.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .ag-header-cell-text\":{fontSize:\"12px !important\"}}})},58156:(e,t,n)=>{var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},58168:(e,t,n)=>{\"use strict\";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58229:(e,t,n)=>{\"use strict\";var r=n(99590),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new o(\"Wrong offset\");return n}},58242:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(97751),a=n(78227),i=n(36840);e.exports=function(){var e=o(\"Symbol\"),t=e&&e.prototype,n=t&&t.valueOf,l=a(\"toPrimitive\");t&&!t[l]&&i(t,l,function(e){return r(n,this)},{arity:1})}},58312:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=\"$$material\"},58319:e=>{\"use strict\";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},58357:(e,t,n)=>{\"use strict\";e.exports=n.p+\"0dc281f99ad4aa37cc48.eot\"},58407:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"}),\"CheckCircleOutline\")},58429:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(44576).RegExp,a=r(function(){var e=o(\"a\",\"y\");return e.lastIndex=2,null!==e.exec(\"abcd\")}),i=a||r(function(){return!o(\"a\",\"y\").sticky}),l=a||r(function(){var e=o(\"^r\",\"gy\");return e.lastIndex=2,null!==e.exec(\"str\")});e.exports={BROKEN_CARET:l,MISSED_STICKY:i,UNSUPPORTED_Y:a}},58489:(e,t,n)=>{n(79115),e.exports=n(6791).Object.assign},58622:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(94901),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},58676:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ar-kw\",{months:\"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر\".split(\"_\"),monthsShort:\"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر\".split(\"_\"),weekdays:\"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[اليوم على الساعة] LT\",nextDay:\"[غدا على الساعة] LT\",nextWeek:\"dddd [على الساعة] LT\",lastDay:\"[أمس على الساعة] LT\",lastWeek:\"dddd [على الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"في %s\",past:\"منذ %s\",s:\"ثوان\",ss:\"%d ثانية\",m:\"دقيقة\",mm:\"%d دقائق\",h:\"ساعة\",hh:\"%d ساعات\",d:\"يوم\",dd:\"%d أيام\",M:\"شهر\",MM:\"%d أشهر\",y:\"سنة\",yy:\"%d سنوات\"},week:{dow:0,doy:12}})}(n(95093))},58749:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>f});var r=n(58168),o=n(98587),a=n(11317),i=n(58094);const l={borderRadius:4};var s=n(68248),u=n(33571),c=n(94188),d=n(28336);const p=[\"breakpoints\",\"palette\",\"spacing\",\"shape\"],f=function(e={},...t){const{breakpoints:n={},palette:f={},spacing:g,shape:h={}}=e,m=(0,o.A)(e,p),v=(0,i.A)(n),A=function(e=8){if(e.mui)return e;const t=(0,s.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return\"number\"==typeof n?`${n}px`:n}).join(\" \");return n.mui=!0,n}(g);let y=(0,a.A)({breakpoints:v,direction:\"ltr\",components:{},palette:(0,r.A)({mode:\"light\"},f),spacing:A,shape:(0,r.A)({},l,h)},m);return y.applyStyles=d.A,y=t.reduce((e,t)=>(0,a.A)(e,t),y),y.unstable_sxConfig=(0,r.A)({},c.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},y}},58859:(e,t,n)=>{var r=\"function\"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,\"size\"):null,a=r&&o&&\"function\"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,l=\"function\"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,\"size\"):null,u=l&&s&&\"function\"==typeof s.get?s.get:null,c=l&&Set.prototype.forEach,d=\"function\"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p=\"function\"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f=\"function\"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,A=String.prototype.slice,y=String.prototype.replace,E=String.prototype.toUpperCase,b=String.prototype.toLowerCase,_=RegExp.prototype.test,C=Array.prototype.concat,w=Array.prototype.join,S=Array.prototype.slice,T=Math.floor,O=\"function\"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,R=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?Symbol.prototype.toString:null,N=\"function\"==typeof Symbol&&\"object\"==typeof Symbol.iterator,L=\"function\"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,M=(\"function\"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function x(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(\"number\"==typeof e){var r=e<0?-T(-e):T(e);if(r!==e){var o=String(r),a=A.call(t,o.length+1);return y.call(o,n,\"$&_\")+\".\"+y.call(y.call(a,/([0-9]{3})/g,\"$&_\"),/_$/,\"\")}}return y.call(t,n,\"$&_\")}var I=n(42634),k=I.custom,B=V(k)?k:null,F={__proto__:null,double:'\"',single:\"'\"},j={__proto__:null,double:/([\"\\\\])/g,single:/(['\\\\])/g};function H(e,t,n){var r=n.quoteStyle||t,o=F[r];return o+e+o}function U(e){return y.call(String(e),/\"/g,\"&quot;\")}function Y(e){return!L||!(\"object\"==typeof e&&(L in e||void 0!==e[L]))}function G(e){return\"[object Array]\"===Q(e)&&Y(e)}function z(e){return\"[object RegExp]\"===Q(e)&&Y(e)}function V(e){if(N)return e&&\"object\"==typeof e&&e instanceof Symbol;if(\"symbol\"==typeof e)return!0;if(!e||\"object\"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,l){var s=r||{};if(W(s,\"quoteStyle\")&&!W(F,s.quoteStyle))throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');if(W(s,\"maxStringLength\")&&(\"number\"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');var h=!W(s,\"customInspect\")||s.customInspect;if(\"boolean\"!=typeof h&&\"symbol\"!==h)throw new TypeError(\"option \\\"customInspect\\\", if provided, must be `true`, `false`, or `'symbol'`\");if(W(s,\"indent\")&&null!==s.indent&&\"\\t\"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');if(W(s,\"numericSeparator\")&&\"boolean\"!=typeof s.numericSeparator)throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');var E=s.numericSeparator;if(void 0===t)return\"undefined\";if(null===t)return\"null\";if(\"boolean\"==typeof t)return t?\"true\":\"false\";if(\"string\"==typeof t)return $(t,s);if(\"number\"==typeof t){if(0===t)return 1/0/t>0?\"0\":\"-0\";var _=String(t);return E?x(t,_):_}if(\"bigint\"==typeof t){var T=String(t)+\"n\";return E?x(t,T):T}var D=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=D&&D>0&&\"object\"==typeof t)return G(t)?\"[Array]\":\"[Object]\";var k,j=function(e,t){var n;if(\"\\t\"===e.indent)n=\"\\t\";else{if(!(\"number\"==typeof e.indent&&e.indent>0))return null;n=w.call(Array(e.indent+1),\" \")}return{base:n,prev:w.call(Array(t+1),n)}}(s,o);if(void 0===l)l=[];else if(K(l,t)>=0)return\"[Circular]\";function q(t,n,r){if(n&&(l=S.call(l)).push(n),r){var a={depth:s.depth};return W(s,\"quoteStyle\")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,l)}return e(t,s,o+1,l)}if(\"function\"==typeof t&&!z(t)){var X=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\\s*([\\w$]+)/);return t?t[1]:null}(t),re=ne(t,q);return\"[Function\"+(X?\": \"+X:\" (anonymous)\")+\"]\"+(re.length>0?\" { \"+w.call(re,\", \")+\" }\":\"\")}if(V(t)){var oe=N?y.call(String(t),/^(Symbol\\(.*\\))_[^)]*$/,\"$1\"):R.call(t);return\"object\"!=typeof t||N?oe:J(oe)}if((k=t)&&\"object\"==typeof k&&(\"undefined\"!=typeof HTMLElement&&k instanceof HTMLElement||\"string\"==typeof k.nodeName&&\"function\"==typeof k.getAttribute)){for(var ae=\"<\"+b.call(String(t.nodeName)),ie=t.attributes||[],le=0;le<ie.length;le++)ae+=\" \"+ie[le].name+\"=\"+H(U(ie[le].value),\"double\",s);return ae+=\">\",t.childNodes&&t.childNodes.length&&(ae+=\"...\"),ae+\"</\"+b.call(String(t.nodeName))+\">\"}if(G(t)){if(0===t.length)return\"[]\";var se=ne(t,q);return j&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],\"\\n\")>=0)return!1;return!0}(se)?\"[\"+te(se,j)+\"]\":\"[ \"+w.call(se,\", \")+\" ]\"}if(function(e){return\"[object Error]\"===Q(e)&&Y(e)}(t)){var ue=ne(t,q);return\"cause\"in Error.prototype||!(\"cause\"in t)||P.call(t,\"cause\")?0===ue.length?\"[\"+String(t)+\"]\":\"{ [\"+String(t)+\"] \"+w.call(ue,\", \")+\" }\":\"{ [\"+String(t)+\"] \"+w.call(C.call(\"[cause]: \"+q(t.cause),ue),\", \")+\" }\"}if(\"object\"==typeof t&&h){if(B&&\"function\"==typeof t[B]&&I)return I(t,{depth:D-o});if(\"symbol\"!==h&&\"function\"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||\"object\"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,function(e,n){ce.push(q(n,t,!0)+\" => \"+q(e,t))}),ee(\"Map\",a.call(t),ce,j)}if(function(e){if(!u||!e||\"object\"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var de=[];return c&&c.call(t,function(e){de.push(q(e,t))}),ee(\"Set\",u.call(t),de,j)}if(function(e){if(!d||!e||\"object\"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z(\"WeakMap\");if(function(e){if(!p||!e||\"object\"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z(\"WeakSet\");if(function(e){if(!f||!e||\"object\"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z(\"WeakRef\");if(function(e){return\"[object Number]\"===Q(e)&&Y(e)}(t))return J(q(Number(t)));if(function(e){if(!e||\"object\"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return J(q(O.call(t)));if(function(e){return\"[object Boolean]\"===Q(e)&&Y(e)}(t))return J(g.call(t));if(function(e){return\"[object String]\"===Q(e)&&Y(e)}(t))return J(q(String(t)));if(\"undefined\"!=typeof window&&t===window)return\"{ [object Window] }\";if(\"undefined\"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return\"{ [object globalThis] }\";if(!function(e){return\"[object Date]\"===Q(e)&&Y(e)}(t)&&!z(t)){var pe=ne(t,q),fe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,ge=t instanceof Object?\"\":\"null prototype\",he=!fe&&L&&Object(t)===t&&L in t?A.call(Q(t),8,-1):ge?\"Object\":\"\",me=(fe||\"function\"!=typeof t.constructor?\"\":t.constructor.name?t.constructor.name+\" \":\"\")+(he||ge?\"[\"+w.call(C.call([],he||[],ge||[]),\": \")+\"] \":\"\");return 0===pe.length?me+\"{}\":j?me+\"{\"+te(pe,j)+\"}\":me+\"{ \"+w.call(pe,\", \")+\" }\"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return q.call(e,t)}function Q(e){return h.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function $(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=\"... \"+n+\" more character\"+(n>1?\"s\":\"\");return $(A.call(e,0,t.maxStringLength),t)+r}var o=j[t.quoteStyle||\"single\"];return o.lastIndex=0,H(y.call(y.call(e,o,\"\\\\$1\"),/[\\x00-\\x1f]/g,X),\"single\",t)}function X(e){var t=e.charCodeAt(0),n={8:\"b\",9:\"t\",10:\"n\",12:\"f\",13:\"r\"}[t];return n?\"\\\\\"+n:\"\\\\x\"+(t<16?\"0\":\"\")+E.call(t.toString(16))}function J(e){return\"Object(\"+e+\")\"}function Z(e){return e+\" { ? }\"}function ee(e,t,n,r){return e+\" (\"+t+\") {\"+(r?te(n,r):w.call(n,\", \"))+\"}\"}function te(e,t){if(0===e.length)return\"\";var n=\"\\n\"+t.prev+t.base;return n+w.call(e,\",\"+n)+\"\\n\"+t.prev}function ne(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=W(e,o)?t(e[o],e):\"\"}var a,i=\"function\"==typeof D?D(e):[];if(N){a={};for(var l=0;l<i.length;l++)a[\"$\"+i[l]]=i[l]}for(var s in e)W(e,s)&&(n&&String(Number(s))===s&&s<e.length||N&&a[\"$\"+s]instanceof Symbol||(_.call(/[^\\w$]/,s)?r.push(t(s,e)+\": \"+t(e[s],e)):r.push(s+\": \"+t(e[s],e))));if(\"function\"==typeof D)for(var u=0;u<i.length;u++)P.call(e,i[u])&&r.push(\"[\"+t(i[u])+\"]: \"+t(e[i[u]],e));return r}},58928:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a.A,createSvgIcon:()=>i.A,debounce:()=>l.A,deprecatedPropType:()=>s,isMuiElement:()=>u.A,ownerDocument:()=>c.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>f,unstable_ClassNameGenerator:()=>b,unstable_useEnhancedEffect:()=>g.A,unstable_useId:()=>h.A,unsupportedProp:()=>m,useControlled:()=>v.A,useEventCallback:()=>A.A,useForkRef:()=>y.A,useIsFocusVisible:()=>E.A});var r=n(79071),o=n(28466),a=n(50862),i=n(20561),l=n(1935);const s=function(e,t){return()=>null};var u=n(18593),c=n(96248),d=n(93749);const p=function(e,t){return()=>null},f=n(17365).A;var g=n(2778),h=n(1668);const m=function(e,t,n,r,o){return null};var v=n(41159),A=n(83034),y=n(96852),E=n(81984);const b={configure:e=>{r.A.configure(e)}}},58968:e=>{\"use strict\";e.exports=Math.floor},58969:(e,t,n)=>{\"use strict\";n.d(t,{N:()=>r});var r={CODE_MIN_LENGTH:\"Code should be atleast 3 characters\",GEO_CODE_MIN_LENGTH:\"Code should be atleast 2 characters\",CODE_MAX_LENTGH:\"Code should be a max of 20 characters\",NAME_MIN_LENGTH:\"Name should be atleast 3 characters\",NAME_MAX_LENTGH:\"Name should be a max of 50 characters\",GEOHIERARCHY_NAME_MIN:\"Geo Hierarchy should be atleast 2 characters\",GEOHIERARCHY_NAME_MAX:\"Geo Hierarchy name shouldn't exceed 30 characters\",GEOSALESHIERARCHY_NAME_MIN:\"GeoHierarchy Name should be atleast 3 characters\",GEOSALESHIERARCHY_NAME_MAX:\"GeoHierarchy Name should be a max of 20 characters\",GEOSALESHIERARCHY_CODE_MIN:\"GeoHierarchy Code should be atleast 3 characters\",GEOSALESHIERARCHY_CODE_MAX:\"GeoHierarchy Code should be a max of 20 characters\",HEADQUARTERNAME_MIN:\"HeadQuarter Name should be atleast 3 characters\",HEADQUARTERNAME_MAX:\"HeadQuarter Name should be a max of 20 characters\"}},59089:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=Date,i=o(a.prototype.getTime);r({target:\"Date\",stat:!0},{now:function(){return i(new a)}})},59111:(e,t,n)=>{\"use strict\";e.exports=n.p+\"222bea734eb62bc46ab3.svg\"},59213:(e,t,n)=>{\"use strict\";var r=n(76080),o=n(79504),a=n(47055),i=n(48981),l=n(26198),s=n(1469),u=o([].push),c=function(e){var t=1===e,n=2===e,o=3===e,c=4===e,d=6===e,p=7===e,f=5===e||d;return function(g,h,m,v){for(var A,y,E=i(g),b=a(E),_=l(b),C=r(h,m),w=0,S=v||s,T=t?S(g,_):n||p?S(g,0):void 0;_>w;w++)if((f||w in b)&&(y=C(A=b[w],w,E),e))if(t)T[w]=y;else if(y)switch(e){case 3:return!0;case 5:return A;case 6:return w;case 2:u(T,A)}else switch(e){case 4:return!1;case 7:u(T,A)}return d?-1:o||c?c:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},59225:(e,t,n)=>{\"use strict\";var r,o,a,i,l=n(44576),s=n(18745),u=n(76080),c=n(94901),d=n(39297),p=n(79039),f=n(20397),g=n(67680),h=n(4055),m=n(22812),v=n(89544),A=n(16193),y=l.setImmediate,E=l.clearImmediate,b=l.process,_=l.Dispatch,C=l.Function,w=l.MessageChannel,S=l.String,T=0,O={},D=\"onreadystatechange\";p(function(){r=l.location});var R=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},N=function(e){return function(){R(e)}},L=function(e){R(e.data)},P=function(e){l.postMessage(S(e),r.protocol+\"//\"+r.host)};y&&E||(y=function(e){m(arguments.length,1);var t=c(e)?e:C(e),n=g(arguments,1);return O[++T]=function(){s(t,void 0,n)},o(T),T},E=function(e){delete O[e]},A?o=function(e){b.nextTick(N(e))}:_&&_.now?o=function(e){_.now(N(e))}:w&&!v?(i=(a=new w).port2,a.port1.onmessage=L,o=u(i.postMessage,i)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&r&&\"file:\"!==r.protocol&&!p(P)?(o=P,l.addEventListener(\"message\",L,!1)):o=D in h(\"script\")?function(e){f.appendChild(h(\"script\"))[D]=function(){f.removeChild(this),R(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:y,clear:E}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59480:(e,t,n)=>{var r=n(43066),o=n(69204),a=n(73901)(!1),i=n(36211)(\"IE_PROTO\");e.exports=function(e,t){var n,l=o(e),s=0,u=[];for(n in l)n!=i&&r(l,n)&&u.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~a(u,n)||u.push(n));return u}},59527:function(e,t,n){!function(e){\"use strict\";var t={1:\"'inji\",5:\"'inji\",8:\"'inji\",70:\"'inji\",80:\"'inji\",2:\"'nji\",7:\"'nji\",20:\"'nji\",50:\"'nji\",3:\"'ünji\",4:\"'ünji\",100:\"'ünji\",6:\"'njy\",9:\"'unjy\",10:\"'unjy\",30:\"'unjy\",60:\"'ynjy\",90:\"'ynjy\"};e.defineLocale(\"tk\",{months:\"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr\".split(\"_\"),monthsShort:\"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek\".split(\"_\"),weekdays:\"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe\".split(\"_\"),weekdaysShort:\"Ýek_Duş_Siş_Çar_Pen_Ann_Şen\".split(\"_\"),weekdaysMin:\"Ýk_Dş_Sş_Çr_Pn_An_Şn\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[bugün sagat] LT\",nextDay:\"[ertir sagat] LT\",nextWeek:\"[indiki] dddd [sagat] LT\",lastDay:\"[düýn] LT\",lastWeek:\"[geçen] dddd [sagat] LT\",sameElse:\"L\"},relativeTime:{future:\"%s soň\",past:\"%s öň\",s:\"birnäçe sekunt\",m:\"bir minut\",mm:\"%d minut\",h:\"bir sagat\",hh:\"%d sagat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir aý\",MM:\"%d aý\",y:\"bir ýyl\",yy:\"%d ýyl\"},ordinal:function(e,n){switch(n){case\"d\":case\"D\":case\"Do\":case\"DD\":return e;default:if(0===e)return e+\"'unjy\";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},59615:(e,t,n)=>{\"use strict\";n.d(t,{K:()=>O,A:()=>N}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(62062),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(35476),o=n(94259),a=n(40921),i=n(48719),l=n(14073),s=n(16576),u=n(28161),c=n(86990),d=n(19741),p=n(90815),f=n(81970),g=n.n(f),h=n(99478),m=n(15664),v=n(37306),A=n(11848),y=n(6398),E=(0,A.Ay)(u.A)(function(e){return e.theme,{\"& .sort-btn\":{border:\"none\"}}}),b=(0,y.A)({buttonHelper:{},buttonGroupHelper:{marginLeft:\"auto\"},accordionSummeryHelper:{flexDirection:\"row-reverse\",\"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded\":{transform:\"rotate(90deg)\"}},FilterMenu:{\"& .MuiPaper-root\":{maxHeight:\"350px\",minWidth:\"215px\",overflowX:\"auto\",borderBottom:\"2px solid #C2C7D0\"}}}),_=n(9483),C=n(50261);function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var T=[{title:\"By date\",options:[{label:\"New to Old\",value:\"DATE_DESC\"},{label:\"Old to New\",value:\"DATE_ASC\"}]},{title:\"By order qty\",options:[{label:\"Increasing\",value:\"ORDER_QTY_ASC\"},{label:\"Decreasing\",value:\"ORDER_QTY_DESC\"}]}];const O=function(e){var t=e.onSort,n=e.sortBy,r=e.buttonLabel,a=void 0===r?\"Sort\":r,i=e.menuTitle,s=e.groups,h=void 0===s?T:s,m=b(),v=w(g().useState(),2),A=v[0],y=v[1],S=w(g().useState(null),2),O=S[0],D=S[1],R=w(g().useState(!0),2),N=R[0],L=R[1],P=(0,f.useMemo)(function(){var e;return null==h||null===(e=h[0])||void 0===e||null===(e=e.options)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.value},[h]),M=null!=n?n:P;(0,f.useEffect)(function(){y(M)},[M]);var x=function(e){y(e),null==t||t(e),D(null)};return g().createElement(E,null,g().createElement(u.A,null,g().createElement(c.A,{color:\"inherit\",className:\"sort-btn\",endIcon:g().createElement(o.A,null),onClick:function(e){D(e.currentTarget),L(!0)},id:\"group-by-sort\",\"data-testid\":\"button-\".concat(a)},g().createElement(l.A,{variant:\"subtitle2\"},a))),g().createElement(d.A,{id:\"group-by-sort-menu\",anchorEl:O,open:Boolean(O),className:m.FilterMenu,onClose:function(){D(null)},MenuListProps:{\"aria-labelledby\":\"group-by-sort-menu\"},slotProps:{paper:{sx:{minWidth:230,maxWidth:260,borderRadius:\"6px\",boxShadow:\"0px 2px 8px rgba(0,0,0,0.2)\"}}}},i&&g().createElement(p.A,{direction:\"row\",alignItems:\"center\",spacing:.4,px:1.2,pt:1,pb:.5,role:\"button\",tabIndex:0,onClick:function(){return L(function(e){return!e})},onKeyDown:function(e){\"Enter\"!==e.key&&\" \"!==e.key||(e.preventDefault(),L(function(e){return!e}))},sx:{cursor:\"pointer\"}},N?g().createElement(_.A,{sx:{fontSize:20}}):g().createElement(C.A,{sx:{fontSize:20}}),g().createElement(l.A,{variant:\"subtitle1\",fontWeight:600},i)),N&&g().createElement(p.A,{px:1,pt:.4,pb:.6,spacing:.8},h.map(function(e){return g().createElement(u.A,{key:e.title},g().createElement(l.A,{variant:\"caption\",sx:{display:\"block\",fontWeight:700,color:\"#2f2f2f\",px:.3,pb:.2}},e.title,\":\"),e.options.map(function(e){return g().createElement(u.A,{key:e.value,role:\"button\",tabIndex:0,onClick:function(){return x(e.value)},onKeyDown:function(t){\"Enter\"!==t.key&&\" \"!==t.key||(t.preventDefault(),x(e.value))},sx:{pl:3.8,pr:1,py:.45,borderRadius:\"2px\",cursor:\"pointer\",backgroundColor:A===e.value?\"#EFE7F5\":\"transparent\",\"&:hover\":{backgroundColor:A===e.value?\"#EFE7F5\":\"#f7f7f7\"}}},g().createElement(l.A,{variant:\"body2\",fontSize:14},e.label))}))}))))};function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const N=function(e){var t,n=e.showLastUpdatedOn,A=e.onSort,y=e.sortBy,_=b(),C=null!=y?y:h.M5,w=D(g().useState(),2),S=w[0],T=w[1],O=D(g().useState(null),2),R=O[0],N=O[1];return(0,f.useEffect)(function(){T(C)},[]),g().createElement(E,null,g().createElement(u.A,null,g().createElement(c.A,{color:\"inherit\",className:\"sort-btn\",endIcon:g().createElement(o.A,null),onClick:function(e){N(e.currentTarget)},id:\"sort\"},g().createElement(l.A,{variant:\"subtitle2\"},\"Sort\"))),g().createElement(d.A,{id:\"basic-menu\",anchorEl:R,open:\"sort\"===(null==R?void 0:R.id),className:_.FilterMenu,onClose:function(){N(null)},MenuListProps:{\"aria-labelledby\":\"basic-button\"}},n&&(t=\"Sort By\",g().createElement(a.A,{disableGutters:!0,elevation:0},g().createElement(i.A,{expandIcon:g().createElement(r.A,{fontSize:\"inherit\"}),\"aria-controls\":\"panel1a-content\",id:\"panel1a-header\",className:_.accordionSummeryHelper,style:{marginRight:\"8px\"}},g().createElement(l.A,{variant:\"subtitle2\",sx:{paddingLeft:2}},t)),g().createElement(s.A,{sx:{marginLeft:1,flexDirection:\"column\",display:\"flex\"}},h.wC.map(function(e,n){return g().createElement(v.A,{name:t,checked:S===e.key||!1,label:e.value,value:e.key,onChange:function(e){T(e)},key:\"\".concat(e.val)})})))),g().createElement(p.A,{direction:\"row\",spacing:2,alignItems:\"center\",justifyContent:\"center\",p:1,pb:0},g().createElement(m.A,{variant:\"outlined\",color:\"success\",fullwidth:!1,onButtonClick:function(){T(C),A(void 0),N(null)},buttonName:\"Clear\"}),g().createElement(m.A,{variant:\"contained\",color:\"success\",fullwidth:!1,onButtonClick:function(){A(S),N(null)},buttonName:\"Apply\"}))))}},59709:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>p});var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);const p=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.UserManagement,path:i.fp.EntryPath}]})),n.length>0?a().createElement(d.A,{moduleData:n}):a().createElement(c.A,null))}},59904:(e,t,n)=>{\"use strict\";n(46518)({target:\"Object\",stat:!0,sham:!n(43724)},{create:n(2360)})},60270:(e,t,n)=>{var r=n(87068),o=n(40346);e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},60404:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>u});var r=n(60538),o=n(14073),a=n(81970),i=n.n(a),l=(0,n(6398).A)({NoAccessStyles:{\"& .NoAccessStyles\":{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:\"calc(100% - 500px)\",padding:\"25px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",\"& .MuiTypography-h4\":{textTransform:\"capitalize\"}}}}),s=function(e){var t=e.message,n=void 0===t?\"Sorry, You don't have permissions to access these modules. Please contact the administrator\":t,a=l();return i().createElement(\"div\",{className:a.NoAccessStyles},i().createElement(r.A,{elevation:1,className:\"NoAccessStyles\"},i().createElement(o.A,{variant:\"h4\"},n)))};const u=(0,a.memo)(s)},60511:(e,t,n)=>{\"use strict\";var r=n(60788),o=TypeError;e.exports=function(e){if(r(e))throw new o(\"The method doesn't accept regular expressions\");return e}},60533:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(18014),a=n(655),i=n(72333),l=n(67750),s=r(i),u=r(\"\".slice),c=Math.ceil,d=function(e){return function(t,n,r){var i,d,p=a(l(t)),f=o(n),g=p.length,h=void 0===r?\" \":a(r);return f<=g||\"\"===h?p:((d=s(h,c((i=f-g)/h.length))).length>i&&(d=u(d,0,i)),e?p+d:d+p)}};e.exports={start:d(!1),end:d(!0)}},60538:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(11848);const c=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(25669),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiPaper\",e)}(0,p.A)(\"MuiPaper\",[\"root\",\"rounded\",\"outlined\",\"elevation\",\"elevation0\",\"elevation1\",\"elevation2\",\"elevation3\",\"elevation4\",\"elevation5\",\"elevation6\",\"elevation7\",\"elevation8\",\"elevation9\",\"elevation10\",\"elevation11\",\"elevation12\",\"elevation13\",\"elevation14\",\"elevation15\",\"elevation16\",\"elevation17\",\"elevation18\",\"elevation19\",\"elevation20\",\"elevation21\",\"elevation22\",\"elevation23\",\"elevation24\"]);var h=n(74848);const m=[\"className\",\"component\",\"elevation\",\"square\",\"variant\"],v=(0,u.Ay)(\"div\",{name:\"MuiPaper\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,\"elevation\"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return(0,o.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(\"box-shadow\")},!t.square&&{borderRadius:e.shape.borderRadius},\"outlined\"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},\"elevation\"===t.variant&&(0,o.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&\"dark\"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,s.X4)(\"#fff\",c(t.elevation))}, ${(0,s.X4)(\"#fff\",c(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),A=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiPaper\"}),{className:a,component:s=\"div\",elevation:u=1,square:c=!1,variant:p=\"elevation\"}=n,f=(0,r.A)(n,m),A=(0,o.A)({},n,{component:s,elevation:u,square:c,variant:p}),y=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:[\"root\",r,!t&&\"rounded\",\"elevation\"===r&&`elevation${n}`]};return(0,l.A)(a,g,o)})(A);return(0,h.jsx)(v,(0,o.A)({as:s,ownerState:A,className:(0,i.A)(y.root,a),ref:t},f))})},60671:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e373a86be109c913eb43.eot\"},60684:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"m10 17 5-5-5-5z\"}),\"ArrowRight\")},60706:(e,t,n)=>{\"use strict\";var r=n(10350).PROPER,o=n(79039),a=n(47452);e.exports=function(e){return o(function(){return!!a[e]()||\"​᠎\"!==\"​᠎\"[e]()||r&&a[e].name!==e})}},60708:function(e,t,n){!function(e){\"use strict\";var t=[\"ޖެނުއަރީ\",\"ފެބްރުއަރީ\",\"މާރިޗު\",\"އޭޕްރީލު\",\"މޭ\",\"ޖޫން\",\"ޖުލައި\",\"އޯގަސްޓު\",\"ސެޕްޓެމްބަރު\",\"އޮކްޓޯބަރު\",\"ނޮވެމްބަރު\",\"ޑިސެމްބަރު\"],n=[\"އާދިއްތަ\",\"ހޯމަ\",\"އަންގާރަ\",\"ބުދަ\",\"ބުރާސްފަތި\",\"ހުކުރު\",\"ހޮނިހިރު\"];e.defineLocale(\"dv\",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:\"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"D/M/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/މކ|މފ/,isPM:function(e){return\"މފ\"===e},meridiem:function(e,t,n){return e<12?\"މކ\":\"މފ\"},calendar:{sameDay:\"[މިއަދު] LT\",nextDay:\"[މާދަމާ] LT\",nextWeek:\"dddd LT\",lastDay:\"[އިއްޔެ] LT\",lastWeek:\"[ފާއިތުވި] dddd LT\",sameElse:\"L\"},relativeTime:{future:\"ތެރޭގައި %s\",past:\"ކުރިން %s\",s:\"ސިކުންތުކޮޅެއް\",ss:\"d% ސިކުންތު\",m:\"މިނިޓެއް\",mm:\"މިނިޓު %d\",h:\"ގަޑިއިރެއް\",hh:\"ގަޑިއިރު %d\",d:\"ދުވަހެއް\",dd:\"ދުވަސް %d\",M:\"މަހެއް\",MM:\"މަސް %d\",y:\"އަހަރެއް\",yy:\"އަހަރު %d\"},preparse:function(e){return e.replace(/،/g,\",\")},postformat:function(e){return e.replace(/,/g,\"،\")},week:{dow:7,doy:12}})}(n(95093))},60739:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79039),a=n(48981),i=n(72777);r({target:\"Date\",proto:!0,arity:1,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=a(this),n=i(t,\"number\");return\"number\"!=typeof n||isFinite(n)?t.toISOString():null}})},60788:(e,t,n)=>{\"use strict\";var r=n(20034),o=n(22195),a=n(78227)(\"match\");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:\"RegExp\"===o(e))}},60825:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(97751),a=n(18745),i=n(30566),l=n(35548),s=n(28551),u=n(20034),c=n(2360),d=n(79039),p=o(\"Reflect\",\"construct\"),f=Object.prototype,g=[].push,h=d(function(){function e(){}return!(p(function(){},[],e)instanceof e)}),m=!d(function(){p(function(){})}),v=h||m;r({target:\"Reflect\",stat:!0,forced:v,sham:v},{construct:function(e,t){l(e),s(t);var n=arguments.length<3?e:l(arguments[2]);if(m&&!h)return p(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return a(g,r,t),new(a(i,e,r))}var o=n.prototype,d=c(u(o)?o:f),v=a(e,d,t);return u(v)?v:d}})},61034:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(39297),a=n(1625),i=n(65213),l=n(67979),s=RegExp.prototype;e.exports=i.correct?function(e){return e.flags}:function(e){return i.correct||!a(s,e)||o(e,\"flags\")?e.flags:r(l,e)}},61074:e=>{e.exports=function(e){return e.split(\"\")}},61197:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z\"}),\"CancelOutlined\")},61290:function(e,t,n){!function(e){\"use strict\";var t={1:\"১\",2:\"২\",3:\"৩\",4:\"৪\",5:\"৫\",6:\"৬\",7:\"৭\",8:\"৮\",9:\"৯\",0:\"০\"},n={\"১\":\"1\",\"২\":\"2\",\"৩\":\"3\",\"৪\":\"4\",\"৫\":\"5\",\"৬\":\"6\",\"৭\":\"7\",\"৮\":\"8\",\"৯\":\"9\",\"০\":\"0\"};e.defineLocale(\"bn\",{months:\"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর\".split(\"_\"),monthsShort:\"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে\".split(\"_\"),weekdays:\"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার\".split(\"_\"),weekdaysShort:\"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি\".split(\"_\"),weekdaysMin:\"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি\".split(\"_\"),longDateFormat:{LT:\"A h:mm সময়\",LTS:\"A h:mm:ss সময়\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm সময়\",LLLL:\"dddd, D MMMM YYYY, A h:mm সময়\"},calendar:{sameDay:\"[আজ] LT\",nextDay:\"[আগামীকাল] LT\",nextWeek:\"dddd, LT\",lastDay:\"[গতকাল] LT\",lastWeek:\"[গত] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s পরে\",past:\"%s আগে\",s:\"কয়েক সেকেন্ড\",ss:\"%d সেকেন্ড\",m:\"এক মিনিট\",mm:\"%d মিনিট\",h:\"এক ঘন্টা\",hh:\"%d ঘন্টা\",d:\"এক দিন\",dd:\"%d দিন\",M:\"এক মাস\",MM:\"%d মাস\",y:\"এক বছর\",yy:\"%d বছর\"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),\"রাত\"===t&&e>=4||\"দুপুর\"===t&&e<5||\"বিকাল\"===t?e+12:e},meridiem:function(e,t,n){return e<4?\"রাত\":e<10?\"সকাল\":e<17?\"দুপুর\":e<20?\"বিকাল\":\"রাত\"},week:{dow:0,doy:6}})}(n(95093))},61342:(e,t,n)=>{\"use strict\";e.exports=n.p+\"eff671d131ad2d8a261d.woff2\"},61347:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i,K:()=>a});var r=n(38413),o=n(31609);function a(e){return(0,o.Ay)(\"MuiDivider\",e)}const i=(0,r.A)(\"MuiDivider\",[\"root\",\"absolute\",\"fullWidth\",\"inset\",\"middle\",\"flexItem\",\"light\",\"vertical\",\"withChildren\",\"withChildrenVertical\",\"textAlignRight\",\"textAlignLeft\",\"wrapper\",\"wrapperVertical\"])},61448:(e,t,n)=>{var r=n(20426),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},61509:function(e,t,n){!function(e){\"use strict\";var t={1:\"١\",2:\"٢\",3:\"٣\",4:\"٤\",5:\"٥\",6:\"٦\",7:\"٧\",8:\"٨\",9:\"٩\",0:\"٠\"},n={\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"٠\":\"0\"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:[\"أقل من ثانية\",\"ثانية واحدة\",[\"ثانيتان\",\"ثانيتين\"],\"%d ثوان\",\"%d ثانية\",\"%d ثانية\"],m:[\"أقل من دقيقة\",\"دقيقة واحدة\",[\"دقيقتان\",\"دقيقتين\"],\"%d دقائق\",\"%d دقيقة\",\"%d دقيقة\"],h:[\"أقل من ساعة\",\"ساعة واحدة\",[\"ساعتان\",\"ساعتين\"],\"%d ساعات\",\"%d ساعة\",\"%d ساعة\"],d:[\"أقل من يوم\",\"يوم واحد\",[\"يومان\",\"يومين\"],\"%d أيام\",\"%d يومًا\",\"%d يوم\"],M:[\"أقل من شهر\",\"شهر واحد\",[\"شهران\",\"شهرين\"],\"%d أشهر\",\"%d شهرا\",\"%d شهر\"],y:[\"أقل من عام\",\"عام واحد\",[\"عامان\",\"عامين\"],\"%d أعوام\",\"%d عامًا\",\"%d عام\"]},a=function(e){return function(t,n,a,i){var l=r(t),s=o[e][r(t)];return 2===l&&(s=s[n?0:1]),s.replace(/%d/i,t)}},i=[\"يناير\",\"فبراير\",\"مارس\",\"أبريل\",\"مايو\",\"يونيو\",\"يوليو\",\"أغسطس\",\"سبتمبر\",\"أكتوبر\",\"نوفمبر\",\"ديسمبر\"];e.defineLocale(\"ar\",{months:i,monthsShort:i,weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"D/‏M/‏YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/ص|م/,isPM:function(e){return\"م\"===e},meridiem:function(e,t,n){return e<12?\"ص\":\"م\"},calendar:{sameDay:\"[اليوم عند الساعة] LT\",nextDay:\"[غدًا عند الساعة] LT\",nextWeek:\"dddd [عند الساعة] LT\",lastDay:\"[أمس عند الساعة] LT\",lastWeek:\"dddd [عند الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"بعد %s\",past:\"منذ %s\",s:a(\"s\"),ss:a(\"s\"),m:a(\"m\"),mm:a(\"m\"),h:a(\"h\"),hh:a(\"h\"),d:a(\"d\"),dd:a(\"d\"),M:a(\"M\"),MM:a(\"M\"),y:a(\"y\"),yy:a(\"y\")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},week:{dow:6,doy:12}})}(n(95093))},61566:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z\"}),\"ArrowForwardIos\")},61737:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>dt}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(81970),a=n.n(o),i=n(8085),l=(n(28706),n(50113),n(74423),n(94170),n(36033),n(59904),n(40875),n(10287),n(3362),n(21699),n(42762),n(90815)),s=n(14073),u=n(88084),c=n(34195),d=n(47225),p=n(13075),f=n(79043),g=n(15664),h=n(36874),m=n(58069),v=n(56203),A=n(15941),y=n(79e3),E=n(70380),b=function(e){var t,n,r,o,a=e.isConfiguredCostCenterHierarchy,i=e.costCenterConfigurations,l=e.isCostCenterEnabled;return A.Ik().shape({portfolio:A.Ik().test(\"portfolio-required\",\"Portfolio required\",function(e){return!0!==this.parent.showPortfolio||null!=e}),parentPortfolio:A.Ik().test(\"parent-portfolio-required\",\"Parent Portfolio Required\",function(e){var t=this.parent,n=t.showPortfolio,r=t.editMode;return!(n&&!r)||null!=e}),hqHierarchy:A.Ik().required(\"HQ Hierarchy Required\"),name:A.Yj().min(3,y.A.t(\"NAME_MIN\")).max(25,y.A.t(\"NAME_MAX\")).trim(\"Starting spaces are not allowed\").required(\"Name Required\"),sfdc:A.Yj().matches(/^[A-Za-z0-9]+$/,\"Special Characters not Allowed\").max(255,(null===(t=(0,v.t)(\"SFDC_ID_MAX\"))||void 0===t?void 0:t.replace(\"_num_\",\"255\"))||\"\").nullable(),parent:A.Ik().nullable().test(\"parent-required\",\"Parent required\",function(e){var t=this.parent.hqHierarchy;return\"N/A\"===(null==t?void 0:t.parentName)||null!=e}),costCenter:a||!l?A.Yj().required(\"Cost Center required\").matches(/^[A-Za-z0-9]*$/,\"Special Characters not Allowed\").min(4,(null===(n=(0,v.t)(\"COST_CENTER_MIN\"))||void 0===n?void 0:n.replace(\"_num_\",\"4\"))||\"\").max(10,(null===(r=(0,v.t)(\"COST_CENTER_MAX\"))||void 0===r?void 0:r.replace(\"_num_\",\"10\"))||\"\").trim(\"Starting spaces are not allowed\"):(o=A.Yj().notRequired().nullable(),l&&(o=o.test(\"is-cost-center-configured\",\"Cost center hierarchy level is not configured\",function(){return\"0\"!==(null==i?void 0:i.value)})),o),startDate:A.Yj().required(\"Start Date required\").matches(/^(0?[1-9]|1[012])[- /.](0?[1-9]|[12]\\d|3[01])[- /.](19|20)?\\d{2}$/,\"Invalid date\"),endDate:A.YO().optional().nullable().test(\"is-valid-date\",\"Invalid Date\",function(e){return null==e||!e[1]||!(e&&e.length>0&&null!=e&&e[1]&&(0,E.vd)(null==e?void 0:e[1]))||(0,E.Gc)(null==e?void 0:e[0],null==e?void 0:e[1],\"MM/DD/YYYY\")}),user:A.Yj().nullable().test(\"user-required\",\"User Required\",function(e){return!1!==this.parent.editMode||!!e})})},_=n(32027),C=n(64121),w=n(86608),S=n(99478);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=(0,o.memo)(function(e){var t,n,i=e.isVisible,u=void 0!==i&&i,c=e.onRequestClose,d=void 0===c?function(){}:c,p=e.alternativeHQs,f=e.alternateHqMessage,h=e.proceedWithoutApply,m=e.applyChanges,A=(t=(0,o.useState)(\"\"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),y=A[0],E=A[1];return a().createElement(w.A,{isVisible:u},a().createElement(l.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,className:\"modal-header\",m:1},a().createElement(s.A,{variant:\"h2\",fontSize:18},f),a().createElement(r.A,null,a().createElement(s.A,{className:\"icon-close closeIcon\",onClick:d}))),a().createElement(r.A,{mb:2,width:\"48%\",p:3},a().createElement(s.A,{mb:2,variant:\"subtitle2\"},\"\".concat((0,v.t)(\"SELECT_ALTERNATIVE_HQ\"),\"*\")),0==(null==p?void 0:p.length)?a().createElement(s.A,{variant:\"h3\",color:\"red\"},S.JS.NO_ALTERNATIVE_HQS):\"\",a().createElement(C.A,{name:\"alternativeHQs\",onChange:function(e,t){E(t)},options:p,labelKey:\"label\",label:\"label\",selectedOption:y,value:y,defaultLabel:(0,v.t)(\"SELECT_ALTERNATIVE_HQ\")})),a().createElement(l.A,{direction:\"row\",gap:2,justifyContent:\"end\",className:\"btnsBlock\",p:2},a().createElement(g.A,{variant:\"contained\",buttonName:(0,v.t)(\"PROCEED_WITHOUT_APPLY\"),onButtonClick:function(){return h()},fullwidth:!1,color:\"secondary\"}),a().createElement(g.A,{variant:\"contained\",disabled:!y,buttonName:(0,v.t)(\"APPLY_CHANGES\"),fullwidth:!1,onButtonClick:function(){return m(null==y?void 0:y.value)},color:\"primary\",type:\"submit\"})))}),D=n(32112);n(12041);const R=function(e){var t=e.isVisible,n=e.popUpClose,o=e.errorMessageValue;return a().createElement(w.A,{isVisible:t},a().createElement(r.A,null,a().createElement(l.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,pb:0},a().createElement(s.A,{variant:\"h1\"},\"ERROR\"),a().createElement(r.A,null,a().createElement(s.A,{className:\"icon-close closeIcon\",\"data-testid\":\"closePopIcon\",onClick:n}))),a().createElement(r.A,{className:\"modal-body\",p:2},a().createElement(l.A,{flexDirection:\"row\",justifyContent:\"center\",alignItems:\"start\",gap:2},a().createElement(r.A,{className:\"event-details-wrapper\",width:\"60%\"},a().createElement(s.A,{color:\"red\",dangerouslySetInnerHTML:{__html:o.replaceAll(/(Step \\d+)/g,\"<br />$1\")}}))))))};var N=n(78208),L=(n(25276),n(15086),n(54554),n(49799)),P=n(12794),M=n(98587),x=n(58168),I=n(34164),k=n(75659),B=n(11848),F=n(25669),j=n(89102),H=n(32850),U=n(74848);const Y=[\"className\"],G=(0,B.Ay)(\"div\",{name:\"MuiListItemIcon\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"flex-start\"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,x.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:\"inline-flex\"},\"flex-start\"===t.alignItems&&{marginTop:8})),z=o.forwardRef(function(e,t){const n=(0,F.b)({props:e,name:\"MuiListItemIcon\"}),{className:r}=n,a=(0,M.A)(n,Y),i=o.useContext(H.A),l=(0,x.A)({},n,{alignItems:i.alignItems}),s=(e=>{const{alignItems:t,classes:n}=e,r={root:[\"root\",\"flex-start\"===t&&\"alignItemsFlexStart\"]};return(0,k.A)(r,j.f,n)})(l);return(0,U.jsx)(G,(0,x.A)({className:(0,I.A)(s.root,r),ownerState:l,ref:t},a))});var V=n(27558),q=n(68081);const W=[\"children\",\"className\",\"disableTypography\",\"inset\",\"primary\",\"primaryTypographyProps\",\"secondary\",\"secondaryTypographyProps\"],Q=(0,B.Ay)(\"div\",{name:\"MuiListItemText\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${q.A.primary}`]:t.primary},{[`& .${q.A.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>(0,x.A)({flex:\"1 1 auto\",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),K=o.forwardRef(function(e,t){const n=(0,F.b)({props:e,name:\"MuiListItemText\"}),{children:r,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p}=n,f=(0,M.A)(n,W),{dense:g}=o.useContext(H.A);let h=null!=u?u:r,m=d;const v=(0,x.A)({},n,{disableTypography:i,inset:l,primary:!!h,secondary:!!m,dense:g}),A=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e,i={root:[\"root\",n&&\"inset\",a&&\"dense\",r&&o&&\"multiline\"],primary:[\"primary\"],secondary:[\"secondary\"]};return(0,k.A)(i,q.b,t)})(v);return null==h||h.type===s.A||i||(h=(0,U.jsx)(s.A,(0,x.A)({variant:g?\"body2\":\"body1\",className:A.primary,component:null!=c&&c.variant?void 0:\"span\",display:\"block\"},c,{children:h}))),null==m||m.type===s.A||i||(m=(0,U.jsx)(s.A,(0,x.A)({variant:\"body2\",className:A.secondary,color:\"text.secondary\",display:\"block\"},p,{children:m}))),(0,U.jsxs)(Q,(0,x.A)({className:(0,I.A)(A.root,a),ownerState:v,ref:t},f,{children:[h,m]}))});var $=n(11641),X=n(52848),J=n(71543),Z=n(20561);const ee=(0,Z.A)((0,U.jsx)(\"path\",{d:\"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"}),\"ExpandLess\"),te=(0,Z.A)((0,U.jsx)(\"path\",{d:\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"}),\"ExpandMore\");var ne=n(21239);function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oe(e)}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function le(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return function(e){if(Array.isArray(e))return de(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||ce(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ce(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ce(e,t){if(e){if(\"string\"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(26910);const pe=function(e){var t,n,i,u,c,d,p,f=e.setSelectedChildData,g=e.selectedChildData,h=e.searchQuery,m=e.setSearchQuery,A=e.parentTerritory,y=void 0===A?[]:A,E=e.childTerritory,b=void 0===E?[]:E,_=ue((0,o.useState)([]),2),C=_[0],w=_[1],S=ue((0,o.useState)(!1),2),T=S[0],O=S[1],D=function(e,t){var n=function(e,t){return(null==e?void 0:e.label)<(null==t?void 0:t.label)?-1:(null==e?void 0:e.label)>(null==t?void 0:t.label)?1:0},r=function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return null!=e&&e.length?o?(null!==(t=null==e?void 0:e.filter(function(e){return(null==e?void 0:e.parentId)===o||(null==e?void 0:e.value)===o}))&&void 0!==t?t:[]).sort(n):(r=e,function(e){if(Array.isArray(e))return re(e)}(r)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(r)||function(e,t){if(e){if(\"string\"==typeof e)return re(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(r)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()).sort(n):[]};return{getFilteredData:r,getParentFilteredData:function(t){var o;if(0===(null===(o=r(null==e?void 0:e.childData))||void 0===o?void 0:o.length)){var a=null==t?void 0:t.sort(n);return(null==t?void 0:t.length)>0?a:[]}return t},getSelectedCount:function(e,n){var r;return null!=e&&e.length?null==t||null===(r=t.filter(function(e){return(null==e?void 0:e.parentId)===n||(null==e?void 0:e.value)===n}))||void 0===r?void 0:r.length:0},sortString:n}}(b,g),R=D.getFilteredData,N=D.getParentFilteredData,M=D.getSelectedCount,x=function(e){var t,n,r,o,i,l;return(null===(t=R(null==b?void 0:b.childData,e))||void 0===t?void 0:t.length)>0?a().createElement(a().Fragment,null,0==(null==h?void 0:h.length)&&a().createElement(P.Ay,{sx:{pl:4,paddingLeft:\"22px\",paddingTop:\"0px\",paddingBottom:\"0px\"}},a().createElement(z,{sx:{minWidth:\"24px\"}},a().createElement(V.A,{indeterminate:(null==g||null===(n=g.filter(function(t){return(null==t?void 0:t.parentId)==e||(null==t?void 0:t.value)===e}))||void 0===n?void 0:n.length)>0&&(null===(r=R(null==b?void 0:b.childData,e))||void 0===r?void 0:r.length)!==(null==g||null===(o=g.filter(function(t){return(null==t?void 0:t.parentId)==e||(null==t?void 0:t.value)==e}))||void 0===o?void 0:o.length),checked:(null===(i=R(null==b?void 0:b.childData,e))||void 0===i?void 0:i.length)==(null==g?void 0:g.filter(function(t){return t.parentId==e||t.value==e}).length),edge:\"start\",onChange:function(t){var n,r,o=se(g),a=null==o?void 0:o.filter(function(t){return t.value==e?t.value!=e:t.parentId!=e}),i=se(a);null!=t&&null!==(n=t.target)&&void 0!==n&&n.checked?null===(r=R(null==b?void 0:b.childData,e))||void 0===r||r.map(function(e){i.push(ie(ie({},e),{},{checked:!0}))}):i=se(a),f(i)},disableRipple:!0})),a().createElement(K,{primary:a().createElement(s.A,{style:{fontSize:\"14px\"}},\"Select All \".concat(null==b?void 0:b.childLabel,\"(s)\"))})),null===(l=R(null==b?void 0:b.childData,e))||void 0===l?void 0:l.map(function(e){var t;return a().createElement(P.Ay,{key:e.value,dense:!0,sx:{pl:4,paddingLeft:\"22px\"},style:{paddingTop:\"0px\",paddingBottom:\"0px\"}},a().createElement(z,{sx:{minWidth:\"24px\"}},a().createElement(V.A,{edge:\"start\",checked:null!==(t=null==g?void 0:g.some(function(t){return(null==t?void 0:t.value)===(null==e?void 0:e.value)}))&&void 0!==t&&t,tabIndex:-1,onChange:function(){!function(e){var t,n=se(g),r=[];(null==n||null===(t=n.filter(function(t){return(null==t?void 0:t.value)===(null==e?void 0:e.value)}))||void 0===t?void 0:t.length)>0?null==n||n.map(function(t){(null==t?void 0:t.value)!==(null==e?void 0:e.value)&&r.push(t)}):r=[].concat(se(n),[ie(ie({},e),{},{checked:!0})]),f(r)}(e)},disableRipple:!0,inputProps:{\"aria-labelledby\":\"checkbox-list-child-label-\".concat(e.value)}})),a().createElement(K,{id:\"checkbox-list-child-label-\".concat(e.value),primary:a().createElement(s.A,{style:{fontSize:\"14px\"}},e.label)}))})):null};return a().createElement(a().Fragment,null,a().createElement(a().Fragment,null,a().createElement(s.A,{variant:\"subtitle2\"},\"Search\"),a().createElement(l.A,{direction:\"row\",justifyContent:\"space-between\",alignItems:\"center\"},a().createElement(r.A,{sx:{mb:2,marginBottom:\"20px\"}},a().createElement(ne.A,{onSearchValueChange:function(e){m(e)},placeholderText:\"Search hierarchy...\",searchValue:h,clearSearchIcon:!0,inputTextid:\"geoSearchInput\",isResetSearchValue:T,onResetSearchValue:function(e){O(e),m(\"\")}})))),a().createElement(L.A,{sx:{width:\"100%\",overflow:\"auto\",paddingTop:\"0px\"}},(i=(null===(t=N(null==y?void 0:y.parenData))||void 0===t?void 0:t.length)>0,u=(null===(n=R(null==b?void 0:b.childData))||void 0===n?void 0:n.length)>0,i?null!=(p=N(null==y?void 0:y.parenData))&&p.length?a().createElement(a().Fragment,null,a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(null==y?void 0:y.parentLabel,\"(s)\")),null==p?void 0:p.map(function(e){var t,n,r=\"checkbox-list-label-\".concat(null==e?void 0:e.value);return(null===(t=R(null==b?void 0:b.childData,null==e?void 0:e.value))||void 0===t?void 0:t.length)>0||0==(null==h?void 0:h.length)?a().createElement(a().Fragment,{key:null==e?void 0:e.value},a().createElement(P.Ay,{dense:!0,sx:{borderBottom:\"1px solid rgba(0, 0, 0, 0.12)\",\"&:last-child\":{borderBottom:\"none\"},fontSize:\"14px\",paddingLeft:\"0px\"}},a().createElement(K,{sx:{fontSize:\"14px\"},id:r,primary:a().createElement(s.A,{style:{fontSize:\"14px\"}},\"\".concat(null==e?void 0:e.label,\" (\").concat(M(R(null==b?void 0:b.childData,null==e?void 0:e.value),null==e?void 0:e.value),\" selected)\"))}),a().createElement($.A,{onClick:function(t){var n,r,o,a,i;null==t||t.stopPropagation(),n=null==e?void 0:e.value,-1===(null===(r=i=se(C))||void 0===r?void 0:r.indexOf(n))?i=[].concat(se(i),[n]):null===(o=i)||void 0===o||o.splice(null===(a=i)||void 0===a?void 0:a.indexOf(n),1),w(i)},size:\"small\"},null!=C&&C.includes(null==e?void 0:e.value)?a().createElement(ee,null):a().createElement(te,null))),a().createElement(X.A,{in:null==C?void 0:C.includes(null==e?void 0:e.value),timeout:\"auto\",unmountOnExit:!0},a().createElement(L.A,{component:\"div\",disablePadding:!0},null!==(n=x(null==e?void 0:e.value))&&void 0!==n?n:a().createElement(P.Ay,null,a().createElement(K,{primary:(0,v.t)(\"NO_DATA_AVAILABLE\")})))),a().createElement(J.A,null)):null})):null:u?null!=(d=R(null==b?void 0:b.childData))&&d.length?a().createElement(L.A,null,0==(null==h?void 0:h.length)&&a().createElement(P.Ay,{sx:{paddingLeft:\"0px\",paddingTop:\"0px\",paddingBottom:\"0px\"}},a().createElement(z,{sx:{minWidth:\"24px\"}},a().createElement(V.A,{edge:\"start\",indeterminate:(null==g?void 0:g.length)>0&&(null==d?void 0:d.length)!==(null==g?void 0:g.length),checked:(null==d?void 0:d.length)==(null==g||null===(c=g.filter(function(e){return null==e?void 0:e.checked}))||void 0===c?void 0:c.length),onChange:function(e){var t,n=[];null!=e&&null!==(t=e.target)&&void 0!==t&&t.checked?null==d||d.forEach(function(e){var t;null===(t=n)||void 0===t||t.push(ie(ie({},e),{},{checked:!0}))}):n=[],f(n)},disableRipple:!0})),a().createElement(K,{primary:\"Select All \".concat(null==b?void 0:b.childLabel)})),null==d?void 0:d.map(function(e){var t;return a().createElement(P.Ay,{key:null==e?void 0:e.value,dense:!0,sx:{paddingLeft:\"0px\",paddingTop:\"0px\",paddingBottom:\"0px\"}},a().createElement(z,{sx:{minWidth:\"24px\"}},a().createElement(V.A,{edge:\"start\",tabIndex:-1,checked:null!==(t=null==g?void 0:g.some(function(t){return(null==t?void 0:t.value)===(null==e?void 0:e.value)&&(null==t?void 0:t.checked)}))&&void 0!==t&&t,onChange:function(){!function(e){var t,n=se(g),r=[];(null==n||null===(t=n.filter(function(t){return(null==t?void 0:t.value)===(null==e?void 0:e.value)}))||void 0===t?void 0:t.length)>0?null==n||n.map(function(t){var n;(null==t?void 0:t.value)!==(null==e?void 0:e.value)&&(null===(n=r)||void 0===n||n.push(t))}):r=[].concat(se(n),[ie(ie({},e),{},{checked:!0})]),f(r)}(e)},disableRipple:!0})),a().createElement(K,{primary:a().createElement(s.A,{style:{fontSize:\"14px\"}},null==e?void 0:e.label)}))})):null:a().createElement(P.Ay,null,a().createElement(K,{primary:(0,v.t)(\"NO_DATA_AVAILABLE\")})))))};var fe=n(6347),ge=n(76906);function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var me=function(e){var t,n=e.form,o=n.setFieldValue,i=n.values,d=n.setUserDataList,p=e.user,f=p.User,g=p.role_type_name,h=p.userId,m=p.userDataList,v=p.setUserId,A=e.portfolio,y=A.hasShowPortfolio,b=A.hasPortfolioEnable,_=A.hasPortfolioCode,w=A.portfolioList,T=A.parentPortfolioId,O=A.setParentPortfolioId,D=A.setShowMismatchportfolio,R=e.hierarchy,N=R.hqHierarchyId,L=R.hqHierarchyList,P=R.setHqHierarchyId,M=R.parentData,x=R.parentValue,I=R.setParentValue,k=R.setParentId,B=e.costCenter,F=B.isConfiguredCostCenterHierarchy,j=B.isCostCenterEnabled,H=e.isEditingMode,U=e.SelectedRowItem,Y=e.getParentList,G=e.getUsersList,z=e.isShowSfdcID,V=(0,c.Bd)().t,q=function(e){o(\"endDate\",[(0,E.Yq)(i.startDate,\"MM/DD/YYYY\"),e])},W=function(e,t){return a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"USER\"),\"*\")),a().createElement(u.D0,{name:\"user\"},function(){return a().createElement(C.A,{name:\"user\",onChange:function(n,r){var o;v(r.id),t(\"user\",r.label),(y&&(null==r?void 0:r.portfolio_code)!==(null==e||null===(o=e.portfolio)||void 0===o?void 0:o.value)||!y&&b&&(null==r?void 0:r.portfolio_code)!==_)&&D(!0)},options:m,labelKey:\"label\",label:\"user\",selectedOption:null==e?void 0:e.user,value:null==e?void 0:e.user,defaultLabel:V(\"SELECT_USER\"),isSortReq:!0})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"user\"})))};return a().createElement(a().Fragment,null,a().createElement(l.A,{direction:\"row\",alignItems:\"flex-start\",columnGap:2,flexWrap:\"wrap\"},y?a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"SELECT_PORTFOLIO\"),\"*\")),a().createElement(u.D0,{name:\"portfolio\"},function(){return a().createElement(C.A,{name:\"portfolio\",onChange:function(e,t){var n,r;o(\"portfolio\",t),!h||null==i||null===(n=i.user)||void 0===n||!n.length||null!=i&&null!==(r=i.user)&&void 0!==r&&r.includes(t.value)||D(!0)},options:w,labelKey:\"label\",label:\"label\",selectedOption:null==i?void 0:i.portfolio,value:null==i?void 0:i.portfolio,defaultLabel:V(\"SELECT_PORTFOLIO\"),isDisabled:H})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"portfolio\"}))):null,a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"HQ_HIERARCHY\"),\"*\")),a().createElement(u.D0,{name:\"hqHierarchy\"},function(){return a().createElement(C.A,{name:\"hqHierarchy\",onChange:function(e,t){var n,r;\"N/A\"===(null==t||null===(n=t.parentName)||void 0===n?void 0:n.toUpperCase())?o(\"costCenter\",\"NA\"):o(\"costCenter\",\"\"),o(\"hqHierarchy\",t),P(t.value),y&&\"N/A\"!==t.parentName&&T?Y(t.value,null==i||null===(r=i.portfolio)||void 0===r?void 0:r.value):!1===b&&\"N/A\"!==t.parentName?Y(t.value):b&&\"N/A\"!==t.parentName&&Y(t.value,_),\"N/A\"==t.parentName&&G(t.value,null),I(\"N/A\"===t.parentName.toUpperCase()),o(\"parent\",\"\"),o(\"user\",\"\"),d([])},options:L,labelKey:\"label\",label:\"label\",selectedOption:null==i?void 0:i.hqHierarchy,value:null==i?void 0:i.hqHierarchy,defaultLabel:V(\"SELECT_HQ_HIERARCHY\"),isDisabled:H})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"hqHierarchy\"}))),a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"HQ_NAME\"),\"*\")),a().createElement(u.D0,{\"data-testid\":\"enter-name\",name:\"name\",type:\"text\",className:\"inputField\",onChange:function(e){return o(\"name\",e.target.value)},placeholder:\"\".concat(V(\"ENTER_NAME\")),defaultValue:null==i?void 0:i.name}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"name\"}))),z&&a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"SFDC_ID\"))),a().createElement(u.D0,{name:\"sfdc\",type:\"text\",className:\"inputField\",onChange:function(e){return o(\"sfdc\",e.target.value)},placeholder:\"\".concat(V(\"ENTER_SFDC\")),defaultValue:null==i?void 0:i.sfdc}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"sfdc\"})))),a().createElement(l.A,{direction:\"row\",alignItems:\"flex-start\",columnGap:2,flexWrap:\"wrap\"},y&&!H?a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"SELECT_PARENT_PORTFOLIO\"),\"*\")),a().createElement(u.D0,{name:\"parentPortfolio\"},function(){return a().createElement(C.A,{name:\"parentPortfolio\",onChange:function(e,t){var n;o(\"parentPortfolio\",t),O(t.value),N&&Y(null==i||null===(n=i.hqHierarchy)||void 0===n?void 0:n.value,null==t?void 0:t.value),o(\"parent\",\"\")},options:null==w?void 0:w.filter(function(e){var t;return[\"DEFAULT\",null==i||null===(t=i.portfolio)||void 0===t?void 0:t.value].includes(null==e?void 0:e.value)}),labelKey:\"label\",label:\"parent\",selectedOption:null==i?void 0:i.parentPortfolio,value:null==i?void 0:i.parentPortfolio,defaultLabel:V(\"SELECT_PARENT_PORTFOLIO\"),isDisabled:H,isSortReq:!0})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"parentPortfolio\"}))):null,a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"PARENT_HQ_NAME\"),\"*\")),a().createElement(u.D0,{name:\"parent\"},function(){return a().createElement(C.A,{name:\"parent\",onChange:function(e,t){o(\"parent\",t),!F&&j&&o(\"costCenter\",null==t?void 0:t.cost_center),k(t.value),o(\"user\",\"\"),G(null==t?void 0:t.hqId,t.value)},options:M,labelKey:\"label\",label:\"parent\",selectedOption:null==i?void 0:i.parent,value:null==i?void 0:i.parent,defaultLabel:x?\"NA\":V(\"SELECT_PARENT\"),isDisabled:x||0===(null==M?void 0:M.length),isSortReq:!0})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"parent\"}))),a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"COST_CENTER\")).concat(F||!j?\"*\":\"\")),a().createElement(u.D0,{\"data-testid\":\"enter-cost-center\",name:\"costCenter\",type:\"text\",className:\"inputField \".concat(j&&!F&&\"disabled-field\"),onChange:function(e){return o(\"costCenter\",e.target.value)},placeholder:\"Enter Cost Center\",defaultValue:null==i?void 0:i.name,disabled:j&&!F}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"costCenter\"}))),a().createElement(r.A,{mb:2,width:\"48%\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"START_DATE\"),\"*\")),a().createElement(u.D0,{name:\"startDate\",type:\"text\"},function(){return a().createElement(ge.A,{restrictManualEntry:!0,customFormat:null,value:null==i?void 0:i.startDate,defaultValue:null==i?void 0:i.startDate,handleChangeDatePicker:function(e){o(\"startDate\",e)},disabled:H,minDate:E.Ax.todayDate})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"startDate\"}))),\"TM\"!==(null==f||null===(t=f.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.role_code)?H?a().createElement(r.A,{mb:2,width:\"48%\",\"data-testid\":\"date-picker-wrapper\"},a().createElement(s.A,{variant:\"subtitle2\"},\"\".concat(V(\"END_DATE\"))),a().createElement(u.D0,{name:\"endDate\"},function(){var e,t;return a().createElement(ge.A,{restrictManualEntry:!(null!=U&&U.is_active),value:null!==(e=null==i||null===(t=i.endDate)||void 0===t?void 0:t[1])&&void 0!==e?e:\"\",handleChangeDatePicker:q,minDate:E.Ax.todayDate,disabled:g!==S.Rk.COUNTRY_ADMIN})}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"endDate\"}))):W(i,o):H?null:W(i,o)),H&&a().createElement(r.A,{mb:2,width:\"100%\"},a().createElement(s.A,{variant:\"subtitle2\"},V(\"USER\")),a().createElement(u.D0,{name:\"user\"},function(){return a().createElement(C.A,{name:\"user\",onChange:function(e,t){v(t.id),o(\"user\",t.label)},options:[{label:\"Vacant\",value:null,id:null}].concat((e=m,function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}())),labelKey:\"label\",label:\"user\",selectedOption:null==i?void 0:i.user,value:null==i?void 0:i.user,defaultLabel:V(\"SELECT_USER\")});var e}),a().createElement(fe.A,{error:!0},a().createElement(u.Kw,{name:\"user\"}))))};function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e){return function(e){if(Array.isArray(e))return De(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Oe(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ye(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Ee(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ee(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ee(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Ee(d,\"constructor\",u),Ee(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Ee(u,o,\"GeneratorFunction\"),Ee(d),Ee(d,o,\"Generator\"),Ee(d,r,function(){return this}),Ee(d,\"toString\",function(){return\"[object Generator]\"}),(ye=function(){return{w:a,m:p}})()}function Ee(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Ee=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Ee(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Ee(e,t,n,r)}function be(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function _e(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){be(a,r,o,i,l,\"next\",e)}function l(e){be(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Oe(e,t){if(e){if(\"string\"==typeof e)return De(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,t):void 0}}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Re=function(e){var t,n,v,A,y,C,w,T,L,P,M,x,I,k,B=e.isDrawerOpen,F=void 0!==B&&B,j=e.onRequestClose,H=void 0===j?function(){}:j,U=e.isEditingMode,Y=void 0!==U&&U,G=e.SelectedRowItem,z=void 0===G?{}:G,V=e.isGeoMapping,q=e.updatedGeoData,W=e.filtersOptions,Q=(0,o.useContext)(d.v),K=Q.BackOfficeProps,$=K.globalStore.User,X=K.baseurl,J=Q.triggerShowLoader,Z=Q.triggerToastMsg,ee=(0,p.rZ)($,X).role_type_name,te=X,ne=null==$||null===(t=$.UserDetails)||void 0===t?void 0:t.user_id,re=null!==(n=null==$?void 0:$.AccessToken)&&void 0!==n?n:\"\",oe=null==$||null===(v=$.selectedCountry)||void 0===v?void 0:v.countryCode,ae=null==$||null===(A=$.selectedBusinessUnit)||void 0===A?void 0:A.bu_id,ie=null==$||null===(y=$.selectedBusinessUnit)||void 0===y||null===(y=y.userRoleControls)||void 0===y?void 0:y.roleId,le=(0,_.i)($),se=le.hasPortfolioCode,ue=le.hasPortfolioEnable,ce=le.hasShowPortfolio,de=(0,o.useRef)(null),fe=Te((0,o.useState)(\"hqdata\"),2),ge=fe[0],he=fe[1],ve=Te((0,o.useState)({parentData:[],childData:[]}),2),Ee=ve[0],be=ve[1],Ce=Te((0,o.useState)({}),2),Se=Ce[0],Oe=Ce[1],De=Te((0,o.useState)([]),2),Re=De[0],Ne=De[1],Le=Te((0,o.useState)([]),2),Pe=Le[0],Me=Le[1],xe=Te((0,o.useState)(\"\"),2),Ie=xe[0],ke=xe[1],Be=Te((0,o.useState)(\"\"),2),Fe=Be[0],je=Be[1],He=Te((0,o.useState)(\"\"),2),Ue=He[0],Ye=He[1],Ge=Te((0,o.useState)(),2),ze=Ge[0],Ve=Ge[1],qe=Te((0,o.useState)(\"\"),2),We=qe[0],Qe=qe[1],Ke=Te((0,o.useState)(!1),2),$e=Ke[0],Xe=Ke[1],Je=Te((0,o.useState)(\"\"),2),Ze=Je[0],et=Je[1],tt=Te((0,o.useState)([]),2),nt=tt[0],rt=tt[1],ot=Te((0,o.useState)(!1),2),at=ot[0],it=ot[1],lt=Te((0,o.useState)(!1),2),st=lt[0],ut=lt[1],ct=Te((0,o.useState)(!1),2),dt=ct[0],pt=ct[1],ft=(0,c.Bd)().t,gt=Te((0,o.useState)(!1),2),ht=gt[0],mt=gt[1],vt=Te((0,o.useState)([]),2),At=vt[0],yt=vt[1],Et=Te((0,o.useState)(\"\"),2),bt=Et[0],_t=Et[1],Ct=Te((0,o.useState)({}),2),wt=(Ct[0],Ct[1]),St=Te((0,o.useState)(!1),2),Tt=St[0],Ot=St[1],Dt=Te((0,o.useState)(!1),2),Rt=Dt[0],Nt=Dt[1],Lt=Te((0,o.useState)({}),2),Pt=Lt[0],Mt=Lt[1],xt=Te((0,o.useState)({}),2),It=xt[0],kt=xt[1],Bt=Te((0,o.useState)({isEnabled:!1,value:null}),2),Ft=Bt[0],jt=Bt[1],Ht=Te((0,o.useState)(!1),2),Ut=Ht[0],Yt=Ht[1],Gt=null!==(C=null==W?void 0:W.hq_hierarchy_id)&&void 0!==C?C:[],zt=Te((0,o.useState)(\"\"),2),Vt=zt[0],qt=zt[1],Wt=Te((0,o.useState)(!1),2),Qt=Wt[0],Kt=Wt[1],$t=Te((0,o.useState)({pageNo:0,pageSize:10,parentTerritory:null,childTerritory:null}),2),Xt=$t[0],Jt=$t[1],Zt=Te((0,o.useState)({pageNo:0,pageSize:10,parentTerritory:null,childTerritory:null}),2),en=Zt[0],tn=Zt[1],nn=Te((0,o.useState)([]),2),rn=nn[0],on=nn[1],an=Te((0,o.useState)({hqHierarchy:\"\",portfolio:\"\",parentPortfolio:\"\",showPortfolio:ce,name:\"\",sfdc:\"\",parent:\"\",costCenter:\"\",startDate:\"\",endDate:[],user:\"\",editMode:!1}),2),ln=an[0],sn=an[1],un=Te((0,o.useState)({parentLabel:\"\",parenData:[]}),2),cn=un[0],dn=un[1],pn=Te((0,o.useState)({childLabel:\"\",childData:[]}),2),fn=pn[0],gn=pn[1],hn=(0,o.useRef)(null),mn=(0,p.fW)(null==de||null===(w=de.current)||void 0===w||null===(w=w.values)||void 0===w||null===(w=w.hqHierarchy)||void 0===w?void 0:w.value,null==It?void 0:It.value),vn=Ft.isEnabled&&((0,p.fW)(null==de||null===(T=de.current)||void 0===T||null===(T=T.values)||void 0===T||null===(T=T.hqHierarchy)||void 0===T?void 0:T.value,null==Ft?void 0:Ft.value)||(0,p.fW)(null==ln||null===(L=ln.hqHierarchy)||void 0===L?void 0:L.value,null==Ft?void 0:Ft.value));(0,o.useEffect)(function(){hn.current=ze},[ze]);var An=function(e){var t;return null===(t=[null!=e&&e.start_date?(0,E.Yq)(null==e?void 0:e.start_date,\"MM/DD/YYYY\",\"YYYY-MM-DD\"):\"\",null!=e&&e.end_date?(0,E.Yq)(null==e?void 0:e.end_date,\"MM/DD/YYYY\",\"YYYY-MM-DD\"):\"\"])||void 0===t?void 0:t.filter(Boolean)};(0,o.useEffect)(function(){V&&he(\"geomapping\"),Y?(q&&function(){var e,t,n,r;be({parentData:null==q?void 0:q.ParentData,childData:null!==(e=null==q?void 0:q.childData)&&void 0!==e?e:[]}),dn({parentLabel:null==q?void 0:q.parentLabel,parenData:null==q?void 0:q.ParentData}),null!=q&&q.ParentData&&((null==q||null===(r=q.ParentData)||void 0===r?void 0:r.length)<10?Kt(!1):Kt(!0));var o,a,i,l=(null==q||null===(t=q.ParentData)||void 0===t?void 0:t.length)>0&&(null==q||null===(n=q.ParentData)||void 0===n||null===(n=n.filter(function(e){return null==e?void 0:e.checked}))||void 0===n?void 0:n.map(function(e){return null==e?void 0:e.value}));0===(null==l?void 0:l.length)&&Hn(null==q||null===(o=q.ParentData)||void 0===o?void 0:o.map(function(e){var t;return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null==e?void 0:e.value})),l&&l.length>0?(gn({childLabel:null==q?void 0:q.childLabel,childData:[]}),Hn(null==q||null===(a=q.ParentData)||void 0===a?void 0:a.map(function(e){var t;return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null==e?void 0:e.value}),!0)):gn({childLabel:null==q?void 0:q.childLabel,childData:null!==(i=null==q?void 0:q.childData)&&void 0!==i?i:[]})}(),bn()):sn({hqHierarchy:\"\",parentPortfolio:\"\",portfolio:\"\",showPortfolio:ce,name:\"\",sfdc:\"\",parent:\"\",costCenter:\"\",startDate:\"\",endDate:[],user:\"\",editMode:!1})},[z,Y,q]),(0,o.useEffect)(function(){ue&&_n(),Fn()},[]),(0,o.useEffect)(function(){Y&&(On(null==z?void 0:z.hq_hierarchy_id,null==z?void 0:z.parent_id),Tn(null==z?void 0:z.hq_hierarchy_id,null==z?void 0:z.portfolio_code))},[null==z?void 0:z.id]),(0,o.useEffect)(function(){var e;null!==(null==cn?void 0:cn.parentLabel)&&0==(null==cn||null===(e=cn.parenData)||void 0===e?void 0:e.length)&&null!=Vt&&Vt.length&&(kn(0),Jt(we(we({},Xt),{},{pageNo:0})),Kt(!1))},[cn]),(0,o.useEffect)(function(){yn()},[Vt]);var yn=(0,p.sg)(function(){if(null!=Vt&&Vt.length)null==(null==en?void 0:en.parentTerritory)&&null==(null==en?void 0:en.childTerritory)&&tn(we(we({},en),{},{childTerritory:fn,parentTerritory:cn})),dn(we({},{parentLabel:\"\",parenData:[]})),gn({childLabel:\"\",childData:[]}),Jt(we(we({},Xt),{},{childTerritory:null,parentTerritory:null,pageNo:1}));else{var e,t=en.parentTerritory,n=en.childTerritory;(null==t||null===(e=t.parenData)||void 0===e?void 0:e.length)<10||t&&null==(null==t?void 0:t.parenData)?Kt(!1):Kt(!0),t&&dn(t),n&&gn(n),tn(we(we({},en),{},{childTerritory:null,parentTerritory:null}))}},300),En=function(){H(!0)},bn=function(){var e,t,n,r,o,a,i=[],l=[];null!=rn&&rn.length&&z&&(i=null==rn?void 0:rn.filter(function(e){var t;return(null==e?void 0:e.value)===(null!==(t=null==z?void 0:z.portfolio_code)&&void 0!==t?t:se)})),null!=Pe&&Pe.length&&z&&(l=null==Pe?void 0:Pe.filter(function(e){return(null==e?void 0:e.value)===(null==z?void 0:z.user_id)})),sn({parentPortfolio:\"\",portfolio:null!==(e=i)&&void 0!==e&&e.length?i[0]:\"\",showPortfolio:ce,hqHierarchy:{label:null==z?void 0:z.hq_hierarchy_name,value:null==z?void 0:z.hq_hierarchy_id,parentName:null==z?void 0:z.parent_name},name:null==z?void 0:z.name,sfdc:null==z?void 0:z.sfdc_id,parent:{value:null!==(t=null==z?void 0:z.parent_id)&&void 0!==t?t:\"NA\",label:null!==(n=null==z?void 0:z.parent_name)&&void 0!==n?n:\"NA\",id:null!==(r=null==z?void 0:z.parent_id)&&void 0!==r?r:0},costCenter:0==(null==z?void 0:z.cost_center)?\"NA\":null==z?void 0:z.cost_center,startDate:(0,E.Yq)(null==z?void 0:z.start_date,\"MM/DD/YYYY\",\"YYYY-MM-DD\"),endDate:An(z),user:null!==(o=l)&&void 0!==o&&o.length&&ue?null===(a=l)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.label:null==z?void 0:z.user_name,editMode:Y}),Qe(null==z?void 0:z.user_id),ut(!(null!=z&&z.parent_id))},_n=function(){var e,t={};t.domain=te,t.endPoint=i.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==$?void 0:$.selectedBusinessUnit.bu_code),t.customHeaders={\"bu-id \":ae,\"country-code \":oe,Authorization:\"Bearer \".concat(re)},t.payLoad={sort:\"asc\"},t.triggerLoader=J,null===(e=(0,m.YR)(t))||void 0===e||e.then(function(e){var t;if(null!=e&&null!==(t=e.data)&&void 0!==t&&t.data){var n,r=null==e||null===(n=e.data)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.map(function(e){return{value:null==e?void 0:e.code,label:null==e?void 0:e.name,parentName:null==e?void 0:e.parent_name}});on(r)}}).catch(function(e){})},Cn=function(e){var t,n,r;Ot(!1);var o={};return o.domain=te,o.endPoint=i.p.UPDATE_HQGEO_DATA.replace(\"__HQDATAID__\",null!==(t=null==z?void 0:z.id)&&void 0!==t?t:\"\"),o.customHeaders={\"user-id\":ne,\"country-code\":oe,Authorization:\"Bearer \".concat(re)},o.payLoad={geo_data_ids:null===(n=null!=nt?nt:[])||void 0===n?void 0:n.filter(function(e){return e.checked}).map(function(e){return e.value})},o.triggerLoader=J,null===(r=(0,m.HE)(o))||void 0===r?void 0:r.then(function(e){if(201===e.status||200===e.status)return H(!0),void Z({message:e.data,type:\"success\"});var t;throw Xe(!0),et(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage),new Error(e.errorMessage)}).catch(function(e){wn(e)})},wn=function(e){var t;t=null!=e&&e.message?null==e?void 0:e.message:e,Z({message:t,type:\"error\"})},Sn=function(e){if(\"hqdata\"===ge){var t,n,r,o,a={};a.domain=te,a.endPoint=i.p.UPDATE_HQDATA.replace(\"__ID__\",z.id),a.customHeaders={\"country-code\":oe,\"user-id\":ne,\"role-id\":ie,Authorization:\"Bearer \".concat(re)},a.payLoad=we({name:e.name.trim(),bu_id:ae,end_date:null!=e&&null!==(t=e.endDate)&&void 0!==t&&null!==(t=t[1])&&void 0!==t&&t.length?(0,E.Yq)(null==e||null===(n=e.endDate)||void 0===n?void 0:n[1],\"YYYY-MM-DD\"):null,user_id:We,cost_center:\"NA\"===e.costCenter?0:e.costCenter.trim(),parentId:Fe},vn?{sfdc_id:null==e||null===(r=e.sfdc)||void 0===r?void 0:r.trim()}:{}),a.triggerLoader=J,null===(o=(0,m.HE)(a))||void 0===o||o.then(function(e){var t;if(201===e.status||200===e.status)return H(!0),void Z({message:e.data,type:\"success\"});throw Z({message:null==e||null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){wn(e)})}else wt(e),s={new_geo_data_ids:null===(l=null!=nt?nt:[])||void 0===l?void 0:l.filter(function(e){return e.checked}).map(function(e){return e.value}),hqId:null==z?void 0:z.id},(0,m.KQ)((0,p.rZ)($,X),J,s).then(function(e){null!=e&&e.data?Ot(!0):Cn()});var l,s},Tn=function(){var e=_e(ye().m(function e(t){var n,r,o,a=arguments;return ye().w(function(e){for(;;)if(0===e.n)return r=a.length>1&&void 0!==a[1]?a[1]:\"\",(o={}).domain=te,o.endPoint=i.p.GET_PARENT_LIST.replace(\"__HQHIERARCHYID__\",t),o.endPoint=r?\"\".concat(o.endPoint,\"?portfolio-code=\").concat(r):\"\".concat(o.endPoint),o.customHeaders={\"country-code\":oe,\"user-id\":ne,\"role-id\":ie,Authorization:\"Bearer \".concat(re)},o.triggerLoader=J,e.a(2,null===(n=(0,m.YR)(o))||void 0===n?void 0:n.then(function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.hq_data_parent_details_list){var r,o=null==e||null===(r=e.data)||void 0===r?void 0:r.hq_data_parent_details_list.map(function(e){return{value:null==e?void 0:e.parent_id,label:null==e?void 0:e.parent_name,id:null==e?void 0:e.parent_id,hqId:t,cost_center:null==e?void 0:e.cost_center}});Ne(o)}}).catch(function(e){}))},e)}));return function(t){return e.apply(this,arguments)}}(),On=function(e,t){var n,r={};return r.domain=te,r.endPoint=i.p.GET_USERS_LIST.replace(\"__HQHIERARCHYID__\",e),r.payLoad={parent_hq_id:t},r.customHeaders={\"country-code\":oe,\"bu-id \":ae,Authorization:\"Bearer \".concat(re)},r.triggerLoader=J,null===(n=(0,m.YR)(r))||void 0===n?void 0:n.then(function(e){if(null!=e&&e.data){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{value:null==e?void 0:e.user_id,label:ue?\"\".concat(null==e?void 0:e.user_name,\" - \").concat(null==e?void 0:e.portfolio_code):null==e?void 0:e.user_name,id:null==e?void 0:e.user_id,portfolio_code:null==e?void 0:e.portfolio_code}});Me(n)}}).catch(function(e){})},Dn=function(e,t){var n,r,o,a={};return a.domain=te,a.endPoint=i.p.INITIAL_STATE_LIST,a.endPoint+=\"?page_no=\".concat(null!=t?t:null==en?void 0:en.pageNo,\"&page_size=\").concat(null==en?void 0:en.pageSize),a.customHeaders={\"country-code\":oe,Authorization:\"Bearer \".concat(re)},a.payLoad={hq_hierarchy_id:Ie,parent_hq_data_id:Fe},ue&&(null!=e&&null!==(n=e.portfolio)&&void 0!==n&&n.value||se)&&(a.payLoad.portfolio_code=null!==(r=null==e||null===(o=e.portfolio)||void 0===o?void 0:o.value)&&void 0!==r?r:se),a.triggerLoader=J,a},Rn=function(e){return e&&Array.isArray(e)&&e.length>0?e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:null==e?void 0:e.is_selected,parentId:null==e?void 0:e.parent_id}}):[]};(0,o.useEffect)(function(){if(null!=fn&&fn.childData&&0==(null==nt?void 0:nt.length)){var e;it(!0);var t=null!==(e=null==q?void 0:q.childData)&&void 0!==e?e:[];null!=t&&t.length?rt(Ae(t)):rt([])}},[0==(null==nt?void 0:nt.length)&&(null==q||null===(P=q.childData)||void 0===P?void 0:P.length)&&!at]);var Nn=function(e){if((0,p.mN)(e)&&null!=e&&e.data){var t=e.data,n=t.parent_geo_data_label_name,r=void 0===n?\"\":n,o=t.child_geo_data_label_name,a=void 0===o?\"\":o,i=t.parent_hq_geo_data_list,l=void 0===i?[]:i,s=t.child_hq_geo_data_list,u=void 0===s?[]:s;Ln(r,l),Pn(a,u),Mn(u),xn(l,u)}else In(e)},Ln=function(e,t){var n=null!=t&&t.length?[].concat(Ae(cn.parenData),Ae(Rn(t))):Ae(cn.parenData);Kt((null==t?void 0:t.length)>=10),dn({parentLabel:e,parenData:n})},Pn=function(e,t){var n,r=Rn(null!==t&&t.length>0?t:[]);gn({childLabel:e,childData:Vt.length>0?[].concat(Ae(null!==(n=null==fn?void 0:fn.childData)&&void 0!==n?n:[]),Ae(r)):r})},Mn=function(e){if(null!==e&&e.length>0&&0===(null==nt?void 0:nt.length)){var t=Rn(null==e?void 0:e.childData);rt(t)}},xn=function(e,t){Vt.length<=0&&Hn(null==e?void 0:e.map(function(e){return null==e?void 0:e.id}))},In=function(e){var t;if(Z({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),null==e||!e.data)throw new Error(e.errorMessage)},kn=function(e){var t,n,r={};return r.domain=te,r.endPoint=i.p.GET_GEO_DATA_LIST_BY_SEARCH_VALUE.replace(\"__PARENTHQID__\",null!==(t=null==z?void 0:z.parent_id)&&void 0!==t?t:Fe),r.endPoint+=\"?page_no=\".concat(null!=e?e:null==Xt?void 0:Xt.pageNo,\"&page_size=\").concat(null==Xt?void 0:Xt.pageSize,\"&search_key=\").concat(Vt),Y&&(r.endPoint+=\"&hq_id=\".concat(null==z?void 0:z.id)),r.customHeaders={\"country-code\":oe,Authorization:\"Bearer \".concat(re)},r.triggerLoader=J,null===(n=(0,m.YR)(r))||void 0===n?void 0:n.then(function(e){Nn(e)}).catch(function(e){console.log(e)})},Bn={editing:function(e){return function(e){var t,n={};return n.domain=te,n.endPoint=i.p.GET_GEO_DATA_LIST.replace(\"__HQDATAID__\",null==z?void 0:z.id),n.endPoint+=\"?page_no=\".concat(null!=e?e:null==en?void 0:en.pageNo,\"&page_size=\").concat(null==en?void 0:en.pageSize),n.customHeaders={\"country-code\":oe,Authorization:\"Bearer \".concat(re)},n.triggerLoader=J,null===(t=(0,m.YR)(n))||void 0===t?void 0:t.then(function(e){Nn(e)}).catch(function(e){console.log(e)})}(e)},creating:function(e){return function(e){var t,n=Dn(ze,e);null===(t=(0,m.YR)(n))||void 0===t||t.then(function(e){Nn(e)})}(e)}},Fn=function(){var e={moduleName:S.Rk.USER_MODULE_NAME,keys:[S.Rk.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID,S.Rk.COST_CENTER_CONFIGURATION_KEY,S.Rk.ADMIN_REQUIRED_SFDC_HQ_HIERARCHY_ID,S.Rk.IS_HQ_SFDC_DATA_REQUIRED],apiName:S.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS};(0,N.j)((0,p.rZ)($,X),J,e).then(function(e){var t,n,r;kt((0,p.Ws)(S.Rk.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID,e)),jt({isEnabled:\"true\"===(null===(t=(0,p.Ws)(S.Rk.IS_HQ_SFDC_DATA_REQUIRED,e))||void 0===t?void 0:t.value),value:null===(n=(0,p.Ws)(S.Rk.ADMIN_REQUIRED_SFDC_HQ_HIERARCHY_ID,e))||void 0===n?void 0:n.value}),Yt(\"true\"===(null===(r=(0,p.Ws)(S.Rk.COST_CENTER_CONFIGURATION_KEY,e))||void 0===r?void 0:r.value))}).catch(function(e){})},jn=function(e,t){var n=[];return null==t||t.forEach(function(t){var r,o=null===(r=e||[])||void 0===r?void 0:r.find(function(e){return(null==e?void 0:e.value)===(null==t?void 0:t.value)});null!=o&&o.value?n.push(o):n.push(t)}),n},Hn=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e;if(null!==(n=o=null===(t=o)||void 0===t?void 0:t.filter(function(e){return e}))&&void 0!==n&&n.length){var a,l=function(e){var t,n,r,o,a={};return a.domain=te,a.endPoint=\"\".concat(Y?i.p.GET_CHILD_LIST_EDIT.replace(\"__HQHIERARCHYID__\",null==z?void 0:z.hq_hierarchy_id).replace(\"__HQDATAID__\",null!==(t=null==z?void 0:z.id)&&void 0!==t?t:\"\"):i.p.GET_CHILD_LIST_SAVE.replace(\"__HQHIERARCHYID__\",Ie)),a.payLoad={parent_geo_data_ids:e?Ae(e):[]},ue&&(a.endPoint=\"\".concat(a.endPoint,\"?portfolio_code=\").concat(null!==(n=null!==(r=null===(o=hn.current)||void 0===o||null===(o=o.portfolio)||void 0===o?void 0:o.value)&&void 0!==r?r:null==z?void 0:z.portfolio_code)&&void 0!==n?n:se)),a.customHeaders={\"country-code\":oe,\"user-id\":ne,Authorization:\"Bearer \".concat(re)},a.triggerLoader=J,a}(o);return null===(a=(0,m.iH)(l))||void 0===a?void 0:a.then(function(e){var t,n,o;null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage&&Z({message:null==e||null===(o=e.data)||void 0===o?void 0:o.errorMessage,type:\"error\"}),(null==e||null===(n=e.data)||void 0===n?void 0:n.length)>0&&function(e,t){var n,r,o,a,i,l;l=t?function(e,t){return null==e?void 0:e.map(function(e){return t.includes(e.id)?{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!0,parentId:null==e?void 0:e.parent_id}:{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:(null==e?void 0:e.is_selected)||!1,parentId:null==e?void 0:e.parent_id}})}(e,(null==q?void 0:q.childData.length)>0&&(null==q||null===(i=q.childData)||void 0===i?void 0:i.map(function(e){return e.value}))):null==e?void 0:e.map(function(e){var t;return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:null!==(t=null==e?void 0:e.is_selected)&&void 0!==t&&t,parentId:null==e?void 0:e.parent_id}});var s,u,c=we(we({},fn),{},{childData:jn(null==fn?void 0:fn.childData,l)}),d=[];null!=de&&null!==(n=de.current)&&void 0!==n&&null!==(n=n.values)&&void 0!==n&&null!==(n=n.childData)&&void 0!==n&&n.length&&(d=null!==(s=null==de||null===(u=de.current)||void 0===u||null===(u=u.values)||void 0===u||null===(u=u.childData)||void 0===u?void 0:u.filter(function(e){var t;return(null==c||null===(t=c.childData)||void 0===t?void 0:t.find(function(t){return(null==t?void 0:t.value)===(null==e?void 0:e.value)}))&&(null==e?void 0:e.checked)}))&&void 0!==s?s:[]),null==de||null===(r=de.current)||void 0===r||r.setFieldValue(\"childData\",d);var p,f,g=[],h=(g=null!=fn&&null!==(o=fn.childData)&&void 0!==o&&o.length&&null!=c&&null!==(a=c.childData)&&void 0!==a&&a.length?[].concat(Ae(fn.childData),Ae(null!==(p=null==c?void 0:c.childData)&&void 0!==p?p:[])):Ae(null!==(f=null==c?void 0:c.childData)&&void 0!==f?f:[]))&&g.length>0?Ae(new Map(g.map(function(e){return[e.value,e]})).values()):[];c.childData=h?Ae(h):[],gn(c)}(e.data,r)}).catch(function(e){wn(e)})}return[]},Un=function(e){var t={};return t.domain=te,t.endPoint=\"\".concat(i.p.GET_ALTERNATIVE_HQDATA_LIST.replace(\"__ID__\",null==z?void 0:z.rowId),\"?end_date=\").concat(e),t.customHeaders={\"bu-id \":ae,\"country-code\":oe,Authorization:\"Bearer \".concat(re)},t.triggerLoader=J,(0,m.aV)(t)},Yn=function(e,t){var n={};return n.domain=te,n.endPoint=i.p.GET_HQDATA_VALIDATION.replace(\"__ID__\",e).replace(\"__ENDDATE__\",t),n.customHeaders={\"country-code\":oe,Authorization:\"Bearer \".concat(re)},n.triggerLoader=J,(0,m.vY)(n)},Gn=function(e){var t={};return t.domain=te,t.endPoint=i.p.SAVE_ORPHAN_SCHEDULAR_RECORD,t.customHeaders={\"country-code\":oe,\"user-id\":ne,Authorization:\"Bearer \".concat(re)},t.payLoad={previous_head_quarter_data_id:null==z?void 0:z.rowId,new_head_quarter_data_id:e},t.triggerLoader=J,(0,m.SK)(t)},zn=function(){var e=_e(ye().m(function e(t){var n;return ye().w(function(e){for(;;)switch(e.n){case 0:Sn(Se),null===(n=Gn(t))||void 0===n||n.then(function(e){var t;(0,p.mN)(e)&&(H(!0),mt(!1),Z({message:e.data,type:\"success\"})),Z({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"})}).catch(function(e){wn(e)});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Vn=function(){var e=_e(ye().m(function e(t){var n;return ye().w(function(e){for(;;)switch(e.n){case 0:if(Oe(t),null!=t&&null!==(n=t.endDate)&&void 0!==n&&n[1]){e.n=1;break}return Sn(t),e.a(2);case 1:if(qn(t)){e.n=2;break}return Sn(t),e.a(2);case 2:return e.n=3,Wn(t);case 3:if(e.v){e.n=4;break}return e.a(2);case 4:return e.n=5,Qn(t);case 5:mt(!0);case 6:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),qn=function(e){var t,n;return 2===(null==e||null===(t=e.endDate)||void 0===t?void 0:t.length)&&!(0,p.iH)(new Date(null==z?void 0:z.end_date),new Date(null==e||null===(n=e.endDate)||void 0===n?void 0:n[1]))},Wn=function(){var e=_e(ye().m(function e(t){var n,r,o;return ye().w(function(e){for(;;)switch(e.n){case 0:return r=(0,E.Yq)(null==t||null===(n=t.endDate)||void 0===n?void 0:n[1],\"DD-MM-YYYY\"),e.n=1,Yn(null==z?void 0:z.rowId,r);case 1:return o=e.v,e.a(2,!(null==o||!o.data))}},e)}));return function(t){return e.apply(this,arguments)}}(),Qn=function(){var e=_e(ye().m(function e(t){var n,r,o,a,i,l,s;return ye().w(function(e){for(;;)switch(e.n){case 0:return a=(0,E.Yq)(null==t||null===(n=t.endDate)||void 0===n?void 0:n[1],\"DD-MM-YYYY\"),e.n=1,Un(a);case 1:i=e.v,l=null==i||null===(r=i.data)||void 0===r?void 0:r.hqList,s=null==l?void 0:l.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}}),yt(s),_t(null==i||null===(o=i.data)||void 0===o?void 0:o.message);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Kn=(0,o.useMemo)(function(){return ft(\"hqdata\"===ge?Y?\"Update\":\"hqdata\"===ge?\"NEXT\":\"SAVE\":Y?\"UPDATE\":\"SAVE\")},[Y,ge]),$n=(0,o.useMemo)(function(){return ft(\"hqdata\"===ge?Y?\"EDIT_HQ_DATA\":\"ADD_HQ_DATA\":\"HQ_GEO_MAPPING\")},[Y]),Xn=(0,o.useMemo)(function(){return ft(\"hqdata\"===ge||\"geomapping\"!==ge||V?\"CANCEL\":\"PREVIOUS\")},[Y,ge]),Jn=Y?function(e,t){Vn(e)}:function(e,t){!vn&&null!=e&&e.sfdc&&(null==e||delete e.sfdc),function(e){var t,n=Dn(e);\"hqdata\"===ge?(Ve(e),null===(t=(0,m.YR)(n))||void 0===t||t.then(function(e){if((0,p.mN)(e)){he(\"geomapping\");var t=e.data,n=t.parent_geo_data_label_name,r=void 0===n?\"\":n,o=t.child_geo_data_label_name,a=void 0===o?\"\":o,i=t.parent_hq_geo_data_list,l=void 0===i?[]:i,s=t.child_hq_geo_data_list,u=void 0===s?[]:s;Kt((null==l?void 0:l.length)>=(null==en?void 0:en.pageSize)),dn({parentLabel:r,parenData:Rn(l)}),Hn(null==l?void 0:l.map(function(e){return null==e?void 0:e.id})),gn({childLabel:a,childData:Rn(null!==u&&u.length>0?u:[])})}else{var c;Z({message:null==e||null===(c=e.data)||void 0===c?void 0:c.errorMessage,type:\"error\"})}}).catch(function(e){wn(e)})):function(){var e,t=function(){var e,t,n,r={};return r.domain=te,r.endPoint=i.p.SAVE_HQDATA,r.customHeaders={\"user-id\":ne,\"country-code\":oe,\"role-id\":ie,Authorization:\"Bearer \".concat(re)},r.payLoad=we(we({name:ze.name.trim(),hq_hierarchy_id:Ie},null!=ze&&ze.sfdc?{sfdc_id:null==ze||null===(e=ze.sfdc)||void 0===e?void 0:e.trim()}:{}),{},{bu_id:ae,cost_center:\"NA\"===ze.costCenter?0:ze.costCenter.trim(),parent_id:Fe,start_date:null!=ze&&ze.startDate?(0,E.Yq)(null==ze?void 0:ze.startDate,\"YYYY-MM-DD\"):null,geo_data_ids:null==nt?void 0:nt.filter(function(e){return e.checked}).map(function(e){return e.value}),user_id:We,portfolio_codes:ce?[null!==(t=null==ze||null===(n=ze.portfolio)||void 0===n?void 0:n.value)&&void 0!==t?t:\"DEFAULT\"]:[null!=se?se:\"DEFAULT\"]}),r.triggerLoader=J,r}();null===(e=(0,m.VR)(t))||void 0===e||e.then(function(e){var t;(0,p.mN)(e)&&(H(!0),Z({message:e.data,type:\"success\"})),Z({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"})}).catch(function(e){wn(e)})}()}(e)},Zn=null!=Vt&&Vt.length?null==Xt?void 0:Xt.pageSize:null==en?void 0:en.pageSize,er=(null!==(M=null==cn||null===(x=cn.parenData)||void 0===x?void 0:x.length)&&void 0!==M?M:0)>=(null!=Zn?Zn:10),tr=\"geomapping\"===ge&&Qt&&er;return a().createElement(h.A,{isDrawerOpen:F,anchor:\"right\"},a().createElement(r.A,{className:\"popupMain\"},a().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},a().createElement(s.A,{component:\"h1\",variant:\"h1\"},$n),a().createElement(r.A,{onClick:function(){return H(!1)},\"data-testId\":\"closeIcon\"},a().createElement(s.A,{className:\"icon-close closeIcon\"}))),a().createElement(u.l1,{initialValues:\"hqdata\"===ge?ln:Ee,innerRef:de,validationSchema:\"hqdata\"===ge?b({isConfiguredCostCenterHierarchy:mn,costCenterConfigurations:It,isCostCenterEnabled:Ut}):null,enableReinitialize:!0,onSubmit:function(e){var t;null!=z&&z.end_date&&\"\"==(null==e||null===(t=e.endDate)||void 0===t?void 0:t[1])?(Nt(!0),Mt(e)):Jn(e,{})}},function(e){var t=e.values,n=e.setFieldValue;return a().createElement(u.lV,{className:\"popupContent\",style:{paddingBottom:\"40px\"}},\"hqdata\"===ge?a().createElement(me,{form:{setFieldValue:n,values:t,setUserDataList:Me},user:{User:$,role_type_name:ee,userId:We,userDataList:Pe,setUserId:Qe},portfolio:{hasShowPortfolio:ce,hasPortfolioEnable:ue,hasPortfolioCode:se,portfolioList:rn,parentPortfolioId:Ue,setParentPortfolioId:Ye,setShowMismatchportfolio:pt},hierarchy:{hqHierarchyId:Ie,hqHierarchyList:Gt,setHqHierarchyId:ke,parentData:Re,parentValue:st,setParentValue:ut,setParentId:je},costCenter:{isConfiguredCostCenterHierarchy:mn,isCostCenterEnabled:Ut},isShowSfdcID:vn,isEditingMode:Y,SelectedRowItem:z,getParentList:Tn,getUsersList:On}):a().createElement(pe,{parentTerritory:cn,childTerritory:fn,setSelectedChildData:rt,selectedChildData:nt,searchQuery:Vt,setSearchQuery:qt}),a().createElement(l.A,{direction:\"row\",className:\"btnsBlock\",width:\"100%\",justifyContent:\"space-between\",style:{position:\"absolute\",bottom:\"10px\",background:\"#fafbfc\",paddingLeft:\"20px\",paddingRight:\"40px\",display:\"flex\",right:\"0px\"}},tr?a().createElement(g.A,{buttonName:\"Load More\",onButtonClick:function(){var e;null!=Vt&&Vt.length?(kn((null==Xt?void 0:Xt.pageNo)+1),Jt(we(we({},Xt),{},{pageNo:(null==Xt?void 0:Xt.pageNo)+1}))):(e=(null==en?void 0:en.pageNo)+1,Bn[Y?\"editing\":\"creating\"](e),tn(we(we({},en),{},{pageNo:(null==en?void 0:en.pageNo)+1})))},fullwidth:!1}):null,a().createElement(l.A,{direction:\"row\",gap:2,flex:1,justifyContent:\"flex-end\"},a().createElement(g.A,{variant:\"outlined\",buttonName:Xn,onButtonClick:Y?En:function(){he(\"hqdata\"),sn(ze),\"hqdata\"===ge&&H(!0,{parentTerritory:cn,childTerritory:fn})},fullwidth:!1,color:\"secondary\"}),a().createElement(g.A,{variant:\"contained\",buttonName:Kn,fullwidth:!1,color:\"primary\",type:\"submit\"}))),dt&&a().createElement(f.B,{isVisible:!0,message:\"\".concat(ft(\"PORTFOLIO_MISMATCH_ADD_HQ\")),onRequestClose:function(){pt(!1),n(\"user\",\"\")},onButtonClick:function(){pt(!1)}}))}),ht&&a().createElement(O,{formValues:Se,isVisible:ht,onRequestClose:function(){return mt(!1)},alternativeHQs:At,alternateHqMessage:bt,proceedWithoutApply:function(){return Sn(Se)},applyChanges:function(e){return zn(e)}}),$e&&a().createElement(R,{isVisible:$e,popUpClose:function(){Xe(!1)},errorMessageValue:Ze}),Tt&&a().createElement(D.R,{message:S.JS.UNMAPPING_GEO_RETAILERS_MESSAGE,isVisible:Tt,onRequestClose:function(){return Ot(!1)},onSave:function(){return Cn()}}),Rt&&a().createElement(D.R,{isVisible:Rt,message:S.JS.CLEAR_END_DATE_ACTIVE_HQ_CONFIRMATION_POPUP,onSave:function(){return Jn(Pt,{})},onRequestClose:function(){Nt(!1),En()},primaryBtnName:null!==(I=ft(\"PROCEED\"))&&void 0!==I?I:\"\",secondaryBtnName:null!==(k=ft(\"CANCEL\"))&&void 0!==k?k:\"\"})))};var Ne=n(43457),Le=(0,B.Ay)(r.A)(function(e){return e.theme,{PageWrapper:Ne.ff}}),Pe=n(27305),Me=n(56254),xe=n(8239),Ie=n(51545),ke=n(48506),Be=n(15255),Fe=n(28152);function je(e){return je=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},je(e)}function He(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Ue(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ue(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ue(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Ue(d,\"constructor\",u),Ue(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Ue(u,o,\"GeneratorFunction\"),Ue(d),Ue(d,o,\"Generator\"),Ue(d,r,function(){return this}),Ue(d,\"toString\",function(){return\"[object Generator]\"}),(He=function(){return{w:a,m:p}})()}function Ue(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Ue=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Ue(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Ue(e,t,n,r)}function Ye(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ge(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ye(a,r,o,i,l,\"next\",e)}function l(e){Ye(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach(function(t){qe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=je(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==je(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const We=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.onFilterSubmit,i=e.filtersOptions,l=e.onClearFilters,f=e.selectedFilters,g=e.setFiltersOptions,v=e.setSelectedHierarchyId,A=e.selectedHierarchyId,y=(0,c.Bd)().t,E=(0,o.useContext)(d.v),b=E.BackOfficeProps,w=b.globalStore.User,S=b.baseurl,T=E.triggerShowLoader,O=(0,_.i)(w),D=O.hasShowPortfolio,R=O.hasPortfolioCode,N=O.hasPortfolioEnable,L=function(){n()},P=function(e,t){var n=\"DEFAULT\";N&&(D?n=null!=t?t:\"DEFAULT\":R&&(n=R)),(0,m.xz)((0,p.rZ)(w,S),T,e,n).then(function(e){g(function(t){return Ve(Ve({},t),{},{filter_by_hq_ids:(0,p.Ly)(\"parent_name\",\"parent_id\",null==e?void 0:e.hq_data_parent_details_list)})})}).catch(function(){})},M=function(){var e=Ge(He().m(function e(t){var n;return He().w(function(e){for(;;)switch(e.n){case 0:n={hqHierarchyId:A,parent_hq_ids:null==t?void 0:t.map(function(e){return null==e?void 0:e.value})},(0,m.OK)((0,p.rZ)(w,S),T,n).then(function(e){g(function(t){return Ve(Ve({},t),{},{user_uuids:(0,p.Ly)(\"user_name\",\"user_id\",e)})})}).catch(function(){});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=Ge(He().m(function e(t){return He().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t(\"filter_by_hq_ids\",[]);case 1:return e.n=2,t(\"user_uuids\",[]);case 2:return e.n=3,I({user_uuids:[]});case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=Ge(He().m(function e(){var t,n=arguments;return He().w(function(e){for(;;)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,g(function(e){return Ve(Ve({},e),t)});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return a().createElement(Ie.A,null,a().createElement(h.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},a().createElement(Ie.A,{p:3,className:\"retailer-floating-filter-wrapper\"},a().createElement(u.l1,{initialValues:f,enableReinitialize:!0,onSubmit:function(e,t){r(e)}},function(e){var t=e.values,n=e.setFieldValue;return a().createElement(u.lV,{className:\"popupContent floating-filter\"},a().createElement(xe.Ay,{container:!0,columns:12,spacing:1,mb:2},a().createElement(xe.Ay,{item:!0,xs:2},a().createElement(Ie.A,null,a().createElement(s.A,{variant:\"subtitle2\"},y(\"HQ_HIERARCHY\")),a().createElement(u.D0,{name:\"hq_hierarchy_id\"},function(){return a().createElement(C.A,{name:\"hq_hierarchy_id\",onChange:function(){var e=Ge(He().m(function e(r,o){var a;return He().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,I({filter_by_hq_ids:[],user_uuids:[]});case 1:return e.n=2,n(\"filter_by_hq_ids\",[]);case 2:return e.n=3,n(\"user_uuids\",[]);case 3:v(null==o?void 0:o.value),n(\"hq_hierarchy_id\",o),P(null==o?void 0:o.value,null==t||null===(a=t.portfolio)||void 0===a?void 0:a.value);case 4:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),options:null==i?void 0:i.hq_hierarchy_id,labelKey:\"label\",label:\"label\",selectedOption:null==t?void 0:t.hq_hierarchy_id,value:null==t?void 0:t.hq_hierarchy_id,defaultLabel:\"Select \".concat(y(\"HQ_HIERARCHY\"))})}),a().createElement(Fe.A,{errName:\"tmHQ\"}))),D&&a().createElement(xe.Ay,{item:!0,xs:2},a().createElement(Ie.A,null,a().createElement(s.A,{variant:\"subtitle2\"},y(\"SELECT_PORTFOLIO\")),a().createElement(u.D0,{name:\"portfolio\"},function(){return a().createElement(C.A,{name:\"portfolio\",onChange:function(){var e=Ge(He().m(function e(r,o){var a,i;return He().w(function(e){for(;;)switch(e.n){case 0:if(n(\"portfolio\",o),null==t||null===(a=t.hq_hierarchy_id)||void 0===a||!a.value){e.n=2;break}return e.n=1,x(n);case 1:P(null==t||null===(i=t.hq_hierarchy_id)||void 0===i?void 0:i.value,null==o?void 0:o.value);case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),options:null==i?void 0:i.portfolio,labelKey:\"label\",label:\"label\",selectedOption:null==t?void 0:t.portfolio,value:null==t?void 0:t.portfolio,defaultLabel:\"\".concat(y(\"SELECT_PORTFOLIO\"))})}),a().createElement(Fe.A,{errName:\"tmHQ\"}))),a().createElement(xe.Ay,{item:!0,xs:2},a().createElement(Ie.A,null,a().createElement(s.A,{variant:\"subtitle2\"},y(\"PARENT_HQ_NAME\")),a().createElement(u.D0,{name:\"filter_by_hq_ids\"},function(){var e;return a().createElement(ke.A,{options:i.filter_by_hq_ids,onHandleChange:function(){var e=Ge(He().m(function e(t){return He().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,I({user_uuids:[]});case 1:return e.n=2,n(\"user_uuids\",[]);case 2:n(\"filter_by_hq_ids\",t),null!=t&&t.length&&M(t);case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),disabled:!(null!=i&&null!==(e=i.filter_by_hq_ids)&&void 0!==e&&e.length),selectedOption:null==t?void 0:t.filter_by_hq_ids})}),a().createElement(Fe.A,{errName:\"tmHQ\"}))),a().createElement(xe.Ay,{item:!0,xs:2},a().createElement(Ie.A,null,a().createElement(s.A,{variant:\"subtitle2\"},y(\"USER\")),a().createElement(u.D0,{name:\"user_uuids\"},function(){var e;return a().createElement(ke.A,{options:i.user_uuids,onHandleChange:function(e){n(\"user_uuids\",e)},disabled:!(null!=i&&null!==(e=i.user_uuids)&&void 0!==e&&e.length),selectedOption:null==t?void 0:t.user_uuids})}),a().createElement(Fe.A,{errName:\"tmHQ\"}))),a().createElement(xe.Ay,{item:!0,xs:2},a().createElement(Ie.A,null,a().createElement(s.A,{variant:\"subtitle2\"},y(\"STATUS\")),a().createElement(u.D0,{name:\"status\"},function(){return a().createElement(C.A,{name:\"status\",onChange:function(e,t){n(\"status\",t)},options:null==i?void 0:i.status,labelKey:\"label\",label:\"label\",selectedOption:null==t?void 0:t.status,value:null==t?void 0:t.status,defaultLabel:\"Select \".concat(y(\"STATUS\"))})}),a().createElement(Fe.A,{errName:\"tmHQ\"})))),a().createElement(Be.A,{onClearFilters:l,onClose:L}))}))))};var Qe=n(60538),Ke=n(37998),$e=n(43605),Xe=n(92416),Je=n(96348),Ze=[\"hasUpdateAccess\",\"setIsDrawerOpen\",\"getHeadQuarterDataById\",\"onGeoHandler\"];function et(e){return et=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},et(e)}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach(function(t){rt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rt(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=et(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==et(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ot=function(e){var t=e.setState,n=e.searchValue,o=e.selectedFilters,i=e.setIsFilterOpen,s=e.setIsDrawerOpen,u=e.hasCreateAccess,c=e.hqDataList,d=e.hasUpdateAccess,f=e.getHeadQuarterDataById,h=e.onGeoHandler;return a().createElement(r.A,null,a().createElement(l.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},a().createElement(r.A,{mb:2},a().createElement(Xe.A,{routePathName:[{name:Je.F_.Masters,path:Je.fp.Masters},{name:Je.F_.HeadQuartersData,path:Je.fp.HeadQuartersData}]})),a().createElement(r.A,null,a().createElement(ne.A,{onSearchValueChange:function(e){t(function(t){return nt(nt({},t),{},{searchValue:e,pageNo:0})})},placeholderText:(0,v.t)(\"SEARCH\"),searchValue:null!=n?n:\"\",searchBasedOn:\"\".concat((0,v.t)(\"SEARCH_BY\"),\" \").concat((0,v.t)(\"HQ_NAME\"),\", \").concat((0,v.t)(\"PARENT_HQ_NAME\"),\", \").concat((0,v.t)(\"USER_NAME_LABEL\"),\", \").concat((0,v.t)(\"MOBILE_NUMBER\"),\".\")}))),a().createElement(l.A,{flexDirection:\"row\",justifyContent:\"end\",gap:2,mb:2},a().createElement(g.A,{buttonName:(0,v.t)(\"FILTERS\"),color:\"transparent\",fullwidth:!1,className:(0,p.F7)(o),endIcon:a().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){i(!0)}}),u&&a().createElement(g.A,{variant:\"contained\",buttonName:(0,v.t)(\"ADD_NEW_BUTTON\"),onButtonClick:function(){s(!0)},fullwidth:!1,color:\"primary\"})),a().createElement(Qe.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},a().createElement($e.A,{rows:c,columnDefs:Ke.bL,frameworkComponents:{EditActionComponent:function(e){return function(e){var t=e.hasUpdateAccess,n=e.setIsDrawerOpen,r=e.getHeadQuarterDataById,o=e.onGeoHandler,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ze),l=i.column,s=i.data,u={edit:(0,v.t)(\"EDIT\"),geo:\"Geo\"};return\"Edit\"===u[l.colId]?a().createElement(\"button\",{type:\"button\",id:\"editItem\",className:\"smart-agro-lite-green-label remove-button \".concat(t?\"\":\"disabled-label\"),onClick:function(){t&&(n(!0),r(s))}},u[l.colId]):\"Geo\"===u[l.colId]?a().createElement(\"button\",{type:\"button\",id:\"geoItem\",className:\"smart-agro-lite-blue-label remove-button \".concat(t?\"\":\"disabled-label\"),onClick:function(){return t?o(s):function(){}}},u[l.colId]):null}(nt({hasUpdateAccess:d,setIsDrawerOpen:s,getHeadQuarterDataById:f,onGeoHandler:h},e))}}})))};function at(e){return at=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},at(e)}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach(function(t){st(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function st(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=at(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=at(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==at(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ct(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const dt=function(e){var t,n,l,s,u,c=e.RBACControls,f=(0,Pe.w)(c),g=f.hasCreateAccess,h=f.hasUpdateAccess,v=(0,o.useContext)(d.v),A=v.BackOfficeProps,y=A.globalStore.User,b=A.baseurl,_=v.triggerShowLoader,C=v.triggerToastMsg;console.log(\"User\",y);var w=(0,p.rZ)(y,b),T=w.role_id,O=w.role_type_name,D=b,R=null==y||null===(t=y.UserDetails)||void 0===t?void 0:t.user_id,N=null!==(n=null==y?void 0:y.AccessToken)&&void 0!==n?n:\"\",L=null==y||null===(l=y.selectedCountry)||void 0===l?void 0:l.countryCode,P=null==y||null===(s=y.selectedBusinessUnit)||void 0===s?void 0:s.bu_id,M=null==y||null===(u=y.selectedBusinessUnit)||void 0===u||null===(u=u.userRoleControls)||void 0===u?void 0:u.roleId,x=ut((0,o.useState)(!1),2),I=x[0],k=x[1],B=ut((0,o.useState)(!1),2),F=B[0],j=B[1],H=ut((0,o.useState)(!1),2),U=H[0],Y=H[1],G=ut((0,o.useState)({}),2),z=G[0],V=G[1],q=ut((0,o.useState)({}),2),W=q[0],Q=q[1],K=ut((0,o.useState)([]),2),$=K[0],X=K[1],J=ut((0,o.useState)(\"new\"),2),Z=J[0],ee=J[1],te=ut((0,o.useState)(1),2),ne=te[0],re=te[1],oe=ut((0,o.useState)(0),2),ae=oe[0],ie=oe[1],le=ut((0,o.useState)({}),2),se=le[0],ue=le[1],ce=ut((0,o.useState)(!1),2),de=ce[0],pe=ce[1],fe=ut((0,o.useState)({}),2),ge=fe[0],he=fe[1],me=ut((0,o.useState)(\"\"),2),ve=me[0],Ae=me[1],ye=[{label:\"Active\",value:!0,checked:!1},{label:\"InActive\",value:!1,checked:!1}],Ee=ut((0,o.useState)({searchValue:\"\",pageNo:0,pageSize:10,levelSequence:1,sortOrder:\"asc\",filterByHqId:[]}),2),be=Ee[0],_e=Ee[1],Ce=be.searchValue,we=be.pageNo,Se=be.pageSize,Te=be.levelSequence,Oe=be.sortOrder;(0,o.useEffect)(function(){De()},[Ce,Se,Te,Oe,se]);var De=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=function(e){var t,n,r,o,a={};return a.domain=D,a.endPoint=i.p.GET_HQDATA_FILTER,a.payLoad={hq_hierarchy_id:null==se||null===(t=se.hq_hierarchy_id)||void 0===t?void 0:t.value,search_key:Ce?Ce.toLowerCase():void 0,page_no:e,page_size:Se,sort_order:Oe,filter_by_hq_ids:null==se||null===(n=se.filter_by_hq_ids)||void 0===n?void 0:n.map(function(e){return e.value}),user_uuids:null==se||null===(r=se.user_uuids)||void 0===r?void 0:r.map(function(e){return e.value}),status:null==se||null===(o=se.status)||void 0===o?void 0:o.value},a.customHeaders={\"bu-id \":P,\"country-code\":L,\"user-id \":R,\"role-id\":M,Authorization:\"Bearer \".concat(N)},a.triggerLoader=_,a}(t);return null===(e=(0,m.$m)(n))||void 0===e?void 0:e.then(function(e){var n,r,o,a,i;_e(function(e){return lt(lt({},e),{},{pageNo:t})});var l,s,u,c=1;if((null==e||null===(n=e.data)||void 0===n?void 0:n.total_elements)>Se&&(c=Math.ceil((null==e||null===(l=e.data)||void 0===l?void 0:l.total_elements)/Se)),re(c),ie(null==e||null===(r=e.data)||void 0===r?void 0:r.total_elements),!((null==e||null===(o=e.data)||void 0===o||null===(o=o.hq_data_view_List)||void 0===o?void 0:o.length)>0))throw X([]),C({message:null==e||null===(a=e.response)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.errorMessage,type:\"error\"}),new Error(null==e||null===(i=e.response)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.errorMessage);var d=null==(s=null==e?void 0:e.data)||null===(u=s.hq_data_view_List)||void 0===u?void 0:u.map(function(e){var t;return{id:e.id,name:e.name,hq_hierarchy_name:e.hq_hierarchy_name,user_name:e.user_name,parent_name:e.parent_name,cost_center:e.cost_center,start_date:e.start_date?(0,E.Yq)(null==e?void 0:e.start_date,\"DD MMM YYYY\"):null,end_date:e.end_date?(0,E.Yq)(null==e?void 0:e.end_date,\"DD MMM YYYY\"):null,status:null!=e&&e.is_active?\"Active\":\"InActive\",mobile_number:null!==(t=null==e?void 0:e.mobile_number)&&void 0!==t?t:\"\",alternative_head_quarter_name:null==e?void 0:e.alternative_head_quarter_name}});X(d)}).catch(function(e){var t;C({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},Ne=function(e){var t,n={};return n.domain=D,n.endPoint=i.p.GET_HQDATA_BY_ID.replace(\"__ID__\",e.id),n.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(N)},n.triggerLoader=_,null===(t=(0,m.YR)(n))||void 0===t?void 0:t.then(function(t){if((200===t.status||201===t.status)&&t.data)return ee(\"new\"),Y(!0),V(lt(lt({},t.data),{},{rowId:e.id})),t.data;throw new Error(t.errorMessage)}).catch(function(e){console.log(e)})};return(0,o.useEffect)(function(){O===S.Rk.COUNTRY_ADMIN?(0,m.xb)((0,p.rZ)(y,b),_).then(function(e){he(function(t){return lt(lt({},t),{},{hq_hierarchy_id:null==e?void 0:e.map(function(e){return lt({label:null==e?void 0:e.name,value:null==e?void 0:e.id,parentName:null==e?void 0:e.parent_name},e)}),status:ye})})}).catch(function(){}):(0,m.qx)((0,p.rZ)(y,b),_,T).then(function(e){he(function(t){return lt(lt({},t),{},{hq_hierarchy_id:[{label:null==e?void 0:e.name,value:null==e?void 0:e.id}],status:ye})})}).catch(function(){}),(0,m.zN)((0,p.rZ)(y,b),_).then(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{value:null==e?void 0:e.code,label:null==e?void 0:e.name}});he(function(e){return lt(lt({},e),{},{portfolio:n})})}).catch(function(){})},[]),a().createElement(Le,null,a().createElement(r.A,null,a().createElement(ot,{setState:_e,searchValue:Ce,selectedFilters:se,setIsFilterOpen:pe,setIsDrawerOpen:k,hasCreateAccess:g,hqDataList:$,hasUpdateAccess:h,getHeadQuarterDataById:Ne,onGeoHandler:function(e){Ne(e).then(function(t){t&&function(e){var t,n={};return n.domain=D,n.endPoint=i.p.GET_GEO_DATA_LIST.replace(\"__HQDATAID__\",e.id),n.endPoint+=\"?page_no=\".concat(0,\"&page_size=\",10),n.customHeaders={\"country-code\":L,Authorization:\"Bearer \".concat(N)},n.triggerLoader=_,null===(t=(0,m.YR)(n))||void 0===t?void 0:t.then(function(e){if((0,p.mN)(e)&&null!=e&&e.data){j(!0),Y(!0);var t=null==e?void 0:e.data,n=function(e){var t,n,r={parentLabel:\"\",ParentData:[],childLabel:\"\",childData:[]},o=function(e){return e.map(function(e){return{label:e.name,value:e.id,checked:!!e.selected,parentId:null==e?void 0:e.parent_id}})};return r.parentLabel=null!==(t=null==e?void 0:e.parent_geo_data_label_name)&&void 0!==t?t:\"\",r.ParentData=e.parent_hq_geo_data_list&&e.parent_hq_geo_data_list.length>0?o(e.parent_hq_geo_data_list):[],r.childLabel=null!==(n=null==e?void 0:e.child_geo_data_label_name)&&void 0!==n?n:\"\",r.childData=e.child_hq_geo_data_list&&e.child_hq_geo_data_list.length>0?o(e.child_hq_geo_data_list):[],r}(t);return Q(n),t}var r;throw C({message:null==e||null===(r=e.data)||void 0===r?void 0:r.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){console.log(e),C({message:e.message,type:\"error\"})})}(e).then(function(e){e&&k(!0)}).catch(function(e){console.log(\"ERR\",e)})}).catch(function(e){console.log(\"ERR\",e)})}}),a().createElement(Me.A,{totalPageCount:ne,totalElements:ae,pageSize:Se,onPageChange:function(e){_e(function(t){return lt(lt({},t),{},{pageNo:Number(e)})}),De(Number(e))},pageNo:we}),de&&a().createElement(We,{onRequestClose:function(){return pe(!1)},isFilterOpen:de,onFilterSubmit:function(e){pe(!1),ue(e)},onClearFilters:function(){ue({}),pe(!1),he(function(e){return lt(lt({},e),{},{filter_by_hq_ids:[],user_uuids:[]})})},filtersOptions:ge,setFiltersOptions:he,selectedFilters:se,setSelectedHierarchyId:Ae,selectedHierarchyId:ve}),I&&a().createElement(Re,{isDrawerOpen:I,onRequestClose:function(e){k(!1),Y(!1),V(null),j(!1),De()},isEditingMode:U,SelectedRowItem:z,DrawerType:Z,isGeoMapping:F,updatedGeoData:W,filtersOptions:ge})))}},61802:(e,t,n)=>{var r=n(62224),o=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,a=/\\\\(\\\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(o,function(e,n,r,o){t.push(r?o.replace(a,\"$1\"):n||e)}),t});e.exports=i},61828:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(39297),a=n(25397),i=n(19617).indexOf,l=n(30421),s=r([].push);e.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&s(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~i(c,n)||s(c,n));return c}},61854:e=>{\"use strict\";e.exports=\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABToAAsAAAAAKtAAABSXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIkABmAAiyoKsTSobwE2AiQDghwLgRAABCAFhEYHhGMbNyVVBDYOIDRjr6uI6kkh+/8ygRtD4jmwCxG6Uc8o3ROFxLQ2sYXYmrIGce1xv8pXhIMxezz3sL/PuB39LLa+YsghSdHkgf9j733/r8LSK4siEzgBRzgeDWhnPOufNl8fcPDH3reZM0lVZW1lhXQdnt9m7/NB5X9CIh06GTjCQl2oCObE6B8uytzGyrW1wVo4l9qrsFaJq2bliMtwkeeVt7sRH53vzr58LxIMUoEKUqxQQbl0AbCv+qumwLUyZ1gSDkbGq/v1VbHlArbkJyvtR8D/zf2bBXYlUDQlELqenclM5r3m3rnp/3m/lD8lykkpPyVCC6iAXvpKlDIsqpW7CtiR3bNCrtC7rtKuq1uoOeVk7MIDYmqaIqQ4q0cPBCllfKoy+H9seR+uAm2m2KiYsbVvTyMASaiI2vMamZG2/zk/lAO53TyAjwnD/ndrRcJJGZSoFNRfcUxGdR39ce41sMK5ruZHkRmZnwO5mD+jbg9TtJC7eBRDYJwgmVQGWjUtWWyatjl/+ENz+p+ZU10yIZSQZcv09EuuPizOMXUkkKrCr7yIVN5ta55eMp7pRicQHg5p2qLjy4805CpFbC7MvnzyobpQpowpxsQGdCEH4xrTGisUqPdtXglNsQy2uApzDJV8VXgGrbtkg7DDJdl5+z80/rq+lKlkekEEhx9m5afD1BIXwdyOuVbmFoQJcXtoE7NZ5baz/m11gXbSXEVxyo3Pfszyl4pzbW4aXn5dF1Oq8lSv3nSqSwEEK1RqW/p26KnnqjfvPv0rSoKaKQ/bgH0PSGEwW64bNsxOS5zxkTMxQ7/BHJJ+Q5uMZhQVyQIMM1RLU5ijMGeBfqyp1jRTqkMtG2IMuRxm0E3vwSiuU5pg36l2zH6mW1r5+oV0WrFlQpqW7rh1VlmMnolYEW9yFdUiPG3je6GM2Fcg/S/a5gx65qW3jTosJKLyKpV2s00F84fadtCmtPuhP+pM7oKmRprW7mRZ+xRT7CNeqt6RXAnNnPcPVRSZPtE6h1WGscmK2+6gqWkTRTuMUnTh/Vzx+MIOVywpknS9YiK3thQNnBa6v4C77z58VAYKiNCjbu9hYrN33YvSL5FBZmOSj0KzubsMIBaIAiVADIgkpQeHGNqbX0LT/CsT8h8p6tSI7uyfY7df1XMq9dee06/wJXnrBu278NqVBfY8HXDKV5V7UROCz6VqS0GGAak4dUK5PoFKg+iM6k7rGppa2jq6evoGhkbRBqdm5hb+JlxZ29jaadk7ODo5G7q4url7GGp5eml5e/iAEOe2Pbe5XFmLE7OSeAL8xsSU6/rfX8/Toi7MK8ZPAUSfjRpB6YM4t1ewMmCVtQBrrAFYZ+3ABqsENlkvtlg5sM2agB1WDeyxZmCfNQIHrAOHrBY4YjXAMevCKasAzlg9cM6qgAvWiUvWgytWB1yzVuCGdeO2YR9fCnohFUIahBCEdAgZEKpBqA6hBoSaEGpBqA2hDoS6EOpBqA+hAYSGEBpBaAyhCYSmEJpBaA6hBYSWEFpBaA2hDYS2ENpBaK8FyeDrgH7SEUInCJ0hdIHQlbmpdINSdIfQA0JPCL0g9GbmoI8WJIMvjLoQgRBlpolB3Ykz85EwlVKA/qerPAB3IH62JJ3VIuke1g1zvVbK10IhyZVTsFphUHEHHUCV5CouQBhKo8qAkiZrK9KG1ZA2H6lHGj6SLhAwqL35fJ8Umgv7U5HxuYw/k8GBEe14mYrJ9KMff0moj0IkoNNH8JgcqdCHirqLpTCBD5VO14b5lPn6qrdOp4sEDD8GfSSdrwgQ0/0kNBrd14cmEYin1ZtF94lPlioQS2vPuN2yL4p3uFwx35ec9XgCv5y82+sd99MM25MRmAtY8J1Px/xQeu5Z0FeTdg2M9SA210wEQkCzer36bkG3pN2lalKd53cBFEIBQ2gN2K1t9Yp6RZ09msuankCIORnXE2QCxoQxA/lWj8IkjLjDoHhw6AGbXyOQWhvmUiUL7q5kJ72VrIQnhdlZtPiiB9ALMDEej87vYxHG6SgFqUelIiQKEA7L5vFANKvXi7LtbjegWlyuGpbt7nHqnLjndh6cCjlNTt7HyogivJJzdDELYte+FkFiLG0e3zMursjHy8onkTjexO8S9wHLU/szyBreoSlFaOhUJXtJanFZwVMLEEE5MKLCsykDpyG2JyY8dcEzbz1QhuTkMgHjuai51l5tC+ER9pADfCJmsz/1aQi0wpeJtwnaUXRqiaWtqwuxHerp6NgFWfcfc6D2C0eApcnWIuzoQWzHgWVnt703oLXV3oxb+s4jtpAWHs5cur29GbX3QtaOQ8JDPUetx3pNH+xuj3V7LR22LmBpbhYoDwqau9tJnGwVQYmDzRbAx5qawr0WISEUpnGWdnNFS2fvQUH54Urxo6jkNNZTWgLrPgHsoka/yK7EbOf7LEcu2B3HrEcvMu/TT0qa3NrRc4C/eJAsD1pZhyRKB9a8vG4JTopqxQsdABYVhjeX3DtgOyQkihc8gNh6IOvyBhy7otLsJVF3DMTFfSqpwvgCPeFyjS+P6AgP6ISoG3mFRvy8K5LvxncVyMOjNU7kOanVqy13eKNFnvBdWEKvt9se0OJSlfQBi9uN2uONxyCrx4PYxtemvboLS3eE10sGu9zGgNuFoBKsmXi7IJ58kM3lAilOYvd6odo2VZdegt6pagLgTXrlLcKeQo/mMgSx51oE3QVu9SUZyIM6tTZOr/GZthWq4NFnUBCYRCAUV5ZnPruAl4OsqUeEzmRAzBJDDvEv22wERpfnMwGjAKuoLMaLCCbEIAuXN/EFF9wjdqiwLtfYswOBu7xaLbQrEFL1i/tcsr0Jl9xZ57TkFW/U0bjJNpcK63fpjsRqW0XCi56ITi3Z6x1zxj3CclylEuyUQdorAce8gfs8cWeRBfmK2eHN1BPGUgvmKkACzHMDBpebjOMESWClBIFjOFk7s21ISTgTgd0qxxwvulyfBta6cbcsXqInUwMeMAJx1kjEQ4SrN+Hx4OAnXvGyXcTtzLjKslte45VRp6IId0Zs2fUEn17eYzL4ZrYz8riOPFRrlXaE9NhUB8RtALE5rwKK5dpDlGl/fAOCrdcfIZi929Jl67H2zmbYLt8nv4KigAmh9kuRvP5KQtQqRR5LP5dG7orojT8sKh9oUefHYoJmyd7QvvGKRvgzMh/gtwkk2O2Ym6pyUW9Qp1xKCprRZtHhAKKTvZksqpvsW/COKt7Pg5RQJb/yKJy15TGIYDG/Hf6tcXe0vUHzLcEoRLhGohBpGxlBFEJLARo4JM5WcgCJASh5GwHoqi4P8iAPczjk2HKsC5BzSeUfC2Y41C7ufORdv5DEcAZgYgUkUUthwQhlzagIzyALMKJoOXHLKoz9L1ZTqIzxqo145XQ2YNXa+Pomi8BdjjfbRcZWq9BTQbRM7HK5w4643V5jkSG/3xV36LJ0tLpFhspxGcxPKOp1jD4XJq1Lez3hJz2Ijte9MFWtTvWFR6i3rzoVWGguBXbfgjhJuZQKJlN2562DZ3Ojg2WIu8HRXA1kzKdcRJmdOExp/sdoHIZZwb1/uL8q3PsvPWnpq7+mfFPhP2w01i9HImJKU75KjPgqeVr+V7/9zntMSVkO7rjS0x3byP460tOZzHsQuDrXrXvwFKwH55J3DSAoxVxBRGE6HRZFOPPIdRimI6KcrrTlCbhJk6ZWp2lMPRgTSFObNN3ANJ19Qbf6MBbGOHDQebCKDzgT9NbB41n17fXP05eYlgz+s3R4KYix6AojIgp1Y/TmhRE65uKU3/etkY24KlsruzpChn+sR7/bu/fBg+C2tvkLEp7MxKd6kx5EpwzG6pLOmpYevLi2Z09HSQmFkqC/o0e/c/vOsYS+vsYXuEQO0oBcgr1sBGe+NEYZL+oMUQaHDudEBcHW39lsx0/kARygr25Ia9JoTNpordpk0oQy2ZqgUvcxBA/RKwnjj/Tv74lcrTrdpNE2G9uVqUrwe1Bjxhk78Ftl+dIF1tQT0OjK0brRFaPHog9r2sZTTwJ+WraiAXL5qRL9v4QW7PEwNskG+P6VuuHdqQL5zaUwTxQfwqXvYlbrl0SzRaeiRl4sH0mSkpWsncdZErFAKGPdH+KijayaWQtfMjgEl7VH9MfYfSCc/6OQW0ddLtjNnB2X+0Mgl0mf1JUsFB64zd0R36i5qHaINUBQjS7LRmjimGfi+a3s81PFUQ/D/ZDd3Cpwn+2XWq2KXN3Q+uGTQpOuVqfjOTBdjU+gF9XKovllteV1/DSZxsPCMCajdtSbJJX03o6YHfdi9u6OgAtQdmGM7Zs7+VXf8xpUkduqATdrOC+QlvncBu4Ur8ic0zg3U2hkc+R/xU80Ttz1FLvpx45gcLJz5hatuNzEbRTzxWPIlUT1mA00P/ZINhds9fYpsMlXGsjfTYucReFOpnTlWDaMIh9Asu7Od8VOh8mUqejm5POK+CmR+bGR+HDYmsMH/hvqf9HvSGj5P4ssg5TF+Qm5+hm8Mv5kGR7r6MjQl8bFlcYrhUlZ68M/Zf4vg2Tpi+c16XdRMoODTyUJlfFlcbGleoUgOUv3RWuERtM2FSJmO1oitA1mae7uIOjZqEJcNzNn7qjZ8vnMKlaxMS9WRxTglxiwK6VmmJUFfaafZw5MvY0/Il9iWSLPzXaS9MC4GeNjZyzJSjNil1jjXwPjp90DUBcVY+mraijWKwJRA4NIOP2T/NyC6hWMxQ47wECVBKlckZ+kb9ysSKuKMnBWVB9+hc82U1d/iyHh/3yKOjujegUH/N2c97FbMGQYAv9/DPUGR52x3nixjq4tyuBuR8L7A1bjC3Zy6w31yxJiDbHLDCjn94l/TzhrOAs0czztN3TDkAGEbH7d0N9QToOSWA819kOoru5Hw4/9hYOAKHUjWoZIC9qa+81znIXcOr2+vFCQ1sCBTyoAJ2XoLKvku3ejemql63e9Nc95KFp/f96uUj9NdpBzzpw3wjUXFxz7ZgVSlisuzT7EMZtjR9UfHZvLlJVFcyj7drc6cuAUb8qOPcm5A9M1gDvVMGxYEHjnjiPxGmrLIdYNG4Z1CanMqWzZVG2A809XpPTg5R3KF59T0tKqqvLza7X7O5kIEPVUUmWsqq8ywPTGKvDoPfz553CIv3DLZcrnfJUX5hekic2zr/7yS+cXzi9P6FLSaV3SJdaQ9YL/VxC0f9kUCI/Oj5x7iD4VLVNPUuZljzPFnFOQ/CmCZMMd406oCCIUGUGJ80psYxINeVC6NkU96TO/PD9Mka3MLQjL0fRTc9RYqBqXm3wx3/zizWmajNCWux9pJlpabt21pFEZPjH08uoa/1kRZuna5p/omv4HSVDj0upqA7JVlChJLt5RQG0cGC/Kmir9///nYDRPxj3lbfyB+KHRe4pbL7eK5WflYqt8iAb/8edsGLlBrkQg04ekMZKz0mjpx/CrrzdIU6RnJakgv37rVj9pXK79TsfgnJIZW7r0hsDPZbKsMz9OmFBZRqOKFXF5t+c0N4+Ov0w/b4rYfLL+j87OqYu4iESytFTou5jT1Lx4O/q9R/T+2bNBO1n1v7Hj3tBe+w3UgN/rv5wc9inmu9oLrDYHhhVhjo0LVeoJaZqqJRsd9kfAHO3vYoTb3PSxsgm+dStrLoEMav0qw98xWQN/ymk1RmN/bV0NdHooyvHYLXWrLtctTF+5CgSlDFZMCSlW2mzK4pApzjTGuHsvVk4JcfqkLU9YXh5fEhtbEl/+xg0fURJbHvcG4cqKy4t7D+MFbvOxM/jnkW49n1qmA+M4Q0plQ8P07BnZMC/hIYkGOuuQwqQoUsiB3KQEFdkBZnPHYzhfh9m8HQORyRVs9kQfBSKTVjuWK+4Z3Txv3okT/evWJyUBB3eOXBYgi80UTjSHxunoHDfu+aBZHu3vY4sY+/w5h73hm8ACqI63VpAw078kMPob5zfyWWjHKqZ5MT+j4wnsyVDnBDl90oFbq3/GdQG+/sVv7BLfvgnCaZPJPSVx48GqT1Hzn4+gNEdlGlYbAgb3bZjPWuZlIkuM8+kTdDQIPzfgoAbD9Aq4DKqEwazBvR2msZSTtLRvazoA5kd4PvxK5CINeczi1zVJ38NwnGGPEpkblj+8WRjlTZm7+lVdBAfYVWDZZYZZ/5FIkvvYlouknrLWzWp4uZ4L14JdZyTbJImSbbElGmU7tq+Llm3Wdx48d+v6/sDvrnNoOlv/hx8KDwJgEv2nyxbMmw8+HkS9yw9AOTrlIduTBlt5TptNid8vRfhcFNEbSZgn/C+Ff76ktA7t2ogx2xMGXgXUhlrfG9xGCoe03Aa+JwkQavMge8kPYitAgRY2v/yxMI52Mlz/AjwwD8AAotIBBMTAghkFsEAbwJB/CKiQf5nRgBB4wAfyX/VBALGRyOE3Q0EINCkZ/A+J9jOkAPkn+iWBOGezvslflBqZhrvpk9fD/UBCAUU7zMdQV3+v6gYnnIfvTHZPKfFQhB/R6BRUy8PtrcOxJ8P5DPwPifYzpPA0cH/iyV0SWjbhmCfs/sUjVAgzDXfb3vPEmf1DEXfToGjd+dDcuj7ce5VcNyhTC+fhu1DBCQkD31Xx9x7RYD2FBLo8/HtkSY5XT0aInKdqVM2VxBT3q2Kx2uwOp+HyN4P599GH6h4MR+PJdDZfLFfrzXa3PxxP58v1dn88X+8PJpRxIU3LdlzPD8IoTqQyuUKp8uW7Wh3Ae0EPGplaEOGtXkI1rQEymBoTQPT1DqN5mnkfzf5oPzpuEsmiouRIoPjWq8dCXJM/N5xYxhJtxdK9wiVTvTFMKmAU7ZXhcjRGuNZLU9dLs+iVxWoa3LO2+u0UEA72U9dkONYENVzSga2LKUOrmUml6pWXWJoeyEu5CrSUIDptU6Sc43aJwUbyfYY95njCq4y09CWVzCWICZ8R6wgp8YbTlNileEkpNeWtrK8l7rfD47yoMo3s3CvH5aiR6INeVVjxpmYB44yWN+rfeGFA67yHtyqIjdSnX6hwnwkDPIFUxMimMpLgyWw3WtmiOKycUwEA\"},62010:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(10350).EXISTS,a=n(79504),i=n(62106),l=Function.prototype,s=a(l.toString),u=/function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/,c=a(u.exec);r&&!o&&i(l,\"name\",{configurable:!0,get:function(){try{return c(u,s(this))[1]}catch(e){return\"\"}}})},62062:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).map;r({target:\"Array\",proto:!0,forced:!n(70597)(\"map\")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},62106:(e,t,n)=>{\"use strict\";var r=n(50283),o=n(24913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},62220:(e,t,n)=>{\"use strict\";n.d(t,{AI:()=>d,DG:()=>s,FG:()=>i,Hh:()=>f,MC:()=>u,Q2:()=>c,Ti:()=>l,To:()=>g,w3:()=>p}),n(28706);var r=n(8085),o=n(99478),a=n(13075),i=function(e){return(0,a.AT)(\"get\",e,!0)},l=function(e){return(0,a.AT)(\"post\",e,!1)},s=function(e){return(0,a.AT)(\"put\",e,!1)},u=function(e){return(0,a.AT)(\"get\",e,!0)},c=function(e){return(0,a.AT)(\"get\",e,!0)},d=function(e,t,n){var i,l,s={};return s.domain=t,s.endPoint=\"\".concat(r.p.GET_EVENTS_CONFIG_DATA,\"?keys=\").concat(o.Rk.USER_CONFIGURATION_KEY,\"&moduleName=\").concat(o.Rk.USER_MODULE_NAME),s.customHeaders={\"bu-id\":null==e||null===(i=e.selectedBusinessUnit)||void 0===i?void 0:i.bu_id,\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,a.AT)(\"get\",s,!1)},p=function(e,t,n,o,i){var l,s,u,c,d={};return d.domain=t,d.endPoint=\"\".concat(r.p.GET_FIRST_LEVEL_FILTER_LIST,\"?sales_hierarchy_id=\").concat(o,\"&portfolio_code=\").concat(i||\"DEFAULT\"),d.customHeaders={\"bu-id\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l?void 0:l.bu_id,\"role-id\":null==e||null===(s=e.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId,\"user-id\":null==e||null===(u=e.UserDetails)||void 0===u?void 0:u.user_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"country-code\":null==e||null===(c=e.selectedCountry)||void 0===c?void 0:c.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},d.triggerLoader=n,(0,a.AT)(\"get\",d,!1)},f=function(e,t,n){var o,i={};return i.domain=t,i.endPoint=r.p.GET_MDO_VALIDATIONS,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,a.AT)(\"get\",i,!1)},g=function(e,t,n,o){var i,l,s={};return s.triggerLoader=n,s.payLoad=o,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.endPoint=r.p.CLEAR_END_DATE,s.domain=t,(0,a.AT)(\"post\",s,!0)}},62222:(e,t,n)=>{\"use strict\";e.exports=n.p+\"6f78c804f618ebf09530.eot\"},62224:(e,t,n)=>{var r=n(50104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},62480:(e,t,n)=>{\"use strict\";n(55081)},62529:e=>{\"use strict\";e.exports=function(e,t){return{value:e,done:t}}},62613:(e,t,n)=>{var r=n(56903),o=n(6791),a=n(98849),i=n(1275),l=n(21672).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});\"_\"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},62642:(e,t,n)=>{\"use strict\";var r=n(37720),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:\"utf-8\",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:\"&\",depth:5,duplicates:\"combine\",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(e){return e.replace(/&#(\\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&\"string\"==typeof e&&t.comma&&e.indexOf(\",\")>-1)return e.split(\",\");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError(\"Array limit exceeded. Only \"+t.arrayLimit+\" element\"+(1===t.arrayLimit?\"\":\"s\")+\" allowed in an array.\");return e},u=function(e,t,n,a){if(e){var i=n.allowDots?e.replace(/\\.([^.[]+)/g,\"[$1]\"):e,l=/(\\[[^[\\]]*])/g,u=n.depth>0&&/(\\[[^[\\]]*])/.exec(i),c=u?i.slice(0,u.index):i,d=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var p=0;n.depth>0&&null!==(u=l.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError(\"Input depth exceeded depth option of \"+n.depth+\" and strictDepth is true\");d.push(\"[\"+i.slice(u.index)+\"]\")}return function(e,t,n,o){var a=0;if(e.length>0&&\"[]\"===e[e.length-1]){var i=e.slice(0,-1).join(\"\");a=Array.isArray(t)&&t[i]?t[i].length:0}for(var l=o?t:s(t,n,a),u=e.length-1;u>=0;--u){var c,d=e[u];if(\"[]\"===d&&n.parseArrays)c=n.allowEmptyArrays&&(\"\"===l||n.strictNullHandling&&null===l)?[]:r.combine([],l);else{c=n.plainObjects?{__proto__:null}:{};var p=\"[\"===d.charAt(0)&&\"]\"===d.charAt(d.length-1)?d.slice(1,-1):d,f=n.decodeDotInKeys?p.replace(/%2E/g,\".\"):p,g=parseInt(f,10);n.parseArrays||\"\"!==f?!isNaN(g)&&d!==f&&String(g)===f&&g>=0&&n.parseArrays&&g<=n.arrayLimit?(c=[])[g]=l:\"__proto__\"!==f&&(c[f]=l):c={0:l}}l=c}return l}(d,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw new TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.decodeDotInKeys&&\"boolean\"!=typeof e.decodeDotInKeys)throw new TypeError(\"`decodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.decoder&&void 0!==e.decoder&&\"function\"!=typeof e.decoder)throw new TypeError(\"Decoder has to be a function.\");if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw new TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");if(void 0!==e.throwOnLimitExceeded&&\"boolean\"!=typeof e.throwOnLimitExceeded)throw new TypeError(\"`throwOnLimitExceeded` option must be a boolean\");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if(\"combine\"!==n&&\"first\"!==n&&\"last\"!==n)throw new TypeError(\"The duplicates option must be either combine, first, or last\");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:\"boolean\"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:\"boolean\"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:\"number\"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:\"boolean\"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:\"boolean\"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:\"function\"==typeof e.decoder?e.decoder:i.decoder,delimiter:\"string\"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:\"number\"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:\"boolean\"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:\"number\"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:\"boolean\"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:\"boolean\"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:\"boolean\"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(\"\"===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var c=\"string\"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\\?/,\"\"):e;u=u.replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,t.throwOnLimitExceeded?c+1:c);if(t.throwOnLimitExceeded&&d.length>c)throw new RangeError(\"Parameter limit exceeded. Only \"+c+\" parameter\"+(1===c?\"\":\"s\")+\" allowed.\");var p,f=-1,g=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf(\"utf8=\")&&(\"utf8=%E2%9C%93\"===d[p]?g=\"utf-8\":\"utf8=%26%2310003%3B\"===d[p]&&(g=\"iso-8859-1\"),f=p,p=d.length);for(p=0;p<d.length;++p)if(p!==f){var h,m,v=d[p],A=v.indexOf(\"]=\"),y=-1===A?v.indexOf(\"=\"):A+1;-1===y?(h=t.decoder(v,i.decoder,g,\"key\"),m=t.strictNullHandling?null:\"\"):(h=t.decoder(v.slice(0,y),i.decoder,g,\"key\"),m=r.maybeMap(s(v.slice(y+1),t,a(n[h])?n[h].length:0),function(e){return t.decoder(e,i.decoder,g,\"value\")})),m&&t.interpretNumericEntities&&\"iso-8859-1\"===g&&(m=l(String(m))),v.indexOf(\"[]=\")>-1&&(m=a(m)?[m]:m);var E=o.call(n,h);E&&\"combine\"===t.duplicates?n[h]=r.combine(n[h],m):E&&\"last\"!==t.duplicates||(n[h]=m)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(c),f=0;f<p.length;++f){var g=p[f],h=u(g,c[g],n,\"string\"==typeof e);d=r.merge(d,h,n)}return!0===n.allowSparse?d:r.compact(d)}},62718:(e,t,n)=>{\"use strict\";e.exports=n.p+\"ff3db90806ce577dab24.svg\"},62809:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>C}),n(28706),n(88431),n(2008),n(64346),n(48598),n(62062),n(59089),n(23288),n(62010),n(26099),n(27495),n(38781),n(25440);var r=n(72048),o=n(2071),a=n(73896),i=n(68864),l=n(27558),s=n(14073),u=n(28161),c=n(71543),d=n(86990),p=n(2543),f=n.n(p),g=n(81970),h=n.n(g),m=n(11848),v=n(6398),A=n(17630),y=(0,m.Ay)(u.A)(function(e){var t=e.theme;return{\"& .MuiInputBase-root\":{width:\"calc(100% - 10px)\",height:40,border:\"1px solid \".concat(t.palette.grey[300]),color:\"\".concat(t.palette.grey[500],\" !important\"),font:\"normal normal 400 14px NotoSans-Regular !important\",\"&.Mui-focused\":{border:\"1px solid \".concat(t.palette.grey[300])},\"&:focus-visible\":{outline:\"none\"},\"& .MuiSelect-select \":{padding:\"0 10px\",\"& .defaultPlaceholder\":{color:\"#757575\"}},\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .MuiSelect-outlined\":{lineHeight:t.spacing(5)},\"&.Mui-disabled \":{\"& .MuiSelect-select\":{cursor:\"not-allowed\"}}}}}),E=(0,v.A)({multiSelect:{\"&.MuiPaper-root\":{backgroundColor:A.w.palette.secondary.dark,borderRadius:A.w.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",maxWidth:\"100px\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiMenu-list\":{maxHeight:\"200px\",minHeight:\"120px\"}},\"& ul\":{maxHeight:\"calc(100vh - 520px)\",\"& li\":{padding:\"6px 4px\",\"& .css-1uduoix-MuiButtonBase-root-MuiCheckbox-root.Mui-checked\":{color:A.w.palette.success.main},\"& p\":{font:\"normal normal 400 14px NotoSans-Regular\",color:A.w.palette.info.dark,textWrap:\"wrap\"}},\"& .MuiFormControlLabel-root\":{width:\"100%\",marginLeft:\"0px\",marginRight:\"0px\",\"& .MuiCheckbox-root\":{alignSelf:\"flex-start\"}}}},selectExpandMore:{position:\"absolute\",right:\"6px\",fontSize:20}}),b=0,_=function(e){var t=e.name,n=e.options,p=e.selectedOptions,m=e.labelKey,v=e.onCheckboxChange,A=e.isDisabled,_=e.defaultLabel,C=e.isSortReq,w=e.selectMaxOptions,S=e.placeHolder,T=E(),O=(0,g.useMemo)(function(){var e=\"Select\";return S?e=\"Select \".concat(S):_&&(e=\"\".concat(e,\" \").concat(t.replace(/^./,function(e){return e.toUpperCase()}))),e},[_]),D=(0,g.useMemo)(function(){return C?f().sortBy(n,\"label\"):n},[n]),R=function(e){var t,r,o,a=null!==(t=null===(r=n.filter(function(t){var n;return(null==t||null===(n=t.label)||void 0===n?void 0:n.toLowerCase())===e.target.value.toLowerCase()}))||void 0===r||null===(r=r[0])||void 0===r?void 0:r.value)&&void 0!==t?t:\"\",i=n.map(function(e){return e.value===a&&(e.checked?e.checked=!1:e.checked=!0),e}).filter(function(e){return e.checked});o=n.filter(function(e){return\"Select All\"!==e.value}).every(function(e){return e.checked})?n.map(function(e){return\"Select All\"===e.value&&(e.checked=!0),e}):i.map(function(e){return\"Select All\"===e.value&&(e.checked=!1),e}),v(o)},N=function(){var e=n.map(function(e){return e.checked=!1,e});v(e)};return h().createElement(y,null,h().createElement(o.A,{key:t,name:t,multiple:!0,value:0===p.length?[_]:p.filter(function(e){return\"Select All\"!==e}),MenuProps:{classes:{paper:T.multiSelect}},renderValue:function(e){return Array.isArray(e)&&1===e.length&&\"string\"==typeof e[0]&&e[0].toLowerCase()===_.toLowerCase()?h().createElement(\"span\",{className:\"defaultPlaceholder\"},O):e.join(\",\")},disabled:null!=A&&A,IconComponent:function(){return h().createElement(r.A,{sx:{position:\"absolute\",right:\"3px\"}})}},!w&&(null==n?void 0:n.length)>0&&h().createElement(a.A,{value:\"Select All\"},h().createElement(i.A,{control:h().createElement(l.A,{sx:{p:.5},size:\"small\",name:\"Select All\",value:\"Select All\",checked:n.every(function(e){return e.checked}),onChange:function(e){var t,r;t=n.filter(function(t){return t.label.toLowerCase()!==e.target.value.toLowerCase()}).every(function(e){return e.checked}),r=n.map(function(e){return e.checked=!t,e}),v(r)}}),label:h().createElement(s.A,{style:{lineHeight:\"unset\"},fontSize:14},\"Select All\")})),D.length>0&&D.map(function(e,t){return h().createElement(u.A,{key:e[m]},h().createElement(a.A,{disabled:(r=e.checked,!r&&(null==D||null===(o=D.filter(function(e){return null==e?void 0:e.checked}))||void 0===o?void 0:o.length)>=w),value:e[m]},h().createElement(i.A,{control:h().createElement(l.A,{key:\"\".concat(\"_\"+Date.now().toString(36)+\"_\"+ ++b).concat(e.value),sx:{p:.5},size:\"small\",name:e.label,value:e[m],checked:e.checked,onChange:R}),label:h().createElement(s.A,{style:{lineHeight:\"unset\"},fontSize:14},e[m])})),t===n.length-1&&h().createElement(h().Fragment,null,h().createElement(c.A,null),h().createElement(d.A,{fullWidth:!0,onClick:N},h().createElement(s.A,{align:\"center\",variant:\"subtitle2\",color:\"black\"},\"Clear all\"))));var r,o})))};const C=h().memo(_)},62953:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(67400),a=n(79296),i=n(23792),l=n(66699),s=n(10687),u=n(78227)(\"iterator\"),c=i.values,d=function(e,t){if(e){if(e[u]!==c)try{l(e,u,c)}catch(t){e[u]=c}if(s(e,t,!0),o[t])for(var n in i)if(e[n]!==i[n])try{l(e,n,i[n])}catch(t){e[n]=i[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(a,\"DOMTokenList\")},63021:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1f73a68242b8b32eb5ec.eot\"},63040:(e,t,n)=>{var r=n(21549),o=n(80079),a=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},63072:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},63147:(e,t,n)=>{\"use strict\";e.exports=n.p+\"59032f2cb9b8b39722d7.eot\"},63164:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ko\",{months:\"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월\".split(\"_\"),monthsShort:\"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월\".split(\"_\"),weekdays:\"일요일_월요일_화요일_수요일_목요일_금요일_토요일\".split(\"_\"),weekdaysShort:\"일_월_화_수_목_금_토\".split(\"_\"),weekdaysMin:\"일_월_화_수_목_금_토\".split(\"_\"),longDateFormat:{LT:\"A h:mm\",LTS:\"A h:mm:ss\",L:\"YYYY.MM.DD.\",LL:\"YYYY년 MMMM D일\",LLL:\"YYYY년 MMMM D일 A h:mm\",LLLL:\"YYYY년 MMMM D일 dddd A h:mm\",l:\"YYYY.MM.DD.\",ll:\"YYYY년 MMMM D일\",lll:\"YYYY년 MMMM D일 A h:mm\",llll:\"YYYY년 MMMM D일 dddd A h:mm\"},calendar:{sameDay:\"오늘 LT\",nextDay:\"내일 LT\",nextWeek:\"dddd LT\",lastDay:\"어제 LT\",lastWeek:\"지난주 dddd LT\",sameElse:\"L\"},relativeTime:{future:\"%s 후\",past:\"%s 전\",s:\"몇 초\",ss:\"%d초\",m:\"1분\",mm:\"%d분\",h:\"한 시간\",hh:\"%d시간\",d:\"하루\",dd:\"%d일\",M:\"한 달\",MM:\"%d달\",y:\"일 년\",yy:\"%d년\"},dayOfMonthOrdinalParse:/\\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\"일\";case\"M\":return e+\"월\";case\"w\":case\"W\":return e+\"주\";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return\"오후\"===e},meridiem:function(e,t,n){return e<12?\"오전\":\"오후\"}})}(n(95093))},63193:(e,t,n)=>{e.exports={default:n(58489),__esModule:!0}},63278:(e,t,n)=>{var r=n(64194);e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==r(e)?e.split(\"\"):Object(e)}},63345:e=>{e.exports=function(){return[]}},63425:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},63545:(e,t,n)=>{\"use strict\";n.d(t,{D0:()=>un,RL:()=>cn,GS:()=>sn});var r=n(81970),o=n.n(r);function a(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}const i=a(\"LaunchDarklyUnexpectedResponseError\"),l=a(\"LaunchDarklyInvalidEnvironmentIdError\"),s=a(\"LaunchDarklyInvalidUserError\"),u=a(\"LaunchDarklyInvalidEventKeyError\"),c=a(\"LaunchDarklyInvalidArgumentError\"),d=a(\"LaunchDarklyFlagFetchError\");for(var p={LDUnexpectedResponseError:i,LDInvalidEnvironmentIdError:l,LDInvalidUserError:s,LDInvalidEventKeyError:u,LDInvalidArgumentError:c,LDInvalidDataError:a(\"LaunchDarklyInvalidDataError\"),LDFlagFetchError:d,LDTimeoutError:a(\"LaunchDarklyTimeoutError\"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},f=[],g=[],h=(\"undefined\"!=typeof Uint8Array&&Uint8Array,\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"),m=0;m<64;++m)f[m]=h[m],g[h.charCodeAt(m)]=m;function v(e,t,n){for(var r,o,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(f[(o=r)>>18&63]+f[o>>12&63]+f[o>>6&63]+f[63&o]);return a.join(\"\")}g[\"-\".charCodeAt(0)]=62,g[\"_\".charCodeAt(0)]=63;var A=Array.isArray,y=Object.keys,E=Object.prototype.hasOwnProperty,b=function e(t,n){if(t===n)return!0;if(t&&n&&\"object\"==typeof t&&\"object\"==typeof n){var r,o,a,i=A(t),l=A(n);if(i&&l){if((o=t.length)!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=l)return!1;var s=t instanceof Date,u=n instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var p=y(t);if((o=p.length)!==y(n).length)return!1;for(r=o;0!==r--;)if(!E.call(n,p[r]))return!1;for(r=o;0!==r--;)if(!e(t[a=p[r]],n[a]))return!1;return!0}return t!=t&&n!=n};const _=[\"key\",\"ip\",\"country\",\"email\",\"firstName\",\"lastName\",\"avatar\",\"name\"];function C(e){return function(e){for(var t,n=e.length,r=n%3,o=[],a=16383,i=0,l=n-r;i<l;i+=a)o.push(v(e,i,i+a>l?l:i+a));return 1===r?(t=e[n-1],o.push(f[t>>2]+f[t<<4&63]+\"==\")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(f[t>>10]+f[t>>4&63]+f[t<<2&63]+\"=\")),o.join(\"\")}(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(unescape(encodeURIComponent(e))))}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var S,T={appendUrlPath:function(e,t){return(e.endsWith(\"/\")?e.substring(0,e.length-1):e)+(t.startsWith(\"/\")?\"\":\"/\")+t},base64URLEncode:function(e){return C(e).replace(/=/g,\"\").replace(/\\+/g,\"-\").replace(/\\//g,\"_\")},btoa:C,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return b(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){const t=e.version||\"?\";return e.userAgent+\"/\"+t},objectHasOwnProperty:w,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||_.forEach(n=>{const r=e[n];void 0!==r&&\"string\"!=typeof r&&(t=t||{...e},t[n]=String(r))}),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)w(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)w(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n},once:function(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}},O=new Uint8Array(16);function D(){if(!S&&!(S=\"undefined\"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||\"undefined\"!=typeof msCrypto&&\"function\"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return S(O)}var R=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function N(e){return\"string\"==typeof e&&R.test(e)}for(var L,P,M=[],x=0;x<256;++x)M.push((x+256).toString(16).substr(1));function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+\"-\"+M[e[t+4]]+M[e[t+5]]+\"-\"+M[e[t+6]]+M[e[t+7]]+\"-\"+M[e[t+8]]+M[e[t+9]]+\"-\"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]).toLowerCase();if(!N(n))throw TypeError(\"Stringified UUID is invalid\");return n}var k=0,B=0;function F(e){if(!N(e))throw TypeError(\"Invalid UUID\");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function j(e,t,n){function r(e,r,o,a){if(\"string\"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),\"string\"==typeof r&&(r=F(r)),16!==r.length)throw TypeError(\"Namespace must be array-like (16 iterable integer values, 0-255)\");var i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),(i=n(i))[6]=15&i[6]|t,i[8]=63&i[8]|128,o){a=a||0;for(var l=0;l<16;++l)o[a+l]=i[l];return o}return I(i)}try{r.name=e}catch(e){}return r.DNS=\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\",r.URL=\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\",r}function H(e){return 14+(e+64>>>9<<4)+1}function U(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Y(e,t,n,r,o,a){return U((i=U(U(t,e),U(r,a)))<<(l=o)|i>>>32-l,n);var i,l}function G(e,t,n,r,o,a,i){return Y(t&n|~t&r,e,t,o,a,i)}function z(e,t,n,r,o,a,i){return Y(t&r|n&~r,e,t,o,a,i)}function V(e,t,n,r,o,a,i){return Y(t^n^r,e,t,o,a,i)}function q(e,t,n,r,o,a,i){return Y(n^(t|~r),e,t,o,a,i)}var W=j(\"v3\",48,function(e){if(\"string\"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=\"0123456789abcdef\",o=0;o<n;o+=8){var a=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[H(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,i=0;i<e.length;i+=16){var l=n,s=r,u=o,c=a;n=G(n,r,o,a,e[i],7,-680876936),a=G(a,n,r,o,e[i+1],12,-389564586),o=G(o,a,n,r,e[i+2],17,606105819),r=G(r,o,a,n,e[i+3],22,-1044525330),n=G(n,r,o,a,e[i+4],7,-176418897),a=G(a,n,r,o,e[i+5],12,1200080426),o=G(o,a,n,r,e[i+6],17,-1473231341),r=G(r,o,a,n,e[i+7],22,-45705983),n=G(n,r,o,a,e[i+8],7,1770035416),a=G(a,n,r,o,e[i+9],12,-1958414417),o=G(o,a,n,r,e[i+10],17,-42063),r=G(r,o,a,n,e[i+11],22,-1990404162),n=G(n,r,o,a,e[i+12],7,1804603682),a=G(a,n,r,o,e[i+13],12,-40341101),o=G(o,a,n,r,e[i+14],17,-1502002290),n=z(n,r=G(r,o,a,n,e[i+15],22,1236535329),o,a,e[i+1],5,-165796510),a=z(a,n,r,o,e[i+6],9,-1069501632),o=z(o,a,n,r,e[i+11],14,643717713),r=z(r,o,a,n,e[i],20,-373897302),n=z(n,r,o,a,e[i+5],5,-701558691),a=z(a,n,r,o,e[i+10],9,38016083),o=z(o,a,n,r,e[i+15],14,-660478335),r=z(r,o,a,n,e[i+4],20,-405537848),n=z(n,r,o,a,e[i+9],5,568446438),a=z(a,n,r,o,e[i+14],9,-1019803690),o=z(o,a,n,r,e[i+3],14,-187363961),r=z(r,o,a,n,e[i+8],20,1163531501),n=z(n,r,o,a,e[i+13],5,-1444681467),a=z(a,n,r,o,e[i+2],9,-51403784),o=z(o,a,n,r,e[i+7],14,1735328473),n=V(n,r=z(r,o,a,n,e[i+12],20,-1926607734),o,a,e[i+5],4,-378558),a=V(a,n,r,o,e[i+8],11,-2022574463),o=V(o,a,n,r,e[i+11],16,1839030562),r=V(r,o,a,n,e[i+14],23,-35309556),n=V(n,r,o,a,e[i+1],4,-1530992060),a=V(a,n,r,o,e[i+4],11,1272893353),o=V(o,a,n,r,e[i+7],16,-155497632),r=V(r,o,a,n,e[i+10],23,-1094730640),n=V(n,r,o,a,e[i+13],4,681279174),a=V(a,n,r,o,e[i],11,-358537222),o=V(o,a,n,r,e[i+3],16,-722521979),r=V(r,o,a,n,e[i+6],23,76029189),n=V(n,r,o,a,e[i+9],4,-640364487),a=V(a,n,r,o,e[i+12],11,-421815835),o=V(o,a,n,r,e[i+15],16,530742520),n=q(n,r=V(r,o,a,n,e[i+2],23,-995338651),o,a,e[i],6,-198630844),a=q(a,n,r,o,e[i+7],10,1126891415),o=q(o,a,n,r,e[i+14],15,-1416354905),r=q(r,o,a,n,e[i+5],21,-57434055),n=q(n,r,o,a,e[i+12],6,1700485571),a=q(a,n,r,o,e[i+3],10,-1894986606),o=q(o,a,n,r,e[i+10],15,-1051523),r=q(r,o,a,n,e[i+1],21,-2054922799),n=q(n,r,o,a,e[i+8],6,1873313359),a=q(a,n,r,o,e[i+15],10,-30611744),o=q(o,a,n,r,e[i+6],15,-1560198380),r=q(r,o,a,n,e[i+13],21,1309151649),n=q(n,r,o,a,e[i+4],6,-145523070),a=q(a,n,r,o,e[i+11],10,-1120210379),o=q(o,a,n,r,e[i+2],15,718787259),r=q(r,o,a,n,e[i+9],21,-343485551),n=U(n,l),r=U(r,s),o=U(o,u),a=U(a,c)}return[n,r,o,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(H(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}),Q=W;function K(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function $(e,t){return e<<t|e>>>32-t}var X=j(\"v5\",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(\"string\"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,i=Math.ceil(a/16),l=new Array(i),s=0;s<i;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];l[s]=u}l[i-1][14]=8*(e.length-1)/Math.pow(2,32),l[i-1][14]=Math.floor(l[i-1][14]),l[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var p=new Uint32Array(80),f=0;f<16;++f)p[f]=l[d][f];for(var g=16;g<80;++g)p[g]=$(p[g-3]^p[g-8]^p[g-14]^p[g-16],1);for(var h=n[0],m=n[1],v=n[2],A=n[3],y=n[4],E=0;E<80;++E){var b=Math.floor(E/20),_=$(h,5)+K(b,m,v,A)+y+t[b]+p[E]>>>0;y=A,A=v,v=$(m,30)>>>0,m=h,h=_}n[0]=n[0]+h>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+A>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),J=X,Z=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,o=t||new Array(16),a=(e=e||{}).node||L,i=void 0!==e.clockseq?e.clockseq:P;if(null==a||null==i){var l=e.random||(e.rng||D)();null==a&&(a=L=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==i&&(i=P=16383&(l[6]<<8|l[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:B+1,c=s-k+(u-B)/1e4;if(c<0&&void 0===e.clockseq&&(i=i+1&16383),(c<0||s>k)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");k=s,B=u,P=i;var d=(1e4*(268435455&(s+=122192928e5))+u)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var p=s/4294967296*1e4&268435455;o[r++]=p>>>8&255,o[r++]=255&p,o[r++]=p>>>24&15|16,o[r++]=p>>>16&255,o[r++]=i>>>8|128,o[r++]=255&i;for(var f=0;f<6;++f)o[r+f]=a[f];return t||I(o)},v3:Q,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||D)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return I(r)},v5:J,NIL:\"00000000-0000-0000-0000-000000000000\",version:function(e){if(!N(e))throw TypeError(\"Invalid UUID\");return parseInt(e.substr(14,1),16)},validate:N,stringify:I,parse:F});const ee=[\"debug\",\"info\",\"warn\",\"error\",\"none\"];var te={commonBasicLogger:function(e,t){if(e&&e.destination&&\"function\"!=typeof e.destination)throw new Error(\"destination for basicLogger was set to a non-function\");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n(\"log\"),n(\"info\"),n(\"warn\"),n(\"error\")],o=!(!e||!e.destination),a=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:\"[LaunchDarkly] \";let i=1;if(e&&e.level)for(let t=0;t<ee.length;t++)ee[t]===e.level&&(i=t);function l(e,n,i){if(i.length<1)return;let l;const s=o?n+\": \"+a:a;if(1!==i.length&&t){const e=[...i];e[0]=s+e[0],l=t(...e)}else l=s+i[0];try{r[e](l)}catch(e){console&&console.log&&console.log(\"[LaunchDarkly] Configured logger's \"+n+\" method threw an exception: \"+e)}}const s={};for(let e=0;e<ee.length;e++){const t=ee[e];if(\"none\"!==t)if(e<i)s[t]=()=>{};else{const n=e;s[t]=function(){l(n,t,arguments)}}}return s},validateLogger:function(e){ee.forEach(t=>{if(\"none\"!==t&&(!e[t]||\"function\"!=typeof e[t]))throw new Error(\"Provided logger instance must support logger.\"+t+\"(...) method\")})}};function ne(e){return e&&e.message?e.message:\"string\"==typeof e||e instanceof String?e:JSON.stringify(e)}const re=\" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.\";var oe={bootstrapInvalid:function(){return\"LaunchDarkly bootstrap data is not available because the back end could not read the flags.\"},bootstrapOldFormat:function(){return\"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly.\"+re},clientInitialized:function(){return\"LaunchDarkly client initialized\"},clientNotReady:function(){return\"LaunchDarkly client is not ready\"},debugEnqueueingEvent:function(e){return'enqueueing \"'+e+'\" event'},debugPostingDiagnosticEvent:function(e){return\"sending diagnostic event (\"+e.kind+\")\"},debugPostingEvents:function(e){return\"sending \"+e+\" events\"},debugStreamDelete:function(e){return'received streaming deletion for flag \"'+e+'\"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag \"'+e+'\" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag \"'+e+'\"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag \"'+e+'\" but ignored due to version check'},debugStreamPing:function(){return\"received ping message from stream\"},debugPolling:function(e){return\"polling for feature flags at \"+e},debugStreamPut:function(){return\"received streaming update for all flags\"},deprecated:function(e,t){return t?'\"'+e+'\" is deprecated, please use \"'+t+'\"':'\"'+e+'\" is deprecated'},environmentNotFound:function(){return\"Environment not found. Double check that you specified a valid environment/client-side ID.\"+re},environmentNotSpecified:function(){return\"No environment/client-side ID was specified.\"+re},errorFetchingFlags:function(e){return\"Error fetching flag settings: \"+ne(e)},eventCapacityExceeded:function(){return\"Exceeded event queue capacity. Increase capacity to avoid dropping events.\"},eventWithoutContext:function(){return\"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript\"},httpErrorMessage:function(e,t,n){return\"Received error \"+e+(401===e?\" (invalid SDK key)\":\"\")+\" for \"+t+\" - \"+(p.isHttpErrorRecoverable(e)?n:\"giving up permanently\")},httpUnavailable:function(){return\"Cannot make HTTP requests in this environment.\"+re},identifyDisabled:function(){return\"identify() has no effect here; it must be called on the main client instance\"},inspectorMethodError:(e,t)=>`an inspector: \"${t}\" of type: \"${e}\" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got \"'+e+'\"'},invalidData:function(){return\"Invalid data received from LaunchDarkly; connection may have been interrupted\"},invalidInspector:(e,t)=>`an inspector: \"${t}\" of an invalid type (${e}) was configured`,invalidKey:function(){return\"Event key must be a string\"},invalidMetricValue:e=>`The track function was called with a non-numeric \"metricValue\" (${e}), only numeric metric values are supported.`,invalidContext:function(){return\"Invalid context specified.\"+re},invalidTagValue:e=>`Config option \"${e}\" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return\"local storage is unavailable: \"+ne(e)},networkError:e=>\"network error\"+(e?\" (\"+e+\")\":\"\"),optionBelowMinimum:(e,t,n)=>'Config option \"'+e+'\" was set to '+t+\", changing to minimum value of \"+n,streamClosing:function(){return\"Closing stream connection\"},streamConnecting:function(e){return\"Opening stream connection to \"+e},streamError:function(e,t){return\"Error on stream connection: \"+ne(e)+\", will continue retrying after \"+t+\" milliseconds.\"},tagValueTooLong:e=>`Value of \"${e}\" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event \"'+e+'\" does not exist'},unknownOption:e=>'Ignoring unknown config option \"'+e+'\"',contextNotSpecified:function(){return\"No context specified.\"+re},unrecoverableStreamError:e=>`Error on stream connection ${ne(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option \"'+e+'\" should be of type '+t+\", got \"+n+\", using default value\",wrongOptionTypeBoolean:(e,t)=>'Config option \"'+e+'\" should be a boolean, got '+t+\", converting to boolean\"};const{validateLogger:ae}=te,ie={baseUrl:{default:\"https://app.launchdarkly.com\"},streamUrl:{default:\"https://clientstream.launchdarkly.com\"},eventsUrl:{default:\"https://events.launchdarkly.com\"},sendEvents:{default:!0},streaming:{type:\"boolean\"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:\"function\"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:\"string|object\"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:\"string\"},wrapperVersion:{type:\"string\"},stateProvider:{type:\"object\"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ue(`${e}.id`,t.id,n)),t.version&&(r.version=ue(`${e}.version`,t.version,n)),r}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},le=/^(\\w|\\.|-)+$/;function se(e){return e&&e.replace(/\\/+$/,\"\")}function ue(e,t,n){if(\"string\"==typeof t&&t.match(le)){if(!(t.length>64))return t;n.warn(oe.tagValueTooLong(e))}else n.warn(oe.invalidTagValue(e))}var ce={baseOptionDefs:ie,validate:function(e,t,n,r){const o=T.extend({logger:{default:r}},ie,n),a={};function i(e){T.onNextTick(()=>{t&&t.maybeReportError(new p.LDInvalidArgumentError(e))})}let l=T.extend({},e||{});return function(e){const t=e;Object.keys(a).forEach(e=>{if(void 0!==t[e]){const n=a[e];r&&r.warn(oe.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}})}(l),l=function(e){const t=T.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(l),l=function(e){const t=T.extend({},e),n=e=>{if(null===e)return\"any\";if(void 0===e)return;if(Array.isArray(e))return\"array\";const t=typeof e;return\"boolean\"===t||\"string\"===t||\"number\"===t||\"function\"===t?t:\"object\"};return Object.keys(e).forEach(a=>{const l=e[a];if(null!=l){const s=o[a];if(void 0===s)i(oe.unknownOption(a));else{const o=s.type||n(s.default),u=s.validator;if(u){const n=u(a,e[a],r);void 0!==n?t[a]=n:delete t[a]}else if(\"any\"!==o){const e=o.split(\"|\"),r=n(l);e.indexOf(r)<0?\"boolean\"===o?(t[a]=!!l,i(oe.wrongOptionTypeBoolean(a,r))):(i(oe.wrongOptionType(a,o,r)),t[a]=s.default):\"number\"===r&&void 0!==s.minimum&&l<s.minimum&&(i(oe.optionBelowMinimum(a,l,s.minimum)),t[a]=s.minimum)}}}}),t.baseUrl=se(t.baseUrl),t.streamUrl=se(t.streamUrl),t.eventsUrl=se(t.eventsUrl),t}(l),ae(l.logger),l},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t[\"application-id\"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t[\"application-version\"]=[e.application.version])),t}};const{getLDUserAgentString:de}=T;var pe={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||\"User-Agent\"]=de(e),t&&t.wrapperName&&(n[\"X-LaunchDarkly-Wrapper\"]=t.wrapperVersion?t.wrapperName+\"/\"+t.wrapperVersion:t.wrapperName);const r=ce.getTags(t),o=Object.keys(r);return o.length&&(n[\"x-launchdarkly-tags\"]=o.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(\" \")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};const{v1:fe}=Z,{getLDHeaders:ge,transformHeaders:he}=pe;var me=function(e,t,n){const r=T.extend({\"Content-Type\":\"application/json\"},ge(e,n)),o={sendEvents:(t,o,a)=>{if(!e.httpRequest)return Promise.resolve();const i=JSON.stringify(t),l=a?null:fe();return function t(s){const u=a?r:T.extend({},r,{\"X-LaunchDarkly-Event-Schema\":\"4\",\"X-LaunchDarkly-Payload-ID\":l});return e.httpRequest(\"POST\",o,he(u,n),i).promise.then(e=>{if(e)return e.status>=400&&p.isHttpErrorRecoverable(e.status)&&s?t(!1):function(e){const t={status:e.status},n=e.header(\"date\");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>s?t(!1):Promise.reject())}(!0).catch(()=>{})}};return o},ve=function e(t,n=[]){if(null===t||\"object\"!=typeof t)return JSON.stringify(t);if(n.includes(t))throw new Error(\"Cycle detected\");return Array.isArray(t)?`[${t.map(r=>e(r,[...n,t])).map(e=>void 0===e?\"null\":e).join(\",\")}]`:`{${Object.keys(t).sort().map(r=>{const o=e(t[r],[...n,t]);if(void 0!==o)return`${JSON.stringify(r)}:${o}`}).filter(e=>void 0!==e).join(\",\")}}`};const{commonBasicLogger:Ae}=te;function ye(e){return\"string\"==typeof e&&\"kind\"!==e&&e.match(/^(\\w|\\.|-)+$/)}function Ee(e){return e.includes(\"%\")||e.includes(\":\")?e.replace(/%/g,\"%25\").replace(/:/g,\"%3A\"):e}var be={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?\"user\":e.kind,o=ye(r),a=\"multi\"===r||null!=n&&\"\"!==n;if(\"multi\"===r){const t=Object.keys(e).filter(e=>\"kind\"!==e);return a&&t.every(e=>ye(e))&&t.every(t=>{const n=e[t].key;return null!=n&&\"\"!==n})}return a&&o}return!1},getContextKeys:function(e,t=Ae()){if(!e)return;const n={},{kind:r,key:o}=e;switch(r){case void 0:n.user=`${o}`;break;case\"multi\":Object.entries(e).filter(([e])=>\"kind\"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case\"\":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${o}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?[\"user\"]:\"multi\"!==e.kind?[e.kind]:Object.keys(e).filter(e=>\"kind\"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||\"user\"===e.kind)&&e.key)return e.key;if(\"multi\"!==e.kind&&e.key)return`${e.kind}:${Ee(e.key)}`;if(\"multi\"===e.kind)return Object.keys(e).sort().filter(e=>\"kind\"!==e).map(t=>`${t}:${Ee(e[t].key)}`).join(\":\")}}};const{getContextKinds:_e}=be;var Ce=function(e){let t={},n={};return{summarizeEvent:function(e){if(\"feature\"===e.kind){const r=ve(e.context);if(!r)return;let o=t[r];o||(t[r]=function(){const e={};let t=0,n=0,r={},o={};return e.summarizeEvent=e=>{if(\"feature\"===e.kind){const a=e.key+\":\"+(null!==e.variation&&void 0!==e.variation?e.variation:\"\")+\":\"+(null!==e.version&&void 0!==e.version?e.version:\"\"),i=r[a];let l=o[e.key];l||(l=new Set,o[e.key]=l),function(e){return e.context?_e(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach(e=>l.add(e)),i?i.count=i.count+1:r[a]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let a=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...o[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),a=!1}return a?null:{startDate:t,endDate:n,features:e,kind:\"summary\"}},e.clearSummary=()=>{t=0,n=0,r={},o={}},e}(),o=t[r],n[r]=e.context),o.summarizeEvent(e)}},getSummaries:function(){const r=t,o=n;return t={},n={},Object.entries(r).map(([t,n])=>{const r=n.getSummary();return r.context=e.filter(o[t]),r})}}};function we(e){return e.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")}function Se(e){return(e.startsWith(\"/\")?e.substring(1):e).split(\"/\").map(e=>e.indexOf(\"~\")>=0?e.replace(/~1/g,\"/\").replace(/~0/g,\"~\"):e)}function Te(e){return!e.startsWith(\"/\")}function Oe(e,t){const n=Te(e),r=Te(t);if(n&&r)return e===t;if(n){const n=Se(t);return 1===n.length&&e===n[0]}if(r){const n=Se(e);return 1===n.length&&t===n[0]}return e===t}function De(e){return`/${we(e)}`}var Re={cloneExcluding:function(e,t){const n=[],r={},o=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:De(t),source:e,parent:r,visited:[e]})));n.length;){const e=n.pop();if(t.some(t=>Oe(t,e.ptr)))o.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if(\"object\"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{return{key:n,ptr:(r=e.ptr,o=we(n),`${r}/${o}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,o}))}else e.parent[e.key]=t}}return{cloned:r,excluded:o.sort()}},compare:Oe,literalToReference:De};const{getContextKeys:Ne}=be;const Le=\"ready\",Pe=\"initialized\",Me=\"failed\",{appendUrlPath:xe,base64URLEncode:Ie,objectHasOwnProperty:ke}=T,{getLDHeaders:Be,transformHeaders:Fe}=pe,{isHttpErrorRecoverable:je}=p;const{transformHeaders:He,getLDHeaders:Ue}=pe,Ye=\"application/json\";const{v1:Ge}=Z,{getContextKinds:ze}=be;var Ve=function(e){function t(e){return null==e||\"user\"===e?\"ld:$anonUserId\":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then(o=>{if(o)return r.key=o,r;{const o=Ge();return r.key=o,function(n,r){return e.set(t(r),n)}(o,n).then(()=>r)}}):Promise.reject(new p.LDInvalidUserError(oe.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new p.LDInvalidUserError(oe.contextNotSpecified()));const t=T.clone(e);if(\"multi\"===e.kind){const e=ze(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}};const{v1:qe}=Z,{baseOptionDefs:We}=ce,{appendUrlPath:Qe}=T;const{onNextTick:Ke}=T,$e={flagUsed:\"flag-used\",flagDetailsChanged:\"flag-details-changed\",flagDetailChanged:\"flag-detail-changed\",clientIdentityChanged:\"client-identity-changed\"};Object.freeze($e);var Xe={InspectorTypes:$e,InspectorManager:function(e,t){const n={},r={[$e.flagUsed]:[],[$e.flagDetailsChanged]:[],[$e.flagDetailChanged]:[],[$e.clientIdentityChanged]:[]},o={[$e.flagUsed]:[],[$e.flagDetailsChanged]:[],[$e.flagDetailChanged]:[],[$e.clientIdentityChanged]:[]},a=e&&e.map(e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...o)=>{try{e.method(...o)}catch{n||(n=!0,t.warn(oe.inspectorMethodError(r.type,r.name)))}}};return r}(e,t));return a&&a.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(oe.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||o[e]&&o[e].length,n.onFlagUsed=(e,t,n)=>{const a=$e.flagUsed;o[a].length&&o[a].forEach(r=>r.method(e,t,n)),r[a].length&&Ke(()=>{r[a].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{const t=$e.flagDetailsChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ke(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{const n=$e.flagDetailChanged;o[n].length&&o[n].forEach(n=>n.method(e,t)),r[n].length&&Ke(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{const t=$e.clientIdentityChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ke(()=>{r[t].forEach(t=>t.method(e))})},n}};const{LDTimeoutError:Je}=p,Ze=\"unknown hook\";function et(e,t,n,r,o){try{return r()}catch(r){return e?.error(`An error was encountered in \"${t}\" of the \"${n}\" hook: ${r}`),o}}function tt(e,t){try{return t.getMetadata().name||Ze}catch{return e.error(\"Exception thrown getting metadata for hook. Unable to get hook name.\"),Ze}}const nt=\"unknown plugin\";function rt(e,t){try{return t.getMetadata().name||nt}catch(t){return e.error(\"Exception thrown getting metadata for plugin. Unable to get plugin name.\"),nt}}var ot={getPluginHooks:function(e,t,n){const r=[];return n.forEach(n=>{try{const o=n.getHooks?.(t);void 0===o?e.error(`Plugin ${rt(e,n)} returned undefined from getHooks.`):o&&o.length>0&&r.push(...o)}catch(t){e.error(`Exception thrown getting hooks for plugin ${rt(e,n)}. Unable to get hooks.`)}}),r},registerPlugins:function(e,t,n,r){r.forEach(r=>{try{r.register(n,t)}catch(t){e.error(`Exception thrown registering plugin ${rt(e,r)}.`)}})},createPluginEnvironment:function(e,t,n){const r={};e.userAgent&&(r.name=e.userAgent),e.version&&(r.version=e.version),n.wrapperName&&(r.wrapperName=n.wrapperName),n.wrapperVersion&&(r.wrapperVersion=n.wrapperVersion);const o={};n.application&&(n.application.name&&(o.name=n.application.name),n.application.version&&(o.version=n.application.version));const a={sdk:r,clientSideId:t};return Object.keys(o).length>0&&(a.application=o),a}};const{commonBasicLogger:at}=te,{checkContext:it,getContextKeys:lt}=be,{InspectorTypes:st,InspectorManager:ut}=Xe,{getPluginHooks:ct,registerPlugins:dt,createPluginEnvironment:pt}=ot,ft=\"change\",gt=\"internal-change\";var ht={initialize:function(e,t,n,r,o){const a=n&&n.logger?n.logger:o&&o.logger&&o.logger.default||at(\"warn\"),i=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let o=0;o<n[e].length;o++)n[e][o].handler===t&&n[e][o].context===r&&(n[e]=n[e].slice(0,o).concat(n[e].slice(o+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let e=0;e<t.length;e++)t[e].handler.apply(t[e].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit(\"error\",t):(e||console).error(t.message))},t}(a),l=function(e){let t=!1,n=!1,r=null,o=null;const a=new Promise(t=>{const n=()=>{e.off(Le,n),t()};e.on(Le,n)}).catch(()=>{});return{getInitializationPromise:()=>o||(t?Promise.resolve():n?Promise.reject(r):(o=new Promise((t,n)=>{const r=()=>{e.off(Pe,r),t()},o=t=>{e.off(Me,o),n(t)};e.on(Pe,r),e.on(Me,o)}),o)),getReadyPromise:()=>a,signalSuccess:()=>{t||n||(t=!0,e.emit(Pe),e.emit(Le))},signalFailure:o=>{t||n||(n=!0,r=o,e.emit(Me,o),e.emit(Le)),e.maybeReportError(o)}}}(i),s=ce.validate(n,i,o,a),u=ut(s.inspectors,a),c=s.sendEvents;let d=e,f=s.hash;const g=[...s.plugins],h=pt(r,e,s),m=ct(a,h,g),v=function(e,t){const n=t?[...t]:[];return{withEvaluation:function(t,r,o,a){if(0===n.length)return a();const i=[...n],l={flagKey:t,context:r,defaultValue:o},s=function(e,t,n){return t.map(t=>et(e,\"beforeEvaluation\",tt(e,t),()=>t?.beforeEvaluation?.(n,{})??{},{}))}(e,i,l),u=a();return function(e,t,n,r,o){for(let a=t.length-1;a>=0;a-=1){const i=t[a],l=r[a];et(e,\"afterEvaluation\",tt(e,i),()=>i?.afterEvaluation?.(n,l,o)??{},{})}}(e,i,l,s,u),u},identify:function(t,r){const o=[...n],a={context:t,timeout:r},i=function(e,t,n){return t.map(t=>et(e,\"beforeIdentify\",tt(e,t),()=>t?.beforeIdentify?.(n,{})??{},{}))}(e,o,a);return t=>{!function(e,t,n,r,o){for(let a=t.length-1;a>=0;a-=1){const i=t[a],l=r[a];et(e,\"afterIdentify\",tt(e,i),()=>i?.afterIdentify?.(n,l,o)??{},{})}}(e,o,a,i,t)}},addHook:function(e){n.push(e)},afterTrack:function(t){if(0===n.length)return;const r=[...n];!function(e,t,n){for(let r=t.length-1;r>=0;r-=1){const o=t[r];et(e,\"afterTrack\",tt(e,o),()=>o?.afterTrack?.(n),void 0)}}(e,r,t)}}}(a,[...s.hooks,...m]),A=function(e,t){const n={};let r=!1;const o=e=>{r||(r=!0,t.warn(oe.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{o(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{o(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{o(e),n(!1)}):n(!1)}),n}(r.localStorage,a),y=me(r,0,s),E=s.sendEvents&&!s.diagnosticOptOut,b=E?function(e){const t={diagnosticId:qe()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t}(d):null,_=E?function(e){let t,n,r,o;function a(e){t=e,n=0,r=0,o=[]}return a(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:o}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};o.push(r)},reset:a}}((new Date).getTime()):null,C=E?function(e,t,n,r,o,a,i){const l=!!e.diagnosticUseCombinedEvent,s=\"ld:\"+o+\":$diagnostics\",u=Qe(a.eventsUrl,\"/events/diagnostic/\"+o),c=a.diagnosticRecordingInterval,d=n;let p,f,g=!!a.streaming;const h={};function m(){return{sdk:y(),configuration:{customBaseURI:a.baseUrl!==We.baseUrl.default,customStreamURI:a.streamUrl!==We.streamUrl.default,customEventsURI:a.eventsUrl!==We.eventsUrl.default,eventsCapacity:a.eventCapacity,eventsFlushIntervalMillis:a.flushInterval,reconnectTimeMillis:a.streamReconnectDelay,streamingDisabled:!g,allAttributesPrivate:!!a.allAttributesPrivate,diagnosticRecordingIntervalMillis:a.diagnosticRecordingInterval,usingSecureMode:!!a.hash,bootstrapMode:!!a.bootstrap,fetchGoalsDisabled:!a.fetchGoals,sendEventsOnlyForVariation:!!a.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){a.logger&&a.logger.debug(oe.debugPostingDiagnosticEvent(e)),r.sendEvents(e,u,!0).then(()=>{}).catch(()=>{})}function A(){v(function(){const e=(new Date).getTime();let t={kind:l?\"diagnostic-combined\":\"diagnostic\",id:i,creationDate:e,...d.getProps()};return l&&(t={...t,...m()}),d.reset(e),t}()),f=setTimeout(A,c),p=(new Date).getTime(),l&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(s,JSON.stringify(e))}}()}function y(){const t={...e.diagnosticSdkData};return a.wrapperName&&(t.wrapperName=a.wrapperName),a.wrapperVersion&&(t.wrapperVersion=a.wrapperVersion),t}return h.start=()=>{l?function(e){if(!t.isEnabled())return e(!1);t.get(s).then(t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),p=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){const e=(p||0)+c,t=(new Date).getTime();t>=e?A():f=setTimeout(A,e-t)}else 0===Math.floor(4*Math.random())?A():f=setTimeout(A,c)}):(v({kind:\"diagnostic-init\",id:i,creationDate:d.getProps().dataSinceDate,...m()}),f=setTimeout(A,c))},h.stop=()=>{f&&clearTimeout(f)},h.setStreaming=e=>{g=e},h}(r,A,_,y,d,s,b):null,w=function(e,t,n,r){const o=t.streamUrl,a=t.logger,i={},l=xe(o,\"/eval/\"+n),s=t.useReport,u=t.evaluationReasons,c=t.streamReconnectDelay,d=Be(e,t);let p,f=!1,g=null,h=null,m=null,v=null,A=null,y=0;function E(e){if(e.status&&\"number\"==typeof e.status&&!je(e.status))return C(),a.error(oe.unrecoverableStreamError(e)),void(h&&(clearTimeout(h),h=null));const t=function(){const e=(t=function(){const e=c*Math.pow(2,y);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return y+=1,e}();f||(a.warn(oe.streamError(e,t)),f=!0),w(!1),C(),b(t)}function b(e){h||(e?h=setTimeout(_,e):_())}function _(){let r;h=null;let i=\"\";const c={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(i=\"h=\"+v),s?e.eventSourceAllowsReport?(r=l,c.method=\"REPORT\",c.headers[\"Content-Type\"]=\"application/json\",c.body=JSON.stringify(m)):(r=xe(o,\"/ping/\"+n),i=\"\"):r=l+\"/\"+Ie(JSON.stringify(m)),c.headers=Fe(c.headers,t),u&&(i=i+(i?\"&\":\"\")+\"withReasons=true\"),r=r+(i?\"?\":\"\")+i,C(),a.info(oe.streamConnecting(r)),p=(new Date).getTime(),g=e.eventSourceFactory(r,c);for(const e in A)ke(A,e)&&g.addEventListener(e,A[e]);g.onerror=E,g.onopen=()=>{y=0}}}function C(){g&&(a.info(oe.streamClosing()),g.close(),g=null)}function w(e){p&&r&&r.recordStreamInit(p,!e,(new Date).getTime()-p),p=null}return i.connect=function(e,t,n){m=e,v=t,A={};for(const e in n||{})A[e]=function(t){f=!1,w(!0),n[e]&&n[e](t)};b()},i.disconnect=function(){clearTimeout(h),h=null,C()},i.isConnected=function(){return!!(g&&e.eventSourceIsActive&&e.eventSourceIsActive(g))},i}(r,s,d,_),S=s.eventProcessor||function(e,t,n,r=null,o=null,a=null){const i={},l=a||me(e,0,t),s=T.appendUrlPath(t.eventsUrl,\"/events/bulk/\"+n),u=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],o=[\"key\",\"kind\",\"_meta\",\"anonymous\"],a=[\"name\",\"ip\",\"firstName\",\"lastName\",\"email\",\"avatar\",\"country\"],i=(e,t)=>{if(\"object\"!=typeof e||null===e||Array.isArray(e))return;const{cloned:a,excluded:i}=Re.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!o.some(t=>Re.compare(e,t))))(e,t));return a.key=String(a.key),i.length&&(a._meta||(a._meta={}),a._meta.redactedAttributes=i),a._meta&&(delete a._meta.privateAttributes,0===Object.keys(a._meta).length&&delete a._meta),void 0!==a.anonymous&&(a.anonymous=!!a.anonymous),a};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?i((e=>{const t={...e.custom||{},kind:\"user\",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of a)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith(\"/\")?Re.literalToReference(e):e)),t})(e),t):\"multi\"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const o of r)if(\"kind\"!==o){const r=i(e[o],t);r&&(n[o]=r)}return n})(e,t):i(e,t),t}(t),c=Ce(u),d=t.samplingInterval,f=t.eventCapacity,g=t.flushInterval,h=t.logger;let m,v=[],A=0,y=!1,E=!1;function b(){return 0===d||0===Math.floor(Math.random()*d)}function _(e){v.length<f?(v.push(e),E=!1):(E||(E=!0,h.warn(oe.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return i.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(c.summarizeEvent(e),\"feature\"===e.kind?b()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>A&&r.debugEventsUntilDate>(new Date).getTime()):t=b(),t&&_(function(e){const t=T.extend({},e);return\"identify\"===e.kind||\"feature\"===e.kind||\"custom\"===e.kind?t.context=u.filter(e.context):(t.contextKeys=Ne(e.context,h),delete t.context),\"feature\"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=T.extend({},e,{kind:\"debug\"});t.context=u.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,_(t)}},i.flush=async function(){if(y)return Promise.resolve();const e=v;return c.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(v=[],h.debug(oe.debugPostingEvents(e.length)),l.sendEvents(e,s).then(e=>{e&&(e.serverTime&&(A=e.serverTime),p.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&T.onNextTick(()=>{o.maybeReportError(new p.LDUnexpectedResponseError(oe.httpErrorMessage(e.status,\"event posting\",\"some events were dropped\")))}))}))},i.start=function(){const e=()=>{i.flush(),m=setTimeout(e,g)};m=setTimeout(e,g)},i.stop=function(){clearTimeout(m)},i}(r,s,d,_,i,y),O=function(e,t,n){const r=t.baseUrl,o=t.useReport,a=t.evaluationReasons,i=t.logger,l={},s={};function u(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new p.LDFlagFetchError(oe.httpUnavailable()))});const o=r?\"REPORT\":\"GET\",a=Ue(e,t);r&&(a[\"Content-Type\"]=Ye);let i=s[n];i||(i=function(e){let t,n,r,o;const a={addPromise:(a,i)=>{t=a,n&&n(),n=i,a.then(n=>{t===a&&(r(n),e&&e())},n=>{t===a&&(o(n),e&&e())})}};return a.resultPromise=new Promise((e,t)=>{r=e,o=t}),a}(()=>{delete s[n]}),s[n]=i);const l=e.httpRequest(o,n,He(a,t),r),u=l.promise.then(e=>{if(200===e.status){if(e.header(\"content-type\")&&e.header(\"content-type\").substring(0,16)===Ye)return JSON.parse(e.body);{const t=oe.invalidContentType(e.header(\"content-type\")||\"\");return Promise.reject(new p.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new p.LDInvalidEnvironmentIdError(oe.environmentNotFound()):new p.LDFlagFetchError(oe.errorFetchingFlags(e.statusText||String(e.status)))}(e))},e=>Promise.reject(new p.LDFlagFetchError(oe.networkError(e))));return i.addPromise(u,()=>{l.cancel&&l.cancel()}),i.resultPromise}return l.fetchJSON=function(e){return u(T.appendUrlPath(r,e),null)},l.fetchFlagSettings=function(e,t){let l,s,c,d=\"\";return o?(s=[r,\"/sdk/evalx/\",n,\"/context\"].join(\"\"),c=JSON.stringify(e)):(l=T.base64URLEncode(JSON.stringify(e)),s=[r,\"/sdk/evalx/\",n,\"/contexts/\",l].join(\"\")),t&&(d=\"h=\"+t),a&&(d=d+(d?\"&\":\"\")+\"withReasons=true\"),s=s+(d?\"?\":\"\")+d,i.debug(oe.debugPolling(s)),u(s,c)},l}(r,s,d);let D,R,N,L={},P=s.streaming,M=!1,x=!1,I=!0;const k=s.stateProvider,B=function(e,t){const n={};let r;return n.setContext=function(e){r=T.sanitizeContext(e),r&&t&&t(T.clone(r))},n.getContext=function(){return r?T.clone(r):null},n}(0,function(e){(function(e){k||e&&H({kind:\"identify\",context:e,creationDate:(new Date).getTime()})})(e),u.hasListeners(st.clientIdentityChanged)&&u.onIdentityChanged(B.getContext())}),F=new Ve(A),j=A.isEnabled()?function(e,t,n,r){const o={};function a(){let e=\"\";const o=r.getContext();return o&&(e=n||T.btoa(JSON.stringify(o))),\"ld:\"+t+\":\"+e}return o.loadFlags=()=>e.get(a()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=T.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then(()=>null)}}),o.saveFlags=t=>{const n=T.extend({},t,{$schema:1});return e.set(a(),JSON.stringify(n))},o.clearFlags=()=>e.clear(a()),o}(A,d,f,B):null;function H(e){d&&(k&&k.enqueueEvent&&k.enqueueEvent(e)||(e.context?(I=!1,!c||x||r.isDoNotTrack()||(a.debug(oe.debugEnqueueingEvent(e.kind)),S.enqueue(e))):I&&(a.warn(oe.eventWithoutContext()),I=!1)))}function U(e,t){u.hasListeners(st.flagDetailChanged)&&u.onFlagChanged(e.key,q(t))}function Y(){u.hasListeners(st.flagDetailsChanged)&&u.onFlags(Object.entries(L).map(([e,t])=>({key:e,detail:q(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function G(e,t,n,r){const o=B.getContext(),a=new Date,i={kind:\"feature\",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:a.getTime()},l=L[e];l&&(i.version=l.flagVersion?l.flagVersion:l.version,i.trackEvents=l.trackEvents,i.debugEventsUntilDate=l.debugEventsUntilDate),(r||l&&l.trackReason)&&t&&(i.reason=t.reason),H(i)}function z(e){return it(e,!1)?Promise.resolve(e):Promise.reject(new p.LDInvalidUserError(oe.invalidContext()))}function V(e,t,n,r,o,a){let i,l;return L&&T.objectHasOwnProperty(L,e)&&L[e]&&!L[e].deleted?(l=L[e],i=q(l),null!==l.value&&void 0!==l.value||(i.value=t)):i={value:t,variationIndex:null,reason:{kind:\"ERROR\",errorKind:\"FLAG_NOT_FOUND\"}},n&&(o||l?.prerequisites?.forEach(e=>{V(e,void 0,n,!1,!1,!1)}),G(e,i,t,r)),!o&&a&&function(e,t){u.hasListeners(st.flagUsed)&&u.onFlagUsed(e,t,B.getContext())}(e,i),i}function q(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function W(){if(R=!0,!B.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void i.maybeReportError(new p.LDInvalidDataError(oe.invalidData()))}};w.connect(B.getContext(),f,{ping:function(){a.debug(oe.debugStreamPing());const e=B.getContext();O.fetchFlagSettings(e,f).then(t=>{T.deepEquals(e,B.getContext())&&K(t||{})}).catch(e=>{i.maybeReportError(new p.LDFlagFetchError(oe.errorFetchingFlags(e)))})},put:function(t){const n=e(t.data);n&&(a.debug(oe.debugStreamPut()),K(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=L[n.key];if(!r||!r.version||!n.version||r.version<n.version){a.debug(oe.debugStreamPatch(n.key));const e={},t=T.extend({},n);delete t.key,L[n.key]=t;const o=q(t);e[n.key]=r?{previous:r.value,current:o}:{current:o},U(n,t),$(e)}else a.debug(oe.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!L[n.key]||L[n.key].version<n.version){a.debug(oe.debugStreamDelete(n.key));const e={};L[n.key]&&!L[n.key].deleted&&(e[n.key]={previous:L[n.key].value}),L[n.key]={version:n.version,deleted:!0},U(n,L[n.key]),$(e)}else a.debug(oe.debugStreamDeleteIgnored(n.key))}})}function Q(){R&&(w.disconnect(),R=!1)}function K(e){const t={};if(!e)return Promise.resolve();for(const n in L)T.objectHasOwnProperty(L,n)&&L[n]&&(e[n]&&!T.deepEquals(e[n].value,L[n].value)?t[n]={previous:L[n].value,current:q(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:L[n].value}));for(const n in e)T.objectHasOwnProperty(e,n)&&e[n]&&(!L[n]||L[n].deleted)&&(t[n]={current:q(e[n])});return L={...e},Y(),$(t).catch(()=>{})}function $(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach(t=>{const r=e[t].current,o=r?r.value:void 0,a=e[t].previous;i.emit(ft+\":\"+t,o,a),n[t]=r?{current:o,previous:a}:{previous:a}}),i.emit(ft,n),i.emit(gt,L),s.sendEventsOnlyForVariation||k||t.forEach(t=>{G(t,e[t].current)})}return D&&j?j.saveFlags(L):Promise.resolve()}function X(){const e=P||N&&void 0===P;e&&!R?W():!e&&R&&Q(),C&&C.setStreaming(e)}function J(e){return e===ft||e.substr(0,7)===ft+\":\"}if(\"string\"==typeof s.bootstrap&&\"LOCALSTORAGE\"===s.bootstrap.toUpperCase()&&(j?D=!0:a.warn(oe.localStorageUnavailable())),\"object\"==typeof s.bootstrap&&(L=function(e){const t=Object.keys(e),n=\"$flagsState\",r=\"$valid\",o=e[n];!o&&t.length&&a.warn(oe.bootstrapOldFormat()),!1===e[r]&&a.warn(oe.bootstrapInvalid());const i={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};o&&o[t]?n=T.extend(n,o[t]):n.version=0,i[t]=n}}),i}(s.bootstrap)),k){const e=k.getInitialState();e?Z(e):k.on(\"init\",Z),k.on(\"update\",function(e){e.context&&B.setContext(e.context),e.flags&&K(e.flags)})}else(function(){if(!e)return Promise.reject(new p.LDInvalidEnvironmentIdError(oe.environmentNotSpecified()));let n;return F.processContext(t).then(z).then(e=>(n=T.once(v.identify(e,void 0)),e)).then(e=>(n?.({status:\"completed\"}),B.setContext(e),\"object\"==typeof s.bootstrap?ee():D?j.loadFlags().then(e=>null==e?(L={},O.fetchFlagSettings(B.getContext(),f).then(e=>K(e||{})).then(ee).catch(e=>{te(new p.LDFlagFetchError(oe.errorFetchingFlags(e)))})):(L=e,T.onNextTick(ee),O.fetchFlagSettings(B.getContext(),f).then(e=>K(e)).catch(e=>i.maybeReportError(e)))):O.fetchFlagSettings(B.getContext(),f).then(e=>{L=e||{},Y(),ee()}).catch(e=>{L={},te(e)}))).catch(e=>{throw n?.({status:\"error\"}),e})})().catch(te);function Z(e){d=e.environment,B.setContext(e.context),L={...e.flags},T.onNextTick(ee)}function ee(){a.info(oe.clientInitialized()),M=!0,X(),l.signalSuccess()}function te(e){l.signalFailure(e)}const ne={waitForInitialization:function(e=void 0){if(null!=e){if(\"number\"==typeof e)return function(e){e>5&&a.warn(\"The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.\");const t=l.getInitializationPromise(),n=function(e){return new Promise((t,n)=>{setTimeout(()=>{n(new Je(`waitForInitialization timed out after ${e} seconds.`))},1e3*e)})}(e);return Promise.race([n,t]).catch(e=>{throw e instanceof p.LDTimeoutError&&a.error(`waitForInitialization error: ${e}`),e})}(e);a.warn(\"The waitForInitialization method was provided with a non-numeric timeout.\")}return a.warn(\"The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied.\"),l.getInitializationPromise()},waitUntilReady:()=>l.getReadyPromise(),identify:function(e,t,n){if(x)return T.wrapPromiseCallback(Promise.resolve({}),n);if(k)return a.warn(oe.identifyDisabled()),T.wrapPromiseCallback(Promise.resolve(T.transformVersionedValuesToValues(L)),n);let r;const o=D&&j?j.clearFlags():Promise.resolve();return T.wrapPromiseCallback(o.then(()=>F.processContext(e)).then(z).then(e=>(r=T.once(v.identify(e,void 0)),e)).then(e=>O.fetchFlagSettings(e,t).then(n=>{const r=T.transformVersionedValuesToValues(n);return B.setContext(e),f=t,n?K(n).then(()=>r):r})).then(e=>(r?.({status:\"completed\"}),R&&W(),e)).catch(e=>(r?.({status:\"error\"}),i.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return B.getContext()},variation:function(e,t){const{value:n}=v.withEvaluation(e,B.getContext(),t,()=>V(e,t,!0,!1,!1,!0));return n},variationDetail:function(e,t){return v.withEvaluation(e,B.getContext(),t,()=>V(e,t,!0,!0,!1,!0))},track:function(e,t,n){if(\"string\"!=typeof e)return void i.maybeReportError(new p.LDInvalidEventKeyError(oe.unknownCustomEventKey(e)));void 0!==n&&\"number\"!=typeof n&&a.warn(oe.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&a.warn(oe.unknownCustomEventKey(e));const o=B.getContext(),l={kind:\"custom\",key:e,context:o,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(l.contextKind=o.anonymous?\"anonymousUser\":\"user\"),null!=t&&(l.data=t),null!=n&&(l.metricValue=n),H(l),v.afterTrack({context:o,key:e,data:t,metricValue:n})},on:function(e,t,n){J(e)?(N=!0,M&&X(),i.on(e,t,n)):i.on(...arguments)},off:function(e){if(i.off(...arguments),J(e)){let e=!1;i.getEvents().forEach(t=>{J(t)&&i.getEventListenerCount(t)>0&&(e=!0)}),e||(N=!1,R&&void 0===P&&Q())}},setStreaming:function(e){const t=null===e?void 0:e;t!==P&&(P=t,X())},flush:function(e){return T.wrapPromiseCallback(c?S.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!L)return e;for(const t in L)T.objectHasOwnProperty(L,t)&&!L[t].deleted&&(e[t]=V(t,null,!s.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(x)return T.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{x=!0,L={}},n=Promise.resolve().then(()=>{if(Q(),C&&C.stop(),c)return S.stop(),S.flush()}).then(t).catch(t);return T.wrapPromiseCallback(n,e)},addHook:function(e){v.addHook(e)}};return dt(a,h,ne,g),{client:ne,options:s,emitter:i,ident:B,logger:a,requestor:O,start:function(){c&&(C&&C.start(),S.start())},enqueueEvent:H,getFlagsInternal:function(){return L},getEnvironmentId:()=>d,internalChangeEventName:gt}},commonBasicLogger:at,errors:p,messages:oe,utils:T,getContextKeys:lt},mt=ht.initialize,vt=ht.errors;function At(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=typeof n)return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach(function(t){At(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bt={promise:Promise.resolve({status:200,header:function(){return null},body:null})},_t=e=>{if(\"string\"!=typeof e)throw new TypeError(\"Expected a string\");return e.replace(/[|\\\\{}()[\\]^$+*?.]/g,\"\\\\$&\").replace(/-/g,\"\\\\x2d\")};function Ct(e,t,n,r){var o,a,i=(\"substring\"!==e.kind&&\"regex\"!==e.kind||!r.includes(\"/\")?t.replace(r,\"\"):t).replace(n,\"\");switch(e.kind){case\"exact\":a=t,o=new RegExp(\"^\"+_t(e.url)+\"/?$\");break;case\"canonical\":a=i,o=new RegExp(\"^\"+_t(e.url)+\"/?$\");break;case\"substring\":a=i,o=new RegExp(\".*\"+_t(e.substring)+\".*$\");break;case\"regex\":a=i,o=new RegExp(e.pattern);break;default:return!1}return o.test(a)}function wt(e,t){for(var n={},r=null,o=[],a=0;a<e.length;a++)for(var i=e[a],l=i.urls||[],s=0;s<l.length;s++)if(Ct(l[s],window.location.href,window.location.search,window.location.hash)){\"pageview\"===i.kind?t(\"pageview\",i):(o.push(i),t(\"click_pageview\",i));break}return o.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=e.target,a=t[r],i=a.selector,l=document.querySelectorAll(i);o&&l.length>0;){for(var s=0;s<l.length;s++)o===l[s]&&n.push(a);o=o.parentNode}return n}(e,o),r=0;r<n.length;r++)t(\"click\",n[r])},document.addEventListener(\"click\",r)),n.dispose=function(){document.removeEventListener(\"click\",r)},n}var St=\"goalsReady\",Tt={fetchGoals:{default:!0},hash:{type:\"string\"},eventProcessor:{type:\"object\"},eventUrlTransformer:{type:\"function\"},disableSyncEventPost:{default:!1}};var Ot=n(32028),Dt=n.n(Ot),Rt=n(4146),Nt=n.n(Rt);const Lt=(0,r.createContext)({flags:{},flagKeyMap:{},ldClient:void 0}),{Provider:Pt,Consumer:Mt}=Lt,xt={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:Lt},It=e=>{var t;return null!=(t=e.context)?t:e.user},kt=e=>{const t={};for(const n in e)0!==n.indexOf(\"$\")&&(t[Dt()(n)]=e[n]);return t},Bt=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e),{}):n};function Ft(e,t,n=xt,r){const o=function(e,t){return void 0===t?e:Object.keys(t).reduce((t,n)=>(jt(e,n)&&(t[n]=e[n]),t),{})}(t,r),{useCamelCaseFlagKeys:a=!0}=n,[i,l={}]=a?function(e){const t={},n={};for(const r in e){if(0===r.indexOf(\"$\"))continue;const o=Dt()(r);t[o]=e[r],n[o]=r}return[t,n]}(o):[o];return{flags:n.sendEventsOnFlagRead?Ht(e,i,l,a):i,flagKeyMap:l}}function jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ht(e,t,n,r){return new Proxy(t,{get(t,o,a){const i=Reflect.get(t,o,a),l=r&&jt(n,o)||jt(t,o);if(\"symbol\"==typeof o||!l)return i;if(void 0===i)return;const s=r?n[o]:o;return e.variation(s,i)}})}kt.camelCaseKeys=kt;const Ut={wrapperName:\"react-client-sdk\",wrapperVersion:\"3.8.1\",sendEventsOnlyForVariation:!0};var Yt=Object.defineProperty,Gt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?Yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kt=(e,t)=>{for(var n in t||(t={}))qt.call(t,n)&&Qt(e,n,t[n]);if(Vt)for(var n of Vt(t))Wt.call(t,n)&&Qt(e,n,t[n]);return e},$t=(e,t)=>Gt(e,zt(t)),Xt=(e,t,n)=>new Promise((r,o)=>{var a=e=>{try{l(n.next(e))}catch(e){o(e)}},i=e=>{try{l(n.throw(e))}catch(e){o(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())});class Jt extends r.Component{constructor(e){super(e),this.getReactOptions=()=>Kt(Kt({},xt),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on(\"change\",n=>{const r=this.getReactOptions(),o=((e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n})(n,t),a=Kt(Kt({},this.state.unproxiedFlags),o);Object.keys(o).length>0&&this.setState(n=>Kt($t(Kt({},n),{unproxiedFlags:a}),Ft(e,a,r,t)))})},this.onFailed=(e,t)=>{this.setState(e=>$t(Kt({},e),{error:t}))},this.onReady=(e,t,n)=>{const r=Bt(e,n);this.setState(o=>Kt($t(Kt({},o),{unproxiedFlags:r}),Ft(e,r,t,n)))},this.prepareLDClient=()=>Xt(this,null,function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let o=yield this.props.ldClient;const a=this.getReactOptions();let i,l=this.state.unproxiedFlags;if(o)l=Bt(o,n);else{const s=null!=(e=It(this.props))?e:{anonymous:!0,kind:\"user\"};o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:\"X-LaunchDarkly-User-Agent\",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,o,a){var i=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\\/([0-9]+)\\./);if(t)return parseInt(t[2],10)<73}return!0}())return bt;var a=new window.XMLHttpRequest;for(var i in a.open(e,t,!o),n||{})Object.prototype.hasOwnProperty.call(n,i)&&a.setRequestHeader(i,n[i]);if(o){try{a.send(r)}catch(e){}return bt}var l,s=new Promise(function(e,t){a.addEventListener(\"load\",function(){l||e({status:a.status,header:function(e){return a.getResponseHeader(e)},body:a.responseText})}),a.addEventListener(\"error\",function(){l||t(new Error)}),a.send(r)});return{promise:s,cancel:function(){l=!0,a.abort()}}}(e,t,o,a,i)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&\"withCredentials\"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var o,a=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return a?a(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||\"1\"===e||\"yes\"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(n){window.localStorage.setItem(e,t),n()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){n.localStorage=null}if(e&&e.useReport&&\"function\"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var i=3e5;n.eventSourceFactory=function(e,t){var n=Et(Et({},{heartbeatTimeout:i,silentTimeout:i,skipDefaultHeaders:!0}),t);return new o(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent=\"JSClient\",n.version=\"3.8.1\",n.diagnosticSdkData={name:\"js-client-sdk\",version:\"3.8.1\"},n.diagnosticPlatformData={name:\"JS\"},n.diagnosticUseCombinedEvent=!0,n}(n),o=mt(e,t,n,r,Tt),a=o.client,i=o.options,l=o.emitter,s=new Promise(function(e){var t=l.on(St,function(){l.off(St,t),e()})});a.waitUntilGoalsReady=function(){return s},i.fetchGoals?function(e,t){var n,r;function o(){r&&r.dispose(),n&&n.length&&(r=wt(n,a))}function a(t,n){var r=e.ident.getContext(),o={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return\"click\"===t&&(o.selector=n.selector),e.enqueueEvent(o)}e.requestor.fetchJSON(\"/sdk/goals/\"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(r=wt(n=e,a),function(e,t){var n,r=window.location.href;function o(){(n=window.location.href)!==r&&(r=n,t())}!function e(t,n){t(),setTimeout(function(){e(t,n)},n)}(o,300),window.history&&window.history.pushState?window.addEventListener(\"popstate\",o):window.addEventListener(\"hashchange\",o)}(0,o)),t()}).catch(function(n){e.emitter.maybeReportError(new vt.LDUnexpectedResponseError((n&&n.message,n.message))),t()})}(o,function(){return l.emit(St)}):l.emit(St),\"complete\"!==document.readyState?window.addEventListener(\"load\",o.start):o.start();var u=function(){r.synchronousFlush=!0,a.flush().catch(function(){}),r.synchronousFlush=!1};return document.addEventListener(\"visibilitychange\",function(){\"hidden\"===document.visibilityState&&u()}),window.addEventListener(\"pagehide\",u),a}(t,s,Kt(Kt({},Ut),r));try{yield o.waitForInitialization(this.props.timeout),l=Bt(o,n)}catch(e){i=e,(null==i?void 0:i.name.toLowerCase().includes(\"timeout\"))&&(o.on(\"failed\",this.onFailed),o.on(\"ready\",()=>{this.onReady(o,a,n)}))}}this.setState(e=>$t(Kt($t(Kt({},e),{unproxiedFlags:l}),Ft(o,l,a,n)),{ldClient:o,error:i})),this.subscribeToChanges(o)});const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&\"localStorage\"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?kt(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return Xt(this,null,function*(){const{deferInitialization:e}=this.props;e&&!It(this.props)||(yield this.prepareLDClient())})}componentDidUpdate(e){return Xt(this,null,function*(){const{deferInitialization:t}=this.props,n=!It(e)&&It(this.props);t&&n&&(yield this.prepareLDClient())})}render(){const{flags:e,flagKeyMap:t,ldClient:n,error:r}=this.state,{reactContext:a}=this.getReactOptions();return o().createElement(a.Provider,{value:{flags:e,flagKeyMap:t,ldClient:n,error:r}},this.props.children)}}var Zt=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,an=(e,t,n)=>t in e?Zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ln=(e,t)=>{for(var n in t||(t={}))rn.call(t,n)&&an(e,n,t[n]);if(nn)for(var n of nn(t))on.call(t,n)&&an(e,n,t[n]);return e};function sn(e){return function(t){const{reactOptions:n}=e,o=ln(ln({},xt),n),a=(i=ln({},e),en(i,tn({reactOptions:o})));var i;function l(e){return r.createElement(Jt,ln({},a),r.createElement(t,ln({},e)))}return Nt()(l,t),l}}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const un=e=>{const{flags:t}=(0,r.useContext)(null!=e?e:xt.reactContext);return t},cn=e=>{const{ldClient:t}=(0,r.useContext)(null!=e?e:xt.reactContext);return t}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63662:(e,t,n)=>{\"use strict\";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},63795:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(74423),n(23792),n(62062),n(15086),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(84864),n(27495),n(38781),n(21699),n(47764),n(23500),n(62953);var r=n(15001),o=n(8239),a=n(28161),i=n(14073),l=n(6347),s=n(88084),u=n(81970),c=n.n(u),d=n(64121),p=n(62809),f=n(19021),g=n(21270),h=n(13075);function m(e){return m=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=m(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==m(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(0,u.memo)(function(e){var t,n=e.fields,m=e.onValueChange,v=e.values,y=e.dropDownKeys,E=e.multiSelectDropdownKeys,b=e.onDropdownChange,_=e.isEditDetailsMode,C=e.shopProfile,w=e.preferredDistributorConfiguration,S=e.retailerAddressValidationConfiguration,T=(0,u.useCallback)(function(e,t){var n=\"canonical_address\"===e||\"full_address\"===e,r=null==S?void 0:S.value;r&&t&&n?new RegExp(r).test(t)&&m(e,t):m(e,t)},[m,S]),O=(0,u.useCallback)(function(e,t){m(t,e)},[m]),D=(0,u.useCallback)(function(e,t){m(e,t),b(e,t)},[m,b]),R=(0,u.useCallback)(function(e,t){return(null==e?void 0:e.map(function(e){return A(A({},e),{},{checked:t.some(function(t){return t.value===e.value&&t.checked})})}))||[]},[]),N=(0,u.useCallback)(function(e){return c().createElement(f.A,{onHandleChange:function(t){return T(e.key,t)},disabled:e.disabled||!_,value:(null==v?void 0:v[null==e?void 0:e.key])||\"\",label:\"\",name:e.key,customClassName:e.disabled?\"disabled-field\":\"\"})},[_,T,v]),L=(0,u.useCallback)(function(e){var t,n;return y.includes(e.key)?c().createElement(s.D0,{name:e.key},function(){var t,n;return c().createElement(d.A,{name:e.key,onChange:function(t,n){return D(e.key,n)},isDisabled:e.disabled&&_,options:null!==(t=null==e?void 0:e.options)&&void 0!==t?t:[],labelKey:\"label\",selectedOption:v[e.key],value:null!=v&&null!==(n=v[null==e?void 0:e.key])&&void 0!==n&&n.value?null==v?void 0:v[null==e?void 0:e.key]:\"\",defaultLabel:\"Select\",isSortReq:!0})}):E.includes(e.key)?\"retailer_distributors\"!=e.key||_?c().createElement(s.D0,{name:e.key},function(){var t,n,r,o,a,i;return c().createElement(p.A,{key:e.key,name:e.key,showClearAll:!0,labelKey:\"label\",options:R(null!==(t=null==e?void 0:e.options)&&void 0!==t?t:[],null==v?void 0:v[null==e?void 0:e.key]),onCheckboxChange:function(t){return O(t,e.key)},isDisabled:e.disabled&&_,selectedOptions:(null==v||null===(n=v[null==e?void 0:e.key])||void 0===n?void 0:n.length)>0?null==v||null===(r=v[e.key])||void 0===r||null===(r=r.filter(function(e){return e.checked}))||void 0===r?void 0:r.map(function(e){return e.label}):[],defaultLabel:\"Select\",isSortReq:!0,selectMaxOptions:null!==(o=(0,h.KB)(null==w?void 0:w.maxValue,null!==(a=null==e?void 0:e.options)&&void 0!==a?a:[],null!==(i=null==v?void 0:v.mappedDistributors)&&void 0!==i?i:[]))&&void 0!==o?o:\"0\"})}):c().createElement(c().Fragment,null,null==e||null===(n=e.value)||void 0===n?void 0:n.map(function(e,t){return c().createElement(\"div\",{key:t},e.label)})):\"geo_location\"!==(null==e?void 0:e.key)||_?_?N(e):c().createElement(\"label\",{style:{font:\"400 14px/20px NotoSans-Regular\",color:\"rgba(0, 0, 0, 0.38)\"}},null!==(t=null==v?void 0:v[null==e?void 0:e.key])&&void 0!==t?t:\"\"):c().createElement(r.A,{href:(null==v?void 0:v[null==e?void 0:e.key])||\"\",target:\"_blank\"},(null==v?void 0:v[null==e?void 0:e.key])||\"\")},[y,E,v,_,D,R,O,w,N]),P=(0,u.useCallback)(function(e){return c().createElement(o.Ay,{key:e.key||e.labelName,item:!0,xs:4},c().createElement(a.A,{className:\"user-details-container\"},c().createElement(i.A,{variant:\"h5\",color:\"#1D2B3A\",mb:.5},e.labelName),L(e),c().createElement(l.A,{error:!0},c().createElement(s.Kw,{name:e.key}))))},[L]),M=\"owner_name\"===(null==n||null===(t=n[0])||void 0===t?void 0:t.key);return c().createElement(a.A,{className:\"user-detail-box\",\"data-testid\":\"user-detail-box\"},c().createElement(o.Ay,{container:!0,columns:{xs:12},rowGap:2},M&&c().createElement(o.Ay,{item:!0,xs:4},c().createElement(a.A,{className:\"shop-image\"},c().createElement(\"img\",{width:\"100%\",height:\"100%\",src:null!=C&&C.length?C:g.A.placeholder_img,alt:\"shopProfile\"}))),c().createElement(o.Ay,{item:!0,xs:M?8:12},c().createElement(o.Ay,{container:!0,columns:{xs:M?8:12},rowGap:2},null==n?void 0:n.map(P)))))});E.displayName=\"FieldBox\";const b=E},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},63912:(e,t,n)=>{var r=n(61074),o=n(49698),a=n(42054);e.exports=function(e){return o(e)?a(e):r(e)}},63981:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.agFlushSync=t.isComponentStateless=t.CssClasses=t.classesList=void 0;var a=o(n(40961));t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&\"\"!==e}).join(\" \")};var i=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach(function(t){e.classesMap[t]=!0})}return e.prototype.setClass=function(t,n){if(!!this.classesMap[t]==n)return this;var o=new e;return o.classesMap=r({},this.classesMap),o.classesMap[t]=n,o},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter(function(t){return e.classesMap[t]}).join(\" \")},e}();t.CssClasses=i,t.isComponentStateless=function(e){return\"function\"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||\"object\"==typeof e&&e.$$typeof===(\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.memo\"):60115)};var l=null!=a.default.createRoot&&null!=a.default.flushSync;t.agFlushSync=function(e,t){l&&e?a.default.flushSync(t):t()}},64039:(e,t,n)=>{\"use strict\";var r=\"undefined\"!=typeof Symbol&&Symbol,o=n(41333);e.exports=function(){return\"function\"==typeof r&&\"function\"==typeof Symbol&&\"symbol\"==typeof r(\"foo\")&&\"symbol\"==typeof Symbol(\"bar\")&&o()}},64051:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"x-pseudo\",{months:\"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér\".split(\"_\"),monthsShort:\"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc\".split(\"_\"),monthsParseExact:!0,weekdays:\"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý\".split(\"_\"),weekdaysShort:\"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát\".split(\"_\"),weekdaysMin:\"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[T~ódá~ý át] LT\",nextDay:\"[T~ómó~rró~w át] LT\",nextWeek:\"dddd [át] LT\",lastDay:\"[Ý~ést~érdá~ý át] LT\",lastWeek:\"[L~ást] dddd [át] LT\",sameElse:\"L\"},relativeTime:{future:\"í~ñ %s\",past:\"%s á~gó\",s:\"á ~féw ~sécó~ñds\",ss:\"%d s~écóñ~ds\",m:\"á ~míñ~úté\",mm:\"%d m~íñú~tés\",h:\"á~ñ hó~úr\",hh:\"%d h~óúrs\",d:\"á ~dáý\",dd:\"%d d~áýs\",M:\"á ~móñ~th\",MM:\"%d m~óñt~hs\",y:\"á ~ýéár\",yy:\"%d ý~éárs\"},dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},64117:e=>{\"use strict\";e.exports=function(e){return null==e}},64121:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>m}),n(52675),n(89463),n(2259),n(23792),n(62062),n(26910),n(94170),n(62010),n(69085),n(26099),n(47764),n(62953);var r=n(72048),o=n(2071),a=n(73896),i=n(14073),l=n(66848),s=n(81970),u=n.n(s),c=n(6398),d=n(17630),p=(0,c.A)({custom_select:{width:\"100%\",height:40,border:\"1px solid \".concat(d.w.palette.grey[300]),color:\"\".concat(d.w.palette.grey[500],\" !important\"),backgroundColor:\"\".concat(d.w.palette.secondary.main),font:\"normal normal 400 14px NotoSans-Regular !important\",\"&.Mui-focused\":{border:\"1px solid \".concat(d.w.palette.grey[300])},\"&:focus-visible\":{outline:\"none\"},\"& .MuiSelect-select \":{padding:\"10px\",\"& .defaultPlaceholder\":{color:\"#757575\"}},\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .Mui-disabled\":{opacity:\"0.7\",cursor:\"not-allowed !important\"}},Select:{\"&.MuiPaper-root\":{backgroundColor:d.w.palette.secondary.dark,borderRadius:d.w.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",transition:\"none !important\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& .MuiMenu-list\":{maxHeight:\"200px\"}},\"& ul\":{\"& li\":{padding:\"6px 16px\",\"& .css-1uduoix-MuiButtonBase-root-MuiCheckbox-root.Mui-checked\":{color:d.w.palette.success.main},\"& p\":{font:\"normal normal 400 14px NotoSans-Regular\",color:d.w.palette.info.dark,whiteSpace:\"break-spaces\"}}}},selectExpandMore:{position:\"absolute\",right:\"6px\",fontSize:20}});function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function g(e){return g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},g(e)}var h=function(e){var t,n=p(),s=null!=e&&e.isSortReq?null==e||null===(t=e.options)||void 0===t?void 0:t.sort(function(e,t){return e.label.localeCompare(t.label)}):e.options;return u().createElement(o.A,{\"data-testid\":\"dropdown-select\",autoWidth:!1,name:e.name,className:n.custom_select,style:null==e?void 0:e.customClassName,MenuProps:{classes:{paper:n.Select}},onChange:function(t){var n=t.target,r=n.name,o=n.value;e.onChange(r,o)},IconComponent:function(e){return u().createElement(r.A,f({},e,{className:n.selectExpandMore}))},value:e.value||e.selectedOption?e.value:e.defaultLabel,renderValue:function(t){return function(t){var n;return t&&\"object\"===g(t)&&e.labelKey?t[e.labelKey]||t:\"string\"==typeof t&&t.toLowerCase()===(null===(n=e.defaultLabel)||void 0===n?void 0:n.toLowerCase())?u().createElement(\"span\",{className:\"defaultPlaceholder\"},e.defaultLabel):t}(t)},disabled:e.isDisabled,displayEmpty:!0},s&&s.length>0&&s.map(function(t,n){return u().createElement(a.A,{key:t[null==e?void 0:e.labelKey],value:t},u().createElement(i.A,{className:\"\",variant:\"body1\",fontSize:14},e.displayRadioButton?u().createElement(u().Fragment,null,\"value=\",e.labelKey&&t[e.labelKey],\"control=\",u().createElement(l.A,{checked:e.selectedOption&&e.labelKey&&e.selectedOption[e.labelKey]===t[e.labelKey]||e.labelKey&&e.selectedOption===t[e.labelKey]}),\"label=\",e.labelKey&&t[e.labelKey]||t):e.labelKey&&t[e.labelKey]||t))}))};const m=u().memo(h)},64137:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(52332),u=n(25669),c=n(11848),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiTable\",e)}(0,d.A)(\"MuiTable\",[\"root\",\"stickyHeader\"]);var g=n(74848);const h=[\"className\",\"component\",\"padding\",\"size\",\"stickyHeader\"],m=(0,c.Ay)(\"table\",{name:\"MuiTable\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,o.A)({display:\"table\",width:\"100%\",borderCollapse:\"collapse\",borderSpacing:0,\"& caption\":(0,o.A)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:\"left\",captionSide:\"bottom\"})},t.stickyHeader&&{borderCollapse:\"separate\"})),v=\"table\",A=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiTable\"}),{className:c,component:d=v,padding:p=\"normal\",size:A=\"medium\",stickyHeader:y=!1}=n,E=(0,r.A)(n,h),b=(0,o.A)({},n,{component:d,padding:p,size:A,stickyHeader:y}),_=(e=>{const{classes:t,stickyHeader:n}=e,r={root:[\"root\",n&&\"stickyHeader\"]};return(0,l.A)(r,f,t)})(b),C=a.useMemo(()=>({padding:p,size:A,stickyHeader:y}),[p,A,y]);return(0,g.jsx)(s.A.Provider,{value:C,children:(0,g.jsx)(m,(0,o.A)({as:d,role:d===v?null:\"table\",ref:t,className:(0,i.A)(_.root,c),ownerState:b},E))})})},64194:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},64226:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"cy\",{months:\"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr\".split(\"_\"),monthsShort:\"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag\".split(\"_\"),weekdays:\"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn\".split(\"_\"),weekdaysShort:\"Sul_Llun_Maw_Mer_Iau_Gwe_Sad\".split(\"_\"),weekdaysMin:\"Su_Ll_Ma_Me_Ia_Gw_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Heddiw am] LT\",nextDay:\"[Yfory am] LT\",nextWeek:\"dddd [am] LT\",lastDay:\"[Ddoe am] LT\",lastWeek:\"dddd [diwethaf am] LT\",sameElse:\"L\"},relativeTime:{future:\"mewn %s\",past:\"%s yn ôl\",s:\"ychydig eiliadau\",ss:\"%d eiliad\",m:\"munud\",mm:\"%d munud\",h:\"awr\",hh:\"%d awr\",d:\"diwrnod\",dd:\"%d diwrnod\",M:\"mis\",MM:\"%d mis\",y:\"blwyddyn\",yy:\"%d flynedd\"},dayOfMonthOrdinalParse:/\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=\"\";return e>20?t=40===e||50===e||60===e||80===e||100===e?\"fed\":\"ain\":e>0&&(t=[\"\",\"af\",\"il\",\"ydd\",\"ydd\",\"ed\",\"ed\",\"ed\",\"fed\",\"fed\",\"fed\",\"eg\",\"fed\",\"eg\",\"eg\",\"fed\",\"eg\",\"eg\",\"fed\",\"eg\",\"fed\"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},64233:e=>{e.exports=function(){}},64346:(e,t,n)=>{\"use strict\";n(46518)({target:\"Array\",stat:!0},{isArray:n(34376)})},64422:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>G}),n(50113),n(62062),n(72712),n(34782),n(26099);var r=n(8239),o=n(81970),a=n.n(o),i=n(89994),l=(n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(3362),n(27495),n(38781),n(99449),n(21699),n(47764),n(23500),n(62953),n(3296),n(27208),n(48408),n(87509)),s=n(76167),u=n(28161),c=n(14073),d=n(6347),p=n(90815),f=n(71083),g=n(56203),h=n(34358),m=n(47225),v=n(70380),A=n(13075),y=n(15664),E=n(27386),b=n(76906),_=n(19021),C=n(35165),w=(n(50778),n(49799)),S=n(12794),T=n(15001),O=n(17630),D=n(36874);const R=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,r=e.documents,o=e.onDocClick,i=e.docType;return a().createElement(D.A,{isDrawerOpen:t,anchor:\"right\"},a().createElement(u.A,{className:\"popupMain\"},a().createElement(p.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},a().createElement(c.A,{component:\"h1\",variant:\"h1\"},i,\" \",(0,g.t)(\"DOCUMENTS\")),a().createElement(u.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return n()}},a().createElement(c.A,{className:\"icon-close closeIcon\"}))),a().createElement(c.A,{variant:\"h4\"},null==r?void 0:r.length,\" \",(0,g.t)(\"LOWER_DOCUMENTS\")),a().createElement(w.A,{className:\"document-view-lits\"},null==r?void 0:r.map(function(e){return a().createElement(S.Ay,{key:e,\"data-testid\":\"onDocClick\",onClick:function(){return o(e)},color:O.w.palette.info.light},a().createElement(l.A,{className:\"text-info\"}),a().createElement(T.A,{href:null==e?void 0:e.link,target:\"_blank\",underline:\"none\"},e.split(\"/\").slice(-1)[0]))})),\" \"))};var N=n(6372),L=n(8845);const P=function(e){var t,n=e.isDrawerOpen,r=e.onRequestClose,o=e.documents,i=e.onPdfChange,l=e.selectedPdf,s=e.docType,d=null==l||null===(t=l.fileName)||void 0===t?void 0:t.split(\"/\").slice(-1)[0];return a().createElement(D.A,{isDrawerOpen:n,anchor:\"right\"},a().createElement(u.A,{className:\"popupMain customWidth\"},a().createElement(p.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},a().createElement(c.A,{component:\"h1\",variant:\"h1\"},s,\" \",(0,g.t)(\"DOCUMENTS\")),a().createElement(u.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return r()}},a().createElement(c.A,{className:\"icon-close closeIcon\"}))),a().createElement(c.A,{variant:\"h4\"},null==o?void 0:o.length,\" pdfs\"),a().createElement(p.A,{direction:\"row\",gap:2},a().createElement(w.A,{className:\"document-view-lits pdf-view-wrapper\"},null==o?void 0:o.map(function(e,t){return a().createElement(S.Ay,{key:e,\"data-testid\":\"onDocClick\",onClick:function(){return i(e)},color:O.w.palette.info.light,className:e===l.fileName?\"currently-viewing\":\"\"},a().createElement(L.A,{className:\"text-error\"}),a().createElement(c.A,{className:\"pdf-file-name\"},e.split(\"/\").slice(-1)[0]))})),a().createElement(u.A,{className:\"iframe-container\"},a().createElement(\"iframe\",{src:\"\".concat(l.url,\"#toolbar=0\"),width:\"100%\",height:\"100%\",type:\"application/pdf\",title:\"PDF Viewer\",style:{background:\"white\"}}))),a().createElement(p.A,{direction:\"row\",gap:2,className:\"downloadPdfBtn\"},a().createElement(y.A,{startIcon:a().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:(0,g.t)(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return(0,A.aq)(l.url,d)},type:\"submit\"}))))};var M=n(74353),x=n.n(M);function I(e){return I=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},I(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=I(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=I(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==I(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var U=function(e){var t,n,w,S,T,O,D,L,M,I,k,F,H,U,Y=e.shopDocuments,G=e.fromKycReatiler,z=e.getUploadedDocument,V=e.isEditDetailsMode,q=e.disabledFields,W=e.onDocumentsChange,Q=e.isKycVerified,K=(0,o.useContext)(m.v),$=K.BackOfficeProps,X=$.globalStore.User,J=$.baseurl,Z=K.triggerShowLoader,ee=null!==(t=null==q?void 0:q.includes(132))&&void 0!==t&&t,te=j((0,o.useState)({url:\"\",fileName:\"\"}),2),ne=te[0],re=te[1],oe=j((0,o.useState)(\"\"),2),ae=oe[0],ie=oe[1],le=j((0,o.useState)({}),2),se=le[0],ue=le[1],ce=j((0,o.useState)(),2),de=ce[0],pe=ce[1],fe=j((0,o.useState)(null),2),ge=fe[0],he=fe[1],me=j((0,o.useState)(\"\"),2),ve=me[0],Ae=me[1],ye=j((0,o.useState)(null),2),Ee=ye[0],be=ye[1],_e=null!=Y&&Y.expiry_date?x()(null==Y?void 0:Y.expiry_date,\"DD/MM/YYYY\"):\"\",Ce=\"\".concat(null==Y?void 0:Y.retailer_licence_type,\" \").concat((0,g.t)(\"REQ_DOC\")),we=function(){ie(\"\")},Se=function(e){var t=e.split(\"/\"),n={license_type_id:t[4],file_name:t[5],file_operation_type:\"DOWNLOAD\",retailerUUID:t[2]};(0,C.op)(X,J,Z,n).then(function(t){null!=t&&t.data&&function(e,t){var n;t.endsWith(\".pdf\")?null===(n=f.A.get(e,{responseType:\"arraybuffer\",headers:{\"Content-Type\":\"application/octet-stream\"}}))||void 0===n||n.then(function(e){var n=new Blob([e.data],{type:\"application/pdf\"}),r=URL.createObjectURL(n);re({url:r,fileName:t})}):f.A.get(e,{responseType:\"arraybuffer\",headers:{\"Content-Type\":\"application/octet-stream\"}}).then(function(e){var n=new Blob([e.data]),r=document.createElement(\"a\");r.href=URL.createObjectURL(n);var o=t.split(\"/\"),a=decodeURIComponent(o[o.length-1]);r.download=a,document.body.appendChild(r),r.click(),document.body.removeChild(r)})}(t.data,e)})};return(0,o.useEffect)(function(){!function(){var e;Ae(\"\");var t={pdfs:Y.documents.filter(function(e){return e.endsWith(\".pdf\")}),images:Y.documents.filter(function(e){return/\\.(png|jpg|jpeg|gif|bmp|tiff)$/i.test(e)}),documents:Y.documents.filter(function(e){return!e.endsWith(\".pdf\")&&!/\\.(png|jpg|jpeg|gif|bmp|tiff)$/i.test(e)})};ue(t);var n=null==t||null===(e=t.images)||void 0===e?void 0:e.map(function(e){var t=e.split(\"/\"),n={license_type_id:t[4],file_name:t[5],file_operation_type:\"DOWNLOAD\",retailerUUID:t[2]};return(0,C.op)(X,J,Z,n)});Promise.all(n).then(function(e){var t,n=null==e||null===(t=e.filter(function(e){var t;return!(null!=e&&null!==(t=e.data)&&void 0!==t&&t.errorMessage)}))||void 0===t?void 0:t.map(function(e){return f.A.get(e.data,{responseType:\"arraybuffer\"})});Promise.all(n).then(function(e){!function(e){var t=null==e?void 0:e.map(function(e){return t=null==e?void 0:e.data,n=new Blob([t],{type:\"image/png\"}),URL.createObjectURL(n);var t,n});pe(t)}(e)})})}()},[]),a().createElement(a().Fragment,null,a().createElement(r.Ay,{item:!0,xs:6},a().createElement(u.A,{className:\"user-detail-box document-details-box\"},a().createElement(r.Ay,{container:!0,columns:{xs:12},spacing:2},a().createElement(r.Ay,{item:!0,xs:6},a().createElement(u.A,{className:\"user-details-container\"},a().createElement(c.A,{variant:\"h5\",color:\"#1D2B3A\",mb:.5},null==Y?void 0:Y.retailer_licence_type,\" \",(0,g.t)(\"NUMBER\")),a().createElement(_.A,{onHandleChange:function(e){null==W||W(B(B({},Y),{},{modifiedNumber:e,isError:(0,A.rq)(e,Y)})),be((0,A.rq)(e,Y))},disabled:ee||Q,value:null==Y?void 0:Y.document_number,label:\"\",name:\"document_number\"}),a().createElement(d.A,{error:!0},Ee))),\"GST\"!==(null==Y?void 0:Y.code)&&a().createElement(r.Ay,{item:!0,xs:6},a().createElement(u.A,{className:\"user-details-container\"},a().createElement(c.A,{variant:\"h5\",color:\"#1D2B3A\",mb:.5},null==Y?void 0:Y.retailer_licence_type,\" \",(0,g.t)(\"EXPIRY_DATE\")),null!=Y&&Y.isUpload?a().createElement(b.A,{value:_e,defaultValue:_e,restrictManualEntry:!0,handleChangeDatePicker:function(e){null==W||W(B(B({},Y),{},{expiry_date:(0,v.Yq)(e,\"DD/MM/YYYY\")}))},minDate:null===v.Ax||void 0===v.Ax?void 0:v.Ax.todayDate}):a().createElement(_.A,{onHandleChange:function(){},disabled:!0,value:null!=Y&&Y.expiry_date?(0,v.Yq)(null==Y?void 0:Y.expiry_date,\"DD/MM/YYYY\"):\"NA\",label:\"\",name:\"expiry_date\"}))),!(null!=Y&&Y.isUpload)&&a().createElement(r.Ay,{item:!0,xs:12},a().createElement(u.A,{className:\"user-details-container\"},a().createElement(c.A,{variant:\"h5\",color:\"#1D2B3A\",mb:1},null==Y?void 0:Y.retailer_licence_type,\" \",(0,g.t)(\"DOCUMENTS\")),a().createElement(p.A,{direction:\"row\",justifyContent:\"start\",gap:2},null!=se&&null!==(n=se.images)&&void 0!==n&&n.length?a().createElement(u.A,{\"data-testid\":\"imageOnClick\",onClick:function(){ie(\"image\")},className:\"image-count-wrapper \".concat((null==se||null===(w=se.images)||void 0===w?void 0:w.length)>1?\"img-overlay\":\"\",\"  pointer\")},a().createElement(\"img\",{src:null!==(S=null==de?void 0:de[0])&&void 0!==S?S:\"\",alt:\"\",width:\"100%\",className:\"doc-icon\"}),(null==se||null===(T=se.images)||void 0===T?void 0:T.length)>1&&a().createElement(c.A,{className:\"images-count\"},\" + \",(null==se||null===(O=se.images)||void 0===O?void 0:O.length)-1)):a().createElement(u.A,null),null!=se&&null!==(D=se.pdfs)&&void 0!==D&&D.length?a().createElement(u.A,{\"data-testid\":\"pdfOnClick\",onClick:function(){ie(\"pdf\"),Se(se.pdfs[0])},className:\"image-count-wrapper \".concat((null==se||null===(L=se.pdfs)||void 0===L?void 0:L.length)>1?\"img-overlay\":\"\",\"  pointer\")},a().createElement(s.A,{className:\"text-error doc-icon\"}),(null==se||null===(M=se.pdfs)||void 0===M?void 0:M.length)>1&&a().createElement(c.A,{className:\"images-count\"},\" +\",(null==se||null===(I=se.pdfs)||void 0===I?void 0:I.length)-1)):a().createElement(a().Fragment,null),null!=se&&null!==(k=se.documents)&&void 0!==k&&k.length?a().createElement(u.A,{\"data-testid\":\"documentOnClick\",onClick:function(){ie(\"document\")},className:\"image-count-wrapper \".concat((null==se||null===(F=se.documents)||void 0===F?void 0:F.length)>1?\"img-overlay\":\"\",\"  pointer\")},a().createElement(l.A,{className:\"text-info doc-icon\"}),(null==se||null===(H=se.documents)||void 0===H?void 0:H.length)>1&&a().createElement(c.A,{className:\"images-count\"},\" +\",(null==se||null===(U=se.documents)||void 0===U?void 0:U.length)-1)):a().createElement(a().Fragment,null)))),a().createElement(r.Ay,{item:!0,xs:10},V&&(null==G?void 0:G.retailer_uuid)&&a().createElement(u.A,{className:\"input-card-body\"},a().createElement(c.A,{variant:\"h5\",color:\"#1D2B3A\",mb:1},(0,g.t)(\"UPLOAD_TEXT\"),\" \",null==Y?void 0:Y.retailer_licence_type,\" \",(0,g.t)(\"LOWER_DOCUMENTS\")),a().createElement(E.A,{onUploadSuccess:function(e){var t;t=e[0],(0,A.mi)(null==t?void 0:t.name)?(he(t),Ae(\"\")):Ae((0,g.t)(\"REQ_IMAGES\"))},selectedFile:ge,onRemoveHandler:function(){return he(null)}}),ve&&a().createElement(c.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},ve))),V&&(null==G?void 0:G.retailer_uuid)&&a().createElement(r.Ay,{item:!0,xs:2},a().createElement(u.A,{mt:4},a().createElement(y.A,{variant:\"contained\",buttonName:(0,g.t)(\"UPLOAD_FILE_TEXT\"),onButtonClick:function(){var e,t,n;ge&&null!=Y&&Y.document_number&&!Ee?(n={license_type_id:null==(t=Y)?void 0:t.licenceTypeId,file_name:(0,A.rb)(null==ge?void 0:ge.name),file_operation_type:\"UPLOAD\",retailerUUID:null==G?void 0:G.retailer_uuid},(0,C.op)(X,J,Z,n).then(function(e){var n;null!=e&&e.data&&(null===(n=(0,h.i3)(e.data,ge))||void 0===n||n.then(function(n){var r,o,a,l=null==e||null===(r=e.data)||void 0===r?void 0:r.indexOf(\"/retailerDocuments/\"),s=(null==e||null===(o=e.data)||void 0===o?void 0:o.indexOf((0,A.rb)(null==ge?void 0:ge.name)))+(0,A.rb)(null==ge?void 0:ge.name).length,u=null==e||null===(a=e.data)||void 0===a?void 0:a.substring(l,s);if(200===n.status){he(null);var c={id:t.id,retailer_licence_type:t.retailer_licence_type,document_file_key:u,document_number:t.document_number,expiry_date:(0,i.zy)(null==t?void 0:t.expiry_date),document_file_url:null==e?void 0:e.data,code:t.code};z(c),Ae(\"\")}}))})):(e=(0,A.rq)(\"\",Y),null!=Y&&Y.document_number||be(e),ge||Ae(Ce))},fullwidth:!1,color:\"primary\"})))))),a().createElement(N.A,{docType:null==Y?void 0:Y.retailer_licence_type,isDrawerOpen:\"image\"==ae,documents:de,onRequestClose:we}),a().createElement(R,{docType:null==Y?void 0:Y.retailer_licence_type,isDrawerOpen:\"document\"==ae,documents:se.documents,onDocClick:Se,onRequestClose:we}),a().createElement(P,{docType:null==Y?void 0:Y.retailer_licence_type,isDrawerOpen:\"pdf\"==ae,documents:se.pdfs,selectedPdf:ne,onPdfChange:Se,onRequestClose:we}))};const Y=a().memo(U),G=function(e){var t,n=e.retailerDocuments,o=e.fromKycReatiler,l=e.getUploadedDocument,s=e.isEditDetailsMode,u=e.disabledFields,c=e.onDocumentsChange,d=e.isKycVerified,p=null==n?void 0:n.reduce(function(e,t){var n=t.document_number,r=t.document_file_key.split(\"/\").slice(-2)[0],o=e.find(function(e){return e.document_number===n&&e.licenceTypeId===r});return o?o.documents.push(t.document_file_key):e.push({retailer_licence_type:t.retailer_licence_type,documents:[t.document_file_key],document_number:t.document_number,expiry_date:t.expiry_date,licenceTypeId:r,code:t.code,id:t.id,documentIndex:null==t?void 0:t.documentIndex,isUpload:null==t?void 0:t.isUpload}),e},[]);return a().createElement(r.Ay,{container:!0,columns:{xs:12},spacing:2},null===(t=(0,i.JQ)(p))||void 0===t?void 0:t.map(function(e,t){return a().createElement(a().Fragment,null,(s&&(null==e?void 0:e.isUpload)||!(null!=e&&e.isUpload))&&a().createElement(Y,{onDocumentsChange:c,disabledFields:u,key:null==e?void 0:e.id,shopDocuments:e,fromKycReatiler:o,getUploadedDocument:l,isEditDetailsMode:s,isKycVerified:d}))}))}},64436:(e,t,n)=>{\"use strict\";function r(e){return null==e||\"\"===e?null:e}function o(e,t){return void 0===t&&(t=!1),null!=e&&(\"\"!==e||t)}function a(e){return!o(e)}function i(e){return null==e||0===e.length}function l(e){return null!=e&&\"function\"==typeof e.toString?e.toString():null}function s(e){if(void 0!==e){if(null===e||\"\"===e)return null;if(\"number\"==typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&\"\"!==e&&(\"boolean\"==typeof e?e:/true/i.test(e))}function c(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach(function(e){return t.push(e)}),t}return Object.values(e)}n.r(t),n.d(t,{AbstractHeaderCellCtrl:()=>ju,AgAbstractField:()=>Ro,AgAbstractLabel:()=>Oo,AgCheckbox:()=>Yo,AgDialog:()=>rp,AgGroupComponent:()=>Id,AgInputNumberField:()=>pa,AgInputRange:()=>Rd,AgInputTextArea:()=>Od,AgInputTextField:()=>ca,AgMenuItemComponent:()=>Xd,AgMenuList:()=>qd,AgMenuPanel:()=>Qd,AgPanel:()=>ep,AgPickerField:()=>Po,AgPromise:()=>qr,AgPromiseStatus:()=>Hr,AgRadioButton:()=>zo,AgSelect:()=>Bo,AgSlider:()=>Pd,AgStackComponentsRegistry:()=>Rt,AgToggleButton:()=>Sd,AlignedGridsService:()=>Op,AllCommunityModules:()=>$h,AnimateShowChangeCellRenderer:()=>Za,AnimateSlideCellRenderer:()=>ti,AnimationFrameService:()=>Vc,AutoScrollService:()=>Ll,AutoWidthCalculator:()=>Qc,Autowired:()=>q,BarColumnLabelPlacement:()=>Pg,BaseComponentWrapper:()=>Yg,BaseCreator:()=>xh,BaseGridSerializingSession:()=>Ih,Bean:()=>V,BeanStub:()=>ke,Beans:()=>es,BodyDropPivotTarget:()=>Au,BodyDropTarget:()=>Cu,CHART_TOOLBAR_ALLOW_LIST:()=>Vg,CHART_TOOL_PANEL_ALLOW_LIST:()=>zg,CHART_TOOL_PANEL_MENU_OPTIONS:()=>qg,CellComp:()=>cu,CellCtrl:()=>cs,CellNavigationService:()=>wp,CellPositionUtils:()=>qf,CellRangeType:()=>Hl,ChangedPath:()=>pd,CheckboxSelectionComponent:()=>li,ClientSideRowModelModule:()=>Ch,ClientSideRowModelSteps:()=>ll,ColDefUtil:()=>He,Column:()=>ie,ColumnApi:()=>Mp,ColumnFactory:()=>je,ColumnGroup:()=>ot,ColumnKeyCreator:()=>p,ColumnModel:()=>Ct,ColumnUtils:()=>St,Component:()=>no,ComponentUtil:()=>We,Context:()=>U,CssClassApplier:()=>Su,CssClassManager:()=>Jr,CsvCreator:()=>Uh,CsvExportModule:()=>Vh,CtrlsService:()=>pg,CustomTooltipFeature:()=>Xr,DEFAULT_CHART_GROUPS:()=>Gg,DateFilter:()=>ta,DisplayedGroupCreator:()=>Ot,Downloader:()=>kh,DragAndDropService:()=>pi,DragService:()=>cl,DragSourceType:()=>ma,Environment:()=>Rf,EventService:()=>ee,Events:()=>Ue,ExcelFactoryMode:()=>di,ExpressionService:()=>jp,FilterManager:()=>Al,FloatingFilterMapper:()=>nl,FocusService:()=>sp,GROUP_AUTO_COLUMN_ID:()=>st,Grid:()=>Hg,GridApi:()=>gl,GridBodyComp:()=>$s,GridBodyCtrl:()=>Gl,GridComp:()=>Xp,GridCoreCreator:()=>Ug,GridCtrl:()=>Qp,GridHeaderComp:()=>Rc,GridHeaderCtrl:()=>Oc,GridOptionsService:()=>Mg,GridSerializer:()=>zh,GroupCellRenderer:()=>Si,GroupCellRendererCtrl:()=>_i,GroupInstanceIdCreator:()=>at,HeaderCellCtrl:()=>nc,HeaderFilterCellComp:()=>Cl,HeaderFilterCellCtrl:()=>Wu,HeaderGroupCellCtrl:()=>cc,HeaderNavigationDirection:()=>xu,HeaderNavigationService:()=>wc,HeaderPositionUtils:()=>og,HeaderRowComp:()=>Iu,HeaderRowContainerComp:()=>bc,HeaderRowContainerCtrl:()=>Ac,HeaderRowCtrl:()=>gc,HeaderRowType:()=>Ys,HorizontalDirection:()=>Aa,HorizontalResizeService:()=>Pc,InfiniteRowModelModule:()=>Mh,KeyCode:()=>Rr,LargeTextCellEditor:()=>qa,LayoutCssClasses:()=>fl,LocaleService:()=>Ig,Logger:()=>Vp,LoggerFactory:()=>zp,ManagedFocusFeature:()=>vo,ModuleNames:()=>X,ModuleRegistry:()=>te,MouseEventService:()=>nu,MoveColumnFeature:()=>Eu,NavigationService:()=>iu,NumberFilter:()=>ya,NumberSequence:()=>zr,Optional:()=>W,PaginationProxy:()=>Ed,PinnedRowModel:()=>cd,PopupComponent:()=>za,PopupEditorWrapper:()=>su,PopupService:()=>gp,PositionableFeature:()=>_o,PostConstruct:()=>G,PreConstruct:()=>Y,PreDestroy:()=>z,PropertyKeys:()=>ze,ProvidedColumnGroup:()=>le,ProvidedFilter:()=>So,Qualifier:()=>K,QuerySelector:()=>ro,RefSelector:()=>oo,ResizeObserverService:()=>Yc,RowAnimationCssClasses:()=>Sl,RowContainerComp:()=>mu,RowContainerCtrl:()=>qs,RowContainerName:()=>fs,RowContainerType:()=>gs,RowCtrl:()=>ms,RowHighlightPosition:()=>il,RowNode:()=>ri,RowNodeBlock:()=>gd,RowNodeBlockLoader:()=>vd,RowNodeSorter:()=>cg,RowPositionUtils:()=>zf,RowRenderer:()=>rd,RowType:()=>rh,ScalarFilter:()=>$o,ScrollVisibleService:()=>Zs,SelectCellEditor:()=>Ka,SelectableService:()=>If,SelectionHandleType:()=>jl,ServerSideTransactionResultStatus:()=>Hc,SetLeftFeature:()=>Uu,SimpleFilter:()=>Qo,SortController:()=>nf,SortIndicatorComp:()=>ka,StandardMenuFactory:()=>Ic,StylingService:()=>Cd,TabGuardClassNames:()=>dd,TabGuardComp:()=>Yd,TabGuardCtrl:()=>jd,TabbedLayout:()=>Fc,TemplateService:()=>Up,TextCellEditor:()=>Xa,TextFilter:()=>Ca,TextFloatingFilter:()=>Pa,Timer:()=>Wr,TouchListener:()=>Ma,UserComponentFactory:()=>al,UserComponentRegistry:()=>Fi,ValueCache:()=>gf,ValueFormatterService:()=>ld,ValueService:()=>kp,VanillaFrameworkOverrides:()=>Ep,VerticalDirection:()=>va,VirtualList:()=>vp,XmlFactory:()=>Wh,ZipContainer:()=>Kh,_:()=>Gr,__FORCE_MODULE_DETECTION:()=>Wg,getRowContainerTypeForName:()=>Us,simpleHttpRequest:()=>jc});var d=Object.freeze({__proto__:null,makeNull:r,exists:o,missing:a,missingOrEmpty:i,toStringOrNull:l,attrToNumber:s,attrToBoolean:u,attrToString:function(e){if(null!=e&&\"\"!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&(null==e||null!=t)&&e===t},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:function(e,t,n){void 0===n&&(n=!1);var r=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function a(e,t){return e>t?1:e<t?-1:0}if(\"string\"!=typeof e)return a(e,t);if(!n)return a(e,t);try{return e.localeCompare(t)}catch(n){return a(e,t)}},values:c}),p=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=l(e);for(var n=0;;){var r=void 0;if(e?(r=e,0!==n&&(r+=\"_\"+n)):t?(r=t,0!==n&&(r+=\"_\"+n)):r=\"\"+n,!this.existingKeys[r])return this.existingKeys[r]=!0,r;n++}},e}();function f(e,t){null!=e&&(Array.isArray(e)?e.forEach(function(e,n){return t(\"\"+n,e)}):Object.keys(e).forEach(function(n){return t(n,e[n])}))}function g(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],a=e[o];t[o]=a}return t}function h(e,t){if(e){var n=e,r={};return Object.keys(n).forEach(function(e){if(!(t&&t.indexOf(e)>=0)){var o=n[e],a=w(o)&&o.constructor===Object;r[e]=a?h(o):o}}),r}}function m(e,t){return e[t]}function v(e,t,n){e[t]=n}function A(e,t,n,r){var o=m(e,n);void 0!==o&&v(t,n,r?r(o):o)}function y(e){var t={};return e.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(e){return t[e]=null})}),Object.keys(t)}function E(e){if(!e)return[];var t=Object;if(\"function\"==typeof t.values)return t.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&n.push(e[r]);return n}function b(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1),o(t)&&f(t,function(t,o){var a=e[t];a!==o&&(r&&null==a&&null!=o&&\"object\"==typeof o&&o.constructor===Object&&(a={},e[t]=a),w(o)&&w(a)&&!Array.isArray(a)?b(a,o,n,r):(n||void 0!==o)&&(e[t]=o))})}function _(e,t,n){if(t&&e){if(!n)return e[t];for(var r=t.split(\".\"),o=e,a=0;a<r.length;a++){if(null==o)return;o=o[r[a]]}return o}}function C(e,t){Object.keys(e).forEach(function(t){\"object\"==typeof e[t]&&(e[t]=void 0)});var n=Object.getPrototypeOf(e),r={};Object.keys(n).forEach(function(e){\"function\"==typeof n[e]&&(r[e]={value:function(){console.warn(\"AG Grid: \"+t+\" function \"+e+\"() cannot be called as the grid has been destroyed.\\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\\n                     when the grid is destroyed.\")},writable:!0})}),Object.defineProperties(e,r)}function w(e){return\"object\"==typeof e&&null!==e}var S=Object.freeze({__proto__:null,iterateObject:f,cloneObject:g,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:h,getProperty:m,setProperty:v,copyPropertiesIfPresent:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];n.forEach(function(n){return A(e,t,n)})},copyPropertyIfPresent:A,getAllKeysInObjects:y,getAllValuesInObject:E,mergeDeep:b,missingOrEmptyObject:function(e){return a(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var r=t.split(\".\"),o=e;r.length>1;)if(null==(o=o[r.shift()]))return n;var a=o[r[0]];return null!=a?a:n},set:function(e,t,n){if(null!=e){var r=t.split(\".\"),o=e;r.forEach(function(e,t){o[e]||(o[e]={}),t<r.length-1&&(o=o[e])}),o[r[r.length-1]]=n}},getValueUsingField:_,removeAllReferences:C,isNonNullObject:w}),T={};function O(e,t){T[t]||(e(),T[t]=!0)}function D(e){if(e.name)return e.name;var t=/function\\s+([^\\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function R(e){return!!(e&&e.constructor&&e.call&&e.apply)}function N(e){x(e,400)}var L=[],P=!1;function M(e){L.push(e),P||(P=!0,window.setTimeout(function(){var e=L.slice();L.length=0,P=!1,e.forEach(function(e){return e()})},0))}function x(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout(function(){return e.forEach(function(e){return e()})},t)}function I(e,t){var n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=this;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(a,r)},t)}}function k(e,t){var n=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=(new Date).getTime();a-n<t||(n=a,e.apply(this,r))}}function B(e,t,n,r){void 0===n&&(n=100);var o=(new Date).getTime(),a=null,i=!1,l=function(){var l=(new Date).getTime()-o>n;(e()||l)&&(t(),i=!0,null!=a&&(window.clearInterval(a),a=null),l&&r&&console.warn(r))};l(),i||(a=window.setInterval(l,10))}function F(e){e&&e()}var j=Object.freeze({__proto__:null,doOnce:O,getFunctionName:D,isFunction:R,executeInAWhile:N,executeNextVMTurn:M,executeAfter:x,debounce:I,throttle:k,waitUntil:B,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce(function(e,t){return t(e)},t)}},callIfPresent:F,noop:function(){}}),H=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},U=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(\">> creating ag-Application Context\"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(\">> ag-Application Context ready - component is alive\")}}return e.prototype.getBeanInstances=function(){return c(this.beanWrappers).map(function(e){return e.beanInstance})},e.prototype.createBean=function(e,t){if(!e)throw Error(\"Can't wire to bean since it is null\");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,\"preConstructMethods\"),o(t)&&e.forEach(t),this.callLifeCycleMethods(e,\"postConstructMethods\")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),f(this.beanWrappers,function(t,n){var r;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var o=e.getBeansForParameters(r,n.bean.name),a=new(n.bean.bind.apply(n.bean,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(H(arguments[t]));return e}([null],o)));n.beanInstance=a});var t=Object.keys(this.beanWrappers).join(\", \");this.logger.log(\"created beans: \"+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n;return n=e.prototype.constructor?D(e.prototype.constructor):\"\"+e,void console.error(\"Context item \"+n+\" is not a bean\")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(n,r){var o=n.agClassAttributes;o&&o.forEach(function(n){var o=t.lookupBeanInstance(r,n.beanName,n.optional);e[n.attributeName]=o})})})},e.prototype.methodWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(n,r){f(n.autowireMethods,function(n,o){if(\"agConstructor\"!==n){var a=t.getBeansForParameters(o,r);e[n].apply(e,a)}})})})},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var r=n.constructor;r.hasOwnProperty(\"__agBeanMetaData\")&&t(r.__agBeanMetaData,this.getBeanName(r)),n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf(\"(\"))},e.prototype.getBeansForParameters=function(e,t){var n=this,r=[];return e&&f(e,function(e,o){var a=n.lookupBeanInstance(t,o);r[Number(e)]=a}),r},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),\"context\"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(n||console.error(\"AG Grid: unable to find bean reference \"+t+\" while initialising \"+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach(function(e){return n.callLifeCycleMethodsOnBean(e,t)})},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var r={};this.forEachMetaDataInHierarchy(e,function(e){var o=e[t];o&&o.forEach(function(e){e!=n&&(r[e]=!0)})}),Object.keys(r).forEach(function(t){return e[t]()})},e.prototype.getBean=function(e){return this.lookupBeanInstance(\"getBean\",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(\">> Shutting down ag-Application Context\");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(\">> ag-Application Context shut down - component is dead\")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach(function(e){t.callLifeCycleMethodsOnBean(e,\"preDestroyMethods\",\"destroy\");var n=e;\"function\"==typeof n.destroy&&n.destroy()}),[]):[]},e}();function Y(e,t,n){var r=$(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function G(e,t,n){var r=$(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function z(e,t,n){var r=$(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function V(e){return function(t){$(t).beanName=e}}function q(e){return function(t,n,r){Q(t,e,!1,0,n,null)}}function W(e){return function(t,n,r){Q(t,e,!0,0,n,null)}}function Q(e,t,n,r,o,a){if(null!==t)if(\"number\"!=typeof a){var i=$(e.constructor);i.agClassAttributes||(i.agClassAttributes=[]),i.agClassAttributes.push({attributeName:o,beanName:t,optional:n})}else console.error(\"AG Grid: Autowired should be on an attribute\");else console.error(\"AG Grid: Autowired name should not be null\")}function K(e){return function(t,n,r){var o,a=\"function\"==typeof t?t:t.constructor;if(\"number\"==typeof r){var i=void 0;n?(o=$(a),i=n):(o=$(a),i=\"agConstructor\"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[i]||(o.autowireMethods[i]={}),o.autowireMethods[i][r]=e}}}function $(e){return e.hasOwnProperty(\"__agBeanMetaData\")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var X,J=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Z=function(e,t){return function(n,r){t(n,r,e)}},ee=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,r){if(void 0===r&&(r=null),this.frameworkOverrides=n,this.gridOptionsService=t,r){var o=t.useAsyncEvents();this.addGlobalListener(r,o)}},e.prototype.getListeners=function(e,t,n){var r=t?this.allAsyncListeners:this.allSyncListeners,o=r.get(e);return!o&&n&&(o=new Set,r.set(e,o)),o},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var r=this.getListeners(e,n,!1);r&&(r.delete(t),0===r.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var t=e;if(this.gridOptionsService){var n=this.gridOptionsService,r=n.api,o=n.columnApi,a=n.context;t.api=r,t.columnApi=o,t.context=a}this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,r=e.type;if(t&&\"event\"in e){var o=e.event;o instanceof Event&&(e.eventPath=o.composedPath())}var a=this.getListeners(r,t,!1);a&&function(r){r.forEach(function(r){t?n.dispatchAsync(function(){return r(e)}):r(e)})}(a),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(o){t?n.dispatchAsync(function(){return n.frameworkOverrides.dispatchEvent(r,function(){return o(r,e)},!0)}):n.frameworkOverrides.dispatchEvent(r,function(){return o(r,e)},!0)})},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(function(e){return e()})},J([Z(0,K(\"loggerFactory\")),Z(1,K(\"gridOptionsService\")),Z(2,K(\"frameworkOverrides\")),Z(3,K(\"globalEventListener\"))],e.prototype,\"setBeans\",null),J([V(\"eventService\")],e)}();!function(e){e.CommunityCoreModule=\"@ag-grid-community/core\",e.InfiniteRowModelModule=\"@ag-grid-community/infinite-row-model\",e.ClientSideRowModelModule=\"@ag-grid-community/client-side-row-model\",e.CsvExportModule=\"@ag-grid-community/csv-export\",e.EnterpriseCoreModule=\"@ag-grid-enterprise/core\",e.RowGroupingModule=\"@ag-grid-enterprise/row-grouping\",e.ColumnsToolPanelModule=\"@ag-grid-enterprise/column-tool-panel\",e.FiltersToolPanelModule=\"@ag-grid-enterprise/filter-tool-panel\",e.MenuModule=\"@ag-grid-enterprise/menu\",e.SetFilterModule=\"@ag-grid-enterprise/set-filter\",e.MultiFilterModule=\"@ag-grid-enterprise/multi-filter\",e.StatusBarModule=\"@ag-grid-enterprise/status-bar\",e.SideBarModule=\"@ag-grid-enterprise/side-bar\",e.RangeSelectionModule=\"@ag-grid-enterprise/range-selection\",e.MasterDetailModule=\"@ag-grid-enterprise/master-detail\",e.RichSelectModule=\"@ag-grid-enterprise/rich-select\",e.GridChartsModule=\"@ag-grid-enterprise/charts\",e.ViewportRowModelModule=\"@ag-grid-enterprise/viewport-row-model\",e.ServerSideRowModelModule=\"@ag-grid-enterprise/server-side-row-model\",e.ExcelExportModule=\"@ag-grid-enterprise/excel-export\",e.ClipboardModule=\"@ag-grid-enterprise/clipboard\",e.SparklinesModule=\"@ag-grid-enterprise/sparklines\",e.AngularModule=\"@ag-grid-community/angular\",e.ReactModule=\"@ag-grid-community/react\",e.VueModule=\"@ag-grid-community/vue\"}(X||(X={}));var te=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.runVersionChecks(t),e.modulesMap[t.moduleName]=t,e.setModuleBased(n)},e.runVersionChecks=function(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?t.version!==e.currentModuleVersion&&console.error(\"AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '\"+t.moduleName+\"' is version \"+t.version+\" but the other modules are version \"+this.currentModuleVersion+\". Please update all modules to the same version.\"):console.error(\"AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '\"+t.moduleName+\"' is incompatible. Please update all modules to the same version.\"),t.validate){var n=t.validate();if(!n.isValid){var r=n;console.error(\"AG Grid: \"+r.message)}}},e.setModuleBased=function(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&O(function(){console.warn(\"AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms.\"),console.warn(\"Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.\")},\"ModulePackageCheck\")},e.setIsBundled=function(){e.isBundled=!0},e.registerModules=function(t,n){void 0===n&&(n=!0),e.setModuleBased(n),t&&t.forEach(function(t){return e.register(t,n)})},e.assertRegistered=function(t,n){var r;if(this.isRegistered(t))return!0;var o,a=n+t;if(e.isBundled)o=\"AG Grid: unable to use \"+n+\" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\\n        \\n        <script src=\\\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\\\"><\\/script>\\n        \\nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise\";else if(e.moduleBased||void 0===e.moduleBased){var i=null===(r=Object.entries(X).find(function(e){var n=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(e,2);return n[0],n[1]===t}))||void 0===r?void 0:r[0];o=\"AG Grid: unable to use \"+n+\" as the \"+i+\" is not registered. Check if you have registered the module:\\n           \\n    import { ModuleRegistry } from '@ag-grid-community/core';\\n    import { \"+i+\" } from '\"+t+\"';\\n    \\n    ModuleRegistry.registerModules([ \"+i+\" ]);\\n\\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/\"}else o=\"AG Grid: unable to use \"+n+\" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\\n            \\n    import 'ag-grid-enterprise';\\n            \\nFor more info see: https://www.ag-grid.com/javascript-grid/packages/\";return O(function(){console.warn(o)},a),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return c(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ne=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},re=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},oe=0;function ae(){return oe++}var ie=function(){function e(e,t,n,r){this.instanceId=ae(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ee,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?\"asc\"!==e.sort&&\"desc\"!==e.sort||(this.sort=e.sort):\"asc\"!==e.initialSort&&\"desc\"!==e.initialSort||(this.sort=e.initialSort);var t=s(e.sortIndex),n=s(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var r=u(e.hide),o=u(e.initialHide);this.visible=void 0!==r?!r:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var a=s(e.flex),i=s(e.initialFlex);void 0!==a?this.flex=a:void 0!==i&&(this.flex=i)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(\"colDefChanged\",\"api\"))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth(\"gridInitializing\"),this.initDotNotation(),this.initTooltip(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.is(\"suppressFieldDotNotation\");this.fieldContainsDots=o(this.colDef.field)&&this.colDef.field.indexOf(\".\")>=0&&!e,this.tooltipFieldContainsDots=o(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(\".\")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.initTooltip=function(){this.tooltipEnabled=o(this.colDef.tooltipField)||o(this.colDef.tooltipValueGetter)||o(this.colDef.tooltipComponent)||o(this.colDef.tooltipComponentFramework)},e.prototype.resetActualWidth=function(e){void 0===e&&(e=\"api\");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(a(this.colDef)||a(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function t(e,t,n){O(function(){n?console.warn(e,n):O(function(){return console.warn(e)},t)},t)}if(this.gridOptionsService.isRowModelType(\"clientSide\")&&!te.isRegistered(X.RowGroupingModule)&&(n=[\"enableRowGroup\",\"rowGroup\",\"rowGroupIndex\",\"enablePivot\",\"enableValue\",\"pivot\",\"pivotIndex\",\"aggFunc\"].filter(function(t){return o(e[t])})).length>0&&te.assertRegistered(X.RowGroupingModule,n.map(function(e){return\"colDef.\"+e}).join(\", \")),\"agRichSelect\"!==this.colDef.cellEditor&&\"agRichSelectCellEditor\"!==this.colDef.cellEditor||te.assertRegistered(X.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()&&(n=[\"rowGroup\",\"rowGroupIndex\",\"pivot\",\"pivotIndex\"].filter(function(t){return o(e[t])})).length>0&&t(\"AG Grid: \"+n.join()+\" is not possible when doing tree data, your column definition should not have \"+n.join(),\"TreeDataCannotRowGroup\"),o(e.menuTabs))if(Array.isArray(e.menuTabs)){var n,r=[\"filterMenuTab\"],a=[\"columnsMenuTab\",\"generalMenuTab\"];(n=a.filter(function(t){return e.menuTabs.includes(t)})).length>0&&te.assertRegistered(X.MenuModule,\"menuTab(s): \"+n.map(function(e){return\"'\"+e+\"'\"}).join()),e.menuTabs.forEach(function(e){a.includes(e)||r.includes(e)||t(\"AG Grid: '\"+e+\"' is not valid for 'colDef.menuTabs'. Valid values are: \"+function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(re(arguments[t]));return e}(r,a).map(function(e){return\"'\"+e+\"'\"}).join()+\".\",\"wrongValue_menuTabs_\"+e)})}else t(\"AG Grid: The typeof 'colDef.menuTabs' should be an array not:\"+typeof e.menuTabs,\"wrongType_menuTabs\");o(e.columnsMenuParams)&&te.assertRegistered(X.MenuModule,\"columnsMenuParams\"),o(e.columnsMenuParams)&&te.assertRegistered(X.ColumnsToolPanelModule,\"columnsMenuParams\"),o(this.colDef.width)&&\"number\"!=typeof this.colDef.width&&t(\"AG Grid: colDef.width should be a number, not \"+typeof this.colDef.width,\"ColumnCheck\"),(e.pinnedRowCellRenderer||e.pinnedRowCellRendererParams||e.pinnedRowCellRendererFramework)&&t(\"AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.\",\"colDef.pinnedRowCellRenderer-deprecated\"),o(e.columnGroupShow)&&\"closed\"!==e.columnGroupShow&&\"open\"!==e.columnGroupShow&&t(\"AG Grid: '\"+e.columnGroupShow+\"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null\",\"columnGroupShow_invalid\")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},e.prototype.isSuppressNavigable=function(e){if(\"boolean\"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if(\"function\"==typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsService.is(\"enableGroupEdit\"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!u(this.colDef.autoHeaderHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return\"boolean\"==typeof t?t:\"function\"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(e,t){void 0===t&&(t=\"api\"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(\"movingChanged\",t))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,t){void 0===t&&(t=\"api\"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(\"sortChanged\",t)))},e.prototype.setMenuVisible=function(e,t){void 0===t&&(t=\"api\"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(\"menuVisibleChanged\",t)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return\"asc\"===this.sort},e.prototype.isSortDescending=function(){return\"desc\"===this.sort},e.prototype.isSortNone=function(){return a(this.sort)},e.prototype.isSorting=function(){return o(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(e,t){void 0===t&&(t=\"api\"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(\"leftChanged\",t)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,t,n){void 0===t&&(t=\"api\"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"filterActiveChanged\",t)));var r=this.createColumnEvent(\"filterChanged\",t);n&&b(r,n),this.eventService.dispatchEvent(r)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||\"left\"===e?\"left\":\"right\"===e?\"right\":null},e.prototype.setFirstRightPinned=function(e,t){void 0===t&&(t=\"api\"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(\"firstRightPinnedChanged\",t)))},e.prototype.setLastLeftPinned=function(e,t){void 0===t&&(t=\"api\"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(\"lastLeftPinnedChanged\",t)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return\"left\"===this.pinned||\"right\"===this.pinned},e.prototype.isPinnedLeft=function(){return\"left\"===this.pinned},e.prototype.isPinnedRight=function(){return\"right\"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,t){void 0===t&&(t=\"api\");var n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(\"visibleChanged\",t)))},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){return!!this.getColDef().spanHeaderHeight},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.colId},e.prototype.getUniqueId=function(){return this.colId},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.getColSpan=function(e){if(a(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(a(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t=\"api\"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&\"flex\"!==t&&\"gridInitializing\"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent(\"widthChanged\",e))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e=\"api\"),o(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,t){void 0===t&&(t=\"api\"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnRowGroupChanged\",t)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,t){void 0===t&&(t=\"api\"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnPivotChanged\",t)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(e,t){void 0===t&&(t=\"api\"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(\"columnValueChanged\",t)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED=\"movingChanged\",e.EVENT_LEFT_CHANGED=\"leftChanged\",e.EVENT_WIDTH_CHANGED=\"widthChanged\",e.EVENT_LAST_LEFT_PINNED_CHANGED=\"lastLeftPinnedChanged\",e.EVENT_FIRST_RIGHT_PINNED_CHANGED=\"firstRightPinnedChanged\",e.EVENT_VISIBLE_CHANGED=\"visibleChanged\",e.EVENT_FILTER_CHANGED=\"filterChanged\",e.EVENT_FILTER_ACTIVE_CHANGED=\"filterActiveChanged\",e.EVENT_SORT_CHANGED=\"sortChanged\",e.EVENT_COL_DEF_CHANGED=\"colDefChanged\",e.EVENT_MENU_VISIBLE_CHANGED=\"menuVisibleChanged\",e.EVENT_ROW_GROUP_CHANGED=\"columnRowGroupChanged\",e.EVENT_PIVOT_CHANGED=\"columnPivotChanged\",e.EVENT_VALUE_CHANGED=\"columnValueChanged\",ne([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),ne([q(\"columnUtils\")],e.prototype,\"columnUtils\",void 0),ne([q(\"columnHoverService\")],e.prototype,\"columnHoverService\",void 0),ne([G],e.prototype,\"initialise\",null),e}(),le=function(){function e(e,t,n,r){this.localEventService=new ee,this.expandable=!1,this.instanceId=ae(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some(function(e){return e.isVisible()})},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(n){n instanceof ie?t.push(n):n instanceof e&&n.addLeafColumns(t)})},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(e){return e.addEventListener(\"visibleChanged\",t)}),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach(function(e){return e.removeEventListener(\"visibleChanged\",t)}),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,r=!1,o=this.findChildrenRemovingPadding(),a=0,i=o.length;a<i;a++){var l=o[a];if(l.isVisible()){var s=l.getColumnGroupShow();\"open\"===s?(t=!0,r=!0):\"closed\"===s?(n=!0,r=!0):(t=!0,n=!0)}}var u=t&&n&&r;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],n=function(r){r.forEach(function(r){r instanceof e&&r.isPadding()?n(r.children):t.push(r)})};return n(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED=\"expandedChanged\",e.EVENT_EXPANDABLE_CHANGED=\"expandableChanged\",function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([z],e.prototype,\"destroy\",null),e}(),se={numericColumn:{headerClass:\"ag-right-aligned-header\",cellClass:\"ag-right-aligned-cell\"},rightAligned:{headerClass:\"ag-right-aligned-header\",cellClass:\"ag-right-aligned-cell\"}};function ue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var r=e[n];if(o(r))return r}return null}function ce(e){if(e&&e.length)return e[e.length-1]}function de(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(function(e,r){return n?n(e,t[r]):t[r]===e})}function pe(e){return e.sort(function(e,t){return e-t})}function fe(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function ge(e,t){t.forEach(function(t){return fe(e,t)})}function he(e,t,n){e.splice(n,0,t)}function me(e,t,n){ge(e,t),t.slice().reverse().forEach(function(t){return he(e,t,n)})}function ve(e,t){return e.indexOf(t)>-1}function Ae(e){return[].concat.apply([],e)}function ye(e,t){null!=t&&null!=e&&t.forEach(function(t){return e.push(t)})}var Ee=Object.freeze({__proto__:null,firstExistingValue:ue,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ce,areEqual:de,shallowCompare:function(e,t){return de(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var r=e[n]===t,o=e[n+1]===t;r&&o&&e.splice(n+1,1)}},removeFromArray:fe,removeAllFromArray:ge,insertIntoArray:he,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--)he(e,t[r],n)},moveInArray:me,includes:ve,flatten:Ae,pushAll:ye,toStrings:function(e){return e.map(l)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),be=\"__ag_Grid_Stop_Propagation\",_e=[\"touchstart\",\"touchend\",\"touchmove\",\"touchcancel\",\"scroll\"],Ce={};function we(e){e[be]=!0}function Se(e){return!0===e[be]}var Te,Oe=(Te={select:\"input\",change:\"input\",submit:\"form\",reset:\"form\",error:\"img\",load:\"img\",abort:\"img\"},function(e){if(\"boolean\"==typeof Ce[e])return Ce[e];var t=document.createElement(Te[e]||\"div\");return Ce[e=\"on\"+e]=e in t});function De(e,t,n){for(var r=t;r;){var o=e.getDomData(r,n);if(o)return o;r=r.parentElement}return null}function Re(e,t){return!(!t||!e)&&Le(t).indexOf(e)>=0}function Ne(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Le(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():Ne(t)}function Pe(e,t,n,r){var o=ve(_e,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var Me,xe=Object.freeze({__proto__:null,stopPropagationForAgGrid:we,isStopPropagationForAgGrid:Se,isEventSupported:Oe,getCtrlForEventTarget:De,isElementInEventPath:Re,createEventPath:Ne,getEventPath:Le,addSafePassiveEventListener:Pe}),Ie=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ke=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach(function(e){return e()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ee),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout(function(){return t.dispatchEvent(e)},0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var r=this;if(!this.destroyed){e instanceof HTMLElement?Pe(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var o=function(){return e.removeEventListener(t,n),r.destroyFunctions=r.destroyFunctions.filter(function(e){return e!==o}),null};return this.destroyFunctions.push(o),o}},e.prototype.addManagedPropertyListener=function(e,t){var n=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var r=function(){return n.gridOptionsService.removeEventListener(e,t),n.destroyFunctions=n.destroyFunctions.filter(function(e){return e!==r}),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach(function(e){return n.destroyBean(e,t)}),[]},e.EVENT_DESTROYED=\"destroyed\",Ie([q(\"frameworkOverrides\")],e.prototype,\"frameworkOverrides\",void 0),Ie([q(\"context\")],e.prototype,\"context\",void 0),Ie([q(\"eventService\")],e.prototype,\"eventService\",void 0),Ie([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),Ie([q(\"localeService\")],e.prototype,\"localeService\",void 0),Ie([q(\"environment\")],e.prototype,\"environment\",void 0),Ie([z],e.prototype,\"destroy\",null),e}(),Be=(Me=function(e,t){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Me(e,t)},function(e,t){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Fe=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t.prototype.setBeans=function(e){this.logger=e.create(\"ColumnFactory\")},t.prototype.createColumnTree=function(e,t,n){var r=new p,o=this.extractExistingTreeData(n),a=o.existingCols,i=o.existingGroups,l=o.existingColKeys;r.addExistingKeys(l);var s=this.recursivelyCreateColumns(e,0,t,a,r,i),u=this.findMaxDept(s,0);this.logger.log(\"Number of levels for grouped columns is \"+u);var c=this.balanceColumnTree(s,0,u,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,function(e,t){e instanceof le&&e.setupExpandable(),e.setOriginalParent(t)}),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){if(e instanceof le){var o=e;n.push(o)}else{var a=e;r.push(a.getId()),t.push(a)}}),{existingCols:t,existingGroups:n,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map(function(e){return n.createAutoGroupTreeItem(t,e)})},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,r=this.findDepth(e)-1;r>=0;r--){var o=new le(null,\"FAKE_PATH_\"+t.getId()+\"}_\"+r,!0,r);this.createBean(o),o.setChildren([n]),n.setOriginalParent(o),n=o}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof le;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,r){for(var o=[],a=0;a<e.length;a++){var i=e[a];if(i instanceof le){var l=i,s=this.balanceColumnTree(l.getChildren(),t+1,n,r);l.setChildren(s),o.push(l)}else{for(var u=void 0,c=void 0,d=n-1;d>=t;d--){var p=r.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new le(f,p,!0,t);this.createBean(g),c&&c.setChildren([g]),c=g,u||(u=c)}if(u&&c){if(o.push(u),e.some(function(e){return e instanceof le})){c.setChildren([i]);continue}c.setChildren(e);break}o.push(i)}}return o},t.prototype.findMaxDept=function(e,t){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(o instanceof le){var a=o,i=this.findMaxDept(a.getChildren(),t+1);n<i&&(n=i)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,r,o,a){var i=this;return(e||[]).map(function(e){return i.isColumnGroup(e)?i.createColumnGroup(n,e,t,r,o,a):i.createColumn(n,e,r,o)})},t.prototype.createColumnGroup=function(e,t,n,r,o,a){var i=this.createMergedColGroupDef(t),l=o.getUniqueKey(i.groupId||null,null),s=new le(i,l,!1,n);this.createBean(s);var u=this.findExistingGroup(t,a);u&&fe(a,u),u&&u.isExpanded()&&s.setExpanded(!0);var c=this.recursivelyCreateColumns(i.children,n+1,e,r,o,a);return s.setChildren(c),s},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsService.get(\"defaultColGroupDef\")),Object.assign(t,e),t},t.prototype.createColumn=function(e,t,n,r){var o=this.mergeColDefs(t),a=this.findExistingColumn(t,n);if(n&&a&&fe(n,a),a)a.setColDef(o,t),this.applyColumnState(a,o);else{var i=r.getUniqueKey(o.colId,o.field);a=new ie(o,t,i,e),this.context.createBean(a)}return a},t.prototype.applyColumnState=function(e,t){var n=s(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var r=s(t.width);if(null!=r)e.setActualWidth(r);else{var o=e.getActualWidth();e.setActualWidth(o)}}void 0!==t.sort&&(\"asc\"==t.sort||\"desc\"==t.sort?e.setSort(t.sort):e.setSort(void 0));var a=s(t.sortIndex);void 0!==a&&e.setSortIndex(a);var i=u(t.hide);void 0!==i&&e.setVisible(!i),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find(function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var r=null!=e.colId,o=null!=e.field;return r?t.getId()===e.colId:o?n.field===e.field:n===e})},t.prototype.findExistingGroup=function(e,t){return t.find(function(t){return!(!t.getColGroupDef()||null==e.groupId||t.getId()!==e.groupId)})},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsService.get(\"defaultColDef\");b(t,n,!1,!0);var r=e.type;r||(r=n&&n.type),r&&this.assignColumnTypes(r,t),b(t,e,!1,!0);var o=this.gridOptionsService.get(\"autoGroupColumnDef\"),a=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&o&&a&&b(t,{sort:o.sort,initialSort:o.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array)e.some(function(e){return\"string\"!=typeof e})?console.warn(\"AG Grid: if colDef.type is supplied an array it should be of type 'string[]'\"):n=e;else{if(\"string\"!=typeof e)return void console.warn(\"AG Grid: colDef.type should be of type 'string' | 'string[]'\");n=e.split(\",\")}var r=Object.assign({},se);f(this.gridOptionsService.get(\"columnTypes\")||{},function(e,t){e in r?console.warn(\"AG Grid: the column type '\"+e+\"' is a default column type and cannot be overridden.\"):r[e]=t}),n.forEach(function(e){var n=r[e.trim()];n?b(t,n,!1,!0):console.warn(\"AG Grid: colDef.type '\"+e+\"' does not correspond to defined gridOptions.columnTypes\")})},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Fe([q(\"columnUtils\")],t.prototype,\"columnUtils\",void 0),Fe([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Fe([V(\"columnFactory\")],t);var n,r}(ke),He=function(){function e(){}return e.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,stickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,spanHeaderHeight:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e.FRAMEWORK_PROPERTIES=[\"__ob__\",\"__v_skip\",\"__metadata__\",\"mappedColumnProperties\",\"hasChildColumns\",\"toColDef\",\"createColDefFromGridColumn\"],e}(),Ue=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED=\"columnEverythingChanged\",e.EVENT_NEW_COLUMNS_LOADED=\"newColumnsLoaded\",e.EVENT_COLUMN_PIVOT_MODE_CHANGED=\"columnPivotModeChanged\",e.EVENT_COLUMN_ROW_GROUP_CHANGED=\"columnRowGroupChanged\",e.EVENT_EXPAND_COLLAPSE_ALL=\"expandOrCollapseAll\",e.EVENT_COLUMN_PIVOT_CHANGED=\"columnPivotChanged\",e.EVENT_GRID_COLUMNS_CHANGED=\"gridColumnsChanged\",e.EVENT_COLUMN_VALUE_CHANGED=\"columnValueChanged\",e.EVENT_COLUMN_MOVED=\"columnMoved\",e.EVENT_COLUMN_VISIBLE=\"columnVisible\",e.EVENT_COLUMN_PINNED=\"columnPinned\",e.EVENT_COLUMN_GROUP_OPENED=\"columnGroupOpened\",e.EVENT_COLUMN_RESIZED=\"columnResized\",e.EVENT_DISPLAYED_COLUMNS_CHANGED=\"displayedColumnsChanged\",e.EVENT_VIRTUAL_COLUMNS_CHANGED=\"virtualColumnsChanged\",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED=\"asyncTransactionsFlushed\",e.EVENT_ROW_GROUP_OPENED=\"rowGroupOpened\",e.EVENT_ROW_DATA_CHANGED=\"rowDataChanged\",e.EVENT_ROW_DATA_UPDATED=\"rowDataUpdated\",e.EVENT_PINNED_ROW_DATA_CHANGED=\"pinnedRowDataChanged\",e.EVENT_RANGE_SELECTION_CHANGED=\"rangeSelectionChanged\",e.EVENT_CHART_CREATED=\"chartCreated\",e.EVENT_CHART_RANGE_SELECTION_CHANGED=\"chartRangeSelectionChanged\",e.EVENT_CHART_OPTIONS_CHANGED=\"chartOptionsChanged\",e.EVENT_CHART_DESTROYED=\"chartDestroyed\",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED=\"toolPanelVisibleChanged\",e.EVENT_TOOL_PANEL_SIZE_CHANGED=\"toolPanelSizeChanged\",e.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED=\"internalToolPanelVisibleChanged\",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START=\"columnPanelItemDragStart\",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END=\"columnPanelItemDragEnd\",e.EVENT_MODEL_UPDATED=\"modelUpdated\",e.EVENT_PASTE_START=\"pasteStart\",e.EVENT_PASTE_END=\"pasteEnd\",e.EVENT_FILL_START=\"fillStart\",e.EVENT_FILL_END=\"fillEnd\",e.EVENT_UNDO_STARTED=\"undoStarted\",e.EVENT_UNDO_ENDED=\"undoEnded\",e.EVENT_REDO_STARTED=\"redoStarted\",e.EVENT_REDO_ENDED=\"redoEnded\",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START=\"keyShortcutChangedCellStart\",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END=\"keyShortcutChangedCellEnd\",e.EVENT_CELL_CLICKED=\"cellClicked\",e.EVENT_CELL_DOUBLE_CLICKED=\"cellDoubleClicked\",e.EVENT_CELL_MOUSE_DOWN=\"cellMouseDown\",e.EVENT_CELL_CONTEXT_MENU=\"cellContextMenu\",e.EVENT_CELL_VALUE_CHANGED=\"cellValueChanged\",e.EVENT_CELL_EDIT_REQUEST=\"cellEditRequest\",e.EVENT_ROW_VALUE_CHANGED=\"rowValueChanged\",e.EVENT_CELL_FOCUSED=\"cellFocused\",e.EVENT_CELL_FOCUS_CLEARED=\"cellFocusCleared\",e.EVENT_FULL_WIDTH_ROW_FOCUSED=\"fullWidthRowFocused\",e.EVENT_ROW_SELECTED=\"rowSelected\",e.EVENT_SELECTION_CHANGED=\"selectionChanged\",e.EVENT_CELL_KEY_DOWN=\"cellKeyDown\",e.EVENT_CELL_KEY_PRESS=\"cellKeyPress\",e.EVENT_CELL_MOUSE_OVER=\"cellMouseOver\",e.EVENT_CELL_MOUSE_OUT=\"cellMouseOut\",e.EVENT_FILTER_CHANGED=\"filterChanged\",e.EVENT_FILTER_MODIFIED=\"filterModified\",e.EVENT_FILTER_OPENED=\"filterOpened\",e.EVENT_SORT_CHANGED=\"sortChanged\",e.EVENT_VIRTUAL_ROW_REMOVED=\"virtualRowRemoved\",e.EVENT_ROW_CLICKED=\"rowClicked\",e.EVENT_ROW_DOUBLE_CLICKED=\"rowDoubleClicked\",e.EVENT_GRID_READY=\"gridReady\",e.EVENT_GRID_SIZE_CHANGED=\"gridSizeChanged\",e.EVENT_VIEWPORT_CHANGED=\"viewportChanged\",e.EVENT_SCROLLBAR_WIDTH_CHANGED=\"scrollbarWidthChanged\",e.EVENT_FIRST_DATA_RENDERED=\"firstDataRendered\",e.EVENT_DRAG_STARTED=\"dragStarted\",e.EVENT_DRAG_STOPPED=\"dragStopped\",e.EVENT_CHECKBOX_CHANGED=\"checkboxChanged\",e.EVENT_ROW_EDITING_STARTED=\"rowEditingStarted\",e.EVENT_ROW_EDITING_STOPPED=\"rowEditingStopped\",e.EVENT_CELL_EDITING_STARTED=\"cellEditingStarted\",e.EVENT_CELL_EDITING_STOPPED=\"cellEditingStopped\",e.EVENT_BODY_SCROLL=\"bodyScroll\",e.EVENT_BODY_SCROLL_END=\"bodyScrollEnd\",e.EVENT_HEIGHT_SCALE_CHANGED=\"heightScaleChanged\",e.EVENT_PAGINATION_CHANGED=\"paginationChanged\",e.EVENT_COMPONENT_STATE_CHANGED=\"componentStateChanged\",e.EVENT_STORE_REFRESHED=\"storeRefreshed\",e.EVENT_BODY_HEIGHT_CHANGED=\"bodyHeightChanged\",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED=\"displayedColumnsWidthChanged\",e.EVENT_SCROLL_VISIBILITY_CHANGED=\"scrollVisibilityChanged\",e.EVENT_COLUMN_HOVER_CHANGED=\"columnHoverChanged\",e.EVENT_FLASH_CELLS=\"flashCells\",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED=\"paginationPixelOffsetChanged\",e.EVENT_DISPLAYED_ROWS_CHANGED=\"displayedRowsChanged\",e.EVENT_LEFT_PINNED_WIDTH_CHANGED=\"leftPinnedWidthChanged\",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED=\"rightPinnedWidthChanged\",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED=\"rowContainerHeightChanged\",e.EVENT_HEADER_HEIGHT_CHANGED=\"headerHeightChanged\",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED=\"columnHeaderHeightChanged\",e.EVENT_ROW_DRAG_ENTER=\"rowDragEnter\",e.EVENT_ROW_DRAG_MOVE=\"rowDragMove\",e.EVENT_ROW_DRAG_LEAVE=\"rowDragLeave\",e.EVENT_ROW_DRAG_END=\"rowDragEnd\",e.EVENT_GRID_STYLES_CHANGED=\"gridStylesChanged\",e.EVENT_POPUP_TO_FRONT=\"popupToFront\",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST=\"columnRowGroupChangeRequest\",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST=\"columnPivotChangeRequest\",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST=\"columnValueChangeRequest\",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST=\"columnAggFuncChangeRequest\",e.EVENT_KEYBOARD_FOCUS=\"keyboardFocus\",e.EVENT_MOUSE_FOCUS=\"mouseFocus\",e.EVENT_STORE_UPDATED=\"storeUpdated\",e.EVENT_FILTER_DESTROYED=\"filterDestroyed\",e}(),Ye=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Ge=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ye(arguments[t]));return e},ze=function(){function e(){}return e.STRING_PROPERTIES=[\"rowSelection\",\"overlayLoadingTemplate\",\"overlayNoRowsTemplate\",\"quickFilterText\",\"rowModelType\",\"editType\",\"domLayout\",\"clipboardDelimiter\",\"rowGroupPanelShow\",\"multiSortKey\",\"pivotColumnGroupTotals\",\"pivotRowTotals\",\"pivotPanelShow\",\"fillHandleDirection\",\"serverSideStoreType\",\"groupDisplayType\",\"treeDataDisplayType\",\"colResizeDefault\"],e.OBJECT_PROPERTIES=[\"components\",\"frameworkComponents\",\"rowStyle\",\"context\",\"autoGroupColumnDef\",\"localeText\",\"icons\",\"datasource\",\"serverSideDatasource\",\"viewportDatasource\",\"groupRowRendererParams\",\"aggFuncs\",\"fullWidthCellRendererParams\",\"defaultColGroupDef\",\"defaultColDef\",\"defaultCsvExportParams\",\"defaultExcelExportParams\",\"columnTypes\",\"rowClassRules\",\"detailCellRendererParams\",\"loadingCellRendererParams\",\"loadingOverlayComponentParams\",\"noRowsOverlayComponentParams\",\"popupParent\",\"statusBar\",\"sideBar\",\"chartThemeOverrides\",\"customChartThemes\",\"chartToolPanelsDef\"],e.ARRAY_PROPERTIES=[\"sortingOrder\",\"alignedGrids\",\"rowData\",\"columnDefs\",\"excelStyles\",\"pinnedTopRowData\",\"pinnedBottomRowData\",\"chartThemes\",\"rowClass\"],e.NUMBER_PROPERTIES=[\"rowHeight\",\"detailRowHeight\",\"rowBuffer\",\"headerHeight\",\"groupHeaderHeight\",\"floatingFiltersHeight\",\"pivotHeaderHeight\",\"pivotGroupHeaderHeight\",\"groupDefaultExpanded\",\"viewportRowModelPageSize\",\"viewportRowModelBufferSize\",\"autoSizePadding\",\"maxBlocksInCache\",\"maxConcurrentDatasourceRequests\",\"tooltipShowDelay\",\"tooltipHideDelay\",\"cacheOverflowSize\",\"paginationPageSize\",\"cacheBlockSize\",\"infiniteInitialRowCount\",\"serverSideInitialRowCount\",\"scrollbarWidth\",\"asyncTransactionWaitMillis\",\"blockLoadDebounceMillis\",\"keepDetailRowsCount\",\"undoRedoCellEditingLimit\",\"cellFlashDelay\",\"cellFadeDelay\",\"tabIndex\"],e.BOOLEAN_PROPERTIES=[\"suppressMakeColumnVisibleAfterUnGroup\",\"suppressRowClickSelection\",\"suppressCellSelection\",\"suppressCellFocus\",\"suppressHorizontalScroll\",\"alwaysShowHorizontalScroll\",\"alwaysShowVerticalScroll\",\"debug\",\"enableBrowserTooltips\",\"enableCellExpressions\",\"groupSelectsChildren\",\"groupIncludeFooter\",\"groupIncludeTotalFooter\",\"groupSuppressBlankHeader\",\"suppressMenuHide\",\"suppressRowDeselection\",\"unSortIcon\",\"suppressMultiSort\",\"alwaysMultiSort\",\"singleClickEdit\",\"suppressLoadingOverlay\",\"suppressNoRowsOverlay\",\"suppressAutoSize\",\"skipHeaderOnAutoSize\",\"suppressParentsInRowNodes\",\"suppressColumnMoveAnimation\",\"suppressMovableColumns\",\"suppressFieldDotNotation\",\"enableRangeSelection\",\"enableRangeHandle\",\"enableFillHandle\",\"suppressClearOnFillReduction\",\"deltaSort\",\"suppressTouch\",\"suppressAsyncEvents\",\"allowContextMenuWithControlKey\",\"suppressContextMenu\",\"rememberGroupStateWhenNewData\",\"enableCellChangeFlash\",\"suppressDragLeaveHidesColumns\",\"suppressRowGroupHidesColumns\",\"suppressMiddleClickScrolls\",\"suppressPreventDefaultOnMouseWheel\",\"suppressCopyRowsToClipboard\",\"copyHeadersToClipboard\",\"copyGroupHeadersToClipboard\",\"pivotMode\",\"suppressAggFuncInHeader\",\"suppressColumnVirtualisation\",\"suppressAggAtRootLevel\",\"suppressFocusAfterRefresh\",\"functionsPassive\",\"functionsReadOnly\",\"animateRows\",\"groupSelectsFiltered\",\"groupRemoveSingleChildren\",\"groupRemoveLowestSingleChildren\",\"enableRtl\",\"suppressClickEdit\",\"rowDragEntireRow\",\"rowDragManaged\",\"suppressRowDrag\",\"suppressMoveWhenRowDragging\",\"rowDragMultiRow\",\"enableGroupEdit\",\"embedFullWidthRows\",\"suppressPaginationPanel\",\"groupHideOpenParents\",\"groupAllowUnbalanced\",\"pagination\",\"paginationAutoPageSize\",\"suppressScrollOnNewData\",\"suppressScrollWhenPopupsAreOpen\",\"purgeClosedRowNodes\",\"cacheQuickFilter\",\"excludeHiddenColumnsFromQuickFilter\",\"ensureDomOrder\",\"accentedSort\",\"suppressChangeDetection\",\"valueCache\",\"valueCacheNeverExpires\",\"aggregateOnlyChangedColumns\",\"suppressAnimationFrame\",\"suppressExcelExport\",\"suppressCsvExport\",\"treeData\",\"masterDetail\",\"suppressMultiRangeSelection\",\"enterMovesDownAfterEdit\",\"enterMovesDown\",\"suppressPropertyNamesCheck\",\"rowMultiSelectWithClick\",\"suppressRowHoverHighlight\",\"suppressRowTransform\",\"suppressClipboardPaste\",\"suppressLastEmptyLineOnPaste\",\"enableCharts\",\"enableChartToolPanelsButton\",\"suppressChartToolPanelsButton\",\"suppressMaintainUnsortedOrder\",\"enableCellTextSelection\",\"suppressBrowserResizeObserver\",\"suppressMaxRenderedRowRestriction\",\"excludeChildrenWhenTreeDataFiltering\",\"tooltipMouseTrack\",\"keepDetailRows\",\"paginateChildRows\",\"preventDefaultOnContextMenu\",\"undoRedoCellEditing\",\"allowDragFromColumnsToolPanel\",\"immutableData\",\"pivotSuppressAutoColumn\",\"suppressExpandablePivotGroups\",\"debounceVerticalScrollbar\",\"detailRowAutoHeight\",\"serverSideFilteringAlwaysResets\",\"serverSideSortingAlwaysResets\",\"serverSideSortAllLevels\",\"serverSideFilterAllLevels\",\"serverSideSortOnServer\",\"serverSideFilterOnServer\",\"suppressAggFilteredOnly\",\"showOpenedGroup\",\"suppressClipboardApi\",\"suppressModelUpdateAfterUpdateTransaction\",\"stopEditingWhenCellsLoseFocus\",\"maintainColumnOrder\",\"groupMaintainOrder\",\"columnHoverHighlight\",\"reactUi\",\"suppressReactUi\",\"readOnlyEdit\",\"suppressRowVirtualisation\",\"enableCellEditingOnBackspace\",\"resetRowDataOnUpdate\",\"removePivotHeaderRowWhenSingleValueColumn\",\"suppressCopySingleCellRanges\",\"groupRowsSticky\",\"suppressServerSideInfiniteScroll\",\"rowGroupPanelSuppressSort\",\"allowShowChangeAfterFilter\",\"suppressCutToClipboard\"],e.FUNCTIONAL_PROPERTIES=[\"localeTextFunc\",\"doesExternalFilterPass\",\"groupRowAggNodes\",\"isFullWidthCell\",\"processSecondaryColDef\",\"processSecondaryColGroupDef\",\"processPivotResultColDef\",\"processPivotResultColGroupDef\",\"getBusinessKeyForNode\",\"isRowSelectable\",\"postSort\",\"defaultGroupOrderComparator\",\"rowDragText\",\"groupRowRenderer\",\"groupRowRendererFramework\",\"fullWidthCellRenderer\",\"fullWidthCellRendererFramework\",\"loadingCellRenderer\",\"loadingCellRendererFramework\",\"loadingOverlayComponent\",\"loadingOverlayComponentFramework\",\"noRowsOverlayComponent\",\"noRowsOverlayComponentFramework\",\"detailCellRenderer\",\"detailCellRendererFramework\"],e.CALLBACK_PROPERTIES=[\"getLocaleText\",\"isExternalFilterPresent\",\"getRowHeight\",\"getRowClass\",\"getRowStyle\",\"getContextMenuItems\",\"getMainMenuItems\",\"processRowPostCreate\",\"processCellForClipboard\",\"getGroupRowAgg\",\"getRowNodeId\",\"isFullWidthRow\",\"sendToClipboard\",\"navigateToNextHeader\",\"tabToNextHeader\",\"navigateToNextCell\",\"tabToNextCell\",\"processCellFromClipboard\",\"getDocument\",\"postProcessPopup\",\"getChildCount\",\"getDataPath\",\"isRowMaster\",\"postSortRows\",\"processHeaderForClipboard\",\"processGroupHeaderForClipboard\",\"paginationNumberFormatter\",\"processDataFromClipboard\",\"getServerSideGroupKey\",\"isServerSideGroup\",\"createChartContainer\",\"getChartToolbarItems\",\"fillOperation\",\"isApplyServerSideTransaction\",\"getServerSideStoreParams\",\"getServerSideGroupLevelParams\",\"isServerSideGroupOpenByDefault\",\"isGroupOpenByDefault\",\"initialGroupOrderComparator\",\"loadingCellRendererSelector\",\"getRowId\",\"groupAggFiltering\"],e.FUNCTION_PROPERTIES=Ge(e.FUNCTIONAL_PROPERTIES,e.CALLBACK_PROPERTIES),e.ALL_PROPERTIES=Ge(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=[\"__ob__\",\"__v_skip\",\"__metadata__\",\"mappedColumnProperties\",\"hasChildColumns\",\"toColDef\",\"createColDefFromGridColumn\"],e}(),Ve=function(){return Ve=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ve.apply(this,arguments)},qe=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},We=function(){function e(){}return e.getCallbackForEvent=function(e){return!e||e.length<2?e:\"on\"+e[0].toUpperCase()+e.substr(1)},e.getCoercionLookup=function(){var t={};return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qe(arguments[t]));return e}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.FUNCTION_PROPERTIES,e.EVENT_CALLBACKS).forEach(function(e){return t[e]=\"none\"}),e.BOOLEAN_PROPERTIES.forEach(function(e){return t[e]=\"boolean\"}),e.NUMBER_PROPERTIES.forEach(function(e){return t[e]=\"number\"}),t},e.getValue=function(t,n){var r=e.coercionLookup[t];if(r){var o=n;switch(r){case\"number\":o=e.toNumber(n);break;case\"boolean\":o=e.toBoolean(n);break;case\"none\":\"groupAggFiltering\"===t&&\"function\"!=typeof n&&(o=e.toBoolean(n))}return o}},e.getGridOptionKeys=function(t,n){return n?Object.keys(e.coercionLookup):Object.keys(t)},e.copyAttributesToGridOptions=function(t,n,r){void 0===r&&(r=!1),\"object\"!=typeof t&&(t={});var o=t;return e.getGridOptionKeys(n,r).forEach(function(t){var r=n[t];if(void 0!==r){var a=e.getValue(t,r);void 0!==a&&(o[t]=a)}}),t},e.processOnChange=function(t,n){if(t&&0!==Object.keys(t).length){var r=Ve({},t);r.columnTypes&&(n.setColumnTypes(r.columnTypes.currentValue,\"gridOptionsChanged\"),delete r.columnTypes),r.autoGroupColumnDef&&(n.setAutoGroupColumnDef(r.autoGroupColumnDef.currentValue,\"gridOptionsChanged\"),delete r.autoGroupColumnDef),r.defaultColDef&&(n.setDefaultColDef(r.defaultColDef.currentValue,\"gridOptionsChanged\"),delete r.defaultColDef),r.columnDefs&&(n.setColumnDefs(r.columnDefs.currentValue,\"gridOptionsChanged\"),delete r.columnDefs),Object.keys(r).forEach(function(t){var o=t,a=e.getValue(o,r[o].currentValue);n.__setProperty(o,a)});var o={type:Ue.EVENT_COMPONENT_STATE_CHANGED};f(t,function(e,t){o[e]=t}),n.dispatchEvent(o)}},e.toBoolean=function(e){return\"boolean\"==typeof e?e:\"string\"==typeof e&&(\"TRUE\"===e.toUpperCase()||\"\"==e)},e.toNumber=function(e){return\"number\"==typeof e?e:\"string\"==typeof e?Number(e):void 0},e.EVENTS=c(Ue),e.EXCLUDED_INTERNAL_EVENTS=[Ue.EVENT_SCROLLBAR_WIDTH_CHANGED,Ue.EVENT_CHECKBOX_CHANGED,Ue.EVENT_HEIGHT_SCALE_CHANGED,Ue.EVENT_BODY_HEIGHT_CHANGED,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,Ue.EVENT_COLUMN_HOVER_CHANGED,Ue.EVENT_FLASH_CELLS,Ue.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Ue.EVENT_DISPLAYED_ROWS_CHANGED,Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED,Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Ue.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Ue.EVENT_POPUP_TO_FRONT,Ue.EVENT_KEYBOARD_FOCUS,Ue.EVENT_MOUSE_FOCUS,Ue.EVENT_STORE_UPDATED,Ue.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Ue.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Ue.EVENT_FILL_START,Ue.EVENT_FILL_END,Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,Ue.EVENT_FULL_WIDTH_ROW_FOCUSED,Ue.EVENT_HEADER_HEIGHT_CHANGED,Ue.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,Ue.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,Ue.EVENT_CELL_FOCUS_CLEARED,Ue.EVENT_GRID_STYLES_CHANGED,Ue.EVENT_FILTER_DESTROYED],e.PUBLIC_EVENTS=e.EVENTS.filter(function(t){return!ve(e.EXCLUDED_INTERNAL_EVENTS,t)}),e.EVENT_CALLBACKS=e.EVENTS.map(function(t){return e.getCallbackForEvent(t)}),e.STRING_PROPERTIES=ze.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ze.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ze.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ze.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ze.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ze.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ze.ALL_PROPERTIES,e.ALL_PROPERTIES_SET=new Set(ze.ALL_PROPERTIES),e.coercionLookup=e.getCoercionLookup(),e}();function Qe(e,t,n){var r={},o=e.filter(function(e){return!t.some(function(t){return t===e})});return o.length>0&&o.forEach(function(e){return r[e]=Ke(e,n)}),r}function Ke(e,t,n,r){var o=t.map(function(t){return{value:t,relevance:$e(e.toLowerCase(),t.toLocaleLowerCase())}});if(o.sort(function(e,t){return t.relevance-e.relevance}),n&&(o=o.filter(function(e){return 0!==e.relevance})),r&&r>0){var a=o[0].relevance*r;o=o.filter(function(e){return a-e.relevance<0})}return o.map(function(e){return e.value})}function $e(e,t){for(var n=e.replace(/\\s/g,\"\"),r=t.replace(/\\s/g,\"\"),o=0,a=-1,i=0;i<n.length;i++){var l=r.indexOf(n[i],a+1);-1!==l&&(o+=100-100*(a=l)/1e4*100)}return o}var Xe=Object.freeze({__proto__:null,fuzzyCheckStrings:Qe,fuzzySuggestions:Ke}),Je=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ze=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ze(arguments[t]));return e};function tt(e,t,n,r){var o=n?\"Please use '\"+n+\"' instead. \":\"\";O(function(){return console.warn(\"AG Grid: since v\"+e+\", '\"+t+\"' is deprecated. \"+o+(null!=r?r:\"\"))},\"Deprecated_\"+t)}var nt=function(){function e(){this.deprecatedProperties={serverSideInfiniteScroll:{version:\"29\",message:\"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`.\"},rememberGroupStateWhenNewData:{version:\"24\",message:\"Now that transaction updates are possible and they keep group state, this feature is no longer needed.\"},suppressEnterpriseResetOnNewColumns:{version:\"25\",message:\"Now that it is possible to dynamically change columns in the grid, this is no longer needed.\"},suppressColumnStateEvents:{version:\"25\",message:'Events should be ignored based on the `event.source`, which will be \"api\" if the event was due to setting column state via the API.'},defaultExportParams:{version:\"25.2\",message:\"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`\"},stopEditingWhenGridLosesFocus:{version:\"25.2.2\",newProp:\"stopEditingWhenCellsLoseFocus\",copyToNewProp:!0},applyColumnDefOrder:{version:\"26\",message:\"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true\"},groupMultiAutoColumn:{version:\"26\",newProp:\"groupDisplayType\",copyToNewProp:!0,newPropValue:\"multipleColumns\"},groupUseEntireRow:{version:\"26\",newProp:\"groupDisplayType\",copyToNewProp:!0,newPropValue:\"groupRows\"},defaultGroupSortComparator:{version:\"26\",newProp:\"initialGroupOrderComparator\"},enableMultiRowDragging:{version:\"26.1\",newProp:\"rowDragMultiRow\",copyToNewProp:!0},colWidth:{version:\"26.1\",newProp:\"defaultColDef.width\"},minColWidth:{version:\"26.1\",newProp:\"defaultColDef.minWidth\"},maxColWidth:{version:\"26.1\",newProp:\"defaultColDef.maxWidth\"},reactUi:{version:\"26.1\",message:\"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true.\"},suppressCellSelection:{version:\"27\",newProp:\"suppressCellFocus\",copyToNewProp:!0},clipboardDeliminator:{version:\"27.1\",newProp:\"clipboardDelimiter\",copyToNewProp:!0},getRowNodeId:{version:\"27.1\",newProp:\"getRowId\",message:\"The difference: if getRowId() is implemented then immutable data is enabled by default.\"},defaultGroupOrderComparator:{version:\"27.2\",newProp:\"initialGroupOrderComparator\"},groupRowAggNodes:{version:\"27.2\",newProp:\"getGroupRowAgg\"},postSort:{version:\"27.2\",newProp:\"postSortRows\"},isFullWidthCell:{version:\"27.2\",newProp:\"isFullWidthRow\"},localeTextFunc:{version:\"27.2\",newProp:\"getLocaleText\"},serverSideFilteringAlwaysResets:{version:\"28.0\",newProp:\"serverSideFilterAllLevels\",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:\"28.0\",newProp:\"serverSideSortAllLevels\",copyToNewProp:!0},suppressReactUi:{version:\"28\",message:\"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.\"},processSecondaryColDef:{version:\"28\",newProp:\"processPivotResultColDef\",copyToNewProp:!0},processSecondaryColGroupDef:{version:\"28\",newProp:\"processPivotResultColGroupDef\",copyToNewProp:!0},getServerSideStoreParams:{version:\"28\",newProp:\"getServerSideGroupLevelParams\",copyToNewProp:!0},enableChartToolPanelsButton:{version:\"29\",message:\"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true.\"},functionsPassive:{version:\"29.2\"},onColumnRowGroupChangeRequest:{version:\"29.2\"},onColumnPivotChangeRequest:{version:\"29.2\"},onColumnValueChangeRequest:{version:\"29.2\"},onColumnAggFuncChangeRequest:{version:\"29.2\"}}}return e.prototype.pickOneWarning=function(e,t){console.warn(\"AG Grid: \"+e+\" and \"+t+\" do not work with each other, you need to pick one.\")},e.prototype.init=function(){var e=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is(\"groupSelectsChildren\")&&this.gridOptionsService.is(\"suppressParentsInRowNodes\")&&console.warn(\"AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work\"),this.gridOptionsService.is(\"groupSelectsChildren\")&&\"multiple\"!==this.gridOptionsService.get(\"rowSelection\")&&console.warn(\"AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense\"),this.gridOptionsService.is(\"groupRemoveSingleChildren\")&&this.gridOptionsService.is(\"groupHideOpenParents\")&&this.pickOneWarning(\"groupRemoveSingleChildren\",\"groupHideOpenParents\"),\"autoHeight\"!==this.gridOptionsService.get(\"domLayout\")||this.gridOptionsService.isRowModelType(\"clientSide\")||this.gridOptionsService.is(\"pagination\")||(console.warn(\"AG Grid: domLayout='autoHeight' was ignored as it is only supported by the Client-Side row model, unless using pagination.\"),this.gridOptions.domLayout=\"normal\"),this.gridOptionsService.isRowModelType(\"serverSide\")){var t=function(e,t){return\"AG Grid: '\"+e+\"' is not supported on the Server-Side Row Model.\"+(t?\" Please use \"+t+\" instead.\":\"\")};this.gridOptionsService.exists(\"groupDefaultExpanded\")&&console.warn(t(\"groupDefaultExpanded\",\"isServerSideGroupOpenByDefault callback\")),this.gridOptionsService.exists(\"groupIncludeFooter\")&&console.warn(t(\"groupIncludeFooter\")),this.gridOptionsService.exists(\"groupIncludeTotalFooter\")&&console.warn(t(\"groupIncludeTotalFooter\"))}this.gridOptionsService.is(\"enableRangeSelection\")?te.assertRegistered(X.RangeSelectionModule,\"enableRangeSelection\"):(this.gridOptionsService.is(\"enableRangeHandle\")||this.gridOptionsService.is(\"enableFillHandle\"))&&console.warn(\"AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true\");var n=function(t,n){return e.gridOptionsService.exists(t)&&te.assertRegistered(n,t)};n(\"sideBar\",X.SideBarModule),n(\"statusBar\",X.StatusBarModule),n(\"enableCharts\",X.GridChartsModule),n(\"getMainMenuItems\",X.MenuModule),n(\"getContextMenuItems\",X.MenuModule),n(\"allowContextMenuWithControlKey\",X.MenuModule),this.gridOptionsService.is(\"groupRowsSticky\")&&(this.gridOptionsService.is(\"groupHideOpenParents\")&&this.pickOneWarning(\"groupRowsSticky\",\"groupHideOpenParents\"),this.gridOptionsService.is(\"masterDetail\")&&this.pickOneWarning(\"groupRowsSticky\",\"masterDetail\"),this.gridOptionsService.is(\"pagination\")&&this.pickOneWarning(\"groupRowsSticky\",\"pagination\"))},e.prototype.checkColumnDefProperties=function(){var e=this;if(null!=this.gridOptions.columnDefs){var t=et(He.ALL_PROPERTIES,He.FRAMEWORK_PROPERTIES),n=function(r,o){var a=Object.getOwnPropertyNames(r);e.checkProperties(a,t,t,o,\"https://www.ag-grid.com/javascript-data-grid/column-properties/\"),r.children&&r.children.forEach(function(e){return n(e,\"columnDefs.children\")})};this.gridOptions.columnDefs.forEach(function(e){return n(e,\"columnDefs\")}),this.gridOptions.defaultColDef&&n(this.gridOptions.defaultColDef,\"defaultColDef\")}},e.prototype.checkColumnDefViolations=function(){var e,t=null!==(e=this.gridOptionsService.get(\"rowModelType\"))&&void 0!==e?e:\"clientSide\",n={infinite:[\"headerCheckboxSelection\",\"headerCheckboxSelectionFilteredOnly\",\"headerCheckboxSelectionCurrentPageOnly\"],viewport:[\"headerCheckboxSelection\",\"headerCheckboxSelectionFilteredOnly\",\"headerCheckboxSelectionCurrentPageOnly\"],serverSide:[\"headerCheckboxSelectionFilteredOnly\",\"headerCheckboxSelectionCurrentPageOnly\"],clientSide:[]}[t];if(null==n?void 0:n.length){var r=function(e){n.forEach(function(n){n in e&&e[n]&&console.warn(\"AG Grid: Column property \"+n+\" is not supported with the row model type \"+t+\".\")})};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(e){return r(e)}),null!=this.gridOptions.autoGroupColumnDef&&r(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&r(this.gridOptions.defaultColDef)}},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=et(ze.ALL_PROPERTIES,ze.FRAMEWORK_PROPERTIES,We.EVENT_CALLBACKS),n=et(t,[\"api\",\"columnApi\"],Object.keys(this.deprecatedProperties));this.checkProperties(e,n,t,\"gridOptions\",\"https://www.ag-grid.com/javascript-data-grid/grid-options/\")},e.prototype.checkProperties=function(e,t,n,r,o){var a=Qe(e,t,n);f(a,function(e,t){O(function(){return console.warn(\"AG Grid: invalid \"+r+\" property '\"+e+\"' did you mean any of these: \"+t.slice(0,8).join(\", \"))},\"invalidProperty\"+r+e)}),Object.keys(a).length>0&&O(function(){return console.warn(\"AG Grid: to see all the valid \"+r+\" properties please check: \"+o)},\"invalidProperties\"+r+o)},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;if(Object.entries(this.deprecatedProperties).forEach(function(t){var n,r=Ze(t,2),o=r[0],a=r[1],i=e[o];i&&(tt(a.version,o,a.newProp,a.message),a.copyToNewProp&&a.newProp&&null==e[a.newProp]&&(e[a.newProp]=null!==(n=a.newPropValue)&&void 0!==n?n:i))}),e.groupSuppressAutoColumn){var t=e.treeData?\"treeDataDisplayType\":\"groupDisplayType\";console.warn(\"AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `\"+t+\" = 'custom'`\"),e[t]=\"custom\"}e.immutableData&&(e.getRowId?console.warn(\"AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.\"):console.warn(\"AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.\")),e.serverSideStoreType&&(console.warn(\"AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store.\"),e.suppressServerSideInfiniteScroll=\"partial\"!==e.serverSideStoreType)},e.prototype.checkForViolations=function(){this.gridOptionsService.is(\"treeData\")&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType(\"clientSide\")&&(this.gridOptionsService.exists(\"getDataPath\")||console.warn(\"AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.\")),this.gridOptionsService.isRowModelType(\"serverSide\")&&(this.gridOptionsService.exists(\"isServerSideGroup\")||console.warn(\"AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.\"),this.gridOptionsService.exists(\"getServerSideGroupKey\")||console.warn(\"AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.\"))},Je([q(\"gridOptions\")],e.prototype,\"gridOptions\",void 0),Je([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),Je([G],e.prototype,\"init\",null),Je([V(\"gridOptionsValidator\")],e)}();function rt(e,t){var n=[\"groupRows\",\"multipleColumns\",\"custom\",\"singleColumn\"];return n.indexOf(t)<0?(console.warn(\"AG Grid: '\"+t+\"' is not a valid groupDisplayType value - possible values are: '\"+n.join(\"', '\")+\"'\"),!1):t===e}var ot=function(){function e(e,t,n,r){this.displayedChildren=[],this.localEventService=new ee,this.groupId=t,this.partId=n,this.providedColumnGroup=e,this.pinned=r}return e.createUniqueId=function(e,t){return e+\"_\"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every(function(e){return e.isMoving()})},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(t){t instanceof e&&t.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.is(\"enableRtl\")){var t=ce(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach(function(r){t===r&&(n=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(n=!0)}),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach(function(t){e+=t.getActualWidth()}),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach(function(t){t.isResizable()&&(e=!0)}),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach(function(t){e+=t.getMinWidth()||0}),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(n){n instanceof ie?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)})},e.prototype.addLeafColumns=function(t){this.children.forEach(function(n){n instanceof ie?t.push(n):n instanceof e&&n.addLeafColumns(t)})},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return tt(\"27\",\"getOriginalColumnGroup\",\"getProvidedColumnGroup\"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!n||!n.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(r){if(!(r instanceof e)||r.displayedChildren&&r.displayedChildren.length)switch(r.getColumnGroupShow()){case\"open\":n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case\"closed\":n.providedColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r)}}),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED=\"leftChanged\",e.EVENT_DISPLAYED_CHILDREN_CHANGED=\"displayedChildrenChanged\",function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),e}(),at=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t=\"number\"!=typeof n?0:n+1,this.existingIds[e]=t,t},e}(),it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},st=\"ag-Grid-AutoColumn\",ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return it(t,e),t.prototype.createAutoGroupColumns=function(e,t){var n=this,r=[],o=this.gridOptionsService.isTreeData(),a=this.gridOptionsService.isGroupMultiAutoColumn();return o&&a&&(console.warn('AG Grid: you cannot mix groupDisplayType = \"multipleColumns\" with treeData, only one column can be used to display groups when doing tree data'),a=!1),a?t.forEach(function(t,o){r.push(n.createOneAutoGroupColumn(e,t,o))}):r.push(this.createOneAutoGroupColumn(e)),r},t.prototype.createOneAutoGroupColumn=function(e,t,n){var r,o=this.generateDefaultColDef(t);r=t?st+\"-\"+t.getId():st,b(o,this.gridOptionsService.get(\"autoGroupColumnDef\")),(o=this.columnFactory.mergeColDefs(o)).colId=r,this.gridOptionsService.isTreeData()||a(o.field)&&a(o.valueGetter)&&a(o.filterValueGetter)&&\"agGroupColumnFilter\"!==o.filter&&(o.filter=!1),n&&n>0&&(o.headerCheckboxSelection=!1);var i=e.find(function(e){return e.getId()==r});if(i)return i.setColDef(o,null),this.columnFactory.applyColumnState(i,o),i;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&(o.sort||o.initialSort)&&!o.field&&b(o,{sort:null,initialSort:null},!0,!0);var l=new ie(o,null,r,!0);return this.context.createBean(l),l},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsService.get(\"autoGroupColumnDef\"),n={headerName:this.localeService.getLocaleTextFunc()(\"group\",\"Group\")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer=\"agGroupCellRenderer\"),e){var r=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,\"header\"),headerValueGetter:r.headerValueGetter}),(r.cellRenderer||r.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererFramework:r.cellRendererFramework,innerRendererParams:r.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},lt([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),lt([q(\"columnFactory\")],t.prototype,\"columnFactory\",void 0),lt([V(\"autoGroupColService\")],t)}(ke),ct=/[&<>\"']/g,dt={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"};function pt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function ft(e,t){if(null==e)return null;var n=e.toString().toString();return t?n:n.replace(ct,function(e){return dt[e]})}function gt(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,\"$1 $2\").replace(/([A-Z]+)([A-Z])([a-z])/g,\"$1 $2$3\").replace(/\\./g,\" \").split(\" \").map(function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):\"\")}).join(\" \"):null}var ht=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return\"_x\"+e.toString(16).toUpperCase().padStart(4,\"0\")+\"_\";if(!(4294967168&e))return t(e);var r=\"\";return 4294965248&e?4294901760&e?4292870144&e||(r=t(e>>18&7|240),r+=n(e,12),r+=n(e,6)):(function(e){if(e>=55296&&e<=57343)throw Error(\"Lone surrogate U+\"+e.toString(16).toUpperCase()+\" is not a scalar value\")}(e),r=t(e>>12&15|224),r+=n(e,6)):r=t(e>>6&31|192),r+t(63&e|128)}for(var o=function(e){var t=[];if(!e)return[];for(var n,r,o=e.length,a=0;a<o;)(n=e.charCodeAt(a++))>=55296&&n<=56319&&a<o?56320==(64512&(r=e.charCodeAt(a++)))?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),a--):t.push(n);return t}(e),a=o.length,i=-1,l=\"\";++i<a;)l+=r(o[i]);return l},capitalise:pt,escapeString:ft,camelCaseToHumanText:gt});function mt(e){var t=new Map;return e.forEach(function(e){return t.set(e[0],e[1])}),t}var vt=Object.freeze({__proto__:null,convertToMap:mt,mapById:function(e,t){var n=new Map;return e.forEach(function(e){return n.set(t(e),e)}),n},keys:function(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}}),At=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Et=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},bt=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},_t=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},Ct=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsHash=\"\",t.headerViewportColumns=[],t.viewportColumnsCenter=[],t.headerViewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t}return At(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.is(\"suppressColumnVirtualisation\");var t=this.gridOptionsService.is(\"pivotMode\");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener(\"groupDisplayType\",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener(\"autoGroupColumnDef\",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener(\"defaultColDef\",function(t){return e.onSharedColDefChanged(t.source)}),this.addManagedPropertyListener(\"columnTypes\",function(t){return e.onSharedColDefChanged(t.source)})},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(\"gridOptionsChanged\")},t.prototype.onSharedColDefChanged=function(e){void 0===e&&(e=\"api\"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,e)},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t=\"api\");var n=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.destroyOldColumns=function(e,t){var n={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){n[e.getInstanceId()]=e}),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,function(e){n[e.getInstanceId()]=null});var r=Object.values(n).filter(function(e){return null!=e});this.destroyBeans(r)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t=\"api\");var r=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,a=this.primaryColumnTree,i=this.columnFactory.createColumnTree(this.columnDefs,!0,a);this.destroyOldColumns(this.primaryColumnTree,i.columnTree),this.primaryColumnTree=i.columnTree,this.primaryHeaderRowCount=i.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(e){return n.primaryColumnsMap[e.getId()]=e}),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.extractValueColumns(t,o),this.ready=!0;var l=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||l)&&(this.updateGridColumns(),e&&!this.gridOptionsService.is(\"maintainColumnOrder\")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),r&&r(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Ue.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e=\"api\");var t={type:Ue.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&(this.gridColumns.sort(function(n,r){var o=t.indexOf(n),a=t.indexOf(r),i=o>=0,l=a>=0;return i&&l?o-a:i?1:l?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.is(\"enableRtl\")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter&&this.extractViewport()){var e={type:Ue.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.isTreeData()||(console.warn(\"AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'\"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t=\"api\"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(a(this.secondaryColumns))return null;var n=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach(function(t){var o=t.getColDef().pivotKeys,a=t.getColDef().pivotValueColumn;de(o,e)&&a===n&&(r=t)}),r},t.prototype.setBeans=function(e){this.logger=e.create(\"columnModel\")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsService.is(\"enableRtl\")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ce(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ce(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)})},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,r=e.skipHeader,o=e.skipHeaderGroups,a=e.stopAtGroup,i=e.source,l=void 0===i?\"api\":i;this.animationFrameService.flushAllFrames();for(var s=[],u=-1,c=null!=r?r:this.gridOptionsService.is(\"skipHeaderOnAutoSize\"),d=null!=o?o:c;0!==u;)u=0,this.actionOnGridColumns(n,function(e){if(s.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var r=t.normaliseColumnWidth(e,n);e.setActualWidth(r,l),s.push(e),u++}return!0},l);d||this.autoSizeColumnGroupsByColumns(n,l,a),this.dispatchColumnResizedEvent(s,!0,\"autosizeColumns\")},t.prototype.dispatchColumnResizedEvent=function(e,t,n,r){if(void 0===r&&(r=null),e&&e.length){var o={type:Ue.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,source:n};this.eventService.dispatchEvent(o)}},t.prototype.dispatchColumnChangedEvent=function(e,t,n){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:n};this.eventService.dispatchEvent(r)},t.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,n=e.source,r=e.toIndex,o=e.finished,a={type:Ue.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:r,finished:o,source:n};this.eventService.dispatchEvent(a)},t.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,function(e){return e.getPinned()}),o={type:Ue.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}},t.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,function(e){return e.isVisible()}),o={type:Ue.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n=\"api\"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t,n){var r,o,a,i,l,s=new Set;this.getGridColumns(e).forEach(function(e){for(var t=e.getParent();t&&t!=n;)t.isPadding()||s.add(t),t=t.getParent()});try{for(var u=Et(s),c=u.next();!c.done;c=u.next()){var d=c.value;try{for(var p=(a=void 0,Et(this.ctrlsService.getHeaderRowContainerCtrls())),f=p.next();!f.done&&!(l=f.value.getHeaderCtrlForColumn(d));f=p.next());}catch(e){a={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}l&&l.resizeLeafColumnsToFit(t)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t=\"api\");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var r=0;r<e.length;r++){var o=e[r];o instanceof ie?t.push(o):o instanceof le&&n(o.getChildren())}};return n(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,t,n,r){for(var o,a=[],i=null,l=function(l){var s,u=t[l],c=t.length-l,d=Math.min(u.getColSpan(e),c),p=[u];if(d>1){for(var f=d-1,g=1;g<=f;g++)p.push(t[l+g]);l+=f}n?(s=!1,p.forEach(function(e){n(e)&&(s=!0)})):s=!0,s&&(0===a.length&&i&&r&&r(u)&&a.push(i),a.push(u)),i=u,o=l},s=0;s<t.length;s++)l(s),s=o;return a},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,function(e){var n=e.getLeft();return o(n)&&n>t.viewportLeft})},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,o=this.viewportRight+200;return!(t<r&&n<r||t>o&&n>o)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,r,o,a){var l=this;if(void 0===a&&(a=\"api\"),e&&!i(e)){var s=!1;if(e.forEach(function(e){var o=l.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;fe(t,o)}r(o),s=!0}}),s){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var u={type:o,columns:t,column:1===t.length?t[0]:null,source:a};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t=\"api\"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e&&!this.gridOptionsService.is(\"suppressRowGroupHidesColumns\")&&this.setColumnVisible(t,!1,n),e||this.gridOptionsService.is(\"suppressMakeColumnVisibleAfterUnGroup\")||this.setColumnVisible(t,!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t=\"api\"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t=\"api\"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t=\"api\"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t=\"api\"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t=\"api\"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(e){return e.setPivotActive(!0,t)},Ue.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t=\"api\"),this.setPrimaryColumnList(e,this.pivotColumns,Ue.EVENT_COLUMN_PIVOT_CHANGED,function(e,n){n.setPivotActive(e,t)},t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t=\"api\"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t=\"api\"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(e){return e.setPivotActive(!1,t)},Ue.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t=\"api\"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,r,a){var i=this;t.length=0,o(e)&&e.forEach(function(e){var n=i.getPrimaryColumn(e);n&&t.push(n)}),(this.primaryColumns||[]).forEach(function(e){var n=t.indexOf(e)>=0;r(n,e)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.dispatchColumnChangedEvent(n,t,a)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t=\"api\"),this.setPrimaryColumnList(e,this.valueColumns,Ue.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t=\"api\"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ue.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t=\"api\"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t=\"api\"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t=\"api\"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ue.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();o(n)&&t<n&&(t=n);var r=e.getMaxWidth();return o(r)&&e.isGreaterThanMax(t)&&(t=r),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,r){var o=this;void 0===r&&(r=\"api\");var a=[];e.forEach(function(e){var n=o.getPrimaryOrGridColumn(e.key);if(n&&(a.push({width:e.newWidth,ratios:[1],columns:[n]}),\"shift\"===o.gridOptionsService.get(\"colResizeDefault\")&&(t=!t),t)){var r=o.getDisplayedColAfter(n);if(!r)return;var i=n.getActualWidth()-e.newWidth,l=r.getActualWidth()+i;a.push({width:l,ratios:[1],columns:[r]})}}),0!==a.length&&this.resizeColumnSets({resizeSets:a,finished:n,source:r})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,r=0,a=0,i=!0;return t.forEach(function(e){var t=e.getMinWidth();r+=t||0;var n=e.getMaxWidth();o(n)&&n>0?a+=n:i=!1}),n>=r&&(!i||n<=a)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,r=e.finished,a=e.source;if(!n||n.every(function(e){return t.checkMinAndMaxWidthsForSet(e)})){var i=[],l=[];n.forEach(function(e){var t=e.width,n=e.columns,r=e.ratios,s={},u={};n.forEach(function(e){return l.push(e)});for(var c=!0,d=0,p=function(){if(++d>1e3)return console.error(\"AG Grid: infinite loop in resizeColumnSets\"),\"break\";c=!1;var e=[],a=0,i=t;n.forEach(function(t,n){if(u[t.getId()])i-=s[t.getId()];else{e.push(t);var o=r[n];a+=o}});var l=1/a;e.forEach(function(n,a){var d;a===e.length-1?d=i:(d=Math.round(r[a]*t*l),i-=d);var p=n.getMinWidth(),f=n.getMaxWidth();o(p)&&d<p?(d=p,u[n.getId()]=!0,c=!0):o(f)&&f>0&&d>f&&(d=f,u[n.getId()]=!0,c=!0),s[n.getId()]=d})};c&&\"break\"!==p(););n.forEach(function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,a),i.push(e))})});var s=i.length>0,u=[];s&&(u=this.refreshFlexedColumns({resizingCols:l,skipSetLeft:!0}),this.setLeftValues(a),this.updateBodyWidths(),this.checkViewportColumns());var c=l.concat(u);(s||r)&&this.dispatchColumnResizedEvent(c,r,a,u)}else if(r){var d=n&&n.length>0?n[0].columns:null;this.dispatchColumnResizedEvent(d,r,a)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n=\"api\"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.dispatchColumnChangedEvent(Ue.EVENT_COLUMN_VALUE_CHANGED,[r],n))}},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n=\"api\");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var o={type:Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveColumns=function(e,t,n,r){if(void 0===n&&(n=\"api\"),void 0===r&&(r=!0),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn(\"AG Grid: tried to insert columns in invalid location, toIndex = \"+t),void console.warn(\"AG Grid: remember that you should not count the moving columns when calculating the new index\");var o=this.getGridColumns(e);!this.doesMovePassRules(o,t)||(me(this.gridColumns,o,t),this.updateDisplayedColumns(n),this.dispatchColumnMovedEvent({movedColumns:o,source:n,toIndex:t,finished:r}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,t){var n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)},t.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},t.prototype.getProposedColumnOrder=function(e,t){var n=this.gridColumns.slice();return me(n,e,t),n},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||e.filter(function(e){return t.gridColumns.indexOf(e)<0}).length>0||e.sort(function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach(function(e){var r,o=(r=e.getColDef().lockPosition)?!0===r||\"left\"===r?0:2:1;o<t&&(n=!1),t=o}),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(n){if(n instanceof le){var r=n,o=r.getColGroupDef();if(o&&o.marryChildren){var a=[];r.getLeafColumns().forEach(function(t){var n=e.indexOf(t);a.push(n)}),Math.max.apply(Math,a)-Math.min.apply(Math,a)>r.getLeafColumns().length-1&&(t=!1)}}}),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n=\"api\"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n=\"api\");var r=this.gridColumns[e];this.moveColumn(r,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort(function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)}):this.lastPrimaryOrder&&t.sort(function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)}),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case\"left\":return this.leftWidth;case\"right\":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var r={type:Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case\"left\":return this.getDisplayedLeftColumns();case\"right\":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return i(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return i(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n=\"api\"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=\"api\"),this.applyColumnState({state:e.map(function(e){return{colId:\"string\"==typeof e?e:e.getColId(),hide:!t}})},n)},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n=\"api\"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var r;void 0===n&&(n=\"api\"),this.gridOptionsService.isDomLayout(\"print\")?console.warn(\"AG Grid: Changing the column pinning status is not allowed with domLayout='print'\"):(this.columnAnimationService.start(),r=!0===t||\"left\"===t?\"left\":\"right\"===t?\"right\":null,this.actionOnGridColumns(e,function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)},n,function(){return{type:Ue.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:n}}),this.columnAnimationService.finish())},t.prototype.actionOnGridColumns=function(e,t,n,r){var a=this;if(!i(e)){var l=[];if(e.forEach(function(e){var n=a.getGridColumn(e);n&&!1!==t(n)&&l.push(n)}),l.length&&(this.updateDisplayedColumns(n),o(r)&&r)){var s=r();s.columns=l,s.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(s)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,\"After\")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,\"Before\")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),o=\"After\"===t?ce(r):r[0],a=\"getDisplayedCol\"+t;;){var i=this[a](o);if(!i)return null;var l=this.getColumnGroupAtLevel(i,n);if(l!==e)return l}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();!(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t);)n=n.getParent();return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,_t([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,o=null!=e.getSort()?e.getSort():null,a=null!=e.getSortIndex()?e.getSortIndex():null,i=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:o,sortIndex:a,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:i}},t.prototype.getColumnState=function(){if(a(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=mt(this.gridColumns.map(function(e,t){return[e.getColId(),t]}));e.sort(function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)})},t.prototype.resetColumnState=function(e){void 0===e&&(e=\"api\");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,o=1e3,i=[];this.groupAutoColumns&&(i=i.concat(this.groupAutoColumns)),t&&(i=i.concat(t)),i.forEach(function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},i=e.getColDef(),l=t(i.sort,i.initialSort),s=t(i.sortIndex,i.initialSortIndex),u=t(i.hide,i.initialHide),c=t(i.pinned,i.initialPinned),d=t(i.width,i.initialWidth),p=t(i.flex,i.initialFlex),f=t(i.rowGroupIndex,i.initialRowGroupIndex),g=t(i.rowGroup,i.initialRowGroup);null!=f||null!=g&&0!=g||(f=null,g=null);var h=t(i.pivotIndex,i.initialPivotIndex),m=t(i.pivot,i.initialPivot);null!=h||null!=m&&0!=m||(h=null,m=null);var v=t(i.aggFunc,i.initialAggFunc),A={colId:e.getColId(),sort:l,sortIndex:s,hide:u,pinned:c,width:d,flex:p,rowGroup:g,rowGroupIndex:f,pivot:m,pivotIndex:h,aggFunc:v};a(f)&&g&&(A.rowGroupIndex=r++),a(h)&&m&&(A.pivotIndex=o++),n.push(A)}),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(i(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn(\"AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.\"),!1;var r=function(r,o,a){var i=n.compareColumnStatesAndDispatchEvents(t);n.autoGroupsNeedBuilding=!0;var l=o.slice(),s={},u={},c=[],d=[],p=0,f=n.rowGroupColumns.slice(),g=n.pivotColumns.slice();r.forEach(function(r){var o=r.colId||\"\";if(o.startsWith(st))return c.push(r),void d.push(r);var i=a(o);i?(n.syncColumnWithStateItem(i,r,e.defaultState,s,u,!1,t),fe(l,i)):(d.push(r),p+=1)});var h=function(r){return n.syncColumnWithStateItem(r,null,e.defaultState,s,u,!1,t)};l.forEach(h);var m=function(e,t,n,r){var o=e[n.getId()],a=e[r.getId()],i=null!=o,l=null!=a;if(i&&l)return o-a;if(i)return-1;if(l)return 1;var s=t.indexOf(n),u=t.indexOf(r),c=s>=0;return c&&u>=0?s-u:c?-1:1};n.rowGroupColumns.sort(m.bind(n,s,f)),n.pivotColumns.sort(m.bind(n,u,g)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach(function(r){var o=n.getAutoColumn(r.colId);fe(v,o),n.syncColumnWithStateItem(o,r,e.defaultState,null,null,!0,t)}),v.forEach(h),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),i(),{unmatchedAndAutoStates:d,unmatchedCount:p}};this.columnAnimationService.start();var a=r(e.state||[],this.primaryColumns||[],function(e){return n.getPrimaryColumn(e)}),l=a.unmatchedAndAutoStates,s=a.unmatchedCount;return(l.length>0||o(e.defaultState))&&(s=r(l,this.secondaryColumns||[],function(e){return n.getSecondaryColumn(e)}).unmatchedCount),this.columnAnimationService.finish(),0===s},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],r={};e.state.forEach(function(e){if(e.colId&&!r[e.colId]){var o=t.gridColumnsMap[e.colId];o&&(n.push(o),r[e.colId]=!0)}});var o=0;this.gridColumns.forEach(function(e){var t=e.getColId();null!=r[t]||(t.startsWith(st)?he(n,e,o++):n.push(e))}),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn(\"AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.\")}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),o={};return r.forEach(function(e){o[e.colId]=e}),function(){var a=t.getPrimaryAndSecondaryAndAutoColumns(),i=function(n,r,o,a){if(!de(r.map(a),o.map(a))){var i={type:n,columns:o,column:1===o.length?o[0]:null,source:e};t.eventService.dispatchEvent(i)}},l=function(e){var t=[];return a.forEach(function(n){var r=o[n.getColId()];r&&e(r,n)&&t.push(n)}),t},s=function(e){return e.getColId()};i(Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,s),i(Ue.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,s),l(function(e,t){var n=null!=e.aggFunc,r=n!=t.isValueActive(),o=n&&e.aggFunc!=t.getAggFunc();return r||o}).length>0&&t.dispatchColumnChangedEvent(Ue.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e),t.dispatchColumnResizedEvent(l(function(e,t){return e.width!=t.getActualWidth()}),!0,e),t.dispatchColumnPinnedEvent(l(function(e,t){return e.pinned!=t.getPinned()}),e),t.dispatchColumnVisibleEvent(l(function(e,t){return e.hide==t.isVisible()}),e),l(function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()}).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(r,e)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}},t.prototype.normaliseColumnMovedEventForColumnState=function(e,t){var n=this,r=this.getColumnState(),o={};r.forEach(function(e){return o[e.colId]=e});var a={};e.forEach(function(e){o[e.colId]&&(a[e.colId]=!0)});var i=e.filter(function(e){return a[e.colId]}),l=r.filter(function(e){return a[e.colId]}),s=[];l.forEach(function(e,t){var r=i&&i[t];if(r&&r.colId!==e.colId){var o=n.getGridColumn(r.colId);o&&s.push(o)}}),s.length&&this.dispatchColumnMovedEvent({movedColumns:s,source:t,finished:!0})},t.prototype.syncColumnWithStateItem=function(e,t,n,r,a,i,l){if(e){var s=function(e,r){var a={value1:void 0,value2:void 0},i=!1;return t&&(void 0!==t[e]&&(a.value1=t[e],i=!0),o(r)&&void 0!==t[r]&&(a.value2=t[r],i=!0)),!i&&n&&(void 0!==n[e]&&(a.value1=n[e]),o(r)&&void 0!==n[r]&&(a.value2=n[r])),a},u=s(\"hide\").value1;void 0!==u&&e.setVisible(!u,l);var c=s(\"pinned\").value1;void 0!==c&&e.setPinned(c);var d=this.columnUtils.calculateColMinWidth(e.getColDef()),p=s(\"flex\").value1;if(void 0!==p&&e.setFlex(p),e.getFlex()<=0){var f=s(\"width\").value1;null!=f&&null!=d&&f>=d&&e.setActualWidth(f,l)}var g=s(\"sort\").value1;void 0!==g&&(\"desc\"===g||\"asc\"===g?e.setSort(g,l):e.setSort(void 0,l));var h=s(\"sortIndex\").value1;if(void 0!==h&&e.setSortIndex(h),!i&&e.isPrimary()){var m=s(\"aggFunc\").value1;void 0!==m&&(\"string\"==typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(o(m)&&console.warn(\"AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.\"),e.isValueActive()&&(e.setValueActive(!1,l),fe(this.valueColumns,e))));var v=s(\"rowGroup\",\"rowGroupIndex\"),A=v.value1,y=v.value2;void 0===A&&void 0===y||(\"number\"==typeof y||A?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),r&&\"number\"==typeof y&&(r[e.getId()]=y)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),fe(this.rowGroupColumns,e)));var E=s(\"pivot\",\"pivotIndex\"),b=E.value1,_=E.value2;void 0===b&&void 0===_||(\"number\"==typeof _||b?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),a&&\"number\"==typeof _&&(a[e.getId()]=_)):e.isPivotActive()&&(e.setPivotActive(!1,l),fe(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach(function(e){var r=t(e);r&&n.push(r)}),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn(\"AG Grid: could not find column \"+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if(\"string\"==typeof e&&n[e])return n[e];for(var r=0;r<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},t.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);var n=this.getPrimaryColumn(t);return n?[n]:null},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&o(this.groupAutoColumns)&&!a(this.groupAutoColumns)&&this.groupAutoColumns.find(function(n){return t.columnsMatch(n,e)})||null},t.prototype.columnsMatch=function(e,t){var n=e===t,r=e.getColDef()===t,o=e.getColId()==t;return n||r||o},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,r):r},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,r,o){var a=e.headerValueGetter;if(a){var i={colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:o,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return\"function\"==typeof a?a(i):\"string\"==typeof a?this.expressionService.evaluate(a,i):(console.warn(\"AG Grid: headerValueGetter must be a function or a string\"),\"\")}return null!=e.headerName?e.headerName:e.field?gt(e.field):\"\"},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsService.is(\"suppressAggFuncInHeader\"))return t;var n,r=e.getColDef().pivotValueColumn,a=null;if(o(r)){var i=this.gridOptionsService.is(\"removePivotHeaderRowWhenSingleValueColumn\")&&1===this.valueColumns.length,l=void 0!==e.getColDef().pivotTotalColumnIds;if(i&&!l)return t;a=r?r.getAggFunc():null,n=!0}else{var s=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();s&&u?(a=e.getAggFunc(),n=!0):n=!1}if(n){var c=\"string\"==typeof a?a:\"func\";return this.localeService.getLocaleTextFunc()(c,c)+\"(\"+t+\")\"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof ot)return e;var n=this.getAllDisplayedTrees(),r=\"number\"==typeof t,o=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,function(n){if(n instanceof ot){var a=n;(r?e===a.getGroupId()&&t===a.getPartId():e===a.getGroupId())&&(o=a)}}),o},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,function(t,n){return t.setValueActive(n,e)},function(){},function(){},function(e){var t=e.aggFunc;return null===t||\"\"===t?null:void 0!==t?!!t:void 0},function(e){return null!=e.initialAggFunc&&\"\"!=e.initialAggFunc}),this.valueColumns.forEach(function(e){var t=e.getColDef();null!=t.aggFunc&&\"\"!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)})},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,function(t,n){return t.setRowGroupActive(n,e)},function(e){return e.rowGroupIndex},function(e){return e.initialRowGroupIndex},function(e){return e.rowGroup},function(e){return e.initialRowGroup})},t.prototype.extractColumns=function(e,t,n,r,o,a,i){void 0===e&&(e=[]),void 0===t&&(t=[]);var l=[],c=[];(this.primaryColumns||[]).forEach(function(n){var d=e.indexOf(n)<0,p=n.getColDef(),f=u(a(p)),g=u(i(p)),h=s(r(p)),m=s(o(p));(void 0!==f?f:void 0!==h?null!==h&&h>=0:d?void 0!==g?g:void 0!==m&&null!=m&&m>=0:t.indexOf(n)>=0)&&((d?null!=h||null!=m:null!=h)?l.push(n):c.push(n))});var d=function(e){var t=r(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};l.sort(function(e,t){var n=d(e),r=d(t);return n===r?0:n<r?-1:1});var p=[].concat(l);return t.forEach(function(e){c.indexOf(e)>=0&&p.push(e)}),c.forEach(function(e){p.indexOf(e)<0&&p.push(e)}),t.forEach(function(e){p.indexOf(e)<0&&n(e,!1)}),p.forEach(function(e){t.indexOf(e)<0&&n(e,!0)}),p},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,function(t,n){return t.setPivotActive(n,e)},function(e){return e.pivotIndex},function(e){return e.initialPivotIndex},function(e){return e.pivot},function(e){return e.initialPivot})},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e=\"api\");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(e){if(e instanceof le){var n=e.getColGroupDef(),r={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(r)}}),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(t){t instanceof le&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t=\"api\"),this.columnAnimationService.start();var r=[];e.forEach(function(e){var t=e.groupId,o=e.open,a=n.getProvidedColumnGroup(t);a&&a.isExpanded()!==o&&(n.logger.log(\"columnGroupOpened(\"+a.getGroupId()+\",\"+o+\")\"),a.setExpanded(o),r.push(a))}),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach(function(e){var t={type:Ue.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};n.eventService.dispatchEvent(t)}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var r;void 0===n&&(n=\"api\"),r=e instanceof le?e.getId():e||\"\",this.setColumnGroupState([{groupId:r,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){\"string\"!=typeof e&&console.error(\"AG Grid: group key must be a string\");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(n){n instanceof le&&n.getId()===e&&(t=n)}),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&a(this.secondaryColumns)?this.gridColumns.filter(function(t){var n=e.groupAutoColumns&&ve(e.groupAutoColumns,t),r=e.valueColumns&&ve(e.valueColumns,t);return n||r}):this.gridColumns.filter(function(t){return e.groupAutoColumns&&ve(e.groupAutoColumns,t)||t.isVisible()})},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach(function(e){o(e.getColDef().colSpan)&&(t=!0)}),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var t=function(t){var n=t.getColDef(),r=n.showRowGroup;n&&o(r)&&(e.groupDisplayColumns.push(t),\"string\"==typeof r?e.groupDisplayColumnsMap[r]=t:!0===r&&e.getRowGroupColumns().forEach(function(n){e.groupDisplayColumnsMap[n.getId()]=t}))};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return o(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t=\"api\");var r=e&&e.length>0;if(r||!a(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,o.columnTree),this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(e){return n.secondaryColumnsMap[e.getId()]=e}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsService.get(\"processPivotResultColDef\")||this.gridOptionsService.get(\"processSecondaryColDef\"),n=this.gridOptionsService.get(\"processPivotResultColGroupDef\")||this.gridOptionsService.get(\"processSecondaryColGroupDef\");if(t||n){var r=function(e){e.forEach(function(e){if(o(e.children)){var a=e;n&&n(a),r(a.children)}else t&&t(e)})};e&&r(e)}},t.prototype.updateGridColumns=function(){var e,t=this,n=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var r=this.secondaryColumns.every(function(e){return void 0!==t.gridColumnsMap[e.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,r&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var o=mt(this.groupAutoColumns.map(function(e){return[e,!0]}));e=e.filter(function(e){return!o.has(e)}),e=_t(this.groupAutoColumns,e)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(e){return t.gridColumnsMap[e.getId()]=e}),this.setAutoHeightActive(),!de(n,this.gridBalancedTree)){var a={type:Ue.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.setAutoHeightActive=function(){this.autoHeightActive=this.gridColumns.filter(function(e){return e.isAutoHeight()}).length>0,!this.autoHeightActive||(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType(\"clientSide\")||this.gridOptionsService.isRowModelType(\"serverSide\"))||O(function(){return console.warn(\"AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.\")},\"autoHeightActive.wrongRowModel\")},t.prototype.orderGridColsLike=function(e){if(!a(e)){var t=mt(e.map(function(e,t){return[e,t]})),n=!0;if(this.gridColumns.forEach(function(e){t.has(e)&&(n=!1)}),!n){var r=mt(this.gridColumns.map(function(e){return[e,!0]})),o=e.filter(function(e){return r.has(e)}),i=mt(o.map(function(e){return[e,!0]})),l=this.gridColumns.filter(function(e){return!i.has(e)}),s=o.slice();l.forEach(function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;)t.getLeafColumns().forEach(function(e){var t=s.indexOf(e)>=0,r=n.indexOf(e)<0;t&&r&&n.push(e)}),t=t.getOriginalParent();if(n.length){var r=n.map(function(e){return s.indexOf(e)}),o=Math.max.apply(Math,_t(r));he(s,e,o+1)}else s.push(e)}else s.push(e)}),this.gridColumns=s}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,t;this.groupAutoColumns?t=(null!==(e=this.primaryColumns)&&void 0!==e?e:[]).concat(this.groupAutoColumns):this.primaryColumns&&(t=this.primaryColumns),t=null!=t?t:[],this.columnsForQuickFilter=this.gridOptionsService.is(\"excludeHiddenColumnsFromQuickFilter\")?t.filter(function(e){return e.isVisible()||e.isRowGroupActive()}):t},t.prototype.placeLockedColumns=function(e){var t=[],n=[],r=[];return e.forEach(function(e){var o=e.getColDef().lockPosition;\"right\"===o?r.push(e):\"left\"===o||!0===o?t.push(e):n.push(e)}),_t(t,n,r)},t.prototype.addAutoGroupToGridColumns=function(){if(a(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=\"\"},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ue.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(e){return e.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is(\"enableRtl\")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),r=this.gridOptionsService.is(\"enableRtl\");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(o){if(r){var a=t.getWidthOfColsInList(o);o.forEach(function(t){a-=t.getActualWidth(),t.setLeft(a,e)})}else{var i=0;o.forEach(function(t){t.setLeft(i,e),i+=t.getActualWidth()})}ge(n,o)}),n.forEach(function(t){t.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(e){e instanceof ot&&e.checkLeft()})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(e){e instanceof ie&&t.push(e)})},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case\"left\":n=this.viewportRowLeft[t];break;case\"right\":n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return a(n)&&(n=[]),n},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(t){return e[t.getId()]=!0});var t=function(n,r,o){for(var a=!1,i=0;i<n.length;i++){var l=n[i],s=!1;if(l instanceof ie)s=!0===e[l.getId()];else{var u=l.getDisplayedChildren();u&&(s=t(u,r,o+1))}s&&(a=!0,r[o]||(r[o]=[]),r[o].push(l))}return a};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns();var e=this.viewportColumns.map(function(e){return e.getId()+\"-\"+(e.getPinned()||\"normal\")}).join(\"#\"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:\"flex\";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var r=-1;e.resizingCols&&e.resizingCols.forEach(function(e){var n=t.displayedColumnsCenter.indexOf(e);r<n&&(r=n)});var a=function(e){var n=t.displayedColumnsCenter.indexOf(e)>r;return e.getFlex()&&n},i=this.displayedColumnsCenter.filter(function(e){return!a(e)}),l=this.displayedColumnsCenter.filter(function(e){return a(e)}),s=[];if(!l.length)return[];var u,c=[];e:for(;;){var d=l.reduce(function(e,t){return e+t.getFlex()},0);u=this.flexViewportWidth-this.getWidthOfColsInList(i);for(var p=0;p<l.length;p++){var f=l[p],g=u*f.getFlex()/d,h=0,m=f.getMinWidth(),v=f.getMaxWidth();if(o(m)&&g<m?h=m:o(v)&&g>v&&(h=v),h){f.setActualWidth(h,n),fe(l,f),s.push(f),i.push(f);continue e}c[p]=Math.round(g)}break}var A=u;return l.forEach(function(e,t){e.setActualWidth(Math.min(c[t],A),n),s.push(e),A-=c[t]}),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(s,!0,n,l),l},t.prototype.sizeColumnsToFit=function(e,t,n,r){var a,i,l,s,u;void 0===t&&(t=\"sizeColumnsToFit\");var c={};r&&(null===(a=null==r?void 0:r.columnLimits)||void 0===a||a.forEach(function(e){var t=e.key,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,[\"key\"]);c[\"string\"==typeof t?t:t.getColId()]=n}));var d=this.getAllDisplayedColumns(),p=e===this.getWidthOfColsInList(d);if(!(e<=0||!d.length||p)){var f=[],g=[];d.forEach(function(e){!0===e.getColDef().suppressSizeToFit?g.push(e):f.push(e)});var h=f.slice(0),m=!1,v=function(e){fe(f,e),g.push(e)};for(f.forEach(function(e){return e.resetActualWidth(t)});!m;){m=!0;var A=e-this.getWidthOfColsInList(g);if(A<=0)f.forEach(function(e){var n,o,a=null!==(o=null===(n=null==c?void 0:c[e.getId()])||void 0===n?void 0:n.minWidth)&&void 0!==o?o:null==r?void 0:r.defaultMinWidth;\"number\"!=typeof a?e.setMinimum(t):e.setActualWidth(a)});else for(var y=A/this.getWidthOfColsInList(f),E=A,b=f.length-1;b>=0;b--){var _=f[b],C=null==c?void 0:c[_.getId()],w=null!==(i=null==C?void 0:C.minWidth)&&void 0!==i?i:null==r?void 0:r.defaultMinWidth,S=null!==(l=null==C?void 0:C.maxWidth)&&void 0!==l?l:null==r?void 0:r.defaultMaxWidth,T=null!==(s=_.getMinWidth())&&void 0!==s?s:0,O=null!==(u=_.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,D=\"number\"==typeof w&&w>T?w:_.getMinWidth(),R=\"number\"==typeof S&&S<O?S:_.getMaxWidth(),N=Math.round(_.getActualWidth()*y);o(D)&&N<D?(N=D,v(_),m=!1):o(R)&&N>R?(N=R,v(_),m=!1):0===b&&(N=E),_.setActualWidth(N,t,!0),E-=N}}h.forEach(function(e){e.fireColumnWidthChangedEvent(t)}),this.setLeftValues(t),this.updateBodyWidths(),n||this.dispatchColumnResizedEvent(h,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],r=[];e.forEach(function(e){switch(e.getPinned()){case\"left\":t.push(e);break;case\"right\":n.push(e);break;default:r.push(e)}});var o=new at;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,o,\"left\",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,o,\"right\",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,o,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(e){e instanceof ot&&e.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsService.is(\"pivotSuppressAutoColumn\"):this.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||t||e)this.groupAutoColumns=null;else{var n=this.groupAutoColumns||[],r=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);if(!this.autoColsEqual(r,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=r,!0}return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get(\"groupDisplayType\");if(e&&rt(\"custom\",e))return!0;var t,n,r=this.gridOptionsService.get(\"treeDataDisplayType\");return!!r&&((n=[\"auto\",\"custom\"]).indexOf(t=r)<0?(console.warn(\"AG Grid: '\"+t+\"' is not a valid treeDataDisplayType value - possible values are: '\"+n.join(\"', '\")+\"'\"),!1):\"custom\"===t)},t.prototype.autoColsEqual=function(e,t){return de(e,t,function(e,t){return e.getColId()===t.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(e,t){return e+t.getActualWidth()},0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some(function(e){return e.getColDef().floatingFilter})},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.is(\"enableRtl\"),t=[\"getDisplayedLeftColumns\",\"getDisplayedCenterColumns\",\"getDisplayedRightColumns\"];e&&t.reverse();for(var n=0;n<t.length;n++){var r=this[t[n]]();if(r.length)return e?ce(r):r[0]}return null},t.prototype.setColumnHeaderHeight=function(e,t){if(e.setAutoHeaderHeight(t)){var n={type:Ue.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:\"autosizeColumnHeaderHeight\"};this.eventService.dispatchEvent(n)}},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter(function(e){return e.isAutoHeaderHeight()}).map(function(e){return e.getAutoHeaderHeight()||0});return Math.max.apply(Math,_t([e],t))},t.prototype.getHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum(\"headerHeight\"))&&void 0!==e?e:this.environment.getFromTheme(25,\"headerHeight\")},t.prototype.getFloatingFiltersHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum(\"floatingFiltersHeight\"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum(\"groupHeaderHeight\"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum(\"pivotHeaderHeight\"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum(\"pivotGroupHeaderHeight\"))&&void 0!==e?e:this.getGroupHeaderHeight()},yt([q(\"expressionService\")],t.prototype,\"expressionService\",void 0),yt([q(\"columnFactory\")],t.prototype,\"columnFactory\",void 0),yt([q(\"displayedGroupCreator\")],t.prototype,\"displayedGroupCreator\",void 0),yt([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),yt([q(\"autoWidthCalculator\")],t.prototype,\"autoWidthCalculator\",void 0),yt([q(\"columnUtils\")],t.prototype,\"columnUtils\",void 0),yt([q(\"columnAnimationService\")],t.prototype,\"columnAnimationService\",void 0),yt([q(\"autoGroupColService\")],t.prototype,\"autoGroupColService\",void 0),yt([W(\"aggFuncService\")],t.prototype,\"aggFuncService\",void 0),yt([W(\"valueCache\")],t.prototype,\"valueCache\",void 0),yt([W(\"animationFrameService\")],t.prototype,\"animationFrameService\",void 0),yt([q(\"sortController\")],t.prototype,\"sortController\",void 0),yt([q(\"columnDefFactory\")],t.prototype,\"columnDefFactory\",void 0),yt([G],t.prototype,\"init\",null),yt([z],t.prototype,\"destroyColumns\",null),yt([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),yt([V(\"columnModel\")],t);var n,r}(ke),wt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wt(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),o=s(e.width),a=s(e.initialWidth);return t=null!=o?o:null!=a?a:200,Math.max(Math.min(t,r),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(t,a){for(var i=0;i<t.length;i++){if(r)return;var l=t[i];l instanceof le?(o(l.getChildren(),a+1),n[a]=l):l===e&&(r=!0)}};return o(t,0),r?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var r=this;t&&t.forEach(function(t){t instanceof le&&r.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach(function(e){e instanceof ot&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach(function(e){e instanceof ot&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)})},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"columnUtils\")],t)}(ke),Tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tt(t,e),t.prototype.createDisplayedGroups=function(e,t,n,r,o){var a,i,l=this,s=[],u=this.mapOldGroupsById(o);return e.forEach(function(e){for(var o=l.getOriginalPathForColumn(t,e),c=[],d=!i,p=0;p<o.length;p++)if(d||o[p]!==i[p]){var f=l.createColumnGroup(o[p],n,u,r);c[p]=f,0==p?s.push(f):c[p-1].addChild(f)}else c[p]=a[p];0===c.length?s.push(e):ce(c).addChild(e),a=c,i=o}),this.setupParentsIntoColumns(s,null),s},t.prototype.createColumnGroup=function(e,t,n,r){var a=e.getGroupId(),i=t.getInstanceIdForKey(a),l=n[ot.createUniqueId(a,i)];return l&&l.getProvidedColumnGroup()!==e&&(l=null),o(l)?l.reset():(l=new ot(e,a,i,r),this.context.createBean(l)),l},t.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach(function(e){if(e instanceof ot){var r=e;t[e.getUniqueId()]=r,n(r.getChildren())}})};return e&&n(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach(function(e){if(e.setParent(t),e instanceof ot){var r=e;n.setupParentsIntoColumns(r.getChildren(),r)}})},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(e,a){for(var i=0;i<e.length;i++){if(r)return;var l=e[i];l instanceof le?(o(l.getChildren(),a+1),n[a]=l):l===t&&(r=!0)}};return o(e,0),r?n:(console.warn(\"AG Grid: could not get path\"),null)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"displayedGroupCreator\")],t)}(ke),Dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Dt(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach(function(e){return t.addComponent(e)})},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,\"$1-$2\").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"agStackComponentsRegistry\")],t)}(ke);function Nt(e,t,n){null==n||\"\"==n?Pt(e,t):Lt(e,t,n)}function Lt(e,t,n){e.setAttribute(Mt(t),n.toString())}function Pt(e,t){e.removeAttribute(Mt(t))}function Mt(e){return\"aria-\"+e}function xt(e,t){t?e.setAttribute(\"role\",t):e.removeAttribute(\"role\")}function It(e){return\"asc\"===e?\"ascending\":\"desc\"===e?\"descending\":\"mixed\"===e?\"other\":\"none\"}function kt(e){return parseInt(e.getAttribute(\"aria-level\"),10)}function Bt(e){return parseInt(e.getAttribute(\"aria-posinset\"),10)}function Ft(e,t){Nt(e,\"label\",t)}function jt(e,t){Nt(e,\"labelledby\",t)}function Ht(e,t){Nt(e,\"description\",t)}function Ut(e,t){Nt(e,\"describedby\",t)}function Yt(e,t){Nt(e,\"level\",t)}function Gt(e,t){Nt(e,\"disabled\",t)}function zt(e,t){Nt(e,\"hidden\",t)}function Vt(e,t){Lt(e,\"expanded\",t)}function qt(e){Pt(e,\"expanded\")}function Wt(e,t){Lt(e,\"setsize\",t)}function Qt(e,t){Lt(e,\"posinset\",t)}function Kt(e,t){Lt(e,\"multiselectable\",t)}function $t(e,t){Lt(e,\"rowcount\",t)}function Xt(e,t){Lt(e,\"rowindex\",t)}function Jt(e,t){Lt(e,\"colcount\",t)}function Zt(e,t){Lt(e,\"colindex\",t)}function en(e,t){Lt(e,\"colspan\",t)}function tn(e,t){Lt(e,\"sort\",t)}function nn(e){Pt(e,\"sort\")}function rn(e,t){Nt(e,\"selected\",t)}function on(e,t){Lt(e,\"checked\",void 0===t?\"mixed\":t)}var an,ln,sn,un,cn,dn,pn,fn,gn=Object.freeze({__proto__:null,setAriaRole:xt,getAriaSortState:It,getAriaLevel:kt,getAriaPosInSet:Bt,getAriaDescribedBy:function(e){return e.getAttribute(\"aria-describedby\")||\"\"},setAriaLabel:Ft,setAriaLabelledBy:jt,setAriaDescription:Ht,setAriaDescribedBy:Ut,setAriaLive:function(e,t){Nt(e,\"live\",t)},setAriaLevel:Yt,setAriaDisabled:Gt,setAriaHidden:zt,setAriaExpanded:Vt,removeAriaExpanded:qt,setAriaSetSize:Wt,setAriaPosInSet:Qt,setAriaMultiSelectable:Kt,setAriaRowCount:$t,setAriaRowIndex:Xt,setAriaColCount:Jt,setAriaColIndex:Zt,setAriaColSpan:en,setAriaSort:tn,removeAriaSort:nn,setAriaSelected:rn,setAriaChecked:on});function hn(){return void 0===an&&(an=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),an}function mn(){if(void 0===ln)if(hn()){var e=navigator.userAgent.match(/version\\/(\\d+)/i);e&&(ln=null!=e[1]?parseFloat(e[1]):0)}else ln=0;return ln}function vn(){if(void 0===sn){var e=window;sn=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return sn}function An(){return void 0===un&&(un=/(firefox)/i.test(navigator.userAgent)),un}function yn(){return void 0===cn&&(cn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),cn}function En(){return void 0===dn&&(dn=/iPad|iPhone|iPod/.test(navigator.platform)||\"MacIntel\"===navigator.platform&&navigator.maxTouchPoints>1),dn}function bn(){return!hn()||mn()>=15}function _n(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute(\"tabIndex\");return-1!==t||null!==n&&(\"\"!==n||An())?t.toString():null}function Cn(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement(\"div\");for(document.body.appendChild(n);;){var r=2*e;if(n.style.height=r+\"px\",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),e}function wn(){var e,t,n;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(n=document.documentElement)||void 0===n?void 0:n.clientWidth)||-1}function Sn(){var e,t,n;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(n=document.documentElement)||void 0===n?void 0:n.clientHeight)||-1}function Tn(){return null==fn&&On(),fn}function On(){var e=document.body,t=document.createElement(\"div\");t.style.width=t.style.height=\"100px\",t.style.opacity=\"0\",t.style.overflow=\"scroll\",t.style.msOverflowStyle=\"scrollbar\",t.style.position=\"absolute\",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(fn=n,pn=0===n)}function Dn(){return null==pn&&On(),pn}var Rn=Object.freeze({__proto__:null,isBrowserSafari:hn,getSafariVersion:mn,isBrowserChrome:vn,isBrowserFirefox:An,isMacOsUserAgent:yn,isIOSUserAgent:En,browserSupportsPreventScroll:bn,getTabIndex:_n,getMaxDivHeight:Cn,getBodyWidth:wn,getBodyHeight:Sn,getScrollbarWidth:Tn,isInvisibleScrollbar:Dn});function Nn(e,t){return e.toString().padStart(t,\"0\")}function Ln(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function Pn(e,t,n){return\"number\"!=typeof e?\"\":e.toString().replace(\".\",n).replace(/(\\d)(?=(\\d{3})+(?!\\d))/g,\"$1\"+t)}var Mn=Object.freeze({__proto__:null,padStartWidthZeros:Nn,createArrayOfNumbers:Ln,cleanNumber:function(e){return\"string\"==typeof e&&(e=parseInt(e,10)),\"number\"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n=\"\",r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e,t,n){return\"number\"!=typeof e?\"\":Pn(Math.round(100*e)/100,t,n)},formatNumberCommas:Pn,sum:function(e){return null==e?null:e.reduce(function(e,t){return e+t},0)},zeroOrGreater:function(e,t){return e>=0?e:t},oneOrGreater:function(e,t){var n=parseInt(e,10);return!isNaN(n)&&isFinite(n)&&n>0?n:t}}),xn=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function In(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=\"-\"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(function(e){return Nn(e,2)}).join(n);return t&&(r+=\" \"+[e.getHours(),e.getMinutes(),e.getSeconds()].map(function(e){return Nn(e,2)}).join(\":\")),r}var kn=function(e){if(e>3&&e<21)return\"th\";switch(e%10){case 1:return\"st\";case 2:return\"nd\";case 3:return\"rd\"}return\"th\"};function Bn(e,t){void 0===t&&(t=\"YYYY-MM-DD\");var n=Nn(e.getFullYear(),4),r=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],o=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],a={YYYY:function(){return n.slice(n.length-4,n.length)},YY:function(){return n.slice(n.length-2,n.length)},Y:function(){return\"\"+e.getFullYear()},MMMM:function(){return r[e.getMonth()]},MMM:function(){return r[e.getMonth()].slice(0,3)},MM:function(){return Nn(e.getMonth()+1,2)},Mo:function(){return\"\"+(e.getMonth()+1)+kn(e.getMonth()+1)},M:function(){return\"\"+(e.getMonth()+1)},Do:function(){return\"\"+e.getDate()+kn(e.getDate())},DD:function(){return Nn(e.getDate(),2)},D:function(){return\"\"+e.getDate()},dddd:function(){return o[e.getDay()]},ddd:function(){return o[e.getDay()].slice(0,3)},dd:function(){return o[e.getDay()].slice(0,2)},do:function(){return\"\"+e.getDay()+kn(e.getDay())},d:function(){return\"\"+e.getDay()}},i=new RegExp(Object.keys(a).join(\"|\"),\"g\");return t.replace(i,function(e){return e in a?a[e]():e})}function Fn(e){if(!e)return null;var t=xn(e.split(\" \"),2),n=t[0],r=t[1];if(!n)return null;var o=n.split(\"-\").map(function(e){return parseInt(e,10)});if(3!==o.filter(function(e){return!isNaN(e)}).length)return null;var a=xn(o,3),i=a[0],l=a[1],s=a[2],u=new Date(i,l-1,s);if(u.getFullYear()!==i||u.getMonth()!==l-1||u.getDate()!==s)return null;if(!r||\"00:00:00\"===r)return u;var c=xn(r.split(\":\").map(function(e){return parseInt(e,10)}),3),d=c[0],p=c[1],f=c[2];return d>=0&&d<24&&u.setHours(d),p>=0&&p<60&&u.setMinutes(p),f>=0&&f<60&&u.setSeconds(f),u}var jn,Hn=Object.freeze({__proto__:null,serialiseDate:In,dateToFormattedString:Bn,parseDateTimeFromString:Fn}),Un=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Yn=\"[tabindex], input, select, button, textarea, [href]\",Gn=\".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *\";function zn(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,\"input, select, button, textarea\"),r=t.call(e,Gn),o=ar(e);return n&&!r&&o}function Vn(e,t,n){void 0===n&&(n={});var r=n.skipAriaHidden;e.classList.toggle(\"ag-hidden\",!t),r||zt(e,!t)}function qn(e,t,n){void 0===n&&(n={});var r=n.skipAriaHidden;e.classList.toggle(\"ag-invisible\",!t),r||zt(e,!t)}function Wn(e,t){var n=\"disabled\",r=t?function(e){return e.setAttribute(n,\"\")}:function(e){return e.removeAttribute(n)};r(e),Cr(e.querySelectorAll(\"input\"),function(e){return r(e)})}function Qn(e,t,n){for(var r=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,\"number\"==typeof n){if(++r>n)break}else if(e===n)break}return!1}function Kn(e){var t=window.getComputedStyle(e),n=t.height,r=t.width,o=t.borderTopWidth,a=t.borderRightWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,d=t.paddingLeft,p=t.marginTop,f=t.marginRight,g=t.marginBottom,h=t.marginLeft,m=t.boxSizing;return{height:parseFloat(n),width:parseFloat(r),borderTopWidth:parseFloat(o),borderRightWidth:parseFloat(a),borderBottomWidth:parseFloat(i),borderLeftWidth:parseFloat(l),paddingTop:parseFloat(s),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(d),marginTop:parseFloat(p),marginRight:parseFloat(f),marginBottom:parseFloat(g),marginLeft:parseFloat(h),boxSizing:m}}function $n(e){var t=Kn(e);return\"border-box\"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Xn(e){var t=Kn(e);return\"border-box\"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Jn(e){var t=Kn(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function Zn(e){var t=Kn(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function er(){if(\"boolean\"==typeof jn)return jn;var e=document.createElement(\"div\");return e.style.direction=\"rtl\",e.style.width=\"1px\",e.style.height=\"1px\",e.style.position=\"fixed\",e.style.top=\"0px\",e.style.overflow=\"hidden\",e.dir=\"rtl\",e.innerHTML='<div style=\"width: 2px\">\\n            <span style=\"display: inline-block; width: 1px\"></span>\\n            <span style=\"display: inline-block; width: 1px\"></span>\\n        </div>',document.body.appendChild(e),e.scrollLeft=1,jn=0===Math.floor(e.scrollLeft),document.body.removeChild(e),jn}function tr(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),vn()&&!er()&&(n=e.scrollWidth-e.clientWidth-n)),n}function nr(e,t,n){n&&(er()?t*=-1:(hn()||vn())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function rr(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function or(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ar(e){return null!==e.offsetParent}function ir(e){var t=document.createElement(\"div\");return t.innerHTML=(e||\"\").trim(),t.firstChild}function lr(e){return e&&e.clientHeight?e.clientHeight:0}function sr(e){return e&&e.clientWidth?e.clientWidth:0}function ur(e,t,n){if(!n||n.nextSibling!==t){var r=document.activeElement,o=t.contains(r);n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement(\"afterbegin\",t),o&&r&&bn()&&r.focus({preventScroll:!0})}}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=e.children[n];o!==r&&e.insertBefore(r,o)}}function dr(e,t,n){n?n.insertAdjacentElement(\"afterend\",t):e.firstChild?e.insertAdjacentElement(\"afterbegin\",t):e.appendChild(t)}function pr(e,t){var n,r;if(t)try{for(var o=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(Object.entries(t)),a=o.next();!a.done;a=o.next()){var i=Un(a.value,2),l=i[0],s=i[1];if(l&&l.length&&null!=s){var u=l.replace(/[A-Z]/g,function(e){return\"-\"+e.toLocaleLowerCase()}),c=s.toString(),d=c.replace(/\\s*!important/g,\"\").length!=c.length?\"important\":void 0;e.style.setProperty(u,s,d)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function fr(e){return e.clientWidth<e.scrollWidth}function gr(e){return e.clientHeight<e.scrollHeight}function hr(e,t){\"flex\"===t?(e.style.removeProperty(\"width\"),e.style.removeProperty(\"minWidth\"),e.style.removeProperty(\"maxWidth\"),e.style.flex=\"1 1 auto\"):mr(e,t)}function mr(e,t){t=Ar(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function vr(e,t){t=Ar(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Ar(e){return\"number\"==typeof e?e+\"px\":e}function yr(e){return e instanceof Node||e instanceof HTMLElement}function Er(e){if(null==e)return[];var t=[];return Cr(e,function(e){return t.push(e)}),t}function br(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];t(r.name,r.value)}}function _r(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Cr(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var wr=Object.freeze({__proto__:null,radioCssClass:function(e,t,n){for(var r=e.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===e),n&&o.classList.toggle(n,o!==e),o=o.nextSibling},FOCUSABLE_SELECTOR:Yn,FOCUSABLE_EXCLUDE:Gn,isFocusableFormField:zn,setDisplayed:Vn,setVisible:qn,setDisabled:Wn,isElementChildOfClass:Qn,getElementSize:Kn,getInnerHeight:$n,getInnerWidth:Xn,getAbsoluteHeight:Jn,getAbsoluteWidth:Zn,isRtlNegativeScroll:er,getScrollLeft:tr,setScrollLeft:nr,clearElement:rr,removeElement:function(e,t){or(e.querySelector(t))},removeFromParent:or,isVisible:ar,loadTemplate:ir,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML(\"afterbegin\",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:lr,offsetWidth:sr,ensureDomOrder:ur,setDomChildOrder:cr,insertWithDomOrder:dr,prependDC:function(e,t){o(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:pr,isHorizontalScrollShowing:fr,isVerticalScrollShowing:gr,setElementWidth:hr,setFixedWidth:mr,setElementHeight:function(e,t){\"flex\"===t?(e.style.removeProperty(\"height\"),e.style.removeProperty(\"minHeight\"),e.style.removeProperty(\"maxHeight\"),e.style.flex=\"1 1 auto\"):vr(e,t)},setFixedHeight:vr,formatSize:Ar,isNodeOrElement:yr,copyNodeList:Er,iterateNamedNodeMap:br,addOrRemoveAttribute:_r,nodeListForEach:Cr}),Sr={columnGroupOpened:\"expanded\",columnGroupClosed:\"contracted\",columnSelectClosed:\"tree-closed\",columnSelectOpen:\"tree-open\",columnSelectIndeterminate:\"tree-indeterminate\",columnMovePin:\"pin\",columnMoveHide:\"eye-slash\",columnMoveMove:\"arrows\",columnMoveLeft:\"left\",columnMoveRight:\"right\",columnMoveGroup:\"group\",columnMoveValue:\"aggregation\",columnMovePivot:\"pivot\",dropNotAllowed:\"not-allowed\",groupContracted:\"tree-closed\",groupExpanded:\"tree-open\",setFilterGroupClosed:\"tree-closed\",setFilterGroupOpen:\"tree-open\",setFilterGroupIndeterminate:\"tree-indeterminate\",chart:\"chart\",close:\"cross\",cancel:\"cancel\",check:\"tick\",first:\"first\",previous:\"previous\",next:\"next\",last:\"last\",linked:\"linked\",unlinked:\"unlinked\",colorPicker:\"color-picker\",groupLoading:\"loading\",menu:\"menu\",filter:\"filter\",columns:\"columns\",maximize:\"maximize\",minimize:\"minimize\",menuPin:\"pin\",menuValue:\"aggregation\",menuAddRowGroup:\"group\",menuRemoveRowGroup:\"group\",clipboardCopy:\"copy\",clipboardCut:\"cut\",clipboardPaste:\"paste\",pivotPanel:\"pivot\",rowGroupPanel:\"group\",valuePanel:\"aggregation\",columnDrag:\"grip\",rowDrag:\"grip\",save:\"save\",csvExport:\"csv\",excelExport:\"excel\",smallDown:\"small-down\",smallLeft:\"small-left\",smallRight:\"small-right\",smallUp:\"small-up\",sortAscending:\"asc\",sortDescending:\"desc\",sortUnSort:\"none\"};function Tr(e,t,n){var r=Or(e,t,n);if(r){var o=r.className;if(\"string\"==typeof o&&o.indexOf(\"ag-icon\")>-1||\"object\"==typeof o&&o[\"ag-icon\"])return r}var a=document.createElement(\"span\");return a.appendChild(r),a}function Or(e,t,n,r){var o=null,a=n&&n.getColDef().icons;if(a&&(o=a[e]),t&&!o){var i=t.get(\"icons\");i&&(o=i[e])}if(!o){var l=document.createElement(\"span\"),s=Sr[e];return s||(r?s=e:(console.warn(\"AG Grid: Did not find icon \"+e),s=\"\")),l.setAttribute(\"class\",\"ag-icon ag-icon-\"+s),l.setAttribute(\"unselectable\",\"on\"),xt(l,\"presentation\"),l}var u=void 0;if(\"function\"==typeof o)u=o();else{if(\"string\"!=typeof o)throw new Error(\"icon from grid options needs to be a string or a function\");u=o}return\"string\"==typeof u?ir(u):yr(u)?u:void console.warn(\"AG Grid: iconRenderer should return back a string or a dom object\")}var Dr=Object.freeze({__proto__:null,iconNameClassMap:Sr,createIcon:Tr,createIconNoSpan:Or}),Rr=function(){function e(){}return e.BACKSPACE=\"Backspace\",e.TAB=\"Tab\",e.ENTER=\"Enter\",e.ESCAPE=\"Escape\",e.SPACE=\" \",e.LEFT=\"ArrowLeft\",e.UP=\"ArrowUp\",e.RIGHT=\"ArrowRight\",e.DOWN=\"ArrowDown\",e.DELETE=\"Delete\",e.F2=\"F2\",e.PAGE_UP=\"PageUp\",e.PAGE_DOWN=\"PageDown\",e.PAGE_HOME=\"Home\",e.PAGE_END=\"End\",e.A=\"KeyA\",e.C=\"KeyC\",e.D=\"KeyD\",e.V=\"KeyV\",e.X=\"KeyX\",e.Y=\"KeyY\",e.Z=\"KeyZ\",e}();function Nr(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Lr(e,t,n,r,o){var a=r?r.getColDef().suppressKeyboardEvent:void 0;if(!a)return!1;var i={event:t,editing:o,column:r,api:e.api,node:n,data:n.data,colDef:r.getColDef(),context:e.context,columnApi:e.columnApi};return!(!a||!a(i))}function Pr(e,t,n,r){var a=r.getDefinition(),i=a&&a.suppressHeaderKeyboardEvent;return!!o(i)&&!!i({api:e.api,columnApi:e.columnApi,context:e.context,colDef:a,column:r,headerRowIndex:n,event:t})}function Mr(e){var t;switch(e.keyCode){case 65:t=Rr.A;break;case 67:t=Rr.C;break;case 86:t=Rr.V;break;case 68:t=Rr.D;break;case 90:t=Rr.Z;break;case 89:t=Rr.Y;break;default:t=e.code}return t}function xr(e,t){return void 0===t&&(t=!1),e===Rr.DELETE||!t&&e===Rr.BACKSPACE&&yn()}var Ir=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Nr,isUserSuppressingKeyboardEvent:Lr,isUserSuppressingHeaderKeyboardEvent:Pr,normaliseQwertyAzerty:Mr,isDeleteKey:xr});function kr(e,t,n){if(0===n)return!1;var r=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(r,o)<=n}var Br=Object.freeze({__proto__:null,areEventsNear:kr}),Fr=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(!e)return!1;for(var n=function(e,n){var r=t[e.id],o=t[n.id],a=void 0!==r,i=void 0!==o;return a&&i?r-o:a||i?a?1:-1:e.__objectId-n.__objectId},r=!1,o=0;o<e.length-1;o++)if(n(e[o],e[o+1])>0){r=!0;break}return!!r&&(e.sort(n),!0)},traverseNodesWithKey:function(e,t){var n=[];!function e(r){r&&r.forEach(function(r){if(r.group||r.hasChildren()){n.push(r.key);var o=n.join(\"|\");t(r,o),e(r.childrenAfterGroup),n.pop()}})}(e)}});function jr(e){var t=new Set;return e.forEach(function(e){return t.add(e)}),t}var Hr,Ur=Object.freeze({__proto__:null,convertToSet:jr}),Yr=function(){return Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yr.apply(this,arguments)},Gr=Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr(Yr({},gn),Ee),Rn),Hn),wr),xe),j),Xe),d),Dr),Ir),vt),Br),Mn),S),Fr),Ur),ht),zr=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();!function(e){e[e.IN_PROGRESS=0]=\"IN_PROGRESS\",e[e.RESOLVED=1]=\"RESOLVED\"}(Hr||(Hr={}));var Vr,qr=function(){function e(e){var t=this;this.status=Hr.IN_PROGRESS,this.resolution=null,this.waiters=[],e(function(e){return t.onDone(e)},function(e){return t.onReject(e)})}return e.all=function(t){return new e(function(e){var n=t.length,r=new Array(n);t.forEach(function(t,o){t.then(function(t){r[o]=t,0===--n&&e(r)})})})},e.resolve=function(t){return void 0===t&&(t=null),new e(function(e){return e(t)})},e.prototype.then=function(t){var n=this;return new e(function(e){n.status===Hr.RESOLVED?e(t(n.resolution)):n.waiters.push(function(n){return e(t(n))})})},e.prototype.resolveNow=function(e,t){return this.status===Hr.RESOLVED?t(this.resolution):e},e.prototype.onDone=function(e){this.status=Hr.RESOLVED,this.resolution=e,this.waiters.forEach(function(t){return t(e)})},e.prototype.onReject=function(e){console.warn(\"TBI\")},e}(),Wr=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+\" = \"+t),this.timestamp=(new Date).getTime()},e}(),Qr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kr.apply(this,arguments)},$r=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e[e.NOTHING=0]=\"NOTHING\",e[e.WAITING_TO_SHOW=1]=\"WAITING_TO_SHOW\",e[e.SHOWING=2]=\"SHOWING\"}(Vr||(Vr={}));var Xr=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Vr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Qr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay(\"show\")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay(\"hide\")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is(\"tooltipMouseTrack\");var e=this.parentComp.getGui();this.addManagedListener(e,\"mouseenter\",this.onMouseEnter.bind(this)),this.addManagedListener(e,\"mouseleave\",this.onMouseLeave.bind(this)),this.addManagedListener(e,\"mousemove\",this.onMouseMove.bind(this)),this.addManagedListener(e,\"mousedown\",this.onMouseDown.bind(this)),this.addManagedListener(e,\"keydown\",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!En()&&this.state==Vr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Vr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Vr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Vr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Vr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.getTooltipDelay=function(e){var t=this.gridOptionsService.getNum(\"tooltipShowDelay\"),n=this.gridOptionsService.getNum(\"tooltipHideDelay\"),r=\"show\"===e?t:n,a=pt(e);return o(r)?(r<0&&O(function(){return console.warn(\"AG Grid: tooltip\"+a+\"Delay should not be lower than 0\")},\"tooltip\"+a+\"DelayWarn\"),Math.max(200,r)):null},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Vr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add(\"ag-tooltip-hiding\");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout(function(){t(),e.getContext().destroyBean(n)},this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Kr({},this.parentComp.getTooltipParams());if(o(e.value)){this.state=Vr.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==Vr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains(\"ag-tooltip\")||n.classList.add(\"ag-tooltip-custom\");var r=this.localeService.getLocaleTextFunc(),o=this.popupService.addPopup({eChild:n,ariaLabel:r(\"ariaLabelTooltip\",\"Tooltip\")});o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:\"tooltip\",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},$r([q(\"popupService\")],t.prototype,\"popupService\",void 0),$r([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),$r([G],t.prototype,\"postConstruct\",null),t}(ke),Jr=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||\"\").split(\" \");if(n.length>1)n.forEach(function(e){return t.addCssClass(e)});else if(!0!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,n=(e||\"\").split(\" \");if(n.length>1)n.forEach(function(e){return t.removeCssClass(e)});else if(!1!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var t=this.getGui();return!!t&&t.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this;if(e){if(e.indexOf(\" \")>=0){var r=(e||\"\").split(\" \");if(r.length>1)return void r.forEach(function(e){return n.addOrRemoveCssClass(e,t)})}if(this.cssClassStates[e]!==t&&e.length){var o=this.getGui();o&&o.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}(),Zr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},to=new zr,no=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=to.next(),n.cssClassManager=new Jr(function(){return n.eGui}),t&&n.setTemplate(t),n}return Zr(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is(\"enableBrowserTooltips\")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:\"UNKNOWN\"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute(\"title\"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute(\"title\",t.tooltipText):t.tooltipFeature=t.createBean(new Xr(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;Er(e.childNodes).forEach(function(r){if(r instanceof HTMLElement){var o=n.createComponentFromElement(r,function(e){e.getGui()&&n.copyAttributesFromNode(r,e.getGui())},t);if(o){if(o.addItems&&r.children.length){n.createChildComponentsFromTags(r,t);var a=Array.prototype.slice.call(r.children);o.addItems(a)}n.swapComponentForNode(o,e,r)}else r.childNodes&&n.createChildComponentsFromTags(r,t)}})},t.prototype.createComponentFromElement=function(e,n,r){var o=e.nodeName,a=r?r[e.getAttribute(\"ref\")]:void 0,i=this.agStackComponentsRegistry.getComponentClass(o);if(i){t.elementGettingCreated=e;var l=new i(a);return l.setParentComponent(this),this.createBean(l,null,n),l}return null},t.prototype.copyAttributesFromNode=function(e,t){br(e.attributes,function(e,n){return t.setAttribute(e,n)})},t.prototype.swapComponentForNode=function(e,t,n){var r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors(function(r){n[r.attributeName]===t&&(n[r.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,r=D(t.constructor);n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach(function(t){return e(t)}),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=ir(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors(function(n){var r=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute(\"ref\")===n.refSelector)r(e.eGui);else{var o=e.eGui.querySelector(n.querySelector);o&&r(o.__agComponent||o)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),yr(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,t){if(void 0===t&&(t={}),e!==this.visible){this.visible=e;var n=t.skipAriaHidden;qn(this.eGui,e,{skipAriaHidden:n})}},t.prototype.setDisplayed=function(e,n){if(void 0===n&&(n={}),e!==this.displayed){this.displayed=e;var r=n.skipAriaHidden;Vn(this.eGui,e,{skipAriaHidden:r});var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var t=this.eGui;t&&t.__agComponent&&(t.__agComponent=void 0),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t,n){var r=this;this.eGui.addEventListener(e,t,n),this.addDestroyFunc(function(){return r.eGui.removeEventListener(e,t)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref=\"'+e+'\"]')},t.EVENT_DISPLAYED_CHANGED=\"displayedChanged\",eo([q(\"agStackComponentsRegistry\")],t.prototype,\"agStackComponentsRegistry\",void 0),eo([Y],t.prototype,\"preConstructOnComponent\",null),eo([Y],t.prototype,\"createChildComponentsPreConstruct\",null),t}(ke);function ro(e){return ao.bind(this,e,void 0)}function oo(e){return ao.bind(this,\"[ref=\"+e+\"]\",e)}function ao(e,t,n,r,o){var a,i,l,s;null!==e?\"number\"!=typeof o?(i=\"querySelectors\",l={attributeName:r,querySelector:e,refSelector:t},(s=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(a=n,D(a.constructor)))[i]||(s[i]=[]),s[i].push(l)):console.error(\"AG Grid: QuerySelector should be on an attribute\"):console.error(\"AG Grid: QuerySelector selector should not be null\")}var io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},so=function(e){function t(){return e.call(this,'\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\">\\n                <ag-input-text-field ref=\"eFloatingFilterText\"></ag-input-text-field>\\n            </div>')||this}return io(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,\"header\",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+\" \"+n(\"ariaFilterInput\",\"Filter Input\"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance(function(n){if(n.getModelAsString){var r=n.getModelAsString(e);t.eFloatingFilterText.setValue(r)}}):this.eFloatingFilterText.setValue(\"\")},lo([oo(\"eFloatingFilterText\")],t.prototype,\"eFloatingFilterText\",void 0),lo([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),t}(no),uo=function(){function e(e,t,n,r){var o=this;this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then(function(t){o.alive?(o.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),o.tempValue&&t.setDate(o.tempValue),null!=o.disabled&&o.setDateCompDisabled(o.disabled))):e.destroyBean(t)})}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){Vn(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&\"function\"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)},po=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some(function(e){return\"string\"!=typeof e&&null!=e.test})&&console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().\"),this.filterOptions.some(function(e){return\"string\"!=typeof e&&null!=e.hideFilterInput})&&console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.\")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach(function(t){if(\"string\"!=typeof t)if([[\"displayKey\"],[\"displayName\"],[\"predicate\",\"test\"]].every(function(e){return!!e.some(function(e){return null!=t[e]})||(console.warn(\"AG Grid: ignoring FilterOptionDef as it doesn't contain one of '\"+e+\"'\"),!1)})){var n=t.test,r=co({},t);null!=n&&null==t.predicate&&(r.predicate=function(e,t){return n(e[0],t)},delete r.test),r.hideFilterInput&&null==r.numberOfInputs&&(r.numberOfInputs=0,delete r.hideFilterInput),e.customFilterOptions[t.displayKey]=r}else e.filterOptions=e.filterOptions.filter(function(e){return e===t})||[]})},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];\"string\"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn(\"AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'\")}else console.warn(\"AG Grid: no filter options for filter\")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),fo={applyFilter:\"Apply\",clearFilter:\"Clear\",resetFilter:\"Reset\",cancelFilter:\"Cancel\",textFilter:\"Text Filter\",numberFilter:\"Number Filter\",dateFilter:\"Date Filter\",setFilter:\"Set Filter\",filterOoo:\"Filter...\",empty:\"Choose One\",equals:\"Equals\",notEqual:\"Not equal\",lessThan:\"Less than\",greaterThan:\"Greater than\",inRange:\"In range\",inRangeStart:\"From\",inRangeEnd:\"To\",lessThanOrEqual:\"Less than or equals\",greaterThanOrEqual:\"Greater than or equals\",contains:\"Contains\",notContains:\"Not contains\",startsWith:\"Starts with\",endsWith:\"Ends with\",blank:\"Blank\",notBlank:\"Not blank\",andCondition:\"AND\",orCondition:\"OR\",dateFormatOoo:\"yyyy-mm-dd\"},go=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ho=function(){return ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ho.apply(this,arguments)},mo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vo=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=n,r.callbacks=ho({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),r}return go(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,\"focusin\",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,\"focusout\",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,\"keydown\",function(e){e.defaultPrevented||Se(e)||(t.callbacks.shouldStopEventPropagation(e)?we(e):e.key===Rr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))})},t.FOCUS_MANAGED_CLASS=\"ag-focus-managed\",mo([q(\"focusService\")],t.prototype,\"focusService\",void 0),mo([G],t.prototype,\"postConstruct\",null),t}(ke),Ao=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Eo=\"ag-resizer-wrapper\",bo='<div class=\"'+Eo+'\">\\n        <div ref=\"eTopLeftResizer\" class=\"ag-resizer ag-resizer-topLeft\"></div>\\n        <div ref=\"eTopResizer\" class=\"ag-resizer ag-resizer-top\"></div>\\n        <div ref=\"eTopRightResizer\" class=\"ag-resizer ag-resizer-topRight\"></div>\\n        <div ref=\"eRightResizer\" class=\"ag-resizer ag-resizer-right\"></div>\\n        <div ref=\"eBottomRightResizer\" class=\"ag-resizer ag-resizer-bottomRight\"></div>\\n        <div ref=\"eBottomResizer\" class=\"ag-resizer ag-resizer-bottom\"></div>\\n        <div ref=\"eBottomLeftResizer\" class=\"ag-resizer ag-resizer-bottomLeft\"></div>\\n        <div ref=\"eLeftResizer\" class=\"ag-resizer ag-resizer-left\"></div>\\n    </div>',_o=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=Object.assign({},{popup:!1},n),r}return Ao(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,r=t/2-this.getHeight()/2;this.offsetElement(n,r)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,r=e.minWidth,o=e.width,a=e.minHeight,i=e.height,l=e.x,s=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,d=!!this.element.offsetParent;if(d){var p=this.findBoundaryElement(),f=window.getComputedStyle(p);if(null!=f.minWidth){var g=p.offsetWidth-this.element.offsetWidth;c=parseInt(f.minWidth,10)-g}if(null!=f.minHeight){var h=p.offsetHeight-this.element.offsetHeight;u=parseInt(f.minHeight,10)-h}}if(this.minHeight=a||u,this.minWidth=r||c,o&&this.setWidth(o),i&&this.setHeight(i),o&&i||this.refreshSize(),t)this.center();else if(l||s)this.offsetElement(l,s);else if(d&&n&&this.boundaryEl){var m=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(m)?0:m)}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),\"boolean\"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(n){var r=!!e[n],o=t.getResizerElement(n),a={dragStartPixels:0,eElement:o,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};(r||!t.isAlive()&&!r)&&(r?(t.dragService.addDragSource(a),t.resizeListeners.push(a),o.style.pointerEvents=\"all\"):o.style.pointerEvents=\"none\",t.resizable[n]=r)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty(\"height\"),this.element.style.removeProperty(\"width\"),this.element.style.removeProperty(\"flex\")},t.prototype.restoreLastSize=function(){this.element.style.flex=\"0 0 auto\";var e=this.lastSize,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+\"px\"),-1!==t&&(this.element.style.height=t+\"px\")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,r=!1;if(\"string\"==typeof e&&-1!==e.indexOf(\"%\"))vr(n,e),e=Jn(n),r=!0;else if(this.positioned){e=Math.max(this.minHeight,e);var o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(r?(n.style.maxHeight=\"unset\",n.style.minHeight=\"unset\"):t?vr(n,e):(n.style.height=e+\"px\",n.style.flex=\"0 0 auto\",this.lastSize.height=\"number\"==typeof e?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,n=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var r=this.offsetParent.clientHeight;if(!r)return null;var o=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),i=t?this.position.y:o.top,l=t?0:a.top,s=0;if(n){var u=this.element.parentElement;u&&(s=u.getBoundingClientRect().bottom-o.bottom)}return r+l-i-s},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,r=!1;if(\"string\"==typeof e&&-1!==e.indexOf(\"%\"))mr(t,e),e=Zn(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var o=this.offsetParent.clientWidth,a=n?this.position.x:this.element.getBoundingClientRect().left;o&&e+a>o&&(e=o-a)}this.getWidth()!==e&&(r?(t.style.maxWidth=\"unset\",t.style.minWidth=\"unset\"):this.config.popup?mr(t,e):(t.style.width=e+\"px\",t.style.flex=\" unset\",this.lastSize.width=\"number\"==typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.constrainSizeToAvailableHeight=function(e){var t=this;this.config.forcePopupParentAsOffsetParent&&(e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),function(){var e=t.getAvailableHeight();t.element.style.setProperty(\"max-height\",e+\"px\")}):(this.element.style.removeProperty(\"max-height\"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0)))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,r=e.isTop,o=e.anywhereWithin,a=e.topBuffer,i=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!o,i)?0:i,movementY:this.shouldSkipY(t,!!r,a,l)?0:l}},t.prototype.shouldSkipX=function(e,t,n,r){var o=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),i=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:o.left,s=l<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=i.right;return!!s||(t?r<0&&e.clientX>l+a.left||r>0&&e.clientX<l+a.left:n?r<0&&e.clientX>i.right||r>0&&e.clientX<l+a.left:r<0&&e.clientX>i.right||r>0&&e.clientX<i.right)},t.prototype.shouldSkipY=function(e,t,n,r){void 0===n&&(n=0);var o=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),i=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.y:o.top,s=l<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=i.bottom;return!!s||(t?r<0&&e.clientY>l+a.top+n||r>0&&e.clientY<l+a.top:r<0&&e.clientY>i.bottom||r>0&&e.clientY<i.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector(\"[ref=eTopLeftResizer]\")},top:{element:e.querySelector(\"[ref=eTopResizer]\")},topRight:{element:e.querySelector(\"[ref=eTopRightResizer]\")},right:{element:e.querySelector(\"[ref=eRightResizer]\")},bottomRight:{element:e.querySelector(\"[ref=eBottomRightResizer]\")},bottom:{element:e.querySelector(\"[ref=eBottomResizer]\")},bottomLeft:{element:e.querySelector(\"[ref=eBottomLeftResizer]\")},left:{element:e.querySelector(\"[ref=eLeftResizer]\")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString(bo,\"text/html\").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(\".\"+Eo);e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add(\"ag-resizing\"),this.resizerMap[t].element.classList.add(\"ag-active\");var n=this.config,r=n.popup,o=n.forcePopupParentAsOffsetParent;r||o||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter(function(e){return!e.classList.contains(\"ag-hidden\")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,r=0;r<e.length;r++){var o=e[r],a=!!o.style.flex&&\"0 0 auto\"!==o.style.flex;if(o!==this.element){var i=this.minHeight||0,l=this.minWidth||0;if(a){var s=window.getComputedStyle(o);s.minHeight&&(i=parseInt(s.minHeight,10)),s.minWidth&&(l=parseInt(s.minWidth,10))}else i=o.offsetHeight,l=o.offsetWidth;t+=i,n+=l}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var r=0;r<n.length;r++){var o=n[r];o!==t&&(e?o.style.height=o.offsetHeight+\"px\":o.style.width=o.offsetWidth+\"px\",o.style.flex=\"0 0 auto\",o===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty(\"height\"),t.style.removeProperty(\"min-height\"),t.style.removeProperty(\"max-height\"),t.style.flex=\"1 1 auto\")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,r=t.forcePopupParentAsOffsetParent,o=this.currentResizer,a=o.isTop,i=o.isRight,l=o.isBottom,s=o.isLeft,u=i||s,c=l||a,d=this.calculateMouseMovement({e,isLeft:s,isTop:a}),p=d.movementX,f=d.movementY,g=this.position.x,h=this.position.y,m=0,v=0;if(u&&p){var A=s?-1:1,y=this.getWidth(),E=y+p*A,b=!1;s&&(g+(m=y-E)<=0||E<=this.minWidth)&&(b=!0,m=0),b||this.setWidth(E)}if(c&&f){A=a?-1:1;var _=this.getHeight(),C=_+f*A,w=!1;a?(h+(v=_-C)<=0||C<=this.minHeight)&&(w=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&_<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(w=!0),w||this.setHeight(C)}this.updateDragStartPosition(e.clientX,e.clientY),((n||r)&&m||v)&&this.offsetElement(g+m,h+v)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:\"resize\",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove(\"ag-resizing\"),this.resizerMap[t].element.classList.remove(\"ag-active\"),this.dispatchEvent(n)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add(\"ag-moving\"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,n=this.position,r=n.x,o=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:t}),i=a.movementX,l=a.movementY;this.offsetElement(r+i,o+l),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove(\"ag-moving\")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(\"static\"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},yo([q(\"popupService\")],t.prototype,\"popupService\",void 0),yo([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),yo([q(\"dragService\")],t.prototype,\"dragService\",void 0),t}(ke),Co=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},So=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.debouncePending=!1,n.appliedModel=null,n}return Co(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new vo(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new _o(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t=this.getGui();t&&t.removeEventListener(\"submit\",this.onFormSubmit);var n='\\n            <form class=\"ag-filter-wrapper\">\\n                <div class=\"ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper\" ref=\"eFilterBody\">\\n                    '+this.createBodyTemplate()+\"\\n                </div>\\n            </form>\";this.setTemplate(n,e),(t=this.getGui())&&t.addEventListener(\"submit\",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement(\"div\");n.classList.add(\"ag-filter-apply-panel\"),jr(t).forEach(function(t){return function(t){var r,o;switch(t){case\"apply\":r=e.translate(\"applyFilter\"),o=function(t){return e.onBtApply(!1,!1,t)};break;case\"clear\":r=e.translate(\"clearFilter\"),o=function(){return e.onBtClear()};break;case\"reset\":r=e.translate(\"resetFilter\"),o=function(){return e.onBtReset()};break;case\"cancel\":r=e.translate(\"cancelFilter\"),o=function(t){e.onBtCancel(t)};break;default:return void console.warn(\"AG Grid: Unknown button type specified\")}var a=ir('<button\\n                    type=\"'+(\"apply\"===t?\"submit\":\"button\")+'\"\\n                    ref=\"'+t+'FilterButton\"\\n                    class=\"ag-standard-button ag-filter-apply-panel-button\"\\n                >'+r+\"\\n                </button>\");n.appendChild(a),e.addManagedListener(a,\"click\",o)}(t)}),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,n=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),r=I(this.checkApplyDebounce.bind(this),n);this.onBtApplyDebounce=function(){e.debouncePending=!0,r()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then(function(){t.updateUiVisibility(),t.applyModel(\"api\")})},t.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),function(){t.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,t){var n=this,r=function(){n.onUiChanged(!1,\"prevent\"),null==t||t()};null!=e?this.setModelIntoUi(e).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),n&&n.preventDefault(),this.applyModel(t?\"rowDataUpdated\":\"ui\")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,r=n&&n.key;\"Enter\"!==r&&\"Space\"!==r||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var n=this.isModelValid(this.getModelFromUi());Wn(this.getRefElement(\"applyFilterButton\"),!n)}e&&!t||\"immediately\"===t?this.onBtApply(e):(this.applyActive||t)&&\"debounce\"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&\"toolPanel\"!==e){var t=\"floatingFilter\"===e,n=this.positionableFeature,r=this.gridOptionsService;t?(n.restoreLastSize(),n.setResizable(r.is(\"enableRtl\")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn(\"AG Grid: debounceMs is ignored when apply button is present\"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf(\"apply\")>=0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener(\"submit\",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,fo[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,r=t.colDef,o=t.column,a=t.columnApi,i=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:r,column:o,columnApi:a,context:i,data:e.data,getValue:function(t){return e.data[t]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},wo([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),wo([oo(\"eFilterBody\")],t.prototype,\"eFilterBody\",void 0),wo([G],t.prototype,\"postConstruct\",null),t}(no),To=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oo=function(e){function t(t,n){var r=e.call(this,n)||this;return r.labelSeparator=\"\",r.labelAlignment=\"left\",r.disabled=!1,r.label=\"\",r.config=t||{},r}return To(t,e),t.prototype.postConstruct=function(){this.addCssClass(\"ag-labeled\"),this.eLabel.classList.add(\"ag-label\");var e=this.config,t=e.labelSeparator,n=e.label,r=e.labelWidth,o=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){rr(this.eLabel),\"string\"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),\"\"===this.label?(Vn(this.eLabel,!1),xt(this.eLabel,\"presentation\")):(Vn(this.eLabel,!0),xt(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||\"ag-\"+this.getCompId()+\"-label\",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle(\"ag-label-align-left\",\"left\"===e),t.toggle(\"ag-label-align-right\",\"right\"===e),t.toggle(\"ag-label-align-top\",\"top\"===e),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle(\"ag-label-ellipsis\",e),this},t.prototype.setLabelWidth=function(e){return null==this.label||hr(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return Wn(t,e),t.classList.toggle(\"ag-disabled\",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(no),Do=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.className=r,o}return Do(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,function(){return e(n.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return mr(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED=\"valueChange\",t}(Oo),No=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Po=function(e){function t(t,n,r,o){var a=e.call(this,t,'<div class=\"ag-picker-field\" role=\"presentation\">\\n                <div ref=\"eLabel\"></div>\\n                <div ref=\"eWrapper\"\\n                    class=\"ag-wrapper ag-picker-field-wrapper\"\\n                    tabIndex=\"-1\"\\n                    aria-expanded=\"false\"\\n                    '+(o?'role=\"'+o+'\"':\"\")+'\\n                >\\n                    <div ref=\"eDisplayField\" class=\"ag-picker-field-display\"></div>\\n                    <div ref=\"eIcon\" class=\"ag-picker-field-icon\" aria-hidden=\"true\"></div>\\n                </div>\\n            </div>',n)||this;return a.pickerIcon=r,a.isPickerDisplayed=!1,a.isDestroyingPicker=!1,a.skipClick=!1,a}return No(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+\"-display\";this.eDisplayField.setAttribute(\"id\",n),Ut(this.eWrapper,n);var r=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();if(this.addManagedListener(o,\"mousedown\",function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&ar(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)}),this.addManagedListener(o,\"keydown\",function(e){switch(e.key){case Rr.UP:case Rr.DOWN:case Rr.ENTER:case Rr.SPACE:r();case Rr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}}),this.addManagedListener(this.eWrapper,\"click\",r),this.addManagedListener(this.eLabel,\"click\",r),this.pickerIcon){var a=Or(this.pickerIcon,this.gridOptionsService);a&&this.eIcon.appendChild(a)}},t.prototype.refreshLabel=function(){o(this.getLabel())?jt(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute(\"aria-labelledby\"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Ft(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return hr(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Lo([oo(\"eLabel\")],t.prototype,\"eLabel\",void 0),Lo([oo(\"eWrapper\")],t.prototype,\"eWrapper\",void 0),Lo([oo(\"eDisplayField\")],t.prototype,\"eDisplayField\",void 0),Lo([oo(\"eIcon\")],t.prototype,\"eIcon\",void 0),t}(Ro),Mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xo=function(e){function t(t){void 0===t&&(t=\"default\");var n=e.call(this,'<div class=\"ag-list ag-'+t+'-list\" role=\"listbox\"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Mo(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),\"keydown\",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case Rr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Rr.DOWN:case Rr.UP:var r=t===Rr.DOWN,o=void 0;if(e.preventDefault(),this.highlightedEl){var a=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);a=Math.min(Math.max(a,0),this.itemEls.length-1),o=this.itemEls[a]}else o=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(o)}},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){var t=e.value,n=ft(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(\".ag-list-item\");e.forEach(function(t,n){Qt(t,n+1),Wt(t,e.length)})},t.prototype.renderOption=function(e,t){var n=this,r=document.createElement(\"div\");xt(r,\"option\"),r.classList.add(\"ag-list-item\",\"ag-\"+this.cssIdentifier+\"-list-item\"),r.innerHTML=\"<span>\"+t+\"</span>\",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,\"mouseover\",function(){return n.highlightItem(r)}),this.addManagedListener(r,\"mouseleave\",function(){return n.clearHighlighted()}),this.addManagedListener(r,\"click\",function(){return n.setValue(e)}),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex(function(t){return t.value===e});if(-1!==n){var r=this.options[n];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex(function(t){return t.value===e.value});-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),rn(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),rn(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Ro.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED=\"selectedItem\",t.ACTIVE_CLASS=\"ag-active-item\",function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"init\",null),t}(no),Io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Bo=function(e){function t(t){return e.call(this,t,\"ag-select\",\"smallDown\",\"listbox\")||this}return Io(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new xo(\"select\")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,xo.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,Ro.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.gridOptionsService.getDocument(),r=this.addManagedListener(n.body,\"wheel\",function(n){!t.contains(n.target)&&e.hideList&&e.hideList()}),o=this.addManagedListener(t,\"focusout\",function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()}),a=this.localeService.getLocaleTextFunc(),i=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,o(),r(),e.isAlive()&&(Vt(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:a(\"ariaLabelSelectField\",\"Select Field\")});return i&&(this.hideList=i.hideFunc),this.isPickerDisplayed=!0,hr(t,Zn(this.eWrapper)),Vt(this.eWrapper,!0),t.style.maxHeight=$n(this.popupService.getPopupParent())+\"px\",t.style.position=\"absolute\",this.popupService.positionPopupByComponent({type:\"ag-list\",eventSource:this.eWrapper,ePopup:t,position:\"under\",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,r){return this.value===t?this:(r||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED=\"selectedItem\",ko([q(\"popupService\")],t.prototype,\"popupService\",void 0),ko([G],t.prototype,\"init\",null),t}(Po),Fo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jo=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ho=function(e){function t(t,n,r,o){void 0===r&&(r=\"text\"),void 0===o&&(o=\"input\");var a=e.call(this,t,'\\n            <div role=\"presentation\">\\n                <div ref=\"eLabel\" class=\"ag-input-field-label\"></div>\\n                <div ref=\"eWrapper\" class=\"ag-wrapper ag-input-wrapper\" role=\"presentation\">\\n                    <'+o+' ref=\"eInput\" class=\"ag-input-field-input\"></'+o+\">\\n                </div>\\n            </div>\",n)||this;return a.inputType=r,a.displayFieldTag=o,a}return Fo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+\"-label\"),this.eWrapper.classList.add(this.className+\"-input-wrapper\"),this.eInput.classList.add(this.className+\"-input\"),this.addCssClass(\"ag-input-field\"),this.eInput.id=this.eInput.id||\"ag-\"+this.getCompId()+\"-input\";var t=this.config,n=t.width,r=t.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){o(this.getLabel())?jt(this.eInput,this.getLabelId()):this.eInput.removeAttribute(\"aria-labelledby\"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,\"input\",function(t){return e.setValue(t.target.value)})},t.prototype.setInputType=function(){\"input\"===this.displayFieldTag&&this.eInput.setAttribute(\"type\",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return hr(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute(\"name\",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return _r(this.eInput,\"placeholder\",e),this},t.prototype.setInputAriaLabel=function(e){return Ft(this.eInput,e),this},t.prototype.setDisabled=function(t){return Wn(this.eInput,t),e.prototype.setDisabled.call(this,t)},jo([oo(\"eLabel\")],t.prototype,\"eLabel\",void 0),jo([oo(\"eWrapper\")],t.prototype,\"eWrapper\",void 0),jo([oo(\"eInput\")],t.prototype,\"eInput\",void 0),t}(Ro),Uo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yo=function(e){function t(t,n,r){void 0===n&&(n=\"ag-checkbox\"),void 0===r&&(r=\"checkbox\");var o=e.call(this,t,n,r)||this;return o.labelAlignment=\"right\",o.selected=!1,o.readOnly=!1,o.passive=!1,o}return Uo(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,\"click\",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,\"click\",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle(\"ag-disabled\",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle(\"ag-disabled\",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=\"boolean\"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:r});var o=this.getInputElement(),a={type:Ue.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e,previousValue:n};this.eventService.dispatchEvent(a)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle(\"ag-checked\",!0===e),this.eWrapper.classList.toggle(\"ag-indeterminate\",null==e)},t}(Ho),Go=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zo=function(e){function t(t){return e.call(this,t,\"ag-radio-button\",\"radio\")||this}return Go(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ue.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Yo),Vo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qo=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Wo=function(){function e(e,t){this.localeService=e,this.optionsFactory=t}return e.prototype.getModelAsString=function(e){var t=this;if(!e)return null;var n=null!=e.operator,r=this.localeService.getLocaleTextFunc();if(n){var o=e,a=o.conditions;a||(a=[o.condition1,o.condition2]);var i=a.map(function(e){return t.getModelAsString(e)}),l=\"AND\"===o.operator?\"andCondition\":\"orCondition\";return i.join(\" \"+r(l,fo[l])+\" \")}if(e.type===Qo.BLANK||e.type===Qo.NOT_BLANK)return r(e.type,e.type);var s=e,u=this.optionsFactory.getCustomOption(s.type),c=u||{},d=c.displayKey,p=c.displayName,f=c.numberOfInputs;return d&&p&&0===f?(r(d,p),p):this.conditionToString(s,u)},e}(),Qo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.eTypes=[],t.eJoinOperatorPanels=[],t.eJoinOperatorsAnd=[],t.eJoinOperatorsOr=[],t.eConditionBodies=[],t.listener=function(){return t.onUiChanged()},t.lastUiCompletePosition=null,t.joinOperatorId=0,t}return Vo(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var r=n.numberOfInputs;return null!=r?r:1}var o=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&o.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach(function(n,r){0===r?n.setValue(e,!0):n.setValue(t.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?\"OR\":\"AND\"},t.prototype.areModelsEqual=function(e,t){var n=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r,o=!e.operator,a=!t.operator;if(!o&&a||o&&!a)return!1;if(o){var i=e,l=t;r=this.areSimpleModelsEqual(i,l)}else{var s=e,u=t;r=s.operator===u.operator&&de(s.conditions,u.conditions,function(e,t){return n.areSimpleModelsEqual(e,t)})}return r},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var n=e;n.conditions||(n.conditions=[n.condition1,n.condition2]);var r=this.validateAndUpdateConditions(n.conditions),o=this.getNumConditions();if(r<o)this.removeConditionsAndOperators(r);else if(r>o)for(var a=o;a<r;a++)this.createJoinOperatorPanel(),this.createOption();var i=\"OR\"===n.operator;this.eJoinOperatorsAnd.forEach(function(e){return e.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(function(e){return e.setValue(i,!0)}),n.conditions.forEach(function(e,n){t.eTypes[n].setValue(e.type,!0),t.setConditionIntoUi(e,n)})}else{var l=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(l.type,!0),this.setConditionIntoUi(l,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),qr.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),O(function(){return console.warn('AG Grid: Filter Model contains more conditions than \"filterParams.maxNumConditions\". Additional conditions have been ignored.')},\"simpleFilterSetModelMaxNumConditions\"),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,n=this,r=this.getModel();if(null==r)return!0;var o=r.operator,a=[];if(o){var i=r;a.push.apply(a,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qo(arguments[t]));return e}(null!==(t=i.conditions)&&void 0!==t?t:[]))}else a.push(r);return a[o&&\"OR\"===o?\"some\":\"every\"](function(t){return n.individualConditionPasses(e,t)})},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setNumConditions(t),this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.optionsFactory=new po,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createOption(),this.createMissingConditionsAndOperators()},t.prototype.setNumConditions=function(e){var t,n;null!=e.suppressAndOrCondition&&O(function(){return console.warn('AG Grid: Since v29.2 \"filterParams.suppressAndOrCondition\" is deprecated. Use \"filterParams.maxNumConditions = 1\" instead.')},\"simpleFilterSuppressAndOrCondition\"),null!=e.alwaysShowBothConditions&&O(function(){return console.warn('AG Grid: Since v29.2 \"filterParams.alwaysShowBothConditions\" is deprecated. Use \"filterParams.numAlwaysVisibleConditions = 2\" instead.')},\"simpleFilterAlwaysShowBothConditions\"),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(O(function(){return console.warn('AG Grid: \"filterParams.maxNumConditions\" must be greater than or equal to zero.')},\"simpleFilterMaxNumConditions\"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(n=e.numAlwaysVisibleConditions)&&void 0!==n?n:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(O(function(){return console.warn('AG Grid: \"filterParams.numAlwaysVisibleConditions\" must be greater than or equal to zero.')},\"simpleFilterNumAlwaysVisibleConditions\"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(O(function(){return console.warn('AG Grid: \"filterParams.numAlwaysVisibleConditions\" cannot be greater than \"filterParams.maxNumConditions\".')},\"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions\"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new Bo);this.eTypes.push(t),t.addCssClass(\"ag-filter-select\"),this.eFilterBody.appendChild(t.getGui());var n=this.createValueElement();this.eConditionBodies.push(n),this.eFilterBody.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);var r=this.getNumConditions()-1;this.forEachPositionInput(r,function(t){return e.resetInput(t)}),this.addChangedListeners(t,r)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement(\"div\");this.eJoinOperatorPanels.push(e),e.classList.add(\"ag-filter-condition\");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,\"and\"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,\"or\");this.eFilterBody.appendChild(e);var r=this.eJoinOperatorPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,o),this.resetJoinOperatorOr(n,r,o),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,n){var r=this.createManagedBean(new zo);return e.push(r),r.addCssClass(\"ag-filter-condition-operator\"),r.addCssClass(\"ag-filter-condition-operator-\"+n),t.appendChild(r.getGui()),r},t.prototype.getDefaultJoinOperator=function(e){return\"AND\"===e||\"OR\"===e?e:\"AND\"},t.prototype.putOptionsIntoDropdown=function(e){var t=this,n=this.optionsFactory.getFilterOptions();n.forEach(function(n){var r=\"string\"==typeof n?t.createBoilerplateListOption(n):t.createCustomListOption(n);e.addOption(r)}),e.setDisabled(n.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return\"\"},t.prototype.getCssIdentifier=function(){return\"simple-filter\"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,t=-1,n=!0,r=0;r<this.getNumConditions();r++)this.isConditionUiComplete(r)?t=r:n=!1;if(this.shouldAddNewConditionAtEnd(n))this.createJoinOperatorPanel(),this.createOption();else{var o=null!==(e=this.lastUiCompletePosition)&&void 0!==e?e:this.getNumConditions()-2;if(t<o){this.removeConditionsAndOperators(o+1);var a=t+1,i=o-a;i>0&&this.removeConditionsAndOperators(a,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var n=this;this.eTypes.forEach(function(t,r){var o=n.isConditionDisabled(r,e);(1===r?[t,n.eJoinOperatorPanels[0],n.eJoinOperatorsAnd[0],n.eJoinOperatorsOr[0]]:[t]).forEach(function(e){e instanceof Ho||e instanceof Bo?e.setDisabled(o):Wn(e,o)})}),this.eConditionBodies.forEach(function(e,t){Vn(e,n.isConditionBodyVisible(t))});var r=\"OR\"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach(function(e,t){e.setValue(!r,!0)}),this.eJoinOperatorsOr.forEach(function(e,t){e.setValue(r,!0)}),this.forEachInput(function(t,r,o,a){n.setElementDisplayed(t,r<a),n.setElementDisabled(t,n.isConditionDisabled(o,e))}),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,t){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var n=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,n,t),this.removeComponents(this.eJoinOperatorsAnd,n,t),this.removeComponents(this.eJoinOperatorsOr,n,t)}},t.prototype.removeElements=function(e,t,n){this.removeItems(e,t,n).forEach(function(e){return or(e)})},t.prototype.removeComponents=function(e,t,n){var r=this;this.removeItems(e,t,n).forEach(function(e){or(e.getGui()),r.destroyBean(e)})},t.prototype.removeItems=function(e,t,n){return null==n?e.splice(t):e.splice(t,n)},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs(0)[0];if(!n)return;n instanceof Ho&&n.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.areModelsEqual(t,this.getModelFromUi())||this.resetUiToActiveModel(t);for(var n=-1,r=-1,o=!1,a=this.getJoinOperator(),i=this.getNumConditions()-1;i>=0;i--)if(this.isConditionUiComplete(i))-1===n&&(n=i,r=i);else{var l=i<n;(i>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(i-1)||l)&&(this.removeConditionsAndOperators(i,1),o=!0,l&&r--)}var s=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),s=!0),this.shouldAddNewConditionAtEnd(r===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),s=!0),s&&this.updateConditionStatusesAndValues(r,a),o&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=r},t.prototype.getPlaceholderText=function(e,t){var n=this.translate(e);if(R(this.filterPlaceholder)){var r=this.filterPlaceholder,o=this.eTypes[t].getValue();n=r({filterOptionKey:o,filterOption:this.translate(o),placeholder:n})}else\"string\"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n},t.prototype.resetPlaceholder=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.forEachInput(function(n,r,o,a){if(n instanceof Ho){var i=0===r&&a>1?\"inRangeStart\":0===r?\"filterOoo\":\"inRangeEnd\",l=0===r&&a>1?t(\"ariaFilterFromValue\",\"Filter from value\"):0===r?t(\"ariaFilterValue\",\"Filter Value\"):t(\"ariaFilterToValue\",\"Filter to Value\");n.setInputPlaceholder(e.getPlaceholderText(i,o)),n.setInputAriaLabel(l)}})},t.prototype.setElementValue=function(e,t){e instanceof Ho&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof no&&Vn(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof no&&Wn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Ho&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach(function(n,r){t.forEachPositionTypeInput(r,n,e)})},t.prototype.forEachPositionInput=function(e,t){var n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)},t.prototype.forEachPositionTypeInput=function(e,t,n){for(var r=this.getNumberOfInputs(t),o=this.getInputs(e),a=0;a<o.length;a++){var i=o[a];null!=i&&n(i,a,e,r)}},t.prototype.isConditionDisabled=function(e,t){return!!this.isReadOnly()||0!==e&&e>t+1},t.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e);return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions()||this.getConditionType(e)===t.EMPTY||this.getValues(e).some(function(e){return null==e}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var t=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(e){return t.resetType(e)}),this.eJoinOperatorsAnd.forEach(function(e,n){return t.resetJoinOperatorAnd(e,n,t.joinOperatorId+n)}),this.eJoinOperatorsOr.forEach(function(e,n){return t.resetJoinOperatorOr(e,n,t.joinOperatorId+n)}),this.joinOperatorId++,this.forEachInput(function(e){return t.resetInput(e)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),qr.resolve()},t.prototype.resetType=function(e){var t=this.localeService.getLocaleTextFunc()(\"ariaFilteringOperator\",\"Filtering operator\");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly())},t.prototype.resetJoinOperatorAnd=function(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator(\"AND\"),this.translate(\"andCondition\"),n)},t.prototype.resetJoinOperatorOr=function(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator(\"OR\"),this.translate(\"orCondition\"),n)},t.prototype.resetJoinOperator=function(e,t,n,r,o){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(\"ag-simple-filter-and-or-\"+this.getCompId()+\"-\"+o).setLabel(r),t)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(t,n){return e.updateJoinOperatorDisabled(t,n)}),this.eJoinOperatorsOr.forEach(function(t,n){return e.updateJoinOperatorDisabled(t,n)})},t.prototype.updateJoinOperatorDisabled=function(e,t){e.setDisabled(this.isReadOnly()||t>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var n=this,r=this.mapValuesFromModel(e);this.forEachInput(function(e,o,a,i){a===t&&n.setElementValue(e,null!=r[o]?r[o]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput(function(n,r,o,a){t.setElementValue(n,0===r&&0===o?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var n=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,function(e){n.attachElementOnChange(e,n.listener)}))},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),a=this.evaluateCustomFilter(o,r,n);return null!=a?a:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var r=e.predicate;return null==r||t.some(function(e){return null==e})?void 0:r(t,n)}},t.prototype.isBlank=function(e){return null==e||\"string\"==typeof e&&0===e.trim().length},t.EMPTY=\"empty\",t.BLANK=\"blank\",t.NOT_BLANK=\"notBlank\",t.EQUALS=\"equals\",t.NOT_EQUAL=\"notEqual\",t.LESS_THAN=\"lessThan\",t.LESS_THAN_OR_EQUAL=\"lessThanOrEqual\",t.GREATER_THAN=\"greaterThan\",t.GREATER_THAN_OR_EQUAL=\"greaterThanOrEqual\",t.IN_RANGE=\"inRange\",t.CONTAINS=\"contains\",t.NOT_CONTAINS=\"notContains\",t.STARTS_WITH=\"startsWith\",t.ENDS_WITH=\"endsWith\",t}(So),Ko=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ko(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,n,r){var o=this.comparator(),a=null!=e[0]?o(e[0],n):0;switch(r.type){case t.EQUALS:return 0===a;case t.NOT_EQUAL:return 0!==a;case t.GREATER_THAN:return a>0;case t.GREATER_THAN_OR_EQUAL:return a>=0;case t.LESS_THAN:return a<0;case t.LESS_THAN_OR_EQUAL:return a<=0;case t.IN_RANGE:var i=o(e[1],n);return this.scalarFilterParams.inRangeInclusive?a>=0&&i<=0:a>0&&i<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter \"'+r.type+'\", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Qo),Xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jo=function(){return Jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jo.apply(this,arguments)},Zo=1/0,ea=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.dateFilterParams=t,o}return Xo(t,e),t.prototype.conditionToString=function(e,t){var n=e.type,r=(t||{}).numberOfInputs,o=n==Qo.IN_RANGE||2===r,a=Fn(e.dateFrom),i=Fn(e.dateTo),l=this.dateFilterParams.inRangeFloatingFilterDateFormat;return o?(null!==a?Bn(a,l):\"null\")+\"-\"+(null!==i?Bn(i,l):\"null\"):null!=a?Bn(a,l):\"\"+n},t}(Wo),ta=function(e){function t(){var t=e.call(this,\"dateFilter\")||this;return t.eConditionPanelsFrom=[],t.eConditionPanelsTo=[],t.dateConditionFromComps=[],t.dateConditionToComps=[],t.minValidYear=1e3,t.maxValidYear=Zo,t}return Xo(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateConditionFromComps[0].afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,r=t.dateTo,o=t.type;return[n&&Fn(n)||null,r&&Fn(r)||null].slice(0,this.getNumberOfInputs(o))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,t);var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn(\"AG Grid: DateFilter \"+e+\" is not a number\")}return n};this.minValidYear=n(\"minValidYear\",1e3),this.maxValidYear=n(\"maxValidYear\",Zo),this.minValidYear>this.maxValidYear&&console.warn(\"AG Grid: DateFilter minValidYear should be <= maxValidYear\"),this.filterModelFormatter=new ea(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,n=new uo(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return n.destroy()}),n},t.prototype.setElementValue=function(e,t){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement(\"div\");return e.classList.add(\"ag-filter-body\"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,\"from\"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,\"to\"),e},t.prototype.createFromToElement=function(e,t,n,r){var o=document.createElement(\"div\");o.classList.add(\"ag-filter-\"+r),o.classList.add(\"ag-filter-date-\"+r),t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o))},t.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},t.prototype.removeDateComps=function(e,t,n){this.removeItems(e,t,n).forEach(function(e){return e.destroy()})},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=!0;return this.forEachInput(function(e,o,a,i){var l;a!==t||!r||o>=i||(r=r&&null!=(l=e.getDate())&&l.getUTCFullYear()>=n.minValidYear&&l.getUTCFullYear()<=n.maxValidYear)}),r},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return\"date\"},t.prototype.createCondition=function(e){var t=this.getConditionType(e),n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=In(r[0])),r.length>1&&(n.dateTo=In(r[1])),Jo({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate(\"dateFormatOoo\"),n=e(\"ariaFilterValue\",\"Filter Value\");this.forEachInput(function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,function(e,n,r,o){n<o&&t.push(e.getDate())}),t},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:\"\"},t.DEFAULT_FILTER_OPTIONS=[$o.EQUALS,$o.GREATER_THAN,$o.LESS_THAN,$o.NOT_EQUAL,$o.IN_RANGE,$o.BLANK,$o.NOT_BLANK],function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),t}($o),na=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return na(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return null==e?void 0:e.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){var t;e?(t=e.operator?e.conditions[0]:e,this.lastType=t.type):this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new po,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Qo.IN_RANGE,Qo.EMPTY,Qo.BLANK,Qo.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(no),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aa=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ia=function(e){function t(){return e.call(this,'\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\">\\n                <ag-input-text-field ref=\"eReadOnlyText\"></ag-input-text-field>\\n                <div ref=\"eDateWrapper\" style=\"display: flex;\"></div>\\n            </div>')||this}return oa(t,e),t.prototype.getDefaultFilterOptions=function(){return ta.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent();var n=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n(\"ariaDateFilterInput\",\"Date Filter Input\")),this.filterModelFormatter=new ea(this.filterParams,this.localeService,this.optionsFactory)},t.prototype.setEditable=function(e){Vn(this.eDateWrapper,e),Vn(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)&&!this.isEventFromDataChange(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(Fn(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue(\"\")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=In(this.dateComp.getDate());this.params.parentFilterInstance(function(n){if(n){var r=Fn(t);n.onFloatingFilterChanged(e.getLastType()||null,r)}})},t.prototype.createDateComponent=function(){var e=this,t=So.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:I(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new uo(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},aa([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),aa([oo(\"eReadOnlyText\")],t.prototype,\"eReadOnlyText\",void 0),aa([oo(\"eDateWrapper\")],t.prototype,\"eDateWrapper\",void 0),t}(ra),la=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sa=function(e){function t(){return e.call(this,'\\n            <div class=\"ag-filter-filter\">\\n                <ag-input-text-field class=\"ag-date-filter\" ref=\"eDateInput\"></ag-input-text-field>\\n            </div>')||this}return la(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsService.getDocument(),r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);o&&(r.type=\"date\");var a=o&&hn();this.addManagedListener(r,\"mousedown\",function(){t.eDateInput.isDisabled()||a||r.focus()}),this.addManagedListener(r,\"input\",function(r){r.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())});var i=e.filterParams||{},l=i.minValidYear,s=i.maxValidYear;l&&(r.min=l+\"-01-01\"),s&&(r.max=s+\"-12-31\")},t.prototype.getDate=function(){return Fn(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(In(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:vn()||An()||hn()&&mn()>=14.1},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([oo(\"eDateInput\")],t.prototype,\"eDateInput\",void 0),t}(no),ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ca=function(e){function t(t,n,r){return void 0===n&&(n=\"ag-text-field\"),void 0===r&&(r=\"text\"),e.call(this,t,n,r)||this}return ua(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=o(t)?t:\"\"),r},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp(\"[\"+this.config.allowedCharPattern+\"]\");this.addManagedListener(this.eInput,\"keypress\",function(t){t.ctrlKey||t.metaKey||t.key&&!e.test(t.key)&&t.preventDefault()}),this.addManagedListener(this.eInput,\"paste\",function(t){var n,r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData(\"text\");r&&r.split(\"\").some(function(t){return!e.test(t)})&&t.preventDefault()})},t}(Ho),da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pa=function(e){function t(t){return e.call(this,t,\"ag-number-field\",\"number\")||this}return da(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,\"blur\",function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?\"\":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}),this.addManagedListener(this.eInput,\"wheel\",this.onWheel.bind(this)),this.eInput.step=\"any\"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(\"\"===e)return\"\";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,_r(this.eInput,\"min\",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,_r(this.eInput,\"max\",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,_r(this.eInput,\"step\",e)),this},t.prototype.setValue=function(t,n){return null!=t&&(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(ca),fa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fa(t,e),t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Qo.IN_RANGE||2===n?e.filter+\"-\"+e.filterTo:null!=e.filter?\"\"+e.filter:\"\"+e.type},t}(Wo);function ha(e){return(null!=e?e:{}).allowedCharPattern||(vn()?null:\"\\\\d\\\\-\\\\.\")}var ma,va,Aa,ya=function(e){function t(){var t=e.call(this,\"numberFilter\")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return fa(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[this.processValue(n),this.processValue(r)].slice(0,this.getNumberOfInputs(o))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t,e.prototype.setParams.call(this,t),this.filterModelFormatter=new ga(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=ha(this.numberFilterParams),t=document.createElement(\"div\");return t.classList.add(\"ag-filter-body\"),xt(t,\"presentation\"),this.createFromToElement(t,this.eValuesFrom,\"from\",e),this.createFromToElement(t,this.eValuesTo,\"to\",e),t},t.prototype.createFromToElement=function(e,t,n,r){var o=this.createManagedBean(r?new ca({allowedCharPattern:r}):new pa);o.addCssClass(\"ag-filter-\"+n),o.addCssClass(\"ag-filter-filter\"),t.push(o),e.appendChild(o.getGui())},t.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachPositionInput(e,function(e,r,o,a){r<a&&n.push(t.processValue(t.stringToFloat(e.getValue())))}),n},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return\"number\"},t.prototype.processValue=function(e){return null==e||isNaN(e)?null:e},t.prototype.stringToFloat=function(e){if(\"number\"==typeof e)return e;var t=r(e);return null!=t&&\"\"===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||\"-\"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:\"\"},t.DEFAULT_FILTER_OPTIONS=[$o.EQUALS,$o.NOT_EQUAL,$o.LESS_THAN,$o.LESS_THAN_OR_EQUAL,$o.GREATER_THAN,$o.GREATER_THAN_OR_EQUAL,$o.IN_RANGE,$o.BLANK,$o.NOT_BLANK],t}($o),Ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ba=function(){return ba=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ba.apply(this,arguments)},_a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Qo.IN_RANGE||2===n?e.filter+\"-\"+e.filterTo:null!=e.filter?\"\"+e.filter:\"\"+e.type},t}(Wo),Ca=function(e){function t(){var t=e.call(this,\"textFilter\")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return Ea(t,e),t.trimInput=function(e){var t=e&&e.trim();return\"\"===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){this.textFilterParams=n,e.prototype.setParams.call(this,n),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new _a(this.localeService,this.optionsFactory)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Gr.doOnce(function(){return console.warn(\"AG Grid - textCustomComparator is deprecated, use textMatcher instead.\")},\"textCustomComparator.deprecated\"),function(t){var n=t.filterOption,r=t.value,o=t.filterText;return e(n,r,o)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getFilterType=function(){return\"text\"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){var n=this,o=[];return this.forEachPositionInput(e,function(e,a,i,l){if(a<l){var s=r(e.getValue()),u=(n.textFilterParams.trimInput?t.trimInput(s):s)||null;o.push(u),e.setValue(u,!0)}}),o},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement(\"div\");return e.classList.add(\"ag-filter-body\"),xt(e,\"presentation\"),this.createFromToElement(e,this.eValuesFrom,\"from\"),this.createFromToElement(e,this.eValuesTo,\"to\"),e},t.prototype.createFromToElement=function(e,t,n){var r=this.createManagedBean(new ca);r.addCssClass(\"ag-filter-\"+n),r.addCssClass(\"ag-filter-filter\"),t.push(r),e.appendChild(r.getGui())},t.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[n||null,r||null].slice(0,this.getNumberOfInputs(o))},t.prototype.evaluateNullValue=function(e){var t=[Qo.NOT_EQUAL,Qo.NOT_CONTAINS,Qo.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,r){var o=this,a=e.map(function(e){return o.formatter(e)})||[],i=this.formatter(t),l=this.textFilterParams,s=l.api,u=l.colDef,c=l.column,d=l.columnApi,p=l.context,f=l.textFormatter;if(n.type===Qo.BLANK)return this.isBlank(t);if(n.type===Qo.NOT_BLANK)return!this.isBlank(t);var g={api:s,colDef:u,column:c,columnApi:d,context:p,node:r.node,data:r.data,filterOption:n.type,value:i,textFormatter:f};return a.some(function(e){return o.matcher(ba(ba({},g),{filterText:e}))})},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:\"\"},t.DEFAULT_FILTER_OPTIONS=[Qo.CONTAINS,Qo.NOT_CONTAINS,Qo.EQUALS,Qo.NOT_EQUAL,Qo.STARTS_WITH,Qo.ENDS_WITH,Qo.BLANK,Qo.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.filterOption,r=e.value,o=e.filterText;if(null==o)return!1;switch(n){case t.CONTAINS:return r.indexOf(o)>=0;case t.NOT_CONTAINS:return r.indexOf(o)<0;case t.EQUALS:return r===o;case t.NOT_EQUAL:return r!=o;case t.STARTS_WITH:return 0===r.indexOf(o);case t.ENDS_WITH:var a=r.lastIndexOf(o);return a>=0&&a===r.length-o.length;default:return!1}},t}(Qo),wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sa=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ta=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return wa(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterTextInput=this.createManagedBean(new ca(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.addValueChangedListener=function(e){var t=this.eFloatingFilterTextInput.getGui();this.addManagedListener(t,\"input\",e),this.addManagedListener(t,\"keypress\",e),this.addManagedListener(t,\"keydown\",e)},t}(ke),Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wa(t,e),t.prototype.postConstruct=function(){this.setTemplate('\\n            <div class=\"ag-floating-filter-input\" role=\"presentation\" ref=\"eFloatingFilterInputContainer\"></div>\\n        ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(t){this.params=t;var n=this.columnModel.getDisplayNameForColumn(t.column,\"header\",!0)+\" \"+this.localeService.getLocaleTextFunc()(\"ariaFilterInput\",\"Filter Input\");if(this.floatingFilterInputService=this.createFloatingFilterInputService(n),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),e.prototype.init.call(this,t),this.applyActive=So.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var r=So.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=I(this.syncUpWithParentFilter.bind(this),r);this.floatingFilterInputService.addValueChangedListener(o)}},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===Rr.ENTER;if(!this.applyActive||n){var r=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(r=Ca.trimInput(r),this.floatingFilterInputService.setValue(r,!0)),this.params.parentFilterInstance(function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,r||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Sa([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Sa([oo(\"eFloatingFilterInputContainer\")],t.prototype,\"eFloatingFilterInputContainer\",void 0),Sa([G],t.prototype,\"postConstruct\",null),t}(ra),Da=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ra=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.numberInputActive=!0,n}return Da(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterNumberInput=this.createManagedBean(new pa),this.eFloatingFilterTextInput=this.createManagedBean(new ca),this.eFloatingFilterTextInput.setDisabled(!0),this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterNumberInput.getGui()),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,t){this.getActiveInputElement().setValue(e,t)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.addValueChangedListener=function(e){this.setupListeners(this.eFloatingFilterNumberInput.getGui(),e),this.setupListeners(this.eFloatingFilterTextInput.getGui(),e)},t.prototype.setupListeners=function(e,t){this.addManagedListener(e,\"input\",t),this.addManagedListener(e,\"keypress\",t),this.addManagedListener(e,\"keydown\",t)},t}(ke),Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Da(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new ga(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return ya.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){var t=ha(this.params.filterParams);return t?this.createManagedBean(new Ta({config:{allowedCharPattern:t},ariaLabel:e})):this.createManagedBean(new Ra({ariaLabel:e}))},t}(Oa),La=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return La(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new _a(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return Ca.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.createManagedBean(new Ta({ariaLabel:e}))},t}(Oa),Ma=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ee,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),o=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener(\"touchstart\",r,{passive:!0}),this.eElement.addEventListener(\"touchmove\",o,{passive:!0}),this.eElement.addEventListener(\"touchend\",a,{passive:!1}),this.destroyFuncs.push(function(){n.eElement.removeEventListener(\"touchstart\",r,{passive:!0}),n.eElement.removeEventListener(\"touchmove\",o,{passive:!0}),n.eElement.removeEventListener(\"touchend\",a,{passive:!1})})}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout(function(){var o=n.touchStart===r;if(n.touching&&o&&!n.moved){n.moved=!0;var a={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(a)}},500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!kr(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach(function(e){return e()})},e.EVENT_TAP=\"tap\",e.EVENT_DOUBLE_TAP=\"doubleTap\",e.EVENT_LONG_TAP=\"longTap\",e.DOUBLE_TAP_MILLIS=500,e}(),xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ia=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ka=function(e){function t(n){var r=e.call(this)||this;return n||r.setTemplate(t.TEMPLATE),r}return xa(t,e),t.prototype.attachCustomElements=function(e,t,n,r,o){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=o},t.prototype.setupSort=function(e,t){var n=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon(\"sortAscending\",this.eSortAsc,e),this.addInIcon(\"sortDescending\",this.eSortDesc,e),this.addInIcon(\"sortUnSort\",this.eSortNone,e),this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,function(){return n.onSortChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return n.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=Or(e,this.gridOptionsService,n);r&&t.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t=\"asc\"===e;Vn(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var n=\"desc\"===e;Vn(this.eSortDesc,n,{skipAriaHidden:!0})}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is(\"unSortIcon\"),o=null==e;Vn(this.eSortNone,!r&&o,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon(\"sortUnSort\",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=\"mixed\"===this.sortController.getDisplaySortForColumn(this.column);Vn(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),r=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,o=n.some(function(e){var n;return null!==(n=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==n&&n}),a=r>=0&&o;Vn(this.eSortOrder,a,{skipAriaHidden:!0}),r>=0?this.eSortOrder.innerHTML=(r+1).toString():rr(this.eSortOrder)}},t.TEMPLATE='<span class=\"ag-sort-indicator-container\">\\n            <span ref=\"eSortOrder\" class=\"ag-sort-indicator-icon ag-sort-order ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortAsc\" class=\"ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortDesc\" class=\"ag-sort-indicator-icon ag-sort-descending-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortMixed\" class=\"ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden\" aria-hidden=\"true\"></span>\\n            <span ref=\"eSortNone\" class=\"ag-sort-indicator-icon ag-sort-none-icon ag-hidden\" aria-hidden=\"true\"></span>\\n        </span>',Ia([oo(\"eSortOrder\")],t.prototype,\"eSortOrder\",void 0),Ia([oo(\"eSortAsc\")],t.prototype,\"eSortAsc\",void 0),Ia([oo(\"eSortDesc\")],t.prototype,\"eSortDesc\",void 0),Ia([oo(\"eSortMixed\")],t.prototype,\"eSortMixed\",void 0),Ia([oo(\"eSortNone\")],t.prototype,\"eSortNone\",void 0),Ia([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Ia([q(\"sortController\")],t.prototype,\"sortController\",void 0),t}(no),Ba=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fa=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ja=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Ba(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e=ue(this.params.template,t.TEMPLATE);return e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=ft(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon(\"menu\",this.eMenu,e),this.addInIcon(\"filter\",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=Or(e,this.gridOptionsService,n);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsService;if(!t.is(\"suppressTouch\")){var n=new Ma(this.getGui(),!0),r=t.is(\"suppressMenuHide\"),a=r&&o(this.eMenu),i=a?new Ma(this.eMenu,!0):n;if(this.params.enableMenu){var l=a?\"EVENT_TAP\":\"EVENT_LONG_TAP\";this.addManagedListener(i,Ma[l],function(n){t.api.showColumnMenuAfterMouseClick(e.params.column,n.touchStart)})}this.params.enableSorting&&this.addManagedListener(n,Ma.EVENT_TAP,function(t){var n=t.touchStart.target;r&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,\"uiColumnSorted\")}),this.addDestroyFunc(function(){return n.destroy()}),a&&this.addDestroyFunc(function(){return i.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is(\"suppressMenuHide\"),t=En()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsService.is(\"suppressMenuHide\");this.addManagedListener(this.eMenu,\"click\",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle(\"ag-header-menu-always-show\",t)}else or(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,\"columnMenu\")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new ka(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var t=\"ctrl\"===this.gridOptionsService.get(\"multiSortKey\");this.addManagedListener(this.params.column,ie.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,\"click\",function(n){var r=e.params.column.isMoving(),o=(new Date).getTime()-e.lastMovingChanged<50;if(!r&&!o){var a=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(a)}});var n=function(){if(e.addOrRemoveCssClass(\"ag-header-cell-sorted-asc\",e.params.column.isSortAscending()),e.addOrRemoveCssClass(\"ag-header-cell-sorted-desc\",e.params.column.isSortDescending()),e.addOrRemoveCssClass(\"ag-header-cell-sorted-none\",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var t=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),n=!(null==t?void 0:t.every(function(t){return e.params.column.getSort()==t.getSort()}));e.addOrRemoveCssClass(\"ag-header-cell-sorted-mixed\",n)}};this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ie.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();Vn(this.eFilter,e,{skipAriaHidden:!0})},t.TEMPLATE='<div class=\"ag-cell-label-container\" role=\"presentation\">\\n            <span ref=\"eMenu\" class=\"ag-header-icon ag-header-cell-menu-button\" aria-hidden=\"true\"></span>\\n            <div ref=\"eLabel\" class=\"ag-header-cell-label\" role=\"presentation\">\\n                <span ref=\"eText\" class=\"ag-header-cell-text\"></span>\\n                <span ref=\"eFilter\" class=\"ag-header-icon ag-header-label-icon ag-filter-icon\" aria-hidden=\"true\"></span>\\n                <ag-sort-indicator ref=\"eSortIndicator\"></ag-sort-indicator>\\n            </div>\\n        </div>',Fa([q(\"sortController\")],t.prototype,\"sortController\",void 0),Fa([q(\"menuFactory\")],t.prototype,\"menuFactory\",void 0),Fa([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Fa([oo(\"eFilter\")],t.prototype,\"eFilter\",void 0),Fa([oo(\"eSortIndicator\")],t.prototype,\"eSortIndicator\",void 0),Fa([oo(\"eMenu\")],t.prototype,\"eMenu\",void 0),Fa([oo(\"eLabel\")],t.prototype,\"eLabel\",void 0),Fa([oo(\"eText\")],t.prototype,\"eText\",void 0),Fa([oo(\"eSortOrder\")],t.prototype,\"eSortOrder\",void 0),Fa([oo(\"eSortAsc\")],t.prototype,\"eSortAsc\",void 0),Fa([oo(\"eSortDesc\")],t.prototype,\"eSortDesc\",void 0),Fa([oo(\"eSortMixed\")],t.prototype,\"eSortMixed\",void 0),Fa([oo(\"eSortNone\")],t.prototype,\"eSortNone\",void 0),t}(no),Ha=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ua=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ya=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ha(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&O(function(){return console.warn(\"AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)\")},\"HeaderGroupComp.templateNotSupported\")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon(\"columnGroupOpened\",\"agOpened\"),this.addInIcon(\"columnGroupClosed\",\"agClosed\");var t=function(t){if(!Se(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,\"uiColumnExpanded\")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){we(e)};this.addManagedListener(this.eCloseIcon,\"dblclick\",n),this.addManagedListener(this.eOpenIcon,\"dblclick\",n),this.addManagedListener(this.getGui(),\"dblclick\",t),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,le.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,le.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new Ma(e,!0);this.addManagedListener(n,Ma.EVENT_TAP,t),this.addDestroyFunc(function(){return n.destroy()}),this.addManagedListener(e,\"click\",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Vn(this.eOpenIcon,e),Vn(this.eCloseIcon,!e)}else Vn(this.eOpenIcon,!1),Vn(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Or(e,this.gridOptionsService,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Vn(this.eOpenIcon,!1),void Vn(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e,t=this.params,n=t.displayName,r=t.columnGroup;if(o(n)){var a=ft(n);this.getRefElement(\"agLabel\").innerHTML=a}this.addOrRemoveCssClass(\"ag-sticky-label\",!!(null===(e=r.getColGroupDef())||void 0===e?void 0:e.stickyLabel))},t.TEMPLATE='<div class=\"ag-header-group-cell-label\" ref=\"agContainer\" role=\"presentation\">\\n            <span ref=\"agLabel\" class=\"ag-header-group-text\" role=\"presentation\"></span>\\n            <span ref=\"agOpened\" class=\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded\"></span>\\n            <span ref=\"agClosed\" class=\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed\"></span>\\n        </div>',Ua([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Ua([oo(\"agOpened\")],t.prototype,\"eOpenIcon\",void 0),Ua([oo(\"agClosed\")],t.prototype,\"eCloseIcon\",void 0),t}(no),Ga=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ga(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass(\"ag-has-popup\"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove(\"ag-has-popup\"),e.prototype.destroy.call(this)},t}(no),Va=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Va(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),o(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener(\"keydown\",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===Rr.LEFT||t===Rr.UP||t===Rr.RIGHT||t===Rr.DOWN||e.shiftKey&&t===Rr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e(\"ariaInputEditor\",\"Input Editor\")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class=\"ag-large-text\" tabindex=\"0\">\\n            <ag-input-text-area ref=\"eTextArea\" class=\"ag-large-text-input\"></ag-input-text-area>\\n        </div>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([oo(\"eTextArea\")],t.prototype,\"eTextArea\",void 0),t}(za),Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qa=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ka=function(e){function t(){var t=e.call(this,'<div class=\"ag-cell-edit-wrapper\"><ag-select class=\"ag-cell-editor\" ref=\"eSelect\"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Wa(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,a(e.values))console.warn(\"AG Grid: no values found for select cellEditor\");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===Rr.ENTER;var n=!1;e.values.forEach(function(r){var o={value:r},a=t.valueFormatterService.formatValue(e.column,null,r),i=null!=a;o.text=i?a:r,t.eSelect.addOption(o),n=n||e.value===r}),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),\"fullRow\"!==this.gridOptionsService.get(\"editType\")&&this.addManagedListener(this.eSelect,Bo.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Qa([q(\"valueFormatterService\")],t.prototype,\"valueFormatterService\",void 0),Qa([oo(\"eSelect\")],t.prototype,\"eSelect\",void 0),t}(za),$a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return $a(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===Rr.BACKSPACE||e.eventKey===Rr.DELETE?t=\"\":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==Rr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),null!=e.maxLength&&n.setMaxLength(e.maxLength),this.addManagedListener(n.getGui(),\"keydown\",function(e){var t=e.key;t!==Rr.PAGE_UP&&t!==Rr.PAGE_DOWN||e.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e(\"ariaInputEditor\",\"Input Editor\")),this.focusAfterAttached){hn()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=t.getValue(),a=o(r)&&r.length||0;a&&n.setSelectionRange(a,a)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class=\"ag-cell-edit-wrapper\">\\n            <ag-input-text-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-text-field>\\n        </div>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([oo(\"eInput\")],t.prototype,\"eInput\",void 0),t}(za),Ja=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Za=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Ja(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(\".ag-value-change-value\"),this.eDelta=this.queryForHtmlElement(\".ag-value-change-delta\"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),r=e.formatValue(n),a=o(r)?r:n,i=t>=0;this.eDelta.innerHTML=i?\"↑\"+a:\"↓\"+a,this.eDelta.classList.toggle(\"ag-value-change-delta-up\",i),this.eDelta.classList.toggle(\"ag-value-change-delta-down\",!i)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout(function(){t===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove(\"ag-value-change-value-highlight\"),rr(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(o(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:o(e.value)?this.eValue.innerHTML=t:rr(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if(\"number\"==typeof t&&\"number\"==typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add(\"ag-value-change-value-highlight\"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class=\"ag-value-change-delta\"></span><span class=\"ag-value-change-value\"></span></span>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),t}(no),ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ti=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(\".ag-value-slide-current\"),n}return ei(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=ir('<span class=\"ag-value-slide-previous ag-value-slide-out\"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){t===e.refreshCount&&e.ePrevious.classList.add(\"ag-value-slide-out-end\")},50),window.setTimeout(function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var t=e.value;return a(t)&&(t=\"\"),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,o(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:o(e.value)?this.eCurrent.innerHTML=t:rr(this.eCurrent),!0)},t.TEMPLATE='<span>\\n            <span class=\"ag-value-slide-current\"></span>\\n        </span>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),t}(no),ni=function(){return ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ni.apply(this,arguments)},ri=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var r=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return\"top\"===this.rowPinned?\"t-\"+this.rowIndex:\"bottom\"===this.rowPinned?\"b-\"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=o(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var a=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(a)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsService.get(\"isRowSelectable\");this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is(\"groupSelectsChildren\"))){var n=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=n&&n,source:\"selectableChanged\"})}},e.prototype.setId=function(t){var n=this.beans.gridOptionsService.getRowIdFunc();if(n)if(this.data){var r=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),null!==this.id&&\"string\"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error(\"AG Grid: Row IDs cannot start with \"+e.ID_PREFIX_ROW_GROUP+\", this is a reserved prefix for AG Grid's row grouping feature.\"),null!==this.id&&\"string\"!=typeof this.id&&(this.id=\"\"+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!o(this.rowTop)||!o(this.rowHeight))&&e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setHovered=function(e){this.hovered!==e&&(this.hovered=e)},e.prototype.isHovered=function(){return this.hovered},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=I(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=this,t=!1,n=!0,r=0,o=this.__autoHeights;if(null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach(function(a){var i=o[a.getId()];if(null==i){if(!e.beans.columnModel.isColSpanActive())return void(t=!0);var l=[];switch(a.getPinned()){case\"left\":l=e.beans.columnModel.getDisplayedLeftColumnsForRow(e);break;case\"right\":l=e.beans.columnModel.getDisplayedRightColumnsForRow(e);break;case null:l=e.beans.columnModel.getViewportCenterColumnsForRow(e)}if(l.includes(a))return void(t=!0);i=-1}else n=!1;i>r&&(r=i)}),!t&&((n||r<10)&&(r=this.beans.gridOptionsService.getRowHeightForNode(this).height),r!=this.rowHeight))){this.setRowHeight(r);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(Ue.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsService.is(\"groupIncludeFooter\")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var r,o=\"string\"!=typeof e?e:null!==(r=this.beans.columnModel.getGridColumn(e))&&void 0!==r?r:this.beans.columnModel.getPrimaryColumn(e),a=this.getValueFromValueService(o);if(this.beans.gridOptionsService.is(\"readOnlyEdit\"))return this.dispatchEventForSaveValueReadOnly(o,a,t,n),!1;var i=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,a),this.checkRowSelectable(),i},e.prototype.getValueFromValueService=function(e){var t=this.leafGroup&&this.beans.columnModel.isPivotMode(),n=this.group&&this.expanded&&!this.footer&&!t,r=this.beans.gridOptionsService.is(\"groupIncludeFooter\"),o=this.beans.gridOptionsService.is(\"groupSuppressBlankHeader\"),a=n&&r&&!o;return this.beans.valueService.getValue(e,this,!1,a)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,n,r){var o={type:Ue.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:t,newValue:n,value:n,source:r};this.beans.eventService.dispatchEvent(o)},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);a(this.groupData)&&(this.groupData={});var r=n.getColId(),o=this.groupData[r];o!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(n,t,o))},e.prototype.setAggData=function(e){var t=this,n=y([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&n.forEach(function(e){var n=t.beans.columnModel.getGridColumn(e),o=t.aggData?t.aggData[e]:void 0,a=r?r[e]:void 0;t.dispatchCellChangedEvent(n,o,a)})},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType(\"serverSide\")){var n=this.beans.gridOptionsService.isTreeData(),r=this.beans.gridOptionsService.get(\"isServerSideGroup\");t=!this.stub&&!this.footer&&(n?!!r&&r(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&i(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,r){var o={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:r};this.dispatchLocalEvent(o)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(t){return t.depthFirstSearch(e)}),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,n=!1,r=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var o=0;o<this.childrenAfterGroup.length;o++){var a=this.childrenAfterGroup[o],i=a.isSelected();if(!a.selectable){var l=a.calculateSelectedFromChildren();if(null===l)continue;i=l}switch(i){case!0:t=!0;break;case!1:n=!0;break;default:r=!0}}return r||t&&n?void 0:!!t||!n&&(this.selectable?this.selected:null)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.selectThisNode=function(t,n,r){void 0===r&&(r=\"api\");var o=!this.selectable&&t,a=this.selected===t;if(o||a)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var i=ni(ni({},this.createGlobalRowEvent(Ue.EVENT_ROW_SELECTED)),{event:n||null,source:r});return this.beans.eventService.dispatchEvent(i),!0},e.prototype.setSelected=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=\"api\"),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1,source:r})},e.prototype.setSelectedParams=function(e){return this.rowPinned?(console.warn(\"AG Grid: cannot select pinned rows\"),0):void 0===this.id?(console.warn(\"AG Grid: cannot select node until id for node is known\"),0):this.beans.selectionService.setNodeSelected(ni(ni({},e),{node:this.footer?this.sibling:this}))},e.prototype.isRowPinned=function(){return\"top\"===this.rowPinned||\"bottom\"===this.rowPinned},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ee),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,r=!1,a=null;n&&!r;){var i=t.parent;o(i)&&t.firstChild?i.rowGroupColumn===e&&(r=!0,a=i):n=!1,t=i}return r?a:null},e.prototype.isFullWidthCell=function(){var e=this.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getIsFullWidthCellFunc=function(){var e=this.beans.gridOptionsService.getCallback(\"isFullWidthRow\");if(e)return e;var t=this.beans.gridOptionsService.get(\"isFullWidthCell\");return t?function(e){return t(e.rowNode)}:void 0},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.prototype.createFooter=function(){var t=this;if(!this.sibling){var n=new e(this.beans);Object.keys(this).forEach(function(e){n[e]=t[e]}),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id=\"rowGroupFooter_\"+this.id,n.sibling=this,this.sibling=n}},e.ID_PREFIX_ROW_GROUP=\"row-group-\",e.ID_PREFIX_TOP_PINNED=\"t-\",e.ID_PREFIX_BOTTOM_PINNED=\"b-\",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED=\"rowSelected\",e.EVENT_DATA_CHANGED=\"dataChanged\",e.EVENT_CELL_CHANGED=\"cellChanged\",e.EVENT_ALL_CHILDREN_COUNT_CHANGED=\"allChildrenCountChanged\",e.EVENT_MASTER_CHANGED=\"masterChanged\",e.EVENT_GROUP_CHANGED=\"groupChanged\",e.EVENT_MOUSE_ENTER=\"mouseEnter\",e.EVENT_MOUSE_LEAVE=\"mouseLeave\",e.EVENT_HEIGHT_CHANGED=\"heightChanged\",e.EVENT_TOP_CHANGED=\"topChanged\",e.EVENT_DISPLAYED_CHANGED=\"displayedChanged\",e.EVENT_FIRST_CHILD_CHANGED=\"firstChildChanged\",e.EVENT_LAST_CHILD_CHANGED=\"lastChildChanged\",e.EVENT_CHILD_INDEX_CHANGED=\"childIndexChanged\",e.EVENT_ROW_INDEX_CHANGED=\"rowIndexChanged\",e.EVENT_EXPANDED_CHANGED=\"expandedChanged\",e.EVENT_HAS_CHILDREN_CHANGED=\"hasChildrenChanged\",e.EVENT_SELECTABLE_CHANGED=\"selectableChanged\",e.EVENT_UI_LEVEL_CHANGED=\"uiLevelChanged\",e.EVENT_HIGHLIGHT_CHANGED=\"rowHighlightChanged\",e.EVENT_DRAGGING_CHANGED=\"draggingChanged\",e}(),oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ai=function(){return ai=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ai.apply(this,arguments)},ii=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},li=function(e){function t(){return e.call(this,'\\n            <div class=\"ag-selection-checkbox\" role=\"presentation\">\\n                <ag-checkbox role=\"presentation\" ref=\"eCheckbox\"></ag-checkbox>\\n            </div>')||this}return oi(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e(\"ariaIndeterminate\",\"indeterminate\"):!0===t?e(\"ariaChecked\",\"checked\"):e(\"ariaUnchecked\",\"unchecked\"),r=e(\"ariaRowToggleSelection\",\"Press Space to toggle row selection\");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+\" (\"+n+\")\")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsService.is(\"groupSelectsFiltered\");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:\"checkboxSelected\"})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsService.is(\"groupSelectsFiltered\");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:\"checkboxSelected\"})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),\"dblclick\",function(e){we(e)}),this.addManagedListener(this.eCheckbox.getInputElement(),\"click\",function(e){we(e),t.eCheckbox.getValue()?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})}),this.addManagedListener(this.rowNode,ri.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get(\"isRowSelectable\")||\"function\"==typeof this.getIsVisible()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,ri.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute(\"tabindex\",\"-1\")},t.prototype.showOrHideSelect=function(){var e,t,n,r,o=this.rowNode.selectable,a=this.getIsVisible();if(o)if(\"function\"==typeof a){var i=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,l=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);o=!!l&&a(ai(ai({},i),l))}else o=null!=a&&a;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!o),this.setVisible(!0),void this.setDisplayed(!0);(null===(r=this.overrides)||void 0===r?void 0:r.removeHidden)?this.setDisplayed(o):this.setVisible(o)},t.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:null===(t=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===t?void 0:t.checkboxSelection},ii([oo(\"eCheckbox\")],t.prototype,\"eCheckbox\",void 0),ii([G],t.prototype,\"postConstruct\",null),t}(no),si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ui=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ci=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")};!function(e){e[e.ToolPanel=0]=\"ToolPanel\",e[e.HeaderCell=1]=\"HeaderCell\",e[e.RowDrag=2]=\"RowDrag\",e[e.ChartPanel=3]=\"ChartPanel\"}(ma||(ma={})),function(e){e[e.Up=0]=\"Up\",e[e.Down=1]=\"Down\"}(va||(va={})),function(e){e[e.Left=0]=\"Left\",e[e.Right=1]=\"Right\"}(Aa||(Aa={}));var di,pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var n;return si(t,e),n=t,t.prototype.init=function(){this.ePinnedIcon=Tr(\"columnMovePin\",this.gridOptionsService,null),this.eHideIcon=Tr(\"columnMoveHide\",this.gridOptionsService,null),this.eMoveIcon=Tr(\"columnMoveMove\",this.gridOptionsService,null),this.eLeftIcon=Tr(\"columnMoveLeft\",this.gridOptionsService,null),this.eRightIcon=Tr(\"columnMoveRight\",this.gridOptionsService,null),this.eGroupIcon=Tr(\"columnMoveGroup\",this.gridOptionsService,null),this.eAggregateIcon=Tr(\"columnMoveValue\",this.gridOptionsService,null),this.ePivotIcon=Tr(\"columnMovePivot\",this.gridOptionsService,null),this.eDropNotAllowedIcon=Tr(\"dropNotAllowed\",this.gridOptionsService,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find(function(t){return t.dragSource===e});t&&(this.dragService.removeDragSource(t.params),fe(this.dragSourceAndParamsList,t))},t.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach(function(t){return e.dragService.removeDragSource(t.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(e,t){var n,r,o,a,i=this,l=this.getHorizontalDirection(e),s=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var u=this.dropTargets.filter(function(t){return i.isMouseOnDropTarget(e,t)}),c=this.findCurrentDropTarget(e,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(e,l,s,t),null!==this.lastDropTarget&&null===c&&(null===(r=(n=this.dragSource).onGridExit)||void 0===r||r.call(n,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(a=(o=this.dragSource).onGridEnter)||void 0===a||a.call(o,this.dragItem)),this.enterDragTargetIfExists(c,e,l,s,t),this.lastDropTarget=c;else if(c&&c.onDragging){var d=this.createDropTargetEvent(c,e,l,s,t);c.onDragging(d)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},t.prototype.allContainersIntersect=function(e,t){var n,r;try{for(var o=ci(t),a=o.next();!a.done;a=o.next()){var i=a.value.getBoundingClientRect();if(0===i.width||0===i.height)return!1;var l=e.clientX>=i.left&&e.clientX<i.right,s=e.clientY>=i.top&&e.clientY<i.bottom;if(!l||!s)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0},t.prototype.isMouseOnDropTarget=function(e,t){var n,r,o=this.getAllContainersFromDropTarget(t),a=!1;try{for(var i=ci(o),l=i.next();!l.done;l=i.next()){var s=l.value;if(this.allContainersIntersect(e,s)){a=!0;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&a&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},t.prototype.findCurrentDropTarget=function(e,t){var n,r,o,a,i=t.length;if(0===i)return null;if(1===i)return t[0];var l=this.gridOptionsService.getRootNode().elementsFromPoint(e.clientX,e.clientY);try{for(var s=ci(l),u=s.next();!u.done;u=s.next()){var c=u.value;try{for(var d=(o=void 0,ci(t)),p=d.next();!p.done;p=d.next()){var f=p.value;if(-1!==Ae(this.getAllContainersFromDropTarget(f)).indexOf(c))return f}}catch(e){o={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return null},t.prototype.enterDragTargetIfExists=function(e,t,n,r,o){if(e){if(e.onDragEnter){var a=this.createDropTargetEvent(e,t,n,r,o);e.onDragEnter(a)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter(function(t){return t.getContainer()!==e.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(e){return e.external})},t.prototype.findExternalZone=function(e){return this.dropTargets.filter(function(e){return e.external}).find(function(t){return t.getContainer()===e.getContainer()})||null},t.prototype.getHorizontalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientX,n=e.clientX;return t===n?null:t>n?Aa.Left:Aa.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,n=e.clientY;return t===n?null:t>n?va.Up:va.Down},t.prototype.createDropTargetEvent=function(e,t,n,r,o){var a=e.getContainer(),i=a.getBoundingClientRect(),l=this,s=l.gridApi,u=l.columnApi,c=l.dragItem,d=l.dragSource;return{event:t,x:t.clientX-i.left,y:t.clientY-i.top,vDirection:r,hDirection:n,dragSource:d,fromNudge:o,dragItem:c,api:s,columnApi:u,dropZoneTarget:a}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,r=wn()-2,o=Sn()-2,a=e.pageY-n/2,i=e.pageX-10,l=this.gridOptionsService.getDocument(),s=l.defaultView||window,u=s.pageYOffset||l.documentElement.scrollTop,c=s.pageXOffset||l.documentElement.scrollLeft;r>0&&i+t.clientWidth>r+c&&(i=r+c-t.clientWidth),i<0&&(i=0),o>0&&a+t.clientHeight>o+u&&(a=o+u-t.clientHeight),a<0&&(a=0),t.style.left=i+\"px\",t.style.top=a+\"px\"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=ir(n.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(\".ag-dnd-ghost-icon\"),this.setGhostIcon(null);var t=this.eGhost.querySelector(\".ag-dnd-ghost-label\"),r=this.dragSource.dragItemName;R(r)&&(r=r()),t.innerHTML=ft(r)||\"\",this.eGhost.style.height=\"25px\",this.eGhost.style.top=\"20px\",this.eGhost.style.left=\"20px\";var o=this.gridOptionsService.getDocument(),a=null;try{a=o.fullscreenElement}catch(e){}finally{if(!a){var i=this.gridOptionsService.getRootNode();a=i.querySelector(\"body\")||(i instanceof ShadowRoot?i:null==i?void 0:i.documentElement)}}this.eGhostParent=a,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn(\"AG Grid: could not find document body, it is needed for dragging columns\")},t.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),rr(this.eGhostIcon);var r=null;switch(e||(e=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),e){case n.ICON_PINNED:r=this.ePinnedIcon;break;case n.ICON_MOVE:r=this.eMoveIcon;break;case n.ICON_LEFT:r=this.eLeftIcon;break;case n.ICON_RIGHT:r=this.eRightIcon;break;case n.ICON_GROUP:r=this.eGroupIcon;break;case n.ICON_AGGREGATE:r=this.eAggregateIcon;break;case n.ICON_PIVOT:r=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle(\"ag-shake-left-to-right\",t),r===this.eHideIcon&&this.gridOptionsService.is(\"suppressDragLeaveHidesColumns\")||r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED=\"pinned\",t.ICON_MOVE=\"move\",t.ICON_LEFT=\"left\",t.ICON_RIGHT=\"right\",t.ICON_GROUP=\"group\",t.ICON_AGGREGATE=\"aggregate\",t.ICON_PIVOT=\"pivot\",t.ICON_NOT_ALLOWED=\"notAllowed\",t.ICON_HIDE=\"hide\",t.GHOST_TEMPLATE='<div class=\"ag-dnd-ghost ag-unselectable\">\\n            <span class=\"ag-dnd-ghost-icon ag-shake-left-to-right\"></span>\\n            <div class=\"ag-dnd-ghost-label\"></div>\\n        </div>',ui([q(\"dragService\")],t.prototype,\"dragService\",void 0),ui([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),ui([q(\"columnApi\")],t.prototype,\"columnApi\",void 0),ui([q(\"gridApi\")],t.prototype,\"gridApi\",void 0),ui([G],t.prototype,\"init\",null),ui([z],t.prototype,\"clearDragSourceParamsList\",null),n=ui([V(\"dragAndDropService\")],t)}(ke),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gi=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},hi=function(e){function t(t,n,r,o,a,i){var l=e.call(this)||this;return l.cellValueFn=t,l.rowNode=n,l.column=r,l.customGui=o,l.dragStartPixels=a,l.suppressVisibilityChange=i,l.dragSource=null,l}return fi(t,e),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class=\"ag-drag-handle ag-row-drag\" aria-hidden=\"true\"></div>'),this.getGui().appendChild(Or(\"rowDrag\",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsService.is(\"rowDragManaged\")?new Ai(this,this.beans,this.rowNode,this.column):new vi(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is(\"rowDragMultiRow\"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsService.is(\"rowDragManaged\");this.beans.gridOptionsService.isTreeData()&&e&&O(function(){return console.warn(\"AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true\")},\"RowDragComp.managedAndTreeData\")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get(\"rowDragText\")},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var n=this.getRowDragText(this.column),r=this.localeService.getLocaleTextFunc();this.dragSource={type:ma.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,o=t.getDragItem(),a=(null===(e=o.rowNodes)||void 0===e?void 0:e.length)||1;return n?n(o,a):1===a?t.cellValueFn():a+\" \"+r(\"rowDragRows\",\"rows\")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},gi([q(\"beans\")],t.prototype,\"beans\",void 0),gi([G],t.prototype,\"postConstruct\",null),gi([z],t.prototype,\"removeDragSource\",null),t}(no),mi=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.rowNode=n,o.column=r,o}return fi(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var n=!0,r=!1;this.column&&(n=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=R(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0,t),this.parent.setVisible(n,t)):(this.parent.setDisplayed(n,t),this.parent.setVisible(!0,t))}},t}(ke),vi=function(e){function t(t,n,r,o){var a=e.call(this,t,r,o)||this;return a.beans=n,a}return fi(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener(\"suppressRowDrag\",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsService.is(\"suppressRowDrag\");this.setDisplayedOrVisible(e)},gi([G],t.prototype,\"postConstruct\",null),t}(mi),Ai=function(e){function t(t,n,r,o){var a=e.call(this,t,r,o)||this;return a.beans=n,a}return fi(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ue.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ue.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener(\"suppressRowDrag\",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsService.is(\"suppressRowDrag\"),r=this.beans.dragAndDropService.hasExternalDropZones(),o=t&&!r||n;this.setDisplayedOrVisible(o)},gi([G],t.prototype,\"postConstruct\",null),t}(mi),yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ei=function(){return Ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ei.apply(this,arguments)},bi=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yi(t,e),t.prototype.init=function(e,t,n,r,o,a,i){this.params=i,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=o,this.comp=e,this.compClass=a;var l=this.isTopLevelFooter(),s=this.isEmbeddedRowMismatch(),u=null==i.value&&!i.node.master,c=!1;if(this.gridOptionsService.is(\"groupIncludeFooter\")&&this.gridOptionsService.is(\"groupHideOpenParents\")){var d=i.node;d.footer&&(c=(i.colDef&&i.colDef.showRowGroup)!==(d.rowGroupColumn&&d.rowGroupColumn.getColId()))}this.cellIsBlank=!l&&(s||u&&!i.node.master||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){Vt(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,ri.EVENT_EXPANDED_CHANGED,r)||null,r()}else qt(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is(\"groupIncludeTotalFooter\"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is(\"embedFullWidthRows\"))return!1;var e=\"left\"===this.params.pinned,t=\"right\"===this.params.pinned,n=!e&&!t;return this.gridOptionsService.is(\"enableRtl\")?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}a(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsService.is(\"groupHideOpenParents\"))if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var r=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=r}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,r=e.value,o=n;null==o&&(o=\"\"===r&&this.params.node.group?this.localeService.getLocaleTextFunc()(\"blanks\",\"(Blanks)\"):null!=r?r:null),this.comp.setInnerRenderer(t,o)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,r=this.params,o=r.value,a=r.node,i=this.valueFormatterService.formatValue(e,a,o);return Ei(Ei({},n),{valueFormatted:i})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t=\"\";if(e){var n=g(this.params);n.value=this.params.value,\"function\"==typeof e?t=e(n):\"string\"==typeof e?t=this.expressionService.evaluate(e,n):console.warn(\"AG Grid: footerValueGetter should be either a function or a string (expression)\")}else t=\"Total \"+(null!=this.params.value?this.params.value:\"\");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get(\"groupRowRendererParams\"),e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(n&&!r(n))return n;var o=this.displayedGroupNode.rowGroupColumn,a=o?o.getColDef():void 0;if(a){var i=this.userComponentFactory.getCellRendererDetails(a,e);if(i&&!r(i))return i;if(r(i)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,ri.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?\"(\"+e+\")\":\"\";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e,t=this.params,n=Or(\"groupExpanded\",this.gridOptionsService,null),r=Or(\"groupContracted\",this.gridOptionsService,null);n&&this.eExpanded.appendChild(n),r&&this.eContracted.appendChild(r);var o=t.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.is(\"enableGroupEdit\")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(o,\"dblclick\",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,\"click\",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,\"click\",this.onExpandClicked.bind(this)),this.addManagedListener(o,\"keydown\",this.onKeyDown.bind(this)),this.addManagedListener(t.node,ri.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var a=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,ri.EVENT_ALL_CHILDREN_COUNT_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ri.EVENT_MASTER_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ri.EVENT_GROUP_CHANGED,a),this.addManagedListener(this.displayedGroupNode,ri.EVENT_HAS_CHILDREN_CHANGED,a)},t.prototype.onExpandClicked=function(e){Se(e)||(we(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;!n&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(n,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||t)return!1;var n=this.params.column;return null==n||\"string\"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,r=e.columnModel,o=t.node,a=this.isExpandable();if(a){var i=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(i),this.comp.setContractedDisplayed(!i)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var l=r.isPivotMode(),s=l&&n.leafGroup,u=a&&!s,c=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass(\"ag-cell-expandable\",u),this.comp.addOrRemoveCssClass(\"ag-row-group\",u),l?this.comp.addOrRemoveCssClass(\"ag-pivot-leaf-group\",s):c||this.comp.addOrRemoveCssClass(\"ag-row-group-leaf-indent\",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,ri.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is(\"groupHideOpenParents\")){var e=this.params,t=e.node,n=!!e.colDef,r=this.gridOptionsService.isTreeData(),o=!n||r||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass=\"ag-row-group-indent-\"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new hi(function(){return e.params.value},this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement(\"afterbegin\",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return\"function\"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var r=new li;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==Rr.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){Se(e)||Re(this.eExpanded,e)||Re(this.eContracted,e)||this.onExpandOrContract(e)},bi([q(\"expressionService\")],t.prototype,\"expressionService\",void 0),bi([q(\"valueFormatterService\")],t.prototype,\"valueFormatterService\",void 0),bi([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),bi([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),bi([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),t}(ke),Ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wi=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Si=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ci(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return Vn(t.eContracted,e)},setExpandedDisplayed:function(e){return Vn(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle(\"ag-invisible\",!e)}},r=this.createManagedBean(new _i),o=!e.colDef,a=this.getGui();r.init(n,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),o&&xt(a,\"gridcell\")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}})}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class=\"ag-cell-wrapper\">\\n            <span class=\"ag-group-expanded\" ref=\"eExpanded\"></span>\\n            <span class=\"ag-group-contracted\" ref=\"eContracted\"></span>\\n            <span class=\"ag-group-checkbox ag-invisible\" ref=\"eCheckbox\"></span>\\n            <span class=\"ag-group-value\" ref=\"eValue\"></span>\\n            <span class=\"ag-group-child-count\" ref=\"eChildCount\"></span>\\n        </span>',wi([oo(\"eExpanded\")],t.prototype,\"eExpanded\",void 0),wi([oo(\"eContracted\")],t.prototype,\"eContracted\",void 0),wi([oo(\"eCheckbox\")],t.prototype,\"eCheckbox\",void 0),wi([oo(\"eValue\")],t.prototype,\"eValue\",void 0),wi([oo(\"eChildCount\")],t.prototype,\"eChildCount\",void 0),t}(no),Ti=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oi=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Di=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ti(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e(\"loadingError\",\"ERR\")},t.prototype.setupLoading=function(){var e=Or(\"groupLoading\",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t(\"loadingOoo\",\"Loading\")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class=\"ag-loading\">\\n            <span class=\"ag-loading-icon\" ref=\"eLoadingIcon\"></span>\\n            <span class=\"ag-loading-text\" ref=\"eLoadingText\"></span>\\n        </div>',Oi([oo(\"eLoadingIcon\")],t.prototype,\"eLoadingIcon\",void 0),Oi([oo(\"eLoadingText\")],t.prototype,\"eLoadingText\",void 0),t}(no),Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e){function t(){return e.call(this)||this}return Ri(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n,r=null!==(n=this.gridOptionsService.get(\"overlayLoadingTemplate\"))&&void 0!==n?n:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.localeService.getLocaleTextFunc(),a=r.replace(\"[LOADING...]\",o(\"loadingOoo\",\"Loading...\"));this.setTemplate(a)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class=\"ag-overlay-loading-center\">[LOADING...]</span>',t}(no),Li=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pi=function(e){function t(){return e.call(this)||this}return Li(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n,r=null!==(n=this.gridOptionsService.get(\"overlayNoRowsTemplate\"))&&void 0!==n?n:t.DEFAULT_NO_ROWS_TEMPLATE,o=this.localeService.getLocaleTextFunc(),a=r.replace(\"[NO_ROWS_TO_SHOW]\",o(\"noRowsToShow\",\"No Rows To Show\"));this.setTemplate(a)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class=\"ag-overlay-no-rows-center\">[NO_ROWS_TO_SHOW]</span>',t}(no),Mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(e){function t(){return e.call(this,'<div class=\"ag-tooltip\"></div>')||this}return Mi(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=ft(t)},t}(za),Ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ki=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Bi=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:sa,agColumnHeader:ja,agColumnGroupHeader:Ya,agSortIndicator:ka,agTextColumnFloatingFilter:Pa,agNumberColumnFloatingFilter:Na,agDateColumnFloatingFilter:ia,agReadOnlyFloatingFilter:so,agAnimateShowChangeCellRenderer:Za,agAnimateSlideCellRenderer:ti,agGroupCellRenderer:Si,agGroupRowRenderer:Si,agLoadingCellRenderer:Di,agCellEditor:Xa,agTextCellEditor:Xa,agSelectCellEditor:Ka,agLargeTextCellEditor:qa,agTextColumnFilter:Ca,agNumberColumnFilter:ya,agDateColumnFilter:ta,agLoadingOverlay:Ni,agNoRowsOverlay:Pi,agTooltipComponent:xi},t.enterpriseAgDefaultCompsModule={agSetColumnFilter:X.SetFilterModule,agSetColumnFloatingFilter:X.SetFilterModule,agMultiColumnFilter:X.MultiFilterModule,agMultiColumnFloatingFilter:X.MultiFilterModule,agGroupColumnFilter:X.RowGroupingModule,agGroupColumnFloatingFilter:X.RowGroupingModule,agRichSelect:X.RichSelectModule,agRichSelectCellEditor:X.RichSelectModule,agDetailCellRenderer:X.MasterDetailModule,agSparklineCellRenderer:X.SparklinesModule},t.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: \"agTextCellEditor\", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: \"agSelectCellEditor\", cellEditorPopup: true }'},t.jsComps={},t.fwComps={},t}return Ii(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&f(this.gridOptions.components,function(t,n){return e.registerJsComponent(t,n)}),null!=this.gridOptions.frameworkComponents&&f(this.gridOptions.frameworkComponents,function(t,n){return e.registerFwComponent(t,n)})},t.prototype.registerDefaultComponent=function(e,t){this.agGridDefaults[e]?console.error(\"Trying to overwrite a default component. You should call registerComponent\"):this.agGridDefaults[e]=t},t.prototype.registerJsComponent=function(e,t){this.fwComps[e]?console.error(\"Trying to register a component that you have already registered for frameworks: \"+e):this.jsComps[e]=t},t.prototype.registerFwComponent=function(e,t){O(function(){return console.warn(\"AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.\")},\"UserComponentRegistry.frameworkComponentsDeprecated\"),this.fwComps[e]=t},t.prototype.retrieve=function(e,t){var n=this,r=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=o)return r(o,!0);var a=this.fwComps[t];if(a)return r(a,!0);var i=this.jsComps[t];if(i)return r(i,this.getFrameworkOverrides().isFrameworkComponent(i));var l=this.agGridDefaults[t];if(l)return r(l,!1);var s=this.enterpriseAgDefaultCompsModule[t];return s?te.assertRegistered(s,\"AG Grid '\"+e+\"' component: \"+t):this.deprecatedAgGridDefaults[t]?O(function(){return console.warn(n.deprecatedAgGridDefaults[t])},t):O(function(){n.warnAboutMissingComponent(e,t)},\"MissingComp\"+t),null},t.prototype.warnAboutMissingComponent=function(e,t){var n=Ke(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bi(arguments[t]));return e}(Object.keys(this.agGridDefaults).filter(function(e){return![\"agCellEditor\",\"agGroupRowRenderer\",\"agSortIndicator\"].includes(e)}),Object.keys(this.jsComps),Object.keys(this.fwComps)),!0,.8);console.warn(\"AG Grid: Could not find '\"+t+\"' component. It was configured as \\\"\"+e+\": '\"+t+\"'\\\" but it wasn't found in the list of registered components.\"),n.length>0&&console.warn(\"         Did you mean: [\"+n.slice(0,3)+\"]?\"),console.warn(\"If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/\")},ki([q(\"gridOptions\")],t.prototype,\"gridOptions\",void 0),ki([G],t.prototype,\"init\",null),ki([V(\"userComponentRegistry\")],t)}(ke),ji={propertyName:\"dateComponent\",cellRenderer:!1},Hi={propertyName:\"headerComponent\",cellRenderer:!1},Ui={propertyName:\"headerGroupComponent\",cellRenderer:!1},Yi={propertyName:\"cellRenderer\",cellRenderer:!0},Gi={propertyName:\"cellEditor\",cellRenderer:!1},zi={propertyName:\"innerRenderer\",cellRenderer:!0},Vi={propertyName:\"loadingOverlayComponent\",cellRenderer:!1},qi={propertyName:\"noRowsOverlayComponent\",cellRenderer:!1},Wi={propertyName:\"tooltipComponent\",cellRenderer:!1},Qi={propertyName:\"filter\",cellRenderer:!1},Ki={propertyName:\"floatingFilterComponent\",cellRenderer:!1},$i={propertyName:\"toolPanel\",cellRenderer:!1},Xi={propertyName:\"statusPanel\",cellRenderer:!1},Ji={propertyName:\"fullWidthCellRenderer\",cellRenderer:!0},Zi={propertyName:\"loadingCellRenderer\",cellRenderer:!0},el={propertyName:\"groupRowRenderer\",cellRenderer:!0},tl={propertyName:\"detailCellRenderer\",cellRenderer:!0},nl=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:\"agSetColumnFloatingFilter\",agSetColumnFilter:\"agSetColumnFloatingFilter\",multi:\"agMultiColumnFloatingFilter\",agMultiColumnFilter:\"agMultiColumnFloatingFilter\",group:\"agGroupColumnFloatingFilter\",agGroupColumnFilter:\"agGroupColumnFloatingFilter\",number:\"agNumberColumnFloatingFilter\",agNumberColumnFilter:\"agNumberColumnFloatingFilter\",date:\"agDateColumnFloatingFilter\",agDateColumnFilter:\"agDateColumnFloatingFilter\",text:\"agTextColumnFloatingFilter\",agTextColumnFilter:\"agTextColumnFloatingFilter\"},e}(),rl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ol=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rl(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Hi,\"agColumnHeader\",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Ui,\"agColumnGroupHeader\",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ji,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Zi,\"agLoadingCellRenderer\",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,el,\"agGroupRowRenderer\",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,tl,\"agDetailCellRenderer\",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,zi,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,zi,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Yi,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,Gi,\"agCellEditor\",t,!0)},t.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Qi,n,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,ji,\"agDateInput\",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Vi,\"agLoadingOverlay\",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,qi,\"agNoRowsOverlay\",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Wi,\"agTooltipComponent\",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Yi,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,Ki,n,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,$i,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Xi,null,t,!0)},t.prototype.getCompDetails=function(e,t,n,r,o){var a=this;void 0===o&&(o=!1);var i=t.propertyName,l=t.cellRenderer,s=this.getCompKeys(e,t,r),u=s.compName,c=s.jsComp,d=s.fwComp,p=s.paramsFromSelector,f=s.popupFromSelector,g=s.popupPositionFromSelector,h=function(e){var t=a.userComponentRegistry.retrieve(i,e);t&&(c=t.componentFromFramework?void 0:t.component,d=t.componentFromFramework?t.component:void 0)};if(null!=u&&h(u),null==c&&null==d&&null!=n&&h(n),c&&l&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(i,c)),c||d){var m=this.mergeParamsWithApplicationProvidedParams(e,t,r,p),v=null==c,A=c||d;return{componentFromFramework:v,componentClass:A,params:m,type:t,popupFromSelector:f,popupPositionFromSelector:g,newAgStackInstance:function(){return a.newAgStackInstance(A,v,m,t)}}}o&&console.error(\"AG Grid: Could not find component \"+u+\", did you forget to configure this component?\")},t.prototype.getCompKeys=function(e,t,n){var r,o,a,i,l,s,u=this,c=t.propertyName;if(e){var d=e,p=d[c+\"Selector\"],f=p?p(n):null,g=function(e,t){var n=function(){var e=\"AG Grid: As of v27, the property \"+c+\"Framework is deprecated. The property \"+c+\" can now be used for JavaScript AND Framework Components.\";O(function(){return console.warn(e)},\"UserComponentFactory.\"+c+\"FrameworkDeprecated\")};\"string\"==typeof e?r=e:\"string\"==typeof t?(n(),r=t):null!=e&&!0!==e?u.getFrameworkOverrides().isFrameworkComponent(e)?a=e:o=e:null!=t&&(n(),a=t)};if(f){if(null!=f.frameworkComponent){var h=\"AG Grid: As of v27, the return for \"+c+\"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.\";O(function(){return console.warn(h)},\"UserComponentFactory.\"+c+\"FrameworkSelectorDeprecated\"),g(f.frameworkComponent,void 0)}else g(f.component,void 0);i=f.params,l=f.popup,s=f.popupPosition}else g(d[c],d[c+\"Framework\"])}return{compName:r,jsComp:o,fwComp:a,paramsFromSelector:i,popupFromSelector:l,popupPositionFromSelector:s}},t.prototype.newAgStackInstance=function(e,t,n,r){var o,a=r.propertyName;if(t){var i=this.componentMetadataProvider.retrieve(a);o=this.frameworkComponentWrapper.wrap(e,i.mandatoryMethodList,i.optionalMethodList,r)}else o=new e;var l=this.initComponent(o,n);return null==l?qr.resolve(o):l.then(function(){return o})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,r){void 0===r&&(r=null);var o={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};b(o,n);var a=e&&e[t.propertyName+\"Params\"];return\"function\"==typeof a?b(o,a(n)):\"object\"==typeof a&&b(o,a),b(o,r),o},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var t=null,n=this.getCompKeys(e,Qi),r=n.compName,o=n.jsComp,a=n.fwComp;return r?t=nl.getFloatingFilterType(r):null==o&&null==a&&!0===e.filter&&(t=te.isRegistered(X.SetFilterModule)?\"agSetColumnFloatingFilter\":\"agTextColumnFloatingFilter\"),t},ol([q(\"gridOptions\")],t.prototype,\"gridOptions\",void 0),ol([q(\"agComponentUtils\")],t.prototype,\"agComponentUtils\",void 0),ol([q(\"componentMetadataProvider\")],t.prototype,\"componentMetadataProvider\",void 0),ol([q(\"userComponentRegistry\")],t.prototype,\"userComponentRegistry\",void 0),ol([W(\"frameworkComponentWrapper\")],t.prototype,\"frameworkComponentWrapper\",void 0),ol([V(\"userComponentFactory\")],t)}(ke);!function(e){e[e.SINGLE_SHEET=0]=\"SINGLE_SHEET\",e[e.MULTI_SHEET=1]=\"MULTI_SHEET\"}(di||(di={}));var il,ll,sl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ul=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return sl(t,e),t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener(\"mousedown\",n),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener(\"touchstart\",r,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find(function(t){return t.dragSource===e});t&&(this.removeListener(t),fe(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener(\"mousedown\",r);var o=null,a=this.gridOptionsService.is(\"suppressTouch\");t&&!a&&(o=function(t){zn(t.target)||(t.cancelable&&(t.preventDefault(),t.stopPropagation()),n.onTouchStart(e,t))},e.eElement.addEventListener(\"touchstart\",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:o,touchEnabled:t})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var o=function(t){return n.onTouchUp(t,e.eElement)},a=t.target,i=[{target:this.gridOptionsService.getRootNode(),type:\"touchmove\",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:a,type:\"touchmove\",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:a,type:\"touchend\",listener:o,options:{passive:!0}},{target:a,type:\"touchcancel\",listener:o,options:{passive:!0}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,r=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var o=this.gridOptionsService.getRootNode(),a=[{target:o,type:\"mousemove\",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:o,type:\"mouseup\",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:o,type:\"contextmenu\",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(a),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.addEventListener(n,r,o)}),this.dragEndFunctions.push(function(){e.forEach(function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.removeEventListener(n,r,o)})})},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return kr(e,t,o(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var r={type:Ue.EVENT_DRAG_STARTED,target:n};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){(this.gridOptionsService.is(\"enableCellTextSelection\")||hn())&&\"mousemove\"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t=e.target,n=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==n?void 0:n.match(\"^a$|textarea|input|select|button\"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Ue.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(e){return e()}),this.dragEndFunctions.length=0},ul([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),ul([z],t.prototype,\"removeAllListeners\",null),ul([V(\"dragService\")],t)}(ke);!function(e){e[e.Above=0]=\"Above\",e[e.Below=1]=\"Below\"}(il||(il={})),function(e){e.EVERYTHING=\"group\",e.FILTER=\"filter\",e.SORT=\"sort\",e.MAP=\"map\",e.AGGREGATE=\"aggregate\",e.FILTER_AGGREGATES=\"filter_aggregates\",e.PIVOT=\"pivot\",e.NOTHING=\"nothing\"}(ll||(ll={}));var dl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};function pl(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var fl,gl=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case\"clientSide\":this.clientSideRowModel=this.rowModel;break;case\"infinite\":this.infiniteRowModel=this.rowModel;break;case\"serverSide\":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()})},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.getSetterMethod=function(e){return\"set\"+e.charAt(0).toUpperCase()+e.substring(1)},e.prototype.__setProperty=function(e,t){this.gridOptionsService.set(e,t);var n=this.getSetterMethod(e);this[n]&&this[n](t)},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;f(this.detailGridInfoMap,function(n,r){o(r)&&(e(r,t),t++)})},e.prototype.getDataAsCsv=function(e){if(te.assertRegistered(X.CsvExportModule,\"api.getDataAsCsv\"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){te.assertRegistered(X.CsvExportModule,\"api.exportDataAsCSv\")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsService.get(\"defaultExcelExportParams\");return Object.assign({exportMode:\"xlsx\"},t,e).exportMode},e.prototype.assertNotExcelMultiSheet=function(e,t){if(!te.assertRegistered(X.ExcelExportModule,\"api.\"+e))return!1;var n=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(n)!==di.MULTI_SHEET||(console.warn(\"AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'\"),!1)},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet(\"getDataAsExcel\",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet(\"exportDataAsExcel\",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,\"api.getSheetDataForExcel\")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(di.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,\"api.getMultipleSheetsAsExcel\"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,\"api.exportMultipleSheetsAsExcel\"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),r=\"aria-\"+e;null===t?n.removeAttribute(r):n.setAttribute(r,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];console.error(\"AG Grid: api.\"+e+\" can only be called when gridOptions.rowModelType is \"+t.join(\" or \"))},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):this.logMissingRowModel(\"setServerSideDatasource\",\"serverSide\")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsService.set(\"cacheBlockSize\",e),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel(\"setCacheBlockSize\",\"serverSide\")},e.prototype.setDatasource=function(e){this.gridOptionsService.isRowModelType(\"infinite\")?this.rowModel.setDatasource(e):this.logMissingRowModel(\"setDatasource\",\"infinite\")},e.prototype.setViewportDatasource=function(e){this.gridOptionsService.isRowModelType(\"viewport\")?this.rowModel.setViewportDatasource(e):this.logMissingRowModel(\"setViewportDatasource\",\"viewport\")},e.prototype.setRowData=function(e){null==this.immutableService?this.logMissingRowModel(\"setRowData\",\"clientSide\"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t=\"api\"),this.columnModel.setColumnDefs(e,t),this.gridOptionsService.set(\"columnDefs\",e,!0,{source:t})},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t=\"api\"),this.gridOptionsService.set(\"autoGroupColumnDef\",e,!0,{source:t})},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t=\"api\"),this.gridOptionsService.set(\"defaultColDef\",e,!0,{source:t})},e.prototype.setColumnTypes=function(e,t){void 0===t&&(t=\"api\"),this.gridOptionsService.set(\"columnTypes\",e,!0,{source:t})},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsService.set(\"alwaysShowHorizontalScroll\",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsService.set(\"alwaysShowVerticalScroll\",e)},e.prototype.refreshCells=function(e){void 0===e&&(e={}),this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsService.set(\"functionsReadOnly\",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(e){return e.refresh()})},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t,n){e&&(n&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,n),e.setExpanded(t))},e.prototype.onGroupExpandedOrCollapsed=function(){a(this.clientSideRowModel)?this.logMissingRowModel(\"onGroupExpandedOrCollapsed\",\"clientSide\"):this.clientSideRowModel.refreshModel({step:ll.MAP})},e.prototype.refreshClientSideRowModel=function(e){a(this.clientSideRowModel)?this.logMissingRowModel(\"refreshClientSideRowModel\",\"clientSide\"):this.clientSideRowModel.refreshModel(e)},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel(\"expandAll\",\"clientSide\",\"serverSide\")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel(\"expandAll\",\"clientSide\",\"serverSide\")},e.prototype.addRenderedRowListener=function(e,t,n){this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.getQuickFilter=function(){return this.gridOptionsService.get(\"quickFilterText\")},e.prototype.setQuickFilter=function(e){this.gridOptionsService.set(\"quickFilterText\",e)},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.gridOptionsService.set(\"excludeHiddenColumnsFromQuickFilter\",e)},e.prototype.selectAll=function(e){void 0===e&&(e=\"apiSelectAll\"),this.selectionService.selectAllRowNodes({source:e})},e.prototype.deselectAll=function(e){void 0===e&&(e=\"apiSelectAll\"),this.selectionService.deselectAllRowNodes({source:e})},e.prototype.selectAllFiltered=function(e){void 0===e&&(e=\"apiSelectAllFiltered\"),this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})},e.prototype.deselectAllFiltered=function(e){void 0===e&&(e=\"apiSelectAllFiltered\"),this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})},e.prototype.getServerSideSelectionState=function(){return a(this.serverSideRowModel)?(this.logMissingRowModel(\"getServerSideSelectionState\",\"serverSide\"),null):this.selectionService.getServerSideSelectionState()},e.prototype.setServerSideSelectionState=function(e){a(this.serverSideRowModel)?this.logMissingRowModel(\"setServerSideSelectionState\",\"serverSide\"):this.selectionService.setServerSideSelectionState(e)},e.prototype.selectAllOnCurrentPage=function(e){void 0===e&&(e=\"apiSelectAllCurrentPage\"),this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.deselectAllOnCurrentPage=function(e){void 0===e&&(e=\"apiSelectAllCurrentPage\"),this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){if(!a(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel(\"getBestCostNodeSelection\",\"clientSide\")},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t=\"auto\"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){a(this.clientSideRowModel)?this.logMissingRowModel(\"forEachLeafNode\",\"clientSide\"):this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e,t){this.rowModel.forEachNode(e,t)},e.prototype.forEachNodeAfterFilter=function(e){a(this.clientSideRowModel)?this.logMissingRowModel(\"forEachNodeAfterFilter\",\"clientSide\"):this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){a(this.clientSideRowModel)?this.logMissingRowModel(\"forEachNodeAfterFilterAndSort\",\"clientSide\"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,function(e){if(t){var n=pl(e);t(n)}});return pl(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var r=this.filterManager.getFilterComponent(n,\"NO_UI\"),o=r&&r.resolveNow(null,function(e){return e});return o?setTimeout(t,0,o):r&&r.then(function(e){t(e)}),o}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,\"api\")},e.prototype.getStatusPanel=function(e){if(te.assertRegistered(X.StatusBarModule,\"api.getStatusPanel\"))return pl(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged(\"api\")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:n,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsService.set(\"suppressRowDrag\",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsService.set(\"suppressMoveWhenRowDragging\",e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsService.set(\"suppressRowClickSelection\",e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsService.set(\"headerHeight\",e)},e.prototype.setDomLayout=function(e){this.clientSideRowModel||\"autoHeight\"!==e||this.gridOptionsService.is(\"pagination\")?this.gridOptionsService.set(\"domLayout\",e):console.error(\"AG Grid: domLayout can only be set to 'autoHeight' when using the client side row model or when using pagination.\")},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsService.set(\"fillHandleDirection\",e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsService.set(\"groupHeaderHeight\",e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsService.set(\"floatingFiltersHeight\",e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsService.set(\"pivotHeaderHeight\",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsService.set(\"pivotGroupHeaderHeight\",e)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.setAnimateRows=function(e){this.gridOptionsService.set(\"animateRows\",e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsService.set(\"isExternalFilterPresent\",e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsService.set(\"doesExternalFilterPass\",e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsService.set(\"navigateToNextCell\",e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsService.set(\"tabToNextCell\",e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsService.set(\"tabToNextHeader\",e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsService.set(\"navigateToNextHeader\",e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsService.set(\"rowGroupPanelShow\",e)},e.prototype.setGroupRowAggNodes=function(e){tt(\"27.2\",\"setGroupRowAggNodes\",\"setGetGroupRowAgg\"),this.gridOptionsService.set(\"groupRowAggNodes\",e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsService.set(\"getGroupRowAgg\",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsService.set(\"getBusinessKeyForNode\",e)},e.prototype.setGetChildCount=function(e){this.gridOptionsService.set(\"getChildCount\",e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsService.set(\"processRowPostCreate\",e)},e.prototype.setGetRowNodeId=function(e){tt(\"27.1\",\"setGetRowNodeId\",\"setGetRowId\"),this.gridOptionsService.set(\"getRowNodeId\",e)},e.prototype.setGetRowId=function(e){this.gridOptionsService.set(\"getRowId\",e)},e.prototype.setGetRowClass=function(e){this.gridOptionsService.set(\"getRowClass\",e)},e.prototype.setIsFullWidthCell=function(e){tt(\"27.2\",\"setIsFullWidthCell\",\"setIsFullWidthRow\"),this.gridOptionsService.set(\"isFullWidthCell\",e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsService.set(\"isFullWidthRow\",e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsService.set(\"isRowSelectable\",e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsService.set(\"isRowMaster\",e)},e.prototype.setPostSort=function(e){tt(\"27.2\",\"setPostSort\",\"setPostSortRows\"),this.gridOptionsService.set(\"postSort\",e)},e.prototype.setPostSortRows=function(e){this.gridOptionsService.set(\"postSortRows\",e)},e.prototype.setGetDocument=function(e){this.gridOptionsService.set(\"getDocument\",e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsService.set(\"getContextMenuItems\",e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsService.set(\"getMainMenuItems\",e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsService.set(\"processCellForClipboard\",e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsService.set(\"sendToClipboard\",e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsService.set(\"processCellFromClipboard\",e)},e.prototype.setProcessSecondaryColDef=function(e){tt(\"28.0\",\"setProcessSecondaryColDef\",\"setProcessPivotResultColDef\"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){tt(\"28.0\",\"setProcessSecondaryColGroupDef\",\"setProcessPivotResultColGroupDef\"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsService.set(\"processPivotResultColDef\",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsService.set(\"processPivotResultColGroupDef\",e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsService.set(\"postProcessPopup\",e)},e.prototype.setDefaultGroupOrderComparator=function(e){tt(\"27.2\",\"setDefaultGroupOrderComparator\",\"setInitialGroupOrderComparator\"),this.gridOptionsService.set(\"defaultGroupOrderComparator\",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsService.set(\"initialGroupOrderComparator\",e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsService.set(\"getChartToolbarItems\",e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsService.set(\"paginationNumberFormatter\",e)},e.prototype.setGetServerSideStoreParams=function(e){tt(\"28.0\",\"setGetServerSideStoreParams\",\"setGetServerSideGroupLevelParams\"),this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsService.set(\"getServerSideGroupLevelParams\",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsService.set(\"isServerSideGroupOpenByDefault\",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsService.set(\"isApplyServerSideTransaction\",e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsService.set(\"isServerSideGroup\",e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsService.set(\"getServerSideGroupKey\",e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsService.set(\"getRowStyle\",e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsService.set(\"getRowHeight\",e)},e.prototype.assertSideBarLoaded=function(e){return te.assertRegistered(X.SideBarModule,\"api.\"+e)},e.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded(\"isSideBarVisible\")&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.assertSideBarLoaded(\"setSideBarVisible\")&&this.sideBarComp.setDisplayed(e)},e.prototype.setSideBarPosition=function(e){this.assertSideBarLoaded(\"setSideBarPosition\")&&this.sideBarComp.setSideBarPosition(e)},e.prototype.openToolPanel=function(e){this.assertSideBarLoaded(\"openToolPanel\")&&this.sideBarComp.openToolPanel(e,\"api\")},e.prototype.closeToolPanel=function(){this.assertSideBarLoaded(\"closeToolPanel\")&&this.sideBarComp.close(\"api\")},e.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded(\"getOpenedToolPanel\")?this.sideBarComp.openedItem():null},e.prototype.refreshToolPanel=function(){this.assertSideBarLoaded(\"refreshToolPanel\")&&this.sideBarComp.refresh()},e.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded(\"isToolPanelShowing\")&&this.sideBarComp.isToolPanelShowing()},e.prototype.getToolPanelInstance=function(e){if(this.assertSideBarLoaded(\"getToolPanelInstance\"))return pl(this.sideBarComp.getToolPanelInstance(e))},e.prototype.getSideBar=function(){if(this.assertSideBarLoaded(\"getSideBar\"))return this.sideBarComp.getDef()},e.prototype.setSideBar=function(e){this.gridOptionsService.set(\"sideBar\",e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsService.set(\"suppressClipboardPaste\",e)},e.prototype.resetRowHeights=function(){if(o(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn(\"AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.\");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsService.set(\"groupRemoveSingleChildren\",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsService.set(\"groupRemoveLowestSingleChildren\",e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsService.set(\"groupDisplayType\",e)},e.prototype.setRowClass=function(e){this.gridOptionsService.set(\"rowClass\",e)},e.prototype.setDeltaSort=function(e){this.gridOptionsService.set(\"deltaSort\",e)},e.prototype.setRowCount=function(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error(\"AG Grid: setRowCount cannot be used while using row grouping.\");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel(\"setRowCount\",\"infinite\",\"serverSide\")},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return a(n)&&(n=this.columnModel.getGridColumn(e)),a(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(C.bind(window,this,\"Grid API\"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn(\"AG Grid: Grid API method \"+e+\" was called on a grid that was destroyed.\"),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed(\"resetQuickFilter\")||this.filterManager.resetQuickFilterCache()},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(te.assertRegistered(X.RangeSelectionModule,\"api.getCellRanges\"),null)},e.prototype.addCellRange=function(e){this.rangeService?this.rangeService.addCellRange(e):te.assertRegistered(X.RangeSelectionModule,\"api.addCellRange\")},e.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),te.assertRegistered(X.RangeSelectionModule,\"gridApi.clearRangeSelection\")},e.prototype.undoCellEditing=function(){this.undoRedoService.undo(\"api\")},e.prototype.redoCellEditing=function(){this.undoRedoService.redo(\"api\")},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(te.assertRegistered(X.GridChartsModule,\"api.getChartModels\"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.getChartRef\"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.getChartImageDataURL\"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.downloadChart\"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.openChartToolPanel\"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.closeChartToolPanel\"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.createRangeChart\"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.createCrossFilterChart\"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(te.assertRegistered(X.GridChartsModule,\"api.restoreChart\"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(te.assertRegistered(X.GridChartsModule,\"api.createPivotChart\"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){te.assertRegistered(X.ClipboardModule,\"api.copyToClipboard\")&&this.clipboardService.copyToClipboard(e)},e.prototype.cutToClipboard=function(e){te.assertRegistered(X.ClipboardModule,\"api.cutToClipboard\")&&this.clipboardService.cutToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){te.assertRegistered(X.ClipboardModule,\"api.copySelectedRowsToClipboard\")&&this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){te.assertRegistered(X.ClipboardModule,\"api.copySelectedRangeToClipboard\")&&this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){te.assertRegistered(X.ClipboardModule,\"api.copySelectedRangeDown\")&&this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,\"columnMenu\")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error(\"AG Grid: column '\"+e+\"' not found\")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsService.set(\"popupParent\",e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(pl)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(pl)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var r=this.navigationService.getCellByPosition(n);r&&r.startRowOrCellEdit(e.key,e.charPress)}else console.warn(\"AG Grid: no column found for \"+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);this.logMissingRowModel(\"applyServerSideTransaction\",\"serverSide\")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel(\"applyServerSideTransactionAsync\",\"serverSide\")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel(\"retryServerSideLoads\",\"serverSide\")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel(\"flushServerSideAsyncTransactions\",\"serverSide\")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.gridOptionsService.is(\"suppressChangeDetection\")||this.rowRenderer.refreshCells(),t}this.logMissingRowModel(\"applyTransaction\",\"clientSide\")},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):this.logMissingRowModel(\"applyTransactionAsync\",\"clientSide\")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel(\"flushAsyncTransactions\",\"clientSide\")},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.gridOptionsService.set(\"suppressModelUpdateAfterUpdateTransaction\",e)},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel(\"refreshInfiniteCache\",\"infinite\")},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel(\"purgeInfiniteCache\",\"infinite\")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel(\"refreshServerSide\",\"serverSide\")},e.prototype.refreshServerSideStore=function(e){return tt(\"28.0\",\"refreshServerSideStore\",\"refreshServerSide\"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){return tt(\"28.0\",\"getServerSideStoreState\",\"getServerSideGroupLevelState\"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel(\"getServerSideGroupLevelState\",\"serverSide\"),[])},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel(\"getInfiniteRowCount\",\"infinite\")},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel(\"isLastRowIndexKnown\",\"infinite\")},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.setPagination=function(e){this.clientSideRowModel||\"autoHeight\"!==this.gridOptionsService.get(\"domLayout\")||e?this.gridOptionsService.set(\"pagination\",e):console.error(\"AG Grid: Pagination cannot be disabled when using domLayout set to 'autoHeight' unless using the client-side row model.\")},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsService.set(\"paginationPageSize\",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},dl([W(\"immutableService\")],e.prototype,\"immutableService\",void 0),dl([W(\"csvCreator\")],e.prototype,\"csvCreator\",void 0),dl([W(\"excelCreator\")],e.prototype,\"excelCreator\",void 0),dl([q(\"rowRenderer\")],e.prototype,\"rowRenderer\",void 0),dl([q(\"navigationService\")],e.prototype,\"navigationService\",void 0),dl([q(\"filterManager\")],e.prototype,\"filterManager\",void 0),dl([q(\"columnModel\")],e.prototype,\"columnModel\",void 0),dl([q(\"selectionService\")],e.prototype,\"selectionService\",void 0),dl([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),dl([q(\"valueService\")],e.prototype,\"valueService\",void 0),dl([q(\"alignedGridsService\")],e.prototype,\"alignedGridsService\",void 0),dl([q(\"eventService\")],e.prototype,\"eventService\",void 0),dl([q(\"pinnedRowModel\")],e.prototype,\"pinnedRowModel\",void 0),dl([q(\"context\")],e.prototype,\"context\",void 0),dl([q(\"rowModel\")],e.prototype,\"rowModel\",void 0),dl([q(\"sortController\")],e.prototype,\"sortController\",void 0),dl([q(\"paginationProxy\")],e.prototype,\"paginationProxy\",void 0),dl([q(\"focusService\")],e.prototype,\"focusService\",void 0),dl([q(\"dragAndDropService\")],e.prototype,\"dragAndDropService\",void 0),dl([W(\"rangeService\")],e.prototype,\"rangeService\",void 0),dl([W(\"clipboardService\")],e.prototype,\"clipboardService\",void 0),dl([W(\"aggFuncService\")],e.prototype,\"aggFuncService\",void 0),dl([q(\"menuFactory\")],e.prototype,\"menuFactory\",void 0),dl([W(\"contextMenuFactory\")],e.prototype,\"contextMenuFactory\",void 0),dl([q(\"valueCache\")],e.prototype,\"valueCache\",void 0),dl([q(\"animationFrameService\")],e.prototype,\"animationFrameService\",void 0),dl([W(\"statusBarService\")],e.prototype,\"statusBarService\",void 0),dl([W(\"chartService\")],e.prototype,\"chartService\",void 0),dl([W(\"undoRedoService\")],e.prototype,\"undoRedoService\",void 0),dl([W(\"rowNodeBlockLoader\")],e.prototype,\"rowNodeBlockLoader\",void 0),dl([W(\"ssrmTransactionManager\")],e.prototype,\"serverSideTransactionManager\",void 0),dl([q(\"ctrlsService\")],e.prototype,\"ctrlsService\",void 0),dl([G],e.prototype,\"init\",null),dl([z],e.prototype,\"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\",null),dl([V(\"gridApi\")],e)}(),hl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ml=function(){return ml=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ml.apply(this,arguments)},vl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Al=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var n;return hl(t,e),n=t,t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){e.refreshFiltersForAggregations(),e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VISIBLE,function(){e.gridOptionsService.is(\"excludeHiddenColumnsFromQuickFilter\")&&e.resetQuickFilterCache()}),this.addManagedPropertyListener(\"quickFilterText\",function(t){return e.setQuickFilter(t.currentValue)}),this.addManagedPropertyListener(\"excludeHiddenColumnsFromQuickFilter\",function(){return e.onExcludeHiddenColumnsFromQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get(\"quickFilterText\")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is(\"allowShowChangeAfterFilter\"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback(\"isExternalFilterPresent\");return\"function\"==typeof e&&e({})},t.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get(\"doesExternalFilterPass\");return\"function\"==typeof t&&t(e)},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(\" \"):null},t.prototype.setFilterModel=function(e){var t=this,n=[],r=this.getFilterModel();if(e){var o=jr(Object.keys(e));this.allColumnFilters.forEach(function(r,a){var i=e[a];n.push(t.setModelOnFilterWrapper(r.filterPromise,i)),o.delete(a)}),o.forEach(function(r){var o=t.columnModel.getPrimaryColumn(r)||t.columnModel.getGridColumn(r);if(o)if(o.isFilterAllowed()){var a=t.getOrCreateFilterWrapper(o,\"NO_UI\");a?n.push(t.setModelOnFilterWrapper(a.filterPromise,e[r])):console.warn(\"AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: \"+r)}else console.warn(\"AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: \"+r);else console.warn(\"AG Grid: setFilterModel() - no column found for colId: \"+r)})}else this.allColumnFilters.forEach(function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))});qr.all(n).then(function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach(function(t,o){var a=r?r[o]:null,i=e?e[o]:null;Gr.jsonEquals(a,i)||n.push(t.column)}),n.length>0&&t.onFilterChanged({columns:n})})},t.prototype.setModelOnFilterWrapper=function(e,t){return new qr(function(n){e.then(function(e){\"function\"!=typeof e.setModel&&(console.warn(\"AG Grid: filter missing setModel method, which is needed for setFilterModel\"),n()),(e.setModel(t)||qr.resolve()).then(function(){return n()})})})},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach(function(t,n){var r=t.filterPromise.resolveNow(null,function(e){return e});if(null==r)return null;if(\"function\"==typeof r.getModel){var a=r.getModel();o(a)&&(e[n]=a)}else console.warn(\"AG Grid: filter API missing getModel method, which is needed for getFilterModel\")}),e},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn(\"AG Grid: Filter is missing isFilterActive() method\"),!1))},n=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach(function(r){if(r.filterPromise.resolveNow(!1,t)){var o=r.filterPromise.resolveNow(null,function(e){return e});!function(t){if(!t.isPrimary())return!0;var r=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!r)&&(!!e.columnModel.isPivotMode()||n)}(r.column)?e.activeColumnFilters.push(o):e.activeAggregateFilters.push(o)}})},t.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach(function(n){var r=n.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()});n.column.setFilterActive(r,e,t)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,t,n){for(var r=e.data,o=e.aggData,a=n?this.activeAggregateFilters:this.activeColumnFilters,i=n?o:r,l=0;l<a.length;l++){var s=a[l];if(null!=s&&s!==t){if(\"function\"!=typeof s.doesFilterPass)throw new Error(\"Filter is missing method doesFilterPass\");if(!s.doesFilterPass({node:e,data:i}))return!1}}return!0},t.prototype.parseQuickFilter=function(e){return o(e)?this.gridOptionsService.isRowModelType(\"clientSide\")?e.toUpperCase():(console.warn(\"AG Grid - Quick filtering only works with the Client-Side Row Model\"),null):null},t.prototype.setQuickFilter=function(e){if(null==e||\"string\"==typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn(\"AG Grid - setQuickFilter() only supports string inputs, received: \"+typeof e)},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(e){return e.quickFilterAggregateText=null})},t.prototype.onExcludeHiddenColumnsFromQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.onFilterChanged()},t.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},t.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},t.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,r=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns(\"filterChanged\",n),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(e){e.filterPromise&&e.filterPromise.then(function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()})});var o={type:Ue.EVENT_FILTER_CHANGED,columns:r||[]};n&&b(o,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(o),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},t.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some(function(r){var a=n.getQuickFilterTextForColumn(r,e);return o(a)&&a.indexOf(t)>=0})},t.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},t.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsService.is(\"cacheQuickFilter\");return this.quickFilterParts.every(function(r){return n?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)})},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),r=e.getColDef();if(r.getQuickFilterText){var a={value:n,node:t,data:t.data,column:e,colDef:r,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};n=r.getQuickFilterText(a)}return o(n)?n.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(e){var t=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(n){var a=t.getQuickFilterTextForColumn(n,e);o(a)&&r.push(a)}),e.quickFilterAggregateText=r.join(n.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(e){e.filterPromise.then(function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var t=this;return function(n){var r=n.node;return t.valueService.getValue(e,r,!0)}},t.prototype.getFilterComponent=function(e,t,n){var r;if(void 0===n&&(n=!0),n)return(null===(r=this.getOrCreateFilterWrapper(e,t))||void 0===r?void 0:r.filterPromise)||null;var o=this.cachedFilter(e);return o?o.filterPromise:null},t.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()})},t.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?\"NO_UI\"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.createFilterInstance=function(e){var t,n=this,r=te.isRegistered(X.SetFilterModule)?\"agSetColumnFilter\":\"agTextColumnFilter\",o=e.getColDef(),a=ml(ml({},this.createFilterParams(e,o)),{filterModifiedCallback:function(){var r={type:Ue.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};n.eventService.dispatchEvent(r)},filterChangedCallback:function(r){var o={filterInstance:t,additionalEventAttributes:r,columns:[e]};n.callOnFilterChangedOutsideRenderCycle(o)},doesRowPassOtherFilter:function(e){return n.doesRowPassOtherFilters(t,e)}}),i=this.userComponentFactory.getFilterDetails(o,a,r);if(!i)return null;var l=i.newAgStackInstance();return l&&l.then(function(e){return t=e}),l},t.prototype.createFilterParams=function(e,t){return{column:e,colDef:g(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:qr.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},t.prototype.putIntoGui=function(e,t){var n=this,r=document.createElement(\"div\");r.className=\"ag-filter\",e.guiPromise=new qr(function(a){e.filterPromise.then(function(i){var l=i.getGui();o(l)||console.warn(\"AG Grid: getGui method from filter returned \"+l+\", it should be a DOM element or an HTML template string.\"),\"string\"==typeof l&&(l=ir(l)),r.appendChild(l),a(r);var s={type:Ue.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:r};n.eventService.dispatchEvent(s)})})},t.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach(function(n,r){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(r):e.columnModel.getGridColumn(r))||(t.push(n.column),e.disposeFilterWrapper(n,\"columnChanged\"))}),t.length>0?this.onFilterChanged({columns:t}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null==t||t.forEach(function(t){\"agGroupColumnFilter\"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,\"NO_UI\")})},t.prototype.isFilterAllowed=function(e){var t,n;if(!e.isFilterAllowed())return!1;var r=this.allColumnFilters.get(e.getColId());return null===(n=null===(t=null==r?void 0:r.filterPromise)||void 0===t?void 0:t.resolveNow(!0,function(e){var t,n;return\"function\"!=typeof(null===(t=e)||void 0===t?void 0:t.isFilterAllowed)||(null===(n=e)||void 0===n?void 0:n.isFilterAllowed())}))||void 0===n||n},t.prototype.getFloatingFilterCompDetails=function(e,t){var n=this,r=e.getColDef(),o=this.createFilterParams(e,r),a=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(r,Qi,o),i=this.userComponentFactory.getDefaultFloatingFilterType(r);null==i&&(i=\"agReadOnlyFloatingFilter\");var l={column:e,filterParams:a,currentParentModel:function(){return n.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var r=n.getFilterComponent(e,\"NO_UI\");null!=r&&r.then(function(e){t(pl(e))})},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(r,l,i)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,\"NO_UI\",!1);return t?t.resolveNow(null,function(e){return e&&e.getModel()}):null},t.prototype.destroyFilter=function(e,t){void 0===t&&(t=\"api\");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},t.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then(function(r){(r.setModel(null)||qr.resolve()).then(function(){n.getContext().destroyBean(r),e.column.setFilterActive(!1,\"filterDestroyed\"),n.allColumnFilters.delete(e.column.getColId());var o={type:Ue.EVENT_FILTER_DESTROYED,source:t,column:e.column};n.eventService.dispatchEvent(o)})})},t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach(function(e){return t.disposeFilterWrapper(e,\"gridDestroyed\")})},t.QUICK_FILTER_SEPARATOR=\"\\n\",vl([q(\"valueService\")],t.prototype,\"valueService\",void 0),vl([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),vl([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),vl([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),vl([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),vl([G],t.prototype,\"init\",null),n=vl([V(\"filterManager\")],t)}(ke),yl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),El=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ctrl=n,r}return yl(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(no),bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_l=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cl=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return bl(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},setButtonWrapperDisplayed:function(t){return Vn(e.eButtonWrapper,t)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(e){return t.afterCompCreated(e)})},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc(function(){return t.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class=\"ag-header-cell ag-floating-filter\" role=\"gridcell\" tabindex=\"-1\">\\n            <div ref=\"eFloatingFilterBody\" role=\"presentation\"></div>\\n            <div class=\"ag-floating-filter-button ag-hidden\" ref=\"eButtonWrapper\" role=\"presentation\">\\n                <button type=\"button\" aria-label=\"Open Filter Menu\" class=\"ag-floating-filter-button-button\" ref=\"eButtonShowMainFilter\" tabindex=\"-1\"></button>\\n            </div>\\n        </div>',_l([oo(\"eFloatingFilterBody\")],t.prototype,\"eFloatingFilterBody\",void 0),_l([oo(\"eButtonWrapper\")],t.prototype,\"eButtonWrapper\",void 0),_l([oo(\"eButtonShowMainFilter\")],t.prototype,\"eButtonShowMainFilter\",void 0),_l([G],t.prototype,\"postConstruct\",null),t}(El),wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.AUTO_HEIGHT=\"ag-layout-auto-height\",e.NORMAL=\"ag-layout-normal\",e.PRINT=\"ag-layout-print\"}(fl||(fl={}));var Sl,Tl=function(e){function t(t){var n=e.call(this)||this;return n.view=t,n}return wl(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener(\"domLayout\",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:\"autoHeight\"===e,normal:\"normal\"===e,print:\"print\"===e},n=t.autoHeight?fl.AUTO_HEIGHT:t.print?fl.PRINT:fl.NORMAL;this.view.updateLayoutClasses(n,t)},t.prototype.getDomLayout=function(){var e,t=null!==(e=this.gridOptionsService.get(\"domLayout\"))&&void 0!==e?e:\"normal\";return-1===[\"normal\",\"print\",\"autoHeight\"].indexOf(t)?(O(function(){return console.warn(\"AG Grid: \"+t+\" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.\")},\"warn about dom layout values\"),\"normal\"):t},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(ke),Ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dl=function(){return Dl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dl.apply(this,arguments)},Rl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Nl=function(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHScrollDebounced=I(function(){return n.eLastHScroll=null},500),n.resetLastVScrollDebounced=I(function(){return n.eLastVScroll=null},500),n}return Ol(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is(\"enableRtl\"),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),\"scroll\",this.onHScroll.bind(this)),this.addManagedListener(e.getViewport(),\"scroll\",this.onFakeHScroll.bind(this));var n=this.gridOptionsService.is(\"debounceVerticalScrollbar\"),r=n?I(this.onVScroll.bind(this),100):this.onVScroll.bind(this),o=n?I(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,\"scroll\",r),this.addManagedListener(t.getViewport(),\"scroll\",o)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),a=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),r.setContainerTranslateX(t);var i=this.centerRowContainerCtrl.getViewportElement();nr(this.eLastHScroll===i?a.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingHScroll=function(e){return this.eLastHScroll?e===this.eLastHScroll:(this.eLastHScroll=e,!0)},t.prototype.isControllingVScroll=function(e){return this.eLastVScroll?e===this.eLastVScroll:(this.eLastVScroll=e,!0)},t.prototype.onFakeHScroll=function(){var e=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate(\"horizontal\",t,!0)||(this.doHorizontalScroll(Math.round(tr(e,this.enableRtl))),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){var e=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(e)&&this.onVScrollCommon(e)},t.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},t.prototype.onVScrollCommon=function(e){var t=e.scrollTop;this.shouldBlockScrollUpdate(\"vertical\",t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===this.eBodyViewport?this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=t:this.eBodyViewport.scrollTop=t,this.gridOptionsService.is(\"suppressAnimationFrame\")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var t=tr(this.ctrlsService.getFakeHScrollComp().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(\"horizontal\"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:Ue.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var e=Dl(Dl({},n),{type:Ue.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)},100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){return void 0===n&&(n=!1),!(n&&!En())&&(\"vertical\"===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=$n(this.eBodyViewport),n=this.eBodyViewport.scrollHeight;return e<0||e+t>n},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),n=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&er()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(\"vertical\")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate(\"horizontal\",e)&&(e=this.enableRtl&&er()?e>0?0:t:Math.min(Math.max(e,0),t)),nr(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),r=-1,o=0;o<n;o++){var a=this.rowModel.getRow(o);if(\"function\"==typeof e){if(a&&e(a)){r=o;break}}else if(e===a||e===a.data){r=o;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout(\"print\")){var n=this.paginationProxy.getRowCount();if(\"number\"!=typeof e||e<0||e>=n)console.warn(\"AG Grid: Invalid row index for ensureIndexVisible: \"+e);else{this.gridOptionsService.is(\"pagination\")&&!this.gridOptionsService.is(\"suppressPaginationPanel\")||this.paginationProxy.goToPageWithIndex(e);var r,o=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),a=this.paginationProxy.getRow(e);do{var i=a.rowTop,l=a.rowHeight,s=this.paginationProxy.getPixelOffset(),u=a.rowTop-s,c=u+a.rowHeight,d=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),f=d.top+p,g=d.bottom+p,h=g-f,m=this.heightScaler.getScrollPositionForPixel(u),v=this.heightScaler.getScrollPositionForPixel(c-h),A=Math.min((m+v)/2,u),y=null;\"top\"===t?y=m:\"bottom\"===t?y=v:\"middle\"===t?y=A:f+o>u?y=m-o:g<c&&(y=v),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),r=i!==a.rowTop||l!==a.rowHeight}while(r);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t=\"auto\");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var r=this.getPositionedHorizontalScroll(n,t);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),r=n.columnBeforeStart,o=n.columnAfterEnd,a=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),i=this.centerRowContainerCtrl.getCenterWidth(),l=this.enableRtl,s=(l?r:o)||a,u=l?o:r;\"auto\"!==t&&(s=\"start\"===t,u=\"end\"===t);var c=\"middle\"===t;if(s||u||c){var d=this.getColumnBounds(e),p=d.colLeft,f=d.colMiddle,g=d.colRight;return c?f-i/2:s?l?g:p:l?p-i:g-i}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,r=t.end,o=this.getColumnBounds(e),a=o.colLeft,i=o.colRight,l=this.enableRtl;return{columnBeforeStart:l?n>i:r<i,columnAfterEnd:l?r<a:n>a}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),o=e.getLeft(),a=t?-1:1,i=t?n-o:o;return{colLeft:i,colMiddle:i+r/2*a,colRight:i+r*a}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},Rl([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Rl([q(\"animationFrameService\")],t.prototype,\"animationFrameService\",void 0),Rl([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),Rl([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Rl([q(\"rowContainerHeightService\")],t.prototype,\"heightScaler\",void 0),Rl([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),Rl([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Rl([G],t.prototype,\"postConstruct\",null),t}(ke),Ll=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf(\"x\"),this.scrollVertically=-1!==e.scrollAxis.indexOf(\"y\"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=e.clientX<r.left+o,this.tickRight=e.clientX>r.right-o,this.tickUp=e.clientY<r.top+o&&!n,this.tickDown=e.clientY>r.bottom-o&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Pl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ml=function(){return Ml=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ml.apply(this,arguments)},xl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Il=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},kl=function(e){function t(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Pl(t,e),t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType(\"clientSide\")&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_MODEL_UPDATED,function(){t()}),t(),this.ctrlsService.whenReady(function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Ll({scrollContainer:t.getBodyViewportElement(),scrollAxis:\"y\",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!i(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===ma.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsService.is(\"rowDragManaged\")&&this.shouldPreventRowMove()?pi.ICON_NOT_ALLOWED:pi.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsService.is(\"rowDragMultiRow\"),r=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Il(arguments[t]));return e}(this.selectionService.getSelectedNodes()).sort(function(e,n){return null==e.rowIndex||null==n.rowIndex?0:t.getRowIndexNumber(e)-t.getRowIndexNumber(n)}),o=e.dragItem.rowNode;return n&&-1!==r.indexOf(o)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[o])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(Ue.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(e){e.setDragging(!0)}),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Ue.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsService.is(\"rowDragManaged\")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),r=this.gridOptionsService.is(\"rowDragManaged\"),o=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsService.is(\"suppressMoveWhenRowDragging\")||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(ce(e.getRowIndexString().split(\"-\")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),r=n&&n.highlighted===il.Below,o=this.mouseEventService.getNormalisedPosition(e).y,a=e.dragItem.rowNodes,i=r?1:0;if(this.isFromThisGrid(e))a.forEach(function(e){e.rowTop<o&&(i-=1)}),this.moveRows(a,o,i);else{var l=this.gridOptionsService.getRowIdFunc(),s=this.clientSideRowModel.getRowIndexAtPixel(o)+1;this.clientSideRowModel.getHighlightPosition(o)===il.Above&&s--,this.clientSideRowModel.updateRowData({add:a.map(function(e){return e.data}).filter(function(e){return!t.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)}),addIndex:s})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var t=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn(\"AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.\");else{var n={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,n=e):(e.onDragEnter&&(n.onDragEnter=function(n){e.onDragEnter(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_ENTER,n))}),e.onDragLeave&&(n.onDragLeave=function(n){e.onDragLeave(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_LEAVE,n))}),e.onDragging&&(n.onDragging=function(n){e.onDragging(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_MOVE,n))}),e.onDragStop&&(n.onDragStop=function(n){e.onDragStop(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(Ml({isInterestedIn:function(e){return e===ma.RowDrag},getIconName:function(){return pi.ICON_MOVE},external:!0},n))}else O(function(){return console.warn(\"AG Grid: addRowDropZone - A container target needs to be provided\")},\"add-drop-zone-empty-target\")},t.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),r=this.onDragEnter.bind(this),o=this.onDragLeave.bind(this),a=this.onDragging.bind(this),i=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){r(n),e.onDragEnter(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_ENTER,n))}:r,onDragLeave:e.onDragLeave?function(n){o(n),e.onDragLeave(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_LEAVE,n))}:o,onDragging:e.onDragging?function(n){a(n),e.onDragging(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_MOVE,n))}:a,onDragStop:e.onDragStop?function(n){i(n),e.onDragStop(t.draggingToRowDragEvent(Ue.EVENT_ROW_DRAG_END,n))}:i,fromGrid:!0}:{getContainer:n,onDragEnter:r,onDragLeave:o,onDragging:a,onDragStop:i,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,t){var n,r,o=this.mouseEventService.getNormalisedPosition(t).y,a=-1;switch(o>this.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(o),n=this.rowModel.getRow(a)),t.vDirection){case va.Down:r=\"down\";break;case va.Up:r=\"up\";break;default:r=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:a,overNode:n,y:o,vDirection:r}},t.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ue.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is(\"rowDragManaged\")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(Ue.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.is(\"rowDragManaged\")||!this.gridOptionsService.is(\"suppressMoveWhenRowDragging\")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(e){e.setDragging(!1)})},xl([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),xl([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),xl([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),xl([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),xl([q(\"focusService\")],t.prototype,\"focusService\",void 0),xl([q(\"sortController\")],t.prototype,\"sortController\",void 0),xl([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),xl([q(\"selectionService\")],t.prototype,\"selectionService\",void 0),xl([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),xl([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),xl([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),xl([G],t.prototype,\"postConstruct\",null),t}(ke),Bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e.ANIMATION_ON=\"ag-row-animation\",e.ANIMATION_OFF=\"ag-row-no-animation\"}(Sl||(Sl={}));var jl,Hl,Ul=\"ag-selectable\",Yl=\"ag-force-vertical-scroll\",Gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return Bl(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,n,r,o,a){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=o,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsService.is(\"enableCellTextSelection\")),this.createManagedBean(new Tl(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Nl(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,o,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ue.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var t=this;e.forEach(function(e){t.addManagedListener(e,\"focusin\",function(t){var n=Qn(t.target,\"ag-root\",e);e.classList.toggle(\"ag-has-focus\",!n)}),t.addManagedListener(e,\"focusout\",function(t){var n=t.target,r=t.relatedTarget,o=e.contains(r),a=Qn(r,\"ag-root\",e);Qn(n,\"ag-root\",e)||o&&!a||e.classList.remove(\"ag-has-focus\")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(\"ag-column-moving\",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Ul:null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var t=\"calc(100% + \"+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(Dn()?16:0))+\"px)\";this.comp.setBodyViewportWidth(t)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,\"dragstart\",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.is(\"stopEditingWhenCellsLoseFocus\")){var t=function(t){var r=t.relatedTarget;if(null!==_n(r)){var o=n.some(function(e){return e.contains(r)})&&e.mouseEventService.isElementInThisGrid(r);if(!o){var a=e.popupService;o=a.getActivePopups().some(function(e){return e.contains(r)})||a.isElementWithinCustomPopup(r)}o||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach(function(n){return e.addManagedListener(n,\"focusout\",t)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,n=-1===t?-1:e+t;this.comp.setRowCount(n)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?\"scroll\":\"hidden\";this.comp.setPinnedTopBottomOverflowY(t)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is(\"alwaysShowVerticalScroll\"),t=e?Yl:null,n=this.gridOptionsService.isDomLayout(\"normal\");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&gr(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),n=t?Sl.ANIMATION_ON:Sl.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(n,t)};t(),this.addManagedListener(this.eventService,Ue.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener(\"animateRows\",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,\"contextmenu\",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,\"wheel\",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,\"wheel\",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(\".ag-full-width-container\"),n=this.eBodyViewport.querySelector(\".ag-center-cols-viewport\");t&&n&&this.addManagedListener(t,\"wheel\",function(t){return e.onFullWidthContainerWheel(t,n)})},t.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,t,n){if(e||n){this.gridOptionsService.is(\"preventDefaultOnContextMenu\")&&(e||n).preventDefault();var r=(e||t).target;if(r===this.eBodyViewport||r===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):n&&this.contextMenuFactory.onContextMenu(null,n,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(En()){var t=new Ma(this.eBodyViewport);this.addManagedListener(t,Ma.EVENT_LONG_TAP,function(t){e(void 0,t.touchStart,t.touchEvent)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is(\"suppressScrollWhenPopupsAreOpen\")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new kl(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?\"inherit\":\"none\"),this.comp.setBottomDisplay(n?\"inherit\":\"none\"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+\"px\"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth(\"calc(100% - \"+t+\"px)\")}else this.comp.setStickyTopWidth(\"100%\")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;e>0&&(n+=e+1),t>0&&(n+=t+1),this.comp.setStickyTopTop(n+\"px\")},t.prototype.sizeColumnsToFit=function(e,t){var n=this,r=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,o=Xn(this.eGridBody)-r;o>0?this.columnModel.sizeColumnsToFit(o,\"sizeColumnsToFit\",!1,e):void 0===t?window.setTimeout(function(){n.sizeColumnsToFit(e,100)},0):100===t?window.setTimeout(function(){n.sizeColumnsToFit(e,500)},100):500===t?window.setTimeout(function(){n.sizeColumnsToFit(e,-1)},500):console.warn(\"AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?\")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener(\"scroll\",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener(\"scroll\",e)},Fl([q(\"rowContainerHeightService\")],t.prototype,\"rowContainerHeightService\",void 0),Fl([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Fl([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Fl([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),Fl([W(\"contextMenuFactory\")],t.prototype,\"contextMenuFactory\",void 0),Fl([q(\"headerNavigationService\")],t.prototype,\"headerNavigationService\",void 0),Fl([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),Fl([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),Fl([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),Fl([q(\"popupService\")],t.prototype,\"popupService\",void 0),Fl([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),Fl([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),t}(ke);!function(e){e[e.FILL=0]=\"FILL\",e[e.RANGE=1]=\"RANGE\"}(jl||(jl={})),function(e){e[e.VALUE=0]=\"VALUE\",e[e.DIMENSION=1]=\"DIMENSION\"}(Hl||(Hl={}));var zl,Vl=\"ag-cell-range-selected\",ql=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Vl,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(Vl+\"-1\",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(Vl+\"-2\",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(Vl+\"-3\",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(Vl+\"-4\",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-chart\",this.hasChartRange),rn(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-single-cell\",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,o=!t&&e.bottom,a=!t&&e.left;this.cellComp.addOrRemoveCssClass(\"ag-cell-range-top\",n),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-right\",r),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-bottom\",o),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-left\",a)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var t=e.getCellRanges();return t.length>0&&t.every(function(e){return ve([Hl.DIMENSION,Hl.VALUE],e.type)})},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,r=this.beans.gridOptionsService.is(\"enableRtl\"),o=!1,a=!1,i=!1,l=!1,s=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,d=u.columnModel;r?(e=d.getDisplayedColAfter(s),t=d.getDisplayedColBefore(s)):(e=d.getDisplayedColBefore(s),t=d.getDisplayedColAfter(s));var p=c.getCellRanges().filter(function(e){return c.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)});e||(l=!0),t||(a=!0);for(var f=0;f<p.length&&!(o&&a&&i&&l);f++){var g=p[f],h=c.getRangeStartRow(g),m=c.getRangeEndRow(g);!o&&this.beans.rowPositionUtils.sameRow(h,this.cellCtrl.getCellPosition())&&(o=!0),!i&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(i=!0),!l&&e&&g.columns.indexOf(e)<0&&(l=!0),!a&&t&&g.columns.indexOf(t)<0&&(a=!0)}return{top:o,right:a,bottom:i,left:l}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(\"ag-cell-range-handle\",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,n=e.rangeService,r=n.getCellRanges(),o=r.length;if(this.rangeCount<1||o<1)return!1;var a=ce(r),i=this.cellCtrl.getCellPosition(),l=t.is(\"enableFillHandle\")&&!this.cellCtrl.isSuppressFillHandle(),s=t.is(\"enableRangeHandle\"),u=1===o&&!this.cellCtrl.isEditing()&&(l||s);if(this.hasChartRange){var c=r[0].type===Hl.DIMENSION&&n.isCellInSpecificRange(i,r[0]);this.cellComp.addOrRemoveCssClass(\"ag-cell-range-chart-category\",c),u=a.type===Hl.VALUE}return u&&null!=a.endRow&&n.isContiguousRange(a)&&n.isBottomRightCell(a,i)},e.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,n=ce(e.rangeService.getCellRanges()).type,r=t.is(\"enableFillHandle\")&&a(n)?jl.FILL:jl.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ql=function(e){function t(t,n){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return Wl(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();de(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+\"px\"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,t){return e+t.getActualWidth()},0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,r=this.column.getPinned(),o=0;n&&o<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!a(n))&&r===n.getPinned();o++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+\"px\"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is(\"enableRtl\")&&this.colsSpanning?ce(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||\"left\"===this.column.getPinned())return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return\"right\"===this.column.getPinned()?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+\"px\",this.eGui.style.zIndex=\"1\"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ke),Kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$l=function(e){function t(t,n){var r=e.call(this)||this;return r.staticClasses=[],r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r}return Kl(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.beans.stylingService.processClassRules(t.cellClassRules,n,function(t){return e.cellComp.addOrRemoveCssClass(t,!0)},function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if(\"function\"==typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};t=(0,e.cellStyle)(n)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)})},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ke),Xl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jl=function(e){function t(t,n){var r=e.call(this)||this;return r.ctrl=t,r.beans=n,r}return Xl(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is(\"enableBrowserTooltips\"),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Xr(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ke),Zl=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},es=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType(\"clientSide\")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType(\"serverSide\")&&(this.serverSideRowModel=this.rowModel)},Zl([q(\"resizeObserverService\")],e.prototype,\"resizeObserverService\",void 0),Zl([q(\"paginationProxy\")],e.prototype,\"paginationProxy\",void 0),Zl([q(\"context\")],e.prototype,\"context\",void 0),Zl([q(\"columnApi\")],e.prototype,\"columnApi\",void 0),Zl([q(\"gridApi\")],e.prototype,\"gridApi\",void 0),Zl([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),Zl([q(\"expressionService\")],e.prototype,\"expressionService\",void 0),Zl([q(\"environment\")],e.prototype,\"environment\",void 0),Zl([q(\"rowRenderer\")],e.prototype,\"rowRenderer\",void 0),Zl([q(\"templateService\")],e.prototype,\"templateService\",void 0),Zl([q(\"valueService\")],e.prototype,\"valueService\",void 0),Zl([q(\"eventService\")],e.prototype,\"eventService\",void 0),Zl([q(\"columnModel\")],e.prototype,\"columnModel\",void 0),Zl([q(\"headerNavigationService\")],e.prototype,\"headerNavigationService\",void 0),Zl([q(\"navigationService\")],e.prototype,\"navigationService\",void 0),Zl([q(\"columnAnimationService\")],e.prototype,\"columnAnimationService\",void 0),Zl([W(\"rangeService\")],e.prototype,\"rangeService\",void 0),Zl([q(\"focusService\")],e.prototype,\"focusService\",void 0),Zl([W(\"contextMenuFactory\")],e.prototype,\"contextMenuFactory\",void 0),Zl([q(\"popupService\")],e.prototype,\"popupService\",void 0),Zl([q(\"valueFormatterService\")],e.prototype,\"valueFormatterService\",void 0),Zl([q(\"stylingService\")],e.prototype,\"stylingService\",void 0),Zl([q(\"columnHoverService\")],e.prototype,\"columnHoverService\",void 0),Zl([q(\"userComponentFactory\")],e.prototype,\"userComponentFactory\",void 0),Zl([q(\"userComponentRegistry\")],e.prototype,\"userComponentRegistry\",void 0),Zl([q(\"animationFrameService\")],e.prototype,\"animationFrameService\",void 0),Zl([q(\"dragService\")],e.prototype,\"dragService\",void 0),Zl([q(\"dragAndDropService\")],e.prototype,\"dragAndDropService\",void 0),Zl([q(\"sortController\")],e.prototype,\"sortController\",void 0),Zl([q(\"filterManager\")],e.prototype,\"filterManager\",void 0),Zl([q(\"rowContainerHeightService\")],e.prototype,\"rowContainerHeightService\",void 0),Zl([q(\"frameworkOverrides\")],e.prototype,\"frameworkOverrides\",void 0),Zl([q(\"cellPositionUtils\")],e.prototype,\"cellPositionUtils\",void 0),Zl([q(\"rowPositionUtils\")],e.prototype,\"rowPositionUtils\",void 0),Zl([q(\"selectionService\")],e.prototype,\"selectionService\",void 0),Zl([W(\"selectionHandleFactory\")],e.prototype,\"selectionHandleFactory\",void 0),Zl([q(\"rowCssClassCalculator\")],e.prototype,\"rowCssClassCalculator\",void 0),Zl([q(\"rowModel\")],e.prototype,\"rowModel\",void 0),Zl([q(\"ctrlsService\")],e.prototype,\"ctrlsService\",void 0),Zl([q(\"ctrlsFactory\")],e.prototype,\"ctrlsFactory\",void 0),Zl([q(\"agStackComponentsRegistry\")],e.prototype,\"agStackComponentsRegistry\",void 0),Zl([q(\"valueCache\")],e.prototype,\"valueCache\",void 0),Zl([q(\"rowNodeEventThrottle\")],e.prototype,\"rowNodeEventThrottle\",void 0),Zl([q(\"localeService\")],e.prototype,\"localeService\",void 0),Zl([G],e.prototype,\"postConstruct\",null),Zl([V(\"beans\")],e)}(),ts=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ns=function(e){function t(t,n,r){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=r,o}return ts(t,e),t.prototype.onMouseEvent=function(e,t){if(!Se(t))switch(e){case\"click\":this.onCellClicked(t);break;case\"mousedown\":case\"touchstart\":this.onMouseDown(t);break;case\"dblclick\":this.onCellDoubleClicked(t);break;case\"mouseout\":this.onMouseOut(t);break;case\"mouseover\":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,r=t.rangeService,o=t.gridOptionsService,a=e.ctrlKey||e.metaKey;r&&a&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var i=this.cellCtrl.createEvent(e,Ue.EVENT_CELL_CLICKED);n.dispatchEvent(i);var l=this.column.getColDef();l.onCellClicked&&window.setTimeout(function(){return l.onCellClicked(i)},0),(o.is(\"singleClickEdit\")||l.singleClickEdit)&&!o.is(\"suppressClickEdit\")&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!En()||Oe(\"dblclick\"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ue.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),\"function\"==typeof t.onCellDoubleClicked&&window.setTimeout(function(){return t.onCellDoubleClicked(n)},0),!this.beans.gridOptionsService.is(\"singleClickEdit\")&&!this.beans.gridOptionsService.is(\"suppressClickEdit\")&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.target,a=this.beans,i=a.eventService,l=a.rangeService;if(!this.isRightClickInExistingRange(e)){var s=l&&0!=l.getCellRanges().length;if(!r||!s){var u=hn()&&!this.cellCtrl.isEditing()&&!zn(o);this.cellCtrl.focusCell(u)}if(r&&s&&e.preventDefault(),!this.containsWidget(o)){if(l){var c=this.cellCtrl.getCellPosition();if(r)l.extendLatestRangeToCell(c);else{var d=t||n;l.setRangeToCell(c,d)}}i.dispatchEvent(this.cellCtrl.createEvent(e,Ue.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;return!(!t||!t.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return Qn(e,\"ag-selection-checkbox\",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ue.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ue.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(es),rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),os=function(e){function t(t,n,r,o,a){var i=e.call(this)||this;return i.cellCtrl=t,i.beans=n,i.rowNode=o,i.rowCtrl=a,i}return rs(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case Rr.ENTER:this.onEnterKeyDown(e);break;case Rr.F2:this.onF2KeyDown(e);break;case Rr.ESCAPE:this.onEscapeKeyDown(e);break;case Rr.TAB:this.onTabKeyDown(e);break;case Rr.BACKSPACE:case Rr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case Rr.DOWN:case Rr.UP:case Rr.RIGHT:case Rr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){var n=this,r=n.cellCtrl,o=n.beans,a=n.rowNode,i=o.gridOptionsService,l=o.rangeService,s=o.eventService;r.isEditing()||(s.dispatchEvent({type:Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),xr(e,i.is(\"enableCellEditingOnBackspace\"))?l&&i.isEnableRangeSelection()?l.clearCellRangeCellValues():r.isCellEditable()&&a.setDataValue(r.getColumn(),null,\"cellClear\"):r.startRowOrCellEdit(e,void 0,t),s.dispatchEvent({type:Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is(\"enterMovesDown\")?this.beans.navigationService.navigateToNextCell(null,Rr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Rr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Rr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(e.target===this.eGui&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);\" \"===t?this.onSpaceKeyPressed(e):Nr(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!t.is(\"suppressRowDeselection\")){var o=this.beans.gridOptionsService.is(\"groupSelectsFiltered\"),a=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:\"spacePressed\"});void 0===n&&0===a&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:\"spacePressed\"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ke),as=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=function(e){function t(t,n,r,o){var a=e.call(this,'<div class=\"ag-drag-handle ag-row-drag\" draggable=\"true\"></div>')||this;return a.rowNode=t,a.column=n,a.beans=r,a.eCell=o,a}return as(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Or(\"rowDrag\",this.beans.gridOptionsService,null)),this.addGuiEventListener(\"mousedown\",function(e){e.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener(\"dragstart\",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData(\"application/json\",n),e.dataTransfer.setData(\"text/plain\",n)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(no),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ss=function(){return ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ss.apply(this,arguments)},us=0,cs=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.cellRangeFeature=null,a.cellPositionFeature=null,a.cellCustomStyleFeature=null,a.tooltipFeature=null,a.cellMouseListenerFeature=null,a.cellKeyboardListenerFeature=null,a.suppressRefreshCell=!1,a.onCellCompAttachedFuncs=[],a.column=t,a.rowNode=n,a.beans=r,a.rowCtrl=o,a.instanceId=t.getId()+\"-\"+us++,a.createCellPosition(),a.addFeatures(),a}return ls(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Ql(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellPositionFeature)||void 0===t||t.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new $l(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellCustomStyleFeature)||void 0===t||t.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new ns(this,this.beans,this.column),this.addDestroyFunc(function(){var t;null===(t=e.cellMouseListenerFeature)||void 0===t||t.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new os(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var t;null===(t=e.cellKeyboardListenerFeature)||void 0===t||t.destroy(),e.cellKeyboardListenerFeature=null}),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new ql(this.beans,this),this.addDestroyFunc(function(){var t;null===(t=e.cellRangeFeature)||void 0===t||t.destroy(),e.cellRangeFeature=null})),this.column.isTooltipEnabled()&&this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return\"cell\"},getTooltipValue:function(){var t=e.column.getColDef(),n=e.rowNode.data;if(t.tooltipField&&o(n))return _(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var r=t.tooltipValueGetter;return r?r({location:\"cell\",api:e.beans.gridOptionsService.api,columnApi:e.beans.gridOptionsService.columnApi,context:e.beans.gridOptionsService.context,colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Jl(t,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.tooltipFeature)||void 0===t||t.destroy(),e.tooltipFeature=null})},t.prototype.setComp=function(e,t,n,r,o){var a,i,l,s;this.cellComp=e,this.eGui=t,this.printLayout=r,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),n&&this.setupAutoHeight(n),this.setAriaColIndex(),this.beans.gridOptionsService.is(\"suppressCellFocus\")||this.cellComp.setTabIndex(-1);var u=ft(this.column.getId());this.cellComp.setColId(u),this.cellComp.setRole(\"gridcell\"),null===(a=this.cellPositionFeature)||void 0===a||a.setComp(t),null===(i=this.cellCustomStyleFeature)||void 0===i||i.setComp(e),null===(l=this.tooltipFeature)||void 0===l||l.setComp(e),null===(s=this.cellKeyboardListenerFeature)||void 0===s||s.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),o&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(e){return e()}),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var t=this;if(this.column.isAutoHeight()){var n=e.parentElement,r=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,o=function(a){if(!t.editing&&t.isAlive()){var i=Kn(n),l=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,s=e.offsetHeight+l;if(a<5){var u=t.beans.gridOptionsService.getDocument();if(!u||!u.contains(e)||0==s)return void t.beans.frameworkOverrides.setTimeout(function(){return o(a+1)},0)}var c=Math.max(s,r);t.rowNode.setRowAutoHeight(c,t.column)}},a=function(){return o(0)};a();var i=this.beans.resizeObserverService.observeResize(e,a);this.addDestroyFunc(function(){i(),t.rowNode.setRowAutoHeight(void 0,t.column)})}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(r,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is(\"enableCellTextSelection\")||this.column.isAutoHeight()},t.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned||\"function\"!=typeof e&&!0!==e)},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||r},t.prototype.startEditing=function(e,t,n,r){var o=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var a=this.createCellEditorParams(e,t,n),i=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(i,a),s=null!=(null==l?void 0:l.popupFromSelector)?l.popupFromSelector:!!i.cellEditorPopup,u=null!=(null==l?void 0:l.popupPositionFromSelector)?l.popupPositionFromSelector:i.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(l,s,u);var c=this.createEvent(r,Ue.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(c)}else this.onCellCompAttachedFuncs.push(function(){o.startEditing(e,t,n,r)})},t.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t,\"edit\");return this.suppressRefreshCell=!1,n},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,r=t.newValueExists,o=this.rowNode.getValueFromValueService(this.column),a=!1;return r&&(a=this.saveNewValue(o,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(o,n,!e&&!!a),a},t.prototype.dispatchEditingStoppedEvent=function(e,t,n){var r=ss(ss({},this.createEvent(null,Ue.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:n});this.beans.eventService.dispatchEvent(r)},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.rowNode.getValueFromValueService(this.column),eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:n,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:function(){return e.rowNode.getValueFromValueService(e.column)},setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,r,o){return e.registerRowDragger(t,n,o)}}},t.prototype.parseValue=function(e){var t=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},r=t.valueParser;return o(r)?\"function\"==typeof r?r(n):this.beans.expressionService.evaluate(r,n):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){this.cellComp&&e.column===this.column&&this.refreshCell({})},t.prototype.refreshCell=function(e){var t,n,r;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var o=this.column.getColDef(),a=null!=e&&!!e.newData,i=null!=e&&!!e.suppressFlash||!!o.suppressCellFlash,l=null==o.field&&null==o.valueGetter&&null==o.showRowGroup,s=e&&e.forceRefresh||l||a,u=this.updateAndFormatValue();if(s||u){this.showValue(a);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!i&&!c&&(this.beans.gridOptionsService.is(\"enableCellChangeFlash\")||o.enableCellChangeFlash)&&this.flashCell(),null===(t=this.cellCustomStyleFeature)||void 0===t||t.applyUserStyles(),null===(n=this.cellCustomStyleFeature)||void 0===n||n.applyClassesFromColDef()}this.refreshToolTip(),null===(r=this.cellCustomStyleFeature)||void 0===r||r.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")||this.beans.gridOptionsService.is(\"enterMovesDownAfterEdit\")&&this.beans.navigationService.navigateToNextCell(null,Rr.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell(\"data-changed\",t,n)},t.prototype.animateCell=function(e,t,n){var r,a,i=this,l=\"ag-cell-\"+e,s=\"ag-cell-\"+e+\"-animation\",u=this.beans.gridOptionsService;t||(t=null!==(r=u.getNum(\"cellFlashDelay\"))&&void 0!==r?r:500),o(n)||(n=null!==(a=u.getNum(\"cellFadeDelay\"))&&void 0!==a?a:1e3),this.cellComp.addOrRemoveCssClass(l,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(l,!1),i.cellComp.addOrRemoveCssClass(s,!0),i.eGui.style.transition=\"background-color \"+n+\"ms\",window.setTimeout(function(){i.isAlive()&&(i.cellComp.addOrRemoveCssClass(s,!1),i.eGui.style.transition=\"\")},n))},t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell(\"highlight\")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),!!e||!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n},t.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsService.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,null)})},t.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyPress(e)},t.prototype.onKeyDown=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){var n;null===(n=this.cellMouseListenerFeature)||void 0===n||n.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){var e;null===(e=this.tooltipFeature)||void 0===e||e.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){var e;this.cellComp&&(null===(e=this.cellPositionFeature)||void 0===e||e.onLeftChanged())},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Zt(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){var e;return null===(e=this.cellPositionFeature)||void 0===e?void 0:e.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.cellComp&&(\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n))},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(\"ag-cell-first-right-pinned\",e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(\"ag-cell-last-left-pinned\",e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.beans.gridOptionsService.is(\"suppressCellFocus\")){var t=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass(\"ag-cell-focus\",t),t&&e&&e.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var n=\"fullRow\"===this.beans.gridOptionsService.get(\"editType\");t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:r(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(\"ag-cell\",!0),this.cellComp.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass(\"ag-cell-auto-height\",e),this.cellComp.addOrRemoveCssClass(\"ag-cell-normal-height\",!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is(\"columnHoverHighlight\")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(\"ag-column-hover\",e)}},t.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass(\"ag-cell-wrap-text\",e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,Ue.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(function(){return t.onCellContextMenu(n)},0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new li;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new is(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var o=this.createRowDragComp(e,t,n);o&&(this.customRowDragComp=o,this.addDestroyFunc(function(){r.beans.context.destroyBean(o),r.customRowDragComp=null}))}},t.prototype.createRowDragComp=function(e,t,n){var r=this,o=this.beans.gridOptionsService.is(\"pagination\"),a=this.beans.gridOptionsService.is(\"rowDragManaged\"),i=this.beans.gridOptionsService.isRowModelType(\"clientSide\");if(a){if(!i)return void O(function(){return console.warn(\"AG Grid: managed row dragging is only allowed in the Client Side Row Model\")},\"CellComp.addRowDragging\");if(o)return void O(function(){return console.warn(\"AG Grid: managed row dragging is not possible when doing pagination\")},\"CellComp.addRowDragging\")}var l=new hi(function(){return r.value},this.rowNode,this.column,e,t,n);return this.beans.context.createBean(l),l},t.DOM_DATA_KEY_CELL_CTRL=\"cellCtrl\",t}(ke),ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ps=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};!function(e){e.Normal=\"Normal\",e.FullWidth=\"FullWidth\",e.FullWidthLoading=\"FullWidthLoading\",e.FullWidthGroup=\"FullWidthGroup\",e.FullWidthDetail=\"FullWidthDetail\"}(zl||(zl={}));var fs,gs,hs=0,ms=function(e){function t(t,n,r,o,a){var i=e.call(this)||this;return i.allRowGuis=[],i.active=!0,i.centerCellCtrls={list:[],map:{}},i.leftCellCtrls={list:[],map:{}},i.rightCellCtrls={list:[],map:{}},i.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},i.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},i.lastMouseDownOnDragger=!1,i.updateColumnListsPending=!1,i.businessKeySanitised=null,i.beans=n,i.rowNode=t,i.paginationPage=i.beans.paginationProxy.getCurrentPage(),i.useAnimationFrameForCreate=o,i.printLayout=a,i.instanceId=t.id+\"-\"+hs++,i.setAnimateFlags(r),i.initRowBusinessKey(),i.rowFocused=i.beans.focusService.isRowFocused(i.rowNode.rowIndex,i.rowNode.rowPinned),i.rowLevel=i.beans.rowCssClassCalculator.calculateRowLevel(i.rowNode),i.setRowType(),i.addListeners(),i}return ds(t,e),t.prototype.initRowBusinessKey=function(){var e=this.beans.gridOptionsService.get(\"getBusinessKeyForNode\");if(\"function\"==typeof e){var t=e(this.rowNode);this.businessKeySanitised=ft(t)}},t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,t,n){var r={rowComp:e,element:t,containerType:n};this.allRowGuis.push(r),n===gs.LEFT?this.leftGui=r:n===gs.RIGHT?this.rightGui=r:n===gs.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,this.initialiseRowComp(r),\"FullWidthLoading\"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.unsetComp=function(e){this.allRowGuis=this.allRowGuis.filter(function(t){return t.containerType!==e}),e===gs.LEFT?this.leftGui=void 0:e===gs.RIGHT?this.rightGui=void 0:e===gs.FULL_WIDTH&&(this.fullWidthGui=void 0)},t.prototype.isCacheable=function(){return this.rowType===zl.FullWidthDetail&&this.beans.gridOptionsService.is(\"keepDetailRows\")},t.prototype.setCached=function(e){var t=e?\"none\":\"\";this.allRowGuis.forEach(function(e){return e.element.style.display=t})},t.prototype.initialiseRowComp=function(e){var n=this,r=this.beans.gridOptionsService;this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(e),r.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var o=e.rowComp;o.setRole(\"row\"),this.getInitialRowClasses(e.containerType).forEach(function(e){return o.addOrRemoveCssClass(e,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Vt(e.element,1==this.rowNode.expanded);var a=ft(this.rowNode.id);null!=a&&o.setRowId(a),null!=this.businessKeySanitised&&o.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is(\"suppressCellFocus\")&&o.setTabIndex(-1),r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,\"createTasksP2\"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),r.is(\"rowDragEntireRow\")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){n.isAlive()&&e.rowComp.addOrRemoveCssClass(\"ag-after-created\",!0)}),this.executeProcessRowPostCreateFunc()},t.prototype.executeSlideAndFadeAnimations=function(e){var t=this,n=e.containerType;this.slideInAnimation[n]&&(M(function(){t.onTopChanged()}),this.slideInAnimation[n]=!1),this.fadeInAnimation[n]&&(M(function(){e.rowComp.addOrRemoveCssClass(\"ag-opacity-zero\",!1)}),this.fadeInAnimation[n]=!1)},t.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsService.isEnableRangeSelection())O(function(){console.warn(\"AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`\")},\"rowDragAndRangeSelectionEnabled\");else{var t=this.beans.localeService.getLocaleTextFunc(),n=new hi(function(){return\"1 \"+t(\"rowDragRow\",\"row\")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(n,this.beans.context)}},t.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthParams(e.element,t);if(this.rowType!=zl.FullWidthDetail||te.assertRegistered(X.MasterDetailModule,\"cell renderer 'agDetailCellRenderer' (for master detail)\")){var r;switch(this.rowType){case zl.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case zl.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case zl.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}e.rowComp.showFullWidth(r)}},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getFullWidthCellRenderer=function(){var e,t;return null===(t=null===(e=this.fullWidthGui)||void 0===e?void 0:e.rowComp)||void 0===t?void 0:t.getFullWidthCellRenderer()},t.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e,t=this.beans.gridOptionsService.getCallback(\"processRowPostCreate\");t&&this.areAllContainersReady()&&t({eRow:null===(e=this.centerGui)||void 0===e?void 0:e.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},t.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,n=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&n},t.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),o=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(r);this.rowType=e?zl.FullWidthLoading:n?zl.FullWidthDetail:t?zl.FullWidth:o?zl.FullWidthGroup:zl.Normal},t.prototype.updateColumnLists=function(e,t){var n=this;void 0===e&&(e=!1),void 0===t&&(t=!1),this.isFullWidth()||(e||this.beans.gridOptionsService.is(\"suppressAnimationFrame\")||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){n.active&&n.updateColumnListsImpl(!0)},this.rowNode.rowIndex,\"createTasksP1\"),this.updateColumnListsPending=!0))},t.prototype.createCellCtrls=function(e,t,n){var r=this;void 0===n&&(n=null);var o={list:[],map:{}},a=function(e,t){o.list.push(t),o.map[e]=t};return t.forEach(function(t){var n=t.getInstanceId(),o=e.map[n];o||(o=new cs(t,r.rowNode,r.beans,r)),a(n,o)}),e.list.forEach(function(e){null!=o.map[e.getColumn().getInstanceId()]||(r.isCellEligibleToBeRemoved(e,n)?e.destroy():a(e.getColumn().getInstanceId(),e))}),o},t.prototype.updateColumnListsImpl=function(e){var t=this;void 0===e&&(e=!1),this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var r=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);var o=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,\"left\");var a=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,\"right\")}this.allRowGuis.forEach(function(n){var r=n.containerType===gs.LEFT?t.leftCellCtrls:n.containerType===gs.RIGHT?t.rightCellCtrls:t.centerCellCtrls;n.rowComp.setCellCtrls(r.list,e)})},t.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var r=e.isEditing(),o=this.beans.focusService.isCellFocused(e.getCellPosition());if(r||o){var a=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(a)>=0)&&n}return n},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=o(this.rowNode.oldRowTop),n=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();t?(this.slideInAnimation.center=!0,this.slideInAnimation.left=n,this.slideInAnimation.right=r):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=n,this.fadeInAnimation.right=r)}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==zl.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var o=e.createFullWidthParams(t.element,n);return r.refresh(o)},n=t(this.fullWidthGui,null),r=t(this.centerGui,null),o=t(this.leftGui,\"left\"),a=t(this.rightGui,\"right\");return n&&r&&o&&a},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,ri.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,ri.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,ri.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,ri.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,Ue.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,Ue.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,Ue.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,Ue.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,Ue.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,Ue.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,Ue.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,Ue.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,ri.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,ri.EVENT_CELL_CHANGED,function(t){e.getAllCellCtrls().forEach(function(e){return e.onCellChanged(t)})})},t.prototype.onRowNodeDataChanged=function(e){this.rowNode.detailNode&&this.beans.rowRenderer.refreshFullWidthRow(this.rowNode.detailNode),this.isFullWidth()?this.beans.rowRenderer.refreshFullWidthRow(this.rowNode):(this.getAllCellCtrls().forEach(function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss())},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(t){var n=e===il.Above,r=e===il.Below;t.rowComp.addOrRemoveCssClass(\"ag-row-highlight-above\",n),t.rowComp.addOrRemoveCssClass(\"ag-row-highlight-below\",r)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass(\"ag-row-dragging\",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach(function(n){n.rowComp.addOrRemoveCssClass(\"ag-row-group\",e),n.rowComp.addOrRemoveCssClass(\"ag-row-group-expanded\",e&&t),n.rowComp.addOrRemoveCssClass(\"ag-row-group-contracted\",e&&!t),Vt(n.element,e&&t)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:r(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)});if((t?t.element:null)===e.target){var n=this.rowNode,r=this.beans.focusService.getFocusedCell(),o={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.key,o,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Se(e)){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)}),n=t?t.element:null,r=n===e.target,o=null;r||(o=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!o)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,r=!!e&&this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,o=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;o&&(o.classList.toggle(\"ag-full-width-focus\",r),r&&o.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach(function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)}),n},t.prototype.onMouseEvent=function(e,t){switch(e){case\"dblclick\":this.onRowDblClick(t);break;case\"click\":this.onRowClick(t);break;case\"touchstart\":case\"mousedown\":this.onRowMouseDown(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,event:t}},t.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!Se(e)){var t=this.createRowEventWithSource(Ue.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Qn(e.target,\"ag-row-drag\",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!Se(e)&&!this.lastMouseDownOnDragger){var t=this.createRowEventWithSource(Ue.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!(this.beans.gridOptionsService.is(\"groupSelectsChildren\")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is(\"suppressRowClickSelection\"))){var o=this.beans.gridOptionsService.is(\"rowMultiSelectWithClick\"),a=!this.beans.gridOptionsService.is(\"suppressRowDeselection\"),i=\"rowClicked\";if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1,event:e,source:i}):n?a&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:i}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r,rangeSelect:r,event:e,source:i});else{var l=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:r,event:e,source:i})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===zl.FullWidthDetail&&this.beans.gridOptionsService.is(\"detailRowAutoHeight\")){var n=function(){var n=e.clientHeight;null!=n&&n>0&&t.beans.frameworkOverrides.setTimeout(function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()},0)},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},t.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,r,o){return n.addFullWidthRowDragging(e,t,r,o)}}},t.prototype.addFullWidthRowDragging=function(e,t,n,r){if(void 0===n&&(n=\"\"),this.isFullWidth()){var o=new hi(function(){return n},this.rowNode,void 0,e,t,r);this.createManagedBean(o,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t=\"ag-row-level-\"+e,n=\"ag-row-level-\"+this.rowLevel;this.allRowGuis.forEach(function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass(\"ag-row-first\",e)})),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(\"ag-row-last\",t)}))},t.prototype.stopEditing=function(e){var t,n;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),o=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var i=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(r),l=i.next();!l.done;l=i.next()){var s=l.value.stopEditing(e);o&&!e&&!a&&s&&(a=!0)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}if(a){var u=this.createRowEvent(Ue.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}o&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(t){t.rowComp.addOrRemoveCssClass(\"ag-row-inline-editing\",e),t.rowComp.addOrRemoveCssClass(\"ag-row-not-inline-editing\",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass(\"ag-row-editing\",e)});var t=e?this.createRowEvent(Ue.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ue.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,n,r){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||this.getAllCellCtrls().reduce(function(o,a){var i=a===n;return i?a.startEditing(e,t,i,r):a.startEditing(null,null,i,r),!!o||a.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ps(arguments[t]));return e}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach(function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!0)})},function(t){e.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(t,!1)})})},t.prototype.setStylesFromGridOptions=function(e){var t=this.processStylesFromGridOptions();this.forEachGui(e,function(e){return e.rowComp.setUserStyles(t)})},t.prototype.getPinnedForContainer=function(e){return e===gs.LEFT?\"left\":e===gs.RIGHT?\"right\":null},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsService.get(\"rowStyle\");if(!e||\"function\"!=typeof e){var t,n=this.beans.gridOptionsService.getCallback(\"getRowStyle\");return n&&(t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},e,t)}console.warn(\"AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead\")},t.prototype.onRowSelected=function(e){var t=this,n=!!this.rowNode.isSelected();this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass(\"ag-row-selected\",n),rn(e.element,!!n||void 0);var r=t.createAriaLabel();Ft(e.element,null==r?\"\":r)})},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsService.is(\"suppressRowDeselection\"))return this.beans.localeService.getLocaleTextFunc()(e?\"ariaRowDeselect\":\"ariaRowSelect\",\"Press SPACE to \"+(e?\"deselect\":\"select\")+\" this row.\")},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,\"mouseenter\",function(){return t.rowNode.onMouseEnter()}),this.addManagedListener(e,\"mouseleave\",function(){return t.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,ri.EVENT_MOUSE_ENTER,function(){t.beans.dragService.isDragging()||t.beans.gridOptionsService.is(\"suppressRowHoverHighlight\")||(e.classList.add(\"ag-row-hover\"),t.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,ri.EVENT_MOUSE_LEAVE,function(){e.classList.remove(\"ag-row-hover\"),t.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,t){(e?[e]:this.allRowGuis).forEach(t)},t.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),r=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,o=r?Math.min(n,r)-2+\"px\":void 0;this.forEachGui(e,function(e){e.element.style.height=t+\"px\",o&&e.element.style.setProperty(\"--ag-line-height\",o)})}},t.prototype.addEventListener=function(t,n){e.prototype.addEventListener.call(this,t,n)},t.prototype.removeEventListener=function(t,n){e.prototype.removeEventListener.call(this,t,n)},t.prototype.destroyFirstPass=function(){this.active=!1,this.beans.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var t=this.createRowEvent(Ue.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach(function(e){return e.rowComp.addOrRemoveCssClass(\"ag-opacity-zero\",!0)})},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach(function(e){return e.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass(\"ag-row-focus\",t.rowFocused),e.rowComp.addOrRemoveCssClass(\"ag-row-no-focus\",!t.rowFocused)})},t.prototype.onCellFocused=function(){this.onCellFocusChanged()},t.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&o(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+\"px\";this.setRowTopStyle(n)}},t.prototype.getInitialRowTop=function(e){return this.beans.gridOptionsService.is(\"suppressRowTransform\")?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.beans.gridOptionsService.is(\"suppressRowTransform\")?void 0:\"translateY(\"+this.getInitialRowTopShared(e)+\")\"},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return\"\";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var n=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(n);t=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return t+\"px\"},t.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsService.is(\"suppressRowTransform\");this.allRowGuis.forEach(function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform(\"translateY(\"+e+\")\")})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach(function(n){n.getColumn()==e&&(t=n)}),null!=t||this.getAllCellCtrls().forEach(function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)}),t},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2==0,o=n+this.rowNode.rowIndex+1;this.forEachGui(e,function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass(\"ag-row-even\",r),e.rowComp.addOrRemoveCssClass(\"ag-row-odd\",!r),Xt(e.element,o)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL=\"renderedRow\",t}(ke),vs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),As=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ys=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return vs(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;[\"keydown\",\"keypress\"].forEach(function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)})},t.prototype.addMouseListeners=function(){var e=this;[\"dblclick\",\"contextmenu\",\"mouseover\",\"mouseout\",\"click\",Oe(\"touchstart\")?\"touchstart\":\"mousedown\"].forEach(function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)})},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Se(t)){var n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);\"contextmenu\"===e?this.handleContextMenuMouseEvent(t,null,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(En()){var t=new Ma(this.element);this.addManagedListener(t,Ma.EVENT_LONG_TAP,function(t){var n=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,r)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsService.getDomData(t,ms.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,n,r){var o=n?n.getRowNode():null,a=r?r.getColumn():null,i=null;if(a){var l=e||t;r.dispatchCellContextMenuEvent(l),i=this.valueService.getValue(a,o)}var s=this.ctrlsService.getGridBodyCtrl(),u=r?r.getGui():s.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,o,a,i,u)},t.prototype.processKeyboardEvent=function(e,t){var n=De(this.gridOptionsService,t.target,cs.DOM_DATA_KEY_CELL_CTRL),r=De(this.gridOptionsService,t.target,ms.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=e.getColumn(),a=e.isEditing();if(!Lr(this.gridOptionsService,n,r,o,a))switch(t){case\"keydown\":!a&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case\"keypress\":e.onKeyPress(n)}if(\"keydown\"===t){var i=e.createEvent(n,Ue.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(i)}if(\"keypress\"===t){var l=e.createEvent(n,Ue.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(l)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=this.focusService.getFocusedCell(),a=o&&o.column;if(!Lr(this.gridOptionsService,n,r,a,!1)){var i=n.key;if(\"keydown\"===t)switch(i){case Rr.PAGE_HOME:case Rr.PAGE_END:this.navigationService.handlePageScrollingKey(n);break;case Rr.UP:case Rr.DOWN:e.onKeyboardNavigate(n);break;case Rr.TAB:e.onTabKeyDown(n)}}if(\"keydown\"===t){var l=e.createRowEvent(Ue.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(l)}if(\"keypress\"===t){var s=e.createRowEvent(Ue.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(s)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var n=Mr(e);return n===Rr.A?this.onCtrlAndA(e):n===Rr.C?this.onCtrlAndC(e):n===Rr.X?this.onCtrlAndX(e):n===Rr.V?this.onCtrlAndV():n===Rr.D?this.onCtrlAndD(e):n===Rr.Z?this.onCtrlAndZ(e):n===Rr.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,r=t.paginationProxy,o=t.rangeService;if(o&&r.isRowsToRender()){var a=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}([n.isEmpty(\"top\"),n.isEmpty(\"bottom\")],2),l=a[0]?null:\"top\",s=void 0,u=void 0;a[1]?(s=null,u=this.paginationProxy.getRowCount()-1):(s=\"bottom\",u=n.getPinnedBottomRowData().length-1);var c=this.columnModel.getAllDisplayedColumns();if(i(c))return;o.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:s,columnStart:c[0],columnEnd:ce(c)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsService.is(\"enableCellTextSelection\")&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndX=function(e){!this.clipboardService||this.gridOptionsService.is(\"enableCellTextSelection\")||this.gridOptionsService.is(\"suppressCutToClipboard\")||(this.clipboardService.cutToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){te.isRegistered(X.ClipboardModule)&&!this.gridOptionsService.is(\"suppressClipboardPaste\")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){te.isRegistered(X.ClipboardModule)&&!this.gridOptionsService.is(\"suppressClipboardPaste\")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is(\"undoRedoCellEditing\")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo(\"ui\"):this.undoRedoService.undo(\"ui\"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo(\"ui\")},As([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),As([q(\"valueService\")],t.prototype,\"valueService\",void 0),As([W(\"contextMenuFactory\")],t.prototype,\"contextMenuFactory\",void 0),As([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),As([q(\"navigationService\")],t.prototype,\"navigationService\",void 0),As([q(\"focusService\")],t.prototype,\"focusService\",void 0),As([q(\"undoRedoService\")],t.prototype,\"undoRedoService\",void 0),As([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),As([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),As([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),As([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),As([W(\"clipboardService\")],t.prototype,\"clipboardService\",void 0),As([G],t.prototype,\"postConstruct\",null),t}(ke),Es=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bs=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},_s=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return Es(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,Ue.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=$n(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ue.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},bs([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),bs([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),bs([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),bs([G],t.prototype,\"postConstruct\",null),t}(ke),Cs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ws=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ss=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Cs(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Vn(this.element,t),mr(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},ws([q(\"pinnedWidthService\")],t.prototype,\"pinnedWidthService\",void 0),ws([G],t.prototype,\"postConstruct\",null),t}(ke),Ts=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ds=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Ts(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Vn(this.element,t),mr(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Os([q(\"pinnedWidthService\")],t.prototype,\"pinnedWidthService\",void 0),Os([G],t.prototype,\"postConstruct\",null),t}(ke),Rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ns=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ls=function(e){function t(t,n){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=n,r}return Rs(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+\"px\":\"\";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},Ns([q(\"rowContainerHeightService\")],t.prototype,\"maxDivHeightScaler\",void 0),Ns([G],t.prototype,\"postConstruct\",null),t}(ke),Ps=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ms=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},xs=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return Ps(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsService.isEnableRangeSelection()&&!a(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc(function(){return e.dragService.removeDragSource(t)})}},Ms([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),Ms([q(\"dragService\")],t.prototype,\"dragService\",void 0),Ms([G],t.prototype,\"postConstruct\",null),t}(ke),Is=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ks=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Bs=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this)||this;return r.callback=t,r.addSpacer=n,r}return Is(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener(\"domLayout\",e),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e,t=this.columnModel,n=this.gridOptionsService.isDomLayout(\"print\"),r=t.getBodyContainerWidth(),o=t.getDisplayedColumnsLeftWidth(),a=t.getDisplayedColumnsRightWidth();n?e=r+o+a:(e=r,this.addSpacer&&0===(this.gridOptionsService.is(\"enableRtl\")?o:a)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth())),this.callback(e)},ks([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),ks([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),ks([G],t.prototype,\"postConstruct\",null),t}(ke),Fs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),js=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Hs=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function Us(e){switch(e){case fs.CENTER:case fs.TOP_CENTER:case fs.STICKY_TOP_CENTER:case fs.BOTTOM_CENTER:return gs.CENTER;case fs.LEFT:case fs.TOP_LEFT:case fs.STICKY_TOP_LEFT:case fs.BOTTOM_LEFT:return gs.LEFT;case fs.RIGHT:case fs.TOP_RIGHT:case fs.STICKY_TOP_RIGHT:case fs.BOTTOM_RIGHT:return gs.RIGHT;case fs.FULL_WIDTH:case fs.TOP_FULL_WIDTH:case fs.STICKY_TOP_FULL_WIDTH:case fs.BOTTOM_FULL_WIDTH:return gs.FULL_WIDTH;default:throw Error(\"Invalid Row Container Type\")}}!function(e){e.LEFT=\"left\",e.RIGHT=\"right\",e.CENTER=\"center\",e.FULL_WIDTH=\"fullWidth\",e.TOP_LEFT=\"topLeft\",e.TOP_RIGHT=\"topRight\",e.TOP_CENTER=\"topCenter\",e.TOP_FULL_WIDTH=\"topFullWidth\",e.STICKY_TOP_LEFT=\"stickyTopLeft\",e.STICKY_TOP_RIGHT=\"stickyTopRight\",e.STICKY_TOP_CENTER=\"stickyTopCenter\",e.STICKY_TOP_FULL_WIDTH=\"stickyTopFullWidth\",e.BOTTOM_LEFT=\"bottomLeft\",e.BOTTOM_RIGHT=\"bottomRight\",e.BOTTOM_CENTER=\"bottomCenter\",e.BOTTOM_FULL_WIDTH=\"bottomFullWidth\"}(fs||(fs={})),function(e){e.LEFT=\"left\",e.RIGHT=\"right\",e.CENTER=\"center\",e.FULL_WIDTH=\"fullWidth\"}(gs||(gs={}));var Ys,Gs=mt([[fs.CENTER,\"ag-center-cols-container\"],[fs.LEFT,\"ag-pinned-left-cols-container\"],[fs.RIGHT,\"ag-pinned-right-cols-container\"],[fs.FULL_WIDTH,\"ag-full-width-container\"],[fs.TOP_CENTER,\"ag-floating-top-container\"],[fs.TOP_LEFT,\"ag-pinned-left-floating-top\"],[fs.TOP_RIGHT,\"ag-pinned-right-floating-top\"],[fs.TOP_FULL_WIDTH,\"ag-floating-top-full-width-container\"],[fs.STICKY_TOP_CENTER,\"ag-sticky-top-container\"],[fs.STICKY_TOP_LEFT,\"ag-pinned-left-sticky-top\"],[fs.STICKY_TOP_RIGHT,\"ag-pinned-right-sticky-top\"],[fs.STICKY_TOP_FULL_WIDTH,\"ag-sticky-top-full-width-container\"],[fs.BOTTOM_CENTER,\"ag-floating-bottom-container\"],[fs.BOTTOM_LEFT,\"ag-pinned-left-floating-bottom\"],[fs.BOTTOM_RIGHT,\"ag-pinned-right-floating-bottom\"],[fs.BOTTOM_FULL_WIDTH,\"ag-floating-bottom-full-width-container\"]]),zs=mt([[fs.CENTER,\"ag-center-cols-viewport\"],[fs.TOP_CENTER,\"ag-floating-top-viewport\"],[fs.STICKY_TOP_CENTER,\"ag-sticky-top-viewport\"],[fs.BOTTOM_CENTER,\"ag-floating-bottom-viewport\"]]),Vs=mt([[fs.CENTER,\"ag-center-cols-clipper\"]]),qs=function(e){function t(t){var n=e.call(this)||this;return n.visible=!0,n.EMPTY_CTRLS=[],n.name=t,n.isFullWithContainer=n.name===fs.TOP_FULL_WIDTH||n.name===fs.STICKY_TOP_FULL_WIDTH||n.name===fs.BOTTOM_FULL_WIDTH||n.name===fs.FULL_WIDTH,n}return Fs(t,e),t.getRowContainerCssClasses=function(e){return{container:Gs.get(e),viewport:zs.get(e),wrapper:Vs.get(e)}},t.getPinned=function(e){switch(e){case fs.BOTTOM_LEFT:case fs.TOP_LEFT:case fs.STICKY_TOP_LEFT:case fs.LEFT:return\"left\";case fs.BOTTOM_RIGHT:case fs.TOP_RIGHT:case fs.STICKY_TOP_RIGHT:case fs.RIGHT:return\"right\";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is(\"enableRtl\"),this.embedFullWidthRows=this.gridOptionsService.is(\"embedFullWidthRows\"),this.forContainers([fs.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new _s(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case fs.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case fs.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case fs.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case fs.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case fs.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case fs.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case fs.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case fs.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case fs.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case fs.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case fs.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case fs.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,n,r){var o=this;this.comp=e,this.eContainer=t,this.eViewport=n,this.eWrapper=r,this.createManagedBean(new ys(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[fs.TOP_CENTER,fs.TOP_LEFT,fs.TOP_RIGHT],i=[fs.STICKY_TOP_CENTER,fs.STICKY_TOP_LEFT,fs.STICKY_TOP_RIGHT],l=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hs(arguments[t]));return e}(a,[fs.BOTTOM_CENTER,fs.BOTTOM_LEFT,fs.BOTTOM_RIGHT],[fs.CENTER,fs.LEFT,fs.RIGHT],i),s=[fs.CENTER,fs.LEFT,fs.RIGHT,fs.FULL_WIDTH],u=[fs.CENTER,fs.TOP_CENTER,fs.STICKY_TOP_CENTER,fs.BOTTOM_CENTER],c=[fs.LEFT,fs.BOTTOM_LEFT,fs.TOP_LEFT,fs.STICKY_TOP_LEFT],d=[fs.RIGHT,fs.BOTTOM_RIGHT,fs.TOP_RIGHT,fs.STICKY_TOP_RIGHT];this.forContainers(c,function(){o.pinnedWidthFeature=o.createManagedBean(new Ss(o.eContainer)),o.addManagedListener(o.eventService,Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return o.onPinnedWidthChanged()})}),this.forContainers(d,function(){o.pinnedWidthFeature=o.createManagedBean(new Ds(o.eContainer)),o.addManagedListener(o.eventService,Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return o.onPinnedWidthChanged()})}),this.forContainers(s,function(){return o.createManagedBean(new Ls(o.eContainer,o.eWrapper))}),this.forContainers(l,function(){return o.createManagedBean(new xs(o.eContainer))}),this.forContainers(u,function(){return o.createManagedBean(new Bs(function(e){return o.comp.setContainerWidth(e+\"px\")}))}),Dn()&&(this.forContainers([fs.CENTER],function(){var e=o.enableRtl?Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED:Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED;o.addManagedListener(o.eventService,e,function(){return o.refreshPaddingForFakeScrollbar()})}),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,t=e.enableRtl,n=e.columnModel,r=e.name,o=e.eWrapper,a=e.eContainer,i=t?fs.LEFT:fs.RIGHT;this.forContainers([fs.CENTER,i],function(){var e=n.getContainerWidth(i),l=t?\"marginLeft\":\"marginRight\";r===fs.CENTER?o.style[l]=e?\"0px\":\"16px\":a.style[l]=e?\"16px\":\"0px\"})},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,function(){return e.onScrollVisibilityChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_ROWS_CHANGED,function(t){return e.onDisplayedRowsChanged(t.afterScroll)}),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([fs.STICKY_TOP_CENTER,fs.STICKY_TOP_LEFT,fs.STICKY_TOP_RIGHT,fs.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.is(\"ensureDomOrder\"),n=e.gridOptionsService.isDomLayout(\"print\");e.comp.setDomOrder(t||n)};this.addManagedPropertyListener(\"domLayout\",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([fs.TOP_CENTER,fs.STICKY_TOP_CENTER,fs.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,\"scroll\",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([fs.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([fs.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){var e=this.gridOptionsService.getScrollbarWidth()||0;if(this.name===fs.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()?e:0,n=0==t?\"100%\":\"calc(100% + \"+t+\"px)\";this.comp.setViewportHeight(n)}this.name===fs.FULL_WIDTH&&(n=\"calc(100% - \"+(Dn()?16:0)+\"px)\",this.eContainer.style.setProperty(\"width\",n))},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener(\"touchmove\",t,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener(\"touchmove\",t)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return Xn(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return tr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return t()})},t.prototype.isViewportVisible=function(){return ar(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return tr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is(\"alwaysShowHorizontalScroll\")||fr(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform=\"translateX(\"+e+\"px)\"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){nr(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){return!t.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),Dn()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(e){var t=this;if(void 0===e&&(e=!1),this.visible){var n=this.gridOptionsService.isDomLayout(\"print\"),r=this.getRowCtrls().filter(function(e){var r=e.isFullWidth(),o=t.embedFullWidthRows||n;return t.isFullWithContainer?!o&&r:o||!r});this.comp.setRowCtrls(r,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},t.prototype.getRowCtrls=function(){switch(this.name){case fs.TOP_CENTER:case fs.TOP_LEFT:case fs.TOP_RIGHT:case fs.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case fs.STICKY_TOP_CENTER:case fs.STICKY_TOP_LEFT:case fs.STICKY_TOP_RIGHT:case fs.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case fs.BOTTOM_CENTER:case fs.BOTTOM_LEFT:case fs.BOTTOM_RIGHT:case fs.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},js([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),js([q(\"dragService\")],t.prototype,\"dragService\",void 0),js([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),js([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),js([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),js([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),js([G],t.prototype,\"postConstruct\",null),t}(ke),Ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ks='<div class=\"ag-root ag-unselectable\" role=\"treegrid\">\\n        <ag-header-root ref=\"gridHeader\"></ag-header-root>\\n        <div class=\"ag-floating-top\" ref=\"eTop\" role=\"presentation\">\\n            <ag-row-container ref=\"topLeftContainer\" name=\"'+fs.TOP_LEFT+'\"></ag-row-container>\\n            <ag-row-container ref=\"topCenterContainer\" name=\"'+fs.TOP_CENTER+'\"></ag-row-container>\\n            <ag-row-container ref=\"topRightContainer\" name=\"'+fs.TOP_RIGHT+'\"></ag-row-container>\\n            <ag-row-container ref=\"topFullWidthContainer\" name=\"'+fs.TOP_FULL_WIDTH+'\"></ag-row-container>\\n        </div>\\n        <div class=\"ag-body\" ref=\"eBody\" role=\"presentation\">\\n            <div class=\"ag-body-clipper\" ref=\"eBodyClipper\" role=\"presentation\">\\n                <div class=\"ag-body-viewport\" ref=\"eBodyViewport\" role=\"presentation\">\\n                    <ag-row-container ref=\"leftContainer\" name=\"'+fs.LEFT+'\"></ag-row-container>\\n                    <ag-row-container ref=\"centerContainer\" name=\"'+fs.CENTER+'\"></ag-row-container>\\n                    <ag-row-container ref=\"rightContainer\" name=\"'+fs.RIGHT+'\"></ag-row-container>\\n                    <ag-row-container ref=\"fullWidthContainer\" name=\"'+fs.FULL_WIDTH+'\"></ag-row-container>\\n                </div>\\n            </div>\\n            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\\n        </div>\\n        <div class=\"ag-sticky-top\" ref=\"eStickyTop\" role=\"presentation\">\\n            <ag-row-container ref=\"stickyTopLeftContainer\" name=\"'+fs.STICKY_TOP_LEFT+'\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopCenterContainer\" name=\"'+fs.STICKY_TOP_CENTER+'\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopRightContainer\" name=\"'+fs.STICKY_TOP_RIGHT+'\"></ag-row-container>\\n            <ag-row-container ref=\"stickyTopFullWidthContainer\" name=\"'+fs.STICKY_TOP_FULL_WIDTH+'\"></ag-row-container>\\n        </div>\\n        <div class=\"ag-floating-bottom\" ref=\"eBottom\" role=\"presentation\">\\n            <ag-row-container ref=\"bottomLeftContainer\" name=\"'+fs.BOTTOM_LEFT+'\"></ag-row-container>\\n            <ag-row-container ref=\"bottomCenterContainer\" name=\"'+fs.BOTTOM_CENTER+'\"></ag-row-container>\\n            <ag-row-container ref=\"bottomRightContainer\" name=\"'+fs.BOTTOM_RIGHT+'\"></ag-row-container>\\n            <ag-row-container ref=\"bottomFullWidthContainer\" name=\"'+fs.BOTTOM_FULL_WIDTH+'\"></ag-row-container>\\n        </div>\\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\\n        <ag-overlay-wrapper></ag-overlay-wrapper>\\n    </div>',$s=function(e){function t(){return e.call(this,Ks)||this}return Ws(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var n=e+\"px\";t.style.minHeight=n,t.style.height=n},n={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return Jt(e.getGui(),t)},setRowCount:function(t){return $t(e.getGui(),t)},setTopHeight:function(n){return t(n,e.eTop)},setBottomHeight:function(n){return t(n,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setStickyTopHeight:function(t){return e.eStickyTop.style.height=t},setStickyTopTop:function(t){return e.eStickyTop.style.top=t},setStickyTopWidth:function(t){return e.eStickyTop.style.width=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(t,n)},updateLayoutClasses:function(t,n){[e.eBodyViewport.classList,e.eBodyClipper.classList,e.eBody.classList].forEach(function(e){e.toggle(fl.AUTO_HEIGHT,n.autoHeight),e.toggle(fl.NORMAL,n.normal),e.toggle(fl.PRINT,n.print)}),e.addOrRemoveCssClass(fl.AUTO_HEIGHT,n.autoHeight),e.addOrRemoveCssClass(fl.NORMAL,n.normal),e.addOrRemoveCssClass(fl.PRINT,n.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Yl,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc(function(){return n()})},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(e){return e.classList.toggle(Ul,n)})},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new Gl),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||\"multiple\"===this.gridOptionsService.get(\"rowSelection\"))&&Kt(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var n=this.eBodyViewport.classList;n.toggle(Sl.ANIMATION_ON,t),n.toggle(Sl.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Qs([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),Qs([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),Qs([oo(\"eBodyViewport\")],t.prototype,\"eBodyViewport\",void 0),Qs([oo(\"eStickyTop\")],t.prototype,\"eStickyTop\",void 0),Qs([oo(\"eTop\")],t.prototype,\"eTop\",void 0),Qs([oo(\"eBottom\")],t.prototype,\"eBottom\",void 0),Qs([oo(\"gridHeader\")],t.prototype,\"headerRootComp\",void 0),Qs([oo(\"eBodyClipper\")],t.prototype,\"eBodyClipper\",void 0),Qs([oo(\"eBody\")],t.prototype,\"eBody\",void 0),Qs([G],t.prototype,\"init\",null),t}(no),Xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Js=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xs(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Ue.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Js([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Js([G],t.prototype,\"postConstruct\",null),Js([V(\"scrollVisibleService\")],t)}(ke),eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return eu(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return De(this.gridOptionsService,e.target,cs.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var r=t[n.GRID_DOM_KEY];if(o(r))return r===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,r=this.gridOptionsService.isDomLayout(\"normal\"),o=e;if(null!=o.clientX||null!=o.clientY?(t=o.clientX,n=o.clientY):(t=o.x,n=o.y),r){var a=this.ctrlsService.getGridBodyCtrl(),i=a.getScrollFeature().getVScrollPosition();t+=a.getScrollFeature().getHScrollPosition().left,n+=i.top}return{x:t,y:n}},t.gridInstanceSequence=new zr,t.GRID_DOM_KEY=\"__ag_grid_instance\",tu([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),n=tu([V(\"mouseEventService\")],t)}(ke),ru=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ou=function(){return ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ou.apply(this,arguments)},au=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},iu=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=k(t.onPageDown,100),t.onPageUp=k(t.onPageUp,100),t}return ru(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,r=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,a=this.mouseEventService.getCellPositionForEvent(e),i=!1;switch(t){case Rr.PAGE_HOME:case Rr.PAGE_END:r||n||(this.onHomeOrEndKey(t),i=!0);break;case Rr.LEFT:case Rr.RIGHT:case Rr.UP:case Rr.DOWN:if(!a)return!1;!r||n||o||(this.onCtrlUpDownLeftRight(t,a),i=!0);break;case Rr.PAGE_DOWN:if(!a)return!1;r||n||(this.onPageDown(a),i=!0);break;case Rr.PAGE_UP:if(!a)return!1;r||n||(this.onPageUp(a),i=!0)}return i&&e.preventDefault(),i},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,r=e.scrollColumn,a=e.focusIndex,i=e.focusColumn;if(o(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),o(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.focusService.setFocusedCell({rowIndex:a,column:i,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:a,rowPinned:null,column:i};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),r=this.paginationProxy.getPixelOffset(),o=t.top+n,a=this.paginationProxy.getRowIndexAtPixel(o+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a):this.navigateToNextPage(e,a)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),r=t.top,o=this.paginationProxy.getRowIndexAtPixel(r+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o,!0):this.navigateToNextPage(e,o,!0)},t.prototype.navigateToNextPage=function(e,t,n){void 0===n&&(n=!1);var r,o=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),s=this.paginationProxy.getRow(e.rowIndex),u=n?(null==s?void 0:s.rowHeight)-o-l:o-l,c=(null==s?void 0:s.rowTop)+u,d=this.paginationProxy.getRowIndexAtPixel(c+l);if(d===e.rowIndex){var p=n?-1:1;t=d=e.rowIndex+p}n?(r=\"bottom\",d<a&&(d=a),t<a&&(t=a)):(r=\"top\",d>i&&(d=i),t>i&&(t=i)),this.isRowTallerThanView(d)&&(t=d,r=\"top\"),this.navigateTo({scrollIndex:t,scrollType:r,scrollColumn:null,focusIndex:d,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?\"bottom\":\"top\",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(function(){var o=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:t,scrollType:n?\"bottom\":\"top\",scrollColumn:null,focusIndex:o,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var r=t?-1:1,o=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),i=0,l=e.rowIndex;l>=0&&l<=a;){var s=this.paginationProxy.getRow(l);if(s){var u=null!==(n=s.rowHeight)&&void 0!==n?n:0;if(i+u>o)break;i+=u}l+=r}return Math.max(0,Math.min(l,a))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return\"number\"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=n.rowIndex,o=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onHomeOrEndKey=function(e){var t=e===Rr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=t?n[0]:ce(n),o=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var r=e.getRowPosition(),o=r.rowIndex;(r.rowPinned?0===o:o===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum(\"headerHeight\")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusLastHeader(t)))}else e instanceof cs&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n))&&r.isFullWidth())&&this.tabToNextCellCommon(r,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var r=e.isEditing();if(!r&&e instanceof cs){var o=e.getRowCtrl();o&&(r=o.isEditing())}return(r?\"fullRow\"===this.gridOptionsService.get(\"editType\")?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var o=this.findNextCellToFocusOn(r,t,!0);return null!=o&&(o.startEditing(null,null,!0,n),o.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition(),o=this.findNextCellToFocusOn(r,t,!0);if(null==o)return!1;var a=o.getCellPosition(),i=this.isCellEditable(r),l=this.isCellEditable(a),s=a&&r.rowIndex===a.rowIndex&&r.rowPinned===a.rowPinned;return i&&e.setFocusOutOnEditor(),s||(e.getRowCtrl().stopEditing(),o.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),l?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,r=this.columnModel.getAllDisplayedColumns();n=e instanceof ms?ou(ou({},e.getRowPosition()),{column:t?r[0]:ce(r)}):e.getCellPosition();var a=this.findNextCellToFocusOn(n,t,!1);if(a instanceof cs)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),t);return o(a)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var r=e;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);var a=this.gridOptionsService.getCallback(\"tabToNextCell\");if(o(a)){var i=a({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});o(i)?(i.floating&&(O(function(){console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\")},\"no floating in userCell\"),i.rowPinned=i.floating),r={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+r.rowIndex,column:r.column}}),null}var s=\"fullRow\"===this.gridOptionsService.get(\"editType\");if(!n||s||this.isCellEditable(r)){this.ensureCellVisible(r);var u=this.getCellByPosition(r);if(!u){var c=this.rowRenderer.getRowByPosition(r);if(!c||!c.isFullWidth()||n)continue;return c}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),u}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return\"top\"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):\"bottom\"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,r){for(var i=n,l=!1;i&&(i===n||!this.isValidNavigateCell(i));)this.gridOptionsService.is(\"enableRtl\")?t===Rr.LEFT&&(i=this.getLastCellOfColSpan(i)):t===Rr.RIGHT&&(i=this.getLastCellOfColSpan(i)),l=a(i=this.cellNavigationService.getNextCellToFocus(t,i));if(l&&e&&e.key===Rr.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){var s=this.gridOptionsService.getCallback(\"navigateToNextCell\");if(o(s)){var u=s({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});o(u)?(u.floating&&(O(function(){console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\")},\"no floating in userCell\"),u.rowPinned=u.floating),i={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):i=null}}if(i)if(i.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+i.rowIndex,column:n.column},event:e||void 0})}else{var d=this.getNormalisedPosition(i);d?this.focusPosition(d):this.tryToFocusFullWidthRow(i)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var o=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ce(n):n[0])};this.focusPosition(a);var i=null!=o&&this.rowPositionUtils.before(a,o),l={type:Ue.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:i};return this.eventService.dispatchEvent(l),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:ce(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.is(\"groupRowsSticky\"),n=this.rowModel.getRow(e.rowIndex);!(t&&(null==n?void 0:n.sticky))&&a(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},au([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),au([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),au([q(\"focusService\")],t.prototype,\"focusService\",void 0),au([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),au([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),au([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),au([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),au([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),au([q(\"headerNavigationService\")],t.prototype,\"headerNavigationService\",void 0),au([q(\"rowPositionUtils\")],t.prototype,\"rowPositionUtils\",void 0),au([q(\"cellNavigationService\")],t.prototype,\"cellNavigationService\",void 0),au([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),au([G],t.prototype,\"postConstruct\",null),au([V(\"navigationService\")],t)}(ke),lu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),su=function(e){function t(t){var n=e.call(this,'<div class=\"ag-popup-editor\" tabindex=\"-1\"/>')||this;return n.params=t,n}return lu(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,\"keydown\",function(t){Lr(e.gridOptionsService,t,n.node,n.column,!0)||n.onKeyDown(t)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER=\"popupEditorWrapper\",function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(za),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(e){function t(t,n,r,o,a){var i=e.call(this)||this;i.rendererVersion=0,i.editorVersion=0,i.beans=t,i.column=n.getColumn(),i.rowNode=n.getRowNode(),i.rowCtrl=n.getRowCtrl(),i.eRow=o,i.setTemplate('<div comp-id=\"'+i.getCompId()+'\"/>');var l=i.getGui();i.forceWrapper=n.isForceWrapper(),i.refreshWrapper(!1);var s=function(e,t,n){var r=n||l;null!=t&&\"\"!=t?r.setAttribute(e,t):r.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return i.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return pr(l,e)},getFocusableElement:function(){return i.getFocusableElement()},setTabIndex:function(e){return s(\"tabindex\",e.toString())},setRole:function(e){return xt(l,e)},setColId:function(e){return s(\"col-id\",e)},setTitle:function(e){return s(\"title\",e)},setIncludeSelection:function(e){return i.includeSelection=e},setIncludeRowDrag:function(e){return i.includeRowDrag=e},setIncludeDndSource:function(e){return i.includeDndSource=e},setRenderDetails:function(e,t,n){return i.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return i.setEditDetails(e,t,n)},getCellEditor:function(){return i.cellEditor||null},getCellRenderer:function(){return i.cellRenderer||null},getParentOfValue:function(){return i.getParentOfValue()}};return i.cellCtrl=n,n.setComp(u,i.getGui(),i.eCellWrapper,r,a),i}return uu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var r=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!n&&!r&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t))}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=ir('<div class=\"ag-cell-wrapper\" role=\"presentation\"></div>'),this.getGui().appendChild(this.eCellWrapper));var o=!n&&null!=this.eCellWrapper;o&&(or(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass(\"ag-cell-value\",!n);var a=!e&&n,i=a&&null==this.eCellValue;i&&(this.eCellValue=ir('<span class=\"ag-cell-value\" role=\"presentation\"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var l=!a&&null!=this.eCellValue;l&&(or(this.eCellValue),this.eCellValue=void 0);var s=r||o||i||l;return s&&this.removeControls(),e||t&&this.addControls(),s},t.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,t,n){var r=this,o=this.editorVersion,i=e.newAgStackInstance();if(i){var l=e.params;i.then(function(e){return r.afterCellEditorCreated(o,e,l,t,n)}),a(this.cellEditor)&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();rr(t);var n=null!=e?ft(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),or(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),or(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=!this.beans.gridOptionsService.is(\"suppressAnimationFrame\"),r=this.rendererVersion,o=e.componentClass,a=function(){if(t.rendererVersion===r&&t.isAlive()){var n=e.newAgStackInstance(),a=t.afterCellRendererCreated.bind(t,r,o);n&&n.then(a)}};n&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,\"createTasksP2\"):a()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,n){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var r=this.getParentOfValue();rr(r),r.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,t,n,r,o){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn(\"AG Grid: cellEditor for column \"+this.column.getId()+\" is missing getGui() method\"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();var a=r||void 0!==t.isPopup&&t.isPopup();a?this.addPopupCellEditor(n,o):this.addInCellEditor(),this.refreshEditStyles(!0,a),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var n;this.addOrRemoveCssClass(\"ag-cell-inline-editing\",e&&!t),this.addOrRemoveCssClass(\"ag-cell-popup-editing\",e&&!!t),this.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!e||!!t),null===(n=this.rowCtrl)||void 0===n||n.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;\"fullRow\"===this.beans.gridOptionsService.get(\"editType\")&&console.warn(\"AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.\");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new su(e));var o=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&o.appendChild(this.cellEditorGui);var a=this.beans.popupService,i=this.beans.gridOptionsService.is(\"stopEditingWhenCellsLoseFocus\"),l=null!=t?t:r.getPopupPosition?r.getPopupPosition():\"over\",s=this.beans.gridOptionsService.is(\"enableRtl\"),u={ePopup:o,column:this.column,rowNode:this.rowNode,type:\"popupCellEditor\",eventSource:this.getGui(),position:l,alignSide:s?\"right\":\"left\",keepWithinBounds:!0},c=a.positionPopupByComponent.bind(a,u),d=this.beans.localeService.getLocaleTextFunc(),p=a.addPopup({modal:i,eChild:o,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:d(\"ariaLabelCellEditor\",\"Cell Editor\")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&bn()&&e.focus({preventScroll:!0}),rr(this.getParentOfValue())},t}(no),du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pu=function(e){function t(t,n,r){var o=e.call(this)||this;o.cellComps={},o.beans=n,o.rowCtrl=t,o.setTemplate('<div comp-id=\"'+o.getCompId()+'\" style=\"'+o.getInitialStyle(r)+'\"/>');var a=o.getGui(),i=a.style,l={setDomOrder:function(e){return o.domOrder=e},setCellCtrls:function(e){return o.setCellCtrls(e)},showFullWidth:function(e){return o.showFullWidth(e)},getFullWidthCellRenderer:function(){return o.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return o.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return pr(a,e)},setTop:function(e){return i.top=e},setTransform:function(e){return i.transform=e},setRowIndex:function(e){return a.setAttribute(\"row-index\",e)},setRole:function(e){return xt(a,e)},setRowId:function(e){return a.setAttribute(\"row-id\",e)},setRowBusinessKey:function(e){return a.setAttribute(\"row-business-key\",e)},setTabIndex:function(e){return a.setAttribute(\"tabindex\",e.toString())}};return t.setComp(l,o.getGui(),r),o.addDestroyFunc(function(){t.unsetComp(r)}),o}return du(t,e),t.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e),n=this.rowCtrl.getInitialRowTop(e);return t?\"transform: \"+t:\"top: \"+n},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then(function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)})},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach(function(e){var r=e.getInstanceId();null==t.cellComps[r]?t.newCellComp(e):n[r]=null});var r=E(n).filter(function(e){return null!=e});this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach(function(e){var r=t.cellComps[e.getInstanceId()];r&&n.push(r.getGui())}),cr(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new cu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=E(this.cellComps).filter(function(e){return null!=e});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error(\"AG Grid - should not be setting fullWidthRowComponent twice\"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach(function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}})},t}(no),fu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gu=function(){return gu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gu.apply(this,arguments)},hu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},mu=function(e){function t(){var t,n,r,o,a=e.call(this,(t=no.elementGettingCreated.getAttribute(\"name\"),n=qs.getRowContainerCssClasses(t),r=t===fs.CENTER,o=t===fs.TOP_CENTER||t===fs.STICKY_TOP_CENTER||t===fs.BOTTOM_CENTER,r?'<div class=\"'+n.wrapper+'\" ref=\"eWrapper\" role=\"presentation\">\\n                <div class=\"'+n.viewport+'\" ref=\"eViewport\" role=\"presentation\">\\n                    <div class=\"'+n.container+'\" ref=\"eContainer\"></div>\\n                </div>\\n            </div>':o?'<div class=\"'+n.viewport+'\" ref=\"eViewport\" role=\"presentation\">\\n                <div class=\"'+n.container+'\" ref=\"eContainer\"></div>\\n            </div>':'<div class=\"'+n.container+'\" ref=\"eContainer\"></div>'))||this;return a.rowComps={},a.name=no.elementGettingCreated.getAttribute(\"name\"),a.type=Us(a.name),a}return fu(t,e),t.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new qs(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,n=gu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(e){var r=e.getInstanceId(),o=n[r];if(o)t.rowComps[r]=o,delete n[r],t.ensureDomOrder(o.getGui());else{var a=new pu(e,t.beans,t.type);t.rowComps[r]=a,t.appendRow(a.getGui())}}),E(n).forEach(function(e){t.eContainer.removeChild(e.getGui()),e.destroy()}),xt(this.eContainer,e.length?\"rowgroup\":\"presentation\")},t.prototype.appendRow=function(e){this.domOrder?dr(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(ur(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},hu([q(\"beans\")],t.prototype,\"beans\",void 0),hu([oo(\"eViewport\")],t.prototype,\"eViewport\",void 0),hu([oo(\"eContainer\")],t.prototype,\"eContainer\",void 0),hu([oo(\"eWrapper\")],t.prototype,\"eWrapper\",void 0),hu([G],t.prototype,\"postConstruct\",null),hu([z],t.prototype,\"preDestroy\",null),t}(no),vu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Au=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsService.is(\"functionsReadOnly\")){var n=e.dragItem.columns;n&&n.forEach(function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))})}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?pi.ICON_PINNED:pi.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,\"toolPanelDragAndDrop\"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,\"toolPanelDragAndDrop\"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,\"toolPanelDragAndDrop\")},vu([q(\"columnModel\")],e.prototype,\"columnModel\",void 0),vu([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),e}(),yu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Eu=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=t,this.centerContainer=!o(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()})},e.prototype.getIconName=function(){return this.pinned?pi.ICON_PINNED:pi.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===ma.ToolPanel)this.setColumnsVisible(t,!0,\"uiColumnDragged\");else{var n=e.dragItem.visibleState,r=(t||[]).filter(function(e){return n[e.getId()]});this.setColumnsVisible(r,!0,\"uiColumnDragged\")}this.setColumnsPinned(t,this.pinned,\"uiColumnDragged\"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n=\"api\"),e){var r=e.filter(function(e){return!e.getColDef().lockVisible});this.columnModel.setColumnsVisible(r,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n=\"api\"),e){var r=e.filter(function(e){return!e.getColDef().lockPinned});this.columnModel.setColumnsPinned(r,t,n)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.normaliseX=function(e){return this.gridOptionsService.is(\"enableRtl\")&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is(\"enableRtl\")?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,n,r){var o,i=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),r){if(this.lastMovedInfo){var l=this.lastMovedInfo,s=l.columns,u=l.toIndex;this.moveColumns(s,u,\"uiColumnMoved\",!0)}}else if(this.lastDraggingEvent=e,!a(e.hDirection)){var c=this.normaliseX(e.x);t||this.checkCenterForScrolling(c);var d=this.normaliseDirection(e.hDirection),p=e.dragSource.type,f=(null===(o=e.dragSource.getDragItem().columns)||void 0===o?void 0:o.filter(function(e){return!e.getColDef().lockPinned||e.getPinned()==i.pinned}))||[];this.attemptMoveColumns({dragSourceType:p,allMovingColumns:f,hDirection:d,mouseX:c,fromEnter:t,fakeEvent:n})}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.is(\"enableRtl\"))return e;switch(e){case Aa.Left:return Aa.Right;case Aa.Right:return Aa.Left;default:console.error(\"AG Grid: Unknown direction \"+e)}},e.prototype.attemptMoveColumns=function(e){var t=e.dragSourceType,n=e.hDirection,r=e.mouseX,o=e.fromEnter,a=e.fakeEvent,i=n===Aa.Left,l=n===Aa.Right,s=e.allMovingColumns;if(t===ma.HeaderCell){var u=[];s.forEach(function(e){for(var t=null,n=e.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)t=n,n=n.getParent();null!=t?t.getLeafColumns().forEach(function(e){u.includes(e)||u.push(e)}):u.includes(e)||u.push(e)}),s=u}var c=s.slice();this.columnModel.sortColumnsLikeGridColumns(c);var d=this.calculateValidMoves(c,l,r),p=this.calculateOldIndex(c);if(0!==d.length){var f=d[0],g=null!==p&&!o;if(t==ma.HeaderCell&&(g=null!==p),g&&!a){if(i&&f>=p)return;if(l&&f<=p)return}for(var h=this.columnModel.getAllDisplayedColumns(),m=[],v=null,A=0;A<d.length;A++){var y=d[A],E=this.columnModel.getProposedColumnOrder(c,y);if(this.columnModel.doesOrderPassRules(E)){var b=E.filter(function(e){return h.includes(e)});if(null===v)v=b;else if(!Gr.areEqual(b,v))break;var _=this.groupFragCount(E);m.push({move:y,fragCount:_})}}0!==m.length&&(m.sort(function(e,t){return e.fragCount-t.fragCount}),this.moveColumns(s,m[0].move,\"uiColumnMoved\",!1))}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=pe(e.map(function(e){return t.indexOf(e)})),r=n[0];return ce(n)-r!==n.length-1?null:r},e.prototype.moveColumns=function(e,t,n,r){this.columnModel.moveColumns(e,t,n,r),this.lastMovedInfo=r?null:{columns:e,toIndex:t}},e.prototype.groupFragCount=function(e){function t(e){for(var t=[],n=e.getOriginalParent();null!=n;)t.push(n),n=n.getOriginalParent();return t}for(var n=0,r=function(r){var o,a=t(e[r]),i=t(e[r+1]);a=(o=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(a.length>i.length?[a,i]:[i,a],2))[0],i=o[1],a.forEach(function(e){-1===i.indexOf(e)&&n++})},o=0;o<e.length-1;o++)r(o);return n},e.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsService.is(\"suppressMovableColumns\")||e.some(function(e){return e.getColDef().suppressMovable}))return[];var r,o=this.columnModel.getDisplayedColumns(this.pinned),a=this.columnModel.getAllGridColumns(),i=o.filter(function(t){return ve(e,t)}),l=o.filter(function(t){return!ve(e,t)}),s=a.filter(function(t){return!ve(e,t)}),u=0,c=n;if(t){var d=0;i.forEach(function(e){return d+=e.getActualWidth()}),c-=d}if(c>0){for(var p=0;p<l.length&&!((c-=l[p].getActualWidth())<0);p++)u++;t&&u++}if(u>0){var f=l[u-1];r=s.indexOf(f)+1}else-1===(r=s.indexOf(l[0]))&&(r=0);var g=[r],h=function(e,t){return e-t};if(t){for(var m=r+1,v=a.length-1;m<=v;)g.push(m),m++;g.sort(h)}else{m=r,v=a.length-1;for(var A=a[m];m<=v&&this.isColumnHidden(o,A);)m++,g.push(m),A=a[m];for(m=r-1;m>=0;)g.push(m),m--;g.sort(h).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(pi.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(pi.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(pi.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter(function(e){return!e.getColDef().lockPinned});if(r.length>0&&(this.dragAndDropService.setGhostIcon(pi.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?\"left\":\"right\";this.setColumnsPinned(r,o,\"uiColumnDragged\"),this.dragAndDropService.nudge()}}},yu([q(\"columnModel\")],e.prototype,\"columnModel\",void 0),yu([q(\"dragAndDropService\")],e.prototype,\"dragAndDropService\",void 0),yu([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),yu([q(\"ctrlsService\")],e.prototype,\"ctrlsService\",void 0),yu([G],e.prototype,\"init\",null),e}(),bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_u=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cu=function(e){function t(t,n){var r=e.call(this)||this;return r.pinned=t,r.eContainer=n,r}return bu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){switch(e.pinned){case\"left\":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case\"right\":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}})},t.prototype.isInterestedIn=function(e){return e===ma.HeaderCell||e===ma.ToolPanel&&this.gridOptionsService.is(\"allowDragFromColumnsToolPanel\")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Eu(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Au(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===ma.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},_u([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),_u([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),_u([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),_u([G],t.prototype,\"postConstruct\",null),_u([G],t.prototype,\"init\",null),t}(ke),wu=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Su=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,r){return a(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,r)},e.getToolPanelClassesFromColDef=function(e,t,n,r){return a(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r)},e.getClassParams=function(e,t,n,r){return{colDef:e,column:n,columnGroup:r,api:t.api,columnApi:t.columnApi,context:t.context}},e.getColumnClassesFromCollDef=function(e,t,n,r,o){return a(e)?[]:\"string\"==typeof(i=\"function\"==typeof e?e(this.getClassParams(t,n,r,o)):e)?[i]:Array.isArray(i)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wu(arguments[t]));return e}(i):[];var i},e}(),Tu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Du=function(e){function t(n){var r=e.call(this,t.TEMPLATE,n)||this;return r.headerCompVersion=0,r.column=n.getColumnGroupChild(),r.pinned=n.getPinned(),r}return Tu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,r){var o=r||t;null!=n&&\"\"!=n?o.setAttribute(e,n):o.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n(\"col-id\",e)},setTitle:function(e){return n(\"title\",e)},setAriaDescription:function(e){return Ht(t,e)},setAriaSort:function(e){return e?tn(t,e):nn(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);var o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement(\"afterend\",o)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then(function(e){return t.afterCompCreated(n,e)})},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)},t.TEMPLATE='<div class=\"ag-header-cell\" role=\"columnheader\" tabindex=\"-1\">\\n            <div ref=\"eResize\" class=\"ag-header-cell-resize\" role=\"presentation\"></div>\\n            <div ref=\"eHeaderCompWrapper\" class=\"ag-header-cell-comp-wrapper\" role=\"presentation\"></div>\\n        </div>',Ou([oo(\"eResize\")],t.prototype,\"eResize\",void 0),Ou([oo(\"eHeaderCompWrapper\")],t.prototype,\"eHeaderCompWrapper\",void 0),Ou([G],t.prototype,\"postConstruct\",null),Ou([z],t.prototype,\"destroyHeaderComp\",null),t}(El),Ru=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Lu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return Ru(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return null!=n?t.setAttribute(e,n):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setResizableDisplayed:function(t){return Vn(e.eResize,t)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute(\"col-id\",e)},setAriaExpanded:function(e){return n(\"aria-expanded\",e)},setTitle:function(e){return n(\"title\",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then(function(e){return t.afterHeaderCompCreated(e)})},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class=\"ag-header-group-cell\" role=\"columnheader\" tabindex=\"-1\">\\n            <div ref=\"eResize\" class=\"ag-header-cell-resize\" role=\"presentation\"></div>\\n        </div>',Nu([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),Nu([oo(\"eResize\")],t.prototype,\"eResize\",void 0),Nu([G],t.prototype,\"postConstruct\",null),t}(El),Pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e.COLUMN_GROUP=\"group\",e.COLUMN=\"column\",e.FLOATING_FILTER=\"filter\"}(Ys||(Ys={}));var xu,Iu=function(e){function t(t){var n=e.call(this)||this;n.headerComps={};var r=t.getType()==Ys.COLUMN_GROUP?\"ag-header-row-column-group\":t.getType()==Ys.FLOATING_FILTER?\"ag-header-row-column-filter\":\"ag-header-row-column\";return n.setTemplate('<div class=\"ag-header-row '+r+'\" role=\"row\"></div>'),n.ctrl=t,n}return Pu(t,e),t.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return Xt(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;this.headerComps={},e.forEach(function(e){var r=e.getInstanceId(),o=n[r];delete n[r],null==o&&(o=t.createHeaderComp(e),t.getGui().appendChild(o.getGui())),t.headerComps[r]=o}),f(n,function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)});var r=this.gridOptionsService.is(\"ensureDomOrder\"),o=this.gridOptionsService.isDomLayout(\"print\");if(r||o){var a=E(this.headerComps);a.sort(function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()});var i=a.map(function(e){return e.getGui()});cr(this.getGui(),i)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case Ys.COLUMN_GROUP:t=new Lu(e);break;case Ys.FLOATING_FILTER:t=new Cl(e);break;default:t=new Du(e)}return this.createBean(t),t.setParentComponent(this),t},Mu([G],t.prototype,\"init\",null),Mu([z],t.prototype,\"destroyHeaderCtrls\",null),t}(no),ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Fu=0,ju=function(e){function t(t,n){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=n,r.instanceId=t.getUniqueId()+\"-\"+Fu++,r}return ku(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,r=t.column;return Pr(this.gridOptionsService,e,n,r)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case Rr.PAGE_DOWN:case Rr.PAGE_UP:case Rr.PAGE_HOME:case Rr.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,n,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,n,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL=\"headerCtrl\",Bu([q(\"focusService\")],t.prototype,\"focusService\",void 0),Bu([q(\"beans\")],t.prototype,\"beans\",void 0),Bu([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),t}(ke),Hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uu=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.columnOrGroup=t,a.eCell=n,a.ariaEl=a.eCell.querySelector(\"[role=columnheader]\")||a.eCell,a.colsSpanning=o,a.beans=r,a}return Hu(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is(\"enableRtl\")&&this.colsSpanning?ce(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ie.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is(\"suppressColumnMoveAnimation\"),t=o(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),r=t.getOldLeft(),o=this.modifyLeftForPrintLayout(t,r),a=this.modifyLeftForPrintLayout(t,n);this.setLeft(o),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout(\"print\"))return t;if(\"left\"===e.getPinned())return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return\"right\"===e.getPinned()?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(o(e)&&(this.eCell.style.left=e+\"px\"),this.columnOrGroup instanceof ie)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&en(this.ariaEl,n.length),t=n[0]}var r=this.beans.columnModel.getAriaColumnIndex(t);Zt(this.ariaEl,r)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(ke),Yu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},zu=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return Yu(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.is(\"columnHoverHighlight\")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,\"mouseout\",this.onMouseOut.bind(this)),this.addManagedListener(this.element,\"mouseover\",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Gu([q(\"columnHoverService\")],t.prototype,\"columnHoverService\",void 0),Gu([G],t.prototype,\"postConstruct\",null),t}(ke),Vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qu=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Wu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.column=t,r}return Vu(t,e),t.prototype.setComp=function(t,n,r,o){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=o;var a=this.column.getColDef(),i=!!a.filter||!!a.filterFramework,l=!!a.floatingFilter;this.active=i&&l,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,\"click\",this.showParentFilter.bind(this)),this.active&&this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this))},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass(\"ag-floating-filter-full-body\",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass(\"ag-floating-filter-body\",!this.suppressFilterButton);var e=Or(\"filter\",this.gridOptionsService,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new vo(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(this.gridOptionsService.getDocument().activeElement!==this.eGui){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var n=this.getWrapperHasFocus();switch(t.key){case Rr.UP:case Rr.DOWN:n||t.preventDefault();case Rr.LEFT:case Rr.RIGHT:if(n)return;t.stopPropagation();case Rr.ENTER:n&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case Rr.ESCAPE:n||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains(\"ag-floating-filter\"),n=!!e.relatedTarget&&Qn(e.relatedTarget,\"ag-floating-filter\");if(t&&n&&e.target===this.eGui){var r=this.lastFocusEvent,o=!(!r||r.key!==Rr.TAB);if(r&&o){var a=r.shiftKey;this.focusService.focusInto(this.eGui,a)}}var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new zu([this.column],this.eGui));var t=function(){if(e.gridOptionsService.is(\"columnHoverHighlight\")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass(\"ag-column-hover\",t)}};this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Uu(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var n=this.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});n&&this.comp.setCompDetails(n)}},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,\"floatingFilter\",\"filterMenuTab\",[\"filterMenuTab\"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var r=e.filterManager.getCurrentFloatingFilterParentModel(e.column);n.then(function(e){e&&e.onParentModelChanged(r,t)})}};this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+\"px\";e.comp.setWidth(t)};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},qu([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),qu([q(\"columnHoverService\")],t.prototype,\"columnHoverService\",void 0),qu([q(\"menuFactory\")],t.prototype,\"menuFactory\",void 0),t}(ju),Qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ku=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},$u=function(e){function t(t,n,r,o,a){var i=e.call(this)||this;return i.pinned=t,i.column=n,i.eResize=r,i.comp=o,i.ctrl=a,i}return Qu(t,e),t.prototype.postConstruct=function(){var e,t,n=this,r=this.column.getColDef(),o=[],a=function(){o.forEach(function(e){return e()}),o.length=0},i=function(){var i=n.column.isResizable(),l=!n.gridOptionsService.is(\"suppressAutoSize\")&&!r.suppressAutoSize;(i!==e||l!==t)&&(e=i,t=l,a(),function(){if(Vn(n.eResize,e),e){var r=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(o.push(r),t){var a=n.gridOptionsService.is(\"skipHeaderOnAutoSize\"),i=function(){n.columnModel.autoSizeColumn(n.column,a,\"uiColumnResized\")};n.eResize.addEventListener(\"dblclick\",i);var l=new Ma(n.eResize);l.addEventListener(Ma.EVENT_DOUBLE_TAP,i),n.addDestroyFunc(function(){n.eResize.removeEventListener(\"dblclick\",i),l.removeEventListener(Ma.EVENT_DOUBLE_TAP,i),l.destroy()})}}}())};i(),this.addDestroyFunc(a),this.ctrl.addRefreshFunction(i)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,\"uiColumnResized\"),e&&this.comp.addOrRemoveCssClass(\"ag-column-resizing\",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass(\"ag-column-resizing\",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=\"left\"!==this.pinned,r=\"right\"===this.pinned;return this.gridOptionsService.is(\"enableRtl\")?n&&(t*=-1):r&&(t*=-1),t},Ku([q(\"horizontalResizeService\")],t.prototype,\"horizontalResizeService\",void 0),Ku([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Ku([G],t.prototype,\"postConstruct\",null),t}(ke),Xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ju=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Zu=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var r=t.getColDef();return n.filteredOnly=!!(null==r?void 0:r.headerCheckboxSelectionFilteredOnly),n.currentPageOnly=!!(null==r?void 0:r.headerCheckboxSelectionCurrentPageOnly),n}return Xu(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Yo),this.cbSelectAll.addCssClass(\"ag-header-select-all\"),xt(this.cbSelectAll.getGui(),\"presentation\"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Yo.EVENT_CHANGED,this.onCbSelectAll.bind(this)),zt(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute(\"tabindex\",\"-1\"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType(\"selectAllCheckbox\"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e(\"ariaChecked\",\"checked\"):e(\"ariaUnchecked\",\"unchecked\"),n=e(\"ariaRowSelectAll\",\"Press Space to toggle all rows selection\");this.headerCellCtrl.setAriaDescriptionProperty(\"selectAll\",n+\" (\"+t+\")\"),this.cbSelectAll.setInputAriaLabel(n+\" (\"+t+\")\")}else this.headerCellCtrl.setAriaDescriptionProperty(\"selectAll\",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType();return!(\"clientSide\"!==t&&\"serverSide\"!==t&&(console.warn(\"AG Grid: \"+e+\" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using \"+t+\".\"),1))},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t=\"uiSelectAll\";this.currentPageOnly?t=\"uiSelectAllCurrentPage\":this.filteredOnly&&(t=\"uiSelectAllFiltered\");var n={source:t,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};e?this.selectionService.selectAllRowNodes(n):this.selectionService.deselectAllRowNodes(n)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return\"function\"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context})),!!e&&this.checkRightRowModelType(\"headerCheckboxSelection\")},Ju([q(\"gridApi\")],t.prototype,\"gridApi\",void 0),Ju([q(\"columnApi\")],t.prototype,\"columnApi\",void 0),Ju([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Ju([q(\"selectionService\")],t.prototype,\"selectionService\",void 0),t}(ke),ec=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},nc=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=t,r}return ec(t,e),t.prototype.setComp=function(t,n,r,o){var a=this;e.prototype.setGui.call(this,n),this.comp=t,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(o),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new $u(this.getPinned(),this.column,r,t,this)),this.createManagedBean(new zu([this.column],n)),this.createManagedBean(new Uu(this.column,n,this.beans)),this.createManagedBean(new vo(n,{shouldStopEventPropagation:function(e){return a.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,ie.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},t.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,\"uiColumnSorted\")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,\"uiColumnSorted\")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Zu(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t),t.key===Rr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(t),t.key===Rr.ENTER&&this.onEnterKeyPressed(t)},t.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,\"uiColumnSorted\")}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return\"header\"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new Jl(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push(function(){return n.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=Su.getHeaderClassesFromColDef(t,e.gridOptionsService,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(n),n.forEach(function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)}),r.forEach(function(t){return e.comp.addOrRemoveCssClass(t,!1)})};this.refreshFunctions.push(t),t()},t.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var n=!this.gridOptionsService.is(\"suppressDragLeaveHidesColumns\");this.moveDragSource={type:ma.HeaderCell,eElement:e,defaultIconName:n?pi.ICON_HIDE:pi.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,\"uiColumnMoved\")},onDragStopped:function(){return t.column.setMoving(!1,\"uiColumnMoved\")},onGridEnter:function(e){var r;if(n){var o=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!0,\"uiColumnMoved\")}},onGridExit:function(e){var r;if(n){var o=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!1,\"uiColumnMoved\")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&!!t.refresh&&t.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,\"header\",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsService.is(\"suppressMovableColumns\")||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth();e.comp.setWidth(t+\"px\")};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass(\"ag-header-cell-moving\",e.column.isMoving())};this.addManagedListener(this.column,ie.EVENT_MOVING_CHANGED,t),t()},t.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass(\"ag-column-menu-visible\",e.column.isMenuVisible())};this.addManagedListener(this.column,ie.EVENT_MENU_VISIBLE_CHANGED,t),t()},t.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass(\"ag-header-cell-sortable\",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,t=function(){var t=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass(\"ag-header-cell-wrap-text\",t)};t(),this.addRefreshFunction(t)},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,n=e.column,r=e.comp,o=e.columnModel,a=e.gridOptionsService;if(n.isSpanHeaderHeight()){var i=this.getColumnGroupPaddingInfo(),l=i.numberOfParents,s=i.isSpanningTotal;if(r.addOrRemoveCssClass(\"ag-header-span-height\",l>0),0!==l){r.addOrRemoveCssClass(\"ag-header-span-total\",s);var u=a.is(\"pivotMode\")?o.getPivotGroupHeaderHeight():o.getGroupHeaderHeight(),c=o.getColumnHeaderRowHeight(),d=l*u;t.style.setProperty(\"top\",-d+\"px\"),t.style.setProperty(\"height\",c+d+\"px\")}}},t.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var t=e.getPaddingLevel()+1,n=!0;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}},t.prototype.setupAutoHeight=function(e){var t,n=this,r=function(t){if(n.isAlive()){var o=Kn(n.getGui()),a=o.paddingTop+o.paddingBottom+o.borderBottomWidth+o.borderTopWidth,i=e.offsetHeight+a;if(t<5){var l=n.beans.gridOptionsService.getDocument();if(!l||!l.contains(e)||0==i)return void n.beans.frameworkOverrides.setTimeout(function(){return r(t+1)},0)}n.columnModel.setColumnHeaderHeight(n.column,i)}},o=!1,a=function(){var e=n.column.isSpanHeaderHeight(),t=n.column.isAutoHeaderHeight();e?(l(),t&&O(function(){return console.warn(\"AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.\")},\"HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight\")):(t&&!o&&i(),!t&&o&&l())},i=function(){o=!0,r(0),n.comp.addOrRemoveCssClass(\"ag-header-cell-auto-height\",!0),t=n.resizeObserverService.observeResize(e,function(){return r(0)})},l=function(){o=!1,t&&t(),n.comp.addOrRemoveCssClass(\"ag-header-cell-auto-height\",!1),t=void 0};a(),this.addDestroyFunc(function(){return l()}),this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,function(){return o&&r(0)}),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,function(){o&&n.beans.frameworkOverrides.setTimeout(function(){return r(0)})}),this.addRefreshFunction(a)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(It(t)),this.setAriaDescriptionProperty(\"sort\",e(\"ariaSortableColumn\",\"Press ENTER to sort.\"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty(\"sort\",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty(\"menu\",e(\"ariaMenuColumn\",\"Press CTRL ENTER to open column menu.\"))}else this.setAriaDescriptionProperty(\"menu\",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(\" \"):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.is(\"columnHoverHighlight\")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass(\"ag-column-hover\",t)}};this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass(\"ag-header-cell-filtered\",e.column.isFilterActive())};this.addManagedListener(this.column,ie.EVENT_FILTER_ACTIVE_CHANGED,t),t()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader(\"mouseenter\"===t.type)};this.addManagedListener(this.getGui(),\"mouseenter\",t),this.addManagedListener(this.getGui(),\"mouseleave\",t)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass(\"ag-header-active\",e)},tc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),tc([q(\"columnHoverService\")],t.prototype,\"columnHoverService\",void 0),tc([q(\"sortController\")],t.prototype,\"sortController\",void 0),tc([q(\"menuFactory\")],t.prototype,\"menuFactory\",void 0),tc([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),tc([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),tc([q(\"gridApi\")],t.prototype,\"gridApi\",void 0),tc([q(\"columnApi\")],t.prototype,\"columnApi\",void 0),tc([z],t.prototype,\"removeDragSource\",null),t}(ju),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ac=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.eResize=n,a.comp=t,a.pinned=r,a.columnGroup=o,a}return rc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsService.is(\"suppressAutoSize\")){var n=this.gridOptionsService.is(\"skipHeaderOnAutoSize\");this.eResize.addEventListener(\"dblclick\",function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())}),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:\"uiColumnResized\"}),e.resizeLeafColumnsToFit(\"uiColumnResized\")})}}else this.comp.setResizableDisplayed(!1)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter(function(e){return e.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass(\"ag-column-resizing\",!0)},t.prototype.onResizing=function(e,t,n){void 0===n&&(n=\"uiColumnResized\");var r=this.normaliseDragChange(t),o=this.resizeStartWidth+r;this.resizeColumns(o,n,e)},t.prototype.resizeLeafColumnsToFit=function(e){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,e,!0)},t.prototype.resizeColumns=function(e,t,n){void 0===n&&(n=!0);var r=[];if(r.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;r.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:r,finished:n,source:t}),n&&this.comp.addOrRemoveCssClass(\"ag-column-resizing\",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter(function(e){return e.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(t){return e.resizeStartWidth+=t.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)})},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsService.is(\"enableRtl\")?\"left\"!==this.pinned&&(t*=-1):\"right\"===this.pinned&&(t*=-1),t},oc([q(\"horizontalResizeService\")],t.prototype,\"horizontalResizeService\",void 0),oc([q(\"autoWidthCalculator\")],t.prototype,\"autoWidthCalculator\",void 0),oc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),oc([G],t.prototype,\"postConstruct\",null),t}(ke),ic=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lc=function(e){function t(t,n){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=n,r.comp=t,r}return ic(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,ot.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(n){n.addEventListener(\"widthChanged\",t),n.addEventListener(\"visibleChanged\",t),e.removeChildListenersFuncs.push(function(){n.removeEventListener(\"widthChanged\",t),n.removeEventListener(\"visibleChanged\",t)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth(e+\"px\"),this.comp.addOrRemoveCssClass(\"ag-hidden\",0===e)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(ke),sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},cc=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.columnGroup=t,r}return sc(t,e),t.prototype.setComp=function(t,n,r){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,\"header\"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var o=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new zu(a,n)),this.createManagedBean(new Uu(this.columnGroup,n,this.beans)),this.createManagedBean(new lc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new ac(t,r,o,this.columnGroup)),this.createManagedBean(new vo(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(e){var t,n;null===(t=this.groupResizeFeature)||void 0===t||t.onResizeStart(!1),null===(n=this.groupResizeFeature)||void 0===n||n.resizeLeafColumnsToFit(e)},t.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,\"gridInitializing\")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!t){for(var r=this.columnGroup,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var a=r.getColGroupDef();a&&(t=a.headerName),t||(t=o?this.columnModel.getDisplayNameForColumn(o[0],\"header\",!0):\"\")}var i=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(i)},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return\"headerGroup\"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new Jl(n,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,le.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,le.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?\"true\":\"false\"):this.comp.setAriaExpanded(void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Su.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(n.push(\"ag-header-group-cell-no-group\"),this.columnGroup.getLeafColumns().every(function(e){return e.isSpanHeaderHeight()})&&n.push(\"ag-header-span-height\")):n.push(\"ag-header-group-cell-with-group\"),n.forEach(function(t){return e.comp.addOrRemoveCssClass(t,!0)})},t.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass(\"ag-header-cell-moving\",e.columnGroup.isMoving())};t.forEach(function(t){e.addManagedListener(t,ie.EVENT_MOVING_CHANGED,n)}),n()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var n=this.getWrapperHasFocus();if(this.expandable&&n&&t.key===Rr.ENTER){var r=this.columnGroup,o=!r.isExpanded();this.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),o,\"uiColumnExpanded\")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsService.is(\"suppressDragLeaveHidesColumns\"),o={type:ma.HeaderCell,eElement:e,defaultIconName:r?pi.ICON_HIDE:pi.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach(function(e){return e.setMoving(!0,\"uiColumnDragged\")})},onDragStopped:function(){return n.forEach(function(e){return e.setMoving(!1,\"uiColumnDragged\")})},onGridEnter:function(e){var n;if(r){var o=(null===(n=null==e?void 0:e.columns)||void 0===n?void 0:n.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!0,\"uiColumnMoved\")}},onGridExit:function(e){var n;if(r){var o=(null===(n=null==e?void 0:e.columns)||void 0===n?void 0:n.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!1,\"uiColumnMoved\")}}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return t.dragAndDropService.removeDragSource(o)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach(function(e){return t[e.getId()]=e.isVisible()});var n=[];return this.columnModel.getAllDisplayedColumns().forEach(function(t){e.indexOf(t)>=0&&(n.push(t),fe(e,t))}),e.forEach(function(e){return n.push(e)}),{columns:n,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsService.is(\"suppressMovableColumns\")},uc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),uc([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),uc([q(\"gridApi\")],t.prototype,\"gridApi\",void 0),uc([q(\"columnApi\")],t.prototype,\"columnApi\",void 0),t}(ju),dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},fc=0,gc=function(e){function t(t,n,r){var o=e.call(this)||this;return o.instanceId=fc++,o.headerCellCtrls={},o.rowIndex=t,o.pinned=n,o.type=r,o}return dc(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),hn()&&this.comp.setTransform(\"translateZ(0)\"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener(\"headerHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"pivotHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"groupHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"pivotGroupHeaderHeight\",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener(\"floatingFiltersHeight\",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return c(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+\"px\")},t.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout(\"print\")?null!=this.pinned?0:this.columnModel.getContainerWidth(\"right\")+this.columnModel.getContainerWidth(\"left\")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],n=0;this.columnModel.hasFloatingFilters()&&(e++,n=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),o=this.columnModel.getColumnHeaderRowHeight(),a=e-(1+n),i=0;i<a;i++)t.push(r);for(t.push(o),i=0;i<n;i++)t.push(this.columnModel.getFloatingFiltersHeight());var l=0;for(i=0;i<this.rowIndex;i++)l+=t[i];var s=t[this.rowIndex]+\"px\";this.comp.setTop(l+\"px\"),this.comp.setHeight(s)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach(function(n){if(!n.isEmptyGroup()){var r=n.getUniqueId(),o=t[r];if(delete t[r],o&&o.getColumnGroupChild()!=n&&(e.destroyBean(o),o=void 0),null==o)switch(e.type){case Ys.FLOATING_FILTER:o=e.createBean(new Wu(n,e));break;case Ys.COLUMN_GROUP:o=e.createBean(new cc(n,e));break;default:o=e.createBean(new nc(n,e))}e.headerCellCtrls[r]=o}}),f(t,function(t,n){var r;r=n,e.focusService.isHeaderWrapperFocused(r)&&e.columnModel.isDisplayed(r.getColumnGroupChild())?e.headerCellCtrls[t]=n:e.destroyBean(n)});var n=E(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},t.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout(\"print\")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[\"left\",null,\"right\"].forEach(function(r){var o=e.columnModel.getVirtualHeaderGroupRow(r,n);t=t.concat(o)}),t},t.prototype.getActualDepth=function(){return this.type==Ys.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,t){var n=E(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()==e});return!!n&&(n.focus(t),!0)},t.prototype.destroy=function(){var t=this;f(this.headerCellCtrls,function(e,n){t.destroyBean(n)}),this.headerCellCtrls={},e.prototype.destroy.call(this)},pc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),pc([q(\"focusService\")],t.prototype,\"focusService\",void 0),t}(ke),hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vc=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Ac=function(e){function t(t){var n=e.call(this)||this;return n.hidden=!1,n.groupsRowCtrls=[],n.pinned=t,n}return hc(t,e),t.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,Ue.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var t=new Cu(this.pinned,e);this.createManagedBean(t)},t.prototype.refresh=function(e){var t=this;void 0===e&&(e=!1);var n,r,o=new zr,a=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var n=0;n<e;n++){var r=t.createBean(new gc(o.next(),t.pinned,Ys.COLUMN_GROUP));t.groupsRowCtrls.push(r)}}(),n=o.next(),((r=!(t.hidden||null!=t.columnsRowCtrl&&e&&t.columnsRowCtrl.getRowIndex()===n))||t.hidden)&&(t.columnsRowCtrl=t.destroyBean(t.columnsRowCtrl)),r&&(t.columnsRowCtrl=t.createBean(new gc(n,t.pinned,Ys.COLUMN))),function(){var n=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(t.columnModel.hasFloatingFilters()&&!t.hidden){var r=o.next();if(t.filtersRowCtrl){var a=t.filtersRowCtrl.getRowIndex()!==r;e&&!a||n()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new gc(r,t.pinned,Ys.FLOATING_FILTER)))}else n()}();var i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(a)},t.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vc(arguments[t]));return e}(this.groupsRowCtrls);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Bs(function(t){return e.comp.setCenterWidth(t+\"px\")},!0))},t.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},t.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=\"left\"===this.pinned,n=\"right\"===this.pinned;this.hidden=!0;var r=function(){var r=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=r){var o=0==r,a=e.hidden!==o,i=e.gridOptionsService.is(\"enableRtl\"),l=e.gridOptionsService.getScrollbarWidth(),s=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?r+l:r;e.comp.setPinnedContainerWidth(s+\"px\"),e.comp.setDisplayed(!o),a&&(e.hidden=o,e.refresh())}};this.addManagedListener(this.eventService,Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,Ue.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ie){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},t.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},t.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},t.prototype.focusHeader=function(e,t,n){var r=this.getAllCtrls()[e];return!!r&&r.focusHeader(t,n)},t.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),e.prototype.destroy.call(this)},mc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),mc([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),mc([q(\"pinnedWidthService\")],t.prototype,\"pinnedWidthService\",void 0),mc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),mc([q(\"focusService\")],t.prototype,\"focusService\",void 0),t}(ke),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ec=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},bc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return yc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(t){return e.setDisplayed(t)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setViewportScrollLeft:function(t){return e.getGui().scrollLeft=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new Ac(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=\"left\"==this.pinned,n=\"right\"==this.pinned,r=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(e){var o=e.getInstanceId(),a=r[o];delete r[o];var i=a||n.createBean(new Iu(e));n.headerRowComps[o]=i,n.rowCompsList.push(i),function(e){var r=e.getGui();r.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(r),t&&ur(n.eRowContainer,r,t),t=r}(i)}),E(r).forEach(function(e){return n.destroyRowComp(e)})},t.PINNED_LEFT_TEMPLATE='<div class=\"ag-pinned-left-header\" role=\"presentation\"></div>',t.PINNED_RIGHT_TEMPLATE='<div class=\"ag-pinned-right-header\" role=\"presentation\"></div>',t.CENTER_TEMPLATE='<div class=\"ag-header-viewport\" role=\"presentation\">\\n            <div class=\"ag-header-container\" ref=\"eCenterContainer\" role=\"rowgroup\"></div>\\n        </div>',Ec([oo(\"eCenterContainer\")],t.prototype,\"eCenterContainer\",void 0),Ec([G],t.prototype,\"init\",null),Ec([z],t.prototype,\"destroyRowComps\",null),t}(no),_c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e[e.UP=0]=\"UP\",e[e.DOWN=1]=\"DOWN\",e[e.LEFT=2]=\"LEFT\",e[e.RIGHT=3]=\"RIGHT\"}(xu||(xu={}));var wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _c(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,t,n){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var r=t.headerRowIndex,o=t.column,a=this.getHeaderRowCount(),i=e===xu.UP?this.headerPositionUtils.getColumnVisibleParent(o,r):this.headerPositionUtils.getColumnVisibleChild(o,r),l=i.nextRow,s=i.nextFocusColumn,u=!1;return l<0&&(l=0,s=o,u=!0),l>=a&&(l=-1),!(!u&&!s)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:s},allowUserOverride:!0,event:n})},t.prototype.navigateHorizontally=function(e,t,n){void 0===t&&(t=!1);var r,o,a=this.focusService.getFocusedHeader();return e===xu.LEFT!==this.gridOptionsService.is(\"enableRtl\")?(o=\"Before\",r=this.headerPositionUtils.findHeader(a,o)):(o=\"After\",r=this.headerPositionUtils.findHeader(a,o)),r||!t?this.focusService.focusHeaderPosition({headerPosition:r,direction:o,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(a,o,n)},t.prototype.focusNextHeaderRow=function(e,t,n){var r,o=e.headerRowIndex,a=null;return\"Before\"===t?o>0&&(r=o-1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,\"end\")):(r=o+1,a=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,\"start\")),this.focusService.focusHeaderPosition({headerPosition:a,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t=\"After\"),!e.getPinned()){var n;if(e instanceof ot){var r=e.getDisplayedLeafColumns();n=\"Before\"===t?ce(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},Cc([q(\"focusService\")],t.prototype,\"focusService\",void 0),Cc([q(\"headerPositionUtils\")],t.prototype,\"headerPositionUtils\",void 0),Cc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Cc([G],t.prototype,\"postConstruct\",null),Cc([V(\"headerNavigationService\")],t)}(ke),Sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sc(t,e),t.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new vo(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener(\"headerHeight\",e),this.addManagedPropertyListener(\"pivotHeaderHeight\",e),this.addManagedPropertyListener(\"groupHeaderHeight\",e),this.addManagedPropertyListener(\"pivotGroupHeaderHeight\",e),this.addManagedPropertyListener(\"floatingFiltersHeight\",e),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_GRID_STYLES_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e,t=this.columnModel,n=0,r=t.getHeaderRowCount();t.hasFloatingFilters()&&(r++,n=1);var o=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),i=r-(1+n);if(e=n*t.getFloatingFiltersHeight(),e+=i*o,e+=a,this.headerHeight!==e){this.headerHeight=e;var l=e+1+\"px\";this.comp.setHeightAndMinHeight(l),this.eventService.dispatchEvent({type:Ue.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass(\"ag-pivot-on\",e),this.comp.addOrRemoveCssClass(\"ag-pivot-off\",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some(function(e){return e.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass(\"ag-header-allow-overflow\",e)},t.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.is(\"enableRtl\"),n=e.shiftKey!==t?xu.LEFT:xu.RIGHT;(this.headerNavigationService.navigateHorizontally(n,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var t=null;switch(e.key){case Rr.LEFT:t=xu.LEFT;case Rr.RIGHT:o(t)||(t=xu.RIGHT),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case Rr.UP:t=xu.UP;case Rr.DOWN:o(t)||(t=xu.DOWN),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},Tc([q(\"headerNavigationService\")],t.prototype,\"headerNavigationService\",void 0),Tc([q(\"focusService\")],t.prototype,\"focusService\",void 0),Tc([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Tc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),t}(ke),Dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Dc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Oc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new bc(\"left\")),n(new bc(null)),n(new bc(\"right\"))},t.TEMPLATE='<div class=\"ag-header\" role=\"presentation\"/>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(no),Nc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Pc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(n,!0),function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Lc([q(\"dragService\")],t.prototype,\"dragService\",void 0),Lc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Lc([V(\"horizontalResizeService\")],t)}(ke),Mc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ic=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mc(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,function(r){n.popupService.positionPopupUnderMouseEvent({column:e,type:\"columnMenu\",mouseEvent:t,ePopup:r})},\"columnMenu\",t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var r=this;this.showPopup(e,function(o){r.popupService.positionPopupByComponent({type:n,eventSource:t,ePopup:o,keepWithinBounds:!0,position:\"under\",column:e})},n,t)},t.prototype.showPopup=function(e,t,n,r){var o=this,a=this.filterManager.getOrCreateFilterWrapper(e,\"COLUMN_MENU\");if(!a)throw new Error(\"AG Grid - unable to show popup filter, filter instantiation failed\");var i,l=document.createElement(\"div\");xt(l,\"presentation\"),l.classList.add(\"ag-menu\"),this.tabListener=this.addManagedListener(l,\"keydown\",function(e){return o.trapFocusWithin(e,l)}),a.guiPromise.then(function(e){return l.appendChild(e)});var s=r||this.ctrlsService.getGridBodyCtrl().getGui(),u=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,\"contextMenu\");var n,i=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),i&&r&&ar(r)){var l=o.focusService.findTabbableParent(r);l&&l.focus()}null===(n=a.filterPromise)||void 0===n||n.then(function(e){var t;return null===(t=null==e?void 0:e.afterGuiDetached)||void 0===t?void 0:t.call(e)})},positionCallback:function(){return t(l)},anchorToElement:s,ariaLabel:u(\"ariaLabelColumnMenu\",\"Column Menu\")});c&&(this.hidePopup=i=c.hideFunc),a.filterPromise.then(function(e){t(l),e.afterGuiAttached&&e.afterGuiAttached({container:n,hidePopup:i})}),e.setMenuVisible(!0,\"contextMenu\")},t.prototype.trapFocusWithin=function(e,t){e.key!==Rr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()&&e.getMenuTabs([\"filterMenuTab\"]).includes(\"filterMenuTab\")},xc([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),xc([q(\"popupService\")],t.prototype,\"popupService\",void 0),xc([q(\"focusService\")],t.prototype,\"focusService\",void 0),xc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),xc([V(\"menuFactory\")],t)}(ke),kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Fc=function(e){function t(n){var r=e.call(this,t.getTemplate(n.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=n,n.items&&n.items.forEach(function(e){return r.addItem(e)}),r}return kc(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new vo(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc(function(){var t,n,r;return null===(r=null===(n=null===(t=e.activeItem)||void 0===t?void 0:t.tabbedItem)||void 0===n?void 0:n.afterDetachedCallback)||void 0===r?void 0:r.call(n)})},t.getTemplate=function(e){return'<div class=\"ag-tabs '+e+'\">\\n            <div ref=\"eHeader\" role=\"tablist\" class=\"ag-tabs-header '+(e?e+\"-header\":\"\")+'\"></div>\\n            <div ref=\"eBody\" role=\"presentation\" class=\"ag-tabs-body '+(e?e+\"-body\":\"\")+'\"></div>\\n        </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsService.getDocument();switch(e.key){case Rr.RIGHT:case Rr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=e.key===Rr.RIGHT,r=this.gridOptionsService.is(\"enableRtl\"),o=this.items.indexOf(this.activeItem),a=n!==r?Math.min(o+1,this.items.length-1):Math.max(o-1,0);if(o===a)return;e.preventDefault();var i=this.items[a];this.showItemWrapper(i),i.eHeaderButton.focus();break;case Rr.UP:case Rr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,r=t.eHeader,o=t.eBody,a=t.activeItem,i=this.gridOptionsService.getDocument().activeElement,l=e.target;if(e.preventDefault(),r.contains(i))n.focusInto(o,e.shiftKey);else{var s=null;n.isTargetUnderManagedComponent(o,l)&&(e.shiftKey&&(s=this.focusService.findFocusableElementBeforeTabGuard(o,l)),s||(s=a.eHeaderButton)),!s&&o.contains(i)&&((s=n.findNextFocusableElement(o,!1,e.shiftKey))||(s=a.eHeaderButton)),s&&s.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement(\"span\");xt(t,\"tab\"),t.setAttribute(\"tabIndex\",\"-1\"),t.appendChild(e.title),t.classList.add(\"ag-tab\"),this.eHeader.appendChild(t),Ft(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener(\"click\",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=this.items.find(function(t){return t.tabbedItem===e});t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t,n,r=this,o=e.tabbedItem,a=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),rr(this.eBody),o.bodyPromise.then(function(e){r.eBody.appendChild(e);var t=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,t),o.afterAttachedCallback&&o.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var n=o.getScrollableContainer&&o.getScrollableContainer()||e;r.lastScrollListener=r.addManagedListener(n,\"scroll\",function(){r.tabbedItemScrollMap.set(o.name,n.scrollTop)});var a=r.tabbedItemScrollMap.get(o.name);void 0!==a&&setTimeout(function(){n.scrollTop=a},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove(\"ag-tab-selected\"),null===(n=(t=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===n||n.call(t)),a.classList.add(\"ag-tab-selected\"),this.activeItem=e):F(this.params.onActiveItemClicked)},Bc([q(\"focusService\")],t.prototype,\"focusService\",void 0),Bc([oo(\"eHeader\")],t.prototype,\"eHeader\",void 0),Bc([oo(\"eBody\")],t.prototype,\"eBody\",void 0),Bc([G],t.prototype,\"postConstruct\",null),t}(no);function jc(e){return O(function(){return console.warn(\"AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.\")},\"simpleHttpRequest\"),new qr(function(t){var n=new XMLHttpRequest;n.open(\"GET\",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}})}var Hc,Uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Uc(t,e),t.prototype.observeResize=function(e,t){var n,r,o,a,i,l=this,s=this.gridOptionsService.getDocument().defaultView||window,u=this.gridOptionsService.is(\"suppressBrowserResizeObserver\");return s.ResizeObserver&&!u?((n=new s.ResizeObserver(t)).observe(e),function(){return n.disconnect()}):(r=sr(e),o=lr(e),a=!0,(i=function(){if(a){var n=sr(e),s=lr(e);(n!==r||s!==o)&&(r=n,o=s,t()),l.doNextPolyfillTurn(i)}})(),function(){return a=!1})},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach(function(e){return e()})},50))},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"resizeObserverService\")],t)}(ke),Gc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastPage=0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return Gc(t,e),t.prototype.setScrollTop=function(e){var t=this.gridOptionsService.is(\"pagination\");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){var n=this.paginationProxy.getCurrentPage();n!==this.lastPage&&(this.lastPage=n,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is(\"suppressAnimationFrame\")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn(\"AG Grid: AnimationFrameService.\"+e+\" called but animation frames are off\")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort(function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder}),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn(\"createTasksP3\"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn(\"executeFrame\");for(var t=this.createTasksP1,n=t.list,r=this.createTasksP2,o=r.list,a=this.destroyTasks,i=(new Date).getTime(),l=(new Date).getTime()-i,s=e<=0,u=this.ctrlsService.getGridBodyCtrl();s||l<e;){if(!u.getScrollFeature().scrollGridIfNeeded()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(o.length)this.sortTaskList(r),c=o.pop().task;else{if(!a.length){this.cancelledTasks.clear();break}c=a.pop()}this.cancelledTasks.has(c)||c()}l=(new Date).getTime()-i}n.length||o.length||a.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsService.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask(function(){n=!1,e()})):t.getFrameworkOverrides().setTimeout(e,0)}},zc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),zc([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),zc([G],t.prototype,\"init\",null),zc([V(\"animationFrameService\")],t)}(ke),qc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wc=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Qc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(n),this.addElementsToContainerAndGetWidth(r)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement(\"form\");n.style.position=\"fixed\";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(n),e.forEach(function(e){return t.cloneItemIntoDummy(e,n)});var o=n.offsetWidth;return r.removeChild(n),o+this.getAutoSizePadding()},t.prototype.getAutoSizePadding=function(){var e=this.gridOptionsService.getNum(\"autoSizePadding\");return null!=e&&e>=0?e:20},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(n){var r=n.getHtmlElementForColumnHeader(e);null!=r&&(t=r)}),t},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width=\"\",n.style.position=\"static\",n.style.left=\"\";var r=document.createElement(\"div\"),o=r.classList;[\"ag-header-cell\",\"ag-header-group-cell\"].some(function(e){return n.classList.contains(e)})?(o.add(\"ag-header\",\"ag-header-row\"),r.style.position=\"static\"):o.add(\"ag-row\");for(var a=e.parentElement;a;){if([\"ag-header-row\",\"ag-row\"].some(function(e){return a.classList.contains(e)})){for(var i=0;i<a.classList.length;i++){var l=a.classList[i];\"ag-row-position-absolute\"!=l&&o.add(l)}break}a=a.parentElement}r.appendChild(n),t.appendChild(r)},Wc([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),Wc([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Wc([q(\"rowCssClassCalculator\")],t.prototype,\"rowCssClassCalculator\",void 0),Wc([G],t.prototype,\"postConstruct\",null),Wc([V(\"autoWidthCalculator\")],t)}(ke),Kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$c=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Xc=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Jc=function(e){function t(t,n){var r=e.call(this)||this;return r.createRowCon=t,r.destroyRowCtrls=n,r.stickyRowCtrls=[],r.containerHeight=0,r}return Kc(t,e),t.prototype.postConstruct=function(){var e=this;this.isClientSide=\"clientSide\"===this.rowModel.getType(),this.ctrlsService.whenReady(function(t){e.gridBodyCtrl=t.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=this,t=0;if(this.gridOptionsService.is(\"groupRowsSticky\")){for(var n=[],r=this.rowRenderer.getFirstVisibleVerticalPixel(),o=function(o){var a,i,l,s;if(n.push(o),e.isClientSide){for(var u=o;u.expanded;)if(u.master)u=u.detailNode;else if(u.childrenAfterSort){if(0===u.childrenAfterSort.length)break;u=ce(u.childrenAfterSort)}s=u.rowTop+u.rowHeight}else{var c=null===(a=o.childStore)||void 0===a?void 0:a.getStoreBounds();s=(null!==(i=null==c?void 0:c.heightPx)&&void 0!==i?i:0)+(null!==(l=null==c?void 0:c.topPx)&&void 0!==l?l:0)}var d=r+t+o.rowHeight;o.stickyRowTop=s<d?t+(s-d):t,t=0,n.forEach(function(e){var n=e.stickyRowTop+e.rowHeight;t<n&&(t=n)})};;){var a=r+t,i=this.rowModel.getRowIndexAtPixel(a),l=this.rowModel.getRow(i);if(null==l)break;if(l.level<0)break;for(var s=[],u=l.parent;u.level>=0;)s.push(u),u=u.parent;var c=s.reverse().find(function(e){return n.indexOf(e)<0&&e.displayed});if(c)o(c);else{if(!(l.isExpandable()&&l.expanded&&l.rowTop<a))break;o(l)}}this.refreshNodesAndContainerHeight(n,t)}else this.refreshNodesAndContainerHeight([],t)},t.prototype.refreshStickyNode=function(e){for(var t=[],n=0;n<this.stickyRowCtrls.length;n++){var r=this.stickyRowCtrls[n].getRowNode();r!==e&&t.push(r)}this.refreshNodesAndContainerHeight(t,this.containerHeight),this.checkStickyRows()},t.prototype.refreshNodesAndContainerHeight=function(e,t){var n,r,o,a=this,i=this.stickyRowCtrls.filter(function(t){return-1===e.indexOf(t.getRowNode())}),l=e.filter(function(e){return-1===a.stickyRowCtrls.findIndex(function(t){return t.getRowNode()===e})}),s={};i.forEach(function(e){s[e.getRowNode().id]=e,a.stickyRowCtrls=a.stickyRowCtrls.filter(function(t){return t!==e})});try{for(var u=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(Object.values(s)),c=u.next();!c.done;c=u.next())c.value.getRowNode().sticky=!1}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}this.destroyRowCtrls(s,!1);var d=l.map(function(e){return e.sticky=!0,a.createRowCon(e,!1,!1)});(o=this.stickyRowCtrls).push.apply(o,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xc(arguments[t]));return e}(d)),this.stickyRowCtrls.forEach(function(e){return e.setRowTop(e.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(e,t){return t.getRowNode().rowIndex-e.getRowNode().rowIndex}),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t))},$c([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),$c([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),$c([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),$c([G],t.prototype,\"postConstruct\",null),t}(ke),Zc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ed=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},td=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},nd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(td(arguments[t]));return e},rd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t.dataFirstRenderedFired=!1,t}return Zc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},t.prototype.initialise=function(){if(this.addManagedListener(this.eventService,Ue.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener(\"domLayout\",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener(\"rowClass\",this.redrawRows.bind(this)),this.gridOptionsService.is(\"groupRowsSticky\")){var e=this.rowModel.getType();\"clientSide\"!=e&&\"serverSide\"!=e?O(function(){return console.warn(\"AG Grid: The feature Sticky Row Groups only works with the Client Side or Server Side Row Model\")},\"rowRenderer.stickyWorksWithCsrmOnly\"):this.stickyRowFeature=this.createManagedBean(new Jc(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout(\"print\"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is(\"embedFullWidthRows\"),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsService.is(\"keepDetailRows\")){var e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new od(t)}},t.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptionsService.getNum(\"keepDetailRowsCount\");return o(e)&&e>0?e:10},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=E(this.rowCtrlsByRowIndex),t=this.gridOptionsService.is(\"ensureDomOrder\"),n=this.gridOptionsService.isDomLayout(\"print\");(t||n)&&e.sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex});var r=E(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=nd(e,r,o)},t.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach(function(t){return t.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(t){return t.onFullWidthRowFocused(e)})},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_CELL_FOCUSED,function(t){e.onCellFocusChanged(t)}),this.addManagedListener(this.eventService,Ue.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),this.addManagedListener(this.eventService,Ue.EVENT_FLASH_CELLS,function(t){e.getAllCellCtrls().forEach(function(e){return e.onFlashCells(t)})}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onColumnHover()})}),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(e){return e.onLeftChanged()})}),this.gridOptionsService.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Ue.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(e){return e.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Ue.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach(function(t){var n=function(n){e.getAllCellCtrls().forEach(function(e){e.getColumn()===t&&n(e)})},r=function(){n(function(e){return e.onLeftChanged()})},o=function(){n(function(e){return e.onWidthChanged()})},a=function(){n(function(e){return e.onFirstRightPinnedChanged()})},i=function(){n(function(e){return e.onLastLeftPinnedChanged()})},l=function(){n(function(e){return e.onColDefChanged()})};t.addEventListener(\"leftChanged\",r),t.addEventListener(\"widthChanged\",o),t.addEventListener(\"firstRightPinnedChanged\",a),t.addEventListener(\"lastLeftPinnedChanged\",i),t.addEventListener(\"colDefChanged\",l),e.destroyFuncsForColumnListeners.push(function(){t.removeEventListener(\"leftChanged\",r),t.removeEventListener(\"widthChanged\",o),t.removeEventListener(\"firstRightPinnedChanged\",a),t.removeEventListener(\"lastLeftPinnedChanged\",i),t.removeEventListener(\"colDefChanged\",l)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout(\"print\"),t=e||this.gridOptionsService.is(\"embedFullWidthRows\"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach(function(n){var r=n.getCellElement(e);r&&t.push(r)}),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach(function(e){e.destroyFirstPass(),e.destroySecondPass()}),e.length=0,t&&t.forEach(function(t){var r=new ms(t,n.beans,!1,!1,n.printLayout);e.push(r)})},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return a(e)||f(this.rowCtrlsByRowIndex,function(n,r){var o=r.getRowNode();e.indexOf(o)>=0&&t.push(n)}),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsService.getDocument().activeElement,r=this.gridOptionsService.getDomData(n,cs.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsService.getDomData(n,ms.DOM_DATA_KEY_ROW_CTRL);return r||o?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&this.gridOptionsService.isAnimateRows(),o=n?this.recycleRows():null;n||this.removeAllRowComps(),this.redraw(o,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsService.is(\"suppressScrollOnNewData\");t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error(\"AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.\");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.onCellFocusChanged({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:\"mock\"})},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach(function(t){t.stopEditing(e)})},t.prototype.getAllCellCtrls=function(){for(var e=[],t=this.getAllRowCtrls(),n=t.length,r=0;r<n;r++)for(var o=t[r].getAllCellCtrls(),a=o.length,i=0;i<a;i++)e.push(o[i]);return e},t.prototype.getAllRowCtrls=function(){var e,t,n=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],r=nd(this.topRowCtrls,this.bottomRowCtrls,n);try{for(var o=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(Object.keys(this.rowCtrlsByRowIndex)),a=o.next();!a.done;a=o.next()){var i=a.value;r.push(this.rowCtrlsByRowIndex[i])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},t.prototype.addRenderedRowListener=function(e,t,n){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){return e.flashCell({flashDelay:t,fadeDelay:n})})},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)}),this.getFullWidthRowCtrls(e.rowNodes).forEach(function(e){e.refreshFullWidth()})},t.prototype.getCellRendererInstances=function(e){var t,n=this,r=this.getCellCtrls(e.rowNodes,e.columns).map(function(e){return e.getCellRenderer()}).filter(function(e){return null!=e});if(null===(t=e.columns)||void 0===t?void 0:t.length)return r;var o=[],a=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(e){if((!a||n.isRowInMap(e.getRowNode(),a))&&e.isFullWidth()){var t=e.getFullWidthCellRenderer();t&&o.push(t)}}),nd(o,r)},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){var n=e.getCellEditor();n&&t.push(n)}),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}}),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach(function(e){var n=e.id;\"top\"===e.rowPinned?t.top[n]=e:\"bottom\"===e.rowPinned?t.bottom[n]=e:t.normal[n]=e}),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,r=e.rowPinned;return\"bottom\"===r?null!=t.bottom[n]:\"top\"===r?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,r=this,a=this.mapRowNodes(e),i=[];return o(t)&&(n={},t.forEach(function(e){var t=r.columnModel.getGridColumn(e);o(t)&&(n[t.getId()]=!0)})),this.getAllRowCtrls().forEach(function(e){return o=(t=e).getRowNode(),void((null==a||r.isRowInMap(o,a))&&t.getAllCellCtrls().forEach(function(e){var t=e.getColumn().getId();n&&!n[t]||i.push(e)}));var t,o}),i},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];f(this.rowCtrlsByRowIndex,function(t,n){null==n.getRowNode().id&&e.push(t)}),this.removeRowCtrls(e);var t={};return f(this.rowCtrlsByRowIndex,function(e,n){var r=n.getRowNode();t[r.id]=n}),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach(function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]})},t.prototype.onBodyScroll=function(e){\"vertical\"===e.direction&&this.redrawAfterScroll()},t.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&bn()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(!0),null!=e){var t=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==t&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach(function(e){return t[e]=!0});var n=Object.keys(this.rowCtrlsByRowIndex).filter(function(e){return!t[e]});this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=Ln(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var o=r.getRowNode().rowIndex;null!=o&&(o<t.firstRenderedRow||o>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&n.push(o)};return f(this.rowCtrlsByRowIndex,r),f(e,r),n.sort(function(e,t){return e-t}),n=n.filter(function(e){var n=t.paginationProxy.getRow(e);return n&&!n.sticky})},t.prototype.redraw=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var a=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(a),this.printLayout&&(t=!1),a.forEach(function(a){o(r.createOrUpdateRowCtrl(a,e,t,n))}),e&&(!n||this.gridOptionsService.is(\"suppressAnimationFrame\")||this.printLayout?this.destroyRowCtrls(e,t):this.beans.animationFrameService.addDestroyTask(function(){r.destroyRowCtrls(e,t),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()})),this.updateAllRowCtrls()},t.prototype.dispatchDisplayedRowsChanged=function(e){void 0===e&&(e=!1);var t={type:Ue.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return this.getAllRowCtrls().filter(function(e){if(!e.isFullWidth())return!1;var r=e.getRowNode();return!(null!=n&&!t.isRowInMap(r,n))})},t.prototype.refreshFullWidthRow=function(e){var t=this.getFullWidthRowCtrls().find(function(t){return t.getRowNode()===e});t&&(t.refreshFullWidth()||(e.sticky?this.stickyRowFeature.refreshStickyNode(e):this.removeRowCtrls([e.rowIndex]),this.redrawAfterScroll()))},t.prototype.createOrUpdateRowCtrl=function(e,t,n,r){var a,i=this.rowCtrlsByRowIndex[e];if(i||o(a=this.paginationProxy.getRow(e))&&o(t)&&t[a.id]&&a.alreadyRendered&&(i=t[a.id],t[a.id]=null),!i){if(a||(a=this.paginationProxy.getRow(e)),!o(a))return;i=this.createRowCon(a,n,r)}return a&&(a.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=i,i},t.prototype.destroyRowCtrls=function(e,t){var n=this,r=[];f(e,function(e,o){o&&(n.cachedRowCtrls&&o.isCacheable()?n.cachedRowCtrls.addRow(o):(o.destroyFirstPass(),t?(n.zombieRowCtrls[o.getInstanceId()]=o,r.push(function(){o.destroySecondPass(),delete n.zombieRowCtrls[o.getInstanceId()]})):o.destroySecondPass()))}),t&&(r.push(function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()}),N(r))},t.prototype.getRowBuffer=function(){var e=this.gridOptionsService.getNum(\"rowBuffer\");return\"number\"==typeof e?e<0&&(O(function(){return console.warn(\"AG Grid: rowBuffer should not be negative\")},\"warn rowBuffer negative\"),e=0,this.gridOptionsService.set(\"rowBuffer\",0)):e=10,e},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var n=this.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),o=this.gridOptionsService.is(\"suppressRowVirtualisation\"),a=!1,i=void 0,l=void 0;do{var s=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,d=u.pageLastPixel,p=this.rowContainerHeightService.getDivStretchOffset(),f=r.getScrollFeature().getVScrollPosition(),g=f.top,h=f.bottom;o?(i=c+p,l=d+p):(i=Math.max(g+s-n,c)+p,l=Math.min(h+s+n,d)+p),this.firstVisibleVPixel=Math.max(g+s,c)+p,a=this.ensureAllRowsInRangeHaveHeightsCalculated(i,l)}while(a);var m=this.paginationProxy.getRowIndexAtPixel(i),v=this.paginationProxy.getRowIndexAtPixel(l),A=this.paginationProxy.getPageFirstRow(),y=this.paginationProxy.getPageLastRow();m<A&&(m=A),v>y&&(v=y),e=m,t=v}else e=0,t=-1;var E=this.gridOptionsService.isDomLayout(\"normal\"),b=this.gridOptionsService.is(\"suppressMaxRenderedRowRestriction\"),_=Math.max(this.getRowBuffer(),500);E&&!b&&t-e>_&&(t=e+_);var C=e!==this.firstRenderedRow,w=t!==this.lastRenderedRow;if(C||w){this.firstRenderedRow=e,this.lastRenderedRow=t;var S={type:Ue.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(S)}},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:Ue.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(t)})}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),r=e.isEditing(),o=t.detail;return(n||r||o)&&!!this.paginationProxy.isRowPresent(t)||!1},t.prototype.createRowCon=function(e,t,n){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var o=this.gridOptionsService.is(\"suppressAnimationFrame\"),a=n&&!o&&!this.printLayout;return new ms(e,this.beans,t,a,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(t){return e[t].getRowNode()})},t.prototype.getRowByPosition=function(e){var t,n=e.rowIndex;switch(e.rowPinned){case\"top\":t=this.topRowCtrls[n];break;case\"bottom\":t=this.bottomRowCtrls[n];break;default:(t=this.rowCtrlsByRowIndex[n])||(t=this.getStickyTopRowCtrls().find(function(e){return e.getRowNode().rowIndex===n})||null)}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow||n)},ed([q(\"animationFrameService\")],t.prototype,\"animationFrameService\",void 0),ed([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),ed([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),ed([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),ed([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),ed([q(\"focusService\")],t.prototype,\"focusService\",void 0),ed([q(\"beans\")],t.prototype,\"beans\",void 0),ed([q(\"rowContainerHeightService\")],t.prototype,\"rowContainerHeightService\",void 0),ed([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),ed([G],t.prototype,\"postConstruct\",null),ed([V(\"rowRenderer\")],t)}(ke),od=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],fe(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),id=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ld=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ad(t,e),t.prototype.formatValue=function(e,t,n,r,o){void 0===o&&(o=!0);var a,i=null,l=e.getColDef();if(r?a=r:o&&(a=l.valueFormatter),a){var s={value:n,node:t,data:t?t.data:null,colDef:l,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};i=\"function\"==typeof a?a(s):this.expressionService.evaluate(a,s)}else if(l.refData)return l.refData[n]||\"\";return null==i&&Array.isArray(n)&&(i=n.join(\", \")),i},id([q(\"expressionService\")],t.prototype,\"expressionService\",void 0),id([V(\"valueFormatterService\")],t)}(ke),sd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},cd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sd(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get(\"pinnedTopRowData\")),this.setPinnedBottomRowData(this.gridOptionsService.get(\"pinnedBottomRowData\"))},t.prototype.isEmpty=function(e){return i(\"top\"===e?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=\"top\"===t?this.pinnedTopRows:this.pinnedBottomRows;if(i(n))return 0;for(var r=0;r<n.length;r++){var o=n[r];if(o.rowTop+o.rowHeight-1>=e)return r}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ue.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ue.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,r=[];if(e){var o=0;e.forEach(function(e,a){var i=new ri(n.beans);i.data=e;var l=t?ri.ID_PREFIX_TOP_PINNED:ri.ID_PREFIX_BOTTOM_PINNED;i.id=l+a,i.rowPinned=t?\"top\":\"bottom\",i.setRowTop(o),i.setRowHeight(n.gridOptionsService.getRowHeightForNode(i).height),i.setRowIndex(a),o+=i.rowHeight,r.push(i)})}return r},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){i(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){i(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ce(e);return t.rowTop+t.rowHeight},ud([q(\"beans\")],t.prototype,\"beans\",void 0),ud([G],t.prototype,\"init\",null),ud([V(\"pinnedRowModel\")],t)}(ke);!function(e){e.Applied=\"Applied\",e.StoreNotFound=\"StoreNotFound\",e.StoreLoading=\"StoreLoading\",e.StoreWaitingToLoad=\"StoreWaitingToLoad\",e.StoreLoadingFailed=\"StoreLoadingFailed\",e.StoreWrongType=\"StoreWrongType\",e.Cancelled=\"Cancelled\"}(Hc||(Hc={}));var dd,pd=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var o=e.childrenAfterGroup[r];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,n):n&&t(o)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var r=e;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),t.forEach(function(e){return n.nodeIdsToColumns[r.id][e.getId()]=!0}),r=r.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,r=0;r<t;r++){var o=this.mapToItems[n.id],a=this.mapToItems[n.parent.id];a.children||(a.children=[]),a.children.push(o),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter(function(e){return n[e.getId()]})},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter(function(e){return!n[e.getId()]})},e}(),fd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gd=function(e){function t(n){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=n,r}return fd(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE=\"loadComplete\",t.STATE_WAITING_TO_LOAD=\"needsLoading\",t.STATE_LOADING=\"loading\",t.STATE_LOADED=\"loaded\",t.STATE_FAILED=\"failed\",t}(ke),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),md=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n,r,o;return hd(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsService.getNum(\"blockLoadDebounceMillis\");e&&e>0&&(this.checkBlockToLoadDebounce=Gr.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create(\"RowNodeBlockLoader\")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=this.gridOptionsService.getNum(\"maxConcurrentDatasourceRequests\");return null==e?2:e<=0?void 0:e},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(gd.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Gr.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:n.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log(\"checkBlockToLoad: max loads exceeded\");else{var e=this.getAvailableLoadingCount(),t=this.blocks.filter(function(e){return e.getState()===gd.STATE_WAITING_TO_LOAD}).slice(0,e);this.registerLoads(t.length),t.forEach(function(e){return e.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType(\"serverSide\"))return this.rowModel.getBlockStates();var e={};return this.blocks.forEach(function(t){var n=t.getBlockStateJson(),r=n.id,o=n.state;e[r]=o}),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log(\"printCacheStatus: activePageLoadsCount = \"+this.activeBlockLoadsCount+\", blocks = \"+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(e){this.activeBlockLoadsCount+=e},t.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},t.BLOCK_LOADED_EVENT=\"blockLoaded\",t.BLOCK_LOADER_FINISHED_EVENT=\"blockLoaderFinished\",md([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),md([G],t.prototype,\"postConstruct\",null),md([(r=0,o=K(\"loggerFactory\"),function(e,t){o(e,t,r)})],t.prototype,\"setBeans\",null),n=md([V(\"rowNodeBlockLoader\")],t)}(ke),Ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yd=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ed=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Ad(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsService.is(\"pagination\"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,Ue.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener(\"pagination\",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener(\"paginationPageSize\",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return o&&this.calculatePages(),o},t.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is(\"groupRemoveSingleChildren\")&&!this.gridOptionsService.is(\"groupRemoveLowestSingleChildren\"))||this.gridOptionsService.is(\"paginateChildRows\")},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Ue.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is(\"pagination\"),this.calculatePages();var e={type:Ue.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e&&\"number\"==typeof this.currentPage){this.currentPage=e;var t={type:Ue.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return a(this.topRowBounds)||a(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.forEachNodeOnPage=function(e){for(var t=this.getPageFirstRow(),n=this.getPageLastRow(),r=t;r<=n;r++){var o=this.getRow(r);o&&e(o)}},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum(\"paginationPageSize\"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(o(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Ue.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=r-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},yd([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),yd([G],t.prototype,\"postConstruct\",null),yd([V(\"paginationProxy\")],t)}(ke),bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_d=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bd(t,e),t.prototype.processAllCellClasses=function(e,t,n,r){this.processClassRules(e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,r){if(null!=e){for(var o=Object.keys(e),a={},i={},l=function(n){var r,l=o[n],u=e[l];\"string\"==typeof u?r=s.expressionService.evaluate(u,t):\"function\"==typeof u&&(r=u(t)),l.split(\" \").forEach(function(e){null!=e&&\"\"!=e.trim()&&(r?a[e]=!0:i[e]=!0)})},s=this,u=0;u<o.length;u++)l(u);r&&Object.keys(i).forEach(r),Object.keys(a).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,r=e.cellClass;return r?(\"string\"==typeof(n=\"function\"==typeof r?r(t):r)&&(n=[n]),n||[]):[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach(function(e){n(e)})},_d([q(\"expressionService\")],t.prototype,\"expressionService\",void 0),_d([V(\"stylingService\")],t)}(ke),wd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sd=function(e){function t(t){return e.call(this,t,\"ag-toggle-button\")||this}return wd(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass(\"ag-selected\",this.getValue()),this},t}(Yo),Td=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Od=function(e){function t(t){return e.call(this,t,\"ag-text-area\",null,\"textarea\")||this}return Td(t,e),t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Ho),Dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rd=function(e){function t(t){return e.call(this,t,\"ag-range-field\",\"range\")||this}return Dd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,r=t.max,o=t.step;null!=n&&this.setMinValue(n),null!=r&&this.setMaxValue(r),this.setStep(o||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,\"input\",function(t){var n=t.target.value;e.setValue(n)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute(\"min\",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute(\"max\",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute(\"step\",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Ho),Nd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ld=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Pd=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.labelAlignment=\"top\",r}return Nd(t,e),t.prototype.init=function(){this.eSlider.addCssClass(\"ag-slider-field\")},t.prototype.onValueChange=function(e){var t=this,n=Ro.EVENT_CHANGED;return this.addManagedListener(this.eText,n,function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)}),this.addManagedListener(this.eSlider,n,function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))}),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Ro.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class=\"ag-slider\">\\n            <label ref=\"eLabel\"></label>\\n            <div class=\"ag-wrapper ag-slider-wrapper\">\\n                <ag-input-range ref=\"eSlider\"></ag-input-range>\\n                <ag-input-number-field ref=\"eText\"></ag-input-number-field>\\n            </div>\\n        </div>',Ld([oo(\"eLabel\")],t.prototype,\"eLabel\",void 0),Ld([oo(\"eSlider\")],t.prototype,\"eSlider\",void 0),Ld([oo(\"eText\")],t.prototype,\"eText\",void 0),Ld([G],t.prototype,\"init\",null),t}(Oo),Md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xd=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Id=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,t.getTemplate(n))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var o=n.title,a=n.enabled,i=n.items,l=n.suppressEnabledCheckbox,s=n.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=n.cssIdentifier||\"default\",r.enabled=null==a||a,r.items=i||[],r.alignItems=n.alignItems||\"center\",null!=l&&(r.suppressEnabledCheckbox=l),null!=s&&(r.suppressOpenCloseIcons=s),r}return Md(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||\"default\";return'<div class=\"ag-group ag-'+t+'-group\" role=\"presentation\">\\n            <div class=\"ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable\" ref=\"eTitleBar\" role=\"button\">\\n                <span class=\"ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon\" ref=\"eGroupOpenedIcon\" role=\"presentation\"></span>\\n                <span class=\"ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon\" ref=\"eGroupClosedIcon\" role=\"presentation\"></span>\\n                <span ref=\"eTitle\" class=\"ag-group-title ag-'+t+'-group-title\"></span>\\n            </div>\\n            <div ref=\"eToolbar\" class=\"ag-group-toolbar ag-'+t+'-group-toolbar\">\\n                <ag-checkbox ref=\"cbGroupEnabled\"></ag-checkbox>\\n            </div>\\n            <div ref=\"eContainer\" class=\"ag-group-container ag-group-container-'+(e.direction||\"vertical\")+\" ag-\"+t+'-group-container\"></div>\\n        </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t(\"enabled\",\"Enabled\")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Tr(\"columnSelectClosed\",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Tr(\"columnSelectOpen\",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,\"click\",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,\"keydown\",function(t){switch(t.key){case Rr.ENTER:case Rr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case Rr.RIGHT:case Rr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===Rr.RIGHT)}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Vt(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Vn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Vn(this.eGroupOpenedIcon,e&&this.expanded),Vn(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass(\"ag-group-item-alignment-\"+this.alignItems),this.alignItems=e;var t=\"ag-group-item-alignment-\"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Vn(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Vn(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach(function(e){return t.addItem(e)})},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof no?e.getGui():e;n.classList.add(\"ag-group-item\",\"ag-\"+this.cssIdentifier+\"-group-item\"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){Vn(this.items[t],!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange(function(n){t.setEnabled(n,!0),e(n)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass(\"ag-disabled\",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add(\"ag-disabled-group-title-bar\"),this.eTitleBar.removeAttribute(\"tabindex\")):(this.eTitleBar.classList.remove(\"ag-disabled-group-title-bar\"),this.eTitleBar.setAttribute(\"tabindex\",\"0\")),this.eContainer.classList.toggle(\"ag-disabled-group-container\",!this.enabled)},t.EVENT_EXPANDED=\"expanded\",t.EVENT_COLLAPSED=\"collapsed\",xd([oo(\"eTitleBar\")],t.prototype,\"eTitleBar\",void 0),xd([oo(\"eGroupOpenedIcon\")],t.prototype,\"eGroupOpenedIcon\",void 0),xd([oo(\"eGroupClosedIcon\")],t.prototype,\"eGroupClosedIcon\",void 0),xd([oo(\"eToolbar\")],t.prototype,\"eToolbar\",void 0),xd([oo(\"cbGroupEnabled\")],t.prototype,\"cbGroupEnabled\",void 0),xd([oo(\"eTitle\")],t.prototype,\"eTitle\",void 0),xd([oo(\"eContainer\")],t.prototype,\"eContainer\",void 0),xd([G],t.prototype,\"postConstruct\",null),t}(no),kd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bd=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e.TAB_GUARD=\"ag-tab-guard\",e.TAB_GUARD_TOP=\"ag-tab-guard-top\",e.TAB_GUARD_BOTTOM=\"ag-tab-guard-bottom\"}(dd||(dd={}));var Fd,jd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var r=t.comp,o=t.eTopGuard,a=t.eBottomGuard,i=t.focusInnerElement,l=t.onFocusIn,s=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,d=t.handleKeyDown,p=t.eFocusableElement;return n.comp=r,n.eTopGuard=o,n.eBottomGuard=a,n.providedFocusInnerElement=i,n.eFocusableElement=p,n.providedFocusIn=l,n.providedFocusOut=s,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=d,n}return kd(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new vo(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(t){return e.addManagedListener(t,\"focus\",e.onFocus.bind(e))})},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute(\"tabIndex\")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);n&&setTimeout(function(){return t.activateTabGuards()},0),r&&(r.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum(\"tabIndex\")||0).toString()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},Bd([q(\"focusService\")],t.prototype,\"focusService\",void 0),Bd([G],t.prototype,\"postConstruct\",null),t}(ke),Hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Yd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard(\"top\"),this.eBottomGuard=this.createTabGuard(\"bottom\"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach(function(t){return null!=e?t.setAttribute(\"tabIndex\",e):t.removeAttribute(\"tabIndex\")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new jd({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement(\"div\"),n=\"top\"===e?dd.TAB_GUARD_TOP:dd.TAB_GUARD_BOTTOM;return t.classList.add(dd.TAB_GUARD,n),xt(t,\"presentation\"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement(\"afterbegin\",e),this.eFocusableElement.insertAdjacentElement(\"beforeend\",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];rr(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ud(arguments[t]));return e}(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){yr(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement(\"beforebegin\",t):e.prototype.appendChild.call(this,t,n)},t}(no),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zd=function(){return zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zd.apply(this,arguments)},Vd=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},qd=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class=\"ag-menu-list\" role=\"tree\"></div>')||this;return n.level=t,n.menuItems=[],n}return Gd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains(\"ag-focus-managed\")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case Rr.UP:case Rr.RIGHT:case Rr.DOWN:case Rr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Rr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach(function(e){\"separator\"===e?t.addSeparator():\"string\"==typeof e?console.warn(\"AG Grid: unrecognised menu item \"+e):t.addItem(e)})},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new Xd(zd(zd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some(function(e){return e.isSubMenuOpen()})}})));n.setParentComponent(this),Yt(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Xd.EVENT_MENU_ITEM_SELECTED,function(e){t.dispatchEvent(e)}),this.addManagedListener(n,Xd.EVENT_MENU_ITEM_ACTIVATED,function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(e){return!e.isDisabled()})[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(ir('\\n            <div class=\"ag-menu-separator\" aria-hidden=\"true\">\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n                <div class=\"ag-menu-separator-part\"></div>\\n            </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof Xd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case Rr.UP:case Rr.DOWN:var t=this.findNextItem(e===Rr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsService.is(\"enableRtl\")?Rr.RIGHT:Rr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Xd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter(function(e){return!e.isDisabled()});if(t.length){if(!this.activeMenuItem)return e?ce(t):t[0];var n;e&&t.reverse();for(var r=!1,o=0;o<t.length;o++){var a=t[o];if(r){n=a;break}a===this.activeMenuItem&&(r=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Vd([q(\"focusService\")],t.prototype,\"focusService\",void 0),Vd([G],t.prototype,\"postConstruct\",null),t}(Yd),Wd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qd=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Wd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===Rr.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(Yd),Kd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$d=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Xd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class=\"'+n.getClassName()+'\" tabindex=\"-1\" role=\"treeitem\"></div>'),n}return Kd(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName(\"disabled\")),Gt(t,!0)):(this.addGuiEventListener(\"click\",function(t){return e.onItemSelected(t)}),this.addGuiEventListener(\"keydown\",function(t){t.key!==Rr.ENTER&&t.key!==Rr.SPACE||(t.preventDefault(),e.onItemSelected(t))}),this.addGuiEventListener(\"mousedown\",function(e){e.stopPropagation(),e.preventDefault()}),this.addGuiEventListener(\"mouseenter\",function(){return e.onMouseEnter()}),this.addGuiEventListener(\"mouseleave\",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(t){return e.addCssClass(t)})},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var r,o=ir('<div class=\"ag-menu\" role=\"presentation\"></div>');if(this.params.subMenu instanceof Array){var a=kt(this.getGui()),i=isNaN(a)?1:a+1,l=this.createBean(new qd(i));l.setParentComponent(this),l.addMenuItems(this.params.subMenu),o.appendChild(l.getGui()),this.addManagedListener(l,t.EVENT_MENU_ITEM_SELECTED,function(e){return n.dispatchEvent(e)}),l.addGuiEventListener(\"mouseenter\",function(){return n.cancelDeactivate()}),r=function(){return n.destroyBean(l)},e&&setTimeout(function(){return l.activateFirstItem()},0)}else{var s=this.params.subMenu,u=this.createBean(new Qd(s));u.setParentComponent(this);var c=u.getGui(),d=\"mouseenter\",p=function(){return n.cancelDeactivate()};c.addEventListener(d,p),r=function(){return c.removeEventListener(d,p)},o.appendChild(c),s.afterGuiAttached&&setTimeout(function(){return s.afterGuiAttached()},0)}var f=this.getGui(),g=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:f,ePopup:o}),h=this.localeService.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:g,anchorToElement:f,ariaLabel:h(\"ariaLabelSubMenu\",\"SubMenu\")});this.subMenuIsOpen=!0,Vt(f,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,Vt(f,!1),r()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Vt(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName(\"active\")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout(function(){t.isAlive()&&t.isActive&&t.openSubMenu()},300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName(\"active\")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=ir('<span ref=\"eIcon\" class=\"'+this.getClassName(\"part\")+\" \"+this.getClassName(\"icon\")+'\" role=\"presentation\"></span>');this.params.checked?e.appendChild(Or(\"check\",this.gridOptionsService)):this.params.icon&&(yr(this.params.icon)?e.appendChild(this.params.icon):\"string\"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn(\"AG Grid: menu item icon must be DOM node or string\")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=ir('<span ref=\"eName\" class=\"'+this.getClassName(\"part\")+\" \"+this.getClassName(\"text\")+'\">'+(this.params.name||\"\")+\"</span>\");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is(\"enableBrowserTooltips\")?this.getGui().setAttribute(\"title\",this.tooltip):this.createManagedBean(new Xr(this)))},t.prototype.getTooltipParams=function(){return{location:\"menu\",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=ir('<span ref=\"eShortcut\" class=\"'+this.getClassName(\"part\")+\" \"+this.getClassName(\"shortcut\")+'\">'+(this.params.shortcut||\"\")+\"</span>\");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=ir('<span ref=\"ePopupPointer\" class=\"'+this.getClassName(\"part\")+\" \"+this.getClassName(\"popup-pointer\")+'\"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsService.is(\"enableRtl\")?\"smallLeft\":\"smallRight\";Vt(t,!1),e.appendChild(Or(n,this.gridOptionsService))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&\"keydown\"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?\"ag-compact-menu-option\":\"ag-menu-option\";return e?t+\"-\"+e:t},t.EVENT_MENU_ITEM_SELECTED=\"menuItemSelected\",t.EVENT_MENU_ITEM_ACTIVATED=\"menuItemActivated\",t.ACTIVATION_DELAY=80,$d([q(\"popupService\")],t.prototype,\"popupService\",void 0),$d([G],t.prototype,\"init\",null),t}(no),Jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zd=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ep=function(e){function t(n){var r=e.call(this,t.getTemplate(n))||this;return r.closable=!0,r.config=n,r}return Jd(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||\"default\";return'<div class=\"ag-panel ag-'+t+'-panel\" tabindex=\"-1\">\\n            <div ref=\"eTitleBar\" class=\"ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable\">\\n                <span ref=\"eTitle\" class=\"ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title\"></span>\\n                <div ref=\"eTitleBarButtons\" class=\"ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons\"></div>\\n            </div>\\n            <div ref=\"eContentWrapper\" class=\"ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper\"></div>\\n        </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,r=t.closable,o=t.hideTitleBar,a=t.title,i=t.minWidth,l=void 0===i?250:i,s=t.width,u=t.minHeight,c=void 0===u?250:u,d=t.height,p=t.centered,f=t.popup,g=t.x,h=t.y;this.positionableFeature=new _o(this.getGui(),{minWidth:l,width:s,minHeight:c,height:d,centered:p,x:g,y:h,popup:f,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var m=this.getGui();n&&this.setBodyComponent(n),o?Vn(this.eTitleBar,!1):(a&&this.setTitle(a),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,\"mousedown\",function(t){var n=e.gridOptionsService.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var r=e.eContentWrapper.querySelector(\"button, [href], input, select, textarea, [tabindex]\");r&&r.focus()}}),f&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height=\"0\")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new no(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var r=n.getGui(),o=Or(\"close\",this.gridOptionsService);o.classList.add(\"ag-panel-title-bar-button-icon\"),r.appendChild(o),this.addTitleBarButton(n),n.addManagedListener(r,\"click\",this.onBtClose.bind(this))}else this.closeButtonComp&&((r=this.closeButtonComp.getGui()).parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,r=n.children,o=r.length;null==t&&(t=o),t=Math.max(0,Math.min(t,o)),e.addCssClass(\"ag-panel-title-bar-button\");var a=e.getGui();0===t?n.insertAdjacentElement(\"afterbegin\",a):t===o?n.insertAdjacentElement(\"beforeend\",a):r[t-1].insertAdjacentElement(\"afterend\",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return $n(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Xn(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class=\"ag-button\"></div>',Zd([oo(\"eContentWrapper\")],t.prototype,\"eContentWrapper\",void 0),Zd([oo(\"eTitleBar\")],t.prototype,\"eTitleBar\",void 0),Zd([oo(\"eTitleBarButtons\")],t.prototype,\"eTitleBarButtons\",void 0),Zd([oo(\"eTitle\")],t.prototype,\"eTitle\",void 0),Zd([G],t.prototype,\"postConstruct\",null),t}(no),tp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),np=function(){return np=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},np.apply(this,arguments)},rp=function(e){function t(t){var n=e.call(this,np(np({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return tp(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),r=this.config,o=r.movable,a=r.resizable,i=r.maximizable;this.addCssClass(\"ag-dialog\"),e.prototype.postConstruct.call(this),this.addManagedListener(n,\"focusin\",function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)}),o&&this.setMovable(o),i&&this.setMaximizable(i),a&&this.setResizable(a)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,r=t.modal,o=t.title,a=this.localeService.getLocaleTextFunc(),i=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:o||a(\"ariaLabelDialog\",\"Dialog\")});i&&(this.close=i.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,r=t.y,o=t.width,a=t.height;this.setWidth(o),this.setHeight(a),this.positionableFeature.offsetElement(n,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight(\"100%\"),this.setWidth(\"100%\");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){Vn(this.maximizeIcon,!this.isMaximized),Vn(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var r=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),r.addManagedListener(r.getGui(),\"click\",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(n,\"dblclick\",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,\"resize\",function(){t.isMaximized=!1,t.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new no('<div class=\"ag-dialog-button\"></span>')),t=e.getGui();return this.maximizeIcon=Or(\"maximize\",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add(\"ag-panel-title-bar-button-icon\"),this.minimizeIcon=Or(\"minimize\",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add(\"ag-panel-title-bar-button-icon\"),e},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([q(\"popupService\")],t.prototype,\"popupService\",void 0),t}(ep),op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ap=function(){return ap=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ap.apply(this,arguments)},ip=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},lp=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},sp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return op(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var r=n.instancesMonitored.get(e);r&&r.length>0?-1===r.indexOf(t)&&r.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener(\"keydown\",n.toggleKeyboardMode),e.addEventListener(\"mousedown\",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var r=n.instancesMonitored.get(e),o=[];r&&r.length&&(o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lp(arguments[t]));return e}(r).filter(function(e){return e!==t}),n.instancesMonitored.set(e,o)),0===o.length&&(e.removeEventListener(\"keydown\",n.toggleKeyboardMode),e.removeEventListener(\"mousedown\",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,r=\"keydown\"===e.type;if(!(r&&(e.ctrlKey||e.metaKey||e.altKey)||t&&r||!t&&!r)){n.keyboardModeActive=r;var o=e.target.ownerDocument;if(o){var a=n.instancesMonitored.get(o);a&&a.forEach(function(e){e.dispatchEvent({type:r?Ue.EVENT_KEYBOARD_FOCUS:Ue.EVENT_MOUSE_FOCUS})})}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady(function(t){e.gridCtrl=t.gridCtrl;var r=e.gridOptionsService.getDocument();n.addKeyboardModeEvents(r,e.gridCtrl),e.addDestroyFunc(function(){return e.unregisterGridCompController(e.gridCtrl)})})},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsService.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is(\"suppressFocusAfterRefresh\")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,ms.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is(\"suppressFocusAfterRefresh\")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,ju.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsService.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.getFocusEventParams=function(){var e=this.focusedCellPosition,t=e.rowIndex,n=e.rowPinned,r={rowIndex:t,rowPinned:n,column:e.column,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return o&&(r.isFullWidthCell=o.isFullWidth()),r},t.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var e=ap({type:Ue.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}},t.prototype.setFocusedCell=function(e){var t=e.column,n=e.rowIndex,o=e.rowPinned,a=e.forceBrowserFocus,i=void 0!==a&&a,l=e.preventScrollOnBrowserFocus,s=void 0!==l&&l,u=this.columnModel.getGridColumn(t);if(u){this.focusedCellPosition=u?{rowIndex:n,rowPinned:r(o),column:u}:null;var c=ap(ap({type:Ue.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:i,preventScrollOnBrowserFocus:s,floating:null});this.eventService.dispatchEvent(c)}else this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),r=e.getPinned(),o=this.focusedHeaderPosition,a=o.column,i=o.headerRowIndex;return t===a&&n===i&&r==a.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,r=e.allowUserOverride,o=e.event,a=e.headerPosition;if(r){var i,l=this.getFocusedHeader(),s=this.headerNavigationService.getHeaderRowCount();n?(i=this.gridOptionsService.getCallback(\"tabToNextHeader\"))&&(a=i({backwards:\"Before\"===t,previousHeaderPosition:l,nextHeaderPosition:a,headerRowCount:s})):(i=this.gridOptionsService.getCallback(\"navigateToNextHeader\"))&&o&&(a=i({key:o.key,previousHeaderPosition:l,nextHeaderPosition:a,headerRowCount:s,event:o}))}return!!a&&(-1===a.headerRowIndex?this.focusGridView(a.column):(this.headerNavigationService.scrollToColumn(a.column,t),this.ctrlsService.getHeaderRowContainerCtrl(a.column.getPinned()).focusHeader(a.headerRowIndex,a.column,o)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=ce(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===r(t)},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var r=Yn,o=Gn;t&&(o+=\", \"+t),n&&(o+=', [tabindex=\"-1\"]');var a,i=Array.prototype.slice.apply(e.querySelectorAll(r)),l=Array.prototype.slice.apply(e.querySelectorAll(o));return l.length?(a=l,i.filter(function(e){return-1===a.indexOf(e)})):i},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=this.findFocusableElements(e,null,n),o=t?ce(r):r[0];return!!o&&(o.focus({preventScroll:!0}),!0)},t.prototype.findFocusableElementBeforeTabGuard=function(e,t){if(!t)return null;var n=this.findFocusableElements(e),r=n.indexOf(t);if(-1===r)return null;for(var o=-1,a=r-1;a>=0;a--)if(n[a].classList.contains(dd.TAB_GUARD_TOP)){o=a;break}return o<=0?null:n[o-1]},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var r=this.findFocusableElements(e,t?':not([tabindex=\"-1\"])':null),o=this.gridOptionsService.getDocument().activeElement,a=(t?r.findIndex(function(e){return e.contains(o)}):r.indexOf(o))+(n?-1:1);return a<0||a>=r.length?null:r[a]},t.prototype.isTargetUnderManagedComponent=function(e,t){if(!t)return!1;var n=e.querySelectorAll(\".\"+vo.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var r=0;r<n.length;r++)if(n[r].contains(t))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===_n(e)&&++n<=t;)e=e.parentElement;return null===_n(e)?null:e},t.prototype.focusGridView=function(e,t){if(this.gridOptionsService.is(\"suppressCellFocus\"))return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var o=n.rowIndex,a=n.rowPinned,i=this.getFocusedHeader();if(!e&&i&&(e=i.column),null==o||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:o,column:e,rowPinned:a}),this.setFocusedCell({rowIndex:o,column:e,rowPinned:r(a),forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:o,rowPinned:a,column:e};this.rangeService.setRangeToCell(l)}return!0},t.prototype.focusNextGridCoreContainer=function(e,t){return void 0===t&&(t=!1),!(t||!this.gridCtrl.focusNextInnerContainer(e))||((t||!e&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(e),!1)},t.AG_KEYBOARD_FOCUS=\"ag-keyboard-focus\",t.keyboardModeActive=!1,t.instancesMonitored=new Map,ip([q(\"eGridDiv\")],t.prototype,\"eGridDiv\",void 0),ip([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),ip([q(\"headerNavigationService\")],t.prototype,\"headerNavigationService\",void 0),ip([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),ip([q(\"rowPositionUtils\")],t.prototype,\"rowPositionUtils\",void 0),ip([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),ip([q(\"navigationService\")],t.prototype,\"navigationService\",void 0),ip([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),ip([G],t.prototype,\"init\",null),n=ip([V(\"focusService\")],t)}(ke),up=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},dp=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};!function(e){e[e.vertical=0]=\"vertical\",e[e.horizontal=1]=\"horizontal\"}(Fd||(Fd={}));var pp,fp=0,gp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}var n;return up(t,e),n=t,t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,Ue.EVENT_KEYBOARD_FOCUS,function(){e.popupList.forEach(function(e){return e.element.classList.add(sp.AG_KEYBOARD_FOCUS)})}),e.addManagedListener(e.gridCtrl,Ue.EVENT_MOUSE_FOCUS,function(){e.popupList.forEach(function(e){return e.element.classList.remove(sp.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){return this.gridOptionsService.get(\"popupParent\")||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),r=this.keepXYWithinBounds(e.ePopup,t.top-n.top,Fd.vertical),o=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=o+\"px\";var a,i=n.right-n.left-o;function l(){return t.right-n.left-2}function s(){return t.left-n.left-o}this.gridOptionsService.is(\"enableRtl\")?((a=s())<0&&(a=l()),a>i&&(a=0)):((a=l())>i&&(a=s()),a<0&&(a=0)),e.ePopup.style.left=a+\"px\",e.ePopup.style.top=r+\"px\"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this,n=e.ePopup,r=e.nudgeX,o=e.nudgeY,a=e.skipObserver;this.positionPopup({ePopup:n,nudgeX:r,nudgeY:o,keepWithinBounds:!0,skipObserver:a,updatePosition:function(){return t.calculatePointerAlign(e.mouseEvent)},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)}})},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupByComponent=function(e){var t=this,n=e.eventSource.getBoundingClientRect(),r=e.alignSide||\"left\",o=e.position||\"over\",a=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,keepWithinBounds:e.keepWithinBounds,updatePosition:function(){var t=n.left-a.left;return\"right\"===r&&(t-=e.ePopup.offsetWidth-n.width),{x:t,y:\"over\"===o?n.top-a.top:n.top-a.top+n.height}},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)}})},t.prototype.callPostProcessPopup=function(e,t,n,r,o,a){var i=this.gridOptionsService.getCallback(\"postProcessPopup\");i&&i({column:o,rowNode:a,ePopup:t,type:e,eventSource:n,mouseEvent:r})},t.prototype.positionPopup=function(e){var t=this,r=e.ePopup,o=e.keepWithinBounds,a=e.nudgeX,i=e.nudgeY,l=e.skipObserver,s=e.updatePosition,u={width:0,height:0},c=function(n){void 0===n&&(n=!1);var l=s(),c=l.x,d=l.y;n&&r.clientWidth===u.width&&r.clientHeight===u.height||(u.width=r.clientWidth,u.height=r.clientHeight,a&&(c+=a),i&&(d+=i),o&&(c=t.keepXYWithinBounds(r,c,Fd.horizontal),d=t.keepXYWithinBounds(r,d,Fd.vertical)),r.style.left=c+\"px\",r.style.top=d+\"px\",e.postProcessCallback&&e.postProcessCallback())};if(c(),!l){var d=this.resizeObserverService.observeResize(r,function(){return c(!0)});setTimeout(function(){return d()},n.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(e){return e.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsService.getDocument(),t=this.getPopupParent();t===e.body?t=e.documentElement:\"static\"===getComputedStyle(t).position&&(t=t.offsetParent);var n=getComputedStyle(t),r=t.getBoundingClientRect();return{top:r.top+parseFloat(n.borderTopWidth)||0,left:r.left+parseFloat(n.borderLeftWidth)||0,right:r.right+parseFloat(n.borderRightWidth)||0,bottom:r.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,n){var r=n===Fd.vertical,o=r?\"clientHeight\":\"clientWidth\",a=r?\"top\":\"left\",i=r?\"offsetHeight\":\"offsetWidth\",l=r?\"scrollTop\":\"scrollLeft\",s=this.gridOptionsService.getDocument(),u=s.documentElement,c=this.getPopupParent(),d=c.getBoundingClientRect(),p=s.documentElement.getBoundingClientRect(),f=c===s.body,g=e[i],h=f?(r?Jn:Zn)(u)+u[l]:c[o];f&&(h-=Math.abs(p[a]-d[a]));var m=h-g;return Math.min(Math.max(t,0),Math.abs(m))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect(),a=r.top-o.top,i=r.left-o.left,l=a,s=i,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),d=e.ePopup.style.left,p=parseInt(d.substring(0,d.length-1),10);return new qr(function(r){t.getFrameworkOverrides().setInterval(function(){var r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect();if(0==o.top&&0==o.left&&0==o.height&&0==o.width)e.hidePopup();else{var u=r.top-o.top;if(u!=l){var d=t.keepXYWithinBounds(e.ePopup,c+a-u,Fd.vertical);e.ePopup.style.top=d+\"px\"}l=u;var f=r.left-o.left;if(f!=s){var g=t.keepXYWithinBounds(e.ePopup,p+i-f,Fd.horizontal);e.ePopup.style.left=g+\"px\"}s=f}},200).then(function(e){r(function(){null!=e&&window.clearInterval(e)})})})},t.prototype.addPopup=function(e){var t,n=this,r=e.modal,o=e.eChild,a=e.closeOnEsc,i=e.closedCallback,l=e.click,s=e.alwaysOnTop,u=e.afterGuiAttached,c=e.positionCallback,d=e.anchorToElement,p=e.ariaLabel,f=this.gridOptionsService.getDocument(),g=new qr(function(e){return e(function(){})});if(!f)return console.warn(\"AG Grid: could not find the document, document is empty\"),{hideFunc:function(){},stopAnchoringPromise:g};var h=this.popupList.findIndex(function(e){return e.element===o});if(-1!==h){var m=this.popupList[h];return{hideFunc:m.hideFunc,stopAnchoringPromise:m.stopAnchoringPromise}}var v=this.getPopupParent();null==o.style.top&&(o.style.top=\"0px\"),null==o.style.left&&(o.style.left=\"0px\");var A=document.createElement(\"div\"),y=this.environment.getTheme().allThemes;y.length&&(t=A.classList).add.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e}(y)),A.classList.add(\"ag-popup\"),o.classList.add(this.gridOptionsService.is(\"enableRtl\")?\"ag-rtl\":\"ag-ltr\",\"ag-popup-child\"),o.hasAttribute(\"role\")||xt(o,\"dialog\"),Ft(o,p),this.focusService.isKeyboardMode()&&o.classList.add(sp.AG_KEYBOARD_FOCUS),A.appendChild(o),v.appendChild(A),s?this.setAlwaysOnTop(A,!0):this.bringPopupToFront(A);var E=!1,b=function(e){A.contains(f.activeElement)&&e.key===Rr.ESCAPE&&w({keyboardEvent:e})},_=function(e){return w({mouseEvent:e})},C=function(e){return w({touchEvent:e})},w=function(e){void 0===e&&(e={});var t=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;n.isEventFromCurrentPopup({mouseEvent:t,touchEvent:r},o)||n.isEventSameChainAsOriginalEvent({originalMouseEvent:l,mouseEvent:t,touchEvent:r})||E||(E=!0,v.removeChild(A),f.removeEventListener(\"keydown\",b),f.removeEventListener(\"mousedown\",_),f.removeEventListener(\"touchstart\",C),f.removeEventListener(\"contextmenu\",_),n.eventService.removeEventListener(Ue.EVENT_DRAG_STARTED,_),i&&i(t||r||a),n.popupList=n.popupList.filter(function(e){return e.element!==o}),g&&g.then(function(e){return e&&e()}))};return u&&u({hidePopup:w}),window.setTimeout(function(){a&&f.addEventListener(\"keydown\",b),r&&(f.addEventListener(\"mousedown\",_),n.eventService.addEventListener(Ue.EVENT_DRAG_STARTED,_),f.addEventListener(\"touchstart\",C),f.addEventListener(\"contextmenu\",_))},0),c&&c(),d&&(g=this.keepPopupPositionedRelativeTo({element:d,ePopup:o,hidePopup:w})),this.popupList.push({element:o,wrapper:A,hideFunc:w,stopAnchoringPromise:g,instanceId:fp++,isAnchored:!!d}),{hideFunc:w,stopAnchoringPromise:g}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(e){return e.isAnchored})},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,r=e.touchEvent,o=n||r;if(!o)return!1;var a=this.popupList.findIndex(function(e){return e.element===t});if(-1===a)return!1;for(var i=a;i<this.popupList.length;i++)if(Re(this.popupList[i].element,o))return!0;return this.isElementWithinCustomPopup(o.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsService.getDocument();e&&e!==t.body;){if(e.classList.contains(\"ag-custom-component-popup\")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,r=e.touchEvent,o=null;if(n?o=n:r&&(o=r.touches[0]),o&&t){var a=n?n.screenX:0,i=n?n.screenY:0,l=Math.abs(t.screenX-a)<5,s=Math.abs(t.screenY-i)<5;if(l&&s)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains(\"ag-popup\")&&e.parentElement;)e=e.parentElement;return e.classList.contains(\"ag-popup\")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle(\"ag-always-on-top\",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(\".ag-popup\")),r=n.length,o=Array.prototype.slice.call(t.querySelectorAll(\".ag-popup.ag-always-on-top\")),a=o.length,i=this.getWrapper(e);if(i&&!(r<=1)&&t.contains(e)){var l=n.indexOf(i),s=i.querySelectorAll(\"div\"),u=[];for(s.forEach(function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])}),a?i.classList.contains(\"ag-always-on-top\")?l!==r-1&&ce(o).insertAdjacentElement(\"afterend\",i):l!==r-a-1&&o[0].insertAdjacentElement(\"beforebegin\",i):l!==r-1&&ce(n).insertAdjacentElement(\"afterend\",i);u.length;){var c=u.pop();c[0].scrollTop=c[1]}var d={type:\"popupToFront\",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:i};this.eventService.dispatchEvent(d)}},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,cp([q(\"focusService\")],t.prototype,\"focusService\",void 0),cp([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),cp([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),cp([G],t.prototype,\"postConstruct\",null),n=cp([V(\"popupService\")],t)}(ke),hp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vp=function(e){function t(n,r,o){void 0===n&&(n=\"default\"),void 0===r&&(r=\"listbox\");var a=e.call(this,t.getTemplate(n))||this;return a.cssIdentifier=n,a.ariaRole=r,a.listName=o,a.renderedRows=new Map,a.rowHeight=20,a}return hp(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,Ue.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc()(\"ariaDefaultListName\",this.listName||\"List\"),t=this.eContainer;xt(t,this.ariaRole),Ft(t,e)},t.prototype.addResizeObserver=function(){var e=this,t=this.resizeObserverService.observeResize(this.getGui(),function(){return e.drawVirtualRows()});this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains(\"ag-virtual-list-item\")&&(this.lastFocusedRowIndex=Bt(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case Rr.UP:case Rr.DOWN:this.navigate(e.key===Rr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.forceFocusOutOfContainer(e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount()||(this.focusRow(t),0))},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout(function(){if(t.isAlive()){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}},10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(t,n){return e(t.rowComponent,n)})},t.getTemplate=function(e){return'\\n            <div class=\"ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport\" role=\"presentation\">\\n                <div class=\"ag-virtual-list-container ag-'+e+'-virtual-list-container\" ref=\"eContainer\"></div>\\n            </div>'},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if(\"number\"!=typeof e||e<0||e>=t)console.warn(\"AG Grid: invalid row index for ensureIndexVisible: \"+e);else{var n=e*this.rowHeight,r=n+this.rowHeight,o=this.getGui(),a=o.scrollTop,i=o.offsetHeight,l=a+i<r;if(a>n)o.scrollTop=n;else if(l){var s=r-i;o.scrollTop=s}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(e){var t=this;if(null!=this.model&&this.isAlive()){var n=this.model.getRowCount();this.eContainer.style.height=n*this.rowHeight+\"px\",B(function(){return t.eContainer.clientHeight>=n*t.rowHeight},function(){t.isAlive()&&(t.canSoftRefresh(e)?t.drawVirtualRows(!0):(t.clearVirtualRows(),t.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&\"function\"==typeof this.model.areRowsEqual&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(t,n){return e.removeRow(n)})},t.prototype.drawVirtualRows=function(e){if(this.isAlive()){var t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight,o=Math.floor(n/this.rowHeight),a=Math.floor(r/this.rowHeight);this.ensureRowsRendered(o,a,e)}},t.prototype.ensureRowsRendered=function(e,t,n){var r=this;this.renderedRows.forEach(function(n,o){(o<e||o>t)&&o!==r.lastFocusedRowIndex&&r.removeRow(o)}),n&&this.refreshRows();for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),r=document.createElement(\"div\");if(r.classList.add(\"ag-virtual-list-item\",\"ag-\"+this.cssIdentifier+\"-virtual-list-item\"),xt(r,\"tree\"===this.ariaRole?\"treeitem\":\"option\"),Wt(r,this.model.getRowCount()),Qt(r,e+1),r.setAttribute(\"tabindex\",\"-1\"),\"function\"==typeof this.model.isRowSelected){var o=this.model.isRowSelected(e);rn(r,!!o),on(r,o)}r.style.height=this.rowHeight+\"px\",r.style.top=this.rowHeight*e+\"px\";var a=this.componentCreator(n,r);a.addGuiEventListener(\"focusin\",function(){return t.lastFocusedRowIndex=e}),r.appendChild(a.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement(\"afterend\",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement(\"beforebegin\",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:a,eDiv:r,value:n})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.refreshRows=function(){var e=this,t=this.model.getRowCount();this.renderedRows.forEach(function(n,r){var o,a;if(r>=t)e.removeRow(r);else{var i=e.model.getRow(r);(null===(a=(o=e.model).areRowsEqual)||void 0===a?void 0:a.call(o,n.value,i))?e.componentUpdater(i,n.rowComponent):e.removeRow(r)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener(\"scroll\",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),e.prototype.destroy.call(this))},mp([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),mp([oo(\"eContainer\")],t.prototype,\"eContainer\",void 0),mp([G],t.prototype,\"postConstruct\",null),t}(Yd),Ap=[\"mouseover\",\"mouseout\",\"mouseenter\",\"mouseleave\"],yp=[\"touchstart\",\"touchend\",\"touchmove\",\"touchcancel\"],Ep=function(){function e(){this.isOutsideAngular=function(e){return ve(Ap,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new qr(function(n){n(window.setInterval(e,t))})},e.prototype.addEventListener=function(e,t,n,r){var o=ve(yp,t);e.addEventListener(t,n,{capture:!!r,passive:o})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),bp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_p=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cp=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bp(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,r,o=e===Rr.UP,a=e===Rr.DOWN,i=e===Rr.LEFT;if(o||a)r=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var l=this.columnModel.getAllDisplayedColumns(),s=this.gridOptionsService.is(\"enableRtl\");r=t.rowIndex,n=i!==s?l[0]:ce(l)}return{rowIndex:r,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,r=!1;!r;){switch(e){case Rr.UP:n=this.getCellAbove(n);break;case Rr.DOWN:n=this.getCellBelow(n);break;case Rr.RIGHT:n=this.gridOptionsService.is(\"enableRtl\")?this.getCellToLeft(n):this.getCellToRight(n);break;case Rr.LEFT:n=this.gridOptionsService.is(\"enableRtl\")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn(\"AG Grid: unknown key for navigation \"+e)}r=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case\"top\":t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case\"bottom\":t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case\"bottom\":return null;case\"top\":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(\"bottom\")?{rowIndex:0,rowPinned:\"bottom\"}:null;default:return this.pinnedRowModel.isRowsToRender(\"bottom\")?{rowIndex:0,rowPinned:\"bottom\"}:null}var r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r)||{rowIndex:t+1,rowPinned:n}},t.prototype.getNextStickyPosition=function(e,t){if(this.gridOptionsService.is(\"groupRowsSticky\")&&e&&e.sticky){var n=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cp(arguments[t]));return e}(this.rowRenderer.getStickyTopRowCtrls()).sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode().rowIndex}),r=t?-1:1,o=n.findIndex(function(t){return t.getRowNode().rowIndex===e.rowIndex}),a=n[o+r];return a?{rowIndex:a.getRowNode().rowIndex,rowPinned:null}:void 0}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return\"top\"===t?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:\"bottom\"===t?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;if(n?0===t:t===this.paginationProxy.getPageFirstRow())return\"top\"===n?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(\"top\")?this.getLastFloatingTopRow():null;var r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r,!0)||{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:\"top\"}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnModel.getDisplayedColAfter(e.column);if(!o){o=t[0];var i=this.getRowBelow(e);if(a(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;n=i?i.rowIndex:null,r=i?i.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnModel.getDisplayedColBefore(e.column);if(!o){o=ce(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(a(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;n=i?i.rowIndex:null,r=i?i.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},_p([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),_p([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),_p([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),_p([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),_p([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),_p([V(\"cellNavigationService\")],t)}(ke),Sp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Sp(t,e),t.prototype.setBeans=function(e){this.logger=e.create(\"AlignedGridsService\")},t.prototype.init=function(){this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsService.get(\"alignedGrids\");t&&t.forEach(function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}})}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(t){t.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){\"horizontal\"===e.direction&&this.fireEvent(function(t){t.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent(function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)})},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e)}):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e.getColId())}):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent(function(){switch(e.type){case Ue.EVENT_COLUMN_MOVED:case Ue.EVENT_COLUMN_VISIBLE:case Ue.EVENT_COLUMN_PINNED:case Ue.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Ue.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case Ue.EVENT_COLUMN_PIVOT_CHANGED:console.warn(\"AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.\")}})},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var r=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(r)}t&&!n||(this.logger.log(\"onColumnEvent-> processing \"+e+\" expanded = \"+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),\"alignedGridChanged\"))},t.prototype.processColumnEvent=function(e){var t,n=this,r=e.column,o=null;if(r&&(o=this.columnModel.getPrimaryColumn(r.getColId())),!r||o){var a=this.getMasterColumns(e);switch(e.type){case Ue.EVENT_COLUMN_MOVED:var i=e,l=e.columnApi.getColumnState().map(function(e){return{colId:e.colId}});this.columnModel.applyColumnState({state:l,applyOrder:!0},\"alignedGridChanged\"),this.logger.log(\"onColumnEvent-> processing \"+e.type+\" toIndex = \"+i.toIndex);break;case Ue.EVENT_COLUMN_VISIBLE:var s=e;l=e.columnApi.getColumnState().map(function(e){return{colId:e.colId,hide:e.hide}}),this.columnModel.applyColumnState({state:l},\"alignedGridChanged\"),this.logger.log(\"onColumnEvent-> processing \"+e.type+\" visible = \"+s.visible);break;case Ue.EVENT_COLUMN_PINNED:var u=e;l=e.columnApi.getColumnState().map(function(e){return{colId:e.colId,pinned:e.pinned}}),this.columnModel.applyColumnState({state:l},\"alignedGridChanged\"),this.logger.log(\"onColumnEvent-> processing \"+e.type+\" pinned = \"+u.pinned);break;case Ue.EVENT_COLUMN_RESIZED:var c=e,d={};a.forEach(function(t){n.logger.log(\"onColumnEvent-> processing \"+e.type+\" actualWidth = \"+t.getActualWidth()),d[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}}),null===(t=c.flexColumns)||void 0===t||t.forEach(function(e){d[e.getId()]&&delete d[e.getId()]}),this.columnModel.setColumnWidths(Object.values(d),!1,c.finished,\"alignedGridChanged\")}var p=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),f=this.gridOptionsService.get(\"alignedGrids\");f&&f.forEach(function(e){e.api&&e.api.setAlwaysShowVerticalScroll(p)})}},Tp([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Tp([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Tp([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Tp([G],t.prototype,\"init\",null),Tp([V(\"alignedGridsService\")],t);var n,r}(ke),Dp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rp=function(){return Rp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rp.apply(this,arguments)},Np=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dp(t,e),t.prototype.setBeans=function(e){this.logger=e.create(\"selectionService\"),this.reset()},t.prototype.init=function(){var e=this;this.groupSelectsChildren=this.gridOptionsService.is(\"groupSelectsChildren\"),this.addManagedPropertyListener(\"groupSelectsChildren\",function(t){return e.groupSelectsChildren=t.currentValue}),this.rowSelection=this.gridOptionsService.get(\"rowSelection\"),this.addManagedPropertyListener(\"rowSelection\",function(t){return e.rowSelection=t.currentValue}),this.addManagedListener(this.eventService,Ue.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.isMultiselect=function(){return\"multiple\"===this.rowSelection},t.prototype.setNodeSelected=function(e){var t,n=e.newValue,r=e.clearSelection,o=e.suppressFinishActions,a=e.rangeSelect;e.event;var i=e.node,l=e.source,s=void 0===l?\"api\":l,u=this.groupSelectsChildren&&!0===e.groupSelectsFiltered;if(void 0===i.id)return console.warn(\"AG Grid: cannot select node until id for node is known\"),0;if(i.rowPinned)return console.warn(\"AG Grid: cannot select pinned rows\"),0;if(i.footer)return this.setNodeSelected(Rp(Rp({},e),{node:i.sibling}));var c=this.getLastSelectedNode();if(a&&c&&c!==i&&this.isMultiselect()){var d=this.selectRange(i,c,e.newValue,s);return this.setLastSelectedNode(i),d}var p=0;if(u&&i.group||i.selectThisNode(n,e.event,s)&&p++,this.groupSelectsChildren&&(null===(t=i.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildren(i,n,u,s)),!o){if(n&&(r||!this.isMultiselect())&&(p+=this.clearOtherNodes(i,s)),p>0){this.updateGroupsFromChildrenSelections(s);var f={type:Ue.EVENT_SELECTION_CHANGED,source:s};this.eventService.dispatchEvent(f)}n&&this.setLastSelectedNode(i)}return p},t.prototype.selectRange=function(e,t,n,r){var o=this;void 0===n&&(n=!0);var a=this.rowModel.getNodesInRangeForSelection(e,t),i=0;a.forEach(function(t){t.group&&o.groupSelectsChildren||!1===n&&e===t||t.selectThisNode(n,void 0,r)&&i++}),this.updateGroupsFromChildrenSelections(r);var l={type:Ue.EVENT_SELECTION_CHANGED,source:r};return this.eventService.dispatchEvent(l),i},t.prototype.selectChildren=function(e,t,n,r){var o=n?e.childrenAfterAggFilter:e.childrenAfterGroup;if(Gr.missing(o))return 0;for(var a=0,i=0;i<o.length;i++)a+=o[i].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:n,source:r});return a},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return f(this.selectedNodes,function(t,n){n&&e.push(n)}),e},t.prototype.getSelectedRows=function(){var e=[];return f(this.selectedNodes,function(t,n){n&&n.data&&e.push(n.data)}),e},t.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},t.prototype.filterFromSelection=function(e){var t={};Object.entries(this.selectedNodes).forEach(function(n){var r=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(n,2),o=r[0],a=r[1];a&&e(a)&&(t[o]=a)}),this.selectedNodes=t},t.prototype.updateGroupsFromChildrenSelections=function(e,t){if(!this.groupSelectsChildren)return!1;if(\"clientSide\"!==this.rowModel.getType())return!1;var n=this.rowModel.getRootNode();t||(t=new pd(!0,n)).setInactive();var r=!1;return t.forEachChangedNodeDepthFirst(function(t){if(t!==n){var o=t.calculateSelectedFromChildren();r=t.selectThisNode(null!==o&&o,void 0,e)||r}}),r},t.prototype.clearOtherNodes=function(e,t){var n=this,r={},o=0;return f(this.selectedNodes,function(a,i){if(i&&i.id!==e.id){var l=n.selectedNodes[i.id];o+=l.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),n.groupSelectsChildren&&i.parent&&(r[i.parent.id]=i.parent)}}),f(r,function(e,n){var r=n.calculateSelectedFromChildren();n.selectThisNode(null!==r&&r,void 0,t)}),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:delete this.selectedNodes[t.id])},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(o(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){o(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log(\"reset\"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(\"clientSide\"===this.rowModel.getType()){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var r=0,o=n.length;r<o;r++){var a=n[r];if(a.isSelected())t.push(a);else{var i=a;i.group&&i.children&&e(i.children)}}}(e),t}}},t.prototype.isEmpty=function(){var e=0;return f(this.selectedNodes,function(t,n){n&&e++}),0===e},t.prototype.deselectAllRowNodes=function(e){var t=function(e){return e.selectThisNode(!1,void 0,r)},n=\"clientSide\"===this.rowModel.getType(),r=e.source,o=e.justFiltered,a=e.justCurrentPage;if(a||o){if(!n)return void console.error(\"AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'\");this.getNodesToSelect(o,a).forEach(t)}else f(this.selectedNodes,function(e,n){n&&t(n)}),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var i={type:Ue.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(i)},t.prototype.getSelectAllState=function(e,t){var n=this,r=0,o=0;return this.getNodesToSelect(e,t).forEach(function(e){n.groupSelectsChildren&&e.group||(e.isSelected()?r++:e.selectable&&o++)}),(0!==r||0!==o)&&(r>0&&o>0?null:r>0)},t.prototype.getNodesToSelect=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=!1),\"clientSide\"!==this.rowModel.getType())throw new Error(\"selectAll only available when rowModelType='clientSide', ie not \"+this.rowModel.getType());var r=[];if(t)return this.paginationProxy.forEachNodeOnPage(function(e){if(e.group)if(e.expanded)n.groupSelectsChildren||r.push(e);else{var t=function(e){var n;r.push(e),(null===(n=e.childrenAfterFilter)||void 0===n?void 0:n.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else r.push(e)}),r;var o=this.rowModel;return e?(o.forEachNodeAfterFilter(function(e){r.push(e)}),r):(o.forEachNode(function(e){r.push(e)}),r)},t.prototype.selectAllRowNodes=function(e){if(\"clientSide\"!==this.rowModel.getType())throw new Error(\"selectAll only available when rowModelType='clientSide', ie not \"+this.rowModel.getType());var t=e.source,n=e.justFiltered,r=e.justCurrentPage;this.getNodesToSelect(n,r).forEach(function(e){return e.selectThisNode(!0,void 0,t)}),\"clientSide\"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);var o={type:Ue.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(o)},t.prototype.getServerSideSelectionState=function(){return null},t.prototype.setServerSideSelectionState=function(e){},Np([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Np([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),Np([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Np([G],t.prototype,\"init\",null),Np([V(\"selectionService\")],t);var n,r}(ke),Pp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Mp=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error(\"AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)\"),this.columnModel.sizeColumnsToFit(e,\"api\")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,\"api\")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||\"\"},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||\"\"},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,\"api\")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState(\"api\")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,\"api\")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState(\"api\")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,\"api\")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,\"api\")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,\"api\")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,\"api\")},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){this.columnModel.moveColumn(e,t,\"api\")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,\"api\")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,\"api\")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,r){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,r)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getPivotResultColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,\"api\")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,\"api\")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,\"api\")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,\"api\")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,\"api\")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,\"api\")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,\"api\")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,\"api\")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,\"api\")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,\"api\")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,\"api\")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,\"api\")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,\"api\")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,\"api\")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,\"api\")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,\"api\")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,\"api\")},e.prototype.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,\"api\")},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Gr.removeAllReferences.bind(window,this,\"Column API\"),100)},e.prototype.getAllColumns=function(){return tt(\"28.0\",\"getAllColumns\",\"getColumns\"),this.getColumns()},e.prototype.getOriginalColumnGroup=function(e){return tt(\"27.0\",\"getOriginalColumnGroup\",\"getProvidedColumnGroup\"),this.columnModel.getProvidedColumnGroup(e)},e.prototype.getPrimaryColumns=function(){return tt(\"28.0\",\"getPrimaryColumns\",\"getColumns\"),this.getColumns()},e.prototype.getSecondaryColumns=function(){return tt(\"28.0\",\"getSecondaryColumns\",\"getPivotResultColumns\"),this.getPivotResultColumns()},e.prototype.setSecondaryColumns=function(e){tt(\"28.0\",\"setSecondaryColumns\",\"setPivotResultColumns\"),this.setPivotResultColumns(e)},e.prototype.getSecondaryPivotColumn=function(e,t){return tt(\"28.0\",\"getSecondaryPivotColumn\",\"getPivotResultColumn\"),this.getPivotResultColumn(e,t)},Pp([q(\"columnModel\")],e.prototype,\"columnModel\",void 0),Pp([z],e.prototype,\"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\",null),Pp([V(\"columnApi\")],e)}(),xp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ip=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},kp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return xp(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsService.is(\"enableCellExpressions\"),this.isTreeData=this.gridOptionsService.is(\"treeData\"),this.initialised=!0,this.eventService.addEventListener(Ue.EVENT_CELL_VALUE_CHANGED,function(t){return e.callColumnCellValueChangedHandler(t)},this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener(\"treeData\",function(t){return e.isTreeData=t.currentValue})},t.prototype.getValue=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var o,a=e.getColDef(),i=a.field,l=e.getColId(),s=t.data,u=t.groupData&&void 0!==t.groupData[l],c=!r&&t.aggData&&void 0!==t.aggData[l];if(n&&a.filterValueGetter?o=this.executeFilterValueGetter(a.filterValueGetter,s,e,t):this.isTreeData&&c?o=t.aggData[l]:this.isTreeData&&a.valueGetter?o=this.executeValueGetter(a.valueGetter,s,e,t):this.isTreeData&&i&&s?o=_(s,i,e.isFieldContainsDots()):u?o=t.groupData[l]:c?o=t.aggData[l]:a.valueGetter?o=this.executeValueGetter(a.valueGetter,s,e,t):i&&s&&(o=_(s,i,e.isFieldContainsDots())),this.cellExpressions&&\"string\"==typeof o&&0===o.indexOf(\"=\")){var d=o.substring(1);o=this.executeValueGetter(d,s,e,t)}if(null==o){var p=this.getOpenedGroup(t,e);if(null!=p)return p}return o}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsService.is(\"showOpenedGroup\")&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,r=e.parent;null!=r;){if(r.rowGroupColumn&&(!0===n||n===r.rowGroupColumn.getColId()))return r.key;r=r.parent}},t.prototype.setValue=function(e,t,n,r){var i=this.columnModel.getPrimaryColumn(t);if(!e||!i)return!1;a(e.data)&&(e.data={});var l=i.getColDef(),s=l.field,u=l.valueSetter;if(a(s)&&a(u))return console.warn(\"AG Grid: you need either field or valueSetter set on colDef for editing to work\"),!1;var c,d={node:e,data:e.data,oldValue:this.getValue(i,e),newValue:n,colDef:i.getColDef(),column:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(d.newValue=n,void 0===(c=o(u)?\"function\"==typeof u?u(d):this.expressionService.evaluate(u,d):this.setValueUsingField(e.data,s,n,i.isFieldContainsDots()))&&(c=!0),!c)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(i,e);var p={type:Ue.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:r};return this.eventService.dispatchEvent(p),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;\"function\"==typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,t,n,r){if(!t)return!1;var o=!1;if(r)for(var a=t.split(\".\"),i=e;a.length>0&&i;){var l=a.shift();0===a.length?(o=i[l]==n)||(i[l]=n):i=i[l]}else(o=e[t]==n)||(e[t]=n);return!o},t.prototype.executeFilterValueGetter=function(e,t,n,r){var o={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return\"function\"==typeof e?e(o):this.expressionService.evaluate(e,o)},t.prototype.executeValueGetter=function(e,t,n,r){var o=n.getColId(),a=this.valueCache.getValue(r,o);if(void 0!==a)return a;var i,l={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return i=\"function\"==typeof e?e(l):this.expressionService.evaluate(e,l),this.valueCache.setValue(r,o,i),i},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),r=e.getColDef().keyCreator,o=n;return r&&(o=r({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context})),\"string\"==typeof o||null==o||\"[object Object]\"===(o=String(o))&&O(function(){console.warn(\"AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key\")},\"getKeyForNode - warn about [object,object]\"),o},Ip([q(\"expressionService\")],t.prototype,\"expressionService\",void 0),Ip([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Ip([q(\"valueCache\")],t.prototype,\"valueCache\",void 0),Ip([G],t.prototype,\"init\",null),Ip([V(\"valueService\")],t)}(ke),Bp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},jp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Bp(t,e),t.prototype.setBeans=function(e){this.logger=e.create(\"ExpressionService\")},t.prototype.evaluate=function(e,t){if(\"string\"==typeof e)return this.evaluateExpression(e,t);console.error(\"AG Grid: value should be either a string or a function\",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log(\"Processing of the expression failed\"),console.log(\"Expression = \"+e),console.log(\"Params =\",t),console.log(\"Exception = \"+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function(\"x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup\",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf(\"return\")>=0?e:\"return \"+e+\";\"},Fp([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Fp([V(\"expressionService\")],t);var n,r}(ke),Hp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Up=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Hp(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var r=this.waitingCallbacks[e],o=this;if(!r){r=[],this.waitingCallbacks[e]=r;var a=new XMLHttpRequest;a.onload=function(){o.handleHttpResult(this,e)},a.open(\"GET\",e),a.send()}return t&&r.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],r=0;r<n.length;r++)(0,n[r])()}else console.warn(\"AG Grid: Unable to get template error \"+e.status+\" - \"+t)},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"templateService\")],t)}(ke),Yp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},zp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yp(t,e),t.prototype.setBeans=function(e){this.logging=e.is(\"debug\")},t.prototype.create=function(e){return new Vp(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Gp([(n=0,r=K(\"gridOptionsService\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Gp([V(\"loggerFactory\")],t);var n,r}(ke),Vp=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log(\"AG Grid.\"+this.name+\": \"+e)},e}(),qp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qp(t,e),t.prototype.setComp=function(e,t,n){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(e){return e===ma.HeaderCell||e===ma.ToolPanel},getIconName:function(){return pi.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Tl(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ue.EVENT_KEYBOARD_FOCUS,function(){r.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,Ue.EVENT_MOUSE_FOCUS,function(){r.view.addOrRemoveKeyboardFocusClass(!1)});var o=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return o()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,t=this.focusService.findTabbableParent(this.getGui());return(null===(e=null==t?void 0:t.getAttribute(\"row-id\"))||void 0===e?void 0:e.startsWith(\"detail\"))||!1},t.prototype.showDropZones=function(){return te.isRegistered(X.RowGroupingModule)},t.prototype.showSideBar=function(){return te.isRegistered(X.SideBarModule)},t.prototype.showStatusBar=function(){return te.isRegistered(X.StatusBarModule)},t.prototype.showWatermark=function(){return te.isRegistered(X.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:Ue.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.is(\"enableRtl\")?\"ag-rtl\":\"ag-ltr\";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?\"ew-resize\":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?\"none\":null)},t.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsService.getDocument(),n=this.view.getFocusableContainers(),r=n.findIndex(function(e){return e.contains(t.activeElement)})+(e?-1:1);return!(r<=0||r>=n.length)&&this.focusService.focusInto(n[r])},t.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers(),n=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(ce(t),!0);var r=ce(n);if(this.focusService.focusGridView(r,!0))return!0}return 0===this.gridOptionsService.getNum(\"headerHeight\")?this.focusService.focusGridView(n[0]):this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Wp([q(\"focusService\")],t.prototype,\"focusService\",void 0),Wp([q(\"resizeObserverService\")],t.prototype,\"resizeObserverService\",void 0),Wp([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Wp([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Wp([q(\"mouseEventService\")],t.prototype,\"mouseEventService\",void 0),Wp([q(\"dragAndDropService\")],t.prototype,\"dragAndDropService\",void 0),t}(ke),Kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$p=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Xp=function(e){function t(t){var n=e.call(this)||this;return n.eGridDiv=t,n}return Kp(t,e),t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create(\"GridComp\");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(sp.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:\"\",e.getGui().style.webkitUserSelect=null!=t?t:\"\"},setCursor:function(t){e.getGui().style.cursor=null!=t?t:\"\"}};this.ctrl=this.createManagedBean(new Qp);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},t.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(function(){e.eGridDiv.removeChild(t),e.logger.log(\"Grid removed from DOM\")})},t.prototype.updateLayoutClasses=function(e,t){var n=this.eRootWrapperBody.classList;n.toggle(fl.AUTO_HEIGHT,t.autoHeight),n.toggle(fl.NORMAL,t.normal),n.toggle(fl.PRINT,t.print),this.addOrRemoveCssClass(fl.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(fl.NORMAL,t.normal),this.addOrRemoveCssClass(fl.PRINT,t.print)},t.prototype.createTemplate=function(){return'<div class=\"ag-root-wrapper\" role=\"presentation\">\\n                '+(this.ctrl.showDropZones()?\"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>\":\"\")+'\\n                <div class=\"ag-root-wrapper-body\" ref=\"rootWrapperBody\" role=\"presentation\">\\n                    <ag-grid-body ref=\"gridBody\"></ag-grid-body>\\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref=\"sideBar\"></ag-side-bar>':\"\")+\"\\n                </div>\\n                \"+(this.ctrl.showStatusBar()?'<ag-status-bar ref=\"statusBar\"></ag-status-bar>':\"\")+\"\\n                <ag-pagination></ag-pagination>\\n                \"+(this.ctrl.showWatermark()?\"<ag-watermark></ag-watermark>\":\"\")+\"\\n            </div>\"},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(e){return ar(e)})},$p([q(\"loggerFactory\")],t.prototype,\"loggerFactory\",void 0),$p([oo(\"gridBody\")],t.prototype,\"gridBodyComp\",void 0),$p([oo(\"sideBar\")],t.prototype,\"sideBarComp\",void 0),$p([oo(\"rootWrapperBody\")],t.prototype,\"eRootWrapperBody\",void 0),$p([G],t.prototype,\"postConstruct\",null),t}(Yd),Jp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zp=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ef=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},tf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ef(arguments[t]));return e},nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Jp(t,e),n=t,t.prototype.progressSort=function(e,t,n){var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)},t.prototype.setSortForColumn=function(e,t,n,r){\"asc\"!==t&&\"desc\"!==t&&(t=null);var o=[e];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){e.getColDef().field||(o=[]);var a=this.columnModel.getSourceColumnsForGroupColumn(e),i=null==a?void 0:a.filter(function(e){return e.getColDef().sortable});i&&(o=tf(o,i))}o.forEach(function(e){return e.setSort(t,r)}),(n||this.gridOptionsService.is(\"alwaysMultiSort\"))&&!this.gridOptionsService.is(\"suppressMultiSort\")||this.clearSortBarTheseColumns(o,r),this.updateSortIndex(e),this.dispatchSortChangedEvents(r)},t.prototype.updateSortIndex=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),r=t&&n||e,o=this.getColumnsWithSortingOrdered(!0);this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(e){return e.setSortIndex(null)});var a=o.filter(function(e){return e!==r});(r.getSort()?tf(a,[r]):a).forEach(function(e,t){return e.setSortIndex(t)})},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(e){return!!e.getSort()});return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:Ue.EVENT_SORT_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarTheseColumns=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(n){e.includes(n)||n.setSort(void 0,t)})},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsService.get(\"sortingOrder\")?this.gridOptionsService.get(\"sortingOrder\"):n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn(\"AG Grid: sortingOrder must be an array with at least one element, currently it's \"+t),null;var r=e.getColDef().field?e.getSort():this.getDisplaySortForColumn(e),o=t[0];if(\"mixed\"!==r){var a=t.indexOf(r),i=a<0,l=a==t.length-1;o=i||l?t[0]:t[a+1]}return n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn(\"AG Grid: invalid sort type \"+o),null):o},t.prototype.getIndexedSortMap=function(e){var t=this;void 0===e&&(e=!1);var n=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(e){return!!e.getSort()});!e&&this.columnModel.isPivotMode()&&(n=n.filter(function(e){return!!e.getAggFunc()||!e.isPrimary()||t.columnModel.getGroupDisplayColumnForGroup(e.getId())}));var r=this.columnModel.getRowGroupColumns().filter(function(e){return!!e.getSort()}),o=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!r.length;o&&(n=tf(new Set(n.map(function(e){var n;return null!==(n=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==n?n:e}))));var a={};n.forEach(function(e,t){return a[e.getId()]=t}),n.sort(function(e,t){var n=e.getSortIndex(),r=t.getSortIndex();return null!=n&&null!=r?n-r:null==n&&null==r?a[e.getId()]>a[t.getId()]?1:-1:null==r?-1:1});var i=new Map;return n.forEach(function(e,t){return i.set(e,t)}),o&&r.forEach(function(e){var n=t.columnModel.getGroupDisplayColumnForGroup(e.getId());i.set(e,i.get(n))}),i},t.prototype.getColumnsWithSortingOrdered=function(e){return void 0===e&&(e=!1),tf(this.getIndexedSortMap(e).entries()).sort(function(e,t){var n=ef(e,2);n[0];var r=n[1],o=ef(t,2);return o[0],r-o[1]}).map(function(e){return ef(e,1)[0]})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered(!0).map(function(e){return{sort:e.getSort(),colId:e.getId()}})},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map(function(e){return{sort:e.getSort(),column:e}})},t.prototype.canColumnDisplayMixedSort=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=!!e.getColDef().showRowGroup;return t&&n},t.prototype.getDisplaySortForColumn=function(e){var t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();var n=e.getColDef().field?tf([e],t):t,r=n[0].getSort();return n.every(function(e){return e.getSort()==r})?r:\"mixed\"},t.prototype.getDisplaySortIndexForColumn=function(e){return this.getIndexedSortMap().get(e)},t.DEFAULT_SORTING_ORDER=[\"asc\",\"desc\",null],Zp([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),n=Zp([V(\"sortController\")],t)}(ke),rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),of=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ue.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ue.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"columnHoverService\")],t)}(ke),af=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return af(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){return e.gridBodyCtrl=t.gridBodyCtrl})},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsService.is(\"suppressColumnMoveAnimation\")||this.gridOptionsService.is(\"enableRtl\")||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)})},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout(function(){return e.forEach(function(e){return e()})},0),window.setTimeout(function(){return t.forEach(function(e){return e()})},300))},lf([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),lf([G],t.prototype,\"postConstruct\",null),lf([V(\"columnAnimationService\")],t)}(ke),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},df=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uf(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,Ue.EVENT_BODY_HEIGHT_CHANGED,e.checkPageSize.bind(e)),e.addManagedListener(e.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsService.is(\"paginationAutoPageSize\")||null==this.centerRowContainerCon},t.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=function(){var n=e.gridOptionsService.getRowHeightAsNumber(),r=Math.floor(t/n);e.gridOptionsService.set(\"paginationPageSize\",r)};this.isBodyRendered?I(function(){return n()},50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},cf([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),cf([G],t.prototype,\"postConstruct\",null),cf([V(\"paginationAutoPageSizeService\")],t)}(ke),pf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ff=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},gf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return pf(t,e),t.prototype.init=function(){this.active=this.gridOptionsService.is(\"valueCache\"),this.neverExpires=this.gridOptionsService.is(\"valueCacheNeverExpires\")},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},ff([G],t.prototype,\"init\",null),ff([V(\"valueCache\")],t)}(ke),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hf(t,e),t.prototype.init=function(){\"clientSide\"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ue.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){\"paste\"!==e.source&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsService.is(\"suppressChangeDetection\")){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsService.is(\"aggregateOnlyChangedColumns\"),r=new pd(n,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},mf([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),mf([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),mf([G],t.prototype,\"init\",null),mf([V(\"changeDetectionService\")],t)}(ke),Af=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Af(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),r=typeof n;this.eGui=\"string\"!==r&&\"number\"!==r&&\"boolean\"!==r?null!=n?n:ir(\"<span></span>\"):ir(\"<span>\"+n+\"</span>\")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&\"getGui\"in e.prototype},yf([q(\"componentMetadataProvider\")],t.prototype,\"componentMetadataProvider\",void 0),yf([V(\"agComponentUtils\")],t)}(ke),bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_f=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bf(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:[\"getDate\",\"setDate\"],optionalMethodList:[\"afterGuiAttached\",\"setInputPlaceholder\",\"setInputAriaLabel\"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:[\"refresh\"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:[\"onParentModelChanged\"],optionalMethodList:[\"afterGuiAttached\"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:[\"getValue\"],optionalMethodList:[\"isPopup\",\"isCancelBeforeStart\",\"isCancelAfterEnd\",\"getPopupPosition\",\"focusIn\",\"focusOut\",\"afterGuiAttached\"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:[\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:[\"afterGuiAttached\"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:[\"isFilterActive\",\"doesFilterPass\",\"getModel\",\"setModel\"],optionalMethodList:[\"afterGuiAttached\",\"afterGuiDetached\",\"onNewRowsLoaded\",\"getModelAsString\",\"onFloatingFilterChanged\",\"onAnyFilterChanged\"]},filterComponent:{mandatoryMethodList:[\"isFilterActive\",\"doesFilterPass\",\"getModel\",\"setModel\"],optionalMethodList:[\"afterGuiAttached\",\"afterGuiDetached\",\"onNewRowsLoaded\",\"getModelAsString\",\"onFloatingFilterChanged\",\"onAnyFilterChanged\"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:[\"afterGuiAttached\"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:[\"refresh\",\"afterGuiAttached\"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},_f([q(\"agComponentUtils\")],t.prototype,\"agComponentUtils\",void 0),_f([G],t.prototype,\"postConstruct\",null),_f([V(\"componentMetadataProvider\")],t)}(ke),wf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Tf=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Of={\"ag-theme-custom\":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},\"ag-theme-material\":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},\"ag-theme-balham\":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},\"ag-theme-alpine\":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},Df={headerHeight:[\"ag-header-row\"],headerCellMinWidth:[\"ag-header-cell\"],listItemHeight:[\"ag-virtual-list-item\"],rowHeight:[\"ag-row\"],chartMenuPanelWidth:[\"ag-chart-docked-container\"]},Rf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatedSizes={},t}return wf(t,e),t.prototype.postConstruct=function(){var e,t=this,n=null!==(e=this.getTheme().el)&&void 0!==e?e:this.eGridDiv;this.mutationObserver=new MutationObserver(function(){t.calculatedSizes={},t.fireGridStylesChangedEvent()}),this.mutationObserver.observe(n||this.eGridDiv,{attributes:!0,attributeFilter:[\"class\"]})},t.prototype.fireGridStylesChangedEvent=function(){var e={type:Ue.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.getSassVariable=function(e){var t=this.getTheme(),n=t.themeFamily,r=t.el;if(n&&0===n.indexOf(\"ag-theme\")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[n]||(this.calculatedSizes[n]={});var o=this.calculatedSizes[n][e];return null!=o?o:(this.calculatedSizes[n][e]=this.calculateValueForSassProperty(e,n,r),this.calculatedSizes[n][e])}},t.prototype.calculateValueForSassProperty=function(e,t,n){var r,o=\"ag-theme-\"+(t.match(\"material\")?\"material\":t.match(\"balham\")?\"balham\":t.match(\"alpine\")?\"alpine\":\"custom\"),a=Of[o][e],i=this.gridOptionsService.getDocument();if(n||(n=this.eGridDiv),!Df[e])return a;var l=Df[e],s=i.createElement(\"div\"),u=Array.from(n.classList);(r=s.classList).add.apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tf(arguments[t]));return e}([t],u)),s.style.position=\"absolute\";var c=l.reduce(function(e,t){var n=i.createElement(\"div\");return n.style.position=\"static\",n.classList.add(t),e.appendChild(n),n},s),d=0;if(i.body){i.body.appendChild(s);var p=-1!==e.toLowerCase().indexOf(\"height\")?\"height\":\"width\";d=parseInt(window.getComputedStyle(c)[p],10),i.body.removeChild(s)}return d||a},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf(\"dark\")>=0},t.prototype.chartMenuPanelWidth=function(){return this.getSassVariable(\"chartMenuPanelWidth\")},t.prototype.getTheme=function(){for(var e=/\\bag-(material|(?:theme-([\\w\\-]*)))\\b/g,t=this.eGridDiv,n=null,r=[];t;){if(n=e.exec(t.className)){var o=t.className.match(e);o&&(r=o);break}t=t.parentElement||void 0}if(!n)return{allThemes:r};var a=n[0];return{theme:a,el:t,themeFamily:a.replace(/-dark$/,\"\"),allThemes:r}},t.prototype.getFromTheme=function(e,t){var n;return null!==(n=this.getSassVariable(t))&&void 0!==n?n:e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,\"rowHeight\")},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,\"listItemHeight\")},t.prototype.setRowHeightVariable=function(e){var t=e+\"px\";this.eGridDiv.style.getPropertyValue(\"--ag-line-height\").trim()!=t&&this.eGridDiv.style.setProperty(\"--ag-line-height\",t)},t.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,\"headerCellMinWidth\");return o(e)?Math.max(e,10):10},t.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),e.prototype.destroy.call(this)},Sf([q(\"eGridDiv\")],t.prototype,\"eGridDiv\",void 0),Sf([G],t.prototype,\"postConstruct\",null),Sf([V(\"environment\")],t)}(ke),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Nf(t,e),t.prototype.agWire=function(e){this.logger=e.create(\"RowContainerHeightService\")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Cn(),this.logger.log(\"maxDivHeight = \"+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log(\"Div Stretch Offset = \"+t+\" (\"+this.pixelsToShave+\" * \"+e+\")\"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Ue.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t=\"number\"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Ue.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},Lf([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Lf([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"agWire\",null),Lf([G],t.prototype,\"postConstruct\",null),Lf([V(\"rowContainerHeightService\")],t);var n,r}(ke),Mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},If=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mf(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is(\"groupSelectsChildren\"),this.isRowSelectableFunc=this.gridOptionsService.get(\"isRowSelectable\")},t.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,function(e){return e.childrenAfterGroup})},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach(function(e){var r;e.group&&(e.hasChildren()&&n.recurseDown(t(e),t),r=n.groupSelectsChildren?o((t(e)||[]).find(function(e){return!0===e.selectable})):!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e),e.setRowSelectable(r))})},xf([G],t.prototype,\"init\",null),xf([V(\"selectableService\")],t)}(ke),kf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ff=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t.areListenersSetup=!1,t}return kf(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsService.is(\"enableRtl\");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement(\"afterbegin\",Or(e?\"last\":\"first\",this.gridOptionsService)),this.btPrevious.insertAdjacentElement(\"afterbegin\",Or(e?\"next\":\"previous\",this.gridOptionsService)),this.btNext.insertAdjacentElement(\"afterbegin\",Or(e?\"previous\":\"next\",this.gridOptionsService)),this.btLast.insertAdjacentElement(\"afterbegin\",Or(e?\"first\":\"last\",this.gridOptionsService)),this.addManagedPropertyListener(\"pagination\",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener(\"suppressPaginationPanel\",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.is(\"pagination\")&&!this.gridOptionsService.is(\"suppressPaginationPanel\");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,Ue.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(function(t){var n=t.el,r=t.fn;e.addManagedListener(n,\"click\",r),e.addManagedListener(n,\"keydown\",function(e){e.key!==Rr.ENTER&&e.key!==Rr.SPACE||(e.preventDefault(),r())})}),this.areListenersSetup=!0)},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsService.getCallback(\"paginationNumberFormatter\");if(t)return t({value:e});var n=this.localeService.getLocaleTextFunc();return Pn(e,n(\"thousandSeparator\",\",\"),n(\"decimalSeparator\",\".\"))},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),t=e(\"page\",\"Page\"),n=e(\"to\",\"to\"),r=e(\"of\",\"of\"),o=e(\"firstPage\",\"First Page\"),a=e(\"previousPage\",\"Previous Page\"),i=e(\"nextPage\",\"Next Page\"),l=e(\"lastPage\",\"Last Page\"),s=this.getCompId();return'<div class=\"ag-paging-panel ag-unselectable\" id=\"ag-'+s+'\">\\n                <span class=\"ag-paging-row-summary-panel\" role=\"status\">\\n                    <span id=\"ag-'+s+'-first-row\" ref=\"lbFirstRowOnPage\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                    <span id=\"ag-'+s+'-to\">'+n+'</span>\\n                    <span id=\"ag-'+s+'-last-row\" ref=\"lbLastRowOnPage\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                    <span id=\"ag-'+s+'-of\">'+r+'</span>\\n                    <span id=\"ag-'+s+'-row-count\" ref=\"lbRecordCount\" class=\"ag-paging-row-summary-panel-number\"></span>\\n                </span>\\n                <span class=\"ag-paging-page-summary-panel\" role=\"presentation\">\\n                    <div ref=\"btFirst\" class=\"ag-paging-button\" role=\"button\" aria-label=\"'+o+'\"></div>\\n                    <div ref=\"btPrevious\" class=\"ag-paging-button\" role=\"button\" aria-label=\"'+a+'\"></div>\\n                    <span class=\"ag-paging-description\" role=\"status\">\\n                        <span id=\"ag-'+s+'-start-page\">'+t+'</span>\\n                        <span id=\"ag-'+s+'-start-page-number\" ref=\"lbCurrent\" class=\"ag-paging-number\"></span>\\n                        <span id=\"ag-'+s+'-of-page\">'+r+'</span>\\n                        <span id=\"ag-'+s+'-of-page-number\" ref=\"lbTotal\" class=\"ag-paging-number\"></span>\\n                    </span>\\n                    <div ref=\"btNext\" class=\"ag-paging-button\" role=\"button\" aria-label=\"'+i+'\"></div>\\n                    <div ref=\"btLast\" class=\"ag-paging-button\" role=\"button\" aria-label=\"'+l+'\"></div>\\n                </span>\\n            </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),o=t&&e===n-1;this.nextButtonDisabled=o||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Gt(e,t),e.classList.toggle(\"ag-disabled\",t),t?e.removeAttribute(\"tabindex\"):e.setAttribute(\"tabindex\",\"0\")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),a=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(this.isZeroPagesToDisplay()?e=t=0:(t=(e=r*n+1)+r-1,o&&t>a&&(t=a)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()){var i=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=i(\"pageLastRowUnknown\",\"?\")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var r=this.paginationProxy.getRow(0);if(r&&r.group&&!r.groupData&&!r.aggData)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.localeService.getLocaleTextFunc()(\"more\",\"more\");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Bf([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),Bf([q(\"rowNodeBlockLoader\")],t.prototype,\"rowNodeBlockLoader\",void 0),Bf([oo(\"btFirst\")],t.prototype,\"btFirst\",void 0),Bf([oo(\"btPrevious\")],t.prototype,\"btPrevious\",void 0),Bf([oo(\"btNext\")],t.prototype,\"btNext\",void 0),Bf([oo(\"btLast\")],t.prototype,\"btLast\",void 0),Bf([oo(\"lbRecordCount\")],t.prototype,\"lbRecordCount\",void 0),Bf([oo(\"lbFirstRowOnPage\")],t.prototype,\"lbFirstRowOnPage\",void 0),Bf([oo(\"lbLastRowOnPage\")],t.prototype,\"lbLastRowOnPage\",void 0),Bf([oo(\"lbCurrent\")],t.prototype,\"lbCurrent\",void 0),Bf([oo(\"lbTotal\")],t.prototype,\"lbTotal\",void 0),Bf([G],t.prototype,\"postConstruct\",null),t}(no),jf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e[e.Loading=0]=\"Loading\",e[e.NoRows=1]=\"NoRows\"}(pp||(pp={}));var Uf=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n.manuallyDisplayed=!1,n}return jf(t,e),t.prototype.updateLayoutClasses=function(e,t){var n=this.eOverlayWrapper.classList;n.toggle(fl.AUTO_HEIGHT,t.autoHeight),n.toggle(fl.NORMAL,t.normal),n.toggle(fl.PRINT,t.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Tl(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,Ue.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType(\"clientSide\")&&!this.gridOptionsService.get(\"rowData\")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle(\"ag-overlay-loading-wrapper\",e===pp.Loading),t.toggle(\"ag-overlay-no-rows-wrapper\",e===pp.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is(\"suppressLoadingOverlay\")){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,pp.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is(\"suppressNoRowsOverlay\")){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,pp.NoRows)}},t.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())}),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),rr(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.is(\"suppressNoRowsOverlay\");e&&!t?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},t.TEMPLATE='\\n        <div class=\"ag-overlay\" aria-hidden=\"true\">\\n            <div class=\"ag-overlay-panel\">\\n                <div class=\"ag-overlay-wrapper\" ref=\"eOverlayWrapper\"></div>\\n            </div>\\n        </div>',Hf([q(\"userComponentFactory\")],t.prototype,\"userComponentFactory\",void 0),Hf([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),Hf([q(\"gridApi\")],t.prototype,\"gridApi\",void 0),Hf([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Hf([oo(\"eOverlayWrapper\")],t.prototype,\"eOverlayWrapper\",void 0),Hf([G],t.prototype,\"postConstruct\",null),t}(no),Yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},zf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yf(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=\"top\":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=\"bottom\"),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=\"bottom\",e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t=\"top\",e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned},t.prototype.before=function(e,t){switch(e.rowPinned){case\"top\":if(\"top\"!==t.rowPinned)return!0;break;case\"bottom\":if(\"bottom\"!==t.rowPinned)return!1;break;default:if(o(t.rowPinned))return\"top\"!==t.rowPinned}return e.rowIndex<t.rowIndex},t.prototype.rowMax=function(e){var t,n=this;return e.forEach(function(e){(void 0===t||n.before(t,e))&&(t=e)}),t},t.prototype.rowMin=function(e){var t,n=this;return e.forEach(function(e){(void 0===t||n.before(e,t))&&(t=e)}),t},Gf([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Gf([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),Gf([q(\"paginationProxy\")],t.prototype,\"paginationProxy\",void 0),Gf([V(\"rowPositionUtils\")],t)}(ke),Vf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vf(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,r=e.column;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:n})},t.prototype.createIdFromValues=function(e){var t=e.rowIndex,n=e.rowPinned;return t+\".\"+(null==n?\"null\":n)+\".\"+e.column.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,r=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&r&&o},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"cellPositionUtils\")],t)}(ke),Wf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qf=function(e){this.cellValueChanges=e},Kf=function(e){function t(t,n,r,o){var a=e.call(this,t)||this;return a.initialRange=n,a.finalRange=r,a.ranges=o,a}return Wf(t,e),t}(Qf),$f=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Xf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jf=function(){return Jf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jf.apply(this,arguments)},Zf=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},eg=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},tg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isRangeInAction=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},r=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),o=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(r||o||t.isPasting||t.isRangeInAction){var a=e.rowPinned,i=e.rowIndex,l=e.column,s=e.oldValue,u=e.value,c={rowPinned:a,rowIndex:i,columnId:l.getColId(),newValue:u,oldValue:s};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Xf(t,e),t.prototype.init=function(){var e=this;if(this.gridOptionsService.is(\"undoRedoCellEditing\")){var t=this.gridOptionsService.getNum(\"undoRedoCellEditingLimit\");t<=0||(this.undoStack=new $f(t),this.redoStack=new $f(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,Ue.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ue.EVENT_MODEL_UPDATED,function(t){t.keepUndoRedoStack||e.clearStacks()}),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ue.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(e){var t={type:Ue.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);var n=this.undoRedo(this.undoStack,this.redoStack,\"initialRange\",\"oldValue\",\"undo\"),r={type:Ue.EVENT_UNDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)},t.prototype.redo=function(e){var t={type:Ue.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);var n=this.undoRedo(this.redoStack,this.undoStack,\"finalRange\",\"newValue\",\"redo\"),r={type:Ue.EVENT_REDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)},t.prototype.undoRedo=function(e,t,n,r,o){if(!e)return!1;var a=e.pop();return!(!a||!a.cellValueChanges||(this.processAction(a,function(e){return e[r]},o),a instanceof Kf?this.processRange(a.ranges||[a[n]]):this.processCell(a.cellValueChanges),t.push(a),0))},t.prototype.processAction=function(e,t,n){var r=this;e.cellValueChanges.forEach(function(e){var o=e.rowIndex,a=e.rowPinned,i=e.columnId,l={rowIndex:o,rowPinned:a},s=r.getRowNode(l);s.displayed&&s.setDataValue(i,t(e),n)})},t.prototype.processRange=function(e){var t,n=this;this.rangeService.removeAllCellRanges(!0),e.forEach(function(r,o){if(r){var a=r.startRow,i=r.endRow;o===e.length-1&&(t={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:r.startColumn.getColId()},n.setLastFocusedCell(t));var l={rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:i.rowIndex,rowEndPinned:i.rowPinned,columnStart:r.startColumn,columns:r.columns};n.rangeService.addCellRange(l)}})},t.prototype.processCell=function(e){var t=e[0],n={rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=this.getRowNode(n),o={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(o,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,t){var n=e.rowIndex,r=e.columnId,o=e.rowPinned,a=this.gridBodyCtrl.getScrollFeature(),i=this.columnModel.getGridColumn(r);if(i){a.ensureIndexVisible(n),a.ensureColumnVisible(i);var l={rowIndex:n,column:i,rowPinned:o};this.focusService.setFocusedCell(Jf(Jf({},l),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(l)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_ROW_EDITING_STARTED,function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,Ue.EVENT_ROW_EDITING_STOPPED,function(){var t=new Qf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null})},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_CELL_EDITING_STARTED,function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}}),this.addManagedListener(this.eventService,Ue.EVENT_CELL_EDITING_STOPPED,function(t){if(e.activeCellEdit=null,t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction){var n=new Qf(e.cellValueChanges);e.pushActionsToUndoStack(n)}})},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,Ue.EVENT_PASTE_END,function(){var t=new Qf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,Ue.EVENT_FILL_END,function(t){var n=new Kf(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,Ue.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var t;t=e.rangeService&&e.gridOptionsService.isEnableRangeSelection()?new Kf(e.cellValueChanges,void 0,void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(eg(arguments[t]));return e}(e.rangeService.getCellRanges())):new Qf(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case\"top\":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case\"bottom\":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Zf([q(\"focusService\")],t.prototype,\"focusService\",void 0),Zf([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),Zf([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Zf([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),Zf([q(\"cellPositionUtils\")],t.prototype,\"cellPositionUtils\",void 0),Zf([q(\"rowPositionUtils\")],t.prototype,\"rowPositionUtils\",void 0),Zf([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Zf([W(\"rangeService\")],t.prototype,\"rangeService\",void 0),Zf([G],t.prototype,\"init\",null),Zf([V(\"undoRedoService\")],t)}(ke),ng=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rg=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},og=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ng(t,e),t.prototype.findHeader=function(e,t){var n,r,o;if(e.column instanceof ot?(r=\"getDisplayedGroup\"+t,n=this.columnModel[r](e.column)):(o=\"getDisplayedCol\"+t,n=this.columnModel[o](e.column)),n){var a=e.headerRowIndex;if(this.getHeaderRowType(a)===Ys.COLUMN_GROUP){var i=n;if(i.isPadding()&&this.isAnyChildSpanningHeaderHeight(i)){var l=this.getColumnVisibleChild(i,a,t),s=l.nextFocusColumn,u=l.nextRow;s&&(n=s,a=u)}}return{column:n,headerRowIndex:a}}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return!!e&&e.getLeafColumns().some(function(e){return e.isSpanHeaderHeight()})},t.prototype.getColumnVisibleParent=function(e,t){var n=this.getHeaderRowType(t),r=n===Ys.FLOATING_FILTER,o=n===Ys.COLUMN,a=r?e:e.getParent(),i=t-1;if(o&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;a&&a.isPadding();)a=a.getParent(),i--;i<0&&(a=e,i=t)}return{nextFocusColumn:a,nextRow:i}},t.prototype.getColumnVisibleChild=function(e,t,n){void 0===n&&(n=\"After\");var r=e,o=t+1;if(this.getHeaderRowType(t)===Ys.COLUMN_GROUP){var a=e.getLeafColumns(),i=\"After\"===n?a[0]:ce(a);if(this.isAnyChildSpanningHeaderHeight(i.getParent())){r=i;for(var l=i.getParent();l&&l!==e;)l=l.getParent(),o++}else r=e.getDisplayedChildren()[0]}return{nextFocusColumn:r,nextRow:o}},t.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var n=this.columnModel.getAllDisplayedColumns(),r=n[\"start\"===t?0:n.length-1];if(r){var o=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return o==Ys.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==o?-1:e,column:r}}},rg([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),rg([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),rg([V(\"headerPositionUtils\")],t)}(ke),ag=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var r=this,o=[],a={};return e.forEach(function(e){for(var i=!0,l=r.createDefFromColumn(e,t,n),s=e.getOriginalParent();s;){var u=null;if(s.isPadding())s=s.getOriginalParent();else{var c=a[s.getGroupId()];if(c){c.children.push(l),i=!1;break}(u=r.createDefFromGroup(s))&&(u.children=[l],a[u.groupId]=u,l=u,s=s.getOriginalParent())}}i&&o.push(l)}),o},e.prototype.createDefFromGroup=function(e){var t=h(e.getColGroupDef(),[\"children\"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var r=h(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"columnDefFactory\")],e)}(),ig=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},lg=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return o(e.extraCssClass)&&t.push(e.extraCssClass),t.push(\"ag-row\"),t.push(e.rowFocused?\"ag-row-focus\":\"ag-row-no-focus\"),e.fadeRowIn&&t.push(\"ag-opacity-zero\"),t.push(e.rowIsEven?\"ag-row-even\":\"ag-row-odd\"),e.rowNode.isRowPinned()&&t.push(\"ag-row-pinned\"),e.rowNode.isSelected()&&t.push(\"ag-row-selected\"),e.rowNode.footer&&t.push(\"ag-row-footer\"),t.push(\"ag-row-level-\"+e.rowLevel),e.rowNode.stub&&t.push(\"ag-row-loading\"),e.fullWidthRow&&t.push(\"ag-full-width-row\"),e.expandable&&(t.push(\"ag-row-group\"),t.push(e.rowNode.expanded?\"ag-row-group-expanded\":\"ag-row-group-contracted\")),e.rowNode.dragging&&t.push(\"ag-row-dragging\"),ye(t,this.processClassesFromGridOptions(e.rowNode)),ye(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?\"ag-row-position-relative\":\"ag-row-position-absolute\"),e.firstRowOnPage&&t.push(\"ag-row-first\"),e.lastRowOnPage&&t.push(\"ag-row-last\"),e.fullWidthRow&&(\"left\"===e.pinned&&t.push(\"ag-cell-last-left-pinned\"),\"right\"===e.pinned&&t.push(\"ag-cell-first-right-pinned\")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){\"string\"==typeof e?t.push(e):Array.isArray(e)&&e.forEach(function(e){return t.push(e)})},r=this.gridOptionsService.get(\"rowClass\");if(r){if(\"function\"==typeof r)return console.warn(\"AG Grid: rowClass should not be a function, please use getRowClass instead\"),[];n(r)}var o=this.gridOptionsService.getCallback(\"getRowClass\");return o&&n(o({data:e.data,node:e,rowIndex:e.rowIndex})),t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,function(e){t.push(e)},function(e){}),t},e.prototype.processRowClassRules=function(e,t,n){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get(\"rowClassRules\"),r,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},ig([q(\"stylingService\")],e.prototype,\"stylingService\",void 0),ig([q(\"gridOptionsService\")],e.prototype,\"gridOptionsService\",void 0),ig([V(\"rowCssClassCalculator\")],e)}(),sg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ug=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},cg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sg(t,e),t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.is(\"accentedSort\"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener(\"accentedSort\",function(t){return e.isAccentedSort=t.currentValue}),this.addManagedPropertyListener(\"autoGroupColumnDef\",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,t){var n=e.map(function(e,t){return{currentPos:t,rowNode:e}});return n.sort(this.compareRowNodes.bind(this,t)),n.map(function(e){return e.rowNode})},t.prototype.compareRowNodes=function(e,t,n){for(var r=t.rowNode,o=n.rowNode,a=0,i=e.length;a<i;a++){var l,s=e[a],u=\"desc\"===s.sort,c=this.getValue(r,s.column),d=this.getValue(o,s.column),p=this.getComparator(s,r);if(l=p?p(c,d,r,o,u):Gr.defaultComparator(c,d,this.isAccentedSort),!isNaN(l)&&0!==l)return\"asc\"===s.sort?l:-1*l}return t.currentPos-n.currentPos},t.prototype.getComparator=function(e,t){var n=e.column,r=n.getColDef().comparator;if(null!=r)return r;if(n.getColDef().showRowGroup){var o=!t.group&&n.getColDef().field;if(o){var a=this.columnModel.getPrimaryColumn(o);if(a)return a.getColDef().comparator}}},t.prototype.getValue=function(e,t){var n,r;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(t.getColDef().keyCreator)return e.key;var o=null===(n=e.allLeafChildren)||void 0===n?void 0:n[0];return o?this.valueService.getValue(t,o,!1,!1):void 0}var a=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!a)return;return null===(r=e.groupData)||void 0===r?void 0:r[a.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)},ug([q(\"valueService\")],t.prototype,\"valueService\",void 0),ug([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),ug([G],t.prototype,\"init\",null),ug([V(\"rowNodeSorter\")],t)}(ke),dg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return dg(t,e),n=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach(function(t){return t(e)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(e){this.fakeHScrollComp=e,this.checkReady()},t.prototype.registerFakeVScrollComp=function(e){this.fakeVScrollComp=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(e){this.stickyTopRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case\"left\":this.leftHeaderRowContainerCtrl=e;break;case\"right\":this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case\"left\":return this.leftHeaderRowContainerCtrl;case\"right\":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME=\"ctrlsService\",function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(n.NAME)],t)}(ke),fg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return fg(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"ctrlsFactory\")],t)}(ke),hg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mg=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},vg=function(e){function t(t,n){var r=e.call(this,t)||this;return r.direction=n,r.hideTimeout=null,r}return hg(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ue.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass(\"ag-apple-scrollbar\",yn()||En())},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Dn(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,t=this.getGui();[\"mouseenter\",\"mousedown\",\"touchstart\"].forEach(function(n){return e.addManagedListener(t,n,function(){return e.addOrRemoveCssClass(\"ag-scrollbar-active\",!0)})}),[\"mouseleave\",\"touchend\"].forEach(function(n){return e.addManagedListener(t,n,function(){return e.addOrRemoveCssClass(\"ag-scrollbar-active\",!1)})})},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Ue.EVENT_BODY_SCROLL,function(t){t.direction===e.direction&&(null!==e.hideTimeout&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass(\"ag-scrollbar-scrolling\",!0))}),this.addManagedListener(this.eventService,Ue.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass(\"ag-scrollbar-scrolling\",!1),e.hideTimeout=null},400)})},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},mg([oo(\"eViewport\")],t.prototype,\"eViewport\",void 0),mg([oo(\"eContainer\")],t.prototype,\"eContainer\",void 0),mg([q(\"scrollVisibleService\")],t.prototype,\"scrollVisibleService\",void 0),mg([q(\"ctrlsService\")],t.prototype,\"ctrlsService\",void 0),t}(no),Ag=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yg=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Eg=function(e){function t(){return e.call(this,t.TEMPLATE,\"horizontal\")||this}return Ag(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,Ue.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener(\"domLayout\",n),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Bs(function(e){return t.eContainer.style.width=e+\"px\"}))},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is(\"enableRtl\"),e.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=e+\"px\"}},t.prototype.onScrollVisibilityChanged=function(){e.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,r=this.gridOptionsService.getScrollbarWidth();n&&(t+=r),mr(this.eRightSpacer,t),this.eRightSpacer.classList.toggle(\"ag-scroller-corner\",t<=r);var o=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(o+=r),mr(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle(\"ag-scroller-corner\",o<=r)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsService.is(\"suppressHorizontalScroll\"),r=e&&this.gridOptionsService.getScrollbarWidth()||0,o=n?0:0===r&&t?16:r;this.addOrRemoveCssClass(\"ag-scrollbar-invisible\",t),vr(this.getGui(),o),vr(this.eViewport,o),vr(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class=\"ag-body-horizontal-scroll\" aria-hidden=\"true\">\\n            <div class=\"ag-horizontal-left-spacer\" ref=\"eLeftSpacer\"></div>\\n            <div class=\"ag-body-horizontal-scroll-viewport\" ref=\"eViewport\">\\n                <div class=\"ag-body-horizontal-scroll-container\" ref=\"eContainer\"></div>\\n            </div>\\n            <div class=\"ag-horizontal-right-spacer\" ref=\"eRightSpacer\"></div>\\n        </div>',yg([oo(\"eLeftSpacer\")],t.prototype,\"eLeftSpacer\",void 0),yg([oo(\"eRightSpacer\")],t.prototype,\"eRightSpacer\",void 0),yg([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),yg([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),yg([G],t.prototype,\"postConstruct\",null),t}(vg),bg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_g=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Cg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bg(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener(\"domLayout\",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout(\"print\"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Ue.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Ue.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},_g([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),_g([G],t.prototype,\"postConstruct\",null),_g([V(\"pinnedWidthService\")],t)}(ke),wg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sg=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Tg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return wg(t,e),t.prototype.postConstruct=function(){\"clientSide\"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;null!=this.clientSideRowModel?(this.events.push(e),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach(function(e){return t.eventService.dispatchEvent(e)}),t.events=[]})),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(e)},Sg([q(\"animationFrameService\")],t.prototype,\"animationFrameService\",void 0),Sg([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Sg([G],t.prototype,\"postConstruct\",null),Sg([V(\"rowNodeEventThrottle\")],t)}(ke),Og=function(){return Og=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Og.apply(this,arguments)},Dg=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Rg=function(e,t){return function(n,r){t(n,r,e)}},Ng=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function Lg(e){return!0===e||\"true\"===e}var Pg,Mg=function(){function e(){this.destroyed=!1,this.domDataKey=\"__AG_\"+Math.random().toString(),this.propertyEventService=new ee}return Object.defineProperty(e.prototype,\"context\",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.api=e,this.columnApi=t},e.prototype.init=function(){this.gridOptionLookup=new Set(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ng(arguments[t]));return e}(We.ALL_PROPERTIES,We.EVENT_CALLBACKS));var e=!this.is(\"suppressAsyncEvents\");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.getScrollbarWidth()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.is=function(e){return Lg(this.gridOptions[e])},e.prototype.get=function(e){return this.gridOptions[e]},e.prototype.getNum=function(e){return\"number\"==typeof(t=this.gridOptions[e])?t:\"string\"==typeof t?parseInt(t,10):void 0;var t},e.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},e.prototype.exists=function(e){return o(this.gridOptions[e])},e.prototype.mergeGridCommonParams=function(e){var t=this;return e?function(n){var r=n;return r.api=t.api,r.columnApi=t.columnApi,r.context=t.context,e(r)}:e},e.prototype.set=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r={}),this.gridOptionLookup.has(e)){var o=this.gridOptions[e];if(n||o!==t){this.gridOptions[e]=t;var a=Og({type:e,currentValue:t,previousValue:o},r);this.propertyEventService.dispatchEvent(a)}}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=We.getCallbackForEvent(e);\"function\"==typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e=\"number\"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Tn();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ue.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||\"clientSide\"===e&&a(this.gridOptions.rowModelType)},e.prototype.isDomLayout=function(e){var t;return(null!==(t=this.gridOptions.domLayout)&&void 0!==t?t:\"normal\")===e},e.prototype.isRowSelection=function(){return\"single\"===this.gridOptions.rowSelection||\"multiple\"===this.gridOptions.rowSelection},e.prototype.useAsyncEvents=function(){return!this.is(\"suppressAsyncEvents\")},e.prototype.isGetRowHeightFunction=function(){return\"function\"==typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var r={node:e,data:e.data},o=this.getCallback(\"getRowHeight\")(r);if(this.isNumeric(o))return 0===o&&O(function(){return console.warn(\"AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.\")},\"invalidRowHeight\"),{height:Math.max(1,o),estimated:!1}}return e.detail&&this.is(\"masterDetail\")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.getMasterDetailRowHeight=function(){return this.is(\"detailRowAutoHeight\")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||a(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.environment.setRowHeightVariable(e),e):(console.warn(\"AG Grid row height must be a number if not using standard row model\"),this.environment.getDefaultRowHeight())},e.prototype.isNumeric=function(e){return!isNaN(e)&&\"number\"==typeof e&&isFinite(e)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var r=this.getDomDataKey(),o=e[r];a(o)&&(o={},e[r]=o),o[t]=n},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&o(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&o(e)?e:document},e.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},e.prototype.getRowIdFunc=function(){var e=this.getCallback(\"getRowId\");if(e)return e;var t=this.gridOptions.getRowNodeId;return t?function(e){return t(e.data)}:void 0},e.prototype.getAsyncTransactionWaitMillis=function(){return o(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},e.prototype.isAnimateRows=function(){return!this.is(\"ensureDomOrder\")&&this.is(\"animateRows\")},e.prototype.isTreeData=function(){return this.is(\"treeData\")&&te.assertRegistered(X.RowGroupingModule,\"Tree Data\")},e.prototype.isMasterDetail=function(){return this.is(\"masterDetail\")&&te.assertRegistered(X.MasterDetailModule,\"masterDetail\")},e.prototype.isEnableRangeSelection=function(){return this.is(\"enableRangeSelection\")&&te.isRegistered(X.RangeSelectionModule)},e.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return this.isRowModelType(\"clientSide\")&&!(null==e?void 0:e.comparator)&&!this.isTreeData()},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return\"function\"==typeof e?this.getCallback(\"groupAggFiltering\"):Lg(e)?function(){return!0}:void 0},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?rt(\"multipleColumns\",this.gridOptions.groupDisplayType):this.is(\"groupHideOpenParents\")},e.prototype.isGroupUseEntireRow=function(e){return!e&&!!this.gridOptions.groupDisplayType&&rt(\"groupRows\",this.gridOptions.groupDisplayType)},Dg([q(\"gridOptions\")],e.prototype,\"gridOptions\",void 0),Dg([q(\"eventService\")],e.prototype,\"eventService\",void 0),Dg([q(\"environment\")],e.prototype,\"environment\",void 0),Dg([q(\"eGridDiv\")],e.prototype,\"eGridDiv\",void 0),Dg([Rg(0,K(\"gridApi\")),Rg(1,K(\"columnApi\"))],e.prototype,\"agWire\",null),Dg([G],e.prototype,\"init\",null),Dg([z],e.prototype,\"destroy\",null),Dg([V(\"gridOptionsService\")],e)}(),xg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ig=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xg(t,e),t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback(\"getLocaleText\");if(e)return function(t,n,r){return e({key:t,defaultValue:n,variableValues:r})};var t=this.gridOptionsService.get(\"localeTextFunc\");if(t)return t;var n=this.gridOptionsService.get(\"localeText\");return function(e,t,r){var o=n&&n[e];if(o&&r&&r.length)for(var a=0;!(a>=r.length)&&-1!==o.indexOf(\"${variable}\");)o=o.replace(\"${variable}\",r[a++]);return null!=o?o:t}},function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}([V(\"localeService\")],t)}(ke),kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bg=function(e){function t(){return e.call(this,t.TEMPLATE,\"vertical\")||this}return kg(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.createManagedBean(new Ls(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,n=e&&this.gridOptionsService.getScrollbarWidth()||0,r=0===n&&t?16:n;this.addOrRemoveCssClass(\"ag-scrollbar-invisible\",t),mr(this.getGui(),r),mr(this.eViewport,r),mr(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class=\"ag-body-vertical-scroll\" aria-hidden=\"true\">\\n            <div class=\"ag-body-vertical-scroll-viewport\" ref=\"eViewport\">\\n                <div class=\"ag-body-vertical-scroll-container\" ref=\"eContainer\"></div>\\n            </div>\\n        </div>',function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([G],t.prototype,\"postConstruct\",null),t}(vg),Fg=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},jg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fg(arguments[t]));return e},Hg=function(){function e(e,t,n){t?(this.gridOptions=t,(new Ug).create(e,t,function(t){var n=new Xp(e);t.createBean(n)},void 0,n)):console.error(\"AG Grid: no gridOptions provided to the grid\")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),Ug=function(){function e(){}return e.prototype.create=function(e,t,n,r,o){var a=this,i=!!t.debug,l=this.getRegisteredModules(o),s=this.createBeansList(t.rowModelType,l),u=this.createProvidedBeans(e,t,o);if(s){var c={providedBeanInstances:u,beanClasses:s,debug:i},d=new Vp(\"AG Grid\",function(){return t.debug}),p=new Vp(\"Context\",function(){return c.debug}),f=new U(c,p),g=f.getBean(\"beans\");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),n(f),g.ctrlsService.whenReady(function(){a.setColumnsAndData(g),a.dispatchGridReadyEvent(g);var e=te.isRegistered(X.EnterpriseCoreModule);d.log(\"initialised successfully, enterprise = \"+e)}),r&&r(f)}},e.prototype.registerControllers=function(e,t){t.forEach(function(t){t.controllers&&t.controllers.forEach(function(t){return e.ctrlsFactory.register(t)})})},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=te.getRegisteredModules(),r=[],o={};function a(e,t){var n;o[(n=t).moduleName]||(o[n.moduleName]=!0,r.push(n),te.register(n,e)),t.dependantModules&&t.dependantModules.forEach(a.bind(null,e))}return t&&t.forEach(a.bind(null,!0)),n&&n.forEach(a.bind(null,!te.isPackageBased())),r},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,function(e){return e.userComponents?e.userComponents:[]}).forEach(function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)})},e.prototype.createProvidedBeans=function(e,t,n){var r=n?n.frameworkOverrides:null;a(r)&&(r=new Ep);var o={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(o,n.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:\"AgCheckbox\",componentClass:Yo},{componentName:\"AgRadioButton\",componentClass:zo},{componentName:\"AgToggleButton\",componentClass:Sd},{componentName:\"AgInputTextField\",componentClass:ca},{componentName:\"AgInputTextArea\",componentClass:Od},{componentName:\"AgInputNumberField\",componentClass:pa},{componentName:\"AgInputRange\",componentClass:Rd},{componentName:\"AgSelect\",componentClass:Bo},{componentName:\"AgSlider\",componentClass:Pd},{componentName:\"AgGridBody\",componentClass:$s},{componentName:\"AgHeaderRoot\",componentClass:Rc},{componentName:\"AgSortIndicator\",componentClass:ka},{componentName:\"AgPagination\",componentClass:Ff},{componentName:\"AgOverlayWrapper\",componentClass:Uf},{componentName:\"AgGroupComponent\",componentClass:Id},{componentName:\"AgPanel\",componentClass:ep},{componentName:\"AgDialog\",componentClass:rp},{componentName:\"AgRowContainer\",componentClass:mu},{componentName:\"AgFakeHorizontalScroll\",componentClass:Eg},{componentName:\"AgFakeVerticalScroll\",componentClass:Bg}],n=this.extractModuleEntity(e,function(e){return e.agStackComponents?e.agStackComponents:[]});return t.concat(n)},e.prototype.createBeansList=function(e,t){void 0===e&&(e=\"clientSide\");var n=t.filter(function(t){return!t.rowModel||t.rowModel===e}),r={clientSide:X.ClientSideRowModelModule,infinite:X.InfiniteRowModelModule,serverSide:X.ServerSideRowModelModule,viewport:X.ViewportRowModelModule};if(r[e]){if(te.assertRegistered(r[e],\"rowModelType = '\"+e+\"'\")){var o=[es,zf,qf,og,df,gl,Fi,Ef,Cf,Yc,al,Pf,Pc,Ig,nt,cd,cl,Ot,ee,Mg,gp,Lp,Al,Ct,wc,Ed,rd,jp,je,Up,Op,iu,gf,kp,zp,St,Qc,Ic,pi,Mp,sp,nu,Rf,wp,ld,Cd,Zs,nf,of,sf,If,ut,vf,Vc,tg,Rt,ag,lg,vd,cg,pg,Cg,Tg,gg],a=this.extractModuleEntity(n,function(e){return e.beans?e.beans:[]});o.push.apply(o,jg(a));var i=[];return o.forEach(function(e){i.indexOf(e)<0&&i.push(e)}),i}}else console.error(\"AG Grid: could not find row model for rowModelType = \"+e)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],jg(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsService.get(\"columnDefs\");e.columnModel.setColumnDefs(t||[],\"gridInitializing\"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e){var t={type:Ue.EVENT_GRID_READY};e.eventService.dispatchEvent(t)},e}(),Yg=function(){function e(){}return e.prototype.wrap=function(e,t,n,r){var o=this;void 0===n&&(n=[]);var a=this.createWrapper(e,r);return t.forEach(function(e){o.createMethod(a,e,!0)}),n.forEach(function(e){o.createMethod(a,e,!1)}),a},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn(\"AG Grid: Framework component is missing the method \"+t+\"()\"),null)}},e}(),Gg={columnGroup:[\"column\",\"stackedColumn\",\"normalizedColumn\"],barGroup:[\"bar\",\"stackedBar\",\"normalizedBar\"],pieGroup:[\"pie\",\"doughnut\"],lineGroup:[\"line\"],scatterGroup:[\"scatter\",\"bubble\"],areaGroup:[\"area\",\"stackedArea\",\"normalizedArea\"],histogramGroup:[\"histogram\"],combinationGroup:[\"columnLineCombo\",\"areaColumnCombo\",\"customCombo\"]},zg=[\"chartSettings\",\"chartData\",\"chartFormat\"],Vg=[\"chartUnlink\",\"chartLink\",\"chartDownload\"],qg={settings:\"chartSettings\",data:\"chartData\",format:\"chartFormat\"},Wg=0;!function(e){e.InsideBase=\"insideBase\",e.InsideEnd=\"insideEnd\",e.Center=\"center\",e.OutsideEnd=\"outsideEnd\"}(Pg||(Pg={}));var Qg=void 0===n.g?{}:n.g;Qg.HTMLElement=\"undefined\"==typeof HTMLElement?{}:HTMLElement,Qg.HTMLButtonElement=\"undefined\"==typeof HTMLButtonElement?{}:HTMLButtonElement,Qg.HTMLSelectElement=\"undefined\"==typeof HTMLSelectElement?{}:HTMLSelectElement,Qg.HTMLInputElement=\"undefined\"==typeof HTMLInputElement?{}:HTMLInputElement,Qg.Node=\"undefined\"==typeof Node?{}:Node,Qg.MouseEvent=\"undefined\"==typeof MouseEvent?{}:MouseEvent;var Kg,$g=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Xg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($g(arguments[t]));return e},Jg=function(){function e(t,n,r,o,a,i){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=n,this.eventService=r,this.columnModel=o,this.beans=i,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsService.is(\"suppressParentsInRowNodes\"),this.isRowMasterFunc=this.gridOptionsService.get(\"isRowMaster\"),this.doingTreeData=this.gridOptionsService.isTreeData(),this.doingMasterDetail=this.gridOptionsService.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Gr.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if(\"string\"!=typeof t){var r=this.rootNode,o=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map(function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)}):(r.allLeafChildren=[],r.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=r.childrenAfterFilter,o.childrenAfterGroup=r.childrenAfterGroup,o.childrenAfterAggFilter=r.childrenAfterAggFilter,o.childrenAfterSort=r.childrenAfterSort,o.childrenMapped=r.childrenMapped,o.allLeafChildren=r.allLeafChildren)}else console.warn(\"AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first\")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.executeAdd(e,n),this.updateSelection(r,\"rowDataChanged\"),t&&Gr.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e,t){var n=e.length>0;if(n&&e.forEach(function(e){e.setSelected(!1,!1,!0,t)}),this.selectionService.updateGroupsFromChildrenSelections(t),n){var r={type:Ue.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(r)}},e.prototype.executeAdd=function(t,n){var r,o=this,a=t.add,i=t.addIndex;if(!Gr.missingOrEmpty(a)){var l=a.map(function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)});if(\"number\"==typeof i&&i>=0){var s=this.rootNode.allLeafChildren,u=s.length,c=i;if(this.doingTreeData&&i>0&&u>0)for(var d=0;d<u;d++)if((null===(r=s[d])||void 0===r?void 0:r.rowIndex)==i-1){c=d+1;break}var p=s.slice(0,c),f=s.slice(c,s.length);this.rootNode.allLeafChildren=Xg(p,l,f)}else this.rootNode.allLeafChildren=Xg(this.rootNode.allLeafChildren,l);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var r=this,o=e.remove;if(!Gr.missingOrEmpty(o)){var a={};o.forEach(function(e){var o=r.lookupRowNode(e);o&&(o.isSelected()&&n.push(o),o.clearRowTopAndRowIndex(),a[o.id]=!0,delete r.allNodesMap[o.id],t.remove.push(o))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(e){return!a[e.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,r){var o=this,a=t.update;Gr.missingOrEmpty(a)||a.forEach(function(t){var a=o.lookupRowNode(t);a&&(a.updateData(t),!a.selectable&&a.isSelected()&&r.push(a),o.setMasterForRow(a,t,e.TOP_LEVEL,!1),n.update.push(a))})},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsService.getRowIdFunc();if(n){var r=n({data:e,level:0});if(!(t=this.allNodesMap[r]))return console.error(\"AG Grid: could not find row id=\"+r+\", data item was not found for this id\"),null}else if(!(t=this.rootNode.allLeafChildren.find(function(t){return t.data===e})))return console.error(\"AG Grid: could not find data item as object was not found\",e),console.error(\"Consider using getRowId to help the Grid find matching row data\"),null;return t||null},e.prototype.createNode=function(e,t,n){var r=new ri(this.beans);return r.group=!1,this.setMasterForRow(r,e,n,!0),t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=n,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn(\"AG Grid: duplicate node id '\"+r.id+\"' detected from getRowId callback, this could cause issues in your grid.\"),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.setMasterForRow=function(e,t,n,r){if(this.doingTreeData)e.setMaster(!1),r&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),r){var o=this.columnModel.getRowGroupColumns(),a=n+(o?o.length:0);e.expanded=!!e.master&&this.isExpanded(a)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsService.getNum(\"groupDefaultExpanded\");return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID=\"ROOT_NODE_ID\",e}(),Zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},th=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},nh=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(th(arguments[t]));return e};!function(e){e[e.Normal=0]=\"Normal\",e[e.AfterFilter=1]=\"AfterFilter\",e[e.AfterFilterAndSort=2]=\"AfterFilterAndSort\",e[e.PivotNodes=3]=\"PivotNodes\"}(Kg||(Kg={}));var rh,oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=Gr.debounce(t.onRowHeightChanged.bind(t),100),t.rowsToDisplay=[],t}return Zg(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ll.EVERYTHING}),t=!this.gridOptionsService.is(\"suppressAnimationFrame\"),n=this.refreshModel.bind(this,{step:ll.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ll.PIVOT})),this.addManagedListener(this.eventService,Ue.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,Ue.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this));var r=this.refreshModel.bind(this,{step:ll.MAP,keepRenderedRows:!0,animate:t});this.addManagedPropertyListener(\"groupRemoveSingleChildren\",r),this.addManagedPropertyListener(\"groupRemoveLowestSingleChildren\",r),this.rootNode=new ri(this.beans),this.nodeManager=new Jg(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsService.get(\"rowData\");e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o,a=!1;do{o=!1;for(var i=this.getRowIndexAtPixel(e),l=this.getRowIndexAtPixel(t),s=Math.max(i,n),u=Math.min(l,r),c=s;c<=u;c++){var d=this.getRow(c);if(d.rowHeightEstimated){var p=this.gridOptionsService.getRowHeightForNode(d);d.setRowHeight(p.height),o=!0,a=!0}}o&&this.setRowTopAndRowIndex()}while(o);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),t=0,n=new Set,r=this.gridOptionsService.isDomLayout(\"normal\"),o=0;o<this.rowsToDisplay.length;o++){var a=this.rowsToDisplay[o];if(null!=a.id&&n.add(a.id),null==a.rowHeight){var i=this.gridOptionsService.getRowHeightForNode(a,r,e);a.setRowHeight(i.height,i.estimated)}a.setRowTop(t),a.setRowIndex(o),t+=a.rowHeight}return n},t.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),r=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},o=function(e){if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(o)}};o(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,t,n){var r=this;void 0===n&&(n=0);var o=this.getRowIndexAtPixel(t),a=this.getRow(o),i=!this.gridOptionsService.is(\"suppressAnimationFrame\");return a!==e[0]&&(e.forEach(function(e){Gr.removeFromArray(r.rootNode.allLeafChildren,e)}),e.forEach(function(e,t){Gr.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(o+n,0)+t)}),this.refreshModel({step:ll.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,r=null!=n?this.getRow(n):null;if(r&&e&&r!==e&&null!=t){var o=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(o),this.lastHighlightedRow=r}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return il.Below}return e-t.rowTop<t.rowHeight/2?il.Above:il.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.is(\"groupHideOpenParents\"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},t.prototype.getRowBounds=function(e){if(Gr.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ll.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),n=0===e.columns.length||e.columns.some(function(e){return e.isPrimary()})?ll.FILTER:ll.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ll.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return\"clientSide\"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:ll.PIVOT}):this.refreshModel({step:ll.AGGREGATE})},t.prototype.createChangePath=function(e){var t=Gr.missingOrEmpty(e),n=new pd(!1,this.rootNode);return(t||this.gridOptionsService.isTreeData())&&n.setInactive(),n},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is(\"suppressModelUpdateAfterUpdateTransaction\"))return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter(function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0});return null==t||0==t.length},t.prototype.buildRefreshModelParams=function(e){var t=ll.EVERYTHING,n={everything:ll.EVERYTHING,group:ll.EVERYTHING,filter:ll.FILTER,map:ll.MAP,aggregate:ll.AGGREGATE,sort:ll.SORT,pivot:ll.PIVOT};if(Gr.exists(e)&&(t=n[e]),!Gr.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is(\"suppressAnimationFrame\")};console.error(\"AG Grid: invalid step \"+e+\", available steps are \"+Object.keys(n).join(\", \"))},t.prototype.refreshModel=function(e){var t=\"object\"==typeof e&&\"step\"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var n=this.createChangePath(t.rowNodeTransactions);switch(t.step){case ll.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case ll.FILTER:this.doFilter(n);case ll.PIVOT:this.doPivot(n);case ll.AGGREGATE:this.doAggregate(n);case ll.FILTER_AGGREGATES:this.doFilterAggregates(n);case ll.SORT:this.doSort(t.rowNodeTransactions,n);case ll.MAP:this.doRowsToDisplay()}var r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,r);var o={type:Ue.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(o)}},t.prototype.isEmpty=function(){var e=Gr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Gr.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return Gr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var n,r=!t,o=!1,a=[],i=this.gridOptionsService.is(\"groupSelectsChildren\");return this.forEachNodeAfterFilterAndSort(function(l){var s=r&&!o;if(r||l!==t&&l!==e||(r=!0),!l.group||!i){var u=r&&!o,c=l.isParentOfNode(n);(u||c)&&a.push(l)}s&&(l!==t&&l!==e||(o=!0,n=l===t?t:e))}),a},t.prototype.setDatasource=function(e){console.error(\"AG Grid: should never call setDatasource on clientSideRowController\")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Gr.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var r=-1,o=-1;;){var a=Math.floor((t+n)/2),i=this.rowsToDisplay[a];if(this.isRowInPixel(i,e))return a;if(i.rowTop<e?t=a+1:i.rowTop>e&&(n=a-1),r===t&&o===n)return a;r=t,o=n}},t.prototype.isRowInPixel=function(e,t){var n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,n){return e(t,n)})},t.prototype.forEachNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:nh(this.rootNode.childrenAfterGroup||[]),callback:e,recursionType:Kg.Normal,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilter=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:nh(this.rootNode.childrenAfterAggFilter||[]),callback:e,recursionType:Kg.AfterFilter,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilterAndSort=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:nh(this.rootNode.childrenAfterSort||[]),callback:e,recursionType:Kg.AfterFilterAndSort,index:0,includeFooterNodes:t})},t.prototype.forEachPivotNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:Kg.PivotNodes,index:0,includeFooterNodes:t})},t.prototype.recursivelyWalkNodesAndCallback=function(e){var t,n=e.nodes,r=e.callback,o=e.recursionType,a=e.includeFooterNodes,i=e.index,l=n[0];a&&(null===(t=null==l?void 0:l.parent)||void 0===t?void 0:t.sibling)&&n.push(l.parent.sibling);for(var s=0;s<n.length;s++){var u=n[s];if(r(u,i++),u.hasChildren()&&!u.footer){var c=null;switch(o){case Kg.Normal:c=u.childrenAfterGroup;break;case Kg.AfterFilter:c=u.childrenAfterAggFilter;break;case Kg.AfterFilterAndSort:c=u.childrenAfterSort;break;case Kg.PivotNodes:c=u.leafGroup?null:u.childrenAfterSort}c&&(i=this.recursivelyWalkNodesAndCallback({nodes:nh(c),callback:r,recursionType:o,index:i,includeFooterNodes:a}))}}return i},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsService.isTreeData(),n=this.columnModel.isPivotActive(),r=function(o){o&&o.forEach(function(o){var a=function(){o.expanded=e,r(o.childrenAfterGroup)};t?Gr.exists(o.childrenAfterGroup)&&a():n?!o.leafGroup&&a():o.group&&a()})};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:ll.MAP});var o=e?\"expandAll\":\"collapseAll\",a={type:Ue.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(a)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,n,r,o){if(this.groupStage){if(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:o}),this.restoreGroupState(e)),this.gridOptionsService.is(\"groupSelectsChildren\")&&this.selectionService.updateGroupsFromChildrenSelections(\"rowGroupChanged\",r)){var a={type:Ue.EVENT_SELECTION_CHANGED,source:\"rowGroupChanged\"};this.eventService.dispatchEvent(a)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren()},t.prototype.restoreGroupState=function(e){e&&Gr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,n){\"boolean\"==typeof e[n]&&(t.expanded=e[n])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is(\"rememberGroupStateWhenNewData\"))return null;var e={};return Gr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,n){return e[n]=t.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){if(\"string\"==typeof e&&0==e.indexOf(ri.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode(function(n){n.id===e&&(t=n)}),t}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded(\"rowDataUpdated\");var n={type:Ue.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(n),this.refreshModel({step:ll.EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var r=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){n.executeBatchUpdateRowData()},r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(o){var a=e.nodeManager.updateRowData(o.rowDataTransaction,void 0);n.push(a),o.callback&&t.push(o.callback.bind(null,a)),\"number\"==typeof o.rowDataTransaction.addIndex&&(r=!0)}),this.commonUpdateRowData(n,void 0,r),t.length>0&&window.setTimeout(function(){t.forEach(function(e){return e()})},0),n.length>0){var o={type:Ue.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(o)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),r=\"number\"==typeof e.addIndex;return this.commonUpdateRowData([n],t,r),n},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is(\"suppressMaintainUnsortedOrder\")){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++)e[this.rootNode.allLeafChildren[t].id]=t;return e}},t.prototype.commonUpdateRowData=function(e,t,n){var r=!this.gridOptionsService.is(\"suppressAnimationFrame\");n&&(t=this.createRowNodeOrder()),this.refreshModel({step:ll.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),this.filterManager.onNewRowsLoaded(\"rowDataUpdated\");var o={type:Ue.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:ll.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),e&&this.onRowHeightChanged()},t.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0}),e},t.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},eh([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),eh([q(\"selectionService\")],t.prototype,\"selectionService\",void 0),eh([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),eh([q(\"valueCache\")],t.prototype,\"valueCache\",void 0),eh([q(\"beans\")],t.prototype,\"beans\",void 0),eh([q(\"filterStage\")],t.prototype,\"filterStage\",void 0),eh([q(\"sortStage\")],t.prototype,\"sortStage\",void 0),eh([q(\"flattenStage\")],t.prototype,\"flattenStage\",void 0),eh([W(\"groupStage\")],t.prototype,\"groupStage\",void 0),eh([W(\"aggregationStage\")],t.prototype,\"aggregationStage\",void 0),eh([W(\"pivotStage\")],t.prototype,\"pivotStage\",void 0),eh([W(\"filterAggregatesStage\")],t.prototype,\"filterAggregatesStage\",void 0),eh([G],t.prototype,\"init\",null),eh([V(\"rowModel\")],t)}(ke),ah=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ih=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},lh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ah(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},ih([q(\"filterService\")],t.prototype,\"filterService\",void 0),ih([V(\"filterStage\")],t)}(ke),sh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},ch=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sh(t,e),t.prototype.execute=function(e){var t=this,n=this.sortController.getSortOptions(),r=Gr.exists(n)&&n.length>0,o=r&&Gr.exists(e.rowNodeTransactions)&&this.gridOptionsService.is(\"deltaSort\"),a=n.some(function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())});this.sortService.sort(n,r,o,e.rowNodeTransactions,e.changedPath,a)},uh([q(\"sortService\")],t.prototype,\"sortService\",void 0),uh([q(\"sortController\")],t.prototype,\"sortController\",void 0),uh([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),uh([V(\"sortStage\")],t)}(ke),dh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ph=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dh(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],r={value:0},o=this.columnModel.isPivotMode(),a=o&&t.leafGroup,i=a?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(i,n,r,o,0),!a&&n.length>0&&this.gridOptionsService.is(\"groupIncludeTotalFooter\")&&(t.createFooter(),this.addRowNodeToRowsToDisplay(t.sibling,n,r,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,r,o){if(!Gr.missingOrEmpty(e))for(var a=this.gridOptionsService.is(\"groupHideOpenParents\"),i=this.gridOptionsService.is(\"groupRemoveSingleChildren\"),l=!i&&this.gridOptionsService.is(\"groupRemoveLowestSingleChildren\"),s=0;s<e.length;s++){var u=e[s],c=u.hasChildren(),d=r&&!c,p=i&&c&&1===u.childrenAfterGroup.length,f=l&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,g=r&&u.leafGroup,h=a&&u.expanded&&!u.master&&!g;if(!(d||h||p||f)&&this.addRowNodeToRowsToDisplay(u,t,n,o),!r||!u.leafGroup)if(c){var m=p||f;if(u.expanded||m){var v=m?o:o+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,r,v),this.gridOptionsService.is(\"groupIncludeFooter\")&&this.addRowNodeToRowsToDisplay(u.sibling,t,n,o)}}else if(u.master&&u.expanded){var A=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(A,t,n,o)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,r){var o=this.gridOptionsService.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(o?0:r)},t.prototype.createDetailNode=function(e){if(Gr.exists(e.detailNode))return e.detailNode;var t=new ri(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Gr.exists(e.id)&&(t.id=\"detail_\"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},ph([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),ph([q(\"beans\")],t.prototype,\"beans\",void 0),ph([V(\"flattenStage\")],t)}(ke),gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gh(t,e),t.prototype.init=function(){this.postSortFunc=this.getPostSortFunc()},t.prototype.sort=function(e,t,n,r,o,a){var i=this,l=this.gridOptionsService.is(\"groupMaintainOrder\"),s=this.columnModel.getAllGridColumns().some(function(e){return e.isRowGroupActive()}),u={};n&&r&&(u=this.calculateDirtyNodes(r));var c=this.columnModel.isPivotMode();o&&o.forEachChangedNodeDepthFirst(function(r){i.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);var d=c&&r.leafGroup;if(l&&s&&!r.leafGroup&&!a){var p=r.childrenAfterAggFilter.slice(0);if(r.childrenAfterSort){var f={};r.childrenAfterSort.forEach(function(e,t){f[e.id]=t}),p.sort(function(e,t){var n,r;return(null!==(n=f[e.id])&&void 0!==n?n:0)-(null!==(r=f[t.id])&&void 0!==r?r:0)})}r.childrenAfterSort=p}else r.childrenAfterSort=!t||d?r.childrenAfterAggFilter.slice(0):n?i.doDeltaSort(r,u,o,e):i.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),i.updateChildIndexes(r),i.postSortFunc){var g={nodes:r.childrenAfterSort};i.postSortFunc(g)}}),this.updateGroupDataForHideOpenParents(o)},t.prototype.getPostSortFunc=function(){var e=this.gridOptionsService.getCallback(\"postSortRows\");if(e)return e;var t=this.gridOptionsService.get(\"postSort\");return t?function(e){return t(e.nodes)}:void 0},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach(function(e){return t[e.id]=!0})};return e&&e.forEach(function(e){n(e.add),n(e.update),n(e.remove)}),t},t.prototype.doDeltaSort=function(e,t,n,r){var o=this,a=e.childrenAfterAggFilter,i=e.childrenAfterSort;if(!i)return this.rowNodeSorter.doFullSort(a,r);var l={},s=[];a.forEach(function(e){t[e.id]||!n.canSkip(e)?s.push(e):l[e.id]=!0});var u=i.filter(function(e){return l[e.id]}),c=function(e,t){return{currentPos:t,rowNode:e}},d=s.map(c).sort(function(e,t){return o.rowNodeSorter.compareRowNodes(r,e,t)});return this.mergeSortedArrays(r,d,u.map(c)).map(function(e){return e.rowNode})},t.prototype.mergeSortedArrays=function(e,t,n){for(var r=[],o=0,a=0;o<t.length&&a<n.length;)this.rowNodeSorter.compareRowNodes(e,t[o],n[a])<0?r.push(t[o++]):r.push(n[a++]);for(;o<t.length;)r.push(t[o++]);for(;a<n.length;)r.push(n[a++]);return r},t.prototype.updateChildIndexes=function(e){if(!Gr.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var r=t[n],o=0===n,a=n===e.childrenAfterSort.length-1;r.setFirstChild(o),r.setLastChild(a),r.setChildIndex(n)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsService.is(\"groupHideOpenParents\")){if(this.gridOptionsService.isTreeData())return Gr.doOnce(function(){return console.warn(\"AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).\")},\"sortService.hideOpenParentsWithTreeData\"),!1;var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach(function(e){e.hasChildren()&&n(e)})};e&&e.executeFromRootNode(function(e){return n(e)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsService.is(\"groupHideOpenParents\")&&!Gr.missing(e)&&e.forEach(function(e){n.columnModel.getGroupDisplayColumns().forEach(function(r){var o=r.getColDef().showRowGroup;if(\"string\"==typeof o){var a=o,i=n.columnModel.getPrimaryColumn(a);if(i!==e.rowGroupColumn)if(t)e.setGroupValue(r.getId(),void 0);else{var l=e.getFirstChildOfFirstChild(i);l&&e.setGroupValue(r.getId(),l.key)}}else console.error(\"AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup\")})})},hh([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),hh([q(\"rowNodeSorter\")],t.prototype,\"rowNodeSorter\",void 0),hh([G],t.prototype,\"init\",null),hh([V(\"sortService\")],t)}(ke),vh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ah=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},yh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,r=function(t,r){t.hasChildren()?t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter(function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||r}):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var o=function(e,t){if(e.childrenAfterGroup)for(var a=0;a<e.childrenAfterGroup.length;a++){var i=e.childrenAfterGroup[a],l=t||n.filterManager.doesRowPassFilter({rowNode:i});i.childrenAfterGroup?o(e.childrenAfterGroup[a],l):r(i,l)}r(e,t)};t.executeFromRootNode(function(e){return o(e,!1)})}else t.forEachChangedNodeDepthFirst(function(e){return r(e,!1)},!0)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.isTreeData()&&!this.gridOptionsService.is(\"excludeChildrenWhenTreeDataFiltering\")},Ah([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),Ah([V(\"filterService\")],t)}(ke),Eh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Eh(t,e),t.prototype.postConstruct=function(){\"clientSide\"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists(\"getRowId\"),t=this.gridOptionsService.is(\"immutableData\");return!this.gridOptionsService.is(\"resetRowDataOnUpdate\")&&(e||t)},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(t,2),r=n[0],o=n[1];this.clientSideRowModel.updateRowData(r,o)}},t.prototype.createTransactionForRowData=function(e){if(Gr.missing(this.clientSideRowModel))console.error(\"AG Grid: ImmutableService only works with ClientSideRowModel\");else{var t=this.gridOptionsService.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gridOptionsService.is(\"suppressMaintainUnsortedOrder\")?void 0:{};return Gr.exists(e)&&e.forEach(function(e,a){var i=t({data:e,level:0}),l=r[i];o&&(o[i]=a),l?(l.data!==e&&n.update.push(e),r[i]=void 0):n.add.push(e)}),Gr.iterateObject(r,function(e,t){t&&n.remove.push(t.data)}),[n,o]}console.error(\"AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!\")}},bh([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),bh([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),bh([G],t.prototype,\"postConstruct\",null),bh([V(\"immutableService\")],t)}(ke),Ch={version:\"29.3.5\",moduleName:X.ClientSideRowModelModule,rowModel:\"clientSide\",beans:[oh,lh,ch,fh,mh,yh,_h]},wh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Th=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parentCache=n,o.params=r,o.startRow=t*r.blockSize,o.endRow=o.startRow+r.blockSize,o}return wh(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:\"\"+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,n){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Gr.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Gr.missing(this.params.datasource.getRows)?console.warn(\"AG Grid: datasource is missing getRows method\"):window.setTimeout(function(){e.params.datasource.getRows(t)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},t.prototype.forEachNode=function(e,t,n){var r=this;this.rowNodes.forEach(function(o,a){r.startRow+a<n&&e(o,t.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new ri(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach(function(n,r){var o=e.rowData?e.rowData[r]:void 0;t.setDataAndId(n,o,t.startRow+r)});var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Sh([q(\"beans\")],t.prototype,\"beans\",void 0),Sh([G],t.prototype,\"postConstruct\",null),Sh([z],t.prototype,\"destroyRowNodes\",null),t}(gd),Oh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Rh=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return Oh(t,e),t.prototype.setBeans=function(e){this.logger=e.create(\"InfiniteCache\")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Th(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach(function(e){return e.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.destroyBlock(t)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log(\"onPageLoaded: page = \"+e.getId()+\", lastRow = \"+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,r=this.getBlocksInOrder().filter(function(t){return t!=e});r.sort(function(e,t){return t.getLastAccessed()-e.getLastAccessed()});var o=this.params.maxBlocksInCache>0,a=o?this.params.maxBlocksInCache-1:null,i=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(e,t){if(e.getState()===Th.STATE_WAITING_TO_LOAD&&t>=i||o&&t>=a){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}})},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),r=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<r},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if(\"number\"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Gr.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new zr;this.getBlocksInOrder().forEach(function(r){return r.forEachNode(e,n,t.rowCount)})},t.prototype.getBlocksInOrder=function(){return Gr.getAllValuesInObject(this.blocks).sort(function(e,t){return e.getId()-t.getId()})},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:Ue.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach(function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)}),t.length>0&&t.forEach(function(t){return e.destroyBlock(t)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.removeBlockFromCache(t)}),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,r=[],o=-1,a=!1,i=new zr;Gr.missing(e)&&(a=!0);var l=!1;return this.getBlocksInOrder().forEach(function(s){l||(a&&o+1!==s.getId()?l=!0:(o=s.getId(),s.forEachNode(function(n){var o=n===e||n===t;(a||o)&&r.push(n),o&&(a=!a)},i,n.rowCount)))}),l||a?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Dh([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),Dh([q(\"focusService\")],t.prototype,\"focusService\",void 0),Dh([(n=0,r=K(\"loggerFactory\"),function(e,t){r(e,t,n)})],t.prototype,\"setBeans\",null),Dh([z],t.prototype,\"destroyAllBlocks\",null),t;var n,r}(ke),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Ph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType(\"infinite\")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){(this.gridOptionsService.exists(\"initialGroupOrderComparator\")||this.gridOptionsService.exists(\"defaultGroupOrderComparator\"))&&Gr.doOnce(function(){return console.warn(\"AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.\")},\"IRM.InitialGroupOrderComparator\")},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get(\"datasource\"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ue.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Ue.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Gr.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return\"infinite\"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ue.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum(\"infiniteInitialRowCount\"),1),maxBlocksInCache:this.gridOptionsService.getNum(\"maxBlocksInCache\"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum(\"cacheOverflowSize\"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum(\"cacheBlockSize\"),100),lastAccessedSequence:new zr},this.infiniteCache=this.createBean(new Rh(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t;return this.forEachNode(function(n){n.id===e&&(t=n)}),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Lh([q(\"filterManager\")],t.prototype,\"filterManager\",void 0),Lh([q(\"sortController\")],t.prototype,\"sortController\",void 0),Lh([q(\"selectionService\")],t.prototype,\"selectionService\",void 0),Lh([q(\"rowRenderer\")],t.prototype,\"rowRenderer\",void 0),Lh([q(\"rowNodeBlockLoader\")],t.prototype,\"rowNodeBlockLoader\",void 0),Lh([G],t.prototype,\"init\",null),Lh([z],t.prototype,\"destroyDatasource\",null),Lh([V(\"rowModel\")],t)}(ke),Mh={version:\"29.3.5\",moduleName:X.InfiniteRowModelModule,rowModel:\"infinite\",beans:[Ph]},xh=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(\".\")?e+\".\"+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),Ih=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,r=e.gridOptionsService,o=e.processCellCallback,a=e.processHeaderCallback,i=e.processGroupHeaderCallback,l=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsService=r,this.processCellCallback=o,this.processHeaderCallback=a,this.processGroupHeaderCallback=i,this.processRowGroupCallback=l}return e.prototype.prepare=function(e){this.groupColumns=e.filter(function(e){return!!e.getColDef().showRowGroup})},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:\"\"},e.prototype.extractRowCellValue=function(e,t,n,r,o){var a=this.gridOptionsService.is(\"groupHideOpenParents\")&&!o.footer||!this.shouldRenderGroupSummaryCell(o,e,t)?this.valueService.getValue(e,o):this.createValueForGroupNode(o),i=this.processCell({accumulatedRowIndex:n,rowNode:o,column:e,value:a,processCellCallback:this.processCellCallback,type:r});return null!=i?i:\"\"},e.prototype.shouldRenderGroupSummaryCell=function(e,t,n){var r;if(!e||!e.group)return!1;if(-1!==this.groupColumns.indexOf(t)){if(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()])return!0;if(e.footer&&-1===e.level){var o=t.getColDef();return null==o||!0===o.showRowGroup||o.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var a=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===n&&a},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(t,\"csv\",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var t=e.footer,n=[e.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,n.push(e.key);var r=n.reverse().join(\" -> \");return t?\"Total \"+r:r},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,n=e.rowNode,r=e.column,o=e.value,a=e.processCellCallback,i=e.type;return a?a({accumulatedRowIndex:t,column:r,node:n,value:o,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:i}):null!=o?o:\"\"},e}(),kh=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var r=document.createElement(\"a\"),o=n.URL.createObjectURL(t);r.setAttribute(\"href\",o),r.setAttribute(\"download\",e),r.style.display=\"none\",document.body.appendChild(r),r.dispatchEvent(new MouseEvent(\"click\",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout(function(){n.URL.revokeObjectURL(o)},0)}else console.warn(\"AG Grid: There is no `window` associated with the current `document`\")},e}(),Bh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fh=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result=\"\";var r=t.suppressQuotes,o=t.columnSeparator;return n.suppressQuotes=r,n.columnSeparator=o,n}return Bh(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&(\"string\"==typeof e?(/^\\s*\\n/.test(e)||this.beginNewLine(),e=e.replace(/\\r?\\n/g,\"\\r\\n\"),this.result+=e):e.forEach(function(e){t.beginNewLine(),e.forEach(function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||\"\"),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n,r){0!=n&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes(\"\")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,\"csv\",n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'\"\"':(\"string\"==typeof e?t=e:\"function\"==typeof e.toString?t=e.toString():(console.warn(\"AG Grid: unknown value type during csv conversion\"),t=\"\"),'\"'+t.replace(/\"/g,'\"\"')+'\"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=\"\\r\\n\"),this.isFirstLine=!1},t}(Ih),jh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},Uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jh(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get(\"defaultCsvExportParams\");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn(\"AG Grid: Export cancelled. Export is not allowed as per your configuration.\"),\"\";var t=this.getMergedParams(e),n=this.getData(t),r=new Blob([\"\\ufeff\",n],{type:\"text/plain\"});return kh.download(this.getFileName(t.fileName),r),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)},t.prototype.getDefaultFileName=function(){return\"export.csv\"},t.prototype.getDefaultFileExtension=function(){return\"csv\"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,r=t.valueService,o=t.gridOptionsService,a=e,i=a.processCellCallback,l=a.processHeaderCallback,s=a.processGroupHeaderCallback,u=a.processRowGroupCallback,c=a.suppressQuotes,d=a.columnSeparator;return new Fh({columnModel:n,valueService:r,gridOptionsService:o,processCellCallback:i||void 0,processHeaderCallback:l||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:d||\",\"})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is(\"suppressCsvExport\")},Hh([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Hh([q(\"valueService\")],t.prototype,\"valueService\",void 0),Hh([q(\"gridSerializer\")],t.prototype,\"gridSerializer\",void 0),Hh([q(\"gridOptionsService\")],t.prototype,\"gridOptionsService\",void 0),Hh([G],t.prototype,\"postConstruct\",null),Hh([V(\"csvCreator\")],t)}(xh),Yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gh=function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};!function(e){e[e.HEADER_GROUPING=0]=\"HEADER_GROUPING\",e[e.HEADER=1]=\"HEADER\",e[e.BODY=2]=\"BODY\"}(rh||(rh={}));var zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Gr.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,r){var o=t.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsService.context,i=this.gridOptionsService.api,l=this.gridOptionsService.columnApi,s=this.gridOptionsService.is(\"groupRemoveSingleChildren\"),u=this.gridOptionsService.is(\"groupRemoveLowestSingleChildren\"),c=null!=t.rowPositions||!!t.onlySelected,d=this.gridOptionsService.is(\"groupHideOpenParents\")&&!c,p=this.columnModel.isPivotMode()?r.leafGroup:!r.group,f=!!r.footer,g=t.skipGroups||t.skipRowGroups,h=u&&r.leafGroup,m=1===r.allChildrenCount&&(s||h);if(g&&t.skipGroups&&Gr.doOnce(function(){return console.warn(\"AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.\")},\"gridSerializer-skipGroups\"),!(!p&&!f&&(t.skipRowGroups||m||d)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&\"top\"===r.rowPinned||t.skipPinnedBottom&&\"bottom\"===r.rowPinned)&&(-1!==r.level||p||f)&&!o({node:r,api:i,columnApi:l,context:a})){var v=e.onNewBodyRow();if(n.forEach(function(e,t){v.onColumn(e,t,r)}),t.getCustomContentBelowRow){var A=t.getCustomContentBelowRow({node:r,api:i,columnApi:l,context:a});A&&e.addCustomContent(A)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Gr.doOnce(function(){return console.warn(\"AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.\")},\"gridSerializer-customFooter\"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&Gr.doOnce(function(){return console.warn(\"AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.\")},\"gridSerializer-customHeader\"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(r){if(e.skipColumnGroupHeaders)e.columnGroups&&Gr.doOnce(function(){return console.warn(\"AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.\")},\"gridSerializer-columnGroups\");else{var o=new at,a=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),o,null);n.recursivelyAddHeaderGroups(a,r,e.processGroupHeaderCallback)}return r}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Gr.doOnce(function(){return console.warn(\"AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.\")},\"gridSerializer-skipHeader\");else{var r=n.onNewHeaderRow();t.forEach(function(e,t){r.onColumn(e,t,void 0)})}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return\"top\"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return n.pinnedRowModel.getPinnedTopRow(e.rowIndex)}).forEach(o):n.pinnedRowModel.forEachPinnedTopRow(o),r}},t.prototype.processRows=function(e,t){var n=this;return function(r){var o=n.rowModel,a=o.getType(),i=\"clientSide\"===a,l=\"serverSide\"===a,s=!i&&e.onlySelected,u=n.processRow.bind(n,r,e,t),c=e.exportedRows,d=void 0===c?\"filteredAndSorted\":c;if(e.rowPositions)e.rowPositions.filter(function(e){return null==e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return o.getRow(e.rowIndex)}).forEach(u);else if(n.columnModel.isPivotMode())i?o.forEachPivotNode(u,!0):o.forEachNode(u);else if(e.onlySelectedAllPages||s){var p=n.selectionService.getSelectedNodes();n.replicateSortedOrder(p),p.forEach(u)}else\"all\"===d?o.forEachNode(u):i?o.forEachNodeAfterFilterAndSort(u,!0):l?o.forEachNodeAfterFilterAndSort(u):o.forEachNode(u);return r}},t.prototype.replicateSortedOrder=function(e){var t=this,n=this.sortController.getSortOptions(),r=function(e,o){var a,i,l,s;return null!=e.rowIndex&&null!=o.rowIndex?e.rowIndex-o.rowIndex:e.level===o.level?(null===(a=e.parent)||void 0===a?void 0:a.id)===(null===(i=o.parent)||void 0===i?void 0:i.id)?t.rowNodeSorter.compareRowNodes(n,{rowNode:e,currentPos:null!==(l=e.rowIndex)&&void 0!==l?l:-1},{rowNode:o,currentPos:null!==(s=o.rowIndex)&&void 0!==s?s:-1}):r(e.parent,o.parent):e.level>o.level?r(e.parent,o):r(e,o.parent)};e.sort(r)},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return\"bottom\"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return n.pinnedRowModel.getPinnedBottomRow(e.rowIndex)}).forEach(o):n.pinnedRowModel.forEachPinnedBottomRow(o),r}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns([st]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var r=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return r.push(e)})}),e.length>0&&e[0]instanceof ot&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var r=this,o=e.onNewHeaderGroupingRow(),a=0;t.forEach(function(e){var t,i=e;t=n?n({columnGroup:i,api:r.gridOptionsService.api,columnApi:r.gridOptionsService.columnApi,context:r.gridOptionsService.context}):r.columnModel.getDisplayNameForColumnGroup(i,\"header\");var l=i.getLeafColumns().reduce(function(e,t,n,r){var o=Gr.last(e);return\"open\"===t.getColumnGroupShow()?o&&null==o[1]||(o=[n],e.push(o)):o&&null==o[1]&&(o[1]=n-1),n===r.length-1&&o&&null==o[1]&&(o[1]=n),e},[]);o.onColumn(i,t||\"\",a++,i.getLeafColumns().length-1,l)})},Gh([q(\"displayedGroupCreator\")],t.prototype,\"displayedGroupCreator\",void 0),Gh([q(\"columnModel\")],t.prototype,\"columnModel\",void 0),Gh([q(\"rowModel\")],t.prototype,\"rowModel\",void 0),Gh([q(\"pinnedRowModel\")],t.prototype,\"pinnedRowModel\",void 0),Gh([q(\"selectionService\")],t.prototype,\"selectionService\",void 0),Gh([q(\"rowNodeSorter\")],t.prototype,\"rowNodeSorter\",void 0),Gh([q(\"sortController\")],t.prototype,\"sortController\",void 0),Gh([V(\"gridSerializer\")],t)}(ke),Vh={version:\"29.3.5\",moduleName:X.CsvExportModule,beans:[Uh,zh]},qh=\"\\r\\n\",Wh=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=[\"version\"];return e.version||(e.version=\"1.0\"),e.encoding&&t.push(\"encoding\"),e.standalone&&t.push(\"standalone\"),\"<?xml \"+t.map(function(t){return t+'=\"'+e[t]+'\"'}).join(\" \")+\" ?>\"},e.createXml=function(e,t){var n=this,r=\"\";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(o){r+=n.returnAttributeIfPopulated(e.prefix+o,e.map[o],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(o){r+=n.returnAttributeIfPopulated(o,e.properties.rawMap[o],t)}));var o=\"<\"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?o+\">\"+e.textNode+\"</\"+e.name+\">\"+qh:(o+=\">\\r\\n\",e.children&&e.children.forEach(function(e){o+=n.createXml(e,t)}),o+\"</\"+e.name+\">\"+qh):o+\"/>\"+qh},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&\"\"!==t&&0!==t)return\"\";var r=t;return\"boolean\"==typeof t&&n&&(r=n(t)),\" \"+e+'=\"'+r+'\"'},e}(),Qh=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),Kh=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e=\"application/zip\");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e=\"\");var r=this.folders.concat(this.files),o=r.length,a=\"\",i=0,l=0;try{for(var s=function(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(r),u=s.next();!u.done;u=s.next()){var c=u.value,d=this.getHeader(c,i),p=d.fileHeader,f=d.folderHeader,g=d.content;i+=p.length+g.length,l+=f.length,e+=p+g,a+=f}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return e+a+this.buildFolderEnd(o,l,i)},e.getHeader=function(e,t){var n=e.content,r=e.path,o=e.created,a=e.isBase64,i=Gr.utf8_encode,l=Gr.decToHex,s=i(r),u=s!==r,c=this.convertTime(o),d=this.convertDate(o),p=\"\";if(u){var f=l(1,1)+l(this.getFromCrc32Table(s),4)+s;p=\"up\"+l(f.length,2)+f}var g=n?this.getConvertedContent(n,a):{size:0,content:\"\"},h=g.size,m=g.content,v=\"\\n\\0\"+(u?\"\\0\\b\":\"\\0\\0\")+\"\\0\\0\"+l(c,2)+l(d,2)+l(h?this.getFromCrc32Table(m):0,4)+l(h,4)+l(h,4)+l(s.length,2)+l(p.length,2);return{fileHeader:\"PK\u0003\u0004\"+v+s+p,folderHeader:\"PK\u0001\u0002\u0014\\0\"+v+\"\\0\\0\\0\\0\\0\\0\"+(n?\"\\0\\0\\0\\0\":\"\u0010\\0\\0\\0\")+l(t,4)+s+p,content:m||\"\"}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(\";base64,\")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var r=Gr.decToHex;return\"PK\u0005\u0006\\0\\0\\0\\0\"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+\"\\0\\0\"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);var o=-1,a=0;for(r=0;r<t;r++)a=n[r],o=o>>>8^Qh[255&(o^a)];return-1^o},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},e.folders=[],e.files=[],e}(),$h=[Ch,Mh,Vh];te.registerModules($h)},64438:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e){return\"ownerState\"!==e&&\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e}},64439:(e,t,n)=>{\"use strict\";e.exports=n.p+\"8f689995e84209f17d2c.woff2\"},64467:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},64499:(e,t,n)=>{\"use strict\";n.d(t,{$c:()=>s,hh:()=>u,kQ:()=>l}),n(28706);var r=n(96790),o=n(8085),a=n(13075),i=function(e){return(0,a.AT)(\"get\",e,!1)},l=function(e){return i(e)},s=function(e){return i(e)},u=function(e,t,n,i,l){var s,u,c=i.triggerToastMsg,d=i.downloadTemplate,p=\"\",f={\"Content-Type\":r.LG.json,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"country-code\":null==e||null===(s=e.selectedCountry)||void 0===s?void 0:s.countryCode,\"user-id\":null==e||null===(u=e.UserDetails)||void 0===u?void 0:u.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id};return\"eventActuals\"===l?(f[\"role-type-name\"]=e.UserDetails.role_type_details.role_type_name,p=\"\".concat(t).concat(o.p.DOWNLOAD_EVENTS_ACTUALS)):\"eventTargets\"===l?p=\"\".concat(t).concat(o.p.DOWNLOAD_EVENTS_TARGET):\"liquidationTargets\"===l&&(p=\"\".concat(t).concat(o.p.DOWNLOAD_LIQUIDATIONS_REPORTS),f[\"role-type-name\"]=e.UserDetails.role_type_details.role_type_name),d({baseUrl:p,payload:n,options:{headers:f,responseType:\"arraybuffer\"},requestType:\"post\"}).then(function(e){var t,n;null!==(t=(0,a.bA)(e))&&void 0!==t&&t.message&&c({message:null===(n=(0,a.bA)(e))||void 0===n?void 0:n.message,type:\"error\"})})}},64601:(e,t,n)=>{\"use strict\";n(46518)({target:\"Number\",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},64673:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"mui.nested\"):\"__THEME_NESTED__\"},64745:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14\"}),\"Search\")},64796:(e,t,n)=>{var r=n(59480),o=n(22499);e.exports=Object.keys||function(e){return r(e,o)}},64873:(e,t,n)=>{var r=n(54947);e.exports=function(e){return Object(r(e))}},64894:(e,t,n)=>{var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},65180:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>i});var r=n(81970),o=n.n(r),a=n(23944);const i=function(e){var t=e.salesHierarchyId,n=e.tabName,r=e.leastMarkerId,i=e.getApprovalsConfigData;return o().createElement(a.default,{salesHierarchyId:t,tabName:n,leastMarkerId:r,getApprovalsConfigData:i})}},65213:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79039),a=r.RegExp,i=!o(function(){var e=!0;try{a(\".\",\"d\")}catch(t){e=!1}var t={},n=\"\",r=e?\"dgimsy\":\"gimsy\",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:\"s\",global:\"g\",ignoreCase:\"i\",multiline:\"m\",sticky:\"y\"};for(var l in e&&(i.hasIndices=\"d\"),i)o(l,i[l]);return Object.getOwnPropertyDescriptor(a.prototype,\"flags\").get.call(t)!==r||n!==r});e.exports={correct:i}},65323:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.CellCompState=void 0;var s,u=n(64436),c=i(n(81970)),d=n(63981),p=l(n(90502)),f=l(n(78353)),g=n(98400),h=n(9670),m=n(67991);(s=t.CellCompState||(t.CellCompState={}))[s.ShowValue=0]=\"ShowValue\",s[s.EditValue=1]=\"EditValue\",t.default=c.memo(function(e){var t=c.useContext(g.BeansContext).context,n=e.cellCtrl,o=e.printLayout,a=e.editingRow,i=c.useState(),l=i[0],s=i[1],v=c.useState(),A=v[0],y=v[1],E=c.useState(1),b=E[0],_=E[1],C=c.useState(),w=C[0],S=C[1],T=c.useState(),O=T[0],D=T[1],R=c.useState(),N=R[0],L=R[1],P=c.useState(),M=P[0],x=P[1],I=c.useState(),k=I[0],B=I[1],F=c.useState(!1),j=F[0],H=F[1],U=c.useState(!1),Y=U[0],G=U[1],z=c.useState(!1),V=z[0],q=z[1],W=c.useState(),Q=W[0],K=W[1],$=c.useMemo(function(){return n.isForceWrapper()},[]),X=c.useRef(null),J=c.useRef(null),Z=c.useRef(),ee=c.useRef(),te=c.useRef(),ne=c.useState(0),re=ne[0],oe=ne[1],ae=c.useCallback(function(e){te.current=e,oe(function(e){return e+1})},[]),ie=c.useRef(),le=c.useState(0),se=le[0],ue=le[1],ce=c.useCallback(function(e){ie.current=e,ue(function(e){return e+1})},[]),de=$||null!=l&&(j||V||Y),pe=c.useCallback(function(e,t){ee.current=t,t&&(function(e,t,n){var r=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var o=\"AG Grid: Found an issue in column \"+r.getColId()+\". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.\";u._.doOnce(function(){return console.warn(o)},\"jsEditorComp-isPopup-\"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var a=\"AG Grid: Found an issue in column \"+r.getColId()+\". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.\";u._.doOnce(function(){return console.warn(a)},\"jsEditorComp-getPopupPosition-\"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){n.stopEditing(!0),n.focusCell(!0)}))},[]),fe=c.useCallback(function(e){return pe(!0,e)},[]),ge=c.useCallback(function(e){return pe(!1,e)},[]),he=c.useMemo(function(){return new u.CssClassManager(function(){return X.current})},[]);f.default(l,de,ie.current,se,Z,X);var me=c.useRef();c.useLayoutEffect(function(){var e=me.current,t=l;if(me.current=l,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,r=t.compDetails;n.componentClass==r.componentClass&&null!=J.current&&null!=J.current.refresh&&1!=J.current.refresh(r.params)&&_(function(e){return e+1})}},[l]),c.useLayoutEffect(function(){if(A&&!A.compDetails.componentFromFramework){var e=A.compDetails,n=!0===A.popup,r=h.createSyncJsComp(e);if(r){var o=r.getGui();if(pe(n,r),!n){var a=($?te:X).current;null==a||a.appendChild(o),r.afterGuiAttached&&r.afterGuiAttached()}return K(r),function(){t.destroyBean(r),pe(n,void 0),K(void 0),o&&o.parentElement&&o.parentElement.removeChild(o)}}}},[A]),c.useLayoutEffect(function(){if(n&&t&&te.current&&de){var e=[],r=function(n){if(n){var r=n.getGui();te.current.insertAdjacentElement(\"afterbegin\",r),e.push(function(){t.destroyBean(n),u._.removeFromParent(r)})}return n};return j&&r(n.createSelectionCheckbox()),V&&r(n.createDndSource()),Y&&r(n.createRowDragComp()),function(){return e.forEach(function(e){return e()})}}},[de,V,Y,j,re]),m.useLayoutEffectOnce(function(){if(n){var e={addOrRemoveCssClass:function(e,t){return he.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return S(e)},getFocusableElement:function(){return X.current},setTabIndex:function(e){return D(e)},setRole:function(e){return L(e)},setColId:function(e){return x(e)},setTitle:function(e){return B(e)},setIncludeSelection:function(e){return H(e)},setIncludeRowDrag:function(e){return G(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return ee.current||null},getCellRenderer:function(){return J.current?J.current:Z.current},getParentOfValue:function(){return ie.current?ie.current:te.current?te.current:X.current},setRenderDetails:function(e,t,n){s({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(y({compDetails:e,popup:t,popupPosition:n}),t||s(void 0)):y(void 0)}},t=te.current||void 0;n.setComp(e,X.current,t,o,a)}});var ve=c.useMemo(function(){return!!(l&&l.compDetails&&l.compDetails.componentFromFramework&&d.isComponentStateless(l.compDetails.componentClass))},[l]);c.useEffect(function(){var e;X.current&&(he.addOrRemoveCssClass(\"ag-cell-value\",!de),he.addOrRemoveCssClass(\"ag-cell-inline-editing\",!!A&&!A.popup),he.addOrRemoveCssClass(\"ag-cell-popup-editing\",!!A&&!!A.popup),he.addOrRemoveCssClass(\"ag-cell-not-inline-editing\",!A||!!A.popup),null===(e=n.getRowCtrl())||void 0===e||e.setInlineEditingCss(!!A))});var Ae=c.useMemo(function(){return n.getInstanceId()},[]),ye=function(){return c.default.createElement(c.default.Fragment,null,null!=l&&function(e,t,n,o,a,i,l){var s=e.compDetails,u=e.value,d=!s,p=s&&s.componentFromFramework,f=s&&s.componentClass,g=(null==u?void 0:u.toString)?u.toString():u,h=function(){return c.default.createElement(c.default.Fragment,null,d&&c.default.createElement(c.default.Fragment,null,g),p&&!i&&c.default.createElement(f,r({},s.params,{key:t,ref:o})),p&&i&&c.default.createElement(f,r({},s.params,{key:t})))};return c.default.createElement(c.default.Fragment,null,a?c.default.createElement(\"span\",{role:\"presentation\",id:\"cell-\"+n,className:\"ag-cell-value\",ref:l},h()):h())}(l,b,Ae,J,de,ve,ce),null!=A&&function(e,t,n,o,a,i){var l=e.compDetails,s=l.componentClass,u=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,f=!l.componentFromFramework&&e.popup;return c.default.createElement(c.default.Fragment,null,u&&c.default.createElement(s,r({},e.compDetails.params,{ref:t})),d&&c.default.createElement(p.default,{editDetails:e,cellCtrl:a,eParentCell:o,wrappedContent:c.default.createElement(s,r({},e.compDetails.params,{ref:n}))}),f&&i&&c.default.createElement(p.default,{editDetails:e,cellCtrl:a,eParentCell:o,jsChildComp:i}))}(A,ge,fe,X.current,n,Q))};return c.default.createElement(\"div\",{ref:X,style:w,tabIndex:O,role:N,\"col-id\":M,title:k},de?c.default.createElement(\"div\",{className:\"ag-cell-wrapper\",role:\"presentation\",ref:ae},ye()):ye())})},65343:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"}),\"ArrowForward\")},65543:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-il\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")}})}(n(95093))},65673:e=>{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},65724:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(38413),d=n(31609);function p(e){return(0,d.Ay)(\"MuiFormGroup\",e)}(0,c.A)(\"MuiFormGroup\",[\"root\",\"row\",\"error\"]);var f=n(79716),g=n(38086),h=n(74848);const m=[\"className\",\"row\"],v=(0,s.Ay)(\"div\",{name:\"MuiFormGroup\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>(0,o.A)({display:\"flex\",flexDirection:\"column\",flexWrap:\"wrap\"},e.row&&{flexDirection:\"row\"})),A=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiFormGroup\"}),{className:a,row:s=!1}=n,c=(0,r.A)(n,m),d=(0,f.A)(),A=(0,g.A)({props:n,muiFormControl:d,states:[\"error\"]}),y=(0,o.A)({},n,{row:s,error:A.error}),E=(e=>{const{classes:t,row:n,error:r}=e,o={root:[\"root\",n&&\"row\",r&&\"error\"]};return(0,l.A)(o,p,t)})(y);return(0,h.jsx)(v,(0,o.A)({className:(0,i.A)(E.root,a),ownerState:y,ref:t},c))})},65848:(e,t,n)=>{\"use strict\";var r,o;r=n(17633),o=n(72911),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream},65971:(e,t,n)=>{e.exports={default:n(85011),__esModule:!0}},66030:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e2050512049cd15255c9.png\"},66119:(e,t,n)=>{\"use strict\";var r=n(25745),o=n(33392),a=r(\"keys\");e.exports=function(e){return a[e]||(a[e]=o(e))}},66124:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var l=a(n(81970)),s=n(98400),u=n(64436),c=n(63981),d=i(n(49667)),p=n(67991);t.default=l.memo(function(){var e=l.useState(new c.CssClasses),t=e[0],n=e[1],r=l.useState(),o=r[0],a=r[1],i=l.useContext(s.BeansContext).context,f=l.useRef(null);p.useLayoutEffectOnce(function(){var e={addOrRemoveCssClass:function(e,t){return n(function(n){return n.setClass(e,t)})},setHeightAndMinHeight:function(e){return a(e)}},t=i.createBean(new u.GridHeaderCtrl);return t.setComp(e,f.current,f.current),function(){i.destroyBean(t)}});var g=l.useMemo(function(){return\"ag-header \"+t.toString()},[t]),h=l.useMemo(function(){return{height:o,minHeight:o}},[o]);return l.default.createElement(\"div\",{ref:f,className:g,style:h,role:\"presentation\"},l.default.createElement(d.default,{pinned:\"left\"}),l.default.createElement(d.default,{pinned:null}),l.default.createElement(d.default,{pinned:\"right\"}))})},66327:(e,t,n)=>{e.exports={default:n(37719),__esModule:!0}},66346:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79504),a=n(43724),i=n(77811),l=n(10350),s=n(66699),u=n(62106),c=n(56279),d=n(79039),p=n(90679),f=n(91291),g=n(18014),h=n(57696),m=n(15617),v=n(88490),A=n(42787),y=n(52967),E=n(84373),b=n(67680),_=n(23167),C=n(77740),w=n(10687),S=n(91181),T=l.PROPER,O=l.CONFIGURABLE,D=\"ArrayBuffer\",R=\"DataView\",N=\"prototype\",L=\"Wrong index\",P=S.getterFor(D),M=S.getterFor(R),x=S.set,I=r[D],k=I,B=k&&k[N],F=r[R],j=F&&F[N],H=Object.prototype,U=r.Array,Y=r.RangeError,G=o(E),z=o([].reverse),V=v.pack,q=v.unpack,W=function(e){return[255&e]},Q=function(e){return[255&e,e>>8&255]},K=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},$=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return V(m(e),23,4)},J=function(e){return V(e,52,8)},Z=function(e,t,n){u(e[N],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var o=M(e),a=h(n),i=!!r;if(a+t>o.byteLength)throw new Y(L);var l=o.bytes,s=a+o.byteOffset,u=b(l,s,s+t);return i?u:z(u)},te=function(e,t,n,r,o,a){var i=M(e),l=h(n),s=r(+o),u=!!a;if(l+t>i.byteLength)throw new Y(L);for(var c=i.bytes,d=l+i.byteOffset,p=0;p<t;p++)c[d+p]=s[u?p:t-p-1]};if(i){var ne=T&&I.name!==D;d(function(){I(1)})&&d(function(){new I(-1)})&&!d(function(){return new I,new I(1.5),new I(NaN),1!==I.length||ne&&!O})?ne&&O&&s(I,\"name\",D):((k=function(e){return p(this,B),_(new I(h(e)),this,k)})[N]=B,B.constructor=k,C(k,I)),y&&A(j)!==H&&y(j,H);var re=new F(new k(2)),oe=o(j.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(j,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else B=(k=function(e){p(this,B);var t=h(e);x(this,{type:D,bytes:G(U(t),0),byteLength:t}),a||(this.byteLength=t,this.detached=!1)})[N],j=(F=function(e,t,n){p(this,j),p(e,B);var r=P(e),o=r.byteLength,i=f(t);if(i<0||i>o)throw new Y(\"Wrong offset\");if(i+(n=void 0===n?o-i:g(n))>o)throw new Y(\"Wrong length\");x(this,{type:R,buffer:e,byteLength:n,byteOffset:i,bytes:r.bytes}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=i)})[N],a&&(Z(k,\"byteLength\",P),Z(F,\"buffer\",M),Z(F,\"byteLength\",M),Z(F,\"byteOffset\",M)),c(j,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,W,t)},setUint8:function(e,t){te(this,1,e,W,t)},setInt16:function(e,t){te(this,2,e,Q,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Q,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,J,t,arguments.length>2&&arguments[2])}});w(k,D),w(F,R),e.exports={ArrayBuffer:k,DataView:F}},66584:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-ie\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},66645:(e,t,n)=>{var r=n(1733),o=n(45434),a=n(13222),i=n(22225);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?o(e)?i(e):r(e):e.match(t)||[]}},66651:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(19617).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"indexOf\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},66699:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(24913),a=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},66721:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return\"__lodash_hash_undefined__\"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},66743:(e,t,n)=>{\"use strict\";var r=n(89353);e.exports=Function.prototype.bind||r},66812:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(18745),a=n(8379),i=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"lastIndexOf\",function(e){var t=arguments.length;return o(a,i(this),t>1?[e,arguments[1]]:[e])})},66848:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>P});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(55860),c=n(25669),d=n(20561),p=n(74848);const f=(0,d.A)((0,p.jsx)(\"path\",{d:\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),\"RadioButtonUnchecked\"),g=(0,d.A)((0,p.jsx)(\"path\",{d:\"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z\"}),\"RadioButtonChecked\");var h=n(11848),m=n(39770);const v=(0,h.Ay)(\"span\",{name:\"MuiRadioButtonIcon\",shouldForwardProp:m.A})({position:\"relative\",display:\"flex\"}),A=(0,h.Ay)(f,{name:\"MuiRadioButtonIcon\"})({transform:\"scale(1)\"}),y=(0,h.Ay)(g,{name:\"MuiRadioButtonIcon\"})(({theme:e,ownerState:t})=>(0,o.A)({left:0,position:\"absolute\",transform:\"scale(0)\",transition:e.transitions.create(\"transform\",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:\"scale(1)\",transition:e.transitions.create(\"transform\",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})),E=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a=(0,o.A)({},e,{checked:t});return(0,p.jsxs)(v,{className:n.root,ownerState:a,children:[(0,p.jsx)(A,{fontSize:r,className:n.background,ownerState:a}),(0,p.jsx)(y,{fontSize:r,className:n.dot,ownerState:a})]})};var b=n(28466),_=n(50862);const C=a.createContext(void 0);var w=n(38413),S=n(31609);function T(e){return(0,S.Ay)(\"MuiRadio\",e)}const O=(0,w.A)(\"MuiRadio\",[\"root\",\"checked\",\"disabled\",\"colorPrimary\",\"colorSecondary\",\"sizeSmall\"]),D=[\"checked\",\"checkedIcon\",\"color\",\"icon\",\"name\",\"onChange\",\"size\",\"className\"],R=(0,h.Ay)(u.A,{shouldForwardProp:e=>(0,m.A)(e)||\"classes\"===e,name:\"MuiRadio\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"medium\"!==n.size&&t[`size${(0,b.A)(n.size)}`],t[`color${(0,b.A)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,o.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${\"default\"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(\"default\"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},\"default\"!==t.color&&{[`&.${O.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${O.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N=(0,p.jsx)(E,{checked:!0}),L=(0,p.jsx)(E,{}),P=a.forwardRef(function(e,t){var n,s;const u=(0,c.b)({props:e,name:\"MuiRadio\"}),{checked:d,checkedIcon:f=N,color:g=\"primary\",icon:h=L,name:m,onChange:v,size:A=\"medium\",className:y}=u,E=(0,r.A)(u,D),w=(0,o.A)({},u,{color:g,size:A}),S=(e=>{const{classes:t,color:n,size:r}=e,a={root:[\"root\",`color${(0,b.A)(n)}`,\"medium\"!==r&&`size${(0,b.A)(r)}`]};return(0,o.A)({},t,(0,l.A)(a,T,t))})(w),O=a.useContext(C);let P=d;const M=(0,_.A)(v,O&&O.onChange);let x=m;return O&&(void 0===P&&(I=O.value,P=\"object\"==typeof(k=u.value)&&null!==k?I===k:String(I)===String(k)),void 0===x&&(x=O.name)),(0,p.jsx)(R,(0,o.A)({type:\"radio\",icon:a.cloneElement(h,{fontSize:null!=(n=L.props.fontSize)?n:A}),checkedIcon:a.cloneElement(f,{fontSize:null!=(s=N.props.fontSize)?s:A}),ownerState:w,classes:S,name:x,checked:P,onChange:M,ref:t,className:(0,i.A)(S.root,y)},E));var I,k})},66870:(e,t,n)=>{var r=n(43066),o=n(64873),a=n(36211)(\"IE_PROTO\"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:\"function\"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},66933:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(34376),a=n(94901),i=n(22195),l=n(655),s=r([].push);e.exports=function(e){if(a(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];\"string\"==typeof u?s(n,u):\"number\"!=typeof u&&\"Number\"!==i(u)&&\"String\"!==i(u)||s(n,l(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},67034:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z\"}),\"Delete\")},67163:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>C});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(11317),s=n(31609),u=n(75659),c=n(8676),d=n(16606),p=n(39599),f=n(58749),g=n(89452),h=n(68248),m=n(74848);const v=[\"component\",\"direction\",\"spacing\",\"divider\",\"children\",\"className\",\"useFlexGap\"],A=(0,f.A)(),y=(0,c.A)(\"div\",{name:\"MuiStack\",slot:\"Root\",overridesResolver:(e,t)=>t.root});function E(e){return(0,d.A)({props:e,name:\"MuiStack\",defaultTheme:A})}function b(e,t){const n=a.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(a.cloneElement(t,{key:`separator-${o}`})),e),[])}const _=({ownerState:e,theme:t})=>{let n=(0,o.A)({display:\"flex\",flexDirection:\"column\"},(0,g.NI)({theme:t},(0,g.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=(0,h.LX)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>((\"object\"==typeof e.spacing&&null!=e.spacing[n]||\"object\"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),a=(0,g.kW)({values:e.direction,base:o}),i=(0,g.kW)({values:e.spacing,base:o});\"object\"==typeof a&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:\"column\";a[e]=r}});const s=(t,n)=>{return e.useFlexGap?{gap:(0,h._W)(r,t)}:{\"& > :not(style):not(style)\":{margin:0},\"& > :not(style) ~ :not(style)\":{[`margin${o=n?a[n]:e.direction,{row:\"Left\",\"row-reverse\":\"Right\",column:\"Top\",\"column-reverse\":\"Bottom\"}[o]}`]:(0,h._W)(r,t)}};var o};n=(0,l.A)(n,(0,g.NI)({theme:t},i,s))}return n=(0,g.iZ)(t.breakpoints,n),n};function C(e={}){const{createStyledComponent:t=y,useThemeProps:n=E,componentName:l=\"MuiStack\"}=e,c=t(_);return a.forwardRef(function(e,t){const a=n(e),d=(0,p.A)(a),{component:f=\"div\",direction:g=\"column\",spacing:h=0,divider:A,children:y,className:E,useFlexGap:_=!1}=d,C=(0,r.A)(d,v),w={direction:g,spacing:h,useFlexGap:_},S=(0,u.A)({root:[\"root\"]},e=>(0,s.Ay)(l,e),{});return(0,m.jsx)(c,(0,o.A)({as:f,ownerState:w,ref:t,className:(0,i.A)(S.root,E)},C,{children:A?b(y,A):y}))})}},67197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},67217:(e,t,n)=>{var r=n(78194);e.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},67400:e=>{\"use strict\";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67413:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>f});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(22532),s=n(33571),u=n(39599),c=n(82858),d=n(74848);const p=[\"className\",\"component\"];function f(e={}){const{themeId:t,defaultTheme:n,defaultClassName:f=\"MuiBox-root\",generateClassName:g}=e,h=(0,l.default)(\"div\",{shouldForwardProp:e=>\"theme\"!==e&&\"sx\"!==e&&\"as\"!==e})(s.A);return a.forwardRef(function(e,a){const l=(0,c.A)(n),s=(0,u.A)(e),{className:m,component:v=\"div\"}=s,A=(0,o.A)(s,p);return(0,d.jsx)(h,(0,r.A)({as:v,ref:a,className:(0,i.A)(m,g?g(f):f),theme:t&&l[t]||l},A))})}},67416:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(78227),a=n(43724),i=n(96395),l=o(\"iterator\");e.exports=!r(function(){var e=new URL(\"b?a=1&b=2&c=3\",\"https://a\"),t=e.searchParams,n=new URLSearchParams(\"a=1&a=2&b=3\"),r=\"\";return e.pathname=\"c%20d\",t.forEach(function(e,n){t.delete(\"b\"),r+=n+e}),n.delete(\"a\",2),n.delete(\"b\",void 0),i&&(!e.toJSON||!n.has(\"a\",1)||n.has(\"a\",2)||!n.has(\"a\",void 0)||n.has(\"b\"))||!t.size&&(i||!a)||!t.sort||\"https://a/c%20d?a=1&c=3\"!==e.href||\"3\"!==t.get(\"c\")||\"a=1\"!==String(new URLSearchParams(\"?a=1\"))||!t[l]||\"a\"!==new URL(\"https://a@b\").username||\"b\"!==new URLSearchParams(new URLSearchParams(\"a=b\")).get(\"a\")||\"xn--e1aybc\"!==new URL(\"https://тест\").host||\"#%D0%B1\"!==new URL(\"https://a#б\").hash||\"a1c3\"!==r||\"x\"!==new URL(\"https://x\",void 0).host})},67621:(e,t,n)=>{\"use strict\";n.d(t,{n:()=>o});var r=n(28161),o=(0,n(11848).Ay)(r.A)(function(e){return{\"&   .stepper-iconwrapper\":{width:\"25px\",height:\"25px\",borderRadius:\"50px\",padding:\"5px\"},\"& .icon-warning\":{backgroundColor:\"#FFF1F1\",color:e.theme.palette.error.main},\"& .icon-check\":{backgroundColor:\"#DFFBE8\",color:\"#14803C\"},\"& .MuiStepConnector-lineVertical, & .MuiStepContent-root \":{borderLeftWidth:\"2px\",borderColor:\"#CFD3DB\"},strong:{color:\"#1D2B3A\",marginRight:\"5px\"},\"& .MuiCollapse-wrapperInner\":{color:\"#1D2B3A\"}}})},67680:(e,t,n)=>{\"use strict\";var r=n(79504);e.exports=r([].slice)},67683:(e,t,n)=>{\"use strict\";n.d(t,{D:()=>u,X:()=>c}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(28161),o=n(11848);function a(e){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==a(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){return{\"& .pageCount\":{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",\"& > .MuiTypography-body1\":{font:\"normal normal 600 14px NotoSans-SemiBold\"}},\"& .paginationDropdown\":{margin:\"0px 8px\",borderRadius:e.shape.borderRadius,minWidth:\"70px\",height:\"32px\",color:e.palette.text.secondary,\"& .css-1d3z3hw-MuiOutlinedInput-notchedOutline\":{border:0},\"& .MuiSelect-outlined\":{background:e.palette.secondary.dark,border:\"1px solid \".concat(e.palette.grey[300]),padding:\"5px 14px\"}}}},c=(0,o.Ay)(r.A)(function(e){var t=e.theme;return l(l({background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\"},u(t)),{},{\"& .table-edit-icon\":{fontSize:\"18px\",color:t.palette.primary.main,margin:\"4px\",cursor:\"pointer\",border:\"none\",background:\"none\"},\"& .table-download-icon\":{fontSize:\"20px\",color:t.palette.primary.dark,margin:\"4px\",cursor:\"pointer\",border:\"none\",background:\"none\"}})})},67750:(e,t,n)=>{\"use strict\";var r=n(64117),o=TypeError;e.exports=function(e){if(r(e))throw new o(\"Can't call method on \"+e);return e}},67780:(e,t,n)=>{var r=n(90531),o=n(6935),a=n(22499),i=n(36211)(\"IE_PROTO\"),l=function(){},s=\"prototype\",u=function(){var e,t=n(50559)(\"iframe\"),r=a.length;for(t.style.display=\"none\",n(7745).appendChild(t),t.src=\"javascript:\",(e=t.contentWindow.document).open(),e.write(\"<script>document.F=Object<\\/script>\"),e.close(),u=e.F;r--;)delete u[s][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=r(e),n=new l,l[s]=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},67945:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(43724),a=n(96801).f;r({target:\"Object\",stat:!0,forced:Object.defineProperties!==a,sham:!o},{defineProperties:a})},67957:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a980917ecc269abc1d75.gif\"},67976:e=>{function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},t(e)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":t(e)},n(r)}e.exports=n},67979:(e,t,n)=>{\"use strict\";var r=n(28551);e.exports=function(){var e=r(this),t=\"\";return e.hasIndices&&(t+=\"d\"),e.global&&(t+=\"g\"),e.ignoreCase&&(t+=\"i\"),e.multiline&&(t+=\"m\"),e.dotAll&&(t+=\"s\"),e.unicode&&(t+=\"u\"),e.unicodeSets&&(t+=\"v\"),e.sticky&&(t+=\"y\"),t}},67991:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.useLayoutEffectOnce=t.useEffectOnce=void 0;var r=n(81970);t.useEffectOnce=function(e){var t=r.useRef(e),n=r.useRef(),o=r.useRef(!1),a=r.useRef(!1),i=r.useState(0)[1];o.current&&(a.current=!0),r.useEffect(function(){return o.current||(n.current=t.current(),o.current=!0),i(function(e){return e+1}),function(){a.current&&n.current&&n.current()}},[])},t.useLayoutEffectOnce=function(e){var t=r.useRef(e),n=r.useRef(),o=r.useRef(!1),a=r.useRef(!1),i=r.useState(0)[1];o.current&&(a.current=!0),r.useLayoutEffect(function(){return o.current||(n.current=t.current(),o.current=!0),i(function(e){return e+1}),function(){a.current&&n.current&&n.current()}},[])}},68002:e=>{\"use strict\";e.exports=Math.min},68081:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i,b:()=>a});var r=n(38413),o=n(31609);function a(e){return(0,o.Ay)(\"MuiListItemText\",e)}const i=(0,r.A)(\"MuiListItemText\",[\"root\",\"multiline\",\"dense\",\"inset\",\"primary\",\"secondary\"])},68156:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(60533).start;r({target:\"String\",proto:!0,forced:n(83063)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},68183:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(91291),a=n(655),i=n(67750),l=r(\"\".charAt),s=r(\"\".charCodeAt),u=r(\"\".slice),c=function(e){return function(t,n){var r,c,d=a(i(t)),p=o(n),f=d.length;return p<0||p>=f?e?\"\":void 0:(r=s(d,p))<55296||r>56319||p+1===f||(c=s(d,p+1))<56320||c>57343?e?l(d,p):r:e?u(d,p,p+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},68223:(e,t,n)=>{var r=n(56110)(n(9325),\"Map\");e.exports=r},68248:(e,t,n)=>{\"use strict\";n.d(t,{LX:()=>g,MA:()=>f,_W:()=>h,Lc:()=>v,Ms:()=>A});var r=n(89452),o=n(86481),a=n(14620);const i={m:\"margin\",p:\"padding\"},l={t:\"Top\",r:\"Right\",b:\"Bottom\",l:\"Left\",x:[\"Left\",\"Right\"],y:[\"Top\",\"Bottom\"]},s={marginX:\"mx\",marginY:\"my\",paddingX:\"px\",paddingY:\"py\"},u=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}const[t,n]=e.split(\"\"),r=i[t],o=l[n]||\"\";return Array.isArray(o)?o.map(e=>r+e):[r+o]})(t)),e[t])}(),c=[\"m\",\"mt\",\"mr\",\"mb\",\"ml\",\"mx\",\"my\",\"margin\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\",\"marginX\",\"marginY\",\"marginInline\",\"marginInlineStart\",\"marginInlineEnd\",\"marginBlock\",\"marginBlockStart\",\"marginBlockEnd\"],d=[\"p\",\"pt\",\"pr\",\"pb\",\"pl\",\"px\",\"py\",\"padding\",\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",\"paddingX\",\"paddingY\",\"paddingInline\",\"paddingInlineStart\",\"paddingInlineEnd\",\"paddingBlock\",\"paddingBlockStart\",\"paddingBlockEnd\"],p=[...c,...d];function f(e,t,n,r){var a;const i=null!=(a=(0,o.Yn)(e,t,!1))?a:n;return\"number\"==typeof i?e=>\"string\"==typeof e?e:i*e:Array.isArray(i)?e=>\"string\"==typeof e?e:i[e]:\"function\"==typeof i?i:()=>{}}function g(e){return f(e,\"spacing\",8)}function h(e,t){if(\"string\"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:\"number\"==typeof n?-n:`-${n}`}function m(e,t){const n=g(e.theme);return Object.keys(e).map(o=>function(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce((e,r)=>(e[r]=h(t,n),e),{})}(u(n),o),i=e[n];return(0,r.NI)(e,i,a)}(e,t,o,n)).reduce(a.A,{})}function v(e){return m(e,c)}function A(e){return m(e,d)}function y(e){return m(e,p)}v.propTypes={},v.filterProps=c,A.propTypes={},A.filterProps=d,y.propTypes={},y.filterProps=p},68363:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(79504),a=n(89228),i=n(28551),l=n(20034),s=n(67750),u=n(2293),c=n(57829),d=n(18014),p=n(655),f=n(55966),g=n(56682),h=n(58429),m=n(79039),v=h.UNSUPPORTED_Y,A=Math.min,y=o([].push),E=o(\"\".slice),b=!m(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=\"ab\".split(e);return 2!==n.length||\"a\"!==n[0]||\"b\"!==n[1]}),_=\"c\"===\"abbc\".split(/(b)*/)[1]||4!==\"test\".split(/(?:)/,-1).length||2!==\"ab\".split(/(?:ab)*/).length||4!==\".\".split(/(.?)(.?)/).length||\".\".split(/()()/).length>1||\"\".split(/.?/).length;a(\"split\",function(e,t,n){var o=\"0\".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var a=s(this),i=l(t)?f(t,e):void 0;return i?r(i,t,a,n):r(o,p(a),t,n)},function(e,r){var a=i(this),l=p(e);if(!_){var s=n(o,a,l,r,o!==t);if(s.done)return s.value}var f=u(a,RegExp),h=a.unicode,m=(a.ignoreCase?\"i\":\"\")+(a.multiline?\"m\":\"\")+(a.unicode?\"u\":\"\")+(v?\"g\":\"y\"),b=new f(v?\"^(?:\"+a.source+\")\":a,m),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===l.length)return null===g(b,l)?[l]:[];for(var w=0,S=0,T=[];S<l.length;){b.lastIndex=v?0:S;var O,D=g(b,v?E(l,S):l);if(null===D||(O=A(d(b.lastIndex+(v?S:0)),l.length))===w)S=c(l,S,h);else{if(y(T,E(l,w,S)),T.length===C)return T;for(var R=1;R<=D.length-1;R++)if(y(T,D[R]),T.length===C)return T;S=w=O}}return y(T,E(l,w)),T}]},_||!b,v)},68583:function(e,t){\"use strict\";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,\"__esModule\",{value:!0}),t.PortalManager=void 0;var r=function(){function e(t,n,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||\"div\",this.parent=t,this.maxComponentCreationTimeMs=r||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter(function(t){return t!==e}),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,r){this.portals=n(this.portals,[e]),this.waitForInstance(t,r),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error(\"AG Grid: React Component '\"+e.getReactComponentName()+\"' not created within \"+this.maxComponentCreationTimeMs+\"ms\");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=r},68586:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(90725)},68670:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>f}),n(52675),n(25276),n(94170),n(69085);var r=n(94017),o=n(90815),a=n(28161),i=n(87458),l=n(14073),s=n(81970),u=n(17630),c=(0,n(11848).Ay)(a.A)(function(){return{\"& .MuiLinearProgress-root\":{height:\"18px\",border:\"3px solid \".concat(u.T.greenBorder),borderRadius:\"14px\",\"& .MuiLinearProgress-bar\":{backgroundColor:u.T.greenProgress}},\"& .round-badge\":{\"& .MuiSvgIcon-root\":{width:\"24px\",height:\"24px\",color:u.T.greenProgress}}}}),d=[\"message\",\"isMessageHidden\"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}const f=function(e){var t=e.message,n=e.isMessageHidden,f=void 0!==n&&n,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);return s.createElement(c,null,!f&&s.createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"flex-start\",gap:1,mb:2},s.createElement(l.A,{component:\"span\",className:\"round-badge\",color:u.T.greenProgress},s.createElement(r.A,{fontSize:\"inherit\",className:\"badge-icon\"})),s.createElement(l.A,{variant:\"body2\",color:u.T.greenProgress,fontSize:12,fontWeight:600,textTransform:\"capitalize\"},null!=t?t:\"Your file processed for approval, Please check My Uploads for further details\")),s.createElement(o.A,{direction:\"row\",alignItems:\"center\"},s.createElement(a.A,{sx:{minWidth:52}},s.createElement(l.A,{variant:\"subtitle1\",color:u.T.greenProgress},\"\".concat(Math.round(g.value),\"%\"))),s.createElement(a.A,{sx:{width:\"100%\",mr:1}},s.createElement(i.A,p({variant:\"determinate\"},g)))))}},68841:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},68864:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>C});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(79716),u=n(90815),c=n(14073),d=n(28466),p=n(11848),f=n(25669),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiFormControlLabel\",e)}const v=(0,g.A)(\"MuiFormControlLabel\",[\"root\",\"labelPlacementStart\",\"labelPlacementTop\",\"labelPlacementBottom\",\"disabled\",\"label\",\"error\",\"required\",\"asterisk\"]);var A=n(38086),y=n(74848);const E=[\"checked\",\"className\",\"componentsProps\",\"control\",\"disabled\",\"disableTypography\",\"inputRef\",\"label\",\"labelPlacement\",\"name\",\"onChange\",\"required\",\"slotProps\",\"value\"],b=(0,p.Ay)(\"label\",{name:\"MuiFormControlLabel\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${v.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,o.A)({display:\"inline-flex\",alignItems:\"center\",cursor:\"pointer\",verticalAlign:\"middle\",WebkitTapHighlightColor:\"transparent\",marginLeft:-11,marginRight:16,[`&.${v.disabled}`]:{cursor:\"default\"}},\"start\"===t.labelPlacement&&{flexDirection:\"row-reverse\",marginLeft:16,marginRight:-11},\"top\"===t.labelPlacement&&{flexDirection:\"column-reverse\",marginLeft:16},\"bottom\"===t.labelPlacement&&{flexDirection:\"column\",marginLeft:16},{[`& .${v.label}`]:{[`&.${v.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),_=(0,p.Ay)(\"span\",{name:\"MuiFormControlLabel\",slot:\"Asterisk\",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${v.error}`]:{color:(e.vars||e).palette.error.main}})),C=a.forwardRef(function(e,t){var n,p;const g=(0,f.b)({props:e,name:\"MuiFormControlLabel\"}),{className:h,componentsProps:v={},control:C,disabled:w,disableTypography:S,label:T,labelPlacement:O=\"end\",required:D,slotProps:R={}}=g,N=(0,r.A)(g,E),L=(0,s.A)(),P=null!=(n=null!=w?w:C.props.disabled)?n:null==L?void 0:L.disabled,M=null!=D?D:C.props.required,x={disabled:P,required:M};[\"checked\",\"name\",\"onChange\",\"value\",\"inputRef\"].forEach(e=>{void 0===C.props[e]&&void 0!==g[e]&&(x[e]=g[e])});const I=(0,A.A)({props:g,muiFormControl:L,states:[\"error\"]}),k=(0,o.A)({},g,{disabled:P,labelPlacement:O,required:M,error:I.error}),B=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:[\"root\",n&&\"disabled\",`labelPlacement${(0,d.A)(r)}`,o&&\"error\",a&&\"required\"],label:[\"label\",n&&\"disabled\"],asterisk:[\"asterisk\",o&&\"error\"]};return(0,l.A)(i,m,t)})(k),F=null!=(p=R.typography)?p:v.typography;let j=T;return null==j||j.type===c.A||S||(j=(0,y.jsx)(c.A,(0,o.A)({component:\"span\"},F,{className:(0,i.A)(B.label,null==F?void 0:F.className),children:j}))),(0,y.jsxs)(b,(0,o.A)({className:(0,i.A)(B.root,h),ownerState:k,ref:t},N,{children:[a.cloneElement(C,x),M?(0,y.jsxs)(u.A,{display:\"block\",children:[j,(0,y.jsxs)(_,{ownerState:k,\"aria-hidden\":!0,className:B.asterisk,children:[\" \",\"*\"]})]}):j]}))})},68935:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>$}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(42762),n(23500),n(62953);var r=n(60538),o=n(51545),a=n(80663),i=n(56203),l=n(81970),s=n.n(l),u=n(99478),c=n(37998),d=n(96348),p=n(47225),f=n(70380),g=n(13075),h=n(56254),m=n(43605),v=n(92416),A=n(15664),y=n(21239),E=n(67683),b=n(28161),_=n(90815),C=n(14073),w=n(26472),S=n(36874);const T=function(e){var t=e.isDrawerOpen,n=e.onRequestClose,r=e.documents;return s().createElement(S.A,{isDrawerOpen:t,anchor:\"right\"},s().createElement(b.A,{className:\"popupMain customWidth\"},s().createElement(_.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:-24},s().createElement(C.A,{component:\"h1\",variant:\"h1\"},(0,i.t)(\"EVENT_REGISTRATION_IMAGES\")),s().createElement(b.A,{\"data-testid\":\"onRequestClose\",onClick:function(){return n()}},s().createElement(C.A,{className:\"icon-close closeIcon\"}))),r&&r.length>0?s().createElement(w.A,{documents:r}):s().createElement(b.A,{sx:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\"}},s().createElement(C.A,{variant:\"body1\",sx:{fontSize:\"1.25rem\"}},(0,i.t)(\"NO_IMAGE_UPLOADED\")))))};var O=n(8239),D=n(88084),R=n(2543),N=n.n(R),L=n(34195),P=n(62809),M=(n(48598),n(3362),n(9391),n(25440),n(95692)),x=n(8085),I=n(96790),k=n(34358),B=function(e,t,n,r){var o,a,i={};if(i.domain=t,i.triggerLoader=n,i.payLoad=null==r?void 0:r.payload,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},\"getOCRListData\"===r.apiName)i.endPoint=x.p.GET_OCR_EVENTS_LIST,i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id,i.customHeaders[\"user-id\"]=null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,i.customHeaders[\"role-type-name\"]=e.UserDetails.role_type_details.role_type_name;else if(\"getSalesHierarchyId\"===r.apiName)i.endPoint=x.p.GET_SALES_HIERARCHY_ID.replace(\"bu_id\",null==e?void 0:e.selectedBusinessUnit.bu_id);else if(\"getOCRLabels\"===r.apiName){var l;i.endPoint=x.p.GET_FILTERS_LABELS_LIST,i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id,i.customHeaders[\"role-id\"]=null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId,i.customHeaders[\"role-type-name\"]=e.UserDetails.role_type_details.role_type_name}else if(\"getParentFilterData\"===r.apiName){var s;i.endPoint=x.p.GET_HQ_NAME,i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id,i.customHeaders[\"user-id\"]=null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,i.customHeaders[\"role-type-name\"]=e.UserDetails.role_type_details.role_type_name}else if(\"getChildFilterData\"===r.apiName){var u,c;i.endPoint=\"\".concat(x.p.GET_EVENT_TARGET_CHILD,\"?\").concat(null===(u=r.parentHqIds)||void 0===u?void 0:u.map(function(e){return\"parentHqIds=\"+e}).join(\"&\")),i.customHeaders[\"bu-id\"]=null==e?void 0:e.selectedBusinessUnit.bu_id,i.customHeaders[\"user-id\"]=null==e||null===(c=e.UserDetails)||void 0===c?void 0:c.user_id}else\"getOCRImages\"===r.apiName&&(i.endPoint=x.p.GET_OCR_IMAGES.replace(\"__EVENT_UUID__\",r.eventUUID).replace(\"__EVENT_CODE__\",r.eventCode));return i},F=function(e){return new Promise(function(t,n){var r;null===(r=M.N.get(e))||void 0===r||r.then(function(e){if(!(0,g.mN)(e))throw new Error(e.error);if(null!=e&&e.data)return t(null==e?void 0:e.data)}).catch(function(e){return n(new Error(e))})})},j=function(e,t,n,r,o){var a=B(e,t,n,{apiName:r,payload:o});return F(a)};function H(e,t){if(e){if(\"string\"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Y=function(e){var t,n,r=e.isFilterOpen,i=void 0!==r&&r,u=e.onRequestClose,c=void 0===u?function(){}:u,d=e.setHqDataIds,f=void 0===d?function(){}:d,g=e.ocrFilterLabels,h=e.setOCRFilterLabels,m=void 0===h?function(){}:h,v=(0,l.useContext)(p.v),y=v.BackOfficeProps,E=y.globalStore.User,b=y.baseurl,_=v.triggerToastMsg,w=v.triggerShowLoader,T=(0,L.Bd)().t,R=(t=(0,l.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||H(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),M=R[0],x=R[1],I=function(){(function(e,t,n){var r=B(e,t,n,{apiName:\"getSalesHierarchyId\"});return F(r)})(E,b,w).then(function(e){var t;null!=e&&e.sales_hierarchy_id&&(t=e.sales_hierarchy_id,j(E,b,w,\"getOCRLabels\",{salesHierarchyId:t}).then(function(e){var t,n,r;e&&e.length>0&&(r={sales_hierarchy_id:null===(n=(t=e)[0])||void 0===n?void 0:n.sales_hierarchy_id},j(E,b,w,\"getParentFilterData\",r).then(function(e){e&&e.length>0&&(t[0].data=e.map(function(e){return{value:e.id,label:e.name,checked:!1}}),m(t))}).catch(function(e){_({message:e,type:\"error\"})}))}).catch(function(e){_({message:e,type:\"error\"})}))}).catch(function(e){_({message:e,type:\"error\"})})},k=function(e,t,n){var r={targetForId:n},o=e.map(function(e){return e.value});(function(e,t,n,r,o){var a=B(e,t,n,{apiName:\"getChildFilterData\",payload:r,parentHqIds:o});return F(a)})(E,b,w,r,o).then(function(e){if(e&&e.length>0){var n=e.map(function(e){return{value:e.hq_data_id,label:e.hq_data_name,checked:!1}});m(function(e){var r=function(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}(e);return r[t+1].data=n,r})}}).catch(function(e){_({message:e,type:\"error\"})})},Y=function(){f(M),c()},G=function(){f([]),m([]),c()},z=function(e){return Array.isArray(null==e?void 0:e.data)&&0!==e.data.length?e.data.filter(function(e){return e.checked}).map(function(e){return e.label}):[]};return(0,l.useEffect)(function(){0===g.length&&I()},[]),s().createElement(o.A,null,s().createElement(S.A,{isDrawerOpen:i,anchor:\"top\",upper:!0},s().createElement(o.A,{p:3},s().createElement(D.l1,{initialValues:{},onSubmit:function(){}},function(){return s().createElement(D.lV,{className:\"popupContent\"},s().createElement(O.Ay,{container:!0,columns:12,spacing:1,mb:2},null==g?void 0:g.map(function(e,t){return s().createElement(O.Ay,{item:!0,xs:3,key:e.name},s().createElement(o.A,null,s().createElement(C.A,{variant:\"subtitle2\"},e.name),s().createElement(D.D0,{name:e.name},function(){return function(e,t){var n,r;return s().createElement(P.A,{key:e.name,name:e.name,showClearAll:!0,labelKey:\"label\",options:(null==e||null===(n=e.data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.data:[],onCheckboxChange:function(e){return function(e,t){var n=N().cloneDeep(g);m(n);var r=e.map(function(e){return e.value});x(r),g.length!==t+1&&k(e,t,g[t+1].sales_hierarchy_id)}(e,t)},isDisabled:!(null!=e&&null!==(r=e.data)&&void 0!==r&&r.length),selectedOptions:z(e),defaultLabel:\"Select\",isSortReq:!0})}(e,t)})))})),s().createElement(a.A,{direction:\"row\",justifyContent:\"right\"},s().createElement(o.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},s().createElement(A.A,{variant:\"outlined\",buttonName:T(\"CLEAR_FILTERS\"),onButtonClick:G,fullwidth:!1,color:\"primary\"}),s().createElement(A.A,{variant:\"contained\",buttonName:T(\"APPLY_FILTERS\"),onButtonClick:Y,fullwidth:!1,color:\"primary\"}))),s().createElement(o.A,{onClick:function(){c()},className:\"smart-agro-lite-filter-cross\"},s().createElement(C.A,{className:\"icon-close closeIcon\"})))}))))};function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var K=function(){var e,t=(0,l.useContext)(p.v),n=t.BackOfficeProps,b=n.globalStore.User,_=n.baseurl,C=t.triggerShowLoader,w=t.triggerToastMsg,S=W((0,l.useState)({pageNo:0,pageSize:10}),2),O=S[0],D=S[1],R=u.r4,N=W((0,l.useState)(!1),2),L=N[0],P=N[1],M=W((0,l.useState)(0),2),j=M[0],H=M[1],U=W((0,l.useState)(0),2),G=U[0],z=U[1],q=W((0,l.useState)([]),2),Q=q[0],K=q[1],$=W((0,l.useState)([]),2),X=$[0],J=$[1],Z=W((0,l.useState)([]),2),ee=Z[0],te=Z[1],ne=W((0,l.useState)([]),2),re=ne[0],oe=ne[1],ae=W((0,l.useState)(!1),2),ie=ae[0],le=ae[1],se=W((0,l.useState)([]),2),ue=se[0],ce=se[1],de=function(e){return s().createElement(o.A,{width:\"auto !important\"},s().createElement(\"button\",{type:\"button\",className:\"icon-icon-download table-download-icon\",onKeyDown:function(){},onClick:function(){return function(e,t,n,r,o){return n(!0),(0,k.Ti)(function(e,t,n){var r;return{baseUrl:\"\".concat(t).concat(x.p.GET_OCR_TEMPLATE.replace(\"__OCR_UUID__\",null==n?void 0:n.event_uuid),\"?event_code=\").concat(n.event_code),options:{headers:{\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"Content-Type\":I.LG.octet_stream,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},responseType:\"arraybuffer\"}}}(e,t,o)).then(function(e){(0,g.mN)(e)||r({message:u.JS.OCR_DOWNLOAD_FAILED,type:\"error\"})}).catch(function(e){r({message:e,type:\"error\"})}).finally(function(){n(!1)})}(b,_,C,w,e.data)}}),s().createElement(\"button\",{type:\"button\",className:\"icon-img table-edit-icon\",onKeyDown:function(){return pe(e.data)},onClick:function(){return pe(e.data)}}))},pe=function(e){var t={eventUUID:e.event_uuid,eventCode:e.event_code};(function(e,t,n,r){var o=B(e,t,n,{apiName:\"getOCRImages\",eventUUID:r.eventUUID,eventCode:r.eventCode});return F(o)})(b,_,C,t).then(function(e){var t;(null==e||null===(t=e.event_ocr_images)||void 0===t?void 0:t.length)>0&&fe(null==e?void 0:e.event_ocr_images),le(!0)}).catch(function(e){w({message:e,type:\"error\"})})},fe=function(e){var t=[];e.map(function(e){t.push(e.image_url)}),ce(t)},ge=function(e){e.data.forEach(function(e){e.event_date_time=(0,f.Yq)(e.event_date_time,\"DD-MM-YYYY\")}),oe(e.data),H(null==e?void 0:e.totalPageCount),z(null==e?void 0:e.totalElements)};return(0,l.useEffect)(function(){D(function(e){return V(V({},e),{},{pageNo:0})})},[ee]),(0,l.useEffect)(function(){var e;e={sort:R,filter:X,pageNo:O.pageNo,pageSize:O.pageSize,head_quarter_ids:ee},function(e,t,n,r){var o=B(e,t,n,{apiName:\"getOCRListData\",payload:r});return(0,g.AT)(\"post\",o,!0)}(b,_,C,e).then(function(e){var t;(null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0?ge(e):(oe([]),z(0))}).catch(function(e){w({message:e,type:\"error\"})})},[O,X,ee]),s().createElement(s().Fragment,null,s().createElement(E.X,null,s().createElement(o.A,null,s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,null,s().createElement(v.A,{routePathName:[{name:d.F_.Events,path:d.fp.Events},{name:d.F_.OCREvents,path:d.fp.OCREvents}]}))),s().createElement(T,{isDrawerOpen:ie,documents:ue,onRequestClose:function(){ce([]),le(!1)}}),s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,{mt:2},s().createElement(y.A,{onSearchValueChange:function(e){return function(e){if(e){var t=[{field:\"eventCode\",operator:\"LIKE\",value:e.toLowerCase().trim()}];D(function(e){return V(V({},e),{},{pageNo:0})}),J([].concat(t))}else J([])}(e)},placeholderText:(0,i.t)(\"SEARCH\"),searchValue:\"\",searchBasedOn:u.JS.OCR_SEARCH_COLUMNS})),s().createElement(a.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},s().createElement(A.A,{buttonName:null!==(e=(0,i.t)(\"FILTERS\"))&&void 0!==e?e:\"Filters\",className:(0,g.F7)(ee),fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){P(!0)}}))),s().createElement(r.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(m.A,{rows:re,columnDefs:c.Xp,frameworkComponents:{EditActionComponent:function(e){return de(e)}}})),s().createElement(h.A,{totalPageCount:Math.ceil(j),pageNo:O.pageNo,totalElements:G,onPageChange:function(e){D(function(t){return V(V({},t),{},{pageNo:Number(e)})})}}))),L&&s().createElement(Y,{isFilterOpen:L,onRequestClose:function(){return P(!1)},setHqDataIds:te,ocrFilterLabels:Q,setOCRFilterLabels:K}))};const $=(0,l.memo)(K)},69085:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(44213);r({target:\"Object\",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},69204:(e,t,n)=>{var r=n(63278),o=n(54947);e.exports=function(e){return r(o(e))}},69264:e=>{e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},69330:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"oc-lnc\",{months:{standalone:\"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre\".split(\"_\"),format:\"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\"_\"),isFormat:/D[oD]?(\\s)+MMMM/},monthsShort:\"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte\".split(\"_\"),weekdaysShort:\"dg._dl._dm._dc._dj._dv._ds.\".split(\"_\"),weekdaysMin:\"dg_dl_dm_dc_dj_dv_ds\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM [de] YYYY\",ll:\"D MMM YYYY\",LLL:\"D MMMM [de] YYYY [a] H:mm\",lll:\"D MMM YYYY, H:mm\",LLLL:\"dddd D MMMM [de] YYYY [a] H:mm\",llll:\"ddd D MMM YYYY, H:mm\"},calendar:{sameDay:\"[uèi a] LT\",nextDay:\"[deman a] LT\",nextWeek:\"dddd [a] LT\",lastDay:\"[ièr a] LT\",lastWeek:\"dddd [passat a] LT\",sameElse:\"L\"},relativeTime:{future:\"d'aquí %s\",past:\"fa %s\",s:\"unas segondas\",ss:\"%d segondas\",m:\"una minuta\",mm:\"%d minutas\",h:\"una ora\",hh:\"%d oras\",d:\"un jorn\",dd:\"%d jorns\",M:\"un mes\",MM:\"%d meses\",y:\"un an\",yy:\"%d ans\"},dayOfMonthOrdinalParse:/\\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?\"r\":2===e?\"n\":3===e?\"r\":4===e?\"t\":\"è\";return\"w\"!==t&&\"W\"!==t||(n=\"a\"),e+n},week:{dow:1,doy:4}})}(n(95093))},69383:e=>{\"use strict\";e.exports=Error},69532:function(e,t,n){!function(e){\"use strict\";var t={ss:\"sekundes_sekundēm_sekunde_sekundes\".split(\"_\"),m:\"minūtes_minūtēm_minūte_minūtes\".split(\"_\"),mm:\"minūtes_minūtēm_minūte_minūtes\".split(\"_\"),h:\"stundas_stundām_stunda_stundas\".split(\"_\"),hh:\"stundas_stundām_stunda_stundas\".split(\"_\"),d:\"dienas_dienām_diena_dienas\".split(\"_\"),dd:\"dienas_dienām_diena_dienas\".split(\"_\"),M:\"mēneša_mēnešiem_mēnesis_mēneši\".split(\"_\"),MM:\"mēneša_mēnešiem_mēnesis_mēneši\".split(\"_\"),y:\"gada_gadiem_gads_gadi\".split(\"_\"),yy:\"gada_gadiem_gads_gadi\".split(\"_\")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+\" \"+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale(\"lv\",{months:\"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris\".split(\"_\"),monthsShort:\"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec\".split(\"_\"),weekdays:\"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena\".split(\"_\"),weekdaysShort:\"Sv_P_O_T_C_Pk_S\".split(\"_\"),weekdaysMin:\"Sv_P_O_T_C_Pk_S\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY.\",LL:\"YYYY. [gada] D. MMMM\",LLL:\"YYYY. [gada] D. MMMM, HH:mm\",LLLL:\"YYYY. [gada] D. MMMM, dddd, HH:mm\"},calendar:{sameDay:\"[Šodien pulksten] LT\",nextDay:\"[Rīt pulksten] LT\",nextWeek:\"dddd [pulksten] LT\",lastDay:\"[Vakar pulksten] LT\",lastWeek:\"[Pagājušā] dddd [pulksten] LT\",sameElse:\"L\"},relativeTime:{future:\"pēc %s\",past:\"pirms %s\",s:function(e,t){return t?\"dažas sekundes\":\"dažām sekundēm\"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},69539:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).filter,a=n(29948),i=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"filter\",function(e){var t=o(i(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)})},69565:(e,t,n)=>{\"use strict\";var r=n(40616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},69675:e=>{\"use strict\";e.exports=TypeError},69982:(e,t,n)=>{\"use strict\";e.exports=n(7463)},70080:(e,t,n)=>{var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},70081:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(79306),a=n(28551),i=n(16823),l=n(50851),s=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return a(r(n,e));throw new s(i(e)+\" is not iterable\")}},70217:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"gd\",{months:[\"Am Faoilleach\",\"An Gearran\",\"Am Màrt\",\"An Giblean\",\"An Cèitean\",\"An t-Ògmhios\",\"An t-Iuchar\",\"An Lùnastal\",\"An t-Sultain\",\"An Dàmhair\",\"An t-Samhain\",\"An Dùbhlachd\"],monthsShort:[\"Faoi\",\"Gear\",\"Màrt\",\"Gibl\",\"Cèit\",\"Ògmh\",\"Iuch\",\"Lùn\",\"Sult\",\"Dàmh\",\"Samh\",\"Dùbh\"],monthsParseExact:!0,weekdays:[\"Didòmhnaich\",\"Diluain\",\"Dimàirt\",\"Diciadain\",\"Diardaoin\",\"Dihaoine\",\"Disathairne\"],weekdaysShort:[\"Did\",\"Dil\",\"Dim\",\"Dic\",\"Dia\",\"Dih\",\"Dis\"],weekdaysMin:[\"Dò\",\"Lu\",\"Mà\",\"Ci\",\"Ar\",\"Ha\",\"Sa\"],longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[An-diugh aig] LT\",nextDay:\"[A-màireach aig] LT\",nextWeek:\"dddd [aig] LT\",lastDay:\"[An-dè aig] LT\",lastWeek:\"dddd [seo chaidh] [aig] LT\",sameElse:\"L\"},relativeTime:{future:\"ann an %s\",past:\"bho chionn %s\",s:\"beagan diogan\",ss:\"%d diogan\",m:\"mionaid\",mm:\"%d mionaidean\",h:\"uair\",hh:\"%d uairean\",d:\"latha\",dd:\"%d latha\",M:\"mìos\",MM:\"%d mìosan\",y:\"bliadhna\",yy:\"%d bliadhna\"},dayOfMonthOrdinalParse:/\\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?\"d\":e%10==2?\"na\":\"mh\")},week:{dow:1,doy:4}})}(n(95093))},70259:(e,t,n)=>{\"use strict\";var r=n(34376),o=n(26198),a=n(96837),i=n(76080),l=function(e,t,n,s,u,c,d,p){for(var f,g,h=u,m=0,v=!!d&&i(d,p);m<s;)m in n&&(f=v?v(n[m],m,t):n[m],c>0&&r(f)?(g=o(f),h=l(e,t,f,g,h,c-1)-1):(a(h+1),e[h]=f),h++),m++;return h};e.exports=l},70380:(e,t,n)=>{\"use strict\";n.d(t,{AV:()=>u,Ax:()=>h,Cp:()=>g,Gc:()=>L,HW:()=>_,Hf:()=>p,KG:()=>N,NO:()=>b,Nq:()=>C,SK:()=>v,Si:()=>T,Wd:()=>y,Yq:()=>m,_M:()=>D,aF:()=>E,c1:()=>i,dE:()=>w,m_:()=>R,ny:()=>d,pe:()=>x,rL:()=>s,rN:()=>O,tj:()=>f,u6:()=>A,ux:()=>S,vd:()=>c,wv:()=>M,yH:()=>P,zX:()=>l}),n(28706),n(23418),n(15086),n(1688),n(23288),n(26099),n(38781),n(47764);var r,o=n(95093),a=n.n(o),i=function(e){return a()().subtract(e,\"years\")},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"MM/DD/YYYY\";return a()((new Date).setMonth((new Date).getMonth()-e)).format(t)},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"MM/DD/YYYY\";return a()(new Date(t).setMonth(new Date(t).getMonth()+e)).format(n)},u=function(e){return a()().format(e)},c=function(e){return a()().isValid(null==e?void 0:e[1])},d=function(e,t){return a()(e).isSame(t)},p=function(e){return a()(e.toUpperCase(),\"MMMM\").format(\"MM\")},f=function(e){return a()().add(e,\"month\").format(\"MMMM\")},g=function(e){return a()().add(e,\"year\").format(\"YYYY\")},h={currentDate:a()().format(\"MM/DD/YYYY\"),currentYear:a()().year(),currentMonth:a()().month()+1,startDateOfMonth:a()().startOf(\"month\").format(\"MM/DD/YYYY\"),startDateOfYear:a()().startOf(\"year\").format(\"MM/DD/YYYY\"),lastMonthOfYear:a()().endOf(\"year\").month()+1,minimumDateOfYear:a()(\"01/01\").year(a()().year()).format(\"MM/DD/YYYY\"),maximumDateOfYear:a()(\"12/31\").year(a()().year()).format(\"MM/DD/YYYY\"),todayDate:a()().startOf(\"day\").toDate(),currentUppercaseMonth:null===(r=a()(new Date))||void 0===r||null===(r=r.format(\"MMMM\"))||void 0===r?void 0:r.toUpperCase()},m=function(e,t,n){return n?a()(e,n).format(t):t?a()(e).format(t):a()(e)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"DD MMM YYYY hh:mm:ss a\";return a()(a().utc(e).toDate()).local().format(t)},A=function(e,t){return a()(e).utc().format(t)},y=function(e,t,n,r){var o=a()(e)[\"start\"===n?\"startOf\":\"endOf\"](t);return r?o.format(r):o.toString()},E=function(e,t){return\"end\"===t?a()().subtract(e-1,\"months\").startOf(\"month\").subtract(1,\"day\").format(\"YYYY-MM-DD\"):a()().subtract(e,\"months\").startOf(\"month\").format(\"YYYY-MM-DD\")},b=function(e){return Array.from({length:e},function(t,n){return a()().add(n-e+1,\"month\").format(\"MMM YYYY\")})},_=function(e,t){return\"end\"===t?a()(e,\"MMM YYYY\").endOf(\"month\").format(\"YYYY-MM-DD hh:mm:ss\"):a()(e,\"MMM YYYY\").set({hours:0,minutes:0,seconds:0}).format(\"YYYY-MM-DD 00:00:00\")},C=function(e){return a()(e,\"DD-MMM\").year(a()().year()).format(\"DD-MMM-YYYY\")},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"MM/DD/YYYY\";return!(!e[0]||!e[1])&&a()(e[1],t).isSameOrBefore(a()(e[0],t).format(t))},S=function(e,t){return t?a()(e,t,!0).isValid():a()(e).isValid()},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"MM/DD/YYYY\";return a()(t,n).isSameOrAfter(a()(e,n))},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"MM/DD/YYYY\";return a()(e,t).isSameOrAfter(a()().format(t))},D=function(e,t,n){return a()(e).isBetween(t,n)},R=function(e){return!(!e[0]||!e[1])&&a()(e[1],\"MM/DD/YYYY\").isBefore(a()(e[0],\"MM/DD/YYYY\").format(\"MM/DD/YYYY\"))},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"DD MMM YYYY | h:mm:ss A\";return a().utc(e).local().format(t)},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"MM/DD/YYYY\";return a()(t,n).isAfter(a()(e,n))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"day\",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"subtract\",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"YYYY-MM-DD\",i=a()(e);if(!i.isValid())throw new Error(\"Invalid date format\");return(\"subtract\"===r?i.subtract(t,n):i.add(t,n)).format(o)},M=function(e){return a()().weekday(e).format(\"ddd\")},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"HH:mm:ss\";return a()(e,t)}},70414:e=>{\"use strict\";e.exports=Math.round},70453:(e,t,n)=>{\"use strict\";var r,o=n(79612),a=n(69383),i=n(41237),l=n(79290),s=n(79538),u=n(58068),c=n(69675),d=n(35345),p=n(71514),f=n(58968),g=n(6188),h=n(68002),m=n(75880),v=n(70414),A=n(73093),y=Function,E=function(e){try{return y('\"use strict\"; return ('+e+\").constructor;\")()}catch(e){}},b=n(75795),_=n(30655),C=function(){throw new c},w=b?function(){try{return C}catch(e){try{return b(arguments,\"callee\").get}catch(e){return C}}}():C,S=n(64039)(),T=n(93628),O=n(71064),D=n(48648),R=n(11002),N=n(10076),L={},P=\"undefined\"!=typeof Uint8Array&&T?T(Uint8Array):r,M={__proto__:null,\"%AggregateError%\":\"undefined\"==typeof AggregateError?r:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":\"undefined\"==typeof ArrayBuffer?r:ArrayBuffer,\"%ArrayIteratorPrototype%\":S&&T?T([][Symbol.iterator]()):r,\"%AsyncFromSyncIteratorPrototype%\":r,\"%AsyncFunction%\":L,\"%AsyncGenerator%\":L,\"%AsyncGeneratorFunction%\":L,\"%AsyncIteratorPrototype%\":L,\"%Atomics%\":\"undefined\"==typeof Atomics?r:Atomics,\"%BigInt%\":\"undefined\"==typeof BigInt?r:BigInt,\"%BigInt64Array%\":\"undefined\"==typeof BigInt64Array?r:BigInt64Array,\"%BigUint64Array%\":\"undefined\"==typeof BigUint64Array?r:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":\"undefined\"==typeof DataView?r:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":a,\"%eval%\":eval,\"%EvalError%\":i,\"%Float16Array%\":\"undefined\"==typeof Float16Array?r:Float16Array,\"%Float32Array%\":\"undefined\"==typeof Float32Array?r:Float32Array,\"%Float64Array%\":\"undefined\"==typeof Float64Array?r:Float64Array,\"%FinalizationRegistry%\":\"undefined\"==typeof FinalizationRegistry?r:FinalizationRegistry,\"%Function%\":y,\"%GeneratorFunction%\":L,\"%Int8Array%\":\"undefined\"==typeof Int8Array?r:Int8Array,\"%Int16Array%\":\"undefined\"==typeof Int16Array?r:Int16Array,\"%Int32Array%\":\"undefined\"==typeof Int32Array?r:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":S&&T?T(T([][Symbol.iterator]())):r,\"%JSON%\":\"object\"==typeof JSON?JSON:r,\"%Map%\":\"undefined\"==typeof Map?r:Map,\"%MapIteratorPrototype%\":\"undefined\"!=typeof Map&&S&&T?T((new Map)[Symbol.iterator]()):r,\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":o,\"%Object.getOwnPropertyDescriptor%\":b,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":\"undefined\"==typeof Promise?r:Promise,\"%Proxy%\":\"undefined\"==typeof Proxy?r:Proxy,\"%RangeError%\":l,\"%ReferenceError%\":s,\"%Reflect%\":\"undefined\"==typeof Reflect?r:Reflect,\"%RegExp%\":RegExp,\"%Set%\":\"undefined\"==typeof Set?r:Set,\"%SetIteratorPrototype%\":\"undefined\"!=typeof Set&&S&&T?T((new Set)[Symbol.iterator]()):r,\"%SharedArrayBuffer%\":\"undefined\"==typeof SharedArrayBuffer?r:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":S&&T?T(\"\"[Symbol.iterator]()):r,\"%Symbol%\":S?Symbol:r,\"%SyntaxError%\":u,\"%ThrowTypeError%\":w,\"%TypedArray%\":P,\"%TypeError%\":c,\"%Uint8Array%\":\"undefined\"==typeof Uint8Array?r:Uint8Array,\"%Uint8ClampedArray%\":\"undefined\"==typeof Uint8ClampedArray?r:Uint8ClampedArray,\"%Uint16Array%\":\"undefined\"==typeof Uint16Array?r:Uint16Array,\"%Uint32Array%\":\"undefined\"==typeof Uint32Array?r:Uint32Array,\"%URIError%\":d,\"%WeakMap%\":\"undefined\"==typeof WeakMap?r:WeakMap,\"%WeakRef%\":\"undefined\"==typeof WeakRef?r:WeakRef,\"%WeakSet%\":\"undefined\"==typeof WeakSet?r:WeakSet,\"%Function.prototype.call%\":N,\"%Function.prototype.apply%\":R,\"%Object.defineProperty%\":_,\"%Object.getPrototypeOf%\":O,\"%Math.abs%\":p,\"%Math.floor%\":f,\"%Math.max%\":g,\"%Math.min%\":h,\"%Math.pow%\":m,\"%Math.round%\":v,\"%Math.sign%\":A,\"%Reflect.getPrototypeOf%\":D};if(T)try{null.error}catch(e){var x=T(T(e));M[\"%Error.prototype%\"]=x}var I=function e(t){var n;if(\"%AsyncFunction%\"===t)n=E(\"async function () {}\");else if(\"%GeneratorFunction%\"===t)n=E(\"function* () {}\");else if(\"%AsyncGeneratorFunction%\"===t)n=E(\"async function* () {}\");else if(\"%AsyncGenerator%\"===t){var r=e(\"%AsyncGeneratorFunction%\");r&&(n=r.prototype)}else if(\"%AsyncIteratorPrototype%\"===t){var o=e(\"%AsyncGenerator%\");o&&T&&(n=T(o.prototype))}return M[t]=n,n},k={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},B=n(66743),F=n(9957),j=B.call(N,Array.prototype.concat),H=B.call(R,Array.prototype.splice),U=B.call(N,String.prototype.replace),Y=B.call(N,String.prototype.slice),G=B.call(N,RegExp.prototype.exec),z=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,V=/\\\\(\\\\)?/g,q=function(e,t){var n,r=e;if(F(k,r)&&(r=\"%\"+(n=k[r])[0]+\"%\"),F(M,r)){var o=M[r];if(o===L&&(o=I(r)),void 0===o&&!t)throw new c(\"intrinsic \"+e+\" exists, but is not available. Please file an issue!\");return{alias:n,name:r,value:o}}throw new u(\"intrinsic \"+e+\" does not exist!\")};e.exports=function(e,t){if(\"string\"!=typeof e||0===e.length)throw new c(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&\"boolean\"!=typeof t)throw new c('\"allowMissing\" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new u(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var n=function(e){var t=Y(e,0,1),n=Y(e,-1);if(\"%\"===t&&\"%\"!==n)throw new u(\"invalid intrinsic syntax, expected closing `%`\");if(\"%\"===n&&\"%\"!==t)throw new u(\"invalid intrinsic syntax, expected opening `%`\");var r=[];return U(e,z,function(e,t,n,o){r[r.length]=n?U(o,V,\"$1\"):t||e}),r}(e),r=n.length>0?n[0]:\"\",o=q(\"%\"+r+\"%\",t),a=o.name,i=o.value,l=!1,s=o.alias;s&&(r=s[0],H(n,j([0,1],s)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],g=Y(f,0,1),h=Y(f,-1);if(('\"'===g||\"'\"===g||\"`\"===g||'\"'===h||\"'\"===h||\"`\"===h)&&g!==h)throw new u(\"property names with quotes must have matching quotes\");if(\"constructor\"!==f&&p||(l=!0),F(M,a=\"%\"+(r+=\".\"+f)+\"%\"))i=M[a];else if(null!=i){if(!(f in i)){if(!t)throw new c(\"base intrinsic for \"+e+\" exists, but the property is not available.\");return}if(b&&d+1>=n.length){var m=b(i,f);i=(p=!!m)&&\"get\"in m&&!(\"originalValue\"in m.get)?m.get:i[f]}else p=F(i,f),i=i[f];p&&!l&&(M[a]=i)}}return i}},70460:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>_}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(25440),n(62953);var r=n(28161),o=n(90815),a=n(14073),i=n(56203),l=n(81970),s=n.n(l),u=n(8085),c=n(96348),d=n(17630),p=n(47225),f=n(27305),g=n(92416),h=n(15664),m=n(20623),v=n(1845),A=n(42603),y=n(72181);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _=function(e){var t=e.RBACControls,n=(0,f.w)(t),b=n.hasCreateAccess,_=n.hasUpdateAccess,C=(0,l.useContext)(p.v),w=C.BackOfficeProps,S=w.globalStore.User,T=w.baseurl,O=C.triggerShowLoader,D=E((0,l.useState)(!1),2),R=D[0],N=D[1],L=E((0,l.useState)(\"\"),2),P=L[0],M=L[1],x=E((0,l.useState)(),2),I=x[0],k=x[1];(0,l.useEffect)(function(){B()},[P]);var B=function(){var e,t={};t.domain=T,t.endPoint=u.p.GET_SUPPORT_FAQ_DATA.replace(\"__BUID__\",S.selectedBusinessUnit.bu_id),t.customHeaders={\"country-code\":S.selectedCountry.countryCode,Authorization:\"Bearer \".concat(S.AccessToken)},t.triggerLoader=O,null===(e=(0,v.ML)(t))||void 0===e||e.then(function(e){k(e.id),401===(null==e?void 0:e.statusCode)?M((0,i.t)(\"NO_DATA\")):M(null==e?void 0:e.faq)}).catch(function(e){})};return s().createElement(y.t,null,s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,null,s().createElement(g.A,{routePathName:[{name:c.F_.Support,path:c.fp.HelpAndSupport},{name:c.F_.Faq,path:c.fp.Faq}]}))),s().createElement(o.A,{direction:\"row\",alignItems:\"end\",justifyContent:\"space-between\",mb:2},s().createElement(a.A,{variant:\"h5\",component:\"p\",className:\"title\",color:d.w.palette.text.primary,fontFamily:\"NotoSans-Regular\",fontWeight:\"600\"},(0,i.t)(\"FAQS\")),!R&&s().createElement(h.A,{onButtonClick:function(){N(!0)},variant:\"contained\",startIcon:s().createElement(\"span\",{className:\"icon-pencil btn-icon\"}),buttonName:(0,i.t)(\"EDIT\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!b&&!_})),R?s().createElement(A.A,{setEditContent:N,type:\"faq\",id:I,data:P,getData:function(){B()}}):s().createElement(r.A,null,s().createElement(m.A,{editorHtml:P,showHtmlOptions:!1}))))}},70511:(e,t,n)=>{\"use strict\";var r=n(19167),o=n(39297),a=n(1951),i=n(24913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},70597:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(78227),a=n(39519),i=o(\"species\");e.exports=function(e){return a>=51||!r(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},70695:(e,t,n)=>{var r=n(78096),o=n(72428),a=n(56449),i=n(3656),l=n(30361),s=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&o(e),d=!n&&!c&&i(e),p=!n&&!c&&!d&&s(e),f=n||c||d||p,g=f?r(e.length,String):[],h=g.length;for(var m in e)!t&&!u.call(e,m)||f&&(\"length\"==m||d&&(\"offset\"==m||\"parent\"==m)||p&&(\"buffer\"==m||\"byteLength\"==m||\"byteOffset\"==m)||l(m,h))||g.push(m);return g}},71023:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s,v:()=>l});var r=n(58168),o=n(38413),a=n(31609),i=n(51175);function l(e){return(0,a.Ay)(\"MuiOutlinedInput\",e)}const s=(0,r.A)({},i.A,(0,o.A)(\"MuiOutlinedInput\",[\"root\",\"notchedOutline\",\"input\"]))},71040:(e,t,n)=>{var r=n(88404),o=n(22524).each;function a(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}a.prototype={constuctor:a,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?\"on\":\"off\";o(this.handlers,function(t){t[e]()})}},e.exports=a},71064:(e,t,n)=>{\"use strict\";var r=n(79612);e.exports=r.getPrototypeOf||null},71071:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>ro}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(60538),i=n(81970),l=n.n(i),s=n(8085),u=n(37998),c=n(96348),d=n(27305),p=n(47225),f=n(56254),g=n(43605),h=n(92416),m=(n(28706),n(74423),n(21699),n(14073)),v=n(34195),A=n(17630),y=n(70380),E=n(36874),b=n(88084),_=n(56203),C=n(15664),w=n(76906),S=n(64121),T=n(28152),O=n(62809),D=n(10917),R=n(5556),N=n.n(R),L=n(85505),P=n(9506),M=n(50539),x=n(27714),I=n(40961);function k(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function B(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function F(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function j(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error(\"Can only polyfill class components\");if(\"function\"!=typeof e.getDerivedStateFromProps&&\"function\"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if(\"function\"==typeof t.componentWillMount?n=\"componentWillMount\":\"function\"==typeof t.UNSAFE_componentWillMount&&(n=\"UNSAFE_componentWillMount\"),\"function\"==typeof t.componentWillReceiveProps?r=\"componentWillReceiveProps\":\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&(r=\"UNSAFE_componentWillReceiveProps\"),\"function\"==typeof t.componentWillUpdate?o=\"componentWillUpdate\":\"function\"==typeof t.UNSAFE_componentWillUpdate&&(o=\"UNSAFE_componentWillUpdate\"),null!==n||null!==r||null!==o){var a=e.displayName||e.name,i=\"function\"==typeof e.getDerivedStateFromProps?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";throw Error(\"Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n\"+a+\" uses \"+i+\" but also contains the following legacy lifecycles:\"+(null!==n?\"\\n  \"+n:\"\")+(null!==r?\"\\n  \"+r:\"\")+(null!==o?\"\\n  \"+o:\"\")+\"\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://fb.me/react-async-component-lifecycle-hooks\")}if(\"function\"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=k,t.componentWillReceiveProps=B),\"function\"==typeof t.getSnapshotBeforeUpdate){if(\"function\"!=typeof t.componentDidUpdate)throw new Error(\"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype\");t.componentWillUpdate=F;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}function H(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}k.__suppressDeprecationWarning=!0,B.__suppressDeprecationWarning=!0,F.__suppressDeprecationWarning=!0;var U=n(32223),Y=n.n(U);function G(e,t,n,r){var o=I.unstable_batchedUpdates?function(e){I.unstable_batchedUpdates(n,e)}:n;return Y()(e,t,o,r)}function z(e){return z=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},z(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},q(e,t)}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}var Q=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(i,e);var t,n,r,o,a=(r=i,o=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=W(r);if(o){var n=W(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||\"object\"!==z(t)&&\"function\"!=typeof t?function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e):t}(this,e)});function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).removeContainer=function(){e.container&&(I.unmountComponentAtNode(e.container),e.container.parentNode.removeChild(e.container),e.container=null)},e.renderComponent=function(t,n){var r=e.props,o=r.visible,a=r.getComponent,i=r.forceRender,l=r.getContainer,s=r.parent;(o||s._component||i)&&(e.container||(e.container=l()),I.unstable_renderSubtreeIntoContainer(s,a(t),e.container,function(){n&&n.call(this)}))},e}return t=i,(n=[{key:\"componentDidMount\",value:function(){this.props.autoMount&&this.renderComponent()}},{key:\"componentDidUpdate\",value:function(){this.props.autoMount&&this.renderComponent()}},{key:\"componentWillUnmount\",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:\"render\",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}])&&V(t.prototype,n),i}(l().Component);function K(e){return K=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},K(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t){return X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X(e,t)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}Q.propTypes={autoMount:N().bool,autoDestroy:N().bool,visible:N().bool,forceRender:N().bool,parent:N().any,getComponent:N().func.isRequired,getContainer:N().func.isRequired,children:N().func.isRequired},Q.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};var Z=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(i,e);var t,n,r,o,a=(r=i,o=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=J(r);if(o){var n=J(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||\"object\"!==K(t)&&\"function\"!=typeof t?function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e):t}(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,i),a.apply(this,arguments)}return t=i,(n=[{key:\"componentDidMount\",value:function(){this.createContainer()}},{key:\"componentDidUpdate\",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:\"componentWillUnmount\",value:function(){this.removeContainer()}},{key:\"createContainer\",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:\"removeContainer\",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:\"render\",value:function(){return this._container?I.createPortal(this.props.children,this._container):null}}])&&$(t.prototype,n),i}(l().Component);Z.propTypes={getContainer:N().func.isRequired,children:N().node.isRequired,didUpdate:N().func};var ee=n(46942),te=n.n(ee);function ne(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function re(e,t){this[e]=t}var oe,ae=n(97588);function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach(function(t){ue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e){return se=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},se(e)}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce={Webkit:\"-webkit-\",Moz:\"-moz-\",ms:\"-ms-\",O:\"-o-\"};function de(){if(void 0!==oe)return oe;oe=\"\";var e=document.createElement(\"p\").style;for(var t in ce)t+\"Transform\"in e&&(oe=t);return oe}function pe(){return de()?\"\".concat(de(),\"TransitionProperty\"):\"transitionProperty\"}function fe(){return de()?\"\".concat(de(),\"Transform\"):\"transform\"}function ge(e,t){var n=pe();n&&(e.style[n]=t,\"transitionProperty\"!==n&&(e.style.transitionProperty=t))}function he(e,t){var n=fe();n&&(e.style[n]=t,\"transform\"!==n&&(e.style.transform=t))}var me,ve=/matrix\\((.*)\\)/,Ae=/matrix3d\\((.*)\\)/;function ye(e){var t=e.style.display;e.style.display=\"none\",e.offsetHeight,e.style.display=t}function Ee(e,t,n){var r=n;if(\"object\"!==se(t))return void 0!==r?(\"number\"==typeof r&&(r=\"\".concat(r,\"px\")),void(e.style[t]=r)):me(e,t);for(var o in t)t.hasOwnProperty(o)&&Ee(e,o,t[o])}function be(e,t){var n=e[\"page\".concat(t?\"Y\":\"X\",\"Offset\")],r=\"scroll\".concat(t?\"Top\":\"Left\");if(\"number\"!=typeof n){var o=e.document;\"number\"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function _e(e){return be(e)}function Ce(e){return be(e,!0)}function we(e){var t=function(e){var t,n,r,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=_e(r),t.top+=Ce(r),t}function Se(e){return null!=e&&e==e.window}function Te(e){return Se(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Oe=new RegExp(\"^(\".concat(/[\\-+]?(?:\\d*\\.|)\\d+(?:[eE][\\-+]?\\d+|)/.source,\")(?!px)[a-z%]+$\"),\"i\"),De=/^(top|right|bottom|left)$/,Re=\"currentStyle\",Ne=\"runtimeStyle\",Le=\"left\";function Pe(e,t){return\"left\"===e?t.useCssRight?\"right\":e:t.useCssBottom?\"bottom\":e}function Me(e){return\"left\"===e?\"right\":\"right\"===e?\"left\":\"top\"===e?\"bottom\":\"bottom\"===e?\"top\":void 0}function xe(e,t,n){\"static\"===Ee(e,\"position\")&&(e.style.position=\"relative\");var r=-999,o=-999,a=Pe(\"left\",n),i=Pe(\"top\",n),l=Me(a),s=Me(i);\"left\"!==a&&(r=999),\"top\"!==i&&(o=999);var u,c=\"\",d=we(e);(\"left\"in t||\"top\"in t)&&(c=(u=e).style.transitionProperty||u.style[pe()]||\"\",ge(e,\"none\")),\"left\"in t&&(e.style[l]=\"\",e.style[a]=\"\".concat(r,\"px\")),\"top\"in t&&(e.style[s]=\"\",e.style[i]=\"\".concat(o,\"px\")),ye(e);var p=we(e),f={};for(var g in t)if(t.hasOwnProperty(g)){var h=Pe(g,n),m=\"left\"===g?r:o,v=d[g]-p[g];f[h]=h===g?m+v:m-v}Ee(e,f),ye(e),(\"left\"in t||\"top\"in t)&&ge(e,c);var A={};for(var y in t)if(t.hasOwnProperty(y)){var E=Pe(y,n),b=t[y]-d[y];A[E]=y===E?f[E]+b:f[E]-b}Ee(e,A)}function Ie(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ke(e){return\"border-box\"===me(e,\"boxSizing\")}\"undefined\"!=typeof window&&(me=window.getComputedStyle?function(e,t,n){var r=n,o=\"\",a=Te(e);return(r=r||a.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[Re]&&e[Re][t];if(Oe.test(n)&&!De.test(t)){var r=e.style,o=r[Le],a=e[Ne][Le];e[Ne][Le]=e[Re][Le],r[Le]=\"fontSize\"===t?\"1em\":n||0,n=r.pixelLeft+\"px\",r[Le]=o,e[Ne][Le]=a}return\"\"===n?\"auto\":n});var Be=[\"margin\",\"border\",\"padding\"];function Fe(e,t,n){var r,o,a,i=0;for(o=0;o<t.length;o++)if(r=t[o])for(a=0;a<n.length;a++){var l;l=\"border\"===r?\"\".concat(r).concat(n[a],\"Width\"):r+n[a],i+=parseFloat(me(e,l))||0}return i}var je={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function He(e,t,n){var r=n;if(Se(e))return\"width\"===t?je.viewportWidth(e):je.viewportHeight(e);if(9===e.nodeType)return\"width\"===t?je.docWidth(e):je.docHeight(e);var o=\"width\"===t?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],a=\"width\"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),i=ke(e),l=0;(null==a||a<=0)&&(a=void 0,(null==(l=me(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=Math.floor(parseFloat(l))||0),void 0===r&&(r=i?1:-1);var s=void 0!==a||i,u=a||l;return-1===r?s?u-Fe(e,[\"border\",\"padding\"],o):l:s?1===r?u:u+(2===r?-Fe(e,[\"border\"],o):Fe(e,[\"margin\"],o)):l+Fe(e,Be.slice(r),o)}Ie([\"Width\",\"Height\"],function(e){je[\"doc\".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement[\"scroll\".concat(e)],n.body[\"scroll\".concat(e)],je[\"viewport\".concat(e)](n))},je[\"viewport\".concat(e)]=function(t){var n=\"client\".concat(e),r=t.document,o=r.body,a=r.documentElement[n];return\"CSS1Compat\"===r.compatMode&&a||o&&o[n]||a}});var Ue={position:\"absolute\",visibility:\"hidden\",display:\"block\"};function Ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=He.apply(void 0,t):function(e,n){var o,a={},i=e.style;for(o in n)n.hasOwnProperty(o)&&(a[o]=i[o],i[o]=n[o]);for(o in function(){r=He.apply(void 0,t)}.call(e),n)n.hasOwnProperty(o)&&(i[o]=a[o])}(o,Ue),r}function Ge(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Ie([\"width\",\"height\"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);je[\"outer\".concat(t)]=function(t,n){return t&&Ye(t,e,n?0:1)};var n=\"width\"===e?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"];je[e]=function(t,r){var o=r;return void 0!==o?t?(ke(t)&&(o+=Fe(t,[\"padding\",\"border\"],n)),Ee(t,e,o)):void 0:t&&Ye(t,e,-1)}});var ze={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Te,offset:function(e,t,n){if(void 0===t)return we(e);!function(e,t,n){if(n.ignoreShake){var r=we(e),o=r.left.toFixed(0),a=r.top.toFixed(0),i=t.left.toFixed(0),l=t.top.toFixed(0);if(o===i&&a===l)return}n.useCssRight||n.useCssBottom?xe(e,t,n):n.useCssTransform&&fe()in document.body.style?function(e,t){var n=we(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue(\"transform\")||t.getPropertyValue(fe());if(n&&\"none\"!==n){var r=n.replace(/[^0-9\\-.,]/g,\"\").split(\",\");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};\"left\"in t&&(o.x=r.x+t.left-n.left),\"top\"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue(\"transform\")||n.getPropertyValue(fe());if(r&&\"none\"!==r){var o,a=r.match(ve);a?((o=(a=a[1]).split(\",\").map(function(e){return parseFloat(e,10)}))[4]=t.x,o[5]=t.y,he(e,\"matrix(\".concat(o.join(\",\"),\")\"))):((o=r.match(Ae)[1].split(\",\").map(function(e){return parseFloat(e,10)}))[12]=t.x,o[13]=t.y,he(e,\"matrix3d(\".concat(o.join(\",\"),\")\")))}else he(e,\"translateX(\".concat(t.x,\"px) translateY(\").concat(t.y,\"px) translateZ(0)\"))}(e,o)}(e,t):xe(e,t,n)}(e,t,n||{})},isWindow:Se,each:Ie,css:Ee,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ge,getWindowScrollLeft:function(e){return _e(e)},getWindowScrollTop:function(e){return Ce(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ze.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ge(ze,je);var Ve=ze.getParent;function qe(e){if(ze.isWindow(e)||9===e.nodeType)return null;var t,n=ze.getDocument(e).body,r=ze.css(e,\"position\");if(\"fixed\"!==r&&\"absolute\"!==r)return\"html\"===e.nodeName.toLowerCase()?null:Ve(e);for(t=Ve(e);t&&t!==n&&9!==t.nodeType;t=Ve(t))if(\"static\"!==(r=ze.css(t,\"position\")))return t;return null}var We=ze.getParent;function Qe(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=qe(e),o=ze.getDocument(e),a=o.defaultView||o.parentWindow,i=o.body,l=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf(\"MSIE\")&&0===r.clientWidth||r===i||r===l||\"visible\"===ze.css(r,\"overflow\")){if(r===i||r===l)break}else{var s=ze.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=qe(r)}var u=null;ze.isWindow(e)||9===e.nodeType||(u=e.style.position,\"absolute\"===ze.css(e,\"position\")&&(e.style.position=\"fixed\"));var c=ze.getWindowScrollLeft(a),d=ze.getWindowScrollTop(a),p=ze.viewportWidth(a),f=ze.viewportHeight(a),g=l.scrollWidth,h=l.scrollHeight,m=window.getComputedStyle(i);if(\"hidden\"===m.overflowX&&(g=a.innerWidth),\"hidden\"===m.overflowY&&(h=a.innerHeight),e.style&&(e.style.position=u),t||function(e){if(ze.isWindow(e)||9===e.nodeType)return!1;var t=ze.getDocument(e),n=t.body,r=null;for(r=We(e);r&&r!==n&&r!==t;r=We(r))if(\"fixed\"===ze.css(r,\"position\"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+p),n.bottom=Math.min(n.bottom,d+f);else{var v=Math.max(g,c+p);n.right=Math.min(n.right,v);var A=Math.max(h,d+f);n.bottom=Math.min(n.bottom,A)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ke(e){var t,n,r;if(ze.isWindow(e)||9===e.nodeType){var o=ze.getWindow(e);t={left:ze.getWindowScrollLeft(o),top:ze.getWindowScrollTop(o)},n=ze.viewportWidth(o),r=ze.viewportHeight(o)}else t=ze.offset(e),n=ze.outerWidth(e),r=ze.outerHeight(e);return t.width=n,t.height=r,t}function $e(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,l=e.top;return\"c\"===n?l+=a/2:\"b\"===n&&(l+=a),\"c\"===r?i+=o/2:\"r\"===r&&(i+=o),{left:i,top:l}}function Xe(e,t,n,r,o){var a=$e(t,n[1]),i=$e(e,n[0]),l=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function Je(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ze(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function et(e,t,n){var r=[];return ze.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function tt(e,t){return e[t]=-e[t],e}function nt(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function rt(e,t){e[0]=nt(e[0],t.width),e[1]=nt(e[1],t.height)}function ot(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],l=n.overflow,s=n.source||e;a=[].concat(a),i=[].concat(i);var u={},c=0,d=Qe(s,!(!(l=l||{})||!l.alwaysByViewport)),p=Ke(s);rt(a,p),rt(i,t);var f=Xe(p,t,o,a,i),g=ze.merge(p,f);if(d&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&Je(f,p,d)){var h=et(o,/[lr]/gi,{l:\"r\",r:\"l\"}),m=tt(a,0),v=tt(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Xe(p,t,h,m,v),p,d)||(c=1,o=h,a=m,i=v)}if(l.adjustY&&Ze(f,p,d)){var A=et(o,/[tb]/gi,{t:\"b\",b:\"t\"}),y=tt(a,1),E=tt(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Xe(p,t,A,y,E),p,d)||(c=1,o=A,a=y,i=E)}c&&(f=Xe(p,t,o,a,i),ze.mix(g,f));var b=Je(f,p,d),_=Ze(f,p,d);if(b||_){var C=o;b&&(C=et(o,/[lr]/gi,{l:\"r\",r:\"l\"})),_&&(C=et(o,/[tb]/gi,{t:\"b\",b:\"t\"})),o=C,a=n.offset||[0,0],i=n.targetOffset||[0,0]}u.adjustX=l.adjustX&&b,u.adjustY=l.adjustY&&_,(u.adjustX||u.adjustY)&&(g=function(e,t,n,r){var o=ze.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),ze.mix(o,a)}(f,p,d,u))}return g.width!==p.width&&ze.css(s,\"width\",ze.width(s)+g.width-p.width),g.height!==p.height&&ze.css(s,\"height\",ze.height(s)+g.height-p.height),ze.offset(s,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:u}}function at(e,t,n){var r=n.target||t,o=Ke(r),a=!function(e,t){var n=Qe(e,t),r=Ke(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return ot(e,o,n,a)}function it(e){return e&&\"object\"==typeof e&&e.window===e}function lt(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}function st(e){return\"function\"==typeof e&&e?e():null}function ut(e){return\"object\"==typeof e&&e?e:null}at.__getOffsetParent=qe,at.__getVisibleRectForElement=Qe;var ct=function(e){function t(){var e,n,r,o;(0,P.A)(this,t);for(var a=arguments.length,i=Array(a),l=0;l<a;l++)i[l]=arguments[l];return n=r=(0,M.A)(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.forceAlign=function(){var e=r.props,t=e.disabled,n=e.target,o=e.align,a=e.onAlign;if(!t&&n){var i=I.findDOMNode(r),l=void 0,s=st(n),u=ut(n),c=document.activeElement;s?l=at(i,s,o):u&&(l=function(e,t,n){var r,o,a=ze.getDocument(e),i=a.defaultView||a.parentWindow,l=ze.getWindowScrollLeft(i),s=ze.getWindowScrollTop(i),u=ze.viewportWidth(i),c=ze.viewportHeight(i),d={left:r=\"pageX\"in t?t.pageX:l+t.clientX,top:o=\"pageY\"in t?t.pageY:s+t.clientY,width:0,height:0},p=r>=0&&r<=l+u&&o>=0&&o<=s+c,f=[n.points[0],\"cc\"];return ot(e,d,le(le({},n),{},{points:f}),p)}(i,u,o)),function(e,t){e!==document.activeElement&&H(t,e)&&e.focus()}(c,i),a&&a(i,l)}},o=n,(0,M.A)(r,o)}return(0,x.A)(t,e),(0,ae.A)(t,[{key:\"componentDidMount\",value:function(){var e=this.props;this.forceAlign(),!e.disabled&&e.monitorWindowResize&&this.startMonitorWindowResize()}},{key:\"componentDidUpdate\",value:function(e){var t,n,r=!1,o=this.props;if(!o.disabled){var a=I.findDOMNode(this),i=a?a.getBoundingClientRect():null;if(e.disabled)r=!0;else{var l=st(e.target),s=st(o.target),u=ut(e.target),c=ut(o.target);it(l)&&it(s)?r=!1:(l!==s||l&&!s&&c||u&&c&&s||c&&!((t=u)===(n=c)||t&&n&&(\"pageX\"in n&&\"pageY\"in n?t.pageX===n.pageX&&t.pageY===n.pageY:\"clientX\"in n&&\"clientY\"in n&&t.clientX===n.clientX&&t.clientY===n.clientY)))&&(r=!0);var d=this.sourceRect||{};r||!a||lt(d.width,i.width)&&lt(d.height,i.height)||(r=!0)}this.sourceRect=i}r&&this.forceAlign(),o.monitorWindowResize&&!o.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:\"componentWillUnmount\",value:function(){this.stopMonitorWindowResize()}},{key:\"startMonitorWindowResize\",value:function(){this.resizeHandler||(this.bufferMonitor=function(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function o(){r(),n=setTimeout(e,t)}return o.clear=r,o}(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=G(window,\"resize\",this.bufferMonitor))}},{key:\"stopMonitorWindowResize\",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.childrenProps,r=t.children,o=l().Children.only(r);if(n){var a={};return Object.keys(n).forEach(function(t){a[t]=e.props[n[t]]}),l().cloneElement(o,a)}return o}}]),t}(i.Component);ct.propTypes={childrenProps:N().object,align:N().object.isRequired,target:N().oneOfType([N().func,N().shape({clientX:N().number,clientY:N().number,pageX:N().number,pageY:N().number})]),onAlign:N().func,monitorBufferTime:N().number,monitorWindowResize:N().bool,disabled:N().bool,children:N().any},ct.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};const dt=ct;var pt=n(44508);function ft(e){var t=[];return l().Children.forEach(e,function(e){t.push(e)}),t}function gt(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function ht(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error(\"two child with same key for <rc-animate> children\");r=e}}),r}var mt=n(97479),vt={transitionstart:{transition:\"transitionstart\",WebkitTransition:\"webkitTransitionStart\",MozTransition:\"mozTransitionStart\",OTransition:\"oTransitionStart\",msTransition:\"MSTransitionStart\"},animationstart:{animation:\"animationstart\",WebkitAnimation:\"webkitAnimationStart\",MozAnimation:\"mozAnimationStart\",OAnimation:\"oAnimationStart\",msAnimation:\"MSAnimationStart\"}},At={transitionend:{transition:\"transitionend\",WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"mozTransitionEnd\",OTransition:\"oTransitionEnd\",msTransition:\"MSTransitionEnd\"},animationend:{animation:\"animationend\",WebkitAnimation:\"webkitAnimationEnd\",MozAnimation:\"mozAnimationEnd\",OAnimation:\"oAnimationEnd\",msAnimation:\"MSAnimationEnd\"}},yt=[],Et=[];function bt(e,t,n){e.addEventListener(t,n,!1)}function _t(e,t,n){e.removeEventListener(t,n,!1)}\"undefined\"!=typeof window&&\"undefined\"!=typeof document&&function(){var e=document.createElement(\"div\").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var a in o)if(a in e){n.push(o[a]);break}}}\"AnimationEvent\"in window||(delete vt.animationstart.animation,delete At.animationend.animation),\"TransitionEvent\"in window||(delete vt.transitionstart.transition,delete At.transitionend.transition),t(vt,yt),t(At,Et)}();const Ct=Et,wt=function(e,t){0!==Et.length?Et.forEach(function(n){bt(e,n,t)}):window.setTimeout(t,0)},St=function(e,t){0!==Et.length&&Et.forEach(function(n){_t(e,n,t)})};var Tt=n(30837),Ot=n.n(Tt),Dt=0!==Ct.length,Rt=[\"Webkit\",\"Moz\",\"O\",\"ms\"],Nt=[\"-webkit-\",\"-moz-\",\"-o-\",\"ms-\",\"\"];function Lt(e,t){for(var n=window.getComputedStyle(e,null),r=\"\",o=0;o<Nt.length&&!(r=n.getPropertyValue(Nt[o]+t));o++);return r}function Pt(e){if(Dt){var t=parseFloat(Lt(e,\"transition-delay\"))||0,n=parseFloat(Lt(e,\"transition-duration\"))||0,r=parseFloat(Lt(e,\"animation-delay\"))||0,o=parseFloat(Lt(e,\"animation-duration\"))||0,a=Math.max(n+t,o+r);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*a+200)}}function Mt(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var xt=function(e,t,n){var r=\"object\"===(void 0===t?\"undefined\":(0,mt.default)(t)),o=r?t.name:t,a=r?t.active:t+\"-active\",i=n,l=void 0,s=void 0,u=Ot()(e);return n&&\"[object Object]\"===Object.prototype.toString.call(n)&&(i=n.end,l=n.start,s=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Mt(e),u.remove(o),u.remove(a),St(e,e.rcEndListener),e.rcEndListener=null,i&&i())},wt(e,e.rcEndListener),l&&l(),u.add(o),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,u.add(a),s&&setTimeout(s,0),Pt(e)},30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};xt.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Mt(e),St(e,e.rcEndListener),e.rcEndListener=null,n&&n())},wt(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,Pt(e)},0)},xt.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=\"\"),r=r||\"\",Rt.forEach(function(t){e.style[t+\"Transition\"+r]=o})},xt.isCssAnimationSupported=Dt;const It=xt,kt=function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},Bt=function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},Ft=function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},jt=function(e){return e.transitionAppear||e.animation.appear},Ht=function(e){return e.transitionEnter||e.animation.enter},Ut=function(e){return e.transitionLeave||e.animation.leave};var Yt={enter:\"transitionEnter\",appear:\"transitionAppear\",leave:\"transitionLeave\"},Gt=function(e){function t(){return(0,P.A)(this,t),(0,M.A)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,x.A)(t,e),(0,ae.A)(t,[{key:\"componentWillUnmount\",value:function(){this.stop()}},{key:\"componentWillEnter\",value:function(e){Bt(this.props)?this.transition(\"enter\",e):e()}},{key:\"componentWillAppear\",value:function(e){kt(this.props)?this.transition(\"appear\",e):e()}},{key:\"componentWillLeave\",value:function(e){Ft(this.props)?this.transition(\"leave\",e):e()}},{key:\"transition\",value:function(e,t){var n=this,r=I.findDOMNode(this),o=this.props,a=o.transitionName,i=\"object\"==typeof a;this.stop();var l=function(){n.stopper=null,t()};if((Dt||!o.animation[e])&&a&&o[Yt[e]]){var s=i?a[e]:a+\"-\"+e,u=s+\"-active\";i&&a[e+\"Active\"]&&(u=a[e+\"Active\"]),this.stopper=It(r,{name:s,active:u},l)}else this.stopper=o.animation[e](r,l)}},{key:\"stop\",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:\"render\",value:function(){return this.props.children}}]),t}(l().Component);Gt.propTypes={children:N().any,animation:N().any,transitionName:N().any};const zt=Gt;var Vt=\"rc_animate_\"+Date.now();function qt(e){var t=e.children;return l().isValidElement(t)&&!t.key?l().cloneElement(t,{key:Vt}):t}function Wt(){}var Qt=function(e){function t(e){(0,P.A)(this,t);var n=(0,M.A)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Kt.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:ft(qt(e))},n.childrenRefs={},n}return(0,x.A)(t,e),(0,ae.A)(t,[{key:\"componentDidMount\",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:\"componentWillReceiveProps\",value:function(e){var t=this;this.nextProps=e;var n=ft(qt(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var o,a,i,s,u=r.showProp,c=this.currentlyAnimatingKeys,d=r.exclusive?ft(qt(r)):this.state.children,p=[];u?(d.forEach(function(e){var t,r=e&&gt(n,e.key);(t=r&&r.props[u]||!e.props[u]?r:l().cloneElement(r||e,(0,pt.A)({},u,!0)))&&p.push(t)}),n.forEach(function(e){e&&gt(d,e.key)||p.push(e)})):(o=n,a=[],i={},s=[],d.forEach(function(e){e&&gt(o,e.key)?s.length&&(i[e.key]=s,s=[]):s.push(e)}),o.forEach(function(e){e&&Object.prototype.hasOwnProperty.call(i,e.key)&&(a=a.concat(i[e.key])),a.push(e)}),p=a=a.concat(s)),this.setState({children:p}),n.forEach(function(e){var n=e&&e.key;if(!e||!c[n]){var r=e&&gt(d,n);if(u){var o=e.props[u];r?!ht(d,n,u)&&o&&t.keysToEnter.push(n):o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}}),d.forEach(function(e){var r=e&&e.key;if(!e||!c[r]){var o=e&&gt(n,r);if(u){var a=e.props[u];o?!ht(n,r,u)&&a&&t.keysToLeave.push(r):a&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}})}},{key:\"componentDidUpdate\",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:\"isValidChildByKey\",value:function(e,t){var n=this.props.showProp;return n?ht(e,t,n):gt(e,t)}},{key:\"stop\",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:\"render\",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map(function(n){if(null==n)return n;if(!n.key)throw new Error(\"must set key for <rc-animate> children\");return l().createElement(zt,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var o=t.component;if(o){var a=t;return\"string\"==typeof o&&(a=(0,L.A)({className:t.className,style:t.style},t.componentProps)),l().createElement(o,a,r)}return r[0]||null}}]),t}(l().Component);Qt.isAnimate=!0,Qt.propTypes={className:N().string,style:N().object,component:N().any,componentProps:N().object,animation:N().object,transitionName:N().oneOfType([N().string,N().object]),transitionEnter:N().bool,transitionAppear:N().bool,exclusive:N().bool,transitionLeave:N().bool,onEnd:N().func,onEnter:N().func,onLeave:N().func,onAppear:N().func,showProp:N().string,children:N().node},Qt.defaultProps={animation:{},component:\"span\",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Wt,onEnter:Wt,onLeave:Wt,onAppear:Wt};var Kt=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,\"enter\")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,\"appear\")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=ft(qt(r));e.isValidChildByKey(o,t)?\"appear\"===n?jt(r)&&(r.onAppear(t),r.onEnd(t,!0)):Ht(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,a,i,l=ft(qt(n));if(e.isValidChildByKey(l,t))e.performEnter(t);else{var s=function(){Ut(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=l,a=n.showProp,(i=r.length===o.length)&&r.forEach(function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||a&&e.props[a]!==n.props[a])&&(i=!1)}),i?s():e.setState({children:l},s)}}}};const $t=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error(\"Can only polyfill class components\");return\"function\"!=typeof t.componentWillReceiveProps?e:l().Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e}(Qt);var Xt=n(5748),Jt=function(e){function t(){return(0,P.A)(this,t),(0,M.A)(this,e.apply(this,arguments))}return(0,x.A)(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=(0,Xt.A)(e,[\"hiddenClassName\",\"visible\"]);return t||l().Children.count(r.children)>1?(!n&&t&&(r.className+=\" \"+t),l().createElement(\"div\",r)):l().Children.only(r.children)},t}(i.Component);Jt.propTypes={children:N().any,className:N().string,visible:N().bool,hiddenClassName:N().string};const Zt=Jt;var en=function(e){function t(){return(0,P.A)(this,t),(0,M.A)(this,e.apply(this,arguments))}return(0,x.A)(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=\" \"+e.hiddenClassName),l().createElement(\"div\",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},l().createElement(Zt,{className:e.prefixCls+\"-content\",visible:e.visible},e.children))},t}(i.Component);en.propTypes={hiddenClassName:N().string,className:N().string,prefixCls:N().string,onMouseEnter:N().func,onMouseLeave:N().func,onMouseDown:N().func,onTouchStart:N().func,children:N().any};const tn=en;var nn=function(e){function t(n){(0,P.A)(this,t);var r=(0,M.A)(this,e.call(this,n));return rn.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=re.bind(r,\"popupInstance\"),r.saveAlignRef=re.bind(r,\"alignInstance\"),r}return(0,x.A)(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return I.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+\"-\"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+\"-\"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+\" \"+this.props.className+\" \"+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,o=n.targetHeight,a=n.targetWidth,i=this.props,s=i.align,u=i.visible,c=i.prefixCls,d=i.style,p=i.getClassNameFromAlign,f=i.destroyPopupOnHide,g=i.stretch,h=i.children,m=i.onMouseEnter,v=i.onMouseLeave,A=i.onMouseDown,y=i.onTouchStart,E=this.getClassName(this.currentAlignClassName||p(s)),b=c+\"-hidden\";u||(this.currentAlignClassName=null);var _={};g&&(-1!==g.indexOf(\"height\")?_.height=o:-1!==g.indexOf(\"minHeight\")&&(_.minHeight=o),-1!==g.indexOf(\"width\")?_.width=a:-1!==g.indexOf(\"minWidth\")&&(_.minWidth=a),r||(_.visibility=\"hidden\",setTimeout(function(){e.alignInstance&&e.alignInstance.forceAlign()},0)));var C={className:E,prefixCls:c,ref:t,onMouseEnter:m,onMouseLeave:v,onMouseDown:A,onTouchStart:y,style:(0,L.A)({},_,d,this.getZIndexStyle())};return f?l().createElement($t,{component:\"\",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},u?l().createElement(dt,{target:this.getAlignTarget(),key:\"popup\",ref:this.saveAlignRef,monitorWindowResize:!0,align:s,onAlign:this.onAlign},l().createElement(tn,(0,L.A)({visible:!0},C),h)):null):l().createElement($t,{component:\"\",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:\"xVisible\"},l().createElement(dt,{target:this.getAlignTarget(),key:\"popup\",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:u,childrenProps:{visible:\"xVisible\"},disabled:!u,align:s,onAlign:this.onAlign},l().createElement(tn,(0,L.A)({hiddenClassName:b},C),h)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=l().createElement(Zt,{style:this.getZIndexStyle(),key:\"mask\",className:e.prefixCls+\"-mask\",hiddenClassName:e.prefixCls+\"-mask-hidden\",visible:e.visible}),n&&(t=l().createElement($t,{key:\"mask\",showProp:\"visible\",transitionAppear:!0,component:\"\",transitionName:n},t))}return t},t.prototype.render=function(){return l().createElement(\"div\",null,this.getMaskElement(),this.getPopupElement())},t}(i.Component);nn.propTypes={visible:N().bool,style:N().object,getClassNameFromAlign:N().func,onAlign:N().func,getRootDomNode:N().func,align:N().any,destroyPopupOnHide:N().bool,className:N().string,prefixCls:N().string,onMouseEnter:N().func,onMouseLeave:N().func,onMouseDown:N().func,onTouchStart:N().func,stretch:N().string,children:N().node,point:N().shape({pageX:N().number,pageY:N().number})};var rn=function(){var e=this;this.onAlign=function(t,n){var r=e.props,o=r.getClassNameFromAlign(n);e.currentAlignClassName!==o&&(e.currentAlignClassName=o,t.className=e.getClassName(o)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,o=t.visible,a=e.state,i=a.stretchChecked,l=a.targetHeight,s=a.targetWidth;if(n&&o){var u=r();if(u){var c=u.offsetHeight,d=u.offsetWidth;l===c&&s===d&&i||e.setState({stretchChecked:!0,targetHeight:c,targetWidth:d})}}else i&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){return e.props.point||e.getTargetElement}};const on=nn;function an(){}var ln=[\"onClick\",\"onMouseDown\",\"onTouchStart\",\"onMouseEnter\",\"onMouseLeave\",\"onFocus\",\"onBlur\",\"onContextMenu\"],sn=!!I.createPortal,un={rcTrigger:N().shape({onPopupMouseDown:N().func})},cn=function(e){function t(n){(0,P.A)(this,t);var r=(0,M.A)(this,e.call(this,n));dn.call(r);var o;return o=\"popupVisible\"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.state={prevPopupVisible:o,popupVisible:o},ln.forEach(function(e){r[\"fire\"+e]=function(t){r.fireEvents(e,t)}}),r}return(0,x.A)(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(sn||this.renderComponent(null,function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)}),r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=G(o,\"mousedown\",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=G(o,\"touchstart\",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=G(o,\"scroll\",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=G(window,\"blur\",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.getDerivedStateFromProps=function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,L.A)({},r,n)}(r,t,n):n},t.prototype.setPopupVisible=function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&(\"popupVisible\"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(function(){r.setPopupVisible(e,a),r.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this[\"fire\"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf(\"click\")||-1!==n.indexOf(\"click\")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf(\"contextMenu\")||-1!==n.indexOf(\"contextMenu\")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf(\"click\")||-1!==n.indexOf(\"click\")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf(\"hover\")||-1!==n.indexOf(\"mouseEnter\")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf(\"hover\")||-1!==n.indexOf(\"mouseLeave\")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf(\"focus\")||-1!==n.indexOf(\"focus\")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf(\"focus\")||-1!==n.indexOf(\"blur\")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,o=n.forceRender,a=n.alignPoint,i=n.className,s=l().Children.only(r),u={key:\"trigger\"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains(\"onContextMenu\"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains(\"onClick\"),u.onMouseDown=this.createTwoChains(\"onMouseDown\"),u.onTouchStart=this.createTwoChains(\"onTouchStart\")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,a&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains(\"onMouseEnter\"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains(\"onMouseLeave\"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains(\"onFocus\"),u.onBlur=this.createTwoChains(\"onBlur\"));var c=te()(s&&s.props&&s.props.className,i);c&&(u.className=c);var d=l().cloneElement(s,u);if(!sn)return l().createElement(Q,{parent:this,visible:t,autoMount:!1,forceRender:o,getComponent:this.getComponent,getContainer:this.getContainer},function(t){var n=t.renderComponent;return e.renderComponent=n,d});var p=void 0;return(t||this._component||o)&&(p=l().createElement(Z,{key:\"portal\",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[d,p]},t}(l().Component);cn.propTypes={children:N().any,action:N().oneOfType([N().string,N().arrayOf(N().string)]),showAction:N().any,hideAction:N().any,getPopupClassNameFromAlign:N().any,onPopupVisibleChange:N().func,afterPopupVisibleChange:N().func,popup:N().oneOfType([N().node,N().func]).isRequired,popupStyle:N().object,prefixCls:N().string,popupClassName:N().string,className:N().string,popupPlacement:N().string,builtinPlacements:N().object,popupTransitionName:N().oneOfType([N().string,N().object]),popupAnimation:N().any,mouseEnterDelay:N().number,mouseLeaveDelay:N().number,zIndex:N().number,focusDelay:N().number,blurDelay:N().number,getPopupContainer:N().func,getDocument:N().func,forceRender:N().bool,destroyPopupOnHide:N().bool,mask:N().bool,maskClosable:N().bool,onPopupAlign:N().func,popupAlign:N().object,popupVisible:N().bool,defaultPopupVisible:N().bool,maskTransitionName:N().oneOfType([N().string,N().object]),maskAnimation:N().string,stretch:N().string,alignPoint:N().bool},cn.contextTypes=un,cn.childContextTypes=un,cn.defaultProps={prefixCls:\"rc-trigger-popup\",getPopupClassNameFromAlign:function(){return\"\"},getDocument:function(){return window.document},onPopupVisibleChange:an,afterPopupVisibleChange:an,onPopupAlign:an,popupClassName:\"\",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var dn=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents(\"onMouseEnter\",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents(\"onMouseMove\",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents(\"onMouseLeave\",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&H(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents(\"onFocus\",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents(\"onMouseDown\",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents(\"onTouchStart\",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents(\"onBlur\",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents(\"onContextMenu\",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents(\"onClick\",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,e.isClickToShow()&&(e.isClickToHide()||e.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target;H((0,I.findDOMNode)(e),n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return(0,I.findDOMNode)(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,l=r.alignPoint,s=r.getPopupClassNameFromAlign;return o&&a&&n.push(function(e,t,n,r){var o=n.points;for(var a in e)if(e.hasOwnProperty(a)&&ne(e[a].points,o,r))return t+\"-placement-\"+a;return\"\"}(a,i,t,l)),s&&n.push(s(t)),n.join(\" \")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,o=t.popupClassName,a=t.action,i=t.onPopupAlign,s=t.popupAnimation,u=t.popupTransitionName,c=t.popupStyle,d=t.mask,p=t.maskAnimation,f=t.maskTransitionName,g=t.zIndex,h=t.popup,m=t.stretch,v=t.alignPoint,A=e.state,y=A.popupVisible,E=A.point,b=e.getPopupAlign(),_={};return e.isMouseEnterToShow()&&(_.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(_.onMouseLeave=e.onPopupMouseLeave),_.onMouseDown=e.onPopupMouseDown,_.onTouchStart=e.onPopupMouseDown,l().createElement(on,(0,L.A)({prefixCls:n,destroyPopupOnHide:r,visible:y,point:v&&E,className:o,action:a,align:b,onAlign:i,animation:s,getClassNameFromAlign:e.getPopupClassNameFromAlign},_,{stretch:m,getRootDomNode:e.getRootDomNode,style:c,mask:d,zIndex:g,transitionName:u,maskAnimation:p,maskTransitionName:f,ref:e.savePopup}),\"function\"==typeof h?h():h)},this.getContainer=function(){var t=e.props,n=document.createElement(\"div\");return n.style.position=\"absolute\",n.style.top=\"0\",n.style.left=\"0\",n.style.width=\"100%\",(t.getPopupContainer?t.getPopupContainer((0,I.findDOMNode)(e)):t.getDocument().body).appendChild(n),n},this.setPoint=function(t){e.props.alignPoint&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.state.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};j(cn);const pn=cn;var fn=n(95093),gn=n.n(fn);function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mn(e)}function vn(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function An(e,t){return An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},An(e,t)}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),n=function(e,t){return!t||\"object\"!=typeof t&&\"function\"!=typeof t?vn(e):t}(this,mn(t).call(this,e)),yn(vn(n),\"onInputChange\",function(e){var t=e.target.value;n.setState({str:t});var r=n.props,o=r.format,a=r.hourOptions,i=r.minuteOptions,l=r.secondOptions,s=r.disabledHours,u=r.disabledMinutes,c=r.disabledSeconds,d=r.onChange;if(t){var p=n.props.value,f=n.getProtoValue().clone(),g=gn()(t,o,!0);if(!g.isValid())return void n.setState({invalid:!0});if(f.hour(g.hour()).minute(g.minute()).second(g.second()),a.indexOf(f.hour())<0||i.indexOf(f.minute())<0||l.indexOf(f.second())<0)return void n.setState({invalid:!0});var h=s(),m=u(f.hour()),v=c(f.hour(),f.minute());if(h&&h.indexOf(f.hour())>=0||m&&m.indexOf(f.minute())>=0||v&&v.indexOf(f.second())>=0)return void n.setState({invalid:!0});if(p){if(p.hour()!==f.hour()||p.minute()!==f.minute()||p.second()!==f.second()){var A=p.clone();A.hour(f.hour()),A.minute(f.minute()),A.second(f.second()),d(A)}}else p!==f&&d(f)}else d(null);n.setState({invalid:!1})}),yn(vn(n),\"onKeyDown\",function(e){var t=n.props,r=t.onEsc,o=t.onKeyDown;27===e.keyCode&&r(),o(e)});var r=e.value,o=e.format;return n.state={str:r&&r.format(o)||\"\",invalid:!1},n}var n,r;return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(t,e),n=t,(r=[{key:\"componentDidMount\",value:function(){var e=this;this.props.focusOnOpen&&(window.requestAnimationFrame||window.setTimeout)(function(){e.refInput.focus(),e.refInput.select()})}},{key:\"componentDidUpdate\",value:function(e){var t=this.props,n=t.value,r=t.format;n!==e.value&&this.setState({str:n&&n.format(r)||\"\",invalid:!1})}},{key:\"getProtoValue\",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:\"getInput\",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.placeholder,o=t.inputReadOnly,a=this.state,i=a.invalid,s=a.str,u=i?\"\".concat(n,\"-input-invalid\"):\"\";return l().createElement(\"input\",{className:te()(\"\".concat(n,\"-input\"),u),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:s,placeholder:r,onChange:this.onInputChange,readOnly:!!o})}},{key:\"render\",value:function(){var e=this.props.prefixCls;return l().createElement(\"div\",{className:\"\".concat(e,\"-input-wrap\")},this.getInput())}}])&&hn(n.prototype,r),t}(i.Component);yn(En,\"propTypes\",{format:N().string,prefixCls:N().string,disabledDate:N().func,placeholder:N().string,clearText:N().string,value:N().object,inputReadOnly:N().bool,hourOptions:N().array,minuteOptions:N().array,secondOptions:N().array,disabledHours:N().func,disabledMinutes:N().func,disabledSeconds:N().func,onChange:N().func,onEsc:N().func,defaultOpenValue:N().object,currentSelectPanel:N().string,focusOnOpen:N().bool,onKeyDown:N().func,clearIcon:N().node}),yn(En,\"defaultProps\",{inputReadOnly:!1});const bn=En;var _n=n(93146),Cn=n.n(_n);function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Tn(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function On(e,t){return On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},On(e,t)}function Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rn=function e(t,n,r){if(r<=0)Cn()(function(){t.scrollTop=n});else{var o=(n-t.scrollTop)/r*10;Cn()(function(){t.scrollTop+=o,t.scrollTop!==n&&e(t,n,r-10)})}},Nn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||\"object\"!=typeof t&&\"function\"!=typeof t?Tn(e):t}(this,(e=Sn(t)).call.apply(e,[this].concat(o))),Dn(Tn(n),\"state\",{active:!1}),Dn(Tn(n),\"onSelect\",function(e){var t=n.props;(0,t.onSelect)(t.type,e)}),Dn(Tn(n),\"handleMouseEnter\",function(e){var t=n.props.onMouseEnter;n.setState({active:!0}),t(e)}),Dn(Tn(n),\"handleMouseLeave\",function(){n.setState({active:!1})}),Dn(Tn(n),\"saveList\",function(e){n.list=e}),n}var n,r;return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&On(e,t)}(t,e),n=t,r=[{key:\"componentDidMount\",value:function(){this.scrollToSelected(0)}},{key:\"componentDidUpdate\",value:function(e){var t=this.props.selectedIndex;e.selectedIndex!==t&&this.scrollToSelected(120)}},{key:\"getOptions\",value:function(){var e=this,t=this.props,n=t.options,r=t.selectedIndex,o=t.prefixCls,a=t.onEsc;return n.map(function(t,n){var i,s=te()((Dn(i={},\"\".concat(o,\"-select-option-selected\"),r===n),Dn(i,\"\".concat(o,\"-select-option-disabled\"),t.disabled),i)),u=t.disabled?void 0:function(){e.onSelect(t.value)};return l().createElement(\"li\",{role:\"button\",onClick:u,className:s,key:n,disabled:t.disabled,tabIndex:\"0\",onKeyDown:function(e){13===e.keyCode?u():27===e.keyCode&&a()}},t.value)})}},{key:\"scrollToSelected\",value:function(e){var t=this.props.selectedIndex,n=I.findDOMNode(this),r=I.findDOMNode(this.list);if(r){var o=t;o<0&&(o=0);var a=r.children[o].offsetTop;Rn(n,a,e)}}},{key:\"render\",value:function(){var e=this.props,t=e.prefixCls,n=e.options,r=this.state.active;if(0===n.length)return null;var o=te()(\"\".concat(t,\"-select\"),Dn({},\"\".concat(t,\"-select-active\"),r));return l().createElement(\"div\",{className:o,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},l().createElement(\"ul\",{ref:this.saveList},this.getOptions()))}}],r&&wn(n.prototype,r),t}(i.Component);Dn(Nn,\"propTypes\",{prefixCls:N().string,options:N().array,selectedIndex:N().number,type:N().string,onSelect:N().func,onMouseEnter:N().func,onEsc:N().func});const Ln=Nn;function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mn(e)}function xn(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function In(e,t){return In=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},In(e,t)}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=function(e,t){var n=\"\".concat(e);e<10&&(n=\"0\".concat(e));var r=!1;return t&&t.indexOf(e)>=0&&(r=!0),{value:n,disabled:r}},Fn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||\"object\"!=typeof t&&\"function\"!=typeof t?xn(e):t}(this,(e=Mn(t)).call.apply(e,[this].concat(o))),kn(xn(n),\"onItemChange\",function(e,t){var r=n.props,o=r.onChange,a=r.defaultOpenValue,i=r.use12Hours,l=r.value,s=r.isAM,u=r.onAmPmChange,c=(l||a).clone();if(\"hour\"===e)i?s?c.hour(+t%12):c.hour(+t%12+12):c.hour(+t);else if(\"minute\"===e)c.minute(+t);else if(\"ampm\"===e){var d=t.toUpperCase();i&&(\"PM\"===d&&c.hour()<12&&c.hour(c.hour()%12+12),\"AM\"===d&&c.hour()>=12&&c.hour(c.hour()-12)),u(d)}else c.second(+t);o(c)}),kn(xn(n),\"onEnterSelectPanel\",function(e){(0,n.props.onCurrentSelectPanelChange)(e)}),n}var n,r;return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(t,e),n=t,(r=[{key:\"getHourSelect\",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.hourOptions,a=n.disabledHours,i=n.showHour,s=n.use12Hours,u=n.onEsc;if(!i)return null;var c,d,p=a();return s?(c=[12].concat(o.filter(function(e){return e<12&&e>0})),d=e%12||12):(c=o,d=e),l().createElement(Ln,{prefixCls:r,options:c.map(function(e){return Bn(e,p)}),selectedIndex:c.indexOf(d),type:\"hour\",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel(\"hour\")},onEsc:u})}},{key:\"getMinuteSelect\",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.minuteOptions,a=n.disabledMinutes,i=n.defaultOpenValue,s=n.showMinute,u=n.value,c=n.onEsc;if(!s)return null;var d=a((u||i).hour());return l().createElement(Ln,{prefixCls:r,options:o.map(function(e){return Bn(e,d)}),selectedIndex:o.indexOf(e),type:\"minute\",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel(\"minute\")},onEsc:c})}},{key:\"getSecondSelect\",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.secondOptions,a=n.disabledSeconds,i=n.showSecond,s=n.defaultOpenValue,u=n.value,c=n.onEsc;if(!i)return null;var d=u||s,p=a(d.hour(),d.minute());return l().createElement(Ln,{prefixCls:r,options:o.map(function(e){return Bn(e,p)}),selectedIndex:o.indexOf(e),type:\"second\",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel(\"second\")},onEsc:c})}},{key:\"getAMPMSelect\",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.use12Hours,o=t.format,a=t.isAM,i=t.onEsc;if(!r)return null;var s=[\"am\",\"pm\"].map(function(e){return o.match(/\\sA/)?e.toUpperCase():e}).map(function(e){return{value:e}}),u=a?0:1;return l().createElement(Ln,{prefixCls:n,options:s,selectedIndex:u,type:\"ampm\",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel(\"ampm\")},onEsc:i})}},{key:\"render\",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,r=e.value||n;return l().createElement(\"div\",{className:\"\".concat(t,\"-combobox\")},this.getHourSelect(r.hour()),this.getMinuteSelect(r.minute()),this.getSecondSelect(r.second()),this.getAMPMSelect(r.hour()))}}])&&Pn(n.prototype,r),t}(i.Component);kn(Fn,\"propTypes\",{format:N().string,defaultOpenValue:N().object,prefixCls:N().string,value:N().object,onChange:N().func,onAmPmChange:N().func,showHour:N().bool,showMinute:N().bool,showSecond:N().bool,hourOptions:N().array,minuteOptions:N().array,secondOptions:N().array,disabledHours:N().func,disabledMinutes:N().func,disabledSeconds:N().func,onCurrentSelectPanelChange:N().func,use12Hours:N().bool,onEsc:N().func,isAM:N().bool});const jn=Fn;function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Gn(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function zn(e,t){return zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zn(e,t)}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(){}function Wn(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=[],a=0;a<e;a+=r)(!t||t.indexOf(a)<0||!n)&&o.push(a);return o}var Qn=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||\"object\"!=typeof t&&\"function\"!=typeof t?Gn(e):t}(this,(e=Yn(t)).call.apply(e,[this].concat(o))),Vn(Gn(n),\"state\",{}),Vn(Gn(n),\"onChange\",function(e){var t=n.props.onChange;n.setState({value:e}),t(e)}),Vn(Gn(n),\"onAmPmChange\",function(e){(0,n.props.onAmPmChange)(e)}),Vn(Gn(n),\"onCurrentSelectPanelChange\",function(e){n.setState({currentSelectPanel:e})}),Vn(Gn(n),\"disabledHours\",function(){var e=n.props,t=e.use12Hours,r=(0,e.disabledHours)();return t&&Array.isArray(r)&&(r=n.isAM()?r.filter(function(e){return e<12}).map(function(e){return 0===e?12:e}):r.map(function(e){return 12===e?12:e-12})),r}),n}var n,r,o;return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zn(e,t)}(t,e),n=t,o=[{key:\"getDerivedStateFromProps\",value:function(e,t){return\"value\"in e?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach(function(t){Vn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{value:e.value}):null}}],(r=[{key:\"close\",value:function(){(0,this.props.onEsc)()}},{key:\"isAM\",value:function(){var e=this.props.defaultOpenValue,t=this.state.value||e;return t.hour()>=0&&t.hour()<12}},{key:\"render\",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.placeholder,o=e.disabledMinutes,a=e.disabledSeconds,i=e.hideDisabledOptions,s=e.showHour,u=e.showMinute,c=e.showSecond,d=e.format,p=e.defaultOpenValue,f=e.clearText,g=e.onEsc,h=e.addon,m=e.use12Hours,v=e.focusOnOpen,A=e.onKeyDown,y=e.hourStep,E=e.minuteStep,b=e.secondStep,_=e.inputReadOnly,C=e.clearIcon,w=this.state,S=w.value,T=w.currentSelectPanel,O=this.disabledHours(),D=o(S?S.hour():null),R=a(S?S.hour():null,S?S.minute():null),N=Wn(24,O,i,y),L=Wn(60,D,i,E),P=Wn(60,R,i,b),M=function(e,t,n,r){var o=t.slice().sort(function(t,n){return Math.abs(e.hour()-t)-Math.abs(e.hour()-n)})[0],a=n.slice().sort(function(t,n){return Math.abs(e.minute()-t)-Math.abs(e.minute()-n)})[0],i=r.slice().sort(function(t,n){return Math.abs(e.second()-t)-Math.abs(e.second()-n)})[0];return gn()(\"\".concat(o,\":\").concat(a,\":\").concat(i),\"HH:mm:ss\")}(p,N,L,P);return l().createElement(\"div\",{className:te()(n,\"\".concat(t,\"-inner\"))},l().createElement(bn,{clearText:f,prefixCls:t,defaultOpenValue:M,value:S,currentSelectPanel:T,onEsc:g,format:d,placeholder:r,hourOptions:N,minuteOptions:L,secondOptions:P,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onChange:this.onChange,focusOnOpen:v,onKeyDown:A,inputReadOnly:_,clearIcon:C}),l().createElement(jn,{prefixCls:t,value:S,defaultOpenValue:M,format:d,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:s,showMinute:u,showSecond:c,hourOptions:N,minuteOptions:L,secondOptions:P,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:m,onEsc:g,isAM:this.isAM()}),h(this))}}])&&Un(n.prototype,r),o&&Un(n,o),t}(i.Component);Vn(Qn,\"propTypes\",{clearText:N().string,prefixCls:N().string,className:N().string,defaultOpenValue:N().object,value:N().object,placeholder:N().string,format:N().string,inputReadOnly:N().bool,disabledHours:N().func,disabledMinutes:N().func,disabledSeconds:N().func,hideDisabledOptions:N().bool,onChange:N().func,onAmPmChange:N().func,onEsc:N().func,showHour:N().bool,showMinute:N().bool,showSecond:N().bool,use12Hours:N().bool,hourStep:N().number,minuteStep:N().number,secondStep:N().number,addon:N().func,focusOnOpen:N().bool,onKeyDown:N().func,clearIcon:N().node}),Vn(Qn,\"defaultProps\",{prefixCls:\"rc-time-picker-panel\",onChange:qn,disabledHours:qn,disabledMinutes:qn,disabledSeconds:qn,defaultOpenValue:gn()(),use12Hours:!1,addon:qn,onKeyDown:qn,onAmPmChange:qn,inputReadOnly:!1}),j(Qn);const Kn=Qn;var $n={adjustX:1,adjustY:1},Xn=[0,0];const Jn={bottomLeft:{points:[\"tl\",\"tl\"],overflow:$n,offset:[0,-3],targetOffset:Xn},bottomRight:{points:[\"tr\",\"tr\"],overflow:$n,offset:[0,-3],targetOffset:Xn},topRight:{points:[\"br\",\"br\"],overflow:$n,offset:[0,3],targetOffset:Xn},topLeft:{points:[\"bl\",\"bl\"],overflow:$n,offset:[0,3],targetOffset:Xn}};function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function nr(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function rr(e,t){return rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rr(e,t)}function or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(){}function ir(e,t){this[e]=t}var lr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),n=function(e,t){return!t||\"object\"!=typeof t&&\"function\"!=typeof t?nr(e):t}(this,tr(t).call(this,e)),or(nr(n),\"onPanelChange\",function(e){n.setValue(e)}),or(nr(n),\"onAmPmChange\",function(e){(0,n.props.onAmPmChange)(e)}),or(nr(n),\"onClear\",function(e){e.stopPropagation(),n.setValue(null),n.setOpen(!1)}),or(nr(n),\"onVisibleChange\",function(e){n.setOpen(e)}),or(nr(n),\"onEsc\",function(){n.setOpen(!1),n.focus()}),or(nr(n),\"onKeyDown\",function(e){40===e.keyCode&&n.setOpen(!0)}),n.saveInputRef=ir.bind(nr(n),\"picker\"),n.savePanelRef=ir.bind(nr(n),\"panelInstance\");var r=e.defaultOpen,o=e.defaultValue,a=e.open,i=void 0===a?r:a,l=e.value,s=void 0===l?o:l;return n.state={open:i,value:s},n}var n,r,o;return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}(t,e),n=t,r=[{key:\"setValue\",value:function(e){var t=this.props.onChange;\"value\"in this.props||this.setState({value:e}),t(e)}},{key:\"getFormat\",value:function(){var e=this.props,t=e.format,n=e.showHour,r=e.showMinute,o=e.showSecond,a=e.use12Hours;return t||(a?[n?\"h\":\"\",r?\"mm\":\"\",o?\"ss\":\"\"].filter(function(e){return!!e}).join(\":\").concat(\" a\"):[n?\"HH\":\"\",r?\"mm\":\"\",o?\"ss\":\"\"].filter(function(e){return!!e}).join(\":\"))}},{key:\"getPanelElement\",value:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,r=e.disabledHours,o=e.disabledMinutes,a=e.disabledSeconds,i=e.hideDisabledOptions,s=e.inputReadOnly,u=e.showHour,c=e.showMinute,d=e.showSecond,p=e.defaultOpenValue,f=e.clearText,g=e.addon,h=e.use12Hours,m=e.focusOnOpen,v=e.onKeyDown,A=e.hourStep,y=e.minuteStep,E=e.secondStep,b=e.clearIcon,_=this.state.value;return l().createElement(Kn,{clearText:f,prefixCls:\"\".concat(t,\"-panel\"),ref:this.savePanelRef,value:_,inputReadOnly:s,onChange:this.onPanelChange,onAmPmChange:this.onAmPmChange,defaultOpenValue:p,showHour:u,showMinute:c,showSecond:d,onEsc:this.onEsc,format:this.getFormat(),placeholder:n,disabledHours:r,disabledMinutes:o,disabledSeconds:a,hideDisabledOptions:i,use12Hours:h,hourStep:A,minuteStep:y,secondStep:E,addon:g,focusOnOpen:m,onKeyDown:v,clearIcon:b})}},{key:\"getPopupClassName\",value:function(){var e=this.props,t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.use12Hours,a=e.prefixCls,i=e.popupClassName,l=0;return t&&(l+=1),n&&(l+=1),r&&(l+=1),o&&(l+=1),te()(i,or({},\"\".concat(a,\"-panel-narrow\"),!(t&&n&&r||o)),\"\".concat(a,\"-panel-column-\").concat(l))}},{key:\"setOpen\",value:function(e){var t=this.props,n=t.onOpen,r=t.onClose;this.state.open!==e&&(\"open\"in this.props||this.setState({open:e}),e?n({open:e}):r({open:e}))}},{key:\"focus\",value:function(){this.picker.focus()}},{key:\"blur\",value:function(){this.picker.blur()}},{key:\"renderClearButton\",value:function(){var e=this,t=this.state.value,n=this.props,r=n.prefixCls,o=n.allowEmpty,a=n.clearIcon,i=n.clearText,s=n.disabled;if(!o||!t||s)return null;if(l().isValidElement(a)){var u=(a.props||{}).onClick;return l().cloneElement(a,{onClick:function(){u&&u.apply(void 0,arguments),e.onClear.apply(e,arguments)}})}return l().createElement(\"a\",{role:\"button\",className:\"\".concat(r,\"-clear\"),title:i,onClick:this.onClear,tabIndex:0},a||l().createElement(\"i\",{className:\"\".concat(r,\"-clear-icon\")}))}},{key:\"render\",value:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,r=e.placement,o=e.align,a=e.id,i=e.disabled,s=e.transitionName,u=e.style,c=e.className,d=e.getPopupContainer,p=e.name,f=e.autoComplete,g=e.onFocus,h=e.onBlur,m=e.autoFocus,v=e.inputReadOnly,A=e.inputIcon,y=e.popupStyle,E=this.state,b=E.open,_=E.value,C=this.getPopupClassName();return l().createElement(pn,{prefixCls:\"\".concat(t,\"-panel\"),popupClassName:C,popupStyle:y,popup:this.getPanelElement(),popupAlign:o,builtinPlacements:Jn,popupPlacement:r,action:i?[]:[\"click\"],destroyPopupOnHide:!0,getPopupContainer:d,popupTransitionName:s,popupVisible:b,onPopupVisibleChange:this.onVisibleChange},l().createElement(\"span\",{className:te()(t,c),style:u},l().createElement(\"input\",{className:\"\".concat(t,\"-input\"),ref:this.saveInputRef,type:\"text\",placeholder:n,name:p,onKeyDown:this.onKeyDown,disabled:i,value:_&&_.format(this.getFormat())||\"\",autoComplete:f,onFocus:g,onBlur:h,autoFocus:m,onChange:ar,readOnly:!!v,id:a}),A||l().createElement(\"span\",{className:\"\".concat(t,\"-icon\")}),this.renderClearButton()))}}],o=[{key:\"getDerivedStateFromProps\",value:function(e,t){var n={};return\"value\"in e&&(n.value=e.value),void 0!==e.open&&(n.open=e.open),Object.keys(n).length>0?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach(function(t){or(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},n):null}}],r&&er(n.prototype,r),o&&er(n,o),t}(i.Component);or(lr,\"propTypes\",{prefixCls:N().string,clearText:N().string,value:N().object,defaultOpenValue:N().object,inputReadOnly:N().bool,disabled:N().bool,allowEmpty:N().bool,defaultValue:N().object,open:N().bool,defaultOpen:N().bool,align:N().object,placement:N().any,transitionName:N().string,getPopupContainer:N().func,placeholder:N().string,format:N().string,showHour:N().bool,showMinute:N().bool,showSecond:N().bool,style:N().object,className:N().string,popupClassName:N().string,popupStyle:N().object,disabledHours:N().func,disabledMinutes:N().func,disabledSeconds:N().func,hideDisabledOptions:N().bool,onChange:N().func,onAmPmChange:N().func,onOpen:N().func,onClose:N().func,onFocus:N().func,onBlur:N().func,addon:N().func,name:N().string,autoComplete:N().string,use12Hours:N().bool,hourStep:N().number,minuteStep:N().number,secondStep:N().number,focusOnOpen:N().bool,onKeyDown:N().func,autoFocus:N().bool,id:N().string,inputIcon:N().node,clearIcon:N().node}),or(lr,\"defaultProps\",{clearText:\"clear\",prefixCls:\"rc-time-picker\",defaultOpen:!1,inputReadOnly:!1,style:{},className:\"\",popupClassName:\"\",popupStyle:{},align:{},defaultOpenValue:gn()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:ar,disabledMinutes:ar,disabledSeconds:ar,hideDisabledOptions:!1,placement:\"bottomLeft\",onChange:ar,onAmPmChange:ar,onOpen:ar,onClose:ar,onFocus:ar,onBlur:ar,addon:ar,use12Hours:!1,focusOnOpen:!1,onKeyDown:ar}),j(lr);const sr=lr;var ur=n(85072),cr=n.n(ur),dr=n(97825),pr=n.n(dr),fr=n(77659),gr=n.n(fr),hr=n(55056),mr=n.n(hr),vr=n(10540),Ar=n.n(vr),yr=n(41113),Er=n.n(yr),br=n(27080),_r={};_r.styleTagTransform=Er(),_r.setAttributes=mr(),_r.insert=gr().bind(null,\"head\"),_r.domAPI=pr(),_r.insertStyleElement=Ar(),cr()(br.A,_r),br.A&&br.A.locals&&br.A.locals;var Cr=n(11848),wr=(0,Cr.Ay)(r.A)(function(e){var t=e.theme;return{\"& .rc-time-picker-input\":{fontFamily:\"NotoSans-Regular\",fontWeight:\"500\",fontSize:\"14px\",color:t.palette.info.dark,\"&::placeholder\":{color:\"#757575\"}},\"& .rc-time-picker-panel-select li:hover\":{background:t.palette.primary.main,color:t.palette.secondary.main}}});function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Tr=function(e){var t,n,r=e.handleValueChange,o=e.defaultValue,a=e.hoursDisabled,s=e.minutesDisabled,u=(t=(0,i.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return Sr(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),c=u[0],d=u[1];return(0,i.useEffect)(function(){d(!o)},[o]),l().createElement(wr,null,l().createElement(sr,{showSecond:!1,defaultValue:o&&(0,y.pe)(o),placeholder:\"Select Time\",onChange:function(e){return null!=e&&e.format(\"HH:mm:ss\")?d(!1):d(!0),r(e.format(\"HH:mm:ss\"))},disabledHours:function(){return a},disabledMinutes:function(){return s},getPopupContainer:function(e){return e.parentNode},inputIcon:c&&l().createElement(\"span\",{className:\"icon-time timer-icon\"})}))};const Or=l().memo(Tr),Dr=function(e){var t,n,a=e.values,i=e.setFieldValue,s=e.currentDate,u=e.initialForm;return l().createElement(l().Fragment,null,l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"START_DATE\")),\"*\"),l().createElement(w.A,{value:a.frequencyDailyStartDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=a&&null!==(t=a.frequencyDailyEndDate)&&void 0!==t&&t.length&&i(\"frequencyDailyEndDate\",[e,(0,y.Yq)(a.frequencyDailyEndDate[1],\"MM/DD/YYYY\")]),i(\"frequencyDailyStartDate\",e),i(\"globalStartDate\",e)},minDate:s,customFormat:null}),l().createElement(T.A,{errName:\"frequencyDailyStartDate\"})),l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"END_DATE\")),\"*\"),l().createElement(w.A,{value:null!==(t=null===(n=a.frequencyDailyEndDate)||void 0===n?void 0:n[1])&&void 0!==t?t:\"\",handleChangeDatePicker:function(e){i(\"frequencyDailyEndDate\",[(0,y.Yq)(a.frequencyDailyStartDate,\"MM/DD/YYYY\"),e])},minDate:a.frequencyDailyStartDate,customFormat:null}),l().createElement(T.A,{errName:\"frequencyDailyEndDate\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"TIME\")),\"*\"),l().createElement(r.A,{className:\"time-picker-wrapper\"},l().createElement(Or,{handleValueChange:function(e){i(\"frequencyDailyTime\",e)},defaultValue:u.frequencyDailyTime})),l().createElement(T.A,{errName:\"frequencyDailyTime\"}))))},Rr=function(e){var t,n,a=e.values,i=e.setFieldValue,s=e.currentDate,u=e.daysList,c=e.initialForm;return l().createElement(l().Fragment,null,l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"START_DATE\")),\"*\"),l().createElement(w.A,{value:a.frequencyMonthlyStartDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=a&&null!==(t=a.frequencyMonthlyEndDate)&&void 0!==t&&t.length&&i(\"frequencyMonthlyEndDate\",[e,(0,y.Yq)(a.frequencyMonthlyEndDate[1],\"MM/DD/YYYY\")]),i(\"frequencyMonthlyStartDate\",e),i(\"globalStartDate\",e)},minDate:s,customFormat:null}),l().createElement(T.A,{errName:\"frequencyMonthlyStartDate\"})),l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"END_DATE\")),\"*\"),l().createElement(w.A,{value:null!==(t=null===(n=a.frequencyMonthlyEndDate)||void 0===n?void 0:n[1])&&void 0!==t?t:\"\",handleChangeDatePicker:function(e){i(\"frequencyMonthlyEndDate\",[(0,y.Yq)(a.frequencyMonthlyStartDate,\"MM/DD/YYYY\"),e])},minDate:a.frequencyMonthlyStartDate,customFormat:null}),l().createElement(T.A,{errName:\"frequencyMonthlyEndDate\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"DAY_OF_MONTH\")),\"*\"),l().createElement(b.D0,{name:\"frequencyMonthlyDayOfMonth\"},function(){return l().createElement(S.A,{name:\"frequencyMonthlyDayOfMonth\",onChange:function(e,t){i(\"frequencyMonthlyDayOfMonth\",t)},options:u,labelKey:\"label\",label:\"Day of Month\",selectedOption:a.frequencyMonthlyDayOfMonth,value:a.frequencyMonthlyDayOfMonth,defaultLabel:\"Select Day of Month\"})}),l().createElement(T.A,{errName:\"frequencyMonthlyDayOfMonth\"})),l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"TIME\")),\"*\"),l().createElement(r.A,{className:\"time-picker-wrapper\"},l().createElement(Or,{handleValueChange:function(e){i(\"frequencyMonthlyTime\",e)},defaultValue:c.frequencyMonthlyTime})),l().createElement(T.A,{errName:\"frequencyMonthlyTime\"}))))};var Nr=[{label:\"Monday\",value:1},{label:\"Tuesday\",value:2},{label:\"Wednesday\",value:3},{label:\"Thursday\",value:4},{label:\"Friday\",value:5},{label:\"Saturday\",value:6},{label:\"Sunday\",value:7}],Lr=function(e){return e.LIQUIDATION_TARGET_UPLOADED=\"Liquidation Target Uploaded\",e}({}),Pr=(n(15086),n(15941)),Mr=function(e,t){return\"\".concat(e).toLowerCase()===t.toLowerCase()},xr=function(e){var t=e.freq,n=e.message;return Pr.Yj().nullable().test({name:\"frequencyStringRequired\",message:n,test:function(e){var n=this.parent.frequency;return!Mr(n,t)||null!=e&&\"\"!==e}})},Ir=function(e){var t=e.freq,n=e.message;return Pr.Ik().nullable().test({name:\"frequencyObjectRequired\",message:n,test:function(e){var n=this.parent.frequency;return!Mr(n,t)||null!=e}})},kr=function(e){var t=e.freq,n=e.message;return Pr.Yj().nullable().test({name:\"frequencyStartDateRequired\",message:n,test:function(e){var n=this.parent.frequency;return!Mr(n,t)||null!=e&&\"\"!==e}}).test({name:\"isValidDate\",message:\"Invalid Date\",test:function(e){var n=this.parent.frequency;return!Mr(n,t)||!e||!!(0,y.vd)(e)&&(0,y.rN)(e)}})},Br=function(e){var t=e.freq,n=e.message;return Pr.YO().nullable().test({name:\"frequencyEndDateRequired\",message:n,test:function(e){var n=this.parent.frequency;return!Mr(n,t)||null!=e}}).test({name:\"isValidEndDate\",message:\"Invalid Date\",test:function(e){var n=this.parent.frequency;return!Mr(n,t)||!e||0===e.length||\"Invalid date\"!==e[1]&&!(0,y.m_)(e)}}).test({name:\"endDateGreaterThanStartDate\",message:\"End Date should be greater than Start Date\",test:function(e){var n=this.parent.frequency;return!Mr(n,t)||!e||0===e.length||!(0,y.dE)(e)}}).test({name:\"endDateExists\",message:\"End Date required\",test:function(e){var n=this.parent.frequency;return!Mr(n,t)||!e||0===e.length||!!e[1]}})},Fr=function(){return Pr.Ik().shape({userRole:Pr.YO().of(Pr.Ik().shape({checked:Pr.zM().required(),label:Pr.Yj().required(),value:Pr.ai().required()})).test({name:\"isAnyChecked\",message:\"User Role required\",test:function(e){return null==e?void 0:e.some(function(e){return!0===(null==e?void 0:e.checked)})}}),title:Pr.Yj().min(3,\"Title should be at least 3 characters\").max(35,\"Title should be a max of 35 characters\").required(\"Title required\"),description:Pr.Yj().min(10,\"Description should be at least 10 characters\").max(300,\"Description should be a max of 300 characters\").required(\"Description required\"),criteria:Pr.ai().nullable().test({name:\"criteriaPercentage\",message:\"Criteria required\",test:function(e){var t=this.parent,n=t.showCriteria,r=t.criteriaPlaceholder;return!n||\"PERCENTAGE\"!==r||(null==e?this.createError({message:\"Criteria required\"}):e<0?this.createError({message:\"Criteria Percentage should be a min of 0\"}):!(e>100)||this.createError({message:\"Criteria Percentage should be a max of 100\"}))}}).test({name:\"criteriaNumber\",message:\"Criteria required\",test:function(e){var t=this.parent,n=t.showCriteria,r=t.criteriaPlaceholder;return!n||\"NUMBER\"!==r||(null==e?this.createError({message:\"Criteria required\"}):e<1?this.createError({message:\"Criteria Number should be a min of 1\"}):!(e>31)||this.createError({message:\"Criteria Number should be a max of 31\"}))}}),frequency:Pr.Yj().test({name:\"frequencyRequired\",message:\"Frequency required\",test:function(e){return!this.parent.showFrequency||null!=e&&\"\"!==e}}),frequencyOnceDate:kr({freq:\"Once\",message:\"Date required\"}),frequencyOnceTime:xr({freq:\"Once\",message:\"Time required\"}),frequencyDailyStartDate:kr({freq:\"Daily\",message:\"Start Date required\"}),frequencyDailyEndDate:Br({freq:\"Daily\",message:\"End Date required\"}),frequencyDailyTime:xr({freq:\"Daily\",message:\"Time required\"}),frequencyWeeklyStartDate:kr({freq:\"Weekly\",message:\"Start Date required\"}),frequencyWeeklyEndDate:Br({freq:\"Weekly\",message:\"End Date required\"}),frequencyWeeklyDay:Ir({freq:\"Weekly\",message:\"Day required\"}),frequencyWeeklyTime:xr({freq:\"Weekly\",message:\"Time required\"}),frequencyMonthlyStartDate:kr({freq:\"Monthly\",message:\"Start Date required\"}),frequencyMonthlyEndDate:Br({freq:\"Monthly\",message:\"End Date required\"}),frequencyMonthlyDayOfMonth:Ir({freq:\"Monthly\",message:\"Day of Month required\"}),frequencyMonthlyTime:xr({freq:\"Monthly\",message:\"Time required\"}),subscription:Pr.zM().required(\"Subscription required\")})};const jr=function(e){var t,n,a=e.values,i=e.setFieldValue,s=e.currentDate,u=e.initialForm;return l().createElement(l().Fragment,null,l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"START_DATE\")),\"*\"),l().createElement(w.A,{value:a.frequencyWeeklyStartDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=a&&null!==(t=a.frequencyWeeklyEndDate)&&void 0!==t&&t.length&&i(\"frequencyWeeklyEndDate\",[e,(0,y.Yq)(a.frequencyWeeklyEndDate[1],\"MM/DD/YYYY\")]),i(\"frequencyWeeklyStartDate\",e),i(\"globalStartDate\",e)},minDate:s,customFormat:null}),l().createElement(T.A,{errName:\"frequencyWeeklyStartDate\"})),l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"END_DATE\")),\"*\"),l().createElement(w.A,{value:null!==(t=null===(n=a.frequencyWeeklyEndDate)||void 0===n?void 0:n[1])&&void 0!==t?t:\"\",handleChangeDatePicker:function(e){i(\"frequencyWeeklyEndDate\",[(0,y.Yq)(a.frequencyWeeklyStartDate,\"MM/DD/YYYY\"),e])},minDate:a.frequencyWeeklyStartDate,customFormat:null}),l().createElement(T.A,{errName:\"frequencyWeeklyEndDate\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"DAY\")),\"*\"),l().createElement(b.D0,{name:\"frequencyWeeklyDay\"},function(){return l().createElement(S.A,{name:\"frequencyWeeklyDay\",onChange:function(e,t){i(\"frequencyWeeklyDay\",t)},options:Nr,labelKey:\"label\",label:\"Day\",selectedOption:a.frequencyWeeklyDay,value:a.frequencyWeeklyDay,defaultLabel:\"Select Day\"})}),l().createElement(T.A,{errName:\"frequencyWeeklyDay\"})),l().createElement(r.A,{mb:2,width:\"48%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"TIME\")),\"*\"),l().createElement(r.A,{className:\"time-picker-wrapper\"},l().createElement(Or,{handleValueChange:function(e){i(\"frequencyWeeklyTime\",e)},defaultValue:u.frequencyWeeklyTime})),l().createElement(T.A,{errName:\"frequencyWeeklyTime\"}))))};var Hr=y.Ax.currentDate;const Ur=function(e){var t=e.initialForm,n=e.SelectedRowItem,a=e.onHandleSubmit,i=e.onHandleUpdate,s=e.userRolesList,u=e.getSelectedIds,c=e.capitalizeFirstLetter,d=e.setFrequency,p=e.listOfFrequency,f=e.frequency,g=e.daysList,h=e.onHandleCancel;return l().createElement(b.l1,{initialValues:t,validationSchema:Fr,enableReinitialize:!0,onSubmit:function(e,t){5===Object.keys(n).length?a(e):i(e)}},function(e){var a=e.values,i=e.setFieldValue;return l().createElement(b.lV,{className:\"popupContent\",onKeyDown:function(e){return\"Enter\"===e.key&&e.preventDefault()}},l().createElement(r.A,{className:\"input-field-wrapper\",height:\"inherit\",overflow:\"auto\"},l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(m.A,{variant:\"subtitle2\"},(0,_.t)(\"USER_ROLE\"),\"*\"),l().createElement(b.D0,{name:\"userRole\"},function(){var e;return l().createElement(O.A,{key:\"newParent\",name:\"User Role\",showClearAll:!0,labelKey:\"label\",options:s,onCheckboxChange:function(e){i(\"userRole\",e),u(e)},selectedOptions:(null==a||null===(e=a.userRole)||void 0===e?void 0:e.length)>0&&(null==a?void 0:a.userRole.filter(function(e){return e.checked}).map(function(e){return e.label}))||[],defaultLabel:\"Select Roles\"})}),l().createElement(T.A,{errName:\"userRole\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"TITLE\")),\"*\"),l().createElement(b.D0,{name:\"title\",className:\"inputField\",onChange:function(e){i(\"title\",e.target.value)},placeholder:(null==n?void 0:n.notificationReason)===Lr.LIQUIDATION_TARGET_UPLOADED?\"\".concat((0,_.t)(\"LIQUIDATION_TITLE_PLACEHOLDER\")):\"\".concat((0,_.t)(\"TITLE_PLACEHOLDER\")),defaultValue:null==a?void 0:a.title}),l().createElement(T.A,{errName:\"title\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"DESCRIPTION\")),\"*\"),l().createElement(b.D0,{name:\"description\",type:\"text\",className:\"inputField text-area\",component:\"textarea\",rows:\"3\",cols:\"3\",onChange:function(e){i(\"description\",e.target.value)},placeholder:(null==n?void 0:n.notificationReason)===Lr.LIQUIDATION_TARGET_UPLOADED?\"\".concat((0,_.t)(\"LIQUIDATION_DESCRIPTION_PLACEHOLDER\")):\"\".concat((0,_.t)(\"DESCRIPTION_PLACEHOLDER\")),defaultValue:null==a?void 0:a.description}),l().createElement(T.A,{errName:\"description\"}))),(null==n?void 0:n.showCriteria)&&l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"CRITERIA\")),\"*\"),l().createElement(b.D0,{name:\"criteria\",type:\"number\",className:\"inputField\",onChange:function(e){i(\"criteria\",e.target.value)},onKeyPress:function(e){(e.charCode<48||e.charCode>57)&&e.preventDefault()},placeholder:\"NUMBER\"===n.criteriaPlaceholder?\"Number of Days\":c(n.criteriaPlaceholder),defaultValue:null==a?void 0:a.criteria}),l().createElement(T.A,{errName:\"criteria\"}))),(null==n?void 0:n.showFrequency)&&l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"FREQUENCY\")),\"*\"),l().createElement(b.D0,{name:\"frequency\"},function(){return l().createElement(S.A,{name:\"frequency\",onChange:function(e,t){d(t),i(\"frequency\",t)},options:p,labelKey:\"label\",label:\"frequency\",selectedOption:a.frequency,value:a.frequency,defaultLabel:\"Select Frequency\"})}),l().createElement(T.A,{errName:\"frequency\"}))),(null==n?void 0:n.showFrequency)&&\"Once\"===f&&l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"DATE\")),\"*\"),l().createElement(w.A,{value:a.frequencyOnceDate,handleChangeDatePicker:function(e){i(\"frequencyOnceDate\",e),i(\"globalStartDate\",e)},minDate:Hr,customFormat:null}),l().createElement(T.A,{errName:\"frequencyOnceDate\"})),l().createElement(r.A,{mb:2,width:\"50%\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"TIME\")),\"*\"),l().createElement(r.A,{className:\"time-picker-wrapper\"},l().createElement(Or,{handleValueChange:function(e){i(\"frequencyOnceTime\",e)},defaultValue:t.frequencyOnceTime})),l().createElement(T.A,{errName:\"frequencyOnceTime\"}))),(null==n?void 0:n.showFrequency)&&\"Daily\"===f&&l().createElement(Dr,{values:a,setFieldValue:i,currentDate:Hr,initialForm:t}),(null==n?void 0:n.showFrequency)&&\"Weekly\"===f&&l().createElement(jr,{values:a,setFieldValue:i,currentDate:Hr,initialForm:t}),(null==n?void 0:n.showFrequency)&&\"Monthly\"===f&&l().createElement(Rr,{values:a,setFieldValue:i,currentDate:Hr,daysList:g,initialForm:t}),l().createElement(r.A,{mb:2,className:\"drawer-switch-component\"},l().createElement(m.A,{variant:\"subtitle2\"},\"\".concat((0,_.t)(\"SUBSCRIPTION\")),\"*\"),l().createElement(D.A,{isChecked:a.subscription,handleChange:function(e){i(\"subscription\",e)},value:a.subscription,label:\"Turn On for Subscribing\",labelPlacement:\"start\"}),l().createElement(T.A,{errName:\"subscription\"}))),l().createElement(o.A,{direction:\"row\",gap:2,justifyContent:\"end\"},l().createElement(C.A,{variant:\"outlined\",buttonName:(0,_.t)(\"CANCEL\"),onButtonClick:h,fullwidth:!1,color:\"secondary\"}),l().createElement(C.A,{variant:\"contained\",buttonName:(0,_.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))})};n(3362);var Yr=n(95692),Gr=function(e){return new Promise(function(t,n){var r;null===(r=Yr.N.get(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})},zr=function(e,t){var n=null;return\"Once\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyOnceDate,\" \").concat(null==t?void 0:t.frequencyOnceTime),\"YYYY-MM-DD\"):\"Daily\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyDailyStartDate,\" \").concat(null==t?void 0:t.frequencyDailyTime),\"YYYY-MM-DD\"):\"Weekly\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyWeeklyStartDate,\" \").concat(null==t?void 0:t.frequencyWeeklyTime),\"YYYY-MM-DD\"):\"Monthly\"===e&&(n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyMonthlyStartDate,\" \").concat(null==t?void 0:t.frequencyMonthlyTime),\"YYYY-MM-DD\")),n},Vr=function(e,t){var n=null;return\"Once\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyOnceDate,\" \").concat(null==t?void 0:t.frequencyOnceTime),\"HH:mm:ss\"):\"Daily\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyDailyStartDate,\" \").concat(null==t?void 0:t.frequencyDailyTime),\"HH:mm:ss\"):\"Weekly\"===e?n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyWeeklyStartDate,\" \").concat(null==t?void 0:t.frequencyWeeklyTime),\"HH:mm:ss\"):\"Monthly\"===e&&(n=(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyMonthlyStartDate,\" \").concat(null==t?void 0:t.frequencyMonthlyTime),\"HH:mm:ss\")),n},qr=function(e,t){var n,r,o,a,i=null;if(\"Daily\"===e)n=2===(null==t||null===(a=t.frequencyDailyEndDate)||void 0===a?void 0:a.length)?(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyDailyEndDate[1],\" \").concat(null==t?void 0:t.frequencyDailyTime),\"YYYY-MM-DD\"):null;else if(\"Monthly\"===e){var l;r=2===(null==t||null===(l=t.frequencyMonthlyEndDate)||void 0===l?void 0:l.length)?(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyMonthlyEndDate[1],\" \").concat(null==t?void 0:t.frequencyMonthlyTime),\"YYYY-MM-DD\"):null}else if(\"Weekly\"===e){var s;o=2===(null==t||null===(s=t.frequencyWeeklyEndDate)||void 0===s?void 0:s.length)?(0,y.u6)(\"\".concat(null==t?void 0:t.frequencyWeeklyEndDate[1],\" \").concat(null==t?void 0:t.frequencyWeeklyTime),\"YYYY-MM-DD\"):null}return\"Daily\"===e?i=n:\"Monthly\"===e?i=r:\"Weekly\"===e&&(i=o),i};function Wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Qr(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Kr=function(e){var t,n,a,u=e.isDrawerOpen,c=void 0!==u&&u,d=e.onRequestClose,f=void 0===d?function(){}:d,g=e.SelectedRowItem,h=void 0===g?{}:g,b=(0,i.useContext)(p.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,S=b.triggerShowLoader,T=b.triggerToastMsg,O=null===(t=C.selectedCountry)||void 0===t?void 0:t.countryCode,D=w,R=null==C||null===(n=C.UserDetails)||void 0===n?void 0:n.user_id,N=null!==(a=null==C?void 0:C.AccessToken)&&void 0!==a?a:\"\",L=null==C?void 0:C.selectedBusinessUnit,P=(0,y.SK)(\"\".concat(null==h?void 0:h.start_date,\" \").concat(null==h?void 0:h.time),\"MM/DD/YYYY\"),M=(0,y.SK)(\"\".concat(null==h?void 0:h.end_date,\" \").concat(null==h?void 0:h.time),\"MM/DD/YYYY\"),x=(0,y.SK)(\"\".concat(null==h?void 0:h.start_date,\" \").concat(null==h?void 0:h.time),\"HH:mm:ss\"),I=(0,v.Bd)().t,k=Wr((0,i.useState)({userRole:\"\",title:\"\",description:\"\",criteria:\"\",frequency:\"\",frequencyOnceDate:\"\",frequencyOnceTime:\"\",frequencyDailyStartDate:\"\",frequencyDailyEndDate:\"\",frequencyDailyTime:\"\",frequencyWeeklyStartDate:\"\",frequencyWeeklyEndDate:\"\",frequencyWeeklyDay:\"\",frequencyWeeklyTime:\"\",frequencyMonthlyStartDate:\"\",frequencyMonthlyEndDate:\"\",frequencyMonthlyDayOfMonth:\"\",frequencyMonthlyTime:\"\",subscription:!1,showCriteria:h.showCriteria,criteriaPlaceholder:h.criteriaPlaceholder,editedStartDate:\"\",globalStartDate:\"\",showFrequency:h.showFrequency}),2),B=k[0],F=k[1],j=Wr((0,i.useState)([]),2),H=j[0],U=j[1],Y=Wr((0,i.useState)([]),2),G=Y[0],z=Y[1],V=Wr((0,i.useState)([]),2),q=V[0],W=V[1],Q=Wr((0,i.useState)([]),2),K=Q[0],$=Q[1],X=Wr((0,i.useState)(\"\"),2),J=X[0],Z=X[1];(0,i.useEffect)(function(){ee(),te(),ne()},[]);var ee=function(){var e,t={};t.domain=D,t.endPoint=s.p.SAVESALEHIERARCHY,t.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(N),\"bu-id\":null==L?void 0:L.bu_id},t.triggerLoader=S,null===(e=Gr(t))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.sales_hierarchy_view_List.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.sales_hierarchy_view_List.map(function(e){var t;return{checked:(null==h||null===(t=h.userRoles)||void 0===t?void 0:t.length)>0&&h.userRoles.includes(null==e?void 0:e.id),label:null==e?void 0:e.name,value:null==e?void 0:e.id}});if(Object.keys(h).length>4){var o=Nr.filter(function(e){return(null==h?void 0:h.day_of_week)===e.value});Z(re(null==h?void 0:h.frequency));var a=r.filter(function(e){return e.checked});ae(a),function(e,t){F(function(e){var t=e.SelectedRowItem,n=e.capitalizeFirstLetter,r=e.formattedStartDate,o=e.formattedStartTime,a=e.formattedEndDate,i=e.dayFilter;return{userRole:e.checkedFilter,title:null==t?void 0:t.title,description:null==t?void 0:t.description,criteria:null==t?void 0:t.criteria,frequency:n(null==t?void 0:t.frequency),editedStartDate:r,frequencyOnceDate:\"ONCE\"===(null==t?void 0:t.frequency)?r:null,frequencyOnceTime:\"ONCE\"===(null==t?void 0:t.frequency)?o:null,frequencyDailyStartDate:\"DAILY\"===(null==t?void 0:t.frequency)?r:null,frequencyDailyEndDate:\"DAILY\"===(null==t?void 0:t.frequency)?[r,a]:null,frequencyDailyTime:\"DAILY\"===(null==t?void 0:t.frequency)?o:null,frequencyWeeklyStartDate:\"WEEKLY\"===(null==t?void 0:t.frequency)?r:null,frequencyWeeklyEndDate:\"WEEKLY\"===(null==t?void 0:t.frequency)?[r,a]:null,frequencyWeeklyDay:\"WEEKLY\"===(null==t?void 0:t.frequency)?{label:i[0].label,value:null==t?void 0:t.day_of_week}:null,frequencyWeeklyTime:\"WEEKLY\"===(null==t?void 0:t.frequency)?o:null,frequencyMonthlyStartDate:\"MONTHLY\"===(null==t?void 0:t.frequency)?r:null,frequencyMonthlyEndDate:\"MONTHLY\"===(null==t?void 0:t.frequency)?[r,a]:null,frequencyMonthlyDayOfMonth:\"MONTHLY\"===(null==t?void 0:t.frequency)?{label:0===(null==t?void 0:t.day_of_month)?\"LAST_DAY_OF_MONTH\":t.day_of_month,value:null==t?void 0:t.day_of_month}:null,frequencyMonthlyTime:\"MONTHLY\"===(null==t?void 0:t.frequency)?o:null,subscription:null==t?void 0:t.subscription,showCriteria:null==t?void 0:t.showCriteria,showFrequency:t.showFrequency,globalStartDate:r,criteriaPlaceholder:t.criteriaPlaceholder}}({checkedFilter:t,SelectedRowItem:h,capitalizeFirstLetter:re,formattedStartDate:P,formattedStartTime:x,formattedEndDate:M,dayFilter:e}))}(o,a)}U(r)}else U([])}).catch(function(e){T({message:e,type:\"error\"})})},te=function(){var e,t={};t.domain=D,t.endPoint=s.p.GET_FREQUENCY,t.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(N)},t.triggerLoader=S,null===(e=Gr(t))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n,r=[];null==e||null===(n=e.data)||void 0===n||n.map(function(e){r.push(re(e))}),z(r)}else z([])}).catch(function(e){T({message:e,type:\"error\"})})},ne=function(){var e,t={};t.domain=D,t.endPoint=s.p.GET_DAYS,t.customHeaders={\"country-code\":O,Authorization:\"Bearer \".concat(N)},t.triggerLoader=S,null===(e=Gr(t))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.value}});W(r)}else W([])}).catch(function(e){T({message:e,type:\"error\"})})},re=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():\"\"},oe=function(e,t){var n,r,o,a,i={},l=s.p.GET_PUSHNOTIFICATIONSBYID.replace(\"__ID__\",\"\".concat(t?null==h?void 0:h.reasonId:null==h?void 0:h.id));return i.domain=D,i.endPoint=l,i.customHeaders={\"user-id\":R,\"country-code\":O,Authorization:\"Bearer \".concat(N),\"bu-id\":null==L?void 0:L.bu_id},i.payLoad={userRoles:K,description:null==e?void 0:e.description,subscription:null==e?void 0:e.subscription,title:null==e?void 0:e.title,criteria:Number(null==e?void 0:e.criteria),frequency:null!=h&&h.showFrequency?null==e?void 0:e.frequency.toUpperCase():null,start_date:zr(J,e),end_date:qr(J,e),day_of_week:\"Weekly\"===J?null==e||null===(n=e.frequencyWeeklyDay)||void 0===n?void 0:n.value:null,day_of_month:\"Monthly\"===J?null==e||null===(r=e.frequencyMonthlyDayOfMonth)||void 0===r?void 0:r.value:null,time:Vr(J,e)},t&&(i.payLoad.id=null==h?void 0:h.id),i.triggerLoader=S,null===(o=t?(a=i,new Promise(function(e,t){var n;null===(n=Yr.N.put(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})})):function(e){return new Promise(function(t,n){var r;null===(r=Yr.N.post(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})}(i))||void 0===o?void 0:o.then(function(e){var t,n;if(201===e.status||200===e.status)return f(!0),void T({message:e.data,type:\"success\"});throw T({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){T({message:e,type:\"error\"})})},ae=function(e){if(e.filter(function(e){return e.checked}).length>0){var t=e.filter(function(e){return e.checked}).map(function(e){return e.value});return $(t)}};return l().createElement(E.A,{isDrawerOpen:c,anchor:\"right\"},l().createElement(r.A,{className:\"popupMain\"},l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:1},l().createElement(m.A,{component:\"h1\",variant:\"h1\"},\"\".concat(I(\"CONFIGURE_PUSH_NOTIFICATION\"))),l().createElement(r.A,{onClick:function(){return f(!1)},\"data-testid\":\"onRequestClose\"},l().createElement(m.A,{className:\"icon-close closeIcon\"}))),l().createElement(r.A,{mb:2},l().createElement(m.A,{variant:\"subtitle1\",color:A.w.palette.primary.main},null==h?void 0:h.notificationReason)),l().createElement(Ur,{initialForm:B,SelectedRowItem:h,onHandleSubmit:function(e){return oe(e,!1)},onHandleUpdate:function(e){return oe(e,!0)},userRolesList:H,getSelectedIds:ae,capitalizeFirstLetter:re,setFrequency:Z,listOfFrequency:G,frequency:J,daysList:q,onHandleCancel:function(){f(!0)}})))};var $r=(0,Cr.Ay)(r.A)(function(e){return{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .table-edit-icon\":{fontSize:\"18px\",color:e.theme.palette.grey[200],margin:\"4px\",cursor:\"pointer\",border:\"none\",background:\"none\"}}});function Xr(e){return Xr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Xr(e)}function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach(function(t){eo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eo(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Xr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Xr(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return no(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?no(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ro=function(e){var t,n,m,v=e.RBACControls,A=(0,d.w)(v).hasUpdateAccess,y=(0,i.useContext)(p.v),E=y.BackOfficeProps,b=E.globalStore.User,C=E.baseurl,w=y.triggerShowLoader,S=null===(t=b.selectedCountry)||void 0===t?void 0:t.countryCode,T=C,O=null!==(n=null==b?void 0:b.AccessToken)&&void 0!==n?n:\"\",D=null===(m=b.UserDetails)||void 0===m?void 0:m.user_id,R=null==b?void 0:b.selectedBusinessUnit,N=to((0,i.useState)(!1),2),L=N[0],P=N[1],M=to((0,i.useState)({}),2),x=M[0],I=M[1],k=to((0,i.useState)(1),2),B=k[0],F=k[1],j=to((0,i.useState)([]),2),H=j[0],U=j[1],Y=to((0,i.useState)(0),2),G=Y[0],z=Y[1],V=to((0,i.useState)({pageNo:0,pageSize:10}),2),q=V[0],W=V[1],Q=q.pageNo,K=q.pageSize;(0,i.useEffect)(function(){$()},[q]);var $=function(){var e,t={};t.domain=T,t.endPoint=s.p.GET_PUSHNOTIFICATIONS,t.customHeaders={\"country-code\":S,\"bu-id\":null==R?void 0:R.bu_id,Authorization:\"Bearer \".concat(O)},t.payLoad={page_no:Q,page_size:K,sort_order:\"desc\"},t.triggerLoader=w,null===(e=Gr(t))||void 0===e||e.then(function(e){var t,n,r,o,a=1;if((null==e||null===(t=e.data)||void 0===t?void 0:t.total_elements)>K&&(a=Math.ceil((null==e||null===(o=e.data)||void 0===o?void 0:o.total_elements)/K)),F(a),z(null==e||null===(n=e.data)||void 0===n?void 0:n.total_elements),(null==e||null===(r=e.data)||void 0===r||null===(r=r.notification_reasons_view_list)||void 0===r?void 0:r.length)>0){var i,l=null==e||null===(i=e.data)||void 0===i||null===(i=i.notification_reasons_view_list)||void 0===i?void 0:i.map(function(e){return{id:null==e?void 0:e.id,showCriteria:null==e?void 0:e.is_threshold_applicable,reasonName:null==e?void 0:e.reason_name,subscription:null==e?void 0:e.is_subscribed,criteriaPlaceholder:null==e?void 0:e.threshold_value_type,showFrequency:null==e?void 0:e.is_scheduling_required}});U(l)}else U([])}).catch(function(e){console.log(\"Fetch Push Notifications\",e)})},X=function(e){var t,n=s.p.GET_PUSHNOTIFICATIONSBYID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.id)),r={};r.endPoint=n,r.domain=T,r.customHeaders={\"country-code\":S,\"user-id\":D,Authorization:\"Bearer \".concat(O)},r.triggerLoader=w,null===(t=Gr(r))||void 0===t||t.then(function(t){if(200===(null==t?void 0:t.status)||201===(null==t?void 0:t.status)){var n;n=0===Object.keys(null==t?void 0:t.data).length?{id:null==e?void 0:e.id,showCriteria:null==e?void 0:e.showCriteria,notificationReason:null==e?void 0:e.reasonName,criteriaPlaceholder:null==e?void 0:e.criteriaPlaceholder,showFrequency:null==e?void 0:e.showFrequency}:Zr(Zr({},null==t?void 0:t.data),{},{reasonId:null==e?void 0:e.id,showCriteria:null==e?void 0:e.showCriteria,notificationReason:null==e?void 0:e.reasonName,criteriaPlaceholder:null==e?void 0:e.criteriaPlaceholder,showFrequency:null==e?void 0:e.showFrequency}),P(!0),I(n)}}).catch(function(e){console.log(\"ERR in PushNotificationsById \".concat(e))})};return l().createElement($r,null,l().createElement(r.A,null,l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,{mb:2},l().createElement(h.A,{routePathName:[{name:c.F_.Configurations,path:c.fp.Configurations},{name:c.F_.Push_Notifications,path:c.fp.Push_Notifications}]}))),l().createElement(a.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},l().createElement(g.A,{rows:H,columnDefs:u.pL,frameworkComponents:{EditActionComponent:function(e){return function(e){var t=e.column,n=e.data,r=e.hasUpdateAccess,o=e.getPushNotificationsById;return\"action\"===(null==t?void 0:t.colId)?l().createElement(\"button\",{type:\"button\",className:\"icon-pencil table-edit-icon \".concat(r?\"\":\"disabled-label\"),onClick:function(){return r&&o(n)}}):\"subscription\"===(null==t?void 0:t.colId)?!0===n.subscription?l().createElement(\"p\",{className:\"smart-agro-lite-label green-bg\"},(0,_.t)(\"SUBSCRIBED\")):l().createElement(\"p\",{className:\"smart-agro-lite-label grey-bg\"},(0,_.t)(\"UNSUBSCRIBED\")):void 0}(Zr({hasUpdateAccess:A,getPushNotificationsById:X},e))}}})),l().createElement(f.A,{totalPageCount:B,onPageChange:function(e){W(function(t){return Zr(Zr({},t),{},{pageNo:Number(e)})})},totalElements:G}),L&&l().createElement(Kr,{isDrawerOpen:L,onRequestClose:function(e){P(!1),I(null),$()},SelectedRowItem:x})))}},71072:(e,t,n)=>{\"use strict\";var r=n(61828),o=n(88727);e.exports=Object.keys||function(e){return r(e,o)}},71083:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>yt});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>pe,hasStandardBrowserEnv:()=>ge,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});const{toString:a}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:l,toStringTag:s}=Symbol,u=(c=Object.create(null),e=>{const t=a.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const d=e=>(e=e.toLowerCase(),t=>u(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,g=p(\"undefined\"),h=d(\"ArrayBuffer\"),m=p(\"string\"),v=p(\"function\"),A=p(\"number\"),y=e=>null!==e&&\"object\"==typeof e,E=e=>{if(\"object\"!==u(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||l in e)},b=d(\"Date\"),_=d(\"File\"),C=d(\"Blob\"),w=d(\"FileList\"),S=d(\"URLSearchParams\"),[T,O,D,R]=[\"ReadableStream\",\"Request\",\"Response\",\"Headers\"].map(d);function N(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if(\"object\"!=typeof e&&(e=[e]),f(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function L(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:global,M=e=>!g(e)&&e!==P,x=(I=\"undefined\"!=typeof Uint8Array&&i(Uint8Array),e=>I&&e instanceof I);var I;const k=d(\"HTMLFormElement\"),B=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=d(\"RegExp\"),j=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};N(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)},H=d(\"AsyncFunction\"),U=(Y=\"function\"==typeof setImmediate,G=v(P.postMessage),Y?setImmediate:G?(z=`axios@${Math.random()}`,V=[],P.addEventListener(\"message\",({source:e,data:t})=>{e===P&&t===z&&V.length&&V.shift()()},!1),e=>{V.push(e),P.postMessage(z,\"*\")}):e=>setTimeout(e));var Y,G,z,V;const q=\"undefined\"!=typeof queueMicrotask?queueMicrotask.bind(P):\"undefined\"!=typeof process&&process.nextTick||U,W={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&(\"function\"==typeof FormData&&e instanceof FormData||v(e.append)&&(\"formdata\"===(t=u(e))||\"object\"===t&&v(e.toString)&&\"[object FormData]\"===e.toString()))},isArrayBufferView:function(e){let t;return t=\"undefined\"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:E,isReadableStream:T,isRequest:O,isResponse:D,isHeaders:R,isUndefined:g,isDate:b,isFile:_,isBlob:C,isRegExp:F,isFunction:v,isStream:e=>y(e)&&v(e.pipe),isURLSearchParams:S,isTypedArray:x,isFileList:w,forEach:N,merge:function e(){const{caseless:t}=M(this)&&this||{},n={},r=(r,o)=>{const a=t&&L(n,o)||o;E(n[a])&&E(r)?n[a]=e(n[a],r):E(r)?n[a]=e({},r):f(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&N(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(N(t,(t,r)=>{n&&v(t)?e[r]=o(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\"),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,\"super\",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,l;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],r&&!r(l,e,t)||s[l]||(t[l]=e[l],s[l]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!A(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[l]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,n)=>{if(v(e)&&-1!==[\"arguments\",\"caller\",\"callee\"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,\"writable\"in t?t.writable=!1:t.set||(t.set=()=>{throw Error(\"Can not rewrite read-only method '\"+n+\"'\")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:L,global:P,isContextDefined:M,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&\"FormData\"===e[s]&&e[l])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!(\"toJSON\"in e)){t[r]=e;const o=f(e)?[]:{};return N(e,(e,t)=>{const a=n(e,r+1);!g(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(y(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:U,asap:q,isIterable:e=>null!=e&&v(e[l])};function Q(e,t,n,r,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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(Q,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:W.toJSONObject(this.config),code:this.code,status:this.status}}});const K=Q.prototype,$={};[\"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=>{$[e]={value:e}}),Object.defineProperties(Q,$),Object.defineProperty(K,\"isAxiosError\",{value:!0}),Q.from=(e,t,n,r,o,a)=>{const i=Object.create(K);return W.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>\"isAxiosError\"!==e),Q.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const X=Q;function J(e){return W.isPlainObject(e)||W.isArray(e)}function Z(e){return W.endsWith(e,\"[]\")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map(function(e,t){return e=Z(e),!n&&t?\"[\"+e+\"]\":e}).join(n?\".\":\"\"):t}const te=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)}),ne=function(e,t,n){if(!W.isObject(e))throw new TypeError(\"target must be an object\");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,l=(n.Blob||\"undefined\"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw new TypeError(\"visitor must be a function\");function s(e){if(null===e)return\"\";if(W.isDate(e))return e.toISOString();if(W.isBoolean(e))return e.toString();if(!l&&W.isBlob(e))throw new X(\"Blob is not supported. Use a Buffer instead.\");return W.isArrayBuffer(e)||W.isTypedArray(e)?l&&\"function\"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let l=e;if(e&&!o&&\"object\"==typeof e)if(W.endsWith(n,\"{}\"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(J)}(e)||(W.isFileList(e)||W.endsWith(n,\"[]\"))&&(l=W.toArray(e)))return n=Z(n),l.forEach(function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===i?ee([n],r,a):null===i?n:n+\"[]\",s(e))}),!1;return!!J(e)||(t.append(ee(o,n,a),s(e)),!1)}const c=[],d=Object.assign(te,{defaultVisitor:u,convertValue:s,isVisitable:J});if(!W.isObject(e))throw new TypeError(\"data must be an object\");return function e(n,r){if(!W.isUndefined(n)){if(-1!==c.indexOf(n))throw Error(\"Circular reference detected in \"+r.join(\".\"));c.push(n),W.forEach(n,function(n,a){!0===(!(W.isUndefined(n)||null===n)&&o.call(t,n,W.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t};function re(e){const t={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\",\"%00\":\"\\0\"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function oe(e,t){this._pairs=[],e&&ne(e,this,t)}const ae=oe.prototype;ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map(function(e){return t(e[0])+\"=\"+t(e[1])},\"\").join(\"&\")};const ie=oe;function le(e){return encodeURIComponent(e).replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||le;W.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):W.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),a){const t=e.indexOf(\"#\");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+a}return e}const ue=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:\"undefined\"!=typeof URLSearchParams?URLSearchParams:ie,FormData:\"undefined\"!=typeof FormData?FormData:null,Blob:\"undefined\"!=typeof Blob?Blob:null},protocols:[\"http\",\"https\",\"file\",\"blob\",\"url\",\"data\"]},pe=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,fe=\"object\"==typeof navigator&&navigator||void 0,ge=pe&&(!fe||[\"ReactNative\",\"NativeScript\",\"NS\"].indexOf(fe.product)<0),he=\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&\"function\"==typeof self.importScripts,me=pe&&window.location.href||\"http://localhost\",ve={...r,...de},Ae=function(e){function t(e,n,r,o){let a=e[o++];if(\"__proto__\"===a)return!0;const i=Number.isFinite(+a),l=o>=e.length;return a=!a&&W.isArray(r)?r.length:a,l?(W.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&W.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&W.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(e,r)=>{t(function(e){return W.matchAll(/\\w+|\\[(\\w*)]/g,e).map(e=>\"[]\"===e[0]?\"\":e[1]||e[0])}(e),r,n,0)}),n}return null},ye={transitional:ce,adapter:[\"xhr\",\"http\",\"fetch\"],transformRequest:[function(e,t){const n=t.getContentType()||\"\",r=n.indexOf(\"application/json\")>-1,o=W.isObject(e);if(o&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return r?JSON.stringify(Ae(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType(\"application/x-www-form-urlencoded;charset=utf-8\",!1),e.toString();let a;if(o){if(n.indexOf(\"application/x-www-form-urlencoded\")>-1)return function(e,t){return ne(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ve.isNode&&W.isBuffer(e)?(this.append(t,e.toString(\"base64\")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=W.isFileList(e))||n.indexOf(\"multipart/form-data\")>-1){const t=this.env&&this.env.FormData;return ne(a?{\"files[]\":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType(\"application/json\",!1),function(e){if(W.isString(e))try{return(0,JSON.parse)(e),W.trim(e)}catch(e){if(\"SyntaxError\"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r=\"json\"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if(\"SyntaxError\"===e.name)throw X.from(e,X.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:\"XSRF-TOKEN\",xsrfHeaderName:\"X-XSRF-TOKEN\",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:\"application/json, text/plain, */*\",\"Content-Type\":void 0}}};W.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\"],e=>{ye.headers[e]={}});const Ee=ye,be=W.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\"]),_e=Symbol(\"internals\");function Ce(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:W.isArray(e)?e.map(we):String(e)}function Se(e,t,n,r,o){return W.isFunction(r)?r.call(this,t,n):(o&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ce(t);if(!o)throw new Error(\"header name must be a non-empty string\");const a=W.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=we(e))}const a=(e,t)=>W.forEach(e,(e,n)=>o(e,n,t));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split(\"\\n\").forEach(function(e){o=e.indexOf(\":\"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&be[n]||(\"set-cookie\"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+\", \"+r:r)}),t})(e),t);else if(W.isObject(e)&&W.isIterable(e)){let n,r,o={};for(const t of e){if(!W.isArray(t))throw TypeError(\"Object iterator must return a key-value pair\");o[r=t[0]]=(n=o[r])?W.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ce(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError(\"parser must be boolean|regexp|function\")}}}has(e,t){if(e=Ce(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ce(e)){const o=W.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return W.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,(r,o)=>{const a=W.findKey(n,o);if(a)return t[a]=we(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=we(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(\", \"):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+\": \"+t).join(\"\\n\")}getSetCookie(){return this.get(\"set-cookie\")||[]}get[Symbol.toStringTag](){return\"AxiosHeaders\"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ce(e);t[r]||(function(e,t){const n=W.toCamelCase(\" \"+t);[\"get\",\"set\",\"has\"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}Te.accessor([\"Content-Type\",\"Content-Length\",\"Accept\",\"Accept-Encoding\",\"User-Agent\",\"Authorization\"]),W.reduceDescriptors(Te.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),W.freezeMethods(Te);const Oe=Te;function De(e,t){const n=this||Ee,r=t||n,o=Oe.from(r.headers);let a=r.data;return W.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Re(e){return!(!e||!e.__CANCEL__)}function Ne(e,t,n){X.call(this,null==e?\"canceled\":e,X.ERR_CANCELED,t,n),this.name=\"CanceledError\"}W.inherits(Ne,X,{__CANCEL__:!0});const Le=Ne;function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new X(\"Request failed with status code \"+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Me=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),u=r[i];o||(o=s),n[a]=l,r[a]=s;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-o<t)return;const p=u&&s-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-l)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,l=a-r,s=o(l);r=a,e({loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&a<=i?(i-a)/s:void 0,event:n,lengthComputable:null!=i,[t?\"download\":\"upload\"]:!0})},n)},xe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ie=e=>(...t)=>W.asap(()=>e(...t)),ke=ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ve.origin),ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent)):()=>!0,Be=ve.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+\"=\"+encodeURIComponent(t)];W.isNumber(n)&&i.push(\"expires=\"+new Date(n).toGMTString()),W.isString(r)&&i.push(\"path=\"+r),W.isString(o)&&i.push(\"domain=\"+o),!0===a&&i.push(\"secure\"),document.cookie=i.join(\"; \")},read(e){const t=document.cookie.match(new RegExp(\"(^|;\\\\s*)(\"+e+\")=([^;]*)\"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,\"\",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t,n){let r=!/^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\\/?\\/$/,\"\")+\"/\"+t.replace(/^\\/+/,\"\"):e}(e,t):t}const je=e=>e instanceof Oe?{...e}:e;function He(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function o(e,t,n,o){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!W.isUndefined(t))return r(void 0,t)}function i(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,n)=>o(je(e),je(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(r){const a=s[r]||o,i=a(e[r],t[r],r);W.isUndefined(i)&&a!==l||(n[r]=i)}),n}const Ue=e=>{const t=He({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:s}=t;if(t.headers=l=Oe.from(l),t.url=se(Fe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set(\"Authorization\",\"Basic \"+btoa((s.username||\"\")+\":\"+(s.password?unescape(encodeURIComponent(s.password)):\"\"))),W.isFormData(r))if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(\";\").map(e=>e.trim()).filter(Boolean):[];l.setContentType([e||\"multipart/form-data\",...t].join(\"; \"))}if(ve.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(t)),o||!1!==o&&ke(t.url))){const e=a&&i&&Be.read(i);e&&l.set(a,e)}return t},Ye=\"undefined\"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ue(e);let o=r.data;const a=Oe.from(r.headers).normalize();let i,l,s,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function g(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener(\"abort\",i)}let h=new XMLHttpRequest;function m(){if(!h)return;const r=Oe.from(\"getAllResponseHeaders\"in h&&h.getAllResponseHeaders());Pe(function(e){t(e),g()},function(e){n(e),g()},{data:d&&\"text\"!==d&&\"json\"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,\"onloadend\"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf(\"file:\"))&&setTimeout(m)},h.onabort=function(){h&&(n(new X(\"Request aborted\",X.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new X(\"Network Error\",X.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?\"timeout of \"+r.timeout+\"ms exceeded\":\"timeout exceeded\";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new X(t,o.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,h)),h=null},void 0===o&&a.setContentType(null),\"setRequestHeader\"in h&&W.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),W.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&\"json\"!==d&&(h.responseType=r.responseType),f&&([s,c]=Me(f,!0),h.addEventListener(\"progress\",s)),p&&h.upload&&([l,u]=Me(p),h.upload.addEventListener(\"progress\",l),h.upload.addEventListener(\"loadend\",u)),(r.cancelToken||r.signal)&&(i=t=>{h&&(n(!t||t.type?new Le(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener(\"abort\",i)));const v=function(e){const t=/^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(e);return t&&t[1]||\"\"}(r.url);v&&-1===ve.protocols.indexOf(v)?n(new X(\"Unsupported protocol \"+v+\":\",X.ERR_BAD_REQUEST,e)):h.send(o||null)})},Ge=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof X?t:new Le(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new X(`timeout ${t} of ms exceeded`,X.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener(\"abort\",o)}),e=null)};e.forEach(e=>e.addEventListener(\"abort\",o));const{signal:l}=r;return l.unsubscribe=()=>W.asap(i),l}},ze=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ve=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ze(n,t)}(e,t);let a,i=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},qe=\"function\"==typeof fetch&&\"function\"==typeof Request&&\"function\"==typeof Response,We=qe&&\"function\"==typeof ReadableStream,Qe=qe&&(\"function\"==typeof TextEncoder?(Ke=new TextEncoder,e=>Ke.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ke;const $e=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Xe=We&&$e(()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:\"POST\",get duplex(){return e=!0,\"half\"}}).headers.has(\"Content-Type\");return e&&!t}),Je=We&&$e(()=>W.isReadableStream(new Response(\"\").body)),Ze={stream:Je&&(e=>e.body)};var et;qe&&(et=new Response,[\"text\",\"arrayBuffer\",\"blob\",\"formData\",\"stream\"].forEach(e=>{!Ze[e]&&(Ze[e]=W.isFunction(et[e])?t=>t[e]():(t,n)=>{throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})}));const tt={http:null,xhr:Ye,fetch:qe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:c,withCredentials:d=\"same-origin\",fetchOptions:p}=Ue(e);u=u?(u+\"\").toLowerCase():\"text\";let f,g=Ge([o,a&&a.toAbortSignal()],i);const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let m;try{if(s&&Xe&&\"get\"!==n&&\"head\"!==n&&0!==(m=await(async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(ve.origin,{method:\"POST\",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=\"\"),W.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n})(c,r))){let e,n=new Request(t,{method:\"POST\",body:r,duplex:\"half\"});if(W.isFormData(r)&&(e=n.headers.get(\"content-type\"))&&c.setContentType(e),n.body){const[e,t]=xe(m,Me(Ie(s)));r=Ve(n.body,65536,e,t)}}W.isString(d)||(d=d?\"include\":\"omit\");const o=\"credentials\"in Request.prototype;f=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:\"half\",credentials:o?d:void 0});let a=await fetch(f,p);const i=Je&&(\"stream\"===u||\"response\"===u);if(Je&&(l||i&&h)){const e={};[\"status\",\"statusText\",\"headers\"].forEach(t=>{e[t]=a[t]});const t=W.toFiniteNumber(a.headers.get(\"content-length\")),[n,r]=l&&xe(t,Me(Ie(l),!0))||[];a=new Response(Ve(a.body,65536,n,()=>{r&&r(),h&&h()}),e)}u=u||\"text\";let v=await Ze[W.findKey(Ze,u)||\"text\"](a,e);return!i&&h&&h(),await new Promise((t,n)=>{Pe(t,n,{data:v,headers:Oe.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:f})})}catch(t){if(h&&h(),t&&\"TypeError\"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new X(\"Network Error\",X.ERR_NETWORK,e,f),{cause:t.cause||t});throw X.from(t,t&&t.code,e,f)}})};W.forEach(tt,(e,t)=>{if(e){try{Object.defineProperty(e,\"name\",{value:t})}catch(e){}Object.defineProperty(e,\"adapterName\",{value:t})}});const nt=e=>`- ${e}`,rt=e=>W.isFunction(e)||null===e||!1===e,ot=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!rt(n)&&(r=tt[(t=String(n)).toLowerCase()],void 0===r))throw new X(`Unknown adapter '${t}'`);if(r)break;o[t||\"#\"+a]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?\"is not supported by the environment\":\"is not available in the build\"));let n=t?e.length>1?\"since :\\n\"+e.map(nt).join(\"\\n\"):\" \"+nt(e[0]):\"as no adapter specified\";throw new X(\"There is no suitable adapter to dispatch the request \"+n,\"ERR_NOT_SUPPORT\")}return r};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Le(null,e)}function it(e){return at(e),e.headers=Oe.from(e.headers),e.data=De.call(e,e.transformRequest),-1!==[\"post\",\"put\",\"patch\"].indexOf(e.method)&&e.headers.setContentType(\"application/x-www-form-urlencoded\",!1),ot(e.adapter||Ee.adapter)(e).then(function(t){return at(e),t.data=De.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t},function(t){return Re(t)||(at(e),t&&t.response&&(t.response.data=De.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)})}const lt=\"1.10.0\",st={};[\"object\",\"boolean\",\"number\",\"function\",\"string\",\"symbol\"].forEach((e,t)=>{st[e]=function(n){return typeof n===e||\"a\"+(t<1?\"n \":\" \")+e}});const ut={};st.transitional=function(e,t,n){function r(e,t){return\"[Axios v\"+lt+\"] Transitional option '\"+e+\"'\"+t+(n?\". \"+n:\"\")}return(n,o,a)=>{if(!1===e)throw new X(r(o,\" has been removed\"+(t?\" in \"+t:\"\")),X.ERR_DEPRECATED);return t&&!ut[o]&&(ut[o]=!0,console.warn(r(o,\" has been deprecated since v\"+t+\" and will be removed in the near future\"))),!e||e(n,o,a)}},st.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ct={assertOptions:function(e,t,n){if(\"object\"!=typeof e)throw new X(\"options must be an object\",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new X(\"option \"+a+\" must be \"+n,X.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new X(\"Unknown option \"+a,X.ERR_BAD_OPTION)}},validators:st},dt=ct.validators;class pt{constructor(e){this.defaults=e||{},this.interceptors={request:new ue,response:new ue}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\\n/,\"\"):\"\";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\\n.+\\n/,\"\"))&&(e.stack+=\"\\n\"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){\"string\"==typeof e?(t=t||{}).url=e:t=e||{},t=He(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:ct.assertOptions(r,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ct.assertOptions(t,{baseUrl:dt.spelling(\"baseURL\"),withXsrfToken:dt.spelling(\"withXSRFToken\")},!0),t.method=(t.method||this.defaults.method||\"get\").toLowerCase();let a=o&&W.merge(o.common,o[t.method]);o&&W.forEach([\"delete\",\"get\",\"head\",\"post\",\"put\",\"patch\",\"common\"],e=>{delete o[e]}),t.headers=Oe.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach(function(e){\"function\"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const s=[];let u;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let c,d=0;if(!l){const e=[it.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let p=t;for(d=0;d<c;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=it.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,c=s.length;d<c;)u=u.then(s[d++],s[d++]);return u}getUri(e){return se(Fe((e=He(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}W.forEach([\"delete\",\"get\",\"head\",\"options\"],function(e){pt.prototype[e]=function(t,n){return this.request(He(n||{},{method:e,url:t,data:(n||{}).data}))}}),W.forEach([\"post\",\"put\",\"patch\"],function(e){function t(t){return function(n,r,o){return this.request(He(o||{},{method:e,headers:t?{\"Content-Type\":\"multipart/form-data\"}:{},url:n,data:r}))}}pt.prototype[e]=t(),pt.prototype[e+\"Form\"]=t(!0)});const ft=pt;class gt{constructor(e){if(\"function\"!=typeof e)throw new TypeError(\"executor must be a function.\");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Le(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gt(function(t){e=t}),cancel:e}}}const ht=gt,mt={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(mt).forEach(([e,t])=>{mt[t]=e});const vt=mt,At=function e(t){const n=new ft(t),r=o(ft.prototype.request,n);return W.extend(r,ft.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(He(t,n))},r}(Ee);At.Axios=ft,At.CanceledError=Le,At.CancelToken=ht,At.isCancel=Re,At.VERSION=lt,At.toFormData=ne,At.AxiosError=X,At.Cancel=At.CanceledError,At.all=function(e){return Promise.all(e)},At.spread=function(e){return function(t){return e.apply(null,t)}},At.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},At.mergeConfig=He,At.AxiosHeaders=Oe,At.formToJSON=e=>Ae(W.isHTMLForm(e)?new FormData(e):e),At.getAdapter=ot,At.HttpStatusCode=vt,At.default=At;const yt=At},71190:(e,t,n)=>{\"use strict\";var r=n(74623),o=n(96180);Object.defineProperty(t,\"__esModule\",{value:!0}),t.getDomTreeShapes=b,t.findNativeHandler=C,t.default=t.SwipeableViewsContext=void 0;var a=o(n(26036)),i=o(n(36593)),l=o(n(63425)),s=o(n(65673)),u=o(n(29362)),c=o(n(42670)),d=o(n(9793)),p=r(n(81970)),f=(o(n(5556)),o(n(9771)),n(77004));function g(e,t,n,r){return e.addEventListener(t,n,r),{remove:function(){e.removeEventListener(t,n,r)}}}var h={direction:\"ltr\",display:\"flex\",willChange:\"transform\"},m={width:\"100%\",WebkitFlexShrink:0,flexShrink:0,overflow:\"auto\"},v={root:{x:{overflowX:\"hidden\"},\"x-reverse\":{overflowX:\"hidden\"},y:{overflowY:\"hidden\"},\"y-reverse\":{overflowY:\"hidden\"}},flexDirection:{x:\"row\",\"x-reverse\":\"row-reverse\",y:\"column\",\"y-reverse\":\"column-reverse\"},transform:{x:function(e){return\"translate(\".concat(-e,\"%, 0)\")},\"x-reverse\":function(e){return\"translate(\".concat(e,\"%, 0)\")},y:function(e){return\"translate(0, \".concat(-e,\"%)\")},\"y-reverse\":function(e){return\"translate(0, \".concat(e,\"%)\")}},length:{x:\"width\",\"x-reverse\":\"width\",y:\"height\",\"y-reverse\":\"height\"},rotationMatrix:{x:{x:[1,0],y:[0,1]},\"x-reverse\":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},\"y-reverse\":{x:[0,-1],y:[1,0]}},scrollPosition:{x:\"scrollLeft\",\"x-reverse\":\"scrollLeft\",y:\"scrollTop\",\"y-reverse\":\"scrollTop\"},scrollLength:{x:\"scrollWidth\",\"x-reverse\":\"scrollWidth\",y:\"scrollHeight\",\"y-reverse\":\"scrollHeight\"},clientLength:{x:\"clientWidth\",\"x-reverse\":\"clientWidth\",y:\"clientHeight\",\"y-reverse\":\"clientHeight\"}};function A(e,t){var n=t.duration,r=t.easeFunction,o=t.delay;return\"\".concat(e,\" \").concat(n,\" \").concat(r,\" \").concat(o)}function y(e,t){var n=v.rotationMatrix[t];return{pageX:n.x[0]*e.pageX+n.x[1]*e.pageY,pageY:n.y[0]*e.pageX+n.y[1]*e.pageY}}function E(e){return e.touches=[{pageX:e.pageX,pageY:e.pageY}],e}function b(e,t){for(var n=[];e&&e!==t&&e!==document.body&&!e.hasAttribute(\"data-swipeable\");){var r=window.getComputedStyle(e);\"absolute\"===r.getPropertyValue(\"position\")||\"hidden\"===r.getPropertyValue(\"overflow-x\")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push({element:e,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),e=e.parentNode}return n}var _=null;function C(e){var t=e.domTreeShapes,n=e.pageX,r=e.startX,o=e.axis;return t.some(function(e){var t=n>=r;\"x\"!==o&&\"y\"!==o||(t=!t);var a=Math.round(e[v.scrollPosition[o]]),i=a>0,l=a+e[v.clientLength[o]]<e[v.scrollLength[o]];return!!(t&&l||!t&&i)&&(_=e.element,!0)})}var w=p.createContext();t.SwipeableViewsContext=w;var S=function(e){function t(e){var n;return(0,l.default)(this,t),(n=(0,u.default)(this,(0,c.default)(t).call(this,e))).rootNode=null,n.containerNode=null,n.ignoreNextScrollEvents=!1,n.viewLength=0,n.startX=0,n.lastX=0,n.vx=0,n.startY=0,n.isSwiping=void 0,n.started=!1,n.startIndex=0,n.transitionListener=null,n.touchMoveListener=null,n.activeSlide=null,n.indexCurrent=null,n.firstRenderTimeout=null,n.setRootNode=function(e){n.rootNode=e},n.setContainerNode=function(e){n.containerNode=e},n.setActiveSlide=function(e){n.activeSlide=e,n.updateHeight()},n.handleSwipeStart=function(e){var t=n.props.axis,r=y(e.touches[0],t);n.viewLength=n.rootNode.getBoundingClientRect()[v.length[t]],n.startX=r.pageX,n.lastX=r.pageX,n.vx=0,n.startY=r.pageY,n.isSwiping=void 0,n.started=!0;var o=window.getComputedStyle(n.containerNode),a=o.getPropertyValue(\"-webkit-transform\")||o.getPropertyValue(\"transform\");if(a&&\"none\"!==a){var i=a.split(\"(\")[1].split(\")\")[0].split(\",\"),l=window.getComputedStyle(n.rootNode),s=y({pageX:parseInt(i[4],10),pageY:parseInt(i[5],10)},t);n.startIndex=-s.pageX/(n.viewLength-parseInt(l.paddingLeft,10)-parseInt(l.paddingRight,10))||0}},n.handleSwipeMove=function(e){if(n.started){if(null===_||_===n.rootNode){var t=n.props,r=t.axis,o=t.children,a=t.ignoreNativeScroll,i=t.onSwitching,l=t.resistance,s=y(e.touches[0],r);if(void 0===n.isSwiping){var u=Math.abs(s.pageX-n.startX),c=Math.abs(s.pageY-n.startY),d=u>c&&u>f.constant.UNCERTAINTY_THRESHOLD;if(!l&&(\"y\"===r||\"y-reverse\"===r)&&(0===n.indexCurrent&&n.startX<s.pageX||n.indexCurrent===p.Children.count(n.props.children)-1&&n.startX>s.pageX))return void(n.isSwiping=!1);if(u>c&&e.preventDefault(),!0===d||c>f.constant.UNCERTAINTY_THRESHOLD)return n.isSwiping=d,void(n.startX=s.pageX)}if(!0===n.isSwiping){e.preventDefault(),n.vx=.5*n.vx+.5*(s.pageX-n.lastX),n.lastX=s.pageX;var g=(0,f.computeIndex)({children:o,resistance:l,pageX:s.pageX,startIndex:n.startIndex,startX:n.startX,viewLength:n.viewLength}),h=g.index,m=g.startX;if(null===_&&!a&&C({domTreeShapes:b(e.target,n.rootNode),startX:n.startX,pageX:s.pageX,axis:r}))return;m?n.startX=m:null===_&&(_=n.rootNode),n.setIndexCurrent(h);var v=function(){i&&i(h,\"move\")};!n.state.displaySameSlide&&n.state.isDragging||n.setState({displaySameSlide:!1,isDragging:!0},v),v()}}}else n.handleTouchStart(e)},n.handleSwipeEnd=function(){if(_=null,n.started&&(n.started=!1,!0===n.isSwiping)){var e,t=n.state.indexLatest,r=n.indexCurrent,o=t-r;e=Math.abs(n.vx)>n.props.threshold?n.vx>0?Math.floor(r):Math.ceil(r):Math.abs(o)>n.props.hysteresis?o>0?Math.floor(r):Math.ceil(r):t;var a=p.Children.count(n.props.children)-1;e<0?e=0:e>a&&(e=a),n.setIndexCurrent(e),n.setState({indexLatest:e,isDragging:!1},function(){n.props.onSwitching&&n.props.onSwitching(e,\"end\"),n.props.onChangeIndex&&e!==t&&n.props.onChangeIndex(e,t,{reason:\"swipe\"}),r===t&&n.handleTransitionEnd()})}},n.handleTouchStart=function(e){n.props.onTouchStart&&n.props.onTouchStart(e),n.handleSwipeStart(e)},n.handleTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),n.handleSwipeEnd(e)},n.handleMouseDown=function(e){n.props.onMouseDown&&n.props.onMouseDown(e),e.persist(),n.handleSwipeStart(E(e))},n.handleMouseUp=function(e){n.props.onMouseUp&&n.props.onMouseUp(e),n.handleSwipeEnd(E(e))},n.handleMouseLeave=function(e){n.props.onMouseLeave&&n.props.onMouseLeave(e),n.started&&n.handleSwipeEnd(E(e))},n.handleMouseMove=function(e){n.props.onMouseMove&&n.props.onMouseMove(e),n.started&&n.handleSwipeMove(E(e))},n.handleScroll=function(e){if(n.props.onScroll&&n.props.onScroll(e),e.target===n.rootNode)if(n.ignoreNextScrollEvents)n.ignoreNextScrollEvents=!1;else{var t=n.state.indexLatest,r=Math.ceil(e.target.scrollLeft/e.target.clientWidth)+t;n.ignoreNextScrollEvents=!0,e.target.scrollLeft=0,n.props.onChangeIndex&&r!==t&&n.props.onChangeIndex(r,t,{reason:\"focus\"})}},n.updateHeight=function(){if(null!==n.activeSlide){var e=n.activeSlide.children[0];void 0!==e&&void 0!==e.offsetHeight&&n.state.heightLatest!==e.offsetHeight&&n.setState({heightLatest:e.offsetHeight})}},n.state={indexLatest:e.index,isDragging:!1,renderOnlyActive:!e.disableLazyLoading,heightLatest:0,displaySameSlide:!0},n.setIndexCurrent(e.index),n}return(0,d.default)(t,e),(0,s.default)(t,[{key:\"componentDidMount\",value:function(){var e=this;this.transitionListener=g(this.containerNode,\"transitionend\",function(t){t.target===e.containerNode&&e.handleTransitionEnd()}),this.touchMoveListener=g(this.rootNode,\"touchmove\",function(t){e.props.disabled||e.handleSwipeMove(t)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){e.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:\"UNSAFE_componentWillReceiveProps\",value:function(e){var t=e.index;\"number\"==typeof t&&t!==this.props.index&&(this.setIndexCurrent(t),this.setState({displaySameSlide:(0,f.getDisplaySameSlide)(this.props,e),indexLatest:t}))}},{key:\"componentWillUnmount\",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:\"getSwipeableViewsContext\",value:function(){var e=this;return{slideUpdateHeight:function(){e.updateHeight()}}}},{key:\"setIndexCurrent\",value:function(e){if(this.props.animateTransitions||this.indexCurrent===e||this.handleTransitionEnd(),this.indexCurrent=e,this.containerNode){var t=this.props.axis,n=v.transform[t](100*e);this.containerNode.style.WebkitTransform=n,this.containerNode.style.transform=n}}},{key:\"handleTransitionEnd\",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:\"render\",value:function(){var e,t,n=this,r=this.props,o=(r.action,r.animateHeight),l=r.animateTransitions,s=r.axis,u=r.children,c=r.containerStyle,d=r.disabled,f=(r.disableLazyLoading,r.enableMouseEvents),g=(r.hysteresis,r.ignoreNativeScroll,r.index,r.onChangeIndex,r.onSwitching,r.onTransitionEnd,r.resistance,r.slideStyle),y=r.slideClassName,E=r.springConfig,b=r.style,_=(r.threshold,(0,i.default)(r,[\"action\",\"animateHeight\",\"animateTransitions\",\"axis\",\"children\",\"containerStyle\",\"disabled\",\"disableLazyLoading\",\"enableMouseEvents\",\"hysteresis\",\"ignoreNativeScroll\",\"index\",\"onChangeIndex\",\"onSwitching\",\"onTransitionEnd\",\"resistance\",\"slideStyle\",\"slideClassName\",\"springConfig\",\"style\",\"threshold\"])),C=this.state,S=C.displaySameSlide,T=C.heightLatest,O=C.indexLatest,D=C.isDragging,R=C.renderOnlyActive,N=d?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},L=!d&&f?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},P=(0,a.default)({},m,g);if(D||!l||S)e=\"all 0s ease 0s\",t=\"all 0s ease 0s\";else if(e=A(\"transform\",E),t=A(\"-webkit-transform\",E),0!==T){var M=\", \".concat(A(\"height\",E));e+=M,t+=M}var x={height:null,WebkitFlexDirection:v.flexDirection[s],flexDirection:v.flexDirection[s],WebkitTransition:t,transition:e};if(!R){var I=v.transform[s](100*this.indexCurrent);x.WebkitTransform=I,x.transform=I}return o&&(x.height=T),p.createElement(w.Provider,{value:this.getSwipeableViewsContext()},p.createElement(\"div\",(0,a.default)({ref:this.setRootNode,style:(0,a.default)({},v.root[s],b)},_,N,L,{onScroll:this.handleScroll}),p.createElement(\"div\",{ref:this.setContainerNode,style:(0,a.default)({},x,h,c),className:\"react-swipeable-view-container\"},p.Children.map(u,function(e,t){if(R&&t!==O)return null;var r,a=!0;return t===O&&(a=!1,o&&(r=n.setActiveSlide,P.overflowY=\"hidden\")),p.createElement(\"div\",{ref:r,style:P,className:y,\"aria-hidden\":a,\"data-swipeable\":\"true\"},e)}))))}}]),t}(p.Component);S.displayName=\"ReactSwipableView\",S.propTypes={},S.defaultProps={animateHeight:!1,animateTransitions:!0,axis:\"x\",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:\"0.35s\",easeFunction:\"cubic-bezier(0.15, 0.3, 0.25, 1)\",delay:\"0s\"},resistance:!1};var T=S;t.default=T},71287:(e,t,n)=>{\"use strict\";n.d(t,{i:()=>i,s:()=>a});var r=n(81970),o=!!r.useInsertionEffect&&r.useInsertionEffect,a=o||function(e){return e()},i=o||r.useLayoutEffect},71354:e=>{\"use strict\";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if(\"function\"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o=\"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(r),a=\"/*# \".concat(o,\" */\");return[t].concat([a]).join(\"\\n\")}return[t].join(\"\\n\")}},71360:(e,t,n)=>{\"use strict\";e.exports=n.p+\"c4d158174516baf5d1ef.woff2\"},71514:e=>{\"use strict\";e.exports=Math.abs},71543:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>v});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(11848),c=n(25669),d=n(61347),p=n(74848);const f=[\"absolute\",\"children\",\"className\",\"component\",\"flexItem\",\"light\",\"orientation\",\"role\",\"textAlign\",\"variant\"],g=(0,u.Ay)(\"div\",{name:\"MuiDivider\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,\"vertical\"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&\"vertical\"===n.orientation&&t.withChildrenVertical,\"right\"===n.textAlign&&\"vertical\"!==n.orientation&&t.textAlignRight,\"left\"===n.textAlign&&\"vertical\"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>(0,o.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:\"solid\",borderColor:(e.vars||e).palette.divider,borderBottomWidth:\"thin\"},t.absolute&&{position:\"absolute\",bottom:0,left:0,width:\"100%\"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,s.X4)(e.palette.divider,.08)},\"inset\"===t.variant&&{marginLeft:72},\"middle\"===t.variant&&\"horizontal\"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},\"middle\"===t.variant&&\"vertical\"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},\"vertical\"===t.orientation&&{height:\"100%\",borderBottomWidth:0,borderRightWidth:\"thin\"},t.flexItem&&{alignSelf:\"stretch\",height:\"auto\"}),({ownerState:e})=>(0,o.A)({},e.children&&{display:\"flex\",whiteSpace:\"nowrap\",textAlign:\"center\",border:0,borderTopStyle:\"solid\",borderLeftStyle:\"solid\",\"&::before, &::after\":{content:'\"\"',alignSelf:\"center\"}}),({theme:e,ownerState:t})=>(0,o.A)({},t.children&&\"vertical\"!==t.orientation&&{\"&::before, &::after\":{width:\"100%\",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:\"inherit\"}}),({theme:e,ownerState:t})=>(0,o.A)({},t.children&&\"vertical\"===t.orientation&&{flexDirection:\"column\",\"&::before, &::after\":{height:\"100%\",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:\"inherit\"}}),({ownerState:e})=>(0,o.A)({},\"right\"===e.textAlign&&\"vertical\"!==e.orientation&&{\"&::before\":{width:\"90%\"},\"&::after\":{width:\"10%\"}},\"left\"===e.textAlign&&\"vertical\"!==e.orientation&&{\"&::before\":{width:\"10%\"},\"&::after\":{width:\"90%\"}})),h=(0,u.Ay)(\"span\",{name:\"MuiDivider\",slot:\"Wrapper\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,\"vertical\"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>(0,o.A)({display:\"inline-block\",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},\"vertical\"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),m=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiDivider\"}),{absolute:a=!1,children:s,className:u,component:m=(s?\"div\":\"hr\"),flexItem:v=!1,light:A=!1,orientation:y=\"horizontal\",role:E=(\"hr\"!==m?\"separator\":void 0),textAlign:b=\"center\",variant:_=\"fullWidth\"}=n,C=(0,r.A)(n,f),w=(0,o.A)({},n,{absolute:a,component:m,flexItem:v,light:A,orientation:y,role:E,textAlign:b,variant:_}),S=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:u}=e,c={root:[\"root\",t&&\"absolute\",u,a&&\"light\",\"vertical\"===i&&\"vertical\",o&&\"flexItem\",n&&\"withChildren\",n&&\"vertical\"===i&&\"withChildrenVertical\",\"right\"===s&&\"vertical\"!==i&&\"textAlignRight\",\"left\"===s&&\"vertical\"!==i&&\"textAlignLeft\"],wrapper:[\"wrapper\",\"vertical\"===i&&\"wrapperVertical\"]};return(0,l.A)(c,d.K,r)})(w);return(0,p.jsx)(g,(0,o.A)({as:m,className:(0,i.A)(S.root,u),role:E,ref:t,ownerState:w},C,{children:s?(0,p.jsx)(h,{className:S.wrapper,ownerState:w,children:s}):null}))});m.muiSkipListHighlight=!0;const v=m},71547:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n(21529);const a=function(e){const t=r.useRef(e);return(0,o.A)(()=>{t.current=e}),r.useRef((...e)=>(0,t.current)(...e)).current}},71661:(e,t,n)=>{\"use strict\";e.exports=n.p+\"52240b63d42c6cb87651.eot\"},71748:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},71761:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(79504),a=n(89228),i=n(28551),l=n(20034),s=n(18014),u=n(655),c=n(67750),d=n(55966),p=n(57829),f=n(61034),g=n(56682),h=o(\"\".indexOf);a(\"match\",function(e,t,n){return[function(t){var n=c(this),o=l(t)?d(t,e):void 0;return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var l=u(f(r));if(-1===h(l,\"g\"))return g(r,o);var c=-1!==h(l,\"u\");r.lastIndex=0;for(var d,m=[],v=0;null!==(d=g(r,o));){var A=u(d[0]);m[v]=A,\"\"===A&&(r.lastIndex=p(o,s(r.lastIndex),c)),v++}return 0===v?null:m}]})},71939:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d}),n(62062),n(26099);var r=n(82997),o=n(98777),a=n(47363),i=n(39738),l=n(14073),s=n(81970),u=n(70380),c=n(67621);function d(e){var t=e.history;return s.createElement(c.n,null,s.createElement(i.A,{orientation:\"vertical\"},null==t?void 0:t.map(function(e){return s.createElement(r.A,{active:e.comments,key:e.action_taken},s.createElement(a.A,{icon:s.createElement(\"span\",{\"data-testid\":\"Rejected\"===e.action_taken?\"icon-warning\":\"icon-check\",className:\"\".concat(\"Rejected\"===e.action_taken?\"icon-warning\":\"icon-check\",\" stepper-iconwrapper\")})},s.createElement(l.A,{color:\"#696F88\"},s.createElement(\"strong\",null,e.created_by),\" \",e.action_taken,\" Retailer on \",(0,u.Yq)(e.created_at,\"Do MMM, YYYY\"),\" \")),e.comments&&s.createElement(o.A,null,s.createElement(l.A,{color:\"#696F88\"},\"Comment: \",e.comments)))})))}},72048:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"}),\"ExpandMore\")},72170:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"every\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},72181:(e,t,n)=>{\"use strict\";n.d(t,{t:()=>i});var r=n(51545),o=n(8676),a=n(17630),i=(0,o.A)(r.A)(function(){return{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflowY:\"auto\",\"& .editor-view\":{minHeight:\"380px\",maxHeight:\"400px\",overflow:\"auto\",border:\"1px solid \".concat(a.w.palette.grey[800]),boxShadow:\"none\",\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},\"& .details-container\":{\"& .details-heading\":{fontSize:\"14px\",fontWeight:\"700\",color:a.w.palette.grey[900]},\"& .details-content\":{color:a.w.palette.grey[200]}},\"& .btn-icon\":{fontSize:\"14px !important\"}}})},72221:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s,b:()=>l});var r=n(81970),o=n(47379),a=n(74848);const i=r.createContext(void 0);function l({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?(0,o.A)(a.defaultProps,r):a.styleOverrides||a.variants?r:(0,o.A)(a,r)}({props:e,name:t,theme:{components:r.useContext(i)}})}const s=function({value:e,children:t}){return(0,a.jsx)(i.Provider,{value:e,children:t})}},72245:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var l=n(64436),s=a(n(81970)),u=n(98400),c=i(n(7621)),d=i(n(49910)),p=i(n(96533)),f=n(67991),g=n(63981);t.default=s.memo(function(e){var t=e.context,n=s.useState(\"\"),r=n[0],o=n[1],a=s.useState(\"\"),i=a[0],h=a[1],m=s.useState(\"\"),v=m[0],A=m[1],y=s.useState(null),E=y[0],b=y[1],_=s.useState(null),C=_[0],w=_[1],S=s.useState(!1),T=S[0],O=S[1],D=s.useState(),R=D[0],N=D[1],L=s.useRef(null),P=s.useRef(null),M=s.useRef(),x=s.useRef(null),I=s.useRef(function(){}),k=s.useCallback(function(){},[]),B=s.useMemo(function(){return t.getBean(\"beans\")},[]);d.default(\" AG Grid \",P),f.useLayoutEffectOnce(function(){var e=L.current=t.createBean(new l.GridCtrl);return function(){t.destroyBean(e),L.current=null}}),f.useLayoutEffectOnce(function(){var e=L.current;I.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:o,addOrRemoveKeyboardFocusClass:function(e){return h(e?l.FocusService.AG_KEYBOARD_FOCUS:\"\")},forceFocusOutOfContainer:function(){M.current.forceFocusOutOfContainer()},updateLayoutClasses:A,getFocusableContainers:function(){var e=[],t=P.current.querySelector(\".ag-root\"),n=P.current.querySelector(\".ag-side-bar:not(.ag-hidden)\");return t&&e.push(t),n&&e.push(n),e},setCursor:b,setUserSelect:w};e.setComp(t,P.current,P.current),O(!0)}),s.useEffect(function(){if(R){var e=L.current,n=[],r=B.agStackComponentsRegistry,o=r.getComponentClass(\"AG-GRID-HEADER-DROP-ZONES\"),a=r.getComponentClass(\"AG-SIDE-BAR\"),i=r.getComponentClass(\"AG-STATUS-BAR\"),l=r.getComponentClass(\"AG-WATERMARK\"),s=r.getComponentClass(\"AG-PAGINATION\"),u=[],c=P.current,d=x.current;if(e.showDropZones()&&o){var p=t.createBean(new o),f=p.getGui();c.insertAdjacentElement(\"afterbegin\",f),u.push(f),n.push(p)}if(e.showSideBar()&&a){var g=t.createBean(new a),h=(f=g.getGui(),d.querySelector(\".ag-tab-guard-bottom\"));h&&(h.insertAdjacentElement(\"beforebegin\",f),u.push(f)),n.push(g)}if(e.showStatusBar()&&i){var m=t.createBean(new i);f=m.getGui(),c.insertAdjacentElement(\"beforeend\",f),u.push(f),n.push(m)}if(s){var v=t.createBean(new s);f=v.getGui(),c.insertAdjacentElement(\"beforeend\",f),u.push(f),n.push(v)}if(e.showWatermark()&&l){var A=t.createBean(new l);f=A.getGui(),c.insertAdjacentElement(\"beforeend\",f),u.push(f),n.push(A)}return function(){t.destroyBeans(n),u.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}}},[R]);var F=s.useMemo(function(){return g.classesList(\"ag-root-wrapper\",r,i,v)},[r,i,v]),j=s.useMemo(function(){return g.classesList(\"ag-root-wrapper-body\",\"ag-focus-managed\",v)},[v]),H=s.useMemo(function(){return{userSelect:null!=C?C:\"\",WebkitUserSelect:null!=C?C:\"\",cursor:null!=E?E:\"\"}},[C,E]),U=x.current,Y=s.useCallback(function(e){M.current=e,N(!0)},[]);return s.default.createElement(\"div\",{ref:P,className:F,style:H,role:\"presentation\"},s.default.createElement(\"div\",{className:j,ref:x,role:\"presentation\"},T&&U&&s.default.createElement(u.BeansContext.Provider,{value:B},s.default.createElement(p.default,{ref:Y,eFocusableElement:U,onTabKeyDown:k,gridCtrl:L.current},s.default.createElement(c.default,null)))))})},72264:function(e,t,n){!function(e){\"use strict\";var t={1:\"၁\",2:\"၂\",3:\"၃\",4:\"၄\",5:\"၅\",6:\"၆\",7:\"၇\",8:\"၈\",9:\"၉\",0:\"၀\"},n={\"၁\":\"1\",\"၂\":\"2\",\"၃\":\"3\",\"၄\":\"4\",\"၅\":\"5\",\"၆\":\"6\",\"၇\":\"7\",\"၈\":\"8\",\"၉\":\"9\",\"၀\":\"0\"};e.defineLocale(\"my\",{months:\"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ\".split(\"_\"),monthsShort:\"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ\".split(\"_\"),weekdays:\"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ\".split(\"_\"),weekdaysShort:\"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ\".split(\"_\"),weekdaysMin:\"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[ယနေ.] LT [မှာ]\",nextDay:\"[မနက်ဖြန်] LT [မှာ]\",nextWeek:\"dddd LT [မှာ]\",lastDay:\"[မနေ.က] LT [မှာ]\",lastWeek:\"[ပြီးခဲ့သော] dddd LT [မှာ]\",sameElse:\"L\"},relativeTime:{future:\"လာမည့် %s မှာ\",past:\"လွန်ခဲ့သော %s က\",s:\"စက္ကန်.အနည်းငယ်\",ss:\"%d စက္ကန့်\",m:\"တစ်မိနစ်\",mm:\"%d မိနစ်\",h:\"တစ်နာရီ\",hh:\"%d နာရီ\",d:\"တစ်ရက်\",dd:\"%d ရက်\",M:\"တစ်လ\",MM:\"%d လ\",y:\"တစ်နှစ်\",yy:\"%d နှစ်\"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(95093))},72271:(e,t,n)=>{\"use strict\";var r=n(70453),o=n(36556),a=n(58859),i=n(80507),l=n(69675),s=r(\"%WeakMap%\",!0),u=o(\"WeakMap.prototype.get\",!0),c=o(\"WeakMap.prototype.set\",!0),d=o(\"WeakMap.prototype.has\",!0),p=o(\"WeakMap.prototype.delete\",!0);e.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new l(\"Side channel does not contain \"+a(e))},delete:function(n){if(s&&n&&(\"object\"==typeof n||\"function\"==typeof n)){if(e)return p(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(\"object\"==typeof n||\"function\"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return s&&n&&(\"object\"==typeof n||\"function\"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(\"object\"==typeof n||\"function\"==typeof n)?(e||(e=new s),c(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},72333:(e,t,n)=>{\"use strict\";var r=n(91291),o=n(655),a=n(67750),i=RangeError;e.exports=function(e){var t=o(a(this)),n=\"\",l=r(e);if(l<0||l===1/0)throw new i(\"Wrong number of repetitions\");for(;l>0;(l>>>=1)&&(t+=t))1&l&&(n+=t);return n}},72428:(e,t,n)=>{var r=n(27534),o=n(40346),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,\"callee\")&&!l.call(e,\"callee\")};e.exports=s},72448:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s}),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))});const s=function(e){var t=e.readableModules,n=e.childComponent;return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},n)}),null==t?void 0:t.map(function(e,t){return o().createElement(a.qh,{key:\"\".concat(e.moduleName),path:e.path,element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(l,null)),path:i.fp.PageNotFound}))}},72475:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"uz-latn\",{months:\"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr\".split(\"_\"),monthsShort:\"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek\".split(\"_\"),weekdays:\"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba\".split(\"_\"),weekdaysShort:\"Yak_Dush_Sesh_Chor_Pay_Jum_Shan\".split(\"_\"),weekdaysMin:\"Ya_Du_Se_Cho_Pa_Ju_Sha\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"D MMMM YYYY, dddd HH:mm\"},calendar:{sameDay:\"[Bugun soat] LT [da]\",nextDay:\"[Ertaga] LT [da]\",nextWeek:\"dddd [kuni soat] LT [da]\",lastDay:\"[Kecha soat] LT [da]\",lastWeek:\"[O'tgan] dddd [kuni soat] LT [da]\",sameElse:\"L\"},relativeTime:{future:\"Yaqin %s ichida\",past:\"Bir necha %s oldin\",s:\"soniya\",ss:\"%d soniya\",m:\"bir daqiqa\",mm:\"%d daqiqa\",h:\"bir soat\",hh:\"%d soat\",d:\"bir kun\",dd:\"%d kun\",M:\"bir oy\",MM:\"%d oy\",y:\"bir yil\",yy:\"%d yil\"},week:{dow:1,doy:7}})}(n(95093))},72552:(e,t,n)=>{var r=n(51873),o=n(659),a=n(59350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":i&&i in Object(e)?o(e):a(e)}},72619:(e,t,n)=>{\"use strict\";e.exports=n.p+\"dfaec6cdc74d2605d629.woff2\"},72652:(e,t,n)=>{\"use strict\";var r=n(76080),o=n(69565),a=n(28551),i=n(16823),l=n(44209),s=n(26198),u=n(1625),c=n(70081),d=n(50851),p=n(9539),f=TypeError,g=function(e,t){this.stopped=e,this.result=t},h=g.prototype;e.exports=function(e,t,n){var m,v,A,y,E,b,_,C=n&&n.that,w=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),D=r(t,C),R=function(e){return m&&p(m,\"normal\"),new g(!0,e)},N=function(e){return w?(a(e),O?D(e[0],e[1],R):D(e[0],e[1])):O?D(e,R):D(e)};if(S)m=e.iterator;else if(T)m=e;else{if(!(v=d(e)))throw new f(i(e)+\" is not iterable\");if(l(v)){for(A=0,y=s(e);y>A;A++)if((E=N(e[A]))&&u(h,E))return E;return new g(!1)}m=c(e,v)}for(b=S?e.next:m.next;!(_=o(b,m)).done;){try{E=N(_.value)}catch(e){p(m,\"throw\",e)}if(\"object\"==typeof E&&E&&u(h,E))return E}return new g(!1)}},72712:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(80926).left,a=n(34598),i=n(39519);r({target:\"Array\",proto:!0,forced:!n(16193)&&i>79&&i<83||!a(\"reduce\")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},72777:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(20034),a=n(10757),i=n(55966),l=n(84270),s=n(78227),u=TypeError,c=s(\"toPrimitive\");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,s=i(e,c);if(s){if(void 0===t&&(t=\"default\"),n=r(s,e,t),!o(n)||a(n))return n;throw new u(\"Can't convert object to primitive value\")}return void 0===t&&(t=\"number\"),l(e,t)}},72805:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(79039),a=n(84428),i=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,s=r.Int8Array;e.exports=!i||!o(function(){s(1)})||!o(function(){new s(-1)})||!a(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||o(function(){return 1!==new s(new l(2),1,void 0).length})},72911:(e,t,n)=>{\"use strict\";var r=n(81970);function o(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var a=null,i=0;function l(e,t){if(0!==t.length)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=new Uint8Array(512),i=0),e.enqueue(t);else{var n=a.length-i;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),i),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),i=0),a.set(t,i),i+=t.length}}function s(e,t){return l(e,t),!0}function u(e){a&&0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=null,i=0)}var c=new TextEncoder;function d(e){return c.encode(e)}function p(e){return c.encode(e)}function f(e,t){\"function\"==typeof e.error?e.error(t):e.close()}var g=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},v={};function A(e){return!!g.call(v,e)||!g.call(m,e)&&(h.test(e)?v[e]=!0:(m[e]=!0,!1))}function y(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var E={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){E[e]=new y(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];E[t]=new y(t,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){E[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){E[e]=new y(e,2,!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\".split(\" \").forEach(function(e){E[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){E[e]=new y(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){E[e]=new y(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){E[e]=new y(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){E[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\\-:]([a-z])/g;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\".split(\" \").forEach(function(e){var t=e.replace(b,_);E[t]=new y(t,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(b,_);E[t]=new y(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(b,_);E[t]=new y(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){E[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),E.xlinkHref=new y(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){E[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var C={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},w=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(C).forEach(function(e){w.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),C[t]=C[e]})});var S=/[\"'&<>]/;function T(e){if(\"boolean\"==typeof e||\"number\"==typeof e)return\"\"+e;e=\"\"+e;var t=S.exec(e);if(t){var n,r=\"\",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=\"&quot;\";break;case 38:t=\"&amp;\";break;case 39:t=\"&#x27;\";break;case 60:t=\"&lt;\";break;case 62:t=\"&gt;\";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var O=/([A-Z])/g,D=/^ms-/,R=Array.isArray,N=p(\"<script>\"),L=p(\"<\\/script>\"),P=p('<script src=\"'),M=p('<script type=\"module\" src=\"'),x=p('\" async=\"\"><\\/script>'),I=/(<\\/|<)(s)(cript)/gi;function k(e,t,n,r){return t+(\"s\"===n?\"\\\\u0073\":\"\\\\u0053\")+r}function B(e,t){return{insertionMode:e,selectedValue:t}}var F=p(\"\\x3c!-- --\\x3e\");function j(e,t,n,r){return\"\"===t?r:(r&&e.push(F),e.push(d(T(t))),!0)}var H=new Map,U=p(' style=\"'),Y=p(\":\"),G=p(\";\");function z(e,t,n){if(\"object\"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(g.call(n,r)){var a=n[r];if(null!=a&&\"boolean\"!=typeof a&&\"\"!==a){if(0===r.indexOf(\"--\")){var i=d(T(r));a=d(T((\"\"+a).trim()))}else{i=r;var l=H.get(i);void 0!==l||(l=p(T(i.replace(O,\"-$1\").toLowerCase().replace(D,\"-ms-\"))),H.set(i,l)),i=l,a=\"number\"==typeof a?0===a||g.call(C,r)?d(\"\"+a):d(a+\"px\"):d(T((\"\"+a).trim()))}t?(t=!1,e.push(U,i,Y,a)):e.push(G,i,Y,a)}}t||e.push(W)}var V=p(\" \"),q=p('=\"'),W=p('\"'),Q=p('=\"\"');function K(e,t,n,r){switch(n){case\"style\":return void z(e,t,r);case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":return}if(!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])if(null!==(t=E.hasOwnProperty(n)?E[n]:null)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(V,n,Q);break;case 4:!0===r?e.push(V,n,Q):!1!==r&&e.push(V,n,q,d(T(r)),W);break;case 5:isNaN(r)||e.push(V,n,q,d(T(r)),W);break;case 6:!isNaN(r)&&1<=r&&e.push(V,n,q,d(T(r)),W);break;default:t.sanitizeURL&&(r=\"\"+r),e.push(V,n,q,d(T(r)),W)}}else if(A(n)){switch(typeof r){case\"function\":case\"symbol\":return;case\"boolean\":if(\"data-\"!==(t=n.toLowerCase().slice(0,5))&&\"aria-\"!==t)return}e.push(V,d(n),q,d(T(r)),W)}}var $=p(\">\"),X=p(\"/>\");function J(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if(\"object\"!=typeof t||!(\"__html\"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(\"\"+t))}}var Z=p(' selected=\"\"');function ee(e,t,n,r){e.push(oe(n));var o,a=n=null;for(o in t)if(g.call(t,o)){var i=t[o];if(null!=i)switch(o){case\"children\":n=i;break;case\"dangerouslySetInnerHTML\":a=i;break;default:K(e,r,o,i)}}return e.push($),J(e,a,n),\"string\"==typeof n?(e.push(d(T(n))),null):n}var te=p(\"\\n\"),ne=/^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=p(\"<\"+e),re.set(e,t)}return t}var ae=p(\"<!DOCTYPE html>\");var ie=p(\"</\"),le=p(\">\"),se=p('<template id=\"'),ue=p('\"></template>'),ce=p(\"\\x3c!--$--\\x3e\"),de=p('\\x3c!--$?--\\x3e<template id=\"'),pe=p('\"></template>'),fe=p(\"\\x3c!--$!--\\x3e\"),ge=p(\"\\x3c!--/$--\\x3e\"),he=p(\"<template\"),me=p('\"'),ve=p(' data-dgst=\"');p(' data-msg=\"'),p(' data-stck=\"');var Ae=p(\"></template>\");function ye(e,t,n){if(l(e,de),null===n)throw Error(o(395));return l(e,n),s(e,pe)}var Ee=p('<div hidden id=\"'),be=p('\">'),_e=p(\"</div>\"),Ce=p('<svg aria-hidden=\"true\" style=\"display:none\" id=\"'),we=p('\">'),Se=p(\"</svg>\"),Te=p('<math aria-hidden=\"true\" style=\"display:none\" id=\"'),Oe=p('\">'),De=p(\"</math>\"),Re=p('<table hidden id=\"'),Ne=p('\">'),Le=p(\"</table>\"),Pe=p('<table hidden><tbody id=\"'),Me=p('\">'),xe=p(\"</tbody></table>\"),Ie=p('<table hidden><tr id=\"'),ke=p('\">'),Be=p(\"</tr></table>\"),Fe=p('<table hidden><colgroup id=\"'),je=p('\">'),He=p(\"</colgroup></table>\"),Ue=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"'),Ye=p('$RS(\"'),Ge=p('\",\"'),ze=p('\")<\\/script>'),Ve=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\"'),qe=p('$RC(\"'),We=p('\",\"'),Qe=p('\")<\\/script>'),Ke=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\"'),$e=p('$RX(\"'),Xe=p('\"'),Je=p(\")<\\/script>\"),Ze=p(\",\"),et=/[<\\u2028\\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,function(e){switch(e){case\"<\":return\"\\\\u003c\";case\"\\u2028\":return\"\\\\u2028\";case\"\\u2029\":return\"\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}var nt=Object.assign,rt=Symbol.for(\"react.element\"),ot=Symbol.for(\"react.portal\"),at=Symbol.for(\"react.fragment\"),it=Symbol.for(\"react.strict_mode\"),lt=Symbol.for(\"react.profiler\"),st=Symbol.for(\"react.provider\"),ut=Symbol.for(\"react.context\"),ct=Symbol.for(\"react.forward_ref\"),dt=Symbol.for(\"react.suspense\"),pt=Symbol.for(\"react.suspense_list\"),ft=Symbol.for(\"react.memo\"),gt=Symbol.for(\"react.lazy\"),ht=Symbol.for(\"react.scope\"),mt=Symbol.for(\"react.debug_trace_mode\"),vt=Symbol.for(\"react.legacy_hidden\"),At=Symbol.for(\"react.default_value\"),yt=Symbol.iterator;function Et(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case at:return\"Fragment\";case ot:return\"Portal\";case lt:return\"Profiler\";case it:return\"StrictMode\";case dt:return\"Suspense\";case pt:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case ut:return(e.displayName||\"Context\")+\".Consumer\";case st:return(e._context.displayName||\"Context\")+\".Provider\";case ct:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case ft:return null!==(t=e.displayName||null)?t:Et(e.type)||\"Memo\";case gt:t=e._payload,e=e._init;try{return Et(e(t))}catch(e){}}return null}var bt={};function _t(e,t){if(!(e=e.contextTypes))return bt;var n,r={};for(n in e)r[n]=t[n];return r}var Ct=null;function wt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));wt(e,n)}t.context._currentValue=t.value}}function St(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&St(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function Ot(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?wt(e,t):Ot(e,t)}function Dt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?wt(e,n):Dt(e,n),t.context._currentValue=t.value}function Rt(e){var t=Ct;t!==e&&(null===t?Tt(e):null===e?St(t):t.depth===e.depth?wt(t,e):t.depth>e.depth?Ot(t,e):Dt(t,e),Ct=e)}var Nt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Lt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Nt,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context=\"object\"==typeof i&&null!==i?i._currentValue:r,\"function\"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:nt({},o,i),e.state=o),\"function\"!=typeof t.getDerivedStateFromProps&&\"function\"!=typeof e.getSnapshotBeforeUpdate&&(\"function\"==typeof e.UNSAFE_componentWillMount||\"function\"==typeof e.componentWillMount))if(t=e.state,\"function\"==typeof e.componentWillMount&&e.componentWillMount(),\"function\"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Nt.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l=\"function\"==typeof l?l.call(e,a,n,r):l)&&(o?(o=!1,a=nt({},a,l)):nt(a,l))}e.state=a}else a.queue=null}var Pt={id:1,overflow:\"\"};function Mt(e,t,n){var r=e.id;e=e.overflow;var o=32-xt(r)-1;r&=~(1<<o),n+=1;var a=32-xt(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-xt(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var xt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(It(e)/kt|0)|0},It=Math.log,kt=Math.LN2,Bt=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,jt=null,Ht=null,Ut=null,Yt=!1,Gt=!1,zt=0,Vt=null,qt=0;function Wt(){if(null===Ft)throw Error(o(321));return Ft}function Qt(){if(0<qt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return null===Ut?null===Ht?(Yt=!1,Ht=Ut=Qt()):(Yt=!0,Ut=Ht):null===Ut.next?(Yt=!1,Ut=Ut.next=Qt()):(Yt=!0,Ut=Ut.next),Ut}function $t(){jt=Ft=null,Gt=!1,Ht=null,qt=0,Ut=Vt=null}function Xt(e,t){return\"function\"==typeof t?t(e):t}function Jt(e,t,n){if(Ft=Wt(),Ut=Kt(),Yt){var r=Ut.queue;if(t=r.dispatch,null!==Vt&&void 0!==(n=Vt.get(r))){Vt.delete(r),r=Ut.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ut.memoizedState=r,[r,t]}return[Ut.memoizedState,t]}return e=e===Xt?\"function\"==typeof t?t():t:void 0!==n?n(t):t,Ut.memoizedState=e,e=(e=Ut.queue={last:null,dispatch:null}).dispatch=en.bind(null,Ft,e),[Ut.memoizedState,e]}function Zt(e,t){if(Ft=Wt(),t=void 0===t?null:t,null!==(Ut=Kt())){var n=Ut.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Bt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Ut.memoizedState=[e,t],e}function en(e,t,n){if(25<=qt)throw Error(o(301));if(e===Ft)if(Gt=!0,e={action:n,next:null},null===Vt&&(Vt=new Map),void 0===(n=Vt.get(t)))Vt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Wt(),e._currentValue},useMemo:Zt,useReducer:Jt,useRef:function(e){Ft=Wt();var t=(Ut=Kt()).memoizedState;return null===t?(e={current:e},Ut.memoizedState=e):t},useState:function(e){return Jt(Xt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Zt(function(){return e},t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Wt(),e},useTransition:function(){return Wt(),[!1,tn]},useId:function(){var e=jt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-xt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=zt++,e=\":\"+n.idPrefix+\"R\"+e,0<t&&(e+=\"H\"+t.toString(32)),e+\":\"},useMutableSource:function(e,t){return Wt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function sn(){}function un(e,t,n,r,o,a,i,l){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&wn(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function cn(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function dn(e,t){if(null!=(e=e.onError(t))&&\"string\"!=typeof e)throw Error('onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"'+typeof e+'\" instead');return e}function pn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,f(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,r,o){for(Ft={},jt=t,zt=0,e=n(r,o);Gt;)Gt=!1,zt=0,qt+=1,Ut=null,e=n(r,o);return $t(),e}function gn(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var l=t.legacyContext;if(\"function\"!=typeof n.getChildContext)r=l;else{for(var s in n=n.getChildContext())if(!(s in i))throw Error(o(108,Et(r)||\"Unknown\",s));r=nt({},l,n)}t.legacyContext=r,vn(e,t,a),t.legacyContext=l}else vn(e,t,a)}function hn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function mn(e,t,n,a,i){if(\"function\"==typeof n)if(n.prototype&&n.prototype.isReactComponent){i=_t(n,t.legacyContext);var l=n.contextType;Lt(l=new n(a,\"object\"==typeof l&&null!==l?l._currentValue:i),n,a,i),gn(e,t,l,n)}else{i=fn(e,t,n,a,l=_t(n,t.legacyContext));var s=0!==zt;if(\"object\"==typeof i&&null!==i&&\"function\"==typeof i.render&&void 0===i.$$typeof)Lt(i,n,a,l),gn(e,t,i,n);else if(s){a=t.treeContext,t.treeContext=Mt(a,1,0);try{vn(e,t,i)}finally{t.treeContext=a}}else vn(e,t,i)}else{if(\"string\"!=typeof n){switch(n){case vt:case mt:case it:case lt:case at:case pt:return void vn(e,t,a.children);case ht:throw Error(o(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,l=a.fallback,a=a.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=cn(0,i.chunks.length,u,i.formatContext,!1,!1);i.children.push(c),i.lastPushedText=!1;var p=cn(0,0,null,i.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=p;try{if(yn(e,t,a),p.lastPushedText&&p.textEmbedded&&p.chunks.push(F),p.status=1,_n(u,p),0===u.pendingTasks)break e}catch(t){p.status=4,u.forceClientRender=!0,u.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=un(e,l,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(\"object\"==typeof n&&null!==n)switch(n.$$typeof){case ct:if(a=fn(e,t,n.render,a,i),0!==zt){n=t.treeContext,t.treeContext=Mt(n,1,0);try{vn(e,t,a)}finally{t.treeContext=n}}else vn(e,t,a);return;case ft:return void mn(e,t,n=n.type,a=hn(n,a),i);case st:if(i=a.children,n=n._context,a=a.value,l=n._currentValue,n._currentValue=a,Ct=a={parent:s=Ct,depth:null===s?0:s.depth+1,context:n,parentValue:l,value:a},t.context=a,vn(e,t,i),null===(e=Ct))throw Error(o(403));return a=e.parentValue,e.context._currentValue=a===At?e.context._defaultValue:a,e=Ct=e.parent,void(t.context=e);case ut:return void vn(e,t,a=(a=a.children)(n._currentValue));case gt:return void mn(e,t,n=(i=n._init)(n._payload),a=hn(n,a),void 0)}throw Error(o(130,null==n?n:typeof n,\"\"))}switch(l=function(e,t,n,a,i){switch(t){case\"select\":e.push(oe(\"select\"));var l=null,s=null;for(f in n)if(g.call(n,f)){var u=n[f];if(null!=u)switch(f){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":s=u;break;case\"defaultValue\":case\"value\":break;default:K(e,a,f,u)}}return e.push($),J(e,s,l),l;case\"option\":s=i.selectedValue,e.push(oe(\"option\"));var c=u=null,p=null,f=null;for(l in n)if(g.call(n,l)){var h=n[l];if(null!=h)switch(l){case\"children\":u=h;break;case\"selected\":p=h;break;case\"dangerouslySetInnerHTML\":f=h;break;case\"value\":c=h;default:K(e,a,l,h)}}if(null!=s)if(n=null!==c?\"\"+c:function(e){var t=\"\";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(u),R(s)){for(a=0;a<s.length;a++)if(\"\"+s[a]===n){e.push(Z);break}}else\"\"+s===n&&e.push(Z);else p&&e.push(Z);return e.push($),J(e,f,u),u;case\"textarea\":for(u in e.push(oe(\"textarea\")),f=s=l=null,n)if(g.call(n,u)&&null!=(c=n[u]))switch(u){case\"children\":f=c;break;case\"value\":l=c;break;case\"defaultValue\":s=c;break;case\"dangerouslySetInnerHTML\":throw Error(o(91));default:K(e,a,u,c)}if(null===l&&null!==s&&(l=s),e.push($),null!=f){if(null!=l)throw Error(o(92));if(R(f)&&1<f.length)throw Error(o(93));l=\"\"+f}return\"string\"==typeof l&&\"\\n\"===l[0]&&e.push(te),null!==l&&e.push(d(T(\"\"+l))),null;case\"input\":for(s in e.push(oe(\"input\")),c=f=u=l=null,n)if(g.call(n,s)&&null!=(p=n[s]))switch(s){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(399,\"input\"));case\"defaultChecked\":c=p;break;case\"defaultValue\":u=p;break;case\"checked\":f=p;break;case\"value\":l=p;break;default:K(e,a,s,p)}return null!==f?K(e,a,\"checked\",f):null!==c&&K(e,a,\"checked\",c),null!==l?K(e,a,\"value\",l):null!==u&&K(e,a,\"value\",u),e.push(X),null;case\"menuitem\":for(var m in e.push(oe(\"menuitem\")),n)if(g.call(n,m)&&null!=(l=n[m]))switch(m){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(400));default:K(e,a,m,l)}return e.push($),null;case\"title\":for(h in e.push(oe(\"title\")),l=null,n)if(g.call(n,h)&&null!=(s=n[h]))switch(h){case\"children\":l=s;break;case\"dangerouslySetInnerHTML\":throw Error(o(434));default:K(e,a,h,s)}return e.push($),l;case\"listing\":case\"pre\":for(c in e.push(oe(t)),s=l=null,n)if(g.call(n,c)&&null!=(u=n[c]))switch(c){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":s=u;break;default:K(e,a,c,u)}if(e.push($),null!=s){if(null!=l)throw Error(o(60));if(\"object\"!=typeof s||!(\"__html\"in s))throw Error(o(61));null!=(n=s.__html)&&(\"string\"==typeof n&&0<n.length&&\"\\n\"===n[0]?e.push(te,d(n)):e.push(d(\"\"+n)))}return\"string\"==typeof l&&\"\\n\"===l[0]&&e.push(te),l;case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":for(var v in e.push(oe(t)),n)if(g.call(n,v)&&null!=(l=n[v]))switch(v){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(o(399,t));default:K(e,a,v,l)}return e.push(X),null;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 ee(e,n,t,a);case\"html\":return 0===i.insertionMode&&e.push(ae),ee(e,n,t,a);default:if(-1===t.indexOf(\"-\")&&\"string\"!=typeof n.is)return ee(e,n,t,a);for(p in e.push(oe(t)),s=l=null,n)if(g.call(n,p)&&null!=(u=n[p]))switch(p){case\"children\":l=u;break;case\"dangerouslySetInnerHTML\":s=u;break;case\"style\":z(e,a,u);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":break;default:A(p)&&\"function\"!=typeof u&&\"symbol\"!=typeof u&&e.push(V,d(p),q,d(T(u)),W)}return e.push($),J(e,s,l),l}}((i=t.blockedSegment).chunks,n,a,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=function(e,t,n){switch(t){case\"select\":return B(1,null!=n.value?n.value:n.defaultValue);case\"svg\":return B(2,null);case\"math\":return B(3,null);case\"foreignObject\":return B(1,null);case\"table\":return B(4,null);case\"thead\":case\"tbody\":case\"tfoot\":return B(5,null);case\"colgroup\":return B(7,null);case\"tr\":return B(6,null)}return 4<=e.insertionMode||0===e.insertionMode?B(1,null):e}(s,n,a),yn(e,t,l),i.formatContext=s,n){case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break;default:i.chunks.push(ie,d(n),le)}i.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,\"object\"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void mn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case gt:var r=n._init;return void vn(e,t,n=r(n._payload))}if(R(n))return void An(e,t,n);if((r=null===n||\"object\"!=typeof n?null:\"function\"==typeof(r=yt&&n[yt]||n[\"@@iterator\"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);An(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}\"string\"==typeof n?(r=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):\"number\"==typeof n&&((r=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,\"\"+n,e.responseState,r.lastPushedText))}function An(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Mt(a,r,o);try{yn(e,t,n[o])}finally{t.treeContext=a}}}function yn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return vn(e,t,n)}catch(s){if($t(),\"object\"!=typeof s||null===s||\"function\"!=typeof s.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,Rt(a),s;n=s;var i=t.blockedSegment,l=cn(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,Rt(a)}}function En(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Cn(this,t,e)}function bn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return bn(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function _n(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&_n(e,n)}else e.completedSegments.push(t)}function Cn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=sn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&_n(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(En,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(_n(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function wn(e){if(2!==e.status){var t=Ct,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){Rt(i.context);try{vn(l,i,i.node),s.lastPushedText&&s.textEmbedded&&s.chunks.push(F),i.abortSet.delete(i),s.status=1,Cn(l,i.blockedBoundary,s)}catch(e){if($t(),\"object\"==typeof e&&null!==e&&\"function\"==typeof e.then){var u=i.ping;e.then(u,u)}else{i.abortSet.delete(i),s.status=4;var c=i.blockedBoundary,d=e,p=dn(l,d);null===c?pn(l,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=p,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks&&(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&Nn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}finally{on=r,an.current=n,n===rn&&Rt(t)}}}function Sn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,l(t,se),l(t,e.placeholderPrefix),l(t,e=d(r.toString(16))),s(t,ue);case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var u=0;u<n.length;u++){for(a=n[u];i<a.index;i++)l(t,r[i]);a=Tn(e,t,a)}for(;i<r.length-1;i++)l(t,r[i]);return i<r.length&&(a=s(t,r[i])),a;default:throw Error(o(390))}}function Tn(e,t,n){var r=n.boundary;if(null===r)return Sn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,s(t,fe),l(t,he),r&&(l(t,ve),l(t,d(T(r))),l(t,me)),s(t,Ae),Sn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;a=p(a.boundaryPrefix+i.toString(16)),r=r.id=a,ye(t,e.responseState,r),Sn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),ye(t,e.responseState,r.id),Sn(e,t,n);else{if(s(t,ce),1!==(n=r.completedSegments).length)throw Error(o(391));Tn(e,t,n[0])}return s(t,ge)}function On(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return l(e,Ee),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,be);case 2:return l(e,Ce),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,we);case 3:return l(e,Te),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,Oe);case 4:return l(e,Re),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,Ne);case 5:return l(e,Pe),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,Me);case 6:return l(e,Ie),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,ke);case 7:return l(e,Fe),l(e,t.segmentPrefix),l(e,d(r.toString(16))),s(e,je);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return s(e,_e);case 2:return s(e,Se);case 3:return s(e,De);case 4:return s(e,Le);case 5:return s(e,xe);case 6:return s(e,Be);case 7:return s(e,He);default:throw Error(o(397))}}(t,n.formatContext)}function Dn(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)Rn(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,l(t,e.startInlineScript),e.sentCompleteBoundaryFunction?l(t,qe):(e.sentCompleteBoundaryFunction=!0,l(t,Ve)),null===r)throw Error(o(395));return n=d(n.toString(16)),l(t,r),l(t,We),l(t,e.segmentPrefix),l(t,n),s(t,Qe)}function Rn(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return On(e,t,r)}return On(e,t,r),l(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?l(t,Ye):(e.sentCompleteSegmentFunction=!0,l(t,Ue)),l(t,e.segmentPrefix),l(t,a=d(a.toString(16))),l(t,Ge),l(t,e.placeholderPrefix),l(t,a),s(t,ze)}function Nn(e,t){a=new Uint8Array(512),i=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)l(t,r[n]);n<r.length&&s(t,r[n])}var c,p=e.clientRenderedBoundaries;for(c=0;c<p.length;c++){var f=p[c];r=t;var g=e.responseState,h=f.id,m=f.errorDigest,v=f.errorMessage,A=f.errorComponentStack;if(l(r,g.startInlineScript),g.sentClientRenderFunction?l(r,$e):(g.sentClientRenderFunction=!0,l(r,Ke)),null===h)throw Error(o(395));if(l(r,h),l(r,Xe),(m||v||A)&&(l(r,Ze),l(r,d(tt(m||\"\")))),(v||A)&&(l(r,Ze),l(r,d(tt(v||\"\")))),A&&(l(r,Ze),l(r,d(tt(A)))),!s(r,Je))return e.destination=null,c++,void p.splice(0,c)}p.splice(0,c);var y=e.completedBoundaries;for(c=0;c<y.length;c++)if(!Dn(e,t,y[c]))return e.destination=null,c++,void y.splice(0,c);y.splice(0,c),u(t),a=new Uint8Array(512),i=0;var E=e.partialBoundaries;for(c=0;c<E.length;c++){var b=E[c];e:{p=e,f=t;var _=b.completedSegments;for(g=0;g<_.length;g++)if(!Rn(p,f,b,_[g])){g++,_.splice(0,g);var C=!1;break e}_.splice(0,g),C=!0}if(!C)return e.destination=null,c++,void E.splice(0,c)}E.splice(0,c);var w=e.completedBoundaries;for(c=0;c<w.length;c++)if(!Dn(e,t,w[c]))return e.destination=null,c++,void w.splice(0,c);w.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Ln(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return bn(n,e,t)}),n.clear(),null!==e.destination&&Nn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,a,i=new Promise(function(e,t){a=e,o=t}),l=function(e,t,n,r,o,a,i,l,s){var u=[],c=new Set;return(n=cn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?ln:o,onAllReady:void 0===a?sn:a,onShellReady:void 0===i?sn:i,onShellError:void 0===l?sn:l,onFatalError:void 0===s?sn:s},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,c,bt,null,Pt),u.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?\"\":e,t=void 0===t?N:p('<script nonce=\"'+T(t)+'\">');var a=[];if(void 0!==n&&a.push(t,d((\"\"+n).replace(I,k)),L),void 0!==r)for(n=0;n<r.length;n++)a.push(P,d(T(r[n])),x);if(void 0!==o)for(r=0;r<o.length;r++)a.push(M,d(T(o[r])),x);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:p(e+\"P:\"),segmentPrefix:p(e+\"S:\"),boundaryPrefix:e+\"B:\",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return B(\"http://www.w3.org/2000/svg\"===e?2:\"http://www.w3.org/1998/Math/MathML\"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:\"bytes\",pull:function(e){if(1===l.status)l.status=2,f(e,l.fatalError);else if(2!==l.status&&null===l.destination){l.destination=e;try{Nn(l,e)}catch(e){dn(l,e),pn(l,e)}}},cancel:function(){Ln(l)}},{highWaterMark:0});e.allReady=i,n(e)},function(e){i.catch(function(){}),r(e)},o);if(t&&t.signal){var s=t.signal,u=function(){Ln(l,s.reason),s.removeEventListener(\"abort\",u)};s.addEventListener(\"abort\",u)}wn(l)})},t.version=\"18.3.1\"},72923:(e,t,n)=>{\"use strict\";t.A=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(\"default\"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(81970)),o=n(22532);function a(e){if(\"function\"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(o.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},72949:(e,t,n)=>{var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},73093:(e,t,n)=>{\"use strict\";var r=n(94459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},73126:(e,t,n)=>{\"use strict\";var r=n(66743),o=n(69675),a=n(10076),i=n(13144);e.exports=function(e){if(e.length<1||\"function\"!=typeof e[0])throw new o(\"a function is required\");return i(r,a,e)}},73300:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=r(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==r(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Gu:()=>s,OV:()=>a,QH:()=>i,ov:()=>l}),n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(2892),n(84185),n(26099),n(47764),n(62953);var a=function(e){return e.CREATED=\"CREATED\",e.IN_PROGRESS=\"IN_PROGRESS\",e.COMPLETED=\"COMPLETED\",e.DISPATCHED=\"DISPATCHED\",e.PICKED=\"PICKED\",e.ASSIGNED=\"ASSIGNED\",e.NEW=\"NEW\",e.NOT_STARTED=\"NOT_STARTED\",e}({}),i=o(o(o(o(o(o(o(o({},a.CREATED,\"Created\"),a.IN_PROGRESS,\"In Progress\"),a.COMPLETED,\"Completed\"),a.DISPATCHED,\"Dispatched\"),a.PICKED,\"Picked\"),a.ASSIGNED,\"Assigned\"),a.NEW,\"New\"),a.NOT_STARTED,\"Not Started\"),l=function(e){return e.DEMO_TRACKING=\"DEMO_TRACKING\",e.DEMO_KEY=\"demo_manager_hq_level\",e}({}),s=function(e){return e.DISPATCH_LIST=\"DISPATCH_LIST\",e.DEMO_LIST=\"DEMO_LIST\",e}({})},73386:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ms\",{months:\"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember\".split(\"_\"),monthsShort:\"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis\".split(\"_\"),weekdays:\"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu\".split(\"_\"),weekdaysShort:\"Ahd_Isn_Sel_Rab_Kha_Jum_Sab\".split(\"_\"),weekdaysMin:\"Ah_Is_Sl_Rb_Km_Jm_Sb\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [pukul] HH.mm\",LLLL:\"dddd, D MMMM YYYY [pukul] HH.mm\"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),\"pagi\"===t?e:\"tengahari\"===t?e>=11?e:e+12:\"petang\"===t||\"malam\"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?\"pagi\":e<15?\"tengahari\":e<19?\"petang\":\"malam\"},calendar:{sameDay:\"[Hari ini pukul] LT\",nextDay:\"[Esok pukul] LT\",nextWeek:\"dddd [pukul] LT\",lastDay:\"[Kelmarin pukul] LT\",lastWeek:\"dddd [lepas pukul] LT\",sameElse:\"L\"},relativeTime:{future:\"dalam %s\",past:\"%s yang lepas\",s:\"beberapa saat\",ss:\"%d saat\",m:\"seminit\",mm:\"%d minit\",h:\"sejam\",hh:\"%d jam\",d:\"sehari\",dd:\"%d hari\",M:\"sebulan\",MM:\"%d bulan\",y:\"setahun\",yy:\"%d tahun\"},week:{dow:1,doy:7}})}(n(95093))},73506:(e,t,n)=>{\"use strict\";var r=n(13925),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(\"Can't set \"+o(e)+\" as a prototype\")}},73524:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>d});var r=n(81970),o=n(31523),a=n(57223),i=n(32325),l=n(74848);const s=[\"input\",\"select\",\"textarea\",\"a[href]\",\"button\",\"[tabindex]\",\"audio[controls]\",\"video[controls]\",'[contenteditable]:not([contenteditable=\"false\"])'].join(\",\");function u(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute(\"tabindex\")||\"\",10);return Number.isNaN(t)?\"true\"===e.contentEditable||(\"AUDIO\"===e.nodeName||\"VIDEO\"===e.nodeName||\"DETAILS\"===e.nodeName)&&null===e.getAttribute(\"tabindex\")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||\"INPUT\"===e.tagName&&\"hidden\"===e.type||function(e){if(\"INPUT\"!==e.tagName||\"radio\"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type=\"radio\"]${t}`);let n=t(`[name=\"${e.name}\"]:checked`);return n||(n=t(`[name=\"${e.name}\"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function c(){return!0}const d=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:d=!1,getTabbable:p=u,isEnabled:f=c,open:g}=e,h=r.useRef(!1),m=r.useRef(null),v=r.useRef(null),A=r.useRef(null),y=r.useRef(null),E=r.useRef(!1),b=r.useRef(null),_=(0,o.A)((0,a.A)(t),b),C=r.useRef(null);r.useEffect(()=>{g&&b.current&&(E.current=!n)},[n,g]),r.useEffect(()=>{if(!g||!b.current)return;const e=(0,i.A)(b.current);return b.current.contains(e.activeElement)||(b.current.hasAttribute(\"tabIndex\")||b.current.setAttribute(\"tabIndex\",\"-1\"),E.current&&b.current.focus()),()=>{d||(A.current&&A.current.focus&&(h.current=!0,A.current.focus()),A.current=null)}},[g]),r.useEffect(()=>{if(!g||!b.current)return;const e=(0,i.A)(b.current),t=t=>{C.current=t,!s&&f()&&\"Tab\"===t.key&&e.activeElement===b.current&&t.shiftKey&&(h.current=!0,v.current&&v.current.focus())},n=()=>{const t=b.current;if(null===t)return;if(!e.hasFocus()||!f()||h.current)return void(h.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==m.current&&e.activeElement!==v.current)return;if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!E.current)return;let n=[];if(e.activeElement!==m.current&&e.activeElement!==v.current||(n=p(b.current)),n.length>0){var r,o;const e=Boolean((null==(r=C.current)?void 0:r.shiftKey)&&\"Tab\"===(null==(o=C.current)?void 0:o.key)),t=n[0],a=n[n.length-1];\"string\"!=typeof t&&\"string\"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener(\"focusin\",n),e.addEventListener(\"keydown\",t,!0);const r=setInterval(()=>{e.activeElement&&\"BODY\"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener(\"focusin\",n),e.removeEventListener(\"keydown\",t,!0)}},[n,s,d,f,g,p]);const w=e=>{null===A.current&&(A.current=e.relatedTarget),E.current=!0};return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)(\"div\",{tabIndex:g?0:-1,onFocus:w,ref:m,\"data-testid\":\"sentinelStart\"}),r.cloneElement(t,{ref:_,onFocus:e=>{null===A.current&&(A.current=e.relatedTarget),E.current=!0,y.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,l.jsx)(\"div\",{tabIndex:g?0:-1,onFocus:w,ref:v,\"data-testid\":\"sentinelEnd\"})]})}},73635:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"cv\",{months:\"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав\".split(\"_\"),monthsShort:\"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш\".split(\"_\"),weekdays:\"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун\".split(\"_\"),weekdaysShort:\"выр_тун_ытл_юн_кӗҫ_эрн_шӑм\".split(\"_\"),weekdaysMin:\"вр_тн_ыт_юн_кҫ_эр_шм\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD-MM-YYYY\",LL:\"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]\",LLL:\"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm\",LLLL:\"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm\"},calendar:{sameDay:\"[Паян] LT [сехетре]\",nextDay:\"[Ыран] LT [сехетре]\",lastDay:\"[Ӗнер] LT [сехетре]\",nextWeek:\"[Ҫитес] dddd LT [сехетре]\",lastWeek:\"[Иртнӗ] dddd LT [сехетре]\",sameElse:\"L\"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?\"рен\":/ҫул$/i.exec(e)?\"тан\":\"ран\")},past:\"%s каялла\",s:\"пӗр-ик ҫеккунт\",ss:\"%d ҫеккунт\",m:\"пӗр минут\",mm:\"%d минут\",h:\"пӗр сехет\",hh:\"%d сехет\",d:\"пӗр кун\",dd:\"%d кун\",M:\"пӗр уйӑх\",MM:\"%d уйӑх\",y:\"пӗр ҫул\",yy:\"%d ҫул\"},dayOfMonthOrdinalParse:/\\d{1,2}-мӗш/,ordinal:\"%d-мӗш\",week:{dow:1,doy:7}})}(n(95093))},73668:e=>{\"use strict\";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,r=/^\\d+$/,o=/^\\d/,a=/[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,i=/^\\s*(['\"]?)(.*?)(\\1)\\s*$/,l=new t(512),s=new t(512),u=new t(512);function c(e){return l.get(e)||l.set(e,d(e).map(function(e){return e.replace(i,\"$2\")}))}function d(e){return e.match(n)||[\"\"]}function p(e){return\"string\"==typeof e&&e&&-1!==[\"'\",'\"'].indexOf(e.charAt(0))}function f(e){return!p(e)&&(function(e){return e.match(o)&&!e.match(r)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return s.get(e)||s.set(e,function(e,n){for(var r=0,o=t.length,a=e;r<o-1;){var i=t[r];if(\"__proto__\"===i||\"constructor\"===i||\"prototype\"===i)return e;a=a[t[r++]]}a[t[r]]=n})},getter:function(e,t){var n=c(e);return u.get(e)||u.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(p(t)||r.test(t)?\"[\"+t+\"]\":(e?\".\":\"\")+t)},\"\")},forEach:function(e,t,n){!function(e,t,n){var r,o,a,i,l=e.length;for(o=0;o<l;o++)(r=e[o])&&(f(r)&&(r='\"'+r+'\"'),a=!(i=p(r))&&/^\\d+$/.test(r),t.call(n,r,i,a,o,e))}(Array.isArray(e)?e:d(e),t,n)}}},73738:e=>{function t(n){return e.exports=t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73739:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ml\",{months:\"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ\".split(\"_\"),monthsShort:\"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.\".split(\"_\"),monthsParseExact:!0,weekdays:\"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച\".split(\"_\"),weekdaysShort:\"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി\".split(\"_\"),weekdaysMin:\"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ\".split(\"_\"),longDateFormat:{LT:\"A h:mm -നു\",LTS:\"A h:mm:ss -നു\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm -നു\",LLLL:\"dddd, D MMMM YYYY, A h:mm -നു\"},calendar:{sameDay:\"[ഇന്ന്] LT\",nextDay:\"[നാളെ] LT\",nextWeek:\"dddd, LT\",lastDay:\"[ഇന്നലെ] LT\",lastWeek:\"[കഴിഞ്ഞ] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s കഴിഞ്ഞ്\",past:\"%s മുൻപ്\",s:\"അൽപ നിമിഷങ്ങൾ\",ss:\"%d സെക്കൻഡ്\",m:\"ഒരു മിനിറ്റ്\",mm:\"%d മിനിറ്റ്\",h:\"ഒരു മണിക്കൂർ\",hh:\"%d മണിക്കൂർ\",d:\"ഒരു ദിവസം\",dd:\"%d ദിവസം\",M:\"ഒരു മാസം\",MM:\"%d മാസം\",y:\"ഒരു വർഷം\",yy:\"%d വർഷം\"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),\"രാത്രി\"===t&&e>=4||\"ഉച്ച കഴിഞ്ഞ്\"===t||\"വൈകുന്നേരം\"===t?e+12:e},meridiem:function(e,t,n){return e<4?\"രാത്രി\":e<12?\"രാവിലെ\":e<17?\"ഉച്ച കഴിഞ്ഞ്\":e<20?\"വൈകുന്നേരം\":\"രാത്രി\"}})}(n(95093))},73788:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c,I:()=>u});var r=n(58168),o=n(98587),a=n(81970),i=n(74848);const l=[\"value\"],s=a.createContext(),u=()=>{const e=a.useContext(s);return null!=e&&e},c=function(e){let{value:t}=e,n=(0,o.A)(e,l);return(0,i.jsx)(s.Provider,(0,r.A)({value:null==t||t},n))}},73893:(e,t,n)=>{\"use strict\";function r(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}n.d(t,{A:()=>r})},73896:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>T});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(11848),c=n(39770),d=n(25669),p=n(32850),f=n(18850),g=n(2778),h=n(96852),m=n(61347),v=n(89102),A=n(68081),y=n(38413),E=n(31609);function b(e){return(0,E.Ay)(\"MuiMenuItem\",e)}const _=(0,y.A)(\"MuiMenuItem\",[\"root\",\"focusVisible\",\"dense\",\"disabled\",\"divider\",\"gutters\",\"selected\"]);var C=n(74848);const w=[\"autoFocus\",\"component\",\"dense\",\"divider\",\"disableGutters\",\"focusVisibleClassName\",\"role\",\"tabIndex\",\"className\"],S=(0,u.Ay)(f.A,{shouldForwardProp:e=>(0,c.A)(e)||\"classes\"===e,name:\"MuiMenuItem\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,o.A)({},e.typography.body1,{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",position:\"relative\",textDecoration:\"none\",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:\"border-box\",whiteSpace:\"nowrap\"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:\"padding-box\"},{\"&:hover\":{textDecoration:\"none\",backgroundColor:(e.vars||e).palette.action.hover,\"@media (hover: none)\":{backgroundColor:\"transparent\"}},[`&.${_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m.A.inset}`]:{marginLeft:52},[`& .${A.A.root}`]:{marginTop:0,marginBottom:0},[`& .${A.A.inset}`]:{paddingLeft:36},[`& .${v.A.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up(\"sm\")]:{minHeight:\"auto\"}},t.dense&&(0,o.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${v.A.root} svg`]:{fontSize:\"1.25rem\"}}))),T=a.forwardRef(function(e,t){const n=(0,d.b)({props:e,name:\"MuiMenuItem\"}),{autoFocus:s=!1,component:u=\"li\",dense:c=!1,divider:f=!1,disableGutters:m=!1,focusVisibleClassName:v,role:A=\"menuitem\",tabIndex:y,className:E}=n,_=(0,r.A)(n,w),T=a.useContext(p.A),O=a.useMemo(()=>({dense:c||T.dense||!1,disableGutters:m}),[T.dense,c,m]),D=a.useRef(null);(0,g.A)(()=>{s&&D.current&&D.current.focus()},[s]);const R=(0,o.A)({},n,{dense:O.dense,divider:f,disableGutters:m}),N=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,u={root:[\"root\",n&&\"dense\",t&&\"disabled\",!a&&\"gutters\",r&&\"divider\",i&&\"selected\"]},c=(0,l.A)(u,b,s);return(0,o.A)({},s,c)})(n),L=(0,h.A)(D,t);let P;return n.disabled||(P=void 0!==y?y:-1),(0,C.jsx)(p.A.Provider,{value:O,children:(0,C.jsx)(S,(0,o.A)({ref:L,role:A,tabIndex:P,component:u,focusVisibleClassName:(0,i.A)(N.focusVisible,v),className:(0,i.A)(N.root,E)},_,{ownerState:R,classes:N}))})})},73901:(e,t,n)=>{var r=n(69204),o=n(9250),a=n(8830);e.exports=function(e){return function(t,n,i){var l,s=r(t),u=o(s.length),c=a(i,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},73916:(e,t,n)=>{var r=n(43360),o=n(30641),a=n(15389);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},73934:e=>{e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(e+\" is not a function!\");return e}},74063:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"id\",{months:\"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des\".split(\"_\"),weekdays:\"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu\".split(\"_\"),weekdaysShort:\"Min_Sen_Sel_Rab_Kam_Jum_Sab\".split(\"_\"),weekdaysMin:\"Mg_Sn_Sl_Rb_Km_Jm_Sb\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [pukul] HH.mm\",LLLL:\"dddd, D MMMM YYYY [pukul] HH.mm\"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),\"pagi\"===t?e:\"siang\"===t?e>=11?e:e+12:\"sore\"===t||\"malam\"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?\"pagi\":e<15?\"siang\":e<19?\"sore\":\"malam\"},calendar:{sameDay:\"[Hari ini pukul] LT\",nextDay:\"[Besok pukul] LT\",nextWeek:\"dddd [pukul] LT\",lastDay:\"[Kemarin pukul] LT\",lastWeek:\"dddd [lalu pukul] LT\",sameElse:\"L\"},relativeTime:{future:\"dalam %s\",past:\"%s yang lalu\",s:\"beberapa detik\",ss:\"%d detik\",m:\"semenit\",mm:\"%d menit\",h:\"sejam\",hh:\"%d jam\",d:\"sehari\",dd:\"%d hari\",M:\"sebulan\",MM:\"%d bulan\",y:\"setahun\",yy:\"%d tahun\"},week:{dow:0,doy:6}})}(n(95093))},74072:(e,t,n)=>{\"use strict\";n.d(t,{$c:()=>l,GW:()=>u,LE:()=>d,Xh:()=>c,fx:()=>s}),n(28706),n(48598),n(62062),n(26099),n(16034),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(13075),i=n(19940),l=function(e,t,n){var a,i={};return i.domain=t,i.endPoint=o.p.SAVESALEHIERARCHY,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},s=function(e,t,n){var a,i,l={};return l.domain=t,l.endPoint=o.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_code),l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},u=function(e,t,n,a,l){var s,u,c,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",p={};return p.domain=t,p.endPoint=l?\"\".concat(o.p.GET_ATTENDANCE_CONFIG_DATA,\"?\",\"moduleName=\".concat(i.Sn.ATTENDANCE_MODULE),\"&\").concat(null==Object?void 0:Object.values(i.DG).map(function(e){return\"keys=\".concat(e)}).join(\"&\"),\"&portfolioCode=\").concat(d||(null==e||null===(s=e.selectedBusinessUnit)||void 0===s?void 0:s.portfolio_code)||\"DEFAULT\"):\"\".concat(o.p.GET_ATTENDANCE_CONFIG_DATA,\"?moduleName=\").concat(i.Sn.ATTENDANCE_MODULE,\"&keys=attendance_role&portfolioCode=\").concat(d||(null==e||null===(u=e.selectedBusinessUnit)||void 0===u?void 0:u.portfolio_code)||\"DEFAULT\"),p.customHeaders={\"role-id\":l?n:null,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(c=e.selectedCountry)||void 0===c?void 0:c.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},p.triggerLoader=a,new Promise(function(e,t){var n;null===(n=r.N.get(p))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},c=function(e,t,n){var a,i={};return i.domain=t,i.endPoint=o.p.GET_ATTENDANCE_TYPES,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},d=function(e,t,n,r){var i,l,s={};return s.domain=t,s.endPoint=o.p.SAVE_ATTENDANCE_TYPES,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.payLoad=r,s.triggerLoader=n,(0,a.AT)(\"post\",s,!1)}},74218:e=>{e.exports=function(e){var t=typeof e;return\"string\"==t||\"number\"==t||\"symbol\"==t||\"boolean\"==t?\"__proto__\"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},74338:(e,t,n)=>{var r=n(67976),o=n(12461);e.exports=function(e,t){return!t||\"object\"!==r(t)&&\"function\"!=typeof t?o(e):t}},74347:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>s});var r=n(28161),o=n(47839),a=n(81970),i=n.n(a),l=function(e){var t=e.toolTipValue,n=e.children,a=e.arrow,l=e.placement;return i().createElement(r.A,null,i().createElement(o.A,{title:t,arrow:a,placement:l},n))};const s=i().memo(l)},74353:function(e){e.exports=function(){\"use strict\";var e=6e4,t=36e5,n=\"millisecond\",r=\"second\",o=\"minute\",a=\"hour\",i=\"day\",l=\"week\",s=\"month\",u=\"quarter\",c=\"year\",d=\"date\",p=\"Invalid Date\",f=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,g=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(e){var t=[\"th\",\"st\",\"nd\",\"rd\"],n=e%100;return\"[\"+e+(t[(n-20)%10]||t[n]||t[0])+\"]\"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:\"\"+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(o,2,\"0\")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),a=n-o<0,i=t.clone().add(r+(a?-1:1),s);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:c,w:l,d:i,D:d,h:a,m:o,s:r,ms:n,Q:u}[e]||String(e||\"\").toLowerCase().replace(/s$/,\"\")},u:function(e){return void 0===e}},A=\"en\",y={};y[A]=h;var E=\"$isDayjsObject\",b=function(e){return e instanceof S||!(!e||!e[E])},_=function e(t,n,r){var o;if(!t)return A;if(\"string\"==typeof t){var a=t.toLowerCase();y[a]&&(o=a),n&&(y[a]=n,o=a);var i=t.split(\"-\");if(!o&&i.length>1)return e(i[0])}else{var l=t.name;y[l]=t,o=l}return!r&&o&&(A=o),o||!r&&A},C=function(e,t){if(b(e))return e.clone();var n=\"object\"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},w=v;w.l=_,w.i=b,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(\"string\"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,a=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return C(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<C(e)},m.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,u=!!w.u(t)||t,p=w.p(e),f=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(i)},g=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(\"s\"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,v=this.$D,A=\"set\"+(this.$u?\"UTC\":\"\");switch(p){case c:return u?f(1,0):f(31,11);case s:return u?f(1,m):f(0,m+1);case l:var y=this.$locale().weekStart||0,E=(h<y?h+7:h)-y;return f(u?v-E:v+(6-E),m);case i:case d:return g(A+\"Hours\",0);case a:return g(A+\"Minutes\",1);case o:return g(A+\"Seconds\",2);case r:return g(A+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var l,u=w.p(e),p=\"set\"+(this.$u?\"UTC\":\"\"),f=(l={},l[i]=p+\"Date\",l[d]=p+\"Date\",l[s]=p+\"Month\",l[c]=p+\"FullYear\",l[a]=p+\"Hours\",l[o]=p+\"Minutes\",l[r]=p+\"Seconds\",l[n]=p+\"Milliseconds\",l)[u],g=u===i?this.$D+(t-this.$W):t;if(u===s||u===c){var h=this.clone().set(d,1);h.$d[f](g),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[w.p(e)]()},m.add=function(n,u){var d,p=this;n=Number(n);var f=w.p(u),g=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*n)),p)};if(f===s)return this.set(s,this.$M+n);if(f===c)return this.set(c,this.$y+n);if(f===i)return g(1);if(f===l)return g(7);var h=(d={},d[o]=e,d[a]=t,d[r]=1e3,d)[f]||1,m=this.$d.getTime()+n*h;return w.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||\"YYYY-MM-DDTHH:mm:ssZ\",o=w.z(this),a=this.$H,i=this.$m,l=this.$M,s=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,\"0\")},h=c||function(e,t,n){var r=e<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case\"YY\":return String(t.$y).slice(-2);case\"YYYY\":return w.s(t.$y,4,\"0\");case\"M\":return l+1;case\"MM\":return w.s(l+1,2,\"0\");case\"MMM\":return d(n.monthsShort,l,u,3);case\"MMMM\":return d(u,l);case\"D\":return t.$D;case\"DD\":return w.s(t.$D,2,\"0\");case\"d\":return String(t.$W);case\"dd\":return d(n.weekdaysMin,t.$W,s,2);case\"ddd\":return d(n.weekdaysShort,t.$W,s,3);case\"dddd\":return s[t.$W];case\"H\":return String(a);case\"HH\":return w.s(a,2,\"0\");case\"h\":return f(1);case\"hh\":return f(2);case\"a\":return h(a,i,!0);case\"A\":return h(a,i,!1);case\"m\":return String(i);case\"mm\":return w.s(i,2,\"0\");case\"s\":return String(t.$s);case\"ss\":return w.s(t.$s,2,\"0\");case\"SSS\":return w.s(t.$ms,3,\"0\");case\"Z\":return o}return null}(e)||o.replace(\":\",\"\")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,p){var f,g=this,h=w.p(d),m=C(n),v=(m.utcOffset()-this.utcOffset())*e,A=this-m,y=function(){return w.m(g,m)};switch(h){case c:f=y()/12;break;case s:f=y();break;case u:f=y()/3;break;case l:f=(A-v)/6048e5;break;case i:f=(A-v)/864e5;break;case a:f=A/t;break;case o:f=A/e;break;case r:f=A/1e3;break;default:f=A}return p?f:w.a(f)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),T=S.prototype;return C.prototype=T,[[\"$ms\",n],[\"$s\",r],[\"$m\",o],[\"$H\",a],[\"$W\",i],[\"$M\",s],[\"$y\",c],[\"$D\",d]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,S,C),e.$i=!0),C},C.locale=_,C.isDayjs=b,C.unix=function(e){return C(1e3*e)},C.en=y[A],C.Ls=y,C.p={},C}()},74423:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(19617).includes,a=n(79039),i=n(6469);r({target:\"Array\",proto:!0,forced:a(function(){return!Array(1).includes()})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(\"includes\")},74488:(e,t,n)=>{\"use strict\";var r=n(67680),o=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(var i,l,s=1;s<n;){for(l=s,i=e[s];l&&t(e[l-1],i)>0;)e[l]=e[--l];l!==s++&&(e[l]=i)}else for(var u=o(n/2),c=a(r(e,0,u),t),d=a(r(e,u),t),p=c.length,f=d.length,g=0,h=0;g<p||h<f;)e[g+h]=g<p&&h<f?t(c[g],d[h])<=0?c[g++]:d[h++]:g<p?c[g++]:d[h++];return e};e.exports=a},74623:e=>{e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},74705:(e,t,n)=>{\"use strict\";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},74765:e=>{\"use strict\";var t=String.prototype.replace,n=/%20/g,r=\"RFC3986\";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,\"+\")},RFC3986:function(e){return String(e)}},RFC1738:\"RFC1738\",RFC3986:r}},74848:(e,t,n)=>{\"use strict\";e.exports=n(21020)},74959:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&\"function\"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},75007:(e,t,n)=>{\"use strict\";n.d(t,{N:()=>d});var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(47225),s=n(11848),u=n(28161);const c=(0,s.Ay)(u.A)(function(){return{background:\"#F5F5F5\",position:\"absolute\",top:\"135px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 153px)\",overflowY:\"auto\",padding:\"25px\",textAlign:\"center\",scrollbarWidth:\"thin\",\"&.no-user-name-wrapper\":{height:\"calc(100% - 80px)\",top:\"80px\"},\"&.inActiveHeader\":{height:\"calc(100% - 80px) !important\",top:\"80px\"},\"::-webkit-scrollbar\":{width:\"6px\"},\"::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"},\"& span\":{'&[class^=\"icon-\"], &[class*=\" icon-\"]':{color:\"#62801E\",fontSize:33,lineHeight:\"normal\"}},\"& .MuiDivider-root\":{margin:\"20px 0 8px\"},\"& .cardTitle\":{color:\"#232630\",font:\"normal normal 600 16px/22px NotoSans-Semibold\"}}});var d=function(e){var t=e.children,n=(0,a.zy)().pathname,s=(0,r.useContext)(l.v).currentParentPath;return o().createElement(c,{className:\"string\"!=typeof n||n!==\"/\".concat(i.fp.RootDashboard)&&(null==s?void 0:s.pathname)!==\"/\".concat(i.fp.SmartAgro)?\"no-user-name-wrapper\":\"\"},t)}},75027:(e,t,n)=>{\"use strict\";n.d(t,{I:()=>i});var r=n(6398),o=n(43457),a=n(17630),i=(0,r.A)({AdminConfigFields:{height:\"calc(100vh - 275px)\",overflow:\"auto\",marginBottom:\"20px\",scrollbarWidth:\"thin\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},AdminConfig:{padding:\"16px\",minHeight:\"60px\",borderRadius:\"6px\",\"& .btn-icon\":{fontSize:\"14px !important\"},marginBottom:\"16px\",border:\"1px solid #E8EAED\",\"&:last-child\":{marginBottom:\"0px\"},\"& .liquidation-target-calender\":{\"& .MuiPickersCalendarHeader-labelContainer:after\":{content:'\"YEAR\"',color:\"rgb(250, 251, 252)\",backgroundColor:\"rgb(250, 251, 252)\",position:\"relative\",left:\"-74px\"},\"& .MuiButtonBase-root .MuiIconButton-root\":{left:\"-45px\",zIndex:\"100\"}}},adminConfigInputWrapper:{minWidth:\"240px\"},AdminConfigTooltip:{\"& .MuiTooltip-popper\":{backgroundColor:a.w.palette.grey[500]}},readOnlyFiled:{opacity:\"0.5\",cursor:\"not-allowed\",\"& .Mui-disabled\":{cursor:\"not-allowed !important\"}},OverLay:{overlay:o.Lw},autoCompleteBox:{\"& .multi-select\":{maxWidth:\"250px !important\"}}})},75044:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(84373),a=n(75854),i=n(36955),l=n(69565),s=n(79504),u=n(79039),c=r.aTypedArray,d=r.exportTypedArrayMethod,p=s(\"\".slice);d(\"fill\",function(e){var t=arguments.length;c(this);var n=\"Big\"===p(i(this),0,3)?a(e):+e;return l(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},u(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},75056:(e,t,n)=>{\"use strict\";e.exports=n.p+\"72e6abab3f222110013d.svg\"},75094:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var l=i(n(81970)),s=n(98400),u=n(64436),c=n(63981),d=n(9670),p=n(67991);t.default=l.memo(function(e){var t=l.useContext(s.BeansContext).context,n=l.useState(new c.CssClasses(\"ag-header-cell\",\"ag-floating-filter\")),o=n[0],a=n[1],i=l.useState(new c.CssClasses),f=i[0],g=i[1],h=l.useState(new c.CssClasses(\"ag-floating-filter-button\",\"ag-hidden\")),m=h[0],v=h[1],A=l.useState(\"false\"),y=A[0],E=A[1],b=l.useState(),_=b[0],C=b[1],w=l.useRef(null),S=l.useRef(null),T=l.useRef(null),O=l.useRef(null),D=l.useRef(!1),R=l.useRef(),N=l.useRef();p.useLayoutEffectOnce(function(){N.current=new u.AgPromise(function(e){R.current=e})});var L=function(e){D.current||null!=e&&(R.current&&R.current(e),D.current=!0)},P=e.ctrl;p.useLayoutEffectOnce(function(){var e={addOrRemoveCssClass:function(e,t){return a(function(n){return n.setClass(e,t)})},addOrRemoveBodyCssClass:function(e,t){return g(function(n){return n.setClass(e,t)})},setButtonWrapperDisplayed:function(e){v(function(t){return t.setClass(\"ag-hidden\",!e)}),E(e?\"false\":\"true\")},setWidth:function(e){return w.current.style.width=e},setCompDetails:function(e){return C(e)},getFloatingFilterComp:function(){return N.current?N.current:null},setMenuIcon:function(e){return O.current.appendChild(e)}};P.setComp(e,w.current,O.current,S.current)}),l.useLayoutEffect(function(){return d.showJsComp(_,t,S.current,L)},[_]);var M=l.useMemo(function(){return o.toString()},[o]),x=l.useMemo(function(){return f.toString()},[f]),I=l.useMemo(function(){return m.toString()},[m]),k=l.useMemo(function(){return!!(_&&_.componentFromFramework&&c.isComponentStateless(_.componentClass))},[_]),B=_&&_.componentFromFramework,F=_&&_.componentClass;return l.default.createElement(\"div\",{ref:w,className:M,role:\"gridcell\",tabIndex:-1},l.default.createElement(\"div\",{ref:S,className:x,role:\"presentation\"},B&&k&&l.default.createElement(F,r({},_.params)),B&&!k&&l.default.createElement(F,r({},_.params,{ref:L}))),l.default.createElement(\"div\",{ref:T,\"aria-hidden\":y,className:I,role:\"presentation\"},l.default.createElement(\"button\",{ref:O,type:\"button\",\"aria-label\":\"Open Filter Menu\",className:\"ag-floating-filter-button-button\",tabIndex:-1})))})},75181:(e,t,n)=>{\"use strict\";e.exports=n.p+\"4cfb21d18b0bb41335c2.woff2\"},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},75302:(e,t,n)=>{\"use strict\";e.exports=n.p+\"914869431e42dc6d7c6f.svg\"},75522:(e,t,n)=>{e.exports={default:n(33025),__esModule:!0}},75529:(e,t,n)=>{n(62613)(\"observable\")},75659:(e,t,n)=>{\"use strict\";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);\"\"!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(\" \")}),r}n.d(t,{A:()=>r})},75765:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(28466),u=n(25669),c=n(11848),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiSvgIcon\",e)}(0,d.A)(\"MuiSvgIcon\",[\"root\",\"colorPrimary\",\"colorSecondary\",\"colorAction\",\"colorError\",\"colorDisabled\",\"fontSizeInherit\",\"fontSizeSmall\",\"fontSizeMedium\",\"fontSizeLarge\"]);var g=n(74848);const h=[\"children\",\"className\",\"color\",\"component\",\"fontSize\",\"htmlColor\",\"inheritViewBox\",\"titleAccess\",\"viewBox\"],m=(0,c.Ay)(\"svg\",{name:\"MuiSvgIcon\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,\"inherit\"!==n.color&&t[`color${(0,s.A)(n.color)}`],t[`fontSize${(0,s.A)(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,u,c,d,p,f,g;return{userSelect:\"none\",width:\"1em\",height:\"1em\",display:\"inline-block\",fill:t.hasSvgAsChild?void 0:\"currentColor\",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,\"fill\",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:\"inherit\",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||\"1.25rem\",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||\"1.5rem\",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||\"2.1875rem\"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(g=(e.vars||e).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[t.color]}}),v=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiSvgIcon\"}),{children:c,className:d,color:p=\"inherit\",component:v=\"svg\",fontSize:A=\"medium\",htmlColor:y,inheritViewBox:E=!1,titleAccess:b,viewBox:_=\"0 0 24 24\"}=n,C=(0,o.A)(n,h),w=a.isValidElement(c)&&\"svg\"===c.type,S=(0,r.A)({},n,{color:p,component:v,fontSize:A,instanceFontSize:e.fontSize,inheritViewBox:E,viewBox:_,hasSvgAsChild:w}),T={};E||(T.viewBox=_);const O=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:[\"root\",\"inherit\"!==t&&`color${(0,s.A)(t)}`,`fontSize${(0,s.A)(n)}`]};return(0,l.A)(o,f,r)})(S);return(0,g.jsxs)(m,(0,r.A)({as:v,className:(0,i.A)(O.root,d),focusable:\"false\",color:y,\"aria-hidden\":!b||void 0,role:b?\"img\":void 0,ref:t},T,C,w&&c.props,{ownerState:S,children:[w?c.props.children:c,b?(0,g.jsx)(\"title\",{children:b}):null]}))});v.muiName=\"SvgIcon\";const A=v},75785:(e,t,n)=>{\"use strict\";e.exports=n.p+\"d276983469aa898110b8.svg\"},75795:(e,t,n)=>{\"use strict\";var r=n(6549);if(r)try{r([],\"length\")}catch(e){r=null}e.exports=r},75854:(e,t,n)=>{\"use strict\";var r=n(72777),o=TypeError;e.exports=function(e){var t=r(e,\"number\");if(\"number\"==typeof t)throw new o(\"Can't convert number to bigint\");return BigInt(t)}},75872:(e,t,n)=>{e.exports=!n(82451)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},75880:e=>{\"use strict\";e.exports=Math.pow},76031:(e,t,n)=>{\"use strict\";n(15575),n(24599)},76059:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e7885423ce75f16a91a3.woff\"},76080:(e,t,n)=>{\"use strict\";var r=n(27476),o=n(79306),a=n(40616),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},76082:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>W}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(26910),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(60538),i=n(81970),l=n.n(i),s=n(34195),u=n(8085),c=n(37998),d=n(96348),p=n(27305),f=n(47225),g=n(56254),h=n(43605),m=n(92416),v=n(15664),A=n(59615),y=n(28462),E=(n(42762),n(15941)),b=function(){return E.Ik().shape({level:E.Ik().required(\"Level required\"),salesHierarchyCode:E.Yj().min(2,\"Sales Hierarchy Code should be at least 2 characters\").max(5,\"Sales Hierarchy Code should be a max of 5 characters\").required(\"Sales Hierarchy Code required\"),salesHierarchyName:E.Yj().min(5,\"Sales Hierarchy Name should be at least 5 characters\").max(30,\"Sales Hierarchy Name should be a max of 30 characters\").trim(\"Starting spaces are not allowed\").matches(/^[A-Za-z ]*$/,\"Please enter valid Sales Hierarchy Name\").required(\"Sales Hierarchy Name required\"),parent:E.Yj().test(\"parent-required\",\"Parent required\",function(e){var t=this.parent.level;return!1===(null==t?void 0:t.hasParent)||null!=e&&\"\"!==e.trim()}).nullable()})},_=n(14073),C=n(88084),w=n(64121),S=n(28152),T=/^[A-Za-z]+$/;const O=function(e){var t,n=e.formikProps,a=e.isEditingMode,i=e.salesHierarchyLevels,u=e.salesHierarchyParent,c=e.parentDisable,d=e.setSelectedParentId,p=e.updateSalesParent,f=n.values,g=n.setFieldValue,h=(0,s.Bd)().t;return l().createElement(l().Fragment,null,l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(_.A,{variant:\"subtitle2\"},h(\"LEVEL\"),\"*\"),l().createElement(C.D0,{name:\"level\"},function(){var e,t;return l().createElement(w.A,{name:\"level\",onChange:function(e,t){1===(null==t?void 0:t.id)?g(\"parent\",\"NA\"):g(\"parent\",\"\"),g(\"level\",t),p(t)},options:i,labelKey:\"label\",label:\"level\",selectedOption:null!==(e=f.level.label)&&void 0!==e?e:\"\",value:null!==(t=f.level.label)&&void 0!==t?t:\"\",defaultLabel:h(\"SELECT_LEVEL\"),isDisabled:a})}),l().createElement(S.A,{errName:\"level\"})),l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(_.A,{variant:\"subtitle2\"},h(\"SALES_HIERARCHY_CODE\"),\"*\"),l().createElement(C.D0,{name:\"salesHierarchyCode\",type:\"text\",className:\"inputField\",onChange:function(e){(\"\"===e.target.value||T.test(e.target.value))&&g(\"salesHierarchyCode\",e.target.value)},placeholder:h(\"ENTER_CODE\"),defaultValue:null!==(t=null==f?void 0:f.salesHierarchyCode)&&void 0!==t?t:\"\"}),l().createElement(S.A,{errName:\"salesHierarchyCode\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(_.A,{variant:\"subtitle2\"},h(\"SALES_HIERARCHY_NAME\"),\"*\"),l().createElement(C.D0,{name:\"salesHierarchyName\",type:\"text\",className:\"inputField\",onChange:function(e){g(\"salesHierarchyName\",e.target.value)},placeholder:h(\"ENTER_NAME\"),defaultValue:null==f?void 0:f.salesHierarchyName}),l().createElement(S.A,{errName:\"salesHierarchyName\"})),l().createElement(r.A,{mb:2,width:\"100%\"},l().createElement(_.A,{variant:\"subtitle2\"},h(\"PARENT\"),\"*\"),l().createElement(C.D0,{name:\"parent\"},function(){return l().createElement(w.A,{name:\"parent\",onChange:function(e,t){d(t.id),g(\"parent\",t.label)},options:u,labelKey:\"label\",label:\"parent\",selectedOption:f.parent,value:f.parent,defaultLabel:h(\"SELECT_PARENT\"),isDisabled:c||a||0===(null==u?void 0:u.length),isSortReq:!0})}),l().createElement(S.A,{errName:\"parent\"}))))};n(3362);var D=n(95692),R=function(e){return new Promise(function(t,n){var r;null===(r=D.N.get(e))||void 0===r||r.then(function(e){return t(e.data)}).catch(function(e){return n(new Error(e))})})};function N(e){return N=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},N(e)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=N(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==N(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=n(13075);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const B=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,o=void 0===r?function(){}:r,a=e.isEditingMode,c=void 0!==a&&a,d=e.SelectedRowItem,p=void 0===d?{}:d,g=I((0,i.useState)(0),2),h=g[0],m=g[1],v=I((0,i.useState)([]),2),A=v[0],E=v[1],_=I((0,i.useState)([]),2),C=_[0],w=_[1],S=I((0,i.useState)(!1),2),T=S[0],R=S[1],N=I((0,i.useState)({level:{id:0,label:\"\",value:\"\",hasParent:!0},salesHierarchyCode:\"\",salesHierarchyName:\"\",parent:\"\"}),2),L=N[0],M=N[1],k=function(e){var t,n,r,o=e.setSalesHierarchyLevels,a=e.setParentDisable,l=e.setSalesHierarchyParent,s=e.SelectedRowItem,c=e.setInitialForm,d=e.selectedParentId,p=e.onRequestClose,g=(0,i.useContext)(f.v),h=g.BackOfficeProps,m=h.globalStore.User,v=h.baseurl,A=g.triggerShowLoader,y=g.triggerToastMsg,E=null===(t=m.selectedCountry)||void 0===t?void 0:t.countryCode,b=v,_=null==m||null===(n=m.UserDetails)||void 0===n?void 0:n.user_id,C=null!==(r=null==m?void 0:m.AccessToken)&&void 0!==r?r:\"\",w=null==m?void 0:m.selectedBusinessUnit;return{getSalesLevelDetails:function(){var e,t={};return t.domain=b,t.endPoint=u.p.GETLEVEL_DETAILS,t.customHeaders={\"country-code\":E,Authorization:\"Bearer \".concat(C)},t.triggerLoader=A,(e=t,new Promise(function(t,n){var r;null===(r=D.N.get(e))||void 0===r||r.then(function(e){return t(e)}).catch(function(e){return n(new Error(e.message))})})).then(function(e){if(201===e.status||200===e.status){var t,n=e.data.length>0&&(null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e,t){return{id:null==e?void 0:e.id,label:null==e?void 0:e.label_name,value:null==e?void 0:e.sequence,hasParent:t>0}}));o(n)}}).catch(function(e){console.log(\"LEVELERR\",e)})},updateSalesParent:function(e){var t,n=u.p.GETPARENTSALESHIERARCHY.replace(\"__LEVEL__\",\"\".concat(null==e?void 0:e.value)),r={};return r.domain=b,r.endPoint=n,r.customHeaders={\"country-code\":E,Authorization:\"Bearer \".concat(C),\"bu-id\":null==w?void 0:w.bu_id},r.triggerLoader=A,(t=r,new Promise(function(e,n){var r;null===(r=D.N.get(t))||void 0===r||r.then(function(t){return e(t)}).catch(function(e){return n(new Error(e.message))})})).then(function(e){if(200===e.status||201===e.status){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,value:null==e?void 0:e.code,label:null==e?void 0:e.name}});l(n),a(!1);var r=n.filter(function(e){return e.id===(null==s?void 0:s.parent_id)});null!=r&&r.length&&c(function(e){return P(P({},e),{},{parent:r[0].label})})}else a(!0)}).catch(function(e){console.log(\"LEVELERR\",e)})},onHandleSubmit:function(e){var t,n,r,o,a,i={};i.domain=b,i.endPoint=u.p.SAVESALEHIERARCHY,i.customHeaders={\"country-code\":E,\"user-id\":_,Authorization:\"Bearer \".concat(C)},i.payLoad={code:null==e?void 0:e.salesHierarchyCode.trim(),name:null==e?void 0:e.salesHierarchyName.trim(),bu_id:null==w?void 0:w.bu_id,parent_id:d||null,level_dto:{id:null==e||null===(t=e.level)||void 0===t?void 0:t.id,sequence:null==e||null===(n=e.level)||void 0===n?void 0:n.value,label_name:null==e||null===(r=e.level)||void 0===r?void 0:r.label}},i.triggerLoader=A,null===(a=i,o=new Promise(function(e,t){var n;null===(n=D.N.post(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===o||o.then(function(e){var t,n;if(201===e.status||200===e.status)return y({message:e.data,type:\"success\"}),void p(!0);throw y({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){console.log(\"OnSubmit\",e)})},onHandleUpdate:function(e){var t,n,r,o,a,i=u.p.GETSALESHIERARCHY_BYID.replace(\"__ID__\",\"\".concat(null==s?void 0:s.id)),l={};l.endPoint=i,l.domain=b,l.customHeaders={\"country-code\":E,\"user-id\":_,Authorization:\"Bearer \".concat(C)},l.payLoad={code:null==e?void 0:e.salesHierarchyCode.trim(),name:null==e?void 0:e.salesHierarchyName.trim(),bu_id:null==w?void 0:w.bu_id,parent_id:d||null,level_dto:{id:null==e||null===(t=e.level)||void 0===t?void 0:t.id,sequence:null==e||null===(n=e.level)||void 0===n?void 0:n.value,label_name:null==e||null===(r=e.level)||void 0===r?void 0:r.label}},l.triggerLoader=A,null===(a=l,o=new Promise(function(e,t){var n;null===(n=D.N.put(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})}))||void 0===o||o.then(function(e){var t;if(201===e.status||200===e.status)return y({message:e.data,type:\"success\"}),void p(!0);throw y({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(e.errorMessage)}).catch(function(e){console.log(\"UpdateSales\",e)})}}}({setSalesHierarchyLevels:E,setParentDisable:R,setSalesHierarchyParent:w,SelectedRowItem:p,setInitialForm:M,selectedParentId:h,onRequestClose:o}),B=k.getSalesLevelDetails,F=k.updateSalesParent,j=k.onHandleSubmit,H=k.onHandleUpdate,U=(0,s.Bd)().t;return(0,i.useEffect)(function(){var e,t;c&&(\"Level 1\"===(null==p||null===(e=p.level_dto)||void 0===e?void 0:e.label_name)&&R(!0),F({value:null==p||null===(t=p.level_dto)||void 0===t?void 0:t.id}),M(function(e){var t,n,r,o,a;return{level:{id:null==e||null===(t=e.level_dto)||void 0===t?void 0:t.id,label:null==e||null===(n=e.level_dto)||void 0===n?void 0:n.label_name,value:null==e||null===(r=e.level_dto)||void 0===r?void 0:r.sequence,hasParent:1!==(null==e||null===(o=e.level_dto)||void 0===o?void 0:o.id)},salesHierarchyCode:null==e?void 0:e.code,salesHierarchyName:null==e?void 0:e.name,parent:\"Level 1\"===(null==e||null===(a=e.level_dto)||void 0===a?void 0:a.label_name)?\"N/A\":\"\"}}(p)))},[p,c]),(0,i.useEffect)(function(){B()},[]),l().createElement(y.A,{isDrawerOpen:n,onRequestClose:o,id:\"add-sales-hierarchy-drawer\",title:U(c?\"EDIT_SALES_HIERARCHY\":\"ADD_SALES_HIERARCHY\"),initialValues:L,validationSchema:b,onSubmit:function(e){return(0,x.f5)(e,c,j,H)},fields:function(e){return l().createElement(O,{formikProps:e,isEditingMode:c,salesHierarchyLevels:A,salesHierarchyParent:C,parentDisable:T,setSelectedParentId:m,updateSalesParent:F})},submitLabel:U(c?\"UPDATE\":\"SAVE\"),cancelLabel:U(\"CANCEL\")})};var F=n(11848),j=n(43457),H=(0,F.Ay)(r.A)(function(e){return e.theme,{PageWrapper:j.ff}});function U(e){return U=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},U(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=U(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=U(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==U(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const W=function(e){var t,n,y=e.RBACControls,E=(0,p.w)(y),b=E.hasCreateAccess,_=E.hasUpdateAccess,C=(0,i.useContext)(f.v),w=C.BackOfficeProps,S=w.globalStore.User,T=w.baseurl,O=C.triggerShowLoader,D=null===(t=S.selectedCountry)||void 0===t?void 0:t.countryCode,N=T,L=null!==(n=null==S?void 0:S.AccessToken)&&void 0!==n?n:\"\",P=null==S?void 0:S.selectedBusinessUnit,M=V((0,i.useState)(!1),2),x=M[0],I=M[1],k=V((0,i.useState)(!1),2),F=k[0],j=k[1],U=V((0,i.useState)({}),2),Y=U[0],z=U[1],q=V((0,i.useState)(\"\"),2),W=q[0],Q=q[1],K=V((0,i.useState)([]),2),$=K[0],X=K[1],J=V((0,i.useState)(1),2),Z=J[0],ee=J[1],te=V((0,i.useState)(0),2),ne=te[0],re=te[1],oe=(0,s.Bd)().t,ae=V((0,i.useState)({searchValue:\"\",pageNo:0,pageSize:10}),2),ie=ae[0],le=ae[1],se=ie.searchValue,ue=ie.pageNo,ce=ie.pageSize;(0,i.useEffect)(function(){de()},[x,ie,W]);var de=function(){var e,t={};t.domain=N,t.endPoint=u.p.SAVESALEHIERARCHY,t.customHeaders={\"country-code\":D,Authorization:\"Bearer \".concat(L),\"bu-id\":null==P?void 0:P.bu_id},t.payLoad={search_key:se,page_no:ue,page_size:ce,sort:\"asc\"},W&&(t.payLoad.sort=\"1\"===W?\"asc\":\"desc\"),t.triggerLoader=O,null===(e=R(t))||void 0===e||e.then(function(e){var t=1;if((null==e?void 0:e.total_elements)>ce&&(t=Math.ceil((null==e?void 0:e.total_elements)/ce)),ee(t),re(null==e?void 0:e.total_elements),(null==e?void 0:e.sales_hierarchy_view_List.length)>0){var n=null==e?void 0:e.sales_hierarchy_view_List.map(function(e){var t;return{id:e.id,salesHierarchyCode:e.code,salesHierarchyName:e.name,parentCode:e.parent_code,parentName:null!==(t=e.parent_name)&&void 0!==t?t:\"N/A\",level:e.level_label_name}});X(n)}else X([])}).catch(function(e){console.log(\"FETCHSales\",e)})};return l().createElement(H,null,l().createElement(r.A,null,l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,{mb:2},l().createElement(m.A,{routePathName:[{name:d.F_.Masters,path:d.fp.Masters},{name:d.F_.SalesHierarchy,path:d.fp.SalesHierarchy}]})),l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",gap:2,mb:2},l().createElement(A.A,{onSort:function(e){return Q(null==e?void 0:e.toString())},sortBy:W,showLastUpdatedOn:!0}),l().createElement(v.A,{variant:\"contained\",buttonName:oe(\"ADD_NEW_BUTTON\"),onButtonClick:function(){I(!0)},fullwidth:!1,color:\"primary\",disabled:!b}))),l().createElement(a.A,{className:\"ag-theme-alpine custom-table\",elevation:0},l().createElement(h.A,{rows:$,columnDefs:c.w2,frameworkComponents:{EditActionComponent:function(e){var t=e.column,n=e.data,r={edit:{label:oe(\"EDIT\"),className:\"smart-agro-lite-green-label remove-button\"}};return l().createElement(\"button\",{type:\"button\",id:\"editItem\",className:\"smart-agro-lite-green-label remove-button \".concat(_?\"\":\"disabled-label\"),onClick:function(){return _?function(e){var t,n=u.p.GETSALESHIERARCHY_BYID.replace(\"__ID__\",\"\".concat(null==e?void 0:e.id)),r={};r.endPoint=n,r.domain=N,r.customHeaders={\"country-code\":D,Authorization:\"Bearer \".concat(L)},r.triggerLoader=O,null===(t=R(r))||void 0===t||t.then(function(e){e&&(I(!0),j(!0),z(e))}).catch(function(e){console.log(\"ERR on GetSalesHier \".concat(e))})}(n):function(){}}},r[t.colId].label)}}})),l().createElement(g.A,{totalPageCount:Z,totalElements:ne,onPageChange:function(e){le(function(t){return G(G({},t),{},{pageNo:Number(e)})})}}),x&&l().createElement(B,{isDrawerOpen:x,onRequestClose:function(e){I(!1),j(!1),z(null)},isEditingMode:F,SelectedRowItem:Y})))}},76167:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z\"}),\"PictureAsPdfOutlined\")},76314:e=>{\"use strict\";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=\"\",r=void 0!==t[5];return t[4]&&(n+=\"@supports (\".concat(t[4],\") {\")),t[2]&&(n+=\"@media \".concat(t[2],\" {\")),r&&(n+=\"@layer\".concat(t[5].length>0?\" \".concat(t[5]):\"\",\" {\")),n+=e(t),r&&(n+=\"}\"),t[2]&&(n+=\"}\"),t[4]&&(n+=\"}\"),n}).join(\"\")},t.i=function(e,n,r,o,a){\"string\"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]=\"@layer\".concat(c[5].length>0?\" \".concat(c[5]):\"\",\" {\").concat(c[1],\"}\")),c[5]=a),n&&(c[2]?(c[1]=\"@media \".concat(c[2],\" {\").concat(c[1],\"}\"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]=\"@supports (\".concat(c[4],\") {\").concat(c[1],\"}\"),c[4]=o):c[4]=\"\".concat(o)),t.push(c))}},t}},76358:(e,t,n)=>{var r=n(64796),o=n(14259),a=n(98936);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,l=n(e),s=a.f,u=0;l.length>u;)s.call(e,i=l[u++])&&t.push(i);return t}},76544:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>oe});var r=n(58168),o=n(98587),a=n(89453),i=n(11317),l=n(94188),s=n(33571),u=n(58749),c=n(771);const d={black:\"#000\",white:\"#fff\"},p={50:\"#fafafa\",100:\"#f5f5f5\",200:\"#eeeeee\",300:\"#e0e0e0\",400:\"#bdbdbd\",500:\"#9e9e9e\",600:\"#757575\",700:\"#616161\",800:\"#424242\",900:\"#212121\",A100:\"#f5f5f5\",A200:\"#eeeeee\",A400:\"#bdbdbd\",A700:\"#616161\"},f=\"#f3e5f5\",g=\"#ce93d8\",h=\"#ba68c8\",m=\"#ab47bc\",v=\"#9c27b0\",A=\"#7b1fa2\",y=\"#e57373\",E=\"#ef5350\",b=\"#f44336\",_=\"#d32f2f\",C=\"#c62828\",w=\"#ffb74d\",S=\"#ffa726\",T=\"#ff9800\",O=\"#f57c00\",D=\"#e65100\",R=\"#e3f2fd\",N=\"#90caf9\",L=\"#42a5f5\",P=\"#1976d2\",M=\"#1565c0\",x=\"#4fc3f7\",I=\"#29b6f6\",k=\"#03a9f4\",B=\"#0288d1\",F=\"#01579b\",j=\"#81c784\",H=\"#66bb6a\",U=\"#4caf50\",Y=\"#388e3c\",G=\"#2e7d32\",z=\"#1b5e20\",V=[\"mode\",\"contrastThreshold\",\"tonalOffset\"],q={text:{primary:\"rgba(0, 0, 0, 0.87)\",secondary:\"rgba(0, 0, 0, 0.6)\",disabled:\"rgba(0, 0, 0, 0.38)\"},divider:\"rgba(0, 0, 0, 0.12)\",background:{paper:d.white,default:d.white},action:{active:\"rgba(0, 0, 0, 0.54)\",hover:\"rgba(0, 0, 0, 0.04)\",hoverOpacity:.04,selected:\"rgba(0, 0, 0, 0.08)\",selectedOpacity:.08,disabled:\"rgba(0, 0, 0, 0.26)\",disabledBackground:\"rgba(0, 0, 0, 0.12)\",disabledOpacity:.38,focus:\"rgba(0, 0, 0, 0.12)\",focusOpacity:.12,activatedOpacity:.12}},W={text:{primary:d.white,secondary:\"rgba(255, 255, 255, 0.7)\",disabled:\"rgba(255, 255, 255, 0.5)\",icon:\"rgba(255, 255, 255, 0.5)\"},divider:\"rgba(255, 255, 255, 0.12)\",background:{paper:\"#121212\",default:\"#121212\"},action:{active:d.white,hover:\"rgba(255, 255, 255, 0.08)\",hoverOpacity:.08,selected:\"rgba(255, 255, 255, 0.16)\",selectedOpacity:.16,disabled:\"rgba(255, 255, 255, 0.3)\",disabledBackground:\"rgba(255, 255, 255, 0.12)\",disabledOpacity:.38,focus:\"rgba(255, 255, 255, 0.12)\",focusOpacity:.12,activatedOpacity:.24}};function Q(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:\"light\"===t?e.light=(0,c.a)(e.main,o):\"dark\"===t&&(e.dark=(0,c.e$)(e.main,a)))}const K=[\"fontFamily\",\"fontSize\",\"fontWeightLight\",\"fontWeightRegular\",\"fontWeightMedium\",\"fontWeightBold\",\"htmlFontSize\",\"allVariants\",\"pxToRem\"],$={textTransform:\"uppercase\"},X='\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';function J(e,t){const n=\"function\"==typeof t?t(e):t,{fontFamily:a=X,fontSize:l=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:g}=n,h=(0,o.A)(n,K),m=l/14,v=g||(e=>e/p*m+\"rem\"),A=(e,t,n,o,i)=>{return(0,r.A)({fontFamily:a,fontWeight:e,fontSize:v(t),lineHeight:n},a===X?{letterSpacing:(l=o/t,Math.round(1e5*l)/1e5+\"em\")}:{},i,f);var l},y={h1:A(s,96,1.167,-1.5),h2:A(s,60,1.2,-.5),h3:A(u,48,1.167,0),h4:A(u,34,1.235,.25),h5:A(u,24,1.334,0),h6:A(c,20,1.6,.15),subtitle1:A(u,16,1.75,.15),subtitle2:A(c,14,1.57,.1),body1:A(u,16,1.5,.15),body2:A(u,14,1.43,.15),button:A(c,14,1.75,.4,$),caption:A(u,12,1.66,.4),overline:A(u,12,2.66,1,$),inherit:{fontFamily:\"inherit\",fontWeight:\"inherit\",fontSize:\"inherit\",lineHeight:\"inherit\",letterSpacing:\"inherit\"}};return(0,i.A)((0,r.A)({htmlFontSize:p,pxToRem:v,fontFamily:a,fontSize:l,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},y),h,{clone:!1})}function Z(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(\",\")}const ee=[\"none\",Z(0,2,1,-1,0,1,1,0,0,1,3,0),Z(0,3,1,-2,0,2,2,0,0,1,5,0),Z(0,3,3,-2,0,3,4,0,0,1,8,0),Z(0,2,4,-1,0,4,5,0,0,1,10,0),Z(0,3,5,-1,0,5,8,0,0,1,14,0),Z(0,3,5,-1,0,6,10,0,0,1,18,0),Z(0,4,5,-2,0,7,10,1,0,2,16,1),Z(0,5,5,-3,0,8,10,1,0,3,14,2),Z(0,5,6,-3,0,9,12,1,0,3,16,2),Z(0,6,6,-3,0,10,14,1,0,4,18,3),Z(0,6,7,-4,0,11,15,1,0,4,20,3),Z(0,7,8,-4,0,12,17,2,0,5,22,4),Z(0,7,8,-4,0,13,19,2,0,5,24,4),Z(0,7,9,-4,0,14,21,2,0,5,26,4),Z(0,8,9,-5,0,15,22,2,0,6,28,5),Z(0,8,10,-5,0,16,24,2,0,6,30,5),Z(0,8,11,-5,0,17,26,2,0,6,32,5),Z(0,9,11,-5,0,18,28,2,0,7,34,6),Z(0,9,12,-6,0,19,29,2,0,7,36,6),Z(0,10,13,-6,0,20,31,3,0,8,38,7),Z(0,10,13,-6,0,21,33,3,0,8,40,7),Z(0,10,14,-6,0,22,35,3,0,8,42,7),Z(0,11,14,-7,0,23,36,3,0,9,44,8),Z(0,11,15,-7,0,24,38,3,0,9,46,8)];var te=n(17091);const ne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},re=[\"breakpoints\",\"mixins\",\"spacing\",\"palette\",\"transitions\",\"typography\",\"shape\"];const oe=function(e={},...t){const{mixins:n={},palette:K={},transitions:$={},typography:X={}}=e,Z=(0,o.A)(e,re);if(e.vars&&void 0===e.generateCssVars)throw new Error((0,a.A)(18));const oe=function(e){const{mode:t=\"light\",contrastThreshold:n=3,tonalOffset:l=.2}=e,s=(0,o.A)(e,V),u=e.primary||function(e=\"light\"){return\"dark\"===e?{main:N,light:R,dark:L}:{main:P,light:L,dark:M}}(t),K=e.secondary||function(e=\"light\"){return\"dark\"===e?{main:g,light:f,dark:m}:{main:v,light:h,dark:A}}(t),$=e.error||function(e=\"light\"){return\"dark\"===e?{main:b,light:y,dark:_}:{main:_,light:E,dark:C}}(t),X=e.info||function(e=\"light\"){return\"dark\"===e?{main:I,light:x,dark:B}:{main:B,light:k,dark:F}}(t),J=e.success||function(e=\"light\"){return\"dark\"===e?{main:H,light:j,dark:Y}:{main:G,light:U,dark:z}}(t),Z=e.warning||function(e=\"light\"){return\"dark\"===e?{main:S,light:w,dark:O}:{main:\"#ed6c02\",light:T,dark:D}}(t);function ee(e){return(0,c.eM)(e,W.text.primary)>=n?W.text.primary:q.text.primary}const te=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(\"main\"))throw new Error((0,a.A)(11,t?` (${t})`:\"\",n));if(\"string\"!=typeof e.main)throw new Error((0,a.A)(12,t?` (${t})`:\"\",JSON.stringify(e.main)));return Q(e,\"light\",o,l),Q(e,\"dark\",i,l),e.contrastText||(e.contrastText=ee(e.main)),e},ne={dark:W,light:q};return(0,i.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:te({color:u,name:\"primary\"}),secondary:te({color:K,name:\"secondary\",mainShade:\"A400\",lightShade:\"A200\",darkShade:\"A700\"}),error:te({color:$,name:\"error\"}),warning:te({color:Z,name:\"warning\"}),info:te({color:X,name:\"info\"}),success:te({color:J,name:\"success\"}),grey:p,contrastThreshold:n,getContrastText:ee,augmentColor:te,tonalOffset:l},ne[t]),s)}(K),ae=(0,u.A)(e);let ie=(0,i.A)(ae,{mixins:(le=ae.breakpoints,se=n,(0,r.A)({toolbar:{minHeight:56,[le.up(\"xs\")]:{\"@media (orientation: landscape)\":{minHeight:48}},[le.up(\"sm\")]:{minHeight:64}}},se)),palette:oe,shadows:ee.slice(),typography:J(oe,X),transitions:(0,te.Ay)($),zIndex:(0,r.A)({},ne)});var le,se;return ie=(0,i.A)(ie,Z),ie=t.reduce((e,t)=>(0,i.A)(e,t),ie),ie.unstable_sxConfig=(0,r.A)({},l.A,null==Z?void 0:Z.unstable_sxConfig),ie.unstable_sx=function(e){return(0,s.A)({sx:e,theme:this})},ie}},76545:(e,t,n)=>{var r=n(56110)(n(9325),\"Set\");e.exports=r},76562:(e,t,n)=>{\"use strict\";function r(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}n.d(t,{A:()=>r})},76613:(e,t,n)=>{\"use strict\";var r=n(4704);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t,n=e.children,r=e.startIndex,i=e.startX,l=e.pageX,s=e.viewLength,u=e.resistance,c=o.default.Children.count(n)-1,d=r+(i-l)/s;return u?d<0?d=Math.exp(d*a.default.RESISTANCE_COEF)-1:d>c&&(d=c+1-Math.exp((c-d)*a.default.RESISTANCE_COEF)):d<0?t=((d=0)-r)*s+l:d>c&&(t=((d=c)-r)*s+l),{index:d,startX:t}};var o=r(n(81970)),a=r(n(94866))},76671:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ee}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(28161),o=n(90815),a=n(81970),i=n.n(a),l=n(47767),s=n(96348),u=n(27305),c=n(47225),d=n(13075),p=n(92416),f=n(46374),g=n(77217),h=n(92782),m=(n(48980),n(25276),n(36033),n(3362),n(25440),n(60538)),v=n(34195),A=n(37998),y=n(23835),E=n(70380),b=n(56254),_=n(43605),C=n(15664),w=n(21239),S=n(64499),T=n(18978),O=n(35546),D=(n(9391),n(96790)),R=n(8085),N=n(34358),L=n(99478),P=n(98752),M=n(36874),x=n(47953),I=n(80875),k=n(32027),B=n(14073),F=n(88084),j=n(56203),H=n(64121),U=n(27386),Y=n(28152),G=n(33417),z=(n(42762),n(15941)),V=function(){return z.Ik().shape({year:z.Ik().nullable().test(\"is-empty\",\"Please select an Year\",function(e){return null==e?void 0:e.label}),TMHQ:z.Ik().nullable().test(\"is-empty\",\"Please select TM HQ\",function(e){return null==e?void 0:e.label}),nnrHQ:z.Ik().nullable().test(\"is-empty\",\"Please select an NNR HQ\",function(e){return null==e?void 0:e.label}),portfolio:z.Ik().nullable().test(\"portfolio-required\",\"Please select Portfolio\",function(e){return!0!==this.parent.showPortfolio||\"string\"==typeof(null==e?void 0:e.label)&&\"\"!==e.label.trim()})})};const q=function(e){var t=e.uploadButtonName,n=e.onRequestClose,a=e.initialForm,l=e.downloadSampleTemplate,s=e.getNnrHqData,u=e.yearData,c=e.hasShowPortfolio,d=e.getUploadLiquidationHQData,p=e.hasPortfolioEnable,f=e.User,g=e.nnrHqData,h=e.portfolioData,m=e.tmHQData,v=e.onUploadSuccess,A=e.selectedFile,y=e.setSelectedFile,E=e.fileError,b=e.onHandleCancel,_=e.submitLiquidationTemplate;return i().createElement(r.A,{className:\"popupMain\"},i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},i().createElement(B.A,{variant:\"h5\",fontSize:24,fontWeight:500},t===x.Q.TARGETS?(0,j.t)(\"UPLOAD_LIQUIDATION_TARGET\"):(0,j.t)(\"UPLOAD_LIQUIDATION_ACTUALS\")),i().createElement(r.A,{onClick:function(){return n(!1)},\"data-testid\":\"closeIcon\"},i().createElement(B.A,{className:\"icon-close closeIcon\"}))),i().createElement(F.l1,{initialValues:a,validationSchema:V,enableReinitialize:!0,onSubmit:function(e,t){l(e)}},function(e){var n,a,l,w,S,T,O=e.values,D=e.setFieldValue;return i().createElement(F.lV,{className:\"popupContent\"},i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\"},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(B.A,{component:\"span\",className:\"round-badge\"},\"1\"),i().createElement(B.A,{variant:\"h6\",fontSize:14,fontWeight:500},(0,j.t)(\"FILL_DETAILS\"))),i().createElement(o.A,{direction:\"row\",gap:2,mb:1},i().createElement(r.A,{mb:2,width:\"100%\"},i().createElement(B.A,{variant:\"body1\",fontWeight:700},(0,j.t)(\"YEAR_LABEL\")),i().createElement(H.A,{name:\"year\",onChange:function(e,t){D(\"year\",t),s(t.id),D(\"nnrHQ\",\"\")},options:u,labelKey:\"label\",label:\"\",selectedOption:null!==(n=O.year.label)&&void 0!==n?n:\"\",value:null!==(a=O.year.label)&&void 0!==a?a:\"\",defaultLabel:(0,j.t)(\"SELECT_YEAR\")}),i().createElement(Y.A,{errName:\"year\"})),i().createElement(r.A,{mb:2,width:\"100%\"},i().createElement(B.A,{variant:\"body1\",fontWeight:700},(0,j.t)(\"NNRHQS\")),i().createElement(H.A,{name:\"nnrHQ\",onChange:function(e,t){var n,r;if(D(\"nnrHQ\",t),c&&null!=O&&null!==(n=O.portfolio)&&void 0!==n&&n.value)d(t.value,null==O||null===(r=O.portfolio)||void 0===r?void 0:r.value);else if(p){var o;d(t.value,null==f||null===(o=f.selectedBusinessUnit)||void 0===o?void 0:o.portfolio_code)}else d(t.value);D(\"TMHQ\",\"\")},options:g,labelKey:\"label\",label:\"\",selectedOption:null!==(l=O.nnrHQ.label)&&void 0!==l?l:\"\",value:null!==(w=O.nnrHQ.label)&&void 0!==w?w:\"\",defaultLabel:(0,j.t)(\"SELECT_DMHQ\")}),i().createElement(Y.A,{errName:\"nnrHQ\"}))),i().createElement(o.A,{direction:\"row\",gap:2,mb:1},c&&i().createElement(r.A,{mb:2,width:\"100%\"},i().createElement(B.A,{variant:\"body1\",fontWeight:700},(0,j.t)(\"PORTFOLIO_FIELD\")),i().createElement(H.A,{name:\"portfolio\",onChange:function(e,t){var n;D(\"portfolio\",t),d(null==O||null===(n=O.nnrHQ)||void 0===n?void 0:n.id,t.value),D(\"TMHQ\",\"\")},options:h,labelKey:\"label\",label:\"\",selectedOption:null!==(S=O.portfolio.label)&&void 0!==S?S:\"\",value:null!==(T=O.portfolio.label)&&void 0!==T?T:\"\",defaultLabel:(0,j.t)(\"SELECT_PORTFOLIO\")}),i().createElement(Y.A,{errName:\"portfolio\"})),i().createElement(r.A,{mb:2,width:\"100%\"},i().createElement(B.A,{variant:\"body1\",fontWeight:700},(0,j.t)(\"TMHQS\")),i().createElement(G.A,{onHandleChange:function(e){D(\"TMHQ\",e)},options:m,label:(0,j.t)(\"SELECT_TMHQ\"),value:O.TMHQ}),i().createElement(Y.A,{errName:\"TMHQ\"}))),i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(B.A,{component:\"span\",className:\"round-badge\"},\"2\"),i().createElement(B.A,{variant:\"h6\",fontSize:14,fontWeight:500},t===x.Q.TARGETS?(0,j.t)(\"DOWNLOAD_TEMPLATE_TARGETS\"):(0,j.t)(\"DOWNLOAD_TEMPLATE_ACTUALS\"))),i().createElement(C.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:(0,j.t)(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",type:\"submit\"}))),i().createElement(r.A,{className:\"inputs-cards\"},i().createElement(r.A,{className:\"cards-header-wrapper\"},i().createElement(o.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},i().createElement(B.A,{component:\"span\",className:\"round-badge\"},\"3\"),i().createElement(B.A,{fontSize:14,variant:\"h6\",fontWeight:500},(0,j.t)(\"UPLOAD_FILE\")))),i().createElement(r.A,{className:\"input-card-body\"},i().createElement(U.A,{onUploadSuccess:function(e){return v(e)},selectedFile:A,onRemoveHandler:function(){return y(null)}}),E?i().createElement(B.A,{fontSize:12,p:.5,color:\"#ff0000\",fontWeight:700},E):i().createElement(i().Fragment,null))))),i().createElement(o.A,{className:\"btnsBlock\",direction:\"row\",gap:2},i().createElement(C.A,{variant:\"outlined\",buttonName:\"\".concat((0,j.t)(\"CANCEL\")),color:\"secondary\",fullwidth:!1,onButtonClick:b}),i().createElement(C.A,{variant:\"contained\",buttonName:(0,j.t)(\"UPLOAD\"),fullwidth:!1,color:\"primary\",onButtonClick:_})))}))};function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const K=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,o=void 0===r?function(){}:r,l=e.uploadButtonName,s=(0,v.Bd)().t,u=(0,a.useContext)(c.v),p=u.BackOfficeProps,f=p.globalStore.User,g=p.baseurl,h=u.triggerShowLoader,m=u.triggerToastMsg,A=(0,k.i)(f),y=A.hasPortfolioEnable,E=A.hasShowPortfolio,b=A.hasPortfolioCode,_={year:{id:0,value:\"\",label:\"\"},TMHQ:{id:0,value:\"\",label:\"\"},nnrHQ:{id:0,value:\"\",label:\"\"},portfolio:{id:0,value:\"\",label:\"\"},showPortfolio:E},C=W((0,a.useState)(null),2),w=C[0],S=C[1],T=W((0,a.useState)(\"\"),2),O=T[0],B=T[1],F=W((0,a.useState)([]),2),j=F[0],H=F[1],U=W((0,a.useState)([]),2),Y=U[0],G=U[1],z=W((0,a.useState)([]),2),V=z[0],Q=z[1],K=W((0,a.useState)([]),2),$=K[0],X=K[1];return(0,a.useEffect)(function(){var e,t;t={apiName:x.Q.FETCH_YEAR_DATA,User:f,baseUrl:g,triggerShowLoader:h,liquidationType:l===x.Q.TARGETS?\"TARGET\":\"ACTUAL\"},null===(e=(0,I.xx)(t))||void 0===e||e.then(function(e){var t;if(!(e.data.length>0))throw new Error(s(\"UPLOAD_LIQUIDATION_ERROR\"));var n=null==(t=e.data)?void 0:t.map(function(e){var t;return{value:null==e||null===(t=e.id)||void 0===t?void 0:t.toString(),label:e.name,id:e.id}});G(n)}).catch(function(e){m({message:e,type:\"error\"})}),E&&function(){var e,t={apiName:x.Q.FETCH_PORTFOLIO_DATA,User:f,baseUrl:g,triggerShowLoader:h,liquidationType:\"\"};null===(e=(0,I.xx)(t))||void 0===e||e.then(function(e){var t,n;if(!((null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.length)>0))throw X([]),new Error(s(\"UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED\"));var r,o=null==(n=null==e||null===(r=e.data)||void 0===r?void 0:r.data)?void 0:n.map(function(e){return{value:null==e?void 0:e.code,label:e.name,id:e.id}});X(o)}).catch(function(e){m({message:e,type:\"error\"})})}()},[]),i().createElement(M.A,{isDrawerOpen:n,anchor:\"right\"},i().createElement(q,{uploadButtonName:l,onRequestClose:o,initialForm:_,downloadSampleTemplate:function(e){h(!0),(0,N.Ti)(function(e){var t,n,r,o,a;return{baseUrl:\"\".concat(g).concat(R.p.GET_LIQUIDATION_TEMPLATE),options:{headers:{\"country-code\":null==f||null===(a=f.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==f?void 0:f.selectedBusinessUnit.bu_id,\"Content-Type\":D.LG.octet_stream,Authorization:\"Bearer \".concat(null==f?void 0:f.AccessToken)},params:{nnr_hq_id:null==e||null===(t=e.nnrHQ)||void 0===t?void 0:t.id,parent_hq_id:null==e||null===(n=e.TMHQ)||void 0===n?void 0:n.id,portfolio_code:E?(0,d.YQ)(null==e||null===(r=e.portfolio)||void 0===r?void 0:r.value,\"DEFAULT\"):(0,d.YQ)(b,\"DEFAULT\"),duration_details_id:null==e||null===(o=e.year)||void 0===o?void 0:o.id,liquidation_type:l===x.Q.TARGETS?\"TARGET\":\"ACTUAL\"},responseType:\"arraybuffer\"}}}(e)).then(function(e){throw(0,d.mN)(e)||m({message:s(\"DOWNLOAD_FAILED\"),type:\"error\"}),new Error(s(\"DOWNLOAD_FAILED\"))}).catch(function(e){m({message:e,type:\"error\"})}).finally(function(){h(!1)})},getNnrHqData:function(e){var t,n={apiName:x.Q.FETCH_NNRHQ_DATA,User:f,baseUrl:g,triggerShowLoader:h,liquidationType:\"\",selectedYearId:e};null===(t=(0,I.xx)(n))||void 0===t||t.then(function(e){var t;if(!(e.data.length>0))throw Q([]),new Error(s(\"UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED\"));var n=null==(t=e.data)?void 0:t.map(function(e){var t;return{value:null==e||null===(t=e.id)||void 0===t?void 0:t.toString(),label:e.name,id:e.id}});Q(n)}).catch(function(e){m({message:e,type:\"error\"})})},yearData:Y,hasShowPortfolio:E,getUploadLiquidationHQData:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",r={apiName:x.Q.FETCH_LIQUIDATION_HQ,User:f,baseUrl:g,triggerShowLoader:h,liquidationType:\"\",selectedYearId:0,nnrId:e,portfolioCode:n};null===(t=(0,I.xx)(r))||void 0===t||t.then(function(e){var t;if(!(e.data.length>0))throw H([]),new Error(s(\"UPLOAD_LIQUIDATION_HQ_DATA_FAILED\"));var n=null==(t=e.data)?void 0:t.map(function(e){var t;return{value:null==e||null===(t=e.hq_data_id)||void 0===t?void 0:t.toString(),label:e.hq_data_name,id:e.hq_data_id}});H(n)}).catch(function(e){m({message:e,type:\"error\"})})},hasPortfolioEnable:y,User:f,nnrHqData:V,portfolioData:$,tmHQData:j,onUploadSuccess:function(e){B(!1);var t=e[0];S(t)},selectedFile:w,setSelectedFile:S,fileError:O,onHandleCancel:function(){o(!1)},submitLiquidationTemplate:function(){if(w){if((0,P.TC)(w.name))return(0,I.Qy)(f,g,h,w,l===x.Q.TARGETS?x.Q.TARGET:x.Q.ACTUAL).then(function(e){h(!0);var t=(0,P.S2)(w);return(0,N.i3)(null==e?void 0:e.data,t).then(function(e){h(!1),200===e.status&&\"OK\"===e.statusText?(S(null),o(!0),m({message:L.PB,type:\"success\"})):m({message:L.or,type:\"error\"})}).catch(function(e){h(!1),m({message:L.or,type:\"error\"})})}).catch(function(e){h(!1),m({message:L.or,type:\"error\"})});B(s(\"VALID_FILE_ERROR\"))}else B(s(\"UPLOAD_CONDITION_TEXT\"))}}))};n(50113),n(15086);var $=n(8239),X=n(51545),J=n(80663),Z=n(62809);const ee=function(e){var t,n,r=e.isFilterOpen,o=e.onRequestClose,a=e.setLabelOptions,l=e.onFilterSubmit,s=e.labelNames,u=e.labelOptions,c=e.onFilterChange,d=e.selectedFilters,p=e.onClearFilters,f=e.setIsSelectedLastHierarchy,g=e.isSelectedLastHierarchy,h=(0,v.Bd)().t,m=u,A=function(e){var t,n=null==u||null===(t=u.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===t?void 0:t.options;return null!=n?n:[]},y=s[1],E=s[s.length-3],b=(t=y,(null==u||null===(n=u.find(function(e){return(null==e?void 0:e.labelName)===t}))||void 0===n||null===(n=n.options)||void 0===n?void 0:n.some(function(e){return e.checked}))&&!g);return i().createElement(X.A,null,i().createElement(M.A,{isDrawerOpen:r,anchor:\"top\",upper:!0},i().createElement(X.A,{p:3},i().createElement(F.l1,{initialValues:d,enableReinitialize:!0,onSubmit:function(e,t){l(e)}},function(e){var t=e.values,n=e.setFieldValue;return i().createElement(F.lV,{className:\"popupContent\"},i().createElement($.Ay,{container:!0,columns:12,spacing:1,mb:2},null==s?void 0:s.map(function(e,r){return i().createElement($.Ay,{item:!0,xs:3,key:e},i().createElement(X.A,null,i().createElement(B.A,{variant:\"subtitle2\"},e),i().createElement(F.D0,{name:e},function(){return function(e,t,n,r){var o,a,l;return i().createElement(Z.A,{key:e,name:e,showClearAll:!0,labelKey:\"label\",options:A(e),onCheckboxChange:function(t){return function(e,t,n,r){var o=e.filter(function(e){return e.checked}).map(function(e){return e.value});n!==O.t4.YEAR&&n!==O.t4.BRAND&&c(o,t,r),n===E&&f(o.length),r(n,e)}(t,r,e,n)},isDisabled:!(null!==(o=A(e))&&void 0!==o&&o.length),selectedOptions:(null==t||null===(a=t[e])||void 0===a?void 0:a.length)>0&&(null==t||null===(l=t[e])||void 0===l||null===(l=l.filter(function(e){return e.checked}))||void 0===l?void 0:l.map(function(e){return e.label}))||[],defaultLabel:\"Select\",isSortReq:!0})}(e,t,n,r)}),i().createElement(Y.A,{errName:\"tmHQ\"})))})),i().createElement(J.A,{direction:\"row\",justifyContent:\"right\"},i().createElement(X.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},i().createElement(C.A,{variant:\"outlined\",buttonName:h(\"CLEAR_FILTERS\"),onButtonClick:function(){return p()},fullwidth:!1,color:\"primary\"}),i().createElement(C.A,{variant:\"contained\",buttonName:h(\"APPLY_FILTERS\"),onButtonClick:function(){},disabled:b,fullwidth:!1,color:\"primary\",type:\"submit\"}))),i().createElement(X.A,{onClick:function(){a(m),o()},\"data-testid\":\"closeIcon\",className:\"smart-agro-lite-filter-cross\"},i().createElement(B.A,{className:\"icon-close closeIcon\"})))}))))};function te(e){return te=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},te(e)}function ne(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=te(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==te(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||le(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function le(e,t){if(e){if(\"string\"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ue=function(e){var t=e.hqName,n=e.selectedTabId,s=e.hasUpdateAccess,u=e.selectedTabName,p=(0,a.useContext)(c.v),f=p.BackOfficeProps,h=f.globalStore.User,D=f.baseurl,R=p.triggerShowLoader,N=p.triggerToastMsg,L=(0,E.AV)(\"DD-MMM\"),P=(0,l.g)(),M=null==P?void 0:P.id,I=(0,v.Bd)().t,k=ie((0,a.useState)(!1),2),B=k[0],F=k[1],j=ie((0,a.useState)(!1),2),H=j[0],U=j[1],Y=ie((0,a.useState)(\"\"),2),G=Y[0],z=Y[1],V=ie((0,a.useState)([]),2),q=V[0],W=V[1],Q=ie((0,a.useState)([]),2),$=Q[0],X=Q[1],J=ie((0,a.useState)({pageNo:0,pageSize:10}),2),Z=J[0],te=J[1],re=ie((0,a.useState)(O.w4),2),ae=re[0],le=re[1],se=ie((0,a.useState)([]),2),ue=se[0],ce=se[1],de=ie((0,a.useState)({}),2),pe=de[0],fe=de[1],ge=ie((0,a.useState)([]),2),he=ge[0],me=ge[1],ve=ie((0,a.useState)(0),2),Ae=ve[0],ye=ve[1],Ee=ie((0,a.useState)(0),2),be=Ee[0],_e=Ee[1],Ce=ie((0,a.useState)(!1),2),we=Ce[0],Se=Ce[1],Te=ie((0,a.useState)(!1),2),Oe=Te[0],De=Te[1],Re=ie((0,a.useState)(I(\"TARGETS_ARE_NOT_UPLOADED\")),2),Ne=Re[0],Le=Re[1],Pe=ie((0,a.useState)(0),2),Me=Pe[0],xe=Pe[1],Ie=(0,y.A)().downloadTemplate,ke=function(e){z(e),F(!0)},Be=function(e){return e.map(function(e){return\"hqName\"===e.field?oe(oe({},e),{},{headerName:t}):e})},Fe=function(e,t,n){var r=null==e?void 0:e.map(function(e){return{name:null==e?void 0:e.hq_data_name,id:null==e?void 0:e.hq_data_id}});!function(e,t){var n,r,o=ne(ae),a=ae.findIndex(function(t){return(null==t?void 0:t.labelName)===(null==e?void 0:e.name)});r=null==e||null===(n=e.hq_data_list)||void 0===n?void 0:n.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});var i={labelName:null==e?void 0:e.name,options:r};-1!==a?o[a]=i:o=[].concat(ne(ae),[i]),function(e,t,n){var r=ne($),o=ne(n);r.slice(null==r?void 0:r.indexOf(t),null==r?void 0:r.indexOf(O.t4.BRAND)).forEach(function(t,n){e(t,\"\"),n>0?(o=o.map(function(e){return e.labelName===t?oe(oe({},e),{},{options:[]}):e}),le(ne(o))):le(ne(o))})}(t,null==e?void 0:e.name,o)}({name:null==t?void 0:t.name,hq_data_list:r},n)},je=function(e,t){var r,o=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),a=null==t?void 0:t.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});le([].concat(ne(ae),[{labelName:O.t4.YEAR,options:o},{labelName:O.t4.BRAND,options:a}])),null===(r=(0,T.FU)(h,D,R,n))||void 0===r||r.then(function(e){if(e){var t,n,r=null==e?void 0:e.map(function(e){return null==e?void 0:e.name});X([O.t4.YEAR].concat(ne(r),[O.t4.BRAND,O.t4.STATUS])),ce(e),o=null===(t=e[0])||void 0===t?void 0:t.sales_hierarchy_id,a=null===(n=e[0])||void 0===n?void 0:n.name,null===(i=(0,T.Bs)(o,h,D,R))||void 0===i||i.then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});le(function(e){return[].concat(ne(e),[{labelName:a,options:t}])})}}).catch(function(e){N({message:e.message,type:\"error\"})})}var o,a,i}).catch(function(e){N({message:e.message,type:\"error\"})})},He=function(e){var t,r,o,a,i,l,s,u=null==ue||null===(t=ue[(null==ue?void 0:ue.length)-1])||void 0===t?void 0:t.name,c=oe({},e),d=[{field:\"salesHierarchyId\",operator:\"EQUALS\",value:n}];null!=c&&null!==(r=c.Year)&&void 0!==r&&r.length&&d.push(Ye(\"durationDetailName\",c.Year)),null!==(o=c[u])&&void 0!==o&&o.length&&d.push(Ye(\"hqDataId\",c[u])),null!=c&&null!==(a=c.Brand)&&void 0!==a&&a.length&&d.push(Ye(\"liquidationBrandId\",c.Brand)),null!=c&&null!==(i=c.Status)&&void 0!==i&&i.length&&d.push(Ye(\"status\",c.Status)),null!=c&&null!==(l=c.liquidationBrandName)&&void 0!==l&&l.length&&d.push(Ye(\"liquidationBrandName\",c.liquidationBrandName)),null!=c&&null!==(s=c.hqDataName)&&void 0!==s&&s.length&&d.push(Ye(\"hqDataName\",c.hqDataName)),me(d),te(function(e){return oe(oe({},e),{},{pageNo:0,pageSize:10})}),fe(e)},Ue=function(e){return\"liquidationBrandName\"===e||\"hqDataName\"===e?\"LIKE\":\"IN\"},Ye=function(e,t){var n={field:e,operator:Ue(e)};return\"liquidationBrandName\"===e||\"hqDataName\"===e?n.value=t[0].value:n.values=\"durationDetailName\"===e?t.map(function(e){return e.label}):t.map(function(e){return e.value}),n},Ge=(0,a.useCallback)(function(e){(0,T.UX)(h,D,R,(0,O.X6)(e,n,Z)).then(function(e){e&&(0===e.data.length&&Le(I(\"NO_MATCHING_RECORDS\")),W(function(e){return e.forEach(function(e){0===e.actualValue&&(e.actualValue=\"NA\"),0===e.actualVolume&&(e.actualVolume=\"NA\")}),e}(e.data)),ye(null==e?void 0:e.totalPageCount),_e(null==e?void 0:e.totalElements))}).catch(function(e){})},[Z]);return(0,a.useEffect)(function(){var e;null===(e=(0,g.ou)(x.Q.LIQUIDATION_DATA,h,D,R))||void 0===e||e.then(function(e){var t,n;throw null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(t=t.configurationDetailsDtos)&&void 0!==t&&t.length&&function(e){var t={};e.forEach(function(e){t[e.key]=e.value}),De((0,E._M)(L,t.liquidation_actual_start_date,t.liquidation_actual_end_date)||(0,E.ny)(L,t.liquidation_actual_start_date)||(0,E.ny)(L,t.liquidation_actual_end_date)),Se((0,E._M)(L,t.liquidation_target_start_date,t.liquidation_target_end_date)||(0,E.ny)(L,t.liquidation_target_start_date)||(0,E.ny)(L,t.liquidation_target_end_date))}(null==e||null===(n=e.data)||void 0===n?void 0:n.configurationDetailsDtos),new Error(I(\"LIQUIDATION_GET_FAILED\"))}).catch(function(e){N({message:e,type:\"error\"})})},[]),(0,a.useEffect)(function(){Ge(he)},[Z,he]),(0,a.useEffect)(function(){He(pe)},[$]),(0,a.useEffect)(function(){Promise.all([(0,T.i)(h,D,R),(0,T.k6)(h,D,R)]).then(function(e){var t=ie(e,2),n=t[0],r=t[1],o=r&&r.length>0?Array.from(new Map(r.map(function(e){return[e.id,e]})).values()):[];je(n,o)}).catch(function(e){N({message:e.message,type:\"error\"})})},[n]),(0,a.useEffect)(function(){te({pageNo:0,pageSize:10})},[n]),i().createElement(i().Fragment,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,{mt:2},i().createElement(w.A,{onSearchValueChange:function(e){!function(e){if(e){var t={liquidationBrandName:[{label:\"liquidationBrandName\",value:e}],hqDataName:[{label:\"hqDataName\",value:e}]};He(oe(oe({},pe),t))}else{var n=oe({},pe);delete n.liquidationBrandName,delete n.hqDataName,He(n)}}(e.replace(/^\\s+/,\"\")),te(function(e){return oe(oe({},e),{},{pageNo:0})})},placeholderText:I(\"SEARCH\"),searchValue:\"\",searchBasedOn:I(\"SEARCH_BY_BRANDNAME\")})),i().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},i().createElement(C.A,{className:(0,d.F7)(pe),buttonName:I(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:i().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){U(!0)}}),\"MDO\"===u?i().createElement(C.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:I(\"DOWNLOAD_LIQUIDATION_TARGET\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){return(0,S.hh)(h,D,(0,O.X6)(he,n,Z),{triggerToastMsg:N,downloadTemplate:Ie},\"liquidationTargets\")}}):i().createElement(i().Fragment,null),M===O.py.TAB_TW0?i().createElement(i().Fragment,null):i().createElement(i().Fragment,null,s&&we&&\"MDO\"===u&&i().createElement(C.A,{variant:\"contained\",buttonName:I(\"UPLOAD_TARGETS\"),onButtonClick:function(){return ke(\"Targets\")},fullwidth:!1,color:\"primary\"}),s&&Oe&&\"MDO\"===u&&i().createElement(C.A,{variant:\"contained\",buttonName:I(\"UPLOAD_ACTUALS\"),onButtonClick:function(){return ke(\"Actuals\")},fullwidth:!1,color:\"primary\"})))),i().createElement(m.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},i().createElement(_.A,{rows:q,columnDefs:M===O.py.TAB_TW0?Be(A.UH):Be(A.Xh),noDataTemplate:Ne})),i().createElement(b.A,{totalPageCount:Math.ceil(Ae),pageNo:Z.pageNo,onPageChange:function(e){te(function(t){return oe(oe({},t),{},{pageNo:Number(e)})})},totalElements:be}),B&&i().createElement(K,{isDrawerOpen:B,onRequestClose:function(){F(!1)},uploadButtonName:G}),H&&i().createElement(ee,{onFilterChange:function(e,t,n){var r=null==ue?void 0:ue[t],o=null==r?void 0:r.sales_hierarchy_id,a={targetForId:o,parentHqIds:e};o&&(0,T._n)(h,D,R,a).then(function(e){Fe(e,r,n)}).catch(function(e){N({message:e.message,type:\"error\"})})},labelNames:$,labelOptions:ae,onRequestClose:function(){U(!1)},isFilterOpen:H,onFilterSubmit:function(e){fe(e),He(e),U(!1)},onClearFilters:function(){var e=null==ae?void 0:ae.filter(function(e){return(null==e?void 0:e.labelName)===O.t4.YEAR||(null==e?void 0:e.labelName)===$[1]||(null==e?void 0:e.labelName)===O.t4.BRAND||(null==e?void 0:e.labelName)===O.t4.STATUS}).map(function(e){return e.labelName===$[0]||e.labelName===$[1]||(null==e?void 0:e.labelName)===O.t4.BRAND||(null==e?void 0:e.labelName)===O.t4.STATUS?oe(oe({},e),{},{options:e.options.map(function(e){return oe(oe({},e),{},{checked:!1})})}):e});le(e),fe({}),me([]),U(!1)},selectedFilters:pe,setLabelOptions:le,setIsSelectedLastHierarchy:xe,isSelectedLastHierarchy:Me}))};var ce=n(21770),de=n(52695);const pe=function(){return i().createElement(ce.A,{bulkUploadModuleTypes:[de.H.LIQUIDATION],tableHeaders:A.xd})};var fe=n(58125);function ge(e){return ge=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ge(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ge(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ge(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ee=function(e){var t=e.RBACControls,n=(0,u.w)(t).hasUpdateAccess,m=(0,a.useContext)(c.v),v=m.BackOfficeProps,A=v.globalStore.User,y=v.baseurl,E=m.triggerShowLoader,b=m.triggerToastMsg,_=(0,l.zy)(),C=new URLSearchParams(_.search).get(\"tabname\"),w=Ae((0,a.useState)(\"\"),2),S=w[0],T=w[1],O=Ae(i().useState({tablist:[],currentTabs:\"\"}),2),D=O[0],R=O[1];(0,a.useEffect)(function(){C&&R(function(e){return me(me({},e),{},{currentTabs:C})})},[C,D.tablist]),(0,a.useEffect)(function(){N()},[]),(0,a.useEffect)(function(){S&&L()},[S]);var N=function(){var e;null===(e=(0,g.ou)(\"liquidationData\",A,y,E))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t||null===(t=t.configurationDetailsDtos)||void 0===t?void 0:t.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.configurationDetailsDtos.filter(function(e){return\"liquidation_role\"===e.key}).map(function(e){return e.value})[0];T(r)}}).catch(function(e){b({message:e.message,type:\"error\"})})},L=function(){var e;null===(e=(0,h.q4)(A,S,y,E))||void 0===e||e.then(function(e){var r,o,a,l,u,c,d,p,f;e&&(a=null==e||null===(r=e.parent)||void 0===r?void 0:r.sales_hierarchy_code,l=null==e?void 0:e.sales_hierarchy_code,u=null==e||null===(o=e.parent)||void 0===o?void 0:o.hq_hierarchy_name,c=null==e?void 0:e.hq_hierarchy_name,d=null==e?void 0:e.parent.sales_hierarchy_id,p=null==e?void 0:e.sales_hierarchy_id,f={tablist:[{id:1,tabName:\"\".concat(l,\" \").concat((0,j.t)(\"TARGET_DETAILS\")),path:\"\".concat(l).toLowerCase(),component:i().createElement(ue,{hqName:c,selectedTabId:p,hasUpdateAccess:n,selectedTabName:l}),queryParam:{tabname:\"\".concat(l).toLowerCase()}},{id:2,tabName:\"\".concat(a,\" \").concat((0,j.t)(\"TARGET_DETAILS\")),path:\"\".concat(a).toLowerCase(),component:i().createElement(ue,{hqName:u,selectedTabId:d,hasUpdateAccess:n,selectedTabName:a}),queryParam:{tabname:\"\".concat(a).toLowerCase()}},{id:3,tabName:(0,j.t)(\"MY_UPLOADS\"),path:s.fp.Uploads_ErrorLog,component:i().createElement(pe,{RBACControls:t}),queryParam:{tabname:s.fp.Uploads_ErrorLog}}],currentTabs:l.toLowerCase()},R(f))}).catch(function(e){b({message:e.message,type:\"error\"})})},P=(0,a.useCallback)(function(){var e;return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:C?\"\".concat(C).concat(_.search):\"\".concat(D.currentTabs,\"/?\").concat((0,d.Nr)({tabname:null!=C?C:D.currentTabs}))})}),null==D||null===(e=D.tablist)||void 0===e?void 0:e.map(function(e){return i().createElement(l.qh,{key:e.id,path:e.path,element:e.component})}))},[null==D?void 0:D.tablist]);return i().createElement(fe.H,null,i().createElement(r.A,null,i().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(r.A,null,i().createElement(p.A,{routePathName:[{name:s.F_.Liquidation_Target_Actuals,path:s.fp.Liquidation_Target_Actuals}]}))),i().createElement(f.A,{tabStateProps:D,handleTabChange:function(e){return t=e,void R(function(e){return me(me({},e),{},{currentTabs:t})});var t},isParamsReq:!0})),D.tablist.length>0&&P())}},76673:(e,t,n)=>{\"use strict\";function r(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}n.d(t,{A:()=>r})},76906:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>Pr}),n(52675),n(89463),n(2259),n(23418),n(64346),n(23792),n(34782),n(23288),n(94170),n(62010),n(69085),n(26099),n(27495),n(38781),n(47764),n(62953);var r=n(56236),o=n(9378),a=n(74353),i=n.n(a),l=n(90445),s=n.n(l),u=n(15750),c=n.n(u),d=n(37872),p=n.n(d);i().extend(s()),i().extend(c()),i().extend(p());const f={normalDateWithWeekday:\"ddd, MMM D\",normalDate:\"D MMMM\",shortDate:\"MMM D\",monthAndDate:\"MMMM D\",dayOfMonth:\"D\",year:\"YYYY\",month:\"MMMM\",monthShort:\"MMM\",monthAndYear:\"MMMM YYYY\",weekday:\"dddd\",weekdayShort:\"ddd\",minutes:\"mm\",hours12h:\"hh\",hours24h:\"HH\",seconds:\"ss\",fullTime:\"LT\",fullTime12h:\"hh:mm A\",fullTime24h:\"HH:mm\",fullDate:\"ll\",fullDateWithWeekday:\"dddd, LL\",fullDateTime:\"lll\",fullDateTime12h:\"ll hh:mm A\",fullDateTime24h:\"ll HH:mm\",keyboardDate:\"L\",keyboardDateTime:\"L LT\",keyboardDateTime12h:\"L hh:mm A\",keyboardDateTime24h:\"L HH:mm\"};class g{constructor({locale:e,formats:t,instance:n}={}){this.lib=\"dayjs\",this.is12HourCycleInCurrentLocale=()=>{var e,t,n;return/A|a/.test(null!==(n=null===(t=null===(e=this.rawDayJsInstance.Ls[this.locale||\"en\"])||void 0===e?void 0:e.formats)||void 0===t?void 0:t.LT)&&void 0!==n?n:\"\")},this.getCurrentLocaleCode=()=>this.locale||\"en\",this.getFormatHelperText=e=>{var t,n;return null!==(n=null===(t=e.match(/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?)|./g))||void 0===t?void 0:t.map(e=>{var t,n;return\"L\"===e[0]&&null!==(n=null===(t=this.rawDayJsInstance.Ls[this.locale||\"en\"])||void 0===t?void 0:t.formats[e])&&void 0!==n?n:e}).join(\"\").replace(/a/gi,\"(a|p)m\").toLocaleLowerCase())&&void 0!==n?n:e},this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>\"\"===e?null:this.dayjs(e,t,this.locale,!0),this.date=e=>null===e?null:this.dayjs(e),this.toJsDate=e=>e.toDate(),this.isValid=e=>this.dayjs(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,n)=>(\"string\"==typeof t&&(t=this.dayjs(t)),t.isValid()?e.diff(t,n):0),this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,\"day\"),this.isBeforeDay=(e,t)=>e.isBefore(t,\"day\"),this.isAfterMonth=(e,t)=>e.isAfter(t,\"month\"),this.isBeforeMonth=(e,t)=>e.isBefore(t,\"month\"),this.isBeforeYear=(e,t)=>e.isBefore(t,\"year\"),this.isAfterYear=(e,t)=>e.isAfter(t,\"year\"),this.startOfDay=e=>e.startOf(\"day\"),this.endOfDay=e=>e.endOf(\"day\"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getHours=e=>e.hour(),this.addSeconds=(e,t)=>t<0?e.subtract(Math.abs(t),\"second\"):e.add(t,\"second\"),this.addMinutes=(e,t)=>t<0?e.subtract(Math.abs(t),\"minute\"):e.add(t,\"minute\"),this.addHours=(e,t)=>t<0?e.subtract(Math.abs(t),\"hour\"):e.add(t,\"hour\"),this.addDays=(e,t)=>t<0?e.subtract(Math.abs(t),\"day\"):e.add(t,\"day\"),this.addWeeks=(e,t)=>t<0?e.subtract(Math.abs(t),\"week\"):e.add(t,\"week\"),this.addMonths=(e,t)=>t<0?e.subtract(Math.abs(t),\"month\"):e.add(t,\"month\"),this.addYears=(e,t)=>t<0?e.subtract(Math.abs(t),\"year\"):e.add(t,\"year\"),this.setMonth=(e,t)=>e.set(\"month\",t),this.setHours=(e,t)=>e.set(\"hour\",t),this.getMinutes=e=>e.minute(),this.setMinutes=(e,t)=>e.set(\"minute\",t),this.getSeconds=e=>e.second(),this.setSeconds=(e,t)=>e.set(\"second\",t),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.setDate=(e,t)=>e.set(\"date\",t),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,\"day\"),this.isSameMonth=(e,t)=>e.isSame(t,\"month\"),this.isSameYear=(e,t)=>e.isSame(t,\"year\"),this.isSameHour=(e,t)=>e.isSame(t,\"hour\"),this.getMeridiemText=e=>\"am\"===e?\"AM\":\"PM\",this.startOfYear=e=>e.startOf(\"year\"),this.endOfYear=e=>e.endOf(\"year\"),this.startOfMonth=e=>e.startOf(\"month\"),this.endOfMonth=e=>e.endOf(\"month\"),this.startOfWeek=e=>e.startOf(\"week\"),this.endOfWeek=e=>e.endOf(\"week\"),this.getNextMonth=e=>e.add(1,\"month\"),this.getPreviousMonth=e=>e.subtract(1,\"month\"),this.getMonthArray=e=>{const t=[e.startOf(\"year\")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.year(),this.setYear=(e,t)=>e.set(\"year\",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf(\"week\");return[0,1,2,3,4,5,6].map(t=>this.formatByString(e.add(t,\"day\"),\"dd\"))},this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).isSame(t),this.getWeekArray=e=>{const t=this.dayjs(e).startOf(\"month\").startOf(\"week\"),n=this.dayjs(e).endOf(\"month\").endOf(\"week\");let r=0,o=t;const a=[];for(;o.isBefore(n);){const e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(o),o=o.add(1,\"day\"),r+=1}return a},this.getYearRange=(e,t)=>{const n=this.dayjs(e).startOf(\"year\"),r=this.dayjs(t).endOf(\"year\"),o=[];let a=n;for(;a.isBefore(r);)o.push(a),a=a.add(1,\"year\");return o},this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,\"[]\"),this.rawDayJsInstance=n||i(),this.dayjs=((e,t)=>t?(...n)=>e(...n).locale(t):e)(this.rawDayJsInstance,e),this.locale=e,this.formats=Object.assign({},f,t)}}const h={YY:\"year\",YYYY:\"year\",M:\"month\",MM:\"month\",MMM:\"month\",MMMM:\"month\",D:\"day\",DD:\"day\",H:\"hour\",HH:\"hour\",h:\"hour\",hh:\"hour\",m:\"minute\",mm:\"minute\",s:\"second\",ss:\"second\",A:\"am-pm\",a:\"am-pm\"};class m extends g{constructor(...e){super(...e),this.formatTokenMap=h,this.expandFormat=e=>{var t;const n=null==(t=this.rawDayJsInstance.Ls[this.locale||\"en\"])?void 0:t.formats;return e.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,t,r)=>{const o=r&&r.toUpperCase();return t||n[r]||n[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1))})},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,\"(a|p)m\").toLocaleLowerCase()}}var v=n(58168),A=n(98587),y=n(81970),E=n.n(y),b=n(16606),_=n(22765),C=n(58312);function w({props:e,name:t}){return(0,b.A)({props:e,name:t,defaultTheme:_.A,themeId:C.A})}const S={previousMonth:\"Previous month\",nextMonth:\"Next month\",openPreviousView:\"open previous view\",openNextView:\"open next view\",calendarViewSwitchingButtonAriaLabel:e=>\"year\"===e?\"year view is open, switch to calendar view\":\"calendar view is open, switch to year view\",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:\"Start\",end:\"End\",cancelButtonLabel:\"Cancel\",clearButtonLabel:\"Clear\",okButtonLabel:\"OK\",todayButtonLabel:\"Today\",datePickerDefaultToolbarTitle:\"Select date\",dateTimePickerDefaultToolbarTitle:\"Select date & time\",timePickerDefaultToolbarTitle:\"Select time\",dateRangePickerDefaultToolbarTitle:\"Select date range\",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?\"No time selected\":`Selected time is ${n.format(t,\"fullTime\")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),\"fullDate\")}`:\"Choose date\",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),\"fullTime\")}`:\"Choose time\",timeTableLabel:\"pick time\",dateTableLabel:\"pick date\"},T=S;O=S,(0,v.A)({},O);var O,D=n(74848);const R=y.createContext(null);function N(e){const t=w({props:e,name:\"MuiLocalizationProvider\"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:a,locale:i,adapterLocale:l,localeText:s}=t,u=y.useMemo(()=>new r({locale:null!=l?l:i,formats:o,instance:a}),[r,i,l,o,a]),c=y.useMemo(()=>({minDate:u.date(\"1900-01-01T00:00:00.000\"),maxDate:u.date(\"2099-12-31T00:00:00.000\")}),[u]),d=y.useMemo(()=>({utils:u,defaultDates:c,localeText:(0,v.A)({},T,null!=s?s:{})}),[c,u,s]);return(0,D.jsx)(R.Provider,{value:d,children:n})}const L=()=>{const e=y.useContext(R);if(null===e)throw new Error(\"MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.\");return e},P=()=>L().utils,M=()=>L().defaultDates,x=()=>L().localeText,I=()=>{const e=P();return y.useRef(e.date()).current},k=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i})=>{const l=i.startOfDay(i.date());n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let s=e,u=e;for(i.isBefore(e,o)&&(s=i.date(o),u=null),i.isAfter(e,r)&&(u&&(u=i.date(r)),s=null);s||u;){if(s&&i.isAfter(s,r)&&(s=null),u&&i.isBefore(u,o)&&(u=null),s){if(!a(s))return s;s=i.addDays(s,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},B=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},F=e=>1===e.length&&\"year\"===e[0],j=e=>2===e.length&&-1!==e.indexOf(\"month\")&&-1!==e.indexOf(\"year\");const H={emptyValue:null,getTodayValue:e=>e.date(),parseInput:(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},areValuesEqual:(e,t,n)=>e.isEqual(t,n)};var U=n(14073),Y=n(11848),G=n(75659);function z(e){var t,n,r=\"\";if(\"string\"==typeof e||\"number\"==typeof e)r+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=z(e[t]))&&(r&&(r+=\" \"),r+=n);else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}const V=function(){for(var e,t,n=0,r=\"\";n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=\" \"),r+=t);return r};var q=n(8239),W=n(11641),Q=n(20561);const K=(0,Q.A)((0,D.jsx)(\"path\",{d:\"M7 10l5 5 5-5z\"}),\"ArrowDropDown\"),$=(0,Q.A)((0,D.jsx)(\"path\",{d:\"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z\"}),\"ArrowLeft\"),X=(0,Q.A)((0,D.jsx)(\"path\",{d:\"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"}),\"ArrowRight\"),J=(0,Q.A)((0,D.jsx)(\"path\",{d:\"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z\"}),\"Calendar\"),Z=(0,Q.A)((0,D.jsxs)(y.Fragment,{children:[(0,D.jsx)(\"path\",{d:\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),(0,D.jsx)(\"path\",{d:\"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"})]}),\"Clock\"),ee=((0,Q.A)((0,D.jsx)(\"path\",{d:\"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z\"}),\"DateRange\"),(0,Q.A)((0,D.jsx)(\"path\",{d:\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z\"}),\"Pen\"));(0,Q.A)((0,D.jsxs)(y.Fragment,{children:[(0,D.jsx)(\"path\",{d:\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"}),(0,D.jsx)(\"path\",{d:\"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"})]}),\"Time\");var te=n(31609),ne=n(38413);function re(e){return(0,te.Ay)(\"MuiPickersToolbar\",e)}const oe=(0,ne.A)(\"MuiPickersToolbar\",[\"root\",\"content\",\"penIconButton\",\"penIconButtonLandscape\"]),ae=(0,Y.Ay)(\"div\",{name:\"MuiPickersToolbar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,v.A)({display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"space-between\",padding:e.spacing(2,3)},t.isLandscape&&{height:\"auto\",maxWidth:160,padding:16,justifyContent:\"flex-start\",flexWrap:\"wrap\"})),ie=(0,Y.Ay)(q.Ay,{name:\"MuiPickersToolbar\",slot:\"Content\",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>(0,v.A)({flex:1},!e.isLandscape&&{alignItems:\"center\"})),le=(0,Y.Ay)(W.A,{name:\"MuiPickersToolbar\",slot:\"PenIconButton\",overridesResolver:(e,t)=>[{[`&.${oe.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),se=e=>\"clock\"===e?(0,D.jsx)(Z,{color:\"inherit\"}):(0,D.jsx)(J,{color:\"inherit\"}),ue=y.forwardRef(function(e,t){const n=w({props:e,name:\"MuiPickersToolbar\"}),{children:r,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:i,isMobileKeyboardViewOpen:l,landscapeDirection:s=\"column\",toggleMobileKeyboardView:u,toolbarTitle:c,viewType:d=\"calendar\"}=n,p=n,f=x(),g=(e=>{const{classes:t,isLandscape:n}=e,r={root:[\"root\"],content:[\"content\"],penIconButton:[\"penIconButton\",n&&\"penIconButtonLandscape\"]};return(0,G.A)(r,re,t)})(p);return(0,D.jsxs)(ae,{ref:t,className:V(g.root,o),ownerState:p,children:[(0,D.jsx)(U.A,{color:\"text.secondary\",variant:\"overline\",children:c}),(0,D.jsxs)(ie,{container:!0,justifyContent:\"space-between\",className:g.content,ownerState:p,direction:i?s:\"row\",alignItems:i?\"flex-start\":\"flex-end\",children:[r,(0,D.jsx)(le,{onClick:u,className:g.penIconButton,ownerState:p,color:\"inherit\",\"aria-label\":a?a(l,d):f.inputModeToggleButtonAriaLabel(l,d),children:l?se(d):(0,D.jsx)(ee,{color:\"inherit\"})})]})]})});function ce(e){return(0,te.Ay)(\"MuiDatePickerToolbar\",e)}(0,ne.A)(\"MuiDatePickerToolbar\",[\"root\",\"title\"]);const de=[\"parsedValue\",\"isLandscape\",\"isMobileKeyboardViewOpen\",\"onChange\",\"toggleMobileKeyboardView\",\"toolbarFormat\",\"toolbarPlaceholder\",\"toolbarTitle\",\"views\"],pe=(0,Y.Ay)(ue,{name:\"MuiDatePickerToolbar\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),fe=(0,Y.Ay)(U.A,{name:\"MuiDatePickerToolbar\",slot:\"Title\",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>(0,v.A)({},e.isLandscape&&{margin:\"auto 16px auto auto\"})),ge=y.forwardRef(function(e,t){const n=w({props:e,name:\"MuiDatePickerToolbar\"}),{parsedValue:r,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:i,toolbarFormat:l,toolbarPlaceholder:s=\"––\",toolbarTitle:u,views:c}=n,d=(0,A.A)(n,de),p=P(),f=x(),g=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],title:[\"title\"]},ce,t)})(n),h=null!=u?u:f.datePickerDefaultToolbarTitle,m=y.useMemo(()=>r?l?p.formatByString(r,l):F(c)?p.format(r,\"year\"):j(c)?p.format(r,\"month\"):/en/.test(p.getCurrentLocaleCode())?p.format(r,\"normalDateWithWeekday\"):p.format(r,\"normalDate\"):s,[r,l,s,p,c]),E=n;return(0,D.jsx)(pe,(0,v.A)({ref:t,toolbarTitle:h,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:i,isLandscape:o,className:g.root},d,{children:(0,D.jsx)(fe,{variant:\"h4\",align:o?\"left\":\"center\",ownerState:E,className:g.title,children:m})}))});var he=n(96852);const me=y.createContext(null);var ve=n(87467),Ae=n(60538),ye=n(87558),Ee=n(73524),be=n(83034),_e=n(96248),Ce=n(86990),we=n(34164),Se=n(25669);function Te(e){return(0,te.Ay)(\"MuiDialogActions\",e)}(0,ne.A)(\"MuiDialogActions\",[\"root\",\"spacing\"]);const Oe=[\"className\",\"disableSpacing\"],De=(0,Y.Ay)(\"div\",{name:\"MuiDialogActions\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,v.A)({display:\"flex\",alignItems:\"center\",padding:8,justifyContent:\"flex-end\",flex:\"0 0 auto\"},!e.disableSpacing&&{\"& > :not(style) ~ :not(style)\":{marginLeft:8}})),Re=y.forwardRef(function(e,t){const n=(0,Se.b)({props:e,name:\"MuiDialogActions\"}),{className:r,disableSpacing:o=!1}=n,a=(0,A.A)(n,Oe),i=(0,v.A)({},n,{disableSpacing:o}),l=(e=>{const{classes:t,disableSpacing:n}=e,r={root:[\"root\",!n&&\"spacing\"]};return(0,G.A)(r,Te,t)})(i);return(0,D.jsx)(De,(0,v.A)({className:(0,we.A)(l.root,r),ownerState:i,ref:t},a))}),Ne=[\"onAccept\",\"onClear\",\"onCancel\",\"onSetToday\",\"actions\"],Le=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=(0,A.A)(e,Ne),l=y.useContext(me),s=x(),u=\"function\"==typeof a?a(l):a;if(null==u||0===u.length)return null;const c=null==u?void 0:u.map(e=>{switch(e){case\"clear\":return(0,D.jsx)(Ce.A,{onClick:n,children:s.clearButtonLabel},e);case\"cancel\":return(0,D.jsx)(Ce.A,{onClick:r,children:s.cancelButtonLabel},e);case\"accept\":return(0,D.jsx)(Ce.A,{onClick:t,children:s.okButtonLabel},e);case\"today\":return(0,D.jsx)(Ce.A,{onClick:o,children:s.todayButtonLabel},e);default:return null}});return(0,D.jsx)(Re,(0,v.A)({},i,{children:c}))};function Pe(e){return(0,te.Ay)(\"MuiPickersPopper\",e)}function Me(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}(0,ne.A)(\"MuiPickersPopper\",[\"root\",\"paper\"]);const xe=(e,t)=>n=>{\"Enter\"!==n.key&&\" \"!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Ie=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ie(t.shadowRoot):t:null},ke=[\"onClick\",\"onTouchStart\"],Be=(0,Y.Ay)(ye.A,{name:\"MuiPickersPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Fe=(0,Y.Ay)(Ae.A,{name:\"MuiPickersPopper\",slot:\"Paper\",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>(0,v.A)({transformOrigin:\"top center\",outline:0},\"top\"===e.placement&&{transformOrigin:\"bottom center\"}));function je(e){var t;const n=w({props:e,name:\"MuiPickersPopper\"}),{anchorEl:r,children:o,containerRef:a=null,onBlur:i,onClose:l,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:p,PopperProps:f,role:g,TransitionComponent:h=ve.A,TrapFocusProps:m,PaperProps:E={},components:b,componentsProps:_}=n;y.useEffect(()=>{function e(e){!p||\"Escape\"!==e.key&&\"Esc\"!==e.key||l()}return document.addEventListener(\"keydown\",e),()=>{document.removeEventListener(\"keydown\",e)}},[l,p]);const C=y.useRef(null);y.useEffect(()=>{\"tooltip\"!==g&&(p?C.current=Ie(document):C.current&&C.current instanceof HTMLElement&&setTimeout(()=>{C.current instanceof HTMLElement&&C.current.focus()}))},[p,g]);const[S,T,O]=function(e,t){const n=y.useRef(!1),r=y.useRef(!1),o=y.useRef(null),a=y.useRef(!1);y.useEffect(()=>{if(e)return document.addEventListener(\"mousedown\",t,!0),document.addEventListener(\"touchstart\",t,!0),()=>{document.removeEventListener(\"mousedown\",t,!0),document.removeEventListener(\"touchstart\",t,!0),a.current=!1};function t(){a.current=!0}},[e]);const i=(0,be.A)(e=>{if(!a.current)return;const i=r.current;r.current=!1;const l=(0,_e.A)(o.current);if(!o.current||\"clientX\"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,l))return;if(n.current)return void(n.current=!1);let s;s=e.composedPath?e.composedPath().indexOf(o.current)>-1:!l.documentElement.contains(e.target)||o.current.contains(e.target),s||i||t(e)}),l=()=>{r.current=!0};return y.useEffect(()=>{if(e){const e=(0,_e.A)(o.current),t=()=>{n.current=!0};return e.addEventListener(\"touchstart\",i),e.addEventListener(\"touchmove\",t),()=>{e.removeEventListener(\"touchstart\",i),e.removeEventListener(\"touchmove\",t)}}},[e,i]),y.useEffect(()=>{if(e){const e=(0,_e.A)(o.current);return e.addEventListener(\"click\",i),()=>{e.removeEventListener(\"click\",i),r.current=!1}}},[e,i]),[o,l,l]}(p,null!=i?i:l),R=y.useRef(null),N=(0,he.A)(R,a),L=(0,he.A)(N,S),P=n,M=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],paper:[\"paper\"]},Pe,t)})(P),{onClick:x,onTouchStart:I}=E,k=(0,A.A)(E,ke),B=null!=(t=null==b?void 0:b.ActionBar)?t:Le,F=(null==b?void 0:b.PaperContent)||y.Fragment;return(0,D.jsx)(Be,(0,v.A)({transition:!0,role:g,open:p,anchorEl:r,onKeyDown:e=>{\"Escape\"===e.key&&(e.stopPropagation(),l())},className:M.root},f,{children:({TransitionProps:e,placement:t})=>(0,D.jsx)(Ee.A,(0,v.A)({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:\"tooltip\"===g,isEnabled:()=>!0},m,{children:(0,D.jsx)(h,(0,v.A)({},e,{children:(0,D.jsx)(Fe,(0,v.A)({tabIndex:-1,elevation:8,ref:L,onClick:e=>{T(e),x&&x(e)},onTouchStart:e=>{O(e),I&&I(e)},ownerState:(0,v.A)({},P,{placement:t}),className:M.paper},k,{children:(0,D.jsxs)(F,(0,v.A)({},null==_?void 0:_.paperContent,{children:[o,(0,D.jsx)(B,(0,v.A)({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},null==_?void 0:_.actionBar))]}))}))}))}))}))}function He(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:o,onDismiss:a,onCancel:i,onAccept:l,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:p,components:f,componentsProps:g}=e,h=y.useRef(null),m=(0,he.A)(n.inputRef,h);return(0,D.jsxs)(me.Provider,{value:\"desktop\",children:[(0,D.jsx)(r,(0,v.A)({},n,{inputRef:m})),(0,D.jsx)(je,{role:\"dialog\",open:u,anchorEl:h.current,TransitionComponent:p,PopperProps:c,PaperProps:d,onClose:a,onCancel:i,onClear:o,onAccept:l,onSetToday:s,components:f,componentsProps:g,children:t})]})}var Ue=n(41159);function Ye({onChange:e,onViewChange:t,openTo:n,view:r,views:o}){var a,i;const[l,s]=(0,Ue.A)({name:\"Picker\",state:\"view\",controlled:r,default:n&&Me(o,n)?n:o[0]}),u=null!=(a=o[o.indexOf(l)-1])?a:null,c=null!=(i=o[o.indexOf(l)+1])?i:null,d=y.useCallback(e=>{s(e),t&&t(e)},[s,t]),p=y.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:y.useCallback((t,n)=>{const r=\"finish\"===n,o=r&&Boolean(c)?\"partial\":n;e(t,o),r&&p()},[c,e,p]),nextView:c,previousView:u,openNext:p,openView:l,setOpenView:d}}var Ge=n(1668),ze=n(21529);const Ve=110,qe=110,We=Ve-Ve,Qe=0-qe,Ke=(e,t,n)=>{const r=t-Ve,o=n-qe;let a=(Math.atan2(We,Qe)-Math.atan2(r,o))*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const i=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(i)}};function $e(e){return(0,te.Ay)(\"MuiClockPointer\",e)}(0,ne.A)(\"MuiClockPointer\",[\"root\",\"thumb\"]);const Xe=[\"className\",\"hasSelected\",\"isInner\",\"type\",\"value\"],Je=(0,Y.Ay)(\"div\",{name:\"MuiClockPointer\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,v.A)({width:2,backgroundColor:e.palette.primary.main,position:\"absolute\",left:\"calc(50% - 1px)\",bottom:\"50%\",transformOrigin:\"center bottom 0px\"},t.shouldAnimate&&{transition:e.transitions.create([\"transform\",\"height\"])})),Ze=(0,Y.Ay)(\"div\",{name:\"MuiClockPointer\",slot:\"Thumb\",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>(0,v.A)({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:\"50%\",position:\"absolute\",top:-21,left:\"calc(50% - 18px)\",border:`16px solid ${e.palette.primary.main}`,boxSizing:\"content-box\"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function et(e){const t=w({props:e,name:\"MuiClockPointer\"}),{className:n,isInner:r,type:o,value:a}=t,i=(0,A.A)(t,Xe),l=y.useRef(o);y.useEffect(()=>{l.current=o},[o]);const s=(0,v.A)({},t,{shouldAnimate:l.current!==o}),u=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],thumb:[\"thumb\"]},$e,t)})(s);return(0,D.jsx)(Je,(0,v.A)({style:(()=>{let e=360/(\"hours\"===o?12:60)*a;return\"hours\"===o&&a>12&&(e-=360),{height:Math.round(220*(r?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:V(n,u.root),ownerState:s},i,{children:(0,D.jsx)(Ze,{ownerState:s,className:u.thumb})}))}function tt(e){return(0,te.Ay)(\"MuiClock\",e)}(0,ne.A)(\"MuiClock\",[\"root\",\"clock\",\"wrapper\",\"squareMask\",\"pin\",\"amButton\",\"pmButton\"]);const nt=(0,Y.Ay)(\"div\",{name:\"MuiClock\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:\"flex\",justifyContent:\"center\",alignItems:\"center\",margin:e.spacing(2)})),rt=(0,Y.Ay)(\"div\",{name:\"MuiClock\",slot:\"Clock\",overridesResolver:(e,t)=>t.clock})({backgroundColor:\"rgba(0,0,0,.07)\",borderRadius:\"50%\",height:220,width:220,flexShrink:0,position:\"relative\",pointerEvents:\"none\"}),ot=(0,Y.Ay)(\"div\",{name:\"MuiClock\",slot:\"Wrapper\",overridesResolver:(e,t)=>t.wrapper})({\"&:focus\":{outline:\"none\"}}),at=(0,Y.Ay)(\"div\",{name:\"MuiClock\",slot:\"SquareMask\",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>(0,v.A)({width:\"100%\",height:\"100%\",position:\"absolute\",pointerEvents:\"auto\",outline:0,touchAction:\"none\",userSelect:\"none\"},e.disabled?{}:{\"@media (pointer: fine)\":{cursor:\"pointer\",borderRadius:\"50%\"},\"&:active\":{cursor:\"move\"}})),it=(0,Y.Ay)(\"div\",{name:\"MuiClock\",slot:\"Pin\",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:\"50%\",backgroundColor:e.palette.primary.main,position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\"})),lt=(0,Y.Ay)(W.A,{name:\"MuiClock\",slot:\"AmButton\",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>(0,v.A)({zIndex:1,position:\"absolute\",bottom:t.ampmInClock?64:8,left:8},\"am\"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,\"&:hover\":{backgroundColor:e.palette.primary.light}})),st=(0,Y.Ay)(W.A,{name:\"MuiClock\",slot:\"PmButton\",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>(0,v.A)({zIndex:1,position:\"absolute\",bottom:t.ampmInClock?64:8,right:8},\"pm\"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,\"&:hover\":{backgroundColor:e.palette.primary.light}}));function ut(e){const t=w({props:e,name:\"MuiClock\"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,date:i,getClockLabelText:l,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:p,selectedId:f,type:g,value:h,disabled:m,readOnly:v,className:A}=t,E=t,b=P(),_=y.useContext(me),C=y.useRef(!1),S=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],clock:[\"clock\"],wrapper:[\"wrapper\"],squareMask:[\"squareMask\"],pin:[\"pin\"],amButton:[\"amButton\"],pmButton:[\"pmButton\"]},tt,t)})(E),T=u(h,g),O=!n&&\"hours\"===g&&(h<1||h>12),R=(e,t)=>{m||v||u(e,g)||p(e,t)},N=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const a=\"seconds\"===g||\"minutes\"===g?((e,t,n=1)=>{const r=6*n;let{value:o}=Ke(r,e,t);return o=o*n%60,o})(r,o,d):((e,t,n)=>{const{value:r,distance:o}=Ke(30,e,t);let a=r||12;return n?a%=12:o<74&&(a+=12,a%=24),a})(r,o,Boolean(n));R(a,t)},L=y.useMemo(()=>\"hours\"===g||h%5==0,[g,h]),M=\"minutes\"===g?d:1,x=y.useRef(null);return(0,ze.A)(()=>{o&&x.current.focus()},[o]),(0,D.jsxs)(nt,{className:V(A,S.root),children:[(0,D.jsxs)(rt,{className:S.clock,children:[(0,D.jsx)(at,{onTouchMove:e=>{C.current=!0,N(e,\"shallow\")},onTouchEnd:e=>{C.current&&(N(e,\"finish\"),C.current=!1)},onMouseUp:e=>{C.current&&(C.current=!1),N(e.nativeEvent,\"finish\")},onMouseMove:e=>{e.buttons>0&&N(e.nativeEvent,\"shallow\")},ownerState:{disabled:m},className:S.squareMask}),!T&&(0,D.jsxs)(y.Fragment,{children:[(0,D.jsx)(it,{className:S.pin}),i&&(0,D.jsx)(et,{type:g,value:h,isInner:O,hasSelected:L})]}),(0,D.jsx)(ot,{\"aria-activedescendant\":f,\"aria-label\":l(g,i,b),ref:x,role:\"listbox\",onKeyDown:e=>{if(!C.current)switch(e.key){case\"Home\":R(0,\"partial\"),e.preventDefault();break;case\"End\":R(\"minutes\"===g?59:23,\"partial\"),e.preventDefault();break;case\"ArrowUp\":R(h+M,\"partial\"),e.preventDefault();break;case\"ArrowDown\":R(h-M,\"partial\"),e.preventDefault()}},tabIndex:0,className:S.wrapper,children:a})]}),n&&(\"desktop\"===_||r)&&(0,D.jsxs)(y.Fragment,{children:[(0,D.jsx)(lt,{onClick:v?void 0:()=>s(\"am\"),disabled:m||null===c,ownerState:E,className:S.amButton,children:(0,D.jsx)(U.A,{variant:\"caption\",children:\"AM\"})}),(0,D.jsx)(st,{disabled:m||null===c,onClick:v?void 0:()=>s(\"pm\"),ownerState:E,className:S.pmButton,children:(0,D.jsx)(U.A,{variant:\"caption\",children:\"PM\"})})]})]})}function ct(e){return(0,te.Ay)(\"MuiClockNumber\",e)}const dt=(0,ne.A)(\"MuiClockNumber\",[\"root\",\"selected\",\"disabled\"]),pt=[\"className\",\"disabled\",\"index\",\"inner\",\"label\",\"selected\"],ft=(0,Y.Ay)(\"span\",{name:\"MuiClockNumber\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`&.${dt.disabled}`]:t.disabled},{[`&.${dt.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>(0,v.A)({height:36,width:36,position:\"absolute\",left:\"calc((100% - 36px) / 2)\",display:\"inline-flex\",justifyContent:\"center\",alignItems:\"center\",borderRadius:\"50%\",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,\"&:focused\":{backgroundColor:e.palette.background.paper},[`&.${dt.selected}`]:{color:e.palette.primary.contrastText},[`&.${dt.disabled}`]:{pointerEvents:\"none\",color:e.palette.text.disabled}},t.inner&&(0,v.A)({},e.typography.body2,{color:e.palette.text.secondary})));function gt(e){const t=w({props:e,name:\"MuiClockNumber\"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:l}=t,s=(0,A.A)(t,pt),u=t,c=(e=>{const{classes:t,selected:n,disabled:r}=e,o={root:[\"root\",n&&\"selected\",r&&\"disabled\"]};return(0,G.A)(o,ct,t)})(u),d=o%12/12*Math.PI*2-Math.PI/2,p=91*(a?.65:1),f=Math.round(Math.cos(d)*p),g=Math.round(Math.sin(d)*p);return(0,D.jsx)(ft,(0,v.A)({className:V(n,c.root),\"aria-disabled\":!!r||void 0,\"aria-selected\":!!l||void 0,role:\"option\",style:{transform:`translate(${f}px, ${g+92}px`},ownerState:u},s,{children:i}))}const ht=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,l=[],s=e?12:23,u=t=>null!==i&&(e?12===t?12===i||0===i:i===t||i-12===t:i===t);for(let t=e?1:0;t<=s;t+=1){let i=t.toString();0===t&&(i=\"00\");const s=!e&&(0===t||t>12);i=a.formatNumber(i);const c=u(t);l.push((0,D.jsx)(gt,{id:c?o:void 0,index:t,inner:s,selected:c,disabled:r(t),label:i,\"aria-label\":n(i)},t))}return l},mt=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a(\"05\")],[10,a(\"10\")],[15,a(\"15\")],[20,a(\"20\")],[25,a(\"25\")],[30,a(\"30\")],[35,a(\"35\")],[40,a(\"40\")],[45,a(\"45\")],[50,a(\"50\")],[55,a(\"55\")],[0,a(\"00\")]].map(([e,a],i)=>{const l=e===t;return(0,D.jsx)(gt,{label:a,id:l?o:void 0,index:i+1,inner:!1,disabled:n(e),selected:l,\"aria-label\":r(a)},e)})};var vt=n(44675);function At(e){return(0,te.Ay)(\"MuiPickersArrowSwitcher\",e)}(0,ne.A)(\"MuiPickersArrowSwitcher\",[\"root\",\"spacer\",\"button\"]);const yt=[\"children\",\"className\",\"components\",\"componentsProps\",\"isLeftDisabled\",\"isLeftHidden\",\"isRightDisabled\",\"isRightHidden\",\"leftArrowButtonText\",\"onLeftClick\",\"onRightClick\",\"rightArrowButtonText\"],Et=(0,Y.Ay)(\"div\",{name:\"MuiPickersArrowSwitcher\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\"}),bt=(0,Y.Ay)(\"div\",{name:\"MuiPickersArrowSwitcher\",slot:\"Spacer\",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),_t=(0,Y.Ay)(W.A,{name:\"MuiPickersArrowSwitcher\",slot:\"Button\",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,v.A)({},e.hidden&&{visibility:\"hidden\"})),Ct=y.forwardRef(function(e,t){const n=w({props:e,name:\"MuiPickersArrowSwitcher\"}),{children:r,className:o,components:a,componentsProps:i,isLeftDisabled:l,isLeftHidden:s,isRightDisabled:u,isRightHidden:c,leftArrowButtonText:d,onLeftClick:p,onRightClick:f,rightArrowButtonText:g}=n,h=(0,A.A)(n,yt),m=\"rtl\"===(0,vt.A)().direction,y=(null==i?void 0:i.leftArrowButton)||{},E=(null==a?void 0:a.LeftArrowIcon)||$,b=(null==i?void 0:i.rightArrowButton)||{},_=(null==a?void 0:a.RightArrowIcon)||X,C=n,S=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],spacer:[\"spacer\"],button:[\"button\"]},At,t)})(C);return(0,D.jsxs)(Et,(0,v.A)({ref:t,className:V(S.root,o),ownerState:C},h,{children:[(0,D.jsx)(_t,(0,v.A)({as:null==a?void 0:a.LeftArrowButton,size:\"small\",\"aria-label\":d,title:d,disabled:l,edge:\"end\",onClick:p},y,{className:V(S.button,y.className),ownerState:(0,v.A)({},C,y,{hidden:s}),children:m?(0,D.jsx)(_,{}):(0,D.jsx)(E,{})})),r?(0,D.jsx)(U.A,{variant:\"subtitle1\",component:\"span\",children:r}):(0,D.jsx)(bt,{className:S.spacer,ownerState:C}),(0,D.jsx)(_t,(0,v.A)({as:null==a?void 0:a.RightArrowButton,size:\"small\",\"aria-label\":g,title:g,edge:\"start\",disabled:u,onClick:f},b,{className:V(S.button,b.className),ownerState:(0,v.A)({},C,b,{hidden:c}),children:m?(0,D.jsx)(E,{}):(0,D.jsx)(_,{})}))]}))}),wt=(e,t,n)=>n&&(e>=12?\"pm\":\"am\")!==t?\"am\"===t?e-12:e+12:e,St=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e);function Tt(e){return(0,te.Ay)(\"MuiClockPicker\",e)}(0,ne.A)(\"MuiClockPicker\",[\"root\",\"arrowSwitcher\"]);const Ot=(0,Y.Ay)(\"div\")({overflowX:\"hidden\",width:320,maxHeight:358,display:\"flex\",flexDirection:\"column\",margin:\"0 auto\"}),Dt=(0,Y.Ay)(Ot,{name:\"MuiClockPicker\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"column\"}),Rt=(0,Y.Ay)(Ct,{name:\"MuiClockPicker\",slot:\"ArrowSwitcher\",overridesResolver:(e,t)=>t.arrowSwitcher})({position:\"absolute\",right:12,top:15}),Nt=y.forwardRef(function(e,t){const n=w({props:e,name:\"MuiClockPicker\"}),{ampm:r=!1,ampmInClock:o=!1,autoFocus:a,components:i,componentsProps:l,date:s,disableIgnoringDatePartForTimeValidation:u,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:p,getSecondsClockNumberText:f,leftArrowButtonText:g,maxTime:h,minTime:m,minutesStep:A=1,rightArrowButtonText:E,shouldDisableTime:b,showViewSwitcher:_,onChange:C,view:S,views:T=[\"hours\",\"minutes\"],openTo:O,onViewChange:R,className:N,disabled:L,readOnly:M}=n,k=x(),B=null!=g?g:k.openPreviousView,F=null!=E?E:k.openNextView,j=null!=c?c:k.clockLabelText,H=null!=d?d:k.hoursClockNumberText,U=null!=p?p:k.minutesClockNumberText,Y=null!=f?f:k.secondsClockNumberText,{openView:z,setOpenView:q,nextView:W,previousView:Q,handleChangeAndOpenNext:K}=Ye({view:S,views:T,openTo:O,onViewChange:R,onChange:C}),$=I(),X=P(),J=y.useMemo(()=>s||X.setSeconds(X.setMinutes(X.setHours($,0),0),0),[s,$,X]),{meridiemMode:Z,handleMeridiemChange:ee}=function(e,t,n){const r=P(),o=((e,t)=>e?t.getHours(e)>=12?\"pm\":\"am\":null)(e,r),a=y.useCallback(o=>{const a=null==e?null:((e,t,n,r)=>{const o=wt(r.getHours(e),t,n);return r.setHours(e,o)})(e,o,Boolean(t),r);n(a,\"partial\")},[t,e,n,r]);return{meridiemMode:o,handleMeridiemChange:a}}(J,r,K),te=y.useCallback((e,t)=>{const n=((e=!1,t)=>(n,r)=>e?t.isAfter(n,r):St(n,t)>St(r,t))(u,X),o=({start:e,end:t})=>!(m&&n(m,t)||h&&n(e,h)),a=(e,n=1)=>!(e%n!==0||b&&b(e,t));switch(t){case\"hours\":{const t=wt(e,Z,r),n=X.setHours(J,t);return!o({start:X.setSeconds(X.setMinutes(n,0),0),end:X.setSeconds(X.setMinutes(n,59),59)})||!a(t)}case\"minutes\":{const t=X.setMinutes(J,e);return!o({start:X.setSeconds(t,0),end:X.setSeconds(t,59)})||!a(e,A)}case\"seconds\":{const t=X.setSeconds(J,e);return!o({start:t,end:t})||!a(e)}default:throw new Error(\"not supported\")}},[r,J,u,h,Z,m,A,b,X]),ne=(0,Ge.A)(),re=y.useMemo(()=>{switch(z){case\"hours\":{const e=(e,t)=>{const n=wt(e,Z,r);K(X.setHours(J,n),t)};return{onChange:e,value:X.getHours(J),children:ht({date:s,utils:X,ampm:r,onChange:e,getClockNumberText:H,isDisabled:e=>L||te(e,\"hours\"),selectedId:ne})}}case\"minutes\":{const e=X.getMinutes(J),t=(e,t)=>{K(X.setMinutes(J,e),t)};return{value:e,onChange:t,children:mt({utils:X,value:e,onChange:t,getClockNumberText:U,isDisabled:e=>L||te(e,\"minutes\"),selectedId:ne})}}case\"seconds\":{const e=X.getSeconds(J),t=(e,t)=>{K(X.setSeconds(J,e),t)};return{value:e,onChange:t,children:mt({utils:X,value:e,onChange:t,getClockNumberText:Y,isDisabled:e=>L||te(e,\"seconds\"),selectedId:ne})}}default:throw new Error(\"You must provide the type for ClockView\")}},[z,X,s,r,H,U,Y,Z,K,J,te,ne,L]),oe=n,ae=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],arrowSwitcher:[\"arrowSwitcher\"]},Tt,t)})(oe);return(0,D.jsxs)(Dt,{ref:t,className:V(ae.root,N),ownerState:oe,children:[_&&(0,D.jsx)(Rt,{className:ae.arrowSwitcher,leftArrowButtonText:B,rightArrowButtonText:F,components:i,componentsProps:l,onLeftClick:()=>q(Q),onRightClick:()=>q(W),isLeftDisabled:!Q,isRightDisabled:!W,ownerState:oe}),(0,D.jsx)(ut,(0,v.A)({autoFocus:a,date:s,ampmInClock:o,type:z,ampm:r,getClockLabelText:j,minutesStep:A,isTimeDisabled:te,meridiemMode:Z,handleMeridiemChange:ee,selectedId:ne,disabled:L,readOnly:M},re))]})});var Lt=n(82858),Pt=n(24279),Mt=n(2778);function xt(e){return(0,te.Ay)(\"PrivatePickersMonth\",e)}const It=(0,ne.A)(\"PrivatePickersMonth\",[\"root\",\"selected\"]),kt=[\"disabled\",\"onSelect\",\"selected\",\"value\",\"tabIndex\",\"hasFocus\",\"onFocus\",\"onBlur\"],Bt=(0,Y.Ay)(U.A,{name:\"PrivatePickersMonth\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`&.${It.selected}`]:t.selected}]})(({theme:e})=>(0,v.A)({flex:\"1 0 33.33%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"unset\",backgroundColor:\"transparent\",border:0,outline:0},e.typography.subtitle1,{margin:\"8px 0\",height:36,borderRadius:18,cursor:\"pointer\",\"&:focus, &:hover\":{backgroundColor:(0,Pt.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},\"&:disabled\":{pointerEvents:\"none\",color:e.palette.text.secondary},[`&.${It.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,\"&:focus, &:hover\":{backgroundColor:e.palette.primary.dark}}})),Ft=()=>{},jt=e=>{const{disabled:t,onSelect:n,selected:r,value:o,tabIndex:a,hasFocus:i,onFocus:l=Ft,onBlur:s=Ft}=e,u=(0,A.A)(e,kt),c=(e=>{const{classes:t,selected:n}=e,r={root:[\"root\",n&&\"selected\"]};return(0,G.A)(r,xt,t)})(e),d=()=>{n(o)},p=y.useRef(null);return(0,Mt.A)(()=>{var e;i&&(null==(e=p.current)||e.focus())},[i]),(0,D.jsx)(Bt,(0,v.A)({ref:p,component:\"button\",type:\"button\",className:c.root,tabIndex:a,onClick:d,onKeyDown:xe(d),color:r?\"primary\":void 0,variant:r?\"h5\":\"subtitle1\",disabled:t,onFocus:e=>l(e,o),onBlur:e=>s(e,o)},u))};function Ht(e){return(0,te.Ay)(\"MuiMonthPicker\",e)}(0,ne.A)(\"MuiMonthPicker\",[\"root\"]);const Ut=[\"className\",\"date\",\"disabled\",\"disableFuture\",\"disablePast\",\"maxDate\",\"minDate\",\"onChange\",\"shouldDisableMonth\",\"readOnly\",\"disableHighlightToday\",\"autoFocus\",\"onMonthFocus\",\"hasFocus\",\"onFocusedViewChange\"],Yt=(0,Y.Ay)(\"div\",{name:\"MuiMonthPicker\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({width:310,display:\"flex\",flexWrap:\"wrap\",alignContent:\"stretch\",margin:\"0 4px\"}),Gt=y.forwardRef(function(e,t){const n=P(),r=I(),o=function(e){const t=P(),n=M(),r=w({props:e,name:\"MuiMonthPicker\"});return(0,v.A)({disableFuture:!1,disablePast:!1},r,{minDate:B(t,r.minDate,n.minDate),maxDate:B(t,r.maxDate,n.maxDate)})}(e),{className:a,date:i,disabled:l,disableFuture:s,disablePast:u,maxDate:c,minDate:d,onChange:p,shouldDisableMonth:f,readOnly:g,disableHighlightToday:h,autoFocus:m=!1,onMonthFocus:E,hasFocus:b,onFocusedViewChange:_}=o,C=(0,A.A)(o,Ut),S=o,T=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"]},Ht,t)})(S),O=(0,Lt.A)(),R=y.useMemo(()=>null!=i?i:n.startOfMonth(r),[r,n,i]),N=y.useMemo(()=>null!=i?n.getMonth(i):h?null:n.getMonth(r),[r,i,n,h]),[L,x]=y.useState(()=>N||n.getMonth(r)),k=y.useCallback(e=>{const t=n.startOfMonth(u&&n.isAfter(r,d)?r:d),o=n.startOfMonth(s&&n.isBefore(r,c)?r:c);return!!n.isBefore(e,t)||!!n.isAfter(e,o)||!!f&&f(e)},[s,u,c,d,r,f,n]),F=e=>{if(g)return;const t=n.setMonth(R,e);p(t,\"finish\")},[j,H]=(0,Ue.A)({name:\"MonthPicker\",state:\"hasFocus\",controlled:b,default:m}),U=y.useCallback(e=>{H(e),_&&_(e)},[H,_]),Y=y.useCallback(e=>{k(n.setMonth(R,e))||(x(e),U(!0),E&&E(e))},[k,n,R,U,E]);y.useEffect(()=>{x(e=>null!==N&&e!==N?N:e)},[N]);const z=(0,be.A)(e=>{const t=12;switch(e.key){case\"ArrowUp\":Y((t+L-3)%t),e.preventDefault();break;case\"ArrowDown\":Y((t+L+3)%t),e.preventDefault();break;case\"ArrowLeft\":Y((t+L+(\"ltr\"===O.direction?-1:1))%t),e.preventDefault();break;case\"ArrowRight\":Y((t+L+(\"ltr\"===O.direction?1:-1))%t),e.preventDefault()}}),q=y.useCallback((e,t)=>{Y(t)},[Y]),W=y.useCallback(()=>{U(!1)},[U]),Q=n.getMonth(r);return(0,D.jsx)(Yt,(0,v.A)({ref:t,className:V(T.root,a),ownerState:S,onKeyDown:z},C,{children:n.getMonthArray(R).map(e=>{const t=n.getMonth(e),r=n.format(e,\"monthShort\"),o=l||k(e);return(0,D.jsx)(jt,{value:t,selected:t===N,tabIndex:t!==L||o?-1:0,hasFocus:j&&t===L,onSelect:F,onFocus:q,onBlur:W,disabled:o,\"aria-current\":Q===t?\"date\":void 0,children:r},r)})}))}),zt=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),o=n.utils.date(t),a=B(n.utils,e.minDate,n.defaultDates.minDate),i=B(n.utils,e.maxDate,n.defaultDates.maxDate);if(null===o)return null;switch(!0){case!n.utils.isValid(t):return\"invalidDate\";case Boolean(e.shouldDisableDate&&e.shouldDisableDate(o)):return\"shouldDisableDate\";case Boolean(e.disableFuture&&n.utils.isAfterDay(o,r)):return\"disableFuture\";case Boolean(e.disablePast&&n.utils.isBeforeDay(o,r)):return\"disablePast\";case Boolean(a&&n.utils.isBeforeDay(o,a)):return\"minDate\";case Boolean(i&&n.utils.isAfterDay(o,i)):return\"maxDate\";default:return null}},Vt=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:o})=>{const a=L();return y.useCallback(i=>null!==zt({adapter:a,value:i,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:o}}),[a,e,t,n,r,o])},qt=(e,t)=>e===t;var Wt=n(20973),Qt=n(22618);const Kt=e=>(0,te.Ay)(\"MuiPickersFadeTransitionGroup\",e),$t=((0,ne.A)(\"MuiPickersFadeTransitionGroup\",[\"root\"]),(0,Y.Ay)(Qt.A,{name:\"MuiPickersFadeTransitionGroup\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"block\",position:\"relative\"}));function Xt(e){const t=w({props:e,name:\"MuiPickersFadeTransitionGroup\"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"]},Kt,t)})(t);return o?n:(0,D.jsx)($t,{className:V(i.root,r),children:(0,D.jsx)(Wt.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:n},a)})}var Jt=n(18850);function Zt(e){return(0,te.Ay)(\"MuiPickersDay\",e)}const en=(0,ne.A)(\"MuiPickersDay\",[\"root\",\"dayWithMargin\",\"dayOutsideMonth\",\"hiddenDaySpacingFiller\",\"today\",\"selected\",\"disabled\"]),tn=[\"autoFocus\",\"className\",\"day\",\"disabled\",\"disableHighlightToday\",\"disableMargin\",\"hidden\",\"isAnimating\",\"onClick\",\"onDaySelect\",\"onFocus\",\"onBlur\",\"onKeyDown\",\"onMouseDown\",\"outsideCurrentMonth\",\"selected\",\"showDaysOutsideCurrentMonth\",\"children\",\"today\"],nn=({theme:e,ownerState:t})=>(0,v.A)({},e.typography.caption,{width:36,height:36,borderRadius:\"50%\",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,\"&:hover\":{backgroundColor:(0,Pt.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},\"&:focus\":{backgroundColor:(0,Pt.X4)(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${en.selected}`]:{willChange:\"background-color\",backgroundColor:e.palette.primary.dark}},[`&.${en.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.short}),\"&:hover\":{willChange:\"background-color\",backgroundColor:e.palette.primary.dark}},[`&.${en.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:\"0 2px\"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${en.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),rn=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},on=(0,Y.Ay)(Jt.A,{name:\"MuiPickersDay\",slot:\"Root\",overridesResolver:rn})(nn),an=(0,Y.Ay)(\"div\",{name:\"MuiPickersDay\",slot:\"Root\",overridesResolver:rn})(({theme:e,ownerState:t})=>(0,v.A)({},nn({theme:e,ownerState:t}),{opacity:0,pointerEvents:\"none\"})),ln=()=>{},sn=y.forwardRef(function(e,t){const n=w({props:e,name:\"MuiPickersDay\"}),{autoFocus:r=!1,className:o,day:a,disabled:i=!1,disableHighlightToday:l=!1,disableMargin:s=!1,isAnimating:u,onClick:c,onDaySelect:d,onFocus:p=ln,onBlur:f=ln,onKeyDown:g=ln,onMouseDown:h,outsideCurrentMonth:m,selected:E=!1,showDaysOutsideCurrentMonth:b=!1,children:_,today:C=!1}=n,S=(0,A.A)(n,tn),T=(0,v.A)({},n,{autoFocus:r,disabled:i,disableHighlightToday:l,disableMargin:s,selected:E,showDaysOutsideCurrentMonth:b,today:C}),O=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:s}=e,u={root:[\"root\",t&&\"selected\",a&&\"disabled\",!n&&\"dayWithMargin\",!r&&o&&\"today\",i&&l&&\"dayOutsideMonth\",i&&!l&&\"hiddenDaySpacingFiller\"],hiddenDaySpacingFiller:[\"hiddenDaySpacingFiller\"]};return(0,G.A)(u,Zt,s)})(T),R=P(),N=y.useRef(null),L=(0,he.A)(N,t);return(0,ze.A)(()=>{!r||i||u||m||N.current.focus()},[r,i,u,m]),m&&!b?(0,D.jsx)(an,{className:V(O.root,O.hiddenDaySpacingFiller,o),ownerState:T,role:S.role}):(0,D.jsx)(on,(0,v.A)({className:V(O.root,o),ownerState:T,ref:L,centerRipple:!0,disabled:i,tabIndex:E?0:-1,onKeyDown:e=>g(e,a),onFocus:e=>p(e,a),onBlur:e=>f(e,a),onClick:e=>{i||d(a,\"finish\"),m&&e.currentTarget.focus(),c&&c(e)},onMouseDown:e=>{h&&h(e),m&&e.preventDefault()}},S,{children:_||R.format(a,\"dayOfMonth\")}))}),un=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,cn=y.memo(sn,un);var dn=n(77387);function pn(e,t){return e.replace(new RegExp(\"(^|\\\\s)\"+t+\"(?:\\\\s|$)\",\"g\"),\"$1\").replace(/\\s+/g,\" \").replace(/^\\s*|\\s*$/g,\"\")}var fn=n(80851),gn=n(92403),hn=function(e,t){return e&&t&&t.split(\" \").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):\"string\"==typeof n.className?n.className=pn(n.className,r):n.setAttribute(\"class\",pn(n.className&&n.className.baseVal||\"\",r)));var n,r})},mn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,\"exit\"),t.addClass(o,a?\"appear\":\"enter\",\"base\"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?\"appear\":\"enter\";t.addClass(o,a,\"active\"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?\"appear\":\"enter\";t.removeClasses(o,a),t.addClass(o,a,\"done\"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,\"appear\"),t.removeClasses(n,\"enter\"),t.addClass(n,\"exit\",\"base\"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,\"exit\",\"active\"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,\"exit\"),t.addClass(n,\"exit\",\"done\"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=\"string\"==typeof n,o=r?(r&&n?n+\"-\":\"\")+e:n[e];return{baseClassName:o,activeClassName:r?o+\"-active\":n[e+\"Active\"],doneClassName:r?o+\"-done\":n[e+\"Done\"]}},t}(0,dn.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+\"ClassName\"],o=this.getClassNames(\"enter\").doneClassName;\"appear\"===t&&\"done\"===n&&o&&(r+=\" \"+o),\"active\"===n&&e&&(0,gn.F)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(\" \").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(\" \"+(e.className.baseVal||e.className)+\" \").indexOf(\" \"+t+\" \")}(n,r)||(\"string\"==typeof n.className?n.className=n.className+\" \"+r:n.setAttribute(\"class\",(n.className&&n.className.baseVal||\"\")+\" \"+r)));var n,r})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&hn(e,r),o&&hn(e,o),a&&hn(e,a)},n.render=function(){var e=this.props,t=(e.classNames,(0,A.A)(e,[\"classNames\"]));return E().createElement(fn.Ay,(0,v.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(E().Component);mn.defaultProps={classNames:\"\"},mn.propTypes={};const vn=mn,An=e=>(0,te.Ay)(\"PrivatePickersSlideTransition\",e),yn=(0,ne.A)(\"PrivatePickersSlideTransition\",[\"root\",\"slideEnter-left\",\"slideEnter-right\",\"slideEnterActive\",\"slideExit\",\"slideExitActiveLeft-left\",\"slideExitActiveLeft-right\"]),En=[\"children\",\"className\",\"reduceAnimations\",\"slideDirection\",\"transKey\"],bn=(0,Y.Ay)(Qt.A,{name:\"PrivatePickersSlideTransition\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`.${yn[\"slideEnter-left\"]}`]:t[\"slideEnter-left\"]},{[`.${yn[\"slideEnter-right\"]}`]:t[\"slideEnter-right\"]},{[`.${yn.slideEnterActive}`]:t.slideEnterActive},{[`.${yn.slideExit}`]:t.slideExit},{[`.${yn[\"slideExitActiveLeft-left\"]}`]:t[\"slideExitActiveLeft-left\"]},{[`.${yn[\"slideExitActiveLeft-right\"]}`]:t[\"slideExitActiveLeft-right\"]}]})(({theme:e})=>{const t=e.transitions.create(\"transform\",{duration:350,easing:\"cubic-bezier(0.35, 0.8, 0.4, 1)\"});return{display:\"block\",position:\"relative\",overflowX:\"hidden\",\"& > *\":{position:\"absolute\",top:0,right:0,left:0},[`& .${yn[\"slideEnter-left\"]}`]:{willChange:\"transform\",transform:\"translate(100%)\",zIndex:1},[`& .${yn[\"slideEnter-right\"]}`]:{willChange:\"transform\",transform:\"translate(-100%)\",zIndex:1},[`& .${yn.slideEnterActive}`]:{transform:\"translate(0%)\",transition:t},[`& .${yn.slideExit}`]:{transform:\"translate(0%)\"},[`& .${yn[\"slideExitActiveLeft-left\"]}`]:{willChange:\"transform\",transform:\"translate(-100%)\",transition:t,zIndex:0},[`& .${yn[\"slideExitActiveLeft-right\"]}`]:{willChange:\"transform\",transform:\"translate(100%)\",transition:t,zIndex:0}}}),_n=e=>(0,te.Ay)(\"MuiDayPicker\",e),Cn=((0,ne.A)(\"MuiDayPicker\",[\"header\",\"weekDayLabel\",\"loadingContainer\",\"slideTransition\",\"monthContainer\",\"weekContainer\"]),e=>e.charAt(0).toUpperCase()),wn=(0,Y.Ay)(\"div\",{name:\"MuiDayPicker\",slot:\"Header\",overridesResolver:(e,t)=>t.header})({display:\"flex\",justifyContent:\"center\",alignItems:\"center\"}),Sn=(0,Y.Ay)(U.A,{name:\"MuiDayPicker\",slot:\"WeekDayLabel\",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:\"0 2px\",textAlign:\"center\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",color:e.palette.text.secondary})),Tn=(0,Y.Ay)(\"div\",{name:\"MuiDayPicker\",slot:\"LoadingContainer\",overridesResolver:(e,t)=>t.loadingContainer})({display:\"flex\",justifyContent:\"center\",alignItems:\"center\",minHeight:240}),On=(0,Y.Ay)(e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:o,transKey:a}=e,i=(0,A.A)(e,En),l=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"]},An,t)})(e);if(r)return(0,D.jsx)(\"div\",{className:V(l.root,n),children:t});const s={exit:yn.slideExit,enterActive:yn.slideEnterActive,enter:yn[`slideEnter-${o}`],exitActive:yn[`slideExitActiveLeft-${o}`]};return(0,D.jsx)(bn,{className:V(l.root,n),childFactory:e=>y.cloneElement(e,{classNames:s}),role:\"presentation\",children:(0,D.jsx)(vn,(0,v.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:s},i,{children:t}),a)})},{name:\"MuiDayPicker\",slot:\"SlideTransition\",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Dn=(0,Y.Ay)(\"div\",{name:\"MuiDayPicker\",slot:\"MonthContainer\",overridesResolver:(e,t)=>t.monthContainer})({overflow:\"hidden\"}),Rn=(0,Y.Ay)(\"div\",{name:\"MuiDayPicker\",slot:\"WeekContainer\",overridesResolver:(e,t)=>t.weekContainer})({margin:\"2px 0\",display:\"flex\",justifyContent:\"center\"});function Nn(e){const t=I(),n=P(),r=w({props:e,name:\"MuiDayPicker\"}),o=(e=>{const{classes:t}=e;return(0,G.A)({header:[\"header\"],weekDayLabel:[\"weekDayLabel\"],loadingContainer:[\"loadingContainer\"],slideTransition:[\"slideTransition\"],monthContainer:[\"monthContainer\"],weekContainer:[\"weekContainer\"]},_n,t)})(r),{onFocusedDayChange:a,className:i,currentMonth:l,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:p,loading:f,onSelectedDaysChange:g,onMonthSwitchingAnimationEnd:h,readOnly:m,reduceAnimations:A,renderDay:E,renderLoading:b=()=>(0,D.jsx)(\"span\",{children:\"...\"}),showDaysOutsideCurrentMonth:_,slideDirection:C,TransitionProps:S,disablePast:T,disableFuture:O,minDate:R,maxDate:N,shouldDisableDate:L,dayOfWeekFormatter:M=Cn,hasFocus:x,onFocusedViewChange:B,gridLabelId:F}=r,j=Vt({shouldDisableDate:L,minDate:R,maxDate:N,disablePast:T,disableFuture:O}),[H,U]=y.useState(()=>d||t),Y=y.useCallback(e=>{B&&B(e)},[B]),z=y.useCallback((e,t=\"finish\")=>{m||g(e,t)},[g,m]),q=y.useCallback(e=>{j(e)||(a(e),U(e),Y(!0))},[j,a,Y]),W=(0,vt.A)();function Q(e,t){switch(e.key){case\"ArrowUp\":q(n.addDays(t,-7)),e.preventDefault();break;case\"ArrowDown\":q(n.addDays(t,7)),e.preventDefault();break;case\"ArrowLeft\":{const r=n.addDays(t,\"ltr\"===W.direction?-1:1),o=\"ltr\"===W.direction?n.getPreviousMonth(t):n.getNextMonth(t),a=k({utils:n,date:r,minDate:\"ltr\"===W.direction?n.startOfMonth(o):r,maxDate:\"ltr\"===W.direction?r:n.endOfMonth(o),isDateDisabled:j});q(a||r),e.preventDefault();break}case\"ArrowRight\":{const r=n.addDays(t,\"ltr\"===W.direction?1:-1),o=\"ltr\"===W.direction?n.getNextMonth(t):n.getPreviousMonth(t),a=k({utils:n,date:r,minDate:\"ltr\"===W.direction?r:n.startOfMonth(o),maxDate:\"ltr\"===W.direction?n.endOfMonth(o):r,isDateDisabled:j});q(a||r),e.preventDefault();break}case\"Home\":q(n.startOfWeek(t)),e.preventDefault();break;case\"End\":q(n.endOfWeek(t)),e.preventDefault();break;case\"PageUp\":q(n.getNextMonth(t)),e.preventDefault();break;case\"PageDown\":q(n.getPreviousMonth(t)),e.preventDefault()}}function K(e,t){q(t)}function $(e,t){x&&n.isSameDay(H,t)&&Y(!1)}const X=n.getMonth(l),J=s.filter(e=>!!e).map(e=>n.startOfDay(e)),Z=X,ee=y.useMemo(()=>y.createRef(),[Z]),te=n.startOfWeek(t),ne=y.useMemo(()=>{const e=n.startOfMonth(l),t=n.endOfMonth(l);return j(H)||n.isAfterDay(H,t)||n.isBeforeDay(H,e)?k({utils:n,date:H,minDate:e,maxDate:t,disablePast:T,disableFuture:O,isDateDisabled:j}):H},[l,O,T,H,j,n]);return(0,D.jsxs)(\"div\",{role:\"grid\",\"aria-labelledby\":F,children:[(0,D.jsx)(wn,{role:\"row\",className:o.header,children:n.getWeekdays().map((e,t)=>{var r;return(0,D.jsx)(Sn,{variant:\"caption\",role:\"columnheader\",\"aria-label\":n.format(n.addDays(te,t),\"weekday\"),className:o.weekDayLabel,children:null!=(r=null==M?void 0:M(e))?r:e},e+t.toString())})}),f?(0,D.jsx)(Tn,{className:o.loadingContainer,children:b()}):(0,D.jsx)(On,(0,v.A)({transKey:Z,onExited:h,reduceAnimations:A,slideDirection:C,className:V(i,o.slideTransition)},S,{nodeRef:ee,children:(0,D.jsx)(Dn,{ref:ee,role:\"rowgroup\",className:o.monthContainer,children:n.getWeekArray(l).map(e=>(0,D.jsx)(Rn,{role:\"row\",className:o.weekContainer,children:e.map(e=>{const r=null!==ne&&n.isSameDay(e,ne),o=J.some(t=>n.isSameDay(t,e)),a=n.isSameDay(e,t),i={key:null==e?void 0:e.toString(),day:e,isAnimating:p,disabled:u||j(e),autoFocus:x&&r,today:a,outsideCurrentMonth:n.getMonth(e)!==X,selected:o,disableHighlightToday:c,showDaysOutsideCurrentMonth:_,onKeyDown:Q,onFocus:K,onBlur:$,onDaySelect:z,tabIndex:r?0:-1,role:\"gridcell\",\"aria-selected\":o};return a&&(i[\"aria-current\"]=\"date\"),E?E(e,J,i):(0,y.createElement)(cn,(0,v.A)({},i,{key:i.key}))})},`week-${e[0]}`))})}))]})}const Ln=e=>(0,te.Ay)(\"MuiPickersCalendarHeader\",e),Pn=((0,ne.A)(\"MuiPickersCalendarHeader\",[\"root\",\"labelContainer\",\"label\",\"switchViewButton\",\"switchViewIcon\"]),(0,Y.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",alignItems:\"center\",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),Mn=(0,Y.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"LabelContainer\",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,v.A)({display:\"flex\",maxHeight:30,overflow:\"hidden\",alignItems:\"center\",cursor:\"pointer\",marginRight:\"auto\"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),xn=(0,Y.Ay)(\"div\",{name:\"MuiPickersCalendarHeader\",slot:\"Label\",overridesResolver:(e,t)=>t.label})({marginRight:6}),In=(0,Y.Ay)(W.A,{name:\"MuiPickersCalendarHeader\",slot:\"SwitchViewButton\",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:\"auto\"}),kn=(0,Y.Ay)(K,{name:\"MuiPickersCalendarHeader\",slot:\"SwitchViewIcon\",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>(0,v.A)({willChange:\"transform\",transition:e.transitions.create(\"transform\"),transform:\"rotate(0deg)\"},\"year\"===t.openView&&{transform:\"rotate(180deg)\"}));function Bn(e){const t=w({props:e,name:\"MuiPickersCalendarHeader\"}),{components:n={},componentsProps:r={},currentMonth:o,disabled:a,disableFuture:i,disablePast:l,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:p,onViewChange:f,openView:g,reduceAnimations:h,rightArrowButtonText:m,views:A,labelId:E}=t,b=x(),_=null!=u?u:b.previousMonth,C=null!=m?m:b.nextMonth,S=null!=s?s:b.calendarViewSwitchingButtonAriaLabel,T=P(),O=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],labelContainer:[\"labelContainer\"],label:[\"label\"],switchViewButton:[\"switchViewButton\"],switchViewIcon:[\"switchViewIcon\"]},Ln,t)})(t),R=r.switchViewButton||{},N=function(e,{disableFuture:t,maxDate:n}){const r=P();return y.useMemo(()=>{const o=r.date(),a=r.startOfMonth(t&&r.isBefore(o,n)?o:n);return!r.isAfter(a,e)},[t,n,e,r])}(o,{disableFuture:i,maxDate:c}),L=function(e,{disablePast:t,minDate:n}){const r=P();return y.useMemo(()=>{const o=r.date(),a=r.startOfMonth(t&&r.isAfter(o,n)?o:n);return!r.isBefore(a,e)},[t,n,e,r])}(o,{disablePast:l,minDate:d});if(1===A.length&&\"year\"===A[0])return null;const M=t;return(0,D.jsxs)(Pn,{ownerState:M,className:O.root,children:[(0,D.jsxs)(Mn,{role:\"presentation\",onClick:()=>{if(1!==A.length&&f&&!a)if(2===A.length)f(A.find(e=>e!==g)||A[0]);else{const e=0!==A.indexOf(g)?0:1;f(A[e])}},ownerState:M,\"aria-live\":\"polite\",className:O.labelContainer,children:[(0,D.jsx)(Xt,{reduceAnimations:h,transKey:T.format(o,\"monthAndYear\"),children:(0,D.jsx)(xn,{id:E,ownerState:M,className:O.label,children:T.format(o,\"monthAndYear\")})}),A.length>1&&!a&&(0,D.jsx)(In,(0,v.A)({size:\"small\",as:n.SwitchViewButton,\"aria-label\":S(g),className:O.switchViewButton},R,{children:(0,D.jsx)(kn,{as:n.SwitchViewIcon,ownerState:M,className:O.switchViewIcon})}))]}),(0,D.jsx)(Wt.A,{in:\"day\"===g,children:(0,D.jsx)(Ct,{leftArrowButtonText:_,rightArrowButtonText:C,components:n,componentsProps:r,onLeftClick:()=>p(T.getPreviousMonth(o),\"right\"),onRightClick:()=>p(T.getNextMonth(o),\"left\"),isLeftDisabled:L,isRightDisabled:N})})]})}var Fn=n(2501),jn=n(28466);function Hn(e){return(0,te.Ay)(\"PrivatePickersYear\",e)}const Un=(0,ne.A)(\"PrivatePickersYear\",[\"root\",\"modeDesktop\",\"modeMobile\",\"yearButton\",\"selected\",\"disabled\"]),Yn=[\"autoFocus\",\"className\",\"children\",\"disabled\",\"onClick\",\"onKeyDown\",\"value\",\"tabIndex\",\"onFocus\",\"onBlur\"],Gn=(0,Y.Ay)(\"div\",{name:\"PrivatePickersYear\",slot:\"Root\",overridesResolver:(e,t)=>[t.root,{[`&.${Un.modeDesktop}`]:t.modeDesktop},{[`&.${Un.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>(0,v.A)({flexBasis:\"33.3%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},\"desktop\"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:\"25%\"})),zn=(0,Y.Ay)(\"button\",{name:\"PrivatePickersYear\",slot:\"Button\",overridesResolver:(e,t)=>[t.button,{[`&.${Un.disabled}`]:t.disabled},{[`&.${Un.selected}`]:t.selected}]})(({theme:e})=>(0,v.A)({color:\"unset\",backgroundColor:\"transparent\",border:0,outline:0},e.typography.subtitle1,{margin:\"8px 0\",height:36,width:72,borderRadius:18,cursor:\"pointer\",\"&:focus, &:hover\":{backgroundColor:(0,Pt.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Un.disabled}`]:{color:e.palette.text.secondary},[`&.${Un.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,\"&:focus, &:hover\":{backgroundColor:e.palette.primary.dark}}})),Vn=()=>{},qn=y.forwardRef(function(e,t){const{autoFocus:n,className:r,children:o,disabled:a,onClick:i,onKeyDown:l,value:s,tabIndex:u,onFocus:c=Vn,onBlur:d=Vn}=e,p=(0,A.A)(e,Yn),f=y.useRef(null),g=(0,he.A)(f,t),h=y.useContext(me),m=(0,v.A)({},e,{wrapperVariant:h}),E=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e,a={root:[\"root\",t&&`mode${(0,jn.A)(t)}`],yearButton:[\"yearButton\",n&&\"disabled\",r&&\"selected\"]};return(0,G.A)(a,Hn,o)})(m);return y.useEffect(()=>{n&&f.current.focus()},[n]),(0,D.jsx)(Gn,{className:V(E.root,r),ownerState:m,children:(0,D.jsx)(zn,(0,v.A)({ref:g,disabled:a,type:\"button\",tabIndex:a?-1:u,onClick:e=>i(e,s),onKeyDown:e=>l(e,s),onFocus:e=>c(e,s),onBlur:e=>d(e,s),className:E.yearButton,ownerState:m},p,{children:o}))})});function Wn(e){return(0,te.Ay)(\"MuiYearPicker\",e)}(0,ne.A)(\"MuiYearPicker\",[\"root\"]);const Qn=(0,Y.Ay)(\"div\",{name:\"MuiYearPicker\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",overflowY:\"auto\",height:\"100%\",padding:\"0 4px\",maxHeight:\"304px\"}),Kn=y.forwardRef(function(e,t){const n=I(),r=(0,vt.A)(),o=P(),a=function(e){const t=P(),n=M(),r=w({props:e,name:\"MuiYearPicker\"});return(0,v.A)({disablePast:!1,disableFuture:!1},r,{minDate:B(t,r.minDate,n.minDate),maxDate:B(t,r.maxDate,n.maxDate)})}(e),{autoFocus:i,className:l,date:s,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:f,onChange:g,readOnly:h,shouldDisableYear:m,disableHighlightToday:A,onYearFocus:E,hasFocus:b,onFocusedViewChange:_}=a,C=a,S=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"]},Wn,t)})(C),T=y.useMemo(()=>null!=s?s:o.startOfYear(n),[n,o,s]),O=y.useMemo(()=>null!=s?o.getYear(s):A?null:o.getYear(n),[n,s,o,A]),R=y.useContext(me),N=y.useRef(null),[L,x]=y.useState(()=>O||o.getYear(n)),[k,F]=(0,Fn.A)({name:\"YearPicker\",state:\"hasFocus\",controlled:b,default:i}),j=y.useCallback(e=>{F(e),_&&_(e)},[F,_]),H=y.useCallback(e=>!!(d&&o.isBeforeYear(e,n)||c&&o.isAfterYear(e,n)||f&&o.isBeforeYear(e,f)||p&&o.isAfterYear(e,p)||m&&m(e)),[c,d,p,f,n,m,o]),U=(e,t,n=\"finish\")=>{if(h)return;const r=o.setYear(T,t);g(r,n)},Y=y.useCallback(e=>{H(o.setYear(T,e))||(x(e),j(!0),null==E||E(e))},[H,o,T,j,E]);y.useEffect(()=>{x(e=>null!==O&&e!==O?O:e)},[O]);const z=\"desktop\"===R?4:3,q=y.useCallback((e,t)=>{switch(e.key){case\"ArrowUp\":Y(t-z),e.preventDefault();break;case\"ArrowDown\":Y(t+z),e.preventDefault();break;case\"ArrowLeft\":Y(t+(\"ltr\"===r.direction?-1:1)),e.preventDefault();break;case\"ArrowRight\":Y(t+(\"ltr\"===r.direction?1:-1)),e.preventDefault()}},[Y,r.direction,z]),W=y.useCallback((e,t)=>{Y(t)},[Y]),Q=y.useCallback((e,t)=>{L===t&&j(!1)},[L,j]),K=o.getYear(n),$=y.useRef(null),X=(0,he.A)(t,$);return y.useEffect(()=>{if(i||null===$.current)return;const e=$.current.querySelector('[tabindex=\"0\"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=$.current.clientHeight,o=$.current.scrollTop,a=n+t;t>r||n<o||($.current.scrollTop=a-r/2-t/2)},[i]),(0,D.jsx)(Qn,{ref:X,className:V(S.root,l),ownerState:C,children:o.getYearRange(f,p).map(e=>{const t=o.getYear(e),n=t===O;return(0,D.jsx)(qn,{selected:n,value:t,onClick:U,onKeyDown:q,autoFocus:k&&t===L,ref:n?N:void 0,disabled:u||H(e),tabIndex:t===L?0:-1,onFocus:W,onBlur:Q,\"aria-current\":K===t?\"date\":void 0,children:o.format(e,\"year\")},o.format(e,\"year\"))})})}),$n=\"undefined\"!=typeof navigator&&/(android)/i.test(navigator.userAgent),Xn=e=>(0,te.Ay)(\"MuiCalendarPicker\",e),Jn=((0,ne.A)(\"MuiCalendarPicker\",[\"root\",\"viewTransitionContainer\"]),[\"autoFocus\",\"onViewChange\",\"date\",\"disableFuture\",\"disablePast\",\"defaultCalendarMonth\",\"onChange\",\"onYearChange\",\"onMonthChange\",\"reduceAnimations\",\"shouldDisableDate\",\"shouldDisableMonth\",\"shouldDisableYear\",\"view\",\"views\",\"openTo\",\"className\",\"disabled\",\"readOnly\",\"minDate\",\"maxDate\",\"disableHighlightToday\",\"focusedView\",\"onFocusedViewChange\",\"classes\"]),Zn=(0,Y.Ay)(Ot,{name:\"MuiCalendarPicker\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"flex\",flexDirection:\"column\"}),er=(0,Y.Ay)(Xt,{name:\"MuiCalendarPicker\",slot:\"ViewTransitionContainer\",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),tr=y.forwardRef(function(e,t){const n=P(),r=(0,Ge.A)(),o=function(e){const t=P(),n=M(),r=w({props:e,name:\"MuiCalendarPicker\"});return(0,v.A)({loading:!1,disablePast:!1,disableFuture:!1,openTo:\"day\",views:[\"year\",\"day\"],reduceAnimations:$n,renderLoading:()=>(0,D.jsx)(\"span\",{children:\"...\"})},r,{minDate:B(t,r.minDate,n.minDate),maxDate:B(t,r.maxDate,n.maxDate)})}(e),{autoFocus:a,onViewChange:i,date:l,disableFuture:s,disablePast:u,defaultCalendarMonth:c,onChange:d,onYearChange:p,onMonthChange:f,reduceAnimations:g,shouldDisableDate:h,shouldDisableMonth:m,shouldDisableYear:E,view:b,views:_,openTo:C,className:S,disabled:T,readOnly:O,minDate:R,maxDate:N,disableHighlightToday:L,focusedView:x,onFocusedViewChange:F}=o,j=(0,A.A)(o,Jn),{openView:H,setOpenView:U,openNext:Y}=Ye({view:b,views:_,openTo:C,onChange:d,onViewChange:i}),{calendarState:z,changeFocusedDay:q,changeMonth:W,handleChangeMonth:Q,isDateDisabled:K,onMonthSwitchingAnimationEnd:$}=(({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:i,onMonthChange:l,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=I(),p=P(),f=y.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case\"changeMonth\":return(0,v.A)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case\"finishMonthSwitchingAnimation\":return(0,v.A)({},r,{isMonthSwitchingAnimating:!1});case\"changeFocusedDay\":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return(0,v.A)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?\"left\":\"right\"})}default:throw new Error(\"missing support\")}})(Boolean(s),o,p)).current,[g,h]=y.useReducer(f,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:p.startOfMonth(null!=(c=null!=e?e:t)?c:d),slideDirection:\"left\"}),m=y.useCallback(e=>{h((0,v.A)({type:\"changeMonth\"},e)),l&&l(e.newMonth)},[l]),A=y.useCallback(e=>{const t=null!=e?e:d;p.isSameMonth(t,g.currentMonth)||m({newMonth:p.startOfMonth(t),direction:p.isAfterDay(t,g.currentMonth)?\"left\":\"right\"})},[g.currentMonth,m,d,p]),E=Vt({shouldDisableDate:u,minDate:i,maxDate:a,disableFuture:n,disablePast:r}),b=y.useCallback(()=>{h({type:\"finishMonthSwitchingAnimation\"})},[]),_=y.useCallback((e,t)=>{E(e)||h({type:\"changeFocusedDay\",focusedDay:e,withoutMonthSwitchingAnimation:t})},[E]);return{calendarState:g,changeMonth:A,changeFocusedDay:_,isDateDisabled:E,onMonthSwitchingAnimationEnd:b,handleChangeMonth:m}})({date:l,defaultCalendarMonth:c,reduceAnimations:g,onMonthChange:f,minDate:R,maxDate:N,shouldDisableDate:h,disablePast:u,disableFuture:s}),X=y.useCallback((e,t)=>{const r=n.startOfMonth(e),o=n.endOfMonth(e),a=K(e)?k({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(N,o)?o:N,disablePast:u,disableFuture:s,isDateDisabled:K}):e;a?(d(a,t),null==f||f(r)):(Y(),W(r)),q(a,!0)},[q,s,u,K,N,R,d,f,W,Y,n]),J=y.useCallback((e,t)=>{const r=n.startOfYear(e),o=n.endOfYear(e),a=K(e)?k({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(N,o)?o:N,disablePast:u,disableFuture:s,isDateDisabled:K}):e;a?(d(a,t),null==p||p(a)):(Y(),W(r)),q(a,!0)},[q,s,u,K,N,R,d,p,Y,n,W]),Z=y.useCallback((e,t)=>d(l&&e?n.mergeDateAndTime(e,l):e,t),[n,l,d]);y.useEffect(()=>{l&&W(l)},[l]);const ee=o,te=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],viewTransitionContainer:[\"viewTransitionContainer\"]},Xn,t)})(ee),ne={disablePast:u,disableFuture:s,maxDate:N,minDate:R},re=T&&l||R,oe=T&&l||N,ae={disableHighlightToday:L,readOnly:O,disabled:T},ie=`${r}-grid-label`,[le,se]=(0,Ue.A)({name:\"DayPicker\",state:\"focusedView\",controlled:x,default:a?H:null}),ue=null!==le,ce=(0,be.A)(e=>t=>{F?F(e)(t):se(t?e:t=>t===e?null:t)}),de=y.useRef(H);return y.useEffect(()=>{de.current!==H&&(de.current=H,ce(H)(!0))},[H,ce]),(0,D.jsxs)(Zn,{ref:t,className:V(te.root,S),ownerState:ee,children:[(0,D.jsx)(Bn,(0,v.A)({},j,{views:_,openView:H,currentMonth:z.currentMonth,onViewChange:U,onMonthChange:(e,t)=>Q({newMonth:e,direction:t}),minDate:re,maxDate:oe,disabled:T,disablePast:u,disableFuture:s,reduceAnimations:g,labelId:ie})),(0,D.jsx)(er,{reduceAnimations:g,className:te.viewTransitionContainer,transKey:H,ownerState:ee,children:(0,D.jsxs)(\"div\",{children:[\"year\"===H&&(0,D.jsx)(Kn,(0,v.A)({},j,ne,ae,{autoFocus:a,date:l,onChange:J,shouldDisableYear:E,hasFocus:ue,onFocusedViewChange:ce(\"year\")})),\"month\"===H&&(0,D.jsx)(Gt,(0,v.A)({},ne,ae,{autoFocus:a,hasFocus:ue,className:S,date:l,onChange:X,shouldDisableMonth:m,onFocusedViewChange:ce(\"month\")})),\"day\"===H&&(0,D.jsx)(Nn,(0,v.A)({},j,z,ne,ae,{autoFocus:a,onMonthSwitchingAnimationEnd:$,onFocusedDayChange:q,reduceAnimations:g,selectedDays:[l],onSelectedDaysChange:Z,shouldDisableDate:h,hasFocus:ue,onFocusedViewChange:ce(\"day\"),gridLabelId:ie}))]})})]})});var nr=n(25239);const rr=(e,t,n)=>{const r=e.date(t);return null===t?\"\":e.isValid(r)?e.formatByString(r,n):\"\"},or=\"_\",ar=\"2019-11-21T22:30:00.000\",ir=\"2019-01-01T09:00:00.000\";function lr(e,t,n,r){if(!e)return!1;const o=r.formatByString(r.date(ir),t).replace(n,or),a=r.formatByString(r.date(ar),t).replace(n,\"_\"),i=a===o&&e===a;return!i&&r.lib,i}const sr=({acceptRegex:e=/[\\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:o,inputProps:a,label:i,mask:l,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:p,validationError:f})=>{const g=P(),h=g.getFormatHelperText(o),{shouldUseMaskedInput:m,maskToUse:A}=y.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:\"\"};const t=function(e,t,n,r){if(e)return e;const o=r.formatByString(r.date(ir),t).replace(n,or);return o===r.formatByString(r.date(ar),t).replace(n,\"_\")?o:\"\"}(l,o,e,g);return{shouldUseMaskedInput:lr(t,o,e,g),maskToUse:t}},[e,n,o,l,g]),E=y.useMemo(()=>m&&A?((e,t)=>n=>{let r=0;return n.split(\"\").map((o,a)=>{if(t.lastIndex=0,r>e.length-1)return\"\";const i=e[r],l=e[r+1],s=t.test(o)?o:\"\",u=i===or?s:i+s;return r+=u.length,a===n.length-1&&l&&l!==or?u?u+l:\"\":u}).join(\"\")})(A,e):e=>e,[e,A,m]),b=null===u?null:g.date(u),[_,C]=y.useState(b),[w,S]=y.useState(rr(g,u,o)),T=y.useRef(),O=y.useRef(g.locale),D=y.useRef(o);y.useEffect(()=>{const e=u!==T.current,t=g.locale!==O.current,n=o!==D.current;if(T.current=u,O.current=g.locale,D.current=o,!e&&!t&&!n)return;const r=null===u?null:g.date(u),a=null===u||g.isValid(r);let i=null===_&&null===r;if(null!==_&&null!==r){const e=g.isEqual(_,r);if(e)i=!0;else{const t=Math.abs(g.getDiff(_,r));i=0===t?e:t<1e3}}if(!t&&!n&&(!a||i))return;const l=rr(g,u,o);C(r),S(l)},[g,u,o,_]);const R=e=>{const t=\"\"===e||e===l?\"\":e;S(t);const n=null===t?null:g.parse(t,o);r&&!g.isValid(n)||(C(n),s(n,t||void 0))},N=(e=>{const[,t]=(0,y.useReducer)(e=>e+1,0),n=(0,y.useRef)(null),{replace:r,append:o}=e,a=r?r(e.format(e.value)):e.format(e.value),i=(0,y.useRef)(!1);return(0,y.useLayoutEffect)(()=>{if(null==n.current)return;let[i,l,s,u,c]=n.current;n.current=null;const d=u&&c,p=i.slice(l.selectionStart).search(e.accept||/\\d/g),f=-1!==p?p:0,g=t=>(t.match(e.accept||/\\d/g)||[]).join(\"\"),h=g(i.substr(0,l.selectionStart)),m=e=>{let t=0,n=0;for(let r=0;r!==h.length;++r){let o=e.indexOf(h[r],t)+1,a=g(e).indexOf(h[r],n)+1;a-n>1&&(o=t,a=n),n=Math.max(a,n),t=Math.max(t,o)}return t};if(!0===e.mask&&s&&!c){let e=m(i);const t=g(i.substr(e))[0];e=i.indexOf(t,e),i=`${i.substr(0,e)}${i.substr(e+1)}`}let v=e.format(i);null==o||l.selectionStart!==i.length||c||(s?v=o(v):\"\"===g(v.slice(-1))&&(v=v.slice(0,-1)));const A=r?r(v):v;return a===A?t():e.onChange(A),()=>{let t=m(v);if(null!=e.mask&&(s||u&&!d))for(;v[t]&&\"\"===g(v[t]);)t+=1;l.selectionStart=l.selectionEnd=t+(d?1+f:0)}}),(0,y.useEffect)(()=>{const e=e=>{\"Delete\"===e.code&&(i.current=!0)},t=e=>{\"Delete\"===e.code&&(i.current=!1)};return document.addEventListener(\"keydown\",e),document.addEventListener(\"keyup\",t),()=>{document.removeEventListener(\"keydown\",e),document.removeEventListener(\"keyup\",t)}},[]),{value:null!=n.current?n.current[0]:a,onChange:r=>{const o=r.target.value;n.current=[o,r.target,o.length>a.length,i.current,a===e.format(o)],t()}}})({value:w,onChange:R,format:d||E}),L=m?N:{value:w,onChange:e=>{R(e.currentTarget.value)}};return(0,v.A)({label:i,disabled:t,error:f,inputProps:(0,v.A)({},L,{disabled:t,placeholder:h,readOnly:c,type:m?\"tel\":\"text\"},a)},p)},ur=[\"className\",\"components\",\"disableOpenPicker\",\"getOpenDialogAriaText\",\"InputAdornmentProps\",\"InputProps\",\"inputRef\",\"openPicker\",\"OpenPickerButtonProps\",\"renderInput\"],cr=y.forwardRef(function(e,t){const{className:n,components:r={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:i,InputProps:l,inputRef:s,openPicker:u,OpenPickerButtonProps:c,renderInput:d}=e,p=(0,A.A)(e,ur),f=x(),g=null!=a?a:f.openDatePickerDialogue,h=P(),m=sr(p),y=(null==i?void 0:i.position)||\"end\",E=r.OpenPickerIcon||J;return d((0,v.A)({ref:t,inputRef:s,className:n},m,{InputProps:(0,v.A)({},l,{[`${y}Adornment`]:o?void 0:(0,D.jsx)(nr.A,(0,v.A)({position:y},i,{children:(0,D.jsx)(W.A,(0,v.A)({edge:y,disabled:p.disabled||p.readOnly,\"aria-label\":g(p.rawValue,h)},c,{onClick:u,children:(0,D.jsx)(E,{})}))}))})}))});function dr(){return\"undefined\"==typeof window?\"portrait\":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?\"landscape\":\"portrait\":window.orientation&&90===Math.abs(Number(window.orientation))?\"landscape\":\"portrait\"}function pr(e){return(0,te.Ay)(\"MuiCalendarOrClockPicker\",e)}(0,ne.A)(\"MuiCalendarOrClockPicker\",[\"root\",\"mobileKeyboardInputView\"]);const fr=[\"autoFocus\",\"className\",\"parsedValue\",\"DateInputProps\",\"isMobileKeyboardViewOpen\",\"onDateChange\",\"onViewChange\",\"openTo\",\"orientation\",\"showToolbar\",\"toggleMobileKeyboardView\",\"ToolbarComponent\",\"toolbarFormat\",\"toolbarPlaceholder\",\"toolbarTitle\",\"views\",\"dateRangeIcon\",\"timeIcon\",\"hideTabs\",\"classes\"],gr=(0,Y.Ay)(\"div\",{name:\"MuiCalendarOrClockPicker\",slot:\"MobileKeyboardInputView\",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:\"16px 24px\"}),hr=(0,Y.Ay)(\"div\",{name:\"MuiCalendarOrClockPicker\",slot:\"Root\",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,v.A)({display:\"flex\",flexDirection:\"column\"},e.isLandscape&&{flexDirection:\"row\"})),mr={fullWidth:!0},vr=e=>\"year\"===e||\"month\"===e||\"day\"===e,Ar=e=>\"hours\"===e||\"minutes\"===e||\"seconds\"===e;function yr(e){var t,n;const r=w({props:e,name:\"MuiCalendarOrClockPicker\"}),{autoFocus:o,parsedValue:a,DateInputProps:i,isMobileKeyboardViewOpen:l,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:p,toggleMobileKeyboardView:f,ToolbarComponent:g=()=>null,toolbarFormat:h,toolbarPlaceholder:m,toolbarTitle:E,views:b,dateRangeIcon:_,timeIcon:C,hideTabs:S}=r,T=(0,A.A)(r,fr),O=null==(t=T.components)?void 0:t.Tabs,R=((e,t)=>{const[n,r]=y.useState(dr);return(0,ze.A)(()=>{const e=()=>{r(dr())};return window.addEventListener(\"orientationchange\",e),()=>{window.removeEventListener(\"orientationchange\",e)}},[]),!Me(e,[\"hours\",\"minutes\",\"seconds\"])&&\"landscape\"===(t||n)})(b,d),N=y.useContext(me),L=(e=>{const{classes:t}=e;return(0,G.A)({root:[\"root\"],mobileKeyboardInputView:[\"mobileKeyboardInputView\"]},pr,t)})(r),P=null!=p?p:\"desktop\"!==N,M=!S&&\"undefined\"!=typeof window&&window.innerHeight>667,x=y.useCallback((e,t)=>{s(e,N,t)},[s,N]),I=y.useCallback(e=>{l&&f(),u&&u(e)},[l,u,f]),{openView:k,setOpenView:B,handleChangeAndOpenNext:F}=Ye({view:void 0,views:b,openTo:c,onChange:x,onViewChange:I}),{focusedView:j,setFocusedView:H}=(({autoFocus:e,openView:t})=>{const[n,r]=y.useState(e?t:null);return{focusedView:n,setFocusedView:y.useCallback(e=>t=>{r(t?e:t=>e===t?null:t)},[])}})({autoFocus:o,openView:k});return(0,D.jsxs)(hr,{ownerState:{isLandscape:R},className:L.root,children:[P&&(0,D.jsx)(g,(0,v.A)({},T,{views:b,isLandscape:R,parsedValue:a,onChange:x,setOpenView:B,openView:k,toolbarTitle:E,toolbarFormat:h,toolbarPlaceholder:m,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:f})),M&&!!O&&(0,D.jsx)(O,(0,v.A)({dateRangeIcon:_,timeIcon:C,view:k,onChange:B},null==(n=T.componentsProps)?void 0:n.tabs)),(0,D.jsx)(Ot,{children:l?(0,D.jsx)(gr,{className:L.mobileKeyboardInputView,children:(0,D.jsx)(cr,(0,v.A)({},i,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:mr}))}):(0,D.jsxs)(y.Fragment,{children:[vr(k)&&(0,D.jsx)(tr,(0,v.A)({autoFocus:o,date:a,onViewChange:B,onChange:F,view:k,views:b.filter(vr),focusedView:j,onFocusedViewChange:H},T)),Ar(k)&&(0,D.jsx)(Nt,(0,v.A)({},T,{autoFocus:o,date:a,view:k,views:b.filter(Ar),onChange:F,onViewChange:B,showViewSwitcher:\"desktop\"===N}))]})})]})}const Er=[\"onChange\",\"PopperProps\",\"PaperProps\",\"ToolbarComponent\",\"TransitionComponent\",\"value\",\"components\",\"componentsProps\"],br=y.forwardRef(function(e,t){const n=function(e,t){var n;const r=P(),o=M(),a=w({props:e,name:t}),i=null!=(n=a.views)?n:[\"year\",\"day\"];return(0,v.A)({openTo:\"day\",disableFuture:!1,disablePast:!1},((e,t)=>F(e)?{inputFormat:t.formats.year}:j(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(i,r),a,{views:i,minDate:B(r,a.minDate,o.minDate),maxDate:B(r,a.maxDate,o.maxDate)})}(e,\"MuiDesktopDatePicker\"),r=null!==(e=>function(e,t,n){const{value:r,onError:o}=e,a=L(),i=y.useRef(null),l=t({adapter:a,value:r,props:e});return y.useEffect(()=>{o&&!n(l,i.current)&&o(l,r),i.current=l},[n,o,i,l,r]),l}(e,zt,qt))(n),{pickerProps:o,inputProps:a,wrapperProps:i}=((e,t)=>{const{onAccept:n,onChange:r,value:o,closeOnSelect:a}=e,i=P(),{isOpen:l,setIsOpen:s}=(({open:e,onOpen:t,onClose:n})=>{const r=y.useRef(\"boolean\"==typeof e).current,[o,a]=y.useState(!1);return y.useEffect(()=>{if(r){if(\"boolean\"!=typeof e)throw new Error(\"You must not mix controlling and uncontrolled mode for `open` prop\");a(e)}},[r,e]),{isOpen:o,setIsOpen:y.useCallback(e=>{r||a(e),e&&t&&t(),!e&&n&&n()},[r,t,n])}})(e),u=y.useMemo(()=>t.parseInput(i,o),[t,i,o]),[c,d]=y.useState(u),[p,f]=y.useState(()=>({committed:u,draft:u,resetFallback:u})),g=y.useCallback(e=>{f(t=>{switch(e.action){case\"setAll\":case\"acceptAndClose\":return{draft:e.value,committed:e.value,resetFallback:e.value};case\"setCommitted\":return(0,v.A)({},t,{draft:e.value,committed:e.value});case\"setDraft\":return(0,v.A)({},t,{draft:e.value});default:return t}}),(e.forceOnChangeCall||!e.skipOnChangeCall&&!t.areValuesEqual(i,p.committed,e.value))&&r(e.value),\"acceptAndClose\"===e.action&&(s(!1),n&&!t.areValuesEqual(i,p.resetFallback,e.value)&&n(e.value))},[n,r,s,p,i,t]);y.useEffect(()=>{i.isValid(u)&&d(u)},[i,u]),y.useEffect(()=>{l&&g({action:\"setAll\",value:u,skipOnChangeCall:!0})},[l]),t.areValuesEqual(i,p.committed,u)||g({action:\"setCommitted\",value:u,skipOnChangeCall:!0});const h=y.useMemo(()=>({open:l,onClear:()=>{g({value:t.emptyValue,action:\"acceptAndClose\",forceOnChangeCall:!t.areValuesEqual(i,o,t.emptyValue)})},onAccept:()=>{g({value:p.draft,action:\"acceptAndClose\",forceOnChangeCall:!t.areValuesEqual(i,o,u)})},onDismiss:()=>{g({value:p.committed,action:\"acceptAndClose\"})},onCancel:()=>{g({value:p.resetFallback,action:\"acceptAndClose\"})},onSetToday:()=>{g({value:t.getTodayValue(i),action:\"acceptAndClose\"})}}),[g,l,i,p,t,o,u]),[m,A]=y.useState(!1),E=y.useMemo(()=>({parsedValue:p.draft,isMobileKeyboardViewOpen:m,toggleMobileKeyboardView:()=>A(!m),onDateChange:(e,t,n=\"partial\")=>{switch(n){case\"shallow\":return g({action:\"setDraft\",value:e,skipOnChangeCall:!0});case\"partial\":return g({action:\"setDraft\",value:e});case\"finish\":return g((null!=a?a:\"desktop\"===t)?{value:e,action:\"acceptAndClose\"}:{value:e,action:\"setCommitted\"});default:throw new Error(\"MUI: Invalid selectionState passed to `onDateChange`\")}}}),[g,m,p.draft,a]),b=y.useCallback((e,n)=>{const o=t.valueReducer?t.valueReducer(i,c,e):e;r(o,n)},[r,t,c,i]),_={pickerProps:E,inputProps:y.useMemo(()=>({onChange:b,open:l,rawValue:o,openPicker:()=>s(!0)}),[b,l,o,s]),wrapperProps:h};return y.useDebugValue(_,()=>({MuiPickerState:{dateState:p,other:_}})),_})(n,H),{PopperProps:l,PaperProps:s,ToolbarComponent:u=ge,TransitionComponent:c,components:d,componentsProps:p}=n,f=(0,A.A)(n,Er),g=(0,v.A)({},a,f,{components:d,componentsProps:p,ref:t,validationError:r});return(0,D.jsx)(He,(0,v.A)({},i,{DateInputProps:g,KeyboardDateInputComponent:cr,PopperProps:l,PaperProps:s,TransitionComponent:c,components:d,componentsProps:p,children:(0,D.jsx)(yr,(0,v.A)({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:u,DateInputProps:g,components:d,componentsProps:p},f))}))});var _r=n(70380),Cr=n(17630),wr={\"& .MuiPaper-root\":{backgroundColor:Cr.w.palette.secondary.dark,borderRadius:Cr.w.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",marginTop:1,\"& .MuiCalendarOrClockPicker-root\":{\".css-epd502\":{\"& .MuiCalendarPicker-root\":{\"& .css-nk89i7-MuiPickersCalendarHeader-root\":{marginTop:Cr.w.spacing(1),\"& .css-dplwbx-MuiPickersCalendarHeader-label\":{fontWeight:600,fontSize:14},\"& .MuiButtonBase-root\":{color:Cr.w.palette.text.secondary}}}},\"& .MuiDayPicker-header\":{\"& .css-1yltjx2-MuiTypography-root-MuiDayPicker-weekDayLabel\":{fontWeight:600,fontSize:14,width:31,margin:\"0 5px\"}},\"& .MuiDayPicker-slideTransition\":{\"& .css-6t5f1e-MuiDayPicker-monthContainer\":{\"& .css-ghi3gg-MuiDayPicker-weekContainer\":{margin:\"2px 0\",\"&:lastChild\":{margin:0},\"& .css-o4z7jz-MuiButtonBase-root-MuiPickersDay-root:not(.Mui-selected)\":{background:Cr.w.palette.success.main,color:Cr.w.palette.text.secondary,border:0,\"&:hover\":{backgroundColor:Cr.w.palette.primary.dark}},\"& .MuiPickersDay-root.MuiPickersDay-dayWithMargin\":{width:31,height:36,margin:\"0 5px\",fontWeight:600,fontSize:14,borderRadius:2,color:Cr.w.palette.text.secondary,\"&(.selected)\":{backgroundColor:Cr.w.palette.primary.main,color:Cr.w.palette.background.default},\"&[aria-current='date']\":{border:\"none !important\"},\"&:not(.Mui-selected)\":{border:\"none !important\"}}}},\"& .MuiPickersDay-root.Mui-selected\":{backgroundColor:\" \".concat(Cr.w.palette.primary.main,\" !important\"),color:\"\".concat(Cr.w.palette.background.default,\" !important\"),border:\"none\"}},\"& .MuiCalendarPicker-viewTransitionContainer\":{\"& .PrivatePickersYear-yearButton.Mui-selected\":{backgroundColor:Cr.w.palette.primary.dark,color:\"\".concat(Cr.w.palette.background.default,\" !important\")},\"& .PrivatePickersYear-yearButton\":{\"&[aria-current='date']\":{background:Cr.w.palette.success.main,color:\"\".concat(Cr.w.palette.secondary.main,\" !important\")}}}}},\"& .Mui-disabled\":{opacity:\"0.5\",cursor:\"not-allowed\"},\" & .MuiDayPicker-slideTransition\":{minHeight:\"193px\"}},Sr={\"& .MuiPaper-root\":{backgroundColor:Cr.w.palette.secondary.dark,borderRadius:Cr.w.shape.borderRadius,boxShadow:\"0px 2px 8px rgba(0, 0, 0, 0.15)\",marginTop:1,\"& .MuiCalendarOrClockPicker-root\":{\".css-epd502\":{\"& .MuiCalendarPicker-root\":{\"& .css-nk89i7-MuiPickersCalendarHeader-root\":{marginTop:Cr.w.spacing(1),\"& .css-dplwbx-MuiPickersCalendarHeader-label\":{fontWeight:600,fontSize:14},\"& .MuiButtonBase-root\":{color:Cr.w.palette.text.secondary}}}},\"& .MuiDayPicker-header\":{\"& .css-1yltjx2-MuiTypography-root-MuiDayPicker-weekDayLabel\":{fontWeight:600,fontSize:14,width:31,margin:\"0 5px\"}},\"& .MuiDayPicker-slideTransition\":{\"& .css-6t5f1e-MuiDayPicker-monthContainer\":{\"& .css-ghi3gg-MuiDayPicker-weekContainer\":{margin:\"2px 0\",\"&:lastChild\":{margin:0},\"& .css-o4z7jz-MuiButtonBase-root-MuiPickersDay-root:not(.Mui-selected)\":{background:Cr.w.palette.success.main,color:Cr.w.palette.text.secondary,border:0,\"&:hover\":{backgroundColor:Cr.w.palette.primary.dark}},\"& .MuiPickersDay-root.MuiPickersDay-dayWithMargin\":{width:31,height:36,margin:\"0 5px\",fontWeight:600,fontSize:14,borderRadius:2,color:Cr.w.palette.text.secondary,\"&(.selected)\":{backgroundColor:Cr.w.palette.primary.main,color:Cr.w.palette.background.default},\"&[aria-current='date']\":{border:\"none !important\"},\"&:not(.Mui-selected)\":{border:\"none !important\"}}}},\"& .MuiPickersDay-root.Mui-selected\":{backgroundColor:\" \".concat(Cr.w.palette.primary.main,\" !important\"),color:\"\".concat(Cr.w.palette.background.default,\" !important\"),border:\"none\"}},\"& .MuiCalendarPicker-viewTransitionContainer\":{\"& .PrivatePickersYear-yearButton.Mui-selected\":{backgroundColor:Cr.w.palette.primary.dark,color:\"\".concat(Cr.w.palette.background.default,\" !important\")},\"& .PrivatePickersYear-yearButton\":{\"&[aria-current='date']\":{background:Cr.w.palette.success.main,color:\"\".concat(Cr.w.palette.secondary.main,\" !important\")}}}},\"& .MuiPickersCalendarHeader-labelContainer:after\":{content:'\"YEAR\"',color:\"rgb(250, 251, 252)\",backgroundColor:\"rgb(250, 251, 252)\",position:\"relative\",left:\"-74px\"},\"& .MuiPickersCalendarHeader-switchViewButton\":{left:\"-45px\",zIndex:\"100\"}},\"& .Mui-disabled\":{opacity:\"0.5\",cursor:\"not-allowed\"},\" & .MuiDayPicker-slideTransition\":{minHeight:\"193px\"}},Tr=n(28161),Or=(0,Y.Ay)(Tr.A)(function(e){var t=e.theme;return{\"& .MuiInputBase-root.MuiOutlinedInput-root\":{border:\"1px solid \".concat(t.palette.grey[100]),height:40,\"&.Mui-focused\":{border:\"1px solid \".concat(t.palette.grey[100])},\"&:hover\":{border:\"1px solid \".concat(t.palette.grey[100])},\"& input\":{font:\"normal normal 400 14px/20px  NotoSans-Regular\",color:t.palette.grey[500]},\"& fieldset\":{border:0},\"& svg\":{color:t.palette.grey[500],fontSize:20}}}});function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(null,arguments)}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Nr=function(){return E().createElement(r.A,null)},Lr=function(e){var t=e.value,n=e.handleChangeDatePicker,r=e.isTimePicker,a=e.defaultValue,l=e.minDate,s=e.maxDate,u=e.disabled,c=e.customFormat,d=void 0===c?\"\":c,p=e.calenderType,f=e.openToType,g=e.restrictManualEntry,h=void 0!==g&&g,v=e.defaultCalendarMonth,A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Rr(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}((0,y.useState)(null!=f?f:\"day\"),2),b=A[0],_=A[1];return r?E().createElement(o.A,{type:\"time\",value:t,defaultValue:a,disabled:u,InputLabelProps:{shrink:!0},inputProps:{step:300},onChange:function(e){return n(e.target.value)}}):E().createElement(Or,null,E().createElement(N,{dateAdapter:m},E().createElement(br,{views:null!=p?p:[\"month\",\"year\",\"day\"],inputFormat:null!=d&&d.length?d:\"DD/MM/YYYY\",components:{OpenPickerIcon:Nr},PopperProps:p?{sx:Sr}:{sx:wr},openTo:null!=f?f:\"day\",value:t,onViewChange:_,onChange:function(e){if(null!=e&&e.$d){var t=(0,_r.Yq)(null==e?void 0:e.$d,\"MM/DD/YYYY\");\"day\"===b&&n(\"\".concat(t))}else n(\"\")},renderInput:function(e){return E().createElement(o.A,Dr({value:t},e))},minDate:l,maxDate:s,disabled:u,defaultCalendarMonth:v?i()(v,\"MM/DD/YYYY\"):void 0,onChangeRaw:function(e){return e.preventDefault()},inputProps:{readOnly:h}})))};const Pr=E().memo(Lr)},76914:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>h});var r=n(86990),o=n(81970),a=n.n(o),i=n(34195),l=n(47767),s=n(21270),u=n(11848),c=n(28161),d=n(14073),p=(0,u.Ay)(c.A)({width:\"100vw\",height:\"calc(100vh - 84px)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\"}),f=(0,u.Ay)(c.A)({width:\"350px\",height:\"auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\"}),g=(0,u.Ay)(d.A)({fontWeight:700,fontSize:20,color:\"#CF3537\",lineHeight:\"28px\",textAlign:\"center\"});(0,u.Ay)(d.A)({fontWeight:400,fontSize:14,color:\"#14151C\",lineHeight:\"22px\",textAlign:\"center\"});const h=function(){var e=(0,l.Zp)(),t=(0,i.Bd)().t;return a().createElement(p,{className:\"OuterBox\",\"data-testid\":\"OuterBox\"},a().createElement(f,{\"data-testid\":\"InnerBox\"},a().createElement(\"img\",{alt:\"page not found\",width:100,src:s.A.internal_server_problem}),a().createElement(g,null,t(\"PAGE_DOES_NOT_EXIST\")),a().createElement(r.A,{variant:\"contained\",color:\"success\",fullWidth:!0,sx:{my:\"1rem\"},onClick:function(){return e(-1)}},\"Back\")))}},77004:(e,t,n)=>{\"use strict\";var r=n(4704);Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(t,\"checkIndexBounds\",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,\"computeIndex\",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,\"constant\",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,\"getDisplaySameSlide\",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,\"mod\",{enumerable:!0,get:function(){return s.default}});var o=r(n(48011)),a=r(n(76613)),i=r(n(94866)),l=r(n(29097)),s=r(n(91460))},77060:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(71083),o=n(81970);function a(e){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=a(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==a(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const c=function(){var e,t,n=(e=(0,o.useState)(0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),a=n[0],i=n[1];return{progress:a,uploadFile:function(e,t){return new Promise(function(n,o){try{n(r.A.put(e,t,{headers:{\"Content-Type\":t.type},onUploadProgress:function(e){var t=Math.round(100*e.loaded/e.total);i(t)}}))}catch(e){o(new Error(e))}})},uploadFileWithHeaders:function(e,t){return new Promise(function(n,r){try{n(e(l(l({},t),{},{onUploadProgress:function(e){var t=Math.round(100*e.loaded/e.total);i(t)}})))}catch(e){r(new Error(e))}})}}}},77075:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"mt\",{months:\"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru\".split(\"_\"),monthsShort:\"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ\".split(\"_\"),weekdays:\"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt\".split(\"_\"),weekdaysShort:\"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib\".split(\"_\"),weekdaysMin:\"Ħa_Tn_Tl_Er_Ħa_Ġi_Si\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Illum fil-]LT\",nextDay:\"[Għada fil-]LT\",nextWeek:\"dddd [fil-]LT\",lastDay:\"[Il-bieraħ fil-]LT\",lastWeek:\"dddd [li għadda] [fil-]LT\",sameElse:\"L\"},relativeTime:{future:\"f’ %s\",past:\"%s ilu\",s:\"ftit sekondi\",ss:\"%d sekondi\",m:\"minuta\",mm:\"%d minuti\",h:\"siegħa\",hh:\"%d siegħat\",d:\"ġurnata\",dd:\"%d ġranet\",M:\"xahar\",MM:\"%d xhur\",y:\"sena\",yy:\"%d sni\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},77097:(e,t,n)=>{\"use strict\";e.exports=n.p+\"39a4cc84fc7081eff764.svg\"},77217:(e,t,n)=>{\"use strict\";n.d(t,{Al:()=>d,Fj:()=>p,Rm:()=>u,a_:()=>c,ou:()=>s}),n(28706),n(48598),n(62062),n(26099),n(16034),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(13075),i=n(7501),l=function(e){var t;return{\"country-code\":null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}},s=function(e,t,n,s){var u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c={};return c.domain=n,\"salesHierarchy\"===e?c.endPoint=o.p.SAVESALEHIERARCHY:\"liquidationData\"===e?(c.domain=n.replace(\"v1\",\"v2\"),c.endPoint=function(e){return\"\".concat(o.p.GET_ATTENDANCE_CONFIG_DATA,\"?\",\"moduleName=\".concat(e?i.r3.PAY_FOR_PERFORMANCE:i.r3.LIQUIDATION),\"&\").concat(null==Object?void 0:Object.values(e?i.bW:i.KC).map(function(e){return\"keys=\".concat(e)}).join(\"&\"))}(u)):(c.endPoint=o.p.GETHQHIERARCHYDATA,c.payLoad={sort:\"asc\"}),c.customHeaders=l(t),c.triggerLoader=s,new Promise(function(e,t){var n;null===(n=r.N.get(c))||void 0===n||n.then(function(t){if((0,a.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})},u=function(e,t,n,a){var i,s={};return s.domain=t,s.domain=t.replace(\"v1\",\"v2\"),s.endPoint=o.p.GET_ATTENDANCE_CONFIG_DATA,s.customHeaders=l(e),s.customHeaders[\"user-id\"]=null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,s.payLoad=a,s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(s))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},c=function(e,t,n,a){var i={};return i.domain=n,i.endPoint=o.p.GET_HQDATA_BY_HQ_HIERACHY_SEQUENCE+\"?sequence=\".concat(e),i.customHeaders=l(t),i.customHeaders.sequence=e,i.triggerLoader=a,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},d=function(e,t,n){var a,i={};return i.domain=t,i.endPoint=o.p.GET_LIQUIDATION_CATEGORY,i.customHeaders=l(e),i.customHeaders[\"bu-id\"]=null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_id,i.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},p=function(e,t,n){var a,i={};return i.domain=t,i.endPoint=o.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_code),i.customHeaders=l(e),i.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})}},77240:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(67750),a=n(655),i=/\"/g,l=r(\"\".replace);e.exports=function(e,t,n,r){var s=a(o(e)),u=\"<\"+t;return\"\"!==n&&(u+=\" \"+n+'=\"'+l(a(r),i,\"&quot;\")+'\"'),u+\">\"+s+\"</\"+t+\">\"}},77284:(e,t,n)=>{\"use strict\";n.d(t,{$F:()=>g,DE:()=>d,H6:()=>v,Ir:()=>u,N8:()=>p,P6:()=>h,Qn:()=>c,_5:()=>A,bu:()=>f,cL:()=>y,cN:()=>E,nF:()=>m}),n(52675),n(89463),n(28706),n(23792),n(48598),n(62062),n(94170),n(59904),n(84185),n(40875),n(10287),n(26099),n(16034),n(3362),n(27495),n(25440),n(62953);var r=n(95692),o=n(8085),a=n(13075);function i(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var i=r&&r.prototype instanceof u?r:u,c=Object.create(i.prototype);return l(c,\"_invoke\",function(n,r,o){var a,i,l,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,i=0,l=e,p.n=n,s}};function f(n,r){for(i=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(i=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,i=0))}if(o||n>1)return s;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),i=c,l=g;(t=i<2?e:l)||!d;){a||(i?i<3?(i>1&&(p.n=-1),f(i,l)):p.n=l:p.v=l);try{if(u=2,a){if(i||(o=\"next\"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),i=1);a=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),c}var s={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),f=d.prototype=u.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return c.prototype=d,l(f,\"constructor\",d),l(d,\"constructor\",c),c.displayName=\"GeneratorFunction\",l(d,o,\"GeneratorFunction\"),l(f),l(f,o,\"Generator\"),l(f,r,function(){return this}),l(f,\"toString\",function(){return\"[object Generator]\"}),(i=function(){return{w:a,m:g}})()}function l(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}l=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){l(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},l(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var u=function(){var e,t=(e=i().m(function e(t,n,l,s){var u,c,d,p,f;return i().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r.N.post({domain:n,endPoint:o.p.RETAILER_BGP_DOWNLOAD_TEMPLATE,payLoad:s,customHeaders:{\"country-code\":null==t||null===(u=t.selectedCountry)||void 0===u?void 0:u.countryCode,\"bu-id\":null==t||null===(c=t.selectedBusinessUnit)||void 0===c?void 0:c.bu_id,\"user-id\":null==t||null===(d=t.UserDetails)||void 0===d?void 0:d.user_id,Authorization:\"Bearer \".concat(null==t?void 0:t.AccessToken),\"Content-Type\":\"application/json\"},triggerLoader:l});case 1:if(p=e.v,(0,a.mN)(p)){e.n=2;break}throw new Error((null==p||null===(f=p.data)||void 0===f?void 0:f.errorMessage)||(null==p?void 0:p.error)||\"DOWNLOAD_TEMPLATE_FAILED\");case 2:return e.a(2,null==p?void 0:p.data)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,l,\"next\",e)}function l(e){s(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r,o){return t.apply(this,arguments)}}(),c=function(e,t,n,i){var l,s,u,c={};return c.domain=t,c.endPoint=o.p.GET_BGP_HQ_LIST,c.payLoad=i,c.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null!==(s=null==i?void 0:i.userId)&&void 0!==s?s:null==e||null===(u=e.UserDetails)||void 0===u?void 0:u.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(c))||void 0===n||n.then(function(t){if(!(0,a.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},d=function(e,t,n){var i,l={};return l.domain=t,l.endPoint=o.p.GET_BGP_YEARS_LIST,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(l))||void 0===n||n.then(function(t){if(!(0,a.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},p=function(e,t,n,i){var l,s,u,c,d,p,f={};return f.domain=t,f.endPoint=o.p.GET_RETAILERS_BGP_LIST,f.payLoad=i,f.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null!==(s=null==i?void 0:i.userId)&&void 0!==s?s:null==e||null===(u=e.UserDetails)||void 0===u?void 0:u.user_id,\"role-type-name\":null==e||null===(c=e.selectedBusinessUnit)||void 0===c||null===(c=c.userRoleControls)||void 0===c?void 0:c.role_name,\"role-id\":null!==(d=null==i?void 0:i.roleId)&&void 0!==d?d:null==e||null===(p=e.selectedBusinessUnit)||void 0===p||null===(p=p.userRoleControls)||void 0===p?void 0:p.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},f.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(f))||void 0===n||n.then(function(t){if(!(0,a.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},f=function(e,t,n,i){var l,s,u,c={};return c.domain=t,c.endPoint=o.p.GET_BRANDS_LIST.replace(\"retailer_bgp_id\",i),c.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,\"role-id\":null==e||null===(u=e.selectedBusinessUnit)||void 0===u||null===(u=u.userRoleControls)||void 0===u?void 0:u.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(c))||void 0===n||n.then(function(t){if(!(0,a.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},g=function(e,t,n){var i,l,s,u,c,d={};return d.domain=t,d.endPoint=o.p.GET_BRANDS,d.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},null!=e&&null!==(s=e.selectedBusinessUnit)&&void 0!==s&&s.portfolio_enable&&null!=e&&null!==(u=e.selectedBusinessUnit)&&void 0!==u&&u.portfolio_code&&(d.endPoint=\"\".concat(d.endPoint,\"?portfolio_code=\").concat(null==e||null===(c=e.selectedBusinessUnit)||void 0===c?void 0:c.portfolio_code)),d.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(d))||void 0===n||n.then(function(t){if(!(0,a.mN)(t))throw new Error(t.error);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},h=function(e,t,n,i){var l,s={};return s.domain=t,s.endPoint=\"\".concat(o.p.GET_CONFIGURATION_VALUES,\"?moduleName=\").concat(i.moduleName,\"&\").concat(Object.values(i.keys).map(function(e){return\"keys=\".concat(e)}).join(\"&\")),s.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken,\" \")},s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(s))||void 0===n||n.then(function(t){if((0,a.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})},m=function(e,t,n,i){var l,s={};return s.domain=t,s.endPoint=\"\".concat(o.p.GET_RETAILER_SHOPNAMES,\"?\").concat(Object.values(i.id).map(function(e){return\"id=\".concat(e)}).join(\"&\")),s.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken,\" \")},s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(s))||void 0===n||n.then(function(t){if((0,a.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})},v=function(e,t,n,i){var l,s,u={};return u.domain=t,u.endPoint=o.p.POST_ADD_BRAND_LIST,u.payLoad=i,u.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(u))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},A=function(e,t,n,i){var l,s,u={};return u.domain=t,u.endPoint=o.p.POST_ADD_BRAND_LIST,u.payLoad=i,u.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.put(u))||void 0===n||n.then(function(t){var n;if(!(0,a.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})},y=function(e,t,n,i){var l,s,u={};return u.payLoad=i,u.endPoint=o.p.GET_TMHQ_BGP_LIST,u.domain=t,u.customHeaders={\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"country-code\":null==e||null===(s=e.selectedCountry)||void 0===s?void 0:s.countryCode},u.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.post(u))||void 0===n||n.then(function(t){var n,r=(0,a.mN)(t);if(null!=t&&t.data)return e(null==t?void 0:t.data);if(!r)throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){return t(new Error(e))})})},E=function(e,t,n,i){var l,s,u,c,d={};return d.customHeaders={Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"role-type-name\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.role_name,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,\"country-code\":null==e||null===(u=e.selectedCountry)||void 0===u?void 0:u.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(c=e.selectedBusinessUnit)||void 0===c||null===(c=c.userRoleControls)||void 0===c?void 0:c.roleId},d.payLoad=i,d.triggerLoader=n,d.endPoint=o.p.GET_DOWNLOAD_BGP_REPORT,d.domain=t,new Promise(function(e,t){var n;null===(n=r.N.post(d))||void 0===n||n.then(function(t){var n,r=(0,a.mN)(t);if(null!=t&&t.data)return e(null==t?void 0:t.data);if(!r)throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){return t(new Error(e))})})}},77329:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"gl\",{months:\"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro\".split(\"_\"),monthsShort:\"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"domingo_luns_martes_mércores_xoves_venres_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mér._xov._ven._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mé_xo_ve_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY H:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY H:mm\"},calendar:{sameDay:function(){return\"[hoxe \"+(1!==this.hours()?\"ás\":\"á\")+\"] LT\"},nextDay:function(){return\"[mañá \"+(1!==this.hours()?\"ás\":\"á\")+\"] LT\"},nextWeek:function(){return\"dddd [\"+(1!==this.hours()?\"ás\":\"a\")+\"] LT\"},lastDay:function(){return\"[onte \"+(1!==this.hours()?\"á\":\"a\")+\"] LT\"},lastWeek:function(){return\"[o] dddd [pasado \"+(1!==this.hours()?\"ás\":\"a\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:function(e){return 0===e.indexOf(\"un\")?\"n\"+e:\"en \"+e},past:\"hai %s\",s:\"uns segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"unha hora\",hh:\"%d horas\",d:\"un día\",dd:\"%d días\",M:\"un mes\",MM:\"%d meses\",y:\"un ano\",yy:\"%d anos\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},77347:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(69565),a=n(48773),i=n(6980),l=n(25397),s=n(56969),u=n(39297),c=n(35917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=l(e),t=s(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return i(!o(a.f,e,t),e[t])}},77351:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2116930ed7bf67e4a37a.eot\"},77366:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e596e099609b5f1a784f.woff\"},77387:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},77556:(e,t,n)=>{var r=n(51873),o=n(34932),a=n(56449),i=n(44394),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if(\"string\"==typeof t)return t;if(a(t))return o(t,e)+\"\";if(i(t))return s?s.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-1/0?\"-0\":n}},77576:(e,t,n)=>{\"use strict\";n.d(t,{h:()=>s,j:()=>l});var r=n(81970),o=n.n(r),a=n(63545),i=(0,r.createContext)(void 0),l=function(e){var t,n=e.children,r=(0,a.D0)(),l=!(0,a.RL)(),s={showReKYCfeature:null!==(t=r.retailerKYC)&&void 0!==t&&t,isLoading:l};return console.log(\"Feature Flags:\",r),o().createElement(i.Provider,{value:s},n)},s=function(){var e=(0,r.useContext)(i);if(void 0===e)throw new Error(\"useFeatureFlags must be used within FeatureFlagsProvider\");return e}},77623:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(75659),l=n(11317),s=n(6497),u=n(11848),c=n(39770),d=n(25669),p=n(25571),f=n(74848);const g=[\"disableUnderline\",\"components\",\"componentsProps\",\"fullWidth\",\"inputComponent\",\"multiline\",\"slotProps\",\"slots\",\"type\"],h=(0,u.Ay)(s.Sh,{shouldForwardProp:e=>(0,c.A)(e)||\"classes\"===e,name:\"MuiInput\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,s.WC)(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=\"light\"===e.palette.mode?\"rgba(0, 0, 0, 0.42)\":\"rgba(255, 255, 255, 0.7)\";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,o.A)({position:\"relative\"},t.formControl&&{\"label + &\":{marginTop:16}},!t.disableUnderline&&{\"&::after\":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'\"\"',position:\"absolute\",right:0,transform:\"scaleX(0)\",transition:e.transitions.create(\"transform\",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:\"none\"},[`&.${p.A.focused}:after`]:{transform:\"scaleX(1) translateX(0)\"},[`&.${p.A.error}`]:{\"&::before, &::after\":{borderBottomColor:(e.vars||e).palette.error.main}},\"&::before\":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'\"\\\\00a0\"',position:\"absolute\",right:0,transition:e.transitions.create(\"border-bottom-color\",{duration:e.transitions.duration.shorter}),pointerEvents:\"none\"},[`&:hover:not(.${p.A.disabled}, .${p.A.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,\"@media (hover: none)\":{borderBottom:`1px solid ${n}`}},[`&.${p.A.disabled}:before`]:{borderBottomStyle:\"dotted\"}})}),m=(0,u.Ay)(s.f3,{name:\"MuiInput\",slot:\"Input\",overridesResolver:s.Oj})({}),v=a.forwardRef(function(e,t){var n,a,u,c;const v=(0,d.b)({props:e,name:\"MuiInput\"}),{disableUnderline:A,components:y={},componentsProps:E,fullWidth:b=!1,inputComponent:_=\"input\",multiline:C=!1,slotProps:w,slots:S={},type:T=\"text\"}=v,O=(0,r.A)(v,g),D=(e=>{const{classes:t,disableUnderline:n}=e,r={root:[\"root\",!n&&\"underline\"],input:[\"input\"]},a=(0,i.A)(r,p.B,t);return(0,o.A)({},t,a)})(v),R={root:{ownerState:{disableUnderline:A}}},N=(null!=w?w:E)?(0,l.A)(null!=w?w:E,R):R,L=null!=(n=null!=(a=S.root)?a:y.Root)?n:h,P=null!=(u=null!=(c=S.input)?c:y.Input)?u:m;return(0,f.jsx)(s.Ay,(0,o.A)({slots:{root:L,input:P},slotProps:N,fullWidth:b,inputComponent:_,multiline:C,ref:t,type:T},O,{classes:D}))});v.muiName=\"Input\";const A=v},77629:(e,t,n)=>{\"use strict\";var r=n(96395),o=n(44576),a=n(39433),i=\"__core-js_shared__\",l=e.exports=o[i]||a(i,{});(l.versions||(l.versions=[])).push({version:\"3.44.0\",mode:r?\"pure\":\"global\",copyright:\"© 2014-2025 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE\",source:\"https://github.com/zloirock/core-js\"})},77659:e=>{\"use strict\";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");r.appendChild(n)}},77736:(e,t,n)=>{var r=n(73738).default,o=n(89045);e.exports=function(e){var t=o(e,\"string\");return\"symbol\"==r(t)?t:t+\"\"},e.exports.__esModule=!0,e.exports.default=e.exports},77740:(e,t,n)=>{\"use strict\";var r=n(39297),o=n(35031),a=n(77347),i=n(24913);e.exports=function(e,t,n){for(var l=o(t),s=i.f,u=a.f,c=0;c<l.length;c++){var d=l[c];r(e,d)||n&&r(n,d)||s(e,d,u(t,d))}}},77782:e=>{\"use strict\";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},77797:(e,t,n)=>{var r=n(44394);e.exports=function(e){if(\"string\"==typeof e||r(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}},77811:e=>{\"use strict\";e.exports=\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof DataView},77853:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[e+\" Tage\",e+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM:[e+\" Monate\",e+\" Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[e+\" Jahre\",e+\" Jahren\"]};return t?o[n][0]:o[n][1]}e.defineLocale(\"de\",{months:\"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag\".split(\"_\"),weekdaysShort:\"So._Mo._Di._Mi._Do._Fr._Sa.\".split(\"_\"),weekdaysMin:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd, D. MMMM YYYY HH:mm\"},calendar:{sameDay:\"[heute um] LT [Uhr]\",sameElse:\"L\",nextDay:\"[morgen um] LT [Uhr]\",nextWeek:\"dddd [um] LT [Uhr]\",lastDay:\"[gestern um] LT [Uhr]\",lastWeek:\"[letzten] dddd [um] LT [Uhr]\"},relativeTime:{future:\"in %s\",past:\"vor %s\",s:\"ein paar Sekunden\",ss:\"%d Sekunden\",m:t,mm:\"%d Minuten\",h:t,hh:\"%d Stunden\",d:t,dd:t,w:t,ww:\"%d Wochen\",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},78194:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},78208:(e,t,n)=>{\"use strict\";n.d(t,{C:()=>s,j:()=>l}),n(28706),n(74423),n(23792),n(26099),n(3362),n(21699),n(62953);var r=n(95692),o=n(8085),a=n(99478),i=n(13075),l=function(e,t,n){var l=[a.Rk.PREFERRED_DISTRIBUTOR,a.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS,a.Rk.HEAD_QUARTER_CONFIGURATION,a.Rk.ADID_CONFIGURATION,a.Rk.EMPLOYEE_ID_CHAR_LIMIT,a.Rk.RETAILERS_ENABLE_BGP],s=[].concat(l),u=[].concat(l),c=n.moduleName,d=n.keys,p=n.apiName,f={};return f.domain=e.baseurl,f.endPoint=\"\".concat(o.p.SAVE_ATTENDANCE_TYPES,\"?moduleName=\").concat(c,\"&\").concat((0,i.EY)(\"keys\",d)),f.triggerLoader=t,f.customHeaders={Authorization:null==e?void 0:e.Authorization},s.includes(p)&&(f.customHeaders[\"bu-id\"]=null==e?void 0:e.bu_id),u.includes(p)&&(f.customHeaders[\"country-code\"]=null==e?void 0:e.country_code),new Promise(function(e,t){var n;null===(n=r.N.get(f))||void 0===n||n.then(function(t){var n;if(!(0,i.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e.message))})})},s=function(e,t,n,r){var a,l={};return l.domain=t,l.endPoint=\"\".concat(o.p.SAVE_ATTENDANCE_TYPES,\"?moduleName=\").concat(r.moduleName,\"&\").concat((0,i.EY)(\"keys\",r.keys)),l.triggerLoader=n,l.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==r?void 0:r.roleId,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},(0,i.AT)(\"get\",l,!0)}},78227:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(25745),a=n(39297),i=n(33392),l=n(4495),s=n(7040),u=r.Symbol,c=o(\"wks\"),d=s?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return a(c,e)||(c[e]=l&&a(u,e)?u[e]:d(\"Symbol.\"+e)),c[e]}},78350:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(70259),a=n(79306),i=n(48981),l=n(26198),s=n(1469);r({target:\"Array\",proto:!0},{flatMap:function(e){var t,n=i(this),r=l(n);return a(e),(t=s(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},78353:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(81970),o=n(98400),a=n(67991);t.default=function(e,t,n,i,l,s){var u=r.useContext(o.BeansContext),c=u.context,d=(u.userComponentFactory,r.useCallback(function(){var e=l.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),c.destroyBean(e),l.current=void 0}},[]));r.useEffect(function(){var r=null!=e,o=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(!r||!o||t&&null==n)d();else{var a=e.compDetails;if(l.current){var i=l.current,u=!(null==i.refresh||0!=e.force)&&i.refresh(a.params);if(!0===u||void 0===u)return;d()}var c=a.newAgStackInstance();if(c){var p=c.resolveNow(null,function(e){return e});if(p){var f=p.getGui();f&&((t?n:s.current).appendChild(f),l.current=p)}}}},[e,t,i]),a.useEffectOnce(function(){return d})}},78381:(e,t,n)=>{var r=n(90326);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&\"function\"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if(\"function\"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&\"function\"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError(\"Can't convert object to primitive value\")}},78474:function(e,t,n){!function(e){\"use strict\";var t={0:\"-чү\",1:\"-чи\",2:\"-чи\",3:\"-чү\",4:\"-чү\",5:\"-чи\",6:\"-чы\",7:\"-чи\",8:\"-чи\",9:\"-чу\",10:\"-чу\",20:\"-чы\",30:\"-чу\",40:\"-чы\",50:\"-чү\",60:\"-чы\",70:\"-чи\",80:\"-чи\",90:\"-чу\",100:\"-чү\"};e.defineLocale(\"ky\",{months:\"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь\".split(\"_\"),monthsShort:\"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек\".split(\"_\"),weekdays:\"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби\".split(\"_\"),weekdaysShort:\"Жек_Дүй_Шей_Шар_Бей_Жум_Ише\".split(\"_\"),weekdaysMin:\"Жк_Дй_Шй_Шр_Бй_Жм_Иш\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Бүгүн саат] LT\",nextDay:\"[Эртең саат] LT\",nextWeek:\"dddd [саат] LT\",lastDay:\"[Кечээ саат] LT\",lastWeek:\"[Өткөн аптанын] dddd [күнү] [саат] LT\",sameElse:\"L\"},relativeTime:{future:\"%s ичинде\",past:\"%s мурун\",s:\"бирнече секунд\",ss:\"%d секунд\",m:\"бир мүнөт\",mm:\"%d мүнөт\",h:\"бир саат\",hh:\"%d саат\",d:\"бир күн\",dd:\"%d күн\",M:\"бир ай\",MM:\"%d ай\",y:\"бир жыл\",yy:\"%d жыл\"},dayOfMonthOrdinalParse:/\\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},78564:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>l});var r=n(71354),o=n.n(r),a=n(76314),i=n.n(a)()(o());i.push([e.id,\"/*!\\n * Quill Editor v1.3.7\\n * https://quilljs.com/\\n * Copyright (c) 2014, Jason Chen\\n * Copyright (c) 2013, salesforce.com\\n */\\n.ql-container {\\n  box-sizing: border-box;\\n  font-family: Helvetica, Arial, sans-serif;\\n  font-size: 13px;\\n  height: 100%;\\n  margin: 0px;\\n  position: relative;\\n}\\n.ql-container.ql-disabled .ql-tooltip {\\n  visibility: hidden;\\n}\\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\\n  pointer-events: none;\\n}\\n.ql-clipboard {\\n  left: -100000px;\\n  height: 1px;\\n  overflow-y: hidden;\\n  position: absolute;\\n  top: 50%;\\n}\\n.ql-clipboard p {\\n  margin: 0;\\n  padding: 0;\\n}\\n.ql-editor {\\n  box-sizing: border-box;\\n  line-height: 1.42;\\n  height: 100%;\\n  outline: none;\\n  overflow-y: auto;\\n  padding: 12px 15px;\\n  tab-size: 4;\\n  -moz-tab-size: 4;\\n  text-align: left;\\n  white-space: pre-wrap;\\n  word-wrap: break-word;\\n}\\n.ql-editor > * {\\n  cursor: text;\\n}\\n.ql-editor p,\\n.ql-editor ol,\\n.ql-editor ul,\\n.ql-editor pre,\\n.ql-editor blockquote,\\n.ql-editor h1,\\n.ql-editor h2,\\n.ql-editor h3,\\n.ql-editor h4,\\n.ql-editor h5,\\n.ql-editor h6 {\\n  margin: 0;\\n  padding: 0;\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol,\\n.ql-editor ul {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol > li,\\n.ql-editor ul > li {\\n  list-style-type: none;\\n}\\n.ql-editor ul > li::before {\\n  content: '\\\\2022';\\n}\\n.ql-editor ul[data-checked=true],\\n.ql-editor ul[data-checked=false] {\\n  pointer-events: none;\\n}\\n.ql-editor ul[data-checked=true] > li *,\\n.ql-editor ul[data-checked=false] > li * {\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before,\\n.ql-editor ul[data-checked=false] > li::before {\\n  color: #777;\\n  cursor: pointer;\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before {\\n  content: '\\\\2611';\\n}\\n.ql-editor ul[data-checked=false] > li::before {\\n  content: '\\\\2610';\\n}\\n.ql-editor li::before {\\n  display: inline-block;\\n  white-space: nowrap;\\n  width: 1.2em;\\n}\\n.ql-editor li:not(.ql-direction-rtl)::before {\\n  margin-left: -1.5em;\\n  margin-right: 0.3em;\\n  text-align: right;\\n}\\n.ql-editor li.ql-direction-rtl::before {\\n  margin-left: 0.3em;\\n  margin-right: -1.5em;\\n}\\n.ql-editor ol li:not(.ql-direction-rtl),\\n.ql-editor ul li:not(.ql-direction-rtl) {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol li.ql-direction-rtl,\\n.ql-editor ul li.ql-direction-rtl {\\n  padding-right: 1.5em;\\n}\\n.ql-editor ol li {\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n  counter-increment: list-0;\\n}\\n.ql-editor ol li:before {\\n  content: counter(list-0, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-increment: list-1;\\n}\\n.ql-editor ol li.ql-indent-1:before {\\n  content: counter(list-1, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-increment: list-2;\\n}\\n.ql-editor ol li.ql-indent-2:before {\\n  content: counter(list-2, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-increment: list-3;\\n}\\n.ql-editor ol li.ql-indent-3:before {\\n  content: counter(list-3, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-increment: list-4;\\n}\\n.ql-editor ol li.ql-indent-4:before {\\n  content: counter(list-4, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-reset: list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-increment: list-5;\\n}\\n.ql-editor ol li.ql-indent-5:before {\\n  content: counter(list-5, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-reset: list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-increment: list-6;\\n}\\n.ql-editor ol li.ql-indent-6:before {\\n  content: counter(list-6, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-reset: list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-increment: list-7;\\n}\\n.ql-editor ol li.ql-indent-7:before {\\n  content: counter(list-7, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-reset: list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-increment: list-8;\\n}\\n.ql-editor ol li.ql-indent-8:before {\\n  content: counter(list-8, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-reset: list-9;\\n}\\n.ql-editor ol li.ql-indent-9 {\\n  counter-increment: list-9;\\n}\\n.ql-editor ol li.ql-indent-9:before {\\n  content: counter(list-9, decimal) '. ';\\n}\\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 3em;\\n}\\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 4.5em;\\n}\\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 3em;\\n}\\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 4.5em;\\n}\\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 6em;\\n}\\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 7.5em;\\n}\\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 6em;\\n}\\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 7.5em;\\n}\\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 9em;\\n}\\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 10.5em;\\n}\\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 9em;\\n}\\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 10.5em;\\n}\\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 12em;\\n}\\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 13.5em;\\n}\\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 12em;\\n}\\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 13.5em;\\n}\\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 15em;\\n}\\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 16.5em;\\n}\\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 15em;\\n}\\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 16.5em;\\n}\\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 18em;\\n}\\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 19.5em;\\n}\\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 18em;\\n}\\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 19.5em;\\n}\\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 21em;\\n}\\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 22.5em;\\n}\\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 21em;\\n}\\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 22.5em;\\n}\\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 24em;\\n}\\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 25.5em;\\n}\\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 24em;\\n}\\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 25.5em;\\n}\\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 27em;\\n}\\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 28.5em;\\n}\\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 27em;\\n}\\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 28.5em;\\n}\\n.ql-editor .ql-video {\\n  display: block;\\n  max-width: 100%;\\n}\\n.ql-editor .ql-video.ql-align-center {\\n  margin: 0 auto;\\n}\\n.ql-editor .ql-video.ql-align-right {\\n  margin: 0 0 0 auto;\\n}\\n.ql-editor .ql-bg-black {\\n  background-color: #000;\\n}\\n.ql-editor .ql-bg-red {\\n  background-color: #e60000;\\n}\\n.ql-editor .ql-bg-orange {\\n  background-color: #f90;\\n}\\n.ql-editor .ql-bg-yellow {\\n  background-color: #ff0;\\n}\\n.ql-editor .ql-bg-green {\\n  background-color: #008a00;\\n}\\n.ql-editor .ql-bg-blue {\\n  background-color: #06c;\\n}\\n.ql-editor .ql-bg-purple {\\n  background-color: #93f;\\n}\\n.ql-editor .ql-color-white {\\n  color: #fff;\\n}\\n.ql-editor .ql-color-red {\\n  color: #e60000;\\n}\\n.ql-editor .ql-color-orange {\\n  color: #f90;\\n}\\n.ql-editor .ql-color-yellow {\\n  color: #ff0;\\n}\\n.ql-editor .ql-color-green {\\n  color: #008a00;\\n}\\n.ql-editor .ql-color-blue {\\n  color: #06c;\\n}\\n.ql-editor .ql-color-purple {\\n  color: #93f;\\n}\\n.ql-editor .ql-font-serif {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-editor .ql-font-monospace {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-editor .ql-size-small {\\n  font-size: 0.75em;\\n}\\n.ql-editor .ql-size-large {\\n  font-size: 1.5em;\\n}\\n.ql-editor .ql-size-huge {\\n  font-size: 2.5em;\\n}\\n.ql-editor .ql-direction-rtl {\\n  direction: rtl;\\n  text-align: inherit;\\n}\\n.ql-editor .ql-align-center {\\n  text-align: center;\\n}\\n.ql-editor .ql-align-justify {\\n  text-align: justify;\\n}\\n.ql-editor .ql-align-right {\\n  text-align: right;\\n}\\n.ql-editor.ql-blank::before {\\n  color: rgba(0,0,0,0.6);\\n  content: attr(data-placeholder);\\n  font-style: italic;\\n  left: 15px;\\n  pointer-events: none;\\n  position: absolute;\\n  right: 15px;\\n}\\n.ql-snow.ql-toolbar:after,\\n.ql-snow .ql-toolbar:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow.ql-toolbar button,\\n.ql-snow .ql-toolbar button {\\n  background: none;\\n  border: none;\\n  cursor: pointer;\\n  display: inline-block;\\n  float: left;\\n  height: 24px;\\n  padding: 3px 5px;\\n  width: 28px;\\n}\\n.ql-snow.ql-toolbar button svg,\\n.ql-snow .ql-toolbar button svg {\\n  float: left;\\n  height: 100%;\\n}\\n.ql-snow.ql-toolbar button:active:hover,\\n.ql-snow .ql-toolbar button:active:hover {\\n  outline: none;\\n}\\n.ql-snow.ql-toolbar input.ql-image[type=file],\\n.ql-snow .ql-toolbar input.ql-image[type=file] {\\n  display: none;\\n}\\n.ql-snow.ql-toolbar button:hover,\\n.ql-snow .ql-toolbar button:hover,\\n.ql-snow.ql-toolbar button:focus,\\n.ql-snow .ql-toolbar button:focus,\\n.ql-snow.ql-toolbar button.ql-active,\\n.ql-snow .ql-toolbar button.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-label:hover,\\n.ql-snow .ql-toolbar .ql-picker-label:hover,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-item:hover,\\n.ql-snow .ql-toolbar .ql-picker-item:hover,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\\n  color: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\\n  fill: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-stroke,\\n.ql-snow .ql-toolbar button:hover .ql-stroke,\\n.ql-snow.ql-toolbar button:focus .ql-stroke,\\n.ql-snow .ql-toolbar button:focus .ql-stroke,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\\n  stroke: #06c;\\n}\\n@media (pointer: coarse) {\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active),\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) {\\n    color: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\\n    fill: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\\n    stroke: #444;\\n  }\\n}\\n.ql-snow {\\n  box-sizing: border-box;\\n}\\n.ql-snow * {\\n  box-sizing: border-box;\\n}\\n.ql-snow .ql-hidden {\\n  display: none;\\n}\\n.ql-snow .ql-out-bottom,\\n.ql-snow .ql-out-top {\\n  visibility: hidden;\\n}\\n.ql-snow .ql-tooltip {\\n  position: absolute;\\n  transform: translateY(10px);\\n}\\n.ql-snow .ql-tooltip a {\\n  cursor: pointer;\\n  text-decoration: none;\\n}\\n.ql-snow .ql-tooltip.ql-flip {\\n  transform: translateY(-10px);\\n}\\n.ql-snow .ql-formats {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-formats:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow .ql-stroke {\\n  fill: none;\\n  stroke: #444;\\n  stroke-linecap: round;\\n  stroke-linejoin: round;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-stroke-miter {\\n  fill: none;\\n  stroke: #444;\\n  stroke-miterlimit: 10;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-fill,\\n.ql-snow .ql-stroke.ql-fill {\\n  fill: #444;\\n}\\n.ql-snow .ql-empty {\\n  fill: none;\\n}\\n.ql-snow .ql-even {\\n  fill-rule: evenodd;\\n}\\n.ql-snow .ql-thin,\\n.ql-snow .ql-stroke.ql-thin {\\n  stroke-width: 1;\\n}\\n.ql-snow .ql-transparent {\\n  opacity: 0.4;\\n}\\n.ql-snow .ql-direction svg:last-child {\\n  display: none;\\n}\\n.ql-snow .ql-direction.ql-active svg:last-child {\\n  display: inline;\\n}\\n.ql-snow .ql-direction.ql-active svg:first-child {\\n  display: none;\\n}\\n.ql-snow .ql-editor h1 {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-editor h2 {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-editor h3 {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-editor h4 {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-editor h5 {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-editor h6 {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-editor a {\\n  text-decoration: underline;\\n}\\n.ql-snow .ql-editor blockquote {\\n  border-left: 4px solid #ccc;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding-left: 16px;\\n}\\n.ql-snow .ql-editor code,\\n.ql-snow .ql-editor pre {\\n  background-color: #f0f0f0;\\n  border-radius: 3px;\\n}\\n.ql-snow .ql-editor pre {\\n  white-space: pre-wrap;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding: 5px 10px;\\n}\\n.ql-snow .ql-editor code {\\n  font-size: 85%;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-editor pre.ql-syntax {\\n  background-color: #23241f;\\n  color: #f8f8f2;\\n  overflow: visible;\\n}\\n.ql-snow .ql-editor img {\\n  max-width: 100%;\\n}\\n.ql-snow .ql-picker {\\n  color: #444;\\n  display: inline-block;\\n  float: left;\\n  font-size: 14px;\\n  font-weight: 500;\\n  height: 24px;\\n  position: relative;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-picker-label {\\n  cursor: pointer;\\n  display: inline-block;\\n  height: 100%;\\n  padding-left: 8px;\\n  padding-right: 2px;\\n  position: relative;\\n  width: 100%;\\n}\\n.ql-snow .ql-picker-label::before {\\n  display: inline-block;\\n  line-height: 22px;\\n}\\n.ql-snow .ql-picker-options {\\n  background-color: #fff;\\n  display: none;\\n  min-width: 100%;\\n  padding: 4px 8px;\\n  position: absolute;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-picker-options .ql-picker-item {\\n  cursor: pointer;\\n  display: block;\\n  padding-bottom: 5px;\\n  padding-top: 5px;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  color: #ccc;\\n  z-index: 2;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\\n  fill: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\\n  stroke: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  display: block;\\n  margin-top: -1px;\\n  top: 100%;\\n  z-index: 1;\\n}\\n.ql-snow .ql-color-picker,\\n.ql-snow .ql-icon-picker {\\n  width: 28px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label,\\n.ql-snow .ql-icon-picker .ql-picker-label {\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label svg,\\n.ql-snow .ql-icon-picker .ql-picker-label svg {\\n  right: 4px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-options {\\n  padding: 4px 0px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-item {\\n  height: 24px;\\n  width: 24px;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-options {\\n  padding: 3px 5px;\\n  width: 152px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-item {\\n  border: 1px solid transparent;\\n  float: left;\\n  height: 16px;\\n  margin: 2px;\\n  padding: 0px;\\n  width: 16px;\\n}\\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\\n  position: absolute;\\n  margin-top: -9px;\\n  right: 0;\\n  top: 50%;\\n  width: 18px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\\n  content: attr(data-label);\\n}\\n.ql-snow .ql-picker.ql-header {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"1\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  content: 'Heading 1';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"2\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  content: 'Heading 2';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"3\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  content: 'Heading 3';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"4\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  content: 'Heading 4';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"5\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  content: 'Heading 5';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"6\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  content: 'Heading 6';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-picker.ql-font {\\n  width: 108px;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\\n  content: 'Sans Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  content: 'Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  content: 'Monospace';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-snow .ql-picker.ql-size {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  content: 'Small';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  content: 'Large';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  content: 'Huge';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  font-size: 10px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  font-size: 18px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  font-size: 32px;\\n}\\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\\n  background-color: #fff;\\n}\\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\\n  background-color: #000;\\n}\\n.ql-toolbar.ql-snow {\\n  border: 1px solid #ccc;\\n  box-sizing: border-box;\\n  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\\n  padding: 8px;\\n}\\n.ql-toolbar.ql-snow .ql-formats {\\n  margin-right: 15px;\\n}\\n.ql-toolbar.ql-snow .ql-picker-label {\\n  border: 1px solid transparent;\\n}\\n.ql-toolbar.ql-snow .ql-picker-options {\\n  border: 1px solid transparent;\\n  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\\n  border-color: #000;\\n}\\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\\n  border-top: 0px;\\n}\\n.ql-snow .ql-tooltip {\\n  background-color: #fff;\\n  border: 1px solid #ccc;\\n  box-shadow: 0px 0px 5px #ddd;\\n  color: #444;\\n  padding: 5px 12px;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-tooltip::before {\\n  content: \\\"Visit URL:\\\";\\n  line-height: 26px;\\n  margin-right: 8px;\\n}\\n.ql-snow .ql-tooltip input[type=text] {\\n  display: none;\\n  border: 1px solid #ccc;\\n  font-size: 13px;\\n  height: 26px;\\n  margin: 0px;\\n  padding: 3px 5px;\\n  width: 170px;\\n}\\n.ql-snow .ql-tooltip a.ql-preview {\\n  display: inline-block;\\n  max-width: 200px;\\n  overflow-x: hidden;\\n  text-overflow: ellipsis;\\n  vertical-align: top;\\n}\\n.ql-snow .ql-tooltip a.ql-action::after {\\n  border-right: 1px solid #ccc;\\n  content: 'Edit';\\n  margin-left: 16px;\\n  padding-right: 8px;\\n}\\n.ql-snow .ql-tooltip a.ql-remove::before {\\n  content: 'Remove';\\n  margin-left: 8px;\\n}\\n.ql-snow .ql-tooltip a {\\n  line-height: 26px;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\\n  display: none;\\n}\\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\\n  display: inline-block;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\\n  border-right: 0px;\\n  content: 'Save';\\n  padding-right: 0px;\\n}\\n.ql-snow .ql-tooltip[data-mode=link]::before {\\n  content: \\\"Enter link:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=formula]::before {\\n  content: \\\"Enter formula:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=video]::before {\\n  content: \\\"Enter video:\\\";\\n}\\n.ql-snow a {\\n  color: #06c;\\n}\\n.ql-container.ql-snow {\\n  border: 1px solid #ccc;\\n}\\n\",\"\",{version:3,sources:[\"webpack://./node_modules/react-quill/dist/quill.snow.css\"],names:[],mappings:\"AAAA;;;;;EAKE;AACF;EACE,sBAAsB;EACtB,yCAAyC;EACzC,eAAe;EACf,YAAY;EACZ,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,iBAAiB;EACjB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,qBAAqB;EACrB,qBAAqB;AACvB;AACA;EACE,YAAY;AACd;AACA;;;;;;;;;;;EAWE,SAAS;EACT,UAAU;EACV,6EAA6E;AAC/E;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,qBAAqB;AACvB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,WAAW;EACX,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,6EAA6E;EAC7E,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,sEAAsE;AACxE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,+DAA+D;AACjE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,wDAAwD;AAC1D;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,iDAAiD;AACnD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,+BAA+B;EAC/B,kBAAkB;EAClB,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,WAAW;EACX,cAAc;AAChB;AACA;;EAEE,gBAAgB;EAChB,YAAY;EACZ,eAAe;EACf,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,YAAY;AACd;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;;;;;;;;;;;;;;EAcE,WAAW;AACb;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE,UAAU;AACZ;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE,YAAY;AACd;AACA;EACE;;IAEE,WAAW;EACb;EACA;;;;IAIE,UAAU;EACZ;EACA;;;;IAIE,YAAY;EACd;AACF;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,aAAa;AACf;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,2BAA2B;AAC7B;AACA;EACE,eAAe;EACf,qBAAqB;AACvB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,WAAW;EACX,WAAW;EACX,cAAc;AAChB;AACA;EACE,UAAU;EACV,YAAY;EACZ,qBAAqB;EACrB,sBAAsB;EACtB,eAAe;AACjB;AACA;EACE,UAAU;EACV,YAAY;EACZ,qBAAqB;EACrB,eAAe;AACjB;AACA;;EAEE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,yBAAyB;EACzB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,eAAe;EACf,qBAAqB;EACrB,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,SAAS;EACT,UAAU;AACZ;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,6BAA6B;EAC7B,WAAW;EACX,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,QAAQ;EACR,QAAQ;EACR,WAAW;AACb;AACA;;;;;;EAME,yBAAyB;AAC3B;AACA;EACE,WAAW;AACb;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,WAAW;AACb;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;EACtB,sBAAsB;EACtB,+DAA+D;EAC/D,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,qCAAqC;AACvC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,sBAAsB;EACtB,4BAA4B;EAC5B,WAAW;EACX,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,eAAe;EACf,YAAY;EACZ,WAAW;EACX,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,4BAA4B;EAC5B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;EACE,qBAAqB;AACvB;AACA;EACE,iBAAiB;EACjB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,WAAW;AACb;AACA;EACE,sBAAsB;AACxB\",sourcesContent:[\"/*!\\n * Quill Editor v1.3.7\\n * https://quilljs.com/\\n * Copyright (c) 2014, Jason Chen\\n * Copyright (c) 2013, salesforce.com\\n */\\n.ql-container {\\n  box-sizing: border-box;\\n  font-family: Helvetica, Arial, sans-serif;\\n  font-size: 13px;\\n  height: 100%;\\n  margin: 0px;\\n  position: relative;\\n}\\n.ql-container.ql-disabled .ql-tooltip {\\n  visibility: hidden;\\n}\\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\\n  pointer-events: none;\\n}\\n.ql-clipboard {\\n  left: -100000px;\\n  height: 1px;\\n  overflow-y: hidden;\\n  position: absolute;\\n  top: 50%;\\n}\\n.ql-clipboard p {\\n  margin: 0;\\n  padding: 0;\\n}\\n.ql-editor {\\n  box-sizing: border-box;\\n  line-height: 1.42;\\n  height: 100%;\\n  outline: none;\\n  overflow-y: auto;\\n  padding: 12px 15px;\\n  tab-size: 4;\\n  -moz-tab-size: 4;\\n  text-align: left;\\n  white-space: pre-wrap;\\n  word-wrap: break-word;\\n}\\n.ql-editor > * {\\n  cursor: text;\\n}\\n.ql-editor p,\\n.ql-editor ol,\\n.ql-editor ul,\\n.ql-editor pre,\\n.ql-editor blockquote,\\n.ql-editor h1,\\n.ql-editor h2,\\n.ql-editor h3,\\n.ql-editor h4,\\n.ql-editor h5,\\n.ql-editor h6 {\\n  margin: 0;\\n  padding: 0;\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol,\\n.ql-editor ul {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol > li,\\n.ql-editor ul > li {\\n  list-style-type: none;\\n}\\n.ql-editor ul > li::before {\\n  content: '\\\\2022';\\n}\\n.ql-editor ul[data-checked=true],\\n.ql-editor ul[data-checked=false] {\\n  pointer-events: none;\\n}\\n.ql-editor ul[data-checked=true] > li *,\\n.ql-editor ul[data-checked=false] > li * {\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before,\\n.ql-editor ul[data-checked=false] > li::before {\\n  color: #777;\\n  cursor: pointer;\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before {\\n  content: '\\\\2611';\\n}\\n.ql-editor ul[data-checked=false] > li::before {\\n  content: '\\\\2610';\\n}\\n.ql-editor li::before {\\n  display: inline-block;\\n  white-space: nowrap;\\n  width: 1.2em;\\n}\\n.ql-editor li:not(.ql-direction-rtl)::before {\\n  margin-left: -1.5em;\\n  margin-right: 0.3em;\\n  text-align: right;\\n}\\n.ql-editor li.ql-direction-rtl::before {\\n  margin-left: 0.3em;\\n  margin-right: -1.5em;\\n}\\n.ql-editor ol li:not(.ql-direction-rtl),\\n.ql-editor ul li:not(.ql-direction-rtl) {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol li.ql-direction-rtl,\\n.ql-editor ul li.ql-direction-rtl {\\n  padding-right: 1.5em;\\n}\\n.ql-editor ol li {\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n  counter-increment: list-0;\\n}\\n.ql-editor ol li:before {\\n  content: counter(list-0, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-increment: list-1;\\n}\\n.ql-editor ol li.ql-indent-1:before {\\n  content: counter(list-1, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-increment: list-2;\\n}\\n.ql-editor ol li.ql-indent-2:before {\\n  content: counter(list-2, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-increment: list-3;\\n}\\n.ql-editor ol li.ql-indent-3:before {\\n  content: counter(list-3, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-increment: list-4;\\n}\\n.ql-editor ol li.ql-indent-4:before {\\n  content: counter(list-4, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-reset: list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-increment: list-5;\\n}\\n.ql-editor ol li.ql-indent-5:before {\\n  content: counter(list-5, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-reset: list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-increment: list-6;\\n}\\n.ql-editor ol li.ql-indent-6:before {\\n  content: counter(list-6, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-reset: list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-increment: list-7;\\n}\\n.ql-editor ol li.ql-indent-7:before {\\n  content: counter(list-7, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-reset: list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-increment: list-8;\\n}\\n.ql-editor ol li.ql-indent-8:before {\\n  content: counter(list-8, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-reset: list-9;\\n}\\n.ql-editor ol li.ql-indent-9 {\\n  counter-increment: list-9;\\n}\\n.ql-editor ol li.ql-indent-9:before {\\n  content: counter(list-9, decimal) '. ';\\n}\\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 3em;\\n}\\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 4.5em;\\n}\\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 3em;\\n}\\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 4.5em;\\n}\\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 6em;\\n}\\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 7.5em;\\n}\\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 6em;\\n}\\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 7.5em;\\n}\\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 9em;\\n}\\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 10.5em;\\n}\\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 9em;\\n}\\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 10.5em;\\n}\\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 12em;\\n}\\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 13.5em;\\n}\\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 12em;\\n}\\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 13.5em;\\n}\\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 15em;\\n}\\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 16.5em;\\n}\\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 15em;\\n}\\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 16.5em;\\n}\\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 18em;\\n}\\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 19.5em;\\n}\\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 18em;\\n}\\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 19.5em;\\n}\\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 21em;\\n}\\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 22.5em;\\n}\\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 21em;\\n}\\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 22.5em;\\n}\\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 24em;\\n}\\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 25.5em;\\n}\\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 24em;\\n}\\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 25.5em;\\n}\\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 27em;\\n}\\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 28.5em;\\n}\\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 27em;\\n}\\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 28.5em;\\n}\\n.ql-editor .ql-video {\\n  display: block;\\n  max-width: 100%;\\n}\\n.ql-editor .ql-video.ql-align-center {\\n  margin: 0 auto;\\n}\\n.ql-editor .ql-video.ql-align-right {\\n  margin: 0 0 0 auto;\\n}\\n.ql-editor .ql-bg-black {\\n  background-color: #000;\\n}\\n.ql-editor .ql-bg-red {\\n  background-color: #e60000;\\n}\\n.ql-editor .ql-bg-orange {\\n  background-color: #f90;\\n}\\n.ql-editor .ql-bg-yellow {\\n  background-color: #ff0;\\n}\\n.ql-editor .ql-bg-green {\\n  background-color: #008a00;\\n}\\n.ql-editor .ql-bg-blue {\\n  background-color: #06c;\\n}\\n.ql-editor .ql-bg-purple {\\n  background-color: #93f;\\n}\\n.ql-editor .ql-color-white {\\n  color: #fff;\\n}\\n.ql-editor .ql-color-red {\\n  color: #e60000;\\n}\\n.ql-editor .ql-color-orange {\\n  color: #f90;\\n}\\n.ql-editor .ql-color-yellow {\\n  color: #ff0;\\n}\\n.ql-editor .ql-color-green {\\n  color: #008a00;\\n}\\n.ql-editor .ql-color-blue {\\n  color: #06c;\\n}\\n.ql-editor .ql-color-purple {\\n  color: #93f;\\n}\\n.ql-editor .ql-font-serif {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-editor .ql-font-monospace {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-editor .ql-size-small {\\n  font-size: 0.75em;\\n}\\n.ql-editor .ql-size-large {\\n  font-size: 1.5em;\\n}\\n.ql-editor .ql-size-huge {\\n  font-size: 2.5em;\\n}\\n.ql-editor .ql-direction-rtl {\\n  direction: rtl;\\n  text-align: inherit;\\n}\\n.ql-editor .ql-align-center {\\n  text-align: center;\\n}\\n.ql-editor .ql-align-justify {\\n  text-align: justify;\\n}\\n.ql-editor .ql-align-right {\\n  text-align: right;\\n}\\n.ql-editor.ql-blank::before {\\n  color: rgba(0,0,0,0.6);\\n  content: attr(data-placeholder);\\n  font-style: italic;\\n  left: 15px;\\n  pointer-events: none;\\n  position: absolute;\\n  right: 15px;\\n}\\n.ql-snow.ql-toolbar:after,\\n.ql-snow .ql-toolbar:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow.ql-toolbar button,\\n.ql-snow .ql-toolbar button {\\n  background: none;\\n  border: none;\\n  cursor: pointer;\\n  display: inline-block;\\n  float: left;\\n  height: 24px;\\n  padding: 3px 5px;\\n  width: 28px;\\n}\\n.ql-snow.ql-toolbar button svg,\\n.ql-snow .ql-toolbar button svg {\\n  float: left;\\n  height: 100%;\\n}\\n.ql-snow.ql-toolbar button:active:hover,\\n.ql-snow .ql-toolbar button:active:hover {\\n  outline: none;\\n}\\n.ql-snow.ql-toolbar input.ql-image[type=file],\\n.ql-snow .ql-toolbar input.ql-image[type=file] {\\n  display: none;\\n}\\n.ql-snow.ql-toolbar button:hover,\\n.ql-snow .ql-toolbar button:hover,\\n.ql-snow.ql-toolbar button:focus,\\n.ql-snow .ql-toolbar button:focus,\\n.ql-snow.ql-toolbar button.ql-active,\\n.ql-snow .ql-toolbar button.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-label:hover,\\n.ql-snow .ql-toolbar .ql-picker-label:hover,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-item:hover,\\n.ql-snow .ql-toolbar .ql-picker-item:hover,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\\n  color: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\\n  fill: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-stroke,\\n.ql-snow .ql-toolbar button:hover .ql-stroke,\\n.ql-snow.ql-toolbar button:focus .ql-stroke,\\n.ql-snow .ql-toolbar button:focus .ql-stroke,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\\n  stroke: #06c;\\n}\\n@media (pointer: coarse) {\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active),\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) {\\n    color: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\\n    fill: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\\n    stroke: #444;\\n  }\\n}\\n.ql-snow {\\n  box-sizing: border-box;\\n}\\n.ql-snow * {\\n  box-sizing: border-box;\\n}\\n.ql-snow .ql-hidden {\\n  display: none;\\n}\\n.ql-snow .ql-out-bottom,\\n.ql-snow .ql-out-top {\\n  visibility: hidden;\\n}\\n.ql-snow .ql-tooltip {\\n  position: absolute;\\n  transform: translateY(10px);\\n}\\n.ql-snow .ql-tooltip a {\\n  cursor: pointer;\\n  text-decoration: none;\\n}\\n.ql-snow .ql-tooltip.ql-flip {\\n  transform: translateY(-10px);\\n}\\n.ql-snow .ql-formats {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-formats:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow .ql-stroke {\\n  fill: none;\\n  stroke: #444;\\n  stroke-linecap: round;\\n  stroke-linejoin: round;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-stroke-miter {\\n  fill: none;\\n  stroke: #444;\\n  stroke-miterlimit: 10;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-fill,\\n.ql-snow .ql-stroke.ql-fill {\\n  fill: #444;\\n}\\n.ql-snow .ql-empty {\\n  fill: none;\\n}\\n.ql-snow .ql-even {\\n  fill-rule: evenodd;\\n}\\n.ql-snow .ql-thin,\\n.ql-snow .ql-stroke.ql-thin {\\n  stroke-width: 1;\\n}\\n.ql-snow .ql-transparent {\\n  opacity: 0.4;\\n}\\n.ql-snow .ql-direction svg:last-child {\\n  display: none;\\n}\\n.ql-snow .ql-direction.ql-active svg:last-child {\\n  display: inline;\\n}\\n.ql-snow .ql-direction.ql-active svg:first-child {\\n  display: none;\\n}\\n.ql-snow .ql-editor h1 {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-editor h2 {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-editor h3 {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-editor h4 {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-editor h5 {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-editor h6 {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-editor a {\\n  text-decoration: underline;\\n}\\n.ql-snow .ql-editor blockquote {\\n  border-left: 4px solid #ccc;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding-left: 16px;\\n}\\n.ql-snow .ql-editor code,\\n.ql-snow .ql-editor pre {\\n  background-color: #f0f0f0;\\n  border-radius: 3px;\\n}\\n.ql-snow .ql-editor pre {\\n  white-space: pre-wrap;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding: 5px 10px;\\n}\\n.ql-snow .ql-editor code {\\n  font-size: 85%;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-editor pre.ql-syntax {\\n  background-color: #23241f;\\n  color: #f8f8f2;\\n  overflow: visible;\\n}\\n.ql-snow .ql-editor img {\\n  max-width: 100%;\\n}\\n.ql-snow .ql-picker {\\n  color: #444;\\n  display: inline-block;\\n  float: left;\\n  font-size: 14px;\\n  font-weight: 500;\\n  height: 24px;\\n  position: relative;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-picker-label {\\n  cursor: pointer;\\n  display: inline-block;\\n  height: 100%;\\n  padding-left: 8px;\\n  padding-right: 2px;\\n  position: relative;\\n  width: 100%;\\n}\\n.ql-snow .ql-picker-label::before {\\n  display: inline-block;\\n  line-height: 22px;\\n}\\n.ql-snow .ql-picker-options {\\n  background-color: #fff;\\n  display: none;\\n  min-width: 100%;\\n  padding: 4px 8px;\\n  position: absolute;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-picker-options .ql-picker-item {\\n  cursor: pointer;\\n  display: block;\\n  padding-bottom: 5px;\\n  padding-top: 5px;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  color: #ccc;\\n  z-index: 2;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\\n  fill: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\\n  stroke: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  display: block;\\n  margin-top: -1px;\\n  top: 100%;\\n  z-index: 1;\\n}\\n.ql-snow .ql-color-picker,\\n.ql-snow .ql-icon-picker {\\n  width: 28px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label,\\n.ql-snow .ql-icon-picker .ql-picker-label {\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label svg,\\n.ql-snow .ql-icon-picker .ql-picker-label svg {\\n  right: 4px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-options {\\n  padding: 4px 0px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-item {\\n  height: 24px;\\n  width: 24px;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-options {\\n  padding: 3px 5px;\\n  width: 152px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-item {\\n  border: 1px solid transparent;\\n  float: left;\\n  height: 16px;\\n  margin: 2px;\\n  padding: 0px;\\n  width: 16px;\\n}\\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\\n  position: absolute;\\n  margin-top: -9px;\\n  right: 0;\\n  top: 50%;\\n  width: 18px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\\n  content: attr(data-label);\\n}\\n.ql-snow .ql-picker.ql-header {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"1\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  content: 'Heading 1';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"2\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  content: 'Heading 2';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"3\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  content: 'Heading 3';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"4\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  content: 'Heading 4';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"5\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  content: 'Heading 5';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"6\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  content: 'Heading 6';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-picker.ql-font {\\n  width: 108px;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\\n  content: 'Sans Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  content: 'Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  content: 'Monospace';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-snow .ql-picker.ql-size {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  content: 'Small';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  content: 'Large';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  content: 'Huge';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  font-size: 10px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  font-size: 18px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  font-size: 32px;\\n}\\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\\n  background-color: #fff;\\n}\\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\\n  background-color: #000;\\n}\\n.ql-toolbar.ql-snow {\\n  border: 1px solid #ccc;\\n  box-sizing: border-box;\\n  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\\n  padding: 8px;\\n}\\n.ql-toolbar.ql-snow .ql-formats {\\n  margin-right: 15px;\\n}\\n.ql-toolbar.ql-snow .ql-picker-label {\\n  border: 1px solid transparent;\\n}\\n.ql-toolbar.ql-snow .ql-picker-options {\\n  border: 1px solid transparent;\\n  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\\n  border-color: #000;\\n}\\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\\n  border-top: 0px;\\n}\\n.ql-snow .ql-tooltip {\\n  background-color: #fff;\\n  border: 1px solid #ccc;\\n  box-shadow: 0px 0px 5px #ddd;\\n  color: #444;\\n  padding: 5px 12px;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-tooltip::before {\\n  content: \\\"Visit URL:\\\";\\n  line-height: 26px;\\n  margin-right: 8px;\\n}\\n.ql-snow .ql-tooltip input[type=text] {\\n  display: none;\\n  border: 1px solid #ccc;\\n  font-size: 13px;\\n  height: 26px;\\n  margin: 0px;\\n  padding: 3px 5px;\\n  width: 170px;\\n}\\n.ql-snow .ql-tooltip a.ql-preview {\\n  display: inline-block;\\n  max-width: 200px;\\n  overflow-x: hidden;\\n  text-overflow: ellipsis;\\n  vertical-align: top;\\n}\\n.ql-snow .ql-tooltip a.ql-action::after {\\n  border-right: 1px solid #ccc;\\n  content: 'Edit';\\n  margin-left: 16px;\\n  padding-right: 8px;\\n}\\n.ql-snow .ql-tooltip a.ql-remove::before {\\n  content: 'Remove';\\n  margin-left: 8px;\\n}\\n.ql-snow .ql-tooltip a {\\n  line-height: 26px;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\\n  display: none;\\n}\\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\\n  display: inline-block;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\\n  border-right: 0px;\\n  content: 'Save';\\n  padding-right: 0px;\\n}\\n.ql-snow .ql-tooltip[data-mode=link]::before {\\n  content: \\\"Enter link:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=formula]::before {\\n  content: \\\"Enter formula:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=video]::before {\\n  content: \\\"Enter video:\\\";\\n}\\n.ql-snow a {\\n  color: #06c;\\n}\\n.ql-container.ql-snow {\\n  border: 1px solid #ccc;\\n}\\n\"],sourceRoot:\"\"}]);const l=i},78750:(e,t,n)=>{\"use strict\";var r=n(29491)(!0);n(52500)(String,\"String\",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},78944:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A});var r=n(89453)},79e3:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(56203).Ay},79032:(e,t,n)=>{var r=n(59480),o=n(22499).concat(\"length\",\"prototype\");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},79039:e=>{\"use strict\";e.exports=function(e){try{return!!e()}catch(e){return!0}}},79043:(e,t,n)=>{\"use strict\";n.d(t,{B:()=>u});var r=n(14073),o=n(80663),a=n(81970),i=n.n(a),l=n(15664),s=n(86608),u=(0,a.memo)(function(e){var t=e.isVisible,n=void 0!==t&&t,a=e.message,u=void 0===a?\"\":a,c=e.buttonName,d=void 0===c?\"Yes\":c,p=e.onButtonClick,f=void 0===p?function(){}:p,g=e.onRequestClose,h=void 0===g?function(){}:g;return i().createElement(s.A,{isVisible:n},i().createElement(r.A,{fontSize:16,p:3},u),i().createElement(o.A,{direction:\"row\",justifyContent:\"end\",p:2,gap:2},i().createElement(l.A,{buttonName:\"No\",color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:h}),i().createElement(l.A,{buttonName:d,color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:f})))})},79071:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},79115:(e,t,n)=>{var r=n(19786);r(r.S+r.F,\"Object\",{assign:n(99369)})},79233:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Oe}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(48980),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(62062),n(34782),n(15086),n(54554),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(21699),n(47764),n(5746),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(99478),i=n(37998),l=n(47225),s=n(18978),u=n(47767),c=n(96348),d=function(e){var t=(0,u.Zp)(),n=e.column,r=e.data;return o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){t(\"\".concat(null==r?void 0:r.id,\"/\").concat(null==r?void 0:r.retailerUUID,\"/\").concat(c.fp.Retailer_Details,\"/user details\"),{state:{retailerItem:r}})}},{details:{label:\"Details\",className:\"smart-agro-lite-green-label\"}}[n.colId].label)},p=n(28161),f=n(90815),g=n(14073),h=n(6347),m=n(71543),v=n(88084),A=n(34195),y=n(15941),E=n(15664),b=n(36874),_=n(34274),C=n(94985),w=n(30623);const S=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,a=e.onRequestClose,i=void 0===a?function(){}:a,s=e.SelectedRowItem,u=e.refetchList,c=void 0===u?function(){}:u,d=(0,r.useContext)(l.v),S=d.BackOfficeProps,T=S.globalStore.User,O=S.baseurl,D=d.triggerShowLoader,R=d.triggerToastMsg,N=(0,A.Bd)().t,L=function(){i(!1)};return o().createElement(b.A,{anchor:\"right\",isDrawerOpen:n},o().createElement(p.A,{className:\"popupMain\"},o().createElement(f.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},o().createElement(g.A,{component:\"h1\",variant:\"h1\"},N(\"CHANGE_MOBILE_NUMBER\")),o().createElement(p.A,{onClick:function(){return i(!1)},\"data-testid\":\"onRequestClose\"},o().createElement(g.A,{className:\"icon-close closeIcon\"}))),o().createElement(v.l1,{initialValues:{newMobileNumber:\"\",ownerName:null==s?void 0:s.ownerName,existingMobileNumber:null==s?void 0:s.mobileNumber,shopName:null==s?void 0:s.shopName,enterVerificationCode:\"\"},onSubmit:function(e,t){return function(e){var t;null===(t=(0,C.QZ)(null==s?void 0:s.retailerUUID,T,O,D,e))||void 0===t||t.then(function(e){throw null!=e&&e.message?(c(),R({message:null==e?void 0:e.message,type:\"success\"})):(null==e?void 0:e.errorMessage)===w.hv.INVALID_INPUTS?R({message:w.hv.INVALID_OTP,type:\"error\"}):R({message:null==e?void 0:e.errorMessage,type:\"error\"}),new Error(N(\"UNABLE_TO_UPDATE\"))}).catch(function(e){R({message:e,type:\"error\"})})}(e)},validationSchema:y.Ik().shape({newMobileNumber:(0,_._)(\"Mobile\"),enterVerificationCode:y.Yj().required(\"Verification code required\")}),enableReinitialize:!0},function(e){var t,n,r=e.values,a=e.errors,i=e.setFieldValue;return o().createElement(v.lV,{className:\"popupContent\"},o().createElement(f.A,{direction:\"row\",gap:2},o().createElement(p.A,{mb:2,width:\"100%\"},o().createElement(g.A,{variant:\"subtitle2\"},\"\".concat(N(\"OWNER_NAME\"))),o().createElement(v.D0,{name:\"ownerName\",type:\"text\",disabled:!0,className:\"inputField && disabled-field\",onChange:function(e){return i(\"ownerName\",e.target.value)}}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"ownerName\"}))),o().createElement(p.A,{mb:2,width:\"100%\"},o().createElement(g.A,{variant:\"subtitle2\"},\"\".concat(N(\"SHOP_NAME\"))),o().createElement(v.D0,{name:\"shopName\",type:\"text\",disabled:!0,className:\"inputField && disabled-field\",onChange:function(e){return i(\"shopName\",e.target.value)}}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"shopName\"})))),o().createElement(f.A,{direction:\"row\",gap:2},o().createElement(p.A,{mb:2,width:\"50%\"},o().createElement(g.A,{variant:\"subtitle2\"},\"\".concat(N(\"EXISTING_MOBILE_NUMBER\"))),o().createElement(v.D0,{name:\"existingMobileNumber\",type:\"text\",disabled:!0,className:\"inputField && disabled-field  \",onChange:function(e){return i(\"existingMobileNumber\",e.target.value)}}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"existingMobileNumber\"})))),o().createElement(m.A,null),o().createElement(f.A,{direction:\"row\",gap:2,mt:3},o().createElement(p.A,{mb:2,width:\"100%\"},o().createElement(g.A,{variant:\"subtitle2\"},\"\".concat(N(\"NEW_MOBILE_NUMBER\"))),o().createElement(v.D0,{name:\"newMobileNumber\",type:\"text\",className:\"inputField\",onChange:function(e){return i(\"newMobileNumber\",e.target.value)},placeholder:\"\".concat(N(\"ENTER_NUMBER\")),defaultValue:\"\"}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"newMobileNumber\"}))),o().createElement(p.A,{mb:2,width:\"100%\"},o().createElement(g.A,{variant:\"subtitle2\"},\"\".concat(N(\"ENTER_VERIFICATION_CODE\"))),o().createElement(v.D0,{disabled:null!==(t=null==a?void 0:a.newMobileNumber)&&void 0!==t?t:!(null!=r&&r.newMobileNumber),name:\"enterVerificationCode\",type:\"text\",className:\"inputField\",onChange:function(e){return i(\"enterVerificationCode\",e.target.value)},placeholder:\"\".concat(N(\"ENTER_CODE\")),defaultValue:\"\"}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"enterVerificationCode\"})))),o().createElement(f.A,{direction:\"row\",gap:2,justifyContent:\"space-between\"},o().createElement(E.A,{variant:\"contained\",buttonName:N(\"RESEND_OTP\"),disabled:null!==(n=null==a?void 0:a.newMobileNumber)&&void 0!==n?n:!(null!=r&&r.newMobileNumber),onButtonClick:function(){return function(e){var t;null===(t=(0,C.uW)(T,O,D,null==e?void 0:e.newMobileNumber))||void 0===t||t.then(function(e){R({message:null==e?void 0:e.message,type:\"success\"})}).catch(function(e){R({message:null==e?void 0:e.message,type:\"error\"})})}(r)},color:\"primary\",fullwidth:!1})),o().createElement(f.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},o().createElement(E.A,{variant:\"outlined\",buttonName:N(\"CANCEL\"),onButtonClick:L,fullwidth:!1,color:\"secondary\"}),o().createElement(E.A,{variant:\"contained\",buttonName:N(\"UPDATE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))})))};var T=n(8239),O=n(51545),D=n(80663),R=n(28152),N=n(62809);const L=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.setLabelOptions,a=e.onFilterSubmit,i=e.labelNames,l=e.labelOptions,s=e.onFilterChange,u=e.selectedFilters,c=e.onClearFilters,d=(0,A.Bd)().t,p=l,f=null==i?void 0:i[(null==i?void 0:i.length)-2],h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"label\";return null!=e&&e.length?e.filter(function(e){return null==e?void 0:e.checked}).map(function(e){return e[t]}):[]},m=function(e){var t,n=null==l||null===(t=l.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===t?void 0:t.options;return null!=n?n:[]};return o().createElement(O.A,null,o().createElement(b.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(O.A,{p:3},o().createElement(v.l1,{initialValues:u,enableReinitialize:!0,onSubmit:function(e,t){a(e)}},function(e){var t=e.values;return function(e,t){var a,l;return o().createElement(v.lV,{className:\"popupContent\"},o().createElement(T.Ay,{container:!0,columns:12,spacing:1,mb:2},null==i?void 0:i.map(function(n,r){return o().createElement(T.Ay,{item:!0,xs:3,key:n},o().createElement(O.A,null,o().createElement(g.A,{variant:\"subtitle2\"},n),o().createElement(v.D0,{name:n},function(){var a,i;return o().createElement(N.A,{key:n,name:n,showClearAll:!0,labelKey:\"label\",options:m(n),onCheckboxChange:function(t){return function(e,t,n,r){var o=e.filter(function(e){return e.checked}).map(function(e){return e.value});n!==w.P5.RETAILER_STATUS&&n!==w.P5.VERIFICATION_STATUS&&s(o,t,r),r(n,e)}(t,r,n,e)},isDisabled:!(null!==(a=m(n))&&void 0!==a&&a.length),selectedOptions:null!==(i=h(null==t?void 0:t[n]))&&void 0!==i?i:[],defaultLabel:\"Select\",isSortReq:!0})}),o().createElement(R.A,{errName:\"tmHQ\"})))})),o().createElement(D.A,{direction:\"row\",justifyContent:\"right\"},o().createElement(O.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},o().createElement(E.A,{variant:\"outlined\",buttonName:d(\"CLEAR_FILTERS\"),onButtonClick:function(){return c()},fullwidth:!1,color:\"primary\"}),o().createElement(E.A,{variant:\"contained\",buttonName:d(\"APPLY_FILTERS\"),onButtonClick:function(){},fullwidth:!1,disabled:(null==t||null===(a=t[null==i?void 0:i[0]])||void 0===a?void 0:a.length)&&!(null!=t&&null!==(l=t[f])&&void 0!==l&&l.length),color:\"primary\",type:\"submit\"}))),o().createElement(O.A,{onClick:function(){r(p),n()},className:\"smart-agro-lite-filter-cross\"},o().createElement(g.A,{className:\"icon-close closeIcon\",\"data-testid\":\"close-icon\"})))}(e.setFieldValue,t)}))))};var P=n(60538),M=n(13075),x=n(56254),I=n(43605),k=n(92416),B=n(45620),F=n(21239),j=n(29191),H=n(84262),U=n(21007),Y=n(77576);function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W=function(e){var t=e.setPaginationState,n=e.paginationState,r=e.onSearch,l=e.retailersTouchDetails,s=e.selectedFilters,d=e.setIsFilterOpen,p=e.getIsActiveUpload,f=e.setUploadDrawerOpen,h=e.showUploadTurnOver,m=e.hasUploadRetailersAccess,v=e.listData,y=e.User,b=e.ActionComponent,_=e.EditActionComponent,C=e.totalPageCount,w=e.totalElements,S=(0,u.Zp)(),T=(0,A.Bd)().t,R=(0,Y.h)().showReKYCfeature,N=(0,U.A)(r,400);return o().createElement(O.A,null,o().createElement(D.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(O.A,null,o().createElement(k.A,{routePathName:[{name:c.F_.Retailers,path:c.fp.Retailers},{name:c.F_.Retailers_list,path:c.fp.Retailer_List}]}))),o().createElement(D.A,{alignItems:\"center\",direction:\"row\",justifyContent:\"space-between\",mb:2},o().createElement(D.A,{alignItems:\"center\",direction:\"row\"},o().createElement(j.A,{menuItemData:a.A9,onHandleChange:function(e){t(function(t){return V(V({},t),{},{pageNo:0,pageSize:Number(e)})})},selectedItem:n.pageSize}))),o().createElement(D.A,{direction:\"row\",justifyContent:\"space-between\",mb:2,alignItems:\"center\"},o().createElement(O.A,{mt:2},o().createElement(F.A,{placeholderText:\"\".concat(T(\"SEARCH\")),onSearchValueChange:function(e){return N(e)},searchValue:\"\",searchBasedOn:\"\".concat(T(\"RETAILERS_SEARCH\"))})),o().createElement(D.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2,alignItems:\"center\"},o().createElement(D.A,{direction:\"row\",justifyContent:\"space-between\",gap:2,alignItems:\"center\"},o().createElement(O.A,null,o().createElement(g.A,{variant:\"subtitle1\",fontWeight:600},null==l?void 0:l.retailers,\" \",T(\"RETAILERS_TOUCHBASED\")),o().createElement(g.A,{variant:\"body1\",fontSize:\"12px\",fontWeight:500},\" \",T(\"OUT_OF\"),\" \",null==l?void 0:l.mappedRetailers,\" \",T(\"MAPPED_RETAILERS\"))),o().createElement(B.A,{value:null==l?void 0:l.percentage,className:\"label-out\",size:40,thickness:8,progressBg:\"#62801E\"})),o().createElement(E.A,{buttonName:T(\"FILTERS\"),className:(0,M.F7)(s),color:\"transparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){d(!0)}}),p()&&o().createElement(E.A,{variant:\"contained\",buttonName:T(\"UPLOAD_ANNUAL_TURNOVER\"),onButtonClick:function(){return f(!0)},fullwidth:!1,color:\"primary\",disabled:!h}),m&&o().createElement(E.A,{variant:\"outlined\",buttonName:T(\"MY_UPLOADS\"),onButtonClick:function(){return S(c.fp.Retailers_My_Uploads)},fullwidth:!1}))),o().createElement(P.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(I.A,{rows:v,columnDefs:R&&\"true\"==(null==y?void 0:y.isEnableKYCVerifier)?i.eJ:i.eJ.filter(function(e){return\"VerificationStatusComponent\"!==e.cellRenderer}),frameworkComponents:{ActionComponent:b,RetailersListStatusComponent:H.ZV,StatusComponent:H.q9,EditActionComponent:_,VerificationStatusComponent:H.JV},defaultCellMinWidth:150})),o().createElement(x.A,{pageNo:n.pageNo,totalPageCount:Math.ceil(C),totalElements:w,onPageChange:function(e){t(function(t){return V(V({},t),{},{pageNo:Number(e)})})}}))};n(25843);var Q=n(89994),K=(n(60739),n(3362),n(96790)),$=n(95692),X=n(8085),J=n(34358),Z=function(e){var t,n,r,o,a=e.User,i=e.baseurl,l=e.triggerShowLoader,s=e.selectedFile,u=e.onUploadProgress,c={};return c.domain=i,c.endPoint=X.p.UPLOAD_ANNUAL_TURNOVER,c.customHeaders={\"user-id\":null==a||null===(t=a.UserDetails)||void 0===t?void 0:t.user_id,\"bu-id\":\"\".concat(null==a?void 0:a.selectedBusinessUnit.bu_id),\"country-code\":null==a||null===(n=a.selectedCountry)||void 0===n?void 0:n.countryCode,Authorization:\"Bearer \".concat(null==a?void 0:a.AccessToken)},c.onUploadProgress=function(e){return u(e)},c.payLoad=(r=s,(o=new FormData).append(\"file\",r),o.append(\"data\",JSON.stringify(r)),o),c.triggerLoader=l,new Promise(function(e,t){var n;null===(n=$.N.uploadFile(c))||void 0===n||n.then(function(t){if((0,M.mN)(t))return e(t)}).catch(function(e){return t(new Error(e.message))})})};function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||function(e,t){if(e){if(\"string\"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ne=function(e){var t=e.filterPayload,n=e.paginationState,o=e.setIsDrawerOpen,i=e.setListData,u=e.setTotalPageCount,c=e.setIsFilterOpen,d=e.setTotalElements,p=e.setShowUploadTurnOver,f=e.setUploadConfigurations,g=e.setLabelNames,h=e.setFiltersList,m=e.setLabelOptions,v=e.labelOptions,A=e.setRetailersTouchDetails,y=e.showReKYCfeature,E=(0,r.useContext)(l.v),b=E.BackOfficeProps,_=b.globalStore.User,S=b.baseurl,T=E.triggerShowLoader,O=E.triggerToastMsg,D=(new Date).getFullYear()-1,R=(0,M.rZ)(_,S).role_type_name,N={field:\"status\",operator:\"IN\",values:[a._S.REJECTED,a._S.APPROVED,a._S.PENDING_FOR_APPROVAL]},L=[{field:\"retailerBuList.isRetailerMapped\",operator:\"EQUALS\",value:\"true\"},{field:\"retailerRequestType\",operator:\"EQUALS\",value:\"RETAILER\"},{field:\"retailerBuList.buId\",operator:\"EQUALS\",value:null==_?void 0:_.selectedBusinessUnit.bu_id}],P=function(e){var t=e.split(\"-\"),n=Number.parseInt(t[0],10),r=Number.parseInt(t[1],10)-1,o=Number.parseInt(t[2],10);return new Date(o,r,n)},x=function(e,t){var n;null===(n=(0,s.Bs)(e,_,S,T))||void 0===n||n.then(function(e){if(e){var n=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});m([].concat(ee(v),[{labelName:t,options:n}]))}}).catch(function(e){O({message:e.message,type:\"error\"})})};return{getListData:function(){o(!1),i([]),u(0),d(0),c(!1);var e=[].concat(L,ee(t));e.some(function(e){return\"status\"===(null==e?void 0:e.field)})||R===a.Rk.COUNTRY_ADMIN||e.push(N);var r={filter:e,pageNo:n.pageNo,pageSize:n.pageSize};(0,C.ao)(_,S,T,r).then(function(e){null!=e&&e.data&&((0,Q.ao)(e),o(!1),i((null==e?void 0:e.data)||[]),u(null==e?void 0:e.totalPageCount),d(null==e?void 0:e.totalElements),c(!1))}).catch(function(e){})},fetchTurnoverConfig:function(){var e={filter:[{field:\"formFieldConfiguration.buId\",operator:\"EQUALS\",value:null==_?void 0:_.selectedBusinessUnit.bu_id},{field:\"formFieldConfiguration.eventTypeId\",operator:\"IN\",values:[_.selectedBusinessUnit.userRoleControls.roleId]},{field:\"year\",operator:\"IN\",values:[D]}],pageNo:n.pageNo,pageSize:n.pageSize};(0,C.sm)(_,S,T,e).then(function(e){if(null!=e&&e.data){var t,n=new Date,r=null==e||null===(t=e.data)||void 0===t?void 0:t.find(function(e){return\"Total Annual Turn Over(Lakhs)\"===(null==e?void 0:e.field_name)}),o=new Date(P(null==r?void 0:r.from_date)),a=new Date(P(null==r?void 0:r.to_date));(n>=o||(0,M.iH)(n,o))&&(n<=a||(0,M.iH)(n,a))&&p(!0)}}).catch(function(e){console.error(\"An error occurred while fetching data:\",e)})},getUploadConfigurations:function(){(function(e,t,n){var r={};return r.domain=t,r.endPoint=\"\".concat(X.p.DISABLE_RETAILERS_FIELDS,\"?moduleName=RETAILERS&keys=is_retailers_sow_enabled&keys=is_annual_turnover_bulk_upload_enabled_for_retailers_sow\"),r.triggerLoader=n,r.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,J.uB)(r,K.dF.GET).then(function(t){if((0,M.mN)(t))return e(t.data);throw new Error((0,M.Tl)(\"NO_UPLOADS_LIST_DATA\"))}).catch(function(e){return t(e)})})})(_,S,T).then(function(e){e&&f(e)}).catch(function(e){})},getSalesHierarchyId:function(){(0,C.Vs)(_,S,T).then(function(e){var t,n;null!=e&&e.sales_hierarchy_id&&(t=null==e?void 0:e.sales_hierarchy_id,null===(n=(0,s.FU)(_,S,T,t))||void 0===n||n.then(function(e){if(e){var t,n,r=null==e?void 0:e.map(function(e){return null==e?void 0:e.name}),o=[].concat(ee(r),[w.P5.RETAILER_STATUS]);y&&\"true\"==(null==_?void 0:_.isEnableKYCVerifier)&&(o=[].concat(ee(o),[w.P5.VERIFICATION_STATUS])),g(o),h(e),x(null===(t=e[0])||void 0===t?void 0:t.sales_hierarchy_id,null===(n=e[0])||void 0===n?void 0:n.name)}}).catch(function(e){O({message:e.message,type:\"error\"})}))})},getRetailerTouchPercent:function(){(0,C.aw)(_,S,T).then(function(e){e&&A(e)})}}},re=n(96178),oe=(n(48598),n(77060)),ae=n(98752),ie=n(48506),le=n(27386),se=n(68670),ue=n(50275),ce=function(){return y.Ik().shape({hq:y.Yj().required(\"TM HQ is required\")})};function de(e){return de=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},de(e)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=de(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=de(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==de(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ve=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,i=e.onRequestClose,s=void 0===i?function(){}:i,u=(0,A.Bd)().t,c=(0,oe.A)(),d=c.progress,m=c.uploadFileWithHeaders,y=(new Date).getFullYear()-1,_=(0,r.useContext)(l.v),C=_.BackOfficeProps,w=C.globalStore.User,S=C.baseurl,T=_.triggerShowLoader,O=_.triggerToastMsg,D=he((0,r.useState)(null),2),R=D[0],N=D[1],L=he((0,r.useState)(\"\"),2),P=L[0],x=L[1],I=he((0,r.useState)([]),2),k=I[0],B=I[1],F=he((0,r.useState)(\"\"),2),j=F[0],H=F[1],U=function(){s(!1)},Y=he((0,r.useState)({selectedHQ:[]}),2),G=Y[0],z=Y[1],V=function(){R?(0,ae.TC)(R.name)?m(Z,{User:w,baseurl:S,triggerShowLoader:T,selectedFile:R}).then(function(e){null!=e&&e.data?(N(null),s(!0),O({message:a.PB,type:\"success\"})):O({message:a.or,type:\"error\"})}).catch(function(e){T(!1),O({message:a.or,type:\"error\"})}):x(u(\"VALID_FILE_ERROR\")):x(u(\"UPLOAD_CONDITION_TEXT\"))};return(0,r.useEffect)(function(){var e,t;(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",o={};return o.domain=r,o.endPoint=X.p.GET_LIQUIDATION_TAB_VALUES,o.payLoad={salesHierarchyId:null==e||null===(n=e.selectedBusinessUnit)||void 0===n||null===(n=n.userRoleControls)||void 0===n?void 0:n.roleId,parent_levels:1},o.triggerLoader=t,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,J.uB)(o,K.dF.GET).then(function(t){if((0,M.mN)(t))return e(t.data);throw new Error((0,M.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})})(w,T,S).then(function(e){H(null==e?void 0:e.hq_hierarchy_name)}),t={targetForId:null==w||null===(e=w.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId},(0,ue.Zi)(w,S,T,t).then(function(e){var t=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id}});B(t)})},[]),o().createElement(b.A,{isDrawerOpen:n,anchor:\"right\"},o().createElement(p.A,{className:\"popupMain\"},o().createElement(f.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},o().createElement(g.A,{variant:\"h5\",fontSize:24,fontWeight:500},u(\"UPLOAD_ANNUAL_TURNOVER\")),o().createElement(p.A,{onClick:function(){return s(!1)},\"data-testid\":\"onRequestClose\"},o().createElement(g.A,{className:\"icon-close closeIcon\"}))),o().createElement(v.l1,{initialValues:{hq:\"\"},validationSchema:ce,enableReinitialize:!0,onSubmit:function(){var e,t,n,r=(null==G||null===(e=G.selectedHQ)||void 0===e?void 0:e.map(function(e){return null==e?void 0:e.value}))||[],o=X.p.DOWNALOAD_ANNUAL_TURNOVER,a=r.map(function(e){return\"hq_ids=\".concat(e)}).join(\"&\");return(0,J.Ti)({baseUrl:\"\".concat(S).concat(o,\"?\").concat(a),options:{headers:{Authorization:\"Bearer \".concat(null==w?void 0:w.AccessToken),\"country-code\":null==w||null===(t=w.selectedCountry)||void 0===t?void 0:t.countryCode,\"bu-id\":\"\".concat(w.selectedBusinessUnit.bu_id),\"user-id\":null===(n=w.UserDetails)||void 0===n?void 0:n.user_id},responseType:\"arraybuffer\"}}).then(function(e){var t,n;T(!1),null!==(t=(0,M.bA)(e))&&void 0!==t&&t.message?O({message:null===(n=(0,M.bA)(e))||void 0===n?void 0:n.message,type:\"error\"}):(0,M.bA)(e)||O({message:u(\"DOWNLOAD_FAILED\"),type:\"error\"})})}},function(e){var t=e.setFieldValue;return o().createElement(v.lV,{className:\"popupContent\"},o().createElement(p.A,{className:\"inputs-cards\"},o().createElement(p.A,{className:\"cards-header-wrapper\"},o().createElement(f.A,{direction:\"row\",gap:2,mb:1},o().createElement(p.A,{width:\"48%\"},o().createElement(g.A,{variant:\"body1\",fontWeight:700},\"Year*\"),o().createElement(v.D0,{name:\"crop\",type:\"text\",className:\"inputField disabledInput\",disabled:!0,value:y})),o().createElement(p.A,{mb:2,width:\"48%\"},o().createElement(g.A,{variant:\"body1\",fontWeight:700},j,\"*\"),o().createElement(v.D0,{name:\"hq\"},function(){return function(e){var t;return o().createElement(ie.A,{options:k,name:\"hq\",onHandleChange:function(t){e(\"hq\",String(t.map(function(e){return e.label}).join(\",\"))),z(function(e){return fe(fe({},e),{},{selectedHQ:t})})},selectedOption:null!==(t=null==G?void 0:G.selectedHQ)&&void 0!==t?t:[]})}(t)}),o().createElement(h.A,{error:!0},o().createElement(v.Kw,{name:\"hq\"})))),o().createElement(p.A,{className:\"inputs-cards\"},o().createElement(p.A,{className:\"cards-header-wrapper\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",pr:2},o().createElement(f.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},o().createElement(g.A,{component:\"span\",className:\"round-badge\"},\"2\"),o().createElement(g.A,{variant:\"h6\",fontSize:14,fontWeight:500},u(\"DOWNLOAD_TEMEPLATE\"))),o().createElement(E.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:u(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",type:\"submit\"}))),o().createElement(p.A,{className:\"inputs-cards\"},o().createElement(p.A,{className:\"cards-header-wrapper\"},o().createElement(f.A,{flexDirection:\"row\",gap:2,alignItems:\"center\",p:1},o().createElement(g.A,{component:\"span\",className:\"round-badge\"},\"3\"),o().createElement(g.A,{variant:\"h6\",fontSize:14,fontWeight:500},u(\"UPLOAD_FILE\")))),o().createElement(p.A,{className:\"input-card-body\"},o().createElement(le.A,{onUploadSuccess:function(e){!function(e){x(!1);var t=e[0];N(t)}(e)},selectedFile:R,onRemoveHandler:function(){return N(null)}}),P&&o().createElement(g.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},P))))),d>0&&o().createElement(se.A,{value:d}),o().createElement(f.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},o().createElement(E.A,{variant:\"outlined\",buttonName:u(\"CANCEL\"),onButtonClick:U,fullwidth:!1,color:\"secondary\"}),o().createElement(E.A,{variant:\"contained\",buttonName:u(\"UPLOAD\"),fullwidth:!1,color:\"primary\",onButtonClick:V})))})))};function Ae(e){return Ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ae(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ae(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ae(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||we(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||we(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function we(e,t){if(e){if(\"string\"==typeof e)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Te=function(e){var t,n=e.RBACControls,u=null==n||null===(t=n.subControls)||void 0===t||null===(t=t.uploadRetailers)||void 0===t?void 0:t.includes(\"READ\"),c=(0,Y.h)().showReKYCfeature,p=(0,r.useContext)(l.v),f=p.BackOfficeProps,g=f.globalStore.User,h=f.baseurl,m=p.triggerShowLoader,v=p.triggerToastMsg,A=Ce((0,r.useState)({pageNo:0,pageSize:10}),2),y=A[0],E=A[1],b=Ce((0,r.useState)(!1),2),_=b[0],C=b[1],T=Ce((0,r.useState)([]),2),O=T[0],D=T[1],R=Ce((0,r.useState)([{labelName:\"Retailer Status\",options:[{label:\"Pending For Approval\",value:\"PENDING_FOR_APPROVAL\",checked:!1},{label:\"Approved\",value:\"APPROVED\",checked:!1},{label:\"Rejected\",value:\"REJECTED\",checked:!1}]},{labelName:\"Verification Status\",options:[{label:\"Verified\",value:\"VERIFIED\",checked:!1},{label:\"Not Verified\",value:\"NOT_VERIFIED\",checked:!1},{label:\"Re-KYC\",value:\"RE_KYC\",checked:!1}]}]),2),N=R[0],P=R[1],M=Ce((0,r.useState)([]),2),x=M[0],I=M[1],k=Ce((0,r.useState)({}),2),B=k[0],F=k[1],j=Ce((0,r.useState)(0),2),H=j[0],U=j[1],G=Ce((0,r.useState)(0),2),z=G[0],V=G[1],q=Ce((0,r.useState)([]),2),Q=q[0],K=q[1],$=Ce((0,r.useState)(!1),2),X=$[0],J=$[1],Z=Ce((0,r.useState)([]),2),ee=Z[0],te=Z[1],oe=Ce((0,r.useState)(!1),2),ae=oe[0],ie=oe[1],le=Ce((0,r.useState)(),2),se=le[0],ue=le[1],ce=Ce((0,r.useState)({}),2),de=ce[0],pe=ce[1],fe=Ce((0,r.useState)([]),2),ge=fe[0],he=fe[1],me=Ce((0,r.useState)(!1),2),Ae=me[0],ye=me[1],be=ne({filterPayload:Q,paginationState:y,setIsDrawerOpen:ie,setListData:te,setTotalPageCount:U,setIsFilterOpen:C,setTotalElements:V,setShowUploadTurnOver:ye,setUploadConfigurations:he,setLabelNames:I,setFiltersList:D,setLabelOptions:P,labelOptions:N,setRetailersTouchDetails:pe,showReKYCfeature:c}),we=be.getListData,Se=be.fetchTurnoverConfig,Te=be.getUploadConfigurations,Oe=be.getSalesHierarchyId,De=be.getRetailerTouchPercent,Re=function(e,t){var n,r,o=_e(N),a=N.findIndex(function(t){return(null==t?void 0:t.labelName)===(null==e?void 0:e.name)});r=null==e||null===(n=e.hq_data_list)||void 0===n?void 0:n.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});var i={labelName:null==e?void 0:e.name,options:r};-1!==a?o[a]=i:o=[].concat(_e(N),[i]),Ne(t,null==e?void 0:e.name,o)},Ne=function(e,t,n){var r=_e(x),o=_e(n);r.slice(null==r?void 0:r.indexOf(t),null==r?void 0:r.findIndex(function(e){return e===w.P5.RETAILER_STATUS||e===w.P5.VERIFICATION_STATUS})).forEach(function(t,n){e(t,\"\"),n>0?(o=o.map(function(e){return e.labelName===t?Ee(Ee({},e),{},{options:[]}):e}),P(_e(o))):P(_e(o))})},Le=function(e){var t,n,r,o,a,i=null==O||null===(t=O[(null==O?void 0:O.length)-1])||void 0===t?void 0:t.name,l=Ee({},e),s=[];null!==(n=l[i])&&void 0!==n&&n.length&&s.push(Pe(\"hqDataId\",l[i])),null!=l&&null!==(r=l[w.P5.RETAILER_STATUS])&&void 0!==r&&r.length&&s.push(Pe(\"status\",null==l?void 0:l[w.P5.RETAILER_STATUS])),null!=l&&null!==(o=l[w.P5.VERIFICATION_STATUS])&&void 0!==o&&o.length&&s.push(Pe(\"verificationStatus\",null==l?void 0:l[w.P5.VERIFICATION_STATUS])),null!=l&&null!==(a=l.search)&&void 0!==a&&null!==(a=a[0])&&void 0!==a&&a.value&&s.push(Pe(\"search\",null==l?void 0:l.search)),K(s),E(function(e){return Ee(Ee({},e),{},{pageNo:0,pageSize:10})})},Pe=function(e,t){var n,r={field:e,operator:\"search\"===e?\"LIKE\":\"IN\"};return\"search\"===e?r.value=null==t||null===(n=t[0])||void 0===n?void 0:n.value:r.values=t.map(function(e){return e.value}),r};return(0,r.useEffect)(function(){we()},[y,Q]),(0,r.useEffect)(function(){var e;Se(),Oe(),De(),Te(),(null==g||null===(e=g.UserDetails)||void 0===e||null===(e=e.role_type_details)||void 0===e?void 0:e.role_type_name)===a.Rk.COUNTRY_ADMIN&&(i.eJ.some(function(e){return\"Status\"===e.headerName})||i.eJ.splice(5,0,{headerName:\"Status\",field:\"active\",cellRenderer:\"StatusComponent\",flex:1}))},[]),o().createElement(o().Fragment,null,o().createElement(re.z,null,o().createElement(W,{setPaginationState:E,paginationState:y,onSearch:function(e){var t={search:[{label:\"search\",value:e}]};Le(Ee(Ee({},B),t))},retailersTouchDetails:de,selectedFilters:B,setIsFilterOpen:C,getIsActiveUpload:function(){var e,t=null==ge||null===(e=ge.find(function(e){return\"is_annual_turnover_bulk_upload_enabled_for_retailers_sow\"===(null==e?void 0:e.key)}))||void 0===e?void 0:e.isActive,n=null==ge?void 0:ge.find(function(e){return\"is_retailers_sow_enabled\"===(null==e?void 0:e.key)});return t&&(null==n?void 0:n.isActive)&&\"true\"===(null==n?void 0:n.value)},setUploadDrawerOpen:J,showUploadTurnOver:Ae,hasUploadRetailersAccess:u,listData:ee,ActionComponent:d,EditActionComponent:function(e){var t=e.column,n={editMobile:{label:w.hv.CHANGE_MOBILE_NUMBER,className:\"smart-agro-lite-green-label\"}};return o().createElement(o().Fragment,null,(0,a.EB)(g)&&o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){return t=e.data,ie(!0),void ue(t);var t}},n[t.colId].label))},totalPageCount:H,totalElements:z,User:g})),_&&o().createElement(L,{onFilterChange:function(e,t,n){var r=null==O?void 0:O[t+1],o=null==r?void 0:r.sales_hierarchy_id,a={targetForId:o,parentHqIds:e};o&&(0,s._n)(g,h,m,a).then(function(e){!function(e,t,n){var r=null==e?void 0:e.map(function(e){return{name:null==e?void 0:e.hq_data_name,id:null==e?void 0:e.hq_data_id}});Re({name:null==t?void 0:t.name,hq_data_list:r},n)}(e,r,n)}).catch(function(e){v({message:e.message,type:\"error\"})})},labelNames:x,labelOptions:N,onRequestClose:function(){C(!1)},isFilterOpen:_,onFilterSubmit:function(e){F(e),Le(e)},onClearFilters:function(){var e=null==N?void 0:N.filter(function(e){return(null==e?void 0:e.labelName)===x[0]||(null==e?void 0:e.labelName)===w.P5.RETAILER_STATUS||(null==e?void 0:e.labelName)===w.P5.VERIFICATION_STATUS}).map(function(e){return e.labelName===x[0]||(null==e?void 0:e.labelName)===w.P5.RETAILER_STATUS||(null==e?void 0:e.labelName)===w.P5.VERIFICATION_STATUS?Ee(Ee({},e),{},{options:e.options.map(function(e){return Ee(Ee({},e),{},{checked:!1})})}):e});P(e),F({}),K([]),C(!1)},selectedFilters:B,setLabelOptions:P,\"data-testid\":\"retailers-filters\"}),ae&&o().createElement(S,{isDrawerOpen:ae,onRequestClose:function(){return ie(!1)},SelectedRowItem:se,refetchList:function(){return we()},\"data-testid\":\"edit-mobile-info\"}),X&&o().createElement(ve,{isDrawerOpen:X,onRequestClose:function(e){J(!1),e&&E({pageNo:0,pageSize:10})},\"data-testid\":\"upload-retailers\"}))};const Oe=(0,r.memo)(Te)},79290:e=>{\"use strict\";e.exports=RangeError},79296:(e,t,n)=>{\"use strict\";var r=n(4055)(\"span\").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},79306:(e,t,n)=>{\"use strict\";var r=n(94901),o=n(16823),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+\" is not a function\")}},79315:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ae}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(28161),a=n(81970),i=n.n(a),l=n(47767),s=n(99478),u=n(96348),c=n(78208),d=n(47225),p=n(13075),f=n(92416),g=n(46374),h=n(7318),m=n(92782),v=(n(3362),n(60538)),A=n(56203),y=n(8085),E=n(34358),b=n(37998),_=n(70380),C=n(56254),w=n(43605),S=n(15664),T=n(21239),O=n(8239),D=n(14073),R=n(51545),N=n(80663),L=n(88084),P=n(34195),M=n(76906),x=n(36874),I=n(28152),k=n(62809),B=n(74353),F=n.n(B);function j(e){return j=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},j(e)}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=j(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==j(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.onFilterSubmit,o=e.filtersOptions,a=e.onClearFilters,l=e.selectedFilters,s=e.hqName,u=e.userName,c=(0,P.Bd)().t,d=function(){n()},p=function(e,t){var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r||null===(r=r.filter(function(e){return e.checked}))||void 0===r?void 0:r.map(function(e){return e.label}))&&void 0!==n?n:[]},f=function(e,t){var n,r,a;return null!=t&&t[e]?(null===(n=t[e])||void 0===n||n.forEach(function(t){var n,r=null==o||null===(n=o[e])||void 0===n?void 0:n.find(function(e){return e.label===t.label});r&&(r.checked=t.checked)}),null!==(r=null==o?void 0:o[e])&&void 0!==r?r:[]):null==o||null===(a=o[e])||void 0===a?void 0:a.map(function(e){return U(U({},e),{},{checked:!1})})};return i().createElement(R.A,null,i().createElement(x.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},i().createElement(R.A,{p:3},i().createElement(L.l1,{initialValues:l,enableReinitialize:!0,onSubmit:function(e,t){r(e)}},function(e){var t,n,r=e.values,o=e.setFieldValue;return i().createElement(L.lV,{className:\"popupContent\"},i().createElement(O.Ay,{container:!0,columns:12,spacing:2,mb:2},i().createElement(O.Ay,{item:!0,xs:2},i().createElement(R.A,null,i().createElement(D.A,{variant:\"subtitle2\"},s,console.log(\"values\",r)),i().createElement(L.D0,{name:\"TMHQ\"},function(){return i().createElement(k.A,{name:s+\"s\",showClearAll:!0,labelKey:\"label\",options:f(\"hq_ids\",r),onCheckboxChange:function(e){return o(\"hq_ids\",e)},selectedOptions:p(r,\"hq_ids\"),defaultLabel:\"Select\",isSortReq:!0})}),i().createElement(I.A,{errName:\"tmHQ\"}))),i().createElement(O.Ay,{item:!0,xs:2},i().createElement(R.A,null,i().createElement(D.A,{variant:\"subtitle2\"},u),i().createElement(L.D0,{name:\"TMHQ\"},function(){return i().createElement(k.A,{name:u+\" Users\",showClearAll:!0,labelKey:\"label\",options:f(\"user_ids\",r),onCheckboxChange:function(e){return o(\"user_ids\",e)},selectedOptions:p(r,\"user_ids\"),defaultLabel:\"Select\",isSortReq:!0})}),i().createElement(I.A,{errName:\"tmHQ\"}))),i().createElement(O.Ay,{item:!0,xs:2},i().createElement(R.A,{className:\"filter-date-picker\"},i().createElement(D.A,{variant:\"subtitle2\"},c(\"ASSIGNMENT_START_DATE\")),i().createElement(M.A,{value:(null==r?void 0:r.start_date)||\"\",handleChangeDatePicker:function(e){if(\"Invalid date\"!==e){if(o(\"start_date\",e),r.end_date){var t=F()(e),n=F()(r.end_date);(n.isBefore(t)||n.isAfter(t.add(3,\"years\")))&&o(\"end_date\",null)}}else o(\"start_date\",null)},minDate:null!=r&&r.end_date?F()(r.end_date).subtract(3,\"year\").format(\"YYYY-MM-DD\"):null,maxDate:null!==(t=null==r?void 0:r.end_date)&&void 0!==t?t:null}),i().createElement(I.A,{errName:\"start_date\"}))),i().createElement(O.Ay,{item:!0,xs:2},i().createElement(R.A,{className:\"filter-date-picker\"},i().createElement(D.A,{variant:\"subtitle2\"},c(\"ASSIGNMENT_END_DATE\")),i().createElement(M.A,{value:(null==r?void 0:r.end_date)||\"\",handleChangeDatePicker:function(e){if(\"Invalid date\"!==e){if(o(\"end_date\",e),r.start_date){var t=F()(e),n=F()(r.start_date);(n.isBefore(t.subtract(3,\"years\"))||n.isAfter(t))&&o(\"start_date\",null)}}else o(\"end_date\",null)},minDate:null!==(n=null==r?void 0:r.start_date)&&void 0!==n?n:null,maxDate:null!=r&&r.start_date?F()(r.start_date).add(3,\"years\").format(\"YYYY-MM-DD\"):\"\"}),i().createElement(I.A,{errName:\"end_date\"})))),i().createElement(N.A,{direction:\"row\",justifyContent:\"right\"},i().createElement(R.A,{display:\"flex\",width:\"30%\",justifyContent:\"right\",alignItems:\"center\",gap:1},i().createElement(S.A,{variant:\"outlined\",buttonName:c(\"CLEAR_FILTERS\"),onButtonClick:function(){return a()},fullwidth:!1,color:\"primary\",type:\"reset\"}),i().createElement(S.A,{variant:\"contained\",buttonName:c(\"APPLY_FILTERS\"),onButtonClick:function(){},fullwidth:!1,color:\"primary\",type:\"submit\"}))),i().createElement(R.A,{onClick:d,className:\"smart-agro-lite-filter-cross\"},i().createElement(D.A,{className:\"icon-close closeIcon\"})))}))))};var z=n(11715);function V(e){return V=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},V(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=V(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==V(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const X=function(e){var t,n=e.tabsData,l=e.tabType,s=e.hqName,u=e.userName,c=(0,a.useContext)(d.v),p=c.BackOfficeProps,f=p.globalStore.User,g=p.baseurl,h=c.triggerShowLoader,O=c.triggerToastMsg,D={page_no:0,page_size:10},R=K((0,a.useState)(!1),2),N=R[0],L=R[1],P=K((0,a.useState)(D),2),M=P[0],x=P[1],I=K((0,a.useState)(D),2),k=I[0],B=I[1],F=K((0,a.useState)([]),2),j=F[0],H=F[1],U=K((0,a.useState)(0),2),Y=U[0],V=U[1],q=function(e){return e.map(function(e){return\"hQName\"===e.field?W(W({},e),{},{headerName:\"\".concat(s,\" Name\")}):\"name\"===e.field?W(W({},e),{},{headerName:\"\".concat(u,\" Name\")}):e})},Q=function(){X(),x(function(e){var t;return W({search_key:null!==(t=null==e?void 0:e.search_key)&&void 0!==t?t:null},D)}),L(!1)},$=function(e){var t,n,r=e.hq,o=e.child,a={user_ids:null!==(t=null==r?void 0:r.map(function(e){return{label:null==e?void 0:e.user_name,value:null==e?void 0:e.user_id,checked:!1}}))&&void 0!==t?t:[],hq_ids:null!==(n=null==o?void 0:o.map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}}))&&void 0!==n?n:[]};B(a)},X=function(){var e;Promise.all([(0,m.Kq)(f,g,h,\"MDO\"===l?null==n?void 0:n.sales_hierarchy_id:null==n||null===(e=n.parent)||void 0===e?void 0:e.sales_hierarchy_id),(0,m.mq)(f,g,h)]).then(function(e){var t,r=K(e,1)[0];$({hq:r}),(0,m.Ol)(f,g,h,\"MDO\"===l?null==n?void 0:n.sales_hierarchy_id:null==n||null===(t=n.parent)||void 0===t?void 0:t.sales_hierarchy_id).then(function(e){return $({hq:r,child:e})}).catch(function(e){O({message:e.message,type:\"error\"})})}).catch(function(e){O({message:e.message,type:\"error\"})})};return(0,a.useEffect)(function(){Q()},[l]),(0,a.useEffect)(function(){var e,t,r,o;n&&(o=W(W({},M),{},{saleshierarchy_id:\"MDO\"===l?null==n?void 0:n.sales_hierarchy_id:null==n||null===(e=n.parent)||void 0===e?void 0:e.sales_hierarchy_id,start_date:null!=M&&M.start_date?(0,_.Yq)(null==M?void 0:M.start_date,\"YYYY-MM-DD\"):null,end_date:null!=M&&M.end_date?(0,_.Yq)(null==M?void 0:M.end_date,\"YYYY-MM-DD\"):null,hq_ids:(null==M||null===(t=M.hq_ids)||void 0===t?void 0:t.map(function(e){return null==e?void 0:e.value}))||null,user_ids:(null==M||null===(r=M.user_ids)||void 0===r?void 0:r.map(function(e){return null==e?void 0:e.value}))||null}),(0,m.yW)(f,g,h,o).then(function(e){H(null==e?void 0:e.download_hq_history_list),V(null==e?void 0:e.total_elements)}))},[M,n]),i().createElement(i().Fragment,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2,\"data-testid\":\"hq-history\"},i().createElement(o.A,{mt:2},i().createElement(T.A,{onSearchValueChange:function(e){return x(W(W({},M),{},{search_key:e||null,page_no:0}))},placeholderText:(0,A.t)(\"SEARCH\"),searchValue:\"searchValue\",searchBasedOn:(0,A.t)(\"SEARCH_BY_HQ_NAME\")})),i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},i().createElement(S.A,{buttonName:null!==(t=(0,A.t)(\"FILTERS\"))&&void 0!==t?t:\"Filters\",className:Object.keys(M).length!==z.S&&\"button-with-dot\",color:\"trasnparent\",fullwidth:!1,endIcon:i().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){L(!0)}}),i().createElement(S.A,{startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:\"Download \".concat(s,\" History\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){return s=(0,_.c1)(3),u={saleshierarchy_id:\"MDO\"===l?null==n?void 0:n.sales_hierarchy_id:null==n||null===(e=n.parent)||void 0===e?void 0:e.sales_hierarchy_id,start_date:null!=M&&M.start_date?(0,_.Yq)(null==M?void 0:M.start_date,\"YYYY-MM-DD\"):s.format(\"YYYY-MM-DD\"),end_date:null!=M&&M.end_date?(0,_.Yq)(null==M?void 0:M.end_date,\"YYYY-MM-DD\"):(0,_.AV)(\"YYYY-MM-DD\"),hq_ids:(null==M||null===(t=M.hq_ids)||void 0===t?void 0:t.filter(function(e){return null==e?void 0:e.value}).map(function(e){return null==e?void 0:e.value}))||null,user_ids:(null==M||null===(r=M.user_ids)||void 0===r?void 0:r.filter(function(e){return null==e?void 0:e.value}).map(function(e){return null==e?void 0:e.value}))||null},c=\"\".concat(y.p.DOWNLOAD_HQ_HISTORY_REPORT),void(0,E.Un)({baseUrl:\"\".concat(g).concat(c),options:{headers:{Authorization:\"Bearer \".concat(null==f?void 0:f.AccessToken),\"country-code\":null==f||null===(o=f.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":\"\".concat(null==f?void 0:f.selectedBusinessUnit.bu_id,\" \"),\"user-id\":\"\".concat(null==f||null===(a=f.UserDetails)||void 0===a?void 0:a.user_id,\" \"),\"role-type-name\":\" \".concat(null==f||null===(i=f.UserDetails)||void 0===i||null===(i=i.role_type_details)||void 0===i?void 0:i.role_type_name)},data:u}}).then(function(e){h(!1)}).catch(function(e){h(!1),O({message:(0,A.t)(\"DOWNLOAD_MDO_FAILED\"),type:\"error\"})});var e,t,r,o,a,i,s,u,c}}))),\"MDO\"===l?i().createElement(o.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\"},i().createElement(w.A,{rows:j,columnDefs:q(b.rT),noDataTemplate:\"\".concat((0,A.t)(\"NO_DATA_MSG\"))})):i().createElement(o.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\"},i().createElement(w.A,{rows:j,columnDefs:q(b.mR),noDataTemplate:\"\".concat((0,A.t)(\"NO_DATA_MSG\"))})),N&&i().createElement(G,{onRequestClose:function(){return L(!1)},isFilterOpen:N,onFilterSubmit:function(e){return function(e){L(!1),x(W(W(W({},M),e),{},{page_no:0}))}(e)},onClearFilters:Q,filtersOptions:k,selectedFilters:M,hqName:s,userName:u}),i().createElement(C.A,{totalPageCount:Math.ceil(Y/M.page_size),totalElements:Y,onPageChange:function(e){x(function(t){return W(W({},t),{},{page_no:Number(e)})})}}),i().createElement(v.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0}))};n(15086);var J=n(36843),Z=(0,n(11848).Ay)(o.A)(function(e){return e.theme,{\"& .custom-multiselect\":{width:\"300px\"}}}),ee=n(64121),te=n(18978);function ne(e){return ne=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ne(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ne(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const se=function(){var e=(0,a.useContext)(d.v),t=e.BackOfficeProps,n=t.globalStore.User,l=t.baseurl,s=e.triggerShowLoader,u=e.triggerToastMsg,c=ie((0,a.useState)(\"\"),2),p=c[0],f=c[1],g=ie((0,a.useState)(\"\"),2),h=g[0],m=g[1],v=ie((0,a.useState)([]),2),A=v[0],b=v[1],_=ie((0,a.useState)([]),2),C=_[0],w=_[1],T=(0,P.Bd)().t,O=C.map(function(e){var t;return{label:e.hq_name,value:e.hq_data_id,checked:null!==(t=e.checked)&&void 0!==t&&t}});(0,a.useEffect)(function(){R()},[]);var R=function(){var e;null===(e=(0,te.i)(n,l,s))||void 0===e||e.then(function(e){if(e){var t,n=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});b(n),null!=n&&n.length&&m(null===(t=n[(null==n?void 0:n.length)-1])||void 0===t?void 0:t.label)}throw new Error(T(\"UPLOAD_LIQUIDATION_ERROR\"))}).catch(function(e){u({message:e,type:\"error\"})})};return(0,a.useEffect)(function(){(0,J.SI)(n,l,s).then(function(e){var t;return(0,J.Vs)(n,l,s,null==e||null===(t=e[0])||void 0===t?void 0:t.value)}).then(function(e){return(0,J.Nx)(n,l,s,null==e?void 0:e.parent_id)}).then(function(e){var t=null==e?void 0:e[(null==e?void 0:e.length)-1];return f(null==t?void 0:t.name),(0,J.F1)(n,l,s,null==t?void 0:t.id)}).then(function(e){w(e)}).catch(function(e){u({message:null==e?void 0:e.message,type:\"error\"})})},[]),i().createElement(Z,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2,\"data-testid\":\"hq-history\"},i().createElement(o.A,{display:\"flex\",flexDirection:\"row\",mt:2,alignItems:\"center\"},i().createElement(o.A,{className:\"custom-multiselect\"},i().createElement(D.A,{variant:\"subtitle2\"},p,\" \"),i().createElement(k.A,{name:p,showClearAll:!0,labelKey:\"label\",options:O,onCheckboxChange:function(e){var t=C.map(function(t){var n;return oe(oe({},t),{},{checked:null!==(n=e.some(function(e){return e.value===t.hq_data_id&&e.checked}))&&void 0!==n&&n})});w(t)},selectedOptions:(null==O?void 0:O.filter(function(e){return null==e?void 0:e.checked}).map(function(e){return null==e?void 0:e.label}))||[],defaultLabel:\"Select\",isSortReq:!0})),i().createElement(o.A,{className:\"custom-multiselect\"},i().createElement(D.A,{variant:\"subtitle2\"},T(\"YEAR_LABEL\")),i().createElement(ee.A,{name:\"year\",customClassName:{backgroundColor:\"#f5f5f5\"},onChange:function(e,t){m(t.label)},options:A,labelKey:\"label\",label:\"\",selectedOption:null!=h?h:\"\",value:null!=h?h:\"\",defaultLabel:T(\"SELECT_YEAR\")}))),i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},i().createElement(S.A,{disabled:!O.some(function(e){return e.checked}),startIcon:i().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:T(\"DOWNLOAD_LIQUIDATIONS\"),fullwidth:!1,variant:\"outlined\",type:\"submit\",onButtonClick:function(){var e,t=C.filter(function(e){return e.checked}).map(function(e){return e.hq_data_id});return(0,E.Un)({baseUrl:\"\".concat(l).concat(y.p.DOWNLOAD_LIQUIDATIONS_REPORT),options:{headers:{Authorization:\"Bearer \".concat(null==n?void 0:n.AccessToken),\"country-code\":null==n||null===(e=n.selectedCountry)||void 0===e?void 0:e.countryCode,\"bu-id\":\"\".concat(n.selectedBusinessUnit.bu_id)},data:{parent_hq_ids:t,year:h}}}).then(function(){s(!1)}).catch(function(e){s(!1),u({message:null==e?void 0:e.message,type:\"error\"})})}}))))};var ue=n(43563);function ce(e){return ce=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ce(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ce(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ce(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||me(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||me(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function me(e,t){if(e){if(\"string\"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ae=function(){var e=(0,l.zy)(),t=(0,a.useContext)(d.v),n=t.BackOfficeProps,v=n.globalStore.User,A=n.baseurl,y=t.triggerShowLoader,E=t.triggerToastMsg,b=function(e){var t,n=null==e||null===(t=e.userRoleControls)||void 0===t?void 0:t.module_access_information_dto_list.find(function(e){return\"LIQUIDATION-TARGETS-ACTUALS\"===(null==e?void 0:e.module_name)});return n?n.permissions:[]}(null==v?void 0:v.selectedBusinessUnit),_=new URLSearchParams(e.search).get(\"tabname\"),C=he((0,a.useState)(\"\"),2),w=C[0],S=C[1],T=he((0,a.useState)({tablist:[],currentTabs:\"\"}),2),O=T[0],D=T[1];(0,a.useEffect)(function(){var e;w&&(null===(e=(0,m.q4)(v,w,A,y))||void 0===e||e.then(function(e){e&&function(e){var t,n,r,o,a;o={tablist:[{id:1,tabName:\"\".concat(null==e?void 0:e.hq_hierarchy_name,\" History\"),path:u.fp.MDO_HQ_History,component:i().createElement(X,{tabsData:e,tabType:\"MDO\",hqName:null==e?void 0:e.hq_hierarchy_name,userName:null==e?void 0:e.sales_hierarchy_code}),queryParam:{tabname:u.fp.MDO_HQ_History}},{id:2,tabName:\"\".concat(null==e||null===(t=e.parent)||void 0===t?void 0:t.hq_hierarchy_name,\" History\"),path:u.fp.TM_HQ_HISTORY,component:i().createElement(X,{tabsData:e,tabType:\"TM\",hqName:null==e||null===(n=e.parent)||void 0===n?void 0:n.hq_hierarchy_name,userName:null==e||null===(r=e.parent)||void 0===r?void 0:r.sales_hierarchy_code}),queryParam:{tabname:u.fp.TM_HQ_HISTORY}}].concat(ge(b.length>0?[{id:3,tabName:z.A.LIQUIDATIONS_TAB_NAME,path:u.fp.LIQUIDATIONS,component:i().createElement(se,null),queryParam:{tabname:u.fp.LIQUIDATIONS}}]:[])),currentTabs:u.fp.MDO_HQ_History},a={moduleName:s.Rk.RETAILERS,keys:[s.Rk.RETAILERS_ENABLE_BGP],apiName:s.Rk.RETAILERS_ENABLE_BGP},(0,c.j)((0,p.rZ)(v,A),y,a).then(function(e){var t;\"true\"===(null===(t=(0,p.Ws)(s.Rk.RETAILERS_ENABLE_BGP,e))||void 0===t?void 0:t.value)&&(0,p.oH)(null==v?void 0:v.selectedBusinessUnit,\"RETAILERS\",\"RETAILER-BGP\").length>0?D(function(e){return{tablist:[].concat(ge(o.tablist),[{id:4,tabName:\"My Downloads\",path:u.fp.MY_DOWNLOADS,component:i().createElement(ue.A,null),queryParam:{tabname:u.fp.MY_DOWNLOADS}}]),currentTabs:u.fp.MDO_HQ_History}}):D(o)}).catch(function(e){})}(e)}).catch(function(e){E({message:e.message,type:\"error\"})}))},[w]),(0,a.useEffect)(function(){var e,t;null===(e=(0,m.Rc)(v,null==v||null===(t=v.selectedBusinessUnit)||void 0===t?void 0:t.bu_id,A,y))||void 0===e||e.then(function(e){e&&S(e.sales_hierarchy_id)}).catch(function(e){E({message:e.message,type:\"error\"})})},[]),(0,a.useEffect)(function(){_&&D(function(e){return pe(pe({},e),{},{currentTabs:_})})},[_,O.tablist]);var R=(0,a.useCallback)(function(){var t;return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:_?\"\".concat(_).concat(e.search):\"\".concat(O.currentTabs,\"/?\").concat((0,p.Nr)({tabname:null!=_?_:O.currentTabs}))})}),null==O||null===(t=O.tablist)||void 0===t?void 0:t.map(function(e){return i().createElement(l.qh,{key:e.id,path:e.path,element:e.component,id:e.tabName})}))},[null==O?void 0:O.tablist]);return i().createElement(h.M,{\"data-testid\":\"downloads\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(o.A,null,i().createElement(f.A,{routePathName:[{name:u.F_.Downloads,path:u.fp.Downloads}]}))),i().createElement(g.A,{tabStateProps:O,handleTabChange:function(e){return function(e){D(function(t){return pe(pe({},t),{},{currentTabs:e})})}(e)},isParamsReq:!0}),O.tablist.length>0&&R())}},79329:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(58168),o=n(98587),a=n(31523),i=n(2879),l=n(22505),s=n(56677);const u=[\"elementType\",\"externalSlotProps\",\"ownerState\",\"skipResolvingSlotProps\"],c=function(e){var t;const{elementType:n,externalSlotProps:c,ownerState:d,skipResolvingSlotProps:p=!1}=e,f=(0,o.A)(e,u),g=p?{}:(0,s.A)(c,d),{props:h,internalRef:m}=(0,l.A)((0,r.A)({},f,{externalSlotProps:g})),v=(0,a.A)(m,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,i.A)(n,(0,r.A)({},h,{ref:v}),d)}},79381:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a125207e3c8340d40bbc.eot\"},79402:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"en-nz\",{months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),weekdaysShort:\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),weekdaysMin:\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},dayOfMonthOrdinalParse:/\\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")},week:{dow:1,doy:4}})}(n(95093))},79432:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(48981),a=n(71072);r({target:\"Object\",stat:!0,forced:n(79039)(function(){a(1)})},{keys:function(e){return a(o(e))}})},79472:(e,t,n)=>{\"use strict\";var r,o=n(44576),a=n(18745),i=n(94901),l=n(84215),s=n(82839),u=n(67680),c=n(22812),d=o.Function,p=/MSIE .\\./.test(s)||\"BUN\"===l&&((r=o.Bun.version.split(\".\")).length<3||\"0\"===r[0]&&(r[1]<3||\"3\"===r[1]&&\"0\"===r[2]));e.exports=function(e,t){var n=t?2:1;return p?function(r,o){var l=c(arguments.length,1)>n,s=i(r)?r:d(r),p=l?u(arguments,n):[],f=l?function(){a(s,this,p)}:s;return t?e(f,o):e(f)}:e}},79485:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>m}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23792),n(62062),n(89572),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(47764),n(23500),n(62953);var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);function p(e){return p=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=p(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==p(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules,o=n.length>0&&n.map(function(e){return g(g({},e),{},{path:e.moduleName===i.pW[\"EVENTS-PLANNING-TARGET\"]?\"\".concat(i.fp.EventsPlanning,\"/eventdatalist\"):e.path})});return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Events,path:i.fp.EntryPath}]})),o.length>0?a().createElement(d.A,{moduleData:o}):a().createElement(c.A,null))}},79504:(e,t,n)=>{\"use strict\";var r=n(40616),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},79538:e=>{\"use strict\";e.exports=ReferenceError},79612:e=>{\"use strict\";e.exports=Object},79674:(e,t,n)=>{var r=n(43360),o=n(30641),a=n(15389);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,t(e,o,a),e)}),n}},79680:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={m:[\"eng Minutt\",\"enger Minutt\"],h:[\"eng Stonn\",\"enger Stonn\"],d:[\"een Dag\",\"engem Dag\"],M:[\"ee Mount\",\"engem Mount\"],y:[\"ee Joer\",\"engem Joer\"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale(\"lb\",{months:\"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg\".split(\"_\"),weekdaysShort:\"So._Mé._Dë._Më._Do._Fr._Sa.\".split(\"_\"),weekdaysMin:\"So_Mé_Dë_Më_Do_Fr_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm [Auer]\",LTS:\"H:mm:ss [Auer]\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY H:mm [Auer]\",LLLL:\"dddd, D. MMMM YYYY H:mm [Auer]\"},calendar:{sameDay:\"[Haut um] LT\",sameElse:\"L\",nextDay:\"[Muer um] LT\",nextWeek:\"dddd [um] LT\",lastDay:\"[Gëschter um] LT\",lastWeek:function(){switch(this.day()){case 2:case 4:return\"[Leschten] dddd [um] LT\";default:return\"[Leschte] dddd [um] LT\"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(\" \")))?\"a \"+e:\"an \"+e},past:function(e){return n(e.substr(0,e.indexOf(\" \")))?\"viru \"+e:\"virun \"+e},s:\"e puer Sekonnen\",ss:\"%d Sekonnen\",m:t,mm:\"%d Minutten\",h:t,hh:\"%d Stonnen\",d:t,dd:\"%d Deeg\",M:t,MM:\"%d Méint\",y:t,yy:\"%d Joer\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},79716:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n(33800);function a(){return r.useContext(o.A)}},79770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},79801:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>B});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(79329),u=n(73524),c=n(45061),d=n(11848),p=n(25669),f=n(20973),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiBackdrop\",e)}(0,g.A)(\"MuiBackdrop\",[\"root\",\"invisible\"]);var v=n(74848);const A=[\"children\",\"className\",\"component\",\"components\",\"componentsProps\",\"invisible\",\"open\",\"slotProps\",\"slots\",\"TransitionComponent\",\"transitionDuration\"],y=(0,d.Ay)(\"div\",{name:\"MuiBackdrop\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>(0,o.A)({position:\"fixed\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",right:0,bottom:0,top:0,left:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",WebkitTapHighlightColor:\"transparent\"},e.invisible&&{backgroundColor:\"transparent\"})),E=a.forwardRef(function(e,t){var n,a,s;const u=(0,p.b)({props:e,name:\"MuiBackdrop\"}),{children:c,className:d,component:g=\"div\",components:h={},componentsProps:E={},invisible:b=!1,open:_,slotProps:C={},slots:w={},TransitionComponent:S=f.A,transitionDuration:T}=u,O=(0,r.A)(u,A),D=(0,o.A)({},u,{component:g,invisible:b}),R=(e=>{const{classes:t,invisible:n}=e,r={root:[\"root\",n&&\"invisible\"]};return(0,l.A)(r,m,t)})(D),N=null!=(n=C.root)?n:E.root;return(0,v.jsx)(S,(0,o.A)({in:_,timeout:T},O,{children:(0,v.jsx)(y,(0,o.A)({\"aria-hidden\":!0},N,{as:null!=(a=null!=(s=w.root)?s:h.Root)?a:g,className:(0,i.A)(R.root,d,null==N?void 0:N.className),ownerState:(0,o.A)({},D,null==N?void 0:N.ownerState),classes:R,ref:t,children:c}))}))});var b=n(31523),_=n(32325),C=n(71547),w=n(76673),S=n(74959),T=n(44877),O=n(93205);function D(e,t){t?e.setAttribute(\"aria-hidden\",\"true\"):e.removeAttribute(\"aria-hidden\")}function R(e){return parseInt((0,T.A)(e).getComputedStyle(e).paddingRight,10)||0}function N(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==[\"TEMPLATE\",\"SCRIPT\",\"STYLE\",\"LINK\",\"MAP\",\"META\",\"NOSCRIPT\",\"PICTURE\",\"COL\",\"COLGROUP\",\"PARAM\",\"SLOT\",\"SOURCE\",\"TRACK\"].indexOf(e.tagName),n=\"INPUT\"===e.tagName&&\"hidden\"===e.getAttribute(\"type\");return t||n}(e);t&&n&&D(e,o)})}function L(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const P=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&D(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{\"true\"===e.getAttribute(\"aria-hidden\")&&t.push(e)}),t}(t);N(t,e.mount,e.modalRef,r,!0);const o=L(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=L(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,_.A)(e);return t.body===e?(0,T.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,O.A)((0,_.A)(r));n.push({value:r.style.paddingRight,property:\"padding-right\",el:r}),r.style.paddingRight=`${R(r)+e}px`;const t=(0,_.A)(r).querySelectorAll(\".mui-fixed\");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:\"padding-right\",el:t}),t.style.paddingRight=`${R(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=(0,_.A)(r).body;else{const t=r.parentElement,n=(0,T.A)(r);e=\"HTML\"===(null==t?void 0:t.nodeName)&&\"scroll\"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:\"overflow\",el:e},{value:e.style.overflowX,property:\"overflow-x\",el:e},{value:e.style.overflowY,property:\"overflow-y\",el:e}),e.style.overflow=\"hidden\"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=L(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&D(e.modalRef,t),N(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&D(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function M(e){return(0,h.Ay)(\"MuiModal\",e)}(0,g.A)(\"MuiModal\",[\"root\",\"hidden\",\"backdrop\"]);const x=[\"BackdropComponent\",\"BackdropProps\",\"classes\",\"className\",\"closeAfterTransition\",\"children\",\"container\",\"component\",\"components\",\"componentsProps\",\"disableAutoFocus\",\"disableEnforceFocus\",\"disableEscapeKeyDown\",\"disablePortal\",\"disableRestoreFocus\",\"disableScrollLock\",\"hideBackdrop\",\"keepMounted\",\"onBackdropClick\",\"onClose\",\"onTransitionEnter\",\"onTransitionExited\",\"open\",\"slotProps\",\"slots\",\"theme\"],I=(0,d.Ay)(\"div\",{name:\"MuiModal\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,o.A)({position:\"fixed\",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:\"hidden\"})),k=(0,d.Ay)(E,{name:\"MuiModal\",slot:\"Backdrop\",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),B=a.forwardRef(function(e,t){var n,d,f,g,h,m;const A=(0,p.b)({name:\"MuiModal\",props:e}),{BackdropComponent:y=k,BackdropProps:E,className:T,closeAfterTransition:O=!1,children:R,container:N,component:L,components:B={},componentsProps:F={},disableAutoFocus:j=!1,disableEnforceFocus:H=!1,disableEscapeKeyDown:U=!1,disablePortal:Y=!1,disableRestoreFocus:G=!1,disableScrollLock:z=!1,hideBackdrop:V=!1,keepMounted:q=!1,onBackdropClick:W,open:Q,slotProps:K,slots:$}=A,X=(0,r.A)(A,x),J=(0,o.A)({},A,{closeAfterTransition:O,disableAutoFocus:j,disableEnforceFocus:H,disableEscapeKeyDown:U,disablePortal:Y,disableRestoreFocus:G,disableScrollLock:z,hideBackdrop:V,keepMounted:q}),{getRootProps:Z,getBackdropProps:ee,getTransitionProps:te,portalRef:ne,isTopModal:re,exited:oe,hasTransition:ae}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=P,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:u,children:c,onClose:d,open:p,rootRef:f}=e,g=a.useRef({}),h=a.useRef(null),m=a.useRef(null),v=(0,b.A)(m,f),[A,y]=a.useState(!p),E=function(e){return!!e&&e.props.hasOwnProperty(\"in\")}(c);let T=!0;\"false\"!==e[\"aria-hidden\"]&&!1!==e[\"aria-hidden\"]||(T=!1);const O=()=>(g.current.modalRef=m.current,g.current.mount=h.current,g.current),R=()=>{i.mount(O(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},N=(0,C.A)(()=>{const e=function(e){return\"function\"==typeof e?e():e}(t)||(0,_.A)(h.current).body;i.add(O(),e),m.current&&R()}),L=a.useCallback(()=>i.isTopModal(O()),[i]),M=(0,C.A)(e=>{h.current=e,e&&(p&&L()?R():m.current&&D(m.current,T))}),x=a.useCallback(()=>{i.remove(O(),T)},[T,i]);a.useEffect(()=>()=>{x()},[x]),a.useEffect(()=>{p?N():E&&l||x()},[p,x,E,l,N]);const I=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),\"Escape\"===t.key&&229!==t.which&&L()&&(n||(t.stopPropagation(),d&&d(t,\"escapeKeyDown\")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,\"backdropClick\")};return{getRootProps:(t={})=>{const n=(0,S.A)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,o.A)({},n,t);return(0,o.A)({role:\"presentation\"},r,{onKeyDown:I(r),ref:v})},getBackdropProps:(e={})=>{const t=e;return(0,o.A)({\"aria-hidden\":!0},t,{onClick:k(t),open:p})},getTransitionProps:()=>({onEnter:(0,w.A)(()=>{y(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,w.A)(()=>{y(!0),u&&u(),l&&x()},null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:M,isTopModal:L,exited:A,hasTransition:E}}((0,o.A)({},J,{rootRef:t})),ie=(0,o.A)({},J,{exited:oe}),le=(e=>{const{open:t,exited:n,classes:r}=e,o={root:[\"root\",!t&&n&&\"hidden\"],backdrop:[\"backdrop\"]};return(0,l.A)(o,M,r)})(ie),se={};if(void 0===R.props.tabIndex&&(se.tabIndex=\"-1\"),ae){const{onEnter:e,onExited:t}=te();se.onEnter=e,se.onExited=t}const ue=null!=(n=null!=(d=null==$?void 0:$.root)?d:B.Root)?n:I,ce=null!=(f=null!=(g=null==$?void 0:$.backdrop)?g:B.Backdrop)?f:y,de=null!=(h=null==K?void 0:K.root)?h:F.root,pe=null!=(m=null==K?void 0:K.backdrop)?m:F.backdrop,fe=(0,s.A)({elementType:ue,externalSlotProps:de,externalForwardedProps:X,getSlotProps:Z,additionalProps:{ref:t,as:L},ownerState:ie,className:(0,i.A)(T,null==de?void 0:de.className,null==le?void 0:le.root,!ie.open&&ie.exited&&(null==le?void 0:le.hidden))}),ge=(0,s.A)({elementType:ce,externalSlotProps:pe,additionalProps:E,getSlotProps:e=>ee((0,o.A)({},e,{onClick:t=>{W&&W(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,i.A)(null==pe?void 0:pe.className,null==E?void 0:E.className,null==le?void 0:le.backdrop),ownerState:ie});return q||Q||ae&&!oe?(0,v.jsx)(c.A,{ref:ne,container:N,disablePortal:Y,children:(0,v.jsxs)(ue,(0,o.A)({},fe,{children:[!V&&y?(0,v.jsx)(ce,(0,o.A)({},ge)):null,(0,v.jsx)(u.A,{disableEnforceFocus:H,disableAutoFocus:j,disableRestoreFocus:G,isEnabled:re,open:Q,children:a.cloneElement(R,se)})]}))}):null})},79834:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"pt\",{months:\"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro\".split(\"_\"),monthsShort:\"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez\".split(\"_\"),weekdays:\"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado\".split(\"_\"),weekdaysShort:\"Dom_Seg_Ter_Qua_Qui_Sex_Sáb\".split(\"_\"),weekdaysMin:\"Do_2ª_3ª_4ª_5ª_6ª_Sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY HH:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY HH:mm\"},calendar:{sameDay:\"[Hoje às] LT\",nextDay:\"[Amanhã às] LT\",nextWeek:\"dddd [às] LT\",lastDay:\"[Ontem às] LT\",lastWeek:function(){return 0===this.day()||6===this.day()?\"[Último] dddd [às] LT\":\"[Última] dddd [às] LT\"},sameElse:\"L\"},relativeTime:{future:\"em %s\",past:\"há %s\",s:\"segundos\",ss:\"%d segundos\",m:\"um minuto\",mm:\"%d minutos\",h:\"uma hora\",hh:\"%d horas\",d:\"um dia\",dd:\"%d dias\",w:\"uma semana\",ww:\"%d semanas\",M:\"um mês\",MM:\"%d meses\",y:\"um ano\",yy:\"%d anos\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},79846:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={s:[\"viensas secunds\",\"'iensas secunds\"],ss:[e+\" secunds\",e+\" secunds\"],m:[\"'n míut\",\"'iens míut\"],mm:[e+\" míuts\",e+\" míuts\"],h:[\"'n þora\",\"'iensa þora\"],hh:[e+\" þoras\",e+\" þoras\"],d:[\"'n ziua\",\"'iensa ziua\"],dd:[e+\" ziuas\",e+\" ziuas\"],M:[\"'n mes\",\"'iens mes\"],MM:[e+\" mesen\",e+\" mesen\"],y:[\"'n ar\",\"'iens ar\"],yy:[e+\" ars\",e+\" ars\"]};return r||t?o[n][0]:o[n][1]}e.defineLocale(\"tzl\",{months:\"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar\".split(\"_\"),monthsShort:\"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec\".split(\"_\"),weekdays:\"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi\".split(\"_\"),weekdaysShort:\"Súl_Lún_Mai_Már_Xhú_Vié_Sát\".split(\"_\"),weekdaysMin:\"Sú_Lú_Ma_Má_Xh_Vi_Sá\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM [dallas] YYYY\",LLL:\"D. MMMM [dallas] YYYY HH.mm\",LLLL:\"dddd, [li] D. MMMM [dallas] YYYY HH.mm\"},meridiemParse:/d\\'o|d\\'a/i,isPM:function(e){return\"d'o\"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?\"d'o\":\"D'O\":n?\"d'a\":\"D'A\"},calendar:{sameDay:\"[oxhi à] LT\",nextDay:\"[demà à] LT\",nextWeek:\"dddd [à] LT\",lastDay:\"[ieiri à] LT\",lastWeek:\"[sür el] dddd [lasteu à] LT\",sameElse:\"L\"},relativeTime:{future:\"osprei %s\",past:\"ja%s\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},79978:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565),a=n(79504),i=n(67750),l=n(94901),s=n(20034),u=n(60788),c=n(655),d=n(55966),p=n(61034),f=n(2478),g=n(78227),h=n(96395),m=g(\"replace\"),v=TypeError,A=a(\"\".indexOf),y=a(\"\".replace),E=a(\"\".slice),b=Math.max;r({target:\"String\",proto:!0},{replaceAll:function(e,t){var n,r,a,g,_,C,w,S,T,O,D=i(this),R=0,N=\"\";if(s(e)){if((n=u(e))&&(r=c(i(p(e))),!~A(r,\"g\")))throw new v(\"`.replaceAll` does not allow non-global regexes\");if(a=d(e,m))return o(a,e,D,t);if(h&&n)return y(c(D),e,t)}for(g=c(D),_=c(e),(C=l(t))||(t=c(t)),w=_.length,S=b(1,w),T=A(g,_);-1!==T;)O=C?c(t(_,T,g)):f(_,g,T,[],void 0,t),N+=E(g,R,T)+O,R=T+w,T=T+S>g.length?-1:A(g,_,T+S);return R<g.length&&(N+=E(g,R)),N}})},80079:(e,t,n)=>{var r=n(63702),o=n(70080),a=n(24739),i=n(48655),l=n(31175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},80349:(e,t,n)=>{\"use strict\";e.exports=n.p+\"366821ece11c75d1f821.svg\"},80507:(e,t,n)=>{\"use strict\";var r=n(70453),o=n(36556),a=n(58859),i=n(69675),l=r(\"%Map%\",!0),s=o(\"Map.prototype.get\",!0),u=o(\"Map.prototype.set\",!0),c=o(\"Map.prototype.has\",!0),d=o(\"Map.prototype.delete\",!0),p=o(\"Map.prototype.size\",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i(\"Side channel does not contain \"+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,n){e||(e=new l),u(e,t,n)}};return t}},80509:(e,t,n)=>{\"use strict\";e.exports=n.p+\"a6ec96173792bfadef4c.svg\"},80550:(e,t,n)=>{\"use strict\";var r=n(44576);e.exports=r.Promise},80631:(e,t,n)=>{var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},80648:(e,t,n)=>{\"use strict\";n.d(t,{SI:()=>s,SY:()=>i,_i:()=>c,hT:()=>l,le:()=>u}),n(28706);var r=n(8085),o=n(13075),a=n(73300),i=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=r.p.GET_DEMO_DISPATCH_LIST,s.payLoad=a,s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,o.AT)(\"post\",s,!0)},l=function(e,t,n){var a,i={};return i.domain=t,i.endPoint=r.p.GET_CROP_FILTER_OPTIONS,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,o.AT)(\"get\",i,!0)},s=function(e,t,n){var i,l={};return l.domain=t,l.endPoint=\"\".concat(r.p.GET_CONFIGURATION_VALUES,\"?moduleName=\").concat(a.ov.DEMO_TRACKING,\"&keys=\").concat(a.ov.DEMO_KEY),l.customHeaders={\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),portfolio_code:\"DEFAULT\"},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)},u=function(e,t,n,a){var i,l,s,u,c,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",p={};return p.domain=t,p.endPoint=r.p.GET_HQ_NAME,p.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"bu-id\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l?void 0:l.bu_id,\"role-type-name\":null==e||null===(s=e.UserDetails)||void 0===s||null===(s=s.role_type_details)||void 0===s?void 0:s.role_type_name,\"user-id\":null==e||null===(u=e.UserDetails)||void 0===u?void 0:u.user_id,\"role-id\":null==e||null===(c=e.selectedBusinessUnit)||void 0===c||null===(c=c.userRoleControls)||void 0===c?void 0:c.roleId},p.payLoad={sales_hierarchy_id:a,portfolio_code:(0,o.XD)(d,e)},p.triggerLoader=n,(0,o.AT)(\"get\",p,!0)},c=function(e,t,n,a){var i,l={};return l.domain=t,l.payLoad=a,l.endPoint=r.p.GET_DISTRIBUTORS_NAMES,l.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,o.AT)(\"get\",l,!0)}},80663:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=(0,n(67163).A)()},80741:e=>{\"use strict\";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},80772:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},80793:(e,t,n)=>{\"use strict\";var r=n(13167),o=n(71748);Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=function(t){function n(e){var t;return(0,l.default)(this,n),(t=(0,u.default)(this,(0,c.default)(n).call(this,e))).timer=null,t.state={},t.handleChangeIndex=function(e,n,r){var o=t.props,a=o.slideCount,i=o.onChangeIndex,l=e-n,s=t.state.index+l;a&&(s=(0,f.mod)(s,a)),void 0===t.props.index&&t.setIndex(s,e,l),i&&i(s,t.state.index,r)},t.handleTransitionEnd=function(){t.timer=setTimeout(function(){t.setWindow()},0),t.props.onTransitionEnd&&t.props.onTransitionEnd()},t.state.index=e.index||0,t}return(0,d.default)(n,t),(0,s.default)(n,[{key:\"UNSAFE_componentWillMount\",value:function(){this.setWindow(this.state.index)}},{key:\"UNSAFE_componentWillReceiveProps\",value:function(e){var t=e.index;if(\"number\"==typeof t&&t!==this.props.index){var n=t-this.props.index;this.setIndex(t,this.state.indexContainer+n,n)}}},{key:\"componentWillUnmount\",value:function(){clearInterval(this.timer)}},{key:\"setIndex\",value:function(e,t,n){var r={index:e,indexContainer:t,indexStart:this.state.indexStart,indexStop:this.state.indexStop};n>0&&(!this.props.slideCount||r.indexStop<this.props.slideCount-1)&&(r.indexStop+=1),e>r.indexStop&&(r.indexStop=e);var o=r.indexStart-e;o>0&&(r.indexContainer+=o,r.indexStart-=o),this.setState(r)}},{key:\"setWindow\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.index,t=this.props.slideCount,n=this.props.overscanSlideBefore,r=this.props.overscanSlideAfter;t&&(n>e&&(n=e),r+e>t-1&&(r=t-e-1)),this.setState({indexContainer:n,indexStart:e-n,indexStop:e+r})}},{key:\"render\",value:function(){for(var t=this.props,n=(t.children,t.index,t.onChangeIndex,t.onTransitionEnd,t.overscanSlideAfter,t.overscanSlideBefore,t.slideCount,t.slideRenderer),r=(0,i.default)(t,[\"children\",\"index\",\"onChangeIndex\",\"onTransitionEnd\",\"overscanSlideAfter\",\"overscanSlideBefore\",\"slideCount\",\"slideRenderer\"]),o=this.state,l=o.indexContainer,s=o.indexStart,u=o.indexStop,c=[],d=s;d<=u;d+=1)c.push(n({index:d,key:d}));return p.default.createElement(e,(0,a.default)({index:l,onChangeIndex:this.handleChangeIndex,onTransitionEnd:this.handleTransitionEnd},r),c)}}]),n}(p.PureComponent);return t.propTypes={},t.defaultProps={overscanSlideAfter:2,overscanSlideBefore:3},t};var a=o(n(80772)),i=o(n(35233)),l=o(n(81297)),s=o(n(44953)),u=o(n(74338)),c=o(n(12977)),d=o(n(67217)),p=r(n(81970)),f=(o(n(5556)),n(77004))},80851:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>v});var r=n(98587),o=n(77387),a=n(81970),i=n.n(a),l=n(40961);var s=n(17241),u=n(92403),c=\"unmounted\",d=\"exited\",p=\"entering\",f=\"entered\",g=\"exiting\",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=d,r.appearStatus=p):o=f:o=t.unmountOnExit||t.mountOnEnter?c:d,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(t=p):n!==p&&n!==f||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&\"number\"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&(0,u.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:p},function(){t.props.onEntering(a,i),t.onTransitionEnd(u,function(){t.safeSetState({status:f},function(){t.props.onEntered(a,i)})})})):this.safeSetState({status:f},function(){t.props.onEntered(a)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:g},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})):this.safeSetState({status:d},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,[\"children\",\"in\",\"mountOnEnter\",\"unmountOnExit\",\"appear\",\"enter\",\"exit\",\"timeout\",\"addEndListener\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\",\"nodeRef\"]));return i().createElement(s.A.Provider,{value:null},\"function\"==typeof n?n(e,o):i().cloneElement(i().Children.only(n),o))},t}(i().Component);function m(){}h.contextType=s.A,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=c,h.EXITED=d,h.ENTERING=p,h.ENTERED=f,h.EXITING=g;const v=h},80875:(e,t,n)=>{\"use strict\";n.d(t,{Qy:()=>c,xx:()=>l}),n(62010),n(27495),n(25440);var r=n(8085),o=n(98752),a=n(13075),i=n(47953),l=function(e){var t=s(e);return(0,a.AT)(\"get\",t,!1)},s=function(e){var t=e.apiName,n=e.User,o=e.baseUrl,a=e.triggerShowLoader,l=e.liquidationType,s=void 0===l?\"\":l,c=e.selectedYearId,d=void 0===c?0:c,p=e.nnrId,f=void 0===p?0:p,g=e.portfolioCode,h=void 0===g?\"\":g,m={};if(t===i.Q.FETCH_YEAR_DATA)m.endPoint=r.p.GET_YEAR_DATA.replace(\"__LIQUIDATION_TYPE__\",s);else if(t===i.Q.FETCH_LIQUIDATION_HQ)m.endPoint=r.p.GET_LIQUIDATION_HQDATA;else if(t===i.Q.FETCH_NNRHQ_DATA)m.endPoint=r.p.GET_LIQUIDATION_NNRDATA;else if(t===i.Q.FETCH_PORTFOLIO_DATA){var v;m.endPoint=r.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==n||null===(v=n.selectedBusinessUnit)||void 0===v?void 0:v.bu_code)}return m.domain=o,m.customHeaders=u(n),t===i.Q.FETCH_LIQUIDATION_HQ?m.payLoad={parent_hq_id:f,portfolio_code:h}:t===i.Q.FETCH_NNRHQ_DATA&&(m.payLoad={duration_id:d}),m.triggerLoader=a,m},u=function(e){var t,n,r;return{\"role-type-name\":null==e||null===(t=e.UserDetails)||void 0===t||null===(t=t.role_type_details)||void 0===t?void 0:t.role_type_name,\"role-id\":null==e||null===(n=e.selectedBusinessUnit)||void 0===n||null===(n=n.userRoleControls)||void 0===n?void 0:n.roleId,\"user-id\":e.UserDetails.user_id,\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}},c=function(e,t,n,l,s){var u,c={};c.domain=t,c.endPoint=s===i.Q.TARGET?r.p.UPLOAD_TARGETS_LIQUIDATION_TEMPLATE:r.p.UPLOAD_ACTUALS_LIQUIDATION_TEMPLATE,c.customHeaders={\"country-code\":null==e||null===(u=e.selectedCountry)||void 0===u?void 0:u.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)};var d=(0,o.S2)(l);return c.payLoad={file_name:d.name},c.triggerLoader=n,(0,a.AT)(\"get\",c,!1)}},80918:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>ie}),n(45700),n(28706),n(2008),n(50113),n(51629),n(25276),n(23792),n(62062),n(15086),n(89572),n(94170),n(2892),n(52675),n(89463),n(2259),n(23418),n(64346),n(34782),n(23288),n(62010),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(5746),n(42762),n(23500),n(62953),n(48408);var r=n(90815),o=n(28161),a=n(56203),i=n(81970),l=n.n(i),s=n(47767),u=n(96348),c=n(47225),d=n(13075),p=n(92416),f=n(43828),g=n(37695),h=n(89994),m=(n(60739),n(69085),n(14073)),v=n(3561),A=n(88084),y=n(71939),E=n(64422),b=n(63795),_=n(34274),C=n(15664),w=n(77576);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(null,arguments)}function T(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return O(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(O(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,O(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,O(d,\"constructor\",u),O(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",O(u,o,\"GeneratorFunction\"),O(d),O(d,o,\"Generator\"),O(d,r,function(){return this}),O(d,\"toString\",function(){return\"[object Generator]\"}),(T=function(){return{w:a,m:p}})()}function O(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}O=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){O(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},O(e,t,n,r)}function D(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}const R=function(e){var t=e.initialValues,n=e.isDocumentsError,i=e.isCommentsError,s=e.setIsCommentsError,u=e.onHandelSubmit,c=e.retailersFieldsConfigurations,d=void 0===c?{}:c,p=e.retailerDetails,g=e.onCancel,h=e.onEdit,O=(e.User,e.isEditDetailsMode),R=e.fieldsData,N=e.onDropdownChange,L=e.shopProfile,P=e.preferredDistributorConfiguration,M=e.retailerAddressValidationConfiguration,x=e.onDocumentsChange,I=e.disableFields,k=e.setCommentsData,B=e.isVerified,F=e.allDocuments,j=e.verifyingTheKyc,H=e.gettingUploadDocument,U=e.comments,Y=(0,w.h)().showReKYCfeature,G=\"VERIFIED\"===B,z=Y&&\"RE_KYC\"===B,V=Y&&\"REKYC_APPROVED\"===(null==p?void 0:p.re_kyc_status),q=Y&&z&&!V,W=Y&&O&&z&&V,Q=O&&(!z||!V),K=function(){var e,t=(e=T().m(function e(t){return T().w(function(e){for(;;)switch(e.n){case 0:if(W){e.n=2;break}return e.n=1,u(t);case 1:return e.a(2);case 2:if(!U.trim().length){e.n=4;break}return e.n=3,u(t,function(){return j(\"VERIFIED\")});case 3:e.n=5;break;case 4:s(!0);case 5:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){D(a,r,o,i,l,\"next\",e)}function l(e){D(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),$=function(){s(!1),h()},X=function(e){k(e.target.value)};return l().createElement(A.l1,{initialValues:t,enableReinitialize:!1,onSubmit:function(e){n||(Y?K(e):u(e))},key:JSON.stringify(t),validationSchema:(0,_.D)((0,f.Sj)(d))},function(e){var t=e.values,n=e.setFieldValue,u=e.resetForm;return l().createElement(A.lV,{className:\"popupContent backgroundWhite\"},l().createElement(r.A,{direction:\"row\",justifyContent:\"space-between\",mt:2,mb:2},l().createElement(m.A,{variant:\"h2\"},(0,a.t)(\"UPPERCASE_RETAILER_DETAILS\")),function(e){return O?Y&&!Q?null:l().createElement(r.A,{direction:\"row\",gap:2},l().createElement(C.A,{variant:\"outlined\",buttonName:(0,a.t)(\"CANCEL\"),fullwidth:!1,color:\"primary\",type:\"reset\",onButtonClick:function(){return function(e){e(),g(),s(!1)}(e)}}),l().createElement(C.A,{variant:\"contained\",buttonName:(0,a.t)(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})):l().createElement(C.A,{variant:\"contained\",buttonName:(0,a.t)(\"EDIT_DETAILS\"),fullwidth:!1,color:\"primary\",type:\"reset\",onButtonClick:$,disabled:!!Y&&q})}(u)),l().createElement(o.A,{className:O?\"editmode\":\"viewmode\"},function(e,t){return R?Object.keys(R).map(function(n){return l().createElement(b.A,{key:n,fields:R[n],values:e,onValueChange:t,dropDownKeys:[\"retailer_category_code\",\"retailer_type\"],multiSelectDropdownKeys:[\"retailer_distributors\"],onDropdownChange:N,isEditDetailsMode:O,shopProfile:L,preferredDistributorConfiguration:P,retailerAddressValidationConfiguration:M})}):null}(t,n),l().createElement(E.A,{onDocumentsChange:x,disabledFields:I,retailerDocuments:F,fromKycReatiler:p,getUploadedDocument:H,isEditDetailsMode:O&&!G,isKycVerified:G}),l().createElement(o.A,{className:\"user-detail-box\"},l().createElement(m.A,{variant:\"h2\",m:.5},(0,a.t)(\"HISTORY\")),l().createElement(y.A,{history:null==p?void 0:p.retailer_bu_logs})),l().createElement(o.A,{className:\"comments-sections\"},l().createElement(m.A,{variant:\"h2\",m:.5},(0,a.t)(\"COMMENTS\")),l().createElement(v.A,{minRows:4,cols:4,placeholder:(0,a.t)(\"TYPING_HERE\"),onChange:X,value:U}),i&&l().createElement(m.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},(0,a.t)(\"REQ_COMMENTS_VERIFIER\"))),function(e){return l().createElement(r.A,{direction:\"row\",justifyContent:\"end\",mt:1},l().createElement(r.A,{direction:\"row\",justifyContent:\"end\",gap:2,alignItems:\"center\"},O&&Y&&l().createElement(C.A,{buttonName:(0,a.t)(\"REJECT\"),fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return function(e){e(),j(\"REJECTED\")}(e)}}),!G&&l().createElement(C.A,S({disabled:q,buttonName:(0,a.t)(\"KYC_VERIFIED\"),fullwidth:!1,variant:\"contained\"},W&&Y&&{type:\"submit\"},{onButtonClick:function(){return Y?void(W||j(\"VERIFIED\")):j(\"VERIFIED\")}}))))}(u)))})};var N=n(10481);function L(e){return L=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},L(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=L(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==L(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,n(11848).Ay)(o.A)(function(e){var t=e.theme;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\",backgroundColor:t.palette.secondary.dark},(0,g.n)(t))}),I=(n(35874),n(3296),n(27208),n(71083)),k=n(99478),B=n(78208),F=n(35165);function j(e){return j=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},j(e)}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=j(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==j(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||z(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function z(e,t){if(e){if(\"string\"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var q=function(e){var t=e.initialRetailerDetails,n=e.retailerDetails,r=e.isVerified,o=e.setDisableFields,l=e.setFieldsData,s=e.setInitialValues,u=e.setDistributorDropdownOptions,p=e.setRetailerDetails,g=e.state,m=e.setInitialRetailerDetails,v=e.setRetailerActiveStatus,A=e.setShopProfile,y=e.setPreferredDistributorConfiguration,E=e.setRetailerAddressValidationConfiguration,b=e.setLicenseTypes,_=(0,i.useContext)(c.v),C=_.BackOfficeProps,w=C.globalStore.User,S=C.baseurl,T=_.triggerShowLoader,O=_.triggerToastMsg,D=G((0,i.useState)({}),2),R=D[0],L=D[1],P=function(){var e;Promise.allSettled([(0,F.ao)(w,S,T),(0,N.Rd)(w,S,T,null==g||null===(e=g.kycVerifierItem)||void 0===e?void 0:e.id),(0,F.vA)(w,S,T)]).then(function(e){var t,n,a,i,c,d,g,A=G(e,3),y=A[0],E=A[1],b=A[2];L(y),i={retailerLabels:y,retailerData:E,retailersCategory:b},null==E||null===(t=E.value)||void 0===t||t.status,c=null==E||null===(n=E.value)||void 0===n?void 0:n.headquarter_id,d={moduleName:\"RETAILERS\",keys:(0,h.Oe)(r)},g={\"hq-id\":c,\"retailer-bu-id\":i.retailerData.value.retailer_bu_id},Promise.allSettled([(0,F.pA)(w,S,T,d),(0,F.Qs)(w,S,T,g)]).then(function(e){var t,n,r,a,c=G(e,2),d=c[0],p=c[1];o(JSON.parse(null!==(t=null==d||null===(n=d.value)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value)&&void 0!==t?t:\"\")),l((0,f.QO)(U(U({},i),{},{distributorNames:p}),null!==(r=null==d||null===(a=d.value)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.value)&&void 0!==r?r:\"\",s)),u(p.value)}),p(null==E?void 0:E.value),m(null==E?void 0:E.value),v(null==E||null===(a=E.value)||void 0===a?void 0:a.is_retailer_bu_active),M(null==E?void 0:E.value)}).catch(function(){})},M=function(e){var t,n,r=null==e||null===(t=e.retailer_attachments)||void 0===t?void 0:t.find(function(e){return\"SHOP\"===(null==e?void 0:e.image_type)}),o={image_type:null==r?void 0:r.image_type,file_name:null==r||null===(n=r.image_key)||void 0===n?void 0:n.split(\"/\").slice(-1)[0],file_operation_type:\"DOWNLOAD\",retailerUUID:null==e?void 0:e.retailer_uuid};(0,F.od)(w,S,T,o).then(function(e){I.A.get(null==e?void 0:e.data,{responseType:\"arraybuffer\"}).then(function(e){var t=new Blob([null==e?void 0:e.data],{type:\"image/png\"}),n=URL.createObjectURL(t);A(n)})})};return{retailersFieldsConfigurations:R,gettingUploadDocument:function(e){var r,o=[].concat((r=t.retailer_documents,function(e){if(Array.isArray(e))return V(e)}(r)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(r)||z(r)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),[e]).filter(function(e){return!(null!=e&&e.isUpload)}),i={retailerUUID:null==n?void 0:n.retailer_uuid,buId:null==w?void 0:w.selectedBusinessUnit.bu_id,retailerDocumentList:o.map(function(t){return(null==t?void 0:t.code)===(null==e?void 0:e.code)?U(U({},t),{},{document_number:e.document_number}):t})};(0,N.tl)(w,S,T,i).then(function(e){200===e.status&&(P(),O({message:(0,a.t)(\"FILE_UPLOADED_SUCCESSFULLY\"),type:\"success\"}))})},getPrefferedDistributorConfiguration:function(){var e={moduleName:k.Rk.RETAILERS,keys:[k.Rk.RETAILER_NO_OF_PREFERRED_DISTRIBUTORS,k.Rk.RETAILER_ADDRESS_VALIDATION],apiName:k.Rk.PREFERRED_DISTRIBUTOR};(0,B.j)((0,d.rZ)(w,S),T,e).then(function(e){y((0,d.Ws)(k.Rk.RETAILER_NO_OF_PREFERRED_DISTRIBUTORS,e)),E((0,d.Ws)(k.Rk.RETAILER_ADDRESS_VALIDATION,e))}).catch(function(){})},getLicenseTypes:function(){(0,N.x7)(w,S,T).then(function(e){b(e)}).catch(function(){})},getKycVerifierFieldsData:P}};function W(e){return W=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},W(e)}var Q=[\"isError\"];function K(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return $(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):($(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,$(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,$(d,\"constructor\",u),$(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",$(u,o,\"GeneratorFunction\"),$(d),$(d,o,\"Generator\"),$(d,r,function(){return this}),$(d,\"toString\",function(){return\"[object Generator]\"}),(K=function(){return{w:a,m:p}})()}function $(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}$=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){$(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},$(e,t,n,r)}function X(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||oe(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=W(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==W(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ne(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||oe(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function oe(e,t){if(e){if(\"string\"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ie=function(){var e,t=(0,s.Zp)(),n=(0,s.zy)(),m=new URLSearchParams(n.search),v=(0,w.h)().showReKYCfeature,A=(0,s.zy)().state,y=(0,i.useContext)(c.v),E=y.BackOfficeProps,b=E.globalStore.User,_=E.baseurl,C=y.triggerShowLoader,S=y.triggerToastMsg,T=re((0,i.useState)(!1),2),O=T[0],D=T[1],L=re((0,i.useState)({}),2),P=L[0],M=L[1],I=re((0,i.useState)({}),2),k=I[0],B=I[1],F=re((0,i.useState)({}),2),j=F[0],H=F[1],U=re((0,i.useState)({}),2),Y=U[0],G=U[1],z=re((0,i.useState)(!1),2),V=z[0],W=z[1],$=re((0,i.useState)([]),2),J=$[0],ee=$[1],oe=re((0,i.useState)(\"\"),2),ae=oe[0],ie=oe[1],le=re((0,i.useState)(\"\"),2),se=le[0],ue=le[1],ce=re((0,i.useState)(0),2),de=ce[0],pe=ce[1],fe=re((0,i.useState)(),2),ge=fe[0],he=fe[1],me=re((0,i.useState)({}),2),ve=me[0],Ae=me[1],ye=re((0,i.useState)({}),2),Ee=ye[0],be=ye[1],_e=re((0,i.useState)([]),2),Ce=_e[0],we=_e[1],Se=re((0,i.useState)([]),2),Te=Se[0],Oe=Se[1],De=null==Te?void 0:Te.some(function(e){return(null==e?void 0:e.isError)&&!(null!=e&&e.isUpload)}),Re=re((0,i.useState)(null==m?void 0:m.get(\"verifiedStatus\")),2),Ne=Re[0],Le=Re[1],Pe=re((0,i.useState)(!1),2),Me=Pe[0],xe=Pe[1],Ie=q({initialRetailerDetails:Y,retailerDetails:j,isVerified:Ne,setDisableFields:he,setFieldsData:M,setInitialValues:B,setDistributorDropdownOptions:ee,setRetailerDetails:H,state:A,setInitialRetailerDetails:G,setRetailerActiveStatus:W,setShopProfile:ue,setPreferredDistributorConfiguration:Ae,setRetailerAddressValidationConfiguration:be,setLicenseTypes:we}),ke=Ie.retailersFieldsConfigurations,Be=Ie.gettingUploadDocument,Fe=Ie.getPrefferedDistributorConfiguration,je=Ie.getLicenseTypes,He=Ie.getKycVerifierFieldsData,Ue=function(e,t){(0,N.sw)(b,_,C,e).then(function(e){(0,d.mN)(e)?(D(!1),He(),t&&t(),S({message:e.data.message,type:\"success\"})):S({message:e.data.errorMessage,type:\"error\"})}).catch(function(e){S({message:e.message,type:\"error\"})})};(0,i.useEffect)(function(){He()},[]);var Ye=function(e){return e.map(function(e){var t,n,r=J.find(function(t){return t.distributor_code===e.value}),o=null!==(t=null==r?void 0:r.distributor_uuid)&&void 0!==t?t:e.value,a=j.retailer_distributors.find(function(e){return e.distributor_uuid===o});return{id:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:0,distributor_uuid:o}})},Ge=function(e,t,n){return\"DISTRIBUTOR_RETAILER\"===e&&Number(t)+Number(n)!==100},ze=function(){var e,t=(e=K().m(function e(t,n){var r,o,i,l,s,u;return K().w(function(e){for(;;)switch(e.n){case 0:return xe(!1),o=null==Te?void 0:Te.filter(function(e){return!(null!=e&&e.isUpload)}),i=null==o?void 0:o.map(function(e){return e.isError,te(e,Q)}),l=Ye(t.retailer_distributors),s=Z({retailerUUID:null==j?void 0:j.retailer_uuid,buId:null==b?void 0:b.selectedBusinessUnit.bu_id,retailerDocumentList:i},\"REKYC_APPROVED\"==(null==j?void 0:j.re_kyc_status)?{re_kyc_status:\"REKYC_VERIFIED\"}:{}),e.n=1,(0,N.tl)(b,_,C,s);case 1:u=(0,f.jc)({retailerDetails:j,formValues:t,user:b,preferredDistributorList:[].concat(X(l),X((0,d.sE)(J,null==j?void 0:j.retailer_distributors)))},!0),Ge(null===(r=t.retailer_category_code)||void 0===r?void 0:r.value,t.total_retailer_percentage,t.total_wholesale_percentage)?S({message:(0,a.t)(\"SUM_OF_WHOLESALE\"),type:\"error\"}):Ue(u,n);case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ne(a,r,o,i,l,\"next\",e)}function l(e){ne(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n){return t.apply(this,arguments)}}();return(0,i.useEffect)(function(){pe(de+1)},[j]),(0,i.useEffect)(function(){je(),Fe()},[]),(0,i.useEffect)(function(){var e,t=(0,h.HK)(Ce,null==j?void 0:j.retailer_documents,null==b?void 0:b.selectedBusinessUnit.bu_id,null==j?void 0:j.retailer_uuid);Oe([].concat(X(t),X(null!==(e=null==j?void 0:j.retailer_documents)&&void 0!==e?e:[])))},[Ce,null==j?void 0:j.retailer_documents]),l().createElement(x,null,l().createElement(g.M,null,l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(o.A,null,l().createElement(p.A,{routePathName:[{name:u.F_.Retailers,path:u.fp.Retailers},{name:u.F_.Kyc_Verifier,path:\"\".concat(u.fp.Retailers,\"/\").concat(u.fp.Kyc_Verifier)},{name:null===(e=function(){if(null!=P&&P.ownerDetails)return null==P?void 0:P.ownerDetails.find(function(e){return\"shop_name\"===e.key})}())||void 0===e?void 0:e.value,path:\"\".concat(u.fp.Retailers,\"/\").concat(u.fp.Kyc_Verifier,\"/\").concat(u.fp.Kyc_Edit_Details)}]}))),l().createElement(R,{initialValues:k,isDocumentsError:De,isCommentsError:Me,setIsCommentsError:xe,retailersFieldsConfigurations:ke,onHandelSubmit:ze,retailerDetails:j,onCancel:function(){D(!1),H(Y)},onEdit:function(){return D(!0)},isEditDetailsMode:O,fieldsData:P,onDropdownChange:function(e,t){var n=(0,f.UP)(k.total_wholesale_percentage,k.total_retailer_percentage);\"retailer_category_code\"===e&&M((0,f.Xp)(t.value,n,P))},shopProfile:se,preferredDistributorConfiguration:ve,retailerAddressValidationConfiguration:Ee,onDocumentsChange:function(e){Oe(function(t){return null==t?void 0:t.map(function(t){var n;return((null==t?void 0:t.document_number)===(null==e?void 0:e.document_number)||null!=t&&t.isUpload&&(null==t?void 0:t.documentIndex)===(null==e?void 0:e.documentIndex))&&(null==t?void 0:t.retailer_licence_type)===(null==e?void 0:e.retailer_licence_type)?Z(Z({},t),{},{document_number:null!==(n=null==e?void 0:e.modifiedNumber)&&void 0!==n?n:null==e?void 0:e.document_number,isError:null==e?void 0:e.isError,expiry_date:null==e?void 0:e.expiry_date}):t})})},disableFields:ge,setCommentsData:ie,state:A,isVerified:Ne,allDocuments:Te,verifyingTheKyc:function(e){var n;if(!v||null!=ae&&null!==(n=ae.trim())&&void 0!==n&&n.length){xe(!1);var r={isRetailerActive:!V,retailerId:null==j?void 0:j.retailer_uuid,comments:ae,KycVerificationStatus:v?e:\"VERIFIED\"};(0,N.hG)(b,_,C,r).then(function(e){\"VERIFIED\"===e.verificationStatus?(Le(e.verificationStatus),He(),S({message:(0,a.t)(\"KYC_VERIFIED\"),type:\"success\"}),t(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Retailers,\"/\").concat(u.fp.Kyc_Verifier))):\"REJECTED\"===(null==r?void 0:r.KycVerificationStatus)&&(He(),S({message:(0,a.t)(\"KYC_REJECTED\"),type:\"success\"}),t(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Retailers,\"/\").concat(u.fp.Kyc_Verifier)))})}else xe(!0)},gettingUploadDocument:Be,comments:ae,User:b})))}},80926:(e,t,n)=>{\"use strict\";var r=n(79306),o=n(48981),a=n(47055),i=n(26198),l=TypeError,s=\"Reduce of empty array with no initial value\",u=function(e){return function(t,n,u,c){var d=o(t),p=a(d),f=i(d);if(r(n),0===f&&u<2)throw new l(s);var g=e?f-1:0,h=e?-1:1;if(u<2)for(;;){if(g in p){c=p[g],g+=h;break}if(g+=h,e?g<0:f<=g)throw new l(s)}for(;e?g>=0:f>g;g+=h)g in p&&(c=n(c,p[g],g,d));return c}};e.exports={left:u(!1),right:u(!0)}},80945:(e,t,n)=>{var r=n(80079),o=n(68223),a=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},81042:(e,t,n)=>{var r=n(56110)(Object,\"create\");e.exports=r},81199:(e,t,n)=>{\"use strict\";var r=n(67780),o=n(15495),a=n(1123),i={};n(14632)(i,n(15413)(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+\" Iterator\")}},81278:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(43724),a=n(35031),i=n(25397),l=n(77347),s=n(97040);r({target:\"Object\",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),o=l.f,u=a(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&s(c,t,n);return c}})},81297:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},81380:(e,t,n)=>{\"use strict\";e.exports=n.p+\"eec128be22a15563ff8e.woff\"},81385:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>b});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(20561),d=n(74848);const p=(0,c.A)((0,d.jsx)(\"path\",{d:\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\"}),\"Person\");var f=n(38413),g=n(31609);function h(e){return(0,g.Ay)(\"MuiAvatar\",e)}(0,f.A)(\"MuiAvatar\",[\"root\",\"colorDefault\",\"circular\",\"rounded\",\"square\",\"img\",\"fallback\"]);var m=n(6025);const v=[\"alt\",\"children\",\"className\",\"component\",\"slots\",\"slotProps\",\"imgProps\",\"sizes\",\"src\",\"srcSet\",\"variant\"],A=(0,s.Ay)(\"div\",{name:\"MuiAvatar\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:\"50%\",overflow:\"hidden\",userSelect:\"none\",variants:[{props:{variant:\"rounded\"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:\"square\"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,o.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,o.A)({backgroundColor:e.palette.grey[400]},e.applyStyles(\"dark\",{backgroundColor:e.palette.grey[600]})))}]})),y=(0,s.Ay)(\"img\",{name:\"MuiAvatar\",slot:\"Img\",overridesResolver:(e,t)=>t.img})({width:\"100%\",height:\"100%\",textAlign:\"center\",objectFit:\"cover\",color:\"transparent\",textIndent:1e4}),E=(0,s.Ay)(p,{name:\"MuiAvatar\",slot:\"Fallback\",overridesResolver:(e,t)=>t.fallback})({width:\"75%\",height:\"75%\"}),b=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiAvatar\"}),{alt:s,children:c,className:p,component:f=\"div\",slots:g={},slotProps:b={},imgProps:_,sizes:C,src:w,srcSet:S,variant:T=\"circular\"}=n,O=(0,r.A)(n,v);let D=null;const R=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=a.useState(!1);return a.useEffect(()=>{if(!n&&!r)return;i(!1);let o=!0;const a=new Image;return a.onload=()=>{o&&i(\"loaded\")},a.onerror=()=>{o&&i(\"error\")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{o=!1}},[e,t,n,r]),o}((0,o.A)({},_,{src:w,srcSet:S})),N=w||S,L=N&&\"error\"!==R,P=(0,o.A)({},n,{colorDefault:!L,component:f,variant:T}),M=(e=>{const{classes:t,variant:n,colorDefault:r}=e,o={root:[\"root\",n,r&&\"colorDefault\"],img:[\"img\"],fallback:[\"fallback\"]};return(0,l.A)(o,h,t)})(P),[x,I]=(0,m.A)(\"img\",{className:M.img,elementType:y,externalForwardedProps:{slots:g,slotProps:{img:(0,o.A)({},_,b.img)}},additionalProps:{alt:s,src:w,srcSet:S,sizes:C},ownerState:P});return D=L?(0,d.jsx)(x,(0,o.A)({},I)):c||0===c?c:N&&s?s[0]:(0,d.jsx)(E,{ownerState:P,className:M.fallback}),(0,d.jsx)(A,(0,o.A)({as:f,ownerState:P,className:(0,i.A)(M.root,p),ref:t},O,{children:D}))})},81510:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(97751),a=n(39297),i=n(655),l=n(25745),s=n(91296),u=l(\"string-to-symbol-registry\"),c=l(\"symbol-to-string-registry\");r({target:\"Symbol\",stat:!0,forced:!s},{for:function(e){var t=i(e);if(a(u,t))return u[t];var n=o(\"Symbol\")(t);return u[t]=n,c[n]=t,n}})},81630:(e,t,n)=>{\"use strict\";var r=n(79504),o=n(94644),a=r(n(57029)),i=o.aTypedArray;(0,o.exportTypedArrayMethod)(\"copyWithin\",function(e,t){return a(i(this),e,t,arguments.length>2?arguments[2]:void 0)})},81765:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"tzm\",{months:\"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ\".split(\"_\"),monthsShort:\"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ\".split(\"_\"),weekdays:\"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ\".split(\"_\"),weekdaysShort:\"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ\".split(\"_\"),weekdaysMin:\"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[ⴰⵙⴷⵅ ⴴ] LT\",nextDay:\"[ⴰⵙⴽⴰ ⴴ] LT\",nextWeek:\"dddd [ⴴ] LT\",lastDay:\"[ⴰⵚⴰⵏⵜ ⴴ] LT\",lastWeek:\"dddd [ⴴ] LT\",sameElse:\"L\"},relativeTime:{future:\"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s\",past:\"ⵢⴰⵏ %s\",s:\"ⵉⵎⵉⴽ\",ss:\"%d ⵉⵎⵉⴽ\",m:\"ⵎⵉⵏⵓⴺ\",mm:\"%d ⵎⵉⵏⵓⴺ\",h:\"ⵙⴰⵄⴰ\",hh:\"%d ⵜⴰⵙⵙⴰⵄⵉⵏ\",d:\"ⴰⵙⵙ\",dd:\"%d oⵙⵙⴰⵏ\",M:\"ⴰⵢoⵓⵔ\",MM:\"%d ⵉⵢⵢⵉⵔⵏ\",y:\"ⴰⵙⴳⴰⵙ\",yy:\"%d ⵉⵙⴳⴰⵙⵏ\"},week:{dow:6,doy:12}})}(n(95093))},81970:t=>{\"use strict\";t.exports=e},81984:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>p});var r=n(81970),o=n(33068);let a=!0,i=!1;const l=new o.E,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,\"datetime-local\":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function c(){a=!1}function d(){\"hidden\"===this.visibilityState&&i&&(a=!0)}const p=function(){const e=r.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener(\"keydown\",u,!0),t.addEventListener(\"mousedown\",c,!0),t.addEventListener(\"pointerdown\",c,!0),t.addEventListener(\"touchstart\",c,!0),t.addEventListener(\"visibilitychange\",d,!0))},[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(\":focus-visible\")}catch(e){}return a||function(e){const{type:t,tagName:n}=e;return!(\"INPUT\"!==n||!s[t]||e.readOnly)||\"TEXTAREA\"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,l.start(100,()=>{i=!1}),t.current=!1,!0)},ref:e}}},82003:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(96395),a=n(10916).CONSTRUCTOR,i=n(80550),l=n(97751),s=n(94901),u=n(36840),c=i&&i.prototype;if(r({target:\"Promise\",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(i)){var d=l(\"Promise\").prototype.catch;c.catch!==d&&u(c,\"catch\",d,{unsafe:!0})}},82022:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>S});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(20561),c=n(74848);const d=(0,u.A)((0,c.jsx)(\"path\",{d:\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"}),\"Cancel\");var p=n(96852),f=n(28466),g=n(18850),h=n(25669),m=n(11848),v=n(38413),A=n(31609);function y(e){return(0,A.Ay)(\"MuiChip\",e)}const E=(0,v.A)(\"MuiChip\",[\"root\",\"sizeSmall\",\"sizeMedium\",\"colorError\",\"colorInfo\",\"colorPrimary\",\"colorSecondary\",\"colorSuccess\",\"colorWarning\",\"disabled\",\"clickable\",\"clickableColorPrimary\",\"clickableColorSecondary\",\"deletable\",\"deletableColorPrimary\",\"deletableColorSecondary\",\"outlined\",\"filled\",\"outlinedPrimary\",\"outlinedSecondary\",\"filledPrimary\",\"filledSecondary\",\"avatar\",\"avatarSmall\",\"avatarMedium\",\"avatarColorPrimary\",\"avatarColorSecondary\",\"icon\",\"iconSmall\",\"iconMedium\",\"iconColorPrimary\",\"iconColorSecondary\",\"label\",\"labelSmall\",\"labelMedium\",\"deleteIcon\",\"deleteIconSmall\",\"deleteIconMedium\",\"deleteIconColorPrimary\",\"deleteIconColorSecondary\",\"deleteIconOutlinedColorPrimary\",\"deleteIconOutlinedColorSecondary\",\"deleteIconFilledColorPrimary\",\"deleteIconFilledColorSecondary\",\"focusVisible\"]),b=[\"avatar\",\"className\",\"clickable\",\"color\",\"component\",\"deleteIcon\",\"disabled\",\"icon\",\"label\",\"onClick\",\"onDelete\",\"onKeyDown\",\"onKeyUp\",\"size\",\"variant\",\"tabIndex\",\"skipFocusWhenDisabled\"],_=(0,m.Ay)(\"div\",{name:\"MuiChip\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=n;return[{[`& .${E.avatar}`]:t.avatar},{[`& .${E.avatar}`]:t[`avatar${(0,f.A)(l)}`]},{[`& .${E.avatar}`]:t[`avatarColor${(0,f.A)(r)}`]},{[`& .${E.icon}`]:t.icon},{[`& .${E.icon}`]:t[`icon${(0,f.A)(l)}`]},{[`& .${E.icon}`]:t[`iconColor${(0,f.A)(o)}`]},{[`& .${E.deleteIcon}`]:t.deleteIcon},{[`& .${E.deleteIcon}`]:t[`deleteIcon${(0,f.A)(l)}`]},{[`& .${E.deleteIcon}`]:t[`deleteIconColor${(0,f.A)(r)}`]},{[`& .${E.deleteIcon}`]:t[`deleteIcon${(0,f.A)(s)}Color${(0,f.A)(r)}`]},t.root,t[`size${(0,f.A)(l)}`],t[`color${(0,f.A)(r)}`],a&&t.clickable,a&&\"default\"!==r&&t[`clickableColor${(0,f.A)(r)})`],i&&t.deletable,i&&\"default\"!==r&&t[`deletableColor${(0,f.A)(r)}`],t[s],t[`${s}${(0,f.A)(r)}`]]}})(({theme:e,ownerState:t})=>{const n=\"light\"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,o.A)({maxWidth:\"100%\",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:\"nowrap\",transition:e.transitions.create([\"background-color\",\"box-shadow\"]),cursor:\"unset\",outline:0,textDecoration:\"none\",border:0,padding:0,verticalAlign:\"middle\",boxSizing:\"border-box\",[`&.${E.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:\"none\"},[`& .${E.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${E.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${E.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${E.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${E.icon}`]:(0,o.A)({marginLeft:5,marginRight:-6},\"small\"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,o.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},\"default\"!==t.color&&{color:\"inherit\"})),[`& .${E.deleteIcon}`]:(0,o.A)({WebkitTapHighlightColor:\"transparent\",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,s.X4)(e.palette.text.primary,.26),fontSize:22,cursor:\"pointer\",margin:\"0 5px 0 -6px\",\"&:hover\":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,s.X4)(e.palette.text.primary,.4)}},\"small\"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},\"default\"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,s.X4)(e.palette[t.color].contrastText,.7),\"&:hover, &:active\":{color:(e.vars||e).palette[t.color].contrastText}})},\"small\"===t.size&&{height:24},\"default\"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&\"default\"!==t.color&&{[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,o.A)({},t.clickable&&{userSelect:\"none\",WebkitTapHighlightColor:\"transparent\",cursor:\"pointer\",\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},\"&:active\":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&\"default\"!==t.color&&{[`&:hover, &.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,o.A)({},\"outlined\"===t.variant&&{backgroundColor:\"transparent\",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${\"light\"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${E.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${E.avatar}`]:{marginLeft:4},[`& .${E.avatarSmall}`]:{marginLeft:2},[`& .${E.icon}`]:{marginLeft:4},[`& .${E.iconSmall}`]:{marginLeft:2},[`& .${E.deleteIcon}`]:{marginRight:5},[`& .${E.deleteIconSmall}`]:{marginRight:3}},\"outlined\"===t.variant&&\"default\"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,s.X4)(e.palette[t.color].main,.7)}`,[`&.${E.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,s.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${E.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,s.X4)(e.palette[t.color].main,.7),\"&:hover, &:active\":{color:(e.vars||e).palette[t.color].main}}})),C=(0,m.Ay)(\"span\",{name:\"MuiChip\",slot:\"Label\",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,f.A)(r)}`]]}})(({ownerState:e})=>(0,o.A)({overflow:\"hidden\",textOverflow:\"ellipsis\",paddingLeft:12,paddingRight:12,whiteSpace:\"nowrap\"},\"outlined\"===e.variant&&{paddingLeft:11,paddingRight:11},\"small\"===e.size&&{paddingLeft:8,paddingRight:8},\"small\"===e.size&&\"outlined\"===e.variant&&{paddingLeft:7,paddingRight:7}));function w(e){return\"Backspace\"===e.key||\"Delete\"===e.key}const S=a.forwardRef(function(e,t){const n=(0,h.b)({props:e,name:\"MuiChip\"}),{avatar:s,className:u,clickable:m,color:v=\"default\",component:A,deleteIcon:E,disabled:S=!1,icon:T,label:O,onClick:D,onDelete:R,onKeyDown:N,onKeyUp:L,size:P=\"medium\",variant:M=\"filled\",tabIndex:x,skipFocusWhenDisabled:I=!1}=n,k=(0,r.A)(n,b),B=a.useRef(null),F=(0,p.A)(B,t),j=e=>{e.stopPropagation(),R&&R(e)},H=!(!1===m||!D)||m,U=H||R?g.A:A||\"div\",Y=(0,o.A)({},n,{component:U,disabled:S,size:P,color:v,iconColor:a.isValidElement(T)&&T.props.color||v,onDelete:!!R,clickable:H,variant:M}),G=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:u}=e,c={root:[\"root\",u,n&&\"disabled\",`size${(0,f.A)(r)}`,`color${(0,f.A)(o)}`,s&&\"clickable\",s&&`clickableColor${(0,f.A)(o)}`,i&&\"deletable\",i&&`deletableColor${(0,f.A)(o)}`,`${u}${(0,f.A)(o)}`],label:[\"label\",`label${(0,f.A)(r)}`],avatar:[\"avatar\",`avatar${(0,f.A)(r)}`,`avatarColor${(0,f.A)(o)}`],icon:[\"icon\",`icon${(0,f.A)(r)}`,`iconColor${(0,f.A)(a)}`],deleteIcon:[\"deleteIcon\",`deleteIcon${(0,f.A)(r)}`,`deleteIconColor${(0,f.A)(o)}`,`deleteIcon${(0,f.A)(u)}Color${(0,f.A)(o)}`]};return(0,l.A)(c,y,t)})(Y),z=U===g.A?(0,o.A)({component:A||\"div\",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let V=null;R&&(V=E&&a.isValidElement(E)?a.cloneElement(E,{className:(0,i.A)(E.props.className,G.deleteIcon),onClick:j}):(0,c.jsx)(d,{className:(0,i.A)(G.deleteIcon),onClick:j}));let q=null;s&&a.isValidElement(s)&&(q=a.cloneElement(s,{className:(0,i.A)(G.avatar,s.props.className)}));let W=null;return T&&a.isValidElement(T)&&(W=a.cloneElement(T,{className:(0,i.A)(G.icon,T.props.className)})),(0,c.jsxs)(_,(0,o.A)({as:U,className:(0,i.A)(G.root,u),disabled:!(!H||!S)||void 0,onClick:D,onKeyDown:e=>{e.currentTarget===e.target&&w(e)&&e.preventDefault(),N&&N(e)},onKeyUp:e=>{e.currentTarget===e.target&&(R&&w(e)?R(e):\"Escape\"===e.key&&B.current&&B.current.blur()),L&&L(e)},ref:F,tabIndex:I&&S?-1:x,ownerState:Y},z,k,{children:[q||W,(0,c.jsx)(C,{className:(0,i.A)(G.label),ownerState:Y,children:O}),V]}))})},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},82218:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"yo\",{months:\"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀\".split(\"_\"),monthsShort:\"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀\".split(\"_\"),weekdays:\"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta\".split(\"_\"),weekdaysShort:\"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá\".split(\"_\"),weekdaysMin:\"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb\".split(\"_\"),longDateFormat:{LT:\"h:mm A\",LTS:\"h:mm:ss A\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY h:mm A\",LLLL:\"dddd, D MMMM YYYY h:mm A\"},calendar:{sameDay:\"[Ònì ni] LT\",nextDay:\"[Ọ̀la ni] LT\",nextWeek:\"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",lastDay:\"[Àna ni] LT\",lastWeek:\"dddd [Ọsẹ̀ tólọ́] [ni] LT\",sameElse:\"L\"},relativeTime:{future:\"ní %s\",past:\"%s kọjá\",s:\"ìsẹjú aayá die\",ss:\"aayá %d\",m:\"ìsẹjú kan\",mm:\"ìsẹjú %d\",h:\"wákati kan\",hh:\"wákati %d\",d:\"ọjọ́ kan\",dd:\"ọjọ́ %d\",M:\"osù kan\",MM:\"osù %d\",y:\"ọdún kan\",yy:\"ọdún %d\"},dayOfMonthOrdinalParse:/ọjọ́\\s\\d{1,2}/,ordinal:\"ọjọ́ %d\",week:{dow:1,doy:4}})}(n(95093))},82271:function(e,t,n){!function(e){\"use strict\";function t(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+(r=+e,o={ss:t?\"секунда_секунды_секунд\":\"секунду_секунды_секунд\",mm:t?\"минута_минуты_минут\":\"минуту_минуты_минут\",hh:\"час_часа_часов\",dd:\"день_дня_дней\",ww:\"неделя_недели_недель\",MM:\"месяц_месяца_месяцев\",yy:\"год_года_лет\"}[n].split(\"_\"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale(\"ru\",{months:{format:\"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря\".split(\"_\"),standalone:\"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь\".split(\"_\")},monthsShort:{format:\"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.\".split(\"_\"),standalone:\"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.\".split(\"_\")},weekdays:{standalone:\"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота\".split(\"_\"),format:\"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу\".split(\"_\"),isFormat:/\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:\"вс_пн_вт_ср_чт_пт_сб\".split(\"_\"),weekdaysMin:\"вс_пн_вт_ср_чт_пт_сб\".split(\"_\"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,monthsShortRegex:/^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},calendar:{sameDay:\"[Сегодня, в] LT\",nextDay:\"[Завтра, в] LT\",lastDay:\"[Вчера, в] LT\",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?\"[Во] dddd, [в] LT\":\"[В] dddd, [в] LT\";switch(this.day()){case 0:return\"[В следующее] dddd, [в] LT\";case 1:case 2:case 4:return\"[В следующий] dddd, [в] LT\";case 3:case 5:case 6:return\"[В следующую] dddd, [в] LT\"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?\"[Во] dddd, [в] LT\":\"[В] dddd, [в] LT\";switch(this.day()){case 0:return\"[В прошлое] dddd, [в] LT\";case 1:case 2:case 4:return\"[В прошлый] dddd, [в] LT\";case 3:case 5:case 6:return\"[В прошлую] dddd, [в] LT\"}},sameElse:\"L\"},relativeTime:{future:\"через %s\",past:\"%s назад\",s:\"несколько секунд\",ss:t,m:t,mm:t,h:\"час\",hh:t,d:\"день\",dd:t,w:\"неделя\",ww:t,M:\"месяц\",MM:t,y:\"год\",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?\"ночи\":e<12?\"утра\":e<17?\"дня\":\"вечера\"},dayOfMonthOrdinalParse:/\\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case\"M\":case\"d\":case\"DDD\":return e+\"-й\";case\"D\":return e+\"-го\";case\"w\":case\"W\":return e+\"-я\";default:return e}},week:{dow:1,doy:4}})}(n(95093))},82284:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}n.d(t,{A:()=>r})},82348:(e,t,n)=>{\"use strict\";n.d(t,{_:()=>o});var r=n(28161),o=(0,n(11848).Ay)(r.A)(function(e){return e.theme,{\"& .user-details-container\":{position:\"relative\",img:{objectFit:\"cover\"}}}})},82383:(e,t,n)=>{\"use strict\";n.d(t,{Mq:()=>o,UC:()=>i,co:()=>a,pC:()=>l,pQ:()=>s});var r=n(99478),o=function(e){return e.BASIC=\"BASIC\",e.ADVANCED=\"ADVANCED\",e.NO_BASELINE=\"NO_BASELINE\",e}({}),a=[{label:\"100%\",value:\"100\"},{label:\"200%\",value:\"200\"},{label:\"300%\",value:\"300\"},{label:\"400%\",value:\"400\"},{label:\"500%\",value:\"500\"}],i={dmHQName:\"\",eventMasterType:\"\",showPortfolio:!1,portfolio:\"\",configurationType:function(e){return e.Monthly=\"Monthly\",e}({}).Monthly,role:\"\",year:\"\",month:\"\",baselineValue:\"\",noOfGrowers:\"\",noOfRetailers:\"\",maxBaseline:\"\"},l={dmHQList:[],portfolioDataList:[],eventMasterTypeList:[],eventTypesList:[],roleList:[],configTypeList:r.Qc,yearList:[],monthList:[],maxBaseLineList:a},s=function(e){return e.GROWERS=\"GM\",e.RETAILERS=\"RV\",e}({})},82415:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var l=i(n(81970)),s=n(98400),u=n(9670),c=n(67991),d=n(63981);t.default=l.memo(function(e){var t=l.useContext(s.BeansContext).context,n=l.useState(new d.CssClasses),o=n[0],a=n[1],i=l.useState(new d.CssClasses),p=i[0],f=i[1],g=l.useState(\"false\"),h=g[0],m=g[1],v=l.useState(),A=v[0],y=v[1],E=l.useState(),b=E[0],_=E[1],C=l.useState(),w=C[0],S=C[1],T=l.useState(),O=T[0],D=T[1],R=l.useRef(null),N=l.useRef(null),L=e.ctrl;c.useLayoutEffectOnce(function(){var e={setWidth:function(e){return R.current.style.width=e},addOrRemoveCssClass:function(e,t){return a(function(n){return n.setClass(e,t)})},setColId:function(e){return _(e)},setTitle:function(e){return y(e)},setUserCompDetails:function(e){return D(e)},setResizableDisplayed:function(e){f(function(t){return t.setClass(\"ag-hidden\",!e)}),m(e?\"false\":\"true\")},setAriaExpanded:function(e){return S(e)}};L.setComp(e,R.current,N.current)}),l.useLayoutEffect(function(){return u.showJsComp(O,t,R.current)},[O]),l.useEffect(function(){var e=void 0;R.current.childNodes.forEach(function(t){null!=t&&t!==N.current&&(e=t)}),e&&L.setDragSource(e)},[O]);var P=l.useMemo(function(){return\"ag-header-group-cell \"+o.toString()},[o]),M=l.useMemo(function(){return\"ag-header-cell-resize \"+p.toString()},[p]),x=O&&O.componentFromFramework,I=O&&O.componentClass;return l.default.createElement(\"div\",{ref:R,className:P,title:A,\"col-id\":b,role:\"columnheader\",tabIndex:-1,\"aria-expanded\":w},x&&l.default.createElement(I,r({},O.params)),l.default.createElement(\"div\",{ref:N,\"aria-hidden\":h,className:M}))})},82429:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},82451:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},82677:(e,t,n)=>{\"use strict\";e.exports=n.p+\"303d20d31ccced292c38.svg\"},82682:function(e,t,n){!function(e){\"use strict\";var t={1:\"١\",2:\"٢\",3:\"٣\",4:\"٤\",5:\"٥\",6:\"٦\",7:\"٧\",8:\"٨\",9:\"٩\",0:\"٠\"},n={\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"٠\":\"0\"};e.defineLocale(\"ar-sa\",{months:\"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر\".split(\"_\"),monthsShort:\"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر\".split(\"_\"),weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},meridiemParse:/ص|م/,isPM:function(e){return\"م\"===e},meridiem:function(e,t,n){return e<12?\"ص\":\"م\"},calendar:{sameDay:\"[اليوم على الساعة] LT\",nextDay:\"[غدا على الساعة] LT\",nextWeek:\"dddd [على الساعة] LT\",lastDay:\"[أمس على الساعة] LT\",lastWeek:\"dddd [على الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"في %s\",past:\"منذ %s\",s:\"ثوان\",ss:\"%d ثانية\",m:\"دقيقة\",mm:\"%d دقائق\",h:\"ساعة\",hh:\"%d ساعات\",d:\"يوم\",dd:\"%d أيام\",M:\"شهر\",MM:\"%d أشهر\",y:\"سنة\",yy:\"%d سنوات\"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},week:{dow:0,doy:6}})}(n(95093))},82839:(e,t,n)=>{\"use strict\";var r=n(44576).navigator,o=r&&r.userAgent;e.exports=o?String(o):\"\"},82858:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(58749),o=n(53951);const a=(0,r.A)(),i=function(e=a){return(0,o.A)(e)}},82891:(e,t,n)=>{\"use strict\";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&\"\"!==e.value||t&&r(e.defaultValue)&&\"\"!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,{gr:()=>a,lq:()=>o})},82919:(e,t,n)=>{var r=n(19786);r(r.S+r.F*!n(75872),\"Object\",{defineProperty:n(21672).f})},82923:(e,t,n)=>{\"use strict\";e.exports=n.p+\"abc900451ea426df4218.woff\"},82997:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(98624),u=n(91382),c=n(25669),d=n(11848),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiStep\",e)}(0,p.A)(\"MuiStep\",[\"root\",\"horizontal\",\"vertical\",\"alternativeLabel\",\"completed\"]);var h=n(74848);const m=[\"active\",\"children\",\"className\",\"component\",\"completed\",\"disabled\",\"expanded\",\"index\",\"last\"],v=(0,d.Ay)(\"div\",{name:\"MuiStep\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>(0,o.A)({},\"horizontal\"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:\"relative\"})),A=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiStep\"}),{active:d,children:p,className:f,component:A=\"div\",completed:y,disabled:E,expanded:b=!1,index:_,last:C}=n,w=(0,r.A)(n,m),{activeStep:S,connector:T,alternativeLabel:O,orientation:D,nonLinear:R}=a.useContext(s.A);let[N=!1,L=!1,P=!1]=[d,y,E];S===_?N=void 0===d||d:!R&&S>_?L=void 0===y||y:!R&&S<_&&(P=void 0===E||E);const M=a.useMemo(()=>({index:_,last:C,expanded:b,icon:_+1,active:N,completed:L,disabled:P}),[_,C,b,N,L,P]),x=(0,o.A)({},n,{active:N,orientation:D,alternativeLabel:O,completed:L,disabled:P,expanded:b,component:A}),I=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e,a={root:[\"root\",n,r&&\"alternativeLabel\",o&&\"completed\"]};return(0,l.A)(a,g,t)})(x),k=(0,h.jsxs)(v,(0,o.A)({as:A,className:(0,i.A)(I.root,f),ref:t,ownerState:x},w,{children:[T&&O&&0!==_?T:null,p]}));return(0,h.jsx)(u.A.Provider,{value:M,children:T&&!O&&0!==_?(0,h.jsxs)(a.Fragment,{children:[T,k]}):k})})},83034:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(71547).A},83063:(e,t,n)=>{\"use strict\";var r=n(82839);e.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(r)},83070:(e,t,n)=>{e.exports=n(14632)},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}},83281:(e,t,n)=>{var r=n(93108)(\"meta\"),o=n(90326),a=n(43066),i=n(21672).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(82451)(function(){return s(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:\"O\"+ ++l,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!a(e,r)){if(!s(e))return\"F\";if(!t)return\"E\";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&s(e)&&!a(e,r)&&c(e),e}}},83383:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2a7d2cde821ed90c1d6f.woff?hasvnq\"},83390:(e,t,n)=>{\"use strict\";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a<o;a++){var i=n[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>o,shallowEqualObjects:()=>r})},83488:e=>{e.exports=function(e){return e}},83635:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(44576).RegExp;e.exports=r(function(){var e=o(\".\",\"s\");return!(e.dotAll&&e.test(\"\\n\")&&\"s\"===e.flags)})},83738:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext(null)},83851:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79039),a=n(25397),i=n(77347).f,l=n(43724);r({target:\"Object\",stat:!0,forced:!l||o(function(){i(1)}),sham:!l},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},83857:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>a.A});var r=n(33571),o=n(39599),a=n(94188)},84022:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(81970),o=n(83738);function a(){return r.useContext(o.A)}},84058:(e,t,n)=>{var r=n(14792),o=n(45539)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},84185:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(43724),a=n(24913).f;r({target:\"Object\",stat:!0,forced:Object.defineProperty!==a,sham:!o},{defineProperty:a})},84189:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>je}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(81970),a=n.n(o),i=n(47767),l=n(99478),s=n(37998),u=n(96348),c=n(47225),d=n(13075),p=n(78208),f=n(21770),g=n(92416),h=n(46374),m=n(27776),v=n(51440),A=n(96790),y=n(8085),E=n(34358),b=(n(25276),n(60739),n(9868),n(60538)),_=n(51545),C=n(56254),w=n(43605),S=n(44417),T=n(77284),O=n(18978),D=n(94985),R=n(35633),N=n(28161),L=n(11848),P=n(67683);function M(e){return M=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},M(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=M(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==M(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B=(0,L.Ay)(N.A)(function(e){var t=e.theme;return I(I({background:\"#F5F5F5\",position:\"absolute\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\"},(0,P.D)(t)),{},{\"& .red-label\":{color:\"#C1462B\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .yellow-label\":{color:\"#E99921\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .active-label\":{color:\"#14803C\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0},\"& .tm-label\":{color:\"#C17E19\",fontSize:12,fontFamily:\"NotoSans-Semibold\",margin:0}})}),F=n(56203),j=n(50275),H=n(32027),U=n(70380),Y=n(14073),G=n(86608);const z=function(e){var t=e.isVisible,n=e.onClose,o=e.message,i=e.heading;return a().createElement(G.A,{isVisible:t},a().createElement(N.A,null,a().createElement(r.A,{flexDirection:\"row\",p:2,justifyContent:\"space-between\",pb:0},a().createElement(Y.A,{variant:\"h2\"},i),a().createElement(N.A,null,a().createElement(Y.A,{className:\"icon-close closeIcon\",\"data-testid\":\"closePopIcon\",onClick:n}))),a().createElement(N.A,{className:\"modal-body\",p:2},a().createElement(r.A,{flexDirection:\"row\",alignItems:\"start\",gap:2},a().createElement(N.A,null,a().createElement(Y.A,null,o))))))};var V=function(e){var t=e.onClick;return a().createElement(\"button\",{type:\"button\",onClick:t,className:\"smart-agro-lite-green-label\",style:{background:\"none\",border:\"none\"}},(0,F.t)(\"VIEW_DETAILS\"))};function q(e){return q=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},q(e)}var W=[\"data\"];function Q(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Z(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=q(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==q(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Z(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Z(e,t){if(e){if(\"string\"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var te=function(e){var t,n=e.isBGPUploadEnabled,r=void 0===n||n,s=(0,o.useContext)(c.v),f=s.BackOfficeProps,g=f.globalStore.User,h=f.baseurl,m=s.triggerShowLoader,v=s.triggerToastMsg,A=g.UserDetails.role_type_details.role_type_name,y=J((0,o.useState)([]),2),E=y[0],N=y[1],L=[{value:l.vg.BGP_NOT_CREATED,label:l.L5.BGP_NOT_CREATED,checked:!1},{value:l.vg.BGP_CREATED,label:l.L5.BGP_CREATED,checked:!1},{value:l.vg.PENDING_FOR_RETAILER_ACCEPTANCE,label:l.L5.PENDING_FOR_RETAILER_ACCEPTANCE,checked:!1},{value:l.vg.PENDING_FOR_TM_APPROVAL,label:l.L5.PENDING_FOR_TM_APPROVAL,checked:!1}],P=(0,i.Zp)(),M=J((0,o.useState)(\"\"),2),x=M[0],I=M[1],k=J((0,o.useState)(\"\"),2),Y=k[0],G=k[1],q=J((0,o.useState)({pageNo:0,pageSize:10}),2),K=q[0],Z=q[1],ee=(0,H.i)(g),te=ee.hasShowPortfolio,ne=ee.hasPortfolioCode,re=J((0,o.useState)(0),2),oe=re[0],ae=re[1],ie=J((0,o.useState)(!1),2),le=ie[0],se=ie[1],ue=J((0,o.useState)({year:[],status:L,portfolio:[]}),2),ce=ue[0],de=ue[1],pe=J((0,o.useState)([]),2),fe=pe[0],ge=pe[1],he=J((0,o.useState)([]),2),me=he[0],ve=he[1],Ae=J((0,o.useState)({}),2),ye=Ae[0],Ee=Ae[1],be=J((0,o.useState)([]),2),_e=be[0],Ce=be[1],we=function(){Promise.all([(0,T.DE)(g,h,m),(0,j.x3)(g,h,m)]).then(function(e){var t=J(e,2);(function(e){var t,n,r,o=e.years,a=e.eventPortfolio,i={year:null==o?void 0:o.map(function(e){return null==e?void 0:e.year}),status:L};de(i),r=null==(t=a)||null===(n=t.data)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}}),de(function(e){return $($({},e),{},{portfolio:r})})})({years:t[0],eventPortfolio:t[1]}),(0,D.Vs)(g,h,m).then(function(e){var t,n;null!=e&&e.sales_hierarchy_id&&(t=e.sales_hierarchy_id,null===(n=(0,O.FU)(g,h,m,t))||void 0===n||n.then(function(e){if(e){var t,n,r=null==e?void 0:e.map(function(e){return null==e?void 0:e.name});ge(r),ve(e),e[0]&&(o=null===(t=e[0])||void 0===t?void 0:t.sales_hierarchy_id,a=null===(n=e[0])||void 0===n?void 0:n.name,null===(i=(0,O.Bs)(o,g,h,m))||void 0===i||i.then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});de(function(e){return $($({},e),{},X({},a,t))})}}).catch(function(e){v({message:e.message,type:\"error\"})}))}var o,a,i}).catch(function(e){v({message:e.message,type:\"error\"})}))}).catch(function(e){v({message:e.message,type:\"error\"})})}).catch(function(e){v({message:e.message,type:\"error\"})})},Se=function(e){var t,n,r={id:null!==(t=null==e?void 0:e.map(function(e){return null==e?void 0:e.value}))&&void 0!==t?t:[4]};null!=r&&null!==(n=r.id)&&void 0!==n&&n.length&&(0,T.nF)(g,h,m,r).then(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:null==e?void 0:e.shop_name,value:null==e?void 0:e.retailer_bu_id,checked:!1}});de(function(e){return $($({},e),{},{shop_name:n})})})},Te=function(e){var t;return null!==(t=null==e?void 0:e.map(function(e){return null==e?void 0:e.value}))&&void 0!==t?t:[]};return(0,o.useEffect)(function(){var e,t;we(),(0,p.C)(g,h,m,{moduleName:\"RETAILERS\",keys:[l.Rk.RETAILER_BGP_DETAILS_LIST_TABLE_HEADERS]}).then(function(e){var t,n=null===(t=(0,d.Ws)(l.Rk.RETAILER_BGP_DETAILS_LIST_TABLE_HEADERS,e))||void 0===t?void 0:t.value,r=JSON.parse(n).map(function(e){return $($({},e),{},{headerName:(0,F.t)(null==e?void 0:e.headerName)})});N(r)}).catch(function(){}),localStorage.getItem(\"selectedFilters\")&&Ee(null===JSON||void 0===JSON?void 0:JSON.parse(null!==(e=null===(t=localStorage)||void 0===t?void 0:t.getItem(\"selectedFilters\"))&&void 0!==e?e:\"{}\"))},[]),(0,o.useEffect)(function(){!function(){var e,t,n,r,o,a,i,s=ye;localStorage.getItem(\"selectedFilters\")&&(s=$($({},s=JSON.parse(null!==(a=localStorage.getItem(\"selectedFilters\"))&&void 0!==a?a:\"{}\")),ye),Se(null===(i=s)||void 0===i?void 0:i[\"MDO HQ\"]));var u=fe[fe.length-1],c={year:null!==(e=null===(t=s)||void 0===t?void 0:t.year)&&void 0!==e?e:\"\",retailer_hq_id:Te(null===(n=s)||void 0===n?void 0:n[u]),retailer_bu_id:Te(null===(r=s)||void 0===r?void 0:r.shop_name),status:Te(null===(o=s)||void 0===o?void 0:o.status),shop_name:x.length?x:\"\",page_no:K.pageNo,page_size:K.pageSize,paginated:!0,portfolio_code:(0,d.y2)(s,te,ne)};(0,T.N8)(g,h,m,c).then(function(e){if(null!=e&&e.retailers_list){var t,n=(null==e||null===(t=e.retailers_list)||void 0===t?void 0:t.map(function(e){return $($({},e),{},{achievement:(null==e?void 0:e.status)===l.vg.BGP_CREATED?\"\".concat((100*(null==e?void 0:e.actual_value)/(null==e?void 0:e.planned_value)).toFixed(2),\"%\"):null,achievement_volume:null!=e&&e.planned_volume?\"\".concat((0,d.Ee)(100*(null==e?void 0:e.actual_volume)/(null==e?void 0:e.planned_volume)),\"%\"):null})}))||[];Ce(n),ae(null==e?void 0:e.total_elements),se(!1)}})}()},[K,ye,x]),a().createElement(a().Fragment,null,a().createElement(B,null,a().createElement(_.A,null,a().createElement(S.A,{selectedFilters:ye,onSearch:function(e){I(e)},setPaginationState:Z,setIsFilterOpen:se,searchBasedOn:\"\".concat((0,F.t)(\"RETAILERS_BGP_SEARCH\")),downloadReport:function(){var e,t=fe.at(-1),n={year:null!==(e=null==ye?void 0:ye.year)&&void 0!==e?e:\"\".concat(U.Ax.currentYear),retailer_hq_id:Te(null==ye?void 0:ye[t]),retailer_bu_id:Te(null==ye?void 0:ye.shop_name),status:Te(null==ye?void 0:ye.status),shop_name:x.length?x:\"\",portfolio_code:(0,d.y2)(ye,te,ne)};(0,T.cN)(g,h,m,n).then(function(e){null!=e&&e.errorMessage?v({message:null==e?void 0:e.errorMessage,type:\"error\"}):G(e)}).catch(function(e){v({message:null==e?void 0:e.message,type:\"error\"})})},isDownloadRequired:!0,isBGPUploadEnabled:r}),a().createElement(b.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},null!=E&&E.length?a().createElement(w.A,{rows:(0,d.pj)(_e),columnDefs:(t=Q(E),t=te?Q(t):t.filter(function(e){return\"portfolio_code\"!==e.field})),frameworkComponents:{ActionComponent:function(e){var t=e.data;return function(e){var t=e.data,n=e.onClick;return e.isCountryAdmin?(null==t?void 0:t.status)===l.vg.BGP_CREATED?a().createElement(V,{onClick:n}):a().createElement(\"span\",{className:\"smart-agro-lite-na-label\"},\"N/A\"):a().createElement(V,{onClick:n})}($($({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,W)),{},{data:t,onClick:function(){return P(\"../../\".concat(u.fp.BGPDetails,\"?status=\").concat(null==t?void 0:t.status,\"&shop_name=\").concat(null==t?void 0:t.shop_name,\"&mobile_number=\").concat(null==t?void 0:t.mobile_number,\"&hq=\").concat(null==t?void 0:t.parent_hq_name,\"&hq_name=\").concat(null==t?void 0:t.hq_name,\"&retailer_uuid=\").concat(null==t?void 0:t.retailer_uuid,\"&retailer_bgp_id=\").concat(null==t?void 0:t.retailer_bgp_id,\"&portfolio_code=\").concat(null==t?void 0:t.portfolio_code,\"&parent_hq_user_name=\").concat(null==t?void 0:t.parent_hq_user_name,\"&hq_user_name=\").concat(null==t?void 0:t.hq_user_name,\"&tier=\").concat(null==t?void 0:t.tier))},isCountryAdmin:(0,l.EB)(g)}))},StatusComponent:function(e){var t=e.data,n=function(e){switch(e){case l.vg.BGP_NOT_CREATED:return{className:\"red-label\",text:l.L5.BGP_NOT_CREATED};case l.vg.PENDING_FOR_RETAILER_ACCEPTANCE:return{className:\"yellow-label\",text:l.L5.PENDING_FOR_RETAILER_ACCEPTANCE};case l.vg.PENDING_FOR_TM_APPROVAL:return{className:\"tm-label\",text:l.L5.PENDING_FOR_TM_APPROVAL};case l.vg.BGP_CREATED:return{className:\"active-label\",text:l.L5.BGP_CREATED};default:return{className:\"capitalize smart-agro-lite-default-label\",text:e}}}(null==t?void 0:t.status);return a().createElement(\"p\",{className:n.className},n.text)}},defaultCellMinWidth:150}):a().createElement(a().Fragment,null)),a().createElement(C.A,{pageNo:K.pageNo,totalPageCount:Math.ceil(oe/K.pageSize),totalElements:oe,onPageChange:function(e){Z(function(t){return $($({},t),{},{pageNo:Number(e)})})}})),null!=Y&&Y.length?a().createElement(z,{isVisible:null==Y?void 0:Y.length,message:Y,onClose:function(){return G(\"\")},heading:\"File is Being Processed\"}):a().createElement(a().Fragment,null)),le&&a().createElement(R.A,{onRequestClose:function(){return se(!1)},isFilterOpen:le,onFilterSubmit:function(e){Ee(e),localStorage.setItem(\"selectedFilters\",JSON.stringify(e)),Z(function(e){return $($({},e),{},{pageNo:0,pageSize:10})})},onClearFilters:function(){Ee({}),we(),localStorage.removeItem(\"selectedFilters\"),se(!1)},filtersOptions:ce,selectedFilters:ye,onChangeHq:Se,setFiltersOptions:de,dynamicFilterLabels:fe,dynamicFiltersList:me,onDynamicFilterChange:function(e,t,n){var r=me[t+1];if(r){var o={targetForId:r.sales_hierarchy_id,parentHqIds:e};(0,O._n)(g,h,m,o).then(function(e){var o=Array.isArray(e)?e.map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}}):[];de(function(e){return $($({},e),{},X({},r.name,o))}),n(r.name,[]);for(var a=function(e){de(function(t){return $($({},t),{},X({},fe[e],[]))}),n(fe[e],[])},i=t+2;i<fe.length;i++)a(i)}).catch(function(e){v({message:e.message,type:\"error\"})})}},userRoleType:A,hasShowPortfolio:te}))};const ne=(0,o.memo)(te);n(48980);var re=n(49885),oe=n(35184),ae=n(8239),ie=n(88084),le=n(34195),se=n(15664),ue=n(36874),ce=n(64121),de=n(48506);function pe(e){return pe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},pe(e)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){he(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=pe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==pe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const me=function(e){var t=e.isFilterOpen,n=e.onRequestClose,o=e.onFilterSubmit,i=e.filtersOptions,l=e.onClearFilters,s=e.selectedFilters,u=e.dynamicFilterLabels,c=void 0===u?[]:u,d=e.hasShowPortfolio,p=(0,le.Bd)().t,f=c.at(-1),g=function(e,t,n){var r=t.map(function(e){return ge(ge({},e),{},{checked:!0})});n(e,r),e===f&&h(e,r,n)},h=function(e,t,n){n(e,t)};return a().createElement(N.A,null,a().createElement(ue.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},a().createElement(N.A,{p:3,className:\"mdo-floating-filter-wrapper\"},a().createElement(ie.l1,{enableReinitialize:!0,initialValues:s,onSubmit:function(e){return o(e)}},function(e){var t,o,s,u=e.values,c=e.setFieldValue;return a().createElement(ie.lV,{className:\"popupContent bgp-floating-filter-mdo\"},a().createElement(ae.Ay,{gap:1,container:!0,columns:{xs:13},mb:2,columnSpacing:1},f&&(null===(t=[f])||void 0===t?void 0:t.map(function(e){var t;return a().createElement(ae.Ay,{item:!0,xs:3,key:e},function(e){var t=e.label,n=e.handleDynamicFilterChange,r=e.options,o=e.setFieldValue,i=e.values;return a().createElement(N.A,{width:\"100%\"},a().createElement(Y.A,{variant:\"subtitle2\"},p(t.toUpperCase())),a().createElement(ie.D0,{name:t},function(){var e;return a().createElement(de.A,{options:r,onHandleChange:function(e){n(t,e,o)},name:t,selectedOption:null!==(e=i[t])&&void 0!==e?e:[],disabled:!r.length})}))}({label:e,options:null!==(t=i[e])&&void 0!==t?t:[],values:u,setFieldValue:c,handleDynamicFilterChange:g}))})),d&&a().createElement(ae.Ay,{item:!0,xs:3},a().createElement(N.A,{width:\"100%\"},a().createElement(Y.A,{variant:\"subtitle2\"},p(\"PORTFOLIO_FIELD\")),a().createElement(ie.D0,{name:\"portfolio\"},function(){return a().createElement(ce.A,{defaultLabel:p(\"SELECT_PORTFOLIO\"),name:\"portfolio\",label:\"portfolio\",onChange:function(e,t){c(\"portfolio\",t)},labelKey:\"label\",selectedOption:u.portfolio,value:u.portfolio,options:null==i?void 0:i.portfolio})})))),a().createElement(ae.Ay,{columns:{xs:13},container:!0,gap:1},a().createElement(ae.Ay,{item:!0,xs:3}),a().createElement(ae.Ay,{item:!0,xs:9.9},a().createElement(r.A,{direction:\"row\",ml:2,justifyContent:\"end\",mt:2.5},a().createElement(N.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},a().createElement(se.A,{onButtonClick:function(){return l()},variant:\"outlined\",buttonName:null!==(o=p(\"CLEAR_FILTERS\"))&&void 0!==o?o:\"\",type:\"reset\",\"data-testid\":\"clearFilter\",fullwidth:!1,color:\"primary\"}),a().createElement(se.A,{variant:\"contained\",fullwidth:!1,type:\"submit\",color:\"primary\",buttonName:null!==(s=p(\"APPLY_FILTERS\"))&&void 0!==s?s:\"\"}))))),a().createElement(N.A,{\"data-testid\":\"closeIcon\",onClick:function(){return n(!1)},className:\"smart-agro-lite-filter-cross\"},a().createElement(Y.A,{className:\"icon-close closeIcon\"})))}))))};var ve=n(36843);function Ae(e){return Ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ae(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ae(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ae(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const we=function(e){var t=e.isBGPUploadEnabled,n=void 0===t||t,r=(0,o.useContext)(c.v),s=r.BackOfficeProps,f=s.globalStore.User,g=s.baseurl,h=r.triggerShowLoader,m=r.triggerToastMsg,v=(0,H.i)(f),A=v.hasShowPortfolio,y=v.hasPortfolioCode,E=v.hasPortfolioEnable,b=_e((0,o.useState)({pageNo:0,pageSize:10}),2),C=b[0],w=b[1],R=(0,i.Zp)(),N=_e((0,o.useState)(!1),2),L=N[0],P=N[1],M=_e((0,o.useState)(),2),x=M[0],I=M[1],k=_e((0,o.useState)(\"\"),2),B=k[0],U=k[1],Y=_e((0,o.useState)([]),2),G=Y[0],z=Y[1],V=_e((0,o.useState)(0),2),q=V[0],W=V[1],Q=_e((0,o.useState)([]),2),K=Q[0],$=Q[1],X=_e((0,o.useState)([]),2),J=X[0],Z=X[1],ee=_e((0,o.useState)({}),2),te=ee[0],ne=ee[1],ae=_e((0,o.useState)([]),2),ie=ae[0],le=ae[1],se=function(){(0,j.x3)(f,g,h).then(function(e){var t,n,r;r=null==(t=e)||null===(n=t.data)||void 0===n?void 0:n.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.code}}),I(function(e){return Ee(Ee({},e),{},{portfolio:r})}),(0,D.Vs)(f,g,h).then(function(e){var t,n;null!=e&&e.sales_hierarchy_id&&(t=e.sales_hierarchy_id,null===(n=(0,O.FU)(f,g,h,t))||void 0===n||n.then(function(e){if(e){var t,n,r=null==e?void 0:e.findIndex(function(e){return\"TM HQ\"===e.name}),o=null==e?void 0:e.slice(0,r+1),a=null==o?void 0:o.map(function(e){return null==e?void 0:e.name});$(a),Z(e),r>-1&&e[r]&&(i=null===(t=e[r])||void 0===t?void 0:t.sales_hierarchy_id,l=null===(n=e[r])||void 0===n?void 0:n.name,null===(s=(0,ve.F1)(f,g,h,i))||void 0===s||s.then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{value:null==e?void 0:e.hq_data_id,checked:!1,label:null==e?void 0:e.hq_name}});I(function(e){return Ee(Ee({},e),{},be({},l,t))})}}).catch(function(e){m({message:e.message,type:\"error\"})}))}var i,l,s}).catch(function(e){m({message:e.message,type:\"error\"})}))}).catch(function(e){m({message:e.message,type:\"error\"})})}).catch(function(e){m({message:e.message,type:\"error\"})})},ue=function(e){return A?null!=e&&e.portfolio?[e.portfolio.value]:[]:[y]};return(0,o.useEffect)(function(){var e,t,n,r,o;n=K.at(-1),r=te,o={search:B,page_size:C.pageSize,page_no:C.pageNo,paginated:!0,tm_hq_id:(e=null==r?void 0:r[n],null!==(t=null==e?void 0:e.map(function(e){return null==e?void 0:e.value}))&&void 0!==t?t:[]),portfolio_code:ue(r)},(0,T.cL)(f,g,h,o).then(function(e){z(null==e?void 0:e.tm_list),W(null==e?void 0:e.total_elements)}).catch(function(){})},[B,C,te]),(0,o.useEffect)(function(){se()},[]),(0,o.useEffect)(function(){(0,p.C)(f,g,h,{moduleName:\"RETAILERS\",keys:[l.Rk.PLANNER_HQ_WISE_BGP_DETAILS_HEADERS]}).then(function(e){var t,n=null===(t=(0,d.Ws)(l.Rk.PLANNER_HQ_WISE_BGP_DETAILS_HEADERS,e))||void 0===t?void 0:t.value,r=JSON.parse(n).map(function(e){return Ee(Ee({},e),{},{headerName:(0,F.t)(null==e?void 0:e.headerName)})});le(r)}).catch(function(){})},[]),a().createElement(a().Fragment,null,a().createElement(oe.L,null,a().createElement(_.A,null,a().createElement(S.A,{isBGPUploadEnabled:n,selectedFilters:te,onSearch:function(e){U(e)},setPaginationState:w,setIsFilterOpen:P,searchBasedOn:\"\".concat(E?(0,F.t)(\"TMHQ_BGP_LIST_SEARCH\"):(0,F.t)(\"TMHQ_BGP_LIST_SEARCH_BY_TMHQ\"))}),a().createElement(re.A,{retailerHq:null==G?void 0:G.map(function(e){var t,n,r,o;return Ee(Ee({},e),{},{retailer_hq_name:null==e?void 0:e.hqName,total_planned_value:\"\".concat(null!==(t=null==e?void 0:e.totalPlannedValue)&&void 0!==t?t:\"0.00\",\" Lakhs\"),total_actual_value:\"\".concat(null!==(n=null==e?void 0:e.totalActualValue)&&void 0!==n?n:\"0.00\",\" Lakhs\"),total_planned_volume:\"\".concat(null!==(r=null==e?void 0:e.totalTargetVolume)&&void 0!==r?r:\"0\",\" Kgs\"),total_actual_volume:\"\".concat(null!==(o=null==e?void 0:e.totalActualVolume)&&void 0!==o?o:\"0\",\" Kgs\"),portfolio_code:null==e?void 0:e.portfolioCode,hqDataId:null==e?void 0:e.hqDataId})}),isExpand:null,handleViewDetails:function(e){R(\"../../\".concat(u.fp.MDOHQ_BGP_Details,\"?tmHqName=\").concat(null==e?void 0:e.retailer_hq_name,\"&id=\").concat(null==e?void 0:e.hqDataId,\"&userId=\").concat(null==e?void 0:e.userUUID,\"&portfolioCode=\").concat(null==e?void 0:e.portfolioCode,\"&roleId=\").concat(null==e?void 0:e.salesHierarchyId))},listData:[],paginationState:C,totalElements:q,setPaginationState:w,isTMHQList:!0,tableHeaders:ie}))),L&&a().createElement(me,{onRequestClose:function(){return P(!1)},isFilterOpen:L,onFilterSubmit:function(e){ne(e),w(function(e){return Ee(Ee({},e),{},{pageNo:0,pageSize:10})}),P(!1)},onClearFilters:function(){ne({}),se(),P(!1)},filtersOptions:x,selectedFilters:te,setFiltersOptions:I,dynamicFilterLabels:K,onDynamicFilterChange:function(e,t,n){var r=J[t+1];if(r){var o={targetForId:r.sales_hierarchy_id,parentHqIds:e};(0,O._n)(f,g,h,o).then(function(e){var o=Array.isArray(e)?e.map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}}):[];I(function(e){return Ee(Ee({},e),{},be({},r.name,o))}),n(r.name,[]);for(var a=function(e){I(function(t){return Ee(Ee({},t),{},be({},K[e],[]))}),n(K[e],[])},i=t+2;i<K.length;i++)a(i)}).catch(function(e){m({message:e.message,type:\"error\"})})}},hasShowPortfolio:A}))};var Se=n(17197),Te=n(43563),Oe=[{id:1001,file_name:\"BGP Upload 2026.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"INPROGRESS\",total_rows_count:200,success_rows_count:0,module_type:\"RETAILER\",uploaded_for:\"BGP\"},{id:1002,file_name:\"BGP Upload Jan 2026.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"failure\",total_rows_count:200,success_rows_count:0,module_type:\"RETAILER\",uploaded_for:\"BGP\"},{id:1003,file_name:\"BGP Upload Jan 2026.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"PARTIAL_SUCCESS\",total_rows_count:200,success_rows_count:160,module_type:\"RETAILER\",uploaded_for:\"BGP\"},{id:1004,file_name:\"Targets Upload 2023.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"COMPLETED\",total_rows_count:200,success_rows_count:200,module_type:\"RETAILER\",uploaded_for:\"BGP\"},{id:1005,file_name:\"Targets Upload 2023.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"COMPLETED\",total_rows_count:200,success_rows_count:200,module_type:\"RETAILER\",uploaded_for:\"BGP\"},{id:1006,file_name:\"Targets Upload 2023.xlsx\",start_time:\"2026-06-29T00:21:00Z\",end_time:\"2026-06-29T00:21:00Z\",status:\"COMPLETED\",total_rows_count:200,success_rows_count:200,module_type:\"RETAILER\",uploaded_for:\"BGP\"}],De=(Oe.length,[{row_number:4,column_name:\"planned_value\",error_message:\"Planned value is required.\"},{row_number:9,column_name:\"brand_name\",error_message:\"Brand is not available for this retailer.\"}]),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return{upload_document_list:Oe.slice(e*t,(e+1)*t),total_elements:Oe.length}};function Ne(e){return Ne=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ne(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Me(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ne(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ne(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||ke(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ke(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ke(e,t){if(e){if(\"string\"==typeof e)return Be(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Fe=function(){return a().createElement(f.A,{bulkUploadModuleTypes:[l.wb.RETAILER],tableHeaders:s.u2,mockResponse:Re,mockErrorLogs:De,isRetailerBgp:!0})};const je=function(){var e=(0,o.useContext)(c.v),t=e.BackOfficeProps,n=t.globalStore.User,s=t.baseurl,f=e.triggerShowLoader,b=(0,i.zy)(),_=new URLSearchParams(b.search).get(\"tabname\"),C=Ie(a().useState(!1),2),w=C[0],S=C[1],O=[{id:0,tabName:Se.Q.RETAILERS_BGP_DETAILS,path:u.fp.Retailer_BGPDetails,checked:!0,component:a().createElement(ne,{isBGPUploadEnabled:w}),queryParam:{tabname:u.fp.Retailer_BGPDetails}}],D={id:1,tabName:Se.Q.TMHQ_BGP_DETAILS,path:u.fp.TMHQ_BGP_Details,component:a().createElement(we,{isBGPUploadEnabled:w}),checked:!0,queryParam:{tabname:u.fp.TMHQ_BGP_Details}},R={id:2,tabName:Se.Q.MY_UPLOADS,path:u.fp.Uploads_ErrorLog,component:a().createElement(Fe,null),checked:!0,queryParam:{tabname:u.fp.Uploads_ErrorLog}},N={id:3,tabName:Se.Q.MY_DOWNLOADS,path:u.fp.MY_DOWNLOADS,component:a().createElement(Te.A,{refreshIntervalMs:5e3}),checked:!0,queryParam:{tabname:u.fp.MY_DOWNLOADS}},L=w?[R,N]:[],P=(0,i.Zp)(),M={tablist:O,currentTabs:u.fp.Retailer_BGPDetails},x=Ie(a().useState(M),2),I=x[0],k=x[1],B=Ie(a().useState([]),2),F=B[0],j=B[1];(0,o.useEffect)(function(){var e,t={moduleName:l.Rk.RETAILERS,keys:[l.Rk.IS_BGP_BULK_UPLOAD_ENABLE],apiName:l.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS,roleId:null==n||null===(e=n.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId},r={moduleName:l.Rk.RETAILERS,keys:[\"retailer_enable_bgp\",\"retailer_bgp_start_date\",\"retailer_bgp_end_date\"]};Promise.all([(0,p.C)(n,s,f,t),(0,T.P6)(n,s,f,r)]).then(function(e){var t,n,r,o,a=Ie(e,2),i=a[0],s=a[1],u=\"true\"===(null===(t=(0,d.Ws)(l.Rk.IS_BGP_BULK_UPLOAD_ENABLE,i))||void 0===t?void 0:t.value),c=\"true\"===(null===(n=(0,d.Ws)(\"retailer_enable_bgp\",null==s?void 0:s.data))||void 0===n?void 0:n.value),p=null===(r=(0,d.Ws)(\"retailer_bgp_start_date\",null==s?void 0:s.data))||void 0===r?void 0:r.value,f=null===(o=(0,d.Ws)(\"retailer_bgp_end_date\",null==s?void 0:s.data))||void 0===o?void 0:o.value;S(u&&c&&Boolean(p&&f)&&(0,d.Lc)(p,f))}).catch(function(){return S(!1)})},[]),(0,o.useEffect)(function(){(0,l.EB)(n)?(j(D),k({tablist:[].concat(O,[D],L),currentTabs:u.fp.Retailer_BGPDetails})):function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o={};return o.domain=n,o.endPoint=y.p.GET_HEADQUARTERS_TABS,o.triggerLoader=r,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"user-id\":\"\".concat(e.UserDetails.user_id),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"role-id\":null==e||null===(t=e.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId,Authorization:\"Bearer \".concat(e.AccessToken)},new Promise(function(e,t){(0,E.uB)(o,A.dF.GET).then(function(t){if((0,d.mN)(t))return e(t.data);throw new Error((0,d.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})}(n,s,f).then(function(e){var t=e.map(function(e,t){return{id:t+1,tabName:\"\".concat(e.hqName,\" details\"),path:\"\".concat(e.hqName),checked:t<4,component:a().createElement(v.A,{key:null==e?void 0:e.hqDataId,isBGPUploadEnabled:w}),queryParam:{tabname:\"\".concat(e.hqName),id:null==e?void 0:e.hqDataId}}});P(\"../\".concat(u.fp.Retailers_Bgp,\"/\").concat(u.fp.Retailer_BGPDetails,\"/?tabname=\").concat(u.fp.Retailer_BGPDetails)),j(t),k({tablist:[].concat(O,xe(t),L),currentTabs:u.fp.Retailer_BGPDetails})})},[w]);var H=function(e){e.preventDefault(),e.returnValue=\"\";var t=\"Are you sure you want to leave?\";return e.returnValue=t,t};(0,o.useEffect)(function(){return window.addEventListener(\"beforeunload\",H),_&&k(function(e){return Pe(Pe({},e),{},{currentTabs:_})}),function(){window.removeEventListener(\"beforeunload\",H)}},[_]);var U=(0,o.useCallback)(function(){return a().createElement(i.BV,null,a().createElement(i.qh,{index:!0,element:a().createElement(i.C5,{to:_?\"\".concat(_).concat(b.search):\"\".concat(u.fp.Retailer_BGPDetails,\"/?\").concat((0,d.Nr)({tabname:null!=_?_:u.fp.Retailer_BGPDetails}))})}),I.tablist.map(function(e){return a().createElement(i.qh,{key:e.id,path:e.path,element:e.component})}))},[I.tablist]);return a().createElement(m.T,null,a().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},a().createElement(g.A,{routePathName:[{name:u.F_.Retailers,path:u.fp.Retailers},{name:u.F_.Retailers_Bgp,path:u.fp.Retailers_Bgp}]})),a().createElement(h.A,{defaultTab:F,isScrollVisible:\"tabs-scroll\",tabStateProps:I,handleTabChange:function(e){k(function(t){return Pe(Pe({},t),{},{currentTabs:e})})},onApplySelectedTabs:function(e){return function(e){var t=F.filter(function(t){return e.find(function(e){return e.label===t.tabName&&e.checked})}).map(function(e){return Pe(Pe({},e),{},{checked:!0})});k({tablist:[].concat(O,xe(t),L),currentTabs:u.fp.Retailer_BGPDetails}),P(\"../\".concat(u.fp.Retailers_Bgp,\"/\").concat(u.fp.Retailer_BGPDetails,\"/?tabname=\").concat(u.fp.Retailer_BGPDetails))}(e)},isParamsReq:!0}),U())}},84215:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(82839),a=n(22195),i=function(e){return o.slice(0,e.length)===e};e.exports=i(\"Bun/\")?\"BUN\":i(\"Cloudflare-Workers\")?\"CLOUDFLARE\":i(\"Deno/\")?\"DENO\":i(\"Node.js/\")?\"NODE\":r.Bun&&\"string\"==typeof Bun.version?\"BUN\":r.Deno&&\"object\"==typeof Deno.version?\"DENO\":\"process\"===a(r.process)?\"NODE\":r.window&&r.document?\"BROWSER\":\"REST\"},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},84262:(e,t,n)=>{\"use strict\";n.d(t,{JV:()=>u,ZV:()=>l,q9:()=>s});var r=n(56203),o=n(81970),a=n.n(o),i=n(99478),l=function(e){var t=e.data,n=function(e){switch(e){case\"APPROVED\":return{className:\"smart-agro-lite-active-label\",text:(0,r.t)(\"TM_APPROVED\")};case\"PENDING_FOR_APPROVAL\":return{className:\"smart-agro-lite-yellow-label\",text:i.F9.PENDING_FOR_APPROVAL};case\"REJECTED\":return{className:\"capitalize smart-agro-lite-inactive-label\",text:e};default:return{className:\"capitalize smart-agro-lite-default-label\",text:e}}}(null==t?void 0:t.status);return a().createElement(\"p\",{className:n.className},n.text)},s=function(e){var t=e.data,n=(null==t?void 0:t.active)?{className:\"smart-agro-lite-active-label\",text:(0,r.t)(\"ACTIVE\")}:{className:\"smart-agro-lite-inactive-label\",text:(0,r.t)(\"INACTIVE\")};return a().createElement(\"p\",{className:n.className},n.text)},u=function(e){var t=e.data,n=function(e){switch(e){case\"VERIFIED\":return{className:\"smart-agro-lite-active-label\",text:(0,r.t)(\"Verified\")};case\"NOT_VERIFIED\":return{className:\"smart-agro-lite-yellow-label\",text:(0,r.t)(\"Not Verified\")};case\"RE_KYC\":return{className:\"smart-agro-lite-blue-label_no_link\",text:(0,r.t)(\"Re-KYC\")};default:return{className:\"capitalize smart-agro-lite-default-label\",text:e}}}(null==t?void 0:t.verificationStatus);return a().createElement(\"p\",{className:n.className},n.text)}},84270:(e,t,n)=>{\"use strict\";var r=n(69565),o=n(94901),a=n(20034),i=TypeError;e.exports=function(e,t){var n,l;if(\"string\"===t&&o(n=e.toString)&&!a(l=r(n,e)))return l;if(o(n=e.valueOf)&&!a(l=r(n,e)))return l;if(\"string\"!==t&&o(n=e.toString)&&!a(l=r(n,e)))return l;throw new i(\"Can't convert object to primitive value\")}},84373:(e,t,n)=>{\"use strict\";var r=n(48981),o=n(35610),a=n(26198);e.exports=function(e){for(var t=r(this),n=a(t),i=arguments.length,l=o(i>1?arguments[1]:void 0,n),s=i>2?arguments[2]:void 0,u=void 0===s?n:o(s,n);u>l;)t[l++]=e;return t}},84428:(e,t,n)=>{\"use strict\";var r=n(78227)(\"iterator\"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},84451:function(e,t,n){!function(e){\"use strict\";var t={1:\"೧\",2:\"೨\",3:\"೩\",4:\"೪\",5:\"೫\",6:\"೬\",7:\"೭\",8:\"೮\",9:\"೯\",0:\"೦\"},n={\"೧\":\"1\",\"೨\":\"2\",\"೩\":\"3\",\"೪\":\"4\",\"೫\":\"5\",\"೬\":\"6\",\"೭\":\"7\",\"೮\":\"8\",\"೯\":\"9\",\"೦\":\"0\"};e.defineLocale(\"kn\",{months:\"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್\".split(\"_\"),monthsShort:\"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ\".split(\"_\"),monthsParseExact:!0,weekdays:\"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ\".split(\"_\"),weekdaysShort:\"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ\".split(\"_\"),weekdaysMin:\"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ\".split(\"_\"),longDateFormat:{LT:\"A h:mm\",LTS:\"A h:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm\",LLLL:\"dddd, D MMMM YYYY, A h:mm\"},calendar:{sameDay:\"[ಇಂದು] LT\",nextDay:\"[ನಾಳೆ] LT\",nextWeek:\"dddd, LT\",lastDay:\"[ನಿನ್ನೆ] LT\",lastWeek:\"[ಕೊನೆಯ] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s ನಂತರ\",past:\"%s ಹಿಂದೆ\",s:\"ಕೆಲವು ಕ್ಷಣಗಳು\",ss:\"%d ಸೆಕೆಂಡುಗಳು\",m:\"ಒಂದು ನಿಮಿಷ\",mm:\"%d ನಿಮಿಷ\",h:\"ಒಂದು ಗಂಟೆ\",hh:\"%d ಗಂಟೆ\",d:\"ಒಂದು ದಿನ\",dd:\"%d ದಿನ\",M:\"ಒಂದು ತಿಂಗಳು\",MM:\"%d ತಿಂಗಳು\",y:\"ಒಂದು ವರ್ಷ\",yy:\"%d ವರ್ಷ\"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"ರಾತ್ರಿ\"===t?e<4?e:e+12:\"ಬೆಳಿಗ್ಗೆ\"===t?e:\"ಮಧ್ಯಾಹ್ನ\"===t?e>=10?e:e+12:\"ಸಂಜೆ\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"ರಾತ್ರಿ\":e<10?\"ಬೆಳಿಗ್ಗೆ\":e<17?\"ಮಧ್ಯಾಹ್ನ\":e<20?\"ಸಂಜೆ\":\"ರಾತ್ರಿ\"},dayOfMonthOrdinalParse:/\\d{1,2}(ನೇ)/,ordinal:function(e){return e+\"ನೇ\"},week:{dow:0,doy:6}})}(n(95093))},84606:(e,t,n)=>{\"use strict\";var r=n(16823),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o(\"Cannot delete property \"+r(t)+\" of \"+r(e))}},84864:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(44576),a=n(79504),i=n(92796),l=n(23167),s=n(66699),u=n(2360),c=n(38480).f,d=n(1625),p=n(60788),f=n(655),g=n(61034),h=n(58429),m=n(11056),v=n(36840),A=n(79039),y=n(39297),E=n(91181).enforce,b=n(87633),_=n(78227),C=n(83635),w=n(18814),S=_(\"match\"),T=o.RegExp,O=T.prototype,D=o.SyntaxError,R=a(O.exec),N=a(\"\".charAt),L=a(\"\".replace),P=a(\"\".indexOf),M=a(\"\".slice),x=/^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/,I=/a/g,k=/a/g,B=new T(I)!==I,F=h.MISSED_STICKY,j=h.UNSUPPORTED_Y;if(i(\"RegExp\",r&&(!B||F||C||w||A(function(){return k[S]=!1,T(I)!==I||T(k)===k||\"/a/i\"!==String(T(I,\"i\"))})))){for(var H=function(e,t){var n,r,o,a,i,c,h=d(O,this),m=p(e),v=void 0===t,A=[],b=e;if(!h&&m&&v&&e.constructor===H)return e;if((m||d(O,e))&&(e=e.source,v&&(t=g(b))),e=void 0===e?\"\":f(e),t=void 0===t?\"\":f(t),b=e,C&&\"dotAll\"in I&&(r=!!t&&P(t,\"s\")>-1)&&(t=L(t,/s/g,\"\")),n=t,F&&\"sticky\"in I&&(o=!!t&&P(t,\"y\")>-1)&&j&&(t=L(t,/y/g,\"\")),w&&(a=function(e){for(var t,n=e.length,r=0,o=\"\",a=[],i=u(null),l=!1,s=!1,c=0,d=\"\";r<=n;r++){if(\"\\\\\"===(t=N(e,r)))t+=N(e,++r);else if(\"]\"===t)l=!1;else if(!l)switch(!0){case\"[\"===t:l=!0;break;case\"(\"===t:if(o+=t,\"?:\"===M(e,r+1,r+3))continue;R(x,M(e,r+1))&&(r+=2,s=!0),c++;continue;case\">\"===t&&s:if(\"\"===d||y(i,d))throw new D(\"Invalid capture group name\");i[d]=!0,a[a.length]=[d,c],s=!1,d=\"\";continue}s?d+=t:o+=t}return[o,a]}(e),e=a[0],A=a[1]),i=l(T(e,t),h?this:O,H),(r||o||A.length)&&(c=E(i),r&&(c.dotAll=!0,c.raw=H(function(e){for(var t,n=e.length,r=0,o=\"\",a=!1;r<=n;r++)\"\\\\\"!==(t=N(e,r))?a||\".\"!==t?(\"[\"===t?a=!0:\"]\"===t&&(a=!1),o+=t):o+=\"[\\\\s\\\\S]\":o+=t+N(e,++r);return o}(e),n)),o&&(c.sticky=!0),A.length&&(c.groups=A)),e!==b)try{s(i,\"source\",\"\"===b?\"(?:)\":b)}catch(e){}return i},U=c(T),Y=0;U.length>Y;)m(H,T,U[Y++]);O.constructor=H,H.prototype=O,v(o,\"RegExp\",H,{constructor:!0})}b(\"RegExp\")},84920:e=>{function t(e){return t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},t(e)}function n(r){return\"function\"==typeof Symbol&&\"symbol\"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":t(e)},n(r)}e.exports=n},84976:(e,t,n)=>{\"use strict\";var r;n.d(t,{N_:()=>m,k2:()=>v,ok:()=>E});var o=n(81970),a=n(40961),i=n(47767),l=n(45588);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function c(e){return void 0===e&&(e=\"\"),new URLSearchParams(\"string\"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}new Set([\"application/x-www-form-urlencoded\",\"multipart/form-data\",\"text/plain\"]);const d=[\"onClick\",\"relative\",\"reloadDocument\",\"replace\",\"state\",\"target\",\"to\",\"preventScrollReset\",\"viewTransition\"],p=[\"aria-current\",\"caseSensitive\",\"className\",\"end\",\"style\",\"to\",\"viewTransition\",\"children\"];try{window.__reactRouterVersion=\"6\"}catch(e){}const f=o.createContext({isTransitioning:!1});new Map,o.startTransition,(r||(r=n.t(a,2))).flushSync,o.useId;const g=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,h=/^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i,m=o.forwardRef(function(e,t){let n,{onClick:r,relative:a,reloadDocument:c,replace:p,state:f,target:m,to:v,preventScrollReset:A,viewTransition:y}=e,E=u(e,d),{basename:b}=o.useContext(i.jb),_=!1;if(\"string\"==typeof v&&h.test(v)&&(n=v,g))try{let e=new URL(window.location.href),t=v.startsWith(\"//\")?new URL(e.protocol+v):new URL(v),n=(0,l.pb)(t.pathname,b);t.origin===e.origin&&null!=n?v=n+t.search+t.hash:_=!0}catch(e){}let C=(0,i.$P)(v,{relative:a}),w=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:s,relative:u,viewTransition:c}=void 0===t?{}:t,d=(0,i.Zp)(),p=(0,i.zy)(),f=(0,i.x$)(e,{relative:u});return o.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&\"_self\"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,l.AO)(p)===(0,l.AO)(f);d(e,{replace:n,state:a,preventScrollReset:s,relative:u,viewTransition:c})}},[p,d,f,r,a,n,e,s,u,c])}(v,{replace:p,state:f,target:m,preventScrollReset:A,relative:a,viewTransition:y});return o.createElement(\"a\",s({},E,{href:n||C,onClick:_||c?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:m}))}),v=o.forwardRef(function(e,t){let{\"aria-current\":n=\"page\",caseSensitive:r=!1,className:a=\"\",end:c=!1,style:d,to:g,viewTransition:h,children:v}=e,y=u(e,p),E=(0,i.x$)(g,{relative:y.relative}),b=(0,i.zy)(),_=o.useContext(i.Rq),{navigator:C,basename:w}=o.useContext(i.jb),S=null!=_&&function(e,t){void 0===t&&(t={});let n=o.useContext(f);null==n&&(0,l.Oi)(!1);let{basename:r}=function(){let e=o.useContext(i.sp);return e||(0,l.Oi)(!1),e}(A.useViewTransitionState),a=(0,i.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=(0,l.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,u=(0,l.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,l.B6)(a.pathname,u)||null!=(0,l.B6)(a.pathname,s)}(E)&&!0===h,T=C.encodeLocation?C.encodeLocation(E).pathname:E.pathname,O=b.pathname,D=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;r||(O=O.toLowerCase(),D=D?D.toLowerCase():null,T=T.toLowerCase()),D&&w&&(D=(0,l.pb)(D,w)||D);const R=\"/\"!==T&&T.endsWith(\"/\")?T.length-1:T.length;let N,L=O===T||!c&&O.startsWith(T)&&\"/\"===O.charAt(R),P=null!=D&&(D===T||!c&&D.startsWith(T)&&\"/\"===D.charAt(T.length)),M={isActive:L,isPending:P,isTransitioning:S},x=L?n:void 0;N=\"function\"==typeof a?a(M):[a,L?\"active\":null,P?\"pending\":null,S?\"transitioning\":null].filter(Boolean).join(\" \");let I=\"function\"==typeof d?d(M):d;return o.createElement(m,s({},y,{\"aria-current\":x,className:N,ref:t,style:I,to:g,viewTransition:h}),\"function\"==typeof v?v(M):v)});var A,y;function E(e){let t=o.useRef(c(e)),n=o.useRef(!1),r=(0,i.zy)(),a=o.useMemo(()=>function(e,t){let n=c(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),l=(0,i.Zp)(),s=o.useCallback((e,t)=>{const r=c(\"function\"==typeof e?e(a):e);n.current=!0,l(\"?\"+r,t)},[l,a]);return[a,s]}(function(e){e.UseScrollRestoration=\"useScrollRestoration\",e.UseSubmit=\"useSubmit\",e.UseSubmitFetcher=\"useSubmitFetcher\",e.UseFetcher=\"useFetcher\",e.useViewTransitionState=\"useViewTransitionState\"})(A||(A={})),function(e){e.UseFetcher=\"useFetcher\",e.UseFetchers=\"useFetchers\",e.UseScrollRestoration=\"useScrollRestoration\"}(y||(y={}))},85011:(e,t,n)=>{n(44389),e.exports=n(6791).Object.setPrototypeOf},85072:e=>{\"use strict\";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],u=r.base?s[0]+r.base:s[0],c=a[u]||0,d=\"\".concat(u,\" \").concat(c);a[u]=c+1;var p=n(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var g=o(f,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:g,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),u=0;u<a.length;u++){var c=n(a[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=s}}},85096:function(e,t,n){!function(e){\"use strict\";var t={1:\"'inci\",5:\"'inci\",8:\"'inci\",70:\"'inci\",80:\"'inci\",2:\"'nci\",7:\"'nci\",20:\"'nci\",50:\"'nci\",3:\"'üncü\",4:\"'üncü\",100:\"'üncü\",6:\"'ncı\",9:\"'uncu\",10:\"'uncu\",30:\"'uncu\",60:\"'ıncı\",90:\"'ıncı\"};e.defineLocale(\"tr\",{months:\"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık\".split(\"_\"),monthsShort:\"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara\".split(\"_\"),weekdays:\"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi\".split(\"_\"),weekdaysShort:\"Paz_Pzt_Sal_Çar_Per_Cum_Cmt\".split(\"_\"),weekdaysMin:\"Pz_Pt_Sa_Ça_Pe_Cu_Ct\".split(\"_\"),meridiem:function(e,t,n){return e<12?n?\"öö\":\"ÖÖ\":n?\"ös\":\"ÖS\"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return\"ös\"===e||\"ÖS\"===e},longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[bugün saat] LT\",nextDay:\"[yarın saat] LT\",nextWeek:\"[gelecek] dddd [saat] LT\",lastDay:\"[dün] LT\",lastWeek:\"[geçen] dddd [saat] LT\",sameElse:\"L\"},relativeTime:{future:\"%s sonra\",past:\"%s önce\",s:\"birkaç saniye\",ss:\"%d saniye\",m:\"bir dakika\",mm:\"%d dakika\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",w:\"bir hafta\",ww:\"%d hafta\",M:\"bir ay\",MM:\"%d ay\",y:\"bir yıl\",yy:\"%d yıl\"},ordinal:function(e,n){switch(n){case\"d\":case\"D\":case\"Do\":case\"DD\":return e;default:if(0===e)return e+\"'ıncı\";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},85498:function(e,t,n){!function(e){\"use strict\";var t=/(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale(\"fr\",{months:\"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre\".split(\"_\"),monthsShort:\"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.\".split(\"_\"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:\"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi\".split(\"_\"),weekdaysShort:\"dim._lun._mar._mer._jeu._ven._sam.\".split(\"_\"),weekdaysMin:\"di_lu_ma_me_je_ve_sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Aujourd’hui à] LT\",nextDay:\"[Demain à] LT\",nextWeek:\"dddd [à] LT\",lastDay:\"[Hier à] LT\",lastWeek:\"dddd [dernier à] LT\",sameElse:\"L\"},relativeTime:{future:\"dans %s\",past:\"il y a %s\",s:\"quelques secondes\",ss:\"%d secondes\",m:\"une minute\",mm:\"%d minutes\",h:\"une heure\",hh:\"%d heures\",d:\"un jour\",dd:\"%d jours\",w:\"une semaine\",ww:\"%d semaines\",M:\"un mois\",MM:\"%d mois\",y:\"un an\",yy:\"%d ans\"},dayOfMonthOrdinalParse:/\\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case\"D\":return e+(1===e?\"er\":\"\");default:case\"M\":case\"Q\":case\"DDD\":case\"d\":return e+(1===e?\"er\":\"e\");case\"w\":case\"W\":return e+(1===e?\"re\":\"e\")}},week:{dow:1,doy:4}})}(n(95093))},85505:(e,t,n)=>{\"use strict\";var r,o=(r=n(63193))&&r.__esModule?r:{default:r};t.A=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{return a&&a.require&&a.require(\"util\").types||i&&i.binding&&i.binding(\"util\")}catch(e){}}();e.exports=l},86169:function(e,t,n){!function(e){\"use strict\";var t={1:\"१\",2:\"२\",3:\"३\",4:\"४\",5:\"५\",6:\"६\",7:\"७\",8:\"८\",9:\"९\",0:\"०\"},n={\"१\":\"1\",\"२\":\"2\",\"३\":\"3\",\"४\":\"4\",\"५\":\"5\",\"६\":\"6\",\"७\":\"7\",\"८\":\"8\",\"९\":\"9\",\"०\":\"0\"};function r(e,t,n,r){var o=\"\";if(t)switch(n){case\"s\":o=\"काही सेकंद\";break;case\"ss\":o=\"%d सेकंद\";break;case\"m\":o=\"एक मिनिट\";break;case\"mm\":o=\"%d मिनिटे\";break;case\"h\":o=\"एक तास\";break;case\"hh\":o=\"%d तास\";break;case\"d\":o=\"एक दिवस\";break;case\"dd\":o=\"%d दिवस\";break;case\"M\":o=\"एक महिना\";break;case\"MM\":o=\"%d महिने\";break;case\"y\":o=\"एक वर्ष\";break;case\"yy\":o=\"%d वर्षे\"}else switch(n){case\"s\":o=\"काही सेकंदां\";break;case\"ss\":o=\"%d सेकंदां\";break;case\"m\":o=\"एका मिनिटा\";break;case\"mm\":o=\"%d मिनिटां\";break;case\"h\":o=\"एका तासा\";break;case\"hh\":o=\"%d तासां\";break;case\"d\":o=\"एका दिवसा\";break;case\"dd\":o=\"%d दिवसां\";break;case\"M\":o=\"एका महिन्या\";break;case\"MM\":o=\"%d महिन्यां\";break;case\"y\":o=\"एका वर्षा\";break;case\"yy\":o=\"%d वर्षां\"}return o.replace(/%d/i,e)}e.defineLocale(\"mr\",{months:\"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर\".split(\"_\"),monthsShort:\"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.\".split(\"_\"),monthsParseExact:!0,weekdays:\"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार\".split(\"_\"),weekdaysShort:\"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि\".split(\"_\"),weekdaysMin:\"र_सो_मं_बु_गु_शु_श\".split(\"_\"),longDateFormat:{LT:\"A h:mm वाजता\",LTS:\"A h:mm:ss वाजता\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm वाजता\",LLLL:\"dddd, D MMMM YYYY, A h:mm वाजता\"},calendar:{sameDay:\"[आज] LT\",nextDay:\"[उद्या] LT\",nextWeek:\"dddd, LT\",lastDay:\"[काल] LT\",lastWeek:\"[मागील] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%sमध्ये\",past:\"%sपूर्वी\",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),\"पहाटे\"===t||\"सकाळी\"===t?e:\"दुपारी\"===t||\"सायंकाळी\"===t||\"रात्री\"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?\"पहाटे\":e<12?\"सकाळी\":e<17?\"दुपारी\":e<20?\"सायंकाळी\":\"रात्री\"},week:{dow:0,doy:6}})}(n(95093))},86427:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>d}),n(28706),n(23792),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,47845))}),s=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,38386))}),u=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,48475))}),c=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,88013))});const d=function(e){var t=e.RBACControls;return o().createElement(r.Suspense,{fallback:o().createElement(\"div\",null,\"Loading...\")},o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(l,{RBACControls:t})},o().createElement(a.qh,{path:i.fp.Liquidation_Summary,element:o().createElement(s,{RBACControls:t})}),o().createElement(a.qh,{path:i.fp.Liquidation_Detail,element:o().createElement(u,{RBACControls:t})})),o().createElement(a.qh,{path:\"\".concat(i.fp.Liquidation_Detail,\"/\").concat(i.fp.Liquidation_Retailer_Details,\"/*\"),element:o().createElement(c,null)})))}},86444:(e,t,n)=>{\"use strict\";n.d(t,{Bm:()=>p,Dz:()=>u,Gf:()=>f,Sx:()=>m,Vi:()=>s,h$:()=>v,nl:()=>c,pi:()=>A,tV:()=>g,uh:()=>h,wj:()=>d}),n(28706),n(48598),n(62062),n(26099),n(16034),n(3362),n(27495),n(25440);var r=n(95692),o=n(8085),a=n(13075),i=n(19940),l=n(26009),s=(n(56908),function(e,t,n){var r,i,l={};return l.domain=t,l.endPoint=o.p.GET_ATTENDENCE_APPROVER_FILTER_DATA,l.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(i=e.selectedBusinessUnit)||void 0===i||null===(i=i.userRoleControls)||void 0===i?void 0:i.roleId,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,a.AT)(\"get\",l,!1)}),u=function(e,t,n){var r,i={};return i.domain=t,i.endPoint=o.p.GET_PAY_CYCLE_OPTIONS,i.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,a.AT)(\"get\",i,!1)},c=function(e,t,n,r){var i,l,s={};return s.domain=t,s.endPoint=\"\".concat(o.p.GET_APPROVER_FILTER_OPTIONS_DATA,\"?targetForId=\").concat(r.targetForId,\"&\").concat(r.parentHqIds.map(function(e){return\"parentHqIds=\".concat(e)}).join(\"&\")),s.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,a.AT)(\"get\",s,!1)},d=function(e,t,n,r){var i,l,s,u={};return u.domain=t,u.endPoint=o.p.GET_APPROVER_TM_DATA,u.payLoad=r,u.customHeaders={\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-id\":null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=n,(0,a.AT)(\"post\",u,!1)},p=function(e,t,n,r,i){var l,s={};return null!=i&&i.hqDataIds?s.endPoint=\"\".concat(o.p.GET_MDO_DATA,\"?\").concat(null==Object?void 0:Object.values(null==i?void 0:i.hqDataIds).map(function(e){return\"hqDataIds=\".concat(e)}).join(\"&\")):s.endPoint=o.p.GET_MDO_DATA,s.payLoad=r,s.domain=t,s.customHeaders={\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,a.AT)(\"get\",s,!1)},f=function(e,t,n,a){var s,u,c={};return c.domain=t,c.endPoint=\"\".concat(o.p.GET_ATTENDANCE_CONFIG_DATA,\"?\",\"moduleName=\".concat(i.Sn.ATTENDANCE_MODULE),\"&\").concat(null==Object?void 0:Object.values(l.u).map(function(e){return\"keys=\".concat(e)}).join(\"&\"),\"&portfolioCode=\").concat((null==e||null===(s=e.selectedBusinessUnit)||void 0===s?void 0:s.portfolio_code)||\"DEFAULT\"),c.customHeaders={\"role-id\":n,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(u=e.selectedCountry)||void 0===u?void 0:u.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=a,new Promise(function(e,t){var n;null===(n=r.N.get(c))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},g=function(e,t,n,a){var i,l,s,u={};return u.domain=t,u.endPoint=\"\".concat(o.p.GET_ATTENDANCE_FINAL_APPROVAL_BUTTON_STATUS,\"?payCycleStartDate=\").concat(null==n?void 0:n.startDate,\"&payCycleEndDate=\").concat(null==n?void 0:n.endDate),u.customHeaders={\"user-id\":null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,\"role-type-name\":null==e||null===(l=e.UserDetails)||void 0===l||null===(l=l.role_type_details)||void 0===l?void 0:l.role_type_name,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(s=e.selectedCountry)||void 0===s?void 0:s.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},u.triggerLoader=a,new Promise(function(e,t){var n;null===(n=r.N.get(u))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},h=function(e,t,n,a){var i,l,s,u,c={};return c.domain=t,c.customHeaders={\"country-code\":null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null!==(l=null==e?void 0:e.AccessToken)&&void 0!==l?l:\"\")},c.endPoint=o.p.GET_ATTENDANCE_APPROVER.replace(\"__COUNTRY_ID__\",\"\".concat(null==e||null===(s=e.selectedApplication)||void 0===s?void 0:s.country_app_id)).replace(\"__BU_ID__\",\"\".concat(null==e||null===(u=e.selectedBusinessUnit)||void 0===u?void 0:u.bu_id)),c.payLoad={module_key:\"ATTENDANCE-APPROVAL\",marker_id:a,permissions:\"CREATE\"},c.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(c))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},m=function(e,t,n,a){var i,l,s=o.p.GET_LIQUIDATION_TAB_VALUES,u={};return u.endPoint=s,u.domain=t,u.payLoad={salesHierarchyId:a,parent_levels:1},u.customHeaders={\"country-code\":null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,Authorization:\"Bearer \".concat(null!==(l=null==e?void 0:e.AccessToken)&&void 0!==l?l:\"\"),\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id},u.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.get(u))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},v=function(e,t,n){var a,i={};return i.domain=n,i.endPoint=o.p.GETCONFIGUREDLEASTSALESHIERARCHYID,i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=t,new Promise(function(e,t){var n;null===(n=r.N.get(i))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})},A=function(e,t,n,a){var i,l,s={};return s.domain=t,s.endPoint=o.p.PUT_FINAL_APPROVAL,s.payLoad=a,s.customHeaders={\"user-id\":null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(l=e.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,new Promise(function(e,t){var n;null===(n=r.N.put(s))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e))})})}},86481:(e,t,n)=>{\"use strict\";n.d(t,{Ay:()=>l,BO:()=>i,Yn:()=>a});var r=n(13967),o=n(89452);function a(e,t,n=!0){if(!t||\"string\"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(\".\").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(\".\").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function i(e,t,n,r=n){let o;return o=\"function\"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o,r,e)),o}const l=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,u=e=>{if(null==e[t])return null;const u=e[t],c=a(e.theme,l)||{};return(0,o.NI)(e,u,e=>{let o=i(c,s,e);return e===o&&\"string\"==typeof e&&(o=i(c,s,`${t}${\"default\"===e?\"\":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}})};return u.propTypes={},u.filterProps=[t],u}},86485:(e,t,n)=>{\"use strict\";e.exports=n.p+\"1970a460b3a3c4ff7bd9.woff\"},86571:function(e,t,n){!function(e){\"use strict\";var t={0:\"-ум\",1:\"-ум\",2:\"-юм\",3:\"-юм\",4:\"-ум\",5:\"-ум\",6:\"-ум\",7:\"-ум\",8:\"-ум\",9:\"-ум\",10:\"-ум\",12:\"-ум\",13:\"-ум\",20:\"-ум\",30:\"-юм\",40:\"-ум\",50:\"-ум\",60:\"-ум\",70:\"-ум\",80:\"-ум\",90:\"-ум\",100:\"-ум\"};e.defineLocale(\"tg\",{months:{format:\"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри\".split(\"_\"),standalone:\"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр\".split(\"_\")},monthsShort:\"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек\".split(\"_\"),weekdays:\"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе\".split(\"_\"),weekdaysShort:\"яшб_дшб_сшб_чшб_пшб_ҷум_шнб\".split(\"_\"),weekdaysMin:\"яш_дш_сш_чш_пш_ҷм_шб\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Имрӯз соати] LT\",nextDay:\"[Фардо соати] LT\",lastDay:\"[Дирӯз соати] LT\",nextWeek:\"dddd[и] [ҳафтаи оянда соати] LT\",lastWeek:\"dddd[и] [ҳафтаи гузашта соати] LT\",sameElse:\"L\"},relativeTime:{future:\"баъди %s\",past:\"%s пеш\",s:\"якчанд сония\",m:\"як дақиқа\",mm:\"%d дақиқа\",h:\"як соат\",hh:\"%d соат\",d:\"як рӯз\",dd:\"%d рӯз\",M:\"як моҳ\",MM:\"%d моҳ\",y:\"як сол\",yy:\"%d сол\"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"шаб\"===t?e<4?e:e+12:\"субҳ\"===t?e:\"рӯз\"===t?e>=11?e:e+12:\"бегоҳ\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"шаб\":e<11?\"субҳ\":e<16?\"рӯз\":e<19?\"бегоҳ\":\"шаб\"},dayOfMonthOrdinalParse:/\\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},86608:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>c});var r=n(79801),o=n(28161),a=n(81970),i=n(6398),l=n(17630),s=(0,i.A)({modalContainer:{position:\"absolute\",top:\"50%\",left:\"50%\",borderRadius:l.w.spacing(.5),transform:\"translate(-50%, -50%)\",boxSizing:\"border-box\",backgroundColor:l.w.palette.secondary.main,outline:\"none\",width:\"65vw\",height:\"auto\",\"& .closeIcon\":{color:l.w.palette.grey[700],cursor:\"pointer\",fontSize:\"14px\"},\"& .modal-body\":{height:\"auto\",overflow:\"auto\"}}}),u=function(e){var t=e.isVisible,n=void 0!==t&&t,i=e.children,l=e.sx,u=void 0===l?{}:l,c=s();return a.createElement(r.A,{open:n,id:\"genericModal\",\"data-testid\":\"genericModal\",sx:u},a.createElement(o.A,{className:\"\".concat(c.modalContainer,\" modalBody\")},i))};const c=a.memo(u)},86614:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(18014),a=n(35610),i=r.aTypedArray,l=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)(\"subarray\",function(e,t){var n=i(this),r=n.length,s=a(e,r);return new(l(n))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,o((void 0===t?r:a(t,r))-s))})},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},86794:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"sq\",{months:\"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor\".split(\"_\"),monthsShort:\"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj\".split(\"_\"),weekdays:\"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë\".split(\"_\"),weekdaysShort:\"Die_Hën_Mar_Mër_Enj_Pre_Sht\".split(\"_\"),weekdaysMin:\"D_H_Ma_Më_E_P_Sh\".split(\"_\"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return\"M\"===e.charAt(0)},meridiem:function(e,t,n){return e<12?\"PD\":\"MD\"},longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Sot në] LT\",nextDay:\"[Nesër në] LT\",nextWeek:\"dddd [në] LT\",lastDay:\"[Dje në] LT\",lastWeek:\"dddd [e kaluar në] LT\",sameElse:\"L\"},relativeTime:{future:\"në %s\",past:\"%s më parë\",s:\"disa sekonda\",ss:\"%d sekonda\",m:\"një minutë\",mm:\"%d minuta\",h:\"një orë\",hh:\"%d orë\",d:\"një ditë\",dd:\"%d ditë\",M:\"një muaj\",MM:\"%d muaj\",y:\"një vit\",yy:\"%d vite\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},86798:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>E});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(771),u=n(27256),c=n(25669),d=n(11848),p=n(38413),f=n(31609);function g(e){return(0,f.Ay)(\"MuiTableRow\",e)}const h=(0,p.A)(\"MuiTableRow\",[\"root\",\"selected\",\"hover\",\"head\",\"footer\"]);var m=n(74848);const v=[\"className\",\"component\",\"hover\",\"selected\"],A=(0,d.Ay)(\"tr\",{name:\"MuiTableRow\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:\"inherit\",display:\"table-row\",verticalAlign:\"middle\",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),y=\"tr\",E=a.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:\"MuiTableRow\"}),{className:s,component:d=y,hover:p=!1,selected:f=!1}=n,h=(0,o.A)(n,v),E=a.useContext(u.A),b=(0,r.A)({},n,{component:d,hover:p,selected:f,head:E&&\"head\"===E.variant,footer:E&&\"footer\"===E.variant}),_=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e,i={root:[\"root\",n&&\"selected\",r&&\"hover\",o&&\"head\",a&&\"footer\"]};return(0,l.A)(i,g,t)})(b);return(0,m.jsx)(A,(0,r.A)({as:d,ref:t,className:(0,i.A)(_.root,s),role:d===y?null:\"row\",ownerState:b},h))})},86821:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2a498233558cb545172c.svg\"},86938:(e,t,n)=>{\"use strict\";var r=n(2360),o=n(62106),a=n(56279),i=n(76080),l=n(90679),s=n(64117),u=n(72652),c=n(51088),d=n(62529),p=n(87633),f=n(43724),g=n(3451).fastKey,h=n(91181),m=h.set,v=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,o){l(e,p),m(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),s(o)||u(o,e[c],{that:e,AS_ENTRIES:n})}),p=d.prototype,h=v(t),A=function(e,t,n){var r,o,a=h(e),i=y(e,t);return i?i.value=n:(a.last=i={index:o=g(t,!0),key:t,value:n,previous:r=a.last,next:null,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,\"F\"!==o&&(a.index[o]=i)),e},y=function(e,t){var n,r=h(e),o=g(t);if(\"F\"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return a(p,{clear:function(){for(var e=h(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first===r&&(n.first=o),n.last===r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=i(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(p,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return A(this,0===e?0:e,t)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&o(p,\"size\",{configurable:!0,get:function(){return h(this).size}}),d},setStrong:function(e,t,n){var r=t+\" Iterator\",o=v(t),a=v(r);c(e,t,function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:null})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d(\"keys\"===t?n.key:\"values\"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))},n?\"entries\":\"values\",!n,!0),p(t)}}},86953:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>wi});var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=(n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408),n(58125)),s=n(28161),u=n(90815),c=n(92416),d=n(46374),p=n(13075),f=n(56203),g=(n(48598),n(94170),n(59904),n(40875),n(10287),n(3362),n(25440),n(34195)),h=n(37998),m=n(15664),v=n(67034),A=n(28597),y=n(5673);var E=n(34358),b=n(96790),_=n(8085);function C(e){return C=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},C(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=C(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==C(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.GET_MODULE_CONFIG_LISTDATA,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r),new Promise(function(e,t){(0,E.uB)(o,b.dF.GET).then(function(t){if((0,p.mN)(t)){var n=t.data;return e(n)}throw new Error((0,p.Tl)(\"NO_DATA_FOUND\"))}).catch(function(e){return t(e)})})},O=n(47225),D=n(14073),R=n(17630),N={DRAFT:R.T.secondaryTextColor,CLOSED:R.T.dangerRed,ACTIVE:R.T.activeGreen,SUBMITTED:R.T.dangerRed,APPROVED:R.T.activeGreen},L=function(e){var t=e.data,n=e.color,r=null==t?void 0:t.status;if(!r)return null;if(\"none\"===n)return o().createElement(D.A,null,r);var a=N[r];return o().createElement(D.A,{color:a},(0,p.Zr)(r))},P=n(32112),M=n(99478),x=n(21239);const I=function(e){var t=e.searchValue,n=void 0===t?\"\":t,r=e.onSearchChange,a=void 0===r?function(){}:r,i=e.searchPlaceholder,l=e.searchBasedOn,c=e.showSearch,d=void 0===c||c,f=e.onFilterClick,h=void 0===f?function(){}:f,v=e.filterClassName,A=void 0===v?\"\":v,y=e.showFilters,E=void 0===y||y,b=e.renderFilterDropdown,_=e.renderActions,C=(0,g.Bd)().t;return o().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(s.A,{mt:2},d&&o().createElement(x.A,{onSearchValueChange:a,placeholderText:i||C(\"SEARCH\"),searchValue:n,searchBasedOn:l||C(\"SEARCH_BY_MATERIAL_CODE_VARIETY_NAME\")})),o().createElement(u.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},null==b?void 0:b(),E&&o().createElement(m.A,{className:(0,p.F7)(A),buttonName:C(\"FILTERS\"),color:\"transparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:h}),null==_?void 0:_()))};var k=n(43605),B=n(56254),F=n(60538);const j=function(e){var t,n=e.state,r=e.handleSearch,a=e.tableHeaders,i=e.renderToolbarActions,l=void 0===i?null:i,s=e.handlePageChange,u=e.frameworkComponents,c=e.showFilters,d=void 0!==c&&c,p=e.showSearch,g=void 0!==p&&p,h=e.onFilterClick,m=void 0===h?function(){}:h,v=e.tableRows,A=void 0===v?[]:v;return o().createElement(o().Fragment,null,o().createElement(I,{searchValue:n.searchValue,showFilters:d,showSearch:g,onSearchChange:r,onFilterClick:m,renderActions:l,searchBasedOn:null!==(t=(0,f.t)(\"SEARCH_BY_MODULE_CONFIG\"))&&void 0!==t?t:\"\"}),o().createElement(F.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(k.A,{rows:A,columnDefs:a,noDataTemplate:n.noDataTemplateName,frameworkComponents:u})),o().createElement(B.A,{totalPageCount:Math.ceil(n.totalPageCount),pageNo:n.paginationState.pageNo,onPageChange:s,totalElements:n.totalElements}))};var H=n(95093),U=n.n(H),Y=n(47839);function G(e){return G=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},G(e)}function z(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return V(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(V(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,V(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,V(d,\"constructor\",u),V(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",V(u,o,\"GeneratorFunction\"),V(d),V(d,o,\"Generator\"),V(d,r,function(){return this}),V(d,\"toString\",function(){return\"[object Generator]\"}),(z=function(){return{w:a,m:p}})()}function V(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}V=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){V(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},V(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function W(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,\"next\",e)}function l(e){q(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function J(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=G(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==G(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z=Number(10),ee=function(e){var t=e.value,n=Array.isArray(t)?t.filter(Boolean):[];if(!n.length)return o().createElement(\"span\",null,\"-\");var r=n.slice(0,2),a=n.slice(2),i=a.length>0;return o().createElement(\"span\",null,r.join(\", \"),i&&o().createElement(Y.A,{title:a.join(\", \"),arrow:!0},o().createElement(\"span\",{style:{marginLeft:4,width:\"19px\",height:\"16px\",cursor:\"pointer\",whiteSpace:\"nowrap\",backgroundColor:\"#f3f4f6\",paddingRight:\"4px\",paddingLeft:\"4px\",paddingTop:\"1px\",paddingBottom:\"1px\",borderRadius:\"4px\"}},\"+\",a.length)))};const te=function(){var e=(0,r.useContext)(O.v),t=e.BackOfficeProps,n=t.globalStore.User,l=t.baseurl,s=e.triggerShowLoader,u=e.triggerToastMsg,c=(0,g.Bd)().t,d=(0,a.Zp)(),f=(0,r.useMemo)(function(){return h.b5.map(function(e){return X(X({},e),{},{cellStyle:{display:\"flex\",alignItems:\"center\"}},\"brands\"===e.field?{cellRenderer:\"BrandsCellRenderer\"}:{})})},[]),E=Q((0,r.useState)({moduleConfigListData:[],paginationState:{pageNo:0,pageSize:Z},totalPageCount:0,totalElements:0,noDataTemplateName:c(\"NO_DATA_FOUND\"),searchValue:\"\"}),2),b=E[0],C=E[1],w=Q((0,r.useState)(\"\"),2),S=w[0],D=w[1],R=function(e){C(function(t){return X(X({},t),e)})},N=(0,r.useCallback)(W(z().m(function e(){var t,r,o;return z().w(function(e){for(;;)switch(e.p=e.n){case 0:return t={search_key:b.searchValue,page_no:b.paginationState.pageNo,page_size:b.paginationState.pageSize},e.p=1,e.n=2,T(n,l,s,t);case 2:(r=e.v)&&R({moduleConfigListData:r.data||[],totalPageCount:r.total_pages,totalElements:r.total_records}),e.n=4;break;case 3:e.p=3,o=e.v,console.error(\"Error fetching list data:\",o);case 4:return e.a(2)}},e,null,[[1,3]])})),[b.paginationState,b.searchValue]),x=function(e){D(e)},I=function(e){d(\"../\".concat(i.fp.NewMlp),{state:{mlpData:e,edit:!0}})},k=function(e){d(\"../\".concat(i.fp.NewMlp),{state:{mlpData:e,view:!0}})};return(0,r.useEffect)(function(){N()},[b.paginationState,b.searchValue]),o().createElement(o().Fragment,null,o().createElement(j,{tableRows:b.moduleConfigListData.map(function(e){var t,n;return X(X({},e),{},{brands:null!==(t=null==e||null===(n=e.hybrids)||void 0===n?void 0:n.map(function(e){return e.name}))&&void 0!==t?t:[],startDate:null!=e&&e.startDate?U()(e.startDate).format(\"DD MMM YYYY\"):\"\",endDate:null!=e&&e.endDate?U()(e.endDate).format(\"DD MMM YYYY\"):\"\"})}),state:b,searchBasedOn:\"Search by MLP Name and Brand names\",handleSearch:function(e){var t=e.replace(/^\\s+/,\"\");R({searchValue:t,paginationState:X(X({},b.paginationState),{},{pageNo:0})})},tableHeaders:f,handlePageChange:function(e){R({paginationState:X(X({},b.paginationState),{},{pageNo:Number(e)})})},frameworkComponents:{ActionComponent:function(e){return function(e){var t,n={background:\"none\",border:\"none\"},r=function(t){var r=t.icon,a=t.onClick,i=t.testId,l=t.ariaLabel;return o().createElement(\"button\",{type:\"button\",style:n,\"data-testid\":i,onClick:function(){return a(e)},className:\"smart-agro-lite-green-label\",\"aria-label\":l,tabIndex:0},r)},a=function(e){var t=e.data;(0,e.onEdit)(t)},i=function(e){var t=e.data;(0,e.onDelete)(t.id)};return o().createElement(o().Fragment,null,{DRAFT:o().createElement(o().Fragment,null,r({icon:o().createElement(A.A,null),onClick:a,testId:\"edit-notification\",ariaLabel:\"Edit notification\"}),r({icon:o().createElement(v.A,null),onClick:i,testId:\"delete-notification\",ariaLabel:\"Delete notification\"})),ACTIVE:r({icon:o().createElement(A.A,null),onClick:a,testId:\"edit-notification\",ariaLabel:\"Edit notification\"}),CLOSED:r({icon:o().createElement(y.A,null),onClick:function(e){var t=e.data;(0,e.onView)(t)},testId:\"view-notification\",ariaLabel:\"View notification\"}),SUBMITTED:o().createElement(o().Fragment,null,r({icon:o().createElement(A.A,null),onClick:a,testId:\"edit-notification\",ariaLabel:\"Edit notification\"}),r({icon:o().createElement(v.A,null),onClick:i,testId:\"delete-notification\",ariaLabel:\"Delete notification\"}))}[null==e||null===(t=e.data)||void 0===t?void 0:t.status]||null)}(X(X({},e),{},{onDelete:x,onEdit:I,onView:k}))},StatusComponent:L,BrandsCellRenderer:ee},showFilters:!1,showSearch:!0,onFilterClick:function(){},renderToolbarActions:function(){return o().createElement(m.A,{variant:\"contained\",buttonName:c(\"CREATE_MLP\"),onButtonClick:function(){d(\"../\".concat(i.fp.NewMlp))},fullwidth:!1,color:\"primary\"})}}),S&&o().createElement(P.R,{message:M.JS.DELETE_MLP,isVisible:Boolean(S),onSave:function(){(function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=_.p.DELETE_MLP.replace(\"__ID__\",r.id),i.customHeaders={id:r.id,\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id},i.triggerLoader=n,(0,p.AT)(\"delete\",i,!1)})(n,l,s,{id:S}).then(function(e){null!=e&&e.data&&(u({message:e.data,type:\"success\"}),D(\"\"),N())}).catch(function(e){u({message:e.message,type:\"error\"})})},onRequestClose:function(){return D(\"\")}}))};var ne=n(8239),re=Number(10)||10,oe=n(11848),ae=n(14977),ie=n(81385),le=n(37636),se=(0,oe.Ay)(ae.A)(function(e){var t=e.theme;return{display:\"flex\",alignItems:\"center\",padding:t.spacing(2),cursor:\"pointer\",borderColor:t.palette.grey[300],\"&:hover\":{borderColor:t.palette.primary.main,boxShadow:t.shadows[2]},transition:\"box-shadow 0.2s, border-color 0.2s\"}}),ue=((0,oe.Ay)(ie.A)({width:48,height:48,marginRight:16,backgroundColor:\"#e0e0e0\"}),(0,oe.Ay)(le.A)({padding:0})),ce=(0,oe.Ay)(u.A)(function(e){return{alignItems:\"center\",marginTop:e.theme.spacing(4)}});const de=function(e){var t=e.members,n=e.totalElements,r=e.pageNo,a=e.pageSize,i=void 0===a?re:a,l=e.onPageChange,u=e.onMemberClick,c=Math.ceil(n/i);return o().createElement(s.A,null,o().createElement(ne.Ay,{container:!0,spacing:2},t.map(function(e){var t,n,a,i;return o().createElement(ne.Ay,{item:!0,xs:12,sm:6,md:3,key:\"\".concat(r,\"-\").concat(e.id,\"-\").concat(null!==(t=null===(n=e.locations)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.hqName)&&void 0!==t?t:\"no-location\")},o().createElement(se,{variant:\"outlined\",onClick:function(){return u(e)}},o().createElement(ue,null,o().createElement(D.A,{variant:\"subtitle1\",fontWeight:600},e.name),o().createElement(D.A,{variant:\"body2\",color:\"text.secondary\"},null!==(a=null===(i=e.locations)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.hqName)&&void 0!==a?a:\"N/A\"))))})),o().createElement(ce,null,o().createElement(B.A,{totalPageCount:c,pageNo:r,onPageChange:function(e){return l(Number(e))},totalElements:n})))};function pe(e){return pe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},pe(e)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=pe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==pe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=\"\".concat(_.p.GET_MLP_FULL_DETAILS_CARDS,\"?\").concat((0,p.EY)(\"tm_hq_ids\",null==r?void 0:r.tm_hq_ids)),delete r.tm_hq_ids,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(e.AccessToken),\"user-id\":\"\".concat(e.UserDetails.user_id)},o.payLoad=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r),(0,p.AT)(\"get\",o,!0)},me=n(18978),ve=n(94985),Ae=(n(15086),n(88084)),ye=n(36874),Ee=n(28152),be=n(48506);function _e(e){return _e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_e(e)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=_e(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=_e(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==_e(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Te=function(e){var t=e.isFilterOpen,n=e.onRequestClose,a=e.onFilterSubmit,i=e.onFilterChange,l=e.onClearFilters,c=e.labelNames,d=e.labelOptions,p=e.selectedFilters,f=e.setLabelOptions,h=(0,g.Bd)().t,v=d,A=(0,r.useCallback)(function(e){var t,n;return null!==(t=null==d||null===(n=d.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===n?void 0:n.options)&&void 0!==t?t:[]},[d]),y=(0,r.useCallback)(function(e,t,n,r){var o=e||[],a=o.filter(function(e){return null==e?void 0:e.checked}).map(function(e){return null==e?void 0:e.value});i(a,r,n,t),n(t,o)},[i]),E=(0,r.useCallback)(function(){f(v),n()},[n,v,f]),b=(0,r.useCallback)(function(e,t,n,r){var a,i=A(e);return o().createElement(be.A,{name:e,options:i,selectedOption:null!==(a=null==t?void 0:t[e])&&void 0!==a?a:[],onHandleChange:function(t){y(t.map(function(e){return we(we({},e),{},{checked:!0})}),e,n,r)},disabled:!i.length})},[A,y]);return o().createElement(ye.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(s.A,{p:3,className:\"mdo-floating-filter-wrapper\"},o().createElement(Ae.l1,{initialValues:p,enableReinitialize:!0,onSubmit:a},function(e){var t,n=e.values,r=e.setFieldValue,a=c.at(-1),i=c.some(function(e){var t;return(null!==(t=null==n?void 0:n[e])&&void 0!==t?t:[]).length>0}),d=!a||(null!==(t=null==n?void 0:n[a])&&void 0!==t?t:[]).length>0,p=i&&!d;return o().createElement(Ae.lV,{className:\"popupContent bgp-floating-filter-mdo\"},o().createElement(ne.Ay,{container:!0,columns:15,spacing:2,mb:2},null==c?void 0:c.map(function(e,t){return o().createElement(ne.Ay,{item:!0,xs:15,sm:7.5,md:3,key:\"\".concat(e,\"-\").concat(t)},o().createElement(s.A,null,o().createElement(D.A,{variant:\"subtitle2\",mb:1},e),b(e,n,r,t),o().createElement(Ee.A,{errName:e})))})),o().createElement(u.A,{direction:\"row\",justifyContent:\"flex-end\",mt:3},o().createElement(s.A,{display:\"flex\",width:\"auto\",justifyContent:\"flex-end\",alignItems:\"center\",gap:2},o().createElement(m.A,{variant:\"outlined\",buttonName:h(\"CLEAR_FILTERS\"),onButtonClick:l,fullwidth:!1,color:\"primary\"}),o().createElement(m.A,{variant:\"contained\",buttonName:h(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",disabled:p,type:\"submit\"}))),o().createElement(s.A,{onClick:E,\"data-testid\":\"closeIcon\",className:\"smart-agro-lite-filter-cross\"},o().createElement(D.A,{className:\"icon-close closeIcon\"})))})))};function Oe(e){return Oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Oe(e)}function De(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Re(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Re(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Re(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Re(d,\"constructor\",u),Re(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Re(u,o,\"GeneratorFunction\"),Re(d),Re(d,o,\"Generator\"),Re(d,r,function(){return this}),Re(d,\"toString\",function(){return\"[object Generator]\"}),(De=function(){return{w:a,m:p}})()}function Re(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Re=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Re(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Re(e,t,n,r)}function Ne(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Le(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ne(a,r,o,i,l,\"next\",e)}function l(e){Ne(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(t){xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ke(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ke(e,t){if(e){if(\"string\"==typeof e)return Be(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fe=function(e){var t,n=e.onMemberSelect,i=(0,r.useContext)(O.v),l=i.BackOfficeProps,s=l.globalStore.User,u=l.baseurl,c=i.triggerShowLoader,d=(0,a.Zp)(),p=(0,a.zy)(),g=Ie((0,r.useState)([]),2),h=g[0],m=g[1],v=Ie((0,r.useState)(0),2),A=v[0],y=v[1],E=Ie((0,r.useState)(0),2),b=E[0],_=E[1],C=Ie((0,r.useState)([]),2),w=C[0],S=C[1],T=Ie((0,r.useState)([]),2),D=T[0],R=T[1],N=Ie((0,r.useState)([]),2),L=N[0],P=N[1],M=Ie((0,r.useState)({}),2),x=M[0],k=M[1],B=Ie((0,r.useState)(null),2),F=B[0],j=B[1],H=Ie((0,r.useState)(\"\"),2),U=H[0],Y=H[1],G=Ie((0,r.useState)(!1),2),z=G[0],V=G[1],q=(0,r.useCallback)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];P(function(e){return e.map(function(e,r){return r<=t?e:Me(Me({},e),{},r===t+1?{options:n}:{options:[]})})});for(var r=t+1;r<D.length;r+=1)e(D[r],[])},[D]),W=(0,r.useCallback)(function(e,t,n){var r=null==w?void 0:w[t+1],o=null==r?void 0:r.sales_hierarchy_id;if(o&&e.length){var a={targetForId:o,parentHqIds:e};(0,me._n)(s,u,c,a).then(function(e){var r=(e||[]).map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}});q(n,t,r)}).catch(function(e){console.error(\"Error fetching filters:\",e.message),q(n,t)})}else q(n,t)},[w,s,u,c,q]),Q=(0,r.useCallback)(function(e,t,n){(0,me.Bs)(e,s,u,c).then(function(e){if(e){var r=e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});P(n.map(function(e){return e.labelName===t?Me(Me({},e),{},{options:r}):e}))}}).catch(function(e){console.error(\"Error fetching first level filter:\",e.message)})},[s,u,c]),K=(0,r.useCallback)(function(e){(0,me.FU)(s,u,c,e).then(function(e){var t;if(null!=e&&e.length){var n=e.map(function(e){return null==e?void 0:e.name}).slice(0,-1);if(j((null==e||null===(t=e[(null==e?void 0:e.length)-2])||void 0===t?void 0:t.id)||null),n.length){var r=e.slice(0,n.length);S(r);var o=n.map(function(e){return{labelName:e,options:[]}});R(n),P(o);var a=r[0];null!=a&&a.sales_hierarchy_id&&null!=a&&a.name&&Q(a.sales_hierarchy_id,a.name,o)}}}).catch(function(e){console.error(\"Error fetching filter labels:\",e.message)})},[s,u,c,Q]),$=(0,r.useCallback)(function(e){_(0),k(e),V(!1)},[]),X=(0,r.useCallback)(function(){k({}),P(function(e){for(var t=function(e){if(Array.isArray(e))return Be(e)}(r=e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(r)||ke(r)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),n=0;n<t.length;n+=1)t[n]=Me(Me({},t[n]),{},0===n?{options:t[n].options.map(function(e){return Me(Me({},e),{},{checked:!1})})}:{options:[]});var r;return t}),V(!1)},[]),J=(0,r.useCallback)(function(){var e=null==D?void 0:D.at(-1);if(e){var t=(null==x?void 0:x[e])||[];return(null==t?void 0:t.map(function(e){return e.value}))||void 0}},[D,x]),Z=(0,r.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"\";_(0);var t=e.replace(/^\\s+/,\"\");Y(t)},[]),ee=(0,r.useCallback)(Le(De().m(function e(){var t,n;return De().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,he(s,u,c,{page_no:b,page_size:re,search_key:U,hq_hierarchy_id:F,tm_hq_ids:J()});case 1:t=e.v,m(t.data),y(t.totalElements),e.n=3;break;case 2:e.p=2,n=e.v,console.error(\"Error fetching members:\",n);case 3:return e.a(2)}},e,null,[[0,2]])})),[s,u,c,b,U,F,J]);(0,r.useEffect)(function(){F&&ee()},[F,U,x,b]),(0,r.useEffect)(function(){(0,ve.Vs)(s,u,c).then(function(e){null!=e&&e.sales_hierarchy_id&&K(e.sales_hierarchy_id)}).catch(function(e){console.error(\"Error fetching sales hierarchy:\",e.message)})},[]);var te=(0,r.useCallback)(function(e){var t,r,o,a,i=new URLSearchParams({memberId:String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:\"\"),tmHqId:String(null!==(r=null==e||null===(o=e.locations)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id)&&void 0!==r?r:\"\"),tabname:\"mlpfulldetails\",pageName:\"mlp-list\",memberName:null!==(a=null==e?void 0:e.name)&&void 0!==a?a:\"\"});d(\"\".concat(p.pathname,\"?\").concat(i.toString())),null==n||n(e.name)},[n,null==p?void 0:p.pathname,d]),ne=(0,r.useCallback)(function(e){_(e)},[]);return o().createElement(o().Fragment,null,o().createElement(I,{searchBasedOn:null!==(t=(0,f.t)(\"SEARCH_BY_TM_LIST\"))&&void 0!==t?t:\"\",searchValue:U,onSearchChange:Z,onFilterClick:function(){return V(!0)},filterClassName:x,showSearch:!0}),null!=h&&h.length?o().createElement(de,{members:h,totalElements:A,pageNo:b,pageSize:re,onPageChange:ne,onMemberClick:te}):o().createElement(\"div\",{style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",minHeight:\"50vh\",width:\"100%\",backgroundColor:\"#fff\"}},\"No TM users found\"),z&&o().createElement(Te,{isFilterOpen:z,onRequestClose:function(){return V(!1)},onFilterSubmit:$,onClearFilters:X,onFilterChange:W,labelNames:D,labelOptions:L,selectedFilters:x,setLabelOptions:P}))};n(74423),n(72712),n(36033),n(5506),n(21699);var je=Number(10);const He=JSON.parse('{\"OF\":{\"data\":[{\"id\":1,\"name\":\"Amistar\"},{\"id\":2,\"name\":\"Actara\"},{\"id\":3,\"name\":\"Fusilade\"}]}}');function Ue(e){return Ue=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ue(e)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ue(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ue(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(e,t,n,r,o){var a={};return a.domain=e,a.endPoint=t,a.triggerLoader=n,a.customHeaders=o,a.payLoad=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach(function(t){Ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r),a},Ve=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise(function(r,o){(0,E.uB)(e,t).then(function(e){if((0,p.mN)(e))return r(e.data);throw new Error((0,p.Tl)(\"NO_DATA_FOUND\"))}).catch(function(e){return n?r(n):o(e)})})},qe=function(e,t,n,r){var o,a={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":Number(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken),\"role-id\":null==e||null===(o=e.selectedBusinessUnit)||void 0===o||null===(o=o.userRoleControls)||void 0===o?void 0:o.roleId},i=ze(t,_.p.GET_MLP_FULL_DETAILS_TABLE,n,r,a);return Ve(i,b.dF.GET)},We=function(e,t,n,r){var o,a={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":Number(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),\"role-id\":null==e||null===(o=e.selectedBusinessUnit)||void 0===o||null===(o=o.userRoleControls)||void 0===o?void 0:o.roleId,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(e.AccessToken)},i=ze(t,_.p.GET_MLP_GEO_LIST,n,r,a);return Ve(i,b.dF.GET)},Qe=function(e,t,n,r){var o={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),\"role-id\":\"\".concat(e.UserDetails.role_type_details.role_type_id||\"\"),Authorization:\"Bearer \".concat(e.AccessToken)},a=ze(t,_.p.GET_MLP_GEO_SUMMARY,n,{tmHqId:r.tmHqId,mlpId:r.mlpId,geoIds:r.geoIds||[]},o);return Ve(a,b.dF.POST)},Ke=function(e,t,n,r){var o={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),\"role-type-name\":\"\".concat(e.selectedBusinessUnit.userRoleControls.role_code),Authorization:\"Bearer \".concat(e.AccessToken)},a=ze(t,_.p.SUBMIT_MLP_GEO_LIST,n,{tmId:e.UserDetails.user_id,tmHqId:r.tmHqId,mlpId:r.mlpId},o);return Ve(a,b.dF.POST)},$e=function(e,t,n,r){var o={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},a=ze(t,_.p.GET_MLP_MARKET_SHARE_DETAILS,n,r,o);return Ve(a,b.dF.GET)},Xe=n(64121);function Je(e){return Je=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Je(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach(function(t){tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Je(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Je(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nt=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.onFilterSubmit,a=e.onClearFilters,i=e.selectedFilters,l=e.filtersOptions,c=e.showHierarchyFilters,d=void 0!==c&&c,p=e.hierarchyLabelNames,f=void 0===p?[]:p,h=e.hierarchyLabelOptions,v=void 0===h?[]:h,A=e.onHierarchyFilterChange,y=void 0===A?function(){}:A,E=e.setHierarchyLabelOptions,b=(0,g.Bd)().t,_=v,C=[{name:\"season\",label:\"SEASON_FIELD\",placeholder:\"SELECT_SEASON\"},{name:\"crop\",label:\"CROP\",placeholder:\"SELECT_CROP\"},{name:\"status\",label:\"STATUS\",placeholder:\"SELECT_STATUS\"}];return o().createElement(s.A,null,o().createElement(ye.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(s.A,{p:3},o().createElement(Ae.l1,{enableReinitialize:!0,initialValues:i,onSubmit:r},function(e){var t,r,i,c=e.values,p=e.setFieldValue,g=c,h=f.at(-1),A=f.some(function(e){var t;return(null!==(t=null==g?void 0:g[e])&&void 0!==t?t:[]).length>0}),w=!h||(null!==(t=null==g?void 0:g[h])&&void 0!==t?t:[]).length>0,S=d&&A&&!w;return o().createElement(Ae.lV,{className:\"popupContent\"},o().createElement(ne.Ay,{gap:1,container:!0,columns:{xs:13},mb:2,columnSpacing:1},d&&f.map(function(e,t){return function(e,t,n,r){var a,i=function(e){var t,n;return null!==(t=null==v||null===(n=v.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===n?void 0:n.options)&&void 0!==t?t:[]}(e);return o().createElement(ne.Ay,{item:!0,xs:3,key:e},o().createElement(s.A,{width:\"100%\"},o().createElement(D.A,{variant:\"subtitle2\"},e),o().createElement(be.A,{name:e,options:i,selectedOption:null!==(a=null==t?void 0:t[e])&&void 0!==a?a:[],onHandleChange:function(t){return function(e,t,n,r){var o=e||[],a=o.filter(function(e){return null==e?void 0:e.checked}).map(function(e){return null==e?void 0:e.value});y(a,r,n,t),n(t,o)}(t.map(function(e){return et(et({},e),{},{checked:!0})}),e,n,r)},disabled:!i.length})))}(e,c,p,t)}),C.map(function(e){return function(e,t,n){return o().createElement(ne.Ay,{item:!0,xs:3,key:e.name},o().createElement(s.A,{width:\"100%\"},o().createElement(D.A,{variant:\"subtitle2\"},b(e.label)),o().createElement(Ae.D0,{name:e.name},function(){var r;return o().createElement(Xe.A,{defaultLabel:b(e.placeholder),name:e.name,label:e.name,onChange:function(t,r){return n(e.name,r)},labelKey:\"label\",selectedOption:t[e.name],value:t[e.name],options:null!==(r=null==l?void 0:l[e.name])&&void 0!==r?r:[]})})))}(e,c,p)})),o().createElement(ne.Ay,{columns:{xs:13},container:!0,gap:1},o().createElement(ne.Ay,{item:!0,xs:3}),o().createElement(ne.Ay,{item:!0,xs:9.9},o().createElement(u.A,{direction:\"row\",ml:2,justifyContent:\"end\",mt:2.5},o().createElement(s.A,{display:\"flex\",width:\"30%\",justifyContent:\"end\",alignItems:\"center\",gap:1},o().createElement(m.A,{onButtonClick:a,variant:\"outlined\",buttonName:null!==(r=b(\"CLEAR_FILTERS\"))&&void 0!==r?r:\"\",type:\"reset\",\"data-testid\":\"clearFilter\",fullwidth:!1,color:\"primary\"}),o().createElement(m.A,{variant:\"contained\",fullwidth:!1,type:\"submit\",color:\"primary\",buttonName:null!==(i=b(\"APPLY_FILTERS\"))&&void 0!==i?i:\"\",disabled:S}))))),o().createElement(s.A,{\"data-testid\":\"closeIcon\",onClick:function(){null==E||E(_),n(!1)},className:\"smart-agro-lite-filter-cross\"},o().createElement(D.A,{className:\"icon-close closeIcon\"})))}))))};var rt=n(6398),ot=(0,rt.A)({tableHeader:{padding:\"16px 25px\",backgroundColor:\"#f3f4f6\",borderTopLeftRadius:\"6px\",borderTopRightRadius:\"6px\",borderTop:\"1px solid #c4c4c4\",border:\"1px solid #c4c4c4\",height:\"58px\",minHeight:\"58px\"},headerCell:{fontSize:\"14px\",fontWeight:\"600 !important\",fontFamily:\"NotoSans-SemiBold\",color:\"#232630\",flex:1,minWidth:100,whiteSpace:\"break-spaces\"},rowWrapper:{borderBottom:\"1px solid \".concat(R.T.borderColor2)},expandedRowWrapper:{border:\"2px solid \".concat(R.T.mainGreen),borderRadius:\"8px\",overflow:\"hidden\",margin:\"8px 0\"},rowHeader:{padding:\"16px\",backgroundColor:R.T.white,cursor:\"default\"},expandedRowHeader:{padding:\"16px\",backgroundColor:R.T.mainGreen,cursor:\"pointer\"},rowCell:{fontSize:\"14px\",color:R.T.bodyBlack,flex:1,minWidth:100},rowCellExpanded:{fontSize:\"14px\",color:R.T.white,flex:1,minWidth:100},statusCell:{fontWeight:500},expandIcon:{width:40,display:\"flex\",justifyContent:\"center\"},noDataContainer:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"200px\"},talukaContainer:{backgroundColor:R.T.lightwhite,padding:\"16px 16px\"},talukaList:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},talukaItem:{padding:\"12px 16px\",backgroundColor:R.T.white,borderRadius:\"8px\",boxShadow:\"none\",display:\"flex\",alignItems:\"center\",\"&:hover\":{backgroundColor:R.T.lightBG,cursor:\"pointer\"}},talukaName:{color:R.T.bodyBlack,fontWeight:400,fontSize:\"14px\"},talukaStatus:{fontWeight:500,fontSize:\"14px\",minWidth:\"80px\"},talukaStatusPending:{color:R.T.dangerRed},talukaStatusApproved:{color:R.T.activeGreen},loadingContainer:{backgroundColor:R.T.lightBG,padding:\"32px 24px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},errorContainer:{backgroundColor:R.T.lightBG,padding:\"32px 24px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},errorText:{color:R.T.dangerRed}});const at=function(e){var t=e.columns,n=void 0===t?h.G_:t,r=(0,g.Bd)().t,a=ot();return o().createElement(u.A,{direction:\"row\",alignItems:\"center\",className:a.tableHeader},n.map(function(e){return o().createElement(D.A,{key:e.key,className:a.headerCell,sx:e.sx},r(e.labelKey))}),o().createElement(s.A,{sx:{width:40}}))};var it=n(52848),lt=n(9483),st=n(39118),ut=(n(88431),n(49799)),ct=n(12794),dt=n(27562);const pt=function(e){var t,n,r=e.taluka,a=e.handleTalukaClick,i=e.classes,l=e.statusClass,u=e.statusInfo,c=e.isTM,d=e.mlpStatus,p=\"PENDING\"===(null==r||null===(t=r.geo_status)||void 0===t?void 0:t.toUpperCase()),f=\"APPROVED\"===(null==r||null===(n=r.geo_status)||void 0===n?void 0:n.toUpperCase()),g=\"PENDING\"===d&&c&&!p&&!f;return o().createElement(ct.Ay,{onClick:function(){return a(r)},className:i.talukaItem,sx:{padding:\"12px 0\",cursor:\"pointer\"}},o().createElement(s.A,{sx:{flex:6,minWidth:100,display:\"flex\",alignItems:\"center\",paddingLeft:\"16px\"}},o().createElement(D.A,{className:i.talukaName},null==r?void 0:r.geo_name)),o().createElement(s.A,{sx:{flex:1,minWidth:100}},o().createElement(D.A,{className:\"\".concat(i.talukaStatus,\" \").concat(l),sx:{color:\"\".concat(u.color,\" !important\")}},u.text)),o().createElement(s.A,{sx:{flex:1,minWidth:100}}),o().createElement(s.A,{sx:{width:40,display:\"flex\",justifyContent:\"center\",paddingRight:\"16px\"}},g?o().createElement(A.A,{sx:{color:R.T.secondaryTextColor}}):o().createElement(dt.A,{sx:{color:R.T.secondaryTextColor}})))};var ft=(0,rt.A)({container:{fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", sans-serif',\"& hr\":{marginTop:\"16px\",color:\"#C2C7D0\"},'& input[type=\"number\"]::-webkit-inner-spin-button':{WebkitAppearance:\"none\",margin:0},'& input[type=\"number\"]::-webkit-outer-spin-button':{WebkitAppearance:\"none\",margin:0},'& input[type=\"number\"]':{MozAppearance:\"textfield\",appearance:\"textfield\"}},disabledForm:{pointerEvents:\"none\",userSelect:\"none\",\"& input, & textarea\":{backgroundColor:\"#f5f5f5 !important\",cursor:\"not-allowed !important\"},\"& .MuiSelect-select\":{cursor:\"not-allowed !important\"},\"& .MuiOutlinedInput-root\":{backgroundColor:\"#f5f5f5 !important\",cursor:\"not-allowed !important\",\"& fieldset\":{borderColor:\"#e0e0e0 !important\"}}},card:{backgroundColor:\"white\",borderRadius:\"8px\",boxShadow:\"0 1px 3px 0 rgba(0, 0, 0, 0.1)\",padding:\"16px\"},cardHeader:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:\"8px\"},cardTitle:{fontFamily:\"NotoSans-SemiBold\",fontSize:\"16px\",fontWeight:600,lineHeight:\"20px\",color:\"#000000\",margin:0},totalMarketSizeDesc:{fontFamily:\"notoSans-Regular\",fontSize:\"11px\",color:\"#14151C\",fontWeight:400,lineHeight:\"20px\"},closeBtn:{background:\"none\",border:\"none\",color:\"#9ca3af\",cursor:\"pointer\",padding:\"4px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition:\"color 0.2s\",\"&:hover\":{color:\"#4b5563\"}},tableContainer:{backgroundColor:\"white\",overflowX:\"auto\",marginTop:\"8px\",border:\"1px solid #e5e7eb\",borderRadius:\"6px\"},table:{width:\"100%\",borderCollapse:\"collapse\",\"& thead tr\":{borderBottom:\"1px solid #e5e7eb\",backgroundColor:\"#f9fafb\"},\"& th\":{textAlign:\"left\",padding:\"12px 16px\",fontFamily:\"NotoSans-Medium\",fontWeight:500,fontSize:\"14px\",color:\"#14151c\",borderRight:\"1px solid #e5e7eb\",\"&:last-child\":{borderRight:\"none\"}},\"& tbody tr\":{borderBottom:\"1px solid #f3f4f6\",transition:\"background-color 0.2s\"},\"& td\":{padding:\"12px 16px\",fontSize:\"14px\",color:\"#111827\",verticalAlign:\"top\",borderRight:\"1px solid #e5e7eb\",\"&:last-child\":{borderRight:\"none\"}}},tableTotalRow:{backgroundColor:\"#F6F2FE\",fontWeight:600,zIndex:1},input:{width:\"100%\",padding:\"8px 12px\",border:\"1px solid #d1d5db\",borderRadius:\"6px\",fontSize:\"14px\",transition:\"all 0.2s\",backgroundColor:\"white\",\"&:focus\":{outline:\"none\",borderColor:\"#3b82f6\",boxShadow:\"0 0 0 3px rgba(59, 130, 246, 0.1)\"},\"&:read-only\":{backgroundColor:\"#f9fafb\",color:\"#6b7280\",cursor:\"not-allowed\"}},select:{width:\"100%\",padding:\"8px 12px\",border:\"1px solid #d1d5db\",borderRadius:\"6px\",fontSize:\"14px\",backgroundColor:\"white\",cursor:\"pointer\",transition:\"all 0.2s\",\"&:focus\":{outline:\"none\",borderColor:\"#3b82f6\",boxShadow:\"0 0 0 3px rgba(59, 130, 246, 0.1)\"}},textRed:{color:\"#ef4444 !important\"},textGreen:{color:\"#65833A !important\"},fontMedium:{fontWeight:500,color:\"#374151\"},fontSemibold:{fontWeight:600,color:\"#111827\"},grid3:{display:\"grid\",gridTemplateColumns:\"repeat(3, 1fr)\",gap:\"16px\",\"@media (max-width: 768px)\":{gridTemplateColumns:\"1fr\"}},distributorCard:{padding:\"16px\",transition:\"all 0.2s\"},distributorName:{fontWeight:700,fontSize:\"14px\",fontFamily:\"NotoSans-Bold\",lineHeight:\"20px\",marginBottom:\"8px\",color:\"#14151C\"},statsGrid:{display:\"grid\",gridTemplateColumns:\"repeat(5, 1fr)\",gap:\"24px\",marginTop:\"16px\",\"@media (max-width: 1024px)\":{gridTemplateColumns:\"repeat(3, 1fr)\"},\"@media (max-width: 768px)\":{gridTemplateColumns:\"1fr\"}},statItem:{display:\"flex\",flexDirection:\"column\"},statLabel:{fontSize:\"14px\",color:\"#6b7280\",marginBottom:\"8px\"},statValue:{fontSize:\"14px\",fontWeight:400,fontFamily:\"NotoSans-Regular\",color:\"#232630\",lineHeight:\"20px\"},statValueVolume:{fontSize:\"20px\",lineHeight:\"20px\",fontFamily:\"NotoSans-Bold\",fontWeight:700,color:\"#14151C\"},retailerStats:{display:\"grid\",gridTemplateColumns:\"repeat(2, 1fr)\",gap:\"32px\",marginTop:\"16px\",\"@media (max-width: 768px)\":{gridTemplateColumns:\"1fr\"}},buttonGroup:{display:\"flex\",justifyContent:\"flex-end\",gap:\"12px\",marginTop:\"24px\"},btn:{padding:\"10px 24px\",borderRadius:\"6px\",fontSize:\"14px\",fontWeight:500,cursor:\"pointer\",transition:\"all 0.2s\",border:\"none\",\"&:disabled\":{opacity:.5,cursor:\"not-allowed\"}},btnSecondary:{backgroundColor:\"white\",border:\"1px solid #d1d5db\",color:\"#374151\",\"&:hover:not(:disabled)\":{backgroundColor:\"#f9fafb\"}},btnPrimary:{backgroundColor:\"#15803d\",color:\"white\",\"&:hover:not(:disabled)\":{backgroundColor:\"#166534\"}},infoRow:{display:\"flex\",alignItems:\"center\",gap:\"8px\",marginTop:\"16px\",padding:\"12px\",backgroundColor:\"#eff6ff\",border:\"1px solid #bfdbfe\",borderRadius:\"6px\"},infoIcon:{color:\"#3b82f6\"},selectMargin:{marginTop:\"16px\",marginBottom:\"16px\"},sectionMargin:{marginTop:\"32px\",marginBottom:\"32px\"},approvalContainer:{border:\"1px solid #E5E7EB\",borderRadius:8,padding:16,backgroundColor:\"#FFFFFF\",marginBottom:\"24px\"},header:{display:\"flex\",alignItems:\"center\",gap:8,marginBottom:20},profileIcon:{fontSize:18,fontWeight:10,color:\"#65833A\"},approvalIcon:{fontSize:\"36px\"},titleIcon:{color:\"#2E7D32\",fontSize:22},sectionTitle:{fontSize:14,fontWeight:600,color:\"#111827\"},detailsRow:{gap:4,marginBottom:16},icon:{color:\"#2E7D32\",fontSize:18},label:{width:\"385px\",fontWeight:500,color:\"#65833A !important\"},value:{fontSize:13,fontWeight:500,color:\"#111827\",marginTop:6,marginLeft:24},divider:{height:1,backgroundColor:\"#E5E7EB\",margin:\"12px 0 16px\"},commentsSection:{marginTop:4},mlpSummaryRow:{display:\"grid\",marginBottom:\"0 !important\",gridTemplateColumns:\"repeat(4, minmax(0, 1fr))\",columnGap:\"24px\",rowGap:\"12px\",width:\"100%\",\"@media (max-width: 1200px)\":{gridTemplateColumns:\"repeat(2, minmax(0, 1fr))\"},\"@media (max-width: 768px)\":{gridTemplateColumns:\"1fr\"}},mlpSummaryItem:{minWidth:0},mlpSummaryLabel:{width:\"auto\",whiteSpace:\"normal\",wordBreak:\"break-word\"},mlpSummaryValue:{marginLeft:0}});const gt=function(e){var t,n,r,a,i=e.data,l=e.mlpClasses,c=e.isCountryAdmin,d=ft();return o().createElement(ct.Ay,{className:null==l?void 0:l.talukaItem},o().createElement(s.A,{className:\"\".concat(d.detailsRow,\" \").concat(d.mlpSummaryRow)},o().createElement(s.A,{className:d.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(d.label,\" \").concat(d.mlpSummaryLabel)},(0,f.t)(\"TOTAL_MARKET_SHARE_POTENTIAL\"))),o().createElement(D.A,{className:\"\".concat(d.value,\" \").concat(d.mlpSummaryValue)},null!==(t=null==i?void 0:i.totalMktPotential)&&void 0!==t?t:\"N/A\")),o().createElement(s.A,{className:d.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(d.label,\" \").concat(d.mlpSummaryLabel)},(0,f.t)(\"TOTAL_SYNGENTA_SALES_IN_MT\"))),o().createElement(D.A,{className:\"\".concat(d.value,\" \").concat(d.mlpSummaryValue)},null!==(n=null==i?void 0:i.totalSyngentaSalesMt)&&void 0!==n?n:\"N/A\")),o().createElement(s.A,{className:d.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(d.label,\" \").concat(d.mlpSummaryLabel)},(0,f.t)(\"TOTAL_MAN_MONTHS\"))),o().createElement(D.A,{className:\"\".concat(d.value,\" \").concat(d.mlpSummaryValue)},null!==(r=null==i?void 0:i.totalManMonths)&&void 0!==r?r:\"N/A\")),o().createElement(s.A,{className:d.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(d.label,\" \").concat(d.mlpSummaryLabel)},(0,f.t)(\"SYNGENTA_MARKET_SHARE\"))),o().createElement(D.A,{className:\"\".concat(d.value,\" \").concat(d.mlpSummaryValue)},null==(null==i?void 0:i.syngentaMktShare)?\"N/A\":\"\".concat(i.syngentaMktShare,\"%\"))),c&&o().createElement(s.A,{className:d.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(d.label,\" \").concat(d.mlpSummaryLabel)},(0,f.t)(\"BLOCK_CATEGORY\"))),o().createElement(D.A,{className:\"\".concat(d.value,\" \").concat(d.mlpSummaryValue)},null!==(a=null==i?void 0:i.blockCategory)&&void 0!==a?a:\"N/A\"))))},ht=function(e){var t,n,r,a=e.data,i=ft();return o().createElement(s.A,{className:\"\".concat(i.detailsRow,\" \").concat(i.mlpSummaryRow)},o().createElement(s.A,{className:i.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(i.label,\" \").concat(i.mlpSummaryLabel)},(0,f.t)(\"TOTAL_MARKET_POTENTIAL\"))),o().createElement(D.A,{className:\"\".concat(i.value,\" \").concat(i.mlpSummaryValue)},null!==(t=null==a?void 0:a.totalMktPotential)&&void 0!==t?t:\"N/A\")),o().createElement(s.A,{className:i.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(i.label,\" \").concat(i.mlpSummaryLabel)},(0,f.t)(\"TOTAL_SYNGENTA_SALES_IN_MT\"))),o().createElement(D.A,{className:\"\".concat(i.value,\" \").concat(i.mlpSummaryValue)},null!==(n=null==a?void 0:a.totalSyngentaSalesMt)&&void 0!==n?n:\"N/A\")),o().createElement(s.A,{className:i.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(i.label,\" \").concat(i.mlpSummaryLabel)},(0,f.t)(\"TOTAL_MAN_MONTHS\"))),o().createElement(D.A,{className:\"\".concat(i.value,\" \").concat(i.mlpSummaryValue)},null!==(r=null==a?void 0:a.totalManMonths)&&void 0!==r?r:\"N/A\")),o().createElement(s.A,{className:i.mlpSummaryItem},o().createElement(u.A,{direction:\"row\",spacing:1,alignItems:\"center\"},o().createElement(D.A,{className:\"\".concat(i.label,\" \").concat(i.mlpSummaryLabel)},(0,f.t)(\"SYNGENTA_MARKET_SHARE\"))),o().createElement(D.A,{className:\"\".concat(i.value,\" \").concat(i.mlpSummaryValue)},null==(null==a?void 0:a.syngentaMktShare)?\"N/A\":\"\".concat(a.syngentaMktShare,\"%\"))))},mt=function(e){var t,n,r=e.child;return o().createElement(s.A,{sx:{borderRadius:\"8px\",px:2,pt:1.5,pb:2,backgroundColor:\"#F3F4F6\",border:\"1px solid #D1D5DB\",mb:2}},o().createElement(D.A,{sx:{fontWeight:500,fontSize:14,color:\"#232630\",mb:1.5}},null==r||null===(t=r.childHq)||void 0===t?void 0:t.roleName,\" \",o().createElement(D.A,{component:\"span\",sx:{fontWeight:400,fontSize:12,color:\"#6B7280\"}},\"(\",null==r||null===(n=r.childHq)||void 0===n?void 0:n.hqName,\")\")),o().createElement(ht,{data:r}))};function vt(e){return vt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},vt(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach(function(t){Et(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Et(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=vt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=vt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==vt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.SAVE_TALUKA_DETAILS,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=yt({},r),(0,p.AT)(\"post\",o,!0)},_t=function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=_.p.SAVE_APPROVE_REJECT_DETAILS,i.triggerLoader=n,i.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken),\"role-id\":null==e||null===(o=e.selectedBusinessUnit)||void 0===o||null===(o=o.userRoleControls)||void 0===o?void 0:o.roleId,\"role-type-name\":\"\".concat(null==e||null===(a=e.UserDetails)||void 0===a||null===(a=a.role_type_details)||void 0===a?void 0:a.role_type_name)},i.payLoad=yt({},r),(0,p.AT)(\"post\",i,!0)};function Ct(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Rt(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function wt(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return St(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(St(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,St(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,St(d,\"constructor\",u),St(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",St(u,o,\"GeneratorFunction\"),St(d),St(d,o,\"Generator\"),St(d,r,function(){return this}),St(d,\"toString\",function(){return\"[object Generator]\"}),(wt=function(){return{w:a,m:p}})()}function St(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}St=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){St(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},St(e,t,n,r)}function Tt(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ot(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Tt(a,r,o,i,l,\"next\",e)}function l(e){Tt(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Rt(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Rt(e,t){if(e){if(\"string\"==typeof e)return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Lt=function(e){var t,n,a,i,l,u=e.item,c=e.mlpClasses,d=e.User,p=e.baseUrl,g=e.triggerShowLoader,h=e.triggerToastMsg,v=e.mlpId,A=e.loadTableData,y=e.onLoadChildren,E=e.loadDMLSummaryCards,b=e.mlpStatus,_=Dt((0,r.useState)(!1),2),C=_[0],w=_[1],S=Dt((0,r.useState)(!1),2),T=S[0],O=S[1],R=Dt((0,r.useState)((null==u?void 0:u.children)||[]),2),N=R[0],L=R[1],M=Dt((0,r.useState)(!1),2),x=M[0],I=M[1],k=Dt((0,r.useState)(!1),2),B=k[0],F=k[1],j=\"APPROVED\"===(null==u||null===(t=u.status)||void 0===t?void 0:t.toUpperCase())||\"FINAL_APPROVED\"===(null==u||null===(n=u.status)||void 0===n?void 0:n.toUpperCase()),H=(0,r.useMemo)(function(){var e,t;return o().createElement(D.A,{sx:{fontWeight:600,fontSize:14,color:\"#111827\"}},null==u||null===(e=u.childHq)||void 0===e?void 0:e.roleName,\" \",o().createElement(D.A,{component:\"span\",sx:{fontWeight:400,fontSize:13,color:\"#6B7280\"}},\"(\",null==u||null===(t=u.childHq)||void 0===t?void 0:t.hqName,\")\"))},[null==u||null===(a=u.childHq)||void 0===a?void 0:a.roleName,null==u||null===(i=u.childHq)||void 0===i?void 0:i.hqName]),U=function(){var e=Ot(wt().m(function e(){var t;return wt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!C){e.n=1;break}return w(!1),e.a(2);case 1:if(0!==N.length||!y){e.n=5;break}return O(!0),e.p=2,e.n=3,y(u);case 3:t=e.v,L(Array.isArray(t)?t:[]);case 4:return e.p=4,O(!1),e.f(4);case 5:w(!0);case 6:return e.a(2)}},e,null,[[2,,4,5]])}));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=Ot(wt().m(function e(){var t;return wt().w(function(e){for(;;)switch(e.p=e.n){case 0:return F(!0),e.p=1,e.n=2,_t(d,p,g,{mlpId:v,tmHqIds:null!=u&&u.tmHqIds?Ct(u.tmHqIds):[],geoStatus:\"APPROVED\",comment:\"\"});case 2:if(I(!1),!E){e.n=3;break}return e.n=3,E();case 3:return e.n=4,A();case 4:h({message:\"HQ approved successfully!\",type:\"success\"}),e.n=6;break;case 5:e.p=5,t=e.v,console.error(\"Error approving HQ:\",t),h({message:t.message||\"Failed to approve HQ\",type:\"error\"});case 6:return e.p=6,F(!1),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}));return function(){return e.apply(this,arguments)}}();return o().createElement(ct.Ay,{className:null==c?void 0:c.talukaItem,sx:{cursor:\"default\",\"&:hover\":{cursor:\"default\"}}},o().createElement(s.A,{sx:{width:\"100%\"}},o().createElement(s.A,{sx:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",pb:1,mb:1.5,borderBottom:\"1px solid #E5E7EB\"}},H,o().createElement(s.A,{sx:{display:\"flex\",alignItems:\"center\",justifyContent:\"flex-end\",gap:1,minWidth:180}},(\"BM_APPROVAL_PENDING\"===b||\"DML_APPROVAL_PENDING\"===b)&&o().createElement(o().Fragment,null,j?o().createElement(D.A,{sx:{fontWeight:500,fontSize:13,color:\"#2E7D32\",lineHeight:\"24px\",textAlign:\"center\"}},(0,f.t)(\"APPROVED\")):o().createElement(m.A,{variant:\"outlined\",buttonName:(0,f.t)(\"TAKE_ACTION\"),onButtonClick:function(){return I(!0)},fullwidth:!0,color:\"secondary\",disabled:\"PENDING_FOR_APPROVAL\"!==(null==u||null===(l=u.status)||void 0===l?void 0:l.toUpperCase())||B})),o().createElement(\"button\",{type:\"button\",className:\"remove-button\",style:{display:\"flex\",alignItems:\"center\",color:\"#6B7280\",cursor:\"pointer\",padding:0},onClick:U},C?o().createElement(st.A,{sx:{fontSize:18}}):o().createElement(lt.A,{sx:{fontSize:18}})))),o().createElement(ht,{data:u}),C&&o().createElement(s.A,{sx:{mt:1.5,pt:1.5,borderTop:\"1px solid #E5E7EB\"}},T&&o().createElement(D.A,{sx:{px:2,py:1,fontSize:13,color:\"#6B7280\"}},(0,f.t)(\"LOADING\"),\"...\"),!T&&N.map(function(e,t){return o().createElement(mt,{key:\"\".concat((null==e?void 0:e.territory)||(null==e?void 0:e.name)||\"child\",\"-\").concat(t),child:e})}))),x&&o().createElement(P.R,{isVisible:x,onSave:Y,onRequestClose:function(){return I(!1)},message:\"Are you sure you want to approve this? This action cannot be undone.\",primaryBtnName:\"Approve\",secondaryBtnName:\"Cancel\"}))};function Pt(e){return Pt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Pt(e)}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(t){It(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function It(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Pt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Pt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Pt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Bt(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Bt(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Bt(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Bt(d,\"constructor\",u),Bt(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Bt(u,o,\"GeneratorFunction\"),Bt(d),Bt(d,o,\"Generator\"),Bt(d,r,function(){return this}),Bt(d,\"toString\",function(){return\"[object Generator]\"}),(kt=function(){return{w:a,m:p}})()}function Bt(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Bt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Bt(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Bt(e,t,n,r)}function Ft(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function jt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ft(a,r,o,i,l,\"next\",e)}function l(e){Ft(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Ut(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ut(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Yt=function(e){var t,n,i,l,c,d,g=e.mlpData,h=e.onCloseExpansion,v=e.onSubmitSuccess,A=e.loadTableData,y=ot(),E=(0,r.useContext)(O.v),b=E.BackOfficeProps,_=b.globalStore.User,C=b.baseurl,w=E.triggerShowLoader,S=E.triggerToastMsg,T=(0,a.Zp)(),D=(0,p.Rk)(_),N=D.isDML,L=D.isTM,P=D.isCountryAdmin,M=D.isBM,x=Ht((0,r.useState)(),2),I=x[0],k=x[1],B=Ht((0,r.useState)(null),2),F=B[0],j=B[1],H=Ht((0,r.useState)(),2),U=H[0],Y=H[1],G=(0,a.zy)(),z=new URLSearchParams(G.search),V=z.get(\"tmHqId\"),q=\"string\"==typeof(null==g?void 0:g.code)?g.code.replace(\"#\",\"\"):void 0,W=null!==(t=null!==(n=null==g?void 0:g.id)&&void 0!==n?n:null==g?void 0:g.mlpId)&&void 0!==t?t:q,Q=null!==(i=null==g?void 0:g.tmHqId)&&void 0!==i?i:V,K=null!==(l=null==g?void 0:g.tmHqId)&&void 0!==l?l:null==_||null===(c=_.selectedBusinessUnit)||void 0===c||null===(c=c.userRoleControls)||void 0===c?void 0:c.roleId,$=(null==I?void 0:I.every(function(e){var t;return\"DONE\"===(null==e||null===(t=e.geo_status)||void 0===t?void 0:t.toUpperCase())}))||(null==I?void 0:I.some(function(e){var t;return\"APPROVED\"===(null==e||null===(t=e.geo_status)||void 0===t?void 0:t.toUpperCase())})),X=(0,r.useCallback)(jt(kt().m(function e(){var t,n,r,o;return kt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,We(_,C,w,{mlpId:W,tmHqId:Q});case 1:n=e.v,r=null!==(t=null==n?void 0:n.geo_list)&&void 0!==t?t:[],k(r),e.n=3;break;case 2:e.p=2,o=e.v,console.error(\"Error fetching taluka details:\",o);case 3:return e.a(2)}},e,null,[[0,2]])})),[_,C,w,g]),J=function(){var e=jt(kt().m(function e(){var t,n,r;return kt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Qe(_,C,w,{mlpId:W,tmHqId:Q,geoIds:null!==(t=null==I?void 0:I.filter(function(e){return\"DONE\"===(null==e?void 0:e.geo_status)||\"APPROVED\"===(null==e?void 0:e.geo_status)}).map(function(e){return null==e?void 0:e.geo_id}))&&void 0!==t?t:[]});case 1:n=e.v,j(n),e.n=3;break;case 2:e.p=2,r=e.v,console.error(\"Error fetching geo summary:\",r);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)(function(){N||X()},[_]),(0,r.useEffect)(function(){$&&(null==I?void 0:I.length)>0&&J()},[I,$]);var Z=function(e){var t,n,r,o=new URLSearchParams({talukaId:String(null!==(t=null==e?void 0:e.geo_id)&&void 0!==t?t:\"\"),tmHqId:String(null!=Q?Q:\"\"),mlpId:String(null!=W?W:\"\"),mlp_status:String(null!==(n=null==g?void 0:g.status)&&void 0!==n?n:\"\"),tabname:\"mlpfulldetails\",pageName:\"approvalPage\",talukaName:String(null!==(r=null==e?void 0:e.geo_name)&&void 0!==r?r:\"\")}),a=z.get(\"memberName\"),i=z.get(\"memberId\");a&&o.set(\"memberName\",a),i&&o.set(\"memberId\",i),T(\"\".concat(G.pathname,\"?\").concat(o.toString()))},ee=(0,r.useCallback)(jt(kt().m(function e(){var t,n;return kt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(W&&K){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,$e(_,C,w,{mlpId:W,dmlHqId:K});case 2:t=e.v,Y(t),e.n=4;break;case 3:e.p=3,n=e.v,console.error(\"Failed to load DML market share summary:\",n);case 4:return e.a(2)}},e,null,[[1,3]])})),[_,C,w,W,K]),te=(0,r.useCallback)(function(){var e=jt(kt().m(function e(t){var n,r,o,a;return kt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,$e(_,C,w,{mlpId:W,bmHqId:null==t||null===(n=t.childHq)||void 0===n?void 0:n.hqId,dmlHqId:K});case 1:return o=e.v,e.a(2,null!==(r=null==o?void 0:o.mlpHqMarketShareModels)&&void 0!==r?r:[]);case 2:return e.p=2,a=e.v,console.error(\"Failed to load HQ summary children:\",a),e.a(2,[])}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),[_,C,w,W]);(0,r.useEffect)(function(){N&&ee()},[N]);var ne=(0,r.useCallback)(jt(kt().m(function e(){var t,n,r,o,a,i,l,s,u,c;return kt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,o=new URLSearchParams(G.search),a=o.get(\"tmHqId\"),i=\"string\"==typeof(null==g?void 0:g.code)?g.code.replace(\"#\",\"\"):void 0,l=null!==(t=null!==(n=null==g?void 0:g.id)&&void 0!==n?n:null==g?void 0:g.mlpId)&&void 0!==t?t:i,s=null!==(r=null==g?void 0:g.tmHqId)&&void 0!==r?r:a,e.n=1,Ke(_,C,w,{mlpId:l,tmHqId:s});case 1:if(null==(u=e.v)||!u.mlpId){e.n=3;break}return e.n=2,X();case 2:null==v||v(),null==h||h(),S({message:(0,f.t)(\"SUBMIT_TALUKAS_TOAST_MESSAGE\"),type:\"success\"});case 3:e.n=5;break;case 4:e.p=4,c=e.v,console.error(\"Error submitting taluka list:\",c),S({message:\"Failed to submit taluka list\",type:\"error\"});case 5:return e.a(2)}},e,null,[[0,4]])})),[_,C,w,g,X,h,v]);return o().createElement(s.A,{className:y.talukaContainer},o().createElement(ut.A,{disablePadding:!0,className:y.talukaList},(L||P||M)&&o().createElement(o().Fragment,null,null==I?void 0:I.map(function(e){var t,n=function(e){switch(null==e?void 0:e.toUpperCase()){case\"PENDING\":return{color:R.T.dangerRed,text:\"Pending\"};case\"PENDING_FOR_APPROVAL\":return{color:R.T.dangerRed,text:\"Pending for Approval\"};case\"REJECTED\":return{color:R.T.dangerRed,text:\"Rejected\"};case\"DRAFT_SAVED\":return{color:R.T.mainYellow,text:\"Draft Saved\"};case\"DONE\":return{color:R.T.activeGreen,text:\"Done\"};case\"APPROVED\":return{color:R.T.activeGreen,text:\"Approved\"};default:return{color:R.T.secondaryTextColor,text:e}}}(null==e?void 0:e.geo_status),r=\"DONE\"===(null==e||null===(t=e.geo_status)||void 0===t?void 0:t.toUpperCase())?y.talukaStatusApproved:y.talukaStatusPending;return o().createElement(pt,{key:null==e?void 0:e.geo_id,taluka:e,handleTalukaClick:Z,classes:y,statusClass:r,statusInfo:n,isTM:L,mlpStatus:null==g?void 0:g.status})}),$&&o().createElement(gt,{data:F,mlpClasses:y,isCountryAdmin:P})),N&&o().createElement(o().Fragment,null,null==U||null===(d=U.mlpHqMarketShareModels)||void 0===d?void 0:d.map(function(e){return o().createElement(Lt,{key:e.dmlHqId,item:xt({},e),mlpClasses:y,User:_,baseUrl:C,triggerShowLoader:w,triggerToastMsg:S,mlpId:W,onLoadChildren:te,loadDMLSummaryCards:ee,mlpStatus:null==g?void 0:g.status,loadTableData:A})})),L&&\"PENDING\"===(null==g?void 0:g.status)&&(null==I?void 0:I.every(function(e){var t,n=null==e||null===(t=e.geo_status)||void 0===t?void 0:t.toUpperCase();return\"DONE\"===n||\"APPROVED\"===n}))&&o().createElement(u.A,{direction:\"row\",justifyContent:\"right\",gap:2,mb:2},o().createElement(s.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},o().createElement(m.A,{variant:\"contained\",buttonName:(0,f.t)(\"SUBMIT\"),fullwidth:!1,color:\"primary\",type:\"submit\",onButtonClick:ne})))))};function Gt(e){return Gt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Gt(e)}function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach(function(t){qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qt(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Gt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Gt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wt=function(e){var t=e.row,n=e.isExpanded,r=e.onToggle,a=e.columns,i=void 0===a?h.G_:a,l=e.canExpand,c=void 0!==l&&l,d=e.onSubmitSuccess,p=e.loadTableData,f=ot(),g=function(e){switch(e){case\"NOT_YET_FILLED\":return{color:R.T.dangerRed,text:\"Not Yet Filled\"};case\"PENDING_FOR_APPROVAL\":return{color:R.T.dangerRed,text:\"Pending for Approval\"};case\"PENDING\":return{color:R.T.dangerRed,text:\"Pending\"};case\"SENT_FOR_APPROVAL\":return{color:R.T.mainBlue,text:\"Sent for Approval\"};case\"APPROVED\":return{color:R.T.activeGreen,text:\"Approved\"};case\"CLOSED\":return{color:R.T.dangerRed,text:\"Closed\"};case\"BM_APPROVAL_PENDING\":return{color:R.T.dangerRed,text:\"BM Approval Pending\"};case\"DML_APPROVAL_PENDING\":return{color:R.T.dangerRed,text:\"DML Approval Pending\"};case\"FINAL_APPROVED\":return{color:R.T.activeGreen,text:\"Final Approved\"};default:return{color:R.T.secondaryTextColor,text:e}}}(t.status),m=function(e){var t,r=null!==(t=e.sx)&&void 0!==t?t:{};return n?Vt(Vt({},r),{},{color:R.T.white},e.isStatus?{fontWeight:500}:{}):e.isStatus?Vt(Vt({},r),{},{fontWeight:500,color:\"\".concat(g.color,\" !important\")}):Object.keys(r).length>0?r:void 0};return o().createElement(s.A,{className:n?f.expandedRowWrapper:f.rowWrapper},o().createElement(u.A,{direction:\"row\",alignItems:\"center\",className:n?f.expandedRowHeader:f.rowHeader,onClick:c?r:void 0,sx:{cursor:c?\"pointer\":\"default\"}},i.map(function(e){return o().createElement(D.A,{key:e.key,className:n?f.rowCellExpanded:f.rowCell,sx:m(e)},function(e){if(e.isStatus)return g.text;var n=t[e.key];return\"string\"==typeof n&&n||\"-\"}(e))}),o().createElement(s.A,{className:f.expandIcon},c&&(n?o().createElement(st.A,{sx:{color:R.T.white}}):o().createElement(lt.A,{sx:{color:R.T.bodyBlack}})))),o().createElement(it.A,{in:n,unmountOnExit:!0,mountOnEnter:!0},o().createElement(Yt,{mlpData:t,onCloseExpansion:r,onSubmitSuccess:d,loadTableData:p})))};function Qt(e){return Qt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Qt(e)}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach(function(t){Xt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xt(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Qt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Qt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Qt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jt=function(e){var t=e.tableData,n=e.expandedRowId,a=e.handleToggleExpand,i=e.handlePageChange,l=e.loadTableData,c=e.onTalukaSubmitSuccess,d=e.state,g=(0,r.useContext)(O.v).BackOfficeProps.globalStore.User,m=(0,p.Rk)(g),v=m.isCountryAdmin,A=m.isTM,y=m.isBM,E=v?h.G_:h.G_.filter(function(e){return\"approvedBy\"!==e.key}),b=A||y?E.map(function(e){return\"startDate\"===e.key?$t($t({},e),{},{labelKey:A?\"MLP_SUBMISSION_START_DATE\":\"APPROVAL_STARTDATE\"}):\"endDate\"===e.key?$t($t({},e),{},{labelKey:A?\"MLP_SUBMISSION_END_DATE\":\"APPROVAL_ENDDATE\"}):e}):E,_=ot();return o().createElement(u.A,null,o().createElement(F.A,{elevation:0},o().createElement(at,{columns:b}),null!=t&&t.length?o().createElement(s.A,null,t.map(function(e){var t=(null==e?void 0:e.id)===n,r=\"NOT_YET_FILLED\"!==(null==e?void 0:e.status);return o().createElement(Wt,{key:null==e?void 0:e.id,row:e,isExpanded:t,canExpand:r,onToggle:function(){return a(e)},onSubmitSuccess:c,columns:b,loadTableData:l})})):o().createElement(s.A,{className:_.noDataContainer},(0,f.t)(\"NO_DATA_AVAILABLE\"))),o().createElement(B.A,{totalPageCount:Math.ceil(d.totalPageCount),pageNo:d.paginationState.pageNo,onPageChange:i,totalElements:d.totalElements}))};n(42762);var Zt=n(71083),en=n(98752);function tn(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return nn(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(nn(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,nn(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,nn(d,\"constructor\",u),nn(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",nn(u,o,\"GeneratorFunction\"),nn(d),nn(d,o,\"Generator\"),nn(d,r,function(){return this}),nn(d,\"toString\",function(){return\"[object Generator]\"}),(tn=function(){return{w:a,m:p}})()}function nn(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}nn=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){nn(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},nn(e,t,n,r)}function rn(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function on(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){rn(a,r,o,i,l,\"next\",e)}function l(e){rn(a,r,o,i,l,\"throw\",e)}i(void 0)})}}var an=function(e,t,n,r){var o={};return o.domain=n,o.endPoint=e.endpoint,o.triggerLoader=r,o.customHeaders=function(e){var t,n,r,o;return{\"country-code\":(null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode)||\"\",\"bu-id\":(null==e||null===(n=e.selectedBusinessUnit)||void 0===n?void 0:n.bu_id)||\"\",Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken),\"user-id\":(null==e||null===(r=e.UserDetails)||void 0===r?void 0:r.user_id)||\"\",\"role-type-name\":\"\".concat(null==e||null===(o=e.UserDetails)||void 0===o||null===(o=o.role_type_details)||void 0===o?void 0:o.role_type_name)||\"\"}}(t),e.payload&&(o.payLoad=e.payload),o},ln=function(){var e=on(tn().m(function e(t,n){var r,o,a,i,l=arguments;return tn().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=an(t,n,l.length>2&&void 0!==l[2]?l[2]:\"\",l.length>3&&void 0!==l[3]?l[3]:function(){}),o=t.method||b.dF.GET,e.p=1,e.n=2,(0,E.uB)(r,o);case 2:if(a=e.v,!(0,p.mN)(a)){e.n=3;break}return e.a(2,a.data);case 3:throw null==a?void 0:a.data;case 4:if(e.p=4,i=e.v,!t.mockData){e.n=5;break}return e.a(2,t.mockData);case 5:throw i?new Error((null==i?void 0:i.message)||(null==i?void 0:i.errorMessage)||\"An error occurred while processing the request.\"):new Error(\"An unknown error occurred.\");case 6:return e.a(2)}},e,null,[[1,4]])}));return function(t,n){return e.apply(this,arguments)}}(),sn=function(){return new Promise(function(e){var t=(new Date).getFullYear();e([{id:t,name:String(t)},{id:t+1,name:String(t+1)}])})},un=function(e,t,n){return ln({endpoint:_.p.GET_SEASON_DATA},e,t,n)},cn=function(e,t,n){var r,o=null==e||null===(r=e.selectedBusinessUnit)||void 0===r?void 0:r.bu_id;return o?ln({endpoint:_.p.GET_CROPDATA.replace(\"__ID__\",\"\".concat(o))},e,t,n).then(function(e){return null==e?void 0:e.filter(function(e){return\"OTHE\"!==(null==e?void 0:e.code)})}):Promise.reject(new Error((0,p.Tl)(\"INVALID_BU_ID\")))},dn=function(e,t,n){return ln({endpoint:_.p.GET_COMPETITOR_DATA},e,t,n).then(function(e){return null==e?void 0:e.filter(function(e){return\"Other\"!==(null==e?void 0:e.name)})})},pn=function(e,t,n,r){var o,a=null==t||null===(o=t.selectedBusinessUnit)||void 0===o?void 0:o.bu_id;return e?a?ln({endpoint:_.p.GET_BRAND_DATA_BY_CROP_ID_BU_ID.replace(\"__CROP_ID__\",e).replace(\"__BU_ID__\",\"\".concat(a)),mockData:He.OF},t,n,r):Promise.reject(new Error((0,p.Tl)(\"INVALID_BU_ID\"))):Promise.reject(new Error((0,p.Tl)(\"INVALID_CROP_ID\")))},fn=function(e,t,n,r){return ln({endpoint:_.p.SAVE_NEW_MLP_DATA,method:b.dF.POST,payload:e},t,n,r)},gn=function(e,t,n,r,o){var a,i,l,s,u={\"Content-Type\":b.LG.json,\"bu-id\":null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_id,\"country-code\":null==e||null===(i=e.selectedCountry)||void 0===i?void 0:i.countryCode,\"role-type-name\":\"\".concat(null==e||null===(l=e.UserDetails)||void 0===l||null===(l=l.role_type_details)||void 0===l?void 0:l.role_type_name),\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)};return o({baseUrl:\"\".concat(t).concat(_.p.MLP_DOWNLOAD_TEMPLATE),options:{headers:u,responseType:\"arraybuffer\"},payload:n,requestType:\"post\"}).then(function(e){var t,n=(0,p.bA)(e),o=null==n||null===(t=n.message)||void 0===t?void 0:t.toString().trim();n&&r({message:o,type:\"error\"})}).catch(function(e){console.error(\"Error downloading template:\",e)})},hn=function(e,t,n,r){var o,a={};a.domain=t,a.endPoint=_.p.MLP_GET_AGRONOMY_PRESIGNED_URL,a.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)};var i=(0,en.S2)(r);return a.payLoad={file_name:i.name},a.triggerLoader=n,(0,p.AT)(\"get\",a,!1)},mn=function(){var e=on(tn().m(function e(t,n,r,o,a){var i,l,s,u,c,d,p;return tn().w(function(e){for(;;)switch(e.p=e.n){case 0:return(i=new FormData).append(\"mlp_file_name\",a),e.p=1,e.n=2,Zt.A.post(\"\".concat(n).concat(_.p.MLP_VALIDATE_AGRONOMY_TEMPLATE,\"?mlp_id=\").concat(r,\"&file_name=\").concat(o),i,{headers:{\"Content-Type\":\"multipart/form-data\",\"bu-id\":null==t||null===(l=t.selectedBusinessUnit)||void 0===l?void 0:l.bu_id,\"country-code\":null==t||null===(s=t.selectedCountry)||void 0===s?void 0:s.countryCode,Authorization:\"Bearer \".concat(null==t?void 0:t.AccessToken)}});case 2:return u=e.v,e.a(2,null==u?void 0:u.data);case 3:throw e.p=3,p=e.v,d=(null==p||null===(c=p.response)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.message)||(null==p?void 0:p.message)||\"Template validation failed\",new Error(d);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(t,n,r,o,a){return e.apply(this,arguments)}}(),vn=function(e,t,n,r){return ln({endpoint:_.p.GET_MLP_DETAILS_BY_ID.replace(\"__ID__\",e.id),method:b.dF.GET},t,n,r)},An=n(80648);function yn(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return En(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(En(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,En(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,En(d,\"constructor\",u),En(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",En(u,o,\"GeneratorFunction\"),En(d),En(d,o,\"Generator\"),En(d,r,function(){return this}),En(d,\"toString\",function(){return\"[object Generator]\"}),(yn=function(){return{w:a,m:p}})()}function En(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}En=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){En(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},En(e,t,n,r)}function bn(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function _n(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){bn(a,r,o,i,l,\"next\",e)}function l(e){bn(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach(function(t){Sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sn(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=On(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=On(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==On(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Rn(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function On(e){return On=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},On(e)}function Dn(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Rn(e,t){if(e){if(\"string\"==typeof e)return Nn(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ln=Number(10),Pn=function(e,t,n,r){var o=[].concat(Dn(t?[{label:\"Pending\",value:\"PENDING\"},{label:\"BM Approval Pending\",value:\"BM_APPROVAL_PENDING\"},{label:\"DML Approval Pending\",value:\"DML_APPROVAL_PENDING\"},{label:\"Final Approved\",value:\"FINAL_APPROVED\"}]:[]),Dn(r?[{label:\"Not yet Filled\",value:\"NOT_YET_FILLED\"},{label:\"BM Approval Pending\",value:\"BM_APPROVAL_PENDING\"},{label:\"DML Approval Pending\",value:\"DML_APPROVAL_PENDING\"},{label:\"Final Approved\",value:\"FINAL_APPROVED\"}]:[]),Dn(n?[{label:\"BM Approval Pending\",value:\"BM_APPROVAL_PENDING\"},{label:\"DML Approval Pending\",value:\"DML_APPROVAL_PENDING\"},{label:\"Final Approved\",value:\"FINAL_APPROVED\"}]:[]),Dn(e?[{label:\"Not Yet Filled\",value:\"NOT_YET_FILLED\"},{label:\"BM Approval Pending\",value:\"BM_APPROVAL_PENDING\"},{label:\"DML Approval Pending\",value:\"DML_APPROVAL_PENDING\"},{label:\"Final Approved\",value:\"FINAL_APPROVED\"}]:[]),[{label:\"Closed\",value:\"CLOSED\"}]),a=new Map;return o.forEach(function(e){a.has(e.value)||a.set(e.value,e)}),Array.from(a.values())},Mn=function(e){return Array.isArray(e)?e:Array.isArray(null==e?void 0:e.data)?e.data:[]},xn=function(e){return Mn(e).map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}})},In=function(e){return(t=e,Array.isArray(t)?t:Array.isArray(null==t?void 0:t.data)?t.data:Array.isArray(null==t?void 0:t.hq_data)?t.hq_data:Array.isArray(null==t?void 0:t.hqData)?t.hqData:[]).map(function(e){var t,n,r,o,a,i,l,s=null!==(t=null!==(n=null!==(r=null!==(o=null==e?void 0:e.label)&&void 0!==o?o:null==e?void 0:e.name)&&void 0!==r?r:null==e?void 0:e.hq_name)&&void 0!==n?n:null==e?void 0:e.hq_data_name)&&void 0!==t?t:null==e?void 0:e.tmHqName,u=null!==(a=null!==(i=null!==(l=null==e?void 0:e.value)&&void 0!==l?l:null==e?void 0:e.id)&&void 0!==i?i:null==e?void 0:e.hq_data_id)&&void 0!==a?a:null==e?void 0:e.tmHqId;return{label:\"string\"==typeof s||\"number\"==typeof s?String(s):\"\",value:u}}).filter(function(e){return e.label&&void 0!==e.value&&null!==e.value});var t},kn=function(e){if(e)return\"object\"===On(e)&&\"value\"in e?e.value:e};const Bn=function(){var e,t,n,i,l,u=(0,g.Bd)().t,c=(0,r.useContext)(O.v),d=c.BackOfficeProps,f=d.globalStore.User,h=d.baseurl,m=c.triggerShowLoader,v=(0,a.zy)(),A=(0,p.Rk)(f),y=A.isCountryAdmin,E=A.isTM,b=A.isDML,_=A.isBM,C=Tn((0,r.useState)({mlpList:[],paginationState:{pageNo:0,pageSize:Ln},totalPageCount:0,totalElements:0,noDataTemplateName:u(\"NO_DATA_FOUND\"),searchValue:\"\",selectedFilters:{tmHqId:void 0,season:void 0,crop:void 0,status:void 0},filtersOptions:{tmHqId:[],season:[],crop:[],status:Pn(y,E,b,_)}}),2),w=C[0],S=C[1],T=new URLSearchParams(v.search),D=null!==(e=null==T?void 0:T.get(\"tmHqId\"))&&void 0!==e?e:\"\",R=Tn((0,r.useState)(!1),2),N=R[0],L=R[1],P=Tn((0,r.useState)([]),2),M=P[0],x=P[1],k=Tn((0,r.useState)([]),2),B=k[0],F=k[1],j=Tn((0,r.useState)([]),2),H=j[0],Y=j[1],G=E||b,z=function(e){S(function(t){return wn(wn({},t),e)})},V=(0,r.useCallback)(function(e){var t=null==B?void 0:B.at(-1);if(!t)return[];var n=(null==e?void 0:e[t])||[];return null==n?void 0:n.map(function(e){return null==e?void 0:e.value}).filter(function(e){return void 0!==e})},[B]),q=(0,r.useCallback)(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Y(function(e){return e.map(function(e,r){return r<=t?e:wn(wn({},e),{},r===t+1?{options:n}:{options:[]})})});for(var r=t+1;r<B.length;r+=1)e(B[r],[])},[B]),W=(0,r.useCallback)(function(e,t,n){var r=null==M?void 0:M[t+1],o=null==r?void 0:r.sales_hierarchy_id;o&&e.length?(0,me._n)(f,h,m,{targetForId:o,parentHqIds:e}).then(function(e){var r=(e||[]).map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}});q(n,t,r)}).catch(function(e){console.error(\"Error fetching hierarchy filters:\",e.message),q(n,t)}):q(n,t)},[f,h,m,M,q]),Q=(0,r.useCallback)(function(e,t,n){(0,me.Bs)(e,f,h,m).then(function(e){if(e){var r=e.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}});Y(n.map(function(e){return e.labelName===t?wn(wn({},e),{},{options:r}):e}))}}).catch(function(e){console.error(\"Error fetching first level hierarchy filter:\",e.message)})},[f,h,m]),K=(0,r.useCallback)(function(e){(0,me.FU)(f,h,m,e).then(function(e){if(null==e||!e.length)return x([]),F([]),void Y([]);var t=e.slice(1,-1),n=t.map(function(e){return null==e?void 0:e.name});if(!n.length)return x([]),F([]),void Y([]);var r=t,o=n.map(function(e){return{labelName:e,options:[]}});x(r),F(n),Y(o);var a=r[0];null!=a&&a.sales_hierarchy_id&&null!=a&&a.name&&Q(a.sales_hierarchy_id,a.name,o)}).catch(function(e){console.error(\"Error fetching BM hierarchy labels:\",e.message),x([]),F([]),Y([])})},[f,h,m,Q]),$=(0,r.useCallback)(function(){var e=_n(yn().m(function e(t,n,r){var o,a,i,l,s,u,c,d,p;return yn().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,o=kn(null==n?void 0:n.season),a=kn(null==n?void 0:n.crop),i=kn(null==n?void 0:n.status),l=kn(null==n?void 0:n.tmHqId)?kn(null==n?void 0:n.tmHqId):D,s=b?V(n):[],u=null==s?void 0:s[0],c=b?u:l,e.n=1,qe(f,h,m,wn(wn(wn(wn(wn({pageNo:t+1,pageSize:je},r?{searchBy:r}:{}),c||l?{hqId:null!=c?c:Number(l)}:{}),o?{seasons:o}:{}),a?{crops:a}:{}),i?{status:i}:{}));case 1:d=e.v,z({mlpList:d.data,totalElements:d.totalElements,totalPageCount:d.totalElements/je}),e.n=3;break;case 2:e.p=2,p=e.v,console.error(\"Error fetching table data:\",p);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n,r){return e.apply(this,arguments)}}(),[f,h,m,D,b,E,b,V]),X=(0,r.useCallback)(function(e,t){z({selectedFilters:wn(wn({},w.selectedFilters),{},{tmHqId:t}),paginationState:wn(wn({},w.paginationState),{},{pageNo:0}),expandedRowId:null})},[w.selectedFilters,w.paginationState]),J=(0,r.useCallback)(_n(yn().m(function e(){var t,n,r,o,a,i,l,s,u,c,d,p,g,v,A,C,w,T,O,R,N,L,P,M,I,k,B,j,H;return yn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,a=null==f||null===(t=f.selectedBusinessUnit)||void 0===t?void 0:t.userRoleControls,i=null!==(n=null!==(r=null==a?void 0:a.hq_hierarchy_id)&&void 0!==r?r:null==a?void 0:a.hqHierarchyId)&&void 0!==n?n:null==a?void 0:a.roleId,!E){e.n=6;break}return e.p=1,e.n=2,(0,ve.Vs)(f,h,m);case 2:if(l=e.v,!(s=null==l?void 0:l.sales_hierarchy_id)){e.n=4;break}return e.n=3,(0,me.FU)(f,h,m,s);case 3:p=e.v,g=(p||[]).find(function(e){var t=String((null==e?void 0:e.name)||\"\").toLowerCase();return\"tmhq\"===t||\"tm hq\"===t||t.includes(\"tmhq\")}),v=(p||[])[(null==p?void 0:p.length)-1],(A=null!==(u=null!==(c=null!==(d=null==g?void 0:g.id)&&void 0!==d?d:null==g?void 0:g.sales_hierarchy_id)&&void 0!==c?c:null==v?void 0:v.id)&&void 0!==u?u:null==v?void 0:v.sales_hierarchy_id)&&(i=A);case 4:e.n=6;break;case 5:e.p=5,B=e.v,console.error(\"Error fetching TMHQ hierarchy id:\",B);case 6:return e.n=7,Promise.all([un(f,h,m),cn(f,h,m),G?(0,An.le)(f,h,m,String(null!=i?i:null==f||null===(o=f.selectedBusinessUnit)||void 0===o||null===(o=o.userRoleControls)||void 0===o?void 0:o.roleId)):Promise.resolve([])]);case 7:if(C=e.v,w=Tn(C,3),T=w[0],O=w[1],R=w[2],!b){e.n=12;break}return e.p=8,e.n=9,(0,ve.Vs)(f,h,m);case 9:N=e.v,(L=null==N?void 0:N.sales_hierarchy_id)&&K(L),e.n=11;break;case 10:e.p=10,j=e.v,console.error(\"Error fetching BM hierarchy:\",null!==(P=null==j?void 0:j.message)&&void 0!==P?P:j);case 11:e.n=13;break;case 12:x([]),F([]),Y([]);case 13:M=G?In(R):[],I=M.find(function(e){return String(null==e?void 0:e.value)===String(D)}),k=M.length?M[0]:void 0,S(function(e){var t,n,r,o,a;return wn(wn({},e),{},{filtersOptions:{tmHqId:M,season:(a=T,Mn(a).map(function(e){return{label:\"string\"==typeof e?null==e?void 0:e.toLowerCase().replace(/^./,function(e){return null==e?void 0:e.toUpperCase()}):\"\",value:e}})),crop:xn(O),status:Pn(y,E,b,_)},selectedFilters:wn(wn({},e.selectedFilters),{},{tmHqId:G?null!==(t=null!==(n=null===(r=e.selectedFilters)||void 0===r?void 0:r.tmHqId)&&void 0!==n?n:I)&&void 0!==t?t:k:null===(o=e.selectedFilters)||void 0===o?void 0:o.tmHqId})})}),e.n=15;break;case 14:e.p=14,H=e.v,console.error(\"Error fetching MLP filter options:\",H);case 15:return e.a(2)}},e,null,[[8,10],[1,5],[0,14]])})),[f,h,m,y,E,b,_,K,D]),Z=(0,r.useCallback)(function(e){var t;z({selectedFilters:wn(wn({},e),{},{tmHqId:G?null===(t=w.selectedFilters)||void 0===t?void 0:t.tmHqId:void 0}),paginationState:wn(wn({},w.paginationState),{},{pageNo:0})}),L(!1)},[w.paginationState,w.selectedFilters]),ee=(0,r.useCallback)(function(){var e,t=B.reduce(function(e,t,n){var r,o,a=null!==(r=null===(o=H[n])||void 0===o?void 0:o.options)&&void 0!==r?r:[];return e[t]=[],0===n&&a.forEach(function(e){e.checked=!1}),e},{});Y(function(e){return e.map(function(e,t){return wn(wn({},e),{},{options:0===t?e.options.map(function(e){return wn(wn({},e),{},{checked:!1})}):[]})})}),z({selectedFilters:wn({tmHqId:G?null===(e=w.selectedFilters)||void 0===e?void 0:e.tmHqId:void 0,season:void 0,crop:void 0,status:void 0},t),paginationState:wn(wn({},w.paginationState),{},{pageNo:0})}),L(!1)},[w.paginationState,w.selectedFilters,E,b,B,H]),te=(0,r.useCallback)(function(){$(w.paginationState.pageNo,w.selectedFilters,w.searchValue)},[$,w.paginationState.pageNo,w.selectedFilters,w.searchValue]);(0,r.useEffect)(function(){$(w.paginationState.pageNo,w.selectedFilters,w.searchValue)},[w.paginationState,w.selectedFilters,w.searchValue]),(0,r.useEffect)(function(){J()},[]),E||b?i=kn(null===(l=w.selectedFilters)||void 0===l?void 0:l.tmHqId)||D||void 0:y&&(i=D);var ne=Object.entries(w.selectedFilters||{}).filter(function(e){return\"tmHqId\"!==Tn(e,1)[0]}).reduce(function(e,t){var n=Tn(t,2),r=n[0],o=n[1];return wn(wn({},e),{},Sn({},r,o))},{});return o().createElement(s.A,null,o().createElement(I,{searchValue:w.searchValue,showFilters:!0,showSearch:!0,onSearchChange:function(e){var t=e.replace(/^\\s+/,\"\");z({searchValue:t,paginationState:wn(wn({},w.paginationState),{},{pageNo:0})})},onFilterClick:function(){return L(!0)},filterClassName:ne,searchBasedOn:null!==(t=u(\"MLP_LIST_SEARCH\"))&&void 0!==t?t:\"\",renderFilterDropdown:G?function(){var e,t,n,r,a;return o().createElement(s.A,{minWidth:180},o().createElement(Xe.A,{defaultLabel:u(\"SELECT_TMHQ\"),name:\"tmHqId\",label:\"tmHqId\",onChange:X,labelKey:\"label\",selectedOption:null===(e=w.selectedFilters)||void 0===e?void 0:e.tmHqId,value:null===(t=w.selectedFilters)||void 0===t?void 0:t.tmHqId,options:null!==(n=null===(r=w.filtersOptions)||void 0===r?void 0:r.tmHqId)&&void 0!==n?n:[],isDisabled:1===(null===(a=w.filtersOptions)||void 0===a||null===(a=a.tmHqId)||void 0===a?void 0:a.length)}))}:void 0}),o().createElement(Jt,{tableData:null===(n=w.mlpList)||void 0===n?void 0:n.map(function(e){return wn(wn(wn({},e),(E||y||b)&&i?{tmHqId:i}:{}),{},{startDate:null!=e&&e.startDate?U()(null==e?void 0:e.startDate).format(\"DD MMM YYYY\"):\"-\",endDate:null!=e&&e.endDate?U()(null==e?void 0:e.endDate).format(\"DD MMM YYYY\"):\"-\"})}),expandedRowId:w.expandedRowId,handleToggleExpand:function(e){var t=w.expandedRowId===e.id;z({expandedRowId:t?null:e.id})},onTalukaSubmitSuccess:te,handlePageChange:function(e){z({paginationState:wn(wn({},w.paginationState),{},{pageNo:Number(e)})})},loadTableData:function(){return $(w.paginationState.pageNo,w.selectedFilters,w.searchValue)},state:w}),N&&o().createElement(nt,{isFilterOpen:N,onRequestClose:function(){return L(!1)},onFilterSubmit:Z,selectedFilters:w.selectedFilters,onClearFilters:ee,filtersOptions:w.filtersOptions,showHierarchyFilters:b&&B.length>0,hierarchyLabelNames:B,hierarchyLabelOptions:H,onHierarchyFilterChange:W,setHierarchyLabelOptions:Y}))};function Fn(e){return Fn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Fn(e)}function jn(e){return function(e){if(Array.isArray(e))return Vn(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||zn(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach(function(t){Yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yn(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Fn(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Fn(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||zn(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function zn(e,t){if(e){if(\"string\"==typeof e)return Vn(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(25428),n(40150),n(87220),n(9868),n(48980),n(25276),n(26910),n(31415);function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wn=function(e){var t=Number(e);return Number.isNaN(t)?0:t},Qn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Wn(e),o=Wn(t);return 0===o?0===r?\"0.0\":\"100\":((r-o)/o*100).toFixed(n)},Kn=function(e){if(null==e||\"\"===e)return!1;var t=Number(e);return!Number.isNaN(t)&&Number.isFinite(t)};function $n(e,t,n){if(!Kn(e)||!Kn(t)||!n)return null;var r=function(e,t,n,r,o){return e>=n.minValue&&e<=n.maxValue?o:e>=t.minValue&&e<n.minValue?r:null},o=r(Number(e),n.lowPotential,n.highPotential,\"LP\",\"HP\"),a=r(Number(t),n.lowShare,n.highShare,\"LS\",\"HS\");return o&&a?\"\".concat(o,\"-\").concat(a):o?\"\".concat(o,\"-NA\"):a?\"NA-\".concat(a):\"NA-NA\"}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Jn=(0,r.createContext)(void 0),Zn=function(e){var t,n,a=e.children,i=e.isRequired,l=(t=(0,r.useState)(i),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return Xn(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xn(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),s=l[0],u=l[1];o().useEffect(function(){u(i)},[i]);var c=o().useMemo(function(){return{isRequired:s,setIsRequired:u}},[s]);return o().createElement(Jn.Provider,{value:c},a)},er=function(){var e=(0,r.useContext)(Jn);if(!e)throw new Error(\"useTalukaDetailsFormContext must be used within FormProvider\");return e},tr=/^\\d{0,10}(\\.\\d{0,2})?$/,nr=new Set([\"e\",\"E\",\"+\",\"-\"]),rr=function(e,t,n,r,o){return{onKeyDown:function(e){return function(e,t){(nr.has(e.key)||function(e){var t,n,r;if(r=e.key,!/^\\d$/.test(r))return!1;var o=e.currentTarget,a=o.value,i=a.indexOf(\".\");if(-1===i)return!1;var l=null!==(t=o.selectionStart)&&void 0!==t?t:a.length,s=null!==(n=o.selectionEnd)&&void 0!==n?n:l;if(l<=i)return!1;var u=i+1;return Math.max(0,a.length-u)-Math.max(0,Math.min(s,a.length)-Math.max(l,u))+1>2}(e))&&e.preventDefault(),\"function\"==typeof t&&t(e)}(e,r)},onChange:function(r){return function(e,t,n,r,o){var a=e.target.value;\"\"===a||tr.test(a)?r(t,n,\"\"===a?Number.NaN:Number.parseFloat(a)):e.target.value=function(e){return null==e||\"number\"==typeof e&&Number.isNaN(e)?\"\":String(e)}(o)}(r,e,t,n,o)}}},or=function(e){var t,n,r,a,i=e.data,l=e.onChange,s=e.handlePreventKeyDown,u=e.shouldEqualError,c=e.hectareValue,d=e.showPlaceholderForZero,p=void 0!==d&&d,f=ft(),g=er().isRequired,h=g&&(!i.currentYearValueInMT||Number(i.currentYearValueInMT)<=0),m=g&&(!(null!=i&&i.nextYearValueInMT)||Number(null==i?void 0:i.nextYearValueInMT)<=0),v=function(e,t,n){l(t,Number(n))},A=rr(0,\"currentYearValueInMT\",v,s,null==i?void 0:i.currentYearValueInMT),y=rr(0,\"nextYearValueInMT\",v,s,null==i?void 0:i.nextYearValueInMT),E=function(e){return p&&0===Number(e)?\"\":null!=e?e:\"\"},b=function(e){return c&&0!==c&&e&&0!==e?(e*c).toFixed(2):0};return o().createElement(\"div\",{className:f.tableContainer},o().createElement(\"table\",{className:f.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null),o().createElement(\"th\",null,\"Previous Year Actual\"),o().createElement(\"th\",null,\"Current Year Actual\"),o().createElement(\"th\",null,\"Next Year Estimate\"))),o().createElement(\"tbody\",null,o().createElement(\"tr\",null,o().createElement(\"td\",{className:f.fontMedium},\"Value in MT\"),o().createElement(\"td\",null,null!==(t=null==i?void 0:i.previousYearValueInMT)&&void 0!==t?t:0),o().createElement(\"td\",null,o().createElement(\"input\",{type:\"number\",value:E(null==i?void 0:i.currentYearValueInMT),className:f.input,placeholder:\"Enter Sales in MT\",step:\"0.01\",max:\"9999999999.99\",min:\"0\",onKeyDown:A.onKeyDown,onChange:A.onChange}),h&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Current year value is required\"),!h&&u&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Market Potential must equal Total Market Size\")),o().createElement(\"td\",null,o().createElement(\"input\",{type:\"number\",value:E(null==i?void 0:i.nextYearValueInMT),className:f.input,placeholder:\"Enter Sales in MT\",step:\"0.01\",max:\"9999999999.99\",min:\"0\",onKeyDown:y.onKeyDown,onChange:y.onChange}),m&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Next year value is required\"))),o().createElement(\"tr\",null,o().createElement(\"td\",{className:f.fontMedium},\"Value in Hectare\"),o().createElement(\"td\",null,b(null!==(n=null==i?void 0:i.previousYearValueInMT)&&void 0!==n?n:0)),o().createElement(\"td\",null,b(null!==(r=null==i?void 0:i.currentYearValueInMT)&&void 0!==r?r:0)),o().createElement(\"td\",null,b(null!==(a=null==i?void 0:i.nextYearValueInMT)&&void 0!==a?a:0))))))},ar=function(e){var t=e.currentYearManMonthsList,n=e.nextYearManMonthsList,r=e.data,a=e.totalManMonths,i=e.onChange,l=ft(),s=er().isRequired;return o().createElement(\"div\",{className:l.tableContainer},o().createElement(\"table\",{className:l.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null,\"MDOHQ Name\"),o().createElement(\"th\",null,\"MDO Name\"),o().createElement(\"th\",null,\"Last Year Man Months\"),o().createElement(\"th\",null,\"Current Year Man Months\"),o().createElement(\"th\",null,\"Next Year Man Months Proposal\"))),o().createElement(\"tbody\",null,null==r?void 0:r.map(function(e,r){var a,l,u,c=null==e.currentYearManMonths?\"\":String(e.currentYearManMonths),d=null==e.nextYearManMonthsProposal?\"\":String(e.nextYearManMonthsProposal);return o().createElement(\"tr\",{key:\"mdo-\".concat(e.mdoName,\"-\").concat(r)},o().createElement(\"td\",null,e.mdoHqName),o().createElement(\"td\",null,e.mdoName),o().createElement(\"td\",null,null!==(a=e.lastYearManMonths)&&void 0!==a?a:0),o().createElement(\"td\",null,o().createElement(Xe.A,{name:\"\",onChange:function(e,t){return i(r,\"currentYearManMonths\",t)},options:t,labelKey:\"label\",label:\"label\",selectedOption:null!==(l=e.currentYearManMonths)&&void 0!==l?l:\"\",value:c,defaultLabel:\"Select\"}),function(e){return s&&(null==e.currentYearManMonths||\"\"===e.currentYearManMonths||Number(e.currentYearManMonths)<0)}(e)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Current year man months required\")),o().createElement(\"td\",null,o().createElement(Xe.A,{name:\"\",onChange:function(e,t){return i(r,\"nextYearManMonthsProposal\",t)},options:n,labelKey:\"label\",label:\"label\",selectedOption:null!==(u=e.nextYearManMonthsProposal)&&void 0!==u?u:\"\",value:d,defaultLabel:\"Select\"}),function(e){return s&&(null==e.nextYearManMonthsProposal||\"\"===e.nextYearManMonthsProposal||Number(e.nextYearManMonthsProposal)<0)}(e)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Next year man months required\")))}),o().createElement(\"tr\",{className:l.tableTotalRow},o().createElement(\"td\",null,\"Total Man Months\"),o().createElement(\"td\",null),o().createElement(\"td\",null,a.lastYear),o().createElement(\"td\",null,a.currentYear),o().createElement(\"td\",null,a.nextYear)))))},ir=(n(11392),function(e){var t,n,r,a,i=e.data,l=e.totalSales,s=e.onChange,u=e.handlePreventKeyDown,c=(e.showPlaceholderForZero,ft()),d=er().isRequired,p=function(e){return null!=e&&\"\"!==String(e).trim()&&Number(e)>0},f=function(e){var t=Number(e);return Number.isFinite(t)&&t>0},g=function(e){var t;return\"other\"===(null===(t=e.hybridName)||void 0===t?void 0:t.toLowerCase())},h=function(e){var t=Number(e);if(Number.isFinite(t))return t>0?\"positive\":t<0?\"negative\":\"neutral\";var n=String(e).trim();return n.startsWith(\"-\")?\"negative\":n.startsWith(\"+\")?\"positive\":\"neutral\"},m=function(e){return\"positive\"===e?c.textGreen:\"negative\"===e?c.textRed:\"\"},v=function(e){return\"positive\"===e?o().createElement(\"span\",null,\"↑\"):\"negative\"===e?o().createElement(\"span\",null,\"↓\"):null},A=function(e){return null!=e?e:\"\"},y=null!==(t=null==i?void 0:i.filter(function(e){return!g(e)}))&&void 0!==t?t:[],E=null!==(n=null==i?void 0:i.filter(function(e){return g(e)}))&&void 0!==n?n:[],b=null!==(r=null==i?void 0:i.findIndex(function(e){return!g(e)}))&&void 0!==r?r:-1,_=null!==(a=null==i?void 0:i.findIndex(function(e){return g(e)}))&&void 0!==a?a:-1,C=!d||y.some(function(e){return f(e.currentYearActualNetSales)}),w=d&&E.some(function(e){return!f(e.currentYearActualNetSales)}),S=l.currentYearActual?Qn(l.currentYearActual,l.previousYear):\"0\",T=h(S),O=m(T);return o().createElement(\"div\",{className:c.tableContainer},o().createElement(\"table\",{className:c.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null,\"Hybrid Name\"),o().createElement(\"th\",null,\"Previous year Actual Net sales (in MT)\"),o().createElement(\"th\",null,\"Current year Sales Plan (As per last year MLP in MT)\"),o().createElement(\"th\",null,\"Current year Actual Net sales (in MT)\"),o().createElement(\"th\",null,\"Growth over last Year (in %)\"),o().createElement(\"th\",null,\"Agronomy Recommendation\"),o().createElement(\"th\",null,\"Next Year Sales Plan (in MT)\"),o().createElement(\"th\",null,\"Focused Hybrid (in MT)\"))),o().createElement(\"tbody\",null,null==i?void 0:i.map(function(e,t){var n,r,a=Qn(e.currentYearActualNetSales,e.previousYearActualNetSales),l=h(a),f=m(l),g=rr(t,\"currentYearActualNetSales\",s,u,e.currentYearActualNetSales),y=rr(t,\"nextYearSalesPlan\",s,u,e.nextYearSalesPlan);return o().createElement(\"tr\",{key:\"hybrid-\".concat(e.hybridId,\"-\").concat(t)},o().createElement(\"td\",null,e.hybridName),o().createElement(\"td\",null,null!==(n=e.previousYearActualNetSales)&&void 0!==n?n:0),o().createElement(\"td\",null,null!==(r=e.currentYearSalesPlan)&&void 0!==r?r:0),o().createElement(\"td\",null,o().createElement(\"input\",{type:\"number\",value:A(e.currentYearActualNetSales),className:c.input,placeholder:\"Enter Sales in MT\",step:\"0.01\",max:\"9999999999.99\",min:\"0\",onKeyDown:g.onKeyDown,onChange:g.onChange}),(function(e){var t=e.currentYearActualNetSales;if(!d)return!1;var n=p(t),r=p(e.nextYearSalesPlan);if(!n&&!r)return!1;if(!n)return!0;var o=Number(t);return!Number.isFinite(o)||o<0}(e)||t===b&&!C||t===_&&w)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Current year sales required\")),e.currentYearActualNetSales?o().createElement(\"td\",{className:f},a,\"% \",v(l)):o().createElement(\"td\",null,\"0%\"),o().createElement(\"td\",null,e.agronomyRecommendation),o().createElement(\"td\",null,o().createElement(\"input\",{type:\"number\",value:A(e.nextYearSalesPlan),className:c.input,placeholder:\"Enter Sales in MT\",step:\"0.01\",max:\"9999999999.99\",min:\"0\",onKeyDown:y.onKeyDown,onChange:y.onChange}),function(e){var t=e.nextYearSalesPlan;if(!d)return!1;if(!p(t))return!1;var n=Number(t);return!Number.isFinite(n)||n<0}(e)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Next year sales required\")),o().createElement(\"td\",{style:{color:\"#65833A\"}},function(e,t,n){var r,o,a=e.filter(function(e){var t;return\"other\"!==(null===(t=e.hybridName)||void 0===t?void 0:t.toLowerCase())}),i=(o=new Set(null==a||null===(r=a.map(function(e){return Wn(Qn(e.currentYearActualNetSales,e.previousYearActualNetSales))}))||void 0===r?void 0:r.filter(function(e){return e>0})),function(e){if(Array.isArray(e))return qn(e)}(o)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(o)||function(e,t){if(e){if(\"string\"==typeof e)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(o)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()).sort(function(e,t){return t-e}).slice(0,2),l=Wn(t);if(l<=0||\"other\"===(null==n?void 0:n.toLowerCase()))return\"\";var s=i.indexOf(l);return 0===s||1===s?\"Focused Hybrid\":\"\"}(i,a,e.hybridName)))}),o().createElement(\"tr\",{className:c.tableTotalRow},o().createElement(\"td\",null,\"Total Syngenta Sales\"),o().createElement(\"td\",null,l.previousYear?l.previousYear.toFixed(2):0),o().createElement(\"td\",null,l.currentYearPlan?l.currentYearPlan.toFixed(2):0),o().createElement(\"td\",null,l.currentYearActual?l.currentYearActual.toFixed(2):0),l.currentYearActual?o().createElement(\"td\",{className:O},S,\"% \",v(T)):o().createElement(\"td\",null,\"0%\"),o().createElement(\"td\",null),o().createElement(\"td\",null,l.nextYear?l.nextYear.toFixed(2):0),o().createElement(\"td\",null)))))}),lr=function(e){var t=e.data,n=e.totalCompetitorSales,r=e.totalMarketSize,a=e.onChange,i=e.handlePreventKeyDown,l=e.showPlaceholderForZero,s=void 0!==l&&l,u=ft(),c=er().isRequired;return o().createElement(\"div\",{className:u.tableContainer},o().createElement(\"table\",{className:u.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null,\"Company\"),o().createElement(\"th\",null,\"Total sales in MT (CY)\"),o().createElement(\"th\",null,\"Major Hybrid name\"))),o().createElement(\"tbody\",null,null==t?void 0:t.map(function(e,t){var n,r,l,d,p,f=Number(e.totalSales),g=Number.isFinite(f)&&f>0,h=e.selectedHybridName||e.majorHybridName||e.hybridName||\"\",m=null!==(n=e.hybridList)&&void 0!==n?n:[],v=m.find(function(e){return e.name===h}),A=rr(t,\"totalSales\",a,i,null!==(r=e.totalSales)&&void 0!==r?r:void 0);return o().createElement(\"tr\",{key:\"\".concat(e.competitorId,\"-\").concat(t)},o().createElement(\"td\",null,e.competitorName),o().createElement(\"td\",null,o().createElement(\"input\",{type:\"number\",value:(p=null!==(l=e.totalSales)&&void 0!==l?l:void 0,s&&0===Number(p)?\"\":null!=p?p:\"\"),className:u.input,placeholder:\"Enter Sales in MT\",step:\"0.01\",max:\"9999999999.99\",min:\"0\",onKeyDown:A.onKeyDown,onChange:A.onChange}),function(e){var t,n=e.totalSales;if(!c)return!1;if(null==n)return!0;var r=Number(n),o=!Number.isFinite(r)||r<0;return\"other\"===(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase())?o||0===r:o}(e)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Total sales required\")),o().createElement(\"td\",null,\"other\"===(null===(d=e.competitorName)||void 0===d?void 0:d.toLowerCase())?o().createElement(\"span\",null):o().createElement(o().Fragment,null,o().createElement(Xe.A,{name:\"competitor-hybrid-\".concat(t),onChange:function(e,n){return a(t,\"selectedHybridName\",(null==n?void 0:n.name)||\"\")},isDisabled:!g||0===m.length,options:m,labelKey:\"name\",selectedOption:v,value:(null==v?void 0:v.name)||\"\",defaultLabel:m.length>0?\"Select Hybrid\":\"No hybrids available\"}),function(e){var t,n=Number(e.totalSales),r=Number.isFinite(n)&&n>0,o=\"other\"===(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase()),a=Array.isArray(e.hybridList)&&e.hybridList.length>0,i=e.selectedHybridName||e.majorHybridName||e.hybridName||\"\";return!o&&!!r&&!!a&&c&&\"\"===i.trim()}(e)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Hybrid name required\"))))}),o().createElement(\"tr\",{className:u.tableTotalRow},o().createElement(\"td\",null,\"Total Competitor Sales\"),o().createElement(\"td\",null,n),o().createElement(\"td\",null)),o().createElement(\"tr\",{className:u.tableTotalRow},o().createElement(\"td\",null,\"Market Potential\",o().createElement(\"br\",null),\" \",o().createElement(\"span\",{className:u.totalMarketSizeDesc},\"(Total Syngenta Sales + Total Competitor Sales)\")),o().createElement(\"td\",null,r?r.toFixed(2):0),o().createElement(\"td\",null)))))};const sr=function(e){var t=e.data,n=e.approveRejectFlag,r=ft(),a=(0,g.Bd)().t,i=Array.isArray(t)&&t.length>0;return o().createElement(s.A,null,o().createElement(\"div\",{className:r.cardHeader},o().createElement(\"h2\",{className:r.cardTitle},a(\"APPROVAL_DETAILS_HISTORY\")||\"Approval Details History\")),!i&&o().createElement(s.A,{className:r.tableContainer},o().createElement(\"table\",{className:r.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null,a(\"ACTION_TAKEN_BY\")||\"Action Taken By\"),o().createElement(\"th\",null,a(\"ACTION\")||\"Action\"),o().createElement(\"th\",null,a(\"DATE\")||\"Date\"),o().createElement(\"th\",null,a(\"TIME\")||\"Time\"),o().createElement(\"th\",null,a(\"COMMENTS\")||\"Comments\"))),o().createElement(\"tbody\",null,o().createElement(\"tr\",null,o().createElement(\"td\",{colSpan:5,style:{textAlign:\"center\"}},\"-\"))))),i&&o().createElement(s.A,{className:r.tableContainer},o().createElement(\"table\",{className:r.table},o().createElement(\"thead\",null,o().createElement(\"tr\",null,o().createElement(\"th\",null,a(\"ACTION_TAKEN_BY\")||\"Action Taken By\"),o().createElement(\"th\",null,a(\"ACTION\")||\"Action\"),o().createElement(\"th\",null,a(\"DATE\")||\"Date\"),o().createElement(\"th\",null,a(\"TIME\")||\"Time\"),o().createElement(\"th\",null,a(\"COMMENTS\")||\"Comments\"))),o().createElement(\"tbody\",null,t.map(function(e,t){return o().createElement(\"tr\",{key:\"\".concat((null==e?void 0:e.approvedBy)||\"history\",\"-\").concat(t)},o().createElement(\"td\",null,(null==e?void 0:e.approvedBy)||\"-\"),o().createElement(\"td\",null,function(e){return\"APPROVED\"===(null==e?void 0:e.geoStatus)?\"Approved\":\"REJECTED\"===(null==e?void 0:e.geoStatus)||\"REJECT\"===n?\"Rejected\":\"Approved\"}(e)),o().createElement(\"td\",null,(null==e?void 0:e.approvalDate)||\"-\"),o().createElement(\"td\",null,(null==e?void 0:e.approvalTime)||\"-\"),o().createElement(\"td\",null,(null==e?void 0:e.comments)||\"-\"))})))))};var ur=n(62809),cr=n(79801),dr=n(11641),pr=n(3561),fr=n(39781),gr=(0,rt.A)({modalContainer:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:475,backgroundColor:\"#FFFFFF\",borderRadius:12,padding:R.w.spacing(3),outline:\"none\",boxShadow:\"0px 8px 24px rgba(0,0,0,0.15)\",display:\"flex\",flexDirection:\"column\",gap:R.w.spacing(2)},header:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},title:{fontSize:24,fontWeight:\"600 !important\",lineHeight:\"24px\",letterSpacing:\"0px\",color:\"#101828\"},description:{fontWeight:\"500 !important\",fontSize:14,color:R.w.palette.text.secondary,lineHeight:\"20px\"},commentSection:{display:\"flex\",flexDirection:\"column\",gap:R.w.spacing(1)},commentLabel:{fontWeight:\"600 !important\",fontSize:14,color:R.w.palette.text.primary},textArea:{width:\"100%\",resize:\"none\",borderRadius:8,padding:R.w.spacing(1.5),fontSize:14,border:\"1px solid #D0D5DD\",fontFamily:\"inherit\",\"&::placeholder\":{color:\"#98A2B3\"},\"&:focus\":{outline:\"none\",borderColor:R.w.palette.primary.main}},footer:{marginTop:R.w.spacing(2)},cancel:{width:\"207px !important\"},approve:{width:\"207px !important\"}}),hr=(0,r.memo)(function(e){var t=e.onRequestClose,n=void 0===t?function(){}:t,r=e.isVisible,a=e.onSave,i=e.approveRejectFlag,l=e.comment,c=e.setcomment,d=gr(),p=\"REJECT\"===i,g=!l||0===l.trim().length,h=p&&g;return o().createElement(cr.A,{open:r,onClose:n},o().createElement(s.A,{className:d.modalContainer},o().createElement(s.A,{className:d.header},o().createElement(D.A,{variant:\"h6\",className:d.title},\"APPROVE\"===i?\"Confirm Approval?\":\"Confirm Rejection?\"),o().createElement(dr.A,{onClick:n,className:\"closeIcon\"},o().createElement(fr.A,null))),o().createElement(D.A,{className:d.description},\"APPROVE\"===i?\"Are you sure you want to approve this?\":\"Are you sure you want to reject this?\",o().createElement(\"br\",null),\"Please review all details before \",\"APPROVE\"===i?\"approval\":\"rejection\",\".\"),o().createElement(s.A,{className:d.commentSection},o().createElement(D.A,{className:d.commentLabel},(0,f.t)(\"COMMENT\"),p&&o().createElement(\"span\",{style:{color:\"#d32f2f\"}},\" *\")),o().createElement(pr.A,{minRows:4,placeholder:\"\".concat((0,f.t)(\"START_HERE\")),className:d.textArea,value:l,onChange:function(e){return null==c?void 0:c(e.target.value)}}),p&&g&&o().createElement(D.A,{sx:{color:\"#d32f2f\",fontSize:\"0.75rem\",marginTop:\"0.5rem\"}},\"Comment is required for Rejection\")),o().createElement(u.A,{direction:\"row\",spacing:2,className:d.footer},o().createElement(m.A,{variant:\"outlined\",buttonName:(0,f.t)(\"CANCEL\"),onButtonClick:n,fullwidth:!0,color:\"secondary\",className:d.cancel}),o().createElement(m.A,{variant:\"contained\",buttonName:\"APPROVE\"===i?(0,f.t)(\"APPROVE\"):(0,f.t)(\"REJECT\"),onButtonClick:a,fullwidth:!0,color:\"primary\",className:d.approve,disabled:h}))))});function mr(e){return mr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},mr(e)}function vr(e){return function(e){if(Array.isArray(e))return Or(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Tr(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ar(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return yr(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(yr(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,yr(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,yr(d,\"constructor\",u),yr(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",yr(u,o,\"GeneratorFunction\"),yr(d),yr(d,o,\"Generator\"),yr(d,r,function(){return this}),yr(d,\"toString\",function(){return\"[object Generator]\"}),(Ar=function(){return{w:a,m:p}})()}function yr(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}yr=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){yr(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},yr(e,t,n,r)}function Er(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function br(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Er(a,r,o,i,l,\"next\",e)}function l(e){Er(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach(function(t){wr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wr(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=mr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==mr(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Tr(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Tr(e,t){if(e){if(\"string\"==typeof e)return Or(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(e,t):void 0}}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Dr=function(){var e,t,n,i,l,s,u,c=ft(),d=Sr((0,r.useState)(!1),2),f=d[0],g=d[1],h=Sr((0,r.useState)(!1),2),v=h[0],A=h[1],y=(0,r.useContext)(O.v),E=y.BackOfficeProps,b=E.globalStore.User,C=E.baseurl,w=y.triggerShowLoader,S=y.triggerToastMsg,T=(0,a.zy)(),R=(0,p.Rk)(b),N=R.isTM,L=R.isBM,P=(0,a.Zp)(),M=new URLSearchParams(T.search),x=M.get(\"tmHqId\"),I=M.get(\"mlpId\"),k=M.get(\"talukaId\"),B=M.get(\"mlp_status\"),F=M.get(\"memberName\"),j=M.get(\"memberId\"),H=(null==b||null===(e=b.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.role_code)||\"CA\",Y=Sr((0,r.useState)(!1),2),G=Y[0],z=Y[1],V=Sr((0,r.useState)([]),2),q=V[0],W=V[1],Q=Sr((0,r.useState)(!1),2),K=Q[0],$=Q[1],X=Sr((0,r.useState)(\"\"),2),J=X[0],Z=X[1],ee=Sr((0,r.useState)(!1),2),te=(ee[0],ee[1]),ne=function(){var e=Gn((0,r.useState)({previousYearValueInMT:0,previousYearValueInHectare:0,currentYearValueInMT:\"\",currentYearValueInHectare:0,nextYearValueInMT:\"\",nextYearValueInHectare:0}),2),t=e[0],n=e[1],o=Gn((0,r.useState)([]),2),a=o[0],i=o[1],l=Gn((0,r.useState)(\"\"),2),s=l[0],u=l[1],c=Gn((0,r.useState)(\"\"),2),d=c[0],f=c[1],g=Gn((0,r.useState)(!1),2),h=g[0],m=g[1],v=Gn((0,r.useState)([]),2),A=v[0],y=v[1],E=(0,r.useRef)([]),b=Gn((0,r.useState)(null),2),C=b[0],w=b[1],S=Gn((0,r.useState)(null),2),T=S[0],O=S[1],D=Gn((0,r.useState)([{value:\"0\",label:\"0\"},{value:\"6\",label:\"6\"},{value:\"12\",label:\"12\"}]),1)[0],R=Gn((0,r.useState)([{value:\"0\",label:\"0\"},{value:\"6\",label:\"6\"},{value:\"12\",label:\"12\"}]),1)[0],N=null==A?void 0:A.filter(function(e){return e.checked}),L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(null==t||!t.length)return e;var n=new Map(t.map(function(e){return[(t=e,String((null==t?void 0:t.distributorCode)||(null==t?void 0:t.value)||\"\")),e];var t}));return e.map(function(e){var t=n.get(String(e.value));return t?Un(Un({},e),{},{checked:!0,salesValue:Number((null==t?void 0:t.salesValue)||0)}):e})},P=Gn((0,r.useState)([]),2),M=P[0],x=P[1],I=Gn((0,r.useState)([]),2),k=I[0],B=I[1],F=Gn((0,r.useState)([]),2),j=F[0],H=F[1],Y=Gn((0,r.useState)({totalMarketPotential:\"\",totalSyngentaSales:0,totalManMonths:\"\",syngentaMarketShare:\"\",blockCategory:\"\"}),2),G=Y[0],z=Y[1],V=Gn((0,r.useState)({value:0,volume:0,totalRetailers:0}),2),q=V[0],W=V[1],Q=Gn((0,r.useState)(\"\"),2),K=Q[0],$=Q[1],X=function(e){if(!e)return\"\";var t=U()(e,\"YYYY-MM-DD\",!0);if(t.isValid())return t.format(\"DD MMM YYYY\");var n=U().parseZone(e,U().ISO_8601,!0);return n.isValid()?n.format(\"DD MMM YYYY\"):\"\"},J=function(e){if(!e)return\"\";var t=U()(e,[\"HH:mm:ss.SSSSSSSS\",\"HH:mm:ss\",\"HH:mm\"],!0);if(t.isValid())return t.format(\"hh:mm A\");var n=U().parseZone(e,U().ISO_8601,!0);return n.isValid()?n.format(\"hh:mm A\"):\"\"},Z=function(e,t){return{approvedBy:(null==e?void 0:e.approvedBy)||(null==e?void 0:e.rejectedBy)||(null==e?void 0:e.actionBy)||\"\",approvalDate:X((null==e?void 0:e.approvalDate)||(null==e?void 0:e.approvedDate)||(null==e?void 0:e.rejectionDate)||(null==e?void 0:e.rejectedDate)),approvalTime:J((null==e?void 0:e.approvalTime)||(null==e?void 0:e.approvedTime)||(null==e?void 0:e.rejectionTime)||(null==e?void 0:e.rejectedTime)),comments:(null==e?void 0:e.comment)||(null==e?void 0:e.comments)||\"\",geoStatus:(null==e?void 0:e.geoStatus)||t||\"\"}},ee=function(e){if(!Array.isArray(e))return e;var t=e.filter(function(e){var t;return\"other\"===(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase())}),n=e.filter(function(e){var t;return\"other\"!==(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase())});return n.sort(function(e,t){var n,r;return(null!==(n=e.competitorName)&&void 0!==n?n:\"\").localeCompare(null!==(r=t.competitorName)&&void 0!==r?r:\"\")}),[].concat(jn(n),jn(t))},te=function(e){var t,n,r,o,a,i,l,s=null!==(t=null!==(n=null!==(r=null!==(o=null==e?void 0:e.selectedHybridName)&&void 0!==o?o:null==e||null===(a=e.selectedHybrid)||void 0===a?void 0:a.name)&&void 0!==r?r:null==e?void 0:e.majorHybridName)&&void 0!==n?n:null==e?void 0:e.hybridName)&&void 0!==t?t:\"\";return Un(Un({},e),{},{totalSales:null!==(i=null!==(l=null==e?void 0:e.totalSales)&&void 0!==l?l:null==e?void 0:e.totalSalesInMT)&&void 0!==i?i:null,selectedHybridName:s,hybridName:s,majorHybridName:s,hybridList:Array.isArray(null==e?void 0:e.hybridList)?e.hybridList:null})},ne=function(e){if(!Array.isArray(e))return e;var t=e.filter(function(e){var t;return\"other\"===(null===(t=e.hybridName)||void 0===t?void 0:t.toLowerCase())}),n=e.filter(function(e){var t;return\"other\"!==(null===(t=e.hybridName)||void 0===t?void 0:t.toLowerCase())});return n.sort(function(e,t){var n,r;return(null!==(n=e.hybridName)&&void 0!==n?n:\"\").localeCompare(null!==(r=t.hybridName)&&void 0!==r?r:\"\")}),[].concat(jn(n),jn(t))},re=function(e){return Array.isArray(e)?jn(e).sort(function(e,t){var n,r,o,a,i=(null!==(n=e.mdoHqName)&&void 0!==n?n:\"\").localeCompare(null!==(r=t.mdoHqName)&&void 0!==r?r:\"\");return 0!==i?i:(null!==(o=e.mdoName)&&void 0!==o?o:\"\").localeCompare(null!==(a=t.mdoName)&&void 0!==a?a:\"\")}):e};return{marketPotential:t,approvalRejectDetailsData:a,geoStatus:d,isApprovalEnabled:h,mdoDetails:M,hybridSales:k,distributorList:A,currentYearManMonthsList:D,nextYearManMonthsList:R,totalMarketShare:G,competitorSales:j,retailerData:q,categoryValues:C,selectedDistributors:N,cropId:K,hectareValue:T,approveRejectFlag:s,setApproveRejectFlag:u,handleMarketPotentialChange:function(e,t){n(function(n){return Un(Un({},n),{},Yn({},e,t))})},setApprovalRejectDetailsData:i,handleMDOChange:function(e,t,n){x(function(r){var o=jn(r);return o[e]=Un(Un({},o[e]),{},Yn({},t,null==n?void 0:n.value)),re(o)})},handleHybridSaleChange:function(e,t,n){B(function(r){var o=jn(r);if(o[e]=Un(Un({},o[e]),{},Yn({},t,n)),\"currentYearActualNetSales\"===t&&\"number\"==typeof n){var a=Number(o[e].previousYearActualNetSales);o[e].growthOverLastYear=Number.isFinite(a)&&0!==a?n/a:0}return ne(o)})},handleCompetitorChange:function(e,t,n){H(function(r){var o,a=jn(r);o=\"totalSalesInMT\"===t?\"totalSales\":\"selectedHybridName\"===t||\"hybridName\"===t||\"majorHybridName\"===t?\"selectedHybridName\":t;var i=Un(Un({},a[e]),{},Yn({},o,n));\"selectedHybridName\"===o&&(i.hybridName=n,i.majorHybridName=n);var l=Number(n),s=!Number.isFinite(l)||0===l;return\"totalSales\"===o&&s&&(i.selectedHybridName=\"\",i.hybridName=\"\",i.majorHybridName=\"\"),a[e]=i,ee(a)})},handleDistributorSaleChange:function(e,t){y(function(n){var r=jn(n),o=n.findIndex(function(t){return t.checked&&N.indexOf(t)===e});return-1!==o&&(r[o]=Un(Un({},r[o]),{},{salesValue:t})),r})},handleOnSelectDistributor:function(e){var t,n=new Set(null==e||null===(t=e.filter(function(e){return e.checked}))||void 0===t?void 0:t.map(function(e){return null==e?void 0:e.value})),r=function(e){return Un(Un({},e),{},{checked:n.has(null==e?void 0:e.value)})};y(function(e){return null==e?void 0:e.map(r)})},getSelectedOptions:function(){var e,t=null==A||null===(e=A.filter(function(e){return e.checked}))||void 0===e?void 0:e.length;return 0===t?[]:[\"\".concat(t,\" Selected\")]},handlePreventKeyDown:function(e){\"ArrowUp\"!==e.key&&\"ArrowDown\"!==e.key||e.preventDefault()},getTalukaDetails:function(e,t,r,o){(function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.GET_TALUKA_DETAILS,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),tm_hq_id:r.tm_hq_id,taluka_id:r.taluka_id,mlp_id:r.mlp_id,\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=yt({},r),(0,p.AT)(\"get\",o,!0)})(e,t,r,o).then(function(e){var t,r=function(e){return Array.isArray(null==e?void 0:e.approverDetails)?e.approverDetails.map(function(t){return Z(t,null==e?void 0:e.geoStatus)}):null!=e&&e.approverDetails?[Z(e.approverDetails,null==e?void 0:e.geoStatus)]:null!=e&&e.approvedBy||null!=e&&e.comment||null!=e&&e.geoStatus?[Z(e,null==e?void 0:e.geoStatus)]:[]}(e),o=r.at(-1);f(null!==(t=null==e?void 0:e.geoStatus)&&void 0!==t?t:\"\"),m(Boolean(null==e?void 0:e.isApprovalEnabled)),n(e.marketPotentials);var a=(null==o?void 0:o.geoStatus)||(null==e?void 0:e.geoStatus),l=\"\";\"APPROVED\"===a?l=\"APPROVE\":\"REJECTED\"===a&&(l=\"REJECT\"),i(r),u(l),x(re(e.mdoDetails)),B(ne(e.hybridWiseSalesDetails)),z(e.totalMarketShare);var s=Array.isArray(null==e?void 0:e.competitors)?e.competitors.map(te):[];H(ee(s)),W(e.retailerSalesData),$(e.cropId);var c=(null==e?void 0:e.distributorSales)||[];E.current=c,y(function(e){return L(e,c)})}).catch(function(e){console.error(\"Error fetching taluka details:\",e)})},getTalukaDistributors:function(e,t,n,r){(function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.GET_TALUKA_DISTRIBUTORS,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),tmHqId:r.tm_hq_id,talukaId:r.taluka_id,buId:\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},o.payLoad=yt({},r),(0,p.AT)(\"get\",o,!0)})(e,t,n,r).then(function(e){var t;if(null!=e&&null!==(t=e.mlpTalukaDistributorDtoList)&&void 0!==t&&t.length){var n,r=null==e||null===(n=e.mlpTalukaDistributorDtoList)||void 0===n?void 0:n.map(function(e){return{value:e.distributorCode,label:e.distributorName,salesValue:0,checked:!1,distributorCode:e.distributorCode,distributorName:e.distributorName,distributorUUID:e.distributorUUID,distributorHqUUID:e.distributorHqUUID}});y(L(r,E.current))}else y([])}).catch(function(e){console.error(\"Error fetching taluka distributors:\",e)})},getMLPCategoryValues:function(e,t,n,r){(function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.GET_MLP_CATEGORY_VALUES.replace(\"__MLP_ID__\",r.mlpId),o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),mlpId:r.mlp_id,buId:\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},(0,p.AT)(\"get\",o,!0)})(e,t,n,r).then(function(e){w(e)}).catch(function(e){console.error(\"Error fetching MLP category values:\",e)})},getValueInHectareByCropId:function(e,t,n,r,o){(function(e,t,n,r){var o={};return o.domain=t,o.endPoint=_.p.GET_MLP_SEED_RATE,o.triggerLoader=n,o.payLoad=yt({},r),o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),buId:\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken)},(0,p.AT)(\"get\",o,!0)})(e,t,n,o).then(function(e){var t;O(null==e||null===(t=e[0])||void 0===t?void 0:t.valueInHectare)}).catch(function(e){console.error(\"Error fetching value in hectare by crop ID:\",e),r({message:null==e?void 0:e.message,type:\"error\"})})}}}(),re=ne.marketPotential,oe=ne.mdoDetails,ae=ne.hybridSales,ie=ne.competitorSales,le=ne.distributorList,se=ne.categoryValues,ue=ne.currentYearManMonthsList,ce=ne.nextYearManMonthsList,de=ne.retailerData,pe=ne.selectedDistributors,fe=(ne.totalMarketShare,ne.isApprovalEnabled),ge=ne.hectareValue,he=ne.cropId,me=ne.geoStatus,ve=ne.approvalRejectDetailsData,Ae=ne.approveRejectFlag,ye=ne.setApproveRejectFlag,Ee=ne.handleMarketPotentialChange,be=ne.handleMDOChange,_e=ne.handleHybridSaleChange,Ce=ne.handleCompetitorChange,we=ne.handleDistributorSaleChange,Se=ne.handleOnSelectDistributor,Te=ne.getSelectedOptions,Oe=ne.handlePreventKeyDown,De=ne.getTalukaDetails,Re=ne.getTalukaDistributors,Ne=ne.getMLPCategoryValues,Le=ne.getValueInHectareByCropId,Pe=ne.setApprovalRejectDetailsData,Me=function(e){return{lastYear:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.lastYearManMonths)},0),currentYear:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.currentYearManMonths)},0),nextYear:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.nextYearManMonthsProposal)},0)}}(oe),xe=function(e){return{previousYear:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.previousYearActualNetSales)},0),currentYearPlan:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.currentYearSalesPlan)},0),currentYearActual:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.currentYearActualNetSales)},0),nextYear:null==e?void 0:e.reduce(function(e,t){return e+Wn(t.nextYearSalesPlan)},0)}}(ae),Ie=Array.isArray(oe)&&oe.length>0,ke=\"PENDING\"===me,Be=function(e,t,n){var r=Wn(e),o=null==t?void 0:t.reduce(function(e,t){return e+Wn(t.totalSales)},0);return{totalCompetitorSales:o,totalMarketSize:r+o,syngentaMarketShare:Wn(n)>0?(r/Wn(n)*100).toFixed(0):\"0\"}}(xe.currentYearActual,ie,null==re?void 0:re.currentYearValueInMT),Fe=Be.totalCompetitorSales,je=Be.totalMarketSize,He=Be.syngentaMarketShare,Ue=fe&&\"DONE\"===me,Ye=!((\"PENDING\"===B&&(N||L)||\"BM_APPROVAL_PENDING\"===B&&L)&&\"APPROVED\"!==me);(0,r.useEffect)(function(){var e,t,n;De(b,C,w,{tm_hq_id:x,taluka_id:k,mlp_id:I,bu_id:(null==b||null===(e=b.selectedBusinessUnit)||void 0===e?void 0:e.bu_id)||0,role_id:(null==b||null===(t=b.selectedBusinessUnit)||void 0===t||null===(t=t.userRoleControls)||void 0===t?void 0:t.roleId)||0}),Re(b,C,w,{tmHqId:x,talukaId:k,buId:(null==b||null===(n=b.selectedBusinessUnit)||void 0===n?void 0:n.bu_id)||0}),Ne(b,C,w,{mlpId:I})},[]),(0,r.useEffect)(function(){Array.isArray(ve)&&ve.length>0?A(!0):A(!1)},[ve]),(0,r.useEffect)(function(){var e;he&&Le(b,C,w,S,{cropId:he,buId:(null==b||null===(e=b.selectedBusinessUnit)||void 0===e?void 0:e.bu_id)||0})},[he]),(0,r.useEffect)(function(){null!=re&&re.currentYearValueInMT&&je&&re.currentYearValueInMT!=je?$(!0):$(!1)},[re,je]);var Ge=function(){var e=new URLSearchParams({memberId:null!=j?j:\"\",tmHqId:null!=x?x:\"\",tabname:\"mlpfulldetails\",pageName:\"mlp-list\",memberName:null!=F?F:\"\"});P(\"\".concat(T.pathname,\"?\").concat(e.toString()))},ze=function(){var e=[];(null==re||!re.currentYearValueInMT||(null==re?void 0:re.currentYearValueInMT)<=0)&&e.push(\"Market Potential for current year is required\"),(null==re||!re.nextYearValueInMT||(null==re?void 0:re.nextYearValueInMT)<=0)&&e.push(\"Market Potential for next year is required\"),null!=re&&re.currentYearValueInMT&&je&&re.currentYearValueInMT!=je?(e.push(\"Market Potential (\".concat(null==re?void 0:re.currentYearValueInMT,\" MT) must equal Total Market Size (\").concat(je,\" MT)\")),$(!0)):$(!1);var t=oe.every(function(e){return 0==e.currentYearManMonths||e.currentYearManMonths&&e.currentYearManMonths>=0}),n=oe.every(function(e){return 0==e.nextYearManMonthsProposal||e.nextYearManMonthsProposal&&e.nextYearManMonthsProposal>=0});t||e.push(\"All MDO details for current year must have valid values\"),n||e.push(\"All MDO details for next year must have valid values\");var r=function(e){var t=Number(e);return Number.isFinite(t)&&t>0},o=function(e){var t;return\"other\"===(null===(t=e.hybridName)||void 0===t?void 0:t.toLowerCase())},a=ae.some(function(e){var t;return!(null==(t=e.currentYearActualNetSales)||!(\"string\"==typeof t?\"\"!==t.trim():\"number\"==typeof t&&Number.isFinite(t))||function(e){var t=Number(e);return Number.isFinite(t)&&t>=0}(e.currentYearActualNetSales))}),i=ae.filter(function(e){return!o(e)}).some(function(e){return r(e.currentYearActualNetSales)}),l=ae.filter(function(e){return o(e)}),s=l.some(function(e){return!r(e.currentYearActualNetSales)});(a||!i||l.length>0&&s)&&e.push(\"Current year Actual Net sales is required\"),ie.every(function(e){var t,n=Number(e.totalSales),r=\"other\"===(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase()),o=void 0!==e.totalSales&&null!==e.totalSales&&\"\"!==e.totalSales&&!Number.isNaN(n)&&n>=0;if(r)return o&&n>0;var a=e.selectedHybridName||e.majorHybridName||e.hybridName||\"\",i=!!Array.isArray(e.hybridList)&&e.hybridList.length>0,l=0===n||!i||\"\"!==a.trim();return o&&l})||e.push(\"All Competitor Sale is required\"),0===(null==pe?void 0:pe.length)&&e.push(\"At least one distributor must be selected\");var u=pe.every(function(e){return e.salesValue&&e.salesValue>0});return(null==pe?void 0:pe.length)>0&&!u&&e.push(\"All selected distributors must have sales values entered\"),console.log(\"errors++\",e),{isValid:0===(null==e?void 0:e.length),errors:e}},Ve=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"DRAFT_SAVED\";return{tmHqId:x,tmId:(null==b||null===(e=b.UserDetails)||void 0===e?void 0:e.user_id)||0,mlpId:I,talukaId:k,geoStatus:t,marketPotentials:{previousYearValueInMT:re.previousYearValueInMT||0,previousYearValueInHectare:re.previousYearValueInHectare||0,currentYearValueInMT:re.currentYearValueInMT||0,currentYearValueInHectare:re.currentYearValueInHectare||0,nextYearValueInMT:re.nextYearValueInMT||0,nextYearValueInHectare:re.nextYearValueInHectare||0},mdoDetails:oe,hybridWiseSalesDetails:ae,competitors:ie.map(function(e){var t,n,r=\"other\"===(null===(t=e.competitorName)||void 0===t?void 0:t.toLowerCase()),o=e.selectedHybridName||e.majorHybridName||e.hybridName||\"\",a=Array.isArray(e.hybridList)?e.hybridList.find(function(e){return(null==e?void 0:e.name)===o}):void 0,i=!r&&a?{id:a.id,name:a.name}:{id:\"\",name:\"\"};return Cr(Cr({},e),{},{totalSalesInMT:null!==(n=e.totalSales)&&void 0!==n?n:0,majorHybridName:r?\"\":o,selectedHybridName:r?\"\":o,selectedHybrid:i})}),distributorSales:pe,retailerSalesData:{value:(null==de?void 0:de.value)||0,volume:(null==de?void 0:de.volume)||0,totalRetailers:(null==de?void 0:de.totalRetailers)||0},totalMarketShare:{totalMarketPotential:(null==re?void 0:re.currentYearValueInMT)||0,totalSyngentaSales:xe.currentYearActual||0,totalManMonths:Me.currentYear||0,syngentaMarketShare:He||0,blockCategory:$n(null==re?void 0:re.currentYearValueInMT,He,se)}}},qe=function(e){return\"DONE\"===e?\"DONE\":\"DRAFT_SAVED\"},We=function(){var e=br(Ar().m(function e(t){var n,r,o,a,i,l,s,u,c,d,p,f=arguments;return Ar().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=(n=f.length>1&&void 0!==f[1]?f[1]:{}).shouldNavigate,o=void 0===r||r,a=n.showSuccessToast,i=void 0===a||a,l=qe(t),z(!0),\"DONE\"!==l||Ie){e.n=1;break}return W([\"Please Assign MDO to Taluka.\"]),S({message:\"Please Assign MDO to Taluka.\",type:\"error\"}),e.a(2,!1);case 1:if((s=ze()).isValid){e.n=2;break}return W(s.errors),console.log(q),S({message:null==s||null===(u=s.errors)||void 0===u?void 0:u[0],type:\"error\"}),e.a(2,!1);case 2:return W([]),c=Ve(l),e.p=3,e.n=4,bt(b,C,w,c);case 4:return d=e.v,console.log(\"Save as draft response:\",d),te(!1),i&&S({message:d,type:\"success\"}),o&&Ge(),e.a(2,!0);case 5:return e.p=5,p=e.v,console.error(\"Error saving as draft:\",p),S({message:p,type:\"error\"}),e.a(2,!1)}},e,null,[[3,5]])}));return function(t){return e.apply(this,arguments)}}(),Qe=function(){var e=br(Ar().m(function e(){return Ar().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,We(\"DONE\");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Ke={CA:[{variant:\"outlined\",name:\"Cancel\",color:\"secondary\",onClick:Ge}],TM:[{variant:\"outlined\",name:\"Cancel\",color:\"secondary\",onClick:Ge}].concat(vr(Ye?[]:[{variant:\"outlined\",name:\"Save as Draft\",color:\"secondary\",onClick:function(){return We(\"DRAFT_SAVED\")}},{variant:\"contained\",name:\"Done\",color:\"primary\",onClick:Qe}])),BM:[{variant:\"outlined\",name:\"Cancel\",color:\"secondary\",onClick:Ge}].concat(vr(Ue?[{variant:\"outlined\",name:\"Reject\",color:\"secondary\",onClick:function(){ye(\"REJECT\"),g(!0)}},{variant:\"contained\",name:\"Approve\",color:\"secondary\",onClick:function(){ye(\"APPROVE\"),g(!0)}}]:[]))},$e=function(){var e=br(Ar().m(function e(){var t,n,r,o,a,i,l,s;return Ar().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,a=function(e){return e&&/^\\d+$/.test(e)?Number(e):e},\"APPROVE\"!==Ae){e.n=2;break}return e.n=1,We(\"DONE\",{shouldNavigate:!1,showSuccessToast:!1});case 1:if(e.v){e.n=2;break}return console.error(\"Save as draft failed, skipping approve/reject API call.\"),e.a(2);case 2:return e.n=3,_t(b,C,w,{mlpId:a(I),tmHqIds:x?[a(x)]:[],talukaId:a(k),geoStatus:\"APPROVE\"===Ae?\"APPROVED\":\"REJECTED\",comment:J});case 3:i=e.v,l={approvedBy:null==i?void 0:i.approvedBy,approvalDate:null===(t=U()(null==i?void 0:i.approvedDate))||void 0===t?void 0:t.format(\"DD MMM YYYY\"),approvalTime:null===(n=U()(null==i?void 0:i.approvalTime,\"HH:mm:ss.SSSSSSSS\"))||void 0===n?void 0:n.format(\"hh:mm A\"),comments:null==i?void 0:i.comment,geoStatus:null==i?void 0:i.geoStatus},Pe(function(e){return[].concat(vr(e),[l])}),A(!0),g(!1),De(b,C,w,{tm_hq_id:x,taluka_id:k,mlp_id:I,bu_id:(null==b||null===(r=b.selectedBusinessUnit)||void 0===r?void 0:r.bu_id)||0,role_id:(null==b||null===(o=b.selectedBusinessUnit)||void 0===o||null===(o=o.userRoleControls)||void 0===o?void 0:o.roleId)||0}),S({message:\"APPROVE\"===Ae?\"MLP approved successfully\":\"MLP rejected successfully\",type:\"success\"}),e.n=5;break;case 4:e.p=4,s=e.v,console.error(\"Error in confirmation flow:\",s),S({message:(null==s?void 0:s.message)||\"Failed to submit approve/reject\",type:\"error\"});case 5:return e.a(2)}},e,null,[[0,4]])}));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){var e=function(e){\"INPUT\"===e.target.tagName&&e.preventDefault()};return window.addEventListener(\"wheel\",e,{passive:!1}),function(){window.removeEventListener(\"wheel\",e)}},[]),(0,r.useEffect)(function(){var e=function(e){\"INPUT\"===e.target.tagName&&\"number\"===e.target.type&&e.preventDefault()};return window.addEventListener(\"wheel\",e,{passive:!1}),function(){window.removeEventListener(\"wheel\",e)}},[]),o().createElement(\"div\",{className:\"\".concat(c.container)},o().createElement(Zn,{isRequired:G},o().createElement(\"fieldset\",{disabled:Ye,style:{border:\"none\",padding:0,margin:0},className:Ye?c.disabledForm:\"\"},o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Market Potential\")),o().createElement(or,{handlePreventKeyDown:Oe,data:re,onChange:function(e,t){te(!0),Ee(e,t)},shouldEqualError:K,hectareValue:ge,showPlaceholderForZero:ke})),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"h2\",{className:c.cardTitle},\"MDO Details\"),!Ie&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Please Assign MDO to Taluka.\"),o().createElement(ar,{currentYearManMonthsList:ue,nextYearManMonthsList:ce,data:oe,totalManMonths:Me,onChange:function(e,t,n){te(!0),be(e,t,n)}})),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Syngenta Hybrid Wise Sales\")),o().createElement(ir,{handlePreventKeyDown:Oe,data:ae,totalSales:xe,onChange:function(e,t,n){te(!0),_e(e,t,n)},showPlaceholderForZero:ke})),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Competition Sales\")),o().createElement(lr,{data:ie,totalCompetitorSales:Fe,totalMarketSize:je,onChange:function(e,t,n){te(!0),Ce(e,t,n)},handlePreventKeyDown:Oe,showPlaceholderForZero:ke})),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Distributor\")),o().createElement(\"div\",{className:c.card},o().createElement(\"div\",{style:{display:\"flex\",gap:\"16px\",alignItems:\"center\"}},o().createElement(\"div\",{className:c.statLabel},\"Select one or more distributors & enter sales\"),o().createElement(\"div\",{style:{flex:.5}},o().createElement(ur.A,{key:\"distributor-select\",name:\"distributor\",showClearAll:!0,labelKey:\"label\",isDisabled:0==(null==le?void 0:le.length),options:le,onCheckboxChange:function(e){te(!0),Se(e)},selectedOptions:Te(),defaultLabel:\"Select\",isSortReq:!0}),0!=(null==le?void 0:le.length)&&G&&0===(null==pe?void 0:pe.length)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:1,display:\"block\"}},\"At least one distributor must be selected\"),0==(null==le?void 0:le.length)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:1,display:\"block\"}},\"Map a distributor in My Distributors to view the list.\"))),(null==pe?void 0:pe.length)>0&&o().createElement(\"hr\",null),o().createElement(\"div\",{className:c.grid3,style:{alignItems:\"end\"}},null==pe?void 0:pe.map(function(e,t){return o().createElement(\"div\",{key:null==e?void 0:e.value,className:c.distributorCard},o().createElement(\"div\",{className:c.distributorName},null==e?void 0:e.label,\" (\",null==e?void 0:e.value,\")\"),o().createElement(\"input\",{type:\"number\",placeholder:\"Enter Current Year Syngenta Sales for this Block (in MT)\",title:\"Enter Current Year Syngenta Sales for this Block (in MT)\",value:ke&&0===Number(null==e?void 0:e.salesValue)?\"\":(null==e?void 0:e.salesValue)||\"\",className:c.input,step:\"0.01\",max:\"9999999999.99\",min:\"0\",onChange:function(e){var n,r,o=null===(n=e.target)||void 0===n?void 0:n.value;(\"\"===o||/^\\d{0,10}(\\.\\d{0,2})?$/.test(o))&&function(e,t){te(!0),we(e,t)}(t,null!==(r=Number.parseFloat(o))&&void 0!==r?r:0)}}),G&&(!(null!=e&&e.salesValue)||(null==e?void 0:e.salesValue)<=0)&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},\"Sales value required\"))})))),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Retailer sales data in Block\")),o().createElement(\"div\",{className:c.card},o().createElement(\"div\",{className:c.retailerStats},o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:c.statLabel},\"Total no. of Retailers in Taluka\"),o().createElement(\"div\",{className:c.statValueVolume},null!==(t=null==de||null===(n=de.totalRetailers)||void 0===n?void 0:n.toLocaleString())&&void 0!==t?t:\"0\")),o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:c.statLabel},\"Volume\"),o().createElement(\"div\",{className:c.statValueVolume},null!==(i=null==de?void 0:de.volume)&&void 0!==i?i:\"0\",\" MT\"))))),o().createElement(\"div\",{className:c.sectionMargin},o().createElement(\"div\",{className:c.cardHeader},o().createElement(\"h2\",{className:c.cardTitle},\"Total Market Share\")),o().createElement(\"div\",{className:c.card},o().createElement(\"div\",{className:c.statsGrid},o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:\"\".concat(c.statLabel,\" \").concat(c.textGreen)},\"Total Market Potential\"),o().createElement(\"div\",{className:c.statValue},null!==(l=null==re?void 0:re.currentYearValueInMT)&&void 0!==l?l:0)),o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:\"\".concat(c.statLabel,\" \").concat(c.textGreen)},\"Total Syngenta Sales (in MT)\"),o().createElement(\"div\",{className:c.statValue},xe.currentYearActual?xe.currentYearActual.toFixed(2):0)),o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:\"\".concat(c.statLabel,\" \").concat(c.textGreen)},\"Total Man Months\"),o().createElement(\"div\",{className:c.statValue},null!==(s=Me.currentYear)&&void 0!==s?s:0)),o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:\"\".concat(c.statLabel,\" \").concat(c.textGreen)},\"Syngenta Market Share\"),o().createElement(\"div\",{className:c.statValue},null!=He?He:0,\"%\")),o().createElement(\"div\",{className:c.statItem},o().createElement(\"div\",{className:\"\".concat(c.statLabel,\" \").concat(c.textGreen)},\"Block Category\"),o().createElement(\"div\",{className:c.statValue},$n(null==re?void 0:re.currentYearValueInMT,He,se)))))),v&&o().createElement(\"div\",{className:\"\".concat(c.sectionMargin)},o().createElement(sr,{data:ve,approveRejectFlag:Ae})))),f&&o().createElement(hr,{isVisible:f,onSave:$e,onRequestClose:function(){g(!1),Z(\"\")},approveRejectFlag:Ae,comment:J,setcomment:Z}),o().createElement(\"div\",{className:c.buttonGroup},null===(u=Ke[H])||void 0===u?void 0:u.map(function(e){return o().createElement(m.A,{key:e.name,variant:e.variant,buttonName:e.name,color:e.color,fullwidth:!1,onButtonClick:e.onClick})})))},Rr=function(e){var t,n=e.onMemberSelect,i=(0,r.useContext)(O.v).BackOfficeProps.globalStore.User,l=(0,a.zy)(),s=new URLSearchParams(l.search),u=null!==(t=null==s?void 0:s.get(\"pageName\"))&&void 0!==t?t:\"\",c=(0,p.Rk)(i),d=c.isBM,f=c.isCountryAdmin;return o().createElement(a.BV,null,o().createElement(a.qh,{index:!0,element:\"approvalPage\"===u?o().createElement(Dr,null):\"mlp-list\"===u?o().createElement(Bn,null):d||f?o().createElement(Fe,{onMemberSelect:n}):o().createElement(Bn,null)}))};var Nr=n(21770),Lr=n(52695);const Pr=function(){return o().createElement(Nr.A,{bulkUploadModuleTypes:[Lr.H.MICRO_LEVEL_PLANNING],tableHeaders:h.xd})};function Mr(e){return Mr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Mr(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach(function(t){kr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kr(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Mr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Mr(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Fr(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Fr(e,t){if(e){if(\"string\"==typeof e)return jr(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,t):void 0}}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Hr=function(){var e,t,n,g,h,m=(0,r.useContext)(O.v).BackOfficeProps.globalStore.User,v=(0,p.Rk)(m),A=(v.isTM,v.isBM),y=(v.isDML,v.isCountryAdmin),E=(0,a.zy)(),b=Br((0,r.useState)({tablist:[],currentTabs:\"\"}),2),_=b[0],C=b[1],w={id:3,tabName:(0,f.t)(\"MY_UPLOADS\"),path:i.fp.Uploads_ErrorLog,component:o().createElement(Pr,null),queryParam:{tabname:i.fp.Uploads_ErrorLog}},S=Br((0,r.useState)(null),2),T=S[0],D=S[1],R=(0,r.useMemo)(function(){return new URLSearchParams(E.search)},[E.search]),N=null!==(e=R.get(\"pageName\"))&&void 0!==e?e:\"\",L=null!==(t=R.get(\"memberId\"))&&void 0!==t?t:\"\",P=null!==(n=R.get(\"memberName\"))&&void 0!==n?n:\"\",M=null!==(g=R.get(\"tmHqId\"))&&void 0!==g?g:\"\",x=null!==(h=R.get(\"talukaName\"))&&void 0!==h?h:\"\",I=P||T,k=(0,r.useMemo)(function(){var e=new URLSearchParams({tabname:i.fp.Mlp_FullDetails,pageName:\"mlp-list\"});return L&&e.set(\"memberId\",L),M&&e.set(\"tmHqId\",M),I&&e.set(\"memberName\",I),A?\"\".concat(i.fp.Mlp,\"?\").concat(e.toString()):\"\".concat(i.fp.Mlp,\"/\").concat(i.fp.Mlp_FullDetails,\"?\").concat(e.toString())},[L,M,I]),B=(0,r.useMemo)(function(){var e=[{name:i.F_.Mlp,path:i.fp.Mlp}];return\"mlp-list\"===N&&(y||A)&&I&&e.push({name:I,path:\"\"}),\"approvalPage\"===N&&((y||A)&&I&&e.push({name:I,path:k}),x&&e.push({name:x,path:\"\"})),e},[N,y,A,I,x,k]),F=(0,r.useCallback)(function(e){D(e)},[]),j=(0,r.useMemo)(function(){return o().createElement(Rr,{onMemberSelect:F})},[F]),H=(0,r.useCallback)(function(e,t){var n,r,o=null===(n=e.split(\"/\").filter(Boolean).at(-1))||void 0===n?void 0:n.toLowerCase(),a=t.find(function(e){var t;return(null==e||null===(t=e.path)||void 0===t?void 0:t.toLowerCase())===o});return(null==a?void 0:a.path)||(null===(r=t[0])||void 0===r?void 0:r.path)||\"\"},[]),U=(0,r.useCallback)(function(){var e,t=[{id:1,tabName:\"\".concat((0,f.t)(\"MODULE_CONFIG\")),path:\"module_config\",component:o().createElement(te,null),queryParam:{tabname:\"MODULE_CONFIG\"}},{id:2,tabName:\"\".concat((0,f.t)(\"FULL_DETAILS\")),path:i.fp.Mlp_FullDetails,component:j,queryParam:{tabname:i.fp.Mlp_FullDetails}}].concat(function(e){if(Array.isArray(e))return jr(e)}(e=y?[w]:[])||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||Fr(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),n=H(E.pathname,t);C({tablist:t,currentTabs:n})},[j,E.pathname,H]);(0,r.useEffect)(function(){U()},[U]),(0,r.useEffect)(function(){if(_.tablist.length>0){var e=H(E.pathname,_.tablist);e!==_.currentTabs&&C(function(t){return Ir(Ir({},t),{},{currentTabs:e})})}},[E.pathname,_.tablist,H]);var Y=(0,r.useCallback)(function(e){C(function(t){return Ir(Ir({},t),{},{currentTabs:e})})},[]),G=(0,r.useCallback)(function(){var e=_.currentTabs,t=\"\".concat(e,\"/?\").concat((0,p.Nr)({tabname:e}));return o().createElement(a.BV,null,o().createElement(a.qh,{index:!0,element:o().createElement(a.C5,{to:t,replace:!0})}),_.tablist.map(function(e){return o().createElement(a.qh,{key:e.id,path:e.path,element:e.component})}))},[_.tablist,_.currentTabs]);return o().createElement(l.H,null,o().createElement(s.A,null,o().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(c.A,{routePathName:B})),y&&o().createElement(d.A,{tabStateProps:_,handleTabChange:Y,isParamsReq:!0})),y&&_.tablist.length>0&&G(),o().createElement(Rr,{onMemberSelect:F}))};n(60739),n(25843),n(68156);var Ur=n(15941),Yr=n(27776),Gr=(n(69085),n(76031),n(82022)),zr=n(51545),Vr=(0,oe.Ay)(zr.A)(function(){return{width:\"100%\",\"& .sectionContainer\":{width:\"100%\",padding:20,borderRadius:12,border:\"1px solid #cfd3db\",backgroundColor:\"#ffffff\"},\"& .title\":{fontSize:16,fontWeight:600,lineHeight:\"20px\",fontFamily:\"NotoSans-SemiBold\"},\"& .rightLabel\":{fontSize:14,fontWeight:600,lineHeight:\"20px\",fontFamily:\"NotoSans-SemiBold\"},\"& .rightLabelBox\":{padding:\"8px 12px\",backgroundColor:\"#EFF6FF\",borderRadius:\"8px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:4},\"&  .MuiInputBase-root.MuiOutlinedInput-root\":{width:\"100% \",backgroundColor:\"\".concat(R.w.palette.secondary.main)},\"& .MuiTextField-root\":{width:\"100%\"},\"& .icon\":{width:36,height:36},\"& .inputField\":{color:\"#14151C\",fontSize:\"14px\",padding:\"10px\",fontFamily:\"NotoSans-Regular\",border:\"1px solid #C2C7D0\",borderRadius:\"4px\",width:\"100% \",height:40,backgroundColor:\"\".concat(R.w.palette.secondary.main),\"&:focus-visible\":{outline:\"none\"},\"&.disabledInput\":{opacity:\"0.5\",cursor:\"not-allowed\"},\"&:disabled\":{backgroundColor:\"#F5F5F5 !important\",color:\"#9E9E9E !important\",borderColor:\"#E0E0E0 !important\",cursor:\"not-allowed\",opacity:1}},\"& .chipHeader\":{fontSize:12,fontWeight:700,lineHeight:\"20px\",fontFamily:\"NotoSans-Bold\"},\"& .MuiInputBase-root.Mui-disabled\":{backgroundColor:\"#F5F5F5\",cursor:\"not-allowed\"},\"& .MuiInputBase-input.Mui-disabled\":{WebkitTextFillColor:\"#9E9E9E\",color:\"#9E9E9E\",cursor:\"not-allowed\"},\"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline\":{borderColor:\"#E0E0E0\"},\"& .MuiInputLabel-root.Mui-disabled\":{color:\"#BDBDBD\"},\"& .MuiSelect-icon.Mui-disabled\":{color:\"#BDBDBD\"},\"& .MuiAutocomplete-root .MuiInputBase-root.Mui-disabled\":{backgroundColor:\"#F5F5F5\"},\"& .MuiAutocomplete-endAdornment .MuiIconButton-root.Mui-disabled\":{color:\"#BDBDBD\"},\"& .round-badge\":{width:\"30px\",height:\"30px\",textAlign:\"center\",borderRadius:\"50px\",padding:\"3px\",fontWeight:\"500\",fontSize:\"14px\",color:R.w.palette.grey[400],backgroundColor:\"#DFFBE8\"},\"& .MuiAutocomplete-popupIndicator.Mui-disabled\":{color:\"#BDBDBD\"},\"& .MuiInputAdornment-root .MuiIconButton-root.Mui-disabled\":{color:\"#BDBDBD\"},\"& .MuiInputBase-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline\":{borderColor:\"#E0E0E0\"}}});function qr(e){return qr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},qr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach(function(t){Kr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kr(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=qr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=qr(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==qr(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $r=function(e){var t=e.src,n=e.alt,r=e.height,a=void 0===r?\"36px\":r,i=e.width,l=void 0===i?\"36px\":i,u=e.style,c=void 0===u?{}:u,d=e.onClick;return o().createElement(s.A,{onClick:d,sx:{cursor:d?\"pointer\":\"default\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"}},o().createElement(\"img\",{height:a,width:l,alt:n,src:t,style:Qr({display:\"block\"},c)}))},Xr=function(e){var t=e.icon,n=e.iconStyle,r=e.onIconClick,a=e.title;return o().createElement(u.A,{direction:\"row\",alignItems:\"center\",spacing:1},t&&o().createElement($r,{src:t,alt:a,style:n,onClick:r}),o().createElement(D.A,{className:\"title\",sx:{lineHeight:1}},a))},Jr=function(e){var t=e.rightLabel,n=e.rightIcon,r=null==t?void 0:t.trim();return r?o().createElement(u.A,{direction:\"row\",alignItems:\"center\",spacing:1},o().createElement(s.A,{className:\"rightLabelBox\"},n&&o().createElement($r,{src:n,alt:\"right icon\",height:\"20px\",width:\"20px\"}),o().createElement(D.A,{className:\"rightLabel\"},r))):null};const Zr=function(e){var t=e.children,n=e.title,r=e.cardStyle,a=void 0===r?{}:r,i=e.icon,l=e.iconStyle,c=void 0===l?{}:l,d=e.onIconClick,p=e.rightLabel,f=void 0===p?\"\":p,g=e.rightIcon,h=Boolean(g||(null==f?void 0:f.trim()));return o().createElement(Vr,null,o().createElement(s.A,{className:\"sectionContainer\",style:a},o().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(Xr,{icon:i,iconStyle:c,onIconClick:d,title:n}),h&&o().createElement(Jr,{rightLabel:f,rightIcon:g})),t))};var eo=n(76906),to=n(74353),no=n.n(to),ro=function(e){var t=e.label,n=e.children;return o().createElement(s.A,{width:\"100%\"},o().createElement(D.A,{variant:\"subtitle2\"},t),n)},oo={dropdown:function(e){var t=e.label,n=e.value,r=e.onChange,a=e.options,i=e.disabled;return o().createElement(ro,{label:t},o().createElement(Xe.A,{name:t,onChange:function(e,t){return r(t)},isDisabled:i||!(null!=a&&a.length),options:a,labelKey:\"label\",label:t,selectedOption:n,value:n,defaultLabel:\"Select \".concat(t)}))},multiDropdown:function(e){var t=e.label,n=e.value,r=e.onChange,a=e.options,i=e.disabled,l=o().useMemo(function(){return Array.isArray(n)&&0!==n.length?n.filter(function(e){return!0===e.checked}).map(function(e){return e.label}):[]},[n]),s=o().useMemo(function(){return Array.isArray(n)&&n.length>0&&\"checked\"in n[0]?n:a},[n,a]);return o().createElement(ro,{label:t},o().createElement(ur.A,{key:t,name:t,showClearAll:!0,labelKey:\"label\",options:s,onCheckboxChange:r,isDisabled:i||!s.length,selectedOptions:l,defaultLabel:\"Select\",isSortReq:!0}))},datepicker:function(e){var t=e.label,n=e.value,r=e.onChange,a=e.disabled,i=e.minDate,l=e.maxDate;return o().createElement(ro,{label:t},o().createElement(eo.A,{value:n?no()(n).format(\"DD MMM YYYY\"):\"\",handleChangeDatePicker:r,customFormat:\"DD MMM YYYY\",disabled:a,defaultCalendarMonth:i?no()(i).format(\"MM/DD/YYYY\"):void 0,minDate:i?i.toString():void 0,maxDate:l?l.toString():void 0,restrictManualEntry:!0}))},numberInput:function(e){var t=e.label,n=e.value,r=e.onChange,a=e.pattern,i=e.disabled;return o().createElement(ro,{label:t},o().createElement(Ae.D0,{disabled:i,name:t,type:\"text\",className:\"inputField\",onChange:function(e){return r(e.target.value)},placeholder:t,value:n,onKeyDown:function(e){[\"ArrowLeft\",\"ArrowRight\",\"ArrowUp\",\"ArrowDown\",\"Tab\",\"Home\",\"End\"].includes(e.key)||a&&!a.test(e.key)&&e.preventDefault()}}))}},ao=function(e){var t=oo[e.type];return t?o().createElement(t,e):null};function io(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return lo(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lo(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var so=(0,r.createContext)(void 0),uo=function(){var e=(0,r.useContext)(so);if(!e)throw new Error(\"useFormContext must be used within FormProvider\");return e},co=function(e){var t=e.children,n=e.initialValues,a=void 0===n?{}:n,i=e.initialShouldValidate,l=void 0!==i&&i,s=e.initialViewMode,u=void 0!==s&&s,c=io((0,r.useState)(a),2),d=c[0],p=c[1],f=io((0,r.useState)(l),2),g=f[0],h=f[1],m=io((0,r.useState)(u),2),v=m[0],A=m[1];return o().createElement(so.Provider,{value:{sectionFormValues:d,setSectionFormValues:p,shouldValidate:g,setShouldValidate:h,viewMode:v,setViewMode:A}},t)};function po(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return fo(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(fo(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,fo(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,fo(d,\"constructor\",u),fo(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",fo(u,o,\"GeneratorFunction\"),fo(d),fo(d,o,\"Generator\"),fo(d,r,function(){return this}),fo(d,\"toString\",function(){return\"[object Generator]\"}),(po=function(){return{w:a,m:p}})()}function fo(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}fo=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){fo(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},fo(e,t,n,r)}function go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ho(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mo(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){mo(a,r,o,i,l,\"next\",e)}function l(e){mo(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){Eo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eo(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=bo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=bo(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==bo(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(e){return bo=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},bo(e)}var _o=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t},Co=function(){return _o(new Date)},wo=function(e){if(!e)return null;var t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:_o(t)},So=function(e,t){return e?t?e.getTime()>=t.getTime()?e:t:e:t},To=function(e,t){return!e||!t||e.getTime()<=t.getTime()},Oo=function(e){var t=wo(e);return!t||t.getTime()>=Co().getTime()},Do={season:null,crop:null,competitor:[],year:null,startDate:null,endDate:null,brands:[]},Ro={season:!0,crop:!0,competitor:!0,year:!0,startDate:!0,endDate:!0,brands:!0},No=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ur.Ik().shape({season:Ur.Ik().nullable().required(\"Season is required\"),crop:Ur.Ik().nullable().required(\"Crop is required\"),competitor:Ur.YO().min(1,\"At least one competitor must be selected\").required(\"Competitor is required\"),year:Ur.Ik().nullable().required(\"Year is required\"),startDate:Ur.p6().nullable().required(\"Start date is required\").typeError(\"Invalid date format\").test(\"not-in-past\",\"Start date cannot be in the past\",function(t){return!e||Oo(t)}),endDate:Ur.p6().nullable().required(\"End date is required\").typeError(\"Invalid date format\").test(\"not-in-past\",\"End date cannot be in the past\",Oo).test(\"is-3-days-after-start\",\"End date must be at least 3 days after start date\",function(e){var t=this.parent.startDate;if(!e||!t)return!0;var n=new Date(t).getTime();return new Date(e).getTime()>=n+2592e5}),brands:Ur.YO().min(1,\"At least one brand must be selected\").required(\"Brands are required\")})},Lo=(No(),function(e){return e&&\"object\"===bo(e)?e.label:\"\"}),Po=function(e){var t,n;return e?\"object\"===bo(e)?null!==(t=null!==(n=e.value)&&void 0!==n?n:e.label)&&void 0!==t?t:null:e:null},Mo=function(e,t){var n=new Set(t.map(function(e){return e.value}));return e.map(function(e){return yo(yo({},e),{},{checked:n.has(e.value)})})},xo=function(e){return(null==e?void 0:e.map(function(e){return{label:null==e?void 0:e.name,value:e.id}}))||[]},Io=function(e){return(null==e?void 0:e.map(function(e){return{label:\"string\"==typeof e?e.toLowerCase().replace(/^./,function(e){return e.toUpperCase()}):String(e),value:e}}))||[]},ko=function(e,t){if(!t)return null;var n=String(t);return e.find(function(e){return String(e.value)===n})||null},Bo=function(e,t){return Array.isArray(e)&&0!==e.length?e.map(function(e){var n=ko(t,e);return n?yo(yo({},n),{},{checked:!0}):null}).filter(Boolean):[]},Fo=function(e){return e?new Date(e):null},jo=function(e,t){var n,r,o,a=(r=t.year,o=function(e){var t;if(!e)return null;var n=null!==(t=e.label)&&void 0!==t?t:e.value,r=\"number\"==typeof n?n:Number.parseInt(String(n),10);return Number.isNaN(r)||r<1900||r>2100?null:r}(r),o?{minDate:new Date(o,0,1),maxDate:new Date(o,11,31)}:{}),i=a.minDate,l=a.maxDate,s=Co();if(\"startDate\"===e){var u=So(i,s),c=l;return{minDate:u,maxDate:c,disabled:!t.year||!t.startDate&&!To(u,c)}}if(\"endDate\"===e){var d=t.startDate?wo(t.startDate):void 0,p=d?((n=new Date(d)).setDate(n.getDate()+3),n):i,f=So(p,s);return{minDate:f,maxDate:l,disabled:!t.year||!t.startDate||!To(f,l)}}return{disabled:!1}},Ho=[\"season\",\"crop\",\"year\"],Uo=o().memo(function(e){var t=e.chunk,n=e.values,r=e.onFieldChange,a=e.shouldValidate,i=e.isEditMode,l=e.isReadOnlyInActiveEdit,u=(0,Ae.j7)(),c=u.errors,d=u.touched,p=uo().viewMode;return o().createElement(s.A,{display:\"flex\",gap:\"20px\"},t.map(function(e){var t,u=n[null==e?void 0:e.name],f=c[null==e?void 0:e.name],g=d[null==e?void 0:e.name],h=function(e,t,n,r,o,a,i){var l=\"startDate\"===(null==e?void 0:e.name)||\"endDate\"===(null==e?void 0:e.name),s=a&&Ho.includes(e.name),u=l&&!t.year||o||s||i,c=\"multiDropdown\"===e.type&&Array.isArray(n)?n:[],d=\"multiDropdown\"===e.type&&e.options?Mo(e.options,c):e.options||[],p={type:e.type,label:e.label,value:\"multiDropdown\"===e.type?d:n,onChange:function(t){return r(e.name,t,e.type)},disabled:u};if(\"dropdown\"!==e.type&&\"multiDropdown\"!==e.type||(p.options=d),\"datepicker\"===e.type){var f=jo(null==e?void 0:e.name,t);Object.assign(p,f),p.disabled=u||f.disabled}return p}(e,n,u,r,p,i,l),m=a&&!!f&&(g||a),v=\"datepicker\"===e.type?\"\".concat(e.name,\"-\").concat(null!==(t=Po(n.year))&&void 0!==t?t:\"none\"):e.name;return o().createElement(s.A,{key:v,flex:1},o().createElement(ao,h),m&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},f))}))});Uo.displayName=\"FormFieldsRow\";var Yo=o().memo(function(e){var t=e.brandOptions,a=e.cropLabel,i=e.brands,l=e.onBrandChange,u=e.onBrandDelete,c=e.shouldValidate,d=e.viewMode,p=e.isReadOnlyInActiveEdit,f=(0,g.Bd)().t,h=(0,Ae.j7)(),m=h.errors,v=h.touched,A=(0,r.useMemo)(function(){return Mo(t,i)},[t,i]),y=c&&0===i.length&&(v.brands||c);return o().createElement(Zr,{title:\"\".concat(f(\"SELECT_HYBRIDS_FOR\"),\" \").concat(a),icon:n(39468),iconStyle:{width:\"28px\",height:\"28px\"}},o().createElement(s.A,{display:\"flex\",gap:\"20px\"},o().createElement(s.A,{flex:1,minWidth:0},o().createElement(ao,{type:\"multiDropdown\",label:f(\"HYBRIDS\"),value:A,onChange:l,options:t,disabled:0===t.length||d||p}),y&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},m.brands)),o().createElement(s.A,{flex:2},i.length>0&&o().createElement(o().Fragment,null,o().createElement(D.A,{className:\"chipHeader\",variant:\"subtitle2\",gutterBottom:!0},f(\"SELECTED_BRANDS\"),\" (\",i.length,\")\"),o().createElement(s.A,{display:\"flex\",gap:\"8px\",flexWrap:\"wrap\",mt:1},i.map(function(e){return o().createElement(Gr.A,{key:e.value,label:e.label,onDelete:function(){return u(e)},color:\"primary\",variant:\"outlined\",disabled:d||p})}))))))});Yo.displayName=\"BrandsSelection\";function Go(e){return Go=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Go(e)}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qo(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Go(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Go(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wo=[{label:\"MIN_VALUE\",type:\"numberInput\",name:\"minValue\",regexPattern:/^(\\d|Backspace|Delete)$/},{label:\"MAX_VALUE\",type:\"numberInput\",name:\"maxValue\",regexPattern:/^(\\d|Backspace|Delete)$/}],Qo={minValue:\"\",maxValue:\"\"},Ko=function(e){return Ur.Ik().shape({minValue:Ur.ai().typeError(\"Must be a number\").required(\"Minimum value is required\").min(0,\"Minimum value must be greater than or equal to 0\").max(e,\"Minimum value must be less than or equal to \".concat(e)),maxValue:Ur.ai().typeError(\"Must be a number\").required(\"Maximum value is required\").min(0,\"Maximum value must be greater than or equal to 0\").max(e,\"Maximum value must be less than or equal to \".concat(e)).test(\"is-greater\",\"Maximum value must be greater than minimum value\",function(e){var t=this.parent.minValue,n=Number(t),r=Number(e);return!(!Number.isNaN(n)&&!Number.isNaN(r))||r>n})})},$o=function(e,t,n,r){return Ko(r).test(\"\".concat(e,\"-validation\"),\"\",function(r){var o=this.parent[t];if(!r||!o)return!0;var a=Number(r.minValue),i=Number(r.maxValue),l=Number(o.minValue);return!!(Number.isNaN(a)||Number.isNaN(i)||Number.isNaN(l))||(a>=l?this.createError({path:\"\".concat(e,\".minValue\"),message:\"Low \".concat(n,\" min must be less than high \").concat(n,\" min\")}):!(i>=l)||this.createError({path:\"\".concat(e,\".maxValue\"),message:\"Low \".concat(n,\" max must be less than high \").concat(n,\" min\")}))})},Xo=Ur.Ik().shape({highPotential:Ko(9999),lowPotential:$o(\"lowPotential\",\"highPotential\",\"potential\",9999),highShare:Ko(100),lowShare:$o(\"lowShare\",\"highShare\",\"share\",100)}),Jo=function(e){var t=e.category,n=e.values,r=e.onFieldChange,a=e.shouldValidate,i=e.isReadOnlyInActiveEdit,l=(0,g.Bd)().t,u=(0,Ae.j7)().errors,c=uo().viewMode,d=u[t.categoryField];return o().createElement(Zr,{title:t.categorySublabel,icon:t.icon,iconStyle:{width:\"20px\",height:\"20px\"}},o().createElement(s.A,{display:\"flex\",gap:2,width:\"100%\"},t.fields.map(function(e){var t=(null==n?void 0:n[e.name])||\"\",u=null==d?void 0:d[e.name],p=a&&(!t||u);return o().createElement(s.A,{key:e.name,flex:1},o().createElement(ao,{type:e.type,label:l(e.label),pattern:e.regexPattern,value:t,disabled:c||i,onChange:function(t){return r(e.name,t,e.type)}}),p&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},u))})))},Zo=function(e){var t=e.chunk,n=e.formValues,r=e.onCategoryFieldChange,a=e.shouldValidate,i=e.isReadOnlyInActiveEdit;return o().createElement(s.A,{display:\"flex\",gap:2,mb:2,width:\"100%\"},t.map(function(e){return o().createElement(s.A,{key:e.categoryField,flex:1},o().createElement(Jo,{shouldValidate:a,isReadOnlyInActiveEdit:i,category:e,values:n[e.categoryField],onFieldChange:function(t,n,o){return r(e.categoryField,t,n,o)}}))}))};function ea(e){return ea=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ea(e)}function ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach(function(t){oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oa(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ea(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ea(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(1688);var aa=[{key:\"tm\",label:\"TM\"},{key:\"bm\",label:\"BM\"},{key:\"dml\",label:\"DML\"}],ia={backgroundColor:\"#eff6ff\"},la={approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},sa=[{label:\"APPROVAL_STARTDATE\",type:\"datepicker\",name:\"approvalStartDate\"},{label:\"APPROVAL_ENDDATE\",type:\"datepicker\",name:\"approvalEndDate\"},{label:\"DURATION_DAYS\",type:\"numberInput\",name:\"durationDays\"}],ua={approvalStartDate:{isReadOnly:!0,isDisabled:!0},approvalEndDate:{isReadOnly:!1,isDisabled:!1},durationDays:{isReadOnly:!1,isDisabled:!0}},ca={tm:{approvalStartDate:!0,approvalEndDate:!0,durationDays:!0},bm:{approvalStartDate:!0,approvalEndDate:!0,durationDays:!0},dml:{approvalStartDate:!0,approvalEndDate:!0,durationDays:!0}},da={bm:ra({},la),dml:ra({},la),tm:ra({},la)},pa=function(e,t){if(!e||!t)return\"\";var n=new Date(e),r=new Date(t);if(Number.isNaN(n.getTime())||Number.isNaN(r.getTime()))return\"\";n.setHours(0,0,0,0),r.setHours(0,0,0,0);var o=r.getTime()-n.getTime(),a=Math.ceil(o/864e5);return a>0?a:\"\"},fa=function(e){if(!e)return null;var t=new Date(e);return Number.isNaN(t.getTime())?null:(t.setHours(0,0,0,0),t)},ga=function(e){var t=fa(e);return t?t.toISOString():null},ha=function(e,t){var n=fa(e);return n?(n.setDate(n.getDate()-t),n):null},ma=function(e,t){var n=fa(e);return n?(n.setDate(n.getDate()+t),n):null},va=function(e,t){return t?\"bm\"===e?ha(t,1):fa(t):null},Aa=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)return null;var o=fa(e),a=fa(t);if(!o||!a)return null;if(!(r?o.getTime()>=a.getTime():o.getTime()>a.getTime()))return null;var i=fa(n);return i&&o.getTime()>i.getTime()?null:o.toISOString()},ya=function(e,t,n){var r,o,a,i;if(!t)return da;var l=e||da,s=null!==(r=null!==(o=l.tm)&&void 0!==o?o:l.admin)&&void 0!==r?r:la,u=ga(t),c=null!==(a=l.bm)&&void 0!==a&&a.approvalEndDate?fa(l.bm.approvalEndDate):va(\"bm\",n),d=Aa(s.approvalEndDate,u,c,!0),p=d?ha(d,1):u,f=Aa(null===(i=l.bm)||void 0===i?void 0:i.approvalEndDate,p,va(\"bm\",n)),g=u,h=ga(n);return{bm:ra(ra(ra({},la),l.bm),{},{approvalStartDate:u,approvalEndDate:f,durationDays:pa(u,f)}),dml:ra(ra(ra({},la),l.dml),{},{approvalStartDate:g,approvalEndDate:h,durationDays:pa(g,h)}),tm:ra(ra(ra({},la),s),{},{approvalStartDate:u,approvalEndDate:d,durationDays:pa(u,d)})}},Ea=function(e){return Ur.Ik().shape({approvalStartDate:Ur.p6().nullable().notRequired().typeError(\"Invalid date format\"),approvalEndDate:Ur.p6().nullable().required(\"tm\"===e?\"MLP Submission End Date is required\":\"Approval end date is required\").typeError(\"Invalid date format\").test(\"is-after-start\",\"End date must be after start date\",function(t){var n=this.parent.approvalStartDate;if(!n||!t)return!0;var r=new Date(t),o=new Date(n);return\"tm\"===e?r>=o:r>o}),durationDays:Ur.gl().test(\"is-valid-duration\",\"Duration must be at least 1 day\",function(e){if(function(e){return\"\"===e||null==e}(e))return!0;var t=\"string\"==typeof e?Number.parseInt(e,10):e;return!Number.isNaN(t)&&t>=1})})},ba=Ur.Ik().shape({tm:Ea(\"tm\"),bm:Ea(\"bm\"),dml:Ea(\"dml\")}),_a=function(e){var t=e.approver,r=e.allValues,a=e.values,i=e.onFieldChange,l=e.shouldValidate,u=e.minDate,c=e.maxDate,d=e.viewMode,p=(0,g.Bd)().t,f=(0,Ae.j7)(),h=f.errors,m=f.touched,v=h[t.categoryField],A=m[t.categoryField];return o().createElement(Zr,{title:t.categorySublabel,cardStyle:ia,icon:n(44141),iconStyle:{width:\"28px\",height:\"28px\"}},o().createElement(s.A,{display:\"flex\",flexDirection:\"column\",gap:\"16px\"},t.fields.map(function(e){var n,f,g,h,m,y=null==a?void 0:a[e.name],E=null==v?void 0:v[e.name],b=null==A?void 0:A[e.name],_=function(e,t){if(\"bm\"===e){if(\"approvalStartDate\"===t)return{isReadOnly:!0,isDisabled:!0};if(\"approvalEndDate\"===t)return{isReadOnly:!1,isDisabled:!1};if(\"durationDays\"===t)return{isReadOnly:!0,isDisabled:!0}}if(\"dml\"===e){if(\"approvalStartDate\"===t)return{isReadOnly:!0,isDisabled:!0};if(\"approvalEndDate\"===t)return{isReadOnly:!0,isDisabled:!0};if(\"durationDays\"===t)return{isReadOnly:!0,isDisabled:!0}}if(\"tm\"===e){if(\"approvalStartDate\"===t)return{isReadOnly:!0,isDisabled:!0};if(\"approvalEndDate\"===t)return{isReadOnly:!1,isDisabled:!1};if(\"durationDays\"===t)return{isReadOnly:!0,isDisabled:!0}}return ua[t]}(t.categoryField,e.name),C=(g=t.categoryField,h=e.name,m=e.label,\"tm\"!==g?m:\"approvalStartDate\"===h?\"MLP_SUBMISSION_START_DATE\":\"approvalEndDate\"===h?\"MLP_SUBMISSION_END_DATE\":m),w=function(e,t){return\"numberInput\"!==t?e:\"number\"==typeof e?String(e):\"\"===e||null==e?\"\":String(e)}(y,e.type),S=function(e,t,n,r,o,a){return\"approvalStartDate\"===t?{minValue:o,maxValue:a}:\"approvalEndDate\"===t?\"dml\"===e?{minValue:null,maxValue:null}:\"tm\"===e?{minValue:null!=n&&n.approvalStartDate?fa(n.approvalStartDate):null,maxValue:null!=r&&null!==(l=r.bm)&&void 0!==l&&l.approvalEndDate?fa(r.bm.approvalEndDate):va(\"bm\",a)}:{minValue:\"bm\"===e?null!=r&&null!==(i=r.tm)&&void 0!==i&&i.approvalEndDate?fa(r.tm.approvalEndDate):ma(null==n?void 0:n.approvalStartDate,1):null!=n&&n.approvalStartDate?ma(n.approvalStartDate,1):null,maxValue:va(e,a)}:{minValue:null,maxValue:null};var i,l}(t.categoryField,e.name,a,r,u||null,c||null),T=S.minValue,O=S.maxValue,R=l&&!!E&&(b||l)&&!(null!=_&&_.isReadOnly)&&!(null!=_&&_.isDisabled),N=\"\".concat(t.categoryField,\"-\").concat(e.name,\"-\").concat(w||\"empty\");return o().createElement(s.A,{key:e.name},\"datepicker\"===e.type?o().createElement(ao,{key:N,type:e.type,label:p(C),value:null!=w?w:\"\",onChange:function(t){return i(e.name,t,e.type)},minDate:null!=T?T:void 0,maxDate:null!=O?O:void 0,disabled:(null==_?void 0:_.isDisabled)||d||\"approvalEndDate\"===e.name&&(\"dml\"===t.categoryField&&!(null!=r&&null!==(n=r.bm)&&void 0!==n&&n.approvalEndDate)||!(null!=a&&a.approvalStartDate))}):\"numberInput\"===e.type?o().createElement(ao,{key:N,type:e.type,label:p(C),value:null!=w?w:\"\",onChange:function(t){return i(e.name,t,e.type)},disabled:(null==_?void 0:_.isDisabled)||d||\"approvalEndDate\"===e.name&&(\"dml\"===t.categoryField&&!(null!=r&&null!==(f=r.bm)&&void 0!==f&&f.approvalEndDate)||!(null!=a&&a.approvalStartDate))}):null,R&&o().createElement(D.A,{color:\"error\",variant:\"caption\",sx:{mt:.5,display:\"block\"}},E))})))},Ca=function(e){var t=e.chunk,n=e.formValues,r=e.onApproverFieldChange,a=e.shouldValidate,i=e.minDate,l=e.maxDate,u=e.viewMode;return o().createElement(s.A,{display:\"flex\",gap:2,mb:0,width:\"100%\"},t.map(function(e){return o().createElement(s.A,{key:e.categoryField,flex:1},o().createElement(_a,{shouldValidate:a,approver:e,allValues:n,values:n[e.categoryField],onFieldChange:function(t,n,o){return r(e.categoryField,t,n,o)},minDate:i,maxDate:l,viewMode:u}))}))},wa=function(e){var t=e.title,n=e.icon,r=e.children;return o().createElement(s.A,null,o().createElement(u.A,{direction:\"row\",alignItems:\"center\",spacing:1.5,mb:2},o().createElement(\"img\",{src:n,alt:t,style:{width:44,height:44,display:\"block\"}}),o().createElement(D.A,{sx:{fontSize:\"16px\",fontWeight:600,lineHeight:\"24px\",fontFamily:\"NotoSans-SemiBold\"}},t)),r)};var Sa=n(27386),Ta=n(23835);function Oa(e){return Oa=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Oa(e)}function Da(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Ra(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ra(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ra(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Ra(d,\"constructor\",u),Ra(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Ra(u,o,\"GeneratorFunction\"),Ra(d),Ra(d,o,\"Generator\"),Ra(d,r,function(){return this}),Ra(d,\"toString\",function(){return\"[object Generator]\"}),(Da=function(){return{w:a,m:p}})()}function Ra(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Ra=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Ra(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Ra(e,t,n,r)}function Na(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function La(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Na(a,r,o,i,l,\"next\",e)}function l(e){Na(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function Pa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ka(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Oa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Oa(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Oa(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ba={border:\"1px solid #dfe2e7\",borderRadius:\"6px\",padding:\"12px 16px\"},Fa=Ia(Ia({},Ba),{},{display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\"}),ja={fontSize:12,p:.5,color:\"#ff0000\",fontWeight:700},Ha=function(e){var t=e.stepNumber,n=e.title;return o().createElement(u.A,{flexDirection:\"row\",gap:2,alignItems:\"center\"},o().createElement(D.A,{component:\"span\",className:t?\"round-badge\":\"\"},t),o().createElement(D.A,{variant:\"h6\",fontSize:14,fontWeight:500},n))},Ua=function(e){var t=e.onDownload,n=e.isLoading,r=void 0!==n&&n,a=e.isDisabled,i=void 0!==a&&a,l=e.stepHeaderTitle,u=(0,g.Bd)().t;return o().createElement(s.A,{sx:Ba},o().createElement(s.A,{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},o().createElement(Ha,{stepNumber:1,title:l||u(\"DOWNLOAD_TEMEPLATE\")}),o().createElement(m.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:u(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",type:\"button\",onButtonClick:t,disabled:r||i})))},Ya=function(e){var t=e.onDownload,n=e.isLoading,r=void 0!==n&&n,a=e.fileName,i=(0,g.Bd)().t;return o().createElement(s.A,{sx:Ba},o().createElement(s.A,{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},o().createElement(Ha,{title:a}),o().createElement(m.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-download\"}),buttonName:i(\"DOWNLOAD\"),fullwidth:!1,variant:\"outlined\",type:\"button\",onButtonClick:t,disabled:r})))},Ga=function(e){var t=e.selectedFile,n=e.isUploadEnabled,r=e.allowRemove,a=void 0===r||r,i=e.fileButtonLabel,l=e.onUploadSuccess,u=e.onRemove,c=e.error,d=e.shouldValidate,p=e.handleSubmitTemplate,f=(0,g.Bd)().t,h=c||d&&!t,v=c||\"UPLOAD_CONDITION_TEXT\";return o().createElement(s.A,{sx:Fa},o().createElement(Ha,{stepNumber:2,title:f(\"UPLOAD_FILE\")}),o().createElement(s.A,{width:\"50%\"},o().createElement(Sa.A,{onUploadSuccess:l,selectedFile:t,onRemoveHandler:u,allowRemove:a,buttonLabel:i}),h&&o().createElement(D.A,{sx:ja},f(v))),o().createElement(s.A,{alignContent:\"center\"},o().createElement(m.A,{startIcon:o().createElement(\"span\",{className:\"icon-icon-upload\"}),buttonName:f(\"UPLOAD\"),fullwidth:!1,variant:\"contained\",type:\"button\",onButtonClick:p,disabled:!n||!!c})))};var za={moduleConfig:{season:\"\",crop:\"\",competitor:[],year:\"\",startDate:null,endDate:null,brands:[]},categoryValue:{highPotential:{minValue:\"\",maxValue:\"\"},lowPotential:{minValue:\"\",maxValue:\"\"},highShare:{minValue:\"\",maxValue:\"\"},lowShare:{minValue:\"\",maxValue:\"\"}},approverConfig:{bm:{approvalStartDate:\"\",approvalEndDate:\"\",durationDays:\"\"},dml:{approvalStartDate:\"\",approvalEndDate:\"\",durationDays:\"\"},admin:{approvalStartDate:\"\",approvalEndDate:\"\",durationDays:\"\"}},agronomyRecommendation:{templateDownloaded:!1,fileUploaded:{fileName:\"\",fileSize:\"\",uploadDate:\"\",status:\"\"}}},Va=\"mlp_module_approver_config_roles\",qa=n(29834);function Wa(e){return Wa=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Wa(e)}function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach(function(t){$a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $a(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Wa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Wa(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Wa(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ri(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ja(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Za(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Za(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Za(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Za(d,\"constructor\",u),Za(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Za(u,o,\"GeneratorFunction\"),Za(d),Za(d,o,\"Generator\"),Za(d,r,function(){return this}),Za(d,\"toString\",function(){return\"[object Generator]\"}),(Ja=function(){return{w:a,m:p}})()}function Za(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Za=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Za(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Za(e,t,n,r)}function ei(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ti(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ei(a,r,o,i,l,\"next\",e)}function l(e){ei(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function ni(e){return function(e){if(Array.isArray(e))return oi(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||ri(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ri(e,t){if(e){if(\"string\"==typeof e)return oi(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ai=[{name:i.F_.Mlp,path:i.fp.Mlp},{name:i.F_.NewMlp,path:\"\".concat(i.fp.Mlp,\"/\").concat(i.fp.NewMlp)}],ii=[{name:i.F_.Mlp,path:i.fp.Mlp}],li=function(e){if(!e)return null;var t=String(e);if(t.includes(\"T\"))return t.split(\"T\")[0];var n=U()(t);return n.isValid()?n.format(\"YYYY-MM-DD\"):t},si=function(e){return Array.isArray(e)?e.map(function(e){return void 0!==(null==e?void 0:e.id)&&null!==(null==e?void 0:e.id)?e.id:e}).filter(function(e){return null!=e}):[]},ui=function(e){var t,n,r,o,a,i,l,s,u,c,d,p,f,g,h;if(!e)return{bm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},dml:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},tm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"}};if(Array.isArray(e)){var m=[\"tm\",\"bm\",\"dml\"];return ni(e).sort(function(e,t){var n,r;return Number(null!==(n=null==e?void 0:e.duration)&&void 0!==n?n:0)-Number(null!==(r=null==t?void 0:t.duration)&&void 0!==r?r:0)}).reduce(function(e,t,n){var r,o=m[n];return o&&(e[o]={approvalStartDate:li(null==t?void 0:t.startDate),approvalEndDate:li(null==t?void 0:t.endDate),durationDays:null!==(r=null==t?void 0:t.duration)&&void 0!==r?r:\"\"}),e},{bm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},dml:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},tm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"}})}return{bm:{approvalStartDate:li(null==e||null===(t=e.bm)||void 0===t?void 0:t.approvalStartDate),approvalEndDate:li(null==e||null===(n=e.bm)||void 0===n?void 0:n.approvalEndDate),durationDays:null!==(r=null==e||null===(o=e.bm)||void 0===o?void 0:o.durationDays)&&void 0!==r?r:\"\"},dml:{approvalStartDate:li(null==e||null===(a=e.dml)||void 0===a?void 0:a.approvalStartDate),approvalEndDate:li(null==e||null===(i=e.dml)||void 0===i?void 0:i.approvalEndDate),durationDays:null!==(l=null==e||null===(s=e.dml)||void 0===s?void 0:s.durationDays)&&void 0!==l?l:\"\"},tm:{approvalStartDate:li(null===(u=null!==(c=null==e?void 0:e.tm)&&void 0!==c?c:null==e?void 0:e.admin)||void 0===u?void 0:u.approvalStartDate),approvalEndDate:li(null===(d=null!==(p=null==e?void 0:e.tm)&&void 0!==p?p:null==e?void 0:e.admin)||void 0===d?void 0:d.approvalEndDate),durationDays:null!==(f=null===(g=null!==(h=null==e?void 0:e.tm)&&void 0!==h?h:null==e?void 0:e.admin)||void 0===g?void 0:g.durationDays)&&void 0!==f?f:\"\"}}},ci=function(e){var t,n,r,o,a,i,l,s,u,c,d,p,f,g,h,m;return{highPotential:{minValue:null!==(t=null==e||null===(n=e.categoryValue)||void 0===n||null===(n=n.highPotential)||void 0===n?void 0:n.minValue)&&void 0!==t?t:\"\",maxValue:null!==(r=null==e||null===(o=e.categoryValue)||void 0===o||null===(o=o.highPotential)||void 0===o?void 0:o.maxValue)&&void 0!==r?r:\"\"},lowPotential:{minValue:null!==(a=null==e||null===(i=e.categoryValue)||void 0===i||null===(i=i.lowPotential)||void 0===i?void 0:i.minValue)&&void 0!==a?a:\"\",maxValue:null!==(l=null==e||null===(s=e.categoryValue)||void 0===s||null===(s=s.lowPotential)||void 0===s?void 0:s.maxValue)&&void 0!==l?l:\"\"},highShare:{minValue:null!==(u=null==e||null===(c=e.categoryValue)||void 0===c||null===(c=c.highShare)||void 0===c?void 0:c.minValue)&&void 0!==u?u:\"\",maxValue:null!==(d=null==e||null===(p=e.categoryValue)||void 0===p||null===(p=p.highShare)||void 0===p?void 0:p.maxValue)&&void 0!==d?d:\"\"},lowShare:{minValue:null!==(f=null==e||null===(g=e.categoryValue)||void 0===g||null===(g=g.lowShare)||void 0===g?void 0:g.minValue)&&void 0!==f?f:\"\",maxValue:null!==(h=null==e||null===(m=e.categoryValue)||void 0===m||null===(m=m.lowShare)||void 0===m?void 0:m.maxValue)&&void 0!==h?h:\"\"}}},di=function(e){return Ur.Ik().shape({minValue:Ur.Yj().required(\"Minimum value is required\").test(\"is-number\",\"Must be a valid number\",function(e){if(!e)return!1;var t=Number(e);return!Number.isNaN(t)}).test(\"min-range\",\"Minimum value must be between 0 and \".concat(e),function(t){if(!t)return!0;var n=Number(t);return n>=0&&n<=e}),maxValue:Ur.Yj().required(\"Maximum value is required\").test(\"is-number\",\"Must be a valid number\",function(e){if(!e)return!1;var t=Number(e);return!Number.isNaN(t)}).test(\"max-range\",\"Maximum value must be between 0 and \".concat(e),function(t){if(!t)return!0;var n=Number(t);return n>=0&&n<=e}).test(\"is-greater\",\"Maximum value must be greater than minimum value\",function(e){var t=this.parent.minValue;if(!t||!e)return!0;var n=Number(t),r=Number(e);return!(!Number.isNaN(n)&&!Number.isNaN(r))||r>n})})},pi=function(e,t,n,r){return di(r).test(\"\".concat(e,\"-validation\"),\"\",function(r){var o=this.parent[t];if(!r||!o)return!0;if(!r.minValue||!r.maxValue||!o.minValue)return!0;var a=Number(r.minValue),i=Number(r.maxValue),l=Number(o.minValue);return!!(Number.isNaN(a)||Number.isNaN(i)||Number.isNaN(l))||(a>=l?this.createError({path:\"\".concat(e,\".minValue\"),message:\"Low \".concat(n,\" min must be less than high \").concat(n,\" min\")}):!(i>=l)||this.createError({path:\"\".concat(e,\".maxValue\"),message:\"Low \".concat(n,\" max must be less than high \").concat(n,\" min\")}))})},fi=Ur.Ik().shape({highPotential:di(9999),lowPotential:pi(\"lowPotential\",\"highPotential\",\"potential\",9999),highShare:di(100),lowShare:pi(\"lowShare\",\"highShare\",\"share\",100)}),gi=function(e){return!!(e.approvalStartDate&&e.approvalEndDate&&\"\"!==e.durationDays&&Number(e.durationDays)>0)},hi=function(){var e=ti(Ja().m(function e(t,n){var r,o;return Ja().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,No(n).validate(t,{abortEarly:!1});case 1:return e.a(2,!0);case 2:return e.p=2,\"ValidationError\"===(o=e.v).name&&(console.error(\"Module config validation errors:\",o.errors),null===(r=o.inner)||void 0===r||r.forEach(function(e){console.error(\"  - \".concat(e.path,\": \").concat(e.message))})),e.a(2,!1)}},e,null,[[0,2]])}));return function(t,n){return e.apply(this,arguments)}}(),mi=function(){var e=ti(Ja().m(function e(t){var n,r;return Ja().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fi.validate(t,{abortEarly:!1});case 1:return e.a(2,!0);case 2:return e.p=2,\"ValidationError\"===(r=e.v).name&&(console.error(\"Validation errors:\",r.errors),null===(n=r.inner)||void 0===n||n.forEach(function(e){console.error(\"  - \".concat(e.path,\": \").concat(e.message))})),e.a(2,!1)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),vi=function(e){var t;return gi(null!==(t=e.tm)&&void 0!==t?t:e.admin)&&gi(e.bm)&&gi(e.dml)},Ai=function(e){return!0},yi=function(e){var t=e.routePathName;return o().createElement(u.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(c.A,{routePathName:ni(t)}))},Ei=[{Component:function(e){var t=e.sectionName,i=e.sectionFormValues,l=e.setSectionFormValues,u=e.shouldValidate,c=void 0!==u&&u,d=(0,g.Bd)().t,p=(0,a.zy)(),f=(0,r.useRef)(null),h=uo().viewMode,m=go(o().useState([]),2),v=m[0],A=m[1],y=go(o().useState([]),2),E=y[0],b=y[1],_=go(o().useState([]),2),C=_[0],w=_[1],S=go(o().useState([]),2),T=S[0],D=S[1],R=go(o().useState([]),2),N=R[0],L=R[1],P=function(){var e=(0,r.useContext)(O.v),t=e.BackOfficeProps,n=t.globalStore.User,o=t.baseurl,a=e.triggerShowLoader,i=e.triggerToastMsg,l=(0,r.useCallback)(vo(po().m(function e(){var t,r,l,s,u,c,d;return po().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Promise.all([sn(),un(n,o,a),cn(n,o,a),dn(n,o,a)]);case 1:return t=e.v,r=go(t,4),l=r[0],s=r[1],u=r[2],c=r[3],e.a(2,{years:xo(l),seasons:Io(s),crops:xo(u),competitors:xo(c)});case 2:return e.p=2,d=e.v,i({message:d.message,type:\"error\"}),e.a(2,{years:[],seasons:[],competitors:[],crops:[]})}},e,null,[[0,2]])})),[n,o]),s=(0,r.useCallback)(function(){var e=vo(po().m(function e(t){var r,l,s,u;return po().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Promise.all([pn(t,n,o,a)]);case 1:return r=e.v,l=go(r,1),s=l[0],e.a(2,{brands:xo(s)});case 2:return e.p=2,u=e.v,i({message:u.message,type:\"error\"}),e.a(2,{brands:[]})}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),[n,o]);return{fetchInitialData:l,fetchCropRelatedData:s}}(),M=P.fetchInitialData,x=P.fetchCropRelatedData,I=(0,r.useMemo)(function(){var e=null==p?void 0:p.state;return Boolean((null==e?void 0:e.edit)||(null==e?void 0:e.view))},[p]),k=(0,r.useMemo)(function(){var e,t=null==p?void 0:p.state,n=String((null==t||null===(e=t.mlpData)||void 0===e?void 0:e.status)||\"\").toUpperCase();return Boolean((null==t?void 0:t.edit)&&\"ACTIVE\"===n)},[p]),B=(0,r.useMemo)(function(){return!h&&!k},[h,k]),F=(0,r.useMemo)(function(){return No(B)},[B]),j=(0,r.useMemo)(function(){return i[t]||Do},[i,t]),H=function(e){e.current&&(e.current.setErrors({}),e.current.setTouched(Ro,!0))},U=function(e,t){var n={};e.inner&&e.inner.forEach(function(e){e.path&&(n[e.path]=e.message)}),t.current&&(t.current.setErrors(n),t.current.setTouched(Ro,!0))},Y=function(){var e=vo(po().m(function e(t,n,r){var o;return po().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,t.validate(n,{abortEarly:!1});case 1:H(r),e.n=3;break;case 2:e.p=2,o=e.v,U(o,r);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n,r){return e.apply(this,arguments)}}();(0,r.useEffect)(function(){if(c){var e=setTimeout(function(){Y(F,j,f)},150);return function(){return clearTimeout(e)}}},[c,j,F]),function(e,t,n,o,a){(0,r.useEffect)(function(){e().then(function(e){var r=e.years,i=e.seasons,l=e.crops,s=e.competitors;t(r),n(i),o(l),a(s)})},[e,t,n,o,a])}(M,A,b,w,D),function(e,t,n){(0,r.useEffect)(function(){var r=\"string\"==typeof e?e:function(e){return e&&\"string\"!=typeof e&&(e.value||e.id)||null}(e);r?t(r).then(function(e){var t=e.brands;n(t)}):n([])},[e,t,n])}(j.crop,x,L),function(e){var t=e.editData,n=e.sectionName,o=e.setSectionFormValues,a=e.options,i=e.isEditMode,l=(0,r.useRef)(!1);(0,r.useEffect)(function(){if(i&&t&&!l.current&&function(e,t){var n=e.year,r=e.season,o=e.crop,a=e.competitor,i=e.brand;return 0!==n.length&&0!==r.length&&0!==o.length&&0!==a.length&&0!==i.length&&(!t.crop||0!==i.length)}(a,t)){var e=function(e,t){return{season:ko(t.season,e.season),crop:ko(t.crop,e.crop),competitor:Bo(e.competitors,t.competitor),year:ko(t.year,e.year),startDate:Fo(e.startDate),endDate:Fo(e.endDate),brands:Bo(e.brands,t.brand)}}(t,a);o(function(t){return yo(yo({},t),{},Eo({},n,e))}),l.current=!0}},[t,n,o,a,i]),(0,r.useEffect)(function(){i||(l.current=!1)},[i])}({editData:I?j:null,sectionName:t,setSectionFormValues:l,options:{year:v,season:E,crop:C,competitor:T,brand:N},isEditMode:I}),function(e,t,n,o,a){var i=(0,r.useRef)(null),l=(0,r.useRef)(!1),s=Po(e);(0,r.useEffect)(function(){return a?(i.current=s,void(l.current=!0)):l.current?void(s!==i.current&&(n.current&&(n.current.setFieldValue(\"startDate\",null,!1),n.current.setFieldValue(\"endDate\",null,!1)),o(function(e){return yo(yo({},e),{},Eo(Eo({},t,yo(yo({},e[t]),{},{startDate:null,endDate:null})),\"approverConfig\",{bm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},dml:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},admin:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"}}))}),i.current=s)):(l.current=!0,void(i.current=s))},[s,t,n,o,a])}(j.year,t,f,l,I);var G=function(e,t,n,o){var a=(0,g.Bd)().t;return(0,r.useMemo)(function(){return[{label:a(\"SEASON\"),type:\"dropdown\",name:\"season\",options:t},{label:a(\"CROP\"),type:\"dropdown\",name:\"crop\",options:n},{label:a(\"COMPETITOR\"),type:\"multiDropdown\",name:\"competitor\",options:o},{label:a(\"YEAR_LABEL\"),type:\"dropdown\",name:\"year\",options:e},{label:a(\"START_DATE\"),type:\"datepicker\",name:\"startDate\"},{label:a(\"END_DATE\"),type:\"datepicker\",name:\"endDate\"}]},[a,e,t,n,o])}(v,E,C,T),z=(0,r.useMemo)(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return Array.from({length:Math.ceil(e.length/t)},function(n,r){return e.slice(r*t,r*t+t)})}(G)},[G]),V=(0,r.useMemo)(function(){return Lo(j.crop)},[j.crop]),q=(0,r.useMemo)(function(){return[Lo((e=j).season),Lo(e.crop),Lo(e.year)].filter(Boolean).join(\" \");var e},[j]),W=(0,r.useCallback)(function(e,n,r){var o=\"multiDropdown\"===r?function(e){return Array.isArray(e)?e.filter(function(e){return e.checked}):[]}(n):n,a=\"crop\"===e,i=\"year\"===e&&Po(o)!==Po(j.year),s=a&&Po(o)!==Po(j.crop);f.current&&(f.current.setFieldValue(e,o,c),i&&(f.current.setFieldValue(\"startDate\",null,!1),f.current.setFieldValue(\"endDate\",null,!1)),s&&f.current.setFieldValue(\"brands\",[],!1),c&&(f.current.setFieldTouched(e,!0,!1),setTimeout(function(){var t;null===(t=f.current)||void 0===t||t.validateField(e)},0))),l(function(n){var r=yo(yo(yo({},n[t]),{},Eo({},e,o),i?{startDate:null,endDate:null}:{}),s?{brands:[]}:{});return yo(yo({},n),{},Eo({},t,r),i?{approverConfig:{bm:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},dml:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"},admin:{approvalStartDate:null,approvalEndDate:null,durationDays:\"\"}}}:{})})},[j.year,j.crop,t,l,c]),Q=(0,r.useCallback)(function(e){W(\"brands\",e,\"multiDropdown\")},[W]),K=(0,r.useCallback)(function(e){var t=j.brands.filter(function(t){return t.value!==e.value}).map(function(e){return yo(yo({},e),{},{checked:!0})});W(\"brands\",t,\"multiDropdown\")},[j.brands,W]),$=(0,r.useCallback)(function(e,t){t.setSubmitting(!1)},[]);return o().createElement(Zr,{title:d(\"MODULE_CONFIG\"),rightLabel:q,icon:n(40597),rightIcon:n(27691),onIconClick:function(){}},o().createElement(Ae.l1,{innerRef:f,initialValues:j,onSubmit:$,validationSchema:F,enableReinitialize:!0,validateOnChange:c,validateOnBlur:c},function(){return o().createElement(Ae.lV,null,o().createElement(s.A,{display:\"flex\",flexDirection:\"column\",gap:\"20px\"},z.map(function(e,t){return o().createElement(Uo,{key:\"chunk-\".concat(t),chunk:e,values:j,onFieldChange:W,shouldValidate:c,isEditMode:I,isReadOnlyInActiveEdit:k})}),V&&o().createElement(Yo,{brandOptions:N,cropLabel:V,brands:j.brands,onBrandChange:Q,onBrandDelete:K,shouldValidate:c,viewMode:h,isReadOnlyInActiveEdit:k})))}))},sectionName:\"moduleConfig\"},{Component:function(e){var t=e.sectionName,i=e.sectionFormValues,l=e.setSectionFormValues,u=e.shouldValidate,c=void 0!==u&&u,d=(0,g.Bd)().t,p=(0,a.zy)(),f=(0,r.useRef)(null),h=(0,r.useMemo)(function(){var e,t=null==p?void 0:p.state,n=String((null==t||null===(e=t.mlpData)||void 0===e?void 0:e.status)||\"\").toUpperCase();return Boolean((null==t?void 0:t.edit)&&\"ACTIVE\"===n)},[p]),m=(0,r.useMemo)(function(){return function(e,t){var n,r,o,a;return{highPotential:(null===(n=e[t])||void 0===n?void 0:n.highPotential)||Qo,lowPotential:(null===(r=e[t])||void 0===r?void 0:r.lowPotential)||Qo,highShare:(null===(o=e[t])||void 0===o?void 0:o.highShare)||Qo,lowShare:(null===(a=e[t])||void 0===a?void 0:a.lowShare)||Qo}}(i,t)},[i,t]),v=function(){var e=(0,g.Bd)().t;return(0,r.useMemo)(function(){return[{categorySublabel:e(\"HIGH_POTENTIAL\"),categoryField:\"highPotential\",fields:Wo,icon:n(33683)},{categorySublabel:e(\"LOW_POTENTIAL\"),categoryField:\"lowPotential\",fields:Wo,icon:n(87127)},{categorySublabel:e(\"HIGH_SHARE\"),categoryField:\"highShare\",fields:Wo},{categorySublabel:e(\"LOW_SHARE\"),categoryField:\"lowShare\",fields:Wo}]},[e])}(),A=(0,r.useMemo)(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Array.from({length:Math.ceil(e.length/t)},function(n,r){return e.slice(r*t,r*t+t)})}(v)},[v]),y=(0,r.useCallback)(function(e,n,r){if(f.current){var o=Vo(Vo({},f.current.values[e]||{}),{},qo({},n,r));if(f.current.setFieldValue(e,o,c),c){var a=f.current.touched[e]||{};f.current.setTouched(Vo(Vo({},f.current.touched),{},qo({},e,Vo(Vo({},a),{},qo({},n,!0)))))}}l(function(o){var a;return Vo(Vo({},o),{},qo({},t,Vo(Vo({},o[t]),{},qo({},e,Vo(Vo({},null===(a=o[t])||void 0===a?void 0:a[e]),{},qo({},n,r))))))})},[t,l,c]),E=(0,r.useCallback)(function(e,t){t.setSubmitting(!1)},[]);return(0,r.useEffect)(function(){c&&f.current&&f.current.validateForm().then(function(){var e;null===(e=f.current)||void 0===e||e.setTouched({highPotential:{minValue:!0,maxValue:!0},lowPotential:{minValue:!0,maxValue:!0},highShare:{minValue:!0,maxValue:!0},lowShare:{minValue:!0,maxValue:!0}})})},[c]),o().createElement(Zr,{title:d(\"CATEGORY_VALUE\"),icon:n(6151)},o().createElement(Ae.l1,{innerRef:f,initialValues:m,validationSchema:Xo,onSubmit:E,enableReinitialize:!0,validateOnChange:c,validateOnBlur:!1},function(e){var t=e.values;return o().createElement(Ae.lV,{\"aria-labelledby\":\"category-value-form\"},o().createElement(s.A,{display:\"flex\",flexDirection:\"column\"},A.map(function(e,n){return o().createElement(Zo,{key:\"category-row-\".concat(e[0].categoryField,\"-\").concat(n),shouldValidate:c,isReadOnlyInActiveEdit:h,chunk:e,formValues:t,onCategoryFieldChange:h?function(){}:y})})))}))},sectionName:\"categoryValue\"},{Component:function(e){var t=e.sectionName,a=e.sectionFormValues,i=e.setSectionFormValues,l=e.shouldValidate,u=void 0!==l&&l,c=(0,r.useRef)(null),d=uo().viewMode,p=function(e){return{minDate:(0,r.useMemo)(function(){var t,n=null==e||null===(t=e.moduleConfig)||void 0===t?void 0:t.startDate;return n?new Date(n):null},[e]),maxDate:(0,r.useMemo)(function(){var t,n=null==e||null===(t=e.moduleConfig)||void 0===t?void 0:t.endDate;return n?new Date(n):null},[e])}}(a),f=p.minDate,g=p.maxDate,h=(0,r.useMemo)(function(){return ya(a[t],f,g)},[a,t,f,g]);(0,r.useEffect)(function(){if(u){var e=setTimeout(function(){m()},150);return function(){return clearTimeout(e)}}},[u,h]);var m=function(){c.current&&ba.validate(h,{abortEarly:!1}).then(v).catch(A)},v=function(){c.current&&(c.current.setErrors({}),c.current.setTouched(ca,!0))},A=function(e){var t=y(e);c.current&&(c.current.setErrors(t),c.current.setTouched(ca,!0))},y=function(e){var t={bm:{},dml:{},tm:{}};return e.inner?(e.inner.forEach(function(e){if(e.path){var n=e.path.split(\".\");if(2===n.length){var r=(l=2,function(e){if(Array.isArray(e))return e}(i=n)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(i,l)||function(e,t){if(e){if(\"string\"==typeof e)return ta(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ta(e,t):void 0}}(i,l)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),o=r[0],a=r[1];t[o]||(t[o]={}),t[o][a]=e.message}}var i,l}),t):t};(0,r.useEffect)(function(){if(c.current){var e=c.current.values;JSON.stringify(e)!==JSON.stringify(h)&&aa.forEach(function(e){var t=e.key;Object.keys(h[t]).forEach(function(e){var n;null===(n=c.current)||void 0===n||n.setFieldValue(\"\".concat(t,\".\").concat(e),h[t][e],!1)})})}},[h]),(0,r.useEffect)(function(){f||i(function(e){var n=da;return ra(ra({},e),{},oa({},t,n))})},[f,t,i]);var E=(0,r.useMemo)(function(){return aa.map(function(e){return{categorySublabel:e.label,categoryField:e.key,fields:sa}})},[]),b=(0,r.useMemo)(function(){return E.filter(function(e){return\"tm\"===e.categoryField})},[E]),_=(0,r.useMemo)(function(){return E.filter(function(e){var t=e.categoryField;return\"bm\"===t||\"dml\"===t})},[E]);(0,r.useEffect)(function(){f&&i(function(e){var n=e[t]||{},r=ya(n,f,g);return JSON.stringify(n)===JSON.stringify(r)?e:ra(ra({},e),{},oa({},t,r))})},[f,g,t,i]);var C=(0,r.useCallback)(function(e,n,r,o){var a=function(t){var a=\"datepicker\"===o?ga(r):r;return ya(ra(ra({},t),{},oa({},e,ra(ra({},t[e]),{},oa({},n,a)))),f,g)};if(i(function(e){var n=e[t]||da,r=a(n);return ra(ra({},e),{},oa({},t,r))}),c.current){var l=a(c.current.values);aa.forEach(function(e){var t=e.key;Object.keys(l[t]).forEach(function(e){var n;null===(n=c.current)||void 0===n||n.setFieldValue(\"\".concat(t,\".\").concat(e),l[t][e],!1)})}),u&&(c.current.setFieldTouched(\"\".concat(e,\".\").concat(n),!0,!1),setTimeout(function(){var t;null===(t=c.current)||void 0===t||t.validateField(\"\".concat(e,\".\").concat(n))},0))}},[f,g,t,i,u]),w=(0,r.useCallback)(function(e,t){console.log(\"Approver config values submitted:\",e),t.setSubmitting(!1)},[]);return o().createElement(Ae.l1,{innerRef:c,initialValues:h,validationSchema:ba,onSubmit:w,enableReinitialize:!0,validateOnChange:u,validateOnBlur:u},function(e){var t=e.values;return o().createElement(Ae.lV,{\"aria-labelledby\":\"approver-config-form\"},o().createElement(s.A,{sx:{border:\"1px solid #CFD3DB\",borderRadius:\"12px\",backgroundColor:\"#FFFFFF\",p:2.5}},o().createElement(s.A,{display:\"flex\",alignItems:\"stretch\",gap:2,flexWrap:{xs:\"wrap\",lg:\"nowrap\"}},o().createElement(s.A,{flex:{xs:\"1 1 100%\",lg:\"1 1 0\"},minWidth:{xs:\"100%\",lg:0}},o().createElement(wa,{title:\"Submission Config\",icon:n(75302)},o().createElement(Ca,{shouldValidate:u,chunk:b,formValues:t,onApproverFieldChange:C,minDate:f,maxDate:g,viewMode:d}))),o().createElement(s.A,{display:{xs:\"none\",lg:\"block\"},width:\"1px\",bgcolor:\"#E2E5EA\",borderRadius:\"2px\",mx:.5}),o().createElement(s.A,{flex:{xs:\"1 1 100%\",lg:\"2 1 0\"},minWidth:{xs:\"100%\",lg:0}},o().createElement(wa,{title:\"Approver Config\",icon:n(75302)},o().createElement(Ca,{shouldValidate:u,chunk:_,formValues:t,onApproverFieldChange:C,minDate:f,maxDate:g,viewMode:d}))))))})},sectionName:\"approverConfig\"},{Component:function(e){var t,i,l=e.sectionName,u=e.sectionFormValues,c=e.setSectionFormValues,d=e.shouldValidate,p=void 0!==d&&d,f=e.onTemplateUploadSuccess,h=(0,Ta.A)().downloadTemplate,m=uo().viewMode,v=(0,a.zy)(),A=(0,g.Bd)().t,y=o().useMemo(function(){var e,t=null==v?void 0:v.state,n=String((null==t||null===(e=t.mlpData)||void 0===e?void 0:e.status)||\"\").toUpperCase();return Boolean((null==t?void 0:t.edit)&&\"ACTIVE\"===n)},[v]),b=(0,r.useContext)(O.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,S=b.triggerShowLoader,T=b.triggerToastMsg,D=function(e,t){var n=Pa((0,r.useState)(null),2),o=n[0],a=n[1],i=Pa((0,r.useState)(\"\"),2),l=i[0],s=i[1];return{selectedFile:o,fileError:l,handleUploadSuccess:(0,r.useCallback)(function(n){var r=n[0];if(r){a(r);var o=(0,en.TC)(null==r?void 0:r.name)?\"\":\"VALID_FILE_ERROR\";s(o),t(function(t){return Ia(Ia({},t),{},ka({},e,Ia(Ia({},t[e]),{},{fileUploaded:r})))})}},[e,t]),handleRemoveFile:(0,r.useCallback)(function(){a(null),s(\"\"),t(function(t){return Ia(Ia({},t),{},ka({},e,Ia(Ia({},t[e]),{},{fileUploaded:null})))})},[e,t]),clearSelectedFile:(0,r.useCallback)(function(){a(null),s(\"\")},[])}}(l,c),R=D.selectedFile,N=D.fileError,L=D.handleUploadSuccess,P=D.handleRemoveFile,x=D.clearSelectedFile,I=(0,r.useMemo)(function(){var e,t,n,r=null==u||null===(e=u[l])||void 0===e?void 0:e.fileUploaded,o=(null==r?void 0:r.name)||(null==r?void 0:r.fileName);return o?{name:o,fileName:(null==r?void 0:r.fileName)||o,size:null!==(t=null==r?void 0:r.size)&&void 0!==t?t:0,type:null!==(n=null==r?void 0:r.type)&&void 0!==n?n:\"\"}:null},[u,l]),k=R||I,B=!R&&Boolean(I),F=u.moduleConfig,j=null==u||null===(t=u.agronomyRecommendation)||void 0===t||null===(t=t.fileUploaded)||void 0===t?void 0:t.fileName,H=o().useMemo(function(){var e,t,n,r=(null==F||null===(e=F.season)||void 0===e?void 0:e.label)&&(null==F||null===(t=F.crop)||void 0===t?void 0:t.label)&&(null==F||null===(n=F.year)||void 0===n?void 0:n.label),o=(null==F?void 0:F.brands)&&(null==F?void 0:F.brands.length)>0;return!r||!o},[null==F?void 0:F.season,null==F?void 0:F.crop,null==F?void 0:F.year,null==F?void 0:F.brands]),U=function(){var e,t,n,r,o,a,i=Ia(Ia({mlp_id:null!==(e=null==u?void 0:u.mlpId)&&void 0!==e?e:0,mlp_name:\"\".concat(null==F||null===(t=F.season)||void 0===t?void 0:t.label,\"_\").concat(null==F||null===(n=F.crop)||void 0===n?void 0:n.label,\"_\").concat(null==F||null===(r=F.year)||void 0===r?void 0:r.label),crop_id:null==F||null===(o=F.crop)||void 0===o?void 0:o.value},null!=j&&j.length?{file_name:j}:{}),{},{hybrids:null==F||null===(a=F.brands)||void 0===a?void 0:a.map(function(e){return{hybrid_id:e.value,hybrid_name:e.label}})});\"function\"==typeof h&&Y(i)},Y=function(){var e=La(Da().m(function e(t){var n;return Da().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,gn(C,w,t,T,h);case 1:e.n=3;break;case 2:throw e.p=2,n=e.v,T({message:n.message||A(\"FAILED_TO_DOWNLOAD_REPORT\"),type:\"error\"}),n;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=La(Da().m(function e(){var t,n,r,o,a;return Da().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R){e.n=1;break}return e.a(2);case 1:return e.p=1,S(!0),t=(0,en.S2)(R),e.n=2,mn(C,w,null==u?void 0:u.mlpId,t.name,R);case 2:if(200==(null==(n=e.v)?void 0:n.statusCode)){e.n=3;break}return T({message:(null==n?void 0:n.message)||M.or,type:\"error\"}),P(),S(!1),e.a(2);case 3:return e.n=4,hn(C,w,S,R);case 4:return r=e.v,e.n=5,(0,E.i3)(null==r?void 0:r.data,t);case 5:200===(o=e.v).status&&\"OK\"===o.statusText?(x(),c(function(e){return Ia(Ia({},e),{},ka({},l,Ia(Ia({},e[l]),{},{templateDownloaded:!0,fileUploaded:{fileName:t.name,name:t.name}})))}),null==f||f(),T({message:M.PB,type:\"success\"})):T({message:M.or,type:\"error\"}),e.n=7;break;case 6:e.p=6,a=e.v,T({message:(null==a?void 0:a.message)||M.or,type:\"error\"});case 7:return e.p=7,S(!1),e.f(7);case 8:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(){return e.apply(this,arguments)}}();return o().createElement(Zr,{title:A(\"AGRONOMY_RECOMMENDATION\"),icon:n(40165)},o().createElement(s.A,{display:\"flex\",flexDirection:\"column\",gap:\"20px\"},m||y?o().createElement(Ya,{onDownload:U,fileName:(null==u||null===(i=u.agronomyRecommendation)||void 0===i||null===(i=i.fileUploaded)||void 0===i?void 0:i.fileName)||\"\"}):o().createElement(o().Fragment,null,o().createElement(Ua,{onDownload:U,isDisabled:H,stepHeaderTitle:B?A(\"DOWNLOAD_AGRO_TEMEPLATE\"):void 0}),o().createElement(Ga,{selectedFile:k,isUploadEnabled:Boolean(R),allowRemove:!B,fileButtonLabel:B?\"Replace file\":void 0,onUploadSuccess:L,onRemove:P,error:N,shouldValidate:p,handleSubmitTemplate:G}))))},sectionName:\"agronomyRecommendation\"}],bi=function(e){var t=e.sectionFormValues,n=e.setSectionFormValues,r=e.shouldValidate,a=void 0!==r&&r,i=e.showAgronomyRecommendation,l=void 0!==i&&i,u=e.onTemplateUploadSuccess;return o().createElement(s.A,{display:\"flex\",flexDirection:\"column\",gap:\"20px\"},Ei.filter(function(e){return\"agronomyRecommendation\"!==e.sectionName||l}).map(function(e){var r=e.Component,i=e.sectionName,l=r;return\"agronomyRecommendation\"===i?o().createElement(l,{key:i,sectionName:i,sectionFormValues:t,setSectionFormValues:n,shouldValidate:a,onTemplateUploadSuccess:u}):o().createElement(l,{key:i,sectionName:i,sectionFormValues:t,setSectionFormValues:n,shouldValidate:a})}))},_i=function(e){var t=e.onCancel,n=e.onSubmit,r=e.isSubmitting,a=void 0!==r&&r,i=e.showDoneButton,l=void 0!==i&&i,s=(0,g.Bd)().t;return o().createElement(u.A,{className:\"btnsBlock\",direction:\"row\",gap:2,justifyContent:\"flex-end\"},o().createElement(m.A,{variant:\"outlined\",buttonName:s(\"CANCEL\"),color:\"secondary\",fullwidth:!1,onButtonClick:t,disabled:a}),l?o().createElement(m.A,{variant:\"contained\",buttonName:s(\"DONE\"),fullwidth:!1,color:\"primary\",onButtonClick:n,disabled:a}):o().createElement(m.A,{variant:\"contained\",buttonName:\"Save as Draft\",fullwidth:!1,color:\"primary\",onButtonClick:n,disabled:a}))};const Ci=function(){var e,t,n,i,l,u,c=(0,r.useContext)(O.v),d=c.BackOfficeProps,p=d.globalStore.User,g=d.baseurl,h=c.triggerShowLoader,m=c.triggerToastMsg,v=(0,a.Zp)(),A=Xa((0,r.useState)(za),2),y=A[0],E=A[1],C=Xa((0,r.useState)(!1),2),w=C[0],S=C[1],T=Xa((0,r.useState)(null),2),N=T[0],L=T[1],M=Xa((0,r.useState)(!1),2),x=M[0],I=M[1],k=Xa((0,r.useState)([]),2),B=k[0],F=k[1],j=Xa((0,r.useState)(!1),2),H=j[0],Y=j[1],G=\"createMlp_locationState\",z=function(e){var t,n=(0,a.zy)(),o=(0,a.Zp)(),i=(0,r.useMemo)(function(){try{var t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},[e]),l=null!==(t=n.state)&&void 0!==t?t:i;return(0,r.useEffect)(function(){null!=n.state&&sessionStorage.setItem(e,JSON.stringify(n.state))},[e,n.state]),(0,r.useEffect)(function(){null==n.state&&null!=i&&o(n.pathname+n.search,{replace:!0,state:i})},[n.state,i,o,n.pathname,n.search]),l}(G);(0,r.useEffect)(function(){return function(){try{sessionStorage.removeItem(G)}catch(e){}}},[G]);var V=(null==z||null===(e=z.mlpData)||void 0===e?void 0:e.mlpName)||(null==z||null===(t=z.mlpData)||void 0===t?void 0:t.name)||(null==z||null===(n=z.mlpData)||void 0===n?void 0:n.code)||\"\",q=(0,r.useMemo)(function(){var e,t=String((null==z||null===(e=z.mlpData)||void 0===e?void 0:e.status)||\"\").toUpperCase(),n=Boolean((null==z?void 0:z.edit)&&\"ACTIVE\"===t);return!(null!=z&&z.view||n)},[null==z?void 0:z.view,null==z?void 0:z.edit,null==z||null===(i=z.mlpData)||void 0===i?void 0:i.status]),W=(0,r.useMemo)(function(){return null!=z&&z.view?V?[].concat(ii,[{name:V,path:\"\"}]):ii:ai},[null==z?void 0:z.view,V]);(0,r.useEffect)(function(){(null!=z&&z.edit||null!=z&&z.view)&&null!=z&&z.mlpData&&vn(z.mlpData,p,g,h).then(function(e){var t=function(e){var t,n,r,o,a,i,l,s,u,c,d,p,f,g,h,m,v,A,y=(null==e?void 0:e.moduleConfig)||{},E=null!==(t=null!==(n=null!==(r=null==y?void 0:y.season)&&void 0!==r?r:null==e||null===(o=e.season)||void 0===o?void 0:o.value)&&void 0!==n?n:null==e?void 0:e.season)&&void 0!==t?t:null,b=null!==(a=null!==(i=null!==(l=null==y?void 0:y.crop)&&void 0!==l?l:null==e||null===(s=e.cropDto)||void 0===s?void 0:s.id)&&void 0!==i?i:null==e?void 0:e.crop)&&void 0!==a?a:null,_=null!==(u=null!==(c=null!==(d=null==y?void 0:y.year)&&void 0!==d?d:null==e||null===(p=e.year)||void 0===p?void 0:p.value)&&void 0!==c?c:null==e?void 0:e.year)&&void 0!==u?u:null,C=null!==(f=null==y?void 0:y.competitors)&&void 0!==f?f:null==e?void 0:e.competitors,w=null!==(g=null==y?void 0:y.brands)&&void 0!==g?g:null==e?void 0:e.hybrids;return{mlpId:null==e?void 0:e.id,moduleConfig:{season:E,crop:null!=b?String(b):null,competitors:si(C),year:_,startDate:null!==(h=null!==(m=null==y?void 0:y.startDate)&&void 0!==m?m:null==e?void 0:e.startDate)&&void 0!==h?h:null,endDate:null!==(v=null!==(A=null==y?void 0:y.endDate)&&void 0!==A?A:null==e?void 0:e.endDate)&&void 0!==v?v:null,brands:si(w)},categoryValue:ci(e),approverConfig:ui(null==e?void 0:e.approverConfig),agronomyRecommendation:{templateDownloaded:!1,fileUploaded:{fileName:(null==e?void 0:e.agronomyRecommendation)||\"\"}}}}(e);E(t)}).catch(function(e){console.error(\"Error fetching MLP details:\",e)}),oe(),ae()},[]);var Q=function(e){var t=(0,r.useCallback)(function(){var t=ti(Ja().m(function t(n){var r,o,a,i,l;return Ja().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,hi(n.moduleConfig,e);case 1:return r=t.v,t.n=2,mi(n.categoryValue);case 2:return o=t.v,a=vi(n.approverConfig),i=Ai(n.agronomyRecommendation),l=r&&o&&a&&i,t.a(2,l)}},t)}));return function(e){return t.apply(this,arguments)}}(),[e]);return{validateForm:t}}(q),K=Q.validateForm,$=(0,r.useMemo)(function(){var e,t;return t=null==y||null===(e=y.moduleConfig)||void 0===e?void 0:e.brands,Array.isArray(t)?t.map(function(e){return void 0!==(null==e?void 0:e.value)&&null!==(null==e?void 0:e.value)?e.value:void 0!==(null==e?void 0:e.id)&&null!==(null==e?void 0:e.id)?e.id:e}).filter(function(e){return null!=e}).map(function(e){return\"string\"==typeof e?e:Number(e)}):[]},[null==y||null===(l=y.moduleConfig)||void 0===l?void 0:l.brands]),X=(0,r.useMemo)(function(){return!!B.length&&!function(e,t){if(e.length!==t.length)return!1;var n=ni(e).map(String).sort(function(e,t){return e.localeCompare(t)}),r=ni(t).map(String).sort(function(e,t){return e.localeCompare(t)});return n.every(function(e,t){return e===r[t]})}($,B)},[$,B]),J=x&&!X,Z=function(e,t,n,o,i){var l=(0,a.Zp)(),s=Xa((0,r.useState)(!1),2),u=s[0],c=s[1],d=(0,r.useContext)(O.v),p=d.BackOfficeProps,f=p.globalStore.User,g=p.baseurl,h=d.triggerShowLoader,m=d.triggerToastMsg,v=function(e,t){var n,r,a,l,s,u,c=function(e){if(!e)return null;var t=Xa(U()(e).format(\"MM/DD/YYYY\").split(\"/\"),3),n=t[0],r=t[1],o=t[2];return\"\".concat(o,\"-\").concat(n.padStart(2,\"0\"),\"-\").concat(r.padStart(2,\"0\"))},d=function(e){return e.filter(function(e){return e.checked}).map(function(e){return e.value})},p=function(e){var t=Number.parseInt(String(e),10);return Number.isNaN(t)?0:t};return{id:null!==(n=null==e?void 0:e.mlpId)&&void 0!==n?n:null,moduleConfig:{buId:(null==f||null===(r=f.selectedBusinessUnit)||void 0===r?void 0:r.bu_id)||0,season:e.moduleConfig.season.value,cropId:e.moduleConfig.crop.value,competitorList:d(e.moduleConfig.competitor),year:e.moduleConfig.year.value,startDate:c(e.moduleConfig.startDate),endDate:c(e.moduleConfig.endDate),hybridList:d(e.moduleConfig.brands)},categoryValue:{highPotentialRequest:{minValue:p(e.categoryValue.highPotential.minValue),maxValue:p(e.categoryValue.highPotential.maxValue)},lowPotentialRequest:{minValue:p(e.categoryValue.lowPotential.minValue),maxValue:p(e.categoryValue.lowPotential.maxValue)},highShareRequest:{minValue:p(e.categoryValue.highShare.minValue),maxValue:p(e.categoryValue.highShare.maxValue)},lowShareRequest:{minValue:p(e.categoryValue.lowShare.minValue),maxValue:p(e.categoryValue.lowShare.maxValue)}},approverConfigs:[{roleId:null==o?void 0:o[0],startDate:c(e.approverConfig.tm.approvalStartDate),endDate:c(e.approverConfig.tm.approvalEndDate),duration:e.approverConfig.tm.durationDays},{roleId:null==o?void 0:o[1],startDate:c(e.approverConfig.bm.approvalStartDate),endDate:c(e.approverConfig.bm.approvalEndDate),duration:e.approverConfig.bm.durationDays},{roleId:null==o?void 0:o[2],startDate:c(e.approverConfig.dml.approvalStartDate),endDate:c(e.approverConfig.dml.approvalEndDate),duration:e.approverConfig.dml.durationDays}],agronomyRecommendation:{templateDownloaded:null===(a=e.agronomyRecommendation)||void 0===a?void 0:a.templateDownloaded,fileUploaded:null!==(l=e.agronomyRecommendation)&&void 0!==l&&null!==(l=l.fileUploaded)&&void 0!==l&&l.fileName?null==e||null===(s=e.agronomyRecommendation)||void 0===s?void 0:s.fileUploaded:null},status:\"draft\"!==t&&i?(null!==(u=c(e.moduleConfig.startDate))&&void 0!==u?u:\"\")<=U()().format(\"YYYY-MM-DD\")?\"ACTIVE\":\"SUBMITTED\":\"DRAFT\"}},A=(0,r.useCallback)(function(){var r=ti(Ja().m(function r(o,a){var i,s,u,d;return Ja().w(function(r){for(;;)switch(r.p=r.n){case 0:return console.log(\"sectionFormValues+++\",e),r.n=1,t(e);case 1:if(r.v){r.n=2;break}return n(!0),m({message:\"Please fill all required fields correctly\",type:\"error\"}),r.a(2,!1);case 2:return c(!0),r.p=3,i=v(e,o),console.log(\"Request body:\",JSON.stringify(i,null,2)),r.n=4,fn(i,f,g,h);case 4:if(s=r.v,m({message:null==s?void 0:s.message,type:\"success\"}),!Boolean(null==a?void 0:a.stayOnPage)){r.n=5;break}return r.a(2,!0);case 5:try{sessionStorage.removeItem(\"createMlp_locationState\")}catch(e){}return l(\"..\"),r.a(2,!0);case 6:return r.p=6,d=r.v,m({message:(null==d?void 0:d.message)||(null==d||null===(u=d.data)||void 0===u?void 0:u.errorMessage)||\"An error occurred while saving MLP data\",type:\"error\"}),r.a(2,!1);case 7:return r.p=7,c(!1),r.f(7);case 8:return r.a(2)}},r,null,[[3,6,7,8]])}));return function(e,t){return r.apply(this,arguments)}}(),[e,t,n,f,g,h,m,l,i,o]);return{handleSubmit:A,isSubmitting:u}}(y,K,S,N,J),ee=Z.handleSubmit,te=Z.isSubmitting;(0,r.useEffect)(function(){x&&!B.length&&$.length&&F($)},[x,B.length,$]);var ne=(0,r.useCallback)(ti(Ja().m(function e(){var t;return Ja().w(function(e){for(;;)switch(e.n){case 0:return Y(!1),e.n=1,ee(\"draft\",{stayOnPage:!0});case 1:if(e.v){e.n=2;break}return e.a(2);case 2:I(!1),F($),m({message:\"Draft saved. Please upload the updated Agronomy Recommendation template to continue.\",type:\"success\"}),null!=z&&null!==(t=z.mlpData)&&void 0!==t&&t.id&&vn(z.mlpData,p,g,h).then(function(e){E(function(t){var n;return Ka(Ka({},t),{},{mlpId:null!==(n=null==e?void 0:e.id)&&void 0!==n?n:t.mlpId,categoryValue:ci(e),approverConfig:ui(null==e?void 0:e.approverConfig),agronomyRecommendation:{templateDownloaded:!1,fileUploaded:{fileName:(null==e?void 0:e.agronomyRecommendation)||\"\"}}})})}).catch(function(e){console.error(\"Error refreshing MLP details:\",e)});case 3:return e.a(2)}},e)})),[ee,m,null==z?void 0:z.mlpData,p,g,h,$]),re=(0,r.useCallback)(ti(Ja().m(function e(){return Ja().w(function(e){for(;;)switch(e.n){case 0:if(!J){e.n=2;break}return e.n=1,ee(\"final\");case 1:case 4:return e.a(2);case 2:if(!x||!X){e.n=3;break}return Y(!0),e.a(2);case 3:return e.n=4,ee(\"draft\")}},e)})),[J,X,ee,x]),oe=function(){(0,qa.aN)(p,g,{moduleName:\"MLP\",keys:[Va]}).then(function(e){var t,n,r;if(null!=e&&null!==(t=e.data)&&void 0!==t&&t[0]&&(null==e||null===(n=e.data)||void 0===n?void 0:n[0].key)===Va&&null!=e&&null!==(r=e.data)&&void 0!==r&&r[0].value){var o=JSON.parse(e.data[0].value);L(o)}}).catch(function(e){console.error(\"Error fetching role config:\",e)})},ae=function(){var e,t;null!=z&&null!==(e=z.mlpData)&&void 0!==e&&e.id&&function(e,t,n,r){return ln({endpoint:_.p.GET_AGRONOMY_TEMPLATE_UPLOAD_CONFIRMATION.replace(\"__MLP_ID__\",e.mlp_id),method:b.dF.GET},t,n,r)}({mlp_id:(null==z||null===(t=z.mlpData)||void 0===t?void 0:t.id)||0},p,g,h).then(function(e){I(Boolean(null==e?void 0:e.fileName))}).catch(function(e){console.error(\"Error fetching agronomy template upload confirmation:\",e)})},ie=(0,r.useCallback)(function(){try{sessionStorage.removeItem(\"createMlp_locationState\")}catch(e){}v(\"..\")},[v]);return o().createElement(Yr.T,null,o().createElement(yi,{routePathName:W}),o().createElement(s.A,{display:\"flex\",flexDirection:\"column\",gap:\"20px\"},o().createElement(co,{initialViewMode:(null==z?void 0:z.view)||!1},o().createElement(bi,{sectionFormValues:y,setSectionFormValues:E,shouldValidate:w,showAgronomyRecommendation:Boolean(null==z||null===(u=z.mlpData)||void 0===u?void 0:u.mlpName),onTemplateUploadSuccess:ae})),o().createElement(s.A,{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"space-between\"},!(null!=z&&z.view)&&o().createElement(D.A,{fontSize:12,color:R.w.palette.grey[900]},\"* \",(0,f.t)(\"ALL_FIELDS_ARE_MANDATORY\")),!(null!=z&&z.view)&&o().createElement(_i,{onCancel:ie,onSubmit:re,isSubmitting:te,showDoneButton:J}))),o().createElement(P.R,{isVisible:H,onRequestClose:function(){return Y(!1)},message:\"Hybrid selection has changed. Do you want to save these changes as draft?\",onSave:ne,primaryBtnName:\"OK\",secondaryBtnName:\"Cancel\"}))},wi=function(){return o().createElement(a.BV,null,o().createElement(a.qh,{path:\"/\".concat(i.fp.NewMlp,\"/*\"),element:o().createElement(r.Suspense,{fallback:null},o().createElement(Ci,null))}),o().createElement(a.qh,{path:\"/*\",element:o().createElement(r.Suspense,{fallback:null},o().createElement(Hr,null))}))}},86990:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>O});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(47379),s=n(75659),u=n(771),c=n(11848),d=n(39770),p=n(25669),f=n(18850),g=n(28466),h=n(38413),m=n(31609);function v(e){return(0,m.Ay)(\"MuiButton\",e)}const A=(0,h.A)(\"MuiButton\",[\"root\",\"text\",\"textInherit\",\"textPrimary\",\"textSecondary\",\"textSuccess\",\"textError\",\"textInfo\",\"textWarning\",\"outlined\",\"outlinedInherit\",\"outlinedPrimary\",\"outlinedSecondary\",\"outlinedSuccess\",\"outlinedError\",\"outlinedInfo\",\"outlinedWarning\",\"contained\",\"containedInherit\",\"containedPrimary\",\"containedSecondary\",\"containedSuccess\",\"containedError\",\"containedInfo\",\"containedWarning\",\"disableElevation\",\"focusVisible\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorSuccess\",\"colorError\",\"colorInfo\",\"colorWarning\",\"textSizeSmall\",\"textSizeMedium\",\"textSizeLarge\",\"outlinedSizeSmall\",\"outlinedSizeMedium\",\"outlinedSizeLarge\",\"containedSizeSmall\",\"containedSizeMedium\",\"containedSizeLarge\",\"sizeMedium\",\"sizeSmall\",\"sizeLarge\",\"fullWidth\",\"startIcon\",\"endIcon\",\"icon\",\"iconSizeSmall\",\"iconSizeMedium\",\"iconSizeLarge\"]),y=a.createContext({}),E=a.createContext(void 0);var b=n(74848);const _=[\"children\",\"color\",\"component\",\"className\",\"disabled\",\"disableElevation\",\"disableFocusRipple\",\"endIcon\",\"focusVisibleClassName\",\"fullWidth\",\"size\",\"startIcon\",\"type\",\"variant\"],C=e=>(0,o.A)({},\"small\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:18}},\"medium\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:20}},\"large\"===e.size&&{\"& > *:nth-of-type(1)\":{fontSize:22}}),w=(0,c.Ay)(f.A,{shouldForwardProp:e=>(0,d.A)(e)||\"classes\"===e,name:\"MuiButton\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,g.A)(n.color)}`],t[`size${(0,g.A)(n.size)}`],t[`${n.variant}Size${(0,g.A)(n.size)}`],\"inherit\"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const a=\"light\"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i=\"light\"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,o.A)({},e.typography.button,{minWidth:64,padding:\"6px 16px\",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([\"background-color\",\"box-shadow\",\"border-color\",\"color\"],{duration:e.transitions.duration.short}),\"&:hover\":(0,o.A)({textDecoration:\"none\",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"text\"===t.variant&&\"inherit\"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"outlined\"===t.variant&&\"inherit\"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,u.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}},\"contained\"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],\"@media (hover: none)\":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},\"contained\"===t.variant&&\"inherit\"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,\"@media (hover: none)\":{backgroundColor:(e.vars||e).palette[t.color].main}}),\"&:active\":(0,o.A)({},\"contained\"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${A.focusVisible}`]:(0,o.A)({},\"contained\"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${A.disabled}`]:(0,o.A)({color:(e.vars||e).palette.action.disabled},\"outlined\"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},\"contained\"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},\"text\"===t.variant&&{padding:\"6px 8px\"},\"text\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].main},\"outlined\"===t.variant&&{padding:\"5px 15px\",border:\"1px solid currentColor\"},\"outlined\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,u.X4)(e.palette[t.color].main,.5)}`},\"contained\"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},\"contained\"===t.variant&&\"inherit\"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},\"inherit\"===t.color&&{color:\"inherit\",borderColor:\"currentColor\"},\"small\"===t.size&&\"text\"===t.variant&&{padding:\"4px 5px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"text\"===t.variant&&{padding:\"8px 11px\",fontSize:e.typography.pxToRem(15)},\"small\"===t.size&&\"outlined\"===t.variant&&{padding:\"3px 9px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"outlined\"===t.variant&&{padding:\"7px 21px\",fontSize:e.typography.pxToRem(15)},\"small\"===t.size&&\"contained\"===t.variant&&{padding:\"4px 10px\",fontSize:e.typography.pxToRem(13)},\"large\"===t.size&&\"contained\"===t.variant&&{padding:\"8px 22px\",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:\"100%\"})},({ownerState:e})=>e.disableElevation&&{boxShadow:\"none\",\"&:hover\":{boxShadow:\"none\"},[`&.${A.focusVisible}`]:{boxShadow:\"none\"},\"&:active\":{boxShadow:\"none\"},[`&.${A.disabled}`]:{boxShadow:\"none\"}}),S=(0,c.Ay)(\"span\",{name:\"MuiButton\",slot:\"StartIcon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,g.A)(n.size)}`]]}})(({ownerState:e})=>(0,o.A)({display:\"inherit\",marginRight:8,marginLeft:-4},\"small\"===e.size&&{marginLeft:-2},C(e))),T=(0,c.Ay)(\"span\",{name:\"MuiButton\",slot:\"EndIcon\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,g.A)(n.size)}`]]}})(({ownerState:e})=>(0,o.A)({display:\"inherit\",marginRight:-4,marginLeft:8},\"small\"===e.size&&{marginRight:-2},C(e))),O=a.forwardRef(function(e,t){const n=a.useContext(y),u=a.useContext(E),c=(0,l.A)(n,e),d=(0,p.b)({props:c,name:\"MuiButton\"}),{children:f,color:h=\"primary\",component:m=\"button\",className:A,disabled:C=!1,disableElevation:O=!1,disableFocusRipple:D=!1,endIcon:R,focusVisibleClassName:N,fullWidth:L=!1,size:P=\"medium\",startIcon:M,type:x,variant:I=\"text\"}=d,k=(0,r.A)(d,_),B=(0,o.A)({},d,{color:h,component:m,disabled:C,disableElevation:O,disableFocusRipple:D,fullWidth:L,size:P,type:x,variant:I}),F=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,classes:l}=e,u={root:[\"root\",i,`${i}${(0,g.A)(t)}`,`size${(0,g.A)(a)}`,`${i}Size${(0,g.A)(a)}`,`color${(0,g.A)(t)}`,n&&\"disableElevation\",r&&\"fullWidth\"],label:[\"label\"],startIcon:[\"icon\",\"startIcon\",`iconSize${(0,g.A)(a)}`],endIcon:[\"icon\",\"endIcon\",`iconSize${(0,g.A)(a)}`]},c=(0,s.A)(u,v,l);return(0,o.A)({},l,c)})(B),j=M&&(0,b.jsx)(S,{className:F.startIcon,ownerState:B,children:M}),H=R&&(0,b.jsx)(T,{className:F.endIcon,ownerState:B,children:R}),U=u||\"\";return(0,b.jsxs)(w,(0,o.A)({ownerState:B,className:(0,i.A)(n.className,F.root,A,U),component:m,disabled:C,focusRipple:!D,focusVisibleClassName:(0,i.A)(F.focusVisible,N),ref:t,type:x},k,{classes:F,children:[j,f,H]}))})},87068:(e,t,n)=>{var r=n(37217),o=n(25911),a=n(21986),i=n(50689),l=n(5861),s=n(56449),u=n(3656),c=n(37167),d=\"[object Arguments]\",p=\"[object Array]\",f=\"[object Object]\",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,m,v){var A=s(e),y=s(t),E=A?p:l(e),b=y?p:l(t),_=(E=E==d?f:E)==f,C=(b=b==d?f:b)==f,w=E==b;if(w&&u(e)){if(!u(t))return!1;A=!0,_=!1}if(w&&!_)return v||(v=new r),A||c(e)?o(e,t,n,h,m,v):a(e,t,E,n,h,m,v);if(!(1&n)){var S=_&&g.call(e,\"__wrapped__\"),T=C&&g.call(t,\"__wrapped__\");if(S||T){var O=S?e.value():e,D=T?t.value():t;return v||(v=new r),m(O,D,n,h,v)}}return!!w&&(v||(v=new r),i(e,t,n,h,m,v))}},87127:(e,t,n)=>{\"use strict\";e.exports=n.p+\"c8062043afc53a35ae4d.svg\"},87220:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(33904);r({target:\"Number\",stat:!0,forced:Number.parseFloat!==o},{parseFloat:o})},87296:(e,t,n)=>{var r,o=n(55481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+r:\"\";e.exports=function(e){return!!a&&a in e}},87433:(e,t,n)=>{\"use strict\";var r=n(34376),o=n(33517),a=n(20034),i=n(78227)(\"species\"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===l||r(t.prototype))||a(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?l:t}},87458:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>x});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(17437),u=n(771),c=n(73788),d=n(28466),p=n(11848),f=n(25669),g=n(38413),h=n(31609);function m(e){return(0,h.Ay)(\"MuiLinearProgress\",e)}(0,g.A)(\"MuiLinearProgress\",[\"root\",\"colorPrimary\",\"colorSecondary\",\"determinate\",\"indeterminate\",\"buffer\",\"query\",\"dashed\",\"dashedColorPrimary\",\"dashedColorSecondary\",\"bar\",\"barColorPrimary\",\"barColorSecondary\",\"bar1Indeterminate\",\"bar1Determinate\",\"bar1Buffer\",\"bar2Indeterminate\",\"bar2Buffer\"]);var v=n(74848);const A=[\"className\",\"color\",\"value\",\"valueBuffer\",\"variant\"];let y,E,b,_,C,w,S=e=>e;const T=(0,s.i7)(y||(y=S`\n  0% {\n    left: -35%;\n    right: 100%;\n  }\n\n  60% {\n    left: 100%;\n    right: -90%;\n  }\n\n  100% {\n    left: 100%;\n    right: -90%;\n  }\n`)),O=(0,s.i7)(E||(E=S`\n  0% {\n    left: -200%;\n    right: 100%;\n  }\n\n  60% {\n    left: 107%;\n    right: -8%;\n  }\n\n  100% {\n    left: 107%;\n    right: -8%;\n  }\n`)),D=(0,s.i7)(b||(b=S`\n  0% {\n    opacity: 1;\n    background-position: 0 -23px;\n  }\n\n  60% {\n    opacity: 0;\n    background-position: 0 -23px;\n  }\n\n  100% {\n    opacity: 1;\n    background-position: -200px -23px;\n  }\n`)),R=(e,t)=>\"inherit\"===t?\"currentColor\":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:\"light\"===e.palette.mode?(0,u.a)(e.palette[t].main,.62):(0,u.e$)(e.palette[t].main,.5),N=(0,p.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,d.A)(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>(0,o.A)({position:\"relative\",overflow:\"hidden\",display:\"block\",height:4,zIndex:0,\"@media print\":{colorAdjust:\"exact\"},backgroundColor:R(t,e.color)},\"inherit\"===e.color&&\"buffer\"!==e.variant&&{backgroundColor:\"none\",\"&::before\":{content:'\"\"',position:\"absolute\",left:0,top:0,right:0,bottom:0,backgroundColor:\"currentColor\",opacity:.3}},\"buffer\"===e.variant&&{backgroundColor:\"transparent\"},\"query\"===e.variant&&{transform:\"rotate(180deg)\"})),L=(0,p.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Dashed\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,d.A)(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=R(t,e.color);return(0,o.A)({position:\"absolute\",marginTop:0,height:\"100%\",width:\"100%\"},\"inherit\"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:\"10px 10px\",backgroundPosition:\"0 -23px\"})},(0,s.AH)(_||(_=S`\n    animation: ${0} 3s infinite linear;\n  `),D)),P=(0,p.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Bar1\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,d.A)(n.color)}`],(\"indeterminate\"===n.variant||\"query\"===n.variant)&&t.bar1Indeterminate,\"determinate\"===n.variant&&t.bar1Determinate,\"buffer\"===n.variant&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>(0,o.A)({width:\"100%\",position:\"absolute\",left:0,bottom:0,top:0,transition:\"transform 0.2s linear\",transformOrigin:\"left\",backgroundColor:\"inherit\"===e.color?\"currentColor\":(t.vars||t).palette[e.color].main},\"determinate\"===e.variant&&{transition:\"transform .4s linear\"},\"buffer\"===e.variant&&{zIndex:1,transition:\"transform .4s linear\"}),({ownerState:e})=>(\"indeterminate\"===e.variant||\"query\"===e.variant)&&(0,s.AH)(C||(C=S`\n      width: auto;\n      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n    `),T)),M=(0,p.Ay)(\"span\",{name:\"MuiLinearProgress\",slot:\"Bar2\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,d.A)(n.color)}`],(\"indeterminate\"===n.variant||\"query\"===n.variant)&&t.bar2Indeterminate,\"buffer\"===n.variant&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>(0,o.A)({width:\"100%\",position:\"absolute\",left:0,bottom:0,top:0,transition:\"transform 0.2s linear\",transformOrigin:\"left\"},\"buffer\"!==e.variant&&{backgroundColor:\"inherit\"===e.color?\"currentColor\":(t.vars||t).palette[e.color].main},\"inherit\"===e.color&&{opacity:.3},\"buffer\"===e.variant&&{backgroundColor:R(t,e.color),transition:\"transform .4s linear\"}),({ownerState:e})=>(\"indeterminate\"===e.variant||\"query\"===e.variant)&&(0,s.AH)(w||(w=S`\n      width: auto;\n      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n    `),O)),x=a.forwardRef(function(e,t){const n=(0,f.b)({props:e,name:\"MuiLinearProgress\"}),{className:a,color:s=\"primary\",value:u,valueBuffer:p,variant:g=\"indeterminate\"}=n,h=(0,r.A)(n,A),y=(0,o.A)({},n,{color:s,variant:g}),E=(e=>{const{classes:t,variant:n,color:r}=e,o={root:[\"root\",`color${(0,d.A)(r)}`,n],dashed:[\"dashed\",`dashedColor${(0,d.A)(r)}`],bar1:[\"bar\",`barColor${(0,d.A)(r)}`,(\"indeterminate\"===n||\"query\"===n)&&\"bar1Indeterminate\",\"determinate\"===n&&\"bar1Determinate\",\"buffer\"===n&&\"bar1Buffer\"],bar2:[\"bar\",\"buffer\"!==n&&`barColor${(0,d.A)(r)}`,\"buffer\"===n&&`color${(0,d.A)(r)}`,(\"indeterminate\"===n||\"query\"===n)&&\"bar2Indeterminate\",\"buffer\"===n&&\"bar2Buffer\"]};return(0,l.A)(o,m,t)})(y),b=(0,c.I)(),_={},C={bar1:{},bar2:{}};if((\"determinate\"===g||\"buffer\"===g)&&void 0!==u){_[\"aria-valuenow\"]=Math.round(u),_[\"aria-valuemin\"]=0,_[\"aria-valuemax\"]=100;let e=u-100;b&&(e=-e),C.bar1.transform=`translateX(${e}%)`}if(\"buffer\"===g&&void 0!==p){let e=(p||0)-100;b&&(e=-e),C.bar2.transform=`translateX(${e}%)`}return(0,v.jsxs)(N,(0,o.A)({className:(0,i.A)(E.root,a),ownerState:y,role:\"progressbar\"},_,{ref:t},h,{children:[\"buffer\"===g?(0,v.jsx)(L,{className:E.dashed,ownerState:y}):null,(0,v.jsx)(P,{className:E.bar1,ownerState:y,style:C.bar1}),\"determinate\"===g?null:(0,v.jsx)(M,{className:E.bar2,ownerState:y,style:C.bar2})]}))})},87467:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>A});var r=n(58168),o=n(98587),a=n(81970),i=n(33068),l=n(57223),s=n(80851),u=n(44675),c=n(35186),d=n(96852),p=n(74848);const f=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function g(e){return`scale(${e}, ${e**2})`}const h={entering:{opacity:1,transform:g(1)},entered:{opacity:1,transform:\"none\"}},m=\"undefined\"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\\/)15(.|_)4/i.test(navigator.userAgent),v=a.forwardRef(function(e,t){const{addEndListener:n,appear:v=!0,children:A,easing:y,in:E,onEnter:b,onEntered:_,onEntering:C,onExit:w,onExited:S,onExiting:T,style:O,timeout:D=\"auto\",TransitionComponent:R=s.Ay}=e,N=(0,o.A)(e,f),L=(0,i.A)(),P=a.useRef(),M=(0,u.A)(),x=a.useRef(null),I=(0,d.A)(x,(0,l.A)(A),t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},B=k(C),F=k((e,t)=>{(0,c.q)(e);const{duration:n,delay:r,easing:o}=(0,c.c)({style:O,timeout:D,easing:y},{mode:\"enter\"});let a;\"auto\"===D?(a=M.transitions.getAutoHeightDuration(e.clientHeight),P.current=a):a=n,e.style.transition=[M.transitions.create(\"opacity\",{duration:a,delay:r}),M.transitions.create(\"transform\",{duration:m?a:.666*a,delay:r,easing:o})].join(\",\"),b&&b(e,t)}),j=k(_),H=k(T),U=k(e=>{const{duration:t,delay:n,easing:r}=(0,c.c)({style:O,timeout:D,easing:y},{mode:\"exit\"});let o;\"auto\"===D?(o=M.transitions.getAutoHeightDuration(e.clientHeight),P.current=o):o=t,e.style.transition=[M.transitions.create(\"opacity\",{duration:o,delay:n}),M.transitions.create(\"transform\",{duration:m?o:.666*o,delay:m?n:n||.333*o,easing:r})].join(\",\"),e.style.opacity=0,e.style.transform=g(.75),w&&w(e)}),Y=k(S);return(0,p.jsx)(R,(0,r.A)({appear:v,in:E,nodeRef:x,onEnter:F,onEntered:j,onEntering:B,onExit:U,onExited:Y,onExiting:H,addEndListener:e=>{\"auto\"===D&&L.start(P.current||0,e),n&&n(x.current,e)},timeout:\"auto\"===D?null:D},N,{children:(e,t)=>a.cloneElement(A,(0,r.A)({style:(0,r.A)({opacity:0,transform:g(.75),visibility:\"exited\"!==e||E?void 0:\"hidden\"},h[e],O,A.props.style),ref:I},t))}))});v.muiSupportAuto=!0;const A=v},87509:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)([(0,a.jsx)(\"path\",{d:\"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2\"},\"0\"),(0,a.jsx)(\"path\",{d:\"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z\"},\"1\")],\"ArticleOutlined\")},87558:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>Ie});var r=n(58168),o=n(98587),a=n(72923),i=n(81970),l=n(31523),s=n(21529),u=n(32325);function c(e){if(null==e)return window;if(\"[object Window]\"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof c(e).Element||e instanceof Element}function p(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function f(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var g=Math.max,h=Math.min,m=Math.round;function v(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+\"/\"+e.version}).join(\" \"):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(v())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&p(e)&&(o=e.offsetWidth>0&&m(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&m(r.height)/e.offsetHeight||1);var i=(d(e)?c(e):window).visualViewport,l=!A()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,f=r.width/o,g=r.height/a;return{width:f,height:g,top:u,right:s+f,bottom:u+g,left:s,x:s,y:u}}function E(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||\"\").toLowerCase():null}function _(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return y(_(e)).left+E(e).scrollLeft}function w(e){return c(e).getComputedStyle(e)}function S(e){var t=w(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function T(e,t,n){void 0===n&&(n=!1);var r,o,a=p(t),i=p(t)&&function(e){var t=e.getBoundingClientRect(),n=m(t.width)/e.offsetWidth||1,r=m(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=_(t),s=y(e,i,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((\"body\"!==b(t)||S(l))&&(u=(r=t)!==c(r)&&p(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:E(r)),p(t)?((d=y(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):l&&(d.x=C(l))),{x:s.left+u.scrollLeft-d.x,y:s.top+u.scrollTop-d.y,width:s.width,height:s.height}}function O(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function D(e){return\"html\"===b(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||_(e)}function R(e){return[\"html\",\"body\",\"#document\"].indexOf(b(e))>=0?e.ownerDocument.body:p(e)&&S(e)?e:R(D(e))}function N(e,t){var n;void 0===t&&(t=[]);var r=R(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=c(r),i=o?[a].concat(a.visualViewport||[],S(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(N(D(i)))}function L(e){return[\"table\",\"td\",\"th\"].indexOf(b(e))>=0}function P(e){return p(e)&&\"fixed\"!==w(e).position?e.offsetParent:null}function M(e){for(var t=c(e),n=P(e);n&&L(n)&&\"static\"===w(n).position;)n=P(n);return n&&(\"html\"===b(n)||\"body\"===b(n)&&\"static\"===w(n).position)?t:n||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&p(e)&&\"fixed\"===w(e).position)return null;var n=D(e);for(f(n)&&(n=n.host);p(n)&&[\"html\",\"body\"].indexOf(b(n))<0;){var r=w(n);if(\"none\"!==r.transform||\"none\"!==r.perspective||\"paint\"===r.contain||-1!==[\"transform\",\"perspective\"].indexOf(r.willChange)||t&&\"filter\"===r.willChange||t&&r.filter&&\"none\"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var x=\"top\",I=\"bottom\",k=\"right\",B=\"left\",F=\"auto\",j=[x,I,k,B],H=\"start\",U=\"end\",Y=\"viewport\",G=\"popper\",z=j.reduce(function(e,t){return e.concat([t+\"-\"+H,t+\"-\"+U])},[]),V=[].concat(j,[F]).reduce(function(e,t){return e.concat([t,t+\"-\"+H,t+\"-\"+U])},[]),q=[\"beforeRead\",\"read\",\"afterRead\",\"beforeMain\",\"main\",\"afterMain\",\"beforeWrite\",\"write\",\"afterWrite\"];function W(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Q={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&\"function\"==typeof e.getBoundingClientRect)})}function $(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Q:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},Q,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o=\"function\"==typeof n?n(l.options):n;p(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:d(e)?N(e):e.contextElement?N(e.contextElement):[],popper:N(t)};var i,u,f=function(e){var t=W(e);return q.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((i=[].concat(r,l.options.modifiers),u=i.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return l.orderedModifiers=f.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if(\"function\"==typeof o){var a=o({state:l,name:t,instance:c,options:r});s.push(a||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(K(t,n)){l.rects={reference:T(t,M(n),\"fixed\"===l.options.strategy),popper:O(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;\"function\"==typeof a&&(l=a({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(l)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){p(),u=!0}};if(!K(e,t))return c;function p(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var X={passive:!0};function J(e){return e.split(\"-\")[0]}function Z(e){return e.split(\"-\")[1]}function ee(e){return[\"top\",\"bottom\"].indexOf(e)>=0?\"x\":\"y\"}function te(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?J(o):null,i=o?Z(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case x:t={x:l,y:n.y-r.height};break;case I:t={x:l,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:s};break;case B:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?ee(a):null;if(null!=u){var c=\"y\"===u?\"height\":\"width\";switch(i){case H:t[u]=t[u]-(n[c]/2-r[c]/2);break;case U:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var ne={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function re(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=i.x,g=void 0===f?0:f,h=i.y,v=void 0===h?0:h,A=\"function\"==typeof d?d({x:g,y:v}):{x:g,y:v};g=A.x,v=A.y;var y=i.hasOwnProperty(\"x\"),E=i.hasOwnProperty(\"y\"),b=B,C=x,S=window;if(u){var T=M(n),O=\"clientHeight\",D=\"clientWidth\";T===c(n)&&\"static\"!==w(T=_(n)).position&&\"absolute\"===l&&(O=\"scrollHeight\",D=\"scrollWidth\"),(o===x||(o===B||o===k)&&a===U)&&(C=I,v-=(p&&T===S&&S.visualViewport?S.visualViewport.height:T[O])-r.height,v*=s?1:-1),o!==B&&(o!==x&&o!==I||a!==U)||(b=k,g-=(p&&T===S&&S.visualViewport?S.visualViewport.width:T[D])-r.width,g*=s?1:-1)}var R,N=Object.assign({position:l},u&&ne),L=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:m(n*o)/o||0,y:m(r*o)/o||0}}({x:g,y:v},c(n)):{x:g,y:v};return g=L.x,v=L.y,s?Object.assign({},N,((R={})[C]=E?\"0\":\"\",R[b]=y?\"0\":\"\",R.transform=(S.devicePixelRatio||1)<=1?\"translate(\"+g+\"px, \"+v+\"px)\":\"translate3d(\"+g+\"px, \"+v+\"px, 0)\",R)):Object.assign({},N,((t={})[C]=E?v+\"px\":\"\",t[b]=y?g+\"px\":\"\",t.transform=\"\",t))}var oe={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function ae(e){return e.replace(/left|right|bottom|top/g,function(e){return oe[e]})}var ie={start:\"end\",end:\"start\"};function le(e){return e.replace(/start|end/g,function(e){return ie[e]})}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===Y?ue(function(e,t){var n=c(e),r=_(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=A();(u||!u&&\"fixed\"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+C(e),y:s}}(e,n)):d(t)?function(e,t){var n=y(e,!1,\"fixed\"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ue(function(e){var t,n=_(e),r=E(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=g(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=g(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+C(e),s=-r.scrollTop;return\"rtl\"===w(o||n).direction&&(l+=g(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(_(e)))}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function pe(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function fe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?\"clippingParents\":l,u=n.rootBoundary,c=void 0===u?Y:u,f=n.elementContext,m=void 0===f?G:f,v=n.altBoundary,A=void 0!==v&&v,E=n.padding,C=void 0===E?0:E,S=de(\"number\"!=typeof C?C:pe(C,j)),T=m===G?\"reference\":G,O=e.rects.popper,R=e.elements[A?T:m],L=function(e,t,n,r){var o=\"clippingParents\"===t?function(e){var t=N(D(e)),n=[\"absolute\",\"fixed\"].indexOf(w(e).position)>=0&&p(e)?M(e):e;return d(n)?t.filter(function(e){return d(e)&&se(e,n)&&\"body\"!==b(e)}):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(t,n){var o=ce(e,n,r);return t.top=g(o.top,t.top),t.right=h(o.right,t.right),t.bottom=h(o.bottom,t.bottom),t.left=g(o.left,t.left),t},ce(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(d(R)?R:R.contextElement||_(e.elements.popper),s,c,i),P=y(e.elements.reference),B=te({reference:P,element:O,strategy:\"absolute\",placement:o}),F=ue(Object.assign({},O,B)),H=m===G?F:P,U={top:L.top-H.top+S.top,bottom:H.bottom-L.bottom+S.bottom,left:L.left-H.left+S.left,right:H.right-L.right+S.right},z=e.modifiersData.offset;if(m===G&&z){var V=z[o];Object.keys(U).forEach(function(e){var t=[k,I].indexOf(e)>=0?1:-1,n=[x,I].indexOf(e)>=0?\"y\":\"x\";U[e]+=V[n]*t})}return U}function ge(e,t,n){return g(e,h(t,n))}function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[x,k,I,B].some(function(t){return e[t]>=0})}var ve=$({defaultModifiers:[{name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener(\"scroll\",n.update,X)}),l&&s.addEventListener(\"resize\",n.update,X),function(){a&&u.forEach(function(e){e.removeEventListener(\"scroll\",n.update,X)}),l&&s.removeEventListener(\"resize\",n.update,X)}},data:{}},{name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=te({reference:t.rects.reference,element:t.rects.popper,strategy:\"absolute\",placement:t.placement})},data:{}},{name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,u={placement:J(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:\"fixed\"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},u,{offsets:t.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-placement\":t.placement})},data:{}},{name:\"applyStyles\",enabled:!0,phase:\"write\",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];p(o)&&b(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?\"\":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=\"\",e},{});p(r)&&b(r)&&(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:[\"computeStyles\"]},{name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=V.reduce(function(e,n){return e[n]=function(e,t,n){var r=J(e),o=[B,x].indexOf(r)>=0?-1:1,a=\"function\"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[B,k].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e},{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}},{name:\"flip\",enabled:!0,phase:\"main\",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,g=void 0===f||f,h=n.allowedAutoPlacements,m=t.options.placement,v=J(m),A=s||(v!==m&&g?function(e){if(J(e)===F)return[];var t=ae(e);return[le(e),t,le(t)]}(m):[ae(m)]),y=[m].concat(A).reduce(function(e,n){return e.concat(J(n)===F?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?V:s,c=Z(r),d=c?l?z:z.filter(function(e){return Z(e)===c}):j,p=d.filter(function(e){return u.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=fe(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[J(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:h}):n)},[]),E=t.rects.reference,b=t.rects.popper,_=new Map,C=!0,w=y[0],S=0;S<y.length;S++){var T=y[S],O=J(T),D=Z(T)===H,R=[x,I].indexOf(O)>=0,N=R?\"width\":\"height\",L=fe(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),P=R?D?k:B:D?I:x;E[N]>b[N]&&(P=ae(P));var M=ae(P),U=[];if(a&&U.push(L[O]<=0),l&&U.push(L[P]<=0,L[M]<=0),U.every(function(e){return e})){w=T,C=!1;break}_.set(T,U)}if(C)for(var Y=function(e){var t=y.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,\"break\"},G=g?3:1;G>0&&\"break\"!==Y(G);G--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:[\"offset\"],data:{_skip:!1}},{name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,v=void 0===m?0:m,A=fe(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=J(t.placement),E=Z(t.placement),b=!E,_=ee(y),C=\"x\"===_?\"y\":\"x\",w=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,D=\"function\"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,R=\"number\"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(a){var P,F=\"y\"===_?x:B,j=\"y\"===_?I:k,U=\"y\"===_?\"height\":\"width\",Y=w[_],G=Y+A[F],z=Y-A[j],V=f?-T[U]/2:0,q=E===H?S[U]:T[U],W=E===H?-T[U]:-S[U],Q=t.elements.arrow,K=f&&Q?O(Q):{width:0,height:0},$=t.modifiersData[\"arrow#persistent\"]?t.modifiersData[\"arrow#persistent\"].padding:{top:0,right:0,bottom:0,left:0},X=$[F],te=$[j],ne=ge(0,S[U],K[U]),re=b?S[U]/2-V-ne-X-R.mainAxis:q-ne-X-R.mainAxis,oe=b?-S[U]/2+V+ne+te+R.mainAxis:W+ne+te+R.mainAxis,ae=t.elements.arrow&&M(t.elements.arrow),ie=ae?\"y\"===_?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(P=null==N?void 0:N[_])?P:0,se=Y+oe-le,ue=ge(f?h(G,Y+re-le-ie):G,Y,f?g(z,se):z);w[_]=ue,L[_]=ue-Y}if(l){var ce,de=\"x\"===_?x:B,pe=\"x\"===_?I:k,he=w[C],me=\"y\"===C?\"height\":\"width\",ve=he+A[de],Ae=he-A[pe],ye=-1!==[x,B].indexOf(y),Ee=null!=(ce=null==N?void 0:N[C])?ce:0,be=ye?ve:he-S[me]-T[me]-Ee+R.altAxis,_e=ye?he+S[me]+T[me]-Ee-R.altAxis:Ae,Ce=f&&ye?function(e,t,n){var r=ge(e,t,n);return r>n?n:r}(be,he,_e):ge(f?be:ve,he,f?_e:Ae);w[C]=Ce,L[C]=Ce-he}t.modifiersData[r]=L}},requiresIfExists:[\"offset\"]},{name:\"arrow\",enabled:!0,phase:\"main\",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=J(n.placement),s=ee(l),u=[B,k].indexOf(l)>=0?\"height\":\"width\";if(a&&i){var c=function(e,t){return de(\"number\"!=typeof(e=\"function\"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:pe(e,j))}(o.padding,n),d=O(a),p=\"y\"===s?x:B,f=\"y\"===s?I:k,g=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],h=i[s]-n.rects.reference[s],m=M(a),v=m?\"y\"===s?m.clientHeight||0:m.clientWidth||0:0,A=g/2-h/2,y=c[p],E=v-d[u]-c[f],b=v/2-d[u]/2+A,_=ge(y,b,E),C=s;n.modifiersData[r]=((t={})[C]=_,t.centerOffset=_-b,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?\"[data-popper-arrow]\":n;null!=r&&(\"string\"!=typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]},{name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=fe(t,{elementContext:\"reference\"}),l=fe(t,{altBoundary:!0}),s=he(i,r),u=he(l,o,a),c=me(s),d=me(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-reference-hidden\":c,\"data-popper-escaped\":d})}}]}),Ae=n(75659),ye=n(79329),Ee=n(45061),be=n(38413),_e=n(31609);function Ce(e){return(0,_e.Ay)(\"MuiPopper\",e)}(0,be.A)(\"MuiPopper\",[\"root\"]);var we=n(74848);const Se=[\"anchorEl\",\"children\",\"direction\",\"disablePortal\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"slotProps\",\"slots\",\"TransitionProps\",\"ownerState\"],Te=[\"anchorEl\",\"children\",\"container\",\"direction\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"style\",\"transition\",\"slotProps\",\"slots\"];function Oe(e){return\"function\"==typeof e?e():e}const De={},Re=i.forwardRef(function(e,t){var n;const{anchorEl:a,children:u,direction:c,disablePortal:d,modifiers:p,open:f,placement:g,popperOptions:h,popperRef:m,slotProps:v={},slots:A={},TransitionProps:y}=e,E=(0,o.A)(e,Se),b=i.useRef(null),_=(0,l.A)(b,t),C=i.useRef(null),w=(0,l.A)(C,m),S=i.useRef(w);(0,s.A)(()=>{S.current=w},[w]),i.useImperativeHandle(m,()=>C.current,[]);const T=function(e,t){if(\"ltr\"===t)return e;switch(e){case\"bottom-end\":return\"bottom-start\";case\"bottom-start\":return\"bottom-end\";case\"top-end\":return\"top-start\";case\"top-start\":return\"top-end\";default:return e}}(g,c),[O,D]=i.useState(T),[R,N]=i.useState(Oe(a));i.useEffect(()=>{C.current&&C.current.forceUpdate()}),i.useEffect(()=>{a&&N(Oe(a))},[a]),(0,s.A)(()=>{if(!R||!f)return;let e=[{name:\"preventOverflow\",options:{altBoundary:d}},{name:\"flip\",options:{altBoundary:d}},{name:\"onUpdate\",enabled:!0,phase:\"afterWrite\",fn:({state:e})=>{D(e.placement)}}];null!=p&&(e=e.concat(p)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=ve(R,b.current,(0,r.A)({placement:T},h,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}},[R,d,p,f,h,T]);const L={placement:O};null!==y&&(L.TransitionProps=y);const P=(e=>{const{classes:t}=e;return(0,Ae.A)({root:[\"root\"]},Ce,t)})(e),M=null!=(n=A.root)?n:\"div\",x=(0,ye.A)({elementType:M,externalSlotProps:v.root,externalForwardedProps:E,additionalProps:{role:\"tooltip\",ref:_},ownerState:e,className:P.root});return(0,we.jsx)(M,(0,r.A)({},x,{children:\"function\"==typeof u?u(L):u}))}),Ne=i.forwardRef(function(e,t){const{anchorEl:n,children:a,container:l,direction:s=\"ltr\",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:f,placement:g=\"bottom\",popperOptions:h=De,popperRef:m,style:v,transition:A=!1,slotProps:y={},slots:E={}}=e,b=(0,o.A)(e,Te),[_,C]=i.useState(!0);if(!d&&!f&&(!A||_))return null;let w;if(l)w=l;else if(n){const e=Oe(n);w=e&&void 0!==e.nodeType?(0,u.A)(e).body:(0,u.A)(null).body}const S=f||!d||A&&!_?void 0:\"none\",T=A?{in:f,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,we.jsx)(Ee.A,{disablePortal:c,container:w,children:(0,we.jsx)(Re,(0,r.A)({anchorEl:n,direction:s,disablePortal:c,modifiers:p,ref:t,open:A?!_:f,placement:g,popperOptions:h,popperRef:m,slotProps:y,slots:E},b,{style:(0,r.A)({position:\"fixed\",top:0,left:0,display:S},v),TransitionProps:T,children:a}))})});var Le=n(11848),Pe=n(25669);const Me=[\"anchorEl\",\"component\",\"components\",\"componentsProps\",\"container\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"transition\",\"slots\",\"slotProps\"],xe=(0,Le.Ay)(Ne,{name:\"MuiPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),Ie=i.forwardRef(function(e,t){var n;const i=(0,a.A)(),l=(0,Pe.b)({props:e,name:\"MuiPopper\"}),{anchorEl:s,component:u,components:c,componentsProps:d,container:p,disablePortal:f,keepMounted:g,modifiers:h,open:m,placement:v,popperOptions:A,popperRef:y,transition:E,slots:b,slotProps:_}=l,C=(0,o.A)(l,Me),w=null!=(n=null==b?void 0:b.root)?n:null==c?void 0:c.Root,S=(0,r.A)({anchorEl:s,container:p,disablePortal:f,keepMounted:g,modifiers:h,open:m,placement:v,popperOptions:A,popperRef:y,transition:E},C);return(0,we.jsx)(xe,(0,r.A)({as:u,direction:null==i?void 0:i.direction,slots:{root:w},slotProps:null!=_?_:d},S,{ref:t}))})},87622:(e,t,n)=>{\"use strict\";n.d(t,{KF:()=>C});var r=n(81970),o=n.n(r),a=n(74848);!function(e,{insertAt:t}={}){if(!e||typeof document>\"u\")return;let n=document.head||document.getElementsByTagName(\"head\")[0],r=document.createElement(\"style\");r.type=\"text/css\",\"top\"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(\".rmsc{--rmsc-main: #4285f4;--rmsc-hover: #f1f3f5;--rmsc-selected: #e2e6ea;--rmsc-border: #ccc;--rmsc-gray: #aaa;--rmsc-bg: #fff;--rmsc-p: 10px;--rmsc-radius: 4px;--rmsc-h: 38px}.rmsc *{box-sizing:border-box;transition:all .2s ease}.rmsc .gray{color:var(--rmsc-gray)}.rmsc .dropdown-content{position:absolute;z-index:1;top:100%;width:100%;padding-top:8px}.rmsc .dropdown-content .panel-content{overflow:hidden;border-radius:var(--rmsc-radius);background:var(--rmsc-bg);box-shadow:0 0 0 1px #0000001a,0 4px 11px #0000001a}.rmsc .dropdown-container{position:relative;outline:0;background-color:var(--rmsc-bg);border:1px solid var(--rmsc-border);border-radius:var(--rmsc-radius)}.rmsc .dropdown-container[aria-disabled=true]:focus-within{box-shadow:var(--rmsc-gray) 0 0 0 1px;border-color:var(--rmsc-gray)}.rmsc .dropdown-container:focus-within{box-shadow:var(--rmsc-main) 0 0 0 1px;border-color:var(--rmsc-main)}.rmsc .dropdown-heading{position:relative;padding:0 var(--rmsc-p);display:flex;align-items:center;width:100%;height:var(--rmsc-h);cursor:default;outline:0}.rmsc .dropdown-heading .dropdown-heading-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.rmsc .clear-selected-button{cursor:pointer;background:none;border:0;padding:0;display:flex}.rmsc .options{max-height:260px;overflow-y:auto;margin:0;padding-left:0}.rmsc .options li{list-style:none;margin:0}.rmsc .select-item{box-sizing:border-box;cursor:pointer;display:block;padding:var(--rmsc-p);outline-offset:-1px;outline-color:var(--rmsc-primary)}.rmsc .select-item:hover{background:var(--rmsc-hover)}.rmsc .select-item.selected{background:var(--rmsc-selected)}.rmsc .no-options{padding:var(--rmsc-p);text-align:center;color:var(--rmsc-gray)}.rmsc .search{width:100%;position:relative;border-bottom:1px solid var(--rmsc-border)}.rmsc .search input{background:none;height:var(--rmsc-h);padding:0 var(--rmsc-p);width:100%;outline:0;border:0;font-size:1em}.rmsc .search input:focus{background:var(--rmsc-hover)}.rmsc .search-clear-button{cursor:pointer;position:absolute;top:0;right:0;bottom:0;background:none;border:0;padding:0 calc(var(--rmsc-p) / 2)}.rmsc .search-clear-button [hidden]{display:none}.rmsc .item-renderer{display:flex;align-items:baseline}.rmsc .item-renderer input{margin:0 5px 0 0}.rmsc .item-renderer.disabled{opacity:.5}.rmsc .spinner{animation:rotate 2s linear infinite}.rmsc .spinner .path{stroke:var(--rmsc-border);stroke-width:4px;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\\n\");var i={allItemsAreSelected:\"All items are selected.\",clearSearch:\"Clear Search\",clearSelected:\"Clear Selected\",noOptions:\"No options\",search:\"Search\",selectAll:\"Select All\",selectAllFiltered:\"Select All (Filtered)\",selectSomeItems:\"Select...\",create:\"Create\"},l={value:[],hasSelectAll:!0,className:\"multi-select\",debounceDuration:200,options:[]},s=o().createContext({}),u=({props:e,children:t})=>{let[n,o]=(0,r.useState)(e.options);return(0,r.useEffect)(()=>{o(e.options)},[e.options]),(0,a.jsx)(s.Provider,{value:{t:t=>{var n;return(null==(n=e.overrideStrings)?void 0:n[t])||i[t]},...l,...e,options:n,setOptions:o},children:t})},c=()=>o().useContext(s),d={when:!0,eventTypes:[\"keydown\"]};function p(e,t,n){let o=(0,r.useMemo)(()=>Array.isArray(e)?e:[e],[e]),a=Object.assign({},d,n),{when:i,eventTypes:l}=a,s=(0,r.useRef)(t),{target:u}=a;(0,r.useEffect)(()=>{s.current=t});let c=(0,r.useCallback)(e=>{o.some(t=>e.key===t||e.code===t)&&s.current(e)},[o]);(0,r.useEffect)(()=>{if(i&&typeof window<\"u\"){let e=u?u.current:window;return l.forEach(t=>{e&&e.addEventListener(t,c)}),()=>{l.forEach(t=>{e&&e.removeEventListener(t,c)})}}},[i,l,o,u,t])}var f={ARROW_DOWN:\"ArrowDown\",ARROW_UP:\"ArrowUp\",ENTER:\"Enter\",ESCAPE:\"Escape\",SPACE:\"Space\"},g=()=>(0,a.jsxs)(\"svg\",{width:\"24\",height:\"24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",className:\"dropdown-search-clear-icon gray\",children:[(0,a.jsx)(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),(0,a.jsx)(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"})]}),h=({checked:e,option:t,onClick:n,disabled:r})=>(0,a.jsxs)(\"div\",{className:\"item-renderer \"+(r?\"disabled\":\"\"),children:[(0,a.jsx)(\"input\",{type:\"checkbox\",onChange:n,checked:e,tabIndex:-1,disabled:r}),(0,a.jsx)(\"span\",{children:t.label})]}),m=({itemRenderer:e=h,option:t,checked:n,tabIndex:o,disabled:i,onSelectionChanged:l,onClick:s})=>{let u=(0,r.useRef)(),c=()=>{i||l(!n)};return p([f.ENTER,f.SPACE],e=>{c(),e.preventDefault()},{target:u}),(0,a.jsx)(\"label\",{className:\"select-item \"+(n?\"selected\":\"\"),role:\"option\",\"aria-selected\":n,tabIndex:o,ref:u,children:(0,a.jsx)(e,{option:t,checked:n,onClick:e=>{c(),s(e)},disabled:i})})},v=({options:e,onClick:t,skipIndex:n})=>{let{disabled:r,value:o,onChange:i,ItemRenderer:l}=c();return(0,a.jsx)(a.Fragment,{children:e.map((e,s)=>{let u=s+n;return(0,a.jsx)(\"li\",{children:(0,a.jsx)(m,{tabIndex:u,option:e,onSelectionChanged:t=>((e,t)=>{r||i(t?[...o,e]:o.filter(t=>t.value!==e.value))})(e,t),checked:!!o.find(t=>t.value===e.value),onClick:e=>t(e,u),itemRenderer:l,disabled:e.disabled||r})},(null==e?void 0:e.key)||s)})})},A=()=>{let{t:e,onChange:t,options:n,setOptions:o,value:i,filterOptions:l,ItemRenderer:s,disabled:u,disableSearch:d,hasSelectAll:h,ClearIcon:A,debounceDuration:y,isCreatable:E,onCreateOption:b}=c(),_=(0,r.useRef)(),C=(0,r.useRef)(),[w,S]=(0,r.useState)(\"\"),[T,O]=(0,r.useState)(n),[D,R]=(0,r.useState)(\"\"),[N,L]=(0,r.useState)(0),P=(0,r.useCallback)(((e,t)=>{let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(null,r)},t)}})(e=>R(e),y),[]),M=(0,r.useMemo)(()=>{let e=0;return d||(e+=1),h&&(e+=1),e},[d,h]),x={label:e(w?\"selectAllFiltered\":\"selectAll\"),value:\"\"},I=()=>{var e;R(\"\"),S(\"\"),null==(e=null==C?void 0:C.current)||e.focus()},k=e=>L(e);p([f.ARROW_DOWN,f.ARROW_UP],e=>{switch(e.code){case f.ARROW_UP:F(-1);break;case f.ARROW_DOWN:F(1);break;default:return}e.stopPropagation(),e.preventDefault()},{target:_});let B=async()=>{let e={label:w,value:w,__isNew__:!0};b&&(e=await b(w)),o([e,...n]),I(),t([...i,e])},F=e=>{let t=N+e;t=Math.max(0,t),t=Math.min(t,n.length+Math.max(M-1,0)),L(t)};(0,r.useEffect)(()=>{var e,t;null==(t=null==(e=null==_?void 0:_.current)?void 0:e.querySelector(`[tabIndex='${N}']`))||t.focus()},[N]);let[j,H]=(0,r.useMemo)(()=>{let e=T.filter(e=>!e.disabled);return[e.every(e=>-1!==i.findIndex(t=>t.value===e.value)),0!==e.length]},[T,i]);(0,r.useEffect)(()=>{(async()=>l?await l(n,D):function(e,t){return t?e.filter(({label:e,value:n})=>null!=e&&null!=n&&e.toLowerCase().includes(t.toLowerCase())):e}(n,D))().then(O)},[D,n]);let U=(0,r.useRef)();p([f.ENTER],B,{target:U});let Y=E&&w&&!T.some(e=>(null==e?void 0:e.value)===w);return(0,a.jsxs)(\"div\",{className:\"select-panel\",role:\"listbox\",ref:_,children:[!d&&(0,a.jsxs)(\"div\",{className:\"search\",children:[(0,a.jsx)(\"input\",{placeholder:e(\"search\"),type:\"text\",\"aria-describedby\":e(\"search\"),onChange:e=>{P(e.target.value),S(e.target.value),L(0)},onFocus:()=>{L(0)},value:w,ref:C,tabIndex:0}),(0,a.jsx)(\"button\",{type:\"button\",className:\"search-clear-button\",hidden:!w,onClick:I,\"aria-label\":e(\"clearSearch\"),children:A||(0,a.jsx)(g,{})})]}),(0,a.jsxs)(\"ul\",{className:\"options\",children:[h&&H&&(0,a.jsx)(m,{tabIndex:1===M?0:1,checked:j,option:x,onSelectionChanged:e=>{let r=(e=>{let t=T.filter(e=>!e.disabled).map(e=>e.value);if(e){let e=[...i.map(e=>e.value),...t];return(l?T:n).filter(t=>e.includes(t.value))}return i.filter(e=>!t.includes(e.value))})(e);t(r)},onClick:()=>k(1),itemRenderer:s,disabled:u}),T.length?(0,a.jsx)(v,{skipIndex:M,options:T,onClick:(e,t)=>k(t)}):Y?(0,a.jsx)(\"li\",{onClick:B,className:\"select-item creatable\",tabIndex:1,ref:U,children:`${e(\"create\")} \"${w}\"`}):(0,a.jsx)(\"li\",{className:\"no-options\",children:e(\"noOptions\")})]})]})},y=({expanded:e})=>(0,a.jsx)(\"svg\",{width:\"24\",height:\"24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",className:\"dropdown-heading-dropdown-arrow gray\",children:(0,a.jsx)(\"path\",{d:e?\"M18 15 12 9 6 15\":\"M6 9L12 15 18 9\"})}),E=()=>{let{t:e,value:t,options:n,valueRenderer:r}=c(),o=0===t.length,i=t.length===n.length,l=r&&r(t,n);return o?(0,a.jsx)(\"span\",{className:\"gray\",children:l||e(\"selectSomeItems\")}):(0,a.jsx)(\"span\",{children:l||(i?e(\"allItemsAreSelected\"):t.map(e=>e.label).join(\", \"))})},b=({size:e=24})=>(0,a.jsx)(\"span\",{style:{width:e,marginRight:\"0.2rem\"},children:(0,a.jsx)(\"svg\",{width:e,height:e,className:\"spinner\",viewBox:\"0 0 50 50\",style:{display:\"inline\",verticalAlign:\"middle\"},children:(0,a.jsx)(\"circle\",{cx:\"25\",cy:\"25\",r:\"20\",fill:\"none\",className:\"path\"})})}),_=()=>{let{t:e,onMenuToggle:t,ArrowRenderer:n,shouldToggleOnHover:o,isLoading:i,disabled:l,onChange:s,labelledBy:u,value:d,isOpen:h,defaultIsOpen:m,ClearSelectedIcon:v,closeOnChangedValue:_}=c();(0,r.useEffect)(()=>{_&&T(!1)},[d]);let[C,w]=(0,r.useState)(!0),[S,T]=(0,r.useState)(m),[O,D]=(0,r.useState)(!1),R=n||y,N=(0,r.useRef)();(function(e,t){let n=(0,r.useRef)(!1);(0,r.useEffect)(()=>{n.current?e():n.current=!0},t)})(()=>{t&&t(S)},[S]),(0,r.useEffect)(()=>{void 0===m&&\"boolean\"==typeof h&&(w(!1),T(h))},[h]),p([f.ENTER,f.ARROW_DOWN,f.SPACE,f.ESCAPE],e=>{var t;[\"text\",\"button\"].includes(e.target.type)&&[f.SPACE,f.ENTER].includes(e.code)||(C&&(e.code===f.ESCAPE?(T(!1),null==(t=null==N?void 0:N.current)||t.focus()):T(!0)),e.preventDefault())},{target:N});let L=e=>{C&&o&&T(e)};return(0,a.jsxs)(\"div\",{tabIndex:0,className:\"dropdown-container\",\"aria-labelledby\":u,\"aria-expanded\":S,\"aria-readonly\":!0,\"aria-disabled\":l,ref:N,onFocus:()=>!O&&D(!0),onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&C&&(D(!1),T(!1))},onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:[(0,a.jsxs)(\"div\",{className:\"dropdown-heading\",onClick:()=>{C&&T(!i&&!l&&!S)},children:[(0,a.jsx)(\"div\",{className:\"dropdown-heading-value\",children:(0,a.jsx)(E,{})}),i&&(0,a.jsx)(b,{}),d.length>0&&null!==v&&(0,a.jsx)(\"button\",{type:\"button\",className:\"clear-selected-button\",onClick:e=>{e.stopPropagation(),s([]),C&&T(!1)},disabled:l,\"aria-label\":e(\"clearSelected\"),children:v||(0,a.jsx)(g,{})}),(0,a.jsx)(R,{expanded:S})]}),S&&(0,a.jsx)(\"div\",{className:\"dropdown-content\",children:(0,a.jsx)(\"div\",{className:\"panel-content\",children:(0,a.jsx)(A,{})})})]})},C=e=>(0,a.jsx)(u,{props:e,children:(0,a.jsx)(\"div\",{className:`rmsc ${e.className||\"multi-select\"}`,children:(0,a.jsx)(_,{})})})},87633:(e,t,n)=>{\"use strict\";var r=n(97751),o=n(62106),a=n(78227),i=n(43724),l=a(\"species\");e.exports=function(e){var t=r(e);i&&t&&!t[l]&&o(t,l,{configurable:!0,get:function(){return this}})}},87839:(e,t,n)=>{\"use strict\";e.exports=n.p+\"408bc17fee8874f4e188.svg\"},87978:(e,t,n)=>{var r=n(60270),o=n(58156),a=n(80631),i=n(28586),l=n(30756),s=n(67197),u=n(77797);e.exports=function(e,t){return i(e)&&l(t)?s(u(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},88013:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>k}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(72712),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(21699),n(47764),n(42762),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(14073),i=n(81970),l=n.n(i),s=n(34195),u=n(96348),c=n(92416),d=n(37998),p=n(47225),f=n(56254),g=n(43605),h=n(15664),m=n(21239),v=(n(50113),n(31415),n(8239)),A=n(51545),y=n(88084),E=n(48506),b=n(28152),_=n(17578),C=n(36874),w=n(5913);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e){var t,n,r,o=e.isFilterOpen,u=void 0!==o&&o,c=e.onRequestClose,d=void 0===c?function(){}:c,p=e.setLiquidationFilters,f=void 0===p?function(){}:p,g=e.liquidationFilters,h=void 0===g?{}:g,m=e.retailerData,T=void 0===m?{}:m,O=(n=(0,i.useState)({retailer:null!==(t=h.retailer)&&void 0!==t?t:[]}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(n,r)||function(e,t){if(e){if(\"string\"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(n,r)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),D=O[0],R=O[1],N=new Set(T.map(function(e){return e.retailerName})),L=Array.from(N).map(function(e){var t=T.find(function(t){return t.retailerName===e});return t?{label:String(e),value:t.retailerId}:(console.warn(\"No retailerId found for retailerName: \".concat(e)),null)}).filter(function(e){return null!==e}),P=(0,s.Bd)().t;(0,i.useEffect)(function(){var e;Object.keys(h).length&&R({retailer:null!==(e=null==h?void 0:h.retailer)&&void 0!==e?e:[]})},[h]);var M=function(){R({retailer:[]}),f([]),d()};return l().createElement(A.A,null,l().createElement(C.A,{isDrawerOpen:u,anchor:\"top\",upper:!0},l().createElement(A.A,{p:3,className:\"retailer-floating-filter-wrapper\"},l().createElement(y.l1,{initialValues:D,validationSchema:_.A,enableReinitialize:!0,onSubmit:function(e,t){f(e),d()}},function(e){var t=e.values,n=e.setFieldValue;return l().createElement(y.lV,{className:\"popupContent liquidation-floating-filter\",\"aria-label\":\"form\"},l().createElement(v.Ay,{container:!0,columns:{xs:12},columnSpacing:1,rowGap:1},l().createElement(v.Ay,{item:!0,xs:3},l().createElement(A.A,{width:\"100%\"},l().createElement(a.A,{variant:\"subtitle2\"},P(\"RETAILER\")),l().createElement(y.D0,{name:\"retailer\"},function(){return l().createElement(E.A,{key:\"retailer\",name:\"retailer\",options:L,onHandleChange:function(e){n(\"retailer\",e)},selectedOption:null==t?void 0:t.retailer})}),l().createElement(b.A,{errName:\"retailer\"})))),l().createElement(w.A,{resetFilters:M,onApplyFilters:function(){},onRequestClose:d}))}))))};var O=n(50154),D=n(47767),R=(0,n(11848).Ay)(r.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\",\"& .list\":{padding:\"0px !important\"},\"& .ag-header-cell-text\":{fontSize:\"12px !important\"},retaileFilterWrapper:{minHeight:\"168px\"}}});function N(e){return N=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},N(e)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=N(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==N(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const k=function(){var e=(0,i.useContext)(p.v),t=e.BackOfficeProps,n=t.globalStore.User,v=t.baseurl,A=e.triggerShowLoader,y=e.triggerToastMsg,E=(0,s.Bd)().t,b=(0,D.zy)().state,_=null==b?void 0:b.retailerItem,C=x((0,i.useState)(!1),2),w=C[0],S=C[1],N=x((0,i.useState)({}),2),L=N[0],I=N[1],k=x((0,i.useState)([]),2),B=k[0],F=k[1],j=x((0,i.useState)([]),2),H=j[0],U=j[1],Y=x((0,i.useState)(\"\"),2),G=Y[0],z=Y[1],V=x((0,i.useState)(1),2),q=V[0],W=V[1],Q=function(e,t,r,o,a){(0,O.Ko)({tmMdoHq:e,fromDate:t,toDate:r,brandId:o,retailerId:a},v,n,A).then(function(e){var t=e.data.samridhiLiquidationRetailerBrandDetails,n=void 0===t?[]:t;F(n),U(n)}).catch(function(e){y({message:e.message,type:\"error\"})})};(0,i.useEffect)(function(){if(null!=b&&b.retailerItem){var e=b.retailerItem,t=e.brandId,n=e.mdoHqId,r=M({},e.tmHqId,[n]);Q(r,null,null,[t],[])}},[]);var K,$,X=(0,i.useMemo)(function(){return B.reduce(function(e,t){return e+t.quantity},0)},[B]);return l().createElement(R,null,l().createElement(r.A,null,l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,null,l().createElement(c.A,{routePathName:[{name:u.F_.Liquidation_From_Sumridhi,path:\"\".concat(u.fp.Liquidation_From_Sumridhi,\"/\").concat(u.fp.Liquidation_Detail)},{name:\"\".concat(null==_?void 0:_.mdoHqName,\" - \").concat(null==_?void 0:_.brandName),path:u.fp.Liquidation_Retailer_Details}]})),l().createElement(r.A,null,l().createElement(m.A,{onSearchValueChange:function(e){z(e),function(e){z(e);var t=e.toLowerCase().trim();if(t){var n=H.filter(function(e){var n;return null!==(n=e.retailerName.toLowerCase().includes(t))&&void 0!==n?n:e.brandName.toLowerCase().includes(t)});F(n)}else F(H);W(1)}(e)},placeholderText:E(\"SEARCH\"),searchValue:G,searchBasedOn:\"Search by Retailer Name Or Brand Name\"}))),l().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(r.A,null,l().createElement(a.A,{variant:\"subtitle1\",fontWeight:600},\"Total Quantity: \",X)),l().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},l().createElement(h.A,{buttonName:E(\"FILTERS\"),color:\"trasnparent\",fullwidth:!1,endIcon:l().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){S(!0)}}))),l().createElement(g.A,{rows:(K=10*q,$=K-10,B.slice($,K)),columnDefs:d.Bs}),l().createElement(f.A,{totalPageCount:Math.ceil(B.length/10),totalElements:B.length,pageNo:q-1,onPageChange:function(e){W(Number(e)+1)}})),w&&l().createElement(T,{isFilterOpen:w,onRequestClose:function(){return S(!1)},setLiquidationFilters:function(e){var t=e.retailer&&e.retailer.length>0?e.retailer.map(function(e){return e.value}):[];if(I(P(P({},e),{},{retailer:e.retailer})),null!=b&&b.retailerItem){var n=b.retailerItem,r=n.brandId,o=n.mdoHqId,a=M({},n.tmHqId,[o]);Q(a,null,null,[r],t)}S(!1),W(1),z(\"\")},liquidationFilters:L,retailerData:B,setState:function(){}}))}},88084:(e,t,n)=>{\"use strict\";n.d(t,{Kw:()=>jn,D0:()=>Pn,lV:()=>Mn,l1:()=>On,O6:()=>bn,j7:()=>fn});var r=function(e){return function(e){return!!e&&\"object\"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return\"[object RegExp]\"===t||\"[object Date]\"===t||function(e){return e.$$typeof===o}(e)}(e)},o=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return a(e,n)})}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=a(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=l(e[o],t[o],n):r[o]=a(t[o],n)}),r}(e,t,n):a(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error(\"first argument should be an array\");return e.reduce(function(e,n){return l(e,n,t)},{})};const s=l,u=\"object\"==typeof global&&global&&global.Object===Object&&global;var c=\"object\"==typeof self&&self&&self.Object===Object&&self;const d=u||c||Function(\"return this\")(),p=d.Symbol;var f=Object.prototype,g=f.hasOwnProperty,h=f.toString,m=p?p.toStringTag:void 0;var v=Object.prototype.toString;var A=p?p.toStringTag:void 0;const y=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":A&&A in Object(e)?function(e){var t=g.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var o=h.call(e);return r&&(t?e[m]=n:delete e[m]),o}(e):function(e){return v.call(e)}(e)},E=function(e,t){return function(n){return e(t(n))}},b=E(Object.getPrototypeOf,Object),_=function(e){return null!=e&&\"object\"==typeof e};var C=Function.prototype,w=Object.prototype,S=C.toString,T=w.hasOwnProperty,O=S.call(Object);const D=function(e){if(!_(e)||\"[object Object]\"!=y(e))return!1;var t=b(e);if(null===t)return!0;var n=T.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&S.call(n)==O},R=function(e,t){return e===t||e!=e&&t!=t},N=function(e,t){for(var n=e.length;n--;)if(R(e[n][0],t))return n;return-1};var L=Array.prototype.splice;function P(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,n=N(t,e);return!(n<0||(n==t.length-1?t.pop():L.call(t,n,1),--this.size,0))},P.prototype.get=function(e){var t=this.__data__,n=N(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return N(this.__data__,e)>-1},P.prototype.set=function(e,t){var n=this.__data__,r=N(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const M=P,x=function(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)},I=function(e){if(!x(e))return!1;var t=y(e);return\"[object Function]\"==t||\"[object GeneratorFunction]\"==t||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t},k=d[\"__core-js_shared__\"];var B,F=(B=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+B:\"\";var j=Function.prototype.toString;const H=function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"};var U=/^\\[object .+?Constructor\\]$/,Y=Function.prototype,G=Object.prototype,z=Y.toString,V=G.hasOwnProperty,q=RegExp(\"^\"+z.call(V).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");const W=function(e){return!(!x(e)||(t=e,F&&F in t))&&(I(e)?q:U).test(H(e));var t},Q=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return W(n)?n:void 0},K=Q(d,\"Map\"),$=Q(Object,\"create\");var X=Object.prototype.hasOwnProperty;var J=Object.prototype.hasOwnProperty;function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Z.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return\"__lodash_hash_undefined__\"===n?void 0:n}return X.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:J.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?\"__lodash_hash_undefined__\":t,this};const ee=Z,te=function(e,t){var n,r,o=e.__data__;return(\"string\"==(r=typeof(n=t))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?o[\"string\"==typeof t?\"string\":\"hash\"]:o.map};function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ne.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(K||M),string:new ee}},ne.prototype.delete=function(e){var t=te(this,e).delete(e);return this.size-=t?1:0,t},ne.prototype.get=function(e){return te(this,e).get(e)},ne.prototype.has=function(e){return te(this,e).has(e)},ne.prototype.set=function(e,t){var n=te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const re=ne;function oe(e){var t=this.__data__=new M(e);this.size=t.size}oe.prototype.clear=function(){this.__data__=new M,this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},oe.prototype.get=function(e){return this.__data__.get(e)},oe.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof M){var r=n.__data__;if(!K||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(r)}return n.set(e,t),this.size=n.size,this};const ae=oe,ie=function(){try{var e=Q(Object,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),le=function(e,t,n){\"__proto__\"==t&&ie?ie(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var se=Object.prototype.hasOwnProperty;const ue=function(e,t,n){var r=e[t];se.call(e,t)&&R(r,n)&&(void 0!==n||t in e)||le(e,t,n)},ce=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?le(n,l,s):ue(n,l,s)}return n},de=function(e){return _(e)&&\"[object Arguments]\"==y(e)};var pe=Object.prototype,fe=pe.hasOwnProperty,ge=pe.propertyIsEnumerable;const he=de(function(){return arguments}())?de:function(e){return _(e)&&fe.call(e,\"callee\")&&!ge.call(e,\"callee\")},me=Array.isArray;var ve=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,Ae=ve&&\"object\"==typeof module&&module&&!module.nodeType&&module,ye=Ae&&Ae.exports===ve?d.Buffer:void 0;const Ee=(ye?ye.isBuffer:void 0)||function(){return!1};var be=/^(?:0|[1-9]\\d*)$/;const _e=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&(\"number\"==n||\"symbol\"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t},Ce=function(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var we={};we[\"[object Float32Array]\"]=we[\"[object Float64Array]\"]=we[\"[object Int8Array]\"]=we[\"[object Int16Array]\"]=we[\"[object Int32Array]\"]=we[\"[object Uint8Array]\"]=we[\"[object Uint8ClampedArray]\"]=we[\"[object Uint16Array]\"]=we[\"[object Uint32Array]\"]=!0,we[\"[object Arguments]\"]=we[\"[object Array]\"]=we[\"[object ArrayBuffer]\"]=we[\"[object Boolean]\"]=we[\"[object DataView]\"]=we[\"[object Date]\"]=we[\"[object Error]\"]=we[\"[object Function]\"]=we[\"[object Map]\"]=we[\"[object Number]\"]=we[\"[object Object]\"]=we[\"[object RegExp]\"]=we[\"[object Set]\"]=we[\"[object String]\"]=we[\"[object WeakMap]\"]=!1;const Se=function(e){return function(t){return e(t)}};var Te=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,Oe=Te&&\"object\"==typeof module&&module&&!module.nodeType&&module,De=Oe&&Oe.exports===Te&&u.process;const Re=function(){try{return Oe&&Oe.require&&Oe.require(\"util\").types||De&&De.binding&&De.binding(\"util\")}catch(e){}}();var Ne=Re&&Re.isTypedArray;const Le=Ne?Se(Ne):function(e){return _(e)&&Ce(e.length)&&!!we[y(e)]};var Pe=Object.prototype.hasOwnProperty;const Me=function(e,t){var n=me(e),r=!n&&he(e),o=!n&&!r&&Ee(e),a=!n&&!r&&!o&&Le(e),i=n||r||o||a,l=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var u in e)!t&&!Pe.call(e,u)||i&&(\"length\"==u||o&&(\"offset\"==u||\"parent\"==u)||a&&(\"buffer\"==u||\"byteLength\"==u||\"byteOffset\"==u)||_e(u,s))||l.push(u);return l};var xe=Object.prototype;const Ie=function(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||xe)},ke=E(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Fe=function(e){return null!=e&&Ce(e.length)&&!I(e)},je=function(e){return Fe(e)?Me(e):function(e){if(!Ie(e))return ke(e);var t=[];for(var n in Object(e))Be.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}(e)};var He=Object.prototype.hasOwnProperty;const Ue=function(e){if(!x(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ie(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&He.call(e,r))&&n.push(r);return n},Ye=function(e){return Fe(e)?Me(e,!0):Ue(e)};var Ge=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,ze=Ge&&\"object\"==typeof module&&module&&!module.nodeType&&module,Ve=ze&&ze.exports===Ge?d.Buffer:void 0,qe=Ve?Ve.allocUnsafe:void 0;const We=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Qe=function(){return[]};var Ke=Object.prototype.propertyIsEnumerable,$e=Object.getOwnPropertySymbols;const Xe=$e?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}($e(e),function(t){return Ke.call(e,t)}))}:Qe,Je=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ze=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Je(t,Xe(e)),e=b(e);return t}:Qe,et=function(e,t,n){var r=t(e);return me(e)?r:Je(r,n(e))},tt=function(e){return et(e,je,Xe)},nt=function(e){return et(e,Ye,Ze)},rt=Q(d,\"DataView\"),ot=Q(d,\"Promise\"),at=Q(d,\"Set\"),it=Q(d,\"WeakMap\");var lt=\"[object Map]\",st=\"[object Promise]\",ut=\"[object Set]\",ct=\"[object WeakMap]\",dt=\"[object DataView]\",pt=H(rt),ft=H(K),gt=H(ot),ht=H(at),mt=H(it),vt=y;(rt&&vt(new rt(new ArrayBuffer(1)))!=dt||K&&vt(new K)!=lt||ot&&vt(ot.resolve())!=st||at&&vt(new at)!=ut||it&&vt(new it)!=ct)&&(vt=function(e){var t=y(e),n=\"[object Object]\"==t?e.constructor:void 0,r=n?H(n):\"\";if(r)switch(r){case pt:return dt;case ft:return lt;case gt:return st;case ht:return ut;case mt:return ct}return t});const At=vt;var yt=Object.prototype.hasOwnProperty;const Et=d.Uint8Array,bt=function(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t};var _t=/\\w*$/;var Ct=p?p.prototype:void 0,wt=Ct?Ct.valueOf:void 0;const St=function(e,t,n){var r,o,a,i=e.constructor;switch(t){case\"[object ArrayBuffer]\":return bt(e);case\"[object Boolean]\":case\"[object Date]\":return new i(+e);case\"[object DataView]\":return function(e,t){var n=t?bt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case\"[object Float32Array]\":case\"[object Float64Array]\":case\"[object Int8Array]\":case\"[object Int16Array]\":case\"[object Int32Array]\":case\"[object Uint8Array]\":case\"[object Uint8ClampedArray]\":case\"[object Uint16Array]\":case\"[object Uint32Array]\":return function(e,t){var n=t?bt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case\"[object Map]\":case\"[object Set]\":return new i;case\"[object Number]\":case\"[object String]\":return new i(e);case\"[object RegExp]\":return(a=new(o=e).constructor(o.source,_t.exec(o))).lastIndex=o.lastIndex,a;case\"[object Symbol]\":return r=e,wt?Object(wt.call(r)):{}}};var Tt=Object.create;const Ot=function(){function e(){}return function(t){if(!x(t))return{};if(Tt)return Tt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Dt=Re&&Re.isMap;const Rt=Dt?Se(Dt):function(e){return _(e)&&\"[object Map]\"==At(e)};var Nt=Re&&Re.isSet;const Lt=Nt?Se(Nt):function(e){return _(e)&&\"[object Set]\"==At(e)};var Pt=\"[object Arguments]\",Mt=\"[object Function]\",xt=\"[object Object]\",It={};It[Pt]=It[\"[object Array]\"]=It[\"[object ArrayBuffer]\"]=It[\"[object DataView]\"]=It[\"[object Boolean]\"]=It[\"[object Date]\"]=It[\"[object Float32Array]\"]=It[\"[object Float64Array]\"]=It[\"[object Int8Array]\"]=It[\"[object Int16Array]\"]=It[\"[object Int32Array]\"]=It[\"[object Map]\"]=It[\"[object Number]\"]=It[xt]=It[\"[object RegExp]\"]=It[\"[object Set]\"]=It[\"[object String]\"]=It[\"[object Symbol]\"]=It[\"[object Uint8Array]\"]=It[\"[object Uint8ClampedArray]\"]=It[\"[object Uint16Array]\"]=It[\"[object Uint32Array]\"]=!0,It[\"[object Error]\"]=It[Mt]=It[\"[object WeakMap]\"]=!1;const kt=function e(t,n,r,o,a,i){var l,s=1&n,u=2&n,c=4&n;if(r&&(l=a?r(t,o,a,i):r(t)),void 0!==l)return l;if(!x(t))return t;var d=me(t);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&yt.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}(t),!s)return We(t,l)}else{var p=At(t),f=p==Mt||\"[object GeneratorFunction]\"==p;if(Ee(t))return function(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}(t,s);if(p==xt||p==Pt||f&&!a){if(l=u||f?{}:function(e){return\"function\"!=typeof e.constructor||Ie(e)?{}:Ot(b(e))}(t),!s)return u?function(e,t){return ce(e,Ze(e),t)}(t,function(e,t){return e&&ce(t,Ye(t),e)}(l,t)):function(e,t){return ce(e,Xe(e),t)}(t,function(e,t){return e&&ce(t,je(t),e)}(l,t))}else{if(!It[p])return a?t:{};l=St(t,p,s)}}i||(i=new ae);var g=i.get(t);if(g)return g;i.set(t,l),Lt(t)?t.forEach(function(o){l.add(e(o,n,r,o,t,i))}):Rt(t)&&t.forEach(function(o,a){l.set(a,e(o,n,r,a,t,i))});var h=d?void 0:(c?u?nt:tt:u?Ye:je)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||t,function(o,a){h&&(o=t[a=o]),ue(l,a,e(o,n,r,a,t,i))}),l},Bt=function(e){return kt(e,5)};var Ft=n(81970),jt=n(30115),Ht=n.n(jt);const Ut=function(e,t){},Yt=function(e){return kt(e,4)},Gt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},zt=function(e){return\"symbol\"==typeof e||_(e)&&\"[object Symbol]\"==y(e)};function Vt(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new TypeError(\"Expected a function\");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Vt.Cache||re),n}Vt.Cache=re;var qt=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Wt=/\\\\(\\\\)?/g;const Qt=(Kt=Vt(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(qt,function(e,n,r,o){t.push(r?o.replace(Wt,\"$1\"):n||e)}),t},function(e){return 500===$t.size&&$t.clear(),e}),$t=Kt.cache,Kt);var Kt,$t;const Xt=function(e){if(\"string\"==typeof e||zt(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t};var Jt=p?p.prototype:void 0,Zt=Jt?Jt.toString:void 0;const en=function e(t){if(\"string\"==typeof t)return t;if(me(t))return Gt(t,e)+\"\";if(zt(t))return Zt?Zt.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-1/0?\"-0\":n},tn=function(e){return null==e?\"\":en(e)},nn=function(e){return me(e)?Gt(e,Xt):zt(e)?[e]:We(Qt(tn(e)))};var rn=n(4146),on=n.n(rn);function an(){return an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},an.apply(this,arguments)}function ln(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function sn(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function un(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}var cn=(0,Ft.createContext)(void 0);cn.displayName=\"FormikContext\";var dn=cn.Provider,pn=cn.Consumer;function fn(){var e=(0,Ft.useContext)(cn);return e||Ut(!1),e}var gn=function(e){return Array.isArray(e)&&0===e.length},hn=function(e){return\"function\"==typeof e},mn=function(e){return null!==e&&\"object\"==typeof e},vn=function(e){return String(Math.floor(Number(e)))===e},An=function(e){return\"[object String]\"===Object.prototype.toString.call(e)},yn=function(e){return 0===Ft.Children.count(e)},En=function(e){return mn(e)&&hn(e.then)};function bn(e,t,n,r){void 0===r&&(r=0);for(var o=nn(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function _n(e,t,n){for(var r=Yt(e),o=r,a=0,i=nn(t);a<i.length-1;a++){var l=i[a],s=bn(e,i.slice(0,a+1));if(s&&(mn(s)||Array.isArray(s)))o=o[l]=Yt(s);else{var u=i[a+1];o=o[l]=vn(u)&&Number(u)>=0?[]:{}}}return(0===a?e:o)[i[a]]===n?e:(void 0===n?delete o[i[a]]:o[i[a]]=n,0===a&&void 0===n&&delete r[i[a]],r)}function Cn(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],l=e[i];mn(l)?n.get(l)||(n.set(l,!0),r[i]=Array.isArray(l)?[]:{},Cn(l,t,n,r[i])):r[i]=t}return r}var wn={},Sn={};function Tn(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,a=e.validateOnMount,i=void 0!==a&&a,l=e.isInitialValid,u=e.enableReinitialize,c=void 0!==u&&u,d=e.onSubmit,p=sn(e,[\"validateOnChange\",\"validateOnBlur\",\"validateOnMount\",\"isInitialValid\",\"enableReinitialize\",\"onSubmit\"]),f=an({validateOnChange:n,validateOnBlur:o,validateOnMount:i,onSubmit:d},p),g=(0,Ft.useRef)(f.initialValues),h=(0,Ft.useRef)(f.initialErrors||wn),m=(0,Ft.useRef)(f.initialTouched||Sn),v=(0,Ft.useRef)(f.initialStatus),A=(0,Ft.useRef)(!1),y=(0,Ft.useRef)({});(0,Ft.useEffect)(function(){return A.current=!0,function(){A.current=!1}},[]);var E=(0,Ft.useState)(0)[1],b=(0,Ft.useRef)({values:Bt(f.initialValues),errors:Bt(f.initialErrors)||wn,touched:Bt(f.initialTouched)||Sn,status:Bt(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),_=b.current,C=(0,Ft.useCallback)(function(e){var t=b.current;b.current=function(e,t){switch(t.type){case\"SET_VALUES\":return an({},e,{values:t.payload});case\"SET_TOUCHED\":return an({},e,{touched:t.payload});case\"SET_ERRORS\":return Ht()(e.errors,t.payload)?e:an({},e,{errors:t.payload});case\"SET_STATUS\":return an({},e,{status:t.payload});case\"SET_ISSUBMITTING\":return an({},e,{isSubmitting:t.payload});case\"SET_ISVALIDATING\":return an({},e,{isValidating:t.payload});case\"SET_FIELD_VALUE\":return an({},e,{values:_n(e.values,t.payload.field,t.payload.value)});case\"SET_FIELD_TOUCHED\":return an({},e,{touched:_n(e.touched,t.payload.field,t.payload.value)});case\"SET_FIELD_ERROR\":return an({},e,{errors:_n(e.errors,t.payload.field,t.payload.value)});case\"RESET_FORM\":return an({},e,t.payload);case\"SET_FORMIK_STATE\":return t.payload(e);case\"SUBMIT_ATTEMPT\":return an({},e,{touched:Cn(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case\"SUBMIT_FAILURE\":case\"SUBMIT_SUCCESS\":return an({},e,{isSubmitting:!1});default:return e}}(t,e),t!==b.current&&E(function(e){return e+1})},[]),w=(0,Ft.useCallback)(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(wn):En(o)?o.then(function(e){n(e||wn)},function(e){r(e)}):n(o)})},[f.validate]),S=(0,Ft.useCallback)(function(e,t){var n=f.validationSchema,r=hn(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=Dn(e);return t[n?\"validateSync\":\"validate\"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(wn)},function(n){\"ValidationError\"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return _n(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var i=a;bn(t,i.path)||(t=_n(t,i.path,i.message))}}return t}(n)):t(n)})})},[f.validationSchema]),T=(0,Ft.useCallback)(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),O=(0,Ft.useCallback)(function(e){var t=Object.keys(y.current).filter(function(e){return hn(y.current[e].validate)}),n=t.length>0?t.map(function(t){return T(t,bn(e,t))}):[Promise.resolve(\"DO_NOT_DELETE_YOU_WILL_BE_FIRED\")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return\"DO_NOT_DELETE_YOU_WILL_BE_FIRED\"===n||n&&(e=_n(e,t[r],n)),e},{})})},[T]),D=(0,Ft.useCallback)(function(e){return Promise.all([O(e),f.validationSchema?S(e):{},f.validate?w(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return s.all([t,n,r],{arrayMerge:Rn})})},[f.validate,f.validationSchema,O,w,S]),R=Ln(function(e){return void 0===e&&(e=_.values),C({type:\"SET_ISVALIDATING\",payload:!0}),D(e).then(function(e){return A.current&&(C({type:\"SET_ISVALIDATING\",payload:!1}),C({type:\"SET_ERRORS\",payload:e})),e})});(0,Ft.useEffect)(function(){i&&!0===A.current&&Ht()(g.current,f.initialValues)&&R(g.current)},[i,R]);var N=(0,Ft.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:f.initialTouched||{},o=e&&e.status?e.status:v.current?v.current:f.initialStatus;g.current=t,h.current=n,m.current=r,v.current=o;var a=function(){C({type:\"RESET_FORM\",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&\"number\"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var i=f.onReset(_.values,K);En(i)?i.then(a):a()}else a()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,Ft.useEffect)(function(){!0!==A.current||Ht()(g.current,f.initialValues)||c&&(g.current=f.initialValues,N(),i&&R(g.current))},[c,f.initialValues,N,i,R]),(0,Ft.useEffect)(function(){c&&!0===A.current&&!Ht()(h.current,f.initialErrors)&&(h.current=f.initialErrors||wn,C({type:\"SET_ERRORS\",payload:f.initialErrors||wn}))},[c,f.initialErrors]),(0,Ft.useEffect)(function(){c&&!0===A.current&&!Ht()(m.current,f.initialTouched)&&(m.current=f.initialTouched||Sn,C({type:\"SET_TOUCHED\",payload:f.initialTouched||Sn}))},[c,f.initialTouched]),(0,Ft.useEffect)(function(){c&&!0===A.current&&!Ht()(v.current,f.initialStatus)&&(v.current=f.initialStatus,C({type:\"SET_STATUS\",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var L=Ln(function(e){if(y.current[e]&&hn(y.current[e].validate)){var t=bn(_.values,e),n=y.current[e].validate(t);return En(n)?(C({type:\"SET_ISVALIDATING\",payload:!0}),n.then(function(e){return e}).then(function(t){C({type:\"SET_FIELD_ERROR\",payload:{field:e,value:t}}),C({type:\"SET_ISVALIDATING\",payload:!1})})):(C({type:\"SET_FIELD_ERROR\",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(C({type:\"SET_ISVALIDATING\",payload:!0}),S(_.values,e).then(function(e){return e}).then(function(t){C({type:\"SET_FIELD_ERROR\",payload:{field:e,value:bn(t,e)}}),C({type:\"SET_ISVALIDATING\",payload:!1})})):Promise.resolve()}),P=(0,Ft.useCallback)(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),M=(0,Ft.useCallback)(function(e){delete y.current[e]},[]),x=Ln(function(e,t){return C({type:\"SET_TOUCHED\",payload:e}),(void 0===t?o:t)?R(_.values):Promise.resolve()}),I=(0,Ft.useCallback)(function(e){C({type:\"SET_ERRORS\",payload:e})},[]),k=Ln(function(e,t){var r=hn(e)?e(_.values):e;return C({type:\"SET_VALUES\",payload:r}),(void 0===t?n:t)?R(r):Promise.resolve()}),B=(0,Ft.useCallback)(function(e,t){C({type:\"SET_FIELD_ERROR\",payload:{field:e,value:t}})},[]),F=Ln(function(e,t,r){return C({type:\"SET_FIELD_VALUE\",payload:{field:e,value:t}}),(void 0===r?n:r)?R(_n(_.values,e,t)):Promise.resolve()}),j=(0,Ft.useCallback)(function(e,t){var n,r=t,o=e;if(!An(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,i=a.type,l=a.name,s=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),p=a.multiple;r=t||l||s,o=/number|range/.test(i)?(n=parseFloat(u),isNaN(n)?\"\":n):/checkbox/.test(i)?function(e,t,n){if(\"boolean\"==typeof e)return Boolean(t);var r=[],o=!1,a=-1;if(Array.isArray(e))r=e,o=(a=e.indexOf(n))>=0;else if(!n||\"true\"==n||\"false\"==n)return Boolean(t);return t&&n&&!o?r.concat(n):o?r.slice(0,a).concat(r.slice(a+1)):r}(bn(_.values,r),c,u):d&&p?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}r&&F(r,o)},[F,_.values]),H=Ln(function(e){if(An(e))return function(t){return j(t,e)};j(e)}),U=Ln(function(e,t,n){return void 0===t&&(t=!0),C({type:\"SET_FIELD_TOUCHED\",payload:{field:e,value:t}}),(void 0===n?o:n)?R(_.values):Promise.resolve()}),Y=(0,Ft.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,a=(n.outerHTML,t||r||o);U(a,!0)},[U]),G=Ln(function(e){if(An(e))return function(t){return Y(t,e)};Y(e)}),z=(0,Ft.useCallback)(function(e){hn(e)?C({type:\"SET_FORMIK_STATE\",payload:e}):C({type:\"SET_FORMIK_STATE\",payload:function(){return e}})},[]),V=(0,Ft.useCallback)(function(e){C({type:\"SET_STATUS\",payload:e})},[]),q=(0,Ft.useCallback)(function(e){C({type:\"SET_ISSUBMITTING\",payload:e})},[]),W=Ln(function(){return C({type:\"SUBMIT_ATTEMPT\"}),R().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=$()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return A.current&&C({type:\"SUBMIT_SUCCESS\"}),e}).catch(function(e){if(A.current)throw C({type:\"SUBMIT_FAILURE\"}),e})}if(A.current&&(C({type:\"SUBMIT_FAILURE\"}),t))throw e})}),Q=Ln(function(e){e&&e.preventDefault&&hn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&hn(e.stopPropagation)&&e.stopPropagation(),W().catch(function(e){console.warn(\"Warning: An unhandled error was caught from submitForm()\",e)})}),K={resetForm:N,validateForm:R,validateField:L,setErrors:I,setFieldError:B,setFieldTouched:U,setFieldValue:F,setStatus:V,setSubmitting:q,setTouched:x,setValues:k,setFormikState:z,submitForm:W},$=Ln(function(){return d(_.values,K)}),X=Ln(function(e){e&&e.preventDefault&&hn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&hn(e.stopPropagation)&&e.stopPropagation(),N()}),J=(0,Ft.useCallback)(function(e){return{value:bn(_.values,e),error:bn(_.errors,e),touched:!!bn(_.touched,e),initialValue:bn(g.current,e),initialTouched:!!bn(m.current,e),initialError:bn(h.current,e)}},[_.errors,_.touched,_.values]),Z=(0,Ft.useCallback)(function(e){return{setValue:function(t,n){return F(e,t,n)},setTouched:function(t,n){return U(e,t,n)},setError:function(t){return B(e,t)}}},[F,U,B]),ee=(0,Ft.useCallback)(function(e){var t=mn(e),n=t?e.name:e,r=bn(_.values,n),o={name:n,value:r,onChange:H,onBlur:G};if(t){var a=e.type,i=e.value,l=e.as,s=e.multiple;\"checkbox\"===a?void 0===i?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(i)),o.value=i):\"radio\"===a?(o.checked=r===i,o.value=i):\"select\"===l&&s&&(o.value=o.value||[],o.multiple=!0)}return o},[G,H,_.values]),te=(0,Ft.useMemo)(function(){return!Ht()(g.current,_.values)},[g.current,_.values]),ne=(0,Ft.useMemo)(function(){return void 0!==l?te?_.errors&&0===Object.keys(_.errors).length:!1!==l&&hn(l)?l(f):l:_.errors&&0===Object.keys(_.errors).length},[l,te,_.errors,f]);return an({},_,{initialValues:g.current,initialErrors:h.current,initialTouched:m.current,initialStatus:v.current,handleBlur:G,handleChange:H,handleReset:X,handleSubmit:Q,resetForm:N,setErrors:I,setFormikState:z,setFieldTouched:U,setFieldValue:F,setFieldError:B,setStatus:V,setSubmitting:q,setTouched:x,setValues:k,submitForm:W,validateForm:R,validateField:L,isValid:ne,dirty:te,unregisterField:M,registerField:P,getFieldProps:ee,getFieldMeta:J,getFieldHelpers:Z,validateOnBlur:o,validateOnChange:n,validateOnMount:i})}function On(e){var t=Tn(e),n=e.component,r=e.children,o=e.render,a=e.innerRef;return(0,Ft.useImperativeHandle)(a,function(){return t}),(0,Ft.createElement)(dn,{value:t},n?(0,Ft.createElement)(n,t):o?o(t):r?hn(r)?r(t):yn(r)?null:Ft.Children.only(r):null)}function Dn(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||D(e)?Dn(e):\"\"!==e?e:void 0}):D(e[r])?t[r]=Dn(e[r]):t[r]=\"\"!==e[r]?e[r]:void 0}return t}function Rn(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var a=!1!==n.clone&&n.isMergeableObject(t);r[o]=a?s(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=s(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var Nn=\"undefined\"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ft.useLayoutEffect:Ft.useEffect;function Ln(e){var t=(0,Ft.useRef)(e);return Nn(function(){t.current=e}),(0,Ft.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}function Pn(e){var t=e.validate,n=e.name,r=e.render,o=e.children,a=e.as,i=e.component,l=e.className,s=sn(e,[\"validate\",\"name\",\"render\",\"children\",\"as\",\"component\",\"className\"]),u=sn(fn(),[\"validate\",\"validationSchema\"]),c=u.registerField,d=u.unregisterField;(0,Ft.useEffect)(function(){return c(n,{validate:t}),function(){d(n)}},[c,d,n,t]);var p=u.getFieldProps(an({name:n},s)),f=u.getFieldMeta(n),g={field:p,form:u};if(r)return r(an({},g,{meta:f}));if(hn(o))return o(an({},g,{meta:f}));if(i){if(\"string\"==typeof i){var h=s.innerRef,m=sn(s,[\"innerRef\"]);return(0,Ft.createElement)(i,an({ref:h},p,m,{className:l}),o)}return(0,Ft.createElement)(i,an({field:p,form:u},s,{className:l}),o)}var v=a||\"input\";if(\"string\"==typeof v){var A=s.innerRef,y=sn(s,[\"innerRef\"]);return(0,Ft.createElement)(v,an({ref:A},p,y,{className:l}),o)}return(0,Ft.createElement)(v,an({},p,s,{className:l}),o)}var Mn=(0,Ft.forwardRef)(function(e,t){var n=e.action,r=sn(e,[\"action\"]),o=null!=n?n:\"#\",a=fn(),i=a.handleReset,l=a.handleSubmit;return(0,Ft.createElement)(\"form\",an({onSubmit:l,ref:t,onReset:i,action:o},r))});function xn(e){var t=function(t){return(0,Ft.createElement)(pn,null,function(n){return n||Ut(!1),(0,Ft.createElement)(e,an({},t,{formik:n}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||\"Component\";return t.WrappedComponent=e,t.displayName=\"FormikConnect(\"+n+\")\",on()(t,e)}Mn.displayName=\"Form\";var In=function(e,t,n){var r=kn(e);return r.splice(t,0,n),r},kn=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(an({},e,{length:t+1}))}return[]},Bn=function(e,t){var n=\"function\"==typeof e?e:t;return function(e){if(Array.isArray(e)||mn(e)){var t=kn(e);return n(t)}return e}},Fn=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,a=o.name;(0,o.formik.setFormikState)(function(n){var o=Bn(r,e),i=Bn(t,e),l=_n(n.values,a,e(bn(n.values,a))),s=r?o(bn(n.errors,a)):void 0,u=t?i(bn(n.touched,a)):void 0;return gn(s)&&(s=void 0),gn(u)&&(u=void 0),an({},n,{values:l,errors:r?_n(n.errors,a,s):n.errors,touched:t?_n(n.touched,a,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(kn(t),[Bt(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=kn(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=kn(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return In(n,e,t)},function(t){return In(t,e,null)},function(t){return In(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return function(e,t,n){var r=kn(e);return r[t]=n,r}(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t=r.length,r},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(un(n)),n.pop=n.pop.bind(un(n)),n}ln(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Ht()(bn(e.formik.values,e.name),bn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?kn(n):[];return t||(t=r[e]),hn(r.splice)&&r.splice(e,1),hn(r.every)&&r.every(function(e){return void 0===e})?[]:r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,a=t.name,i=an({},e,{form:sn(t.formik,[\"validate\",\"validationSchema\"]),name:a});return n?(0,Ft.createElement)(n,i):r?r(i):o?\"function\"==typeof o?o(i):yn(o)?null:Ft.Children.only(o):null},t}(Ft.Component);Fn.defaultProps={validateOnChange:!0};var jn=xn(function(e){function t(){return e.apply(this,arguments)||this}ln(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return bn(this.props.formik.errors,this.props.name)!==bn(e.formik.errors,this.props.name)||bn(this.props.formik.touched,this.props.name)!==bn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,o=e.children,a=e.name,i=sn(e,[\"component\",\"formik\",\"render\",\"children\",\"name\"]),l=bn(n.touched,a),s=bn(n.errors,a);return l&&s?r?hn(r)?r(s):null:o?hn(o)?o(s):null:t?(0,Ft.createElement)(t,i,s):s:null},t}(Ft.Component))},88269:(e,t,n)=>{\"use strict\";e.exports=n.p+\"e40e0da2ab30e41563ce.woff2\"},88368:function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return l(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.AgGridReactLegacy=void 0;var c=n(64436),d=u(n(5556)),p=s(n(81970)),f=n(27307),g=n(26478),h=n(68583),m=n(42184),v=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=[\"context\"],n.portalManager=new h.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return p.default.createElement(\"div\",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return a({height:\"100%\"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new y(this,this.portalManager)},modules:e,frameworkOverrides:new m.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{};this.gridOptions=c.ComponentUtil.copyAttributesToGridOptions(n,this.props),this.checkForDeprecations(this.props),new c.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&c._.doOnce(function(){return console.warn(\"AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/\")},\"rowDataChangeDetectionStrategy_Deprecation\")},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=!!t.debug;Object.keys(t).forEach(function(o){c.ComponentUtil.ALL_PROPERTIES_SET.has(o)&&e[o]!==t[o]&&(r&&console.log(\"agGridReact: [\"+o+\"] property changed\"),n[o]={previousValue:e[o],currentValue:t[o]})}),c.ComponentUtil.EVENT_CALLBACKS.forEach(function(o){e[o]!==t[o]&&(r&&console.log(\"agGridReact: [\"+o+\"] event callback changed\"),n[o]={previousValue:e[o],currentValue:t[o]})})},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=a({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){t[e]&&(n[e]=t[e],delete t[e])}),Object.keys(n).length>0&&this.api&&c.ComponentUtil.processOnChange(n,this.api)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout(function(){t.api&&c.ComponentUtil.processOnChange(e,t.api)})},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(p.Component);function A(e,t){e.forEach(function(e){v[e]=t})}t.AgGridReactLegacy=v,v.propTypes={gridOptions:d.default.object},A(c.ComponentUtil.EVENT_CALLBACKS,d.default.func),A(c.ComponentUtil.BOOLEAN_PROPERTIES,d.default.bool),A(c.ComponentUtil.STRING_PROPERTIES,d.default.string),A(c.ComponentUtil.OBJECT_PROPERTIES,d.default.object),A(c.ComponentUtil.ARRAY_PROPERTIES,d.default.array),A(c.ComponentUtil.NUMBER_PROPERTIES,d.default.number),A(c.ComponentUtil.FUNCTION_PROPERTIES,d.default.func);var y=function(e){function t(t,n){var r=e.call(this)||this;return r.agGridReact=t,r.portalManager=n,r}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new f.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new g.NewReactComponent(e,this.portalManager,t)},t}(c.BaseComponentWrapper)},88383:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"it\",{months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:function(){return\"[Oggi a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},nextDay:function(){return\"[Domani a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},nextWeek:function(){return\"dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},lastDay:function(){return\"[Ieri a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},lastWeek:function(){return 0===this.day()?\"[La scorsa] dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\":\"[Lo scorso] dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},sameElse:\"L\"},relativeTime:{future:\"tra %s\",past:\"%s fa\",s:\"alcuni secondi\",ss:\"%d secondi\",m:\"un minuto\",mm:\"%d minuti\",h:\"un'ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",w:\"una settimana\",ww:\"%d settimane\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}})}(n(95093))},88404:e=>{function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},88431:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(59213).every;r({target:\"Array\",proto:!0,forced:!n(34598)(\"every\")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},88490:e=>{\"use strict\";var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,i=Math.LN2;e.exports={pack:function(e,l,s){var u,c,d,p=t(s),f=8*s-l-1,g=(1<<f)-1,h=g>>1,m=23===l?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,A=0;for((e=n(e))!=e||e===1/0?(c=e!=e?1:0,u=g):(u=o(a(e)/i),e*(d=r(2,-u))<1&&(u--,d*=2),(e+=u+h>=1?m/d:m*r(2,1-h))*d>=2&&(u++,d/=2),u+h>=g?(c=0,u=g):u+h>=1?(c=(e*d-1)*r(2,l),u+=h):(c=e*r(2,h-1)*r(2,l),u=0));l>=8;)p[A++]=255&c,c/=256,l-=8;for(u=u<<l|c,f+=l;f>0;)p[A++]=255&u,u/=256,f-=8;return p[A-1]|=128*v,p},unpack:function(e,t){var n,o=e.length,a=8*o-t-1,i=(1<<a)-1,l=i>>1,s=a-7,u=o-1,c=e[u--],d=127&c;for(c>>=7;s>0;)d=256*d+e[u--],s-=8;for(n=d&(1<<-s)-1,d>>=-s,s+=t;s>0;)n=256*n+e[u--],s-=8;if(0===d)d=1-l;else{if(d===i)return n?NaN:c?-1/0:1/0;n+=r(2,t),d-=l}return(c?-1:1)*n*r(2,d-t)}}},88505:(e,t,n)=>{\"use strict\";e.exports=n.p+\"9a5844a9e61bff3909d1.svg\"},88611:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>_t}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(34782),n(15086),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(21699),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(81970),o=n.n(r),a=n(47767),i=n(90815),l=n(56203),s=n(99478),u=n(96348),c=n(78208),d=n(47225),p=n(13075),f=n(92416),g=n(46374),h=n(27776),m=(n(50113),n(48980),n(62062),n(94490),n(94170),n(40150),n(59904),n(40875),n(10287),n(3362),n(28161)),v=n(60538),A=n(37998),y=n(43605),E=n(56254),b=n(15664),_=n(29191),C=n(21239),w=n(59615),S=function(e){return e.MDO=\"MDO\",e.TM=\"TM\",e.DISTRIBUTOR=\"DISTRIBUTOR\",e}({}),T=(n(25843),n(5506),n(25440),n(8085));function O(e){return O=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},O(e)}function D(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return R(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(R(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,R(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,R(d,\"constructor\",u),R(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",R(u,o,\"GeneratorFunction\"),R(d),R(d,o,\"Generator\"),R(d,r,function(){return this}),R(d,\"toString\",function(){return\"[object Generator]\"}),(D=function(){return{w:a,m:p}})()}function R(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}R=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){R(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},R(e,t,n,r)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function M(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=O(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==O(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I=function(e){var t,n,r,o,a;return{\"country-code\":null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode,\"bu-id\":null==e||null===(n=e.selectedBusinessUnit)||void 0===n?void 0:n.bu_id,\"role-id\":Number.parseInt(null==e||null===(r=e.selectedBusinessUnit)||void 0===r||null===(r=r.userRoleControls)||void 0===r?void 0:r.roleId)||0,\"role-type-name\":null==e||null===(o=e.UserDetails)||void 0===o||null===(o=o.role_type_details)||void 0===o?void 0:o.role_type_name,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}},k=function(e,t){Object.entries(t).forEach(function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(n,r)||function(e,t){if(e){if(\"string\"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(n,r)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),a=o[0],i=o[1];!function(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).forEach(function(n){return e.append(t,String(n))})}(e,a,i||[])})},B=function(e,t,n){null!=n&&\"\"!==String(n)&&e.append(t,String(n))},F=function(e,t,n,r,o,a){var i,l,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"post\",u=function(e){var t=(null==e?void 0:e.filters)||e||{},n=Array.isArray(t.years)?t.years[0]:t.year;return{hierarchyIds:t.tm_hq_ids||t.bm_hq_ids||t.hqIds,brandIds:t.brands||t.brand_ids,cropIds:t.crops||t.crop_ids,months:t.months,year:n}}(r),c={};c.domain=t;var d={sort_by:(null==r?void 0:r.sort_by)||(null==r?void 0:r.sortBy)||\"\",search_key:(null==r?void 0:r.searchKey)||\"\",page_no:null==r?void 0:r.pageNo,page_size:null==r?void 0:r.pageSize},f=new URLSearchParams;k(f,M(M(M(M({},a,u.hierarchyIds),\"brand_ids\",u.brandIds),\"crop_ids\",u.cropIds),\"months\",u.months)),B(f,\"year\",u.year),\"get\"===s?(B(f,\"sort_by\",d.sort_by),B(f,\"search_key\",d.search_key),B(f,\"page_no\",d.page_no),B(f,\"page_size\",d.page_size)):c.payLoad=d;var g=f.toString(),h=g?\"?\"+g:\"\";return c.endPoint=t+o+h,c.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),\"role-id\":\"\".concat(null!==(i=null==e||null===(l=e.selectedBusinessUnit)||void 0===l||null===(l=l.userRoleControls)||void 0===l?void 0:l.roleId)&&void 0!==i?i:\"\"),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,(0,p.AT)(s,c,!0)},j=function(e,t,n,r){var o,a,i={};i.domain=t,i.payLoad={sort_by:(null==r?void 0:r.sort_by)||\"\",search_key:(null==r?void 0:r.searchKey)||\"\",page_no:null==r?void 0:r.pageNo,page_size:null==r?void 0:r.pageSize};var l=new URLSearchParams;k(l,{mdo_hq_ids:null==r?void 0:r.mdo_hq_ids,brand_ids:null==r?void 0:r.brand_ids,crop_ids:null==r?void 0:r.crop_ids,months:null==r?void 0:r.months}),B(l,\"year\",null==r?void 0:r.year);var s=l.toString(),u=s?\"?\"+s:\"\";return i.endPoint=t+T.p.GET_PRODUCT_DEMO_TRACKING_MDO_LIST+u,i.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),\"role-id\":\"\".concat(null!==(o=null==e||null===(a=e.selectedBusinessUnit)||void 0===a||null===(a=a.userRoleControls)||void 0===a?void 0:a.roleId)&&void 0!==o?o:\"\"),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,(0,p.AT)(\"post\",i,!0)},H=function(e,t){var n,r,o,a={};return a.domain=t,a.endPoint=\"\".concat(t,\"brands/bu/\").concat(null==e||null===(n=e.selectedBusinessUnit)||void 0===n?void 0:n.bu_id),a.customHeaders={\"country-code\":\"\".concat(null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode),\"bu-id\":\"\".concat(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_id),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},(0,p.AT)(\"get\",a,!0).then(function(e){return e||[]}).catch(function(e){return console.error(\"Error fetching MDO brand options:\",e),[]})},U=function(e,t){var n,r,o,a={};return a.domain=t,a.endPoint=\"\".concat(t).concat(T.p.GET_CROPDATA.replace(\"__ID__\",String(null==e||null===(n=e.selectedBusinessUnit)||void 0===n?void 0:n.bu_id))),a.customHeaders={\"country-code\":\"\".concat(null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode),\"bu-id\":\"\".concat(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_id),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},(0,p.AT)(\"get\",a,!0).then(function(e){return e||[]}).catch(function(e){return console.error(\"Error fetching MDO crop options:\",e),[]})},Y=function(e,t,n,r){return F(e,t,n,r,T.p.GET_PRODUCT_DEMO_TRACKING_TM_LIST,\"tm_hq_ids\")},G=function(e,t,n,r){return F(e,t,n,r,T.p.GET_PRODUCT_DEMO_TRACKING_DISTRIBUTOR_LIST,\"bm_hq_ids\",\"get\")},z=function(){var e,t=(e=D().m(function e(t,n,r,o,a){var i;return D().w(function(e){for(;;)switch(e.n){case 0:return i=a.downloadTemplate,e.n=1,i({baseUrl:\"\".concat(n).concat(T.p.GET_PRODUCT_DEMO_TRACKING_INVOICES),payload:L(L({},o),{},{report_type:r}),options:{headers:L({\"Content-Type\":\"application/json\"},I(t)),responseType:\"arraybuffer\"},requestType:\"post\"});case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){P(a,r,o,i,l,\"next\",e)}function l(e){P(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n,r,o,a){return t.apply(this,arguments)}}();function V(e){return V=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},V(e)}function q(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=V(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==V(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W={DATE_DESC:{sortBy:\"year\",sortOrder:\"desc\"},DATE_ASC:{sortBy:\"year\",sortOrder:\"asc\"},DATE_NEW_TO_OLD:{sortBy:\"year\",sortOrder:\"desc\"},DATE_OLD_TO_NEW:{sortBy:\"year\",sortOrder:\"asc\"},LAID_DOWN_QTY_ASC:{sortBy:\"laid_down_qty\",sortOrder:\"asc\"},LAID_DOWN_QTY_DESC:{sortBy:\"laid_down_qty\",sortOrder:\"desc\"},FOC_ORDER_QTY_INCREASING:{sortBy:\"total_foc_order_qty\",sortOrder:\"asc\"},FOC_ORDER_QTY_DECREASING:{sortBy:\"total_foc_order_qty\",sortOrder:\"desc\"},FOC_INVOICED_QTY_INCREASING:{sortBy:\"total_foc_invoiced_qty\",sortOrder:\"asc\"},FOC_INVOICED_QTY_DECREASING:{sortBy:\"total_foc_invoiced_qty\",sortOrder:\"desc\"}},Q={DATE_NEW_TO_OLD:\"DATE_NEW_TO_OLD\",DATE_OLD_TO_NEW:\"DATE_OLD_TO_NEW\",LAID_DOWN_QTY_INCREASING:\"LAID_DOWN_QTY_INCREASING\",LAID_DOWN_QTY_DECREASING:\"LAID_DOWN_QTY_DECREASING\"},K=q(q(q({},S.MDO,\"DATE_NEW_TO_OLD\"),S.TM,\"DATE_NEW_TO_OLD\"),S.DISTRIBUTOR,\"DATE_NEW_TO_OLD\"),$=q(q(q({},S.MDO,[{title:\"By Date\",options:[{label:\"New to Old\",value:\"DATE_NEW_TO_OLD\"},{label:\"Old to New\",value:\"DATE_OLD_TO_NEW\"}]},{title:\"By Laid Down Qty\",options:[{label:\"Increasing\",value:\"LAID_DOWN_QTY_INCREASING\"},{label:\"Decreasing\",value:\"LAID_DOWN_QTY_DECREASING\"}]}]),S.TM,[{title:\"By Date\",options:[{label:\"New to Old\",value:\"DATE_NEW_TO_OLD\"},{label:\"Old to New\",value:\"DATE_OLD_TO_NEW\"}]},{title:\"By Laid Down Qty\",options:[{label:\"Increasing\",value:\"LAID_DOWN_QTY_INCREASING\"},{label:\"Decreasing\",value:\"LAID_DOWN_QTY_DECREASING\"}]}]),S.DISTRIBUTOR,[{title:\"By Date\",options:[{label:\"New to Old\",value:\"DATE_NEW_TO_OLD\"},{label:\"Old to New\",value:\"DATE_OLD_TO_NEW\"}]},{title:\"By Order Qty\",options:[{label:\"Increasing\",value:\"FOC_ORDER_QTY_INCREASING\"},{label:\"Decreasing\",value:\"FOC_ORDER_QTY_DECREASING\"}]},{title:\"By Invoiced Qty\",options:[{label:\"Increasing\",value:\"FOC_INVOICED_QTY_INCREASING\"},{label:\"Decreasing\",value:\"FOC_INVOICED_QTY_DECREASING\"}]}]),X=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=te(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==te(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){return te=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},te(e)}n(72712);var ne=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){if(\"number\"==typeof e)return{label:X[e-1]||String(e),value:e};var t=Number(e);if(!Number.isNaN(t)&&t>=1&&t<=12)return{label:X[t-1],value:t};var n=X.findIndex(function(t){return t.toLowerCase()===String(e).toLowerCase()});return{label:String(e),value:n>=0?n+1:String(e)}}).filter(function(e){return\"\"!==(null==e?void 0:e.label)})},re=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return null!=e&&\"\"!==e}).map(function(e){if(\"object\"===te(e)){var t,n,r,o,a,i,l,s,u=String(null!==(t=null!==(n=null!==(r=null!==(o=null==e?void 0:e.name)&&void 0!==o?o:null==e?void 0:e.label)&&void 0!==r?r:null==e?void 0:e.brand_name)&&void 0!==n?n:null==e?void 0:e.crop_name)&&void 0!==t?t:\"\");return{label:u,value:null!==(a=null!==(i=null!==(l=null!==(s=null==e?void 0:e.id)&&void 0!==s?s:null==e?void 0:e.value)&&void 0!==l?l:null==e?void 0:e.brand_id)&&void 0!==i?i:null==e?void 0:e.crop_id)&&void 0!==a?a:u}}return{label:String(e),value:\"number\"==typeof e?e:String(e)}}).filter(function(e){return e.label})},oe=function(){var e=(new Date).getFullYear();return[{label:String(e),value:e},{label:String(e-1),value:e-1}]},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=new Date;return Number(t)!==n.getFullYear()?e:e.filter(function(e){return Number(null==e?void 0:e.value)<=n.getMonth()+1})},ie=function(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]},le=function(e){return Z(Z({},e.reduce(function(e,t){return e[t]=[],e},{})),{},{year:oe()[0],month:[],brand:[],crop:[]})},se=n(11848),ue=(0,se.Ay)(m.A)(function(e){return e.theme,{overflow:\"auto\",padding:\"0\"}}),ce=((0,se.Ay)(m.A)(function(e){return e.theme,{overflow:\"auto\"}}),n(31415),n(8239)),de=n(14073),pe=n(88084),fe=n(36874),ge=n(15255),he=n(64121),me=n(48506);function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(e,t,n,r,a){var i=(null==n?void 0:n[e])||[];return o().createElement(ce.Ay,{item:!0,xs:3},o().createElement(de.A,{variant:\"subtitle2\"},t),o().createElement(me.A,{name:e,options:r,selectedOption:i,disablePortal:!0,onHandleChange:function(t){return a(e,(t||[]).map(function(e){return ye(ye({},e),{},{checked:!0})}))},disabled:!r.length}))},_e=function(e){var t,n=e.values,r=e.setFieldValue,a=e.shouldShowBrandCrop,i=e.hierarchyLabelNames,l=e.yearOptions,s=e.monthOptions,u=e.brandOptions,c=e.cropOptions,d=e.getHierarchyOptions,p=e.onHierarchyFilterChange;return o().createElement(o().Fragment,null,function(e,t,n,r,a){return e.map(function(e,i){var l=r(e);return o().createElement(ce.Ay,{item:!0,xs:3,key:e},o().createElement(de.A,{variant:\"subtitle2\"},e),o().createElement(me.A,{name:e,options:l,selectedOption:(null==t?void 0:t[e])||[],onHandleChange:function(t){return function(e,t,n,r,o){var a=function(e){return(e||[]).map(function(e){return ye(ye({},e),{},{checked:!0})})}(e),i=function(e){return e.map(function(e){return null==e?void 0:e.value}).filter(function(e){return void 0!==e})}(a);r(t,a),o(i,n,r,t)}(t,e,i,n,a)},disabled:!l.length}))})}(i,n,r,d,p),a&&o().createElement(o().Fragment,null,be(\"brand\",\"Brand\",n,u,r),be(\"crop\",\"Crop\",n,c,r)),function(e,t,n,r,a,i,l){var s=null==r?void 0:r[e];return o().createElement(ce.Ay,{item:!0,xs:3},o().createElement(de.A,{variant:\"subtitle2\"},\"Year\"),o().createElement(pe.D0,{name:e},function(){return o().createElement(he.A,{defaultLabel:\"Select Year\",name:e,label:e,labelKey:\"label\",value:(null==s?void 0:s.label)||\"\",selectedOption:s,options:a,isSortReq:!0,isDisabled:!a.length,onChange:function(t,n){return l?l(n):i(e,n)}})}))}(\"year\",0,0,n,l,r,function(e){r(\"year\",e);var t=new Set(ae(s,null==e?void 0:e.value).map(function(e){return Number(null==e?void 0:e.value)}));r(\"month\",((null==n?void 0:n.month)||[]).filter(function(e){return t.has(Number(null==e?void 0:e.value))}))}),be(\"month\",\"Month\",n,ae(s,null==n||null===(t=n.year)||void 0===t?void 0:t.value),r))},Ce=function(e){var t=e.isFilterOpen,n=e.reportType,r=e.onRequestClose,a=e.selectedFilters,i=e.yearOptions,l=e.monthOptions,s=e.brandOptions,u=e.cropOptions,c=e.hierarchyLabelNames,d=e.hierarchyLabelOptions,p=e.onHierarchyFilterChange,f=e.onApplyFilters,g=e.onClearFilters,h=n===S.DISTRIBUTOR,v=!h,A=h?\"event-baseline-floating-filter-wrapper distributor-level-filter-wrapper\":\"event-baseline-floating-filter-wrapper\",y=function(e,t){var n=((null==e?void 0:e.length)||0)+(t?2:0)+2;return 90*Math.max(1,Math.ceil(n/4))+(t?64:84)}(c,v),E=function(e){var t;return(null==d||null===(t=d.find(function(t){return(null==t?void 0:t.labelName)===e}))||void 0===t?void 0:t.options)||[]},b=function(e){var t=e.values,n=e.setFieldValue,a=function(e,t){var n,r=null==e?void 0:e.at(-1),o=null==e?void 0:e.some(function(e){var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).length>0}),a=!r||(null!==(n=null==t?void 0:t[r])&&void 0!==n?n:[]).length>0;return o&&!a}(c,t);return o().createElement(pe.lV,{className:\"bgp-floating-filter-mdo\"},o().createElement(ce.Ay,{container:!0,columns:{xs:12},spacing:2,mb:2,sx:{\"& .multi-select\":{width:\"100%\",maxWidth:\"100%\"},\"& .dropdown-container\":{width:\"100%\"},\"& .dropdown-content\":{width:\"100% !important\",zIndex:\"1300 !important\"}}},_e({values:t,setFieldValue:n,shouldShowBrandCrop:v,hierarchyLabelNames:c,yearOptions:i,monthOptions:l,brandOptions:s,cropOptions:u,getHierarchyOptions:E,onHierarchyFilterChange:p})),o().createElement(ge.A,{onClearFilters:g,onClose:r,isApplyDisabled:a}))};return o().createElement(fe.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(m.A,{p:3,className:A,style:{minHeight:y}},o().createElement(pe.l1,{enableReinitialize:!0,initialValues:a,onSubmit:f},b)))};const we=o().memo(Ce);n(99449);var Se=function(e){var t=(0,a.Zp)(),n=(0,a.zy)(),r=e.data;return o().createElement(\"button\",{type:\"button\",className:\"smart-agro-lite-green-label remove-button\",onClick:function(){for(var e=n.pathname;e.endsWith(\"/\");)e=e.slice(0,-1);t(\"\".concat(e,\"/\").concat(u.fp.DistributorLevelDetails).concat(n.search),{state:{distributorItem:r}})}},(0,l.t)(\"DETAILS\"))},Te=n(18978),Oe=n(94985),De=n(23835);function Re(e){return Re=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Re(e)}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Me(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Me(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Me(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Me(d,\"constructor\",u),Me(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Me(u,o,\"GeneratorFunction\"),Me(d),Me(d,o,\"Generator\"),Me(d,r,function(){return this}),Me(d,\"toString\",function(){return\"[object Generator]\"}),(Pe=function(){return{w:a,m:p}})()}function Me(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Me=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Me(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Me(e,t,n,r)}function xe(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ie(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){xe(a,r,o,i,l,\"next\",e)}function l(e){xe(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Be(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Be(e,t){if(e){if(\"string\"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function je(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Re(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Re(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=je(je({},S.TM,\"tm_hq_ids\"),S.DISTRIBUTOR,\"bm_hq_ids\"),Ue=je(je(je({},S.MDO,\"mdoHqIds\"),S.TM,\"tmHqIds\"),S.DISTRIBUTOR,\"bmHqIds\"),Ye=function(e){return e.sales_hierarchy_code.includes(\"BM\")||e.name.toUpperCase().includes(\"BM\")},Ge=function(e,t){if(!e.length)return e;if(t===S.DISTRIBUTOR){var n=e.findIndex(Ye);return n>=0?e.slice(0,n+1):e.slice(0,-1)}return t===S.TM?e.slice(0,-1):e},ze=(0,r.memo)(function(e){var t=e.reportType,n=(0,r.useContext)(d.v),a=n.BackOfficeProps,u=a.globalStore.User,c=a.baseurl,f=n.triggerShowLoader,g=n.triggerToastMsg,h=(0,De.A)().downloadTemplate,T=ke((0,r.useState)({pageNo:0,pageSize:Number(10)||20,searchKey:\"\"}),2),O=T[0],D=T[1],R=ke((0,r.useState)([]),2),N=R[0],L=R[1],P=ke((0,r.useState)(0),2),M=P[0],x=P[1],I=ke((0,r.useState)(0),2),k=I[0],B=I[1],F=ke((0,r.useState)(!1),2),V=F[0],q=F[1],J=ke((0,r.useState)(K[t]),2),Z=J[0],ee=J[1],te=ke((0,r.useState)([]),2),ae=te[0],se=te[1],ce=ke((0,r.useState)([]),2),de=ce[0],pe=ce[1],fe=ke((0,r.useState)([]),2),ge=fe[0],he=fe[1],me=ke((0,r.useState)([]),2),ve=me[0],Ae=me[1],ye=ke((0,r.useState)([]),2),Ee=ye[0],be=ye[1],_e=ke((0,r.useState)([]),2),Ce=_e[0],Re=_e[1],Ne=ke((0,r.useState)([]),2),Me=Ne[0],xe=Ne[1],je=ke((0,r.useState)(function(){return le([])}),2),Ye=je[0],ze=je[1],Ve=ke((0,r.useState)(function(){return le([])}),2),qe=Ve[0],We=Ve[1],Qe=(0,r.useMemo)(function(){switch(t){case S.MDO:return A.er;case S.TM:return A.ty;case S.DISTRIBUTOR:return A.Pr;default:return A.lh}},[t]),Ke=(0,r.useMemo)(function(){return $[t]},[t]),$e=(0,r.useMemo)(function(){switch(t){case S.DISTRIBUTOR:return(0,l.t)(\"DISTRIBUTOR_REPORT_SEARCH\");case S.TM:return(0,l.t)(\"TM_REPORT_SEARCH\");default:return(0,l.t)(\"MDO_REPORT_SEARCH\")}},[t]),Xe=(0,r.useMemo)(function(){return W[Z]||W[K[t]]},[Z,t]);(0,r.useEffect)(function(){ee(K[t])},[t]);var Je=(0,r.useCallback)(function(e){var n,r,o=null==e||null===(n=e.year)||void 0===n?void 0:n.value,a=ie(null==e?void 0:e.month).map(function(e){return Number(null==e?void 0:e.value)}).filter(function(e){return!Number.isNaN(e)}),i=ie(null==e?void 0:e.brand).map(function(e){return null==e?void 0:e.value}).filter(function(e){return null!=e}),l=ie(null==e?void 0:e.crop).map(function(e){return null==e?void 0:e.value}).filter(function(e){return null!=e}),s=(r=Ce,function(e){if(Array.isArray(e))return Fe(e)}(r)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(r)||Be(r)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()).reverse().map(function(t){return ie(null==e?void 0:e[t]).map(function(e){return null==e?void 0:e.value}).filter(function(e){return null!=e})}).find(function(e){return e.length>0})||[];if(t===S.MDO)return{mdo_hq_ids:s,brand_ids:i,crop_ids:l,year:void 0!==o?String(o):\"\",months:a};var u={};return void 0!==o&&(u.years=[Number(o)]),a.length&&(u.months=a),i.length&&(u.brands=i.map(String)),l.length&&(u.crops=l.map(String)),s.length&&(u[He[t]]=s),u},[Ce,t]),Ze=(0,r.useCallback)(Ie(Pe().m(function e(){var n,r,o,a,i,l;return Pe().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,t!==S.MDO&&t!==S.TM){e.n=3;break}return n=[H(u,c),U(u,c)],e.n=1,Promise.all(n);case 1:if(r=e.v,o=ke(r,2),a=o[0],i=o[1],he(re(Array.isArray(a)?a:[])),Ae(re(Array.isArray(i)?i:[])),t!==S.TM){e.n=2;break}return se(oe()),pe(ne(X.map(function(e,t){return t+1}))),e.a(2);case 2:return se(oe()),pe(ne(X.map(function(e,t){return t+1}))),e.a(2);case 3:se(oe()),pe(ne(X.map(function(e,t){return t+1}))),he([]),Ae([]),e.n=5;break;case 4:e.p=4,l=e.v,console.error(\"Error fetching demo report filter options:\",l);case 5:return e.a(2)}},e,null,[[0,4]])})),[u,c,t]),et=(0,r.useCallback)(Ie(Pe().m(function e(){var n,r,o,a,i,l,s,d,p,g,h;return Pe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,Oe.Vs)(u,c,f);case 1:if(n=e.v,r=null==n?void 0:n.sales_hierarchy_id){e.n=2;break}return be([]),Re([]),xe([]),e.a(2);case 2:return e.n=3,(0,Te.FU)(u,c,f,r);case 3:if(o=e.v,a=Array.isArray(o)?o:[],i=a.filter(function(e){return Boolean(null==e?void 0:e.name)}).map(function(e){return{name:null==e?void 0:e.name,sales_hierarchy_code:String((null==e?void 0:e.sales_hierarchy_code)||\"\").toUpperCase(),sales_hierarchy_id:null==e?void 0:e.sales_hierarchy_id}}),(l=Ge(i,t)).length){e.n=4;break}return be([]),Re([]),xe([]),e.a(2);case 4:if(s=l.map(function(e){return e.name}),be(l),Re(s),xe(s.map(function(e){return{labelName:e,options:[]}})),null==(d=l[0])||!d.sales_hierarchy_id){e.n=6;break}return e.n=5,(0,Te.Bs)(Number(d.sales_hierarchy_id),u,c,f);case 5:p=e.v,g=(p||[]).map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),xe(function(e){return e.map(function(e,t){return 0===t?Le(Le({},e),{},{options:g}):e})});case 6:e.n=8;break;case 7:e.p=7,h=e.v,console.error(\"Error fetching hierarchy filter options:\",h),be([]),Re([]),xe([]);case 8:return e.a(2)}},e,null,[[0,7]])})),[u,c,f,t]),tt=(0,r.useCallback)(function(){var e=Ie(Pe().m(function e(t,n,r,o){var a,i,l,s,d,p;return Pe().w(function(e){for(;;)switch(e.p=e.n){case 0:for(a=n+1;a<Ce.length;a+=1)r(Ce[a],[]);if(xe(function(e){return e.map(function(e,t){return t<=n?e:Le(Le({},e),{},{options:[]})})}),i=Ee[n+1],(l=null==i?void 0:i.sales_hierarchy_id)&&t.length){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,(0,Te._n)(u,c,f,{targetForId:l,parentHqIds:t});case 2:s=e.v,d=(s||[]).map(function(e){return{label:null==e?void 0:e.hq_data_name,value:null==e?void 0:e.hq_data_id,checked:!1}}),xe(function(e){return e.map(function(e,t){return t===n+1?Le(Le({},e),{},{options:d}):e})}),e.n=4;break;case 3:e.p=3,p=e.v,console.error(\"Error fetching child hierarchy options:\",p);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(t,n,r,o){return e.apply(this,arguments)}}(),[u,c,f,Ee,Ce]),nt=(0,r.useCallback)(Ie(Pe().m(function e(){var n,r,o,a,i,s,d,p,h,m,v,A,y;return Pe().w(function(e){for(;;)switch(e.p=e.n){case 0:e.p=0,v=Le(Le({},O),t===S.MDO?Le({sort_by:Q[Z]||Q[K[t]]},Je(qe)):{sort_by:Z,filters:Je(qe)}),A=t,e.n=A===S.MDO?1:A===S.TM?3:A===S.DISTRIBUTOR?5:7;break;case 1:return e.n=2,j(u,c,f,v);case 2:return m=e.v,e.a(3,8);case 3:return e.n=4,Y(u,c,f,v);case 4:return m=e.v,e.a(3,8);case 5:return e.n=6,G(u,c,f,v);case 6:return m=e.v,e.a(3,8);case 7:m={data:[],totalElements:0,totalPageCount:0};case 8:L((null===(n=m)||void 0===n?void 0:n.data)||[]),x(null!==(r=null!==(o=null===(a=m)||void 0===a?void 0:a.totalElements)&&void 0!==o?o:null===(i=m)||void 0===i?void 0:i.totalCount)&&void 0!==r?r:0),B(null!==(s=null!==(d=null===(p=m)||void 0===p?void 0:p.totalPageCount)&&void 0!==d?d:null===(h=m)||void 0===h?void 0:h.totalPages)&&void 0!==s?s:0),e.n=10;break;case 9:e.p=9,y=e.v,console.error(\"Error fetching report data:\",y),g({message:(0,l.t)(\"ERROR_FETCHING_DATA\")||\"Error fetching report data\",type:\"error\"});case 10:return e.a(2)}},e,null,[[0,9]])})),[O,t,Z,Xe,u,c,f,g,qe,Je]);(0,r.useEffect)(function(){nt()},[O,qe,Z,t]),(0,r.useEffect)(function(){Ze(),et()},[t]),(0,r.useEffect)(function(){ze(function(e){return Le(Le({},le(Ce)),e)})},[Ce]);var rt=(0,r.useCallback)(function(e){D(function(t){return Le(Le({},t),{},{searchKey:e,pageNo:0})})},[]),ot=(0,r.useCallback)(Ie(Pe().m(function e(){var n,r,o,a,i,s,d;return Pe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,o=Je(qe),a=Le(Le({},o),{},{year:t===S.MDO?Number(o.year)||null:(null==o||null===(n=o.years)||void 0===n?void 0:n[0])||null,months:null!==(r=o.months)&&void 0!==r&&r.length?o.months:null}),i=o.mdo_hq_ids||o.tm_hq_ids||o.bm_hq_ids||[],null==a||delete a.years,delete a.mdo_hq_ids,delete a.tm_hq_ids,delete a.bm_hq_ids,a[Ue[t]]=i,s=a.brand_ids||a.brands,d=a.crop_ids||a.crops,s&&(a.brandIds=s),d&&(a.cropIds=d),delete a.brand_ids,delete a.crop_ids,delete a.brands,delete a.crops,e.n=1,z(u,c,t,Le(Le({searchKeyword:O.searchKey,sortBy:Z},a),{},{pageNo:O.pageNo,pageSize:O.pageSize}),{downloadTemplate:h});case 1:e.n=3;break;case 2:e.p=2,e.v,g({message:(0,l.t)(\"DOWNLOAD_FAILED\")||\"Failed to download report\",type:\"error\"});case 3:return e.p=3,f(!1),e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])})),[u,c,t,O.searchKey,O.pageNo,O.pageSize,Xe,Z,qe,f,g,Je,h]),at=(0,r.useCallback)(function(e){ze(e),We(e),D(function(e){return Le(Le({},e),{},{pageNo:0})}),q(!1)},[]),it=(0,r.useCallback)(function(){var e=le(Ce);ze(e),We(e),xe(function(e){return e.map(function(e,t){return Le(Le({},e),{},{options:0===t?e.options:[]})})}),D(function(e){return Le(Le({},e),{},{pageNo:0})}),q(!1)},[Ce]),lt=(0,r.useCallback)(function(e){var n=K[t];ee(e||n),D(function(e){return Le(Le({},e),{},{pageNo:0})})},[t]),st=(0,r.useCallback)(function(e){D(function(t){return Le(Le({},t),{},{pageNo:Number(e)})})},[]),ut=(0,r.useCallback)(function(e){D(function(t){return Le(Le({},t),{},{pageSize:Number(e),pageNo:0})})},[]),ct=(0,r.useMemo)(function(){return Le({},Ye)},[Ye]);return o().createElement(ue,null,o().createElement(m.A,null,o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2,spacing:2,marginTop:2},o().createElement(m.A,null,o().createElement(C.A,{onSearchValueChange:rt,placeholderText:(0,l.t)(\"SEARCH\")||\"Search...\",searchBasedOn:$e})),o().createElement(i.A,{flexDirection:\"row\",justifyContent:\"end\",gap:1},o().createElement(b.A,{className:(0,p.F7)(ct),buttonName:(0,l.t)(\"FILTERS\")||\"Filters\",color:\"transparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return q(!0)}}),o().createElement(w.K,{buttonLabel:(0,l.t)(\"SORT\")||\"Sort\",menuTitle:\"Sort By\",groups:Ke,sortBy:Z,onSort:lt}),o().createElement(b.A,{buttonName:(0,l.t)(\"DOWNLOAD_REPORT\")||\"Download Report\",variant:\"outlined\",fullwidth:!1,startIcon:o().createElement(\"span\",{className:\"icon-download\"}),onButtonClick:ot}))),o().createElement(v.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(y.A,{rows:N,columnDefs:Qe,frameworkComponents:{DetailsActionComponent:Se}})),V&&o().createElement(we,{isFilterOpen:V,reportType:t,onRequestClose:function(){return q(!1)},selectedFilters:Ye,yearOptions:ae,monthOptions:de,brandOptions:ge,cropOptions:ve,hierarchyLabelNames:Ce,hierarchyLabelOptions:Me,onHierarchyFilterChange:tt,onApplyFilters:at,onClearFilters:it}),o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mt:2},o().createElement(_.A,{selectedItem:O.pageSize,menuItemData:s.A9,onHandleChange:ut}),o().createElement(E.A,{pageNo:O.pageNo,totalPageCount:Math.ceil(k),totalElements:M,onPageChange:st}))))});ze.displayName=\"DemoReportList\";const Ve=ze;n(42762);var qe=n(51545),We=n(62809);function Qe(e){return Qe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Qe(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Qe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Qe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e){var t=e.isFilterOpen,n=e.onRequestClose,r=e.monthOptions,a=e.setMonthOptions,i=e.onApplyFilters,l=e.onClearFilters;return o().createElement(fe.A,{isDrawerOpen:t,anchor:\"top\",upper:!0},o().createElement(qe.A,{p:3},o().createElement(pe.l1,{initialValues:{},onSubmit:function(){var e=r.filter(function(e){return e.checked}).map(function(e){return Number(e.value)});i({months:e})}},o().createElement(pe.lV,{className:\"popupContent\"},o().createElement(ce.Ay,{container:!0,columns:12,spacing:2,mb:2},o().createElement(ce.Ay,{item:!0,xs:3},o().createElement(de.A,{variant:\"subtitle2\"},\"Month\"),o().createElement(pe.D0,{name:\"month\"},function(){return o().createElement(We.A,{name:\"Month\",labelKey:\"label\",options:r,onCheckboxChange:function(e){a(function(t){return n=t,r=e,o=new Set(null==r?void 0:r.map(function(e){return e.value})),n.map(function(e){return $e($e({},e),{},{checked:o.has(e.value)})});var n,r,o})},isDisabled:!r.length,selectedOptions:(e=r,e.filter(function(e){return e.checked}).map(function(e){return e.label})),defaultLabel:\"Select\"});var e}))),o().createElement(ge.A,{onClearFilters:l,onClose:n})))))};const Ze=o().memo(Je);var et=n(17630),tt=(0,se.Ay)(m.A)(function(){return{background:\"#F5F5F5\",width:\"100%\",\"& .product-demo-summary\":{border:\"1px solid #E8E8E8\",borderRadius:\"8px\",marginBottom:\"16px\",backgroundColor:\"#fff\"},\"& .summary-item\":{flex:1,minWidth:0},\"& .summary-label\":{display:\"flex\",alignItems:\"center\",gap:\"6px\",color:et.T.mainGreen,fontSize:\"14px\",fontWeight:500,marginBottom:\"6px\",\"& span[class^='icon-']\":{fontSize:\"16px\",lineHeight:1}},\"& .summary-value\":{color:et.T.primaryBlack,fontSize:\"14px\",fontWeight:400,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"}}});function nt(e){return nt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},nt(e)}function rt(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return ot(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(ot(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ot(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,ot(d,\"constructor\",u),ot(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",ot(u,o,\"GeneratorFunction\"),ot(d),ot(d,o,\"Generator\"),ot(d,r,function(){return this}),ot(d,\"toString\",function(){return\"[object Generator]\"}),(rt=function(){return{w:a,m:p}})()}function ot(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}ot=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){ot(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},ot(e,t,n,r)}function at(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach(function(t){st(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function st(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=nt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==nt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return ct(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dt=[{title:\"By Date\",options:[{label:\"New to Old\",value:\"DATE_NEW_TO_OLD\"},{label:\"Old to New\",value:\"DATE_OLD_TO_NEW\"}]},{title:\"By Invoiced Qty\",options:[{label:\"Increasing\",value:\"INVOICE_QTY_LOW_TO_HIGH\"},{label:\"Decreasing\",value:\"INVOICE_QTY_HIGH_TO_LOW\"}]}],pt=function(){var e,t,n,s,c,g,h,m=(0,r.useContext)(d.v),_=m.BackOfficeProps,S=_.globalStore.User,O=_.baseurl,D=m.triggerShowLoader,R=m.triggerToastMsg,N=(0,De.A)().downloadTemplate,L=ut((0,r.useState)({pageNo:0,pageSize:Number(10)||5}),2),P=L[0],M=L[1],x=ut((0,r.useState)([]),2),I=x[0],k=x[1],B=ut((0,r.useState)(0),2),F=B[0],j=B[1],H=ut((0,r.useState)(0),2),U=H[0],Y=H[1],G=ut((0,r.useState)(!1),2),V=G[0],q=G[1],W=ut((0,r.useState)(\"\"),2),Q=W[0],K=W[1],$=ut((0,r.useState)([]),2),J=$[0],Z=$[1],ee=ut((0,r.useState)(X.map(function(e,t){return{label:e,value:t+1,checked:!1}})),2),te=ee[0],ne=ee[1],re=ut((0,r.useState)(\"DATE_NEW_TO_OLD\"),2),oe=re[0],ae=re[1],ie=null===(e=(0,a.zy)())||void 0===e||null===(e=e.state)||void 0===e?void 0:e.distributorItem,le={bmName:null==ie?void 0:ie.bmName,tmName:null==ie?void 0:ie.tmName,distributorName:null==ie?void 0:ie.distributorName,bpId:null==ie?void 0:ie.distributorBpId},se=function(){var e,t=(e=rt().m(function e(){return rt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,z(S,O,\"DISTRIBUTOR_DETAILED\",{brand:null==ie?void 0:ie.brand,businessPartnerId:null==ie?void 0:ie.distributorBpId,bmName:null==ie?void 0:ie.bmName,tmName:null==ie?void 0:ie.tmName,distributorName:null==ie?void 0:ie.distributorName,year:null==ie?void 0:ie.year,months:J.length?J:null,searchKeyword:Q.trim().toLowerCase(),sortBy:oe,pageNo:P.pageNo,pageSize:P.pageSize},{downloadTemplate:N});case 1:e.n=3;break;case 2:e.p=2,e.v,R({message:(0,l.t)(\"DOWNLOAD_FAILED\")||\"Failed to download report\",type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){at(a,r,o,i,l,\"next\",e)}function l(e){at(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,r.useEffect)(function(){(function(e,t,n,r){var o,a,i,l,s={domain:t,endPoint:\"\".concat(t).concat(T.p.GET_PRODUCT_DEMO_TRACKING_DISTRIBUTOR_DETAILS_LIST),payLoad:r,customHeaders:{\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e||null===(a=e.selectedBusinessUnit)||void 0===a?void 0:a.bu_id,\"role-type-name\":null==e||null===(i=e.UserDetails)||void 0===i||null===(i=i.role_type_details)||void 0===i?void 0:i.role_type_name,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},triggerLoader:n};return(0,p.AT)(\"post\",s,!0)})(S,O,D,{businessPartnerId:null==ie?void 0:ie.distributorBpId,year:null==ie?void 0:ie.year,months:J,brand:null==ie?void 0:ie.brand,searchKey:Q.trim().toLowerCase(),pageNo:P.pageNo,pageSize:P.pageSize,sortBy:oe}).then(function(e){var t,n,r;k(null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]),j(null!==(n=null==e?void 0:e.totalElements)&&void 0!==n?n:0),Y(null!==(r=null==e?void 0:e.totalPages)&&void 0!==r?r:0)}).catch(function(){k([]),j(0),Y(0)})},[P,Q,J,oe,ie]),o().createElement(tt,null,o().createElement(qe.A,null,o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(f.A,{routePathName:[{name:u.F_.Events,path:u.fp.Events},{name:u.F_.Product_Demo_Tracking,path:\"\".concat(u.fp.Events,\"/\").concat(u.fp.Product_Demo_Tracking)},{name:null!==(t=le.distributorName)&&void 0!==t?t:\"\",path:\"\"}]})),o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(qe.A,{mt:2},o().createElement(C.A,{onSearchValueChange:function(e){M(function(e){return lt(lt({},e),{},{pageNo:0})}),K(e)},placeholderText:(0,l.t)(\"SEARCH\"),searchBasedOn:String(null!==(n=(0,l.t)(\"DISTRIBUTOR_DETAILS_REPORT_SEARCH\"))&&void 0!==n?n:\"\")})),o().createElement(i.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:1},o().createElement(b.A,{buttonName:(0,l.t)(\"FILTERS\"),className:(0,p.F7)({month:J}),color:\"trasnparent\",fullwidth:!1,endIcon:o().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){return q(!0)}}),o().createElement(w.K,{buttonLabel:(0,l.t)(\"SORT\")||\"Sort\",menuTitle:\"Sort By\",groups:dt,sortBy:oe,onSort:function(e){ae(e||\"DATE_NEW_TO_OLD\"),M(function(e){return lt(lt({},e),{},{pageNo:0})})}}),o().createElement(b.A,{buttonName:(0,l.t)(\"DOWNLOAD_REPORT\")||\"Download Report\",variant:\"outlined\",fullwidth:!1,startIcon:o().createElement(\"span\",{className:\"icon-download\"}),onButtonClick:se}))),o().createElement(v.A,{className:\"product-demo-summary\",elevation:0},o().createElement(i.A,{direction:\"row\",spacing:2,p:2},o().createElement(qe.A,{className:\"summary-item\"},o().createElement(de.A,{className:\"summary-label\"},o().createElement(\"span\",{className:\"icon-MDO\"}),(0,l.t)(\"BM_NAME\")),o().createElement(de.A,{className:\"summary-value\"},null!==(s=le.bmName)&&void 0!==s?s:\"--\")),o().createElement(qe.A,{className:\"summary-item\"},o().createElement(de.A,{className:\"summary-label\"},o().createElement(\"span\",{className:\"icon-MDO\"}),(0,l.t)(\"TM_NAME\")),o().createElement(de.A,{className:\"summary-value\"},null!==(c=le.tmName)&&void 0!==c?c:\"--\")),o().createElement(qe.A,{className:\"summary-item\"},o().createElement(de.A,{className:\"summary-label\"},o().createElement(\"span\",{className:\"icon-MDO\"}),(0,l.t)(\"DISTRIBUTOR_NAME\")),o().createElement(de.A,{className:\"summary-value\"},null!==(g=le.distributorName)&&void 0!==g?g:\"--\")),o().createElement(qe.A,{className:\"summary-item\"},o().createElement(de.A,{className:\"summary-label\"},o().createElement(\"span\",{className:\"icon-attendance-config\"}),(0,l.t)(\"BP_ID\")),o().createElement(de.A,{className:\"summary-value\"},null!==(h=le.bpId)&&void 0!==h?h:\"--\")))),o().createElement(v.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},o().createElement(y.A,{rows:I,columnDefs:A.E5})),o().createElement(E.A,{pageNo:P.pageNo,totalPageCount:Math.ceil(U),totalElements:F,onPageChange:function(e){M(function(t){return lt(lt({},t),{},{pageNo:Number(e)})})}})),V&&o().createElement(Ze,{isFilterOpen:V,onRequestClose:function(){return q(!1)},monthOptions:te,setMonthOptions:ne,onApplyFilters:function(e){Z(e.months),M(function(e){return lt(lt({},e),{},{pageNo:0})}),q(!1)},onClearFilters:function(){ne(function(e){return e.map(function(e){return lt(lt({},e),{},{checked:!1})})}),Z([]),M(function(e){return lt(lt({},e),{},{pageNo:0})}),q(!1)}}))};const ft=(0,r.memo)(pt);function gt(e){return gt=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},gt(e)}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach(function(t){vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vt(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=gt(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==gt(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yt=\"mdo-demo-report\",Et=\"tm-demo-report\",bt=\"distributor-demo-report\";const _t=function(){var e,t,n,m,v=(0,a.zy)(),A=(0,r.useContext)(d.v),y=null==A||null===(e=A.BackOfficeProps)||void 0===e||null===(e=e.globalStore)||void 0===e?void 0:e.User,E=null==A||null===(t=A.BackOfficeProps)||void 0===t?void 0:t.baseurl,b=null==A?void 0:A.triggerShowLoader,_=new URLSearchParams(v.search).get(\"tabname\"),C=v.pathname.includes(\"\".concat(bt,\"/\").concat(u.fp.DistributorLevelDetails)),w=(n=(0,r.useState)({tablist:[{id:1,tabName:(0,l.t)(\"MDO_DEMO_REPORT\")||\"MDO Demo Report\",path:yt,queryParam:{tabname:yt}},{id:2,tabName:(0,l.t)(\"TM_DEMO_REPORT\")||\"TM Demo Report\",path:Et,queryParam:{tabname:Et}},{id:3,tabName:(0,l.t)(\"DISTRIBUTOR_DEMO_REPORT\")||\"Distributor Demo Report\",path:bt,queryParam:{tabname:bt}}],currentTabs:yt}),m=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(n,m)||function(e,t){if(e){if(\"string\"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}(n,m)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),T=w[0],O=w[1];(0,r.useEffect)(function(){var e,t={moduleName:\"PRODUCT_DEMO_TRACKING\",keys:[s.Rk.DEMO_DISABLE_TM_REPORT],apiName:s.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS,roleId:null==y||null===(e=y.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId};(0,c.C)(y,E,b,t).then(function(e){var t;\"true\"===(null===(t=(0,p.Ws)(s.Rk.DEMO_DISABLE_TM_REPORT,e))||void 0===t?void 0:t.value)&&O(function(e){return mt(mt({},e),{},{tablist:e.tablist.filter(function(e){return e.path!==Et}),currentTabs:e.currentTabs===Et?yt:e.currentTabs})})}).catch(function(){})},[]),(0,r.useEffect)(function(){_&&O(function(e){return mt(mt({},e),{},{currentTabs:_})})},[_]);var D=(0,r.useCallback)(function(){return o().createElement(a.BV,null,o().createElement(a.qh,{index:!0,element:o().createElement(a.C5,{to:_?\"\".concat(_).concat(v.search):\"\".concat(yt,\"/?\").concat((0,p.Nr)({tabname:null!=_?_:yt}))})}),o().createElement(a.qh,{path:\"\".concat(yt,\"/*\"),element:o().createElement(Ve,{key:S.MDO,reportType:S.MDO})}),T.tablist.some(function(e){return e.path===Et})&&o().createElement(a.qh,{path:\"\".concat(Et,\"/*\"),element:o().createElement(Ve,{key:S.TM,reportType:S.TM})}),!T.tablist.some(function(e){return e.path===Et})&&o().createElement(a.qh,{path:\"\".concat(Et,\"/*\"),element:o().createElement(a.C5,{to:yt,replace:!0})}),o().createElement(a.qh,{path:\"\".concat(bt,\"/\").concat(u.fp.DistributorLevelDetails,\"/*\"),element:o().createElement(ft,null)}),o().createElement(a.qh,{path:\"\".concat(bt,\"/*\"),element:o().createElement(Ve,{key:S.DISTRIBUTOR,reportType:S.DISTRIBUTOR})}))},[_,v.search,yt,Et,bt,T]);return o().createElement(h.T,null,!C&&o().createElement(i.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},o().createElement(f.A,{routePathName:[{name:u.F_.Events,path:u.fp.Events},{name:u.F_.Product_Demo_Tracking,path:u.fp.Product_Demo_Tracking}]})),!C&&o().createElement(g.A,{tabStateProps:T,handleTabChange:function(e){O(function(t){return mt(mt({},t),{},{currentTabs:e})})},isParamsReq:!0}),D())}},88727:e=>{\"use strict\";e.exports=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"]},88747:(e,t,n)=>{\"use strict\";var r=n(94644),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=Math.floor;a(\"reverse\",function(){for(var e,t=this,n=o(t).length,r=i(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t})},88984:(e,t,n)=>{var r=n(55527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if(\"object\"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||\"default\");if(\"object\"!=r(o))return o;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},89102:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i,f:()=>a});var r=n(38413),o=n(31609);function a(e){return(0,o.Ay)(\"MuiListItemIcon\",e)}const i=(0,r.A)(\"MuiListItemIcon\",[\"root\",\"alignItemsFlexStart\"])},89115:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>p});var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);const p=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Demo_Tracking,path:i.fp.EntryPath}]})),n.length>0?a().createElement(d.A,{moduleData:n}):a().createElement(c.A,null))}},89223:(e,t,n)=>{\"use strict\";function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var o=l(n(81970)),a=l(n(46942)),i=n(29445);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function h(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=A(e);if(t){var a=A(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&(\"object\"===r(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}(this,n)}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var y=function(e){h(n,e);var t=v(n);function n(){return p(this,n),t.apply(this,arguments)}return g(n,[{key:\"clickHandler\",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:\"render\",value:function(){var e={\"slick-arrow\":!0,\"slick-prev\":!0},t=this.clickHandler.bind(this,{message:\"previous\"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e[\"slick-disabled\"]=!0,t=null);var n={key:\"0\",\"data-role\":\"none\",className:(0,a.default)(e),style:{display:\"block\"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,c(c({},n),r)):o.default.createElement(\"button\",s({key:\"0\",type:\"button\"},n),\" \",\"Previous\")}}]),n}(o.default.PureComponent);t.PrevArrow=y;var E=function(e){h(n,e);var t=v(n);function n(){return p(this,n),t.apply(this,arguments)}return g(n,[{key:\"clickHandler\",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:\"render\",value:function(){var e={\"slick-arrow\":!0,\"slick-next\":!0},t=this.clickHandler.bind(this,{message:\"next\"});(0,i.canGoNext)(this.props)||(e[\"slick-disabled\"]=!0,t=null);var n={key:\"1\",\"data-role\":\"none\",className:(0,a.default)(e),style:{display:\"block\"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,c(c({},n),r)):o.default.createElement(\"button\",s({key:\"1\",type:\"button\"},n),\" \",\"Next\")}}]),n}(o.default.PureComponent);t.NextArrow=E},89228:(e,t,n)=>{\"use strict\";n(27495);var r=n(69565),o=n(36840),a=n(57323),i=n(79039),l=n(78227),s=n(66699),u=l(\"species\"),c=RegExp.prototype;e.exports=function(e,t,n,d){var p=l(e),f=!i(function(){var t={};return t[p]=function(){return 7},7!==\"\"[e](t)}),g=f&&!i(function(){var t=!1,n=/a/;return\"split\"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags=\"\",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](\"\"),!t});if(!f||!g||n){var h=/./[p],m=t(p,\"\"[e],function(e,t,n,o,i){var l=t.exec;return l===a||l===c.exec?f&&!i?{done:!0,value:r(h,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}});o(String.prototype,e,m[0]),o(c,p,m[1])}d&&s(c[p],\"sham\",!0)}},89353:e=>{\"use strict\";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if(\"function\"!=typeof o||\"[object Function]\"!==t.apply(o))throw new TypeError(\"Function.prototype.bind called on incompatible \"+o);for(var a,i=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),l=n(0,o.length-i.length),s=[],u=0;u<l;u++)s[u]=\"$\"+u;if(a=Function(\"binder\",\"return function (\"+function(e){for(var t=\"\",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=\",\");return t}(s)+\"){ return binder.apply(this,arguments); }\")(function(){if(this instanceof a){var t=o.apply(this,r(i,arguments));return Object(t)===t?t:this}return o.apply(e,r(i,arguments))}),o.prototype){var c=function(){};c.prototype=o.prototype,a.prototype=new c,c.prototype=null}return a}},89374:function(e,t,n){!function(e){\"use strict\";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+\" \";switch(r){case\"s\":return n||o?\"nokkrar sekúndur\":\"nokkrum sekúndum\";case\"ss\":return t(e)?a+(n||o?\"sekúndur\":\"sekúndum\"):a+\"sekúnda\";case\"m\":return n?\"mínúta\":\"mínútu\";case\"mm\":return t(e)?a+(n||o?\"mínútur\":\"mínútum\"):n?a+\"mínúta\":a+\"mínútu\";case\"hh\":return t(e)?a+(n||o?\"klukkustundir\":\"klukkustundum\"):a+\"klukkustund\";case\"d\":return n?\"dagur\":o?\"dag\":\"degi\";case\"dd\":return t(e)?n?a+\"dagar\":a+(o?\"daga\":\"dögum\"):n?a+\"dagur\":a+(o?\"dag\":\"degi\");case\"M\":return n?\"mánuður\":o?\"mánuð\":\"mánuði\";case\"MM\":return t(e)?n?a+\"mánuðir\":a+(o?\"mánuði\":\"mánuðum\"):n?a+\"mánuður\":a+(o?\"mánuð\":\"mánuði\");case\"y\":return n||o?\"ár\":\"ári\";case\"yy\":return t(e)?a+(n||o?\"ár\":\"árum\"):a+(n||o?\"ár\":\"ári\")}}e.defineLocale(\"is\",{months:\"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember\".split(\"_\"),monthsShort:\"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des\".split(\"_\"),weekdays:\"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur\".split(\"_\"),weekdaysShort:\"sun_mán_þri_mið_fim_fös_lau\".split(\"_\"),weekdaysMin:\"Su_Má_Þr_Mi_Fi_Fö_La\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY [kl.] H:mm\",LLLL:\"dddd, D. MMMM YYYY [kl.] H:mm\"},calendar:{sameDay:\"[í dag kl.] LT\",nextDay:\"[á morgun kl.] LT\",nextWeek:\"dddd [kl.] LT\",lastDay:\"[í gær kl.] LT\",lastWeek:\"[síðasta] dddd [kl.] LT\",sameElse:\"L\"},relativeTime:{future:\"eftir %s\",past:\"fyrir %s síðan\",s:n,ss:n,m:n,mm:n,h:\"klukkustund\",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},89387:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{UserManagementRootRoute:()=>c,default:()=>d}),n(23792),n(62062),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(47767),i=n(96348),l=n(27305),s=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,59709))}),u=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76914))}),c=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return o().createElement(a.BV,null,o().createElement(a.qh,{path:i.fp.EntryPath,element:o().createElement(r.Suspense,{fallback:null},o().createElement(s,{RBACControls:t}))}),n.map(function(e,t){return o().createElement(a.qh,{key:\"user-management-route-\".concat(e.moduleName),path:e.path,element:o().createElement(r.Suspense,{fallback:null},o().createElement(e.RouteElement,{RBACControls:e}))})}),o().createElement(a.qh,{element:o().createElement(r.Suspense,{fallback:null},o().createElement(u,null)),path:i.fp.PageNotFound}))};const d=c},89452:(e,t,n)=>{\"use strict\";n.d(t,{EU:()=>l,NI:()=>i,iZ:()=>u,kW:()=>c,vf:()=>s,zu:()=>o});var r=n(11317);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:[\"xs\",\"sm\",\"md\",\"lg\",\"xl\"],up:e=>`@media (min-width:${o[e]}px)`};function i(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||a;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(\"object\"==typeof t){const e=r.breakpoints||a;return Object.keys(t).reduce((r,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a))r[e.up(a)]=n(t[a],a);else{const e=a;r[e]=t[e]}return r},{})}return n(t)}function l(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function s(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function u(e,...t){const n=l(e),o=[n,...t].reduce((e,t)=>(0,r.A)(e,t),{});return s(Object.keys(n),o)}function c({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if(\"object\"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):\"object\"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t),{})}},89453:(e,t,n)=>{\"use strict\";function r(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let e=1;e<arguments.length;e+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[e]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}n.d(t,{A:()=>r})},89463:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(43724),a=n(44576),i=n(79504),l=n(39297),s=n(94901),u=n(1625),c=n(655),d=n(62106),p=n(77740),f=a.Symbol,g=f&&f.prototype;if(o&&s(f)&&(!(\"description\"in g)||void 0!==f().description)){var h={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(g,this)?new f(e):void 0===e?f():f(e);return\"\"===e&&(h[t]=!0),t};p(m,f),m.prototype=g,g.constructor=m;var v=\"Symbol(description detection)\"===String(f(\"description detection\")),A=i(g.valueOf),y=i(g.toString),E=/^Symbol\\((.*)\\)[^)]+$/,b=i(\"\".replace),_=i(\"\".slice);d(g,\"description\",{configurable:!0,get:function(){var e=A(this);if(l(h,e))return\"\";var t=y(e),n=v?_(t,7,-1):b(t,E,\"$1\");return\"\"===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},89544:(e,t,n)=>{\"use strict\";var r=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},89572:(e,t,n)=>{\"use strict\";var r=n(39297),o=n(36840),a=n(53640),i=n(78227)(\"toPrimitive\"),l=Date.prototype;r(l,i)||o(l,i,a)},89722:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"jv\",{months:\"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember\".split(\"_\"),monthsShort:\"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des\".split(\"_\"),weekdays:\"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu\".split(\"_\"),weekdaysShort:\"Min_Sen_Sel_Reb_Kem_Jem_Sep\".split(\"_\"),weekdaysMin:\"Mg_Sn_Sl_Rb_Km_Jm_Sp\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [pukul] HH.mm\",LLLL:\"dddd, D MMMM YYYY [pukul] HH.mm\"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),\"enjing\"===t?e:\"siyang\"===t?e>=11?e:e+12:\"sonten\"===t||\"ndalu\"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?\"enjing\":e<15?\"siyang\":e<19?\"sonten\":\"ndalu\"},calendar:{sameDay:\"[Dinten puniko pukul] LT\",nextDay:\"[Mbenjang pukul] LT\",nextWeek:\"dddd [pukul] LT\",lastDay:\"[Kala wingi pukul] LT\",lastWeek:\"dddd [kepengker pukul] LT\",sameElse:\"L\"},relativeTime:{future:\"wonten ing %s\",past:\"%s ingkang kepengker\",s:\"sawetawis detik\",ss:\"%d detik\",m:\"setunggal menit\",mm:\"%d menit\",h:\"setunggal jam\",hh:\"%d jam\",d:\"sedinten\",dd:\"%d dinten\",M:\"sewulan\",MM:\"%d wulan\",y:\"setaun\",yy:\"%d taun\"},week:{dow:1,doy:7}})}(n(95093))},89756:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ar-tn\",{months:\"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر\".split(\"_\"),monthsShort:\"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر\".split(\"_\"),weekdays:\"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت\".split(\"_\"),weekdaysShort:\"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت\".split(\"_\"),weekdaysMin:\"ح_ن_ث_ر_خ_ج_س\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[اليوم على الساعة] LT\",nextDay:\"[غدا على الساعة] LT\",nextWeek:\"dddd [على الساعة] LT\",lastDay:\"[أمس على الساعة] LT\",lastWeek:\"dddd [على الساعة] LT\",sameElse:\"L\"},relativeTime:{future:\"في %s\",past:\"منذ %s\",s:\"ثوان\",ss:\"%d ثانية\",m:\"دقيقة\",mm:\"%d دقائق\",h:\"ساعة\",hh:\"%d ساعات\",d:\"يوم\",dd:\"%d أيام\",M:\"شهر\",MM:\"%d أشهر\",y:\"سنة\",yy:\"%d سنوات\"},week:{dow:1,doy:4}})}(n(95093))},89829:(e,t,n)=>{e.exports={default:n(2981),__esModule:!0}},89907:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(77240);r({target:\"String\",proto:!0,forced:n(23061)(\"anchor\")},{anchor:function(e){return o(this,\"a\",\"name\",e)}})},89935:e=>{e.exports=function(){return!1}},89955:(e,t,n)=>{\"use strict\";var r=n(94644),o=n(59213).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)(\"findIndex\",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},89973:(e,t,n)=>{t.AgGridReact=n(15169).AgGridReact,n(20376).J,n(29389).AgGridReactUi},89994:(e,t,n)=>{\"use strict\";n.d(t,{Bn:()=>p,HK:()=>i,JQ:()=>l,Jf:()=>g,Oe:()=>c,ao:()=>u,fu:()=>d,lQ:()=>f,zy:()=>s}),n(28706),n(2008),n(51629),n(25276),n(62062),n(15086),n(26910),n(62010),n(26099),n(27495),n(23500);var r=n(95093),o=n.n(r),a=n(99478),i=function(e,t,n,r){var o,a;return null!==(o=null==e||null===(a=e.filter(function(e){return!(null!=t&&t.some(function(t){return(null==t?void 0:t.code)===(null==e?void 0:e.code)}))}))||void 0===a?void 0:a.map(function(e,t){return{code:null==e?void 0:e.code,documentNumber:\"\",document_file_key:\"/retailerDocuments/\".concat(r,\"/\").concat(n,\"/\").concat(null==e?void 0:e.id,\"/file\"),expiry_date:null,retailer_licence_type:null==e?void 0:e.name,isUpload:!0,documentIndex:t+1}}))&&void 0!==o?o:[]},l=function(e){var t,n=[\"GST\",\"PCL\",\"SDL\"],r={SPL:\"PCL\",GST:\"GST\",SDL:\"SDL\"};return null!==(t=null==e?void 0:e.sort(function(e,t){var o,a,i=null!==(o=r[e.code])&&void 0!==o?o:e.code,l=null!==(a=r[t.code])&&void 0!==a?a:t.code;return n.indexOf(i)-n.indexOf(l)}))&&void 0!==t?t:[]},s=function(e){return o()(e,o().ISO_8601,!0).isValid()?e:e?function(e){return o()(e,\"DD/MM/YYYY\").format(\"YYYY-MM-DDTHH:mm:ss\")}(e):null},u=function(e){e.data.forEach(function(e){var t=e.locationDetails;if(t){/^talukas?$/i.test(t.geoHierarchyName)&&(e.taluka=t.name);var n=t.parentLevelView;n&&/^districts?$/i.test(n.geoHierarchyName)&&(e.district=n.name);var r=null==n?void 0:n.parentLevelView;r&&/^states?$/i.test(null==r?void 0:r.geoHierarchyName)&&(e.state=r.name)}})},c=function(e){return e===a._S.verified?a.Rk.KYC_VERIFIED_DISABLED_KEY:a.Rk.KYC_NOT_VERIFIED_DISABLED_KEY},d=function(e){switch(e){case a.vg.BGP_NOT_CREATED:return{className:\"smart-agro-lite-red-label\",text:a.L5.BGP_NOT_CREATED};case a.vg.PENDING_FOR_RETAILER_ACCEPTANCE:return{className:\"smart-agro-lite-yellow-label\",text:a.L5.PENDING_FOR_RETAILER_ACCEPTANCE};case a.vg.PENDING_FOR_TM_APPROVAL:return{className:\"smart-agro-lite-yellow-label\",text:a.L5.PENDING_FOR_TM_APPROVAL};case a.vg.BGP_CREATED:return{className:\"smart-agro-lite-active-label\",text:a.L5.BGP_CREATED};default:return{className:\"capitalize smart-agro-lite-default-label\",text:e}}},p=function(e){return e===a.vg.BGP_NOT_CREATED?a.Rk.RETAILER_BGP_NOT_CREATED_BRANDS_TABLE_HEADERS:e===a.vg.PENDING_FOR_RETAILER_ACCEPTANCE?a.Rk.RETAILER_BGP_PENDING_FOR_RETAILER_TABLE_HEADERS:e===a.vg.PENDING_FOR_TM_APPROVAL?a.Rk.RETAILER_BGP_PENDING_FOR_TM_TABLE_HEADERS:a.Rk.RETAILER_BGP_CREATED_BRANDS_TABLE_HEADERS},f=function(e){return e===a.vg.BGP_NOT_CREATED?a.Rk.RETAILER_BGP_NOT_CREATED_DETAILS_HEADERS:e===a.vg.PENDING_FOR_RETAILER_ACCEPTANCE?a.Rk.RETAILER_BGP_PENDING_FOR_RETAILER_HEADERS:e===a.vg.PENDING_FOR_TM_APPROVAL?a.Rk.RETAILER_BGP_PENDING_FOR_TM_HEADERS:a.Rk.RETAILER_BGP_CREATED_DETAILS_HEADERS},g=function(e){return e===a.vg.BGP_NOT_CREATED?a.Rk.RETAILER_BGP_NOT_CREATED_BUTTONS:a.Rk.RETAILER_BGP_PENDING_FOR_TM_BUTTONS}},90235:(e,t,n)=>{\"use strict\";var r=n(59213).forEach,o=n(34598)(\"forEach\");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90326:e=>{e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},90445:function(e){e.exports=function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,o=/\\d\\d?/,a=/\\d*[^-_:/,()\\s\\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?\"pm\":\"PM\");return n},p={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[o,s(\"seconds\")],ss:[o,s(\"seconds\")],m:[o,s(\"minutes\")],mm:[o,s(\"minutes\")],H:[o,s(\"hours\")],h:[o,s(\"hours\")],HH:[o,s(\"hours\")],hh:[o,s(\"hours\")],D:[o,s(\"day\")],DD:[r,s(\"day\")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[o,s(\"week\")],ww:[r,s(\"week\")],M:[o,s(\"month\")],MM:[r,s(\"month\")],MMM:[a,function(e){var t=c(\"months\"),n=(c(\"monthsShort\")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[a,function(e){var t=c(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,s(\"year\")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\\d{4}/,s(\"year\")],Z:u,ZZ:u};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,s=0;s<l;s+=1){var u=a[s],c=p[u],d=c&&c[0],f=c&&c[1];a[s]=f?{regex:d,parser:f}:u.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if(\"string\"==typeof o)r+=o.length;else{var i=o.regex,s=o.parser,u=e.slice(r),c=i.exec(u)[0];s.call(t,c),e=e.replace(c,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if(\"string\"==typeof l){var s=!0===a[2],u=!0===a[3],c=s||u,d=a[2];u&&(d=a[2]),i=this.$locale(),!s&&d&&(i=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var o=f(t)(e),a=o.year,i=o.month,l=o.day,s=o.hours,u=o.minutes,c=o.seconds,d=o.milliseconds,p=o.zone,g=o.week,h=new Date,m=l||(a||i?1:h.getDate()),v=a||h.getFullYear(),A=0;a&&!i||(A=i>0?i-1:h.getMonth());var y,E=s||0,b=u||0,_=c||0,C=d||0;return p?new Date(Date.UTC(v,A,m,E,b,_,C+60*p.offset*1e3)):n?new Date(Date.UTC(v,A,m,E,b,_,C)):(y=new Date(v,A,m,E,b,_,C),g&&(y=r(y).week(g).toDate()),y)}catch(e){return new Date(\"\")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(l)&&(this.$d=new Date(\"\")),i={}}else if(l instanceof Array)for(var p=l.length,g=1;g<=p;g+=1){a[1]=l[g-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===p&&(this.$d=new Date(\"\"))}else o.call(this,e)}}}()},90502:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(64436),l=a(n(81970)),s=n(40961),u=n(98400),c=n(67991);t.default=l.memo(function(e){var t=l.useState(),n=t[0],r=t[1],o=l.useContext(u.BeansContext),a=o.context,d=o.popupService,p=o.localeService,f=o.gridOptionsService;return c.useLayoutEffectOnce(function(){var t=e.editDetails,n=e.cellCtrl,o=e.eParentCell,l=t.compDetails,s=f.is(\"stopEditingWhenCellsLoseFocus\"),u=a.createBean(new i.PopupEditorWrapper(l.params)),c=u.getGui();if(e.jsChildComp){var g=e.jsChildComp.getGui();g&&c.appendChild(g)}var h={column:n.getColumn(),rowNode:n.getRowNode(),type:\"popupCellEditor\",eventSource:o,ePopup:c,position:t.popupPosition,keepWithinBounds:!0},m=d.positionPopupByComponent.bind(d,h),v=p.getLocaleTextFunc(),A=d.addPopup({modal:s,eChild:c,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:o,positionCallback:m,ariaLabel:v(\"ariaLabelCellEditor\",\"Cell Editor\")}),y=A?A.hideFunc:void 0;return r(u),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),a.destroyBean(u)}}),l.default.createElement(l.default.Fragment,null,n&&e.wrappedContent&&s.createPortal(e.wrappedContent,n.getGui()))})},90527:function(e,t,n){!function(e){\"use strict\";var t=\"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän\".split(\" \"),n=[\"nolla\",\"yhden\",\"kahden\",\"kolmen\",\"neljän\",\"viiden\",\"kuuden\",t[7],t[8],t[9]];function r(e,r,o,a){var i=\"\";switch(o){case\"s\":return a?\"muutaman sekunnin\":\"muutama sekunti\";case\"ss\":i=a?\"sekunnin\":\"sekuntia\";break;case\"m\":return a?\"minuutin\":\"minuutti\";case\"mm\":i=a?\"minuutin\":\"minuuttia\";break;case\"h\":return a?\"tunnin\":\"tunti\";case\"hh\":i=a?\"tunnin\":\"tuntia\";break;case\"d\":return a?\"päivän\":\"päivä\";case\"dd\":i=a?\"päivän\":\"päivää\";break;case\"M\":return a?\"kuukauden\":\"kuukausi\";case\"MM\":i=a?\"kuukauden\":\"kuukautta\";break;case\"y\":return a?\"vuoden\":\"vuosi\";case\"yy\":i=a?\"vuoden\":\"vuotta\"}return function(e,r){return e<10?r?n[e]:t[e]:e}(e,a)+\" \"+i}e.defineLocale(\"fi\",{months:\"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu\".split(\"_\"),monthsShort:\"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu\".split(\"_\"),weekdays:\"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai\".split(\"_\"),weekdaysShort:\"su_ma_ti_ke_to_pe_la\".split(\"_\"),weekdaysMin:\"su_ma_ti_ke_to_pe_la\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD.MM.YYYY\",LL:\"Do MMMM[ta] YYYY\",LLL:\"Do MMMM[ta] YYYY, [klo] HH.mm\",LLLL:\"dddd, Do MMMM[ta] YYYY, [klo] HH.mm\",l:\"D.M.YYYY\",ll:\"Do MMM YYYY\",lll:\"Do MMM YYYY, [klo] HH.mm\",llll:\"ddd, Do MMM YYYY, [klo] HH.mm\"},calendar:{sameDay:\"[tänään] [klo] LT\",nextDay:\"[huomenna] [klo] LT\",nextWeek:\"dddd [klo] LT\",lastDay:\"[eilen] [klo] LT\",lastWeek:\"[viime] dddd[na] [klo] LT\",sameElse:\"L\"},relativeTime:{future:\"%s päästä\",past:\"%s sitten\",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},90531:(e,t,n)=>{var r=n(90326);e.exports=function(e){if(!r(e))throw TypeError(e+\" is not an object!\");return e}},90537:(e,t,n)=>{\"use strict\";var r=n(80550),o=n(84428),a=n(10916).CONSTRUCTOR;e.exports=a||!o(function(e){r.all(e).then(void 0,function(){})})},90609:function(e,t,n){!function(e){\"use strict\";var t=\"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton\".split(\" \");function n(e,t,n,r){var o=e;switch(n){case\"s\":return r||t?\"néhány másodperc\":\"néhány másodperce\";case\"ss\":return o+(r||t)?\" másodperc\":\" másodperce\";case\"m\":return\"egy\"+(r||t?\" perc\":\" perce\");case\"mm\":return o+(r||t?\" perc\":\" perce\");case\"h\":return\"egy\"+(r||t?\" óra\":\" órája\");case\"hh\":return o+(r||t?\" óra\":\" órája\");case\"d\":return\"egy\"+(r||t?\" nap\":\" napja\");case\"dd\":return o+(r||t?\" nap\":\" napja\");case\"M\":return\"egy\"+(r||t?\" hónap\":\" hónapja\");case\"MM\":return o+(r||t?\" hónap\":\" hónapja\");case\"y\":return\"egy\"+(r||t?\" év\":\" éve\");case\"yy\":return o+(r||t?\" év\":\" éve\")}return\"\"}function r(e){return(e?\"\":\"[múlt] \")+\"[\"+t[this.day()]+\"] LT[-kor]\"}e.defineLocale(\"hu\",{months:\"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december\".split(\"_\"),monthsShort:\"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.\".split(\"_\"),monthsParseExact:!0,weekdays:\"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat\".split(\"_\"),weekdaysShort:\"vas_hét_kedd_sze_csüt_pén_szo\".split(\"_\"),weekdaysMin:\"v_h_k_sze_cs_p_szo\".split(\"_\"),longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"YYYY.MM.DD.\",LL:\"YYYY. MMMM D.\",LLL:\"YYYY. MMMM D. H:mm\",LLLL:\"YYYY. MMMM D., dddd H:mm\"},meridiemParse:/de|du/i,isPM:function(e){return\"u\"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?\"de\":\"DE\":!0===n?\"du\":\"DU\"},calendar:{sameDay:\"[ma] LT[-kor]\",nextDay:\"[holnap] LT[-kor]\",nextWeek:function(){return r.call(this,!0)},lastDay:\"[tegnap] LT[-kor]\",lastWeek:function(){return r.call(this,!1)},sameElse:\"L\"},relativeTime:{future:\"%s múlva\",past:\"%s\",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},90679:(e,t,n)=>{\"use strict\";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o(\"Incorrect invocation\")}},90725:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},90744:(e,t,n)=>{\"use strict\";e.exports=n.p+\"29f7354d7968a6e51147.svg\"},90757:e=>{\"use strict\";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},90815:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i});var r=n(67163),o=n(11848),a=n(25669);const i=(0,r.A)({createStyledComponent:(0,o.Ay)(\"div\",{name:\"MuiStack\",slot:\"Root\",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:\"MuiStack\"})})},90891:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"}),\"InfoOutlined\")},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91181:(e,t,n)=>{\"use strict\";var r,o,a,i=n(58622),l=n(44576),s=n(20034),u=n(66699),c=n(39297),d=n(77629),p=n(66119),f=n(30421),g=\"Object already initialized\",h=l.TypeError,m=l.WeakMap;if(i||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new h(g);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var A=p(\"state\");f[A]=!0,r=function(e,t){if(c(e,A))throw new h(g);return t.facade=e,u(e,A,t),t},o=function(e){return c(e,A)?e[A]:{}},a=function(e){return c(e,A)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw new h(\"Incompatible receiver, \"+e+\" required\");return n}}}},91291:(e,t,n)=>{\"use strict\";var r=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},91296:(e,t,n)=>{\"use strict\";var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},91382:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext({})},91460:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;t.default=function(e,t){var n=e%t;return n<0?n+t:n}},91574:function(e){var t;\"undefined\"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=109)}([function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(17),o=n(18),a=n(19),i=n(45),l=n(46),s=n(47),u=n(48),c=n(49),d=n(12),p=n(32),f=n(33),g=n(31),h=n(1),m={Scope:h.Scope,create:h.create,find:h.find,query:h.query,register:h.register,Container:r.default,Format:o.default,Leaf:a.default,Embed:u.default,Scroll:i.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:g.default}};t.default=m},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=function(e){function t(t){var n=this;return t=\"[Parchment] \"+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=a;var i,l={},s={},u={},c={};function d(e,t){var n;if(void 0===t&&(t=i.ANY),\"string\"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if(\"number\"==typeof e)e&i.LEVEL&i.BLOCK?n=c.block:e&i.LEVEL&i.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute(\"class\")||\"\").split(/\\s+/);for(var o in r)if(n=s[r[o]])break;n=n||u[e.tagName]}return null==n?null:t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}t.DATA_KEY=\"__blot\",function(e){e[e.TYPE=3]=\"TYPE\",e[e.LEVEL=12]=\"LEVEL\",e[e.ATTRIBUTE=13]=\"ATTRIBUTE\",e[e.BLOT=14]=\"BLOT\",e[e.INLINE=7]=\"INLINE\",e[e.BLOCK=11]=\"BLOCK\",e[e.BLOCK_BLOT=10]=\"BLOCK_BLOT\",e[e.INLINE_BLOT=6]=\"INLINE_BLOT\",e[e.BLOCK_ATTRIBUTE=9]=\"BLOCK_ATTRIBUTE\",e[e.INLINE_ATTRIBUTE=5]=\"INLINE_ATTRIBUTE\",e[e.ANY=15]=\"ANY\"}(i=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new a(\"Unable to create \"+e+\" blot\");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var r=t[0];if(\"string\"!=typeof r.blotName&&\"string\"!=typeof r.attrName)throw new a(\"Invalid definition\");if(\"abstract\"===r.blotName)throw new a(\"Cannot register abstract class\");return c[r.blotName||r.attrName]=r,\"string\"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(e){return e.toUpperCase()}):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(e){null!=u[e]&&null!=r.className||(u[e]=r)}))),r}},function(e,t,n){var r=n(51),o=n(11),a=n(3),i=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&\"object\"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&\"object\"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),\"object\"==typeof n){if(\"number\"==typeof e.delete&&\"number\"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if(\"number\"==typeof n.delete&&null!=e.insert&&(t-=1,\"object\"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if(\"string\"==typeof e.insert&&\"string\"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},\"object\"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if(\"number\"==typeof e.retain&&\"number\"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},\"object\"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+i.length(t):t.delete?e-t.delete:e},0)},s.prototype.length=function(){return this.reduce(function(e,t){return e+i.length(t)},0)},s.prototype.slice=function(e,t){e=e||0,\"number\"!=typeof t&&(t=1/0);for(var n=[],r=i.iterator(this.ops),o=0;o<t&&r.hasNext();){var a;o<e?a=r.next(e-o):(a=r.next(t-o),n.push(a)),o+=i.length(a)}return new s(n)},s.prototype.compose=function(e){var t=i.iterator(this.ops),n=i.iterator(e.ops),r=[],a=n.peek();if(null!=a&&\"number\"==typeof a.retain&&null==a.attributes){for(var l=a.retain;\"insert\"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());a.retain-l>0&&n.next(a.retain-l)}for(var u=new s(r);t.hasNext()||n.hasNext();)if(\"insert\"===n.peekType())u.push(n.next());else if(\"delete\"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),p=n.next(c);if(\"number\"==typeof p.retain){var f={};\"number\"==typeof d.retain?f.retain=c:f.insert=d.insert;var g=i.attributes.compose(d.attributes,p.attributes,\"number\"==typeof d.retain);if(g&&(f.attributes=g),u.push(f),!n.hasNext()&&o(u.ops[u.ops.length-1],f)){var h=new s(t.rest());return u.concat(h).chop()}}else\"number\"==typeof p.delete&&\"number\"==typeof d.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return\"string\"==typeof n.insert?n.insert:l;throw new Error(\"diff() called \"+(t===e?\"on\":\"with\")+\" non-document\")}).join(\"\")}),a=new s,u=r(n[0],n[1],t),c=i.iterator(this.ops),d=i.iterator(e.ops);return u.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),a.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);o(l.insert,s.insert)?a.retain(n,i.attributes.diff(l.attributes,s.attributes)):a.push(s).delete(n)}t-=n}}),a.chop()},s.prototype.eachLine=function(e,t){t=t||\"\\n\";for(var n=i.iterator(this.ops),r=new s,o=0;n.hasNext();){if(\"insert\"!==n.peekType())return;var a=n.peek(),l=i.length(a)-n.peekLength(),u=\"string\"==typeof a.insert?a.insert.indexOf(t,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,\"number\"==typeof e)return this.transformPosition(e,t);for(var n=i.iterator(this.ops),r=i.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if(\"insert\"!==n.peekType()||!t&&\"insert\"===r.peekType())if(\"insert\"===r.peekType())o.push(r.next());else{var a=Math.min(n.peekLength(),r.peekLength()),l=n.next(a),u=r.next(a);if(l.delete)continue;u.delete?o.push(u):o.retain(a,i.attributes.transform(l.attributes,u.attributes,t))}else o.retain(i.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=i.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),a=n.peekType();n.next(),\"delete\"!==a?(\"insert\"===a&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=s},function(e,t){\"use strict\";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return\"function\"==typeof Array.isArray?Array.isArray(e):\"[object Array]\"===r.call(e)},l=function(e){if(!e||\"[object Object]\"!==r.call(e))return!1;var t,o=n.call(e,\"constructor\"),a=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,\"isPrototypeOf\");if(e.constructor&&!o&&!a)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){o&&\"__proto__\"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if(\"__proto__\"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,a,c,d=arguments[0],p=1,f=arguments.length,g=!1;for(\"boolean\"==typeof d&&(g=d,d=arguments[1]||{},p=2),(null==d||\"object\"!=typeof d&&\"function\"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=u(d,n),d!==(o=u(t,n))&&(g&&o&&(l(o)||(a=i(o)))?(a?(a=!1,c=r&&i(r)?r:[]):c=r&&l(r)?r:{},s(d,{name:n,newValue:e(g,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=d(n(3)),i=d(n(2)),l=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function f(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function g(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:\"attach\",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"attach\",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:\"delta\",value:function(){return(new i.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:\"format\",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:\"formatAt\",value:function(e,t,n,r){this.format(n,r)}},{key:\"insertAt\",value:function(e,n,r){if(\"string\"==typeof n&&n.endsWith(\"\\n\")){var a=l.default.create(m.blotName);this.parent.insertBefore(a,0===e?this:this.next),a.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertAt\",this).call(this,e,n,r)}}]),t}(l.default.Embed);h.scope=l.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return g(t,e),r(t,[{key:\"delta\",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))},new i.default).insert(\"\\n\",v(this))),this.cache.delta}},{key:\"deleteAt\",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"deleteAt\",this).call(this,e,n),this.cache={}}},{key:\"formatAt\",value:function(e,n,r,a){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,a):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"formatAt\",this).call(this,e,Math.min(n,this.length()-e-1),r,a),this.cache={})}},{key:\"insertAt\",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertAt\",this).call(this,e,n,r);if(0!==n.length){var a=n.split(\"\\n\"),i=a.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertAt\",this).call(this,Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var l=this;a.reduce(function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length},e+i.length)}}},{key:\"insertBefore\",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertBefore\",this).call(this,e,n),r instanceof s.default&&r.remove(),this.cache={}}},{key:\"length\",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"length\",this).call(this)+1),this.cache.length}},{key:\"moveChildren\",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"moveChildren\",this).call(this,e,n),this.cache={}}},{key:\"optimize\",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e),this.cache={}}},{key:\"path\",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"path\",this).call(this,e,!0)}},{key:\"removeChild\",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"removeChild\",this).call(this,e),this.cache={}}},{key:\"split\",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var a=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"split\",this).call(this,e,n);return this.cache={},a}}]),t}(l.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:(\"function\"==typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||\"scroll\"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}m.blotName=\"block\",m.tagName=\"P\",m.defaultChild=\"break\",m.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=h,t.default=m},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var i=m(n(2)),l=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),p=m(d),f=m(n(3)),g=m(n(10)),h=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=(0,g.default)(\"quill\"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.options=E(t,r),this.container=this.options.container,null==this.container)return A.error(\"Invalid Quill container\",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add(\"ql-container\"),this.container.innerHTML=\"\",this.container.__quill=this,this.root=this.addContainer(\"ql-editor\"),this.root.classList.add(\"ql-blank\"),this.root.setAttribute(\"data-gramm\",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule(\"keyboard\"),this.clipboard=this.theme.addModule(\"clipboard\"),this.history=this.theme.addModule(\"history\"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle(\"ql-blank\",n.editor.isBlank())}),this.emitter.on(s.default.events.SCROLL_UPDATE,function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;b.call(n,function(){return n.editor.update(null,t,o)},e)});var a=this.clipboard.convert(\"<div class='ql-editor' style=\\\"white-space: normal;\\\">\"+o+\"<p><br></p></div>\");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute(\"data-placeholder\",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:\"debug\",value:function(e){!0===e&&(e=\"log\"),g.default.level(e)}},{key:\"find\",value:function(e){return e.__quill||c.default.find(e)}},{key:\"import\",value:function(e){return null==this.imports[e]&&A.error(\"Cannot import \"+e+\". Are you sure it was registered?\"),this.imports[e]}},{key:\"register\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(\"string\"!=typeof e){var o=e.attrName||e.blotName;\"string\"==typeof o?this.register(\"formats/\"+o,e,t):Object.keys(e).forEach(function(r){n.register(r,e[r],t)})}else null==this.imports[e]||r||A.warn(\"Overwriting \"+e+\" with\",t),this.imports[e]=t,(e.startsWith(\"blots/\")||e.startsWith(\"formats/\"))&&\"abstract\"!==t.blotName?c.default.register(t):e.startsWith(\"modules\")&&\"function\"==typeof t.register&&t.register()}}]),a(e,[{key:\"addContainer\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(\"string\"==typeof e){var n=e;(e=document.createElement(\"div\")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:\"blur\",value:function(){this.selection.setRange(null)}},{key:\"deleteText\",value:function(e,t,n){var r=this,a=_(e,t,n),i=o(a,4);return e=i[0],t=i[1],n=i[3],b.call(this,function(){return r.editor.deleteText(e,t)},n,e,-1*t)}},{key:\"disable\",value:function(){this.enable(!1)}},{key:\"enable\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle(\"ql-disabled\",!e)}},{key:\"focus\",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:\"format\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return b.call(this,function(){var r=n.getSelection(!0),o=new i.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,v({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,v({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o},r)}},{key:\"formatLine\",value:function(e,t,n,r,a){var i,l=this,s=_(e,t,n,r,a),u=o(s,4);return e=u[0],t=u[1],i=u[2],a=u[3],b.call(this,function(){return l.editor.formatLine(e,t,i)},a,e,0)}},{key:\"formatText\",value:function(e,t,n,r,a){var i,l=this,s=_(e,t,n,r,a),u=o(s,4);return e=u[0],t=u[1],i=u[2],a=u[3],b.call(this,function(){return l.editor.formatText(e,t,i)},a,e,0)}},{key:\"getBounds\",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t=\"number\"==typeof e?this.selection.getBounds(e,n):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:t.bottom-r.top,height:t.height,left:t.left-r.left,right:t.right-r.left,top:t.top-r.top,width:t.width}}},{key:\"getContents\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:\"getFormat\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return\"number\"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:\"getIndex\",value:function(e){return e.offset(this.scroll)}},{key:\"getLength\",value:function(){return this.scroll.length()}},{key:\"getLeaf\",value:function(e){return this.scroll.leaf(e)}},{key:\"getLine\",value:function(e){return this.scroll.line(e)}},{key:\"getLines\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return\"number\"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:\"getModule\",value:function(e){return this.theme.modules[e]}},{key:\"getSelection\",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:\"getText\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:\"hasFocus\",value:function(){return this.selection.hasFocus()}},{key:\"insertEmbed\",value:function(t,n,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return b.call(this,function(){return o.editor.insertEmbed(t,n,r)},a,t)}},{key:\"insertText\",value:function(e,t,n,r,a){var i,l=this,s=_(e,0,n,r,a),u=o(s,4);return e=u[0],i=u[2],a=u[3],b.call(this,function(){return l.editor.insertText(e,t,i)},a,e,t.length)}},{key:\"isEnabled\",value:function(){return!this.container.classList.contains(\"ql-disabled\")}},{key:\"off\",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:\"on\",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:\"once\",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:\"pasteHTML\",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:\"removeFormat\",value:function(e,t,n){var r=this,a=_(e,t,n),i=o(a,4);return e=i[0],t=i[1],n=i[3],b.call(this,function(){return r.editor.removeFormat(e,t)},n,e)}},{key:\"scrollIntoView\",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:\"setContents\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return b.call(this,function(){e=new i.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),a=o.ops[o.ops.length-1];return null!=a&&\"string\"==typeof a.insert&&\"\\n\"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:\"setSelection\",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=_(t,n,r),i=o(a,4);t=i[0],n=i[1],r=i[3],this.selection.setRange(new d.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:\"setText\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new i.default).insert(e);return this.setContents(n,t)}},{key:\"update\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:\"updateContents\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return b.call(this,function(){return e=new i.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function E(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import(\"themes/\"+t.theme),null==t.theme)throw new Error(\"Invalid theme \"+t.theme+\". Did you register it?\")}else t.theme=h.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=y.import(\"modules/\"+t);return null==n?A.error(\"Cannot load \"+t+\" module. Are you sure you registered it?\"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},y.DEFAULTS,{modules:r},n,t),[\"bounds\",\"container\",\"scrollingContainer\"].forEach(function(e){\"string\"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function b(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new i.default;var o=null==n?null:this.getSelection(),a=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,a,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function _(e,t,n,o,a){var i={};return\"number\"==typeof e.index&&\"number\"==typeof e.length?\"number\"!=typeof t?(a=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):\"number\"!=typeof t&&(a=o,o=n,n=t,t=0),\"object\"===(void 0===n?\"undefined\":r(n))?(i=n,a=o):\"string\"==typeof n&&(null!=o?i[n]=o:a=n),[e,t,i,a=a||s.default.sources.API]}function C(e,t,n,r){if(null==e)return null;var a=void 0,l=void 0;if(t instanceof i.default){var u=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,r!==s.default.sources.USER)}),c=o(u,2);a=c[0],l=c[1]}else{var p=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&r===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),f=o(p,2);a=f[0],l=f[1]}return new d.Range(a,l-a)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:\"\",readOnly:!1,scrollingContainer:null,strict:!0,theme:\"default\"},y.events=s.default.events,y.sources=s.default.sources,y.version=\"1.3.7\",y.imports={delta:i.default,parchment:c.default,\"core/module\":u.default,\"core/theme\":h.default},t.expandConfig=E,t.overload=_,t.default=y},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=l(n(7)),i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:\"formatAt\",value:function(e,n,r,a){if(t.compare(this.statics.blotName,r)<0&&i.default.query(r,i.default.Scope.BLOT)){var l=this.isolate(e,n);a&&l.wrap(r,a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"formatAt\",this).call(this,e,n,r,a)}},{key:\"optimize\",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:\"compare\",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(i.default.Inline);s.allowedChildren=[s,i.default.Embed,a.default],s.order=[\"cursor\",\"inline\",\"underline\",\"strike\",\"italic\",\"bold\",\"script\",\"link\",\"code\"],t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(0))&&r.__esModule?r:{default:r}).default.Text);t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=i(n(54));function i(e){return e&&e.__esModule?e:{default:e}}var l=(0,i(n(10)).default)(\"quill:events\");[\"selectionchange\",\"mousedown\",\"mouseup\",\"click\"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(\".ql-container\")).forEach(function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)})})});var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on(\"error\",l.error),e}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:\"emit\",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"emit\",this).apply(this,arguments)}},{key:\"handleDOM\",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))})}},{key:\"listenDOM\",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(a.default);s.events={EDITOR_CHANGE:\"editor-change\",SCROLL_BEFORE_UPDATE:\"scroll-before-update\",SCROLL_OPTIMIZE:\"scroll-optimize\",SCROLL_UPDATE:\"scroll-update\",SELECTION_CHANGE:\"selection-change\",TEXT_CHANGE:\"text-change\"},s.sources={API:\"api\",SILENT:\"silent\",USER:\"user\"},t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=[\"error\",\"warn\",\"log\",\"info\"],o=\"warn\";function a(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];(t=console)[e].apply(t,a)}}function i(e){return r.reduce(function(t,n){return t[n]=a.bind(console,n,e),t},{})}a.level=i.level=function(e){o=e},t.default=i},function(e,t,n){var r=Array.prototype.slice,o=n(52),a=n(53),i=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||\"object\"!=typeof e&&\"object\"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=r.call(e),t=r.call(t),i(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=o(e),p=o(t)}catch(e){return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),u=d.length-1;u>=0;u--)if(d[u]!=p[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!i(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function s(e){return!(!e||\"object\"!=typeof e||\"number\"!=typeof e.length||\"function\"!=typeof e.copy||\"function\"!=typeof e.slice||e.length>0&&\"number\"!=typeof e[0])}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||(\"string\"==typeof t?this.whitelist.indexOf(t.replace(/[\"']/g,\"\"))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:\"\"},e}();t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=d(n(2)),l=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function f(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function g(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),t}(u.default);h.blotName=\"code\",h.tagName=\"CODE\";var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),o(t,[{key:\"delta\",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith(\"\\n\")&&(t=t.slice(0,-1)),t.split(\"\\n\").reduce(function(t,n){return t.insert(n).insert(\"\\n\",e.formats())},new i.default)}},{key:\"format\",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),i=r(o,1)[0];null!=i&&i.deleteAt(i.length()-1,1),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n)}}},{key:\"formatAt\",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var a=this.newlineIndex(e);if(!(a<0||a>=e+n)){var i=this.newlineIndex(e,!0)+1,s=a-i+1,u=this.isolate(i,s),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-i+n-s,r,o)}}}},{key:\"insertAt\",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),a=r(o,2),i=a[0],l=a[1];i.insertAt(l,t)}}},{key:\"length\",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith(\"\\n\")?e:e+1}},{key:\"newlineIndex\",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf(\"\\n\");var t=this.domNode.textContent.slice(e).indexOf(\"\\n\");return t>-1?e+t:-1}},{key:\"optimize\",value:function(e){this.domNode.textContent.endsWith(\"\\n\")||this.appendChild(l.default.create(\"text\",\"\\n\")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:\"replace\",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"replace\",this).call(this,e),[].slice.call(this.domNode.querySelectorAll(\"*\")).forEach(function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()})}}],[{key:\"create\",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e);return n.setAttribute(\"spellcheck\",!1),n}},{key:\"formats\",value:function(){return!0}}]),t}(s.default);m.blotName=\"code-block\",m.tagName=\"PRE\",m.TAB=\"  \",t.Code=h,t.default=m},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=v(n(2)),l=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),p=v(d),f=v(n(16)),g=v(n(21)),h=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var A=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.scroll=t,this.delta=this.getDelta()}return a(e,[{key:\"applyDelta\",value:function(e){var t=this,n=!1;this.scroll.update();var a=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,g.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,g.default)(t)).attributes.list?t.attributes.list=\"ordered\":(t.attributes.list=\"bullet\",delete t.attributes.bullet)),\"string\"==typeof t.insert){var r=t.insert.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\");return e.insert(r,t.attributes)}return e.push(t)},new i.default)}(e)).reduce(function(e,i){var u=i.retain||i.delete||i.insert.length||1,c=i.attributes||{};if(null!=i.insert){if(\"string\"==typeof i.insert){var f=i.insert;f.endsWith(\"\\n\")&&n&&(n=!1,f=f.slice(0,-1)),e>=a&&!f.endsWith(\"\\n\")&&(n=!0),t.scroll.insertAt(e,f);var g=t.scroll.line(e),h=o(g,2),v=h[0],A=h[1],y=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof p.default){var E=v.descendant(s.default.Leaf,A),b=o(E,1)[0];y=(0,m.default)(y,(0,d.bubbleFormats)(b))}c=l.default.attributes.diff(y,c)||{}}else if(\"object\"===r(i.insert)){var _=Object.keys(i.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,i.insert[_])}a+=u}return Object.keys(c).forEach(function(n){t.scroll.formatAt(e,u,n,c[n])}),e+u},0),e.reduce(function(e,n){return\"number\"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:\"deleteText\",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new i.default).retain(e).delete(t))}},{key:\"formatLine\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var a=n.scroll.lines(e,Math.max(t,1)),i=t;a.forEach(function(t){var a=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+i)-l+1;t.formatAt(l,s,o,r[o])}else t.format(o,r[o]);i-=a})}}),this.scroll.optimize(),this.update((new i.default).retain(e).retain(t,(0,g.default)(r)))}},{key:\"formatText\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t,o,r[o])}),this.update((new i.default).retain(e).retain(t,(0,g.default)(r)))}},{key:\"getContents\",value:function(e,t){return this.delta.slice(e,e+t)}},{key:\"getDelta\",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new i.default)}},{key:\"getFormat\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(function(e){var t=o(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var a=[n,r].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=E((0,d.bubbleFormats)(n),t)}return t});return m.default.apply(m.default,a)}},{key:\"getText\",value:function(e,t){return this.getContents(e,t).filter(function(e){return\"string\"==typeof e.insert}).map(function(e){return e.insert}).join(\"\")}},{key:\"insertEmbed\",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new i.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:\"insertText\",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\"),this.scroll.insertAt(e,t),Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t.length,o,r[o])}),this.update((new i.default).retain(e).insert(t,(0,g.default)(r)))}},{key:\"isBlank\",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:\"removeFormat\",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),a=o(r,2),l=a[0],s=a[1],c=0,d=new i.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert(\"\\n\"));var p=this.getContents(e,t+c).diff((new i.default).insert(n).concat(d)),f=(new i.default).retain(e).concat(p);return this.applyDelta(f)}},{key:\"update\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&\"characterData\"===t[0].type&&t[0].target.data.match(A)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),a=(0,d.bubbleFormats)(o),l=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,\"\"),p=(new i.default).insert(u),f=(new i.default).insert(o.value());e=(new i.default).retain(l).concat(p.diff(f,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)},new i.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,h.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function E(e,t){return Object.keys(t).reduce(function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n},{})}t.default=y},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),i=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}var p=(0,u(n(10)).default)(\"quill:selection\"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},g=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create(\"cursor\",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(\"selectionchange\",document,function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,o=n.startNode,a=n.startOffset,i=n.endNode,l=n.endOffset;r.setNativeRange(o,a,i,l)}}),this.update(s.default.sources.SILENT)}return o(e,[{key:\"handleComposition\",value:function(){var e=this;this.root.addEventListener(\"compositionstart\",function(){e.composing=!0}),this.root.addEventListener(\"compositionend\",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:\"handleDragging\",value:function(){var e=this;this.emitter.listenDOM(\"mousedown\",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM(\"mouseup\",document.body,function(){e.mouseDown=!1,e.update(s.default.sources.USER)})}},{key:\"focus\",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:\"format\",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:\"getBounds\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,a=this.scroll.leaf(e),i=r(a,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=r(u,2);o=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(o,s);var p=this.scroll.leaf(e+t),f=r(p,2);if(l=f[0],s=f[1],null==l)return null;var g=l.position(s,!0),h=r(g,2);return o=h[0],s=h[1],d.setEnd(o,s),d.getBoundingClientRect()}var m=\"left\",v=void 0;return o instanceof Text?(s<o.data.length?(d.setStart(o,s),d.setEnd(o,s+1)):(d.setStart(o,s-1),d.setEnd(o,s),m=\"right\"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(m=\"right\")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:\"getNativeRange\",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info(\"getNativeRange\",n),n}},{key:\"getRange\",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:\"hasFocus\",value:function(){return document.activeElement===this.root}},{key:\"normalizedToRange\",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map(function(e){var n=r(e,2),o=n[0],i=n[1],l=a.default.find(o,!0),s=l.offset(t.scroll);return 0===i?s:l instanceof a.default.Container?s+l.length():s+l.index(o,i)}),i=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(c(o)));return new f(l,i-l)}},{key:\"normalizeNative\",value:function(e){if(!h(this.root,e.startContainer)||!e.collapsed&&!h(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:\"rangeToNative\",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],a=this.scroll.length();return n.forEach(function(e,n){e=Math.min(a-1,e);var i,l=t.scroll.leaf(e),s=r(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),p=r(d,2);i=p[0],c=p[1],o.push(i,c)}),o.length<2&&(o=o.concat(o)),o}},{key:\"scrollIntoView\",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,o)),i=r(a,1)[0],l=i;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));l=r(s,1)[0]}if(null!=i&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:\"setNativeRange\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info(\"setNativeRange\",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var i=(this.getNativeRange()||{}).native;if(null==i||o||e!==i.startContainer||t!==i.startOffset||n!==i.endContainer||r!==i.endOffset){\"BR\"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),\"BR\"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:\"setRange\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if(\"string\"==typeof t&&(n=t,t=!1),p.info(\"setRange\",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:\"update\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),a=o[0],u=o[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,i.default)(this.lastRange),(0,i.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function h(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=g},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"insertInto\",value:function(e,n){0===e.children.length?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertInto\",this).call(this,e,n):this.remove()}},{key:\"length\",value:function(){return 0}},{key:\"value\",value:function(){return\"\"}}],[{key:\"value\",value:function(){}}]),t}(((r=n(0))&&r.__esModule?r:{default:r}).default.Embed);i.blotName=\"break\",i.tagName=\"BR\",t.default=i},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(44),i=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],a=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,a]:o instanceof t?o.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],a=r;return this.children.forEachAt(n,r,function(n,r,i){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,a))),a-=i}),o},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,function(e,t,o){e.formatAt(t,o,n,r)})},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],a=r[1];if(o)o.insertAt(a,t,n);else{var i=null==n?l.create(\"text\",t):l.create(t,n);this.appendChild(i)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new l.ParchmentError(\"Cannot insert \"+e.statics.blotName+\" into \"+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],a=r[1],i=[[this,e]];return o instanceof t?i.concat(o.path(a,n)):(null!=o&&i.push([o,a]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),function(e,r,o){e=e.split(r,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach(function(e){e.target===n.domNode&&\"childList\"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))}),o.forEach(function(e){if(!(null!=e.parentNode&&\"IFRAME\"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),r.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))})},t}(i.default);function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(12),i=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new i.default(n.domNode),n}return o(t,e),t.formats=function(e){return\"string\"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof a.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===r.domNode&&\"attributes\"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=u},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(30),i=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=i.Scope.INLINE_BLOT,t}(a.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),a={attributes:{compose:function(e,t,n){\"object\"!=typeof e&&(e={}),\"object\"!=typeof t&&(t={});var r=o(!0,{},t);for(var a in n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{})),e)void 0!==e[a]&&void 0===t[a]&&(r[a]=e[a]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){\"object\"!=typeof e&&(e={}),\"object\"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if(\"object\"!=typeof e)return t;if(\"object\"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new i(e)},length:function(e){return\"number\"==typeof e.delete?e.delete:\"number\"==typeof e.retain?e.retain:\"string\"==typeof e.insert?e.insert.length:1}};function i(e){this.ops=e,this.index=0,this.offset=0}i.prototype.hasNext=function(){return this.peekLength()<1/0},i.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=a.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,\"number\"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),\"number\"==typeof t.retain?o.retain=e:\"string\"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},i.prototype.peek=function(){return this.ops[this.index]},i.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},i.prototype.peekType=function(){return this.ops[this.index]?\"number\"==typeof this.ops[this.index].delete?\"delete\":\"number\"==typeof this.ops[this.index].retain?\"retain\":\"insert\":\"retain\"},i.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=a},function(e,t){var n=function(){\"use strict\";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(a,l,s,u,c){\"object\"==typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],p=[],f=\"undefined\"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function a(s,g){if(null===s)return null;if(0===g)return s;var h,m;if(\"object\"!=typeof s)return s;if(e(s,t))h=new t;else if(e(s,n))h=new n;else if(e(s,r))h=new r(function(e,t){s.then(function(t){e(a(t,g-1))},function(e){t(a(e,g-1))})});else if(o.__isArray(s))h=[];else if(o.__isRegExp(s))h=new RegExp(s.source,i(s)),s.lastIndex&&(h.lastIndex=s.lastIndex);else if(o.__isDate(s))h=new Date(s.getTime());else{if(f&&Buffer.isBuffer(s))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(h),h;e(s,Error)?h=Object.create(s):void 0===u?(m=Object.getPrototypeOf(s),h=Object.create(m)):(h=Object.create(u),m=u)}if(l){var v=d.indexOf(s);if(-1!=v)return p[v];d.push(s),p.push(h)}for(var A in e(s,t)&&s.forEach(function(e,t){var n=a(t,g-1),r=a(e,g-1);h.set(n,r)}),e(s,n)&&s.forEach(function(e){var t=a(e,g-1);h.add(t)}),s){var y;m&&(y=Object.getOwnPropertyDescriptor(m,A)),y&&null==y.set||(h[A]=a(s[A],g-1))}if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);for(A=0;A<E.length;A++){var b=E[A];(!(C=Object.getOwnPropertyDescriptor(s,b))||C.enumerable||c)&&(h[b]=a(s[b],g-1),C.enumerable||Object.defineProperty(h,b,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(s);for(A=0;A<_.length;A++){var C,w=_[A];(C=Object.getOwnPropertyDescriptor(s,w))&&C.enumerable||(h[w]=a(s[w],g-1),Object.defineProperty(h,w,{enumerable:!1}))}}return h}(a,s)}function a(e){return Object.prototype.toString.call(e)}function i(e){var t=\"\";return e.global&&(t+=\"g\"),e.ignoreCase&&(t+=\"i\"),e.multiline&&(t+=\"m\"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return\"object\"==typeof e&&\"[object Date]\"===a(e)},o.__isArray=function(e){return\"object\"==typeof e&&\"[object Array]\"===a(e)},o.__isRegExp=function(e){return\"object\"==typeof e&&\"[object RegExp]\"===a(e)},o.__getRegExpFlags=i,o}();\"object\"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=f(n(0)),l=f(n(8)),s=n(4),u=f(s),c=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function g(e){return e instanceof u.default||e instanceof s.BlockEmbed}var h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),r.domNode.addEventListener(\"DOMNodeInserted\",function(){}),r.optimize(),r.enable(),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"batchStart\",value:function(){this.batch=!0}},{key:\"batchEnd\",value:function(){this.batch=!1,this.optimize()}},{key:\"deleteAt\",value:function(e,n){var o=this.line(e),i=r(o,2),l=i[0],u=i[1],p=this.line(e+n),f=r(p,1)[0];if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"deleteAt\",this).call(this,e,n),null!=f&&l!==f&&u>0){if(l instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var g=l.newlineIndex(l.length(),!0);if(g>-1&&(l=l.split(g+1))===f)return void this.optimize()}else if(f instanceof d.default){var h=f.newlineIndex(0);h>-1&&f.split(h+1)}var m=f.children.head instanceof c.default?null:f.children.head;l.moveChildren(f,m),l.remove()}this.optimize()}},{key:\"enable\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute(\"contenteditable\",e)}},{key:\"formatAt\",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"formatAt\",this).call(this,e,n,r,o),this.optimize())}},{key:\"insertAt\",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==i.default.query(n,i.default.Scope.BLOCK)){var o=i.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith(\"\\n\")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=i.default.create(n,r);this.appendChild(l)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertAt\",this).call(this,e,n,r);this.optimize()}}},{key:\"insertBefore\",value:function(e,n){if(e.statics.scope===i.default.Scope.INLINE_BLOT){var r=i.default.create(this.statics.defaultChild);r.appendChild(e),e=r}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertBefore\",this).call(this,e,n)}},{key:\"leaf\",value:function(e){return this.path(e).pop()||[null,-1]}},{key:\"line\",value:function(e){return e===this.length()?this.line(e-1):this.descendant(g,e)}},{key:\"lines\",value:function(){return function e(t,n,r){var o=[],a=r;return t.children.forEachAt(n,r,function(t,n,r){g(t)?o.push(t):t instanceof i.default.Container&&(o=o.concat(e(t,n,a))),a-=r}),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:\"optimize\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:\"path\",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"path\",this).call(this,e).slice(1)}},{key:\"update\",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;\"string\"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"update\",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(i.default.Scroll);h.blotName=\"scroll\",h.className=\"ql-editor\",h.tagName=\"DIV\",h.defaultChild=\"block\",h.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=h},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SHORTKEY=t.default=void 0;var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(21)),l=h(n(11)),s=h(n(3)),u=h(n(2)),c=h(n(20)),d=h(n(0)),p=h(n(5)),f=h(n(10)),g=h(n(9));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,f.default)(\"quill:keyboard\"),A=/Mac/i.test(navigator.platform)?\"metaKey\":\"ctrlKey\",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){(\"list autofill\"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},w),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},b),r.addBinding({key:t.keys.DELETE},{collapsed:!0},_)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},_)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b),r.listen(),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:\"match\",value:function(e,t){return t=O(t),![\"altKey\",\"ctrlKey\",\"metaKey\",\"shiftKey\"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),a(t,[{key:\"addBinding\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(e);if(null==r||null==r.key)return v.warn(\"Attempted to add invalid keyboard binding\",r);\"function\"==typeof t&&(t={handler:t}),\"function\"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:\"listen\",value:function(){var e=this;this.quill.root.addEventListener(\"keydown\",function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,i=(e.bindings[a]||[]).filter(function(e){return t.match(n,e)});if(0!==i.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=o(u,2),p=c[0],f=c[1],g=e.quill.getLeaf(s.index),h=o(g,2),m=h[0],v=h[1],A=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),y=o(A,2),E=y[0],b=y[1],_=m instanceof d.default.Text?m.value().slice(0,v):\"\",C=E instanceof d.default.Text?E.value().slice(b):\"\",w={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:_,suffix:C};i.some(function(t){if(null!=t.collapsed&&t.collapsed!==w.collapsed)return!1;if(null!=t.empty&&t.empty!==w.empty)return!1;if(null!=t.offset&&t.offset!==w.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==w.format[e]}))return!1}else if(\"object\"===r(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=w.format[e]:!1===t.format[e]?null==w.format[e]:(0,l.default)(t.format[e],w.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(w.prefix)||null!=t.suffix&&!t.suffix.test(w.suffix)||!0===t.handler.call(e,s,w))})&&n.preventDefault()}}}})}}]),t}(g.default);function E(e,t){var n,r=e===y.keys.LEFT?\"prefix\":\"suffix\";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,\"handler\",function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var a=this.quill.getLeaf(r);return!(o(a,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))}),n}function b(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],a={};if(0===t.offset){var i=this.quill.getLine(e.index-1),l=o(i,1)[0];if(null!=l&&l.length()>1){var s=r.formats(),u=this.quill.getFormat(e.index-1,1);a=c.default.attributes.diff(s,u)||{}}}var d=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,p.default.sources.USER),this.quill.focus()}}function _(e,t){var n=/^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},a=0,i=this.quill.getLine(e.index),l=o(i,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=o(s,1)[0];if(u){var d=l.formats(),f=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(d,f)||{},a=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+a-1,n,r,p.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function w(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce(function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,\"\\n\",r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==r[e]&&(Array.isArray(t.format[e])||\"link\"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))})}function S(e){return{key:y.keys.TAB,shiftKey:!e,format:{\"code-block\":!0},handler:function(t){var n=d.default.query(\"code-block\"),r=t.index,a=t.length,i=this.quill.scroll.descendant(n,r),l=o(i,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,g=s.newlineIndex(c+u+a),h=s.domNode.textContent.slice(f,g).split(\"\\n\");u=0,h.forEach(function(t,o){e?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:a-=n.TAB.length),u+=t.length+1}),this.quill.update(p.default.sources.USER),this.quill.setSelection(r,a,p.default.sources.SILENT)}}}}function T(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function O(e){if(\"string\"==typeof e||\"number\"==typeof e)return O({key:e});if(\"object\"===(void 0===e?\"undefined\":r(e))&&(e=(0,i.default)(e,!1)),\"string\"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[A]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:T(\"bold\"),italic:T(\"italic\"),underline:T(\"underline\"),indent:{key:y.keys.TAB,format:[\"blockquote\",\"indent\",\"list\"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format(\"indent\",\"+1\",p.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:[\"blockquote\",\"indent\",\"list\"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format(\"indent\",\"-1\",p.default.sources.USER)}},\"outdent backspace\":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:[\"indent\",\"list\"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format(\"indent\",\"-1\",p.default.sources.USER):null!=t.format.list&&this.quill.format(\"list\",!1,p.default.sources.USER)}},\"indent code-block\":S(!0),\"outdent code-block\":S(!1),\"remove tab\":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert(\"\\t\");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},\"list empty enter\":{key:y.keys.ENTER,collapsed:!0,format:[\"list\"],empty:!0,handler:function(e,t){this.quill.format(\"list\",!1,p.default.sources.USER),t.format.indent&&this.quill.format(\"indent\",!1,p.default.sources.USER)}},\"checklist enter\":{key:y.keys.ENTER,collapsed:!0,format:{list:\"checked\"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],a=n[1],i=(0,s.default)({},r.formats(),{list:\"checked\"}),l=(new u.default).retain(e.index).insert(\"\\n\",i).retain(r.length()-a-1).retain(1,{list:\"unchecked\"});this.quill.updateContents(l,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},\"header enter\":{key:y.keys.ENTER,collapsed:!0,format:[\"header\"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),a=r[0],i=r[1],l=(new u.default).retain(e.index).insert(\"\\n\",t.format).retain(a.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},\"list autofill\":{key:\" \",collapsed:!0,format:{list:!1},prefix:/^\\s*?(\\d+\\.|-|\\*|\\[ ?\\]|\\[x\\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),a=o(r,2),i=a[0],l=a[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case\"[]\":case\"[ ]\":s=\"unchecked\";break;case\"[x]\":s=\"checked\";break;case\"-\":case\"*\":s=\"bullet\";break;default:s=\"ordered\"}this.quill.insertText(e.index,\" \",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},\"code exit\":{key:y.keys.ENTER,collapsed:!0,format:[\"code-block\"],prefix:/\\n\\n$/,suffix:/^\\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],a=n[1],i=(new u.default).retain(e.index+r.length()-a-2).retain(1,{\"code-block\":null}).delete(1);this.quill.updateContents(i,p.default.sources.USER)}},\"embed left\":E(y.keys.LEFT,!1),\"embed left shift\":E(y.keys.LEFT,!0),\"embed right\":E(y.keys.RIGHT,!1),\"embed right shift\":E(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=A},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(0)),i=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:\"value\",value:function(){}}]),o(t,[{key:\"detach\",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:\"format\",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:\"index\",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"index\",this).call(this,e,n)}},{key:\"length\",value:function(){return this._length}},{key:\"position\",value:function(){return[this.textNode,this.textNode.data.length]}},{key:\"remove\",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"remove\",this).call(this),this.parent=null}},{key:\"restore\",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];r=s[0],o=s[1],l=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join(\"\");this.next instanceof i.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}([o,l].map(function(e){return Math.max(0,Math.min(r.data.length,e-1))}),2);return o=c[0],l=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:l}}}}},{key:\"update\",value:function(e,t){var n=this;if(e.some(function(e){return\"characterData\"===e.type&&e.target===n.textNode})){var r=this.restore();r&&(t.range=r)}}},{key:\"value\",value:function(){return\"\"}}]),t}(a.default.Embed);s.blotName=\"cursor\",s.className=\"ql-cursor\",s.tagName=\"span\",s.CONTENTS=\"\\ufeff\",t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=i(n(0)),o=n(4),a=i(o);function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[a.default,o.BlockEmbed,l],t.default=l},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=(r=n(0))&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"value\",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"value\",this).call(this,e);return n.startsWith(\"rgb(\")?\"#\"+(n=n.replace(/^[^\\d]+/,\"\").replace(/[^\\d]+$/,\"\")).split(\",\").map(function(e){return(\"00\"+parseInt(e).toString(16)).slice(-2)}).join(\"\"):n}}]),t}(i.default.Attributor.Style),s=new i.default.Attributor.Class(\"color\",\"ql-color\",{scope:i.default.Scope.INLINE}),u=new l(\"color\",\"color\",{scope:i.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"format\",value:function(e,n){if(e!==this.statics.blotName||!n)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute(\"href\",n)}}],[{key:\"create\",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e);return e=this.sanitize(e),n.setAttribute(\"href\",e),n.setAttribute(\"rel\",\"noopener noreferrer\"),n.setAttribute(\"target\",\"_blank\"),n}},{key:\"formats\",value:function(e){return e.getAttribute(\"href\")}},{key:\"sanitize\",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);function l(e,t){var n=document.createElement(\"a\");n.href=e;var r=n.href.slice(0,n.href.indexOf(\":\"));return t.indexOf(r)>-1}i.blotName=\"link\",i.tagName=\"A\",i.SANITIZED_URL=\"about:blank\",i.PROTOCOL_WHITELIST=[\"http\",\"https\",\"mailto\",\"tel\"],t.default=i,t.sanitize=l},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(23)),i=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var s=0;function u(e,t){e.setAttribute(t,!(\"true\"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.select=t,this.container=document.createElement(\"span\"),this.buildPicker(),this.select.style.display=\"none\",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener(\"mousedown\",function(){n.togglePicker()}),this.label.addEventListener(\"keydown\",function(e){switch(e.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener(\"change\",this.update.bind(this))}return o(e,[{key:\"togglePicker\",value:function(){this.container.classList.toggle(\"ql-expanded\"),u(this.label,\"aria-expanded\"),u(this.options,\"aria-hidden\")}},{key:\"buildItem\",value:function(e){var t=this,n=document.createElement(\"span\");return n.tabIndex=\"0\",n.setAttribute(\"role\",\"button\"),n.classList.add(\"ql-picker-item\"),e.hasAttribute(\"value\")&&n.setAttribute(\"data-value\",e.getAttribute(\"value\")),e.textContent&&n.setAttribute(\"data-label\",e.textContent),n.addEventListener(\"click\",function(){t.selectItem(n,!0)}),n.addEventListener(\"keydown\",function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:\"buildLabel\",value:function(){var e=document.createElement(\"span\");return e.classList.add(\"ql-picker-label\"),e.innerHTML=i.default,e.tabIndex=\"0\",e.setAttribute(\"role\",\"button\"),e.setAttribute(\"aria-expanded\",\"false\"),this.container.appendChild(e),e}},{key:\"buildOptions\",value:function(){var e=this,t=document.createElement(\"span\");t.classList.add(\"ql-picker-options\"),t.setAttribute(\"aria-hidden\",\"true\"),t.tabIndex=\"-1\",t.id=\"ql-picker-options-\"+s,s+=1,this.label.setAttribute(\"aria-controls\",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)}),this.container.appendChild(t)}},{key:\"buildPicker\",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add(\"ql-picker\"),this.label=this.buildLabel(),this.buildOptions()}},{key:\"escape\",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:\"close\",value:function(){this.container.classList.remove(\"ql-expanded\"),this.label.setAttribute(\"aria-expanded\",\"false\"),this.options.setAttribute(\"aria-hidden\",\"true\")}},{key:\"selectItem\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(\".ql-selected\");if(e!==n&&(null!=n&&n.classList.remove(\"ql-selected\"),null!=e&&(e.classList.add(\"ql-selected\"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute(\"data-value\")?this.label.setAttribute(\"data-value\",e.getAttribute(\"data-value\")):this.label.removeAttribute(\"data-value\"),e.hasAttribute(\"data-label\")?this.label.setAttribute(\"data-label\",e.getAttribute(\"data-label\")):this.label.removeAttribute(\"data-label\"),t))){if(\"function\"==typeof Event)this.select.dispatchEvent(new Event(\"change\"));else if(\"object\"===(\"undefined\"==typeof Event?\"undefined\":r(Event))){var o=document.createEvent(\"Event\");o.initEvent(\"change\",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:\"update\",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(\".ql-picker-options\").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector(\"option[selected]\");this.label.classList.toggle(\"ql-active\",n)}}]),e}();t.default=c},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=v(n(0)),o=v(n(5)),a=n(4),i=v(a),l=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),p=v(n(22)),f=v(n(7)),g=v(n(55)),h=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}o.default.register({\"blots/block\":i.default,\"blots/block/embed\":a.BlockEmbed,\"blots/break\":l.default,\"blots/container\":s.default,\"blots/cursor\":u.default,\"blots/embed\":c.default,\"blots/inline\":d.default,\"blots/scroll\":p.default,\"blots/text\":f.default,\"modules/clipboard\":g.default,\"modules/history\":h.default,\"modules/keyboard\":m.default}),r.default.register(i.default,l.default,u.default,d.default,p.default,f.default),t.default=o.default},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,\"statics\",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError(\"Blot definition missing tagName\");var t;return Array.isArray(this.tagName)?(\"string\"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t=\"number\"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var a=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)a.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var i=r.create(this.statics.scope);a.wrap(i),i.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create(\"text\",t):r.create(t,n),a=this.split(e);this.parent.insertBefore(o,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n=\"string\"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n=\"string\"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName=\"abstract\",e}();t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(12),o=n(32),a=n(33),i=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=a.default.keys(this.domNode);t.concat(n).concat(l).forEach(function(t){var n=i.query(t,i.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=l},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e,t){return(e.getAttribute(\"class\")||\"\").split(/\\s+/).filter(function(e){return 0===e.indexOf(t+\"-\")})}Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute(\"class\")||\"\").split(/\\s+/).map(function(e){return e.split(\"-\").slice(0,-1).join(\"-\")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+\"-\"+t),!0)},t.prototype.remove=function(e){a(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute(\"class\")},t.prototype.value=function(e){var t=(a(e,this.keyName)[0]||\"\").slice(this.keyName.length+1);return this.canAdd(e,t)?t:\"\"},t}(n(12).default);t.default=i},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e){var t=e.split(\"-\"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join(\"\");return t[0]+n}Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute(\"style\")||\"\").split(\";\").map(function(e){return e.split(\":\")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]=\"\",e.getAttribute(\"style\")||e.removeAttribute(\"style\")},t.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:\"\"},t}(n(12).default);t.default=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:\"init\",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:\"addModule\",value:function(e){var t=this.quill.constructor.import(\"modules/\"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=l(n(0)),i=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var s=\"\\ufeff\",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement(\"span\"),n.contentNode.setAttribute(\"contenteditable\",!1),[].slice.call(n.domNode.childNodes).forEach(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:\"index\",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"index\",this).call(this,e,n)}},{key:\"restore\",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join(\"\");if(e===this.leftGuard)if(this.prev instanceof i.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof i.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=s,t}},{key:\"update\",value:function(e,t){var n=this;e.forEach(function(e){if(\"characterData\"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}})}}]),t}(a.default.Embed);t.default=u},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:[\"right\",\"center\",\"justify\"]},i=new o.default.Attributor.Attribute(\"align\",\"align\",a),l=new o.default.Attributor.Class(\"align\",\"ql-align\",a),s=new o.default.Attributor.Style(\"align\",\"text-align\",a);t.AlignAttribute=i,t.AlignClass=l,t.AlignStyle=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26),i=new o.default.Attributor.Class(\"background\",\"ql-bg\",{scope:o.default.Scope.INLINE}),l=new a.ColorAttributor(\"background\",\"background-color\",{scope:o.default.Scope.INLINE});t.BackgroundClass=i,t.BackgroundStyle=l},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:[\"rtl\"]},i=new o.default.Attributor.Attribute(\"direction\",\"dir\",a),l=new o.default.Attributor.Class(\"direction\",\"ql-direction\",a),s=new o.default.Attributor.Style(\"direction\",\"direction\",a);t.DirectionAttribute=i,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=(r=n(0))&&r.__esModule?r:{default:r},l={scope:i.default.Scope.INLINE,whitelist:[\"serif\",\"monospace\"]},s=new i.default.Attributor.Class(\"font\",\"ql-font\",l),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"value\",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"value\",this).call(this,e).replace(/[\"']/g,\"\")}}]),t}(i.default.Attributor.Style),c=new u(\"font\",\"font-family\",l);t.FontStyle=c,t.FontClass=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class(\"size\",\"ql-size\",{scope:o.default.Scope.INLINE,whitelist:[\"small\",\"large\",\"huge\"]}),i=new o.default.Attributor.Style(\"size\",\"font-size\",{scope:o.default.Scope.INLINE,whitelist:[\"10px\",\"18px\",\"32px\"]});t.SizeClass=a,t.SizeStyle=i},function(e,t,n){\"use strict\";e.exports={align:{\"\":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),\"code-block\":n(58),color:n(84),direction:{\"\":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{\"+1\":n(96),\"-1\":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(0)),a=i(n(5));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(a.default.events.EDITOR_CHANGE,function(e,t,n,o){e!==a.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==a.default.sources.USER?r.transform(t):r.record(t,n))}),r.quill.keyboard.addBinding({key:\"Z\",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:\"Z\",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:\"Y\",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:\"change\",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],a.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r)}}},{key:\"clear\",value:function(){this.stack={undo:[],redo:[]}}},{key:\"cutoff\",value:function(){this.lastRecorded=0}},{key:\"record\",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:\"redo\",value:function(){this.change(\"redo\",\"undo\")}},{key:\"transform\",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:\"undo\",value:function(){this.change(\"undo\",\"redo\")}}]),t}(i(n(9)).default);function s(e){var t=e.reduce(function(e,t){return e+(t.delete||0)},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?\"string\"==typeof t.insert&&t.insert.endsWith(\"\\n\"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)}))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=g(n(3)),i=g(n(2)),l=g(n(8)),s=g(n(23)),u=g(n(34)),c=g(n(59)),d=g(n(60)),p=g(n(28)),f=g(n(61));function g(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function m(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function v(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=[!1,\"center\",\"right\",\"justify\"],y=[\"#000000\",\"#e60000\",\"#ff9900\",\"#ffff00\",\"#008a00\",\"#0066cc\",\"#9933ff\",\"#ffffff\",\"#facccc\",\"#ffebcc\",\"#ffffcc\",\"#cce8cc\",\"#cce0f5\",\"#ebd6ff\",\"#bbbbbb\",\"#f06666\",\"#ffc266\",\"#ffff66\",\"#66b966\",\"#66a3e0\",\"#c285ff\",\"#888888\",\"#a10000\",\"#b26b00\",\"#b2b200\",\"#006100\",\"#0047b2\",\"#6b24b2\",\"#444444\",\"#5c0000\",\"#663d00\",\"#666600\",\"#003700\",\"#002966\",\"#3d1466\"],E=[!1,\"serif\",\"monospace\"],b=[\"1\",\"2\",\"3\",!1],_=[\"small\",!1,\"large\",\"huge\"],C=function(e){function t(e,n){h(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM(\"click\",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener(\"click\",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),r}return v(t,e),r(t,[{key:\"addModule\",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"addModule\",this).call(this,e);return\"toolbar\"===e&&this.extendToolbar(n),n}},{key:\"buildButtons\",value:function(e,t){e.forEach(function(e){(e.getAttribute(\"class\")||\"\").split(/\\s+/).forEach(function(n){if(n.startsWith(\"ql-\")&&(n=n.slice(3),null!=t[n]))if(\"direction\"===n)e.innerHTML=t[n][\"\"]+t[n].rtl;else if(\"string\"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||\"\";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}},{key:\"buildPickers\",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains(\"ql-align\"))return null==e.querySelector(\"option\")&&S(e,A),new d.default(e,t.align);if(e.classList.contains(\"ql-background\")||e.classList.contains(\"ql-color\")){var n=e.classList.contains(\"ql-background\")?\"background\":\"color\";return null==e.querySelector(\"option\")&&S(e,y,\"background\"===n?\"#ffffff\":\"#000000\"),new c.default(e,t[n])}return null==e.querySelector(\"option\")&&(e.classList.contains(\"ql-font\")?S(e,E):e.classList.contains(\"ql-header\")?S(e,b):e.classList.contains(\"ql-size\")&&S(e,_)),new p.default(e)}),this.quill.on(l.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}(u.default);C.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit(\"formula\")},image:function(){var e=this,t=this.container.querySelector(\"input.ql-image[type=file]\");null==t&&((t=document.createElement(\"input\")).setAttribute(\"type\",\"file\"),t.setAttribute(\"accept\",\"image/png, image/gif, image/jpeg, image/bmp, image/x-icon\"),t.classList.add(\"ql-image\"),t.addEventListener(\"change\",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new i.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=\"\"},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit(\"video\")}}}}});var w=function(e){function t(e,n){h(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type=\"text\"]'),r.listen(),r}return v(t,e),r(t,[{key:\"listen\",value:function(){var e=this;this.textbox.addEventListener(\"keydown\",function(t){s.default.match(t,\"enter\")?(e.save(),t.preventDefault()):s.default.match(t,\"escape\")&&(e.cancel(),t.preventDefault())})}},{key:\"cancel\",value:function(){this.hide()}},{key:\"edit\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"link\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove(\"ql-hidden\"),this.root.classList.add(\"ql-editing\"),null!=t?this.textbox.value=t:e!==this.root.getAttribute(\"data-mode\")&&(this.textbox.value=\"\"),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute(\"placeholder\",this.textbox.getAttribute(\"data-\"+e)||\"\"),this.root.setAttribute(\"data-mode\",e)}},{key:\"restoreFocus\",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:\"save\",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute(\"data-mode\")){case\"link\":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,\"link\",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format(\"link\",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case\"video\":n=(t=(e=n).match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtube\\.com\\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtu\\.be\\/([a-zA-Z0-9_-]+)/))?(t[1]||\"https\")+\"://www.youtube.com/embed/\"+t[2]+\"?showinfo=0\":(t=e.match(/^(?:(https?):\\/\\/)?(?:www\\.)?vimeo\\.com\\/(\\d+)/))?(t[1]||\"https\")+\"://player.vimeo.com/video/\"+t[2]+\"/\":e;case\"formula\":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var a=o.index+o.length;this.quill.insertEmbed(a,this.root.getAttribute(\"data-mode\"),n,l.default.sources.USER),\"formula\"===this.root.getAttribute(\"data-mode\")&&this.quill.insertText(a+1,\" \",l.default.sources.USER),this.quill.setSelection(a+2,l.default.sources.USER)}}this.textbox.value=\"\",this.hide()}}]),t}(f.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement(\"option\");t===n?r.setAttribute(\"selected\",\"selected\"):r.setAttribute(\"value\",t),e.appendChild(r)})}t.BaseTooltip=w,t.default=C},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),a=o[0],i=e-o[1],l=this.iterator(a);(r=l())&&i<e+t;){var s=r.length();e>i?n(r,e-i,Math.min(t,i+s-e)):n(r,0,Math.min(s,e+t-i)),i+=s}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[i.DATA_KEY].mutations&&(e.domNode[i.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[i.DATA_KEY]&&null!=e.domNode[i.DATA_KEY].mutations&&(e instanceof a.default&&e.children.forEach(s),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error(\"[Parchment] Maximum optimize iterations reached\");for(u.forEach(function(e){var t=i.find(e.target,!0);null!=t&&(t.domNode===e.target&&(\"childList\"===e.type?(l(i.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=i.find(e,!1);l(t,!1),t instanceof a.default&&t.children.forEach(function(e){l(e,!1)})})):\"attributes\"===e.type&&l(t.prev)),l(t))}),this.children.forEach(s),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=i.find(e.target,!0);return null==t?null:null==t.domNode[i.DATA_KEY].mutations?(t.domNode[i.DATA_KEY].mutations=[e],t):(t.domNode[i.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[i.DATA_KEY]&&e.update(e.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName=\"scroll\",t.defaultChild=\"block\",t.scope=i.Scope.BLOCK_BLOT,t.tagName=\"DIV\",t}(a.default);t.default=s},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(18),i=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach(function(e){e instanceof a.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName=\"inline\",t.scope=i.Scope.INLINE_BLOT,t.tagName=\"SPAN\",t}(a.default);t.default=l},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(18),i=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=i.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),a=i.create(n,r);o.parent.insertBefore(a,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName=\"block\",t.scope=i.Scope.BLOCK_BLOT,t.tagName=\"P\",t}(a.default);t.default=l},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=a},function(e,t,n){\"use strict\";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(19),i=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=i.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return\"characterData\"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName=\"text\",t.scope=i.Scope.INLINE_BLOT,t}(a.default);t.default=l},function(e,t,n){\"use strict\";var r=document.createElement(\"div\");if(r.classList.toggle(\"test-class\",!1),r.classList.contains(\"test-class\")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();(\"number\"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,\"find\",{value:function(e){if(null===this)throw new TypeError(\"Array.prototype.find called on null or undefined\");if(\"function\"!=typeof e)throw new TypeError(\"predicate must be a function\");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],a=0;a<r;a++)if(t=n[a],e.call(o,t,a,n))return t}}),document.addEventListener(\"DOMContentLoaded\",function(){document.execCommand(\"enableObjectResizing\",!1,!1),document.execCommand(\"autoUrlDetect\",!1,!1)})},function(e,t){var n=-1;function r(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var c=a(e,t),d=e.substring(0,c);c=i(e=e.substring(c),t=t.substring(c));var p=e.substring(e.length-c),f=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[1,s.substring(0,c)],[0,u],[1,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,l,s,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,d=\"\";-1!=(c=t.indexOf(u,c+1));){var p=a(e.substring(n),t.substring(c)),f=i(e.substring(0,n),t.substring(0,c));d.length<f+p&&(d=t.substring(c-f,c)+t.substring(c,c+p),r=e.substring(0,n-f),o=e.substring(n+p),l=t.substring(0,c-f),s=t.substring(c+p))}return 2*d.length>=e.length?[r,o,l,s,d]:null}var l,s,u,c,d,p=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));return p||f?(l=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(s=l[0],u=l[1],c=l[2],d=l[3]):(c=l[0],d=l[1],s=l[2],u=l[3]),[s,u,c,d,l[4]]):null}(e,t);if(d){var p=d[0],f=d[1],g=d[2],h=d[3],m=d[4],v=r(p,g),A=r(f,h);return v.concat([[0,m]],A)}return function(e,t){for(var r=e.length,a=t.length,i=Math.ceil((r+a)/2),l=i,s=2*i,u=new Array(s),c=new Array(s),d=0;d<s;d++)u[d]=-1,c[d]=-1;u[l+1]=0,c[l+1]=0;for(var p=r-a,f=p%2!=0,g=0,h=0,m=0,v=0,A=0;A<i;A++){for(var y=-A+g;y<=A-h;y+=2){for(var E=l+y,b=(T=y==-A||y!=A&&u[E-1]<u[E+1]?u[E+1]:u[E-1]+1)-y;T<r&&b<a&&e.charAt(T)==t.charAt(b);)T++,b++;if(u[E]=T,T>r)h+=2;else if(b>a)g+=2;else if(f&&(w=l+p-y)>=0&&w<s&&-1!=c[w]&&T>=(C=r-c[w]))return o(e,t,T,b)}for(var _=-A+m;_<=A-v;_+=2){for(var C,w=l+_,S=(C=_==-A||_!=A&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-_;C<r&&S<a&&e.charAt(r-C-1)==t.charAt(a-S-1);)C++,S++;if(c[w]=C,C>r)v+=2;else if(S>a)m+=2;else if(!f){var T;if((E=l+p-_)>=0&&E<s&&-1!=u[E]&&(b=l+(T=u[E])-E,T>=(C=r-C)))return o(e,t,T,b)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return d&&f.unshift([0,d]),p&&f.push([0,p]),l(f),null!=s&&(f=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===n||0===a[0]){var i=r+a[1].length;if(t===i)return[o+1,e];if(t<i){e=e.slice();var l=t-r,s=[a[0],a[1].slice(0,l)],u=[a[0],a[1].slice(l)];return e.splice(o,1,s,u),[o+1,e]}r=i}}throw new Error(\"cursor_pos is out of bounds!\")}(e,t),o=r[1],a=r[0],i=o[a],l=o[a+1];if(null==i)return e;if(0!==i[0])return e;if(null!=l&&i[1]+l[1]===l[1]+i[1])return o.splice(a,2,l,i),u(o,a,2);if(null!=l&&0===l[1].indexOf(i[1])){o.splice(a,2,[l[0],i[1]],[0,i[1]]);var s=l[1].slice(i[1].length);return s.length>0&&o.splice(a+2,0,[l[0],s]),u(o,a,3)}return e}(f,s)),function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)0===e[a-2][0]&&o(e[a-2][1])&&e[a-1][0]===n&&r(e[a-1][1])&&1===e[a][0]&&r(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var i=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&i.push(e[a]);return i}(f)}function o(e,t,n,o){var a=e.substring(0,n),i=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=r(a,i),c=r(l,s);return u.concat(c)}function a(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,a=0;n<o;)e.substring(a,o)==t.substring(a,o)?a=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function i(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,a=0;n<o;)e.substring(e.length-o,e.length-a)==t.substring(t.length-o,t.length-a)?a=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(e){e.push([0,\"\"]);for(var t,r=0,o=0,s=0,u=\"\",c=\"\";r<e.length;)switch(e[r][0]){case 1:s++,c+=e[r][1],r++;break;case n:o++,u+=e[r][1],r++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(t=a(c,u))&&(r-o-s>0&&0==e[r-o-s-1][0]?e[r-o-s-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),u=u.substring(t)),0!==(t=i(c,u))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===o?e.splice(r-s,o+s,[1,c]):0===s?e.splice(r-o,o+s,[n,u]):e.splice(r-o-s,o+s,[n,u],[1,c]),r=r-o-s+(o?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,o=0,u=\"\",c=\"\"}\"\"===e[e.length-1][1]&&e.pop();var d=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),d=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),d=!0)),r++;d&&l(e)}var s=r;function u(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],a=e[r+1];o[0]===a[1]&&e.splice(r,2,[o[0],o[1]+a[1]])}return e}s.INSERT=1,s.DELETE=n,s.EQUAL=0,e.exports=s},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports=\"function\"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n=\"[object Arguments]\"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return\"[object Arguments]\"==Object.prototype.toString.call(e)}function o(e){return e&&\"object\"==typeof e&&\"number\"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,\"callee\")&&!Object.prototype.propertyIsEnumerable.call(e,\"callee\")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){\"use strict\";var n=Object.prototype.hasOwnProperty,r=\"~\";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),i.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},i.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var a=0,i=o.length,l=new Array(i);a<i;a++)l[a]=o[a].fn;return l},i.prototype.emit=function(e,t,n,o,a,i){var l=r?r+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,a),!0;case 6:return c.fn.call(c.context,t,n,o,a,i),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},i.prototype.on=function(e,t,n){var o=new a(t,n||this),i=r?r+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},i.prototype.once=function(e,t,n){var o=new a(t,n||this,!0),i=r?r+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},i.prototype.removeListener=function(e,t,n,a){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[i],this;var l=this._events[i];if(l.fn)l.fn!==t||a&&!l.once||n&&l.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[i]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||a&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[i]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[i]}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=r,i.EventEmitter=i,void 0!==e&&(e.exports=i)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=y(n(3)),l=y(n(2)),s=y(n(0)),u=y(n(5)),c=y(n(10)),d=y(n(9)),p=n(36),f=n(37),g=y(n(13)),h=n(26),m=n(38),v=n(39),A=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,c.default)(\"quill:clipboard\"),_=\"__ql-matcher\",C=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,I],[\"br\",function(e,t){return R(t,\"\\n\")||t.insert(\"\\n\"),t}],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,x],[Node.ELEMENT_NODE,k],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&\"italic\"===D(e).fontStyle&&(n.italic=!0),r.fontWeight&&(D(e).fontWeight.startsWith(\"bold\")||parseInt(D(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=O(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert(\"\\t\").concat(t)),t}],[\"li\",function(e,t){var n=s.default.query(e);if(null==n||\"list-item\"!==n.blotName||!R(t,\"\\n\"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains(\"ql-clipboard\");)\"list\"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],[\"b\",P.bind(P,\"bold\")],[\"i\",P.bind(P,\"italic\")],[\"style\",function(){return new l.default}]],w=[p.AlignAttribute,m.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),S=[p.AlignStyle,f.BackgroundStyle,h.ColorStyle,m.DirectionStyle,v.FontStyle,A.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),T=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener(\"paste\",r.onPaste.bind(r)),r.container=r.quill.addContainer(\"ql-clipboard\"),r.container.setAttribute(\"contenteditable\",!0),r.container.setAttribute(\"tabindex\",-1),r.matchers=[],C.concat(r.options.matchers).forEach(function(e){var t=o(e,2),a=t[0],i=t[1];(n.matchVisual||i!==k)&&r.addMatcher(a,i)}),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:\"addMatcher\",value:function(e,t){this.matchers.push([e,t])}},{key:\"convert\",value:function(e){if(\"string\"==typeof e)return this.container.innerHTML=e.replace(/\\>\\r?\\n +\\</g,\"><\"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[g.default.blotName]){var n=this.container.innerText;return this.container.innerHTML=\"\",(new l.default).insert(n,E({},g.default.blotName,t[g.default.blotName]))}var r=this.prepareMatching(),a=o(r,2),i=a[0],s=a[1],u=L(this.container,i,s);return R(u,\"\\n\")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),b.log(\"convert\",this.container.innerHTML,u),this.container.innerHTML=\"\",u}},{key:\"dangerouslyPasteHTML\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if(\"string\"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:\"onPaste\",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()},1)}}},{key:\"prepareMatching\",value:function(){var e=this,t=[],n=[];return this.matchers.forEach(function(r){var a=o(r,2),i=a[0],l=a[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(i),function(e){e[_]=e[_]||[],e[_].push(l)})}}),[t,n]}}]),t}(d.default);function O(e,t,n){return\"object\"===(void 0===t?\"undefined\":r(t))?Object.keys(t).reduce(function(e,n){return O(e,n,t[n])},e):e.reduce(function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,i.default)({},E({},t,n),r.attributes))},new l.default)}function D(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t=\"__ql-computed-style\";return e[t]||(e[t]=window.getComputedStyle(e))}function R(e,t){for(var n=\"\",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if(\"string\"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=D(e);return[\"block\",\"list-item\"].indexOf(t.display)>-1}function L(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce(function(t,n){return n(e,t)},new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(r,o){var a=L(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(a=t.reduce(function(e,t){return t(o,e)},a),a=(o[_]||[]).reduce(function(e,t){return t(o,e)},a)),r.concat(a)},new l.default):new l.default}function P(e,t,n){return O(n,e,!0)}function M(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),a={};return n.concat(r).concat(o).forEach(function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(null==(n=w[t])||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],a[n.attrName]=n.value(e)||void 0))}),Object.keys(a).length>0&&(t=O(t,a)),t}function x(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else\"function\"==typeof n.formats&&(t=O(t,n.blotName,n.formats(e)));return t}function I(e,t){return R(t,\"\\n\")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert(\"\\n\"),t}function k(e,t){if(N(e)&&null!=e.nextElementSibling&&!R(t,\"\\n\\n\")){var n=e.offsetHeight+parseFloat(D(e).marginTop)+parseFloat(D(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert(\"\\n\")}return t}function B(e,t){var n=e.data;if(\"O:P\"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains(\"ql-clipboard\"))return t;if(!D(e.parentNode).whiteSpace.startsWith(\"pre\")){var r=function(e,t){return(t=t.replace(/[^\\u00a0]/g,\"\")).length<1&&e?\" \":t};n=(n=n.replace(/\\r\\n/g,\" \").replace(/\\n/g,\" \")).replace(/\\s\\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\\s+$/,r.bind(r,!1)))}return t.insert(n)}T.DEFAULTS={matchers:[],matchVisual:!0},t.default=T,t.matchAttributor=M,t.matchBlot=x,t.matchNewline=I,t.matchSpacing=k,t.matchText=B},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"optimize\",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:\"create\",value:function(){return a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this)}},{key:\"formats\",value:function(){return!0}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);i.blotName=\"bold\",i.tagName=[\"STRONG\",\"B\"],t.default=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(2)),i=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}var p=(0,s.default)(\"quill:toolbar\"),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var o,a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(a.options.container)){var i=document.createElement(\"div\");h(i,a.options.container),e.container.parentNode.insertBefore(i,e.container),a.container=i}else\"string\"==typeof a.options.container?a.container=document.querySelector(a.options.container):a.container=a.options.container;return a.container instanceof HTMLElement?(a.container.classList.add(\"ql-toolbar\"),a.controls=[],a.handlers={},Object.keys(a.options.handlers).forEach(function(e){a.addHandler(e,a.options.handlers[e])}),[].forEach.call(a.container.querySelectorAll(\"button, select\"),function(e){a.attach(e)}),a.quill.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.SELECTION_CHANGE&&a.update(t)}),a.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){var e=a.quill.selection.getRange(),t=r(e,1)[0];a.update(t)}),a):(o=p.error(\"Container required for toolbar\",a.options),d(a,o))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"addHandler\",value:function(e,t){this.handlers[e]=t}},{key:\"attach\",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf(\"ql-\")});if(n){if(n=n.slice(3),\"BUTTON\"===e.tagName&&e.setAttribute(\"type\",\"button\"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn(\"ignoring attaching to disabled format\",n,e);if(null==i.default.query(n))return void p.warn(\"ignoring attaching to nonexistent format\",n,e)}var o=\"SELECT\"===e.tagName?\"change\":\"click\";e.addEventListener(o,function(o){var s=void 0;if(\"SELECT\"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute(\"selected\")&&(u.value||!1)}else s=!e.classList.contains(\"ql-active\")&&(e.value||!e.hasAttribute(\"value\")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),d=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(i.default.query(n).prototype instanceof i.default.Embed){if(!(s=prompt(\"Enter \"+n)))return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(d)}),this.controls.push([n,e])}}},{key:\"update\",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var o=r(n,2),a=o[0],i=o[1];if(\"SELECT\"===i.tagName){var l=void 0;if(null==e)l=null;else if(null==t[a])l=i.querySelector(\"option[selected]\");else if(!Array.isArray(t[a])){var s=t[a];\"string\"==typeof s&&(s=s.replace(/\\\"/g,'\\\\\"')),l=i.querySelector('option[value=\"'+s+'\"]')}null==l?(i.value=\"\",i.selectedIndex=-1):l.selected=!0}else if(null==e)i.classList.remove(\"ql-active\");else if(i.hasAttribute(\"value\")){var u=t[a]===i.getAttribute(\"value\")||null!=t[a]&&t[a].toString()===i.getAttribute(\"value\")||null==t[a]&&!i.getAttribute(\"value\");i.classList.toggle(\"ql-active\",u)}else i.classList.toggle(\"ql-active\",null!=t[a])})}}]),t}(u.default);function g(e,t,n){var r=document.createElement(\"button\");r.setAttribute(\"type\",\"button\"),r.classList.add(\"ql-\"+t),null!=n&&(r.value=n),e.appendChild(r)}function h(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement(\"span\");n.classList.add(\"ql-formats\"),t.forEach(function(e){if(\"string\"==typeof e)g(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement(\"select\");r.classList.add(\"ql-\"+t),n.forEach(function(e){var t=document.createElement(\"option\");!1!==e?t.setAttribute(\"value\",e):t.setAttribute(\"selected\",\"selected\"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):g(n,t,r)}}),e.appendChild(n)})}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=i.default.query(t,i.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;\"rtl\"===e&&null==t?this.quill.format(\"align\",\"right\",l.default.sources.USER):e||\"right\"!==t||this.quill.format(\"align\",!1,l.default.sources.USER),this.quill.format(\"direction\",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if(\"+1\"===e||\"-1\"===e){var o=\"+1\"===e?1:-1;\"rtl\"===n.direction&&(o*=-1),this.quill.format(\"indent\",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt(\"Enter link URL:\")),this.quill.format(\"link\",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);\"check\"===e?\"checked\"===n.list||\"unchecked\"===n.list?this.quill.format(\"list\",!1,l.default.sources.USER):this.quill.format(\"list\",\"unchecked\",l.default.sources.USER):this.quill.format(\"list\",e,l.default.sources.USER)}}},t.default=f,t.addControls=h},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add(\"ql-color-picker\"),[].slice.call(r.container.querySelectorAll(\".ql-picker-item\"),0,7).forEach(function(e){e.classList.add(\"ql-primary\")}),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"buildItem\",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"buildItem\",this).call(this,e);return n.style.backgroundColor=e.getAttribute(\"value\")||\"\",n}},{key:\"selectItem\",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"selectItem\",this).call(this,e,n);var r=this.label.querySelector(\".ql-color-label\"),o=e&&e.getAttribute(\"data-value\")||\"\";r&&(\"line\"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=n(28))&&r.__esModule?r:{default:r}).default);t.default=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add(\"ql-icon-picker\"),[].forEach.call(r.container.querySelectorAll(\".ql-picker-item\"),function(e){e.innerHTML=n[e.getAttribute(\"data-value\")||\"\"]}),r.defaultItem=r.container.querySelector(\".ql-selected\"),r.selectItem(r.defaultItem),r}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"selectItem\",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"selectItem\",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=n(28))&&r.__esModule?r:{default:r}).default);t.default=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer(\"ql-tooltip\"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener(\"scroll\",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+\"px\"}),this.hide()}return r(e,[{key:\"hide\",value:function(){this.root.classList.add(\"ql-hidden\")}},{key:\"position\",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+\"px\",this.root.style.top=n+\"px\",this.root.classList.remove(\"ql-flip\");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),a=0;if(o.right>r.right&&(a=r.right-o.right,this.root.style.left=t+a+\"px\"),o.left<r.left&&(a=r.left-o.left,this.root.style.left=t+a+\"px\"),o.bottom>r.bottom){var i=o.bottom-o.top,l=e.bottom-e.top+i;this.root.style.top=n-l+\"px\",this.root.classList.add(\"ql-flip\")}return a}},{key:\"show\",value:function(){this.root.classList.remove(\"ql-editing\"),this.root.classList.remove(\"ql-hidden\")}}]),e}();t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),i=p(n(8)),l=n(43),s=p(l),u=p(n(27)),c=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function g(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function h(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[[{header:[\"1\",\"2\",\"3\",!1]}],[\"bold\",\"italic\",\"underline\",\"link\"],[{list:\"ordered\"},{list:\"bullet\"}],[\"clean\"]],v=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add(\"ql-snow\"),r}return h(t,e),o(t,[{key:\"extendToolbar\",value:function(e){e.container.classList.add(\"ql-snow\"),this.buildButtons([].slice.call(e.container.querySelectorAll(\"button\")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll(\"select\")),d.default),this.tooltip=new A(this.quill,this.options.bounds),e.container.querySelector(\".ql-link\")&&this.quill.keyboard.addBinding({key:\"K\",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}(s.default);v.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\\S+@\\S+\\.\\S+$/.test(n)&&0!==n.indexOf(\"mailto:\")&&(n=\"mailto:\"+n),this.quill.theme.tooltip.edit(\"link\",n)}else this.quill.format(\"link\",!1)}}}}});var A=function(e){function t(e,n){f(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector(\"a.ql-preview\"),r}return h(t,e),o(t,[{key:\"listen\",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"listen\",this).call(this),this.root.querySelector(\"a.ql-action\").addEventListener(\"click\",function(t){e.root.classList.contains(\"ql-editing\")?e.save():e.edit(\"link\",e.preview.textContent),t.preventDefault()}),this.root.querySelector(\"a.ql-remove\").addEventListener(\"click\",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,\"link\",!1,i.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(i.default.events.SELECTION_CHANGE,function(t,n,r){if(null!=t){if(0===t.length&&r===i.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}(e.quill.scroll.descendant(u.default,t.index),2),a=o[0],l=o[1];if(null!=a){e.linkRange=new c.Range(t.index-l,a.length());var s=u.default.formats(a.domNode);return e.preview.textContent=s,e.preview.setAttribute(\"href\",s),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:\"show\",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"show\",this).call(this),this.root.removeAttribute(\"data-mode\")}}]),t}(l.BaseTooltip);A.TEMPLATE=['<a class=\"ql-preview\" rel=\"noopener noreferrer\" target=\"_blank\" href=\"about:blank\"></a>','<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">','<a class=\"ql-action\"></a>','<a class=\"ql-remove\"></a>'].join(\"\"),t.default=v},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=I(n(29)),o=n(36),a=n(38),i=n(64),l=I(n(65)),s=I(n(66)),u=n(67),c=I(u),d=n(37),p=n(26),f=n(39),g=n(40),h=I(n(56)),m=I(n(68)),v=I(n(27)),A=I(n(69)),y=I(n(70)),E=I(n(71)),b=I(n(72)),_=I(n(73)),C=n(13),w=I(C),S=I(n(74)),T=I(n(75)),O=I(n(57)),D=I(n(41)),R=I(n(28)),N=I(n(59)),L=I(n(60)),P=I(n(61)),M=I(n(108)),x=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}r.default.register({\"attributors/attribute/direction\":a.DirectionAttribute,\"attributors/class/align\":o.AlignClass,\"attributors/class/background\":d.BackgroundClass,\"attributors/class/color\":p.ColorClass,\"attributors/class/direction\":a.DirectionClass,\"attributors/class/font\":f.FontClass,\"attributors/class/size\":g.SizeClass,\"attributors/style/align\":o.AlignStyle,\"attributors/style/background\":d.BackgroundStyle,\"attributors/style/color\":p.ColorStyle,\"attributors/style/direction\":a.DirectionStyle,\"attributors/style/font\":f.FontStyle,\"attributors/style/size\":g.SizeStyle},!0),r.default.register({\"formats/align\":o.AlignClass,\"formats/direction\":a.DirectionClass,\"formats/indent\":i.IndentClass,\"formats/background\":d.BackgroundStyle,\"formats/color\":p.ColorStyle,\"formats/font\":f.FontClass,\"formats/size\":g.SizeClass,\"formats/blockquote\":l.default,\"formats/code-block\":w.default,\"formats/header\":s.default,\"formats/list\":c.default,\"formats/bold\":h.default,\"formats/code\":C.Code,\"formats/italic\":m.default,\"formats/link\":v.default,\"formats/script\":A.default,\"formats/strike\":y.default,\"formats/underline\":E.default,\"formats/image\":b.default,\"formats/video\":_.default,\"formats/list/item\":u.ListItem,\"modules/formula\":S.default,\"modules/syntax\":T.default,\"modules/toolbar\":O.default,\"themes/bubble\":M.default,\"themes/snow\":x.default,\"ui/icons\":D.default,\"ui/picker\":R.default,\"ui/icon-picker\":L.default,\"ui/color-picker\":N.default,\"ui/tooltip\":P.default},!0),t.default=r.default},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=(r=n(0))&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"add\",value:function(e,n){if(\"+1\"===n||\"-1\"===n){var r=this.value(e)||0;n=\"+1\"===n?r+1:r-1}return 0===n?(this.remove(e),!0):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"add\",this).call(this,e,n)}},{key:\"canAdd\",value:function(e,n){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"canAdd\",this).call(this,e,n)||a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"canAdd\",this).call(this,e,parseInt(n))}},{key:\"value\",value:function(e){return parseInt(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"value\",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),s=new l(\"indent\",\"ql-indent\",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(4))&&r.__esModule?r:{default:r}).default);o.blotName=\"blockquote\",o.tagName=\"blockquote\",t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:\"formats\",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=n(4))&&r.__esModule?r:{default:r}).default);a.blotName=\"header\",a.tagName=[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\"],t.default=a},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=s(n(0)),i=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function c(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function d(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:\"format\",value:function(e,n){e!==f.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:\"remove\",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"remove\",this).call(this)}},{key:\"replaceWith\",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"replaceWith\",this).call(this,e,n))}}],[{key:\"formats\",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),\"formats\",this).call(this,e)}}]),t}(i.default);p.blotName=\"list-item\",p.tagName=\"LI\";var f=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=a.default.find(t.target);\"checked\"===r?o.format(\"list\",\"unchecked\"):\"unchecked\"===r&&o.format(\"list\",\"checked\")}};return e.addEventListener(\"touchstart\",r),e.addEventListener(\"mousedown\",r),n}return d(t,e),r(t,null,[{key:\"create\",value:function(e){var n=\"ordered\"===e?\"OL\":\"UL\",r=o(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,n);return\"checked\"!==e&&\"unchecked\"!==e||r.setAttribute(\"data-checked\",\"checked\"===e),r}},{key:\"formats\",value:function(e){return\"OL\"===e.tagName?\"ordered\":\"UL\"===e.tagName?e.hasAttribute(\"data-checked\")?\"true\"===e.getAttribute(\"data-checked\")?\"checked\":\"unchecked\":\"bullet\":void 0}}]),r(t,[{key:\"format\",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:\"formats\",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:\"insertBefore\",value:function(e,n){if(e instanceof p)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"insertBefore\",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),a=this.split(r);a.parent.insertBefore(e,a)}}},{key:\"optimize\",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"optimize\",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute(\"data-checked\")===this.domNode.getAttribute(\"data-checked\")&&(n.moveChildren(this),n.remove())}},{key:\"replace\",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"replace\",this).call(this,e)}}]),t}(l.default);f.blotName=\"list\",f.scope=a.default.Scope.BLOCK_BLOT,f.tagName=[\"OL\",\"UL\"],f.defaultChild=\"list-item\",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(56))&&r.__esModule?r:{default:r}).default);o.blotName=\"italic\",o.tagName=[\"EM\",\"I\"],t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:\"create\",value:function(e){return\"super\"===e?document.createElement(\"sup\"):\"sub\"===e?document.createElement(\"sub\"):a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e)}},{key:\"formats\",value:function(e){return\"SUB\"===e.tagName?\"sub\":\"SUP\"===e.tagName?\"super\":void 0}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);i.blotName=\"script\",i.tagName=[\"SUB\",\"SUP\"],t.default=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);o.blotName=\"strike\",o.tagName=\"S\",t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);o.blotName=\"underline\",o.tagName=\"U\",t.default=o},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=(r=n(0))&&r.__esModule?r:{default:r},l=n(27),s=[\"alt\",\"height\",\"width\"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"format\",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n)}}],[{key:\"create\",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e);return\"string\"==typeof e&&n.setAttribute(\"src\",this.sanitize(e)),n}},{key:\"formats\",value:function(e){return s.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:\"match\",value:function(e){return/\\.(jpe?g|gif|png)$/.test(e)||/^data:image\\/.+;base64/.test(e)}},{key:\"sanitize\",value:function(e){return(0,l.sanitize)(e,[\"http\",\"https\",\"data\"])?e:\"//:0\"}},{key:\"value\",value:function(e){return e.getAttribute(\"src\")}}]),t}(i.default.Embed);u.blotName=\"image\",u.tagName=\"IMG\",t.default=u},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},i=n(4),l=(r=n(27))&&r.__esModule?r:{default:r},s=[\"height\",\"width\"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:\"format\",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"format\",this).call(this,e,n)}}],[{key:\"create\",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e);return n.setAttribute(\"frameborder\",\"0\"),n.setAttribute(\"allowfullscreen\",!0),n.setAttribute(\"src\",this.sanitize(e)),n}},{key:\"formats\",value:function(e){return s.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:\"sanitize\",value:function(e){return l.default.sanitize(e)}},{key:\"value\",value:function(e){return e.getAttribute(\"src\")}}]),t}(i.BlockEmbed);u.blotName=\"video\",u.className=\"ql-video\",u.tagName=\"IFRAME\",t.default=u},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=s(n(35)),i=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function c(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function d(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,null,[{key:\"create\",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),\"create\",this).call(this,e);return\"string\"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:\"#f00\"}),n.setAttribute(\"data-value\",e)),n}},{key:\"value\",value:function(e){return e.getAttribute(\"data-value\")}}]),t}(a.default);p.blotName=\"formula\",p.className=\"ql-formula\",p.tagName=\"SPAN\";var f=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error(\"Formula module requires KaTeX.\");return e}return d(t,e),r(t,null,[{key:\"register\",value:function(){i.default.register(p,!0)}}]),t}(l.default);t.FormulaBlot=p,t.default=f},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},a=s(n(0)),i=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function c(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function d(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:\"replaceWith\",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"replaceWith\",this).call(this,e)}},{key:\"highlight\",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className=\"ql-syntax\";var f=new a.default.Attributor.Class(\"token\",\"hljs\",{scope:a.default.Scope.INLINE}),g=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(\"function\"!=typeof r.options.highlight)throw new Error(\"Syntax module requires highlight.js. Please include the library on the page before Quill.\");var o=null;return r.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(o),o=setTimeout(function(){r.highlight(),o=null},r.options.interval)}),r.highlight(),r}return d(t,e),r(t,null,[{key:\"register\",value:function(){i.default.register(f,!0),i.default.register(p,!0)}}]),r(t,[{key:\"highlight\",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(i.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(i.default.sources.SILENT),null!=t&&this.quill.setSelection(t,i.default.sources.SILENT)}}}]),t}(l.default);g.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=g},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>'},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if(\"value\"in o)return o.value;var i=o.get;return void 0!==i?i.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(3)),i=d(n(8)),l=n(43),s=d(l),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function f(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function g(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=[[\"bold\",\"italic\",\"link\"],[{header:1},{header:2},\"blockquote\"]],m=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=h);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add(\"ql-bubble\"),r}return g(t,e),o(t,[{key:\"extendToolbar\",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll(\"button\")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll(\"select\")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format(\"link\",!1)}}}}});var v=function(e){function t(e,n){p(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(i.default.events.EDITOR_CHANGE,function(e,t,n,o){if(e===i.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===i.default.sources.USER){r.show(),r.root.style.left=\"0px\",r.root.style.width=\"\",r.root.style.width=r.root.offsetWidth+\"px\";var a=r.quill.getLines(t.index,t.length);if(1===a.length)r.position(r.quill.getBounds(t));else{var l=a[a.length-1],s=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=r.quill.getBounds(new u.Range(s,c));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return g(t,e),o(t,[{key:\"listen\",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"listen\",this).call(this),this.root.querySelector(\".ql-close\").addEventListener(\"click\",function(){e.root.classList.remove(\"ql-editing\")}),this.quill.on(i.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains(\"ql-hidden\")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:\"cancel\",value:function(){this.show()}},{key:\"position\",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"position\",this).call(this,e),o=this.root.querySelector(\".ql-tooltip-arrow\");if(o.style.marginLeft=\"\",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+\"px\"}}]),t}(l.BaseTooltip);v.TEMPLATE=['<span class=\"ql-tooltip-arrow\"></span>','<div class=\"ql-tooltip-editor\">','<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">','<a class=\"ql-close\"></a>',\"</div>\"].join(\"\"),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},91847:(e,t,n)=>{var r=n(54893);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},91955:(e,t,n)=>{\"use strict\";var r,o,a,i,l,s=n(44576),u=n(93389),c=n(76080),d=n(59225).set,p=n(18265),f=n(89544),g=n(44265),h=n(7860),m=n(16193),v=s.MutationObserver||s.WebKitMutationObserver,A=s.document,y=s.process,E=s.Promise,b=u(\"queueMicrotask\");if(!b){var _=new p,C=function(){var e,t;for(m&&(e=y.domain)&&e.exit();t=_.get();)try{t()}catch(e){throw _.head&&r(),e}e&&e.enter()};f||m||h||!v||!A?!g&&E&&E.resolve?((i=E.resolve(void 0)).constructor=E,l=c(i.then,i),r=function(){l(C)}):m?r=function(){y.nextTick(C)}:(d=c(d,s),r=function(){d(C)}):(o=!0,a=A.createTextNode(\"\"),new v(C).observe(a,{characterData:!0}),r=function(){a.data=o=!o}),b=function(e){_.head||r(),_.add(e)}}e.exports=b},92067:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89m-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41-.25-.29-.37-.68-.33-1.07m-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17M5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19z\"}),\"StorefrontOutlined\")},92140:(e,t,n)=>{\"use strict\";var r={};r[n(78227)(\"toStringTag\")]=\"z\",e.exports=\"[object z]\"===String(r)},92297:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"ms-my\",{months:\"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember\".split(\"_\"),monthsShort:\"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis\".split(\"_\"),weekdays:\"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu\".split(\"_\"),weekdaysShort:\"Ahd_Isn_Sel_Rab_Kha_Jum_Sab\".split(\"_\"),weekdaysMin:\"Ah_Is_Sl_Rb_Km_Jm_Sb\".split(\"_\"),longDateFormat:{LT:\"HH.mm\",LTS:\"HH.mm.ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY [pukul] HH.mm\",LLLL:\"dddd, D MMMM YYYY [pukul] HH.mm\"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),\"pagi\"===t?e:\"tengahari\"===t?e>=11?e:e+12:\"petang\"===t||\"malam\"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?\"pagi\":e<15?\"tengahari\":e<19?\"petang\":\"malam\"},calendar:{sameDay:\"[Hari ini pukul] LT\",nextDay:\"[Esok pukul] LT\",nextWeek:\"dddd [pukul] LT\",lastDay:\"[Kelmarin pukul] LT\",lastWeek:\"dddd [lepas pukul] LT\",sameElse:\"L\"},relativeTime:{future:\"dalam %s\",past:\"%s yang lepas\",s:\"beberapa saat\",ss:\"%d saat\",m:\"seminit\",mm:\"%d minit\",h:\"sejam\",hh:\"%d jam\",d:\"sehari\",dd:\"%d hari\",M:\"sebulan\",MM:\"%d bulan\",y:\"setahun\",yy:\"%d tahun\"},week:{dow:1,doy:7}})}(n(95093))},92403:(e,t,n)=>{\"use strict\";n.d(t,{F:()=>r});var r=function(e){return e.scrollTop}},92405:(e,t,n)=>{\"use strict\";n(16468)(\"Set\",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(86938))},92416:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>H}),n(52675),n(89463),n(2259),n(28706),n(23418),n(64346),n(23792),n(62062),n(34782),n(23288),n(62010),n(26099),n(27495),n(38781),n(47764),n(42762),n(62953);var r=n(60684),o=n(28161),a=n(58168),i=n(98587),l=n(81970),s=n.n(l),u=n(34164),c=n(75659),d=n(79329),p=n(11848),f=n(25669),g=n(14073),h=n(771),m=n(20561),v=n(74848);const A=(0,m.A)((0,v.jsx)(\"path\",{d:\"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"}),\"MoreHoriz\");var y=n(18850);const E=[\"slots\",\"slotProps\"],b=(0,p.Ay)(y.A,{name:\"MuiBreadcrumbCollapsed\"})(({theme:e})=>(0,a.A)({display:\"flex\",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},\"light\"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,\"&:hover, &:focus\":(0,a.A)({},\"light\"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),\"&:active\":(0,a.A)({boxShadow:e.shadows[0]},\"light\"===e.palette.mode?{backgroundColor:(0,h.tL)(e.palette.grey[200],.12)}:{backgroundColor:(0,h.tL)(e.palette.grey[600],.12)})})),_=(0,p.Ay)(A)({width:24,height:16}),C=function(e){const{slots:t={},slotProps:n={}}=e,r=(0,i.A)(e,E),o=e;return(0,v.jsx)(\"li\",{children:(0,v.jsx)(b,(0,a.A)({focusRipple:!0},r,{ownerState:o,children:(0,v.jsx)(_,(0,a.A)({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})};var w=n(38413),S=n(31609);function T(e){return(0,S.Ay)(\"MuiBreadcrumbs\",e)}const O=(0,w.A)(\"MuiBreadcrumbs\",[\"root\",\"ol\",\"li\",\"separator\"]),D=[\"children\",\"className\",\"component\",\"slots\",\"slotProps\",\"expandText\",\"itemsAfterCollapse\",\"itemsBeforeCollapse\",\"maxItems\",\"separator\"],R=(0,p.Ay)(g.A,{name:\"MuiBreadcrumbs\",slot:\"Root\",overridesResolver:(e,t)=>[{[`& .${O.li}`]:t.li},t.root]})({}),N=(0,p.Ay)(\"ol\",{name:\"MuiBreadcrumbs\",slot:\"Ol\",overridesResolver:(e,t)=>t.ol})({display:\"flex\",flexWrap:\"wrap\",alignItems:\"center\",padding:0,margin:0,listStyle:\"none\"}),L=(0,p.Ay)(\"li\",{name:\"MuiBreadcrumbs\",slot:\"Separator\",overridesResolver:(e,t)=>t.separator})({display:\"flex\",userSelect:\"none\",marginLeft:8,marginRight:8});function P(e,t,n,r){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,(0,v.jsx)(L,{\"aria-hidden\":!0,className:t,ownerState:r,children:n},`separator-${i}`)):o.push(a),o),[])}const M=l.forwardRef(function(e,t){const n=(0,f.b)({props:e,name:\"MuiBreadcrumbs\"}),{children:r,className:o,component:s=\"nav\",slots:p={},slotProps:g={},expandText:h=\"Show path\",itemsAfterCollapse:m=1,itemsBeforeCollapse:A=1,maxItems:y=8,separator:E=\"/\"}=n,b=(0,i.A)(n,D),[_,w]=l.useState(!1),S=(0,a.A)({},n,{component:s,expanded:_,expandText:h,itemsAfterCollapse:m,itemsBeforeCollapse:A,maxItems:y,separator:E}),O=(e=>{const{classes:t}=e;return(0,c.A)({root:[\"root\"],li:[\"li\"],ol:[\"ol\"],separator:[\"separator\"]},T,t)})(S),L=(0,d.A)({elementType:p.CollapsedIcon,externalSlotProps:g.collapsedIcon,ownerState:S}),M=l.useRef(null),x=l.Children.toArray(r).filter(e=>l.isValidElement(e)).map((e,t)=>(0,v.jsx)(\"li\",{className:O.li,children:e},`child-${t}`));return(0,v.jsx)(R,(0,a.A)({ref:t,component:s,color:\"text.secondary\",className:(0,u.A)(O.root,o),ownerState:S},b,{children:(0,v.jsx)(N,{className:O.ol,ref:M,ownerState:S,children:P(_||y&&x.length<=y?x:(e=>A+m>=e.length?e:[...e.slice(0,A),(0,v.jsx)(C,{\"aria-label\":h,slots:{CollapsedIcon:p.CollapsedIcon},slotProps:{collapsedIcon:L},onClick:()=>{w(!0);const e=M.current.querySelector(\"a[href],button,[tabindex]\");e&&e.focus()}},\"ellipsis\"),...e.slice(e.length-m,e.length)])(x),O.separator,E,S)})}))});var x=n(84976),I=n(21270),k=n(96348),B=(0,n(6398).A)({breadCrumbs:{backgroundColor:\"transparent !important\",\"& .agro-lite-logo\":{cursor:\"pointer\"}}});function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var j=function(e){var t,n=e.routePathName,a=void 0===n?[]:n,i=B(),l=function(e){if(Array.isArray(e))return F(e)}(t=a)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||function(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}();return s().createElement(o.A,{className:i.breadCrumbs,display:\"flex\",alignItems:\"center\",gap:2,justifyContent:\"start\"},s().createElement(x.k2,{to:\"/\".concat(k.fp.SmartAgro)},s().createElement(o.A,{width:150,height:60},s().createElement(\"img\",{src:I.A.Sakham_2_0_Logo,className:\"agro-lite-logo\",width:\"100%\",height:\"100%\",alt:\"agro-lite-logo\"}))),l.length>0&&s().createElement(r.A,null),s().createElement(M,{separator:s().createElement(r.A,null),\"aria-label\":\"breadcrumb\"},l.length>0&&l.map(function(e,t){var n;return s().createElement(x.k2,{key:\"bread-crumbs-\".concat(e.path),to:t<l.length-1?\"/\".concat(k.fp.SmartAgro,\"/\").concat(e.path).trim():\"#\",state:null!==(n=null==e?void 0:e.state)&&void 0!==n?n:{},style:{textDecoration:\"none\",pointerEvents:t<l.length-1?\"all\":\"none\"},color:\"inherit\"},s().createElement(g.A,{component:\"p\",variant:\"h2\"},e.name))})))};const H=s().memo(j)},92572:function(e,t,n){!function(e){\"use strict\";var t=\"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.\".split(\"_\"),n=\"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec\".split(\"_\"),r=[/^jan/i,/^feb/i,/^(maart|mrt\\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;e.defineLocale(\"nl\",{months:\"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag\".split(\"_\"),weekdaysShort:\"zo._ma._di._wo._do._vr._za.\".split(\"_\"),weekdaysMin:\"zo_ma_di_wo_do_vr_za\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD-MM-YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[vandaag om] LT\",nextDay:\"[morgen om] LT\",nextWeek:\"dddd [om] LT\",lastDay:\"[gisteren om] LT\",lastWeek:\"[afgelopen] dddd [om] LT\",sameElse:\"L\"},relativeTime:{future:\"over %s\",past:\"%s geleden\",s:\"een paar seconden\",ss:\"%d seconden\",m:\"één minuut\",mm:\"%d minuten\",h:\"één uur\",hh:\"%d uur\",d:\"één dag\",dd:\"%d dagen\",w:\"één week\",ww:\"%d weken\",M:\"één maand\",MM:\"%d maanden\",y:\"één jaar\",yy:\"%d jaar\"},dayOfMonthOrdinalParse:/\\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?\"ste\":\"de\")},week:{dow:1,doy:4}})}(n(95093))},92659:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z\"}),\"ArrowBack\")},92671:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>we}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(26910),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(28161),o=n(90815),a=n(14073),i=n(60538),l=n(81970),s=n.n(l),u=n(34195),c=n(37998),d=n(96348),p=n(17630),f=n(47225),g=n(56254),h=n(43605),m=n(92416),v=n(15664),A=n(64121),y=n(21239),E=(n(94170),n(59904),n(40875),n(10287),n(14774)),b=n(33198),C=n(64137),w=n(96627),S=n(86798),T=n(43884),O={maxHeight:\"400px\",overflowY:\"auto\",width:\"100%\",borderRadius:\"6px\"},D={position:\"sticky\",top:0,zIndex:1,backgroundColor:\"rgb(48 86 24);\",\"& .MuiTableRow-root\":{\"& .MuiTableCell-root\":{borderRight:\"none\",\"&:not(:last-child)\":{borderRight:\"none\"}}}},R={padding:\"12px 25px\",fontSize:12,fontFamily:\"NotoSans-Regular\",borderTop:\"none\",borderBottom:\"1px solid rgba(224, 224, 224, 1)\",borderLeft:\"none\",borderRight:\"none\",height:\"58px\"},N={backgroundColor:\"rgb(98, 128, 30)\",color:\"#fff\",fontSize:14,fontFamily:\"NotoSans-SemiBold\",padding:\"8px 25px\",border:\"none !important\",borderBottom:\"none !important\",height:\"58px\"},L=n(23360);const P=function(e){var t=e.columnDefs,n=e.rows,r=e.onRowClicked,o=e.noDataTemplate,a=e.frameworkComponents;return s().createElement(L.A,null,s().createElement(b.A,{sx:O},s().createElement(C.A,{sx:{width:\"100%\"}},s().createElement(w.A,{sx:D},s().createElement(S.A,null,t.map(function(e){return s().createElement(E.A,{key:e.headerName,sx:N},e.headerName)}))),s().createElement(T.A,null,n&&n.length>0?n.map(function(e,n){return s().createElement(S.A,{key:e,hover:!0,onClick:function(){return function(e){r&&r(e)}(e)}},t.map(function(t,n){return function(e,t,n){if(t.cellRenderer&&null!=a&&a[t.cellRenderer]){var r=a[t.cellRenderer];return s().createElement(E.A,{key:n,sx:R},s().createElement(r,{data:e,value:e[t.field],column:{colId:t.field},api:{}}))}return s().createElement(E.A,{key:n,sx:R},e[t.field])}(e,t,n)}))}):s().createElement(S.A,null,s().createElement(E.A,{colSpan:t.length,sx:{textAlign:\"center\"}},null!=o?o:\"No data found\"))))))};var M=n(10901),x=n(86608),I=(n(48598),n(25440),n(96790)),k=n(95692),B=n(8085),F=n(34358),j=n(13075);function H(e){return H=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},H(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=H(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==H(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(e,t,n,r){var o,a,i={};if(i.domain=t,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},\"saveDistributors\"===r.apiName)i.endPoint=\"\".concat(B.p.SAVE_MY_DISTRIBUTORS.replace(\"__HQ_ID__\",r.hqID),\"?\").concat(r.distributor_uuids.map(function(e){return\"distributor_uuids=\"+e}).join(\"&\")),i.customHeaders[\"user-id\"]=null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id;else if(\"fetchDistributorsData\"===r.apiName){var l,s;i.endPoint=B.p.GET_DISTRIBUTORS_NAMES,i.payLoad=r.payload,i.customHeaders[\"user-id\"]=null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,i.customHeaders[\"role-id\"]=null==e||null===(s=e.selectedBusinessUnit)||void 0===s||null===(s=s.userRoleControls)||void 0===s?void 0:s.roleId}else if(\"getTmHqDataAPI\"===r.apiName){var u,c,d,p=null==r||null===(u=r.payloadData)||void 0===u||null===(u=u.hq_ids)||void 0===u?void 0:u.map(function(e){return\"hq_ids=\".concat(e)}).join(\"&\");null==r||null===(c=r.payloadData)||void 0===c||delete c.hq_ids,i.endPoint=\"distributorCount\"===r.endPointName?\"\".concat(B.p.GET_DISTRIBUTORS_COUNT,\"?\").concat(p):B.p.GET_EVENT_TARGET_CHILD,i.payLoad=r.payloadData,i.customHeaders[\"user-id\"]=null==e||null===(d=e.UserDetails)||void 0===d?void 0:d.user_id}else if(\"getDistributorsListAPI\"===r.apiName){var f;i.endPoint=B.p.GET_MY_DISTRIBUTORS.replace(\"__HQ_ID__\",r.selectedHQ),i.payLoad=r.payload,i.customHeaders[\"user-id\"]=null==e||null===(f=e.UserDetails)||void 0===f?void 0:f.user_id}else if(\"getHQHierarchiesAPI\"===r.apiName){var g;i.endPoint=\"distributorConfig\"===r.endPointName?B.p.SAVE_ATTENDANCE_TYPES:B.p.GET_LIQUIDATION_TAB_VALUES,i.payLoad=\"distributorConfig\"===r.endPointName?{moduleName:\"DISTRIBUTORS\",keys:\"distributor_hq_hierarchy_id\"}:{salesHierarchyId:null==e||null===(g=e.selectedBusinessUnit)||void 0===g||null===(g=g.userRoleControls)||void 0===g?void 0:g.roleId,parent_levels:0}}return i.triggerLoader=n,i},z=function(e,t,n,r,o){var a=G(e,t,n,{apiName:\"getTmHqDataAPI\",payloadData:r,endPointName:o});return(0,j.AT)(\"get\",a,!0)},V=function(e,t,n,r){var o=G(e,t,n,{apiName:\"getHQHierarchiesAPI\",endPointName:r});return new Promise(function(e,t){(0,F.uB)(o,I.dF.GET).then(function(t){if((0,j.mN)(t))return e(t.data);throw new Error((0,j.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})},q=function(e,t,n,r){var o={};return o.domain=t,o.endPoint=B.p.GET_IS_DEMO_MAPPED_TO_DISTRIBUTOR,o.triggerLoader=n,o.customHeaders={\"country-code\":\"\".concat(e.selectedCountry.countryCode),\"role-type-name\":\"\".concat(e.UserDetails.role_type_details.role_type_name),\"bu-id\":\"\".concat(e.selectedBusinessUnit.bu_id),\"user-id\":\"\".concat(e.UserDetails.user_id),Authorization:\"Bearer \".concat(e.AccessToken),distributor_uuid:\"\".concat(r.distributor_uuid),hq_id:\"\".concat(r.hq_id)},o.payLoad=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r),new Promise(function(e,t){(0,F.uB)(o,I.dF.GET).then(function(t){var n,r;if((0,j.mN)(t))return e(t.data);throw new Error(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)&&void 0!==n?n:(0,j.Tl)(\"DATA_NOT_AVAILABLE\"))}).catch(function(e){return t(e)})})},W=n(6398),Q=n(8676),K=n(51545),$=(0,Q.A)(K.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",overflowY:\"auto\",padding:\"25px\",\"& .ag-row\":{cursor:\"pointer\"},\"& .menu-bar-input-filed\":{\"& .MuiOutlinedInput-root\":{height:\"44px\"},\"& .MuiInputBase-root\":{backgroundColor:\"#ffffff\"}}}}),X=(0,W.A)({customModal:{minWidth:\"840px\",minHeight:\"613px\",\"& .modal-header\":{marginTop:\"16px\",borderBottom:\"1px solid \".concat(p.w.palette.grey[400]),\"& .closeIcon\":{color:p.w.palette.error.main}},\"& .modal-body\":{padding:\"8px 24px 24px\",\"& .MuiOutlinedInput-root\":{height:\"44px\"}},\"& .modal-table-wrapper\":{margin:\"26px 0px\",\"& .ag-root-wrapper\":{borderColor:\"transparent !important\"},\"& .ag-root-wrapper .ag-header\":{backgroundColor:\"#65833A !important\",borderColor:\"#65833A !important\",\"& .ag-header-cell-text \":{color:\"#ffffff !important\"}}}}}),J=n(78208),Z=n(99478);function ee(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return te(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(te(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,te(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,te(d,\"constructor\",u),te(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",te(u,o,\"GeneratorFunction\"),te(d),te(d,o,\"Generator\"),te(d,r,function(){return this}),te(d,\"toString\",function(){return\"[object Generator]\"}),(ee=function(){return{w:a,m:p}})()}function te(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}te=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){te(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},te(e,t,n,r)}function ne(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oe=function(e){var t,n,r=e.User,o=e.baseurl,a=e.triggerShowLoader,i=e.triggerToastMsg,s=(t=(0,l.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return re(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),u=s[0],c=s[1];(0,l.useEffect)(function(){d()},[]);var d=function(){var e={moduleName:Z.Rk.DEMO_TRACKING,keys:[Z.Rk.DEMO_TRACKING_CONFIGURATION_KEY],apiName:Z.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS};(0,J.j)((0,j.rZ)(r,o),a,e).then(function(e){var t;\"true\"===(null===(t=(0,j.Ws)(Z.Rk.DEMO_TRACKING_CONFIGURATION_KEY,e))||void 0===t?void 0:t.value)&&c(!0)}).catch(function(e){})},p=function(){var e,t=(e=ee().m(function e(t){var n;return ee().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null==t||!t.is_distributor_mapped||!u){e.n=6;break}return a(!0),e.p=1,e.n=2,q(r,o,a,{distributor_uuid:t.distributor_uuid,hq_id:t.selectedTmHQ});case 2:if(!1!==e.v){e.n=3;break}return e.a(2,!0);case 3:return e.a(2,!1);case 4:return e.p=4,n=e.v,i({message:null==n?void 0:n.message,type:\"error\"}),e.a(2,!1);case 5:return e.p=5,a(!1),e.f(5);case 6:return e.a(2,!0)}},e,null,[[1,4,5,6]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){ne(a,r,o,i,l,\"next\",e)}function l(e){ne(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}();return{checkIsDistributorDemoMapped:p,isDemoTrackingEnable:u}};function ae(e){return ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ae(e)}function ie(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return le(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(le(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,le(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,le(d,\"constructor\",u),le(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",le(u,o,\"GeneratorFunction\"),le(d),le(d,o,\"Generator\"),le(d,r,function(){return this}),le(d,\"toString\",function(){return\"[object Generator]\"}),(ie=function(){return{w:a,m:p}})()}function le(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}le=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){le(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},le(e,t,n,r)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ae(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ae(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||fe(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function fe(e,t){if(e){if(\"string\"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const he=function(e){var t,n=e.openDialog,i=e.getDistributorsCount,d=e.setOpenDialog,p=e.tmHQData,h=X(),m=(0,l.useContext)(f.v),y=m.BackOfficeProps,E=y.globalStore.User,b=y.baseurl,C=m.triggerShowLoader,w=m.triggerToastMsg,S=(0,u.Bd)().t,T=oe({User:E,baseurl:b,triggerShowLoader:C,triggerToastMsg:w}).checkIsDistributorDemoMapped,O=[].concat(function(e){if(Array.isArray(e))return ge(e)}(t=c.HA)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||fe(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(),[{headerName:\"Action\",field:\"edit\",cellRenderer:\"EditActionComponent\",width:100}]),D=pe((0,l.useState)({pageNo:0,pageSize:10}),2),R=D[0],N=D[1],L=pe((0,l.useState)(0),2),B=L[0],H=L[1],U=pe((0,l.useState)(\"\"),2),Y=U[0],z=U[1],V=pe((0,l.useState)([]),2),q=V[0],W=V[1],Q=(0,l.useRef)(null),K=(0,l.useRef)(null),$=function(){var e,t=(e=ie().m(function e(t){var n;return ie().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,T(ue(ue({},t),{},{selectedTmHQ:Y.value}));case 1:if(e.v){e.n=2;break}return e.a(2);case 2:K.current&&(n=_.cloneDeep(Q.current)).length>0&&(n.forEach(function(e){e.distributor_code===t.distributor_code&&(e.is_distributor_mapped=!e.is_distributor_mapped)}),W(n));case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){de(a,r,o,i,l,\"next\",e)}function l(e){de(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),J=function(){i(),d(!1)};return(0,l.useEffect)(function(){Q.current=q},[q]),(0,l.useEffect)(function(){K.current=Y},[Y]),s().createElement(r.A,null,s().createElement(x.A,{isVisible:n},s().createElement(r.A,{className:h.customModal},s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"space-between\",p:2,className:\"modal-header\",m:1},s().createElement(a.A,{variant:\"h2\",fontSize:18},\"\".concat(S(\"SELECT_DISTRIBUTORS\"))),s().createElement(r.A,null,s().createElement(a.A,{\"data-testid\":\"closeIcon\",className:\"icon-close closeIcon\",onClick:function(){return d(!1)}}))),s().createElement(r.A,{className:\"modal-body\"},s().createElement(o.A,{direction:\"row\",justifyContent:\"space-between\",alignItems:\"center\",mb:2},s().createElement(a.A,{variant:\"h5\"},\"\".concat(S(\"LIST_AVAILABLE_DISTRIBUTORS\"))),s().createElement(r.A,{position:\"relative\",width:\"240px\"},s().createElement(A.A,{name:\"tmHq\",onChange:function(e,t){var n,r;z(t),n=t.value,r={pageNo:R.pageNo,pageSize:R.pageSize},function(e,t,n,r,o){var a=G(e,t,n,{apiName:\"getDistributorsListAPI\",payload:r,selectedHQ:o});return new Promise(function(e,t){(0,F.uB)(a,I.dF.GET).then(function(t){if((0,j.mN)(t))return e(t);throw new Error((0,j.Tl)(\"NO_DISTRIBUTORS\"))}).catch(function(e){return t(e)})})}(E,b,C,r,n).then(function(e){e&&(W(e.data),H(e.totalPageCount))}).catch(function(e){})},options:p,labelKey:\"label\",value:Y,defaultLabel:S(\"SELECT_TM_HQ\")}))),s().createElement(r.A,{className:\"modal-table-wrapper\"},s().createElement(P,{rows:q,columnDefs:O,frameworkComponents:{EditActionComponent:function(e){var t=e.column,n=e.data;if(\"edit\"==(null==t?void 0:t.colId))return s().createElement(M.A,{key:n.key,isChecked:n.is_distributor_mapped,value:n.is_distributor_mapped,onCheckboxChange:function(){return $(n)},disabled:!K.current})}},noDataTemplate:\"\".concat(S(Y?\"NO_DATA\":\"PLEASE_SELECT_TM_HQ\"))}),s().createElement(g.A,{totalPageCount:B,totalElements:B,pageNo:R.pageNo,onPageChange:function(e){N(function(t){return ue(ue({},t),{},{pageNo:Number(e)})})}})),s().createElement(o.A,{direction:\"row\",justifyContent:\"end\",mt:1},s().createElement(v.A,{variant:\"contained\",buttonName:S(\"SAVE\"),fullwidth:!1,onButtonClick:function(){var e;!function(e,t,n,r,o,a,i){var l,s=[];e.length&&e.map(function(e){e.is_distributor_mapped&&s.push(e.distributor_uuid)}),s.length?null===(l=function(e,t,n,r,o){var a=G(e,t,n,{apiName:\"saveDistributors\",distributor_uuids:r,hqID:o});return new Promise(function(e,t){var n;null===(n=k.N.put(a))||void 0===n||n.then(function(t){if(!(0,j.mN)(t))throw new Error(t.data.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})}(n,r,o,s,a))||void 0===l||l.then(function(e){i(),t({message:(0,j.Tl)(\"DISTRIBUTORS_SAVED\"),type:\"success\"})}).catch(function(e){t({message:e,type:\"error\"})}):t({message:(0,j.Tl)(\"SELECT_ONE_DISTRIBUTOR\"),type:\"error\"})}(q,w,E,b,C,null===(e=K.current)||void 0===e?void 0:e.value,J)},disabled:!Y,color:\"primary\"}))))))};function me(e){return me=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},me(e)}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach(function(t){ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=me(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=me(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==me(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||_e(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||_e(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function _e(e,t){if(e){if(\"string\"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const we=function(e){e.RBACControls;var t=(0,l.useContext)(f.v),n=t.BackOfficeProps,E=n.globalStore.User,b=n.baseurl,_=t.triggerShowLoader,C=t.triggerToastMsg,w=(0,u.Bd)().t,S=be((0,l.useState)({pageNo:0,pageSize:10}),2),T=S[0],O=S[1],D=be((0,l.useState)(0),2),R=D[0],N=D[1],L=be((0,l.useState)(0),2),P=L[0],M=L[1],x=be((0,l.useState)([]),2),I=x[0],B=x[1],F=be((0,l.useState)(\"\"),2),H=F[0],U=F[1],Y=be((0,l.useState)(!1),2),q=Y[0],W=Y[1],Q=be((0,l.useState)([]),2),K=Q[0],X=Q[1],J=be((0,l.useState)([]),2),Z=J[0],ee=J[1],te=be((0,l.useState)([]),2),ne=te[0],re=te[1],oe=be((0,l.useState)({}),2),ae=oe[0],ie=oe[1],le=be((0,l.useState)(!0),2),se=le[0],ue=le[1],ce=[{field:\"headQuarterData.buId\",operator:\"EQUALS\",value:E.selectedBusinessUnit.bu_id}],de=function(){var e=null==I?void 0:I.map(function(e){return null==e?void 0:e.value});z(E,b,_,{hq_ids:null!=H&&H.value?[null==H?void 0:H.value]:e},\"distributorCount\").then(function(e){e&&ie(e)}).catch(function(e){C({message:e,type:\"error\"})})};(0,l.useEffect)(function(){Promise.all([V(E,b,_,\"\"),V(E,b,_,\"distributorConfig\")]).then(function(e){var t=be(e,2),n=t[0],r=t[1];if(n&&r&&(null==r?void 0:r.length)>0){var o=n.sales_hierarchy_id===Number(r[0].value);ue(o)}}).catch(function(e){})},[]),(0,l.useEffect)(function(){var e;e={filter:[].concat(ce,Ee(Z),Ee(ne)),pageNo:T.pageNo,pageSize:T.pageSize},function(e,t,n,r){var o=G(e,t,n,{apiName:\"fetchDistributorsData\",payload:r});return new Promise(function(e,t){var n;null===(n=k.N.post(o))||void 0===n||n.then(function(t){if(!(0,j.mN)(t))throw new Error(t.data.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})}(E,b,_,e).then(function(e){null!=e&&e.data?(X(e.data),N(null==e?void 0:e.totalPageCount),M(null==e?void 0:e.totalElements)):(X([]),M(0))}).catch(function(e){C({message:e,type:\"error\"})})},[q,Z,ne,T]),(0,l.useEffect)(function(){null!=I&&I.length&&de()},[H,I]),(0,l.useEffect)(function(){var e,t;pe(),t={targetForId:null==E||null===(e=E.selectedBusinessUnit)||void 0===e||null===(e=e.userRoleControls)||void 0===e?void 0:e.roleId,parent_levels:0},z(E,b,_,t,\"\").then(function(e){if(e){var t,n=function(e){return e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id}}).sort(function(e,t){return e.label.localeCompare(t.label)})}(e),r=null!==(t=null==n?void 0:n.map(function(e){return null==e?void 0:e.value}))&&void 0!==t?t:[];null!=r&&r.length&&re([{field:\"headQuarterData.id\",operator:\"IN\",values:Ee(r)}]),B(n)}}).catch(function(e){C({message:e,type:\"error\"})})},[]);var pe=function(){O({pageNo:0,pageSize:Number(10)})};return s().createElement($,null,s().createElement(r.A,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(r.A,null,s().createElement(m.A,{routePathName:[{name:d.F_.My_Distributors,path:d.fp.My_Distributors}]})))),s().createElement(s().Fragment,null,s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",gap:2},s().createElement(r.A,{mt:2,className:\"menu-bar-input-filed\"},s().createElement(y.A,{onSearchValueChange:function(e){ee([{field:\"search\",operator:\"LIKE\",value:e}]),pe()},placeholderText:w(\"SEARCH\"),searchValue:\"searchValue\",searchBasedOn:w(\"DISTRIBUTORS_SEARCH\")})),s().createElement(r.A,{width:230,mt:2,className:\"menu-bar-input-filed\"},s().createElement(A.A,{name:\"tmHq\",onChange:function(e,t){U(t),re([{field:\"headQuarterData.id\",operator:\"IN\",values:[null==t?void 0:t.value]}]),pe()},options:I,labelKey:\"label\",value:H,defaultLabel:w(\"SELECT_TM_HQ\")}))),!se&&s().createElement(o.A,{flexDirection:\"row\",justifyContent:\"end\",gap:2,alignItems:\"center\"},s().createElement(r.A,{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\"},s().createElement(a.A,{color:p.w.palette.primary.main,letterSpacing:1,fontSize:16,fontWeight:600},\"\".concat(w(\"DISTRIBUTORS_MAPPED\"))),s().createElement(a.A,{color:p.w.palette.primary.main,fontWeight:600,fontSize:16,letterSpacing:1,ml:1},null==ae?void 0:ae.myDistributorCount,\"/\",null==ae?void 0:ae.totalDistributorsCount)),s().createElement(v.A,{buttonName:w(\"SELECT_DISTRIBUTORS\"),variant:\"contained\",fullwidth:!1,color:\"primary\",onButtonClick:function(){W(!0)}}))),q&&s().createElement(he,{getDistributorsCount:de,openDialog:q,setOpenDialog:W,tmHQData:I}),s().createElement(i.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(h.A,{rows:K,columnDefs:c.HA,noDataTemplate:\"\".concat(w(\"NO_DATA\"))})),s().createElement(g.A,{totalPageCount:Math.ceil(R),totalElements:P,pageSize:T.pageSize,pageNo:T.pageNo,onPageChange:function(e){O(function(t){return Ae(Ae({},t),{},{pageNo:Number(e)})})}})))}},92744:(e,t,n)=>{\"use strict\";var r=n(79039);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},92782:(e,t,n)=>{\"use strict\";n.d(t,{Kq:()=>f,Ol:()=>g,Rc:()=>d,mi:()=>u,mq:()=>m,pP:()=>c,q4:()=>p,yW:()=>h}),n(52675),n(28706),n(25276),n(48598),n(62062),n(26099),n(3362),n(27495),n(25440);var r=n(96790),o=n(95692),a=n(8085),i=n(34358),l=n(13075),s=[\"hq_ids\",\"user_ids\"],u=function(e,t,n,o){var a,s,u=o.resolve,c=o.reject;e.customHeaders={\"country-code\":\"\".concat(null==t||null===(a=t.selectedCountry)||void 0===a?void 0:a.countryCode),\"bu-id\":\"\".concat(null==t||null===(s=t.selectedBusinessUnit)||void 0===s?void 0:s.bu_id),Authorization:\"Bearer \".concat(null==t?void 0:t.AccessToken)},(0,i.uB)(e,r.dF.GET).then(function(e){if((0,l.mN)(e))return console.log(\"User\",e),u(e.data);throw new Error(n)}).catch(function(e){return c(e)})},c=function(e,t){var n,r=t.resolve,a=t.reject;null===(n=o.N.get(e))||void 0===n||n.then(function(e){var t;if(!(0,l.mN)(e))throw new Error(e.error);if(null!=e&&e.data||null!=e&&null!==(t=e.data)&&void 0!==t&&t.data)return r(null==e?void 0:e.data)}).catch(function(e){return a(new Error(e))})},d=function(e,t){var n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},c={};return c.domain=s,c.endPoint=a.p.GET_SALES_HIERARCHYID_ID.replace(\"__BUID__\",\"\".concat(t)),c.triggerLoader=u,c.customHeaders={\"country-code\":\"\".concat(null==e||null===(n=e.selectedCountry)||void 0===n?void 0:n.countryCode),\"bu-id\":\"\".concat(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.bu_id),Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},new Promise(function(e,t){(0,i.uB)(c,r.dF.GET).then(function(t){if((0,l.mN)(t))return e(t.data);throw new Error((0,l.Tl)(\"NO_BRANDS_AVAILABLE\"))}).catch(function(e){return t(e)})})},p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o={};return o.domain=n,o.endPoint=a.p.GET_LIQUIDATION_TAB_VALUES,o.payLoad={salesHierarchyId:t,parent_levels:1},o.triggerLoader=r,new Promise(function(t,n){u(o,e,(0,l.Tl)(\"DATA_NOT_AVAILABLE\"),{resolve:t,reject:n})})},f=function(e,t,n,r){var o,i={};return i.domain=t,i.endPoint=a.p.GET_HQ_FILTER_OPTIONS.replace(\"hqHierarchyId\",\"\".concat(r)),i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,new Promise(function(e,t){c(i,{resolve:e,reject:t})})},g=function(e,t,n,r){var o,i,l={};return l.domain=t,l.payLoad={targetForId:r},l.endPoint=a.p.GET_HQ_CHILD_FILTER_OPTIONS,l.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"user-id\":null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,new Promise(function(e,t){c(l,{resolve:e,reject:t})})},h=function(e,t,n,r){var o,i,l=r.hq_ids,u=r.user_ids,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,s),p={};p.domain=t,p.payLoad=d;var f=l?l.map(function(e){return\"hq_ids=\".concat(e)}).join(\"&\"):\"\",g=u?u.map(function(e){return\"user_ids=\".concat(e)}).join(\"&\"):\"\";return p.endPoint=\"\".concat(a.p.GET_HQ_HISTORY).concat(f||g?\"?\":\"\").concat(f).concat(f&&g?\"&\":\"\").concat(g),p.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id,\" \"),\"user-id\":null==e||null===(i=e.UserDetails)||void 0===i?void 0:i.user_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},p.triggerLoader=n,new Promise(function(e,t){c(p,{resolve:e,reject:t})})},m=function(e,t,n){var r,o,i={};return i.domain=t,i.endPoint=a.p.GET_MASTER_HQ_DATA_CHILDS,i.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id),\"user-id\":null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.triggerLoader=n,new Promise(function(e,t){c(i,{resolve:e,reject:t})})}},92796:(e,t,n)=>{\"use strict\";var r=n(79039),o=n(94901),a=/#|\\.prototype\\./,i=function(e,t){var n=s[l(e)];return n===c||n!==u&&(o(t)?r(t):!!t)},l=i.normalize=function(e){return String(e).replace(a,\".\").toLowerCase()},s=i.data={},u=i.NATIVE=\"N\",c=i.POLYFILL=\"P\";e.exports=i},92901:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>a});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}},92981:e=>{function t(e,t){var n=e.length,r=new Array(n),o={},a=n,i=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),l=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!l.has(e[0])||!l.has(e[1]))throw new Error(\"Unknown node. There is an unknown node in the supplied edges.\")});a--;)o[a]||s(e[a],a,new Set);return r;function s(e,t,a){if(a.has(e)){var u;try{u=\", node was:\"+JSON.stringify(e)}catch(e){u=\"\"}throw new Error(\"Cyclic dependency\"+u)}if(!l.has(e))throw new Error(\"Found unknown node. Make sure to provided all involved nodes. Unknown node: \"+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=i.get(e)||new Set;if(t=(c=Array.from(c)).length){a.add(e);do{var d=c[--t];s(d,l.get(d),a)}while(t);a.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},93108:e=>{var t=0,n=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++t+n).toString(36))}},93146:(e,t,n)=>{for(var r=n(13491),o=\"undefined\"==typeof window?n.g:window,a=[\"moz\",\"webkit\"],i=\"AnimationFrame\",l=o[\"request\"+i],s=o[\"cancel\"+i]||o[\"cancelRequest\"+i],u=0;!l&&u<a.length;u++)l=o[a[u]+\"Request\"+i],s=o[a[u]+\"Cancel\"+i]||o[a[u]+\"CancelRequest\"+i];if(!l||!s){var c=0,d=0,p=[],f=1e3/60;l=function(e){if(0===p.length){var t=r(),n=Math.max(0,f-(t-c));c=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}},93148:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>mt}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(5746),n(23500),n(62953),n(48408);var r=n(90815),o=n(28161),a=n(81970),i=n.n(a),l=n(47767),s=n(99478),u=n(96348),c=n(78208),d=n(47225),p=n(13075),f=n(92416),g=n(46374),h=n(7318),m=n(56203),v=(n(25440),n(14073)),A=n(88084),y=n(34195),E=n(8085),b=n(27305),_=n(15664),C=n(28152),w=n(10917),S=(n(3362),n(95692)),T=n(15941),O=function(){return T.Ik().shape({frequency:T.ai().required().moreThan(0,(0,p.Tl)(\"FREQUENCY_SHOULD_NOT_BE_ZERO\")).lessThan(1e3,(0,p.Tl)(\"FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS\"))})},D=(0,n(11848).Ay)(o.A)(function(e){var t=e.theme;return{padding:\"16px\",marginTop:\"10px\",backgroundColor:t.palette.secondary.main,\"& .editmode\":{\"& .MuiInputBase-root, .text-filed\":{backgroundColor:t.palette.secondary.main,maxWidth:\"240px\",transition:\"all 0.2s ease-in-out\"},\"& .inputFieldSync\":{fontWeight:\"400\",fontSize:\"14px\",fontFamily:\"NotoSans-Regular\",color:\"rgb(20, 21, 28)\",lineHeight:\"1.4375em\",boxSizing:\"border-box\",cursor:\"text\",display:\"inline-flex\",alignItems:\"center\",position:\"relative\",borderRadius:\" 4px\",width:\"145px\",padding:\"10px\",border:\"1px solid rgb(194, 199, 208)\",height:\"40px\"},\"& .auto-sync-frequency\":{display:\"flex\",alignItems:\"center\",gap:\"16px\",marginTop:\"20px\"},\"& .autoTypography\":{fontFamily:\"NotoSans-Regular\",lineHeight:\"24px\",fontSize:\"16px\",fontWeight:\"500\",color:\"#000000\"},\"& .MuiFormControlLabel-label\":{margin:0,fontWeight:\"500\",fontSize:\"16px\",fontFamily:\"NotoSans-Regular\",color:\"#232630\",lineHeight:\"24px\"},\"& .MuiSwitch-root\":{width:\"45px\",height:\"24px\",padding:0},\"& .MuiButtonBase-root\":{margin:\"3px\"},\"& .MuiButtonBase-root.MuiSwitch-switchBase\":{\"& .MuiSwitch-thumb\":{height:\"18px\",width:\"18px\"}},\"&.MuiSwitch-thumb\":{height:\"18px\",width:\"18px\"},\"& .MuiFormGroup-root\":{\"& .MuiFormControlLabel-root\":{justifyContent:\"flex-start\",gap:\"20px\",margin:\"0px\",width:\"fit-content\"}}}}});function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const N=function(e){var t,n,s,c,f=e.RBACControls,g=(0,l.Zp)(),h=(0,y.Bd)().t,m=(0,b.w)(f),T=m.hasCreateAccess,N=m.hasUpdateAccess,L=(0,a.useContext)(d.v),P=L.BackOfficeProps,M=P.globalStore.User,x=P.baseurl,I=L.triggerShowLoader,k=L.triggerToastMsg,B=null===(t=M.selectedCountry)||void 0===t?void 0:t.countryCode,F=x,j=null!==(n=null==M?void 0:M.AccessToken)&&void 0!==n?n:\"\",H=null==M?void 0:M.selectedBusinessUnit,U=(s=(0,a.useState)({autosync:\"\",frequency:\"\"}),c=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(s,c)||function(e,t){if(e){if(\"string\"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(s,c)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),Y=U[0],G=U[1];(0,a.useEffect)(function(){z()},[]);var z=function(){var e,t,n={},r=E.p.GET_AUTO_SYNC_DATA.replace(\"__BU_ID__\",\"\".concat(null==H?void 0:H.bu_id));return n.domain=F,n.endPoint=r,n.customHeaders={\"country-code\":B,Authorization:\"Bearer \".concat(j)},n.triggerLoader=I,null===(t=n,e=new Promise(function(e,n){var r;null===(r=S.N.get(t))||void 0===r||r.then(function(t){if((0,p.mN)(t))return e(t)}).catch(function(e){return n(new Error(e))})}))||void 0===e?void 0:e.then(function(e){null!=e&&e.data&&G({autosync:null==e?void 0:e.data.isAutoSyncEnabled,frequency:null==e?void 0:e.data.autoSyncTimeInMins})}).catch(function(e){console.log(\"fetch user roles\",e)})},V=function(){g(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))};return i().createElement(D,null,i().createElement(A.l1,{initialValues:Y,validationSchema:O,enableReinitialize:!0,onSubmit:function(e){!function(e){var t,n,r={},o=E.p.UPDATE_AUTO_SYNC_DATA.replace(\"__BU_ID__\",\"\".concat(null==H?void 0:H.bu_id));r.domain=F,r.endPoint=o,r.customHeaders={\"country-code\":B,Authorization:\"Bearer \".concat(j)},r.payLoad={is_auto_sync_enabled:e.autosync,auto_sync_time_in_mins:e.frequency},r.triggerLoader=I,null===(n=r,t=new Promise(function(e,t){var r;null===(r=S.N.put(n))||void 0===r||r.then(function(t){var n,r;if((0,p.mN)(t))return e(t);throw new Error(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)&&void 0!==n?n:(0,p.Tl)(\"FAILED_UPDATE\"))}).catch(function(e){return t(new Error(e.message))})}))||void 0===t||t.then(function(e){e&&k({message:e.data,type:\"success\"})}).catch(function(e){k({message:e,type:\"error\"})})}(e)}},function(e){var t=e.values,n=e.setFieldValue;return i().createElement(A.lV,{className:\"popupContent\",onKeyDown:function(e){return\"Enter\"===e.key&&e.preventDefault()}},i().createElement(o.A,{className:\"editmode\",height:\"inherit\",overflow:\"auto\"},i().createElement(r.A,{direction:\"row\",alignItems:\"flex-start\",gap:2,padding:\"10px\"},i().createElement(o.A,{className:\"auto-switch-component\"},i().createElement(w.A,{isChecked:t.autosync,handleChange:function(e){n(\"autosync\",e)},value:t.autosync,label:\"Auto Sync\",labelPlacement:\"start\"}),i().createElement(C.A,{errName:\"autosync\"}))),t.autosync&&i().createElement(r.A,{display:\"flex\",direction:\"row\",alignItems:\"flex-start\",padding:\"10px\"},i().createElement(o.A,{className:\"auto-sync-frequency\"},i().createElement(v.A,{variant:\"subtitle2\",className:\"autoTypography\"},\"\".concat(h(\"FREQUENCY_MINUTES\"))),i().createElement(A.D0,{name:\"frequency\",className:\"inputFieldSync\",type:\"number\",onChange:function(e){n(\"frequency\",e.target.value)},placeholder:\"\".concat(h(\"AUTO_SYNC_PLACEHOLDER\")),defaultValue:null==t?void 0:t.frequency}),i().createElement(C.A,{errName:\"frequency\"})))),i().createElement(r.A,{direction:\"row\",gap:2,justifyContent:\"end\"},i().createElement(_.A,{variant:\"outlined\",buttonName:h(\"CANCEL\"),onButtonClick:V,fullwidth:!1,color:\"secondary\"}),i().createElement(_.A,{variant:\"contained\",buttonName:h(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!T&&!N})))}))};n(60739),n(5506);var L={add_event_days:0,view_event_days:0,manage_event_days:0,create_event_target_days:0,manage_event_target_days:0,view_event_history_months:0,location_capture_time_in_minutes:0,location_capture_start_time_in_minutes:0,location_capture_end_time_in_minutes:0},P=n(32755),M=n(9483),x=n(39118),I=n(25239),k=n(60538),B=n(71543),F=n(17630),j=n(10901),H=n(64121),U=n(19021),Y=n(74347),G=/^(0|[1-9]|1[0-2])?$/,z=/^(0|[1-9]|[1-2]\\d?|3[01]?)?$/,V=function(e){var t=e.userRolesList,n=e.userRole,a=e.setUserRole,s=e.initialForm,c=e.showEvents,d=e.onFormSubmit,p=e.hasCreateAccess,f=e.hasUpdateAccess,g=e.incrementByOne,m=e.isEventEnabled,E=e.setIsEventEnabled,b=e.isImageUploadEnabled,C=e.setIsImageUploadEnabled,w=(0,h.I)(),S=(0,l.Zp)(),T=(0,y.Bd)().t,O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:z;return{toolTipLabel:T(e),label:T(t),fieldName:n,regex:r}},D=[O(\"NOOF_DAYS_UPLOAD_CURRENT_MONTH\",\"UPLOAD_EVENT_TARGET_DAYS\",\"create_event_target_days\"),O(\"NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH\",\"MANAGE_EVENT_TARGET\",\"manage_event_target_days\"),O(\"NOOF_PREVIOUS_DAYS_CREATE_EVENT\",\"ADD_EVENT_DAYS\",\"add_event_days\"),O(\"NOOF_PREVIOUS_DAYS_UPDATE_EVENT\",\"MANAGE_EVENT_DAYS\",\"manage_event_days\"),O(\"NOOF_PREVIOUS_DAYS\",\"VIEW_EVENT_DAYS\",\"view_event_days\"),O(\"NOOF_PREVIOUS_MONTHS\",\"VIEW_EVENT_HISTORY\",\"view_event_history_months\",G)],R=function(e,t,n,a,l,s){return i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",gap:4,mb:2},function(e,t){return i().createElement(Y.A,{arrow:!0,placement:\"top-start\",toolTipValue:null!=e?e:\"\"},i().createElement(v.A,{fontSize:16,fontWeight:500,color:F.T.primaryBlack},t))}(e,t),function(e,t,n,a){return i().createElement(o.A,{className:\"config-input-wrapper\"},i().createElement(U.A,{label:\"\",onHandleChange:function(t){return a.test(t)&&e(n,t)},value:t[n],InputProps:{endAdornment:i().createElement(I.A,{position:\"end\",disablePointerEvents:!p&&!f},i().createElement(r.A,{alignItems:\"center\",className:\"input-adornment-wrapper\"},i().createElement(x.A,{\"data-testid\":\"arrowUpIcon\",onClick:function(){var r=g(t[n]);a.test(\"\".concat(r))&&e(n,r)}}),i().createElement(M.A,{\"data-testid\":\"arrowDownIcon\",onClick:function(){var r=t[n]-1;a.test(\"\".concat(r))&&e(n,r)}})))},disabled:!p&&!f}))}(n,a,l,s))};return i().createElement(o.A,{className:\"tab-content-wrapper\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},i().createElement(o.A,{mb:1,width:\"25%\"},i().createElement(v.A,{variant:\"subtitle2\"},\"\".concat(T(\"USER_ROLE_DROPDOWN_LABEL\"))),i().createElement(H.A,{name:\"userRole\",onChange:function(e,t){a(t)},options:t,labelKey:\"label\",label:\"UserRole\",selectedOption:n,value:n,defaultLabel:\"Select Role\"}))),!c&&i().createElement(A.l1,{initialValues:s,enableReinitialize:!0,onSubmit:function(e,t){return d(e)}},function(e){var t,n,a=e.values,l=e.setFieldValue;return i().createElement(A.lV,{\"aria-label\":\"form\"},i().createElement(k.A,{elevation:1,className:w.EventDetails},i().createElement(v.A,{variant:\"h4\",fontSize:12,mb:2,fontWeight:500},\"\".concat(T(\"CONFIGURATIONS\"))),i().createElement(r.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"flex-start\",gap:3},i().createElement(o.A,{className:\"smart-agro-lite-box-conatiner\"},null==D||null===(t=D.slice(0,-1))||void 0===t?void 0:t.map(function(e){return R(e.toolTipLabel,e.label,l,a,e.fieldName,e.regex)})),i().createElement(o.A,{className:\"divider-wrapper\"},i().createElement(B.A,{orientation:\"vertical\",variant:\"middle\",textAlign:\"center\"})),i().createElement(o.A,{className:\"smart-agro-lite-box-conatiner\",width:\"50%\"},null==D||null===(n=D.slice(-1))||void 0===n?void 0:n.map(function(e){return R(e.toolTipLabel,e.label,l,a,e.fieldName,e.regex)})))),i().createElement(o.A,null,i().createElement(j.A,{label:T(\"ENABLE_EVENTS_BASELINING\"),isChecked:!1,value:\"\",disabled:!0}),i().createElement(j.A,{label:T(\"ENABLE_EVENTS\"),isChecked:m,value:m?\"checked\":\"unchecked\",onCheckboxChange:function(e){return E(\"unchecked\"===e)},disabled:!p&&!f}),i().createElement(j.A,{label:T(\"ENABLE_IMAGE_UPLOAD\"),isChecked:b,value:b?\"checked\":\"unchecked\",onCheckboxChange:function(e){return C(\"unchecked\"===e)},disabled:!p&&!f})),i().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlock\",justifyContent:\"end\"},i().createElement(_.A,{variant:\"outlined\",buttonName:T(\"CANCEL\"),onButtonClick:function(){return S(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))},fullwidth:!1,color:\"secondary\"}),i().createElement(_.A,{variant:\"contained\",buttonName:T(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:!p&&!f})))}))};function q(e){return q=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},q(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=q(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==q(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const J=function(e){var t,n,r,o=e.RBACControls,l=(0,b.w)(o),s=l.hasCreateAccess,u=l.hasUpdateAccess,c=(0,a.useContext)(d.v),p=c.BackOfficeProps,f=p.globalStore.User,g=p.baseurl,h=c.triggerShowLoader,m=c.triggerToastMsg,v=null===(t=f.selectedCountry)||void 0===t?void 0:t.countryCode,A=g,y=null==f||null===(n=f.UserDetails)||void 0===n?void 0:n.user_id,_=null!==(r=null==f?void 0:f.AccessToken)&&void 0!==r?r:\"\",C=null==f?void 0:f.selectedBusinessUnit,w=$((0,a.useState)([]),2),S=w[0],T=w[1],O=$((0,a.useState)(\"\"),2),D=O[0],R=O[1],N=$((0,a.useState)(!1),2),M=N[0],x=N[1],I=$((0,a.useState)(0),2),k=I[0],B=I[1],F=$((0,a.useState)(!1),2),j=F[0],H=F[1],U=$((0,a.useState)(!1),2),Y=U[0],G=U[1],z=$((0,a.useState)(!1),2),q=z[0],W=z[1],K=$((0,a.useState)({add_event_days:0,view_event_days:0,manage_event_days:0,create_event_target_days:0,manage_event_target_days:0,view_event_history_months:0,location_capture_time_in_minutes:0,location_capture_start_time_in_minutes:0,location_capture_end_time_in_minutes:0}),2),X=K[0],J=K[1];(0,a.useEffect)(function(){Z()},[]),(0,a.useEffect)(function(){ee()},[D]);var Z=function(){var e,t={};t.domain=A,t.endPoint=E.p.SAVESALEHIERARCHY,t.customHeaders={\"country-code\":v,Authorization:\"Bearer \".concat(_),\"bu-id\":null==C?void 0:C.bu_id},t.payLoad={page_size:50},t.triggerLoader=h,null===(e=(0,P.LJ)(t))||void 0===e||e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.sales_hierarchy_view_List.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.sales_hierarchy_view_List.map(function(e){return{id:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.name}});T(r),R(r[0])}else T([])}).catch(function(e){})},ee=function(){var e;if(null!=D&&D.id){W(!0);var t={};t.domain=A,t.endPoint=E.p.GET_EVENTCONFIG,t.customHeaders={\"country-code\":v,Authorization:\"Bearer \".concat(_)},t.payLoad={bu_id:null==C?void 0:C.bu_id,role_id:null==D?void 0:D.id},t.triggerLoader=h,null===(e=(0,P.LJ)(t))||void 0===e||e.then(function(e){var t,n,r,o,a;null!=e&&null!==(t=e.data)&&void 0!==t&&t.configuration?(x(!0),B(null==e||null===(n=e.data)||void 0===n?void 0:n.id),H(null==e||null===(r=e.data)||void 0===r?void 0:r.is_event_enabled),G(null==e||null===(o=e.data)||void 0===o?void 0:o.is_image_upload_enabled),Object.entries(null==e||null===(a=e.data)||void 0===a?void 0:a.configuration).forEach(function(e){var t=$(e,2),n=t[0],r=t[1],o=X;o[n]=r,J(Q({},o))}),W(!1)):(x(!1),J(Q({},L)),W(!1))}).catch(function(e){console.log(\"FETCH EVENTCONFIG\",e),W(!1)})}},te=function(e){var t,n=e,r={};return r.domain=A,r.endPoint=E.p.GET_EVENTCONFIG,r.customHeaders={\"country-code\":v,\"user-id\":y,Authorization:\"Bearer \".concat(_)},r.payLoad={bu_id:null==C?void 0:C.bu_id,sales_hierarchy_id:null==D?void 0:D.id,is_event_enabled:j,is_image_upload_enabled:Y,configuration:{create_event_target_days:Number(n.create_event_target_days),manage_event_target_days:Number(n.manage_event_target_days),add_event_days:Number(n.add_event_days),view_event_history_months:Number(n.view_event_history_months),view_event_days:Number(n.view_event_days),manage_event_days:Number(n.manage_event_days),location_capture_time_in_minutes:Number(n.location_capture_time_in_minutes),location_capture_start_time_in_minutes:Number(n.location_capture_start_time_in_minutes),location_capture_end_time_in_minutes:Number(n.location_capture_end_time_in_minutes)}},r.triggerLoader=h,null===(t=(0,P.Eg)(r))||void 0===t?void 0:t.then(function(e){var t,n;if(201===e.status||200===e.status)return ee(),void m({message:e.data,type:\"success\"});throw m({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){console.log(\"OnSubmit\",e)})},ne=function(e){var t,n=e,r={};return r.domain=A,r.endPoint=E.p.UPDATE_EVENTCONFIG.replace(\"__ID__\",\"\".concat(k)),r.customHeaders={\"country-code\":v,\"user-id\":y,Authorization:\"Bearer \".concat(_)},r.payLoad={is_event_enabled:j,is_image_upload_enabled:Y,configuration:{create_event_target_days:Number(n.create_event_target_days),manage_event_target_days:Number(n.manage_event_target_days),add_event_days:Number(n.add_event_days),view_event_history_months:Number(n.view_event_history_months),view_event_days:Number(n.view_event_days),manage_event_days:Number(n.manage_event_days),location_capture_time_in_minutes:Number(n.location_capture_time_in_minutes),location_capture_start_time_in_minutes:Number(n.location_capture_start_time_in_minutes),location_capture_end_time_in_minutes:Number(n.location_capture_end_time_in_minutes)}},r.triggerLoader=h,null===(t=(0,P.s4)(r))||void 0===t?void 0:t.then(function(e){var t,n;if(201===e.status||200===e.status)return ee(),void m({message:e.data,type:\"success\"});throw m({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"}),new Error(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)}).catch(function(e){console.log(\"OnSubmit\",e)})};return i().createElement(V,{userRolesList:S,userRole:D,setUserRole:R,initialForm:X,showEvents:q,onFormSubmit:function(e){if(JSON.stringify(L)===JSON.stringify(e)){if(!confirm(\"Are you sure you want to change all configurations to 0\"))return;M?ne(e):te(e)}else M?ne(e):te(e)},hasCreateAccess:s,hasUpdateAccess:u,incrementByOne:function(e){return\"number\"==typeof e?e+1:Number(e)+1},isEventEnabled:j,setIsEventEnabled:H,isImageUploadEnabled:Y,setIsImageUploadEnabled:G})};var Z=n(2543),ee=n.n(Z),te=n(15614),ne=(n(48598),n(16034),function(e){return e.EVENT_TARGET_ROLLOVER=\"event_targets_enable_auto_rollover\",e.EVENT_TARGET_BUDGET=\"event_targets_enable_budget\",e}({})),re=function(e){return e.EVENTS=\"EVENTS\",e}({}),oe=function(e,t,n,r){var o,a,i={};return i.domain=t,i.endPoint=E.p.SAVE_ATTENDANCE_TYPES,i.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},i.payLoad=r,i.triggerLoader=n,new Promise(function(e,t){var n;null===(n=S.N.post(i))||void 0===n||n.then(function(t){if((0,p.mN)(t))return e(t)}).catch(function(e){return t(new Error(e))})})};function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ie=function(e){e.RBACControls;var t,n,s=(0,a.useContext)(d.v),c=s.BackOfficeProps,f=c.globalStore.User,g=c.baseurl,h=s.triggerShowLoader,m=s.triggerToastMsg,A=(0,l.Zp)(),b=(0,te.I)(),C=(0,y.Bd)().t,w=(t=(0,a.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if(\"string\"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),S=w[0],T=w[1];return(0,a.useEffect)(function(){(function(e,t,n){var r,o={};return o.domain=t,o.endPoint=\"\".concat(E.p.SAVE_ATTENDANCE_TYPES,\"?\").concat(\"moduleName=\"+re.EVENTS,\"&\").concat(null==Object?void 0:Object.values(ne).map(function(e){return\"keys=\".concat(e)}).join(\"&\")),o.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},o.triggerLoader=n,(0,p.AT)(\"get\",o,!1)})(f,g,h).then(function(e){var t;if(!(e.data.length>0))throw new Error(null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage);var n=e.data.map(function(e){return{key:e.key,value:\"true\"===e.value,label:e.label}});T(n)}).catch(function(e){m({message:e.message,type:\"error\"})})},[]),i().createElement(o.A,{className:b.EventBaselineFields},i().createElement(k.A,{className:b.EventBaseline},i().createElement(o.A,{className:b.eventBaselineInputWrapper},i().createElement(v.A,{variant:\"h3\",fontSize:12,className:\"colored-header-label\"},C(\"FEATURES\"))),S.map(function(e){return i().createElement(j.A,{key:e.key,label:e.label,isChecked:e.value,value:e.value,onCheckboxChange:function(){return function(e){var t=ee().cloneDeep(S);t.forEach(function(t){t.key===e.key&&(t.value=!t.value)}),T(t)}(e)}})})),i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},i().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},i().createElement(_.A,{buttonName:C(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return A(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))}}),i().createElement(_.A,{buttonName:C(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){oe(f,g,h,S.map(function(e){return{key:e.key,value:e.value.toString(),marker_id:null}})).then(function(e){if(!(0,p.mN)(e))throw new Error(C(\"SAVE_EVENT_TARGET_FAILED\"));m({message:e.data,type:\"success\"})}).catch(function(e){m({message:null==e?void 0:e.message,type:\"error\"})})}}))))};function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ue=function(e){var t,n,s,c=e.RBACControls,f=(0,l.Zp)(),g=(0,y.Bd)().t,h=(0,b.w)(c),m=h.hasCreateAccess,A=h.hasUpdateAccess,C=(0,a.useContext)(d.v),w=C.BackOfficeProps,T=w.globalStore.User,O=w.baseurl,D=C.triggerShowLoader,R=C.triggerToastMsg,N=null===(t=T.selectedCountry)||void 0===t?void 0:t.countryCode,L=O,P=null==T||null===(n=T.UserDetails)||void 0===n?void 0:n.user_id,M=null!==(s=null==T?void 0:T.AccessToken)&&void 0!==s?s:\"\",x=null==T?void 0:T.selectedBusinessUnit,I=le((0,a.useState)([]),2),k=I[0],B=I[1],F=le((0,a.useState)(\"\"),2),j=F[0],U=F[1];(0,a.useEffect)(function(){Y()},[]);var Y=function(){var e,t,n={};return n.domain=L,n.endPoint=E.p.SAVESALEHIERARCHY,n.customHeaders={\"country-code\":N,Authorization:\"Bearer \".concat(M),\"bu-id\":null==x?void 0:x.bu_id},n.payLoad={page_size:10},n.triggerLoader=D,null===(t=n,e=new Promise(function(e,n){var r;null===(r=S.N.get(t))||void 0===r||r.then(function(t){var n,r;if((0,p.mN)(t))return e(t);throw new Error(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)&&void 0!==n?n:(0,p.Tl)(\"GET_SALES_HIERARCHY_FAILED\"))}).catch(function(e){return n(new Error(e))})}))||void 0===e?void 0:e.then(function(e){var t;if((null==e||null===(t=e.data)||void 0===t?void 0:t.sales_hierarchy_view_List.length)>0){var n,r=null==e||null===(n=e.data)||void 0===n?void 0:n.sales_hierarchy_view_List.map(function(e){return{id:e.id,label:null==e?void 0:e.code,value:null==e?void 0:e.code}});return B(r),G()}B([])}).catch(function(e){R({message:e,type:\"error\"})})},G=function(){var e,t,n={};return n.domain=L,n.endPoint=E.p.GET_SELECTED_SALES,n.customHeaders={\"country-code\":N,Authorization:\"Bearer \".concat(M),\"bu-id\":null==x?void 0:x.bu_id},n.payLoad={page_size:10},n.triggerLoader=D,null===(t=n,e=new Promise(function(e,n){var r;null===(r=S.N.get(t))||void 0===r||r.then(function(t){var n,r;if((0,p.mN)(t))return e(t);throw new Error(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)&&void 0!==n?n:(0,p.Tl)(\"GET_SALES_FAILED\"))}).catch(function(e){return n(new Error(e.message))})}))||void 0===e?void 0:e.then(function(e){if(Object.keys(null==e?void 0:e.data).length>0){var t=[null==e?void 0:e.data].map(function(e){return{id:e.id,label:null==e?void 0:e.code,value:null==e?void 0:e.code}});U(t[0])}}).catch(function(e){R({message:e,type:\"error\"})})};return i().createElement(o.A,{className:\"tab-content-wrapper\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},i().createElement(o.A,{mb:1,width:\"25%\"},i().createElement(v.A,{variant:\"subtitle2\"},g(\"SALES_HIERARCHY_DROPDOWN_LABEL\")),i().createElement(H.A,{name:\"salesHierarchy\",onChange:function(e,t){U(t)},options:k,labelKey:\"label\",label:\"SalesHierarchy\",selectedOption:j,value:j,defaultLabel:\"Select Sales Hierarchy\"}))),i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},i().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},i().createElement(_.A,{buttonName:g(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){f(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))}}),i().createElement(_.A,{buttonName:g(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){var e,t,n={};return n.domain=L,n.endPoint=E.p.GET_SELECTED_SALES,n.customHeaders={\"country-code\":N,\"user-id\":P,Authorization:\"Bearer \".concat(M),\"bu-id\":null==x?void 0:x.bu_id},n.payLoad={sales_hierarchy_id:null==j?void 0:j.id},n.triggerLoader=D,null===(t=n,e=new Promise(function(e,n){var r;null===(r=S.N.put(t))||void 0===r||r.then(function(t){var n,r;if((0,p.mN)(t))return e(t);throw new Error(null!==(n=null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage)&&void 0!==n?n:(0,p.Tl)(\"FAILED_UPDATE\"))}).catch(function(e){return n(new Error(e.message))})}))||void 0===e?void 0:e.then(function(e){e&&R({message:e.data,type:\"success\"})}).catch(function(e){R({message:e,type:\"error\"})})},type:\"submit\",disabled:!m&&!A}))))};n(94170),n(59904),n(40875),n(10287);var ce=n(29834),de=n(70380),pe=(n(25428),function(e){return T.YO().test(\"validator-custom-name\",function(t,n){var r=n.createError,o=n.path;return t&&null!=t&&t.length&&(0,de.ux)(null==t?void 0:t[1])?null==t||!t.length||!(0,de.dE)(t,\"DD-MMM-YYYY\")||r({path:o,message:\"End Date should be greater than Start Date\"}):r({path:o,message:e})})}),fe=function(e){return T.ai().transform(function(e,t){return\"\"===t?null:e}).nullable().required(e).typeError(\"Enter a valid number\").min(0,\"Negative values are not allowed\").test(\"finite-number\",\"Enter a valid number\",function(e){return null==e||Number.isFinite(e)})},ge=function(){return T.Ik().shape({startDate:(e=\"Start Date Required\",T.Yj().nullable().required(e).test(\"is-valid-date\",e,function(e){return!(!e||!(0,de.ux)(e)||!(0,de.ux)(e,\"DD-MMM\")&&!(0,de.ux)(e,\"DD-MMM-YYYY\"))})),endDate:pe(\"End Date Required\"),divisionGrowth:T.YO().of(T.Ik().shape({growthPercentage:fe(\"Growth % is Required\").max(100,\"Growth % must be 100 or less\"),minimumBgpValue:fe(\"Minimum BGP Value is Required\")}))});var e},he=n(76906),me=n(9378);function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be={display:\"grid\",gridTemplateColumns:{xs:\"repeat(2, minmax(0, 1fr))\",sm:\"repeat(3, minmax(0, 1fr))\"},columnGap:\"9px\",rowGap:\"6px\",alignItems:\"center\"};const _e=function(){var e=(0,A.j7)(),t=e.values,n=e.setFieldValue,r=e.handleBlur,a=e.touched,l=e.errors,s=t.divisionGrowth||[],u=Math.ceil(s.length/2),c=[{id:\"left\",divisions:s.slice(0,u)},{id:\"right\",divisions:s.slice(u)}];return i().createElement(o.A,{component:\"section\",\"aria-labelledby\":\"division-growth-heading\",sx:{border:\"1px solid #c5cbd7\",borderRadius:\"6px\",p:\"14px\",mt:\"24px\"}},i().createElement(o.A,{sx:{display:\"flex\",flexWrap:\"wrap\",alignItems:\"center\",gap:\"16px\",backgroundColor:\"#f6f2ff\",borderRadius:\"4px\",px:\"14px\",py:\"6px\",mb:\"14px\"}},i().createElement(v.A,{id:\"division-growth-heading\",sx:{fontSize:\"12px\",fontWeight:700,color:\"#454454\"}},\"Division Growth % (Vs last year)\"),i().createElement(o.A,{component:\"ul\",sx:{m:0,pl:\"12px\",color:\"#747c99\",fontSize:\"11px\",lineHeight:\"15px\"}},i().createElement(\"li\",null,\"Configure the minimum year-on-year BGP growth % required for retailers in this Division.\"),i().createElement(\"li\",null,\"The greater value between % Growth and Minimum BGP will apply.\"))),i().createElement(o.A,{sx:ye({display:\"grid\",gridTemplateColumns:{xs:\"minmax(0, 1fr)\",md:\"repeat(2, minmax(0, 1fr))\"},gap:\"18px\"},s.length>20&&{maxHeight:{xs:\"600px\",md:\"244px\"},overflowY:\"auto\",scrollbarWidth:\"thin\"})},c.map(function(e,t){return i().createElement(o.A,{key:e.id,sx:ye({minWidth:0},1===t&&{borderLeft:{md:\"1px solid #cdd2dc\"},pl:{md:\"16px\"}})},i().createElement(o.A,{sx:ye(ye({},be),{},{backgroundColor:\"#f3f4f6\",borderRadius:\"3px\",px:\"6px\",minHeight:\"25px\",color:\"#596078\",fontSize:\"11px\",mb:\"14px\"})},i().createElement(o.A,{component:\"span\",sx:{display:{xs:\"none\",sm:\"block\"}}},\"Division\"),i().createElement(\"span\",null,\"Growth %\"),i().createElement(\"span\",null,\"Minimum BGP Value\")),i().createElement(o.A,{sx:{display:\"grid\",gap:\"14px\"}},e.divisions.map(function(e,s){var c=t*u+s;return i().createElement(o.A,{key:e.divisionId,sx:be},i().createElement(v.A,{sx:{fontSize:\"15px\",overflowWrap:\"anywhere\",gridColumn:{xs:\"1 / -1\",sm:\"auto\"}}},e.divisionName),[\"growthPercentage\",\"minimumBgpValue\"].map(function(t){var s=\"divisionGrowth.\".concat(c,\".\").concat(t);return i().createElement(o.A,{key:t,sx:{minWidth:0}},i().createElement(me.A,{name:s,value:e[t],placeholder:\"growthPercentage\"===t?\"Enter %\":\"Enter Value\",variant:\"outlined\",size:\"small\",fullWidth:!0,onBlur:r,error:Boolean((0,A.O6)(a,s)&&(0,A.O6)(l,s)),onChange:function(e){var r=e.target.value;/^\\d*(\\.\\d{0,2})?$/.test(r)&&(\"growthPercentage\"!==t||\"\"===r||Number(r)<=100)&&n(s,r)},inputProps:{inputMode:\"decimal\",\"aria-label\":\"\".concat(e.divisionName,\" \").concat(\"growthPercentage\"===t?\"Growth %\":\"Minimum BGP Value\"),pattern:\"[0-9]*([.][0-9]{0,2})?\"},sx:{\"& .MuiOutlinedInput-root\":{height:\"34px\",borderRadius:\"3px\",fontSize:{xs:\"12px\",sm:\"14px\"}},\"& .MuiOutlinedInput-notchedOutline\":{borderColor:\"#c5cbd7\"},\"& input\":{px:{xs:\"6px\",sm:\"9px\"},py:\"5px\"},\"& input::placeholder\":{color:\"#747c99\",opacity:1}}}),(0,A.O6)(a,s)&&(0,A.O6)(l,s)&&i().createElement(C.A,{errName:s}))}))})))})))};function Ce(e){return Ce=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ce(e)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach(function(t){Te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Te(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ce(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ce(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oe=function(e){var t=e.initialForm,n=e.onSavePostConfigValues,a=e.configData,l=e.setConfigData,s=e.navigate,c=(0,te.I)(),d=(0,y.Bd)().t,p=de.Ax.minimumDateOfYear,f=de.Ax.maximumDateOfYear;return i().createElement(o.A,{className:c.EventBaselineFields},i().createElement(v.A,{variant:\"h3\",fontSize:16,color:F.w.palette.grey[900],p:1,m:1},\"Update Retailers Configuration\"),i().createElement(A.l1,{initialValues:t,enableReinitialize:!0,validationSchema:function(){return ge()},onSubmit:n},function(e){var t,g,h,m,y,E,b,w,S,T=e.values,O=e.setFieldValue;return e.resetForm,i().createElement(A.lV,null,i().createElement(k.A,{className:c.EventBaseline},a&&i().createElement(j.A,{key:a.parentSowCheck.key,label:a.parentSowCheck.label,isChecked:\"true\"===(null===(t=a.parentSowCheck.value)||void 0===t?void 0:t.toLowerCase()),value:a.parentSowCheck.isActive,onCheckboxChange:function(){var e,t=Se({},a.parentSowCheck),n=Se({},a.childSowCheck);t.value=\"true\"===(null===(e=t.value)||void 0===e?void 0:e.toLowerCase())?\"false\":\"true\",\"false\"===t.value&&(n.value=\"false\"),l(function(e){return Se(Se({},e),{},{parentSowCheck:t,childSowCheck:n})})}}),i().createElement(o.A,{pl:4},a&&i().createElement(j.A,{key:a.childSowCheck.key,label:a.childSowCheck.label,isChecked:\"true\"===(null===(g=a.childSowCheck.value)||void 0===g?void 0:g.toLowerCase()),value:a.childSowCheck.value,disabled:\"true\"!==(null===(h=a.parentSowCheck.value)||void 0===h?void 0:h.toLowerCase()),onCheckboxChange:function(){var e,t=Se({},a.childSowCheck);t.value=\"true\"===(null===(e=t.value)||void 0===e?void 0:e.toLowerCase())?\"false\":\"true\",l(function(e){return Se(Se({},e),{},{childSowCheck:t})})}})),a&&i().createElement(j.A,{key:a.retailerBgpCheck.key,label:a.retailerBgpCheck.label,isChecked:\"true\"===(null===(m=a.retailerBgpCheck.value)||void 0===m?void 0:m.toLowerCase()),value:a.retailerBgpCheck.isActive,onCheckboxChange:function(){var e;O(\"startDate\",\"\"),O(\"endDate\",[]);var t=Se({},a.retailerBgpCheck);t.value=\"true\"===(null===(e=t.value)||void 0===e?void 0:e.toLowerCase())?\"false\":\"true\",l(function(e){return Se(Se({},e),{},{retailerBgpCheck:t})})}}),i().createElement(o.A,{pl:4},i().createElement(r.A,{direction:\"row\",alignItems:\"start\",justifyContent:\"start\",mb:1,gap:2},i().createElement(o.A,null,i().createElement(v.A,{variant:\"body1\",fontWeight:700},d(\"START_DATE\")),i().createElement(he.A,{key:\"startDatePicker\",calenderType:[\"month\",\"day\"],value:T.startDate,handleChangeDatePicker:function(e){var t;\"Invalid date\"!==e&&null!==e&&null!=T&&null!==(t=T.endDate)&&void 0!==t&&t.length&&O(\"endDate\",[(0,de.Yq)(e,\"DD-MMM-YYYY\"),(0,de.Yq)(T.endDate[1],\"DD-MMM-YYYY\")]),O(\"startDate\",(0,de.Yq)(e,\"DD-MMM-YYYY\"))},customFormat:\"DD-MMM\",openToType:\"month\",minDate:p,maxDate:f,disabled:\"false\"===(null==a||null===(y=a.retailerBgpCheck)||void 0===y?void 0:y.value)}),i().createElement(C.A,{errName:\"startDate\"})),i().createElement(o.A,null,i().createElement(v.A,{variant:\"body1\",fontWeight:700},d(\"END_DATE\")),i().createElement(he.A,{calenderType:[\"month\",\"day\"],value:null!==(E=null===(b=T.endDate)||void 0===b?void 0:b[1])&&void 0!==E?E:\"\",key:T.endDate,handleChangeDatePicker:function(e){O(\"endDate\",[T.startDate,(0,de.Yq)(e,\"DD-MMM-YYYY\")])},customFormat:\"DD-MMM\",openToType:\"month\",minDate:T.startDate,maxDate:f,disabled:\"false\"===(null==a||null===(w=a.retailerBgpCheck)||void 0===w?void 0:w.value)}),i().createElement(C.A,{errName:\"endDate\"})))),\"true\"===String(null==a||null===(S=a.growthPercentageCheck)||void 0===S?void 0:S.value).toLowerCase()&&i().createElement(_e,null)),i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},i().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},i().createElement(_.A,{buttonName:d(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return s(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))}}),\"true\"===a.retailerBgpCheck.value?i().createElement(_.A,{buttonName:d(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",type:\"submit\"}):i().createElement(_.A,{buttonName:d(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",onButtonClick:function(){return n(T)}}))))}))};function De(e){return De=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},De(e)}function Re(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return Ne(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Ne(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ne(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,Ne(d,\"constructor\",u),Ne(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",Ne(u,o,\"GeneratorFunction\"),Ne(d),Ne(d,o,\"Generator\"),Ne(d,r,function(){return this}),Ne(d,\"toString\",function(){return\"[object Generator]\"}),(Re=function(){return{w:a,m:p}})()}function Ne(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}Ne=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){Ne(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},Ne(e,t,n,r)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Me(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=De(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==De(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ie(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){xe(a,r,o,i,l,\"next\",e)}function l(e){xe(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Be(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fe=function(){var e=(0,l.Zp)(),t=ke((0,a.useState)({parentSowCheck:{},childSowCheck:{},retailerBgpCheck:{},growthPercentageCheck:{}}),2),n=t[0],r=t[1],o=(0,a.useContext)(d.v),s=o.BackOfficeProps,u=s.globalStore.User,c=s.baseurl,p=o.triggerShowLoader,f=o.triggerToastMsg,g=ke((0,a.useState)({endDate:[],startDate:\"\",divisionGrowth:[]}),2),h=g[0],m=g[1],v=function(e){var t={parentSowCheck:{key:\"\",value:!1},childSowCheck:{key:\"\",value:!1},retailerBgpCheck:{key:\"\",value:!1},growthPercentageCheck:{key:\"\",value:!1},retailerBgpStartDate:{key:\"\",value:\"\"},retailerBgpEndDate:{key:\"\",value:\"\"}};return e.forEach(function(e){var n=e.key.toLowerCase();\"is_annual_turnover_bulk_upload_enabled_for_retailers_sow\"===n?t.childSowCheck=e:\"is_retailers_sow_enabled\"===n?t.parentSowCheck=e:\"retailer_enable_bgp\"==n?t.retailerBgpCheck=e:\"retailer_bgp_start_date\"==n?t.retailerBgpStartDate=e:\"retailer_bgp_end_date\"==n?t.retailerBgpEndDate=e:\"is_growth_percentage_enable\"===n&&(t.growthPercentageCheck=e)}),t},A=function(){var e=Ie(Re().m(function e(){var t,n,o,a,i,l,s,d,g,h,A;return Re().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,a={moduleName:\"RETAILERS\",keys:[\"is_retailers_sow_enabled\",\"is_annual_turnover_bulk_upload_enabled_for_retailers_sow\",\"retailer_enable_bgp\",\"is_growth_percentage_enable\",\"retailer_bgp_start_date\",\"retailer_bgp_end_date\"]},i=String((new Date).getFullYear()),e.n=1,(0,ce.aN)(u,c,a);case 1:if(l=e.v,s=l.data,d=v(s),\"true\"!==String(d.growthPercentageCheck.value).toLowerCase()){e.n=3;break}return e.n=2,(0,ce.BO)(u,c,p,i);case 2:h=e.v,e.n=4;break;case 3:h=void 0;case 4:g=h,m(Pe({startDate:(0,de.Nq)(null==d||null===(t=d.retailerBgpStartDate)||void 0===t?void 0:t.value),endDate:[(0,de.Nq)(null==d||null===(n=d.retailerBgpStartDate)||void 0===n?void 0:n.value),(0,de.Nq)(null==d||null===(o=d.retailerBgpEndDate)||void 0===o?void 0:o.value)]},g&&{divisionGrowth:g.map(function(e){var t,n;return{divisionId:e.id,divisionName:e.name,planningCycle:i,growthPercentage:null!==(t=e.growthPercentage)&&void 0!==t?t:\"\",minimumBgpValue:null!==(n=e.minimumBgpValue)&&void 0!==n?n:\"\"}})})),r(d),e.n=6;break;case 5:e.p=5,A=e.v,f({message:A instanceof Error?A.message:String(A),type:\"error\"});case 6:return e.a(2)}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)(function(){A()},[]),i().createElement(Oe,{initialForm:h,onSavePostConfigValues:function(e){var t,r,o,a,i,l,s,d,g,h=\"true\"===String(null==n||null===(t=n.growthPercentageCheck)||void 0===t?void 0:t.value).toLowerCase(),m=[{key:n.parentSowCheck.key,value:n.parentSowCheck.value,marker_id:null,portfolio_code:(null==u||null===(r=u.selectedBusinessUnit)||void 0===r?void 0:r.portfolio_code)||\"DEFAULT\"},{key:n.childSowCheck.key,value:n.childSowCheck.value,marker_id:null,portfolio_code:(null==u||null===(o=u.selectedBusinessUnit)||void 0===o?void 0:o.portfolio_code)||\"DEFAULT\"},{key:n.retailerBgpCheck.key,value:n.retailerBgpCheck.value,marker_id:null,portfolio_code:(null==u||null===(a=u.selectedBusinessUnit)||void 0===a?void 0:a.portfolio_code)||\"DEFAULT\"},{key:null===(i=n.retailerBgpStartDate)||void 0===i?void 0:i.key,value:\"true\"===n.retailerBgpCheck.value?(0,de.Yq)(null==e?void 0:e.startDate,\"DD-MMM\").toLocaleUpperCase():\"\",marker_id:null,portfolio_code:(null==u||null===(l=u.selectedBusinessUnit)||void 0===l?void 0:l.portfolio_code)||\"DEFAULT\"},{key:null===(s=n.retailerBgpEndDate)||void 0===s?void 0:s.key,value:\"true\"===n.retailerBgpCheck.value?(0,de.Yq)(null==e||null===(d=e.endDate)||void 0===d?void 0:d[1],\"DD-MMM\").toLocaleUpperCase():\"\",marker_id:null,portfolio_code:(null==u||null===(g=u.selectedBusinessUnit)||void 0===g?void 0:g.portfolio_code)||\"DEFAULT\"}];return(h?ge().validateAt(\"divisionGrowth\",e):Promise.resolve()).then(Ie(Re().m(function t(){var n,r,o,a,i,l;return Re().w(function(t){for(;;)switch(t.n){case 0:if(n=(0,ce.qU)(u,c,p,m),h){t.n=2;break}return t.n=1,n;case 1:return r=t.v,A(),f({message:r.data,type:\"success\"}),t.a(2);case 2:return o=e.divisionGrowth.map(function(e){return{divisionId:e.divisionId,divisionName:e.divisionName,planningCycle:e.planningCycle,growthPercentage:Number(e.growthPercentage),minimumBgpValue:Number(e.minimumBgpValue)}}),t.n=3,Promise.all([n,(0,ce.zu)(u,c,p,o)]);case 3:a=t.v,i=ke(a,1),l=i[0],A(),f({message:l.data,type:\"success\"});case 4:return t.a(2)}},t)}))).catch(function(e){f({message:null==e?void 0:e.message,type:\"error\"})})},configData:n,setConfigData:r,navigate:e})};var je=function(e){return[{id:1,tabName:(0,m.t)(\"EVENTS\"),path:u.fp.Module_Config_Events,component:i().createElement(J,{RBACControls:e}),queryParam:{tabname:u.fp.Module_Config_Events}},{id:2,tabName:(0,m.t)(\"EVENT_TARGET\"),path:u.fp.Module_Config_EventTarget,component:i().createElement(ie,{RBACControls:e}),queryParam:{tabname:u.fp.Module_Config_EventTarget}},{id:3,tabName:(0,m.t)(\"DISCUSSION_BOARD\"),path:u.fp.Module_Config_Leaderboard,component:i().createElement(ue,{RBACControls:e}),queryParam:{tabname:u.fp.Module_Config_Leaderboard}},{id:4,tabName:(0,m.t)(\"AUTO_SYNC\"),path:u.fp.Module_Config_AutoSync,component:i().createElement(N,{RBACControls:e}),queryParam:{tabname:u.fp.Module_Config_AutoSync}},{id:5,tabName:(0,m.t)(\"RETAILER\"),path:u.fp.Module_Config_Retailer,component:i().createElement(Fe,{RBACControls:e}),queryParam:{tabname:u.fp.Module_Config_Retailer}}]},He=n(32112),Ue=n(58069);function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Ge(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ze=function(){var e,t,n=(0,l.Zp)(),f=(0,y.Bd)().t,g=(0,a.useContext)(d.v),h=g.BackOfficeProps,m=h.globalStore.User,A=h.baseurl,E=g.triggerShowLoader,b=g.triggerToastMsg,C=A,w=Ye((0,a.useState)([]),2),S=w[0],T=w[1],O=Ye((0,a.useState)(\"\"),2),D=O[0],R=O[1],N=Ye((0,a.useState)(),2),L=N[0],P=N[1],M=Ye((0,a.useState)(!1),2),x=M[0],I=M[1];(0,a.useEffect)(function(){k()},[]);var k=function(){var e;return null===(e=(0,Ue.xb)((0,p.rZ)(m,A),E))||void 0===e?void 0:e.then(function(e){if((null==e?void 0:e.length)>0){var t=e.map(function(e){return{id:e.id,label:null==e?void 0:e.name,value:null==e?void 0:e.name}});T(t),B(t)}}).catch(function(e){var t;b({message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e,type:\"error\"})})},B=function(e){var t={moduleName:s.Rk.USER_MODULE_NAME,keys:[s.Rk.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID],apiName:s.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS};(0,c.j)((0,p.rZ)(m,A),E,t).then(function(t){var n,r=null===(n=(0,p.Ws)(s.Rk.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID,t))||void 0===n?void 0:n.value,o=e.find(function(e){return(0,p.fW)(null==e?void 0:e.id,r)});R(null!=o?o:\"\"),P(null!=o?o:\"\")}).catch(function(){})},F=function(){var e,t=[{key:s.Rk.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID,value:D.id,marker_id:null,portfolio_code:(null==m||null===(e=m.selectedBusinessUnit)||void 0===e?void 0:e.portfolio_code)||\"DEFAULT\"}];return(0,ce.qU)(m,C,E,t).then(function(e){if((0,p.mN)(e))return I(!1),b({message:e.data,type:\"success\"}),void k();throw new Error(f(\"UNABLE_TO_SAVE\"))}).catch(function(e){b({message:null==e?void 0:e.message,type:\"error\"})})};return i().createElement(o.A,{className:\"tab-content-wrapper\"},i().createElement(r.A,{alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2,direction:\"row\"},i().createElement(r.A,{mb:1,width:\"25%\"},i().createElement(v.A,{variant:\"subtitle2\"},\"\".concat(f(\"HQ_HIERARCHY_LABEL\"))),i().createElement(H.A,{defaultLabel:\"Select HQ Hierarchy\",onChange:function(e,t){R(t)},name:\"salesHierarchy\",label:\"SalesHierarchy\",selectedOption:D,options:S,value:D,labelKey:\"label\"}))),i().createElement(r.A,{className:\"smart-agro-lite-event-details-footer\",direction:\"row\",alignItems:\"center\",justifyContent:\"end\"},i().createElement(r.A,{gap:2,direction:\"row\",justifyContent:\"end\",alignItems:\"baseline\"},i().createElement(_.A,{color:\"transparent\",buttonName:\"\".concat(f(\"CANCEL\")),onButtonClick:function(){n(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))},variant:\"outlined\"}),i().createElement(_.A,{onButtonClick:function(){(null==L?void 0:L.id)===(null==D?void 0:D.id)?F():I(!0)},color:\"primary\",type:\"submit\",disabled:!(null!=D&&D.id),variant:\"contained\",buttonName:f(\"SAVE\")}))),x&&i().createElement(He.R,{isVisible:x,message:s.JS.CHANGE_HQ_HIERARCHY_CONFIRMATION_POPUP.replace(\"HQ\",D.label),onSave:F,onRequestClose:function(){return I(!1)},primaryBtnName:null!==(e=f(\"PROCEED\"))&&void 0!==e?e:\"\",secondaryBtnName:null!==(t=f(\"CANCEL\"))&&void 0!==t?t:\"\"}))};n(74423),n(21699);var Ve=function(e){return e.VIEW_DEMO_TRACKING_HISTORY_MONTH=\"view_demo_tracking_history_months\",e.DEMO_EXECUTOR_HQ_LEVEL=\"demo_executor_hq_level\",e.DEMO_MANAGER_HQ_LEVEL=\"demo_manager_hq_level\",e}({}),qe=function(e){return e.DEMO_TRACKING=\"DEMO_TRACKING\",e}({}),We=function(e){return new Promise(function(t,n){var r;null===(r=S.N.get(e))||void 0===r||r.then(function(e){if((0,p.mN)(e))return t(e)}).catch(function(e){return n(new Error(e.message))})})},Qe=function(e,t,n,r,o){var a,i={};i.domain=t;var l=\"moduleName=\".concat(qe.DEMO_TRACKING),s=Object.values(o).map(function(e){return\"keys=\".concat(e)}).join(\"&\"),u=\"\".concat(l,\"&\").concat(s);return i.endPoint=\"\".concat(E.p.SAVE_ATTENDANCE_TYPES,\"?\").concat(u),i.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},r&&(i.customHeaders[\"role-id\"]=r),i.triggerLoader=n,(0,p.AT)(\"get\",i,!1)};function Ke(e){return Ke=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ke(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Ke(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Ke(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=[{toolTipKey:\"VIEW_DEMO_MONTHS\",labelKey:\"VIEW_DEMO_MONTHS\",fieldName:\"view_demo_months\",regex:/^(0?[1-9]|1[0-2])?$/}],et=function(e){var t=e.userRolesList,n=e.userRole,s=e.setUserRole,c=e.initialForm,d=e.onFormSubmit,p=e.hasCreateAccess,f=e.hasUpdateAccess,g=e.incrementByOne,m=(0,h.I)(),E=(0,l.Zp)(),b=(0,y.Bd)().t,C=!p&&!f,w=(0,a.useMemo)(function(){return Ze.map(function(e){return Xe(Xe({},e),{},{toolTipLabel:b(e.toolTipKey),label:b(e.labelKey)})})},[b]),S=function(e,t,n){return i().createElement(r.A,{key:e.fieldName,flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",gap:4,mb:2},(a=e.toolTipLabel,l=e.label,i().createElement(Y.A,{arrow:!0,placement:\"top-start\",toolTipValue:a},i().createElement(v.A,{fontSize:16,fontWeight:500,color:F.T.primaryBlack},l))),function(e,t,n){return i().createElement(o.A,{className:\"config-input-wrapper\"},i().createElement(U.A,{label:\"\",onHandleChange:function(t){return function(e,t,n){n.regex.test(e)&&t(n.fieldName,e)}(t,e,n)},value:t[n.fieldName],disabled:C,InputProps:{endAdornment:i().createElement(I.A,{position:\"end\",disablePointerEvents:C},i().createElement(r.A,{alignItems:\"center\",className:\"input-adornment-wrapper\"},i().createElement(x.A,{\"data-testid\":\"arrow-up-\".concat(n.fieldName),onClick:function(){return function(e,t,n){var r=g(e);n.regex.test(String(r))&&t(n.fieldName,r)}(t[n.fieldName],e,n)},sx:{cursor:C?\"default\":\"pointer\"}}),i().createElement(M.A,{\"data-testid\":\"arrow-down-\".concat(n.fieldName),onClick:function(){return function(e,t,n){var r=e-1;n.regex.test(String(r))&&t(n.fieldName,r)}(t[n.fieldName],e,n)},sx:{cursor:C?\"default\":\"pointer\"}})))}}))}(t,n,e));var a,l},T=function(){E(\"/\".concat(u.fp.SmartAgro,\"/\").concat(u.fp.Configurations))};return i().createElement(o.A,{className:\"tab-content-wrapper\"},i().createElement(r.A,{direction:\"row\",alignItems:\"center\",mb:1,gap:2},i().createElement(o.A,{mb:1,width:\"25%\"},i().createElement(v.A,{variant:\"subtitle2\"},b(\"USER_ROLE_DROPDOWN_LABEL\")),i().createElement(H.A,{name:\"userRole\",onChange:function(e,t){return s(t)},options:t,labelKey:\"label\",label:\"UserRole\",selectedOption:n,value:n,defaultLabel:\"Select Role\"}))),i().createElement(A.l1,{initialValues:c,enableReinitialize:!0,onSubmit:d},function(e){var t=e.values,n=e.setFieldValue;return i().createElement(A.lV,{\"aria-label\":\"form\"},i().createElement(k.A,{elevation:1,className:\"\".concat(m.EventDetails,\" \").concat(m.minHeightAuto)},i().createElement(v.A,{variant:\"h4\",fontSize:12,mb:2,fontWeight:500},b(\"CONFIGURATIONS\")),i().createElement(r.A,{flexDirection:\"row\",gap:3},i().createElement(o.A,{className:\"smart-agro-lite-box-conatiner\"},w.map(function(e){return S(e,n,t)})))),i().createElement(r.A,{direction:\"row\",gap:2,className:\"btnsBlock\",justifyContent:\"end\"},i().createElement(_.A,{variant:\"outlined\",buttonName:b(\"CANCEL\"),onButtonClick:T,fullwidth:!1,color:\"secondary\"}),i().createElement(_.A,{variant:\"contained\",buttonName:b(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\",disabled:C})))}))};function tt(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return nt(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(nt(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,nt(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,nt(d,\"constructor\",u),nt(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",nt(u,o,\"GeneratorFunction\"),nt(d),nt(d,o,\"Generator\"),nt(d,r,function(){return this}),nt(d,\"toString\",function(){return\"[object Generator]\"}),(tt=function(){return{w:a,m:p}})()}function nt(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}nt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){nt(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},nt(e,t,n,r)}function rt(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ot(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){rt(a,r,o,i,l,\"next\",e)}function l(e){rt(a,r,o,i,l,\"throw\",e)}i(void 0)})}}function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return it(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lt={view_demo_months:0};const st=function(e){var t,n,r=e.RBACControls,o=(0,b.w)(r),l=o.hasCreateAccess,s=o.hasUpdateAccess,u=(0,a.useContext)(d.v),c=u.BackOfficeProps,f=c.globalStore.User,g=c.baseurl,h=u.triggerShowLoader,m=u.triggerToastMsg,v=null===(t=f.selectedCountry)||void 0===t?void 0:t.countryCode,A=null!==(n=null==f?void 0:f.AccessToken)&&void 0!==n?n:\"\",y=null==f?void 0:f.selectedBusinessUnit,_=at((0,a.useState)([]),2),C=_[0],w=_[1],S=at((0,a.useState)([]),2),T=S[0],O=S[1],D=at((0,a.useState)(null),2),R=D[0],N=D[1],L=at((0,a.useState)(lt),2),P=L[0],M=L[1],x=(0,a.useCallback)(ot(tt().m(function e(){var t,n,r,o,a,i,l,s;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:return t={domain:g,endPoint:E.p.SAVESALEHIERARCHY,customHeaders:{\"country-code\":v,Authorization:\"Bearer \".concat(A),\"bu-id\":null==y?void 0:y.bu_id},payLoad:{page_size:50},triggerLoader:h},e.p=1,e.n=2,We(t);case 2:r=e.v,(o=(null==r||null===(n=r.data)||void 0===n?void 0:n.sales_hierarchy_view_List)||[]).length>0&&(null==T?void 0:T.length)>0?(i=null==T?void 0:T.map(function(e){return Number(null==e?void 0:e.value)}),l=null===(a=o.filter(function(e){return i.includes(Number(null==e?void 0:e.id))}))||void 0===a?void 0:a.map(function(e){return{id:e.id,label:e.name,value:e.name}}),w(l),N(l[0])):(w([]),N(null)),e.n=4;break;case 3:e.p=3,s=e.v,m({message:(null==s?void 0:s.message)||\"Failed to fetch user roles\",type:\"error\"});case 4:return e.a(2)}},e,null,[[1,3]])})),[T]),I=(0,a.useCallback)(ot(tt().m(function e(){var t,n,r,o,a;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,Qe(f,g,h,null==R?void 0:R.id,[Ve.VIEW_DEMO_TRACKING_HISTORY_MONTH]);case 2:(null==(n=e.v)||null===(t=n.data)||void 0===t?void 0:t.length)>0?(o=null===(r=n.data[0])||void 0===r?void 0:r.value,M({view_demo_months:o||0})):M(lt),e.n=4;break;case 3:e.p=3,a=e.v,m({message:(null==a?void 0:a.message)||\"Failed to fetch configuration data\",type:\"error\"});case 4:return e.a(2)}},e,null,[[1,3]])})),[f,g,m,R]),k=(0,a.useCallback)(ot(tt().m(function e(){var t,n,r,o;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Qe(f,g,h,null,[Ve.DEMO_EXECUTOR_HQ_LEVEL,Ve.DEMO_MANAGER_HQ_LEVEL]);case 1:(null==(n=e.v)||null===(t=n.data)||void 0===t?void 0:t.length)>0?(r=n.data,O(r)):O([]),e.n=3;break;case 2:e.p=2,o=e.v,m({message:(null==o?void 0:o.message)||\"Failed to fetch configuration data\",type:\"error\"});case 3:return e.a(2)}},e,null,[[0,2]])})),[f,g,m]),B=(0,a.useCallback)(function(){var e=ot(tt().m(function e(t){var n,r,o;return tt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R){e.n=1;break}return m({message:\"Please select a user role\",type:\"error\"}),e.a(2);case 1:return n={key:Ve.VIEW_DEMO_TRACKING_HISTORY_MONTH,value:String(t.view_demo_months),marker_id:String(R.id)},e.p=2,e.n=3,oe(f,g,h,[n]);case 3:if(r=e.v,!(0,p.mN)(r)){e.n=5;break}return m({message:r.data||\"Configuration saved successfully\",type:\"success\"}),e.n=4,I();case 4:e.n=6;break;case 5:throw new Error(\"Failed to save configuration\");case 6:e.n=8;break;case 7:e.p=7,o=e.v,m({message:(null==o?void 0:o.message)||\"Failed to save configuration\",type:\"error\"});case 8:return e.a(2)}},e,null,[[2,7]])}));return function(t){return e.apply(this,arguments)}}(),[f,g,m,R,I]),F=(0,a.useCallback)(function(e){return\"number\"==typeof e?e+1:Number(e)+1},[]);return(0,a.useEffect)(function(){k()},[]),(0,a.useEffect)(function(){x()},[T]),(0,a.useEffect)(function(){R&&I()},[R]),i().createElement(et,{userRolesList:C,userRole:R,setUserRole:N,initialForm:P,onFormSubmit:B,hasCreateAccess:l,hasUpdateAccess:s,incrementByOne:F})};function ut(e){return ut=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ut(e)}function ct(e){return function(e){if(Array.isArray(e))return ht(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||gt(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach(function(t){ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ft(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ut(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ut(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ut(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gt(e,t){if(e){if(\"string\"==typeof e)return ht(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ht(e,t):void 0}}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const mt=function(e){var t,n,v=e.RBACControls,A={id:6,tabName:(0,m.t)(\"COST_CENTER\"),path:u.fp.Module_Config_Costcenter,component:i().createElement(ze,{RBACControls:v}),queryParam:{tabname:u.fp.Module_Config_Costcenter}},y={id:6,tabName:(0,m.t)(\"DEMO_TRACKING\"),path:u.fp.Module_Config_demo_tracking,component:i().createElement(st,{RBACControls:v}),queryParam:{tabname:u.fp.Module_Config_demo_tracking}},E=(0,l.zy)(),b=(0,a.useContext)(d.v),_=b.BackOfficeProps,C=_.globalStore.User,w=_.baseurl,S=b.triggerShowLoader,T=new URLSearchParams(E.search).get(\"tabname\"),O=(t=i().useState({tablist:je(v),currentTabs:u.fp.Module_Config_Events}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||gt(t,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),D=O[0],R=O[1];(0,a.useEffect)(function(){T&&R(function(e){return pt(pt({},e),{},{currentTabs:T||e.currentTabs})})},[T]);var N=(0,a.useCallback)(function(){return i().createElement(l.BV,null,i().createElement(l.qh,{index:!0,element:i().createElement(l.C5,{to:T?\"\".concat(T).concat(E.search):\"\".concat(u.fp.Module_Config_Events,\"/?\").concat((0,p.Nr)({tabname:null!=T?T:u.fp.Module_Config_Events})),replace:!0})}),D.tablist.map(function(e){return i().createElement(l.qh,{key:e.id,path:e.path,element:e.component})}))},[D]);return(0,a.useEffect)(function(){var e;e={moduleName:s.Rk.USER_MODULE_NAME,keys:[s.Rk.COST_CENTER_CONFIGURATION_KEY],apiName:s.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS},(0,c.j)((0,p.rZ)(C,w),S,e).then(function(e){var t;\"true\"===(null===(t=(0,p.Ws)(s.Rk.COST_CENTER_CONFIGURATION_KEY,e))||void 0===t?void 0:t.value)&&R(function(e){return pt(pt({},e),{},{tablist:[].concat(ct(e.tablist),[A])})}),function(){var e={moduleName:s.Rk.DEMO_TRACKING,keys:[s.Rk.DEMO_TRACKING_CONFIGURATION_KEY],apiName:s.Rk.RETAILERS_DETAILS_TABS_CONFIGURATIONS};(0,c.j)((0,p.rZ)(C,w),S,e).then(function(e){var t,n,r=null===(t=(0,p.Ws)(s.Rk.DEMO_TRACKING_CONFIGURATION_KEY,e))||void 0===t?void 0:t.value,o=(null===(n=C.selectedBusinessUnit.userRoleControls.module_access_information_dto_list)||void 0===n||null===(n=n.find(function(e){return\"DEMO-TRACKING\"===e.module_name}))||void 0===n||null===(n=n.permissions)||void 0===n?void 0:n.length)>0;\"true\"===r&&o&&R(function(e){return pt(pt({},e),{},{tablist:[].concat(ct(e.tablist),[y])})})}).catch(function(e){})}()}).catch(function(e){})},[]),i().createElement(h.M,null,i().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},i().createElement(o.A,null,i().createElement(f.A,{routePathName:[{name:u.F_.Configurations,path:u.fp.Configurations},{name:u.F_.Module_Config,path:u.fp.Module_Config}]}))),i().createElement(g.A,{tabStateProps:D,handleTabChange:function(e){R(function(t){return pt(pt({},t),{},{currentTabs:e})})},isParamsReq:!0}),N())}},93205:(e,t,n)=>{\"use strict\";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{A:()=>r})},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}();e.exports=o},93383:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){var o={s:[\"thoddea sekondamni\",\"thodde sekond\"],ss:[e+\" sekondamni\",e+\" sekond\"],m:[\"eka mintan\",\"ek minut\"],mm:[e+\" mintamni\",e+\" mintam\"],h:[\"eka voran\",\"ek vor\"],hh:[e+\" voramni\",e+\" voram\"],d:[\"eka disan\",\"ek dis\"],dd:[e+\" disamni\",e+\" dis\"],M:[\"eka mhoinean\",\"ek mhoino\"],MM:[e+\" mhoineamni\",e+\" mhoine\"],y:[\"eka vorsan\",\"ek voros\"],yy:[e+\" vorsamni\",e+\" vorsam\"]};return r?o[n][0]:o[n][1]}e.defineLocale(\"gom-latn\",{months:{standalone:\"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr\".split(\"_\"),format:\"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea\".split(\"_\"),isFormat:/MMMM(\\s)+D[oD]?/},monthsShort:\"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split(\"_\"),weekdaysShort:\"Ait._Som._Mon._Bud._Bre._Suk._Son.\".split(\"_\"),weekdaysMin:\"Ai_Sm_Mo_Bu_Br_Su_Sn\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"A h:mm [vazta]\",LTS:\"A h:mm:ss [vazta]\",L:\"DD-MM-YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY A h:mm [vazta]\",LLLL:\"dddd, MMMM Do, YYYY, A h:mm [vazta]\",llll:\"ddd, D MMM YYYY, A h:mm [vazta]\"},calendar:{sameDay:\"[Aiz] LT\",nextDay:\"[Faleam] LT\",nextWeek:\"[Fuddlo] dddd[,] LT\",lastDay:\"[Kal] LT\",lastWeek:\"[Fattlo] dddd[,] LT\",sameElse:\"L\"},relativeTime:{future:\"%s\",past:\"%s adim\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2}(er)/,ordinal:function(e,t){return\"D\"===t?e+\"er\":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),\"rati\"===t?e<4?e:e+12:\"sokallim\"===t?e:\"donparam\"===t?e>12?e:e+12:\"sanje\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"rati\":e<12?\"sokallim\":e<16?\"donparam\":e<20?\"sanje\":\"rati\"}})}(n(95093))},93389:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(43724),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=a(r,e);return t&&t.value}},93438:(e,t,n)=>{\"use strict\";var r=n(28551),o=n(20034),a=n(36043);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},93514:(e,t,n)=>{\"use strict\";n(6469)(\"flat\")},93601:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"da\",{months:\"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december\".split(\"_\"),monthsShort:\"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec\".split(\"_\"),weekdays:\"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag\".split(\"_\"),weekdaysShort:\"søn_man_tir_ons_tor_fre_lør\".split(\"_\"),weekdaysMin:\"sø_ma_ti_on_to_fr_lø\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd [d.] D. MMMM YYYY [kl.] HH:mm\"},calendar:{sameDay:\"[i dag kl.] LT\",nextDay:\"[i morgen kl.] LT\",nextWeek:\"på dddd [kl.] LT\",lastDay:\"[i går kl.] LT\",lastWeek:\"[i] dddd[s kl.] LT\",sameElse:\"L\"},relativeTime:{future:\"om %s\",past:\"%s siden\",s:\"få sekunder\",ss:\"%d sekunder\",m:\"et minut\",mm:\"%d minutter\",h:\"en time\",hh:\"%d timer\",d:\"en dag\",dd:\"%d dage\",M:\"en måned\",MM:\"%d måneder\",y:\"et år\",yy:\"%d år\"},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},93628:(e,t,n)=>{\"use strict\";var r=n(48648),o=n(71064),a=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||\"object\"!=typeof e&&\"function\"!=typeof e)throw new TypeError(\"getProto: not an object\");return o(e)}:a?function(e){return a(e)}:null},93663:(e,t,n)=>{var r=n(41799),o=n(10776),a=n(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},93749:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(44877).A},93997:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{SupportRootRoute:()=>s,default:()=>u}),n(23792),n(26099),n(3362),n(47764),n(62953);var r=n(81970),o=n.n(r),a=n(27305),i=n(72448),l=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,94749))}),s=function(e){var t=e.RBACControls,n=(0,a.T)(t.subModuleProps).readableModules;return o().createElement(i.A,{readableModules:n,childComponent:o().createElement(l,{RBACControls:t})})};const u=s},94017:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"}),\"Check\")},94170:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(30566);r({target:\"Function\",proto:!0,forced:Function.bind!==o},{bind:o})},94188:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>x});var r=n(68248),o=n(86481),a=n(14620);const i=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,a.A)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};var l=n(89452);function s(e){return\"number\"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,o.Ay)({prop:e,themeKey:\"borders\",transform:t})}const c=u(\"border\",s),d=u(\"borderTop\",s),p=u(\"borderRight\",s),f=u(\"borderBottom\",s),g=u(\"borderLeft\",s),h=u(\"borderColor\"),m=u(\"borderTopColor\"),v=u(\"borderRightColor\"),A=u(\"borderBottomColor\"),y=u(\"borderLeftColor\"),E=u(\"outline\",s),b=u(\"outlineColor\"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,\"shape.borderRadius\",4,\"borderRadius\"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,l.NI)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=[\"borderRadius\"],i(c,d,p,f,g,h,m,v,A,y,_,E,b);const C=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"gap\"),n=e=>({gap:(0,r._W)(t,e)});return(0,l.NI)(e,e.gap,n)}return null};C.propTypes={},C.filterProps=[\"gap\"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"columnGap\"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,l.NI)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=[\"columnGap\"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,\"spacing\",8,\"rowGap\"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,l.NI)(e,e.rowGap,n)}return null};function T(e,t){return\"grey\"===t?t:e}function O(e){return e<=1&&0!==e?100*e+\"%\":e}S.propTypes={},S.filterProps=[\"rowGap\"],i(C,w,S,(0,o.Ay)({prop:\"gridColumn\"}),(0,o.Ay)({prop:\"gridRow\"}),(0,o.Ay)({prop:\"gridAutoFlow\"}),(0,o.Ay)({prop:\"gridAutoColumns\"}),(0,o.Ay)({prop:\"gridAutoRows\"}),(0,o.Ay)({prop:\"gridTemplateColumns\"}),(0,o.Ay)({prop:\"gridTemplateRows\"}),(0,o.Ay)({prop:\"gridTemplateAreas\"}),(0,o.Ay)({prop:\"gridArea\"})),i((0,o.Ay)({prop:\"color\",themeKey:\"palette\",transform:T}),(0,o.Ay)({prop:\"bgcolor\",cssProperty:\"backgroundColor\",themeKey:\"palette\",transform:T}),(0,o.Ay)({prop:\"backgroundColor\",themeKey:\"palette\",transform:T}));const D=(0,o.Ay)({prop:\"width\",transform:O}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.zu[t];return o?\"px\"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:O(t)}};return(0,l.NI)(e,e.maxWidth,t)}return null};R.filterProps=[\"maxWidth\"];const N=(0,o.Ay)({prop:\"minWidth\",transform:O}),L=(0,o.Ay)({prop:\"height\",transform:O}),P=(0,o.Ay)({prop:\"maxHeight\",transform:O}),M=(0,o.Ay)({prop:\"minHeight\",transform:O}),x=((0,o.Ay)({prop:\"size\",cssProperty:\"width\",transform:O}),(0,o.Ay)({prop:\"size\",cssProperty:\"height\",transform:O}),i(D,R,N,L,P,M,(0,o.Ay)({prop:\"boxSizing\"})),{border:{themeKey:\"borders\",transform:s},borderTop:{themeKey:\"borders\",transform:s},borderRight:{themeKey:\"borders\",transform:s},borderBottom:{themeKey:\"borders\",transform:s},borderLeft:{themeKey:\"borders\",transform:s},borderColor:{themeKey:\"palette\"},borderTopColor:{themeKey:\"palette\"},borderRightColor:{themeKey:\"palette\"},borderBottomColor:{themeKey:\"palette\"},borderLeftColor:{themeKey:\"palette\"},outline:{themeKey:\"borders\",transform:s},outlineColor:{themeKey:\"palette\"},borderRadius:{themeKey:\"shape.borderRadius\",style:_},color:{themeKey:\"palette\",transform:T},bgcolor:{themeKey:\"palette\",cssProperty:\"backgroundColor\",transform:T},backgroundColor:{themeKey:\"palette\",transform:T},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({\"@media print\":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:C},rowGap:{style:S},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:\"zIndex\"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:\"shadows\"},width:{transform:O},maxWidth:{style:R},minWidth:{transform:O},height:{transform:O},maxHeight:{transform:O},minHeight:{transform:O},boxSizing:{},fontFamily:{themeKey:\"typography\"},fontSize:{themeKey:\"typography\"},fontStyle:{themeKey:\"typography\"},fontWeight:{themeKey:\"typography\"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:\"typography\"}})},94259:(e,t,n)=>{\"use strict\";var r=n(24994);t.A=void 0;var o=r(n(42032)),a=n(74848);t.A=(0,o.default)((0,a.jsx)(\"path\",{d:\"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z\"}),\"SortOutlined\")},94415:(e,t,n)=>{\"use strict\";n.d(t,{U:()=>h}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(94170),n(62010),n(2892),n(59904),n(67945),n(84185),n(83851),n(81278),n(40875),n(79432),n(10287),n(26099),n(3362),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(81970),o=n(73300),a=n(80648);function i(e){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i(e)}function l(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,c=Object.create(l.prototype);return s(c,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),c}var i={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),f=d.prototype=u.prototype=Object.create(p);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,\"GeneratorFunction\")),e.prototype=Object.create(f),e}return c.prototype=d,s(f,\"constructor\",d),s(d,\"constructor\",c),c.displayName=\"GeneratorFunction\",s(d,o,\"GeneratorFunction\"),s(f),s(f,o,\"Generator\"),s(f,r,function(){return this}),s(f,\"toString\",function(){return\"[object Generator]\"}),(l=function(){return{w:a,m:g}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}s=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){s(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},s(e,t,n,r)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=i(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==i(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,i,s){var u=f((0,r.useState)({}),2),d=u[0],g=u[1],h=(0,r.useCallback)(function(e){var t=e.tmhq,n=e.crop,r=e.distributor,a=[{label:o.QH[o.OV.DISPATCHED],value:o.OV.DISPATCHED,checked:!1,visible:[null===o.Gu||void 0===o.Gu?void 0:o.Gu.DEMO_LIST].includes(s)},{label:o.QH[o.OV.NOT_STARTED],value:o.OV.NOT_STARTED,checked:!1,visible:!1},{label:o.QH[o.OV.PICKED],value:o.OV.PICKED,checked:!1,visible:[null===o.Gu||void 0===o.Gu?void 0:o.Gu.DEMO_LIST].includes(s)},{label:o.QH[o.OV.CREATED],value:o.OV.CREATED,checked:!1,visible:[null===o.Gu||void 0===o.Gu?void 0:o.Gu.DISPATCH_LIST].includes(s)},{label:o.QH[o.OV.IN_PROGRESS],value:o.OV.IN_PROGRESS,checked:!1,visible:[null===o.Gu||void 0===o.Gu?void 0:o.Gu.DEMO_LIST,null===o.Gu||void 0===o.Gu?void 0:o.Gu.DISPATCH_LIST].includes(s)},{label:o.QH[o.OV.COMPLETED],value:o.OV.COMPLETED,checked:!1,visible:[null===o.Gu||void 0===o.Gu?void 0:o.Gu.DEMO_LIST,null===o.Gu||void 0===o.Gu?void 0:o.Gu.DISPATCH_LIST].includes(s)}].filter(function(e){return null==e?void 0:e.visible}),i={tmhq:null==t?void 0:t.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),crop:null==n?void 0:n.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id,checked:!1}}),distributor:null==r?void 0:r.map(function(e){return{label:\"\".concat(null==e?void 0:e.distributor_name,\" \").concat(null==e?void 0:e.distributor_code),value:null==e?void 0:e.distributor_uuid,checked:!1}}),status:a};g(i)},[]),m=(0,r.useCallback)(function(){(0,a.SI)(e,t,n).then(function(r){var o,i=null==r||null===(o=r[0])||void 0===o?void 0:o.value;return Promise.all([(0,a.hT)(e,t,n),(0,a.le)(e,t,n,i)])}).then(function(e){var t=f(e,2),n=t[0],r=t[1];h({tmhq:null!=r?r:[],crop:n,distributor:[]})}).catch(function(e){i({message:null==e?void 0:e.message,type:\"error\"})})},[]),v=(0,r.useCallback)(function(){var r,o=(r=l().m(function r(o){var s,u,d;return l().w(function(r){for(;;)switch(r.p=r.n){case 0:if(s={\"hq-id\":o},!o){r.n=4;break}return r.p=1,r.n=2,(0,a._i)(e,t,n,s);case 2:u=r.v,g(function(e){return c(c({},e),{},{distributor:Array.isArray(u)?u.map(function(e){return{label:\"\".concat(null==e?void 0:e.distributor_name,\"- \").concat(null==e?void 0:e.distributor_code),value:null==e?void 0:e.distributor_uuid,checked:!1}}):[]})}),r.n=4;break;case 3:r.p=3,d=r.v,i({message:null==d?void 0:d.message,type:\"error\"});case 4:return r.a(2)}},r,null,[[1,3]])}),function(){var e=this,t=arguments;return new Promise(function(n,o){var a=r.apply(e,t);function i(e){p(a,n,o,i,l,\"next\",e)}function l(e){p(a,n,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return o.apply(this,arguments)}}(),[]);return(0,r.useEffect)(function(){m()},[]),{filtersOptions:d,setFiltersOptions:g,fetchDistributors:v}}},94418:function(e,t,n){!function(e){\"use strict\";var t=\"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień\".split(\"_\"),n=\"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia\".split(\"_\"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var r=e+\" \";switch(n){case\"ss\":return r+(o(e)?\"sekundy\":\"sekund\");case\"m\":return t?\"minuta\":\"minutę\";case\"mm\":return r+(o(e)?\"minuty\":\"minut\");case\"h\":return t?\"godzina\":\"godzinę\";case\"hh\":return r+(o(e)?\"godziny\":\"godzin\");case\"ww\":return r+(o(e)?\"tygodnie\":\"tygodni\");case\"MM\":return r+(o(e)?\"miesiące\":\"miesięcy\");case\"yy\":return r+(o(e)?\"lata\":\"lat\")}}e.defineLocale(\"pl\",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:\"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru\".split(\"_\"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota\".split(\"_\"),weekdaysShort:\"ndz_pon_wt_śr_czw_pt_sob\".split(\"_\"),weekdaysMin:\"Nd_Pn_Wt_Śr_Cz_Pt_So\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Dziś o] LT\",nextDay:\"[Jutro o] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[W niedzielę o] LT\";case 2:return\"[We wtorek o] LT\";case 3:return\"[W środę o] LT\";case 6:return\"[W sobotę o] LT\";default:return\"[W] dddd [o] LT\"}},lastDay:\"[Wczoraj o] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[W zeszłą niedzielę o] LT\";case 3:return\"[W zeszłą środę o] LT\";case 6:return\"[W zeszłą sobotę o] LT\";default:return\"[W zeszły] dddd [o] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"%s temu\",s:\"kilka sekund\",ss:a,m:a,mm:a,h:a,hh:a,d:\"1 dzień\",dd:\"%d dni\",w:\"tydzień\",ww:a,M:\"miesiąc\",MM:a,y:\"rok\",yy:a},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})}(n(95093))},94459:e=>{\"use strict\";e.exports=Number.isNaN||function(e){return e!=e}},94490:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(79504),a=n(34376),i=o([].reverse),l=[1,2];r({target:\"Array\",proto:!0,forced:String(l)===String(l.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),i(this)}})},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94644:(e,t,n)=>{\"use strict\";var r,o,a,i=n(77811),l=n(43724),s=n(44576),u=n(94901),c=n(20034),d=n(39297),p=n(36955),f=n(16823),g=n(66699),h=n(36840),m=n(62106),v=n(1625),A=n(42787),y=n(52967),E=n(78227),b=n(33392),_=n(91181),C=_.enforce,w=_.get,S=s.Int8Array,T=S&&S.prototype,O=s.Uint8ClampedArray,D=O&&O.prototype,R=S&&A(S),N=T&&A(T),L=Object.prototype,P=s.TypeError,M=E(\"toStringTag\"),x=b(\"TYPED_ARRAY_TAG\"),I=\"TypedArrayConstructor\",k=i&&!!y&&\"Opera\"!==p(s.opera),B=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},H=function(e){var t=A(e);if(c(t)){var n=w(t);return n&&d(n,I)?n[I]:H(t)}},U=function(e){if(!c(e))return!1;var t=p(e);return d(F,t)||d(j,t)};for(r in F)(a=(o=s[r])&&o.prototype)?C(a)[I]=o:k=!1;for(r in j)(a=(o=s[r])&&o.prototype)&&(C(a)[I]=o);if((!k||!u(R)||R===Function.prototype)&&(R=function(){throw new P(\"Incorrect invocation\")},k))for(r in F)s[r]&&y(s[r],R);if((!k||!N||N===L)&&(N=R.prototype,k))for(r in F)s[r]&&y(s[r].prototype,N);if(k&&A(D)!==N&&y(D,N),l&&!d(N,M))for(r in B=!0,m(N,M,{configurable:!0,get:function(){return c(this)?this[x]:void 0}}),F)s[r]&&g(s[r],x,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:k,TYPED_ARRAY_TAG:B&&x,aTypedArray:function(e){if(U(e))return e;throw new P(\"Target is not a typed array\")},aTypedArrayConstructor:function(e){if(u(e)&&(!y||v(R,e)))return e;throw new P(f(e)+\" is not a typed array constructor\")},exportTypedArrayMethod:function(e,t,n,r){if(l){if(n)for(var o in F){var a=s[o];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(n){try{a.prototype[e]=t}catch(e){}}}N[e]&&!n||h(N,e,n?t:k&&T[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(l){if(y){if(n)for(r in F)if((o=s[r])&&d(o,e))try{delete o[e]}catch(e){}if(R[e]&&!n)return;try{return h(R,e,n?t:k&&R[e]||t)}catch(e){}}for(r in F)!(o=s[r])||o[e]&&!n||h(o,e,t)}},getTypedArrayConstructor:H,isView:function(e){if(!c(e))return!1;var t=p(e);return\"DataView\"===t||d(F,t)||d(j,t)},isTypedArray:U,TypedArray:R,TypedArrayPrototype:N}},94692:(e,t,n)=>{\"use strict\";n.d(t,{w3:()=>z,Bt:()=>Y,mu:()=>G});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function i(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function s(e){return\"function\"==typeof e}function u(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Object.create,Object.create,\"function\"==typeof SuppressedError&&SuppressedError;var c=u(function(e){return function(t){e(this),this.message=t?t.length+\" errors occurred during unsubscription:\\n\"+t.map(function(e,t){return t+1+\") \"+e.toString()}).join(\"\\n  \"):\"\",this.name=\"UnsubscriptionError\",this.errors=t}});function d(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var p=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var d=a(u),p=d.next();!p.done;p=d.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if(s(f))try{f()}catch(e){o=e instanceof c?e.errors:[e]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var m=a(g),v=m.next();!v.done;v=m.next()){var A=v.value;try{h(A)}catch(e){o=null!=o?o:[],e instanceof c?o=l(l([],i(o)),i(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{v&&!v.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}}if(o)throw new c(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)h(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&d(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&d(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),f=p.EMPTY;function g(e){return e instanceof p||e&&\"closed\"in e&&s(e.remove)&&s(e.add)&&s(e.unsubscribe)}function h(e){s(e)?e():e.unsubscribe()}var m=null,v=null,A=void 0,y=!1,E=!1,b={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=b.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,l([e,t],i(n))):setTimeout.apply(void 0,l([e,t],i(n)))},clearTimeout:function(e){var t=b.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function _(){}var C=w(\"C\",void 0,void 0);function w(e,t,n){return{kind:e,value:t,error:n}}var S=null;function T(e){if(y){var t=!S;if(t&&(S={errorThrown:!1,error:null}),e(),t){var n=S,r=n.errorThrown,o=n.error;if(S=null,r)throw o}}else e()}var O=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,g(t)&&t.add(n)):n.destination=x,n}return o(t,e),t.create=function(e,t,n){return new L(e,t,n)},t.prototype.next=function(e){this.isStopped?M(function(e){return w(\"N\",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?M(w(\"E\",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?M(C,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(p),D=Function.prototype.bind;function R(e,t){return D.call(e,t)}var N=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){P(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){P(e)}else P(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){P(e)}},e}(),L=function(e){function t(t,n,r){var o,a,i=e.call(this)||this;return s(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:i&&E?((a=Object.create(t)).unsubscribe=function(){return i.unsubscribe()},o={next:t.next&&R(t.next,a),error:t.error&&R(t.error,a),complete:t.complete&&R(t.complete,a)}):o=t,i.destination=new N(o),i}return o(t,e),t}(O);function P(e){var t;y?(t=e,y&&S&&(S.errorThrown=!0,S.error=t)):function(e){b.setTimeout(function(){if(!m)throw e;m(e)})}(e)}function M(e,t){var n=v;n&&b.setTimeout(function(){return n(e,t)})}var x={closed:!0,next:_,error:function(e){throw e},complete:_},I=\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\";function k(e){return e}var B=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,a=(r=e)&&r instanceof O||function(e){return e&&s(e.next)&&s(e.error)&&s(e.complete)}(r)&&g(r)?e:new L(e,t,n);return T(function(){var e=o,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=F(t))(function(t,r){var o=new L({next:function(t){try{e(t)}catch(e){r(e),o.unsubscribe()}},error:r,complete:t});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[I]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===(n=e).length?k:1===n.length?n[0]:function(e){return n.reduce(function(e,t){return t(e)},e)})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=F(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function F(e){var t;return null!==(t=null!=e?e:A)&&void 0!==t?t:Promise}var j=u(function(e){return function(){e(this),this.name=\"ObjectUnsubscribedError\",this.message=\"object unsubscribed\"}}),H=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype.lift=function(e){var t=new U(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new j},t.prototype.next=function(e){var t=this;T(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;T(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;T(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,\"observed\",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?f:(this.currentObservers=null,a.push(e),new p(function(){t.currentObservers=null,d(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,o=t.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new B;return e.source=this,e},t.create=function(e,t){return new U(e,t)},t}(B),U=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return o(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:f},t}(H),Y=new H,G=function(e){return e.SESSIONS_EXPIRED=\"SESSION_EXPIRED\",e.RETAILER_SEARCH=\"RETAILER_SEARCH\",e.SHOW_LOADER=\"SHOW_LOADER\",e}({}),z=function(e,t){return Y.next({type:e,payload:t})}},94749:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>p});var r=n(51545),o=n(81970),a=n.n(o),i=n(96348),l=n(27305),s=n(92416),u=n(75007),c=n(60404),d=n(36738);const p=function(e){var t=e.RBACControls,n=(0,l.T)(t.subModuleProps).readableModules;return a().createElement(u.N,null,a().createElement(r.A,{mb:2},a().createElement(s.A,{routePathName:[{name:i.F_.Support,path:i.fp.EntryPath}]})),n.length>0?a().createElement(d.A,{moduleData:n}):a().createElement(c.A,null))}},94866:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0,t.default={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3}},94901:e=>{\"use strict\";var t=\"object\"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return\"function\"==typeof e||e===t}:function(e){return\"function\"==typeof e}},94985:(e,t,n)=>{\"use strict\";n.d(t,{QZ:()=>c,Vs:()=>d,ao:()=>s,aw:()=>p,sm:()=>f,uW:()=>u}),n(50113),n(48598),n(62062),n(26099),n(3362),n(27495),n(25440);var r=n(96790),o=n(8085),a=n(34358),i=n(13075),l=n(30623),s=function(e,t,n,r){var a,l,s={};return s.domain=t,s.endPoint=o.p.GET_RETAILERS_LIST,s.payLoad=r,s.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":null==e?void 0:e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},s.triggerLoader=n,(0,i.AT)(\"post\",s,!0)},u=function(e,t,n,l){var s,u={};return u.domain=t,u.endPoint=o.p.GET_OTP.replace(\"__NEW_NUMBER__\",l),u.triggerLoader=n,u.customHeaders={\"country-code\":\"\".concat(null===(s=e.selectedCountry)||void 0===s?void 0:s.countryCode),Authorization:\"Bearer \".concat(e.AccessToken)},u.payLoad={otp_flow_type:\"RETAILER\",language_code:\"en\"},new Promise(function(e,t){(0,a.uB)(u,r.dF.GET).then(function(t){var n,r;if((0,i.mN)(t))return e(t.data);if(null!=t&&null!==(n=t.data)&&void 0!==n&&n.errorMessage)throw new Error(null==t||null===(r=t.data)||void 0===r?void 0:r.errorMessage);throw new Error((0,i.Tl)(\"NO_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})},c=function(e,t,n,l,s){var u,c,d={};return d.domain=n,d.endPoint=o.p.VERIFY_OTP_UPDATE_NUMBER.replace(\"__NEW_NUMBER__\",null==s?void 0:s.newMobileNumber).replace(\"__UUID__\",e),d.triggerLoader=l,d.customHeaders={\"country-code\":\"\".concat(null===(u=t.selectedCountry)||void 0===u?void 0:u.countryCode),Authorization:\"Bearer \".concat(t.AccessToken),\"bu-id\":null==t||null===(c=t.selectedBusinessUnit)||void 0===c?void 0:c.bu_id},d.payLoad={identifier:null==s?void 0:s.enterVerificationCode},new Promise(function(e,t){(0,a.uB)(d,r.dF.GET).then(function(t){var n;if((0,i.mN)(t))return e(t.data);if(null!=t&&null!==(n=t.data)&&void 0!==n&&n.errorMessage)return e(t.data);throw new Error((0,i.Tl)(\"NO_DATA_AVAILABLE\"))}).catch(function(e){return t(e)})})},d=function(e,t,n){var r,a={};return a.domain=t,a.endPoint=o.p.GET_SALES_HIERARCHY_ID.replace(\"bu_id\",\"\".concat(null==e?void 0:e.selectedBusinessUnit.bu_id)),a.customHeaders={\"country-code\":null==e||null===(r=e.selectedCountry)||void 0===r?void 0:r.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},a.triggerLoader=n,(0,i.AT)(\"get\",a,!0)},p=function(e,t,n){var r,a,s,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],c={};c.domain=t;var d=u.length>0?u:(null===(r=l.U7.find(function(e){return\"Retailer Status\"===e.labelName}))||void 0===r?void 0:r.options.map(function(e){return e.value}))||[],p=encodeURIComponent(d.join(\",\"));return c.endPoint=o.p.GET_TOUCH_BASE.replace(\"__status__\",p),c.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"role-type-name\":e.UserDetails.role_type_details.role_type_name,\"user-id\":null==e||null===(s=e.UserDetails)||void 0===s?void 0:s.user_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},c.triggerLoader=n,(0,i.AT)(\"get\",c,!0)},f=function(e,t,n,r){var a,l={};return l.domain=t,l.endPoint=o.p.RETAILER_SOW_LIST_DATA,l.payLoad=r,l.customHeaders={\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=n,(0,i.AT)(\"post\",l,!0)}},95050:function(e,t,n){!function(e){\"use strict\";var t={1:\"૧\",2:\"૨\",3:\"૩\",4:\"૪\",5:\"૫\",6:\"૬\",7:\"૭\",8:\"૮\",9:\"૯\",0:\"૦\"},n={\"૧\":\"1\",\"૨\":\"2\",\"૩\":\"3\",\"૪\":\"4\",\"૫\":\"5\",\"૬\":\"6\",\"૭\":\"7\",\"૮\":\"8\",\"૯\":\"9\",\"૦\":\"0\"};e.defineLocale(\"gu\",{months:\"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર\".split(\"_\"),monthsShort:\"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.\".split(\"_\"),monthsParseExact:!0,weekdays:\"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર\".split(\"_\"),weekdaysShort:\"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ\".split(\"_\"),weekdaysMin:\"ર_સો_મં_બુ_ગુ_શુ_શ\".split(\"_\"),longDateFormat:{LT:\"A h:mm વાગ્યે\",LTS:\"A h:mm:ss વાગ્યે\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY, A h:mm વાગ્યે\",LLLL:\"dddd, D MMMM YYYY, A h:mm વાગ્યે\"},calendar:{sameDay:\"[આજ] LT\",nextDay:\"[કાલે] LT\",nextWeek:\"dddd, LT\",lastDay:\"[ગઇકાલે] LT\",lastWeek:\"[પાછલા] dddd, LT\",sameElse:\"L\"},relativeTime:{future:\"%s મા\",past:\"%s પહેલા\",s:\"અમુક પળો\",ss:\"%d સેકંડ\",m:\"એક મિનિટ\",mm:\"%d મિનિટ\",h:\"એક કલાક\",hh:\"%d કલાક\",d:\"એક દિવસ\",dd:\"%d દિવસ\",M:\"એક મહિનો\",MM:\"%d મહિનો\",y:\"એક વર્ષ\",yy:\"%d વર્ષ\"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),\"રાત\"===t?e<4?e:e+12:\"સવાર\"===t?e:\"બપોર\"===t?e>=10?e:e+12:\"સાંજ\"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?\"રાત\":e<10?\"સવાર\":e<17?\"બપોર\":e<20?\"સાંજ\":\"રાત\"},week:{dow:0,doy:6}})}(n(95093))},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){\"use strict\";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function i(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,\"toString\")&&(e.toString=t.toString),l(t,\"valueOf\")&&(e.valueOf=t.valueOf),e}function g(e,t,n,r){return It(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=g(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var A=o.momentProperties=[],y=!1;function E(e,t){var n,r,o,a=A.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=A[n]])||(e[r]=o);return e}function b(e){E(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,o.updateOffset(this),y=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){!1===o.suppressDeprecationWarnings&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+e)}function w(e,t){var n=!0;return f(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,a,i,s=[],u=arguments.length;for(a=0;a<u;a++){if(r=\"\",\"object\"==typeof arguments[a]){for(i in r+=\"\\n[\"+a+\"] \",arguments[0])l(arguments[0],i)&&(r+=i+\": \"+arguments[0][i]+\", \");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}C(e+\"\\nArguments: \"+Array.prototype.slice.call(s).join(\"\")+\"\\n\"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var S,T={};function O(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),T[e]||(C(t),T[e]=!0)}function D(e){return\"undefined\"!=typeof Function&&e instanceof Function||\"[object Function]\"===Object.prototype.toString.call(e)}function R(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function N(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};function L(e,t,n){var r=\"\"+Math.abs(e),o=t-r.length;return(e>=0?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var P=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,x={},I={};function k(e,t,n,r){var o=r;\"string\"==typeof r&&(o=function(){return this[r]()}),e&&(I[e]=o),t&&(I[t[0]]=function(){return L(o.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e){return e.match(/\\[[\\s\\S]/)?e.replace(/^\\[|\\]$/g,\"\"):e.replace(/\\\\/g,\"\")}function F(e,t){return e.isValid()?(t=j(t,e.localeData()),x[t]=x[t]||function(e){var t,n,r=e.match(P);for(t=0,n=r.length;t<n;t++)I[r[t]]?r[t]=I[r[t]]:r[t]=B(r[t]);return function(t){var o,a=\"\";for(o=0;o<n;o++)a+=D(r[o])?r[o].call(t,e):r[o];return a}}(t),x[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var H={D:\"date\",dates:\"date\",date:\"date\",d:\"day\",days:\"day\",day:\"day\",e:\"weekday\",weekdays:\"weekday\",weekday:\"weekday\",E:\"isoWeekday\",isoweekdays:\"isoWeekday\",isoweekday:\"isoWeekday\",DDD:\"dayOfYear\",dayofyears:\"dayOfYear\",dayofyear:\"dayOfYear\",h:\"hour\",hours:\"hour\",hour:\"hour\",ms:\"millisecond\",milliseconds:\"millisecond\",millisecond:\"millisecond\",m:\"minute\",minutes:\"minute\",minute:\"minute\",M:\"month\",months:\"month\",month:\"month\",Q:\"quarter\",quarters:\"quarter\",quarter:\"quarter\",s:\"second\",seconds:\"second\",second:\"second\",gg:\"weekYear\",weekyears:\"weekYear\",weekyear:\"weekYear\",GG:\"isoWeekYear\",isoweekyears:\"isoWeekYear\",isoweekyear:\"isoWeekYear\",w:\"week\",weeks:\"week\",week:\"week\",W:\"isoWeek\",isoweeks:\"isoWeek\",isoweek:\"isoWeek\",y:\"year\",years:\"year\",year:\"year\"};function U(e){return\"string\"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)l(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var G={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var z,V=/\\d/,q=/\\d\\d/,W=/\\d{3}/,Q=/\\d{4}/,K=/[+-]?\\d{6}/,$=/\\d\\d?/,X=/\\d\\d\\d\\d?/,J=/\\d\\d\\d\\d\\d\\d?/,Z=/\\d{1,3}/,ee=/\\d{1,4}/,te=/[+-]?\\d{1,6}/,ne=/\\d+/,re=/[+-]?\\d+/,oe=/Z|[+-]\\d\\d:?\\d\\d/gi,ae=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,ie=/[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,le=/^[1-9]\\d?/,se=/^([1-9]\\d|\\d)/;function ue(e,t,n){z[e]=D(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return l(z,e)?z[e](t._strict,t._locale):new RegExp(de(e.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function de(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function fe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=pe(t)),n}z={};var ge={};function he(e,t){var n,r,o=t;for(\"string\"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=fe(e)}),r=e.length,n=0;n<r;n++)ge[e[n]]=o}function me(e,t){he(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function ve(e,t,n){null!=t&&l(ge,e)&&ge[e](t,n._a,n,e)}function Ae(e){return e%4==0&&e%100!=0||e%400==0}var ye=0,Ee=1,be=2,_e=3,Ce=4,we=5,Se=6,Te=7,Oe=8;function De(e){return Ae(e)?366:365}k(\"Y\",0,0,function(){var e=this.year();return e<=9999?L(e,4):\"+\"+e}),k(0,[\"YY\",2],0,function(){return this.year()%100}),k(0,[\"YYYY\",4],0,\"year\"),k(0,[\"YYYYY\",5],0,\"year\"),k(0,[\"YYYYYY\",6,!0],0,\"year\"),ue(\"Y\",re),ue(\"YY\",$,q),ue(\"YYYY\",ee,Q),ue(\"YYYYY\",te,K),ue(\"YYYYYY\",te,K),he([\"YYYYY\",\"YYYYYY\"],ye),he(\"YYYY\",function(e,t){t[ye]=2===e.length?o.parseTwoDigitYear(e):fe(e)}),he(\"YY\",function(e,t){t[ye]=o.parseTwoDigitYear(e)}),he(\"Y\",function(e,t){t[ye]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return fe(e)+(fe(e)>68?1900:2e3)};var Re,Ne=Le(\"FullYear\",!0);function Le(e,t){return function(n){return null!=n?(Me(this,e,n),o.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case\"Milliseconds\":return r?n.getUTCMilliseconds():n.getMilliseconds();case\"Seconds\":return r?n.getUTCSeconds():n.getSeconds();case\"Minutes\":return r?n.getUTCMinutes():n.getMinutes();case\"Hours\":return r?n.getUTCHours():n.getHours();case\"Date\":return r?n.getUTCDate():n.getDate();case\"Day\":return r?n.getUTCDay():n.getDay();case\"Month\":return r?n.getUTCMonth():n.getMonth();case\"FullYear\":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Me(e,t,n){var r,o,a,i,l;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case\"Milliseconds\":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case\"Seconds\":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case\"Minutes\":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case\"Hours\":return void(o?r.setUTCHours(n):r.setHours(n));case\"Date\":return void(o?r.setUTCDate(n):r.setDate(n));case\"FullYear\":break;default:return}a=n,i=e.month(),l=29!==(l=e.date())||1!==i||Ae(a)?l:28,o?r.setUTCFullYear(a,i,l):r.setFullYear(a,i,l)}}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ae(e)?29:28:31-r%7%2}Re=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},k(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1}),k(\"MMM\",0,0,function(e){return this.localeData().monthsShort(this,e)}),k(\"MMMM\",0,0,function(e){return this.localeData().months(this,e)}),ue(\"M\",$,le),ue(\"MM\",$,q),ue(\"MMM\",function(e,t){return t.monthsShortRegex(e)}),ue(\"MMMM\",function(e,t){return t.monthsRegex(e)}),he([\"M\",\"MM\"],function(e,t){t[Ee]=fe(e)-1}),he([\"MMM\",\"MMMM\"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Ee]=o:h(n).invalidMonth=e});var Ie=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ke=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),Be=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,Fe=ie,je=ie;function He(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,\"\").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,\"\").toLocaleLowerCase();return n?\"MMM\"===t?-1!==(o=Re.call(this._shortMonthsParse,i))?o:null:-1!==(o=Re.call(this._longMonthsParse,i))?o:null:\"MMM\"===t?-1!==(o=Re.call(this._shortMonthsParse,i))||-1!==(o=Re.call(this._longMonthsParse,i))?o:null:-1!==(o=Re.call(this._longMonthsParse,i))||-1!==(o=Re.call(this._shortMonthsParse,i))?o:null}function Ue(e,t){if(!e.isValid())return e;if(\"string\"==typeof t)if(/^\\d+$/.test(t))t=fe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,xe(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Ye(e){return null!=e?(Ue(this,e),o.updateOffset(this,!0),this):Pe(this,\"Month\")}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],l=[];for(t=0;t<12;t++)n=g([2e3,t]),r=de(this.monthsShort(n,\"\")),o=de(this.months(n,\"\")),a.push(r),i.push(o),l.push(o),l.push(r);a.sort(e),i.sort(e),l.sort(e),this._monthsRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function ze(e,t,n,r,o,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,a,i),l}function Ve(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){var r=7+t-n;return-(7+Ve(e,0,r).getUTCDay()-t)%7+r-1}function We(e,t,n,r,o){var a,i,l=1+7*(t-1)+(7+n-r)%7+qe(e,r,o);return l<=0?i=De(a=e-1)+l:l>De(e)?(a=e+1,i=l-De(e)):(a=e,i=l),{year:a,dayOfYear:i}}function Qe(e,t,n){var r,o,a=qe(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+Ke(o=e.year()-1,t,n):i>Ke(e.year(),t,n)?(r=i-Ke(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function Ke(e,t,n){var r=qe(e,t,n),o=qe(e+1,t,n);return(De(e)-r+o)/7}k(\"w\",[\"ww\",2],\"wo\",\"week\"),k(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),ue(\"w\",$,le),ue(\"ww\",$,q),ue(\"W\",$,le),ue(\"WW\",$,q),me([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,r){t[r.substr(0,1)]=fe(e)});function $e(e,t){return e.slice(t,7).concat(e.slice(0,t))}k(\"d\",0,\"do\",\"day\"),k(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),k(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),k(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),k(\"e\",0,0,\"weekday\"),k(\"E\",0,0,\"isoWeekday\"),ue(\"d\",$),ue(\"e\",$),ue(\"E\",$),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),me([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me([\"d\",\"e\",\"E\"],function(e,t,n,r){t[r]=fe(e)});var Xe=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),Je=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),Ze=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),et=ie,tt=ie,nt=ie;function rt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=g([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,\"\").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,\"\").toLocaleLowerCase();return n?\"dddd\"===t?-1!==(o=Re.call(this._weekdaysParse,i))?o:null:\"ddd\"===t?-1!==(o=Re.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=Re.call(this._minWeekdaysParse,i))?o:null:\"dddd\"===t?-1!==(o=Re.call(this._weekdaysParse,i))||-1!==(o=Re.call(this._shortWeekdaysParse,i))||-1!==(o=Re.call(this._minWeekdaysParse,i))?o:null:\"ddd\"===t?-1!==(o=Re.call(this._shortWeekdaysParse,i))||-1!==(o=Re.call(this._weekdaysParse,i))||-1!==(o=Re.call(this._minWeekdaysParse,i))?o:null:-1!==(o=Re.call(this._minWeekdaysParse,i))||-1!==(o=Re.call(this._weekdaysParse,i))||-1!==(o=Re.call(this._shortWeekdaysParse,i))?o:null}function ot(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],l=[],s=[],u=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),r=de(this.weekdaysMin(n,\"\")),o=de(this.weekdaysShort(n,\"\")),a=de(this.weekdays(n,\"\")),i.push(r),l.push(o),s.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),l.sort(e),s.sort(e),u.sort(e),this._weekdaysRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\")}function at(){return this.hours()%12||12}function it(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function lt(e,t){return t._meridiemParse}k(\"H\",[\"HH\",2],0,\"hour\"),k(\"h\",[\"hh\",2],0,at),k(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),k(\"hmm\",0,0,function(){return\"\"+at.apply(this)+L(this.minutes(),2)}),k(\"hmmss\",0,0,function(){return\"\"+at.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),k(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),k(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),it(\"a\",!0),it(\"A\",!1),ue(\"a\",lt),ue(\"A\",lt),ue(\"H\",$,se),ue(\"h\",$,le),ue(\"k\",$,le),ue(\"HH\",$,q),ue(\"hh\",$,q),ue(\"kk\",$,q),ue(\"hmm\",X),ue(\"hmmss\",J),ue(\"Hmm\",X),ue(\"Hmmss\",J),he([\"H\",\"HH\"],_e),he([\"k\",\"kk\"],function(e,t,n){var r=fe(e);t[_e]=24===r?0:r}),he([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he([\"h\",\"hh\"],function(e,t,n){t[_e]=fe(e),h(n).bigHour=!0}),he(\"hmm\",function(e,t,n){var r=e.length-2;t[_e]=fe(e.substr(0,r)),t[Ce]=fe(e.substr(r)),h(n).bigHour=!0}),he(\"hmmss\",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=fe(e.substr(0,r)),t[Ce]=fe(e.substr(r,2)),t[we]=fe(e.substr(o)),h(n).bigHour=!0}),he(\"Hmm\",function(e,t,n){var r=e.length-2;t[_e]=fe(e.substr(0,r)),t[Ce]=fe(e.substr(r))}),he(\"Hmmss\",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=fe(e.substr(0,r)),t[Ce]=fe(e.substr(r,2)),t[we]=fe(e.substr(o))});var st=Le(\"Hours\",!0);var ut,ct={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",w:\"a week\",ww:\"%d weeks\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ie,monthsShort:ke,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Ze,weekdaysShort:Je,meridiemParse:/[ap]\\.?m?\\.?/i},dt={},pt={};function ft(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function gt(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ht(t){var r=null;if(void 0===dt[t]&&e&&e.exports&&function(e){return!(!e||!e.match(\"^[^/\\\\\\\\]*$\"))}(t))try{r=ut._abbr,n(35358)(\"./\"+t),mt(r)}catch(e){dt[t]=null}return dt[t]}function mt(e,t){var n;return e&&((n=u(t)?At(e):vt(e,t))?ut=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),ut._abbr}function vt(e,t){if(null!==t){var n,r=ct;if(t.abbr=e,null!=dt[e])O(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),r=dt[e]._config;else if(null!=t.parentLocale)if(null!=dt[t.parentLocale])r=dt[t.parentLocale]._config;else{if(null==(n=ht(t.parentLocale)))return pt[t.parentLocale]||(pt[t.parentLocale]=[]),pt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return dt[e]=new N(R(r,t)),pt[e]&&pt[e].forEach(function(e){vt(e.name,e.config)}),mt(e),dt[e]}return delete dt[e],null}function At(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ut;if(!a(e)){if(t=ht(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=gt(e[a]).split(\"-\")).length,n=(n=gt(e[a+1]))?n.split(\"-\"):null;t>0;){if(r=ht(o.slice(0,t).join(\"-\")))return r;if(n&&n.length>=t&&ft(o,n)>=t-1)break;t--}a++}return ut}(e)}function yt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[Ee]<0||n[Ee]>11?Ee:n[be]<1||n[be]>xe(n[ye],n[Ee])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[Ce]||0!==n[we]||0!==n[Se])?_e:n[Ce]<0||n[Ce]>59?Ce:n[we]<0||n[we]>59?we:n[Se]<0||n[Se]>999?Se:-1,h(e)._overflowDayOfYear&&(t<ye||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=Te),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}var Et=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,bt=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/Z|[+-]\\d\\d(?::?\\d\\d)?/,Ct=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/],[\"YYYYMM\",/\\d{6}/,!1],[\"YYYY\",/\\d{4}/,!1]],wt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],St=/^\\/?Date\\((-?\\d+)/i,Tt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,Ot={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,r,o,a,i,l=e._i,s=Et.exec(l)||bt.exec(l),u=Ct.length,c=wt.length;if(s){for(h(e).iso=!0,t=0,n=u;t<n;t++)if(Ct[t][1].exec(s[1])){o=Ct[t][0],r=!1!==Ct[t][2];break}if(null==o)return void(e._isValid=!1);if(s[3]){for(t=0,n=c;t<n;t++)if(wt[t][1].exec(s[3])){a=(s[2]||\" \")+wt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(s[4]){if(!_t.exec(s[4]))return void(e._isValid=!1);i=\"Z\"}e._f=o+(a||\"\")+(i||\"\"),Mt(e)}else e._isValid=!1}function Rt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nt(e){var t,n,r,o,a,i,l,s,u=Tt.exec(e._i.replace(/\\([^()]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\"));if(u){if(n=u[4],r=u[3],o=u[2],a=u[5],i=u[6],l=u[7],s=[Rt(n),ke.indexOf(r),parseInt(o,10),parseInt(a,10),parseInt(i,10)],l&&s.push(parseInt(l,10)),t=s,!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Ot[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(u[8],u[9],u[10]),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Lt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,a,i,l=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[Ee]&&function(e){var t,n,r,o,a,i,l,s,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Lt(t.GG,e._a[ye],Qe(kt(),1,4).year),r=Lt(t.W,1),((o=Lt(t.E,1))<1||o>7)&&(s=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Qe(kt(),a,i),n=Lt(t.gg,e._a[ye],u.year),r=Lt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(s=!0)):o=a),r<1||r>Ke(n,a,i)?h(e)._overflowWeeks=!0:null!=s?h(e)._overflowWeekday=!0:(l=We(n,r,o,a,i),e._a[ye]=l.year,e._dayOfYear=l.dayOfYear)}(e),null!=e._dayOfYear&&(i=Lt(e._a[ye],r[ye]),(e._dayOfYear>De(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ve(i,0,e._dayOfYear),e._a[Ee]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=r[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[Ce]&&0===e._a[we]&&0===e._a[Se]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ve:ze).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,a,i,l,s,u=\"\"+e._i,c=u.length,d=0;for(s=(r=j(e._f,e._locale).match(P)||[]).length,t=0;t<s;t++)a=r[t],(n=(u.match(ce(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),I[a]?(n?h(e).empty=!1:h(e).unusedTokens.push(a),ve(a,n,e)):e._strict&&!n&&h(e).unusedTokens.push(a);h(e).charsLeftOver=c-d,u.length>0&&h(e).unusedInput.push(u),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[_e],e._meridiem),null!==(l=h(e).era)&&(e._a[ye]=e._locale.erasConvertYear(l,e._a[ye])),Pt(e),yt(e)}else Nt(e);else Dt(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||At(e._l),null===t||void 0===n&&\"\"===t?v({nullInput:!0}):(\"string\"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new b(yt(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,l=!1,s=e._f.length;if(0===s)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<s;o++)a=0,i=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Mt(t),m(t)&&(i=!0),a+=h(t).charsLeftOver,a+=10*h(t).unusedTokens.length,h(t).score=a,l?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(l=!0));f(e,n||t)}(e):n?Mt(e):function(e){var t=e._i;u(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):\"string\"==typeof t?function(e){var t=St.exec(e._i);null===t?(Dt(e),!1===e._isValid&&(delete e._isValid,Nt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=p(t.slice(0),function(e){return parseInt(e,10)}),Pt(e)):i(t)?function(e){if(!e._d){var t=Y(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Pt(e)}}(e):c(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function It(e,t,n,r,o){var l,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=r,(l=new b(yt(xt(u))))._nextDay&&(l.add(1,\"d\"),l._nextDay=void 0),l}function kt(e,t,n,r){return It(e,t,n,r,!1)}o.createFromInputFallback=w(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(e){e._d=new Date(e._i+(e._useUTC?\" UTC\":\"\"))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Bt=w(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Ft=w(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function jt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ht=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function Ut(e){var t=Y(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=Ht.length;for(t in e)if(l(e,t)&&(-1===Re.call(Ht,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Ht[n]]){if(r)return!1;parseFloat(e[Ht[n]])!==fe(e[Ht[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=At(),this._bubble()}function Yt(e){return e instanceof Ut}function Gt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function zt(e,t){k(e,0,0,function(){var e=this.utcOffset(),n=\"+\";return e<0&&(e=-e,n=\"-\"),n+L(~~(e/60),2)+t+L(~~e%60,2)})}zt(\"Z\",\":\"),zt(\"ZZ\",\"\"),ue(\"Z\",ae),ue(\"ZZ\",ae),he([\"Z\",\"ZZ\"],function(e,t,n){n._useUTC=!0,n._tzm=qt(ae,e)});var Vt=/([\\+\\-]|\\d\\d)/gi;function qt(e,t){var n,r,o=(t||\"\").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+\"\").match(Vt)||[\"-\",0,0])[1]+fe(n[2]))?0:\"+\"===n[0]?r:-r}function Wt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||d(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):kt(e).local()}function Qt(e){return-Math.round(e._d.getTimezoneOffset())}function Kt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var $t=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,Xt=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,r,o,a,i,s,u=e,d=null;return Yt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=$t.exec(e))?(n=\"-\"===d[1]?-1:1,u={y:0,d:fe(d[be])*n,h:fe(d[_e])*n,m:fe(d[Ce])*n,s:fe(d[we])*n,ms:fe(Gt(1e3*d[Se]))*n}):(d=Xt.exec(e))?(n=\"-\"===d[1]?-1:1,u={y:Zt(d[2],n),M:Zt(d[3],n),w:Zt(d[4],n),d:Zt(d[5],n),h:Zt(d[6],n),m:Zt(d[7],n),s:Zt(d[8],n)}):null==u?u={}:\"object\"==typeof u&&(\"from\"in u||\"to\"in u)&&(a=kt(u.from),i=kt(u.to),o=a.isValid()&&i.isValid()?(i=Wt(i,a),a.isBefore(i)?s=en(a,i):((s=en(i,a)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new Ut(u),Yt(e)&&l(e,\"_locale\")&&(r._locale=e._locale),Yt(e)&&l(e,\"_isValid\")&&(r._isValid=e._isValid),r}function Zt(e,t){var n=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(n)?0:n)*t}function en(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n}function tn(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(O(t,\"moment().\"+t+\"(period, number) is deprecated. Please use moment().\"+t+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),o=n,n=r,r=o),nn(this,Jt(n,r),e),this}}function nn(e,t,n,r){var a=t._milliseconds,i=Gt(t._days),l=Gt(t._months);e.isValid()&&(r=null==r||r,l&&Ue(e,Pe(e,\"Month\")+l*n),i&&Me(e,\"Date\",Pe(e,\"Date\")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&o.updateOffset(e,i||l))}Jt.fn=Ut.prototype,Jt.invalid=function(){return Jt(NaN)};var rn=tn(1,\"add\"),on=tn(-1,\"subtract\");function an(e){return\"string\"==typeof e||e instanceof String}function ln(e){return _(e)||d(e)||an(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&an(e)}).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!s(e),o=!1,a=[\"years\",\"year\",\"y\",\"months\",\"month\",\"M\",\"days\",\"day\",\"d\",\"dates\",\"date\",\"D\",\"hours\",\"hour\",\"h\",\"minutes\",\"minute\",\"m\",\"seconds\",\"second\",\"s\",\"milliseconds\",\"millisecond\",\"ms\"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||l(e,n);return r&&o}(e)||null==e}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,\"months\");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,\"months\")):(t-r)/(e.clone().add(n+1,\"months\")-r)))||0}function un(e){var t;return void 0===e?this._locale._abbr:(null!=(t=At(e))&&(this._locale=t),this)}o.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",o.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var cn=w(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(e){return void 0===e?this.localeData():this.locale(e)});function dn(){return this._locale}var pn=1e3,fn=6e4,gn=36e5,hn=126227808e5;function mn(e,t){return(e%t+t)%t}function vn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function An(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function yn(e,t){return t.erasAbbrRegex(e)}function En(){var e,t,n,r,o,a=[],i=[],l=[],s=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=de(u[e].name),r=de(u[e].abbr),o=de(u[e].narrow),i.push(n),a.push(r),l.push(o),s.push(n),s.push(r),s.push(o);this._erasRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._erasNameRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._erasAbbrRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\"),this._erasNarrowRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\")}function bn(e,t){k(0,[e,e.length],0,t)}function _n(e,t,n,r,o){var a;return null==e?Qe(this,r,o).year:(t>(a=Ke(e,r,o))&&(t=a),Cn.call(this,e,t,n,r,o))}function Cn(e,t,n,r,o){var a=We(e,t,n,r,o),i=Ve(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}k(\"N\",0,0,\"eraAbbr\"),k(\"NN\",0,0,\"eraAbbr\"),k(\"NNN\",0,0,\"eraAbbr\"),k(\"NNNN\",0,0,\"eraName\"),k(\"NNNNN\",0,0,\"eraNarrow\"),k(\"y\",[\"y\",1],\"yo\",\"eraYear\"),k(\"y\",[\"yy\",2],0,\"eraYear\"),k(\"y\",[\"yyy\",3],0,\"eraYear\"),k(\"y\",[\"yyyy\",4],0,\"eraYear\"),ue(\"N\",yn),ue(\"NN\",yn),ue(\"NNN\",yn),ue(\"NNNN\",function(e,t){return t.erasNameRegex(e)}),ue(\"NNNNN\",function(e,t){return t.erasNarrowRegex(e)}),he([\"N\",\"NN\",\"NNN\",\"NNNN\",\"NNNNN\"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e}),ue(\"y\",ne),ue(\"yy\",ne),ue(\"yyy\",ne),ue(\"yyyy\",ne),ue(\"yo\",function(e,t){return t._eraYearOrdinalRegex||ne}),he([\"y\",\"yy\",\"yyy\",\"yyyy\"],ye),he([\"yo\"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ye]=n._locale.eraYearOrdinalParse(e,o):t[ye]=parseInt(e,10)}),k(0,[\"gg\",2],0,function(){return this.weekYear()%100}),k(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),bn(\"gggg\",\"weekYear\"),bn(\"ggggg\",\"weekYear\"),bn(\"GGGG\",\"isoWeekYear\"),bn(\"GGGGG\",\"isoWeekYear\"),ue(\"G\",re),ue(\"g\",re),ue(\"GG\",$,q),ue(\"gg\",$,q),ue(\"GGGG\",ee,Q),ue(\"gggg\",ee,Q),ue(\"GGGGG\",te,K),ue(\"ggggg\",te,K),me([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(e,t,n,r){t[r.substr(0,2)]=fe(e)}),me([\"gg\",\"GG\"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),k(\"Q\",0,\"Qo\",\"quarter\"),ue(\"Q\",V),he(\"Q\",function(e,t){t[Ee]=3*(fe(e)-1)}),k(\"D\",[\"DD\",2],\"Do\",\"date\"),ue(\"D\",$,le),ue(\"DD\",$,q),ue(\"Do\",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he([\"D\",\"DD\"],be),he(\"Do\",function(e,t){t[be]=fe(e.match($)[0])});var wn=Le(\"Date\",!0);k(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),ue(\"DDD\",Z),ue(\"DDDD\",W),he([\"DDD\",\"DDDD\"],function(e,t,n){n._dayOfYear=fe(e)}),k(\"m\",[\"mm\",2],0,\"minute\"),ue(\"m\",$,se),ue(\"mm\",$,q),he([\"m\",\"mm\"],Ce);var Sn=Le(\"Minutes\",!1);k(\"s\",[\"ss\",2],0,\"second\"),ue(\"s\",$,se),ue(\"ss\",$,q),he([\"s\",\"ss\"],we);var Tn,On,Dn=Le(\"Seconds\",!1);for(k(\"S\",0,0,function(){return~~(this.millisecond()/100)}),k(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),k(0,[\"SSS\",3],0,\"millisecond\"),k(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),k(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),k(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),k(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),k(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),k(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),ue(\"S\",Z,V),ue(\"SS\",Z,q),ue(\"SSS\",Z,W),Tn=\"SSSS\";Tn.length<=9;Tn+=\"S\")ue(Tn,ne);function Rn(e,t){t[Se]=fe(1e3*(\"0.\"+e))}for(Tn=\"S\";Tn.length<=9;Tn+=\"S\")he(Tn,Rn);On=Le(\"Milliseconds\",!1),k(\"z\",0,0,\"zoneAbbr\"),k(\"zz\",0,0,\"zoneName\");var Nn=b.prototype;function Ln(e){return e}Nn.add=rn,Nn.calendar=function(e,t){1===arguments.length&&(arguments[0]?ln(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=i(e)&&!s(e),r=!1,o=[\"sameDay\",\"nextDay\",\"lastDay\",\"nextWeek\",\"lastWeek\",\"sameElse\"];for(t=0;t<o.length;t+=1)r=r||l(e,o[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||kt(),r=Wt(n,this).startOf(\"day\"),a=o.calendarFormat(this,r)||\"sameElse\",u=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(u||this.localeData().calendar(a,this,kt(n)))},Nn.clone=function(){return new b(this)},Nn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Wt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case\"year\":a=sn(this,r)/12;break;case\"month\":a=sn(this,r);break;case\"quarter\":a=sn(this,r)/3;break;case\"second\":a=(this-r)/1e3;break;case\"minute\":a=(this-r)/6e4;break;case\"hour\":a=(this-r)/36e5;break;case\"day\":a=(this-r-o)/864e5;break;case\"week\":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:pe(a)},Nn.endOf=function(e){var t,n;if(void 0===(e=U(e))||\"millisecond\"===e||!this.isValid())return this;switch(n=this._isUTC?An:vn,e){case\"year\":t=n(this.year()+1,0,1)-1;break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case\"month\":t=n(this.year(),this.month()+1,1)-1;break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date()+1)-1;break;case\"hour\":t=this._d.valueOf(),t+=gn-mn(t+(this._isUTC?0:this.utcOffset()*fn),gn)-1;break;case\"minute\":t=this._d.valueOf(),t+=fn-mn(t,fn)-1;break;case\"second\":t=this._d.valueOf(),t+=pn-mn(t,pn)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},Nn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},Nn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||kt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.fromNow=function(e){return this.from(kt(),e)},Nn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||kt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nn.toNow=function(e){return this.to(kt(),e)},Nn.get=function(e){return D(this[e=U(e)])?this[e]():this},Nn.invalidAt=function(){return h(this).overflow},Nn.isAfter=function(e,t){var n=_(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=U(t)||\"millisecond\")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Nn.isBefore=function(e,t){var n=_(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(t=U(t)||\"millisecond\")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Nn.isBetween=function(e,t,n,r){var o=_(e)?e:kt(e),a=_(t)?t:kt(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&(\"(\"===(r=r||\"()\")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(\")\"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},Nn.isSame=function(e,t){var n,r=_(e)?e:kt(e);return!(!this.isValid()||!r.isValid())&&(\"millisecond\"===(t=U(t)||\"millisecond\")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Nn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Nn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Nn.isValid=function(){return m(this)},Nn.lang=cn,Nn.locale=un,Nn.localeData=dn,Nn.max=Ft,Nn.min=Bt,Nn.parsingFlags=function(){return f({},h(this))},Nn.set=function(e,t){if(\"object\"==typeof e){var n,r=function(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:G[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=U(e)]))return this[e](t);return this},Nn.startOf=function(e){var t,n;if(void 0===(e=U(e))||\"millisecond\"===e||!this.isValid())return this;switch(n=this._isUTC?An:vn,e){case\"year\":t=n(this.year(),0,1);break;case\"quarter\":t=n(this.year(),this.month()-this.month()%3,1);break;case\"month\":t=n(this.year(),this.month(),1);break;case\"week\":t=n(this.year(),this.month(),this.date()-this.weekday());break;case\"isoWeek\":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case\"day\":case\"date\":t=n(this.year(),this.month(),this.date());break;case\"hour\":t=this._d.valueOf(),t-=mn(t+(this._isUTC?0:this.utcOffset()*fn),gn);break;case\"minute\":t=this._d.valueOf(),t-=mn(t,fn);break;case\"second\":t=this._d.valueOf(),t-=mn(t,pn)}return this._d.setTime(t),o.updateOffset(this,!0),this},Nn.subtract=on,Nn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Nn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Nn.toDate=function(){return new Date(this.valueOf())},Nn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",F(n,\"Z\")):F(n,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\")},Nn.inspect=function(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var e,t,n,r=\"moment\",o=\"\";return this.isLocal()||(r=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",o=\"Z\"),e=\"[\"+r+'(\"]',t=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",n=o+'[\")]',this.format(e+t+\"-MM-DD[T]HH:mm:ss.SSS\"+n)},\"undefined\"!=typeof Symbol&&null!=Symbol.for&&(Nn[Symbol.for(\"nodejs.util.inspect.custom\")]=function(){return\"Moment<\"+this.format()+\">\"}),Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf(\"day\").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return\"\"},Nn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf(\"day\").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return\"\"},Nn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf(\"day\").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return\"\"},Nn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf(\"day\").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*n+a[e].offset;return this.year()},Nn.year=Ne,Nn.isLeapYear=function(){return Ae(this.year())},Nn.weekYear=function(e){return _n.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(e){return _n.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Nn.month=Ye,Nn.daysInMonth=function(){return xe(this.year(),this.month())},Nn.week=Nn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\")},Nn.isoWeek=Nn.isoWeeks=function(e){var t=Qe(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\")},Nn.weeksInYear=function(){var e=this.localeData()._week;return Ke(this.year(),e.dow,e.doy)},Nn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ke(this.weekYear(),e.dow,e.doy)},Nn.isoWeeksInYear=function(){return Ke(this.year(),1,4)},Nn.isoWeeksInISOWeekYear=function(){return Ke(this.isoWeekYear(),1,4)},Nn.date=wn,Nn.day=Nn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Pe(this,\"Day\");return null!=e?(e=function(e,t){return\"string\"!=typeof e?e:isNaN(e)?\"number\"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,\"d\")):t},Nn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\")},Nn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return\"string\"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Nn.dayOfYear=function(e){var t=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\")},Nn.hour=Nn.hours=st,Nn.minute=Nn.minutes=Sn,Nn.second=Nn.seconds=Dn,Nn.millisecond=Nn.milliseconds=On,Nn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if(\"string\"==typeof e){if(null===(e=qt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Qt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,\"m\"),a!==e&&(!t||this._changeInProgress?nn(this,Jt(e-a,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Qt(this)},Nn.utc=function(e){return this.utcOffset(0,e)},Nn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qt(this),\"m\")),this},Nn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if(\"string\"==typeof this._i){var e=qt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Nn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nn.isUtc=Kt,Nn.isUTC=Kt,Nn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},Nn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},Nn.dates=w(\"dates accessor is deprecated. Use date instead.\",wn),Nn.months=w(\"months accessor is deprecated. Use month instead\",Ye),Nn.years=w(\"years accessor is deprecated. Use year instead\",Ne),Nn.zone=w(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Nn.isDSTShifted=w(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=xt(t))._a?(e=t._isUTC?g(t._a):kt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&fe(e[r])!==fe(t[r]))&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Pn=N.prototype;function Mn(e,t,n,r){var o=At(),a=g().set(r,t);return o[n](a,e)}function xn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||\"\",null!=t)return Mn(e,t,n,\"month\");var r,o=[];for(r=0;r<12;r++)o[r]=Mn(e,r,n,\"month\");return o}function In(e,t,n,r){\"boolean\"==typeof e?(c(t)&&(n=t,t=void 0),t=t||\"\"):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||\"\");var o,a=At(),i=e?a._week.dow:0,l=[];if(null!=n)return Mn(t,(n+i)%7,r,\"day\");for(o=0;o<7;o++)l[o]=Mn(t,(o+i)%7,r,\"day\");return l}Pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},Pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return\"MMMM\"===e||\"MM\"===e||\"DD\"===e||\"dddd\"===e?e.slice(1):e}).join(\"\"),this._longDateFormat[e])},Pn.invalidDate=function(){return this._invalidDate},Pn.ordinal=function(e){return this._ordinal.replace(\"%d\",e)},Pn.preparse=Ln,Pn.postformat=Ln,Pn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},Pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?\"future\":\"past\"];return D(n)?n(t):n.replace(/%s/i,t)},Pn.set=function(e){var t,n;for(n in e)l(e,n)&&(D(t=e[n])?this[n]=t:this[\"_\"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source)},Pn.eras=function(e,t){var n,r,a,i=this._eras||At(\"en\")._eras;for(n=0,r=i.length;n<r;++n)switch(\"string\"==typeof i[n].since&&(a=o(i[n].since).startOf(\"day\"),i[n].since=a.valueOf()),typeof i[n].until){case\"undefined\":i[n].until=1/0;break;case\"string\":a=o(i[n].until).startOf(\"day\").valueOf(),i[n].until=a.valueOf()}return i},Pn.erasParse=function(e,t,n){var r,o,a,i,l,s=this.eras();for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(a=s[r].name.toUpperCase(),i=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),n)switch(t){case\"N\":case\"NN\":case\"NNN\":if(i===e)return s[r];break;case\"NNNN\":if(a===e)return s[r];break;case\"NNNNN\":if(l===e)return s[r]}else if([a,i,l].indexOf(e)>=0)return s[r]},Pn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},Pn.erasAbbrRegex=function(e){return l(this,\"_erasAbbrRegex\")||En.call(this),e?this._erasAbbrRegex:this._erasRegex},Pn.erasNameRegex=function(e){return l(this,\"_erasNameRegex\")||En.call(this),e?this._erasNameRegex:this._erasRegex},Pn.erasNarrowRegex=function(e){return l(this,\"_erasNarrowRegex\")||En.call(this),e?this._erasNarrowRegex:this._erasRegex},Pn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Be).test(t)?\"format\":\"standalone\"][e.month()]:a(this._months)?this._months:this._months.standalone},Pn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Be.test(t)?\"format\":\"standalone\"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Pn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return He.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp(\"^\"+this.months(o,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[r]=new RegExp(\"^\"+this.monthsShort(o,\"\").replace(\".\",\"\")+\"$\",\"i\")),n||this._monthsParse[r]||(a=\"^\"+this.months(o,\"\")+\"|^\"+this.monthsShort(o,\"\"),this._monthsParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),n&&\"MMMM\"===t&&this._longMonthsParse[r].test(e))return r;if(n&&\"MMM\"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Pn.monthsRegex=function(e){return this._monthsParseExact?(l(this,\"_monthsRegex\")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,\"_monthsRegex\")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Pn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,\"_monthsRegex\")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,\"_monthsShortRegex\")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Pn.week=function(e){return Qe(e,this._week.dow,this._week.doy).week},Pn.firstDayOfYear=function(){return this._week.doy},Pn.firstDayOfWeek=function(){return this._week.dow},Pn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?\"format\":\"standalone\"];return!0===e?$e(n,this._week.dow):e?n[e.day()]:n},Pn.weekdaysMin=function(e){return!0===e?$e(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Pn.weekdaysShort=function(e){return!0===e?$e(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Pn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return rt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(\"^\"+this.weekdays(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysShort(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysMin(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[r]||(a=\"^\"+this.weekdays(o,\"\")+\"|^\"+this.weekdaysShort(o,\"\")+\"|^\"+this.weekdaysMin(o,\"\"),this._weekdaysParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&\"ddd\"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&\"dd\"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,\"_weekdaysRegex\")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Pn.isPM=function(e){return\"p\"===(e+\"\").toLowerCase().charAt(0)},Pn.meridiem=function(e,t,n){return e>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"},mt(\"en\",{eras:[{since:\"0001-01-01\",until:1/0,offset:1,name:\"Anno Domini\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"Before Christ\",narrow:\"BC\",abbr:\"BC\"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===fe(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")}}),o.lang=w(\"moment.lang is deprecated. Use moment.locale instead.\",mt),o.langData=w(\"moment.langData is deprecated. Use moment.localeData instead.\",At);var kn=Math.abs;function Bn(e,t,n,r){var o=Jt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Fn(e){return e<0?Math.floor(e):Math.ceil(e)}function jn(e){return 4800*e/146097}function Hn(e){return 146097*e/4800}function Un(e){return function(){return this.as(e)}}var Yn=Un(\"ms\"),Gn=Un(\"s\"),zn=Un(\"m\"),Vn=Un(\"h\"),qn=Un(\"d\"),Wn=Un(\"w\"),Qn=Un(\"M\"),Kn=Un(\"Q\"),$n=Un(\"y\"),Xn=Yn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zn=Jn(\"milliseconds\"),er=Jn(\"seconds\"),tr=Jn(\"minutes\"),nr=Jn(\"hours\"),rr=Jn(\"days\"),or=Jn(\"months\"),ar=Jn(\"years\");var ir=Math.round,lr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sr(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var ur=Math.abs;function cr(e){return(e>0)-(e<0)||+e}function dr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,l,s=ur(this._milliseconds)/1e3,u=ur(this._days),c=ur(this._months),d=this.asSeconds();return d?(e=pe(s/60),t=pe(e/60),s%=60,e%=60,n=pe(c/12),c%=12,r=s?s.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",o=d<0?\"-\":\"\",a=cr(this._months)!==cr(d)?\"-\":\"\",i=cr(this._days)!==cr(d)?\"-\":\"\",l=cr(this._milliseconds)!==cr(d)?\"-\":\"\",o+\"P\"+(n?a+n+\"Y\":\"\")+(c?a+c+\"M\":\"\")+(u?i+u+\"D\":\"\")+(t||e||s?\"T\":\"\")+(t?l+t+\"H\":\"\")+(e?l+e+\"M\":\"\")+(s?l+r+\"S\":\"\")):\"P0D\"}var pr=Ut.prototype;return pr.isValid=function(){return this._isValid},pr.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},pr.add=function(e,t){return Bn(this,e,t,1)},pr.subtract=function(e,t){return Bn(this,e,t,-1)},pr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(\"month\"===(e=U(e))||\"quarter\"===e||\"year\"===e)switch(t=this._days+r/864e5,n=this._months+jn(t),e){case\"month\":return n;case\"quarter\":return n/3;case\"year\":return n/12}else switch(t=this._days+Math.round(Hn(this._months)),e){case\"week\":return t/7+r/6048e5;case\"day\":return t+r/864e5;case\"hour\":return 24*t+r/36e5;case\"minute\":return 1440*t+r/6e4;case\"second\":return 86400*t+r/1e3;case\"millisecond\":return Math.floor(864e5*t)+r;default:throw new Error(\"Unknown unit \"+e)}},pr.asMilliseconds=Yn,pr.asSeconds=Gn,pr.asMinutes=zn,pr.asHours=Vn,pr.asDays=qn,pr.asWeeks=Wn,pr.asMonths=Qn,pr.asQuarters=Kn,pr.asYears=$n,pr.valueOf=Xn,pr._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,l=this._months,s=this._data;return a>=0&&i>=0&&l>=0||a<=0&&i<=0&&l<=0||(a+=864e5*Fn(Hn(l)+i),i=0,l=0),s.milliseconds=a%1e3,e=pe(a/1e3),s.seconds=e%60,t=pe(e/60),s.minutes=t%60,n=pe(t/60),s.hours=n%24,i+=pe(n/24),l+=o=pe(jn(i)),i-=Fn(Hn(o)),r=pe(l/12),l%=12,s.days=i,s.months=l,s.years=r,this},pr.clone=function(){return Jt(this)},pr.get=function(e){return e=U(e),this.isValid()?this[e+\"s\"]():NaN},pr.milliseconds=Zn,pr.seconds=er,pr.minutes=tr,pr.hours=nr,pr.days=rr,pr.weeks=function(){return pe(this.days()/7)},pr.months=or,pr.years=ar,pr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=lr;return\"object\"==typeof e&&(t=e,e=!1),\"boolean\"==typeof e&&(o=e),\"object\"==typeof t&&(a=Object.assign({},lr,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=function(e,t,n,r){var o=Jt(e).abs(),a=ir(o.as(\"s\")),i=ir(o.as(\"m\")),l=ir(o.as(\"h\")),s=ir(o.as(\"d\")),u=ir(o.as(\"M\")),c=ir(o.as(\"w\")),d=ir(o.as(\"y\")),p=a<=n.ss&&[\"s\",a]||a<n.s&&[\"ss\",a]||i<=1&&[\"m\"]||i<n.m&&[\"mm\",i]||l<=1&&[\"h\"]||l<n.h&&[\"hh\",l]||s<=1&&[\"d\"]||s<n.d&&[\"dd\",s];return null!=n.w&&(p=p||c<=1&&[\"w\"]||c<n.w&&[\"ww\",c]),(p=p||u<=1&&[\"M\"]||u<n.M&&[\"MM\",u]||d<=1&&[\"y\"]||[\"yy\",d])[2]=t,p[3]=+e>0,p[4]=r,sr.apply(null,p)}(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},pr.toISOString=dr,pr.toString=dr,pr.toJSON=dr,pr.locale=un,pr.localeData=dn,pr.toIsoString=w(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",dr),pr.lang=cn,k(\"X\",0,0,\"unix\"),k(\"x\",0,0,\"valueOf\"),ue(\"x\",re),ue(\"X\",/[+-]?\\d+(\\.\\d{1,3})?/),he(\"X\",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),he(\"x\",function(e,t,n){n._d=new Date(fe(e))}),o.version=\"2.30.1\",t=kt,o.fn=Nn,o.min=function(){return jt(\"isBefore\",[].slice.call(arguments,0))},o.max=function(){return jt(\"isAfter\",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=g,o.unix=function(e){return kt(1e3*e)},o.months=function(e,t){return xn(e,t,\"months\")},o.isDate=d,o.locale=mt,o.invalid=v,o.duration=Jt,o.isMoment=_,o.weekdays=function(e,t,n){return In(e,t,n,\"weekdays\")},o.parseZone=function(){return kt.apply(null,arguments).parseZone()},o.localeData=At,o.isDuration=Yt,o.monthsShort=function(e,t){return xn(e,t,\"monthsShort\")},o.weekdaysMin=function(e,t,n){return In(e,t,n,\"weekdaysMin\")},o.defineLocale=vt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=ct;null!=dt[e]&&null!=dt[e].parentLocale?dt[e].set(R(dt[e]._config,t)):(null!=(r=ht(e))&&(o=r._config),t=R(o,t),null==r&&(t.abbr=e),(n=new N(t)).parentLocale=dt[e],dt[e]=n),mt(e)}else null!=dt[e]&&(null!=dt[e].parentLocale?(dt[e]=dt[e].parentLocale,e===mt()&&mt(e)):null!=dt[e]&&delete dt[e]);return dt[e]},o.locales=function(){return S(dt)},o.weekdaysShort=function(e,t,n){return In(e,t,n,\"weekdaysShort\")},o.normalizeUnits=U,o.relativeTimeRounding=function(e){return void 0===e?ir:\"function\"==typeof e&&(ir=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==lr[e]&&(void 0===t?lr[e]:(lr[e]=t,\"s\"===e&&(lr.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\"},o.prototype=Nn,o.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"GGGG-[W]WW\",MONTH:\"YYYY-MM\"},o}()},95272:(e,t,n)=>{\"use strict\";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=c(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==c(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function s(e,t){if(e){if(\"string\"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},c(e)}n.d(t,{HU:()=>g,LA:()=>h,XC:()=>p}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(5506),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var d={tmhq:{field:\"demoDistributorHQ.headQuarterData.id\"},crop:{field:\"demoCropConfig.cropBu.crop.id\"},distributor:{field:\"demoDistributorHQ.distributor.id\"},status:{field:\"demoStatus\"}};function p(e){var t;return[{field:\"demoDistributorHQ.headQuarterData.buId\",operator:\"EQUALS\",value:null==e||null===(t=e.selectedBusinessUnit)||void 0===t?void 0:t.bu_id}]}function f(e,t,n){if(\"status\"===e||\"tmhq\"===e){var r=null==t?void 0:t[e];return r&&\"object\"===c(r)&&r.value?[r.value]:[]}var o=null==t?void 0:t[e];return Array.isArray(o)&&o.filter(function(e){return null==e?void 0:e.checked}).map(function(e){return e.value})||[]}function g(e){var t,n,r=e.defaultFilters,a=e.searchFilters,s=e.selectedFilters,u=(e.DEMO_PMIN_STATUS,e.paginationState);return{sort:e.DEFAULT_SORT,filter:[].concat(l(r),l(a),l(Object.entries(d).filter(function(e){return f(i(e,1)[0],s).length>0}).map(function(e){var t=i(e,2),n=t[0];return o(o({},t[1]),{},{operator:\"IN\",values:f(n,s)})}))),pageNo:u.pageNo,pageSize:u.pageSize,searchKey:null!==(t=null==a||null===(n=a[0])||void 0===n?void 0:n.value)&&void 0!==t?t:null}}var h=function(e){var t;return(null===(t=e.find(function(e){return 214===(null==e?void 0:e.id)}))||void 0===t?void 0:t.value)?e.map(function(e){return[211,212,213,214].includes(e.id)?214===(null==e?void 0:e.id)?o(o({},e),{},{value:\"Yes\"}):e:o(o({},e),{},{value:\"NA\"})}):e.map(function(e){return o(o({},e),{},{value:214===(null==e?void 0:e.id)?\"No\":null==e?void 0:e.value})})}},95277:(e,t,n)=>{\"use strict\";e.exports=n.p+\"31010f0e872419793656.woff\"},95533:function(e,t,n){!function(e){\"use strict\";var t={1:\"-inci\",5:\"-inci\",8:\"-inci\",70:\"-inci\",80:\"-inci\",2:\"-nci\",7:\"-nci\",20:\"-nci\",50:\"-nci\",3:\"-üncü\",4:\"-üncü\",100:\"-üncü\",6:\"-ncı\",9:\"-uncu\",10:\"-uncu\",30:\"-uncu\",60:\"-ıncı\",90:\"-ıncı\"};e.defineLocale(\"az\",{months:\"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr\".split(\"_\"),monthsShort:\"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek\".split(\"_\"),weekdays:\"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə\".split(\"_\"),weekdaysShort:\"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən\".split(\"_\"),weekdaysMin:\"Bz_BE_ÇA_Çə_CA_Cü_Şə\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[bugün saat] LT\",nextDay:\"[sabah saat] LT\",nextWeek:\"[gələn həftə] dddd [saat] LT\",lastDay:\"[dünən] LT\",lastWeek:\"[keçən həftə] dddd [saat] LT\",sameElse:\"L\"},relativeTime:{future:\"%s sonra\",past:\"%s əvvəl\",s:\"bir neçə saniyə\",ss:\"%d saniyə\",m:\"bir dəqiqə\",mm:\"%d dəqiqə\",h:\"bir saat\",hh:\"%d saat\",d:\"bir gün\",dd:\"%d gün\",M:\"bir ay\",MM:\"%d ay\",y:\"bir il\",yy:\"%d il\"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?\"gecə\":e<12?\"səhər\":e<17?\"gündüz\":\"axşam\"},dayOfMonthOrdinalParse:/\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+\"-ıncı\";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},95557:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{default:()=>Ve}),n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(51629),n(23418),n(64346),n(23792),n(48598),n(62062),n(34782),n(89572),n(23288),n(62010),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(25440),n(23500),n(62953);var r=n(90815),o=n(28161),a=n(14073),i=n(81970),l=n.n(i),s=n(34195),u=n(8085),c=n(96348),d=n(47225),p=n(13075),f=n(92416),g=n(64121),h=n(46374),m=n(50275),v=n(19940),A=n(7318),y=(n(60739),n(3362),n(95692)),E=function(e){return e.ATTENDANCE_PAYCYCLE_ENDDATE=\"attendance_paycycle_end_date\",e.ATTENDANCE_APPROVER_CONFIGURATIONS=\"attendance_approver_configurations\",e.ATTENDANCE=\"ATTENDANCE\",e.ATTENDANCE_IS_APPROVER_REQUIRED=\"attendance_is_approval_required\",e.ATTENDANCE_APPROVAL=\"ATTENDANCE-APPROVAL\",e.ATTENDANCE_ENABLE_COMP_OFF=\"attendance_enable_comp_off\",e}({}),b=[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],_=function(e){return e.FETCH_ATTENDANCE_APPROVER=\"fetch_attendance_approver\",e.FETCH_BASIC_CONFIGURATION_END_DATE=\"fetch_basic_configuration_end_date\",e.FETCH_APPROVER_CONFIG_DATA=\"fetch_approver_config_data\",e.IS_APPROVAL_REQUIRED=\"is_approval_required\",e}({}),C=function(e){return e===_.FETCH_BASIC_CONFIGURATION_END_DATE?E.ATTENDANCE_PAYCYCLE_ENDDATE:e===_.FETCH_APPROVER_CONFIG_DATA?E.ATTENDANCE_APPROVER_CONFIGURATIONS:E.ATTENDANCE_IS_APPROVER_REQUIRED},w=function(e,t,n,r,o){var a=S(e,t,n,r,o,arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\");return new Promise(function(e,t){var n;null===(n=y.N.get(a))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})})},S=function(e,t,n,r,o){var a,i,l,s,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",d={};if(e===_.FETCH_ATTENDANCE_APPROVER?d.endPoint=u.p.GET_ATTENDANCE_APPROVER.replace(\"__COUNTRY_ID__\",\"\".concat(null==t||null===(a=t.selectedApplication)||void 0===a?void 0:a.country_app_id)).replace(\"__BU_ID__\",\"\".concat(null==t||null===(i=t.selectedBusinessUnit)||void 0===i?void 0:i.bu_id)):e===_.FETCH_BASIC_CONFIGURATION_END_DATE||e===_.FETCH_APPROVER_CONFIG_DATA?d.endPoint=u.p.GET_ATTENDANCE_CONFIG_DATA:e===_.IS_APPROVAL_REQUIRED&&(d.endPoint=\"\".concat(u.p.GET_ATTENDANCE_CONFIG_DATA,\"?keys=\").concat(E.ATTENDANCE_IS_APPROVER_REQUIRED,\"&keys=\").concat(E.ATTENDANCE_ENABLE_COMP_OFF,\"&portfolioCode=\").concat((0,p.XD)(c,t))),d.domain=n,e===_.FETCH_ATTENDANCE_APPROVER)d.customHeaders={\"country-code\":null===(l=t.selectedCountry)||void 0===l?void 0:l.countryCode,Authorization:\"Bearer \".concat(null!==(s=null==t?void 0:t.AccessToken)&&void 0!==s?s:\"\")},d.payLoad={module_key:E.ATTENDANCE_APPROVAL,marker_id:null==r?void 0:r.value,permissions:\"CREATE\"};else if(e===_.FETCH_BASIC_CONFIGURATION_END_DATE||e===_.FETCH_APPROVER_CONFIG_DATA||e===_.IS_APPROVAL_REQUIRED){var f,g,h;d.customHeaders={\"country-code\":null===(f=t.selectedCountry)||void 0===f?void 0:f.countryCode,Authorization:\"Bearer \".concat(null!==(g=null==t?void 0:t.AccessToken)&&void 0!==g?g:\"\"),\"bu-id\":null==t||null===(h=t.selectedBusinessUnit)||void 0===h?void 0:h.bu_id,\"role-id\":null==r?void 0:r.value},e===_.IS_APPROVAL_REQUIRED?d.payLoad={moduleName:E.ATTENDANCE}:d.payLoad={moduleName:E.ATTENDANCE,keys:C(e),portfolioCode:c||\"DEFAULT\"}}return d.triggerLoader=o,d},T=(n(16034),n(26009)),O={},D=n(32027),R=(n(88431),n(74423),n(26910),n(40150),n(87220),n(25843),n(5506),n(21699),n(47767)),N=n(79043),L=n(64499),P=[{label:\"Monday\",value:\"1\"},{label:\"Tuesday\",value:\"2\"},{label:\"Wednesday\",value:\"3\"},{label:\"Thursday\",value:\"4\"},{label:\"Friday\",value:\"5\"},{label:\"Saturday\",value:\"6\"},{label:\"Sunday\",value:\"7\"}],M=/^(0|[1-9]\\d{0,2})$/,x=(n(15086),n(90891)),I=n(9483),k=n(39118),B=n(47839),F=n(11641),j=n(60538),H=n(6347),U=n(8239),Y=n(25239),G=n(88084),z=n(87622),V=n(17630),q=n(15664),W=n(19021),Q=n(74347),K=n(15941),$=function(){return K.Ik().shape({startDate:K.Ik().required((0,p.Tl)(\"START_DATE_REQUIRED\")),endDate:K.Ik().required((0,p.Tl)(\"END_DATE_REQUIRED\")),noOfDays:K.Ik().required((0,p.Tl)(\"NO_OF_DAYS_REQUIRED\")),backwardDays:K.Ik().required((0,p.Tl)(\"BACKWARD_DAYS_REQUIRED\")),forwardDays:K.Ik().required((0,p.Tl)(\"FORWARDDAYS_REQUIRED\")),noOfMonths:K.Ik().required((0,p.Tl)(\"MONTHS_REQUIRED\")),weekOffDay:K.YO().nullable().min(1,(0,p.Tl)(\"AT_LEAST_1_DAY\")).required((0,p.Tl)(\"WEEK_DAY_REQUIRED\"))})},X=n(6398),J=n(43457),Z=(0,X.A)({AdminConfigFields:{height:\"calc(100vh - 330px)\",overflow:\"auto\",marginBottom:\"20px\",scrollbarWidth:\"thin\",\"&::-webkit-scrollbar\":{width:\"6px\"},\"&::-webkit-scrollbar-track\":{borderRadius:\"10px\"},\"&::-webkit-scrollbar-thumb \":{borderRadius:\"10px\",backgroundColor:\"#CFD3DB\"}},AdminConfig:{padding:\"16px\",minHeight:\"60px\",borderRadius:\"6px\",\"& .btn-icon\":{fontSize:\"14px !important\"},marginBottom:\"16px\",border:\"1px solid #E8EAED\"},adminConfigInputWrapper:{minWidth:\"240px\",\"& .multi-select-container\":{\"& .dropdown-content\":{zIndex:\"99 !important\",paddingBottom:\"10px\"},\"& .rmsc .options\":{height:\"160px\"}}},AdminConfigTooltip:{\"& .MuiTooltip-popper\":{backgroundColor:V.w.palette.grey[500]}},readOnlyFiled:{opacity:\"0.5\",cursor:\"not-allowed\",\"& .Mui-disabled\":{cursor:\"not-allowed !important\"}},OverLay:{overlay:J.Lw}});function ee(e){return ee=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach(function(t){re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function re(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ee(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ee(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=function(e){var t=e.initialForm,n=e.saveAttendanceTypes,i=e.UpdateForm,u=e.selectedMarker,c=e.fetchBasicConfigurationEndDates,d=e.generateArrayOfObjects,p=e.minMaxValueByKey,f=e.manPowerStartDate,h=e.manPowerEndDate,m=e.eventTypes,v=e.daysOfTargetCreation,A=e.handleChange,y=e.incrementByOne,E=e.updateDaysOfTargetCreation,b=e.decrementByOne,_=e.hasErr,C=e.setEnablePopup,w=e.renderConfirmationPopupToResetForm,S=(0,R.Zp)(),T=(0,s.Bd)().t,O=Z(),D=function(e){return P.map(function(t){return ne(ne({},t),{},{disabled:(null==e?void 0:e.weekOffDay)&&(null==e?void 0:e.weekOffDay.length)>=2&&!(null!=e&&e.weekOffDay.some(function(e){return e.value===t.value}))})})},N=function(e,t){return l().createElement(r.A,{direction:\"row\",spacing:2,alignItems:\"center\"},l().createElement(a.A,{variant:\"subtitle1\",color:V.T.primaryBlack},e),l().createElement(B.A,{title:t,placement:\"right\",arrow:!0,className:O.AdminConfigTooltip},l().createElement(F.A,null,l().createElement(x.A,null))))};return l().createElement(G.l1,{initialValues:t,validationSchema:$,enableReinitialize:!0,onSubmit:function(e,t){n(e)}},function(e){var n,s=e.values,R=e.setFieldValue,L=e.dirty;return i(L),l().createElement(G.lV,null,l().createElement(o.A,{position:\"relative\"},!(null!=u&&u.value)&&l().createElement(o.A,{className:O.OverLay}),l().createElement(o.A,{className:O.AdminConfigFields},l().createElement(j.A,{className:O.AdminConfig,elevation:0},N(T(\"PAYCYCLE_CONFIG\"),T(\"SELECT_PAYCYCLE_START_DATE\")),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\"},T(\"START_DATE\")),l().createElement(G.D0,{name:\"startDate\"},function(){var e,n;return l().createElement(g.A,{name:\"startDate\",onChange:function(e,n){var r;console.log(null==t||null===(r=t.manPower)||void 0===r?void 0:r.value,\"onchangeinitialform\"),R(\"startDate\",n),R(\"endDate\",{label:String(Number(n.label)-1),value:n.value-1}),R(\"manPower\",{label:String(Number(n.label)),value:n.value}),c(n)},options:d(null==p||null===(e=p.attendance_paycycle_start_date)||void 0===e?void 0:e.min,null==p||null===(n=p.attendance_paycycle_start_date)||void 0===n?void 0:n.max),labelKey:\"label\",label:\"startDate\",selectedOption:s.startDate,value:s.startDate,defaultLabel:\"Select Date\"})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"startDate\"}))),l().createElement(o.A,{className:\"\".concat(O.adminConfigInputWrapper,\" \").concat(O.readOnlyFiled)},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\"},T(\"END_DATE\")),l().createElement(G.D0,{name:\"endDate\"},function(){var e,t;return l().createElement(g.A,{name:\"endDate\",onChange:function(e,t){R(\"endDate\",t)},options:d(null==p||null===(e=p.attendance_paycycle_end_date)||void 0===e?void 0:e.min,null==p||null===(t=p.attendance_paycycle_end_date)||void 0===t?void 0:t.max),labelKey:\"label\",label:\"endDate\",selectedOption:s.endDate,value:s.endDate,defaultLabel:\"Select Date\",isDisabled:!0})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"endDate\"}))),l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\"},T(\"MAN_POOWER_REPORT_GENERATOR\")),l().createElement(G.D0,{name:\"manPower\"},function(){return l().createElement(g.A,{name:\"manPower\",onChange:function(e,t){R(\"manPower\",t)},options:d(f,h),labelKey:\"label\",label:\"manPower\",selectedOption:s.manPower,value:s.manPower,defaultLabel:\"Select ManPower Date\"})})))),l().createElement(j.A,{className:O.AdminConfig,elevation:0},N(T(\"PAST_ATTENDANCE_DAYS\"),\"No of days for selecting past attendance\"),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2,\"aria-label\":\"no_of_days\"},l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\",\"aria-label\":\"no_of_days_label\"},T(\"NO_OF_DAYS\")),l().createElement(G.D0,{name:\"noOfDays\"},function(){var e,t;return l().createElement(g.A,{name:\"noOfDays\",onChange:function(e,t){R(\"noOfDays\",t),R(\"backwardDays\",t)},options:d(null==p||null===(e=p.attendance_mark_past_attendance_in_days)||void 0===e?void 0:e.min,null==p||null===(t=p.attendance_mark_past_attendance_in_days)||void 0===t?void 0:t.max),labelKey:\"label\",label:\"noOfDays\",selectedOption:s.noOfDays,value:s.noOfDays,defaultLabel:\"Select Date\"})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"noOfDays\"}))))),l().createElement(j.A,{className:O.AdminConfig,elevation:0},N(T(\"LEAVE_DURATION\"),\"How many days off can be planned in advance\"),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2,\"aria-label\":\"backward_days\"},l().createElement(o.A,{className:\"\".concat(O.adminConfigInputWrapper,\" \").concat(O.readOnlyFiled)},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\",\"aria-label\":\"backward_days_label\"},T(\"BACK_WARD_DAYS\")),l().createElement(G.D0,{name:\"backwardDays\"},function(){var e,t;return l().createElement(g.A,{name:\"backwardDays\",onChange:function(e,t){R(\"backwardDays\",t)},options:d(null==p||null===(e=p.attendance_mark_past_leave_in_days)||void 0===e?void 0:e.min,null==p||null===(t=p.attendance_mark_past_leave_in_days)||void 0===t?void 0:t.max),labelKey:\"label\",label:\"backwardDays\",selectedOption:s.backwardDays,value:s.backwardDays,defaultLabel:\"Select BackwardDays\",isDisabled:!0})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"backwardDays\"}))),l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\"},T(\"FORWARD_DAYS\")),l().createElement(G.D0,{name:\"forwardDays\"},function(){var e,t;return l().createElement(g.A,{name:\"forwardDays\",onChange:function(e,t){R(\"forwardDays\",t)},options:d(null==p||null===(e=p.attendance_mark_future_leave_in_days)||void 0===e?void 0:e.min,null==p||null===(t=p.attendance_mark_future_leave_in_days)||void 0===t?void 0:t.max),labelKey:\"label\",label:\"forwardDays\",selectedOption:s.forwardDays,value:s.forwardDays,defaultLabel:\"Select Forward Days\"})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"forwardDays\"}))))),l().createElement(j.A,{className:O.AdminConfig,elevation:0},N(T(\"WEEKLY_OFF\"),\"What days of the week are weekly off\"),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2,\"aria-label\":\"week_off_day\"},l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\",\"aria-label\":\"week_off_day_label\"},T(\"SELECT_DAY\")),l().createElement(G.D0,{name:\"weekOffDay\"},function(){var e;return l().createElement(\"div\",{className:\"multi-select-container\"},l().createElement(z.KF,{options:D(s),value:null!==(e=null==s?void 0:s.weekOffDay)&&void 0!==e?e:[],onChange:function(e){e.length<=2&&R(\"weekOffDay\",e)},labelledBy:\"Select\",hasSelectAll:!1,disableSearch:!0}))}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"weekOffDay\"}))))),l().createElement(j.A,{className:O.AdminConfig,elevation:0},N(T(\"VIEW_ATTENDANCE_HISTORY\"),T(\"VIEW_ATTENDANCE_HISTORY_TOOLTIP\")),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2,\"aria-label\":\"no_of_months\"},l().createElement(o.A,{className:O.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontFamily:\"NotoSans-SemiBold\",\"aria-label\":\"no_of_months_label\"},T(\"NO_OF_MONTHS\")),l().createElement(G.D0,{name:\"noOfMonths\"},function(){var e,t;return l().createElement(g.A,{name:\"noOfMonths\",onChange:function(e,t){R(\"noOfMonths\",t)},options:d(null==p||null===(e=p.attendance_view_attendance_history_in_months)||void 0===e?void 0:e.min,null==p||null===(t=p.attendance_view_attendance_history_in_months)||void 0===t?void 0:t.max),labelKey:\"label\",label:\"noOfMonths\",selectedOption:s.noOfMonths,value:s.noOfMonths,defaultLabel:\"Select no Of months\"})}),l().createElement(H.A,{error:!0},l().createElement(G.Kw,{name:\"noOfMonths\"}))))),\"EVENT_BASED_ATTENDANCE\"==(null==p||null===(n=p.attendance_type)||void 0===n?void 0:n.value)&&l().createElement(j.A,{elevation:0,className:O.AdminConfig},N(T(\"EVENT_BASED_ATTENDANCE\"),\"Tooltip Message\"),l().createElement(r.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"flex-start\",gap:3},l().createElement(o.A,{className:\"smart-agro-lite-box-conatiner\"},l().createElement(l().Fragment,null,l().createElement(U.Ay,{container:!0,columns:{xs:11},columnSpacing:6},m.map(function(e){var t;return l().createElement(U.Ay,{item:!0,xs:5,key:e.id},l().createElement(r.A,{flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",gap:2,mb:2},l().createElement(Q.A,{arrow:!0,placement:\"top-start\"},l().createElement(a.A,{fontSize:16,fontWeight:500,color:V.T.primaryBlack,width:\"50%\"},null==e?void 0:e.name)),l().createElement(o.A,{className:\"config-input-wrapper\"},l().createElement(W.A,{label:\"\",onHandleChange:function(t){return A(e,t)},value:null!==(t=v[e.id])&&void 0!==t?t:\"\",InputProps:{endAdornment:l().createElement(Y.A,{position:\"end\"},l().createElement(r.A,{alignItems:\"center\",className:\"input-adornment-wrapper\"},l().createElement(k.A,{onClick:function(){var t,n=null!==(t=v[e.id])&&void 0!==t?t:\"\",r=y(n);M.test(r)&&E(r,e)}}),l().createElement(I.A,{onClick:function(){var t,n=null!==(t=v[e.id])&&void 0!==t?t:\"\",r=b(n);M.test(r)&&E(r,e)}})))}}))))})),_&&l().createElement(a.A,{fontSize:12,fontWeight:700,color:\"#ff0000\",p:.5},T(\"ATLEASET_SELECT_ONE\"))))))),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},l().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},l().createElement(q.A,{buttonName:T(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return L?C(L):S(-1)}}),l().createElement(q.A,{variant:\"contained\",buttonName:T(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\",onButtonClick:function(){}})))),w())})};function ae(e){return ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ae(e)}function ie(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=de(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){ue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ue(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ae(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ae(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||de(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function de(e,t){if(e){if(\"string\"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const fe=function(e){var t,n=e.selectedMarker,r=e.portfolioCode,o=void 0===r?\"\":r,a=e.minMaxValueByKey,c=e.setIsFormDirty,f=void 0===c?function(){}:c,g=(0,i.useContext)(d.v),h=g.BackOfficeProps,m=h.globalStore.User,v=h.baseurl,A=g.triggerShowLoader,y=g.triggerToastMsg,E=(0,R.Zp)(),b=(0,s.Bd)().t,_=ce((0,i.useState)({startDate:null,endDate:null,noOfDays:null,backwardDays:null,forwardDays:null,noOfMonths:null,weekOffDay:null,manPower:null}),2),C=_[0],w=_[1],S=ce((0,i.useState)(!1),2),D=S[0],x=S[1],I=ce((0,i.useState)([]),2),k=I[0],B=I[1],F=ce((0,i.useState)({}),2),j=F[0],H=F[1],U=ce((0,i.useState)(!1),2),Y=U[0],G=U[1],z=ce((0,i.useState)(),2),V=z[0],q=z[1],W=ce((0,i.useState)(),2),Q=W[0],K=W[1],$=function(e){for(var t=[],n=null==e?void 0:e.value;n<=28;n++)t.push(n.toString());q(t[0]),K(t[t.length-1])},X=(0,i.useCallback)(function(){var e=JSON.parse(a.attendance_event_based_attendance.value),t={};if(e.length>0&&k.length>0){var n,r=ie(k);try{for(r.s();!(n=r.n()).done;){var o,i=n.value,l=0,s=ie(e);try{for(s.s();!(o=s.n()).done;){var u=o.value;Number(i.id)===Number(u.event_type_id)&&(l=u.number_of_events_to_create,t.hasOwnProperty(\"\".concat(i.id))||(t[\"\".concat(i.id)]=\"\".concat(l)))}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}}t&&H(t)},[k,a]),J=function(){var e,t,n;return null!=a&&null!==(e=a.attendance_manpower_generation_day_of_the_month)&&void 0!==e&&e.value?null==a||null===(n=a.attendance_manpower_generation_day_of_the_month)||void 0===n?void 0:n.value:null==a||null===(t=a.attendance_paycycle_start_date)||void 0===t?void 0:t.value};return(0,i.useEffect)(function(){var e;$({value:Number(null==C||null===(e=C.startDate)||void 0===e?void 0:e.value)})},[null==C||null===(t=C.startDate)||void 0===t?void 0:t.value]),(0,i.useEffect)(function(){!function(){var e,t={};t.domain=v,t.endPoint=u.p.GET_EVENTTYPES,t.customHeaders={\"country-code\":m.selectedCountry.countryCode,Authorization:\"Bearer \".concat(m.AccessToken)},t.payLoad={buId:m.selectedBusinessUnit.bu_id,portfolioCode:(0,p.gN)(o,null==m||null===(e=m.selectedBusinessUnit)||void 0===e?void 0:e.portfolio_code,\"DEFAULT\")},t.triggerLoader=A,(0,L.kQ)(t).then(function(e){if(201===e.status||200===e.status){var t=(null==e?void 0:e.data).sort(function(e,t){return e.name.localeCompare(t.name)});B(t)}}).catch(function(e){console.log(\"Fetch Brands Data Error\",e)})}()},[n,o]),(0,i.useEffect)(function(){var e,t={},n=ie(k);try{for(n.s();!(e=n.n()).done;)t[e.value.id]=\"0\"}catch(e){n.e(e)}finally{n.f()}H(t)},[k]),(0,i.useEffect)(function(){if(a){var e,t=JSON.parse(null==a||null===(e=a.attendance_week_off)||void 0===e?void 0:e.value),n=P.filter(function(e){return Object.entries(t).map(function(e){return e[1]}).includes(Number(e.value))});JSON.parse(a.attendance_event_based_attendance.value).length>0&&k.length>0&&X(),w(function(e){var t,r,o,i,l,s,u,c,d,p,f,g;return se(se({},e),{},{startDate:{label:\"\".concat(null==a||null===(t=a.attendance_paycycle_start_date)||void 0===t?void 0:t.value),value:\"\".concat(null==a||null===(r=a.attendance_paycycle_start_date)||void 0===r?void 0:r.value)},endDate:{label:\"\".concat(Number.parseInt(null==a||null===(o=a.attendance_paycycle_start_date)||void 0===o?void 0:o.value)-1),value:\"\".concat(Number.parseInt(null==a||null===(i=a.attendance_paycycle_start_date)||void 0===i?void 0:i.value)-1)},manPower:{label:\"\".concat(J()),value:\"\".concat(J())},noOfDays:{label:Number.parseInt(null==a||null===(l=a.attendance_mark_past_attendance_in_days)||void 0===l?void 0:l.value),value:Number.parseInt(null==a||null===(s=a.attendance_mark_past_attendance_in_days)||void 0===s?void 0:s.value)},backwardDays:{label:Number.parseInt(null==a||null===(u=a.attendance_mark_past_attendance_in_days)||void 0===u?void 0:u.value),value:Number.parseInt(null==a||null===(c=a.attendance_mark_past_attendance_in_days)||void 0===c?void 0:c.value)},forwardDays:{label:Number.parseInt(null==a||null===(d=a.attendance_mark_future_leave_in_days)||void 0===d?void 0:d.value),value:Number.parseInt(null==a||null===(p=a.attendance_mark_future_leave_in_days)||void 0===p?void 0:p.value)},noOfMonths:{label:Number.parseInt(null==a||null===(f=a.attendance_view_attendance_history_in_months)||void 0===f?void 0:f.value),value:Number.parseInt(null==a||null===(g=a.attendance_view_attendance_history_in_months)||void 0===g?void 0:g.value)},weekOffDay:n})})}},[a,k]),l().createElement(oe,{initialForm:C,saveAttendanceTypes:function(e){var t;Object.entries(j).every(function(e){return 0===Number(e[1])})&&\"EVENT_BASED_ATTENDANCE\"==(null==a||null===(t=a.attendance_type)||void 0===t?void 0:t.value)?G(!0):(G(!1),function(e,t,n,r){var o,a;return O.domain=t,O.endPoint=u.p.SAVE_ATTENDANCE_TYPES,O.customHeaders={\"country-code\":null==e||null===(o=e.selectedCountry)||void 0===o?void 0:o.countryCode,\"user-id\":null==e||null===(a=e.UserDetails)||void 0===a?void 0:a.user_id,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},O.payLoad=r,O.triggerLoader=n,(0,p.AT)(\"post\",O,!1)}(m,v,A,function(e){var t,r,a,i,l,s,u,c,d,f,g,h,v,A=(0,p.gN)(o,null==m||null===(t=m.selectedBusinessUnit)||void 0===t?void 0:t.portfolio_code,\"DEFAULT\");return[{key:T.H.ATTENDANCE_PAYCYCLE_START_DATE,value:null==e||null===(r=e.startDate)||void 0===r?void 0:r.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_PAYCYCLE_END_DATE,value:null==e||null===(a=e.endDate)||void 0===a?void 0:a.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDNACE_MARK_PAST_ATTENDNACE_IN_DAYS,value:null==e||null===(i=e.noOfDays)||void 0===i?void 0:i.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE__MARK_PAST_LEAVE_IN_DAYS,value:null==e||null===(l=e.backwardDays)||void 0===l?void 0:l.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_MARK_FEATURE_LEAVE_IN_DAYS,value:null==e||null===(s=e.forwardDays)||void 0===s?void 0:s.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_VIEW_ATTENDANCE_HISTORY_IN_MONTHS,value:null==e||null===(u=e.noOfMonths)||void 0===u?void 0:u.value,marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_WEEK_OFF,value:JSON.stringify({day_one:null!==(c=e.weekOffDay)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.value?Number(null===(d=e.weekOffDay)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.value):0,day_two:null!==(f=e.weekOffDay)&&void 0!==f&&null!==(f=f[1])&&void 0!==f&&f.value?Number(null===(g=e.weekOffDay)||void 0===g||null===(g=g[1])||void 0===g?void 0:g.value):0}),marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_EVENT_BASED_ATTENDANCE,value:(v=Object.entries(j).map(function(e){var t=ce(e,2),n=t[0],r=t[1];return{event_type_id:Number(n),number_of_events_to_create:Number(r)}}),JSON.stringify(v)),marker_id:null==n?void 0:n.value,portfolio_code:A},{key:T.H.ATTENDANCE_MANPOWER_GENERATION_DAY_OF_THE_MONTH,value:null==e||null===(h=e.manPower)||void 0===h?void 0:h.value,marker_id:null==n?void 0:n.value,portfolio_code:A}]}(e)).then(function(e){var t=(0,p.mN)(e);y({message:t?e.data:e.data.error,type:t?\"success\":\"error\"})}).catch(function(e){y({message:e.message,type:\"error\"})}))},UpdateForm:function(e){f(e)},selectedMarker:n,fetchBasicConfigurationEndDates:$,generateArrayOfObjects:function(e,t){for(var n=[],r=Number(e);r<=Number(t);r++){var o={label:r,value:r};n.push(o)}return n},minMaxValueByKey:a,manPowerStartDate:V,manPowerEndDate:Q,eventTypes:k,daysOfTargetCreation:j,handleChange:function(e,t){M.test(t)&&H(function(n){return se(se({},n),{},ue({},e.id,t))})},incrementByOne:function(e){var t=Number.parseFloat(e);return Number.isNaN(t)?e:(t+1).toString()},updateDaysOfTargetCreation:function(e,t){H(function(n){return se(se({},n),{},ue({},t.id,e))})},decrementByOne:function(e){var t=Number.parseFloat(e);return!Number.isNaN(t)&&t>0?(t-1).toString():e},hasErr:Y,setEnablePopup:x,renderConfirmationPopupToResetForm:function(){return l().createElement(N.B,{isVisible:D,message:\"\".concat(b(\"CONFIRMATION_TEXT\")),onRequestClose:function(){return x(!1)},onButtonClick:function(){E(-1),x(!1)}})}})};var ge,he=[\"1\",\"2\"],me=function(e){return e.MODULE_NAME=\"ATTENDANCE\",e}({}),ve=function(e){return e.TOTAL_ANNUAL_LEAVES=\"attendance_total_annual_leaves\",e.CARRY_FORWARD_LEAVES=\"attendance_carry_forward_leaves_annually\",e.MAX_COMP_OFF=\"attendance_max_comp_off_monthly\",e.COMP_OFF_VALIDITY=\"attendance_comp_off_validity_in_months\",e}({}),Ae=function(e){var t;return{\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(t=e.selectedCountry)||void 0===t?void 0:t.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)}},ye=(n(12041),n(56203)),Ee=function(){return K.Ik().shape({attendance_total_annual_leaves:K.ai().notRequired(),attendance_carry_forward_leaves_annually:K.ai().when([\"attendance_total_annual_leaves\"],function(e,t){return t.test({test:function(t){return e>=t},message:\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\"})}),attendance_max_comp_off_monthly:K.ai().notRequired(),attendance_comp_off_validity_in_months:K.ai().notRequired()})};n(52811);var be,_e,Ce=(0,n(11848).Ay)(o.A)(ge||(be=[\"\\n.MuiTextField-root{\\nmin-width:100%;\\nbackground-color:\",\"\\n\\n}\\n\\n\"],_e||(_e=be.slice(0)),ge=Object.freeze(Object.defineProperties(be,{raw:{value:Object.freeze(_e)}}))),V.w.palette.secondary.main),we=n(28152);const Se=function(e){var t=e.initialForm,n=e.onSubmitLeaveConfig,i=e.onCancel,s=function(e){return null==e?void 0:e.replaceAll(/\\D/g,\"\")};return l().createElement(Ce,null,l().createElement(G.l1,{initialValues:t,enableReinitialize:!0,validationSchema:Ee,onSubmit:function(e,t){return n(e)}},function(e){var t=e.values,n=e.setFieldValue;return l().createElement(G.lV,null,l().createElement(o.A,{p:2},l().createElement(o.A,{width:280,p:1},l().createElement(a.A,{variant:\"h5\",color:V.T.mainBlue1,mb:.5},(0,ye.t)(\"TOTAL_ANNUAL_LEAVES\")),l().createElement(W.A,{name:\"attendance_total_annual_leaves\",onHandleChange:function(e){n(\"attendance_total_annual_leaves\",s(e))},value:t.attendance_total_annual_leaves,label:\"\"}),l().createElement(we.A,{errName:\"attendance_total_annual_leaves\"})),l().createElement(o.A,{width:280,p:1},l().createElement(a.A,{variant:\"h5\",color:V.T.mainBlue1,mb:.5},(0,ye.t)(\"LEAVES_CARRY_FORWARD\")),l().createElement(W.A,{name:\"attendance_carry_forward_leaves_annually\",onHandleChange:function(e){n(\"attendance_carry_forward_leaves_annually\",s(e))},value:t.attendance_carry_forward_leaves_annually,label:\"\"}),l().createElement(we.A,{errName:\"attendance_carry_forward_leaves_annually\"})),l().createElement(o.A,{width:280,p:1},l().createElement(a.A,{variant:\"h5\",color:V.T.mainBlue1,mb:.5},(0,ye.t)(\"MAX_COMP_OFF\")),l().createElement(W.A,{name:\"attendance_max_comp_off_monthly\",onHandleChange:function(e){n(\"attendance_max_comp_off_monthly\",s(e))},value:t.attendance_max_comp_off_monthly,label:\"\"}),l().createElement(we.A,{errName:\"attendance_max_comp_off_monthly\"})),l().createElement(o.A,{width:280,p:1},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"COMP_OFF_VALIDITY\")),l().createElement(g.A,{name:\"attendance_comp_off_validity_in_months\",onChange:function(e,t){n(\"attendance_comp_off_validity_in_months\",t)},options:he,labelKey:\"label\",label:\"\",selectedOption:t.attendance_comp_off_validity_in_months,value:t.attendance_comp_off_validity_in_months,defaultLabel:(0,ye.t)(\"SELECT_STARTDATE\")}),l().createElement(we.A,{errName:\"attendance_comp_off_validity_in_months\"}))),l().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},l().createElement(q.A,{buttonName:(0,ye.t)(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:i}),l().createElement(q.A,{buttonName:(0,ye.t)(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",type:\"submit\"})))}))};function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Oe=function(e){var t=e.selectedMarker,n=e.portfolioCode,r=(0,i.useContext)(d.v),o=r.BackOfficeProps,a=o.globalStore.User,s=o.baseurl,c=r.triggerShowLoader,f=r.triggerToastMsg,g=(0,R.Zp)(),h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}((0,i.useState)({attendance_total_annual_leaves:0,attendance_carry_forward_leaves_annually:0,attendance_max_comp_off_monthly:0,attendance_comp_off_validity_in_months:0}),2),m=h[0],v=h[1],A=function(){(function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",a={};return a.domain=t,a.endPoint=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return\"\".concat(u.p.GET_ATTENDANCE_CONFIG_DATA,\"?moduleName=\").concat(me.MODULE_NAME,\"&\").concat(null==Object?void 0:Object.values(ve).map(function(e){return\"keys=\".concat(e)}).join(\"&\"),\"&portfolioCode=\").concat(n||(null==e||null===(t=e.selectedBusinessUnit)||void 0===t?void 0:t.portfolio_code)||\"DEFAULT\")}(e,o),a.customHeaders=Ae(e),a.customHeaders[\"role-id\"]=null==r?void 0:r.value,a.triggerLoader=n,new Promise(function(e,t){var n;null===(n=y.N.get(a))||void 0===n||n.then(function(t){var n;if(!(0,p.mN)(t))throw new Error(null==t||null===(n=t.data)||void 0===n?void 0:n.errorMessage);if(null!=t&&t.data)return e(null==t?void 0:t.data)}).catch(function(e){return t(new Error(e))})})})(a,s,c,t,n).then(function(e){var t;e&&(t={},e.forEach(function(e){e&&(t[e.key]=e.value)}),v(t))}).catch(function(e){f({message:e.message,type:\"error\"})})};return(0,i.useEffect)(function(){A()},[]),l().createElement(Se,{initialForm:m,onSubmitLeaveConfig:function(e){var r=function(e){return[{key:ve.TOTAL_ANNUAL_LEAVES,value:e.attendance_total_annual_leaves,portfolio_code:(0,p.XD)(n,a),marker_id:null==t?void 0:t.value},{key:ve.CARRY_FORWARD_LEAVES,value:e.attendance_carry_forward_leaves_annually,portfolio_code:(0,p.XD)(n,a),marker_id:null==t?void 0:t.value},{key:ve.MAX_COMP_OFF,value:e.attendance_max_comp_off_monthly,portfolio_code:(0,p.XD)(n,a),marker_id:null==t?void 0:t.value},{key:ve.COMP_OFF_VALIDITY,value:e.attendance_comp_off_validity_in_months,portfolio_code:(0,p.XD)(n,a),marker_id:null==t?void 0:t.value}]}(e);(function(e,t,n,r){var o,a={};return a.domain=t,a.endPoint=u.p.SAVE_ATTENDANCE_TYPES,a.customHeaders=Ae(e),a.customHeaders[\"user-id\"]=null==e||null===(o=e.UserDetails)||void 0===o?void 0:o.user_id,a.payLoad=r,a.triggerLoader=n,(0,p.AT)(\"post\",a,!0)})(a,s,c,r).then(function(e){f({message:e,type:\"success\"})}).catch(function(e){f({message:e.message,type:\"error\"})})},onCancel:function(){return g(-1)}})};var De=n(2543),Re=function(){return K.Ik().shape({attendanceApprover:K.Ik().test(\"is-empty\",\"Attendance Approver Required\",function(e){return!(null==e||!e.value)}),approvalDuration:K.Yj().required(\"Approval Duration Required\"),approvalStartDate:K.Yj().required(\"Approval Start Date Required\"),noOfMonths:K.Yj().required(\"No Of Months Required\")})},Ne=n(75027),Le=n(37306);const Pe=function(e){var t=e.onFormSubmit,n=e.selectedMarker,s=e.configuredApprovedData,u=e.attendanceApprover,c=e.startDateData,d=e.durationData,p=e.onCancelClick,f=e.renderConfirmationPopupToResetForm,h=(0,i.useRef)(null),m=(0,Ne.I)();return l().createElement(G.l1,{initialValues:{attendanceApprover:{id:0,label:\"\",value:\"\"},approvalDuration:\"\",approvalStartDate:\"\",noOfMonths:\"\",is_attendance_regularization_required:\"false\"},validationSchema:Re,enableReinitialize:!0,innerRef:h,onSubmit:function(e,n){return t(e)}},function(e){var t,i,h,v,A=e.values,y=e.setFieldValue,E=e.dirty,_=e.resetForm;return l().createElement(G.lV,null,l().createElement(o.A,{position:\"relative\"},!(null!=n&&n.value)&&l().createElement(o.A,{className:m.OverLay}),l().createElement(o.A,{className:m.AdminConfigFields},l().createElement(o.A,{p:.4,mt:2},l().createElement(r.A,{direction:\"row\",spacing:2,alignItems:\"center\"},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"SELECT_ATTENDANCE_APPROVER\"))),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},l().createElement(o.A,{className:m.adminConfigInputWrapper},l().createElement(g.A,{name:\"attendanceApprover\",onChange:function(e,t){_(),y(\"attendanceApprover\",t);var n,r=s.filter(function(e){return e.approver_id===Number(null==t?void 0:t.id)});null!=r&&r.length?(y(\"approvalDuration\",r[0].duration+\" Days\"),y(\"approvalStartDate\",r[0].start_date),y(\"noOfMonths\",r[0].number_of_months_to_view_attendance_history),y(\"is_attendance_regularization_required\",\"true\"===String(null===(n=r[0])||void 0===n?void 0:n.is_attendance_regularization_required)?\"true\":\"false\")):(y(\"approvalDuration\",\"\"),y(\"approvalStartDate\",\"\"),y(\"noOfMonths\",\"\"),y(\"is_attendance_regularization_required\",\"false\"))},options:u,labelKey:\"label\",label:\"\",selectedOption:null!==(t=null==A||null===(i=A.attendanceApprover)||void 0===i?void 0:i.label)&&void 0!==t?t:\"\",value:null!==(h=null==A||null===(v=A.attendanceApprover)||void 0===v?void 0:v.label)&&void 0!==h?h:\"\",defaultLabel:(0,ye.t)(\"SELECT_ATTENDANCE_APPROVER\")}),l().createElement(we.A,{errName:\"attendanceApprover\"})))),l().createElement(j.A,{className:m.AdminConfig,elevation:0},l().createElement(r.A,{direction:\"row\",spacing:2,alignItems:\"center\"},l().createElement(a.A,{variant:\"subtitle1\",color:V.T.primaryBlack},(0,ye.t)(\"PAYCYCLE_APPROVAL_CONF\")),l().createElement(B.A,{title:(0,ye.t)(\"PAYCYCLE_APPROVAL_CONFIGURATION_TOOLTIP\"),placement:\"right\",arrow:!0,className:m.AdminConfigTooltip},l().createElement(F.A,null,l().createElement(x.A,null)))),l().createElement(r.A,{direction:\"row\",alignItems:\"start\",justifyContent:\"start\",mb:1,gap:2},l().createElement(o.A,{className:m.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"APPROVAL_STARTDATE\")),l().createElement(g.A,{name:\"approvalStartDate\",onChange:function(e,t){y(\"approvalStartDate\",t),y(\"approvalDuration\",\"\")},options:c,labelKey:\"label\",label:\"\",selectedOption:A.approvalStartDate,value:A.approvalStartDate,defaultLabel:(0,ye.t)(\"SELECT_STARTDATE\")}),l().createElement(we.A,{errName:\"approvalStartDate\"})),l().createElement(o.A,{className:\"\".concat(m.adminConfigInputWrapper)},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"APPROVAL_DURATION\")),l().createElement(g.A,{name:\"approvalDuration\",onChange:function(e,t){return y(\"approvalDuration\",t)},options:d,labelKey:\"label\",label:\"\",selectedOption:A.approvalDuration,value:A.approvalDuration,defaultLabel:(0,ye.t)(\"SELECT_DURATION\")}),l().createElement(we.A,{errName:\"approvalDuration\"})))),l().createElement(j.A,{className:m.AdminConfig,elevation:0},l().createElement(r.A,{direction:\"row\",spacing:2,alignItems:\"center\"},l().createElement(a.A,{variant:\"subtitle1\",color:V.T.primaryBlack},(0,ye.t)(\"VIEW_ATTENDANCE_HISTORY\")),l().createElement(B.A,{title:(0,ye.t)(\"VIEW_ATTENDANCE_HISTORTY_TOOLTIP\"),placement:\"right\",arrow:!0,className:m.AdminConfigTooltip},l().createElement(F.A,null,l().createElement(x.A,null)))),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},l().createElement(o.A,{className:m.adminConfigInputWrapper},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"NO_OF_MONTHS\")),l().createElement(g.A,{name:\"noOfMonths\",onChange:function(e,t){return y(\"noOfMonths\",t)},options:b,labelKey:\"label\",label:\"\",selectedOption:A.noOfMonths,value:A.noOfMonths,defaultLabel:(0,ye.t)(\"SELECT_NO_OF_MONTHS\")}),l().createElement(we.A,{errName:\"noOfMonths\"})))),l().createElement(j.A,{className:m.AdminConfig,elevation:0},l().createElement(r.A,{className:m.adminConfigInputWrapper,direction:\"row\",justifyContent:\"start\",spacing:2,alignItems:\"center\"},l().createElement(a.A,{variant:\"body1\",fontWeight:700},(0,ye.t)(\"ATTENDANCE_REGULARIZATION\")),l().createElement(Le.A,{checked:\"true\"===(null==A?void 0:A.is_attendance_regularization_required),label:(0,ye.t)(\"YES\"),name:\"is_attendance_regularization_required\",onChange:function(){return y(\"is_attendance_regularization_required\",\"true\")},value:\"true\"}),l().createElement(Le.A,{checked:\"false\"===(null==A?void 0:A.is_attendance_regularization_required),label:(0,ye.t)(\"NO\"),name:\"is_attendance_regularization_required\",onChange:function(){return y(\"is_attendance_regularization_required\",\"false\")},value:\"false\"})))),l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"end\",className:\"smart-agro-lite-event-details-footer\"},l().createElement(r.A,{direction:\"row\",alignItems:\"baseline\",gap:2,justifyContent:\"end\"},l().createElement(q.A,{buttonName:(0,ye.t)(\"CANCEL\"),color:\"transparent\",fullwidth:!1,variant:\"outlined\",onButtonClick:function(){return p(E)}}),l().createElement(q.A,{buttonName:(0,ye.t)(\"SAVE\"),color:\"primary\",fullwidth:!1,variant:\"contained\",type:\"submit\"})))),f())})};function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return xe(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ie=function(e){var t=e.selectedMarker,n=e.portfolioCode,r=void 0===n?\"\":n,o=(e.setIsFormDirty,(0,i.useContext)(d.v)),a=o.BackOfficeProps,c=a.globalStore.User,f=a.baseurl,g=o.triggerShowLoader,h=o.triggerToastMsg,m=(0,s.Bd)().t,v=(0,R.Zp)(),A=Me((0,i.useState)(!1),2),b=A[0],_=A[1],C=Me((0,i.useState)([]),2),S=C[0],T=C[1],O=Me((0,i.useState)([]),2),D=O[0],L=O[1],P=Me((0,i.useState)([\"\"]),2),M=P[0],x=P[1],I=Me((0,i.useState)([\"\"]),2),k=I[0],B=I[1],F=function(){var e;null===(e=w(\"fetch_approver_config_data\",c,f,t,g,r))||void 0===e||e.then(function(e){var n;if(null===(n=w(\"fetch_basic_configuration_end_date\",c,f,t,g,r))||void 0===n||n.then(function(e){if((0,p.mN)(e)){for(var t,n=[],r=(null!=e&&null!==(t=e.data)&&void 0!==t&&t.length?Number(null==e?void 0:e.data[0].value):0)+1;r<=28;r++)n.push(r.toString());x(n)}}).catch(function(e){console.log(\"fetchBasicConfigurationEndDate api failed\",e)}),(0,p.mN)(e)){var o,a=JSON.parse(null==e||null===(o=e.data[0])||void 0===o?void 0:o.value).map(function(e){var t,n,r;return{approver_id:null==e?void 0:e.approver_id,start_date:null!==(t=null==e?void 0:e.start_date.toString())&&void 0!==t?t:\"\",duration:null!==(n=null==e?void 0:e.duration.toString())&&void 0!==n?n:\"\",number_of_months_to_view_attendance_history:null!==(r=null==e?void 0:e.number_of_months_to_view_attendance_history.toString())&&void 0!==r?r:\"\",is_attendance_regularization_required:\"true\"===String(null==e?void 0:e.is_attendance_regularization_required)?\"true\":\"false\"}});L(a)}}).catch(function(e){console.log(\"fetchApproverConfigData api failed\",e)})},j=function(){_(!0)},H=function(){v(-1)};return(0,i.useEffect)(function(){var e;null===(e=w(\"fetch_attendance_approver\",c,f,t,g,r))||void 0===e||e.then(function(e){if(0===(null==e?void 0:e.data.length))h({message:m(\"NO_ATTENDANCE_DATA\"),type:\"error\"});else{var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{id:null==e?void 0:e.id,label:null==e?void 0:e.code,value:null==e?void 0:e.code}});T(n)}}).catch(function(e){console.log(\"fetchAttendanceApprover api failed\",e)}),F(),function(){for(var e=[],t=1;t<=10;t++)e.push(t.toString()+\" Days\");B(e)}()},[]),l().createElement(Pe,{onFormSubmit:function(e){var n,o=function(e){var t,n,r={approver_id:e.attendanceApprover.id,start_date:null==e?void 0:e.approvalStartDate,duration:null==e||null===(t=e.approvalDuration)||void 0===t?void 0:t.replaceAll(/\\D/g,\"\"),number_of_months_to_view_attendance_history:null==e?void 0:e.noOfMonths,is_attendance_regularization_required:null==e?void 0:e.is_attendance_regularization_required},o=(0,De.cloneDeep)(D),a=o.find(function(e){return e.approver_id===r.approver_id}),i=o.filter(function(e){return e.approver_id!==r.approver_id});return a?(a.approver_id=r.approver_id,a.duration=null===(n=r.duration)||void 0===n?void 0:n.replaceAll(/\\D/g,\"\"),a.number_of_months_to_view_attendance_history=r.number_of_months_to_view_attendance_history,a.start_date=r.start_date,a.is_attendance_regularization_required=r.is_attendance_regularization_required,i.push(a)):o.push(r),o}(e);null===(n=function(e,t,n,r,o){var a,i,l,s,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",d={};return d.domain=t,d.endPoint=u.p.GET_ATTENDANCE_CONFIG_DATA,d.customHeaders={\"country-code\":null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null!==(i=null==e?void 0:e.AccessToken)&&void 0!==i?i:\"\"),\"user-id\":null==e||null===(l=e.UserDetails)||void 0===l?void 0:l.user_id,\"bu-id\":null==e||null===(s=e.selectedBusinessUnit)||void 0===s?void 0:s.bu_id},d.payLoad=[{key:E.ATTENDANCE_APPROVER_CONFIGURATIONS,value:JSON.stringify(o),marker_id:null==n?void 0:n.value,portfolio_code:(0,p.XD)(c,e)}],d.triggerLoader=r,new Promise(function(e,t){var n;null===(n=y.N.post(d))||void 0===n||n.then(function(t){return e(t)}).catch(function(e){return t(new Error(e.message))})})}(c,f,t,g,o,r))||void 0===n||n.then(function(e){(0,p.mN)(e)&&(F(),h({message:m(\"APPROVER_SAVE_TOAST_MESSAGE\"),type:\"success\"}))}).catch(function(e){h({message:null==e?void 0:e.message,type:\"error\"})})},selectedMarker:t,configuredApprovedData:D,attendanceApprover:S,startDateData:M,durationData:k,onCancelClick:function(e){(e?j:H)()},renderConfirmationPopupToResetForm:function(){return l().createElement(N.B,{isVisible:b,message:\"\".concat(m(\"CONFIRMATION_TEXT\")),onRequestClose:function(){return _(!1)},onButtonClick:function(){v(-1),_(!1)}})}})};var ke=function(e){var t=e.selectedMarker,n=e.tabState,r=e.getTabNames,o=e.minMaxValueByKey,a=e.portfolio,i=e.RBACControls,s=null;if(t.label){var u=n.currentTabs.toLowerCase();u===r.BASIC_CONFIG?s=l().createElement(fe,{selectedMarker:t,minMaxValueByKey:o,portfolioCode:null==a?void 0:a.value}):u===r.APPROVER?s=l().createElement(Ie,{RBACControls:i,selectedMarker:t,portfolioCode:null==a?void 0:a.value}):u===r.LEAVES&&(s=l().createElement(Oe,{RBACControls:i,selectedMarker:t,portfolioCode:null==a?void 0:a.value}))}return s};function Be(e){return Be=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Be(e)}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function He(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Be(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Be(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Ye(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ge=function(e){return e.BASIC_CONFIG=\"basicconfig\",e.APPROVER=\"approver\",e.LEAVES=\"leaves\",e}(Ge||{}),ze=[\"attendance_role\"];const Ve=function(e){var t,n=e.RBACControls,y=(0,s.Bd)().t,E=(0,i.useContext)(d.v),b=E.BackOfficeProps,_=b.globalStore.User,C=b.baseurl,S=E.triggerShowLoader,O=E.triggerToastMsg,R=(0,D.i)(_).hasShowPortfolio,N=Ue((0,i.useState)([]),2),L=N[0],P=N[1],M=Ue((0,i.useState)([]),2),x=M[0],I=M[1],k=Ue((0,i.useState)(),2),B=k[0],F=k[1],j=Ue((0,i.useState)({label:\"\",value:\"\"}),2),H=j[0],U=j[1],Y=Ue((0,i.useState)({label:\"\",value:\"\"}),2),G=Y[0],z=Y[1],V=Ue(l().useState({tablist:[{id:1,tabName:y(\"BASIC_CONFIGURATION\"),path:\"basicConfig\"},{id:2,tabName:y(\"APPROVER_CONFIGURATION\"),path:\"approver\"},{id:3,tabName:y(\"LEAVES_CONFIGURATION\"),path:\"leaves\"}],currentTabs:\"basicConfig\"}),2),q=V[0],W=V[1],Q=(0,p.gN)(null==G?void 0:G.value,null==_||null===(t=_.selectedBusinessUnit)||void 0===t?void 0:t.portfolio_code,\"DEFAULT\"),K=(0,i.useCallback)(function(){var e;null===(e=w(\"is_approval_required\",_,C,H,S,null==G?void 0:G.value))||void 0===e||e.then(function(e){if((0,p.mN)(e)){var t,n,r=\"true\"===(null==e||null===(t=e.data)||void 0===t||null===(t=t.find(function(e){return(null==e?void 0:e.key)===v.DG.ENABLE_COMP_OFF}))||void 0===t?void 0:t.value),o=\"true\"===(null==e||null===(n=e.data)||void 0===n||null===(n=n.find(function(e){return(null==e?void 0:e.key)===v.DG.ATTENDANCE_APPROVAL_REQ}))||void 0===n?void 0:n.value),a=[{id:1,tabName:y(\"BASIC_CONFIGURATION\"),path:\"basicConfig\"}];r&&o?a.push({id:2,tabName:y(\"APPROVER_CONFIGURATION\"),path:\"approver\"},{id:3,tabName:y(\"LEAVES_CONFIGURATION\"),path:\"leaves\"}):r?a.push({id:2,tabName:y(\"LEAVES_CONFIGURATION\"),path:\"leaves\"}):o&&a.push({id:2,tabName:y(\"APPROVER_CONFIGURATION\"),path:\"approver\"}),W({tablist:a,currentTabs:\"basicConfig\"})}}).catch(function(e){O({message:null==e?void 0:e.message,type:\"error\"})})},[H,G]),$=function(e){(function(e,t,n,r){var o,a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",l={};return l.domain=t,l.endPoint=\"\".concat(u.p.GET_ATTENDANCE_CONFIG_DATA,\"?\",\"moduleName=\".concat(v.Sn.ATTENDANCE_MODULE),\"&\").concat(null==Object?void 0:Object.values(T.H).map(function(e){return\"keys=\".concat(e)}).join(\"&\"),\"&portfolioCode=\").concat(i||(null==e||null===(o=e.selectedBusinessUnit)||void 0===o?void 0:o.portfolio_code)||\"DEFAULT\"),l.customHeaders={\"role-id\":n,\"bu-id\":null==e?void 0:e.selectedBusinessUnit.bu_id,\"country-code\":null==e||null===(a=e.selectedCountry)||void 0===a?void 0:a.countryCode,Authorization:\"Bearer \".concat(null==e?void 0:e.AccessToken)},l.triggerLoader=r,(0,p.AT)(\"get\",l,!1)})(_,C,e,S,arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\").then(function(e){var t,n=(0,p.mN)(e);if(!n)throw new Error(e.error);if(n&&null!=e&&null!==(t=e.data)&&void 0!==t&&t.length){var r=null==e?void 0:e.data,o={};return null==r||r.forEach(function(e){var t=e.key,n=e.minValue,r=e.maxValue,a=e.value;o[t]={min:n,max:r,value:a}}),void F(o)}throw new Error(y(\"ADMIN_ATTENDANCE_DATA_API_FAILED\"))}).catch(function(e){O({message:null==e?void 0:e.message,type:\"error\"})})};return(0,i.useEffect)(function(){R&&function(){var e,t={};t.domain=C,t.endPoint=u.p.GET_PORTFOLIOS_LIST_BY_BU_CODE.replace(\"__bu_code__\",null==_||null===(e=_.selectedBusinessUnit)||void 0===e?void 0:e.bu_code),t.customHeaders={Authorization:\"Bearer \".concat(_.AccessToken),\"bu-id\":_.selectedBusinessUnit.bu_id,\"country-code\":_.selectedCountry.countryCode},t.triggerLoader=S,(0,m.dw)(t).then(function(e){if(201!==e.status&&200!==e.status&&201!==e.statusCode&&200!==e.statusCode)throw new Error(y(\"NO_PORTFOLIO_LIST\"));var t,n,r,o,a=null==e||null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{label:e.name,value:e.code}});I(a);var i=null==e||null===(n=e.data)||void 0===n?void 0:n.filter(function(e){var t;return(null==e?void 0:e.code)===(null==_||null===(t=_.selectedBusinessUnit)||void 0===t?void 0:t.portfolio_code)});z({label:null==i||null===(r=i[0])||void 0===r?void 0:r.name,value:null==i||null===(o=i[0])||void 0===o?void 0:o.code})}).catch(function(e){O({message:e.message,type:\"error\"})})}()},[]),(0,i.useEffect)(function(){!function(){var e={};e.domain=C,e.endPoint=\"\".concat(u.p.SAVE_ATTENDANCE_TYPES,\"?\",\"moduleName=\".concat(v.Sn.ATTENDANCE_MODULE),\"&\").concat(ze.map(function(e){return\"keys=\".concat(e)}).join(\"&\"),\"&portfolioCode=\").concat(Q),e.customHeaders={Authorization:\"Bearer \".concat(_.AccessToken),\"bu-id\":_.selectedBusinessUnit.bu_id,\"country-code\":_.selectedCountry.countryCode},e.triggerLoader=S,(0,m.dw)(e).then(function(e){var t;if(!((null==e||null===(t=e[0])||void 0===t?void 0:t.value.length)>0))throw new Error(y(\"INCLUDE_ADMIN_CONFIGURATION\"));var n,r=JSON.parse(null==e||null===(n=e[0])||void 0===n?void 0:n.value).map(function(e){return{label:e.marker_code,value:e.marker_id}});P(r)}).catch(function(e){O({message:e.message,type:\"error\"})})}(),K()},[H,G]),(0,i.useEffect)(function(){!function(e){e.label&&q.currentTabs.toLowerCase()===Ge.BASIC_CONFIG&&$(null==e?void 0:e.value,Q)}(H)},[q.currentTabs,H,G]),l().createElement(A.M,null,l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},l().createElement(o.A,null,l().createElement(f.A,{routePathName:[{name:c.F_.Configurations,path:c.fp.Configurations},{name:c.F_.Attendance_Config,path:c.fp.Attendance_Config}]}))),l().createElement(o.A,{p:.4,mt:2,elevation:0},l().createElement(r.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"start\",mb:1,gap:2},l().createElement(o.A,{width:\"240px\"},l().createElement(a.A,{variant:\"body1\",fontWeight:700},y(\"SELECT_ATTENDANCE_MARKER\")),l().createElement(g.A,{name:\"selectMarker\",onChange:function(e,t){!function(e){U(e),W(function(e){return je(je({},e),{},{currentTabs:\"basicConfig\"})})}(t),$(null==t?void 0:t.value,Q)},options:L,labelKey:\"label\",label:\"\",selectedOption:\"\",value:null==H?void 0:H.label,defaultLabel:y(\"SELECT_ATTENDANCE_MARKER\")})),R&&l().createElement(o.A,{width:\"240px\"},l().createElement(a.A,{variant:\"body1\",fontWeight:700},y(\"SELECT_PORTFOLIO\")),l().createElement(g.A,{name:\"portfolio\",onChange:function(e,t){var n;(null==t?void 0:t.value)!==(null==G?void 0:G.value)&&(z(t),W(function(e){return je(je({},e),{},{currentTabs:\"basicConfig\"})}),$(null==L?void 0:L.value,(0,p.gN)(null==t?void 0:t.value,null==_||null===(n=_.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code,\"DEFAULT\")))},options:x,labelKey:\"label\",label:\"\",selectedOption:\"\",value:null==G?void 0:G.label,defaultLabel:y(\"PORTFOLIO_FIELD\")})))),H.label&&l().createElement(h.A,{tabStateProps:q,handleTabChange:function(e){W(function(t){return je(je({},t),{},{currentTabs:e})})},isRouteTabs:!1}),l().createElement(ke,{selectedMarker:H,tabState:q,getTabNames:Ge,minMaxValueByKey:B,portfolio:G,RBACControls:n}))}},95636:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},95692:(e,t,n)=>{\"use strict\";n.d(t,{N:()=>g}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(74423),n(23792),n(60739),n(89572),n(36033),n(2892),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(3362),n(9391),n(21699),n(47764),n(23500),n(62953);var r=n(71083),o=n(2543),a=n.n(o),i=n(94692),l=n(8085);function s(e){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},s(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e){if(\"object\"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=s(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==s(t)?t:t+\"\"}var g=new(function(){return e=function e(){var t,n,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),p(this,\"api_urls\",l.p),p(this,\"axiosNoInterceptor\",void 0),p(this,\"axiosOptions\",{timeout:1e9,withCredentials:!0}),p(this,\"activeControllers\",new Map),p(this,\"BaseDomain\",{BASE:{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.VENDOR_BASE_URL,APP_ID:{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.APP_ID,DEVICE_TYPE:{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.DEVICE_TYPE,APP_VERSION:\"0.0.1\",SECRET_KEY:{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.SECRET_KEY,CLIENT_REVIEW_DOMAIN:{ENV:\"Production\",APP_VERSION:\"0.0.1\",BASE:\"\",BASE_URL:\"https://dev-in.api.cropwise-smartagro.syndpe.com/api/v1/\",SHOW_ENTRIES_REQ:!1,DEFAULT_ENTRIES:10}.CLIENT_REVIEW_DOMAIN}),p(this,\"ContentHeaders\",{Json:\"application/json\",FormData:\"multipart/form-data\",Plain:\"text/plain\",Octetstream:\"application/octet-stream\",Image:\"image/jpeg\"}),p(this,\"isNotificationCall\",!1),p(this,\"noOfRequests\",0),p(this,\"strings\",void 0),p(this,\"triggerShowLoader\",void 0),p(this,\"delete\",function(e){e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.Json),!1!==e.showLoader&&(e.showLoader=!0),e.showLoader&&o.triggerShowLoader&&o.triggerShowLoader(!0);var t=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return r.A.delete(e.endPoint,{baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders),data:t})}),p(this,\"get\",function(e){var t=o.setupAbortController(e);e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.Json),(e.showLoader||void 0===e.showLoader)&&(e.showLoader=!0),e.showLoader&&o.triggerShowLoader&&o.triggerShowLoader(!0);try{var n;return r.A.get(e.endPoint,c({baseURL:e.domain,timeout:o.axiosOptions.timeout,params:e.payLoad,headers:o.getHeadersByType(e.headerType,e.customHeaders)},null!=e&&null!==(n=e.endPoint)&&void 0!==n&&n.includes(\"presigned\")?{}:{signal:t.signal})).finally(function(){o.cleanupAbortController(e,t)})}catch(n){console.error(\"axios get::\",n),o.cleanupAbortController(e,t)}}),p(this,\"isNetworkError\",function(e){return!e.response&&\"ECONNABORTED\"!==e.code}),p(this,\"post\",function(e){var t=o.setupAbortController(e);if(e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.Json),!1!==e.showLoader&&(e.showLoader=!0),e.useNonInterceptor||(e.useNonInterceptor=!1),e.showLoader&&o.triggerShowLoader&&o.triggerShowLoader(!0),e.useNonInterceptor){var n=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return o.axiosNoInterceptor.post(e.endPoint,n,{timeout:o.axiosOptions.timeout,transformRequest:o.axiosOptions.transformRequest,baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders),signal:t.signal}).finally(function(){o.cleanupAbortController(e,t)})}var a=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return r.A.post(e.endPoint,a,{baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders),signal:t.signal}).finally(function(){o.cleanupAbortController(e,t)})}),p(this,\"put\",function(e){e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.Json),!1!==e.showLoader&&(e.showLoader=!0),e.showLoader&&o.triggerShowLoader&&o.triggerShowLoader(!0);var t=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return r.A.put(e.endPoint,t,{timeout:o.axiosOptions.timeout,transformRequest:o.axiosOptions.transformRequest,baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders)})}),p(this,\"patch\",function(e){e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.Json),!1!==e.showLoader&&(e.showLoader=!0),e.showLoader&&o.triggerShowLoader&&o.triggerShowLoader(!0);var t=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return r.A.patch(e.endPoint,t,{timeout:o.axiosOptions.timeout,transformRequest:o.axiosOptions.transformRequest,baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders)})}),p(this,\"retry\",function(e){return(0,r.A)(e)}),p(this,\"uploadFile\",function(e){if(e.triggerLoader&&(o.triggerShowLoader=e.triggerLoader),e.domain||(e.domain=o.BaseDomain.BASE),e.headerType||(e.headerType=o.ContentHeaders.FormData),!1!==e.showLoader&&(e.showLoader=!0),e.useNonInterceptor||(e.useNonInterceptor=!1),e.useNonInterceptor){var t=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return o.axiosNoInterceptor.post(e.endPoint,t,{timeout:o.axiosOptions.timeout,transformRequest:o.axiosOptions.transformRequest,baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders)})}var n=e.payLoad instanceof FormData?e.payLoad:JSON.stringify(e.payLoad);return r.A.post(e.endPoint,n,c({baseURL:e.domain,headers:o.getHeadersByType(e.headerType,e.customHeaders)},null!=e&&e.onUploadProgress?{onUploadProgress:e.onUploadProgress}:{}))}),this.axiosNoInterceptor=r.A.create(),null===(t=r.A.interceptors)||void 0===t||t.request.use(function(e){return o.incrementRequestCount(),e},function(e){return o.requestPromise(e)}),null===(n=r.A.interceptors)||void 0===n||n.response.use(function(e){return o.decrementRequestCount(),e.status,e},function(e){return r.A.isCancel(e)?(o.decrementRequestCount(),new Promise(function(){})):(o.decrementRequestCount(),e.response&&(401===e.response.status&&(0,i.w3)(i.mu.SESSIONS_EXPIRED,!0),e.response.status>=400)?e.response:o.responsePromise(e))})},(t=[{key:\"setupAbortController\",value:function(e){var t=(null==e?void 0:e.requestKey)||e.endPoint;this.cancelPreviousRequests(t);var n=new AbortController;return this.activeControllers.set(t,n),n}},{key:\"cleanupAbortController\",value:function(e,t){var n=(null==e?void 0:e.requestKey)||e.endPoint;this.activeControllers.get(n)===t?(console.log(\"🏁 Cleaning up current controller\"),this.activeControllers.delete(n)):console.log(\"🏁 Controller already replaced - not cleaning up\")}},{key:\"cancelPreviousRequests\",value:function(e){if(this.activeControllers.has(e)){var t=this.activeControllers.get(e);null==t||t.abort(),this.activeControllers.delete(e)}}},{key:\"cancelAllRequests\",value:function(){this.activeControllers.forEach(function(e){e.abort()}),this.activeControllers.clear()}},{key:\"decrementRequestCount\",value:function(){this.noOfRequests--,0===this.noOfRequests&&(this.triggerShowLoader&&this.triggerShowLoader(!1),this.triggerShowLoader=void 0)}},{key:\"getHeadersByType\",value:function(e,t){var n={};switch(e){case this.ContentHeaders.Json:n[\"Content-Type\"]=\"application/json\",n.Accept=\"application/json\";break;case this.ContentHeaders.Plain:n[\"Content-Type\"]=\"text/plain\";break;case this.ContentHeaders.FormData:n[\"Content-Type\"]=\"multipart/form-data\";break;case this.ContentHeaders.Octetstream:n[\"Content-Type\"]=\"application/octet-stream\";break;case this.ContentHeaders.Image:n[\"Content-Type\"]=\"image/jpeg\";break;default:n[\"Content-Type\"]=\"application/json\"}return a().extend({},n,t)}},{key:\"incrementRequestCount\",value:function(){this.noOfRequests++}},{key:\"requestPromise\",value:function(e){return new Promise(function(t,n){e.response?t(e):n(e)})}},{key:\"responsePromise\",value:function(e){return new Promise(function(t,n){e.response?t(e):n(e)})}}])&&d(e.prototype,t),Object.defineProperty(e,\"prototype\",{writable:!1}),e;var e,t}())},95950:(e,t,n)=>{var r=n(70695),o=n(88984),a=n(64894);e.exports=function(e){return a(e)?r(e):o(e)}},95995:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"fil\",{months:\"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre\".split(\"_\"),monthsShort:\"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis\".split(\"_\"),weekdays:\"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado\".split(\"_\"),weekdaysShort:\"Lin_Lun_Mar_Miy_Huw_Biy_Sab\".split(\"_\"),weekdaysMin:\"Li_Lu_Ma_Mi_Hu_Bi_Sab\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"MM/D/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY HH:mm\",LLLL:\"dddd, MMMM DD, YYYY HH:mm\"},calendar:{sameDay:\"LT [ngayong araw]\",nextDay:\"[Bukas ng] LT\",nextWeek:\"LT [sa susunod na] dddd\",lastDay:\"LT [kahapon]\",lastWeek:\"LT [noong nakaraang] dddd\",sameElse:\"L\"},relativeTime:{future:\"sa loob ng %s\",past:\"%s ang nakalipas\",s:\"ilang segundo\",ss:\"%d segundo\",m:\"isang minuto\",mm:\"%d minuto\",h:\"isang oras\",hh:\"%d oras\",d:\"isang araw\",dd:\"%d araw\",M:\"isang buwan\",MM:\"%d buwan\",y:\"isang taon\",yy:\"%d taon\"},dayOfMonthOrdinalParse:/\\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},96167:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(69565),a=n(79306),i=n(36043),l=n(1103),s=n(72652);r({target:\"Promise\",stat:!0,forced:n(90537)},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,u=n.reject,c=l(function(){var n=a(t.resolve),i=[],l=0,u=1;s(e,function(e){var a=l++,s=!1;u++,o(n,t,e).then(function(e){s||(s=!0,i[a]={status:\"fulfilled\",value:e},--u||r(i))},function(e){s||(s=!0,i[a]={status:\"rejected\",reason:e},--u||r(i))})}),--u||r(i)});return c.error&&u(c.value),n.promise}})},96178:(e,t,n)=>{\"use strict\";n.d(t,{z:()=>o});var r=n(28161),o=(0,n(11848).Ay)(r.A)(function(e){return e.theme,{background:\"#F5F5F5\",position:\"absolute\",top:\"80px\",left:\"72px\",width:\"calc(100% - 72px)\",height:\"calc(100% - 80px)\",padding:\"25px\",overflow:\"auto\"}})},96180:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},96248:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(32325).A},96319:(e,t,n)=>{\"use strict\";var r=n(28551),o=n(9539);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){o(e,\"throw\",t)}}},96348:(e,t,n)=>{\"use strict\";n.d(t,{F_:()=>oe,ID:()=>pe,fp:()=>re,pW:()=>le}),n(52675),n(89463),n(2259),n(28706),n(2008),n(50113),n(51629),n(23418),n(74423),n(64346),n(23792),n(62062),n(34782),n(23288),n(62010),n(59904),n(26099),n(3362),n(27495),n(38781),n(21699),n(47764),n(23500),n(62953);var r=n(81970),o=n.n(r),a=n(99478);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,31165))}),s=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,15583))}),u=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,28310))}),c=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,89387))}),d=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,51246))}),p=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,45143))}),f=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,51855))}),g=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,27822))}),h=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,61737))}),m=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76082))}),v=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,36667))}),A=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,93997))}),y=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,53307))}),E=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,79233))}),b=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,26638))}),_=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,84189))}),C=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,99315))}),w=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,34115))}),S=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,558))}),T=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,29803))}),O=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,24730))}),D=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,88611))}),R=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,68935))}),N=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,93148))}),L=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,25442))}),P=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,71071))}),M=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,95557))}),x=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,28217))}),I=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,27318))}),k=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,54281))}),B=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,38293))}),F=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,17961))}),j=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,9332))}),H=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,36321))}),U=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,70460))}),Y=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,21595))}),G=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,9376))}),z=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,47298))}),V=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,47298))}),q=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,76671))}),W=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,40533))}),Q=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,86953))}),K=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,47298))}),$=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,92671))}),X=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,4620))}),J=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,6739))}),Z=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,7542))}),ee=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,21536))}),te=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,79315))}),ne=(0,r.lazy)(function(){return Promise.resolve().then(n.bind(n,86427))}),re=function(e){return e.EntryPath=\"/\",e.PageNotFound=\"*\",e.RootDashboard=\"dashboard\",e.SmartAgro=\"smartagro\",e.Masters=\"masters\",e.GeoHierarchy=\"geohierarchy\",e.GeoData=\"geodata\",e.SalesHierarchy=\"saleshierarchy\",e.HeadQuarterHierarchy=\"headquarterhierarchy\",e.HeadQuartersData=\"headquartersdata\",e.Events=\"events\",e.EventsPlanning=\"eventsplanning\",e.Events_Planning_DataList=\"eventdatalist\",e.EventsActual=\"eventsactuals\",e.EventsBaseline=\"baseline\",e.Product_Demo_Tracking=\"productdemotracking\",e.DistributorLevelDetails=\"distributordetails\",e.OCREvents=\"ocrevents\",e.UserManagement=\"usermanagement\",e.MDO=\"mdo\",e.RBAC=\"rolebasedaccesscontrol\",e.Users=\"users\",e.Configurations=\"configurations\",e.Module_Config=\"moduleconfig\",e.Module_Config_Events=\"events\",e.Module_Config_Leaderboard=\"leaderboard\",e.Module_Config_AutoSync=\"autosync\",e.Module_Config_Retailer=\"retailer\",e.Module_Config_EventTarget=\"eventtarget\",e.Module_Config_Costcenter=\"costcenter\",e.Module_Config_demo_tracking=\"demo_tracking\",e.Form_Config=\"formconfigurations\",e.Push_Notifications=\"pushnotifications\",e.Attendance_Config=\"attendance/config\",e.Admin_Config=\"adminconfig\",e.Events_Baseline_Config=\"eventsbaselineconfig\",e.Share_Of_Wallet_Config=\"shareofwalletconfig\",e.Liquidation_Targets_Actuals=\"liquidationtargetsactuals\",e.Pay_For_Performance_Config=\"payforperformanceconfig\",e.Retailers=\"retailers\",e.Upload_Retailers=\"uploadretailer\",e.List_Of_Retailer=\"listofretailers\",e.Retailer_List=\"retailerlist\",e.Retailer_Details=\"retailerdetails\",e.Retailers_My_Uploads=\"retailersmyuploads\",e.Kyc_Verifier=\"kycverifier\",e.Kyc_Edit_Details=\"kycdetails\",e.Orphan_Retailers=\"orphanretailers\",e.RetailersMapping=\"retailersmapping\",e.DownloadReport=\"downloadreport\",e.LiquidationTarget=\"liquidationtarget\",e.WIP=\"wip\",e.Admin=\"Admin\",e.MdoHq=\"MDO HQ\",e.HelpAndSupport=\"helpandsupport\",e.Help=\"help\",e.Faq=\"faq\",e.Attendance=\"attendance\",e.Mdo_attendance=\"attendance\",e.Approval=\"approval\",e.Attendance_details=\"mdo attendance details\",e.Attendance_Details=\"attendancedetails\",e.Attendance_Approval=\"attendanceapproval\",e.Liquidation_Target_Actuals=\"liquidationtargetactuals\",e.Pay_For_Performance=\"payforperformance\",e.Mlp=\"mlp\",e.NewMlp=\"newmlp\",e.Uploads=\"uploads\",e.Demo_Tracking=\"demotracking\",e.Demo_Dispatch_Details=\"demodispatchdetails\",e.Demo_List=\"demolist\",e.Visit_details=\"visitdetails\",e.Demo_Request_Data=\"demorequestdata\",e.Holiday_Upload=\"holidayupload\",e.distributor_Upload=\"distributorupload\",e.Uploads_ErrorLog=\"myuploads\",e.Downloads=\"downloads\",e.MDO_HQ_History=\"MDOHQ\",e.TM_HQ_HISTORY=\"TMHQ\",e.LIQUIDATIONS=\"liquidations\",e.MY_DOWNLOADS=\"mydownloads\",e.My_Distributors=\"mydistributors\",e.My_Territories=\"myterritories\",e.Retailers_Bgp=\"retailersbgp\",e.Retailer_BGPDetails=\"retailerbgpdetails\",e.TMHQ_BGP_Details=\"tmhqbgpdetails\",e.MDOHQ_BGP_Details=\"mdohqbgpdetails\",e.BGPDetails=\"bgpdetails\",e.HeadQuarterList=\"headquarterlist\",e.HeadQuarterBGPList=\"headquarterBGPlist\",e.Liquidation_From_Sumridhi=\"LiquidationFromSumridhi\",e.Liquidation_Summary=\"liquidationsummary\",e.Liquidation_Detail=\"liquidationdetail\",e.Liquidation_Retailer_Details=\"liquidationretailerdetails\",e.Mlp_FullDetails=\"mlpfulldetails\",e}({}),oe=function(e){return e.Home=\"Home\",e.Masters=\"Masters\",e.GeoHierarchy=\"Geo Hierarchy\",e.GeoData=\"Geo Data\",e.SalesHierarchy=\"Sales Hierarchy\",e.HeadQuarterHierarchy=\"Head Quarter Hierarchy\",e.HeadQuartersData=\"Head Quarters Data\",e.Events=\"Events\",e.EventsPlanning=\"Events Planning (Target)\",e.EventsActual=\"Events Actuals\",e.EventsBaseline=\"Events Baseline\",e.Product_Demo_Tracking=\"Product Demo Tracking\",e.OCREvents=\"OCR Events\",e.Events_Basic_Baseline=\"Events Baseline\",e.UserManagement=\"User Management\",e.MDO=\"MDO\",e.RBAC=\"Role Based Access Control\",e.Users=\"Users\",e.Configurations=\"Configurations\",e.Module_Config=\"Module Config\",e.Form_Config=\"Form Configurations\",e.Push_Notifications=\"Push Notifications\",e.Attendance_Config=\"Attendance Config\",e.Admin_Config=\"Admin Config\",e.Events_Baseline_Config=\"Events Baseline Config\",e.Share_Of_Wallet_Config=\"Share Of Wallet Config\",e.Liquidation_Targets_Actuals=\"Liquidation Config\",e.Retailers=\"Retailers\",e.Upload_Retailer=\"Upload Retailer\",e.Retailer_Details=\"Retailer Details\",e.Retailers_My_Uploads=\"My Uploads\",e.Retailers_list=\"Retailers List\",e.Kyc_Verifier=\"KYC Verifier\",e.Kyc_Edit_Details=\"KYC details\",e.Retailers_Bgp=\"Retailers BGP Details\",e.BGPDetails=\"Add BGP Details\",e.Orphan_Retailers=\"Orphan Retailers\",e.Retailers_Mapping=\"Retailer Mapping\",e.Admin=\"Admin\",e.MdoHq=\"MDO HQ\",e.Support=\"Support\",e.Help=\"Help\",e.Faq=\"FAQs\",e.Attendance=\"Attendance\",e.View_Attendance=\"View Attendance\",e.Attendance_Details=\"attendancedetails\",e.Attendance_Approval=\"attendanceapproval\",e.Uploads=\"Uploads\",e.Approval_Summary=\"Approval Summary\",e.Liquidation_Target_Actuals=\"Liquidation Target/Actuals\",e.Mlp=\"MLP\",e.NewMlp=\"New MLP\",e.Pay_For_Performance=\"Pay for Performance (Plan/Actual)\",e.Demo_Tracking=\"Demo Tracking\",e.Demo_Dispatch_Details=\"Demo Dispatch Details\",e.Demo_List=\"Demo List\",e.Demo_Request_Data=\"Demo Request Data\",e.Downloads=\"Downloads\",e.My_Distributors=\"My Distributors\",e.My_Territories=\"My Territories\",e.Liquidation_From_Sumridhi=\"Liquidation From Sumridhi\",e.Liquidation_Summary=\"Liquidation Summary\",e.Liquidation_Detail=\"Liquidation Detail\",e.Liquidation_Retailer_Details=\"Liquidation Retailer Details\",e}({}),ae=Object.create({ATTENDANCE:\"icon-Attendance-Approval\",CONFIGURATIONS:\"icon-configurations\",\"DOWNLOAD-REPORT\":\"icon-Download-Report\",EVENTS:\"icon-events\",FAQ:\"icon-FAQ\",SUPPORT:\"icon-help\",MASTERS:\"icon-Masters\",RETAILERS:\"icon-Retailer-KYC\",UPLOADS:\"icon-Uploads\",\"USER-MANAGEMENT\":\"icon-user-management\",WIP:\"icon-Admin\",\"MODULE-CONFIG\":\"icon-module-config\",\"FORM-CONFIGURATIONS\":\"icon-formconfig\",\"PUSH-NOTIFICATIONS\":\"icon-pushnotification\",\"EVENTS-PLANNING-TARGET\":\"icon-event-planning\",\"EVENTS-BASELINE\":\"icon-Country\",WEB_PRODUCT_DEMO_TRACKING:\"icon-product-demo-tracking\",\"EVENTS-ACTUALS\":\"icon-event-actuals\",\"GEO-HIERARCHY\":\"icon-geo-hierarchy\",\"GEO-DATA\":\"icon-geo-data\",\"SALES-HIERARCHY\":\"icon-sales-hierarchy\",\"HQ-HIERARCHY\":\"icon-building\",\"HQ-DATA\":\"icon-head-quarters-data\",\"RETAILER-LIST\":\"icon-retailers-list\",\"UPLOAD-RETAILERS\":\"icon-upload-retailers\",MDO:\"icon-MDO\",\"ROLE-BASED-ACCESS-CONTROL\":\"icon-role-based-access-control\",USERS:\"icon-Users\",HELP:\"icon-help\",\"ATTENDANCE-CONFIG\":\"icon-attendance-config\",\"ADMIN-CONFIG\":\"icon-Admin\",\"APPROVAL-SUMMARY\":\"icon-Admin\",\"VIEW-ATTENDANCE\":\"icon-Attendance-Approval\",\"ATTENDANCE-APPROVAL\":\"icon-Attendance-Approval\",\"EVENTS-BASELINE-CONFIG\":\"icon-event-baseline-config\",\"LIQUIDATION-TARGETS-CONFIG\":\"icon-liquidation\",\"WEB-PAY-FOR-PERFORMANCE-CONFIG\":\"icon-liquidation\",\"LIQUIDATION-TARGETS-ACTUALS\":\"icon-liquidation\",\"WEB-PAY-FOR-PERFORMANCE\":\"icon-liquidation\",\"WEB-MLP\":\"icon-liquidation\",\"LIQUIDATION-CONFIG\":\"icon-liquidation\",\"KYC-VERIFIER\":\"icon-Retailer-KYC\",\"WEB-DEMO-TRACKING\":\"icon-Masters\",\"WEB-DEMO-DISPATCH-DETAILS\":\"icon-Masters\",\"WEB-DEMO-LIST\":\"icon-Retailer-KYC\",\"ORPHAN-RETAILERS\":\"icon-Retailer-KYC\",\"WEB-RETAILERS-MAPPING\":\"icon-Orphan-Retailer\",DOWNLOADS:\"icon-icon-download\",\"MY-DISTRIBUTORS\":\"icon-Retailer-KYC\",\"MY-TERRITORIES\":\"icon-liquidation\",\"SHARE-OF-WALLET-CONFIG\":\"icon-Admin\",OCR:\"icon-OCR-events\",\"RETAILER-BGP\":\"icon-Retailer-KYC\",\"LIQUIDATION-FROM-SUMRIDHI\":\"icon-liquidation\"}),ie=Object.create({CONFIGURATIONS:re.Configurations,EVENTS:re.Events,SUPPORT:re.HelpAndSupport,MASTERS:re.Masters,RETAILERS:re.Retailers,\"USER-MANAGEMENT\":re.UserManagement,\"MODULE-CONFIG\":re.Module_Config,\"FORM-CONFIGURATIONS\":re.Form_Config,\"PUSH-NOTIFICATIONS\":re.Push_Notifications,\"EVENTS-PLANNING-TARGET\":re.EventsPlanning,\"EVENTS-BASELINE\":re.EventsBaseline,WEB_PRODUCT_DEMO_TRACKING:re.Product_Demo_Tracking,\"EVENTS-ACTUALS\":re.EventsActual,\"GEO-HIERARCHY\":re.GeoHierarchy,\"GEO-DATA\":re.GeoData,\"SALES-HIERARCHY\":re.SalesHierarchy,\"HQ-HIERARCHY\":re.HeadQuarterHierarchy,\"HQ-DATA\":re.HeadQuartersData,MDO:re.MDO,\"ROLE-BASED-ACCESS-CONTROL\":re.RBAC,USERS:re.Users,\"RETAILER-LIST\":re.Retailer_List,\"UPLOAD-RETAILERS\":re.Upload_Retailers,HELP:re.Help,FAQ:re.Faq,ATTENDANCE:re.Attendance,\"ADMIN-CONFIG\":re.Admin_Config,\"ATTENDANCE-CONFIG\":re.Attendance_Config,UPLOADS:re.Uploads,\"EVENTS-BASELINE-CONFIG\":re.Events_Baseline_Config,\"SHARE-OF-WALLET-CONFIG\":re.Share_Of_Wallet_Config,\"LIQUIDATION-TARGETS-CONFIG\":re.Liquidation_Targets_Actuals,\"WEB-PAY-FOR-PERFORMANCE-CONFIG\":re.Pay_For_Performance_Config,\"LIQUIDATION-TARGETS-ACTUALS\":re.Liquidation_Target_Actuals,\"WEB-PAY-FOR-PERFORMANCE\":re.Pay_For_Performance,\"WEB-MLP\":re.Mlp,\"LIQUIDATION-CONFIG\":re.Liquidation_Targets_Actuals,\"KYC-VERIFIER\":re.Kyc_Verifier,\"WEB-DEMO-TRACKING\":re.Demo_Tracking,\"WEB-DEMO-DISPATCH-DETAILS\":re.Demo_Dispatch_Details,\"WEB-DEMO-LIST\":re.Demo_List,\"DEMO-REQUEST-DATA\":re.Demo_Request_Data,DOWNLOADS:re.Downloads,\"MY-DISTRIBUTORS\":re.My_Distributors,\"MY-TERRITORIES\":re.My_Territories,\"RETAILER-BGP\":re.Retailers_Bgp,APPROVALS:re.Attendance_Approval,\"ATTENDANCE-DETAILS\":re.Attendance_Details,\"ORPHAN-RETAILERS\":re.Orphan_Retailers,\"WEB-RETAILERS-MAPPING\":re.RetailersMapping,OCR:re.OCREvents,\"LIQUIDATION-FROM-SUMRIDHI\":re.Liquidation_From_Sumridhi}),le=Object.create({ATTENDANCE:\"ATTENDANCE\",CONFIGURATIONS:\"CONFIGURATIONS\",EVENTS:\"EVENTS\",SUPPORT:\"SUPPORT\",MASTERS:\"MASTERS\",RETAILERS:\"RETAILERS\",\"USER-MANAGEMENT\":\"USER-MANAGEMENT\",UPLOADS:\"UPLOADS\",WIP:\"WIP\",\"MODULE-CONFIG\":\"MODULE-CONFIG\",\"FORM-CONFIGURATIONS\":\"FORM-CONFIGURATIONS\",\"PUSH-NOTIFICATIONS\":\"PUSH-NOTIFICATIONS\",\"EVENTS-PLANNING-TARGET\":\"EVENTS-PLANNING-TARGET\",\"EVENTS-BASELINE\":\"EVENTS-BASELINE\",WEB_PRODUCT_DEMO_TRACKING:\"WEB_PRODUCT_DEMO_TRACKING\",\"EVENTS-ACTUALS\":\"EVENTS-ACTUALS\",\"GEO-HIERARCHY\":\"GEO-HIERARCHY\",\"GEO-DATA\":\"GEO-DATA\",\"SALES-HIERARCHY\":\"SALES-HIERARCHY\",\"HQ-HIERARCHY\":\"HQ-HIERARCHY\",\"HQ-DATA\":\"HQ-DATA\",\"RETAILER-LIST\":\"RETAILER-LIST\",\"UPLOAD-RETAILERS\":\"UPLOAD-RETAILERS\",MDO:\"MDO\",\"ROLE-BASED-ACCESS-CONTROL\":\"ROLE-BASED-ACCESS-CONTROL\",USERS:\"USERS\",HELP:\"HELP\",FAQ:\"FAQ\",\"VIEW-ATTENDANCE\":\"VIEW-ATTENDANCE\",\"ATTENDANCE-CONFIG\":\"ATTENDANCE-CONFIG\",\"ADMIN-CONFIG\":\"ADMIN-CONFIG\",\"EVENTS-BASELINE-CONFIG\":\"EVENTS-BASELINE-CONFIG\",\"SHARE-OF-WALLET-CONFIG \":\"SHARE-OF-WALLET-CONFIG\",\"APPROVAL-SUMMARY\":\"APPROVAL-SUMMARY\",\"LIQUIDATION-TARGETS-CONFIG\":\"LIQUIDATION-TARGETS-CONFIG\",\"WEB-PAY-FOR-PERFORMANCE-CONFIG\":\"WEB-PAY-FOR-PERFORMANCE-CONFIG\",\"LIQUIDATION-TARGETS-ACTUALS\":\"LIQUIDATION-TARGETS-ACTUALS\",\"WEB-PAY-FOR-PERFORMANCE\":\"WEB-PAY-FOR-PERFORMANCE\",\"WEB-MLP\":\"WEB-MLP\",\"LIQUIDATION-CONFIG\":\"LIQUIDATION-CONFIG\",\"KYC-VERIFIER\":\"KYC-VERIFIER\",\"WEB-DEMO-TRACKING\":\"WEB-DEMO-TRACKING\",\"WEB-DEMO-DISPATCH-DETAILS\":\"WEB-DEMO-DISPATCH-DETAILS\",DOWNLOADS:\"DOWNLOADS\",\"MY-DISTRIBUTORS\":\"MY-DISTRIBUTORS\",\"RETAILER-BGP\":\"RETAILER-BGP\",\"ORPHAN-RETAILERS\":\"ORPHAN-RETAILERS\",\"WEB-RETAILERS-MAPPING\":\"WEB-RETAILERS-MAPPING\",\"MY-TERRITORIES\":\"MY-TERRITORIES\",OCR:\"OCR\",\"LIQUIDATION-FROM-SUMRIDHI\":\"LIQUIDATION-FROM-SUMRIDHI\"}),se={MASTERS:l,\"GEO-HIERARCHY\":g,\"GEO-DATA\":f,\"SALES-HIERARCHY\":m,\"HQ-HIERARCHY\":v,\"HQ-DATA\":h,CONFIGURATIONS:p,\"MODULE-CONFIG\":N,\"FORM-CONFIGURATIONS\":L,\"PUSH-NOTIFICATIONS\":P,\"ATTENDANCE-CONFIG\":M,\"ADMIN-CONFIG\":x,\"EVENTS-BASELINE-CONFIG\":I,\"SHARE-OF-WALLET-CONFIG\":k,\"LIQUIDATION-TARGETS-CONFIG\":z,\"WEB-PAY-FOR-PERFORMANCE-CONFIG\":K,\"LIQUIDATION-CONFIG\":V,RETAILERS:u,\"RETAILER-LIST\":E,\"UPLOAD-RETAILERS\":y,\"KYC-VERIFIER\":b,\"RETAILER-BGP\":_,\"ORPHAN-RETAILERS\":C,\"WEB-RETAILERS-MAPPING\":w,\"USER-MANAGEMENT\":c,MDO:F,\"ROLE-BASED-ACCESS-CONTROL\":B,USERS:j,EVENTS:s,\"EVENTS-PLANNING-TARGET\":S,\"EVENTS-BASELINE\":O,WEB_PRODUCT_DEMO_TRACKING:D,\"EVENTS-ACTUALS\":T,OCR:R,SUPPORT:A,HELP:H,FAQ:U,ATTENDANCE:Y,UPLOADS:G,\"LIQUIDATION-TARGETS-ACTUALS\":q,\"WEB-PAY-FOR-PERFORMANCE\":W,\"WEB-MLP\":Q,\"WEB-DEMO-TRACKING\":d,\"WEB-DEMO-DISPATCH-DETAILS\":X,\"WEB-DEMO-LIST\":J,\"DEMO-REQUEST-DATA\":Z,DOWNLOADS:te,\"MY-DISTRIBUTORS\":$,\"MY-TERRITORIES\":ee,\"LIQUIDATION-FROM-SUMRIDHI\":ne},ue=function(e,t){var n=se[\"\".concat(e)];return o().createElement(n,t)},ce=function(e,t){var n,r=function(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(\"string\"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.module_name===t)return o.permissions;if(o.sub_module){var a=o.sub_module.find(function(e){return e.module_name===t});if(a)return a.permissions}}}catch(e){r.e(e)}finally{r.f()}return null},de=function(e){return{\"RETAILER-LIST\":{uploadRetailers:ce(e,\"UPLOAD-RETAILERS\")}}},pe=function(e){var t=[];return(null==e?void 0:e.length)>0&&e.forEach(function(n,r){var o,i;(null==n?void 0:n.module_name)===le[\"\".concat(null==n?void 0:n.module_name)]&&null!=n&&n.permissions.includes(a.g2.READ)&&t.push({displayName:null==n?void 0:n.display_label,moduleName:null==n?void 0:n.module_name,RouteElement:function(e){return ue(n.module_name,e)},path:\"/\".concat(re.SmartAgro,\"/\").concat(ie[null==n?void 0:n.module_name]),iconName:ae[\"\".concat(null==n?void 0:n.module_name)],isEnabled:!0,permissions:null==n?void 0:n.permissions,subModuleElements:null==n||null===(o=n.sub_module)||void 0===o?void 0:o.filter(function(e){return a.v0.includes(null==e?void 0:e.module_name)}),subModuleProps:null==n||null===(i=n.sub_module)||void 0===i||null===(i=i.filter(function(e){return!a.v0.includes(null==e?void 0:e.module_name)}))||void 0===i?void 0:i.map(function(t){var n,r;return{displayName:null==t?void 0:t.display_label,moduleName:null==t?void 0:t.module_name,RouteElement:function(e){return ue(null==t?void 0:t.module_name,e)},path:ie[\"\".concat(null==t?void 0:t.module_name)],iconName:ae[\"\".concat(null==t?void 0:t.module_name)],isEnabled:!0,permissions:null==t?void 0:t.permissions,subControls:null!==(n=null===(r=de(e))||void 0===r?void 0:r[null==t?void 0:t.module_name])&&void 0!==n?n:{}}})})}),t}},96369:(e,t,n)=>{\"use strict\";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},96395:e=>{\"use strict\";e.exports=!1},96533:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var i=a(n(81970)),l=n(64436),s=n(98400),u=n(67991),c=i.forwardRef(function(e,t){var n=e.children,r=e.eFocusableElement,o=e.onTabKeyDown,a=e.gridCtrl,c=i.useContext(s.BeansContext).context,d=i.useRef(null),p=i.useRef(null),f=i.useRef(),g=i.useState(),h=g[0],m=g[1];i.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){f.current.forceFocusOutOfContainer()}}}),u.useLayoutEffectOnce(function(){var e=d.current,t=p.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},i=f.current=c.createBean(new l.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:r,onTabKeyDown:o,focusInnerElement:function(e){return a.focusInnerElement(e)}}));return function(){c.destroyBean(i)}});var v=function(e){var t=\"top\"===e?l.TabGuardClassNames.TAB_GUARD_TOP:l.TabGuardClassNames.TAB_GUARD_BOTTOM;return i.default.createElement(\"div\",{className:l.TabGuardClassNames.TAB_GUARD+\" \"+t,role:\"presentation\",tabIndex:h,ref:\"top\"===e?d:p})};return i.default.createElement(i.default.Fragment,null,v(\"top\"),n,v(\"bottom\"))});t.default=i.memo(c)},96600:(e,t,n)=>{\"use strict\";e.exports=n.p+\"2c2eadabfa5f40a22115.svg\"},96627:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>y});var r=n(58168),o=n(98587),a=n(81970),i=n(34164),l=n(75659),s=n(27256),u=n(25669),c=n(11848),d=n(38413),p=n(31609);function f(e){return(0,p.Ay)(\"MuiTableHead\",e)}(0,d.A)(\"MuiTableHead\",[\"root\"]);var g=n(74848);const h=[\"className\",\"component\"],m=(0,c.Ay)(\"thead\",{name:\"MuiTableHead\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"table-header-group\"}),v={variant:\"head\"},A=\"thead\",y=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiTableHead\"}),{className:a,component:c=A}=n,d=(0,o.A)(n,h),p=(0,r.A)({},n,{component:c}),y=(e=>{const{classes:t}=e;return(0,l.A)({root:[\"root\"]},f,t)})(p);return(0,g.jsx)(s.A.Provider,{value:v,children:(0,g.jsx)(m,(0,r.A)({as:c,className:(0,i.A)(y.root,a),ref:t,role:c===A?null:\"rowgroup\",ownerState:p},d))})})},96653:(e,t,n)=>{n(45270);for(var r=n(56903),o=n(14632),a=n(52833),i=n(15413)(\"toStringTag\"),l=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),s=0;s<l.length;s++){var u=l[s],c=r[u],d=c&&c.prototype;d&&!d[i]&&o(d,i,u),a[u]=a.Array}},96713:(e,t,n)=>{\"use strict\";n.d(t,{m:()=>p}),n(23792),n(26099),n(62953);var r=n(90815),o=n(28161),a=n(14073),i=n(88084),l=n(56203),s=n(81970),u=n.n(s),c=n(64121),d=n(28152),p=function(e){var t=e.values,n=e.parentHqList,s=e.setFieldValue;return u().createElement(r.A,{direction:\"row\",gap:2,alignItems:\"flex-start\",mb:2},u().createElement(o.A,{width:\"100%\"},u().createElement(a.A,{variant:\"subtitle2\"},(0,l.t)(\"PARENT_HQ\"),\"*\"),u().createElement(i.D0,{name:\"portfolio\"},function(){return u().createElement(c.A,{name:\"parent_hq_id\",onChange:function(e,t){s(\"parent_hq_id\",t)},options:n,labelKey:\"label\",label:\"parent_hq_id\",selectedOption:t.parent_hq_id,value:t.parent_hq_id,defaultLabel:(0,l.t)(\"PARENT_HQ_PLACEHOLDER\")})}),u().createElement(d.A,{errName:\"parent_hq_id\"})))}},96790:(e,t,n)=>{\"use strict\";n.d(t,{LG:()=>r,dF:()=>o});var r=function(e){return e.octet_stream=\"application/octet-stream\",e.json=\"application/json\",e}({}),o=function(e){return e.GET=\"GET\",e.POST=\"POST\",e.PUT=\"PUT\",e.DELETE=\"DELETE\",e}({})},96801:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(48686),a=n(24913),i=n(28551),l=n(25397),s=n(71072);t.f=r&&!o?Object.defineProperties:function(e,t){i(e);for(var n,r=l(t),o=s(t),u=o.length,c=0;u>c;)a.f(e,n=o[c++],r[n]);return e}},96837:e=>{\"use strict\";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t(\"Maximum allowed index exceeded\");return e}},96852:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(31523).A},96870:function(e,t,n){!function(e){\"use strict\";var t={1:\"១\",2:\"២\",3:\"៣\",4:\"៤\",5:\"៥\",6:\"៦\",7:\"៧\",8:\"៨\",9:\"៩\",0:\"០\"},n={\"១\":\"1\",\"២\":\"2\",\"៣\":\"3\",\"៤\":\"4\",\"៥\":\"5\",\"៦\":\"6\",\"៧\":\"7\",\"៨\":\"8\",\"៩\":\"9\",\"០\":\"0\"};e.defineLocale(\"km\",{months:\"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ\".split(\"_\"),monthsShort:\"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ\".split(\"_\"),weekdays:\"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍\".split(\"_\"),weekdaysShort:\"អា_ច_អ_ព_ព្រ_សុ_ស\".split(\"_\"),weekdaysMin:\"អា_ច_អ_ព_ព្រ_សុ_ស\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return\"ល្ងាច\"===e},meridiem:function(e,t,n){return e<12?\"ព្រឹក\":\"ល្ងាច\"},calendar:{sameDay:\"[ថ្ងៃនេះ ម៉ោង] LT\",nextDay:\"[ស្អែក ម៉ោង] LT\",nextWeek:\"dddd [ម៉ោង] LT\",lastDay:\"[ម្សិលមិញ ម៉ោង] LT\",lastWeek:\"dddd [សប្តាហ៍មុន] [ម៉ោង] LT\",sameElse:\"L\"},relativeTime:{future:\"%sទៀត\",past:\"%sមុន\",s:\"ប៉ុន្មានវិនាទី\",ss:\"%d វិនាទី\",m:\"មួយនាទី\",mm:\"%d នាទី\",h:\"មួយម៉ោង\",hh:\"%d ម៉ោង\",d:\"មួយថ្ងៃ\",dd:\"%d ថ្ងៃ\",M:\"មួយខែ\",MM:\"%d ខែ\",y:\"មួយឆ្នាំ\",yy:\"%d ឆ្នាំ\"},dayOfMonthOrdinalParse:/ទី\\d{1,2}/,ordinal:\"ទី%d\",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(95093))},97040:(e,t,n)=>{\"use strict\";var r=n(43724),o=n(24913),a=n(6980);e.exports=function(e,t,n){r?o.f(e,t,a(0,n)):e[t]=n}},97479:(e,t,n)=>{\"use strict\";t.__esModule=!0;var r=i(n(66327)),o=i(n(75522)),a=\"function\"==typeof o.default&&\"symbol\"==typeof r.default?function(e){return typeof e}:function(e){return e&&\"function\"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?\"symbol\":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default=\"function\"==typeof o.default&&\"symbol\"===a(r.default)?function(e){return void 0===e?\"undefined\":a(e)}:function(e){return e&&\"function\"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?\"symbol\":void 0===e?\"undefined\":a(e)}},97588:(e,t,n)=>{\"use strict\";var r,o=(r=n(89829))&&r.__esModule?r:{default:r};t.A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},97650:function(e,t,n){!function(e){\"use strict\";var t=\"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.\".split(\"_\"),n=\"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic\".split(\"_\"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;e.defineLocale(\"es\",{months:\"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre\".split(\"_\"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:\"domingo_lunes_martes_miércoles_jueves_viernes_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mié._jue._vie._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY H:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY H:mm\"},calendar:{sameDay:function(){return\"[hoy a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextDay:function(){return\"[mañana a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextWeek:function(){return\"dddd [a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastDay:function(){return\"[ayer a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [pasado a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"en %s\",past:\"hace %s\",s:\"unos segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"una hora\",hh:\"%d horas\",d:\"un día\",dd:\"%d días\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un año\",yy:\"%d años\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4},invalidDate:\"Fecha inválida\"})}(n(95093))},97711:function(e,t,n){!function(e){\"use strict\";e.defineLocale(\"tzm-latn\",{months:\"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir\".split(\"_\"),monthsShort:\"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir\".split(\"_\"),weekdays:\"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas\".split(\"_\"),weekdaysShort:\"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas\".split(\"_\"),weekdaysMin:\"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[asdkh g] LT\",nextDay:\"[aska g] LT\",nextWeek:\"dddd [g] LT\",lastDay:\"[assant g] LT\",lastWeek:\"dddd [g] LT\",sameElse:\"L\"},relativeTime:{future:\"dadkh s yan %s\",past:\"yan %s\",s:\"imik\",ss:\"%d imik\",m:\"minuḍ\",mm:\"%d minuḍ\",h:\"saɛa\",hh:\"%d tassaɛin\",d:\"ass\",dd:\"%d ossan\",M:\"ayowr\",MM:\"%d iyyirn\",y:\"asgas\",yy:\"%d isgasn\"},week:{dow:6,doy:12}})}(n(95093))},97726:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0});var l=i(n(81970)),s=n(63981),u=n(98400),c=n(29389),d=n(67991);t.default=l.forwardRef(function(e,t){var n=l.useContext(u.BeansContext),o=n.ctrlsFactory,a=n.context,i=n.gridOptionsService,p=n.resizeObserverService,f=n.clientSideRowModel,g=n.serverSideRowModel,h=l.useState(new s.CssClasses),m=h[0],v=h[1],A=l.useState(new s.CssClasses),y=A[0],E=A[1],b=l.useState(),_=b[0],C=b[1],w=l.useState(),S=w[0],T=w[1],O=l.useRef(),D=l.useRef(null),R=l.useMemo(function(){return m.toString()+\" ag-details-row\"},[m]),N=l.useMemo(function(){return y.toString()+\" ag-details-grid\"},[y]);t&&l.useImperativeHandle(t,function(){return{refresh:function(){return O.current.refresh()}}}),d.useLayoutEffectOnce(function(){e.template&&\"string\"==typeof e.template&&console.warn(\"AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.\")}),d.useLayoutEffectOnce(function(){var t={addOrRemoveCssClass:function(e,t){return v(function(n){return n.setClass(e,t)})},addOrRemoveDetailGridCssClass:function(e,t){return E(function(n){return n.setClass(e,t)})},setDetailGrid:function(e){return C(e)},setRowData:function(e){return T(e)},getGui:function(){return D.current}},n=o.getInstance(\"detailCellRenderer\");if(n){var r;if(a.createBean(n),n.init(t,e),O.current=n,i.is(\"detailRowAutoHeight\")){var l=function(){if(null!=D.current){var t=D.current.clientHeight;null!=t&&t>0&&setTimeout(function(){e.node.setRowHeight(t),f?f.onRowHeightChanged():g&&g.onRowHeightChanged()},0)}};r=p.observeResize(D.current,l),l()}return function(){a.destroyBean(n),r&&r()}}});var L=l.useCallback(function(e,t){O.current.registerDetailWithMaster(e,t)},[]);return l.default.createElement(\"div\",{className:R,ref:D},_&&l.default.createElement(c.AgGridReactUi,r({className:N},_,{rowData:S,setGridApi:L})))})},97751:(e,t,n)=>{\"use strict\";var r=n(44576),o=n(94901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},97803:function(e,t,n){\"use strict\";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var u=i(n(81970)),c=n(64436),d=n(9670),p=n(63981),f=n(98400),g=s(n(65323)),h=n(67991);t.default=u.memo(function(e){var t=u.useContext(f.BeansContext).context,n=e.rowCtrl,o=e.containerType,a=u.useState(),i=a[0],s=a[1],m=u.useState(),v=m[0],A=m[1],y=u.useState(),E=y[0],b=y[1],_=u.useState(),C=_[0],w=_[1],S=u.useState(),T=S[0],O=S[1],D=u.useState(),R=D[0],N=D[1],L=u.useState({list:[],instanceIdMap:new Map}),P=L[0],M=L[1],x=u.useState(),I=x[0],k=x[1],B=u.useState(!1),F=B[0],j=B[1],H=u.useState(n.getInitialRowTop(o)),U=H[0],Y=H[1],G=u.useState(n.getInitialTransform(o)),z=G[0],V=G[1],q=u.useRef(null),W=u.useRef(),Q=u.useRef(!1),K=u.useState(0),$=K[0],X=K[1];u.useEffect(function(){var e;if(!Q.current&&I&&!($>10)){var t=null===(e=q.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),Q.current=!0):X(function(e){return e+1})}},[I,$]);var J=u.useMemo(function(){return new c.CssClassManager(function(){return q.current})},[]);h.useLayoutEffectOnce(function(){if(n.isAlive()){var e={setTop:function(e){return Y(e)},setTransform:function(e){return V(e)},addOrRemoveCssClass:function(e,t){return J.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return j(e)},setRowIndex:function(e){return s(e)},setRowId:function(e){return A(e)},setRowBusinessKey:function(e){return w(e)},setTabIndex:function(e){return O(e)},setUserStyles:function(e){return N(e)},setRole:function(e){return b(e)},setCellCtrls:function(e,t){p.agFlushSync(t,function(){M(function(t){return function(e,t,n){if(n){var r={list:t,instanceIdMap:new Map};return t.forEach(function(e){return r.instanceIdMap.set(e.getInstanceId(),e)}),r}var o=[],a=[],i=new Map,s=new Map;return t.forEach(function(e){return s.set(e.getInstanceId(),e)}),e.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(o.push(e),i.set(t,e))}),t.forEach(function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(a.push(t),i.set(n,t))}),{list:l(o,a),instanceIdMap:i}}(t,e,F)})})},showFullWidth:function(e){return k(e)},getFullWidthCellRenderer:function(){return W.current}};return n.setComp(e,q.current,o),function(){n.unsetComp(o)}}}),u.useLayoutEffect(function(){return d.showJsComp(I,t,q.current,W)},[I]);var Z,ee=u.useMemo(function(){var e={top:U,transform:z};return Object.assign(e,R),e},[U,z,R]),te=I&&I.componentFromFramework,ne=null!=P,re=u.useMemo(function(){return!(!(null==I?void 0:I.componentFromFramework)||!p.isComponentStateless(I.componentClass))},[I]);return u.default.createElement(\"div\",{ref:q,role:E,style:ee,\"row-index\":i,\"row-id\":v,\"row-business-key\":C,tabIndex:T},ne&&P.list.map(function(e){return u.default.createElement(g.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),te&&(Z=I.componentClass,u.default.createElement(u.default.Fragment,null,re&&u.default.createElement(Z,r({},I.params)),!re&&u.default.createElement(Z,r({},I.params,{ref:W})))))})},97812:(e,t,n)=>{\"use strict\";var r=n(46518),o=n(39297),a=n(10757),i=n(16823),l=n(25745),s=n(91296),u=l(\"symbol-to-string-registry\");r({target:\"Symbol\",stat:!0,forced:!s},{keyFor:function(e){if(!a(e))throw new TypeError(i(e)+\" is not a symbol\");if(o(u,e))return u[e]}})},97825:e=>{\"use strict\";e.exports=function(e){if(\"undefined\"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=\"\";n.supports&&(r+=\"@supports (\".concat(n.supports,\") {\")),n.media&&(r+=\"@media \".concat(n.media,\" {\"));var o=void 0!==n.layer;o&&(r+=\"@layer\".concat(n.layer.length>0?\" \".concat(n.layer):\"\",\" {\")),r+=n.css,o&&(r+=\"}\"),n.media&&(r+=\"}\"),n.supports&&(r+=\"}\");var a=n.sourceMap;a&&\"undefined\"!=typeof btoa&&(r+=\"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a)))),\" */\")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},97916:(e,t,n)=>{\"use strict\";var r=n(76080),o=n(69565),a=n(48981),i=n(96319),l=n(44209),s=n(33517),u=n(26198),c=n(97040),d=n(70081),p=n(50851),f=Array;e.exports=function(e){var t=a(e),n=s(this),g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h;m&&(h=r(h,g>2?arguments[2]:void 0));var v,A,y,E,b,_,C=p(t),w=0;if(!C||this===f&&l(C))for(v=u(t),A=n?new this(v):f(v);v>w;w++)_=m?h(t[w],w):t[w],c(A,w,_);else for(A=n?new this:[],b=(E=d(t,C)).next;!(y=o(b,E)).done;w++)_=m?i(E,h,[y.value,w],!0):y.value,c(A,w,_);return A.length=w,A}},98174:function(e,t,n){!function(e){\"use strict\";var t={1:\"١\",2:\"٢\",3:\"٣\",4:\"٤\",5:\"٥\",6:\"٦\",7:\"٧\",8:\"٨\",9:\"٩\",0:\"٠\"},n={\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"٠\":\"0\"},r=[\"کانونی دووەم\",\"شوبات\",\"ئازار\",\"نیسان\",\"ئایار\",\"حوزەیران\",\"تەمموز\",\"ئاب\",\"ئەیلوول\",\"تشرینی یەكەم\",\"تشرینی دووەم\",\"كانونی یەکەم\"];e.defineLocale(\"ku\",{months:r,monthsShort:r,weekdays:\"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌\".split(\"_\"),weekdaysShort:\"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌\".split(\"_\"),weekdaysMin:\"ی_د_س_چ_پ_ه_ش\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?\"به‌یانی\":\"ئێواره‌\"},calendar:{sameDay:\"[ئه‌مرۆ كاتژمێر] LT\",nextDay:\"[به‌یانی كاتژمێر] LT\",nextWeek:\"dddd [كاتژمێر] LT\",lastDay:\"[دوێنێ كاتژمێر] LT\",lastWeek:\"dddd [كاتژمێر] LT\",sameElse:\"L\"},relativeTime:{future:\"له‌ %s\",past:\"%s\",s:\"چه‌ند چركه‌یه‌ك\",ss:\"چركه‌ %d\",m:\"یه‌ك خوله‌ك\",mm:\"%d خوله‌ك\",h:\"یه‌ك كاتژمێر\",hh:\"%d كاتژمێر\",d:\"یه‌ك ڕۆژ\",dd:\"%d ڕۆژ\",M:\"یه‌ك مانگ\",MM:\"%d مانگ\",y:\"یه‌ك ساڵ\",yy:\"%d ساڵ\"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,\",\")},postformat:function(e){return e.replace(/\\d/g,function(e){return t[e]}).replace(/,/g,\"،\")},week:{dow:6,doy:12}})}(n(95093))},98235:e=>{\"use strict\";e.exports=\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABIkAAsAAAAAJkAAABHTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIkABmAAiyoKp0ygSgE2AiQDgjALgRoABCAFhEYHhRwbXyFFIbBxAJDYv7AiqieV7P96QZO4Gu9qEMLAgorXqyjcVJKxQxvbtQieEq6u3unbTP3JwOa8v9MeN5Q8Caix/+09wyXRVJ6IfU2IWoiiiWgSIp5JhMSQaX44l/dN+kSUcPER5OzkhHT7gd9m7/PN/wkLMCowCmy8M+qHlXA73abzZiEb3DVcFEavrFyzTvMyXLeieOl4CQlIYbBNxUopM8Nip4zZ0vd82bEQmAQkTsiVYMv9DdPoIJ9DCT5BRcD/P/dqmWTV4A1khZ6f04HXNve+mwJnKdEvp5wBsgWC/5ues98OENRmp4Dl3IQnoXcm1Jydm/+MzfZ0da0rjEJkDPufQ66CYNqwBz9fhdkubhpvRgCmW3MZ9WZ/0uxT+y+dsRzmrRhA3DGcOn50v6mbLFgQE4TvcWyxpK4fl3wNVrgUXkcWRp2jpdEz0efRd9H/kLC2pYAY6p8bw1GEICmaIYgthlYsNmTaHE5dVpnJdT5rWQJjpIs2p6m7ldKIo45RDyqaUsSD6yDj7q/uKinhvdMmTBLlEbCopjVbTsRV0kGei7DXN54VtteylXaUdDSPaa+Ac+UhaYEJNa52HUV2kA3cQVq+tcAxp7Qg6+K2mETrApdi6y3eLMI7dcZFkraCSQ6fzNip7qiKcLCVq+hvOa+AcXspHXiIvvxUcX3a1wHrxZzkxYFOPnjf2Xg8Ude1oja/f90i7i5lKbx40E0ta2DETVJc1dUZ9731xTff/fQfAlOFFHn4ADa/ImNPzMrDspK+zTTH3fmko4S0xESEddPEKWoamIMWga2TmJgoWgsM4TRYdzRdSNbprCHLhgWnnE8zmBjTQzBCwjSHsNniQK3NttnmW3czBzI2JyyqamyrrpUbo0ujalAu3kWxjDzTJqyQU1wXgKVTps2ZdOequYYwYi9NleshqbVeXtI50VQwtbP69rfCNLch55ioujFqKGxo4mYj7c/yesxOmNzAPsTNyMw+pNzaEJRX6LjuTpooygim0BCQROxcCPpaO1xHDSO5mK5Y5GG4Lw4iNyIfcJu9+/DD5sAAEWaUd0mjRxqHfLH+F0FXsSNWFX9FGg/mYsDpOQqsA2IgMl1cHmJQWLcOEuU9GOwfM4UZsIU/59z49b95g/V+nXThF1LJnhHE/dZ1QxxYnrlTMF9xt6IhJF+RyJoCJwPOOJecvbaewIBgpuDiQsMiomLiEpJS0jKyctRai0rKKvhFWFPX0NTS1tHV0zcwNDI2MTUzt7C00ra2sQUhwRvONbatFefI79QbbmnxpFVf//15cb7l9tcep/1MQPQxGvpYv1cOfT/YVuAAq+AgKwCHWB2HWRI4wro4yrYBx1gJOM7SwElWxilWBE6zBs6wLHCWZYBzrIULbDtwkeWBSywFXGZNXGEdXGU54Bqr4jpr48bAHr+AvkSAEAVCDAhxICSAkARCChBSgZAGhHQgZAAhEwhZQMgGQg4QcoGQB4R8IBQAoRAIRUAoBkIJEEqBUAaEciBUAKESCFVAqAZCDRBqgVAHhHogNAChEQhNQGgGQgsQWoHQBoR2IHQAoRMIXUDoBkIP1K7TC/SmDwj9AEiyyBPxCDeJ32Jq/L5SuCTQgA+9YgrDr0OwVUVexYVeyFNcwF0FuoE0V1IcHYu52gT+0kXBK4nr6el0CcZlMiPM9IKDQY100KueobGOYYxqXmE2bizVAIvs3nqFKcc2YSnyk3Q66OkY8nTCVJah4UHTi65clskzVJytzLmz0OWG+nq6ehZcVgN2CUBdufG7YapTyZhAEsBCmDTFKiHIKIpeKyIJIV1OElQuSUcvo0RIF3kpyKIZOErmSCplKmKxYhTkUoyaXolRUsvfwaJMisimqRySziJkuA5G4YBJcQYmM1KdmYYUM2dxY/X5OURfOXuuSUKTUvLpEAvZCEemZ6S/uQf1kkyysiqfJsnvzYbNx8FV9QKi9O3ylLF1OaUYAy/Yp+PoaciqKjvhIGOqrgDDdVlkUKq4irNkPegq57Eipi6rWqrHMyGppKQSWtZGLfNK70FU8OU882IMadJnkR3cThwvKld0DA9jqsHRrq4+RLltSour902A71VtvK5RTDUNekfUY1bt7WoNqRjfi6lc227klPfOTg2uHkOUXYO8wdFJ5dTYMHeMdJ7lvq1LNQw0Gq7LDq7m3YIm6XY+omzVKGDi++/FrjYexeNdwt5ZLWnrH9vFXdPkSZeWFIuLquVlRBlPESMzkDpP5coKrg4uU+0dV0zsU2unlJP7a1RXiPGinJeSBe19ozvNZNkEOtaEyqyS9jSDpjpmVw7h6hELkuYPSG6xBbgTpKbTru2qQR7Vtr63Y6pRRLleIs0iyOpsEbnSrrMmuWbTi1HRUdmL2OLyMsXjz62Qexf9l2YprqazKVG6XCaisrR9qPEmV+jlrFDVq1cCY3GRkEovXwl+GbHYL4PilZUK5dJH8W1lBBAohXBqSMhB6HqKziZICc7AaAzByf2crEsnlgETqQA2kueLAAWoywPhAIuVlpBEliUohuuZSWdXVuVQrALl8ct4Rd4KNSy9dAwh50x3FRjg6otHl45cwKC2tRbjYChuC/a1mVROBRNh1eyBjmFtHkr5EgPF4fqz4DIWA0NuMjCZ0evIPq2gIKUKZLbn3UsbKSKaJkmCEpH0DMysVEbyRHQf/XxVHlquUi0LpQeXQFFpDBnWd0l1wRqbBwGcc2OqRxTDqlHl2Bq2Lg4sBJdS/Hb/VZgS70mk+/zGIof4Ve7j7ntDCK7GYov3eJgzRQirt5t1cC2IU4IT7lX8MbtuR0uaq8E1/CErSrZracnmx9yexUXBH+W7l5dtfyroX1kJ/buMrbNE71mwW6lRcHuvBrsgUrPXE+QZryHAuK83Dzja7GToaa8xu3UKBxyhFu1xhFaprlgTOIJXAG7bNx9Svh0TAE6fwgBvnA5l8HzFV3wlrzKbVDSoS1RTo/aeqieNT83co86TR95gAusmS1J/b6/lALsa18FKLKl5ZVWFVFIgvSxS8j0JXcLNbCTmGDUaxEjQuyjIOr+CrPdPYCS+gTyzCFdPP+XcZTcSyJ0tp8H3b5+HomdemfChsI0ZbXD9VUCKUO2xrGivk03b1tZH07k08kT6JVFe0Z5h8EHX6uoL4sX/q6Op8AJ28Zq60rDikJDisNK/WtobLw4pDfsrJ33yOzXfF3QiVRNeBVhVsOSBcu0z+XN5Q4O8UQ6h361itj7ztmfxvI8t3h8HJ4zLTUs7fWrHjrR0setzL+9ab356MzZX5T+wXugerh8dGOgqL2cwoqNO17WdPnV6Knp8/IvrpIUjJIKjBXHjCwi88rwuqG5XazcytQ0Hn8Ya4Nf7hM3Y0F+fnSN4oYceOoGjmBA/bM0+7whOYkdwZCWOYicot13nxefhQXBuXlxcXsorGUos0XKdE4TM/y+t2rhemTCDuEndAtwkbiH7/2vip3NXrP5uaPoMWTRwjzH6CVk/sMz80mbezEga8Lw/get4YiNqyo90NTHsYzVHvRfE4c8F2u+vsqdpi03s3mm2hTmXZ8M+99AE/4Ld8k7tDaYxZcIe4D8K2Qq+Zn/xTFp1Grn9rDUR6X/amrAM84fjeLztp0x6Ir/w3O+hNfcEbjPekIrpmgsWzNe1c/YWmQde9DXA+k3qYIIZvOlQyErOpYXYGI8gMiCQlHQMGSg5fgAZJIwpayqqdyuwD8prEtdABgS52gykWJ7tCe4+G7yvO7hnH4q4NWY0prsWXWnk288F2nai4hAIjB+a0FQZmac3fzq36e13v6h5myfiGDs+icwT5fVdJU4YcPyYxqlpNTlNh743+cLczDyY3kQ1B3+ia8Cx55hArTZ0ZoXdfv5eHv62C1qxmHQvobrj61usMzw8Q+ILj13UVhUGVlPQnVDfbJUREZ6SVllqcCE+O8AiprRcEZKclew00hfslezhkeQVjOmXNAblxB7FRJBYnBbhlG8eUyZR8wWg5uIt/aQ732hfdUVpuUWM+pgR/1hl1Ld0x080OZ+HdbKVVUb4x92e2qSWdhoZGhAy2+aSnv3a3FUjmsoS/jS73ur58Sd4LDh8qHB0MJZzD4iHBNj02HKhtlUkF+1vDRcVKMwPI1quwUudMEwYqhUFilp3yUXyWSqUP2sNrJMNojBR67Mk7CothruzDWLjsqXAxPbF6urI5MHIc+kVtj5wspx1GswYDC8JDS3e0NKG8FRPTrOWTiMe6UR6w45FMSR6VgkvqXMDlqmC1E9dHj+WJHoeEknyogSpgrmUzML6dNb1kJKMoCuVvMMuYWNj7q8IEhuLIL/qL5g+IvJ+8fQLBF4NrxPWyetE+/WFdSDc5S4fMr18lgX4OT6jr7yhR8JC4R+bu6HaE3leH0VT5dXtSg8OFHineqWkeKV6F4RLnbbMz1s6SVNNkRZe1hsEfFA9ufgq89WJKUdw7N5TMrMkGX/i9IkjXnzBreRuQj4gJyBT/s03BpYR6erTXavvlpd+PRwltP3BxiZl119JSdJKXR1z54iMU+9qNH//rf3nS7+vZuWPuruLNphgFhYbK3j69cbfa+q/w/9Y5t9bWIAA05HaBA+PBH3UujT9kP5QG8wCzd/D5hfhobd1bxk4BJkY3HpywZhjEuRwV7aP3aEliBxC+2mtu0dSomfde59qk/eI0HbeFfC+XTIMsUnSb93UchDe0pFvFj4VpGzUgeIWkeiArLUFUe7bhjEd/nXr5kOtteJNm2Hi3ugrqjHy6tXoul+VFLrmuqhULrmuhRda2ukq1X3Vha4XOO71Kj5cWxiSJxDkhRT+lFJuPE9QGPJTris8uJWwIS5uw6chRdqn4V8X/6yZcrv42JGXsqSZUAz/rF493qxzp0XTYbeEgUL4p4udVqXgMYeeEtiQ+k/WP6mc81tj+eRJXFxEuK1tbCxoY+uK6+DehFlmdIWSVAjHj88iBzwkoetChLAsKtxmvsR9R2FOjoG4WqloF78TEz7fbsdhJe4BSdoRG4qLkpMHB4P27oPWzW/evN78B3jNGLdRnzcvKgS9NQQAABqnMk0jSSTYabMJrYTmkyqPplkCqkAPa1/HKABvXqLr0JvOcv3oz7rGQ4qKrtaZzPRqxD8ht3UfTJSX0rUMxkm37g16DV2FNloTqmhXqNAnVVf4FzUaUg5a02WzFZVBm6wJZFOaMFPRasShjG5pLYCiLJlXie5ATZvW4x19sim9+l+py4OFtD12JZyoRwY4ugqA5Bv+fUjhjE9/oQEwflXQYVi0KpjY78hJv0woYmXN2R96//v7AiGM+n53VSkGzJ0P4PfzQiM45QhEgscGA/Q3HICGuil8dQLtmC7g4AV6vMAQwNZ6HE6NgymsBRQQHUNAwBwULmMAGzoAReAg6CDwENMFHiyDHgJvFmBA/W8g46vh4Irkd0b4kuheUomE3xiGZCU7Qfwm/1FqZDKPGzYVXd0XEopVdKZbTB3Dk6o3XjibT6ZxSSmxKcI/CNr2quX5fuMR95pb4LxhBV9E5LxIioigb7jZfYPEEonJcoz/cA0V7xsjxqPWg6Tvl8KUJkBhdYzOcrRXo+CJ+oZn9i7Bcig+tSqSkHzge1H4rh8IXLPVK4jyf6dUM/OyZgu0cNsVjGqSXt/9sAUKBg4BCQXqTwSAL/Dq1/P/n5OUyebyhWKpXKnW6o1mq93p9vqD4Wg8mc7mi+VqvdkSyriQSlu243p+pVqrN5qtdqfb6w/kWsexg2CwGpn27AhPddse2IMgwLQLlxW9WK0Rfjuem6AY3V3mDJEcKkqOZBWvinIGkrKfQCeWpsREqOzfwyFTPYImFQuKbge6LLswXOs2nHEbXt1xWWEXv7q1g5VRrHaP7hB/bGqytd8OS/d8pRq13d1Vqu6EiWX3LOWh7JRqyppe91JRw2e5n9q6SOEgxxxzXHEnJw2PiKJzpZx1h5rwmFobmxJP6HaLhnPE7VK0W2pkPSiDY+ShXsiF3g433aDK1LD355neaFcq9LpTY8Sjej80NI4nipQ20THUKnRwJ3cYdGQ2cqWCSKQ4zLblgnQwPEN5LptWIJCKGJlUIOn96swaJxsUi5G3rg0A\"},98400:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0}),t.BeansContext=void 0;var o=r(n(81970));t.BeansContext=o.default.createContext({})},98406:(e,t,n)=>{\"use strict\";n(23792),n(27337);var r=n(46518),o=n(44576),a=n(93389),i=n(97751),l=n(69565),s=n(79504),u=n(43724),c=n(67416),d=n(36840),p=n(62106),f=n(56279),g=n(10687),h=n(33994),m=n(91181),v=n(90679),A=n(94901),y=n(39297),E=n(76080),b=n(36955),_=n(28551),C=n(20034),w=n(655),S=n(2360),T=n(6980),O=n(70081),D=n(50851),R=n(62529),N=n(22812),L=n(78227),P=n(74488),M=L(\"iterator\"),x=\"URLSearchParams\",I=x+\"Iterator\",k=m.set,B=m.getterFor(x),F=m.getterFor(I),j=a(\"fetch\"),H=a(\"Request\"),U=a(\"Headers\"),Y=H&&H.prototype,G=U&&U.prototype,z=o.TypeError,V=o.encodeURIComponent,q=String.fromCharCode,W=i(\"String\",\"fromCodePoint\"),Q=parseInt,K=s(\"\".charAt),$=s([].join),X=s([].push),J=s(\"\".replace),Z=s([].shift),ee=s([].splice),te=s(\"\".split),ne=s(\"\".slice),re=s(/./.exec),oe=/\\+/g,ae=/^[0-9a-f]+$/i,ie=function(e,t){var n=ne(e,t,t+2);return re(ae,n)?Q(n,16):NaN},le=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},se=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=J(e,oe,\" \")).length,n=\"\",r=0;r<t;){var o=K(e,r);if(\"%\"===o){if(\"%\"===K(e,r+1)||r+3>t){n+=\"%\",r++;continue}var a=ie(e,r+1);if(a!=a){n+=o,r++;continue}r+=2;var i=le(a);if(0===i)o=q(a);else{if(1===i||i>4){n+=\"�\",r++;continue}for(var l=[a],s=1;s<i&&!(3+ ++r>t||\"%\"!==K(e,r));){var u=ie(e,r+1);if(u!=u){r+=3;break}if(u>191||u<128)break;X(l,u),r+=2,s++}if(l.length!==i){n+=\"�\";continue}var c=se(l);null===c?n+=\"�\":o=W(c)}}n+=o,r++}return n},ce=/[!'()~]|%20/g,de={\"!\":\"%21\",\"'\":\"%27\",\"(\":\"%28\",\")\":\"%29\",\"~\":\"%7E\",\"%20\":\"+\"},pe=function(e){return de[e]},fe=function(e){return J(V(e),ce,pe)},ge=h(function(e,t){k(this,{type:I,target:B(e).entries,index:0,kind:t})},x,function(){var e=F(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,R(void 0,!0);var r=t[n];switch(e.kind){case\"keys\":return R(r.key,!1);case\"values\":return R(r.value,!1)}return R([r.key,r.value],!1)},!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery(\"string\"==typeof e?\"?\"===K(e,0)?ne(e,1):e:w(e)))};he.prototype={type:x,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,i,s,u=this.entries,c=D(e);if(c)for(n=(t=O(e,c)).next;!(r=l(n,t)).done;){if(a=(o=O(_(r.value))).next,(i=l(a,o)).done||(s=l(a,o)).done||!l(a,o).done)throw new z(\"Expected sequence with length 2\");X(u,{key:w(i.value),value:w(s.value)})}else for(var d in e)y(e,d)&&X(u,{key:d,value:w(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=te(e,\"&\"),a=0;a<o.length;)(t=o[a++]).length&&(n=te(t,\"=\"),X(r,{key:ue(Z(n)),value:ue($(n,\"=\"))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,fe(e.key)+\"=\"+fe(e.value));return $(n,\"&\")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var me=function(){v(this,ve);var e=k(this,new he(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ve=me.prototype;if(f(ve,{append:function(e,t){var n=B(this);N(arguments.length,2),X(n.entries,{key:w(e),value:w(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=B(this),n=N(arguments.length,1),r=t.entries,o=w(e),a=n<2?void 0:arguments[1],i=void 0===a?a:w(a),l=0;l<r.length;){var s=r[l];if(s.key!==o||void 0!==i&&s.value!==i)l++;else if(ee(r,l,1),void 0!==i)break}u||(this.size=r.length),t.updateURL()},get:function(e){var t=B(this).entries;N(arguments.length,1);for(var n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=B(this).entries;N(arguments.length,1);for(var n=w(e),r=[],o=0;o<t.length;o++)t[o].key===n&&X(r,t[o].value);return r},has:function(e){for(var t=B(this).entries,n=N(arguments.length,1),r=w(e),o=n<2?void 0:arguments[1],a=void 0===o?o:w(o),i=0;i<t.length;){var l=t[i++];if(l.key===r&&(void 0===a||l.value===a))return!0}return!1},set:function(e,t){var n=B(this);N(arguments.length,1);for(var r,o=n.entries,a=!1,i=w(e),l=w(t),s=0;s<o.length;s++)(r=o[s]).key===i&&(a?ee(o,s--,1):(a=!0,r.value=l));a||X(o,{key:i,value:l}),u||(this.size=o.length),n.updateURL()},sort:function(){var e=B(this);P(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=B(this).entries,r=E(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new ge(this,\"keys\")},values:function(){return new ge(this,\"values\")},entries:function(){return new ge(this,\"entries\")}},{enumerable:!0}),d(ve,M,ve.entries,{name:\"entries\"}),d(ve,\"toString\",function(){return B(this).serialize()},{enumerable:!0}),u&&p(ve,\"size\",{get:function(){return B(this).entries.length},configurable:!0,enumerable:!0}),g(me,x),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:me}),!c&&A(U)){var Ae=s(G.has),ye=s(G.set),Ee=function(e){if(C(e)){var t,n=e.body;if(b(n)===x)return t=e.headers?new U(e.headers):new U,Ae(t,\"content-type\")||ye(t,\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"),S(e,{body:T(0,w(n)),headers:T(0,t)})}return e};if(A(j)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return j(e,arguments.length>1?Ee(arguments[1]):{})}}),A(H)){var be=function(e){return v(this,Y),new H(e,arguments.length>1?Ee(arguments[1]):{})};Y.constructor=be,be.prototype=Y,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:me,getState:B}},98548:(e,t,n)=>{\"use strict\";e.exports=n.p+\"12e0cbba429b3d90714f.svg\"},98587:(e,t,n)=>{\"use strict\";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98624:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=n(81970).createContext({})},98636:(e,t,n)=>{\"use strict\";var r=n(920),o=n(37720),a=n(74765),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+\"[]\"},comma:\"comma\",indices:function(e,t){return e+\"[\"+t+\"]\"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:\"indices\",charset:\"utf-8\",charsetSentinel:!1,commaRoundTrip:!1,delimiter:\"&\",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},g={},h=function e(t,n,a,i,l,u,d,p,h,m,v,A,y,E,b,_,C,w){for(var S,T=t,O=w,D=0,R=!1;void 0!==(O=O.get(g))&&!R;){var N=O.get(t);if(D+=1,void 0!==N){if(N===D)throw new RangeError(\"Cyclic object value\");R=!0}void 0===O.get(g)&&(D=0)}if(\"function\"==typeof m?T=m(n,T):T instanceof Date?T=y(T):\"comma\"===a&&s(T)&&(T=o.maybeMap(T,function(e){return e instanceof Date?y(e):e})),null===T){if(u)return h&&!_?h(n,f.encoder,C,\"key\",E):n;T=\"\"}if(\"string\"==typeof(S=T)||\"number\"==typeof S||\"boolean\"==typeof S||\"symbol\"==typeof S||\"bigint\"==typeof S||o.isBuffer(T))return h?[b(_?n:h(n,f.encoder,C,\"key\",E))+\"=\"+b(h(T,f.encoder,C,\"value\",E))]:[b(n)+\"=\"+b(String(T))];var L,P=[];if(void 0===T)return P;if(\"comma\"===a&&s(T))_&&h&&(T=o.maybeMap(T,h)),L=[{value:T.length>0?T.join(\",\")||null:void 0}];else if(s(m))L=m;else{var M=Object.keys(T);L=v?M.sort(v):M}var x=p?String(n).replace(/\\./g,\"%2E\"):String(n),I=i&&s(T)&&1===T.length?x+\"[]\":x;if(l&&s(T)&&0===T.length)return I+\"[]\";for(var k=0;k<L.length;++k){var B=L[k],F=\"object\"==typeof B&&B&&void 0!==B.value?B.value:T[B];if(!d||null!==F){var j=A&&p?String(B).replace(/\\./g,\"%2E\"):String(B),H=s(T)?\"function\"==typeof a?a(I,j):I:I+(A?\".\"+j:\"[\"+j+\"]\");w.set(t,D);var U=r();U.set(g,w),c(P,e(F,H,a,i,l,u,d,p,\"comma\"===a&&_&&s(T)?null:h,m,v,A,y,E,b,_,C,U))}}return P};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&\"boolean\"!=typeof e.allowEmptyArrays)throw new TypeError(\"`allowEmptyArrays` option can only be `true` or `false`, when provided\");if(void 0!==e.encodeDotInKeys&&\"boolean\"!=typeof e.encodeDotInKeys)throw new TypeError(\"`encodeDotInKeys` option can only be `true` or `false`, when provided\");if(null!==e.encoder&&void 0!==e.encoder&&\"function\"!=typeof e.encoder)throw new TypeError(\"Encoder has to be a function.\");var t=e.charset||f.charset;if(void 0!==e.charset&&\"utf-8\"!==e.charset&&\"iso-8859-1\"!==e.charset)throw new TypeError(\"The charset option must be either utf-8, iso-8859-1, or undefined\");var n=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError(\"Unknown format option provided.\");n=e.format}var r,o=a.formatters[n],u=f.filter;if((\"function\"==typeof e.filter||s(e.filter))&&(u=e.filter),r=e.arrayFormat in l?e.arrayFormat:\"indices\"in e?e.indices?\"indices\":\"repeat\":f.arrayFormat,\"commaRoundTrip\"in e&&\"boolean\"!=typeof e.commaRoundTrip)throw new TypeError(\"`commaRoundTrip` must be a boolean, or absent\");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:\"boolean\"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:c,allowEmptyArrays:\"boolean\"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:\"boolean\"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:\"boolean\"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:\"boolean\"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:\"function\"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:\"boolean\"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:\"function\"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:\"boolean\"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:\"function\"==typeof e.sort?e.sort:null,strictNullHandling:\"boolean\"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);\"function\"==typeof u.filter?o=(0,u.filter)(\"\",o):s(u.filter)&&(n=u.filter);var d=[];if(\"object\"!=typeof o||null===o)return\"\";var p=l[u.arrayFormat],g=\"comma\"===p&&u.commaRoundTrip;n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var m=r(),v=0;v<n.length;++v){var A=n[v],y=o[A];u.skipNulls&&null===y||c(d,h(y,A,p,g,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var E=d.join(u.delimiter),b=!0===u.addQueryPrefix?\"?\":\"\";return u.charsetSentinel&&(\"iso-8859-1\"===u.charset?b+=\"utf8=%26%2310003%3B&\":b+=\"utf8=%E2%9C%93&\"),E.length>0?b+E:\"\"}},98752:(e,t,n)=>{\"use strict\";n.d(t,{S2:()=>r,TC:()=>o}),n(28706),n(48598),n(34782),n(62010),n(27495),n(25440);var r=function(e){var t=e.name.split(\".\").pop(),n=(null==e?void 0:e.name.split(\".\").slice(0,-1).join(\".\")).replace(/[^a-zA-Z0-9]/g,\"-\");return new File([e],\"\".concat(n,\".\").concat(t),{type:e.type})},o=function(e){var t=function(e){return e.split(\".\").pop()}(e);return\"xlsx\"===t||\"xls\"===t||\"xlsm\"===t}},98777:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>E});var r=n(98587),o=n(58168),a=n(81970),i=n(34164),l=n(75659),s=n(11848),u=n(25669),c=n(52848),d=n(98624),p=n(91382),f=n(38413),g=n(31609);function h(e){return(0,g.Ay)(\"MuiStepContent\",e)}(0,f.A)(\"MuiStepContent\",[\"root\",\"last\",\"transition\"]);var m=n(74848);const v=[\"children\",\"className\",\"TransitionComponent\",\"transitionDuration\",\"TransitionProps\"],A=(0,s.Ay)(\"div\",{name:\"MuiStepContent\",slot:\"Root\",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(({ownerState:e,theme:t})=>(0,o.A)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${\"light\"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:\"none\"})),y=(0,s.Ay)(c.A,{name:\"MuiStepContent\",slot:\"Transition\",overridesResolver:(e,t)=>t.transition})({}),E=a.forwardRef(function(e,t){const n=(0,u.b)({props:e,name:\"MuiStepContent\"}),{children:s,className:f,TransitionComponent:g=c.A,transitionDuration:E=\"auto\",TransitionProps:b}=n,_=(0,r.A)(n,v),{orientation:C}=a.useContext(d.A),{active:w,last:S,expanded:T}=a.useContext(p.A),O=(0,o.A)({},n,{last:S}),D=(e=>{const{classes:t,last:n}=e,r={root:[\"root\",n&&\"last\"],transition:[\"transition\"]};return(0,l.A)(r,h,t)})(O);let R=E;return\"auto\"!==E||g.muiSupportAuto||(R=void 0),(0,m.jsx)(A,(0,o.A)({className:(0,i.A)(D.root,f),ref:t,ownerState:O},_,{children:(0,m.jsx)(y,(0,o.A)({as:g,in:w||T,className:D.transition,ownerState:O,timeout:R,unmountOnExit:!0},b,{children:s}))}))})},98849:e=>{e.exports=!0},98936:(e,t)=>{t.f={}.propertyIsEnumerable},99053:function(e,t,n){!function(e){\"use strict\";function t(e,t,n,r){switch(n){case\"s\":return t?\"хэдхэн секунд\":\"хэдхэн секундын\";case\"ss\":return e+(t?\" секунд\":\" секундын\");case\"m\":case\"mm\":return e+(t?\" минут\":\" минутын\");case\"h\":case\"hh\":return e+(t?\" цаг\":\" цагийн\");case\"d\":case\"dd\":return e+(t?\" өдөр\":\" өдрийн\");case\"M\":case\"MM\":return e+(t?\" сар\":\" сарын\");case\"y\":case\"yy\":return e+(t?\" жил\":\" жилийн\");default:return e}}e.defineLocale(\"mn\",{months:\"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар\".split(\"_\"),monthsShort:\"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар\".split(\"_\"),monthsParseExact:!0,weekdays:\"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба\".split(\"_\"),weekdaysShort:\"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям\".split(\"_\"),weekdaysMin:\"Ня_Да_Мя_Лх_Пү_Ба_Бя\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY-MM-DD\",LL:\"YYYY оны MMMMын D\",LLL:\"YYYY оны MMMMын D HH:mm\",LLLL:\"dddd, YYYY оны MMMMын D HH:mm\"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return\"ҮХ\"===e},meridiem:function(e,t,n){return e<12?\"ҮӨ\":\"ҮХ\"},calendar:{sameDay:\"[Өнөөдөр] LT\",nextDay:\"[Маргааш] LT\",nextWeek:\"[Ирэх] dddd LT\",lastDay:\"[Өчигдөр] LT\",lastWeek:\"[Өнгөрсөн] dddd LT\",sameElse:\"L\"},relativeTime:{future:\"%s дараа\",past:\"%s өмнө\",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case\"d\":case\"D\":case\"DDD\":return e+\" өдөр\";default:return e}}})}(n(95093))},99315:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{EditActionComponent:()=>ie,default:()=>se}),n(52675),n(89463),n(2259),n(45700),n(2008),n(51629),n(23418),n(25276),n(64346),n(23792),n(34782),n(89572),n(23288),n(62010),n(67945),n(84185),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953),n(28706),n(2892);var r=n(60538),o=n(51545),a=n(80663),i=n(56203),l=n(81970),s=n.n(l),u=n(99478),c=n(37998),d=n(96348),p=n(47225),f=n(13075),g=n(56254),h=n(43605),m=n(92416),v=n(15664),A=n(21239),y=n(89994),E=(n(62062),n(26910),n(28161)),b=n(90815),_=n(14073),C=n(34195),w=n(36874),S=n(1514),T=(n(94170),n(59904),n(40875),n(10287),n(3362),n(88084)),O=n(64121),D=n(28152),R=n(19021),N=n(15941),L=function(){return N.Ik().shape({mdoHQ:N.Ik().required(\"MDO HQ is required\"),hqName:N.Ik().required(\"TM HQ is required\"),distributors:N.Ik().required(\"Distributors are required\")})},P=function(){return N.Ik().shape({tmHq:N.Ik().notRequired(),state:N.Ik().notRequired(),district:N.Ik().test(\"district-required\",\"District required\",function(e){var t=this.parent.state;return null==t||!t.value||null!=e}).nullable(),taluka:N.Ik().test(\"taluka-required\",\"Taluka required\",function(e){var t=this.parent.state;return null==t||!t.value||null!=e}).nullable()})};function M(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return x(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(x(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,x(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,x(d,\"constructor\",u),x(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",x(u,o,\"GeneratorFunction\"),x(d),x(d,o,\"Generator\"),x(d,r,function(){return this}),x(d,\"toString\",function(){return\"[object Generator]\"}),(M=function(){return{w:a,m:p}})()}function x(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}x=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){x(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},x(e,t,n,r)}function I(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var k=function(e){var t=e.initialForm,n=e.updateOrphanRetailerData,r=e.SelectedRowItem,o=e.getTmHqData,a=e.hqNameOptions,i=e.getallDistributorsByHQID,l=e.tmHQData,u=e.distributorsData,c=e.onHandleCancel,d=(0,C.Bd)().t;return s().createElement(T.l1,{initialValues:t,onSubmit:function(e,t){return n(e)},validationSchema:L,enableReinitialize:!0},function(e){var t=e.values,n=e.setFieldValue;return s().createElement(T.lV,{className:\"popupContent\"},s().createElement(b.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(E.A,{mb:2,width:\"50%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(null==r?void 0:r.parent_headquarter_hierarchy_name)),s().createElement(T.D0,{name:\"hqName\"},function(){return s().createElement(O.A,{name:\"hqName\",onChange:function(){var e,t=(e=M().m(function e(t,r){return M().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n(\"mdoHQ\",\"\");case 1:return e.n=2,n(\"hqName\",r);case 2:o(null==r?void 0:r.value);case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){I(a,r,o,i,l,\"next\",e)}function l(e){I(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e,n){return t.apply(this,arguments)}}(),options:a,labelKey:\"label\",label:\"mdoHQ\",selectedOption:t.hqName,value:t.hqName,defaultLabel:d(\"SELECTED_TM_HQ\")})}),s().createElement(D.A,{errName:\"hqName\"})),s().createElement(E.A,{mb:2,width:\"50%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(null==r?void 0:r.sales_hierarchy_name,\" HQ\")),s().createElement(T.D0,{name:\"mdoHQ\"},function(){return s().createElement(O.A,{name:\"mdoHQ\",onChange:function(e,t){i(t.value),n(\"mdoName\",t.id),n(\"mdoHQ\",t)},options:l,labelKey:\"label\",label:\"mdoHQ\",selectedOption:t.mdoHQ,value:t.mdoHQ,defaultLabel:\"Select mdoHQ\"})}),s().createElement(D.A,{errName:\"mdoHQ\"}))),s().createElement(b.A,{direction:\"row\",gap:2},s().createElement(E.A,{mb:2,width:\"100%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"MDO_NAME\"))),s().createElement(R.A,{label:\"\",onHandleChange:function(){},customPlaceholder:\"\".concat(d(\"SELECT_MDO_NAME\")),value:null==t?void 0:t.mdoName,disabled:!0})),s().createElement(E.A,{mb:2,width:\"100%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"SHOP_NAME\"))),s().createElement(R.A,{label:\"\",onHandleChange:function(){},customPlaceholder:\"\".concat(d(\"SELECT_SHOP_NAME\")),value:null==t?void 0:t.shopName,disabled:!0}))),s().createElement(b.A,{direction:\"row\",gap:2},s().createElement(E.A,{mb:2,width:\"100%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"OWNER_NAME\"))),s().createElement(R.A,{label:\"\",onHandleChange:function(){},customPlaceholder:\"\".concat(d(\"SELECT_OWNER_NAME\")),value:null==t?void 0:t.ownerName,disabled:!0})),s().createElement(E.A,{mb:2,width:\"100%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"MOBILE_NUMBER\"))),s().createElement(R.A,{label:\"\",onHandleChange:function(){},customPlaceholder:\"\".concat(d(\"SELECT_MOBILE_NUMBER\")),value:null==t?void 0:t.mobileNo,disabled:!0}))),s().createElement(b.A,{flexWrap:\"wrap\",direction:\"row\",alignItems:\"flex-start\",gap:1},r.address.map(function(e){return s().createElement(E.A,{key:e.name,mb:2,width:\"49%\"},s().createElement(_.A,{variant:\"subtitle2\"},e.name),s().createElement(R.A,{label:\"\",onHandleChange:function(){},value:null==e?void 0:e.value,disabled:!0}))}),s().createElement(E.A,{mb:2,width:\"49%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"PIN_CODE\"))),s().createElement(R.A,{label:\"\",onHandleChange:function(){},customPlaceholder:\"\".concat(d(\"SELECT_PIN_CODE\")),value:null==t?void 0:t.pinCode,disabled:!0}))),s().createElement(b.A,{direction:\"row\",alignItems:\"flex-start\",gap:2},s().createElement(E.A,{mb:2,width:\"49%\"},s().createElement(_.A,{variant:\"subtitle2\"},\"\".concat(d(\"DISTRIBUTORS\"))),s().createElement(T.D0,{name:\"distributors\"},function(){return s().createElement(O.A,{name:\"distributors\",onChange:function(e,t){n(\"distributors\",t)},options:u,labelKey:\"label\",label:\"distributors\",selectedOption:t.distributors,value:t.distributors,defaultLabel:\"Select distributors\"})}),s().createElement(D.A,{errName:\"distributors\"}))),s().createElement(b.A,{direction:\"row\",gap:2,className:\"btnsBlock\"},s().createElement(v.A,{variant:\"outlined\",buttonName:d(\"CANCEL\"),onButtonClick:c,fullwidth:!1,color:\"secondary\"}),s().createElement(v.A,{variant:\"contained\",buttonName:d(\"SAVE\"),fullwidth:!1,color:\"primary\",type:\"submit\"})))})};function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const j=function(e){var t=e.isDrawerOpen,n=void 0!==t&&t,r=e.onRequestClose,o=void 0===r?function(){}:r,a=e.SelectedRowItem,i=e.onSubmit,u=void 0===i?function(){}:i,c=(0,l.useContext)(p.v),d=c.BackOfficeProps,g=d.globalStore.User,h=d.baseurl,m=c.triggerShowLoader,v=c.triggerToastMsg,A=(0,C.Bd)().t,y=B((0,l.useState)([]),2),T=y[0],O=y[1],D=B((0,l.useState)([]),2),R=D[0],N=D[1],L=B((0,l.useState)([]),2),P=L[0],M=L[1],x=B((0,l.useState)({}),2),I=x[0],F=x[1],j={hqName:\"\",mdoHQ:\"\",mdoName:\"\",shopName:a.shop_name,ownerName:a.owner_name,mobileNo:a.mobile,pinCode:a.pincode,distributors:\"\"};return(0,l.useEffect)(function(){var e,t,n,r;(0,S.cI)(g,h,m,\"salesHq\").then(function(e){e&&F(null==e?void 0:e.sales_hierarchy_id)}).catch(function(e){v({message:e,type:\"error\"})}),r={portfolio_code:null!==(e=null!==(t=null==a?void 0:a.portfolio_code)&&void 0!==t?t:null==g||null===(n=g.selectedBusinessUnit)||void 0===n?void 0:n.portfolio_code)&&void 0!==e?e:\"DEFAULT\",geoDataId:null==a?void 0:a.geo_data_id},(0,S.IT)((0,f.rZ)(g,h),m,r).then(function(e){if(e){var t=null==e?void 0:e.map(function(e){return{label:e.name,value:e.id}});M(t)}}).catch(function(e){v({message:e,type:\"error\"})})},[]),s().createElement(w.A,{anchor:\"right\",isDrawerOpen:n},s().createElement(E.A,{className:\"popupMain\"},s().createElement(b.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:3.25},s().createElement(_.A,{component:\"h1\",variant:\"h1\"},A(\"EDIT_ORPHAN_RETAILERS\")),s().createElement(E.A,{onClick:function(){return o(!1)},\"data-testid\":\"onRequestClose\"},s().createElement(_.A,{className:\"icon-close closeIcon\"}))),s().createElement(k,{initialForm:j,updateOrphanRetailerData:function(e){var t={retailer_uuid:null==a?void 0:a.retailer_uuid,headquarter_id:e.mdoHQ.value,distributor_uuids:[e.distributors.value]};(0,S.Cx)(g,h,m,t,\"updateOrphanRetailer\").then(function(e){o(!1),u(),v({message:e.data,type:\"success\"})}).catch(function(e){v({message:e,type:\"error\"})})},SelectedRowItem:a,getTmHqData:function(e){var t={targetForId:I,parentHqIds:e,parentGeoDataId:null==a?void 0:a.geo_data_id};(0,S.pO)(g,h,m,t,\"tmHq\").then(function(e){if(e){var t=function(e){return e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id,id:e.user_name}}).sort(function(e,t){return e.label.localeCompare(t.label)})}(e);O(t)}}).catch(function(e){v({message:e,type:\"error\"})})},hqNameOptions:P,getallDistributorsByHQID:function(e){var t={\"hq-id\":e};(0,S.pO)(g,h,m,t,\"allDistributors\").then(function(e){if(e){var t=function(e){return e.map(function(e){return{label:e.distributor_name,value:e.distributor_uuid,id:e.distributor_code}})}(e);N(t)}}).catch(function(e){v({message:e,type:\"error\"})})},tmHQData:T,distributorsData:R,onHandleCancel:function(){o(!1)}})))};function H(e){return H=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},H(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=H(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==H(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(){var e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",o=n.toStringTag||\"@@toStringTag\";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return V(u,\"_invoke\",function(n,r,o){var a,l,s,u=0,c=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,l=0,s=e,p.n=n,i}};function f(n,r){for(l=n,s=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,a=c[t],f=p.p,g=a[2];n>3?(o=g===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(l=0,p.v=r,p.n=a[1]):f<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,p.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,c,g){if(u>1)throw TypeError(\"Generator is already running\");for(d&&1===c&&f(c,g),l=c,s=g;(t=l<2?e:s)||!d;){a||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(u=2,a){if(l||(o=\"next\"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError(\"iterator result is not an object\");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError(\"The iterator does not provide a '\"+o+\"' method\"),l=1);a=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==i)break}catch(t){a=e,l=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function l(){}function s(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(V(t={},r,function(){return this}),t),d=u.prototype=l.prototype=Object.create(c);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,V(e,o,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=u,V(d,\"constructor\",u),V(u,\"constructor\",s),s.displayName=\"GeneratorFunction\",V(u,o,\"GeneratorFunction\"),V(d),V(d,o,\"Generator\"),V(d,r,function(){return this}),V(d,\"toString\",function(){return\"[object Generator]\"}),(z=function(){return{w:a,m:p}})()}function V(e,t,n,r){var o=Object.defineProperty;try{o({},\"\",{})}catch(e){o=0}V=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var a=function(t,n){V(e,t,function(e){return this._invoke(t,n,e)})};a(\"next\",0),a(\"throw\",1),a(\"return\",2)}},V(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const K=function(e){var t=e.isFilterOpen,n=void 0!==t&&t,r=e.onRequestClose,i=void 0===r?function(){}:r,u=e.setOrphanRetailersFilters,c=void 0===u?function(){}:u,d=e.initialForm,f=e.setInitialForm,g=void 0===f?function(){}:f,h=e.onSubmit,m=e.onClearFilters,A=(0,l.useContext)(p.v),y=A.BackOfficeProps,E=y.globalStore.User,b=y.baseurl,R=A.triggerToastMsg,N=A.triggerShowLoader,L=W((0,l.useState)([]),2),M=L[0],x=L[1],I=W((0,l.useState)([]),2),k=I[0],B=I[1],F=W((0,l.useState)([]),2),j=F[0],H=F[1],U=W((0,l.useState)([]),2),G=U[0],V=U[1],Q=(0,C.Bd)().t,K=function(e){return null==e?void 0:e.map(function(e){return{id:e.parent_id,label:e.name,value:e.id}})},$=function(){var e,t=(e=z().m(function e(t){return z().w(function(e){for(;;)switch(e.n){case 0:(0,S.pO)(E,b,N,t,\"parentLevelGeoData\").then(function(e){e&&e.geo_data_parent_details_list.length>0&&X(e.geo_data_parent_details_list[0].parent_id).then(function(e){x(K(e))})}).catch(function(e){R({message:e,type:\"error\"})});case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,\"next\",e)}function l(e){q(a,r,o,i,l,\"throw\",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),X=function(e){return(0,S.pO)(E,b,N,e,\"geoChildData\").then(function(e){if(e&&e.length>0)return e}).catch(function(e){R({message:e,type:\"error\"})})};return(0,l.useEffect)(function(){(0,S.aY)(E,b,N).then(function(e){var t;t={targetForId:null==e?void 0:e.headquarter_hierarchy_id},(0,S.pO)(E,b,N,t,\"tmHq\").then(function(e){if(e){var t=function(e){return e.map(function(e){return{label:e.hq_data_name,value:e.hq_data_id}}).sort(function(e,t){return e.label.localeCompare(t.label)})}(e);V(t)}}).catch(function(e){R({message:e,type:\"error\"})})}).catch(function(){}),(0,S.pO)(E,b,N,\"\",\"geoHierarchyList\").then(function(e){if(e&&e.geo_hierarchy_view_List.length>0){var t=e.geo_hierarchy_view_List.filter(function(e){return 2===e.level_sequence});return $(t[0].id)}}).catch(function(e){R({message:e,type:\"error\"})})},[]),s().createElement(o.A,null,s().createElement(w.A,{isDrawerOpen:n,anchor:\"top\",upper:!0},s().createElement(o.A,{p:3},s().createElement(T.l1,{initialValues:d,validationSchema:P,enableReinitialize:!0,onSubmit:function(e,t){return function(e){if(h(e),g(e),e.taluka.value){var t={geoData:[],tmHq:e.tmHq.value?[e.tmHq.value]:null};X(e.taluka.value).then(function(n){var r;null!=n&&n.length&&(n.map(function(e){e.id&&t.geoData.push(e.id)}),c(Y(Y({},t),{},{taluka:null==e||null===(r=e.taluka)||void 0===r?void 0:r.value})),i())})}else c({tmHq:e.tmHq.value?[e.tmHq.value]:null})}(e)}},function(e){var t=e.values,n=e.setFieldValue;return s().createElement(T.lV,{className:\"popupContent\"},s().createElement(a.A,{direction:\"row\",justifyContent:\"space-evenly\",gap:4,mb:2},s().createElement(o.A,{width:\"30%\"},s().createElement(_.A,{variant:\"subtitle2\"},Q(\"MDO_HQ\")),s().createElement(T.D0,{name:\"tmHq\"},function(){return s().createElement(O.A,{name:\"tmHq\",onChange:function(e,t){n(\"tmHq\",t)},options:G,labelKey:\"label\",label:\"tmHq\",selectedOption:t.tmHq,value:t.tmHq,defaultLabel:Q(\"SELECT_MDOHQ\")})}),s().createElement(D.A,{errName:\"tmHq\"})),s().createElement(o.A,{width:\"30%\"},s().createElement(_.A,{variant:\"subtitle2\"},Q(\"STATE\")),s().createElement(T.D0,{name:\"state\"},function(){return s().createElement(O.A,{name:\"state\",onChange:function(e,t){n(\"state\",t),n(\"district\",\"\"),n(\"taluka\",\"\"),function(e){X(e).then(function(e){null!=e&&e.length&&B(K(e))})}(t.value)},options:M,labelKey:\"label\",label:\"state\",selectedOption:t.state,value:t.state,defaultLabel:Q(\"SELECT_STATE\")})}),s().createElement(D.A,{errName:\"state\"})),s().createElement(o.A,{width:\"30%\"},s().createElement(_.A,{variant:\"subtitle2\"},Q(\"DISTRICT\")),s().createElement(T.D0,{name:\"district\"},function(){return s().createElement(O.A,{name:\"district\",onChange:function(e,t){n(\"district\",t),function(e){X(e).then(function(e){null!=e&&e.length&&H(K(e))})}(t.value),n(\"taluka\",\"\")},options:k,labelKey:\"label\",label:\"district\",selectedOption:t.district,value:t.district,defaultLabel:Q(\"SELECT_DISTRICT\")})}),s().createElement(D.A,{errName:\"district\"})),s().createElement(o.A,{width:\"30%\"},s().createElement(_.A,{variant:\"subtitle2\"},Q(\"TALUKA\")),s().createElement(T.D0,{name:\"taluka\"},function(){return s().createElement(O.A,{name:\"taluka\",onChange:function(e,t){n(\"taluka\",t)},options:j,labelKey:\"label\",label:\"taluka\",selectedOption:t.taluka,value:t.taluka,defaultLabel:Q(\"SELECT_TALUKA\")})}),s().createElement(D.A,{errName:\"taluka\"}))),s().createElement(a.A,{direction:\"row\",justifyContent:\"right\",gap:2,mb:2},s().createElement(o.A,{display:\"flex\",justifyContent:\"start\",alignItems:\"center\",gap:1},s().createElement(v.A,{variant:\"outlined\",buttonName:Q(\"CLEAR_FILTERS\"),onButtonClick:function(){return g({tmHq:\"\",state:\"\",district:\"\",taluka:\"\"}),c([]),i(),void m()},fullwidth:!1,color:\"primary\"}),s().createElement(v.A,{variant:\"contained\",buttonName:Q(\"APPLY_FILTERS\"),fullwidth:!1,color:\"primary\",type:\"submit\"}))),s().createElement(o.A,{onClick:i,className:\"smart-agro-lite-filter-cross\"},s().createElement(_.A,{className:\"icon-close closeIcon\"})))}))))};var $=n(67683);function X(e){return X=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},X(e)}var J=[\"onEditOrphanRetailer\"];function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function te(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=X(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=X(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==X(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||oe(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||oe(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function oe(e,t){if(e){if(\"string\"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ie=function(e){var t=e.onEditOrphanRetailer,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,J);return s().createElement(\"button\",{type:\"button\",className:\"icon-pencil table-edit-icon\",onClick:function(){return t(n.data)},tabIndex:0})},le=function(){var e,t=(0,l.useContext)(p.v),n=t.BackOfficeProps,E=n.globalStore.User,b=n.baseurl,_=t.triggerShowLoader,C=t.triggerToastMsg,w=re((0,l.useState)({pageNo:0,pageSize:10}),2),T=w[0],O=w[1],D=re((0,l.useState)({}),2),R=D[0],N=D[1],L=[{field:\"retailerBuList.isRetailerMapped\",operator:\"EQUALS\",value:\"false\"},{field:\"retailerRequestType\",operator:\"EQUALS\",value:\"ORPHAN_RETAILER\"},{field:\"retailerBuList.buId\",operator:\"EQUALS\",value:null==E?void 0:E.selectedBusinessUnit.bu_id}],P=u.r4,M=re((0,l.useState)(!1),2),x=M[0],I=M[1],k=re((0,l.useState)(0),2),B=k[0],F=k[1],H=re((0,l.useState)(0),2),U=H[0],Y=H[1],G=re((0,l.useState)([]),2),z=G[0],V=G[1],q=re((0,l.useState)([]),2),W=q[0],Q=q[1],X=re((0,l.useState)(L),2),J=X[0],Z=X[1],te=re((0,l.useState)(\"\"),2),oe=te[0],ae=te[1],le=re((0,l.useState)([]),2),se=le[0],ue=le[1],ce=re((0,l.useState)(!1),2),de=ce[0],pe=ce[1],fe=re((0,l.useState)(),2),ge=fe[0],he=fe[1],me=re((0,l.useState)({tmHq:\"\",state:\"\",district:\"\",taluka:\"\"}),2),ve=me[0],Ae=me[1],ye=function(e){(0,S.jf)(E,b,_,e,\"editOrphanData\").then(function(e){var t;e?(pe(!0),he(e)):C({message:null==e||null===(t=e.data)||void 0===t?void 0:t.errorMessage,type:\"error\"})}).catch(function(e){C({message:e,type:\"error\"})})},Ee=function(){var e={sort:P,filter:J,pageNo:T.pageNo,pageSize:T.pageSize};(0,S.qb)(E,b,_,e,\"listTableData\").then(function(e){null!=e&&e.data&&function(e){(0,y.ao)(e),ue((null==e?void 0:e.data)||[]),F(null==e?void 0:e.totalPageCount),Y(null==e?void 0:e.totalElements),I(!1)}(e)}).catch(function(e){C({message:e,type:\"error\"})})};return(0,l.useEffect)(function(){var e,t;if(oe){var n=[];(null==oe||null===(e=oe.geoData)||void 0===e?void 0:e.length)>0&&n.push({field:\"geoData\",operator:\"IN\",values:[null==oe?void 0:oe.taluka]}),(null==oe||null===(t=oe.tmHq)||void 0===t?void 0:t.length)>0&&n.push({field:\"hqDataId\",operator:\"IN\",values:oe.tmHq}),Z([].concat(L,ne(z),n)),Q(n)}},[oe]),(0,l.useEffect)(function(){Ee()},[T,J]),s().createElement(s().Fragment,null,s().createElement($.X,null,s().createElement(o.A,null,s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,null,s().createElement(m.A,{routePathName:[{name:d.F_.Retailers,path:d.fp.Retailers},{name:d.F_.Orphan_Retailers,path:d.fp.Orphan_Retailers}]}))),s().createElement(a.A,{direction:\"row\",alignItems:\"center\",justifyContent:\"space-between\",mb:2},s().createElement(o.A,{mt:2},s().createElement(A.A,{onSearchValueChange:function(e){return function(e){if(e){var t=[{field:\"search\",operator:\"EQUALS\",value:e}];V(t),Z([].concat(L,t,ne(W)))}else Z([].concat(L,ne(W)))}(e)},placeholderText:(0,i.t)(\"SEARCH\"),searchValue:\"\",searchBasedOn:\"\".concat((0,i.t)(\"ORPHAN_SEARCH\"))})),s().createElement(a.A,{flexDirection:\"row\",justifyContent:\"end\",mt:2,gap:2},s().createElement(v.A,{className:(0,f.F7)(R),buttonName:null!==(e=(0,i.t)(\"FILTERS\"))&&void 0!==e?e:\"Filters\",color:\"trasnparent\",fullwidth:!1,endIcon:s().createElement(\"span\",{className:\"icon-filter\"}),onButtonClick:function(){I(!0)}}))),s().createElement(r.A,{className:\"ag-theme-alpine smart-agro-lite-custom-table\",elevation:0},s().createElement(h.A,{rows:se,columnDefs:c.rO,frameworkComponents:{EditActionComponent:function(e){return ie(ee(ee({},e),{},{onEditOrphanRetailer:ye}))}}})),s().createElement(g.A,{totalPageCount:Math.ceil(B),totalElements:U,onPageChange:function(e){O(function(t){return ee(ee({},t),{},{pageNo:Number(e)})})}}))),x&&s().createElement(K,{isFilterOpen:x,onRequestClose:function(){I(!1)},setOrphanRetailersFilters:ae,initialForm:ve,onSubmit:N,onClearFilters:function(){return N({})},setInitialForm:Ae}),de&&s().createElement(j,{isDrawerOpen:de,onRequestClose:function(){return pe(!1)},onSubmit:Ee,SelectedRowItem:ge}))};const se=(0,l.memo)(le)},99348:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=0;t.default=function(){return\"agPortalKey_\"+ ++n}},99369:(e,t,n)=>{\"use strict\";var r=n(75872),o=n(64796),a=n(14259),i=n(98936),l=n(64873),s=n(63278),u=Object.assign;e.exports=!u||n(82451)(function(){var e={},t={},n=Symbol(),r=\"abcdefghijklmnopqrst\";return e[n]=7,r.split(\"\").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join(\"\")!=r})?function(e,t){for(var n=l(e),u=arguments.length,c=1,d=a.f,p=i.f;u>c;)for(var f,g=s(arguments[c++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)f=h[v++],r&&!p.call(g,f)||(n[f]=g[f]);return n}:u},99449:(e,t,n)=>{\"use strict\";var r,o=n(46518),a=n(27476),i=n(77347).f,l=n(18014),s=n(655),u=n(60511),c=n(67750),d=n(41436),p=n(96395),f=a(\"\".slice),g=Math.min,h=d(\"endsWith\");o({target:\"String\",proto:!0,forced:!(!p&&!h&&(r=i(String.prototype,\"endsWith\"),r&&!r.writable)||h)},{endsWith:function(e){var t=s(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:g(l(n),r),a=s(e);return f(t,o-a.length,o)===a}})},99478:(e,t,n)=>{\"use strict\";n.d(t,{A9:()=>s,Cl:()=>r,EA:()=>S,EB:()=>R,F9:()=>A,FV:()=>f,G_:()=>p,JS:()=>O,L5:()=>y,LY:()=>P,M5:()=>a,NR:()=>g,PB:()=>_,QL:()=>M,Qc:()=>h,Rk:()=>D,Sp:()=>m,T3:()=>i,UH:()=>N,Yr:()=>L,_S:()=>b,g2:()=>u,hD:()=>v,or:()=>C,r4:()=>o,uD:()=>w,v0:()=>c,vg:()=>E,vj:()=>T,wC:()=>l,wb:()=>d}),n(59904);var r=function(e){return e.DESC=\"0\",e.ASC=\"1\",e.MODIFIED_AT=\"modifiedAt\",e.ENTITY_META_DATA_MODIFIED_AT=\"entityMetadata.modifiedAt\",e.DESC_SORT=\"DESC\",e}({}),o=[{field:r.ENTITY_META_DATA_MODIFIED_AT,order:r.DESC_SORT}],a=\"1\",i=\"0\",l=[{key:r.DESC,value:\"Descending\"},{key:r.ASC,value:\"Ascending\"}],s=[5,20,100],u=function(e){return e.READ=\"READ\",e.CREATE=\"CREATE\",e.UPDATE=\"UPDATE\",e.DELETE=\"DELETE\",e}({}),c=[\"RETAILER-APPROVER\"],d=function(e){return e.GEO_DATA=\"GEO_DATA\",e.RETAILER=\"RETAILER\",e.EVENT_TARGET=\"EVENT_TARGET\",e.GROWERS=\"GROWERS\",e.UPLOADS=\"UPLOADS\",e.ANNUAL_TURNOVER=\"RETAILER_ANNUAL_TURNOVER\",e.HOLIDAY=\"HOLIDAY\",e.DISTRIBUTORS=\"DISTRIBUTORS\",e.PAY_FOR_PERFORMANCE=\"PAY_FOR_PERFORMANCE\",e}({}),p=\".xlsx, .xls, .xlsm, .png, .pdf, .doc, .jpg, .odt, .jpeg\",f=Object.create({IN:\"en\",ID:\"id\",PK:\"pk\",PH:\"ph\",BD:\"bd\"}),g=[200,201,202],h=[{label:\"Monthly\",value:\"Monthly\"},{label:\"Yearly\",value:\"Yearly\"}],m=function(e){return e.TMHQ=\"TM HQ\",e.APPROVAL_STATUS=\"Approval Status\",e.PAY_CYCLE=\"Pay Cycle\",e}({}),v=function(e){return e.RETAILER_VISIT=\"RV\",e.GROWER_MEETING=\"GM\",e}({}),A=function(e){return e.PENDING_FOR_APPROVAL=\"Pending for Approval\",e.REJECTED=\"REJECTED\",e}({}),y=function(e){return e.BGP_NOT_CREATED=\"BGP Not Created\",e.PENDING_FOR_RETAILER_ACCEPTANCE=\"Pending for Retailer Acceptance\",e.PENDING_FOR_TM_APPROVAL=\"Pending for TM Approval\",e.BGP_CREATED=\"Bgp Created\",e}({}),E=function(e){return e.BGP_NOT_CREATED=\"BGP_NOT_YET_SET\",e.PENDING_FOR_RETAILER_ACCEPTANCE=\"PENDING_FOR_RETAILER_ALIGNMENT\",e.PENDING_FOR_TM_APPROVAL=\"PENDING_FOR_PLANNER_APPROVAL\",e.BGP_CREATED=\"BGP_CREATED\",e}({}),b=function(e){return e.RETAILERS=\"RETAILERS\",e.APPROVED=\"APPROVED\",e.REJECTED=\"REJECTED\",e.POST_APPROVAL=\"retailer_non_editable_fields_post_approval\",e.PRE_APPROVAL=\"retailer_non_editable_fields_pre_approval\",e.PENDING_FOR_APPROVAL=\"PENDING_FOR_APPROVAL\",e.verified=\"VERIFIED\",e.RE_KYC=\"RE_KYC\",e.AWAITING_REKYC_APPROVAL=\"AWAITING_REKYC_APPROVAL\",e.REKYC_APPROVED=\"REKYC_APPROVED\",e.REKYC_REJECTED=\"REKYC_REJECTED\",e}({}),_=\"File is processed for upload. Please check My Uploads for details\",C=\"File is not processed for upload. Please check My Uploads for details\",w=function(e){return e.SALES_HQ=\"salesHq\",e.PARENT_LEVEL_GEO_DATA=\"parentLevelGeoData\",e.GEO_CHILD_DATA=\"geoChildData\",e.ALL_DISTRIBUTORS=\"allDistributors\",e.GEO_HIERARCHY_LIST=\"geoHierarchyList\",e}({}),S=\"Event Targets were already uploaded for selected Month & HQ combination. You cannot Update baselines.\",T=\"Event Targets were already uploaded for selected Month & HQ combination. You cannot Delete baselines.\",O=function(e){return e.OCR_SEARCH_COLUMNS=\"Search by Event Code\",e.TMS_NOT_FOUND=\"No Matching TM users found\",e.MDOS_NOT_FOUND=\"No Matching MDO users found\",e.OCR_DOWNLOAD_FAILED=\"OCR Forms are not available\",e.NO_ALTERNATIVE_HQS=\"There are no other HQs sharing the same Geo Data of selected HQ.\",e.SELECT_PARENT_HQ=\"There can be child data for __NAME__, please select another Parent HQ for upcoming Orphan HQs and Retailers.\",e.NO_DATA_FOUND=\"No Data found\",e.UNMAPPING_GEO_RETAILERS_MESSAGE=\"By Unmapping the Geo, the Retailers will become Orphans, are you sure you want to proceed?\",e.SOW_TM_APPROVE_ONLY=\"Share of Wallet Details are applicable to Approved Retailers only.\",e.CHANGE_PARENT_CONFIRMATION_POPUP=\"This user will be detached from all assigned Child HQs of the previous parent HQ. Do you want to continue?\",e.CLEAR_END_DATE_USER_CONFIRMATION_POPUP=\"Do you want to clear the end date and Reactivate the User?\",e.CLEAR_END_DATE_HQ_CONFIRMATION_POPUP=\"Do you want to clear the end date and Reactivate the HQ?\",e.CLEAR_END_DATE_ACTIVE_USER_CONFIRMATION_POPUP=\"Do you want to clear the end date for the User?\",e.CLEAR_END_DATE_ACTIVE_HQ_CONFIRMATION_POPUP=\"Do you want to clear the end date for the HQ?\",e.CHANGE_HQ_HIERARCHY_CONFIRMATION_POPUP=\"Cost Center will be configured at HQ\",e.DELETE_MLP=\"Do you want to delete the MLP?\",e}({}),D=function(e){return e.USER_CONFIGURATION_KEY=\"admin_is_hq_and_users_login_specific\",e.RETAILER_NO_OF_PREFERRED_DISTRIBUTORS=\"retailer_no_of_preferred_distributors\",e.IS_RETAILERS_SOW_ENABLED=\"is_retailers_sow_enabled\",e.RETAILER_ADDRESS_VALIDATION=\"retailers_address_validation\",e.RETAILER_ENABLE_PERFORMANCE=\"retailer_enable_performance\",e.RETAILER_SCAN_LIQUIDATION_ENABLED=\"retailer_is_enabled_scan_and_liquidation\",e.ADMIN_REQUIRED_COST_CENTER_HQ_HIERARCHY_ID=\"admin_required_cost_center_hq_hierarchy_id\",e.ADMIN_ENABLE_ADID=\"admin_enable_adid\",e.ENABLE_DEFAULT_PORTFOLIO_PARENT_POPULATION_SALES_HIERARCHY_ID=\"enable_default_portfolio_parent_population_sales_hierarchy_id\",e.EMPLOYEE_ID_CHAR_LIMIT=\"employee_id_char_limit\",e.KYC_NOT_VERIFIED_DISABLED_KEY=\"retailer_non_editable_fields_kyc_verifier\",e.KYC_VERIFIED_DISABLED_KEY=\"retailer_non_editable_fields_post_kyc_verifier\",e.COST_CENTER_CONFIGURATION_KEY=\"is_cost_center_configuration_required\",e.RETAILERS_ENABLE_BGP=\"retailers_enable_bgp\",e.DEMO_TRACKING_CONFIGURATION_KEY=\"demo_enable_tracking\",e.PRODUCT_DEMO_TRACKING_CONFIGURATION_KEY=\"is_product_demo_tracking_enabled\",e.DEMO_DISABLE_TM_REPORT=\"demo_disable_tm_report\",e.IS_BGP_BULK_UPLOAD_ENABLE=\"is_bgp_bulk_upload_enable\",e.RETAILER_BGP_DETAILS_LIST_TABLE_HEADERS=\"retailer_bgp_details_table_headers\",e.PLANNER_HQ_WISE_BGP_DETAILS_HEADERS=\"planner_hq_wise_bgp_details_headers\",e.HQ_WISE_BGP_DETAILS_HEADERS=\"hq_wise_bgp_details_headers\",e.HQ_WISE_RETAILER_BGP_DETAILS_TABLE_HEADERS=\"hq_wise_retailer_bgp_details_table_headers\",e.RETAILER_BGP_CREATED_DETAILS_HEADERS=\"retailer_bgp_created_details_headers\",e.RETAILER_BGP_CREATED_BRANDS_TABLE_HEADERS=\"retailer_bgp_created_brands_table_headers\",e.RETAILER_BGP_NOT_CREATED_BUTTONS=\"retailer_bgp_not_created_buttons\",e.RETAILER_BGP_NOT_CREATED_DETAILS_HEADERS=\"retailer_bgp_not_created_details_headers\",e.RETAILER_BGP_NOT_CREATED_BRANDS_TABLE_HEADERS=\"retailer_bgp_not_created_brands_table_headers\",e.RETAILER_BGP_PENDING_FOR_RETAILER_HEADERS=\"retailer_bgp_pending_for_retailer_headers\",e.RETAILER_BGP_PENDING_FOR_RETAILER_TABLE_HEADERS=\"retailer_bgp_pending_for_retailer_table_headers\",e.RETAILER_BGP_PENDING_FOR_TM_BUTTONS=\"retailer_bgp_pending_for_tm_buttons\",e.RETAILER_BGP_PENDING_FOR_TM_HEADERS=\"retailer_bgp_pending_for_tm_headers\",e.RETAILER_BGP_PENDING_FOR_TM_TABLE_HEADERS=\"retailer_bgp_pending_for_tm_table_headers\",e.IS_RETAILER_BGP_TOTAL_PLANNED_VALUE_REQUIRED=\"is_retailer_bgp_total_planned_value_required\",e.IS_ZERO_BGP_PLANNED_VOLUME_ALLOWED=\"is_zero_bgp_planned_volume_allowed\",e.ADMIN_REQUIRED_SFDC_HQ_HIERARCHY_ID=\"admin_required_sfdc_hq_hierarchy_id\",e.IS_HQ_SFDC_DATA_REQUIRED=\"is_hq_sfdc_data_required\",e.USER_MODULE_NAME=\"ADMIN\",e.COUNTRY_ADMIN=\"country_admin\",e.KYC_VERIFIER=\"kyc_verifier\",e.RETAILERS=\"RETAILERS\",e.WEB_UI=\"WEB_UI\",e.DEMO_TRACKING=\"DEMO_TRACKING\",e.PREFERRED_DISTRIBUTOR=\"preferredDistributor\",e.RETAILERS_DETAILS_TABS_CONFIGURATIONS=\"retailerDetailsTabsConfiguration\",e.HEAD_QUARTER_CONFIGURATION=\"headQuarterConfiguration\",e.ADID_CONFIGURATION=\"adidConfiguration\",e}({}),R=function(e){var t;return e.UserDetails.role_type_details.role_type_name===D.COUNTRY_ADMIN&&!(null!=e&&null!==(t=e.selectedBusinessUnit)&&void 0!==t&&null!==(t=t.userRoleControls)&&void 0!==t&&t.roleId)},N=function(e){return e.UserDetails.role_type_details.role_type_name===D.KYC_VERIFIER},L=function(e){return e.SYNGENTA_MANUAL_SALES=\"Syngenta Sales Manual(Lakhs)\",e.SYNGENTA_SALES_SUMRIDHI=\"Syngenta Sales Sumridhi(Lakhs)\",e}({}),P={SEED_LICENSE:\"SDL\",PESTICIDE_LICENSE:\"PCL\",GST:\"GST\"},M={GST_NUMBER:/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$/}},99590:(e,t,n)=>{\"use strict\";var r=n(91291),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new o(\"The argument can't be less than 0\");return t}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=r,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if(\"object\"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&\"function\"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;(\"object\"==typeof l||\"function\"==typeof l)&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+\"\");var t=a.g.document;if(!e&&t&&(t.currentScript&&\"SCRIPT\"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName(\"script\");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),a.p=e})(),a.b=document.baseURI||self.location.href,a.nc=void 0;var i={};return(()=>{\"use strict\";a.r(i),a.d(i,{default:()=>ke}),a(52675),a(89463),a(2259),a(23418),a(64346),a(23792),a(34782),a(23288),a(62010),a(26099),a(27495),a(38781),a(47764),a(62953);var e=a(58168),t=a(98587),n=a(81970),r=a.n(n),o=a(84022),l=a(83738),s=a(64673),u=a(74848);const c=function(t){const{children:r,theme:a}=t,i=(0,o.A)(),c=n.useMemo(()=>{const t=null===i?a:function(t,n){return\"function\"==typeof n?n(t):(0,e.A)({},t,n)}(i,a);return null!=t&&(t[s.A]=null!==i),t},[a,i]);return(0,u.jsx)(l.A.Provider,{value:c,children:r})};var d=a(24684),p=a(53951),f=a(73788),g=a(72221),h=a(21529),m=a(34661),v=a(32967);const A={};function y(t,r,o,a=!1){return n.useMemo(()=>{const n=t&&r[t]||r;if(\"function\"==typeof o){const i=o(n),l=t?(0,e.A)({},r,{[t]:i}):i;return a?()=>l:l}return t?(0,e.A)({},r,{[t]:o}):(0,e.A)({},r,o)},[t,r,o,a])}const E=function(e){const{children:t,theme:n,themeId:r}=e,a=(0,p.A)(A),i=(0,o.A)()||A,l=y(r,a,n),s=y(r,i,n,!0),E=\"rtl\"===l.direction,b=function(e){const t=(0,p.A)(),n=(0,m.A)()||\"\",{modularCssLayers:r}=e;let o=\"mui.global, mui.components, mui.theme, mui.custom, mui.sx\";return o=r&&null===t?\"string\"==typeof r?r.replace(/mui(?!\\.)/g,o):`@layer ${o};`:\"\",(0,h.A)(()=>{const e=document.querySelector(\"head\");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,\"data-mui-layer-order\")&&t.getAttribute(\"data-mui-layer-order\")===n)return;const a=document.createElement(\"style\");a.setAttribute(\"data-mui-layer-order\",n),a.textContent=o,e.prepend(a)}else{var a;null==(a=e.querySelector(`style[data-mui-layer-order=\"${n}\"]`))||a.remove()}},[o,n]),o?(0,u.jsx)(v.A,{styles:o}):null}(l);return(0,u.jsx)(c,{theme:s,children:(0,u.jsx)(d.T.Provider,{value:l,children:(0,u.jsx)(f.A,{value:E,children:(0,u.jsxs)(g.A,{value:null==l?void 0:l.components,children:[b,t]})})})})};var b=a(58312);const _=[\"theme\"];function C(n){let{theme:r}=n,o=(0,t.A)(n,_);const a=r[b.A];let i=a||r;return\"function\"!=typeof r&&(a&&!a.vars?i=(0,e.A)({},a,{vars:null}):r&&!r.vars&&(i=(0,e.A)({},r,{vars:null}))),(0,u.jsx)(E,(0,e.A)({},o,{themeId:a?b.A:void 0,theme:i}))}var w=a(34195),S=a(47767),T=a(85072),O=a.n(T),D=a(97825),R=a.n(D),N=a(77659),L=a.n(N),P=a(55056),M=a.n(P),x=a(10540),I=a.n(x),k=a(41113),B=a.n(k),F=a(56839),j={};j.styleTagTransform=B(),j.setAttributes=M(),j.insert=L().bind(null,\"head\"),j.domAPI=R(),j.insertStyleElement=I(),O()(F.A,j),F.A&&F.A.locals&&F.A.locals,a(45700),a(89572),a(94170),a(2892),a(59904),a(84185),a(40875),a(10287),a(60825);var H=a(86990),U=a(56203),Y=a(11848),G=a(28161),z=a(14073),V=(0,Y.Ay)(G.A)({width:\"100vw\",height:\"100vh\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\"}),q=(0,Y.Ay)(G.A)({width:\"350px\",height:\"auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\"}),W=(0,Y.Ay)(z.A)({fontWeight:700,fontSize:20,color:\"#CF3537\",lineHeight:\"28px\",textAlign:\"center\"});function Q(e){return Q=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Q(e)}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}function $(e){var t=function(e){if(\"object\"!=Q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=Q(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==Q(t)?t:t+\"\"}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(X=function(){return!!e})()}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}(0,Y.Ay)(z.A)({fontWeight:400,fontSize:14,color:\"#14151C\",lineHeight:\"22px\",textAlign:\"center\"});const ee=function(e){function t(e){var n,r,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),(r=this,o=t,a=[e],o=J(o),n=function(e,t){if(t&&(\"object\"==Q(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}(r,X()?Reflect.construct(o,a||[],J(r).constructor):o.apply(r,a))).state={error:null,errorInfo:null},n}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Z(e,t)}(t,e),n=t,(o=[{key:\"componentDidCatch\",value:function(e,t){this.setState({error:e,errorInfo:t})}},{key:\"render\",value:function(){return this.state.errorInfo?r().createElement(V,{className:\"OuterBox\"},r().createElement(q,null,r().createElement(W,null,\"\".concat((0,U.t)(\"ISSUE_SCREEN_MESSAGE\"))),r().createElement(H.A,{variant:\"contained\",color:\"success\",fullWidth:!0,sx:{my:\"1rem\"}},\"\".concat((0,U.t)(\"BACK\"))))):this.props.children}}])&&K(n.prototype,o),Object.defineProperty(n,\"prototype\",{writable:!1}),n;var n,o}(r().Component);var te,ne=a(99478),re=a(79e3);function oe(e){return oe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oe(e)}function ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=oe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==oe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie,le=(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te={EDIT:\"Edit\",CANCEL:\"Cancel\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",ENTER_NUMBERS:\"Please enter only numbers\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be atleast 2 characters\",COST_CENTER_MAX:\"Cost Center should be a max of 6 characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_NAME_HERADER:\"Geo Data Name\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",GEODATA_DETAILS:\"Geo Data Details\",ADD_GEO_DATA:\"Add Geo Data\",ADD_MDO:\"Add SPO\",EDIT_MDO:\"Edit SPO\",MDO_STARTDATE:\"SPO Start Date\",MDO_ENDDATE:\"SPO End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select SPO HQ\",MDO_HQ_ALLOCATION:\"SPO HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add SPO Head Quarters\",TM_HQ:\"TM HQ*\",MDO_HQ_NAME:\"SPO HQ Name*\",ENTER_MDO_NAME:\"Enter SPO HQ Name\",MDO_HQ_START_DATE:\"SPO HQ Start Date*\",MDO:\"SPO*\",ADD_MDO_HQ_BUTTON:\"ADD_SPO_HQ\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",MAIL_PLACEHOLDER:\"Enter Email\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",EMAIL_USER:\"Email *\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",HQ_NAME_TARGET:\"HQ Name\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"SPO HQ\"},\"TM_HQ\",\"TM HQ\"),\"UPLOAD_RETAILER\",\"Upload Retailer\"),\"SELECT_HQ_NAME\",\"Select HQ Name\"),\"HQ_NAMED\",\"HQ Name*\"),\"DOWNLOAD_TEMEPLATE\",\"Download the sample template\"),\"UPLOAD_FILE\",\"Upload the file after filling up the data in sample template\"),\"KNOW_MORE\",\"Know More\"),\"COMPLETED\",\"Completed\"),\"FAILED\",\"Failed\"),\"INPROGRESS\",\"In Progress\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"FILE_UPLOAD_ERROR\",\"Error found in uploaded file\"),\"ERROR_DESCRIPTION\",\"Please fix the error(s) listed below and upload the file again\"),\"REUPLOAD_TEXT\",\"Please rectify the erroneous data in the file and re-upload\"),\"DOWNLOAD\",\"Download\"),\"UPLOAD_RETAILERS\",\"Upload Retailer\"),\"CHANGE_MOBILE_NUMBER\",\"Change Mobile Number\"),\"EXISTING_MOBILE_NUMBER\",\"Existing Mobile Number\"),\"NEW_MOBILE_NUMBER\",\"New Mobile Number\"),\"ENTER_NUMBER\",\"Enter Number\"),\"ENTER_VERIFICATION_CODE\",\"Enter Verification Code\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"RESEND_OTP\",\"Send Verification Code\"),\"VERIFY\",\"Verify\"),\"PARTIAL_SUCCESS\",\"Partial Success\"),\"PERFORMANCE\",\"PERFORMANCE\"),\"OWNERNAME\",\"Owner Name\"),\"SHOPNAME\",\"Shop Name\"),\"MOBILENO\",\"Mobile Number\"),\"NOOFVISITS\",\"No.of Visits\"),\"ANNUAL_RETAILER_PLAN\",\"Annual Retailer Plan\"),\"TOTAL_ORDER_VALUE\",\"Total Order Value\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"TOTAL_COLLECTION\",\"Total Collection\"),\"TOTAL_LIQUIDATION\",\"Total Liquidation\"),\"TOTAL_PLACEMENT\",\"Total Placement\"),\"ORDER_DEFICIT\",\"Order Deficit\"),\"INVENTORY\",\"Inventory\"),\"EVENT_TYPES\",\"Event Type\"),\"EVENT_STATUS\",\"Event Status\"),\"PUBLISH_SIDE_HEADER\",\"Publish forms based upon event types\"),\"PUBLISH_SIDE_HEADER_PRODUCT\",\"Publish forms based upon product demo types\"),\"PRODUCT_DEMO_TYPES\",\"Product Demo Type\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"USER_ROLE_DROPDOWN_LABEL\",\"User Role\"),\"SALES_HIERARCHY_DROPDOWN_LABEL\",\"Sales Hierarchy\"),\"CONFIGURATIONS\",\"Configurations\"),\"UPLOAD_EVENT_TARGET_DAYS\",\"Upload Event Target (Days)\"),\"MANAGE_EVENT_TARGET\",\"Manage Event Target (Days)\"),\"ADD_EVENT_DAYS\",\"Add Event (Days)\"),\"MANAGE_EVENT_DAYS\",\"Manage Event (Days)\"),\"VIEW_EVENT_HISTORY\",\"View Event History (Months)\"),\"VIEW_EVENT_DAYS\",\"View Event (Days)\"),\"ATTENDANCE_TYPE\",\"Attendance Type\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"ENABLE_APPROVAL\",\"Enable Attendance Approval\"),\"WIP\",\"WIP\"),\"CONFIRMATION_TEXT\",\"Are you sure, you want to discard the changes?\"),\"EVENT_BASELINE_TYPE\",\"Events Baseline Type\"),\"SELECT_ATTENDANCE_MARKER\",\"Select Attendance Marker\"),\"VISIT_TYPE\",\"Visit Type\"),\"AUTO_SYNC\",\"Auto Sync\"),\"AUTO_SYNC_PLACEHOLDER\",\"Enter Frequency\"),\"ISSUE_SCREEN_MESSAGE\",\"Sorry, we have run into an issue\"),\"UPLOAD_EVENT_TARGET\",\"Upload Event Target\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"FILL_DETAILS\",\"Fill up the details\"),\"TARGET_LABEL\",\"Target For*\"),\"YEAR\",\"Year*\"),\"MONTH\",\"Month*\"),\"DMHQ\",\"DMHQ\"),\"DOWNLOAD_TEMPLATE\",\"Download the sample template\"),\"UPLOAD_DATA_SAMPLE\",\"Upload the file after filling up the data in sample template\"),\"CONFIGURATION_TYPE\",\"Configuration Type*\"),\"EDIT_EVENT_TARGET\",\"Edit Event Target\"),\"TARGET\",\"Target*\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"AVG_NO_OF_GROWERS_PER_EVENT\",\"Avg No Growers per Event\"),\"HELP_DESCRIPTION\",\"Help Description\"),\"FAQS\",\"FAQs\"),\"NO_DATA\",\"No Data to Show\"),\"SELECT_ATTENDANCE_APPROVER\",\"Select Attendance Approver\"),\"SELECT_APPROVER\",\"Select Approver\"),\"PAYCYCLE_APPROVAL_CONF\",\"Paycycle Approval Configuration\"),\"APPROVAL_DURATION\",\"Approval Duration\"),\"SELECT_DURATION\",\"Select Duration\"),\"APPROVAL_STARTDATE\",\"Approval Start Date\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SELECT_STARTDATE\",\"Select Start Date\"),\"VIEW_ATTENDANCE_HISTORY\",\"View Attendance History\"),\"NO_OF_MONTHS\",\"No. of Months\"),\"SELECT_NO_OF_MONTHS\",\"Select No. Of Months\"),\"SELECT_MARKER\",\"Select Marker\"),\"SELECT_MARKER_LABEL\",\"Select Attendance Marker\"),\"DOWNLOAD_HOLIDAYS_LIST\",\"Download Holidays List\"),\"DOWNLOAD_DISTRIBUTOR_LIST\",\"Download Distributor List\"),\"TEMPLATE\",\"Template\"),\"UPLOAD_FAILED\",\"Upload Failed\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"CLICK_KNOW_MORE\",\"Click to Know more\"),\"PAYCYCLE_CONFIG\",\"Paycycle Configuration\"),\"NO_OF_DAYS\",\"No.of Days\"),\"BACK_WARD_DAYS\",\"Backward (Days)\"),\"FORWARD_DAYS\",\"Forward (Days)\"),\"WEEKLY_OFF\",\"Weekly Off\"),\"SELECT_DAY\",\"Select Day\"),\"EVENT_BASED_ATTENDANCE\",\"Event Based Attendance\"),\"PAST_ATTENDANCE_DAYS\",\"Past Attendance Days\"),\"LEAVE_DURATION\",\"Leave Duration\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"ATLEASET_SELECT_ONE\",\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\"),\"SELECT_SALESHIER_ROLE\",\"Select Sales Hierarchy HQ\"),\"TARGET_TYPE\",\"Target Type\"),\"SELECT_TYPE\",\"Select Type\"),\"YEARLY\",\"Yearly\"),\"TARGETs_UPLOAD_DURATION\",\"Targets Upload Duration\"),\"ACTUALS_UPLOAD_DURATION\",\"Actuals Upload Duration\"),\"SET_NNR_VALUE\",\"Set NNR Value at\"),\"NO_DATA_MSG\",\"No HQ History Found\"),\"ADD_BASELINE\",\"Add Event Baseline\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"EDIT_BASELINE\",\"Edit Event Baseline\"),\"SELECT_DMHQ\",\"Select Head Quarter\"),\"SELECT_EVENT_MASTER_TYPE\",\"Select Event Master Type\"),\"SELECT_EVENT_TYPE\",\"Select Event type\"),\"SELECT_ROLE_TYPE\",\"Select role\"),\"SELECT_CONFIG_TYPE\",\"Select Configuration Type\"),\"SELECT_YEAR\",\"Select Year\"),\"SELECT_MONTH\",\"Select Month\"),\"BASELINE_VALUE\",\"Base Line Value\"),\"SELECT_MAX_BASELINE\",\"Select Max Baseline\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"NO_OF_RETAILERS\",\"No. of Retailers\"),\"NO_OF_GROWERS\",\"No. of Growers\"),\"SAVE_MESSAGE\",\"Baseline Configuration Saved Successfully\"),\"UPDATE_MESSAGE\",\"Baseline Configuration Updated Successfully\"),\"APPROVER_SAVE_TOAST_MESSAGE\",\"Attendance Approver Configuration has been saved successfully for selected role\"),\"REQ_DM_HQ_NAME\",\"DMHQ Name is required\"),\"REQ_EVENT_MASTER_TYPE\",\"Event Master Type is required\"),\"REQ_EVENT_TYPE\",\"Event Type is required\"),\"REQ_CONFIGURATION_TYPE\",\"Configuration Type is required\"),\"REQ_YEAR\",\"Year is required\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"REQ_MONTH\",\"Month is required\"),\"REQ_ROLE\",\"Role is required\"),\"MIN_BASELINE\",\"Baseline Value should be atleast 1\"),\"MAX_BASELINE\",\"Baseline value can be max of 999\"),\"REQ_BASELINE\",\"Baseline value is required\"),\"MIN_GROWERS\",\"No. Of Growers should be atleast 1\"),\"MAX_GROWERS\",\"No. Of Growers can be max of 9999\"),\"REQ_GROWERS\",\"No. Of Growers is required\"),\"MIN_RETAILERS\",\"No. Of Retailers should be atleast 1\"),\"MAX_RETAILERS\",\"No. Of Retailers can be max of 999\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"REQ_RETAILERS\",\"No. Of Retailers is required\"),\"REQ_MAX_BASELINE\",\"Max Baseline is required\"),\"TM_HQ_LABEL\",\"TM HQ\"),\"MDO_HQ_LABEL\",\"SPO HQ\"),\"YEAR_LABEL\",\"Year\"),\"TOTAL_TARGET_VOLUME\",\"Total Target Volume(In Kg/Lt)\"),\"TOTAL_TARGET_VALUE\",\"Total Target Value(In Lakhs)\"),\"TOTAL_ACTUAL_VOLUMES\",\"Total Actual Volume(In Kg/Lt)\"),\"TOTAL_ACTUAL_VALUE\",\"Total Actual Value(In Lakhs)\"),\"UPLOAD_TARGETS\",\"Upload Targets\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UPLOAD_ACTUALS\",\"Upload Actuals\"),\"UPLOAD_LIQUIDATION_TARGET\",\"Upload Liquidation Targets\"),\"LIQUIDATION_TARGET\",\"Liquidation Target\"),\"LIQUIDATION_ACTUALS\",\"Liquidation Actuals\"),\"TMHQS\",\"TM HQ\"),\"SELECT_TMHQ\",\"Select TM HQ\"),\"UPLOAD_COMPLETED_TEMPLATE\",\"Upload the completed template\"),\"SELECT_STATUS\",\"Select Status\"),\"UPLOAD_LIQUIDATION_ACTUALS\",\"Upload Liquidation Actuals\"),\"DMHQS\",\"DMHQ's\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"DOWNLOAD_REPORT\",\"Download Report\"),\"DOWNLOAD_TEMPLATE_TARGETS\",\"Download template to Add/Modify Targets\"),\"DOWNLOAD_TEMPLATE_ACTUALS\",\"Download template to Add/Modify Actuals\"),\"NNRHQS\",\"NNR HQ\"),\"SUCCESS_TOAST_MSG\",\"Please wait while we process the uploaded file. Check the status in 'My uploads' section in a few moments\"),\"FAILURE_TOAST_MSG\",\"File upload failed\"),\"VALID_FILE_ERROR\",\"Please upload valid template file\"),\"UPLOAD_CONDITION_TEXT\",\"Please upload downloaded template file\"),\"TARGET_STATUS\",\"Target Status\"),\"UPLOAD_DEMO_DISPATCH\",\"Upload Demo Courier Details\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SELECT_TMHQS\",\"Select the TMHQ's\"),\"SELECT\",\"Select\"),\"DISTRIBUTORS_MAPPED\",\"Distributors Mapped:\"),\"SELECT_DISTRIBUTORS\",\"Select Distributors\"),\"LIST_AVAILABLE_DISTRIBUTORS\",\"List of Available Distributors\"),\"SELECT_TM_HQ\",\"Select TM HQ\"),\"NOT_MARKED\",\"Not Marked\"),\"ABSENT\",\"Absent\"),\"APPLIED_LEAVES\",\"Applied Leaves\"),\"LEAVE\",\"Leave\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SEARCH_BY_NAMES\",\"Search by TM Name / Distributor / Crop / Status\"),\"APPROVALS\",\"Approvals\"),\"ATTENDANCE\",\"Attendance\"),\"PRESENT\",\"Present\"),\"SELECT_LEAVE\",\"Select Leave Type\"),\"SELECT_ACTIVITY\",\"Select Activity/Event\"),\"COMMENTS\",\"Comments\"),\"SELECT_DATE_TO_EDIT\",\"Please select any date to edit the attendance\"),\"TOTAL_TMS\",\"Total TMs\"),\"APPROVED\",\"Approved\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"PENDING\",\"Pending\"),\"MANPOWER_REPORT\",\"Manpower Report\"),\"ATTENDANCE_APPROVAL\",\"Attendance Approval\"),\"FINAL_APPROVAL_CONFIRMATION\",\"Are you sure you want to Final Approve the attendance?\"),\"FINAL_APPROVED_SUCCESSFULLY\",\" Attendance Final Approved Successfully\"),\"CHOOSE_EVENT_BASELINE_TYPE\",\"Choose Event Baseline Type\"),\"TEMPLATES\",\"Templates\"),\"EDITABLE\",\"Editable\"),\"KEEP_MANDATORY\",\"Keep Mandatory\"),\"FEATURES\",\"Features\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UPDATE_RETAILER_SOW_CONFIGURATION\",\"Update Retailer SOW Configuration -\"),\"ADD_RETAILER_SOW_CONFIGURATION\",\"Add Retailer SOW Configuration\"),\"GROWERS_ATTENDED\",\"Growers Attended\"),\"CONFIGURATION_DELETE_CONFIRMATION\",\"Are you sure, You want to delete this Baseline Configuration?\"),\"BACK_TO\",\"Back to\"),\"SEARCH_BY\",\"Search by\"),\"TARGETS_ARE_NOT_UPLOADED\",\"Targets are not uploaded for any brands in this BU.\"),\"NO_MATCHING_RECORDS\",\"No Matching Records.\"),\"FILE_UPLOADED\",\"File Uploaded\"),\"HOLIDAY_UPLOAD\",\"Holiday Upload\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"DISTRIBUTOR_UPLOAD\",\"Distributor Upload\"),\"GST_DOCUMENT\",\"GST Document\"),\"KYC_VERIFIED\",\"KYC Verified\"),\"TOTAL_WHOLESALE_PERCENTAGE\",\"Total Wholesale Percentage (%)\"),\"TOTAL_RETAILER_PERCENTAGE\",\"Total Retailer Percentage (%)\"),\"UPPERCASE_RETAILER_DETAILS\",\"RETAILER DETAILS\"),\"TYPING_HERE\",\"Start Typing here...\"),\"NOT_VERIFIED\",\"Not Verified\"),\"VIEW_DETAILS\",\"View Details\"),\"PLANNED_VALUE\",\"Planned Value\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"ACTUAL_VALUE\",\"Actual Value\"),\"ADD_BRAND_TARGET\",\"Add Brand Target\"),\"ENTER_SHOP_NAME\",\"Enter Shop Name\"),\"PLANNED_VOLUME\",\"Planned Volume\"),\"ENTER_PLANNED_VOLUME\",\"Enter Planned Volume\"),\"UPLOAD_BRAND_TARGET\",\"Upload Brand Target\"),\"UPDATE_BY_RETAILER\",\"Update by Retailer\"),\"REVIEW_BGP_DETAILS\",\"Review BGP Details\"),\"VIEW_BGP_DETAILS\",\"View BGP Details\"),\"TM\",\"TM\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"TM_APPROVED\",\"TM Approved\"),\"ACTIVE\",\"Active\"),\"INACTIVE\",\"InActive\"),\"UPLOAD_ANNUAL_TURNOVER\",\"Upload Annual Turnover\"),\"RETAILERS_TOUCHBASED\",\"Retailers Touchbased\"),\"MAPPED_RETAILERS\",\"Mapped Retailers\"),\"OUT_OF\",\"Out of\"),\"NUMBER\",\"Number\"),\"SAVED\",\"Saved\"),\"UPDATED\",\"Updated\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"YEAR_TEXT\",\"Year\"),\"ENABLE_EVENTS_BASELINING\",\"Enable Events Baselining\"),\"ENABLE_EVENTS\",\"Enable Events\"),\"ENABLE_IMAGE_UPLOAD\",\"Enable Image Upload\"),\"REQUEST_ID\",\"Request ID\"),\"MATERIAL_NAME\",\"Material Name\"),\"MATERIAL_CODE\",\"Material Code\"),\"COURIER_THROUGH\",\"Courier Through\"),\"COURIER_TRACKING_ID\",\"Courier Tracking ID\"),\"EXPECTED_DISPATCHED_DATE\",\"Expected Dispatched Date\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"EXPECTED_DELIVERY_DATE\",\"Expected Delivery Date\"),\"DISTRIBUTOR\",\"Distributor\"),\"MATERIAL\",\"Material\"),\"UPLOAD_TRACKING_DETAILS\",\"Upload Tracking Details\"),\"CREATED\",\"Created\"),\"DISPATCHED\",\"Dispatched\"),\"DMHQ_NAME\",\"DMHQ Name\"),\"MAXIMUM_BASELINE\",\"Max Baseline\"),\"AVG_GROWERS_PER_EVENT\",\"Avg No. of Growers per Event\"),\"NO_IMAGE_UPLOADED\",\"No image uploaded\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"GEO_LOCATION\",\"Geo Location\"),\"HISTORY\",\"History\"),\"DOCUMENTS\",\"Documents\"),\"LOWER_DOCUMENTS\",\"documents\"),\"EXPIRY_DATE\",\"Expiry Date\"),\"WHOLESALE_PERCENTAGE_OF_SALES\",\"Total Wholesale Percentage (%) of Syngenta sales\"),\"RETAILER_PERCENTAGE_OF_SALES\",\"Total Retailer Percentage (%) of Syngenta sales\"),\"SCANS_LIQUIDATION\",\"SCANS & LIQUIDATION\"),\"SHARE_OF_WALLET\",\"Share of Wallet\"),\"HQ_HIERARCHY_LABEL\",\"HQ Hierarchy\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"EDIT_ATTENDANCE\",\"Edit Attendance\"),\"FINAL_APPROVED\",\"Final Approved\"),\"FINAL_APPROVAL\",\"Final Approval\"),\"DOWNLOAD_LIQUIDATIONS\",\"Download Liquidation Targets / Actuals Report\"),\"DOWNLOAD_EVENT_ACTUALS\",\"Download Event Actuals\"),\"ADD_BASELINE_CONFIGURATION\",\"Add Baseline Configuration\"),\"DOWNLOAD_EVENT_TARGETS\",\"Download Event Targets\"),\"DOWNLOAD_LIQUIDATION_TARGET\",\"Download Liquidation Target/Actuals\"),\"REPLACE\",\"Replace\"),\"EDIT_DETAILS\",\"Edit Details\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UPLOAD_PLAN\",\"Upload Plan\"),\"ADD_TARGET\",\"Add Target\"),\"APPROVE_REQUEST\",\"Approve Request\"),\"UPLOAD_FILE_TEXT\",\"Upload File\"),\"UPLOAD_TEXT\",\"Upload\"),\"DEACTIVATE\",\"Deactivate\"),\"ACTIVATE\",\"Activate\"),\"REJECT\",\"Reject\"),\"APPROVE\",\"Approve\"),\"SEARCH_BY_FIELDS\",\"Search By First Name, Last Name, Phone Number\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SEARCH_BY_FIELDS_NAME\",\"Search By Shop Name, Owner Name\"),\"SEARCH_BY_CONFIGURATIONS\",\"Search by Year / Configuration Name\"),\"SEARCH_BY_HQ_NAME\",\"Search by HQ Name Or User Name\"),\"SEARCH_BY_BRANDNAME\",\"Search by HQ Name Or Brand Name\"),\"KYC_SEARCH\",\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\"),\"ORPHAN_SEARCH\",\"Search by Owner Name,Shop Name, Mobile, Taluka\"),\"RETAILERS_SEARCH\",\"Search by Headquarter / Owner Name / Shop Name / Mobile No\"),\"MDOS_SEARCH\",\"Search By First Name, Last Name, Phone Number\"),\"USERS_SEARCH\",\"Search By Name\"),\"DISTRIBUTORS_SEARCH\",\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"GEO_DATA_SEARCH\",\"Search By Name\"),\"HEAD_QUARTER_SEARCH\",\"Search By HQ Name\"),\"APPROVED_SUCCESSFULLY\",\"Approved successfully\"),\"MDO_ATTENDANCE_UPDATED_SUCCESSFULLY\",\"MDO Attendance updated successfully\"),\"DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY\",\"Demo Tracking Configurations saved successfully\"),\"LIQUIDATION_SAVED_SUCCESS\",\"Liquidation Configurations are saved successfully.\"),\"SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY\",\"Share of Wallet Configuration created successfully\"),\"SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY\",\"Share of Wallet Configuration updated successfully\"),\"EVENT_UPDATED_SUCCESS\",\"Event planning details updated successfully.\"),\"EVENT_DELETED_SUCCESS\",\"Event planning details deleted successfully.\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"FILE_UPLOADED_SUCCESSFULLY\",\"File Uploaded Successfully\"),\"RETAILERS_BRANDS_ADDED\",\"Retailers brands are added successfully\"),\"RETAILERS_BRANDS_UPDATED\",\"Retailers brands are updated successfully\"),\"RETAILER_ACTIVATED_SUCCESSFULLY\",\"Retailer was activated successfully\"),\"RETAILER_DEACTIVATED_SUCCESSFULLY\",\"Retailer was deactivated successfully\"),\"RETAILER_DETAILS_APPROVED_SUCCESSFULLY\",\"Retailer details approved successfully\"),\"SHARE_OF_WALLET_DATA\",\"Retailer Share of Wallet data\"),\"SUCCESSFULLY\",\"Successfully\"),\"PERMISSIONS_UPDATED\",\"Permissions Updated Successfully\"),\"PERMISSIONS_SAVED\",\"Permissions Saved Successfully\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"DISTRIBUTORS_SAVED\",\"Selected Distributors saved successfully\"),\"WEEK_OF_DAYS_API_FAILED\",\"Unable to fetch weekoff days\"),\"PRESENT_LIST_API_FAILED\",\"Unable to fetch present attendance list\"),\"ATTENDANCE_LIST_API_FAILED\",\"Failed to get Week Off/ Holiday and attendance list\"),\"SAVE_GROWER\",\"SAVE GROWERS API FAILED\"),\"LIQUIDATION_SAVED_FAILED\",\"Unable to save the configurartion\"),\"LIQUIDATION_GET_FAILED\",\"Unable to fetch configured Liquidation Targets Data\"),\"FAILED_UPDATE\",\"Failed to update\"),\"NO_UPLOADS_LIST_DATA\",\"No Uploads List Data available\"),\"NO_ERROR_LOG_LIST_DATA\",\"No ErrorLog List Data available\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SALES_HIERARCHY_API_FAILED\",\"Unable to fetch sales hierarchy information\"),\"NO_ATTENDANCE_DATA\",\"No Attendance Approver Data available\"),\"NO_PORTFOLIO_LIST\",\"No portfolio list\"),\"INCLUDE_ADMIN_CONFIGURATION\",\"Please include the admin configuration\"),\"ADMIN_ATTENDANCE_DATA_API_FAILED\",\"Unable to fetch Admin Attendance Data\"),\"DEMO_TRACKING_CONFIGURATIONS\",\"Failed to Save Demo Tracking Configurations\"),\"HIERARCHY_ROLE_API_FAILED\",\"Unable to fetch sales Hierarchy role\"),\"SAVE_EVENT_TARGET_FAILED\",\"Unable to save the EventTarget Data\"),\"GET_SALES_HIERARCHY_FAILED\",\"Failed to get Sales Hierarchy\"),\"GET_SALES_FAILED\",\"Failed to get Selected Sales\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UNABLE_TO_SAVE\",\"Unable to save the Data\"),\"NO_DATA_RECEIVED_FROM_SERVER\",\"No data received from the server.\"),\"DOWNLOAD_FAILED\",\"Download Template failed\"),\"DOWNLOAD_MDO_FAILED\",\"Download MDO failed\"),\"UPLOAD_LIQUIDATION_ERROR\",\"Unable to fetch Upload Liquidation Year Data\"),\"NO_BRANDS_AVAILABLE\",\"No Brand List Data available\"),\"DATA_NOT_AVAILABLE\",\"Data Not Available\"),\"DMHQ_DATA_NOT_AVAILABLE\",\"DMHQ data not available\"),\"EVENT_MASTER_TYPES_NOT_AVAILABLE\",\"Event Master types data not available\"),\"PORTFOLIOS_NOT_AVAILABLE\",\"Portfolio data not available\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"EVENT_TYPES_DATA_NOT_AVAILABLE\",\"Event types data not available\"),\"ROLES_DATA_NOT_AVAILABLE\",\"Roles data not available\"),\"NO_BASELINE_CONFIG_DATA_AVAILABLE\",\"No baseline config data available\"),\"NO_BASELINE_DATA_AVAILABLE\",\"No baseline Data available\"),\"BASELINE_DELETE_API_FAILED\",\"Baseline delete api failed\"),\"NO_DATA_FOUND\",\"No Data Found\"),\"NO_UPLOADED_DOCUMENTS\",\"No Uploaded Documents\"),\"NO_ERRORLOGS\",\"No ErrorLogs\"),\"UPLOAD_LIQUIDATION_HQ_DATA_FAILED\",\"Unable to fetch Upload Liquidation HQ Data\"),\"UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED\",\"Unable to fetch Upload Liquidation Portfolio's Data\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED\",\"Unable to fetch Upload Liquidation NNRHQ's Data\"),\"NO_LIQUIDATION_DATA_AVAILABLE\",\"No Liquidation Data available\"),\"NO_LIST_AVAILABLE\",\"No List Data available\"),\"NO_FILTER_LIST_AVAILABLE\",\"No Filter List Data available\"),\"HOLIDAY_UPLOAD_FAILED\",\"HolidayTemplate upload failed.\"),\"ERROR_IN_HOLIDAYTEMPLATE\",\"Error in uploading HolidayTemplate\"),\"SUM_OF_WHOLESALE\",\"The sum of Total Wholesale and Total Retailer fields must be 100\"),\"NO_KYC_DATA_AVAILABLE\",\"No KYC Data available\"),\"UNABLE_TO_UPDATE\",\"Unable to update\"),\"NO_DATA_AVAILABLE\",\"No Data available\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"FAILED_TO_FETCH_RETAILER_PERFORMANCE\",\"Failed to fetch retailer performance\"),\"RETAILER_NOT_DEACTIVATED\",\"Retailer is not deactivated. Please try again later\"),\"RETAILER_NOT_ACTIVATED\",\"Retailer is not activated. Please try again later\"),\"UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET\",\"Unable to save the Retailer Share of Wallet\"),\"NO_DISTRIBUTORS\",\"No Distributors Data available\"),\"ADD_GEOHIERARCHY_FAILED\",\"ADD GEOHIERARCHY API FAILED\"),\"GEOHIERARCHY_DATA_FAILED\",\"FETCH GEOHIERARCHY DATA API FAILED\"),\"Update_GEOHIERARCHY_FAILED\",\"Update GEOHIERARCHY API FAILED\"),\"SELECT_LEAVE_TYPE\",\"Please select an Leave Type\"),\"SELECT_EVENT\",\"Please select an Activity / Event\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SELECT_COMMENT\",\"Please select a Comment\"),\"ROLE_SELECT\",\"Please select role.\"),\"APPROVER_REQUIRED\",\"Attendance Approver Required\"),\"APPROVAL_DURATION_REQUIRED\",\"Approval Duration Required\"),\"APPROVAL_START_DATE_REQUIRED\",\"Approval Start Date Required\"),\"MONTHS_REQUIRED\",\"No Of Months Required\"),\"START_DATE_REQUIRED\",\"startDate Required\"),\"END_DATE_REQUIRED\",\"endDate Required\"),\"NO_OF_DAYS_REQUIRED\",\"noOfDays Required\"),\"BACKWARD_DAYS_REQUIRED\",\"backwardDays Required\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"FORWARDDAYS_REQUIRED\",\"forwardDays Required\"),\"AT_LEAST_1_DAY\",\"Week Off Day must have at least 1 day\"),\"WEEK_DAY_REQUIRED\",\"No Of WeekOffDay Required\"),\"TOTAL_ANNUAL_LEAVES_COUNT\",\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\"),\"SELECT_TEMPLATE\",\"Please select a template to proceed.\"),\"FREQUENCY_SHOULD_NOT_BE_ZERO\",\"frequency should not be zero or less than zero\"),\"FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS\",\"frequency should not be more than 3 digits\"),\"REQ_CONFIGURATION_NAME\",\"Configuration Name is Required\"),\"REQ_START\",\"Start Date is Required\"),\"REQ_END\",\"End Date is Required\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"REQ_TMHQ\",\"TM HQ is required\"),\"VALID_EMAIL\",\"Enter a valid email id\"),\"REQ_EMAIL\",\"Email id is required\"),\"VALID_URL\",\"Please enter a valid URL\"),\"REQ_URL\",\"URL is required\"),\"REQ_HELPLINE\",\"Helpline support message required\"),\"REQ_RELEASE_NOTES\",\"Release notes is required\"),\"REQ_DOC\",\"document is required\"),\"REQ_IMAGES\",\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\"),\"REQ_COMMENTS\",\"Comments are required for Rejection\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SELECT_ONE_DISTRIBUTOR\",\"Please select atleast one distributor\"),\"CHOOSE_ATTENDANCE_TYPE\",\"Choose Attendance Type\"),\"ATTENDANCE_APPROVAL_ENABLE\",\"Enable or Disable Attendance Approval\"),\"SELECT_PAYCYCLE_START_DATE\",\"Select paycycle start date\"),\"NOOF_PREVIOUS_MONTHS\",\"No. of Previous months User can View Events Summary.\"),\"NOOF_PREVIOUS_DAYS\",\"No. of Previous days User can View events created.\"),\"NOOF_PREVIOUS_DAYS_UPDATE_EVENT\",\"No. of previous days User can Update an Event\"),\"NOOF_PREVIOUS_DAYS_CREATE_EVENT\",\"No. of previous days User can create an Event .\"),\"NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH\",\"No. of days from current month start User can Update the Target.\"),\"NOOF_DAYS_UPLOAD_CURRENT_MONTH\",\"No. of days from current month start User can Upload the Target.\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"MANAGE_EVENT_TARGETS_CLOSED\",\"Manage Event Targets window has been closed. Please contact your Country Admin.\"),\"LIST_OF_RETAILERS\",\"List of Retailers\"),\"MY_UPLOADS\",\"My Uploads\"),\"EVENT_TARGETS\",\"Event Targets\"),\"BASIC_CONFIGURATION\",\"Basic Configuration\"),\"APPROVER_CONFIGURATION\",\"Approver Configuration\"),\"LEAVES_CONFIGURATION\",\"Leaves/Comp-off Configuration\"),\"EVENT_TARGET\",\"Event Target\"),\"DISCUSSION_BOARD\",\"Leaderboard/Discussion Board\"),\"TARGET_DETAILS\",\"Target/Actuals Details\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"PUBLISH_EVENTS_TYPES\",\"Publish forms based upon event types\"),\"PUBLISH_GROWERS\",\"Publish forms by selecting basic and advanced details\"),\"PUBLISH_RETAILERS\",\"Publish forms by selecting Basic and Advanced fields\"),\"MIN\",\"Min\"),\"MAX\",\"Max\"),\"WARNING_MESSAGE\",\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\"),\"EVENTS\",\"Events\"),\"GROWERS\",\"Growers\"),\"RETAILERS\",\"Retailers\"),\"DEMO_TRACKING\",\"Demo Tracking\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"GEO\",\"Geo\"),\"DEMO_TRACKING_SUCCESS\",\"Demo Tracking Configurations saved successfully\"),\"DEMO_TRACKING_FAILED\",\"Failed to Save Demo Tracking Configurations\"),\"PLACEHOLDER_MIN\",\"Enter minimum value\"),\"PLACEHOLDER_MAX\",\"Enter maximum value\"),\"MIN_GREATER_THAN_MAX\",\"Min is greater than Max\"),\"MAX_LESSER_THAN_MIN\",\"Max is lesser than Min\"),\"TMHQ_NAME\",\"TMHQ Name\"),\"MDOHQ_ENDDATE\",\"MDO HQ End Date\"),\"MONTH_LABEL\",\"Month\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"TARGET_HEADER\",\"Target\"),\"AVG_GROWERS\",\"Avg No. of Growers\"),\"RETAILER_SEGMENT\",\"Retailer Segment\"),\"MOBILE_NO\",\"Mobile No.\"),\"APPROVAL_STATUS\",\"Approval Status\"),\"VERIFICATION_STATUS\",\"Verification Status\"),\"SOHQ_NAME\",\"SOHQ Name\"),\"PROVINCE\",\"Province\"),\"NOTIFICATION_REASON\",\"Notification Reason\"),\"FILE_NAME\",\"File Name\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"UPLOADED_ON\",\"Uploaded On\"),\"UPLOADED_FOR\",\"Uploaded For\"),\"PROCESSED_ON\",\"Processed On\"),\"ERROR\",\"Error\"),\"FAILURE_REASON\",\"Failure Reason\"),\"ROW_NUMBER\",\"Row Number\"),\"LINE\",\"Line\"),\"DATE_TIME\",\"Date & Time\"),\"EVENT_MASTER_TYPE\",\"Event Master Type\"),\"CONFIG_TYPE\",\"Config Type\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"HASH_GROWERS\",\"#Growers\"),\"HASH_RETAILERS\",\"#Retailers\"),\"ROLE_NAME\",\"Role Name\"),\"DISTRIBUTOR_CODE\",\"Distributor Code\"),\"DISTRIBUTOR_NAME\",\"Distributor Name\"),\"CP_CODE\",\"CP Code\"),\"SEEDS_CODE\",\"Seeds Code\"),\"PMIN_PACKETS\",\"PMIN No.of packets\"),\"DISPATCHED_PACKETS\",\"Dispatched No.of packets\"),\"PMIN_DISTRIBUTOR_CODE\",\"PMIN Distributor Code\"),ae(ae(ae(ae(ae(ae(ae(ae(ae(te,\"SAKSHAM_DISTRIBUTOR_CODE\",\"Saksham Distributor Code\"),\"PLANNED_VALUE_IN_LAKHS\",\"Planned Value (In Lakhs)\"),\"ACTUAL_VALUE_LABEL\",\"Actual Value(in Lakhs)\"),\"ACHIEVEMENT\",\"%Achievement(Value)\"),\"GROWER_NAME\",\"Grower Name\"),\"NO_OF_PACKETS\",\"No.of Packets\"),\"ACTUAL_VOLUME_IN_KG\",\"Actual Volume (in Kg/Lt)\"),\"LIQUIDATION_PERCENTAGE\",\"% Liquidation (volume)\"),\"UPDATED_BY\",\"Updated by\"));function se(e){return se=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},se(e)}function ue(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=se(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=se(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==se(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce,de=(ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie={EDIT:\"Edit\",CANCEL:\"Cancel\",PROCEED:\"Proceed\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",MLP_SUBMISSION_START_DATE:\"MLP Submission Start Date\",MLP_SUBMISSION_END_DATE:\"MLP Submission End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_DOES_NOT_EXIST:\"Sorry, the page you are looking for does not exist\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",ENTER_NUMBERS:\"Please enter only numbers\",YES:\"Yes\",NO:\"No\",ALTERNATIVE_HQ:\"Alternative HQ\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PORTFOLIO:\"Select Portfolio\",SELECT_ALTERNATIVE_HQ:\"Select an Alternative HQ\",PROCEED_WITHOUT_APPLY:\"Proceed without Changes\",APPLY_CHANGES:\"Apply changes\",SELECT_DM_HQ:\"Select DM HQ\",SELECT_DISPLAY_BRAND_CATEGORY:\"Display Brand Category\",SELECT_PERCENTAGE_BRAND_CATEGORY:\"Percentage Brand Category\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",PORTFOLIO_MISMATCH_ADD_HQ:\"User will be unmapped from all existing portfolio HQs and remapped to selected portfolio and HQ. Do you still want to proceed?\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be at least _num_ characters\",COST_CENTER_MAX:\"Cost Center should be a max of _num_ characters\",SFDC_ID_MAX:\"SFDC ID should be a max of _num_ characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_NAME_HERADER:\"Geo Data Name\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",GEODATA_DETAILS:\"Geo Data Details\",ADD_GEO_DATA:\"Add Geo Data\",ADD_MDO:\"Add MDO\",EDIT_MDO:\"Edit MDO\",MDO_STARTDATE:\"MDO Start Date\",MDO_ENDDATE:\"MDO End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select MDO HQ\",MDO_HQ_ALLOCATION:\"MDO HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add MDO Head Quarters\",MDO_HQ_NAME:\"MDO HQ Name*\",ENTER_MDO_NAME:\"Enter MDO HQ Name\",MDO_HQ_START_DATE:\"MDO HQ Start Date*\",MDO:\"MDO*\",ADD_MDO_HQ_BUTTON:\"ADD_MDO_HQ\",MDO_ENDORSEMENT_MANDATORY_DETAILS_VALIDATION:\"Please add all mandatory MDO details before completing the Endorsement.\",MDO_COMPLETE_ENDORSEMENT_VALIDATION:\"Please complete the Endorsement before proceeding.\",MDO_ENDORSEMENT_CHECKBOX_VALIDATION:\"Please select the checkbox to confirm your acceptance.\",MDO_ENDORSEMENT_NAME_LABEL:\"Name of MDO\",MDO_ENDORSEMENT_PHONE_LABEL:\"Phone No. of MDO\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",BRANDS:\"Brands\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",SELECT_CONDUCTED_BY:\"Select Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",SELECT_PARENT_PORTFOLIO:\"Select Parent Portfolio\",MAIL_PLACEHOLDER:\"Enter Email\",ADID_PLACEHOLDER:\"Enter ADID\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",PORTFOLIO_FIELD:\"Portfolio\",EMAIL_USER:\"Email *\",ADID:\"ADID\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",HQ_NAME_TARGET:\"HQ Name\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",LIQUIDATION_TITLE_PLACEHOLDER:\"Hey!! Check out the liquidation target here.\",LIQUIDATION_DESCRIPTION_PLACEHOLDER:\"Please take a moment to review the liquidation target.\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"MDO HQ\",TM_HQ:\"TM HQ\",TM_NAME:\"TM NAME\",UPLOAD_RETAILER:\"Upload Retailer\",SELECT_HQ_NAME:\"Select HQ Name\",HQ_NAMED:\"HQ Name*\",DOWNLOAD_TEMEPLATE:\"Download the sample template\",DOWNLOAD_AGRO_TEMEPLATE:\"Download Agronomy template\",UPLOAD_FILE:\"Upload the file after filling up the data in sample template\",KNOW_MORE:\"Know More\",COMPLETED:\"Completed\",FAILED:\"Failed\",INPROGRESS:\"In Progress\",IN_PROGRESS:\"In Progress\",FILE_UPLOAD_ERROR:\"Error found in uploaded file\",ERROR_DESCRIPTION:\"Please fix the error(s) listed below and upload the file again\",REUPLOAD_TEXT:\"Please rectify the erroneous data in the file and re-upload\",DOWNLOAD:\"Download\",NEW:\"New\",UPLOAD_RETAILERS:\"Upload Retailer\",CHANGE_MOBILE_NUMBER:\"Change Mobile Number\",EXISTING_MOBILE_NUMBER:\"Existing Mobile Number\",NEW_MOBILE_NUMBER:\"New Mobile Number\",ENTER_NUMBER:\"Enter Number\",ENTER_VERIFICATION_CODE:\"Enter Verification Code\",RESEND_OTP:\"Send Verification Code\",VERIFY:\"Verify\",PARTIAL_SUCCESS:\"Partial Success\",PERFORMANCE:\"PERFORMANCE\",OWNERNAME:\"Owner Name\",SHOPNAME:\"Shop Name\",MOBILENO:\"Mobile Number\",NOOFVISITS:\"No.of Visits\",ANNUAL_RETAILER_PLAN:\"Annual Retailer Plan\",TOTAL_ORDER_VALUE:\"Total Order Value\",TOTAL_COLLECTION:\"Total Collection\",TOTAL_LIQUIDATION:\"Total Liquidation\",TOTAL_PLACEMENT:\"Total Placement\",ORDER_DEFICIT:\"Order Deficit\",INVENTORY:\"Inventory\",BULK_ASSIGN_RETAILER:\"Bulk Assign Retailers\",ASSIGN_RETAILER:\"Assign Retailers\",ASSIGN_TO_MDO_HQ:\"Assign to MDO HQ\",RETAILERS_SELECTED:\"Retailers selected\",RETAILER_SELECTED:\"Retailer selected\",ASSIGN_RETAILERS_DESCRIPTION:\"Assign selected retailers to an MDO. Only MDOs with territories matching the retailers' taluka - {{taluka}} will be available\",EVENT_TYPES:\"Event Type\",EVENT_STATUS:\"Event Status\",PUBLISH_SIDE_HEADER:\"Publish forms based upon event types\",PUBLISH_SIDE_HEADER_PRODUCT:\"Publish forms based upon product demo types\",PRODUCT_DEMO_TYPES:\"Product Demo Type\",USER_ROLE_DROPDOWN_LABEL:\"User Role\",SALES_HIERARCHY_DROPDOWN_LABEL:\"Sales Hierarchy\",CONFIGURATIONS:\"Configurations\",UPLOAD_EVENT_TARGET_DAYS:\"Upload Event Target (Days)\",MANAGE_EVENT_TARGET:\"Manage Event Target (Days)\",ADD_EVENT_DAYS:\"Add Event (Days)\",MANAGE_EVENT_DAYS:\"Manage Event (Days)\",VIEW_EVENT_HISTORY:\"View Event History (Months)\",VIEW_DEMO_MONTHS:\"View Demo (Months)\",VIEW_EVENT_DAYS:\"View Event (Days)\",ATTENDANCE_TYPE:\"Attendance Type\",ENABLE_APPROVAL:\"Enable Attendance Approval\",WIP:\"WIP\",CONFIRMATION_TEXT:\"Are you sure, you want to discard the changes?\",EVENT_BASELINE_TYPE:\"Events Baseline Type\",SELECT_ATTENDANCE_MARKER:\"Select Attendance Marker\",VISIT_TYPE:\"Visit Type\",AUTO_SYNC:\"Auto Sync\",AUTO_SYNC_PLACEHOLDER:\"Enter Frequency\",ISSUE_SCREEN_MESSAGE:\"Sorry, we have run into an issue\",UPLOAD_EVENT_TARGET:\"Upload Event Target\",FILL_DETAILS:\"Fill up the details\",TARGET_LABEL:\"Target For*\",YEAR:\"Year*\",MONTH:\"Month*\",DMHQ:\"DMHQ\",DOWNLOAD_TEMPLATE:\"Download the sample template\",UPLOAD_DATA_SAMPLE:\"Upload the file after filling up the data in sample template\",CONFIGURATION_TYPE:\"Configuration Type*\",EDIT_EVENT_TARGET:\"Edit Event Target\",TARGET:\"Target*\",AVG_NO_OF_GROWERS_PER_EVENT:\"Avg No Growers per Event\",HELP_DESCRIPTION:\"Help Description\",FAQS:\"FAQs\",NO_DATA:\"No Data to Show\",SELECT_ATTENDANCE_APPROVER:\"Select Attendance Approver\",SELECT_APPROVER:\"Select Approver\",PAYCYCLE_APPROVAL_CONF:\"Paycycle Approval Configuration\",APPROVAL_DURATION:\"Approval Duration\",SELECT_DURATION:\"Select Duration\",APPROVAL_STARTDATE:\"Approval Start Date\",APPROVAL_ENDDATE:\"Approval End Date\",SELECT_STARTDATE:\"Select Start Date\",VIEW_ATTENDANCE_HISTORY:\"View Attendance History\",VIEW_ATTENDANCE_HISTORY_TOOLTIP:\"How many months history can be viewed\",NO_OF_MONTHS:\"No. of Months\",SELECT_NO_OF_MONTHS:\"Select No. Of Months\",SELECT_MARKER:\"Select Marker\",SELECT_MARKER_LABEL:\"Select Attendance Marker\",PAYCYCLE_APPROVAL_CONFIGURATION_TOOLTIP:\"Set the config for when to start the approval cycle and for how many days\",VIEW_ATTENDANCE_HISTORTY_TOOLTIP:\"Set the config for who many past months attendance history can the approve see\",DOWNLOAD_HOLIDAYS_LIST:\"Download Holidays List\",DOWNLOAD_DISTRIBUTOR_LIST:\"Download Distributor List\",TEMPLATE:\"Template\",UPLOAD_FAILED:\"Upload Failed\",CLICK_KNOW_MORE:\"Click to Know more\",PAYCYCLE_CONFIG:\"Paycycle Configuration\",NO_OF_DAYS:\"No.of Days\",BACK_WARD_DAYS:\"Backward (Days)\",FORWARD_DAYS:\"Forward (Days)\",WEEKLY_OFF:\"Weekly Off\",SELECT_DAY:\"Select Day\",EVENT_BASED_ATTENDANCE:\"Event Based Attendance\",PAST_ATTENDANCE_DAYS:\"Past Attendance Days\",LEAVE_DURATION:\"Leave Duration\",ATLEASET_SELECT_ONE:\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\",SELECT_SALESHIER_ROLE:\"Select Sales Hierarchy HQ\",TARGET_TYPE:\"Target Type\",SELECT_TYPE:\"Select Type\",YEARLY:\"Yearly\",PORTFOLIO:\"Portfolio\",DM_HQ:\"DM HQ\",TARGETs_UPLOAD_DURATION:\"Targets Upload Duration\",ACTUALS_UPLOAD_DURATION:\"Actuals Upload Duration\",SET_NNR_VALUE:\"Set NNR Value at\",SET_PORTFOLIO_AND_BRAND_VALUE:\"Set Portfolio and Brand\",NO_DATA_MSG:\"No HQ History Found\",ADD_BASELINE:\"Add Event Baseline\",EDIT_BASELINE:\"Edit Event Baseline\",SELECT_DMHQ:\"Select Head Quarter\",SELECT_EVENT_MASTER_TYPE:\"Select Event Master Type\",SELECT_EVENT_TYPE:\"Select Event Type\",SELECT_ROLE_TYPE:\"Select Role\",SELECT_CONFIG_TYPE:\"Select Configuration Type\",SELECT_YEAR:\"Select Year\",SELECT_MONTH:\"Select Month\",BASELINE_VALUE:\"Baseline Value\",SELECT_MAX_BASELINE:\"Select Max Baseline\",NO_OF_RETAILERS:\"No. Of Retailers\",NO_OF_GROWERS:\"No. of Growers\",SAVE_MESSAGE:\"Baseline Configuration Saved Successfully\",UPDATE_MESSAGE:\"Baseline Configuration Updated Successfully\",APPROVER_SAVE_TOAST_MESSAGE:\"Attendance Approver Configuration has been saved successfully for selected role\",REQ_DM_HQ_NAME:\"DMHQ Name is required\",REQ_EVENT_MASTER_TYPE:\"Event Master Type is required\",REQ_EVENT_TYPE:\"Event Type is required\",REQ_CONFIGURATION_TYPE:\"Configuration Type is required\",REQ_YEAR:\"Year is required\",REQ_MONTH:\"Month is required\",REQ_ROLE:\"Role is required\",MIN_BASELINE:\"Baseline Value should be atleast 1\",MAX_BASELINE:\"Baseline value can be max of 999\",REQ_BASELINE:\"Baseline value is required\",MIN_GROWERS:\"No. Of Growers should be atleast 1\",MAX_GROWERS:\"No. Of Growers can be max of 9999\",REQ_GROWERS:\"No. Of Growers is required\",MIN_RETAILERS:\"No. Of Retailers should be atleast 1\",MAX_RETAILERS:\"No. Of Retailers can be max of 999\",REQ_RETAILERS:\"No. Of Retailers is required\",REQ_MAX_BASELINE:\"Max Baseline is required\",TM_HQ_LABEL:\"TM HQ\",MDO_HQ_LABEL:\"MDO HQ\",YEAR_LABEL:\"Year\",TOTAL_TARGET_VOLUME:\"Total Target Volume(In Kg/Lt)\",TOTAL_TARGET_VALUE:\"Total Target Value(In Lakhs)\",TOTAL_ACTUAL_VOLUMES:\"Total Actual Volume(In Kg/Lt)\",TOTAL_ACTUAL_VALUE:\"Total Actual Value(In Lakhs)\",TOTAL_TARGET_VOLUME_KG:\"Total Target Volume (In Kg)\",TOTAL_TARGET_VALUE_MIO:\"Total Target Value (In Mio)\",TOTAL_ACTUAL_VOLUMES_KG:\"Total Actual Volumes (In Kg)\",TOTAL_ACTUAL_VALUE_MIO:\"Total Actual Value (In Mio)\",UPLOAD_TARGETS:\"Upload Targets\",UPLOAD_ACTUALS:\"Upload Actuals\",UPLOAD_LIQUIDATION_TARGET:\"Upload Liquidation Targets\",UPLOAD_PFP_TARGET:\"Upload Pay for Performance Target\",UPLOAD_PFP_ACTUAL:\"Upload Pay for Performance Actual\",LIQUIDATION_TARGET:\"Liquidation Target\",LIQUIDATION_ACTUALS:\"Liquidation Actuals\",TMHQS:\"TM HQ\",SELECT_TMHQ:\"Select TM HQ\",UPLOAD_COMPLETED_TEMPLATE:\"Upload the completed template\",SELECT_STATUS:\"Select Status\",UPLOAD_LIQUIDATION_ACTUALS:\"Upload Liquidation Actuals\",DMHQS:\"DMHQ's\",DOWNLOAD_REPORT:\"Download Report\",DOWNLOAD_TEMPLATE_TARGETS:\"Download template to Add/Modify Targets\",DOWNLOAD_TEMPLATE_ACTUALS:\"Download template to Add/Modify Actuals\",NNRHQS:\"NNR HQ\",ACTIVE_TMHQS:\"Active TMHQ's\",SELECT_ACTIVE_TMHQ:\"Select TMHQ\",SELECT_TARGET_TYPE:\"Select Target Type\",REQ_PORTFOLIO:\"Portfolio Required\",REQ_DM_HQ:\"DM HQ Required\",REQ_DISPLAY_BRAND_CATEGORY:\"Display Brand Category Required\",REQ_MIN_DISPLAY_BRAND_CATEGORY:\"Minimum 2 display Brand Category Required\",REQ_PER_BRAND_CATEGORY:\"Percentage Brand Category Required\",REQ_MIN_MAX_PER_BRAND_CATEGORY:\"Minimum 2 & Maximum 3 Percentage Brand Category Required\",SUCCESS_TOAST_MSG:\"Please wait while we process the uploaded file. Check the status in 'My uploads' section in a few moments\",FAILURE_TOAST_MSG:\"File upload failed\",VALID_FILE_ERROR:\"Please upload valid template file\",UPLOAD_CONDITION_TEXT:\"Please upload downloaded template file\",TARGET_STATUS:\"Target Status\",UPLOAD_DEMO_DISPATCH:\"Upload Demo Courier Details\",COURIER_DETAILS:\"Courier Details\",COURIER_COMPANY_NAME:\"Courier Company Name\",UPDATE_DEMO_DETAILS:\"Update Demo Details\",SELECT_TMHQS:\"Select the TMHQ's\",SELECT:\"Select\",DISTRIBUTORS_MAPPED:\"Distributors Mapped:\",SELECT_DISTRIBUTORS:\"Select Distributors\",LIST_AVAILABLE_DISTRIBUTORS:\"List of Available Distributors\",SELECT_TM_HQ:\"Select TM HQ\",MDO_HQ_LABEL_DOW:\"MDO HQ Name\",MDO_NAME_LABEL:\"MDO Name\",ASSIGNMENT_START_DATE:\"Assignment Start Date\",ASSIGNMENT_END_DATE:\"Assignment End Date\",TM_HQ_NAME:\"TM HQ Name\"},\"TM_NAME\",\"TM Name\"),\"BM_NAME\",\"BM Name\"),\"DISTRIBUTOR_NAME\",\"Distributor Name\"),\"BP_ID\",\"BP ID\"),\"SALES_ORDER_NUMBER\",\"Sales Order Number\"),\"TOTAL_FOC_ORDER_QTY\",\"Total FOC Order Qty (Kg/Ltrs)\"),\"INVOICE_NUMBER\",\"Invoice #\"),\"INVOICE_DATE\",\"Invoice Date\"),\"TOTAL_FOC_INVOICED_QTY\",\"Total FOC Invoiced Qty (Kg/Ltrs)\"),\"BM_HQ_NAME\",\"BM HQ Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"YEAR_SHARE\",\"Year\"),\"CONFIGURATION_NAME\",\"Configuration Name\"),\"TOTAL_ANNUAL_LEAVES\",\"Total Annual Leaves\"),\"LEAVES_CARRY_FORWARD\",\"Leaves Carry Forward Per Year\"),\"MAX_COMP_OFF\",\"Maximum  Comp-off in a month\"),\"COMP_OFF_VALIDITY\",\"Comp-off Validity\"),\"ENABLE_LEAVES_COMPOFF\",\"Enable Leaves/Comp-off\"),\"EDIT_ORPHAN_RETAILERS\",\"Edit Orphan Retailer\"),\"TMHQ\",\"TMHQ\"),\"MDOHQ\",\"MDOHQ\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"MDO_NAME\",\"MDO Name\"),\"DISTRICT\",\"District\"),\"TALUKA\",\"Taluka\"),\"VILLAGE_NAME\",\"Village Name\"),\"DISTRIBUTORS\",\"Distributors\"),\"STATE\",\"State\"),\"SELECTED_TM_HQ\",\"Select TM HQ\"),\"SELECT_MDO_NAME\",\"Select MDO Name\"),\"SELECT_SHOP_NAME\",\"Select Shop Name\"),\"SELECT_OWNER_NAME\",\"Select Owner Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"SELECT_MOBILE_NUMBER\",\"Select Mobile Number\"),\"SELECT_STATE\",\"Select State\"),\"SELECT_DISTRICT\",\"Select District\"),\"SELECT_TALUKA\",\"Select Taluka\"),\"SELECT_VILLAGE_NAME\",\"Select Village Name\"),\"SELECT_PIN_CODE\",\"Select PinCode\"),\"IS_STARTING_DIGIT\",\"is-starting-digit-valid\"),\"MOBILE_NUMBER_START\",\"Mobile number should start with 5, 6, 7, 8, or 9\"),\"NO_SP_CHARACTERS\",\"no-special-characters\"),\"ZIP_REQUIRED\",\"Zip Code is required\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ZIP_CODE_VALIDATION\",\"Zip should not contain special characters or alphabets\"),\"ZIP_CODE_MIN_MAX_VALUE\",\"Zip Code must be minimum 1 and maximum 6 digits\"),\"ZIP_CODE_START\",\"Zip Code should not start with 0\"),\"EVENT_CODE\",\"Event Code\"),\"EVENT_DATE\",\"Event Date\"),\"VILLAGE\",\"Village\"),\"EVENT_REGISTRATION_IMAGES\",\"Event Registration Images\"),\"PLEASE_ADD_PORTFOLIO_BRAND\",\"Add Portfolio and Brand\"),\"PLEASE_SELECT_TM_HQ\",\"Please select a TM HQ\"),\"NOT_MARKED\",\"Not Marked\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ABSENT\",\"Absent\"),\"APPLIED_LEAVES\",\"Applied Leaves\"),\"LEAVE\",\"Leave\"),\"SEARCH_BY_NAMES\",\"Search by PMIN ID / TM HQ / Distributor / Crop / Status\"),\"SEARCH_BY_DISPATCH_DETAILS\",\"Search by PMIN ID / Material Description / Crop / Distributor Name / Distributor Code / Status\"),\"DOWNLOAD_TEMPLATE_FAILED\",\"An error occurred while downloading the template\"),\"BRAND_NAME\",\"Brand Name\"),\"RETAILER\",\"Retailer\"),\"CREATED_BY\",\"Created By\"),\"HEAD_QUARTER\",\"Head Quarter\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"SELECT_TARGET_FOR_TOOLTIP\",\"Select the role for which the Liq Targets to be configured\"),\"SELECT_PFP_TARGET_FOR_TOOLTIP\",\"Select the role for which the Pay for performance Targets to be configured\"),\"SET_NNR_TOOLTIP\",\"Select the Sales Hierarchy level at which the NNRS are to be configured\"),\"SET_PORTFOLIO_TOOLTIP\",\"Select the Portfolio and the Brands to be displayed in Liq Targets\"),\"TARGET_TYPE_TOOLTIP\",\"Select the Target Type\"),\"TARGET_UPLOAD_TOOLTIP\",\"Set the duration to Upload Liquidation Targets\"),\"TARGET_PFP_UPLOAD_TOOLTIP\",\"Set the duration to Upload Pay for performance Targets\"),\"ACTUALS_UPLOAD_TOOLTIP\",\"Set the duration to Upload Liquidation Actuals\"),\"ACTUALS_PFP_UPLOAD_TOOLTIP\",\"Set the duration to Upload Pay for performance Actuals\"),\"MAN_POOWER_REPORT_GENERATOR\",\"Man Power Report Generate Date\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ORDER_VALUE\",\"Order Value\"),\"PLACEMENT\",\"Placement\"),\"LIQUIDATION\",\"Liquidation\"),\"COLLECTION\",\"Collection\"),\"ENTRIESINFO\",\"Showing {{start}} to {{end}} of {{total}} {{entries}}\"),\"ENTRIES\",\"entries\"),\"ENTRY\",\"entry\"),\"APPROVALS\",\"Approvals\"),\"ATTENDANCE\",\"Attendance\"),\"PRESENT\",\"Present\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"SELECT_LEAVE\",\"Select Leave Type\"),\"SELECT_ACTIVITY\",\"Select Activity/Event\"),\"LEAVE_DISCLAIMER_MESSAGE\",\"Leave(s) Applied are subject to Leave Balance Available\"),\"COMMENTS\",\"Comments\"),\"SELECT_DATE_TO_EDIT\",\"Please select any date to edit the attendance\"),\"TOTAL_TMS\",\"Total TMs\"),\"APPROVED\",\"Approved\"),\"PENDING\",\"Pending\"),\"MANPOWER_REPORT\",\"Manpower Report\"),\"ATTENDANCE_APPROVAL\",\"Attendance Approval\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"FINAL_APPROVAL_CONFIRMATION\",\"Are you sure you want to Final Approve the attendance?\"),\"FINAL_APPROVED_SUCCESSFULLY\",\" Attendance Final Approved Successfully\"),\"CHOOSE_EVENT_BASELINE_TYPE\",\"Choose Event Baseline Type\"),\"TEMPLATES\",\"Templates\"),\"EDITABLE\",\"Editable\"),\"KEEP_MANDATORY\",\"Keep Mandatory\"),\"FEATURES\",\"Features\"),\"UPDATE_RETAILER_SOW_CONFIGURATION\",\"Update Retailer SOW Configuration -\"),\"ADD_RETAILER_SOW_CONFIGURATION\",\"Add Retailer SOW Configuration\"),\"GROWERS_ATTENDED\",\"Growers Attended\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"CONFIGURATION_DELETE_CONFIRMATION\",\"Are you sure, You want to delete this Baseline Configuration?\"),\"BACK_TO\",\"Back to\"),\"SEARCH_BY\",\"Search by\"),\"TARGETS_ARE_NOT_UPLOADED\",\"Targets are not uploaded for any brands in this BU.\"),\"NO_MATCHING_RECORDS\",\"No Matching Records.\"),\"FILE_UPLOADED\",\"File Uploaded\"),\"HOLIDAY_UPLOAD\",\"Holiday Upload\"),\"DISTRIBUTOR_UPLOAD\",\"Distributor Upload\"),\"GST_DOCUMENT\",\"GST Document\"),\"KYC_VERIFIED\",\"KYC Verified\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"KYC_REJECTED\",\"KYC Rejected\"),\"TOTAL_WHOLESALE_PERCENTAGE\",\"Total Wholesale Percentage (%)\"),\"TOTAL_RETAILER_PERCENTAGE\",\"Total Retailer Percentage (%)\"),\"UPPERCASE_RETAILER_DETAILS\",\"RETAILER DETAILS\"),\"TYPING_HERE\",\"Start Typing here...\"),\"NOT_VERIFIED\",\"Not Verified\"),\"RE_KYC\",\"Re-KYC\"),\"REJECTED\",\"Rejected\"),\"VIEW_DETAILS\",\"View Details\"),\"HIDE_DETAILS\",\"Hide Details\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"PLANNED_VALUE\",\"Planned Value\"),\"ACTUAL_VALUE\",\"Actual Value\"),\"ADD_BRAND_TARGET\",\"Add Brand Target\"),\"ENTER_SHOP_NAME\",\"Enter Shop Name\"),\"PLANNED_VOLUME\",\"Planned Volume\"),\"ENTER_PLANNED_VOLUME\",\"Enter Planned Volume\"),\"UPLOAD_BRAND_TARGET\",\"Upload Brand Target\"),\"UPDATE_BY_RETAILER\",\"Update by Retailer\"),\"REVIEW_BGP_DETAILS\",\"Review BGP Details\"),\"VIEW_BGP_DETAILS\",\"View BGP Details\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"TM\",\"TM\"),\"TM_APPROVED\",\"TM Approved\"),\"ACTIVE\",\"Active\"),\"INACTIVE\",\"InActive\"),\"UPLOAD_ANNUAL_TURNOVER\",\"Upload Annual Turnover\"),\"RETAILERS_TOUCHBASED\",\"Retailers Touchbased\"),\"MAPPED_RETAILERS\",\"Mapped Retailers\"),\"OUT_OF\",\"Out of\"),\"NUMBER\",\"Number\"),\"SAVED\",\"Saved\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"UPDATED\",\"Updated\"),\"YEAR_TEXT\",\"Year\"),\"ENABLE_EVENTS_BASELINING\",\"Enable Events Baselining\"),\"ENABLE_EVENTS\",\"Enable Events\"),\"ENABLE_IMAGE_UPLOAD\",\"Enable Image Upload\"),\"REQUEST_ID\",\"Request ID\"),\"MATERIAL_NAME\",\"Material Name\"),\"MATERIAL_CODE\",\"Material Code\"),\"COURIER_THROUGH\",\"Courier Through\"),\"COURIER_TRACKING_ID\",\"Courier Tracking ID\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"EXPECTED_DISPATCHED_DATE\",\"Expected Dispatched Date\"),\"EXPECTED_DELIVERY_DATE\",\"Expected Delivery Date\"),\"DISTRIBUTOR\",\"Distributor\"),\"MATERIAL\",\"Material\"),\"UPLOAD_TRACKING_DETAILS\",\"Upload Tracking Details\"),\"CREATED\",\"Created\"),\"DISPATCHED\",\"Dispatched\"),\"DMHQ_NAME\",\"DMHQ Name\"),\"MAXIMUM_BASELINE\",\"Max Baseline\"),\"AVG_GROWERS_PER_EVENT\",\"Avg No. of Growers per Event\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"NO_IMAGE_UPLOADED\",\"No image uploaded\"),\"GEO_LOCATION\",\"Geo Location\"),\"HISTORY\",\"History\"),\"DOCUMENTS\",\"Documents\"),\"LOWER_DOCUMENTS\",\"documents\"),\"EXPIRY_DATE\",\"Expiry Date\"),\"WHOLESALE_PERCENTAGE_OF_SALES\",\"Total Wholesale Percentage (%) of Syngenta sales\"),\"RETAILER_PERCENTAGE_OF_SALES\",\"Total Retailer Percentage (%) of Syngenta sales\"),\"SCANS_LIQUIDATION\",\"SCANS & LIQUIDATION\"),\"SHARE_OF_WALLET\",\"Share of Wallet\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"HQ_HIERARCHY_LABEL\",\"HQ Hierarchy\"),\"FIRST_VISIT_DATE\",\"First Visit Date\"),\"SECOND_VISIT_DATE\",\"Second Visit Date\"),\"QUALITY_CHECK\",\"Quality Check\"),\"PHOTOS\",\"Photos\"),\"DAMAGED_CROP\",\"Damaged Crop\"),\"OPTIONAL\",\"Optional\"),\"REMARKS\",\"Remarks\"),\"EDIT_ATTENDANCE\",\"Edit Attendance\"),\"FINAL_APPROVED\",\"Final Approved\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"FINAL_APPROVAL\",\"Final Approval\"),\"DOWNLOAD_LIQUIDATIONS\",\"Download Liquidation Targets / Actuals Report\"),\"DOWNLOAD_EVENT_ACTUALS\",\"Download Event Actuals\"),\"ADD_BASELINE_CONFIGURATION\",\"Add Baseline Configuration\"),\"DOWNLOAD_EVENT_TARGETS\",\"Download Event Targets\"),\"DOWNLOAD_LIQUIDATION_TARGET\",\"Download Liquidation Target/Actuals\"),\"DOWNLOAD_PAY_FOR_PERFORMANCE_TARGET\",\"Download Pay for Performance (Plan/Actual)\"),\"VARIETY_NAME\",\"Variety Name\"),\"REPLACE\",\"Replace\"),\"EDIT_DETAILS\",\"Edit Details\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"BULK_BGP_UPLOAD\",\"Bulk BGP Upload\"),\"BULK_BGP_UPLOAD_INFO\",\"All the Retailers from all HQs will be available in the template. BGP will reflect in Sumridhi within 24 hours.\"),\"BULK_BGP_UPLOAD_TAB_INFO\",\"All the Retailers from {{tabName}} HQ will be available in the template. BGP will reflect in Sumridhi within 24 hours.\"),\"BULK_BGP_UPLOAD_PROCESSED\",\"Your file has been uploaded successfully. Please submit it and check My Uploads for the processing status.\"),\"UPLOAD_PLAN\",\"Upload Plan\"),\"ADD_TARGET\",\"Add Target\"),\"APPROVE_REQUEST\",\"Approve Request\"),\"UPLOAD_FILE_TEXT\",\"Upload File\"),\"UPLOAD_TEXT\",\"Upload\"),\"DEACTIVATE\",\"Deactivate\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ACTIVATE\",\"Activate\"),\"REJECT\",\"Reject\"),\"APPROVE\",\"Approve\"),\"SEARCH_BY_FIELDS\",\"Search By First Name, Last Name, Phone Number\"),\"SEARCH_BY_FIELDS_NAME\",\"Search By Shop Name, Owner Name\"),\"SEARCH_BY_CONFIGURATIONS\",\"Search by Year / Configuration Name\"),\"SEARCH_BY_HQ_NAME\",\"Search by HQ Name Or User Name\"),\"SEARCH_BY_BRANDNAME\",\"Search by HQ Name Or Brand Name\"),\"SEARCH_BY_MATERIAL_CODE_VARIETY_NAME\",\"Search by Material code, Variety Name\"),\"KYC_SEARCH\",\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ORPHAN_SEARCH\",\"Search by Owner Name,Shop Name, Mobile, Taluka\"),\"RETAILERS_SEARCH\",\"Search by Headquarter / District / Taluka / Owner Name / Shop Name / Mobile No\"),\"RETAILERS_BGP_SEARCH\",\"Search by Shop name / MDO HQ / Phone number\"),\"TMHQ_BGP_LIST_SEARCH\",\"Search by TMHQ name / Portfolio\"),\"TMHQ_BGP_LIST_SEARCH_BY_TMHQ\",\"Search by TMHQ name\"),\"MDOS_SEARCH\",\"Search By First Name, Last Name, Phone Number\"),\"USERS_SEARCH\",\"Search By Name\"),\"DISTRIBUTORS_SEARCH\",\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\"),\"GEO_DATA_SEARCH\",\"Search By Name\"),\"HEAD_QUARTER_SEARCH\",\"Search By HQ Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"RETAILER_MAPPING_SEARCH\",\"Search by TMHQ / MDOHQ / Phone Number / Taluka / Shop Name / Owner Name\"),\"MLP_LIST_SEARCH\",\"Search by MLP Name, Season, Crop\"),\"DEMO_DETAILS_UPDATED_SUCCESSFULLY\",\"Demo Details Updated Successfully\"),\"APPROVED_SUCCESSFULLY\",\"Approved successfully\"),\"MDO_ATTENDANCE_UPDATED_SUCCESSFULLY\",\"MDO Attendance updated successfully\"),\"DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY\",\"Demo Tracking Configurations saved successfully\"),\"LIQUIDATION_SAVED_SUCCESS\",\"Liquidation Configurations are saved successfully.\"),\"SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY\",\"Share of Wallet Configuration created successfully\"),\"SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY\",\"Share of Wallet Configuration updated successfully\"),\"EVENT_UPDATED_SUCCESS\",\"Event planning details updated successfully.\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"EVENT_DELETED_SUCCESS\",\"Event planning details deleted successfully.\"),\"FILE_UPLOADED_SUCCESSFULLY\",\"File Uploaded Successfully\"),\"RETAILERS_BRANDS_ADDED\",\"Retailers brands are added successfully\"),\"RETAILERS_BRANDS_UPDATED\",\"Retailers brands are updated successfully\"),\"RETAILER_ACTIVATED_SUCCESSFULLY\",\"Retailer was activated successfully\"),\"RETAILER_DEACTIVATED_SUCCESSFULLY\",\"Retailer was deactivated successfully\"),\"RETAILER_DETAILS_APPROVED_SUCCESSFULLY\",\"Retailer details approved successfully\"),\"RETAILER_DETAILS_REJECTED_SUCCESSFULLY\",\"Retailer details rejected successfully\"),\"SHARE_OF_WALLET_DATA\",\"Retailer Share of Wallet data\"),\"SUCCESSFULLY\",\"Successfully\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"PERMISSIONS_UPDATED\",\"Permissions Updated Successfully\"),\"PERMISSIONS_SAVED\",\"Permissions Saved Successfully\"),\"DISTRIBUTORS_SAVED\",\"Selected Distributors saved successfully\"),\"WEEK_OF_DAYS_API_FAILED\",\"Unable to fetch weekoff days\"),\"PRESENT_LIST_API_FAILED\",\"Unable to fetch present attendance list\"),\"ATTENDANCE_LIST_API_FAILED\",\"Failed to get Week Off/ Holiday and attendance list\"),\"SAVE_GROWER\",\"SAVE GROWERS API FAILED\"),\"LIQUIDATION_SAVED_FAILED\",\"Unable to save the configuration\"),\"LIQUIDATION_GET_FAILED\",\"Unable to fetch configured Liquidation Targets Data\"),\"PAY_FOR_PERFORMANCE_GET_FAILED\",\"Unable to fetch configured Pay For Performance Targets Data\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"FAILED_UPDATE\",\"Failed to update\"),\"NO_UPLOADS_LIST_DATA\",\"No Uploads List Data available\"),\"NO_ERROR_LOG_LIST_DATA\",\"No ErrorLog List Data available\"),\"SALES_HIERARCHY_API_FAILED\",\"Unable to fetch sales hierarchy information\"),\"NO_ATTENDANCE_DATA\",\"No Attendance Approver Data available\"),\"NO_PORTFOLIO_LIST\",\"No portfolio list\"),\"INCLUDE_ADMIN_CONFIGURATION\",\"Please include the admin configuration\"),\"ADMIN_ATTENDANCE_DATA_API_FAILED\",\"Unable to fetch Admin Attendance Data\"),\"DEMO_TRACKING_CONFIGURATIONS\",\"Failed to Save Demo Tracking Configurations\"),\"HIERARCHY_ROLE_API_FAILED\",\"Unable to fetch sales Hierarchy role\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"SAVE_EVENT_TARGET_FAILED\",\"Unable to save the EventTarget Data\"),\"GET_SALES_HIERARCHY_FAILED\",\"Failed to get Sales Hierarchy\"),\"GET_SALES_FAILED\",\"Failed to get Selected Sales\"),\"UNABLE_TO_SAVE\",\"Unable to save the Data\"),\"NO_DATA_RECEIVED_FROM_SERVER\",\"No data received from the server.\"),\"DOWNLOAD_FAILED\",\"Download Template failed\"),\"DOWNLOAD_MDO_FAILED\",\"Download MDO failed\"),\"UPLOAD_LIQUIDATION_ERROR\",\"Unable to fetch Upload Liquidation Year Data\"),\"NO_BRANDS_AVAILABLE\",\"No Brand List Data available\"),\"DATA_NOT_AVAILABLE\",\"Data Not Available\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"DMHQ_DATA_NOT_AVAILABLE\",\"DMHQ data not available\"),\"EVENT_MASTER_TYPES_NOT_AVAILABLE\",\"Event Master types data not available\"),\"PORTFOLIOS_NOT_AVAILABLE\",\"Portfolio data not available\"),\"EVENT_TYPES_DATA_NOT_AVAILABLE\",\"Event types data not available\"),\"ROLES_DATA_NOT_AVAILABLE\",\"Roles data not available\"),\"NO_BASELINE_CONFIG_DATA_AVAILABLE\",\"No baseline config data available\"),\"NO_BASELINE_DATA_AVAILABLE\",\"No baseline Data available\"),\"BASELINE_DELETE_API_FAILED\",\"Baseline delete api failed\"),\"NO_DATA_FOUND\",\"No Data Found\"),\"NO_UPLOADED_DOCUMENTS\",\"No Uploaded Documents\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"NO_ERRORLOGS\",\"No ErrorLogs\"),\"UPLOAD_LIQUIDATION_HQ_DATA_FAILED\",\"Unable to fetch Upload Liquidation HQ Data\"),\"UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED\",\"Unable to fetch Upload Liquidation Portfolio's Data\"),\"UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED\",\"Unable to fetch Upload Liquidation NNRHQ's Data\"),\"NO_LIQUIDATION_DATA_AVAILABLE\",\"No Liquidation Data available\"),\"NO_LIST_AVAILABLE\",\"No List Data available\"),\"NO_FILTER_LIST_AVAILABLE\",\"No Filter List Data available\"),\"HOLIDAY_UPLOAD_FAILED\",\"HolidayTemplate upload failed.\"),\"ERROR_IN_HOLIDAYTEMPLATE\",\"Error in uploading HolidayTemplate\"),\"SUM_OF_WHOLESALE\",\"The sum of Total Wholesale and Total Retailer fields must be 100\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"NO_KYC_DATA_AVAILABLE\",\"No KYC Data available\"),\"UNABLE_TO_UPDATE\",\"Unable to update\"),\"NO_DATA_AVAILABLE\",\"No Data available\"),\"FAILED_TO_FETCH_RETAILER_PERFORMANCE\",\"Failed to fetch retailer performance\"),\"RETAILER_NOT_DEACTIVATED\",\"Retailer is not deactivated. Please try again later\"),\"RETAILER_NOT_ACTIVATED\",\"Retailer is not activated. Please try again later\"),\"UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET\",\"Unable to save the Retailer Share of Wallet\"),\"NO_DISTRIBUTORS\",\"No Distributors Data available\"),\"ADD_GEOHIERARCHY_FAILED\",\"ADD GEOHIERARCHY API FAILED\"),\"GEOHIERARCHY_DATA_FAILED\",\"FETCH GEOHIERARCHY DATA API FAILED\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"Update_GEOHIERARCHY_FAILED\",\"Update GEOHIERARCHY API FAILED\"),\"SELECT_LEAVE_TYPE\",\"Please select an Leave Type\"),\"SELECT_EVENT\",\"Please select an Activity / Event\"),\"SELECT_COMMENT\",\"Please select a Comment\"),\"ROLE_SELECT\",\"Please select role.\"),\"APPROVER_REQUIRED\",\"Attendance Approver Required\"),\"APPROVAL_DURATION_REQUIRED\",\"Approval Duration Required\"),\"APPROVAL_START_DATE_REQUIRED\",\"Approval Start Date Required\"),\"MONTHS_REQUIRED\",\"No Of Months Required\"),\"START_DATE_REQUIRED\",\"startDate Required\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"END_DATE_REQUIRED\",\"endDate Required\"),\"NO_OF_DAYS_REQUIRED\",\"noOfDays Required\"),\"BACKWARD_DAYS_REQUIRED\",\"backwardDays Required\"),\"FORWARDDAYS_REQUIRED\",\"forwardDays Required\"),\"AT_LEAST_1_DAY\",\"Week Off Day must have at least 1 day\"),\"WEEK_DAY_REQUIRED\",\"No Of WeekOffDay Required\"),\"TOTAL_ANNUAL_LEAVES_COUNT\",\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\"),\"SELECT_TEMPLATE\",\"Please select a template to proceed.\"),\"FREQUENCY_SHOULD_NOT_BE_ZERO\",\"frequency should not be zero or less than zero\"),\"FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS\",\"frequency should not be more than 3 digits\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"REQ_CONFIGURATION_NAME\",\"Configuration Name is Required\"),\"REQ_START\",\"Start Date is Required\"),\"REQ_END\",\"End Date is Required\"),\"REQ_TMHQ\",\"TM HQ is required\"),\"VALID_EMAIL\",\"Enter a valid email id\"),\"REQ_EMAIL\",\"Email id is required\"),\"VALID_URL\",\"Please enter a valid URL\"),\"REQ_URL\",\"URL is required\"),\"REQ_HELPLINE\",\"Helpline support message required\"),\"REQ_RELEASE_NOTES\",\"Release notes is required\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"REQ_DOC\",\"document is required\"),\"REQ_IMAGES\",\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\"),\"REQ_COMMENTS\",\"Comments are required for Rejection\"),\"REQ_COMMENTS_VERIFIER\",\"Comments are required\"),\"SELECT_ONE_DISTRIBUTOR\",\"Please select atleast one distributor\"),\"CHOOSE_ATTENDANCE_TYPE\",\"Choose Attendance Type\"),\"ATTENDANCE_APPROVAL_ENABLE\",\"Enable or Disable Attendance Approval\"),\"SELECT_PAYCYCLE_START_DATE\",\"Select paycycle start date\"),\"NOOF_PREVIOUS_MONTHS\",\"No. of Previous months User can View Events Summary.\"),\"NOOF_PREVIOUS_DAYS\",\"No. of Previous days User can View events created.\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"NOOF_PREVIOUS_DAYS_UPDATE_EVENT\",\"No. of previous days User can Update an Event\"),\"NOOF_PREVIOUS_DAYS_CREATE_EVENT\",\"No. of previous days User can create an Event .\"),\"NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH\",\"No. of days from current month start User can Update the Target.\"),\"NOOF_DAYS_UPLOAD_CURRENT_MONTH\",\"No. of days from current month start User can Upload the Target.\"),\"MANAGE_EVENT_TARGETS_CLOSED\",\"Manage Event Targets window has been closed. Please contact your Country Admin.\"),\"LIST_OF_RETAILERS\",\"List of Retailers\"),\"MY_UPLOADS\",\"My Uploads\"),\"EVENT_TARGETS\",\"Event Targets\"),\"BASIC_CONFIGURATION\",\"Basic Configuration\"),\"APPROVER_CONFIGURATION\",\"Approver Configuration\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"LEAVES_CONFIGURATION\",\"Leaves/Comp-off Configuration\"),\"EVENT_TARGET\",\"Event Target\"),\"DISCUSSION_BOARD\",\"Leaderboard/Discussion Board\"),\"TARGET_DETAILS\",\"Target/Actuals Details\"),\"FIRST_VISIT\",\"First Visit\"),\"SECOND_VISIT\",\"Second Visit\"),\"PUBLISH_EVENTS_TYPES\",\"Publish forms based upon event types\"),\"PUBLISH_GROWERS\",\"Publish forms by selecting basic and advanced details\"),\"PUBLISH_RETAILERS\",\"Publish forms by selecting Basic and Advanced fields\"),\"MIN\",\"Min\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"MAX\",\"Max\"),\"WARNING_MESSAGE\",\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\"),\"EVENTS\",\"Events\"),\"GROWERS\",\"Growers\"),\"RETAILERS\",\"Retailers\"),\"DEMO_TRACKING\",\"Demo Tracking\"),\"GEO\",\"Geo\"),\"DEMO_TRACKING_SUCCESS\",\"Demo Tracking Configurations saved successfully\"),\"DEMO_TRACKING_FAILED\",\"Failed to Save Demo Tracking Configurations\"),\"PLACEHOLDER_MIN\",\"Enter minimum value\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"PLACEHOLDER_MAX\",\"Enter maximum value\"),\"MIN_GREATER_THAN_MAX\",\"Min is greater than Max\"),\"MAX_LESSER_THAN_MIN\",\"Max is lesser than Min\"),\"TMHQ_NAME\",\"TMHQ Name\"),\"MDOHQ_ENDDATE\",\"MDO HQ End Date\"),\"MONTH_LABEL\",\"Month\"),\"TARGET_HEADER\",\"Target\"),\"AVG_GROWERS\",\"Avg No. of Growers\"),\"RETAILER_SEGMENT\",\"Retailer Segment\"),\"MOBILE_NO\",\"Mobile No.\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"APPROVAL_STATUS\",\"Approval Status\"),\"VERIFICATION_STATUS\",\"Verification Status\"),\"ONBOARDED_DATE\",\"Onboarded Date\"),\"LAST_MODIFIED_DATE\",\"Last Modified Date\"),\"ONBOARDING_DATE_RANGE\",\"Onboarding Date Range\"),\"ONBOARDING_DATE_FROM\",\"Onboarding Date: From\"),\"ONBOARDING_DATE_TO\",\"Onboarding Date: To\"),\"MODIFIED_DATE_FROM\",\"Modified Date: From\"),\"MODIFIED_DATE_TO\",\"Modified Date: To\"),\"FROM_DATE_LATER_THAN_TO_DATE\",\"From Date cannot be later than To Date\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"PLEASE_SELECT_A_DATE\",\"Please select a Date\"),\"SOHQ_NAME\",\"SOHQ Name\"),\"PROVINCE\",\"Province\"),\"NOTIFICATION_REASON\",\"Notification Reason\"),\"FILE_NAME\",\"File Name\"),\"UPLOADED_ON\",\"Uploaded On\"),\"UPLOADED_FOR\",\"Uploaded For\"),\"PROCESSED_ON\",\"Processed On\"),\"ERROR\",\"Error\"),\"FAILURE_REASON\",\"Failure Reason\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ROW_NUMBER\",\"Row Number\"),\"LINE\",\"Line\"),\"DATE_TIME\",\"Date & Time\"),\"EVENT_MASTER_TYPE\",\"Event Master Type\"),\"CONFIG_TYPE\",\"Config Type\"),\"HASH_GROWERS\",\"#Growers\"),\"HASH_RETAILERS\",\"#Retailers\"),\"ROLE_NAME\",\"Role Name\"),\"DISTRIBUTOR_CODE\",\"Distributor Code\"),\"DISTRIBUTOR_NAME\",\"Distributor Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"CP_CODE\",\"CP Code\"),\"SEEDS_CODE\",\"Seeds Code\"),\"PMIN_PACKETS\",\"PMIN No.of packets\"),\"MATERIAL_DESCRIPTION\",\"Material Description\"),\"PMIN_REQUEST_ID\",\"PMIN Request ID\"),\"PMIN_ID\",\"PMIN ID\"),\"DISTRIBUTOR_CODE_PMIN\",\"Distributor Code (PMIN)\"),\"DISTRIBUTOR_CODE_SAKSHAM\",\"Distributor Code (Saksham)\"),\"DEMO_PACKETS_PMIN\",\"Demo Packets (PMIN)\"),\"DEMO_PACKETS_DISPATCHED\",\"Demo Packets Dispatched\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"DISPATCHED_PACKETS\",\"Dispatched No.of packets\"),\"PMIN_DISTRIBUTOR_CODE\",\"PMIN Distributor Code\"),\"SAKSHAM_DISTRIBUTOR_CODE\",\"Saksham Distributor Code\"),\"PLANNED_VALUE_IN_LAKHS\",\"Planned Value (In Lakhs)\"),\"ACTUAL_VALUE_LABEL\",\"Actual Value(in Lakhs)\"),\"PLANNED_VOLUME_IN_KGS\",\"Planned Volume (in Kgs)\"),\"ACTUAL_VOLUME_IN_KGS\",\"Actual Volume (in Kgs)\"),\"TOTAL_PLANNED_VALUE\",\"Total Planned Value\"),\"TOTAL_PLANNED_VOLUME\",\"Total Planned Volume\"),\"ACHIEVEMENT\",\"%Achievement (Value)\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ACHIEVEMENT_VOLUME\",\"%Achievement (Volume)\"),\"GROWER_NAME\",\"Grower Name\"),\"NO_OF_PACKETS\",\"No.of Packets\"),\"ACTUAL_VOLUME_IN_KG\",\"Actual Volume (in Kg/Lt)\"),\"ACTUAL_VALUE_IN_LACS\",\"Actual Value (in Lakhs)\"),\"LIQUIDATION_PERCENTAGE\",\"% Liquidation (volume)\"),\"UPDATED_BY\",\"Updated by\"),\"PUBLISH_DEMO_TRACKING\",\"Publish forms based upon crop\"),\"DOWNLOADED_ON\",\"Downloaded On\"),\"MULTI_RETAILER_HQ_MAPPING\",\"Multi-Retailer HQ Mapping\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"ASSIGNMENT_TYPE\",\"Assignment Type\"),\"SELECT_ASSIGNMENT_TYPE\",\"Select Assignment Type\"),\"FIRST_VISIT_DETAILS_DOCUMENT\",\"Visit photo\"),\"TIER\",\"Tier\"),\"ORPHAN_RETAILERS\",\"Orphan Retailers\"),\"NON_ORPHAN_RETAILERS\",\"Non-Orphan Retailers\"),\"MODULE_CONFIG\",\"Module Config\"),\"FULL_DETAILS\",\"Full Details\"),\"MLP_CODE\",\"Code\"),\"MLP_NAME\",\"MLP Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"CREATE_MLP\",\"Create MLP\"),\"DONE\",\"Done\"),\"SEASON\",\"Season\"),\"APPROVED_BY\",\"Approved By\"),\"REJECTED_BY\",\"Rejected By\"),\"COMPETITOR\",\"Competitor\"),\"CATEGORY_VALUE\",\"Category Value\"),\"HIGH_POTENTIAL\",\"High Potential\"),\"LOW_POTENTIAL\",\"Low Potential\"),\"HIGH_SHARE\",\"High Share\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"LOW_SHARE\",\"Low Share\"),\"MIN_VALUE\",\"Min Value\"),\"MAX_VALUE\",\"Max Value\"),\"DURATION_DAYS\",\"Duration (Days)\"),\"AGRONOMY_RECOMMENDATION\",\"Agronomy Recommendation\"),\"APPROVER_CONFIG\",\"Approver Config\"),\"SELECT_BRANDS_FOR\",\"Select Brands For\"),\"SELECT_HYBRIDS_FOR\",\"Select Hybrids For\"),\"HYBRIDS\",\"Hybrids\"),\"SELECTED_BRANDS\",\"Selected Brands\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"CROP_NAME\",\"Crop Name\"),\"HYBRID_NAME\",\"Hybrid Name\"),\"MLP\",{CODE:\"Code\"}),\"TOTAL_MARKET_SHARE_POTENTIAL\",\"Total Market Potential\"),\"TOTAL_SYNGENTA_SALES_IN_MT\",\"Total Syngenta Sales (in MT)\"),\"TOTAL_MARKET_SHARE\",\"Total Market Share (%)\"),\"TOTAL_SALES_VOLUME\",\"Total Sales Volume (In Kg/Lt)\"),\"TOTAL_SALES_VALUE\",\"Total Sales Value (In Lakhs)\"),\"TOTAL_MARKET_POTENTIAL\",\"Total Market Potential (In Kg/Lt)\"),\"TOTAL_SYNGENTA_SALES_MT\",\"Total Syngenta Sales (In Kg/Lt)\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"TOTAL_MAN_MONTHS\",\"Total Man Months\"),\"PLANNER_VOLUME_REQUIRED\",\"Planned Volume is required\"),\"PLANNER_VOLUME_INVALID_FORMAT\",\"Planned Volume must be a valid number\"),\"PLANNER_VOLUME_MIN_VALUE_EXCEEDED\",\"Planned Volume must be at least 1\"),\"PLANNER_VOLUME_MAX_VALUE_EXCEEDED\",\"Planned Volume cannot exceed 99,999\"),\"TOTAL\",\"Total\"),\"COMMENT\",\"Comment\"),\"START_HERE\",\"Start here...\"),\"APPROVAL_DATE\",\"Approval Date\"),\"APPROVAL_TIME\",\"Approval Time\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"REJECTION_DATE\",\"Rejection Date\"),\"REJECTION_TIME\",\"Rejection Time\"),\"MARKET_POTENTIAL\",\"Market Potential\"),\"MDO_DETAILS\",\"MDO Details\"),\"SYNGENTA_HYBRID_WISE_SALES\",\"Syngenta Hybrid Wise Sales\"),\"COMPETITION_SALES\",\"Competition Sales\"),\"RETAILER_SALES_DATA_IN_TALUKA\",\"Retailer sales data in Taluka\"),\"SYNGENTA_MARKET_SHARE\",\"Syngenta Market Share\"),\"BLOCK_CATEGORY\",\"Block Category\"),\"VALUE\",\"Value\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"VOLUME\",\"Volume\"),\"PREVIOUS_YEAR\",\"Previous Year\"),\"CURRENT_YEAR_ACTUAL\",\"Current Year Actual\"),\"NEXT_YEAR_ESTIMATE\",\"Next Year Estimate\"),\"LAST_YEAR_MAN_MONTHS\",\"Last Year Man Months\"),\"CURRENT_YEAR_MAN_MONTHS\",\"Current Year Man Months\"),\"NEXT_YEAR_MAN_MONTHS_PROPOSAL\",\"Next Year Man Months Proposal\"),\"PREVIOUS_YEAR_ACTUAL_NET_SALES\",\"Previous year Actual Net sales (in MT)\"),\"CURRENT_YEAR_SALES_PLAN\",\"Current year sales Plan (As per last year MLP) (in MT)\"),\"CURRENT_YEAR_ACTUAL_NET_SALES\",\"Current year Actual Net sales (in MT)\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"GROWTH_OVER_LAST_YEAR\",\"Growth over last Year (in %)\"),\"NEXT_YEAR_SALES_PLAN\",\"Next Year Sales Plan (in MT)\"),\"FOCUSED_HYBRID\",\"Focused Hybrid (in MT)\"),\"TOTAL_SALES_MT_CY\",\"Total sales in MT (CY)\"),\"MAJOR_HYBRID_NAME\",\"Major Hybrid name \"),\"TOTAL_COMPETITOR_SALES\",\"Total Competitor Sales\"),\"TOTAL_MARKET_SIZE\",\"Total Market Size ⓘ\"),\"TOTAL_SYNGENTA_AND_COMPETITOR_SALES\",\"Total Syngenta Sales + Total Competitor Sales\"),\"TOTAL_SYNGENTA_SALES\",\"Total Syngenta Sales\"),\"MDOHQ_NAME\",\"MDOHQ Name\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"SEASON_FIELD\",\"Season\"),\"SFDC_ID\",\"SFDC ID\"),\"ENTER_SFDC\",\"Enter SFDC ID\"),\"ALL_FIELDS_ARE_MANDATORY\",\"All fields are mandatory\"),\"INVALID_BU_ID\",\"Invalid BU ID\"),\"INVALID_CROP_ID\",\"Invalid Crop ID\"),\"SELECTED_RETAILERS_DIFFERENT_TALUKAS_AND_PORTFOLIOS\",\"Selected Retailers are from different Talukas or Portfolios. Please select Retailers of Same Taluka and Portfolio.\"),\"SELECTED_RETAILERS_DIFFERENT_TALUKAS\",\"Selected Retailers are from different Talukas. Please select Retailers of Same Taluka.\"),\"TAKE_ACTION\",\"Take Action\"),\"SELECT_SEASON\",\"Select Season\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"APPROVAL_DETAILS\",\"Approval Details\"),\"APPROVAL_DETAILS_HISTORY\",\"Approval Details History\"),\"ACTION_TAKEN_BY\",\"Action Taken By\"),\"ACTION\",\"Action\"),\"REJECTION_DETAILS\",\"Rejection Details\"),\"SEARCH_BY_MODULE_CONFIG\",\"Search by MLP Name / Brand\"),\"SEARCH_BY_TM_LIST\",\"Search by TM Name / TM HQ\"),\"SUBMIT_TALUKAS_TOAST_MESSAGE\",\"Geo list submitted successfully\"),\"ATTENDANCE_REGULARIZATION\",\"Allow Attendance Regularization\"),\"MDO_DEMO_REPORT\",\"MDO Demo Report\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"TM_DEMO_REPORT\",\"TM Demo Report\"),\"DISTRIBUTOR_DEMO_REPORT\",\"Distributor Level Report\"),\"PRODUCT_DEMO_TRACKING\",\"Product Demo Tracking\"),\"DEMO_REPORT_LIST\",\"Demo Report List\"),\"FETCHING_DEMO_REPORT\",\"Fetching Demo Report Data...\"),\"ERROR_FETCHING_DEMO_REPORT\",\"Error fetching Demo Report data\"),\"NO_DEMO_REPORT_DATA\",\"No Demo Report data available\"),\"SORT_ASCENDING\",\"Sort Ascending\"),\"SORT_DESCENDING\",\"Sort Descending\"),\"LAID_DOWN_QTY\",\"Laid Down Qty (Kg/Ltrs)\"),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(ie,\"DEMO_LAID_DOWN_COUNT\",\"Demo Laid Down Count\"),\"DEMO_LAID_DOWN_PLOT_SHOWCASING\",\"Demo Laid Down Plot Showcasing\"),\"GROWERS_ATTENDED_SHOWCASE_COUNT\",\"Growers Attended Showcase Count\"),\"DIVISION\",\"Division\"),\"DISTRIBUTOR_BP_ID\",\"Distributor BP ID\"),\"GROWER_COUNT_NUMERICAL_MESSAGE\",\"These limits are applied to the numeric value, not the character count.\"),\"MDO_REPORT_SEARCH\",\"Search By MDO HQ, MDO Name, Mobile No., Brand, Crop\"),\"TM_REPORT_SEARCH\",\"Search by TM HQ, TM Name, Mobile No., Brand, Crop\"),\"DISTRIBUTOR_REPORT_SEARCH\",\"Search by Division, BM Name, TM Name, Distributor Name, Distributor BP ID & Brand\"),\"DISTRIBUTOR_DETAILS_REPORT_SEARCH\",\"Search by Brand, Sales Order Number, Invoice # and Invoice Date\")),pe={EDIT:\"Edit\",CANCEL:\"Cancel\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be atleast 2 characters\",COST_CENTER_MAX:\"Cost Center should be a max of 6 characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",ADD_GEO_DATA:\"Add Geo Data\",GEO_NAME_HERADER:\"Geo Data Name\",GEODATA_DETAILS:\"Geo Data Details\",ADD_MDO:\"Add SO\",EDIT_MDO:\"Edit SO\",MDO_STARTDATE:\"SO Start Date\",MDO_ENDDATE:\"SO End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select SO HQ\",MDO_HQ_ALLOCATION:\"SO HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add SO Head Quarters\",MDO_HQ_NAME:\"SO HQ Name*\",ENTER_MDO_NAME:\"Enter SO HQ Name\",MDO_HQ_START_DATE:\"SO HQ Start Date*\",MDO:\"SO*\",ADD_MDO_HQ_BUTTON:\"ADD_MDO_HQ\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",HQ_NAME_TARGET:\"HQ Name\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",MAIL_PLACEHOLDER:\"Enter Email\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",EMAIL_USER:\"Email *\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"SO HQ\",TM_HQ:\"TM HQ\",UPLOAD_RETAILER:\"Upload Retailer\",SELECT_HQ_NAME:\"Select HQ Name\",HQ_NAMED:\"HQ Name*\",DOWNLOAD_TEMEPLATE:\"Download the sample template\",UPLOAD_FILE:\"Upload the file after filling up the data in sample template\",KNOW_MORE:\"Know More\",COMPLETED:\"Completed\",FAILED:\"Failed\",FILE_UPLOAD_ERROR:\"Error found in uploaded file\",ERROR_DESCRIPTION:\"Please fix the error(s) listed below and upload the file again\",REUPLOAD_TEXT:\"Please rectify the erroneous data in the file and re-upload\",DOWNLOAD:\"Download\",UPLOAD_RETAILERS:\"Upload Retailer\",PARTIAL_SUCCESS:\"Partial Success\",EVENT_TYPES:\"Event Type\",EVENT_STATUS:\"Event Status\",PUBLISH_SIDE_HEADER:\"Publish forms based upon event types\",PUBLISH_SIDE_HEADER_PRODUCT:\"Publish forms based upon product demo types\",PRODUCT_DEMO_TYPES:\"Product Demo Type\",USER_ROLE_DROPDOWN_LABEL:\"User Role\",SALES_HIERARCHY_DROPDOWN_LABEL:\"Sales Hierarchy\",CONFIGURATIONS:\"Configurations\",EVENT_TARGET_DAYS:\"Create Event Target (Days)\",MANAGE_TARGET_DAYS:\"Manage Event Target (Days)\",MANAGE_EVENT_DAYS:\"Manage Event (Days)\",VIEW_EVENT_HISTORY:\"View Event History (Months)\",VIEW_EVENT_DAYS:\"View Event (Days)\",VISIT_TYPE:\"Visit Type\",AUTO_SYNC:\"Auto Sync\",AUTO_SYNC_PLACEHOLDER:\"Enter Frequency\",ISSUE_SCREEN_MESSAGE:\"Sorry, we have run into an issue\",UPLOAD_EVENT_TARGET:\"Upload Event Target\",FILL_DETAILS:\"Fill up the details\",TARGET_LABEL:\"Target For*\",YEAR:\"Year*\",MONTH:\"Month*\",DOWNLOAD_TEMPLATE:\"Download the sample template\",UPLOAD_DATA_SAMPLE:\"Upload the file after filling up the data in sample template\",HELP_DESCRIPTION:\"Help Description\",FAQS:\"FAQs\",NO_DATA:\"No Data to Show\",SELECT_ATTENDANCE_APPROVER:\"Select Attendance Approver\",SELECT_APPROVER:\"Select Approver\",PAYCYCLE_APPROVAL_CONF:\"Paycycle Approval Configuration\",APPROVAL_DURATION:\"Approval Duration\",SELECT_DURATION:\"Select Duration\",APPROVAL_STARTDATE:\"Approval Start Date\",SELECT_STARTDATE:\"Select Start Date\",VIEW_ATTENDANCE_HISTORY:\"View Attendance History\",NO_OF_MONTHS:\"No. of Months\",SELECT_NO_OF_MONTHS:\"Select No. Of Months\",SELECT_MARKER:\"Select Marker\",SELECT_MARKER_LABEL:\"Select Attendance Marker\",PAYCYCLE_CONFIG:\"Paycycle Configuration\",NO_OF_DAYS:\"No.of Days\",BACK_WARD_DAYS:\"Backward (Days)\",FORWARD_DAYS:\"Forward (Days)\",WEEKLY_OFF:\"Weekly Off\",SELECT_DAY:\"Select Day\",EVENT_BASED_ATTENDANCE:\"Event Based Attendance\",PAST_ATTENDANCE_DAYS:\"Past Attendance Days\",LEAVE_DURATION:\"Leave Duration\",ATLEASET_SELECT_ONE:\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\",ADD_BASELINE:\"Add Event Baseline\",EDIT_BASELINE:\"Edit Event Baseline\",SELECT_DMHQ:\"Select Head Quarter\",SELECT_EVENT_MASTER_TYPE:\"Select Event Master Type\",SELECT_EVENT_TYPE:\"Select Event Type\",SELECT_ROLE_TYPE:\"Select Role\",SELECT_CONFIG_TYPE:\"Select Configuration Type\",SELECT_YEAR:\"Select Year\",SELECT_MONTH:\"Select Month\",BASELINE_VALUE:\"Baseline Value\",SELECT_MAX_BASELINE:\"Select Max Baseline\",NO_OF_RETAILERS:\"No. Of Retailers\",NO_OF_GROWERS:\"No. of Growers\",SAVE_MESSAGE:\"Baseline Configuration Updated Successfully\",UPDATE_MESSAGE:\"Baseline Configuration Updated Successfully\",REQ_DM_HQ_NAME:\"DMHQ Name is required\",REQ_EVENT_MASTER_TYPE:\"Event Master Type is required\",REQ_EVENT_TYPE:\"Event Type is required\",REQ_CONFIGURATION_TYPE:\"Configuration Type is required\",REQ_YEAR:\"Year is required\",REQ_MONTH:\"Month is required\",REQ_ROLE:\"Role is required\",MIN_BASELINE:\"Baseline Value should be atleast 1\",MAX_BASELINE:\"Baseline value can be max of 999\",REQ_BASELINE:\"Baseline value is required\",MIN_GROWERS:\"No. Of Growers should be atleast 1\",MAX_GROWERS:\"No. Of Growers can be max of 9999\",REQ_GROWERS:\"No. Of Growers is required\",MIN_RETAILERS:\"No. Of Retailers should be atleast 1\",MAX_RETAILERS:\"No. Of Retailers can be max of 999\",REQ_RETAILERS:\"No. Of Retailers is required\",REQ_MAX_BASELINE:\"Max Baseline is required\",UPLOAD_DEMO_DISPATCH:\"Upload Demo Courier Details\",SELECT_TMHQS:\"Select the TMHQ's\",YEAR_SHARE:\"Year\",CONFIGURATION_NAME:\"Configuration Name\",IS_STARTING_DIGIT:\"is-starting-digit-valid\",MOBILE_NUMBER_START:\"Mobile number should start with 5, 6, 7, 8, or 9\",NO_SP_CHARACTERS:\"no-special-characters\",ZIP_REQUIRED:\"Zip Code is required\",ZIP_CODE_VALIDATION:\"Zip should not contain special characters or alphabets\",ZIP_CODE_MIN_MAX_VALUE:\"Zip Code must be minimum 1 and maximum 6 digits\",ZIP_CODE_START:\"Zip Code should not start with 0\",NOT_MARKED:\"Not Marked\",ABSENT:\"Absent\",APPLIED_LEAVES:\"Applied Leaves\",LEAVE:\"Leave\",SEARCH_BY_NAMES:\"Search by TM Name / Distributor / Crop / Status\",BRAND_NAME:\"Brand Name\",TOTAL_ACTUAL_VOLUMES:\"Total Actual volumes(In Kg/Lt)\",APPROVALS:\"Approvals\",ATTENDANCE:\"Attendance\",PRESENT:\"Present\",SELECT_LEAVE:\"Select Leave Type\",SELECT_ACTIVITY:\"Select Activity/Event\",COMMENTS:\"Comments\",SELECT_DATE_TO_EDIT:\"Please select any date to edit the attendance\",TOTAL_TMS:\"Total TMs\",APPROVED:\"Approved\",PENDING:\"Pending\",MANPOWER_REPORT:\"Manpower Report\",ATTENDANCE_APPROVAL:\"Attendance Approval\",FINAL_APPROVAL_CONFIRMATION:\"Are you sure you want to Final Approve the attendance?\",FINAL_APPROVED_SUCCESSFULLY:\" Attendance Final Approved Successfully\",CHOOSE_EVENT_BASELINE_TYPE:\"Choose Event Baseline Type\",TEMPLATES:\"Templates\",EDITABLE:\"Editable\",KEEP_MANDATORY:\"Keep Mandatory\",FEATURES:\"Features\",UPDATE_RETAILER_SOW_CONFIGURATION:\"Update Retailer SOW Configuration -\",ADD_RETAILER_SOW_CONFIGURATION:\"Add Retailer SOW Configuration\",GROWERS_ATTENDED:\"Growers Attended\",CONFIGURATION_DELETE_CONFIRMATION:\"Are you sure, You want to delete this Baseline Configuration?\",BACK_TO:\"Back to\",SEARCH_BY:\"Search by\",TARGETS_ARE_NOT_UPLOADED:\"Targets are not uploaded for any brands in this BU.\",NO_MATCHING_RECORDS:\"No Matching Records.\",FILE_UPLOADED:\"File Uploaded\",HOLIDAY_UPLOAD:\"Holiday Upload\",DISTRIBUTOR_UPLOAD:\"Distributor Upload\",GST_DOCUMENT:\"GST Document\",KYC_VERIFIED:\"KYC Verified\",TOTAL_WHOLESALE_PERCENTAGE:\"Total Wholesale Percentage (%)\",TOTAL_RETAILER_PERCENTAGE:\"Total Retailer Percentage (%)\",UPPERCASE_RETAILER_DETAILS:\"RETAILER DETAILS\",TYPING_HERE:\"Start Typing here...\",NOT_VERIFIED:\"Not Verified\",VIEW_DETAILS:\"View Details\",PLANNED_VALUE:\"Planned Value\",ACTUAL_VALUE:\"Actual Value\",ADD_BRAND_TARGET:\"Add Brand Target\",ENTER_SHOP_NAME:\"Enter Shop Name\",PLANNED_VOLUME:\"Planned Volume\",ENTER_PLANNED_VOLUME:\"Enter Planned Volume\",UPLOAD_BRAND_TARGET:\"Upload Brand Target\",UPDATE_BY_RETAILER:\"Update by Retailer\",REVIEW_BGP_DETAILS:\"Review BGP Details\",VIEW_BGP_DETAILS:\"View BGP Details\",TM:\"TM\",TM_APPROVED:\"TM Approved\",ACTIVE:\"Active\",INACTIVE:\"InActive\",UPLOAD_ANNUAL_TURNOVER:\"Upload Annual Turnover\",RETAILERS_TOUCHBASED:\"Retailers Touchbased\",MAPPED_RETAILERS:\"Mapped Retailers\",OUT_OF:\"Out of\",NUMBER:\"Number\",SAVED:\"Saved\",UPDATED:\"Updated\",YEAR_TEXT:\"Year\",ENABLE_EVENTS_BASELINING:\"Enable Events Baselining\",ENABLE_EVENTS:\"Enable Events\",ENABLE_IMAGE_UPLOAD:\"Enable Image Upload\",REQUEST_ID:\"Request ID\",MATERIAL_NAME:\"Material Name\",MATERIAL_CODE:\"Material Code\",COURIER_THROUGH:\"Courier Through\",COURIER_TRACKING_ID:\"Courier Tracking ID\",EXPECTED_DISPATCHED_DATE:\"Expected Dispatched Date\",EXPECTED_DELIVERY_DATE:\"Expected Delivery Date\",DISTRIBUTOR:\"Distributor\",MATERIAL:\"Material\",UPLOAD_TRACKING_DETAILS:\"Upload Tracking Details\",CREATED:\"Created\",DISPATCHED:\"Dispatched\",DMHQ_NAME:\"DMHQ Name\",MAXIMUM_BASELINE:\"Max Baseline\",AVG_GROWERS_PER_EVENT:\"Avg No. of Growers per Event\",NO_IMAGE_UPLOADED:\"No image uploaded\",GEO_LOCATION:\"Geo Location\",HISTORY:\"History\",DOCUMENTS:\"Documents\",LOWER_DOCUMENTS:\"documents\",EXPIRY_DATE:\"Expiry Date\",WHOLESALE_PERCENTAGE_OF_SALES:\"Total Wholesale Percentage (%) of Syngenta sales\",RETAILER_PERCENTAGE_OF_SALES:\"Total Retailer Percentage (%) of Syngenta sales\",SCANS_LIQUIDATION:\"SCANS & LIQUIDATION\",SHARE_OF_WALLET:\"Share of Wallet\",HQ_HIERARCHY_LABEL:\"HQ Hierarchy\",EDIT_ATTENDANCE:\"Edit Attendance\",FINAL_APPROVED:\"Final Approved\",FINAL_APPROVAL:\"Final Approval\",DOWNLOAD_LIQUIDATIONS:\"Download Liquidation Targets / Actuals Report\",DOWNLOAD_EVENT_ACTUALS:\"Download Event Actuals\",ADD_BASELINE_CONFIGURATION:\"Add Baseline Configuration\",DOWNLOAD_EVENT_TARGETS:\"Download Event Targets\",DOWNLOAD_LIQUIDATION_TARGET:\"Download Liquidation Target/Actuals\",REPLACE:\"Replace\",EDIT_DETAILS:\"Edit Details\",UPLOAD_PLAN:\"Upload Plan\",ADD_TARGET:\"Add Target\",APPROVE_REQUEST:\"Approve Request\",UPLOAD_FILE_TEXT:\"Upload File\",UPLOAD_TEXT:\"Upload\",DEACTIVATE:\"Deactivate\",ACTIVATE:\"Activate\",REJECT:\"Reject\",APPROVE:\"Approve\",SEARCH_BY_FIELDS:\"Search By First Name, Last Name, Phone Number\",SEARCH_BY_FIELDS_NAME:\"Search By Shop Name, Owner Name\",SEARCH_BY_CONFIGURATIONS:\"Search by Year / Configuration Name\",SEARCH_BY_HQ_NAME:\"Search by HQ Name Or User Name\",SEARCH_BY_BRANDNAME:\"Search by HQ Name Or Brand Name\",KYC_SEARCH:\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\",ORPHAN_SEARCH:\"Search by Owner Name,Shop Name, Mobile, Taluka\",RETAILERS_SEARCH:\"Search by Headquarter / Owner Name / Shop Name / Mobile No\",MDOS_SEARCH:\"Search By First Name, Last Name, Phone Number\",USERS_SEARCH:\"Search By Name\",DISTRIBUTORS_SEARCH:\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\",GEO_DATA_SEARCH:\"Search By Name\",HEAD_QUARTER_SEARCH:\"Search By HQ Name\",APPROVED_SUCCESSFULLY:\"Approved successfully\",MDO_ATTENDANCE_UPDATED_SUCCESSFULLY:\"MDO Attendance updated successfully\",DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY:\"Demo Tracking Configurations saved successfully\",LIQUIDATION_SAVED_SUCCESS:\"Liquidation Configurations are saved successfully.\",SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY:\"Share of Wallet Configuration created successfully\",SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY:\"Share of Wallet Configuration updated successfully\",EVENT_UPDATED_SUCCESS:\"Event planning details updated successfully.\",EVENT_DELETED_SUCCESS:\"Event planning details deleted successfully.\",FILE_UPLOADED_SUCCESSFULLY:\"File Uploaded Successfully\",RETAILERS_BRANDS_ADDED:\"Retailers brands are added successfully\",RETAILERS_BRANDS_UPDATED:\"Retailers brands are updated successfully\",RETAILER_ACTIVATED_SUCCESSFULLY:\"Retailer was activated successfully\",RETAILER_DEACTIVATED_SUCCESSFULLY:\"Retailer was deactivated successfully\",RETAILER_DETAILS_APPROVED_SUCCESSFULLY:\"Retailer details approved successfully\",SHARE_OF_WALLET_DATA:\"Retailer Share of Wallet data\",SUCCESSFULLY:\"Successfully\",PERMISSIONS_UPDATED:\"Permissions Updated Successfully\",PERMISSIONS_SAVED:\"Permissions Saved Successfully\",DISTRIBUTORS_SAVED:\"Selected Distributors saved successfully\",WEEK_OF_DAYS_API_FAILED:\"Unable to fetch weekoff days\",PRESENT_LIST_API_FAILED:\"Unable to fetch present attendance list\",ATTENDANCE_LIST_API_FAILED:\"Failed to get Week Off/ Holiday and attendance list\",SAVE_GROWER:\"SAVE GROWERS API FAILED\",LIQUIDATION_SAVED_FAILED:\"Unable to save the configurartion\",LIQUIDATION_GET_FAILED:\"Unable to fetch configured Liquidation Targets Data\",FAILED_UPDATE:\"Failed to update\",NO_UPLOADS_LIST_DATA:\"No Uploads List Data available\",NO_ERROR_LOG_LIST_DATA:\"No ErrorLog List Data available\",SALES_HIERARCHY_API_FAILED:\"Unable to fetch sales hierarchy information\",NO_ATTENDANCE_DATA:\"No Attendance Approver Data available\",NO_PORTFOLIO_LIST:\"No portfolio list\",INCLUDE_ADMIN_CONFIGURATION:\"Please include the admin configuration\",ADMIN_ATTENDANCE_DATA_API_FAILED:\"Unable to fetch Admin Attendance Data\",DEMO_TRACKING_CONFIGURATIONS:\"Failed to Save Demo Tracking Configurations\",HIERARCHY_ROLE_API_FAILED:\"Unable to fetch sales Hierarchy role\",SAVE_EVENT_TARGET_FAILED:\"Unable to save the EventTarget Data\",GET_SALES_HIERARCHY_FAILED:\"Failed to get Sales Hierarchy\",GET_SALES_FAILED:\"Failed to get Selected Sales\",UNABLE_TO_SAVE:\"Unable to save the Data\",NO_DATA_RECEIVED_FROM_SERVER:\"No data received from the server.\",DOWNLOAD_FAILED:\"Download Template failed\",DOWNLOAD_MDO_FAILED:\"Download MDO failed\",UPLOAD_LIQUIDATION_ERROR:\"Unable to fetch Upload Liquidation Year Data\",NO_BRANDS_AVAILABLE:\"No Brand List Data available\",DATA_NOT_AVAILABLE:\"Data Not Available\",DMHQ_DATA_NOT_AVAILABLE:\"DMHQ data not available\",EVENT_MASTER_TYPES_NOT_AVAILABLE:\"Event Master types data not available\",PORTFOLIOS_NOT_AVAILABLE:\"Portfolio data not available\",EVENT_TYPES_DATA_NOT_AVAILABLE:\"Event types data not available\",ROLES_DATA_NOT_AVAILABLE:\"Roles data not available\",NO_BASELINE_CONFIG_DATA_AVAILABLE:\"No baseline config data available\",NO_BASELINE_DATA_AVAILABLE:\"No baseline Data available\",BASELINE_DELETE_API_FAILED:\"Baseline delete api failed\",NO_DATA_FOUND:\"No Data Found\",NO_UPLOADED_DOCUMENTS:\"No Uploaded Documents\",NO_ERRORLOGS:\"No ErrorLogs\",UPLOAD_LIQUIDATION_HQ_DATA_FAILED:\"Unable to fetch Upload Liquidation HQ Data\",UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED:\"Unable to fetch Upload Liquidation Portfolio's Data\",UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED:\"Unable to fetch Upload Liquidation NNRHQ's Data\",NO_LIQUIDATION_DATA_AVAILABLE:\"No Liquidation Data available\",NO_LIST_AVAILABLE:\"No List Data available\",NO_FILTER_LIST_AVAILABLE:\"No Filter List Data available\",HOLIDAY_UPLOAD_FAILED:\"HolidayTemplate upload failed.\",ERROR_IN_HOLIDAYTEMPLATE:\"Error in uploading HolidayTemplate\",SUM_OF_WHOLESALE:\"The sum of Total Wholesale and Total Retailer fields must be 100\",NO_KYC_DATA_AVAILABLE:\"No KYC Data available\",UNABLE_TO_UPDATE:\"Unable to update\",NO_DATA_AVAILABLE:\"No Data available\",FAILED_TO_FETCH_RETAILER_PERFORMANCE:\"Failed to fetch retailer performance\",RETAILER_NOT_DEACTIVATED:\"Retailer is not deactivated. Please try again later\",RETAILER_NOT_ACTIVATED:\"Retailer is not activated. Please try again later\",UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET:\"Unable to save the Retailer Share of Wallet\",NO_DISTRIBUTORS:\"No Distributors Data available\",ADD_GEOHIERARCHY_FAILED:\"ADD GEOHIERARCHY API FAILED\",GEOHIERARCHY_DATA_FAILED:\"FETCH GEOHIERARCHY DATA API FAILED\",Update_GEOHIERARCHY_FAILED:\"Update GEOHIERARCHY API FAILED\",SELECT_LEAVE_TYPE:\"Please select an Leave Type\",SELECT_EVENT:\"Please select an Activity / Event\",SELECT_COMMENT:\"Please select a Comment\",ROLE_SELECT:\"Please select role.\",APPROVER_REQUIRED:\"Attendance Approver Required\",APPROVAL_DURATION_REQUIRED:\"Approval Duration Required\",APPROVAL_START_DATE_REQUIRED:\"Approval Start Date Required\",MONTHS_REQUIRED:\"No Of Months Required\",START_DATE_REQUIRED:\"startDate Required\",END_DATE_REQUIRED:\"endDate Required\",NO_OF_DAYS_REQUIRED:\"noOfDays Required\",BACKWARD_DAYS_REQUIRED:\"backwardDays Required\",FORWARDDAYS_REQUIRED:\"forwardDays Required\",AT_LEAST_1_DAY:\"Week Off Day must have at least 1 day\",WEEK_DAY_REQUIRED:\"No Of WeekOffDay Required\",TOTAL_ANNUAL_LEAVES_COUNT:\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\",SELECT_TEMPLATE:\"Please select a template to proceed.\",FREQUENCY_SHOULD_NOT_BE_ZERO:\"frequency should not be zero or less than zero\",FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS:\"frequency should not be more than 3 digits\",REQ_CONFIGURATION_NAME:\"Configuration Name is Required\",REQ_START:\"Start Date is Required\",REQ_END:\"End Date is Required\",REQ_TMHQ:\"TM HQ is required\",VALID_EMAIL:\"Enter a valid email id\",REQ_EMAIL:\"Email id is required\",VALID_URL:\"Please enter a valid URL\",REQ_URL:\"URL is required\",REQ_HELPLINE:\"Helpline support message required\",REQ_RELEASE_NOTES:\"Release notes is required\",REQ_DOC:\"document is required\",REQ_IMAGES:\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\",REQ_COMMENTS:\"Comments are required for Rejection\",SELECT_ONE_DISTRIBUTOR:\"Please select atleast one distributor\",CHOOSE_ATTENDANCE_TYPE:\"Choose Attendance Type\",ATTENDANCE_APPROVAL_ENABLE:\"Enable or Disable Attendance Approval\",SELECT_PAYCYCLE_START_DATE:\"Select paycycle start date\",NOOF_PREVIOUS_MONTHS:\"No. of Previous months User can View Events Summary.\",NOOF_PREVIOUS_DAYS:\"No. of Previous days User can View events created.\",NOOF_PREVIOUS_DAYS_UPDATE_EVENT:\"No. of previous days User can Update an Event\",NOOF_PREVIOUS_DAYS_CREATE_EVENT:\"No. of previous days User can create an Event .\",NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH:\"No. of days from current month start User can Update the Target.\",NOOF_DAYS_UPLOAD_CURRENT_MONTH:\"No. of days from current month start User can Upload the Target.\",MANAGE_EVENT_TARGETS_CLOSED:\"Manage Event Targets window has been closed. Please contact your Country Admin.\",LIST_OF_RETAILERS:\"List of Retailers\",MY_UPLOADS:\"My Uploads\",EVENT_TARGETS:\"Event Targets\",BASIC_CONFIGURATION:\"Basic Configuration\",APPROVER_CONFIGURATION:\"Approver Configuration\",LEAVES_CONFIGURATION:\"Leaves/Comp-off Configuration\",EVENT_TARGET:\"Event Target\",DISCUSSION_BOARD:\"Leaderboard/Discussion Board\",TARGET_DETAILS:\"Target/Actuals Details\",PUBLISH_EVENTS_TYPES:\"Publish forms based upon event types\",PUBLISH_GROWERS:\"Publish forms by selecting basic and advanced details\",PUBLISH_RETAILERS:\"Publish forms by selecting Basic and Advanced fields\",MIN:\"Min\",MAX:\"Max\",WARNING_MESSAGE:\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\",EVENTS:\"Events\",GROWERS:\"Growers\",RETAILERS:\"Retailers\",DEMO_TRACKING:\"Demo Tracking\",GEO:\"Geo\",DEMO_TRACKING_SUCCESS:\"Demo Tracking Configurations saved successfully\",DEMO_TRACKING_FAILED:\"Failed to Save Demo Tracking Configurations\",PLACEHOLDER_MIN:\"Enter minimum value\",PLACEHOLDER_MAX:\"Enter maximum value\",MIN_GREATER_THAN_MAX:\"Min is greater than Max\",MAX_LESSER_THAN_MIN:\"Max is lesser than Min\",TMHQ_NAME:\"TMHQ Name\",MDOHQ_ENDDATE:\"MDO HQ End Date\",MONTH_LABEL:\"Month\",TARGET_HEADER:\"Target\",AVG_GROWERS:\"Avg No. of Growers\",RETAILER_SEGMENT:\"Retailer Segment\",MOBILE_NO:\"Mobile No.\",APPROVAL_STATUS:\"Approval Status\",VERIFICATION_STATUS:\"Verification Status\",SOHQ_NAME:\"SOHQ Name\",PROVINCE:\"Province\",NOTIFICATION_REASON:\"Notification Reason\",FILE_NAME:\"File Name\",UPLOADED_ON:\"Uploaded On\",UPLOADED_FOR:\"Uploaded For\",PROCESSED_ON:\"Processed On\",ERROR:\"Error\",FAILURE_REASON:\"Failure Reason\",ROW_NUMBER:\"Row Number\",LINE:\"Line\",DATE_TIME:\"Date & Time\",EVENT_MASTER_TYPE:\"Event Master Type\",CONFIG_TYPE:\"Config Type\",HASH_GROWERS:\"#Growers\",HASH_RETAILERS:\"#Retailers\",ROLE_NAME:\"Role Name\",DISTRIBUTOR_CODE:\"Distributor Code\",DISTRIBUTOR_NAME:\"Distributor Name\",CP_CODE:\"CP Code\",SEEDS_CODE:\"Seeds Code\",PMIN_PACKETS:\"PMIN No.of packets\",DISPATCHED_PACKETS:\"Dispatched No.of packets\",PMIN_DISTRIBUTOR_CODE:\"PMIN Distributor Code\",SAKSHAM_DISTRIBUTOR_CODE:\"Saksham Distributor Code\",PLANNED_VALUE_IN_LAKHS:\"Planned Value (In Lakhs)\",ACTUAL_VALUE_LABEL:\"Actual Value(in Lakhs)\",ACHIEVEMENT:\"%Achievement(Value)\",GROWER_NAME:\"Grower Name\",NO_OF_PACKETS:\"No.of Packets\",ACTUAL_VOLUME_IN_KG:\"Actual Volume (in Kg/Lt)\",LIQUIDATION_PERCENTAGE:\"% Liquidation (volume)\",UPDATED_BY:\"Updated by\"};function fe(e){return fe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},fe(e)}function ge(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=fe(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==fe(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he,me=(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce={EDIT:\"Edit\",CANCEL:\"Cancel\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",ENTER_NUMBERS:\"Please enter only numbers\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be atleast 2 characters\",COST_CENTER_MAX:\"Cost Center should be a max of 6 characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_NAME_HERADER:\"Geo Data Name\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",GEODATA_DETAILS:\"Geo Data Details\",ADD_GEO_DATA:\"Add Geo Data\",ADD_MDO:\"Add FP/SC\",EDIT_MDO:\"Edit FP/SC\",MDO_STARTDATE:\"FP/SC Start Date\",MDO_ENDDATE:\"FP/SC End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select FP/SC HQ\",MDO_HQ_ALLOCATION:\"FP/SC HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add FP/SC Head Quarters\",TM_HQ:\"TM HQ*\",MDO_HQ_NAME:\"FP/SC HQ Name*\",ENTER_MDO_NAME:\"Enter FP/SC HQ Name\",MDO_HQ_START_DATE:\"FP/SC HQ Start Date*\",MDO:\"FP/SC*\",ADD_MDO_HQ_BUTTON:\"ADD_MDO_HQ\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",MAIL_PLACEHOLDER:\"Enter Email\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",EMAIL_USER:\"Email *\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",HQ_NAME_TARGET:\"HQ Name\",RETAILER:\"Retailer\",RETAILER_SEGMENT:\"Retailer Segment\",SELECT_RETAILER:\"Select Retailer\",SELECT_RETAILER_SEGMENT:\"Retailer Segment\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"FP/SC HQ\"},\"TM_HQ\",\"TM HQ\"),\"UPLOAD_RETAILER\",\"Upload Retailer\"),\"SELECT_HQ_NAME\",\"Select HQ Name\"),\"HQ_NAMED\",\"HQ Name*\"),\"DOWNLOAD_TEMEPLATE\",\"Download the sample template\"),\"UPLOAD_FILE\",\"Upload the file after filling up the data in sample template\"),\"KNOW_MORE\",\"Know More\"),\"COMPLETED\",\"Completed\"),\"FAILED\",\"Failed\"),\"INPROGRESS\",\"In Progress\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"FILE_UPLOAD_ERROR\",\"Error found in uploaded file\"),\"ERROR_DESCRIPTION\",\"Please fix the error(s) listed below and upload the file again\"),\"REUPLOAD_TEXT\",\"Please rectify the erroneous data in the file and re-upload\"),\"DOWNLOAD\",\"Download\"),\"UPLOAD_RETAILERS\",\"Upload Retailer\"),\"CHANGE_MOBILE_NUMBER\",\"Change Mobile Number\"),\"EXISTING_MOBILE_NUMBER\",\"Existing Mobile Number\"),\"NEW_MOBILE_NUMBER\",\"New Mobile Number\"),\"ENTER_NUMBER\",\"Enter Number\"),\"ENTER_VERIFICATION_CODE\",\"Enter Verification Code\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"RESEND_OTP\",\"Send Verification Code\"),\"VERIFY\",\"Verify\"),\"PARTIAL_SUCCESS\",\"Partial Success\"),\"PERFORMANCE\",\"PERFORMANCE\"),\"OWNERNAME\",\"Owner Name\"),\"SHOPNAME\",\"Shop Name\"),\"MOBILENO\",\"Mobile Number\"),\"NOOFVISITS\",\"No.of Visits\"),\"ANNUAL_RETAILER_PLAN\",\"Annual Retailer Plan\"),\"TOTAL_ORDER_VALUE\",\"Total Order Value\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"TOTAL_COLLECTION\",\"Total Collection\"),\"TOTAL_LIQUIDATION\",\"Total Liquidation\"),\"TOTAL_PLACEMENT\",\"Total Placement\"),\"ORDER_DEFICIT\",\"Order Deficit\"),\"INVENTORY\",\"Inventory\"),\"EVENT_TYPES\",\"Event Type\"),\"EVENT_STATUS\",\"Event Status\"),\"PUBLISH_SIDE_HEADER\",\"Publish forms based upon event types\"),\"PUBLISH_SIDE_HEADER_PRODUCT\",\"Publish forms based upon product demo types\"),\"PRODUCT_DEMO_TYPES\",\"Product Demo Type\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"USER_ROLE_DROPDOWN_LABEL\",\"User Role\"),\"SALES_HIERARCHY_DROPDOWN_LABEL\",\"Sales Hierarchy\"),\"CONFIGURATIONS\",\"Configurations\"),\"UPLOAD_EVENT_TARGET_DAYS\",\"Upload Event Target (Days)\"),\"MANAGE_EVENT_TARGET\",\"Manage Event Target (Days)\"),\"ADD_EVENT_DAYS\",\"Add Event (Days)\"),\"MANAGE_EVENT_DAYS\",\"Manage Event (Days)\"),\"VIEW_EVENT_HISTORY\",\"View Event History (Months)\"),\"VIEW_EVENT_DAYS\",\"View Event (Days)\"),\"ATTENDANCE_TYPE\",\"Attendance Type\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ENABLE_APPROVAL\",\"Enable Attendance Approval\"),\"WIP\",\"WIP\"),\"CONFIRMATION_TEXT\",\"Are you sure, you want to discard the changes?\"),\"EVENT_BASELINE_TYPE\",\"Events Baseline Type\"),\"SELECT_ATTENDANCE_MARKER\",\"Select Attendance Marker\"),\"VISIT_TYPE\",\"Visit Type\"),\"AUTO_SYNC\",\"Auto Sync\"),\"AUTO_SYNC_PLACEHOLDER\",\"Enter Frequency\"),\"ISSUE_SCREEN_MESSAGE\",\"Sorry, we have run into an issue\"),\"UPLOAD_EVENT_TARGET\",\"Upload Event Target\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"FILL_DETAILS\",\"Fill up the details\"),\"TARGET_LABEL\",\"Target For*\"),\"YEAR\",\"Year*\"),\"MONTH\",\"Month*\"),\"DMHQ\",\"DMHQ\"),\"DOWNLOAD_TEMPLATE\",\"Download the sample template\"),\"UPLOAD_DATA_SAMPLE\",\"Upload the file after filling up the data in sample template\"),\"CONFIGURATION_TYPE\",\"Configuration Type*\"),\"EDIT_EVENT_TARGET\",\"Edit Event Target\"),\"TARGET\",\"Target*\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"AVG_NO_OF_GROWERS_PER_EVENT\",\"Avg No Growers per Event\"),\"HELP_DESCRIPTION\",\"Help Description\"),\"FAQS\",\"FAQs\"),\"NO_DATA\",\"No Data to Show\"),\"SELECT_ATTENDANCE_APPROVER\",\"Select Attendance Approver\"),\"SELECT_APPROVER\",\"Select Approver\"),\"PAYCYCLE_APPROVAL_CONF\",\"Paycycle Approval Configuration\"),\"APPROVAL_DURATION\",\"Approval Duration\"),\"SELECT_DURATION\",\"Select Duration\"),\"APPROVAL_STARTDATE\",\"Approval Start Date\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"SELECT_STARTDATE\",\"Select Start Date\"),\"VIEW_ATTENDANCE_HISTORY\",\"View Attendance History\"),\"NO_OF_MONTHS\",\"No. of Months\"),\"SELECT_NO_OF_MONTHS\",\"Select No. Of Months\"),\"SELECT_MARKER\",\"Select Marker\"),\"SELECT_MARKER_LABEL\",\"Select Attendance Marker\"),\"DOWNLOAD_HOLIDAYS_LIST\",\"Download Holidays List\"),\"DOWNLOAD_DISTRIBUTOR_LIST\",\"Download Distributor List\"),\"TEMPLATE\",\"Template\"),\"UPLOAD_FAILED\",\"Upload Failed\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"CLICK_KNOW_MORE\",\"Click to Know more\"),\"PAYCYCLE_CONFIG\",\"Paycycle Configuration\"),\"NO_OF_DAYS\",\"No.of Days\"),\"BACK_WARD_DAYS\",\"Backward (Days)\"),\"FORWARD_DAYS\",\"Forward (Days)\"),\"WEEKLY_OFF\",\"Weekly Off\"),\"SELECT_DAY\",\"Select Day\"),\"EVENT_BASED_ATTENDANCE\",\"Event Based Attendance\"),\"PAST_ATTENDANCE_DAYS\",\"Past Attendance Days\"),\"LEAVE_DURATION\",\"Leave Duration\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ATLEASET_SELECT_ONE\",\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\"),\"SELECT_SALESHIER_ROLE\",\"Select Sales Hierarchy HQ\"),\"TARGET_TYPE\",\"Target Type\"),\"SELECT_TYPE\",\"Select Type\"),\"YEARLY\",\"Yearly\"),\"TARGETs_UPLOAD_DURATION\",\"Targets Upload Duration\"),\"ACTUALS_UPLOAD_DURATION\",\"Actuals Upload Duration\"),\"SET_NNR_VALUE\",\"Set NNR Value at\"),\"NO_DATA_MSG\",\"No HQ History Found\"),\"ADD_BASELINE\",\"Add Event Baseline\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"EDIT_BASELINE\",\"Edit Event Baseline\"),\"SELECT_DMHQ\",\"Select Head Quarter\"),\"SELECT_EVENT_MASTER_TYPE\",\"Select Event Master Type\"),\"SELECT_EVENT_TYPE\",\"Select Event type\"),\"SELECT_ROLE_TYPE\",\"Select role\"),\"SELECT_CONFIG_TYPE\",\"Select Configuration Type\"),\"SELECT_YEAR\",\"Select Year\"),\"SELECT_MONTH\",\"Select Month\"),\"BASELINE_VALUE\",\"Base Line Value\"),\"SELECT_MAX_BASELINE\",\"Select Max Baseline\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"NO_OF_RETAILERS\",\"No. of Retailers\"),\"NO_OF_GROWERS\",\"No. of Growers\"),\"SAVE_MESSAGE\",\"Baseline Configuration Saved Successfully\"),\"UPDATE_MESSAGE\",\"Baseline Configuration Updated Successfully\"),\"APPROVER_SAVE_TOAST_MESSAGE\",\"Attendance Approver Configuration has been saved successfully for selected role\"),\"REQ_DM_HQ_NAME\",\"DMHQ Name is required\"),\"REQ_EVENT_MASTER_TYPE\",\"Event Master Type is required\"),\"REQ_EVENT_TYPE\",\"Event Type is required\"),\"REQ_CONFIGURATION_TYPE\",\"Configuration Type is required\"),\"REQ_YEAR\",\"Year is required\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"REQ_MONTH\",\"Month is required\"),\"REQ_ROLE\",\"Role is required\"),\"MIN_BASELINE\",\"Baseline Value should be atleast 1\"),\"MAX_BASELINE\",\"Baseline value can be max of 999\"),\"REQ_BASELINE\",\"Baseline value is required\"),\"MIN_GROWERS\",\"No. Of Growers should be atleast 1\"),\"MAX_GROWERS\",\"No. Of Growers can be max of 9999\"),\"REQ_GROWERS\",\"No. Of Growers is required\"),\"MIN_RETAILERS\",\"No. Of Retailers should be atleast 1\"),\"MAX_RETAILERS\",\"No. Of Retailers can be max of 999\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"REQ_RETAILERS\",\"No. Of Retailers is required\"),\"REQ_MAX_BASELINE\",\"Max Baseline is required\"),\"TM_HQ_LABEL\",\"TM HQ\"),\"MDO_HQ_LABEL\",\"MDO HQ\"),\"YEAR_LABEL\",\"Year\"),\"TOTAL_TARGET_VOLUME\",\"Total Target Volume(In Kg/Lt)\"),\"TOTAL_TARGET_VALUE\",\"Total Target Value(In Lakhs)\"),\"TOTAL_ACTUAL_VOLUMES\",\"Total Actual Volume(In Kg/Lt)\"),\"TOTAL_ACTUAL_VALUE\",\"Total Actual Value(In Lakhs)\"),\"UPLOAD_TARGETS\",\"Upload Targets\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"UPLOAD_ACTUALS\",\"Upload Actuals\"),\"UPLOAD_LIQUIDATION_TARGET\",\"Upload Liquidation Targets\"),\"LIQUIDATION_TARGET\",\"Liquidation Target\"),\"LIQUIDATION_ACTUALS\",\"Liquidation Actuals\"),\"TMHQS\",\"TM HQ\"),\"SELECT_TMHQ\",\"Select TM HQ\"),\"UPLOAD_COMPLETED_TEMPLATE\",\"Upload the completed template\"),\"SELECT_STATUS\",\"Select Status\"),\"UPLOAD_LIQUIDATION_ACTUALS\",\"Upload Liquidation Actuals\"),\"DMHQS\",\"DMHQ's\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"DOWNLOAD_REPORT\",\"Download Report\"),\"DOWNLOAD_TEMPLATE_TARGETS\",\"Download template to Add/Modify Targets\"),\"DOWNLOAD_TEMPLATE_ACTUALS\",\"Download template to Add/Modify Actuals\"),\"NNRHQS\",\"NNR HQ\"),\"SUCCESS_TOAST_MSG\",\"Please wait while we process the uploaded file. Check the status in 'My uploads' section in a few moments\"),\"FAILURE_TOAST_MSG\",\"File upload failed\"),\"VALID_FILE_ERROR\",\"Please upload valid template file\"),\"UPLOAD_CONDITION_TEXT\",\"Please upload downloaded template file\"),\"TARGET_STATUS\",\"Target Status\"),\"UPLOAD_DEMO_DISPATCH\",\"Upload Demo Courier Details\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"SELECT_TMHQS\",\"Select the TMHQ's\"),\"SELECT\",\"Select\"),\"DISTRIBUTORS_MAPPED\",\"Distributors Mapped:\"),\"SELECT_DISTRIBUTORS\",\"Select Distributors\"),\"LIST_AVAILABLE_DISTRIBUTORS\",\"List of Available Distributors\"),\"SELECT_TM_HQ\",\"Select TMHQ\"),\"IS_STARTING_DIGIT\",\"is-starting-digit-valid\"),\"MOBILE_NUMBER_START\",\"Mobile number should start with 5, 6, 7, 8, or 9\"),\"NO_SP_CHARACTERS\",\"no-special-characters\"),\"ZIP_REQUIRED\",\"Zip Code is required\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ZIP_CODE_VALIDATION\",\"Zip should not contain special characters or alphabets\"),\"ZIP_CODE_MIN_MAX_VALUE\",\"Zip Code must be minimum 1 and maximum 6 digits\"),\"ZIP_CODE_START\",\"Zip Code should not start with 0\"),\"NOT_MARKED\",\"Not Marked\"),\"ABSENT\",\"Absent\"),\"APPLIED_LEAVES\",\"Applied Leaves\"),\"LEAVE\",\"Leave\"),\"SEARCH_BY_NAMES\",\"Search by TM Name / Distributor / Crop / Status\"),\"APPROVALS\",\"Approvals\"),\"ATTENDANCE\",\"Attendance\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"PRESENT\",\"Present\"),\"SELECT_LEAVE\",\"Select Leave Type\"),\"SELECT_ACTIVITY\",\"Select Activity/Event\"),\"COMMENTS\",\"Comments\"),\"SELECT_DATE_TO_EDIT\",\"Please select any date to edit the attendance\"),\"TOTAL_TMS\",\"Total TMs\"),\"APPROVED\",\"Approved\"),\"PENDING\",\"Pending\"),\"MANPOWER_REPORT\",\"Manpower Report\"),\"ATTENDANCE_APPROVAL\",\"Attendance Approval\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"FINAL_APPROVAL_CONFIRMATION\",\"Are you sure you want to Final Approve the attendance?\"),\"FINAL_APPROVED_SUCCESSFULLY\",\" Attendance Final Approved Successfully\"),\"CHOOSE_EVENT_BASELINE_TYPE\",\"Choose Event Baseline Type\"),\"TEMPLATES\",\"Templates\"),\"EDITABLE\",\"Editable\"),\"KEEP_MANDATORY\",\"Keep Mandatory\"),\"FEATURES\",\"Features\"),\"UPDATE_RETAILER_SOW_CONFIGURATION\",\"Update Retailer SOW Configuration -\"),\"ADD_RETAILER_SOW_CONFIGURATION\",\"Add Retailer SOW Configuration\"),\"GROWERS_ATTENDED\",\"Growers Attended\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"CONFIGURATION_DELETE_CONFIRMATION\",\"Are you sure, You want to delete this Baseline Configuration?\"),\"BACK_TO\",\"Back to\"),\"SEARCH_BY\",\"Search by\"),\"TARGETS_ARE_NOT_UPLOADED\",\"Targets are not uploaded for any brands in this BU.\"),\"NO_MATCHING_RECORDS\",\"No Matching Records.\"),\"FILE_UPLOADED\",\"File Uploaded\"),\"HOLIDAY_UPLOAD\",\"Holiday Upload\"),\"DISTRIBUTOR_UPLOAD\",\"Distributor Upload\"),\"GST_DOCUMENT\",\"GST Document\"),\"KYC_VERIFIED\",\"KYC Verified\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"TOTAL_WHOLESALE_PERCENTAGE\",\"Total Wholesale Percentage (%)\"),\"TOTAL_RETAILER_PERCENTAGE\",\"Total Retailer Percentage (%)\"),\"UPPERCASE_RETAILER_DETAILS\",\"RETAILER DETAILS\"),\"TYPING_HERE\",\"Start Typing here...\"),\"NOT_VERIFIED\",\"Not Verified\"),\"VIEW_DETAILS\",\"View Details\"),\"PLANNED_VALUE\",\"Planned Value\"),\"ACTUAL_VALUE\",\"Actual Value\"),\"ADD_BRAND_TARGET\",\"Add Brand Target\"),\"ENTER_SHOP_NAME\",\"Enter Shop Name\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"PLANNED_VOLUME\",\"Planned Volume\"),\"ENTER_PLANNED_VOLUME\",\"Enter Planned Volume\"),\"UPLOAD_BRAND_TARGET\",\"Upload Brand Target\"),\"UPDATE_BY_RETAILER\",\"Update by Retailer\"),\"REVIEW_BGP_DETAILS\",\"Review BGP Details\"),\"VIEW_BGP_DETAILS\",\"View BGP Details\"),\"TM\",\"TM\"),\"TM_APPROVED\",\"TM Approved\"),\"ACTIVE\",\"Active\"),\"INACTIVE\",\"InActive\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"UPLOAD_ANNUAL_TURNOVER\",\"Upload Annual Turnover\"),\"RETAILERS_TOUCHBASED\",\"Retailers Touchbased\"),\"MAPPED_RETAILERS\",\"Mapped Retailers\"),\"OUT_OF\",\"Out of\"),\"NUMBER\",\"Number\"),\"SAVED\",\"Saved\"),\"UPDATED\",\"Updated\"),\"YEAR_TEXT\",\"Year\"),\"ENABLE_EVENTS_BASELINING\",\"Enable Events Baselining\"),\"ENABLE_EVENTS\",\"Enable Events\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ENABLE_IMAGE_UPLOAD\",\"Enable Image Upload\"),\"REQUEST_ID\",\"Request ID\"),\"MATERIAL_NAME\",\"Material Name\"),\"MATERIAL_CODE\",\"Material Code\"),\"COURIER_THROUGH\",\"Courier Through\"),\"COURIER_TRACKING_ID\",\"Courier Tracking ID\"),\"EXPECTED_DISPATCHED_DATE\",\"Expected Dispatched Date\"),\"EXPECTED_DELIVERY_DATE\",\"Expected Delivery Date\"),\"DISTRIBUTOR\",\"Distributor\"),\"MATERIAL\",\"Material\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"UPLOAD_TRACKING_DETAILS\",\"Upload Tracking Details\"),\"CREATED\",\"Created\"),\"DISPATCHED\",\"Dispatched\"),\"DMHQ_NAME\",\"DMHQ Name\"),\"MAXIMUM_BASELINE\",\"Max Baseline\"),\"AVG_GROWERS_PER_EVENT\",\"Avg No. of Growers per Event\"),\"NO_IMAGE_UPLOADED\",\"No image uploaded\"),\"GEO_LOCATION\",\"Geo Location\"),\"HISTORY\",\"History\"),\"DOCUMENTS\",\"Documents\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"LOWER_DOCUMENTS\",\"documents\"),\"EXPIRY_DATE\",\"Expiry Date\"),\"WHOLESALE_PERCENTAGE_OF_SALES\",\"Total Wholesale Percentage (%) of Syngenta sales\"),\"RETAILER_PERCENTAGE_OF_SALES\",\"Total Retailer Percentage (%) of Syngenta sales\"),\"SCANS_LIQUIDATION\",\"SCANS & LIQUIDATION\"),\"SHARE_OF_WALLET\",\"Share of Wallet\"),\"HQ_HIERARCHY_LABEL\",\"HQ Hierarchy\"),\"EDIT_ATTENDANCE\",\"Edit Attendance\"),\"FINAL_APPROVED\",\"Final Approved\"),\"FINAL_APPROVAL\",\"Final Approval\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"DOWNLOAD_LIQUIDATIONS\",\"Download Liquidation Targets / Actuals Report\"),\"DOWNLOAD_EVENT_ACTUALS\",\"Download Event Actuals\"),\"ADD_BASELINE_CONFIGURATION\",\"Add Baseline Configuration\"),\"DOWNLOAD_EVENT_TARGETS\",\"Download Event Targets\"),\"DOWNLOAD_LIQUIDATION_TARGET\",\"Download Liquidation Target/Actuals\"),\"REPLACE\",\"Replace\"),\"EDIT_DETAILS\",\"Edit Details\"),\"UPLOAD_PLAN\",\"Upload Plan\"),\"ADD_TARGET\",\"Add Target\"),\"APPROVE_REQUEST\",\"Approve Request\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"UPLOAD_FILE_TEXT\",\"Upload File\"),\"UPLOAD_TEXT\",\"Upload\"),\"DEACTIVATE\",\"Deactivate\"),\"ACTIVATE\",\"Activate\"),\"REJECT\",\"Reject\"),\"APPROVE\",\"Approve\"),\"SEARCH_BY_FIELDS\",\"Search By First Name, Last Name, Phone Number\"),\"SEARCH_BY_FIELDS_NAME\",\"Search By Shop Name, Owner Name\"),\"SEARCH_BY_CONFIGURATIONS\",\"Search by Year / Configuration Name\"),\"SEARCH_BY_HQ_NAME\",\"Search by HQ Name Or User Name\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"SEARCH_BY_BRANDNAME\",\"Search by HQ Name Or Brand Name\"),\"KYC_SEARCH\",\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\"),\"ORPHAN_SEARCH\",\"Search by Owner Name,Shop Name, Mobile, Taluka\"),\"RETAILERS_SEARCH\",\"Search by Headquarter / Owner Name / Shop Name / Mobile No\"),\"MDOS_SEARCH\",\"Search By First Name, Last Name, Phone Number\"),\"USERS_SEARCH\",\"Search By Name\"),\"DISTRIBUTORS_SEARCH\",\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\"),\"GEO_DATA_SEARCH\",\"Search By Name\"),\"HEAD_QUARTER_SEARCH\",\"Search By HQ Name\"),\"APPROVED_SUCCESSFULLY\",\"Approved successfully\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"MDO_ATTENDANCE_UPDATED_SUCCESSFULLY\",\"MDO Attendance updated successfully\"),\"DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY\",\"Demo Tracking Configurations saved successfully\"),\"LIQUIDATION_SAVED_SUCCESS\",\"Liquidation Configurations are saved successfully.\"),\"SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY\",\"Share of Wallet Configuration created successfully\"),\"SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY\",\"Share of Wallet Configuration updated successfully\"),\"EVENT_UPDATED_SUCCESS\",\"Event planning details updated successfully.\"),\"EVENT_DELETED_SUCCESS\",\"Event planning details deleted successfully.\"),\"FILE_UPLOADED_SUCCESSFULLY\",\"File Uploaded Successfully\"),\"RETAILERS_BRANDS_ADDED\",\"Retailers brands are added successfully\"),\"RETAILERS_BRANDS_UPDATED\",\"Retailers brands are updated successfully\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"RETAILER_ACTIVATED_SUCCESSFULLY\",\"Retailer was activated successfully\"),\"RETAILER_DEACTIVATED_SUCCESSFULLY\",\"Retailer was deactivated successfully\"),\"RETAILER_DETAILS_APPROVED_SUCCESSFULLY\",\"Retailer details approved successfully\"),\"SHARE_OF_WALLET_DATA\",\"Retailer Share of Wallet data\"),\"SUCCESSFULLY\",\"Successfully\"),\"PERMISSIONS_UPDATED\",\"Permissions Updated Successfully\"),\"PERMISSIONS_SAVED\",\"Permissions Saved Successfully\"),\"DISTRIBUTORS_SAVED\",\"Selected Distributors saved successfully\"),\"WEEK_OF_DAYS_API_FAILED\",\"Unable to fetch weekoff days\"),\"PRESENT_LIST_API_FAILED\",\"Unable to fetch present attendance list\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ATTENDANCE_LIST_API_FAILED\",\"Failed to get Week Off/ Holiday and attendance list\"),\"SAVE_GROWER\",\"SAVE GROWERS API FAILED\"),\"LIQUIDATION_SAVED_FAILED\",\"Unable to save the configurartion\"),\"LIQUIDATION_GET_FAILED\",\"Unable to fetch configured Liquidation Targets Data\"),\"FAILED_UPDATE\",\"Failed to update\"),\"NO_UPLOADS_LIST_DATA\",\"No Uploads List Data available\"),\"NO_ERROR_LOG_LIST_DATA\",\"No ErrorLog List Data available\"),\"SALES_HIERARCHY_API_FAILED\",\"Unable to fetch sales hierarchy information\"),\"NO_ATTENDANCE_DATA\",\"No Attendance Approver Data available\"),\"NO_PORTFOLIO_LIST\",\"No portfolio list\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"INCLUDE_ADMIN_CONFIGURATION\",\"Please include the admin configuration\"),\"ADMIN_ATTENDANCE_DATA_API_FAILED\",\"Unable to fetch Admin Attendance Data\"),\"DEMO_TRACKING_CONFIGURATIONS\",\"Failed to Save Demo Tracking Configurations\"),\"HIERARCHY_ROLE_API_FAILED\",\"Unable to fetch sales Hierarchy role\"),\"SAVE_EVENT_TARGET_FAILED\",\"Unable to save the EventTarget Data\"),\"GET_SALES_HIERARCHY_FAILED\",\"Failed to get Sales Hierarchy\"),\"GET_SALES_FAILED\",\"Failed to get Selected Sales\"),\"UNABLE_TO_SAVE\",\"Unable to save the Data\"),\"NO_DATA_RECEIVED_FROM_SERVER\",\"No data received from the server.\"),\"DOWNLOAD_FAILED\",\"Download Template failed\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"DOWNLOAD_MDO_FAILED\",\"Download MDO failed\"),\"UPLOAD_LIQUIDATION_ERROR\",\"Unable to fetch Upload Liquidation Year Data\"),\"NO_BRANDS_AVAILABLE\",\"No Brand List Data available\"),\"DATA_NOT_AVAILABLE\",\"Data Not Available\"),\"DMHQ_DATA_NOT_AVAILABLE\",\"DMHQ data not available\"),\"EVENT_MASTER_TYPES_NOT_AVAILABLE\",\"Event Master types data not available\"),\"PORTFOLIOS_NOT_AVAILABLE\",\"Portfolio data not available\"),\"EVENT_TYPES_DATA_NOT_AVAILABLE\",\"Event types data not available\"),\"ROLES_DATA_NOT_AVAILABLE\",\"Roles data not available\"),\"NO_BASELINE_CONFIG_DATA_AVAILABLE\",\"No baseline config data available\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"NO_BASELINE_DATA_AVAILABLE\",\"No baseline Data available\"),\"BASELINE_DELETE_API_FAILED\",\"Baseline delete api failed\"),\"NO_DATA_FOUND\",\"No Data Found\"),\"NO_UPLOADED_DOCUMENTS\",\"No Uploaded Documents\"),\"NO_ERRORLOGS\",\"No ErrorLogs\"),\"UPLOAD_LIQUIDATION_HQ_DATA_FAILED\",\"Unable to fetch Upload Liquidation HQ Data\"),\"UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED\",\"Unable to fetch Upload Liquidation Portfolio's Data\"),\"UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED\",\"Unable to fetch Upload Liquidation NNRHQ's Data\"),\"NO_LIQUIDATION_DATA_AVAILABLE\",\"No Liquidation Data available\"),\"NO_LIST_AVAILABLE\",\"No List Data available\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"NO_FILTER_LIST_AVAILABLE\",\"No Filter List Data available\"),\"HOLIDAY_UPLOAD_FAILED\",\"HolidayTemplate upload failed.\"),\"ERROR_IN_HOLIDAYTEMPLATE\",\"Error in uploading HolidayTemplate\"),\"SUM_OF_WHOLESALE\",\"The sum of Total Wholesale and Total Retailer fields must be 100\"),\"NO_KYC_DATA_AVAILABLE\",\"No KYC Data available\"),\"UNABLE_TO_UPDATE\",\"Unable to update\"),\"NO_DATA_AVAILABLE\",\"No Data available\"),\"FAILED_TO_FETCH_RETAILER_PERFORMANCE\",\"Failed to fetch retailer performance\"),\"RETAILER_NOT_DEACTIVATED\",\"Retailer is not deactivated. Please try again later\"),\"RETAILER_NOT_ACTIVATED\",\"Retailer is not activated. Please try again later\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET\",\"Unable to save the Retailer Share of Wallet\"),\"NO_DISTRIBUTORS\",\"No Distributors Data available\"),\"ADD_GEOHIERARCHY_FAILED\",\"ADD GEOHIERARCHY API FAILED\"),\"GEOHIERARCHY_DATA_FAILED\",\"FETCH GEOHIERARCHY DATA API FAILED\"),\"Update_GEOHIERARCHY_FAILED\",\"Update GEOHIERARCHY API FAILED\"),\"SELECT_LEAVE_TYPE\",\"Please select an Leave Type\"),\"SELECT_EVENT\",\"Please select an Activity / Event\"),\"SELECT_COMMENT\",\"Please select a Comment\"),\"ROLE_SELECT\",\"Please select role.\"),\"APPROVER_REQUIRED\",\"Attendance Approver Required\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"APPROVAL_DURATION_REQUIRED\",\"Approval Duration Required\"),\"APPROVAL_START_DATE_REQUIRED\",\"Approval Start Date Required\"),\"MONTHS_REQUIRED\",\"No Of Months Required\"),\"START_DATE_REQUIRED\",\"startDate Required\"),\"END_DATE_REQUIRED\",\"endDate Required\"),\"NO_OF_DAYS_REQUIRED\",\"noOfDays Required\"),\"BACKWARD_DAYS_REQUIRED\",\"backwardDays Required\"),\"FORWARDDAYS_REQUIRED\",\"forwardDays Required\"),\"AT_LEAST_1_DAY\",\"Week Off Day must have at least 1 day\"),\"WEEK_DAY_REQUIRED\",\"No Of WeekOffDay Required\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"TOTAL_ANNUAL_LEAVES_COUNT\",\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\"),\"SELECT_TEMPLATE\",\"Please select a template to proceed.\"),\"FREQUENCY_SHOULD_NOT_BE_ZERO\",\"frequency should not be zero or less than zero\"),\"FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS\",\"frequency should not be more than 3 digits\"),\"REQ_CONFIGURATION_NAME\",\"Configuration Name is Required\"),\"REQ_START\",\"Start Date is Required\"),\"REQ_END\",\"End Date is Required\"),\"REQ_TMHQ\",\"TM HQ is required\"),\"VALID_EMAIL\",\"Enter a valid email id\"),\"REQ_EMAIL\",\"Email id is required\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"VALID_URL\",\"Please enter a valid URL\"),\"REQ_URL\",\"URL is required\"),\"REQ_HELPLINE\",\"Helpline support message required\"),\"REQ_RELEASE_NOTES\",\"Release notes is required\"),\"REQ_DOC\",\"document is required\"),\"REQ_IMAGES\",\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\"),\"REQ_COMMENTS\",\"Comments are required for Rejection\"),\"SELECT_ONE_DISTRIBUTOR\",\"Please select atleast one distributor\"),\"CHOOSE_ATTENDANCE_TYPE\",\"Choose Attendance Type\"),\"ATTENDANCE_APPROVAL_ENABLE\",\"Enable or Disable Attendance Approval\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"SELECT_PAYCYCLE_START_DATE\",\"Select paycycle start date\"),\"NOOF_PREVIOUS_MONTHS\",\"No. of Previous months User can View Events Summary.\"),\"NOOF_PREVIOUS_DAYS\",\"No. of Previous days User can View events created.\"),\"NOOF_PREVIOUS_DAYS_UPDATE_EVENT\",\"No. of previous days User can Update an Event\"),\"NOOF_PREVIOUS_DAYS_CREATE_EVENT\",\"No. of previous days User can create an Event .\"),\"NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH\",\"No. of days from current month start User can Update the Target.\"),\"NOOF_DAYS_UPLOAD_CURRENT_MONTH\",\"No. of days from current month start User can Upload the Target.\"),\"MANAGE_EVENT_TARGETS_CLOSED\",\"Manage Event Targets window has been closed. Please contact your Country Admin.\"),\"LIST_OF_RETAILERS\",\"List of Retailers\"),\"MY_UPLOADS\",\"My Uploads\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"EVENT_TARGETS\",\"Event Targets\"),\"BASIC_CONFIGURATION\",\"Basic Configuration\"),\"APPROVER_CONFIGURATION\",\"Approver Configuration\"),\"LEAVES_CONFIGURATION\",\"Leaves/Comp-off Configuration\"),\"EVENT_TARGET\",\"Event Target\"),\"DISCUSSION_BOARD\",\"Leaderboard/Discussion Board\"),\"TARGET_DETAILS\",\"Target/Actuals Details\"),\"PUBLISH_EVENTS_TYPES\",\"Publish forms based upon event types\"),\"PUBLISH_GROWERS\",\"Publish forms by selecting basic and advanced details\"),\"PUBLISH_RETAILERS\",\"Publish forms by selecting Basic and Advanced fields\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"MIN\",\"Min\"),\"MAX\",\"Max\"),\"WARNING_MESSAGE\",\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\"),\"EVENTS\",\"Events\"),\"GROWERS\",\"Growers\"),\"RETAILERS\",\"Retailers\"),\"DEMO_TRACKING\",\"Demo Tracking\"),\"GEO\",\"Geo\"),\"DEMO_TRACKING_SUCCESS\",\"Demo Tracking Configurations saved successfully\"),\"DEMO_TRACKING_FAILED\",\"Failed to Save Demo Tracking Configurations\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"PLACEHOLDER_MIN\",\"Enter minimum value\"),\"PLACEHOLDER_MAX\",\"Enter maximum value\"),\"MIN_GREATER_THAN_MAX\",\"Min is greater than Max\"),\"MAX_LESSER_THAN_MIN\",\"Max is lesser than Min\"),\"TMHQ_NAME\",\"TMHQ Name\"),\"MDOHQ_ENDDATE\",\"MDO HQ End Date\"),\"MONTH_LABEL\",\"Month\"),\"TARGET_HEADER\",\"Target\"),\"AVG_GROWERS\",\"Avg No. of Growers\"),\"RETAILER_SEGMENT\",\"Retailer Segment\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"MOBILE_NO\",\"Mobile No.\"),\"APPROVAL_STATUS\",\"Approval Status\"),\"VERIFICATION_STATUS\",\"Verification Status\"),\"SOHQ_NAME\",\"SOHQ Name\"),\"PROVINCE\",\"Province\"),\"NOTIFICATION_REASON\",\"Notification Reason\"),\"FILE_NAME\",\"File Name\"),\"UPLOADED_ON\",\"Uploaded On\"),\"UPLOADED_FOR\",\"Uploaded For\"),\"PROCESSED_ON\",\"Processed On\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"ERROR\",\"Error\"),\"FAILURE_REASON\",\"Failure Reason\"),\"ROW_NUMBER\",\"Row Number\"),\"LINE\",\"Line\"),\"DATE_TIME\",\"Date & Time\"),\"EVENT_MASTER_TYPE\",\"Event Master Type\"),\"CONFIG_TYPE\",\"Config Type\"),\"HASH_GROWERS\",\"#Growers\"),\"HASH_RETAILERS\",\"#Retailers\"),\"ROLE_NAME\",\"Role Name\"),ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ce,\"DISTRIBUTOR_CODE\",\"Distributor Code\"),\"DISTRIBUTOR_NAME\",\"Distributor Name\"),\"CP_CODE\",\"CP Code\"),\"SEEDS_CODE\",\"Seeds Code\"),\"PMIN_PACKETS\",\"PMIN No.of packets\"),\"DISPATCHED_PACKETS\",\"Dispatched No.of packets\"),\"PMIN_DISTRIBUTOR_CODE\",\"PMIN Distributor Code\"),\"SAKSHAM_DISTRIBUTOR_CODE\",\"Saksham Distributor Code\"),\"PLANNED_VALUE_IN_LAKHS\",\"Planned Value (In Lakhs)\"),\"ACTUAL_VALUE_LABEL\",\"Actual Value(in Lakhs)\"),ge(ge(ge(ge(ge(ge(ce,\"ACHIEVEMENT\",\"%Achievement(Value)\"),\"GROWER_NAME\",\"Grower Name\"),\"NO_OF_PACKETS\",\"No.of Packets\"),\"ACTUAL_VOLUME_IN_KG\",\"Actual Volume (in Kg/Lt)\"),\"LIQUIDATION_PERCENTAGE\",\"% Liquidation (volume)\"),\"UPDATED_BY\",\"Updated by\"));function ve(e){return ve=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ve(e)}function Ae(e,t,n){return(t=function(e){var t=function(e){if(\"object\"!=ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,\"string\");if(\"object\"!=ve(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==ve(t)?t:t+\"\"}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he={EDIT:\"Edit\",CANCEL:\"Cancel\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",ENTER_NUMBERS:\"Please enter only numbers\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be atleast 2 characters\",COST_CENTER_MAX:\"Cost Center should be a max of 6 characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_NAME_HERADER:\"Geo Data Name\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",GEODATA_DETAILS:\"Geo Data Details\",ADD_GEO_DATA:\"Add Geo Data\",ADD_MDO:\"Add FP/SC\",EDIT_MDO:\"Edit FP/SC\",MDO_STARTDATE:\"FP/SC Start Date\",MDO_ENDDATE:\"FP/SC End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select FP/SC HQ\",MDO_HQ_ALLOCATION:\"FP/SC HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add FP/SC Head Quarters\",TM_HQ:\"TM HQ*\",MDO_HQ_NAME:\"FP/SC HQ Name*\",ENTER_MDO_NAME:\"Enter FP/SC HQ Name\",MDO_HQ_START_DATE:\"FP/SC HQ Start Date*\",MDO:\"FP/SC*\",ADD_MDO_HQ_BUTTON:\"ADD_MDO_HQ\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",MAIL_PLACEHOLDER:\"Enter Email\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",EMAIL_USER:\"Email *\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",HQ_NAME_TARGET:\"HQ Name\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"FP/SC HQ\"},\"TM_HQ\",\"TM HQ\"),\"UPLOAD_RETAILER\",\"Upload Retailer\"),\"SELECT_HQ_NAME\",\"Select HQ Name\"),\"HQ_NAMED\",\"HQ Name*\"),\"DOWNLOAD_TEMEPLATE\",\"Download the sample template\"),\"UPLOAD_FILE\",\"Upload the file after filling up the data in sample template\"),\"KNOW_MORE\",\"Know More\"),\"COMPLETED\",\"Completed\"),\"FAILED\",\"Failed\"),\"INPROGRESS\",\"In Progress\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"FILE_UPLOAD_ERROR\",\"Error found in uploaded file\"),\"ERROR_DESCRIPTION\",\"Please fix the error(s) listed below and upload the file again\"),\"REUPLOAD_TEXT\",\"Please rectify the erroneous data in the file and re-upload\"),\"DOWNLOAD\",\"Download\"),\"UPLOAD_RETAILERS\",\"Upload Retailer\"),\"CHANGE_MOBILE_NUMBER\",\"Change Mobile Number\"),\"EXISTING_MOBILE_NUMBER\",\"Existing Mobile Number\"),\"NEW_MOBILE_NUMBER\",\"New Mobile Number\"),\"ENTER_NUMBER\",\"Enter Number\"),\"ENTER_VERIFICATION_CODE\",\"Enter Verification Code\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"RESEND_OTP\",\"Send Verification Code\"),\"VERIFY\",\"Verify\"),\"PARTIAL_SUCCESS\",\"Partial Success\"),\"PERFORMANCE\",\"PERFORMANCE\"),\"OWNERNAME\",\"Owner Name\"),\"SHOPNAME\",\"Shop Name\"),\"MOBILENO\",\"Mobile Number\"),\"NOOFVISITS\",\"No.of Visits\"),\"ANNUAL_RETAILER_PLAN\",\"Annual Retailer Plan\"),\"TOTAL_ORDER_VALUE\",\"Total Order Value\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"TOTAL_COLLECTION\",\"Total Collection\"),\"TOTAL_LIQUIDATION\",\"Total Liquidation\"),\"TOTAL_PLACEMENT\",\"Total Placement\"),\"ORDER_DEFICIT\",\"Order Deficit\"),\"INVENTORY\",\"Inventory\"),\"EVENT_TYPES\",\"Event Type\"),\"EVENT_STATUS\",\"Event Status\"),\"PUBLISH_SIDE_HEADER\",\"Publish forms based upon event types\"),\"PUBLISH_SIDE_HEADER_PRODUCT\",\"Publish forms based upon product demo types\"),\"PRODUCT_DEMO_TYPES\",\"Product Demo Type\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"USER_ROLE_DROPDOWN_LABEL\",\"User Role\"),\"SALES_HIERARCHY_DROPDOWN_LABEL\",\"Sales Hierarchy\"),\"CONFIGURATIONS\",\"Configurations\"),\"UPLOAD_EVENT_TARGET_DAYS\",\"Upload Event Target (Days)\"),\"MANAGE_EVENT_TARGET\",\"Manage Event Target (Days)\"),\"ADD_EVENT_DAYS\",\"Add Event (Days)\"),\"MANAGE_EVENT_DAYS\",\"Manage Event (Days)\"),\"VIEW_EVENT_HISTORY\",\"View Event History (Months)\"),\"VIEW_EVENT_DAYS\",\"View Event (Days)\"),\"ATTENDANCE_TYPE\",\"Attendance Type\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ENABLE_APPROVAL\",\"Enable Attendance Approval\"),\"WIP\",\"WIP\"),\"CONFIRMATION_TEXT\",\"Are you sure, you want to discard the changes?\"),\"EVENT_BASELINE_TYPE\",\"Events Baseline Type\"),\"SELECT_ATTENDANCE_MARKER\",\"Select Attendance Marker\"),\"VISIT_TYPE\",\"Visit Type\"),\"AUTO_SYNC\",\"Auto Sync\"),\"AUTO_SYNC_PLACEHOLDER\",\"Enter Frequency\"),\"ISSUE_SCREEN_MESSAGE\",\"Sorry, we have run into an issue\"),\"UPLOAD_EVENT_TARGET\",\"Upload Event Target\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"FILL_DETAILS\",\"Fill up the details\"),\"TARGET_LABEL\",\"Target For*\"),\"YEAR\",\"Year*\"),\"MONTH\",\"Month*\"),\"DMHQ\",\"DMHQ\"),\"DOWNLOAD_TEMPLATE\",\"Download the sample template\"),\"UPLOAD_DATA_SAMPLE\",\"Upload the file after filling up the data in sample template\"),\"CONFIGURATION_TYPE\",\"Configuration Type*\"),\"EDIT_EVENT_TARGET\",\"Edit Event Target\"),\"TARGET\",\"Target*\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"AVG_NO_OF_GROWERS_PER_EVENT\",\"Avg No Growers per Event\"),\"HELP_DESCRIPTION\",\"Help Description\"),\"FAQS\",\"FAQs\"),\"NO_DATA\",\"No Data to Show\"),\"SELECT_ATTENDANCE_APPROVER\",\"Select Attendance Approver\"),\"SELECT_APPROVER\",\"Select Approver\"),\"PAYCYCLE_APPROVAL_CONF\",\"Paycycle Approval Configuration\"),\"APPROVAL_DURATION\",\"Approval Duration\"),\"SELECT_DURATION\",\"Select Duration\"),\"APPROVAL_STARTDATE\",\"Approval Start Date\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"SELECT_STARTDATE\",\"Select Start Date\"),\"VIEW_ATTENDANCE_HISTORY\",\"View Attendance History\"),\"NO_OF_MONTHS\",\"No. of Months\"),\"SELECT_NO_OF_MONTHS\",\"Select No. Of Months\"),\"SELECT_MARKER\",\"Select Marker\"),\"SELECT_MARKER_LABEL\",\"Select Attendance Marker\"),\"DOWNLOAD_HOLIDAYS_LIST\",\"Download Holidays List\"),\"DOWNLOAD_DISTRIBUTOR_LIST\",\"Download Distributor List\"),\"TEMPLATE\",\"Template\"),\"UPLOAD_FAILED\",\"Upload Failed\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"CLICK_KNOW_MORE\",\"Click to Know more\"),\"PAYCYCLE_CONFIG\",\"Paycycle Configuration\"),\"NO_OF_DAYS\",\"No.of Days\"),\"BACK_WARD_DAYS\",\"Backward (Days)\"),\"FORWARD_DAYS\",\"Forward (Days)\"),\"WEEKLY_OFF\",\"Weekly Off\"),\"SELECT_DAY\",\"Select Day\"),\"EVENT_BASED_ATTENDANCE\",\"Event Based Attendance\"),\"PAST_ATTENDANCE_DAYS\",\"Past Attendance Days\"),\"LEAVE_DURATION\",\"Leave Duration\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ATLEASET_SELECT_ONE\",\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\"),\"SELECT_SALESHIER_ROLE\",\"Select Sales Hierarchy HQ\"),\"TARGET_TYPE\",\"Target Type\"),\"SELECT_TYPE\",\"Select Type\"),\"YEARLY\",\"Yearly\"),\"TARGETs_UPLOAD_DURATION\",\"Targets Upload Duration\"),\"ACTUALS_UPLOAD_DURATION\",\"Actuals Upload Duration\"),\"SET_NNR_VALUE\",\"Set NNR Value at\"),\"NO_DATA_MSG\",\"No HQ History Found\"),\"ADD_BASELINE\",\"Add Event Baseline\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"EDIT_BASELINE\",\"Edit Event Baseline\"),\"SELECT_DMHQ\",\"Select Head Quarter\"),\"SELECT_EVENT_MASTER_TYPE\",\"Select Event Master Type\"),\"SELECT_EVENT_TYPE\",\"Select Event type\"),\"SELECT_ROLE_TYPE\",\"Select role\"),\"SELECT_CONFIG_TYPE\",\"Select Configuration Type\"),\"SELECT_YEAR\",\"Select Year\"),\"SELECT_MONTH\",\"Select Month\"),\"BASELINE_VALUE\",\"Base Line Value\"),\"SELECT_MAX_BASELINE\",\"Select Max Baseline\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"NO_OF_RETAILERS\",\"No. of Retailers\"),\"NO_OF_GROWERS\",\"No. of Growers\"),\"SAVE_MESSAGE\",\"Baseline Configuration Saved Successfully\"),\"UPDATE_MESSAGE\",\"Baseline Configuration Updated Successfully\"),\"APPROVER_SAVE_TOAST_MESSAGE\",\"Attendance Approver Configuration has been saved successfully for selected role\"),\"REQ_DM_HQ_NAME\",\"DMHQ Name is required\"),\"REQ_EVENT_MASTER_TYPE\",\"Event Master Type is required\"),\"REQ_EVENT_TYPE\",\"Event Type is required\"),\"REQ_CONFIGURATION_TYPE\",\"Configuration Type is required\"),\"REQ_YEAR\",\"Year is required\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"REQ_MONTH\",\"Month is required\"),\"REQ_ROLE\",\"Role is required\"),\"MIN_BASELINE\",\"Baseline Value should be atleast 1\"),\"MAX_BASELINE\",\"Baseline value can be max of 999\"),\"REQ_BASELINE\",\"Baseline value is required\"),\"MIN_GROWERS\",\"No. Of Growers should be atleast 1\"),\"MAX_GROWERS\",\"No. Of Growers can be max of 9999\"),\"REQ_GROWERS\",\"No. Of Growers is required\"),\"MIN_RETAILERS\",\"No. Of Retailers should be atleast 1\"),\"MAX_RETAILERS\",\"No. Of Retailers can be max of 999\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"REQ_RETAILERS\",\"No. Of Retailers is required\"),\"REQ_MAX_BASELINE\",\"Max Baseline is required\"),\"TM_HQ_LABEL\",\"TM HQ\"),\"MDO_HQ_LABEL\",\"MDO HQ\"),\"YEAR_LABEL\",\"Year\"),\"TOTAL_TARGET_VOLUME\",\"Total Target Volume(In Kg/Lt)\"),\"TOTAL_TARGET_VALUE\",\"Total Target Value(In Lakhs)\"),\"TOTAL_ACTUAL_VOLUMES\",\"Total Actual Volume(In Kg/Lt)\"),\"TOTAL_ACTUAL_VALUE\",\"Total Actual Value(In Lakhs)\"),\"UPLOAD_TARGETS\",\"Upload Targets\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"UPLOAD_ACTUALS\",\"Upload Actuals\"),\"UPLOAD_LIQUIDATION_TARGET\",\"Upload Liquidation Targets\"),\"LIQUIDATION_TARGET\",\"Liquidation Target\"),\"LIQUIDATION_ACTUALS\",\"Liquidation Actuals\"),\"TMHQS\",\"TM HQ\"),\"SELECT_TMHQ\",\"Select TM HQ\"),\"UPLOAD_COMPLETED_TEMPLATE\",\"Upload the completed template\"),\"SELECT_STATUS\",\"Select Status\"),\"UPLOAD_LIQUIDATION_ACTUALS\",\"Upload Liquidation Actuals\"),\"DMHQS\",\"DMHQ's\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"DOWNLOAD_REPORT\",\"Download Report\"),\"DOWNLOAD_TEMPLATE_TARGETS\",\"Download template to Add/Modify Targets\"),\"DOWNLOAD_TEMPLATE_ACTUALS\",\"Download template to Add/Modify Actuals\"),\"NNRHQS\",\"NNR HQ\"),\"SUCCESS_TOAST_MSG\",\"Please wait while we process the uploaded file. Check the status in 'My uploads' section in a few moments\"),\"FAILURE_TOAST_MSG\",\"File upload failed\"),\"VALID_FILE_ERROR\",\"Please upload valid template file\"),\"UPLOAD_CONDITION_TEXT\",\"Please upload downloaded template file\"),\"TARGET_STATUS\",\"Target Status\"),\"UPLOAD_DEMO_DISPATCH\",\"Upload Demo Courier Details\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"SELECT_TMHQS\",\"Select the TMHQ's\"),\"SELECT\",\"Select\"),\"DISTRIBUTORS_MAPPED\",\"Distributors Mapped:\"),\"SELECT_DISTRIBUTORS\",\"Select Distributors\"),\"LIST_AVAILABLE_DISTRIBUTORS\",\"List of Available Distributors\"),\"SELECT_TM_HQ\",\"Select TM HQ\"),\"IS_STARTING_DIGIT\",\"is-starting-digit-valid\"),\"MOBILE_NUMBER_START\",\"Mobile number should start with 5, 6, 7, 8, or 9\"),\"NO_SP_CHARACTERS\",\"no-special-characters\"),\"ZIP_REQUIRED\",\"Zip Code is required\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ZIP_CODE_VALIDATION\",\"Zip should not contain special characters or alphabets\"),\"ZIP_CODE_MIN_MAX_VALUE\",\"Zip Code must be minimum 1 and maximum 6 digits\"),\"ZIP_CODE_START\",\"Zip Code should not start with 0\"),\"NOT_MARKED\",\"Not Marked\"),\"ABSENT\",\"Absent\"),\"APPLIED_LEAVES\",\"Applied Leaves\"),\"LEAVE\",\"Leave\"),\"SEARCH_BY_NAMES\",\"Search by TM Name / Distributor / Crop / Status\"),\"APPROVALS\",\"Approvals\"),\"ATTENDANCE\",\"Attendance\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"PRESENT\",\"Present\"),\"SELECT_LEAVE\",\"Select Leave Type\"),\"SELECT_ACTIVITY\",\"Select Activity/Event\"),\"COMMENTS\",\"Comments\"),\"SELECT_DATE_TO_EDIT\",\"Please select any date to edit the attendance\"),\"TOTAL_TMS\",\"Total TMs\"),\"APPROVED\",\"Approved\"),\"PENDING\",\"Pending\"),\"MANPOWER_REPORT\",\"Manpower Report\"),\"ATTENDANCE_APPROVAL\",\"Attendance Approval\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"FINAL_APPROVAL_CONFIRMATION\",\"Are you sure you want to Final Approve the attendance?\"),\"FINAL_APPROVED_SUCCESSFULLY\",\" Attendance Final Approved Successfully\"),\"CHOOSE_EVENT_BASELINE_TYPE\",\"Choose Event Baseline Type\"),\"TEMPLATES\",\"Templates\"),\"EDITABLE\",\"Editable\"),\"KEEP_MANDATORY\",\"Keep Mandatory\"),\"FEATURES\",\"Features\"),\"UPDATE_RETAILER_SOW_CONFIGURATION\",\"Update Retailer SOW Configuration -\"),\"ADD_RETAILER_SOW_CONFIGURATION\",\"Add Retailer SOW Configuration\"),\"GROWERS_ATTENDED\",\"Growers Attended\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"CONFIGURATION_DELETE_CONFIRMATION\",\"Are you sure, You want to delete this Baseline Configuration?\"),\"BACK_TO\",\"Back to\"),\"SEARCH_BY\",\"Search by\"),\"TARGETS_ARE_NOT_UPLOADED\",\"Targets are not uploaded for any brands in this BU.\"),\"NO_MATCHING_RECORDS\",\"No Matching Records.\"),\"FILE_UPLOADED\",\"File Uploaded\"),\"HOLIDAY_UPLOAD\",\"Holiday Upload\"),\"DISTRIBUTOR_UPLOAD\",\"Distributor Upload\"),\"GST_DOCUMENT\",\"GST Document\"),\"KYC_VERIFIED\",\"KYC Verified\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"TOTAL_WHOLESALE_PERCENTAGE\",\"Total Wholesale Percentage (%)\"),\"TOTAL_RETAILER_PERCENTAGE\",\"Total Retailer Percentage (%)\"),\"UPPERCASE_RETAILER_DETAILS\",\"RETAILER DETAILS\"),\"TYPING_HERE\",\"Start Typing here...\"),\"NOT_VERIFIED\",\"Not Verified\"),\"VIEW_DETAILS\",\"View Details\"),\"PLANNED_VALUE\",\"Planned Value\"),\"ACTUAL_VALUE\",\"Actual Value\"),\"ADD_BRAND_TARGET\",\"Add Brand Target\"),\"ENTER_SHOP_NAME\",\"Enter Shop Name\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"PLANNED_VOLUME\",\"Planned Volume\"),\"ENTER_PLANNED_VOLUME\",\"Enter Planned Volume\"),\"UPLOAD_BRAND_TARGET\",\"Upload Brand Target\"),\"UPDATE_BY_RETAILER\",\"Update by Retailer\"),\"REVIEW_BGP_DETAILS\",\"Review BGP Details\"),\"VIEW_BGP_DETAILS\",\"View BGP Details\"),\"TM\",\"TM\"),\"TM_APPROVED\",\"TM Approved\"),\"ACTIVE\",\"Active\"),\"INACTIVE\",\"InActive\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"UPLOAD_ANNUAL_TURNOVER\",\"Upload Annual Turnover\"),\"RETAILERS_TOUCHBASED\",\"Retailers Touchbased\"),\"MAPPED_RETAILERS\",\"Mapped Retailers\"),\"OUT_OF\",\"Out of\"),\"NUMBER\",\"Number\"),\"SAVED\",\"Saved\"),\"UPDATED\",\"Updated\"),\"YEAR_TEXT\",\"Year\"),\"ENABLE_EVENTS_BASELINING\",\"Enable Events Baselining\"),\"ENABLE_EVENTS\",\"Enable Events\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ENABLE_IMAGE_UPLOAD\",\"Enable Image Upload\"),\"REQUEST_ID\",\"Request ID\"),\"MATERIAL_NAME\",\"Material Name\"),\"MATERIAL_CODE\",\"Material Code\"),\"COURIER_THROUGH\",\"Courier Through\"),\"COURIER_TRACKING_ID\",\"Courier Tracking ID\"),\"EXPECTED_DISPATCHED_DATE\",\"Expected Dispatched Date\"),\"EXPECTED_DELIVERY_DATE\",\"Expected Delivery Date\"),\"DISTRIBUTOR\",\"Distributor\"),\"MATERIAL\",\"Material\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"UPLOAD_TRACKING_DETAILS\",\"Upload Tracking Details\"),\"CREATED\",\"Created\"),\"DISPATCHED\",\"Dispatched\"),\"DMHQ_NAME\",\"DMHQ Name\"),\"MAXIMUM_BASELINE\",\"Max Baseline\"),\"AVG_GROWERS_PER_EVENT\",\"Avg No. of Growers per Event\"),\"NO_IMAGE_UPLOADED\",\"No image uploaded\"),\"GEO_LOCATION\",\"Geo Location\"),\"HISTORY\",\"History\"),\"DOCUMENTS\",\"Documents\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"LOWER_DOCUMENTS\",\"documents\"),\"EXPIRY_DATE\",\"Expiry Date\"),\"WHOLESALE_PERCENTAGE_OF_SALES\",\"Total Wholesale Percentage (%) of Syngenta sales\"),\"RETAILER_PERCENTAGE_OF_SALES\",\"Total Retailer Percentage (%) of Syngenta sales\"),\"SCANS_LIQUIDATION\",\"SCANS & LIQUIDATION\"),\"SHARE_OF_WALLET\",\"Share of Wallet\"),\"HQ_HIERARCHY_LABEL\",\"HQ Hierarchy\"),\"EDIT_ATTENDANCE\",\"Edit Attendance\"),\"FINAL_APPROVED\",\"Final Approved\"),\"FINAL_APPROVAL\",\"Final Approval\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"DOWNLOAD_LIQUIDATIONS\",\"Download Liquidation Targets / Actuals Report\"),\"DOWNLOAD_EVENT_ACTUALS\",\"Download Event Actuals\"),\"ADD_BASELINE_CONFIGURATION\",\"Add Baseline Configuration\"),\"DOWNLOAD_EVENT_TARGETS\",\"Download Event Targets\"),\"DOWNLOAD_LIQUIDATION_TARGET\",\"Download Liquidation Target/Actuals\"),\"REPLACE\",\"Replace\"),\"EDIT_DETAILS\",\"Edit Details\"),\"UPLOAD_PLAN\",\"Upload Plan\"),\"ADD_TARGET\",\"Add Target\"),\"APPROVE_REQUEST\",\"Approve Request\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"UPLOAD_FILE_TEXT\",\"Upload File\"),\"UPLOAD_TEXT\",\"Upload\"),\"DEACTIVATE\",\"Deactivate\"),\"ACTIVATE\",\"Activate\"),\"REJECT\",\"Reject\"),\"APPROVE\",\"Approve\"),\"SEARCH_BY_FIELDS\",\"Search By First Name, Last Name, Phone Number\"),\"SEARCH_BY_FIELDS_NAME\",\"Search By Shop Name, Owner Name\"),\"SEARCH_BY_CONFIGURATIONS\",\"Search by Year / Configuration Name\"),\"SEARCH_BY_HQ_NAME\",\"Search by HQ Name Or User Name\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"SEARCH_BY_BRANDNAME\",\"Search by HQ Name Or Brand Name\"),\"KYC_SEARCH\",\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\"),\"ORPHAN_SEARCH\",\"Search by Owner Name,Shop Name, Mobile, Taluka\"),\"RETAILERS_SEARCH\",\"Search by Headquarter / Owner Name / Shop Name / Mobile No\"),\"MDOS_SEARCH\",\"Search By First Name, Last Name, Phone Number\"),\"USERS_SEARCH\",\"Search By Name\"),\"DISTRIBUTORS_SEARCH\",\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\"),\"GEO_DATA_SEARCH\",\"Search By Name\"),\"HEAD_QUARTER_SEARCH\",\"Search By HQ Name\"),\"APPROVED_SUCCESSFULLY\",\"Approved successfully\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"MDO_ATTENDANCE_UPDATED_SUCCESSFULLY\",\"MDO Attendance updated successfully\"),\"DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY\",\"Demo Tracking Configurations saved successfully\"),\"LIQUIDATION_SAVED_SUCCESS\",\"Liquidation Configurations are saved successfully.\"),\"SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY\",\"Share of Wallet Configuration created successfully\"),\"SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY\",\"Share of Wallet Configuration updated successfully\"),\"EVENT_UPDATED_SUCCESS\",\"Event planning details updated successfully.\"),\"EVENT_DELETED_SUCCESS\",\"Event planning details deleted successfully.\"),\"FILE_UPLOADED_SUCCESSFULLY\",\"File Uploaded Successfully\"),\"RETAILERS_BRANDS_ADDED\",\"Retailers brands are added successfully\"),\"RETAILERS_BRANDS_UPDATED\",\"Retailers brands are updated successfully\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"RETAILER_ACTIVATED_SUCCESSFULLY\",\"Retailer was activated successfully\"),\"RETAILER_DEACTIVATED_SUCCESSFULLY\",\"Retailer was deactivated successfully\"),\"RETAILER_DETAILS_APPROVED_SUCCESSFULLY\",\"Retailer details approved successfully\"),\"SHARE_OF_WALLET_DATA\",\"Retailer Share of Wallet data\"),\"SUCCESSFULLY\",\"Successfully\"),\"PERMISSIONS_UPDATED\",\"Permissions Updated Successfully\"),\"PERMISSIONS_SAVED\",\"Permissions Saved Successfully\"),\"DISTRIBUTORS_SAVED\",\"Selected Distributors saved successfully\"),\"WEEK_OF_DAYS_API_FAILED\",\"Unable to fetch weekoff days\"),\"PRESENT_LIST_API_FAILED\",\"Unable to fetch present attendance list\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ATTENDANCE_LIST_API_FAILED\",\"Failed to get Week Off/ Holiday and attendance list\"),\"SAVE_GROWER\",\"SAVE GROWERS API FAILED\"),\"LIQUIDATION_SAVED_FAILED\",\"Unable to save the configurartion\"),\"LIQUIDATION_GET_FAILED\",\"Unable to fetch configured Liquidation Targets Data\"),\"FAILED_UPDATE\",\"Failed to update\"),\"NO_UPLOADS_LIST_DATA\",\"No Uploads List Data available\"),\"NO_ERROR_LOG_LIST_DATA\",\"No ErrorLog List Data available\"),\"SALES_HIERARCHY_API_FAILED\",\"Unable to fetch sales hierarchy information\"),\"NO_ATTENDANCE_DATA\",\"No Attendance Approver Data available\"),\"NO_PORTFOLIO_LIST\",\"No portfolio list\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"INCLUDE_ADMIN_CONFIGURATION\",\"Please include the admin configuration\"),\"ADMIN_ATTENDANCE_DATA_API_FAILED\",\"Unable to fetch Admin Attendance Data\"),\"DEMO_TRACKING_CONFIGURATIONS\",\"Failed to Save Demo Tracking Configurations\"),\"HIERARCHY_ROLE_API_FAILED\",\"Unable to fetch sales Hierarchy role\"),\"SAVE_EVENT_TARGET_FAILED\",\"Unable to save the EventTarget Data\"),\"GET_SALES_HIERARCHY_FAILED\",\"Failed to get Sales Hierarchy\"),\"GET_SALES_FAILED\",\"Failed to get Selected Sales\"),\"UNABLE_TO_SAVE\",\"Unable to save the Data\"),\"NO_DATA_RECEIVED_FROM_SERVER\",\"No data received from the server.\"),\"DOWNLOAD_FAILED\",\"Download Template failed\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"DOWNLOAD_MDO_FAILED\",\"Download MDO failed\"),\"UPLOAD_LIQUIDATION_ERROR\",\"Unable to fetch Upload Liquidation Year Data\"),\"NO_BRANDS_AVAILABLE\",\"No Brand List Data available\"),\"DATA_NOT_AVAILABLE\",\"Data Not Available\"),\"DMHQ_DATA_NOT_AVAILABLE\",\"DMHQ data not available\"),\"EVENT_MASTER_TYPES_NOT_AVAILABLE\",\"Event Master types data not available\"),\"PORTFOLIOS_NOT_AVAILABLE\",\"Portfolio data not available\"),\"EVENT_TYPES_DATA_NOT_AVAILABLE\",\"Event types data not available\"),\"ROLES_DATA_NOT_AVAILABLE\",\"Roles data not available\"),\"NO_BASELINE_CONFIG_DATA_AVAILABLE\",\"No baseline config data available\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"NO_BASELINE_DATA_AVAILABLE\",\"No baseline Data available\"),\"BASELINE_DELETE_API_FAILED\",\"Baseline delete api failed\"),\"NO_DATA_FOUND\",\"No Data Found\"),\"NO_UPLOADED_DOCUMENTS\",\"No Uploaded Documents\"),\"NO_ERRORLOGS\",\"No ErrorLogs\"),\"UPLOAD_LIQUIDATION_HQ_DATA_FAILED\",\"Unable to fetch Upload Liquidation HQ Data\"),\"UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED\",\"Unable to fetch Upload Liquidation Portfolio's Data\"),\"UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED\",\"Unable to fetch Upload Liquidation NNRHQ's Data\"),\"NO_LIQUIDATION_DATA_AVAILABLE\",\"No Liquidation Data available\"),\"NO_LIST_AVAILABLE\",\"No List Data available\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"NO_FILTER_LIST_AVAILABLE\",\"No Filter List Data available\"),\"HOLIDAY_UPLOAD_FAILED\",\"HolidayTemplate upload failed.\"),\"ERROR_IN_HOLIDAYTEMPLATE\",\"Error in uploading HolidayTemplate\"),\"SUM_OF_WHOLESALE\",\"The sum of Total Wholesale and Total Retailer fields must be 100\"),\"NO_KYC_DATA_AVAILABLE\",\"No KYC Data available\"),\"UNABLE_TO_UPDATE\",\"Unable to update\"),\"NO_DATA_AVAILABLE\",\"No Data available\"),\"FAILED_TO_FETCH_RETAILER_PERFORMANCE\",\"Failed to fetch retailer performance\"),\"RETAILER_NOT_DEACTIVATED\",\"Retailer is not deactivated. Please try again later\"),\"RETAILER_NOT_ACTIVATED\",\"Retailer is not activated. Please try again later\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET\",\"Unable to save the Retailer Share of Wallet\"),\"NO_DISTRIBUTORS\",\"No Distributors Data available\"),\"ADD_GEOHIERARCHY_FAILED\",\"ADD GEOHIERARCHY API FAILED\"),\"GEOHIERARCHY_DATA_FAILED\",\"FETCH GEOHIERARCHY DATA API FAILED\"),\"Update_GEOHIERARCHY_FAILED\",\"Update GEOHIERARCHY API FAILED\"),\"SELECT_LEAVE_TYPE\",\"Please select an Leave Type\"),\"SELECT_EVENT\",\"Please select an Activity / Event\"),\"SELECT_COMMENT\",\"Please select a Comment\"),\"ROLE_SELECT\",\"Please select role.\"),\"APPROVER_REQUIRED\",\"Attendance Approver Required\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"APPROVAL_DURATION_REQUIRED\",\"Approval Duration Required\"),\"APPROVAL_START_DATE_REQUIRED\",\"Approval Start Date Required\"),\"MONTHS_REQUIRED\",\"No Of Months Required\"),\"START_DATE_REQUIRED\",\"startDate Required\"),\"END_DATE_REQUIRED\",\"endDate Required\"),\"NO_OF_DAYS_REQUIRED\",\"noOfDays Required\"),\"BACKWARD_DAYS_REQUIRED\",\"backwardDays Required\"),\"FORWARDDAYS_REQUIRED\",\"forwardDays Required\"),\"AT_LEAST_1_DAY\",\"Week Off Day must have at least 1 day\"),\"WEEK_DAY_REQUIRED\",\"No Of WeekOffDay Required\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"TOTAL_ANNUAL_LEAVES_COUNT\",\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\"),\"SELECT_TEMPLATE\",\"Please select a template to proceed.\"),\"FREQUENCY_SHOULD_NOT_BE_ZERO\",\"frequency should not be zero or less than zero\"),\"FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS\",\"frequency should not be more than 3 digits\"),\"REQ_CONFIGURATION_NAME\",\"Configuration Name is Required\"),\"REQ_START\",\"Start Date is Required\"),\"REQ_END\",\"End Date is Required\"),\"REQ_TMHQ\",\"TM HQ is required\"),\"VALID_EMAIL\",\"Enter a valid email id\"),\"REQ_EMAIL\",\"Email id is required\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"VALID_URL\",\"Please enter a valid URL\"),\"REQ_URL\",\"URL is required\"),\"REQ_HELPLINE\",\"Helpline support message required\"),\"REQ_RELEASE_NOTES\",\"Release notes is required\"),\"REQ_DOC\",\"document is required\"),\"REQ_IMAGES\",\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\"),\"REQ_COMMENTS\",\"Comments are required for Rejection\"),\"SELECT_ONE_DISTRIBUTOR\",\"Please select atleast one distributor\"),\"CHOOSE_ATTENDANCE_TYPE\",\"Choose Attendance Type\"),\"ATTENDANCE_APPROVAL_ENABLE\",\"Enable or Disable Attendance Approval\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"SELECT_PAYCYCLE_START_DATE\",\"Select paycycle start date\"),\"NOOF_PREVIOUS_MONTHS\",\"No. of Previous months User can View Events Summary.\"),\"NOOF_PREVIOUS_DAYS\",\"No. of Previous days User can View events created.\"),\"NOOF_PREVIOUS_DAYS_UPDATE_EVENT\",\"No. of previous days User can Update an Event\"),\"NOOF_PREVIOUS_DAYS_CREATE_EVENT\",\"No. of previous days User can create an Event .\"),\"NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH\",\"No. of days from current month start User can Update the Target.\"),\"NOOF_DAYS_UPLOAD_CURRENT_MONTH\",\"No. of days from current month start User can Upload the Target.\"),\"MANAGE_EVENT_TARGETS_CLOSED\",\"Manage Event Targets window has been closed. Please contact your Country Admin.\"),\"LIST_OF_RETAILERS\",\"List of Retailers\"),\"MY_UPLOADS\",\"My Uploads\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"EVENT_TARGETS\",\"Event Targets\"),\"BASIC_CONFIGURATION\",\"Basic Configuration\"),\"APPROVER_CONFIGURATION\",\"Approver Configuration\"),\"LEAVES_CONFIGURATION\",\"Leaves/Comp-off Configuration\"),\"EVENT_TARGET\",\"Event Target\"),\"DISCUSSION_BOARD\",\"Leaderboard/Discussion Board\"),\"TARGET_DETAILS\",\"Target/Actuals Details\"),\"PUBLISH_EVENTS_TYPES\",\"Publish forms based upon event types\"),\"PUBLISH_GROWERS\",\"Publish forms by selecting basic and advanced details\"),\"PUBLISH_RETAILERS\",\"Publish forms by selecting Basic and Advanced fields\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"MIN\",\"Min\"),\"MAX\",\"Max\"),\"WARNING_MESSAGE\",\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\"),\"EVENTS\",\"Events\"),\"GROWERS\",\"Growers\"),\"RETAILERS\",\"Retailers\"),\"DEMO_TRACKING\",\"Demo Tracking\"),\"GEO\",\"Geo\"),\"DEMO_TRACKING_SUCCESS\",\"Demo Tracking Configurations saved successfully\"),\"DEMO_TRACKING_FAILED\",\"Failed to Save Demo Tracking Configurations\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"PLACEHOLDER_MIN\",\"Enter minimum value\"),\"PLACEHOLDER_MAX\",\"Enter maximum value\"),\"MIN_GREATER_THAN_MAX\",\"Min is greater than Max\"),\"MAX_LESSER_THAN_MIN\",\"Max is lesser than Min\"),\"TMHQ_NAME\",\"TMHQ Name\"),\"MDOHQ_ENDDATE\",\"MDO HQ End Date\"),\"MONTH_LABEL\",\"Month\"),\"TARGET_HEADER\",\"Target\"),\"AVG_GROWERS\",\"Avg No. of Growers\"),\"RETAILER_SEGMENT\",\"Retailer Segment\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"MOBILE_NO\",\"Mobile No.\"),\"APPROVAL_STATUS\",\"Approval Status\"),\"VERIFICATION_STATUS\",\"Verification Status\"),\"SOHQ_NAME\",\"SOHQ Name\"),\"PROVINCE\",\"Province\"),\"NOTIFICATION_REASON\",\"Notification Reason\"),\"FILE_NAME\",\"File Name\"),\"UPLOADED_ON\",\"Uploaded On\"),\"UPLOADED_FOR\",\"Uploaded For\"),\"PROCESSED_ON\",\"Processed On\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"ERROR\",\"Error\"),\"FAILURE_REASON\",\"Failure Reason\"),\"ROW_NUMBER\",\"Row Number\"),\"LINE\",\"Line\"),\"DATE_TIME\",\"Date & Time\"),\"EVENT_MASTER_TYPE\",\"Event Master Type\"),\"CONFIG_TYPE\",\"Config Type\"),\"HASH_GROWERS\",\"#Growers\"),\"HASH_RETAILERS\",\"#Retailers\"),\"ROLE_NAME\",\"Role Name\"),Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(he,\"DISTRIBUTOR_CODE\",\"Distributor Code\"),\"DISTRIBUTOR_NAME\",\"Distributor Name\"),\"CP_CODE\",\"CP Code\"),\"SEEDS_CODE\",\"Seeds Code\"),\"PMIN_PACKETS\",\"PMIN No.of packets\"),\"DISPATCHED_PACKETS\",\"Dispatched No.of packets\"),\"PMIN_DISTRIBUTOR_CODE\",\"PMIN Distributor Code\"),\"SAKSHAM_DISTRIBUTOR_CODE\",\"Saksham Distributor Code\"),\"PLANNED_VALUE_IN_LAKHS\",\"Planned Value (In Lakhs)\"),\"ACTUAL_VALUE_LABEL\",\"Actual Value(in Lakhs)\"),Ae(Ae(Ae(Ae(Ae(Ae(he,\"ACHIEVEMENT\",\"%Achievement(Value)\"),\"GROWER_NAME\",\"Grower Name\"),\"NO_OF_PACKETS\",\"No.of Packets\"),\"ACTUAL_VOLUME_IN_KG\",\"Actual Volume (in Kg/Lt)\"),\"LIQUIDATION_PERCENTAGE\",\"% Liquidation (volume)\"),\"UPDATED_BY\",\"Updated by\")),Ee={EDIT:\"Edit\",CANCEL:\"Cancel\",SAVE:\"Save\",UPDATE:\"Update\",SEARCH:\"Search\",DELETE:\"Delete\",ADD:\"Add\",START_DATE:\"Start Date\",END_DATE:\"End Date\",CLEAR_FILTERS:\"Clear Filters\",APPLY_FILTERS:\"Apply Filters\",ENTER_CODE:\"Enter Code\",ENTER_NAME:\"Enter Name\",FILTER:\"Filter\",NAME:\"Name\",STATUS:\"Status\",FIRST_NAME:\"First Name\",LAST_NAME:\"Last Name\",PHONE_NO:\"Phone Number\",PAGE_NOT_FOUND:\"Page Not Found\",PAGE_NOT_FOUND_DESCRIPTION:\"Sorry, the page you are looking for does not exist\",BACK:\"Back\",PLEASE_WAIT:\"....Please wait\",DETAILS:\"Details\",ADD_FIELD:\"Add Field\",MANDATORY:\"Mandatory\",SUBMIT:\"Submit\",ENTER_NUMBERS:\"Please enter only numbers\",SEARCH_PLACEHOLDER:\"Search\",ADD_NEW_BUTTON:\"Add New\",PARENT:\"Parent\",LEVEL:\"Level\",GEO_HIERARCHY_NAME:\"Geo Hierarchy Name\",ACTIONS:\"Actions\",EDIT_GEO_HIERARCHY:\"Edit Geo Hierarchy\",ADD_GEO_HIERARCHY:\"Add Geo Hierarchy\",MASTERS_BREADCRUMB:\"Masters\",GEOHIERARCHY_BREADCRUMB:\"Geo Hierarchy\",SELECT_LEVEL:\"Select Level\",HQ_HIERARCHY:\"HQ Hierarchy Name\",HQ_NAME:\"HQ Name\",PARENT_HQ_NAME:\"Parent HQ Name\",USER_NAME_LABEL:\"User Name\",PARENT_HQ:\"Parent HQ\",USER:\"User\",COST_CENTER:\"Cost Center\",NEXT:\"Next\",PREVIOUS:\"Previous\",EDIT_HQ_DATA:\"Edit HQ Data\",ADD_HQ_DATA:\"Add HQ Data\",HQ_GEO_MAPPING:\"HQ Geo Mapping\",SELECT_HQ_HIERARCHY:\"Select HQ Hierarchy\",SELECT_PARENT:\"Select Parent\",SELECT_COST_CENTER:\"Select Cost Center\",SELECT_USER:\"Select User\",NAME_MIN:\"Name should be atleast 3 characters\",NAME_MAX:\"Name should be a max of 25 characters\",COST_CENTER_MIN:\"Cost Center should be atleast 2 characters\",COST_CENTER_MAX:\"Cost Center should be a max of 6 characters\",BROWSE:\"Browse\",UPLOAD:\"Upload\",DOWNLOAD_TEMPLATES:\"Download Template\",GEO_HIERARCHY:\"Geo Hierarchy\",SELECT_GEO_HIERARCHY:\"Select Geo Hierarchy\",CODE:\"Geo Data Code *\",GEO_HIERARCHY_LABEL:\"Geo Hierarchy *\",GEO_NAME:\"Geo Data Name *\",GEO_NAME_HERADER:\"Geo Data Name\",GEO_PARENT:\"Parent *\",EDIT_GEO_DATA:\"Edit Geo Data\",GEODATA_DETAILS:\"Geo Data Details\",ADD_GEO_DATA:\"Add Geo Data\",ADD_MDO:\"Add FO\",EDIT_MDO:\"Edit FO\",MDO_STARTDATE:\"FO Start Date\",MDO_ENDDATE:\"FO End Date\",EMP_TYPE:\"Employee Type\",SELECT_MDOHQ:\"Select FO HQ\",MDO_HQ_ALLOCATION:\"FO HeadQuarter Allocation\",ENTER_FIRSTNAME:\"Enter First Name\",ENTER_LASTNAME:\"Enter Last Name\",ENTER_PHONENO:\"Enter Phone Number\",SELECT_EMPTYPE:\"Select Employee Type\",SELECT_DATE:\"Select Date\",SELECT_HQNAME:\"Select HQ Name\",EMP_ID:\"Employee ID\",ENTER_EMPID:\"Enter EmployeeID\",ADD_MDO_HQ:\"Add FO Head Quarters\",MDO_HQ_NAME:\"FO HQ Name*\",ENTER_MDO_NAME:\"Enter FO HQ Name\",MDO_HQ_START_DATE:\"FO HQ Start Date*\",MDO:\"FO*\",ADD_MDO_HQ_BUTTON:\"ADD_MDO_HQ\",BUSINESS_UNIT:\"Business Unit\",HQHIERARCHY_NAME:\"HQ Hierarchy Name\",SALES_HIERARCHY:\"Sales Hierarchy\",SELECT_GEOHQ:\"Select Geo Hierarchy\",SELECT_SALESHIER:\"Select Sales Hierarchy\",ADD_SALES_HIERARCHY:\"Add Sales Hierarchy\",EDIT_SALES_HIERARCHY:\"Edit Sales Hierarchy\",SALES_HIERARCHY_CODE:\"Sales Hierarchy Code\",SALES_HIERARCHY_NAME:\"Sales Hierarchy Name\",CROP:\"Crop\",SELECT_CROP:\"Select Crop\",EVENT_TYPE:\"Event Type\",ALLEVENT_TYPE:\"Select Event Type\",ALLEVENT_STATUS:\"Select Event Status\",BRAND:\"Brand\",ALL_BRANDS:\"Select Brand\",CONDUCTED_BY:\"Conducted By\",FROM_DATE:\"From Date\",TO_DATE:\"To Date\",EVENT_DETAILS:\"Event Details\",BM_HQ:\"BM HQ\",TARGET_FOR:\"Set Target For\",TARGET_FOR_LABEL:\"Target For\",FILTERS:\"Filters\",USER_NAME:\"Username\",ROLE:\"Role\",EDIT_USER:\"Edit User\",ADD_USER:\"Add User\",EMAIL:\"Email\",EMPLOYEE_ID:\"Employee ID\",SELECT_ROLE:\"Select Role\",MAIL_PLACEHOLDER:\"Enter Email\",FIRST_NAME_PLACEHOLDER:\"Enter First Name\",PARENT_HQ_PLACEHOLDER:\"Select Parent HQ\",LAST_NAME_PLACEHOLDER:\"Enter Last Name\",NUMBER_PLACEHOLDER:\"Enter Phone Number\",EMP_ID_PLACEHOLDER:\"Enter Employee ID\",USER_ROLE:\"User Role\",CLEAR_FILTER:\"Clear Filter\",APPLY_FILTER:\"Apply Filter\",ROLE_FIELD:\"Role *\",EMAIL_USER:\"Email *\",USER_FIRST_NAME:\"First Name *\",USER_LAST_NAME:\"Last Name *\",USER_PHONE_NO:\"Phone Number *\",USER_START_DATE:\"Start Date *\",HQ_NAME_TARGET:\"HQ Name\",ENTER_PERCENTAGE:\"Enter Percentage\",CONFIGURE_PUSH_NOTIFICATION:\"Configure Push Notification\",TITLE:\"Title\",DESCRIPTION:\"Description\",TITLE_PLACEHOLDER:\"Hey!! Check out the event plan here\",DESCRIPTION_PLACEHOLDER:'\"Please take a moment to review the event plan and confirm your attendance. We look forward to seeing you there!\"',CRITERIA:\"Criteria\",FREQUENCY:\"Frequency\",FREQUENCY_MINUTES:\"Frequency (Minutes)\",DATE:\"Date\",TIME:\"Time\",DAY:\"Day\",DAY_OF_MONTH:\"Day of Month\",SUBSCRIPTION:\"Subscription\",SUBSCRIBED:\"Subscribed\",UNSUBSCRIBED:\"Unsubscribed\",RETAILER_COUNT:\"Total Retailers Count\",RETAILER_DETAILS:\"Retailer Details\",OWNER_NAME:\"Owner Name\",SHOP_NAME:\"Shop Name\",RETAILER_CATEGORY:\"Retailer Category\",MOBILE_NUMBER:\"Mobile Number\",PIN_CODE:\"Pin Code\",PARTNER_CODE:\"Partner code\",RETAILER_STATUS:\"Retailer Status\",MDO_HQ:\"FO HQ\",TM_HQ:\"TM HQ\",UPLOAD_RETAILER:\"Upload Retailer\",SELECT_HQ_NAME:\"Select HQ Name\",HQ_NAMED:\"HQ Name*\",DOWNLOAD_TEMEPLATE:\"Download the sample template\",UPLOAD_FILE:\"Upload the file after filling up the data in sample template\",KNOW_MORE:\"Know More\",COMPLETED:\"Completed\",FAILED:\"Failed\",INPROGRESS:\"In Progress\",FILE_UPLOAD_ERROR:\"Error found in uploaded file\",ERROR_DESCRIPTION:\"Please fix the error(s) listed below and upload the file again\",REUPLOAD_TEXT:\"Please rectify the erroneous data in the file and re-upload\",DOWNLOAD:\"Download\",UPLOAD_RETAILERS:\"Upload Retailer\",CHANGE_MOBILE_NUMBER:\"Change Mobile Number\",EXISTING_MOBILE_NUMBER:\"Existing Mobile Number\",NEW_MOBILE_NUMBER:\"New Mobile Number\",ENTER_NUMBER:\"Enter Number\",ENTER_VERIFICATION_CODE:\"Enter Verification Code\",RESEND_OTP:\"Send Verification Code\",VERIFY:\"Verify\",PARTIAL_SUCCESS:\"Partial Success\",PERFORMANCE:\"PERFORMANCE\",OWNERNAME:\"Owner Name\",SHOPNAME:\"Shop Name\",MOBILENO:\"Mobile Number\",NOOFVISITS:\"No.of Visits\",ANNUAL_RETAILER_PLAN:\"Annual Retailer Plan\",TOTAL_ORDER_VALUE:\"Total Order Value\",TOTAL_COLLECTION:\"Total Collection\",TOTAL_LIQUIDATION:\"Total Liquidation\",TOTAL_PLACEMENT:\"Total Placement\",ORDER_DEFICIT:\"Order Deficit\",INVENTORY:\"Inventory\",EVENT_TYPES:\"Event Type\",EVENT_STATUS:\"Event Status\",PUBLISH_SIDE_HEADER:\"Publish forms based upon event types\",PUBLISH_SIDE_HEADER_PRODUCT:\"Publish forms based upon product demo types\",PRODUCT_DEMO_TYPES:\"Product Demo Type\",USER_ROLE_DROPDOWN_LABEL:\"User Role\",SALES_HIERARCHY_DROPDOWN_LABEL:\"Sales Hierarchy\",CONFIGURATIONS:\"Configurations\",UPLOAD_EVENT_TARGET_DAYS:\"Upload Event Target (Days)\",MANAGE_EVENT_TARGET:\"Manage Event Target (Days)\",ADD_EVENT_DAYS:\"Add Event (Days)\",MANAGE_EVENT_DAYS:\"Manage Event (Days)\",VIEW_EVENT_HISTORY:\"View Event History (Months)\",VIEW_EVENT_DAYS:\"View Event (Days)\",ATTENDANCE_TYPE:\"Attendance Type\",ENABLE_APPROVAL:\"Enable Attendance Approval\",WIP:\"WIP\",CONFIRMATION_TEXT:\"Are you sure, you want to discard the changes?\",EVENT_BASELINE_TYPE:\"Events Baseline Type\",SELECT_ATTENDANCE_MARKER:\"Select Attendance Marker\",VISIT_TYPE:\"Visit Type\",AUTO_SYNC:\"Auto Sync\",AUTO_SYNC_PLACEHOLDER:\"Enter Frequency\",ISSUE_SCREEN_MESSAGE:\"Sorry, we have run into an issue\",UPLOAD_EVENT_TARGET:\"Upload Event Target\",FILL_DETAILS:\"Fill up the details\",TARGET_LABEL:\"Target For*\",YEAR:\"Year*\",MONTH:\"Month*\",DMHQ:\"DMHQ\",DOWNLOAD_TEMPLATE:\"Download the sample template\",UPLOAD_DATA_SAMPLE:\"Upload the file after filling up the data in sample template\",CONFIGURATION_TYPE:\"Configuration Type*\",EDIT_EVENT_TARGET:\"Edit Event Target\",TARGET:\"Target*\",AVG_NO_OF_GROWERS_PER_EVENT:\"Avg No Growers per Event\",HELP_DESCRIPTION:\"Help Description\",FAQS:\"FAQs\",NO_DATA:\"No Data to Show\",SELECT_ATTENDANCE_APPROVER:\"Select Attendance Approver\",SELECT_APPROVER:\"Select Approver\",PAYCYCLE_APPROVAL_CONF:\"Paycycle Approval Configuration\",APPROVAL_DURATION:\"Approval Duration\",SELECT_DURATION:\"Select Duration\",APPROVAL_STARTDATE:\"Approval Start Date\",SELECT_STARTDATE:\"Select Start Date\",VIEW_ATTENDANCE_HISTORY:\"View Attendance History\",NO_OF_MONTHS:\"No. of Months\",SELECT_NO_OF_MONTHS:\"Select No. Of Months\",SELECT_MARKER:\"Select Marker\",SELECT_MARKER_LABEL:\"Select Attendance Marker\",DOWNLOAD_HOLIDAYS_LIST:\"Download Holidays List\",DOWNLOAD_DISTRIBUTOR_LIST:\"Download Distributor List\",TEMPLATE:\"Template\",UPLOAD_FAILED:\"Upload Failed\",CLICK_KNOW_MORE:\"Click to Know more\",PAYCYCLE_CONFIG:\"Paycycle Configuration\",NO_OF_DAYS:\"No.of Days\",BACK_WARD_DAYS:\"Backward (Days)\",FORWARD_DAYS:\"Forward (Days)\",WEEKLY_OFF:\"Weekly Off\",SELECT_DAY:\"Select Day\",EVENT_BASED_ATTENDANCE:\"Event Based Attendance\",PAST_ATTENDANCE_DAYS:\"Past Attendance Days\",LEAVE_DURATION:\"Leave Duration\",ATLEASET_SELECT_ONE:\"Please make sure at least one Event Type in the Event Based Attendance fields is greater than or equal to 1\",SELECT_SALESHIER_ROLE:\"Select Sales Hierarchy HQ\",TARGET_TYPE:\"Target Type\",SELECT_TYPE:\"Select Type\",YEARLY:\"Yearly\",TARGETs_UPLOAD_DURATION:\"Targets Upload Duration\",ACTUALS_UPLOAD_DURATION:\"Actuals Upload Duration\",SET_NNR_VALUE:\"Set NNR Value at\",NO_DATA_MSG:\"No HQ History Found\",ADD_BASELINE:\"Add Event Baseline\",EDIT_BASELINE:\"Edit Event Baseline\",SELECT_DMHQ:\"Select Head Quarter\",SELECT_EVENT_MASTER_TYPE:\"Select Event Master Type\",SELECT_EVENT_TYPE:\"Select Event Type\",SELECT_ROLE_TYPE:\"Select Role\",SELECT_CONFIG_TYPE:\"Select Configuration Type\",SELECT_YEAR:\"Select Year\",SELECT_MONTH:\"Select Month\",BASELINE_VALUE:\"Baseline Value\",SELECT_MAX_BASELINE:\"Select Max Baseline\",NO_OF_RETAILERS:\"No. Of Retailers\",NO_OF_GROWERS:\"No. of Growers\",SAVE_MESSAGE:\"Baseline Configuration Saved Successfully\",UPDATE_MESSAGE:\"Baseline Configuration Updated Successfully\",APPROVER_SAVE_TOAST_MESSAGE:\"Attendance Approver Configuration has been saved successfully for selected role\",REQ_DM_HQ_NAME:\"DMHQ Name is required\",REQ_EVENT_MASTER_TYPE:\"Event Master Type is required\",REQ_EVENT_TYPE:\"Event Type is required\",REQ_CONFIGURATION_TYPE:\"Configuration Type is required\",REQ_YEAR:\"Year is required\",REQ_MONTH:\"Month is required\",REQ_ROLE:\"Role is required\",MIN_BASELINE:\"Baseline Value should be atleast 1\",MAX_BASELINE:\"Baseline value can be max of 999\",REQ_BASELINE:\"Baseline value is required\",MIN_GROWERS:\"No. Of Growers should be atleast 1\",MAX_GROWERS:\"No. Of Growers can be max of 9999\",REQ_GROWERS:\"No. Of Growers is required\",MIN_RETAILERS:\"No. Of Retailers should be atleast 1\",MAX_RETAILERS:\"No. Of Retailers can be max of 999\",REQ_RETAILERS:\"No. Of Retailers is required\",REQ_MAX_BASELINE:\"Max Baseline is required\",TM_HQ_LABEL:\"TM HQ\",MDO_HQ_LABEL:\"MDO HQ\",YEAR_LABEL:\"Year\",TOTAL_TARGET_VOLUME:\"Total Target Volume(In Kg/Lt)\",TOTAL_TARGET_VALUE:\"Total Target Value(In Lakhs)\",TOTAL_ACTUAL_VOLUMES:\"Total Actual Volume(In Kg/Lt)\",TOTAL_ACTUAL_VALUE:\"Total Actual Value(In Lakhs)\",UPLOAD_TARGETS:\"Upload Targets\",UPLOAD_ACTUALS:\"Upload Actuals\",UPLOAD_LIQUIDATION_TARGET:\"Upload Liquidation Targets\",LIQUIDATION_TARGET:\"Liquidation Target\",LIQUIDATION_ACTUALS:\"Liquidation Actuals\",TMHQS:\"TM HQ\",SELECT_TMHQ:\"Select TM HQ\",UPLOAD_COMPLETED_TEMPLATE:\"Upload the completed template\",SELECT_STATUS:\"Select Status\",UPLOAD_LIQUIDATION_ACTUALS:\"Upload Liquidation Actuals\",DMHQS:\"DMHQ's\",DOWNLOAD_REPORT:\"Download Report\",DOWNLOAD_TEMPLATE_TARGETS:\"Download template to Add/Modify Targets\",DOWNLOAD_TEMPLATE_ACTUALS:\"Download template to Add/Modify Actuals\",NNRHQS:\"NNR HQ\",SUCCESS_TOAST_MSG:\"Please wait while we process the uploaded file. Check the status in 'My uploads' section in a few moments\",FAILURE_TOAST_MSG:\"File upload failed\",VALID_FILE_ERROR:\"Please upload valid template file\",UPLOAD_CONDITION_TEXT:\"Please upload downloaded template file\",TARGET_STATUS:\"Target Status\",UPLOAD_DEMO_DISPATCH:\"Upload Demo Courier Details\",SELECT_TMHQS:\"Select the TMHQ's\",SELECT:\"Select\",DISTRIBUTORS_MAPPED:\"Distributors Mapped:\",SELECT_DISTRIBUTORS:\"Select Distributors\",LIST_AVAILABLE_DISTRIBUTORS:\"List of Available Distributors\",SELECT_TM_HQ:\"Select TM HQ\",YEAR_SHARE:\"Year\",CONFIGURATION_NAME:\"Configuration Name\",IS_STARTING_DIGIT:\"is-starting-digit-valid\",MOBILE_NUMBER_START:\"Mobile number should start with 5, 6, 7, 8, or 9\",NO_SP_CHARACTERS:\"no-special-characters\",ZIP_REQUIRED:\"Zip Code is required\",ZIP_CODE_VALIDATION:\"Zip should not contain special characters or alphabets\",ZIP_CODE_MIN_MAX_VALUE:\"Zip Code must be minimum 1 and maximum 6 digits\",ZIP_CODE_START:\"Zip Code should not start with 0\",NOT_MARKED:\"Not Marked\",ABSENT:\"Absent\",APPLIED_LEAVES:\"Applied Leaves\",LEAVE:\"Leave\",SEARCH_BY_NAMES:\"Search by TM Name / Distributor / Crop / Status\",APPROVALS:\"Approvals\",ATTENDANCE:\"Attendance\",PRESENT:\"Present\",SELECT_LEAVE:\"Select Leave Type\",SELECT_ACTIVITY:\"Select Activity/Event\",COMMENTS:\"Comments\",SELECT_DATE_TO_EDIT:\"Please select any date to edit the attendance\",TOTAL_TMS:\"Total TMs\",APPROVED:\"Approved\",PENDING:\"Pending\",MANPOWER_REPORT:\"Manpower Report\",ATTENDANCE_APPROVAL:\"Attendance Approval\",FINAL_APPROVAL_CONFIRMATION:\"Are you sure you want to Final Approve the attendance?\",FINAL_APPROVED_SUCCESSFULLY:\" Attendance Final Approved Successfully\",CHOOSE_EVENT_BASELINE_TYPE:\"Choose Event Baseline Type\",TEMPLATES:\"Templates\",EDITABLE:\"Editable\",KEEP_MANDATORY:\"Keep Mandatory\",FEATURES:\"Features\",UPDATE_RETAILER_SOW_CONFIGURATION:\"Update Retailer SOW Configuration -\",ADD_RETAILER_SOW_CONFIGURATION:\"Add Retailer SOW Configuration\",GROWERS_ATTENDED:\"Growers Attended\",CONFIGURATION_DELETE_CONFIRMATION:\"Are you sure, You want to delete this Baseline Configuration?\",BACK_TO:\"Back to\",SEARCH_BY:\"Search by\",TARGETS_ARE_NOT_UPLOADED:\"Targets are not uploaded for any brands in this BU.\",NO_MATCHING_RECORDS:\"No Matching Records.\",FILE_UPLOADED:\"File Uploaded\",HOLIDAY_UPLOAD:\"Holiday Upload\",DISTRIBUTOR_UPLOAD:\"Distributor Upload\",GST_DOCUMENT:\"GST Document\",KYC_VERIFIED:\"KYC Verified\",TOTAL_WHOLESALE_PERCENTAGE:\"Total Wholesale Percentage (%)\",TOTAL_RETAILER_PERCENTAGE:\"Total Retailer Percentage (%)\",UPPERCASE_RETAILER_DETAILS:\"RETAILER DETAILS\",TYPING_HERE:\"Start Typing here...\",NOT_VERIFIED:\"Not Verified\",VIEW_DETAILS:\"View Details\",PLANNED_VALUE:\"Planned Value\",ACTUAL_VALUE:\"Actual Value\",ADD_BRAND_TARGET:\"Add Brand Target\",ENTER_SHOP_NAME:\"Enter Shop Name\",PLANNED_VOLUME:\"Planned Volume\",ENTER_PLANNED_VOLUME:\"Enter Planned Volume\",UPLOAD_BRAND_TARGET:\"Upload Brand Target\",UPDATE_BY_RETAILER:\"Update by Retailer\",REVIEW_BGP_DETAILS:\"Review BGP Details\",VIEW_BGP_DETAILS:\"View BGP Details\",TM:\"TM\",TM_APPROVED:\"TM Approved\",ACTIVE:\"Active\",INACTIVE:\"InActive\",UPLOAD_ANNUAL_TURNOVER:\"Upload Annual Turnover\",RETAILERS_TOUCHBASED:\"Retailers Touchbased\",MAPPED_RETAILERS:\"Mapped Retailers\",OUT_OF:\"Out of\",NUMBER:\"Number\",SAVED:\"Saved\",UPDATED:\"Updated\",YEAR_TEXT:\"Year\",ENABLE_EVENTS_BASELINING:\"Enable Events Baselining\",ENABLE_EVENTS:\"Enable Events\",ENABLE_IMAGE_UPLOAD:\"Enable Image Upload\",REQUEST_ID:\"Request ID\",MATERIAL_NAME:\"Material Name\",MATERIAL_CODE:\"Material Code\",COURIER_THROUGH:\"Courier Through\",COURIER_TRACKING_ID:\"Courier Tracking ID\",EXPECTED_DISPATCHED_DATE:\"Expected Dispatched Date\",EXPECTED_DELIVERY_DATE:\"Expected Delivery Date\",DISTRIBUTOR:\"Distributor\",MATERIAL:\"Material\",UPLOAD_TRACKING_DETAILS:\"Upload Tracking Details\",CREATED:\"Created\",DISPATCHED:\"Dispatched\",DMHQ_NAME:\"DMHQ Name\",MAXIMUM_BASELINE:\"Max Baseline\",AVG_GROWERS_PER_EVENT:\"Avg No. of Growers per Event\",NO_IMAGE_UPLOADED:\"No image uploaded\",GEO_LOCATION:\"Geo Location\",HISTORY:\"History\",DOCUMENTS:\"Documents\",LOWER_DOCUMENTS:\"documents\",EXPIRY_DATE:\"Expiry Date\",WHOLESALE_PERCENTAGE_OF_SALES:\"Total Wholesale Percentage (%) of Syngenta sales\",RETAILER_PERCENTAGE_OF_SALES:\"Total Retailer Percentage (%) of Syngenta sales\",SCANS_LIQUIDATION:\"SCANS & LIQUIDATION\",SHARE_OF_WALLET:\"Share of Wallet\",HQ_HIERARCHY_LABEL:\"HQ Hierarchy\",EDIT_ATTENDANCE:\"Edit Attendance\",FINAL_APPROVED:\"Final Approved\",FINAL_APPROVAL:\"Final Approval\",DOWNLOAD_LIQUIDATIONS:\"Download Liquidation Targets / Actuals Report\",DOWNLOAD_EVENT_ACTUALS:\"Download Event Actuals\",ADD_BASELINE_CONFIGURATION:\"Add Baseline Configuration\",DOWNLOAD_EVENT_TARGETS:\"Download Event Targets\",DOWNLOAD_LIQUIDATION_TARGET:\"Download Liquidation Target/Actuals\",REPLACE:\"Replace\",EDIT_DETAILS:\"Edit Details\",UPLOAD_PLAN:\"Upload Plan\",ADD_TARGET:\"Add Target\",APPROVE_REQUEST:\"Approve Request\",UPLOAD_FILE_TEXT:\"Upload File\",UPLOAD_TEXT:\"Upload\",DEACTIVATE:\"Deactivate\",ACTIVATE:\"Activate\",REJECT:\"Reject\",APPROVE:\"Approve\",SEARCH_BY_FIELDS:\"Search By First Name, Last Name, Phone Number\",SEARCH_BY_FIELDS_NAME:\"Search By Shop Name, Owner Name\",SEARCH_BY_CONFIGURATIONS:\"Search by Year / Configuration Name\",SEARCH_BY_HQ_NAME:\"Search by HQ Name Or User Name\",SEARCH_BY_BRANDNAME:\"Search by HQ Name Or Brand Name\",KYC_SEARCH:\"Search by MDO HQ, Owner Name / Shop Name / Mobile Number\",ORPHAN_SEARCH:\"Search by Owner Name,Shop Name, Mobile, Taluka\",RETAILERS_SEARCH:\"Search by Headquarter / Owner Name / Shop Name / Mobile No\",MDOS_SEARCH:\"Search By First Name, Last Name, Phone Number\",USERS_SEARCH:\"Search By Name\",DISTRIBUTORS_SEARCH:\"Search by Distributor Code / Distributor Name / CP Code / Seeds Code\",GEO_DATA_SEARCH:\"Search By Name\",HEAD_QUARTER_SEARCH:\"Search By HQ Name\",APPROVED_SUCCESSFULLY:\"Approved successfully\",MDO_ATTENDANCE_UPDATED_SUCCESSFULLY:\"MDO Attendance updated successfully\",DEMO_CONFIGURATIONS_SAVED_SUCCESSFULLY:\"Demo Tracking Configurations saved successfully\",LIQUIDATION_SAVED_SUCCESS:\"Liquidation Configurations are saved successfully.\",SHARE_OF_WALLET_CONFIGURATION_CREATED_SUCCESSFULLY:\"Share of Wallet Configuration created successfully\",SHARE_OF_WALLET_CONFIGURATION_UPDATED_SUCCESSFULLY:\"Share of Wallet Configuration updated successfully\",EVENT_UPDATED_SUCCESS:\"Event planning details updated successfully.\",EVENT_DELETED_SUCCESS:\"Event planning details deleted successfully.\",FILE_UPLOADED_SUCCESSFULLY:\"File Uploaded Successfully\",RETAILERS_BRANDS_ADDED:\"Retailers brands are added successfully\",RETAILERS_BRANDS_UPDATED:\"Retailers brands are updated successfully\",RETAILER_ACTIVATED_SUCCESSFULLY:\"Retailer was activated successfully\",RETAILER_DEACTIVATED_SUCCESSFULLY:\"Retailer was deactivated successfully\",RETAILER_DETAILS_APPROVED_SUCCESSFULLY:\"Retailer details approved successfully\",SHARE_OF_WALLET_DATA:\"Retailer Share of Wallet data\",SUCCESSFULLY:\"Successfully\",PERMISSIONS_UPDATED:\"Permissions Updated Successfully\",PERMISSIONS_SAVED:\"Permissions Saved Successfully\",DISTRIBUTORS_SAVED:\"Selected Distributors saved successfully\",WEEK_OF_DAYS_API_FAILED:\"Unable to fetch weekoff days\",PRESENT_LIST_API_FAILED:\"Unable to fetch present attendance list\",ATTENDANCE_LIST_API_FAILED:\"Failed to get Week Off/ Holiday and attendance list\",SAVE_GROWER:\"SAVE GROWERS API FAILED\",LIQUIDATION_SAVED_FAILED:\"Unable to save the configurartion\",LIQUIDATION_GET_FAILED:\"Unable to fetch configured Liquidation Targets Data\",FAILED_UPDATE:\"Failed to update\",NO_UPLOADS_LIST_DATA:\"No Uploads List Data available\",NO_ERROR_LOG_LIST_DATA:\"No ErrorLog List Data available\",SALES_HIERARCHY_API_FAILED:\"Unable to fetch sales hierarchy information\",NO_ATTENDANCE_DATA:\"No Attendance Approver Data available\",NO_PORTFOLIO_LIST:\"No portfolio list\",INCLUDE_ADMIN_CONFIGURATION:\"Please include the admin configuration\",ADMIN_ATTENDANCE_DATA_API_FAILED:\"Unable to fetch Admin Attendance Data\",DEMO_TRACKING_CONFIGURATIONS:\"Failed to Save Demo Tracking Configurations\",HIERARCHY_ROLE_API_FAILED:\"Unable to fetch sales Hierarchy role\",SAVE_EVENT_TARGET_FAILED:\"Unable to save the EventTarget Data\",GET_SALES_HIERARCHY_FAILED:\"Failed to get Sales Hierarchy\",GET_SALES_FAILED:\"Failed to get Selected Sales\",UNABLE_TO_SAVE:\"Unable to save the Data\",NO_DATA_RECEIVED_FROM_SERVER:\"No data received from the server.\",DOWNLOAD_FAILED:\"Download Template failed\",DOWNLOAD_MDO_FAILED:\"Download MDO failed\",UPLOAD_LIQUIDATION_ERROR:\"Unable to fetch Upload Liquidation Year Data\",NO_BRANDS_AVAILABLE:\"No Brand List Data available\",DATA_NOT_AVAILABLE:\"Data Not Available\",DMHQ_DATA_NOT_AVAILABLE:\"DMHQ data not available\",EVENT_MASTER_TYPES_NOT_AVAILABLE:\"Event Master types data not available\",PORTFOLIOS_NOT_AVAILABLE:\"Portfolio data not available\",EVENT_TYPES_DATA_NOT_AVAILABLE:\"Event types data not available\",ROLES_DATA_NOT_AVAILABLE:\"Roles data not available\",NO_BASELINE_CONFIG_DATA_AVAILABLE:\"No baseline config data available\",NO_BASELINE_DATA_AVAILABLE:\"No baseline Data available\",BASELINE_DELETE_API_FAILED:\"Baseline delete api failed\",NO_DATA_FOUND:\"No Data Found\",NO_UPLOADED_DOCUMENTS:\"No Uploaded Documents\",NO_ERRORLOGS:\"No ErrorLogs\",UPLOAD_LIQUIDATION_HQ_DATA_FAILED:\"Unable to fetch Upload Liquidation HQ Data\",UPLOAD_LIQUIDATION_PORTFOLIOS_DATA_FAILED:\"Unable to fetch Upload Liquidation Portfolio's Data\",UPLOAD_LIQUIDATION_NNRHQS_DATA_FAILED:\"Unable to fetch Upload Liquidation NNRHQ's Data\",NO_LIQUIDATION_DATA_AVAILABLE:\"No Liquidation Data available\",NO_LIST_AVAILABLE:\"No List Data available\",NO_FILTER_LIST_AVAILABLE:\"No Filter List Data available\",HOLIDAY_UPLOAD_FAILED:\"HolidayTemplate upload failed.\",ERROR_IN_HOLIDAYTEMPLATE:\"Error in uploading HolidayTemplate\",SUM_OF_WHOLESALE:\"The sum of Total Wholesale and Total Retailer fields must be 100\",NO_KYC_DATA_AVAILABLE:\"No KYC Data available\",UNABLE_TO_UPDATE:\"Unable to update\",NO_DATA_AVAILABLE:\"No Data available\",FAILED_TO_FETCH_RETAILER_PERFORMANCE:\"Failed to fetch retailer performance\",RETAILER_NOT_DEACTIVATED:\"Retailer is not deactivated. Please try again later\",RETAILER_NOT_ACTIVATED:\"Retailer is not activated. Please try again later\",UNABLE_TO_SAVE_RETAILER_SHARE_OF_WALLET:\"Unable to save the Retailer Share of Wallet\",NO_DISTRIBUTORS:\"No Distributors Data available\",ADD_GEOHIERARCHY_FAILED:\"ADD GEOHIERARCHY API FAILED\",GEOHIERARCHY_DATA_FAILED:\"FETCH GEOHIERARCHY DATA API FAILED\",Update_GEOHIERARCHY_FAILED:\"Update GEOHIERARCHY API FAILED\",SELECT_LEAVE_TYPE:\"Please select an Leave Type\",SELECT_EVENT:\"Please select an Activity / Event\",SELECT_COMMENT:\"Please select a Comment\",ROLE_SELECT:\"Please select role.\",APPROVER_REQUIRED:\"Attendance Approver Required\",APPROVAL_DURATION_REQUIRED:\"Approval Duration Required\",APPROVAL_START_DATE_REQUIRED:\"Approval Start Date Required\",MONTHS_REQUIRED:\"No Of Months Required\",START_DATE_REQUIRED:\"startDate Required\",END_DATE_REQUIRED:\"endDate Required\",NO_OF_DAYS_REQUIRED:\"noOfDays Required\",BACKWARD_DAYS_REQUIRED:\"backwardDays Required\",FORWARDDAYS_REQUIRED:\"forwardDays Required\",AT_LEAST_1_DAY:\"Week Off Day must have at least 1 day\",WEEK_DAY_REQUIRED:\"No Of WeekOffDay Required\",TOTAL_ANNUAL_LEAVES_COUNT:\"Attendance total annual leaves must be less than or equal to Attendance carry forward leaves annually\",SELECT_TEMPLATE:\"Please select a template to proceed.\",FREQUENCY_SHOULD_NOT_BE_ZERO:\"frequency should not be zero or less than zero\",FREQUENCY_SHOULD_NOT_BE_MORE_THAN_3_DIGITS:\"frequency should not be more than 3 digits\",REQ_CONFIGURATION_NAME:\"Configuration Name is Required\",REQ_START:\"Start Date is Required\",REQ_END:\"End Date is Required\",REQ_TMHQ:\"TM HQ is required\",VALID_EMAIL:\"Enter a valid email id\",REQ_EMAIL:\"Email id is required\",VALID_URL:\"Please enter a valid URL\",REQ_URL:\"URL is required\",REQ_HELPLINE:\"Helpline support message required\",REQ_RELEASE_NOTES:\"Release notes is required\",REQ_DOC:\"document is required\",REQ_IMAGES:\"Only Images(Jpg / JPEG, PNG) or PDF or Docx formats are supported\",REQ_COMMENTS:\"Comments are required for Rejection\",SELECT_ONE_DISTRIBUTOR:\"Please select atleast one distributor\",CHOOSE_ATTENDANCE_TYPE:\"Choose Attendance Type\",ATTENDANCE_APPROVAL_ENABLE:\"Enable or Disable Attendance Approval\",SELECT_PAYCYCLE_START_DATE:\"Select paycycle start date\",NOOF_PREVIOUS_MONTHS:\"No. of Previous months User can View Events Summary.\",NOOF_PREVIOUS_DAYS:\"No. of Previous days User can View events created.\",NOOF_PREVIOUS_DAYS_UPDATE_EVENT:\"No. of previous days User can Update an Event\",NOOF_PREVIOUS_DAYS_CREATE_EVENT:\"No. of previous days User can create an Event .\",NOOF_PREVIOUS_DAYS_UPDATE_CURRENT_MONTH:\"No. of days from current month start User can Update the Target.\",NOOF_DAYS_UPLOAD_CURRENT_MONTH:\"No. of days from current month start User can Upload the Target.\",MANAGE_EVENT_TARGETS_CLOSED:\"Manage Event Targets window has been closed. Please contact your Country Admin.\",LIST_OF_RETAILERS:\"List of Retailers\",MY_UPLOADS:\"My Uploads\",EVENT_TARGETS:\"Event Targets\",BASIC_CONFIGURATION:\"Basic Configuration\",APPROVER_CONFIGURATION:\"Approver Configuration\",LEAVES_CONFIGURATION:\"Leaves/Comp-off Configuration\",EVENT_TARGET:\"Event Target\",DISCUSSION_BOARD:\"Leaderboard/Discussion Board\",TARGET_DETAILS:\"Target/Actuals Details\",PUBLISH_EVENTS_TYPES:\"Publish forms based upon event types\",PUBLISH_GROWERS:\"Publish forms by selecting basic and advanced details\",PUBLISH_RETAILERS:\"Publish forms by selecting Basic and Advanced fields\",MIN:\"Min\",MAX:\"Max\",WARNING_MESSAGE:\"The Previous configuration for {{formType}} Form will be updated with new Configuration, please confirm.\",EVENTS:\"Events\",GROWERS:\"Growers\",RETAILERS:\"Retailers\",DEMO_TRACKING:\"Demo Tracking\",GEO:\"Geo\",DEMO_TRACKING_SUCCESS:\"Demo Tracking Configurations saved successfully\",DEMO_TRACKING_FAILED:\"Failed to Save Demo Tracking Configurations\",PLACEHOLDER_MIN:\"Enter minimum value\",PLACEHOLDER_MAX:\"Enter maximum value\",MIN_GREATER_THAN_MAX:\"Min is greater than Max\",MAX_LESSER_THAN_MIN:\"Max is lesser than Min\",TMHQ_NAME:\"TMHQ Name\",MDOHQ_ENDDATE:\"MDO HQ End Date\",MONTH_LABEL:\"Month\",TARGET_HEADER:\"Target\",AVG_GROWERS:\"Avg No. of Growers\",RETAILER_SEGMENT:\"Retailer Segment\",MOBILE_NO:\"Mobile No.\",APPROVAL_STATUS:\"Approval Status\",VERIFICATION_STATUS:\"Verification Status\",SOHQ_NAME:\"SOHQ Name\",PROVINCE:\"Province\",NOTIFICATION_REASON:\"Notification Reason\",FILE_NAME:\"File Name\",UPLOADED_ON:\"Uploaded On\",UPLOADED_FOR:\"Uploaded For\",PROCESSED_ON:\"Processed On\",ERROR:\"Error\",FAILURE_REASON:\"Failure Reason\",ROW_NUMBER:\"Row Number\",LINE:\"Line\",DATE_TIME:\"Date & Time\",EVENT_MASTER_TYPE:\"Event Master Type\",CONFIG_TYPE:\"Config Type\",HASH_GROWERS:\"#Growers\",HASH_RETAILERS:\"#Retailers\",ROLE_NAME:\"Role Name\",DISTRIBUTOR_CODE:\"Distributor Code\",DISTRIBUTOR_NAME:\"Distributor Name\",CP_CODE:\"CP Code\",SEEDS_CODE:\"Seeds Code\",PMIN_PACKETS:\"PMIN No.of packets\",DISPATCHED_PACKETS:\"Dispatched No.of packets\",PMIN_DISTRIBUTOR_CODE:\"PMIN Distributor Code\",SAKSHAM_DISTRIBUTOR_CODE:\"Saksham Distributor Code\",PLANNED_VALUE_IN_LAKHS:\"Planned Value (In Lakhs)\",ACTUAL_VALUE_LABEL:\"Actual Value(in Lakhs)\",ACHIEVEMENT:\"%Achievement(Value)\",GROWER_NAME:\"Grower Name\",NO_OF_PACKETS:\"No.of Packets\",ACTUAL_VOLUME_IN_KG:\"Actual Volume (in Kg/Lt)\",LIQUIDATION_PERCENTAGE:\"% Liquidation (volume)\",UPDATED_BY:\"Updated by\"},be=(a(62062),a(3362),a(5746),a(76031),a(47225)),_e=a(94692),Ce=a(96348),we=(a(28706),a(48598),a(54743),a(11745),a(38309),a(59089),a(68156),a(21489),a(81630),a(72170),a(75044),a(69539),a(31694),a(89955),a(33206),a(44496),a(66651),a(12887),a(19369),a(66812),a(8995),a(31575),a(36072),a(88747),a(28845),a(29423),a(57301),a(373),a(86614),a(41405),a(33684),a(62480),a(63545)),Se=\"ld-anonymous-user-key\",Te=function(){if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.randomUUID)return crypto.randomUUID();if(\"undefined\"!=typeof crypto&&\"function\"==typeof crypto.getRandomValues){var e=crypto.getRandomValues(new Uint8Array(16)),t=Array.from(e,function(e){return e.toString(16).padStart(2,\"0\")}).join(\"\");return\"\".concat(t.slice(0,8),\"-\").concat(t.slice(8,12),\"-4\").concat(t.slice(13,16),\"-\").concat(t.slice(16,20),\"-\").concat(t.slice(20,32))}return console.warn(\"Crypto API unavailable, using timestamp-based ID\"),\"anon-\".concat(Date.now(),\"-\").concat(performance.now().toString(36))},Oe=function(){if(void 0===globalThis.window)return Te();try{var e=localStorage.getItem(Se);if(e)return e;var t=Te();return localStorage.setItem(Se,t),t}catch(e){return Te()}},De=a(77576),Re=(0,n.lazy)(function(){return Promise.resolve().then(a.bind(a,28005))}),Ne=(0,n.lazy)(function(){return Promise.resolve().then(a.bind(a,76914))});const Le=r().memo((0,we.GS)({clientSideID:\"66cf292aa5c1400fef33564b\",context:{kind:\"user\",key:\"anonymous-\".concat(Oe()),anonymous:!0},reactOptions:{useCamelCaseFlagKeys:!1}})(function(e){var t=e.RBACRoutes,o=(0,S.zy)(),a=(0,S.Zp)(),i=(0,n.useContext)(be.v);return(0,n.useEffect)(function(){\"/\"!==o.pathname&&(null==i||i.onRouteChange({pathname:o.pathname,search:o.search}))},[o]),(0,n.useEffect)(function(){var e,t=null===(e=i.currentParentPath)||void 0===e||null===(e=e.pathname)||void 0===e?void 0:e.toLowerCase();t&&decodeURIComponent(o.pathname.toLowerCase())!==decodeURIComponent(t)&&a(i.currentParentPath)},[i.currentParentPath]),_e.Bt.subscribe(function(e){e.type===_e.mu.SESSIONS_EXPIRED&&e.payload&&(i.triggerToastMsg({message:\"Your session has expired. Please re-login to continue.\",type:\"warn\"}),setTimeout(function(){localStorage.clear(),sessionStorage.clear(),window.location.href=\"/\"},2e3))}),r().createElement(De.j,null,r().createElement(S.BV,null,r().createElement(S.qh,{element:r().createElement(S.C5,{to:Ce.fp.SmartAgro}),path:Ce.fp.EntryPath}),r().createElement(S.qh,{element:r().createElement(Re,{RBACControls:t}),path:Ce.fp.RootDashboard}),r().createElement(S.qh,{element:r().createElement(Re,{RBACControls:t}),path:Ce.fp.SmartAgro}),t.length>0&&t.map(function(e,o){var a,i;return r().createElement(S.qh,{key:\"route-\".concat(e.moduleName),path:\"pagenotfound\"===(null==e||null===(a=e.moduleName)||void 0===a?void 0:a.toLowerCase())?\"\".concat(e.path):\"\".concat(e.path,\"/*\"),element:r().createElement(n.Suspense,{fallback:null},r().createElement(e.RouteElement,{RBACControls:(i=e.moduleName,\"Dashboard\"===i||\"Entry\"===i||\"smartagro\"===i?t:e)}))})}),r().createElement(S.qh,{element:r().createElement(Ne,null),path:Ce.fp.PageNotFound})))}));var Pe=a(17630),Me=a(8085),xe=a(13075);function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ke=function(e){var t,o;(0,n.useEffect)(function(){a()},[]);var a=function(){var t,n,r,o,a,i=e.BackOfficeProps;(n=null==i||null===(t=i.globalStore)||void 0===t?void 0:t.User,r=null==i?void 0:i.baseurl,a={},a.domain=r,a.endPoint=\"\".concat(Me.p.GET_CONFIGURATION_VALUES,\"?moduleName=RETAILERS&keys=retailer_enable_kyc_verification\"),a.customHeaders={\"bu-id\":\"\".concat(null==n?void 0:n.selectedBusinessUnit.bu_id),\"country-code\":null==n||null===(o=n.selectedCountry)||void 0===o?void 0:o.countryCode,Authorization:\"Bearer \".concat(null==n?void 0:n.AccessToken),portfolio_code:\"DEFAULT\"},a.triggerLoader=false,(0,xe.AT)(\"get\",a,!0)).then(function(e){var t;console.log(e),null!=e&&e.length?i.globalStore.User.isEnableKYCVerifier=null===(t=e[0])||void 0===t?void 0:t.value:i.globalStore.User.isEnableKYCVerifier=\"false\"}).catch(function(e){console.error(\"An error occurred while fetching data:\",e)})};re.A.use(w.r9).init({resources:{en:{translation:de},id:{translation:pe},pk:{translation:Ee},ph:{translation:ye},kr:{translation:me},bd:{translation:le}},lng:\"\".concat(ne.FV[\"\".concat(null!==(t=null===(o=e.BackOfficeProps)||void 0===o||null===(o=o.globalStore)||void 0===o||null===(o=o.User)||void 0===o||null===(o=o.selectedCountry)||void 0===o||null===(o=o.countryCode)||void 0===o?void 0:o.toUpperCase())&&void 0!==t?t:\"IN\")]),fallbackLng:\"en\",interpolation:{escapeValue:!1}});var i,l,s=(i=(0,n.useState)([]),l=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(i,l)||function(e,t){if(e){if(\"string\"==typeof e)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(i,l)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),u=s[0],c=s[1];return(0,n.useEffect)(function(){var t,n,r=(0,Ce.ID)(null!==(t=null==e||null===(n=e.getUserRoleControls())||void 0===n?void 0:n.module_access_information_dto_list)&&void 0!==t?t:[]);c(r)},[]),r().createElement(r().StrictMode,null,r().createElement(C,{theme:Pe.w},r().createElement(S.fS,null,r().createElement(be.v.Provider,{value:e},r().createElement(ee,null,r().createElement(Le,{RBACRoutes:u}))))))}})(),i})());\n//# sourceMappingURL=syngentasaksham.js.map","/**\n * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v27.3.0\n * @link https://www.ag-grid.com/\n' * @license MIT\n */\n\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/**\n * If value is undefined, null or blank, returns null, otherwise returns the value\n * @param {T} value\n * @returns {T | null}\n */\nfunction makeNull(value) {\n    if (value == null || value === '') {\n        return null;\n    }\n    return value;\n}\nfunction exists(value, allowEmptyString) {\n    if (allowEmptyString === void 0) { allowEmptyString = false; }\n    return value != null && (value !== '' || allowEmptyString);\n}\nfunction missing(value) {\n    return !exists(value);\n}\nfunction missingOrEmpty(value) {\n    return value == null || value.length === 0;\n}\nfunction toStringOrNull(value) {\n    return value != null && typeof value.toString === 'function' ? value.toString() : null;\n}\n// for parsing html attributes, where we want empty strings and missing attributes to be undefined\nfunction attrToNumber(value) {\n    if (value === undefined) {\n        // undefined or empty means ignore the value\n        return;\n    }\n    if (value === null || value === '') {\n        // null or blank means clear\n        return null;\n    }\n    if (typeof value === 'number') {\n        return isNaN(value) ? undefined : value;\n    }\n    var valueParsed = parseInt(value, 10);\n    return isNaN(valueParsed) ? undefined : valueParsed;\n}\n// for parsing html attributes, where we want empty strings and missing attributes to be undefined\nfunction attrToBoolean(value) {\n    if (value === undefined) {\n        // undefined or empty means ignore the value\n        return;\n    }\n    if (value === null || value === '') {\n        // null means clear\n        return false;\n    }\n    if (typeof value === 'boolean') {\n        // if simple boolean, return the boolean\n        return value;\n    }\n    // if equal to the string 'true' (ignoring case) then return true\n    return (/true/i).test(value);\n}\n// for parsing html attributes, where we want empty strings and missing attributes to be undefined\nfunction attrToString(value) {\n    if (value == null || value === '') {\n        return;\n    }\n    return value;\n}\n/** @deprecated */\nfunction referenceCompare(left, right) {\n    if (left == null && right == null) {\n        return true;\n    }\n    if (left == null && right != null) {\n        return false;\n    }\n    if (left != null && right == null) {\n        return false;\n    }\n    return left === right;\n}\nfunction jsonEquals(val1, val2) {\n    var val1Json = val1 ? JSON.stringify(val1) : null;\n    var val2Json = val2 ? JSON.stringify(val2) : null;\n    return val1Json === val2Json;\n}\nfunction defaultComparator(valueA, valueB, accentedCompare) {\n    if (accentedCompare === void 0) { accentedCompare = false; }\n    var valueAMissing = valueA == null;\n    var valueBMissing = valueB == null;\n    // this is for aggregations sum and avg, where the result can be a number that is wrapped.\n    // if we didn't do this, then the toString() value would be used, which would result in\n    // the strings getting used instead of the numbers.\n    if (valueA && valueA.toNumber) {\n        valueA = valueA.toNumber();\n    }\n    if (valueB && valueB.toNumber) {\n        valueB = valueB.toNumber();\n    }\n    if (valueAMissing && valueBMissing) {\n        return 0;\n    }\n    if (valueAMissing) {\n        return -1;\n    }\n    if (valueBMissing) {\n        return 1;\n    }\n    function doQuickCompare(a, b) {\n        return (a > b ? 1 : (a < b ? -1 : 0));\n    }\n    if (typeof valueA !== 'string') {\n        return doQuickCompare(valueA, valueB);\n    }\n    if (!accentedCompare) {\n        return doQuickCompare(valueA, valueB);\n    }\n    try {\n        // using local compare also allows chinese comparisons\n        return valueA.localeCompare(valueB);\n    }\n    catch (e) {\n        // if something wrong with localeCompare, eg not supported\n        // by browser, then just continue with the quick one\n        return doQuickCompare(valueA, valueB);\n    }\n}\nfunction values(object) {\n    if (object instanceof Set || object instanceof Map) {\n        var arr_1 = [];\n        object.forEach(function (value) { return arr_1.push(value); });\n        return arr_1;\n    }\n    return Object.values(object);\n}\n\nvar GenericUtils = /*#__PURE__*/Object.freeze({\n    makeNull: makeNull,\n    exists: exists,\n    missing: missing,\n    missingOrEmpty: missingOrEmpty,\n    toStringOrNull: toStringOrNull,\n    attrToNumber: attrToNumber,\n    attrToBoolean: attrToBoolean,\n    attrToString: attrToString,\n    referenceCompare: referenceCompare,\n    jsonEquals: jsonEquals,\n    defaultComparator: defaultComparator,\n    values: values\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar ColumnKeyCreator = /** @class */ (function () {\n    function ColumnKeyCreator() {\n        this.existingKeys = {};\n    }\n    ColumnKeyCreator.prototype.addExistingKeys = function (keys) {\n        for (var i = 0; i < keys.length; i++) {\n            this.existingKeys[keys[i]] = true;\n        }\n    };\n    ColumnKeyCreator.prototype.getUniqueKey = function (colId, colField) {\n        // in case user passed in number for colId, convert to string\n        colId = toStringOrNull(colId);\n        var count = 0;\n        while (true) {\n            var idToTry = void 0;\n            if (colId) {\n                idToTry = colId;\n                if (count !== 0) {\n                    idToTry += '_' + count;\n                }\n            }\n            else if (colField) {\n                idToTry = colField;\n                if (count !== 0) {\n                    idToTry += '_' + count;\n                }\n            }\n            else {\n                idToTry = '' + count;\n            }\n            if (!this.existingKeys[idToTry]) {\n                this.existingKeys[idToTry] = true;\n                return idToTry;\n            }\n            count++;\n        }\n    };\n    return ColumnKeyCreator;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction iterateObject(object, callback) {\n    if (object == null) {\n        return;\n    }\n    if (Array.isArray(object)) {\n        object.forEach(function (value, index) { return callback(\"\" + index, value); });\n    }\n    else {\n        Object.keys(object).forEach(function (key) { return callback(key, object[key]); });\n    }\n}\nfunction cloneObject(object) {\n    var copy = {};\n    var keys = Object.keys(object);\n    for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        var value = object[key];\n        copy[key] = value;\n    }\n    return copy;\n}\nfunction deepCloneObject(object) {\n    return JSON.parse(JSON.stringify(object));\n}\n// returns copy of an object, doing a deep clone of any objects with that object.\n// this is used for eg creating copies of Column Definitions, where we want to\n// deep copy all objects, but do not want to deep copy functions (eg when user provides\n// a function or class for colDef.cellRenderer)\nfunction deepCloneDefinition(object, keysToSkip) {\n    if (!object) {\n        return;\n    }\n    var obj = object;\n    var res = {};\n    Object.keys(obj).forEach(function (key) {\n        if (keysToSkip && keysToSkip.indexOf(key) >= 0) {\n            return;\n        }\n        var value = obj[key];\n        // 'simple object' means a bunch of key/value pairs, eg {filter: 'myFilter'}. it does\n        // NOT include the following:\n        // 1) arrays\n        // 2) functions or classes (eg ColumnAPI instance)\n        var sourceIsSimpleObject = isNonNullObject(value) && value.constructor === Object;\n        if (sourceIsSimpleObject) {\n            res[key] = deepCloneDefinition(value);\n        }\n        else {\n            res[key] = value;\n        }\n    });\n    return res;\n}\nfunction getProperty(object, key) {\n    return object[key];\n}\nfunction setProperty(object, key, value) {\n    object[key] = value;\n}\n/**\n * Will copy the specified properties from `source` into the equivalent properties on `target`, ignoring properties with\n * a value of `undefined`.\n */\nfunction copyPropertiesIfPresent(source, target) {\n    var properties = [];\n    for (var _i = 2; _i < arguments.length; _i++) {\n        properties[_i - 2] = arguments[_i];\n    }\n    properties.forEach(function (p) { return copyPropertyIfPresent(source, target, p); });\n}\n/**\n * Will copy the specified property from `source` into the equivalent property on `target`, unless the property has a\n * value of `undefined`. If a transformation is provided, it will be applied to the value before being set on `target`.\n */\nfunction copyPropertyIfPresent(source, target, property, transform) {\n    var value = getProperty(source, property);\n    if (value !== undefined) {\n        setProperty(target, property, transform ? transform(value) : value);\n    }\n}\nfunction getAllKeysInObjects(objects) {\n    var allValues = {};\n    objects.filter(function (obj) { return obj != null; }).forEach(function (obj) {\n        Object.keys(obj).forEach(function (key) { return allValues[key] = null; });\n    });\n    return Object.keys(allValues);\n}\nfunction getAllValuesInObject(obj) {\n    if (!obj) {\n        return [];\n    }\n    var anyObject = Object;\n    if (typeof anyObject.values === 'function') {\n        return anyObject.values(obj);\n    }\n    var ret = [];\n    for (var key in obj) {\n        if (obj.hasOwnProperty(key) && obj.propertyIsEnumerable(key)) {\n            ret.push(obj[key]);\n        }\n    }\n    return ret;\n}\nfunction mergeDeep(dest, source, copyUndefined, makeCopyOfSimpleObjects) {\n    if (copyUndefined === void 0) { copyUndefined = true; }\n    if (makeCopyOfSimpleObjects === void 0) { makeCopyOfSimpleObjects = false; }\n    if (!exists(source)) {\n        return;\n    }\n    iterateObject(source, function (key, sourceValue) {\n        var destValue = dest[key];\n        if (destValue === sourceValue) {\n            return;\n        }\n        // when creating params, we don't want to just copy objects over. otherwise merging ColDefs (eg DefaultColDef\n        // and Column Types) would result in params getting shared between objects.\n        // by putting an empty value into destValue first, it means we end up copying over values from\n        // the source object, rather than just copying in the source object in it's entirety.\n        if (makeCopyOfSimpleObjects) {\n            var objectIsDueToBeCopied = destValue == null && sourceValue != null;\n            if (objectIsDueToBeCopied) {\n                // 'simple object' means a bunch of key/value pairs, eg {filter: 'myFilter'}, as opposed\n                // to a Class instance (such as ColumnAPI instance).\n                var sourceIsSimpleObject = typeof sourceValue === 'object' && sourceValue.constructor === Object;\n                var dontCopy = sourceIsSimpleObject;\n                if (dontCopy) {\n                    destValue = {};\n                    dest[key] = destValue;\n                }\n            }\n        }\n        if (isNonNullObject(sourceValue) && isNonNullObject(destValue) && !Array.isArray(destValue)) {\n            mergeDeep(destValue, sourceValue, copyUndefined, makeCopyOfSimpleObjects);\n        }\n        else if (copyUndefined || sourceValue !== undefined) {\n            dest[key] = sourceValue;\n        }\n    });\n}\nfunction missingOrEmptyObject(value) {\n    return missing(value) || Object.keys(value).length === 0;\n}\nfunction get(source, expression, defaultValue) {\n    if (source == null) {\n        return defaultValue;\n    }\n    var keys = expression.split('.');\n    var objectToRead = source;\n    while (keys.length > 1) {\n        objectToRead = objectToRead[keys.shift()];\n        if (objectToRead == null) {\n            return defaultValue;\n        }\n    }\n    var value = objectToRead[keys[0]];\n    return value != null ? value : defaultValue;\n}\nfunction set(target, expression, value) {\n    if (target == null) {\n        return;\n    }\n    var keys = expression.split('.');\n    var objectToUpdate = target;\n    while (keys.length > 1) {\n        objectToUpdate = objectToUpdate[keys.shift()];\n        if (objectToUpdate == null) {\n            return;\n        }\n    }\n    objectToUpdate[keys[0]] = value;\n}\nfunction deepFreeze(object) {\n    Object.freeze(object);\n    values(object).forEach(function (v) {\n        if (isNonNullObject(v) || typeof v === 'function') {\n            deepFreeze(v);\n        }\n    });\n    return object;\n}\nfunction getValueUsingField(data, field, fieldContainsDots) {\n    if (!field || !data) {\n        return;\n    }\n    // if no '.', then it's not a deep value\n    if (!fieldContainsDots) {\n        return data[field];\n    }\n    // otherwise it is a deep value, so need to dig for it\n    var fields = field.split('.');\n    var currentObject = data;\n    for (var i = 0; i < fields.length; i++) {\n        if (currentObject == null) {\n            return undefined;\n        }\n        currentObject = currentObject[fields[i]];\n    }\n    return currentObject;\n}\n// used by ColumnAPI and GridAPI to remove all references, so keeping grid in memory resulting in a\n// memory leak if user is not disposing of the GridAPI or ColumnApi references\nfunction removeAllReferences(obj, objectName) {\n    Object.keys(obj).forEach(function (key) {\n        var value = obj[key];\n        // we want to replace all the @autowired services, which are objects. any simple types (boolean, string etc)\n        // we don't care about\n        if (typeof value === 'object') {\n            obj[key] = undefined;\n        }\n    });\n    var proto = Object.getPrototypeOf(obj);\n    var properties = {};\n    Object.keys(proto).forEach(function (key) {\n        var value = proto[key];\n        // leave all basic types - this is needed for GridAPI to leave the \"destroyed: boolean\" attribute alone\n        if (typeof value === 'function') {\n            var func = function () {\n                console.warn(\"AG Grid: \" + objectName + \" function \" + key + \"() cannot be called as the grid has been destroyed.\\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\\n                     when the grid is destroyed.\");\n            };\n            properties[key] = { value: func, writable: true };\n        }\n    });\n    Object.defineProperties(obj, properties);\n}\nfunction isNonNullObject(value) {\n    return typeof value === 'object' && value !== null;\n}\n\nvar ObjectUtils = /*#__PURE__*/Object.freeze({\n    iterateObject: iterateObject,\n    cloneObject: cloneObject,\n    deepCloneObject: deepCloneObject,\n    deepCloneDefinition: deepCloneDefinition,\n    getProperty: getProperty,\n    setProperty: setProperty,\n    copyPropertiesIfPresent: copyPropertiesIfPresent,\n    copyPropertyIfPresent: copyPropertyIfPresent,\n    getAllKeysInObjects: getAllKeysInObjects,\n    getAllValuesInObject: getAllValuesInObject,\n    mergeDeep: mergeDeep,\n    missingOrEmptyObject: missingOrEmptyObject,\n    get: get,\n    set: set,\n    deepFreeze: deepFreeze,\n    getValueUsingField: getValueUsingField,\n    removeAllReferences: removeAllReferences,\n    isNonNullObject: isNonNullObject\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar FUNCTION_STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\nvar FUNCTION_ARGUMENT_NAMES = /([^\\s,]+)/g;\nvar doOnceFlags = {};\n/**\n * If the key was passed before, then doesn't execute the func\n * @param {Function} func\n * @param {string} key\n */\nfunction doOnce(func, key) {\n    if (doOnceFlags[key]) {\n        return;\n    }\n    func();\n    doOnceFlags[key] = true;\n}\nfunction getFunctionName(funcConstructor) {\n    // for every other browser in the world\n    if (funcConstructor.name) {\n        return funcConstructor.name;\n    }\n    // for the pestilence that is ie11\n    var matches = /function\\s+([^\\(]+)/.exec(funcConstructor.toString());\n    return matches && matches.length === 2 ? matches[1].trim() : null;\n}\n/** @deprecated */\nfunction getFunctionParameters(func) {\n    var fnStr = func.toString().replace(FUNCTION_STRIP_COMMENTS, '');\n    return fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).match(FUNCTION_ARGUMENT_NAMES) || [];\n}\nfunction isFunction(val) {\n    return !!(val && val.constructor && val.call && val.apply);\n}\nfunction executeInAWhile(funcs) {\n    executeAfter(funcs, 400);\n}\nvar executeNextVMTurnFuncs = [];\nvar executeNextVMTurnPending = false;\nfunction executeNextVMTurn(func) {\n    executeNextVMTurnFuncs.push(func);\n    if (executeNextVMTurnPending) {\n        return;\n    }\n    executeNextVMTurnPending = true;\n    window.setTimeout(function () {\n        var funcsCopy = executeNextVMTurnFuncs.slice();\n        executeNextVMTurnFuncs.length = 0;\n        executeNextVMTurnPending = false;\n        funcsCopy.forEach(function (func) { return func(); });\n    }, 0);\n}\nfunction executeAfter(funcs, milliseconds) {\n    if (milliseconds === void 0) { milliseconds = 0; }\n    if (funcs.length > 0) {\n        window.setTimeout(function () { return funcs.forEach(function (func) { return func(); }); }, milliseconds);\n    }\n}\n/**\n * from https://stackoverflow.com/questions/24004791/can-someone-explain-the-debounce-function-in-javascript\n * @param {Function} func The function to be debounced\n * @param {number} wait The time in ms to debounce\n * @param {boolean} immediate If it should run immediately or wait for the initial debounce delay\n * @return {Function} The debounced function\n */\nfunction debounce(func, wait, immediate) {\n    if (immediate === void 0) { immediate = false; }\n    // 'private' variable for instance\n    // The returned function will be able to reference this due to closure.\n    // Each call to the returned function will share this common timer.\n    var timeout;\n    // Calling debounce returns a new anonymous function\n    return function () {\n        var args = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            args[_i] = arguments[_i];\n        }\n        // reference the context and args for the setTimeout function\n        var context = this;\n        // Should the function be called now? If immediate is true\n        //   and not already in a timeout then the answer is: Yes\n        var callNow = immediate && !timeout;\n        // This is the basic debounce behaviour where you can call this\n        //   function several times, but it will only execute once\n        //   [before or after imposing a delay].\n        //   Each time the returned function is called, the timer starts over.\n        window.clearTimeout(timeout);\n        // Set the new timeout\n        timeout = window.setTimeout(function () {\n            // Inside the timeout function, clear the timeout variable\n            // which will let the next execution run when in 'immediate' mode\n            timeout = null;\n            // Check if the function already ran with the immediate flag\n            if (!immediate) {\n                // Call the original function with apply\n                // apply lets you define the 'this' object as well as the arguments\n                //    (both captured before setTimeout)\n                func.apply(context, args);\n            }\n        }, wait);\n        // Immediate mode and no wait timer? Execute the function..\n        if (callNow) {\n            func.apply(context, args);\n        }\n    };\n}\n/**\n * @param {Function} func The function to be throttled\n * @param {number} wait The time in ms to throttle\n * @return {Function} The throttled function\n */\nfunction throttle(func, wait) {\n    var previousCall = 0;\n    return function () {\n        var args = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            args[_i] = arguments[_i];\n        }\n        var context = this;\n        var currentCall = new Date().getTime();\n        if (currentCall - previousCall < wait) {\n            return;\n        }\n        previousCall = currentCall;\n        func.apply(context, args);\n    };\n}\nfunction waitUntil(condition, callback, timeout, timeoutMessage) {\n    if (timeout === void 0) { timeout = 100; }\n    var timeStamp = new Date().getTime();\n    var interval = null;\n    var executed = false;\n    var internalCallback = function () {\n        var reachedTimeout = ((new Date().getTime()) - timeStamp) > timeout;\n        if (condition() || reachedTimeout) {\n            callback();\n            executed = true;\n            if (interval != null) {\n                window.clearInterval(interval);\n                interval = null;\n            }\n            if (reachedTimeout && timeoutMessage) {\n                console.warn(timeoutMessage);\n            }\n        }\n    };\n    internalCallback();\n    if (!executed) {\n        interval = window.setInterval(internalCallback, 10);\n    }\n}\nfunction compose() {\n    var fns = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        fns[_i] = arguments[_i];\n    }\n    return function (arg) { return fns.reduce(function (composed, f) { return f(composed); }, arg); };\n}\nfunction callIfPresent(func) {\n    if (func) {\n        func();\n    }\n}\n\nvar FunctionUtils = /*#__PURE__*/Object.freeze({\n    doOnce: doOnce,\n    getFunctionName: getFunctionName,\n    getFunctionParameters: getFunctionParameters,\n    isFunction: isFunction,\n    executeInAWhile: executeInAWhile,\n    executeNextVMTurn: executeNextVMTurn,\n    executeAfter: executeAfter,\n    debounce: debounce,\n    throttle: throttle,\n    waitUntil: waitUntil,\n    compose: compose,\n    callIfPresent: callIfPresent\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar Context = /** @class */ (function () {\n    function Context(params, logger) {\n        this.beanWrappers = {};\n        this.destroyed = false;\n        if (!params || !params.beanClasses) {\n            return;\n        }\n        this.contextParams = params;\n        this.logger = logger;\n        this.logger.log(\">> creating ag-Application Context\");\n        this.createBeans();\n        var beanInstances = this.getBeanInstances();\n        this.wireBeans(beanInstances);\n        this.logger.log(\">> ag-Application Context ready - component is alive\");\n    }\n    Context.prototype.getBeanInstances = function () {\n        return values(this.beanWrappers).map(function (beanEntry) { return beanEntry.beanInstance; });\n    };\n    Context.prototype.createBean = function (bean, afterPreCreateCallback) {\n        if (!bean) {\n            throw Error(\"Can't wire to bean since it is null\");\n        }\n        this.wireBeans([bean], afterPreCreateCallback);\n        return bean;\n    };\n    Context.prototype.wireBeans = function (beanInstances, afterPreCreateCallback) {\n        this.autoWireBeans(beanInstances);\n        this.methodWireBeans(beanInstances);\n        this.callLifeCycleMethods(beanInstances, 'preConstructMethods');\n        // the callback sets the attributes, so the component has access to attributes\n        // before postConstruct methods in the component are executed\n        if (exists(afterPreCreateCallback)) {\n            beanInstances.forEach(afterPreCreateCallback);\n        }\n        this.callLifeCycleMethods(beanInstances, 'postConstructMethods');\n    };\n    Context.prototype.createBeans = function () {\n        var _this = this;\n        // register all normal beans\n        this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this));\n        // register override beans, these will overwrite beans above of same name\n        // instantiate all beans - overridden beans will be left out\n        iterateObject(this.beanWrappers, function (key, beanEntry) {\n            var constructorParamsMeta;\n            if (beanEntry.bean.__agBeanMetaData && beanEntry.bean.__agBeanMetaData.autowireMethods && beanEntry.bean.__agBeanMetaData.autowireMethods.agConstructor) {\n                constructorParamsMeta = beanEntry.bean.__agBeanMetaData.autowireMethods.agConstructor;\n            }\n            var constructorParams = _this.getBeansForParameters(constructorParamsMeta, beanEntry.bean.name);\n            var newInstance = applyToConstructor(beanEntry.bean, constructorParams);\n            beanEntry.beanInstance = newInstance;\n        });\n        var createdBeanNames = Object.keys(this.beanWrappers).join(', ');\n        this.logger.log(\"created beans: \" + createdBeanNames);\n    };\n    // tslint:disable-next-line\n    Context.prototype.createBeanWrapper = function (BeanClass) {\n        var metaData = BeanClass.__agBeanMetaData;\n        if (!metaData) {\n            var beanName = void 0;\n            if (BeanClass.prototype.constructor) {\n                beanName = getFunctionName(BeanClass.prototype.constructor);\n            }\n            else {\n                beanName = \"\" + BeanClass;\n            }\n            console.error(\"Context item \" + beanName + \" is not a bean\");\n            return;\n        }\n        var beanEntry = {\n            bean: BeanClass,\n            beanInstance: null,\n            beanName: metaData.beanName\n        };\n        this.beanWrappers[metaData.beanName] = beanEntry;\n    };\n    Context.prototype.autoWireBeans = function (beanInstances) {\n        var _this = this;\n        beanInstances.forEach(function (beanInstance) {\n            _this.forEachMetaDataInHierarchy(beanInstance, function (metaData, beanName) {\n                var attributes = metaData.agClassAttributes;\n                if (!attributes) {\n                    return;\n                }\n                attributes.forEach(function (attribute) {\n                    var otherBean = _this.lookupBeanInstance(beanName, attribute.beanName, attribute.optional);\n                    beanInstance[attribute.attributeName] = otherBean;\n                });\n            });\n        });\n    };\n    Context.prototype.methodWireBeans = function (beanInstances) {\n        var _this = this;\n        beanInstances.forEach(function (beanInstance) {\n            _this.forEachMetaDataInHierarchy(beanInstance, function (metaData, beanName) {\n                iterateObject(metaData.autowireMethods, function (methodName, wireParams) {\n                    // skip constructor, as this is dealt with elsewhere\n                    if (methodName === \"agConstructor\") {\n                        return;\n                    }\n                    var initParams = _this.getBeansForParameters(wireParams, beanName);\n                    beanInstance[methodName].apply(beanInstance, initParams);\n                });\n            });\n        });\n    };\n    Context.prototype.forEachMetaDataInHierarchy = function (beanInstance, callback) {\n        var prototype = Object.getPrototypeOf(beanInstance);\n        while (prototype != null) {\n            var constructor = prototype.constructor;\n            if (constructor.hasOwnProperty('__agBeanMetaData')) {\n                var metaData = constructor.__agBeanMetaData;\n                var beanName = this.getBeanName(constructor);\n                callback(metaData, beanName);\n            }\n            prototype = Object.getPrototypeOf(prototype);\n        }\n    };\n    Context.prototype.getBeanName = function (constructor) {\n        if (constructor.__agBeanMetaData && constructor.__agBeanMetaData.beanName) {\n            return constructor.__agBeanMetaData.beanName;\n        }\n        var constructorString = constructor.toString();\n        var beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n        return beanName;\n    };\n    Context.prototype.getBeansForParameters = function (parameters, beanName) {\n        var _this = this;\n        var beansList = [];\n        if (parameters) {\n            iterateObject(parameters, function (paramIndex, otherBeanName) {\n                var otherBean = _this.lookupBeanInstance(beanName, otherBeanName);\n                beansList[Number(paramIndex)] = otherBean;\n            });\n        }\n        return beansList;\n    };\n    Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {\n        if (optional === void 0) { optional = false; }\n        if (beanName === \"context\") {\n            return this;\n        }\n        if (this.contextParams.providedBeanInstances && this.contextParams.providedBeanInstances.hasOwnProperty(beanName)) {\n            return this.contextParams.providedBeanInstances[beanName];\n        }\n        var beanEntry = this.beanWrappers[beanName];\n        if (beanEntry) {\n            return beanEntry.beanInstance;\n        }\n        if (!optional) {\n            console.error(\"AG Grid: unable to find bean reference \" + beanName + \" while initialising \" + wiringBean);\n        }\n        return null;\n    };\n    Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {\n        var _this = this;\n        beanInstances.forEach(function (beanInstance) { return _this.callLifeCycleMethodsOnBean(beanInstance, lifeCycleMethod); });\n    };\n    Context.prototype.callLifeCycleMethodsOnBean = function (beanInstance, lifeCycleMethod, methodToIgnore) {\n        // putting all methods into a map removes duplicates\n        var allMethods = {};\n        // dump methods from each level of the metadata hierarchy\n        this.forEachMetaDataInHierarchy(beanInstance, function (metaData) {\n            var methods = metaData[lifeCycleMethod];\n            if (methods) {\n                methods.forEach(function (methodName) {\n                    if (methodName != methodToIgnore) {\n                        allMethods[methodName] = true;\n                    }\n                });\n            }\n        });\n        var allMethodsList = Object.keys(allMethods);\n        allMethodsList.forEach(function (methodName) { return beanInstance[methodName](); });\n    };\n    Context.prototype.getBean = function (name) {\n        return this.lookupBeanInstance(\"getBean\", name, true);\n    };\n    Context.prototype.destroy = function () {\n        if (this.destroyed) {\n            return;\n        }\n        this.logger.log(\">> Shutting down ag-Application Context\");\n        var beanInstances = this.getBeanInstances();\n        this.destroyBeans(beanInstances);\n        this.contextParams.providedBeanInstances = null;\n        this.destroyed = true;\n        this.logger.log(\">> ag-Application Context shut down - component is dead\");\n    };\n    Context.prototype.destroyBean = function (bean) {\n        if (!bean) {\n            return;\n        }\n        this.destroyBeans([bean]);\n    };\n    Context.prototype.destroyBeans = function (beans) {\n        var _this = this;\n        if (!beans) {\n            return [];\n        }\n        beans.forEach(function (bean) {\n            _this.callLifeCycleMethodsOnBean(bean, 'preDestroyMethods', 'destroy');\n            // call destroy() explicitly if it exists\n            var beanAny = bean;\n            if (typeof beanAny.destroy === 'function') {\n                beanAny.destroy();\n            }\n        });\n        return [];\n    };\n    return Context;\n}());\n// taken from: http://stackoverflow.com/questions/3362471/how-can-i-call-a-javascript-constructor-using-call-or-apply\n// allows calling 'apply' on a constructor\nfunction applyToConstructor(constructor, argArray) {\n    var args = [null].concat(argArray);\n    var factoryFunction = constructor.bind.apply(constructor, args);\n    return new factoryFunction();\n}\nfunction PreConstruct(target, methodName, descriptor) {\n    var props = getOrCreateProps(target.constructor);\n    if (!props.preConstructMethods) {\n        props.preConstructMethods = [];\n    }\n    props.preConstructMethods.push(methodName);\n}\nfunction PostConstruct(target, methodName, descriptor) {\n    var props = getOrCreateProps(target.constructor);\n    if (!props.postConstructMethods) {\n        props.postConstructMethods = [];\n    }\n    props.postConstructMethods.push(methodName);\n}\nfunction PreDestroy(target, methodName, descriptor) {\n    var props = getOrCreateProps(target.constructor);\n    if (!props.preDestroyMethods) {\n        props.preDestroyMethods = [];\n    }\n    props.preDestroyMethods.push(methodName);\n}\nfunction Bean(beanName) {\n    return function (classConstructor) {\n        var props = getOrCreateProps(classConstructor);\n        props.beanName = beanName;\n    };\n}\nfunction Autowired(name) {\n    return function (target, propertyKey, descriptor) {\n        autowiredFunc(target, name, false, target, propertyKey, null);\n    };\n}\nfunction Optional(name) {\n    return function (target, propertyKey, descriptor) {\n        autowiredFunc(target, name, true, target, propertyKey, null);\n    };\n}\nfunction autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {\n    if (name === null) {\n        console.error(\"AG Grid: Autowired name should not be null\");\n        return;\n    }\n    if (typeof index === \"number\") {\n        console.error(\"AG Grid: Autowired should be on an attribute\");\n        return;\n    }\n    // it's an attribute on the class\n    var props = getOrCreateProps(target.constructor);\n    if (!props.agClassAttributes) {\n        props.agClassAttributes = [];\n    }\n    props.agClassAttributes.push({\n        attributeName: methodOrAttributeName,\n        beanName: name,\n        optional: optional\n    });\n}\nfunction Qualifier(name) {\n    return function (classPrototype, methodOrAttributeName, index) {\n        var constructor = typeof classPrototype == \"function\" ? classPrototype : classPrototype.constructor;\n        var props;\n        if (typeof index === \"number\") {\n            // it's a parameter on a method\n            var methodName = void 0;\n            if (methodOrAttributeName) {\n                props = getOrCreateProps(constructor);\n                methodName = methodOrAttributeName;\n            }\n            else {\n                props = getOrCreateProps(constructor);\n                methodName = \"agConstructor\";\n            }\n            if (!props.autowireMethods) {\n                props.autowireMethods = {};\n            }\n            if (!props.autowireMethods[methodName]) {\n                props.autowireMethods[methodName] = {};\n            }\n            props.autowireMethods[methodName][index] = name;\n        }\n    };\n}\nfunction getOrCreateProps(target) {\n    if (!target.hasOwnProperty(\"__agBeanMetaData\")) {\n        target.__agBeanMetaData = {};\n    }\n    return target.__agBeanMetaData;\n}\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar EventService = /** @class */ (function () {\n    function EventService() {\n        this.allSyncListeners = new Map();\n        this.allAsyncListeners = new Map();\n        this.globalSyncListeners = new Set();\n        this.globalAsyncListeners = new Set();\n        this.asyncFunctionsQueue = [];\n        this.scheduled = false;\n        // using an object performs better than a Set for the number of different events we have\n        this.firedEvents = {};\n    }\n    // because this class is used both inside the context and outside the context, we do not\n    // use autowired attributes, as that would be confusing, as sometimes the attributes\n    // would be wired, and sometimes not.\n    //\n    // the global event servers used by AG Grid is autowired by the context once, and this\n    // setBeans method gets called once.\n    //\n    // the times when this class is used outside of the context (eg RowNode has an instance of this\n    // class) then it is not a bean, and this setBeans method is not called.\n    EventService.prototype.setBeans = function (loggerFactory, gridOptionsWrapper, frameworkOverrides, globalEventListener) {\n        if (globalEventListener === void 0) { globalEventListener = null; }\n        this.frameworkOverrides = frameworkOverrides;\n        if (globalEventListener) {\n            var async = gridOptionsWrapper.useAsyncEvents();\n            this.addGlobalListener(globalEventListener, async);\n        }\n    };\n    EventService.prototype.getListeners = function (eventType, async, autoCreateListenerCollection) {\n        var listenerMap = async ? this.allAsyncListeners : this.allSyncListeners;\n        var listeners = listenerMap.get(eventType);\n        // Note: 'autoCreateListenerCollection' should only be 'true' if a listener is about to be added. For instance\n        // getListeners() is also called during event dispatch even though no listeners are added. This measure protects\n        // against 'memory bloat' as empty collections will prevent the RowNode's event service from being removed after\n        // the RowComp is destroyed, see noRegisteredListenersExist() below.\n        if (!listeners && autoCreateListenerCollection) {\n            listeners = new Set();\n            listenerMap.set(eventType, listeners);\n        }\n        return listeners;\n    };\n    EventService.prototype.noRegisteredListenersExist = function () {\n        return this.allSyncListeners.size === 0 && this.allAsyncListeners.size === 0 &&\n            this.globalSyncListeners.size === 0 && this.globalAsyncListeners.size === 0;\n    };\n    EventService.prototype.addEventListener = function (eventType, listener, async) {\n        if (async === void 0) { async = false; }\n        this.getListeners(eventType, async, true).add(listener);\n    };\n    EventService.prototype.removeEventListener = function (eventType, listener, async) {\n        if (async === void 0) { async = false; }\n        var listeners = this.getListeners(eventType, async, false);\n        if (!listeners) {\n            return;\n        }\n        listeners.delete(listener);\n        if (listeners.size === 0) {\n            var listenerMap = async ? this.allAsyncListeners : this.allSyncListeners;\n            listenerMap.delete(eventType);\n        }\n    };\n    EventService.prototype.addGlobalListener = function (listener, async) {\n        if (async === void 0) { async = false; }\n        (async ? this.globalAsyncListeners : this.globalSyncListeners).add(listener);\n    };\n    EventService.prototype.removeGlobalListener = function (listener, async) {\n        if (async === void 0) { async = false; }\n        (async ? this.globalAsyncListeners : this.globalSyncListeners).delete(listener);\n    };\n    EventService.prototype.dispatchEvent = function (event) {\n        this.dispatchToListeners(event, true);\n        this.dispatchToListeners(event, false);\n        this.firedEvents[event.type] = true;\n    };\n    EventService.prototype.dispatchEventOnce = function (event) {\n        if (!this.firedEvents[event.type]) {\n            this.dispatchEvent(event);\n        }\n    };\n    EventService.prototype.dispatchToListeners = function (event, async) {\n        var _this = this;\n        var eventType = event.type;\n        var processEventListeners = function (listeners) { return listeners.forEach(function (listener) {\n            if (async) {\n                _this.dispatchAsync(function () { return listener(event); });\n            }\n            else {\n                listener(event);\n            }\n        }); };\n        var listeners = this.getListeners(eventType, async, false);\n        if (listeners) {\n            processEventListeners(listeners);\n        }\n        var globalListeners = async ? this.globalAsyncListeners : this.globalSyncListeners;\n        globalListeners.forEach(function (listener) {\n            if (async) {\n                _this.dispatchAsync(function () { return _this.frameworkOverrides.dispatchEvent(eventType, function () { return listener(eventType, event); }, true); });\n            }\n            else {\n                _this.frameworkOverrides.dispatchEvent(eventType, function () { return listener(eventType, event); }, true);\n            }\n        });\n    };\n    // this gets called inside the grid's thread, for each event that it\n    // wants to set async. the grid then batches the events into one setTimeout()\n    // because setTimeout() is an expensive operation. ideally we would have\n    // each event in it's own setTimeout(), but we batch for performance.\n    EventService.prototype.dispatchAsync = function (func) {\n        // add to the queue for executing later in the next VM turn\n        this.asyncFunctionsQueue.push(func);\n        // check if timeout is already scheduled. the first time the grid calls\n        // this within it's thread turn, this should be false, so it will schedule\n        // the 'flush queue' method the first time it comes here. then the flag is\n        // set to 'true' so it will know it's already scheduled for subsequent calls.\n        if (!this.scheduled) {\n            // if not scheduled, schedule one\n            window.setTimeout(this.flushAsyncQueue.bind(this), 0);\n            // mark that it is scheduled\n            this.scheduled = true;\n        }\n    };\n    // this happens in the next VM turn only, and empties the queue of events\n    EventService.prototype.flushAsyncQueue = function () {\n        this.scheduled = false;\n        // we take a copy, because the event listener could be using\n        // the grid, which would cause more events, which would be potentially\n        // added to the queue, so safe to take a copy, the new events will\n        // get executed in a later VM turn rather than risk updating the\n        // queue as we are flushing it.\n        var queueCopy = this.asyncFunctionsQueue.slice();\n        this.asyncFunctionsQueue = [];\n        // execute the queue\n        queueCopy.forEach(function (func) { return func(); });\n    };\n    __decorate([\n        __param(0, Qualifier('loggerFactory')),\n        __param(1, Qualifier('gridOptionsWrapper')),\n        __param(2, Qualifier('frameworkOverrides')),\n        __param(3, Qualifier('globalEventListener'))\n    ], EventService.prototype, \"setBeans\", null);\n    EventService = __decorate([\n        Bean('eventService')\n    ], EventService);\n    return EventService;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar Constants = /** @class */ (function () {\n    function Constants() {\n    }\n    Constants.ROW_BUFFER_SIZE = 10;\n    Constants.LAYOUT_INTERVAL = 500;\n    Constants.BATCH_WAIT_MILLIS = 50;\n    Constants.EXPORT_TYPE_DRAG_COPY = 'dragCopy';\n    Constants.EXPORT_TYPE_CLIPBOARD = 'clipboard';\n    Constants.EXPORT_TYPE_EXCEL = 'excel';\n    Constants.EXPORT_TYPE_CSV = 'csv';\n    Constants.ROW_MODEL_TYPE_INFINITE = 'infinite';\n    Constants.ROW_MODEL_TYPE_VIEWPORT = 'viewport';\n    Constants.ROW_MODEL_TYPE_CLIENT_SIDE = 'clientSide';\n    Constants.ROW_MODEL_TYPE_SERVER_SIDE = 'serverSide';\n    Constants.ALWAYS = 'always';\n    Constants.ONLY_WHEN_GROUPING = 'onlyWhenGrouping';\n    Constants.PINNED_TOP = 'top';\n    Constants.PINNED_BOTTOM = 'bottom';\n    Constants.DOM_LAYOUT_NORMAL = 'normal';\n    Constants.DOM_LAYOUT_PRINT = 'print';\n    Constants.DOM_LAYOUT_AUTO_HEIGHT = 'autoHeight';\n    Constants.GROUP_AUTO_COLUMN_ID = 'ag-Grid-AutoColumn';\n    Constants.SOURCE_PASTE = 'paste';\n    Constants.PINNED_RIGHT = 'right';\n    Constants.PINNED_LEFT = 'left';\n    Constants.SORT_ASC = 'asc';\n    Constants.SORT_DESC = 'desc';\n    Constants.INPUT_SELECTOR = 'input, select, button, textarea';\n    Constants.FOCUSABLE_SELECTOR = '[tabindex], input, select, button, textarea';\n    Constants.FOCUSABLE_EXCLUDE = '.ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *';\n    return Constants;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (ModuleNames) {\n    // when using modules, user references this\n    ModuleNames[\"CommunityCoreModule\"] = \"@ag-grid-community/core\";\n    // when not using modules, user references this\n    ModuleNames[\"CommunityAllModules\"] = \"@ag-grid-community/all\";\n    // community modules\n    ModuleNames[\"InfiniteRowModelModule\"] = \"@ag-grid-community/infinite-row-model\";\n    ModuleNames[\"ClientSideRowModelModule\"] = \"@ag-grid-community/client-side-row-model\";\n    ModuleNames[\"CsvExportModule\"] = \"@ag-grid-community/csv-export\";\n    // enterprise core - users never import on this, but other enterprise modules do\n    ModuleNames[\"EnterpriseCoreModule\"] = \"@ag-grid-enterprise/core\";\n    // when not using modules, user references this\n    ModuleNames[\"EnterpriseAllModules\"] = \"@ag-grid-enterprise/all\";\n    // enterprise modules\n    ModuleNames[\"RowGroupingModule\"] = \"@ag-grid-enterprise/row-grouping\";\n    ModuleNames[\"ColumnToolPanelModule\"] = \"@ag-grid-enterprise/column-tool-panel\";\n    ModuleNames[\"FiltersToolPanelModule\"] = \"@ag-grid-enterprise/filter-tool-panel\";\n    ModuleNames[\"MenuModule\"] = \"@ag-grid-enterprise/menu\";\n    ModuleNames[\"SetFilterModule\"] = \"@ag-grid-enterprise/set-filter\";\n    ModuleNames[\"MultiFilterModule\"] = \"@ag-grid-enterprise/multi-filter\";\n    ModuleNames[\"StatusBarModule\"] = \"@ag-grid-enterprise/status-bar\";\n    ModuleNames[\"SideBarModule\"] = \"@ag-grid-enterprise/side-bar\";\n    ModuleNames[\"RangeSelectionModule\"] = \"@ag-grid-enterprise/range-selection\";\n    ModuleNames[\"MasterDetailModule\"] = \"@ag-grid-enterprise/master-detail\";\n    ModuleNames[\"RichSelectModule\"] = \"@ag-grid-enterprise/rich-select\";\n    ModuleNames[\"GridChartsModule\"] = \"@ag-grid-enterprise/charts\";\n    ModuleNames[\"ViewportRowModelModule\"] = \"@ag-grid-enterprise/viewport-row-model\";\n    ModuleNames[\"ServerSideRowModelModule\"] = \"@ag-grid-enterprise/server-side-row-model\";\n    ModuleNames[\"ExcelExportModule\"] = \"@ag-grid-enterprise/excel-export\";\n    ModuleNames[\"ClipboardModule\"] = \"@ag-grid-enterprise/clipboard\";\n    ModuleNames[\"SparklinesModule\"] = \"@ag-grid-enterprise/sparklines\";\n    // framework wrappers currently don't provide beans, comps etc, so no need to be modules,\n    // however i argue they should be as in theory they 'could' provide beans etc\n    ModuleNames[\"AngularModule\"] = \"@ag-grid-community/angular\";\n    ModuleNames[\"ReactModule\"] = \"@ag-grid-community/react\";\n    ModuleNames[\"VueModule\"] = \"@ag-grid-community/vue\";\n    ModuleNames[\"PolymerModule\"] = \"@ag-grid-community/polymer\";\n    // and then this, which is definitely not a grid module, as it should not have any dependency\n    // on the grid (ie shouldn't even reference the Module interface)\n    // ChartsModule = \"@ag-grid-community/charts-core\",\n})(exports.ModuleNames || (exports.ModuleNames = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar ModuleRegistry = /** @class */ (function () {\n    function ModuleRegistry() {\n    }\n    ModuleRegistry.register = function (module, moduleBased) {\n        if (moduleBased === void 0) { moduleBased = true; }\n        ModuleRegistry.modulesMap[module.moduleName] = module;\n        if (ModuleRegistry.moduleBased === undefined) {\n            ModuleRegistry.moduleBased = moduleBased;\n        }\n        else {\n            if (ModuleRegistry.moduleBased !== moduleBased) {\n                doOnce(function () {\n                    console.warn(\"AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms.\");\n                    console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');\n                }, 'ModulePackageCheck');\n            }\n        }\n    };\n    // noinspection JSUnusedGlobalSymbols\n    ModuleRegistry.registerModules = function (modules, moduleBased) {\n        if (moduleBased === void 0) { moduleBased = true; }\n        if (!modules) {\n            return;\n        }\n        modules.forEach(function (module) { return ModuleRegistry.register(module, moduleBased); });\n    };\n    ModuleRegistry.assertRegistered = function (moduleName, reason) {\n        if (this.isRegistered(moduleName)) {\n            return true;\n        }\n        var warningKey = reason + moduleName;\n        var warningMessage;\n        if (ModuleRegistry.moduleBased) {\n            warningMessage = \"AG Grid: unable to use \" + reason + \" as module \" + moduleName + \" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/\";\n        }\n        else {\n            warningMessage = \"AG Grid: unable to use \" + reason + \" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/\";\n        }\n        doOnce(function () {\n            console.warn(warningMessage);\n        }, warningKey);\n        return false;\n    };\n    ModuleRegistry.isRegistered = function (moduleName) {\n        return !!ModuleRegistry.modulesMap[moduleName];\n    };\n    ModuleRegistry.getRegisteredModules = function () {\n        return values(ModuleRegistry.modulesMap);\n    };\n    ModuleRegistry.isPackageBased = function () {\n        return !ModuleRegistry.moduleBased;\n    };\n    // having in a map a) removes duplicates and b) allows fast lookup\n    ModuleRegistry.modulesMap = {};\n    return ModuleRegistry;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar instanceIdSequence = 0;\n// Wrapper around a user provide column definition. The grid treats the column definition as ready only.\n// This class contains all the runtime information about a column, plus some logic (the definition has no logic).\n// This class implements both interfaces ColumnGroupChild and ProvidedColumnGroupChild as the class can\n// appear as a child of either the original tree or the displayed tree. However the relevant group classes\n// for each type only implements one, as each group can only appear in it's associated tree (eg ProvidedColumnGroup\n// can only appear in OriginalColumn tree).\nvar Column = /** @class */ (function () {\n    function Column(colDef, userProvidedColDef, colId, primary) {\n        // used by React (and possibly other frameworks) as key for rendering\n        this.instanceId = instanceIdSequence++;\n        this.moving = false;\n        this.menuVisible = false;\n        this.filterActive = false;\n        this.eventService = new EventService();\n        this.rowGroupActive = false;\n        this.pivotActive = false;\n        this.aggregationActive = false;\n        this.colDef = colDef;\n        this.userProvidedColDef = userProvidedColDef;\n        this.colId = colId;\n        this.primary = primary;\n        this.setState(colDef);\n    }\n    Column.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    Column.prototype.setState = function (colDef) {\n        // sort\n        if (colDef.sort !== undefined) {\n            if (colDef.sort === Constants.SORT_ASC || colDef.sort === Constants.SORT_DESC) {\n                this.sort = colDef.sort;\n            }\n        }\n        else {\n            if (colDef.initialSort === Constants.SORT_ASC || colDef.initialSort === Constants.SORT_DESC) {\n                this.sort = colDef.initialSort;\n            }\n        }\n        // sortIndex\n        var sortIndex = attrToNumber(colDef.sortIndex);\n        var initialSortIndex = attrToNumber(colDef.initialSortIndex);\n        if (sortIndex !== undefined) {\n            if (sortIndex !== null) {\n                this.sortIndex = sortIndex;\n            }\n        }\n        else {\n            if (initialSortIndex !== null) {\n                this.sortIndex = initialSortIndex;\n            }\n        }\n        // hide\n        var hide = attrToBoolean(colDef.hide);\n        var initialHide = attrToBoolean(colDef.initialHide);\n        if (hide !== undefined) {\n            this.visible = !hide;\n        }\n        else {\n            this.visible = !initialHide;\n        }\n        // pinned\n        if (colDef.pinned !== undefined) {\n            this.setPinned(colDef.pinned);\n        }\n        else {\n            this.setPinned(colDef.initialPinned);\n        }\n        // flex\n        var flex = attrToNumber(colDef.flex);\n        var initialFlex = attrToNumber(colDef.initialFlex);\n        if (flex !== undefined) {\n            this.flex = flex;\n        }\n        else if (initialFlex !== undefined) {\n            this.flex = initialFlex;\n        }\n    };\n    // gets called when user provides an alternative colDef, eg\n    Column.prototype.setColDef = function (colDef, userProvidedColDef) {\n        this.colDef = colDef;\n        this.userProvidedColDef = userProvidedColDef;\n        this.initMinAndMaxWidths();\n        this.initDotNotation();\n    };\n    /**\n     * Returns the column definition provided by the application.\n     * This may not be correct, as items can be superseded by default column options.\n     * However it's useful for comparison, eg to know which application column definition matches that column.\n     */\n    Column.prototype.getUserProvidedColDef = function () {\n        return this.userProvidedColDef;\n    };\n    Column.prototype.setParent = function (parent) {\n        this.parent = parent;\n    };\n    /** Returns the parent column group, if column grouping is active. */\n    Column.prototype.getParent = function () {\n        return this.parent;\n    };\n    Column.prototype.setOriginalParent = function (originalParent) {\n        this.originalParent = originalParent;\n    };\n    Column.prototype.getOriginalParent = function () {\n        return this.originalParent;\n    };\n    // this is done after constructor as it uses gridOptionsWrapper\n    Column.prototype.initialise = function () {\n        this.initMinAndMaxWidths();\n        this.resetActualWidth('gridInitializing');\n        this.initDotNotation();\n        this.validate();\n    };\n    Column.prototype.initDotNotation = function () {\n        var suppressDotNotation = this.gridOptionsWrapper.isSuppressFieldDotNotation();\n        this.fieldContainsDots = exists(this.colDef.field) && this.colDef.field.indexOf('.') >= 0 && !suppressDotNotation;\n        this.tooltipFieldContainsDots = exists(this.colDef.tooltipField) && this.colDef.tooltipField.indexOf('.') >= 0 && !suppressDotNotation;\n    };\n    Column.prototype.initMinAndMaxWidths = function () {\n        var colDef = this.colDef;\n        this.minWidth = this.columnUtils.calculateColMinWidth(colDef);\n        this.maxWidth = this.columnUtils.calculateColMaxWidth(colDef);\n    };\n    Column.prototype.resetActualWidth = function (source) {\n        if (source === void 0) { source = 'api'; }\n        var initialWidth = this.columnUtils.calculateColInitialWidth(this.colDef);\n        this.setActualWidth(initialWidth, source, true);\n    };\n    Column.prototype.isEmptyGroup = function () {\n        return false;\n    };\n    Column.prototype.isRowGroupDisplayed = function (colId) {\n        if (missing(this.colDef) || missing(this.colDef.showRowGroup)) {\n            return false;\n        }\n        var showingAllGroups = this.colDef.showRowGroup === true;\n        var showingThisGroup = this.colDef.showRowGroup === colId;\n        return showingAllGroups || showingThisGroup;\n    };\n    /** Returns `true` if column is a primary column, `false` if secondary. Secondary columns are used for pivoting. */\n    Column.prototype.isPrimary = function () {\n        return this.primary;\n    };\n    /** Returns `true` if column filtering is allowed. */\n    Column.prototype.isFilterAllowed = function () {\n        // filter defined means it's a string, class or true.\n        // if its false, null or undefined then it's false.\n        var filterDefined = !!this.colDef.filter || !!this.colDef.filterFramework;\n        return filterDefined;\n    };\n    Column.prototype.isFieldContainsDots = function () {\n        return this.fieldContainsDots;\n    };\n    Column.prototype.isTooltipFieldContainsDots = function () {\n        return this.tooltipFieldContainsDots;\n    };\n    Column.prototype.validate = function () {\n        var colDefAny = this.colDef;\n        function warnOnce(msg, key, obj) {\n            doOnce(function () {\n                if (obj) {\n                    console.warn(msg, obj);\n                }\n                else {\n                    doOnce(function () { return console.warn(msg); }, key);\n                }\n            }, key);\n        }\n        var usingCSRM = this.gridOptionsWrapper.isRowModelDefault();\n        if (usingCSRM && !ModuleRegistry.isRegistered(exports.ModuleNames.RowGroupingModule)) {\n            var rowGroupingItems = ['enableRowGroup', 'rowGroup', 'rowGroupIndex', 'enablePivot', 'enableValue', 'pivot', 'pivotIndex', 'aggFunc'];\n            rowGroupingItems.forEach(function (item) {\n                if (exists(colDefAny[item])) {\n                    if (ModuleRegistry.isPackageBased()) {\n                        warnOnce(\"AG Grid: \" + item + \" is only valid in ag-grid-enterprise, your column definition should not have \" + item, 'ColumnRowGroupingMissing' + item);\n                    }\n                    else {\n                        warnOnce(\"AG Grid: \" + item + \" is only valid with AG Grid Enterprise Module \" + exports.ModuleNames.RowGroupingModule + \" - your column definition should not have \" + item, 'ColumnRowGroupingMissing' + item);\n                    }\n                }\n            });\n        }\n        if (!ModuleRegistry.isRegistered(exports.ModuleNames.RichSelectModule)) {\n            if (this.colDef.cellEditor === 'agRichSelect') {\n                if (ModuleRegistry.isPackageBased()) {\n                    warnOnce(\"AG Grid: \" + this.colDef.cellEditor + \" can only be used with ag-grid-enterprise\", 'ColumnRichSelectMissing');\n                }\n                else {\n                    warnOnce(\"AG Grid: \" + this.colDef.cellEditor + \" can only be used with AG Grid Enterprise Module \" + exports.ModuleNames.RichSelectModule, 'ColumnRichSelectMissing');\n                }\n            }\n        }\n        if (this.gridOptionsWrapper.isTreeData()) {\n            var itemsNotAllowedWithTreeData = ['rowGroup', 'rowGroupIndex', 'pivot', 'pivotIndex'];\n            itemsNotAllowedWithTreeData.forEach(function (item) {\n                if (exists(colDefAny[item])) {\n                    warnOnce(\"AG Grid: \" + item + \" is not possible when doing tree data, your column definition should not have \" + item, 'TreeDataCannotRowGroup');\n                }\n            });\n        }\n        if (exists(this.colDef.width) && typeof this.colDef.width !== 'number') {\n            warnOnce('AG Grid: colDef.width should be a number, not ' + typeof this.colDef.width, 'ColumnCheck_asdfawef');\n        }\n        if (colDefAny.pinnedRowCellRenderer) {\n            warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n        }\n        if (colDefAny.pinnedRowCellRendererParams) {\n            warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n        }\n        if (colDefAny.pinnedRowCellRendererFramework) {\n            warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n        }\n        if (colDefAny.pinnedRowValueGetter) {\n            warnOnce('AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.', 'colDef.pinnedRowCellRenderer-deprecated');\n        }\n    };\n    /** Add an event listener to the column. */\n    Column.prototype.addEventListener = function (eventType, listener) {\n        this.eventService.addEventListener(eventType, listener);\n    };\n    /** Remove event listener from the column. */\n    Column.prototype.removeEventListener = function (eventType, listener) {\n        this.eventService.removeEventListener(eventType, listener);\n    };\n    Column.prototype.createColumnFunctionCallbackParams = function (rowNode) {\n        return {\n            node: rowNode,\n            data: rowNode.data,\n            column: this,\n            colDef: this.colDef,\n            context: this.gridOptionsWrapper.getContext(),\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi()\n        };\n    };\n    Column.prototype.isSuppressNavigable = function (rowNode) {\n        // if boolean set, then just use it\n        if (typeof this.colDef.suppressNavigable === 'boolean') {\n            return this.colDef.suppressNavigable;\n        }\n        // if function, then call the function to find out\n        if (typeof this.colDef.suppressNavigable === 'function') {\n            var params = this.createColumnFunctionCallbackParams(rowNode);\n            var userFunc = this.colDef.suppressNavigable;\n            return userFunc(params);\n        }\n        return false;\n    };\n    Column.prototype.isCellEditable = function (rowNode) {\n        // only allow editing of groups if the user has this option enabled\n        if (rowNode.group && !this.gridOptionsWrapper.isEnableGroupEdit()) {\n            return false;\n        }\n        return this.isColumnFunc(rowNode, this.colDef.editable);\n    };\n    Column.prototype.isSuppressFillHandle = function () {\n        return !!attrToBoolean(this.colDef.suppressFillHandle);\n    };\n    Column.prototype.isAutoHeight = function () {\n        return !!attrToBoolean(this.colDef.autoHeight);\n    };\n    Column.prototype.isRowDrag = function (rowNode) {\n        return this.isColumnFunc(rowNode, this.colDef.rowDrag);\n    };\n    Column.prototype.isDndSource = function (rowNode) {\n        return this.isColumnFunc(rowNode, this.colDef.dndSource);\n    };\n    Column.prototype.isCellCheckboxSelection = function (rowNode) {\n        return this.isColumnFunc(rowNode, this.colDef.checkboxSelection);\n    };\n    Column.prototype.isSuppressPaste = function (rowNode) {\n        return this.isColumnFunc(rowNode, this.colDef ? this.colDef.suppressPaste : null);\n    };\n    Column.prototype.isResizable = function () {\n        return !!attrToBoolean(this.colDef.resizable);\n    };\n    Column.prototype.isColumnFunc = function (rowNode, value) {\n        // if boolean set, then just use it\n        if (typeof value === 'boolean') {\n            return value;\n        }\n        // if function, then call the function to find out\n        if (typeof value === 'function') {\n            var params = this.createColumnFunctionCallbackParams(rowNode);\n            var editableFunc = value;\n            return editableFunc(params);\n        }\n        return false;\n    };\n    Column.prototype.setMoving = function (moving, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.moving = moving;\n        this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_MOVING_CHANGED, source));\n    };\n    Column.prototype.createColumnEvent = function (type, source) {\n        return {\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            type: type,\n            column: this,\n            columns: [this],\n            source: source\n        };\n    };\n    Column.prototype.isMoving = function () {\n        return this.moving;\n    };\n    /** If sorting is active, returns the sort direction e.g. `'asc'` or `'desc'`. */\n    Column.prototype.getSort = function () {\n        return this.sort;\n    };\n    Column.prototype.setSort = function (sort, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.sort !== sort) {\n            this.sort = sort;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_SORT_CHANGED, source));\n        }\n    };\n    Column.prototype.setMenuVisible = function (visible, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.menuVisible !== visible) {\n            this.menuVisible = visible;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_MENU_VISIBLE_CHANGED, source));\n        }\n    };\n    Column.prototype.isMenuVisible = function () {\n        return this.menuVisible;\n    };\n    Column.prototype.isSortAscending = function () {\n        return this.sort === Constants.SORT_ASC;\n    };\n    Column.prototype.isSortDescending = function () {\n        return this.sort === Constants.SORT_DESC;\n    };\n    Column.prototype.isSortNone = function () {\n        return missing(this.sort);\n    };\n    Column.prototype.isSorting = function () {\n        return exists(this.sort);\n    };\n    Column.prototype.getSortIndex = function () {\n        return this.sortIndex;\n    };\n    Column.prototype.setSortIndex = function (sortOrder) {\n        this.sortIndex = sortOrder;\n    };\n    Column.prototype.setAggFunc = function (aggFunc) {\n        this.aggFunc = aggFunc;\n    };\n    /** If aggregation is set for the column, returns the aggregation function. */\n    Column.prototype.getAggFunc = function () {\n        return this.aggFunc;\n    };\n    Column.prototype.getLeft = function () {\n        return this.left;\n    };\n    Column.prototype.getOldLeft = function () {\n        return this.oldLeft;\n    };\n    Column.prototype.getRight = function () {\n        return this.left + this.actualWidth;\n    };\n    Column.prototype.setLeft = function (left, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.oldLeft = this.left;\n        if (this.left !== left) {\n            this.left = left;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_LEFT_CHANGED, source));\n        }\n    };\n    /** Returns `true` if filter is active on the column. */\n    Column.prototype.isFilterActive = function () {\n        return this.filterActive;\n    };\n    // additionalEventAttributes is used by provided simple floating filter, so it can add 'floatingFilter=true' to the event\n    Column.prototype.setFilterActive = function (active, source, additionalEventAttributes) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.filterActive !== active) {\n            this.filterActive = active;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_FILTER_ACTIVE_CHANGED, source));\n        }\n        var filterChangedEvent = this.createColumnEvent(Column.EVENT_FILTER_CHANGED, source);\n        if (additionalEventAttributes) {\n            mergeDeep(filterChangedEvent, additionalEventAttributes);\n        }\n        this.eventService.dispatchEvent(filterChangedEvent);\n    };\n    Column.prototype.setPinned = function (pinned) {\n        if (pinned === true || pinned === Constants.PINNED_LEFT) {\n            this.pinned = Constants.PINNED_LEFT;\n        }\n        else if (pinned === Constants.PINNED_RIGHT) {\n            this.pinned = Constants.PINNED_RIGHT;\n        }\n        else {\n            this.pinned = null;\n        }\n    };\n    Column.prototype.setFirstRightPinned = function (firstRightPinned, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.firstRightPinned !== firstRightPinned) {\n            this.firstRightPinned = firstRightPinned;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, source));\n        }\n    };\n    Column.prototype.setLastLeftPinned = function (lastLeftPinned, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.lastLeftPinned !== lastLeftPinned) {\n            this.lastLeftPinned = lastLeftPinned;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_LAST_LEFT_PINNED_CHANGED, source));\n        }\n    };\n    Column.prototype.isFirstRightPinned = function () {\n        return this.firstRightPinned;\n    };\n    Column.prototype.isLastLeftPinned = function () {\n        return this.lastLeftPinned;\n    };\n    Column.prototype.isPinned = function () {\n        return this.pinned === Constants.PINNED_LEFT || this.pinned === Constants.PINNED_RIGHT;\n    };\n    Column.prototype.isPinnedLeft = function () {\n        return this.pinned === Constants.PINNED_LEFT;\n    };\n    Column.prototype.isPinnedRight = function () {\n        return this.pinned === Constants.PINNED_RIGHT;\n    };\n    Column.prototype.getPinned = function () {\n        return this.pinned;\n    };\n    Column.prototype.setVisible = function (visible, source) {\n        if (source === void 0) { source = \"api\"; }\n        var newValue = visible === true;\n        if (this.visible !== newValue) {\n            this.visible = newValue;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_VISIBLE_CHANGED, source));\n        }\n    };\n    Column.prototype.isVisible = function () {\n        return this.visible;\n    };\n    /** Returns the column definition for this column.\n     * The column definition will be the result of merging the application provided column definition with any provided defaults\n     * (e.g. `defaultColDef` grid option, or column types.\n     *\n     * Equivalent: `getDefinition` */\n    Column.prototype.getColDef = function () {\n        return this.colDef;\n    };\n    Column.prototype.getColumnGroupShow = function () {\n        return this.colDef.columnGroupShow;\n    };\n    /**\n     * Returns the unique ID for the column.\n     *\n     * Equivalent: `getId`, `getUniqueId` */\n    Column.prototype.getColId = function () {\n        return this.colId;\n    };\n    /**\n     * Returns the unique ID for the column.\n     *\n     * Equivalent: `getColId`, `getUniqueId` */\n    Column.prototype.getId = function () {\n        return this.getColId();\n    };\n    /**\n     * Returns the unique ID for the column.\n     *\n     * Equivalent: `getColId`, `getId` */\n    Column.prototype.getUniqueId = function () {\n        return this.getId();\n    };\n    Column.prototype.getDefinition = function () {\n        return this.colDef;\n    };\n    /** Returns the current width of the column. If the column is resized, the actual width is the new size. */\n    Column.prototype.getActualWidth = function () {\n        return this.actualWidth;\n    };\n    Column.prototype.createBaseColDefParams = function (rowNode) {\n        var params = {\n            node: rowNode,\n            data: rowNode.data,\n            colDef: this.colDef,\n            column: this,\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            context: this.gridOptionsWrapper.getContext()\n        };\n        return params;\n    };\n    Column.prototype.getColSpan = function (rowNode) {\n        if (missing(this.colDef.colSpan)) {\n            return 1;\n        }\n        var params = this.createBaseColDefParams(rowNode);\n        var colSpan = this.colDef.colSpan(params);\n        // colSpan must be number equal to or greater than 1\n        return Math.max(colSpan, 1);\n    };\n    Column.prototype.getRowSpan = function (rowNode) {\n        if (missing(this.colDef.rowSpan)) {\n            return 1;\n        }\n        var params = this.createBaseColDefParams(rowNode);\n        var rowSpan = this.colDef.rowSpan(params);\n        // rowSpan must be number equal to or greater than 1\n        return Math.max(rowSpan, 1);\n    };\n    Column.prototype.setActualWidth = function (actualWidth, source, silent) {\n        if (source === void 0) { source = \"api\"; }\n        if (silent === void 0) { silent = false; }\n        if (this.minWidth != null) {\n            actualWidth = Math.max(actualWidth, this.minWidth);\n        }\n        if (this.maxWidth != null) {\n            actualWidth = Math.min(actualWidth, this.maxWidth);\n        }\n        if (this.actualWidth !== actualWidth) {\n            // disable flex for this column if it was manually resized.\n            this.actualWidth = actualWidth;\n            if (this.flex && source !== 'flex' && source !== 'gridInitializing') {\n                this.flex = null;\n            }\n            if (!silent) {\n                this.fireColumnWidthChangedEvent(source);\n            }\n        }\n    };\n    Column.prototype.fireColumnWidthChangedEvent = function (source) {\n        this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_WIDTH_CHANGED, source));\n    };\n    Column.prototype.isGreaterThanMax = function (width) {\n        if (this.maxWidth != null) {\n            return width > this.maxWidth;\n        }\n        return false;\n    };\n    Column.prototype.getMinWidth = function () {\n        return this.minWidth;\n    };\n    Column.prototype.getMaxWidth = function () {\n        return this.maxWidth;\n    };\n    Column.prototype.getFlex = function () {\n        return this.flex || 0;\n    };\n    // this method should only be used by the columnModel to\n    // change flex when required by the setColumnState method.\n    Column.prototype.setFlex = function (flex) {\n        if (this.flex !== flex) {\n            this.flex = flex;\n        }\n    };\n    Column.prototype.setMinimum = function (source) {\n        if (source === void 0) { source = \"api\"; }\n        if (exists(this.minWidth)) {\n            this.setActualWidth(this.minWidth, source);\n        }\n    };\n    Column.prototype.setRowGroupActive = function (rowGroup, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.rowGroupActive !== rowGroup) {\n            this.rowGroupActive = rowGroup;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_ROW_GROUP_CHANGED, source));\n        }\n    };\n    /** Returns `true` if row group is currently active for this column. */\n    Column.prototype.isRowGroupActive = function () {\n        return this.rowGroupActive;\n    };\n    Column.prototype.setPivotActive = function (pivot, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.pivotActive !== pivot) {\n            this.pivotActive = pivot;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_PIVOT_CHANGED, source));\n        }\n    };\n    /** Returns `true` if pivot is currently active for this column. */\n    Column.prototype.isPivotActive = function () {\n        return this.pivotActive;\n    };\n    Column.prototype.isAnyFunctionActive = function () {\n        return this.isPivotActive() || this.isRowGroupActive() || this.isValueActive();\n    };\n    Column.prototype.isAnyFunctionAllowed = function () {\n        return this.isAllowPivot() || this.isAllowRowGroup() || this.isAllowValue();\n    };\n    Column.prototype.setValueActive = function (value, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (this.aggregationActive !== value) {\n            this.aggregationActive = value;\n            this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_VALUE_CHANGED, source));\n        }\n    };\n    /** Returns `true` if value (aggregation) is currently active for this column. */\n    Column.prototype.isValueActive = function () {\n        return this.aggregationActive;\n    };\n    Column.prototype.isAllowPivot = function () {\n        return this.colDef.enablePivot === true;\n    };\n    Column.prototype.isAllowValue = function () {\n        return this.colDef.enableValue === true;\n    };\n    Column.prototype.isAllowRowGroup = function () {\n        return this.colDef.enableRowGroup === true;\n    };\n    Column.prototype.getMenuTabs = function (defaultValues) {\n        var menuTabs = this.getColDef().menuTabs;\n        if (menuTabs == null) {\n            menuTabs = defaultValues;\n        }\n        return menuTabs;\n    };\n    // this used to be needed, as previous version of ag-grid had lockPosition as column state,\n    // so couldn't depend on colDef version.\n    Column.prototype.isLockPosition = function () {\n        console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');\n        return this.colDef ? !!this.colDef.lockPosition : false;\n    };\n    // this used to be needed, as previous version of ag-grid had lockVisible as column state,\n    // so couldn't depend on colDef version.\n    Column.prototype.isLockVisible = function () {\n        console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');\n        return this.colDef ? !!this.colDef.lockVisible : false;\n    };\n    // this used to be needed, as previous version of ag-grid had lockPinned as column state,\n    // so couldn't depend on colDef version.\n    Column.prototype.isLockPinned = function () {\n        console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');\n        return this.colDef ? !!this.colDef.lockPinned : false;\n    };\n    // + renderedHeaderCell - for making header cell transparent when moving\n    Column.EVENT_MOVING_CHANGED = 'movingChanged';\n    // + renderedCell - changing left position\n    Column.EVENT_LEFT_CHANGED = 'leftChanged';\n    // + renderedCell - changing width\n    Column.EVENT_WIDTH_CHANGED = 'widthChanged';\n    // + renderedCell - for changing pinned classes\n    Column.EVENT_LAST_LEFT_PINNED_CHANGED = 'lastLeftPinnedChanged';\n    Column.EVENT_FIRST_RIGHT_PINNED_CHANGED = 'firstRightPinnedChanged';\n    // + renderedColumn - for changing visibility icon\n    Column.EVENT_VISIBLE_CHANGED = 'visibleChanged';\n    // + every time the filter changes, used in the floating filters\n    Column.EVENT_FILTER_CHANGED = 'filterChanged';\n    // + renderedHeaderCell - marks the header with filter icon\n    Column.EVENT_FILTER_ACTIVE_CHANGED = 'filterActiveChanged';\n    // + renderedHeaderCell - marks the header with sort icon\n    Column.EVENT_SORT_CHANGED = 'sortChanged';\n    Column.EVENT_MENU_VISIBLE_CHANGED = 'menuVisibleChanged';\n    // + toolpanel, for gui updates\n    Column.EVENT_ROW_GROUP_CHANGED = 'columnRowGroupChanged';\n    // + toolpanel, for gui updates\n    Column.EVENT_PIVOT_CHANGED = 'columnPivotChanged';\n    // + toolpanel, for gui updates\n    Column.EVENT_VALUE_CHANGED = 'columnValueChanged';\n    __decorate$1([\n        Autowired('gridOptionsWrapper')\n    ], Column.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$1([\n        Autowired('columnUtils')\n    ], Column.prototype, \"columnUtils\", void 0);\n    __decorate$1([\n        Autowired('columnApi')\n    ], Column.prototype, \"columnApi\", void 0);\n    __decorate$1([\n        Autowired('gridApi')\n    ], Column.prototype, \"gridApi\", void 0);\n    __decorate$1([\n        Autowired('context')\n    ], Column.prototype, \"context\", void 0);\n    __decorate$1([\n        PostConstruct\n    ], Column.prototype, \"initialise\", null);\n    return Column;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction firstExistingValue() {\n    var values = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        values[_i] = arguments[_i];\n    }\n    for (var i = 0; i < values.length; i++) {\n        var value = values[i];\n        if (exists(value)) {\n            return value;\n        }\n    }\n    return null;\n}\nfunction existsAndNotEmpty(value) {\n    return value != null && value.length > 0;\n}\nfunction last(arr) {\n    if (!arr || !arr.length) {\n        return;\n    }\n    return arr[arr.length - 1];\n}\nfunction areEqual(a, b, comparator) {\n    if (a == null && b == null) {\n        return true;\n    }\n    return a != null &&\n        b != null &&\n        a.length === b.length &&\n        a.every(function (value, index) { return comparator ? comparator(value, b[index]) : b[index] === value; });\n}\n/** @deprecated */\nfunction compareArrays(array1, array2) {\n    return areEqual(array1, array2);\n}\n/** @deprecated */\nfunction shallowCompare(arr1, arr2) {\n    return areEqual(arr1, arr2);\n}\nfunction sortNumerically(array) {\n    return array.sort(function (a, b) { return a - b; });\n}\nfunction removeRepeatsFromArray(array, object) {\n    if (!array) {\n        return;\n    }\n    for (var index = array.length - 2; index >= 0; index--) {\n        var thisOneMatches = array[index] === object;\n        var nextOneMatches = array[index + 1] === object;\n        if (thisOneMatches && nextOneMatches) {\n            array.splice(index + 1, 1);\n        }\n    }\n}\nfunction removeFromArray(array, object) {\n    var index = array.indexOf(object);\n    if (index >= 0) {\n        array.splice(index, 1);\n    }\n}\nfunction removeAllFromArray(array, toRemove) {\n    toRemove.forEach(function (item) { return removeFromArray(array, item); });\n}\nfunction insertIntoArray(array, object, toIndex) {\n    array.splice(toIndex, 0, object);\n}\nfunction insertArrayIntoArray(dest, src, toIndex) {\n    if (dest == null || src == null) {\n        return;\n    }\n    // put items in backwards, otherwise inserted items end up in reverse order\n    for (var i = src.length - 1; i >= 0; i--) {\n        var item = src[i];\n        insertIntoArray(dest, item, toIndex);\n    }\n}\nfunction moveInArray(array, objectsToMove, toIndex) {\n    // first take out items from the array\n    removeAllFromArray(array, objectsToMove);\n    // now add the objects, in same order as provided to us, that means we start at the end\n    // as the objects will be pushed to the right as they are inserted\n    objectsToMove.slice().reverse().forEach(function (obj) { return insertIntoArray(array, obj, toIndex); });\n}\nfunction includes(array, value) {\n    return array.indexOf(value) > -1;\n}\nfunction flatten(arrayOfArrays) {\n    return [].concat.apply([], arrayOfArrays);\n}\nfunction pushAll(target, source) {\n    if (source == null || target == null) {\n        return;\n    }\n    source.forEach(function (value) { return target.push(value); });\n}\nfunction toStrings(array) {\n    return array.map(toStringOrNull);\n}\nfunction forEachReverse(list, action) {\n    if (list == null) {\n        return;\n    }\n    for (var i = list.length - 1; i >= 0; i--) {\n        action(list[i], i);\n    }\n}\n\nvar ArrayUtils = /*#__PURE__*/Object.freeze({\n    firstExistingValue: firstExistingValue,\n    existsAndNotEmpty: existsAndNotEmpty,\n    last: last,\n    areEqual: areEqual,\n    compareArrays: compareArrays,\n    shallowCompare: shallowCompare,\n    sortNumerically: sortNumerically,\n    removeRepeatsFromArray: removeRepeatsFromArray,\n    removeFromArray: removeFromArray,\n    removeAllFromArray: removeAllFromArray,\n    insertIntoArray: insertIntoArray,\n    insertArrayIntoArray: insertArrayIntoArray,\n    moveInArray: moveInArray,\n    includes: includes,\n    flatten: flatten,\n    pushAll: pushAll,\n    toStrings: toStrings,\n    forEachReverse: forEachReverse\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ColumnGroup = /** @class */ (function () {\n    function ColumnGroup(providedColumnGroup, groupId, instanceId, pinned) {\n        // depends on the open/closed state of the group, only displaying columns are stored here\n        this.displayedChildren = [];\n        this.localEventService = new EventService();\n        this.groupId = groupId;\n        this.instanceId = instanceId;\n        this.providedColumnGroup = providedColumnGroup;\n        this.pinned = pinned;\n    }\n    // this is static, a it is used outside of this class\n    ColumnGroup.createUniqueId = function (groupId, instanceId) {\n        return groupId + '_' + instanceId;\n    };\n    // as the user is adding and removing columns, the groups are recalculated.\n    // this reset clears out all children, ready for children to be added again\n    ColumnGroup.prototype.reset = function () {\n        this.parent = null;\n        this.children = null;\n        this.displayedChildren = null;\n    };\n    ColumnGroup.prototype.getParent = function () {\n        return this.parent;\n    };\n    ColumnGroup.prototype.setParent = function (parent) {\n        this.parent = parent;\n    };\n    ColumnGroup.prototype.getUniqueId = function () {\n        return ColumnGroup.createUniqueId(this.groupId, this.instanceId);\n    };\n    ColumnGroup.prototype.isEmptyGroup = function () {\n        return this.displayedChildren.length === 0;\n    };\n    ColumnGroup.prototype.isMoving = function () {\n        var allLeafColumns = this.getProvidedColumnGroup().getLeafColumns();\n        if (!allLeafColumns || allLeafColumns.length === 0) {\n            return false;\n        }\n        return allLeafColumns.every(function (col) { return col.isMoving(); });\n    };\n    ColumnGroup.prototype.checkLeft = function () {\n        // first get all children to setLeft, as it impacts our decision below\n        this.displayedChildren.forEach(function (child) {\n            if (child instanceof ColumnGroup) {\n                child.checkLeft();\n            }\n        });\n        // set our left based on first displayed column\n        if (this.displayedChildren.length > 0) {\n            if (this.gridOptionsWrapper.isEnableRtl()) {\n                var lastChild = last(this.displayedChildren);\n                var lastChildLeft = lastChild.getLeft();\n                this.setLeft(lastChildLeft);\n            }\n            else {\n                var firstChildLeft = this.displayedChildren[0].getLeft();\n                this.setLeft(firstChildLeft);\n            }\n        }\n        else {\n            // this should never happen, as if we have no displayed columns, then\n            // this groups should not even exist.\n            this.setLeft(null);\n        }\n    };\n    ColumnGroup.prototype.getLeft = function () {\n        return this.left;\n    };\n    ColumnGroup.prototype.getOldLeft = function () {\n        return this.oldLeft;\n    };\n    ColumnGroup.prototype.setLeft = function (left) {\n        this.oldLeft = left;\n        if (this.left !== left) {\n            this.left = left;\n            this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_LEFT_CHANGED));\n        }\n    };\n    ColumnGroup.prototype.getPinned = function () {\n        return this.pinned;\n    };\n    ColumnGroup.prototype.createAgEvent = function (type) {\n        return { type: type };\n    };\n    ColumnGroup.prototype.addEventListener = function (eventType, listener) {\n        this.localEventService.addEventListener(eventType, listener);\n    };\n    ColumnGroup.prototype.removeEventListener = function (eventType, listener) {\n        this.localEventService.removeEventListener(eventType, listener);\n    };\n    ColumnGroup.prototype.getGroupId = function () {\n        return this.groupId;\n    };\n    ColumnGroup.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    ColumnGroup.prototype.isChildInThisGroupDeepSearch = function (wantedChild) {\n        var result = false;\n        this.children.forEach(function (foundChild) {\n            if (wantedChild === foundChild) {\n                result = true;\n            }\n            if (foundChild instanceof ColumnGroup) {\n                if (foundChild.isChildInThisGroupDeepSearch(wantedChild)) {\n                    result = true;\n                }\n            }\n        });\n        return result;\n    };\n    ColumnGroup.prototype.getActualWidth = function () {\n        var groupActualWidth = 0;\n        if (this.displayedChildren) {\n            this.displayedChildren.forEach(function (child) {\n                groupActualWidth += child.getActualWidth();\n            });\n        }\n        return groupActualWidth;\n    };\n    ColumnGroup.prototype.isResizable = function () {\n        if (!this.displayedChildren) {\n            return false;\n        }\n        // if at least one child is resizable, then the group is resizable\n        var result = false;\n        this.displayedChildren.forEach(function (child) {\n            if (child.isResizable()) {\n                result = true;\n            }\n        });\n        return result;\n    };\n    ColumnGroup.prototype.getMinWidth = function () {\n        var result = 0;\n        this.displayedChildren.forEach(function (groupChild) {\n            result += groupChild.getMinWidth() || 0;\n        });\n        return result;\n    };\n    ColumnGroup.prototype.addChild = function (child) {\n        if (!this.children) {\n            this.children = [];\n        }\n        this.children.push(child);\n    };\n    ColumnGroup.prototype.getDisplayedChildren = function () {\n        return this.displayedChildren;\n    };\n    ColumnGroup.prototype.getLeafColumns = function () {\n        var result = [];\n        this.addLeafColumns(result);\n        return result;\n    };\n    ColumnGroup.prototype.getDisplayedLeafColumns = function () {\n        var result = [];\n        this.addDisplayedLeafColumns(result);\n        return result;\n    };\n    // why two methods here doing the same thing?\n    ColumnGroup.prototype.getDefinition = function () {\n        return this.providedColumnGroup.getColGroupDef();\n    };\n    ColumnGroup.prototype.getColGroupDef = function () {\n        return this.providedColumnGroup.getColGroupDef();\n    };\n    ColumnGroup.prototype.isPadding = function () {\n        return this.providedColumnGroup.isPadding();\n    };\n    ColumnGroup.prototype.isExpandable = function () {\n        return this.providedColumnGroup.isExpandable();\n    };\n    ColumnGroup.prototype.isExpanded = function () {\n        return this.providedColumnGroup.isExpanded();\n    };\n    ColumnGroup.prototype.setExpanded = function (expanded) {\n        this.providedColumnGroup.setExpanded(expanded);\n    };\n    ColumnGroup.prototype.addDisplayedLeafColumns = function (leafColumns) {\n        this.displayedChildren.forEach(function (child) {\n            if (child instanceof Column) {\n                leafColumns.push(child);\n            }\n            else if (child instanceof ColumnGroup) {\n                child.addDisplayedLeafColumns(leafColumns);\n            }\n        });\n    };\n    ColumnGroup.prototype.addLeafColumns = function (leafColumns) {\n        this.children.forEach(function (child) {\n            if (child instanceof Column) {\n                leafColumns.push(child);\n            }\n            else if (child instanceof ColumnGroup) {\n                child.addLeafColumns(leafColumns);\n            }\n        });\n    };\n    ColumnGroup.prototype.getChildren = function () {\n        return this.children;\n    };\n    ColumnGroup.prototype.getColumnGroupShow = function () {\n        return this.providedColumnGroup.getColumnGroupShow();\n    };\n    ColumnGroup.prototype.getProvidedColumnGroup = function () {\n        return this.providedColumnGroup;\n    };\n    /** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */\n    ColumnGroup.prototype.getOriginalColumnGroup = function () {\n        console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');\n        return this.getProvidedColumnGroup();\n    };\n    ColumnGroup.prototype.getPaddingLevel = function () {\n        var parent = this.getParent();\n        if (!this.isPadding() || !parent || !parent.isPadding()) {\n            return 0;\n        }\n        return 1 + parent.getPaddingLevel();\n    };\n    ColumnGroup.prototype.calculateDisplayedColumns = function () {\n        var _this = this;\n        // clear out last time we calculated\n        this.displayedChildren = [];\n        // find the column group that is controlling expandable. this is relevant when we have padding (empty)\n        // groups, where the expandable is actually the first parent that is not a padding group.\n        var parentWithExpansion = this;\n        while (parentWithExpansion != null && parentWithExpansion.isPadding()) {\n            parentWithExpansion = parentWithExpansion.getParent();\n        }\n        var isExpandable = parentWithExpansion ? parentWithExpansion.providedColumnGroup.isExpandable() : false;\n        // it not expandable, everything is visible\n        if (!isExpandable) {\n            this.displayedChildren = this.children;\n            this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED));\n            return;\n        }\n        // Add cols based on columnGroupShow\n        // Note - the below also adds padding groups, these are always added because they never have\n        // colDef.columnGroupShow set.\n        this.children.forEach(function (child) {\n            // never add empty groups\n            var emptyGroup = child instanceof ColumnGroup && (!child.displayedChildren || !child.displayedChildren.length);\n            if (emptyGroup) {\n                return;\n            }\n            var headerGroupShow = child.getColumnGroupShow();\n            switch (headerGroupShow) {\n                case ColumnGroup.HEADER_GROUP_SHOW_OPEN:\n                    // when set to open, only show col if group is open\n                    if (parentWithExpansion.providedColumnGroup.isExpanded()) {\n                        _this.displayedChildren.push(child);\n                    }\n                    break;\n                case ColumnGroup.HEADER_GROUP_SHOW_CLOSED:\n                    // when set to open, only show col if group is open\n                    if (!parentWithExpansion.providedColumnGroup.isExpanded()) {\n                        _this.displayedChildren.push(child);\n                    }\n                    break;\n                default:\n                    _this.displayedChildren.push(child);\n                    break;\n            }\n        });\n        this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED));\n    };\n    ColumnGroup.HEADER_GROUP_SHOW_OPEN = 'open';\n    ColumnGroup.HEADER_GROUP_SHOW_CLOSED = 'closed';\n    ColumnGroup.EVENT_LEFT_CHANGED = 'leftChanged';\n    ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED = 'displayedChildrenChanged';\n    __decorate$2([\n        Autowired('gridOptionsWrapper')\n    ], ColumnGroup.prototype, \"gridOptionsWrapper\", void 0);\n    return ColumnGroup;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar ProvidedColumnGroup = /** @class */ (function () {\n    function ProvidedColumnGroup(colGroupDef, groupId, padding, level) {\n        this.localEventService = new EventService();\n        this.expandable = false;\n        this.colGroupDef = colGroupDef;\n        this.groupId = groupId;\n        this.expanded = !!colGroupDef && !!colGroupDef.openByDefault;\n        this.padding = padding;\n        this.level = level;\n    }\n    ProvidedColumnGroup.prototype.setOriginalParent = function (originalParent) {\n        this.originalParent = originalParent;\n    };\n    ProvidedColumnGroup.prototype.getOriginalParent = function () {\n        return this.originalParent;\n    };\n    ProvidedColumnGroup.prototype.getLevel = function () {\n        return this.level;\n    };\n    ProvidedColumnGroup.prototype.isVisible = function () {\n        // return true if at least one child is visible\n        if (this.children) {\n            return this.children.some(function (child) { return child.isVisible(); });\n        }\n        return false;\n    };\n    ProvidedColumnGroup.prototype.isPadding = function () {\n        return this.padding;\n    };\n    ProvidedColumnGroup.prototype.setExpanded = function (expanded) {\n        this.expanded = expanded === undefined ? false : expanded;\n        var event = {\n            type: ProvidedColumnGroup.EVENT_EXPANDED_CHANGED\n        };\n        this.localEventService.dispatchEvent(event);\n    };\n    ProvidedColumnGroup.prototype.isExpandable = function () {\n        return this.expandable;\n    };\n    ProvidedColumnGroup.prototype.isExpanded = function () {\n        return this.expanded;\n    };\n    ProvidedColumnGroup.prototype.getGroupId = function () {\n        return this.groupId;\n    };\n    ProvidedColumnGroup.prototype.getId = function () {\n        return this.getGroupId();\n    };\n    ProvidedColumnGroup.prototype.setChildren = function (children) {\n        this.children = children;\n    };\n    ProvidedColumnGroup.prototype.getChildren = function () {\n        return this.children;\n    };\n    ProvidedColumnGroup.prototype.getColGroupDef = function () {\n        return this.colGroupDef;\n    };\n    ProvidedColumnGroup.prototype.getLeafColumns = function () {\n        var result = [];\n        this.addLeafColumns(result);\n        return result;\n    };\n    ProvidedColumnGroup.prototype.addLeafColumns = function (leafColumns) {\n        if (!this.children) {\n            return;\n        }\n        this.children.forEach(function (child) {\n            if (child instanceof Column) {\n                leafColumns.push(child);\n            }\n            else if (child instanceof ProvidedColumnGroup) {\n                child.addLeafColumns(leafColumns);\n            }\n        });\n    };\n    ProvidedColumnGroup.prototype.getColumnGroupShow = function () {\n        var colGroupDef = this.colGroupDef;\n        if (!colGroupDef) {\n            return;\n        }\n        return colGroupDef.columnGroupShow;\n    };\n    // need to check that this group has at least one col showing when both expanded and contracted.\n    // if not, then we don't allow expanding and contracting on this group\n    ProvidedColumnGroup.prototype.setupExpandable = function () {\n        var _this = this;\n        this.setExpandable();\n        // note - we should be removing this event listener\n        this.getLeafColumns().forEach(function (col) { return col.addEventListener(Column.EVENT_VISIBLE_CHANGED, _this.onColumnVisibilityChanged.bind(_this)); });\n    };\n    ProvidedColumnGroup.prototype.setExpandable = function () {\n        if (this.isPadding()) {\n            return;\n        }\n        // want to make sure the group doesn't disappear when it's open\n        var atLeastOneShowingWhenOpen = false;\n        // want to make sure the group doesn't disappear when it's closed\n        var atLeastOneShowingWhenClosed = false;\n        // want to make sure the group has something to show / hide\n        var atLeastOneChangeable = false;\n        var children = this.findChildrenRemovingPadding();\n        for (var i = 0, j = children.length; i < j; i++) {\n            var abstractColumn = children[i];\n            if (!abstractColumn.isVisible()) {\n                continue;\n            }\n            // if the abstractColumn is a grid generated group, there will be no colDef\n            var headerGroupShow = abstractColumn.getColumnGroupShow();\n            if (headerGroupShow === ColumnGroup.HEADER_GROUP_SHOW_OPEN) {\n                atLeastOneShowingWhenOpen = true;\n                atLeastOneChangeable = true;\n            }\n            else if (headerGroupShow === ColumnGroup.HEADER_GROUP_SHOW_CLOSED) {\n                atLeastOneShowingWhenClosed = true;\n                atLeastOneChangeable = true;\n            }\n            else {\n                atLeastOneShowingWhenOpen = true;\n                atLeastOneShowingWhenClosed = true;\n            }\n        }\n        var expandable = atLeastOneShowingWhenOpen && atLeastOneShowingWhenClosed && atLeastOneChangeable;\n        if (this.expandable !== expandable) {\n            this.expandable = expandable;\n            var event_1 = {\n                type: ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED\n            };\n            this.localEventService.dispatchEvent(event_1);\n        }\n    };\n    ProvidedColumnGroup.prototype.findChildrenRemovingPadding = function () {\n        var res = [];\n        var process = function (items) {\n            items.forEach(function (item) {\n                // if padding, we add this children instead of the padding\n                var skipBecausePadding = item instanceof ProvidedColumnGroup && item.isPadding();\n                if (skipBecausePadding) {\n                    process(item.children);\n                }\n                else {\n                    res.push(item);\n                }\n            });\n        };\n        process(this.children);\n        return res;\n    };\n    ProvidedColumnGroup.prototype.onColumnVisibilityChanged = function () {\n        this.setExpandable();\n    };\n    ProvidedColumnGroup.prototype.addEventListener = function (eventType, listener) {\n        this.localEventService.addEventListener(eventType, listener);\n    };\n    ProvidedColumnGroup.prototype.removeEventListener = function (eventType, listener) {\n        this.localEventService.removeEventListener(eventType, listener);\n    };\n    ProvidedColumnGroup.EVENT_EXPANDED_CHANGED = 'expandedChanged';\n    ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED = 'expandableChanged';\n    return ProvidedColumnGroup;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar DefaultColumnTypes = {\n    numericColumn: {\n        headerClass: 'ag-right-aligned-header',\n        cellClass: 'ag-right-aligned-cell'\n    },\n    rightAligned: {\n        headerClass: 'ag-right-aligned-header',\n        cellClass: 'ag-right-aligned-cell'\n    }\n};\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar AG_GRID_STOP_PROPAGATION = '__ag_Grid_Stop_Propagation';\nvar PASSIVE_EVENTS = ['touchstart', 'touchend', 'touchmove', 'touchcancel'];\nvar supports = {};\n/**\n * a user once raised an issue - they said that when you opened a popup (eg context menu)\n * and then clicked on a selection checkbox, the popup wasn't closed. this is because the\n * popup listens for clicks on the body, however ag-grid WAS stopping propagation on the\n * checkbox clicks (so the rows didn't pick them up as row selection selection clicks).\n * to get around this, we have a pattern to stop propagation for the purposes of AG Grid,\n * but we still let the event pass back to the body.\n * @param {Event} event\n */\nfunction stopPropagationForAgGrid(event) {\n    event[AG_GRID_STOP_PROPAGATION] = true;\n}\nfunction isStopPropagationForAgGrid(event) {\n    return event[AG_GRID_STOP_PROPAGATION] === true;\n}\nvar isEventSupported = (function () {\n    var tags = {\n        select: 'input',\n        change: 'input',\n        submit: 'form',\n        reset: 'form',\n        error: 'img',\n        load: 'img',\n        abort: 'img'\n    };\n    var eventChecker = function (eventName) {\n        if (typeof supports[eventName] === 'boolean') {\n            return supports[eventName];\n        }\n        var el = document.createElement(tags[eventName] || 'div');\n        eventName = 'on' + eventName;\n        return supports[eventName] = (eventName in el);\n    };\n    return eventChecker;\n})();\nfunction getCtrlForEvent(gridOptionsWrapper, event, type) {\n    var sourceElement = event.target;\n    while (sourceElement) {\n        var renderedComp = gridOptionsWrapper.getDomData(sourceElement, type);\n        if (renderedComp) {\n            return renderedComp;\n        }\n        sourceElement = sourceElement.parentElement;\n    }\n    return null;\n}\n/**\n * @deprecated\n * Adds all type of change listeners to an element, intended to be a text field\n * @param {HTMLElement} element\n * @param {EventListener} listener\n */\nfunction addChangeListener(element, listener) {\n    element.addEventListener('changed', listener);\n    element.addEventListener('paste', listener);\n    element.addEventListener('input', listener);\n}\nfunction isElementInEventPath(element, event) {\n    if (!event || !element) {\n        return false;\n    }\n    return getEventPath(event).indexOf(element) >= 0;\n}\nfunction createEventPath(event) {\n    var res = [];\n    var pointer = event.target;\n    while (pointer) {\n        res.push(pointer);\n        pointer = pointer.parentElement;\n    }\n    return res;\n}\n/**\n * firefox doesn't have event.path set, or any alternative to it, so we hack\n * it in. this is needed as it's to late to work out the path when the item is\n * removed from the dom. used by MouseEventService, where it works out if a click\n * was from the current grid, or a detail grid (master / detail).\n * @param {Event} event\n */\nfunction addAgGridEventPath(event) {\n    event.__agGridEventPath = getEventPath(event);\n}\n/**\n * Gets the path for an Event.\n * https://stackoverflow.com/questions/39245488/event-path-undefined-with-firefox-and-vue-js\n * https://developer.mozilla.org/en-US/docs/Web/API/Event\n * @param {Event} event\n * @returns {EventTarget[]}\n */\nfunction getEventPath(event) {\n    var eventNoType = event;\n    if (eventNoType.path) {\n        // Chrome supports path\n        return eventNoType.path;\n    }\n    if (eventNoType.composedPath) {\n        // Firefox supports composePath\n        return eventNoType.composedPath();\n    }\n    if (eventNoType.__agGridEventPath) {\n        // Firefox supports composePath\n        return eventNoType.__agGridEventPath;\n    }\n    // and finally, if none of the above worked,\n    // we create the path ourselves\n    return createEventPath(event);\n}\nfunction addSafePassiveEventListener(frameworkOverrides, eElement, event, listener) {\n    var isPassive = includes(PASSIVE_EVENTS, event);\n    var options = isPassive ? { passive: true } : undefined;\n    // this check is here for certain scenarios where I believe the user must be destroying\n    // the grid somehow but continuing for it to be used\n    if (frameworkOverrides && frameworkOverrides.addEventListener) {\n        frameworkOverrides.addEventListener(eElement, event, listener, options);\n    }\n}\n\nvar EventUtils = /*#__PURE__*/Object.freeze({\n    stopPropagationForAgGrid: stopPropagationForAgGrid,\n    isStopPropagationForAgGrid: isStopPropagationForAgGrid,\n    isEventSupported: isEventSupported,\n    getCtrlForEvent: getCtrlForEvent,\n    addChangeListener: addChangeListener,\n    isElementInEventPath: isElementInEventPath,\n    createEventPath: createEventPath,\n    addAgGridEventPath: addAgGridEventPath,\n    getEventPath: getEventPath,\n    addSafePassiveEventListener: addSafePassiveEventListener\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar BeanStub = /** @class */ (function () {\n    function BeanStub() {\n        var _this = this;\n        this.destroyFunctions = [];\n        this.destroyed = false;\n        // for vue 3 - prevents Vue from trying to make this (and obviously any sub classes) from being reactive\n        // prevents vue from creating proxies for created objects and prevents identity related issues\n        this.__v_skip = true;\n        this.isAlive = function () { return !_this.destroyed; };\n    }\n    // this was a test constructor niall built, when active, it prints after 5 seconds all beans/components that are\n    // not destroyed. to use, create a new grid, then api.destroy() before 5 seconds. then anything that gets printed\n    // points to a bean or component that was not properly disposed of.\n    // constructor() {\n    //     setTimeout(()=> {\n    //         if (this.isAlive()) {\n    //             let prototype: any = Object.getPrototypeOf(this);\n    //             const constructor: any = prototype.constructor;\n    //             const constructorString = constructor.toString();\n    //             const beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n    //             console.log('is alive ' + beanName);\n    //         }\n    //     }, 5000);\n    // }\n    // CellComp and GridComp and override this because they get the FrameworkOverrides from the Beans bean\n    BeanStub.prototype.getFrameworkOverrides = function () {\n        return this.frameworkOverrides;\n    };\n    BeanStub.prototype.getContext = function () {\n        return this.context;\n    };\n    BeanStub.prototype.destroy = function () {\n        // let prototype: any = Object.getPrototypeOf(this);\n        // const constructor: any = prototype.constructor;\n        // const constructorString = constructor.toString();\n        // const beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n        this.destroyFunctions.forEach(function (func) { return func(); });\n        this.destroyFunctions.length = 0;\n        this.destroyed = true;\n        this.dispatchEvent({ type: BeanStub.EVENT_DESTROYED });\n    };\n    BeanStub.prototype.addEventListener = function (eventType, listener) {\n        if (!this.localEventService) {\n            this.localEventService = new EventService();\n        }\n        this.localEventService.addEventListener(eventType, listener);\n    };\n    BeanStub.prototype.removeEventListener = function (eventType, listener) {\n        if (this.localEventService) {\n            this.localEventService.removeEventListener(eventType, listener);\n        }\n    };\n    BeanStub.prototype.dispatchEventAsync = function (event) {\n        var _this = this;\n        window.setTimeout(function () { return _this.dispatchEvent(event); }, 0);\n    };\n    BeanStub.prototype.dispatchEvent = function (event) {\n        if (this.localEventService) {\n            this.localEventService.dispatchEvent(event);\n        }\n    };\n    BeanStub.prototype.addManagedListener = function (object, event, listener) {\n        var _this = this;\n        if (this.destroyed) {\n            return;\n        }\n        if (object instanceof HTMLElement) {\n            addSafePassiveEventListener(this.getFrameworkOverrides(), object, event, listener);\n        }\n        else {\n            object.addEventListener(event, listener);\n        }\n        var destroyFunc = function () {\n            object.removeEventListener(event, listener);\n            _this.destroyFunctions = _this.destroyFunctions.filter(function (fn) { return fn !== destroyFunc; });\n            return null;\n        };\n        this.destroyFunctions.push(destroyFunc);\n        return destroyFunc;\n    };\n    BeanStub.prototype.addDestroyFunc = function (func) {\n        // if we are already destroyed, we execute the func now\n        if (this.isAlive()) {\n            this.destroyFunctions.push(func);\n        }\n        else {\n            func();\n        }\n    };\n    BeanStub.prototype.createManagedBean = function (bean, context) {\n        var res = this.createBean(bean, context);\n        this.addDestroyFunc(this.destroyBean.bind(this, bean, context));\n        return res;\n    };\n    BeanStub.prototype.createBean = function (bean, context, afterPreCreateCallback) {\n        return (context || this.getContext()).createBean(bean, afterPreCreateCallback);\n    };\n    BeanStub.prototype.destroyBean = function (bean, context) {\n        return (context || this.getContext()).destroyBean(bean);\n    };\n    BeanStub.prototype.destroyBeans = function (beans, context) {\n        var _this = this;\n        if (beans) {\n            beans.forEach(function (bean) { return _this.destroyBean(bean, context); });\n        }\n        return [];\n    };\n    BeanStub.EVENT_DESTROYED = 'destroyed';\n    __decorate$3([\n        Autowired('frameworkOverrides')\n    ], BeanStub.prototype, \"frameworkOverrides\", void 0);\n    __decorate$3([\n        Autowired('context')\n    ], BeanStub.prototype, \"context\", void 0);\n    __decorate$3([\n        Autowired('eventService')\n    ], BeanStub.prototype, \"eventService\", void 0);\n    __decorate$3([\n        Autowired('gridOptionsWrapper')\n    ], BeanStub.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$3([\n        PreDestroy\n    ], BeanStub.prototype, \"destroy\", null);\n    return BeanStub;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$1 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n// takes ColDefs and ColGroupDefs and turns them into Columns and OriginalGroups\nvar ColumnFactory = /** @class */ (function (_super) {\n    __extends(ColumnFactory, _super);\n    function ColumnFactory() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ColumnFactory.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('ColumnFactory');\n    };\n    ColumnFactory.prototype.createColumnTree = function (defs, primaryColumns, existingTree) {\n        // column key creator dishes out unique column id's in a deterministic way,\n        // so if we have two grids (that could be master/slave) with same column definitions,\n        // then this ensures the two grids use identical id's.\n        var columnKeyCreator = new ColumnKeyCreator();\n        var _a = this.extractExistingTreeData(existingTree), existingCols = _a.existingCols, existingGroups = _a.existingGroups, existingColKeys = _a.existingColKeys;\n        columnKeyCreator.addExistingKeys(existingColKeys);\n        // create am unbalanced tree that maps the provided definitions\n        var unbalancedTree = this.recursivelyCreateColumns(defs, 0, primaryColumns, existingCols, columnKeyCreator, existingGroups);\n        var treeDept = this.findMaxDept(unbalancedTree, 0);\n        this.logger.log('Number of levels for grouped columns is ' + treeDept);\n        var columnTree = this.balanceColumnTree(unbalancedTree, 0, treeDept, columnKeyCreator);\n        var deptFirstCallback = function (child, parent) {\n            if (child instanceof ProvidedColumnGroup) {\n                child.setupExpandable();\n            }\n            // we set the original parents at the end, rather than when we go along, as balancing the tree\n            // adds extra levels into the tree. so we can only set parents when balancing is done.\n            child.setOriginalParent(parent);\n        };\n        this.columnUtils.depthFirstOriginalTreeSearch(null, columnTree, deptFirstCallback);\n        return {\n            columnTree: columnTree,\n            treeDept: treeDept\n        };\n    };\n    ColumnFactory.prototype.extractExistingTreeData = function (existingTree) {\n        var existingCols = [];\n        var existingGroups = [];\n        var existingColKeys = [];\n        if (existingTree) {\n            this.columnUtils.depthFirstOriginalTreeSearch(null, existingTree, function (item) {\n                if (item instanceof ProvidedColumnGroup) {\n                    var group = item;\n                    existingGroups.push(group);\n                }\n                else {\n                    var col = item;\n                    existingColKeys.push(col.getId());\n                    existingCols.push(col);\n                }\n            });\n        }\n        return { existingCols: existingCols, existingGroups: existingGroups, existingColKeys: existingColKeys };\n    };\n    ColumnFactory.prototype.createForAutoGroups = function (autoGroupCols, gridBalancedTree) {\n        var _this = this;\n        return autoGroupCols.map(function (col) { return _this.createAutoGroupTreeItem(gridBalancedTree, col); });\n    };\n    ColumnFactory.prototype.createAutoGroupTreeItem = function (balancedColumnTree, column) {\n        var dept = this.findDepth(balancedColumnTree);\n        // at the end, this will be the top of the tree item.\n        var nextChild = column;\n        for (var i = dept - 1; i >= 0; i--) {\n            var autoGroup = new ProvidedColumnGroup(null, \"FAKE_PATH_\" + column.getId() + \"}_\" + i, true, i);\n            this.context.createBean(autoGroup);\n            autoGroup.setChildren([nextChild]);\n            nextChild.setOriginalParent(autoGroup);\n            nextChild = autoGroup;\n        }\n        // at this point, the nextChild is the top most item in the tree\n        return nextChild;\n    };\n    ColumnFactory.prototype.findDepth = function (balancedColumnTree) {\n        var dept = 0;\n        var pointer = balancedColumnTree;\n        while (pointer && pointer[0] && pointer[0] instanceof ProvidedColumnGroup) {\n            dept++;\n            pointer = pointer[0].getChildren();\n        }\n        return dept;\n    };\n    ColumnFactory.prototype.balanceColumnTree = function (unbalancedTree, currentDept, columnDept, columnKeyCreator) {\n        var result = [];\n        // go through each child, for groups, recurse a level deeper,\n        // for columns we need to pad\n        for (var i = 0; i < unbalancedTree.length; i++) {\n            var child = unbalancedTree[i];\n            if (child instanceof ProvidedColumnGroup) {\n                // child is a group, all we do is go to the next level of recursion\n                var originalGroup = child;\n                var newChildren = this.balanceColumnTree(originalGroup.getChildren(), currentDept + 1, columnDept, columnKeyCreator);\n                originalGroup.setChildren(newChildren);\n                result.push(originalGroup);\n            }\n            else {\n                // child is a column - so here we add in the padded column groups if needed\n                var firstPaddedGroup = void 0;\n                var currentPaddedGroup = void 0;\n                // this for loop will NOT run any loops if no padded column groups are needed\n                for (var j = columnDept - 1; j >= currentDept; j--) {\n                    var newColId = columnKeyCreator.getUniqueKey(null, null);\n                    var colGroupDefMerged = this.createMergedColGroupDef(null);\n                    var paddedGroup = new ProvidedColumnGroup(colGroupDefMerged, newColId, true, currentDept);\n                    this.context.createBean(paddedGroup);\n                    if (currentPaddedGroup) {\n                        currentPaddedGroup.setChildren([paddedGroup]);\n                    }\n                    currentPaddedGroup = paddedGroup;\n                    if (!firstPaddedGroup) {\n                        firstPaddedGroup = currentPaddedGroup;\n                    }\n                }\n                // likewise this if statement will not run if no padded groups\n                if (firstPaddedGroup && currentPaddedGroup) {\n                    result.push(firstPaddedGroup);\n                    var hasGroups = unbalancedTree.some(function (leaf) { return leaf instanceof ProvidedColumnGroup; });\n                    if (hasGroups) {\n                        currentPaddedGroup.setChildren([child]);\n                        continue;\n                    }\n                    else {\n                        currentPaddedGroup.setChildren(unbalancedTree);\n                        break;\n                    }\n                }\n                result.push(child);\n            }\n        }\n        return result;\n    };\n    ColumnFactory.prototype.findMaxDept = function (treeChildren, dept) {\n        var maxDeptThisLevel = dept;\n        for (var i = 0; i < treeChildren.length; i++) {\n            var abstractColumn = treeChildren[i];\n            if (abstractColumn instanceof ProvidedColumnGroup) {\n                var originalGroup = abstractColumn;\n                var newDept = this.findMaxDept(originalGroup.getChildren(), dept + 1);\n                if (maxDeptThisLevel < newDept) {\n                    maxDeptThisLevel = newDept;\n                }\n            }\n        }\n        return maxDeptThisLevel;\n    };\n    ColumnFactory.prototype.recursivelyCreateColumns = function (defs, level, primaryColumns, existingColsCopy, columnKeyCreator, existingGroups) {\n        var _this = this;\n        return (defs || []).map(function (def) {\n            if (_this.isColumnGroup(def)) {\n                return _this.createColumnGroup(primaryColumns, def, level, existingColsCopy, columnKeyCreator, existingGroups);\n            }\n            else {\n                return _this.createColumn(primaryColumns, def, existingColsCopy, columnKeyCreator);\n            }\n        });\n    };\n    ColumnFactory.prototype.createColumnGroup = function (primaryColumns, colGroupDef, level, existingColumns, columnKeyCreator, existingGroups) {\n        var colGroupDefMerged = this.createMergedColGroupDef(colGroupDef);\n        var groupId = columnKeyCreator.getUniqueKey(colGroupDefMerged.groupId || null, null);\n        var providedGroup = new ProvidedColumnGroup(colGroupDefMerged, groupId, false, level);\n        this.context.createBean(providedGroup);\n        var existingGroup = this.findExistingGroup(colGroupDef, existingGroups);\n        // make sure we remove, so if user provided duplicate id, then we don't have more than\n        // one column instance for colDef with common id\n        if (existingGroup) {\n            removeFromArray(existingGroups, existingGroup);\n        }\n        if (existingGroup && existingGroup.isExpanded()) {\n            providedGroup.setExpanded(true);\n        }\n        var children = this.recursivelyCreateColumns(colGroupDefMerged.children, level + 1, primaryColumns, existingColumns, columnKeyCreator, existingGroups);\n        providedGroup.setChildren(children);\n        return providedGroup;\n    };\n    ColumnFactory.prototype.createMergedColGroupDef = function (colGroupDef) {\n        var colGroupDefMerged = {};\n        Object.assign(colGroupDefMerged, this.gridOptionsWrapper.getDefaultColGroupDef());\n        Object.assign(colGroupDefMerged, colGroupDef);\n        this.checkForDeprecatedItems(colGroupDefMerged);\n        return colGroupDefMerged;\n    };\n    ColumnFactory.prototype.createColumn = function (primaryColumns, colDef, existingColsCopy, columnKeyCreator) {\n        var colDefMerged = this.mergeColDefs(colDef);\n        this.checkForDeprecatedItems(colDefMerged);\n        // see if column already exists\n        var column = this.findExistingColumn(colDef, existingColsCopy);\n        // make sure we remove, so if user provided duplicate id, then we don't have more than\n        // one column instance for colDef with common id\n        if (existingColsCopy && column) {\n            removeFromArray(existingColsCopy, column);\n        }\n        if (!column) {\n            // no existing column, need to create one\n            var colId = columnKeyCreator.getUniqueKey(colDefMerged.colId, colDefMerged.field);\n            column = new Column(colDefMerged, colDef, colId, primaryColumns);\n            this.context.createBean(column);\n        }\n        else {\n            column.setColDef(colDefMerged, colDef);\n            this.applyColumnState(column, colDefMerged);\n        }\n        return column;\n    };\n    ColumnFactory.prototype.applyColumnState = function (column, colDef) {\n        // flex\n        var flex = attrToNumber(colDef.flex);\n        if (flex !== undefined) {\n            column.setFlex(flex);\n        }\n        // width - we only set width if column is not flexing\n        var noFlexThisCol = column.getFlex() <= 0;\n        if (noFlexThisCol) {\n            // both null and undefined means we skip, as it's not possible to 'clear' width (a column must have a width)\n            var width = attrToNumber(colDef.width);\n            if (width != null) {\n                column.setActualWidth(width);\n            }\n            else {\n                // otherwise set the width again, in case min or max width has changed,\n                // and width needs to be adjusted.\n                var widthBeforeUpdate = column.getActualWidth();\n                column.setActualWidth(widthBeforeUpdate);\n            }\n        }\n        // sort - anything but undefined will set sort, thus null or empty string will clear the sort\n        if (colDef.sort !== undefined) {\n            if (colDef.sort == Constants.SORT_ASC || colDef.sort == Constants.SORT_DESC) {\n                column.setSort(colDef.sort);\n            }\n            else {\n                column.setSort(undefined);\n            }\n        }\n        // sorted at - anything but undefined, thus null will clear the sortIndex\n        var sortIndex = attrToNumber(colDef.sortIndex);\n        if (sortIndex !== undefined) {\n            column.setSortIndex(sortIndex);\n        }\n        // hide - anything but undefined, thus null will clear the hide\n        var hide = attrToBoolean(colDef.hide);\n        if (hide !== undefined) {\n            column.setVisible(!hide);\n        }\n        // pinned - anything but undefined, thus null or empty string will remove pinned\n        if (colDef.pinned !== undefined) {\n            column.setPinned(colDef.pinned);\n        }\n    };\n    ColumnFactory.prototype.findExistingColumn = function (newColDef, existingColsCopy) {\n        return (existingColsCopy || []).find(function (existingCol) {\n            var existingColDef = existingCol.getUserProvidedColDef();\n            if (!existingColDef) {\n                return false;\n            }\n            var newHasId = newColDef.colId != null;\n            var newHasField = newColDef.field != null;\n            if (newHasId) {\n                return existingCol.getId() === newColDef.colId;\n            }\n            if (newHasField) {\n                return existingColDef.field === newColDef.field;\n            }\n            // if no id or field present, then try object equivalence.\n            if (existingColDef === newColDef) {\n                return true;\n            }\n            return false;\n        });\n    };\n    ColumnFactory.prototype.findExistingGroup = function (newGroupDef, existingGroups) {\n        return existingGroups.find(function (existingGroup) {\n            var existingDef = existingGroup.getColGroupDef();\n            if (!existingDef) {\n                return false;\n            }\n            var newHasId = newGroupDef.groupId != null;\n            if (newHasId) {\n                return existingGroup.getId() === newGroupDef.groupId;\n            }\n            return false;\n        });\n    };\n    ColumnFactory.prototype.mergeColDefs = function (colDef) {\n        // start with empty merged definition\n        var colDefMerged = {};\n        // merge properties from default column definitions\n        var defaultColDef = this.gridOptionsWrapper.getDefaultColDef();\n        mergeDeep(colDefMerged, defaultColDef, false, true);\n        // merge properties from column type properties\n        var columnType = colDef.type;\n        if (!columnType) {\n            columnType = defaultColDef && defaultColDef.type;\n        }\n        // if type of both colDef and defaultColDef, then colDef gets preference\n        if (columnType) {\n            this.assignColumnTypes(columnType, colDefMerged);\n        }\n        // merge properties from column definitions\n        mergeDeep(colDefMerged, colDef, false, true);\n        return colDefMerged;\n    };\n    ColumnFactory.prototype.assignColumnTypes = function (type, colDefMerged) {\n        var typeKeys = [];\n        if (type instanceof Array) {\n            var invalidArray = type.some(function (a) { return typeof a !== 'string'; });\n            if (invalidArray) {\n                console.warn(\"AG Grid: if colDef.type is supplied an array it should be of type 'string[]'\");\n            }\n            else {\n                typeKeys = type;\n            }\n        }\n        else if (typeof type === 'string') {\n            typeKeys = type.split(',');\n        }\n        else {\n            console.warn(\"AG Grid: colDef.type should be of type 'string' | 'string[]'\");\n            return;\n        }\n        // merge user defined with default column types\n        var allColumnTypes = Object.assign({}, DefaultColumnTypes);\n        var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};\n        iterateObject(userTypes, function (key, value) {\n            if (key in allColumnTypes) {\n                console.warn(\"AG Grid: the column type '\" + key + \"' is a default column type and cannot be overridden.\");\n            }\n            else {\n                allColumnTypes[key] = value;\n            }\n        });\n        typeKeys.forEach(function (t) {\n            var typeColDef = allColumnTypes[t.trim()];\n            if (typeColDef) {\n                mergeDeep(colDefMerged, typeColDef, false, true);\n            }\n            else {\n                console.warn(\"AG Grid: colDef.type '\" + t + \"' does not correspond to defined gridOptions.columnTypes\");\n            }\n        });\n    };\n    ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {\n        if (colDef) {\n            var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type\n            if (colDefNoType.group !== undefined) {\n                console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');\n            }\n            if (colDefNoType.headerGroup !== undefined) {\n                console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');\n            }\n            if (colDefNoType.headerGroupShow !== undefined) {\n                console.warn('AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3');\n            }\n            if (colDefNoType.suppressRowGroup !== undefined) {\n                console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');\n            }\n            if (colDefNoType.suppressAggregation !== undefined) {\n                console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');\n            }\n            if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {\n                console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');\n            }\n            if (colDefNoType.displayName) {\n                console.warn(\"AG Grid: Found displayName \" + colDefNoType.displayName + \", please use headerName instead, displayName is deprecated.\");\n                colDefNoType.headerName = colDefNoType.displayName;\n            }\n        }\n    };\n    // if object has children, we assume it's a group\n    ColumnFactory.prototype.isColumnGroup = function (abstractColDef) {\n        return abstractColDef.children !== undefined;\n    };\n    __decorate$4([\n        Autowired('columnUtils')\n    ], ColumnFactory.prototype, \"columnUtils\", void 0);\n    __decorate$4([\n        __param$1(0, Qualifier('loggerFactory'))\n    ], ColumnFactory.prototype, \"setBeans\", null);\n    ColumnFactory = __decorate$4([\n        Bean('columnFactory')\n    ], ColumnFactory);\n    return ColumnFactory;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar Events = /** @class */ (function () {\n    function Events() {\n    }\n    /** Everything has changed with the columns. Either complete new set of columns set, or user called setState() */\n    /** @deprecated - grid no longer uses this, and setSate() also fires individual events */\n    Events.EVENT_COLUMN_EVERYTHING_CHANGED = 'columnEverythingChanged';\n    /** User has set in new columns. */\n    Events.EVENT_NEW_COLUMNS_LOADED = 'newColumnsLoaded';\n    /** The pivot mode flag was changed */\n    Events.EVENT_COLUMN_PIVOT_MODE_CHANGED = 'columnPivotModeChanged';\n    /** A row group column was added, removed or order changed. */\n    Events.EVENT_COLUMN_ROW_GROUP_CHANGED = 'columnRowGroupChanged';\n    /** expandAll / collapseAll was called from the api. */\n    Events.EVENT_EXPAND_COLLAPSE_ALL = 'expandOrCollapseAll';\n    /** A pivot column was added, removed or order changed. */\n    Events.EVENT_COLUMN_PIVOT_CHANGED = 'columnPivotChanged';\n    /** The list of grid columns has changed. */\n    Events.EVENT_GRID_COLUMNS_CHANGED = 'gridColumnsChanged';\n    /** A value column was added, removed or agg function was changed. */\n    Events.EVENT_COLUMN_VALUE_CHANGED = 'columnValueChanged';\n    /** A column was moved */\n    Events.EVENT_COLUMN_MOVED = 'columnMoved';\n    /** One or more columns was shown / hidden */\n    Events.EVENT_COLUMN_VISIBLE = 'columnVisible';\n    /** One or more columns was pinned / unpinned*/\n    Events.EVENT_COLUMN_PINNED = 'columnPinned';\n    /** A column group was opened / closed */\n    Events.EVENT_COLUMN_GROUP_OPENED = 'columnGroupOpened';\n    /** One or more columns was resized. If just one, the column in the event is set. */\n    Events.EVENT_COLUMN_RESIZED = 'columnResized';\n    /** The list of displayed columns has changed, can result from columns open / close, column move, pivot, group, etc */\n    Events.EVENT_DISPLAYED_COLUMNS_CHANGED = 'displayedColumnsChanged';\n    /** The list of virtual columns has changed, results from viewport changing */\n    Events.EVENT_VIRTUAL_COLUMNS_CHANGED = 'virtualColumnsChanged';\n    /** Async Transactions Executed */\n    Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED = 'asyncTransactionsFlushed';\n    /** A row group was opened / closed */\n    Events.EVENT_ROW_GROUP_OPENED = 'rowGroupOpened';\n    /** The client has set new data into the grid */\n    Events.EVENT_ROW_DATA_CHANGED = 'rowDataChanged';\n    /** The client has updated data for the grid */\n    Events.EVENT_ROW_DATA_UPDATED = 'rowDataUpdated';\n    /** The client has set new floating data into the grid */\n    Events.EVENT_PINNED_ROW_DATA_CHANGED = 'pinnedRowDataChanged';\n    /** Range selection has changed */\n    Events.EVENT_RANGE_SELECTION_CHANGED = 'rangeSelectionChanged';\n    /** Chart was created */\n    Events.EVENT_CHART_CREATED = 'chartCreated';\n    /** Chart Range selection has changed */\n    Events.EVENT_CHART_RANGE_SELECTION_CHANGED = 'chartRangeSelectionChanged';\n    /** Chart Options have changed */\n    Events.EVENT_CHART_OPTIONS_CHANGED = 'chartOptionsChanged';\n    /** Chart was destroyed */\n    Events.EVENT_CHART_DESTROYED = 'chartDestroyed';\n    /** For when the tool panel is shown / hidden */\n    Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED = 'toolPanelVisibleChanged';\n    Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START = 'columnPanelItemDragStart';\n    Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END = 'columnPanelItemDragEnd';\n    /** Model was updated - grid updates the drawn rows when this happens */\n    Events.EVENT_MODEL_UPDATED = 'modelUpdated';\n    Events.EVENT_PASTE_START = 'pasteStart';\n    Events.EVENT_PASTE_END = 'pasteEnd';\n    Events.EVENT_FILL_START = 'fillStart';\n    Events.EVENT_FILL_END = 'fillEnd';\n    Events.EVENT_CELL_CLICKED = 'cellClicked';\n    Events.EVENT_CELL_DOUBLE_CLICKED = 'cellDoubleClicked';\n    Events.EVENT_CELL_MOUSE_DOWN = 'cellMouseDown';\n    Events.EVENT_CELL_CONTEXT_MENU = 'cellContextMenu';\n    Events.EVENT_CELL_VALUE_CHANGED = 'cellValueChanged';\n    Events.EVENT_CELL_EDIT_REQUEST = 'cellEditRequest';\n    Events.EVENT_ROW_VALUE_CHANGED = 'rowValueChanged';\n    Events.EVENT_CELL_FOCUSED = 'cellFocused';\n    Events.EVENT_FULL_WIDTH_ROW_FOCUSED = 'fullWidthRowFocused';\n    Events.EVENT_ROW_SELECTED = 'rowSelected';\n    Events.EVENT_SELECTION_CHANGED = 'selectionChanged';\n    Events.EVENT_CELL_KEY_DOWN = 'cellKeyDown';\n    Events.EVENT_CELL_KEY_PRESS = 'cellKeyPress';\n    Events.EVENT_CELL_MOUSE_OVER = 'cellMouseOver';\n    Events.EVENT_CELL_MOUSE_OUT = 'cellMouseOut';\n    /** 2 events for filtering. The grid LISTENS for filterChanged and afterFilterChanged */\n    Events.EVENT_FILTER_CHANGED = 'filterChanged';\n    /** Filter was change but not applied. Only useful if apply buttons are used in filters. */\n    Events.EVENT_FILTER_MODIFIED = 'filterModified';\n    Events.EVENT_FILTER_OPENED = 'filterOpened';\n    Events.EVENT_SORT_CHANGED = 'sortChanged';\n    /** A row was removed from the dom, for any reason. Use to clean up resources (if any) used by the row. */\n    Events.EVENT_VIRTUAL_ROW_REMOVED = 'virtualRowRemoved';\n    Events.EVENT_ROW_CLICKED = 'rowClicked';\n    Events.EVENT_ROW_DOUBLE_CLICKED = 'rowDoubleClicked';\n    /** Gets called once after the grid has finished initialising. */\n    Events.EVENT_GRID_READY = 'gridReady';\n    /** Width of height of the main grid div has changed. Grid listens for this and does layout of grid if it's\n     * changed, so always filling the space it was given. */\n    Events.EVENT_GRID_SIZE_CHANGED = 'gridSizeChanged';\n    /** The indexes of the rows rendered has changed, eg user has scrolled to a new vertical position. */\n    Events.EVENT_VIEWPORT_CHANGED = 'viewportChanged';\n    /* The width of the scrollbar has been calculated */\n    Events.EVENT_SCROLLBAR_WIDTH_CHANGED = 'scrollbarWidthChanged';\n    /** Rows were rendered for the first time (ie on async data load). */\n    Events.EVENT_FIRST_DATA_RENDERED = 'firstDataRendered';\n    /** A column drag has started, either resizing a column or moving a column. */\n    Events.EVENT_DRAG_STARTED = 'dragStarted';\n    /** A column drag has stopped */\n    Events.EVENT_DRAG_STOPPED = 'dragStopped';\n    Events.EVENT_CHECKBOX_CHANGED = 'checkboxChanged';\n    Events.EVENT_ROW_EDITING_STARTED = 'rowEditingStarted';\n    Events.EVENT_ROW_EDITING_STOPPED = 'rowEditingStopped';\n    Events.EVENT_CELL_EDITING_STARTED = 'cellEditingStarted';\n    Events.EVENT_CELL_EDITING_STOPPED = 'cellEditingStopped';\n    /** Main body of grid has scrolled, either horizontally or vertically */\n    Events.EVENT_BODY_SCROLL = 'bodyScroll';\n    /** Main body of the grid has stopped scrolling, either horizontally or vertically */\n    Events.EVENT_BODY_SCROLL_END = 'bodyScrollEnd';\n    Events.EVENT_HEIGHT_SCALE_CHANGED = 'heightScaleChanged';\n    /** The displayed page for pagination has changed. For example the data was filtered or sorted,\n     * or the user has moved to a different page. */\n    Events.EVENT_PAGINATION_CHANGED = 'paginationChanged';\n    /** Only used by React, Angular, Web Components and VueJS AG Grid components\n     * (not used if doing plain JavaScript). If the grid receives changes due\n     * to bound properties, this event fires after the grid has finished processing the change. */\n    Events.EVENT_COMPONENT_STATE_CHANGED = 'componentStateChanged';\n    /*****************************  INTERNAL EVENTS: START ******************************************* */\n    /** Please remember to add to ComponentUtil.EXCLUDED_INTERNAL_EVENTS to not have these events exposed to framework components. */\n    /** All items from here down are used internally by the grid, not intended for external use. */\n    // not documented, either experimental, or we just don't want users using an depending on them\n    Events.EVENT_BODY_HEIGHT_CHANGED = 'bodyHeightChanged';\n    Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED = 'displayedColumnsWidthChanged';\n    Events.EVENT_SCROLL_VISIBILITY_CHANGED = 'scrollVisibilityChanged';\n    Events.EVENT_COLUMN_HOVER_CHANGED = 'columnHoverChanged';\n    Events.EVENT_FLASH_CELLS = 'flashCells';\n    Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED = 'paginationPixelOffsetChanged';\n    Events.EVENT_DISPLAYED_ROWS_CHANGED = 'displayedRowsChanged';\n    Events.EVENT_LEFT_PINNED_WIDTH_CHANGED = 'leftPinnedWidthChanged';\n    Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED = 'rightPinnedWidthChanged';\n    Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED = 'rowContainerHeightChanged';\n    Events.EVENT_ROW_DRAG_ENTER = 'rowDragEnter';\n    Events.EVENT_ROW_DRAG_MOVE = 'rowDragMove';\n    Events.EVENT_ROW_DRAG_LEAVE = 'rowDragLeave';\n    Events.EVENT_ROW_DRAG_END = 'rowDragEnd';\n    // primarily for charts\n    Events.EVENT_POPUP_TO_FRONT = 'popupToFront';\n    // these are used for server side group and agg - only used by CS with Viewport Row Model - intention is\n    // to design these better around server side functions and then release to general public when fully working with\n    // all the row models.\n    Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST = 'columnRowGroupChangeRequest';\n    Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST = 'columnPivotChangeRequest';\n    Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST = 'columnValueChangeRequest';\n    Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST = 'columnAggFuncChangeRequest';\n    Events.EVENT_KEYBOARD_FOCUS = 'keyboardFocus';\n    Events.EVENT_MOUSE_FOCUS = 'mouseFocus';\n    Events.EVENT_STORE_UPDATED = 'storeUpdated';\n    return Events;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// class returns unique instance id's for columns.\n// eg, the following calls (in this order) will result in:\n//\n// getInstanceIdForKey('country') => 0\n// getInstanceIdForKey('country') => 1\n// getInstanceIdForKey('country') => 2\n// getInstanceIdForKey('country') => 3\n// getInstanceIdForKey('age') => 0\n// getInstanceIdForKey('age') => 1\n// getInstanceIdForKey('country') => 4\nvar GroupInstanceIdCreator = /** @class */ (function () {\n    function GroupInstanceIdCreator() {\n        // this map contains keys to numbers, so we remember what the last call was\n        this.existingIds = {};\n    }\n    GroupInstanceIdCreator.prototype.getInstanceIdForKey = function (key) {\n        var lastResult = this.existingIds[key];\n        var result;\n        if (typeof lastResult !== 'number') {\n            // first time this key\n            result = 0;\n        }\n        else {\n            result = lastResult + 1;\n        }\n        this.existingIds[key] = result;\n        return result;\n    };\n    return GroupInstanceIdCreator;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar reUnescapedHtml = /[&<>\"']/g;\n/**\n * HTML Escapes.\n */\nvar HTML_ESCAPES = {\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;',\n    '\"': '&quot;',\n    \"'\": '&#39;'\n};\n/**\n * It encodes any string in UTF-8 format\n * taken from https://github.com/mathiasbynens/utf8.js\n * @param {string} s\n * @returns {string}\n */\nfunction utf8_encode(s) {\n    var stringFromCharCode = String.fromCharCode;\n    function ucs2decode(string) {\n        var output = [];\n        if (!string) {\n            return [];\n        }\n        var len = string.length;\n        var counter = 0;\n        var value;\n        var extra;\n        while (counter < len) {\n            value = string.charCodeAt(counter++);\n            if (value >= 0xD800 && value <= 0xDBFF && counter < len) {\n                // high surrogate, and there is a next character\n                extra = string.charCodeAt(counter++);\n                if ((extra & 0xFC00) == 0xDC00) { // low surrogate\n                    output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n                }\n                else {\n                    // unmatched surrogate; only append this code unit, in case the next\n                    // code unit is the high surrogate of a surrogate pair\n                    output.push(value);\n                    counter--;\n                }\n            }\n            else {\n                output.push(value);\n            }\n        }\n        return output;\n    }\n    function checkScalarValue(point) {\n        if (point >= 0xD800 && point <= 0xDFFF) {\n            throw Error('Lone surrogate U+' + point.toString(16).toUpperCase() +\n                ' is not a scalar value');\n        }\n    }\n    function createByte(point, shift) {\n        return stringFromCharCode(((point >> shift) & 0x3F) | 0x80);\n    }\n    function encodeCodePoint(point) {\n        if ((point >= 0 && point <= 31 && point !== 10)) {\n            var convertedCode = point.toString(16).toUpperCase();\n            var paddedCode = convertedCode.padStart(4, '0');\n            return \"_x\" + paddedCode + \"_\";\n        }\n        if ((point & 0xFFFFFF80) == 0) { // 1-byte sequence\n            return stringFromCharCode(point);\n        }\n        var symbol = '';\n        if ((point & 0xFFFFF800) == 0) { // 2-byte sequence\n            symbol = stringFromCharCode(((point >> 6) & 0x1F) | 0xC0);\n        }\n        else if ((point & 0xFFFF0000) == 0) { // 3-byte sequence\n            checkScalarValue(point);\n            symbol = stringFromCharCode(((point >> 12) & 0x0F) | 0xE0);\n            symbol += createByte(point, 6);\n        }\n        else if ((point & 0xFFE00000) == 0) { // 4-byte sequence\n            symbol = stringFromCharCode(((point >> 18) & 0x07) | 0xF0);\n            symbol += createByte(point, 12);\n            symbol += createByte(point, 6);\n        }\n        symbol += stringFromCharCode((point & 0x3F) | 0x80);\n        return symbol;\n    }\n    var codePoints = ucs2decode(s);\n    var length = codePoints.length;\n    var index = -1;\n    var codePoint;\n    var byteString = '';\n    while (++index < length) {\n        codePoint = codePoints[index];\n        byteString += encodeCodePoint(codePoint);\n    }\n    return byteString;\n}\n/**\n * Converts a camelCase string into hyphenated string\n * from https://gist.github.com/youssman/745578062609e8acac9f\n * @param {string} str\n * @return {string}\n */\nfunction camelCaseToHyphen(str) {\n    if (str === null || str === undefined) {\n        return null;\n    }\n    return str.replace(/([A-Z])/g, function (g) { return '-' + g[0].toLowerCase(); });\n}\n/**\n * Converts a hyphenated string into camelCase string\n * from https://stackoverflow.com/questions/6660977/convert-hyphens-to-camel-case-camelcase\n * @param {string} str\n * @return {string}\n */\nfunction hyphenToCamelCase(str) {\n    if (str === null || str === undefined) {\n        return null;\n    }\n    return str.replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); });\n}\nfunction capitalise(str) {\n    return str[0].toUpperCase() + str.substr(1).toLowerCase();\n}\nfunction escapeString(toEscape) {\n    // we call toString() twice, in case value is an object, where user provides\n    // a toString() method, and first call to toString() returns back something other\n    // than a string (eg a number to render)\n    return toEscape == null ? null : toEscape.toString().toString().replace(reUnescapedHtml, function (chr) { return HTML_ESCAPES[chr]; });\n}\n/**\n * Converts a camelCase string into regular text\n * from: https://stackoverflow.com/questions/15369566/putting-space-in-camel-case-string-using-regular-expression\n * @param {string} camelCase\n * @return {string}\n */\nfunction camelCaseToHumanText(camelCase) {\n    if (!camelCase || camelCase == null) {\n        return null;\n    }\n    var rex = /([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g;\n    var words = camelCase.replace(rex, '$1$4 $2$3$5').replace('.', ' ').split(' ');\n    return words.map(function (word) { return word.substring(0, 1).toUpperCase() + ((word.length > 1) ? word.substring(1, word.length) : ''); }).join(' ');\n}\n\nvar StringUtils = /*#__PURE__*/Object.freeze({\n    utf8_encode: utf8_encode,\n    camelCaseToHyphen: camelCaseToHyphen,\n    hyphenToCamelCase: hyphenToCamelCase,\n    capitalise: capitalise,\n    escapeString: escapeString,\n    camelCaseToHumanText: camelCaseToHumanText\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction convertToMap(arr) {\n    var map = new Map();\n    arr.forEach(function (pair) { return map.set(pair[0], pair[1]); });\n    return map;\n}\n// handy for organising a list into a map, where each item is mapped by an attribute, eg mapping Columns by ID\nfunction mapById(arr, callback) {\n    var map = new Map();\n    arr.forEach(function (item) { return map.set(callback(item), item); });\n    return map;\n}\nfunction keys(map) {\n    var arr = [];\n    map.forEach(function (_, key) { return arr.push(key); });\n    return arr;\n}\n\nvar MapUtils = /*#__PURE__*/Object.freeze({\n    convertToMap: convertToMap,\n    mapById: mapById,\n    keys: keys\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$2 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar __values = (undefined && undefined.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n    return ar;\n};\nvar ColumnModel = /** @class */ (function (_super) {\n    __extends$1(ColumnModel, _super);\n    function ColumnModel() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        // header row count, based on user provided columns\n        _this.primaryHeaderRowCount = 0;\n        _this.secondaryHeaderRowCount = 0;\n        // header row count, either above, or based on pivoting if we are pivoting\n        _this.gridHeaderRowCount = 0;\n        // leave level columns of the displayed trees\n        _this.displayedColumnsLeft = [];\n        _this.displayedColumnsRight = [];\n        _this.displayedColumnsCenter = [];\n        // all three lists above combined\n        _this.displayedColumns = [];\n        // for fast lookup, to see if a column or group is still displayed\n        _this.displayedColumnsAndGroupsMap = {};\n        // all columns to be rendered\n        _this.viewportColumns = [];\n        // all columns to be rendered in the centre\n        _this.viewportColumnsCenter = [];\n        _this.autoHeightActiveAtLeastOnce = false;\n        _this.rowGroupColumns = [];\n        _this.valueColumns = [];\n        _this.pivotColumns = [];\n        _this.ready = false;\n        _this.autoGroupsNeedBuilding = false;\n        _this.forceRecreateAutoGroups = false;\n        _this.pivotMode = false;\n        _this.bodyWidth = 0;\n        _this.leftWidth = 0;\n        _this.rightWidth = 0;\n        _this.bodyWidthDirty = true;\n        _this.colDefVersion = 0;\n        _this.flexColsCalculatedAtLestOnce = false;\n        return _this;\n    }\n    ColumnModel.prototype.init = function () {\n        var _this = this;\n        this.suppressColumnVirtualisation = this.gridOptionsWrapper.isSuppressColumnVirtualisation();\n        var pivotMode = this.gridOptionsWrapper.isPivotMode();\n        if (this.isPivotSettingAllowed(pivotMode)) {\n            this.pivotMode = pivotMode;\n        }\n        this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n        this.addManagedListener(this.gridOptionsWrapper, 'autoGroupColumnDef', function () { return _this.onAutoGroupColumnDefChanged(); });\n        this.addManagedListener(this.gridOptionsWrapper, 'defaultColDef', function () { return _this.onDefaultColDefChanged(); });\n    };\n    ColumnModel.prototype.onAutoGroupColumnDefChanged = function () {\n        this.autoGroupsNeedBuilding = true;\n        this.forceRecreateAutoGroups = true;\n        this.updateGridColumns();\n        this.updateDisplayedColumns('gridOptionsChanged');\n    };\n    ColumnModel.prototype.onDefaultColDefChanged = function () {\n        // col def's should get revisited, even if specific column hasn't changed,\n        // as the defaultColDef impacts all columns, so each column should assume it's Col Def has changed.\n        this.colDefVersion++;\n        // likewise for autoGroupCol, the default col def impacts this\n        this.forceRecreateAutoGroups = true;\n        this.createColumnsFromColumnDefs(true);\n    };\n    ColumnModel.prototype.getColDefVersion = function () {\n        return this.colDefVersion;\n    };\n    ColumnModel.prototype.setColumnDefs = function (columnDefs, source) {\n        if (source === void 0) { source = 'api'; }\n        var colsPreviouslyExisted = !!this.columnDefs;\n        this.colDefVersion++;\n        this.columnDefs = columnDefs;\n        this.createColumnsFromColumnDefs(colsPreviouslyExisted, source);\n    };\n    ColumnModel.prototype.createColumnsFromColumnDefs = function (colsPreviouslyExisted, source) {\n        var _this = this;\n        if (source === void 0) { source = 'api'; }\n        // only need to raise before/after events if updating columns, never if setting columns for first time\n        var raiseEventsFunc = colsPreviouslyExisted ? this.compareColumnStatesAndRaiseEvents(source) : undefined;\n        // always invalidate cache on changing columns, as the column id's for the new columns\n        // could overlap with the old id's, so the cache would return old values for new columns.\n        this.valueCache.expire();\n        // NOTE ==================\n        // we should be destroying the existing columns and groups if they exist, for example, the original column\n        // group adds a listener to the columns, it should be also removing the listeners\n        this.autoGroupsNeedBuilding = true;\n        var oldPrimaryColumns = this.primaryColumns;\n        var oldPrimaryTree = this.primaryColumnTree;\n        var balancedTreeResult = this.columnFactory.createColumnTree(this.columnDefs, true, oldPrimaryTree);\n        this.primaryColumnTree = balancedTreeResult.columnTree;\n        this.primaryHeaderRowCount = balancedTreeResult.treeDept + 1;\n        this.primaryColumns = this.getColumnsFromTree(this.primaryColumnTree);\n        this.primaryColumnsMap = {};\n        this.primaryColumns.forEach(function (col) { return _this.primaryColumnsMap[col.getId()] = col; });\n        this.extractRowGroupColumns(source, oldPrimaryColumns);\n        this.extractPivotColumns(source, oldPrimaryColumns);\n        this.extractValueColumns(source, oldPrimaryColumns);\n        this.ready = true;\n        // if we are showing secondary columns, then no need to update grid columns\n        // at this point, as it's the pivot service responsibility to change these\n        // if we are no longer pivoting (ie and need to revert back to primary, otherwise\n        // we shouldn't be touching the primary).\n        var gridColsNotProcessed = this.gridColsArePrimary === undefined;\n        var processGridCols = this.gridColsArePrimary || gridColsNotProcessed;\n        if (processGridCols) {\n            this.updateGridColumns();\n            if (colsPreviouslyExisted && !this.gridOptionsWrapper.isMaintainColumnOrder()) {\n                this.orderGridColumnsLikePrimary();\n            }\n            this.updateDisplayedColumns(source);\n            this.checkViewportColumns();\n        }\n        // this event is not used by AG Grid, but left here for backwards compatibility,\n        // in case applications use it\n        this.dispatchEverythingChanged(source);\n        raiseEventsFunc && raiseEventsFunc();\n        this.dispatchNewColumnsLoaded();\n    };\n    ColumnModel.prototype.dispatchNewColumnsLoaded = function () {\n        var newColumnsLoadedEvent = {\n            type: Events.EVENT_NEW_COLUMNS_LOADED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(newColumnsLoadedEvent);\n    };\n    // this event is legacy, no grid code listens to it. instead the grid listens to New Columns Loaded\n    ColumnModel.prototype.dispatchEverythingChanged = function (source) {\n        if (source === void 0) { source = 'api'; }\n        var eventEverythingChanged = {\n            type: Events.EVENT_COLUMN_EVERYTHING_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(eventEverythingChanged);\n    };\n    ColumnModel.prototype.orderGridColumnsLikePrimary = function () {\n        var _this = this;\n        var primaryColumns = this.primaryColumns;\n        if (!primaryColumns) {\n            return;\n        }\n        this.gridColumns.sort(function (colA, colB) {\n            var primaryIndexA = primaryColumns.indexOf(colA);\n            var primaryIndexB = primaryColumns.indexOf(colB);\n            // if both cols are present in primary, then we just return the position,\n            // so position is maintained.\n            var indexAPresent = primaryIndexA >= 0;\n            var indexBPresent = primaryIndexB >= 0;\n            if (indexAPresent && indexBPresent) {\n                return primaryIndexA - primaryIndexB;\n            }\n            if (indexAPresent) {\n                // B is auto group column, so put B first\n                return 1;\n            }\n            if (indexBPresent) {\n                // A is auto group column, so put A first\n                return -1;\n            }\n            // otherwise both A and B are auto-group columns. so we just keep the order\n            // as they were already in.\n            var gridIndexA = _this.gridColumns.indexOf(colA);\n            var gridIndexB = _this.gridColumns.indexOf(colB);\n            return gridIndexA - gridIndexB;\n        });\n    };\n    ColumnModel.prototype.getAllDisplayedAutoHeightCols = function () {\n        return this.displayedAutoHeightCols;\n    };\n    ColumnModel.prototype.setViewport = function () {\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            this.viewportLeft = this.bodyWidth - this.scrollPosition - this.scrollWidth;\n            this.viewportRight = this.bodyWidth - this.scrollPosition;\n        }\n        else {\n            this.viewportLeft = this.scrollPosition;\n            this.viewportRight = this.scrollWidth + this.scrollPosition;\n        }\n    };\n    // used by clipboard service, to know what columns to paste into\n    ColumnModel.prototype.getDisplayedColumnsStartingAt = function (column) {\n        var currentColumn = column;\n        var columns = [];\n        while (currentColumn != null) {\n            columns.push(currentColumn);\n            currentColumn = this.getDisplayedColAfter(currentColumn);\n        }\n        return columns;\n    };\n    // checks what columns are currently displayed due to column virtualisation. fires an event\n    // if the list of columns has changed.\n    // + setColumnWidth(), setViewportPosition(), setColumnDefs(), sizeColumnsToFit()\n    ColumnModel.prototype.checkViewportColumns = function () {\n        // check displayCenterColumnTree exists first, as it won't exist when grid is initialising\n        if (this.displayedColumnsCenter == null) {\n            return;\n        }\n        var hashBefore = this.viewportColumns.map(function (column) { return column.getId(); }).join('#');\n        this.extractViewport();\n        var hashAfter = this.viewportColumns.map(function (column) { return column.getId(); }).join('#');\n        if (hashBefore !== hashAfter) {\n            var event_1 = {\n                type: Events.EVENT_VIRTUAL_COLUMNS_CHANGED,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n    };\n    ColumnModel.prototype.setViewportPosition = function (scrollWidth, scrollPosition) {\n        if (scrollWidth !== this.scrollWidth || scrollPosition !== this.scrollPosition || this.bodyWidthDirty) {\n            this.scrollWidth = scrollWidth;\n            this.scrollPosition = scrollPosition;\n            // we need to call setVirtualViewportLeftAndRight() at least once after the body width changes,\n            // as the viewport can stay the same, but in RTL, if body width changes, we need to work out the\n            // virtual columns again\n            this.bodyWidthDirty = true;\n            this.setViewport();\n            if (this.ready) {\n                this.checkViewportColumns();\n            }\n        }\n    };\n    ColumnModel.prototype.isPivotMode = function () {\n        return this.pivotMode;\n    };\n    ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {\n        if (pivot && this.gridOptionsWrapper.isTreeData()) {\n            console.warn(\"AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'\");\n            return false;\n        }\n        return true;\n    };\n    ColumnModel.prototype.setPivotMode = function (pivotMode, source) {\n        if (source === void 0) { source = 'api'; }\n        if (pivotMode === this.pivotMode || !this.isPivotSettingAllowed(this.pivotMode)) {\n            return;\n        }\n        this.pivotMode = pivotMode;\n        // we need to update grid columns to cover the scenario where user has groupSuppressAutoColumn=true, as\n        // this means we don't use auto group column UNLESS we are in pivot mode (it's mandatory in pivot mode),\n        // so need to updateGridColumn() to check it autoGroupCol needs to be added / removed\n        this.autoGroupsNeedBuilding = true;\n        this.updateGridColumns();\n        this.updateDisplayedColumns(source);\n        var event = {\n            type: Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {\n        if (missing(this.secondaryColumns)) {\n            return null;\n        }\n        var valueColumnToFind = this.getPrimaryColumn(valueColKey);\n        var foundColumn = null;\n        this.secondaryColumns.forEach(function (column) {\n            var thisPivotKeys = column.getColDef().pivotKeys;\n            var pivotValueColumn = column.getColDef().pivotValueColumn;\n            var pivotKeyMatches = areEqual(thisPivotKeys, pivotKeys);\n            var pivotValueMatches = pivotValueColumn === valueColumnToFind;\n            if (pivotKeyMatches && pivotValueMatches) {\n                foundColumn = column;\n            }\n        });\n        return foundColumn;\n    };\n    ColumnModel.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('columnModel');\n    };\n    ColumnModel.prototype.setFirstRightAndLastLeftPinned = function (source) {\n        var lastLeft;\n        var firstRight;\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            lastLeft = this.displayedColumnsLeft ? this.displayedColumnsLeft[0] : null;\n            firstRight = this.displayedColumnsRight ? last(this.displayedColumnsRight) : null;\n        }\n        else {\n            lastLeft = this.displayedColumnsLeft ? last(this.displayedColumnsLeft) : null;\n            firstRight = this.displayedColumnsRight ? this.displayedColumnsRight[0] : null;\n        }\n        this.gridColumns.forEach(function (column) {\n            column.setLastLeftPinned(column === lastLeft, source);\n            column.setFirstRightPinned(column === firstRight, source);\n        });\n    };\n    ColumnModel.prototype.autoSizeColumns = function (params) {\n        var _this = this;\n        var columns = params.columns, skipHeader = params.skipHeader, skipHeaderGroups = params.skipHeaderGroups, stopAtGroup = params.stopAtGroup, _a = params.source, source = _a === void 0 ? 'api' : _a;\n        // because of column virtualisation, we can only do this function on columns that are\n        // actually rendered, as non-rendered columns (outside the viewport and not rendered\n        // due to column virtualisation) are not present. this can result in all rendered columns\n        // getting narrowed, which in turn introduces more rendered columns on the RHS which\n        // did not get autosized in the original run, leaving the visible grid with columns on\n        // the LHS sized, but RHS no. so we keep looping through the visible columns until\n        // no more cols are available (rendered) to be resized\n        // we autosize after animation frames finish in case any cell renderers need to complete first. this can\n        // happen eg if client code is calling api.autoSizeAllColumns() straight after grid is initialised, but grid\n        // hasn't fully drawn out all the cells yet (due to cell renderers in animation frames).\n        this.animationFrameService.flushAllFrames();\n        // keep track of which cols we have resized in here\n        var columnsAutosized = [];\n        // initialise with anything except 0 so that while loop executes at least once\n        var changesThisTimeAround = -1;\n        var shouldSkipHeader = skipHeader != null ? skipHeader : this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n        var shouldSkipHeaderGroups = skipHeaderGroups != null ? skipHeaderGroups : shouldSkipHeader;\n        while (changesThisTimeAround !== 0) {\n            changesThisTimeAround = 0;\n            this.actionOnGridColumns(columns, function (column) {\n                // if already autosized, skip it\n                if (columnsAutosized.indexOf(column) >= 0) {\n                    return false;\n                }\n                // get how wide this col should be\n                var preferredWidth = _this.autoWidthCalculator.getPreferredWidthForColumn(column, shouldSkipHeader);\n                // preferredWidth = -1 if this col is not on the screen\n                if (preferredWidth > 0) {\n                    var newWidth = _this.normaliseColumnWidth(column, preferredWidth);\n                    column.setActualWidth(newWidth, source);\n                    columnsAutosized.push(column);\n                    changesThisTimeAround++;\n                }\n                return true;\n            }, source);\n        }\n        if (!shouldSkipHeaderGroups) {\n            this.autoSizeColumnGroupsByColumns(columns, stopAtGroup);\n        }\n        this.fireColumnResizedEvent(columnsAutosized, true, 'autosizeColumns');\n    };\n    ColumnModel.prototype.fireColumnResizedEvent = function (columns, finished, source, flexColumns) {\n        if (flexColumns === void 0) { flexColumns = null; }\n        if (columns && columns.length) {\n            var event_2 = {\n                type: Events.EVENT_COLUMN_RESIZED,\n                columns: columns,\n                column: columns.length === 1 ? columns[0] : null,\n                flexColumns: flexColumns,\n                finished: finished,\n                api: this.gridApi,\n                columnApi: this.columnApi,\n                source: source\n            };\n            this.eventService.dispatchEvent(event_2);\n        }\n    };\n    ColumnModel.prototype.autoSizeColumn = function (key, skipHeader, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (key) {\n            this.autoSizeColumns({ columns: [key], skipHeader: skipHeader, skipHeaderGroups: true, source: source });\n        }\n    };\n    ColumnModel.prototype.autoSizeColumnGroupsByColumns = function (keys, stopAtGroup) {\n        var e_1, _a, e_2, _b;\n        var columnGroups = new Set();\n        var columns = this.getGridColumns(keys);\n        columns.forEach(function (col) {\n            var parent = col.getParent();\n            while (parent && parent != stopAtGroup) {\n                if (!parent.isPadding()) {\n                    columnGroups.add(parent);\n                }\n                parent = parent.getParent();\n            }\n        });\n        var headerGroupCtrl;\n        var resizedColumns = [];\n        try {\n            for (var columnGroups_1 = __values(columnGroups), columnGroups_1_1 = columnGroups_1.next(); !columnGroups_1_1.done; columnGroups_1_1 = columnGroups_1.next()) {\n                var columnGroup = columnGroups_1_1.value;\n                try {\n                    for (var _c = (e_2 = void 0, __values(this.ctrlsService.getHeaderRowContainerCtrls())), _d = _c.next(); !_d.done; _d = _c.next()) {\n                        var headerContainerCtrl = _d.value;\n                        headerGroupCtrl = headerContainerCtrl.getHeaderCtrlForColumn(columnGroup);\n                        if (headerGroupCtrl) {\n                            break;\n                        }\n                    }\n                }\n                catch (e_2_1) { e_2 = { error: e_2_1 }; }\n                finally {\n                    try {\n                        if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n                    }\n                    finally { if (e_2) throw e_2.error; }\n                }\n                if (headerGroupCtrl) {\n                    headerGroupCtrl.resizeLeafColumnsToFit();\n                }\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (columnGroups_1_1 && !columnGroups_1_1.done && (_a = columnGroups_1.return)) _a.call(columnGroups_1);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n        return resizedColumns;\n    };\n    ColumnModel.prototype.autoSizeAllColumns = function (skipHeader, source) {\n        if (source === void 0) { source = \"api\"; }\n        var allDisplayedColumns = this.getAllDisplayedColumns();\n        this.autoSizeColumns({ columns: allDisplayedColumns, skipHeader: skipHeader, source: source });\n    };\n    // Possible candidate for reuse (alot of recursive traversal duplication)\n    ColumnModel.prototype.getColumnsFromTree = function (rootColumns) {\n        var result = [];\n        var recursiveFindColumns = function (childColumns) {\n            for (var i = 0; i < childColumns.length; i++) {\n                var child = childColumns[i];\n                if (child instanceof Column) {\n                    result.push(child);\n                }\n                else if (child instanceof ProvidedColumnGroup) {\n                    recursiveFindColumns(child.getChildren());\n                }\n            }\n        };\n        recursiveFindColumns(rootColumns);\n        return result;\n    };\n    ColumnModel.prototype.getAllDisplayedTrees = function () {\n        if (this.displayedTreeLeft && this.displayedTreeRight && this.displayedTreeCentre) {\n            return this.displayedTreeLeft\n                .concat(this.displayedTreeCentre)\n                .concat(this.displayedTreeRight);\n        }\n        return null;\n    };\n    // + columnSelectPanel\n    ColumnModel.prototype.getPrimaryColumnTree = function () {\n        return this.primaryColumnTree;\n    };\n    // + gridPanel -> for resizing the body and setting top margin\n    ColumnModel.prototype.getHeaderRowCount = function () {\n        return this.gridHeaderRowCount;\n    };\n    // + headerRenderer -> setting pinned body width\n    ColumnModel.prototype.getDisplayedTreeLeft = function () {\n        return this.displayedTreeLeft;\n    };\n    // + headerRenderer -> setting pinned body width\n    ColumnModel.prototype.getDisplayedTreeRight = function () {\n        return this.displayedTreeRight;\n    };\n    // + headerRenderer -> setting pinned body width\n    ColumnModel.prototype.getDisplayedTreeCentre = function () {\n        return this.displayedTreeCentre;\n    };\n    // gridPanel -> ensureColumnVisible\n    ColumnModel.prototype.isColumnDisplayed = function (column) {\n        return this.getAllDisplayedColumns().indexOf(column) >= 0;\n    };\n    // + csvCreator\n    ColumnModel.prototype.getAllDisplayedColumns = function () {\n        return this.displayedColumns;\n    };\n    ColumnModel.prototype.getViewportColumns = function () {\n        return this.viewportColumns;\n    };\n    ColumnModel.prototype.getDisplayedLeftColumnsForRow = function (rowNode) {\n        if (!this.colSpanActive) {\n            return this.displayedColumnsLeft;\n        }\n        return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsLeft);\n    };\n    ColumnModel.prototype.getDisplayedRightColumnsForRow = function (rowNode) {\n        if (!this.colSpanActive) {\n            return this.displayedColumnsRight;\n        }\n        return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsRight);\n    };\n    ColumnModel.prototype.getDisplayedColumnsForRow = function (rowNode, displayedColumns, filterCallback, emptySpaceBeforeColumn) {\n        var result = [];\n        var lastConsideredCol = null;\n        var _loop_1 = function (i) {\n            var col = displayedColumns[i];\n            var maxAllowedColSpan = displayedColumns.length - i;\n            var colSpan = Math.min(col.getColSpan(rowNode), maxAllowedColSpan);\n            var columnsToCheckFilter = [col];\n            if (colSpan > 1) {\n                var colsToRemove = colSpan - 1;\n                for (var j = 1; j <= colsToRemove; j++) {\n                    columnsToCheckFilter.push(displayedColumns[i + j]);\n                }\n                i += colsToRemove;\n            }\n            // see which cols we should take out for column virtualisation\n            var filterPasses;\n            if (filterCallback) {\n                // if user provided a callback, means some columns may not be in the viewport.\n                // the user will NOT provide a callback if we are talking about pinned areas,\n                // as pinned areas have no horizontal scroll and do not virtualise the columns.\n                // if lots of columns, that means column spanning, and we set filterPasses = true\n                // if one or more of the columns spanned pass the filter.\n                filterPasses = false;\n                columnsToCheckFilter.forEach(function (colForFilter) {\n                    if (filterCallback(colForFilter)) {\n                        filterPasses = true;\n                    }\n                });\n            }\n            else {\n                filterPasses = true;\n            }\n            if (filterPasses) {\n                if (result.length === 0 && lastConsideredCol) {\n                    var gapBeforeColumn = emptySpaceBeforeColumn ? emptySpaceBeforeColumn(col) : false;\n                    if (gapBeforeColumn) {\n                        result.push(lastConsideredCol);\n                    }\n                }\n                result.push(col);\n            }\n            lastConsideredCol = col;\n            out_i_1 = i;\n        };\n        var out_i_1;\n        for (var i = 0; i < displayedColumns.length; i++) {\n            _loop_1(i);\n            i = out_i_1;\n        }\n        return result;\n    };\n    // + rowRenderer\n    // if we are not column spanning, this just returns back the virtual centre columns,\n    // however if we are column spanning, then different rows can have different virtual\n    // columns, so we have to work out the list for each individual row.\n    ColumnModel.prototype.getViewportCenterColumnsForRow = function (rowNode) {\n        var _this = this;\n        if (!this.colSpanActive) {\n            return this.viewportColumnsCenter;\n        }\n        var emptySpaceBeforeColumn = function (col) {\n            var left = col.getLeft();\n            return exists(left) && left > _this.viewportLeft;\n        };\n        // if doing column virtualisation, then we filter based on the viewport.\n        var filterCallback = this.suppressColumnVirtualisation ? null : this.isColumnInViewport.bind(this);\n        return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsCenter, filterCallback, emptySpaceBeforeColumn);\n    };\n    ColumnModel.prototype.getAriaColumnIndex = function (col) {\n        return this.getAllGridColumns().indexOf(col) + 1;\n    };\n    ColumnModel.prototype.isColumnInViewport = function (col) {\n        // we never filter out autoHeight columns, as we need them in the DOM for calculating Auto Height\n        if (col.isAutoHeight()) {\n            return true;\n        }\n        var columnLeft = col.getLeft() || 0;\n        var columnRight = columnLeft + col.getActualWidth();\n        // adding 200 for buffer size, so some cols off viewport are rendered.\n        // this helps horizontal scrolling so user rarely sees white space (unless\n        // they scroll horizontally fast). however we are conservative, as the more\n        // buffer the slower the vertical redraw speed\n        var leftBounds = this.viewportLeft - 200;\n        var rightBounds = this.viewportRight + 200;\n        var columnToMuchLeft = columnLeft < leftBounds && columnRight < leftBounds;\n        var columnToMuchRight = columnLeft > rightBounds && columnRight > rightBounds;\n        return !columnToMuchLeft && !columnToMuchRight;\n    };\n    // used by:\n    // + angularGrid -> setting pinned body width\n    // note: this should be cached\n    ColumnModel.prototype.getDisplayedColumnsLeftWidth = function () {\n        return this.getWidthOfColsInList(this.displayedColumnsLeft);\n    };\n    // note: this should be cached\n    ColumnModel.prototype.getDisplayedColumnsRightWidth = function () {\n        return this.getWidthOfColsInList(this.displayedColumnsRight);\n    };\n    ColumnModel.prototype.updatePrimaryColumnList = function (keys, masterList, actionIsAdd, columnCallback, eventType, source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        if (!keys || missingOrEmpty(keys)) {\n            return;\n        }\n        var atLeastOne = false;\n        keys.forEach(function (key) {\n            var columnToAdd = _this.getPrimaryColumn(key);\n            if (!columnToAdd) {\n                return;\n            }\n            if (actionIsAdd) {\n                if (masterList.indexOf(columnToAdd) >= 0) {\n                    return;\n                }\n                masterList.push(columnToAdd);\n            }\n            else {\n                if (masterList.indexOf(columnToAdd) < 0) {\n                    return;\n                }\n                removeFromArray(masterList, columnToAdd);\n            }\n            columnCallback(columnToAdd);\n            atLeastOne = true;\n        });\n        if (!atLeastOne) {\n            return;\n        }\n        if (this.autoGroupsNeedBuilding) {\n            this.updateGridColumns();\n        }\n        this.updateDisplayedColumns(source);\n        var event = {\n            type: eventType,\n            columns: masterList,\n            column: masterList.length === 1 ? masterList[0] : null,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.setRowGroupColumns = function (colKeys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.autoGroupsNeedBuilding = true;\n        this.setPrimaryColumnList(colKeys, this.rowGroupColumns, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.setRowGroupActive.bind(this), source);\n    };\n    ColumnModel.prototype.setRowGroupActive = function (active, column, source) {\n        if (active === column.isRowGroupActive()) {\n            return;\n        }\n        column.setRowGroupActive(active, source);\n        if (!active && !this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()) {\n            column.setVisible(true, source);\n        }\n    };\n    ColumnModel.prototype.addRowGroupColumn = function (key, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (key) {\n            this.addRowGroupColumns([key], source);\n        }\n    };\n    ColumnModel.prototype.addRowGroupColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.autoGroupsNeedBuilding = true;\n        this.updatePrimaryColumnList(keys, this.rowGroupColumns, true, this.setRowGroupActive.bind(this, true), Events.EVENT_COLUMN_ROW_GROUP_CHANGED, source);\n    };\n    ColumnModel.prototype.removeRowGroupColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.autoGroupsNeedBuilding = true;\n        this.updatePrimaryColumnList(keys, this.rowGroupColumns, false, this.setRowGroupActive.bind(this, false), Events.EVENT_COLUMN_ROW_GROUP_CHANGED, source);\n    };\n    ColumnModel.prototype.removeRowGroupColumn = function (key, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (key) {\n            this.removeRowGroupColumns([key], source);\n        }\n    };\n    ColumnModel.prototype.addPivotColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.updatePrimaryColumnList(keys, this.pivotColumns, true, function (column) { return column.setPivotActive(true, source); }, Events.EVENT_COLUMN_PIVOT_CHANGED, source);\n    };\n    ColumnModel.prototype.setPivotColumns = function (colKeys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.setPrimaryColumnList(colKeys, this.pivotColumns, Events.EVENT_COLUMN_PIVOT_CHANGED, function (added, column) {\n            column.setPivotActive(added, source);\n        }, source);\n    };\n    ColumnModel.prototype.addPivotColumn = function (key, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.addPivotColumns([key], source);\n    };\n    ColumnModel.prototype.removePivotColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.updatePrimaryColumnList(keys, this.pivotColumns, false, function (column) { return column.setPivotActive(false, source); }, Events.EVENT_COLUMN_PIVOT_CHANGED, source);\n    };\n    ColumnModel.prototype.removePivotColumn = function (key, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.removePivotColumns([key], source);\n    };\n    ColumnModel.prototype.setPrimaryColumnList = function (colKeys, masterList, eventName, columnCallback, source) {\n        var _this = this;\n        masterList.length = 0;\n        if (exists(colKeys)) {\n            colKeys.forEach(function (key) {\n                var column = _this.getPrimaryColumn(key);\n                if (column) {\n                    masterList.push(column);\n                }\n            });\n        }\n        (this.primaryColumns || []).forEach(function (column) {\n            var added = masterList.indexOf(column) >= 0;\n            columnCallback(added, column);\n        });\n        if (this.autoGroupsNeedBuilding) {\n            this.updateGridColumns();\n        }\n        this.updateDisplayedColumns(source);\n        this.fireColumnEvent(eventName, masterList, source);\n    };\n    ColumnModel.prototype.setValueColumns = function (colKeys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.setPrimaryColumnList(colKeys, this.valueColumns, Events.EVENT_COLUMN_VALUE_CHANGED, this.setValueActive.bind(this), source);\n    };\n    ColumnModel.prototype.setValueActive = function (active, column, source) {\n        if (active === column.isValueActive()) {\n            return;\n        }\n        column.setValueActive(active, source);\n        if (active && !column.getAggFunc()) {\n            var initialAggFunc = this.aggFuncService.getDefaultAggFunc(column);\n            column.setAggFunc(initialAggFunc);\n        }\n    };\n    ColumnModel.prototype.addValueColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.updatePrimaryColumnList(keys, this.valueColumns, true, this.setValueActive.bind(this, true), Events.EVENT_COLUMN_VALUE_CHANGED, source);\n    };\n    ColumnModel.prototype.addValueColumn = function (colKey, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (colKey) {\n            this.addValueColumns([colKey], source);\n        }\n    };\n    ColumnModel.prototype.removeValueColumn = function (colKey, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.removeValueColumns([colKey], source);\n    };\n    ColumnModel.prototype.removeValueColumns = function (keys, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.updatePrimaryColumnList(keys, this.valueColumns, false, this.setValueActive.bind(this, false), Events.EVENT_COLUMN_VALUE_CHANGED, source);\n    };\n    // returns the width we can set to this col, taking into consideration min and max widths\n    ColumnModel.prototype.normaliseColumnWidth = function (column, newWidth) {\n        var minWidth = column.getMinWidth();\n        if (exists(minWidth) && newWidth < minWidth) {\n            newWidth = minWidth;\n        }\n        var maxWidth = column.getMaxWidth();\n        if (exists(maxWidth) && column.isGreaterThanMax(newWidth)) {\n            newWidth = maxWidth;\n        }\n        return newWidth;\n    };\n    ColumnModel.prototype.getPrimaryOrGridColumn = function (key) {\n        var column = this.getPrimaryColumn(key);\n        return column || this.getGridColumn(key);\n    };\n    ColumnModel.prototype.setColumnWidths = function (columnWidths, shiftKey, // @takeFromAdjacent - if user has 'shift' pressed, then pixels are taken from adjacent column\n    finished, // @finished - ends up in the event, tells the user if more events are to come\n    source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        var sets = [];\n        columnWidths.forEach(function (columnWidth) {\n            var col = _this.getPrimaryOrGridColumn(columnWidth.key);\n            if (!col) {\n                return;\n            }\n            sets.push({\n                width: columnWidth.newWidth,\n                ratios: [1],\n                columns: [col]\n            });\n            // if user wants to do shift resize by default, then we invert the shift operation\n            var defaultIsShift = _this.gridOptionsWrapper.getColResizeDefault() === 'shift';\n            if (defaultIsShift) {\n                shiftKey = !shiftKey;\n            }\n            if (shiftKey) {\n                var otherCol = _this.getDisplayedColAfter(col);\n                if (!otherCol) {\n                    return;\n                }\n                var widthDiff = col.getActualWidth() - columnWidth.newWidth;\n                var otherColWidth = otherCol.getActualWidth() + widthDiff;\n                sets.push({\n                    width: otherColWidth,\n                    ratios: [1],\n                    columns: [otherCol]\n                });\n            }\n        });\n        if (sets.length === 0) {\n            return;\n        }\n        this.resizeColumnSets({\n            resizeSets: sets,\n            finished: finished,\n            source: source\n        });\n    };\n    ColumnModel.prototype.checkMinAndMaxWidthsForSet = function (columnResizeSet) {\n        var columns = columnResizeSet.columns, width = columnResizeSet.width;\n        // every col has a min width, so sum them all up and see if we have enough room\n        // for all the min widths\n        var minWidthAccumulated = 0;\n        var maxWidthAccumulated = 0;\n        var maxWidthActive = true;\n        columns.forEach(function (col) {\n            var minWidth = col.getMinWidth();\n            minWidthAccumulated += minWidth || 0;\n            var maxWidth = col.getMaxWidth();\n            if (exists(maxWidth) && maxWidth > 0) {\n                maxWidthAccumulated += maxWidth;\n            }\n            else {\n                // if at least one columns has no max width, it means the group of columns\n                // then has no max width, as at least one column can take as much width as possible\n                maxWidthActive = false;\n            }\n        });\n        var minWidthPasses = width >= minWidthAccumulated;\n        var maxWidthPasses = !maxWidthActive || (width <= maxWidthAccumulated);\n        return minWidthPasses && maxWidthPasses;\n    };\n    // method takes sets of columns and resizes them. either all sets will be resized, or nothing\n    // be resized. this is used for example when user tries to resize a group and holds shift key,\n    // then both the current group (grows), and the adjacent group (shrinks), will get resized,\n    // so that's two sets for this method.\n    ColumnModel.prototype.resizeColumnSets = function (params) {\n        var _this = this;\n        var resizeSets = params.resizeSets, finished = params.finished, source = params.source;\n        var passMinMaxCheck = !resizeSets || resizeSets.every(function (columnResizeSet) { return _this.checkMinAndMaxWidthsForSet(columnResizeSet); });\n        if (!passMinMaxCheck) {\n            // even though we are not going to resize beyond min/max size, we still need to raise event when finished\n            if (finished) {\n                var columns = resizeSets && resizeSets.length > 0 ? resizeSets[0].columns : null;\n                this.fireColumnResizedEvent(columns, finished, source);\n            }\n            return; // don't resize!\n        }\n        var changedCols = [];\n        var allResizedCols = [];\n        resizeSets.forEach(function (set) {\n            var width = set.width, columns = set.columns, ratios = set.ratios;\n            // keep track of pixels used, and last column gets the remaining,\n            // to cater for rounding errors, and min width adjustments\n            var newWidths = {};\n            var finishedCols = {};\n            columns.forEach(function (col) { return allResizedCols.push(col); });\n            // the loop below goes through each col. if a col exceeds it's min/max width,\n            // it then gets set to its min/max width and the column is removed marked as 'finished'\n            // and the calculation is done again leaving this column out. take for example columns\n            // {A, width: 50, maxWidth: 100}\n            // {B, width: 50}\n            // {C, width: 50}\n            // and then the set is set to width 600 - on the first pass the grid tries to set each column\n            // to 200. it checks A and sees 200 > 100 and so sets the width to 100. col A is then marked\n            // as 'finished' and the calculation is done again with the remaining cols B and C, which end up\n            // splitting the remaining 500 pixels.\n            var finishedColsGrew = true;\n            var loopCount = 0;\n            var _loop_2 = function () {\n                loopCount++;\n                if (loopCount > 1000) {\n                    // this should never happen, but in the future, someone might introduce a bug here,\n                    // so we stop the browser from hanging and report bug properly\n                    console.error('AG Grid: infinite loop in resizeColumnSets');\n                    return \"break\";\n                }\n                finishedColsGrew = false;\n                var subsetCols = [];\n                var subsetRatioTotal = 0;\n                var pixelsToDistribute = width;\n                columns.forEach(function (col, index) {\n                    var thisColFinished = finishedCols[col.getId()];\n                    if (thisColFinished) {\n                        pixelsToDistribute -= newWidths[col.getId()];\n                    }\n                    else {\n                        subsetCols.push(col);\n                        var ratioThisCol = ratios[index];\n                        subsetRatioTotal += ratioThisCol;\n                    }\n                });\n                // because we are not using all of the ratios (cols can be missing),\n                // we scale the ratio. if all columns are included, then subsetRatioTotal=1,\n                // and so the ratioScale will be 1.\n                var ratioScale = 1 / subsetRatioTotal;\n                subsetCols.forEach(function (col, index) {\n                    var lastCol = index === (subsetCols.length - 1);\n                    var colNewWidth;\n                    if (lastCol) {\n                        colNewWidth = pixelsToDistribute;\n                    }\n                    else {\n                        colNewWidth = Math.round(ratios[index] * width * ratioScale);\n                        pixelsToDistribute -= colNewWidth;\n                    }\n                    var minWidth = col.getMinWidth();\n                    var maxWidth = col.getMaxWidth();\n                    if (exists(minWidth) && colNewWidth < minWidth) {\n                        colNewWidth = minWidth;\n                        finishedCols[col.getId()] = true;\n                        finishedColsGrew = true;\n                    }\n                    else if (exists(maxWidth) && maxWidth > 0 && colNewWidth > maxWidth) {\n                        colNewWidth = maxWidth;\n                        finishedCols[col.getId()] = true;\n                        finishedColsGrew = true;\n                    }\n                    newWidths[col.getId()] = colNewWidth;\n                });\n            };\n            while (finishedColsGrew) {\n                var state_1 = _loop_2();\n                if (state_1 === \"break\")\n                    break;\n            }\n            columns.forEach(function (col) {\n                var newWidth = newWidths[col.getId()];\n                var actualWidth = col.getActualWidth();\n                if (actualWidth !== newWidth) {\n                    col.setActualWidth(newWidth, source);\n                    changedCols.push(col);\n                }\n            });\n        });\n        // if no cols changed, then no need to update more or send event.\n        var atLeastOneColChanged = changedCols.length > 0;\n        var flexedCols = [];\n        if (atLeastOneColChanged) {\n            flexedCols = this.refreshFlexedColumns({ resizingCols: allResizedCols, skipSetLeft: true });\n            this.setLeftValues(source);\n            this.updateBodyWidths();\n            this.checkViewportColumns();\n        }\n        // check for change first, to avoid unnecessary firing of events\n        // however we always fire 'finished' events. this is important\n        // when groups are resized, as if the group is changing slowly,\n        // eg 1 pixel at a time, then each change will fire change events\n        // in all the columns in the group, but only one with get the pixel.\n        var colsForEvent = allResizedCols.concat(flexedCols);\n        if (atLeastOneColChanged || finished) {\n            this.fireColumnResizedEvent(colsForEvent, finished, source, flexedCols);\n        }\n    };\n    ColumnModel.prototype.setColumnAggFunc = function (key, aggFunc, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (!key) {\n            return;\n        }\n        var column = this.getPrimaryColumn(key);\n        if (!column) {\n            return;\n        }\n        column.setAggFunc(aggFunc);\n        this.fireColumnEvent(Events.EVENT_COLUMN_VALUE_CHANGED, [column], source);\n    };\n    ColumnModel.prototype.fireColumnEvent = function (type, columns, source) {\n        var event = {\n            type: type,\n            columns: columns,\n            column: (columns && columns.length == 1) ? columns[0] : null,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.moveRowGroupColumn = function (fromIndex, toIndex, source) {\n        if (source === void 0) { source = \"api\"; }\n        var column = this.rowGroupColumns[fromIndex];\n        this.rowGroupColumns.splice(fromIndex, 1);\n        this.rowGroupColumns.splice(toIndex, 0, column);\n        var event = {\n            type: Events.EVENT_COLUMN_ROW_GROUP_CHANGED,\n            columns: this.rowGroupColumns,\n            column: this.rowGroupColumns.length === 1 ? this.rowGroupColumns[0] : null,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.moveColumns = function (columnsToMoveKeys, toIndex, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.columnAnimationService.start();\n        if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {\n            console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);\n            console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');\n            return;\n        }\n        // we want to pull all the columns out first and put them into an ordered list\n        var columnsToMove = this.getGridColumns(columnsToMoveKeys);\n        var failedRules = !this.doesMovePassRules(columnsToMove, toIndex);\n        if (failedRules) {\n            return;\n        }\n        moveInArray(this.gridColumns, columnsToMove, toIndex);\n        this.updateDisplayedColumns(source);\n        var event = {\n            type: Events.EVENT_COLUMN_MOVED,\n            columns: columnsToMove,\n            column: columnsToMove.length === 1 ? columnsToMove[0] : null,\n            toIndex: toIndex,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n        this.columnAnimationService.finish();\n    };\n    ColumnModel.prototype.doesMovePassRules = function (columnsToMove, toIndex) {\n        // make a copy of what the grid columns would look like after the move\n        var proposedColumnOrder = this.gridColumns.slice();\n        moveInArray(proposedColumnOrder, columnsToMove, toIndex);\n        // then check that the new proposed order of the columns passes all rules\n        if (!this.doesMovePassMarryChildren(proposedColumnOrder)) {\n            return false;\n        }\n        if (!this.doesMovePassLockedPositions(proposedColumnOrder)) {\n            return false;\n        }\n        return true;\n    };\n    // returns the provided cols sorted in same order as they appear in grid columns. eg if grid columns\n    // contains [a,b,c,d,e] and col passed is [e,a] then the passed cols are sorted into [a,e]\n    ColumnModel.prototype.sortColumnsLikeGridColumns = function (cols) {\n        var _this = this;\n        if (!cols || cols.length <= 1) {\n            return;\n        }\n        var notAllColsInGridColumns = cols.filter(function (c) { return _this.gridColumns.indexOf(c) < 0; }).length > 0;\n        if (notAllColsInGridColumns) {\n            return;\n        }\n        cols.sort(function (a, b) {\n            var indexA = _this.gridColumns.indexOf(a);\n            var indexB = _this.gridColumns.indexOf(b);\n            return indexA - indexB;\n        });\n    };\n    ColumnModel.prototype.doesMovePassLockedPositions = function (proposedColumnOrder) {\n        // Placement is a number indicating 'left' 'center' or 'right' as 0 1 2\n        var lastPlacement = 0;\n        var rulePassed = true;\n        var lockPositionToPlacement = function (position) {\n            if (!position) { // false or undefined\n                return 1;\n            }\n            if (position === true) {\n                return 0;\n            }\n            return position === 'left' ? 0 : 2; // Otherwise 'right'\n        };\n        proposedColumnOrder.forEach(function (col) {\n            var placement = lockPositionToPlacement(col.getColDef().lockPosition);\n            if (placement < lastPlacement) { // If placement goes down, we're not in the correct order\n                rulePassed = false;\n            }\n            lastPlacement = placement;\n        });\n        return rulePassed;\n    };\n    ColumnModel.prototype.doesMovePassMarryChildren = function (allColumnsCopy) {\n        var rulePassed = true;\n        this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (child) {\n            if (!(child instanceof ProvidedColumnGroup)) {\n                return;\n            }\n            var columnGroup = child;\n            var colGroupDef = columnGroup.getColGroupDef();\n            var marryChildren = colGroupDef && colGroupDef.marryChildren;\n            if (!marryChildren) {\n                return;\n            }\n            var newIndexes = [];\n            columnGroup.getLeafColumns().forEach(function (col) {\n                var newColIndex = allColumnsCopy.indexOf(col);\n                newIndexes.push(newColIndex);\n            });\n            var maxIndex = Math.max.apply(Math, newIndexes);\n            var minIndex = Math.min.apply(Math, newIndexes);\n            // spread is how far the first column in this group is away from the last column\n            var spread = maxIndex - minIndex;\n            var maxSpread = columnGroup.getLeafColumns().length - 1;\n            // if the columns\n            if (spread > maxSpread) {\n                rulePassed = false;\n            }\n            // console.log(`maxIndex = ${maxIndex}, minIndex = ${minIndex}, spread = ${spread}, maxSpread = ${maxSpread}, fail = ${spread > (count-1)}`)\n            // console.log(allColumnsCopy.map( col => col.getColDef().field).join(','));\n        });\n        return rulePassed;\n    };\n    ColumnModel.prototype.moveColumn = function (key, toIndex, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.moveColumns([key], toIndex, source);\n    };\n    ColumnModel.prototype.moveColumnByIndex = function (fromIndex, toIndex, source) {\n        if (source === void 0) { source = \"api\"; }\n        var column = this.gridColumns[fromIndex];\n        this.moveColumn(column, toIndex, source);\n    };\n    ColumnModel.prototype.getColumnDefs = function () {\n        var _this = this;\n        if (!this.primaryColumns) {\n            return;\n        }\n        var cols = this.primaryColumns.slice();\n        if (this.gridColsArePrimary) {\n            cols.sort(function (a, b) { return _this.gridColumns.indexOf(a) - _this.gridColumns.indexOf(b); });\n        }\n        else if (this.lastPrimaryOrder) {\n            cols.sort(function (a, b) { return _this.lastPrimaryOrder.indexOf(a) - _this.lastPrimaryOrder.indexOf(b); });\n        }\n        return this.columnDefFactory.buildColumnDefs(cols, this.rowGroupColumns, this.pivotColumns);\n    };\n    // used by:\n    // + angularGrid -> for setting body width\n    // + rowController -> setting main row widths (when inserting and resizing)\n    // need to cache this\n    ColumnModel.prototype.getBodyContainerWidth = function () {\n        return this.bodyWidth;\n    };\n    ColumnModel.prototype.getContainerWidth = function (pinned) {\n        switch (pinned) {\n            case Constants.PINNED_LEFT:\n                return this.leftWidth;\n            case Constants.PINNED_RIGHT:\n                return this.rightWidth;\n            default:\n                return this.bodyWidth;\n        }\n    };\n    // after setColumnWidth or updateGroupsAndDisplayedColumns\n    ColumnModel.prototype.updateBodyWidths = function () {\n        var newBodyWidth = this.getWidthOfColsInList(this.displayedColumnsCenter);\n        var newLeftWidth = this.getWidthOfColsInList(this.displayedColumnsLeft);\n        var newRightWidth = this.getWidthOfColsInList(this.displayedColumnsRight);\n        // this is used by virtual col calculation, for RTL only, as a change to body width can impact displayed\n        // columns, due to RTL inverting the y coordinates\n        this.bodyWidthDirty = this.bodyWidth !== newBodyWidth;\n        var atLeastOneChanged = this.bodyWidth !== newBodyWidth || this.leftWidth !== newLeftWidth || this.rightWidth !== newRightWidth;\n        if (atLeastOneChanged) {\n            this.bodyWidth = newBodyWidth;\n            this.leftWidth = newLeftWidth;\n            this.rightWidth = newRightWidth;\n            // when this fires, it is picked up by the gridPanel, which ends up in\n            // gridPanel calling setWidthAndScrollPosition(), which in turn calls setViewportPosition()\n            var event_3 = {\n                type: Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_3);\n        }\n    };\n    // + rowController\n    ColumnModel.prototype.getValueColumns = function () {\n        return this.valueColumns ? this.valueColumns : [];\n    };\n    // + rowController\n    ColumnModel.prototype.getPivotColumns = function () {\n        return this.pivotColumns ? this.pivotColumns : [];\n    };\n    // + clientSideRowModel\n    ColumnModel.prototype.isPivotActive = function () {\n        return this.pivotColumns && this.pivotColumns.length > 0 && this.pivotMode;\n    };\n    // + toolPanel\n    ColumnModel.prototype.getRowGroupColumns = function () {\n        return this.rowGroupColumns ? this.rowGroupColumns : [];\n    };\n    // + rowController -> while inserting rows\n    ColumnModel.prototype.getDisplayedCenterColumns = function () {\n        return this.displayedColumnsCenter;\n    };\n    // + rowController -> while inserting rows\n    ColumnModel.prototype.getDisplayedLeftColumns = function () {\n        return this.displayedColumnsLeft;\n    };\n    ColumnModel.prototype.getDisplayedRightColumns = function () {\n        return this.displayedColumnsRight;\n    };\n    ColumnModel.prototype.getDisplayedColumns = function (type) {\n        switch (type) {\n            case Constants.PINNED_LEFT:\n                return this.getDisplayedLeftColumns();\n            case Constants.PINNED_RIGHT:\n                return this.getDisplayedRightColumns();\n            default:\n                return this.getDisplayedCenterColumns();\n        }\n    };\n    // used by:\n    // + clientSideRowController -> sorting, building quick filter text\n    // + headerRenderer -> sorting (clearing icon)\n    ColumnModel.prototype.getAllPrimaryColumns = function () {\n        return this.primaryColumns ? this.primaryColumns.slice() : null;\n    };\n    ColumnModel.prototype.getSecondaryColumns = function () {\n        return this.secondaryColumns ? this.secondaryColumns.slice() : null;\n    };\n    ColumnModel.prototype.getAllColumnsForQuickFilter = function () {\n        return this.columnsForQuickFilter;\n    };\n    // + moveColumnController\n    ColumnModel.prototype.getAllGridColumns = function () {\n        return this.gridColumns;\n    };\n    ColumnModel.prototype.isEmpty = function () {\n        return missingOrEmpty(this.gridColumns);\n    };\n    ColumnModel.prototype.isRowGroupEmpty = function () {\n        return missingOrEmpty(this.rowGroupColumns);\n    };\n    ColumnModel.prototype.setColumnVisible = function (key, visible, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.setColumnsVisible([key], visible, source);\n    };\n    ColumnModel.prototype.setColumnsVisible = function (keys, visible, source) {\n        var _this = this;\n        if (visible === void 0) { visible = false; }\n        if (source === void 0) { source = \"api\"; }\n        this.columnAnimationService.start();\n        this.actionOnGridColumns(keys, function (column) {\n            if (column.isVisible() !== visible) {\n                column.setVisible(visible, source);\n                return true;\n            }\n            return false;\n        }, source, function () {\n            var event = {\n                type: Events.EVENT_COLUMN_VISIBLE,\n                visible: visible,\n                column: null,\n                columns: null,\n                api: _this.gridApi,\n                columnApi: _this.columnApi,\n                source: source\n            };\n            return event;\n        });\n        this.columnAnimationService.finish();\n    };\n    ColumnModel.prototype.setColumnPinned = function (key, pinned, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (key) {\n            this.setColumnsPinned([key], pinned, source);\n        }\n    };\n    ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        if (this.gridOptionsWrapper.getDomLayout() === 'print') {\n            console.warn(\"Changing the column pinning status is not allowed with domLayout='print'\");\n            return;\n        }\n        this.columnAnimationService.start();\n        var actualPinned;\n        if (pinned === true || pinned === Constants.PINNED_LEFT) {\n            actualPinned = Constants.PINNED_LEFT;\n        }\n        else if (pinned === Constants.PINNED_RIGHT) {\n            actualPinned = Constants.PINNED_RIGHT;\n        }\n        else {\n            actualPinned = null;\n        }\n        this.actionOnGridColumns(keys, function (col) {\n            if (col.getPinned() !== actualPinned) {\n                col.setPinned(actualPinned);\n                return true;\n            }\n            return false;\n        }, source, function () {\n            var event = {\n                type: Events.EVENT_COLUMN_PINNED,\n                pinned: actualPinned,\n                column: null,\n                columns: null,\n                api: _this.gridApi,\n                columnApi: _this.columnApi,\n                source: source\n            };\n            return event;\n        });\n        this.columnAnimationService.finish();\n    };\n    // does an action on a set of columns. provides common functionality for looking up the\n    // columns based on key, getting a list of effected columns, and then updated the event\n    // with either one column (if it was just one col) or a list of columns\n    // used by: autoResize, setVisible, setPinned\n    ColumnModel.prototype.actionOnGridColumns = function (// the column keys this action will be on\n    keys, \n    // the action to do - if this returns false, the column was skipped\n    // and won't be included in the event\n    action, \n    // should return back a column event of the right type\n    source, createEvent) {\n        var _this = this;\n        if (missingOrEmpty(keys)) {\n            return;\n        }\n        var updatedColumns = [];\n        keys.forEach(function (key) {\n            var column = _this.getGridColumn(key);\n            if (!column) {\n                return;\n            }\n            // need to check for false with type (ie !== instead of !=)\n            // as not returning anything (undefined) would also be false\n            var resultOfAction = action(column);\n            if (resultOfAction !== false) {\n                updatedColumns.push(column);\n            }\n        });\n        if (!updatedColumns.length) {\n            return;\n        }\n        this.updateDisplayedColumns(source);\n        if (exists(createEvent) && createEvent) {\n            var event_4 = createEvent();\n            event_4.columns = updatedColumns;\n            event_4.column = updatedColumns.length === 1 ? updatedColumns[0] : null;\n            this.eventService.dispatchEvent(event_4);\n        }\n    };\n    ColumnModel.prototype.getDisplayedColBefore = function (col) {\n        var allDisplayedColumns = this.getAllDisplayedColumns();\n        var oldIndex = allDisplayedColumns.indexOf(col);\n        if (oldIndex > 0) {\n            return allDisplayedColumns[oldIndex - 1];\n        }\n        return null;\n    };\n    // used by:\n    // + rowRenderer -> for navigation\n    ColumnModel.prototype.getDisplayedColAfter = function (col) {\n        var allDisplayedColumns = this.getAllDisplayedColumns();\n        var oldIndex = allDisplayedColumns.indexOf(col);\n        if (oldIndex < (allDisplayedColumns.length - 1)) {\n            return allDisplayedColumns[oldIndex + 1];\n        }\n        return null;\n    };\n    ColumnModel.prototype.getDisplayedGroupAfter = function (columnGroup) {\n        return this.getDisplayedGroupAtDirection(columnGroup, 'After');\n    };\n    ColumnModel.prototype.getDisplayedGroupBefore = function (columnGroup) {\n        return this.getDisplayedGroupAtDirection(columnGroup, 'Before');\n    };\n    ColumnModel.prototype.getDisplayedGroupAtDirection = function (columnGroup, direction) {\n        // pick the last displayed column in this group\n        var requiredLevel = columnGroup.getProvidedColumnGroup().getLevel() + columnGroup.getPaddingLevel();\n        var colGroupLeafColumns = columnGroup.getDisplayedLeafColumns();\n        var col = direction === 'After' ? last(colGroupLeafColumns) : colGroupLeafColumns[0];\n        var getDisplayColMethod = \"getDisplayedCol\" + direction;\n        while (true) {\n            // keep moving to the next col, until we get to another group\n            var column = this[getDisplayColMethod](col);\n            if (!column) {\n                return null;\n            }\n            var groupPointer = this.getColumnGroupAtLevel(column, requiredLevel);\n            if (groupPointer !== columnGroup) {\n                return groupPointer;\n            }\n        }\n    };\n    ColumnModel.prototype.getColumnGroupAtLevel = function (column, level) {\n        // get group at same level as the one we are looking for\n        var groupPointer = column.getParent();\n        var originalGroupLevel;\n        var groupPointerLevel;\n        while (true) {\n            var groupPointerProvidedColumnGroup = groupPointer.getProvidedColumnGroup();\n            originalGroupLevel = groupPointerProvidedColumnGroup.getLevel();\n            groupPointerLevel = groupPointer.getPaddingLevel();\n            if (originalGroupLevel + groupPointerLevel <= level) {\n                break;\n            }\n            groupPointer = groupPointer.getParent();\n        }\n        return groupPointer;\n    };\n    ColumnModel.prototype.isPinningLeft = function () {\n        return this.displayedColumnsLeft.length > 0;\n    };\n    ColumnModel.prototype.isPinningRight = function () {\n        return this.displayedColumnsRight.length > 0;\n    };\n    ColumnModel.prototype.getPrimaryAndSecondaryAndAutoColumns = function () {\n        var _a;\n        return (_a = []).concat.apply(_a, __spread([\n            this.primaryColumns || [],\n            this.groupAutoColumns || [],\n            this.secondaryColumns || [],\n        ]));\n    };\n    ColumnModel.prototype.getPrimaryAndAutoGroupCols = function () {\n        var _a;\n        return (_a = []).concat.apply(_a, __spread([\n            this.primaryColumns || [],\n            this.groupAutoColumns || [],\n        ]));\n    };\n    ColumnModel.prototype.getPrimaryAndSecondaryColumns = function () {\n        var _a;\n        return (_a = []).concat.apply(_a, __spread([\n            this.primaryColumns || [],\n            this.secondaryColumns || [],\n        ]));\n    };\n    ColumnModel.prototype.createStateItemFromColumn = function (column) {\n        var rowGroupIndex = column.isRowGroupActive() ? this.rowGroupColumns.indexOf(column) : null;\n        var pivotIndex = column.isPivotActive() ? this.pivotColumns.indexOf(column) : null;\n        var aggFunc = column.isValueActive() ? column.getAggFunc() : null;\n        var sort = column.getSort() != null ? column.getSort() : null;\n        var sortIndex = column.getSortIndex() != null ? column.getSortIndex() : null;\n        var flex = column.getFlex() != null && column.getFlex() > 0 ? column.getFlex() : null;\n        var res = {\n            colId: column.getColId(),\n            width: column.getActualWidth(),\n            hide: !column.isVisible(),\n            pinned: column.getPinned(),\n            sort: sort,\n            sortIndex: sortIndex,\n            aggFunc: aggFunc,\n            rowGroup: column.isRowGroupActive(),\n            rowGroupIndex: rowGroupIndex,\n            pivot: column.isPivotActive(),\n            pivotIndex: pivotIndex,\n            flex: flex\n        };\n        return res;\n    };\n    ColumnModel.prototype.getColumnState = function () {\n        if (missing(this.primaryColumns) || !this.isAlive()) {\n            return [];\n        }\n        var colsForState = this.getPrimaryAndSecondaryAndAutoColumns();\n        var res = colsForState.map(this.createStateItemFromColumn.bind(this));\n        this.orderColumnStateList(res);\n        return res;\n    };\n    ColumnModel.prototype.orderColumnStateList = function (columnStateList) {\n        // for fast looking, store the index of each column\n        var colIdToGridIndexMap = convertToMap(this.gridColumns.map(function (col, index) { return [col.getColId(), index]; }));\n        columnStateList.sort(function (itemA, itemB) {\n            var posA = colIdToGridIndexMap.has(itemA.colId) ? colIdToGridIndexMap.get(itemA.colId) : -1;\n            var posB = colIdToGridIndexMap.has(itemB.colId) ? colIdToGridIndexMap.get(itemB.colId) : -1;\n            return posA - posB;\n        });\n    };\n    ColumnModel.prototype.resetColumnState = function (source) {\n        // NOTE = there is one bug here that no customer has noticed - if a column has colDef.lockPosition,\n        // this is ignored  below when ordering the cols. to work, we should always put lockPosition cols first.\n        // As a work around, developers should just put lockPosition columns first in their colDef list.\n        if (source === void 0) { source = \"api\"; }\n        // we can't use 'allColumns' as the order might of messed up, so get the primary ordered list\n        var primaryColumns = this.getColumnsFromTree(this.primaryColumnTree);\n        var columnStates = [];\n        // we start at 1000, so if user has mix of rowGroup and group specified, it will work with both.\n        // eg IF user has ColA.rowGroupIndex=0, ColB.rowGroupIndex=1, ColC.rowGroup=true,\n        // THEN result will be ColA.rowGroupIndex=0, ColB.rowGroupIndex=1, ColC.rowGroup=1000\n        var letRowGroupIndex = 1000;\n        var letPivotIndex = 1000;\n        var colsToProcess = [];\n        if (this.groupAutoColumns) {\n            colsToProcess = colsToProcess.concat(this.groupAutoColumns);\n        }\n        if (primaryColumns) {\n            colsToProcess = colsToProcess.concat(primaryColumns);\n        }\n        colsToProcess.forEach(function (column) {\n            var getValueOrNull = function (a, b) { return a != null ? a : b != null ? b : null; };\n            var colDef = column.getColDef();\n            var sort = getValueOrNull(colDef.sort, colDef.initialSort);\n            var sortIndex = getValueOrNull(colDef.sortIndex, colDef.initialSortIndex);\n            var hide = getValueOrNull(colDef.hide, colDef.initialHide);\n            var pinned = getValueOrNull(colDef.pinned, colDef.initialPinned);\n            var width = getValueOrNull(colDef.width, colDef.initialWidth);\n            var flex = getValueOrNull(colDef.flex, colDef.initialFlex);\n            var rowGroupIndex = getValueOrNull(colDef.rowGroupIndex, colDef.initialRowGroupIndex);\n            var rowGroup = getValueOrNull(colDef.rowGroup, colDef.initialRowGroup);\n            if (rowGroupIndex == null && (rowGroup == null || rowGroup == false)) {\n                rowGroupIndex = null;\n                rowGroup = null;\n            }\n            var pivotIndex = getValueOrNull(colDef.pivotIndex, colDef.initialPivotIndex);\n            var pivot = getValueOrNull(colDef.pivot, colDef.initialPivot);\n            if (pivotIndex == null && (pivot == null || pivot == false)) {\n                pivotIndex = null;\n                pivot = null;\n            }\n            var aggFunc = getValueOrNull(colDef.aggFunc, colDef.initialAggFunc);\n            var stateItem = {\n                colId: column.getColId(),\n                sort: sort,\n                sortIndex: sortIndex,\n                hide: hide,\n                pinned: pinned,\n                width: width,\n                flex: flex,\n                rowGroup: rowGroup,\n                rowGroupIndex: rowGroupIndex,\n                pivot: pivot,\n                pivotIndex: pivotIndex,\n                aggFunc: aggFunc,\n            };\n            if (missing(rowGroupIndex) && rowGroup) {\n                stateItem.rowGroupIndex = letRowGroupIndex++;\n            }\n            if (missing(pivotIndex) && pivot) {\n                stateItem.pivotIndex = letPivotIndex++;\n            }\n            columnStates.push(stateItem);\n        });\n        this.applyColumnState({ state: columnStates, applyOrder: true }, source);\n    };\n    ColumnModel.prototype.applyColumnState = function (params, source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        if (missingOrEmpty(this.primaryColumns)) {\n            return false;\n        }\n        if (params && params.state && !params.state.forEach) {\n            console.warn('AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.');\n            return false;\n        }\n        var applyStates = function (states, existingColumns, getById) {\n            var raiseEventsFunc = _this.compareColumnStatesAndRaiseEvents(source);\n            _this.autoGroupsNeedBuilding = true;\n            // at the end below, this list will have all columns we got no state for\n            var columnsWithNoState = existingColumns.slice();\n            var rowGroupIndexes = {};\n            var pivotIndexes = {};\n            var autoGroupColumnStates = [];\n            // If pivoting is modified, these are the states we try to reapply after\n            // the secondary columns are re-generated\n            var unmatchedAndAutoStates = [];\n            var unmatchedCount = 0;\n            var previousRowGroupCols = _this.rowGroupColumns.slice();\n            var previousPivotCols = _this.pivotColumns.slice();\n            states.forEach(function (state) {\n                var colId = state.colId || '';\n                // auto group columns are re-created so deferring syncing with ColumnState\n                var isAutoGroupColumn = colId.startsWith(Constants.GROUP_AUTO_COLUMN_ID);\n                if (isAutoGroupColumn) {\n                    autoGroupColumnStates.push(state);\n                    unmatchedAndAutoStates.push(state);\n                    return;\n                }\n                var column = getById(colId);\n                if (!column) {\n                    unmatchedAndAutoStates.push(state);\n                    unmatchedCount += 1;\n                }\n                else {\n                    _this.syncColumnWithStateItem(column, state, params.defaultState, rowGroupIndexes, pivotIndexes, false, source);\n                    removeFromArray(columnsWithNoState, column);\n                }\n            });\n            // anything left over, we got no data for, so add in the column as non-value, non-rowGroup and hidden\n            var applyDefaultsFunc = function (col) {\n                return _this.syncColumnWithStateItem(col, null, params.defaultState, rowGroupIndexes, pivotIndexes, false, source);\n            };\n            columnsWithNoState.forEach(applyDefaultsFunc);\n            // sort the lists according to the indexes that were provided\n            var comparator = function (indexes, oldList, colA, colB) {\n                var indexA = indexes[colA.getId()];\n                var indexB = indexes[colB.getId()];\n                var aHasIndex = indexA != null;\n                var bHasIndex = indexB != null;\n                if (aHasIndex && bHasIndex) {\n                    // both a and b are new cols with index, so sort on index\n                    return indexA - indexB;\n                }\n                if (aHasIndex) {\n                    // a has an index, so it should be before a\n                    return -1;\n                }\n                if (bHasIndex) {\n                    // b has an index, so it should be before a\n                    return 1;\n                }\n                var oldIndexA = oldList.indexOf(colA);\n                var oldIndexB = oldList.indexOf(colB);\n                var aHasOldIndex = oldIndexA >= 0;\n                var bHasOldIndex = oldIndexB >= 0;\n                if (aHasOldIndex && bHasOldIndex) {\n                    // both a and b are old cols, so sort based on last order\n                    return oldIndexA - oldIndexB;\n                }\n                if (aHasOldIndex) {\n                    // a is old, b is new, so b is first\n                    return -1;\n                }\n                // this bit does matter, means both are new cols\n                // but without index or that b is old and a is new\n                return 1;\n            };\n            _this.rowGroupColumns.sort(comparator.bind(_this, rowGroupIndexes, previousRowGroupCols));\n            _this.pivotColumns.sort(comparator.bind(_this, pivotIndexes, previousPivotCols));\n            _this.updateGridColumns();\n            // sync newly created auto group columns with ColumnState\n            var autoGroupColsCopy = _this.groupAutoColumns ? _this.groupAutoColumns.slice() : [];\n            autoGroupColumnStates.forEach(function (stateItem) {\n                var autoCol = _this.getAutoColumn(stateItem.colId);\n                removeFromArray(autoGroupColsCopy, autoCol);\n                _this.syncColumnWithStateItem(autoCol, stateItem, params.defaultState, null, null, true, source);\n            });\n            // autogroup cols with nothing else, apply the default\n            autoGroupColsCopy.forEach(applyDefaultsFunc);\n            _this.applyOrderAfterApplyState(params);\n            _this.updateDisplayedColumns(source);\n            _this.dispatchEverythingChanged(source);\n            raiseEventsFunc(); // Will trigger secondary column changes if pivoting modified\n            return { unmatchedAndAutoStates: unmatchedAndAutoStates, unmatchedCount: unmatchedCount };\n        };\n        this.columnAnimationService.start();\n        var _a = applyStates(params.state || [], this.primaryColumns || [], function (id) { return _this.getPrimaryColumn(id); }), unmatchedAndAutoStates = _a.unmatchedAndAutoStates, unmatchedCount = _a.unmatchedCount;\n        // If there are still states left over, see if we can apply them to newly generated\n        // secondary or auto columns. Also if defaults exist, ensure they are applied to secondary cols\n        if (unmatchedAndAutoStates.length > 0 || exists(params.defaultState)) {\n            unmatchedCount = applyStates(unmatchedAndAutoStates, this.secondaryColumns || [], function (id) { return _this.getSecondaryColumn(id); }).unmatchedCount;\n        }\n        this.columnAnimationService.finish();\n        return unmatchedCount === 0; // Successful if no states unaccounted for\n    };\n    ColumnModel.prototype.applyOrderAfterApplyState = function (params) {\n        var _this = this;\n        if (!params.applyOrder || !params.state) {\n            return;\n        }\n        var newOrder = [];\n        var processedColIds = {};\n        params.state.forEach(function (item) {\n            if (!item.colId || processedColIds[item.colId]) {\n                return;\n            }\n            var col = _this.gridColumnsMap[item.colId];\n            if (col) {\n                newOrder.push(col);\n                processedColIds[item.colId] = true;\n            }\n        });\n        // add in all other columns\n        var autoGroupInsertIndex = 0;\n        this.gridColumns.forEach(function (col) {\n            var colId = col.getColId();\n            var alreadyProcessed = processedColIds[colId] != null;\n            if (alreadyProcessed) {\n                return;\n            }\n            var isAutoGroupCol = colId.startsWith(Constants.GROUP_AUTO_COLUMN_ID);\n            if (isAutoGroupCol) {\n                // auto group columns, if missing from state list, are added to the start.\n                // it's common to have autoGroup missing, as grouping could be on by default\n                // on a column, but the user could of since removed the grouping via the UI.\n                // if we don't inc the insert index, autoGroups will be inserted in reverse order\n                insertIntoArray(newOrder, col, autoGroupInsertIndex++);\n            }\n            else {\n                // normal columns, if missing from state list, are added at the end\n                newOrder.push(col);\n            }\n        });\n        // this is already done in updateGridColumns, however we changed the order above (to match the order of the state\n        // columns) so we need to do it again. we could of put logic into the order above to take into account fixed\n        // columns, however if we did then we would have logic for updating fixed columns twice. reusing the logic here\n        // is less sexy for the code here, but it keeps consistency.\n        newOrder = this.placeLockedColumns(newOrder);\n        if (!this.doesMovePassMarryChildren(newOrder)) {\n            console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');\n            return;\n        }\n        this.gridColumns = newOrder;\n    };\n    ColumnModel.prototype.compareColumnStatesAndRaiseEvents = function (source) {\n        var _this = this;\n        var startState = {\n            rowGroupColumns: this.rowGroupColumns.slice(),\n            pivotColumns: this.pivotColumns.slice(),\n            valueColumns: this.valueColumns.slice()\n        };\n        var columnStateBefore = this.getColumnState();\n        var columnStateBeforeMap = {};\n        columnStateBefore.forEach(function (col) {\n            columnStateBeforeMap[col.colId] = col;\n        });\n        return function () {\n            if (_this.gridOptionsWrapper.isSuppressColumnStateEvents()) {\n                return;\n            }\n            var colsForState = _this.getPrimaryAndSecondaryAndAutoColumns();\n            // raises generic ColumnEvents where all columns are returned rather than what has changed\n            var raiseWhenListsDifferent = function (eventType, colsBefore, colsAfter, idMapper) {\n                var beforeList = colsBefore.map(idMapper);\n                var afterList = colsAfter.map(idMapper);\n                var unchanged = areEqual(beforeList, afterList);\n                if (unchanged) {\n                    return;\n                }\n                // returning all columns rather than what has changed!\n                var event = {\n                    type: eventType,\n                    columns: colsAfter,\n                    column: colsAfter.length === 1 ? colsAfter[0] : null,\n                    api: _this.gridApi,\n                    columnApi: _this.columnApi,\n                    source: source\n                };\n                _this.eventService.dispatchEvent(event);\n            };\n            // determines which columns have changed according to supplied predicate\n            var getChangedColumns = function (changedPredicate) {\n                var changedColumns = [];\n                colsForState.forEach(function (column) {\n                    var colStateBefore = columnStateBeforeMap[column.getColId()];\n                    if (colStateBefore && changedPredicate(colStateBefore, column)) {\n                        changedColumns.push(column);\n                    }\n                });\n                return changedColumns;\n            };\n            var columnIdMapper = function (c) { return c.getColId(); };\n            raiseWhenListsDifferent(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, startState.rowGroupColumns, _this.rowGroupColumns, columnIdMapper);\n            raiseWhenListsDifferent(Events.EVENT_COLUMN_PIVOT_CHANGED, startState.pivotColumns, _this.pivotColumns, columnIdMapper);\n            var valueChangePredicate = function (cs, c) {\n                var oldActive = cs.aggFunc != null;\n                var activeChanged = oldActive != c.isValueActive();\n                // we only check aggFunc if the agg is active\n                var aggFuncChanged = oldActive && cs.aggFunc != c.getAggFunc();\n                return activeChanged || aggFuncChanged;\n            };\n            var changedValues = getChangedColumns(valueChangePredicate);\n            if (changedValues.length > 0) {\n                // we pass all value columns, now the ones that changed. this is the same\n                // as pivot and rowGroup cols, but different to all other properties below.\n                // this is more for backwards compatibility, as it's always been this way.\n                // really it should be the other way, as the order of the cols makes no difference\n                // for valueColumns (apart from displaying them in the tool panel).\n                _this.fireColumnEvent(Events.EVENT_COLUMN_VALUE_CHANGED, _this.valueColumns, source);\n            }\n            var resizeChangePredicate = function (cs, c) { return cs.width != c.getActualWidth(); };\n            _this.fireColumnResizedEvent(getChangedColumns(resizeChangePredicate), true, source);\n            var pinnedChangePredicate = function (cs, c) { return cs.pinned != c.getPinned(); };\n            _this.raiseColumnPinnedEvent(getChangedColumns(pinnedChangePredicate), source);\n            var visibilityChangePredicate = function (cs, c) { return cs.hide == c.isVisible(); };\n            _this.raiseColumnVisibleEvent(getChangedColumns(visibilityChangePredicate), source);\n            var sortChangePredicate = function (cs, c) { return cs.sort != c.getSort() || cs.sortIndex != c.getSortIndex(); };\n            if (getChangedColumns(sortChangePredicate).length > 0) {\n                _this.sortController.dispatchSortChangedEvents(source);\n            }\n            // special handling for moved column events\n            _this.raiseColumnMovedEvent(columnStateBefore, source);\n        };\n    };\n    ColumnModel.prototype.raiseColumnPinnedEvent = function (changedColumns, source) {\n        if (!changedColumns.length) {\n            return;\n        }\n        // if just one column, we use this, otherwise we don't include the col\n        var column = changedColumns.length === 1 ? changedColumns[0] : null;\n        // only include visible if it's common in all columns\n        var pinned = this.getCommonValue(changedColumns, function (col) { return col.getPinned(); });\n        var event = {\n            type: Events.EVENT_COLUMN_PINNED,\n            // mistake in typing, 'undefined' should be allowed, as 'null' means 'not pinned'\n            pinned: pinned != null ? pinned : null,\n            columns: changedColumns,\n            column: column,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.getCommonValue = function (cols, valueGetter) {\n        if (!cols || cols.length == 0) {\n            return undefined;\n        }\n        // compare each value to the first value. if nothing differs, then value is common so return it.\n        var firstValue = valueGetter(cols[0]);\n        for (var i = 1; i < cols.length; i++) {\n            if (firstValue !== valueGetter(cols[i])) {\n                // values differ, no common value\n                return undefined;\n            }\n        }\n        return firstValue;\n    };\n    ColumnModel.prototype.raiseColumnVisibleEvent = function (changedColumns, source) {\n        if (!changedColumns.length) {\n            return;\n        }\n        // if just one column, we use this, otherwise we don't include the col\n        var column = changedColumns.length === 1 ? changedColumns[0] : null;\n        // only include visible if it's common in all columns\n        var visible = this.getCommonValue(changedColumns, function (col) { return col.isVisible(); });\n        var event = {\n            type: Events.EVENT_COLUMN_VISIBLE,\n            visible: visible,\n            columns: changedColumns,\n            column: column,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.raiseColumnMovedEvent = function (colStateBefore, source) {\n        // we are only interested in columns that were both present and visible before and after\n        var _this = this;\n        var colStateAfter = this.getColumnState();\n        var colStateAfterMapped = {};\n        colStateAfter.forEach(function (s) { return colStateAfterMapped[s.colId] = s; });\n        // get id's of cols in both before and after lists\n        var colsIntersectIds = {};\n        colStateBefore.forEach(function (s) {\n            if (colStateAfterMapped[s.colId]) {\n                colsIntersectIds[s.colId] = true;\n            }\n        });\n        // filter state lists, so we only have cols that were present before and after\n        var beforeFiltered = colStateBefore.filter(function (c) { return colsIntersectIds[c.colId]; });\n        var afterFiltered = colStateAfter.filter(function (c) { return colsIntersectIds[c.colId]; });\n        // see if any cols are in a different location\n        var movedColumns = [];\n        afterFiltered.forEach(function (csAfter, index) {\n            var csBefore = beforeFiltered && beforeFiltered[index];\n            if (csBefore && csBefore.colId !== csAfter.colId) {\n                var gridCol = _this.getGridColumn(csBefore.colId);\n                if (gridCol) {\n                    movedColumns.push(gridCol);\n                }\n            }\n        });\n        if (!movedColumns.length) {\n            return;\n        }\n        var event = {\n            type: Events.EVENT_COLUMN_MOVED,\n            columns: movedColumns,\n            column: null,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.syncColumnWithStateItem = function (column, stateItem, defaultState, rowGroupIndexes, pivotIndexes, autoCol, source) {\n        if (!column) {\n            return;\n        }\n        var getValue = function (key1, key2) {\n            var obj = { value1: undefined, value2: undefined };\n            var calculated = false;\n            if (stateItem) {\n                if (stateItem[key1] !== undefined) {\n                    obj.value1 = stateItem[key1];\n                    calculated = true;\n                }\n                if (exists(key2) && stateItem[key2] !== undefined) {\n                    obj.value2 = stateItem[key2];\n                    calculated = true;\n                }\n            }\n            if (!calculated && defaultState) {\n                if (defaultState[key1] !== undefined) {\n                    obj.value1 = defaultState[key1];\n                }\n                if (exists(key2) && defaultState[key2] !== undefined) {\n                    obj.value2 = defaultState[key2];\n                }\n            }\n            return obj;\n        };\n        // following ensures we are left with boolean true or false, eg converts (null, undefined, 0) all to true\n        var hide = getValue('hide').value1;\n        if (hide !== undefined) {\n            column.setVisible(!hide, source);\n        }\n        // sets pinned to 'left' or 'right'\n        var pinned = getValue('pinned').value1;\n        if (pinned !== undefined) {\n            column.setPinned(pinned);\n        }\n        // if width provided and valid, use it, otherwise stick with the old width\n        var minColWidth = this.columnUtils.calculateColMinWidth(column.getColDef());\n        // flex\n        var flex = getValue('flex').value1;\n        if (flex !== undefined) {\n            column.setFlex(flex);\n        }\n        // width - we only set width if column is not flexing\n        var noFlexThisCol = column.getFlex() <= 0;\n        if (noFlexThisCol) {\n            // both null and undefined means we skip, as it's not possible to 'clear' width (a column must have a width)\n            var width = getValue('width').value1;\n            if (width != null) {\n                if (minColWidth != null && width >= minColWidth) {\n                    column.setActualWidth(width, source);\n                }\n            }\n        }\n        var sort = getValue('sort').value1;\n        if (sort !== undefined) {\n            if (sort === Constants.SORT_DESC || sort === Constants.SORT_ASC) {\n                column.setSort(sort, source);\n            }\n            else {\n                column.setSort(undefined, source);\n            }\n        }\n        var sortIndex = getValue('sortIndex').value1;\n        if (sortIndex !== undefined) {\n            column.setSortIndex(sortIndex);\n        }\n        // we do not do aggFunc, rowGroup or pivot for auto cols or secondary cols\n        if (autoCol || !column.isPrimary()) {\n            return;\n        }\n        var aggFunc = getValue('aggFunc').value1;\n        if (aggFunc !== undefined) {\n            if (typeof aggFunc === 'string') {\n                column.setAggFunc(aggFunc);\n                if (!column.isValueActive()) {\n                    column.setValueActive(true, source);\n                    this.valueColumns.push(column);\n                }\n            }\n            else {\n                if (exists(aggFunc)) {\n                    console.warn('AG Grid: stateItem.aggFunc must be a string. if using your own aggregation ' +\n                        'functions, register the functions first before using them in get/set state. This is because it is ' +\n                        'intended for the column state to be stored and retrieved as simple JSON.');\n                }\n                // Note: we do not call column.setAggFunc(null), so that next time we aggregate\n                // by this column (eg drag the column to the agg section int he toolpanel) it will\n                // default to the last aggregation function.\n                if (column.isValueActive()) {\n                    column.setValueActive(false, source);\n                    removeFromArray(this.valueColumns, column);\n                }\n            }\n        }\n        var _a = getValue('rowGroup', 'rowGroupIndex'), rowGroup = _a.value1, rowGroupIndex = _a.value2;\n        if (rowGroup !== undefined || rowGroupIndex !== undefined) {\n            if (typeof rowGroupIndex === 'number' || rowGroup) {\n                if (!column.isRowGroupActive()) {\n                    column.setRowGroupActive(true, source);\n                    this.rowGroupColumns.push(column);\n                }\n                if (rowGroupIndexes && typeof rowGroupIndex === 'number') {\n                    rowGroupIndexes[column.getId()] = rowGroupIndex;\n                }\n            }\n            else {\n                if (column.isRowGroupActive()) {\n                    column.setRowGroupActive(false, source);\n                    removeFromArray(this.rowGroupColumns, column);\n                }\n            }\n        }\n        var _b = getValue('pivot', 'pivotIndex'), pivot = _b.value1, pivotIndex = _b.value2;\n        if (pivot !== undefined || pivotIndex !== undefined) {\n            if (typeof pivotIndex === 'number' || pivot) {\n                if (!column.isPivotActive()) {\n                    column.setPivotActive(true, source);\n                    this.pivotColumns.push(column);\n                }\n                if (pivotIndexes && typeof pivotIndex === 'number') {\n                    pivotIndexes[column.getId()] = pivotIndex;\n                }\n            }\n            else {\n                if (column.isPivotActive()) {\n                    column.setPivotActive(false, source);\n                    removeFromArray(this.pivotColumns, column);\n                }\n            }\n        }\n    };\n    ColumnModel.prototype.getGridColumns = function (keys) {\n        return this.getColumns(keys, this.getGridColumn.bind(this));\n    };\n    ColumnModel.prototype.getColumns = function (keys, columnLookupCallback) {\n        var foundColumns = [];\n        if (keys) {\n            keys.forEach(function (key) {\n                var column = columnLookupCallback(key);\n                if (column) {\n                    foundColumns.push(column);\n                }\n            });\n        }\n        return foundColumns;\n    };\n    // used by growGroupPanel\n    ColumnModel.prototype.getColumnWithValidation = function (key) {\n        if (key == null) {\n            return null;\n        }\n        var column = this.getGridColumn(key);\n        if (!column) {\n            console.warn('AG Grid: could not find column ' + key);\n        }\n        return column;\n    };\n    ColumnModel.prototype.getPrimaryColumn = function (key) {\n        if (!this.primaryColumns) {\n            return null;\n        }\n        return this.getColumn(key, this.primaryColumns, this.primaryColumnsMap);\n    };\n    ColumnModel.prototype.getGridColumn = function (key) {\n        return this.getColumn(key, this.gridColumns, this.gridColumnsMap);\n    };\n    ColumnModel.prototype.getSecondaryColumn = function (key) {\n        if (!this.secondaryColumns) {\n            return null;\n        }\n        return this.getColumn(key, this.secondaryColumns, this.secondaryColumnsMap);\n    };\n    ColumnModel.prototype.getColumn = function (key, columnList, columnMap) {\n        if (!key) {\n            return null;\n        }\n        // most of the time this method gets called the key is a string, so we put this shortcut in\n        // for performance reasons, to see if we can match for ID (it doesn't do auto columns, that's done below)\n        if (typeof key == 'string' && columnMap[key]) {\n            return columnMap[key];\n        }\n        for (var i = 0; i < columnList.length; i++) {\n            if (this.columnsMatch(columnList[i], key)) {\n                return columnList[i];\n            }\n        }\n        return this.getAutoColumn(key);\n    };\n    ColumnModel.prototype.getAutoColumn = function (key) {\n        var _this = this;\n        if (!this.groupAutoColumns ||\n            !exists(this.groupAutoColumns) ||\n            missing(this.groupAutoColumns)) {\n            return null;\n        }\n        return this.groupAutoColumns.find(function (groupCol) { return _this.columnsMatch(groupCol, key); }) || null;\n    };\n    ColumnModel.prototype.columnsMatch = function (column, key) {\n        var columnMatches = column === key;\n        var colDefMatches = column.getColDef() === key;\n        var idMatches = column.getColId() == key;\n        return columnMatches || colDefMatches || idMatches;\n    };\n    ColumnModel.prototype.getDisplayNameForColumn = function (column, location, includeAggFunc) {\n        if (includeAggFunc === void 0) { includeAggFunc = false; }\n        if (!column) {\n            return null;\n        }\n        var headerName = this.getHeaderName(column.getColDef(), column, null, null, location);\n        if (includeAggFunc) {\n            return this.wrapHeaderNameWithAggFunc(column, headerName);\n        }\n        return headerName;\n    };\n    ColumnModel.prototype.getDisplayNameForProvidedColumnGroup = function (columnGroup, providedColumnGroup, location) {\n        var colGroupDef = providedColumnGroup ? providedColumnGroup.getColGroupDef() : null;\n        if (colGroupDef) {\n            return this.getHeaderName(colGroupDef, null, columnGroup, providedColumnGroup, location);\n        }\n        return null;\n    };\n    ColumnModel.prototype.getDisplayNameForColumnGroup = function (columnGroup, location) {\n        return this.getDisplayNameForProvidedColumnGroup(columnGroup, columnGroup.getProvidedColumnGroup(), location);\n    };\n    // location is where the column is going to appear, ie who is calling us\n    ColumnModel.prototype.getHeaderName = function (colDef, column, columnGroup, providedColumnGroup, location) {\n        var headerValueGetter = colDef.headerValueGetter;\n        if (headerValueGetter) {\n            var params = {\n                colDef: colDef,\n                column: column,\n                columnGroup: columnGroup,\n                providedColumnGroup: providedColumnGroup,\n                location: location,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            };\n            if (typeof headerValueGetter === 'function') {\n                // valueGetter is a function, so just call it\n                return headerValueGetter(params);\n            }\n            else if (typeof headerValueGetter === 'string') {\n                // valueGetter is an expression, so execute the expression\n                return this.expressionService.evaluate(headerValueGetter, params);\n            }\n            console.warn('ag-grid: headerValueGetter must be a function or a string');\n            return '';\n        }\n        else if (colDef.headerName != null) {\n            return colDef.headerName;\n        }\n        else if (colDef.field) {\n            return camelCaseToHumanText(colDef.field);\n        }\n        return '';\n    };\n    ColumnModel.prototype.wrapHeaderNameWithAggFunc = function (column, headerName) {\n        if (this.gridOptionsWrapper.isSuppressAggFuncInHeader()) {\n            return headerName;\n        }\n        // only columns with aggregation active can have aggregations\n        var pivotValueColumn = column.getColDef().pivotValueColumn;\n        var pivotActiveOnThisColumn = exists(pivotValueColumn);\n        var aggFunc = null;\n        var aggFuncFound;\n        // otherwise we have a measure that is active, and we are doing aggregation on it\n        if (pivotActiveOnThisColumn) {\n            var isCollapsedHeaderEnabled = this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn() && this.valueColumns.length === 1;\n            var isTotalColumn = column.getColDef().pivotTotalColumnIds !== undefined;\n            if (isCollapsedHeaderEnabled && !isTotalColumn) {\n                return headerName; // Skip decorating the header - in this case the label is the pivot key, not the value col\n            }\n            aggFunc = pivotValueColumn ? pivotValueColumn.getAggFunc() : null;\n            aggFuncFound = true;\n        }\n        else {\n            var measureActive = column.isValueActive();\n            var aggregationPresent = this.pivotMode || !this.isRowGroupEmpty();\n            if (measureActive && aggregationPresent) {\n                aggFunc = column.getAggFunc();\n                aggFuncFound = true;\n            }\n            else {\n                aggFuncFound = false;\n            }\n        }\n        if (aggFuncFound) {\n            var aggFuncString = (typeof aggFunc === 'string') ? aggFunc : 'func';\n            var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n            var aggFuncStringTranslated = localeTextFunc(aggFuncString, aggFuncString);\n            return aggFuncStringTranslated + \"(\" + headerName + \")\";\n        }\n        return headerName;\n    };\n    // returns the group with matching colId and instanceId. If instanceId is missing,\n    // matches only on the colId.\n    ColumnModel.prototype.getColumnGroup = function (colId, instanceId) {\n        if (!colId) {\n            return null;\n        }\n        if (colId instanceof ColumnGroup) {\n            return colId;\n        }\n        var allColumnGroups = this.getAllDisplayedTrees();\n        var checkInstanceId = typeof instanceId === 'number';\n        var result = null;\n        this.columnUtils.depthFirstAllColumnTreeSearch(allColumnGroups, function (child) {\n            if (child instanceof ColumnGroup) {\n                var columnGroup = child;\n                var matched = void 0;\n                if (checkInstanceId) {\n                    matched = colId === columnGroup.getGroupId() && instanceId === columnGroup.getInstanceId();\n                }\n                else {\n                    matched = colId === columnGroup.getGroupId();\n                }\n                if (matched) {\n                    result = columnGroup;\n                }\n            }\n        });\n        return result;\n    };\n    ColumnModel.prototype.isReady = function () {\n        return this.ready;\n    };\n    ColumnModel.prototype.extractValueColumns = function (source, oldPrimaryColumns) {\n        this.valueColumns = this.extractColumns(oldPrimaryColumns, this.valueColumns, function (col, flag) { return col.setValueActive(flag, source); }, \n        // aggFunc doesn't have index variant, cos order of value cols doesn't matter, so always return null\n        function () { return undefined; }, function () { return undefined; }, \n        // aggFunc is a string, so return it's existence\n        function (colDef) {\n            var aggFunc = colDef.aggFunc;\n            // null or empty string means clear\n            if (aggFunc === null || aggFunc === '') {\n                return null;\n            }\n            if (aggFunc === undefined) {\n                return;\n            }\n            return !!aggFunc;\n        }, function (colDef) {\n            // return false if any of the following: null, undefined, empty string\n            return colDef.initialAggFunc != null && colDef.initialAggFunc != '';\n        });\n        // all new columns added will have aggFunc missing, so set it to what is in the colDef\n        this.valueColumns.forEach(function (col) {\n            var colDef = col.getColDef();\n            // if aggFunc provided, we always override, as reactive property\n            if (colDef.aggFunc != null && colDef.aggFunc != '') {\n                col.setAggFunc(colDef.aggFunc);\n            }\n            else {\n                // otherwise we use initialAggFunc only if no agg func set - which happens when new column only\n                if (!col.getAggFunc()) {\n                    col.setAggFunc(colDef.initialAggFunc);\n                }\n            }\n        });\n    };\n    ColumnModel.prototype.extractRowGroupColumns = function (source, oldPrimaryColumns) {\n        this.rowGroupColumns = this.extractColumns(oldPrimaryColumns, this.rowGroupColumns, function (col, flag) { return col.setRowGroupActive(flag, source); }, function (colDef) { return colDef.rowGroupIndex; }, function (colDef) { return colDef.initialRowGroupIndex; }, function (colDef) { return colDef.rowGroup; }, function (colDef) { return colDef.initialRowGroup; });\n    };\n    ColumnModel.prototype.extractColumns = function (oldPrimaryColumns, previousCols, setFlagFunc, getIndexFunc, getInitialIndexFunc, getValueFunc, getInitialValueFunc) {\n        if (oldPrimaryColumns === void 0) { oldPrimaryColumns = []; }\n        if (previousCols === void 0) { previousCols = []; }\n        var colsWithIndex = [];\n        var colsWithValue = [];\n        // go though all cols.\n        // if value, change\n        // if default only, change only if new\n        (this.primaryColumns || []).forEach(function (col) {\n            var colIsNew = oldPrimaryColumns.indexOf(col) < 0;\n            var colDef = col.getColDef();\n            var value = attrToBoolean(getValueFunc(colDef));\n            var initialValue = attrToBoolean(getInitialValueFunc(colDef));\n            var index = attrToNumber(getIndexFunc(colDef));\n            var initialIndex = attrToNumber(getInitialIndexFunc(colDef));\n            var include;\n            var valuePresent = value !== undefined;\n            var indexPresent = index !== undefined;\n            var initialValuePresent = initialValue !== undefined;\n            var initialIndexPresent = initialIndex !== undefined;\n            if (valuePresent) {\n                include = value; // boolean value is guaranteed as attrToBoolean() is used above\n            }\n            else if (indexPresent) {\n                if (index === null) {\n                    // if col is new we don't want to use the default / initial if index is set to null. Similarly,\n                    // we don't want to include the property for existing columns, i.e. we want to 'clear' it.\n                    include = false;\n                }\n                else {\n                    // note that 'null >= 0' evaluates to true which means 'rowGroupIndex = null' would enable row\n                    // grouping if the null check didn't exist above.\n                    include = index >= 0;\n                }\n            }\n            else {\n                if (colIsNew) {\n                    // as no value or index is 'present' we use the default / initial when col is new\n                    if (initialValuePresent) {\n                        include = initialValue;\n                    }\n                    else if (initialIndexPresent) {\n                        include = initialIndex != null && initialIndex >= 0;\n                    }\n                    else {\n                        include = false;\n                    }\n                }\n                else {\n                    // otherwise include it if included last time, e.g. if we are extracting row group cols and this col\n                    // is an existing row group col (i.e. it exists in 'previousCols') then we should include it.\n                    include = previousCols.indexOf(col) >= 0;\n                }\n            }\n            if (include) {\n                var useIndex = colIsNew ? (index != null || initialIndex != null) : index != null;\n                useIndex ? colsWithIndex.push(col) : colsWithValue.push(col);\n            }\n        });\n        var getIndexForCol = function (col) {\n            var index = getIndexFunc(col.getColDef());\n            var defaultIndex = getInitialIndexFunc(col.getColDef());\n            return index != null ? index : defaultIndex;\n        };\n        // sort cols with index, and add these first\n        colsWithIndex.sort(function (colA, colB) {\n            var indexA = getIndexForCol(colA);\n            var indexB = getIndexForCol(colB);\n            if (indexA === indexB) {\n                return 0;\n            }\n            if (indexA < indexB) {\n                return -1;\n            }\n            return 1;\n        });\n        var res = [].concat(colsWithIndex);\n        // second add columns that were there before and in the same order as they were before,\n        // so we are preserving order of current grouping of columns that simply have rowGroup=true\n        previousCols.forEach(function (col) {\n            if (colsWithValue.indexOf(col) >= 0) {\n                res.push(col);\n            }\n        });\n        // lastly put in all remaining cols\n        colsWithValue.forEach(function (col) {\n            if (res.indexOf(col) < 0) {\n                res.push(col);\n            }\n        });\n        // set flag=false for removed cols\n        previousCols.forEach(function (col) {\n            if (res.indexOf(col) < 0) {\n                setFlagFunc(col, false);\n            }\n        });\n        // set flag=true for newly added cols\n        res.forEach(function (col) {\n            if (previousCols.indexOf(col) < 0) {\n                setFlagFunc(col, true);\n            }\n        });\n        return res;\n    };\n    ColumnModel.prototype.extractPivotColumns = function (source, oldPrimaryColumns) {\n        this.pivotColumns = this.extractColumns(oldPrimaryColumns, this.pivotColumns, function (col, flag) { return col.setPivotActive(flag, source); }, function (colDef) { return colDef.pivotIndex; }, function (colDef) { return colDef.initialPivotIndex; }, function (colDef) { return colDef.pivot; }, function (colDef) { return colDef.initialPivot; });\n    };\n    ColumnModel.prototype.resetColumnGroupState = function (source) {\n        if (source === void 0) { source = \"api\"; }\n        var stateItems = [];\n        this.columnUtils.depthFirstOriginalTreeSearch(null, this.primaryColumnTree, function (child) {\n            if (child instanceof ProvidedColumnGroup) {\n                var colGroupDef = child.getColGroupDef();\n                var groupState = {\n                    groupId: child.getGroupId(),\n                    open: !colGroupDef ? undefined : colGroupDef.openByDefault\n                };\n                stateItems.push(groupState);\n            }\n        });\n        this.setColumnGroupState(stateItems, source);\n    };\n    ColumnModel.prototype.getColumnGroupState = function () {\n        var columnGroupState = [];\n        this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {\n            if (node instanceof ProvidedColumnGroup) {\n                columnGroupState.push({\n                    groupId: node.getGroupId(),\n                    open: node.isExpanded()\n                });\n            }\n        });\n        return columnGroupState;\n    };\n    ColumnModel.prototype.setColumnGroupState = function (stateItems, source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        this.columnAnimationService.start();\n        var impactedGroups = [];\n        stateItems.forEach(function (stateItem) {\n            var groupKey = stateItem.groupId;\n            var newValue = stateItem.open;\n            var providedColumnGroup = _this.getProvidedColumnGroup(groupKey);\n            if (!providedColumnGroup) {\n                return;\n            }\n            if (providedColumnGroup.isExpanded() === newValue) {\n                return;\n            }\n            _this.logger.log('columnGroupOpened(' + providedColumnGroup.getGroupId() + ',' + newValue + ')');\n            providedColumnGroup.setExpanded(newValue);\n            impactedGroups.push(providedColumnGroup);\n        });\n        this.updateGroupsAndDisplayedColumns(source);\n        this.setFirstRightAndLastLeftPinned(source);\n        impactedGroups.forEach(function (providedColumnGroup) {\n            var event = {\n                type: Events.EVENT_COLUMN_GROUP_OPENED,\n                columnGroup: providedColumnGroup,\n                api: _this.gridApi,\n                columnApi: _this.columnApi\n            };\n            _this.eventService.dispatchEvent(event);\n        });\n        this.columnAnimationService.finish();\n    };\n    // called by headerRenderer - when a header is opened or closed\n    ColumnModel.prototype.setColumnGroupOpened = function (key, newValue, source) {\n        if (source === void 0) { source = \"api\"; }\n        var keyAsString;\n        if (key instanceof ProvidedColumnGroup) {\n            keyAsString = key.getId();\n        }\n        else {\n            keyAsString = key || '';\n        }\n        this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);\n    };\n    ColumnModel.prototype.getProvidedColumnGroup = function (key) {\n        // if (key instanceof ProvidedColumnGroup) { return key; }\n        if (typeof key !== 'string') {\n            console.error('AG Grid: group key must be a string');\n        }\n        // otherwise, search for the column group by id\n        var res = null;\n        this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {\n            if (node instanceof ProvidedColumnGroup) {\n                if (node.getId() === key) {\n                    res = node;\n                }\n            }\n        });\n        return res;\n    };\n    ColumnModel.prototype.calculateColumnsForDisplay = function () {\n        var _this = this;\n        var columnsForDisplay;\n        if (this.pivotMode && missing(this.secondaryColumns)) {\n            // pivot mode is on, but we are not pivoting, so we only\n            // show columns we are aggregating on\n            columnsForDisplay = this.gridColumns.filter(function (column) {\n                var isAutoGroupCol = _this.groupAutoColumns && includes(_this.groupAutoColumns, column);\n                var isValueCol = _this.valueColumns && includes(_this.valueColumns, column);\n                return isAutoGroupCol || isValueCol;\n            });\n        }\n        else {\n            // otherwise continue as normal. this can be working on the primary\n            // or secondary columns, whatever the gridColumns are set to\n            columnsForDisplay = this.gridColumns.filter(function (column) {\n                // keep col if a) it's auto-group or b) it's visible\n                var isAutoGroupCol = _this.groupAutoColumns && includes(_this.groupAutoColumns, column);\n                return isAutoGroupCol || column.isVisible();\n            });\n        }\n        return columnsForDisplay;\n    };\n    ColumnModel.prototype.checkColSpanActiveInCols = function (columns) {\n        var result = false;\n        columns.forEach(function (col) {\n            if (exists(col.getColDef().colSpan)) {\n                result = true;\n            }\n        });\n        return result;\n    };\n    ColumnModel.prototype.calculateColumnsForGroupDisplay = function () {\n        var _this = this;\n        this.groupDisplayColumns = [];\n        var checkFunc = function (col) {\n            var colDef = col.getColDef();\n            if (colDef && exists(colDef.showRowGroup)) {\n                _this.groupDisplayColumns.push(col);\n            }\n        };\n        this.gridColumns.forEach(checkFunc);\n        if (this.groupAutoColumns) {\n            this.groupAutoColumns.forEach(checkFunc);\n        }\n    };\n    ColumnModel.prototype.getGroupDisplayColumns = function () {\n        return this.groupDisplayColumns;\n    };\n    ColumnModel.prototype.updateDisplayedColumns = function (source) {\n        var columnsForDisplay = this.calculateColumnsForDisplay();\n        this.buildDisplayedTrees(columnsForDisplay);\n        this.calculateColumnsForGroupDisplay();\n        // also called when group opened/closed\n        this.updateGroupsAndDisplayedColumns(source);\n        // also called when group opened/closed\n        this.setFirstRightAndLastLeftPinned(source);\n    };\n    ColumnModel.prototype.isSecondaryColumnsPresent = function () {\n        return exists(this.secondaryColumns);\n    };\n    ColumnModel.prototype.setSecondaryColumns = function (colDefs, source) {\n        var _this = this;\n        if (source === void 0) { source = \"api\"; }\n        var newColsPresent = colDefs && colDefs.length > 0;\n        // if not cols passed, and we had no cols anyway, then do nothing\n        if (!newColsPresent && missing(this.secondaryColumns)) {\n            return;\n        }\n        if (newColsPresent) {\n            this.processSecondaryColumnDefinitions(colDefs);\n            var balancedTreeResult = this.columnFactory.createColumnTree(colDefs, false, this.secondaryBalancedTree || this.previousSecondaryColumns || undefined);\n            this.secondaryBalancedTree = balancedTreeResult.columnTree;\n            this.secondaryHeaderRowCount = balancedTreeResult.treeDept + 1;\n            this.secondaryColumns = this.getColumnsFromTree(this.secondaryBalancedTree);\n            this.secondaryColumnsMap = {};\n            this.secondaryColumns.forEach(function (col) { return _this.secondaryColumnsMap[col.getId()] = col; });\n            this.previousSecondaryColumns = null;\n        }\n        else {\n            this.previousSecondaryColumns = this.secondaryBalancedTree;\n            this.secondaryBalancedTree = null;\n            this.secondaryHeaderRowCount = -1;\n            this.secondaryColumns = null;\n            this.secondaryColumnsMap = {};\n        }\n        this.updateGridColumns();\n        this.updateDisplayedColumns(source);\n    };\n    ColumnModel.prototype.processSecondaryColumnDefinitions = function (colDefs) {\n        var columnCallback = this.gridOptionsWrapper.getProcessSecondaryColDefFunc();\n        var groupCallback = this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();\n        if (!columnCallback && !groupCallback) {\n            return undefined;\n        }\n        var searchForColDefs = function (colDefs2) {\n            colDefs2.forEach(function (abstractColDef) {\n                var isGroup = exists(abstractColDef.children);\n                if (isGroup) {\n                    var colGroupDef = abstractColDef;\n                    if (groupCallback) {\n                        groupCallback(colGroupDef);\n                    }\n                    searchForColDefs(colGroupDef.children);\n                }\n                else {\n                    var colDef = abstractColDef;\n                    if (columnCallback) {\n                        columnCallback(colDef);\n                    }\n                }\n            });\n        };\n        if (colDefs) {\n            searchForColDefs(colDefs);\n        }\n    };\n    // called from: setColumnState, setColumnDefs, setSecondaryColumns\n    ColumnModel.prototype.updateGridColumns = function () {\n        var _this = this;\n        if (this.gridColsArePrimary) {\n            this.lastPrimaryOrder = this.gridColumns;\n        }\n        else {\n            this.lastSecondaryOrder = this.gridColumns;\n        }\n        if (this.secondaryColumns && this.secondaryBalancedTree) {\n            var hasSameColumns = this.secondaryColumns.every(function (col) {\n                return _this.gridColumnsMap[col.getColId()] !== undefined;\n            });\n            this.gridBalancedTree = this.secondaryBalancedTree.slice();\n            this.gridHeaderRowCount = this.secondaryHeaderRowCount;\n            this.gridColumns = this.secondaryColumns.slice();\n            this.gridColsArePrimary = false;\n            // If the current columns are the same or a subset of the previous\n            // we keep the previous order, otherwise we go back to the order the pivot\n            // cols are generated in\n            if (hasSameColumns) {\n                this.orderGridColsLike(this.lastSecondaryOrder);\n            }\n        }\n        else if (this.primaryColumns) {\n            this.gridBalancedTree = this.primaryColumnTree.slice();\n            this.gridHeaderRowCount = this.primaryHeaderRowCount;\n            this.gridColumns = this.primaryColumns.slice();\n            this.gridColsArePrimary = true;\n            // updateGridColumns gets called after user adds a row group. we want to maintain the order of the columns\n            // when this happens (eg if user moved a column) rather than revert back to the original column order.\n            // likewise if changing in/out of pivot mode, we want to maintain the order of the cols\n            this.orderGridColsLike(this.lastPrimaryOrder);\n        }\n        this.addAutoGroupToGridColumns();\n        this.gridColumns = this.placeLockedColumns(this.gridColumns);\n        this.setupQuickFilterColumns();\n        this.clearDisplayedAndViewportColumns();\n        this.colSpanActive = this.checkColSpanActiveInCols(this.gridColumns);\n        this.gridColumnsMap = {};\n        this.gridColumns.forEach(function (col) { return _this.gridColumnsMap[col.getId()] = col; });\n        this.setAutoHeightActive();\n        var event = {\n            type: Events.EVENT_GRID_COLUMNS_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.setAutoHeightActive = function () {\n        this.autoHeightActive = this.gridColumns.filter(function (col) { return col.isAutoHeight(); }).length > 0;\n        if (this.autoHeightActive) {\n            this.autoHeightActiveAtLeastOnce = true;\n            var rowModelType = this.rowModel.getType();\n            var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n            if (!supportedRowModel) {\n                var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';\n                doOnce(function () { return console.warn(message_1); }, 'autoHeightActive.wrongRowModel');\n            }\n        }\n    };\n    ColumnModel.prototype.orderGridColsLike = function (colsOrder) {\n        if (missing(colsOrder)) {\n            return;\n        }\n        var lastOrderMapped = convertToMap(colsOrder.map(function (col, index) { return [col, index]; }));\n        // only do the sort if at least one column is accounted for. columns will be not accounted for\n        // if changing from secondary to primary columns\n        var noColsFound = true;\n        this.gridColumns.forEach(function (col) {\n            if (lastOrderMapped.has(col)) {\n                noColsFound = false;\n            }\n        });\n        if (noColsFound) {\n            return;\n        }\n        // order cols in the same order as before. we need to make sure that all\n        // cols still exists, so filter out any that no longer exist.\n        var gridColsMap = convertToMap(this.gridColumns.map(function (col) { return [col, true]; }));\n        var oldColsOrdered = colsOrder.filter(function (col) { return gridColsMap.has(col); });\n        var oldColsMap = convertToMap(oldColsOrdered.map(function (col) { return [col, true]; }));\n        var newColsOrdered = this.gridColumns.filter(function (col) { return !oldColsMap.has(col); });\n        // add in the new columns, at the end (if no group), or at the end of the group (if a group)\n        var newGridColumns = oldColsOrdered.slice();\n        newColsOrdered.forEach(function (newCol) {\n            var parent = newCol.getOriginalParent();\n            // if no parent, means we are not grouping, so just add the column to the end\n            if (!parent) {\n                newGridColumns.push(newCol);\n                return;\n            }\n            // find the group the column belongs to. if no siblings at the current level (eg col in group on it's\n            // own) then go up one level and look for siblings there.\n            var siblings = [];\n            while (!siblings.length && parent) {\n                var leafCols = parent.getLeafColumns();\n                leafCols.forEach(function (leafCol) {\n                    var presentInNewGriColumns = newGridColumns.indexOf(leafCol) >= 0;\n                    var noYetInSiblings = siblings.indexOf(leafCol) < 0;\n                    if (presentInNewGriColumns && noYetInSiblings) {\n                        siblings.push(leafCol);\n                    }\n                });\n                parent = parent.getOriginalParent();\n            }\n            // if no siblings exist at any level, this means the col is in a group (or parent groups) on it's own\n            if (!siblings.length) {\n                newGridColumns.push(newCol);\n                return;\n            }\n            // find index of last column in the group\n            var indexes = siblings.map(function (col) { return newGridColumns.indexOf(col); });\n            var lastIndex = Math.max.apply(Math, __spread(indexes));\n            insertIntoArray(newGridColumns, newCol, lastIndex + 1);\n        });\n        this.gridColumns = newGridColumns;\n    };\n    ColumnModel.prototype.isPrimaryColumnGroupsPresent = function () {\n        return this.primaryHeaderRowCount > 1;\n    };\n    // if we are using autoGroupCols, then they should be included for quick filter. this covers the\n    // following scenarios:\n    // a) user provides 'field' into autoGroupCol of normal grid, so now because a valid col to filter leafs on\n    // b) using tree data and user depends on autoGroupCol for first col, and we also want to filter on this\n    //    (tree data is a bit different, as parent rows can be filtered on, unlike row grouping)\n    ColumnModel.prototype.setupQuickFilterColumns = function () {\n        if (this.groupAutoColumns) {\n            this.columnsForQuickFilter = (this.primaryColumns || []).concat(this.groupAutoColumns);\n        }\n        else if (this.primaryColumns) {\n            this.columnsForQuickFilter = this.primaryColumns;\n        }\n    };\n    ColumnModel.prototype.placeLockedColumns = function (cols) {\n        var left = [];\n        var normal = [];\n        var right = [];\n        cols.forEach(function (col) {\n            var position = col.getColDef().lockPosition;\n            if (position === 'right') {\n                right.push(col);\n            }\n            else if (position === 'left' || position === true) {\n                left.push(col);\n            }\n            else {\n                normal.push(col);\n            }\n        });\n        return __spread(left, normal, right);\n    };\n    ColumnModel.prototype.addAutoGroupToGridColumns = function () {\n        // add in auto-group here\n        this.createGroupAutoColumnsIfNeeded();\n        if (missing(this.groupAutoColumns)) {\n            return;\n        }\n        this.gridColumns = this.groupAutoColumns ? this.groupAutoColumns.concat(this.gridColumns) : this.gridColumns;\n        var autoColBalancedTree = this.columnFactory.createForAutoGroups(this.groupAutoColumns, this.gridBalancedTree);\n        this.gridBalancedTree = autoColBalancedTree.concat(this.gridBalancedTree);\n    };\n    // gets called after we copy down grid columns, to make sure any part of the gui\n    // that tries to draw, eg the header, it will get empty lists of columns rather\n    // than stale columns. for example, the header will received gridColumnsChanged\n    // event, so will try and draw, but it will draw successfully when it acts on the\n    // virtualColumnsChanged event\n    ColumnModel.prototype.clearDisplayedAndViewportColumns = function () {\n        this.displayedTreeLeft = [];\n        this.displayedTreeRight = [];\n        this.displayedTreeCentre = [];\n        this.viewportRowLeft = {};\n        this.viewportRowRight = {};\n        this.viewportRowCenter = {};\n        this.displayedColumnsLeft = [];\n        this.displayedColumnsRight = [];\n        this.displayedColumnsCenter = [];\n        this.displayedColumns = [];\n        this.viewportColumns = [];\n    };\n    ColumnModel.prototype.updateGroupsAndDisplayedColumns = function (source) {\n        this.updateOpenClosedVisibilityInColumnGroups();\n        this.deriveDisplayedColumns(source);\n        this.refreshFlexedColumns();\n        this.extractViewport();\n        this.updateBodyWidths();\n        // this event is picked up by the gui, headerRenderer and rowRenderer, to recalculate what columns to display\n        var event = {\n            type: Events.EVENT_DISPLAYED_COLUMNS_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnModel.prototype.deriveDisplayedColumns = function (source) {\n        this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft, this.displayedColumnsLeft);\n        this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre, this.displayedColumnsCenter);\n        this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight, this.displayedColumnsRight);\n        this.joinDisplayedColumns();\n        this.setLeftValues(source);\n        this.displayedAutoHeightCols = this.displayedColumns.filter(function (col) { return col.isAutoHeight(); });\n    };\n    ColumnModel.prototype.isAutoRowHeightActive = function () {\n        return this.autoHeightActive;\n    };\n    ColumnModel.prototype.wasAutoRowHeightEverActive = function () {\n        return this.autoHeightActiveAtLeastOnce;\n    };\n    ColumnModel.prototype.joinDisplayedColumns = function () {\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            this.displayedColumns = this.displayedColumnsRight\n                .concat(this.displayedColumnsCenter)\n                .concat(this.displayedColumnsLeft);\n        }\n        else {\n            this.displayedColumns = this.displayedColumnsLeft\n                .concat(this.displayedColumnsCenter)\n                .concat(this.displayedColumnsRight);\n        }\n    };\n    // sets the left pixel position of each column\n    ColumnModel.prototype.setLeftValues = function (source) {\n        this.setLeftValuesOfColumns(source);\n        this.setLeftValuesOfGroups();\n    };\n    ColumnModel.prototype.setLeftValuesOfColumns = function (source) {\n        var _this = this;\n        if (!this.primaryColumns) {\n            return;\n        }\n        // go through each list of displayed columns\n        var allColumns = this.primaryColumns.slice(0);\n        // let totalColumnWidth = this.getWidthOfColsInList()\n        var doingRtl = this.gridOptionsWrapper.isEnableRtl();\n        [\n            this.displayedColumnsLeft,\n            this.displayedColumnsRight,\n            this.displayedColumnsCenter\n        ].forEach(function (columns) {\n            if (doingRtl) {\n                // when doing RTL, we start at the top most pixel (ie RHS) and work backwards\n                var left_1 = _this.getWidthOfColsInList(columns);\n                columns.forEach(function (column) {\n                    left_1 -= column.getActualWidth();\n                    column.setLeft(left_1, source);\n                });\n            }\n            else {\n                // otherwise normal LTR, we start at zero\n                var left_2 = 0;\n                columns.forEach(function (column) {\n                    column.setLeft(left_2, source);\n                    left_2 += column.getActualWidth();\n                });\n            }\n            removeAllFromArray(allColumns, columns);\n        });\n        // items left in allColumns are columns not displayed, so remove the left position. this is\n        // important for the rows, as if a col is made visible, then taken out, then made visible again,\n        // we don't want the animation of the cell floating in from the old position, whatever that was.\n        allColumns.forEach(function (column) {\n            column.setLeft(null, source);\n        });\n    };\n    ColumnModel.prototype.setLeftValuesOfGroups = function () {\n        // a groups left value is the lest left value of it's children\n        [\n            this.displayedTreeLeft,\n            this.displayedTreeRight,\n            this.displayedTreeCentre\n        ].forEach(function (columns) {\n            columns.forEach(function (column) {\n                if (column instanceof ColumnGroup) {\n                    var columnGroup = column;\n                    columnGroup.checkLeft();\n                }\n            });\n        });\n    };\n    ColumnModel.prototype.derivedDisplayedColumnsFromDisplayedTree = function (tree, columns) {\n        columns.length = 0;\n        this.columnUtils.depthFirstDisplayedColumnTreeSearch(tree, function (child) {\n            if (child instanceof Column) {\n                columns.push(child);\n            }\n        });\n    };\n    ColumnModel.prototype.extractViewportColumns = function () {\n        if (this.suppressColumnVirtualisation) {\n            // no virtualisation, so don't filter\n            this.viewportColumnsCenter = this.displayedColumnsCenter;\n        }\n        else {\n            // filter out what should be visible\n            this.viewportColumnsCenter = this.filterOutColumnsWithinViewport();\n        }\n        this.viewportColumns = this.viewportColumnsCenter\n            .concat(this.displayedColumnsLeft)\n            .concat(this.displayedColumnsRight);\n    };\n    ColumnModel.prototype.getVirtualHeaderGroupRow = function (type, dept) {\n        var result;\n        switch (type) {\n            case Constants.PINNED_LEFT:\n                result = this.viewportRowLeft[dept];\n                break;\n            case Constants.PINNED_RIGHT:\n                result = this.viewportRowRight[dept];\n                break;\n            default:\n                result = this.viewportRowCenter[dept];\n                break;\n        }\n        if (missing(result)) {\n            result = [];\n        }\n        return result;\n    };\n    ColumnModel.prototype.extractViewportRows = function () {\n        // go through each group, see if any of it's cols are displayed, and if yes,\n        // then this group is included\n        this.viewportRowLeft = {};\n        this.viewportRowRight = {};\n        this.viewportRowCenter = {};\n        // for easy lookup when building the groups.\n        var virtualColIds = {};\n        this.viewportColumns.forEach(function (col) { return virtualColIds[col.getId()] = true; });\n        var testGroup = function (children, result, dept) {\n            var returnValue = false;\n            for (var i = 0; i < children.length; i++) {\n                // see if this item is within viewport\n                var child = children[i];\n                var addThisItem = false;\n                if (child instanceof Column) {\n                    // for column, test if column is included\n                    addThisItem = virtualColIds[child.getId()] === true;\n                }\n                else {\n                    // if group, base decision on children\n                    var columnGroup = child;\n                    var displayedChildren = columnGroup.getDisplayedChildren();\n                    if (displayedChildren) {\n                        addThisItem = testGroup(displayedChildren, result, dept + 1);\n                    }\n                }\n                if (addThisItem) {\n                    returnValue = true;\n                    if (!result[dept]) {\n                        result[dept] = [];\n                    }\n                    result[dept].push(child);\n                }\n            }\n            return returnValue;\n        };\n        testGroup(this.displayedTreeLeft, this.viewportRowLeft, 0);\n        testGroup(this.displayedTreeRight, this.viewportRowRight, 0);\n        testGroup(this.displayedTreeCentre, this.viewportRowCenter, 0);\n    };\n    ColumnModel.prototype.extractViewport = function () {\n        this.extractViewportColumns();\n        this.extractViewportRows();\n    };\n    ColumnModel.prototype.filterOutColumnsWithinViewport = function () {\n        return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this));\n    };\n    ColumnModel.prototype.refreshFlexedColumns = function (params) {\n        var _this = this;\n        if (params === void 0) { params = {}; }\n        var source = params.source ? params.source : 'flex';\n        if (params.viewportWidth != null) {\n            this.flexViewportWidth = params.viewportWidth;\n        }\n        if (!this.flexViewportWidth) {\n            return [];\n        }\n        // If the grid has left-over space, divide it between flexing columns in proportion to their flex value.\n        // A \"flexing column\" is one that has a 'flex' value set and is not currently being constrained by its\n        // minWidth or maxWidth rules.\n        var flexAfterDisplayIndex = -1;\n        if (params.resizingCols) {\n            params.resizingCols.forEach(function (col) {\n                var indexOfCol = _this.displayedColumnsCenter.indexOf(col);\n                if (flexAfterDisplayIndex < indexOfCol) {\n                    flexAfterDisplayIndex = indexOfCol;\n                }\n            });\n        }\n        var isColFlex = function (col) {\n            var afterResizingCols = _this.displayedColumnsCenter.indexOf(col) > flexAfterDisplayIndex;\n            return col.getFlex() && afterResizingCols;\n        };\n        var knownWidthColumns = this.displayedColumnsCenter.filter(function (col) { return !isColFlex(col); });\n        var flexingColumns = this.displayedColumnsCenter.filter(function (col) { return isColFlex(col); });\n        var changedColumns = [];\n        if (!flexingColumns.length) {\n            return [];\n        }\n        var flexingColumnSizes = [];\n        var spaceForFlexingColumns;\n        outer: while (true) {\n            var totalFlex = flexingColumns.reduce(function (count, col) { return count + col.getFlex(); }, 0);\n            spaceForFlexingColumns = this.flexViewportWidth - this.getWidthOfColsInList(knownWidthColumns);\n            for (var i = 0; i < flexingColumns.length; i++) {\n                var col = flexingColumns[i];\n                var widthByFlexRule = spaceForFlexingColumns * col.getFlex() / totalFlex;\n                var constrainedWidth = 0;\n                var minWidth = col.getMinWidth();\n                var maxWidth = col.getMaxWidth();\n                if (exists(minWidth) && widthByFlexRule < minWidth) {\n                    constrainedWidth = minWidth;\n                }\n                else if (exists(maxWidth) && widthByFlexRule > maxWidth) {\n                    constrainedWidth = maxWidth;\n                }\n                if (constrainedWidth) {\n                    // This column is not in fact flexing as it is being constrained to a specific size\n                    // so remove it from the list of flexing columns and start again\n                    col.setActualWidth(constrainedWidth, source);\n                    removeFromArray(flexingColumns, col);\n                    changedColumns.push(col);\n                    knownWidthColumns.push(col);\n                    continue outer;\n                }\n                flexingColumnSizes[i] = Math.round(widthByFlexRule);\n            }\n            break;\n        }\n        var remainingSpace = spaceForFlexingColumns;\n        flexingColumns.forEach(function (col, i) {\n            col.setActualWidth(Math.min(flexingColumnSizes[i], remainingSpace), source);\n            changedColumns.push(col);\n            remainingSpace -= flexingColumnSizes[i];\n        });\n        if (!params.skipSetLeft) {\n            this.setLeftValues(source);\n        }\n        if (params.updateBodyWidths) {\n            this.updateBodyWidths();\n        }\n        if (params.fireResizedEvent) {\n            this.fireColumnResizedEvent(changedColumns, true, source, flexingColumns);\n        }\n        // if the user sets rowData directly into GridOptions, then the row data is set before\n        // grid is attached to the DOM. this means the columns are not flexed, and then the rows\n        // have the wrong height (as they depend on column widths). so once the columns have\n        // been flexed for the first time (only happens once grid is attached to DOM, as dependency\n        // on getting the grid width, which only happens after attached after ResizeObserver fires)\n        // we get get rows to re-calc their heights.\n        if (!this.flexColsCalculatedAtLestOnce) {\n            if (this.gridOptionsWrapper.isRowModelDefault()) {\n                this.rowModel.resetRowHeights();\n            }\n            this.flexColsCalculatedAtLestOnce = true;\n        }\n        return flexingColumns;\n    };\n    // called from api\n    ColumnModel.prototype.sizeColumnsToFit = function (gridWidth, source, silent) {\n        if (source === void 0) { source = \"sizeColumnsToFit\"; }\n        // avoid divide by zero\n        var allDisplayedColumns = this.getAllDisplayedColumns();\n        if (gridWidth <= 0 || !allDisplayedColumns.length) {\n            return;\n        }\n        var colsToSpread = [];\n        var colsToNotSpread = [];\n        allDisplayedColumns.forEach(function (column) {\n            if (column.getColDef().suppressSizeToFit === true) {\n                colsToNotSpread.push(column);\n            }\n            else {\n                colsToSpread.push(column);\n            }\n        });\n        // make a copy of the cols that are going to be resized\n        var colsToFireEventFor = colsToSpread.slice(0);\n        var finishedResizing = false;\n        var moveToNotSpread = function (column) {\n            removeFromArray(colsToSpread, column);\n            colsToNotSpread.push(column);\n        };\n        // resetting cols to their original width makes the sizeColumnsToFit more deterministic,\n        // rather than depending on the current size of the columns. most users call sizeColumnsToFit\n        // immediately after grid is created, so will make no difference. however if application is calling\n        // sizeColumnsToFit repeatedly (eg after column group is opened / closed repeatedly) we don't want\n        // the columns to start shrinking / growing over time.\n        //\n        // NOTE: the process below will assign values to `this.actualWidth` of each column without firing events\n        // for this reason we need to manually fire resize events after the resize has been done for each column.\n        colsToSpread.forEach(function (column) { return column.resetActualWidth(source); });\n        while (!finishedResizing) {\n            finishedResizing = true;\n            var availablePixels = gridWidth - this.getWidthOfColsInList(colsToNotSpread);\n            if (availablePixels <= 0) {\n                // no width, set everything to minimum\n                colsToSpread.forEach(function (column) {\n                    column.setMinimum(source);\n                });\n            }\n            else {\n                var scale = availablePixels / this.getWidthOfColsInList(colsToSpread);\n                // we set the pixels for the last col based on what's left, as otherwise\n                // we could be a pixel or two short or extra because of rounding errors.\n                var pixelsForLastCol = availablePixels;\n                // backwards through loop, as we are removing items as we go\n                for (var i = colsToSpread.length - 1; i >= 0; i--) {\n                    var column = colsToSpread[i];\n                    var minWidth = column.getMinWidth();\n                    var maxWidth = column.getMaxWidth();\n                    var newWidth = Math.round(column.getActualWidth() * scale);\n                    if (exists(minWidth) && newWidth < minWidth) {\n                        newWidth = minWidth;\n                        moveToNotSpread(column);\n                        finishedResizing = false;\n                    }\n                    else if (exists(maxWidth) && column.isGreaterThanMax(newWidth)) {\n                        newWidth = maxWidth;\n                        moveToNotSpread(column);\n                        finishedResizing = false;\n                    }\n                    else if (i === 0) { // if this is the last column\n                        newWidth = pixelsForLastCol;\n                    }\n                    column.setActualWidth(newWidth, source, true);\n                    pixelsForLastCol -= newWidth;\n                }\n            }\n        }\n        // see notes above\n        colsToFireEventFor.forEach(function (col) {\n            col.fireColumnWidthChangedEvent(source);\n        });\n        this.setLeftValues(source);\n        this.updateBodyWidths();\n        if (silent) {\n            return;\n        }\n        this.fireColumnResizedEvent(colsToFireEventFor, true, source);\n    };\n    ColumnModel.prototype.buildDisplayedTrees = function (visibleColumns) {\n        var leftVisibleColumns = [];\n        var rightVisibleColumns = [];\n        var centerVisibleColumns = [];\n        visibleColumns.forEach(function (column) {\n            switch (column.getPinned()) {\n                case \"left\":\n                    leftVisibleColumns.push(column);\n                    break;\n                case \"right\":\n                    rightVisibleColumns.push(column);\n                    break;\n                default:\n                    centerVisibleColumns.push(column);\n                    break;\n            }\n        });\n        var groupInstanceIdCreator = new GroupInstanceIdCreator();\n        this.displayedTreeLeft = this.displayedGroupCreator.createDisplayedGroups(leftVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, Constants.PINNED_LEFT, this.displayedTreeLeft);\n        this.displayedTreeRight = this.displayedGroupCreator.createDisplayedGroups(rightVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, Constants.PINNED_RIGHT, this.displayedTreeRight);\n        this.displayedTreeCentre = this.displayedGroupCreator.createDisplayedGroups(centerVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, null, this.displayedTreeCentre);\n        this.updateDisplayedMap();\n    };\n    ColumnModel.prototype.updateDisplayedMap = function () {\n        var _this = this;\n        this.displayedColumnsAndGroupsMap = {};\n        var func = function (child) {\n            _this.displayedColumnsAndGroupsMap[child.getUniqueId()] = child;\n        };\n        this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre, func);\n        this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft, func);\n        this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight, func);\n    };\n    ColumnModel.prototype.isDisplayed = function (item) {\n        var fromMap = this.displayedColumnsAndGroupsMap[item.getUniqueId()];\n        // check for reference, in case new column / group with same id is now present\n        return fromMap === item;\n    };\n    ColumnModel.prototype.updateOpenClosedVisibilityInColumnGroups = function () {\n        var allColumnGroups = this.getAllDisplayedTrees();\n        this.columnUtils.depthFirstAllColumnTreeSearch(allColumnGroups, function (child) {\n            if (child instanceof ColumnGroup) {\n                var columnGroup = child;\n                columnGroup.calculateDisplayedColumns();\n            }\n        });\n    };\n    ColumnModel.prototype.getGroupAutoColumns = function () {\n        return this.groupAutoColumns;\n    };\n    ColumnModel.prototype.createGroupAutoColumnsIfNeeded = function () {\n        if (!this.autoGroupsNeedBuilding) {\n            return;\n        }\n        this.autoGroupsNeedBuilding = false;\n        var groupFullWidthRow = this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode);\n        // we need to allow suppressing auto-column separately for group and pivot as the normal situation\n        // is CSRM and user provides group column themselves for normal view, but when they go into pivot the\n        // columns are generated by the grid so no opportunity for user to provide group column. so need a way\n        // to suppress auto-col for grouping only, and not pivot.\n        // however if using Viewport RM or SSRM and user is providing the columns, the user may wish full control\n        // of the group column in this instance.\n        var suppressAutoColumn = this.pivotMode ?\n            this.gridOptionsWrapper.isPivotSuppressAutoColumn() : this.gridOptionsWrapper.isGroupSuppressAutoColumn();\n        var groupingActive = this.rowGroupColumns.length > 0 || this.usingTreeData;\n        var needAutoColumns = groupingActive && !suppressAutoColumn && !groupFullWidthRow;\n        if (needAutoColumns) {\n            var existingCols = this.groupAutoColumns || [];\n            var newAutoGroupCols = this.autoGroupColService.createAutoGroupColumns(existingCols, this.rowGroupColumns);\n            var autoColsDifferent = !this.autoColsEqual(newAutoGroupCols, this.groupAutoColumns);\n            // we force recreate when suppressColumnStateEvents changes, so new group cols pick up the new\n            // definitions. otherwise we could ignore the new cols because they appear to be the same.\n            if (autoColsDifferent || this.forceRecreateAutoGroups) {\n                this.groupAutoColumns = newAutoGroupCols;\n            }\n        }\n        else {\n            this.groupAutoColumns = null;\n        }\n    };\n    ColumnModel.prototype.autoColsEqual = function (colsA, colsB) {\n        return areEqual(colsA, colsB, function (a, b) { return a.getColId() === b.getColId(); });\n    };\n    ColumnModel.prototype.getWidthOfColsInList = function (columnList) {\n        return columnList.reduce(function (width, col) { return width + col.getActualWidth(); }, 0);\n    };\n    ColumnModel.prototype.getGridBalancedTree = function () {\n        return this.gridBalancedTree;\n    };\n    ColumnModel.prototype.hasFloatingFilters = function () {\n        if (!this.gridColumns) {\n            return false;\n        }\n        var res = this.gridColumns.some(function (col) { return col.getColDef().floatingFilter; });\n        return res;\n    };\n    ColumnModel.prototype.getFirstDisplayedColumn = function () {\n        var isRtl = this.gridOptionsWrapper.isEnableRtl();\n        var queryOrder = [\n            'getDisplayedLeftColumns',\n            'getDisplayedCenterColumns',\n            'getDisplayedRightColumns'\n        ];\n        if (isRtl) {\n            queryOrder.reverse();\n        }\n        for (var i = 0; i < queryOrder.length; i++) {\n            var container = this[queryOrder[i]]();\n            if (container.length) {\n                return isRtl ? last(container) : container[0];\n            }\n        }\n        return null;\n    };\n    __decorate$5([\n        Autowired('expressionService')\n    ], ColumnModel.prototype, \"expressionService\", void 0);\n    __decorate$5([\n        Autowired('columnFactory')\n    ], ColumnModel.prototype, \"columnFactory\", void 0);\n    __decorate$5([\n        Autowired('displayedGroupCreator')\n    ], ColumnModel.prototype, \"displayedGroupCreator\", void 0);\n    __decorate$5([\n        Autowired('ctrlsService')\n    ], ColumnModel.prototype, \"ctrlsService\", void 0);\n    __decorate$5([\n        Autowired('autoWidthCalculator')\n    ], ColumnModel.prototype, \"autoWidthCalculator\", void 0);\n    __decorate$5([\n        Autowired('columnUtils')\n    ], ColumnModel.prototype, \"columnUtils\", void 0);\n    __decorate$5([\n        Autowired('columnAnimationService')\n    ], ColumnModel.prototype, \"columnAnimationService\", void 0);\n    __decorate$5([\n        Autowired('autoGroupColService')\n    ], ColumnModel.prototype, \"autoGroupColService\", void 0);\n    __decorate$5([\n        Optional('aggFuncService')\n    ], ColumnModel.prototype, \"aggFuncService\", void 0);\n    __decorate$5([\n        Optional('valueCache')\n    ], ColumnModel.prototype, \"valueCache\", void 0);\n    __decorate$5([\n        Optional('animationFrameService')\n    ], ColumnModel.prototype, \"animationFrameService\", void 0);\n    __decorate$5([\n        Autowired('rowModel')\n    ], ColumnModel.prototype, \"rowModel\", void 0);\n    __decorate$5([\n        Autowired('columnApi')\n    ], ColumnModel.prototype, \"columnApi\", void 0);\n    __decorate$5([\n        Autowired('gridApi')\n    ], ColumnModel.prototype, \"gridApi\", void 0);\n    __decorate$5([\n        Autowired('sortController')\n    ], ColumnModel.prototype, \"sortController\", void 0);\n    __decorate$5([\n        Autowired('columnDefFactory')\n    ], ColumnModel.prototype, \"columnDefFactory\", void 0);\n    __decorate$5([\n        PostConstruct\n    ], ColumnModel.prototype, \"init\", null);\n    __decorate$5([\n        __param$2(0, Qualifier('loggerFactory'))\n    ], ColumnModel.prototype, \"setBeans\", null);\n    ColumnModel = __decorate$5([\n        Bean('columnModel')\n    ], ColumnModel);\n    return ColumnModel;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n// takes in a list of columns, as specified by the column definitions, and returns column groups\nvar ColumnUtils = /** @class */ (function (_super) {\n    __extends$2(ColumnUtils, _super);\n    function ColumnUtils() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ColumnUtils.prototype.calculateColMinWidth = function (colDef) {\n        return colDef.minWidth != null ? colDef.minWidth : this.gridOptionsWrapper.getMinColWidth();\n    };\n    ColumnUtils.prototype.calculateColMaxWidth = function (colDef) {\n        return colDef.maxWidth != null ? colDef.maxWidth : (this.gridOptionsWrapper.getMaxColWidth() || Number.MAX_SAFE_INTEGER);\n    };\n    ColumnUtils.prototype.calculateColInitialWidth = function (colDef) {\n        var minColWidth = this.calculateColMinWidth(colDef);\n        var maxColWidth = this.calculateColMaxWidth(colDef);\n        var width;\n        var colDefWidth = attrToNumber(colDef.width);\n        var colDefInitialWidth = attrToNumber(colDef.initialWidth);\n        if (colDefWidth != null) {\n            width = colDefWidth;\n        }\n        else if (colDefInitialWidth != null) {\n            width = colDefInitialWidth;\n        }\n        else {\n            width = this.gridOptionsWrapper.getColWidth();\n        }\n        return Math.max(Math.min(width, maxColWidth), minColWidth);\n    };\n    ColumnUtils.prototype.getOriginalPathForColumn = function (column, originalBalancedTree) {\n        var result = [];\n        var found = false;\n        var recursePath = function (balancedColumnTree, dept) {\n            for (var i = 0; i < balancedColumnTree.length; i++) {\n                if (found) {\n                    return;\n                }\n                // quit the search, so 'result' is kept with the found result\n                var node = balancedColumnTree[i];\n                if (node instanceof ProvidedColumnGroup) {\n                    var nextNode = node;\n                    recursePath(nextNode.getChildren(), dept + 1);\n                    result[dept] = node;\n                }\n                else if (node === column) {\n                    found = true;\n                }\n            }\n        };\n        recursePath(originalBalancedTree, 0);\n        // we should always find the path, but in case there is a bug somewhere, returning null\n        // will make it fail rather than provide a 'hard to track down' bug\n        return found ? result : null;\n    };\n    ColumnUtils.prototype.depthFirstOriginalTreeSearch = function (parent, tree, callback) {\n        var _this = this;\n        if (!tree) {\n            return;\n        }\n        tree.forEach(function (child) {\n            if (child instanceof ProvidedColumnGroup) {\n                _this.depthFirstOriginalTreeSearch(child, child.getChildren(), callback);\n            }\n            callback(child, parent);\n        });\n    };\n    ColumnUtils.prototype.depthFirstAllColumnTreeSearch = function (tree, callback) {\n        var _this = this;\n        if (!tree) {\n            return;\n        }\n        tree.forEach(function (child) {\n            if (child instanceof ColumnGroup) {\n                _this.depthFirstAllColumnTreeSearch(child.getChildren(), callback);\n            }\n            callback(child);\n        });\n    };\n    ColumnUtils.prototype.depthFirstDisplayedColumnTreeSearch = function (tree, callback) {\n        var _this = this;\n        if (!tree) {\n            return;\n        }\n        tree.forEach(function (child) {\n            if (child instanceof ColumnGroup) {\n                _this.depthFirstDisplayedColumnTreeSearch(child.getDisplayedChildren(), callback);\n            }\n            callback(child);\n        });\n    };\n    ColumnUtils = __decorate$6([\n        Bean('columnUtils')\n    ], ColumnUtils);\n    return ColumnUtils;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$3 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n// takes in a list of columns, as specified by the column definitions, and returns column groups\nvar DisplayedGroupCreator = /** @class */ (function (_super) {\n    __extends$3(DisplayedGroupCreator, _super);\n    function DisplayedGroupCreator() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    DisplayedGroupCreator.prototype.createDisplayedGroups = function (\n    // all displayed columns sorted - this is the columns the grid should show\n    sortedVisibleColumns, \n    // the tree of columns, as provided by the users, used to know what groups columns roll up into\n    balancedColumnTree, \n    // creates unique id's for the group\n    groupInstanceIdCreator, \n    // whether it's left, right or center col\n    pinned, \n    // we try to reuse old groups if we can, to allow gui to do animation\n    oldDisplayedGroups) {\n        var _this = this;\n        var result = [];\n        var previousRealPath;\n        var previousOriginalPath;\n        var oldColumnsMapped = this.mapOldGroupsById(oldDisplayedGroups);\n        // go through each column, then do a bottom up comparison to the previous column, and start\n        // to share groups if they converge at any point.\n        sortedVisibleColumns.forEach(function (currentColumn) {\n            var currentOriginalPath = _this.getOriginalPathForColumn(balancedColumnTree, currentColumn);\n            var currentRealPath = [];\n            var firstColumn = !previousOriginalPath;\n            for (var i = 0; i < currentOriginalPath.length; i++) {\n                if (firstColumn || currentOriginalPath[i] !== previousOriginalPath[i]) {\n                    // new group needed\n                    var newGroup = _this.createColumnGroup(currentOriginalPath[i], groupInstanceIdCreator, oldColumnsMapped, pinned);\n                    currentRealPath[i] = newGroup;\n                    // if top level, add to result, otherwise add to parent\n                    if (i == 0) {\n                        result.push(newGroup);\n                    }\n                    else {\n                        currentRealPath[i - 1].addChild(newGroup);\n                    }\n                }\n                else {\n                    // reuse old group\n                    currentRealPath[i] = previousRealPath[i];\n                }\n            }\n            var noColumnGroups = currentRealPath.length === 0;\n            if (noColumnGroups) {\n                // if we are not grouping, then the result of the above is an empty\n                // path (no groups), and we just add the column to the root list.\n                result.push(currentColumn);\n            }\n            else {\n                var leafGroup = last(currentRealPath);\n                leafGroup.addChild(currentColumn);\n            }\n            previousRealPath = currentRealPath;\n            previousOriginalPath = currentOriginalPath;\n        });\n        this.setupParentsIntoColumns(result, null);\n        return result;\n    };\n    DisplayedGroupCreator.prototype.createColumnGroup = function (providedGroup, groupInstanceIdCreator, oldColumnsMapped, pinned) {\n        var groupId = providedGroup.getGroupId();\n        var instanceId = groupInstanceIdCreator.getInstanceIdForKey(groupId);\n        var uniqueId = ColumnGroup.createUniqueId(groupId, instanceId);\n        var columnGroup = oldColumnsMapped[uniqueId];\n        // if the user is setting new colDefs, it is possible that the id's overlap, and we\n        // would have a false match from above. so we double check we are talking about the\n        // same original column group.\n        if (columnGroup && columnGroup.getProvidedColumnGroup() !== providedGroup) {\n            columnGroup = null;\n        }\n        if (exists(columnGroup)) {\n            // clean out the old column group here, as we will be adding children into it again\n            columnGroup.reset();\n        }\n        else {\n            columnGroup = new ColumnGroup(providedGroup, groupId, instanceId, pinned);\n            this.context.createBean(columnGroup);\n        }\n        return columnGroup;\n    };\n    // returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup\n    DisplayedGroupCreator.prototype.mapOldGroupsById = function (displayedGroups) {\n        var result = {};\n        var recursive = function (columnsOrGroups) {\n            columnsOrGroups.forEach(function (columnOrGroup) {\n                if (columnOrGroup instanceof ColumnGroup) {\n                    var columnGroup = columnOrGroup;\n                    result[columnOrGroup.getUniqueId()] = columnGroup;\n                    recursive(columnGroup.getChildren());\n                }\n            });\n        };\n        if (displayedGroups) {\n            recursive(displayedGroups);\n        }\n        return result;\n    };\n    DisplayedGroupCreator.prototype.setupParentsIntoColumns = function (columnsOrGroups, parent) {\n        var _this = this;\n        columnsOrGroups.forEach(function (columnsOrGroup) {\n            columnsOrGroup.setParent(parent);\n            if (columnsOrGroup instanceof ColumnGroup) {\n                var columnGroup = columnsOrGroup;\n                _this.setupParentsIntoColumns(columnGroup.getChildren(), columnGroup);\n            }\n        });\n    };\n    DisplayedGroupCreator.prototype.getOriginalPathForColumn = function (balancedColumnTree, column) {\n        var result = [];\n        var found = false;\n        var recursePath = function (columnTree, dept) {\n            for (var i = 0; i < columnTree.length; i++) {\n                // quit the search, so 'result' is kept with the found result\n                if (found) {\n                    return;\n                }\n                var node = columnTree[i];\n                if (node instanceof ProvidedColumnGroup) {\n                    recursePath(node.getChildren(), dept + 1);\n                    result[dept] = node;\n                }\n                else if (node === column) {\n                    found = true;\n                }\n            }\n        };\n        recursePath(balancedColumnTree, 0);\n        // it's possible we didn't find a path. this happens if the column is generated\n        // by the grid (auto-group), in that the definition didn't come from the client. in this case,\n        // we create a fake original path.\n        if (found) {\n            return result;\n        }\n        console.warn('AG Grid: could not get path');\n        return null;\n    };\n    DisplayedGroupCreator = __decorate$7([\n        Bean('displayedGroupCreator')\n    ], DisplayedGroupCreator);\n    return DisplayedGroupCreator;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$1 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$1 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));\n    return ar;\n};\n/**\n * These keys are used for validating properties supplied on a gridOptions object, and for code generation.\n * If you change the properties on the gridOptions interface, you *must* update this file as well to be consistent.\n */\nvar PropertyKeys = /** @class */ (function () {\n    function PropertyKeys() {\n    }\n    PropertyKeys.STRING_PROPERTIES = [\n        'sortingOrder', 'rowClass', 'rowSelection', 'overlayLoadingTemplate', 'overlayNoRowsTemplate',\n        'quickFilterText', 'rowModelType', 'editType', 'domLayout', 'clipboardDelimiter', 'rowGroupPanelShow',\n        'multiSortKey', 'pivotColumnGroupTotals', 'pivotRowTotals', 'pivotPanelShow', 'fillHandleDirection',\n        'serverSideStoreType', 'groupDisplayType', 'treeDataDisplayType'\n    ];\n    PropertyKeys.OBJECT_PROPERTIES = [\n        'components', 'frameworkComponents', 'rowStyle', 'context', 'autoGroupColumnDef', 'localeText', 'icons',\n        'datasource', 'serverSideDatasource', 'viewportDatasource', 'groupRowRendererParams', 'aggFuncs', 'fullWidthCellRendererParams',\n        'defaultColGroupDef', 'defaultColDef', 'defaultExportParams', 'defaultCsvExportParams', 'defaultExcelExportParams', 'columnTypes',\n        'rowClassRules', 'detailCellRendererParams', 'loadingCellRendererParams', 'loadingOverlayComponentParams',\n        'noRowsOverlayComponentParams', 'popupParent', 'colResizeDefault', 'statusBar', 'sideBar', 'chartThemeOverrides',\n        'customChartThemes'\n    ];\n    PropertyKeys.ARRAY_PROPERTIES = [\n        'alignedGrids', 'rowData', 'columnDefs', 'excelStyles', 'pinnedTopRowData', 'pinnedBottomRowData', 'chartThemes'\n    ];\n    PropertyKeys.NUMBER_PROPERTIES = [\n        'rowHeight', 'detailRowHeight', 'rowBuffer', 'colWidth', 'headerHeight', 'groupHeaderHeight', 'floatingFiltersHeight',\n        'pivotHeaderHeight', 'pivotGroupHeaderHeight', 'groupDefaultExpanded', 'minColWidth', 'maxColWidth', 'viewportRowModelPageSize',\n        'viewportRowModelBufferSize', 'autoSizePadding', 'maxBlocksInCache', 'maxConcurrentDatasourceRequests', 'tooltipShowDelay',\n        'tooltipHideDelay', 'cacheOverflowSize', 'paginationPageSize', 'cacheBlockSize', 'infiniteInitialRowCount', 'scrollbarWidth',\n        'batchUpdateWaitMillis', 'asyncTransactionWaitMillis', 'blockLoadDebounceMillis', 'keepDetailRowsCount',\n        'undoRedoCellEditingLimit', 'cellFlashDelay', 'cellFadeDelay', 'tabIndex'\n    ];\n    PropertyKeys.BOOLEAN_PROPERTIES = [\n        'suppressMakeColumnVisibleAfterUnGroup', 'suppressRowClickSelection', 'suppressCellSelection', 'suppressCellFocus', 'suppressHorizontalScroll',\n        'alwaysShowHorizontalScroll', 'alwaysShowVerticalScroll', 'debug', 'enableBrowserTooltips', 'enableCellExpressions',\n        'angularCompileRows', 'angularCompileFilters', 'groupSuppressAutoColumn', 'groupSelectsChildren', 'groupIncludeFooter',\n        'groupIncludeTotalFooter', 'groupUseEntireRow', 'groupSuppressBlankHeader', 'suppressMenuHide', 'suppressRowDeselection',\n        'unSortIcon', 'suppressMultiSort', 'alwaysMultiSort', 'singleClickEdit', 'suppressLoadingOverlay', 'suppressNoRowsOverlay', 'suppressAutoSize',\n        'skipHeaderOnAutoSize', 'suppressParentsInRowNodes', 'suppressColumnMoveAnimation', 'suppressMovableColumns',\n        'suppressFieldDotNotation', 'enableRangeSelection', 'enableRangeHandle', 'enableFillHandle', 'suppressClearOnFillReduction',\n        'deltaSort', 'suppressTouch', 'suppressAsyncEvents', 'allowContextMenuWithControlKey', 'suppressContextMenu',\n        'rememberGroupStateWhenNewData', 'enableCellChangeFlash', 'suppressDragLeaveHidesColumns', 'suppressMiddleClickScrolls',\n        'suppressPreventDefaultOnMouseWheel', 'suppressCopyRowsToClipboard', 'copyHeadersToClipboard', 'copyGroupHeadersToClipboard',\n        'pivotMode', 'suppressAggFuncInHeader', 'suppressColumnVirtualisation', 'suppressAggAtRootLevel', 'suppressFocusAfterRefresh',\n        'functionsPassive', 'functionsReadOnly', 'animateRows', 'groupSelectsFiltered', 'groupRemoveSingleChildren',\n        'groupRemoveLowestSingleChildren', 'enableRtl', 'suppressClickEdit', 'rowDragEntireRow', 'rowDragManaged', 'suppressRowDrag',\n        'suppressMoveWhenRowDragging', 'rowDragMultiRow', 'enableGroupEdit', 'embedFullWidthRows', 'deprecatedEmbedFullWidthRows',\n        'suppressPaginationPanel', 'groupHideOpenParents', 'groupMultiAutoColumn', 'pagination',\n        'stopEditingWhenGridLosesFocus', 'paginationAutoPageSize', 'suppressScrollOnNewData', 'suppressScrollWhenPopupsAreOpen',\n        'purgeClosedRowNodes', 'cacheQuickFilter', 'deltaRowDataMode', 'ensureDomOrder', 'accentedSort', 'suppressChangeDetection',\n        'valueCache', 'valueCacheNeverExpires', 'aggregateOnlyChangedColumns', 'suppressAnimationFrame', 'suppressExcelExport',\n        'suppressCsvExport', 'treeData', 'masterDetail', 'suppressMultiRangeSelection', 'enterMovesDownAfterEdit', 'enterMovesDown',\n        'suppressPropertyNamesCheck', 'rowMultiSelectWithClick', 'suppressEnterpriseResetOnNewColumns',\n        'suppressRowHoverHighlight', 'suppressRowTransform', 'suppressClipboardPaste', 'suppressLastEmptyLineOnPaste',\n        'serverSideSortingAlwaysResets', 'suppressSetColumnStateEvents', 'suppressColumnStateEvents', 'enableCharts', 'deltaColumnMode',\n        'suppressMaintainUnsortedOrder', 'enableCellTextSelection', 'suppressBrowserResizeObserver', 'suppressMaxRenderedRowRestriction',\n        'excludeChildrenWhenTreeDataFiltering', 'tooltipMouseTrack', 'keepDetailRows', 'paginateChildRows', 'preventDefaultOnContextMenu',\n        'undoRedoCellEditing', 'allowDragFromColumnsToolPanel', 'immutableData', 'immutableColumns', 'pivotSuppressAutoColumn',\n        'suppressExpandablePivotGroups', 'applyColumnDefOrder', 'debounceVerticalScrollbar', 'detailRowAutoHeight',\n        'serverSideFilteringAlwaysResets', 'suppressAggFilteredOnly', 'showOpenedGroup', 'suppressClipboardApi',\n        'suppressModelUpdateAfterUpdateTransaction', 'stopEditingWhenCellsLoseFocus', 'maintainColumnOrder', 'groupMaintainOrder',\n        'columnHoverHighlight', 'reactUi', 'suppressReactUi', 'readOnlyEdit', 'suppressRowVirtualisation',\n        'resetRowDataOnUpdate', 'removePivotHeaderRowWhenSingleValueColumn', 'suppressCopySingleCellRanges'\n    ];\n    /** You do not need to include event callbacks in this list, as they are generated automatically. */\n    PropertyKeys.FUNCTION_PROPERTIES = [\n        'localeTextFunc', 'getLocaleText', 'groupRowInnerRenderer', 'groupRowInnerRendererFramework',\n        'groupRowRenderer', 'groupRowRendererFramework', 'isExternalFilterPresent', 'getRowHeight', 'doesExternalFilterPass',\n        'getRowClass', 'getRowStyle', 'getContextMenuItems', 'getMainMenuItems', 'processRowPostCreate', 'processCellForClipboard',\n        'groupRowAggNodes', 'getGroupRowAgg', 'getRowNodeId', 'isFullWidthCell', 'isFullWidthRow', 'fullWidthCellRenderer', 'fullWidthCellRendererFramework',\n        'processSecondaryColDef', 'processSecondaryColGroupDef',\n        'getBusinessKeyForNode', 'sendToClipboard', 'navigateToNextHeader',\n        'tabToNextHeader', 'navigateToNextCell', 'tabToNextCell', 'processCellFromClipboard', 'getDocument', 'postProcessPopup',\n        'getChildCount', 'getDataPath', 'loadingCellRenderer', 'loadingCellRendererFramework', 'loadingOverlayComponent',\n        'loadingOverlayComponentFramework', 'noRowsOverlayComponent', 'noRowsOverlayComponentFramework', 'detailCellRenderer',\n        'detailCellRendererFramework', 'isRowMaster', 'isRowSelectable', 'postSort', 'postSortRows', 'processHeaderForClipboard', 'processGroupHeaderForClipboard',\n        'paginationNumberFormatter', 'processDataFromClipboard', 'getServerSideGroupKey', 'isServerSideGroup', 'suppressKeyboardEvent',\n        'createChartContainer', 'getChartToolbarItems', 'fillOperation', 'isApplyServerSideTransaction', 'getServerSideStoreParams',\n        'isServerSideGroupOpenByDefault', 'isGroupOpenByDefault', 'defaultGroupSortComparator', 'defaultGroupOrderComparator', 'initialGroupOrderComparator',\n        'loadingCellRendererSelector', 'getRowId', 'groupAggFiltering'\n    ];\n    PropertyKeys.ALL_PROPERTIES = __spread$1(PropertyKeys.ARRAY_PROPERTIES, PropertyKeys.OBJECT_PROPERTIES, PropertyKeys.STRING_PROPERTIES, PropertyKeys.NUMBER_PROPERTIES, PropertyKeys.FUNCTION_PROPERTIES, PropertyKeys.BOOLEAN_PROPERTIES);\n    /**\n     * Used when performing property checks. This avoids noise caused when using frameworks, which can add their own\n     * framework-specific properties to colDefs, gridOptions etc.\n     */\n    PropertyKeys.FRAMEWORK_PROPERTIES = [\n        '__ob__', '__v_skip', '__metadata__', 'mappedColumnProperties', 'hasChildColumns', 'toColDef', 'createColDefFromGridColumn'\n    ];\n    return PropertyKeys;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __assign = (undefined && undefined.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __read$2 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$2 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$2(arguments[i]));\n    return ar;\n};\nvar ComponentUtil = /** @class */ (function () {\n    function ComponentUtil() {\n    }\n    ComponentUtil.getEventCallbacks = function () {\n        if (!ComponentUtil.EVENT_CALLBACKS) {\n            ComponentUtil.EVENT_CALLBACKS = ComponentUtil.EVENTS.map(function (event) { return ComponentUtil.getCallbackForEvent(event); });\n        }\n        return ComponentUtil.EVENT_CALLBACKS;\n    };\n    ComponentUtil.copyAttributesToGridOptions = function (gridOptions, component, skipEventDeprecationCheck) {\n        // create empty grid options if none were passed\n        if (typeof gridOptions !== 'object') {\n            gridOptions = {};\n        }\n        // to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'\n        var pGridOptions = gridOptions;\n        var keyExists = function (key) { return typeof component[key] !== 'undefined'; };\n        // if groupAggFiltering exists and isn't a function, handle as a boolean.\n        if (keyExists('groupAggFiltering') && typeof component.groupAggFiltering !== 'function') {\n            pGridOptions.groupAggFiltering = ComponentUtil.toBoolean(component.groupAggFiltering);\n            delete component.groupAggFiltering;\n        }\n        // add in all the simple properties\n        __spread$2(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.FUNCTION_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = component[key]; });\n        ComponentUtil.BOOLEAN_PROPERTIES\n            .filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = ComponentUtil.toBoolean(component[key]); });\n        ComponentUtil.NUMBER_PROPERTIES\n            .filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = ComponentUtil.toNumber(component[key]); });\n        return gridOptions;\n    };\n    ComponentUtil.getCallbackForEvent = function (eventName) {\n        if (!eventName || eventName.length < 2) {\n            return eventName;\n        }\n        return 'on' + eventName[0].toUpperCase() + eventName.substr(1);\n    };\n    ComponentUtil.processOnChange = function (changes, gridOptions, api, columnApi) {\n        if (!changes) {\n            return;\n        }\n        var changesToApply = __assign({}, changes);\n        // to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'\n        var pGridOptions = gridOptions;\n        var keyExists = function (key) { return changesToApply[key]; };\n        // if groupAggFiltering exists and isn't a function, handle as a boolean.\n        if (keyExists('groupAggFiltering')) {\n            if (typeof changesToApply.groupAggFiltering === 'function') {\n                pGridOptions.groupAggFiltering = changesToApply.groupAggFiltering;\n            }\n            else {\n                pGridOptions.groupAggFiltering = ComponentUtil.toBoolean(changesToApply.groupAggFiltering);\n            }\n            delete changesToApply.groupAggFiltering;\n        }\n        // we need to do this before the generic handling, otherwise value gets set before we\n        // try to set it, and the grid then doesn't refresh the rows as it doesn't see any change.\n        // also it's possible we use the generic code setXXX below and put it up there instead,\n        // cover all cases.\n        if (changesToApply.rowClass) {\n            api.setRowClass(changesToApply.rowClass.currentValue);\n            delete changesToApply.rowClass;\n        }\n        // check if any change for the simple types, and if so, then just copy in the new value\n        __spread$2(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = changesToApply[key].currentValue; });\n        ComponentUtil.BOOLEAN_PROPERTIES\n            .filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = ComponentUtil.toBoolean(changesToApply[key].currentValue); });\n        ComponentUtil.NUMBER_PROPERTIES\n            .filter(keyExists)\n            .forEach(function (key) { return pGridOptions[key] = ComponentUtil.toNumber(changesToApply[key].currentValue); });\n        if (changesToApply.enableCellTextSelection) {\n            api.setEnableCellTextSelection(ComponentUtil.toBoolean(changesToApply.enableCellTextSelection.currentValue));\n            delete changesToApply.enableCellTextSelection;\n        }\n        if (changesToApply.quickFilterText) {\n            api.setQuickFilter(changesToApply.quickFilterText.currentValue);\n            delete changesToApply.quickFilterText;\n        }\n        if (changesToApply.autoGroupColumnDef) {\n            api.setAutoGroupColumnDef(changesToApply.autoGroupColumnDef.currentValue, \"gridOptionsChanged\");\n            delete changesToApply.autoGroupColumnDef;\n        }\n        if (changesToApply.columnDefs) {\n            api.setColumnDefs(changesToApply.columnDefs.currentValue, \"gridOptionsChanged\");\n            delete changesToApply.columnDefs;\n        }\n        if (changesToApply.defaultColDef) {\n            api.setDefaultColDef(changesToApply.defaultColDef.currentValue, \"gridOptionsChanged\");\n            delete changesToApply.defaultColDef;\n        }\n        if (changesToApply.paginationPageSize) {\n            api.paginationSetPageSize(ComponentUtil.toNumber(changesToApply.paginationPageSize.currentValue));\n            delete changesToApply.paginationPageSize;\n        }\n        if (changesToApply.pivotMode) {\n            columnApi.setPivotMode(ComponentUtil.toBoolean(changesToApply.pivotMode.currentValue));\n            delete changesToApply.pivotMode;\n        }\n        if (changesToApply.groupRemoveSingleChildren) {\n            api.setGroupRemoveSingleChildren(ComponentUtil.toBoolean(changesToApply.groupRemoveSingleChildren.currentValue));\n            delete changesToApply.groupRemoveSingleChildren;\n        }\n        if (changesToApply.suppressRowDrag) {\n            api.setSuppressRowDrag(ComponentUtil.toBoolean(changesToApply.suppressRowDrag.currentValue));\n            delete changesToApply.suppressRowDrag;\n        }\n        if (changesToApply.suppressMoveWhenRowDragging) {\n            api.setSuppressMoveWhenRowDragging(ComponentUtil.toBoolean(changesToApply.suppressMoveWhenRowDragging.currentValue));\n            delete changesToApply.suppressMoveWhenRowDragging;\n        }\n        if (changesToApply.suppressRowClickSelection) {\n            api.setSuppressRowClickSelection(ComponentUtil.toBoolean(changesToApply.suppressRowClickSelection.currentValue));\n            delete changesToApply.suppressRowClickSelection;\n        }\n        if (changesToApply.suppressClipboardPaste) {\n            api.setSuppressClipboardPaste(ComponentUtil.toBoolean(changesToApply.suppressClipboardPaste.currentValue));\n            delete changesToApply.suppressClipboardPaste;\n        }\n        if (changesToApply.headerHeight) {\n            api.setHeaderHeight(ComponentUtil.toNumber(changesToApply.headerHeight.currentValue));\n            delete changesToApply.headerHeight;\n        }\n        // any remaining properties can be set in a generic way\n        // ie the setter takes the form of setXXX and the argument requires no formatting/translation first\n        var dynamicApi = api;\n        Object.keys(changesToApply)\n            .forEach(function (property) {\n            var setterName = \"set\" + property.charAt(0).toUpperCase() + property.substring(1);\n            if (dynamicApi[setterName]) {\n                dynamicApi[setterName](changes[property].currentValue);\n            }\n        });\n        // copy changes into an event for dispatch\n        var event = {\n            type: Events.EVENT_COMPONENT_STATE_CHANGED,\n            api: gridOptions.api,\n            columnApi: gridOptions.columnApi\n        };\n        iterateObject(changes, function (key, value) {\n            event[key] = value;\n        });\n        api.dispatchEvent(event);\n    };\n    ComponentUtil.toBoolean = function (value) {\n        if (typeof value === 'boolean') {\n            return value;\n        }\n        if (typeof value === 'string') {\n            // for boolean, compare to empty String to allow attributes appearing with\n            // no value to be treated as 'true'\n            return value.toUpperCase() === 'TRUE' || value == '';\n        }\n        return false;\n    };\n    ComponentUtil.toNumber = function (value) {\n        if (typeof value === 'number') {\n            return value;\n        }\n        if (typeof value === 'string') {\n            return Number(value);\n        }\n    };\n    // all the events are populated in here AFTER this class (at the bottom of the file).\n    ComponentUtil.EVENTS = [];\n    // events that are available for use by users of AG Grid and so should be documented\n    ComponentUtil.PUBLIC_EVENTS = [];\n    // events that are internal to AG Grid and should not be exposed to users via documentation or generated framework components\n    ComponentUtil.EXCLUDED_INTERNAL_EVENTS = [];\n    ComponentUtil.STRING_PROPERTIES = PropertyKeys.STRING_PROPERTIES;\n    ComponentUtil.OBJECT_PROPERTIES = PropertyKeys.OBJECT_PROPERTIES;\n    ComponentUtil.ARRAY_PROPERTIES = PropertyKeys.ARRAY_PROPERTIES;\n    ComponentUtil.NUMBER_PROPERTIES = PropertyKeys.NUMBER_PROPERTIES;\n    ComponentUtil.BOOLEAN_PROPERTIES = PropertyKeys.BOOLEAN_PROPERTIES;\n    ComponentUtil.FUNCTION_PROPERTIES = PropertyKeys.FUNCTION_PROPERTIES;\n    ComponentUtil.ALL_PROPERTIES = PropertyKeys.ALL_PROPERTIES;\n    return ComponentUtil;\n}());\nComponentUtil.EVENTS = values(Events);\n/** Exclude the following internal events from code generation to prevent exposing these events via framework components */\nComponentUtil.EXCLUDED_INTERNAL_EVENTS = [\n    Events.EVENT_SCROLLBAR_WIDTH_CHANGED,\n    Events.EVENT_CHECKBOX_CHANGED,\n    Events.EVENT_HEIGHT_SCALE_CHANGED,\n    Events.EVENT_BODY_HEIGHT_CHANGED,\n    Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,\n    Events.EVENT_SCROLL_VISIBILITY_CHANGED,\n    Events.EVENT_COLUMN_HOVER_CHANGED,\n    Events.EVENT_FLASH_CELLS,\n    Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,\n    Events.EVENT_DISPLAYED_ROWS_CHANGED,\n    Events.EVENT_LEFT_PINNED_WIDTH_CHANGED,\n    Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED,\n    Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,\n    Events.EVENT_POPUP_TO_FRONT,\n    Events.EVENT_KEYBOARD_FOCUS,\n    Events.EVENT_MOUSE_FOCUS,\n    Events.EVENT_STORE_UPDATED,\n    Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,\n    Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END,\n    Events.EVENT_FILL_START,\n    Events.EVENT_FILL_END,\n    Events.EVENT_FULL_WIDTH_ROW_FOCUSED\n];\n/** EVENTS that should be exposed via code generation for the framework components.  */\nComponentUtil.PUBLIC_EVENTS = ComponentUtil.EVENTS.filter(function (e) { return !includes(ComponentUtil.EXCLUDED_INTERNAL_EVENTS, e); });\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$4 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgStackComponentsRegistry = /** @class */ (function (_super) {\n    __extends$4(AgStackComponentsRegistry, _super);\n    function AgStackComponentsRegistry() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.componentsMappedByName = {};\n        return _this;\n    }\n    AgStackComponentsRegistry.prototype.setupComponents = function (components) {\n        var _this = this;\n        if (components) {\n            components.forEach(function (componentMeta) { return _this.addComponent(componentMeta); });\n        }\n    };\n    AgStackComponentsRegistry.prototype.addComponent = function (componentMeta) {\n        // get name of the class as a string\n        // let className = getNameOfClass(ComponentClass);\n        // insert a dash after every capital letter\n        // let classEscaped = className.replace(/([A-Z])/g, \"-$1\").toLowerCase();\n        var classEscaped = componentMeta.componentName.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n        // put all to upper case\n        var classUpperCase = classEscaped.toUpperCase();\n        // finally store\n        this.componentsMappedByName[classUpperCase] = componentMeta.componentClass;\n    };\n    AgStackComponentsRegistry.prototype.getComponentClass = function (htmlTag) {\n        return this.componentsMappedByName[htmlTag];\n    };\n    AgStackComponentsRegistry = __decorate$8([\n        Bean('agStackComponentsRegistry')\n    ], AgStackComponentsRegistry);\n    return AgStackComponentsRegistry;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$3 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$3 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$3(arguments[i]));\n    return ar;\n};\nvar ColDefUtil = /** @class */ (function () {\n    function ColDefUtil() {\n    }\n    ColDefUtil.STRING_PROPERTIES = [\n        'headerName',\n        'columnGroupShow',\n        'headerClass',\n        'toolPanelClass',\n        'headerValueGetter',\n        'pivotKeys',\n        'groupId',\n        'colId',\n        'sort',\n        'initialSort',\n        'field',\n        'type',\n        'tooltipComponent',\n        'tooltipField',\n        'headerTooltip',\n        'cellClass',\n        'showRowGroup',\n        'filter',\n        'initialAggFunc',\n        'defaultAggFunc',\n        'aggFunc',\n        'pinned',\n        'initialPinned',\n        'chartDataType',\n        'cellEditorPopupPosition'\n    ];\n    ColDefUtil.OBJECT_PROPERTIES = [\n        'headerGroupComponent',\n        'headerGroupComponentFramework',\n        'headerGroupComponentParams',\n        'cellStyle',\n        'cellRenderer',\n        'cellRendererParams',\n        'cellRendererFramework',\n        'cellEditor',\n        'cellEditorFramework',\n        'cellEditorParams',\n        'pinnedRowCellRendererFramework',\n        'pinnedRowCellRendererParams',\n        'filterFramework',\n        'filterParams',\n        'pivotValueColumn',\n        'headerComponent',\n        'headerComponentFramework',\n        'headerComponentParams',\n        'floatingFilterComponent',\n        'floatingFilterComponentParams',\n        'floatingFilterComponentFramework',\n        'floatingFilterFramework',\n        'tooltipComponent',\n        'tooltipComponentParams',\n        'tooltipComponentFramework',\n        'refData',\n        'columnsMenuParams'\n    ];\n    ColDefUtil.ARRAY_PROPERTIES = [\n        'children',\n        'sortingOrder',\n        'allowedAggFuncs',\n        'menuTabs',\n        'pivotTotalColumnIds',\n        'cellClassRules',\n        'icons'\n    ];\n    ColDefUtil.NUMBER_PROPERTIES = [\n        'sortedAt',\n        'sortIndex',\n        'initialSortIndex',\n        'flex',\n        'initialFlex',\n        'width',\n        'initialWidth',\n        'minWidth',\n        'maxWidth',\n        'rowGroupIndex',\n        'initialRowGroupIndex',\n        'pivotIndex',\n        'initialPivotIndex'\n    ];\n    ColDefUtil.BOOLEAN_PROPERTIES = [\n        'suppressCellFlash',\n        'suppressColumnsToolPanel',\n        'suppressFiltersToolPanel',\n        'openByDefault',\n        'marryChildren',\n        'hide',\n        'initialHide',\n        'rowGroup',\n        'initialRowGroup',\n        'pivot',\n        'initialPivot',\n        'checkboxSelection',\n        'headerCheckboxSelection',\n        'headerCheckboxSelectionFilteredOnly',\n        'suppressMenu',\n        'suppressMovable',\n        'lockPosition',\n        'lockVisible',\n        'lockPinned',\n        'unSortIcon',\n        'suppressSizeToFit',\n        'suppressAutoSize',\n        'enableRowGroup',\n        'enablePivot',\n        'enableValue',\n        'editable',\n        'suppressPaste',\n        'suppressNavigable',\n        'enableCellChangeFlash',\n        'rowDrag',\n        'dndSource',\n        'autoHeight',\n        'wrapText',\n        'sortable',\n        'resizable',\n        'singleClickEdit',\n        'floatingFilter',\n        'cellEditorPopup',\n        'suppressFillHandle'\n    ];\n    ColDefUtil.FUNCTION_PROPERTIES = [\n        'dndSourceOnRowDrag',\n        'valueGetter',\n        'valueSetter',\n        'filterValueGetter',\n        'keyCreator',\n        'pinnedRowCellRenderer',\n        'valueFormatter',\n        'pinnedRowValueFormatter',\n        'valueParser',\n        'comparator',\n        'equals',\n        'pivotComparator',\n        'suppressKeyboardEvent',\n        'suppressHeaderKeyboardEvent',\n        'colSpan',\n        'rowSpan',\n        'getQuickFilterText',\n        'newValueHandler',\n        'onCellValueChanged',\n        'onCellClicked',\n        'onCellDoubleClicked',\n        'onCellContextMenu',\n        'rowDragText',\n        'tooltipValueGetter',\n        'tooltipComponent',\n        'tooltipComponentFramework',\n        'cellRendererSelector',\n        'cellEditorSelector'\n    ];\n    ColDefUtil.ALL_PROPERTIES = __spread$3(ColDefUtil.ARRAY_PROPERTIES, ColDefUtil.OBJECT_PROPERTIES, ColDefUtil.STRING_PROPERTIES, ColDefUtil.NUMBER_PROPERTIES, ColDefUtil.FUNCTION_PROPERTIES, ColDefUtil.BOOLEAN_PROPERTIES);\n    // used when doing property checks - this causes noise when using frameworks which can add their own fw specific\n    // properties to colDefs, gridOptions etc\n    ColDefUtil.FRAMEWORK_PROPERTIES = [\n        '__ob__',\n        '__v_skip',\n        '__metadata__',\n        'mappedColumnProperties',\n        'hasChildColumns',\n        'toColDef',\n        'createColDefFromGridColumn'\n    ];\n    return ColDefUtil;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$4 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar Color = /** @class */ (function () {\n    /**\n     * Every color component should be in the [0, 1] range.\n     * Some easing functions (such as elastic easing) can overshoot the target value by some amount.\n     * So, when animating colors, if the source or target color components are already near\n     * or at the edge of the allowed [0, 1] range, it is possible for the intermediate color\n     * component value to end up outside of that range mid-animation. For this reason the constructor\n     * performs range checking/constraining.\n     * @param r Red component.\n     * @param g Green component.\n     * @param b Blue component.\n     * @param a Alpha (opacity) component.\n     */\n    function Color(r, g, b, a) {\n        if (a === void 0) { a = 1; }\n        // NaN is treated as 0.\n        this.r = Math.min(1, Math.max(0, r || 0));\n        this.g = Math.min(1, Math.max(0, g || 0));\n        this.b = Math.min(1, Math.max(0, b || 0));\n        this.a = Math.min(1, Math.max(0, a || 0));\n    }\n    /**\n     * The given string can be in one of the following formats:\n     * - #rgb\n     * - #rrggbb\n     * - rgb(r, g, b)\n     * - rgba(r, g, b, a)\n     * - CSS color name such as 'white', 'orange', 'cyan', etc.\n     * @param str\n     */\n    Color.fromString = function (str) {\n        // hexadecimal notation\n        if (str.indexOf('#') >= 0) { // there can be some leading whitespace\n            return Color.fromHexString(str);\n        }\n        // color name\n        var hex = Color.nameToHex[str];\n        if (hex) {\n            return Color.fromHexString(hex);\n        }\n        // rgb(a) notation\n        if (str.indexOf('rgb') >= 0) {\n            return Color.fromRgbaString(str);\n        }\n        throw new Error(\"Invalid color string: '\" + str + \"'\");\n    };\n    // See https://drafts.csswg.org/css-color/#hex-notation\n    Color.parseHex = function (input) {\n        input = input.replace(/ /g, '').slice(1);\n        var parts;\n        switch (input.length) {\n            case 6:\n            case 8:\n                parts = [];\n                for (var i = 0; i < input.length; i += 2) {\n                    parts.push(parseInt(\"\" + input[i] + input[i + 1], 16));\n                }\n                break;\n            case 3:\n            case 4:\n                parts = input.split('').map(function (p) { return parseInt(p, 16); }).map(function (p) { return p + p * 16; });\n                break;\n        }\n        if (parts.length >= 3) {\n            if (parts.every(function (p) { return p >= 0; })) {\n                if (parts.length === 3) {\n                    parts.push(255);\n                }\n                return parts;\n            }\n        }\n    };\n    Color.fromHexString = function (str) {\n        var values = Color.parseHex(str);\n        if (values) {\n            var _a = __read$4(values, 4), r = _a[0], g = _a[1], b = _a[2], a = _a[3];\n            return new Color(r / 255, g / 255, b / 255, a / 255);\n        }\n        throw new Error(\"Malformed hexadecimal color string: '\" + str + \"'\");\n    };\n    Color.stringToRgba = function (str) {\n        // Find positions of opening and closing parentheses.\n        var _a = __read$4([NaN, NaN], 2), po = _a[0], pc = _a[1];\n        for (var i = 0; i < str.length; i++) {\n            var c = str[i];\n            if (!po && c === '(') {\n                po = i;\n            }\n            else if (c === ')') {\n                pc = i;\n                break;\n            }\n        }\n        var contents = po && pc && str.substring(po + 1, pc);\n        if (!contents) {\n            return;\n        }\n        var parts = contents.split(',');\n        var rgba = [];\n        for (var i = 0; i < parts.length; i++) {\n            var part = parts[i];\n            var value = parseFloat(part);\n            if (isNaN(value)) {\n                return;\n            }\n            if (part.indexOf('%') >= 0) { // percentage r, g, or b value\n                value = Math.max(0, Math.min(100, value));\n                value /= 100;\n            }\n            else {\n                if (i === 3) { // alpha component\n                    value = Math.max(0, Math.min(1, value));\n                }\n                else { // absolute r, g, or b value\n                    value = Math.max(0, Math.min(255, value));\n                    value /= 255;\n                }\n            }\n            rgba.push(value);\n        }\n        return rgba;\n    };\n    Color.fromRgbaString = function (str) {\n        var rgba = Color.stringToRgba(str);\n        if (rgba) {\n            if (rgba.length === 3) {\n                return new Color(rgba[0], rgba[1], rgba[2]);\n            }\n            else if (rgba.length === 4) {\n                return new Color(rgba[0], rgba[1], rgba[2], rgba[3]);\n            }\n        }\n        throw new Error(\"Malformed rgb/rgba color string: '\" + str + \"'\");\n    };\n    Color.fromArray = function (arr) {\n        if (arr.length === 4) {\n            return new Color(arr[0], arr[1], arr[2], arr[3]);\n        }\n        if (arr.length === 3) {\n            return new Color(arr[0], arr[1], arr[2]);\n        }\n        throw new Error('The given array should contain 3 or 4 color components (numbers).');\n    };\n    Color.fromHSB = function (h, s, b, alpha) {\n        if (alpha === void 0) { alpha = 1; }\n        var rgb = Color.HSBtoRGB(h, s, b);\n        return new Color(rgb[0], rgb[1], rgb[2], alpha);\n    };\n    Color.padHex = function (str) {\n        // Can't use `padStart(2, '0')` here because of IE.\n        return str.length === 1 ? '0' + str : str;\n    };\n    Color.prototype.toHexString = function () {\n        var hex = '#'\n            + Color.padHex(Math.round(this.r * 255).toString(16))\n            + Color.padHex(Math.round(this.g * 255).toString(16))\n            + Color.padHex(Math.round(this.b * 255).toString(16));\n        if (this.a < 1) {\n            hex += Color.padHex(Math.round(this.a * 255).toString(16));\n        }\n        return hex;\n    };\n    Color.prototype.toRgbaString = function (fractionDigits) {\n        if (fractionDigits === void 0) { fractionDigits = 3; }\n        var components = [\n            Math.round(this.r * 255),\n            Math.round(this.g * 255),\n            Math.round(this.b * 255)\n        ];\n        var k = Math.pow(10, fractionDigits);\n        if (this.a !== 1) {\n            components.push(Math.round(this.a * k) / k);\n            return \"rgba(\" + components.join(', ') + \")\";\n        }\n        return \"rgb(\" + components.join(', ') + \")\";\n    };\n    Color.prototype.toString = function () {\n        if (this.a === 1) {\n            return this.toHexString();\n        }\n        return this.toRgbaString();\n    };\n    Color.prototype.toHSB = function () {\n        return Color.RGBtoHSB(this.r, this.g, this.b);\n    };\n    /**\n     * Converts the given RGB triple to an array of HSB (HSV) components.\n     * The hue component will be `NaN` for achromatic colors.\n     */\n    Color.RGBtoHSB = function (r, g, b) {\n        var min = Math.min(r, g, b);\n        var max = Math.max(r, g, b);\n        var S = max !== 0 ? (max - min) / max : 0;\n        var H = NaN;\n        // min == max, means all components are the same\n        // and the color is a shade of gray with no hue (H is NaN)\n        if (min !== max) {\n            var delta = max - min;\n            var rc = (max - r) / delta;\n            var gc = (max - g) / delta;\n            var bc = (max - b) / delta;\n            if (r === max) {\n                H = bc - gc;\n            }\n            else if (g === max) {\n                H = 2.0 + rc - bc;\n            }\n            else {\n                H = 4.0 + gc - rc;\n            }\n            H /= 6.0;\n            if (H < 0) {\n                H = H + 1.0;\n            }\n        }\n        return [H * 360, S, max];\n    };\n    /**\n     * Converts the given HSB (HSV) triple to an array of RGB components.\n     */\n    Color.HSBtoRGB = function (H, S, B) {\n        if (isNaN(H)) {\n            H = 0;\n        }\n        H = (((H % 360) + 360) % 360) / 360; // normalize hue to [0, 360] interval, then scale to [0, 1]\n        var r = 0;\n        var g = 0;\n        var b = 0;\n        if (S === 0) {\n            r = g = b = B;\n        }\n        else {\n            var h = (H - Math.floor(H)) * 6;\n            var f = h - Math.floor(h);\n            var p = B * (1 - S);\n            var q = B * (1 - S * f);\n            var t = B * (1 - (S * (1 - f)));\n            switch (h >> 0) { // discard the floating point part of the number\n                case 0:\n                    r = B;\n                    g = t;\n                    b = p;\n                    break;\n                case 1:\n                    r = q;\n                    g = B;\n                    b = p;\n                    break;\n                case 2:\n                    r = p;\n                    g = B;\n                    b = t;\n                    break;\n                case 3:\n                    r = p;\n                    g = q;\n                    b = B;\n                    break;\n                case 4:\n                    r = t;\n                    g = p;\n                    b = B;\n                    break;\n                case 5:\n                    r = B;\n                    g = p;\n                    b = q;\n                    break;\n            }\n        }\n        return [r, g, b];\n    };\n    Color.prototype.derive = function (hueShift, saturationFactor, brightnessFactor, opacityFactor) {\n        var hsb = Color.RGBtoHSB(this.r, this.g, this.b);\n        var b = hsb[2];\n        if (b == 0 && brightnessFactor > 1.0) {\n            b = 0.05;\n        }\n        var h = (((hsb[0] + hueShift) % 360) + 360) % 360;\n        var s = Math.max(Math.min(hsb[1] * saturationFactor, 1.0), 0.0);\n        b = Math.max(Math.min(b * brightnessFactor, 1.0), 0.0);\n        var a = Math.max(Math.min(this.a * opacityFactor, 1.0), 0.0);\n        var rgba = Color.HSBtoRGB(h, s, b);\n        rgba.push(a);\n        return Color.fromArray(rgba);\n    };\n    Color.prototype.brighter = function () {\n        return this.derive(0, 1.0, 1.0 / 0.7, 1.0);\n    };\n    Color.prototype.darker = function () {\n        return this.derive(0, 1.0, 0.7, 1.0);\n    };\n    /**\n     * CSS Color Module Level 4:\n     * https://drafts.csswg.org/css-color/#named-colors\n     */\n    Color.nameToHex = Object.freeze({\n        aliceblue: '#F0F8FF',\n        antiquewhite: '#FAEBD7',\n        aqua: '#00FFFF',\n        aquamarine: '#7FFFD4',\n        azure: '#F0FFFF',\n        beige: '#F5F5DC',\n        bisque: '#FFE4C4',\n        black: '#000000',\n        blanchedalmond: '#FFEBCD',\n        blue: '#0000FF',\n        blueviolet: '#8A2BE2',\n        brown: '#A52A2A',\n        burlywood: '#DEB887',\n        cadetblue: '#5F9EA0',\n        chartreuse: '#7FFF00',\n        chocolate: '#D2691E',\n        coral: '#FF7F50',\n        cornflowerblue: '#6495ED',\n        cornsilk: '#FFF8DC',\n        crimson: '#DC143C',\n        cyan: '#00FFFF',\n        darkblue: '#00008B',\n        darkcyan: '#008B8B',\n        darkgoldenrod: '#B8860B',\n        darkgray: '#A9A9A9',\n        darkgreen: '#006400',\n        darkgrey: '#A9A9A9',\n        darkkhaki: '#BDB76B',\n        darkmagenta: '#8B008B',\n        darkolivegreen: '#556B2F',\n        darkorange: '#FF8C00',\n        darkorchid: '#9932CC',\n        darkred: '#8B0000',\n        darksalmon: '#E9967A',\n        darkseagreen: '#8FBC8F',\n        darkslateblue: '#483D8B',\n        darkslategray: '#2F4F4F',\n        darkslategrey: '#2F4F4F',\n        darkturquoise: '#00CED1',\n        darkviolet: '#9400D3',\n        deeppink: '#FF1493',\n        deepskyblue: '#00BFFF',\n        dimgray: '#696969',\n        dimgrey: '#696969',\n        dodgerblue: '#1E90FF',\n        firebrick: '#B22222',\n        floralwhite: '#FFFAF0',\n        forestgreen: '#228B22',\n        fuchsia: '#FF00FF',\n        gainsboro: '#DCDCDC',\n        ghostwhite: '#F8F8FF',\n        gold: '#FFD700',\n        goldenrod: '#DAA520',\n        gray: '#808080',\n        green: '#008000',\n        greenyellow: '#ADFF2F',\n        grey: '#808080',\n        honeydew: '#F0FFF0',\n        hotpink: '#FF69B4',\n        indianred: '#CD5C5C',\n        indigo: '#4B0082',\n        ivory: '#FFFFF0',\n        khaki: '#F0E68C',\n        lavender: '#E6E6FA',\n        lavenderblush: '#FFF0F5',\n        lawngreen: '#7CFC00',\n        lemonchiffon: '#FFFACD',\n        lightblue: '#ADD8E6',\n        lightcoral: '#F08080',\n        lightcyan: '#E0FFFF',\n        lightgoldenrodyellow: '#FAFAD2',\n        lightgray: '#D3D3D3',\n        lightgreen: '#90EE90',\n        lightgrey: '#D3D3D3',\n        lightpink: '#FFB6C1',\n        lightsalmon: '#FFA07A',\n        lightseagreen: '#20B2AA',\n        lightskyblue: '#87CEFA',\n        lightslategray: '#778899',\n        lightslategrey: '#778899',\n        lightsteelblue: '#B0C4DE',\n        lightyellow: '#FFFFE0',\n        lime: '#00FF00',\n        limegreen: '#32CD32',\n        linen: '#FAF0E6',\n        magenta: '#FF00FF',\n        maroon: '#800000',\n        mediumaquamarine: '#66CDAA',\n        mediumblue: '#0000CD',\n        mediumorchid: '#BA55D3',\n        mediumpurple: '#9370DB',\n        mediumseagreen: '#3CB371',\n        mediumslateblue: '#7B68EE',\n        mediumspringgreen: '#00FA9A',\n        mediumturquoise: '#48D1CC',\n        mediumvioletred: '#C71585',\n        midnightblue: '#191970',\n        mintcream: '#F5FFFA',\n        mistyrose: '#FFE4E1',\n        moccasin: '#FFE4B5',\n        navajowhite: '#FFDEAD',\n        navy: '#000080',\n        oldlace: '#FDF5E6',\n        olive: '#808000',\n        olivedrab: '#6B8E23',\n        orange: '#FFA500',\n        orangered: '#FF4500',\n        orchid: '#DA70D6',\n        palegoldenrod: '#EEE8AA',\n        palegreen: '#98FB98',\n        paleturquoise: '#AFEEEE',\n        palevioletred: '#DB7093',\n        papayawhip: '#FFEFD5',\n        peachpuff: '#FFDAB9',\n        peru: '#CD853F',\n        pink: '#FFC0CB',\n        plum: '#DDA0DD',\n        powderblue: '#B0E0E6',\n        purple: '#800080',\n        rebeccapurple: '#663399',\n        red: '#FF0000',\n        rosybrown: '#BC8F8F',\n        royalblue: '#4169E1',\n        saddlebrown: '#8B4513',\n        salmon: '#FA8072',\n        sandybrown: '#F4A460',\n        seagreen: '#2E8B57',\n        seashell: '#FFF5EE',\n        sienna: '#A0522D',\n        silver: '#C0C0C0',\n        skyblue: '#87CEEB',\n        slateblue: '#6A5ACD',\n        slategray: '#708090',\n        slategrey: '#708090',\n        snow: '#FFFAFA',\n        springgreen: '#00FF7F',\n        steelblue: '#4682B4',\n        tan: '#D2B48C',\n        teal: '#008080',\n        thistle: '#D8BFD8',\n        tomato: '#FF6347',\n        turquoise: '#40E0D0',\n        violet: '#EE82EE',\n        wheat: '#F5DEB3',\n        white: '#FFFFFF',\n        whitesmoke: '#F5F5F5',\n        yellow: '#FFFF00',\n        yellowgreen: '#9ACD32'\n    });\n    return Color;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// Based on https://stackoverflow.com/a/14991797\n// This will parse a delimited string into an array of arrays.\nfunction stringToArray(strData, delimiter) {\n    if (delimiter === void 0) { delimiter = ','; }\n    var data = [];\n    var isNewline = function (char) { return char === '\\r' || char === '\\n'; };\n    var insideQuotedField = false;\n    if (strData === '') {\n        return [['']];\n    }\n    var _loop_1 = function (row, column, position) {\n        var previousChar = strData[position - 1];\n        var currentChar = strData[position];\n        var nextChar = strData[position + 1];\n        var ensureDataExists = function () {\n            if (!data[row]) {\n                // create row if it doesn't exist\n                data[row] = [];\n            }\n            if (!data[row][column]) {\n                // create column if it doesn't exist\n                data[row][column] = '';\n            }\n        };\n        ensureDataExists();\n        if (currentChar === '\"') {\n            if (insideQuotedField) {\n                if (nextChar === '\"') {\n                    // unescape double quote\n                    data[row][column] += '\"';\n                    position++;\n                }\n                else {\n                    // exit quoted field\n                    insideQuotedField = false;\n                }\n                return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n            }\n            else if (previousChar === undefined || previousChar === delimiter || isNewline(previousChar)) {\n                // enter quoted field\n                insideQuotedField = true;\n                return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n            }\n        }\n        if (!insideQuotedField) {\n            if (currentChar === delimiter) {\n                // move to next column\n                column++;\n                ensureDataExists();\n                return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n            }\n            else if (isNewline(currentChar)) {\n                // move to next row\n                column = 0;\n                row++;\n                ensureDataExists();\n                if (currentChar === '\\r' && nextChar === '\\n') {\n                    // skip over second newline character if it exists\n                    position++;\n                }\n                return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n            }\n        }\n        // add current character to current column\n        data[row][column] += currentChar;\n        out_row_1 = row;\n        out_column_1 = column;\n        out_position_1 = position;\n    };\n    var out_row_1, out_column_1, out_position_1;\n    // iterate over each character, keep track of current row and column (of the returned array)\n    for (var row = 0, column = 0, position = 0; position < strData.length; position++) {\n        _loop_1(row, column, position);\n        row = out_row_1;\n        column = out_column_1;\n        position = out_position_1;\n    }\n    return data;\n}\n\nvar CsvUtils = /*#__PURE__*/Object.freeze({\n    stringToArray: stringToArray\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __values$1 = (undefined && undefined.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/**\n * These variables are lazy loaded, as otherwise they try and get initialised when we are loading\n * unit tests and we don't have references to window or document in the unit tests\n * from http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser\n */\nvar isSafari;\nvar isIE;\nvar isEdge;\nvar isChrome;\nvar isFirefox;\nvar isIOS;\nvar invisibleScrollbar;\nvar browserScrollbarWidth;\nfunction isBrowserIE() {\n    if (isIE === undefined) {\n        isIE = /*@cc_on!@*/  !!document.documentMode; // At least IE6\n    }\n    return isIE;\n}\nfunction isBrowserEdge() {\n    if (isEdge === undefined) {\n        isEdge = !isBrowserIE() && !!window.StyleMedia;\n    }\n    return isEdge;\n}\nfunction isBrowserSafari() {\n    if (isSafari === undefined) {\n        // taken from https://stackoverflow.com/a/23522755/1388233\n        isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n    }\n    return isSafari;\n}\nfunction isBrowserChrome() {\n    if (isChrome === undefined) {\n        var win = window;\n        isChrome = (!!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime)) ||\n            (/Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor));\n    }\n    return isChrome;\n}\nfunction isBrowserFirefox() {\n    if (isFirefox === undefined) {\n        var win = window;\n        isFirefox = typeof win.InstallTrigger !== 'undefined';\n    }\n    return isFirefox;\n}\nfunction isIOSUserAgent() {\n    if (isIOS === undefined) {\n        // taken from https://stackoverflow.com/a/58064481/1388233\n        isIOS = (/iPad|iPhone|iPod/.test(navigator.platform) ||\n            // eslint-disable-next-line\n            (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&\n            // @ts-ignore\n            !window.MSStream;\n    }\n    return isIOS;\n}\nfunction getTabIndex(el) {\n    if (!el) {\n        return null;\n    }\n    var numberTabIndex = el.tabIndex;\n    var tabIndex = el.getAttribute('tabIndex');\n    if (numberTabIndex === -1 && (tabIndex === null || (tabIndex === '' && !isBrowserFirefox()))) {\n        return null;\n    }\n    return numberTabIndex.toString();\n}\nfunction getMaxDivHeight() {\n    if (!document.body) {\n        return -1;\n    }\n    var res = 1000000;\n    // FF reports the height back but still renders blank after ~6M px\n    var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? 6000000 : 1000000000;\n    var div = document.createElement('div');\n    document.body.appendChild(div);\n    while (true) {\n        var test = res * 2;\n        div.style.height = test + 'px';\n        if (test > testUpTo || div.clientHeight !== test) {\n            break;\n        }\n        else {\n            res = test;\n        }\n    }\n    document.body.removeChild(div);\n    return res;\n}\nfunction getScrollbarWidth() {\n    if (browserScrollbarWidth == null) {\n        initScrollbarWidthAndVisibility();\n    }\n    return browserScrollbarWidth;\n}\nfunction initScrollbarWidthAndVisibility() {\n    var body = document.body;\n    var div = document.createElement('div');\n    div.style.width = div.style.height = '100px';\n    div.style.opacity = '0';\n    div.style.overflow = 'scroll';\n    div.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps\n    div.style.position = 'absolute';\n    body.appendChild(div);\n    var width = div.offsetWidth - div.clientWidth;\n    // if width is 0 and client width is 0, means the DOM isn't ready\n    if (width === 0 && div.clientWidth === 0) {\n        width = null;\n    }\n    // remove div\n    if (div.parentNode) {\n        div.parentNode.removeChild(div);\n    }\n    if (width != null) {\n        browserScrollbarWidth = width;\n        invisibleScrollbar = width === 0;\n    }\n}\nfunction isInvisibleScrollbar() {\n    if (invisibleScrollbar == null) {\n        initScrollbarWidthAndVisibility();\n    }\n    return invisibleScrollbar;\n}\n/** @deprecated */\nfunction hasOverflowScrolling() {\n    var e_1, _a;\n    var prefixes = ['webkit', 'moz', 'o', 'ms'];\n    var div = document.createElement('div');\n    var body = document.getElementsByTagName('body')[0];\n    var found = false;\n    var p;\n    body.appendChild(div);\n    div.setAttribute('style', prefixes.map(function (prefix) { return \"-\" + prefix + \"-overflow-scrolling: touch\"; }).concat('overflow-scrolling: touch').join(';'));\n    var computedStyle = window.getComputedStyle(div);\n    if (computedStyle.overflowScrolling === 'touch') {\n        found = true;\n    }\n    if (!found) {\n        try {\n            for (var prefixes_1 = __values$1(prefixes), prefixes_1_1 = prefixes_1.next(); !prefixes_1_1.done; prefixes_1_1 = prefixes_1.next()) {\n                p = prefixes_1_1.value;\n                if (computedStyle[p + \"OverflowScrolling\"] === 'touch') {\n                    found = true;\n                    break;\n                }\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (prefixes_1_1 && !prefixes_1_1.done && (_a = prefixes_1.return)) _a.call(prefixes_1);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n    }\n    if (div.parentNode) {\n        div.parentNode.removeChild(div);\n    }\n    return found;\n}\n/**\n * Gets the document body width\n * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code\n * @returns {number}\n */\nfunction getBodyWidth() {\n    if (document.body) {\n        return document.body.clientWidth;\n    }\n    if (window.innerHeight) {\n        return window.innerWidth;\n    }\n    if (document.documentElement && document.documentElement.clientWidth) {\n        return document.documentElement.clientWidth;\n    }\n    return -1;\n}\n/**\n * Gets the body height\n * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code\n * @returns {number}\n */\nfunction getBodyHeight() {\n    if (document.body) {\n        return document.body.clientHeight;\n    }\n    if (window.innerHeight) {\n        return window.innerHeight;\n    }\n    if (document.documentElement && document.documentElement.clientHeight) {\n        return document.documentElement.clientHeight;\n    }\n    return -1;\n}\n\nvar BrowserUtils = /*#__PURE__*/Object.freeze({\n    isBrowserEdge: isBrowserEdge,\n    isBrowserSafari: isBrowserSafari,\n    isBrowserChrome: isBrowserChrome,\n    isBrowserFirefox: isBrowserFirefox,\n    isIOSUserAgent: isIOSUserAgent,\n    getTabIndex: getTabIndex,\n    getMaxDivHeight: getMaxDivHeight,\n    getScrollbarWidth: getScrollbarWidth,\n    isInvisibleScrollbar: isInvisibleScrollbar,\n    hasOverflowScrolling: hasOverflowScrolling,\n    getBodyWidth: getBodyWidth,\n    getBodyHeight: getBodyHeight\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar rtlNegativeScroll;\n/**\n * This method adds a class to an element and remove that class from all siblings.\n * Useful for toggling state.\n * @param {HTMLElement} element The element to receive the class\n * @param {string} elementClass The class to be assigned to the element\n * @param {boolean} otherElementClass The class to be assigned to siblings of the element, but not the element itself\n */\nfunction radioCssClass(element, elementClass, otherElementClass) {\n    var parent = element.parentElement;\n    var sibling = parent && parent.firstChild;\n    while (sibling) {\n        if (elementClass) {\n            sibling.classList.toggle(elementClass, sibling === element);\n        }\n        if (otherElementClass) {\n            sibling.classList.toggle(otherElementClass, sibling !== element);\n        }\n        sibling = sibling.nextSibling;\n    }\n}\nfunction isFocusableFormField(element) {\n    var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;\n    var isFocusable = matches.call(element, Constants.INPUT_SELECTOR);\n    var isNotFocusable = matches.call(element, Constants.FOCUSABLE_EXCLUDE);\n    var isElementVisible = isVisible(element);\n    var focusable = isFocusable && !isNotFocusable && isElementVisible;\n    return focusable;\n}\nfunction setDisplayed(element, displayed) {\n    element.classList.toggle('ag-hidden', !displayed);\n}\nfunction setVisible(element, visible) {\n    element.classList.toggle('ag-invisible', !visible);\n}\nfunction setDisabled(element, disabled) {\n    var attributeName = 'disabled';\n    var addOrRemoveDisabledAttribute = disabled ?\n        function (e) { return e.setAttribute(attributeName, ''); } :\n        function (e) { return e.removeAttribute(attributeName); };\n    addOrRemoveDisabledAttribute(element);\n    nodeListForEach(element.querySelectorAll('input'), function (input) { return addOrRemoveDisabledAttribute(input); });\n}\nfunction isElementChildOfClass(element, cls, maxNest) {\n    var counter = 0;\n    while (element) {\n        if (element.classList.contains(cls)) {\n            return true;\n        }\n        element = element.parentElement;\n        if (maxNest && ++counter > maxNest) {\n            break;\n        }\n    }\n    return false;\n}\n// returns back sizes as doubles instead of strings. similar to\n// getBoundingClientRect, however getBoundingClientRect does not:\n// a) work with fractions (eg browser is zooming)\n// b) has CSS transitions applied (eg CSS scale, browser zoom), which we don't want, we want the un-transitioned values\nfunction getElementSize(el) {\n    var _a = window.getComputedStyle(el), height = _a.height, width = _a.width, paddingTop = _a.paddingTop, paddingRight = _a.paddingRight, paddingBottom = _a.paddingBottom, paddingLeft = _a.paddingLeft, marginTop = _a.marginTop, marginRight = _a.marginRight, marginBottom = _a.marginBottom, marginLeft = _a.marginLeft, boxSizing = _a.boxSizing;\n    return {\n        height: parseFloat(height),\n        width: parseFloat(width),\n        paddingTop: parseFloat(paddingTop),\n        paddingRight: parseFloat(paddingRight),\n        paddingBottom: parseFloat(paddingBottom),\n        paddingLeft: parseFloat(paddingLeft),\n        marginTop: parseFloat(marginTop),\n        marginRight: parseFloat(marginRight),\n        marginBottom: parseFloat(marginBottom),\n        marginLeft: parseFloat(marginLeft),\n        boxSizing: boxSizing\n    };\n}\nfunction getInnerHeight(el) {\n    var size = getElementSize(el);\n    if (size.boxSizing === 'border-box') {\n        return size.height - size.paddingTop - size.paddingBottom;\n    }\n    return size.height;\n}\nfunction getInnerWidth(el) {\n    var size = getElementSize(el);\n    if (size.boxSizing === 'border-box') {\n        return size.width - size.paddingLeft - size.paddingRight;\n    }\n    return size.width;\n}\nfunction getAbsoluteHeight(el) {\n    var size = getElementSize(el);\n    var marginRight = size.marginBottom + size.marginTop;\n    return Math.ceil(el.offsetHeight + marginRight);\n}\nfunction getAbsoluteWidth(el) {\n    var size = getElementSize(el);\n    var marginWidth = size.marginLeft + size.marginRight;\n    return Math.ceil(el.offsetWidth + marginWidth);\n}\nfunction isRtlNegativeScroll() {\n    if (typeof rtlNegativeScroll === \"boolean\") {\n        return rtlNegativeScroll;\n    }\n    var template = document.createElement('div');\n    template.style.direction = 'rtl';\n    template.style.width = '1px';\n    template.style.height = '1px';\n    template.style.position = 'fixed';\n    template.style.top = '0px';\n    template.style.overflow = 'hidden';\n    template.dir = 'rtl';\n    template.innerHTML = /* html */\n        \"<div style=\\\"width: 2px\\\">\\n            <span style=\\\"display: inline-block; width: 1px\\\"></span>\\n            <span style=\\\"display: inline-block; width: 1px\\\"></span>\\n        </div>\";\n    document.body.appendChild(template);\n    template.scrollLeft = 1;\n    rtlNegativeScroll = Math.floor(template.scrollLeft) === 0;\n    document.body.removeChild(template);\n    return rtlNegativeScroll;\n}\nfunction getScrollLeft(element, rtl) {\n    var scrollLeft = element.scrollLeft;\n    if (rtl) {\n        // Absolute value - for FF that reports RTL scrolls in negative numbers\n        scrollLeft = Math.abs(scrollLeft);\n        if (isBrowserChrome() && !isRtlNegativeScroll()) {\n            scrollLeft = element.scrollWidth - element.clientWidth - scrollLeft;\n        }\n    }\n    return scrollLeft;\n}\nfunction setScrollLeft(element, value, rtl) {\n    if (rtl) {\n        // Chrome and Safari when doing RTL have the END position of the scroll as zero, not the start\n        if (isRtlNegativeScroll()) {\n            value *= -1;\n        }\n        else if (isBrowserSafari() || isBrowserChrome()) {\n            value = element.scrollWidth - element.clientWidth - value;\n        }\n    }\n    element.scrollLeft = value;\n}\nfunction clearElement(el) {\n    while (el && el.firstChild) {\n        el.removeChild(el.firstChild);\n    }\n}\n/** @deprecated */\nfunction removeElement(parent, cssSelector) {\n    removeFromParent(parent.querySelector(cssSelector));\n}\nfunction removeFromParent(node) {\n    if (node && node.parentNode) {\n        node.parentNode.removeChild(node);\n    }\n}\nfunction isVisible(element) {\n    return element.offsetParent !== null;\n}\n/**\n * Loads the template and returns it as an element. makes up for no simple way in\n * the dom api to load html directly, eg we cannot do this: document.createElement(template)\n * @param {string} template\n * @returns {HTMLElement}\n */\nfunction loadTemplate(template) {\n    // we try the DOMParser first, as SalesForce doesn't like using innerHTML on a div\n    if (DOMParser !== null) {\n        var parser = new DOMParser();\n        var doc = parser.parseFromString(template, \"text/html\");\n        return doc.body.firstChild;\n    }\n    var tempDiv = document.createElement('div');\n    tempDiv.innerHTML = (template || '').trim();\n    return tempDiv.firstChild;\n}\nfunction appendHtml(eContainer, htmlTemplate) {\n    if (eContainer.lastChild) {\n        // https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML\n        // we put the items at the start, so new items appear underneath old items,\n        // so when expanding/collapsing groups, the new rows don't go on top of the\n        // rows below that are moving our of the way\n        eContainer.insertAdjacentHTML('afterbegin', htmlTemplate);\n    }\n    else {\n        eContainer.innerHTML = htmlTemplate;\n    }\n}\n/** @deprecated */\nfunction getElementAttribute(element, attributeName) {\n    if (element.attributes && element.attributes[attributeName]) {\n        var attribute = element.attributes[attributeName];\n        return attribute.value;\n    }\n    return null;\n}\nfunction offsetHeight(element) {\n    return element && element.clientHeight ? element.clientHeight : 0;\n}\nfunction offsetWidth(element) {\n    return element && element.clientWidth ? element.clientWidth : 0;\n}\nfunction ensureDomOrder(eContainer, eChild, eChildBefore) {\n    // if already in right order, do nothing\n    if (eChildBefore && eChildBefore.nextSibling === eChild) {\n        return;\n    }\n    if (eChildBefore) {\n        if (eChildBefore.nextSibling) {\n            // insert between the eRowBefore and the row after it\n            eContainer.insertBefore(eChild, eChildBefore.nextSibling);\n        }\n        else {\n            // if nextSibling is missing, means other row is at end, so just append new row at the end\n            eContainer.appendChild(eChild);\n        }\n    }\n    else {\n        // otherwise put at start\n        if (eContainer.firstChild && eContainer.firstChild !== eChild) {\n            // insert it at the first location\n            eContainer.insertAdjacentElement('afterbegin', eChild);\n        }\n    }\n}\nfunction setDomChildOrder(eContainer, orderedChildren) {\n    for (var i = 0; i < orderedChildren.length; i++) {\n        var correctCellAtIndex = orderedChildren[i];\n        var actualCellAtIndex = eContainer.children[i];\n        if (actualCellAtIndex !== correctCellAtIndex) {\n            eContainer.insertBefore(correctCellAtIndex, actualCellAtIndex);\n        }\n    }\n}\nfunction insertWithDomOrder(eContainer, eToInsert, eChildBefore) {\n    if (eChildBefore) {\n        // if previous element exists, just slot in after the previous element\n        eChildBefore.insertAdjacentElement('afterend', eToInsert);\n    }\n    else {\n        if (eContainer.firstChild) {\n            // insert it at the first location\n            eContainer.insertAdjacentElement('afterbegin', eToInsert);\n        }\n        else {\n            // otherwise eContainer is empty, so just append it\n            eContainer.appendChild(eToInsert);\n        }\n    }\n}\n/** @deprecated */\nfunction prependDC(parent, documentFragment) {\n    if (exists(parent.firstChild)) {\n        parent.insertBefore(documentFragment, parent.firstChild);\n    }\n    else {\n        parent.appendChild(documentFragment);\n    }\n}\nfunction addStylesToElement(eElement, styles) {\n    if (!styles) {\n        return;\n    }\n    Object.keys(styles).forEach(function (key) {\n        var keyCamelCase = hyphenToCamelCase(key);\n        if (keyCamelCase) {\n            eElement.style[keyCamelCase] = styles[key];\n        }\n    });\n}\nfunction isHorizontalScrollShowing(element) {\n    return element.clientWidth < element.scrollWidth;\n}\nfunction isVerticalScrollShowing(element) {\n    return element.clientHeight < element.scrollHeight;\n}\nfunction setElementWidth(element, width) {\n    if (width === 'flex') {\n        element.style.removeProperty('width');\n        element.style.removeProperty('minWidth');\n        element.style.removeProperty('maxWidth');\n        element.style.flex = '1 1 auto';\n    }\n    else {\n        setFixedWidth(element, width);\n    }\n}\nfunction setFixedWidth(element, width) {\n    width = formatSize(width);\n    element.style.width = width.toString();\n    element.style.maxWidth = width.toString();\n    element.style.minWidth = width.toString();\n}\nfunction setElementHeight(element, height) {\n    if (height === 'flex') {\n        element.style.removeProperty('height');\n        element.style.removeProperty('minHeight');\n        element.style.removeProperty('maxHeight');\n        element.style.flex = '1 1 auto';\n    }\n    else {\n        setFixedHeight(element, height);\n    }\n}\nfunction setFixedHeight(element, height) {\n    height = formatSize(height);\n    element.style.height = height.toString();\n    element.style.maxHeight = height.toString();\n    element.style.minHeight = height.toString();\n}\nfunction formatSize(size) {\n    if (typeof size === 'number') {\n        return size + \"px\";\n    }\n    return size;\n}\n/**\n * Returns true if it is a DOM node\n * taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n * @param {any} o\n * @return {boolean}\n */\nfunction isNode(o) {\n    return (typeof Node === 'function'\n        ? o instanceof Node\n        : o && typeof o === 'object' && typeof o.nodeType === 'number' && typeof o.nodeName === 'string');\n}\n//\n/**\n * Returns true if it is a DOM element\n * taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n * @param {any} o\n * @returns {boolean}\n */\nfunction isElement(o) {\n    return (typeof HTMLElement === 'function'\n        ? o instanceof HTMLElement //DOM2\n        : o && isNonNullObject(o) && o.nodeType === 1 && typeof o.nodeName === 'string');\n}\nfunction isNodeOrElement(o) {\n    return isNode(o) || isElement(o);\n}\n/**\n * Makes a copy of a node list into a list\n * @param {NodeList} nodeList\n * @returns {Node[]}\n */\nfunction copyNodeList(nodeList) {\n    if (nodeList == null) {\n        return [];\n    }\n    var result = [];\n    nodeListForEach(nodeList, function (node) { return result.push(node); });\n    return result;\n}\nfunction iterateNamedNodeMap(map, callback) {\n    if (!map) {\n        return;\n    }\n    for (var i = 0; i < map.length; i++) {\n        var attr = map[i];\n        callback(attr.name, attr.value);\n    }\n}\n/** @deprecated */\nfunction setCheckboxState(eCheckbox, state) {\n    if (typeof state === 'boolean') {\n        eCheckbox.checked = state;\n        eCheckbox.indeterminate = false;\n    }\n    else {\n        // isNodeSelected returns back undefined if it's a group and the children\n        // are a mix of selected and unselected\n        eCheckbox.indeterminate = true;\n    }\n}\nfunction addOrRemoveAttribute(element, name, value) {\n    if (value == null) {\n        element.removeAttribute(name);\n    }\n    else {\n        element.setAttribute(name, value.toString());\n    }\n}\nfunction nodeListForEach(nodeList, action) {\n    if (nodeList == null) {\n        return;\n    }\n    for (var i = 0; i < nodeList.length; i++) {\n        action(nodeList[i]);\n    }\n}\n\nvar DomUtils = /*#__PURE__*/Object.freeze({\n    radioCssClass: radioCssClass,\n    isFocusableFormField: isFocusableFormField,\n    setDisplayed: setDisplayed,\n    setVisible: setVisible,\n    setDisabled: setDisabled,\n    isElementChildOfClass: isElementChildOfClass,\n    getElementSize: getElementSize,\n    getInnerHeight: getInnerHeight,\n    getInnerWidth: getInnerWidth,\n    getAbsoluteHeight: getAbsoluteHeight,\n    getAbsoluteWidth: getAbsoluteWidth,\n    isRtlNegativeScroll: isRtlNegativeScroll,\n    getScrollLeft: getScrollLeft,\n    setScrollLeft: setScrollLeft,\n    clearElement: clearElement,\n    removeElement: removeElement,\n    removeFromParent: removeFromParent,\n    isVisible: isVisible,\n    loadTemplate: loadTemplate,\n    appendHtml: appendHtml,\n    getElementAttribute: getElementAttribute,\n    offsetHeight: offsetHeight,\n    offsetWidth: offsetWidth,\n    ensureDomOrder: ensureDomOrder,\n    setDomChildOrder: setDomChildOrder,\n    insertWithDomOrder: insertWithDomOrder,\n    prependDC: prependDC,\n    addStylesToElement: addStylesToElement,\n    isHorizontalScrollShowing: isHorizontalScrollShowing,\n    isVerticalScrollShowing: isVerticalScrollShowing,\n    setElementWidth: setElementWidth,\n    setFixedWidth: setFixedWidth,\n    setElementHeight: setElementHeight,\n    setFixedHeight: setFixedHeight,\n    formatSize: formatSize,\n    isNode: isNode,\n    isElement: isElement,\n    isNodeOrElement: isNodeOrElement,\n    copyNodeList: copyNodeList,\n    iterateNamedNodeMap: iterateNamedNodeMap,\n    setCheckboxState: setCheckboxState,\n    addOrRemoveAttribute: addOrRemoveAttribute,\n    nodeListForEach: nodeListForEach\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/** @deprecated */\nfunction getNameOfClass(theClass) {\n    var funcNameRegex = /function (.{1,})\\(/;\n    var funcAsString = theClass.toString();\n    var results = funcNameRegex.exec(funcAsString);\n    return results && results.length > 1 ? results[1] : \"\";\n}\nfunction findLineByLeastSquares(values) {\n    var len = values.length;\n    var maxDecimals = 0;\n    if (len <= 1) {\n        return values;\n    }\n    for (var i = 0; i < values.length; i++) {\n        var value = values[i];\n        var splitExponent = value.toString().split('e-');\n        if (splitExponent.length > 1) {\n            maxDecimals = Math.max(maxDecimals, parseInt(splitExponent[1], 10));\n            continue;\n        }\n        if (Math.floor(value) === value) {\n            continue;\n        }\n        maxDecimals = Math.max(maxDecimals, value.toString().split('.')[1].length);\n    }\n    var sum_x = 0;\n    var sum_y = 0;\n    var sum_xy = 0;\n    var sum_xx = 0;\n    var y = 0;\n    for (var x = 0; x < len; x++) {\n        y = values[x];\n        sum_x += x;\n        sum_y += y;\n        sum_xx += x * x;\n        sum_xy += x * y;\n    }\n    var m = (len * sum_xy - sum_x * sum_y) / (len * sum_xx - sum_x * sum_x);\n    var b = (sum_y / len) - (m * sum_x) / len;\n    var result = [];\n    for (var x = 0; x <= len; x++) {\n        result.push(parseFloat((x * m + b).toFixed(maxDecimals)));\n    }\n    return result;\n}\n/**\n * Converts a CSS object into string\n * @param {Object} stylesToUse an object eg: {color: 'black', top: '25px'}\n * @return {string} A string like \"color: black; top: 25px;\" for html\n */\nfunction cssStyleObjectToMarkup(stylesToUse) {\n    if (!stylesToUse) {\n        return '';\n    }\n    var resParts = [];\n    iterateObject(stylesToUse, function (styleKey, styleValue) {\n        var styleKeyDashed = camelCaseToHyphen(styleKey);\n        resParts.push(styleKeyDashed + \": \" + styleValue + \";\");\n    });\n    return resParts.join(' ');\n}\n/**\n * Displays a message to the browser. this is useful in iPad, where you can't easily see the console.\n * so the javascript code can use this to give feedback. this is NOT intended to be called in production.\n * it is intended the AG Grid developer calls this to troubleshoot, but then takes out the calls before\n * checking in.\n * @param {string} msg\n */\nfunction message(msg) {\n    var eMessage = document.createElement('div');\n    var eBox = document.querySelector('#__ag__message');\n    eMessage.innerHTML = msg;\n    if (!eBox) {\n        var template = \"<div id=\\\"__ag__message\\\" style=\\\"display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;\\\"></div>\";\n        eBox = loadTemplate(template);\n        if (document.body) {\n            document.body.appendChild(eBox);\n        }\n    }\n    eBox.insertBefore(eMessage, eBox.children[0]);\n}\n/**\n * cell renderers are used in a few places. they bind to dom slightly differently to other cell renderes as they\n * can return back strings (instead of html elemnt) in the getGui() method. common code placed here to handle that.\n * @param {AgPromise<ICellRendererComp>} cellRendererPromise\n * @param {HTMLElement} eTarget\n */\nfunction bindCellRendererToHtmlElement(cellRendererPromise, eTarget) {\n    cellRendererPromise.then(function (cellRenderer) {\n        var gui = cellRenderer.getGui();\n        if (gui != null) {\n            if (typeof gui === 'object') {\n                eTarget.appendChild(gui);\n            }\n            else {\n                eTarget.innerHTML = gui;\n            }\n        }\n    });\n}\n\nvar GeneralUtils = /*#__PURE__*/Object.freeze({\n    getNameOfClass: getNameOfClass,\n    findLineByLeastSquares: findLineByLeastSquares,\n    cssStyleObjectToMarkup: cssStyleObjectToMarkup,\n    message: message,\n    bindCellRendererToHtmlElement: bindCellRendererToHtmlElement\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// ARIA HELPER FUNCTIONS\nfunction setAriaAttribute(element, attribute, value) {\n    element.setAttribute(ariaAttributeName(attribute), value.toString());\n}\nfunction removeAriaAttribute(element, attribute) {\n    element.removeAttribute(ariaAttributeName(attribute));\n}\nfunction ariaAttributeName(attribute) {\n    return \"aria-\" + attribute;\n}\nfunction setAriaRole(element, role) {\n    if (role) {\n        element.setAttribute('role', role);\n    }\n    else {\n        element.removeAttribute('role');\n    }\n}\nfunction getAriaSortState(column) {\n    var sort;\n    if (column.isSortAscending()) {\n        sort = 'ascending';\n    }\n    else if (column.isSortDescending()) {\n        sort = 'descending';\n    }\n    else {\n        sort = 'none';\n    }\n    return sort;\n}\n// ARIA ATTRIBUTE GETTERS\nfunction getAriaLevel(element) {\n    return parseInt(element.getAttribute('aria-level'), 10);\n}\nfunction getAriaPosInSet(element) {\n    return parseInt(element.getAttribute('aria-posinset'), 10);\n}\nfunction getAriaDescribedBy(element) {\n    return element.getAttribute('aria-describedby') || '';\n}\n// ARIA ATTRIBUTE SETTERS\nfunction setAriaLabel(element, label) {\n    var key = 'label';\n    if (label) {\n        setAriaAttribute(element, key, label);\n    }\n    else {\n        removeAriaAttribute(element, key);\n    }\n}\nfunction setAriaLabelledBy(element, labelledBy) {\n    var key = 'labelledby';\n    if (labelledBy) {\n        setAriaAttribute(element, key, labelledBy);\n    }\n    else {\n        removeAriaAttribute(element, key);\n    }\n}\nfunction setAriaDescription(element, description) {\n    var key = 'description';\n    if (description) {\n        setAriaAttribute(element, key, description);\n    }\n    else {\n        removeAriaAttribute(element, key);\n    }\n}\nfunction setAriaDescribedBy(element, describedby) {\n    var key = 'describedby';\n    if (describedby) {\n        setAriaAttribute(element, key, describedby);\n    }\n    else {\n        removeAriaAttribute(element, key);\n    }\n}\nfunction setAriaLevel(element, level) {\n    setAriaAttribute(element, 'level', level);\n}\nfunction setAriaDisabled(element, disabled) {\n    setAriaAttribute(element, 'disabled', disabled);\n}\nfunction setAriaExpanded(element, expanded) {\n    setAriaAttribute(element, 'expanded', expanded);\n}\nfunction removeAriaExpanded(element) {\n    removeAriaAttribute(element, 'expanded');\n}\nfunction setAriaSetSize(element, setsize) {\n    setAriaAttribute(element, 'setsize', setsize);\n}\nfunction setAriaPosInSet(element, position) {\n    setAriaAttribute(element, 'posinset', position);\n}\nfunction setAriaMultiSelectable(element, multiSelectable) {\n    setAriaAttribute(element, 'multiselectable', multiSelectable);\n}\nfunction setAriaRowCount(element, rowCount) {\n    setAriaAttribute(element, 'rowcount', rowCount);\n}\nfunction setAriaRowIndex(element, rowIndex) {\n    setAriaAttribute(element, 'rowindex', rowIndex);\n}\nfunction setAriaColCount(element, colCount) {\n    setAriaAttribute(element, 'colcount', colCount);\n}\nfunction setAriaColIndex(element, colIndex) {\n    setAriaAttribute(element, 'colindex', colIndex);\n}\nfunction setAriaColSpan(element, colSpan) {\n    setAriaAttribute(element, 'colspan', colSpan);\n}\nfunction setAriaSort(element, sort) {\n    setAriaAttribute(element, 'sort', sort);\n}\nfunction removeAriaSort(element) {\n    removeAriaAttribute(element, 'sort');\n}\nfunction setAriaSelected(element, selected) {\n    var attributeName = 'selected';\n    if (selected) {\n        setAriaAttribute(element, attributeName, selected);\n    }\n    else {\n        removeAriaAttribute(element, attributeName);\n    }\n}\nfunction setAriaChecked(element, checked) {\n    setAriaAttribute(element, 'checked', checked === undefined ? 'mixed' : checked);\n}\n\nvar AriaUtils = /*#__PURE__*/Object.freeze({\n    setAriaRole: setAriaRole,\n    getAriaSortState: getAriaSortState,\n    getAriaLevel: getAriaLevel,\n    getAriaPosInSet: getAriaPosInSet,\n    getAriaDescribedBy: getAriaDescribedBy,\n    setAriaLabel: setAriaLabel,\n    setAriaLabelledBy: setAriaLabelledBy,\n    setAriaDescription: setAriaDescription,\n    setAriaDescribedBy: setAriaDescribedBy,\n    setAriaLevel: setAriaLevel,\n    setAriaDisabled: setAriaDisabled,\n    setAriaExpanded: setAriaExpanded,\n    removeAriaExpanded: removeAriaExpanded,\n    setAriaSetSize: setAriaSetSize,\n    setAriaPosInSet: setAriaPosInSet,\n    setAriaMultiSelectable: setAriaMultiSelectable,\n    setAriaRowCount: setAriaRowCount,\n    setAriaRowIndex: setAriaRowIndex,\n    setAriaColCount: setAriaColCount,\n    setAriaColIndex: setAriaColIndex,\n    setAriaColSpan: setAriaColSpan,\n    setAriaSort: setAriaSort,\n    removeAriaSort: removeAriaSort,\n    setAriaSelected: setAriaSelected,\n    setAriaChecked: setAriaChecked\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction padStartWidthZeros(value, totalStringSize) {\n    return value.toString().padStart(totalStringSize, '0');\n}\nfunction createArrayOfNumbers(first, last) {\n    var result = [];\n    for (var i = first; i <= last; i++) {\n        result.push(i);\n    }\n    return result;\n}\n/**\n * Check if a value is numeric\n * from http://stackoverflow.com/questions/9716468/is-there-any-function-like-isnumeric-in-javascript-to-validate-numbers\n * @param {any} value\n * @return {boolean}\n */\nfunction isNumeric(value) {\n    return value !== '' && !isNaN(parseFloat(value)) && isFinite(value);\n}\nfunction cleanNumber(value) {\n    if (typeof value === 'string') {\n        value = parseInt(value, 10);\n    }\n    if (typeof value === 'number') {\n        return Math.floor(value);\n    }\n    return null;\n}\nfunction decToHex(number, bytes) {\n    var hex = '';\n    for (var i = 0; i < bytes; i++) {\n        hex += String.fromCharCode(number & 0xff);\n        number >>>= 8;\n    }\n    return hex;\n}\nfunction formatNumberTwoDecimalPlacesAndCommas(value, thousandSeparator, decimalSeparator) {\n    if (typeof value !== 'number') {\n        return '';\n    }\n    return formatNumberCommas(Math.round(value * 100) / 100, thousandSeparator, decimalSeparator);\n}\n/**\n * the native method number.toLocaleString(undefined, {minimumFractionDigits: 0})\n * puts in decimal places in IE, so we use this method instead\n * from: http://blog.tompawlak.org/number-currency-formatting-javascript\n * @param {number} value\n * @returns {string}\n */\nfunction formatNumberCommas(value, thousandSeparator, decimalSeparator) {\n    if (typeof value !== 'number') {\n        return '';\n    }\n    return value.toString().replace('.', decimalSeparator).replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1\" + thousandSeparator);\n}\nfunction sum(values) {\n    return values == null ? null : values.reduce(function (total, value) { return total + value; }, 0);\n}\n\nvar NumberUtils = /*#__PURE__*/Object.freeze({\n    padStartWidthZeros: padStartWidthZeros,\n    createArrayOfNumbers: createArrayOfNumbers,\n    isNumeric: isNumeric,\n    cleanNumber: cleanNumber,\n    decToHex: decToHex,\n    formatNumberTwoDecimalPlacesAndCommas: formatNumberTwoDecimalPlacesAndCommas,\n    formatNumberCommas: formatNumberCommas,\n    sum: sum\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$5 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\n/**\n * Serialises a Date to a string of format `yyyy-MM-dd HH:mm:ss`.\n * An alternative separator can be provided to be used instead of hyphens.\n * @param date The date to serialise\n * @param includeTime Whether to include the time in the serialised string\n * @param separator The separator to use between date parts\n */\nfunction serialiseDate(date, includeTime, separator) {\n    if (includeTime === void 0) { includeTime = true; }\n    if (separator === void 0) { separator = '-'; }\n    if (!date) {\n        return null;\n    }\n    var serialised = [date.getFullYear(), date.getMonth() + 1, date.getDate()].map(function (part) { return padStartWidthZeros(part, 2); }).join(separator);\n    if (includeTime) {\n        serialised += ' ' + [date.getHours(), date.getMinutes(), date.getSeconds()].map(function (part) { return padStartWidthZeros(part, 2); }).join(':');\n    }\n    return serialised;\n}\n/**\n * Parses a date and time from a string in the format `yyyy-MM-dd HH:mm:ss`\n */\nfunction parseDateTimeFromString(value) {\n    if (!value) {\n        return null;\n    }\n    var _a = __read$5(value.split(' '), 2), dateStr = _a[0], timeStr = _a[1];\n    if (!dateStr) {\n        return null;\n    }\n    var fields = dateStr.split('-').map(function (f) { return parseInt(f, 10); });\n    if (fields.filter(function (f) { return !isNaN(f); }).length !== 3) {\n        return null;\n    }\n    var _b = __read$5(fields, 3), year = _b[0], month = _b[1], day = _b[2];\n    var date = new Date(year, month - 1, day);\n    if (date.getFullYear() !== year ||\n        date.getMonth() !== month - 1 ||\n        date.getDate() !== day) {\n        // date was not parsed as expected so must have been invalid\n        return null;\n    }\n    if (!timeStr || timeStr === '00:00:00') {\n        return date;\n    }\n    var _c = __read$5(timeStr.split(':').map(function (part) { return parseInt(part, 10); }), 3), hours = _c[0], minutes = _c[1], seconds = _c[2];\n    if (hours >= 0 && hours < 24) {\n        date.setHours(hours);\n    }\n    if (minutes >= 0 && minutes < 60) {\n        date.setMinutes(minutes);\n    }\n    if (seconds >= 0 && seconds < 60) {\n        date.setSeconds(seconds);\n    }\n    return date;\n}\n\nvar DateUtils = /*#__PURE__*/Object.freeze({\n    serialiseDate: serialiseDate,\n    parseDateTimeFromString: parseDateTimeFromString\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction fuzzyCheckStrings(inputValues, validValues, allSuggestions) {\n    var fuzzyMatches = {};\n    var invalidInputs = inputValues.filter(function (inputValue) {\n        return !validValues.some(function (validValue) { return validValue === inputValue; });\n    });\n    if (invalidInputs.length > 0) {\n        invalidInputs.forEach(function (invalidInput) {\n            return fuzzyMatches[invalidInput] = fuzzySuggestions(invalidInput, allSuggestions);\n        });\n    }\n    return fuzzyMatches;\n}\n/**\n *\n * @param {String} inputValue The value to be compared against a list of strings\n * @param allSuggestions The list of strings to be compared against\n * @param hideIrrelevant By default, fuzzy suggestions will just sort the allSuggestions list, set this to true\n *        to filter out the irrelevant values\n * @param weighted Set this to true, to make letters matched in the order they were typed have priority in the results.\n */\nfunction fuzzySuggestions(inputValue, allSuggestions, hideIrrelevant, weighted) {\n    var search = weighted ? string_weighted_distances : string_distances;\n    var thisSuggestions = allSuggestions.map(function (text) { return ({\n        value: text,\n        relevance: search(inputValue.toLowerCase(), text.toLocaleLowerCase())\n    }); });\n    thisSuggestions.sort(function (a, b) { return b.relevance - a.relevance; });\n    if (hideIrrelevant) {\n        thisSuggestions = thisSuggestions.filter(function (suggestion) { return suggestion.relevance !== 0; });\n    }\n    return thisSuggestions.map(function (suggestion) { return suggestion.value; });\n}\n/**\n * Algorithm to do fuzzy search\n * from https://stackoverflow.com/questions/23305000/javascript-fuzzy-search-that-makes-sense\n * @param {string} from\n * @return {[]}\n */\nfunction get_bigrams(from) {\n    var s = from.toLowerCase();\n    var v = new Array(s.length - 1);\n    var i;\n    var j;\n    var ref;\n    for (i = j = 0, ref = v.length; j <= ref; i = j += 1) {\n        v[i] = s.slice(i, i + 2);\n    }\n    return v;\n}\nfunction string_distances(str1, str2) {\n    if (str1.length === 0 && str2.length === 0) {\n        return 0;\n    }\n    var pairs1 = get_bigrams(str1);\n    var pairs2 = get_bigrams(str2);\n    var union = pairs1.length + pairs2.length;\n    var hit_count = 0;\n    var j;\n    var len;\n    for (j = 0, len = pairs1.length; j < len; j++) {\n        var x = pairs1[j];\n        var k = void 0;\n        var len1 = void 0;\n        for (k = 0, len1 = pairs2.length; k < len1; k++) {\n            var y = pairs2[k];\n            if (x === y) {\n                hit_count++;\n            }\n        }\n    }\n    return hit_count > 0 ? (2 * hit_count) / union : 0;\n}\nfunction string_weighted_distances(str1, str2) {\n    var a = str1.replace(/\\s/g, '');\n    var b = str2.replace(/\\s/g, '');\n    var weight = 0;\n    var lastIndex = 0;\n    for (var i = 0; i < a.length; i++) {\n        var idx = b.indexOf(a[i], lastIndex);\n        if (idx === -1) {\n            continue;\n        }\n        lastIndex = idx;\n        weight += (100 - (lastIndex * 100 / 10000) * 100);\n    }\n    return weight;\n}\n\nvar FuzzyMatchUtils = /*#__PURE__*/Object.freeze({\n    fuzzyCheckStrings: fuzzyCheckStrings,\n    fuzzySuggestions: fuzzySuggestions,\n    get_bigrams: get_bigrams,\n    string_distances: string_distances,\n    string_weighted_distances: string_weighted_distances\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n//\n// IMPORTANT NOTE!\n//\n// If you change the list below, copy/paste the new content into the docs page javascript-grid-icons\n//\nvar iconNameClassMap = {\n    // header column group shown when expanded (click to contract)\n    columnGroupOpened: 'expanded',\n    // header column group shown when contracted (click to expand)\n    columnGroupClosed: 'contracted',\n    // tool panel column group contracted (click to expand)\n    columnSelectClosed: 'tree-closed',\n    // tool panel column group expanded (click to contract)\n    columnSelectOpen: 'tree-open',\n    // column tool panel header expand/collapse all button, shown when some children are expanded and\n    //     others are collapsed\n    columnSelectIndeterminate: 'tree-indeterminate',\n    // shown on ghost icon while dragging column to the side of the grid to pin\n    columnMovePin: 'pin',\n    // shown on ghost icon while dragging over part of the page that is not a drop zone\n    columnMoveHide: 'eye-slash',\n    // shown on ghost icon while dragging columns to reorder\n    columnMoveMove: 'arrows',\n    // animating icon shown when dragging a column to the right of the grid causes horizontal scrolling\n    columnMoveLeft: 'left',\n    // animating icon shown when dragging a column to the left of the grid causes horizontal scrolling\n    columnMoveRight: 'right',\n    // shown on ghost icon while dragging over Row Groups drop zone\n    columnMoveGroup: 'group',\n    // shown on ghost icon while dragging over Values drop zone\n    columnMoveValue: 'aggregation',\n    // shown on ghost icon while dragging over pivot drop zone\n    columnMovePivot: 'pivot',\n    // shown on ghost icon while dragging over drop zone that doesn't support it, e.g.\n    //     string column over aggregation drop zone\n    dropNotAllowed: 'not-allowed',\n    // shown on row group when contracted (click to expand)\n    groupContracted: 'tree-closed',\n    // shown on row group when expanded (click to contract)\n    groupExpanded: 'tree-open',\n    // context menu chart item\n    chart: 'chart',\n    // chart window title bar\n    close: 'cross',\n    // X (remove) on column 'pill' after adding it to a drop zone list\n    cancel: 'cancel',\n    // indicates the currently active pin state in the \"Pin column\" sub-menu of the column menu\n    check: 'tick',\n    // \"go to first\" button in pagination controls\n    first: 'first',\n    // \"go to previous\" button in pagination controls\n    previous: 'previous',\n    // \"go to next\" button in pagination controls\n    next: 'next',\n    // \"go to last\" button in pagination controls\n    last: 'last',\n    // shown on top right of chart when chart is linked to range data (click to unlink)\n    linked: 'linked',\n    // shown on top right of chart when chart is not linked to range data (click to link)\n    unlinked: 'unlinked',\n    // \"Choose colour\" button on chart settings tab\n    colorPicker: 'color-picker',\n    // rotating spinner shown by the loading cell renderer\n    groupLoading: 'loading',\n    // button to launch enterprise column menu\n    menu: 'menu',\n    // filter tool panel tab\n    filter: 'filter',\n    // column tool panel tab\n    columns: 'columns',\n    // button in chart regular size window title bar (click to maximise)\n    maximize: 'maximize',\n    // button in chart maximised window title bar (click to make regular size)\n    minimize: 'minimize',\n    // \"Pin column\" item in column header menu\n    menuPin: 'pin',\n    // \"Value aggregation\" column menu item (shown on numeric columns when grouping is active)\"\n    menuValue: 'aggregation',\n    // \"Group by {column-name}\" item in column header menu\n    menuAddRowGroup: 'group',\n    // \"Un-Group by {column-name}\" item in column header menu\n    menuRemoveRowGroup: 'group',\n    // context menu copy item\n    clipboardCopy: 'copy',\n    // context menu paste item\n    clipboardPaste: 'paste',\n    // identifies the pivot drop zone\n    pivotPanel: 'pivot',\n    // \"Row groups\" drop zone in column tool panel\n    rowGroupPanel: 'group',\n    // columns tool panel Values drop zone\n    valuePanel: 'aggregation',\n    // drag handle used to pick up draggable columns\n    columnDrag: 'grip',\n    // drag handle used to pick up draggable rows\n    rowDrag: 'grip',\n    // context menu export item\n    save: 'save',\n    // csv export\n    csvExport: 'csv',\n    // excel export,\n    excelExport: 'excel',\n    // icon on dropdown editors\n    smallDown: 'small-down',\n    // version of small-right used in RTL mode\n    smallLeft: 'small-left',\n    // separater between column 'pills' when you add multiple columns to the header drop zone\n    smallRight: 'small-right',\n    smallUp: 'small-up',\n    // show on column header when column is sorted ascending\n    sortAscending: 'asc',\n    // show on column header when column is sorted descending\n    sortDescending: 'desc',\n    // show on column header when column has no sort, only when enabled with gridOptions.unSortIcon=true\n    sortUnSort: 'none'\n};\n/**\n * If icon provided, use this (either a string, or a function callback).\n * if not, then use the default icon from the theme\n * @param {string} iconName\n * @param {GridOptionsWrapper} gridOptionsWrapper\n * @param {Column | null} [column]\n * @returns {HTMLElement}\n */\nfunction createIcon(iconName, gridOptionsWrapper, column) {\n    var iconContents = createIconNoSpan(iconName, gridOptionsWrapper, column);\n    if (iconContents && iconContents.className.indexOf('ag-icon') > -1) {\n        return iconContents;\n    }\n    var eResult = document.createElement('span');\n    eResult.appendChild(iconContents);\n    return eResult;\n}\nfunction createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {\n    var userProvidedIcon = null;\n    // check col for icon first\n    var icons = column && column.getColDef().icons;\n    if (icons) {\n        userProvidedIcon = icons[iconName];\n    }\n    // if not in col, try grid options\n    if (gridOptionsWrapper && !userProvidedIcon) {\n        var optionsIcons = gridOptionsWrapper.getIcons();\n        if (optionsIcons) {\n            userProvidedIcon = optionsIcons[iconName];\n        }\n    }\n    // now if user provided, use it\n    if (userProvidedIcon) {\n        var rendererResult = void 0;\n        if (typeof userProvidedIcon === 'function') {\n            rendererResult = userProvidedIcon();\n        }\n        else if (typeof userProvidedIcon === 'string') {\n            rendererResult = userProvidedIcon;\n        }\n        else {\n            throw new Error('icon from grid options needs to be a string or a function');\n        }\n        if (typeof rendererResult === 'string') {\n            return loadTemplate(rendererResult);\n        }\n        if (isNodeOrElement(rendererResult)) {\n            return rendererResult;\n        }\n        console.warn('AG Grid: iconRenderer should return back a string or a dom object');\n    }\n    else {\n        var span = document.createElement('span');\n        var cssClass = iconNameClassMap[iconName];\n        if (!cssClass) {\n            if (!forceCreate) {\n                console.warn(\"AG Grid: Did not find icon \" + iconName);\n                cssClass = '';\n            }\n            else {\n                cssClass = iconName;\n            }\n        }\n        span.setAttribute('class', \"ag-icon ag-icon-\" + cssClass);\n        span.setAttribute('unselectable', 'on');\n        setAriaRole(span, 'presentation');\n        return span;\n    }\n}\n\nvar IconUtils = /*#__PURE__*/Object.freeze({\n    iconNameClassMap: iconNameClassMap,\n    createIcon: createIcon,\n    createIconNoSpan: createIconNoSpan\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar NUMPAD_DEL_NUMLOCK_ON_KEY = 'Del';\nvar NUMPAD_DEL_NUMLOCK_ON_CHARCODE = 46;\nfunction isEventFromPrintableCharacter(event) {\n    // no allowed printable chars have alt or ctrl key combinations\n    if (event.altKey || event.ctrlKey || event.metaKey) {\n        return false;\n    }\n    // if key is length 1, eg if it is 'a' for the a key, or '2' for the '2' key.\n    // non-printable characters have names, eg 'Enter' or 'Backspace'.\n    var printableCharacter = event.key.length === 1;\n    // IE11 & Edge treat the numpad del key differently - with numlock on we get \"Del\" for key,\n    // so this addition checks if its IE11/Edge and handles that specific case the same was as all other browsers\n    var numpadDelWithNumlockOnForEdgeOrIe = isNumpadDelWithNumLockOnForEdge(event);\n    return printableCharacter || numpadDelWithNumlockOnForEdgeOrIe;\n}\n/**\n * Allows user to tell the grid to skip specific keyboard events\n * @param {GridOptionsWrapper} gridOptionsWrapper\n * @param {KeyboardEvent} keyboardEvent\n * @param {RowNode} rowNode\n * @param {Column} column\n * @param {boolean} editing\n * @returns {boolean}\n */\nfunction isUserSuppressingKeyboardEvent(gridOptionsWrapper, keyboardEvent, rowNode, column, editing) {\n    var gridOptionsFunc = gridOptionsWrapper.getSuppressKeyboardEventFunc();\n    var colDefFunc = column ? column.getColDef().suppressKeyboardEvent : undefined;\n    // if no callbacks provided by user, then do nothing\n    if (!gridOptionsFunc && !colDefFunc) {\n        return false;\n    }\n    var params = {\n        event: keyboardEvent,\n        editing: editing,\n        column: column,\n        api: gridOptionsWrapper.getApi(),\n        node: rowNode,\n        data: rowNode.data,\n        colDef: column.getColDef(),\n        context: gridOptionsWrapper.getContext(),\n        columnApi: gridOptionsWrapper.getColumnApi()\n    };\n    // colDef get first preference on suppressing events\n    if (colDefFunc) {\n        var colDefFuncResult = colDefFunc(params);\n        // if colDef func suppressed, then return now, no need to call gridOption func\n        if (colDefFuncResult) {\n            return true;\n        }\n    }\n    if (gridOptionsFunc) {\n        // if gridOption func, return the result\n        return gridOptionsFunc(params);\n    }\n    // otherwise return false, don't suppress, as colDef didn't suppress and no func on gridOptions\n    return false;\n}\nfunction isUserSuppressingHeaderKeyboardEvent(gridOptionsWrapper, keyboardEvent, headerRowIndex, column) {\n    var colDef = column.getDefinition();\n    var colDefFunc = colDef && colDef.suppressHeaderKeyboardEvent;\n    if (!exists(colDefFunc)) {\n        return false;\n    }\n    var params = {\n        api: gridOptionsWrapper.getApi(),\n        columnApi: gridOptionsWrapper.getColumnApi(),\n        context: gridOptionsWrapper.getContext(),\n        colDef: colDef,\n        column: column,\n        headerRowIndex: headerRowIndex,\n        event: keyboardEvent\n    };\n    return !!colDefFunc(params);\n}\nfunction isNumpadDelWithNumLockOnForEdge(event) {\n    return (isBrowserEdge()) &&\n        event.key === NUMPAD_DEL_NUMLOCK_ON_KEY &&\n        event.charCode === NUMPAD_DEL_NUMLOCK_ON_CHARCODE;\n}\n\nvar KeyboardUtils = /*#__PURE__*/Object.freeze({\n    isEventFromPrintableCharacter: isEventFromPrintableCharacter,\n    isUserSuppressingKeyboardEvent: isUserSuppressingKeyboardEvent,\n    isUserSuppressingHeaderKeyboardEvent: isUserSuppressingHeaderKeyboardEvent\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/**\n * `True` if the event is close to the original event by X pixels either vertically or horizontally.\n * we only start dragging after X pixels so this allows us to know if we should start dragging yet.\n * @param {MouseEvent | TouchEvent} e1\n * @param {MouseEvent | TouchEvent} e2\n * @param {number} pixelCount\n * @returns {boolean}\n */\nfunction areEventsNear(e1, e2, pixelCount) {\n    // by default, we wait 4 pixels before starting the drag\n    if (pixelCount === 0) {\n        return false;\n    }\n    var diffX = Math.abs(e1.clientX - e2.clientX);\n    var diffY = Math.abs(e1.clientY - e2.clientY);\n    return Math.max(diffX, diffY) <= pixelCount;\n}\n\nvar MouseUtils = /*#__PURE__*/Object.freeze({\n    areEventsNear: areEventsNear\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/**\n * Gets called by: a) ClientSideNodeManager and b) GroupStage to do sorting.\n * when in ClientSideNodeManager we always have indexes (as this sorts the items the\n * user provided) but when in GroupStage, the nodes can contain filler nodes that\n * don't have order id's\n * @param {RowNode[]} rowNodes\n * @param {Object} rowNodeOrder\n */\nfunction sortRowNodesByOrder(rowNodes, rowNodeOrder) {\n    if (!rowNodes) {\n        return;\n    }\n    var comparator = function (nodeA, nodeB) {\n        var positionA = rowNodeOrder[nodeA.id];\n        var positionB = rowNodeOrder[nodeB.id];\n        var aHasIndex = positionA !== undefined;\n        var bHasIndex = positionB !== undefined;\n        var bothNodesAreUserNodes = aHasIndex && bHasIndex;\n        var bothNodesAreFillerNodes = !aHasIndex && !bHasIndex;\n        if (bothNodesAreUserNodes) {\n            // when comparing two nodes the user has provided, they always\n            // have indexes\n            return positionA - positionB;\n        }\n        if (bothNodesAreFillerNodes) {\n            // when comparing two filler nodes, we have no index to compare them\n            // against, however we want this sorting to be deterministic, so that\n            // the rows don't jump around as the user does delta updates. so we\n            // want the same sort result. so we use the __objectId - which doesn't make sense\n            // from a sorting point of view, but does give consistent behaviour between\n            // calls. otherwise groups jump around as delta updates are done.\n            // note: previously here we used nodeId, however this gave a strange order\n            // as string ordering of numbers is wrong, so using id based on creation order\n            // as least gives better looking order.\n            return nodeA.__objectId - nodeB.__objectId;\n        }\n        if (aHasIndex) {\n            return 1;\n        }\n        return -1;\n    };\n    // check if the list first needs sorting\n    var rowNodeA;\n    var rowNodeB;\n    var atLeastOneOutOfOrder = false;\n    for (var i = 0; i < rowNodes.length - 1; i++) {\n        rowNodeA = rowNodes[i];\n        rowNodeB = rowNodes[i + 1];\n        if (comparator(rowNodeA, rowNodeB) > 0) {\n            atLeastOneOutOfOrder = true;\n            break;\n        }\n    }\n    if (atLeastOneOutOfOrder) {\n        rowNodes.sort(comparator);\n    }\n}\nfunction traverseNodesWithKey(nodes, callback) {\n    var keyParts = [];\n    recursiveSearchNodes(nodes);\n    function recursiveSearchNodes(currentNodes) {\n        if (!currentNodes) {\n            return;\n        }\n        currentNodes.forEach(function (node) {\n            // also checking for children for tree data\n            if (node.group || node.hasChildren()) {\n                keyParts.push(node.key);\n                var key = keyParts.join('|');\n                callback(node, key);\n                recursiveSearchNodes(node.childrenAfterGroup);\n                keyParts.pop();\n            }\n        });\n    }\n}\n\nvar RowNodeUtils = /*#__PURE__*/Object.freeze({\n    sortRowNodesByOrder: sortRowNodesByOrder,\n    traverseNodesWithKey: traverseNodesWithKey\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction convertToSet(list) {\n    var set = new Set();\n    list.forEach(function (x) { return set.add(x); });\n    return set;\n}\n\nvar SetUtils = /*#__PURE__*/Object.freeze({\n    convertToSet: convertToSet\n});\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __assign$1 = (undefined && undefined.__assign) || function () {\n    __assign$1 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$1.apply(this, arguments);\n};\nvar utils = __assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1(__assign$1({}, GeneralUtils), AriaUtils), ArrayUtils), BrowserUtils), CsvUtils), DateUtils), DomUtils), EventUtils), FunctionUtils), FuzzyMatchUtils), GenericUtils), IconUtils), KeyboardUtils), MapUtils), MouseUtils), NumberUtils), ObjectUtils), RowNodeUtils), SetUtils), StringUtils);\nvar _ = utils;\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar NumberSequence = /** @class */ (function () {\n    function NumberSequence(initValue, step) {\n        if (initValue === void 0) { initValue = 0; }\n        if (step === void 0) { step = 1; }\n        this.nextValue = initValue;\n        this.step = step;\n    }\n    NumberSequence.prototype.next = function () {\n        var valToReturn = this.nextValue;\n        this.nextValue += this.step;\n        return valToReturn;\n    };\n    NumberSequence.prototype.peek = function () {\n        return this.nextValue;\n    };\n    NumberSequence.prototype.skip = function (count) {\n        this.nextValue += count;\n    };\n    return NumberSequence;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (AgPromiseStatus) {\n    AgPromiseStatus[AgPromiseStatus[\"IN_PROGRESS\"] = 0] = \"IN_PROGRESS\";\n    AgPromiseStatus[AgPromiseStatus[\"RESOLVED\"] = 1] = \"RESOLVED\";\n})(exports.AgPromiseStatus || (exports.AgPromiseStatus = {}));\nvar AgPromise = /** @class */ (function () {\n    function AgPromise(callback) {\n        var _this = this;\n        this.status = exports.AgPromiseStatus.IN_PROGRESS;\n        this.resolution = null;\n        this.waiters = [];\n        callback(function (value) { return _this.onDone(value); }, function (params) { return _this.onReject(params); });\n    }\n    AgPromise.all = function (promises) {\n        return new AgPromise(function (resolve) {\n            var remainingToResolve = promises.length;\n            var combinedValues = new Array(remainingToResolve);\n            promises.forEach(function (promise, index) {\n                promise.then(function (value) {\n                    combinedValues[index] = value;\n                    remainingToResolve--;\n                    if (remainingToResolve === 0) {\n                        resolve(combinedValues);\n                    }\n                });\n            });\n        });\n    };\n    AgPromise.resolve = function (value) {\n        if (value === void 0) { value = null; }\n        return new AgPromise(function (resolve) { return resolve(value); });\n    };\n    AgPromise.prototype.then = function (func) {\n        var _this = this;\n        return new AgPromise(function (resolve) {\n            if (_this.status === exports.AgPromiseStatus.RESOLVED) {\n                resolve(func(_this.resolution));\n            }\n            else {\n                _this.waiters.push(function (value) { return resolve(func(value)); });\n            }\n        });\n    };\n    AgPromise.prototype.resolveNow = function (ifNotResolvedValue, ifResolved) {\n        return this.status === exports.AgPromiseStatus.RESOLVED ? ifResolved(this.resolution) : ifNotResolvedValue;\n    };\n    AgPromise.prototype.onDone = function (value) {\n        this.status = exports.AgPromiseStatus.RESOLVED;\n        this.resolution = value;\n        this.waiters.forEach(function (waiter) { return waiter(value); });\n    };\n    AgPromise.prototype.onReject = function (params) {\n        console.warn('TBI');\n    };\n    return AgPromise;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/**\n * A Util Class only used when debugging for printing time to console\n */\nvar Timer = /** @class */ (function () {\n    function Timer() {\n        this.timestamp = new Date().getTime();\n    }\n    Timer.prototype.print = function (msg) {\n        var duration = (new Date().getTime()) - this.timestamp;\n        console.info(msg + \" = \" + duration);\n        this.timestamp = new Date().getTime();\n    };\n    return Timer;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$5 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$2 = (undefined && undefined.__assign) || function () {\n    __assign$2 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$2.apply(this, arguments);\n};\nvar __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TooltipStates;\n(function (TooltipStates) {\n    TooltipStates[TooltipStates[\"NOTHING\"] = 0] = \"NOTHING\";\n    TooltipStates[TooltipStates[\"WAITING_TO_SHOW\"] = 1] = \"WAITING_TO_SHOW\";\n    TooltipStates[TooltipStates[\"SHOWING\"] = 2] = \"SHOWING\";\n})(TooltipStates || (TooltipStates = {}));\nvar CustomTooltipFeature = /** @class */ (function (_super) {\n    __extends$5(CustomTooltipFeature, _super);\n    function CustomTooltipFeature(parentComp) {\n        var _this = _super.call(this) || this;\n        _this.DEFAULT_SHOW_TOOLTIP_DELAY = 2000;\n        _this.DEFAULT_HIDE_TOOLTIP_DELAY = 10000;\n        _this.SHOW_QUICK_TOOLTIP_DIFF = 1000;\n        _this.FADE_OUT_TOOLTIP_TIMEOUT = 1000;\n        _this.state = TooltipStates.NOTHING;\n        // when showing the tooltip, we need to make sure it's the most recent instance we request, as due to\n        // async we could request two tooltips before the first instance returns, in which case we should\n        // disregard the second instance.\n        _this.tooltipInstanceCount = 0;\n        _this.tooltipMouseTrack = false;\n        _this.parentComp = parentComp;\n        return _this;\n    }\n    CustomTooltipFeature.prototype.postConstruct = function () {\n        this.tooltipShowDelay = this.gridOptionsWrapper.getTooltipDelay('show') || this.DEFAULT_SHOW_TOOLTIP_DELAY;\n        this.tooltipHideDelay = this.gridOptionsWrapper.getTooltipDelay('hide') || this.DEFAULT_HIDE_TOOLTIP_DELAY;\n        this.tooltipMouseTrack = this.gridOptionsWrapper.isTooltipMouseTrack();\n        var el = this.parentComp.getGui();\n        this.addManagedListener(el, 'mouseenter', this.onMouseEnter.bind(this));\n        this.addManagedListener(el, 'mouseleave', this.onMouseLeave.bind(this));\n        this.addManagedListener(el, 'mousemove', this.onMouseMove.bind(this));\n        this.addManagedListener(el, 'mousedown', this.onMouseDown.bind(this));\n        this.addManagedListener(el, 'keydown', this.onKeyDown.bind(this));\n    };\n    CustomTooltipFeature.prototype.destroy = function () {\n        // if this component gets destroyed while tooltip is showing, need to make sure\n        // we don't end with no mouseLeave event resulting in zombie tooltip\n        this.setToDoNothing();\n        _super.prototype.destroy.call(this);\n    };\n    CustomTooltipFeature.prototype.onMouseEnter = function (e) {\n        if (isIOSUserAgent()) {\n            return;\n        }\n        // every mouseenter should be following by a mouseleave, however for some unkonwn, it's possible for\n        // mouseenter to be called twice in a row, which can happen if editing the cell. this was reported\n        // in https://ag-grid.atlassian.net/browse/AG-4422. to get around this, we check the state, and if\n        // state is !=nothing, then we know mouseenter was already received.\n        if (this.state != TooltipStates.NOTHING) {\n            return;\n        }\n        // if another tooltip was hidden very recently, we only wait 200ms to show, not the normal waiting time\n        var delay = this.isLastTooltipHiddenRecently() ? 200 : this.tooltipShowDelay;\n        this.showTooltipTimeoutId = window.setTimeout(this.showTooltip.bind(this), delay);\n        this.lastMouseEvent = e;\n        this.state = TooltipStates.WAITING_TO_SHOW;\n    };\n    CustomTooltipFeature.prototype.onMouseLeave = function () {\n        this.setToDoNothing();\n    };\n    CustomTooltipFeature.prototype.onKeyDown = function () {\n        this.setToDoNothing();\n    };\n    CustomTooltipFeature.prototype.setToDoNothing = function () {\n        if (this.state === TooltipStates.SHOWING) {\n            this.hideTooltip();\n        }\n        this.clearTimeouts();\n        this.state = TooltipStates.NOTHING;\n    };\n    CustomTooltipFeature.prototype.onMouseMove = function (e) {\n        // there is a delay from the time we mouseOver a component and the time the\n        // tooltip is displayed, so we need to track mousemove to be able to correctly\n        // position the tooltip when showTooltip is called.\n        this.lastMouseEvent = e;\n        if (this.tooltipMouseTrack &&\n            this.state === TooltipStates.SHOWING &&\n            this.tooltipComp) {\n            this.positionTooltipUnderLastMouseEvent();\n        }\n    };\n    CustomTooltipFeature.prototype.onMouseDown = function () {\n        this.setToDoNothing();\n    };\n    CustomTooltipFeature.prototype.hideTooltip = function () {\n        // check if comp exists - due to async, although we asked for\n        // one, the instance may not be back yet\n        if (this.tooltipComp) {\n            this.destroyTooltipComp();\n            CustomTooltipFeature.lastTooltipHideTime = new Date().getTime();\n        }\n        this.state = TooltipStates.NOTHING;\n    };\n    CustomTooltipFeature.prototype.destroyTooltipComp = function () {\n        var _this = this;\n        // add class to fade out the tooltip\n        this.tooltipComp.getGui().classList.add('ag-tooltip-hiding');\n        // make local copies of these variables, as we use them in the async function below,\n        // and we clear then to 'undefined' later, so need to take a copy before they are undefined.\n        var tooltipPopupDestroyFunc = this.tooltipPopupDestroyFunc;\n        var tooltipComp = this.tooltipComp;\n        window.setTimeout(function () {\n            tooltipPopupDestroyFunc();\n            _this.getContext().destroyBean(tooltipComp);\n        }, this.FADE_OUT_TOOLTIP_TIMEOUT);\n        this.tooltipPopupDestroyFunc = undefined;\n        this.tooltipComp = undefined;\n    };\n    CustomTooltipFeature.prototype.isLastTooltipHiddenRecently = function () {\n        // return true if <1000ms since last time we hid a tooltip\n        var now = new Date().getTime();\n        var then = CustomTooltipFeature.lastTooltipHideTime;\n        return (now - then) < this.SHOW_QUICK_TOOLTIP_DIFF;\n    };\n    CustomTooltipFeature.prototype.showTooltip = function () {\n        var params = __assign$2({}, this.parentComp.getTooltipParams());\n        if (!exists(params.value)) {\n            this.setToDoNothing();\n            return;\n        }\n        this.state = TooltipStates.SHOWING;\n        this.tooltipInstanceCount++;\n        // we pass in tooltipInstanceCount so the callback knows what the count was when\n        // we requested the tooltip, so if another tooltip was requested in the mean time\n        // we disregard it\n        var callback = this.newTooltipComponentCallback.bind(this, this.tooltipInstanceCount);\n        var userDetails = this.userComponentFactory.getTooltipCompDetails(params);\n        userDetails.newAgStackInstance().then(callback);\n    };\n    CustomTooltipFeature.prototype.newTooltipComponentCallback = function (tooltipInstanceCopy, tooltipComp) {\n        var compNoLongerNeeded = this.state !== TooltipStates.SHOWING || this.tooltipInstanceCount !== tooltipInstanceCopy;\n        if (compNoLongerNeeded) {\n            this.getContext().destroyBean(tooltipComp);\n            return;\n        }\n        var eGui = tooltipComp.getGui();\n        this.tooltipComp = tooltipComp;\n        if (!eGui.classList.contains('ag-tooltip')) {\n            eGui.classList.add('ag-tooltip-custom');\n        }\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = this.popupService.addPopup({\n            eChild: eGui,\n            ariaLabel: translate('ariaLabelTooltip', 'Tooltip')\n        });\n        if (addPopupRes) {\n            this.tooltipPopupDestroyFunc = addPopupRes.hideFunc;\n        }\n        // this.tooltipPopupDestroyFunc = this.popupService.addPopup(false, eGui, false);\n        this.positionTooltipUnderLastMouseEvent();\n        this.hideTooltipTimeoutId = window.setTimeout(this.hideTooltip.bind(this), this.tooltipHideDelay);\n    };\n    CustomTooltipFeature.prototype.positionTooltipUnderLastMouseEvent = function () {\n        this.popupService.positionPopupUnderMouseEvent({\n            type: 'tooltip',\n            mouseEvent: this.lastMouseEvent,\n            ePopup: this.tooltipComp.getGui(),\n            nudgeY: 18\n        });\n    };\n    CustomTooltipFeature.prototype.clearTimeouts = function () {\n        if (this.showTooltipTimeoutId) {\n            window.clearTimeout(this.showTooltipTimeoutId);\n            this.showTooltipTimeoutId = undefined;\n        }\n        if (this.hideTooltipTimeoutId) {\n            window.clearTimeout(this.hideTooltipTimeoutId);\n            this.hideTooltipTimeoutId = undefined;\n        }\n    };\n    __decorate$9([\n        Autowired('popupService')\n    ], CustomTooltipFeature.prototype, \"popupService\", void 0);\n    __decorate$9([\n        Autowired('userComponentFactory')\n    ], CustomTooltipFeature.prototype, \"userComponentFactory\", void 0);\n    __decorate$9([\n        Autowired('columnApi')\n    ], CustomTooltipFeature.prototype, \"columnApi\", void 0);\n    __decorate$9([\n        Autowired('gridApi')\n    ], CustomTooltipFeature.prototype, \"gridApi\", void 0);\n    __decorate$9([\n        PostConstruct\n    ], CustomTooltipFeature.prototype, \"postConstruct\", null);\n    return CustomTooltipFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$6 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar compIdSequence = new NumberSequence();\nvar CssClassManager = /** @class */ (function () {\n    function CssClassManager(getGui) {\n        // to minimise DOM hits, we only apply CSS classes if they have changed. as adding a CSS class that is already\n        // there, or removing one that wasn't present, all takes CPU.\n        this.cssClassStates = {};\n        this.getGui = getGui;\n    }\n    CssClassManager.prototype.addCssClass = function (className) {\n        var _this = this;\n        var list = (className || '').split(' ');\n        if (list.length > 1) {\n            list.forEach(function (cls) { return _this.addCssClass(cls); });\n            return;\n        }\n        var updateNeeded = this.cssClassStates[className] !== true;\n        if (updateNeeded && className.length) {\n            this.getGui().classList.add(className);\n            this.cssClassStates[className] = true;\n        }\n    };\n    CssClassManager.prototype.removeCssClass = function (className) {\n        var _this = this;\n        var list = (className || '').split(' ');\n        if (list.length > 1) {\n            list.forEach(function (cls) { return _this.removeCssClass(cls); });\n            return;\n        }\n        var updateNeeded = this.cssClassStates[className] !== false;\n        if (updateNeeded && className.length) {\n            this.getGui().classList.remove(className);\n            this.cssClassStates[className] = false;\n        }\n    };\n    CssClassManager.prototype.containsCssClass = function (className) {\n        return this.getGui().classList.contains(className);\n    };\n    CssClassManager.prototype.addOrRemoveCssClass = function (className, addOrRemove) {\n        var _this = this;\n        var list = (className || '').split(' ');\n        if (list.length > 1) {\n            list.forEach(function (cls) { return _this.addOrRemoveCssClass(cls, addOrRemove); });\n            return;\n        }\n        var updateNeeded = this.cssClassStates[className] !== addOrRemove;\n        if (updateNeeded && className.length) {\n            this.getGui().classList.toggle(className, addOrRemove);\n            this.cssClassStates[className] = addOrRemove;\n        }\n    };\n    return CssClassManager;\n}());\nvar Component = /** @class */ (function (_super) {\n    __extends$6(Component, _super);\n    function Component(template) {\n        var _this = _super.call(this) || this;\n        // if false, then CSS class \"ag-hidden\" is applied, which sets \"display: none\"\n        _this.displayed = true;\n        // if false, then CSS class \"ag-invisible\" is applied, which sets \"visibility: hidden\"\n        _this.visible = true;\n        // unique id for this row component. this is used for getting a reference to the HTML dom.\n        // we cannot use the RowNode id as this is not unique (due to animation, old rows can be lying\n        // around as we create a new rowComp instance for the same row node).\n        _this.compId = compIdSequence.next();\n        _this.cssClassManager = new CssClassManager(function () { return _this.eGui; });\n        if (template) {\n            _this.setTemplate(template);\n        }\n        return _this;\n    }\n    Component.prototype.preConstructOnComponent = function () {\n        this.usingBrowserTooltips = this.gridOptionsWrapper.isEnableBrowserTooltips();\n    };\n    Component.prototype.getCompId = function () {\n        return this.compId;\n    };\n    Component.prototype.getTooltipParams = function () {\n        return {\n            value: this.tooltipText,\n            location: 'UNKNOWN'\n        };\n    };\n    Component.prototype.setTooltip = function (newTooltipText) {\n        var _this = this;\n        var removeTooltip = function () {\n            if (_this.usingBrowserTooltips) {\n                _this.getGui().removeAttribute('title');\n            }\n            else {\n                _this.tooltipFeature = _this.destroyBean(_this.tooltipFeature);\n            }\n        };\n        var addTooltip = function () {\n            if (_this.usingBrowserTooltips) {\n                _this.getGui().setAttribute('title', _this.tooltipText);\n            }\n            else {\n                _this.tooltipFeature = _this.createBean(new CustomTooltipFeature(_this));\n            }\n        };\n        if (this.tooltipText != newTooltipText) {\n            if (this.tooltipText) {\n                removeTooltip();\n            }\n            if (newTooltipText != null) {\n                this.tooltipText = newTooltipText;\n                if (this.tooltipText) {\n                    addTooltip();\n                }\n            }\n        }\n    };\n    // for registered components only, eg creates AgCheckbox instance from ag-checkbox HTML tag\n    Component.prototype.createChildComponentsFromTags = function (parentNode, paramsMap) {\n        var _this = this;\n        // we MUST take a copy of the list first, as the 'swapComponentForNode' adds comments into the DOM\n        // which messes up the traversal order of the children.\n        var childNodeList = copyNodeList(parentNode.childNodes);\n        childNodeList.forEach(function (childNode) {\n            if (!(childNode instanceof HTMLElement)) {\n                return;\n            }\n            var childComp = _this.createComponentFromElement(childNode, function (childComp) {\n                // copy over all attributes, including css classes, so any attributes user put on the tag\n                // wll be carried across\n                var childGui = childComp.getGui();\n                if (childGui) {\n                    _this.copyAttributesFromNode(childNode, childComp.getGui());\n                }\n            }, paramsMap);\n            if (childComp) {\n                if (childComp.addItems && childNode.children.length) {\n                    _this.createChildComponentsFromTags(childNode, paramsMap);\n                    // converting from HTMLCollection to Array\n                    var items = Array.prototype.slice.call(childNode.children);\n                    childComp.addItems(items);\n                }\n                // replace the tag (eg ag-checkbox) with the proper HTMLElement (eg 'div') in the dom\n                _this.swapComponentForNode(childComp, parentNode, childNode);\n            }\n            else if (childNode.childNodes) {\n                _this.createChildComponentsFromTags(childNode, paramsMap);\n            }\n        });\n    };\n    Component.prototype.createComponentFromElement = function (element, afterPreCreateCallback, paramsMap) {\n        var key = element.nodeName;\n        var componentParams = paramsMap ? paramsMap[element.getAttribute('ref')] : undefined;\n        var ComponentClass = this.agStackComponentsRegistry.getComponentClass(key);\n        if (ComponentClass) {\n            Component.elementGettingCreated = element;\n            var newComponent = new ComponentClass(componentParams);\n            newComponent.setParentComponent(this);\n            this.createBean(newComponent, null, afterPreCreateCallback);\n            return newComponent;\n        }\n        return null;\n    };\n    Component.prototype.copyAttributesFromNode = function (source, dest) {\n        iterateNamedNodeMap(source.attributes, function (name, value) { return dest.setAttribute(name, value); });\n    };\n    Component.prototype.swapComponentForNode = function (newComponent, parentNode, childNode) {\n        var eComponent = newComponent.getGui();\n        parentNode.replaceChild(eComponent, childNode);\n        parentNode.insertBefore(document.createComment(childNode.nodeName), eComponent);\n        this.addDestroyFunc(this.destroyBean.bind(this, newComponent));\n        this.swapInComponentForQuerySelectors(newComponent, childNode);\n    };\n    Component.prototype.swapInComponentForQuerySelectors = function (newComponent, childNode) {\n        var thisNoType = this;\n        this.iterateOverQuerySelectors(function (querySelector) {\n            if (thisNoType[querySelector.attributeName] === childNode) {\n                thisNoType[querySelector.attributeName] = newComponent;\n            }\n        });\n    };\n    Component.prototype.iterateOverQuerySelectors = function (action) {\n        var thisPrototype = Object.getPrototypeOf(this);\n        while (thisPrototype != null) {\n            var metaData = thisPrototype.__agComponentMetaData;\n            var currentProtoName = getFunctionName(thisPrototype.constructor);\n            if (metaData && metaData[currentProtoName] && metaData[currentProtoName].querySelectors) {\n                metaData[currentProtoName].querySelectors.forEach(function (querySelector) { return action(querySelector); });\n            }\n            thisPrototype = Object.getPrototypeOf(thisPrototype);\n        }\n    };\n    Component.prototype.setTemplate = function (template, paramsMap) {\n        var eGui = loadTemplate(template);\n        this.setTemplateFromElement(eGui, paramsMap);\n    };\n    Component.prototype.setTemplateFromElement = function (element, paramsMap) {\n        this.eGui = element;\n        this.eGui.__agComponent = this;\n        this.wireQuerySelectors();\n        // context will not be available when user sets template in constructor\n        if (!!this.getContext()) {\n            this.createChildComponentsFromTags(this.getGui(), paramsMap);\n        }\n    };\n    Component.prototype.createChildComponentsPreConstruct = function () {\n        // ui exists if user sets template in constructor. when this happens, we have to wait for the context\n        // to be autoWired first before we can create child components.\n        if (!!this.getGui()) {\n            this.createChildComponentsFromTags(this.getGui());\n        }\n    };\n    Component.prototype.wireQuerySelectors = function () {\n        var _this = this;\n        if (!this.eGui) {\n            return;\n        }\n        var thisNoType = this;\n        this.iterateOverQuerySelectors(function (querySelector) {\n            var setResult = function (result) { return thisNoType[querySelector.attributeName] = result; };\n            // if it's a ref selector, and match is on top level component, we return\n            // the element. otherwise no way of components putting ref=xxx on the top\n            // level element as querySelector only looks at children.\n            var topLevelRefMatch = querySelector.refSelector\n                && _this.eGui.getAttribute('ref') === querySelector.refSelector;\n            if (topLevelRefMatch) {\n                setResult(_this.eGui);\n            }\n            else {\n                // otherwise use querySelector, which looks at children\n                var resultOfQuery = _this.eGui.querySelector(querySelector.querySelector);\n                if (resultOfQuery) {\n                    setResult(resultOfQuery.__agComponent || resultOfQuery);\n                }\n            }\n        });\n    };\n    Component.prototype.getGui = function () {\n        return this.eGui;\n    };\n    Component.prototype.getFocusableElement = function () {\n        return this.eGui;\n    };\n    Component.prototype.setParentComponent = function (component) {\n        this.parentComponent = component;\n    };\n    Component.prototype.getParentComponent = function () {\n        return this.parentComponent;\n    };\n    // this method is for older code, that wants to provide the gui element,\n    // it is not intended for this to be in ag-Stack\n    Component.prototype.setGui = function (eGui) {\n        this.eGui = eGui;\n    };\n    Component.prototype.queryForHtmlElement = function (cssSelector) {\n        return this.eGui.querySelector(cssSelector);\n    };\n    Component.prototype.queryForHtmlInputElement = function (cssSelector) {\n        return this.eGui.querySelector(cssSelector);\n    };\n    Component.prototype.appendChild = function (newChild, container) {\n        if (!container) {\n            container = this.eGui;\n        }\n        if (newChild == null) {\n            return;\n        }\n        if (isNodeOrElement(newChild)) {\n            container.appendChild(newChild);\n        }\n        else {\n            var childComponent = newChild;\n            container.appendChild(childComponent.getGui());\n            this.addDestroyFunc(this.destroyBean.bind(this, childComponent));\n        }\n    };\n    Component.prototype.isDisplayed = function () {\n        return this.displayed;\n    };\n    Component.prototype.setVisible = function (visible) {\n        if (visible !== this.visible) {\n            this.visible = visible;\n            setVisible(this.eGui, visible);\n        }\n    };\n    Component.prototype.setDisplayed = function (displayed) {\n        if (displayed !== this.displayed) {\n            this.displayed = displayed;\n            setDisplayed(this.eGui, displayed);\n            var event_1 = {\n                type: Component.EVENT_DISPLAYED_CHANGED,\n                visible: this.displayed\n            };\n            this.dispatchEvent(event_1);\n        }\n    };\n    Component.prototype.destroy = function () {\n        if (this.tooltipFeature) {\n            this.tooltipFeature = this.destroyBean(this.tooltipFeature);\n        }\n        _super.prototype.destroy.call(this);\n    };\n    Component.prototype.addGuiEventListener = function (event, listener) {\n        var _this = this;\n        this.eGui.addEventListener(event, listener);\n        this.addDestroyFunc(function () { return _this.eGui.removeEventListener(event, listener); });\n    };\n    Component.prototype.addCssClass = function (className) {\n        this.cssClassManager.addCssClass(className);\n    };\n    Component.prototype.removeCssClass = function (className) {\n        this.cssClassManager.removeCssClass(className);\n    };\n    Component.prototype.containsCssClass = function (className) {\n        return this.cssClassManager.containsCssClass(className);\n    };\n    Component.prototype.addOrRemoveCssClass = function (className, addOrRemove) {\n        this.cssClassManager.addOrRemoveCssClass(className, addOrRemove);\n    };\n    Component.prototype.getAttribute = function (key) {\n        var eGui = this.eGui;\n        return eGui ? eGui.getAttribute(key) : null;\n    };\n    Component.prototype.getRefElement = function (refName) {\n        return this.queryForHtmlElement(\"[ref=\\\"\" + refName + \"\\\"]\");\n    };\n    Component.EVENT_DISPLAYED_CHANGED = 'displayedChanged';\n    __decorate$a([\n        Autowired('agStackComponentsRegistry')\n    ], Component.prototype, \"agStackComponentsRegistry\", void 0);\n    __decorate$a([\n        PreConstruct\n    ], Component.prototype, \"preConstructOnComponent\", null);\n    __decorate$a([\n        PreConstruct\n    ], Component.prototype, \"createChildComponentsPreConstruct\", null);\n    return Component;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction QuerySelector(selector) {\n    return querySelectorFunc.bind(this, selector, undefined);\n}\nfunction RefSelector(ref) {\n    return querySelectorFunc.bind(this, \"[ref=\" + ref + \"]\", ref);\n}\nfunction querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {\n    if (selector === null) {\n        console.error('AG Grid: QuerySelector selector should not be null');\n        return;\n    }\n    if (typeof index === 'number') {\n        console.error('AG Grid: QuerySelector should be on an attribute');\n        return;\n    }\n    addToObjectProps(classPrototype, 'querySelectors', {\n        attributeName: methodOrAttributeName,\n        querySelector: selector,\n        refSelector: refSelector\n    });\n}\n// // think we should take this out, put property bindings on the\n// export function Method(eventName?: string): Function {\n//     return methodFunc.bind(this, eventName);\n// }\n//\n// function methodFunc(alias: string, target: Object, methodName: string) {\n//     if (alias === null) {\n//         console.error(\"AG Grid: EventListener eventName should not be null\");\n//         return;\n//     }\n//\n//     addToObjectProps(target, 'methods', {\n//         methodName: methodName,\n//         alias: alias\n//     });\n// }\nfunction addToObjectProps(target, key, value) {\n    // it's an attribute on the class\n    var props = getOrCreateProps$1(target, getFunctionName(target.constructor));\n    if (!props[key]) {\n        props[key] = [];\n    }\n    props[key].push(value);\n}\nfunction getOrCreateProps$1(target, instanceName) {\n    if (!target.__agComponentMetaData) {\n        target.__agComponentMetaData = {};\n    }\n    if (!target.__agComponentMetaData[instanceName]) {\n        target.__agComponentMetaData[instanceName] = {};\n    }\n    return target.__agComponentMetaData[instanceName];\n}\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$7 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n// optional floating filter for user provided filters - instead of providing a floating filter,\n// they can provide a getModelAsString() method on the filter instead. this class just displays\n// the string returned from getModelAsString()\nvar ReadOnlyFloatingFilter = /** @class */ (function (_super) {\n    __extends$7(ReadOnlyFloatingFilter, _super);\n    function ReadOnlyFloatingFilter() {\n        return _super.call(this, /* html */ \"\\n            <div class=\\\"ag-floating-filter-input\\\" role=\\\"presentation\\\">\\n                <ag-input-text-field ref=\\\"eFloatingFilterText\\\"></ag-input-text-field>\\n            </div>\") || this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    ReadOnlyFloatingFilter.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    ReadOnlyFloatingFilter.prototype.init = function (params) {\n        this.params = params;\n        var displayName = this.columnModel.getDisplayNameForColumn(params.column, 'header', true);\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.eFloatingFilterText\n            .setDisabled(true)\n            .setInputAriaLabel(displayName + \" \" + translate('ariaFilterInput', 'Filter Input'));\n    };\n    ReadOnlyFloatingFilter.prototype.onParentModelChanged = function (parentModel) {\n        var _this = this;\n        if (!parentModel) {\n            this.eFloatingFilterText.setValue('');\n            return;\n        }\n        this.params.parentFilterInstance(function (filterInstance) {\n            // it would be nice to check if getModelAsString was present before creating this component,\n            // however that is not possible, as React Hooks and VueJS don't attached the methods to the Filter until\n            // AFTER the filter is created, not allowing inspection before this (we create floating filters as columns\n            // are drawn, but the parent filters are only created when needed).\n            if (filterInstance.getModelAsString) {\n                var modelAsString = filterInstance.getModelAsString(parentModel);\n                _this.eFloatingFilterText.setValue(modelAsString);\n            }\n        });\n    };\n    __decorate$b([\n        RefSelector('eFloatingFilterText')\n    ], ReadOnlyFloatingFilter.prototype, \"eFloatingFilterText\", void 0);\n    __decorate$b([\n        Autowired('columnModel')\n    ], ReadOnlyFloatingFilter.prototype, \"columnModel\", void 0);\n    return ReadOnlyFloatingFilter;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/** Provides sync access to async component. Date component can be lazy created - this class encapsulates\n * this by keeping value locally until DateComp has loaded, then passing DateComp the value. */\nvar DateCompWrapper = /** @class */ (function () {\n    function DateCompWrapper(context, userComponentFactory, dateComponentParams, eParent) {\n        var _this = this;\n        this.alive = true;\n        this.context = context;\n        this.eParent = eParent;\n        var compDetails = userComponentFactory.getDateCompDetails(dateComponentParams);\n        var promise = compDetails.newAgStackInstance();\n        promise.then(function (dateComp) {\n            // because async, check the filter still exists after component comes back\n            if (!_this.alive) {\n                context.destroyBean(dateComp);\n                return;\n            }\n            _this.dateComp = dateComp;\n            if (!dateComp) {\n                return;\n            }\n            eParent.appendChild(dateComp.getGui());\n            if (dateComp.afterGuiAttached) {\n                dateComp.afterGuiAttached();\n            }\n            if (_this.tempValue) {\n                dateComp.setDate(_this.tempValue);\n            }\n            if (_this.disabled != null) {\n                _this.setDateCompDisabled(_this.disabled);\n            }\n        });\n    }\n    DateCompWrapper.prototype.destroy = function () {\n        this.alive = false;\n        this.dateComp = this.context.destroyBean(this.dateComp);\n    };\n    DateCompWrapper.prototype.getDate = function () {\n        return this.dateComp ? this.dateComp.getDate() : this.tempValue;\n    };\n    DateCompWrapper.prototype.setDate = function (value) {\n        if (this.dateComp) {\n            this.dateComp.setDate(value);\n        }\n        else {\n            this.tempValue = value;\n        }\n    };\n    DateCompWrapper.prototype.setDisabled = function (disabled) {\n        if (this.dateComp) {\n            this.setDateCompDisabled(disabled);\n        }\n        else {\n            this.disabled = disabled;\n        }\n    };\n    DateCompWrapper.prototype.setDisplayed = function (displayed) {\n        setDisplayed(this.eParent, displayed);\n    };\n    DateCompWrapper.prototype.setInputPlaceholder = function (placeholder) {\n        if (this.dateComp && this.dateComp.setInputPlaceholder) {\n            this.dateComp.setInputPlaceholder(placeholder);\n        }\n    };\n    DateCompWrapper.prototype.setInputAriaLabel = function (label) {\n        if (this.dateComp && this.dateComp.setInputAriaLabel) {\n            this.dateComp.setInputAriaLabel(label);\n        }\n    };\n    DateCompWrapper.prototype.afterGuiAttached = function (params) {\n        if (this.dateComp && typeof this.dateComp.afterGuiAttached === 'function') {\n            this.dateComp.afterGuiAttached(params);\n        }\n    };\n    DateCompWrapper.prototype.setDateCompDisabled = function (disabled) {\n        if (this.dateComp == null) {\n            return;\n        }\n        if (this.dateComp.setDisabled == null) {\n            return;\n        }\n        this.dateComp.setDisabled(disabled);\n    };\n    return DateCompWrapper;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __assign$3 = (undefined && undefined.__assign) || function () {\n    __assign$3 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$3.apply(this, arguments);\n};\n/* Common logic for options, used by both filters and floating filters. */\nvar OptionsFactory = /** @class */ (function () {\n    function OptionsFactory() {\n        this.customFilterOptions = {};\n    }\n    OptionsFactory.prototype.init = function (params, defaultOptions) {\n        this.filterOptions = params.filterOptions || defaultOptions;\n        this.mapCustomOptions();\n        this.selectDefaultItem(params);\n        this.checkForDeprecatedParams();\n    };\n    OptionsFactory.prototype.checkForDeprecatedParams = function () {\n        if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) {\n            console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().\");\n        }\n        if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) {\n            console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.\");\n        }\n    };\n    OptionsFactory.prototype.getFilterOptions = function () {\n        return this.filterOptions;\n    };\n    OptionsFactory.prototype.mapCustomOptions = function () {\n        var _this = this;\n        if (!this.filterOptions) {\n            return;\n        }\n        this.filterOptions.forEach(function (filterOption) {\n            if (typeof filterOption === 'string') {\n                return;\n            }\n            var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];\n            var propertyCheck = function (keys) {\n                if (!keys.some(function (key) { return filterOption[key] != null; })) {\n                    console.warn(\"AG Grid: ignoring FilterOptionDef as it doesn't contain one of '\" + keys + \"'\");\n                    return false;\n                }\n                return true;\n            };\n            if (!requiredProperties.every(propertyCheck)) {\n                _this.filterOptions = _this.filterOptions.filter(function (v) { return v === filterOption; }) || [];\n                return;\n            }\n            var test = filterOption.test;\n            var mutatedFilterOptions = __assign$3({}, filterOption);\n            if (test != null && filterOption.predicate == null) {\n                mutatedFilterOptions.predicate = function (v, cv) { return test(v[0], cv); };\n                delete mutatedFilterOptions.test;\n            }\n            if (mutatedFilterOptions.hideFilterInput && mutatedFilterOptions.numberOfInputs == null) {\n                mutatedFilterOptions.numberOfInputs = 0;\n                delete mutatedFilterOptions.hideFilterInput;\n            }\n            _this.customFilterOptions[filterOption.displayKey] = mutatedFilterOptions;\n        });\n    };\n    OptionsFactory.prototype.selectDefaultItem = function (params) {\n        if (params.defaultOption) {\n            this.defaultOption = params.defaultOption;\n        }\n        else if (this.filterOptions.length >= 1) {\n            var firstFilterOption = this.filterOptions[0];\n            if (typeof firstFilterOption === 'string') {\n                this.defaultOption = firstFilterOption;\n            }\n            else if (firstFilterOption.displayKey) {\n                this.defaultOption = firstFilterOption.displayKey;\n            }\n            else {\n                console.warn(\"AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'\");\n            }\n        }\n        else {\n            console.warn('AG Grid: no filter options for filter');\n        }\n    };\n    OptionsFactory.prototype.getDefaultOption = function () {\n        return this.defaultOption;\n    };\n    OptionsFactory.prototype.getCustomOption = function (name) {\n        return this.customFilterOptions[name];\n    };\n    return OptionsFactory;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar DEFAULT_FILTER_LOCALE_TEXT = {\n    applyFilter: 'Apply',\n    clearFilter: 'Clear',\n    resetFilter: 'Reset',\n    cancelFilter: 'Cancel',\n    textFilter: 'Text Filter',\n    numberFilter: 'Number Filter',\n    dateFilter: 'Date Filter',\n    setFilter: 'Set Filter',\n    filterOoo: 'Filter...',\n    empty: 'Choose One',\n    equals: 'Equals',\n    notEqual: 'Not equal',\n    lessThan: 'Less than',\n    greaterThan: 'Greater than',\n    inRange: 'In range',\n    inRangeStart: 'From',\n    inRangeEnd: 'To',\n    lessThanOrEqual: 'Less than or equals',\n    greaterThanOrEqual: 'Greater than or equals',\n    contains: 'Contains',\n    notContains: 'Not contains',\n    startsWith: 'Starts with',\n    endsWith: 'Ends with',\n    blank: 'Blank',\n    notBlank: 'Not blank',\n    andCondition: 'AND',\n    orCondition: 'OR',\n    dateFormatOoo: 'yyyy-mm-dd',\n};\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar KeyCode = /** @class */ (function () {\n    function KeyCode() {\n    }\n    KeyCode.BACKSPACE = 'Backspace';\n    KeyCode.TAB = 'Tab';\n    KeyCode.ENTER = 'Enter';\n    KeyCode.ESCAPE = 'Escape';\n    KeyCode.SPACE = ' ';\n    KeyCode.LEFT = 'ArrowLeft';\n    KeyCode.UP = 'ArrowUp';\n    KeyCode.RIGHT = 'ArrowRight';\n    KeyCode.DOWN = 'ArrowDown';\n    KeyCode.DELETE = 'Delete';\n    KeyCode.F2 = 'F2';\n    KeyCode.PAGE_UP = 'PageUp';\n    KeyCode.PAGE_DOWN = 'PageDown';\n    KeyCode.PAGE_HOME = 'Home';\n    KeyCode.PAGE_END = 'End';\n    // these should be used with `event.code` instead of `event.key`\n    // as `event.key` changes when non-latin keyboards are used\n    KeyCode.A = 'KeyA';\n    KeyCode.C = 'KeyC';\n    KeyCode.V = 'KeyV';\n    KeyCode.D = 'KeyD';\n    KeyCode.Z = 'KeyZ';\n    KeyCode.Y = 'KeyY';\n    return KeyCode;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$8 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$4 = (undefined && undefined.__assign) || function () {\n    __assign$4 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$4.apply(this, arguments);\n};\nvar __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ManagedFocusFeature = /** @class */ (function (_super) {\n    __extends$8(ManagedFocusFeature, _super);\n    function ManagedFocusFeature(eFocusableElement, callbacks) {\n        if (callbacks === void 0) { callbacks = {}; }\n        var _this = _super.call(this) || this;\n        _this.eFocusableElement = eFocusableElement;\n        _this.callbacks = callbacks;\n        _this.callbacks = __assign$4({ shouldStopEventPropagation: function () { return false; }, onTabKeyDown: function (e) {\n                if (e.defaultPrevented) {\n                    return;\n                }\n                var nextRoot = _this.focusService.findNextFocusableElement(_this.eFocusableElement, false, e.shiftKey);\n                if (!nextRoot) {\n                    return;\n                }\n                nextRoot.focus();\n                e.preventDefault();\n            } }, callbacks);\n        return _this;\n    }\n    ManagedFocusFeature.prototype.postConstruct = function () {\n        this.eFocusableElement.classList.add(ManagedFocusFeature.FOCUS_MANAGED_CLASS);\n        this.addKeyDownListeners(this.eFocusableElement);\n        if (this.callbacks.onFocusIn) {\n            this.addManagedListener(this.eFocusableElement, 'focusin', this.callbacks.onFocusIn);\n        }\n        if (this.callbacks.onFocusOut) {\n            this.addManagedListener(this.eFocusableElement, 'focusout', this.callbacks.onFocusOut);\n        }\n    };\n    ManagedFocusFeature.prototype.addKeyDownListeners = function (eGui) {\n        var _this = this;\n        this.addManagedListener(eGui, 'keydown', function (e) {\n            if (e.defaultPrevented || isStopPropagationForAgGrid(e)) {\n                return;\n            }\n            if (_this.callbacks.shouldStopEventPropagation(e)) {\n                stopPropagationForAgGrid(e);\n                return;\n            }\n            if (e.key === KeyCode.TAB) {\n                _this.callbacks.onTabKeyDown(e);\n            }\n            else if (_this.callbacks.handleKeyDown) {\n                _this.callbacks.handleKeyDown(e);\n            }\n        });\n    };\n    ManagedFocusFeature.FOCUS_MANAGED_CLASS = 'ag-focus-managed';\n    __decorate$c([\n        Autowired('focusService')\n    ], ManagedFocusFeature.prototype, \"focusService\", void 0);\n    __decorate$c([\n        PostConstruct\n    ], ManagedFocusFeature.prototype, \"postConstruct\", null);\n    return ManagedFocusFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$9 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n * Contains common logic to all provided filters (apply button, clear button, etc).\n * All the filters that come with AG Grid extend this class. User filters do not\n * extend this class.\n *\n * @param M type of filter-model managed by the concrete sub-class that extends this type\n * @param V type of value managed by the concrete sub-class that extends this type\n */\nvar ProvidedFilter = /** @class */ (function (_super) {\n    __extends$9(ProvidedFilter, _super);\n    function ProvidedFilter(filterNameKey) {\n        var _this = _super.call(this) || this;\n        _this.filterNameKey = filterNameKey;\n        _this.applyActive = false;\n        _this.hidePopup = null;\n        // after the user hits 'apply' the model gets copied to here. this is then the model that we use for\n        // all filtering. so if user changes UI but doesn't hit apply, then the UI will be out of sync with this model.\n        // this is what we want, as the UI should only become the 'active' filter once it's applied. when apply is\n        // inactive, this model will be in sync (following the debounce ms). if the UI is not a valid filter\n        // (eg the value is missing so nothing to filter on, or for set filter all checkboxes are checked so filter\n        // not active) then this appliedModel will be null/undefined.\n        _this.appliedModel = null;\n        return _this;\n    }\n    ProvidedFilter.prototype.postConstruct = function () {\n        this.resetTemplate(); // do this first to create the DOM\n        this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n            handleKeyDown: this.handleKeyDown.bind(this)\n        }));\n    };\n    // override\n    ProvidedFilter.prototype.handleKeyDown = function (e) { };\n    ProvidedFilter.prototype.getFilterTitle = function () {\n        return this.translate(this.filterNameKey);\n    };\n    ProvidedFilter.prototype.isFilterActive = function () {\n        // filter is active if we have a valid applied model\n        return !!this.appliedModel;\n    };\n    ProvidedFilter.prototype.resetTemplate = function (paramsMap) {\n        var templateString = /* html */ \"\\n            <div class=\\\"ag-filter-wrapper\\\">\\n                <div class=\\\"ag-filter-body-wrapper ag-\" + this.getCssIdentifier() + \"-body-wrapper\\\">\\n                    \" + this.createBodyTemplate() + \"\\n                </div>\\n            </div>\";\n        this.setTemplate(templateString, paramsMap);\n    };\n    ProvidedFilter.prototype.isReadOnly = function () {\n        return !!this.providedFilterParams.readOnly;\n    };\n    ProvidedFilter.prototype.init = function (params) {\n        var _this = this;\n        this.setParams(params);\n        this.resetUiToDefaults(true).then(function () {\n            _this.updateUiVisibility();\n            _this.setupOnBtApplyDebounce();\n        });\n    };\n    ProvidedFilter.prototype.setParams = function (params) {\n        this.providedFilterParams = params;\n        this.applyActive = ProvidedFilter.isUseApplyButton(params);\n        this.createButtonPanel();\n    };\n    ProvidedFilter.prototype.createButtonPanel = function () {\n        var _this = this;\n        var buttons = this.providedFilterParams.buttons;\n        if (!buttons || buttons.length < 1 || this.isReadOnly()) {\n            return;\n        }\n        var eButtonsPanel = document.createElement('div');\n        eButtonsPanel.classList.add('ag-filter-apply-panel');\n        var addButton = function (type) {\n            var text;\n            var clickListener;\n            switch (type) {\n                case 'apply':\n                    text = _this.translate('applyFilter');\n                    clickListener = function (e) { return _this.onBtApply(false, false, e); };\n                    break;\n                case 'clear':\n                    text = _this.translate('clearFilter');\n                    clickListener = function () { return _this.onBtClear(); };\n                    break;\n                case 'reset':\n                    text = _this.translate('resetFilter');\n                    clickListener = function () { return _this.onBtReset(); };\n                    break;\n                case 'cancel':\n                    text = _this.translate('cancelFilter');\n                    clickListener = function (e) { _this.onBtCancel(e); };\n                    break;\n                default:\n                    console.warn('AG Grid: Unknown button type specified');\n                    return;\n            }\n            var button = loadTemplate(\n            /* html */\n            \"<button\\n                    type=\\\"button\\\"\\n                    ref=\\\"\" + type + \"FilterButton\\\"\\n                    class=\\\"ag-standard-button ag-filter-apply-panel-button\\\"\\n                >\" + text + \"\\n                </button>\");\n            eButtonsPanel.appendChild(button);\n            _this.addManagedListener(button, 'click', clickListener);\n        };\n        convertToSet(buttons).forEach(function (type) { return addButton(type); });\n        this.getGui().appendChild(eButtonsPanel);\n    };\n    // subclasses can override this to provide alternative debounce defaults\n    ProvidedFilter.prototype.getDefaultDebounceMs = function () {\n        return 0;\n    };\n    ProvidedFilter.prototype.setupOnBtApplyDebounce = function () {\n        var debounceMs = ProvidedFilter.getDebounceMs(this.providedFilterParams, this.getDefaultDebounceMs());\n        this.onBtApplyDebounce = debounce(this.onBtApply.bind(this), debounceMs);\n    };\n    ProvidedFilter.prototype.getModel = function () {\n        return this.appliedModel ? this.appliedModel : null;\n    };\n    ProvidedFilter.prototype.setModel = function (model) {\n        var _this = this;\n        var promise = model != null ? this.setModelIntoUi(model) : this.resetUiToDefaults();\n        return promise.then(function () {\n            _this.updateUiVisibility();\n            // we set the model from the GUI, rather than the provided model,\n            // so the model is consistent, e.g. handling of null/undefined will be the same,\n            // or if model is case insensitive, then casing is removed.\n            _this.applyModel();\n        });\n    };\n    ProvidedFilter.prototype.onBtCancel = function (e) {\n        var _this = this;\n        var currentModel = this.getModel();\n        var afterAppliedFunc = function () {\n            _this.onUiChanged(false, 'prevent');\n            if (_this.providedFilterParams.closeOnApply) {\n                _this.close(e);\n            }\n        };\n        if (currentModel != null) {\n            this.setModelIntoUi(currentModel).then(afterAppliedFunc);\n        }\n        else {\n            this.resetUiToDefaults().then(afterAppliedFunc);\n        }\n    };\n    ProvidedFilter.prototype.onBtClear = function () {\n        var _this = this;\n        this.resetUiToDefaults().then(function () { return _this.onUiChanged(); });\n    };\n    ProvidedFilter.prototype.onBtReset = function () {\n        this.onBtClear();\n        this.onBtApply();\n    };\n    /**\n     * Applies changes made in the UI to the filter, and returns true if the model has changed.\n     */\n    ProvidedFilter.prototype.applyModel = function () {\n        var newModel = this.getModelFromUi();\n        if (!this.isModelValid(newModel)) {\n            return false;\n        }\n        var previousModel = this.appliedModel;\n        this.appliedModel = newModel;\n        // models can be same if user pasted same content into text field, or maybe just changed the case\n        // and it's a case insensitive filter\n        return !this.areModelsEqual(previousModel, newModel);\n    };\n    ProvidedFilter.prototype.isModelValid = function (model) {\n        return true;\n    };\n    ProvidedFilter.prototype.onBtApply = function (afterFloatingFilter, afterDataChange, e) {\n        if (afterFloatingFilter === void 0) { afterFloatingFilter = false; }\n        if (afterDataChange === void 0) { afterDataChange = false; }\n        if (this.applyModel()) {\n            // the floating filter uses 'afterFloatingFilter' info, so it doesn't refresh after filter changed if change\n            // came from floating filter\n            this.providedFilterParams.filterChangedCallback({ afterFloatingFilter: afterFloatingFilter, afterDataChange: afterDataChange });\n        }\n        var closeOnApply = this.providedFilterParams.closeOnApply;\n        // only close if an apply button is visible, otherwise we'd be closing every time a change was made!\n        if (closeOnApply && this.applyActive && !afterFloatingFilter && !afterDataChange) {\n            this.close(e);\n        }\n    };\n    ProvidedFilter.prototype.onNewRowsLoaded = function () {\n    };\n    ProvidedFilter.prototype.close = function (e) {\n        if (!this.hidePopup) {\n            return;\n        }\n        var keyboardEvent = e;\n        var key = keyboardEvent && keyboardEvent.key;\n        var params;\n        if (key === 'Enter' || key === 'Space') {\n            params = { keyboardEvent: keyboardEvent };\n        }\n        this.hidePopup(params);\n        this.hidePopup = null;\n    };\n    /**\n     * By default, if the change came from a floating filter it will be applied immediately, otherwise if there is no\n     * apply button it will be applied after a debounce, otherwise it will not be applied at all. This behaviour can\n     * be adjusted by using the apply parameter.\n     */\n    ProvidedFilter.prototype.onUiChanged = function (fromFloatingFilter, apply) {\n        if (fromFloatingFilter === void 0) { fromFloatingFilter = false; }\n        this.updateUiVisibility();\n        this.providedFilterParams.filterModifiedCallback();\n        if (this.applyActive && !this.isReadOnly) {\n            var isValid = this.isModelValid(this.getModelFromUi());\n            setDisabled(this.getRefElement('applyFilterButton'), !isValid);\n        }\n        if ((fromFloatingFilter && !apply) || apply === 'immediately') {\n            this.onBtApply(fromFloatingFilter);\n        }\n        else if ((!this.applyActive && !apply) || apply === 'debounce') {\n            this.onBtApplyDebounce();\n        }\n    };\n    ProvidedFilter.prototype.afterGuiAttached = function (params) {\n        if (params == null) {\n            return;\n        }\n        this.hidePopup = params.hidePopup;\n    };\n    // static, as used by floating filter also\n    ProvidedFilter.getDebounceMs = function (params, debounceDefault) {\n        if (ProvidedFilter.isUseApplyButton(params)) {\n            if (params.debounceMs != null) {\n                console.warn('AG Grid: debounceMs is ignored when apply button is present');\n            }\n            return 0;\n        }\n        return params.debounceMs != null ? params.debounceMs : debounceDefault;\n    };\n    // static, as used by floating filter also\n    ProvidedFilter.isUseApplyButton = function (params) {\n        return !!params.buttons && params.buttons.indexOf('apply') >= 0;\n    };\n    ProvidedFilter.prototype.destroy = function () {\n        this.hidePopup = null;\n        _super.prototype.destroy.call(this);\n    };\n    ProvidedFilter.prototype.translate = function (key) {\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        return translate(key, DEFAULT_FILTER_LOCALE_TEXT[key]);\n    };\n    ProvidedFilter.prototype.getCellValue = function (rowNode) {\n        var _a = this.providedFilterParams, api = _a.api, colDef = _a.colDef, column = _a.column, columnApi = _a.columnApi, context = _a.context;\n        return this.providedFilterParams.valueGetter({\n            api: api,\n            colDef: colDef,\n            column: column,\n            columnApi: columnApi,\n            context: context,\n            data: rowNode.data,\n            getValue: function (field) { return rowNode.data[field]; },\n            node: rowNode,\n        });\n    };\n    __decorate$d([\n        Autowired('rowModel')\n    ], ProvidedFilter.prototype, \"rowModel\", void 0);\n    __decorate$d([\n        Autowired('valueService')\n    ], ProvidedFilter.prototype, \"valueService\", void 0);\n    __decorate$d([\n        PostConstruct\n    ], ProvidedFilter.prototype, \"postConstruct\", null);\n    return ProvidedFilter;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$a = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgAbstractLabel = /** @class */ (function (_super) {\n    __extends$a(AgAbstractLabel, _super);\n    function AgAbstractLabel(config, template) {\n        var _this = _super.call(this, template) || this;\n        _this.labelSeparator = '';\n        _this.labelAlignment = 'left';\n        _this.label = '';\n        _this.config = config || {};\n        return _this;\n    }\n    AgAbstractLabel.prototype.postConstruct = function () {\n        this.addCssClass('ag-labeled');\n        this.eLabel.classList.add('ag-label');\n        var _a = this.config, labelSeparator = _a.labelSeparator, label = _a.label, labelWidth = _a.labelWidth, labelAlignment = _a.labelAlignment;\n        if (labelSeparator != null) {\n            this.setLabelSeparator(labelSeparator);\n        }\n        if (label != null) {\n            this.setLabel(label);\n        }\n        if (labelWidth != null) {\n            this.setLabelWidth(labelWidth);\n        }\n        this.setLabelAlignment(labelAlignment || this.labelAlignment);\n        this.refreshLabel();\n    };\n    AgAbstractLabel.prototype.refreshLabel = function () {\n        clearElement(this.eLabel);\n        if (typeof this.label === 'string') {\n            this.eLabel.innerText = this.label + this.labelSeparator;\n        }\n        else if (this.label) {\n            this.eLabel.appendChild(this.label);\n        }\n        if (this.label === '') {\n            this.eLabel.classList.add('ag-hidden');\n            setAriaRole(this.eLabel, 'presentation');\n        }\n        else {\n            this.eLabel.classList.remove('ag-hidden');\n            setAriaRole(this.eLabel, null);\n        }\n    };\n    AgAbstractLabel.prototype.setLabelSeparator = function (labelSeparator) {\n        if (this.labelSeparator === labelSeparator) {\n            return this;\n        }\n        this.labelSeparator = labelSeparator;\n        if (this.label != null) {\n            this.refreshLabel();\n        }\n        return this;\n    };\n    AgAbstractLabel.prototype.getLabelId = function () {\n        this.eLabel.id = this.eLabel.id || \"ag-\" + this.getCompId() + \"-label\";\n        return this.eLabel.id;\n    };\n    AgAbstractLabel.prototype.getLabel = function () {\n        return this.label;\n    };\n    AgAbstractLabel.prototype.setLabel = function (label) {\n        if (this.label === label) {\n            return this;\n        }\n        this.label = label;\n        this.refreshLabel();\n        return this;\n    };\n    AgAbstractLabel.prototype.setLabelAlignment = function (alignment) {\n        var eGui = this.getGui();\n        var eGuiClassList = eGui.classList;\n        eGuiClassList.toggle('ag-label-align-left', alignment === 'left');\n        eGuiClassList.toggle('ag-label-align-right', alignment === 'right');\n        eGuiClassList.toggle('ag-label-align-top', alignment === 'top');\n        return this;\n    };\n    AgAbstractLabel.prototype.setLabelWidth = function (width) {\n        if (this.label == null) {\n            return this;\n        }\n        setElementWidth(this.eLabel, width);\n        return this;\n    };\n    __decorate$e([\n        PostConstruct\n    ], AgAbstractLabel.prototype, \"postConstruct\", null);\n    return AgAbstractLabel;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$b = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgAbstractField = /** @class */ (function (_super) {\n    __extends$b(AgAbstractField, _super);\n    function AgAbstractField(config, template, className) {\n        var _this = _super.call(this, config, template) || this;\n        _this.className = className;\n        _this.disabled = false;\n        return _this;\n    }\n    AgAbstractField.prototype.postConstruct = function () {\n        _super.prototype.postConstruct.call(this);\n        if (this.className) {\n            this.addCssClass(this.className);\n        }\n    };\n    AgAbstractField.prototype.onValueChange = function (callbackFn) {\n        var _this = this;\n        this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () { return callbackFn(_this.getValue()); });\n        return this;\n    };\n    AgAbstractField.prototype.getWidth = function () {\n        return this.getGui().clientWidth;\n    };\n    AgAbstractField.prototype.setWidth = function (width) {\n        setFixedWidth(this.getGui(), width);\n        return this;\n    };\n    AgAbstractField.prototype.getPreviousValue = function () {\n        return this.previousValue;\n    };\n    AgAbstractField.prototype.getValue = function () {\n        return this.value;\n    };\n    AgAbstractField.prototype.setValue = function (value, silent) {\n        if (this.value === value) {\n            return this;\n        }\n        this.previousValue = this.value;\n        this.value = value;\n        if (!silent) {\n            this.dispatchEvent({ type: AgAbstractField.EVENT_CHANGED });\n        }\n        return this;\n    };\n    AgAbstractField.prototype.setDisabled = function (disabled) {\n        disabled = !!disabled;\n        var element = this.getGui();\n        setDisabled(element, disabled);\n        element.classList.toggle('ag-disabled', disabled);\n        this.disabled = disabled;\n        return this;\n    };\n    AgAbstractField.prototype.isDisabled = function () {\n        return !!this.disabled;\n    };\n    AgAbstractField.EVENT_CHANGED = 'valueChange';\n    return AgAbstractField;\n}(AgAbstractLabel));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$c = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgPickerField = /** @class */ (function (_super) {\n    __extends$c(AgPickerField, _super);\n    function AgPickerField(config, className, pickerIcon, ariaRole) {\n        var _this = _super.call(this, config, \n        /* html */ \"<div class=\\\"ag-picker-field\\\" role=\\\"presentation\\\">\\n                <div ref=\\\"eLabel\\\"></div>\\n                <div ref=\\\"eWrapper\\\"\\n                    class=\\\"ag-wrapper ag-picker-field-wrapper\\\"\\n                    tabIndex=\\\"-1\\\"\\n                    aria-expanded=\\\"false\\\"\\n                    \" + (ariaRole ? \"role=\\\"\" + ariaRole + \"\\\"\" : '') + \"\\n                >\\n                    <div ref=\\\"eDisplayField\\\" class=\\\"ag-picker-field-display\\\"></div>\\n                    <div ref=\\\"eIcon\\\" class=\\\"ag-picker-field-icon\\\" aria-hidden=\\\"true\\\"></div>\\n                </div>\\n            </div>\", className) || this;\n        _this.pickerIcon = pickerIcon;\n        _this.isPickerDisplayed = false;\n        _this.isDestroyingPicker = false;\n        _this.skipClick = false;\n        return _this;\n    }\n    AgPickerField.prototype.postConstruct = function () {\n        var _this = this;\n        _super.prototype.postConstruct.call(this);\n        var displayId = this.getCompId() + \"-display\";\n        this.eDisplayField.setAttribute('id', displayId);\n        setAriaDescribedBy(this.eWrapper, displayId);\n        var clickHandler = function () {\n            if (_this.skipClick) {\n                _this.skipClick = false;\n                return;\n            }\n            if (_this.isDisabled()) {\n                return;\n            }\n            _this.pickerComponent = _this.showPicker();\n        };\n        var eGui = this.getGui();\n        this.addManagedListener(eGui, 'mousedown', function (e) {\n            if (!_this.skipClick &&\n                _this.pickerComponent &&\n                _this.pickerComponent.isAlive() &&\n                isVisible(_this.pickerComponent.getGui()) &&\n                eGui.contains(e.target)) {\n                _this.skipClick = true;\n            }\n        });\n        this.addManagedListener(eGui, 'keydown', function (e) {\n            switch (e.key) {\n                case KeyCode.UP:\n                case KeyCode.DOWN:\n                case KeyCode.ENTER:\n                case KeyCode.SPACE:\n                    clickHandler();\n                case KeyCode.ESCAPE:\n                    if (_this.isPickerDisplayed) {\n                        e.preventDefault();\n                    }\n                    break;\n            }\n        });\n        this.addManagedListener(this.eWrapper, 'click', clickHandler);\n        this.addManagedListener(this.eLabel, 'click', clickHandler);\n        if (this.pickerIcon) {\n            var icon = createIconNoSpan(this.pickerIcon, this.gridOptionsWrapper);\n            if (icon) {\n                this.eIcon.appendChild(icon);\n            }\n        }\n    };\n    AgPickerField.prototype.refreshLabel = function () {\n        if (exists(this.getLabel())) {\n            setAriaLabelledBy(this.eWrapper, this.getLabelId());\n        }\n        else {\n            this.eWrapper.removeAttribute('aria-labelledby');\n        }\n        _super.prototype.refreshLabel.call(this);\n    };\n    AgPickerField.prototype.setAriaLabel = function (label) {\n        setAriaLabel(this.eWrapper, label);\n        return this;\n    };\n    AgPickerField.prototype.setInputWidth = function (width) {\n        setElementWidth(this.eWrapper, width);\n        return this;\n    };\n    AgPickerField.prototype.getFocusableElement = function () {\n        return this.eWrapper;\n    };\n    __decorate$f([\n        RefSelector('eLabel')\n    ], AgPickerField.prototype, \"eLabel\", void 0);\n    __decorate$f([\n        RefSelector('eWrapper')\n    ], AgPickerField.prototype, \"eWrapper\", void 0);\n    __decorate$f([\n        RefSelector('eDisplayField')\n    ], AgPickerField.prototype, \"eDisplayField\", void 0);\n    __decorate$f([\n        RefSelector('eIcon')\n    ], AgPickerField.prototype, \"eIcon\", void 0);\n    return AgPickerField;\n}(AgAbstractField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$d = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgList = /** @class */ (function (_super) {\n    __extends$d(AgList, _super);\n    function AgList(cssIdentifier) {\n        if (cssIdentifier === void 0) { cssIdentifier = 'default'; }\n        var _this = _super.call(this, /* html */ \"<div class=\\\"ag-list ag-\" + cssIdentifier + \"-list\\\" role=\\\"listbox\\\"></div>\") || this;\n        _this.cssIdentifier = cssIdentifier;\n        _this.options = [];\n        _this.itemEls = [];\n        return _this;\n    }\n    AgList.prototype.init = function () {\n        this.addManagedListener(this.getGui(), 'keydown', this.handleKeyDown.bind(this));\n    };\n    AgList.prototype.handleKeyDown = function (e) {\n        var key = e.key;\n        switch (key) {\n            case KeyCode.ENTER:\n                if (!this.highlightedEl) {\n                    this.setValue(this.getValue());\n                }\n                else {\n                    var pos = this.itemEls.indexOf(this.highlightedEl);\n                    this.setValueByIndex(pos);\n                }\n                break;\n            case KeyCode.DOWN:\n            case KeyCode.UP:\n                var isDown = key === KeyCode.DOWN;\n                var itemToHighlight = void 0;\n                e.preventDefault();\n                if (!this.highlightedEl) {\n                    itemToHighlight = this.itemEls[isDown ? 0 : this.itemEls.length - 1];\n                }\n                else {\n                    var currentIdx = this.itemEls.indexOf(this.highlightedEl);\n                    var nextPos = currentIdx + (isDown ? 1 : -1);\n                    nextPos = Math.min(Math.max(nextPos, 0), this.itemEls.length - 1);\n                    itemToHighlight = this.itemEls[nextPos];\n                }\n                this.highlightItem(itemToHighlight);\n                break;\n        }\n    };\n    AgList.prototype.addOptions = function (listOptions) {\n        var _this = this;\n        listOptions.forEach(function (listOption) { return _this.addOption(listOption); });\n        return this;\n    };\n    AgList.prototype.addOption = function (listOption) {\n        var value = listOption.value, text = listOption.text;\n        var sanitisedText = escapeString(text || value);\n        this.options.push({ value: value, text: sanitisedText });\n        this.renderOption(value, sanitisedText);\n        this.updateIndices();\n        return this;\n    };\n    AgList.prototype.updateIndices = function () {\n        var options = this.getGui().querySelectorAll('.ag-list-item');\n        options.forEach(function (option, idx) {\n            setAriaPosInSet(option, idx + 1);\n            setAriaSetSize(option, options.length);\n        });\n    };\n    AgList.prototype.renderOption = function (value, text) {\n        var _this = this;\n        var itemEl = document.createElement('div');\n        setAriaRole(itemEl, 'option');\n        itemEl.classList.add('ag-list-item', \"ag-\" + this.cssIdentifier + \"-list-item\");\n        itemEl.innerHTML = \"<span>\" + text + \"</span>\";\n        itemEl.tabIndex = -1;\n        this.itemEls.push(itemEl);\n        this.addManagedListener(itemEl, 'mouseover', function () { return _this.highlightItem(itemEl); });\n        this.addManagedListener(itemEl, 'mouseleave', function () { return _this.clearHighlighted(); });\n        this.addManagedListener(itemEl, 'click', function () { return _this.setValue(value); });\n        this.getGui().appendChild(itemEl);\n    };\n    AgList.prototype.setValue = function (value, silent) {\n        if (this.value === value) {\n            this.fireItemSelected();\n            return this;\n        }\n        if (value == null) {\n            this.reset();\n            return this;\n        }\n        var idx = this.options.findIndex(function (option) { return option.value === value; });\n        if (idx !== -1) {\n            var option = this.options[idx];\n            this.value = option.value;\n            this.displayValue = option.text != null ? option.text : option.value;\n            this.highlightItem(this.itemEls[idx]);\n            if (!silent) {\n                this.fireChangeEvent();\n            }\n        }\n        return this;\n    };\n    AgList.prototype.setValueByIndex = function (idx) {\n        return this.setValue(this.options[idx].value);\n    };\n    AgList.prototype.getValue = function () {\n        return this.value;\n    };\n    AgList.prototype.getDisplayValue = function () {\n        return this.displayValue;\n    };\n    AgList.prototype.refreshHighlighted = function () {\n        var _this = this;\n        this.clearHighlighted();\n        var idx = this.options.findIndex(function (option) { return option.value === _this.value; });\n        if (idx !== -1) {\n            this.highlightItem(this.itemEls[idx]);\n        }\n    };\n    AgList.prototype.reset = function () {\n        this.value = null;\n        this.displayValue = null;\n        this.clearHighlighted();\n        this.fireChangeEvent();\n    };\n    AgList.prototype.highlightItem = function (el) {\n        if (!el.offsetParent) {\n            return;\n        }\n        this.clearHighlighted();\n        this.highlightedEl = el;\n        this.highlightedEl.classList.add(AgList.ACTIVE_CLASS);\n        setAriaSelected(this.highlightedEl, true);\n        this.highlightedEl.focus();\n    };\n    AgList.prototype.clearHighlighted = function () {\n        if (!this.highlightedEl || !this.highlightedEl.offsetParent) {\n            return;\n        }\n        this.highlightedEl.classList.remove(AgList.ACTIVE_CLASS);\n        setAriaSelected(this.highlightedEl, false);\n        this.highlightedEl = null;\n    };\n    AgList.prototype.fireChangeEvent = function () {\n        this.dispatchEvent({ type: AgAbstractField.EVENT_CHANGED });\n        this.fireItemSelected();\n    };\n    AgList.prototype.fireItemSelected = function () {\n        this.dispatchEvent({ type: AgList.EVENT_ITEM_SELECTED });\n    };\n    AgList.EVENT_ITEM_SELECTED = 'selectedItem';\n    AgList.ACTIVE_CLASS = 'ag-active-item';\n    __decorate$g([\n        PostConstruct\n    ], AgList.prototype, \"init\", null);\n    return AgList;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$e = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgSelect = /** @class */ (function (_super) {\n    __extends$e(AgSelect, _super);\n    function AgSelect(config) {\n        return _super.call(this, config, 'ag-select', 'smallDown', 'listbox') || this;\n    }\n    AgSelect.prototype.init = function () {\n        var _this = this;\n        this.listComponent = this.createBean(new AgList('select'));\n        this.listComponent.setParentComponent(this);\n        this.eWrapper.tabIndex = 0;\n        this.listComponent.addManagedListener(this.listComponent, AgList.EVENT_ITEM_SELECTED, function () { if (_this.hideList) {\n            _this.hideList();\n        } });\n        this.listComponent.addManagedListener(this.listComponent, AgAbstractField.EVENT_CHANGED, function () {\n            _this.setValue(_this.listComponent.getValue(), false, true);\n            if (_this.hideList) {\n                _this.hideList();\n            }\n        });\n    };\n    AgSelect.prototype.showPicker = function () {\n        var _this = this;\n        var listGui = this.listComponent.getGui();\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var destroyMouseWheelFunc = this.addManagedListener(eDocument.body, 'wheel', function (e) {\n            if (!listGui.contains(e.target) && _this.hideList) {\n                _this.hideList();\n            }\n        });\n        var destroyFocusOutFunc = this.addManagedListener(listGui, 'focusout', function (e) {\n            if (!listGui.contains(e.relatedTarget) && _this.hideList) {\n                _this.hideList();\n            }\n        });\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = this.popupService.addPopup({\n            modal: true,\n            eChild: listGui,\n            closeOnEsc: true,\n            closedCallback: function () {\n                _this.hideList = null;\n                _this.isPickerDisplayed = false;\n                destroyFocusOutFunc();\n                destroyMouseWheelFunc();\n                if (_this.isAlive()) {\n                    setAriaExpanded(_this.eWrapper, false);\n                    _this.getFocusableElement().focus();\n                }\n            },\n            ariaLabel: translate('ariaLabelSelectField', 'Select Field')\n        });\n        if (addPopupRes) {\n            this.hideList = addPopupRes.hideFunc;\n        }\n        this.isPickerDisplayed = true;\n        setElementWidth(listGui, getAbsoluteWidth(this.eWrapper));\n        setAriaExpanded(this.eWrapper, true);\n        listGui.style.maxHeight = getInnerHeight(this.popupService.getPopupParent()) + 'px';\n        listGui.style.position = 'absolute';\n        this.popupService.positionPopupUnderComponent({\n            type: 'ag-list',\n            eventSource: this.eWrapper,\n            ePopup: listGui,\n            keepWithinBounds: true\n        });\n        this.listComponent.refreshHighlighted();\n        return this.listComponent;\n    };\n    AgSelect.prototype.addOptions = function (options) {\n        var _this = this;\n        options.forEach(function (option) { return _this.addOption(option); });\n        return this;\n    };\n    AgSelect.prototype.addOption = function (option) {\n        this.listComponent.addOption(option);\n        return this;\n    };\n    AgSelect.prototype.setValue = function (value, silent, fromPicker) {\n        if (this.value === value) {\n            return this;\n        }\n        if (!fromPicker) {\n            this.listComponent.setValue(value, true);\n        }\n        var newValue = this.listComponent.getValue();\n        if (newValue === this.getValue()) {\n            return this;\n        }\n        this.eDisplayField.innerHTML = this.listComponent.getDisplayValue();\n        return _super.prototype.setValue.call(this, value, silent);\n    };\n    AgSelect.prototype.destroy = function () {\n        if (this.hideList) {\n            this.hideList();\n        }\n        this.destroyBean(this.listComponent);\n        _super.prototype.destroy.call(this);\n    };\n    __decorate$h([\n        Autowired('popupService')\n    ], AgSelect.prototype, \"popupService\", void 0);\n    __decorate$h([\n        PostConstruct\n    ], AgSelect.prototype, \"init\", null);\n    return AgSelect;\n}(AgPickerField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$f = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgAbstractInputField = /** @class */ (function (_super) {\n    __extends$f(AgAbstractInputField, _super);\n    function AgAbstractInputField(config, className, inputType, displayFieldTag) {\n        if (inputType === void 0) { inputType = 'text'; }\n        if (displayFieldTag === void 0) { displayFieldTag = 'input'; }\n        var _this = _super.call(this, config, /* html */ \"\\n            <div role=\\\"presentation\\\">\\n                <div ref=\\\"eLabel\\\" class=\\\"ag-input-field-label\\\"></div>\\n                <div ref=\\\"eWrapper\\\" class=\\\"ag-wrapper ag-input-wrapper\\\" role=\\\"presentation\\\">\\n                    <\" + displayFieldTag + \" ref=\\\"eInput\\\" class=\\\"ag-input-field-input\\\"></\" + displayFieldTag + \">\\n                </div>\\n            </div>\", className) || this;\n        _this.inputType = inputType;\n        _this.displayFieldTag = displayFieldTag;\n        return _this;\n    }\n    AgAbstractInputField.prototype.postConstruct = function () {\n        _super.prototype.postConstruct.call(this);\n        this.setInputType();\n        this.eLabel.classList.add(this.className + \"-label\");\n        this.eWrapper.classList.add(this.className + \"-input-wrapper\");\n        this.eInput.classList.add(this.className + \"-input\");\n        this.addCssClass('ag-input-field');\n        this.eInput.id = this.eInput.id || \"ag-\" + this.getCompId() + \"-input\";\n        var _a = this.config, width = _a.width, value = _a.value;\n        if (width != null) {\n            this.setWidth(width);\n        }\n        if (value != null) {\n            this.setValue(value);\n        }\n        this.addInputListeners();\n    };\n    AgAbstractInputField.prototype.refreshLabel = function () {\n        if (exists(this.getLabel())) {\n            setAriaLabelledBy(this.eInput, this.getLabelId());\n        }\n        else {\n            this.eInput.removeAttribute('aria-labelledby');\n        }\n        _super.prototype.refreshLabel.call(this);\n    };\n    AgAbstractInputField.prototype.addInputListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eInput, 'input', function (e) { return _this.setValue(e.target.value); });\n    };\n    AgAbstractInputField.prototype.setInputType = function () {\n        if (this.displayFieldTag === 'input') {\n            this.eInput.setAttribute('type', this.inputType);\n        }\n    };\n    AgAbstractInputField.prototype.getInputElement = function () {\n        return this.eInput;\n    };\n    AgAbstractInputField.prototype.setInputWidth = function (width) {\n        setElementWidth(this.eWrapper, width);\n        return this;\n    };\n    AgAbstractInputField.prototype.setInputName = function (name) {\n        this.getInputElement().setAttribute('name', name);\n        return this;\n    };\n    AgAbstractInputField.prototype.getFocusableElement = function () {\n        return this.eInput;\n    };\n    AgAbstractInputField.prototype.setMaxLength = function (length) {\n        var eInput = this.eInput;\n        eInput.maxLength = length;\n        return this;\n    };\n    AgAbstractInputField.prototype.setInputPlaceholder = function (placeholder) {\n        addOrRemoveAttribute(this.eInput, 'placeholder', placeholder);\n        return this;\n    };\n    AgAbstractInputField.prototype.setInputAriaLabel = function (label) {\n        setAriaLabel(this.eInput, label);\n        return this;\n    };\n    AgAbstractInputField.prototype.setDisabled = function (disabled) {\n        setDisabled(this.eInput, disabled);\n        return _super.prototype.setDisabled.call(this, disabled);\n    };\n    __decorate$i([\n        RefSelector('eLabel')\n    ], AgAbstractInputField.prototype, \"eLabel\", void 0);\n    __decorate$i([\n        RefSelector('eWrapper')\n    ], AgAbstractInputField.prototype, \"eWrapper\", void 0);\n    __decorate$i([\n        RefSelector('eInput')\n    ], AgAbstractInputField.prototype, \"eInput\", void 0);\n    return AgAbstractInputField;\n}(AgAbstractField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$g = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ConditionPosition;\n(function (ConditionPosition) {\n    ConditionPosition[ConditionPosition[\"One\"] = 0] = \"One\";\n    ConditionPosition[ConditionPosition[\"Two\"] = 1] = \"Two\";\n})(ConditionPosition || (ConditionPosition = {}));\n/**\n * Every filter with a dropdown where the user can specify a comparing type against the filter values.\n *\n * @param M type of filter-model managed by the concrete sub-class that extends this type\n * @param V type of value managed by the concrete sub-class that extends this type\n * @param E type of UI element used for collecting user-input\n */\nvar SimpleFilter = /** @class */ (function (_super) {\n    __extends$g(SimpleFilter, _super);\n    function SimpleFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SimpleFilter.prototype.getNumberOfInputs = function (type) {\n        var customOpts = this.optionsFactory.getCustomOption(type);\n        if (customOpts) {\n            var numberOfInputs = customOpts.numberOfInputs;\n            return numberOfInputs != null ? numberOfInputs : 1;\n        }\n        var zeroInputTypes = [\n            SimpleFilter.EMPTY, SimpleFilter.NOT_BLANK, SimpleFilter.BLANK,\n        ];\n        if (type && zeroInputTypes.indexOf(type) >= 0) {\n            return 0;\n        }\n        else if (type === SimpleFilter.IN_RANGE) {\n            return 2;\n        }\n        return 1;\n    };\n    // floating filter calls this when user applies filter from floating filter\n    SimpleFilter.prototype.onFloatingFilterChanged = function (type, value) {\n        this.setTypeFromFloatingFilter(type);\n        this.setValueFromFloatingFilter(value);\n        this.onUiChanged(true);\n    };\n    SimpleFilter.prototype.setTypeFromFloatingFilter = function (type) {\n        this.eType1.setValue(type);\n        this.eType2.setValue(this.optionsFactory.getDefaultOption());\n        (this.isDefaultOperator('AND') ? this.eJoinOperatorAnd : this.eJoinOperatorOr).setValue(true);\n    };\n    SimpleFilter.prototype.getModelFromUi = function () {\n        if (!this.isConditionUiComplete(ConditionPosition.One)) {\n            return null;\n        }\n        if (this.isAllowTwoConditions() && this.isConditionUiComplete(ConditionPosition.Two)) {\n            return {\n                filterType: this.getFilterType(),\n                operator: this.getJoinOperator(),\n                condition1: this.createCondition(ConditionPosition.One),\n                condition2: this.createCondition(ConditionPosition.Two)\n            };\n        }\n        return this.createCondition(ConditionPosition.One);\n    };\n    SimpleFilter.prototype.getConditionTypes = function () {\n        return [\n            this.eType1.getValue(),\n            this.eType2.getValue(),\n        ];\n    };\n    SimpleFilter.prototype.getJoinOperator = function () {\n        return this.eJoinOperatorOr.getValue() === true ? 'OR' : 'AND';\n    };\n    SimpleFilter.prototype.areModelsEqual = function (a, b) {\n        // both are missing\n        if (!a && !b) {\n            return true;\n        }\n        // one is missing, other present\n        if ((!a && b) || (a && !b)) {\n            return false;\n        }\n        // one is combined, the other is not\n        var aIsSimple = !a.operator;\n        var bIsSimple = !b.operator;\n        var oneSimpleOneCombined = (!aIsSimple && bIsSimple) || (aIsSimple && !bIsSimple);\n        if (oneSimpleOneCombined) {\n            return false;\n        }\n        var res;\n        // otherwise both present, so compare\n        if (aIsSimple) {\n            var aSimple = a;\n            var bSimple = b;\n            res = this.areSimpleModelsEqual(aSimple, bSimple);\n        }\n        else {\n            var aCombined = a;\n            var bCombined = b;\n            res = aCombined.operator === bCombined.operator\n                && this.areSimpleModelsEqual(aCombined.condition1, bCombined.condition1)\n                && this.areSimpleModelsEqual(aCombined.condition2, bCombined.condition2);\n        }\n        return res;\n    };\n    SimpleFilter.prototype.setModelIntoUi = function (model) {\n        var isCombined = model.operator;\n        if (isCombined) {\n            var combinedModel = model;\n            var orChecked = combinedModel.operator === 'OR';\n            this.eJoinOperatorAnd.setValue(!orChecked);\n            this.eJoinOperatorOr.setValue(orChecked);\n            this.eType1.setValue(combinedModel.condition1.type);\n            this.eType2.setValue(combinedModel.condition2.type);\n            this.setConditionIntoUi(combinedModel.condition1, ConditionPosition.One);\n            this.setConditionIntoUi(combinedModel.condition2, ConditionPosition.Two);\n        }\n        else {\n            var simpleModel = model;\n            this.eJoinOperatorAnd.setValue(this.isDefaultOperator('AND'));\n            this.eJoinOperatorOr.setValue(this.isDefaultOperator('OR'));\n            this.eType1.setValue(simpleModel.type);\n            this.eType2.setValue(this.optionsFactory.getDefaultOption());\n            this.setConditionIntoUi(simpleModel, ConditionPosition.One);\n            this.setConditionIntoUi(null, ConditionPosition.Two);\n        }\n        return AgPromise.resolve();\n    };\n    SimpleFilter.prototype.doesFilterPass = function (params) {\n        var _this = this;\n        var model = this.getModel();\n        if (model == null) {\n            return true;\n        }\n        var operator = model.operator;\n        var models = [];\n        if (operator) {\n            var combinedModel = model;\n            models.push(combinedModel.condition1, combinedModel.condition2);\n        }\n        else {\n            models.push(model);\n        }\n        var combineFunction = operator && operator === 'OR' ? 'some' : 'every';\n        return models[combineFunction](function (m) { return _this.individualConditionPasses(params, m); });\n    };\n    SimpleFilter.prototype.setParams = function (params) {\n        _super.prototype.setParams.call(this, params);\n        this.optionsFactory = new OptionsFactory();\n        this.optionsFactory.init(params, this.getDefaultFilterOptions());\n        this.allowTwoConditions = !params.suppressAndOrCondition;\n        this.alwaysShowBothConditions = !!params.alwaysShowBothConditions;\n        this.defaultJoinOperator = this.getDefaultJoinOperator(params.defaultJoinOperator);\n        this.putOptionsIntoDropdown();\n        this.addChangedListeners();\n    };\n    SimpleFilter.prototype.getDefaultJoinOperator = function (defaultJoinOperator) {\n        return includes(['AND', 'OR'], defaultJoinOperator) ? defaultJoinOperator : 'AND';\n    };\n    SimpleFilter.prototype.putOptionsIntoDropdown = function () {\n        var _this = this;\n        var filterOptions = this.optionsFactory.getFilterOptions();\n        var eTypes = [this.eType1, this.eType2];\n        // Add specified options to all condition drop-downs.\n        filterOptions.forEach(function (option) {\n            var listOption = typeof option === 'string' ?\n                _this.createBoilerplateListOption(option) :\n                _this.createCustomListOption(option);\n            eTypes.forEach(function (eType) { return eType.addOption(listOption); });\n        });\n        // Make drop-downs read-only if there is only one option.\n        eTypes.forEach(function (eType) { return eType.setDisabled(filterOptions.length <= 1); });\n    };\n    SimpleFilter.prototype.createBoilerplateListOption = function (option) {\n        return { value: option, text: this.translate(option) };\n    };\n    SimpleFilter.prototype.createCustomListOption = function (option) {\n        var displayKey = option.displayKey;\n        var customOption = this.optionsFactory.getCustomOption(option.displayKey);\n        return {\n            value: displayKey,\n            text: customOption ?\n                this.gridOptionsWrapper.getLocaleTextFunc()(customOption.displayKey, customOption.displayName) :\n                this.translate(displayKey),\n        };\n    };\n    SimpleFilter.prototype.isAllowTwoConditions = function () {\n        return this.allowTwoConditions;\n    };\n    SimpleFilter.prototype.createBodyTemplate = function () {\n        return /* html */ \"\\n            <ag-select class=\\\"ag-filter-select\\\" ref=\\\"eOptions1\\\"></ag-select>\\n            \" + this.createValueTemplate(ConditionPosition.One) + \"\\n            <div class=\\\"ag-filter-condition\\\" ref=\\\"eJoinOperatorPanel\\\">\\n               <ag-radio-button ref=\\\"eJoinOperatorAnd\\\" class=\\\"ag-filter-condition-operator ag-filter-condition-operator-and\\\"></ag-radio-button>\\n               <ag-radio-button ref=\\\"eJoinOperatorOr\\\" class=\\\"ag-filter-condition-operator ag-filter-condition-operator-or\\\"></ag-radio-button>\\n            </div>\\n            <ag-select class=\\\"ag-filter-select\\\" ref=\\\"eOptions2\\\"></ag-select>\\n            \" + this.createValueTemplate(ConditionPosition.Two);\n    };\n    SimpleFilter.prototype.getCssIdentifier = function () {\n        return 'simple-filter';\n    };\n    SimpleFilter.prototype.updateUiVisibility = function () {\n        var _this = this;\n        var elementConditionGroups = [\n            [this.eType1],\n            [this.eType2, this.eJoinOperatorPanel, this.eJoinOperatorAnd, this.eJoinOperatorOr],\n        ];\n        var elementBodies = [this.eCondition1Body, this.eCondition2Body];\n        elementConditionGroups.forEach(function (group, position) {\n            var visible = _this.isConditionVisible(position);\n            var disabled = _this.isConditionDisabled(position);\n            group.forEach(function (element) {\n                if (element instanceof AgAbstractInputField || element instanceof AgSelect) {\n                    element.setDisabled(disabled);\n                    element.setDisplayed(visible);\n                }\n                else {\n                    setDisabled(element, disabled);\n                    setDisplayed(element, visible);\n                }\n            });\n        });\n        elementBodies.forEach(function (element, index) {\n            setDisplayed(element, _this.isConditionBodyVisible(index));\n        });\n        this.forEachInput(function (element, index, position, numberOfInputs) {\n            _this.setElementDisplayed(element, index < numberOfInputs);\n            _this.setElementDisabled(element, _this.isConditionDisabled(position));\n        });\n        this.resetPlaceholder();\n    };\n    SimpleFilter.prototype.afterGuiAttached = function (params) {\n        _super.prototype.afterGuiAttached.call(this, params);\n        this.resetPlaceholder();\n        if (!params || (!params.suppressFocus && !this.isReadOnly())) {\n            var firstInput = this.getInputs()[0][0];\n            if (!firstInput) {\n                return;\n            }\n            if (firstInput instanceof AgAbstractInputField) {\n                firstInput.getInputElement().focus();\n            }\n        }\n    };\n    // allow sub-classes to reset HTML placeholders after UI update.\n    SimpleFilter.prototype.resetPlaceholder = function () {\n        var _this = this;\n        var globalTranslate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.forEachInput(function (element, index, _, numberOfInputs) {\n            if (!(element instanceof AgAbstractInputField)) {\n                return;\n            }\n            var placeholder = index === 0 && numberOfInputs > 1 ? 'inRangeStart' :\n                index === 0 ? 'filterOoo' :\n                    'inRangeEnd';\n            var ariaLabel = index === 0 && numberOfInputs > 1 ? globalTranslate('ariaFilterFromValue', 'Filter from value') :\n                index === 0 ? globalTranslate('ariaFilterValue', 'Filter Value') :\n                    globalTranslate('ariaFilterToValue', 'Filter to Value');\n            element.setInputPlaceholder(_this.translate(placeholder));\n            element.setInputAriaLabel(ariaLabel);\n        });\n    };\n    SimpleFilter.prototype.setElementValue = function (element, value, silent) {\n        if (element instanceof AgAbstractInputField) {\n            element.setValue(value != null ? String(value) : null, silent);\n        }\n    };\n    SimpleFilter.prototype.setElementDisplayed = function (element, displayed) {\n        if (element instanceof Component) {\n            setDisplayed(element.getGui(), displayed);\n        }\n    };\n    SimpleFilter.prototype.setElementDisabled = function (element, disabled) {\n        if (element instanceof Component) {\n            setDisabled(element.getGui(), disabled);\n        }\n    };\n    SimpleFilter.prototype.attachElementOnChange = function (element, listener) {\n        if (element instanceof AgAbstractInputField) {\n            element.onValueChange(listener);\n        }\n    };\n    SimpleFilter.prototype.forEachInput = function (cb) {\n        var _this = this;\n        var inputs = this.getInputs();\n        this.getConditionTypes().forEach(function (type, position) {\n            var numberOfInputs = _this.getNumberOfInputs(type);\n            for (var index = 0; index < inputs[position].length; index++) {\n                var input = inputs[position][index];\n                if (input != null) {\n                    cb(input, index, position, numberOfInputs);\n                }\n            }\n        });\n    };\n    SimpleFilter.prototype.isConditionVisible = function (position) {\n        if (position === 0) {\n            return true;\n        } // Position 0 should always be visible.\n        if (!this.allowTwoConditions) {\n            return false;\n        } // Short-circuit if no tail conditions.\n        if (this.isReadOnly()) {\n            // Only display a condition when read-only if the condition is complete.\n            return this.isConditionUiComplete(position);\n        }\n        if (this.alwaysShowBothConditions) {\n            return true;\n        }\n        // Only display a 2nd or later condition when the previous condition is complete.\n        return this.isConditionUiComplete(position - 1);\n    };\n    SimpleFilter.prototype.isConditionDisabled = function (position) {\n        if (this.isReadOnly()) {\n            return true;\n        } // Read-only mode trumps everything.\n        if (!this.isConditionVisible(position)) {\n            return true;\n        } // Invisible implies disabled.\n        if (position === 0) {\n            return false;\n        } // Position 0 should typically be editable.\n        // Only allow editing of a 2nd or later condition if the previous condition is complete.\n        return !this.isConditionUiComplete(position - 1);\n    };\n    SimpleFilter.prototype.isConditionBodyVisible = function (position) {\n        if (!this.isConditionVisible(position)) {\n            return false;\n        }\n        // Check that the condition needs inputs.\n        var type = this.getConditionTypes()[position];\n        var numberOfInputs = this.getNumberOfInputs(type);\n        return numberOfInputs > 0;\n    };\n    // returns true if the UI represents a working filter, eg all parts are filled out.\n    // eg if text filter and textfield blank then returns false.\n    SimpleFilter.prototype.isConditionUiComplete = function (position) {\n        var type = this.getConditionTypes()[position];\n        if (type === SimpleFilter.EMPTY) {\n            return false;\n        }\n        if (this.getValues(position).some(function (v) { return v == null; })) {\n            return false;\n        }\n        return true;\n    };\n    SimpleFilter.prototype.resetUiToDefaults = function (silent) {\n        var _this = this;\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var filteringLabel = translate('ariaFilteringOperator', 'Filtering operator');\n        var uniqueGroupId = 'ag-simple-filter-and-or-' + this.getCompId();\n        var defaultOption = this.optionsFactory.getDefaultOption();\n        this.eType1\n            .setValue(defaultOption, silent)\n            .setAriaLabel(filteringLabel)\n            .setDisabled(this.isReadOnly());\n        this.eType2\n            .setValue(this.optionsFactory.getDefaultOption(), silent)\n            .setAriaLabel(filteringLabel)\n            .setDisabled(this.isReadOnly());\n        this.eJoinOperatorAnd\n            .setValue(this.isDefaultOperator('AND'), silent)\n            .setName(uniqueGroupId)\n            .setLabel(this.translate('andCondition'))\n            .setDisabled(this.isReadOnly());\n        this.eJoinOperatorOr\n            .setValue(this.isDefaultOperator('OR'), silent)\n            .setName(uniqueGroupId)\n            .setLabel(this.translate('orCondition'))\n            .setDisabled(this.isReadOnly());\n        this.forEachInput(function (element) {\n            _this.setElementValue(element, null, silent);\n            _this.setElementDisabled(element, _this.isReadOnly());\n        });\n        this.resetPlaceholder();\n        return AgPromise.resolve();\n    };\n    // puts model values into the UI\n    SimpleFilter.prototype.setConditionIntoUi = function (model, position) {\n        var _this = this;\n        var values = this.mapValuesFromModel(model);\n        this.forEachInput(function (element, index, elPosition, _) {\n            if (elPosition !== position) {\n                return;\n            }\n            _this.setElementValue(element, values[index] != null ? values[index] : null);\n        });\n    };\n    // after floating filter changes, this sets the 'value' section. this is implemented by the base class\n    // (as that's where value is controlled), the 'type' part from the floating filter is dealt with in this class.\n    SimpleFilter.prototype.setValueFromFloatingFilter = function (value) {\n        var _this = this;\n        this.forEachInput(function (element, index, position, _) {\n            _this.setElementValue(element, index === 0 && position === 0 ? value : null);\n        });\n    };\n    SimpleFilter.prototype.isDefaultOperator = function (operator) {\n        return operator === this.defaultJoinOperator;\n    };\n    SimpleFilter.prototype.addChangedListeners = function () {\n        var _this = this;\n        if (this.isReadOnly()) {\n            return;\n        }\n        var listener = function () { return _this.onUiChanged(); };\n        this.eType1.onValueChange(listener);\n        this.eType2.onValueChange(listener);\n        this.eJoinOperatorOr.onValueChange(listener);\n        this.eJoinOperatorAnd.onValueChange(listener);\n        this.forEachInput(function (element) {\n            _this.attachElementOnChange(element, listener);\n        });\n    };\n    /** returns true if the row passes the said condition */\n    SimpleFilter.prototype.individualConditionPasses = function (params, filterModel) {\n        var cellValue = this.getCellValue(params.node);\n        var values = this.mapValuesFromModel(filterModel);\n        var customFilterOption = this.optionsFactory.getCustomOption(filterModel.type);\n        var customFilterResult = this.evaluateCustomFilter(customFilterOption, values, cellValue);\n        if (customFilterResult != null) {\n            return customFilterResult;\n        }\n        if (cellValue == null) {\n            return this.evaluateNullValue(filterModel.type);\n        }\n        return this.evaluateNonNullValue(values, cellValue, filterModel, params);\n    };\n    SimpleFilter.prototype.evaluateCustomFilter = function (customFilterOption, values, cellValue) {\n        if (customFilterOption == null) {\n            return;\n        }\n        var predicate = customFilterOption.predicate;\n        // only execute the custom filter if a value exists or a value isn't required, i.e. input is hidden\n        if (predicate != null && !values.some(function (v) { return v == null; })) {\n            return predicate(values, cellValue);\n        }\n        // No custom filter invocation, indicate that to the caller.\n        return;\n    };\n    SimpleFilter.prototype.isBlank = function (cellValue) {\n        return cellValue == null ||\n            (typeof cellValue === 'string' && cellValue.trim().length === 0);\n    };\n    SimpleFilter.EMPTY = 'empty';\n    SimpleFilter.BLANK = 'blank';\n    SimpleFilter.NOT_BLANK = 'notBlank';\n    SimpleFilter.EQUALS = 'equals';\n    SimpleFilter.NOT_EQUAL = 'notEqual';\n    SimpleFilter.LESS_THAN = 'lessThan';\n    SimpleFilter.LESS_THAN_OR_EQUAL = 'lessThanOrEqual';\n    SimpleFilter.GREATER_THAN = 'greaterThan';\n    SimpleFilter.GREATER_THAN_OR_EQUAL = 'greaterThanOrEqual';\n    SimpleFilter.IN_RANGE = 'inRange';\n    SimpleFilter.CONTAINS = 'contains';\n    SimpleFilter.NOT_CONTAINS = 'notContains';\n    SimpleFilter.STARTS_WITH = 'startsWith';\n    SimpleFilter.ENDS_WITH = 'endsWith';\n    __decorate$j([\n        RefSelector('eOptions1')\n    ], SimpleFilter.prototype, \"eType1\", void 0);\n    __decorate$j([\n        RefSelector('eOptions2')\n    ], SimpleFilter.prototype, \"eType2\", void 0);\n    __decorate$j([\n        RefSelector('eJoinOperatorPanel')\n    ], SimpleFilter.prototype, \"eJoinOperatorPanel\", void 0);\n    __decorate$j([\n        RefSelector('eJoinOperatorAnd')\n    ], SimpleFilter.prototype, \"eJoinOperatorAnd\", void 0);\n    __decorate$j([\n        RefSelector('eJoinOperatorOr')\n    ], SimpleFilter.prototype, \"eJoinOperatorOr\", void 0);\n    __decorate$j([\n        RefSelector('eCondition1Body')\n    ], SimpleFilter.prototype, \"eCondition1Body\", void 0);\n    __decorate$j([\n        RefSelector('eCondition2Body')\n    ], SimpleFilter.prototype, \"eCondition2Body\", void 0);\n    return SimpleFilter;\n}(ProvidedFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$h = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar ScalarFilter = /** @class */ (function (_super) {\n    __extends$h(ScalarFilter, _super);\n    function ScalarFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ScalarFilter.prototype.setParams = function (params) {\n        _super.prototype.setParams.call(this, params);\n        this.scalarFilterParams = params;\n    };\n    ScalarFilter.prototype.evaluateNullValue = function (filterType) {\n        switch (filterType) {\n            case ScalarFilter.EQUALS:\n            case ScalarFilter.NOT_EQUAL:\n                if (this.scalarFilterParams.includeBlanksInEquals) {\n                    return true;\n                }\n                break;\n            case ScalarFilter.GREATER_THAN:\n            case ScalarFilter.GREATER_THAN_OR_EQUAL:\n                if (this.scalarFilterParams.includeBlanksInGreaterThan) {\n                    return true;\n                }\n                break;\n            case ScalarFilter.LESS_THAN:\n            case ScalarFilter.LESS_THAN_OR_EQUAL:\n                if (this.scalarFilterParams.includeBlanksInLessThan) {\n                    return true;\n                }\n                break;\n            case ScalarFilter.IN_RANGE:\n                if (this.scalarFilterParams.includeBlanksInRange) {\n                    return true;\n                }\n                break;\n            case ScalarFilter.BLANK:\n                return true;\n            case ScalarFilter.NOT_BLANK:\n                return false;\n        }\n        return false;\n    };\n    ScalarFilter.prototype.evaluateNonNullValue = function (values, cellValue, filterModel) {\n        var comparator = this.comparator();\n        var compareResult = values[0] != null ? comparator(values[0], cellValue) : 0;\n        switch (filterModel.type) {\n            case ScalarFilter.EQUALS:\n                return compareResult === 0;\n            case ScalarFilter.NOT_EQUAL:\n                return compareResult !== 0;\n            case ScalarFilter.GREATER_THAN:\n                return compareResult > 0;\n            case ScalarFilter.GREATER_THAN_OR_EQUAL:\n                return compareResult >= 0;\n            case ScalarFilter.LESS_THAN:\n                return compareResult < 0;\n            case ScalarFilter.LESS_THAN_OR_EQUAL:\n                return compareResult <= 0;\n            case ScalarFilter.IN_RANGE: {\n                var compareToResult = comparator(values[1], cellValue);\n                return this.scalarFilterParams.inRangeInclusive ?\n                    compareResult >= 0 && compareToResult <= 0 :\n                    compareResult > 0 && compareToResult < 0;\n            }\n            case ScalarFilter.BLANK:\n                return this.isBlank(cellValue);\n            case ScalarFilter.NOT_BLANK:\n                return !this.isBlank(cellValue);\n            default:\n                console.warn('AG Grid: Unexpected type of filter \"' + filterModel.type + '\", it looks like the filter was configured with incorrect Filter Options');\n                return true;\n        }\n    };\n    return ScalarFilter;\n}(SimpleFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$i = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$5 = (undefined && undefined.__assign) || function () {\n    __assign$5 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$5.apply(this, arguments);\n};\nvar __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DEFAULT_MIN_YEAR = 1000;\nvar DEFAULT_MAX_YEAR = Infinity;\nvar DateFilter = /** @class */ (function (_super) {\n    __extends$i(DateFilter, _super);\n    function DateFilter() {\n        var _this = _super.call(this, 'dateFilter') || this;\n        _this.minValidYear = DEFAULT_MIN_YEAR;\n        _this.maxValidYear = DEFAULT_MAX_YEAR;\n        return _this;\n    }\n    DateFilter.prototype.afterGuiAttached = function (params) {\n        _super.prototype.afterGuiAttached.call(this, params);\n        this.dateCondition1FromComp.afterGuiAttached(params);\n    };\n    DateFilter.prototype.mapValuesFromModel = function (filterModel) {\n        // unlike the other filters, we do two things here:\n        // 1) allow for different attribute names (same as done for other filters) (eg the 'from' and 'to'\n        //    are in different locations in Date and Number filter models)\n        // 2) convert the type (because Date filter uses Dates, however model is 'string')\n        //\n        // NOTE: The conversion of string to date also removes the timezone - i.e. when user picks\n        //       a date from the UI, it will have timezone info in it. This is lost when creating\n        //       the model. When we recreate the date again here, it's without a timezone.\n        var _a = filterModel || {}, dateFrom = _a.dateFrom, dateTo = _a.dateTo, type = _a.type;\n        return [\n            dateFrom && parseDateTimeFromString(dateFrom) || null,\n            dateTo && parseDateTimeFromString(dateTo) || null,\n        ].slice(0, this.getNumberOfInputs(type));\n    };\n    DateFilter.prototype.comparator = function () {\n        return this.dateFilterParams.comparator ? this.dateFilterParams.comparator : this.defaultComparator.bind(this);\n    };\n    DateFilter.prototype.defaultComparator = function (filterDate, cellValue) {\n        // The default comparator assumes that the cellValue is a date\n        var cellAsDate = cellValue;\n        if (cellValue == null || cellAsDate < filterDate) {\n            return -1;\n        }\n        if (cellAsDate > filterDate) {\n            return 1;\n        }\n        return 0;\n    };\n    DateFilter.prototype.setParams = function (params) {\n        _super.prototype.setParams.call(this, params);\n        this.dateFilterParams = params;\n        var yearParser = function (param, fallback) {\n            if (params[param] != null) {\n                if (!isNaN(params[param])) {\n                    return params[param] == null ? fallback : Number(params[param]);\n                }\n                else {\n                    console.warn(\"AG Grid: DateFilter \" + param + \" is not a number\");\n                }\n            }\n            return fallback;\n        };\n        this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);\n        this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);\n        if (this.minValidYear > this.maxValidYear) {\n            console.warn(\"AG Grid: DateFilter minValidYear should be <= maxValidYear\");\n        }\n        this.createDateComponents();\n    };\n    DateFilter.prototype.createDateComponents = function () {\n        var _this = this;\n        var createDateCompWrapper = function (element) {\n            return new DateCompWrapper(_this.getContext(), _this.userComponentFactory, {\n                onDateChanged: function () { return _this.onUiChanged(); },\n                filterParams: _this.dateFilterParams\n            }, element);\n        };\n        this.dateCondition1FromComp = createDateCompWrapper(this.eCondition1PanelFrom);\n        this.dateCondition1ToComp = createDateCompWrapper(this.eCondition1PanelTo);\n        this.dateCondition2FromComp = createDateCompWrapper(this.eCondition2PanelFrom);\n        this.dateCondition2ToComp = createDateCompWrapper(this.eCondition2PanelTo);\n        this.addDestroyFunc(function () {\n            _this.forEachInput(function (element) { return element.destroy(); });\n        });\n    };\n    DateFilter.prototype.setElementValue = function (element, value, silent) {\n        element.setDate(value);\n    };\n    DateFilter.prototype.setElementDisplayed = function (element, displayed) {\n        element.setDisplayed(displayed);\n    };\n    DateFilter.prototype.setElementDisabled = function (element, disabled) {\n        element.setDisabled(disabled);\n    };\n    DateFilter.prototype.getDefaultFilterOptions = function () {\n        return DateFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    DateFilter.prototype.createValueTemplate = function (position) {\n        var pos = position === ConditionPosition.One ? '1' : '2';\n        return /* html */ \"\\n            <div class=\\\"ag-filter-body\\\" ref=\\\"eCondition\" + pos + \"Body\\\">\\n                <div class=\\\"ag-filter-from ag-filter-date-from\\\" ref=\\\"eCondition\" + pos + \"PanelFrom\\\"></div>\\n                <div class=\\\"ag-filter-to ag-filter-date-to\\\" ref=\\\"eCondition\" + pos + \"PanelTo\\\"></div>\\n            </div>\";\n    };\n    DateFilter.prototype.isConditionUiComplete = function (position) {\n        var _this = this;\n        if (!_super.prototype.isConditionUiComplete.call(this, position)) {\n            return false;\n        }\n        var isValidDate = function (value) { return value != null\n            && value.getUTCFullYear() >= _this.minValidYear\n            && value.getUTCFullYear() <= _this.maxValidYear; };\n        var valid = true;\n        this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n            if (elPosition !== position || !valid || index >= numberOfInputs) {\n                return;\n            }\n            valid = valid && isValidDate(element.getDate());\n        });\n        return valid;\n    };\n    DateFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n        return aSimple.dateFrom === bSimple.dateFrom\n            && aSimple.dateTo === bSimple.dateTo\n            && aSimple.type === bSimple.type;\n    };\n    DateFilter.prototype.getFilterType = function () {\n        return 'date';\n    };\n    DateFilter.prototype.createCondition = function (position) {\n        var type = this.getConditionTypes()[position];\n        var model = {};\n        var values = this.getValues(position);\n        if (values.length > 0) {\n            model.dateFrom = serialiseDate(values[0]);\n        }\n        if (values.length > 1) {\n            model.dateTo = serialiseDate(values[1]);\n        }\n        return __assign$5({ dateFrom: null, dateTo: null, filterType: this.getFilterType(), type: type }, model);\n    };\n    DateFilter.prototype.resetPlaceholder = function () {\n        var globalTranslate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var placeholder = this.translate('dateFormatOoo');\n        var ariaLabel = globalTranslate('ariaFilterValue', 'Filter Value');\n        this.forEachInput(function (element) {\n            element.setInputPlaceholder(placeholder);\n            element.setInputAriaLabel(ariaLabel);\n        });\n    };\n    DateFilter.prototype.getInputs = function () {\n        return [\n            [this.dateCondition1FromComp, this.dateCondition1ToComp],\n            [this.dateCondition2FromComp, this.dateCondition2ToComp],\n        ];\n    };\n    DateFilter.prototype.getValues = function (position) {\n        var result = [];\n        this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n            if (position === elPosition && index < numberOfInputs) {\n                result.push(element.getDate());\n            }\n        });\n        return result;\n    };\n    DateFilter.DEFAULT_FILTER_OPTIONS = [\n        ScalarFilter.EQUALS,\n        ScalarFilter.GREATER_THAN,\n        ScalarFilter.LESS_THAN,\n        ScalarFilter.NOT_EQUAL,\n        ScalarFilter.IN_RANGE,\n        ScalarFilter.BLANK,\n        ScalarFilter.NOT_BLANK,\n    ];\n    __decorate$k([\n        RefSelector('eCondition1PanelFrom')\n    ], DateFilter.prototype, \"eCondition1PanelFrom\", void 0);\n    __decorate$k([\n        RefSelector('eCondition1PanelTo')\n    ], DateFilter.prototype, \"eCondition1PanelTo\", void 0);\n    __decorate$k([\n        RefSelector('eCondition2PanelFrom')\n    ], DateFilter.prototype, \"eCondition2PanelFrom\", void 0);\n    __decorate$k([\n        RefSelector('eCondition2PanelTo')\n    ], DateFilter.prototype, \"eCondition2PanelTo\", void 0);\n    __decorate$k([\n        Autowired('userComponentFactory')\n    ], DateFilter.prototype, \"userComponentFactory\", void 0);\n    return DateFilter;\n}(ScalarFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$j = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar SimpleFloatingFilter = /** @class */ (function (_super) {\n    __extends$j(SimpleFloatingFilter, _super);\n    function SimpleFloatingFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SimpleFloatingFilter.prototype.getDefaultDebounceMs = function () {\n        return 0;\n    };\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    SimpleFloatingFilter.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    // used by:\n    // 1) NumberFloatingFilter & TextFloatingFilter: Always, for both when editable and read only.\n    // 2) DateFloatingFilter: Only when read only (as we show text rather than a date picker when read only)\n    SimpleFloatingFilter.prototype.getTextFromModel = function (model) {\n        if (!model) {\n            return null;\n        }\n        var isCombined = model.operator != null;\n        if (isCombined) {\n            var combinedModel = model;\n            var _a = combinedModel || {}, condition1 = _a.condition1, condition2 = _a.condition2;\n            var customOption1 = this.optionsFactory.getCustomOption(condition1.type);\n            var customOption2 = this.optionsFactory.getCustomOption(condition2.type);\n            return [\n                this.conditionToString(condition1, customOption1),\n                combinedModel.operator,\n                this.conditionToString(condition2, customOption2),\n            ].join(' ');\n        }\n        else {\n            var condition = model;\n            var customOption = this.optionsFactory.getCustomOption(condition.type);\n            // For custom filter options we display the Name of the filter instead\n            // of displaying the `from` value, as it wouldn't be relevant\n            var _b = customOption || {}, displayKey = _b.displayKey, displayName = _b.displayName, numberOfInputs = _b.numberOfInputs;\n            if (displayKey && displayName && numberOfInputs === 0) {\n                this.gridOptionsWrapper.getLocaleTextFunc()(displayKey, displayName);\n                return displayName;\n            }\n            return this.conditionToString(condition, customOption);\n        }\n    };\n    SimpleFloatingFilter.prototype.isEventFromFloatingFilter = function (event) {\n        return event && event.afterFloatingFilter;\n    };\n    SimpleFloatingFilter.prototype.getLastType = function () {\n        return this.lastType;\n    };\n    SimpleFloatingFilter.prototype.isReadOnly = function () {\n        return this.readOnly;\n    };\n    SimpleFloatingFilter.prototype.setLastTypeFromModel = function (model) {\n        // if no model provided by the parent filter use default\n        if (!model) {\n            this.lastType = this.optionsFactory.getDefaultOption();\n            return;\n        }\n        var isCombined = model.operator;\n        var condition;\n        if (isCombined) {\n            var combinedModel = model;\n            condition = combinedModel.condition1;\n        }\n        else {\n            condition = model;\n        }\n        this.lastType = condition.type;\n    };\n    SimpleFloatingFilter.prototype.canWeEditAfterModelFromParentFilter = function (model) {\n        if (!model) {\n            // if no model, then we can edit as long as the lastType is something we can edit, as this\n            // is the type we will provide to the parent filter if the user decides to use the floating filter.\n            return this.isTypeEditable(this.lastType);\n        }\n        // never allow editing if the filter is combined (ie has two parts)\n        var isCombined = model.operator;\n        if (isCombined) {\n            return false;\n        }\n        var simpleModel = model;\n        return this.isTypeEditable(simpleModel.type);\n    };\n    SimpleFloatingFilter.prototype.init = function (params) {\n        this.optionsFactory = new OptionsFactory();\n        this.optionsFactory.init(params.filterParams, this.getDefaultFilterOptions());\n        this.lastType = this.optionsFactory.getDefaultOption();\n        // readOnly is a property of IProvidedFilterParams - we need to find a better (type-safe)\n        // way to support reading this in the future.\n        this.readOnly = !!params.filterParams.readOnly;\n        // we are editable if:\n        // 1) there is a type (user has configured filter wrong if not type)\n        //  AND\n        // 2) the default type is not 'in range'\n        var editable = this.isTypeEditable(this.lastType);\n        this.setEditable(editable);\n    };\n    SimpleFloatingFilter.prototype.doesFilterHaveSingleInput = function (filterType) {\n        var customFilterOption = this.optionsFactory.getCustomOption(filterType);\n        var numberOfInputs = (customFilterOption || {}).numberOfInputs;\n        return numberOfInputs == null || numberOfInputs == 1;\n    };\n    SimpleFloatingFilter.prototype.isTypeEditable = function (type) {\n        var uneditableTypes = [\n            SimpleFilter.IN_RANGE, SimpleFilter.EMPTY, SimpleFilter.BLANK, SimpleFilter.NOT_BLANK,\n        ];\n        return !!type &&\n            !this.isReadOnly() &&\n            this.doesFilterHaveSingleInput(type) &&\n            uneditableTypes.indexOf(type) < 0;\n    };\n    return SimpleFloatingFilter;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$k = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DateFloatingFilter = /** @class */ (function (_super) {\n    __extends$k(DateFloatingFilter, _super);\n    function DateFloatingFilter() {\n        return _super.call(this, /* html */ \"\\n            <div class=\\\"ag-floating-filter-input\\\" role=\\\"presentation\\\">\\n                <ag-input-text-field ref=\\\"eReadOnlyText\\\"></ag-input-text-field>\\n                <div ref=\\\"eDateWrapper\\\" style=\\\"display: flex;\\\"></div>\\n            </div>\") || this;\n    }\n    DateFloatingFilter.prototype.getDefaultFilterOptions = function () {\n        return DateFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    DateFloatingFilter.prototype.conditionToString = function (condition, options) {\n        var type = condition.type;\n        var numberOfInputs = (options || {}).numberOfInputs;\n        var isRange = type == SimpleFilter.IN_RANGE || numberOfInputs === 2;\n        var dateFrom = parseDateTimeFromString(condition.dateFrom);\n        var dateTo = parseDateTimeFromString(condition.dateTo);\n        if (isRange) {\n            return serialiseDate(dateFrom, false) + \"-\" + serialiseDate(dateTo, false);\n        }\n        if (dateFrom != null) {\n            return \"\" + serialiseDate(dateFrom, false);\n        }\n        // cater for when the type doesn't need a value\n        return \"\" + type;\n    };\n    DateFloatingFilter.prototype.init = function (params) {\n        _super.prototype.init.call(this, params);\n        this.params = params;\n        this.createDateComponent();\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.eReadOnlyText\n            .setDisabled(true)\n            .setInputAriaLabel(translate('ariaDateFilterInput', 'Date Filter Input'));\n    };\n    DateFloatingFilter.prototype.setEditable = function (editable) {\n        setDisplayed(this.eDateWrapper, editable);\n        setDisplayed(this.eReadOnlyText.getGui(), !editable);\n    };\n    DateFloatingFilter.prototype.onParentModelChanged = function (model, event) {\n        // We don't want to update the floating filter if the floating filter caused the change,\n        // because the UI is already in sync. if we didn't do this, the UI would behave strangely\n        // as it would be updating as the user is typing\n        if (this.isEventFromFloatingFilter(event)) {\n            return;\n        }\n        _super.prototype.setLastTypeFromModel.call(this, model);\n        var allowEditing = !this.isReadOnly() &&\n            this.canWeEditAfterModelFromParentFilter(model);\n        this.setEditable(allowEditing);\n        if (allowEditing) {\n            if (model) {\n                var dateModel = model;\n                this.dateComp.setDate(parseDateTimeFromString(dateModel.dateFrom));\n            }\n            else {\n                this.dateComp.setDate(null);\n            }\n            this.eReadOnlyText.setValue('');\n        }\n        else {\n            this.eReadOnlyText.setValue(this.getTextFromModel(model));\n            this.dateComp.setDate(null);\n        }\n    };\n    DateFloatingFilter.prototype.onDateChanged = function () {\n        var _this = this;\n        var filterValueDate = this.dateComp.getDate();\n        var filterValueText = serialiseDate(filterValueDate);\n        this.params.parentFilterInstance(function (filterInstance) {\n            if (filterInstance) {\n                var date = parseDateTimeFromString(filterValueText);\n                filterInstance.onFloatingFilterChanged(_this.getLastType() || null, date);\n            }\n        });\n    };\n    DateFloatingFilter.prototype.createDateComponent = function () {\n        var _this = this;\n        var debounceMs = ProvidedFilter.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs());\n        var dateComponentParams = {\n            onDateChanged: debounce(this.onDateChanged.bind(this), debounceMs),\n            filterParams: this.params.column.getColDef().filterParams\n        };\n        this.dateComp = new DateCompWrapper(this.getContext(), this.userComponentFactory, dateComponentParams, this.eDateWrapper);\n        this.addDestroyFunc(function () { return _this.dateComp.destroy(); });\n    };\n    __decorate$l([\n        Autowired('userComponentFactory')\n    ], DateFloatingFilter.prototype, \"userComponentFactory\", void 0);\n    __decorate$l([\n        RefSelector('eReadOnlyText')\n    ], DateFloatingFilter.prototype, \"eReadOnlyText\", void 0);\n    __decorate$l([\n        RefSelector('eDateWrapper')\n    ], DateFloatingFilter.prototype, \"eDateWrapper\", void 0);\n    return DateFloatingFilter;\n}(SimpleFloatingFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$l = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DefaultDateComponent = /** @class */ (function (_super) {\n    __extends$l(DefaultDateComponent, _super);\n    function DefaultDateComponent() {\n        return _super.call(this, /* html */ \"\\n            <div class=\\\"ag-filter-filter\\\">\\n                <ag-input-text-field class=\\\"ag-date-filter\\\" ref=\\\"eDateInput\\\"></ag-input-text-field>\\n            </div>\") || this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    DefaultDateComponent.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    DefaultDateComponent.prototype.init = function (params) {\n        var _this = this;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var inputElement = this.eDateInput.getInputElement();\n        if (this.shouldUseBrowserDatePicker(params)) {\n            inputElement.type = 'date';\n        }\n        // ensures that the input element is focussed when a clear button is clicked\n        this.addManagedListener(inputElement, 'mousedown', function () {\n            if (_this.eDateInput.isDisabled()) {\n                return;\n            }\n            inputElement.focus();\n        });\n        this.addManagedListener(inputElement, 'input', function (e) {\n            if (e.target !== eDocument.activeElement) {\n                return;\n            }\n            if (_this.eDateInput.isDisabled()) {\n                return;\n            }\n            params.onDateChanged();\n        });\n        var _a = params.filterParams || {}, minValidYear = _a.minValidYear, maxValidYear = _a.maxValidYear;\n        if (minValidYear) {\n            inputElement.min = minValidYear + \"-01-01\";\n        }\n        if (maxValidYear) {\n            inputElement.max = maxValidYear + \"-12-31\";\n        }\n    };\n    DefaultDateComponent.prototype.getDate = function () {\n        return parseDateTimeFromString(this.eDateInput.getValue());\n    };\n    DefaultDateComponent.prototype.setDate = function (date) {\n        this.eDateInput.setValue(serialiseDate(date, false));\n    };\n    DefaultDateComponent.prototype.setInputPlaceholder = function (placeholder) {\n        this.eDateInput.setInputPlaceholder(placeholder);\n    };\n    DefaultDateComponent.prototype.setDisabled = function (disabled) {\n        this.eDateInput.setDisabled(disabled);\n    };\n    DefaultDateComponent.prototype.afterGuiAttached = function (params) {\n        if (!params || !params.suppressFocus) {\n            this.eDateInput.getInputElement().focus();\n        }\n    };\n    DefaultDateComponent.prototype.shouldUseBrowserDatePicker = function (params) {\n        if (params.filterParams && params.filterParams.browserDatePicker != null) {\n            return params.filterParams.browserDatePicker;\n        }\n        return isBrowserChrome() || isBrowserFirefox();\n    };\n    __decorate$m([\n        RefSelector('eDateInput')\n    ], DefaultDateComponent.prototype, \"eDateInput\", void 0);\n    return DefaultDateComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$m = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar NumberFilter = /** @class */ (function (_super) {\n    __extends$m(NumberFilter, _super);\n    function NumberFilter() {\n        return _super.call(this, 'numberFilter') || this;\n    }\n    NumberFilter.prototype.mapValuesFromModel = function (filterModel) {\n        var _a = filterModel || {}, filter = _a.filter, filterTo = _a.filterTo, type = _a.type;\n        return [\n            filter == null ? null : filter,\n            filterTo == null ? null : filterTo,\n        ].slice(0, this.getNumberOfInputs(type));\n    };\n    NumberFilter.prototype.getDefaultDebounceMs = function () {\n        return 500;\n    };\n    NumberFilter.prototype.comparator = function () {\n        return function (left, right) {\n            if (left === right) {\n                return 0;\n            }\n            return left < right ? 1 : -1;\n        };\n    };\n    NumberFilter.prototype.setParams = function (params) {\n        this.numberFilterParams = params;\n        var allowedCharPattern = this.getAllowedCharPattern();\n        if (allowedCharPattern) {\n            var config = { allowedCharPattern: allowedCharPattern };\n            this.resetTemplate({\n                'eValue-index0-1': config,\n                'eValue-index1-1': config,\n                'eValue-index0-2': config,\n                'eValue-index1-2': config,\n            });\n        }\n        _super.prototype.setParams.call(this, params);\n    };\n    NumberFilter.prototype.getDefaultFilterOptions = function () {\n        return NumberFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    NumberFilter.prototype.createValueTemplate = function (position) {\n        var pos = position === ConditionPosition.One ? '1' : '2';\n        var allowedCharPattern = this.getAllowedCharPattern();\n        var agElementTag = allowedCharPattern ? 'ag-input-text-field' : 'ag-input-number-field';\n        return /* html */ \"\\n            <div class=\\\"ag-filter-body\\\" ref=\\\"eCondition\" + pos + \"Body\\\" role=\\\"presentation\\\">\\n                <\" + agElementTag + \" class=\\\"ag-filter-from ag-filter-filter\\\" ref=\\\"eValue-index0-\" + pos + \"\\\"></\" + agElementTag + \">\\n                <\" + agElementTag + \" class=\\\"ag-filter-to ag-filter-filter\\\" ref=\\\"eValue-index1-\" + pos + \"\\\"></\" + agElementTag + \">\\n            </div>\";\n    };\n    NumberFilter.prototype.getValues = function (position) {\n        var _this = this;\n        var result = [];\n        this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n            if (position === elPosition && index < numberOfInputs) {\n                result.push(_this.stringToFloat(element.getValue()));\n            }\n        });\n        return result;\n    };\n    NumberFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n        return aSimple.filter === bSimple.filter\n            && aSimple.filterTo === bSimple.filterTo\n            && aSimple.type === bSimple.type;\n    };\n    NumberFilter.prototype.getFilterType = function () {\n        return 'number';\n    };\n    NumberFilter.prototype.stringToFloat = function (value) {\n        if (typeof value === 'number') {\n            return value;\n        }\n        var filterText = makeNull(value);\n        if (filterText != null && filterText.trim() === '') {\n            filterText = null;\n        }\n        if (this.numberFilterParams.numberParser) {\n            return this.numberFilterParams.numberParser(filterText);\n        }\n        return filterText == null || filterText.trim() === '-' ? null : parseFloat(filterText);\n    };\n    NumberFilter.prototype.createCondition = function (position) {\n        var type = this.getConditionTypes()[position];\n        var model = {\n            filterType: this.getFilterType(),\n            type: type\n        };\n        var values = this.getValues(position);\n        if (values.length > 0) {\n            model.filter = values[0];\n        }\n        if (values.length > 1) {\n            model.filterTo = values[1];\n        }\n        return model;\n    };\n    NumberFilter.prototype.getInputs = function () {\n        return [\n            [this.eValueFrom1, this.eValueTo1],\n            [this.eValueFrom2, this.eValueTo2],\n        ];\n    };\n    NumberFilter.prototype.getAllowedCharPattern = function () {\n        var allowedCharPattern = (this.numberFilterParams || {}).allowedCharPattern;\n        if (allowedCharPattern) {\n            return allowedCharPattern;\n        }\n        if (!isBrowserChrome() && !isBrowserEdge()) {\n            // only Chrome and Edge support the HTML5 number field, so for other browsers we provide an equivalent\n            // constraint instead\n            return '\\\\d\\\\-\\\\.';\n        }\n        return null;\n    };\n    NumberFilter.DEFAULT_FILTER_OPTIONS = [\n        ScalarFilter.EQUALS,\n        ScalarFilter.NOT_EQUAL,\n        ScalarFilter.LESS_THAN,\n        ScalarFilter.LESS_THAN_OR_EQUAL,\n        ScalarFilter.GREATER_THAN,\n        ScalarFilter.GREATER_THAN_OR_EQUAL,\n        ScalarFilter.IN_RANGE,\n        ScalarFilter.BLANK,\n        ScalarFilter.NOT_BLANK,\n    ];\n    __decorate$n([\n        RefSelector('eValue-index0-1')\n    ], NumberFilter.prototype, \"eValueFrom1\", void 0);\n    __decorate$n([\n        RefSelector('eValue-index1-1')\n    ], NumberFilter.prototype, \"eValueTo1\", void 0);\n    __decorate$n([\n        RefSelector('eValue-index0-2')\n    ], NumberFilter.prototype, \"eValueFrom2\", void 0);\n    __decorate$n([\n        RefSelector('eValue-index1-2')\n    ], NumberFilter.prototype, \"eValueTo2\", void 0);\n    return NumberFilter;\n}(ScalarFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$n = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$6 = (undefined && undefined.__assign) || function () {\n    __assign$6 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$6.apply(this, arguments);\n};\nvar __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TextFilter = /** @class */ (function (_super) {\n    __extends$n(TextFilter, _super);\n    function TextFilter() {\n        return _super.call(this, 'textFilter') || this;\n    }\n    TextFilter.trimInput = function (value) {\n        var trimmedInput = value && value.trim();\n        // trim the input, unless it is all whitespace (this is consistent with Excel behaviour)\n        return trimmedInput === '' ? value : trimmedInput;\n    };\n    TextFilter.prototype.getDefaultDebounceMs = function () {\n        return 500;\n    };\n    TextFilter.prototype.setParams = function (params) {\n        _super.prototype.setParams.call(this, params);\n        this.textFilterParams = params;\n        this.matcher = this.getTextMatcher();\n        this.formatter = this.textFilterParams.textFormatter ||\n            (this.textFilterParams.caseSensitive ? TextFilter.DEFAULT_FORMATTER : TextFilter.DEFAULT_LOWERCASE_FORMATTER);\n    };\n    TextFilter.prototype.getTextMatcher = function () {\n        var legacyComparator = this.textFilterParams.textCustomComparator;\n        if (legacyComparator) {\n            _.doOnce(function () { return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.'); }, 'textCustomComparator.deprecated');\n            return function (_a) {\n                var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;\n                return legacyComparator(filterOption, value, filterText);\n            };\n        }\n        return this.textFilterParams.textMatcher || TextFilter.DEFAULT_MATCHER;\n    };\n    TextFilter.prototype.createCondition = function (position) {\n        var type = this.getConditionTypes()[position];\n        var model = {\n            filterType: this.getFilterType(),\n            type: type,\n        };\n        var values = this.getValues(position);\n        if (values.length > 0) {\n            model.filter = values[0];\n        }\n        if (values.length > 1) {\n            model.filterTo = values[1];\n        }\n        return model;\n    };\n    TextFilter.prototype.getFilterType = function () {\n        return 'text';\n    };\n    TextFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n        return aSimple.filter === bSimple.filter &&\n            aSimple.filterTo === bSimple.filterTo &&\n            aSimple.type === bSimple.type;\n    };\n    TextFilter.prototype.getInputs = function () {\n        return [\n            [this.eValueFrom1, this.eValueTo1],\n            [this.eValueFrom2, this.eValueTo2],\n        ];\n    };\n    TextFilter.prototype.getValues = function (position) {\n        var _this = this;\n        var result = [];\n        this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n            if (position === elPosition && index < numberOfInputs) {\n                var value = makeNull(element.getValue());\n                var cleanValue = (_this.textFilterParams.trimInput ? TextFilter.trimInput(value) : value) || null;\n                result.push(cleanValue);\n                element.setValue(cleanValue, true); // ensure clean value is visible\n            }\n        });\n        return result;\n    };\n    TextFilter.prototype.getDefaultFilterOptions = function () {\n        return TextFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    TextFilter.prototype.createValueTemplate = function (position) {\n        var pos = position === ConditionPosition.One ? '1' : '2';\n        return /* html */ \"\\n            <div class=\\\"ag-filter-body\\\" ref=\\\"eCondition\" + pos + \"Body\\\" role=\\\"presentation\\\">\\n                <ag-input-text-field class=\\\".ag-filter-from ag-filter-filter\\\" ref=\\\"eValue-index0-\" + pos + \"\\\"></ag-input-text-field>\\n                <ag-input-text-field class=\\\"ag-filter-to ag-filter-filter\\\" ref=\\\"eValue-index1-\" + pos + \"\\\"></ag-input-text-field>\\n            </div>\";\n    };\n    TextFilter.prototype.mapValuesFromModel = function (filterModel) {\n        var _a = filterModel || {}, filter = _a.filter, filterTo = _a.filterTo, type = _a.type;\n        return [\n            filter || null,\n            filterTo || null,\n        ].slice(0, this.getNumberOfInputs(type));\n    };\n    TextFilter.prototype.evaluateNullValue = function (filterType) {\n        var filterTypesAllowNulls = [\n            SimpleFilter.NOT_EQUAL, SimpleFilter.NOT_CONTAINS, SimpleFilter.BLANK,\n        ];\n        return filterType ? filterTypesAllowNulls.indexOf(filterType) >= 0 : false;\n    };\n    TextFilter.prototype.evaluateNonNullValue = function (values, cellValue, filterModel, params) {\n        var _this = this;\n        var formattedValues = values.map(function (v) { return _this.formatter(v); }) || [];\n        var cellValueFormatted = this.formatter(cellValue);\n        var _a = this.textFilterParams, api = _a.api, colDef = _a.colDef, column = _a.column, columnApi = _a.columnApi, context = _a.context, textFormatter = _a.textFormatter;\n        if (filterModel.type === SimpleFilter.BLANK) {\n            return this.isBlank(cellValue);\n        }\n        else if (filterModel.type === SimpleFilter.NOT_BLANK) {\n            return !this.isBlank(cellValue);\n        }\n        var matcherParams = {\n            api: api,\n            colDef: colDef,\n            column: column,\n            columnApi: columnApi,\n            context: context,\n            node: params.node,\n            data: params.data,\n            filterOption: filterModel.type,\n            value: cellValueFormatted,\n            textFormatter: textFormatter,\n        };\n        return formattedValues.some(function (v) { return _this.matcher(__assign$6(__assign$6({}, matcherParams), { filterText: v })); });\n    };\n    TextFilter.DEFAULT_FILTER_OPTIONS = [\n        SimpleFilter.CONTAINS,\n        SimpleFilter.NOT_CONTAINS,\n        SimpleFilter.EQUALS,\n        SimpleFilter.NOT_EQUAL,\n        SimpleFilter.STARTS_WITH,\n        SimpleFilter.ENDS_WITH,\n        SimpleFilter.BLANK,\n        SimpleFilter.NOT_BLANK,\n    ];\n    TextFilter.DEFAULT_FORMATTER = function (from) { return from; };\n    TextFilter.DEFAULT_LOWERCASE_FORMATTER = function (from) { return from == null ? null : from.toString().toLowerCase(); };\n    TextFilter.DEFAULT_MATCHER = function (_a) {\n        var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;\n        if (filterText == null) {\n            return false;\n        }\n        switch (filterOption) {\n            case TextFilter.CONTAINS:\n                return value.indexOf(filterText) >= 0;\n            case TextFilter.NOT_CONTAINS:\n                return value.indexOf(filterText) < 0;\n            case TextFilter.EQUALS:\n                return value === filterText;\n            case TextFilter.NOT_EQUAL:\n                return value != filterText;\n            case TextFilter.STARTS_WITH:\n                return value.indexOf(filterText) === 0;\n            case TextFilter.ENDS_WITH:\n                var index = value.lastIndexOf(filterText);\n                return index >= 0 && index === (value.length - filterText.length);\n            default:\n                return false;\n        }\n    };\n    __decorate$o([\n        RefSelector('eValue-index0-1')\n    ], TextFilter.prototype, \"eValueFrom1\", void 0);\n    __decorate$o([\n        RefSelector('eValue-index1-1')\n    ], TextFilter.prototype, \"eValueTo1\", void 0);\n    __decorate$o([\n        RefSelector('eValue-index0-2')\n    ], TextFilter.prototype, \"eValueFrom2\", void 0);\n    __decorate$o([\n        RefSelector('eValue-index1-2')\n    ], TextFilter.prototype, \"eValueTo2\", void 0);\n    return TextFilter;\n}(SimpleFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$o = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TextInputFloatingFilter = /** @class */ (function (_super) {\n    __extends$o(TextInputFloatingFilter, _super);\n    function TextInputFloatingFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    TextInputFloatingFilter.prototype.postConstruct = function () {\n        this.resetTemplate();\n    };\n    TextInputFloatingFilter.prototype.resetTemplate = function (paramsMap) {\n        this.setTemplate(/* html */ \"\\n            <div class=\\\"ag-floating-filter-input\\\" role=\\\"presentation\\\">\\n                <ag-input-text-field ref=\\\"eFloatingFilterInput\\\"></ag-input-text-field>\\n            </div>\\n        \", paramsMap);\n    };\n    TextInputFloatingFilter.prototype.getDefaultDebounceMs = function () {\n        return 500;\n    };\n    TextInputFloatingFilter.prototype.onParentModelChanged = function (model, event) {\n        if (this.isEventFromFloatingFilter(event)) {\n            // if the floating filter triggered the change, it is already in sync\n            return;\n        }\n        this.setLastTypeFromModel(model);\n        this.eFloatingFilterInput.setValue(this.getTextFromModel(model));\n        this.setEditable(this.canWeEditAfterModelFromParentFilter(model));\n    };\n    TextInputFloatingFilter.prototype.init = function (params) {\n        _super.prototype.init.call(this, params);\n        this.params = params;\n        this.applyActive = ProvidedFilter.isUseApplyButton(this.params.filterParams);\n        var allowedCharPattern = this.params.filterParams.allowedCharPattern;\n        if (allowedCharPattern != null) {\n            this.resetTemplate({ eFloatingFilterInput: { allowedCharPattern: allowedCharPattern } });\n        }\n        if (!this.isReadOnly()) {\n            var debounceMs = ProvidedFilter.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs());\n            var toDebounce = debounce(this.syncUpWithParentFilter.bind(this), debounceMs);\n            var filterGui = this.eFloatingFilterInput.getGui();\n            this.addManagedListener(filterGui, 'input', toDebounce);\n            this.addManagedListener(filterGui, 'keypress', toDebounce);\n            this.addManagedListener(filterGui, 'keydown', toDebounce);\n        }\n        var columnDef = params.column.getDefinition();\n        if (this.isReadOnly() || (columnDef.filterParams &&\n            columnDef.filterParams.filterOptions &&\n            columnDef.filterParams.filterOptions.length === 1 &&\n            columnDef.filterParams.filterOptions[0] === 'inRange')) {\n            this.eFloatingFilterInput.setDisabled(true);\n        }\n        var displayName = this.columnModel.getDisplayNameForColumn(params.column, 'header', true);\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.eFloatingFilterInput.setInputAriaLabel(displayName + \" \" + translate('ariaFilterInput', 'Filter Input'));\n    };\n    TextInputFloatingFilter.prototype.syncUpWithParentFilter = function (e) {\n        var _this = this;\n        var enterKeyPressed = e.key === KeyCode.ENTER;\n        if (this.applyActive && !enterKeyPressed) {\n            return;\n        }\n        var value = this.eFloatingFilterInput.getValue();\n        if (this.params.filterParams.trimInput) {\n            value = TextFilter.trimInput(value);\n            this.eFloatingFilterInput.setValue(value, true); // ensure visible value is trimmed\n        }\n        this.params.parentFilterInstance(function (filterInstance) {\n            if (filterInstance) {\n                filterInstance.onFloatingFilterChanged(_this.getLastType() || null, value || null);\n            }\n        });\n    };\n    TextInputFloatingFilter.prototype.conditionToString = function (condition, options) {\n        var numberOfInputs = (options || {}).numberOfInputs;\n        var isRange = condition.type == SimpleFilter.IN_RANGE || numberOfInputs === 2;\n        if (isRange) {\n            return condition.filter + \"-\" + condition.filterTo;\n        }\n        // cater for when the type doesn't need a value\n        if (condition.filter != null) {\n            return \"\" + condition.filter;\n        }\n        return \"\" + condition.type;\n    };\n    TextInputFloatingFilter.prototype.setEditable = function (editable) {\n        this.eFloatingFilterInput.setDisabled(!editable);\n    };\n    __decorate$p([\n        Autowired('columnModel')\n    ], TextInputFloatingFilter.prototype, \"columnModel\", void 0);\n    __decorate$p([\n        RefSelector('eFloatingFilterInput')\n    ], TextInputFloatingFilter.prototype, \"eFloatingFilterInput\", void 0);\n    __decorate$p([\n        PostConstruct\n    ], TextInputFloatingFilter.prototype, \"postConstruct\", null);\n    return TextInputFloatingFilter;\n}(SimpleFloatingFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$p = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar NumberFloatingFilter = /** @class */ (function (_super) {\n    __extends$p(NumberFloatingFilter, _super);\n    function NumberFloatingFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    NumberFloatingFilter.prototype.getDefaultFilterOptions = function () {\n        return NumberFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    return NumberFloatingFilter;\n}(TextInputFloatingFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar TextFloatingFilter = /** @class */ (function (_super) {\n    __extends$q(TextFloatingFilter, _super);\n    function TextFloatingFilter() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    TextFloatingFilter.prototype.getDefaultFilterOptions = function () {\n        return TextFilter.DEFAULT_FILTER_OPTIONS;\n    };\n    return TextFloatingFilter;\n}(TextInputFloatingFilter));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar TouchListener = /** @class */ (function () {\n    function TouchListener(eElement, preventMouseClick) {\n        var _this = this;\n        if (preventMouseClick === void 0) { preventMouseClick = false; }\n        this.destroyFuncs = [];\n        this.touching = false;\n        this.eventService = new EventService();\n        this.eElement = eElement;\n        this.preventMouseClick = preventMouseClick;\n        var startListener = this.onTouchStart.bind(this);\n        var moveListener = this.onTouchMove.bind(this);\n        var endListener = this.onTouchEnd.bind(this);\n        this.eElement.addEventListener(\"touchstart\", startListener, { passive: true });\n        this.eElement.addEventListener(\"touchmove\", moveListener, { passive: true });\n        // we set passive=false, as we want to prevent default on this event\n        this.eElement.addEventListener(\"touchend\", endListener, { passive: false });\n        this.destroyFuncs.push(function () {\n            _this.eElement.removeEventListener(\"touchstart\", startListener, { passive: true });\n            _this.eElement.removeEventListener(\"touchmove\", moveListener, { passive: true });\n            _this.eElement.removeEventListener(\"touchend\", endListener, { passive: false });\n        });\n    }\n    TouchListener.prototype.getActiveTouch = function (touchList) {\n        for (var i = 0; i < touchList.length; i++) {\n            var matches = touchList[i].identifier === this.touchStart.identifier;\n            if (matches) {\n                return touchList[i];\n            }\n        }\n        return null;\n    };\n    TouchListener.prototype.addEventListener = function (eventType, listener) {\n        this.eventService.addEventListener(eventType, listener);\n    };\n    TouchListener.prototype.removeEventListener = function (eventType, listener) {\n        this.eventService.removeEventListener(eventType, listener);\n    };\n    TouchListener.prototype.onTouchStart = function (touchEvent) {\n        var _this = this;\n        // only looking at one touch point at any time\n        if (this.touching) {\n            return;\n        }\n        this.touchStart = touchEvent.touches[0];\n        this.touching = true;\n        this.moved = false;\n        var touchStartCopy = this.touchStart;\n        window.setTimeout(function () {\n            var touchesMatch = _this.touchStart === touchStartCopy;\n            if (_this.touching && touchesMatch && !_this.moved) {\n                _this.moved = true;\n                var event_1 = {\n                    type: TouchListener.EVENT_LONG_TAP,\n                    touchStart: _this.touchStart,\n                    touchEvent: touchEvent\n                };\n                _this.eventService.dispatchEvent(event_1);\n            }\n        }, 500);\n    };\n    TouchListener.prototype.onTouchMove = function (touchEvent) {\n        if (!this.touching) {\n            return;\n        }\n        var touch = this.getActiveTouch(touchEvent.touches);\n        if (!touch) {\n            return;\n        }\n        var eventIsFarAway = !areEventsNear(touch, this.touchStart, 4);\n        if (eventIsFarAway) {\n            this.moved = true;\n        }\n    };\n    TouchListener.prototype.onTouchEnd = function (touchEvent) {\n        if (!this.touching) {\n            return;\n        }\n        if (!this.moved) {\n            var event_2 = {\n                type: TouchListener.EVENT_TAP,\n                touchStart: this.touchStart\n            };\n            this.eventService.dispatchEvent(event_2);\n            this.checkForDoubleTap();\n        }\n        // stops the tap from also been processed as a mouse click\n        if (this.preventMouseClick) {\n            touchEvent.preventDefault();\n        }\n        this.touching = false;\n    };\n    TouchListener.prototype.checkForDoubleTap = function () {\n        var now = new Date().getTime();\n        if (this.lastTapTime && this.lastTapTime > 0) {\n            // if previous tap, see if duration is short enough to be considered double tap\n            var interval = now - this.lastTapTime;\n            if (interval > TouchListener.DOUBLE_TAP_MILLIS) {\n                // dispatch double tap event\n                var event_3 = {\n                    type: TouchListener.EVENT_DOUBLE_TAP,\n                    touchStart: this.touchStart\n                };\n                this.eventService.dispatchEvent(event_3);\n                // this stops a tripple tap ending up as two double taps\n                this.lastTapTime = null;\n            }\n            else {\n                this.lastTapTime = now;\n            }\n        }\n        else {\n            this.lastTapTime = now;\n        }\n    };\n    TouchListener.prototype.destroy = function () {\n        this.destroyFuncs.forEach(function (func) { return func(); });\n    };\n    TouchListener.EVENT_TAP = \"tap\";\n    TouchListener.EVENT_DOUBLE_TAP = \"doubleTap\";\n    TouchListener.EVENT_LONG_TAP = \"longTap\";\n    TouchListener.DOUBLE_TAP_MILLIS = 500;\n    return TouchListener;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$r = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderComp = /** @class */ (function (_super) {\n    __extends$r(HeaderComp, _super);\n    function HeaderComp() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.lastMovingChanged = 0;\n        return _this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    HeaderComp.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    HeaderComp.prototype.refresh = function (params) {\n        this.params = params;\n        // if template changed, then recreate the whole comp, the code required to manage\n        // a changing template is to difficult for what it's worth.\n        if (this.workOutTemplate() != this.currentTemplate) {\n            return false;\n        }\n        if (this.workOutShowMenu() != this.currentShowMenu) {\n            return false;\n        }\n        if (this.workOutSort() != this.currentSort) {\n            return false;\n        }\n        this.setDisplayName(params);\n        return true;\n    };\n    HeaderComp.prototype.workOutTemplate = function () {\n        var template = firstExistingValue(this.params.template, HeaderComp.TEMPLATE);\n        // take account of any newlines & whitespace before/after the actual template\n        template = template && template.trim ? template.trim() : template;\n        return template;\n    };\n    HeaderComp.prototype.init = function (params) {\n        this.params = params;\n        this.currentTemplate = this.workOutTemplate();\n        this.setTemplate(this.currentTemplate);\n        this.setupTap();\n        this.setupIcons(params.column);\n        this.setMenu();\n        this.setupSort();\n        this.setupFilterIcon();\n        this.setDisplayName(params);\n    };\n    HeaderComp.prototype.setDisplayName = function (params) {\n        if (this.currentDisplayName != params.displayName) {\n            this.currentDisplayName = params.displayName;\n            var displayNameSanitised = escapeString(this.currentDisplayName);\n            if (this.eText) {\n                this.eText.innerHTML = displayNameSanitised;\n            }\n        }\n    };\n    HeaderComp.prototype.setupIcons = function (column) {\n        this.addInIcon('sortAscending', this.eSortAsc, column);\n        this.addInIcon('sortDescending', this.eSortDesc, column);\n        this.addInIcon('sortUnSort', this.eSortNone, column);\n        this.addInIcon('menu', this.eMenu, column);\n        this.addInIcon('filter', this.eFilter, column);\n    };\n    HeaderComp.prototype.addInIcon = function (iconName, eParent, column) {\n        if (eParent == null) {\n            return;\n        }\n        var eIcon = createIconNoSpan(iconName, this.gridOptionsWrapper, column);\n        if (eIcon) {\n            eParent.appendChild(eIcon);\n        }\n    };\n    HeaderComp.prototype.setupTap = function () {\n        var _this = this;\n        var options = this.gridOptionsWrapper;\n        if (options.isSuppressTouch()) {\n            return;\n        }\n        var touchListener = new TouchListener(this.getGui(), true);\n        var suppressMenuHide = options.isSuppressMenuHide();\n        var tapMenuButton = suppressMenuHide && exists(this.eMenu);\n        var menuTouchListener = tapMenuButton ? new TouchListener(this.eMenu, true) : touchListener;\n        if (this.params.enableMenu) {\n            var eventType = tapMenuButton ? 'EVENT_TAP' : 'EVENT_LONG_TAP';\n            var showMenuFn = function (event) {\n                options.getApi().showColumnMenuAfterMouseClick(_this.params.column, event.touchStart);\n            };\n            this.addManagedListener(menuTouchListener, TouchListener[eventType], showMenuFn);\n        }\n        if (this.params.enableSorting) {\n            var tapListener = function (event) {\n                var target = event.touchStart.target;\n                // When suppressMenuHide is true, a tap on the menu icon will bubble up\n                // to the header container, in that case we should not sort\n                if (suppressMenuHide && _this.eMenu.contains(target)) {\n                    return;\n                }\n                _this.sortController.progressSort(_this.params.column, false, \"uiColumnSorted\");\n            };\n            this.addManagedListener(touchListener, TouchListener.EVENT_TAP, tapListener);\n        }\n        // if tapMenuButton is true `touchListener` and `menuTouchListener` are different\n        // so we need to make sure to destroy both listeners here\n        this.addDestroyFunc(function () { return touchListener.destroy(); });\n        if (tapMenuButton) {\n            this.addDestroyFunc(function () { return menuTouchListener.destroy(); });\n        }\n    };\n    HeaderComp.prototype.workOutShowMenu = function () {\n        // we don't show the menu if on an iPad/iPhone, as the user cannot have a pointer device/\n        // However if suppressMenuHide is set to true the menu will be displayed alwasys, so it's ok\n        // to show it on iPad in this case (as hover isn't needed). If suppressMenuHide\n        // is false (default) user will need to use longpress to display the menu.\n        var menuHides = !this.gridOptionsWrapper.isSuppressMenuHide();\n        var onIpadAndMenuHides = isIOSUserAgent() && menuHides;\n        var showMenu = this.params.enableMenu && !onIpadAndMenuHides;\n        return showMenu;\n    };\n    HeaderComp.prototype.setMenu = function () {\n        var _this = this;\n        // if no menu provided in template, do nothing\n        if (!this.eMenu) {\n            return;\n        }\n        this.currentShowMenu = this.workOutShowMenu();\n        if (!this.currentShowMenu) {\n            removeFromParent(this.eMenu);\n            return;\n        }\n        var suppressMenuHide = this.gridOptionsWrapper.isSuppressMenuHide();\n        this.addManagedListener(this.eMenu, 'click', function () { return _this.showMenu(_this.eMenu); });\n        this.eMenu.classList.toggle('ag-header-menu-always-show', suppressMenuHide);\n    };\n    HeaderComp.prototype.showMenu = function (eventSource) {\n        if (!eventSource) {\n            eventSource = this.eMenu;\n        }\n        this.menuFactory.showMenuAfterButtonClick(this.params.column, eventSource, 'columnMenu');\n    };\n    HeaderComp.prototype.removeSortIcons = function () {\n        removeFromParent(this.eSortAsc);\n        removeFromParent(this.eSortDesc);\n        removeFromParent(this.eSortNone);\n        removeFromParent(this.eSortOrder);\n    };\n    HeaderComp.prototype.workOutSort = function () {\n        return this.params.enableSorting;\n    };\n    HeaderComp.prototype.setupSort = function () {\n        var _this = this;\n        this.currentSort = this.params.enableSorting;\n        if (!this.currentSort) {\n            this.removeSortIcons();\n            return;\n        }\n        var sortUsingCtrl = this.gridOptionsWrapper.isMultiSortKeyCtrl();\n        // keep track of last time the moving changed flag was set\n        this.addManagedListener(this.params.column, Column.EVENT_MOVING_CHANGED, function () {\n            _this.lastMovingChanged = new Date().getTime();\n        });\n        // add the event on the header, so when clicked, we do sorting\n        if (this.eLabel) {\n            this.addManagedListener(this.eLabel, 'click', function (event) {\n                // sometimes when moving a column via dragging, this was also firing a clicked event.\n                // here is issue raised by user: https://ag-grid.zendesk.com/agent/tickets/1076\n                // this check stops sort if a) column is moving or b) column moved less than 200ms ago (so caters for race condition)\n                var moving = _this.params.column.isMoving();\n                var nowTime = new Date().getTime();\n                // typically there is <2ms if moving flag was set recently, as it would be done in same VM turn\n                var movedRecently = (nowTime - _this.lastMovingChanged) < 50;\n                var columnMoving = moving || movedRecently;\n                if (!columnMoving) {\n                    var multiSort = sortUsingCtrl ? (event.ctrlKey || event.metaKey) : event.shiftKey;\n                    _this.params.progressSort(multiSort);\n                }\n            });\n        }\n        this.addManagedListener(this.params.column, Column.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n        this.onSortChanged();\n        this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.setMultiSortOrder.bind(this));\n        this.setMultiSortOrder();\n    };\n    HeaderComp.prototype.onSortChanged = function () {\n        this.addOrRemoveCssClass('ag-header-cell-sorted-asc', this.params.column.isSortAscending());\n        this.addOrRemoveCssClass('ag-header-cell-sorted-desc', this.params.column.isSortDescending());\n        this.addOrRemoveCssClass('ag-header-cell-sorted-none', this.params.column.isSortNone());\n        if (this.eSortAsc) {\n            this.eSortAsc.classList.toggle('ag-hidden', !this.params.column.isSortAscending());\n        }\n        if (this.eSortDesc) {\n            this.eSortDesc.classList.toggle('ag-hidden', !this.params.column.isSortDescending());\n        }\n        if (this.eSortNone) {\n            var alwaysHideNoSort = !this.params.column.getColDef().unSortIcon && !this.gridOptionsWrapper.isUnSortIcon();\n            this.eSortNone.classList.toggle('ag-hidden', alwaysHideNoSort || !this.params.column.isSortNone());\n        }\n    };\n    // we listen here for global sort events, NOT column sort events, as we want to do this\n    // when sorting has been set on all column (if we listened just for our col (where we\n    // set the asc / desc icons) then it's possible other cols are yet to get their sorting state.\n    HeaderComp.prototype.setMultiSortOrder = function () {\n        if (!this.eSortOrder) {\n            return;\n        }\n        var col = this.params.column;\n        var allColumnsWithSorting = this.sortController.getColumnsWithSortingOrdered();\n        var indexThisCol = allColumnsWithSorting.indexOf(col);\n        var moreThanOneColSorting = allColumnsWithSorting.length > 1;\n        var showIndex = col.isSorting() && moreThanOneColSorting;\n        setDisplayed(this.eSortOrder, showIndex);\n        if (indexThisCol >= 0) {\n            this.eSortOrder.innerHTML = (indexThisCol + 1).toString();\n        }\n        else {\n            clearElement(this.eSortOrder);\n        }\n    };\n    HeaderComp.prototype.setupFilterIcon = function () {\n        if (!this.eFilter) {\n            return;\n        }\n        this.addManagedListener(this.params.column, Column.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n        this.onFilterChanged();\n    };\n    HeaderComp.prototype.onFilterChanged = function () {\n        var filterPresent = this.params.column.isFilterActive();\n        this.eFilter.classList.toggle('ag-hidden', !filterPresent);\n    };\n    HeaderComp.TEMPLATE = \"<div class=\\\"ag-cell-label-container\\\" role=\\\"presentation\\\">\\n            <span ref=\\\"eMenu\\\" class=\\\"ag-header-icon ag-header-cell-menu-button\\\" aria-hidden=\\\"true\\\"></span>\\n            <div ref=\\\"eLabel\\\" class=\\\"ag-header-cell-label\\\" role=\\\"presentation\\\">\\n                <span ref=\\\"eText\\\" class=\\\"ag-header-cell-text\\\"></span>\\n                <span ref=\\\"eFilter\\\" class=\\\"ag-header-icon ag-header-label-icon ag-filter-icon\\\" aria-hidden=\\\"true\\\"></span>\\n                <span ref=\\\"eSortOrder\\\" class=\\\"ag-header-icon ag-header-label-icon ag-sort-order\\\" aria-hidden=\\\"true\\\"></span>\\n                <span ref=\\\"eSortAsc\\\" class=\\\"ag-header-icon ag-header-label-icon ag-sort-ascending-icon\\\" aria-hidden=\\\"true\\\"></span>\\n                <span ref=\\\"eSortDesc\\\" class=\\\"ag-header-icon ag-header-label-icon ag-sort-descending-icon\\\" aria-hidden=\\\"true\\\"></span>\\n                <span ref=\\\"eSortNone\\\" class=\\\"ag-header-icon ag-header-label-icon ag-sort-none-icon\\\" aria-hidden=\\\"true\\\"></span>\\n            </div>\\n        </div>\";\n    __decorate$q([\n        Autowired('sortController')\n    ], HeaderComp.prototype, \"sortController\", void 0);\n    __decorate$q([\n        Autowired('menuFactory')\n    ], HeaderComp.prototype, \"menuFactory\", void 0);\n    __decorate$q([\n        RefSelector('eFilter')\n    ], HeaderComp.prototype, \"eFilter\", void 0);\n    __decorate$q([\n        RefSelector('eSortAsc')\n    ], HeaderComp.prototype, \"eSortAsc\", void 0);\n    __decorate$q([\n        RefSelector('eSortDesc')\n    ], HeaderComp.prototype, \"eSortDesc\", void 0);\n    __decorate$q([\n        RefSelector('eSortNone')\n    ], HeaderComp.prototype, \"eSortNone\", void 0);\n    __decorate$q([\n        RefSelector('eSortOrder')\n    ], HeaderComp.prototype, \"eSortOrder\", void 0);\n    __decorate$q([\n        RefSelector('eMenu')\n    ], HeaderComp.prototype, \"eMenu\", void 0);\n    __decorate$q([\n        RefSelector('eLabel')\n    ], HeaderComp.prototype, \"eLabel\", void 0);\n    __decorate$q([\n        RefSelector('eText')\n    ], HeaderComp.prototype, \"eText\", void 0);\n    return HeaderComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$s = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderGroupComp = /** @class */ (function (_super) {\n    __extends$s(HeaderGroupComp, _super);\n    function HeaderGroupComp() {\n        return _super.call(this, HeaderGroupComp.TEMPLATE) || this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    HeaderGroupComp.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    HeaderGroupComp.prototype.init = function (params) {\n        this.params = params;\n        this.checkWarnings();\n        this.setupLabel();\n        this.addGroupExpandIcon();\n        this.setupExpandIcons();\n    };\n    HeaderGroupComp.prototype.checkWarnings = function () {\n        var paramsAny = this.params;\n        if (paramsAny.template) {\n            var message_1 = \"AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)\";\n            doOnce(function () { return console.warn(message_1); }, 'HeaderGroupComp.templateNotSupported');\n        }\n    };\n    HeaderGroupComp.prototype.setupExpandIcons = function () {\n        var _this = this;\n        this.addInIcon(\"columnGroupOpened\", \"agOpened\");\n        this.addInIcon(\"columnGroupClosed\", \"agClosed\");\n        var expandAction = function (event) {\n            if (isStopPropagationForAgGrid(event)) {\n                return;\n            }\n            var newExpandedValue = !_this.params.columnGroup.isExpanded();\n            _this.columnModel.setColumnGroupOpened(_this.params.columnGroup.getProvidedColumnGroup(), newExpandedValue, \"uiColumnExpanded\");\n        };\n        this.addTouchAndClickListeners(this.eCloseIcon, expandAction);\n        this.addTouchAndClickListeners(this.eOpenIcon, expandAction);\n        var stopPropagationAction = function (event) {\n            stopPropagationForAgGrid(event);\n        };\n        // adding stopPropagation to the double click for the icons prevents double click action happening\n        // when the icons are clicked. if the icons are double clicked, then the groups should open and\n        // then close again straight away. if we also listened to double click, then the group would open,\n        // close, then open, which is not what we want. double click should only action if the user double\n        // clicks outside of the icons.\n        this.addManagedListener(this.eCloseIcon, \"dblclick\", stopPropagationAction);\n        this.addManagedListener(this.eOpenIcon, \"dblclick\", stopPropagationAction);\n        this.addManagedListener(this.getGui(), \"dblclick\", expandAction);\n        this.updateIconVisibility();\n        var providedColumnGroup = this.params.columnGroup.getProvidedColumnGroup();\n        this.addManagedListener(providedColumnGroup, ProvidedColumnGroup.EVENT_EXPANDED_CHANGED, this.updateIconVisibility.bind(this));\n        this.addManagedListener(providedColumnGroup, ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED, this.updateIconVisibility.bind(this));\n    };\n    HeaderGroupComp.prototype.addTouchAndClickListeners = function (eElement, action) {\n        var touchListener = new TouchListener(eElement, true);\n        this.addManagedListener(touchListener, TouchListener.EVENT_TAP, action);\n        this.addDestroyFunc(function () { return touchListener.destroy(); });\n        this.addManagedListener(eElement, \"click\", action);\n    };\n    HeaderGroupComp.prototype.updateIconVisibility = function () {\n        var columnGroup = this.params.columnGroup;\n        if (columnGroup.isExpandable()) {\n            var expanded = this.params.columnGroup.isExpanded();\n            setDisplayed(this.eOpenIcon, expanded);\n            setDisplayed(this.eCloseIcon, !expanded);\n        }\n        else {\n            setDisplayed(this.eOpenIcon, false);\n            setDisplayed(this.eCloseIcon, false);\n        }\n    };\n    HeaderGroupComp.prototype.addInIcon = function (iconName, refName) {\n        var eIcon = createIconNoSpan(iconName, this.gridOptionsWrapper, null);\n        if (eIcon) {\n            this.getRefElement(refName).appendChild(eIcon);\n        }\n    };\n    HeaderGroupComp.prototype.addGroupExpandIcon = function () {\n        if (!this.params.columnGroup.isExpandable()) {\n            setDisplayed(this.eOpenIcon, false);\n            setDisplayed(this.eCloseIcon, false);\n            return;\n        }\n    };\n    HeaderGroupComp.prototype.setupLabel = function () {\n        // no renderer, default text render\n        var displayName = this.params.displayName;\n        if (exists(displayName)) {\n            var displayNameSanitised = escapeString(displayName);\n            this.getRefElement('agLabel').innerHTML = displayNameSanitised;\n        }\n    };\n    HeaderGroupComp.TEMPLATE = \"<div class=\\\"ag-header-group-cell-label\\\" ref=\\\"agContainer\\\" role=\\\"presentation\\\">\\n            <span ref=\\\"agLabel\\\" class=\\\"ag-header-group-text\\\" role=\\\"presentation\\\"></span>\\n            <span ref=\\\"agOpened\\\" class=\\\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded\\\"></span>\\n            <span ref=\\\"agClosed\\\" class=\\\"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed\\\"></span>\\n        </div>\";\n    __decorate$r([\n        Autowired(\"columnModel\")\n    ], HeaderGroupComp.prototype, \"columnModel\", void 0);\n    __decorate$r([\n        RefSelector(\"agOpened\")\n    ], HeaderGroupComp.prototype, \"eOpenIcon\", void 0);\n    __decorate$r([\n        RefSelector(\"agClosed\")\n    ], HeaderGroupComp.prototype, \"eCloseIcon\", void 0);\n    return HeaderGroupComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$t = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar PopupComponent = /** @class */ (function (_super) {\n    __extends$t(PopupComponent, _super);\n    function PopupComponent() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    PopupComponent.prototype.isPopup = function () {\n        return true;\n    };\n    PopupComponent.prototype.setParentComponent = function (container) {\n        container.addCssClass('ag-has-popup');\n        _super.prototype.setParentComponent.call(this, container);\n    };\n    PopupComponent.prototype.destroy = function () {\n        var parentComp = this.parentComponent;\n        var hasParent = parentComp && parentComp.isAlive();\n        if (hasParent) {\n            parentComp.getGui().classList.remove('ag-has-popup');\n        }\n        _super.prototype.destroy.call(this);\n    };\n    return PopupComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$u = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar LargeTextCellEditor = /** @class */ (function (_super) {\n    __extends$u(LargeTextCellEditor, _super);\n    function LargeTextCellEditor() {\n        return _super.call(this, LargeTextCellEditor.TEMPLATE) || this;\n    }\n    LargeTextCellEditor.prototype.init = function (params) {\n        this.params = params;\n        this.focusAfterAttached = params.cellStartedEdit;\n        this.eTextArea\n            .setMaxLength(params.maxLength || 200)\n            .setCols(params.cols || 60)\n            .setRows(params.rows || 10);\n        if (exists(params.value)) {\n            this.eTextArea.setValue(params.value.toString(), true);\n        }\n        this.addGuiEventListener('keydown', this.onKeyDown.bind(this));\n    };\n    LargeTextCellEditor.prototype.onKeyDown = function (event) {\n        var key = event.key;\n        if (key === KeyCode.LEFT ||\n            key === KeyCode.UP ||\n            key === KeyCode.RIGHT ||\n            key === KeyCode.DOWN ||\n            (event.shiftKey && key === KeyCode.ENTER)) { // shift+enter allows for newlines\n            event.stopPropagation();\n        }\n    };\n    LargeTextCellEditor.prototype.afterGuiAttached = function () {\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.eTextArea.setInputAriaLabel(translate('ariaInputEditor', 'Input Editor'));\n        if (this.focusAfterAttached) {\n            this.eTextArea.getFocusableElement().focus();\n        }\n    };\n    LargeTextCellEditor.prototype.getValue = function () {\n        return this.params.parseValue(this.eTextArea.getValue());\n    };\n    LargeTextCellEditor.TEMPLATE = \"<div class=\\\"ag-large-text\\\" tabindex=\\\"0\\\">\\n            <ag-input-text-area ref=\\\"eTextArea\\\" class=\\\"ag-large-text-input\\\"></ag-input-text-area>\\n        </div>\";\n    __decorate$s([\n        RefSelector(\"eTextArea\")\n    ], LargeTextCellEditor.prototype, \"eTextArea\", void 0);\n    return LargeTextCellEditor;\n}(PopupComponent));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$v = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SelectCellEditor = /** @class */ (function (_super) {\n    __extends$v(SelectCellEditor, _super);\n    function SelectCellEditor() {\n        var _this = _super.call(this, '<div class=\"ag-cell-edit-wrapper\"><ag-select class=\"ag-cell-editor\" ref=\"eSelect\"></ag-select></div>') || this;\n        _this.startedByEnter = false;\n        return _this;\n    }\n    SelectCellEditor.prototype.init = function (params) {\n        var _this = this;\n        this.focusAfterAttached = params.cellStartedEdit;\n        if (missing(params.values)) {\n            console.warn('AG Grid: no values found for select cellEditor');\n            return;\n        }\n        this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;\n        var hasValue = false;\n        params.values.forEach(function (value) {\n            var option = { value: value };\n            var valueFormatted = _this.valueFormatterService.formatValue(params.column, null, null, value);\n            var valueFormattedExits = valueFormatted !== null && valueFormatted !== undefined;\n            option.text = valueFormattedExits ? valueFormatted : value;\n            _this.eSelect.addOption(option);\n            hasValue = hasValue || params.value === value;\n        });\n        if (hasValue) {\n            this.eSelect.setValue(params.value, true);\n        }\n        else if (params.values.length) {\n            this.eSelect.setValue(params.values[0], true);\n        }\n        // we don't want to add this if full row editing, otherwise selecting will stop the\n        // full row editing.\n        if (!this.gridOptionsWrapper.isFullRowEdit()) {\n            this.eSelect.onValueChange(function () { return params.stopEditing(); });\n        }\n    };\n    SelectCellEditor.prototype.afterGuiAttached = function () {\n        if (this.focusAfterAttached) {\n            this.eSelect.getFocusableElement().focus();\n        }\n        if (this.startedByEnter) {\n            this.eSelect.showPicker();\n        }\n    };\n    SelectCellEditor.prototype.focusIn = function () {\n        this.eSelect.getFocusableElement().focus();\n    };\n    SelectCellEditor.prototype.getValue = function () {\n        return this.eSelect.getValue();\n    };\n    SelectCellEditor.prototype.isPopup = function () {\n        return false;\n    };\n    __decorate$t([\n        Autowired('valueFormatterService')\n    ], SelectCellEditor.prototype, \"valueFormatterService\", void 0);\n    __decorate$t([\n        RefSelector('eSelect')\n    ], SelectCellEditor.prototype, \"eSelect\", void 0);\n    return SelectCellEditor;\n}(PopupComponent));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$w = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar PopupSelectCellEditor = /** @class */ (function (_super) {\n    __extends$w(PopupSelectCellEditor, _super);\n    function PopupSelectCellEditor() {\n        var _this = _super.call(this) || this;\n        doOnce(function () { return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: \"agSelectCellEditor\", cellEditorPopup: true} '); }, 'PopupSelectCellEditor.deprecated');\n        return _this;\n    }\n    PopupSelectCellEditor.prototype.isPopup = function () {\n        return true;\n    };\n    return PopupSelectCellEditor;\n}(SelectCellEditor));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$x = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$u = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TextCellEditor = /** @class */ (function (_super) {\n    __extends$x(TextCellEditor, _super);\n    function TextCellEditor() {\n        return _super.call(this, TextCellEditor.TEMPLATE) || this;\n    }\n    TextCellEditor.prototype.init = function (params) {\n        this.params = params;\n        var eInput = this.eInput;\n        var startValue;\n        // cellStartedEdit is only false if we are doing fullRow editing\n        if (params.cellStartedEdit) {\n            this.focusAfterAttached = true;\n            if (params.eventKey === KeyCode.BACKSPACE || params.eventKey === KeyCode.DELETE) {\n                startValue = '';\n            }\n            else if (params.charPress) {\n                startValue = params.charPress;\n            }\n            else {\n                startValue = this.getStartValue(params);\n                if (params.eventKey !== KeyCode.F2) {\n                    this.highlightAllOnFocus = true;\n                }\n            }\n        }\n        else {\n            this.focusAfterAttached = false;\n            startValue = this.getStartValue(params);\n        }\n        if (startValue != null) {\n            eInput.setValue(startValue, true);\n        }\n        this.addManagedListener(eInput.getGui(), 'keydown', function (event) {\n            var key = event.key;\n            if (key === KeyCode.PAGE_UP || key === KeyCode.PAGE_DOWN) {\n                event.preventDefault();\n            }\n        });\n    };\n    TextCellEditor.prototype.afterGuiAttached = function () {\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var eInput = this.eInput;\n        eInput.setInputAriaLabel(translate('ariaInputEditor', 'Input Editor'));\n        if (!this.focusAfterAttached) {\n            return;\n        }\n        // Added for AG-3238. We can't remove this explicit focus() because Chrome requires an input\n        // to be focused before setSelectionRange will work. But it triggers a bug in Safari where\n        // explicitly focusing then blurring an empty field will cause the parent container to scroll.\n        if (!isBrowserSafari()) {\n            eInput.getFocusableElement().focus();\n        }\n        var inputEl = eInput.getInputElement();\n        if (this.highlightAllOnFocus) {\n            inputEl.select();\n        }\n        else {\n            // when we started editing, we want the caret at the end, not the start.\n            // this comes into play in two scenarios:\n            //   a) when user hits F2\n            //   b) when user hits a printable character\n            var value = eInput.getValue();\n            var len = (exists(value) && value.length) || 0;\n            if (len) {\n                inputEl.setSelectionRange(len, len);\n            }\n        }\n    };\n    // gets called when tabbing trough cells and in full row edit mode\n    TextCellEditor.prototype.focusIn = function () {\n        var eInput = this.eInput;\n        var focusEl = eInput.getFocusableElement();\n        var inputEl = eInput.getInputElement();\n        focusEl.focus();\n        inputEl.select();\n    };\n    TextCellEditor.prototype.getValue = function () {\n        var eInput = this.eInput;\n        return this.params.parseValue(eInput.getValue());\n    };\n    TextCellEditor.prototype.getStartValue = function (params) {\n        var formatValue = params.useFormatter || params.column.getColDef().refData;\n        return formatValue ? params.formatValue(params.value) : params.value;\n    };\n    TextCellEditor.prototype.isPopup = function () {\n        return false;\n    };\n    TextCellEditor.TEMPLATE = '<div class=\"ag-cell-edit-wrapper\"><ag-input-text-field class=\"ag-cell-editor\" ref=\"eInput\"></ag-input-text-field></div>';\n    __decorate$u([\n        RefSelector('eInput')\n    ], TextCellEditor.prototype, \"eInput\", void 0);\n    return TextCellEditor;\n}(PopupComponent));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$y = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar PopupTextCellEditor = /** @class */ (function (_super) {\n    __extends$y(PopupTextCellEditor, _super);\n    function PopupTextCellEditor() {\n        var _this = _super.call(this) || this;\n        doOnce(function () { return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: \"agTextCellEditor\", cellEditorPopup: true} '); }, 'PopupTextCellEditor.deprecated');\n        return _this;\n    }\n    PopupTextCellEditor.prototype.isPopup = function () {\n        return true;\n    };\n    return PopupTextCellEditor;\n}(TextCellEditor));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$z = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$v = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ARROW_UP = '\\u2191';\nvar ARROW_DOWN = '\\u2193';\nvar AnimateShowChangeCellRenderer = /** @class */ (function (_super) {\n    __extends$z(AnimateShowChangeCellRenderer, _super);\n    function AnimateShowChangeCellRenderer() {\n        var _this = _super.call(this, AnimateShowChangeCellRenderer.TEMPLATE) || this;\n        _this.refreshCount = 0;\n        return _this;\n    }\n    AnimateShowChangeCellRenderer.prototype.init = function (params) {\n        // this.params = params;\n        this.eValue = this.queryForHtmlElement('.ag-value-change-value');\n        this.eDelta = this.queryForHtmlElement('.ag-value-change-delta');\n        this.refresh(params);\n    };\n    AnimateShowChangeCellRenderer.prototype.showDelta = function (params, delta) {\n        var absDelta = Math.abs(delta);\n        var valueFormatted = params.formatValue(absDelta);\n        var valueToUse = exists(valueFormatted) ? valueFormatted : absDelta;\n        var deltaUp = (delta >= 0);\n        if (deltaUp) {\n            this.eDelta.innerHTML = ARROW_UP + valueToUse;\n        }\n        else {\n            // because negative, use ABS to remove sign\n            this.eDelta.innerHTML = ARROW_DOWN + valueToUse;\n        }\n        this.eDelta.classList.toggle('ag-value-change-delta-up', deltaUp);\n        this.eDelta.classList.toggle('ag-value-change-delta-down', !deltaUp);\n    };\n    AnimateShowChangeCellRenderer.prototype.setTimerToRemoveDelta = function () {\n        var _this = this;\n        // the refreshCount makes sure that if the value updates again while\n        // the below timer is waiting, then the below timer will realise it\n        // is not the most recent and will not try to remove the delta value.\n        this.refreshCount++;\n        var refreshCountCopy = this.refreshCount;\n        window.setTimeout(function () {\n            if (refreshCountCopy === _this.refreshCount) {\n                _this.hideDeltaValue();\n            }\n        }, 2000);\n    };\n    AnimateShowChangeCellRenderer.prototype.hideDeltaValue = function () {\n        this.eValue.classList.remove('ag-value-change-value-highlight');\n        clearElement(this.eDelta);\n    };\n    AnimateShowChangeCellRenderer.prototype.refresh = function (params) {\n        var value = params.value;\n        if (value === this.lastValue) {\n            return false;\n        }\n        if (exists(params.valueFormatted)) {\n            this.eValue.innerHTML = params.valueFormatted;\n        }\n        else if (exists(params.value)) {\n            this.eValue.innerHTML = value;\n        }\n        else {\n            clearElement(this.eValue);\n        }\n        // we don't show the delta if we are in the middle of a filter. see comment on FilterManager\n        // with regards processingFilterChange\n        if (this.filterManager.isSuppressFlashingCellsBecauseFiltering()) {\n            return false;\n        }\n        if (typeof value === 'number' && typeof this.lastValue === 'number') {\n            var delta = value - this.lastValue;\n            this.showDelta(params, delta);\n        }\n        // highlight the current value, but only if it's not new, otherwise it\n        // would get highlighted first time the value is shown\n        if (this.lastValue) {\n            this.eValue.classList.add('ag-value-change-value-highlight');\n        }\n        this.setTimerToRemoveDelta();\n        this.lastValue = value;\n        return true;\n    };\n    AnimateShowChangeCellRenderer.TEMPLATE = '<span>' +\n        '<span class=\"ag-value-change-delta\"></span>' +\n        '<span class=\"ag-value-change-value\"></span>' +\n        '</span>';\n    __decorate$v([\n        Autowired('filterManager')\n    ], AnimateShowChangeCellRenderer.prototype, \"filterManager\", void 0);\n    return AnimateShowChangeCellRenderer;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$A = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$w = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AnimateSlideCellRenderer = /** @class */ (function (_super) {\n    __extends$A(AnimateSlideCellRenderer, _super);\n    function AnimateSlideCellRenderer() {\n        var _this = _super.call(this, AnimateSlideCellRenderer.TEMPLATE) || this;\n        _this.refreshCount = 0;\n        _this.eCurrent = _this.queryForHtmlElement('.ag-value-slide-current');\n        return _this;\n    }\n    AnimateSlideCellRenderer.prototype.init = function (params) {\n        this.refresh(params);\n    };\n    AnimateSlideCellRenderer.prototype.addSlideAnimation = function () {\n        var _this = this;\n        this.refreshCount++;\n        // below we keep checking this, and stop working on the animation\n        // if it no longer matches - this means another animation has started\n        // and this one is stale.\n        var refreshCountCopy = this.refreshCount;\n        // if old animation, remove it\n        if (this.ePrevious) {\n            this.getGui().removeChild(this.ePrevious);\n        }\n        this.ePrevious = loadTemplate('<span class=\"ag-value-slide-previous ag-value-slide-out\"></span>');\n        this.ePrevious.innerHTML = this.eCurrent.innerHTML;\n        this.getGui().insertBefore(this.ePrevious, this.eCurrent);\n        // having timeout of 0 allows use to skip to the next css turn,\n        // so we know the previous css classes have been applied. so the\n        // complex set of setTimeout below creates the animation\n        window.setTimeout(function () {\n            if (refreshCountCopy !== _this.refreshCount) {\n                return;\n            }\n            _this.ePrevious.classList.add('ag-value-slide-out-end');\n        }, 50);\n        window.setTimeout(function () {\n            if (refreshCountCopy !== _this.refreshCount) {\n                return;\n            }\n            _this.getGui().removeChild(_this.ePrevious);\n            _this.ePrevious = null;\n        }, 3000);\n    };\n    AnimateSlideCellRenderer.prototype.refresh = function (params) {\n        var value = params.value;\n        if (missing(value)) {\n            value = '';\n        }\n        if (value === this.lastValue) {\n            return false;\n        }\n        // we don't show the delta if we are in the middle of a filter. see comment on FilterManager\n        // with regards processingFilterChange\n        if (this.filterManager.isSuppressFlashingCellsBecauseFiltering()) {\n            return false;\n        }\n        this.addSlideAnimation();\n        this.lastValue = value;\n        if (exists(params.valueFormatted)) {\n            this.eCurrent.innerHTML = params.valueFormatted;\n        }\n        else if (exists(params.value)) {\n            this.eCurrent.innerHTML = value;\n        }\n        else {\n            clearElement(this.eCurrent);\n        }\n        return true;\n    };\n    AnimateSlideCellRenderer.TEMPLATE = \"<span>\\n            <span class=\\\"ag-value-slide-current\\\"></span>\\n        </span>\";\n    __decorate$w([\n        Autowired('filterManager')\n    ], AnimateSlideCellRenderer.prototype, \"filterManager\", void 0);\n    return AnimateSlideCellRenderer;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (RowHighlightPosition) {\n    RowHighlightPosition[RowHighlightPosition[\"Above\"] = 0] = \"Above\";\n    RowHighlightPosition[RowHighlightPosition[\"Below\"] = 1] = \"Below\";\n})(exports.RowHighlightPosition || (exports.RowHighlightPosition = {}));\nvar RowNode = /** @class */ (function () {\n    function RowNode(beans) {\n        /** The current row index. If the row is filtered out or in a collapsed group, this value will be `null`. */\n        this.rowIndex = null;\n        /** The key for the group eg Ireland, UK, USA */\n        this.key = null;\n        /** Children mapped by the pivot columns. */\n        this.childrenMapped = {};\n        /**\n         * This will be `true` if it has a rowIndex assigned, otherwise `false`.\n         */\n        this.displayed = false;\n        /** The row top position in pixels. */\n        this.rowTop = null;\n        /** The top pixel for this row last time, makes sense if data set was ordered or filtered,\n         * it is used so new rows can animate in from their old position. */\n        this.oldRowTop = null;\n        /** `true` by default - can be overridden via gridOptions.isRowSelectable(rowNode) */\n        this.selectable = true;\n        /** Used by sorting service - to give deterministic sort to groups. Previously we\n         * just id for this, however id is a string and had slower sorting compared to numbers. */\n        this.__objectId = RowNode.OBJECT_ID_SEQUENCE++;\n        /** When one or more Columns are using autoHeight, this keeps track of height of each autoHeight Cell,\n         * indexed by the Column ID. */\n        this.__autoHeights = {};\n        /** `true` when nodes with the same id are being removed and added as part of the same batch transaction */\n        this.alreadyRendered = false;\n        this.highlighted = null;\n        this.selected = false;\n        this.onRowHeightChangedDebounced = debounce(this.onRowHeightChanged.bind(this), 100);\n        this.beans = beans;\n    }\n    /** Replaces the data on the `rowNode`. When complete, the grid will refresh the the entire rendered row if it is showing. */\n    RowNode.prototype.setData = function (data) {\n        this.setDataCommon(data, false);\n    };\n    // similar to setRowData, however it is expected that the data is the same data item. this\n    // is intended to be used with Redux type stores, where the whole data can be changed. we are\n    // guaranteed that the data is the same entity (so grid doesn't need to worry about the id of the\n    // underlying data changing, hence doesn't need to worry about selection). the grid, upon receiving\n    // dataChanged event, will refresh the cells rather than rip them all out (so user can show transitions).\n    RowNode.prototype.updateData = function (data) {\n        this.setDataCommon(data, true);\n    };\n    RowNode.prototype.setDataCommon = function (data, update) {\n        var oldData = this.data;\n        this.data = data;\n        this.beans.valueCache.onDataChanged();\n        this.updateDataOnDetailNode();\n        this.checkRowSelectable();\n        var event = this.createDataChangedEvent(data, oldData, update);\n        this.dispatchLocalEvent(event);\n    };\n    // when we are doing master / detail, the detail node is lazy created, but then kept around.\n    // so if we show / hide the detail, the same detail rowNode is used. so we need to keep the data\n    // in sync, otherwise expand/collapse of the detail would still show the old values.\n    RowNode.prototype.updateDataOnDetailNode = function () {\n        if (this.detailNode) {\n            this.detailNode.data = this.data;\n        }\n    };\n    RowNode.prototype.createDataChangedEvent = function (newData, oldData, update) {\n        return {\n            type: RowNode.EVENT_DATA_CHANGED,\n            node: this,\n            oldData: oldData,\n            newData: newData,\n            update: update\n        };\n    };\n    RowNode.prototype.createLocalRowEvent = function (type) {\n        return {\n            type: type,\n            node: this\n        };\n    };\n    RowNode.prototype.getRowIndexString = function () {\n        if (this.rowPinned === Constants.PINNED_TOP) {\n            return 't-' + this.rowIndex;\n        }\n        if (this.rowPinned === Constants.PINNED_BOTTOM) {\n            return 'b-' + this.rowIndex;\n        }\n        return this.rowIndex.toString();\n    };\n    RowNode.prototype.createDaemonNode = function () {\n        var oldNode = new RowNode(this.beans);\n        // just copy the id and data, this is enough for the node to be used\n        // in the selection controller (the selection controller is the only\n        // place where daemon nodes can live).\n        oldNode.id = this.id;\n        oldNode.data = this.data;\n        oldNode.daemon = true;\n        oldNode.selected = this.selected;\n        oldNode.level = this.level;\n        return oldNode;\n    };\n    RowNode.prototype.setDataAndId = function (data, id) {\n        var oldNode = exists(this.id) ? this.createDaemonNode() : null;\n        var oldData = this.data;\n        this.data = data;\n        this.updateDataOnDetailNode();\n        this.setId(id);\n        this.beans.selectionService.syncInRowNode(this, oldNode);\n        this.checkRowSelectable();\n        var event = this.createDataChangedEvent(data, oldData, false);\n        this.dispatchLocalEvent(event);\n    };\n    RowNode.prototype.checkRowSelectable = function () {\n        var isRowSelectableFunc = this.beans.gridOptionsWrapper.getIsRowSelectableFunc();\n        this.setRowSelectable(isRowSelectableFunc ? isRowSelectableFunc(this) : true);\n    };\n    RowNode.prototype.setRowSelectable = function (newVal) {\n        if (this.selectable !== newVal) {\n            this.selectable = newVal;\n            if (this.eventService) {\n                this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_SELECTABLE_CHANGED));\n            }\n        }\n    };\n    RowNode.prototype.setId = function (id) {\n        // see if user is providing the id's\n        var getRowIdFunc = this.beans.gridOptionsWrapper.getRowIdFunc();\n        if (getRowIdFunc) {\n            // if user is providing the id's, then we set the id only after the data has been set.\n            // this is important for virtual pagination and viewport, where empty rows exist.\n            if (this.data) {\n                // we pass 'true' as we skip this level when generating keys,\n                // as we don't always have the key for this level (eg when updating\n                // data via transaction on SSRM, we are getting key to look up the\n                // RowNode, don't have the RowNode yet, thus no way to get the current key)\n                var parentKeys = this.getGroupKeys(true);\n                this.id = getRowIdFunc({\n                    data: this.data,\n                    parentKeys: parentKeys.length > 0 ? parentKeys : undefined,\n                    level: this.level\n                });\n                // make sure id provided doesn't start with 'row-group-' as this is reserved. also check that\n                // it has 'startsWith' in case the user provided a number.\n                if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {\n                    console.error(\"AG Grid: Row IDs cannot start with \" + RowNode.ID_PREFIX_ROW_GROUP + \", this is a reserved prefix for AG Grid's row grouping feature.\");\n                }\n                // force id to be a string\n                if (this.id !== null && typeof this.id !== 'string') {\n                    this.id = '' + this.id;\n                }\n            }\n            else {\n                // this can happen if user has set blank into the rowNode after the row previously\n                // having data. this happens in virtual page row model, when data is delete and\n                // the page is refreshed.\n                this.id = undefined;\n            }\n        }\n        else {\n            this.id = id;\n        }\n    };\n    RowNode.prototype.getGroupKeys = function (excludeSelf) {\n        if (excludeSelf === void 0) { excludeSelf = false; }\n        var keys = [];\n        var pointer = this;\n        if (excludeSelf) {\n            pointer = pointer.parent;\n        }\n        while (pointer && pointer.level >= 0) {\n            keys.push(pointer.key);\n            pointer = pointer.parent;\n        }\n        keys.reverse();\n        return keys;\n    };\n    RowNode.prototype.isPixelInRange = function (pixel) {\n        if (!exists(this.rowTop) || !exists(this.rowHeight)) {\n            return false;\n        }\n        return pixel >= this.rowTop && pixel < (this.rowTop + this.rowHeight);\n    };\n    RowNode.prototype.setFirstChild = function (firstChild) {\n        if (this.firstChild === firstChild) {\n            return;\n        }\n        this.firstChild = firstChild;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_FIRST_CHILD_CHANGED));\n        }\n    };\n    RowNode.prototype.setLastChild = function (lastChild) {\n        if (this.lastChild === lastChild) {\n            return;\n        }\n        this.lastChild = lastChild;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_LAST_CHILD_CHANGED));\n        }\n    };\n    RowNode.prototype.setChildIndex = function (childIndex) {\n        if (this.childIndex === childIndex) {\n            return;\n        }\n        this.childIndex = childIndex;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_CHILD_INDEX_CHANGED));\n        }\n    };\n    RowNode.prototype.setRowTop = function (rowTop) {\n        this.oldRowTop = this.rowTop;\n        if (this.rowTop === rowTop) {\n            return;\n        }\n        this.rowTop = rowTop;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_TOP_CHANGED));\n        }\n        this.setDisplayed(rowTop !== null);\n    };\n    RowNode.prototype.clearRowTopAndRowIndex = function () {\n        this.oldRowTop = null;\n        this.setRowTop(null);\n        this.setRowIndex(null);\n    };\n    RowNode.prototype.setDisplayed = function (displayed) {\n        if (this.displayed === displayed) {\n            return;\n        }\n        this.displayed = displayed;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_DISPLAYED_CHANGED));\n        }\n    };\n    RowNode.prototype.setDragging = function (dragging) {\n        if (this.dragging === dragging) {\n            return;\n        }\n        this.dragging = dragging;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_DRAGGING_CHANGED));\n        }\n    };\n    RowNode.prototype.setHighlighted = function (highlighted) {\n        if (highlighted === this.highlighted) {\n            return;\n        }\n        this.highlighted = highlighted;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HIGHLIGHT_CHANGED));\n        }\n    };\n    RowNode.prototype.setAllChildrenCount = function (allChildrenCount) {\n        if (this.allChildrenCount === allChildrenCount) {\n            return;\n        }\n        this.allChildrenCount = allChildrenCount;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED));\n        }\n    };\n    RowNode.prototype.setMaster = function (master) {\n        if (this.master === master) {\n            return;\n        }\n        // if changing AWAY from master, then unexpand, otherwise\n        // next time it's shown it is expanded again\n        if (this.master && !master) {\n            this.expanded = false;\n        }\n        this.master = master;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_MASTER_CHANGED));\n        }\n    };\n    RowNode.prototype.setGroup = function (group) {\n        if (this.group === group) {\n            return;\n        }\n        // if we used to be a group, and no longer, then close the node\n        if (this.group && !group) {\n            this.expanded = false;\n        }\n        this.group = group;\n        this.updateHasChildren();\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_GROUP_CHANGED));\n        }\n    };\n    /**\n     * Sets the row height.\n     * Call if you want to change the height initially assigned to the row.\n     * After calling, you must call `api.onRowHeightChanged()` so the grid knows it needs to work out the placement of the rows. */\n    RowNode.prototype.setRowHeight = function (rowHeight, estimated) {\n        if (estimated === void 0) { estimated = false; }\n        this.rowHeight = rowHeight;\n        this.rowHeightEstimated = estimated;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HEIGHT_CHANGED));\n        }\n    };\n    RowNode.prototype.setRowAutoHeight = function (cellHeight, column) {\n        if (!this.__autoHeights) {\n            this.__autoHeights = {};\n        }\n        var autoHeights = this.__autoHeights;\n        autoHeights[column.getId()] = cellHeight;\n        if (cellHeight != null) {\n            if (this.checkAutoHeightsDebounced == null) {\n                this.checkAutoHeightsDebounced = debounce(this.checkAutoHeights.bind(this), 1);\n            }\n            this.checkAutoHeightsDebounced();\n        }\n    };\n    RowNode.prototype.checkAutoHeights = function () {\n        var notAllPresent = false;\n        var nonePresent = true;\n        var newRowHeight = 0;\n        var autoHeights = this.__autoHeights;\n        if (autoHeights == null) {\n            return;\n        }\n        var displayedAutoHeightCols = this.beans.columnModel.getAllDisplayedAutoHeightCols();\n        displayedAutoHeightCols.forEach(function (col) {\n            var cellHeight = autoHeights[col.getId()];\n            if (cellHeight == null) {\n                notAllPresent = true;\n                return;\n            }\n            nonePresent = false;\n            if (cellHeight > newRowHeight) {\n                newRowHeight = cellHeight;\n            }\n        });\n        if (notAllPresent) {\n            return;\n        }\n        // we take min of 10, so we don't adjust for empty rows. if <10, we put to default.\n        // this prevents the row starting very small when waiting for async components,\n        // which would then mean the grid squashes in far to many rows (as small heights\n        // means more rows fit in) which looks crap. so best ignore small values and assume\n        // we are still waiting for values to render.\n        if (nonePresent || newRowHeight < 10) {\n            newRowHeight = this.beans.gridOptionsWrapper.getRowHeightForNode(this).height;\n        }\n        if (newRowHeight == this.rowHeight) {\n            return;\n        }\n        this.setRowHeight(newRowHeight);\n        this.onRowHeightChangedDebounced();\n    };\n    /** This method is debounced. It is used for row auto-height. If we don't debounce,\n     * then the Row Models will end up recalculating each row position\n     * for each row height change and result in the Row Renderer laying out rows.\n     * This is particularly bad if using print layout, and showing eg 1,000 rows,\n     * each row will change it's height, causing Row Model to update 1,000 times.\n     */\n    RowNode.prototype.onRowHeightChanged = function () {\n        var rowModel = this.beans.rowModel;\n        if (rowModel.onRowHeightChanged) {\n            rowModel.onRowHeightChanged();\n        }\n    };\n    RowNode.prototype.setRowIndex = function (rowIndex) {\n        if (this.rowIndex === rowIndex) {\n            return;\n        }\n        this.rowIndex = rowIndex;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_INDEX_CHANGED));\n        }\n    };\n    RowNode.prototype.setUiLevel = function (uiLevel) {\n        if (this.uiLevel === uiLevel) {\n            return;\n        }\n        this.uiLevel = uiLevel;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_UI_LEVEL_CHANGED));\n        }\n    };\n    RowNode.prototype.setExpanded = function (expanded, e) {\n        if (this.expanded === expanded) {\n            return;\n        }\n        this.expanded = expanded;\n        if (this.eventService) {\n            this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_EXPANDED_CHANGED));\n        }\n        var event = Object.assign({}, this.createGlobalRowEvent(Events.EVENT_ROW_GROUP_OPENED), {\n            expanded: expanded,\n            event: e || null\n        });\n        this.beans.rowNodeEventThrottle.dispatchExpanded(event);\n        // when using footers we need to refresh the group row, as the aggregation\n        // values jump between group and footer\n        if (this.beans.gridOptionsWrapper.isGroupIncludeFooter()) {\n            this.beans.rowRenderer.refreshCells({ rowNodes: [this] });\n        }\n    };\n    RowNode.prototype.createGlobalRowEvent = function (type) {\n        return {\n            type: type,\n            node: this,\n            data: this.data,\n            rowIndex: this.rowIndex,\n            rowPinned: this.rowPinned,\n            context: this.beans.gridOptionsWrapper.getContext(),\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi()\n        };\n    };\n    RowNode.prototype.dispatchLocalEvent = function (event) {\n        if (this.eventService) {\n            this.eventService.dispatchEvent(event);\n        }\n    };\n    /**\n     * Replaces the value on the `rowNode` for the specified column. When complete,\n     * the grid will refresh the rendered cell on the required row only.\n     *\n     * @param colKey The column where the value should be updated\n     * @param newValue The new value\n     * @param eventSource The source of the event\n     * @returns `True` if the value was changed, otherwise `False`.\n     */\n    RowNode.prototype.setDataValue = function (colKey, newValue, eventSource) {\n        // When it is done via the editors, no 'cell changed' event gets fired, as it's assumed that\n        // the cell knows about the change given it's in charge of the editing.\n        // this method is for the client to call, so the cell listens for the change\n        // event, and also flashes the cell when the change occurs.\n        var column = this.beans.columnModel.getPrimaryColumn(colKey);\n        var oldValue = this.beans.valueService.getValue(column, this);\n        var valueChanged = this.beans.valueService.setValue(this, column, newValue, eventSource);\n        this.dispatchCellChangedEvent(column, newValue, oldValue);\n        return valueChanged;\n    };\n    RowNode.prototype.setGroupValue = function (colKey, newValue) {\n        var column = this.beans.columnModel.getGridColumn(colKey);\n        if (missing(this.groupData)) {\n            this.groupData = {};\n        }\n        var columnId = column.getColId();\n        var oldValue = this.groupData[columnId];\n        if (oldValue === newValue) {\n            return;\n        }\n        this.groupData[columnId] = newValue;\n        this.dispatchCellChangedEvent(column, newValue, oldValue);\n    };\n    // sets the data for an aggregation\n    RowNode.prototype.setAggData = function (newAggData) {\n        var _this = this;\n        // find out all keys that could potentially change\n        var colIds = getAllKeysInObjects([this.aggData, newAggData]);\n        var oldAggData = this.aggData;\n        this.aggData = newAggData;\n        // if no event service, nobody has registered for events, so no need fire event\n        if (this.eventService) {\n            colIds.forEach(function (colId) {\n                var column = _this.beans.columnModel.getGridColumn(colId);\n                var value = _this.aggData ? _this.aggData[colId] : undefined;\n                var oldValue = oldAggData ? oldAggData[colId] : undefined;\n                _this.dispatchCellChangedEvent(column, value, oldValue);\n            });\n        }\n    };\n    RowNode.prototype.updateHasChildren = function () {\n        // we need to return true when this.group=true, as this is used by server side row model\n        // (as children are lazy loaded and stored in a cache anyway). otherwise we return true\n        // if children exist.\n        var newValue = (this.group && !this.footer) || (this.childrenAfterGroup && this.childrenAfterGroup.length > 0);\n        if (newValue !== this.__hasChildren) {\n            this.__hasChildren = !!newValue;\n            if (this.eventService) {\n                this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HAS_CHILDREN_CHANGED));\n            }\n        }\n    };\n    RowNode.prototype.hasChildren = function () {\n        if (this.__hasChildren == null) {\n            this.updateHasChildren();\n        }\n        return this.__hasChildren;\n    };\n    RowNode.prototype.isEmptyRowGroupNode = function () {\n        return this.group && missingOrEmpty(this.childrenAfterGroup);\n    };\n    RowNode.prototype.dispatchCellChangedEvent = function (column, newValue, oldValue) {\n        var cellChangedEvent = {\n            type: RowNode.EVENT_CELL_CHANGED,\n            node: this,\n            column: column,\n            newValue: newValue,\n            oldValue: oldValue\n        };\n        this.dispatchLocalEvent(cellChangedEvent);\n    };\n    /**\n     * The first time `quickFilter` runs, the grid creates a one-off string representation of the row.\n     * This string is then used for the quick filter instead of hitting each column separately.\n     * When you edit, using grid editing, this string gets cleared down.\n     * However if you edit without using grid editing, you will need to clear this string down for the row to be updated with the new values.\n     * Otherwise new values will not work with the `quickFilter`. */\n    RowNode.prototype.resetQuickFilterAggregateText = function () {\n        this.quickFilterAggregateText = null;\n    };\n    RowNode.prototype.isExpandable = function () {\n        return (this.hasChildren() && !this.footer) || this.master ? true : false;\n    };\n    /** Returns:\n     * - `true` if node is selected,\n     * - `false` if the node isn't selected\n     * - `undefined` if it's partially selected (group where not all children are selected). */\n    RowNode.prototype.isSelected = function () {\n        // for footers, we just return what our sibling selected state is, as cannot select a footer\n        if (this.footer) {\n            return this.sibling.isSelected();\n        }\n        return this.selected;\n    };\n    /** Perform a depth-first search of this node and its children. */\n    RowNode.prototype.depthFirstSearch = function (callback) {\n        if (this.childrenAfterGroup) {\n            this.childrenAfterGroup.forEach(function (child) { return child.depthFirstSearch(callback); });\n        }\n        callback(this);\n    };\n    // + rowController.updateGroupsInSelection()\n    // + selectionController.calculatedSelectedForAllGroupNodes()\n    RowNode.prototype.calculateSelectedFromChildren = function () {\n        var _a;\n        var atLeastOneSelected = false;\n        var atLeastOneDeSelected = false;\n        var atLeastOneMixed = false;\n        var newSelectedValue;\n        if (!((_a = this.childrenAfterGroup) === null || _a === void 0 ? void 0 : _a.length)) {\n            return;\n        }\n        for (var i = 0; i < this.childrenAfterGroup.length; i++) {\n            var child = this.childrenAfterGroup[i];\n            // skip non-selectable nodes to prevent inconsistent selection values\n            if (!child.selectable) {\n                continue;\n            }\n            var childState = child.isSelected();\n            switch (childState) {\n                case true:\n                    atLeastOneSelected = true;\n                    break;\n                case false:\n                    atLeastOneDeSelected = true;\n                    break;\n                default:\n                    atLeastOneMixed = true;\n                    break;\n            }\n        }\n        if (atLeastOneMixed) {\n            newSelectedValue = undefined;\n        }\n        else if (atLeastOneSelected && !atLeastOneDeSelected) {\n            newSelectedValue = true;\n        }\n        else if (!atLeastOneSelected && atLeastOneDeSelected) {\n            newSelectedValue = false;\n        }\n        else {\n            newSelectedValue = undefined;\n        }\n        this.selectThisNode(newSelectedValue);\n    };\n    RowNode.prototype.setSelectedInitialValue = function (selected) {\n        this.selected = selected;\n    };\n    /**\n     * Select (or deselect) the node.\n     * @param newValue -`true` for selection, `false` for deselection.\n     * @param clearSelection - If selecting, then passing `true` will select the node exclusively (i.e. NOT do multi select). If doing deselection, `clearSelection` has no impact.\n     * @param suppressFinishActions - Pass `true` to prevent the `selectionChanged` from being fired. Note that the `rowSelected` event will still be fired.\n     */\n    RowNode.prototype.setSelected = function (newValue, clearSelection, suppressFinishActions) {\n        if (clearSelection === void 0) { clearSelection = false; }\n        if (suppressFinishActions === void 0) { suppressFinishActions = false; }\n        this.setSelectedParams({\n            newValue: newValue,\n            clearSelection: clearSelection,\n            suppressFinishActions: suppressFinishActions,\n            rangeSelect: false\n        });\n    };\n    RowNode.prototype.isRowPinned = function () {\n        return this.rowPinned === Constants.PINNED_TOP || this.rowPinned === Constants.PINNED_BOTTOM;\n    };\n    // to make calling code more readable, this is the same method as setSelected except it takes names parameters\n    RowNode.prototype.setSelectedParams = function (params) {\n        var _a;\n        var groupSelectsChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n        var newValue = params.newValue === true;\n        var clearSelection = params.clearSelection === true;\n        var suppressFinishActions = params.suppressFinishActions === true;\n        var rangeSelect = params.rangeSelect === true;\n        // groupSelectsFiltered only makes sense when group selects children\n        var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);\n        if (this.id === undefined) {\n            console.warn('AG Grid: cannot select node until id for node is known');\n            return 0;\n        }\n        if (this.rowPinned) {\n            console.warn('AG Grid: cannot select pinned rows');\n            return 0;\n        }\n        // if we are a footer, we don't do selection, just pass the info\n        // to the sibling (the parent of the group)\n        if (this.footer) {\n            return this.sibling.setSelectedParams(params);\n        }\n        if (rangeSelect && this.beans.selectionService.getLastSelectedNode()) {\n            var newRowClicked = this.beans.selectionService.getLastSelectedNode() !== this;\n            var allowMultiSelect = this.beans.gridOptionsWrapper.isRowSelectionMulti();\n            if (newRowClicked && allowMultiSelect) {\n                var nodesChanged = this.doRowRangeSelection(params.newValue);\n                this.beans.selectionService.setLastSelectedNode(this);\n                return nodesChanged;\n            }\n        }\n        var updatedCount = 0;\n        // when groupSelectsFiltered, then this node may end up intermediate despite\n        // trying to set it to true / false. this group will be calculated further on\n        // down when we call calculatedSelectedForAllGroupNodes(). we need to skip it\n        // here, otherwise the updatedCount would include it.\n        var skipThisNode = groupSelectsFiltered && this.group;\n        if (!skipThisNode) {\n            var thisNodeWasSelected = this.selectThisNode(newValue);\n            if (thisNodeWasSelected) {\n                updatedCount++;\n            }\n        }\n        if (groupSelectsChildren && ((_a = this.childrenAfterGroup) === null || _a === void 0 ? void 0 : _a.length)) {\n            updatedCount += this.selectChildNodes(newValue, groupSelectsFiltered);\n        }\n        // clear other nodes if not doing multi select\n        if (!suppressFinishActions) {\n            var clearOtherNodes = newValue && (clearSelection || !this.beans.gridOptionsWrapper.isRowSelectionMulti());\n            if (clearOtherNodes) {\n                updatedCount += this.beans.selectionService.clearOtherNodes(this);\n            }\n            // only if we selected something, then update groups and fire events\n            if (updatedCount > 0) {\n                this.beans.selectionService.updateGroupsFromChildrenSelections();\n                // this is the very end of the 'action node', so we are finished all the updates,\n                // include any parent / child changes that this method caused\n                var event_1 = {\n                    type: Events.EVENT_SELECTION_CHANGED,\n                    api: this.beans.gridApi,\n                    columnApi: this.beans.columnApi\n                };\n                this.beans.eventService.dispatchEvent(event_1);\n            }\n            // so if user next does shift-select, we know where to start the selection from\n            if (newValue) {\n                this.beans.selectionService.setLastSelectedNode(this);\n            }\n        }\n        return updatedCount;\n    };\n    // selects all rows between this node and the last selected node (or the top if this is the first selection).\n    // not to be mixed up with 'cell range selection' where you drag the mouse, this is row range selection, by\n    // holding down 'shift'.\n    RowNode.prototype.doRowRangeSelection = function (value) {\n        var _this = this;\n        if (value === void 0) { value = true; }\n        var groupsSelectChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n        var lastSelectedNode = this.beans.selectionService.getLastSelectedNode();\n        var nodesToSelect = this.beans.rowModel.getNodesInRangeForSelection(this, lastSelectedNode);\n        var updatedCount = 0;\n        nodesToSelect.forEach(function (rowNode) {\n            if (rowNode.group && groupsSelectChildren || (value === false && _this === rowNode)) {\n                return;\n            }\n            var nodeWasSelected = rowNode.selectThisNode(value);\n            if (nodeWasSelected) {\n                updatedCount++;\n            }\n        });\n        this.beans.selectionService.updateGroupsFromChildrenSelections();\n        var event = {\n            type: Events.EVENT_SELECTION_CHANGED,\n            api: this.beans.gridApi,\n            columnApi: this.beans.columnApi\n        };\n        this.beans.eventService.dispatchEvent(event);\n        return updatedCount;\n    };\n    RowNode.prototype.isParentOfNode = function (potentialParent) {\n        var parentNode = this.parent;\n        while (parentNode) {\n            if (parentNode === potentialParent) {\n                return true;\n            }\n            parentNode = parentNode.parent;\n        }\n        return false;\n    };\n    RowNode.prototype.selectThisNode = function (newValue) {\n        // we only check selectable when newValue=true (ie selecting) to allow unselecting values,\n        // as selectable is dynamic, need a way to unselect rows when selectable becomes false.\n        var selectionNotAllowed = !this.selectable && newValue;\n        var selectionNotChanged = this.selected === newValue;\n        if (selectionNotAllowed || selectionNotChanged) {\n            return false;\n        }\n        this.selected = newValue;\n        if (this.eventService) {\n            this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_SELECTED));\n        }\n        var event = this.createGlobalRowEvent(Events.EVENT_ROW_SELECTED);\n        this.beans.eventService.dispatchEvent(event);\n        return true;\n    };\n    RowNode.prototype.selectChildNodes = function (newValue, groupSelectsFiltered) {\n        var children = groupSelectsFiltered ? this.childrenAfterAggFilter : this.childrenAfterGroup;\n        if (missing(children)) {\n            return 0;\n        }\n        var updatedCount = 0;\n        for (var i = 0; i < children.length; i++) {\n            updatedCount += children[i].setSelectedParams({\n                newValue: newValue,\n                clearSelection: false,\n                suppressFinishActions: true,\n                groupSelectsFiltered: groupSelectsFiltered\n            });\n        }\n        return updatedCount;\n    };\n    /** Add an event listener. */\n    RowNode.prototype.addEventListener = function (eventType, listener) {\n        if (!this.eventService) {\n            this.eventService = new EventService();\n        }\n        this.eventService.addEventListener(eventType, listener);\n    };\n    /** Remove event listener. */\n    RowNode.prototype.removeEventListener = function (eventType, listener) {\n        if (!this.eventService) {\n            return;\n        }\n        this.eventService.removeEventListener(eventType, listener);\n        if (this.eventService.noRegisteredListenersExist()) {\n            this.eventService = null;\n        }\n    };\n    RowNode.prototype.onMouseEnter = function () {\n        this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_ENTER));\n    };\n    RowNode.prototype.onMouseLeave = function () {\n        this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_LEAVE));\n    };\n    RowNode.prototype.getFirstChildOfFirstChild = function (rowGroupColumn) {\n        var currentRowNode = this;\n        var isCandidate = true;\n        var foundFirstChildPath = false;\n        var nodeToSwapIn = null;\n        // if we are hiding groups, then if we are the first child, of the first child,\n        // all the way up to the column we are interested in, then we show the group cell.\n        while (isCandidate && !foundFirstChildPath) {\n            var parentRowNode = currentRowNode.parent;\n            var firstChild = exists(parentRowNode) && currentRowNode.firstChild;\n            if (firstChild) {\n                if (parentRowNode.rowGroupColumn === rowGroupColumn) {\n                    foundFirstChildPath = true;\n                    nodeToSwapIn = parentRowNode;\n                }\n            }\n            else {\n                isCandidate = false;\n            }\n            currentRowNode = parentRowNode;\n        }\n        return foundFirstChildPath ? nodeToSwapIn : null;\n    };\n    RowNode.prototype.isFullWidthCell = function () {\n        var isFullWidthCellFunc = this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();\n        return isFullWidthCellFunc ? isFullWidthCellFunc({ rowNode: this }) : false;\n    };\n    /**\n     * Returns the route of the row node. If the Row Node is a group, it returns the route to that Row Node.\n     * If the Row Node is not a group, it returns `undefined`.\n     */\n    RowNode.prototype.getRoute = function () {\n        if (this.key == null) {\n            return;\n        }\n        var res = [];\n        var pointer = this;\n        while (pointer.key != null) {\n            res.push(pointer.key);\n            pointer = pointer.parent;\n        }\n        return res.reverse();\n    };\n    RowNode.ID_PREFIX_ROW_GROUP = 'row-group-';\n    RowNode.ID_PREFIX_TOP_PINNED = 't-';\n    RowNode.ID_PREFIX_BOTTOM_PINNED = 'b-';\n    RowNode.OBJECT_ID_SEQUENCE = 0;\n    RowNode.EVENT_ROW_SELECTED = 'rowSelected';\n    RowNode.EVENT_DATA_CHANGED = 'dataChanged';\n    RowNode.EVENT_CELL_CHANGED = 'cellChanged';\n    RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED = 'allChildrenCountChanged';\n    RowNode.EVENT_MASTER_CHANGED = 'masterChanged';\n    RowNode.EVENT_GROUP_CHANGED = 'groupChanged';\n    RowNode.EVENT_MOUSE_ENTER = 'mouseEnter';\n    RowNode.EVENT_MOUSE_LEAVE = 'mouseLeave';\n    RowNode.EVENT_HEIGHT_CHANGED = 'heightChanged';\n    RowNode.EVENT_TOP_CHANGED = 'topChanged';\n    RowNode.EVENT_DISPLAYED_CHANGED = 'displayedChanged';\n    RowNode.EVENT_FIRST_CHILD_CHANGED = 'firstChildChanged';\n    RowNode.EVENT_LAST_CHILD_CHANGED = 'lastChildChanged';\n    RowNode.EVENT_CHILD_INDEX_CHANGED = 'childIndexChanged';\n    RowNode.EVENT_ROW_INDEX_CHANGED = 'rowIndexChanged';\n    RowNode.EVENT_EXPANDED_CHANGED = 'expandedChanged';\n    RowNode.EVENT_HAS_CHILDREN_CHANGED = 'hasChildrenChanged';\n    RowNode.EVENT_SELECTABLE_CHANGED = 'selectableChanged';\n    RowNode.EVENT_UI_LEVEL_CHANGED = 'uiLevelChanged';\n    RowNode.EVENT_HIGHLIGHT_CHANGED = 'rowHighlightChanged';\n    RowNode.EVENT_DRAGGING_CHANGED = 'draggingChanged';\n    return RowNode;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$B = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$x = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CheckboxSelectionComponent = /** @class */ (function (_super) {\n    __extends$B(CheckboxSelectionComponent, _super);\n    function CheckboxSelectionComponent() {\n        return _super.call(this, /* html*/ \"\\n            <div class=\\\"ag-selection-checkbox\\\" role=\\\"presentation\\\">\\n                <ag-checkbox role=\\\"presentation\\\" ref=\\\"eCheckbox\\\"></ag-checkbox>\\n            </div>\") || this;\n    }\n    CheckboxSelectionComponent.prototype.postConstruct = function () {\n        this.eCheckbox.setPassive(true);\n    };\n    CheckboxSelectionComponent.prototype.getCheckboxId = function () {\n        return this.eCheckbox.getInputElement().id;\n    };\n    CheckboxSelectionComponent.prototype.onDataChanged = function () {\n        // when rows are loaded for the second time, this can impact the selection, as a row\n        // could be loaded as already selected (if user scrolls down, and then up again).\n        this.onSelectionChanged();\n    };\n    CheckboxSelectionComponent.prototype.onSelectableChanged = function () {\n        this.showOrHideSelect();\n    };\n    CheckboxSelectionComponent.prototype.onSelectionChanged = function () {\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var state = this.rowNode.isSelected();\n        var stateName = state === undefined\n            ? translate('ariaIndeterminate', 'indeterminate')\n            : (state === true\n                ? translate('ariaChecked', 'checked')\n                : translate('ariaUnchecked', 'unchecked'));\n        var ariaLabel = translate('ariaRowToggleSelection', 'Press Space to toggle row selection');\n        this.eCheckbox.setValue(state, true);\n        this.eCheckbox.setInputAriaLabel(ariaLabel + \" (\" + stateName + \")\");\n    };\n    CheckboxSelectionComponent.prototype.onCheckedClicked = function (event) {\n        var groupSelectsFiltered = this.gridOptionsWrapper.isGroupSelectsFiltered();\n        var updatedCount = this.rowNode.setSelectedParams({ newValue: false, rangeSelect: event.shiftKey, groupSelectsFiltered: groupSelectsFiltered });\n        return updatedCount;\n    };\n    CheckboxSelectionComponent.prototype.onUncheckedClicked = function (event) {\n        var groupSelectsFiltered = this.gridOptionsWrapper.isGroupSelectsFiltered();\n        var updatedCount = this.rowNode.setSelectedParams({ newValue: true, rangeSelect: event.shiftKey, groupSelectsFiltered: groupSelectsFiltered });\n        return updatedCount;\n    };\n    CheckboxSelectionComponent.prototype.init = function (params) {\n        var _this = this;\n        this.rowNode = params.rowNode;\n        this.column = params.column;\n        this.onSelectionChanged();\n        // we don't want the row clicked event to fire when selecting the checkbox, otherwise the row\n        // would possibly get selected twice\n        this.addGuiEventListener('click', function (event) { return stopPropagationForAgGrid(event); });\n        // likewise we don't want double click on this icon to open a group\n        this.addGuiEventListener('dblclick', function (event) { return stopPropagationForAgGrid(event); });\n        this.addManagedListener(this.eCheckbox.getInputElement(), 'click', function (event) {\n            var isSelected = _this.eCheckbox.getValue();\n            var previousValue = _this.eCheckbox.getPreviousValue();\n            if (previousValue === undefined || isSelected === undefined) {\n                // Indeterminate state - try toggling children to determine action.\n                var result = _this.onUncheckedClicked(event || {});\n                if (result === 0) {\n                    _this.onCheckedClicked(event);\n                }\n            }\n            else if (isSelected) {\n                _this.onCheckedClicked(event);\n            }\n            else {\n                _this.onUncheckedClicked(event || {});\n            }\n        });\n        this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_SELECTED, this.onSelectionChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.onDataChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_SELECTABLE_CHANGED, this.onSelectableChanged.bind(this));\n        var isRowSelectableFunc = this.gridOptionsWrapper.getIsRowSelectableFunc();\n        var checkboxVisibleIsDynamic = isRowSelectableFunc || this.checkboxCallbackExists();\n        if (checkboxVisibleIsDynamic) {\n            var showOrHideSelectListener = this.showOrHideSelect.bind(this);\n            this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, showOrHideSelectListener);\n            this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, showOrHideSelectListener);\n            this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, showOrHideSelectListener);\n            this.showOrHideSelect();\n        }\n        this.eCheckbox.getInputElement().setAttribute('tabindex', '-1');\n    };\n    CheckboxSelectionComponent.prototype.showOrHideSelect = function () {\n        // if the isRowSelectable() is not provided the row node is selectable by default\n        var selectable = this.rowNode.selectable;\n        // checkboxSelection callback is deemed a legacy solution however we will still consider it's result.\n        // If selectable, then also check the colDef callback. if not selectable, this it short circuits - no need\n        // to call the colDef callback.\n        if (selectable && this.checkboxCallbackExists()) {\n            selectable = this.column.isCellCheckboxSelection(this.rowNode);\n        }\n        // show checkbox if both conditions are true\n        this.setVisible(selectable);\n    };\n    CheckboxSelectionComponent.prototype.checkboxCallbackExists = function () {\n        // column will be missing if groupUseEntireRow=true\n        var colDef = this.column ? this.column.getColDef() : null;\n        return !!colDef && typeof colDef.checkboxSelection === 'function';\n    };\n    __decorate$x([\n        RefSelector('eCheckbox')\n    ], CheckboxSelectionComponent.prototype, \"eCheckbox\", void 0);\n    __decorate$x([\n        PostConstruct\n    ], CheckboxSelectionComponent.prototype, \"postConstruct\", null);\n    return CheckboxSelectionComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$C = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$y = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __values$2 = (undefined && undefined.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n(function (DragSourceType) {\n    DragSourceType[DragSourceType[\"ToolPanel\"] = 0] = \"ToolPanel\";\n    DragSourceType[DragSourceType[\"HeaderCell\"] = 1] = \"HeaderCell\";\n    DragSourceType[DragSourceType[\"RowDrag\"] = 2] = \"RowDrag\";\n    DragSourceType[DragSourceType[\"ChartPanel\"] = 3] = \"ChartPanel\";\n})(exports.DragSourceType || (exports.DragSourceType = {}));\n(function (VerticalDirection) {\n    VerticalDirection[VerticalDirection[\"Up\"] = 0] = \"Up\";\n    VerticalDirection[VerticalDirection[\"Down\"] = 1] = \"Down\";\n})(exports.VerticalDirection || (exports.VerticalDirection = {}));\n(function (HorizontalDirection) {\n    HorizontalDirection[HorizontalDirection[\"Left\"] = 0] = \"Left\";\n    HorizontalDirection[HorizontalDirection[\"Right\"] = 1] = \"Right\";\n})(exports.HorizontalDirection || (exports.HorizontalDirection = {}));\nvar DragAndDropService = /** @class */ (function (_super) {\n    __extends$C(DragAndDropService, _super);\n    function DragAndDropService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.dragSourceAndParamsList = [];\n        _this.dropTargets = [];\n        return _this;\n    }\n    DragAndDropService_1 = DragAndDropService;\n    DragAndDropService.prototype.init = function () {\n        this.ePinnedIcon = createIcon('columnMovePin', this.gridOptionsWrapper, null);\n        this.eHideIcon = createIcon('columnMoveHide', this.gridOptionsWrapper, null);\n        this.eMoveIcon = createIcon('columnMoveMove', this.gridOptionsWrapper, null);\n        this.eLeftIcon = createIcon('columnMoveLeft', this.gridOptionsWrapper, null);\n        this.eRightIcon = createIcon('columnMoveRight', this.gridOptionsWrapper, null);\n        this.eGroupIcon = createIcon('columnMoveGroup', this.gridOptionsWrapper, null);\n        this.eAggregateIcon = createIcon('columnMoveValue', this.gridOptionsWrapper, null);\n        this.ePivotIcon = createIcon('columnMovePivot', this.gridOptionsWrapper, null);\n        this.eDropNotAllowedIcon = createIcon('dropNotAllowed', this.gridOptionsWrapper, null);\n    };\n    DragAndDropService.prototype.addDragSource = function (dragSource, allowTouch) {\n        if (allowTouch === void 0) { allowTouch = false; }\n        var params = {\n            eElement: dragSource.eElement,\n            dragStartPixels: dragSource.dragStartPixels,\n            onDragStart: this.onDragStart.bind(this, dragSource),\n            onDragStop: this.onDragStop.bind(this),\n            onDragging: this.onDragging.bind(this)\n        };\n        this.dragSourceAndParamsList.push({ params: params, dragSource: dragSource });\n        this.dragService.addDragSource(params, allowTouch);\n    };\n    DragAndDropService.prototype.removeDragSource = function (dragSource) {\n        var sourceAndParams = this.dragSourceAndParamsList.find(function (item) { return item.dragSource === dragSource; });\n        if (sourceAndParams) {\n            this.dragService.removeDragSource(sourceAndParams.params);\n            removeFromArray(this.dragSourceAndParamsList, sourceAndParams);\n        }\n    };\n    DragAndDropService.prototype.clearDragSourceParamsList = function () {\n        var _this = this;\n        this.dragSourceAndParamsList.forEach(function (sourceAndParams) { return _this.dragService.removeDragSource(sourceAndParams.params); });\n        this.dragSourceAndParamsList.length = 0;\n    };\n    DragAndDropService.prototype.nudge = function () {\n        if (this.dragging) {\n            this.onDragging(this.eventLastTime, true);\n        }\n    };\n    DragAndDropService.prototype.onDragStart = function (dragSource, mouseEvent) {\n        this.dragging = true;\n        this.dragSource = dragSource;\n        this.eventLastTime = mouseEvent;\n        this.dragItem = this.dragSource.getDragItem();\n        this.lastDropTarget = this.dragSource.dragSourceDropTarget;\n        if (this.dragSource.onDragStarted) {\n            this.dragSource.onDragStarted();\n        }\n        this.createGhost();\n    };\n    DragAndDropService.prototype.onDragStop = function (mouseEvent) {\n        this.eventLastTime = null;\n        this.dragging = false;\n        if (this.dragSource.onDragStopped) {\n            this.dragSource.onDragStopped();\n        }\n        if (this.lastDropTarget && this.lastDropTarget.onDragStop) {\n            var draggingEvent = this.createDropTargetEvent(this.lastDropTarget, mouseEvent, null, null, false);\n            this.lastDropTarget.onDragStop(draggingEvent);\n        }\n        this.lastDropTarget = null;\n        this.dragItem = null;\n        this.removeGhost();\n    };\n    DragAndDropService.prototype.onDragging = function (mouseEvent, fromNudge) {\n        var _this = this;\n        var hDirection = this.getHorizontalDirection(mouseEvent);\n        var vDirection = this.getVerticalDirection(mouseEvent);\n        this.eventLastTime = mouseEvent;\n        this.positionGhost(mouseEvent);\n        // check if mouseEvent intersects with any of the drop targets\n        var validDropTargets = this.dropTargets.filter(function (target) { return _this.isMouseOnDropTarget(mouseEvent, target); });\n        var len = validDropTargets.length;\n        var dropTarget = null;\n        if (len > 0) {\n            dropTarget = len === 1\n                ? validDropTargets[0]\n                // the current mouse position could intersect with more than 1 element\n                // if they are nested. In that case we need to get the most specific\n                // container, which is the one that does not contain any other targets.\n                : validDropTargets.reduce(function (prevTarget, currTarget) {\n                    if (!prevTarget) {\n                        return currTarget;\n                    }\n                    var prevContainer = prevTarget.getContainer();\n                    var currContainer = currTarget.getContainer();\n                    if (prevContainer.contains(currContainer)) {\n                        return currTarget;\n                    }\n                    return prevTarget;\n                });\n        }\n        if (dropTarget !== this.lastDropTarget) {\n            this.leaveLastTargetIfExists(mouseEvent, hDirection, vDirection, fromNudge);\n            this.enterDragTargetIfExists(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n            this.lastDropTarget = dropTarget;\n        }\n        else if (dropTarget && dropTarget.onDragging) {\n            var draggingEvent = this.createDropTargetEvent(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n            dropTarget.onDragging(draggingEvent);\n        }\n    };\n    DragAndDropService.prototype.enterDragTargetIfExists = function (dropTarget, mouseEvent, hDirection, vDirection, fromNudge) {\n        if (!dropTarget) {\n            return;\n        }\n        if (dropTarget.onDragEnter) {\n            var dragEnterEvent = this.createDropTargetEvent(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n            dropTarget.onDragEnter(dragEnterEvent);\n        }\n        this.setGhostIcon(dropTarget.getIconName ? dropTarget.getIconName() : null);\n    };\n    DragAndDropService.prototype.leaveLastTargetIfExists = function (mouseEvent, hDirection, vDirection, fromNudge) {\n        if (!this.lastDropTarget) {\n            return;\n        }\n        if (this.lastDropTarget.onDragLeave) {\n            var dragLeaveEvent = this.createDropTargetEvent(this.lastDropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n            this.lastDropTarget.onDragLeave(dragLeaveEvent);\n        }\n        this.setGhostIcon(null);\n    };\n    DragAndDropService.prototype.getAllContainersFromDropTarget = function (dropTarget) {\n        var secondaryContainers = dropTarget.getSecondaryContainers ? dropTarget.getSecondaryContainers() : null;\n        var containers = [[dropTarget.getContainer()]];\n        return secondaryContainers ? containers.concat(secondaryContainers) : containers;\n    };\n    DragAndDropService.prototype.allContainersIntersect = function (mouseEvent, containers) {\n        var e_1, _a;\n        try {\n            for (var containers_1 = __values$2(containers), containers_1_1 = containers_1.next(); !containers_1_1.done; containers_1_1 = containers_1.next()) {\n                var container = containers_1_1.value;\n                var rect = container.getBoundingClientRect();\n                // if element is not visible, then width and height are zero\n                if (rect.width === 0 || rect.height === 0) {\n                    return false;\n                }\n                var horizontalFit = mouseEvent.clientX >= rect.left && mouseEvent.clientX < rect.right;\n                var verticalFit = mouseEvent.clientY >= rect.top && mouseEvent.clientY < rect.bottom;\n                if (!horizontalFit || !verticalFit) {\n                    return false;\n                }\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (containers_1_1 && !containers_1_1.done && (_a = containers_1.return)) _a.call(containers_1);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n        return true;\n    };\n    // checks if the mouse is on the drop target. it checks eContainer and eSecondaryContainers\n    DragAndDropService.prototype.isMouseOnDropTarget = function (mouseEvent, dropTarget) {\n        var e_2, _a;\n        var allContainersFromDropTarget = this.getAllContainersFromDropTarget(dropTarget);\n        var mouseOverTarget = false;\n        try {\n            for (var allContainersFromDropTarget_1 = __values$2(allContainersFromDropTarget), allContainersFromDropTarget_1_1 = allContainersFromDropTarget_1.next(); !allContainersFromDropTarget_1_1.done; allContainersFromDropTarget_1_1 = allContainersFromDropTarget_1.next()) {\n                var currentContainers = allContainersFromDropTarget_1_1.value;\n                if (this.allContainersIntersect(mouseEvent, currentContainers)) {\n                    mouseOverTarget = true;\n                    break;\n                }\n            }\n        }\n        catch (e_2_1) { e_2 = { error: e_2_1 }; }\n        finally {\n            try {\n                if (allContainersFromDropTarget_1_1 && !allContainersFromDropTarget_1_1.done && (_a = allContainersFromDropTarget_1.return)) _a.call(allContainersFromDropTarget_1);\n            }\n            finally { if (e_2) throw e_2.error; }\n        }\n        if (dropTarget.targetContainsSource && !dropTarget.getContainer().contains(this.dragSource.eElement)) {\n            return false;\n        }\n        return mouseOverTarget && dropTarget.isInterestedIn(this.dragSource.type, this.dragSource.eElement);\n    };\n    DragAndDropService.prototype.addDropTarget = function (dropTarget) {\n        this.dropTargets.push(dropTarget);\n    };\n    DragAndDropService.prototype.removeDropTarget = function (dropTarget) {\n        this.dropTargets = this.dropTargets.filter(function (target) { return target.getContainer() !== dropTarget.getContainer(); });\n    };\n    DragAndDropService.prototype.hasExternalDropZones = function () {\n        return this.dropTargets.some(function (zones) { return zones.external; });\n    };\n    DragAndDropService.prototype.findExternalZone = function (params) {\n        var externalTargets = this.dropTargets.filter(function (target) { return target.external; });\n        return externalTargets.find(function (zone) { return zone.getContainer() === params.getContainer(); }) || null;\n    };\n    DragAndDropService.prototype.getHorizontalDirection = function (event) {\n        var clientX = this.eventLastTime && this.eventLastTime.clientX;\n        var eClientX = event.clientX;\n        if (clientX === eClientX) {\n            return null;\n        }\n        return clientX > eClientX ? exports.HorizontalDirection.Left : exports.HorizontalDirection.Right;\n    };\n    DragAndDropService.prototype.getVerticalDirection = function (event) {\n        var clientY = this.eventLastTime && this.eventLastTime.clientY;\n        var eClientY = event.clientY;\n        if (clientY === eClientY) {\n            return null;\n        }\n        return clientY > eClientY ? exports.VerticalDirection.Up : exports.VerticalDirection.Down;\n    };\n    DragAndDropService.prototype.createDropTargetEvent = function (dropTarget, event, hDirection, vDirection, fromNudge) {\n        // localise x and y to the target\n        var dropZoneTarget = dropTarget.getContainer();\n        var rect = dropZoneTarget.getBoundingClientRect();\n        var _a = this, api = _a.gridApi, columnApi = _a.columnApi, dragItem = _a.dragItem, dragSource = _a.dragSource;\n        var x = event.clientX - rect.left;\n        var y = event.clientY - rect.top;\n        return { event: event, x: x, y: y, vDirection: vDirection, hDirection: hDirection, dragSource: dragSource, fromNudge: fromNudge, dragItem: dragItem, api: api, columnApi: columnApi, dropZoneTarget: dropZoneTarget };\n    };\n    DragAndDropService.prototype.positionGhost = function (event) {\n        var ghost = this.eGhost;\n        if (!ghost) {\n            return;\n        }\n        var ghostRect = ghost.getBoundingClientRect();\n        var ghostHeight = ghostRect.height;\n        // for some reason, without the '-2', it still overlapped by 1 or 2 pixels, which\n        // then brought in scrollbars to the browser. no idea why, but putting in -2 here\n        // works around it which is good enough for me.\n        var browserWidth = getBodyWidth() - 2;\n        var browserHeight = getBodyHeight() - 2;\n        var top = event.pageY - (ghostHeight / 2);\n        var left = event.pageX - 10;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var win = (eDocument.defaultView || window);\n        var windowScrollY = win.pageYOffset || eDocument.documentElement.scrollTop;\n        var windowScrollX = win.pageXOffset || eDocument.documentElement.scrollLeft;\n        // check ghost is not positioned outside of the browser\n        if (browserWidth > 0 && ((left + ghost.clientWidth) > (browserWidth + windowScrollX))) {\n            left = browserWidth + windowScrollX - ghost.clientWidth;\n        }\n        if (left < 0) {\n            left = 0;\n        }\n        if (browserHeight > 0 && ((top + ghost.clientHeight) > (browserHeight + windowScrollY))) {\n            top = browserHeight + windowScrollY - ghost.clientHeight;\n        }\n        if (top < 0) {\n            top = 0;\n        }\n        ghost.style.left = left + \"px\";\n        ghost.style.top = top + \"px\";\n    };\n    DragAndDropService.prototype.removeGhost = function () {\n        if (this.eGhost && this.eGhostParent) {\n            this.eGhostParent.removeChild(this.eGhost);\n        }\n        this.eGhost = null;\n    };\n    DragAndDropService.prototype.createGhost = function () {\n        this.eGhost = loadTemplate(DragAndDropService_1.GHOST_TEMPLATE);\n        var theme = this.environment.getTheme().theme;\n        if (theme) {\n            this.eGhost.classList.add(theme);\n        }\n        this.eGhostIcon = this.eGhost.querySelector('.ag-dnd-ghost-icon');\n        this.setGhostIcon(null);\n        var eText = this.eGhost.querySelector('.ag-dnd-ghost-label');\n        var dragItemName = this.dragSource.dragItemName;\n        if (isFunction(dragItemName)) {\n            dragItemName = dragItemName();\n        }\n        eText.innerHTML = escapeString(dragItemName) || '';\n        this.eGhost.style.height = '25px';\n        this.eGhost.style.top = '20px';\n        this.eGhost.style.left = '20px';\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var targetEl = null;\n        try {\n            targetEl = eDocument.fullscreenElement;\n        }\n        catch (e) {\n            // some environments like SalesForce will throw errors\n            // simply by trying to read the fullscreenElement property\n        }\n        finally {\n            if (!targetEl) {\n                targetEl = eDocument.querySelector('body');\n            }\n        }\n        this.eGhostParent = targetEl;\n        if (!this.eGhostParent) {\n            console.warn('AG Grid: could not find document body, it is needed for dragging columns');\n        }\n        else {\n            this.eGhostParent.appendChild(this.eGhost);\n        }\n    };\n    DragAndDropService.prototype.setGhostIcon = function (iconName, shake) {\n        if (shake === void 0) { shake = false; }\n        clearElement(this.eGhostIcon);\n        var eIcon = null;\n        if (!iconName) {\n            iconName = this.dragSource.defaultIconName || DragAndDropService_1.ICON_NOT_ALLOWED;\n        }\n        switch (iconName) {\n            case DragAndDropService_1.ICON_PINNED:\n                eIcon = this.ePinnedIcon;\n                break;\n            case DragAndDropService_1.ICON_MOVE:\n                eIcon = this.eMoveIcon;\n                break;\n            case DragAndDropService_1.ICON_LEFT:\n                eIcon = this.eLeftIcon;\n                break;\n            case DragAndDropService_1.ICON_RIGHT:\n                eIcon = this.eRightIcon;\n                break;\n            case DragAndDropService_1.ICON_GROUP:\n                eIcon = this.eGroupIcon;\n                break;\n            case DragAndDropService_1.ICON_AGGREGATE:\n                eIcon = this.eAggregateIcon;\n                break;\n            case DragAndDropService_1.ICON_PIVOT:\n                eIcon = this.ePivotIcon;\n                break;\n            case DragAndDropService_1.ICON_NOT_ALLOWED:\n                eIcon = this.eDropNotAllowedIcon;\n                break;\n            case DragAndDropService_1.ICON_HIDE:\n                eIcon = this.eHideIcon;\n                break;\n        }\n        this.eGhostIcon.classList.toggle('ag-shake-left-to-right', shake);\n        if (eIcon === this.eHideIcon && this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()) {\n            return;\n        }\n        if (eIcon) {\n            this.eGhostIcon.appendChild(eIcon);\n        }\n    };\n    var DragAndDropService_1;\n    DragAndDropService.ICON_PINNED = 'pinned';\n    DragAndDropService.ICON_MOVE = 'move';\n    DragAndDropService.ICON_LEFT = 'left';\n    DragAndDropService.ICON_RIGHT = 'right';\n    DragAndDropService.ICON_GROUP = 'group';\n    DragAndDropService.ICON_AGGREGATE = 'aggregate';\n    DragAndDropService.ICON_PIVOT = 'pivot';\n    DragAndDropService.ICON_NOT_ALLOWED = 'notAllowed';\n    DragAndDropService.ICON_HIDE = 'hide';\n    DragAndDropService.GHOST_TEMPLATE = \"<div class=\\\"ag-dnd-ghost ag-unselectable\\\">\\n            <span class=\\\"ag-dnd-ghost-icon ag-shake-left-to-right\\\"></span>\\n            <div class=\\\"ag-dnd-ghost-label\\\"></div>\\n        </div>\";\n    __decorate$y([\n        Autowired('dragService')\n    ], DragAndDropService.prototype, \"dragService\", void 0);\n    __decorate$y([\n        Autowired('environment')\n    ], DragAndDropService.prototype, \"environment\", void 0);\n    __decorate$y([\n        Autowired('columnApi')\n    ], DragAndDropService.prototype, \"columnApi\", void 0);\n    __decorate$y([\n        Autowired('gridApi')\n    ], DragAndDropService.prototype, \"gridApi\", void 0);\n    __decorate$y([\n        PostConstruct\n    ], DragAndDropService.prototype, \"init\", null);\n    __decorate$y([\n        PreDestroy\n    ], DragAndDropService.prototype, \"clearDragSourceParamsList\", null);\n    DragAndDropService = DragAndDropService_1 = __decorate$y([\n        Bean('dragAndDropService')\n    ], DragAndDropService);\n    return DragAndDropService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$D = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$z = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RowDragComp = /** @class */ (function (_super) {\n    __extends$D(RowDragComp, _super);\n    function RowDragComp(cellValueFn, rowNode, column, customGui, dragStartPixels, suppressVisibilityChange) {\n        var _this = _super.call(this) || this;\n        _this.cellValueFn = cellValueFn;\n        _this.rowNode = rowNode;\n        _this.column = column;\n        _this.customGui = customGui;\n        _this.dragStartPixels = dragStartPixels;\n        _this.suppressVisibilityChange = suppressVisibilityChange;\n        _this.dragSource = null;\n        return _this;\n    }\n    RowDragComp.prototype.isCustomGui = function () {\n        return this.customGui != null;\n    };\n    RowDragComp.prototype.postConstruct = function () {\n        if (!this.customGui) {\n            this.setTemplate(/* html */ \"<div class=\\\"ag-drag-handle ag-row-drag\\\" aria-hidden=\\\"true\\\"></div>\");\n            this.getGui().appendChild(createIconNoSpan('rowDrag', this.beans.gridOptionsWrapper, null));\n            this.addDragSource();\n        }\n        else {\n            this.setDragElement(this.customGui, this.dragStartPixels);\n        }\n        this.checkCompatibility();\n        if (!this.suppressVisibilityChange) {\n            var strategy = this.beans.gridOptionsWrapper.isRowDragManaged() ?\n                new ManagedVisibilityStrategy(this, this.beans, this.rowNode, this.column) :\n                new NonManagedVisibilityStrategy(this, this.beans, this.rowNode, this.column);\n            this.createManagedBean(strategy, this.beans.context);\n        }\n    };\n    RowDragComp.prototype.setDragElement = function (dragElement, dragStartPixels) {\n        this.setTemplateFromElement(dragElement);\n        this.addDragSource(dragStartPixels);\n    };\n    RowDragComp.prototype.getSelectedCount = function () {\n        var isRowDragMultiRow = this.beans.gridOptionsWrapper.isRowDragMultiRow();\n        if (!isRowDragMultiRow) {\n            return 1;\n        }\n        var selection = this.beans.selectionService.getSelectedNodes();\n        return selection.indexOf(this.rowNode) !== -1 ? selection.length : 1;\n    };\n    // returns true if all compatibility items work out\n    RowDragComp.prototype.checkCompatibility = function () {\n        var managed = this.beans.gridOptionsWrapper.isRowDragManaged();\n        var treeData = this.beans.gridOptionsWrapper.isTreeData();\n        if (treeData && managed) {\n            doOnce(function () {\n                return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');\n            }, 'RowDragComp.managedAndTreeData');\n        }\n    };\n    RowDragComp.prototype.addDragSource = function (dragStartPixels) {\n        var _this = this;\n        if (dragStartPixels === void 0) { dragStartPixels = 4; }\n        // if this is changing the drag element, delete the previous dragSource\n        if (this.dragSource) {\n            this.removeDragSource();\n        }\n        var dragItem = {\n            rowNode: this.rowNode,\n            columns: this.column ? [this.column] : undefined,\n            defaultTextValue: this.cellValueFn(),\n        };\n        var rowDragText = this.column && this.column.getColDef().rowDragText;\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.dragSource = {\n            type: exports.DragSourceType.RowDrag,\n            eElement: this.getGui(),\n            dragItemName: function () {\n                var dragItemCount = _this.getSelectedCount();\n                if (rowDragText) {\n                    return rowDragText(dragItem, dragItemCount);\n                }\n                return dragItemCount === 1 ? _this.cellValueFn() : dragItemCount + \" \" + translate('rowDragRows', 'rows');\n            },\n            getDragItem: function () { return dragItem; },\n            dragStartPixels: dragStartPixels,\n            dragSourceDomDataKey: this.beans.gridOptionsWrapper.getDomDataKey()\n        };\n        this.beans.dragAndDropService.addDragSource(this.dragSource, true);\n    };\n    RowDragComp.prototype.removeDragSource = function () {\n        if (this.dragSource) {\n            this.beans.dragAndDropService.removeDragSource(this.dragSource);\n        }\n        this.dragSource = null;\n    };\n    __decorate$z([\n        Autowired('beans')\n    ], RowDragComp.prototype, \"beans\", void 0);\n    __decorate$z([\n        PostConstruct\n    ], RowDragComp.prototype, \"postConstruct\", null);\n    __decorate$z([\n        PreDestroy\n    ], RowDragComp.prototype, \"removeDragSource\", null);\n    return RowDragComp;\n}(Component));\nvar VisibilityStrategy = /** @class */ (function (_super) {\n    __extends$D(VisibilityStrategy, _super);\n    function VisibilityStrategy(parent, rowNode, column) {\n        var _this = _super.call(this) || this;\n        _this.parent = parent;\n        _this.rowNode = rowNode;\n        _this.column = column;\n        return _this;\n    }\n    VisibilityStrategy.prototype.setDisplayedOrVisible = function (neverDisplayed) {\n        if (neverDisplayed) {\n            this.parent.setDisplayed(false);\n        }\n        else {\n            var shown = true;\n            var isShownSometimes = false;\n            if (this.column) {\n                shown = this.column.isRowDrag(this.rowNode) || this.parent.isCustomGui();\n                isShownSometimes = isFunction(this.column.getColDef().rowDrag);\n            }\n            // if shown sometimes, them some rows can have drag handle while other don't,\n            // so we use setVisible to keep the handles horizontally aligned (as setVisible\n            // keeps the empty space, whereas setDisplayed looses the space)\n            if (isShownSometimes) {\n                this.parent.setDisplayed(true);\n                this.parent.setVisible(shown);\n            }\n            else {\n                this.parent.setDisplayed(shown);\n                this.parent.setVisible(true);\n            }\n        }\n    };\n    return VisibilityStrategy;\n}(BeanStub));\n// when non managed, the visibility depends on suppressRowDrag property only\nvar NonManagedVisibilityStrategy = /** @class */ (function (_super) {\n    __extends$D(NonManagedVisibilityStrategy, _super);\n    function NonManagedVisibilityStrategy(parent, beans, rowNode, column) {\n        var _this = _super.call(this, parent, rowNode, column) || this;\n        _this.beans = beans;\n        return _this;\n    }\n    NonManagedVisibilityStrategy.prototype.postConstruct = function () {\n        this.addManagedListener(this.beans.gridOptionsWrapper, 'suppressRowDrag', this.onSuppressRowDrag.bind(this));\n        // in case data changes, then we need to update visibility of drag item\n        this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.beans.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this));\n        this.workOutVisibility();\n    };\n    NonManagedVisibilityStrategy.prototype.onSuppressRowDrag = function () {\n        this.workOutVisibility();\n    };\n    NonManagedVisibilityStrategy.prototype.workOutVisibility = function () {\n        // only show the drag if both sort and filter are not present\n        var neverDisplayed = this.beans.gridOptionsWrapper.isSuppressRowDrag();\n        this.setDisplayedOrVisible(neverDisplayed);\n    };\n    __decorate$z([\n        PostConstruct\n    ], NonManagedVisibilityStrategy.prototype, \"postConstruct\", null);\n    return NonManagedVisibilityStrategy;\n}(VisibilityStrategy));\n// when managed, the visibility depends on sort, filter and row group, as well as suppressRowDrag property\nvar ManagedVisibilityStrategy = /** @class */ (function (_super) {\n    __extends$D(ManagedVisibilityStrategy, _super);\n    function ManagedVisibilityStrategy(parent, beans, rowNode, column) {\n        var _this = _super.call(this, parent, rowNode, column) || this;\n        _this.beans = beans;\n        return _this;\n    }\n    ManagedVisibilityStrategy.prototype.postConstruct = function () {\n        // we do not show the component if sort, filter or grouping is active\n        this.addManagedListener(this.beans.eventService, Events.EVENT_SORT_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.beans.eventService, Events.EVENT_FILTER_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.beans.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.beans.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this));\n        // in case data changes, then we need to update visibility of drag item\n        this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n        this.addManagedListener(this.beans.gridOptionsWrapper, 'suppressRowDrag', this.onSuppressRowDrag.bind(this));\n        this.workOutVisibility();\n    };\n    ManagedVisibilityStrategy.prototype.onSuppressRowDrag = function () {\n        this.workOutVisibility();\n    };\n    ManagedVisibilityStrategy.prototype.workOutVisibility = function () {\n        // only show the drag if both sort and filter are not present\n        var gridBodyCon = this.beans.ctrlsService.getGridBodyCtrl();\n        var rowDragFeature = gridBodyCon.getRowDragFeature();\n        var shouldPreventRowMove = rowDragFeature && rowDragFeature.shouldPreventRowMove();\n        var suppressRowDrag = this.beans.gridOptionsWrapper.isSuppressRowDrag();\n        var hasExternalDropZones = this.beans.dragAndDropService.hasExternalDropZones();\n        var neverDisplayed = (shouldPreventRowMove && !hasExternalDropZones) || suppressRowDrag;\n        this.setDisplayedOrVisible(neverDisplayed);\n    };\n    __decorate$z([\n        PostConstruct\n    ], ManagedVisibilityStrategy.prototype, \"postConstruct\", null);\n    return ManagedVisibilityStrategy;\n}(VisibilityStrategy));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$E = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$7 = (undefined && undefined.__assign) || function () {\n    __assign$7 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$7.apply(this, arguments);\n};\nvar __decorate$A = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GroupCellRendererCtrl = /** @class */ (function (_super) {\n    __extends$E(GroupCellRendererCtrl, _super);\n    function GroupCellRendererCtrl() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    GroupCellRendererCtrl.prototype.init = function (comp, eGui, eCheckbox, eExpanded, eContracted, compClass, params) {\n        this.params = params;\n        this.eGui = eGui;\n        this.eCheckbox = eCheckbox;\n        this.eExpanded = eExpanded;\n        this.eContracted = eContracted;\n        this.comp = comp;\n        this.compClass = compClass;\n        var topLevelFooter = this.isTopLevelFooter();\n        var embeddedRowMismatch = this.isEmbeddedRowMismatch();\n        // This allows for empty strings to appear as groups since\n        // it will only return for null or undefined.\n        var nullValue = params.value == null;\n        var skipCell = false;\n        // if the groupCellRenderer is inside of a footer and groupHideOpenParents is true\n        // we should only display the groupCellRenderer if the current column is the rowGroupedColumn\n        if (this.gridOptionsWrapper.isGroupIncludeFooter() && this.gridOptionsWrapper.isGroupHideOpenParents()) {\n            var node = params.node;\n            if (node.footer) {\n                var showRowGroup = params.colDef && params.colDef.showRowGroup;\n                var rowGroupColumnId = node.rowGroupColumn && node.rowGroupColumn.getColId();\n                skipCell = showRowGroup !== rowGroupColumnId;\n            }\n        }\n        this.cellIsBlank = topLevelFooter ? false : (embeddedRowMismatch || nullValue || skipCell);\n        if (this.cellIsBlank) {\n            return;\n        }\n        this.setupShowingValueForOpenedParent();\n        this.findDisplayedGroupNode();\n        this.addFullWidthRowDraggerIfNeeded();\n        this.addExpandAndContract();\n        this.addCheckboxIfNeeded();\n        this.addValueElement();\n        this.setupIndent();\n        this.refreshAriaExpanded();\n    };\n    GroupCellRendererCtrl.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n        // property cleanup to avoid memory leaks\n        this.expandListener = null;\n    };\n    GroupCellRendererCtrl.prototype.refreshAriaExpanded = function () {\n        var _a = this.params, node = _a.node, eParentOfValue = _a.eParentOfValue;\n        if (this.expandListener) {\n            this.expandListener = this.expandListener();\n        }\n        if (!this.isExpandable()) {\n            removeAriaExpanded(eParentOfValue);\n            return;\n        }\n        var listener = function () {\n            // for react, we don't use JSX, as setting attributes via jsx is slower\n            setAriaExpanded(eParentOfValue, !!node.expanded);\n        };\n        this.expandListener = this.addManagedListener(node, RowNode.EVENT_EXPANDED_CHANGED, listener) || null;\n        listener();\n    };\n    GroupCellRendererCtrl.prototype.isTopLevelFooter = function () {\n        if (!this.gridOptionsWrapper.isGroupIncludeTotalFooter()) {\n            return false;\n        }\n        if (this.params.value != null || this.params.node.level != -1) {\n            return false;\n        }\n        // at this point, we know it's the root node and there is no value present, so it's a footer cell.\n        // the only thing to work out is if we are displaying groups  across multiple\n        // columns (groupMultiAutoColumn=true), we only want 'total' to appear in the first column.\n        var colDef = this.params.colDef;\n        var doingFullWidth = colDef == null;\n        if (doingFullWidth) {\n            return true;\n        }\n        if (colDef.showRowGroup === true) {\n            return true;\n        }\n        var rowGroupCols = this.columnModel.getRowGroupColumns();\n        // this is a sanity check, rowGroupCols should always be present\n        if (!rowGroupCols || rowGroupCols.length === 0) {\n            return true;\n        }\n        var firstRowGroupCol = rowGroupCols[0];\n        return firstRowGroupCol.getId() === colDef.showRowGroup;\n    };\n    // if we are doing embedded full width rows, we only show the renderer when\n    // in the body, or if pinning in the pinned section, or if pinning and RTL,\n    // in the right section. otherwise we would have the cell repeated in each section.\n    GroupCellRendererCtrl.prototype.isEmbeddedRowMismatch = function () {\n        if (!this.params.fullWidth || !this.gridOptionsWrapper.isEmbedFullWidthRows()) {\n            return false;\n        }\n        var pinnedLeftCell = this.params.pinned === Constants.PINNED_LEFT;\n        var pinnedRightCell = this.params.pinned === Constants.PINNED_RIGHT;\n        var bodyCell = !pinnedLeftCell && !pinnedRightCell;\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            if (this.columnModel.isPinningLeft()) {\n                return !pinnedRightCell;\n            }\n            return !bodyCell;\n        }\n        if (this.columnModel.isPinningLeft()) {\n            return !pinnedLeftCell;\n        }\n        return !bodyCell;\n    };\n    GroupCellRendererCtrl.prototype.findDisplayedGroupNode = function () {\n        var column = this.params.column;\n        var rowNode = this.params.node;\n        if (this.showingValueForOpenedParent) {\n            var pointer = rowNode.parent;\n            while (pointer != null) {\n                if (pointer.rowGroupColumn && column.isRowGroupDisplayed(pointer.rowGroupColumn.getId())) {\n                    this.displayedGroupNode = pointer;\n                    break;\n                }\n                pointer = pointer.parent;\n            }\n        }\n        // if we didn't find a displayed group, set it to the row node\n        if (missing(this.displayedGroupNode)) {\n            this.displayedGroupNode = rowNode;\n        }\n    };\n    GroupCellRendererCtrl.prototype.setupShowingValueForOpenedParent = function () {\n        // note - this code depends on sortService.updateGroupDataForHiddenOpenParents, where group data\n        // is updated to reflect the dragged down parents\n        var rowNode = this.params.node;\n        var column = this.params.column;\n        if (!this.gridOptionsWrapper.isGroupHideOpenParents()) {\n            this.showingValueForOpenedParent = false;\n            return;\n        }\n        // hideOpenParents means rowNode.groupData can have data for the group this column is displaying, even though\n        // this rowNode isn't grouping by the column we are displaying\n        // if no groupData at all, we are not showing a parent value\n        if (!rowNode.groupData) {\n            this.showingValueForOpenedParent = false;\n            return;\n        }\n        // this is the normal case, in that we are showing a group for which this column is configured. note that\n        // this means the Row Group is closed (if it was open, we would not be displaying it)\n        var showingGroupNode = rowNode.rowGroupColumn != null;\n        if (showingGroupNode) {\n            var keyOfGroupingColumn = rowNode.rowGroupColumn.getId();\n            var configuredToShowThisGroupLevel = column.isRowGroupDisplayed(keyOfGroupingColumn);\n            // if showing group as normal, we didn't take group info from parent\n            if (configuredToShowThisGroupLevel) {\n                this.showingValueForOpenedParent = false;\n                return;\n            }\n        }\n        // see if we are showing a Group Value for the Displayed Group. if we are showing a group value, and this Row Node\n        // is not grouping by this Displayed Group, we must of gotten the value from a parent node\n        var valPresent = rowNode.groupData[column.getId()] != null;\n        this.showingValueForOpenedParent = valPresent;\n    };\n    GroupCellRendererCtrl.prototype.addValueElement = function () {\n        if (this.displayedGroupNode.footer) {\n            this.addFooterValue();\n        }\n        else {\n            this.addGroupValue();\n            this.addChildCount();\n        }\n    };\n    GroupCellRendererCtrl.prototype.addGroupValue = function () {\n        // we try and use the cellRenderer of the column used for the grouping if we can\n        var paramsAdjusted = this.adjustParamsWithDetailsFromRelatedColumn();\n        var innerCompDetails = this.getInnerCompDetails(paramsAdjusted);\n        var valueFormatted = paramsAdjusted.valueFormatted, value = paramsAdjusted.value;\n        var valueWhenNoRenderer = valueFormatted != null ? valueFormatted : value;\n        this.comp.setInnerRenderer(innerCompDetails, valueWhenNoRenderer);\n    };\n    GroupCellRendererCtrl.prototype.adjustParamsWithDetailsFromRelatedColumn = function () {\n        var relatedColumn = this.displayedGroupNode.rowGroupColumn;\n        var column = this.params.column;\n        if (!relatedColumn) {\n            return this.params;\n        }\n        var notFullWidth = column != null;\n        if (notFullWidth) {\n            var showingThisRowGroup = column.isRowGroupDisplayed(relatedColumn.getId());\n            if (!showingThisRowGroup) {\n                return this.params;\n            }\n        }\n        var params = this.params;\n        var _a = this.params, value = _a.value, node = _a.node;\n        var valueFormatted = this.valueFormatterService.formatValue(relatedColumn, node, value);\n        // we don't update the original params, as they could of come through React,\n        // as react has RowGroupCellRenderer, which means the params could be props which\n        // would be read only\n        var paramsAdjusted = __assign$7(__assign$7({}, params), { valueFormatted: valueFormatted });\n        return paramsAdjusted;\n    };\n    GroupCellRendererCtrl.prototype.addFooterValue = function () {\n        var footerValueGetter = this.params.footerValueGetter;\n        var footerValue = '';\n        if (footerValueGetter) {\n            // params is same as we were given, except we set the value as the item to display\n            var paramsClone = cloneObject(this.params);\n            paramsClone.value = this.params.value;\n            if (typeof footerValueGetter === 'function') {\n                footerValue = footerValueGetter(paramsClone);\n            }\n            else if (typeof footerValueGetter === 'string') {\n                footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);\n            }\n            else {\n                console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');\n            }\n        }\n        else {\n            footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');\n        }\n        var innerCompDetails = this.getInnerCompDetails(this.params);\n        this.comp.setInnerRenderer(innerCompDetails, footerValue);\n    };\n    GroupCellRendererCtrl.prototype.getInnerCompDetails = function (params) {\n        var _this = this;\n        // for full width rows, we don't do any of the below\n        if (params.fullWidth) {\n            return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams, params);\n        }\n        // when grouping, the normal case is we use the cell renderer of the grouped column. eg if grouping by country\n        // and then rating, we will use the country cell renderer for each country group row and likewise the rating\n        // cell renderer for each rating group row.\n        //\n        // however if the user has innerCellRenderer defined, this gets preference and we don't use cell renderers\n        // of the grouped columns.\n        //\n        // so we check and use in the following order:\n        //\n        // 1) thisColDef.cellRendererParams.innerRenderer of the column showing the groups (eg auto group column)\n        // 2) groupedColDef.cellRenderer of the grouped column\n        // 3) groupedColDef.cellRendererParams.innerRenderer\n        // we check if cell renderer provided for the group cell renderer, eg colDef.cellRendererParams.innerRenderer\n        var innerCompDetails = this.userComponentFactory\n            .getInnerRendererDetails(params, params);\n        // avoid using GroupCellRenderer again, otherwise stack overflow, as we insert same renderer again and again.\n        // this covers off chance user is grouping by a column that is also configured with GroupCellRenderer\n        var isGroupRowRenderer = function (details) { return details && details.componentClass == _this.compClass; };\n        if (innerCompDetails && !isGroupRowRenderer(innerCompDetails)) {\n            // use the renderer defined in cellRendererParams.innerRenderer\n            return innerCompDetails;\n        }\n        var relatedColumn = this.displayedGroupNode.rowGroupColumn;\n        var relatedColDef = relatedColumn ? relatedColumn.getColDef() : undefined;\n        if (!relatedColDef) {\n            return;\n        }\n        // otherwise see if we can use the cellRenderer of the column we are grouping by\n        var relatedCompDetails = this.userComponentFactory\n            .getCellRendererDetails(relatedColDef, params);\n        if (relatedCompDetails && !isGroupRowRenderer(relatedCompDetails)) {\n            // Only if the original column is using a specific renderer, it it is a using a DEFAULT one ignore it\n            return relatedCompDetails;\n        }\n        if (isGroupRowRenderer(relatedCompDetails) &&\n            relatedColDef.cellRendererParams &&\n            relatedColDef.cellRendererParams.innerRenderer) {\n            // edge case - this comes from a column which has been grouped dynamically, that has a renderer 'group'\n            // and has an inner cell renderer\n            var res = this.userComponentFactory.getInnerRendererDetails(relatedColDef.cellRendererParams, params);\n            return res;\n        }\n    };\n    GroupCellRendererCtrl.prototype.addChildCount = function () {\n        // only include the child count if it's included, eg if user doing custom aggregation,\n        // then this could be left out, or set to -1, ie no child count\n        if (this.params.suppressCount) {\n            return;\n        }\n        this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED, this.updateChildCount.bind(this));\n        // filtering changes the child count, so need to cater for it\n        this.updateChildCount();\n    };\n    GroupCellRendererCtrl.prototype.updateChildCount = function () {\n        var allChildrenCount = this.displayedGroupNode.allChildrenCount;\n        var showingGroupForThisNode = this.isShowRowGroupForThisRow();\n        var showCount = showingGroupForThisNode && allChildrenCount != null && allChildrenCount >= 0;\n        var countString = showCount ? \"(\" + allChildrenCount + \")\" : \"\";\n        this.comp.setChildCount(countString);\n    };\n    GroupCellRendererCtrl.prototype.isShowRowGroupForThisRow = function () {\n        if (this.gridOptionsWrapper.isTreeData()) {\n            return true;\n        }\n        var rowGroupColumn = this.displayedGroupNode.rowGroupColumn;\n        if (!rowGroupColumn) {\n            return false;\n        }\n        // column is null for fullWidthRows\n        var column = this.params.column;\n        var thisColumnIsInterested = column == null || column.isRowGroupDisplayed(rowGroupColumn.getId());\n        return thisColumnIsInterested;\n    };\n    GroupCellRendererCtrl.prototype.addExpandAndContract = function () {\n        var params = this.params;\n        var eExpandedIcon = createIconNoSpan('groupExpanded', this.gridOptionsWrapper, null);\n        var eContractedIcon = createIconNoSpan('groupContracted', this.gridOptionsWrapper, null);\n        if (eExpandedIcon) {\n            this.eExpanded.appendChild(eExpandedIcon);\n        }\n        if (eContractedIcon) {\n            this.eContracted.appendChild(eContractedIcon);\n        }\n        var eGroupCell = params.eGridCell;\n        // if editing groups, then double click is to start editing\n        if (!this.gridOptionsWrapper.isEnableGroupEdit() && this.isExpandable() && !params.suppressDoubleClickExpand) {\n            this.addManagedListener(eGroupCell, 'dblclick', this.onCellDblClicked.bind(this));\n        }\n        this.addManagedListener(this.eExpanded, 'click', this.onExpandClicked.bind(this));\n        this.addManagedListener(this.eContracted, 'click', this.onExpandClicked.bind(this));\n        // expand / contract as the user hits enter\n        this.addManagedListener(eGroupCell, 'keydown', this.onKeyDown.bind(this));\n        this.addManagedListener(params.node, RowNode.EVENT_EXPANDED_CHANGED, this.showExpandAndContractIcons.bind(this));\n        this.showExpandAndContractIcons();\n        // because we don't show the expand / contract when there are no children, we need to check every time\n        // the number of children change.\n        var expandableChangedListener = this.onRowNodeIsExpandableChanged.bind(this);\n        this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED, expandableChangedListener);\n        this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_MASTER_CHANGED, expandableChangedListener);\n        this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_GROUP_CHANGED, expandableChangedListener);\n        this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_HAS_CHILDREN_CHANGED, expandableChangedListener);\n    };\n    GroupCellRendererCtrl.prototype.onExpandClicked = function (mouseEvent) {\n        if (isStopPropagationForAgGrid(mouseEvent)) {\n            return;\n        }\n        // so if we expand a node, it does not also get selected.\n        stopPropagationForAgGrid(mouseEvent);\n        this.onExpandOrContract(mouseEvent);\n    };\n    GroupCellRendererCtrl.prototype.onExpandOrContract = function (e) {\n        // must use the displayedGroup, so if data was dragged down, we expand the parent, not this row\n        var rowNode = this.displayedGroupNode;\n        var nextExpandState = !rowNode.expanded;\n        rowNode.setExpanded(nextExpandState, e);\n    };\n    GroupCellRendererCtrl.prototype.isExpandable = function () {\n        if (this.showingValueForOpenedParent) {\n            return true;\n        }\n        var rowNode = this.displayedGroupNode;\n        var reducedLeafNode = this.columnModel.isPivotMode() && rowNode.leafGroup;\n        var expandableGroup = rowNode.isExpandable() && !rowNode.footer && !reducedLeafNode;\n        if (!expandableGroup) {\n            return false;\n        }\n        // column is null for fullWidthRows\n        var column = this.params.column;\n        var displayingForOneColumnOnly = column != null && typeof column.getColDef().showRowGroup === 'string';\n        if (displayingForOneColumnOnly) {\n            var showing = this.isShowRowGroupForThisRow();\n            return showing;\n        }\n        return true;\n    };\n    GroupCellRendererCtrl.prototype.showExpandAndContractIcons = function () {\n        var _a = this, params = _a.params, displayedGroup = _a.displayedGroupNode, columnModel = _a.columnModel;\n        var node = params.node;\n        var isExpandable = this.isExpandable();\n        if (isExpandable) {\n            // if expandable, show one based on expand state.\n            // if we were dragged down, means our parent is always expanded\n            var expanded = this.showingValueForOpenedParent ? true : node.expanded;\n            this.comp.setExpandedDisplayed(expanded);\n            this.comp.setContractedDisplayed(!expanded);\n        }\n        else {\n            // it not expandable, show neither\n            this.comp.setExpandedDisplayed(false);\n            this.comp.setContractedDisplayed(false);\n        }\n        // compensation padding for leaf nodes, so there is blank space instead of the expand icon\n        var pivotMode = columnModel.isPivotMode();\n        var pivotModeAndLeafGroup = pivotMode && displayedGroup.leafGroup;\n        var addExpandableCss = isExpandable && !pivotModeAndLeafGroup;\n        var isTotalFooterNode = node.footer && node.level === -1;\n        this.comp.addOrRemoveCssClass('ag-cell-expandable', addExpandableCss);\n        this.comp.addOrRemoveCssClass('ag-row-group', addExpandableCss);\n        if (pivotMode) {\n            this.comp.addOrRemoveCssClass('ag-pivot-leaf-group', pivotModeAndLeafGroup);\n        }\n        else if (!isTotalFooterNode) {\n            this.comp.addOrRemoveCssClass('ag-row-group-leaf-indent', !addExpandableCss);\n        }\n    };\n    GroupCellRendererCtrl.prototype.onRowNodeIsExpandableChanged = function () {\n        // maybe if no children now, we should hide the expand / contract icons\n        this.showExpandAndContractIcons();\n        // if we have no children, this impacts the indent\n        this.setIndent();\n        this.refreshAriaExpanded();\n    };\n    GroupCellRendererCtrl.prototype.setupIndent = function () {\n        // only do this if an indent - as this overwrites the padding that\n        // the theme set, which will make things look 'not aligned' for the\n        // first group level.\n        var node = this.params.node;\n        var suppressPadding = this.params.suppressPadding;\n        if (!suppressPadding) {\n            this.addManagedListener(node, RowNode.EVENT_UI_LEVEL_CHANGED, this.setIndent.bind(this));\n            this.setIndent();\n        }\n    };\n    GroupCellRendererCtrl.prototype.setIndent = function () {\n        if (this.gridOptionsWrapper.isGroupHideOpenParents()) {\n            return;\n        }\n        var params = this.params;\n        var rowNode = params.node;\n        // if we are only showing one group column, we don't want to be indenting based on level\n        var fullWithRow = !!params.colDef;\n        var treeData = this.gridOptionsWrapper.isTreeData();\n        var manyDimensionThisColumn = !fullWithRow || treeData || params.colDef.showRowGroup === true;\n        var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;\n        var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;\n        if (userProvidedPaddingPixelsTheDeprecatedWay) {\n            doOnce(function () { return console.warn('AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.'); }, 'groupCellRenderer->doDeprecatedWay');\n        }\n        if (this.indentClass) {\n            this.comp.addOrRemoveCssClass(this.indentClass, false);\n        }\n        this.indentClass = 'ag-row-group-indent-' + paddingCount;\n        this.comp.addOrRemoveCssClass(this.indentClass, true);\n    };\n    GroupCellRendererCtrl.prototype.addFullWidthRowDraggerIfNeeded = function () {\n        var _this = this;\n        if (!this.params.fullWidth || !this.params.rowDrag) {\n            return;\n        }\n        var rowDragComp = new RowDragComp(function () { return _this.params.value; }, this.params.node);\n        this.createManagedBean(rowDragComp, this.context);\n        this.eGui.insertAdjacentElement('afterbegin', rowDragComp.getGui());\n    };\n    GroupCellRendererCtrl.prototype.isUserWantsSelected = function () {\n        var paramsCheckbox = this.params.checkbox;\n        if (typeof paramsCheckbox === 'function') {\n            return paramsCheckbox(this.params);\n        }\n        return paramsCheckbox === true;\n    };\n    GroupCellRendererCtrl.prototype.addCheckboxIfNeeded = function () {\n        var _this = this;\n        var rowNode = this.displayedGroupNode;\n        var checkboxNeeded = this.isUserWantsSelected() &&\n            // footers cannot be selected\n            !rowNode.footer &&\n            // pinned rows cannot be selected\n            !rowNode.rowPinned &&\n            // details cannot be selected\n            !rowNode.detail;\n        if (checkboxNeeded) {\n            var cbSelectionComponent_1 = new CheckboxSelectionComponent();\n            this.getContext().createBean(cbSelectionComponent_1);\n            cbSelectionComponent_1.init({ rowNode: rowNode, column: this.params.column });\n            this.eCheckbox.appendChild(cbSelectionComponent_1.getGui());\n            this.addDestroyFunc(function () { return _this.getContext().destroyBean(cbSelectionComponent_1); });\n        }\n        this.comp.setCheckboxVisible(checkboxNeeded);\n    };\n    GroupCellRendererCtrl.prototype.onKeyDown = function (event) {\n        var enterKeyPressed = event.key === KeyCode.ENTER;\n        if (!enterKeyPressed || this.params.suppressEnterExpand) {\n            return;\n        }\n        var cellEditable = this.params.column && this.params.column.isCellEditable(this.params.node);\n        if (cellEditable) {\n            return;\n        }\n        this.onExpandOrContract(event);\n    };\n    GroupCellRendererCtrl.prototype.onCellDblClicked = function (mouseEvent) {\n        if (isStopPropagationForAgGrid(mouseEvent)) {\n            return;\n        }\n        // we want to avoid acting on double click events on the expand / contract icon,\n        // as that icons already has expand / collapse functionality on it. otherwise if\n        // the icon was double clicked, we would get 'click', 'click', 'dblclick' which\n        // is open->close->open, however double click should be open->close only.\n        var targetIsExpandIcon = isElementInEventPath(this.eExpanded, mouseEvent)\n            || isElementInEventPath(this.eContracted, mouseEvent);\n        if (!targetIsExpandIcon) {\n            this.onExpandOrContract(mouseEvent);\n        }\n    };\n    __decorate$A([\n        Autowired('expressionService')\n    ], GroupCellRendererCtrl.prototype, \"expressionService\", void 0);\n    __decorate$A([\n        Autowired('valueFormatterService')\n    ], GroupCellRendererCtrl.prototype, \"valueFormatterService\", void 0);\n    __decorate$A([\n        Autowired('columnModel')\n    ], GroupCellRendererCtrl.prototype, \"columnModel\", void 0);\n    __decorate$A([\n        Autowired('userComponentFactory')\n    ], GroupCellRendererCtrl.prototype, \"userComponentFactory\", void 0);\n    __decorate$A([\n        Autowired('gridOptions')\n    ], GroupCellRendererCtrl.prototype, \"gridOptions\", void 0);\n    return GroupCellRendererCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$F = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$B = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GroupCellRenderer = /** @class */ (function (_super) {\n    __extends$F(GroupCellRenderer, _super);\n    function GroupCellRenderer() {\n        return _super.call(this, GroupCellRenderer.TEMPLATE) || this;\n    }\n    GroupCellRenderer.prototype.init = function (params) {\n        var _this = this;\n        var compProxy = {\n            setInnerRenderer: function (compDetails, valueToDisplay) { return _this.setRenderDetails(compDetails, valueToDisplay); },\n            setChildCount: function (count) { return _this.eChildCount.innerHTML = count; },\n            addOrRemoveCssClass: function (cssClass, value) { return _this.addOrRemoveCssClass(cssClass, value); },\n            setContractedDisplayed: function (expanded) { return setDisplayed(_this.eContracted, expanded); },\n            setExpandedDisplayed: function (expanded) { return setDisplayed(_this.eExpanded, expanded); },\n            setCheckboxVisible: function (visible) { return _this.eCheckbox.classList.toggle('ag-invisible', !visible); }\n        };\n        var ctrl = this.createManagedBean(new GroupCellRendererCtrl());\n        var fullWidth = !params.colDef;\n        var eGui = this.getGui();\n        ctrl.init(compProxy, eGui, this.eCheckbox, this.eExpanded, this.eContracted, this.constructor, params);\n        if (fullWidth) {\n            setAriaRole(eGui, 'gridcell');\n        }\n    };\n    GroupCellRenderer.prototype.setRenderDetails = function (compDetails, valueToDisplay) {\n        var _this = this;\n        if (compDetails) {\n            var componentPromise = compDetails.newAgStackInstance();\n            if (!componentPromise) {\n                return;\n            }\n            componentPromise.then(function (comp) {\n                if (!comp) {\n                    return;\n                }\n                var destroyComp = function () { return _this.context.destroyBean(comp); };\n                if (_this.isAlive()) {\n                    _this.eValue.appendChild(comp.getGui());\n                    _this.addDestroyFunc(destroyComp);\n                }\n                else {\n                    destroyComp();\n                }\n            });\n        }\n        else {\n            this.eValue.innerText = valueToDisplay;\n        }\n    };\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to have public here instead of private or protected\n    GroupCellRenderer.prototype.destroy = function () {\n        this.getContext().destroyBean(this.innerCellRenderer);\n        _super.prototype.destroy.call(this);\n    };\n    GroupCellRenderer.prototype.refresh = function () {\n        return false;\n    };\n    GroupCellRenderer.TEMPLATE = \"<span class=\\\"ag-cell-wrapper\\\">\\n            <span class=\\\"ag-group-expanded\\\" ref=\\\"eExpanded\\\"></span>\\n            <span class=\\\"ag-group-contracted\\\" ref=\\\"eContracted\\\"></span>\\n            <span class=\\\"ag-group-checkbox ag-invisible\\\" ref=\\\"eCheckbox\\\"></span>\\n            <span class=\\\"ag-group-value\\\" ref=\\\"eValue\\\"></span>\\n            <span class=\\\"ag-group-child-count\\\" ref=\\\"eChildCount\\\"></span>\\n        </span>\";\n    __decorate$B([\n        RefSelector('eExpanded')\n    ], GroupCellRenderer.prototype, \"eExpanded\", void 0);\n    __decorate$B([\n        RefSelector('eContracted')\n    ], GroupCellRenderer.prototype, \"eContracted\", void 0);\n    __decorate$B([\n        RefSelector('eCheckbox')\n    ], GroupCellRenderer.prototype, \"eCheckbox\", void 0);\n    __decorate$B([\n        RefSelector('eValue')\n    ], GroupCellRenderer.prototype, \"eValue\", void 0);\n    __decorate$B([\n        RefSelector('eChildCount')\n    ], GroupCellRenderer.prototype, \"eChildCount\", void 0);\n    return GroupCellRenderer;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$G = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$C = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar LoadingCellRenderer = /** @class */ (function (_super) {\n    __extends$G(LoadingCellRenderer, _super);\n    function LoadingCellRenderer() {\n        return _super.call(this, LoadingCellRenderer.TEMPLATE) || this;\n    }\n    LoadingCellRenderer.prototype.init = function (params) {\n        params.node.failedLoad ? this.setupFailed() : this.setupLoading();\n    };\n    LoadingCellRenderer.prototype.setupFailed = function () {\n        this.eLoadingText.innerText = 'ERR';\n    };\n    LoadingCellRenderer.prototype.setupLoading = function () {\n        var eLoadingIcon = createIconNoSpan('groupLoading', this.gridOptionsWrapper, null);\n        if (eLoadingIcon) {\n            this.eLoadingIcon.appendChild(eLoadingIcon);\n        }\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.eLoadingText.innerText = localeTextFunc('loadingOoo', 'Loading');\n    };\n    LoadingCellRenderer.prototype.refresh = function (params) {\n        return false;\n    };\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    LoadingCellRenderer.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    LoadingCellRenderer.TEMPLATE = \"<div class=\\\"ag-loading\\\">\\n            <span class=\\\"ag-loading-icon\\\" ref=\\\"eLoadingIcon\\\"></span>\\n            <span class=\\\"ag-loading-text\\\" ref=\\\"eLoadingText\\\"></span>\\n        </div>\";\n    __decorate$C([\n        RefSelector('eLoadingIcon')\n    ], LoadingCellRenderer.prototype, \"eLoadingIcon\", void 0);\n    __decorate$C([\n        RefSelector('eLoadingText')\n    ], LoadingCellRenderer.prototype, \"eLoadingText\", void 0);\n    return LoadingCellRenderer;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$H = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar LoadingOverlayComponent = /** @class */ (function (_super) {\n    __extends$H(LoadingOverlayComponent, _super);\n    function LoadingOverlayComponent() {\n        return _super.call(this) || this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    LoadingOverlayComponent.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    LoadingOverlayComponent.prototype.init = function (params) {\n        var template = this.gridOptionsWrapper.getOverlayLoadingTemplate() ?\n            this.gridOptionsWrapper.getOverlayLoadingTemplate() : LoadingOverlayComponent.DEFAULT_LOADING_OVERLAY_TEMPLATE;\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        var localisedTemplate = template.replace('[LOADING...]', localeTextFunc('loadingOoo', 'Loading...'));\n        this.setTemplate(localisedTemplate);\n    };\n    LoadingOverlayComponent.DEFAULT_LOADING_OVERLAY_TEMPLATE = '<span class=\"ag-overlay-loading-center\">[LOADING...]</span>';\n    return LoadingOverlayComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$I = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar NoRowsOverlayComponent = /** @class */ (function (_super) {\n    __extends$I(NoRowsOverlayComponent, _super);\n    function NoRowsOverlayComponent() {\n        return _super.call(this) || this;\n    }\n    // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n    // so we need to override destroy() just to make the method public.\n    NoRowsOverlayComponent.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    NoRowsOverlayComponent.prototype.init = function (params) {\n        var template = this.gridOptionsWrapper.getOverlayNoRowsTemplate() ?\n            this.gridOptionsWrapper.getOverlayNoRowsTemplate() : NoRowsOverlayComponent.DEFAULT_NO_ROWS_TEMPLATE;\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        var localisedTemplate = template.replace('[NO_ROWS_TO_SHOW]', localeTextFunc('noRowsToShow', 'No Rows To Show'));\n        this.setTemplate(localisedTemplate);\n    };\n    NoRowsOverlayComponent.DEFAULT_NO_ROWS_TEMPLATE = '<span class=\"ag-overlay-no-rows-center\">[NO_ROWS_TO_SHOW]</span>';\n    return NoRowsOverlayComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$J = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar TooltipComponent = /** @class */ (function (_super) {\n    __extends$J(TooltipComponent, _super);\n    function TooltipComponent() {\n        return _super.call(this, /* html */ \"<div class=\\\"ag-tooltip\\\"></div>\") || this;\n    }\n    // will need to type params\n    TooltipComponent.prototype.init = function (params) {\n        var value = params.value;\n        this.getGui().innerHTML = escapeString(value);\n    };\n    return TooltipComponent;\n}(PopupComponent));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$K = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$D = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar UserComponentRegistry = /** @class */ (function (_super) {\n    __extends$K(UserComponentRegistry, _super);\n    function UserComponentRegistry() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.agGridDefaults = {\n            //date\n            agDateInput: DefaultDateComponent,\n            //header\n            agColumnHeader: HeaderComp,\n            agColumnGroupHeader: HeaderGroupComp,\n            //floating filters\n            agTextColumnFloatingFilter: TextFloatingFilter,\n            agNumberColumnFloatingFilter: NumberFloatingFilter,\n            agDateColumnFloatingFilter: DateFloatingFilter,\n            agReadOnlyFloatingFilter: ReadOnlyFloatingFilter,\n            // renderers\n            agAnimateShowChangeCellRenderer: AnimateShowChangeCellRenderer,\n            agAnimateSlideCellRenderer: AnimateSlideCellRenderer,\n            agGroupCellRenderer: GroupCellRenderer,\n            agGroupRowRenderer: GroupCellRenderer,\n            agLoadingCellRenderer: LoadingCellRenderer,\n            //editors\n            agCellEditor: TextCellEditor,\n            agTextCellEditor: TextCellEditor,\n            agSelectCellEditor: SelectCellEditor,\n            agPopupTextCellEditor: PopupTextCellEditor,\n            agPopupSelectCellEditor: PopupSelectCellEditor,\n            agLargeTextCellEditor: LargeTextCellEditor,\n            //filter\n            agTextColumnFilter: TextFilter,\n            agNumberColumnFilter: NumberFilter,\n            agDateColumnFilter: DateFilter,\n            //overlays\n            agLoadingOverlay: LoadingOverlayComponent,\n            agNoRowsOverlay: NoRowsOverlayComponent,\n            // tooltips\n            agTooltipComponent: TooltipComponent\n        };\n        _this.agDeprecatedNames = {\n            set: {\n                newComponentName: 'agSetColumnFilter',\n                propertyHolder: 'filter'\n            },\n            text: {\n                newComponentName: 'agTextColumnFilter',\n                propertyHolder: 'filter'\n            },\n            number: {\n                newComponentName: 'agNumberColumnFilter',\n                propertyHolder: 'filter'\n            },\n            date: {\n                newComponentName: 'agDateColumnFilter',\n                propertyHolder: 'filter'\n            },\n            group: {\n                newComponentName: 'agGroupCellRenderer',\n                propertyHolder: 'cellRenderer'\n            },\n            animateShowChange: {\n                newComponentName: 'agAnimateShowChangeCellRenderer',\n                propertyHolder: 'cellRenderer'\n            },\n            animateSlide: {\n                newComponentName: 'agAnimateSlideCellRenderer',\n                propertyHolder: 'cellRenderer'\n            },\n            select: {\n                newComponentName: 'agSelectCellEditor',\n                propertyHolder: 'cellEditor'\n            },\n            largeText: {\n                newComponentName: 'agLargeTextCellEditor',\n                propertyHolder: 'cellEditor'\n            },\n            popupSelect: {\n                newComponentName: 'agPopupSelectCellEditor',\n                propertyHolder: 'cellEditor'\n            },\n            popupText: {\n                newComponentName: 'agPopupTextCellEditor',\n                propertyHolder: 'cellEditor'\n            },\n            richSelect: {\n                newComponentName: 'agRichSelectCellEditor',\n                propertyHolder: 'cellEditor'\n            },\n            headerComponent: {\n                newComponentName: 'agColumnHeader',\n                propertyHolder: 'headerComponent'\n            }\n        };\n        _this.jsComps = {};\n        _this.fwComps = {};\n        return _this;\n    }\n    UserComponentRegistry.prototype.init = function () {\n        var _this = this;\n        if (this.gridOptions.components != null) {\n            iterateObject(this.gridOptions.components, function (key, component) { return _this.registerJsComponent(key, component); });\n        }\n        if (this.gridOptions.frameworkComponents != null) {\n            iterateObject(this.gridOptions.frameworkComponents, function (key, component) { return _this.registerFwComponent(key, component); });\n        }\n    };\n    UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {\n        var name = this.translateIfDeprecated(rawName);\n        if (this.agGridDefaults[name]) {\n            console.error(\"Trying to overwrite a default component. You should call registerComponent\");\n            return;\n        }\n        this.agGridDefaults[name] = component;\n    };\n    UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {\n        var name = this.translateIfDeprecated(rawName);\n        if (this.fwComps[name]) {\n            console.error(\"Trying to register a component that you have already registered for frameworks: \" + name);\n            return;\n        }\n        this.jsComps[name] = component;\n    };\n    /**\n     * B the business interface (ie IHeader)\n     * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid\n     */\n    UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {\n        var warningMessage = \"AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.\";\n        doOnce(function () { return console.warn(warningMessage); }, \"UserComponentRegistry.frameworkComponentsDeprecated\");\n        var name = this.translateIfDeprecated(rawName);\n        this.fwComps[name] = component;\n    };\n    UserComponentRegistry.prototype.retrieve = function (rawName) {\n        var name = this.translateIfDeprecated(rawName);\n        var createResult = function (component, componentFromFramework) { return ({ componentFromFramework: componentFromFramework, component: component }); };\n        // FrameworkOverrides.frameworkComponent() is used in two locations:\n        // 1) for Vue, user provided components get registered via a framework specific way.\n        // 2) for React, it's how the React UI provides alternative default components (eg GroupCellRenderer and DetailCellRenderer)\n        var registeredViaFrameworkComp = this.getFrameworkOverrides().frameworkComponent(name);\n        if (registeredViaFrameworkComp != null) {\n            return createResult(registeredViaFrameworkComp, true);\n        }\n        var frameworkComponent = this.fwComps[name];\n        if (frameworkComponent) {\n            return createResult(frameworkComponent, true);\n        }\n        var jsComponent = this.jsComps[name];\n        if (jsComponent) {\n            var isFwkComp = this.getFrameworkOverrides().isFrameworkComponent(jsComponent);\n            return createResult(jsComponent, isFwkComp);\n        }\n        var defaultComponent = this.agGridDefaults[name];\n        if (defaultComponent) {\n            return createResult(defaultComponent, false);\n        }\n        if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {\n            console.warn(\"AG Grid: Looking for component [\" + name + \"] but it wasn't found.\");\n        }\n        return null;\n    };\n    UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {\n        var deprecatedInfo = this.agDeprecatedNames[raw];\n        if (deprecatedInfo != null) {\n            doOnce(function () {\n                console.warn(\"ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename \" + deprecatedInfo.propertyHolder + \":\" + raw + \" to \" + deprecatedInfo.propertyHolder + \":\" + deprecatedInfo.newComponentName);\n            }, 'DEPRECATE_COMPONENT_' + raw);\n            return deprecatedInfo.newComponentName;\n        }\n        return raw;\n    };\n    __decorate$D([\n        Autowired('gridOptions')\n    ], UserComponentRegistry.prototype, \"gridOptions\", void 0);\n    __decorate$D([\n        Autowired('agComponentUtils')\n    ], UserComponentRegistry.prototype, \"agComponentUtils\", void 0);\n    __decorate$D([\n        PostConstruct\n    ], UserComponentRegistry.prototype, \"init\", null);\n    UserComponentRegistry = __decorate$D([\n        Bean('userComponentRegistry')\n    ], UserComponentRegistry);\n    return UserComponentRegistry;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar DateComponent = {\n    propertyName: 'dateComponent',\n    cellRenderer: false\n};\nvar HeaderComponent = {\n    propertyName: 'headerComponent',\n    cellRenderer: false\n};\nvar HeaderGroupComponent = {\n    propertyName: 'headerGroupComponent',\n    cellRenderer: false\n};\nvar CellRendererComponent = {\n    propertyName: 'cellRenderer',\n    cellRenderer: true\n};\nvar CellEditorComponent = {\n    propertyName: 'cellEditor',\n    cellRenderer: false\n};\nvar InnerRendererComponent = {\n    propertyName: 'innerRenderer',\n    cellRenderer: true\n};\nvar LoadingOverlayComponent$1 = {\n    propertyName: 'loadingOverlayComponent',\n    cellRenderer: false\n};\nvar NoRowsOverlayComponent$1 = {\n    propertyName: 'noRowsOverlayComponent',\n    cellRenderer: false\n};\nvar TooltipComponent$1 = {\n    propertyName: 'tooltipComponent',\n    cellRenderer: false\n};\nvar FilterComponent = {\n    propertyName: 'filter',\n    cellRenderer: false\n};\nvar FloatingFilterComponent = {\n    propertyName: 'floatingFilterComponent',\n    cellRenderer: false\n};\nvar ToolPanelComponent = {\n    propertyName: 'toolPanel',\n    cellRenderer: false\n};\nvar StatusPanelComponent = {\n    propertyName: 'statusPanel',\n    cellRenderer: false\n};\nvar FullWidth = {\n    propertyName: 'fullWidthCellRenderer',\n    cellRenderer: true\n};\nvar FullWidthLoading = {\n    propertyName: 'loadingCellRenderer',\n    cellRenderer: true\n};\nvar FullWidthGroup = {\n    propertyName: 'groupRowRenderer',\n    cellRenderer: true\n};\nvar FullWidthDetail = {\n    propertyName: 'detailCellRenderer',\n    cellRenderer: true\n};\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar FloatingFilterMapper = /** @class */ (function () {\n    function FloatingFilterMapper() {\n    }\n    FloatingFilterMapper.getFloatingFilterType = function (filterType) {\n        return this.filterToFloatingFilterMapping[filterType];\n    };\n    FloatingFilterMapper.filterToFloatingFilterMapping = {\n        set: 'agSetColumnFloatingFilter',\n        agSetColumnFilter: 'agSetColumnFloatingFilter',\n        multi: 'agMultiColumnFloatingFilter',\n        agMultiColumnFilter: 'agMultiColumnFloatingFilter',\n        number: 'agNumberColumnFloatingFilter',\n        agNumberColumnFilter: 'agNumberColumnFloatingFilter',\n        date: 'agDateColumnFloatingFilter',\n        agDateColumnFilter: 'agDateColumnFloatingFilter',\n        text: 'agTextColumnFloatingFilter',\n        agTextColumnFilter: 'agTextColumnFloatingFilter'\n    };\n    return FloatingFilterMapper;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$L = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$E = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar UserComponentFactory = /** @class */ (function (_super) {\n    __extends$L(UserComponentFactory, _super);\n    function UserComponentFactory() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    UserComponentFactory.prototype.getHeaderCompDetails = function (colDef, params) {\n        return this.getCompDetails(colDef, HeaderComponent, 'agColumnHeader', params);\n    };\n    UserComponentFactory.prototype.getHeaderGroupCompDetails = function (params) {\n        var colGroupDef = params.columnGroup.getColGroupDef();\n        return this.getCompDetails(colGroupDef, HeaderGroupComponent, 'agColumnGroupHeader', params);\n    };\n    // this one is unusual, as it can be LoadingCellRenderer, DetailCellRenderer, FullWidthCellRenderer or GroupRowRenderer.\n    // so we have to pass the type in.\n    UserComponentFactory.prototype.getFullWidthCellRendererDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, FullWidth, null, params, true);\n    };\n    UserComponentFactory.prototype.getFullWidthLoadingCellRendererDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, FullWidthLoading, 'agLoadingCellRenderer', params, true);\n    };\n    UserComponentFactory.prototype.getFullWidthGroupCellRendererDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, FullWidthGroup, 'agGroupRowRenderer', params, true);\n    };\n    UserComponentFactory.prototype.getFullWidthDetailCellRendererDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, FullWidthDetail, 'agDetailCellRenderer', params, true);\n    };\n    // CELL RENDERER\n    UserComponentFactory.prototype.getInnerRendererDetails = function (def, params) {\n        return this.getCompDetails(def, InnerRendererComponent, null, params);\n    };\n    UserComponentFactory.prototype.getFullWidthGroupRowInnerCellRenderer = function (def, params) {\n        return this.getCompDetails(def, InnerRendererComponent, null, params);\n    };\n    UserComponentFactory.prototype.getCellRendererDetails = function (def, params) {\n        return this.getCompDetails(def, CellRendererComponent, null, params);\n    };\n    // CELL EDITOR\n    UserComponentFactory.prototype.getCellEditorDetails = function (def, params) {\n        return this.getCompDetails(def, CellEditorComponent, 'agCellEditor', params, true);\n    };\n    // FILTER\n    UserComponentFactory.prototype.getFilterDetails = function (def, params, defaultFilter) {\n        return this.getCompDetails(def, FilterComponent, defaultFilter, params, true);\n    };\n    UserComponentFactory.prototype.getDateCompDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, DateComponent, 'agDateInput', params, true);\n    };\n    UserComponentFactory.prototype.getLoadingOverlayCompDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, LoadingOverlayComponent$1, 'agLoadingOverlay', params, true);\n    };\n    UserComponentFactory.prototype.getNoRowsOverlayCompDetails = function (params) {\n        return this.getCompDetails(this.gridOptions, NoRowsOverlayComponent$1, 'agNoRowsOverlay', params, true);\n    };\n    UserComponentFactory.prototype.getTooltipCompDetails = function (params) {\n        return this.getCompDetails(params.colDef, TooltipComponent$1, 'agTooltipComponent', params, true);\n    };\n    UserComponentFactory.prototype.getSetFilterCellRendererDetails = function (def, params) {\n        return this.getCompDetails(def, CellRendererComponent, null, params);\n    };\n    UserComponentFactory.prototype.getFloatingFilterCompDetails = function (def, params, defaultFloatingFilter) {\n        return this.getCompDetails(def, FloatingFilterComponent, defaultFloatingFilter, params);\n    };\n    UserComponentFactory.prototype.getToolPanelCompDetails = function (toolPanelDef, params) {\n        return this.getCompDetails(toolPanelDef, ToolPanelComponent, null, params, true);\n    };\n    UserComponentFactory.prototype.getStatusPanelCompDetails = function (def, params) {\n        return this.getCompDetails(def, StatusPanelComponent, null, params, true);\n    };\n    UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {\n        var _this = this;\n        if (mandatory === void 0) { mandatory = false; }\n        var propertyName = type.propertyName, cellRenderer = type.cellRenderer;\n        var _a = this.getCompKeys(defObject, type, params), compName = _a.compName, jsComp = _a.jsComp, fwComp = _a.fwComp, paramsFromSelector = _a.paramsFromSelector, popupFromSelector = _a.popupFromSelector, popupPositionFromSelector = _a.popupPositionFromSelector;\n        var lookupFromRegistry = function (key) {\n            var item = _this.userComponentRegistry.retrieve(key);\n            if (item) {\n                jsComp = !item.componentFromFramework ? item.component : undefined;\n                fwComp = item.componentFromFramework ? item.component : undefined;\n            }\n        };\n        // if compOption is a string, means we need to look the item up\n        if (compName != null) {\n            lookupFromRegistry(compName);\n        }\n        // if lookup brought nothing back, and we have a default, lookup the default\n        if (jsComp == null && fwComp == null && defaultName != null) {\n            lookupFromRegistry(defaultName);\n        }\n        // if we have a comp option, and it's a function, replace it with an object equivalent adaptor\n        if (jsComp && cellRenderer && !this.agComponentUtils.doesImplementIComponent(jsComp)) {\n            jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);\n        }\n        if (!jsComp && !fwComp) {\n            if (mandatory) {\n                console.error(\"Could not find component \" + compName + \", did you forget to configure this component?\");\n            }\n            return;\n        }\n        var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);\n        var componentFromFramework = jsComp == null;\n        var componentClass = jsComp ? jsComp : fwComp;\n        return {\n            componentFromFramework: componentFromFramework,\n            componentClass: componentClass,\n            params: paramsMerged,\n            type: type,\n            popupFromSelector: popupFromSelector,\n            popupPositionFromSelector: popupPositionFromSelector,\n            newAgStackInstance: function () { return _this.newAgStackInstance(componentClass, componentFromFramework, paramsMerged, type); }\n        };\n    };\n    UserComponentFactory.prototype.getCompKeys = function (defObject, type, params) {\n        var _this = this;\n        var propertyName = type.propertyName;\n        var compName;\n        var jsComp;\n        var fwComp;\n        var paramsFromSelector;\n        var popupFromSelector;\n        var popupPositionFromSelector;\n        // there are two types of js comps, class based and func based. we can only check for\n        // class based, by checking if getGui() exists. no way to differentiate js func based vs eg react func based\n        // const isJsClassComp = (comp: any) => this.agComponentUtils.doesImplementIComponent(comp);\n        // const fwActive = this.frameworkComponentWrapper != null;\n        // pull from defObject if available\n        if (defObject) {\n            var defObjectAny = defObject;\n            // if selector, use this\n            var selectorFunc = defObjectAny[propertyName + 'Selector'];\n            var selectorRes = selectorFunc ? selectorFunc(params) : null;\n            var assignComp = function (providedJsComp, providedFwComp) {\n                var xxxFrameworkDeprecatedWarn = function () {\n                    var warningMessage = \"AG Grid: As of v27, the property \" + propertyName + \"Framework is deprecated. The property \" + propertyName + \" can now be used for JavaScript AND Framework Components.\";\n                    doOnce(function () { return console.warn(warningMessage); }, \"UserComponentFactory.\" + propertyName + \"FrameworkDeprecated\");\n                };\n                if (typeof providedJsComp === 'string') {\n                    compName = providedJsComp;\n                }\n                else if (typeof providedFwComp === 'string') {\n                    xxxFrameworkDeprecatedWarn();\n                    compName = providedFwComp;\n                    // comp===true for filters, which means use the default comp\n                }\n                else if (providedJsComp != null && providedJsComp !== true) {\n                    var isFwkComp = _this.getFrameworkOverrides().isFrameworkComponent(providedJsComp);\n                    if (isFwkComp) {\n                        fwComp = providedJsComp;\n                    }\n                    else {\n                        jsComp = providedJsComp;\n                    }\n                }\n                else if (providedFwComp != null) {\n                    xxxFrameworkDeprecatedWarn();\n                    fwComp = providedFwComp;\n                }\n            };\n            if (selectorRes) {\n                if (selectorRes.frameworkComponent != null) {\n                    var warningMessage_1 = \"AG Grid: As of v27, the return for \" + propertyName + \"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.\";\n                    doOnce(function () { return console.warn(warningMessage_1); }, \"UserComponentFactory.\" + propertyName + \"FrameworkSelectorDeprecated\");\n                    assignComp(selectorRes.frameworkComponent, undefined);\n                }\n                else {\n                    assignComp(selectorRes.component, undefined);\n                }\n                paramsFromSelector = selectorRes.params;\n                popupFromSelector = selectorRes.popup;\n                popupPositionFromSelector = selectorRes.popupPosition;\n            }\n            else {\n                // if no selector, or result of selector is empty, take from defObject\n                assignComp(defObjectAny[propertyName], defObjectAny[propertyName + 'Framework']);\n            }\n        }\n        return { compName: compName, jsComp: jsComp, fwComp: fwComp, paramsFromSelector: paramsFromSelector, popupFromSelector: popupFromSelector, popupPositionFromSelector: popupPositionFromSelector };\n    };\n    UserComponentFactory.prototype.newAgStackInstance = function (ComponentClass, componentFromFramework, params, type) {\n        var propertyName = type.propertyName;\n        var jsComponent = !componentFromFramework;\n        // using javascript component\n        var instance;\n        if (jsComponent) {\n            instance = new ComponentClass();\n        }\n        else {\n            // Using framework component\n            var thisComponentConfig = this.componentMetadataProvider.retrieve(propertyName);\n            instance = this.frameworkComponentWrapper.wrap(ComponentClass, thisComponentConfig.mandatoryMethodList, thisComponentConfig.optionalMethodList, type);\n        }\n        var deferredInit = this.initComponent(instance, params);\n        if (deferredInit == null) {\n            return AgPromise.resolve(instance);\n        }\n        return deferredInit.then(function () { return instance; });\n    };\n    // used by Floating Filter\n    UserComponentFactory.prototype.mergeParamsWithApplicationProvidedParams = function (defObject, type, paramsFromGrid, paramsFromSelector) {\n        if (paramsFromSelector === void 0) { paramsFromSelector = null; }\n        var params = {\n            context: this.gridOptionsWrapper.getContext(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            api: this.gridOptionsWrapper.getApi()\n        };\n        mergeDeep(params, paramsFromGrid);\n        // pull user params from either the old prop name and new prop name\n        // eg either cellRendererParams and cellCompParams\n        var defObjectAny = defObject;\n        var userParams = defObjectAny && defObjectAny[type.propertyName + 'Params'];\n        if (typeof userParams === 'function') {\n            var userParamsFromFunc = userParams(paramsFromGrid);\n            mergeDeep(params, userParamsFromFunc);\n        }\n        else if (typeof userParams === 'object') {\n            mergeDeep(params, userParams);\n        }\n        mergeDeep(params, paramsFromSelector);\n        return params;\n    };\n    UserComponentFactory.prototype.initComponent = function (component, params) {\n        this.context.createBean(component);\n        if (component.init == null) {\n            return;\n        }\n        return component.init(params);\n    };\n    UserComponentFactory.prototype.getDefaultFloatingFilterType = function (def) {\n        if (def == null) {\n            return null;\n        }\n        var defaultFloatingFilterType = null;\n        var _a = this.getCompKeys(def, FilterComponent), compName = _a.compName, jsComp = _a.jsComp, fwComp = _a.fwComp;\n        if (compName) {\n            // will be undefined if not in the map\n            defaultFloatingFilterType = FloatingFilterMapper.getFloatingFilterType(compName);\n        }\n        else {\n            var usingDefaultFilter = (jsComp == null && fwComp == null) && (def.filter === true);\n            if (usingDefaultFilter) {\n                var setFilterModuleLoaded = ModuleRegistry.isRegistered(exports.ModuleNames.SetFilterModule);\n                defaultFloatingFilterType = setFilterModuleLoaded ? 'agSetColumnFloatingFilter' : 'agTextColumnFloatingFilter';\n            }\n        }\n        return defaultFloatingFilterType;\n    };\n    __decorate$E([\n        Autowired('gridOptions')\n    ], UserComponentFactory.prototype, \"gridOptions\", void 0);\n    __decorate$E([\n        Autowired('agComponentUtils')\n    ], UserComponentFactory.prototype, \"agComponentUtils\", void 0);\n    __decorate$E([\n        Autowired('componentMetadataProvider')\n    ], UserComponentFactory.prototype, \"componentMetadataProvider\", void 0);\n    __decorate$E([\n        Autowired('userComponentRegistry')\n    ], UserComponentFactory.prototype, \"userComponentRegistry\", void 0);\n    __decorate$E([\n        Optional('frameworkComponentWrapper')\n    ], UserComponentFactory.prototype, \"frameworkComponentWrapper\", void 0);\n    UserComponentFactory = __decorate$E([\n        Bean('userComponentFactory')\n    ], UserComponentFactory);\n    return UserComponentFactory;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (ExcelFactoryMode) {\n    ExcelFactoryMode[ExcelFactoryMode[\"SINGLE_SHEET\"] = 0] = \"SINGLE_SHEET\";\n    ExcelFactoryMode[ExcelFactoryMode[\"MULTI_SHEET\"] = 1] = \"MULTI_SHEET\";\n})(exports.ExcelFactoryMode || (exports.ExcelFactoryMode = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$M = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$F = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/** Adds drag listening onto an element. In AG Grid this is used twice, first is resizing columns,\n * second is moving the columns and column groups around (ie the 'drag' part of Drag and Drop. */\nvar DragService = /** @class */ (function (_super) {\n    __extends$M(DragService, _super);\n    function DragService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.dragEndFunctions = [];\n        _this.dragSources = [];\n        return _this;\n    }\n    DragService.prototype.init = function () {\n        this.logger = this.loggerFactory.create('DragService');\n    };\n    DragService.prototype.removeAllListeners = function () {\n        this.dragSources.forEach(this.removeListener.bind(this));\n        this.dragSources.length = 0;\n    };\n    DragService.prototype.removeListener = function (dragSourceAndListener) {\n        var element = dragSourceAndListener.dragSource.eElement;\n        var mouseDownListener = dragSourceAndListener.mouseDownListener;\n        element.removeEventListener('mousedown', mouseDownListener);\n        // remove touch listener only if it exists\n        if (dragSourceAndListener.touchEnabled) {\n            var touchStartListener = dragSourceAndListener.touchStartListener;\n            element.removeEventListener('touchstart', touchStartListener, { passive: true });\n        }\n    };\n    DragService.prototype.removeDragSource = function (params) {\n        var dragSourceAndListener = this.dragSources.find(function (item) { return item.dragSource === params; });\n        if (!dragSourceAndListener) {\n            return;\n        }\n        this.removeListener(dragSourceAndListener);\n        removeFromArray(this.dragSources, dragSourceAndListener);\n    };\n    DragService.prototype.isDragging = function () {\n        return this.dragging;\n    };\n    DragService.prototype.addDragSource = function (params, includeTouch) {\n        var _this = this;\n        if (includeTouch === void 0) { includeTouch = false; }\n        var mouseListener = this.onMouseDown.bind(this, params);\n        params.eElement.addEventListener('mousedown', mouseListener);\n        var touchListener = null;\n        var suppressTouch = this.gridOptionsWrapper.isSuppressTouch();\n        if (includeTouch && !suppressTouch) {\n            touchListener = function (touchEvent) {\n                if (touchEvent.cancelable) {\n                    touchEvent.preventDefault();\n                }\n                _this.onTouchStart(params, touchEvent);\n            };\n            params.eElement.addEventListener('touchstart', touchListener, { passive: true });\n        }\n        this.dragSources.push({\n            dragSource: params,\n            mouseDownListener: mouseListener,\n            touchStartListener: touchListener,\n            touchEnabled: includeTouch\n        });\n    };\n    // gets called whenever mouse down on any drag source\n    DragService.prototype.onTouchStart = function (params, touchEvent) {\n        var _this = this;\n        this.currentDragParams = params;\n        this.dragging = false;\n        var touch = touchEvent.touches[0];\n        this.touchLastTime = touch;\n        this.touchStart = touch;\n        var touchMoveEvent = function (e) { return _this.onTouchMove(e, params.eElement); };\n        var touchEndEvent = function (e) { return _this.onTouchUp(e, params.eElement); };\n        var documentTouchMove = function (e) { if (e.cancelable) {\n            e.preventDefault();\n        } };\n        var target = params.eElement;\n        var events = [\n            // Prevents the page document from moving while we are dragging items around.\n            // preventDefault needs to be called in the touchmove listener and never inside the\n            // touchstart, because using touchstart causes the click event to be cancelled on touch devices.\n            { target: document, type: 'touchmove', listener: documentTouchMove, options: { passive: false } },\n            { target: target, type: 'touchmove', listener: touchMoveEvent, options: { passive: true } },\n            { target: target, type: 'touchend', listener: touchEndEvent, options: { passive: true } },\n            { target: target, type: 'touchcancel', listener: touchEndEvent, options: { passive: true } }\n        ];\n        // temporally add these listeners, for the duration of the drag\n        this.addTemporaryEvents(events);\n        // see if we want to start dragging straight away\n        if (params.dragStartPixels === 0) {\n            this.onCommonMove(touch, this.touchStart, params.eElement);\n        }\n    };\n    // gets called whenever mouse down on any drag source\n    DragService.prototype.onMouseDown = function (params, mouseEvent) {\n        var _this = this;\n        var e = mouseEvent;\n        if (params.skipMouseEvent && params.skipMouseEvent(mouseEvent)) {\n            return;\n        }\n        // if there are two elements with parent / child relationship, and both are draggable,\n        // when we drag the child, we should NOT drag the parent. an example of this is row moving\n        // and range selection - row moving should get preference when use drags the rowDrag component.\n        if (e._alreadyProcessedByDragService) {\n            return;\n        }\n        e._alreadyProcessedByDragService = true;\n        // only interested in left button clicks\n        if (mouseEvent.button !== 0) {\n            return;\n        }\n        this.currentDragParams = params;\n        this.dragging = false;\n        this.mouseStartEvent = mouseEvent;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var mouseMoveEvent = function (event) { return _this.onMouseMove(event, params.eElement); };\n        var mouseUpEvent = function (event) { return _this.onMouseUp(event, params.eElement); };\n        var contextEvent = function (event) { return event.preventDefault(); };\n        var target = eDocument;\n        var events = [\n            { target: target, type: 'mousemove', listener: mouseMoveEvent },\n            { target: target, type: 'mouseup', listener: mouseUpEvent },\n            { target: target, type: 'contextmenu', listener: contextEvent }\n        ];\n        // temporally add these listeners, for the duration of the drag\n        this.addTemporaryEvents(events);\n        //see if we want to start dragging straight away\n        if (params.dragStartPixels === 0) {\n            this.onMouseMove(mouseEvent, params.eElement);\n        }\n    };\n    DragService.prototype.addTemporaryEvents = function (events) {\n        events.forEach(function (currentEvent) {\n            var target = currentEvent.target, type = currentEvent.type, listener = currentEvent.listener, options = currentEvent.options;\n            target.addEventListener(type, listener, options);\n        });\n        this.dragEndFunctions.push(function () {\n            events.forEach(function (currentEvent) {\n                var target = currentEvent.target, type = currentEvent.type, listener = currentEvent.listener, options = currentEvent.options;\n                target.removeEventListener(type, listener, options);\n            });\n        });\n    };\n    // returns true if the event is close to the original event by X pixels either vertically or horizontally.\n    // we only start dragging after X pixels so this allows us to know if we should start dragging yet.\n    DragService.prototype.isEventNearStartEvent = function (currentEvent, startEvent) {\n        // by default, we wait 4 pixels before starting the drag\n        var dragStartPixels = this.currentDragParams.dragStartPixels;\n        var requiredPixelDiff = exists(dragStartPixels) ? dragStartPixels : 4;\n        return areEventsNear(currentEvent, startEvent, requiredPixelDiff);\n    };\n    DragService.prototype.getFirstActiveTouch = function (touchList) {\n        for (var i = 0; i < touchList.length; i++) {\n            if (touchList[i].identifier === this.touchStart.identifier) {\n                return touchList[i];\n            }\n        }\n        return null;\n    };\n    DragService.prototype.onCommonMove = function (currentEvent, startEvent, el) {\n        if (!this.dragging) {\n            // if mouse hasn't travelled from the start position enough, do nothing\n            if (!this.dragging && this.isEventNearStartEvent(currentEvent, startEvent)) {\n                return;\n            }\n            this.dragging = true;\n            var event_1 = {\n                type: Events.EVENT_DRAG_STARTED,\n                api: this.gridApi,\n                columnApi: this.columnApi,\n                target: el\n            };\n            this.eventService.dispatchEvent(event_1);\n            this.currentDragParams.onDragStart(startEvent);\n            // we need ONE drag action at the startEvent, so that we are guaranteed the drop target\n            // at the start gets notified. this is because the drag can start outside of the element\n            // that started it, as the mouse is allowed drag away from the mouse down before it's\n            // considered a drag (the isEventNearStartEvent() above). if we didn't do this, then\n            // it would be possible to click a column by the edge, then drag outside of the drop zone\n            // in less than 4 pixels and the drag officially starts outside of the header but the header\n            // wouldn't be notified of the dragging.\n            this.currentDragParams.onDragging(startEvent);\n        }\n        this.currentDragParams.onDragging(currentEvent);\n    };\n    DragService.prototype.onTouchMove = function (touchEvent, el) {\n        var touch = this.getFirstActiveTouch(touchEvent.touches);\n        if (!touch) {\n            return;\n        }\n        // this.___statusPanel.setInfoText(Math.random() + ' onTouchMove preventDefault stopPropagation');\n        this.onCommonMove(touch, this.touchStart, el);\n    };\n    // only gets called after a mouse down - as this is only added after mouseDown\n    // and is removed when mouseUp happens\n    DragService.prototype.onMouseMove = function (mouseEvent, el) {\n        // The event type can be `mousedown` when `dragStartPixels=0`\n        // we should only preventDefault on `mousemove`.\n        if (isBrowserSafari() &&\n            mouseEvent.type === 'mousemove' &&\n            mouseEvent.cancelable &&\n            this.mouseEventService.isEventFromThisGrid(mouseEvent) &&\n            !this.isOverFormFieldElement(mouseEvent)) {\n            mouseEvent.preventDefault();\n        }\n        this.onCommonMove(mouseEvent, this.mouseStartEvent, el);\n    };\n    DragService.prototype.isOverFormFieldElement = function (mouseEvent) {\n        var _a, _b;\n        var el = mouseEvent.target;\n        var tagName = (_a = el) === null || _a === void 0 ? void 0 : _a.tagName.toLocaleLowerCase();\n        return !!((_b = tagName) === null || _b === void 0 ? void 0 : _b.match('^a$|textarea|input|select|button'));\n    };\n    DragService.prototype.onTouchUp = function (touchEvent, el) {\n        var touch = this.getFirstActiveTouch(touchEvent.changedTouches);\n        // i haven't worked this out yet, but there is no matching touch\n        // when we get the touch up event. to get around this, we swap in\n        // the last touch. this is a hack to 'get it working' while we\n        // figure out what's going on, why we are not getting a touch in\n        // current event.\n        if (!touch) {\n            touch = this.touchLastTime;\n        }\n        // if mouse was left up before we started to move, then this is a tap.\n        // we check this before onUpCommon as onUpCommon resets the dragging\n        // let tap = !this.dragging;\n        // let tapTarget = this.currentDragParams.eElement;\n        this.onUpCommon(touch, el);\n        // if tap, tell user\n        // console.log(`${Math.random()} tap = ${tap}`);\n        // if (tap) {\n        //     tapTarget.click();\n        // }\n    };\n    DragService.prototype.onMouseUp = function (mouseEvent, el) {\n        this.onUpCommon(mouseEvent, el);\n    };\n    DragService.prototype.onUpCommon = function (eventOrTouch, el) {\n        if (this.dragging) {\n            this.dragging = false;\n            this.currentDragParams.onDragStop(eventOrTouch);\n            var event_2 = {\n                type: Events.EVENT_DRAG_STOPPED,\n                api: this.gridApi,\n                columnApi: this.columnApi,\n                target: el\n            };\n            this.eventService.dispatchEvent(event_2);\n        }\n        this.mouseStartEvent = null;\n        this.touchStart = null;\n        this.touchLastTime = null;\n        this.currentDragParams = null;\n        this.dragEndFunctions.forEach(function (func) { return func(); });\n        this.dragEndFunctions.length = 0;\n    };\n    __decorate$F([\n        Autowired('loggerFactory')\n    ], DragService.prototype, \"loggerFactory\", void 0);\n    __decorate$F([\n        Autowired('columnApi')\n    ], DragService.prototype, \"columnApi\", void 0);\n    __decorate$F([\n        Autowired('gridApi')\n    ], DragService.prototype, \"gridApi\", void 0);\n    __decorate$F([\n        Autowired('mouseEventService')\n    ], DragService.prototype, \"mouseEventService\", void 0);\n    __decorate$F([\n        PostConstruct\n    ], DragService.prototype, \"init\", null);\n    __decorate$F([\n        PreDestroy\n    ], DragService.prototype, \"removeAllListeners\", null);\n    DragService = __decorate$F([\n        Bean('dragService')\n    ], DragService);\n    return DragService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$N = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$8 = (undefined && undefined.__assign) || function () {\n    __assign$8 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$8.apply(this, arguments);\n};\nvar __decorate$G = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FilterManager = /** @class */ (function (_super) {\n    __extends$N(FilterManager, _super);\n    function FilterManager() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.allColumnFilters = new Map();\n        _this.activeAggregateFilters = [];\n        _this.activeColumnFilters = [];\n        _this.quickFilter = null;\n        _this.quickFilterParts = null;\n        // this is true when the grid is processing the filter change. this is used by the cell comps, so that they\n        // don't flash when data changes due to filter changes. there is no need to flash when filter changes as the\n        // user is in control, so doesn't make sense to show flashing changes. for example, go to main demo where\n        // this feature is turned off (hack code to always return false for isSuppressFlashingCellsBecauseFiltering(), put in)\n        // 100,000 rows and group by country. then do some filtering. all the cells flash, which is silly.\n        _this.processingFilterChange = false;\n        return _this;\n    }\n    FilterManager_1 = FilterManager;\n    FilterManager.prototype.init = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, function () { return _this.onColumnsChanged(); });\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, function () { return _this.refreshFiltersForAggregations(); });\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, function () { return _this.refreshFiltersForAggregations(); });\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () { return _this.refreshFiltersForAggregations(); });\n        this.quickFilter = this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText());\n        this.setQuickFilterParts();\n        this.allowShowChangeAfterFilter = this.gridOptionsWrapper.isAllowShowChangeAfterFilter();\n    };\n    FilterManager.prototype.setQuickFilterParts = function () {\n        this.quickFilterParts = this.quickFilter ? this.quickFilter.split(' ') : null;\n    };\n    FilterManager.prototype.setFilterModel = function (model) {\n        var _this = this;\n        var allPromises = [];\n        var previousModel = this.getFilterModel();\n        if (model) {\n            // mark the filters as we set them, so any active filters left over we stop\n            var modelKeys_1 = convertToSet(Object.keys(model));\n            this.allColumnFilters.forEach(function (filterWrapper, colId) {\n                var newModel = model[colId];\n                allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, newModel));\n                modelKeys_1.delete(colId);\n            });\n            // at this point, processedFields contains data for which we don't have a filter working yet\n            modelKeys_1.forEach(function (colId) {\n                var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);\n                if (!column) {\n                    console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);\n                    return;\n                }\n                if (!column.isFilterAllowed()) {\n                    console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);\n                    return;\n                }\n                var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');\n                if (!filterWrapper) {\n                    console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);\n                    return;\n                }\n                allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));\n            });\n        }\n        else {\n            this.allColumnFilters.forEach(function (filterWrapper) {\n                allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, null));\n            });\n        }\n        AgPromise.all(allPromises).then(function () {\n            var currentModel = _this.getFilterModel();\n            var columns = [];\n            _this.allColumnFilters.forEach(function (filterWrapper, colId) {\n                var before = previousModel ? previousModel[colId] : null;\n                var after = currentModel ? currentModel[colId] : null;\n                if (!_.jsonEquals(before, after)) {\n                    columns.push(filterWrapper.column);\n                }\n            });\n            if (columns.length > 0) {\n                _this.onFilterChanged({ columns: columns });\n            }\n        });\n    };\n    FilterManager.prototype.setModelOnFilterWrapper = function (filterPromise, newModel) {\n        return new AgPromise(function (resolve) {\n            filterPromise.then(function (filter) {\n                if (typeof filter.setModel !== 'function') {\n                    console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');\n                    resolve();\n                }\n                (filter.setModel(newModel) || AgPromise.resolve()).then(function () { return resolve(); });\n            });\n        });\n    };\n    FilterManager.prototype.getFilterModel = function () {\n        var result = {};\n        this.allColumnFilters.forEach(function (filterWrapper, key) {\n            // because user can provide filters, we provide useful error checking and messages\n            var filterPromise = filterWrapper.filterPromise;\n            var filter = filterPromise.resolveNow(null, function (promiseFilter) { return promiseFilter; });\n            if (filter == null) {\n                return null;\n            }\n            if (typeof filter.getModel !== 'function') {\n                console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');\n                return;\n            }\n            var model = filter.getModel();\n            if (exists(model)) {\n                result[key] = model;\n            }\n        });\n        return result;\n    };\n    FilterManager.prototype.isColumnFilterPresent = function () {\n        return this.activeColumnFilters.length > 0;\n    };\n    FilterManager.prototype.isAggregateFilterPresent = function () {\n        return !!this.activeAggregateFilters.length;\n    };\n    FilterManager.prototype.doAggregateFiltersPass = function (node, filterToSkip) {\n        return this.doColumnFiltersPass(node, filterToSkip, true);\n    };\n    // called by:\n    // 1) onFilterChanged()\n    // 2) onNewRowsLoaded()\n    FilterManager.prototype.updateActiveFilters = function () {\n        var _this = this;\n        this.activeColumnFilters.length = 0;\n        this.activeAggregateFilters.length = 0;\n        var isFilterActive = function (filter) {\n            if (!filter) {\n                return false;\n            } // this never happens, including to avoid compile error\n            if (!filter.isFilterActive) {\n                console.warn('AG Grid: Filter is missing isFilterActive() method');\n                return false;\n            }\n            return filter.isFilterActive();\n        };\n        var groupFilterEnabled = !!this.gridOptionsWrapper.getGroupAggFiltering();\n        var isAggFilter = function (column) {\n            var isSecondary = !column.isPrimary();\n            // the only filters that can appear on secondary columns are groupAgg filters\n            if (isSecondary) {\n                return true;\n            }\n            var isShowingPrimaryColumns = !_this.columnModel.isPivotActive();\n            var isValueActive = column.isValueActive();\n            // primary columns are only ever groupAgg filters if a) value is active and b) showing primary columns\n            if (!isValueActive || !isShowingPrimaryColumns) {\n                return false;\n            }\n            // from here on we know: isPrimary=true, isValueActive=true, isShowingPrimaryColumns=true\n            if (_this.columnModel.isPivotMode()) {\n                // primary column is pretending to be a pivot column, ie pivotMode=true, but we are\n                // still showing primary columns\n                return true;\n            }\n            else {\n                // we are not pivoting, so we groupFilter when it's an agg column\n                return groupFilterEnabled;\n            }\n        };\n        this.allColumnFilters.forEach(function (filterWrapper) {\n            if (filterWrapper.filterPromise.resolveNow(false, isFilterActive)) {\n                var filterComp = filterWrapper.filterPromise.resolveNow(null, function (filter) { return filter; });\n                if (isAggFilter(filterWrapper.column)) {\n                    _this.activeAggregateFilters.push(filterComp);\n                }\n                else {\n                    _this.activeColumnFilters.push(filterComp);\n                }\n            }\n        });\n    };\n    FilterManager.prototype.updateFilterFlagInColumns = function (source, additionalEventAttributes) {\n        this.allColumnFilters.forEach(function (filterWrapper) {\n            var isFilterActive = filterWrapper.filterPromise.resolveNow(false, function (filter) { return filter.isFilterActive(); });\n            filterWrapper.column.setFilterActive(isFilterActive, source, additionalEventAttributes);\n        });\n    };\n    FilterManager.prototype.isAnyFilterPresent = function () {\n        return this.isQuickFilterPresent() || this.isColumnFilterPresent() || this.isAggregateFilterPresent() || this.gridOptionsWrapper.isExternalFilterPresent();\n    };\n    FilterManager.prototype.doColumnFiltersPass = function (node, filterToSkip, targetAggregates) {\n        var data = node.data, aggData = node.aggData;\n        var targetedFilters = targetAggregates ? this.activeAggregateFilters : this.activeColumnFilters;\n        var targetedData = targetAggregates ? aggData : data;\n        for (var i = 0; i < targetedFilters.length; i++) {\n            var filter = targetedFilters[i];\n            if (filter == null || filter === filterToSkip) {\n                continue;\n            }\n            if (typeof filter.doesFilterPass !== 'function') {\n                // because users can do custom filters, give nice error message\n                throw new Error('Filter is missing method doesFilterPass');\n            }\n            if (!filter.doesFilterPass({ node: node, data: targetedData })) {\n                return false;\n            }\n        }\n        return true;\n    };\n    FilterManager.prototype.parseQuickFilter = function (newFilter) {\n        if (!exists(newFilter)) {\n            return null;\n        }\n        if (!this.gridOptionsWrapper.isRowModelDefault()) {\n            console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');\n            return null;\n        }\n        return newFilter.toUpperCase();\n    };\n    FilterManager.prototype.setQuickFilter = function (newFilter) {\n        if (newFilter != null && typeof newFilter !== 'string') {\n            console.warn(\"AG Grid - setQuickFilter() only supports string inputs, received: \" + typeof newFilter);\n            return;\n        }\n        var parsedFilter = this.parseQuickFilter(newFilter);\n        if (this.quickFilter !== parsedFilter) {\n            this.quickFilter = parsedFilter;\n            this.setQuickFilterParts();\n            this.onFilterChanged();\n        }\n    };\n    FilterManager.prototype.refreshFiltersForAggregations = function () {\n        var isAggFiltering = this.gridOptionsWrapper.getGroupAggFiltering();\n        if (isAggFiltering) {\n            this.onFilterChanged();\n        }\n    };\n    // sometimes (especially in React) the filter can call onFilterChanged when we are in the middle\n    // of a render cycle. this would be bad, so we wait for render cycle to complete when this happens.\n    // this happens in react when we change React State in the grid (eg setting RowCtrl's in RowContainer)\n    // which results in React State getting applied in the main application, triggering a useEffect() to\n    // be kicked off adn then the application calling the grid's API. in AG-6554, the custom filter was\n    // getting it's useEffect() triggered in this way.\n    FilterManager.prototype.callOnFilterChangedOutsideRenderCycle = function (params) {\n        var _this = this;\n        if (params === void 0) { params = {}; }\n        var action = function () { return _this.onFilterChanged(params); };\n        if (this.rowRenderer.isRefreshInProgress()) {\n            setTimeout(action, 0);\n        }\n        else {\n            action();\n        }\n    };\n    FilterManager.prototype.onFilterChanged = function (params) {\n        if (params === void 0) { params = {}; }\n        var filterInstance = params.filterInstance, additionalEventAttributes = params.additionalEventAttributes, columns = params.columns;\n        this.updateActiveFilters();\n        this.updateFilterFlagInColumns('filterChanged', additionalEventAttributes);\n        this.allColumnFilters.forEach(function (filterWrapper) {\n            if (!filterWrapper.filterPromise) {\n                return;\n            }\n            filterWrapper.filterPromise.then(function (filter) {\n                if (filter && filter !== filterInstance && filter.onAnyFilterChanged) {\n                    filter.onAnyFilterChanged();\n                }\n            });\n        });\n        var filterChangedEvent = {\n            type: Events.EVENT_FILTER_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            columns: columns || [],\n        };\n        if (additionalEventAttributes) {\n            mergeDeep(filterChangedEvent, additionalEventAttributes);\n        }\n        // because internal events are not async in ag-grid, when the dispatchEvent\n        // method comes back, we know all listeners have finished executing.\n        this.processingFilterChange = true;\n        this.eventService.dispatchEvent(filterChangedEvent);\n        this.processingFilterChange = false;\n    };\n    FilterManager.prototype.isSuppressFlashingCellsBecauseFiltering = function () {\n        // if user has elected to always flash cell changes, then always return false, otherwise we suppress flashing\n        // changes when filtering\n        return !this.allowShowChangeAfterFilter && this.processingFilterChange;\n    };\n    FilterManager.prototype.isQuickFilterPresent = function () {\n        return this.quickFilter !== null;\n    };\n    FilterManager.prototype.doesRowPassOtherFilters = function (filterToSkip, node) {\n        return this.doesRowPassFilter({ rowNode: node, filterInstanceToSkip: filterToSkip });\n    };\n    FilterManager.prototype.doesRowPassQuickFilterNoCache = function (node, filterPart) {\n        var _this = this;\n        var columns = this.columnModel.getAllColumnsForQuickFilter();\n        return columns.some(function (column) {\n            var part = _this.getQuickFilterTextForColumn(column, node);\n            return exists(part) && part.indexOf(filterPart) >= 0;\n        });\n    };\n    FilterManager.prototype.doesRowPassQuickFilterCache = function (node, filterPart) {\n        if (!node.quickFilterAggregateText) {\n            this.aggregateRowForQuickFilter(node);\n        }\n        return node.quickFilterAggregateText.indexOf(filterPart) >= 0;\n    };\n    FilterManager.prototype.doesRowPassQuickFilter = function (node) {\n        var _this = this;\n        var usingCache = this.gridOptionsWrapper.isCacheQuickFilter();\n        // each part must pass, if any fails, then the whole filter fails\n        return this.quickFilterParts.every(function (part) {\n            return usingCache ? _this.doesRowPassQuickFilterCache(node, part) : _this.doesRowPassQuickFilterNoCache(node, part);\n        });\n    };\n    FilterManager.prototype.doesRowPassAggregateFilters = function (params) {\n        if (this.isAggregateFilterPresent() && !this.doAggregateFiltersPass(params.rowNode, params.filterInstanceToSkip)) {\n            return false;\n        }\n        // got this far, all filters pass\n        return true;\n    };\n    FilterManager.prototype.doesRowPassFilter = function (params) {\n        // the row must pass ALL of the filters, so if any of them fail,\n        // we return true. that means if a row passes the quick filter,\n        // but fails the column filter, it fails overall\n        // first up, check quick filter\n        if (this.isQuickFilterPresent() && !this.doesRowPassQuickFilter(params.rowNode)) {\n            return false;\n        }\n        // secondly, give the client a chance to reject this row\n        if (this.gridOptionsWrapper.isExternalFilterPresent() && !this.gridOptionsWrapper.doesExternalFilterPass(params.rowNode)) {\n            return false;\n        }\n        // lastly, check column filter\n        if (this.isColumnFilterPresent() && !this.doColumnFiltersPass(params.rowNode, params.filterInstanceToSkip)) {\n            return false;\n        }\n        // got this far, all filters pass\n        return true;\n    };\n    FilterManager.prototype.getQuickFilterTextForColumn = function (column, node) {\n        var value = this.valueService.getValue(column, node, true);\n        var colDef = column.getColDef();\n        if (colDef.getQuickFilterText) {\n            var params = {\n                value: value,\n                node: node,\n                data: node.data,\n                column: column,\n                colDef: colDef,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            };\n            value = colDef.getQuickFilterText(params);\n        }\n        return exists(value) ? value.toString().toUpperCase() : null;\n    };\n    FilterManager.prototype.aggregateRowForQuickFilter = function (node) {\n        var _this = this;\n        var stringParts = [];\n        var columns = this.columnModel.getAllColumnsForQuickFilter();\n        columns.forEach(function (column) {\n            var part = _this.getQuickFilterTextForColumn(column, node);\n            if (exists(part)) {\n                stringParts.push(part);\n            }\n        });\n        node.quickFilterAggregateText = stringParts.join(FilterManager_1.QUICK_FILTER_SEPARATOR);\n    };\n    FilterManager.prototype.onNewRowsLoaded = function (source) {\n        this.allColumnFilters.forEach(function (filterWrapper) {\n            filterWrapper.filterPromise.then(function (filter) {\n                if (filter.onNewRowsLoaded) {\n                    filter.onNewRowsLoaded();\n                }\n            });\n        });\n        this.updateFilterFlagInColumns(source);\n        this.updateActiveFilters();\n    };\n    FilterManager.prototype.createValueGetter = function (column) {\n        var _this = this;\n        return function (_a) {\n            var node = _a.node;\n            return _this.valueService.getValue(column, node, true);\n        };\n    };\n    FilterManager.prototype.getFilterComponent = function (column, source, createIfDoesNotExist) {\n        if (createIfDoesNotExist === void 0) { createIfDoesNotExist = true; }\n        var _a;\n        if (createIfDoesNotExist) {\n            return ((_a = this.getOrCreateFilterWrapper(column, source)) === null || _a === void 0 ? void 0 : _a.filterPromise) || null;\n        }\n        var filterWrapper = this.cachedFilter(column);\n        return filterWrapper ? filterWrapper.filterPromise : null;\n    };\n    FilterManager.prototype.isFilterActive = function (column) {\n        var filterWrapper = this.cachedFilter(column);\n        return !!filterWrapper && filterWrapper.filterPromise.resolveNow(false, function (filter) { return filter.isFilterActive(); });\n    };\n    FilterManager.prototype.getOrCreateFilterWrapper = function (column, source) {\n        if (!column.isFilterAllowed()) {\n            return null;\n        }\n        var filterWrapper = this.cachedFilter(column);\n        if (!filterWrapper) {\n            filterWrapper = this.createFilterWrapper(column, source);\n            this.allColumnFilters.set(column.getColId(), filterWrapper);\n        }\n        else if (source !== 'NO_UI') {\n            this.putIntoGui(filterWrapper, source);\n        }\n        return filterWrapper;\n    };\n    FilterManager.prototype.cachedFilter = function (column) {\n        return this.allColumnFilters.get(column.getColId());\n    };\n    FilterManager.prototype.createFilterInstance = function (column) {\n        var _this = this;\n        var defaultFilter = ModuleRegistry.isRegistered(exports.ModuleNames.SetFilterModule) ? 'agSetColumnFilter' : 'agTextColumnFilter';\n        var colDef = column.getColDef();\n        var filterInstance;\n        var params = __assign$8(__assign$8({}, this.createFilterParams(column, colDef)), { filterModifiedCallback: function () {\n                var event = {\n                    type: Events.EVENT_FILTER_MODIFIED,\n                    api: _this.gridApi,\n                    columnApi: _this.columnApi,\n                    column: column,\n                    filterInstance: filterInstance\n                };\n                _this.eventService.dispatchEvent(event);\n            }, filterChangedCallback: function (additionalEventAttributes) {\n                var params = { filterInstance: filterInstance, additionalEventAttributes: additionalEventAttributes, columns: [column] };\n                _this.callOnFilterChangedOutsideRenderCycle(params);\n            }, doesRowPassOtherFilter: function (node) { return _this.doesRowPassOtherFilters(filterInstance, node); } });\n        var compDetails = this.userComponentFactory.getFilterDetails(colDef, params, defaultFilter);\n        if (!compDetails) {\n            return null;\n        }\n        var componentPromise = compDetails.newAgStackInstance();\n        if (componentPromise) {\n            componentPromise.then(function (r) { return filterInstance = r; });\n        }\n        return componentPromise;\n    };\n    FilterManager.prototype.createFilterParams = function (column, colDef) {\n        var params = {\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            column: column,\n            colDef: cloneObject(colDef),\n            rowModel: this.rowModel,\n            filterChangedCallback: function () { },\n            filterModifiedCallback: function () { },\n            valueGetter: this.createValueGetter(column),\n            context: this.gridOptionsWrapper.getContext(),\n            doesRowPassOtherFilter: function () { return true; },\n        };\n        return params;\n    };\n    FilterManager.prototype.createFilterWrapper = function (column, source) {\n        var filterWrapper = {\n            column: column,\n            filterPromise: null,\n            compiledElement: null,\n            guiPromise: AgPromise.resolve(null)\n        };\n        filterWrapper.filterPromise = this.createFilterInstance(column);\n        if (filterWrapper.filterPromise) {\n            this.putIntoGui(filterWrapper, source);\n        }\n        return filterWrapper;\n    };\n    FilterManager.prototype.putIntoGui = function (filterWrapper, source) {\n        var _this = this;\n        var eFilterGui = document.createElement('div');\n        eFilterGui.className = 'ag-filter';\n        filterWrapper.guiPromise = new AgPromise(function (resolve) {\n            filterWrapper.filterPromise.then(function (filter) {\n                var guiFromFilter = filter.getGui();\n                if (!exists(guiFromFilter)) {\n                    console.warn(\"AG Grid: getGui method from filter returned \" + guiFromFilter + \", it should be a DOM element or an HTML template string.\");\n                }\n                // for backwards compatibility with Angular 1 - we\n                // used to allow providing back HTML from getGui().\n                // once we move away from supporting Angular 1\n                // directly, we can change this.\n                if (typeof guiFromFilter === 'string') {\n                    guiFromFilter = loadTemplate(guiFromFilter);\n                }\n                eFilterGui.appendChild(guiFromFilter);\n                resolve(eFilterGui);\n                _this.eventService.dispatchEvent({\n                    type: Events.EVENT_FILTER_OPENED,\n                    column: filterWrapper.column,\n                    source: source,\n                    eGui: eFilterGui,\n                    api: _this.gridApi,\n                    columnApi: _this.columnApi\n                });\n            });\n        });\n    };\n    FilterManager.prototype.onColumnsChanged = function () {\n        var _this = this;\n        var columns = [];\n        this.allColumnFilters.forEach(function (wrapper, colId) {\n            var currentColumn;\n            if (wrapper.column.isPrimary()) {\n                currentColumn = _this.columnModel.getPrimaryColumn(colId);\n            }\n            else {\n                currentColumn = _this.columnModel.getGridColumn(colId);\n            }\n            if (currentColumn) {\n                return;\n            }\n            columns.push(wrapper.column);\n            _this.disposeFilterWrapper(wrapper, 'filterDestroyed');\n        });\n        if (columns.length > 0) {\n            this.onFilterChanged({ columns: columns });\n        }\n    };\n    // destroys the filter, so it not longer takes part\n    FilterManager.prototype.destroyFilter = function (column, source) {\n        if (source === void 0) { source = 'api'; }\n        var filterWrapper = this.allColumnFilters.get(column.getColId());\n        if (filterWrapper) {\n            this.disposeFilterWrapper(filterWrapper, source);\n            this.onFilterChanged({ columns: [column] });\n        }\n    };\n    FilterManager.prototype.disposeFilterWrapper = function (filterWrapper, source) {\n        var _this = this;\n        filterWrapper.filterPromise.then(function (filter) {\n            (filter.setModel(null) || AgPromise.resolve()).then(function () {\n                _this.getContext().destroyBean(filter);\n                filterWrapper.column.setFilterActive(false, source);\n                _this.allColumnFilters.delete(filterWrapper.column.getColId());\n            });\n        });\n    };\n    FilterManager.prototype.destroy = function () {\n        var _this = this;\n        _super.prototype.destroy.call(this);\n        this.allColumnFilters.forEach(function (filterWrapper) { return _this.disposeFilterWrapper(filterWrapper, 'filterDestroyed'); });\n    };\n    var FilterManager_1;\n    FilterManager.QUICK_FILTER_SEPARATOR = '\\n';\n    __decorate$G([\n        Autowired('valueService')\n    ], FilterManager.prototype, \"valueService\", void 0);\n    __decorate$G([\n        Autowired('columnModel')\n    ], FilterManager.prototype, \"columnModel\", void 0);\n    __decorate$G([\n        Autowired('rowModel')\n    ], FilterManager.prototype, \"rowModel\", void 0);\n    __decorate$G([\n        Autowired('columnApi')\n    ], FilterManager.prototype, \"columnApi\", void 0);\n    __decorate$G([\n        Autowired('gridApi')\n    ], FilterManager.prototype, \"gridApi\", void 0);\n    __decorate$G([\n        Autowired('userComponentFactory')\n    ], FilterManager.prototype, \"userComponentFactory\", void 0);\n    __decorate$G([\n        Autowired('rowRenderer')\n    ], FilterManager.prototype, \"rowRenderer\", void 0);\n    __decorate$G([\n        PostConstruct\n    ], FilterManager.prototype, \"init\", null);\n    __decorate$G([\n        PreDestroy\n    ], FilterManager.prototype, \"destroy\", null);\n    FilterManager = FilterManager_1 = __decorate$G([\n        Bean('filterManager')\n    ], FilterManager);\n    return FilterManager;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$O = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AbstractHeaderCellComp = /** @class */ (function (_super) {\n    __extends$O(AbstractHeaderCellComp, _super);\n    function AbstractHeaderCellComp(template, ctrl) {\n        var _this = _super.call(this, template) || this;\n        _this.ctrl = ctrl;\n        return _this;\n    }\n    AbstractHeaderCellComp.prototype.getCtrl = function () {\n        return this.ctrl;\n    };\n    return AbstractHeaderCellComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$P = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$H = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderFilterCellComp = /** @class */ (function (_super) {\n    __extends$P(HeaderFilterCellComp, _super);\n    function HeaderFilterCellComp(ctrl) {\n        return _super.call(this, HeaderFilterCellComp.TEMPLATE, ctrl) || this;\n    }\n    HeaderFilterCellComp.prototype.postConstruct = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            addOrRemoveBodyCssClass: function (cssClassName, on) { return _this.eFloatingFilterBody.classList.toggle(cssClassName, on); },\n            addOrRemoveButtonWrapperCssClass: function (cssClassName, on) { return _this.eButtonWrapper.classList.toggle(cssClassName, on); },\n            setCompDetails: function (compDetails) { return _this.setCompDetails(compDetails); },\n            getFloatingFilterComp: function () { return _this.compPromise; },\n            setWidth: function (width) { return eGui.style.width = width; },\n            setMenuIcon: function (eIcon) { return _this.eButtonShowMainFilter.appendChild(eIcon); }\n        };\n        this.ctrl.setComp(compProxy, eGui, this.eButtonShowMainFilter, this.eFloatingFilterBody);\n    };\n    HeaderFilterCellComp.prototype.setCompDetails = function (compDetails) {\n        var _this = this;\n        // because we are providing defaultFloatingFilterType, we know it will never be undefined;\n        this.compPromise = compDetails.newAgStackInstance();\n        this.compPromise.then(function (comp) { return _this.afterCompCreated(comp); });\n    };\n    HeaderFilterCellComp.prototype.afterCompCreated = function (comp) {\n        var _this = this;\n        if (!comp) {\n            return;\n        }\n        this.addDestroyFunc(function () { return _this.context.destroyBean(comp); });\n        if (!this.isAlive()) {\n            return;\n        }\n        this.eFloatingFilterBody.appendChild(comp.getGui());\n        if (comp.afterGuiAttached) {\n            comp.afterGuiAttached();\n        }\n    };\n    HeaderFilterCellComp.TEMPLATE = \"<div class=\\\"ag-header-cell ag-floating-filter\\\" role=\\\"gridcell\\\" tabindex=\\\"-1\\\">\\n            <div ref=\\\"eFloatingFilterBody\\\" role=\\\"presentation\\\"></div>\\n            <div class=\\\"ag-floating-filter-button ag-hidden\\\" ref=\\\"eButtonWrapper\\\" role=\\\"presentation\\\">\\n                <button type=\\\"button\\\" aria-label=\\\"Open Filter Menu\\\" class=\\\"ag-floating-filter-button-button\\\" ref=\\\"eButtonShowMainFilter\\\" tabindex=\\\"-1\\\"></button>\\n            </div>\\n        </div>\";\n    __decorate$H([\n        RefSelector('eFloatingFilterBody')\n    ], HeaderFilterCellComp.prototype, \"eFloatingFilterBody\", void 0);\n    __decorate$H([\n        RefSelector('eButtonWrapper')\n    ], HeaderFilterCellComp.prototype, \"eButtonWrapper\", void 0);\n    __decorate$H([\n        RefSelector('eButtonShowMainFilter')\n    ], HeaderFilterCellComp.prototype, \"eButtonShowMainFilter\", void 0);\n    __decorate$H([\n        PostConstruct\n    ], HeaderFilterCellComp.prototype, \"postConstruct\", null);\n    return HeaderFilterCellComp;\n}(AbstractHeaderCellComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar SideBarDefParser = /** @class */ (function () {\n    function SideBarDefParser() {\n    }\n    SideBarDefParser.parse = function (toParse) {\n        if (!toParse) {\n            return null;\n        }\n        if (toParse === true) {\n            return {\n                toolPanels: [\n                    SideBarDefParser.DEFAULT_COLUMN_COMP,\n                    SideBarDefParser.DEFAULT_FILTER_COMP,\n                ],\n                defaultToolPanel: 'columns'\n            };\n        }\n        if (typeof toParse === 'string') {\n            return SideBarDefParser.parse([toParse]);\n        }\n        if (Array.isArray(toParse)) {\n            var comps_1 = [];\n            toParse.forEach(function (key) {\n                var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];\n                if (!lookupResult) {\n                    console.warn(\"AG Grid: the key \" + key + \" is not a valid key for specifying a tool panel, valid keys are: \" + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));\n                    return;\n                }\n                comps_1.push(lookupResult);\n            });\n            if (comps_1.length === 0) {\n                return null;\n            }\n            return {\n                toolPanels: comps_1,\n                defaultToolPanel: comps_1[0].id\n            };\n        }\n        var result = {\n            toolPanels: SideBarDefParser.parseComponents(toParse.toolPanels),\n            defaultToolPanel: toParse.defaultToolPanel,\n            hiddenByDefault: toParse.hiddenByDefault,\n            position: toParse.position\n        };\n        return result;\n    };\n    SideBarDefParser.parseComponents = function (from) {\n        var result = [];\n        if (!from) {\n            return result;\n        }\n        from.forEach(function (it) {\n            var toAdd = null;\n            if (typeof it === 'string') {\n                var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];\n                if (!lookupResult) {\n                    console.warn(\"AG Grid: the key \" + it + \" is not a valid key for specifying a tool panel, valid keys are: \" + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));\n                    return;\n                }\n                toAdd = lookupResult;\n            }\n            else {\n                toAdd = it;\n            }\n            result.push(toAdd);\n        });\n        return result;\n    };\n    SideBarDefParser.DEFAULT_COLUMN_COMP = {\n        id: 'columns',\n        labelDefault: 'Columns',\n        labelKey: 'columns',\n        iconKey: 'columns',\n        toolPanel: 'agColumnsToolPanel',\n    };\n    SideBarDefParser.DEFAULT_FILTER_COMP = {\n        id: 'filters',\n        labelDefault: 'Filters',\n        labelKey: 'filters',\n        iconKey: 'filter',\n        toolPanel: 'agFiltersToolPanel',\n    };\n    SideBarDefParser.DEFAULT_BY_KEY = {\n        columns: SideBarDefParser.DEFAULT_COLUMN_COMP,\n        filters: SideBarDefParser.DEFAULT_FILTER_COMP\n    };\n    return SideBarDefParser;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __assign$9 = (undefined && undefined.__assign) || function () {\n    __assign$9 = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$9.apply(this, arguments);\n};\nvar __decorate$I = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$3 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar __read$6 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$4 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$6(arguments[i]));\n    return ar;\n};\nvar DEFAULT_ROW_HEIGHT = 25;\nvar DEFAULT_DETAIL_ROW_HEIGHT = 300;\nvar DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE = 5;\nvar DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE = 5;\nvar DEFAULT_KEEP_DETAIL_ROW_COUNT = 10;\nfunction isTrue(value) {\n    return value === true || value === 'true';\n}\nfunction toNumber(value) {\n    if (typeof value == 'number') {\n        return value;\n    }\n    if (typeof value == 'string') {\n        return parseInt(value, 10);\n    }\n}\nfunction zeroOrGreater(value, defaultValue) {\n    if (value >= 0) {\n        return value;\n    }\n    // zero gets returned if number is missing or the wrong type\n    return defaultValue;\n}\nfunction oneOrGreater(value, defaultValue) {\n    var valueNumber = parseInt(value, 10);\n    if (isNumeric(valueNumber) && valueNumber > 0) {\n        return valueNumber;\n    }\n    return defaultValue;\n}\nvar GridOptionsWrapper = /** @class */ (function () {\n    function GridOptionsWrapper() {\n        this.propertyEventService = new EventService();\n        this.domDataKey = '__AG_' + Math.random().toString();\n        this.destroyed = false;\n    }\n    GridOptionsWrapper_1 = GridOptionsWrapper;\n    GridOptionsWrapper.prototype.agWire = function (gridApi, columnApi) {\n        this.gridOptions.api = gridApi;\n        this.gridOptions.columnApi = columnApi;\n        this.checkForDeprecated();\n        this.checkForViolations();\n    };\n    GridOptionsWrapper.prototype.destroy = function () {\n        // need to remove these, as we don't own the lifecycle of the gridOptions, we need to\n        // remove the references in case the user keeps the grid options, we want the rest\n        // of the grid to be picked up by the garbage collector\n        this.gridOptions.api = null;\n        this.gridOptions.columnApi = null;\n        this.destroyed = true;\n    };\n    GridOptionsWrapper.prototype.init = function () {\n        var _this = this;\n        if (this.gridOptions.suppressPropertyNamesCheck !== true) {\n            this.checkGridOptionsProperties();\n            this.checkColumnDefProperties();\n        }\n        // parse side bar options into correct format\n        if (this.gridOptions.sideBar != null) {\n            this.gridOptions.sideBar = SideBarDefParser.parse(this.gridOptions.sideBar);\n        }\n        var async = this.useAsyncEvents();\n        this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);\n        if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {\n            console.warn(\"AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work\");\n        }\n        if (this.isGroupSelectsChildren()) {\n            if (!this.isRowSelectionMulti()) {\n                console.warn(\"AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense\");\n            }\n            if (this.isRowModelServerSide()) {\n                console.warn('AG Grid: group selects children is NOT support for Server Side Row Model. ' +\n                    'This is because the rows are lazy loaded, so selecting a group is not possible as' +\n                    'the grid has no way of knowing what the children are.');\n            }\n        }\n        if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {\n            console.warn(\"AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!\");\n        }\n        if (this.isRowModelServerSide()) {\n            var msg = function (prop) { return \"AG Grid: '\" + prop + \"' is not supported on the Server-Side Row Model\"; };\n            if (exists(this.gridOptions.groupDefaultExpanded)) {\n                console.warn(msg('groupDefaultExpanded'));\n            }\n            if (exists(this.gridOptions.groupDefaultExpanded)) {\n                console.warn(msg('groupIncludeFooter'));\n            }\n            if (exists(this.gridOptions.groupDefaultExpanded)) {\n                console.warn(msg('groupIncludeTotalFooter'));\n            }\n        }\n        if (this.isEnableRangeSelection()) {\n            ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'enableRangeSelection');\n        }\n        if (!this.isEnableRangeSelection() && (this.isEnableRangeHandle() || this.isEnableFillHandle())) {\n            console.warn(\"AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true\");\n        }\n        var warnOfDeprecaredIcon = function (name) {\n            if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {\n                console.warn(\"gridOptions.icons.\" + name + \" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/\");\n            }\n        };\n        warnOfDeprecaredIcon('radioButtonOff');\n        warnOfDeprecaredIcon('radioButtonOn');\n        warnOfDeprecaredIcon('checkboxChecked');\n        warnOfDeprecaredIcon('checkboxUnchecked');\n        warnOfDeprecaredIcon('checkboxIndeterminate');\n        // sets an initial calculation for the scrollbar width\n        this.getScrollbarWidth();\n    };\n    GridOptionsWrapper.prototype.checkColumnDefProperties = function () {\n        var _this = this;\n        if (this.gridOptions.columnDefs == null) {\n            return;\n        }\n        this.gridOptions.columnDefs.forEach(function (colDef) {\n            var userProperties = Object.getOwnPropertyNames(colDef);\n            var validProperties = __spread$4(ColDefUtil.ALL_PROPERTIES, ColDefUtil.FRAMEWORK_PROPERTIES);\n            _this.checkProperties(userProperties, validProperties, validProperties, 'colDef', 'https://www.ag-grid.com/javascript-grid-column-properties/');\n        });\n    };\n    GridOptionsWrapper.prototype.checkGridOptionsProperties = function () {\n        var userProperties = Object.getOwnPropertyNames(this.gridOptions);\n        var validProperties = __spread$4(PropertyKeys.ALL_PROPERTIES, PropertyKeys.FRAMEWORK_PROPERTIES, values(Events).map(function (event) { return ComponentUtil.getCallbackForEvent(event); }));\n        var validPropertiesAndExceptions = __spread$4(validProperties, ['api', 'columnApi']);\n        this.checkProperties(userProperties, validPropertiesAndExceptions, validProperties, 'gridOptions', 'https://www.ag-grid.com/javascript-data-grid/grid-options/');\n    };\n    GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {\n        var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);\n        iterateObject(invalidProperties, function (key, value) {\n            console.warn(\"ag-grid: invalid \" + containerName + \" property '\" + key + \"' did you mean any of these: \" + value.slice(0, 8).join(\", \"));\n        });\n        if (Object.keys(invalidProperties).length > 0) {\n            console.warn(\"ag-grid: to see all the valid \" + containerName + \" properties please check: \" + docsUrl);\n        }\n    };\n    /**\n    * Wrap the user callback and attach the api, columnApi and context to the params object on the way through.\n    * @param callback User provided callback\n    * @returns Wrapped callback where the params object not require api, columnApi and context\n    */\n    GridOptionsWrapper.prototype.mergeGridCommonParams = function (callback) {\n        var _this = this;\n        if (callback) {\n            var wrapped = function (callbackParams) {\n                var mergedParams = __assign$9(__assign$9({}, callbackParams), { api: _this.getApi(), columnApi: _this.getColumnApi(), context: _this.getContext() });\n                return callback(mergedParams);\n            };\n            return wrapped;\n        }\n        return callback;\n    };\n    GridOptionsWrapper.prototype.getDomDataKey = function () {\n        return this.domDataKey;\n    };\n    // returns the dom data, or undefined if not found\n    GridOptionsWrapper.prototype.getDomData = function (element, key) {\n        var domData = element[this.getDomDataKey()];\n        return domData ? domData[key] : undefined;\n    };\n    GridOptionsWrapper.prototype.setDomData = function (element, key, value) {\n        var domDataKey = this.getDomDataKey();\n        var domData = element[domDataKey];\n        if (missing(domData)) {\n            domData = {};\n            element[domDataKey] = domData;\n        }\n        domData[key] = value;\n    };\n    GridOptionsWrapper.prototype.isRowSelection = function () {\n        return this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple';\n    };\n    GridOptionsWrapper.prototype.isSuppressRowDeselection = function () {\n        return isTrue(this.gridOptions.suppressRowDeselection);\n    };\n    GridOptionsWrapper.prototype.isRowSelectionMulti = function () {\n        return this.gridOptions.rowSelection === 'multiple';\n    };\n    GridOptionsWrapper.prototype.isRowMultiSelectWithClick = function () {\n        return isTrue(this.gridOptions.rowMultiSelectWithClick);\n    };\n    GridOptionsWrapper.prototype.getContext = function () {\n        return this.gridOptions.context;\n    };\n    GridOptionsWrapper.prototype.isPivotMode = function () {\n        return isTrue(this.gridOptions.pivotMode);\n    };\n    GridOptionsWrapper.prototype.isSuppressExpandablePivotGroups = function () {\n        return isTrue(this.gridOptions.suppressExpandablePivotGroups);\n    };\n    GridOptionsWrapper.prototype.getPivotColumnGroupTotals = function () {\n        return this.gridOptions.pivotColumnGroupTotals;\n    };\n    GridOptionsWrapper.prototype.getPivotRowTotals = function () {\n        return this.gridOptions.pivotRowTotals;\n    };\n    GridOptionsWrapper.prototype.isRowModelInfinite = function () {\n        return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_INFINITE;\n    };\n    GridOptionsWrapper.prototype.isRowModelViewport = function () {\n        return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT;\n    };\n    GridOptionsWrapper.prototype.isRowModelServerSide = function () {\n        return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n    };\n    GridOptionsWrapper.prototype.isRowModelDefault = function () {\n        return (missing(this.gridOptions.rowModelType) ||\n            this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE);\n    };\n    GridOptionsWrapper.prototype.isFullRowEdit = function () {\n        return this.gridOptions.editType === 'fullRow';\n    };\n    GridOptionsWrapper.prototype.isSuppressFocusAfterRefresh = function () {\n        return isTrue(this.gridOptions.suppressFocusAfterRefresh);\n    };\n    GridOptionsWrapper.prototype.isSuppressBrowserResizeObserver = function () {\n        return isTrue(this.gridOptions.suppressBrowserResizeObserver);\n    };\n    GridOptionsWrapper.prototype.isSuppressMaintainUnsortedOrder = function () {\n        return isTrue(this.gridOptions.suppressMaintainUnsortedOrder);\n    };\n    GridOptionsWrapper.prototype.isSuppressClearOnFillReduction = function () {\n        return isTrue(this.gridOptions.suppressClearOnFillReduction);\n    };\n    GridOptionsWrapper.prototype.isShowToolPanel = function () {\n        return isTrue(this.gridOptions.sideBar && Array.isArray(this.getSideBar().toolPanels));\n    };\n    GridOptionsWrapper.prototype.getSideBar = function () {\n        return this.gridOptions.sideBar;\n    };\n    GridOptionsWrapper.prototype.isSuppressTouch = function () {\n        return isTrue(this.gridOptions.suppressTouch);\n    };\n    GridOptionsWrapper.prototype.isMaintainColumnOrder = function () {\n        return isTrue(this.gridOptions.maintainColumnOrder);\n    };\n    GridOptionsWrapper.prototype.isSuppressRowTransform = function () {\n        return isTrue(this.gridOptions.suppressRowTransform);\n    };\n    GridOptionsWrapper.prototype.isSuppressColumnStateEvents = function () {\n        return isTrue(this.gridOptions.suppressColumnStateEvents);\n    };\n    GridOptionsWrapper.prototype.isAllowDragFromColumnsToolPanel = function () {\n        return isTrue(this.gridOptions.allowDragFromColumnsToolPanel);\n    };\n    GridOptionsWrapper.prototype.useAsyncEvents = function () {\n        return !isTrue(this.gridOptions.suppressAsyncEvents);\n    };\n    GridOptionsWrapper.prototype.isEnableCellChangeFlash = function () {\n        return isTrue(this.gridOptions.enableCellChangeFlash);\n    };\n    GridOptionsWrapper.prototype.getCellFlashDelay = function () {\n        return this.gridOptions.cellFlashDelay || 500;\n    };\n    GridOptionsWrapper.prototype.getCellFadeDelay = function () {\n        return this.gridOptions.cellFadeDelay || 1000;\n    };\n    GridOptionsWrapper.prototype.isGroupSelectsChildren = function () {\n        return isTrue(this.gridOptions.groupSelectsChildren);\n    };\n    GridOptionsWrapper.prototype.isSuppressRowHoverHighlight = function () {\n        return isTrue(this.gridOptions.suppressRowHoverHighlight);\n    };\n    GridOptionsWrapper.prototype.isColumnHoverHighlight = function () {\n        return isTrue(this.gridOptions.columnHoverHighlight);\n    };\n    GridOptionsWrapper.prototype.isGroupSelectsFiltered = function () {\n        return isTrue(this.gridOptions.groupSelectsFiltered);\n    };\n    GridOptionsWrapper.prototype.isGroupHideOpenParents = function () {\n        return isTrue(this.gridOptions.groupHideOpenParents);\n    };\n    GridOptionsWrapper.prototype.isGroupMaintainOrder = function () {\n        return isTrue(this.gridOptions.groupMaintainOrder);\n    };\n    GridOptionsWrapper.prototype.getAutoGroupColumnDef = function () {\n        return this.gridOptions.autoGroupColumnDef;\n    };\n    GridOptionsWrapper.prototype.isGroupMultiAutoColumn = function () {\n        if (this.gridOptions.groupDisplayType) {\n            return this.matchesGroupDisplayType('multipleColumns', this.gridOptions.groupDisplayType);\n        }\n        // if we are doing hideOpenParents we also show multiple columns, otherwise hideOpenParents would not work\n        return isTrue(this.gridOptions.groupHideOpenParents);\n    };\n    GridOptionsWrapper.prototype.isGroupUseEntireRow = function (pivotMode) {\n        // we never allow groupUseEntireRow if in pivot mode, otherwise we won't see the pivot values.\n        if (pivotMode) {\n            return false;\n        }\n        return this.gridOptions.groupDisplayType ?\n            this.matchesGroupDisplayType('groupRows', this.gridOptions.groupDisplayType) : false;\n    };\n    GridOptionsWrapper.prototype.isGroupSuppressAutoColumn = function () {\n        var isCustomRowGroups = this.gridOptions.groupDisplayType ?\n            this.matchesGroupDisplayType('custom', this.gridOptions.groupDisplayType) : false;\n        if (isCustomRowGroups) {\n            return true;\n        }\n        return this.gridOptions.treeDataDisplayType ?\n            this.matchesTreeDataDisplayType('custom', this.gridOptions.treeDataDisplayType) : false;\n    };\n    GridOptionsWrapper.prototype.isGroupRemoveSingleChildren = function () {\n        return isTrue(this.gridOptions.groupRemoveSingleChildren);\n    };\n    GridOptionsWrapper.prototype.isGroupRemoveLowestSingleChildren = function () {\n        return isTrue(this.gridOptions.groupRemoveLowestSingleChildren);\n    };\n    GridOptionsWrapper.prototype.isGroupIncludeFooter = function () {\n        return isTrue(this.gridOptions.groupIncludeFooter);\n    };\n    GridOptionsWrapper.prototype.isGroupIncludeTotalFooter = function () {\n        return isTrue(this.gridOptions.groupIncludeTotalFooter);\n    };\n    GridOptionsWrapper.prototype.isGroupSuppressBlankHeader = function () {\n        return isTrue(this.gridOptions.groupSuppressBlankHeader);\n    };\n    GridOptionsWrapper.prototype.isSuppressRowClickSelection = function () {\n        return isTrue(this.gridOptions.suppressRowClickSelection);\n    };\n    GridOptionsWrapper.prototype.isSuppressCellFocus = function () {\n        return isTrue(this.gridOptions.suppressCellFocus);\n    };\n    GridOptionsWrapper.prototype.isSuppressMultiSort = function () {\n        return isTrue(this.gridOptions.suppressMultiSort);\n    };\n    GridOptionsWrapper.prototype.isAlwaysMultiSort = function () {\n        return isTrue(this.gridOptions.alwaysMultiSort);\n    };\n    GridOptionsWrapper.prototype.isMultiSortKeyCtrl = function () {\n        return this.gridOptions.multiSortKey === 'ctrl';\n    };\n    GridOptionsWrapper.prototype.isPivotSuppressAutoColumn = function () {\n        return isTrue(this.gridOptions.pivotSuppressAutoColumn);\n    };\n    GridOptionsWrapper.prototype.isSuppressDragLeaveHidesColumns = function () {\n        return isTrue(this.gridOptions.suppressDragLeaveHidesColumns);\n    };\n    GridOptionsWrapper.prototype.isSuppressScrollOnNewData = function () {\n        return isTrue(this.gridOptions.suppressScrollOnNewData);\n    };\n    GridOptionsWrapper.prototype.isSuppressScrollWhenPopupsAreOpen = function () {\n        return isTrue(this.gridOptions.suppressScrollWhenPopupsAreOpen);\n    };\n    GridOptionsWrapper.prototype.isRowDragEntireRow = function () {\n        return isTrue(this.gridOptions.rowDragEntireRow);\n    };\n    GridOptionsWrapper.prototype.isSuppressRowDrag = function () {\n        return isTrue(this.gridOptions.suppressRowDrag);\n    };\n    GridOptionsWrapper.prototype.isRowDragManaged = function () {\n        return isTrue(this.gridOptions.rowDragManaged);\n    };\n    GridOptionsWrapper.prototype.isSuppressMoveWhenRowDragging = function () {\n        return isTrue(this.gridOptions.suppressMoveWhenRowDragging);\n    };\n    GridOptionsWrapper.prototype.isRowDragMultiRow = function () {\n        return isTrue(this.gridOptions.rowDragMultiRow);\n    };\n    // returns either 'print', 'autoHeight' or 'normal' (normal is the default)\n    GridOptionsWrapper.prototype.getDomLayout = function () {\n        var domLayout = this.gridOptions.domLayout || Constants.DOM_LAYOUT_NORMAL;\n        var validLayouts = [\n            Constants.DOM_LAYOUT_PRINT,\n            Constants.DOM_LAYOUT_AUTO_HEIGHT,\n            Constants.DOM_LAYOUT_NORMAL\n        ];\n        if (validLayouts.indexOf(domLayout) === -1) {\n            doOnce(function () {\n                return console.warn(\"AG Grid: \" + domLayout + \" is not valid for DOM Layout, valid values are \" + Constants.DOM_LAYOUT_NORMAL + \", \" + Constants.DOM_LAYOUT_AUTO_HEIGHT + \" and \" + Constants.DOM_LAYOUT_PRINT);\n            }, 'warn about dom layout values');\n            return Constants.DOM_LAYOUT_NORMAL;\n        }\n        return domLayout;\n    };\n    GridOptionsWrapper.prototype.isSuppressHorizontalScroll = function () {\n        return isTrue(this.gridOptions.suppressHorizontalScroll);\n    };\n    GridOptionsWrapper.prototype.isSuppressMaxRenderedRowRestriction = function () {\n        return isTrue(this.gridOptions.suppressMaxRenderedRowRestriction);\n    };\n    GridOptionsWrapper.prototype.isExcludeChildrenWhenTreeDataFiltering = function () {\n        return isTrue(this.gridOptions.excludeChildrenWhenTreeDataFiltering);\n    };\n    GridOptionsWrapper.prototype.isAlwaysShowHorizontalScroll = function () {\n        return isTrue(this.gridOptions.alwaysShowHorizontalScroll);\n    };\n    GridOptionsWrapper.prototype.isAlwaysShowVerticalScroll = function () {\n        return isTrue(this.gridOptions.alwaysShowVerticalScroll);\n    };\n    GridOptionsWrapper.prototype.isDebounceVerticalScrollbar = function () {\n        return isTrue(this.gridOptions.debounceVerticalScrollbar);\n    };\n    GridOptionsWrapper.prototype.isSuppressLoadingOverlay = function () {\n        return isTrue(this.gridOptions.suppressLoadingOverlay);\n    };\n    GridOptionsWrapper.prototype.isSuppressNoRowsOverlay = function () {\n        return isTrue(this.gridOptions.suppressNoRowsOverlay);\n    };\n    GridOptionsWrapper.prototype.isSuppressFieldDotNotation = function () {\n        return isTrue(this.gridOptions.suppressFieldDotNotation);\n    };\n    GridOptionsWrapper.prototype.getPinnedTopRowData = function () {\n        return this.gridOptions.pinnedTopRowData;\n    };\n    GridOptionsWrapper.prototype.getPinnedBottomRowData = function () {\n        return this.gridOptions.pinnedBottomRowData;\n    };\n    GridOptionsWrapper.prototype.isFunctionsPassive = function () {\n        return isTrue(this.gridOptions.functionsPassive);\n    };\n    GridOptionsWrapper.prototype.isSuppressChangeDetection = function () {\n        return isTrue(this.gridOptions.suppressChangeDetection);\n    };\n    GridOptionsWrapper.prototype.isSuppressAnimationFrame = function () {\n        return isTrue(this.gridOptions.suppressAnimationFrame);\n    };\n    GridOptionsWrapper.prototype.getQuickFilterText = function () {\n        return this.gridOptions.quickFilterText;\n    };\n    GridOptionsWrapper.prototype.isCacheQuickFilter = function () {\n        return isTrue(this.gridOptions.cacheQuickFilter);\n    };\n    GridOptionsWrapper.prototype.isUnSortIcon = function () {\n        return isTrue(this.gridOptions.unSortIcon);\n    };\n    GridOptionsWrapper.prototype.isSuppressMenuHide = function () {\n        return isTrue(this.gridOptions.suppressMenuHide);\n    };\n    GridOptionsWrapper.prototype.isEnterMovesDownAfterEdit = function () {\n        return isTrue(this.gridOptions.enterMovesDownAfterEdit);\n    };\n    GridOptionsWrapper.prototype.isEnterMovesDown = function () {\n        return isTrue(this.gridOptions.enterMovesDown);\n    };\n    GridOptionsWrapper.prototype.isUndoRedoCellEditing = function () {\n        return isTrue(this.gridOptions.undoRedoCellEditing);\n    };\n    GridOptionsWrapper.prototype.getUndoRedoCellEditingLimit = function () {\n        return toNumber(this.gridOptions.undoRedoCellEditingLimit);\n    };\n    GridOptionsWrapper.prototype.getRowStyle = function () {\n        return this.gridOptions.rowStyle;\n    };\n    GridOptionsWrapper.prototype.getRowClass = function () {\n        return this.gridOptions.rowClass;\n    };\n    GridOptionsWrapper.prototype.getRowStyleFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getRowStyle);\n    };\n    GridOptionsWrapper.prototype.getRowClassFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getRowClass);\n    };\n    GridOptionsWrapper.prototype.rowClassRules = function () {\n        return this.gridOptions.rowClassRules;\n    };\n    GridOptionsWrapper.prototype.getServerSideStoreType = function () {\n        return this.gridOptions.serverSideStoreType;\n    };\n    GridOptionsWrapper.prototype.getServerSideStoreParamsFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams);\n    };\n    GridOptionsWrapper.prototype.getCreateChartContainerFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.createChartContainer);\n    };\n    GridOptionsWrapper.prototype.getPopupParent = function () {\n        return this.gridOptions.popupParent;\n    };\n    GridOptionsWrapper.prototype.getBlockLoadDebounceMillis = function () {\n        return this.gridOptions.blockLoadDebounceMillis;\n    };\n    GridOptionsWrapper.prototype.getPostProcessPopupFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.postProcessPopup);\n    };\n    GridOptionsWrapper.prototype.getPaginationNumberFormatterFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter);\n    };\n    GridOptionsWrapper.prototype.getChildCountFunc = function () {\n        return this.gridOptions.getChildCount;\n    };\n    GridOptionsWrapper.prototype.getIsApplyServerSideTransactionFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction);\n    };\n    GridOptionsWrapper.prototype.getInitialGroupOrderComparator = function () {\n        var _a = this.gridOptions, initialGroupOrderComparator = _a.initialGroupOrderComparator, defaultGroupOrderComparator = _a.defaultGroupOrderComparator;\n        if (initialGroupOrderComparator) {\n            return this.mergeGridCommonParams(initialGroupOrderComparator);\n        }\n        // this is the deprecated way, so provide a proxy to make it compatible\n        if (defaultGroupOrderComparator) {\n            return function (params) { return defaultGroupOrderComparator(params.nodeA, params.nodeB); };\n        }\n    };\n    GridOptionsWrapper.prototype.getIsFullWidthCellFunc = function () {\n        var _a = this.gridOptions, isFullWidthRow = _a.isFullWidthRow, isFullWidthCell = _a.isFullWidthCell;\n        if (isFullWidthRow) {\n            return this.mergeGridCommonParams(isFullWidthRow);\n        }\n        // this is the deprecated way, so provide a proxy to make it compatible\n        if (isFullWidthCell) {\n            return function (params) { return isFullWidthCell(params.rowNode); };\n        }\n    };\n    GridOptionsWrapper.prototype.getFullWidthCellRendererParams = function () {\n        return this.gridOptions.fullWidthCellRendererParams;\n    };\n    GridOptionsWrapper.prototype.isEmbedFullWidthRows = function () {\n        return isTrue(this.gridOptions.embedFullWidthRows) || isTrue(this.gridOptions.deprecatedEmbedFullWidthRows);\n    };\n    GridOptionsWrapper.prototype.isDetailRowAutoHeight = function () {\n        return isTrue(this.gridOptions.detailRowAutoHeight);\n    };\n    GridOptionsWrapper.prototype.getSuppressKeyboardEventFunc = function () {\n        return this.gridOptions.suppressKeyboardEvent;\n    };\n    GridOptionsWrapper.prototype.getBusinessKeyForNodeFunc = function () {\n        return this.gridOptions.getBusinessKeyForNode;\n    };\n    GridOptionsWrapper.prototype.getApi = function () {\n        return this.gridOptions.api;\n    };\n    GridOptionsWrapper.prototype.getColumnApi = function () {\n        return this.gridOptions.columnApi;\n    };\n    GridOptionsWrapper.prototype.isReadOnlyEdit = function () {\n        return isTrue(this.gridOptions.readOnlyEdit);\n    };\n    GridOptionsWrapper.prototype.isImmutableData = function () {\n        // we used to have a property immutableData for this. however this was deprecated\n        // in favour of having Immutable Data on by default when getRowId is provided\n        var getRowIdProvided = this.gridOptions.getRowId != null;\n        var immutableData = isTrue(this.gridOptions.immutableData);\n        // this property is a backwards compatibility property, for those who want\n        // the old behaviour of Row ID's but NOT Immutable Data.\n        var resetRowDataOnUpdate = isTrue(this.gridOptions.resetRowDataOnUpdate);\n        if (resetRowDataOnUpdate) {\n            return false;\n        }\n        return getRowIdProvided || immutableData;\n    };\n    GridOptionsWrapper.prototype.isEnsureDomOrder = function () {\n        return isTrue(this.gridOptions.ensureDomOrder);\n    };\n    GridOptionsWrapper.prototype.isEnableCharts = function () {\n        if (isTrue(this.gridOptions.enableCharts)) {\n            return ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'enableCharts');\n        }\n        return false;\n    };\n    GridOptionsWrapper.prototype.getColResizeDefault = function () {\n        return this.gridOptions.colResizeDefault;\n    };\n    GridOptionsWrapper.prototype.isSingleClickEdit = function () {\n        return isTrue(this.gridOptions.singleClickEdit);\n    };\n    GridOptionsWrapper.prototype.isSuppressClickEdit = function () {\n        return isTrue(this.gridOptions.suppressClickEdit);\n    };\n    GridOptionsWrapper.prototype.isStopEditingWhenCellsLoseFocus = function () {\n        return isTrue(this.gridOptions.stopEditingWhenCellsLoseFocus);\n    };\n    GridOptionsWrapper.prototype.getGroupDefaultExpanded = function () {\n        return this.gridOptions.groupDefaultExpanded;\n    };\n    GridOptionsWrapper.prototype.getMaxConcurrentDatasourceRequests = function () {\n        var res = toNumber(this.gridOptions.maxConcurrentDatasourceRequests);\n        if (res == null) {\n            return 2;\n        } // 2 is the default\n        if (res <= 0) {\n            return;\n        } // negative number, eg -1, means no max restriction\n        return res;\n    };\n    GridOptionsWrapper.prototype.getMaxBlocksInCache = function () {\n        return this.gridOptions.maxBlocksInCache;\n    };\n    GridOptionsWrapper.prototype.getCacheOverflowSize = function () {\n        return this.gridOptions.cacheOverflowSize;\n    };\n    GridOptionsWrapper.prototype.getPaginationPageSize = function () {\n        return toNumber(this.gridOptions.paginationPageSize);\n    };\n    GridOptionsWrapper.prototype.isPaginateChildRows = function () {\n        var shouldPaginate = this.isGroupRemoveSingleChildren() || this.isGroupRemoveLowestSingleChildren();\n        if (shouldPaginate) {\n            return true;\n        }\n        return isTrue(this.gridOptions.paginateChildRows);\n    };\n    GridOptionsWrapper.prototype.getCacheBlockSize = function () {\n        return oneOrGreater(this.gridOptions.cacheBlockSize);\n    };\n    GridOptionsWrapper.prototype.getInfiniteInitialRowCount = function () {\n        return this.gridOptions.infiniteInitialRowCount;\n    };\n    GridOptionsWrapper.prototype.isPurgeClosedRowNodes = function () {\n        return isTrue(this.gridOptions.purgeClosedRowNodes);\n    };\n    GridOptionsWrapper.prototype.isSuppressPaginationPanel = function () {\n        return isTrue(this.gridOptions.suppressPaginationPanel);\n    };\n    GridOptionsWrapper.prototype.getRowData = function () {\n        return this.gridOptions.rowData;\n    };\n    GridOptionsWrapper.prototype.isEnableRtl = function () {\n        return isTrue(this.gridOptions.enableRtl);\n    };\n    GridOptionsWrapper.prototype.getRowGroupPanelShow = function () {\n        return this.gridOptions.rowGroupPanelShow;\n    };\n    GridOptionsWrapper.prototype.getPivotPanelShow = function () {\n        return this.gridOptions.pivotPanelShow;\n    };\n    GridOptionsWrapper.prototype.isAngularCompileRows = function () {\n        return isTrue(this.gridOptions.angularCompileRows);\n    };\n    GridOptionsWrapper.prototype.isAngularCompileFilters = function () {\n        return isTrue(this.gridOptions.angularCompileFilters);\n    };\n    GridOptionsWrapper.prototype.isDebug = function () {\n        return isTrue(this.gridOptions.debug);\n    };\n    GridOptionsWrapper.prototype.getColumnDefs = function () {\n        return this.gridOptions.columnDefs;\n    };\n    GridOptionsWrapper.prototype.getColumnTypes = function () {\n        return this.gridOptions.columnTypes;\n    };\n    GridOptionsWrapper.prototype.getDatasource = function () {\n        return this.gridOptions.datasource;\n    };\n    GridOptionsWrapper.prototype.getViewportDatasource = function () {\n        return this.gridOptions.viewportDatasource;\n    };\n    GridOptionsWrapper.prototype.getServerSideDatasource = function () {\n        return this.gridOptions.serverSideDatasource;\n    };\n    GridOptionsWrapper.prototype.isAccentedSort = function () {\n        return isTrue(this.gridOptions.accentedSort);\n    };\n    GridOptionsWrapper.prototype.isEnableBrowserTooltips = function () {\n        return isTrue(this.gridOptions.enableBrowserTooltips);\n    };\n    GridOptionsWrapper.prototype.isEnableCellExpressions = function () {\n        return isTrue(this.gridOptions.enableCellExpressions);\n    };\n    GridOptionsWrapper.prototype.isEnableGroupEdit = function () {\n        return isTrue(this.gridOptions.enableGroupEdit);\n    };\n    GridOptionsWrapper.prototype.isSuppressMiddleClickScrolls = function () {\n        return isTrue(this.gridOptions.suppressMiddleClickScrolls);\n    };\n    GridOptionsWrapper.prototype.isPreventDefaultOnContextMenu = function () {\n        return isTrue(this.gridOptions.preventDefaultOnContextMenu);\n    };\n    GridOptionsWrapper.prototype.isSuppressPreventDefaultOnMouseWheel = function () {\n        return isTrue(this.gridOptions.suppressPreventDefaultOnMouseWheel);\n    };\n    GridOptionsWrapper.prototype.isSuppressColumnVirtualisation = function () {\n        return isTrue(this.gridOptions.suppressColumnVirtualisation);\n    };\n    GridOptionsWrapper.prototype.isSuppressRowVirtualisation = function () {\n        return isTrue(this.gridOptions.suppressRowVirtualisation);\n    };\n    GridOptionsWrapper.prototype.isSuppressContextMenu = function () {\n        return isTrue(this.gridOptions.suppressContextMenu);\n    };\n    GridOptionsWrapper.prototype.isAllowContextMenuWithControlKey = function () {\n        return isTrue(this.gridOptions.allowContextMenuWithControlKey);\n    };\n    GridOptionsWrapper.prototype.isSuppressCopyRowsToClipboard = function () {\n        return isTrue(this.gridOptions.suppressCopyRowsToClipboard);\n    };\n    GridOptionsWrapper.prototype.isSuppressCopySingleCellRanges = function () {\n        return isTrue(this.gridOptions.suppressCopySingleCellRanges);\n    };\n    GridOptionsWrapper.prototype.isCopyHeadersToClipboard = function () {\n        return isTrue(this.gridOptions.copyHeadersToClipboard);\n    };\n    GridOptionsWrapper.prototype.isCopyGroupHeadersToClipboard = function () {\n        return isTrue(this.gridOptions.copyGroupHeadersToClipboard);\n    };\n    GridOptionsWrapper.prototype.isSuppressClipboardPaste = function () {\n        return isTrue(this.gridOptions.suppressClipboardPaste);\n    };\n    GridOptionsWrapper.prototype.isSuppressLastEmptyLineOnPaste = function () {\n        return isTrue(this.gridOptions.suppressLastEmptyLineOnPaste);\n    };\n    GridOptionsWrapper.prototype.isPagination = function () {\n        return isTrue(this.gridOptions.pagination);\n    };\n    GridOptionsWrapper.prototype.isSuppressEnterpriseResetOnNewColumns = function () {\n        return isTrue(this.gridOptions.suppressEnterpriseResetOnNewColumns);\n    };\n    GridOptionsWrapper.prototype.getProcessDataFromClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard);\n    };\n    GridOptionsWrapper.prototype.getAsyncTransactionWaitMillis = function () {\n        return exists(this.gridOptions.asyncTransactionWaitMillis) ? this.gridOptions.asyncTransactionWaitMillis : Constants.BATCH_WAIT_MILLIS;\n    };\n    GridOptionsWrapper.prototype.isSuppressMovableColumns = function () {\n        return isTrue(this.gridOptions.suppressMovableColumns);\n    };\n    GridOptionsWrapper.prototype.isAnimateRows = function () {\n        // never allow animating if enforcing the row order\n        if (this.isEnsureDomOrder()) {\n            return false;\n        }\n        return isTrue(this.gridOptions.animateRows);\n    };\n    GridOptionsWrapper.prototype.isSuppressColumnMoveAnimation = function () {\n        return isTrue(this.gridOptions.suppressColumnMoveAnimation);\n    };\n    GridOptionsWrapper.prototype.isSuppressAggFuncInHeader = function () {\n        return isTrue(this.gridOptions.suppressAggFuncInHeader);\n    };\n    GridOptionsWrapper.prototype.isSuppressAggAtRootLevel = function () {\n        return isTrue(this.gridOptions.suppressAggAtRootLevel);\n    };\n    GridOptionsWrapper.prototype.isSuppressAggFilteredOnly = function () {\n        var isGroupAggFiltering = this.getGroupAggFiltering() !== undefined;\n        return isGroupAggFiltering || isTrue(this.gridOptions.suppressAggFilteredOnly);\n    };\n    GridOptionsWrapper.prototype.isRemovePivotHeaderRowWhenSingleValueColumn = function () {\n        return isTrue(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn);\n    };\n    GridOptionsWrapper.prototype.isShowOpenedGroup = function () {\n        return isTrue(this.gridOptions.showOpenedGroup);\n    };\n    GridOptionsWrapper.prototype.isReactUi = function () {\n        return isTrue(this.gridOptions.reactUi);\n    };\n    GridOptionsWrapper.prototype.isSuppressReactUi = function () {\n        return isTrue(this.gridOptions.suppressReactUi);\n    };\n    GridOptionsWrapper.prototype.isEnableRangeSelection = function () {\n        return ModuleRegistry.isRegistered(exports.ModuleNames.RangeSelectionModule) && isTrue(this.gridOptions.enableRangeSelection);\n    };\n    GridOptionsWrapper.prototype.isEnableRangeHandle = function () {\n        return isTrue(this.gridOptions.enableRangeHandle);\n    };\n    GridOptionsWrapper.prototype.isEnableFillHandle = function () {\n        return isTrue(this.gridOptions.enableFillHandle);\n    };\n    GridOptionsWrapper.prototype.getFillHandleDirection = function () {\n        var direction = this.gridOptions.fillHandleDirection;\n        if (!direction) {\n            return 'xy';\n        }\n        if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {\n            doOnce(function () { return console.warn(\"AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.\"); }, 'warn invalid fill direction');\n            return 'xy';\n        }\n        return direction;\n    };\n    GridOptionsWrapper.prototype.getFillOperation = function () {\n        return this.mergeGridCommonParams(this.gridOptions.fillOperation);\n    };\n    GridOptionsWrapper.prototype.isSuppressMultiRangeSelection = function () {\n        return isTrue(this.gridOptions.suppressMultiRangeSelection);\n    };\n    GridOptionsWrapper.prototype.isPaginationAutoPageSize = function () {\n        return isTrue(this.gridOptions.paginationAutoPageSize);\n    };\n    GridOptionsWrapper.prototype.isRememberGroupStateWhenNewData = function () {\n        return isTrue(this.gridOptions.rememberGroupStateWhenNewData);\n    };\n    GridOptionsWrapper.prototype.getIcons = function () {\n        return this.gridOptions.icons;\n    };\n    GridOptionsWrapper.prototype.getGroupAggFiltering = function () {\n        var userValue = this.gridOptions.groupAggFiltering;\n        if (typeof userValue === 'function') {\n            return this.mergeGridCommonParams(userValue);\n        }\n        if (isTrue(userValue)) {\n            return function () { return true; };\n        }\n        return undefined;\n    };\n    GridOptionsWrapper.prototype.getAggFuncs = function () {\n        return this.gridOptions.aggFuncs;\n    };\n    GridOptionsWrapper.prototype.getSortingOrder = function () {\n        return this.gridOptions.sortingOrder;\n    };\n    GridOptionsWrapper.prototype.getAlignedGrids = function () {\n        return this.gridOptions.alignedGrids;\n    };\n    GridOptionsWrapper.prototype.isMasterDetail = function () {\n        var masterDetail = isTrue(this.gridOptions.masterDetail);\n        if (masterDetail) {\n            return ModuleRegistry.assertRegistered(exports.ModuleNames.MasterDetailModule, 'masterDetail');\n        }\n        else {\n            return false;\n        }\n    };\n    GridOptionsWrapper.prototype.isKeepDetailRows = function () {\n        return isTrue(this.gridOptions.keepDetailRows);\n    };\n    GridOptionsWrapper.prototype.getKeepDetailRowsCount = function () {\n        var keepDetailRowsCount = this.gridOptions.keepDetailRowsCount;\n        if (exists(keepDetailRowsCount) && keepDetailRowsCount > 0) {\n            return this.gridOptions.keepDetailRowsCount;\n        }\n        return DEFAULT_KEEP_DETAIL_ROW_COUNT;\n    };\n    GridOptionsWrapper.prototype.getIsRowMasterFunc = function () {\n        return this.gridOptions.isRowMaster;\n    };\n    GridOptionsWrapper.prototype.getIsRowSelectableFunc = function () {\n        return this.gridOptions.isRowSelectable;\n    };\n    GridOptionsWrapper.prototype.getGroupRowRendererParams = function () {\n        return this.gridOptions.groupRowRendererParams;\n    };\n    GridOptionsWrapper.prototype.getOverlayLoadingTemplate = function () {\n        return this.gridOptions.overlayLoadingTemplate;\n    };\n    GridOptionsWrapper.prototype.getOverlayNoRowsTemplate = function () {\n        return this.gridOptions.overlayNoRowsTemplate;\n    };\n    GridOptionsWrapper.prototype.isSuppressAutoSize = function () {\n        return isTrue(this.gridOptions.suppressAutoSize);\n    };\n    GridOptionsWrapper.prototype.isEnableCellTextSelection = function () {\n        return isTrue(this.gridOptions.enableCellTextSelection);\n    };\n    GridOptionsWrapper.prototype.isSuppressParentsInRowNodes = function () {\n        return isTrue(this.gridOptions.suppressParentsInRowNodes);\n    };\n    GridOptionsWrapper.prototype.isSuppressClipboardApi = function () {\n        return isTrue(this.gridOptions.suppressClipboardApi);\n    };\n    GridOptionsWrapper.prototype.isFunctionsReadOnly = function () {\n        return isTrue(this.gridOptions.functionsReadOnly);\n    };\n    GridOptionsWrapper.prototype.isEnableCellTextSelect = function () {\n        return isTrue(this.gridOptions.enableCellTextSelection);\n    };\n    GridOptionsWrapper.prototype.getDefaultColDef = function () {\n        return this.gridOptions.defaultColDef;\n    };\n    GridOptionsWrapper.prototype.getDefaultColGroupDef = function () {\n        return this.gridOptions.defaultColGroupDef;\n    };\n    GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {\n        if (this.gridOptions.defaultExportParams) {\n            console.warn(\"AG Grid: Since v25.2 `defaultExportParams`  has been replaced by `default\" + capitalise(type) + \"ExportParams`'\");\n            if (type === 'csv') {\n                return this.gridOptions.defaultExportParams;\n            }\n            return this.gridOptions.defaultExportParams;\n        }\n        if (type === 'csv' && this.gridOptions.defaultCsvExportParams) {\n            return this.gridOptions.defaultCsvExportParams;\n        }\n        if (type === 'excel' && this.gridOptions.defaultExcelExportParams) {\n            return this.gridOptions.defaultExcelExportParams;\n        }\n    };\n    GridOptionsWrapper.prototype.isSuppressCsvExport = function () {\n        return isTrue(this.gridOptions.suppressCsvExport);\n    };\n    GridOptionsWrapper.prototype.isAllowShowChangeAfterFilter = function () {\n        return isTrue(this.gridOptions.allowShowChangeAfterFilter);\n    };\n    GridOptionsWrapper.prototype.isSuppressExcelExport = function () {\n        return isTrue(this.gridOptions.suppressExcelExport);\n    };\n    GridOptionsWrapper.prototype.isSuppressMakeColumnVisibleAfterUnGroup = function () {\n        return isTrue(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup);\n    };\n    GridOptionsWrapper.prototype.getDataPathFunc = function () {\n        return this.gridOptions.getDataPath;\n    };\n    GridOptionsWrapper.prototype.getIsServerSideGroupFunc = function () {\n        return this.gridOptions.isServerSideGroup;\n    };\n    GridOptionsWrapper.prototype.getIsServerSideGroupOpenByDefaultFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault);\n    };\n    GridOptionsWrapper.prototype.getIsGroupOpenByDefaultFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault);\n    };\n    GridOptionsWrapper.prototype.getServerSideGroupKeyFunc = function () {\n        return this.gridOptions.getServerSideGroupKey;\n    };\n    GridOptionsWrapper.prototype.getGroupRowAggFunc = function () {\n        var _a = this.gridOptions, getGroupRowAgg = _a.getGroupRowAgg, groupRowAggNodes = _a.groupRowAggNodes;\n        if (getGroupRowAgg) {\n            return this.mergeGridCommonParams(getGroupRowAgg);\n        }\n        // this is the deprecated way, so provide a proxy to make it compatible\n        if (groupRowAggNodes) {\n            return function (params) { return groupRowAggNodes(params.nodes); };\n        }\n    };\n    GridOptionsWrapper.prototype.getContextMenuItemsFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems);\n    };\n    GridOptionsWrapper.prototype.getMainMenuItemsFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems);\n    };\n    GridOptionsWrapper.prototype.getRowIdFunc = function () {\n        var _a = this.gridOptions, getRowId = _a.getRowId, getRowNodeId = _a.getRowNodeId;\n        if (getRowId) {\n            return this.mergeGridCommonParams(getRowId);\n        }\n        // this is the deprecated way, so provide a proxy to make it compatible\n        if (getRowNodeId) {\n            return function (params) { return getRowNodeId(params.data); };\n        }\n    };\n    GridOptionsWrapper.prototype.getNavigateToNextHeaderFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader);\n    };\n    GridOptionsWrapper.prototype.getTabToNextHeaderFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader);\n    };\n    GridOptionsWrapper.prototype.getNavigateToNextCellFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell);\n    };\n    GridOptionsWrapper.prototype.getTabToNextCellFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.tabToNextCell);\n    };\n    GridOptionsWrapper.prototype.getGridTabIndex = function () {\n        return (this.gridOptions.tabIndex || 0).toString();\n    };\n    GridOptionsWrapper.prototype.isTreeData = function () {\n        var usingTreeData = isTrue(this.gridOptions.treeData);\n        if (usingTreeData) {\n            return ModuleRegistry.assertRegistered(exports.ModuleNames.RowGroupingModule, 'Tree Data');\n        }\n        return false;\n    };\n    GridOptionsWrapper.prototype.isValueCache = function () {\n        return isTrue(this.gridOptions.valueCache);\n    };\n    GridOptionsWrapper.prototype.isValueCacheNeverExpires = function () {\n        return isTrue(this.gridOptions.valueCacheNeverExpires);\n    };\n    GridOptionsWrapper.prototype.isDeltaSort = function () {\n        return isTrue(this.gridOptions.deltaSort);\n    };\n    GridOptionsWrapper.prototype.isAggregateOnlyChangedColumns = function () {\n        return isTrue(this.gridOptions.aggregateOnlyChangedColumns);\n    };\n    GridOptionsWrapper.prototype.getProcessSecondaryColDefFunc = function () {\n        return this.gridOptions.processSecondaryColDef;\n    };\n    GridOptionsWrapper.prototype.getProcessSecondaryColGroupDefFunc = function () {\n        return this.gridOptions.processSecondaryColGroupDef;\n    };\n    GridOptionsWrapper.prototype.getSendToClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.sendToClipboard);\n    };\n    GridOptionsWrapper.prototype.getProcessRowPostCreateFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate);\n    };\n    GridOptionsWrapper.prototype.getProcessCellForClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard);\n    };\n    GridOptionsWrapper.prototype.getProcessHeaderForClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard);\n    };\n    GridOptionsWrapper.prototype.getProcessGroupHeaderForClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard);\n    };\n    GridOptionsWrapper.prototype.getProcessCellFromClipboardFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard);\n    };\n    GridOptionsWrapper.prototype.getViewportRowModelPageSize = function () {\n        return oneOrGreater(this.gridOptions.viewportRowModelPageSize, DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE);\n    };\n    GridOptionsWrapper.prototype.getViewportRowModelBufferSize = function () {\n        return zeroOrGreater(this.gridOptions.viewportRowModelBufferSize, DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE);\n    };\n    GridOptionsWrapper.prototype.isServerSideSortingAlwaysResets = function () {\n        return isTrue(this.gridOptions.serverSideSortingAlwaysResets);\n    };\n    GridOptionsWrapper.prototype.isServerSideFilteringAlwaysResets = function () {\n        return isTrue(this.gridOptions.serverSideFilteringAlwaysResets);\n    };\n    GridOptionsWrapper.prototype.getPostSortFunc = function () {\n        var _a = this.gridOptions, postSortRows = _a.postSortRows, postSort = _a.postSort;\n        if (postSortRows) {\n            return this.mergeGridCommonParams(postSortRows);\n        }\n        // this is the deprecated way, so provide a proxy to make it compatible\n        if (postSort) {\n            return function (params) { return postSort(params.nodes); };\n        }\n    };\n    GridOptionsWrapper.prototype.getChartToolbarItemsFunc = function () {\n        return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems);\n    };\n    GridOptionsWrapper.prototype.getChartThemeOverrides = function () {\n        return this.gridOptions.chartThemeOverrides;\n    };\n    GridOptionsWrapper.prototype.getCustomChartThemes = function () {\n        return this.gridOptions.customChartThemes;\n    };\n    GridOptionsWrapper.prototype.getChartThemes = function () {\n        // return default themes if user hasn't supplied any\n        return this.gridOptions.chartThemes || ['ag-default', 'ag-material', 'ag-pastel', 'ag-vivid', 'ag-solar'];\n    };\n    GridOptionsWrapper.prototype.getClipboardDelimiter = function () {\n        return exists(this.gridOptions.clipboardDelimiter) ? this.gridOptions.clipboardDelimiter : '\\t';\n    };\n    GridOptionsWrapper.prototype.setProperty = function (key, value, force) {\n        if (force === void 0) { force = false; }\n        var gridOptionsNoType = this.gridOptions;\n        var previousValue = gridOptionsNoType[key];\n        if (force || previousValue !== value) {\n            gridOptionsNoType[key] = value;\n            var event_1 = {\n                type: key,\n                currentValue: value,\n                previousValue: previousValue\n            };\n            this.propertyEventService.dispatchEvent(event_1);\n        }\n    };\n    GridOptionsWrapper.prototype.addEventListener = function (key, listener) {\n        this.propertyEventService.addEventListener(key, listener);\n    };\n    GridOptionsWrapper.prototype.removeEventListener = function (key, listener) {\n        this.propertyEventService.removeEventListener(key, listener);\n    };\n    GridOptionsWrapper.prototype.isSkipHeaderOnAutoSize = function () {\n        return !!this.gridOptions.skipHeaderOnAutoSize;\n    };\n    GridOptionsWrapper.prototype.getAutoSizePadding = function () {\n        var value = this.gridOptions.autoSizePadding;\n        return value != null && value >= 0 ? value : 20;\n    };\n    // properties\n    GridOptionsWrapper.prototype.getHeaderHeight = function () {\n        if (typeof this.gridOptions.headerHeight === 'number') {\n            return this.gridOptions.headerHeight;\n        }\n        return this.getFromTheme(25, 'headerHeight');\n    };\n    GridOptionsWrapper.prototype.getFloatingFiltersHeight = function () {\n        if (typeof this.gridOptions.floatingFiltersHeight === 'number') {\n            return this.gridOptions.floatingFiltersHeight;\n        }\n        return this.getFromTheme(25, 'headerHeight');\n    };\n    GridOptionsWrapper.prototype.getGroupHeaderHeight = function () {\n        if (typeof this.gridOptions.groupHeaderHeight === 'number') {\n            return this.gridOptions.groupHeaderHeight;\n        }\n        return this.getHeaderHeight();\n    };\n    GridOptionsWrapper.prototype.getPivotHeaderHeight = function () {\n        if (typeof this.gridOptions.pivotHeaderHeight === 'number') {\n            return this.gridOptions.pivotHeaderHeight;\n        }\n        return this.getHeaderHeight();\n    };\n    GridOptionsWrapper.prototype.getPivotGroupHeaderHeight = function () {\n        if (typeof this.gridOptions.pivotGroupHeaderHeight === 'number') {\n            return this.gridOptions.pivotGroupHeaderHeight;\n        }\n        return this.getGroupHeaderHeight();\n    };\n    GridOptionsWrapper.prototype.isExternalFilterPresent = function () {\n        if (typeof this.gridOptions.isExternalFilterPresent === 'function') {\n            return this.gridOptions.isExternalFilterPresent({ api: this.getApi(), columnApi: this.getColumnApi(), context: this.getContext() });\n        }\n        return false;\n    };\n    GridOptionsWrapper.prototype.doesExternalFilterPass = function (node) {\n        if (typeof this.gridOptions.doesExternalFilterPass === 'function') {\n            return this.gridOptions.doesExternalFilterPass(node);\n        }\n        return false;\n    };\n    GridOptionsWrapper.prototype.getTooltipDelay = function (type) {\n        var _a = this.gridOptions, tooltipShowDelay = _a.tooltipShowDelay, tooltipHideDelay = _a.tooltipHideDelay;\n        var delay = type === 'show' ? tooltipShowDelay : tooltipHideDelay;\n        var capitalisedType = capitalise(type);\n        if (exists(delay)) {\n            if (delay < 0) {\n                doOnce(function () { return console.warn(\"ag-grid: tooltip\" + capitalisedType + \"Delay should not be lower than 0\"); }, \"tooltip\" + capitalisedType + \"DelayWarn\");\n            }\n            return Math.max(200, delay);\n        }\n        return null;\n    };\n    GridOptionsWrapper.prototype.isTooltipMouseTrack = function () {\n        return isTrue(this.gridOptions.tooltipMouseTrack);\n    };\n    GridOptionsWrapper.prototype.isSuppressModelUpdateAfterUpdateTransaction = function () {\n        return isTrue(this.gridOptions.suppressModelUpdateAfterUpdateTransaction);\n    };\n    GridOptionsWrapper.prototype.getDocument = function () {\n        // if user is providing document, we use the users one,\n        // otherwise we use the document on the global namespace.\n        var result = null;\n        if (this.gridOptions.getDocument && exists(this.gridOptions.getDocument)) {\n            result = this.gridOptions.getDocument();\n        }\n        else if (this.eGridDiv) {\n            result = this.eGridDiv.ownerDocument;\n        }\n        if (result && exists(result)) {\n            return result;\n        }\n        return document;\n    };\n    GridOptionsWrapper.prototype.getMinColWidth = function () {\n        var minColWidth = this.gridOptions.minColWidth;\n        if (exists(minColWidth) && minColWidth > GridOptionsWrapper_1.MIN_COL_WIDTH) {\n            return this.gridOptions.minColWidth;\n        }\n        var measuredMin = this.getFromTheme(null, 'headerCellMinWidth');\n        return exists(measuredMin) ? Math.max(measuredMin, GridOptionsWrapper_1.MIN_COL_WIDTH) : GridOptionsWrapper_1.MIN_COL_WIDTH;\n    };\n    GridOptionsWrapper.prototype.getMaxColWidth = function () {\n        if (this.gridOptions.maxColWidth && this.gridOptions.maxColWidth > GridOptionsWrapper_1.MIN_COL_WIDTH) {\n            return this.gridOptions.maxColWidth;\n        }\n        return null;\n    };\n    GridOptionsWrapper.prototype.getColWidth = function () {\n        if (typeof this.gridOptions.colWidth !== 'number' || this.gridOptions.colWidth < GridOptionsWrapper_1.MIN_COL_WIDTH) {\n            return 200;\n        }\n        return this.gridOptions.colWidth;\n    };\n    GridOptionsWrapper.prototype.getRowBuffer = function () {\n        var rowBuffer = this.gridOptions.rowBuffer;\n        if (typeof rowBuffer === 'number') {\n            if (rowBuffer < 0) {\n                doOnce(function () { return console.warn(\"AG Grid: rowBuffer should not be negative\"); }, 'warn rowBuffer negative');\n                this.gridOptions.rowBuffer = rowBuffer = 0;\n            }\n        }\n        else {\n            rowBuffer = Constants.ROW_BUFFER_SIZE;\n        }\n        return rowBuffer;\n    };\n    GridOptionsWrapper.prototype.getRowBufferInPixels = function () {\n        var rowsToBuffer = this.getRowBuffer();\n        var defaultRowHeight = this.getRowHeightAsNumber();\n        return rowsToBuffer * defaultRowHeight;\n    };\n    // the user might be using some non-standard scrollbar, eg a scrollbar that has zero\n    // width and overlays (like the Safari scrollbar, but presented in Chrome). so we\n    // allow the user to provide the scroll width before we work it out.\n    GridOptionsWrapper.prototype.getScrollbarWidth = function () {\n        if (this.scrollbarWidth == null) {\n            var useGridOptions = typeof this.gridOptions.scrollbarWidth === 'number' && this.gridOptions.scrollbarWidth >= 0;\n            var scrollbarWidth = useGridOptions ? this.gridOptions.scrollbarWidth : getScrollbarWidth();\n            if (scrollbarWidth != null) {\n                this.scrollbarWidth = scrollbarWidth;\n                this.eventService.dispatchEvent({\n                    type: Events.EVENT_SCROLLBAR_WIDTH_CHANGED\n                });\n            }\n        }\n        return this.scrollbarWidth;\n    };\n    GridOptionsWrapper.prototype.checkForDeprecated = function () {\n        // casting to generic object, so typescript compiles even though\n        // we are looking for attributes that don't exist\n        var options = this.gridOptions;\n        if (options.deprecatedEmbedFullWidthRows) {\n            console.warn(\"AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.\");\n        }\n        if (options.rowDeselection) {\n            console.warn('AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.');\n        }\n        if (options.enableMultiRowDragging) {\n            options.rowDragMultiRow = true;\n            delete options.enableMultiRowDragging;\n            console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');\n        }\n        var checkRenamedProperty = function (oldProp, newProp, version) {\n            if (options[oldProp] != null) {\n                console.warn(\"AG Grid: since version \" + version + \", '\" + oldProp + \"' is deprecated / renamed, please use the new property name '\" + newProp + \"' instead.\");\n                if (options[newProp] == null) {\n                    options[newProp] = options[oldProp];\n                }\n            }\n        };\n        checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');\n        checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');\n        if (options.immutableColumns || options.deltaColumnMode) {\n            console.warn('AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true');\n        }\n        checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');\n        if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {\n            console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');\n            console.warn('  Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');\n            console.warn('  For example instead of this:');\n            console.warn('    groupRowInnerRenderer: \"myRenderer\"');\n            console.warn('    groupRowInnerRendererParams: {x: a}');\n            console.warn('  Replace with this:');\n            console.warn('    groupRowRendererParams: {');\n            console.warn('      innerRenderer: \"myRenderer\",');\n            console.warn('      innerRendererParams: {x: a}');\n            console.warn('    }');\n            console.warn('  We have copied the properties over for you. However to stop this error message, please change your application code.');\n            if (!options.groupRowRendererParams) {\n                options.groupRowRendererParams = {};\n            }\n            var params = options.groupRowRendererParams;\n            if (options.groupRowInnerRenderer) {\n                params.innerRenderer = options.groupRowInnerRenderer;\n            }\n            if (options.groupRowInnerRendererParams) {\n                params.innerRendererParams = options.groupRowInnerRendererParams;\n            }\n            if (options.groupRowInnerRendererFramework) {\n                params.innerRendererFramework = options.groupRowInnerRendererFramework;\n            }\n        }\n        if (options.rememberGroupStateWhenNewData) {\n            console.warn('AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed.');\n        }\n        if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {\n            console.warn('AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer');\n            options.detailRowAutoHeight = true;\n        }\n        if (options.suppressKeyboardEvent) {\n            console.warn(\"AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\\n                 future versions of AG Grid. If you need this to be set for every column use the defaultColDef property.\");\n        }\n        if (options.suppressEnterpriseResetOnNewColumns) {\n            console.warn('AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed.');\n        }\n        if (options.suppressColumnStateEvents) {\n            console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be \"api\" if the event was due to setting column state via the API');\n        }\n        if (options.defaultExportParams) {\n            console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');\n        }\n        if (options.stopEditingWhenGridLosesFocus) {\n            console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');\n            options.stopEditingWhenCellsLoseFocus = true;\n        }\n        if (options.applyColumnDefOrder) {\n            console.warn('AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true');\n        }\n        if (options.groupMultiAutoColumn) {\n            console.warn(\"AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`\");\n            options.groupDisplayType = 'multipleColumns';\n        }\n        if (options.groupUseEntireRow) {\n            console.warn(\"AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`\");\n            options.groupDisplayType = 'groupRows';\n        }\n        if (options.groupSuppressAutoColumn) {\n            var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';\n            console.warn(\"AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `\" + propName + \" = 'custom'`\");\n            options.groupDisplayType = 'custom';\n        }\n        if (options.defaultGroupOrderComparator) {\n            console.warn(\"AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object.\");\n        }\n        if (options.defaultGroupSortComparator) {\n            console.warn(\"AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`\");\n            options.defaultGroupOrderComparator = options.defaultGroupSortComparator;\n        }\n        if (options.groupRowAggNodes) {\n            console.warn(\"AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object.\");\n        }\n        if (options.postSort) {\n            console.warn(\"AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object.\");\n        }\n        if (options.isFullWidthCell) {\n            console.warn(\"AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object.\");\n        }\n        if (options.localeTextFunc) {\n            console.warn(\"AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object.\");\n        }\n        if (options.colWidth) {\n            console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');\n        }\n        if (options.minColWidth) {\n            console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');\n        }\n        if (options.maxColWidth) {\n            console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');\n        }\n        if (options.reactUi) {\n            console.warn('AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true.');\n        }\n        if (options.suppressReactUi) {\n            console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');\n        }\n        if (options.suppressCellSelection) {\n            console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');\n            options.suppressCellFocus = options.suppressCellSelection;\n        }\n        if (options.getRowNodeId) {\n            console.warn('AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default.');\n        }\n        if (options.immutableData) {\n            if (options.getRowId) {\n                console.warn('AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.');\n            }\n            else {\n                console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');\n            }\n        }\n        if (options.clipboardDeliminator) {\n            console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');\n            options.clipboardDelimiter = options.clipboardDeliminator;\n        }\n    };\n    GridOptionsWrapper.prototype.checkForViolations = function () {\n        if (this.isTreeData()) {\n            this.treeDataViolations();\n        }\n    };\n    GridOptionsWrapper.prototype.treeDataViolations = function () {\n        if (this.isRowModelDefault()) {\n            if (missing(this.getDataPathFunc())) {\n                console.warn('AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not ' +\n                    'provide getDataPath function, please provide getDataPath function if using tree data.');\n            }\n        }\n        if (this.isRowModelServerSide()) {\n            if (missing(this.getIsServerSideGroupFunc())) {\n                console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +\n                    'provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.');\n            }\n            if (missing(this.getServerSideGroupKeyFunc())) {\n                console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +\n                    'provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.');\n            }\n        }\n    };\n    GridOptionsWrapper.prototype.getLocaleTextFunc = function () {\n        var _this = this;\n        var _a = this.gridOptions, localeText = _a.localeText, getLocaleText = _a.getLocaleText, localeTextFunc = _a.localeTextFunc;\n        if (getLocaleText) {\n            //key: string, defaultValue: string, variableValues?: string[]\n            return function (key, defaultValue, variableValues) {\n                var params = {\n                    key: key,\n                    defaultValue: defaultValue,\n                    variableValues: variableValues,\n                    api: _this.getApi(),\n                    columnApi: _this.getColumnApi(),\n                    context: _this.getContext()\n                };\n                return getLocaleText(params);\n            };\n        }\n        if (localeTextFunc) {\n            return localeTextFunc;\n        }\n        return function (key, defaultValue, variableValues) {\n            var localisedText = localeText && localeText[key];\n            if (localisedText && variableValues && variableValues.length) {\n                var found = 0;\n                while (true) {\n                    if (found >= variableValues.length) {\n                        break;\n                    }\n                    var idx = localisedText.indexOf('${variable}');\n                    if (idx === -1) {\n                        break;\n                    }\n                    localisedText = localisedText.replace('${variable}', variableValues[found++]);\n                }\n            }\n            return (localisedText !== null && localisedText !== void 0 ? localisedText : defaultValue);\n        };\n    };\n    // responsible for calling the onXXX functions on gridOptions\n    GridOptionsWrapper.prototype.globalEventHandler = function (eventName, event) {\n        // prevent events from being fired _after_ the grid has been destroyed\n        if (this.destroyed) {\n            return;\n        }\n        var callbackMethodName = ComponentUtil.getCallbackForEvent(eventName);\n        if (typeof this.gridOptions[callbackMethodName] === 'function') {\n            this.gridOptions[callbackMethodName](event);\n        }\n    };\n    GridOptionsWrapper.prototype.setRowHeightVariable = function (height) {\n        var oldRowHeight = this.eGridDiv.style.getPropertyValue('--ag-line-height').trim();\n        var newRowHeight = height + \"px\";\n        if (oldRowHeight != newRowHeight) {\n            this.eGridDiv.style.setProperty('--ag-line-height', newRowHeight);\n        }\n    };\n    // we don't allow dynamic row height for virtual paging\n    GridOptionsWrapper.prototype.getRowHeightAsNumber = function () {\n        if (!this.gridOptions.rowHeight || missing(this.gridOptions.rowHeight)) {\n            return this.getDefaultRowHeight();\n        }\n        var rowHeight = this.gridOptions.rowHeight;\n        if (rowHeight && this.isNumeric(rowHeight)) {\n            this.setRowHeightVariable(rowHeight);\n            return rowHeight;\n        }\n        console.warn('AG Grid row height must be a number if not using standard row model');\n        return this.getDefaultRowHeight();\n    };\n    GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {\n        return typeof this.gridOptions.getRowHeight === 'function';\n    };\n    GridOptionsWrapper.prototype.getRowHeightForNode = function (rowNode, allowEstimate, defaultRowHeight) {\n        if (allowEstimate === void 0) { allowEstimate = false; }\n        if (defaultRowHeight == null) {\n            defaultRowHeight = this.getDefaultRowHeight();\n        }\n        // check the function first, in case use set both function and\n        // number, when using virtual pagination then function can be\n        // used for pinned rows and the number for the body rows.\n        if (this.isGetRowHeightFunction()) {\n            if (allowEstimate) {\n                return { height: defaultRowHeight, estimated: true };\n            }\n            var params = {\n                node: rowNode,\n                data: rowNode.data\n            };\n            var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);\n            if (this.isNumeric(height)) {\n                if (height === 0) {\n                    doOnce(function () { return console.warn('AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.'); }, 'invalidRowHeight');\n                }\n                return { height: Math.max(1, height), estimated: false };\n            }\n        }\n        if (rowNode.detail && this.isMasterDetail()) {\n            // if autoHeight, we want the height to grow to the new height starting at 1, as otherwise a flicker would happen,\n            // as the detail goes to the default (eg 200px) and then immediately shrink up/down to the new measured height\n            // (due to auto height) which looks bad, especially if doing row animation.\n            if (this.isDetailRowAutoHeight()) {\n                return { height: 1, estimated: false };\n            }\n            if (this.isNumeric(this.gridOptions.detailRowHeight)) {\n                return { height: this.gridOptions.detailRowHeight, estimated: false };\n            }\n            return { height: DEFAULT_DETAIL_ROW_HEIGHT, estimated: false };\n        }\n        var rowHeight = this.gridOptions.rowHeight && this.isNumeric(this.gridOptions.rowHeight) ? this.gridOptions.rowHeight : defaultRowHeight;\n        return { height: rowHeight, estimated: false };\n    };\n    GridOptionsWrapper.prototype.isDynamicRowHeight = function () {\n        return typeof this.gridOptions.getRowHeight === 'function';\n    };\n    GridOptionsWrapper.prototype.getListItemHeight = function () {\n        return this.getFromTheme(20, 'listItemHeight');\n    };\n    GridOptionsWrapper.prototype.chartMenuPanelWidth = function () {\n        return this.environment.chartMenuPanelWidth();\n    };\n    GridOptionsWrapper.prototype.isNumeric = function (value) {\n        return !isNaN(value) && typeof value === 'number' && isFinite(value);\n    };\n    GridOptionsWrapper.prototype.getFromTheme = function (defaultValue, sassVariableName) {\n        var theme = this.environment.getTheme().theme;\n        if (theme && theme.indexOf('ag-theme') === 0) {\n            return this.environment.getSassVariable(theme, sassVariableName);\n        }\n        return defaultValue;\n    };\n    GridOptionsWrapper.prototype.getDefaultRowHeight = function () {\n        return this.getFromTheme(DEFAULT_ROW_HEIGHT, 'rowHeight');\n    };\n    GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {\n        var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];\n        if (groupDisplayTypeValues.indexOf(supplied) < 0) {\n            console.warn(\"AG Grid: '\" + supplied + \"' is not a valid groupDisplayType value - possible values are: '\" + groupDisplayTypeValues.join(\"', '\") + \"'\");\n            return false;\n        }\n        return supplied === toMatch;\n    };\n    GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {\n        var treeDataDisplayTypeValues = ['auto', 'custom'];\n        if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {\n            console.warn(\"AG Grid: '\" + supplied + \"' is not a valid treeDataDisplayType value - possible values are: '\" + treeDataDisplayTypeValues.join(\"', '\") + \"'\");\n            return false;\n        }\n        return supplied === toMatch;\n    };\n    var GridOptionsWrapper_1;\n    GridOptionsWrapper.MIN_COL_WIDTH = 10;\n    GridOptionsWrapper.PROP_HEADER_HEIGHT = 'headerHeight';\n    GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN = 'groupRemoveSingleChildren';\n    GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN = 'groupRemoveLowestSingleChildren';\n    GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT = 'pivotHeaderHeight';\n    GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE = 'suppressClipboardPaste';\n    GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT = 'groupHeaderHeight';\n    GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT = 'pivotGroupHeaderHeight';\n    GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_CELL = 'navigateToNextCell';\n    GridOptionsWrapper.PROP_TAB_TO_NEXT_CELL = 'tabToNextCell';\n    GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_HEADER = 'navigateToNextHeader';\n    GridOptionsWrapper.PROP_TAB_TO_NEXT_HEADER = 'tabToNextHeader';\n    GridOptionsWrapper.PROP_IS_EXTERNAL_FILTER_PRESENT = 'isExternalFilterPresent';\n    GridOptionsWrapper.PROP_DOES_EXTERNAL_FILTER_PASS = 'doesExternalFilterPass';\n    GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT = 'floatingFiltersHeight';\n    GridOptionsWrapper.PROP_SUPPRESS_ROW_CLICK_SELECTION = 'suppressRowClickSelection';\n    GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG = 'suppressRowDrag';\n    GridOptionsWrapper.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG = 'suppressMoveWhenRowDragging';\n    GridOptionsWrapper.PROP_GET_ROW_CLASS = 'getRowClass';\n    GridOptionsWrapper.PROP_GET_ROW_STYLE = 'getRowStyle';\n    GridOptionsWrapper.PROP_GET_ROW_HEIGHT = 'getRowHeight';\n    GridOptionsWrapper.PROP_POPUP_PARENT = 'popupParent';\n    GridOptionsWrapper.PROP_DOM_LAYOUT = 'domLayout';\n    GridOptionsWrapper.PROP_ROW_CLASS = 'rowClass';\n    GridOptionsWrapper.PROP_FILL_HANDLE_DIRECTION = 'fillHandleDirection';\n    GridOptionsWrapper.PROP_GROUP_ROW_AGG_NODES = 'groupRowAggNodes';\n    GridOptionsWrapper.PROP_GET_GROUP_ROW_AGG = 'getGroupRowAgg';\n    GridOptionsWrapper.PROP_GET_BUSINESS_KEY_FOR_NODE = 'getBusinessKeyForNode';\n    GridOptionsWrapper.PROP_GET_CHILD_COUNT = 'getChildCount';\n    GridOptionsWrapper.PROP_PROCESS_ROW_POST_CREATE = 'processRowPostCreate';\n    GridOptionsWrapper.PROP_GET_ROW_NODE_ID = 'getRowNodeId';\n    GridOptionsWrapper.PROP_GET_ROW_ID = 'getRowId';\n    GridOptionsWrapper.PROP_IS_FULL_WIDTH_CELL = 'isFullWidthCell';\n    GridOptionsWrapper.PROP_IS_FULL_WIDTH_ROW = 'isFullWidthRow';\n    GridOptionsWrapper.PROP_IS_ROW_SELECTABLE = 'isRowSelectable';\n    GridOptionsWrapper.PROP_IS_ROW_MASTER = 'isRowMaster';\n    GridOptionsWrapper.PROP_POST_SORT = 'postSort';\n    GridOptionsWrapper.PROP_POST_SORT_ROWS = 'postSortRows';\n    GridOptionsWrapper.PROP_GET_DOCUMENT = 'getDocument';\n    GridOptionsWrapper.PROP_POST_PROCESS_POPUP = 'postProcessPopup';\n    GridOptionsWrapper.PROP_DEFAULT_GROUP_ORDER_COMPARATOR = 'defaultGroupOrderComparator';\n    GridOptionsWrapper.PROP_INITIAL_GROUP_ORDER_COMPARATOR = 'initialGroupOrderComparator';\n    GridOptionsWrapper.PROP_PAGINATION_NUMBER_FORMATTER = 'paginationNumberFormatter';\n    GridOptionsWrapper.PROP_GET_CONTEXT_MENU_ITEMS = 'getContextMenuItems';\n    GridOptionsWrapper.PROP_GET_MAIN_MENU_ITEMS = 'getMainMenuItems';\n    GridOptionsWrapper.PROP_PROCESS_CELL_FOR_CLIPBOARD = 'processCellForClipboard';\n    GridOptionsWrapper.PROP_PROCESS_CELL_FROM_CLIPBOARD = 'processCellFromClipboard';\n    GridOptionsWrapper.PROP_SEND_TO_CLIPBOARD = 'sendToClipboard';\n    GridOptionsWrapper.PROP_PROCESS_TO_SECONDARY_COLDEF = 'processSecondaryColDef';\n    GridOptionsWrapper.PROP_PROCESS_SECONDARY_COL_GROUP_DEF = 'processSecondaryColGroupDef';\n    GridOptionsWrapper.PROP_GET_CHART_TOOLBAR_ITEMS = 'getChartToolbarItems';\n    GridOptionsWrapper.PROP_GET_SERVER_SIDE_STORE_PARAMS = 'getServerSideStoreParams';\n    GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT = 'isServerSideGroupOpenByDefault';\n    GridOptionsWrapper.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION = 'isApplyServerSideTransaction';\n    GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUP = 'isServerSideGroup';\n    GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_KEY = 'getServerSideGroupKey';\n    __decorate$I([\n        Autowired('gridOptions')\n    ], GridOptionsWrapper.prototype, \"gridOptions\", void 0);\n    __decorate$I([\n        Autowired('eventService')\n    ], GridOptionsWrapper.prototype, \"eventService\", void 0);\n    __decorate$I([\n        Autowired('environment')\n    ], GridOptionsWrapper.prototype, \"environment\", void 0);\n    __decorate$I([\n        Autowired('eGridDiv')\n    ], GridOptionsWrapper.prototype, \"eGridDiv\", void 0);\n    __decorate$I([\n        __param$3(0, Qualifier('gridApi')), __param$3(1, Qualifier('columnApi'))\n    ], GridOptionsWrapper.prototype, \"agWire\", null);\n    __decorate$I([\n        PreDestroy\n    ], GridOptionsWrapper.prototype, \"destroy\", null);\n    __decorate$I([\n        PostConstruct\n    ], GridOptionsWrapper.prototype, \"init\", null);\n    GridOptionsWrapper = GridOptionsWrapper_1 = __decorate$I([\n        Bean('gridOptionsWrapper')\n    ], GridOptionsWrapper);\n    return GridOptionsWrapper;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$Q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$J = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n(function (LayoutCssClasses) {\n    LayoutCssClasses[\"AUTO_HEIGHT\"] = \"ag-layout-auto-height\";\n    LayoutCssClasses[\"NORMAL\"] = \"ag-layout-normal\";\n    LayoutCssClasses[\"PRINT\"] = \"ag-layout-print\";\n})(exports.LayoutCssClasses || (exports.LayoutCssClasses = {}));\nvar LayoutFeature = /** @class */ (function (_super) {\n    __extends$Q(LayoutFeature, _super);\n    function LayoutFeature(view) {\n        var _this = _super.call(this) || this;\n        _this.view = view;\n        return _this;\n    }\n    LayoutFeature.prototype.postConstruct = function () {\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.updateLayoutClasses.bind(this));\n        this.updateLayoutClasses();\n    };\n    LayoutFeature.prototype.updateLayoutClasses = function () {\n        var domLayout = this.gridOptionsWrapper.getDomLayout();\n        var params = {\n            autoHeight: domLayout === Constants.DOM_LAYOUT_AUTO_HEIGHT,\n            normal: domLayout === Constants.DOM_LAYOUT_NORMAL,\n            print: domLayout === Constants.DOM_LAYOUT_PRINT\n        };\n        var cssClass = params.autoHeight ? exports.LayoutCssClasses.AUTO_HEIGHT :\n            params.print ? exports.LayoutCssClasses.PRINT : exports.LayoutCssClasses.NORMAL;\n        this.view.updateLayoutClasses(cssClass, params);\n    };\n    __decorate$J([\n        Autowired('gridOptionsWrapper')\n    ], LayoutFeature.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$J([\n        PostConstruct\n    ], LayoutFeature.prototype, \"postConstruct\", null);\n    return LayoutFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$R = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$K = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GridBodyScrollFeature = /** @class */ (function (_super) {\n    __extends$R(GridBodyScrollFeature, _super);\n    function GridBodyScrollFeature(eBodyViewport) {\n        var _this = _super.call(this) || this;\n        _this.scrollLeft = -1;\n        _this.nextScrollTop = -1;\n        _this.scrollTop = -1;\n        _this.eBodyViewport = eBodyViewport;\n        _this.resetLastHorizontalScrollElementDebounced = debounce(_this.resetLastHorizontalScrollElement.bind(_this), 500);\n        return _this;\n    }\n    GridBodyScrollFeature.prototype.postConstruct = function () {\n        var _this = this;\n        this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this));\n        this.ctrlsService.whenReady(function (p) {\n            _this.centerRowContainerCtrl = p.centerRowContainerCtrl;\n            _this.onDisplayedColumnsWidthChanged();\n            _this.addScrollListener();\n        });\n    };\n    GridBodyScrollFeature.prototype.addScrollListener = function () {\n        var fakeHScroll = this.ctrlsService.getFakeHScrollCtrl();\n        this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(), 'scroll', this.onCenterViewportScroll.bind(this));\n        this.addManagedListener(fakeHScroll.getViewport(), 'scroll', this.onFakeHorizontalScroll.bind(this));\n        var onVerticalScroll = this.gridOptionsWrapper.isDebounceVerticalScrollbar() ?\n            debounce(this.onVerticalScroll.bind(this), 100)\n            : this.onVerticalScroll.bind(this);\n        this.addManagedListener(this.eBodyViewport, 'scroll', onVerticalScroll);\n    };\n    GridBodyScrollFeature.prototype.onDisplayedColumnsWidthChanged = function () {\n        if (this.enableRtl) {\n            // because RTL is all backwards, a change in the width of the row\n            // can cause a change in the scroll position, without a scroll event,\n            // because the scroll position in RTL is a function that depends on\n            // the width. to be convinced of this, take out this line, enable RTL,\n            // scroll all the way to the left and then resize a column\n            this.horizontallyScrollHeaderCenterAndFloatingCenter();\n        }\n    };\n    GridBodyScrollFeature.prototype.horizontallyScrollHeaderCenterAndFloatingCenter = function (scrollLeft) {\n        // when doing RTL, this method gets called once prematurely\n        var notYetInitialised = this.centerRowContainerCtrl == null;\n        if (notYetInitialised) {\n            return;\n        }\n        if (scrollLeft === undefined) {\n            scrollLeft = this.centerRowContainerCtrl.getCenterViewportScrollLeft();\n        }\n        var offset = this.enableRtl ? scrollLeft : -scrollLeft;\n        var topCenterContainer = this.ctrlsService.getTopCenterRowContainerCtrl();\n        var bottomCenterContainer = this.ctrlsService.getBottomCenterRowContainerCtrl();\n        var fakeHScroll = this.ctrlsService.getFakeHScrollCtrl();\n        var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n        centerHeaderContainer.setHorizontalScroll(offset);\n        bottomCenterContainer.setContainerTranslateX(offset);\n        topCenterContainer.setContainerTranslateX(offset);\n        var partner = this.lastHorizontalScrollElement === this.centerRowContainerCtrl.getViewportElement() ?\n            fakeHScroll.getViewport() : this.centerRowContainerCtrl.getViewportElement();\n        setScrollLeft(partner, Math.abs(scrollLeft), this.enableRtl);\n    };\n    GridBodyScrollFeature.prototype.isControllingScroll = function (eDiv) {\n        if (!this.lastHorizontalScrollElement) {\n            this.lastHorizontalScrollElement = eDiv;\n            return true;\n        }\n        return eDiv === this.lastHorizontalScrollElement;\n    };\n    GridBodyScrollFeature.prototype.onFakeHorizontalScroll = function () {\n        var fakeHScrollViewport = this.ctrlsService.getFakeHScrollCtrl().getViewport();\n        if (!this.isControllingScroll(fakeHScrollViewport)) {\n            return;\n        }\n        this.onBodyHorizontalScroll(fakeHScrollViewport);\n    };\n    GridBodyScrollFeature.prototype.onCenterViewportScroll = function () {\n        var centerContainerViewport = this.centerRowContainerCtrl.getViewportElement();\n        if (!this.isControllingScroll(centerContainerViewport)) {\n            return;\n        }\n        this.onBodyHorizontalScroll(centerContainerViewport);\n    };\n    GridBodyScrollFeature.prototype.onBodyHorizontalScroll = function (eSource) {\n        var centerContainerViewport = this.centerRowContainerCtrl.getViewportElement();\n        var scrollLeft = centerContainerViewport.scrollLeft;\n        if (this.shouldBlockScrollUpdate('horizontal', scrollLeft, true)) {\n            return;\n        }\n        // we do Math.round() rather than Math.floor(), to mirror how scroll values are applied.\n        // eg if a scale is applied (ie user has zoomed the browser), then applying scroll=200\n        // could result in 199.88, which then floor(199.88) = 199, however round(199.88) = 200.\n        // initially Math.floor() was used, however this caused (almost) infinite loop with aligned grids,\n        // as the scroll would move 1px at at time bouncing from one grid to the next (eg one grid would cause\n        // scroll to 200px, the next to 199px, then the first back to 198px and so on).\n        this.doHorizontalScroll(Math.round(getScrollLeft(eSource, this.enableRtl)));\n        this.resetLastHorizontalScrollElementDebounced();\n    };\n    GridBodyScrollFeature.prototype.onVerticalScroll = function () {\n        var scrollTop = this.eBodyViewport.scrollTop;\n        if (this.shouldBlockScrollUpdate('vertical', scrollTop, true)) {\n            return;\n        }\n        this.animationFrameService.setScrollTop(scrollTop);\n        this.nextScrollTop = scrollTop;\n        if (this.gridOptionsWrapper.isSuppressAnimationFrame()) {\n            this.scrollTop = this.nextScrollTop;\n            this.redrawRowsAfterScroll();\n        }\n        else {\n            this.animationFrameService.schedule();\n        }\n    };\n    GridBodyScrollFeature.prototype.resetLastHorizontalScrollElement = function () {\n        this.lastHorizontalScrollElement = null;\n    };\n    GridBodyScrollFeature.prototype.doHorizontalScroll = function (scrollLeft) {\n        var fakeHScrollViewport = this.ctrlsService.getFakeHScrollCtrl().getViewport();\n        var fakeScrollLeft = getScrollLeft(fakeHScrollViewport, this.enableRtl);\n        if (this.scrollLeft === scrollLeft && scrollLeft === fakeScrollLeft) {\n            return;\n        }\n        this.scrollLeft = scrollLeft;\n        this.fireScrollEvent('horizontal');\n        this.horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft);\n        this.onHorizontalViewportChanged();\n    };\n    GridBodyScrollFeature.prototype.fireScrollEvent = function (direction) {\n        var _this = this;\n        var bodyScrollEvent = {\n            type: Events.EVENT_BODY_SCROLL,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            direction: direction,\n            left: this.scrollLeft,\n            top: this.scrollTop\n        };\n        this.eventService.dispatchEvent(bodyScrollEvent);\n        window.clearTimeout(this.scrollTimer);\n        this.scrollTimer = undefined;\n        this.scrollTimer = window.setTimeout(function () {\n            var bodyScrollEndEvent = Object.assign({}, bodyScrollEvent, {\n                type: Events.EVENT_BODY_SCROLL_END\n            });\n            _this.eventService.dispatchEvent(bodyScrollEndEvent);\n        }, 100);\n    };\n    GridBodyScrollFeature.prototype.shouldBlockScrollUpdate = function (direction, scrollTo, touchOnly) {\n        // touch devices allow elastic scroll - which temporally scrolls the panel outside of the viewport\n        // (eg user uses touch to go to the left of the grid, but drags past the left, the rows will actually\n        // scroll past the left until the user releases the mouse). when this happens, we want ignore the scroll,\n        // as otherwise it was causing the rows and header to flicker.\n        if (touchOnly === void 0) { touchOnly = false; }\n        // sometimes when scrolling, we got values that extended the maximum scroll allowed. we used to\n        // ignore these scrolls. problem is the max scroll position could be skipped (eg the previous scroll event\n        // could be 10px before the max position, and then current scroll event could be 20px after the max position).\n        // if we just ignored the last event, we would be setting the scroll to 10px before the max position, when in\n        // actual fact the user has exceeded the max scroll and thus scroll should be set to the max.\n        if (touchOnly && !isIOSUserAgent()) {\n            return false;\n        }\n        if (direction === 'vertical') {\n            var clientHeight = getInnerHeight(this.eBodyViewport);\n            var scrollHeight = this.eBodyViewport.scrollHeight;\n            if (scrollTo < 0 || (scrollTo + clientHeight > scrollHeight)) {\n                return true;\n            }\n        }\n        if (direction === 'horizontal') {\n            var clientWidth = this.centerRowContainerCtrl.getCenterWidth();\n            var scrollWidth = this.centerRowContainerCtrl.getViewportElement().scrollWidth;\n            if (this.enableRtl && isRtlNegativeScroll()) {\n                if (scrollTo > 0) {\n                    return true;\n                }\n            }\n            else if (scrollTo < 0) {\n                return true;\n            }\n            if (Math.abs(scrollTo) + clientWidth > scrollWidth) {\n                return true;\n            }\n        }\n        return false;\n    };\n    GridBodyScrollFeature.prototype.redrawRowsAfterScroll = function () {\n        this.fireScrollEvent('vertical');\n    };\n    GridBodyScrollFeature.prototype.onHorizontalViewportChanged = function () {\n        this.centerRowContainerCtrl.onHorizontalViewportChanged();\n    };\n    // this is to cater for AG-3274, where grid is removed from the dom and then inserted back in again.\n    // (which happens with some implementations of tabbing). this can result in horizontal scroll getting\n    // reset back to the left, however no scroll event is fired. so we need to get header to also scroll\n    // back to the left to be kept in sync.\n    // adding and removing the grid from the DOM both resets the scroll position and\n    // triggers a resize event, so notify listeners if the scroll position has changed\n    GridBodyScrollFeature.prototype.checkScrollLeft = function () {\n        if (this.scrollLeft !== this.centerRowContainerCtrl.getCenterViewportScrollLeft()) {\n            this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement());\n        }\n    };\n    GridBodyScrollFeature.prototype.executeAnimationFrameScroll = function () {\n        var frameNeeded = this.scrollTop != this.nextScrollTop;\n        if (frameNeeded) {\n            this.scrollTop = this.nextScrollTop;\n            this.redrawRowsAfterScroll();\n        }\n        return frameNeeded;\n    };\n    // called by scrollHorizontally method and alignedGridsService\n    GridBodyScrollFeature.prototype.setHorizontalScrollPosition = function (hScrollPosition) {\n        var minScrollLeft = 0;\n        var maxScrollLeft = this.centerRowContainerCtrl.getViewportElement().scrollWidth - this.centerRowContainerCtrl.getCenterWidth();\n        if (this.shouldBlockScrollUpdate('horizontal', hScrollPosition)) {\n            if (this.enableRtl && isRtlNegativeScroll()) {\n                hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;\n            }\n            else {\n                hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);\n            }\n        }\n        setScrollLeft(this.centerRowContainerCtrl.getViewportElement(), Math.abs(hScrollPosition), this.enableRtl);\n        // we need to manually do the event handling (rather than wait for the event)\n        // for the alignedGridsService, as if we don't, the aligned grid service gets\n        // notified async, and then it's 'consuming' flag doesn't get used right, and\n        // we can end up with an infinite loop\n        this.doHorizontalScroll(hScrollPosition);\n    };\n    GridBodyScrollFeature.prototype.setVerticalScrollPosition = function (vScrollPosition) {\n        this.eBodyViewport.scrollTop = vScrollPosition;\n    };\n    GridBodyScrollFeature.prototype.getVScrollPosition = function () {\n        var result = {\n            top: this.eBodyViewport.scrollTop,\n            bottom: this.eBodyViewport.scrollTop + this.eBodyViewport.offsetHeight\n        };\n        return result;\n    };\n    GridBodyScrollFeature.prototype.getHScrollPosition = function () {\n        return this.centerRowContainerCtrl.getHScrollPosition();\n    };\n    GridBodyScrollFeature.prototype.isHorizontalScrollShowing = function () {\n        return this.centerRowContainerCtrl.isHorizontalScrollShowing();\n    };\n    // called by the headerRootComp and moveColumnController\n    GridBodyScrollFeature.prototype.scrollHorizontally = function (pixels) {\n        var oldScrollPosition = this.centerRowContainerCtrl.getViewportElement().scrollLeft;\n        this.setHorizontalScrollPosition(oldScrollPosition + pixels);\n        return this.centerRowContainerCtrl.getViewportElement().scrollLeft - oldScrollPosition;\n    };\n    // gets called by rowRenderer when new data loaded, as it will want to scroll to the top\n    GridBodyScrollFeature.prototype.scrollToTop = function () {\n        this.eBodyViewport.scrollTop = 0;\n    };\n    // Valid values for position are bottom, middle and top\n    GridBodyScrollFeature.prototype.ensureNodeVisible = function (comparator, position) {\n        if (position === void 0) { position = null; }\n        // look for the node index we want to display\n        var rowCount = this.rowModel.getRowCount();\n        var comparatorIsAFunction = typeof comparator === 'function';\n        var indexToSelect = -1;\n        // go through all the nodes, find the one we want to show\n        for (var i = 0; i < rowCount; i++) {\n            var node = this.rowModel.getRow(i);\n            if (comparatorIsAFunction) {\n                if (comparator(node)) {\n                    indexToSelect = i;\n                    break;\n                }\n            }\n            else {\n                // check object equality against node and data\n                if (comparator === node || comparator === node.data) {\n                    indexToSelect = i;\n                    break;\n                }\n            }\n        }\n        if (indexToSelect >= 0) {\n            this.ensureIndexVisible(indexToSelect, position);\n        }\n    };\n    // Valid values for position are bottom, middle and top\n    // position should be {'top','middle','bottom', or undefined/null}.\n    // if undefined/null, then the grid will to the minimal amount of scrolling,\n    // eg if grid needs to scroll up, it scrolls until row is on top,\n    //    if grid needs to scroll down, it scrolls until row is on bottom,\n    //    if row is already in view, grid does not scroll\n    GridBodyScrollFeature.prototype.ensureIndexVisible = function (index, position) {\n        // if for print or auto height, everything is always visible\n        if (this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT) {\n            return;\n        }\n        var rowCount = this.paginationProxy.getRowCount();\n        if (typeof index !== 'number' || index < 0 || index >= rowCount) {\n            console.warn('invalid row index for ensureIndexVisible: ' + index);\n            return;\n        }\n        var isPaging = this.gridOptionsWrapper.isPagination();\n        var paginationPanelEnabled = isPaging && !this.gridOptionsWrapper.isSuppressPaginationPanel();\n        if (!paginationPanelEnabled) {\n            this.paginationProxy.goToPageWithIndex(index);\n        }\n        var rowNode = this.paginationProxy.getRow(index);\n        var rowGotShiftedDuringOperation;\n        do {\n            var startingRowTop = rowNode.rowTop;\n            var startingRowHeight = rowNode.rowHeight;\n            var paginationOffset = this.paginationProxy.getPixelOffset();\n            var rowTopPixel = rowNode.rowTop - paginationOffset;\n            var rowBottomPixel = rowTopPixel + rowNode.rowHeight;\n            var scrollPosition = this.getVScrollPosition();\n            var heightOffset = this.heightScaler.getDivStretchOffset();\n            var vScrollTop = scrollPosition.top + heightOffset;\n            var vScrollBottom = scrollPosition.bottom + heightOffset;\n            var viewportHeight = vScrollBottom - vScrollTop;\n            // work out the pixels for top, middle and bottom up front,\n            // make the if/else below easier to read\n            var pxTop = this.heightScaler.getScrollPositionForPixel(rowTopPixel);\n            var pxBottom = this.heightScaler.getScrollPositionForPixel(rowBottomPixel - viewportHeight);\n            // make sure if middle, the row is not outside the top of the grid\n            var pxMiddle = Math.min((pxTop + pxBottom) / 2, rowTopPixel);\n            var rowBelowViewport = vScrollTop > rowTopPixel;\n            var rowAboveViewport = vScrollBottom < rowBottomPixel;\n            var newScrollPosition = null;\n            if (position === 'top') {\n                newScrollPosition = pxTop;\n            }\n            else if (position === 'bottom') {\n                newScrollPosition = pxBottom;\n            }\n            else if (position === 'middle') {\n                newScrollPosition = pxMiddle;\n            }\n            else if (rowBelowViewport) {\n                // if row is before, scroll up with row at top\n                newScrollPosition = pxTop;\n            }\n            else if (rowAboveViewport) {\n                // if row is below, scroll down with row at bottom\n                newScrollPosition = pxBottom;\n            }\n            if (newScrollPosition !== null) {\n                this.eBodyViewport.scrollTop = newScrollPosition;\n                this.rowRenderer.redrawAfterScroll();\n            }\n            // the row can get shifted if during the rendering (during rowRenderer.redrawAfterScroll()),\n            // the height of a row changes due to lazy calculation of row heights when using\n            // colDef.autoHeight or gridOptions.getRowHeight.\n            // if row was shifted, then the position we scrolled to is incorrect.\n            rowGotShiftedDuringOperation = (startingRowTop !== rowNode.rowTop)\n                || (startingRowHeight !== rowNode.rowHeight);\n        } while (rowGotShiftedDuringOperation);\n        // so when we return back to user, the cells have rendered\n        this.animationFrameService.flushAllFrames();\n    };\n    GridBodyScrollFeature.prototype.ensureColumnVisible = function (key, position) {\n        if (position === void 0) { position = 'auto'; }\n        var column = this.columnModel.getGridColumn(key);\n        if (!column) {\n            return;\n        }\n        // calling ensureColumnVisible on a pinned column doesn't make sense\n        if (column.isPinned()) {\n            return;\n        }\n        // defensive\n        if (!this.columnModel.isColumnDisplayed(column)) {\n            return;\n        }\n        var newHorizontalScroll = this.getPositionedHorizontalScroll(column, position);\n        if (newHorizontalScroll !== null) {\n            this.centerRowContainerCtrl.setCenterViewportScrollLeft(newHorizontalScroll);\n        }\n        // this will happen anyway, as the move will cause a 'scroll' event on the body, however\n        // it is possible that the ensureColumnVisible method is called from within AG Grid and\n        // the caller will need to have the columns rendered to continue, which will be before\n        // the event has been worked on (which is the case for cell navigation).\n        this.centerRowContainerCtrl.onHorizontalViewportChanged();\n        // so when we return back to user, the cells have rendered\n        this.animationFrameService.flushAllFrames();\n    };\n    GridBodyScrollFeature.prototype.getPositionedHorizontalScroll = function (column, position) {\n        var _a = this.isColumnOutsideViewport(column), columnBeforeStart = _a.columnBeforeStart, columnAfterEnd = _a.columnAfterEnd;\n        var viewportTooSmallForColumn = this.centerRowContainerCtrl.getCenterWidth() < column.getActualWidth();\n        var viewportWidth = this.centerRowContainerCtrl.getCenterWidth();\n        var isRtl = this.enableRtl;\n        var alignColToStart = (isRtl ? columnBeforeStart : columnAfterEnd) || viewportTooSmallForColumn;\n        var alignColToEnd = isRtl ? columnAfterEnd : columnBeforeStart;\n        if (position !== 'auto') {\n            alignColToStart = position === 'start';\n            alignColToEnd = position === 'end';\n        }\n        var isMiddle = position === 'middle';\n        if (alignColToStart || alignColToEnd || isMiddle) {\n            var _b = this.getColumnBounds(column), colLeft = _b.colLeft, colMiddle = _b.colMiddle, colRight = _b.colRight;\n            if (isMiddle) {\n                return colMiddle - viewportWidth / 2;\n            }\n            if (alignColToStart) {\n                return isRtl ? colRight : colLeft;\n            }\n            return isRtl ? (colLeft - viewportWidth) : (colRight - viewportWidth);\n        }\n        return null;\n    };\n    GridBodyScrollFeature.prototype.isColumnOutsideViewport = function (column) {\n        var _a = this.getViewportBounds(), viewportStart = _a.start, viewportEnd = _a.end;\n        var _b = this.getColumnBounds(column), colLeft = _b.colLeft, colRight = _b.colRight;\n        var isRtl = this.enableRtl;\n        var columnBeforeStart = isRtl ? (viewportStart > colRight) : (viewportEnd < colRight);\n        var columnAfterEnd = isRtl ? (viewportEnd < colLeft) : (viewportStart > colLeft);\n        return { columnBeforeStart: columnBeforeStart, columnAfterEnd: columnAfterEnd };\n    };\n    GridBodyScrollFeature.prototype.getColumnBounds = function (column) {\n        var isRtl = this.enableRtl;\n        var bodyWidth = this.columnModel.getBodyContainerWidth();\n        var colWidth = column.getActualWidth();\n        var colLeft = column.getLeft();\n        var multiplier = isRtl ? -1 : 1;\n        var colLeftPixel = isRtl ? (bodyWidth - colLeft) : colLeft;\n        var colRightPixel = colLeftPixel + colWidth * multiplier;\n        var colMidPixel = colLeftPixel + colWidth / 2 * multiplier;\n        return { colLeft: colLeftPixel, colMiddle: colMidPixel, colRight: colRightPixel };\n    };\n    GridBodyScrollFeature.prototype.getViewportBounds = function () {\n        var viewportWidth = this.centerRowContainerCtrl.getCenterWidth();\n        var scrollPosition = this.centerRowContainerCtrl.getCenterViewportScrollLeft();\n        var viewportStartPixel = scrollPosition;\n        var viewportEndPixel = viewportWidth + scrollPosition;\n        return { start: viewportStartPixel, end: viewportEndPixel, width: viewportWidth };\n    };\n    __decorate$K([\n        Autowired('ctrlsService')\n    ], GridBodyScrollFeature.prototype, \"ctrlsService\", void 0);\n    __decorate$K([\n        Autowired('animationFrameService')\n    ], GridBodyScrollFeature.prototype, \"animationFrameService\", void 0);\n    __decorate$K([\n        Autowired('columnApi')\n    ], GridBodyScrollFeature.prototype, \"columnApi\", void 0);\n    __decorate$K([\n        Autowired('gridApi')\n    ], GridBodyScrollFeature.prototype, \"gridApi\", void 0);\n    __decorate$K([\n        Autowired('paginationProxy')\n    ], GridBodyScrollFeature.prototype, \"paginationProxy\", void 0);\n    __decorate$K([\n        Autowired('rowModel')\n    ], GridBodyScrollFeature.prototype, \"rowModel\", void 0);\n    __decorate$K([\n        Autowired('rowContainerHeightService')\n    ], GridBodyScrollFeature.prototype, \"heightScaler\", void 0);\n    __decorate$K([\n        Autowired('rowRenderer')\n    ], GridBodyScrollFeature.prototype, \"rowRenderer\", void 0);\n    __decorate$K([\n        Autowired('columnModel')\n    ], GridBodyScrollFeature.prototype, \"columnModel\", void 0);\n    __decorate$K([\n        PostConstruct\n    ], GridBodyScrollFeature.prototype, \"postConstruct\", null);\n    return GridBodyScrollFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar AutoScrollService = /** @class */ (function () {\n    function AutoScrollService(params) {\n        this.tickingInterval = null;\n        this.onScrollCallback = null;\n        this.scrollContainer = params.scrollContainer;\n        this.scrollHorizontally = params.scrollAxis.indexOf('x') !== -1;\n        this.scrollVertically = params.scrollAxis.indexOf('y') !== -1;\n        this.scrollByTick = params.scrollByTick != null ? params.scrollByTick : 20;\n        if (params.onScrollCallback) {\n            this.onScrollCallback = params.onScrollCallback;\n        }\n        if (this.scrollVertically) {\n            this.getVerticalPosition = params.getVerticalPosition;\n            this.setVerticalPosition = params.setVerticalPosition;\n        }\n        if (this.scrollHorizontally) {\n            this.getHorizontalPosition = params.getHorizontalPosition;\n            this.setHorizontalPosition = params.setHorizontalPosition;\n        }\n        this.shouldSkipVerticalScroll = params.shouldSkipVerticalScroll || (function () { return false; });\n        this.shouldSkipHorizontalScroll = params.shouldSkipHorizontalScroll || (function () { return false; });\n    }\n    AutoScrollService.prototype.check = function (mouseEvent, forceSkipVerticalScroll) {\n        if (forceSkipVerticalScroll === void 0) { forceSkipVerticalScroll = false; }\n        var skipVerticalScroll = forceSkipVerticalScroll || this.shouldSkipVerticalScroll();\n        if (skipVerticalScroll && this.shouldSkipHorizontalScroll()) {\n            return;\n        }\n        var rect = this.scrollContainer.getBoundingClientRect();\n        var scrollTick = this.scrollByTick;\n        this.tickLeft = mouseEvent.clientX < (rect.left + scrollTick);\n        this.tickRight = mouseEvent.clientX > (rect.right - scrollTick);\n        this.tickUp = mouseEvent.clientY < (rect.top + scrollTick) && !skipVerticalScroll;\n        this.tickDown = mouseEvent.clientY > (rect.bottom - scrollTick) && !skipVerticalScroll;\n        if (this.tickLeft || this.tickRight || this.tickUp || this.tickDown) {\n            this.ensureTickingStarted();\n        }\n        else {\n            this.ensureCleared();\n        }\n    };\n    AutoScrollService.prototype.ensureTickingStarted = function () {\n        if (this.tickingInterval === null) {\n            this.tickingInterval = window.setInterval(this.doTick.bind(this), 100);\n            this.tickCount = 0;\n        }\n    };\n    AutoScrollService.prototype.doTick = function () {\n        this.tickCount++;\n        var tickAmount;\n        tickAmount = this.tickCount > 20 ? 200 : (this.tickCount > 10 ? 80 : 40);\n        if (this.scrollVertically) {\n            var vScrollPosition = this.getVerticalPosition();\n            if (this.tickUp) {\n                this.setVerticalPosition(vScrollPosition - tickAmount);\n            }\n            if (this.tickDown) {\n                this.setVerticalPosition(vScrollPosition + tickAmount);\n            }\n        }\n        if (this.scrollHorizontally) {\n            var hScrollPosition = this.getHorizontalPosition();\n            if (this.tickLeft) {\n                this.setHorizontalPosition(hScrollPosition - tickAmount);\n            }\n            if (this.tickRight) {\n                this.setHorizontalPosition(hScrollPosition + tickAmount);\n            }\n        }\n        if (this.onScrollCallback) {\n            this.onScrollCallback();\n        }\n    };\n    AutoScrollService.prototype.ensureCleared = function () {\n        if (this.tickingInterval) {\n            window.clearInterval(this.tickingInterval);\n            this.tickingInterval = null;\n        }\n    };\n    return AutoScrollService;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$S = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$a = (undefined && undefined.__assign) || function () {\n    __assign$a = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$a.apply(this, arguments);\n};\nvar __decorate$L = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$7 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$5 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$7(arguments[i]));\n    return ar;\n};\nvar RowDragFeature = /** @class */ (function (_super) {\n    __extends$S(RowDragFeature, _super);\n    function RowDragFeature(eContainer) {\n        var _this = _super.call(this) || this;\n        _this.isMultiRowDrag = false;\n        _this.isGridSorted = false;\n        _this.isGridFiltered = false;\n        _this.isRowGroupActive = false;\n        _this.eContainer = eContainer;\n        return _this;\n    }\n    RowDragFeature.prototype.postConstruct = function () {\n        var _this = this;\n        if (this.gridOptionsWrapper.isRowModelDefault()) {\n            this.clientSideRowModel = this.rowModel;\n        }\n        var refreshStatus = function () {\n            _this.onSortChanged();\n            _this.onFilterChanged();\n            _this.onRowGroupChanged();\n        };\n        this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onRowGroupChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, function () {\n            refreshStatus();\n        });\n        refreshStatus();\n        this.ctrlsService.whenReady(function () {\n            var gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n            _this.autoScrollService = new AutoScrollService({\n                scrollContainer: gridBodyCon.getBodyViewportElement(),\n                scrollAxis: 'y',\n                getVerticalPosition: function () { return gridBodyCon.getScrollFeature().getVScrollPosition().top; },\n                setVerticalPosition: function (position) { return gridBodyCon.getScrollFeature().setVerticalScrollPosition(position); },\n                onScrollCallback: function () { _this.onDragging(_this.lastDraggingEvent); }\n            });\n        });\n    };\n    RowDragFeature.prototype.onSortChanged = function () {\n        this.isGridSorted = this.sortController.isSortActive();\n    };\n    RowDragFeature.prototype.onFilterChanged = function () {\n        this.isGridFiltered = this.filterManager.isAnyFilterPresent();\n    };\n    RowDragFeature.prototype.onRowGroupChanged = function () {\n        var rowGroups = this.columnModel.getRowGroupColumns();\n        this.isRowGroupActive = !missingOrEmpty(rowGroups);\n    };\n    RowDragFeature.prototype.getContainer = function () {\n        return this.eContainer;\n    };\n    RowDragFeature.prototype.isInterestedIn = function (type) {\n        return type === exports.DragSourceType.RowDrag;\n    };\n    RowDragFeature.prototype.getIconName = function () {\n        var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n        if (managedDrag && this.shouldPreventRowMove()) {\n            return DragAndDropService.ICON_NOT_ALLOWED;\n        }\n        return DragAndDropService.ICON_MOVE;\n    };\n    RowDragFeature.prototype.shouldPreventRowMove = function () {\n        return this.isGridSorted || this.isGridFiltered || this.isRowGroupActive;\n    };\n    RowDragFeature.prototype.getRowNodes = function (draggingEvent) {\n        var _this = this;\n        if (!this.isFromThisGrid(draggingEvent)) {\n            return draggingEvent.dragItem.rowNodes || [];\n        }\n        var isRowDragMultiRow = this.gridOptionsWrapper.isRowDragMultiRow();\n        var selectedNodes = __spread$5(this.selectionService.getSelectedNodes()).sort(function (a, b) { return _this.getRowIndexNumber(a) - _this.getRowIndexNumber(b); });\n        var currentNode = draggingEvent.dragItem.rowNode;\n        if (isRowDragMultiRow && selectedNodes.indexOf(currentNode) !== -1) {\n            this.isMultiRowDrag = true;\n            return selectedNodes;\n        }\n        this.isMultiRowDrag = false;\n        return [currentNode];\n    };\n    RowDragFeature.prototype.onDragEnter = function (draggingEvent) {\n        // builds a lits of all rows being dragged before firing events\n        draggingEvent.dragItem.rowNodes = this.getRowNodes(draggingEvent);\n        // when entering, we fire the enter event, then in onEnterOrDragging,\n        // we also fire the move event. so we get both events when entering.\n        this.dispatchGridEvent(Events.EVENT_ROW_DRAG_ENTER, draggingEvent);\n        this.getRowNodes(draggingEvent).forEach(function (rowNode) {\n            rowNode.setDragging(true);\n        });\n        this.onEnterOrDragging(draggingEvent);\n    };\n    RowDragFeature.prototype.onDragging = function (draggingEvent) {\n        this.onEnterOrDragging(draggingEvent);\n    };\n    RowDragFeature.prototype.isFromThisGrid = function (draggingEvent) {\n        var dragSourceDomDataKey = draggingEvent.dragSource.dragSourceDomDataKey;\n        return dragSourceDomDataKey === this.gridOptionsWrapper.getDomDataKey();\n    };\n    RowDragFeature.prototype.isDropZoneWithinThisGrid = function (draggingEvent) {\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var gridGui = gridBodyCon.getGui();\n        var dropZoneTarget = draggingEvent.dropZoneTarget;\n        return !gridGui.contains(dropZoneTarget);\n    };\n    RowDragFeature.prototype.onEnterOrDragging = function (draggingEvent) {\n        // this event is fired for enter and move\n        this.dispatchGridEvent(Events.EVENT_ROW_DRAG_MOVE, draggingEvent);\n        this.lastDraggingEvent = draggingEvent;\n        var pixel = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n        var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n        if (managedDrag) {\n            this.doManagedDrag(draggingEvent, pixel);\n        }\n        this.autoScrollService.check(draggingEvent.event);\n    };\n    RowDragFeature.prototype.doManagedDrag = function (draggingEvent, pixel) {\n        var isFromThisGrid = this.isFromThisGrid(draggingEvent);\n        var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n        var rowNodes = draggingEvent.dragItem.rowNodes;\n        if (managedDrag && this.shouldPreventRowMove()) {\n            return;\n        }\n        if (this.gridOptionsWrapper.isSuppressMoveWhenRowDragging() || !isFromThisGrid) {\n            if (!this.isDropZoneWithinThisGrid(draggingEvent)) {\n                this.clientSideRowModel.highlightRowAtPixel(rowNodes[0], pixel);\n            }\n        }\n        else {\n            this.moveRows(rowNodes, pixel);\n        }\n    };\n    RowDragFeature.prototype.getRowIndexNumber = function (rowNode) {\n        return parseInt(last(rowNode.getRowIndexString().split('-')), 10);\n    };\n    RowDragFeature.prototype.moveRowAndClearHighlight = function (draggingEvent) {\n        var _this = this;\n        var lastHighlightedRowNode = this.clientSideRowModel.getLastHighlightedRowNode();\n        var isBelow = lastHighlightedRowNode && lastHighlightedRowNode.highlighted === exports.RowHighlightPosition.Below;\n        var pixel = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n        var rowNodes = draggingEvent.dragItem.rowNodes;\n        var increment = isBelow ? 1 : 0;\n        if (this.isFromThisGrid(draggingEvent)) {\n            rowNodes.forEach(function (rowNode) {\n                if (rowNode.rowTop < pixel) {\n                    increment -= 1;\n                }\n            });\n            this.moveRows(rowNodes, pixel, increment);\n        }\n        else {\n            var getRowIdFunc_1 = this.gridOptionsWrapper.getRowIdFunc();\n            var addIndex = this.clientSideRowModel.getRowIndexAtPixel(pixel) + 1;\n            if (this.clientSideRowModel.getHighlightPosition(pixel) === exports.RowHighlightPosition.Above) {\n                addIndex--;\n            }\n            this.clientSideRowModel.updateRowData({\n                add: rowNodes\n                    .map(function (node) { return node.data; })\n                    .filter(function (data) { return !_this.clientSideRowModel.getRowNode(getRowIdFunc_1 ? getRowIdFunc_1({ data: data, level: 0 }) : data.id); }),\n                addIndex: addIndex\n            });\n        }\n        this.clearRowHighlight();\n    };\n    RowDragFeature.prototype.clearRowHighlight = function () {\n        this.clientSideRowModel.highlightRowAtPixel(null);\n    };\n    RowDragFeature.prototype.moveRows = function (rowNodes, pixel, increment) {\n        if (increment === void 0) { increment = 0; }\n        var rowWasMoved = this.clientSideRowModel.ensureRowsAtPixel(rowNodes, pixel, increment);\n        if (rowWasMoved) {\n            this.focusService.clearFocusedCell();\n            if (this.rangeService) {\n                this.rangeService.removeAllCellRanges();\n            }\n        }\n    };\n    RowDragFeature.prototype.addRowDropZone = function (params) {\n        var _this = this;\n        if (!params.getContainer()) {\n            doOnce(function () { return console.warn('AG Grid: addRowDropZone - A container target needs to be provided'); }, 'add-drop-zone-empty-target');\n            return;\n        }\n        if (this.dragAndDropService.findExternalZone(params)) {\n            console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');\n            return;\n        }\n        var processedParams = {\n            getContainer: params.getContainer\n        };\n        if (params.fromGrid) {\n            params.fromGrid = undefined;\n            processedParams = params;\n        }\n        else {\n            if (params.onDragEnter) {\n                processedParams.onDragEnter = function (e) {\n                    params.onDragEnter(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_ENTER, e));\n                };\n            }\n            if (params.onDragLeave) {\n                processedParams.onDragLeave = function (e) {\n                    params.onDragLeave(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_LEAVE, e));\n                };\n            }\n            if (params.onDragging) {\n                processedParams.onDragging = function (e) {\n                    params.onDragging(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_MOVE, e));\n                };\n            }\n            if (params.onDragStop) {\n                processedParams.onDragStop = function (e) {\n                    params.onDragStop(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_END, e));\n                };\n            }\n        }\n        this.dragAndDropService.addDropTarget(__assign$a({ isInterestedIn: function (type) { return type === exports.DragSourceType.RowDrag; }, getIconName: function () { return DragAndDropService.ICON_MOVE; }, external: true }, processedParams));\n    };\n    RowDragFeature.prototype.getRowDropZone = function (events) {\n        var _this = this;\n        var getContainer = this.getContainer.bind(this);\n        var onDragEnter = this.onDragEnter.bind(this);\n        var onDragLeave = this.onDragLeave.bind(this);\n        var onDragging = this.onDragging.bind(this);\n        var onDragStop = this.onDragStop.bind(this);\n        if (!events) {\n            return { getContainer: getContainer, onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDragging: onDragging, onDragStop: onDragStop, /* @private */ fromGrid: true };\n        }\n        return {\n            getContainer: getContainer,\n            onDragEnter: events.onDragEnter\n                ? (function (e) {\n                    onDragEnter(e);\n                    events.onDragEnter(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_ENTER, e));\n                })\n                : onDragEnter,\n            onDragLeave: events.onDragLeave\n                ? (function (e) {\n                    onDragLeave(e);\n                    events.onDragLeave(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_LEAVE, e));\n                })\n                : onDragLeave,\n            onDragging: events.onDragging\n                ? (function (e) {\n                    onDragging(e);\n                    events.onDragging(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_MOVE, e));\n                })\n                : onDragging,\n            onDragStop: events.onDragStop\n                ? (function (e) {\n                    onDragStop(e);\n                    events.onDragStop(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_END, e));\n                })\n                : onDragStop,\n            fromGrid: true /* @private */\n        };\n    };\n    RowDragFeature.prototype.draggingToRowDragEvent = function (type, draggingEvent) {\n        var yNormalised = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n        var mouseIsPastLastRow = yNormalised > this.paginationProxy.getCurrentPageHeight();\n        var overIndex = -1;\n        var overNode;\n        if (!mouseIsPastLastRow) {\n            overIndex = this.rowModel.getRowIndexAtPixel(yNormalised);\n            overNode = this.rowModel.getRow(overIndex);\n        }\n        var vDirectionString;\n        switch (draggingEvent.vDirection) {\n            case exports.VerticalDirection.Down:\n                vDirectionString = 'down';\n                break;\n            case exports.VerticalDirection.Up:\n                vDirectionString = 'up';\n                break;\n            default:\n                vDirectionString = null;\n                break;\n        }\n        var event = {\n            type: type,\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            event: draggingEvent.event,\n            node: draggingEvent.dragItem.rowNode,\n            nodes: draggingEvent.dragItem.rowNodes,\n            overIndex: overIndex,\n            overNode: overNode,\n            y: yNormalised,\n            vDirection: vDirectionString\n        };\n        return event;\n    };\n    RowDragFeature.prototype.dispatchGridEvent = function (type, draggingEvent) {\n        var event = this.draggingToRowDragEvent(type, draggingEvent);\n        this.eventService.dispatchEvent(event);\n    };\n    RowDragFeature.prototype.onDragLeave = function (draggingEvent) {\n        this.dispatchGridEvent(Events.EVENT_ROW_DRAG_LEAVE, draggingEvent);\n        this.stopDragging(draggingEvent);\n        if (this.gridOptionsWrapper.isRowDragManaged()) {\n            this.clearRowHighlight();\n        }\n        if (this.isFromThisGrid(draggingEvent)) {\n            this.isMultiRowDrag = false;\n        }\n    };\n    RowDragFeature.prototype.onDragStop = function (draggingEvent) {\n        this.dispatchGridEvent(Events.EVENT_ROW_DRAG_END, draggingEvent);\n        this.stopDragging(draggingEvent);\n        if (this.gridOptionsWrapper.isRowDragManaged() &&\n            (this.gridOptionsWrapper.isSuppressMoveWhenRowDragging() || !this.isFromThisGrid(draggingEvent)) &&\n            !this.isDropZoneWithinThisGrid(draggingEvent)) {\n            this.moveRowAndClearHighlight(draggingEvent);\n        }\n    };\n    RowDragFeature.prototype.stopDragging = function (draggingEvent) {\n        this.autoScrollService.ensureCleared();\n        this.getRowNodes(draggingEvent).forEach(function (rowNode) {\n            rowNode.setDragging(false);\n        });\n    };\n    __decorate$L([\n        Autowired('dragAndDropService')\n    ], RowDragFeature.prototype, \"dragAndDropService\", void 0);\n    __decorate$L([\n        Autowired('rowModel')\n    ], RowDragFeature.prototype, \"rowModel\", void 0);\n    __decorate$L([\n        Autowired('paginationProxy')\n    ], RowDragFeature.prototype, \"paginationProxy\", void 0);\n    __decorate$L([\n        Autowired('columnModel')\n    ], RowDragFeature.prototype, \"columnModel\", void 0);\n    __decorate$L([\n        Autowired('focusService')\n    ], RowDragFeature.prototype, \"focusService\", void 0);\n    __decorate$L([\n        Autowired('sortController')\n    ], RowDragFeature.prototype, \"sortController\", void 0);\n    __decorate$L([\n        Autowired('filterManager')\n    ], RowDragFeature.prototype, \"filterManager\", void 0);\n    __decorate$L([\n        Autowired('selectionService')\n    ], RowDragFeature.prototype, \"selectionService\", void 0);\n    __decorate$L([\n        Autowired('mouseEventService')\n    ], RowDragFeature.prototype, \"mouseEventService\", void 0);\n    __decorate$L([\n        Autowired('ctrlsService')\n    ], RowDragFeature.prototype, \"ctrlsService\", void 0);\n    __decorate$L([\n        Optional('rangeService')\n    ], RowDragFeature.prototype, \"rangeService\", void 0);\n    __decorate$L([\n        Autowired('columnApi')\n    ], RowDragFeature.prototype, \"columnApi\", void 0);\n    __decorate$L([\n        Autowired('gridApi')\n    ], RowDragFeature.prototype, \"gridApi\", void 0);\n    __decorate$L([\n        PostConstruct\n    ], RowDragFeature.prototype, \"postConstruct\", null);\n    return RowDragFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$T = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$M = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n(function (RowAnimationCssClasses) {\n    RowAnimationCssClasses[\"ANIMATION_ON\"] = \"ag-row-animation\";\n    RowAnimationCssClasses[\"ANIMATION_OFF\"] = \"ag-row-no-animation\";\n})(exports.RowAnimationCssClasses || (exports.RowAnimationCssClasses = {}));\nvar CSS_CLASS_CELL_SELECTABLE = 'ag-selectable';\nvar CSS_CLASS_FORCE_VERTICAL_SCROLL = 'ag-force-vertical-scroll';\nvar CSS_CLASS_COLUMN_MOVING = 'ag-column-moving';\nvar GridBodyCtrl = /** @class */ (function (_super) {\n    __extends$T(GridBodyCtrl, _super);\n    function GridBodyCtrl() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    GridBodyCtrl.prototype.getScrollFeature = function () {\n        return this.bodyScrollFeature;\n    };\n    GridBodyCtrl.prototype.getBodyViewportElement = function () {\n        return this.eBodyViewport;\n    };\n    GridBodyCtrl.prototype.setComp = function (comp, eGridBody, eBodyViewport, eTop, eBottom) {\n        this.comp = comp;\n        this.eGridBody = eGridBody;\n        this.eBodyViewport = eBodyViewport;\n        this.eTop = eTop;\n        this.eBottom = eBottom;\n        this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect());\n        this.createManagedBean(new LayoutFeature(this.comp));\n        this.bodyScrollFeature = this.createManagedBean(new GridBodyScrollFeature(this.eBodyViewport));\n        this.addRowDragListener();\n        this.setupRowAnimationCssClass();\n        this.addEventListeners();\n        this.addFocusListeners([eTop, eBodyViewport, eBottom]);\n        this.onGridColumnsChanged();\n        this.addBodyViewportListener();\n        this.setFloatingHeights();\n        this.disableBrowserDragging();\n        this.addStopEditingWhenGridLosesFocus();\n        this.ctrlsService.registerGridBodyCtrl(this);\n    };\n    GridBodyCtrl.prototype.getComp = function () {\n        return this.comp;\n    };\n    GridBodyCtrl.prototype.addEventListeners = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_PINNED_ROW_DATA_CHANGED, this.setFloatingHeights.bind(this));\n    };\n    GridBodyCtrl.prototype.addFocusListeners = function (elements) {\n        var _this = this;\n        elements.forEach(function (element) {\n            _this.addManagedListener(element, 'focusin', function () {\n                element.classList.add('ag-has-focus');\n            });\n            _this.addManagedListener(element, 'focusout', function (e) {\n                if (!element.contains(e.relatedTarget)) {\n                    element.classList.remove('ag-has-focus');\n                }\n            });\n        });\n    };\n    // used by ColumnAnimationService\n    GridBodyCtrl.prototype.setColumnMovingCss = function (moving) {\n        this.comp.setColumnMovingCss(moving ? CSS_CLASS_COLUMN_MOVING : null, moving);\n    };\n    GridBodyCtrl.prototype.setCellTextSelection = function (selectable) {\n        if (selectable === void 0) { selectable = false; }\n        var cssClass = selectable ? CSS_CLASS_CELL_SELECTABLE : null;\n        this.comp.setCellSelectableCss(cssClass, selectable);\n    };\n    GridBodyCtrl.prototype.onScrollVisibilityChanged = function () {\n        var visible = this.scrollVisibleService.isVerticalScrollShowing();\n        this.setVerticalScrollPaddingVisible(visible);\n    };\n    GridBodyCtrl.prototype.onGridColumnsChanged = function () {\n        var columns = this.columnModel.getAllGridColumns();\n        this.comp.setColumnCount(columns ? columns.length : 0);\n    };\n    // if we do not do this, then the user can select a pic in the grid (eg an image in a custom cell renderer)\n    // and then that will start the browser native drag n' drop, which messes up with our own drag and drop.\n    GridBodyCtrl.prototype.disableBrowserDragging = function () {\n        this.addManagedListener(this.eGridBody, 'dragstart', function (event) {\n            if (event.target instanceof HTMLImageElement) {\n                event.preventDefault();\n                return false;\n            }\n        });\n    };\n    GridBodyCtrl.prototype.addStopEditingWhenGridLosesFocus = function () {\n        var _this = this;\n        if (!this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()) {\n            return;\n        }\n        var focusOutListener = function (event) {\n            // this is the element the focus is moving to\n            var elementWithFocus = event.relatedTarget;\n            if (getTabIndex(elementWithFocus) === null) {\n                _this.rowRenderer.stopEditing();\n                return;\n            }\n            var clickInsideGrid = \n            // see if click came from inside the viewports\n            viewports.some(function (viewport) { return viewport.contains(elementWithFocus); })\n                // and also that it's not from a detail grid\n                && _this.mouseEventService.isElementInThisGrid(elementWithFocus);\n            if (!clickInsideGrid) {\n                var popupService = _this.popupService;\n                clickInsideGrid =\n                    popupService.getActivePopups().some(function (popup) { return popup.contains(elementWithFocus); }) ||\n                        popupService.isElementWithinCustomPopup(elementWithFocus);\n            }\n            if (!clickInsideGrid) {\n                _this.rowRenderer.stopEditing();\n            }\n        };\n        var viewports = [this.eBodyViewport, this.eBottom, this.eTop];\n        viewports.forEach(function (viewport) { return _this.addManagedListener(viewport, 'focusout', focusOutListener); });\n    };\n    GridBodyCtrl.prototype.updateRowCount = function () {\n        var headerCount = this.headerNavigationService.getHeaderRowCount();\n        var modelType = this.paginationProxy.getType();\n        var rowCount = -1;\n        if (modelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            rowCount = 0;\n            this.paginationProxy.forEachNode(function (node) {\n                if (!node.group) {\n                    rowCount++;\n                }\n            });\n        }\n        var total = rowCount === -1 ? -1 : (headerCount + rowCount);\n        this.comp.setRowCount(total);\n    };\n    GridBodyCtrl.prototype.registerBodyViewportResizeListener = function (listener) {\n        this.comp.registerBodyViewportResizeListener(listener);\n    };\n    GridBodyCtrl.prototype.setVerticalScrollPaddingVisible = function (visible) {\n        var overflowY = visible ? 'scroll' : 'hidden';\n        this.comp.setPinnedTopBottomOverflowY(overflowY);\n    };\n    GridBodyCtrl.prototype.isVerticalScrollShowing = function () {\n        var show = this.gridOptionsWrapper.isAlwaysShowVerticalScroll();\n        var cssClass = show ? CSS_CLASS_FORCE_VERTICAL_SCROLL : null;\n        this.comp.setAlwaysVerticalScrollClass(cssClass, show);\n        return show || isVerticalScrollShowing(this.eBodyViewport);\n    };\n    GridBodyCtrl.prototype.setupRowAnimationCssClass = function () {\n        var _this = this;\n        var listener = function () {\n            // we don't want to use row animation if scaling, as rows jump strangely as you scroll,\n            // when scaling and doing row animation.\n            var animateRows = _this.gridOptionsWrapper.isAnimateRows() && !_this.rowContainerHeightService.isStretching();\n            var animateRowsCssClass = animateRows ? exports.RowAnimationCssClasses.ANIMATION_ON : exports.RowAnimationCssClasses.ANIMATION_OFF;\n            _this.comp.setRowAnimationCssOnBodyViewport(animateRowsCssClass, animateRows);\n        };\n        listener();\n        this.addManagedListener(this.eventService, Events.EVENT_HEIGHT_SCALE_CHANGED, listener);\n    };\n    GridBodyCtrl.prototype.getGridBodyElement = function () {\n        return this.eGridBody;\n    };\n    GridBodyCtrl.prototype.addBodyViewportListener = function () {\n        var _this = this;\n        // we want to listen for clicks directly on the eBodyViewport, so the user has a way of showing\n        // the context menu if no rows or columns are displayed, or user simply clicks outside of a cell\n        var listener = function (mouseEvent) {\n            if (_this.gridOptionsWrapper.isPreventDefaultOnContextMenu()) {\n                mouseEvent.preventDefault();\n            }\n            var target = mouseEvent.target;\n            if (target === _this.eBodyViewport || target === _this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()) {\n                // show it\n                if (_this.contextMenuFactory) {\n                    _this.contextMenuFactory.onContextMenu(mouseEvent, null, null, null, null, _this.eGridBody);\n                }\n            }\n        };\n        this.addManagedListener(this.eBodyViewport, 'contextmenu', listener);\n        this.addManagedListener(this.eBodyViewport, 'wheel', this.onWheel.bind(this));\n    };\n    GridBodyCtrl.prototype.onWheel = function (e) {\n        if (!this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()) {\n            return;\n        }\n        if (this.popupService.hasAnchoredPopup()) {\n            e.preventDefault();\n        }\n    };\n    GridBodyCtrl.prototype.getGui = function () {\n        return this.eGridBody;\n    };\n    // called by rowDragFeature\n    GridBodyCtrl.prototype.scrollVertically = function (pixels) {\n        var oldScrollPosition = this.eBodyViewport.scrollTop;\n        this.bodyScrollFeature.setVerticalScrollPosition(oldScrollPosition + pixels);\n        return this.eBodyViewport.scrollTop - oldScrollPosition;\n    };\n    GridBodyCtrl.prototype.addRowDragListener = function () {\n        this.rowDragFeature = this.createManagedBean(new RowDragFeature(this.eBodyViewport));\n        this.dragAndDropService.addDropTarget(this.rowDragFeature);\n    };\n    GridBodyCtrl.prototype.getRowDragFeature = function () {\n        return this.rowDragFeature;\n    };\n    GridBodyCtrl.prototype.setFloatingHeights = function () {\n        var pinnedRowModel = this.pinnedRowModel;\n        var floatingTopHeight = pinnedRowModel.getPinnedTopTotalHeight();\n        if (floatingTopHeight) {\n            // adding 1px for cell bottom border\n            floatingTopHeight += 1;\n        }\n        var floatingBottomHeight = pinnedRowModel.getPinnedBottomTotalHeight();\n        if (floatingBottomHeight) {\n            // adding 1px for cell bottom border\n            floatingBottomHeight += 1;\n        }\n        this.comp.setTopHeight(floatingTopHeight);\n        this.comp.setBottomHeight(floatingBottomHeight);\n        this.comp.setTopDisplay(floatingTopHeight ? 'inherit' : 'none');\n        this.comp.setBottomDisplay(floatingBottomHeight ? 'inherit' : 'none');\n    };\n    // method will call itself if no available width. this covers if the grid\n    // isn't visible, but is just about to be visible.\n    GridBodyCtrl.prototype.sizeColumnsToFit = function (nextTimeout) {\n        var _this = this;\n        var removeScrollWidth = this.isVerticalScrollShowing();\n        var scrollWidthToRemove = removeScrollWidth ? this.gridOptionsWrapper.getScrollbarWidth() : 0;\n        var bodyViewportWidth = getInnerWidth(this.eBodyViewport);\n        var availableWidth = bodyViewportWidth - scrollWidthToRemove;\n        if (availableWidth > 0) {\n            this.columnModel.sizeColumnsToFit(availableWidth, \"sizeColumnsToFit\");\n            return;\n        }\n        if (nextTimeout === undefined) {\n            window.setTimeout(function () {\n                _this.sizeColumnsToFit(100);\n            }, 0);\n        }\n        else if (nextTimeout === 100) {\n            window.setTimeout(function () {\n                _this.sizeColumnsToFit(500);\n            }, 100);\n        }\n        else if (nextTimeout === 500) {\n            window.setTimeout(function () {\n                _this.sizeColumnsToFit(-1);\n            }, 500);\n        }\n        else {\n            console.warn('AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with ' +\n                'zero width, maybe the grid is not visible yet on the screen?');\n        }\n    };\n    // + rangeService\n    GridBodyCtrl.prototype.addScrollEventListener = function (listener) {\n        this.eBodyViewport.addEventListener('scroll', listener);\n    };\n    // + focusService\n    GridBodyCtrl.prototype.removeScrollEventListener = function (listener) {\n        this.eBodyViewport.removeEventListener('scroll', listener);\n    };\n    __decorate$M([\n        Autowired('rowContainerHeightService')\n    ], GridBodyCtrl.prototype, \"rowContainerHeightService\", void 0);\n    __decorate$M([\n        Autowired('ctrlsService')\n    ], GridBodyCtrl.prototype, \"ctrlsService\", void 0);\n    __decorate$M([\n        Autowired('columnModel')\n    ], GridBodyCtrl.prototype, \"columnModel\", void 0);\n    __decorate$M([\n        Autowired('scrollVisibleService')\n    ], GridBodyCtrl.prototype, \"scrollVisibleService\", void 0);\n    __decorate$M([\n        Optional('contextMenuFactory')\n    ], GridBodyCtrl.prototype, \"contextMenuFactory\", void 0);\n    __decorate$M([\n        Autowired('headerNavigationService')\n    ], GridBodyCtrl.prototype, \"headerNavigationService\", void 0);\n    __decorate$M([\n        Autowired('paginationProxy')\n    ], GridBodyCtrl.prototype, \"paginationProxy\", void 0);\n    __decorate$M([\n        Autowired('dragAndDropService')\n    ], GridBodyCtrl.prototype, \"dragAndDropService\", void 0);\n    __decorate$M([\n        Autowired('pinnedRowModel')\n    ], GridBodyCtrl.prototype, \"pinnedRowModel\", void 0);\n    __decorate$M([\n        Autowired('rowRenderer')\n    ], GridBodyCtrl.prototype, \"rowRenderer\", void 0);\n    __decorate$M([\n        Autowired('popupService')\n    ], GridBodyCtrl.prototype, \"popupService\", void 0);\n    __decorate$M([\n        Autowired('mouseEventService')\n    ], GridBodyCtrl.prototype, \"mouseEventService\", void 0);\n    return GridBodyCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (SelectionHandleType) {\n    SelectionHandleType[SelectionHandleType[\"FILL\"] = 0] = \"FILL\";\n    SelectionHandleType[SelectionHandleType[\"RANGE\"] = 1] = \"RANGE\";\n})(exports.SelectionHandleType || (exports.SelectionHandleType = {}));\n(function (CellRangeType) {\n    CellRangeType[CellRangeType[\"VALUE\"] = 0] = \"VALUE\";\n    CellRangeType[CellRangeType[\"DIMENSION\"] = 1] = \"DIMENSION\";\n})(exports.CellRangeType || (exports.CellRangeType = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar CSS_CELL_RANGE_SELECTED = 'ag-cell-range-selected';\nvar CSS_CELL_RANGE_CHART = 'ag-cell-range-chart';\nvar CSS_CELL_RANGE_SINGLE_CELL = 'ag-cell-range-single-cell';\nvar CSS_CELL_RANGE_CHART_CATEGORY = 'ag-cell-range-chart-category';\nvar CSS_CELL_RANGE_HANDLE = 'ag-cell-range-handle';\nvar CSS_CELL_RANGE_TOP = 'ag-cell-range-top';\nvar CSS_CELL_RANGE_RIGHT = 'ag-cell-range-right';\nvar CSS_CELL_RANGE_BOTTOM = 'ag-cell-range-bottom';\nvar CSS_CELL_RANGE_LEFT = 'ag-cell-range-left';\nvar CellRangeFeature = /** @class */ (function () {\n    function CellRangeFeature(beans, ctrl) {\n        this.beans = beans;\n        this.cellCtrl = ctrl;\n    }\n    CellRangeFeature.prototype.setComp = function (cellComp, eGui) {\n        this.cellComp = cellComp;\n        this.eGui = eGui;\n        this.onRangeSelectionChanged();\n    };\n    CellRangeFeature.prototype.onRangeSelectionChanged = function () {\n        // when using reactUi, given UI is async, it's possible this method is called before the comp is registered\n        if (!this.cellComp) {\n            return;\n        }\n        this.rangeCount = this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition());\n        this.hasChartRange = this.getHasChartRange();\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED, this.rangeCount !== 0);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-1\", this.rangeCount === 1);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-2\", this.rangeCount === 2);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-3\", this.rangeCount === 3);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-4\", this.rangeCount >= 4);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_CHART, this.hasChartRange);\n        setAriaSelected(this.eGui, this.rangeCount > 0 ? true : undefined);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SINGLE_CELL, this.isSingleCell());\n        this.updateRangeBorders();\n        this.refreshHandle();\n    };\n    CellRangeFeature.prototype.updateRangeBorders = function () {\n        var rangeBorders = this.getRangeBorders();\n        var isSingleCell = this.isSingleCell();\n        var isTop = !isSingleCell && rangeBorders.top;\n        var isRight = !isSingleCell && rangeBorders.right;\n        var isBottom = !isSingleCell && rangeBorders.bottom;\n        var isLeft = !isSingleCell && rangeBorders.left;\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_TOP, isTop);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_RIGHT, isRight);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_BOTTOM, isBottom);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_LEFT, isLeft);\n    };\n    CellRangeFeature.prototype.isSingleCell = function () {\n        var rangeService = this.beans.rangeService;\n        return this.rangeCount === 1 && rangeService && !rangeService.isMoreThanOneCell();\n    };\n    CellRangeFeature.prototype.getHasChartRange = function () {\n        var rangeService = this.beans.rangeService;\n        if (!this.rangeCount || !rangeService) {\n            return false;\n        }\n        var cellRanges = rangeService.getCellRanges();\n        return cellRanges.length > 0 && cellRanges.every(function (range) { return includes([exports.CellRangeType.DIMENSION, exports.CellRangeType.VALUE], range.type); });\n    };\n    CellRangeFeature.prototype.updateRangeBordersIfRangeCount = function () {\n        // we only need to update range borders if we are in a range\n        if (this.rangeCount > 0) {\n            this.updateRangeBorders();\n            this.refreshHandle();\n        }\n    };\n    CellRangeFeature.prototype.getRangeBorders = function () {\n        var _this = this;\n        var isRtl = this.beans.gridOptionsWrapper.isEnableRtl();\n        var top = false;\n        var right = false;\n        var bottom = false;\n        var left = false;\n        var thisCol = this.cellCtrl.getCellPosition().column;\n        var _a = this.beans, rangeService = _a.rangeService, columnModel = _a.columnModel;\n        var leftCol;\n        var rightCol;\n        if (isRtl) {\n            leftCol = columnModel.getDisplayedColAfter(thisCol);\n            rightCol = columnModel.getDisplayedColBefore(thisCol);\n        }\n        else {\n            leftCol = columnModel.getDisplayedColBefore(thisCol);\n            rightCol = columnModel.getDisplayedColAfter(thisCol);\n        }\n        var ranges = rangeService.getCellRanges().filter(function (range) { return rangeService.isCellInSpecificRange(_this.cellCtrl.getCellPosition(), range); });\n        // this means we are the first column in the grid\n        if (!leftCol) {\n            left = true;\n        }\n        // this means we are the last column in the grid\n        if (!rightCol) {\n            right = true;\n        }\n        for (var i = 0; i < ranges.length; i++) {\n            if (top && right && bottom && left) {\n                break;\n            }\n            var range = ranges[i];\n            var startRow = rangeService.getRangeStartRow(range);\n            var endRow = rangeService.getRangeEndRow(range);\n            if (!top && this.beans.rowPositionUtils.sameRow(startRow, this.cellCtrl.getCellPosition())) {\n                top = true;\n            }\n            if (!bottom && this.beans.rowPositionUtils.sameRow(endRow, this.cellCtrl.getCellPosition())) {\n                bottom = true;\n            }\n            if (!left && leftCol && range.columns.indexOf(leftCol) < 0) {\n                left = true;\n            }\n            if (!right && rightCol && range.columns.indexOf(rightCol) < 0) {\n                right = true;\n            }\n        }\n        return { top: top, right: right, bottom: bottom, left: left };\n    };\n    CellRangeFeature.prototype.refreshHandle = function () {\n        if (!this.beans.rangeService) {\n            return;\n        }\n        var shouldHaveSelectionHandle = this.shouldHaveSelectionHandle();\n        if (this.selectionHandle && !shouldHaveSelectionHandle) {\n            this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle);\n        }\n        if (shouldHaveSelectionHandle) {\n            this.addSelectionHandle();\n        }\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_HANDLE, !!this.selectionHandle);\n    };\n    CellRangeFeature.prototype.shouldHaveSelectionHandle = function () {\n        var _a = this.beans, gridOptionsWrapper = _a.gridOptionsWrapper, rangeService = _a.rangeService;\n        var cellRanges = rangeService.getCellRanges();\n        var rangesLen = cellRanges.length;\n        if (this.rangeCount < 1 || rangesLen < 1) {\n            return false;\n        }\n        var cellRange = last(cellRanges);\n        var cellPosition = this.cellCtrl.getCellPosition();\n        var isFillHandleAvailable = gridOptionsWrapper.isEnableFillHandle() && !this.cellCtrl.isSuppressFillHandle();\n        var isRangeHandleAvailable = gridOptionsWrapper.isEnableRangeHandle();\n        var handleIsAvailable = rangesLen === 1 && !this.cellCtrl.isEditing() && (isFillHandleAvailable || isRangeHandleAvailable);\n        if (this.hasChartRange) {\n            var hasCategoryRange = cellRanges[0].type === exports.CellRangeType.DIMENSION;\n            var isCategoryCell = hasCategoryRange && rangeService.isCellInSpecificRange(cellPosition, cellRanges[0]);\n            this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_CHART_CATEGORY, isCategoryCell);\n            handleIsAvailable = cellRange.type === exports.CellRangeType.VALUE;\n        }\n        return handleIsAvailable &&\n            cellRange.endRow != null &&\n            rangeService.isContiguousRange(cellRange) &&\n            rangeService.isBottomRightCell(cellRange, cellPosition);\n    };\n    CellRangeFeature.prototype.addSelectionHandle = function () {\n        var _a = this.beans, gridOptionsWrapper = _a.gridOptionsWrapper, rangeService = _a.rangeService;\n        var cellRangeType = last(rangeService.getCellRanges()).type;\n        var selectionHandleFill = gridOptionsWrapper.isEnableFillHandle() && missing(cellRangeType);\n        var type = selectionHandleFill ? exports.SelectionHandleType.FILL : exports.SelectionHandleType.RANGE;\n        if (this.selectionHandle && this.selectionHandle.getType() !== type) {\n            this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle);\n        }\n        if (!this.selectionHandle) {\n            this.selectionHandle = this.beans.selectionHandleFactory.createSelectionHandle(type);\n        }\n        this.selectionHandle.refresh(this.cellCtrl);\n    };\n    CellRangeFeature.prototype.destroy = function () {\n        this.beans.context.destroyBean(this.selectionHandle);\n    };\n    return CellRangeFeature;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$U = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\n/**\n * Takes care of:\n *  #) Cell Width (including when doing cell spanning, which makes width cover many columns)\n *  #) Cell Height (when doing row span, otherwise we don't touch the height as it's just row height)\n *  #) Cell Left (the horizontal positioning of the cell, the vertical positioning is on the row)\n */\nvar CellPositionFeature = /** @class */ (function (_super) {\n    __extends$U(CellPositionFeature, _super);\n    function CellPositionFeature(ctrl, beans) {\n        var _this = _super.call(this) || this;\n        _this.cellCtrl = ctrl;\n        _this.beans = beans;\n        _this.column = ctrl.getColumn();\n        _this.rowNode = ctrl.getRowNode();\n        _this.setupColSpan();\n        _this.setupRowSpan();\n        return _this;\n    }\n    CellPositionFeature.prototype.setupRowSpan = function () {\n        this.rowSpan = this.column.getRowSpan(this.rowNode);\n    };\n    CellPositionFeature.prototype.setComp = function (eGui) {\n        this.eGui = eGui;\n        this.onLeftChanged();\n        this.onWidthChanged();\n        this.applyRowSpan();\n    };\n    CellPositionFeature.prototype.onDisplayColumnsChanged = function () {\n        var colsSpanning = this.getColSpanningList();\n        if (!areEqual(this.colsSpanning, colsSpanning)) {\n            this.colsSpanning = colsSpanning;\n            this.onWidthChanged();\n            this.onLeftChanged(); // left changes when doing RTL\n        }\n    };\n    CellPositionFeature.prototype.setupColSpan = function () {\n        // if no col span is active, then we don't set it up, as it would be wasteful of CPU\n        if (this.column.getColDef().colSpan == null) {\n            return;\n        }\n        this.colsSpanning = this.getColSpanningList();\n        // because we are col spanning, a reorder of the cols can change what cols we are spanning over\n        this.addManagedListener(this.beans.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayColumnsChanged.bind(this));\n        // because we are spanning over multiple cols, we check for width any time any cols width changes.\n        // this is expensive - really we should be explicitly checking only the cols we are spanning over\n        // instead of every col, however it would be tricky code to track the cols we are spanning over, so\n        // because hardly anyone will be using colSpan, am favouring this easier way for more maintainable code.\n        this.addManagedListener(this.beans.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onWidthChanged.bind(this));\n    };\n    CellPositionFeature.prototype.onWidthChanged = function () {\n        if (!this.eGui) {\n            return;\n        }\n        var width = this.getCellWidth();\n        this.eGui.style.width = width + \"px\";\n    };\n    CellPositionFeature.prototype.getCellWidth = function () {\n        if (!this.colsSpanning) {\n            return this.column.getActualWidth();\n        }\n        return this.colsSpanning.reduce(function (width, col) { return width + col.getActualWidth(); }, 0);\n    };\n    CellPositionFeature.prototype.getColSpanningList = function () {\n        var colSpan = this.column.getColSpan(this.rowNode);\n        var colsSpanning = [];\n        // if just one col, the col span is just the column we are in\n        if (colSpan === 1) {\n            colsSpanning.push(this.column);\n        }\n        else {\n            var pointer = this.column;\n            var pinned = this.column.getPinned();\n            for (var i = 0; pointer && i < colSpan; i++) {\n                colsSpanning.push(pointer);\n                pointer = this.beans.columnModel.getDisplayedColAfter(pointer);\n                if (!pointer || missing(pointer)) {\n                    break;\n                }\n                // we do not allow col spanning to span outside of pinned areas\n                if (pinned !== pointer.getPinned()) {\n                    break;\n                }\n            }\n        }\n        return colsSpanning;\n    };\n    CellPositionFeature.prototype.onLeftChanged = function () {\n        if (!this.eGui) {\n            return;\n        }\n        var left = this.modifyLeftForPrintLayout(this.getCellLeft());\n        this.eGui.style.left = left + 'px';\n    };\n    CellPositionFeature.prototype.getCellLeft = function () {\n        var mostLeftCol;\n        if (this.beans.gridOptionsWrapper.isEnableRtl() && this.colsSpanning) {\n            mostLeftCol = last(this.colsSpanning);\n        }\n        else {\n            mostLeftCol = this.column;\n        }\n        return mostLeftCol.getLeft();\n    };\n    CellPositionFeature.prototype.modifyLeftForPrintLayout = function (leftPosition) {\n        if (!this.cellCtrl.isPrintLayout() || this.column.getPinned() === Constants.PINNED_LEFT) {\n            return leftPosition;\n        }\n        var leftWidth = this.beans.columnModel.getDisplayedColumnsLeftWidth();\n        if (this.column.getPinned() === Constants.PINNED_RIGHT) {\n            var bodyWidth = this.beans.columnModel.getBodyContainerWidth();\n            return leftWidth + bodyWidth + (leftPosition || 0);\n        }\n        // is in body\n        return leftWidth + (leftPosition || 0);\n    };\n    CellPositionFeature.prototype.applyRowSpan = function () {\n        if (this.rowSpan === 1) {\n            return;\n        }\n        var singleRowHeight = this.beans.gridOptionsWrapper.getRowHeightAsNumber();\n        var totalRowHeight = singleRowHeight * this.rowSpan;\n        this.eGui.style.height = totalRowHeight + \"px\";\n        this.eGui.style.zIndex = '1';\n    };\n    // overriding to make public, as we don't dispose this bean via context\n    CellPositionFeature.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    return CellPositionFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$V = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar CellCustomStyleFeature = /** @class */ (function (_super) {\n    __extends$V(CellCustomStyleFeature, _super);\n    function CellCustomStyleFeature(ctrl, beans) {\n        var _this = _super.call(this) || this;\n        _this.staticClasses = [];\n        _this.cellCtrl = ctrl;\n        _this.beans = beans;\n        _this.column = ctrl.getColumn();\n        _this.rowNode = ctrl.getRowNode();\n        return _this;\n    }\n    CellCustomStyleFeature.prototype.setComp = function (comp) {\n        this.cellComp = comp;\n        this.applyUserStyles();\n        this.applyCellClassRules();\n        this.applyClassesFromColDef();\n    };\n    CellCustomStyleFeature.prototype.applyCellClassRules = function () {\n        var _this = this;\n        var colDef = this.column.getColDef();\n        var cellClassParams = {\n            value: this.cellCtrl.getValue(),\n            data: this.rowNode.data,\n            node: this.rowNode,\n            colDef: colDef,\n            rowIndex: this.rowNode.rowIndex,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext()\n        };\n        this.beans.stylingService.processClassRules(colDef.cellClassRules, cellClassParams, function (className) { return _this.cellComp.addOrRemoveCssClass(className, true); }, function (className) { return _this.cellComp.addOrRemoveCssClass(className, false); });\n    };\n    CellCustomStyleFeature.prototype.applyUserStyles = function () {\n        var colDef = this.column.getColDef();\n        if (!colDef.cellStyle) {\n            return;\n        }\n        var styles;\n        if (typeof colDef.cellStyle === 'function') {\n            var cellStyleParams = {\n                column: this.column,\n                value: this.cellCtrl.getValue(),\n                colDef: colDef,\n                data: this.rowNode.data,\n                node: this.rowNode,\n                rowIndex: this.rowNode.rowIndex,\n                api: this.beans.gridOptionsWrapper.getApi(),\n                columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n                context: this.beans.gridOptionsWrapper.getContext(),\n            };\n            var cellStyleFunc = colDef.cellStyle;\n            styles = cellStyleFunc(cellStyleParams);\n        }\n        else {\n            styles = colDef.cellStyle;\n        }\n        this.cellComp.setUserStyles(styles);\n    };\n    CellCustomStyleFeature.prototype.applyClassesFromColDef = function () {\n        var _this = this;\n        var colDef = this.column.getColDef();\n        var cellClassParams = {\n            value: this.cellCtrl.getValue(),\n            data: this.rowNode.data,\n            node: this.rowNode,\n            colDef: colDef,\n            rowIndex: this.rowNode.rowIndex,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext()\n        };\n        if (this.staticClasses.length) {\n            this.staticClasses.forEach(function (className) { return _this.cellComp.addOrRemoveCssClass(className, false); });\n        }\n        this.staticClasses = this.beans.stylingService.getStaticCellClasses(colDef, cellClassParams);\n        if (this.staticClasses.length) {\n            this.staticClasses.forEach(function (className) { return _this.cellComp.addOrRemoveCssClass(className, true); });\n        }\n    };\n    // overriding to make public, as we don't dispose this bean via context\n    CellCustomStyleFeature.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    return CellCustomStyleFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$W = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar TooltipFeature = /** @class */ (function (_super) {\n    __extends$W(TooltipFeature, _super);\n    function TooltipFeature(ctrl, beans) {\n        var _this = _super.call(this) || this;\n        _this.ctrl = ctrl;\n        _this.beans = beans;\n        return _this;\n    }\n    TooltipFeature.prototype.setComp = function (comp) {\n        this.comp = comp;\n        this.setupTooltip();\n    };\n    TooltipFeature.prototype.setupTooltip = function () {\n        this.browserTooltips = this.beans.gridOptionsWrapper.isEnableBrowserTooltips();\n        this.updateTooltipText();\n        if (this.browserTooltips) {\n            this.comp.setTitle(this.tooltip != null ? this.tooltip : undefined);\n        }\n        else {\n            this.createTooltipFeatureIfNeeded();\n        }\n    };\n    TooltipFeature.prototype.updateTooltipText = function () {\n        this.tooltip = this.ctrl.getTooltipValue();\n    };\n    TooltipFeature.prototype.createTooltipFeatureIfNeeded = function () {\n        var _this = this;\n        if (this.genericTooltipFeature != null) {\n            return;\n        }\n        var parent = {\n            getTooltipParams: function () { return _this.getTooltipParams(); },\n            getGui: function () { return _this.ctrl.getGui(); }\n        };\n        this.genericTooltipFeature = this.createManagedBean(new CustomTooltipFeature(parent), this.beans.context);\n    };\n    TooltipFeature.prototype.refreshToolTip = function () {\n        this.updateTooltipText();\n        if (this.browserTooltips) {\n            this.comp.setTitle(this.tooltip != null ? this.tooltip : undefined);\n        }\n    };\n    TooltipFeature.prototype.getTooltipParams = function () {\n        var ctrl = this.ctrl;\n        var column = ctrl.getColumn ? ctrl.getColumn() : undefined;\n        var colDef = ctrl.getColDef ? ctrl.getColDef() : undefined;\n        var rowNode = ctrl.getRowNode ? ctrl.getRowNode() : undefined;\n        return {\n            location: ctrl.getLocation(),\n            colDef: colDef,\n            column: column,\n            rowIndex: ctrl.getRowIndex ? ctrl.getRowIndex() : undefined,\n            node: rowNode,\n            data: rowNode ? rowNode.data : undefined,\n            value: this.getTooltipText(),\n            valueFormatted: ctrl.getValueFormatted ? ctrl.getValueFormatted() : undefined,\n        };\n    };\n    TooltipFeature.prototype.getTooltipText = function () {\n        return this.tooltip;\n    };\n    // overriding to make public, as we don't dispose this bean via context\n    TooltipFeature.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    return TooltipFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$N = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/** Using the IoC has a slight performance consideration, which is no problem most of the\n * time, unless we are trashing objects - which is the case when scrolling and rowComp\n * and cellComp. So for performance reasons, RowComp and CellComp do not get autowired\n * with the IoC. Instead they get passed this object which is all the beans the RowComp\n * and CellComp need. Not autowiring all the cells gives performance improvement. */\nvar Beans = /** @class */ (function () {\n    function Beans() {\n    }\n    Beans.prototype.postConstruct = function () {\n        this.doingMasterDetail = this.gridOptionsWrapper.isMasterDetail();\n        if (this.gridOptionsWrapper.isRowModelDefault()) {\n            this.clientSideRowModel = this.rowModel;\n        }\n        if (this.gridOptionsWrapper.isRowModelServerSide()) {\n            this.serverSideRowModel = this.rowModel;\n        }\n    };\n    __decorate$N([\n        Autowired('resizeObserverService')\n    ], Beans.prototype, \"resizeObserverService\", void 0);\n    __decorate$N([\n        Autowired('paginationProxy')\n    ], Beans.prototype, \"paginationProxy\", void 0);\n    __decorate$N([\n        Autowired('context')\n    ], Beans.prototype, \"context\", void 0);\n    __decorate$N([\n        Autowired('columnApi')\n    ], Beans.prototype, \"columnApi\", void 0);\n    __decorate$N([\n        Autowired('gridApi')\n    ], Beans.prototype, \"gridApi\", void 0);\n    __decorate$N([\n        Autowired('gridOptionsWrapper')\n    ], Beans.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$N([\n        Autowired('expressionService')\n    ], Beans.prototype, \"expressionService\", void 0);\n    __decorate$N([\n        Autowired('rowRenderer')\n    ], Beans.prototype, \"rowRenderer\", void 0);\n    __decorate$N([\n        Autowired('templateService')\n    ], Beans.prototype, \"templateService\", void 0);\n    __decorate$N([\n        Autowired('valueService')\n    ], Beans.prototype, \"valueService\", void 0);\n    __decorate$N([\n        Autowired('eventService')\n    ], Beans.prototype, \"eventService\", void 0);\n    __decorate$N([\n        Autowired('columnModel')\n    ], Beans.prototype, \"columnModel\", void 0);\n    __decorate$N([\n        Autowired('headerNavigationService')\n    ], Beans.prototype, \"headerNavigationService\", void 0);\n    __decorate$N([\n        Autowired('navigationService')\n    ], Beans.prototype, \"navigationService\", void 0);\n    __decorate$N([\n        Autowired('columnAnimationService')\n    ], Beans.prototype, \"columnAnimationService\", void 0);\n    __decorate$N([\n        Optional('rangeService')\n    ], Beans.prototype, \"rangeService\", void 0);\n    __decorate$N([\n        Autowired('focusService')\n    ], Beans.prototype, \"focusService\", void 0);\n    __decorate$N([\n        Optional('contextMenuFactory')\n    ], Beans.prototype, \"contextMenuFactory\", void 0);\n    __decorate$N([\n        Autowired('popupService')\n    ], Beans.prototype, \"popupService\", void 0);\n    __decorate$N([\n        Autowired('valueFormatterService')\n    ], Beans.prototype, \"valueFormatterService\", void 0);\n    __decorate$N([\n        Autowired('stylingService')\n    ], Beans.prototype, \"stylingService\", void 0);\n    __decorate$N([\n        Autowired('columnHoverService')\n    ], Beans.prototype, \"columnHoverService\", void 0);\n    __decorate$N([\n        Autowired('userComponentFactory')\n    ], Beans.prototype, \"userComponentFactory\", void 0);\n    __decorate$N([\n        Autowired('userComponentRegistry')\n    ], Beans.prototype, \"userComponentRegistry\", void 0);\n    __decorate$N([\n        Autowired('animationFrameService')\n    ], Beans.prototype, \"animationFrameService\", void 0);\n    __decorate$N([\n        Autowired('dragAndDropService')\n    ], Beans.prototype, \"dragAndDropService\", void 0);\n    __decorate$N([\n        Autowired('sortController')\n    ], Beans.prototype, \"sortController\", void 0);\n    __decorate$N([\n        Autowired('filterManager')\n    ], Beans.prototype, \"filterManager\", void 0);\n    __decorate$N([\n        Autowired('rowContainerHeightService')\n    ], Beans.prototype, \"rowContainerHeightService\", void 0);\n    __decorate$N([\n        Autowired('frameworkOverrides')\n    ], Beans.prototype, \"frameworkOverrides\", void 0);\n    __decorate$N([\n        Autowired('cellPositionUtils')\n    ], Beans.prototype, \"cellPositionUtils\", void 0);\n    __decorate$N([\n        Autowired('rowPositionUtils')\n    ], Beans.prototype, \"rowPositionUtils\", void 0);\n    __decorate$N([\n        Autowired('selectionService')\n    ], Beans.prototype, \"selectionService\", void 0);\n    __decorate$N([\n        Optional('selectionHandleFactory')\n    ], Beans.prototype, \"selectionHandleFactory\", void 0);\n    __decorate$N([\n        Autowired('rowCssClassCalculator')\n    ], Beans.prototype, \"rowCssClassCalculator\", void 0);\n    __decorate$N([\n        Autowired('rowModel')\n    ], Beans.prototype, \"rowModel\", void 0);\n    __decorate$N([\n        Autowired('ctrlsService')\n    ], Beans.prototype, \"ctrlsService\", void 0);\n    __decorate$N([\n        Autowired('ctrlsFactory')\n    ], Beans.prototype, \"ctrlsFactory\", void 0);\n    __decorate$N([\n        Autowired('agStackComponentsRegistry')\n    ], Beans.prototype, \"agStackComponentsRegistry\", void 0);\n    __decorate$N([\n        Autowired('valueCache')\n    ], Beans.prototype, \"valueCache\", void 0);\n    __decorate$N([\n        Autowired('rowNodeEventThrottle')\n    ], Beans.prototype, \"rowNodeEventThrottle\", void 0);\n    __decorate$N([\n        PostConstruct\n    ], Beans.prototype, \"postConstruct\", null);\n    Beans = __decorate$N([\n        Bean('beans')\n    ], Beans);\n    return Beans;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$X = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar CellMouseListenerFeature = /** @class */ (function (_super) {\n    __extends$X(CellMouseListenerFeature, _super);\n    function CellMouseListenerFeature(ctrl, beans, column) {\n        var _this = _super.call(this) || this;\n        _this.cellCtrl = ctrl;\n        _this.beans = beans;\n        _this.column = column;\n        return _this;\n    }\n    CellMouseListenerFeature.prototype.onMouseEvent = function (eventName, mouseEvent) {\n        if (isStopPropagationForAgGrid(mouseEvent)) {\n            return;\n        }\n        switch (eventName) {\n            case 'click':\n                this.onCellClicked(mouseEvent);\n                break;\n            case 'mousedown':\n            case 'touchstart':\n                this.onMouseDown(mouseEvent);\n                break;\n            case 'dblclick':\n                this.onCellDoubleClicked(mouseEvent);\n                break;\n            case 'mouseout':\n                this.onMouseOut(mouseEvent);\n                break;\n            case 'mouseover':\n                this.onMouseOver(mouseEvent);\n                break;\n        }\n    };\n    CellMouseListenerFeature.prototype.onCellClicked = function (mouseEvent) {\n        // iPad doesn't have double click - so we need to mimic it to enable editing for iPad.\n        if (this.isDoubleClickOnIPad()) {\n            this.onCellDoubleClicked(mouseEvent);\n            mouseEvent.preventDefault(); // if we don't do this, then iPad zooms in\n            return;\n        }\n        var _a = this.beans, eventService = _a.eventService, gridOptionsWrapper = _a.gridOptionsWrapper;\n        var cellClickedEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_CLICKED);\n        eventService.dispatchEvent(cellClickedEvent);\n        var colDef = this.column.getColDef();\n        if (colDef.onCellClicked) {\n            // to make callback async, do in a timeout\n            window.setTimeout(function () { return colDef.onCellClicked(cellClickedEvent); }, 0);\n        }\n        var editOnSingleClick = (gridOptionsWrapper.isSingleClickEdit() || colDef.singleClickEdit)\n            && !gridOptionsWrapper.isSuppressClickEdit();\n        if (editOnSingleClick) {\n            this.cellCtrl.startRowOrCellEdit();\n        }\n    };\n    // returns true if on iPad and this is second 'click' event in 200ms\n    CellMouseListenerFeature.prototype.isDoubleClickOnIPad = function () {\n        if (!isIOSUserAgent() || isEventSupported('dblclick')) {\n            return false;\n        }\n        var nowMillis = new Date().getTime();\n        var res = nowMillis - this.lastIPadMouseClickEvent < 200;\n        this.lastIPadMouseClickEvent = nowMillis;\n        return res;\n    };\n    CellMouseListenerFeature.prototype.onCellDoubleClicked = function (mouseEvent) {\n        var colDef = this.column.getColDef();\n        // always dispatch event to eventService\n        var cellDoubleClickedEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_DOUBLE_CLICKED);\n        this.beans.eventService.dispatchEvent(cellDoubleClickedEvent);\n        // check if colDef also wants to handle event\n        if (typeof colDef.onCellDoubleClicked === 'function') {\n            // to make the callback async, do in a timeout\n            window.setTimeout(function () { return colDef.onCellDoubleClicked(cellDoubleClickedEvent); }, 0);\n        }\n        var editOnDoubleClick = !this.beans.gridOptionsWrapper.isSingleClickEdit()\n            && !this.beans.gridOptionsWrapper.isSuppressClickEdit();\n        if (editOnDoubleClick) {\n            this.cellCtrl.startRowOrCellEdit(null, null, mouseEvent);\n        }\n    };\n    CellMouseListenerFeature.prototype.onMouseDown = function (mouseEvent) {\n        var ctrlKey = mouseEvent.ctrlKey, metaKey = mouseEvent.metaKey, shiftKey = mouseEvent.shiftKey;\n        var target = mouseEvent.target;\n        var _a = this.beans, eventService = _a.eventService, rangeService = _a.rangeService;\n        // do not change the range for right-clicks inside an existing range\n        if (this.isRightClickInExistingRange(mouseEvent)) {\n            return;\n        }\n        var ranges = rangeService && rangeService.getCellRanges().length != 0;\n        if (!shiftKey || !ranges) {\n            // We only need to pass true to focusCell when the browser is IE/Edge and we are trying\n            // to focus the cell itself. This should never be true if the mousedown was triggered\n            // due to a click on a cell editor for example.\n            var forceBrowserFocus = (isBrowserEdge()) && !this.cellCtrl.isEditing() && !isFocusableFormField(target);\n            this.cellCtrl.focusCell(forceBrowserFocus);\n        }\n        // if shift clicking, and a range exists, we keep the focus on the cell that started the\n        // range as the user then changes the range selection.\n        if (shiftKey && ranges) {\n            // this stops the cell from getting focused\n            mouseEvent.preventDefault();\n        }\n        // if we are clicking on a checkbox, we need to make sure the cell wrapping that checkbox\n        // is focused but we don't want to change the range selection, so return here.\n        if (this.containsWidget(target)) {\n            return;\n        }\n        if (rangeService) {\n            var thisCell = this.cellCtrl.getCellPosition();\n            if (shiftKey) {\n                rangeService.extendLatestRangeToCell(thisCell);\n            }\n            else {\n                var ctrlKeyPressed = ctrlKey || metaKey;\n                rangeService.setRangeToCell(thisCell, ctrlKeyPressed);\n            }\n        }\n        eventService.dispatchEvent(this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_DOWN));\n    };\n    CellMouseListenerFeature.prototype.isRightClickInExistingRange = function (mouseEvent) {\n        var rangeService = this.beans.rangeService;\n        if (rangeService) {\n            var cellInRange = rangeService.isCellInAnyRange(this.cellCtrl.getCellPosition());\n            if (cellInRange && mouseEvent.button === 2) {\n                return true;\n            }\n        }\n        return false;\n    };\n    CellMouseListenerFeature.prototype.containsWidget = function (target) {\n        return isElementChildOfClass(target, 'ag-selection-checkbox', 3);\n    };\n    CellMouseListenerFeature.prototype.onMouseOut = function (mouseEvent) {\n        if (this.mouseStayingInsideCell(mouseEvent)) {\n            return;\n        }\n        var cellMouseOutEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_OUT);\n        this.beans.eventService.dispatchEvent(cellMouseOutEvent);\n        this.beans.columnHoverService.clearMouseOver();\n    };\n    CellMouseListenerFeature.prototype.onMouseOver = function (mouseEvent) {\n        if (this.mouseStayingInsideCell(mouseEvent)) {\n            return;\n        }\n        var cellMouseOverEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_OVER);\n        this.beans.eventService.dispatchEvent(cellMouseOverEvent);\n        this.beans.columnHoverService.setMouseOver([this.column]);\n    };\n    CellMouseListenerFeature.prototype.mouseStayingInsideCell = function (e) {\n        if (!e.target || !e.relatedTarget) {\n            return false;\n        }\n        var eGui = this.cellCtrl.getGui();\n        var cellContainsTarget = eGui.contains(e.target);\n        var cellContainsRelatedTarget = eGui.contains(e.relatedTarget);\n        return cellContainsTarget && cellContainsRelatedTarget;\n    };\n    CellMouseListenerFeature.prototype.destroy = function () {\n    };\n    return CellMouseListenerFeature;\n}(Beans));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$Y = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar CellKeyboardListenerFeature = /** @class */ (function (_super) {\n    __extends$Y(CellKeyboardListenerFeature, _super);\n    function CellKeyboardListenerFeature(ctrl, beans, column, rowNode, rowCtrl) {\n        var _this = _super.call(this) || this;\n        _this.cellCtrl = ctrl;\n        _this.beans = beans;\n        _this.rowNode = rowNode;\n        _this.rowCtrl = rowCtrl;\n        return _this;\n    }\n    CellKeyboardListenerFeature.prototype.setComp = function (eGui) {\n        this.eGui = eGui;\n    };\n    CellKeyboardListenerFeature.prototype.onKeyDown = function (event) {\n        var key = event.key;\n        switch (key) {\n            case KeyCode.ENTER:\n                this.onEnterKeyDown(event);\n                break;\n            case KeyCode.F2:\n                this.onF2KeyDown(event);\n                break;\n            case KeyCode.ESCAPE:\n                this.onEscapeKeyDown(event);\n                break;\n            case KeyCode.TAB:\n                this.onTabKeyDown(event);\n                break;\n            case KeyCode.BACKSPACE:\n            case KeyCode.DELETE:\n                this.onBackspaceOrDeleteKeyPressed(key, event);\n                break;\n            case KeyCode.DOWN:\n            case KeyCode.UP:\n            case KeyCode.RIGHT:\n            case KeyCode.LEFT:\n                this.onNavigationKeyPressed(event, key);\n                break;\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onNavigationKeyPressed = function (event, key) {\n        if (this.cellCtrl.isEditing()) {\n            return;\n        }\n        if (event.shiftKey && this.cellCtrl.isRangeSelectionEnabled()) {\n            this.onShiftRangeSelect(event);\n        }\n        else {\n            this.beans.navigationService.navigateToNextCell(event, key, this.cellCtrl.getCellPosition(), true);\n        }\n        // if we don't prevent default, the grid will scroll with the navigation keys\n        event.preventDefault();\n    };\n    CellKeyboardListenerFeature.prototype.onShiftRangeSelect = function (event) {\n        if (!this.beans.rangeService) {\n            return;\n        }\n        var endCell = this.beans.rangeService.extendLatestRangeInDirection(event);\n        if (endCell) {\n            this.beans.navigationService.ensureCellVisible(endCell);\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onTabKeyDown = function (event) {\n        this.beans.navigationService.onTabKeyDown(this.cellCtrl, event);\n    };\n    CellKeyboardListenerFeature.prototype.onBackspaceOrDeleteKeyPressed = function (key, event) {\n        if (!this.cellCtrl.isEditing()) {\n            this.cellCtrl.startRowOrCellEdit(key, undefined, event);\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onEnterKeyDown = function (e) {\n        if (this.cellCtrl.isEditing() || this.rowCtrl.isEditing()) {\n            this.cellCtrl.stopEditingAndFocus();\n        }\n        else {\n            if (this.beans.gridOptionsWrapper.isEnterMovesDown()) {\n                this.beans.navigationService.navigateToNextCell(null, KeyCode.DOWN, this.cellCtrl.getCellPosition(), false);\n            }\n            else {\n                this.cellCtrl.startRowOrCellEdit(KeyCode.ENTER, undefined, e);\n                if (this.cellCtrl.isEditing()) {\n                    // if we started editing, then we need to prevent default, otherwise the Enter action can get\n                    // applied to the cell editor. this happened, for example, with largeTextCellEditor where not\n                    // preventing default results in a 'new line' character getting inserted in the text area\n                    // when the editing was started\n                    e.preventDefault();\n                }\n            }\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onF2KeyDown = function (event) {\n        if (!this.cellCtrl.isEditing()) {\n            this.cellCtrl.startRowOrCellEdit(KeyCode.F2, undefined, event);\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onEscapeKeyDown = function (event) {\n        if (this.cellCtrl.isEditing()) {\n            this.cellCtrl.stopRowOrCellEdit(true);\n            this.cellCtrl.focusCell(true);\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onKeyPress = function (event) {\n        // check this, in case focus is on a (for example) a text field inside the cell,\n        // in which cse we should not be listening for these key pressed\n        var eventTarget = event.target;\n        var eventOnChildComponent = eventTarget !== this.eGui;\n        if (eventOnChildComponent || this.cellCtrl.isEditing()) {\n            return;\n        }\n        var pressedChar = String.fromCharCode(event.charCode);\n        if (pressedChar === ' ') {\n            this.onSpaceKeyPressed(event);\n        }\n        else if (isEventFromPrintableCharacter(event)) {\n            this.cellCtrl.startRowOrCellEdit(null, pressedChar, event);\n            // if we don't prevent default, then the keypress also gets applied to the text field\n            // (at least when doing the default editor), but we need to allow the editor to decide\n            // what it wants to do. we only do this IF editing was started - otherwise it messes\n            // up when the use is not doing editing, but using rendering with text fields in cellRenderer\n            // (as it would block the the user from typing into text fields).\n            event.preventDefault();\n        }\n    };\n    CellKeyboardListenerFeature.prototype.onSpaceKeyPressed = function (event) {\n        var gridOptionsWrapper = this.beans.gridOptionsWrapper;\n        if (!this.cellCtrl.isEditing() && gridOptionsWrapper.isRowSelection()) {\n            var currentSelection = this.rowNode.isSelected();\n            var newSelection = !currentSelection;\n            if (newSelection || !gridOptionsWrapper.isSuppressRowDeselection()) {\n                var groupSelectsFiltered = this.beans.gridOptionsWrapper.isGroupSelectsFiltered();\n                var updatedCount = this.rowNode.setSelectedParams({\n                    newValue: newSelection,\n                    rangeSelect: event.shiftKey,\n                    groupSelectsFiltered: groupSelectsFiltered\n                });\n                if (currentSelection === undefined && updatedCount === 0) {\n                    this.rowNode.setSelectedParams({\n                        newValue: false,\n                        rangeSelect: event.shiftKey,\n                        groupSelectsFiltered: groupSelectsFiltered\n                    });\n                }\n            }\n        }\n        // prevent default as space key, by default, moves browser scroll down\n        event.preventDefault();\n    };\n    CellKeyboardListenerFeature.prototype.destroy = function () {\n    };\n    return CellKeyboardListenerFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$Z = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$O = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DndSourceComp = /** @class */ (function (_super) {\n    __extends$Z(DndSourceComp, _super);\n    function DndSourceComp(rowNode, column, beans, eCell) {\n        var _this = _super.call(this, \"<div class=\\\"ag-drag-handle ag-row-drag\\\" draggable=\\\"true\\\"></div>\") || this;\n        _this.rowNode = rowNode;\n        _this.column = column;\n        _this.beans = beans;\n        _this.eCell = eCell;\n        return _this;\n    }\n    DndSourceComp.prototype.postConstruct = function () {\n        var eGui = this.getGui();\n        eGui.appendChild(createIconNoSpan('rowDrag', this.beans.gridOptionsWrapper, null));\n        // we need to stop the event propagation here to avoid starting a range selection while dragging\n        this.addGuiEventListener('mousedown', function (e) {\n            e.stopPropagation();\n        });\n        this.addDragSource();\n        this.checkVisibility();\n    };\n    DndSourceComp.prototype.addDragSource = function () {\n        this.addGuiEventListener('dragstart', this.onDragStart.bind(this));\n    };\n    DndSourceComp.prototype.onDragStart = function (dragEvent) {\n        var _this = this;\n        var providedOnRowDrag = this.column.getColDef().dndSourceOnRowDrag;\n        dragEvent.dataTransfer.setDragImage(this.eCell, 0, 0);\n        // default behaviour is to convert data to json and set into drag component\n        var defaultOnRowDrag = function () {\n            try {\n                var jsonData = JSON.stringify(_this.rowNode.data);\n                dragEvent.dataTransfer.setData('application/json', jsonData);\n                dragEvent.dataTransfer.setData('text/plain', jsonData);\n            }\n            catch (e) {\n                // if we cannot convert the data to json, then we do not set the type\n            }\n        };\n        if (providedOnRowDrag) {\n            var params = {\n                rowNode: this.rowNode, dragEvent: dragEvent,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            };\n            providedOnRowDrag(params);\n        }\n        else {\n            defaultOnRowDrag();\n        }\n    };\n    DndSourceComp.prototype.checkVisibility = function () {\n        var visible = this.column.isDndSource(this.rowNode);\n        this.setDisplayed(visible);\n    };\n    __decorate$O([\n        PostConstruct\n    ], DndSourceComp.prototype, \"postConstruct\", null);\n    return DndSourceComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$_ = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$b = (undefined && undefined.__assign) || function () {\n    __assign$b = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$b.apply(this, arguments);\n};\nvar CSS_CELL = 'ag-cell';\nvar CSS_AUTO_HEIGHT = 'ag-cell-auto-height';\nvar CSS_NORMAL_HEIGHT = 'ag-cell-normal-height';\nvar CSS_CELL_FOCUS = 'ag-cell-focus';\nvar CSS_CELL_FIRST_RIGHT_PINNED = 'ag-cell-first-right-pinned';\nvar CSS_CELL_LAST_LEFT_PINNED = 'ag-cell-last-left-pinned';\nvar CSS_CELL_NOT_INLINE_EDITING = 'ag-cell-not-inline-editing';\nvar CSS_CELL_INLINE_EDITING = 'ag-cell-inline-editing';\nvar CSS_CELL_POPUP_EDITING = 'ag-cell-popup-editing';\nvar CSS_COLUMN_HOVER = 'ag-column-hover';\nvar CSS_CELL_WRAP_TEXT = 'ag-cell-wrap-text';\nvar instanceIdSequence$1 = 0;\nvar CellCtrl = /** @class */ (function (_super) {\n    __extends$_(CellCtrl, _super);\n    function CellCtrl(column, rowNode, beans, rowCtrl) {\n        var _this = _super.call(this) || this;\n        _this.suppressRefreshCell = false;\n        _this.column = column;\n        _this.rowNode = rowNode;\n        _this.beans = beans;\n        _this.rowCtrl = rowCtrl;\n        // unique id to this instance, including the column ID to help with debugging in React as it's used in 'key'\n        _this.instanceId = column.getId() + '-' + instanceIdSequence$1++;\n        _this.createCellPosition();\n        _this.addFeatures();\n        return _this;\n    }\n    CellCtrl.prototype.addFeatures = function () {\n        var _this = this;\n        this.cellPositionFeature = new CellPositionFeature(this, this.beans);\n        this.addDestroyFunc(function () { return _this.cellPositionFeature.destroy(); });\n        this.cellCustomStyleFeature = new CellCustomStyleFeature(this, this.beans);\n        this.addDestroyFunc(function () { return _this.cellCustomStyleFeature.destroy(); });\n        this.cellMouseListenerFeature = new CellMouseListenerFeature(this, this.beans, this.column);\n        this.addDestroyFunc(function () { return _this.cellMouseListenerFeature.destroy(); });\n        this.cellKeyboardListenerFeature = new CellKeyboardListenerFeature(this, this.beans, this.column, this.rowNode, this.rowCtrl);\n        this.addDestroyFunc(function () { return _this.cellKeyboardListenerFeature.destroy(); });\n        var rangeSelectionEnabled = this.beans.rangeService && this.beans.gridOptionsWrapper.isEnableRangeSelection();\n        if (rangeSelectionEnabled) {\n            this.cellRangeFeature = new CellRangeFeature(this.beans, this);\n            this.addDestroyFunc(function () { return _this.cellRangeFeature.destroy(); });\n        }\n        this.addTooltipFeature();\n    };\n    CellCtrl.prototype.addTooltipFeature = function () {\n        var _this = this;\n        var getTooltipValue = function () {\n            var colDef = _this.column.getColDef();\n            var data = _this.rowNode.data;\n            if (colDef.tooltipField && exists(data)) {\n                return getValueUsingField(data, colDef.tooltipField, _this.column.isTooltipFieldContainsDots());\n            }\n            var valueGetter = colDef.tooltipValueGetter;\n            if (valueGetter) {\n                return valueGetter({\n                    location: 'cell',\n                    api: _this.beans.gridOptionsWrapper.getApi(),\n                    columnApi: _this.beans.gridOptionsWrapper.getColumnApi(),\n                    context: _this.beans.gridOptionsWrapper.getContext(),\n                    colDef: _this.column.getColDef(),\n                    column: _this.column,\n                    rowIndex: _this.cellPosition.rowIndex,\n                    node: _this.rowNode,\n                    data: _this.rowNode.data,\n                    value: _this.value,\n                    valueFormatted: _this.valueFormatted,\n                });\n            }\n            return null;\n        };\n        var tooltipCtrl = {\n            getColumn: function () { return _this.column; },\n            getColDef: function () { return _this.column.getColDef(); },\n            getRowIndex: function () { return _this.cellPosition.rowIndex; },\n            getRowNode: function () { return _this.rowNode; },\n            getGui: function () { return _this.getGui(); },\n            getLocation: function () { return 'cell'; },\n            getTooltipValue: getTooltipValue,\n            // this makes no sense, why is the cell formatted value passed to the tooltip???\n            getValueFormatted: function () { return _this.valueFormatted; }\n        };\n        this.tooltipFeature = new TooltipFeature(tooltipCtrl, this.beans);\n        this.addDestroyFunc(function () { return _this.tooltipFeature.destroy(); });\n    };\n    CellCtrl.prototype.setComp = function (comp, eGui, eCellWrapper, printLayout, startEditing) {\n        this.cellComp = comp;\n        this.gow = this.beans.gridOptionsWrapper;\n        this.eGui = eGui;\n        this.eCellWrapper = eCellWrapper;\n        this.printLayout = printLayout;\n        // we force to make sure formatter gets called at least once,\n        // even if value has not changed (is is undefined)\n        this.updateAndFormatValue(true);\n        this.addDomData();\n        this.onCellFocused();\n        this.applyStaticCssClasses();\n        this.setWrapText();\n        this.onFirstRightPinnedChanged();\n        this.onLastLeftPinnedChanged();\n        this.onColumnHover();\n        this.setupControlComps();\n        this.setupAutoHeight();\n        this.setAriaColIndex();\n        if (!this.gow.isSuppressCellFocus()) {\n            this.cellComp.setTabIndex(-1);\n        }\n        var colIdSanitised = escapeString(this.column.getId());\n        this.cellComp.setColId(colIdSanitised);\n        this.cellComp.setRole('gridcell');\n        this.cellPositionFeature.setComp(eGui);\n        this.cellCustomStyleFeature.setComp(comp);\n        this.tooltipFeature.setComp(comp);\n        this.cellKeyboardListenerFeature.setComp(this.eGui);\n        if (this.cellRangeFeature) {\n            this.cellRangeFeature.setComp(comp, eGui);\n        }\n        if (startEditing && this.isCellEditable()) {\n            this.startEditing();\n        }\n        else {\n            this.showValue();\n        }\n    };\n    CellCtrl.prototype.setupAutoHeight = function () {\n        var _this = this;\n        if (!this.column.isAutoHeight()) {\n            return;\n        }\n        var eAutoHeightContainer = this.eCellWrapper;\n        var eParentCell = eAutoHeightContainer.parentElement;\n        // taking minRowHeight from getRowHeightForNode means the getRowHeight() callback is used,\n        // thus allowing different min heights for different rows.\n        var minRowHeight = this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height;\n        var measureHeight = function (timesCalled) {\n            if (_this.editing) {\n                return;\n            }\n            // because of the retry's below, it's possible the retry's go beyond\n            // the rows life.\n            if (!_this.isAlive()) {\n                return;\n            }\n            var _a = getElementSize(eParentCell), paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom;\n            var wrapperHeight = eAutoHeightContainer.offsetHeight;\n            var autoHeight = wrapperHeight + paddingTop + paddingBottom;\n            if (timesCalled < 5) {\n                // if not in doc yet, means framework not yet inserted, so wait for next VM turn,\n                // maybe it will be ready next VM turn\n                var doc = _this.beans.gridOptionsWrapper.getDocument();\n                var notYetInDom = !doc || !doc.contains(eAutoHeightContainer);\n                // this happens in React, where React hasn't put any content in. we say 'possibly'\n                // as a) may not be React and b) the cell could be empty anyway\n                var possiblyNoContentYet = autoHeight == 0;\n                if (notYetInDom || possiblyNoContentYet) {\n                    _this.beans.frameworkOverrides.setTimeout(function () { return measureHeight(timesCalled + 1); }, 0);\n                    return;\n                }\n            }\n            var newHeight = Math.max(autoHeight, minRowHeight);\n            _this.rowNode.setRowAutoHeight(newHeight, _this.column);\n        };\n        var listener = function () { return measureHeight(0); };\n        // do once to set size in case size doesn't change, common when cell is blank\n        listener();\n        var destroyResizeObserver = this.beans.resizeObserverService.observeResize(eAutoHeightContainer, listener);\n        this.addDestroyFunc(function () {\n            destroyResizeObserver();\n            _this.rowNode.setRowAutoHeight(undefined, _this.column);\n        });\n    };\n    CellCtrl.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    CellCtrl.prototype.showValue = function (forceNewCellRendererInstance) {\n        if (forceNewCellRendererInstance === void 0) { forceNewCellRendererInstance = false; }\n        var valueToDisplay = this.valueFormatted != null ? this.valueFormatted : this.value;\n        var params = this.createCellRendererParams();\n        var compDetails = this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(), params);\n        this.cellComp.setRenderDetails(compDetails, valueToDisplay, forceNewCellRendererInstance);\n        this.refreshHandle();\n    };\n    CellCtrl.prototype.setupControlComps = function () {\n        var colDef = this.column.getColDef();\n        this.includeSelection = this.isIncludeControl(colDef.checkboxSelection);\n        this.includeRowDrag = this.isIncludeControl(colDef.rowDrag);\n        this.includeDndSource = this.isIncludeControl(colDef.dndSource);\n        this.cellComp.setIncludeSelection(this.includeSelection);\n        this.cellComp.setIncludeDndSource(this.includeDndSource);\n        this.cellComp.setIncludeRowDrag(this.includeRowDrag);\n    };\n    CellCtrl.prototype.isForceWrapper = function () {\n        // text selection requires the value to be wrapped in another element\n        var forceWrapper = this.beans.gridOptionsWrapper.isEnableCellTextSelection() || this.column.isAutoHeight();\n        return forceWrapper;\n    };\n    CellCtrl.prototype.isIncludeControl = function (value) {\n        var rowNodePinned = this.rowNode.rowPinned != null;\n        var isFunc = typeof value === 'function';\n        var res = rowNodePinned ? false : isFunc || value === true;\n        return res;\n    };\n    CellCtrl.prototype.refreshShouldDestroy = function () {\n        var colDef = this.column.getColDef();\n        var selectionChanged = this.includeSelection != this.isIncludeControl(colDef.checkboxSelection);\n        var rowDragChanged = this.includeRowDrag != this.isIncludeControl(colDef.rowDrag);\n        var dndSourceChanged = this.includeDndSource != this.isIncludeControl(colDef.dndSource);\n        return selectionChanged || rowDragChanged || dndSourceChanged;\n    };\n    // either called internally if single cell editing, or called by rowRenderer if row editing\n    CellCtrl.prototype.startEditing = function (key, charPress, cellStartedEdit, event) {\n        if (key === void 0) { key = null; }\n        if (charPress === void 0) { charPress = null; }\n        if (cellStartedEdit === void 0) { cellStartedEdit = false; }\n        if (event === void 0) { event = null; }\n        var _a, _b;\n        if (!this.isCellEditable() || this.editing) {\n            return;\n        }\n        var editorParams = this.createCellEditorParams(key, charPress, cellStartedEdit);\n        var colDef = this.column.getColDef();\n        var compDetails = this.beans.userComponentFactory.getCellEditorDetails(colDef, editorParams);\n        // if cellEditorSelector was used, we give preference to popup and popupPosition from the selector\n        var popup = ((_a = compDetails) === null || _a === void 0 ? void 0 : _a.popupFromSelector) != null ? compDetails.popupFromSelector : !!colDef.cellEditorPopup;\n        var position = ((_b = compDetails) === null || _b === void 0 ? void 0 : _b.popupPositionFromSelector) != null ? compDetails.popupPositionFromSelector : colDef.cellEditorPopupPosition;\n        this.setEditing(true, popup);\n        this.cellComp.setEditDetails(compDetails, popup, position);\n        var e = this.createEvent(event, Events.EVENT_CELL_EDITING_STARTED);\n        this.beans.eventService.dispatchEvent(e);\n    };\n    CellCtrl.prototype.setEditing = function (editing, inPopup) {\n        if (inPopup === void 0) { inPopup = false; }\n        if (this.editing === editing) {\n            return;\n        }\n        this.editing = editing;\n        this.editingInPopup = inPopup;\n        this.setInlineEditingClass();\n    };\n    // pass in 'true' to cancel the editing.\n    CellCtrl.prototype.stopRowOrCellEdit = function (cancel) {\n        if (cancel === void 0) { cancel = false; }\n        if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n            this.rowCtrl.stopRowEditing(cancel);\n        }\n        else {\n            this.stopEditing(cancel);\n        }\n    };\n    CellCtrl.prototype.onPopupEditorClosed = function () {\n        if (!this.isEditing()) {\n            return;\n        }\n        // note: this happens because of a click outside of the grid or if the popupEditor\n        // is closed with `Escape` key. if another cell was clicked, then the editing will\n        // have already stopped and returned on the conditional above.\n        this.stopEditingAndFocus();\n    };\n    CellCtrl.prototype.takeValueFromCellEditor = function (cancel) {\n        var noValueResult = { newValueExists: false };\n        if (cancel) {\n            return noValueResult;\n        }\n        var cellEditor = this.cellComp.getCellEditor();\n        if (!cellEditor) {\n            return noValueResult;\n        }\n        var userWantsToCancel = cellEditor.isCancelAfterEnd && cellEditor.isCancelAfterEnd();\n        if (userWantsToCancel) {\n            return noValueResult;\n        }\n        var newValue = cellEditor.getValue();\n        return {\n            newValue: newValue,\n            newValueExists: true\n        };\n    };\n    /**\n     * @returns `True` if the value changes, otherwise `False`.\n     */\n    CellCtrl.prototype.saveNewValue = function (oldValue, newValue) {\n        if (newValue === oldValue) {\n            return false;\n        }\n        if (this.beans.gridOptionsWrapper.isReadOnlyEdit()) {\n            this.dispatchEventForSaveValueReadOnly(oldValue, newValue);\n            return false;\n        }\n        // we suppressRefreshCell because the call to rowNode.setDataValue() results in change detection\n        // getting triggered, which results in all cells getting refreshed. we do not want this refresh\n        // to happen on this call as we want to call it explicitly below. otherwise refresh gets called twice.\n        // if we only did this refresh (and not the one below) then the cell would flash and not be forced.\n        this.suppressRefreshCell = true;\n        var valueChanged = this.rowNode.setDataValue(this.column, newValue);\n        this.suppressRefreshCell = false;\n        return valueChanged;\n    };\n    CellCtrl.prototype.dispatchEventForSaveValueReadOnly = function (oldValue, newValue) {\n        var rowNode = this.rowNode;\n        var event = {\n            type: Events.EVENT_CELL_EDIT_REQUEST,\n            event: null,\n            rowIndex: rowNode.rowIndex,\n            rowPinned: rowNode.rowPinned,\n            column: this.column,\n            api: this.beans.gridApi,\n            columnApi: this.beans.columnApi,\n            colDef: this.column.getColDef(),\n            context: this.beans.gridOptionsWrapper.getContext(),\n            data: rowNode.data,\n            node: rowNode,\n            oldValue: oldValue,\n            newValue: newValue,\n            value: newValue,\n            source: undefined\n        };\n        this.beans.eventService.dispatchEvent(event);\n    };\n    /**\n     * Ends the Cell Editing\n     * @param cancel `True` if the edit process is being canceled.\n     * @returns `True` if the value of the `GridCell` has been updated, otherwise `False`.\n     */\n    CellCtrl.prototype.stopEditing = function (cancel) {\n        if (cancel === void 0) { cancel = false; }\n        if (!this.editing) {\n            return false;\n        }\n        var _a = this.takeValueFromCellEditor(cancel), newValue = _a.newValue, newValueExists = _a.newValueExists;\n        var oldValue = this.getValueFromValueService();\n        var valueChanged = false;\n        if (newValueExists) {\n            valueChanged = this.saveNewValue(oldValue, newValue);\n        }\n        this.setEditing(false);\n        this.cellComp.setEditDetails(); // passing nothing stops editing\n        this.updateAndFormatValue();\n        this.refreshCell({ forceRefresh: true, suppressFlash: true });\n        this.dispatchEditingStoppedEvent(oldValue, newValue);\n        return valueChanged;\n    };\n    CellCtrl.prototype.dispatchEditingStoppedEvent = function (oldValue, newValue) {\n        var editingStoppedEvent = __assign$b(__assign$b({}, this.createEvent(null, Events.EVENT_CELL_EDITING_STOPPED)), { oldValue: oldValue,\n            newValue: newValue });\n        this.beans.eventService.dispatchEvent(editingStoppedEvent);\n    };\n    // if we are editing inline, then we don't have the padding in the cell (set in the themes)\n    // to allow the text editor full access to the entire cell\n    CellCtrl.prototype.setInlineEditingClass = function () {\n        if (!this.isAlive()) {\n            return;\n        }\n        // ag-cell-inline-editing - appears when user is inline editing\n        // ag-cell-not-inline-editing - appears when user is no inline editing\n        // ag-cell-popup-editing - appears when user is editing cell in popup (appears on the cell, not on the popup)\n        // note: one of {ag-cell-inline-editing, ag-cell-not-inline-editing} is always present, they toggle.\n        //       however {ag-cell-popup-editing} shows when popup, so you have both {ag-cell-popup-editing}\n        //       and {ag-cell-not-inline-editing} showing at the same time.\n        var editingInline = this.editing && !this.editingInPopup;\n        var popupEditorShowing = this.editing && this.editingInPopup;\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_INLINE_EDITING, editingInline);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_NOT_INLINE_EDITING, !editingInline);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_POPUP_EDITING, popupEditorShowing);\n        this.rowCtrl.setInlineEditingCss(this.editing);\n    };\n    // this is needed as the JS CellComp still allows isPopup() on the CellEditor class, so\n    // it's possible the editor is in a popup even though it's not configured via the colDef as so\n    CellCtrl.prototype.hackSayEditingInPopup = function () {\n        if (this.editingInPopup) {\n            return;\n        }\n        this.editingInPopup = true;\n        this.setInlineEditingClass();\n    };\n    CellCtrl.prototype.createCellEditorParams = function (key, charPress, cellStartedEdit) {\n        var res = {\n            value: this.getValueFromValueService(),\n            key: key,\n            eventKey: key,\n            charPress: charPress,\n            column: this.column,\n            colDef: this.column.getColDef(),\n            rowIndex: this.getCellPosition().rowIndex,\n            node: this.rowNode,\n            data: this.rowNode.data,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            cellStartedEdit: cellStartedEdit,\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext(),\n            onKeyDown: this.onKeyDown.bind(this),\n            stopEditing: this.stopEditingAndFocus.bind(this),\n            eGridCell: this.getGui(),\n            parseValue: this.parseValue.bind(this),\n            formatValue: this.formatValue.bind(this)\n        };\n        return res;\n    };\n    CellCtrl.prototype.createCellRendererParams = function () {\n        var _this = this;\n        var addRowCompListener = function (eventType, listener) {\n            console.warn('AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided.');\n            _this.rowCtrl.addEventListener(eventType, listener);\n        };\n        var res = {\n            value: this.value,\n            valueFormatted: this.valueFormatted,\n            getValue: this.getValueFromValueService.bind(this),\n            setValue: function (value) { return _this.beans.valueService.setValue(_this.rowNode, _this.column, value); },\n            formatValue: this.formatValue.bind(this),\n            data: this.rowNode.data,\n            node: this.rowNode,\n            colDef: this.column.getColDef(),\n            column: this.column,\n            rowIndex: this.getCellPosition().rowIndex,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext(),\n            refreshCell: this.refreshCell.bind(this),\n            eGridCell: this.getGui(),\n            eParentOfValue: this.cellComp.getParentOfValue(),\n            registerRowDragger: function (rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) { return _this.registerRowDragger(rowDraggerElement, dragStartPixels, suppressVisibilityChange); },\n            // this function is not documented anywhere, so we could drop it\n            // it was in the olden days to allow user to register for when rendered\n            // row was removed (the row comp was removed), however now that the user\n            // can provide components for cells, the destroy method gets call when this\n            // happens so no longer need to fire event.\n            addRowCompListener: addRowCompListener\n        };\n        return res;\n    };\n    CellCtrl.prototype.parseValue = function (newValue) {\n        var colDef = this.column.getColDef();\n        var params = {\n            node: this.rowNode,\n            data: this.rowNode.data,\n            oldValue: this.getValue(),\n            newValue: newValue,\n            colDef: colDef,\n            column: this.column,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext()\n        };\n        var valueParser = colDef.valueParser;\n        return exists(valueParser) ? this.beans.expressionService.evaluate(valueParser, params) : newValue;\n    };\n    CellCtrl.prototype.setFocusOutOnEditor = function () {\n        if (!this.editing) {\n            return;\n        }\n        var cellEditor = this.cellComp.getCellEditor();\n        if (cellEditor && cellEditor.focusOut) {\n            cellEditor.focusOut();\n        }\n    };\n    CellCtrl.prototype.setFocusInOnEditor = function () {\n        if (!this.editing) {\n            return;\n        }\n        var cellEditor = this.cellComp.getCellEditor();\n        if (cellEditor && cellEditor.focusIn) {\n            // if the editor is present, then we just focus it\n            cellEditor.focusIn();\n        }\n        else {\n            // if the editor is not present, it means async cell editor (eg React fibre)\n            // and we are trying to set focus before the cell editor is present, so we\n            // focus the cell instead\n            this.focusCell(true);\n        }\n    };\n    CellCtrl.prototype.onCellChanged = function (event) {\n        // because of async in React, the cellComp may not be set yet, if no cellComp then we are\n        // yet to initialise the cell, so no need to refresh.\n        if (!this.cellComp) {\n            return;\n        }\n        var eventImpactsThisCell = event.column === this.column;\n        if (eventImpactsThisCell) {\n            this.refreshCell({});\n        }\n    };\n    // + stop editing {forceRefresh: true, suppressFlash: true}\n    // + event cellChanged {}\n    // + cellRenderer.params.refresh() {} -> method passes 'as is' to the cellRenderer, so params could be anything\n    // + rowCtrl: event dataChanged {suppressFlash: !update, newData: !update}\n    // + rowCtrl: api refreshCells() {animate: true/false}\n    // + rowRenderer: api softRefreshView() {}\n    CellCtrl.prototype.refreshCell = function (params) {\n        // if we are in the middle of 'stopEditing', then we don't refresh here, as refresh gets called explicitly\n        if (this.suppressRefreshCell || this.editing) {\n            return;\n        }\n        // In React, due to async, it's possible a refresh was asked for before the CellComp\n        // has been set. If this happens, we skip the refresh, as the cell is going to be\n        // initialised anyway once the CellComp is set.\n        if (!this.cellComp) {\n            return;\n        }\n        var colDef = this.column.getColDef();\n        var newData = params != null && !!params.newData;\n        var suppressFlash = (params != null && !!params.suppressFlash) || !!colDef.suppressCellFlash;\n        // we always refresh if cell has no value - this can happen when user provides Cell Renderer and the\n        // cell renderer doesn't rely on a value, instead it could be looking directly at the data, or maybe\n        // printing the current time (which would be silly)???. Generally speaking\n        // non of {field, valueGetter, showRowGroup} is bad in the users application, however for this edge case, it's\n        // best always refresh and take the performance hit rather than never refresh and users complaining in support\n        // that cells are not updating.\n        var noValueProvided = colDef.field == null && colDef.valueGetter == null && colDef.showRowGroup == null;\n        var forceRefresh = (params && params.forceRefresh) || noValueProvided || newData;\n        var valuesDifferent = this.updateAndFormatValue();\n        var dataNeedsUpdating = forceRefresh || valuesDifferent;\n        if (dataNeedsUpdating) {\n            // if it's 'new data', then we don't refresh the cellRenderer, even if refresh method is available.\n            // this is because if the whole data is new (ie we are showing stock price 'BBA' now and not 'SSD')\n            // then we are not showing a movement in the stock price, rather we are showing different stock.\n            this.showValue(newData);\n            // we don't want to flash the cells when processing a filter change, as otherwise the UI would\n            // be to busy. see comment in FilterManager with regards processingFilterChange\n            var processingFilterChange = this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();\n            var flashCell = !suppressFlash && !processingFilterChange &&\n                (this.beans.gridOptionsWrapper.isEnableCellChangeFlash() || colDef.enableCellChangeFlash);\n            if (flashCell) {\n                this.flashCell();\n            }\n            this.cellCustomStyleFeature.applyUserStyles();\n            this.cellCustomStyleFeature.applyClassesFromColDef();\n        }\n        this.refreshToolTip();\n        // we do cellClassRules even if the value has not changed, so that users who have rules that\n        // look at other parts of the row (where the other part of the row might of changed) will work.\n        this.cellCustomStyleFeature.applyCellClassRules();\n    };\n    // cell editors call this, when they want to stop for reasons other\n    // than what we pick up on. eg selecting from a dropdown ends editing.\n    CellCtrl.prototype.stopEditingAndFocus = function (suppressNavigateAfterEdit) {\n        if (suppressNavigateAfterEdit === void 0) { suppressNavigateAfterEdit = false; }\n        this.stopRowOrCellEdit();\n        this.focusCell(true);\n        if (!suppressNavigateAfterEdit) {\n            this.navigateAfterEdit();\n        }\n    };\n    CellCtrl.prototype.navigateAfterEdit = function () {\n        var fullRowEdit = this.beans.gridOptionsWrapper.isFullRowEdit();\n        if (fullRowEdit) {\n            return;\n        }\n        var enterMovesDownAfterEdit = this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit();\n        if (enterMovesDownAfterEdit) {\n            this.beans.navigationService.navigateToNextCell(null, KeyCode.DOWN, this.getCellPosition(), false);\n        }\n    };\n    // user can also call this via API\n    CellCtrl.prototype.flashCell = function (delays) {\n        var flashDelay = delays && delays.flashDelay;\n        var fadeDelay = delays && delays.fadeDelay;\n        this.animateCell('data-changed', flashDelay, fadeDelay);\n    };\n    CellCtrl.prototype.animateCell = function (cssName, flashDelay, fadeDelay) {\n        var _this = this;\n        var fullName = \"ag-cell-\" + cssName;\n        var animationFullName = \"ag-cell-\" + cssName + \"-animation\";\n        var gridOptionsWrapper = this.beans.gridOptionsWrapper;\n        if (!flashDelay) {\n            flashDelay = gridOptionsWrapper.getCellFlashDelay();\n        }\n        if (!exists(fadeDelay)) {\n            fadeDelay = gridOptionsWrapper.getCellFadeDelay();\n        }\n        // we want to highlight the cells, without any animation\n        this.cellComp.addOrRemoveCssClass(fullName, true);\n        this.cellComp.addOrRemoveCssClass(animationFullName, false);\n        // then once that is applied, we remove the highlight with animation\n        window.setTimeout(function () {\n            _this.cellComp.addOrRemoveCssClass(fullName, false);\n            _this.cellComp.addOrRemoveCssClass(animationFullName, true);\n            _this.eGui.style.transition = \"background-color \" + fadeDelay + \"ms\";\n            window.setTimeout(function () {\n                // and then to leave things as we got them, we remove the animation\n                _this.cellComp.addOrRemoveCssClass(animationFullName, false);\n                _this.eGui.style.transition = '';\n            }, fadeDelay);\n        }, flashDelay);\n    };\n    CellCtrl.prototype.onFlashCells = function (event) {\n        if (!this.cellComp) {\n            return;\n        }\n        var cellId = this.beans.cellPositionUtils.createId(this.getCellPosition());\n        var shouldFlash = event.cells[cellId];\n        if (shouldFlash) {\n            this.animateCell('highlight');\n        }\n    };\n    CellCtrl.prototype.isCellEditable = function () {\n        return this.column.isCellEditable(this.rowNode);\n    };\n    CellCtrl.prototype.isSuppressFillHandle = function () {\n        return this.column.isSuppressFillHandle();\n    };\n    CellCtrl.prototype.formatValue = function (value) {\n        var res = this.callValueFormatter(value);\n        return res != null ? res : value;\n    };\n    CellCtrl.prototype.callValueFormatter = function (value) {\n        return this.beans.valueFormatterService.formatValue(this.column, this.rowNode, value);\n    };\n    CellCtrl.prototype.updateAndFormatValue = function (force) {\n        if (force === void 0) { force = false; }\n        var oldValue = this.value;\n        var oldValueFormatted = this.valueFormatted;\n        this.value = this.getValueFromValueService();\n        this.valueFormatted = this.callValueFormatter(this.value);\n        var valuesDifferent = force ? true :\n            !this.valuesAreEqual(oldValue, this.value) || this.valueFormatted != oldValueFormatted;\n        return valuesDifferent;\n    };\n    CellCtrl.prototype.valuesAreEqual = function (val1, val2) {\n        // if the user provided an equals method, use that, otherwise do simple comparison\n        var colDef = this.column.getColDef();\n        return colDef.equals ? colDef.equals(val1, val2) : val1 === val2;\n    };\n    CellCtrl.prototype.getComp = function () {\n        return this.cellComp;\n    };\n    CellCtrl.prototype.getValueFromValueService = function () {\n        // if we don't check this, then the grid will render leaf groups as open even if we are not\n        // allowing the user to open leaf groups. confused? remember for pivot mode we don't allow\n        // opening leaf groups, so we have to force leafGroups to be closed in case the user expanded\n        // them via the API, or user user expanded them in the UI before turning on pivot mode\n        var lockedClosedGroup = this.rowNode.leafGroup && this.beans.columnModel.isPivotMode();\n        var isOpenGroup = this.rowNode.group && this.rowNode.expanded && !this.rowNode.footer && !lockedClosedGroup;\n        // are we showing group footers\n        var groupFootersEnabled = this.beans.gridOptionsWrapper.isGroupIncludeFooter();\n        // if doing footers, we normally don't show agg data at group level when group is open\n        var groupAlwaysShowAggData = this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();\n        // if doing grouping and footers, we don't want to include the agg value\n        // in the header when the group is open\n        var ignoreAggData = (isOpenGroup && groupFootersEnabled) && !groupAlwaysShowAggData;\n        var value = this.beans.valueService.getValue(this.column, this.rowNode, false, ignoreAggData);\n        return value;\n    };\n    CellCtrl.prototype.getValue = function () {\n        return this.value;\n    };\n    CellCtrl.prototype.getValueFormatted = function () {\n        return this.valueFormatted;\n    };\n    CellCtrl.prototype.addDomData = function () {\n        var _this = this;\n        var element = this.getGui();\n        this.beans.gridOptionsWrapper.setDomData(element, CellCtrl.DOM_DATA_KEY_CELL_CTRL, this);\n        this.addDestroyFunc(function () { return _this.beans.gridOptionsWrapper.setDomData(element, CellCtrl.DOM_DATA_KEY_CELL_CTRL, null); });\n    };\n    CellCtrl.prototype.createEvent = function (domEvent, eventType) {\n        var event = {\n            type: eventType,\n            node: this.rowNode,\n            data: this.rowNode.data,\n            value: this.value,\n            column: this.column,\n            colDef: this.column.getColDef(),\n            context: this.beans.gridOptionsWrapper.getContext(),\n            api: this.beans.gridApi,\n            columnApi: this.beans.columnApi,\n            rowPinned: this.rowNode.rowPinned,\n            event: domEvent,\n            rowIndex: this.rowNode.rowIndex\n        };\n        return event;\n    };\n    CellCtrl.prototype.onKeyPress = function (event) {\n        this.cellKeyboardListenerFeature.onKeyPress(event);\n    };\n    CellCtrl.prototype.onKeyDown = function (event) {\n        this.cellKeyboardListenerFeature.onKeyDown(event);\n    };\n    CellCtrl.prototype.onMouseEvent = function (eventName, mouseEvent) {\n        this.cellMouseListenerFeature.onMouseEvent(eventName, mouseEvent);\n    };\n    CellCtrl.prototype.getGui = function () {\n        return this.eGui;\n    };\n    CellCtrl.prototype.refreshToolTip = function () {\n        this.tooltipFeature.refreshToolTip();\n    };\n    CellCtrl.prototype.getColSpanningList = function () {\n        return this.cellPositionFeature.getColSpanningList();\n    };\n    CellCtrl.prototype.onLeftChanged = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        this.cellPositionFeature.onLeftChanged();\n    };\n    CellCtrl.prototype.onDisplayedColumnsChanged = function () {\n        if (!this.eGui) {\n            return;\n        }\n        this.setAriaColIndex();\n    };\n    CellCtrl.prototype.setAriaColIndex = function () {\n        var colIdx = this.beans.columnModel.getAriaColumnIndex(this.column);\n        setAriaColIndex(this.getGui(), colIdx); // for react, we don't use JSX, as it slowed down column moving\n    };\n    CellCtrl.prototype.isSuppressNavigable = function () {\n        return this.column.isSuppressNavigable(this.rowNode);\n    };\n    CellCtrl.prototype.onWidthChanged = function () {\n        return this.cellPositionFeature.onWidthChanged();\n    };\n    CellCtrl.prototype.getColumn = function () {\n        return this.column;\n    };\n    CellCtrl.prototype.getRowNode = function () {\n        return this.rowNode;\n    };\n    CellCtrl.prototype.getBeans = function () {\n        return this.beans;\n    };\n    CellCtrl.prototype.isPrintLayout = function () {\n        return this.printLayout;\n    };\n    CellCtrl.prototype.appendChild = function (htmlElement) {\n        this.eGui.appendChild(htmlElement);\n    };\n    CellCtrl.prototype.refreshHandle = function () {\n        if (this.editing) {\n            return;\n        }\n        if (this.cellRangeFeature) {\n            this.cellRangeFeature.refreshHandle();\n        }\n    };\n    CellCtrl.prototype.getCellPosition = function () {\n        return this.cellPosition;\n    };\n    CellCtrl.prototype.isEditing = function () {\n        return this.editing;\n    };\n    // called by rowRenderer when user navigates via tab key\n    CellCtrl.prototype.startRowOrCellEdit = function (key, charPress, event) {\n        if (event === void 0) { event = null; }\n        if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n            this.rowCtrl.startRowEditing(key, charPress, this);\n        }\n        else {\n            this.startEditing(key, charPress, true, event);\n        }\n    };\n    CellCtrl.prototype.getRowCtrl = function () {\n        return this.rowCtrl;\n    };\n    CellCtrl.prototype.getRowPosition = function () {\n        return {\n            rowIndex: this.cellPosition.rowIndex,\n            rowPinned: this.cellPosition.rowPinned\n        };\n    };\n    CellCtrl.prototype.updateRangeBordersIfRangeCount = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        if (this.cellRangeFeature) {\n            this.cellRangeFeature.updateRangeBordersIfRangeCount();\n        }\n    };\n    CellCtrl.prototype.onRangeSelectionChanged = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        if (this.cellRangeFeature) {\n            this.cellRangeFeature.onRangeSelectionChanged();\n        }\n    };\n    CellCtrl.prototype.isRangeSelectionEnabled = function () {\n        return this.cellRangeFeature != null;\n    };\n    CellCtrl.prototype.focusCell = function (forceBrowserFocus) {\n        if (forceBrowserFocus === void 0) { forceBrowserFocus = false; }\n        this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex, this.column, this.rowNode.rowPinned, forceBrowserFocus);\n    };\n    CellCtrl.prototype.onRowIndexChanged = function () {\n        // when index changes, this influences items that need the index, so we update the\n        // grid cell so they are working off the new index.\n        this.createCellPosition();\n        // when the index of the row changes, ie means the cell may have lost or gained focus\n        this.onCellFocused();\n        // check range selection\n        if (this.cellRangeFeature) {\n            this.cellRangeFeature.onRangeSelectionChanged();\n        }\n    };\n    CellCtrl.prototype.onFirstRightPinnedChanged = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        var firstRightPinned = this.column.isFirstRightPinned();\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_FIRST_RIGHT_PINNED, firstRightPinned);\n    };\n    CellCtrl.prototype.onLastLeftPinnedChanged = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        var lastLeftPinned = this.column.isLastLeftPinned();\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_LAST_LEFT_PINNED, lastLeftPinned);\n    };\n    CellCtrl.prototype.onCellFocused = function (event) {\n        if (!this.cellComp || this.gow.isSuppressCellFocus()) {\n            return;\n        }\n        var cellFocused = this.beans.focusService.isCellFocused(this.cellPosition);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_FOCUS, cellFocused);\n        // see if we need to force browser focus - this can happen if focus is programmatically set\n        if (cellFocused && event && event.forceBrowserFocus) {\n            var focusEl = this.cellComp.getFocusableElement();\n            focusEl.focus();\n        }\n        // if another cell was focused, and we are editing, then stop editing\n        var fullRowEdit = this.beans.gridOptionsWrapper.isFullRowEdit();\n        if (!cellFocused && !fullRowEdit && this.editing) {\n            this.stopRowOrCellEdit();\n        }\n    };\n    CellCtrl.prototype.createCellPosition = function () {\n        this.cellPosition = {\n            rowIndex: this.rowNode.rowIndex,\n            rowPinned: makeNull(this.rowNode.rowPinned),\n            column: this.column\n        };\n    };\n    // CSS Classes that only get applied once, they never change\n    CellCtrl.prototype.applyStaticCssClasses = function () {\n        this.cellComp.addOrRemoveCssClass(CSS_CELL, true);\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_NOT_INLINE_EDITING, true);\n        // normal cells fill the height of the row. autoHeight cells have no height to let them\n        // fit the height of content.\n        var autoHeight = this.column.isAutoHeight() == true;\n        this.cellComp.addOrRemoveCssClass(CSS_AUTO_HEIGHT, autoHeight);\n        this.cellComp.addOrRemoveCssClass(CSS_NORMAL_HEIGHT, !autoHeight);\n    };\n    CellCtrl.prototype.onColumnHover = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        if (!this.beans.gridOptionsWrapper.isColumnHoverHighlight()) {\n            return;\n        }\n        var isHovered = this.beans.columnHoverService.isHovered(this.column);\n        this.cellComp.addOrRemoveCssClass(CSS_COLUMN_HOVER, isHovered);\n    };\n    CellCtrl.prototype.onNewColumnsLoaded = function () {\n        if (!this.cellComp) {\n            return;\n        }\n        this.setWrapText();\n        if (!this.editing) {\n            this.refreshCell({ forceRefresh: true, suppressFlash: true });\n        }\n    };\n    CellCtrl.prototype.setWrapText = function () {\n        var value = this.column.getColDef().wrapText == true;\n        this.cellComp.addOrRemoveCssClass(CSS_CELL_WRAP_TEXT, value);\n    };\n    CellCtrl.prototype.dispatchCellContextMenuEvent = function (event) {\n        var colDef = this.column.getColDef();\n        var cellContextMenuEvent = this.createEvent(event, Events.EVENT_CELL_CONTEXT_MENU);\n        this.beans.eventService.dispatchEvent(cellContextMenuEvent);\n        if (colDef.onCellContextMenu) {\n            // to make the callback async, do in a timeout\n            window.setTimeout(function () { return colDef.onCellContextMenu(cellContextMenuEvent); }, 0);\n        }\n    };\n    CellCtrl.prototype.getCellRenderer = function () {\n        return this.cellComp ? this.cellComp.getCellRenderer() : null;\n    };\n    CellCtrl.prototype.getCellEditor = function () {\n        return this.cellComp ? this.cellComp.getCellEditor() : null;\n    };\n    CellCtrl.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n    };\n    CellCtrl.prototype.createSelectionCheckbox = function () {\n        var cbSelectionComponent = new CheckboxSelectionComponent();\n        this.beans.context.createBean(cbSelectionComponent);\n        cbSelectionComponent.init({ rowNode: this.rowNode, column: this.column });\n        // put the checkbox in before the value\n        return cbSelectionComponent;\n    };\n    CellCtrl.prototype.createDndSource = function () {\n        var dndSourceComp = new DndSourceComp(this.rowNode, this.column, this.beans, this.eGui);\n        this.beans.context.createBean(dndSourceComp);\n        return dndSourceComp;\n    };\n    CellCtrl.prototype.registerRowDragger = function (customElement, dragStartPixels, suppressVisibilityChange) {\n        var _this = this;\n        // if previously existed, then we are only updating\n        if (this.customRowDragComp) {\n            this.customRowDragComp.setDragElement(customElement, dragStartPixels);\n            return;\n        }\n        var newComp = this.createRowDragComp(customElement, dragStartPixels, suppressVisibilityChange);\n        if (newComp) {\n            this.customRowDragComp = newComp;\n            this.addDestroyFunc(function () { return _this.beans.context.destroyBean(newComp); });\n        }\n    };\n    CellCtrl.prototype.createRowDragComp = function (customElement, dragStartPixels, suppressVisibilityChange) {\n        var _this = this;\n        var pagination = this.beans.gridOptionsWrapper.isPagination();\n        var rowDragManaged = this.beans.gridOptionsWrapper.isRowDragManaged();\n        var clientSideRowModelActive = this.beans.gridOptionsWrapper.isRowModelDefault();\n        if (rowDragManaged) {\n            // row dragging only available in default row model\n            if (!clientSideRowModelActive) {\n                doOnce(function () { return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model'); }, 'CellComp.addRowDragging');\n                return;\n            }\n            if (pagination) {\n                doOnce(function () { return console.warn('AG Grid: managed row dragging is not possible when doing pagination'); }, 'CellComp.addRowDragging');\n                return;\n            }\n        }\n        // otherwise (normal case) we are creating a RowDraggingComp for the first time\n        var rowDragComp = new RowDragComp(function () { return _this.value; }, this.rowNode, this.column, customElement, dragStartPixels, suppressVisibilityChange);\n        this.beans.context.createBean(rowDragComp);\n        return rowDragComp;\n    };\n    CellCtrl.DOM_DATA_KEY_CELL_CTRL = 'cellCtrl';\n    return CellCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$$ = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __read$8 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$6 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$8(arguments[i]));\n    return ar;\n};\nvar RowType;\n(function (RowType) {\n    RowType[\"Normal\"] = \"Normal\";\n    RowType[\"FullWidth\"] = \"FullWidth\";\n    RowType[\"FullWidthLoading\"] = \"FullWidthLoading\";\n    RowType[\"FullWidthGroup\"] = \"FullWidthGroup\";\n    RowType[\"FullWidthDetail\"] = \"FullWidthDetail\";\n})(RowType || (RowType = {}));\nvar instanceIdSequence$2 = 0;\nvar RowCtrl = /** @class */ (function (_super) {\n    __extends$$(RowCtrl, _super);\n    function RowCtrl(rowNode, beans, animateIn, useAnimationFrameForCreate, printLayout) {\n        var _this = _super.call(this) || this;\n        _this.allRowGuis = [];\n        _this.active = true;\n        _this.centerCellCtrls = { list: [], map: {} };\n        _this.leftCellCtrls = { list: [], map: {} };\n        _this.rightCellCtrls = { list: [], map: {} };\n        _this.lastMouseDownOnDragger = false;\n        _this.updateColumnListsPending = false;\n        _this.beans = beans;\n        _this.rowNode = rowNode;\n        _this.paginationPage = _this.beans.paginationProxy.getCurrentPage();\n        _this.useAnimationFrameForCreate = useAnimationFrameForCreate;\n        _this.printLayout = printLayout;\n        _this.instanceId = rowNode.id + '-' + instanceIdSequence$2++;\n        _this.setAnimateFlags(animateIn);\n        _this.rowFocused = _this.beans.focusService.isRowFocused(_this.rowNode.rowIndex, _this.rowNode.rowPinned);\n        _this.rowLevel = _this.beans.rowCssClassCalculator.calculateRowLevel(_this.rowNode);\n        _this.setRowType();\n        _this.addListeners();\n        _this.setInitialRowTop();\n        return _this;\n    }\n    RowCtrl.prototype.getBeans = function () {\n        return this.beans;\n    };\n    RowCtrl.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    RowCtrl.prototype.setComp = function (rowComp, element, containerType) {\n        var gui = { rowComp: rowComp, element: element, containerType: containerType };\n        this.allRowGuis.push(gui);\n        if (containerType === exports.RowContainerType.LEFT) {\n            this.leftGui = gui;\n        }\n        else if (containerType === exports.RowContainerType.RIGHT) {\n            this.rightGui = gui;\n        }\n        else if (containerType === exports.RowContainerType.FULL_WIDTH) {\n            this.fullWidthGui = gui;\n        }\n        else {\n            this.centerGui = gui;\n        }\n        var allNormalPresent = this.leftGui != null && this.rightGui != null && this.centerGui != null;\n        var fullWidthPresent = this.fullWidthGui != null;\n        if (allNormalPresent || fullWidthPresent) {\n            this.initialiseRowComps();\n        }\n    };\n    RowCtrl.prototype.isCacheable = function () {\n        return this.rowType === RowType.FullWidthDetail\n            && this.beans.gridOptionsWrapper.isKeepDetailRows();\n    };\n    RowCtrl.prototype.setCached = function (cached) {\n        var displayValue = cached ? 'none' : '';\n        this.allRowGuis.forEach(function (rg) { return rg.element.style.display = displayValue; });\n    };\n    RowCtrl.prototype.initialiseRowComps = function () {\n        var _this = this;\n        var gow = this.beans.gridOptionsWrapper;\n        this.onRowHeightChanged();\n        this.updateRowIndexes();\n        this.setFocusedClasses();\n        this.setStylesFromGridOptions();\n        if (gow.isRowSelection() && this.rowNode.selectable) {\n            this.onRowSelected();\n        }\n        this.updateColumnLists(!this.useAnimationFrameForCreate);\n        if (this.slideRowIn) {\n            executeNextVMTurn(this.onTopChanged.bind(this));\n        }\n        if (this.fadeRowIn) {\n            executeNextVMTurn(function () {\n                _this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-opacity-zero', false); });\n            });\n        }\n        var businessKey = this.getRowBusinessKey();\n        var rowIdSanitised = escapeString(this.rowNode.id);\n        var businessKeySanitised = escapeString(businessKey);\n        this.allRowGuis.forEach(function (gui) {\n            var comp = gui.rowComp;\n            comp.setRole('row');\n            var initialRowClasses = _this.getInitialRowClasses(gui.containerType);\n            initialRowClasses.forEach(function (name) { return comp.addOrRemoveCssClass(name, true); });\n            if (_this.rowNode.group) {\n                setAriaExpanded(gui.element, _this.rowNode.expanded == true);\n            }\n            if (rowIdSanitised != null) {\n                comp.setRowId(rowIdSanitised);\n            }\n            if (businessKeySanitised != null) {\n                comp.setRowBusinessKey(businessKeySanitised);\n            }\n            if (_this.isFullWidth() && !_this.beans.gridOptionsWrapper.isSuppressCellFocus()) {\n                comp.setTabIndex(-1);\n            }\n            // DOM DATA\n            gow.setDomData(gui.element, RowCtrl.DOM_DATA_KEY_ROW_CTRL, _this);\n            _this.addDestroyFunc(function () { return gow.setDomData(gui.element, RowCtrl.DOM_DATA_KEY_ROW_CTRL, null); });\n            // adding hover functionality adds listener to this row, so we\n            // do it lazily in an animation frame\n            if (_this.useAnimationFrameForCreate) {\n                _this.beans.animationFrameService.createTask(_this.addHoverFunctionality.bind(_this, gui.element), _this.rowNode.rowIndex, 'createTasksP2');\n            }\n            else {\n                _this.addHoverFunctionality(gui.element);\n            }\n            if (_this.isFullWidth()) {\n                _this.setupFullWidth(gui);\n            }\n            if (gow.isRowDragEntireRow()) {\n                _this.addRowDraggerToRow(gui);\n            }\n            if (_this.useAnimationFrameForCreate) {\n                // the height animation we only want active after the row is alive for 1 second.\n                // this stops the row animation working when rows are initially crated. otherwise\n                // auto-height rows get inserted into the dom and resized immediately, which gives\n                // very bad UX (eg 10 rows get inserted, then all 10 expand, look particularly bad\n                // when scrolling). so this makes sure when rows are shown for the first time, they\n                // are resized immediately without animation.\n                _this.beans.animationFrameService.addDestroyTask(function () {\n                    if (!_this.isAlive()) {\n                        return;\n                    }\n                    gui.rowComp.addOrRemoveCssClass('ag-after-created', true);\n                });\n            }\n        });\n        this.executeProcessRowPostCreateFunc();\n    };\n    RowCtrl.prototype.addRowDraggerToRow = function (gui) {\n        var gow = this.beans.gridOptionsWrapper;\n        if (gow.isEnableRangeSelection()) {\n            doOnce(function () {\n                console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\\'t work with `enableRangeSelection: true`');\n            }, 'rowDragAndRangeSelectionEnabled');\n            return;\n        }\n        var rowDragComp = new RowDragComp(function () { return '1 row'; }, this.rowNode, undefined, gui.element, undefined, true);\n        this.createManagedBean(rowDragComp, this.beans.context);\n    };\n    RowCtrl.prototype.setupFullWidth = function (gui) {\n        var pinned = this.getPinnedForContainer(gui.containerType);\n        var params = this.createFullWidthParams(gui.element, pinned);\n        var masterDetailModuleLoaded = ModuleRegistry.isRegistered(exports.ModuleNames.MasterDetailModule);\n        if (this.rowType == RowType.FullWidthDetail && !masterDetailModuleLoaded) {\n            if (ModuleRegistry.isPackageBased()) {\n                console.warn(\"AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.\");\n            }\n            else {\n                console.warn(\"AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module \" + exports.ModuleNames.MasterDetailModule);\n            }\n            return;\n        }\n        var compDetails;\n        switch (this.rowType) {\n            case RowType.FullWidthDetail:\n                compDetails = this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(params);\n                break;\n            case RowType.FullWidthGroup:\n                compDetails = this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(params);\n                break;\n            case RowType.FullWidthLoading:\n                compDetails = this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(params);\n                break;\n            default:\n                compDetails = this.beans.userComponentFactory.getFullWidthCellRendererDetails(params);\n                break;\n        }\n        gui.rowComp.showFullWidth(compDetails);\n    };\n    RowCtrl.prototype.isPrintLayout = function () {\n        return this.printLayout;\n    };\n    // use by autoWidthCalculator, as it clones the elements\n    RowCtrl.prototype.getCellElement = function (column) {\n        var cellCtrl = this.getCellCtrl(column);\n        return cellCtrl ? cellCtrl.getGui() : null;\n    };\n    RowCtrl.prototype.executeProcessRowPostCreateFunc = function () {\n        var func = this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();\n        if (!func) {\n            return;\n        }\n        var params = {\n            eRow: this.centerGui ? this.centerGui.element : undefined,\n            ePinnedLeftRow: this.leftGui ? this.leftGui.element : undefined,\n            ePinnedRightRow: this.rightGui ? this.rightGui.element : undefined,\n            node: this.rowNode,\n            rowIndex: this.rowNode.rowIndex,\n            addRenderedRowListener: this.addEventListener.bind(this),\n        };\n        func(params);\n    };\n    RowCtrl.prototype.setRowType = function () {\n        var isStub = this.rowNode.stub;\n        var isFullWidthCell = this.rowNode.isFullWidthCell();\n        var isDetailCell = this.beans.doingMasterDetail && this.rowNode.detail;\n        var pivotMode = this.beans.columnModel.isPivotMode();\n        // we only use full width for groups, not footers. it wouldn't make sense to include footers if not looking\n        // for totals. if users complain about this, then we should introduce a new property 'footerUseEntireRow'\n        // so each can be set independently (as a customer complained about footers getting full width, hence\n        // introducing this logic)\n        var isGroupRow = !!this.rowNode.group && !this.rowNode.footer;\n        var isFullWidthGroup = isGroupRow && this.beans.gridOptionsWrapper.isGroupUseEntireRow(pivotMode);\n        if (isStub) {\n            this.rowType = RowType.FullWidthLoading;\n        }\n        else if (isDetailCell) {\n            this.rowType = RowType.FullWidthDetail;\n        }\n        else if (isFullWidthCell) {\n            this.rowType = RowType.FullWidth;\n        }\n        else if (isFullWidthGroup) {\n            this.rowType = RowType.FullWidthGroup;\n        }\n        else {\n            this.rowType = RowType.Normal;\n        }\n    };\n    RowCtrl.prototype.updateColumnLists = function (suppressAnimationFrame) {\n        var _this = this;\n        if (suppressAnimationFrame === void 0) { suppressAnimationFrame = false; }\n        if (this.isFullWidth()) {\n            return;\n        }\n        var noAnimation = suppressAnimationFrame\n            || this.beans.gridOptionsWrapper.isSuppressAnimationFrame()\n            || this.printLayout;\n        if (noAnimation) {\n            this.updateColumnListsImpl();\n            return;\n        }\n        if (this.updateColumnListsPending) {\n            return;\n        }\n        this.beans.animationFrameService.createTask(function () {\n            if (!_this.active) {\n                return;\n            }\n            _this.updateColumnListsImpl();\n        }, this.rowNode.rowIndex, 'createTasksP1');\n        this.updateColumnListsPending = true;\n    };\n    RowCtrl.prototype.createCellCtrls = function (prev, cols, pinned) {\n        var _this = this;\n        if (pinned === void 0) { pinned = null; }\n        var res = {\n            list: [],\n            map: {}\n        };\n        var addCell = function (colInstanceId, cellCtrl) {\n            res.list.push(cellCtrl);\n            res.map[colInstanceId] = cellCtrl;\n        };\n        cols.forEach(function (col) {\n            // we use instanceId's rather than colId as it's possible there is a Column with same Id,\n            // but it's referring to a different column instance. Happens a lot with pivot, as pivot col id's are\n            // reused eg pivot_0, pivot_1 etc\n            var colInstanceId = col.getInstanceId();\n            var cellCtrl = prev.map[colInstanceId];\n            if (!cellCtrl) {\n                cellCtrl = new CellCtrl(col, _this.rowNode, _this.beans, _this);\n            }\n            addCell(colInstanceId, cellCtrl);\n        });\n        prev.list.forEach(function (prevCellCtrl) {\n            var cellInResult = res.map[prevCellCtrl.getColumn().getInstanceId()] != null;\n            if (cellInResult) {\n                return;\n            }\n            var keepCell = !_this.isCellEligibleToBeRemoved(prevCellCtrl, pinned);\n            if (keepCell) {\n                addCell(prevCellCtrl.getColumn().getInstanceId(), prevCellCtrl);\n                return;\n            }\n            prevCellCtrl.destroy();\n        });\n        return res;\n    };\n    RowCtrl.prototype.updateColumnListsImpl = function () {\n        var _this = this;\n        this.updateColumnListsPending = false;\n        var columnModel = this.beans.columnModel;\n        if (this.printLayout) {\n            this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, columnModel.getAllDisplayedColumns());\n            this.leftCellCtrls = { list: [], map: {} };\n            this.rightCellCtrls = { list: [], map: {} };\n        }\n        else {\n            var centerCols = columnModel.getViewportCenterColumnsForRow(this.rowNode);\n            this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, centerCols);\n            var leftCols = columnModel.getDisplayedLeftColumnsForRow(this.rowNode);\n            this.leftCellCtrls = this.createCellCtrls(this.leftCellCtrls, leftCols, Constants.PINNED_LEFT);\n            var rightCols = columnModel.getDisplayedRightColumnsForRow(this.rowNode);\n            this.rightCellCtrls = this.createCellCtrls(this.rightCellCtrls, rightCols, Constants.PINNED_RIGHT);\n        }\n        this.allRowGuis.forEach(function (item) {\n            var cellControls = item.containerType === exports.RowContainerType.LEFT ? _this.leftCellCtrls :\n                item.containerType === exports.RowContainerType.RIGHT ? _this.rightCellCtrls : _this.centerCellCtrls;\n            item.rowComp.setCellCtrls(cellControls.list);\n        });\n    };\n    RowCtrl.prototype.isCellEligibleToBeRemoved = function (cellCtrl, nextContainerPinned) {\n        var REMOVE_CELL = true;\n        var KEEP_CELL = false;\n        // always remove the cell if it's not rendered or if it's in the wrong pinned location\n        var column = cellCtrl.getColumn();\n        if (column.getPinned() != nextContainerPinned) {\n            return REMOVE_CELL;\n        }\n        // we want to try and keep editing and focused cells\n        var editing = cellCtrl.isEditing();\n        var focused = this.beans.focusService.isCellFocused(cellCtrl.getCellPosition());\n        var mightWantToKeepCell = editing || focused;\n        if (mightWantToKeepCell) {\n            var column_1 = cellCtrl.getColumn();\n            var displayedColumns = this.beans.columnModel.getAllDisplayedColumns();\n            var cellStillDisplayed = displayedColumns.indexOf(column_1) >= 0;\n            return cellStillDisplayed ? KEEP_CELL : REMOVE_CELL;\n        }\n        return REMOVE_CELL;\n    };\n    RowCtrl.prototype.setAnimateFlags = function (animateIn) {\n        if (animateIn) {\n            var oldRowTopExists = exists(this.rowNode.oldRowTop);\n            // if the row had a previous position, we slide it in (animate row top)\n            this.slideRowIn = oldRowTopExists;\n            // if the row had no previous position, we fade it in (animate\n            this.fadeRowIn = !oldRowTopExists;\n        }\n        else {\n            this.slideRowIn = false;\n            this.fadeRowIn = false;\n        }\n    };\n    RowCtrl.prototype.isEditing = function () {\n        return this.editingRow;\n    };\n    RowCtrl.prototype.stopRowEditing = function (cancel) {\n        this.stopEditing(cancel);\n    };\n    RowCtrl.prototype.isFullWidth = function () {\n        return this.rowType !== RowType.Normal;\n    };\n    RowCtrl.prototype.getRowType = function () {\n        return this.rowType;\n    };\n    RowCtrl.prototype.refreshFullWidth = function () {\n        var _this = this;\n        // returns 'true' if refresh succeeded\n        var tryRefresh = function (gui, pinned) {\n            if (!gui) {\n                return true;\n            } // no refresh needed\n            var cellRenderer = gui.rowComp.getFullWidthCellRenderer();\n            // no cell renderer, either means comp not yet ready, or comp ready but now reference\n            // to it (happens in react when comp is stateless). if comp not ready, we don't need to\n            // refresh, however we don't know which one, so we refresh to cover the case where it's\n            // react comp without reference so need to force a refresh\n            if (!cellRenderer) {\n                return false;\n            }\n            // no refresh method present, so can't refresh, hard refresh needed\n            if (!cellRenderer.refresh) {\n                return false;\n            }\n            var params = _this.createFullWidthParams(gui.element, pinned);\n            var refreshSucceeded = cellRenderer.refresh(params);\n            return refreshSucceeded;\n        };\n        var fullWidthSuccess = tryRefresh(this.fullWidthGui, null);\n        var centerSuccess = tryRefresh(this.centerGui, null);\n        var leftSuccess = tryRefresh(this.leftGui, Constants.PINNED_LEFT);\n        var rightSuccess = tryRefresh(this.rightGui, Constants.PINNED_RIGHT);\n        var allFullWidthRowsRefreshed = fullWidthSuccess && centerSuccess && leftSuccess && rightSuccess;\n        return allFullWidthRowsRefreshed;\n    };\n    RowCtrl.prototype.addListeners = function () {\n        this.addManagedListener(this.rowNode, RowNode.EVENT_HEIGHT_CHANGED, this.onRowHeightChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_SELECTED, this.onRowSelected.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_INDEX_CHANGED, this.onRowIndexChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_TOP_CHANGED, this.onTopChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_EXPANDED_CHANGED, this.updateExpandedCss.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_HAS_CHILDREN_CHANGED, this.updateExpandedCss.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.onRowNodeDataChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.onRowNodeCellChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_HIGHLIGHT_CHANGED, this.onRowNodeHighlightChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_DRAGGING_CHANGED, this.onRowNodeDraggingChanged.bind(this));\n        this.addManagedListener(this.rowNode, RowNode.EVENT_UI_LEVEL_CHANGED, this.onUiLevelChanged.bind(this));\n        var eventService = this.beans.eventService;\n        this.addManagedListener(eventService, Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED, this.onPaginationPixelOffsetChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_HEIGHT_SCALE_CHANGED, this.onTopChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_CELL_FOCUSED, this.onCellFocusChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this));\n        this.addManagedListener(eventService, Events.EVENT_COLUMN_MOVED, this.onColumnMoved.bind(this));\n        this.addListenersForCellComps();\n    };\n    RowCtrl.prototype.onColumnMoved = function () {\n        this.updateColumnLists();\n    };\n    RowCtrl.prototype.addListenersForCellComps = function () {\n        var _this = this;\n        this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_INDEX_CHANGED, function () {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onRowIndexChanged(); });\n        });\n        this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, function (event) {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onCellChanged(event); });\n        });\n    };\n    RowCtrl.prototype.onRowNodeDataChanged = function (event) {\n        // if this is an update, we want to refresh, as this will allow the user to put in a transition\n        // into the cellRenderer refresh method. otherwise this might be completely new data, in which case\n        // we will want to completely replace the cells\n        this.getAllCellCtrls().forEach(function (cellCtrl) {\n            return cellCtrl.refreshCell({\n                suppressFlash: !event.update,\n                newData: !event.update\n            });\n        });\n        // check for selected also, as this could be after lazy loading of the row data, in which case\n        // the id might of just gotten set inside the row and the row selected state may of changed\n        // as a result. this is what happens when selected rows are loaded in virtual pagination.\n        // - niall note - since moving to the stub component, this may no longer be true, as replacing\n        // the stub component now replaces the entire row\n        this.onRowSelected();\n        // as data has changed, then the style and class needs to be recomputed\n        this.postProcessCss();\n    };\n    RowCtrl.prototype.onRowNodeCellChanged = function () {\n        // as data has changed, then the style and class needs to be recomputed\n        this.postProcessCss();\n    };\n    RowCtrl.prototype.postProcessCss = function () {\n        this.setStylesFromGridOptions();\n        this.postProcessClassesFromGridOptions();\n        this.postProcessRowClassRules();\n        this.postProcessRowDragging();\n    };\n    RowCtrl.prototype.onRowNodeHighlightChanged = function () {\n        var highlighted = this.rowNode.highlighted;\n        this.allRowGuis.forEach(function (gui) {\n            var aboveOn = highlighted === exports.RowHighlightPosition.Above;\n            var belowOn = highlighted === exports.RowHighlightPosition.Below;\n            gui.rowComp.addOrRemoveCssClass('ag-row-highlight-above', aboveOn);\n            gui.rowComp.addOrRemoveCssClass('ag-row-highlight-below', belowOn);\n        });\n    };\n    RowCtrl.prototype.onRowNodeDraggingChanged = function () {\n        this.postProcessRowDragging();\n    };\n    RowCtrl.prototype.postProcessRowDragging = function () {\n        var dragging = this.rowNode.dragging;\n        this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-row-dragging', dragging); });\n    };\n    RowCtrl.prototype.updateExpandedCss = function () {\n        var expandable = this.rowNode.isExpandable();\n        var expanded = this.rowNode.expanded == true;\n        this.allRowGuis.forEach(function (gui) {\n            gui.rowComp.addOrRemoveCssClass('ag-row-group', expandable);\n            gui.rowComp.addOrRemoveCssClass('ag-row-group-expanded', expandable && expanded);\n            gui.rowComp.addOrRemoveCssClass('ag-row-group-contracted', expandable && !expanded);\n            setAriaExpanded(gui.element, expandable && expanded);\n        });\n    };\n    RowCtrl.prototype.onDisplayedColumnsChanged = function () {\n        // we skip animations for onDisplayedColumnChanged, as otherwise the client could remove columns and\n        // then set data, and any old valueGetter's (ie from cols that were removed) would still get called.\n        this.updateColumnLists(true);\n        if (this.beans.columnModel.wasAutoRowHeightEverActive()) {\n            this.rowNode.checkAutoHeights();\n        }\n    };\n    RowCtrl.prototype.onVirtualColumnsChanged = function () {\n        this.updateColumnLists();\n    };\n    RowCtrl.prototype.getRowPosition = function () {\n        return {\n            rowPinned: makeNull(this.rowNode.rowPinned),\n            rowIndex: this.rowNode.rowIndex\n        };\n    };\n    RowCtrl.prototype.onKeyboardNavigate = function (keyboardEvent) {\n        var currentFullWidthComp = this.allRowGuis.find(function (c) { return c.element.contains(keyboardEvent.target); });\n        var currentFullWidthContainer = currentFullWidthComp ? currentFullWidthComp.element : null;\n        var isFullWidthContainerFocused = currentFullWidthContainer === keyboardEvent.target;\n        if (!isFullWidthContainerFocused) {\n            return;\n        }\n        var node = this.rowNode;\n        var lastFocusedCell = this.beans.focusService.getFocusedCell();\n        var cellPosition = {\n            rowIndex: node.rowIndex,\n            rowPinned: node.rowPinned,\n            column: (lastFocusedCell && lastFocusedCell.column)\n        };\n        this.beans.navigationService.navigateToNextCell(keyboardEvent, keyboardEvent.key, cellPosition, true);\n        keyboardEvent.preventDefault();\n    };\n    RowCtrl.prototype.onTabKeyDown = function (keyboardEvent) {\n        if (keyboardEvent.defaultPrevented || isStopPropagationForAgGrid(keyboardEvent)) {\n            return;\n        }\n        var currentFullWidthComp = this.allRowGuis.find(function (c) { return c.element.contains(keyboardEvent.target); });\n        var currentFullWidthContainer = currentFullWidthComp ? currentFullWidthComp.element : null;\n        var isFullWidthContainerFocused = currentFullWidthContainer === keyboardEvent.target;\n        var nextEl = null;\n        if (!isFullWidthContainerFocused) {\n            nextEl = this.beans.focusService.findNextFocusableElement(currentFullWidthContainer, false, keyboardEvent.shiftKey);\n        }\n        if ((this.isFullWidth() && isFullWidthContainerFocused) || !nextEl) {\n            this.beans.navigationService.onTabKeyDown(this, keyboardEvent);\n        }\n    };\n    RowCtrl.prototype.onFullWidthRowFocused = function (event) {\n        var _a;\n        var node = this.rowNode;\n        var isFocused = this.isFullWidth() && event.rowIndex === node.rowIndex && event.rowPinned == node.rowPinned;\n        var element = this.fullWidthGui ? this.fullWidthGui.element : (_a = this.centerGui) === null || _a === void 0 ? void 0 : _a.element;\n        if (!element) {\n            return;\n        } // can happen with react ui, comp not yet ready\n        element.classList.toggle('ag-full-width-focus', isFocused);\n        if (isFocused) {\n            // we don't scroll normal rows into view when we focus them, so we don't want\n            // to scroll Full Width rows either.\n            element.focus({ preventScroll: true });\n        }\n    };\n    RowCtrl.prototype.refreshCell = function (cellCtrl) {\n        this.centerCellCtrls = this.removeCellCtrl(this.centerCellCtrls, cellCtrl);\n        this.leftCellCtrls = this.removeCellCtrl(this.leftCellCtrls, cellCtrl);\n        this.rightCellCtrls = this.removeCellCtrl(this.rightCellCtrls, cellCtrl);\n        this.updateColumnLists();\n    };\n    RowCtrl.prototype.removeCellCtrl = function (prev, cellCtrlToRemove) {\n        var res = {\n            list: [],\n            map: {}\n        };\n        prev.list.forEach(function (cellCtrl) {\n            if (cellCtrl === cellCtrlToRemove) {\n                return;\n            }\n            res.list.push(cellCtrl);\n            res.map[cellCtrl.getInstanceId()] = cellCtrl;\n        });\n        return res;\n    };\n    RowCtrl.prototype.onMouseEvent = function (eventName, mouseEvent) {\n        switch (eventName) {\n            case 'dblclick':\n                this.onRowDblClick(mouseEvent);\n                break;\n            case 'click':\n                this.onRowClick(mouseEvent);\n                break;\n            case 'touchstart':\n            case 'mousedown':\n                this.onRowMouseDown(mouseEvent);\n                break;\n        }\n    };\n    RowCtrl.prototype.createRowEvent = function (type, domEvent) {\n        return {\n            type: type,\n            node: this.rowNode,\n            data: this.rowNode.data,\n            rowIndex: this.rowNode.rowIndex,\n            rowPinned: this.rowNode.rowPinned,\n            context: this.beans.gridOptionsWrapper.getContext(),\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            event: domEvent\n        };\n    };\n    RowCtrl.prototype.createRowEventWithSource = function (type, domEvent) {\n        var event = this.createRowEvent(type, domEvent);\n        // when first developing this, we included the rowComp in the event.\n        // this seems very weird. so when introducing the event types, i left the 'source'\n        // out of the type, and just include the source in the two places where this event\n        // was fired (rowClicked and rowDoubleClicked). it doesn't make sense for any\n        // users to be using this, as the rowComp isn't an object we expose, so would be\n        // very surprising if a user was using it.\n        event.source = this;\n        return event;\n    };\n    RowCtrl.prototype.onRowDblClick = function (mouseEvent) {\n        if (isStopPropagationForAgGrid(mouseEvent)) {\n            return;\n        }\n        var agEvent = this.createRowEventWithSource(Events.EVENT_ROW_DOUBLE_CLICKED, mouseEvent);\n        this.beans.eventService.dispatchEvent(agEvent);\n    };\n    RowCtrl.prototype.onRowMouseDown = function (mouseEvent) {\n        this.lastMouseDownOnDragger = isElementChildOfClass(mouseEvent.target, 'ag-row-drag', 3);\n        if (!this.isFullWidth()) {\n            return;\n        }\n        var node = this.rowNode;\n        var columnModel = this.beans.columnModel;\n        this.beans.focusService.setFocusedCell(node.rowIndex, columnModel.getAllDisplayedColumns()[0], node.rowPinned, true);\n    };\n    RowCtrl.prototype.onRowClick = function (mouseEvent) {\n        var stop = isStopPropagationForAgGrid(mouseEvent) || this.lastMouseDownOnDragger;\n        if (stop) {\n            return;\n        }\n        var agEvent = this.createRowEventWithSource(Events.EVENT_ROW_CLICKED, mouseEvent);\n        this.beans.eventService.dispatchEvent(agEvent);\n        // ctrlKey for windows, metaKey for Apple\n        var multiSelectKeyPressed = mouseEvent.ctrlKey || mouseEvent.metaKey;\n        var shiftKeyPressed = mouseEvent.shiftKey;\n        // we do not allow selecting the group by clicking, when groupSelectChildren, as the logic to\n        // handle this is broken. to observe, change the logic below and allow groups to be selected.\n        // you will see the group gets selected, then all children get selected, then the grid unselects\n        // the children (as the default behaviour when clicking is to unselect other rows) which results\n        // in the group getting unselected (as all children are unselected). the correct thing would be\n        // to change this, so that children of the selected group are not then subsequenly un-selected.\n        var groupSelectsChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n        if (\n        // we do not allow selecting groups by clicking (as the click here expands the group), or if it's a detail row,\n        // so return if it's a group row\n        (groupSelectsChildren && this.rowNode.group) ||\n            // this is needed so we don't unselect other rows when we click this row, eg if this row is not selectable,\n            // and we click it, the selection should not change (ie any currently selected row should stay selected)\n            !this.rowNode.selectable ||\n            // we also don't allow selection of pinned rows\n            this.rowNode.rowPinned ||\n            // if no selection method enabled, do nothing\n            !this.beans.gridOptionsWrapper.isRowSelection() ||\n            // if click selection suppressed, do nothing\n            this.beans.gridOptionsWrapper.isSuppressRowClickSelection()) {\n            return;\n        }\n        var multiSelectOnClick = this.beans.gridOptionsWrapper.isRowMultiSelectWithClick();\n        var rowDeselectionWithCtrl = !this.beans.gridOptionsWrapper.isSuppressRowDeselection();\n        if (this.rowNode.isSelected()) {\n            if (multiSelectOnClick) {\n                this.rowNode.setSelectedParams({ newValue: false });\n            }\n            else if (multiSelectKeyPressed) {\n                if (rowDeselectionWithCtrl) {\n                    this.rowNode.setSelectedParams({ newValue: false });\n                }\n            }\n            else {\n                // selected with no multi key, must make sure anything else is unselected\n                this.rowNode.setSelectedParams({ newValue: true, clearSelection: !shiftKeyPressed, rangeSelect: shiftKeyPressed });\n            }\n        }\n        else {\n            var clearSelection = multiSelectOnClick ? false : !multiSelectKeyPressed;\n            this.rowNode.setSelectedParams({ newValue: true, clearSelection: clearSelection, rangeSelect: shiftKeyPressed });\n        }\n    };\n    RowCtrl.prototype.setupDetailRowAutoHeight = function (eDetailGui) {\n        var _this = this;\n        if (this.rowType !== RowType.FullWidthDetail) {\n            return;\n        }\n        if (!this.beans.gridOptionsWrapper.isDetailRowAutoHeight()) {\n            return;\n        }\n        var checkRowSizeFunc = function () {\n            var clientHeight = eDetailGui.clientHeight;\n            // if the UI is not ready, the height can be 0, which we ignore, as otherwise a flicker will occur\n            // as UI goes from the default height, to 0, then to the real height as UI becomes ready. this means\n            // it's not possible for have 0 as auto-height, however this is an improbable use case, as even an\n            // empty detail grid would still have some styling around it giving at least a few pixels.\n            if (clientHeight != null && clientHeight > 0) {\n                // we do the update in a timeout, to make sure we are not calling from inside the grid\n                // doing another update\n                var updateRowHeightFunc = function () {\n                    _this.rowNode.setRowHeight(clientHeight);\n                    if (_this.beans.clientSideRowModel) {\n                        _this.beans.clientSideRowModel.onRowHeightChanged();\n                    }\n                    else if (_this.beans.serverSideRowModel) {\n                        _this.beans.serverSideRowModel.onRowHeightChanged();\n                    }\n                };\n                _this.beans.frameworkOverrides.setTimeout(updateRowHeightFunc, 0);\n            }\n        };\n        var resizeObserverDestroyFunc = this.beans.resizeObserverService.observeResize(eDetailGui, checkRowSizeFunc);\n        this.addDestroyFunc(resizeObserverDestroyFunc);\n        checkRowSizeFunc();\n    };\n    RowCtrl.prototype.createFullWidthParams = function (eRow, pinned) {\n        var _this = this;\n        var params = {\n            fullWidth: true,\n            data: this.rowNode.data,\n            node: this.rowNode,\n            value: this.rowNode.key,\n            valueFormatted: this.rowNode.key,\n            rowIndex: this.rowNode.rowIndex,\n            api: this.beans.gridOptionsWrapper.getApi(),\n            columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n            context: this.beans.gridOptionsWrapper.getContext(),\n            // these need to be taken out, as part of 'afterAttached' now\n            eGridCell: eRow,\n            eParentOfValue: eRow,\n            pinned: pinned,\n            addRenderedRowListener: this.addEventListener.bind(this),\n            registerRowDragger: function (rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) { return _this.addFullWidthRowDragging(rowDraggerElement, dragStartPixels, value, suppressVisibilityChange); }\n        };\n        return params;\n    };\n    RowCtrl.prototype.addFullWidthRowDragging = function (rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) {\n        if (value === void 0) { value = ''; }\n        if (!this.isFullWidth()) {\n            return;\n        }\n        var rowDragComp = new RowDragComp(function () { return value; }, this.rowNode, undefined, rowDraggerElement, dragStartPixels, suppressVisibilityChange);\n        this.createManagedBean(rowDragComp, this.beans.context);\n    };\n    RowCtrl.prototype.onUiLevelChanged = function () {\n        var newLevel = this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);\n        if (this.rowLevel != newLevel) {\n            var classToAdd_1 = 'ag-row-level-' + newLevel;\n            var classToRemove_1 = 'ag-row-level-' + this.rowLevel;\n            this.allRowGuis.forEach(function (gui) {\n                gui.rowComp.addOrRemoveCssClass(classToAdd_1, true);\n                gui.rowComp.addOrRemoveCssClass(classToRemove_1, false);\n            });\n        }\n        this.rowLevel = newLevel;\n    };\n    RowCtrl.prototype.isFirstRowOnPage = function () {\n        return this.rowNode.rowIndex === this.beans.paginationProxy.getPageFirstRow();\n    };\n    RowCtrl.prototype.isLastRowOnPage = function () {\n        return this.rowNode.rowIndex === this.beans.paginationProxy.getPageLastRow();\n    };\n    RowCtrl.prototype.onModelUpdated = function () {\n        this.refreshFirstAndLastRowStyles();\n    };\n    RowCtrl.prototype.refreshFirstAndLastRowStyles = function () {\n        var newFirst = this.isFirstRowOnPage();\n        var newLast = this.isLastRowOnPage();\n        if (this.firstRowOnPage !== newFirst) {\n            this.firstRowOnPage = newFirst;\n            this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-row-first', newFirst); });\n        }\n        if (this.lastRowOnPage !== newLast) {\n            this.lastRowOnPage = newLast;\n            this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-row-last', newLast); });\n        }\n    };\n    RowCtrl.prototype.stopEditing = function (cancel) {\n        if (cancel === void 0) { cancel = false; }\n        var cellEdits = this.getAllCellCtrls().map(function (cellCtrl) { return cellCtrl.stopEditing(cancel); });\n        if (!this.editingRow) {\n            return;\n        }\n        if (!cancel && cellEdits.some(function (edit) { return edit; })) {\n            var event_1 = this.createRowEvent(Events.EVENT_ROW_VALUE_CHANGED);\n            this.beans.eventService.dispatchEvent(event_1);\n        }\n        this.setEditingRow(false);\n    };\n    RowCtrl.prototype.setInlineEditingCss = function (editing) {\n        this.allRowGuis.forEach(function (gui) {\n            gui.rowComp.addOrRemoveCssClass(\"ag-row-inline-editing\", editing);\n            gui.rowComp.addOrRemoveCssClass(\"ag-row-not-inline-editing\", !editing);\n        });\n    };\n    RowCtrl.prototype.setEditingRow = function (value) {\n        this.editingRow = value;\n        this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-row-editing', value); });\n        var event = value ?\n            this.createRowEvent(Events.EVENT_ROW_EDITING_STARTED)\n            : this.createRowEvent(Events.EVENT_ROW_EDITING_STOPPED);\n        this.beans.eventService.dispatchEvent(event);\n    };\n    RowCtrl.prototype.startRowEditing = function (key, charPress, sourceRenderedCell, event) {\n        if (key === void 0) { key = null; }\n        if (charPress === void 0) { charPress = null; }\n        if (sourceRenderedCell === void 0) { sourceRenderedCell = null; }\n        if (event === void 0) { event = null; }\n        // don't do it if already editing\n        if (this.editingRow) {\n            return;\n        }\n        this.getAllCellCtrls().forEach(function (cellCtrl) {\n            var cellStartedEdit = cellCtrl === sourceRenderedCell;\n            if (cellStartedEdit) {\n                cellCtrl.startEditing(key, charPress, cellStartedEdit, event);\n            }\n            else {\n                cellCtrl.startEditing(null, null, cellStartedEdit, event);\n            }\n        });\n        this.setEditingRow(true);\n    };\n    RowCtrl.prototype.getAllCellCtrls = function () {\n        var res = __spread$6(this.centerCellCtrls.list, this.leftCellCtrls.list, this.rightCellCtrls.list);\n        return res;\n    };\n    RowCtrl.prototype.postProcessClassesFromGridOptions = function () {\n        var _this = this;\n        var cssClasses = this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);\n        if (!cssClasses || !cssClasses.length) {\n            return;\n        }\n        cssClasses.forEach(function (classStr) {\n            _this.allRowGuis.forEach(function (c) { return c.rowComp.addOrRemoveCssClass(classStr, true); });\n        });\n    };\n    RowCtrl.prototype.postProcessRowClassRules = function () {\n        var _this = this;\n        this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode, function (className) {\n            _this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass(className, true); });\n        }, function (className) {\n            _this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass(className, false); });\n        });\n    };\n    RowCtrl.prototype.setStylesFromGridOptions = function () {\n        var rowStyles = this.processStylesFromGridOptions();\n        this.allRowGuis.forEach(function (gui) { return gui.rowComp.setUserStyles(rowStyles); });\n    };\n    RowCtrl.prototype.getRowBusinessKey = function () {\n        var businessKeyForNodeFunc = this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();\n        if (typeof businessKeyForNodeFunc !== 'function') {\n            return;\n        }\n        return businessKeyForNodeFunc(this.rowNode);\n    };\n    RowCtrl.prototype.getPinnedForContainer = function (rowContainerType) {\n        var pinned = rowContainerType === exports.RowContainerType.LEFT ? Constants.PINNED_LEFT :\n            rowContainerType === exports.RowContainerType.RIGHT ? Constants.PINNED_RIGHT : null;\n        return pinned;\n    };\n    RowCtrl.prototype.getInitialRowClasses = function (rowContainerType) {\n        var pinned = this.getPinnedForContainer(rowContainerType);\n        var params = {\n            rowNode: this.rowNode,\n            rowFocused: this.rowFocused,\n            fadeRowIn: this.fadeRowIn,\n            rowIsEven: this.rowNode.rowIndex % 2 === 0,\n            rowLevel: this.rowLevel,\n            fullWidthRow: this.isFullWidth(),\n            firstRowOnPage: this.isFirstRowOnPage(),\n            lastRowOnPage: this.isLastRowOnPage(),\n            printLayout: this.printLayout,\n            expandable: this.rowNode.isExpandable(),\n            pinned: pinned\n        };\n        return this.beans.rowCssClassCalculator.getInitialRowClasses(params);\n    };\n    RowCtrl.prototype.processStylesFromGridOptions = function () {\n        // part 1 - rowStyle\n        var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();\n        if (rowStyle && typeof rowStyle === 'function') {\n            console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');\n            return;\n        }\n        // part 1 - rowStyleFunc\n        var rowStyleFunc = this.beans.gridOptionsWrapper.getRowStyleFunc();\n        var rowStyleFuncResult;\n        if (rowStyleFunc) {\n            var params = {\n                data: this.rowNode.data,\n                node: this.rowNode,\n                rowIndex: this.rowNode.rowIndex\n            };\n            rowStyleFuncResult = rowStyleFunc(params);\n        }\n        return Object.assign({}, rowStyle, rowStyleFuncResult);\n    };\n    RowCtrl.prototype.onRowSelected = function () {\n        var _this = this;\n        // Treat undefined as false, if we pass undefined down it gets treated as toggle class, rather than explicitly\n        // setting the required value\n        var selected = !!this.rowNode.isSelected();\n        this.allRowGuis.forEach(function (gui) {\n            gui.rowComp.addOrRemoveCssClass('ag-row-selected', selected);\n            setAriaSelected(gui.element, selected ? true : undefined);\n            var ariaLabel = _this.createAriaLabel();\n            setAriaLabel(gui.element, ariaLabel == null ? '' : ariaLabel);\n        });\n    };\n    RowCtrl.prototype.createAriaLabel = function () {\n        var selected = this.rowNode.isSelected();\n        if (selected && this.beans.gridOptionsWrapper.isSuppressRowDeselection()) {\n            return undefined;\n        }\n        var translate = this.beans.gridOptionsWrapper.getLocaleTextFunc();\n        var label = translate(selected ? 'ariaRowDeselect' : 'ariaRowSelect', \"Press SPACE to \" + (selected ? 'deselect' : 'select') + \" this row.\");\n        return label;\n    };\n    RowCtrl.prototype.isUseAnimationFrameForCreate = function () {\n        return this.useAnimationFrameForCreate;\n    };\n    RowCtrl.prototype.addHoverFunctionality = function (eRow) {\n        var _this = this;\n        // because we use animation frames to do this, it's possible the row no longer exists\n        // by the time we get to add it\n        if (!this.active) {\n            return;\n        }\n        // because mouseenter and mouseleave do not propagate, we cannot listen on the gridPanel\n        // like we do for all the other mouse events.\n        // because of the pinning, we cannot simply add / remove the class based on the eRow. we\n        // have to check all eRow's (body & pinned). so the trick is if any of the rows gets a\n        // mouse hover, it sets such in the rowNode, and then all three reflect the change as\n        // all are listening for event on the row node.\n        // step 1 - add listener, to set flag on row node\n        this.addManagedListener(eRow, 'mouseenter', function () { return _this.rowNode.onMouseEnter(); });\n        this.addManagedListener(eRow, 'mouseleave', function () { return _this.rowNode.onMouseLeave(); });\n        // step 2 - listen for changes on row node (which any eRow can trigger)\n        this.addManagedListener(this.rowNode, RowNode.EVENT_MOUSE_ENTER, function () {\n            // if hover turned off, we don't add the class. we do this here so that if the application\n            // toggles this property mid way, we remove the hover form the last row, but we stop\n            // adding hovers from that point onwards.\n            if (!_this.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()) {\n                eRow.classList.add('ag-row-hover');\n            }\n        });\n        this.addManagedListener(this.rowNode, RowNode.EVENT_MOUSE_LEAVE, function () {\n            eRow.classList.remove('ag-row-hover');\n        });\n    };\n    // for animation, we don't want to animate entry or exit to a very far away pixel,\n    // otherwise the row would move so fast, it would appear to disappear. so this method\n    // moves the row closer to the viewport if it is far away, so the row slide in / out\n    // at a speed the user can see.\n    RowCtrl.prototype.roundRowTopToBounds = function (rowTop) {\n        var gridBodyCon = this.beans.ctrlsService.getGridBodyCtrl();\n        var range = gridBodyCon.getScrollFeature().getVScrollPosition();\n        var minPixel = this.applyPaginationOffset(range.top, true) - 100;\n        var maxPixel = this.applyPaginationOffset(range.bottom, true) + 100;\n        return Math.min(Math.max(minPixel, rowTop), maxPixel);\n    };\n    RowCtrl.prototype.getFrameworkOverrides = function () {\n        return this.beans.frameworkOverrides;\n    };\n    RowCtrl.prototype.onRowHeightChanged = function () {\n        // check for exists first - if the user is resetting the row height, then\n        // it will be null (or undefined) momentarily until the next time the flatten\n        // stage is called where the row will then update again with a new height\n        if (this.rowNode.rowHeight == null) {\n            return;\n        }\n        var rowHeight = this.rowNode.rowHeight;\n        var defaultRowHeight = this.beans.gridOptionsWrapper.getDefaultRowHeight();\n        var isHeightFromFunc = this.beans.gridOptionsWrapper.isGetRowHeightFunction();\n        var heightFromFunc = isHeightFromFunc ? this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height : undefined;\n        var lineHeight = heightFromFunc ? Math.min(defaultRowHeight, heightFromFunc) - 2 + \"px\" : undefined;\n        this.allRowGuis.forEach(function (gui) {\n            gui.element.style.height = rowHeight + \"px\";\n            // If the row height is coming from a function, this means some rows can\n            // be smaller than the theme had intended. so we set --ag-line-height on\n            // the row, which is picked up by the theme CSS and is used in a calc\n            // for the CSS line-height property, which makes sure the line-height is\n            // not bigger than the row height, otherwise the row text would not fit.\n            // We do not use rowNode.rowHeight here, as this could be the result of autoHeight,\n            // and we found using the autoHeight result causes a loop, where changing the\n            // line-height them impacts the cell height, resulting in a new autoHeight,\n            // resulting in a new line-height and so on loop. \n            // const heightFromFunc = this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height;\n            if (lineHeight) {\n                gui.element.style.setProperty('--ag-line-height', lineHeight);\n            }\n        });\n    };\n    RowCtrl.prototype.addEventListener = function (eventType, listener) {\n        if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {\n            eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;\n            console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);\n        }\n        _super.prototype.addEventListener.call(this, eventType, listener);\n    };\n    RowCtrl.prototype.removeEventListener = function (eventType, listener) {\n        if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {\n            eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;\n            console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);\n        }\n        _super.prototype.removeEventListener.call(this, eventType, listener);\n    };\n    // note - this is NOT called by context, as we don't wire / unwire the CellComp for performance reasons.\n    RowCtrl.prototype.destroyFirstPass = function () {\n        this.active = false;\n        // why do we have this method? shouldn't everything below be added as a destroy func beside\n        // the corresponding create logic?\n        this.setupRemoveAnimation();\n        var event = this.createRowEvent(Events.EVENT_VIRTUAL_ROW_REMOVED);\n        this.dispatchEvent(event);\n        this.beans.eventService.dispatchEvent(event);\n        _super.prototype.destroy.call(this);\n    };\n    RowCtrl.prototype.setupRemoveAnimation = function () {\n        var rowStillVisibleJustNotInViewport = this.rowNode.rowTop != null;\n        if (rowStillVisibleJustNotInViewport) {\n            // if the row is not rendered, but in viewport, it means it has moved,\n            // so we animate the row out. if the new location is very far away,\n            // the animation will be so fast the row will look like it's just disappeared,\n            // so instead we animate to a position just outside the viewport.\n            var rowTop = this.roundRowTopToBounds(this.rowNode.rowTop);\n            this.setRowTop(rowTop);\n        }\n        else {\n            this.allRowGuis.forEach(function (gui) { return gui.rowComp.addOrRemoveCssClass('ag-opacity-zero', true); });\n        }\n    };\n    RowCtrl.prototype.destroySecondPass = function () {\n        this.allRowGuis.length = 0;\n        var destroyCellCtrls = function (ctrls) {\n            ctrls.list.forEach(function (c) { return c.destroy(); });\n            return { list: [], map: {} };\n        };\n        this.centerCellCtrls = destroyCellCtrls(this.centerCellCtrls);\n        this.leftCellCtrls = destroyCellCtrls(this.leftCellCtrls);\n        this.rightCellCtrls = destroyCellCtrls(this.rightCellCtrls);\n    };\n    RowCtrl.prototype.setFocusedClasses = function () {\n        var _this = this;\n        this.allRowGuis.forEach(function (gui) {\n            gui.rowComp.addOrRemoveCssClass('ag-row-focus', _this.rowFocused);\n            gui.rowComp.addOrRemoveCssClass('ag-row-no-focus', !_this.rowFocused);\n        });\n    };\n    RowCtrl.prototype.onCellFocusChanged = function () {\n        var rowFocused = this.beans.focusService.isRowFocused(this.rowNode.rowIndex, this.rowNode.rowPinned);\n        if (rowFocused !== this.rowFocused) {\n            this.rowFocused = rowFocused;\n            this.setFocusedClasses();\n        }\n        // if we are editing, then moving the focus out of a row will stop editing\n        if (!rowFocused && this.editingRow) {\n            this.stopEditing(false);\n        }\n    };\n    RowCtrl.prototype.onPaginationChanged = function () {\n        var currentPage = this.beans.paginationProxy.getCurrentPage();\n        // it is possible this row is in the new page, but the page number has changed, which means\n        // it needs to reposition itself relative to the new page\n        if (this.paginationPage !== currentPage) {\n            this.paginationPage = currentPage;\n            this.onTopChanged();\n        }\n        this.refreshFirstAndLastRowStyles();\n    };\n    RowCtrl.prototype.onTopChanged = function () {\n        this.setRowTop(this.rowNode.rowTop);\n    };\n    RowCtrl.prototype.onPaginationPixelOffsetChanged = function () {\n        // the pixel offset is used when calculating rowTop to set on the row DIV\n        this.onTopChanged();\n    };\n    // applies pagination offset, eg if on second page, and page height is 500px, then removes\n    // 500px from the top position, so a row with rowTop 600px is displayed at location 100px.\n    // reverse will take the offset away rather than add.\n    RowCtrl.prototype.applyPaginationOffset = function (topPx, reverse) {\n        if (reverse === void 0) { reverse = false; }\n        if (this.rowNode.isRowPinned()) {\n            return topPx;\n        }\n        var pixelOffset = this.beans.paginationProxy.getPixelOffset();\n        var multiplier = reverse ? 1 : -1;\n        return topPx + (pixelOffset * multiplier);\n    };\n    RowCtrl.prototype.setRowTop = function (pixels) {\n        // print layout uses normal flow layout for row positioning\n        if (this.printLayout) {\n            return;\n        }\n        // need to make sure rowTop is not null, as this can happen if the node was once\n        // visible (ie parent group was expanded) but is now not visible\n        if (exists(pixels)) {\n            var afterPaginationPixels = this.applyPaginationOffset(pixels);\n            var afterScalingPixels = this.rowNode.isRowPinned() ? afterPaginationPixels : this.beans.rowContainerHeightService.getRealPixelPosition(afterPaginationPixels);\n            var topPx = afterScalingPixels + \"px\";\n            this.setRowTopStyle(topPx);\n        }\n    };\n    RowCtrl.prototype.getInitialRowTop = function () {\n        return this.initialTop;\n    };\n    RowCtrl.prototype.getInitialTransform = function () {\n        return this.initialTransform;\n    };\n    RowCtrl.prototype.setInitialRowTop = function () {\n        // print layout uses normal flow layout for row positioning\n        if (this.printLayout) {\n            return '';\n        }\n        // if sliding in, we take the old row top. otherwise we just set the current row top.\n        var pixels = this.slideRowIn ? this.roundRowTopToBounds(this.rowNode.oldRowTop) : this.rowNode.rowTop;\n        var afterPaginationPixels = this.applyPaginationOffset(pixels);\n        // we don't apply scaling if row is pinned\n        var afterScalingPixels = this.rowNode.isRowPinned() ? afterPaginationPixels : this.beans.rowContainerHeightService.getRealPixelPosition(afterPaginationPixels);\n        var res = afterScalingPixels + 'px';\n        var suppressRowTransform = this.beans.gridOptionsWrapper.isSuppressRowTransform();\n        if (suppressRowTransform) {\n            this.initialTop = res;\n        }\n        else {\n            this.initialTransform = \"translateY(\" + res + \")\";\n        }\n    };\n    RowCtrl.prototype.setRowTopStyle = function (topPx) {\n        var suppressRowTransform = this.beans.gridOptionsWrapper.isSuppressRowTransform();\n        this.allRowGuis.forEach(function (gui) { return suppressRowTransform ?\n            gui.rowComp.setTop(topPx) :\n            gui.rowComp.setTransform(\"translateY(\" + topPx + \")\"); });\n    };\n    RowCtrl.prototype.getRowNode = function () {\n        return this.rowNode;\n    };\n    RowCtrl.prototype.getCellCtrl = function (column) {\n        // first up, check for cell directly linked to this column\n        var res = null;\n        this.getAllCellCtrls().forEach(function (cellCtrl) {\n            if (cellCtrl.getColumn() == column) {\n                res = cellCtrl;\n            }\n        });\n        if (res != null) {\n            return res;\n        }\n        // second up, if not found, then check for spanned cols.\n        // we do this second (and not at the same time) as this is\n        // more expensive, as spanning cols is a\n        // infrequently used feature so we don't need to do this most\n        // of the time\n        this.getAllCellCtrls().forEach(function (cellCtrl) {\n            if (cellCtrl.getColSpanningList().indexOf(column) >= 0) {\n                res = cellCtrl;\n            }\n        });\n        return res;\n    };\n    RowCtrl.prototype.onRowIndexChanged = function () {\n        // we only bother updating if the rowIndex is present. if it is not present, it means this row\n        // is child of a group node, and the group node was closed, it's the only way to have no row index.\n        // when this happens, row is about to be de-rendered, so we don't care, rowComp is about to die!\n        if (this.rowNode.rowIndex != null) {\n            this.onCellFocusChanged();\n            this.updateRowIndexes();\n            this.postProcessCss();\n        }\n    };\n    RowCtrl.prototype.updateRowIndexes = function () {\n        var rowIndexStr = this.rowNode.getRowIndexString();\n        var headerRowCount = this.beans.headerNavigationService.getHeaderRowCount();\n        var rowIsEven = this.rowNode.rowIndex % 2 === 0;\n        var ariaRowIndex = headerRowCount + this.rowNode.rowIndex + 1;\n        this.allRowGuis.forEach(function (c) {\n            c.rowComp.setRowIndex(rowIndexStr);\n            c.rowComp.addOrRemoveCssClass('ag-row-even', rowIsEven);\n            c.rowComp.addOrRemoveCssClass('ag-row-odd', !rowIsEven);\n            setAriaRowIndex(c.element, ariaRowIndex);\n        });\n    };\n    // returns the pinned left container, either the normal one, or the embedded full with one if exists\n    RowCtrl.prototype.getPinnedLeftRowElement = function () {\n        return this.leftGui ? this.leftGui.element : undefined;\n    };\n    // returns the pinned right container, either the normal one, or the embedded full with one if exists\n    RowCtrl.prototype.getPinnedRightRowElement = function () {\n        return this.rightGui ? this.rightGui.element : undefined;\n    };\n    // returns the body container, either the normal one, or the embedded full with one if exists\n    RowCtrl.prototype.getBodyRowElement = function () {\n        return this.centerGui ? this.centerGui.element : undefined;\n    };\n    // returns the full width container\n    RowCtrl.prototype.getFullWidthRowElement = function () {\n        return this.fullWidthGui ? this.fullWidthGui.element : undefined;\n    };\n    RowCtrl.DOM_DATA_KEY_ROW_CTRL = 'renderedRow';\n    return RowCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$10 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$P = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$9 = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar RowContainerEventsFeature = /** @class */ (function (_super) {\n    __extends$10(RowContainerEventsFeature, _super);\n    function RowContainerEventsFeature(element) {\n        var _this = _super.call(this) || this;\n        _this.element = element;\n        return _this;\n    }\n    RowContainerEventsFeature.prototype.postConstruct = function () {\n        this.addMouseListeners();\n        this.mockContextMenuForIPad();\n        this.addKeyboardEvents();\n    };\n    RowContainerEventsFeature.prototype.addKeyboardEvents = function () {\n        var _this = this;\n        var eventNames = ['keydown', 'keypress'];\n        eventNames.forEach(function (eventName) {\n            var listener = _this.processKeyboardEvent.bind(_this, eventName);\n            _this.addManagedListener(_this.element, eventName, listener);\n        });\n    };\n    RowContainerEventsFeature.prototype.addMouseListeners = function () {\n        var _this = this;\n        var mouseDownEvent = isEventSupported('touchstart') ? 'touchstart' : 'mousedown';\n        var eventNames = ['dblclick', 'contextmenu', 'mouseover', 'mouseout', 'click', mouseDownEvent];\n        eventNames.forEach(function (eventName) {\n            var listener = _this.processMouseEvent.bind(_this, eventName);\n            _this.addManagedListener(_this.element, eventName, listener);\n        });\n    };\n    RowContainerEventsFeature.prototype.processMouseEvent = function (eventName, mouseEvent) {\n        if (!this.mouseEventService.isEventFromThisGrid(mouseEvent) ||\n            isStopPropagationForAgGrid(mouseEvent)) {\n            return;\n        }\n        var rowComp = this.getRowForEvent(mouseEvent);\n        var cellCtrl = this.mouseEventService.getRenderedCellForEvent(mouseEvent);\n        if (eventName === \"contextmenu\") {\n            this.handleContextMenuMouseEvent(mouseEvent, null, rowComp, cellCtrl);\n        }\n        else {\n            if (cellCtrl) {\n                cellCtrl.onMouseEvent(eventName, mouseEvent);\n            }\n            if (rowComp) {\n                rowComp.onMouseEvent(eventName, mouseEvent);\n            }\n        }\n    };\n    RowContainerEventsFeature.prototype.mockContextMenuForIPad = function () {\n        var _this = this;\n        // we do NOT want this when not in iPad, otherwise we will be doing\n        if (!isIOSUserAgent()) {\n            return;\n        }\n        var touchListener = new TouchListener(this.element);\n        var longTapListener = function (event) {\n            var rowComp = _this.getRowForEvent(event.touchEvent);\n            var cellComp = _this.mouseEventService.getRenderedCellForEvent(event.touchEvent);\n            _this.handleContextMenuMouseEvent(null, event.touchEvent, rowComp, cellComp);\n        };\n        this.addManagedListener(touchListener, TouchListener.EVENT_LONG_TAP, longTapListener);\n        this.addDestroyFunc(function () { return touchListener.destroy(); });\n    };\n    RowContainerEventsFeature.prototype.getRowForEvent = function (event) {\n        var sourceElement = event.target;\n        while (sourceElement) {\n            var rowCon = this.gridOptionsWrapper.getDomData(sourceElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n            if (rowCon) {\n                return rowCon;\n            }\n            sourceElement = sourceElement.parentElement;\n        }\n        return null;\n    };\n    RowContainerEventsFeature.prototype.handleContextMenuMouseEvent = function (mouseEvent, touchEvent, rowComp, cellCtrl) {\n        var rowNode = rowComp ? rowComp.getRowNode() : null;\n        var column = cellCtrl ? cellCtrl.getColumn() : null;\n        var value = null;\n        if (column) {\n            var event_1 = mouseEvent ? mouseEvent : touchEvent;\n            cellCtrl.dispatchCellContextMenuEvent(event_1);\n            value = this.valueService.getValue(column, rowNode);\n        }\n        // if user clicked on a cell, anchor to that cell, otherwise anchor to the grid panel\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var anchorToElement = cellCtrl ? cellCtrl.getGui() : gridBodyCon.getGridBodyElement();\n        if (this.contextMenuFactory) {\n            this.contextMenuFactory.onContextMenu(mouseEvent, touchEvent, rowNode, column, value, anchorToElement);\n        }\n    };\n    RowContainerEventsFeature.prototype.processKeyboardEvent = function (eventName, keyboardEvent) {\n        var cellComp = getCtrlForEvent(this.gridOptionsWrapper, keyboardEvent, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n        var rowComp = getCtrlForEvent(this.gridOptionsWrapper, keyboardEvent, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n        if (keyboardEvent.defaultPrevented) {\n            return;\n        }\n        if (cellComp) {\n            this.processCellKeyboardEvent(cellComp, eventName, keyboardEvent);\n        }\n        else if (rowComp && rowComp.isFullWidth()) {\n            this.processFullWidthRowKeyboardEvent(rowComp, eventName, keyboardEvent);\n        }\n    };\n    RowContainerEventsFeature.prototype.processCellKeyboardEvent = function (cellCtrl, eventName, keyboardEvent) {\n        var rowNode = cellCtrl.getRowNode();\n        var column = cellCtrl.getColumn();\n        var editing = cellCtrl.isEditing();\n        var gridProcessingAllowed = !isUserSuppressingKeyboardEvent(this.gridOptionsWrapper, keyboardEvent, rowNode, column, editing);\n        if (gridProcessingAllowed) {\n            switch (eventName) {\n                case 'keydown':\n                    // first see if it's a scroll key, page up / down, home / end etc\n                    var wasScrollKey = !editing && this.navigationService.handlePageScrollingKey(keyboardEvent);\n                    // if not a scroll key, then we pass onto cell\n                    if (!wasScrollKey) {\n                        cellCtrl.onKeyDown(keyboardEvent);\n                    }\n                    // perform clipboard and undo / redo operations\n                    this.doGridOperations(keyboardEvent, cellCtrl.isEditing());\n                    break;\n                case 'keypress':\n                    cellCtrl.onKeyPress(keyboardEvent);\n                    break;\n            }\n        }\n        if (eventName === 'keydown') {\n            var cellKeyDownEvent = cellCtrl.createEvent(keyboardEvent, Events.EVENT_CELL_KEY_DOWN);\n            this.eventService.dispatchEvent(cellKeyDownEvent);\n        }\n        if (eventName === 'keypress') {\n            var cellKeyPressEvent = cellCtrl.createEvent(keyboardEvent, Events.EVENT_CELL_KEY_PRESS);\n            this.eventService.dispatchEvent(cellKeyPressEvent);\n        }\n    };\n    RowContainerEventsFeature.prototype.processFullWidthRowKeyboardEvent = function (rowComp, eventName, keyboardEvent) {\n        var rowNode = rowComp.getRowNode();\n        var focusedCell = this.focusService.getFocusedCell();\n        var column = (focusedCell && focusedCell.column);\n        var gridProcessingAllowed = !isUserSuppressingKeyboardEvent(this.gridOptionsWrapper, keyboardEvent, rowNode, column, false);\n        if (gridProcessingAllowed) {\n            var key = keyboardEvent.key;\n            if (eventName === 'keydown') {\n                switch (key) {\n                    case KeyCode.UP:\n                    case KeyCode.DOWN:\n                        rowComp.onKeyboardNavigate(keyboardEvent);\n                        break;\n                    case KeyCode.TAB:\n                        rowComp.onTabKeyDown(keyboardEvent);\n                    default:\n                }\n            }\n        }\n        if (eventName === 'keydown') {\n            var cellKeyDownEvent = rowComp.createRowEvent(Events.EVENT_CELL_KEY_DOWN, keyboardEvent);\n            this.eventService.dispatchEvent(cellKeyDownEvent);\n        }\n        if (eventName === 'keypress') {\n            var cellKeyPressEvent = rowComp.createRowEvent(Events.EVENT_CELL_KEY_PRESS, keyboardEvent);\n            this.eventService.dispatchEvent(cellKeyPressEvent);\n        }\n    };\n    RowContainerEventsFeature.prototype.doGridOperations = function (keyboardEvent, editing) {\n        // check if ctrl or meta key pressed\n        if (!keyboardEvent.ctrlKey && !keyboardEvent.metaKey) {\n            return;\n        }\n        // if the cell the event came from is editing, then we do not\n        // want to do the default shortcut keys, otherwise the editor\n        // (eg a text field) would not be able to do the normal cut/copy/paste\n        if (editing) {\n            return;\n        }\n        // for copy / paste, we don't want to execute when the event\n        // was from a child grid (happens in master detail)\n        if (!this.mouseEventService.isEventFromThisGrid(keyboardEvent)) {\n            return;\n        }\n        switch (keyboardEvent.code) {\n            case KeyCode.A:\n                return this.onCtrlAndA(keyboardEvent);\n            case KeyCode.C:\n                return this.onCtrlAndC(keyboardEvent);\n            case KeyCode.V:\n                return this.onCtrlAndV();\n            case KeyCode.D:\n                return this.onCtrlAndD(keyboardEvent);\n            case KeyCode.Z:\n                return keyboardEvent.shiftKey ? this.undoRedoService.redo() : this.undoRedoService.undo();\n            case KeyCode.Y:\n                return this.undoRedoService.redo();\n        }\n    };\n    RowContainerEventsFeature.prototype.onCtrlAndA = function (event) {\n        var _a = this, pinnedRowModel = _a.pinnedRowModel, paginationProxy = _a.paginationProxy, rangeService = _a.rangeService;\n        var PINNED_BOTTOM = Constants.PINNED_BOTTOM, PINNED_TOP = Constants.PINNED_TOP;\n        if (rangeService && paginationProxy.isRowsToRender()) {\n            var _b = __read$9([\n                pinnedRowModel.isEmpty(PINNED_TOP),\n                pinnedRowModel.isEmpty(PINNED_BOTTOM)\n            ], 2), isEmptyPinnedTop = _b[0], isEmptyPinnedBottom = _b[1];\n            var floatingStart = isEmptyPinnedTop ? null : PINNED_TOP;\n            var floatingEnd = void 0;\n            var rowEnd = void 0;\n            if (isEmptyPinnedBottom) {\n                floatingEnd = null;\n                rowEnd = this.paginationProxy.getRowCount() - 1;\n            }\n            else {\n                floatingEnd = PINNED_BOTTOM;\n                rowEnd = pinnedRowModel.getPinnedBottomRowData().length - 1;\n            }\n            var allDisplayedColumns = this.columnModel.getAllDisplayedColumns();\n            if (missingOrEmpty(allDisplayedColumns)) {\n                return;\n            }\n            rangeService.setCellRange({\n                rowStartIndex: 0,\n                rowStartPinned: floatingStart,\n                rowEndIndex: rowEnd,\n                rowEndPinned: floatingEnd,\n                columnStart: allDisplayedColumns[0],\n                columnEnd: last(allDisplayedColumns)\n            });\n        }\n        event.preventDefault();\n    };\n    RowContainerEventsFeature.prototype.onCtrlAndC = function (event) {\n        if (!this.clipboardService || this.gridOptionsWrapper.isEnableCellTextSelection()) {\n            return;\n        }\n        this.clipboardService.copyToClipboard();\n        event.preventDefault();\n    };\n    RowContainerEventsFeature.prototype.onCtrlAndV = function () {\n        if (ModuleRegistry.isRegistered(exports.ModuleNames.ClipboardModule) && !this.gridOptionsWrapper.isSuppressClipboardPaste()) {\n            this.clipboardService.pasteFromClipboard();\n        }\n    };\n    RowContainerEventsFeature.prototype.onCtrlAndD = function (event) {\n        if (ModuleRegistry.isRegistered(exports.ModuleNames.ClipboardModule) && !this.gridOptionsWrapper.isSuppressClipboardPaste()) {\n            this.clipboardService.copyRangeDown();\n        }\n        event.preventDefault();\n    };\n    __decorate$P([\n        Autowired('mouseEventService')\n    ], RowContainerEventsFeature.prototype, \"mouseEventService\", void 0);\n    __decorate$P([\n        Autowired('valueService')\n    ], RowContainerEventsFeature.prototype, \"valueService\", void 0);\n    __decorate$P([\n        Optional('contextMenuFactory')\n    ], RowContainerEventsFeature.prototype, \"contextMenuFactory\", void 0);\n    __decorate$P([\n        Autowired('ctrlsService')\n    ], RowContainerEventsFeature.prototype, \"ctrlsService\", void 0);\n    __decorate$P([\n        Autowired('navigationService')\n    ], RowContainerEventsFeature.prototype, \"navigationService\", void 0);\n    __decorate$P([\n        Autowired('focusService')\n    ], RowContainerEventsFeature.prototype, \"focusService\", void 0);\n    __decorate$P([\n        Autowired('undoRedoService')\n    ], RowContainerEventsFeature.prototype, \"undoRedoService\", void 0);\n    __decorate$P([\n        Autowired('columnModel')\n    ], RowContainerEventsFeature.prototype, \"columnModel\", void 0);\n    __decorate$P([\n        Autowired('paginationProxy')\n    ], RowContainerEventsFeature.prototype, \"paginationProxy\", void 0);\n    __decorate$P([\n        Autowired('pinnedRowModel')\n    ], RowContainerEventsFeature.prototype, \"pinnedRowModel\", void 0);\n    __decorate$P([\n        Optional('rangeService')\n    ], RowContainerEventsFeature.prototype, \"rangeService\", void 0);\n    __decorate$P([\n        Optional('clipboardService')\n    ], RowContainerEventsFeature.prototype, \"clipboardService\", void 0);\n    __decorate$P([\n        PostConstruct\n    ], RowContainerEventsFeature.prototype, \"postConstruct\", null);\n    return RowContainerEventsFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$11 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$Q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n// listens to changes in the center viewport size, for column and row virtualisation,\n// and adjusts grid as necessary. there are two viewports, one for horizontal and one for\n// vertical scrolling.\nvar ViewportSizeFeature = /** @class */ (function (_super) {\n    __extends$11(ViewportSizeFeature, _super);\n    function ViewportSizeFeature(centerContainerCtrl) {\n        var _this = _super.call(this) || this;\n        _this.centerContainerCtrl = centerContainerCtrl;\n        return _this;\n    }\n    ViewportSizeFeature.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function () {\n            _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n            _this.listenForResize();\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLLBAR_WIDTH_CHANGED, this.onScrollbarWidthChanged.bind(this));\n    };\n    ViewportSizeFeature.prototype.listenForResize = function () {\n        var _this = this;\n        var listener = function () { return _this.onCenterViewportResized(); };\n        // centerContainer gets horizontal resizes\n        this.centerContainerCtrl.registerViewportResizeListener(listener);\n        // eBodyViewport gets vertical resizes\n        this.gridBodyCtrl.registerBodyViewportResizeListener(listener);\n    };\n    ViewportSizeFeature.prototype.onScrollbarWidthChanged = function () {\n        this.checkViewportAndScrolls();\n    };\n    ViewportSizeFeature.prototype.onCenterViewportResized = function () {\n        if (this.centerContainerCtrl.isViewportVisible()) {\n            this.checkViewportAndScrolls();\n            var newWidth = this.centerContainerCtrl.getCenterWidth();\n            if (newWidth !== this.centerWidth) {\n                this.centerWidth = newWidth;\n                this.columnModel.refreshFlexedColumns({ viewportWidth: this.centerWidth, updateBodyWidths: true, fireResizedEvent: true });\n            }\n        }\n        else {\n            this.bodyHeight = 0;\n        }\n    };\n    // gets called every time the viewport size changes. we use this to check visibility of scrollbars\n    // in the grid panel, and also to check size and position of viewport for row and column virtualisation.\n    ViewportSizeFeature.prototype.checkViewportAndScrolls = function () {\n        // results in updating anything that depends on scroll showing\n        this.updateScrollVisibleService();\n        // fires event if height changes, used by PaginationService, HeightScalerService, RowRenderer\n        this.checkBodyHeight();\n        // check for virtual columns for ColumnController\n        this.onHorizontalViewportChanged();\n        this.gridBodyCtrl.getScrollFeature().checkScrollLeft();\n    };\n    ViewportSizeFeature.prototype.getBodyHeight = function () {\n        return this.bodyHeight;\n    };\n    ViewportSizeFeature.prototype.checkBodyHeight = function () {\n        var eBodyViewport = this.gridBodyCtrl.getBodyViewportElement();\n        var bodyHeight = getInnerHeight(eBodyViewport);\n        if (this.bodyHeight !== bodyHeight) {\n            this.bodyHeight = bodyHeight;\n            var event_1 = {\n                type: Events.EVENT_BODY_HEIGHT_CHANGED,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n    };\n    ViewportSizeFeature.prototype.updateScrollVisibleService = function () {\n        // because of column animation (which takes 200ms), we have to do this twice.\n        // eg if user removes cols anywhere except at the RHS, then the cols on the RHS\n        // will animate to the left to fill the gap. this animation means just after\n        // the cols are removed, the remaining cols are still in the original location\n        // at the start of the animation, so pre animation the H scrollbar is still needed,\n        // but post animation it is not.\n        this.updateScrollVisibleServiceImpl();\n        setTimeout(this.updateScrollVisibleServiceImpl.bind(this), 500);\n    };\n    ViewportSizeFeature.prototype.updateScrollVisibleServiceImpl = function () {\n        var params = {\n            horizontalScrollShowing: this.isHorizontalScrollShowing(),\n            verticalScrollShowing: this.gridBodyCtrl.isVerticalScrollShowing()\n        };\n        this.scrollVisibleService.setScrollsVisible(params);\n        // fix - gridComp should just listen to event from above\n        this.gridBodyCtrl.setVerticalScrollPaddingVisible(params.verticalScrollShowing);\n    };\n    ViewportSizeFeature.prototype.isHorizontalScrollShowing = function () {\n        var isAlwaysShowHorizontalScroll = this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();\n        return isAlwaysShowHorizontalScroll || this.centerContainerCtrl.isViewportHScrollShowing();\n    };\n    // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n    // out the virtual columns again. gets called from following locations:\n    // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged, API (doLayout)\n    ViewportSizeFeature.prototype.onHorizontalViewportChanged = function () {\n        var scrollWidth = this.centerContainerCtrl.getCenterWidth();\n        var scrollPosition = this.centerContainerCtrl.getViewportScrollLeft();\n        this.columnModel.setViewportPosition(scrollWidth, scrollPosition);\n    };\n    __decorate$Q([\n        Autowired('ctrlsService')\n    ], ViewportSizeFeature.prototype, \"ctrlsService\", void 0);\n    __decorate$Q([\n        Autowired('columnModel')\n    ], ViewportSizeFeature.prototype, \"columnModel\", void 0);\n    __decorate$Q([\n        Autowired('scrollVisibleService')\n    ], ViewportSizeFeature.prototype, \"scrollVisibleService\", void 0);\n    __decorate$Q([\n        Autowired('columnApi')\n    ], ViewportSizeFeature.prototype, \"columnApi\", void 0);\n    __decorate$Q([\n        Autowired('gridApi')\n    ], ViewportSizeFeature.prototype, \"gridApi\", void 0);\n    __decorate$Q([\n        PostConstruct\n    ], ViewportSizeFeature.prototype, \"postConstruct\", null);\n    return ViewportSizeFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$12 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$R = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SetPinnedLeftWidthFeature = /** @class */ (function (_super) {\n    __extends$12(SetPinnedLeftWidthFeature, _super);\n    function SetPinnedLeftWidthFeature(element) {\n        var _this = _super.call(this) || this;\n        _this.element = element;\n        return _this;\n    }\n    SetPinnedLeftWidthFeature.prototype.postConstruct = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_LEFT_PINNED_WIDTH_CHANGED, this.onPinnedLeftWidthChanged.bind(this));\n    };\n    SetPinnedLeftWidthFeature.prototype.onPinnedLeftWidthChanged = function () {\n        var leftWidth = this.pinnedWidthService.getPinnedLeftWidth();\n        var displayed = leftWidth > 0;\n        setDisplayed(this.element, displayed);\n        if (displayed) {\n            setFixedWidth(this.element, leftWidth);\n        }\n    };\n    __decorate$R([\n        Autowired('pinnedWidthService')\n    ], SetPinnedLeftWidthFeature.prototype, \"pinnedWidthService\", void 0);\n    __decorate$R([\n        PostConstruct\n    ], SetPinnedLeftWidthFeature.prototype, \"postConstruct\", null);\n    return SetPinnedLeftWidthFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$13 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$S = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SetPinnedRightWidthFeature = /** @class */ (function (_super) {\n    __extends$13(SetPinnedRightWidthFeature, _super);\n    function SetPinnedRightWidthFeature(element) {\n        var _this = _super.call(this) || this;\n        _this.element = element;\n        return _this;\n    }\n    SetPinnedRightWidthFeature.prototype.postConstruct = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED, this.onPinnedRightWidthChanged.bind(this));\n    };\n    SetPinnedRightWidthFeature.prototype.onPinnedRightWidthChanged = function () {\n        var rightWidth = this.pinnedWidthService.getPinnedRightWidth();\n        var displayed = rightWidth > 0;\n        setDisplayed(this.element, displayed);\n        if (displayed) {\n            setFixedWidth(this.element, rightWidth);\n        }\n    };\n    __decorate$S([\n        Autowired('pinnedWidthService')\n    ], SetPinnedRightWidthFeature.prototype, \"pinnedWidthService\", void 0);\n    __decorate$S([\n        PostConstruct\n    ], SetPinnedRightWidthFeature.prototype, \"postConstruct\", null);\n    return SetPinnedRightWidthFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$14 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$T = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SetHeightFeature = /** @class */ (function (_super) {\n    __extends$14(SetHeightFeature, _super);\n    function SetHeightFeature(eContainer, eWrapper) {\n        var _this = _super.call(this) || this;\n        _this.eContainer = eContainer;\n        _this.eWrapper = eWrapper;\n        return _this;\n    }\n    SetHeightFeature.prototype.postConstruct = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED, this.onHeightChanged.bind(this));\n    };\n    SetHeightFeature.prototype.onHeightChanged = function () {\n        var height = this.maxDivHeightScaler.getUiContainerHeight();\n        var heightString = height != null ? height + \"px\" : \"\";\n        this.eContainer.style.height = heightString;\n        if (this.eWrapper) {\n            this.eWrapper.style.height = heightString;\n        }\n    };\n    __decorate$T([\n        Autowired(\"rowContainerHeightService\")\n    ], SetHeightFeature.prototype, \"maxDivHeightScaler\", void 0);\n    __decorate$T([\n        PostConstruct\n    ], SetHeightFeature.prototype, \"postConstruct\", null);\n    return SetHeightFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$15 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$U = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DragListenerFeature = /** @class */ (function (_super) {\n    __extends$15(DragListenerFeature, _super);\n    function DragListenerFeature(eContainer) {\n        var _this = _super.call(this) || this;\n        _this.eContainer = eContainer;\n        return _this;\n    }\n    DragListenerFeature.prototype.postConstruct = function () {\n        var _this = this;\n        if (!this.gridOptionsWrapper.isEnableRangeSelection() || // no range selection if no property\n            missing(this.rangeService) // no range selection if not enterprise version\n        ) {\n            return;\n        }\n        var params = {\n            dragStartPixels: 0,\n            eElement: this.eContainer,\n            onDragStart: this.rangeService.onDragStart.bind(this.rangeService),\n            onDragStop: this.rangeService.onDragStop.bind(this.rangeService),\n            onDragging: this.rangeService.onDragging.bind(this.rangeService)\n        };\n        this.dragService.addDragSource(params);\n        this.addDestroyFunc(function () { return _this.dragService.removeDragSource(params); });\n    };\n    __decorate$U([\n        Optional('rangeService')\n    ], DragListenerFeature.prototype, \"rangeService\", void 0);\n    __decorate$U([\n        Autowired('dragService')\n    ], DragListenerFeature.prototype, \"dragService\", void 0);\n    __decorate$U([\n        PostConstruct\n    ], DragListenerFeature.prototype, \"postConstruct\", null);\n    return DragListenerFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$16 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$V = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CenterWidthFeature = /** @class */ (function (_super) {\n    __extends$16(CenterWidthFeature, _super);\n    function CenterWidthFeature(callback) {\n        var _this = _super.call(this) || this;\n        _this.callback = callback;\n        return _this;\n    }\n    CenterWidthFeature.prototype.postConstruct = function () {\n        var listener = this.setWidth.bind(this);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, listener);\n        this.setWidth();\n    };\n    CenterWidthFeature.prototype.setWidth = function () {\n        var columnModel = this.columnModel;\n        var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        var centerWidth = columnModel.getBodyContainerWidth();\n        var leftWidth = columnModel.getDisplayedColumnsLeftWidth();\n        var rightWidth = columnModel.getDisplayedColumnsRightWidth();\n        var totalWidth = printLayout ? centerWidth + leftWidth + rightWidth : centerWidth;\n        this.callback(totalWidth);\n    };\n    __decorate$V([\n        Autowired('columnModel')\n    ], CenterWidthFeature.prototype, \"columnModel\", void 0);\n    __decorate$V([\n        PostConstruct\n    ], CenterWidthFeature.prototype, \"postConstruct\", null);\n    return CenterWidthFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$17 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$W = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$a = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$7 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$a(arguments[i]));\n    return ar;\n};\n(function (RowContainerName) {\n    RowContainerName[\"LEFT\"] = \"left\";\n    RowContainerName[\"RIGHT\"] = \"right\";\n    RowContainerName[\"CENTER\"] = \"center\";\n    RowContainerName[\"FULL_WIDTH\"] = \"fullWidth\";\n    RowContainerName[\"TOP_LEFT\"] = \"topLeft\";\n    RowContainerName[\"TOP_RIGHT\"] = \"topRight\";\n    RowContainerName[\"TOP_CENTER\"] = \"topCenter\";\n    RowContainerName[\"TOP_FULL_WIDTH\"] = \"topFullWidth\";\n    RowContainerName[\"BOTTOM_LEFT\"] = \"bottomLeft\";\n    RowContainerName[\"BOTTOM_RIGHT\"] = \"bottomRight\";\n    RowContainerName[\"BOTTOM_CENTER\"] = \"bottomCenter\";\n    RowContainerName[\"BOTTOM_FULL_WIDTH\"] = \"bottomFullWidth\";\n})(exports.RowContainerName || (exports.RowContainerName = {}));\n(function (RowContainerType) {\n    RowContainerType[\"LEFT\"] = \"left\";\n    RowContainerType[\"RIGHT\"] = \"right\";\n    RowContainerType[\"CENTER\"] = \"center\";\n    RowContainerType[\"FULL_WIDTH\"] = \"fullWidth\";\n})(exports.RowContainerType || (exports.RowContainerType = {}));\nfunction getRowContainerTypeForName(name) {\n    switch (name) {\n        case exports.RowContainerName.CENTER:\n        case exports.RowContainerName.TOP_CENTER:\n        case exports.RowContainerName.BOTTOM_CENTER:\n            return exports.RowContainerType.CENTER;\n        case exports.RowContainerName.LEFT:\n        case exports.RowContainerName.TOP_LEFT:\n        case exports.RowContainerName.BOTTOM_LEFT:\n            return exports.RowContainerType.LEFT;\n        case exports.RowContainerName.RIGHT:\n        case exports.RowContainerName.TOP_RIGHT:\n        case exports.RowContainerName.BOTTOM_RIGHT:\n            return exports.RowContainerType.RIGHT;\n        case exports.RowContainerName.FULL_WIDTH:\n        case exports.RowContainerName.TOP_FULL_WIDTH:\n        case exports.RowContainerName.BOTTOM_FULL_WIDTH:\n            return exports.RowContainerType.FULL_WIDTH;\n        default:\n            throw Error('Invalid Row Container Type');\n    }\n}\nvar ContainerCssClasses = convertToMap([\n    [exports.RowContainerName.CENTER, 'ag-center-cols-container'],\n    [exports.RowContainerName.LEFT, 'ag-pinned-left-cols-container'],\n    [exports.RowContainerName.RIGHT, 'ag-pinned-right-cols-container'],\n    [exports.RowContainerName.FULL_WIDTH, 'ag-full-width-container'],\n    [exports.RowContainerName.TOP_CENTER, 'ag-floating-top-container'],\n    [exports.RowContainerName.TOP_LEFT, 'ag-pinned-left-floating-top'],\n    [exports.RowContainerName.TOP_RIGHT, 'ag-pinned-right-floating-top'],\n    [exports.RowContainerName.TOP_FULL_WIDTH, 'ag-floating-top-full-width-container'],\n    [exports.RowContainerName.BOTTOM_CENTER, 'ag-floating-bottom-container'],\n    [exports.RowContainerName.BOTTOM_LEFT, 'ag-pinned-left-floating-bottom'],\n    [exports.RowContainerName.BOTTOM_RIGHT, 'ag-pinned-right-floating-bottom'],\n    [exports.RowContainerName.BOTTOM_FULL_WIDTH, 'ag-floating-bottom-full-width-container'],\n]);\nvar ViewportCssClasses = convertToMap([\n    [exports.RowContainerName.CENTER, 'ag-center-cols-viewport'],\n    [exports.RowContainerName.TOP_CENTER, 'ag-floating-top-viewport'],\n    [exports.RowContainerName.BOTTOM_CENTER, 'ag-floating-bottom-viewport'],\n]);\nvar WrapperCssClasses = convertToMap([\n    [exports.RowContainerName.CENTER, 'ag-center-cols-clipper'],\n]);\nvar RowContainerCtrl = /** @class */ (function (_super) {\n    __extends$17(RowContainerCtrl, _super);\n    function RowContainerCtrl(name) {\n        var _this = _super.call(this) || this;\n        _this.name = name;\n        return _this;\n    }\n    RowContainerCtrl.getRowContainerCssClasses = function (name) {\n        var containerClass = ContainerCssClasses.get(name);\n        var viewportClass = ViewportCssClasses.get(name);\n        var wrapperClass = WrapperCssClasses.get(name);\n        return { container: containerClass, viewport: viewportClass, wrapper: wrapperClass };\n    };\n    RowContainerCtrl.getPinned = function (name) {\n        switch (name) {\n            case exports.RowContainerName.BOTTOM_LEFT:\n            case exports.RowContainerName.TOP_LEFT:\n            case exports.RowContainerName.LEFT:\n                return Constants.PINNED_LEFT;\n            case exports.RowContainerName.BOTTOM_RIGHT:\n            case exports.RowContainerName.TOP_RIGHT:\n            case exports.RowContainerName.RIGHT:\n                return Constants.PINNED_RIGHT;\n            default:\n                return null;\n        }\n    };\n    RowContainerCtrl.prototype.postConstruct = function () {\n        var _this = this;\n        this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n        this.embedFullWidthRows = this.gridOptionsWrapper.isEmbedFullWidthRows();\n        this.forContainers([exports.RowContainerName.CENTER], function () { return _this.viewportSizeFeature = _this.createManagedBean(new ViewportSizeFeature(_this)); });\n    };\n    RowContainerCtrl.prototype.registerWithCtrlsService = function () {\n        switch (this.name) {\n            case exports.RowContainerName.CENTER:\n                this.ctrlsService.registerCenterRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.LEFT:\n                this.ctrlsService.registerLeftRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.RIGHT:\n                this.ctrlsService.registerRightRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.TOP_CENTER:\n                this.ctrlsService.registerTopCenterRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.TOP_LEFT:\n                this.ctrlsService.registerTopLeftRowContainerCon(this);\n                break;\n            case exports.RowContainerName.TOP_RIGHT:\n                this.ctrlsService.registerTopRightRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.BOTTOM_CENTER:\n                this.ctrlsService.registerBottomCenterRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.BOTTOM_LEFT:\n                this.ctrlsService.registerBottomLeftRowContainerCtrl(this);\n                break;\n            case exports.RowContainerName.BOTTOM_RIGHT:\n                this.ctrlsService.registerBottomRightRowContainerCtrl(this);\n                break;\n        }\n    };\n    RowContainerCtrl.prototype.forContainers = function (names, callback) {\n        if (names.indexOf(this.name) >= 0) {\n            callback();\n        }\n    };\n    RowContainerCtrl.prototype.getContainerElement = function () {\n        return this.eContainer;\n    };\n    RowContainerCtrl.prototype.getViewportSizeFeature = function () {\n        return this.viewportSizeFeature;\n    };\n    RowContainerCtrl.prototype.setComp = function (view, eContainer, eViewport, eWrapper) {\n        var _this = this;\n        this.comp = view;\n        this.eContainer = eContainer;\n        this.eViewport = eViewport;\n        this.eWrapper = eWrapper;\n        this.createManagedBean(new RowContainerEventsFeature(this.eContainer));\n        this.addPreventScrollWhileDragging();\n        this.listenOnDomOrder();\n        this.stopHScrollOnPinnedRows();\n        var allTopNoFW = [exports.RowContainerName.TOP_CENTER, exports.RowContainerName.TOP_LEFT, exports.RowContainerName.TOP_RIGHT];\n        var allBottomNoFW = [exports.RowContainerName.BOTTOM_CENTER, exports.RowContainerName.BOTTOM_LEFT, exports.RowContainerName.BOTTOM_RIGHT];\n        var allMiddleNoFW = [exports.RowContainerName.CENTER, exports.RowContainerName.LEFT, exports.RowContainerName.RIGHT];\n        var allNoFW = __spread$7(allTopNoFW, allBottomNoFW, allMiddleNoFW);\n        var allMiddle = [exports.RowContainerName.CENTER, exports.RowContainerName.LEFT, exports.RowContainerName.RIGHT, exports.RowContainerName.FULL_WIDTH];\n        var allCenter = [exports.RowContainerName.CENTER, exports.RowContainerName.TOP_CENTER, exports.RowContainerName.BOTTOM_CENTER];\n        var allLeft = [exports.RowContainerName.LEFT, exports.RowContainerName.BOTTOM_LEFT, exports.RowContainerName.TOP_LEFT];\n        var allRight = [exports.RowContainerName.RIGHT, exports.RowContainerName.BOTTOM_RIGHT, exports.RowContainerName.TOP_RIGHT];\n        this.forContainers(allLeft, function () { return _this.createManagedBean(new SetPinnedLeftWidthFeature(_this.eContainer)); });\n        this.forContainers(allRight, function () { return _this.createManagedBean(new SetPinnedRightWidthFeature(_this.eContainer)); });\n        this.forContainers(allMiddle, function () { return _this.createManagedBean(new SetHeightFeature(_this.eContainer, _this.eWrapper)); });\n        this.forContainers(allNoFW, function () { return _this.createManagedBean(new DragListenerFeature(_this.eContainer)); });\n        this.forContainers(allCenter, function () { return _this.createManagedBean(new CenterWidthFeature(function (width) { return _this.comp.setContainerWidth(width + \"px\"); })); });\n        this.addListeners();\n        this.registerWithCtrlsService();\n    };\n    RowContainerCtrl.prototype.addListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, function () { return _this.onScrollVisibilityChanged(); });\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, function () { return _this.onDisplayedColumnsChanged(); });\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function () { return _this.onDisplayedColumnsWidthChanged(); });\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_ROWS_CHANGED, function () { return _this.onDisplayedRowsChanged(); });\n        this.onScrollVisibilityChanged();\n        this.onDisplayedColumnsChanged();\n        this.onDisplayedColumnsWidthChanged();\n        this.onDisplayedRowsChanged();\n    };\n    RowContainerCtrl.prototype.listenOnDomOrder = function () {\n        var _this = this;\n        var listener = function () { return _this.comp.setDomOrder(_this.gridOptionsWrapper.isEnsureDomOrder()); };\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n        listener();\n    };\n    // when editing a pinned row, if the cell is half outside the scrollable area, the browser can\n    // scroll the column into view. we do not want this, the pinned sections should never scroll.\n    // so we listen to scrolls on these containers and reset the scroll if we find one.\n    RowContainerCtrl.prototype.stopHScrollOnPinnedRows = function () {\n        var _this = this;\n        this.forContainers([exports.RowContainerName.TOP_CENTER, exports.RowContainerName.BOTTOM_CENTER], function () {\n            var resetScrollLeft = function () { return _this.eViewport.scrollLeft = 0; };\n            _this.addManagedListener(_this.eViewport, 'scroll', resetScrollLeft);\n        });\n    };\n    RowContainerCtrl.prototype.onDisplayedColumnsChanged = function () {\n        var _this = this;\n        this.forContainers([exports.RowContainerName.CENTER], function () { return _this.onHorizontalViewportChanged(); });\n    };\n    RowContainerCtrl.prototype.onDisplayedColumnsWidthChanged = function () {\n        var _this = this;\n        this.forContainers([exports.RowContainerName.CENTER], function () { return _this.onHorizontalViewportChanged(); });\n    };\n    RowContainerCtrl.prototype.onScrollVisibilityChanged = function () {\n        if (this.name !== exports.RowContainerName.CENTER) {\n            return;\n        }\n        var visible = this.scrollVisibleService.isHorizontalScrollShowing();\n        var scrollbarWidth = visible ? (this.gridOptionsWrapper.getScrollbarWidth() || 0) : 0;\n        var height = scrollbarWidth == 0 ? '100%' : \"calc(100% + \" + scrollbarWidth + \"px)\";\n        this.comp.setViewportHeight(height);\n    };\n    // this methods prevents the grid views from being scrolled while the dragService is being used\n    // eg. the view should not scroll up and down while dragging rows using the rowDragComp.\n    RowContainerCtrl.prototype.addPreventScrollWhileDragging = function () {\n        var _this = this;\n        var preventScroll = function (e) {\n            if (_this.dragService.isDragging()) {\n                if (e.cancelable) {\n                    e.preventDefault();\n                }\n            }\n        };\n        this.eContainer.addEventListener('touchmove', preventScroll, { passive: false });\n        this.addDestroyFunc(function () { return _this.eContainer.removeEventListener('touchmove', preventScroll); });\n    };\n    // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n    // out the virtual columns again. gets called from following locations:\n    // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged, API (doLayout)\n    RowContainerCtrl.prototype.onHorizontalViewportChanged = function () {\n        var scrollWidth = this.getCenterWidth();\n        var scrollPosition = this.getCenterViewportScrollLeft();\n        this.columnModel.setViewportPosition(scrollWidth, scrollPosition);\n    };\n    RowContainerCtrl.prototype.getCenterWidth = function () {\n        return getInnerWidth(this.eViewport);\n    };\n    RowContainerCtrl.prototype.getCenterViewportScrollLeft = function () {\n        // we defer to a util, as how you calculated scrollLeft when doing RTL depends on the browser\n        return getScrollLeft(this.eViewport, this.enableRtl);\n    };\n    RowContainerCtrl.prototype.registerViewportResizeListener = function (listener) {\n        var unsubscribeFromResize = this.resizeObserverService.observeResize(this.eViewport, listener);\n        this.addDestroyFunc(function () { return unsubscribeFromResize(); });\n    };\n    RowContainerCtrl.prototype.isViewportVisible = function () {\n        return isVisible(this.eViewport);\n    };\n    RowContainerCtrl.prototype.isViewportHScrollShowing = function () {\n        return isHorizontalScrollShowing(this.eViewport);\n    };\n    RowContainerCtrl.prototype.getViewportScrollLeft = function () {\n        return getScrollLeft(this.eViewport, this.enableRtl);\n    };\n    RowContainerCtrl.prototype.isHorizontalScrollShowing = function () {\n        var isAlwaysShowHorizontalScroll = this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();\n        return isAlwaysShowHorizontalScroll || isHorizontalScrollShowing(this.eViewport);\n    };\n    RowContainerCtrl.prototype.getViewportElement = function () {\n        return this.eViewport;\n    };\n    RowContainerCtrl.prototype.setContainerTranslateX = function (amount) {\n        this.eContainer.style.transform = \"translateX(\" + amount + \"px)\";\n    };\n    RowContainerCtrl.prototype.getHScrollPosition = function () {\n        var res = {\n            left: this.eViewport.scrollLeft,\n            right: this.eViewport.scrollLeft + this.eViewport.offsetWidth\n        };\n        return res;\n    };\n    RowContainerCtrl.prototype.setCenterViewportScrollLeft = function (value) {\n        // we defer to a util, as how you calculated scrollLeft when doing RTL depends on the browser\n        setScrollLeft(this.eViewport, value, this.enableRtl);\n    };\n    RowContainerCtrl.prototype.onDisplayedRowsChanged = function () {\n        var _this = this;\n        var fullWithContainer = this.name === exports.RowContainerName.TOP_FULL_WIDTH\n            || this.name === exports.RowContainerName.BOTTOM_FULL_WIDTH\n            || this.name === exports.RowContainerName.FULL_WIDTH;\n        var doesRowMatch = function (rowCtrl) {\n            var fullWidthRow = rowCtrl.isFullWidth();\n            var printLayout = _this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n            var embedFW = _this.embedFullWidthRows || printLayout;\n            var match = fullWithContainer ?\n                !embedFW && fullWidthRow\n                : embedFW || !fullWidthRow;\n            return match;\n        };\n        // this list contains either all pinned top, center or pinned bottom rows\n        var allRowsRegardlessOfFullWidth = this.getRowCtrls();\n        // this filters out rows not for this container, eg if it's a full with row, but we are not full with container\n        var rowsThisContainer = allRowsRegardlessOfFullWidth.filter(doesRowMatch);\n        this.comp.setRowCtrls(rowsThisContainer);\n    };\n    RowContainerCtrl.prototype.getRowCtrls = function () {\n        switch (this.name) {\n            case exports.RowContainerName.TOP_CENTER:\n            case exports.RowContainerName.TOP_LEFT:\n            case exports.RowContainerName.TOP_RIGHT:\n            case exports.RowContainerName.TOP_FULL_WIDTH:\n                return this.rowRenderer.getTopRowCtrls();\n            case exports.RowContainerName.BOTTOM_CENTER:\n            case exports.RowContainerName.BOTTOM_LEFT:\n            case exports.RowContainerName.BOTTOM_RIGHT:\n            case exports.RowContainerName.BOTTOM_FULL_WIDTH:\n                return this.rowRenderer.getBottomRowCtrls();\n            default:\n                return this.rowRenderer.getRowCtrls();\n        }\n    };\n    __decorate$W([\n        Autowired('scrollVisibleService')\n    ], RowContainerCtrl.prototype, \"scrollVisibleService\", void 0);\n    __decorate$W([\n        Autowired('dragService')\n    ], RowContainerCtrl.prototype, \"dragService\", void 0);\n    __decorate$W([\n        Autowired('ctrlsService')\n    ], RowContainerCtrl.prototype, \"ctrlsService\", void 0);\n    __decorate$W([\n        Autowired('columnModel')\n    ], RowContainerCtrl.prototype, \"columnModel\", void 0);\n    __decorate$W([\n        Autowired('resizeObserverService')\n    ], RowContainerCtrl.prototype, \"resizeObserverService\", void 0);\n    __decorate$W([\n        Autowired('rowRenderer')\n    ], RowContainerCtrl.prototype, \"rowRenderer\", void 0);\n    __decorate$W([\n        PostConstruct\n    ], RowContainerCtrl.prototype, \"postConstruct\", null);\n    return RowContainerCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$18 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$X = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GRID_BODY_TEMPLATE = /* html */ \"<div class=\\\"ag-root ag-unselectable\\\" role=\\\"grid\\\">\\n        <ag-header-root ref=\\\"gridHeader\\\"></ag-header-root>\\n        <div class=\\\"ag-floating-top\\\" ref=\\\"eTop\\\" role=\\\"presentation\\\">\\n            <ag-row-container ref=\\\"topLeftContainer\\\" name=\\\"\" + exports.RowContainerName.TOP_LEFT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"topCenterContainer\\\" name=\\\"\" + exports.RowContainerName.TOP_CENTER + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"topRightContainer\\\" name=\\\"\" + exports.RowContainerName.TOP_RIGHT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"topFullWidthContainer\\\" name=\\\"\" + exports.RowContainerName.TOP_FULL_WIDTH + \"\\\"></ag-row-container>\\n        </div>\\n        <div class=\\\"ag-body-viewport\\\" ref=\\\"eBodyViewport\\\" role=\\\"presentation\\\">\\n            <ag-row-container ref=\\\"leftContainer\\\" name=\\\"\" + exports.RowContainerName.LEFT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"centerContainer\\\" name=\\\"\" + exports.RowContainerName.CENTER + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"rightContainer\\\" name=\\\"\" + exports.RowContainerName.RIGHT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"fullWidthContainer\\\" name=\\\"\" + exports.RowContainerName.FULL_WIDTH + \"\\\"></ag-row-container>\\n        </div>\\n        <div class=\\\"ag-floating-bottom\\\" ref=\\\"eBottom\\\" role=\\\"presentation\\\">\\n            <ag-row-container ref=\\\"bottomLeftContainer\\\" name=\\\"\" + exports.RowContainerName.BOTTOM_LEFT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"bottomCenterContainer\\\" name=\\\"\" + exports.RowContainerName.BOTTOM_CENTER + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"bottomRightContainer\\\" name=\\\"\" + exports.RowContainerName.BOTTOM_RIGHT + \"\\\"></ag-row-container>\\n            <ag-row-container ref=\\\"bottomFullWidthContainer\\\" name=\\\"\" + exports.RowContainerName.BOTTOM_FULL_WIDTH + \"\\\"></ag-row-container>\\n        </div>\\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\\n        <ag-overlay-wrapper></ag-overlay-wrapper>\\n    </div>\";\nvar GridBodyComp = /** @class */ (function (_super) {\n    __extends$18(GridBodyComp, _super);\n    function GridBodyComp() {\n        return _super.call(this, GRID_BODY_TEMPLATE) || this;\n    }\n    GridBodyComp.prototype.init = function () {\n        var _this = this;\n        var setHeight = function (height, element) {\n            var heightString = height + \"px\";\n            element.style.minHeight = heightString;\n            element.style.height = heightString;\n        };\n        var compProxy = {\n            setRowAnimationCssOnBodyViewport: function (cssClass, animate) { return _this.setRowAnimationCssOnBodyViewport(cssClass, animate); },\n            setColumnCount: function (count) { return setAriaColCount(_this.getGui(), count); },\n            setRowCount: function (count) { return setAriaRowCount(_this.getGui(), count); },\n            setTopHeight: function (height) { return setHeight(height, _this.eTop); },\n            setBottomHeight: function (height) { return setHeight(height, _this.eBottom); },\n            setTopDisplay: function (display) { return _this.eTop.style.display = display; },\n            setBottomDisplay: function (display) { return _this.eBottom.style.display = display; },\n            setColumnMovingCss: function (cssClass, flag) { return _this.addOrRemoveCssClass(CSS_CLASS_COLUMN_MOVING, flag); },\n            updateLayoutClasses: function (cssClass, params) {\n                var bodyViewportClassList = _this.eBodyViewport.classList;\n                bodyViewportClassList.toggle(exports.LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n                bodyViewportClassList.toggle(exports.LayoutCssClasses.NORMAL, params.normal);\n                bodyViewportClassList.toggle(exports.LayoutCssClasses.PRINT, params.print);\n                _this.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n                _this.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL, params.normal);\n                _this.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT, params.print);\n            },\n            setAlwaysVerticalScrollClass: function (cssClass, on) {\n                return _this.eBodyViewport.classList.toggle(CSS_CLASS_FORCE_VERTICAL_SCROLL, on);\n            },\n            registerBodyViewportResizeListener: function (listener) {\n                var unsubscribeFromResize = _this.resizeObserverService.observeResize(_this.eBodyViewport, listener);\n                _this.addDestroyFunc(function () { return unsubscribeFromResize(); });\n            },\n            setPinnedTopBottomOverflowY: function (overflow) { return _this.eTop.style.overflowY = _this.eBottom.style.overflowY = overflow; },\n            setCellSelectableCss: function (cssClass, selectable) {\n                [_this.eTop, _this.eBodyViewport, _this.eBottom]\n                    .forEach(function (ct) { return ct.classList.toggle(CSS_CLASS_CELL_SELECTABLE, selectable); });\n            },\n        };\n        this.ctrl = this.createManagedBean(new GridBodyCtrl());\n        this.ctrl.setComp(compProxy, this.getGui(), this.eBodyViewport, this.eTop, this.eBottom);\n        if (this.rangeService || this.gridOptionsWrapper.isRowSelectionMulti()) {\n            setAriaMultiSelectable(this.getGui(), true);\n        }\n    };\n    GridBodyComp.prototype.setRowAnimationCssOnBodyViewport = function (cssClass, animateRows) {\n        var bodyViewportClassList = this.eBodyViewport.classList;\n        bodyViewportClassList.toggle(exports.RowAnimationCssClasses.ANIMATION_ON, animateRows);\n        bodyViewportClassList.toggle(exports.RowAnimationCssClasses.ANIMATION_OFF, !animateRows);\n    };\n    GridBodyComp.prototype.getFloatingTopBottom = function () {\n        return [this.eTop, this.eBottom];\n    };\n    __decorate$X([\n        Autowired('resizeObserverService')\n    ], GridBodyComp.prototype, \"resizeObserverService\", void 0);\n    __decorate$X([\n        Optional('rangeService')\n    ], GridBodyComp.prototype, \"rangeService\", void 0);\n    __decorate$X([\n        RefSelector('eBodyViewport')\n    ], GridBodyComp.prototype, \"eBodyViewport\", void 0);\n    __decorate$X([\n        RefSelector('eTop')\n    ], GridBodyComp.prototype, \"eTop\", void 0);\n    __decorate$X([\n        RefSelector('eBottom')\n    ], GridBodyComp.prototype, \"eBottom\", void 0);\n    __decorate$X([\n        RefSelector('gridHeader')\n    ], GridBodyComp.prototype, \"headerRootComp\", void 0);\n    __decorate$X([\n        PostConstruct\n    ], GridBodyComp.prototype, \"init\", null);\n    return GridBodyComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$19 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$Y = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ScrollVisibleService = /** @class */ (function (_super) {\n    __extends$19(ScrollVisibleService, _super);\n    function ScrollVisibleService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ScrollVisibleService.prototype.postConstruct = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this));\n    };\n    ScrollVisibleService.prototype.onDisplayedColumnsChanged = function () {\n        this.update();\n    };\n    ScrollVisibleService.prototype.onDisplayedColumnsWidthChanged = function () {\n        this.update();\n    };\n    ScrollVisibleService.prototype.update = function () {\n        // because of column animation (which takes 200ms), we have to do this twice.\n        // eg if user removes cols anywhere except at the RHS, then the cols on the RHS\n        // will animate to the left to fill the gap. this animation means just after\n        // the cols are removed, the remaining cols are still in the original location\n        // at the start of the animation, so pre animation the H scrollbar is still needed,\n        // but post animation it is not.\n        this.updateImpl();\n        setTimeout(this.updateImpl.bind(this), 500);\n    };\n    ScrollVisibleService.prototype.updateImpl = function () {\n        var centerRowCtrl = this.ctrlsService.getCenterRowContainerCtrl();\n        if (!centerRowCtrl) {\n            return;\n        }\n        var params = {\n            horizontalScrollShowing: centerRowCtrl.isHorizontalScrollShowing(),\n            verticalScrollShowing: this.isVerticalScrollShowing()\n        };\n        this.setScrollsVisible(params);\n    };\n    ScrollVisibleService.prototype.setScrollsVisible = function (params) {\n        var atLeastOneDifferent = this.horizontalScrollShowing !== params.horizontalScrollShowing ||\n            this.verticalScrollShowing !== params.verticalScrollShowing;\n        if (atLeastOneDifferent) {\n            this.horizontalScrollShowing = params.horizontalScrollShowing;\n            this.verticalScrollShowing = params.verticalScrollShowing;\n            var event_1 = {\n                type: Events.EVENT_SCROLL_VISIBILITY_CHANGED,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n    };\n    // used by pagination service - to know page height\n    ScrollVisibleService.prototype.isHorizontalScrollShowing = function () {\n        return this.horizontalScrollShowing;\n    };\n    // used by header container\n    ScrollVisibleService.prototype.isVerticalScrollShowing = function () {\n        return this.verticalScrollShowing;\n    };\n    __decorate$Y([\n        Autowired('columnApi')\n    ], ScrollVisibleService.prototype, \"columnApi\", void 0);\n    __decorate$Y([\n        Autowired('gridApi')\n    ], ScrollVisibleService.prototype, \"gridApi\", void 0);\n    __decorate$Y([\n        Autowired('ctrlsService')\n    ], ScrollVisibleService.prototype, \"ctrlsService\", void 0);\n    __decorate$Y([\n        PostConstruct\n    ], ScrollVisibleService.prototype, \"postConstruct\", null);\n    ScrollVisibleService = __decorate$Y([\n        Bean('scrollVisibleService')\n    ], ScrollVisibleService);\n    return ScrollVisibleService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1a = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$Z = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar MouseEventService = /** @class */ (function (_super) {\n    __extends$1a(MouseEventService, _super);\n    function MouseEventService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.gridInstanceId = MouseEventService_1.gridInstanceSequence.next();\n        return _this;\n    }\n    MouseEventService_1 = MouseEventService;\n    // we put the instance id onto the main DOM element. this is used for events, when grids are inside grids,\n    // so the grid can work out if the even came from this grid or a grid inside this one. see the ctrl+v logic\n    // for where this is used.\n    MouseEventService.prototype.stampTopLevelGridCompWithGridInstance = function (eGridDiv) {\n        eGridDiv[MouseEventService_1.GRID_DOM_KEY] = this.gridInstanceId;\n    };\n    MouseEventService.prototype.getRenderedCellForEvent = function (event) {\n        return getCtrlForEvent(this.gridOptionsWrapper, event, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n    };\n    // walks the path of the event, and returns true if this grid is the first one that it finds. if doing\n    // master / detail grids, and a child grid is found, then it returns false. this stops things like copy/paste\n    // getting executed on many grids at the same time.\n    MouseEventService.prototype.isEventFromThisGrid = function (event) {\n        var res = this.isElementInThisGrid(event.target);\n        return res;\n    };\n    MouseEventService.prototype.isElementInThisGrid = function (element) {\n        var pointer = element;\n        while (pointer) {\n            var instanceId = pointer[MouseEventService_1.GRID_DOM_KEY];\n            if (exists(instanceId)) {\n                var eventFromThisGrid = instanceId === this.gridInstanceId;\n                return eventFromThisGrid;\n            }\n            pointer = pointer.parentElement;\n        }\n        return false;\n    };\n    MouseEventService.prototype.getCellPositionForEvent = function (event) {\n        var cellComp = this.getRenderedCellForEvent(event);\n        return cellComp ? cellComp.getCellPosition() : null;\n    };\n    MouseEventService.prototype.getNormalisedPosition = function (event) {\n        var gridPanelHasScrolls = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n        var e = event;\n        var x;\n        var y;\n        if (e.clientX != null || e.clientY != null) {\n            x = e.clientX;\n            y = e.clientY;\n        }\n        else {\n            x = e.x;\n            y = e.y;\n        }\n        if (gridPanelHasScrolls) {\n            var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n            var vRange = gridBodyCon.getScrollFeature().getVScrollPosition();\n            var hRange = gridBodyCon.getScrollFeature().getHScrollPosition();\n            x += hRange.left;\n            y += vRange.top;\n        }\n        return { x: x, y: y };\n    };\n    var MouseEventService_1;\n    MouseEventService.gridInstanceSequence = new NumberSequence();\n    MouseEventService.GRID_DOM_KEY = '__ag_grid_instance';\n    __decorate$Z([\n        Autowired('ctrlsService')\n    ], MouseEventService.prototype, \"ctrlsService\", void 0);\n    MouseEventService = MouseEventService_1 = __decorate$Z([\n        Bean('mouseEventService')\n    ], MouseEventService);\n    return MouseEventService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1b = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$c = (undefined && undefined.__assign) || function () {\n    __assign$c = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$c.apply(this, arguments);\n};\nvar __decorate$_ = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar NavigationService = /** @class */ (function (_super) {\n    __extends$1b(NavigationService, _super);\n    function NavigationService() {\n        var _this = _super.call(this) || this;\n        _this.onPageDown = throttle(_this.onPageDown, 100);\n        _this.onPageUp = throttle(_this.onPageUp, 100);\n        return _this;\n    }\n    NavigationService.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            _this.gridBodyCon = p.gridBodyCtrl;\n        });\n    };\n    NavigationService.prototype.handlePageScrollingKey = function (event) {\n        var key = event.key;\n        var alt = event.altKey;\n        var ctrl = event.ctrlKey || event.metaKey;\n        var rangeServiceShouldHandleShift = !!this.rangeService && event.shiftKey;\n        var currentCell = this.mouseEventService.getCellPositionForEvent(event);\n        if (!currentCell) {\n            return false;\n        }\n        var processed = false;\n        switch (key) {\n            case KeyCode.PAGE_HOME:\n            case KeyCode.PAGE_END:\n                // handle home and end when ctrl & alt are NOT pressed\n                if (!ctrl && !alt) {\n                    this.onHomeOrEndKey(key);\n                    processed = true;\n                }\n                break;\n            case KeyCode.LEFT:\n            case KeyCode.RIGHT:\n            case KeyCode.UP:\n            case KeyCode.DOWN:\n                // handle when ctrl is pressed only, if shift is pressed\n                // it will be handled by the rangeService\n                if (ctrl && !alt && !rangeServiceShouldHandleShift) {\n                    this.onCtrlUpDownLeftRight(key, currentCell);\n                    processed = true;\n                }\n                break;\n            case KeyCode.PAGE_DOWN:\n                // handle page up and page down when ctrl & alt are NOT pressed\n                if (!ctrl && !alt) {\n                    this.onPageDown(currentCell);\n                    processed = true;\n                }\n                break;\n            case KeyCode.PAGE_UP:\n                // handle page up and page down when ctrl & alt are NOT pressed\n                if (!ctrl && !alt) {\n                    this.onPageUp(currentCell);\n                    processed = true;\n                }\n                break;\n        }\n        if (processed) {\n            event.preventDefault();\n        }\n        return processed;\n    };\n    NavigationService.prototype.navigateTo = function (navigateParams) {\n        var scrollIndex = navigateParams.scrollIndex, scrollType = navigateParams.scrollType, scrollColumn = navigateParams.scrollColumn, focusIndex = navigateParams.focusIndex, focusColumn = navigateParams.focusColumn;\n        if (exists(scrollColumn) && !scrollColumn.isPinned()) {\n            this.gridBodyCon.getScrollFeature().ensureColumnVisible(scrollColumn);\n        }\n        if (exists(scrollIndex)) {\n            this.gridBodyCon.getScrollFeature().ensureIndexVisible(scrollIndex, scrollType);\n        }\n        // make sure the cell is rendered, needed if we are to focus\n        this.animationFrameService.flushAllFrames();\n        // if we don't do this, the range will be left on the last cell, which will leave the last focused cell\n        // highlighted.\n        this.focusService.setFocusedCell(focusIndex, focusColumn, null, true);\n        if (this.rangeService) {\n            var cellPosition = { rowIndex: focusIndex, rowPinned: null, column: focusColumn };\n            this.rangeService.setRangeToCell(cellPosition);\n        }\n    };\n    NavigationService.prototype.onPageDown = function (gridCell) {\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n        var pixelsInOnePage = this.getViewportHeight();\n        var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n        var currentPageBottomPixel = scrollPosition.top + pixelsInOnePage;\n        var currentPageBottomRow = this.paginationProxy.getRowIndexAtPixel(currentPageBottomPixel + pagingPixelOffset);\n        if (this.columnModel.isAutoRowHeightActive()) {\n            this.navigateToNextPageWithAutoHeight(gridCell, currentPageBottomRow);\n        }\n        else {\n            this.navigateToNextPage(gridCell, currentPageBottomRow);\n        }\n    };\n    NavigationService.prototype.onPageUp = function (gridCell) {\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n        var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n        var currentPageTopPixel = scrollPosition.top;\n        var currentPageTopRow = this.paginationProxy.getRowIndexAtPixel(currentPageTopPixel + pagingPixelOffset);\n        if (this.columnModel.isAutoRowHeightActive()) {\n            this.navigateToNextPageWithAutoHeight(gridCell, currentPageTopRow, true);\n        }\n        else {\n            this.navigateToNextPage(gridCell, currentPageTopRow, true);\n        }\n    };\n    NavigationService.prototype.navigateToNextPage = function (gridCell, scrollIndex, up) {\n        if (up === void 0) { up = false; }\n        var _a, _b;\n        var pixelsInOnePage = this.getViewportHeight();\n        var firstRow = this.paginationProxy.getPageFirstRow();\n        var lastRow = this.paginationProxy.getPageLastRow();\n        var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n        var currentRowNode = this.paginationProxy.getRow(gridCell.rowIndex);\n        var rowPixelDiff = up\n            ? (((_a = currentRowNode) === null || _a === void 0 ? void 0 : _a.rowHeight) - pixelsInOnePage - pagingPixelOffset)\n            : (pixelsInOnePage - pagingPixelOffset);\n        var nextCellPixel = ((_b = currentRowNode) === null || _b === void 0 ? void 0 : _b.rowTop) + rowPixelDiff;\n        var focusIndex = this.paginationProxy.getRowIndexAtPixel(nextCellPixel + pagingPixelOffset);\n        if (focusIndex === gridCell.rowIndex) {\n            var diff = up ? -1 : 1;\n            scrollIndex = focusIndex = gridCell.rowIndex + diff;\n        }\n        var scrollType;\n        if (up) {\n            scrollType = 'bottom';\n            if (focusIndex < firstRow) {\n                focusIndex = firstRow;\n            }\n            if (scrollIndex < firstRow) {\n                scrollIndex = firstRow;\n            }\n        }\n        else {\n            scrollType = 'top';\n            if (focusIndex > lastRow) {\n                focusIndex = lastRow;\n            }\n            if (scrollIndex > lastRow) {\n                scrollIndex = lastRow;\n            }\n        }\n        if (this.isRowTallerThanView(focusIndex)) {\n            scrollIndex = focusIndex;\n            scrollType = 'top';\n        }\n        this.navigateTo({\n            scrollIndex: scrollIndex,\n            scrollType: scrollType,\n            scrollColumn: null,\n            focusIndex: focusIndex,\n            focusColumn: gridCell.column\n        });\n    };\n    NavigationService.prototype.navigateToNextPageWithAutoHeight = function (gridCell, scrollIndex, up) {\n        var _this = this;\n        if (up === void 0) { up = false; }\n        // because autoHeight will calculate the height of rows after scroll\n        // first we scroll towards the required point, then we add a small\n        // delay to allow the height to be recalculated, check which index\n        // should be focused and then finally navigate to that index.\n        // TODO: we should probably have an event fired once to scrollbar has\n        // settled and all rowHeights have been calculated instead of relying\n        // on a setTimeout of 50ms.\n        this.navigateTo({\n            scrollIndex: scrollIndex,\n            scrollType: up ? 'bottom' : 'top',\n            scrollColumn: null,\n            focusIndex: scrollIndex,\n            focusColumn: gridCell.column\n        });\n        setTimeout(function () {\n            var focusIndex = _this.getNextFocusIndexForAutoHeight(gridCell, up);\n            _this.navigateTo({\n                scrollIndex: scrollIndex,\n                scrollType: up ? 'bottom' : 'top',\n                scrollColumn: null,\n                focusIndex: focusIndex,\n                focusColumn: gridCell.column\n            });\n        }, 50);\n    };\n    NavigationService.prototype.getNextFocusIndexForAutoHeight = function (gridCell, up) {\n        if (up === void 0) { up = false; }\n        var _a;\n        var step = up ? -1 : 1;\n        var pixelsInOnePage = this.getViewportHeight();\n        var lastRowIndex = this.paginationProxy.getPageLastRow();\n        var pixelSum = 0;\n        var currentIndex = gridCell.rowIndex;\n        while (currentIndex >= 0 && currentIndex <= lastRowIndex) {\n            var currentCell = this.paginationProxy.getRow(currentIndex);\n            if (currentCell) {\n                var currentCellHeight = (_a = currentCell.rowHeight, (_a !== null && _a !== void 0 ? _a : 0));\n                if (pixelSum + currentCellHeight > pixelsInOnePage) {\n                    break;\n                }\n                pixelSum += currentCellHeight;\n            }\n            currentIndex += step;\n        }\n        return Math.max(0, Math.min(currentIndex, lastRowIndex));\n    };\n    NavigationService.prototype.getViewportHeight = function () {\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n        var scrollbarWidth = this.gridOptionsWrapper.getScrollbarWidth();\n        var pixelsInOnePage = scrollPosition.bottom - scrollPosition.top;\n        if (this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()) {\n            pixelsInOnePage -= scrollbarWidth;\n        }\n        return pixelsInOnePage;\n    };\n    NavigationService.prototype.isRowTallerThanView = function (rowIndex) {\n        var rowNode = this.paginationProxy.getRow(rowIndex);\n        if (!rowNode) {\n            return false;\n        }\n        var rowHeight = rowNode.rowHeight;\n        if (typeof rowHeight !== 'number') {\n            return false;\n        }\n        return rowHeight > this.getViewportHeight();\n    };\n    NavigationService.prototype.onCtrlUpDownLeftRight = function (key, gridCell) {\n        var cellToFocus = this.cellNavigationService.getNextCellToFocus(key, gridCell, true);\n        var rowIndex = cellToFocus.rowIndex, column = cellToFocus.column;\n        this.navigateTo({\n            scrollIndex: rowIndex,\n            scrollType: null,\n            scrollColumn: column,\n            focusIndex: rowIndex,\n            focusColumn: column\n        });\n    };\n    // home brings focus to top left cell, end brings focus to bottom right, grid scrolled to bring\n    // same cell into view (which means either scroll all the way up, or all the way down).\n    NavigationService.prototype.onHomeOrEndKey = function (key) {\n        var homeKey = key === KeyCode.PAGE_HOME;\n        var allColumns = this.columnModel.getAllDisplayedColumns();\n        var columnToSelect = homeKey ? allColumns[0] : last(allColumns);\n        var scrollIndex = homeKey ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow();\n        this.navigateTo({\n            scrollIndex: scrollIndex,\n            scrollType: null,\n            scrollColumn: columnToSelect,\n            focusIndex: scrollIndex,\n            focusColumn: columnToSelect\n        });\n    };\n    // result of keyboard event\n    NavigationService.prototype.onTabKeyDown = function (previous, keyboardEvent) {\n        var backwards = keyboardEvent.shiftKey;\n        var movedToNextCell = this.tabToNextCellCommon(previous, backwards, keyboardEvent);\n        if (movedToNextCell) {\n            // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n            // to the normal tabbing so user can exit the grid.\n            keyboardEvent.preventDefault();\n            return;\n        }\n        // if we didn't move to next cell, then need to tab out of the cells, ie to the header (if going\n        // backwards)\n        if (backwards) {\n            var _a = previous.getRowPosition(), rowIndex = _a.rowIndex, rowPinned = _a.rowPinned;\n            var firstRow = rowPinned ? rowIndex === 0 : rowIndex === this.paginationProxy.getPageFirstRow();\n            if (firstRow) {\n                keyboardEvent.preventDefault();\n                this.focusService.focusLastHeader(keyboardEvent);\n            }\n        }\n        else {\n            // if the case it's a popup editor, the focus is on the editor and not the previous cell.\n            // in order for the tab navigation to work, we need to focus the browser back onto the\n            // previous cell.\n            if (previous instanceof CellCtrl) {\n                previous.focusCell(true);\n            }\n            if (this.focusService.focusNextGridCoreContainer(backwards)) {\n                keyboardEvent.preventDefault();\n            }\n        }\n    };\n    // comes from API\n    NavigationService.prototype.tabToNextCell = function (backwards, event) {\n        var focusedCell = this.focusService.getFocusedCell();\n        // if no focus, then cannot navigate\n        if (!focusedCell) {\n            return false;\n        }\n        var cellOrRow = this.getCellByPosition(focusedCell);\n        // if cell is not rendered, means user has scrolled away from the cell\n        // or that the focusedCell is a Full Width Row\n        if (!cellOrRow) {\n            cellOrRow = this.rowRenderer.getRowByPosition(focusedCell);\n            if (!cellOrRow || !cellOrRow.isFullWidth()) {\n                return false;\n            }\n        }\n        return this.tabToNextCellCommon(cellOrRow, backwards, event);\n    };\n    NavigationService.prototype.tabToNextCellCommon = function (previous, backwards, event) {\n        var editing = previous.isEditing();\n        // if cell is not editing, there is still chance row is editing if it's Full Row Editing\n        if (!editing && previous instanceof CellCtrl) {\n            var cell = previous;\n            var row = cell.getRowCtrl();\n            if (row) {\n                editing = row.isEditing();\n            }\n        }\n        var res;\n        if (editing) {\n            // if we are editing, we know it's not a Full Width Row (RowComp)\n            if (this.gridOptionsWrapper.isFullRowEdit()) {\n                res = this.moveToNextEditingRow(previous, backwards, event);\n            }\n            else {\n                res = this.moveToNextEditingCell(previous, backwards, event);\n            }\n        }\n        else {\n            res = this.moveToNextCellNotEditing(previous, backwards);\n        }\n        // if a cell wasn't found, it's possible that focus was moved to the header\n        return res || !!this.focusService.getFocusedHeader();\n    };\n    NavigationService.prototype.moveToNextEditingCell = function (previousCell, backwards, event) {\n        if (event === void 0) { event = null; }\n        var previousPos = previousCell.getCellPosition();\n        // need to do this before getting next cell to edit, in case the next cell\n        // has editable function (eg colDef.editable=func() ) and it depends on the\n        // result of this cell, so need to save updates from the first edit, in case\n        // the value is referenced in the function.\n        previousCell.stopEditing();\n        // find the next cell to start editing\n        var nextCell = this.findNextCellToFocusOn(previousPos, backwards, true);\n        if (nextCell == null) {\n            return false;\n        }\n        // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n        // to the normal tabbing so user can exit the grid.\n        nextCell.startEditing(null, null, true, event);\n        nextCell.focusCell(false);\n        return true;\n    };\n    NavigationService.prototype.moveToNextEditingRow = function (previousCell, backwards, event) {\n        if (event === void 0) { event = null; }\n        var previousPos = previousCell.getCellPosition();\n        // find the next cell to start editing\n        var nextCell = this.findNextCellToFocusOn(previousPos, backwards, true);\n        if (nextCell == null) {\n            return false;\n        }\n        var nextPos = nextCell.getCellPosition();\n        var previousEditable = this.isCellEditable(previousPos);\n        var nextEditable = this.isCellEditable(nextPos);\n        var rowsMatch = nextPos && previousPos.rowIndex === nextPos.rowIndex && previousPos.rowPinned === nextPos.rowPinned;\n        if (previousEditable) {\n            previousCell.setFocusOutOnEditor();\n        }\n        if (!rowsMatch) {\n            var pRow = previousCell.getRowCtrl();\n            pRow.stopEditing();\n            var nRow = nextCell.getRowCtrl();\n            nRow.startRowEditing(undefined, undefined, undefined, event);\n        }\n        if (nextEditable) {\n            nextCell.setFocusInOnEditor();\n            nextCell.focusCell();\n        }\n        else {\n            nextCell.focusCell(true);\n        }\n        return true;\n    };\n    NavigationService.prototype.moveToNextCellNotEditing = function (previousCell, backwards) {\n        var displayedColumns = this.columnModel.getAllDisplayedColumns();\n        var cellPos;\n        if (previousCell instanceof RowCtrl) {\n            cellPos = __assign$c(__assign$c({}, previousCell.getRowPosition()), { column: backwards ? displayedColumns[0] : last(displayedColumns) });\n        }\n        else {\n            cellPos = previousCell.getCellPosition();\n        }\n        // find the next cell to start editing\n        var nextCell = this.findNextCellToFocusOn(cellPos, backwards, false);\n        // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n        // to the normal tabbing so user can exit the grid.\n        if (nextCell instanceof CellCtrl) {\n            nextCell.focusCell(true);\n        }\n        else if (nextCell) {\n            return this.tryToFocusFullWidthRow(nextCell.getRowPosition(), backwards);\n        }\n        return exists(nextCell);\n    };\n    // called by the cell, when tab is pressed while editing.\n    // @return: RenderedCell when navigation successful, otherwise null\n    NavigationService.prototype.findNextCellToFocusOn = function (previousPosition, backwards, startEditing) {\n        var nextPosition = previousPosition;\n        while (true) {\n            if (previousPosition !== nextPosition) {\n                previousPosition = nextPosition;\n            }\n            if (!backwards) {\n                nextPosition = this.getLastCellOfColSpan(nextPosition);\n            }\n            nextPosition = this.cellNavigationService.getNextTabbedCell(nextPosition, backwards);\n            // allow user to override what cell to go to next\n            var userFunc = this.gridOptionsWrapper.getTabToNextCellFunc();\n            if (exists(userFunc)) {\n                var params = {\n                    backwards: backwards,\n                    editing: startEditing,\n                    previousCellPosition: previousPosition,\n                    nextCellPosition: nextPosition ? nextPosition : null\n                };\n                var userCell = userFunc(params);\n                if (exists(userCell)) {\n                    if (userCell.floating) {\n                        doOnce(function () { console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\"); }, 'no floating in userCell');\n                        userCell.rowPinned = userCell.floating;\n                    }\n                    nextPosition = {\n                        rowIndex: userCell.rowIndex,\n                        column: userCell.column,\n                        rowPinned: userCell.rowPinned\n                    };\n                }\n                else {\n                    nextPosition = null;\n                }\n            }\n            // if no 'next cell', means we have got to last cell of grid, so nothing to move to,\n            // so bottom right cell going forwards, or top left going backwards\n            if (!nextPosition) {\n                return null;\n            }\n            if (nextPosition.rowIndex < 0) {\n                var headerLen = this.headerNavigationService.getHeaderRowCount();\n                this.focusService.focusHeaderPosition({\n                    headerPosition: {\n                        headerRowIndex: headerLen + (nextPosition.rowIndex),\n                        column: nextPosition.column\n                    }\n                });\n                return null;\n            }\n            // if editing, but cell not editable, skip cell. we do this before we do all of\n            // the 'ensure index visible' and 'flush all frames', otherwise if we are skipping\n            // a bunch of cells (eg 10 rows) then all the work on ensuring cell visible is useless\n            // (except for the last one) which causes grid to stall for a while.\n            // note - for full row edit, we do focus non-editable cells, as the row stays in edit mode.\n            var fullRowEdit = this.gridOptionsWrapper.isFullRowEdit();\n            if (startEditing && !fullRowEdit) {\n                var cellIsEditable = this.isCellEditable(nextPosition);\n                if (!cellIsEditable) {\n                    continue;\n                }\n            }\n            this.ensureCellVisible(nextPosition);\n            // we have to call this after ensureColumnVisible - otherwise it could be a virtual column\n            // or row that is not currently in view, hence the renderedCell would not exist\n            var nextCell = this.getCellByPosition(nextPosition);\n            // if next cell is fullWidth row, then no rendered cell,\n            // as fullWidth rows have no cells, so we skip it\n            if (!nextCell) {\n                var row = this.rowRenderer.getRowByPosition(nextPosition);\n                if (!row || !row.isFullWidth()) {\n                    continue;\n                }\n                else {\n                    return row;\n                }\n            }\n            if (nextCell.isSuppressNavigable()) {\n                continue;\n            }\n            // by default, when we click a cell, it gets selected into a range, so to keep keyboard navigation\n            // consistent, we set into range here also.\n            if (this.rangeService) {\n                this.rangeService.setRangeToCell(nextPosition);\n            }\n            // we successfully tabbed onto a grid cell, so return true\n            return nextCell;\n        }\n    };\n    NavigationService.prototype.isCellEditable = function (cell) {\n        var rowNode = this.lookupRowNodeForCell(cell);\n        if (rowNode) {\n            return cell.column.isCellEditable(rowNode);\n        }\n        return false;\n    };\n    NavigationService.prototype.getCellByPosition = function (cellPosition) {\n        var rowCtrl = this.rowRenderer.getRowByPosition(cellPosition);\n        if (!rowCtrl) {\n            return null;\n        }\n        return rowCtrl.getCellCtrl(cellPosition.column);\n    };\n    NavigationService.prototype.lookupRowNodeForCell = function (cell) {\n        if (cell.rowPinned === Constants.PINNED_TOP) {\n            return this.pinnedRowModel.getPinnedTopRow(cell.rowIndex);\n        }\n        if (cell.rowPinned === Constants.PINNED_BOTTOM) {\n            return this.pinnedRowModel.getPinnedBottomRow(cell.rowIndex);\n        }\n        return this.paginationProxy.getRow(cell.rowIndex);\n    };\n    // we use index for rows, but column object for columns, as the next column (by index) might not\n    // be visible (header grouping) so it's not reliable, so using the column object instead.\n    NavigationService.prototype.navigateToNextCell = function (event, key, currentCell, allowUserOverride) {\n        // we keep searching for a next cell until we find one. this is how the group rows get skipped\n        var nextCell = currentCell;\n        var hitEdgeOfGrid = false;\n        while (nextCell && (nextCell === currentCell || !this.isValidNavigateCell(nextCell))) {\n            // if the current cell is spanning across multiple columns, we need to move\n            // our current position to be the last cell on the right before finding the\n            // the next target.\n            if (this.gridOptionsWrapper.isEnableRtl()) {\n                if (key === KeyCode.LEFT) {\n                    nextCell = this.getLastCellOfColSpan(nextCell);\n                }\n            }\n            else if (key === KeyCode.RIGHT) {\n                nextCell = this.getLastCellOfColSpan(nextCell);\n            }\n            nextCell = this.cellNavigationService.getNextCellToFocus(key, nextCell);\n            // eg if going down, and nextCell=undefined, means we are gone past the last row\n            hitEdgeOfGrid = missing(nextCell);\n        }\n        if (hitEdgeOfGrid && event && event.key === KeyCode.UP) {\n            nextCell = {\n                rowIndex: -1,\n                rowPinned: null,\n                column: currentCell.column\n            };\n        }\n        // allow user to override what cell to go to next. when doing normal cell navigation (with keys)\n        // we allow this, however if processing 'enter after edit' we don't allow override\n        if (allowUserOverride) {\n            var userFunc = this.gridOptionsWrapper.getNavigateToNextCellFunc();\n            if (exists(userFunc)) {\n                var params = {\n                    key: key,\n                    previousCellPosition: currentCell,\n                    nextCellPosition: nextCell ? nextCell : null,\n                    event: event\n                };\n                var userCell = userFunc(params);\n                if (exists(userCell)) {\n                    if (userCell.floating) {\n                        doOnce(function () { console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\"); }, 'no floating in userCell');\n                        userCell.rowPinned = userCell.floating;\n                    }\n                    nextCell = {\n                        rowPinned: userCell.rowPinned,\n                        rowIndex: userCell.rowIndex,\n                        column: userCell.column\n                    };\n                }\n                else {\n                    nextCell = null;\n                }\n            }\n        }\n        // no next cell means we have reached a grid boundary, eg left, right, top or bottom of grid\n        if (!nextCell) {\n            return;\n        }\n        if (nextCell.rowIndex < 0) {\n            var headerLen = this.headerNavigationService.getHeaderRowCount();\n            this.focusService.focusHeaderPosition({\n                headerPosition: { headerRowIndex: headerLen + (nextCell.rowIndex), column: currentCell.column },\n                event: event || undefined\n            });\n            return;\n        }\n        // in case we have col spanning we get the cellComp and use it to get the\n        // position. This was we always focus the first cell inside the spanning.\n        var normalisedPosition = this.getNormalisedPosition(nextCell);\n        if (normalisedPosition) {\n            this.focusPosition(normalisedPosition);\n        }\n        else {\n            this.tryToFocusFullWidthRow(nextCell);\n        }\n    };\n    NavigationService.prototype.getNormalisedPosition = function (cellPosition) {\n        // ensureCellVisible first, to make sure cell at position is rendered.\n        this.ensureCellVisible(cellPosition);\n        var cellComp = this.getCellByPosition(cellPosition);\n        // not guaranteed to have a cellComp when using the SSRM as blocks are loading.\n        if (!cellComp) {\n            return null;\n        }\n        cellPosition = cellComp.getCellPosition();\n        // we call this again, as nextCell can be different to it's previous value due to Column Spanning\n        // (ie if cursor moving from right to left, and cell is spanning columns, then nextCell was the\n        // last column in the group, however now it's the first column in the group). if we didn't do\n        // ensureCellVisible again, then we could only be showing the last portion (last column) of the\n        // merged cells.\n        this.ensureCellVisible(cellPosition);\n        return cellPosition;\n    };\n    NavigationService.prototype.tryToFocusFullWidthRow = function (position, backwards) {\n        if (backwards === void 0) { backwards = false; }\n        var displayedColumns = this.columnModel.getAllDisplayedColumns();\n        var rowComp = this.rowRenderer.getRowByPosition(position);\n        if (!rowComp || !rowComp.isFullWidth()) {\n            return false;\n        }\n        var currentCellFocused = this.focusService.getFocusedCell();\n        var cellPosition = {\n            rowIndex: position.rowIndex,\n            rowPinned: position.rowPinned,\n            column: position.column || (backwards ? last(displayedColumns) : displayedColumns[0])\n        };\n        this.focusPosition(cellPosition);\n        var fromBelow = currentCellFocused != null ? this.rowPositionUtils.before(cellPosition, currentCellFocused) : false;\n        var focusEvent = {\n            type: Events.EVENT_FULL_WIDTH_ROW_FOCUSED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            rowIndex: cellPosition.rowIndex,\n            rowPinned: cellPosition.rowPinned,\n            column: cellPosition.column,\n            isFullWidthCell: true,\n            floating: cellPosition.rowPinned,\n            fromBelow: fromBelow\n        };\n        this.eventService.dispatchEvent(focusEvent);\n        return true;\n    };\n    NavigationService.prototype.focusPosition = function (cellPosition) {\n        this.focusService.setFocusedCell(cellPosition.rowIndex, cellPosition.column, cellPosition.rowPinned, true);\n        if (this.rangeService) {\n            this.rangeService.setRangeToCell(cellPosition);\n        }\n    };\n    NavigationService.prototype.isValidNavigateCell = function (cell) {\n        var rowNode = this.rowPositionUtils.getRowNode(cell);\n        // we do not allow focusing on detail rows and full width rows\n        return !!rowNode;\n    };\n    NavigationService.prototype.getLastCellOfColSpan = function (cell) {\n        var cellCtrl = this.getCellByPosition(cell);\n        if (!cellCtrl) {\n            return cell;\n        }\n        var colSpanningList = cellCtrl.getColSpanningList();\n        if (colSpanningList.length === 1) {\n            return cell;\n        }\n        return {\n            rowIndex: cell.rowIndex,\n            column: last(colSpanningList),\n            rowPinned: cell.rowPinned\n        };\n    };\n    NavigationService.prototype.ensureCellVisible = function (gridCell) {\n        // this scrolls the row into view\n        if (missing(gridCell.rowPinned)) {\n            this.gridBodyCon.getScrollFeature().ensureIndexVisible(gridCell.rowIndex);\n        }\n        if (!gridCell.column.isPinned()) {\n            this.gridBodyCon.getScrollFeature().ensureColumnVisible(gridCell.column);\n        }\n        // need to nudge the scrolls for the floating items. otherwise when we set focus on a non-visible\n        // floating cell, the scrolls get out of sync\n        this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter();\n        // need to flush frames, to make sure the correct cells are rendered\n        this.animationFrameService.flushAllFrames();\n    };\n    __decorate$_([\n        Autowired('columnApi')\n    ], NavigationService.prototype, \"columnApi\", void 0);\n    __decorate$_([\n        Autowired('gridApi')\n    ], NavigationService.prototype, \"gridApi\", void 0);\n    __decorate$_([\n        Autowired('mouseEventService')\n    ], NavigationService.prototype, \"mouseEventService\", void 0);\n    __decorate$_([\n        Autowired('paginationProxy')\n    ], NavigationService.prototype, \"paginationProxy\", void 0);\n    __decorate$_([\n        Autowired('focusService')\n    ], NavigationService.prototype, \"focusService\", void 0);\n    __decorate$_([\n        Autowired('animationFrameService')\n    ], NavigationService.prototype, \"animationFrameService\", void 0);\n    __decorate$_([\n        Optional('rangeService')\n    ], NavigationService.prototype, \"rangeService\", void 0);\n    __decorate$_([\n        Autowired('columnModel')\n    ], NavigationService.prototype, \"columnModel\", void 0);\n    __decorate$_([\n        Autowired('ctrlsService')\n    ], NavigationService.prototype, \"ctrlsService\", void 0);\n    __decorate$_([\n        Autowired('rowRenderer')\n    ], NavigationService.prototype, \"rowRenderer\", void 0);\n    __decorate$_([\n        Autowired('headerNavigationService')\n    ], NavigationService.prototype, \"headerNavigationService\", void 0);\n    __decorate$_([\n        Autowired(\"rowPositionUtils\")\n    ], NavigationService.prototype, \"rowPositionUtils\", void 0);\n    __decorate$_([\n        Autowired(\"cellNavigationService\")\n    ], NavigationService.prototype, \"cellNavigationService\", void 0);\n    __decorate$_([\n        Autowired(\"pinnedRowModel\")\n    ], NavigationService.prototype, \"pinnedRowModel\", void 0);\n    __decorate$_([\n        PostConstruct\n    ], NavigationService.prototype, \"postConstruct\", null);\n    NavigationService = __decorate$_([\n        Bean('navigationService')\n    ], NavigationService);\n    return NavigationService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1c = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$$ = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PopupEditorWrapper = /** @class */ (function (_super) {\n    __extends$1c(PopupEditorWrapper, _super);\n    function PopupEditorWrapper(params) {\n        var _this = _super.call(this, /* html */ \"<div class=\\\"ag-popup-editor\\\" tabindex=\\\"-1\\\"/>\") || this;\n        _this.params = params;\n        return _this;\n    }\n    PopupEditorWrapper.prototype.postConstruct = function () {\n        this.gridOptionsWrapper.setDomData(this.getGui(), PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER, true);\n        this.addKeyDownListener();\n    };\n    PopupEditorWrapper.prototype.addKeyDownListener = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        var params = this.params;\n        var listener = function (event) {\n            if (!isUserSuppressingKeyboardEvent(_this.gridOptionsWrapper, event, params.node, params.column, true)) {\n                params.onKeyDown(event);\n            }\n        };\n        this.addManagedListener(eGui, 'keydown', listener);\n    };\n    PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER = 'popupEditorWrapper';\n    __decorate$$([\n        PostConstruct\n    ], PopupEditorWrapper.prototype, \"postConstruct\", null);\n    return PopupEditorWrapper;\n}(PopupComponent));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1d = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar CellComp = /** @class */ (function (_super) {\n    __extends$1d(CellComp, _super);\n    function CellComp(beans, cellCtrl, printLayout, eRow, editingRow) {\n        var _this = _super.call(this) || this;\n        // every time we go into edit mode, or back again, this gets incremented.\n        // it's the components way of dealing with the async nature of framework components,\n        // so if a framework component takes a while to be created, we know if the object\n        // is still relevant when creating is finished. eg we could click edit / un-edit 20\n        // times before the first React edit component comes back - we should discard\n        // the first 19.\n        _this.rendererVersion = 0;\n        _this.editorVersion = 0;\n        _this.beans = beans;\n        _this.column = cellCtrl.getColumn();\n        _this.rowNode = cellCtrl.getRowNode();\n        _this.rowCtrl = cellCtrl.getRowCtrl();\n        _this.eRow = eRow;\n        _this.setTemplate(/* html */ \"<div comp-id=\\\"\" + _this.getCompId() + \"\\\"/>\");\n        var eGui = _this.getGui();\n        _this.forceWrapper = cellCtrl.isForceWrapper();\n        _this.refreshWrapper(false);\n        var setAttribute = function (name, value, element) {\n            var actualElement = element ? element : eGui;\n            if (value != null && value != '') {\n                actualElement.setAttribute(name, value);\n            }\n            else {\n                actualElement.removeAttribute(name);\n            }\n        };\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            setUserStyles: function (styles) { return addStylesToElement(eGui, styles); },\n            getFocusableElement: function () { return _this.getFocusableElement(); },\n            setTabIndex: function (tabIndex) { return setAttribute('tabindex', tabIndex.toString()); },\n            setRole: function (role) { return setAriaRole(eGui, role); },\n            setColId: function (colId) { return setAttribute('col-id', colId); },\n            setTitle: function (title) { return setAttribute('title', title); },\n            setIncludeSelection: function (include) { return _this.includeSelection = include; },\n            setIncludeRowDrag: function (include) { return _this.includeRowDrag = include; },\n            setIncludeDndSource: function (include) { return _this.includeDndSource = include; },\n            setRenderDetails: function (compDetails, valueToDisplay, force) {\n                return _this.setRenderDetails(compDetails, valueToDisplay, force);\n            },\n            setEditDetails: function (compDetails, popup, position) {\n                return _this.setEditDetails(compDetails, popup, position);\n            },\n            getCellEditor: function () { return _this.cellEditor || null; },\n            getCellRenderer: function () { return _this.cellRenderer || null; },\n            getParentOfValue: function () { return _this.getParentOfValue(); }\n        };\n        _this.cellCtrl = cellCtrl;\n        cellCtrl.setComp(compProxy, _this.getGui(), _this.eCellWrapper, printLayout, editingRow);\n        return _this;\n    }\n    CellComp.prototype.getParentOfValue = function () {\n        if (this.eCellValue) {\n            // if not editing, and using wrapper, then value goes in eCellValue\n            return this.eCellValue;\n        }\n        if (this.eCellWrapper) {\n            // if editing, and using wrapper, value (cell editor) goes in eCellWrapper\n            return this.eCellWrapper;\n        }\n        // if editing or rendering, and not using wrapper, value (or comp) is directly inside cell\n        return this.getGui();\n    };\n    CellComp.prototype.setRenderDetails = function (compDetails, valueToDisplay, forceNewCellRendererInstance) {\n        // this can happen if the users asks for the cell to refresh, but we are not showing the vale as we are editing\n        var isInlineEditing = this.cellEditor && !this.cellEditorPopupWrapper;\n        if (isInlineEditing) {\n            return;\n        }\n        // this means firstRender will be true for one pass only, as it's initialised to undefined\n        this.firstRender = this.firstRender == null;\n        // if display template has changed, means any previous Cell Renderer is in the wrong location\n        var controlWrapperChanged = this.refreshWrapper(false);\n        // all of these have dependencies on the eGui, so only do them after eGui is set\n        if (compDetails) {\n            var neverRefresh = forceNewCellRendererInstance || controlWrapperChanged;\n            var cellRendererRefreshSuccessful = neverRefresh ? false : this.refreshCellRenderer(compDetails);\n            if (!cellRendererRefreshSuccessful) {\n                this.destroyRenderer();\n                this.createCellRendererInstance(compDetails);\n            }\n        }\n        else {\n            this.destroyRenderer();\n            this.insertValueWithoutCellRenderer(valueToDisplay);\n        }\n    };\n    CellComp.prototype.setEditDetails = function (compDetails, popup, position) {\n        if (compDetails) {\n            this.createCellEditorInstance(compDetails, popup, position);\n        }\n        else {\n            this.destroyEditor();\n        }\n    };\n    CellComp.prototype.removeControls = function () {\n        this.checkboxSelectionComp = this.beans.context.destroyBean(this.checkboxSelectionComp);\n        this.dndSourceComp = this.beans.context.destroyBean(this.dndSourceComp);\n        this.rowDraggingComp = this.beans.context.destroyBean(this.rowDraggingComp);\n    };\n    // returns true if wrapper was changed\n    CellComp.prototype.refreshWrapper = function (editing) {\n        var providingControls = this.includeRowDrag || this.includeDndSource || this.includeSelection;\n        var usingWrapper = providingControls || this.forceWrapper;\n        var putWrapperIn = usingWrapper && this.eCellWrapper == null;\n        if (putWrapperIn) {\n            this.eCellWrapper = loadTemplate(\"<div class=\\\"ag-cell-wrapper\\\" role=\\\"presentation\\\"></div>\");\n            this.getGui().appendChild(this.eCellWrapper);\n        }\n        var takeWrapperOut = !usingWrapper && this.eCellWrapper != null;\n        if (takeWrapperOut) {\n            removeFromParent(this.eCellWrapper);\n            this.eCellWrapper = undefined;\n        }\n        this.addOrRemoveCssClass('ag-cell-value', !usingWrapper);\n        var usingCellValue = !editing && usingWrapper;\n        var putCellValueIn = usingCellValue && this.eCellValue == null;\n        if (putCellValueIn) {\n            this.eCellValue = loadTemplate(\"<span class=\\\"ag-cell-value\\\" role=\\\"presentation\\\"></span>\");\n            this.eCellWrapper.appendChild(this.eCellValue);\n        }\n        var takeCellValueOut = !usingCellValue && this.eCellValue != null;\n        if (takeCellValueOut) {\n            removeFromParent(this.eCellValue);\n            this.eCellValue = undefined;\n        }\n        var templateChanged = putWrapperIn || takeWrapperOut || putCellValueIn || takeCellValueOut;\n        if (templateChanged) {\n            this.removeControls();\n        }\n        if (!editing && providingControls) {\n            this.addControls();\n        }\n        return templateChanged;\n    };\n    CellComp.prototype.addControls = function () {\n        var id = this.eCellValue.id = \"cell-\" + this.getCompId();\n        var describedByIds = [];\n        if (this.includeRowDrag) {\n            if (this.rowDraggingComp == null) {\n                this.rowDraggingComp = this.cellCtrl.createRowDragComp();\n                if (this.rowDraggingComp) {\n                    // put the checkbox in before the value\n                    this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(), this.eCellValue);\n                }\n            }\n        }\n        if (this.includeDndSource) {\n            if (this.dndSourceComp == null) {\n                this.dndSourceComp = this.cellCtrl.createDndSource();\n                // put the checkbox in before the value\n                this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(), this.eCellValue);\n            }\n        }\n        if (this.includeSelection) {\n            if (this.checkboxSelectionComp == null) {\n                this.checkboxSelectionComp = this.cellCtrl.createSelectionCheckbox();\n                this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(), this.eCellValue);\n            }\n            describedByIds.push(this.checkboxSelectionComp.getCheckboxId());\n        }\n        describedByIds.push(id);\n        setAriaDescribedBy(this.getGui(), describedByIds.join(' '));\n    };\n    CellComp.prototype.createCellEditorInstance = function (compDetails, popup, position) {\n        var _this = this;\n        var versionCopy = this.editorVersion;\n        var cellEditorPromise = compDetails.newAgStackInstance();\n        if (!cellEditorPromise) {\n            return;\n        } // if empty, userComponentFactory already did a console message\n        var params = compDetails.params;\n        cellEditorPromise.then(function (c) { return _this.afterCellEditorCreated(versionCopy, c, params, popup, position); });\n        // if we don't do this, and editor component is async, then there will be a period\n        // when the component isn't present and keyboard navigation won't work - so example\n        // of user hitting tab quickly (more quickly than renderers getting created) won't work\n        var cellEditorAsync = missing(this.cellEditor);\n        if (cellEditorAsync && params.cellStartedEdit) {\n            this.cellCtrl.focusCell(true);\n        }\n    };\n    CellComp.prototype.insertValueWithoutCellRenderer = function (valueToDisplay) {\n        var eParent = this.getParentOfValue();\n        clearElement(eParent);\n        var escapedValue = valueToDisplay != null ? escapeString(valueToDisplay) : null;\n        if (escapedValue != null) {\n            eParent.innerHTML = escapedValue;\n        }\n    };\n    CellComp.prototype.destroyEditorAndRenderer = function () {\n        this.destroyRenderer();\n        this.destroyEditor();\n    };\n    CellComp.prototype.destroyRenderer = function () {\n        var context = this.beans.context;\n        this.cellRenderer = context.destroyBean(this.cellRenderer);\n        removeFromParent(this.cellRendererGui);\n        this.cellRendererGui = null;\n        this.rendererVersion++;\n    };\n    CellComp.prototype.destroyEditor = function () {\n        var context = this.beans.context;\n        if (this.hideEditorPopup) {\n            this.hideEditorPopup();\n        }\n        this.hideEditorPopup = undefined;\n        this.cellEditor = context.destroyBean(this.cellEditor);\n        this.cellEditorPopupWrapper = context.destroyBean(this.cellEditorPopupWrapper);\n        removeFromParent(this.cellEditorGui);\n        this.cellEditorGui = null;\n        this.editorVersion++;\n    };\n    CellComp.prototype.refreshCellRenderer = function (compClassAndParams) {\n        if (this.cellRenderer == null || this.cellRenderer.refresh == null) {\n            return false;\n        }\n        // if different Cell Renderer configured this time (eg user is using selector, and\n        // returns different component) then don't refresh, force recreate of Cell Renderer\n        if (this.cellRendererClass !== compClassAndParams.componentClass) {\n            return false;\n        }\n        // take any custom params off of the user\n        var result = this.cellRenderer.refresh(compClassAndParams.params);\n        // NOTE on undefined: previous version of the cellRenderer.refresh() interface\n        // returned nothing, if the method existed, we assumed it refreshed. so for\n        // backwards compatibility, we assume if method exists and returns nothing,\n        // that it was successful.\n        return result === true || result === undefined;\n    };\n    CellComp.prototype.createCellRendererInstance = function (compDetails) {\n        var _this = this;\n        // never use task service if angularCompileRows=true, as that assume the cell renderers\n        // are finished when the row is created. also we never use it if animation frame service\n        // is turned off.\n        // and lastly we never use it if doing auto-height, as the auto-height service checks the\n        // row height directly after the cell is created, it doesn't wait around for the tasks to complete\n        var angularCompileRows = this.beans.gridOptionsWrapper.isAngularCompileRows();\n        var suppressAnimationFrame = this.beans.gridOptionsWrapper.isSuppressAnimationFrame();\n        var useTaskService = !angularCompileRows && !suppressAnimationFrame;\n        var displayComponentVersionCopy = this.rendererVersion;\n        var componentClass = compDetails.componentClass;\n        var createCellRendererFunc = function () {\n            var staleTask = _this.rendererVersion !== displayComponentVersionCopy || !_this.isAlive();\n            if (staleTask) {\n                return;\n            }\n            // this can return null in the event that the user has switched from a renderer component to nothing, for example\n            // when using a cellRendererSelect to return a component or null depending on row data etc\n            var componentPromise = compDetails.newAgStackInstance();\n            var callback = _this.afterCellRendererCreated.bind(_this, displayComponentVersionCopy, componentClass);\n            if (componentPromise) {\n                componentPromise.then(callback);\n            }\n        };\n        // we only use task service when rendering for first time, which means it is not used when doing edits.\n        // if we changed this (always use task service) would make sense, however it would break tests, possibly\n        // test of users.\n        if (useTaskService && this.firstRender) {\n            this.beans.animationFrameService.createTask(createCellRendererFunc, this.rowNode.rowIndex, 'createTasksP2');\n        }\n        else {\n            createCellRendererFunc();\n        }\n    };\n    CellComp.prototype.getCtrl = function () {\n        return this.cellCtrl;\n    };\n    CellComp.prototype.getRowCtrl = function () {\n        return this.rowCtrl;\n    };\n    CellComp.prototype.getCellRenderer = function () {\n        return this.cellRenderer;\n    };\n    CellComp.prototype.getCellEditor = function () {\n        return this.cellEditor;\n    };\n    CellComp.prototype.afterCellRendererCreated = function (cellRendererVersion, cellRendererClass, cellRenderer) {\n        var staleTask = !this.isAlive() || cellRendererVersion !== this.rendererVersion;\n        if (staleTask) {\n            this.beans.context.destroyBean(cellRenderer);\n            return;\n        }\n        this.cellRenderer = cellRenderer;\n        this.cellRendererClass = cellRendererClass;\n        this.cellRendererGui = this.cellRenderer.getGui();\n        if (this.cellRendererGui != null) {\n            var eParent = this.getParentOfValue();\n            clearElement(eParent);\n            eParent.appendChild(this.cellRendererGui);\n        }\n    };\n    CellComp.prototype.afterCellEditorCreated = function (requestVersion, cellEditor, params, popup, position) {\n        // if editingCell=false, means user cancelled the editor before component was ready.\n        // if versionMismatch, then user cancelled the edit, then started the edit again, and this\n        //   is the first editor which is now stale.\n        var staleComp = requestVersion !== this.editorVersion;\n        if (staleComp) {\n            this.beans.context.destroyBean(cellEditor);\n            return;\n        }\n        var editingCancelledByUserComp = cellEditor.isCancelBeforeStart && cellEditor.isCancelBeforeStart();\n        if (editingCancelledByUserComp) {\n            this.beans.context.destroyBean(cellEditor);\n            this.cellCtrl.stopEditing();\n            return;\n        }\n        if (!cellEditor.getGui) {\n            console.warn(\"AG Grid: cellEditor for column \" + this.column.getId() + \" is missing getGui() method\");\n            this.beans.context.destroyBean(cellEditor);\n            return;\n        }\n        this.cellEditor = cellEditor;\n        this.cellEditorGui = cellEditor.getGui();\n        var cellEditorInPopup = popup || (cellEditor.isPopup !== undefined && cellEditor.isPopup());\n        if (cellEditorInPopup) {\n            if (!popup) {\n                this.cellCtrl.hackSayEditingInPopup();\n            }\n            this.addPopupCellEditor(params, position);\n        }\n        else {\n            this.addInCellEditor();\n        }\n        if (cellEditor.afterGuiAttached) {\n            cellEditor.afterGuiAttached();\n        }\n    };\n    CellComp.prototype.addInCellEditor = function () {\n        var eGui = this.getGui();\n        // if focus is inside the cell, we move focus to the cell itself\n        // before removing it's contents, otherwise errors could be thrown.\n        var eDocument = this.beans.gridOptionsWrapper.getDocument();\n        if (eGui.contains(eDocument.activeElement)) {\n            eGui.focus();\n        }\n        this.destroyRenderer();\n        this.refreshWrapper(true);\n        this.clearParentOfValue();\n        if (this.cellEditorGui) {\n            var eParent = this.getParentOfValue();\n            eParent.appendChild(this.cellEditorGui);\n        }\n    };\n    CellComp.prototype.addPopupCellEditor = function (params, position) {\n        var _this = this;\n        if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n            console.warn('AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both ' +\n                '- either turn off fullRowEdit, or stop using popup editors.');\n        }\n        var cellEditor = this.cellEditor;\n        // if a popup, then we wrap in a popup editor and return the popup\n        this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));\n        var ePopupGui = this.cellEditorPopupWrapper.getGui();\n        if (this.cellEditorGui) {\n            ePopupGui.appendChild(this.cellEditorGui);\n        }\n        var popupService = this.beans.popupService;\n        var useModelPopup = this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus();\n        // see if position provided by colDef, if not then check old way of method on cellComp\n        var positionToUse = position != null ? position : cellEditor.getPopupPosition ? cellEditor.getPopupPosition() : 'over';\n        var positionParams = {\n            column: this.column,\n            rowNode: this.rowNode,\n            type: 'popupCellEditor',\n            eventSource: this.getGui(),\n            ePopup: ePopupGui,\n            keepWithinBounds: true\n        };\n        var positionCallback = positionToUse === 'under' ?\n            popupService.positionPopupUnderComponent.bind(popupService, positionParams)\n            : popupService.positionPopupOverComponent.bind(popupService, positionParams);\n        var translate = this.beans.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = popupService.addPopup({\n            modal: useModelPopup,\n            eChild: ePopupGui,\n            closeOnEsc: true,\n            closedCallback: function () { _this.cellCtrl.onPopupEditorClosed(); },\n            anchorToElement: this.getGui(),\n            positionCallback: positionCallback,\n            ariaLabel: translate('ariaLabelCellEditor', 'Cell Editor')\n        });\n        if (addPopupRes) {\n            this.hideEditorPopup = addPopupRes.hideFunc;\n        }\n    };\n    CellComp.prototype.detach = function () {\n        this.eRow.removeChild(this.getGui());\n    };\n    // if the row is also getting destroyed, then we don't need to remove from dom,\n    // as the row will also get removed, so no need to take out the cells from the row\n    // if the row is going (removing is an expensive operation, so only need to remove\n    // the top part)\n    //\n    // note - this is NOT called by context, as we don't wire / unwire the CellComp for performance reasons.\n    CellComp.prototype.destroy = function () {\n        this.cellCtrl.stopEditing();\n        this.destroyEditorAndRenderer();\n        this.removeControls();\n        _super.prototype.destroy.call(this);\n    };\n    CellComp.prototype.clearParentOfValue = function () {\n        var eGui = this.getGui();\n        // if focus is inside the cell, we move focus to the cell itself\n        // before removing it's contents, otherwise errors could be thrown.\n        var eDocument = this.beans.gridOptionsWrapper.getDocument();\n        if (eGui.contains(eDocument.activeElement)) {\n            eGui.focus({\n                preventScroll: true\n            });\n        }\n        clearElement(this.getParentOfValue());\n    };\n    return CellComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1e = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar RowComp = /** @class */ (function (_super) {\n    __extends$1e(RowComp, _super);\n    function RowComp(ctrl, beans, containerType) {\n        var _this = _super.call(this) || this;\n        _this.cellComps = {};\n        _this.beans = beans;\n        _this.rowCtrl = ctrl;\n        _this.setTemplate(/* html */ \"<div comp-id=\\\"\" + _this.getCompId() + \"\\\" style=\\\"\" + _this.getInitialStyle() + \"\\\"/>\");\n        var eGui = _this.getGui();\n        var style = eGui.style;\n        var compProxy = {\n            setDomOrder: function (domOrder) { return _this.domOrder = domOrder; },\n            setCellCtrls: function (cellCtrls) { return _this.setCellCtrls(cellCtrls); },\n            showFullWidth: function (compDetails) { return _this.showFullWidth(compDetails); },\n            getFullWidthCellRenderer: function () { return _this.getFullWidthCellRenderer(); },\n            addOrRemoveCssClass: function (name, on) { return _this.addOrRemoveCssClass(name, on); },\n            setUserStyles: function (styles) { return addStylesToElement(eGui, styles); },\n            setTop: function (top) { return style.top = top; },\n            setTransform: function (transform) { return style.transform = transform; },\n            setRowIndex: function (rowIndex) { return eGui.setAttribute('row-index', rowIndex); },\n            setRole: function (role) { return setAriaRole(eGui, role); },\n            setRowId: function (rowId) { return eGui.setAttribute('row-id', rowId); },\n            setRowBusinessKey: function (businessKey) { return eGui.setAttribute('row-business-key', businessKey); },\n            setTabIndex: function (tabIndex) { return eGui.setAttribute('tabindex', tabIndex.toString()); }\n        };\n        ctrl.setComp(compProxy, _this.getGui(), containerType);\n        return _this;\n    }\n    RowComp.prototype.getInitialStyle = function () {\n        var transform = this.rowCtrl.getInitialTransform();\n        var top = this.rowCtrl.getInitialRowTop();\n        return transform ? \"transform: \" + transform : \"top: \" + top;\n    };\n    RowComp.prototype.showFullWidth = function (compDetails) {\n        var _this = this;\n        var callback = function (cellRenderer) {\n            if (_this.isAlive()) {\n                var eGui = cellRenderer.getGui();\n                _this.getGui().appendChild(eGui);\n                _this.rowCtrl.setupDetailRowAutoHeight(eGui);\n                _this.setFullWidthRowComp(cellRenderer);\n            }\n            else {\n                _this.beans.context.destroyBean(cellRenderer);\n            }\n        };\n        // if not in cache, create new one\n        var res = compDetails.newAgStackInstance();\n        if (!res) {\n            return;\n        }\n        res.then(callback);\n    };\n    RowComp.prototype.setCellCtrls = function (cellCtrls) {\n        var _this = this;\n        var cellsToRemove = Object.assign({}, this.cellComps);\n        cellCtrls.forEach(function (cellCtrl) {\n            var key = cellCtrl.getInstanceId();\n            var existingCellComp = _this.cellComps[key];\n            if (existingCellComp == null) {\n                _this.newCellComp(cellCtrl);\n            }\n            else {\n                cellsToRemove[key] = null;\n            }\n        });\n        var cellCompsToRemove = getAllValuesInObject(cellsToRemove)\n            .filter(function (cellComp) { return cellComp != null; });\n        this.destroyCells(cellCompsToRemove);\n        this.ensureDomOrder(cellCtrls);\n    };\n    RowComp.prototype.ensureDomOrder = function (cellCtrls) {\n        var _this = this;\n        if (!this.domOrder) {\n            return;\n        }\n        var elementsInOrder = [];\n        cellCtrls.forEach(function (cellCtrl) {\n            var cellComp = _this.cellComps[cellCtrl.getInstanceId()];\n            if (cellComp) {\n                elementsInOrder.push(cellComp.getGui());\n            }\n        });\n        setDomChildOrder(this.getGui(), elementsInOrder);\n    };\n    RowComp.prototype.newCellComp = function (cellCtrl) {\n        var cellComp = new CellComp(this.beans, cellCtrl, this.rowCtrl.isPrintLayout(), this.getGui(), this.rowCtrl.isEditing());\n        this.cellComps[cellCtrl.getInstanceId()] = cellComp;\n        this.getGui().appendChild(cellComp.getGui());\n    };\n    RowComp.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n        this.destroyAllCells();\n    };\n    RowComp.prototype.destroyAllCells = function () {\n        var cellsToDestroy = getAllValuesInObject(this.cellComps).filter(function (cp) { return cp != null; });\n        this.destroyCells(cellsToDestroy);\n    };\n    RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {\n        var _this = this;\n        if (this.fullWidthCellRenderer) {\n            console.error('AG Grid - should not be setting fullWidthRowComponent twice');\n        }\n        this.fullWidthCellRenderer = fullWidthRowComponent;\n        this.addDestroyFunc(function () {\n            _this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);\n        });\n    };\n    RowComp.prototype.getFullWidthCellRenderer = function () {\n        return this.fullWidthCellRenderer;\n    };\n    RowComp.prototype.destroyCells = function (cellComps) {\n        var _this = this;\n        cellComps.forEach(function (cellComp) {\n            // could be old reference, ie removed cell\n            if (!cellComp) {\n                return;\n            }\n            // check cellComp belongs in this container\n            var instanceId = cellComp.getCtrl().getInstanceId();\n            if (_this.cellComps[instanceId] !== cellComp) {\n                return;\n            }\n            cellComp.detach();\n            cellComp.destroy();\n            _this.cellComps[instanceId] = null;\n        });\n    };\n    return RowComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1f = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$d = (undefined && undefined.__assign) || function () {\n    __assign$d = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$d.apply(this, arguments);\n};\nvar __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nfunction templateFactory() {\n    var name = Component.elementGettingCreated.getAttribute('name');\n    var cssClasses = RowContainerCtrl.getRowContainerCssClasses(name);\n    var res;\n    var template1 = name === exports.RowContainerName.CENTER;\n    var template2 = name === exports.RowContainerName.TOP_CENTER || name === exports.RowContainerName.BOTTOM_CENTER;\n    if (template1) {\n        res = /* html */\n            \"<div class=\\\"\" + cssClasses.wrapper + \"\\\" ref=\\\"eWrapper\\\" role=\\\"presentation\\\">\\n                <div class=\\\"\" + cssClasses.viewport + \"\\\" ref=\\\"eViewport\\\" role=\\\"presentation\\\">\\n                    <div class=\\\"\" + cssClasses.container + \"\\\" ref=\\\"eContainer\\\"></div>\\n                </div>\\n            </div>\";\n    }\n    else if (template2) {\n        res = /* html */\n            \"<div class=\\\"\" + cssClasses.viewport + \"\\\" ref=\\\"eViewport\\\" role=\\\"presentation\\\">\\n                <div class=\\\"\" + cssClasses.container + \"\\\" ref=\\\"eContainer\\\"></div>\\n            </div>\";\n    }\n    else {\n        res = /* html */\n            \"<div class=\\\"\" + cssClasses.container + \"\\\" ref=\\\"eContainer\\\"></div>\";\n    }\n    return res;\n}\nvar RowContainerComp = /** @class */ (function (_super) {\n    __extends$1f(RowContainerComp, _super);\n    function RowContainerComp() {\n        var _this = _super.call(this, templateFactory()) || this;\n        _this.rowComps = {};\n        _this.name = Component.elementGettingCreated.getAttribute('name');\n        _this.type = getRowContainerTypeForName(_this.name);\n        return _this;\n    }\n    RowContainerComp.prototype.postConstruct = function () {\n        var _this = this;\n        var compProxy = {\n            setViewportHeight: function (height) { return _this.eViewport.style.height = height; },\n            setRowCtrls: function (rowCtrls) { return _this.setRowCtrls(rowCtrls); },\n            setDomOrder: function (domOrder) {\n                _this.domOrder = domOrder;\n            },\n            setContainerWidth: function (width) { return _this.eContainer.style.width = width; }\n        };\n        var ctrl = this.createManagedBean(new RowContainerCtrl(this.name));\n        ctrl.setComp(compProxy, this.eContainer, this.eViewport, this.eWrapper);\n    };\n    RowContainerComp.prototype.preDestroy = function () {\n        // destroys all row comps\n        this.setRowCtrls([]);\n    };\n    RowContainerComp.prototype.setRowCtrls = function (rowCtrls) {\n        var _this = this;\n        var oldRows = __assign$d({}, this.rowComps);\n        this.rowComps = {};\n        this.lastPlacedElement = null;\n        var processRow = function (rowCon) {\n            var instanceId = rowCon.getInstanceId();\n            var existingRowComp = oldRows[instanceId];\n            if (existingRowComp) {\n                _this.rowComps[instanceId] = existingRowComp;\n                delete oldRows[instanceId];\n                _this.ensureDomOrder(existingRowComp.getGui());\n            }\n            else {\n                var rowComp = _this.newRowComp(rowCon);\n                _this.rowComps[instanceId] = rowComp;\n                _this.appendRow(rowComp.getGui());\n            }\n        };\n        rowCtrls.forEach(processRow);\n        getAllValuesInObject(oldRows).forEach(function (oldRowComp) {\n            _this.eContainer.removeChild(oldRowComp.getGui());\n            oldRowComp.destroy();\n        });\n        setAriaRole(this.eContainer, rowCtrls.length ? \"rowgroup\" : \"presentation\");\n    };\n    RowContainerComp.prototype.appendRow = function (element) {\n        if (this.domOrder) {\n            insertWithDomOrder(this.eContainer, element, this.lastPlacedElement);\n        }\n        else {\n            this.eContainer.appendChild(element);\n        }\n        this.lastPlacedElement = element;\n    };\n    RowContainerComp.prototype.ensureDomOrder = function (eRow) {\n        if (this.domOrder) {\n            ensureDomOrder(this.eContainer, eRow, this.lastPlacedElement);\n            this.lastPlacedElement = eRow;\n        }\n    };\n    RowContainerComp.prototype.newRowComp = function (rowCtrl) {\n        var pinned = RowContainerCtrl.getPinned(this.name);\n        var res = new RowComp(rowCtrl, this.beans, this.type);\n        return res;\n    };\n    __decorate$10([\n        Autowired('beans')\n    ], RowContainerComp.prototype, \"beans\", void 0);\n    __decorate$10([\n        RefSelector('eViewport')\n    ], RowContainerComp.prototype, \"eViewport\", void 0);\n    __decorate$10([\n        RefSelector('eContainer')\n    ], RowContainerComp.prototype, \"eContainer\", void 0);\n    __decorate$10([\n        RefSelector('eWrapper')\n    ], RowContainerComp.prototype, \"eWrapper\", void 0);\n    __decorate$10([\n        PostConstruct\n    ], RowContainerComp.prototype, \"postConstruct\", null);\n    __decorate$10([\n        PreDestroy\n    ], RowContainerComp.prototype, \"preDestroy\", null);\n    return RowContainerComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar BodyDropPivotTarget = /** @class */ (function () {\n    function BodyDropPivotTarget(pinned) {\n        this.columnsToAggregate = [];\n        this.columnsToGroup = [];\n        this.columnsToPivot = [];\n        this.pinned = pinned;\n    }\n    /** Callback for when drag enters */\n    BodyDropPivotTarget.prototype.onDragEnter = function (draggingEvent) {\n        var _this = this;\n        this.clearColumnsList();\n        // in pivot mode, we don't accept any drops if functions are read only\n        if (this.gridOptionsWrapper.isFunctionsReadOnly()) {\n            return;\n        }\n        var dragColumns = draggingEvent.dragItem.columns;\n        if (!dragColumns) {\n            return;\n        }\n        dragColumns.forEach(function (column) {\n            // we don't allow adding secondary columns\n            if (!column.isPrimary()) {\n                return;\n            }\n            if (column.isAnyFunctionActive()) {\n                return;\n            }\n            if (column.isAllowValue()) {\n                _this.columnsToAggregate.push(column);\n            }\n            else if (column.isAllowRowGroup()) {\n                _this.columnsToGroup.push(column);\n            }\n            else if (column.isAllowPivot()) {\n                _this.columnsToPivot.push(column);\n            }\n        });\n    };\n    BodyDropPivotTarget.prototype.getIconName = function () {\n        var totalColumns = this.columnsToAggregate.length + this.columnsToGroup.length + this.columnsToPivot.length;\n        if (totalColumns > 0) {\n            return this.pinned ? DragAndDropService.ICON_PINNED : DragAndDropService.ICON_MOVE;\n        }\n        return null;\n    };\n    /** Callback for when drag leaves */\n    BodyDropPivotTarget.prototype.onDragLeave = function (draggingEvent) {\n        // if we are taking columns out of the center, then we remove them from the report\n        this.clearColumnsList();\n    };\n    BodyDropPivotTarget.prototype.clearColumnsList = function () {\n        this.columnsToAggregate.length = 0;\n        this.columnsToGroup.length = 0;\n        this.columnsToPivot.length = 0;\n    };\n    /** Callback for when dragging */\n    BodyDropPivotTarget.prototype.onDragging = function (draggingEvent) {\n    };\n    /** Callback for when drag stops */\n    BodyDropPivotTarget.prototype.onDragStop = function (draggingEvent) {\n        if (this.columnsToAggregate.length > 0) {\n            this.columnModel.addValueColumns(this.columnsToAggregate, \"toolPanelDragAndDrop\");\n        }\n        if (this.columnsToGroup.length > 0) {\n            this.columnModel.addRowGroupColumns(this.columnsToGroup, \"toolPanelDragAndDrop\");\n        }\n        if (this.columnsToPivot.length > 0) {\n            this.columnModel.addPivotColumns(this.columnsToPivot, \"toolPanelDragAndDrop\");\n        }\n    };\n    __decorate$11([\n        Autowired('columnModel')\n    ], BodyDropPivotTarget.prototype, \"columnModel\", void 0);\n    __decorate$11([\n        Autowired('gridOptionsWrapper')\n    ], BodyDropPivotTarget.prototype, \"gridOptionsWrapper\", void 0);\n    return BodyDropPivotTarget;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar MoveColumnFeature = /** @class */ (function () {\n    function MoveColumnFeature(pinned, eContainer) {\n        this.needToMoveLeft = false;\n        this.needToMoveRight = false;\n        this.pinned = pinned;\n        this.eContainer = eContainer;\n        this.centerContainer = !exists(pinned);\n    }\n    MoveColumnFeature.prototype.init = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function () {\n            _this.gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n        });\n    };\n    MoveColumnFeature.prototype.getIconName = function () {\n        return this.pinned ? DragAndDropService.ICON_PINNED : DragAndDropService.ICON_MOVE;\n    };\n    MoveColumnFeature.prototype.onDragEnter = function (draggingEvent) {\n        // we do dummy drag, so make sure column appears in the right location when first placed\n        var columns = draggingEvent.dragItem.columns;\n        var dragCameFromToolPanel = draggingEvent.dragSource.type === exports.DragSourceType.ToolPanel;\n        if (dragCameFromToolPanel) {\n            // the if statement doesn't work if drag leaves grid, then enters again\n            this.setColumnsVisible(columns, true, \"uiColumnDragged\");\n        }\n        else {\n            // restore previous state of visible columns upon re-entering. this means if the user drags\n            // a group out, and then drags the group back in, only columns that were originally visible\n            // will be visible again. otherwise a group with three columns (but only two visible) could\n            // be dragged out, then when it's dragged in again, all three are visible. this stops that.\n            var visibleState_1 = draggingEvent.dragItem.visibleState;\n            var visibleColumns = (columns || []).filter(function (column) { return visibleState_1[column.getId()]; });\n            this.setColumnsVisible(visibleColumns, true, \"uiColumnDragged\");\n        }\n        this.setColumnsPinned(columns, this.pinned, \"uiColumnDragged\");\n        this.onDragging(draggingEvent, true);\n    };\n    MoveColumnFeature.prototype.onDragLeave = function (draggingEvent) {\n        var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns() && !draggingEvent.fromNudge;\n        if (hideColumnOnExit) {\n            var dragItem = draggingEvent.dragSource.getDragItem();\n            var columns = dragItem.columns;\n            this.setColumnsVisible(columns, false, \"uiColumnDragged\");\n        }\n        this.ensureIntervalCleared();\n    };\n    MoveColumnFeature.prototype.setColumnsVisible = function (columns, visible, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (columns) {\n            var allowedCols = columns.filter(function (c) { return !c.getColDef().lockVisible; });\n            this.columnModel.setColumnsVisible(allowedCols, visible, source);\n        }\n    };\n    MoveColumnFeature.prototype.setColumnsPinned = function (columns, pinned, source) {\n        if (source === void 0) { source = \"api\"; }\n        if (columns) {\n            var allowedCols = columns.filter(function (c) { return !c.getColDef().lockPinned; });\n            this.columnModel.setColumnsPinned(allowedCols, pinned, source);\n        }\n    };\n    MoveColumnFeature.prototype.onDragStop = function () {\n        this.ensureIntervalCleared();\n    };\n    MoveColumnFeature.prototype.normaliseX = function (x) {\n        // flip the coordinate if doing RTL\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            var clientWidth = this.eContainer.clientWidth;\n            x = clientWidth - x;\n        }\n        // adjust for scroll only if centre container (the pinned containers don't scroll)\n        if (this.centerContainer) {\n            x += this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft();\n        }\n        return x;\n    };\n    MoveColumnFeature.prototype.checkCenterForScrolling = function (xAdjustedForScroll) {\n        if (this.centerContainer) {\n            // scroll if the mouse has gone outside the grid (or just outside the scrollable part if pinning)\n            // putting in 50 buffer, so even if user gets to edge of grid, a scroll will happen\n            var firstVisiblePixel = this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft();\n            var lastVisiblePixel = firstVisiblePixel + this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();\n            if (this.gridOptionsWrapper.isEnableRtl()) {\n                this.needToMoveRight = xAdjustedForScroll < (firstVisiblePixel + 50);\n                this.needToMoveLeft = xAdjustedForScroll > (lastVisiblePixel - 50);\n            }\n            else {\n                this.needToMoveLeft = xAdjustedForScroll < (firstVisiblePixel + 50);\n                this.needToMoveRight = xAdjustedForScroll > (lastVisiblePixel - 50);\n            }\n            if (this.needToMoveLeft || this.needToMoveRight) {\n                this.ensureIntervalStarted();\n            }\n            else {\n                this.ensureIntervalCleared();\n            }\n        }\n    };\n    MoveColumnFeature.prototype.onDragging = function (draggingEvent, fromEnter) {\n        var _this = this;\n        if (fromEnter === void 0) { fromEnter = false; }\n        this.lastDraggingEvent = draggingEvent;\n        // if moving up or down (ie not left or right) then do nothing\n        if (missing(draggingEvent.hDirection)) {\n            return;\n        }\n        var mouseXNormalised = this.normaliseX(draggingEvent.x);\n        // if the user is dragging into the panel, ie coming from the side panel into the main grid,\n        // we don't want to scroll the grid this time, it would appear like the table is jumping\n        // each time a column is dragged in.\n        if (!fromEnter) {\n            this.checkCenterForScrolling(mouseXNormalised);\n        }\n        var hDirectionNormalised = this.normaliseDirection(draggingEvent.hDirection);\n        var dragSourceType = draggingEvent.dragSource.type;\n        var columnsToMove = draggingEvent.dragSource.getDragItem().columns;\n        columnsToMove = columnsToMove.filter(function (col) {\n            if (col.getColDef().lockPinned) {\n                // if locked return true only if both col and container are same pin type.\n                // double equals (==) here on purpose so that null==undefined is true (for not pinned options)\n                return col.getPinned() == _this.pinned;\n            }\n            // if not pin locked, then always allowed to be in this container\n            return true;\n        });\n        this.attemptMoveColumns(dragSourceType, columnsToMove, hDirectionNormalised, mouseXNormalised, fromEnter);\n    };\n    MoveColumnFeature.prototype.normaliseDirection = function (hDirection) {\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            switch (hDirection) {\n                case exports.HorizontalDirection.Left: return exports.HorizontalDirection.Right;\n                case exports.HorizontalDirection.Right: return exports.HorizontalDirection.Left;\n                default: console.error(\"AG Grid: Unknown direction \" + hDirection);\n            }\n        }\n        else {\n            return hDirection;\n        }\n    };\n    // returns the index of the first column in the list ONLY if the cols are all beside\n    // each other. if the cols are not beside each other, then returns null\n    MoveColumnFeature.prototype.calculateOldIndex = function (movingCols) {\n        var gridCols = this.columnModel.getAllGridColumns();\n        var indexes = sortNumerically(movingCols.map(function (col) { return gridCols.indexOf(col); }));\n        var firstIndex = indexes[0];\n        var lastIndex = last(indexes);\n        var spread = lastIndex - firstIndex;\n        var gapsExist = spread !== indexes.length - 1;\n        return gapsExist ? null : firstIndex;\n    };\n    MoveColumnFeature.prototype.attemptMoveColumns = function (dragSourceType, allMovingColumns, hDirection, mouseX, fromEnter) {\n        var draggingLeft = hDirection === exports.HorizontalDirection.Left;\n        var draggingRight = hDirection === exports.HorizontalDirection.Right;\n        // it is important to sort the moving columns as they are in grid columns, as the list of moving columns\n        // could themselves be part of 'married children' groups, which means we need to maintain the order within\n        // the moving list.\n        var allMovingColumnsOrdered = allMovingColumns.slice();\n        this.columnModel.sortColumnsLikeGridColumns(allMovingColumnsOrdered);\n        var validMoves = this.calculateValidMoves(allMovingColumnsOrdered, draggingRight, mouseX);\n        // if cols are not adjacent, then this returns null. when moving, we constrain the direction of the move\n        // (ie left or right) to the mouse direction. however\n        var oldIndex = this.calculateOldIndex(allMovingColumnsOrdered);\n        if (validMoves.length === 0) {\n            return;\n        }\n        var firstValidMove = validMoves[0];\n        // the two check below stop an error when the user grabs a group my a middle column, then\n        // it is possible the mouse pointer is to the right of a column while been dragged left.\n        // so we need to make sure that the mouse pointer is actually left of the left most column\n        // if moving left, and right of the right most column if moving right\n        // we check 'fromEnter' below so we move the column to the new spot if the mouse is coming from\n        // outside the grid, eg if the column is moving from side panel, mouse is moving left, then we should\n        // place the column to the RHS even if the mouse is moving left and the column is already on\n        // the LHS. otherwise we stick to the rule described above.\n        var constrainDirection = oldIndex !== null && !fromEnter;\n        // don't consider 'fromEnter' when dragging header cells, otherwise group can jump to opposite direction of drag\n        if (dragSourceType == exports.DragSourceType.HeaderCell) {\n            constrainDirection = oldIndex !== null;\n        }\n        if (constrainDirection) {\n            // only allow left drag if this column is moving left\n            if (draggingLeft && firstValidMove >= oldIndex) {\n                return;\n            }\n            // only allow right drag if this column is moving right\n            if (draggingRight && firstValidMove <= oldIndex) {\n                return;\n            }\n        }\n        for (var i = 0; i < validMoves.length; i++) {\n            var move = validMoves[i];\n            if (!this.columnModel.doesMovePassRules(allMovingColumnsOrdered, move)) {\n                continue;\n            }\n            this.columnModel.moveColumns(allMovingColumnsOrdered, move, \"uiColumnDragged\");\n            // important to return here, so once we do the first valid move, we don't try do any more\n            return;\n        }\n    };\n    MoveColumnFeature.prototype.calculateValidMoves = function (movingCols, draggingRight, mouseX) {\n        var isMoveBlocked = this.gridOptionsWrapper.isSuppressMovableColumns() || movingCols.some(function (col) { return col.getColDef().suppressMovable; });\n        if (isMoveBlocked) {\n            return [];\n        }\n        // this is the list of cols on the screen, so it's these we use when comparing the x mouse position\n        var allDisplayedCols = this.columnModel.getDisplayedColumns(this.pinned);\n        // but this list is the list of all cols, when we move a col it's the index within this list that gets used,\n        // so the result we return has to be and index location for this list\n        var allGridCols = this.columnModel.getAllGridColumns();\n        var movingDisplayedCols = allDisplayedCols.filter(function (col) { return includes(movingCols, col); });\n        var otherDisplayedCols = allDisplayedCols.filter(function (col) { return !includes(movingCols, col); });\n        var otherGridCols = allGridCols.filter(function (col) { return !includes(movingCols, col); });\n        // work out how many DISPLAYED columns fit before the 'x' position. this gives us the displayIndex.\n        // for example, if cols are a,b,c,d and we find a,b fit before 'x', then we want to place the moving\n        // col between b and c (so that it is under the mouse position).\n        var displayIndex = 0;\n        var availableWidth = mouseX;\n        // if we are dragging right, then the columns will be to the left of the mouse, so we also want to\n        // include the width of the moving columns\n        if (draggingRight) {\n            var widthOfMovingDisplayedCols_1 = 0;\n            movingDisplayedCols.forEach(function (col) { return widthOfMovingDisplayedCols_1 += col.getActualWidth(); });\n            availableWidth -= widthOfMovingDisplayedCols_1;\n        }\n        if (availableWidth > 0) {\n            // now count how many of the displayed columns will fit to the left\n            for (var i = 0; i < otherDisplayedCols.length; i++) {\n                var col = otherDisplayedCols[i];\n                availableWidth -= col.getActualWidth();\n                if (availableWidth < 0) {\n                    break;\n                }\n                displayIndex++;\n            }\n            // trial and error, if going right, we adjust by one, i didn't manage to quantify why, but it works\n            if (draggingRight) {\n                displayIndex++;\n            }\n        }\n        // the display index is with respect to all the showing columns, however when we move, it's with\n        // respect to all grid columns, so we need to translate from display index to grid index\n        var firstValidMove;\n        if (displayIndex > 0) {\n            var leftColumn = otherDisplayedCols[displayIndex - 1];\n            firstValidMove = otherGridCols.indexOf(leftColumn) + 1;\n        }\n        else {\n            firstValidMove = otherGridCols.indexOf(otherDisplayedCols[0]);\n            if (firstValidMove === -1) {\n                firstValidMove = 0;\n            }\n        }\n        var validMoves = [firstValidMove];\n        var numberComparator = function (a, b) { return a - b; };\n        // add in other valid moves due to hidden columns and married children. for example, a particular\n        // move might break a group that has married children (so move isn't valid), however there could\n        // be hidden columns (not displayed) that we could jump over to make the move valid. because\n        // they are hidden, user doesn't see any different, however it allows moves that would otherwise\n        // not work. for example imagine a group with 9 columns and all columns are hidden except the\n        // middle one (so 4 hidden to left, 4 hidden to right), then when moving 'firstValidMove' will\n        // be relative to the not-shown column, however we need to consider the move jumping over all the\n        // hidden children. if we didn't do this, then if the group just described was at the end (RHS) of the\n        // grid, there would be no way to put a column after it (as the grid would only consider beside the\n        // visible column, which would fail valid move rules).\n        if (draggingRight) {\n            // if dragging right, then we add all the additional moves to the right. so in other words\n            // if the next move is not valid, find the next move to the right that is valid.\n            var pointer = firstValidMove + 1;\n            var lastIndex = allGridCols.length - 1;\n            while (pointer <= lastIndex) {\n                validMoves.push(pointer);\n                pointer++;\n            }\n            // adding columns here means the order is now messed up\n            validMoves.sort(numberComparator);\n        }\n        else {\n            // if dragging left we do the reverse of dragging right, we add in all the valid moves to the\n            // left. however we also have to consider moves to the right for all hidden columns first.\n            // (this logic is hard to reason with, it was worked out with trial and error,\n            // more observation rather than science).\n            // add moves to the right\n            var pointer = firstValidMove;\n            var lastIndex = allGridCols.length - 1;\n            var displacedCol = allGridCols[pointer];\n            while (pointer <= lastIndex && this.isColumnHidden(allDisplayedCols, displacedCol)) {\n                pointer++;\n                validMoves.push(pointer);\n                displacedCol = allGridCols[pointer];\n            }\n            // add moves to the left\n            pointer = firstValidMove - 1;\n            var firstDisplayIndex = 0;\n            while (pointer >= firstDisplayIndex) {\n                validMoves.push(pointer);\n                pointer--;\n            }\n            // adding columns here means the order is now messed up\n            validMoves.sort(numberComparator).reverse();\n        }\n        return validMoves;\n    };\n    // isHidden takes into account visible=false and group=closed, ie it is not displayed\n    MoveColumnFeature.prototype.isColumnHidden = function (displayedColumns, col) {\n        return displayedColumns.indexOf(col) < 0;\n    };\n    MoveColumnFeature.prototype.ensureIntervalStarted = function () {\n        if (!this.movingIntervalId) {\n            this.intervalCount = 0;\n            this.failedMoveAttempts = 0;\n            this.movingIntervalId = window.setInterval(this.moveInterval.bind(this), 100);\n            if (this.needToMoveLeft) {\n                this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_LEFT, true);\n            }\n            else {\n                this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_RIGHT, true);\n            }\n        }\n    };\n    MoveColumnFeature.prototype.ensureIntervalCleared = function () {\n        if (this.movingIntervalId) {\n            window.clearInterval(this.movingIntervalId);\n            this.movingIntervalId = null;\n            this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_MOVE);\n        }\n    };\n    MoveColumnFeature.prototype.moveInterval = function () {\n        // the amounts we move get bigger at each interval, so the speed accelerates, starting a bit slow\n        // and getting faster. this is to give smoother user experience. we max at 100px to limit the speed.\n        var pixelsToMove;\n        this.intervalCount++;\n        pixelsToMove = 10 + (this.intervalCount * 5);\n        if (pixelsToMove > 100) {\n            pixelsToMove = 100;\n        }\n        var pixelsMoved = null;\n        var scrollFeature = this.gridBodyCon.getScrollFeature();\n        if (this.needToMoveLeft) {\n            pixelsMoved = scrollFeature.scrollHorizontally(-pixelsToMove);\n        }\n        else if (this.needToMoveRight) {\n            pixelsMoved = scrollFeature.scrollHorizontally(pixelsToMove);\n        }\n        if (pixelsMoved !== 0) {\n            this.onDragging(this.lastDraggingEvent);\n            this.failedMoveAttempts = 0;\n        }\n        else {\n            // we count the failed move attempts. if we fail to move 7 times, then we pin the column.\n            // this is how we achieve pining by dragging the column to the edge of the grid.\n            this.failedMoveAttempts++;\n            var columns = this.lastDraggingEvent.dragItem.columns;\n            var columnsThatCanPin = columns.filter(function (c) { return !c.getColDef().lockPinned; });\n            if (columnsThatCanPin.length > 0) {\n                this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_PINNED);\n                if (this.failedMoveAttempts > 7) {\n                    var pinType = this.needToMoveLeft ? Constants.PINNED_LEFT : Constants.PINNED_RIGHT;\n                    this.setColumnsPinned(columnsThatCanPin, pinType, \"uiColumnDragged\");\n                    this.dragAndDropService.nudge();\n                }\n            }\n        }\n    };\n    __decorate$12([\n        Autowired('columnModel')\n    ], MoveColumnFeature.prototype, \"columnModel\", void 0);\n    __decorate$12([\n        Autowired('dragAndDropService')\n    ], MoveColumnFeature.prototype, \"dragAndDropService\", void 0);\n    __decorate$12([\n        Autowired('gridOptionsWrapper')\n    ], MoveColumnFeature.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$12([\n        Autowired('ctrlsService')\n    ], MoveColumnFeature.prototype, \"ctrlsService\", void 0);\n    __decorate$12([\n        PostConstruct\n    ], MoveColumnFeature.prototype, \"init\", null);\n    return MoveColumnFeature;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1g = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$13 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar BodyDropTarget = /** @class */ (function (_super) {\n    __extends$1g(BodyDropTarget, _super);\n    function BodyDropTarget(pinned, eContainer) {\n        var _this = _super.call(this) || this;\n        _this.pinned = pinned;\n        _this.eContainer = eContainer;\n        return _this;\n    }\n    BodyDropTarget.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            switch (_this.pinned) {\n                case Constants.PINNED_LEFT:\n                    _this.eSecondaryContainers = [\n                        [p.gridBodyCtrl.getBodyViewportElement(), p.leftRowContainerCtrl.getContainerElement()],\n                        [p.bottomLeftRowContainerCtrl.getContainerElement()],\n                        [p.topLeftRowContainerCtrl.getContainerElement()]\n                    ];\n                    break;\n                case Constants.PINNED_RIGHT:\n                    _this.eSecondaryContainers = [\n                        [p.gridBodyCtrl.getBodyViewportElement(), p.rightRowContainerCtrl.getContainerElement()],\n                        [p.bottomRightRowContainerCtrl.getContainerElement()],\n                        [p.topRightRowContainerCtrl.getContainerElement()]\n                    ];\n                    break;\n                default:\n                    _this.eSecondaryContainers = [\n                        [p.gridBodyCtrl.getBodyViewportElement(), p.centerRowContainerCtrl.getViewportElement()],\n                        [p.bottomCenterRowContainerCtrl.getViewportElement()],\n                        [p.topCenterRowContainerCtrl.getViewportElement()]\n                    ];\n                    break;\n            }\n        });\n    };\n    BodyDropTarget.prototype.isInterestedIn = function (type) {\n        return type === exports.DragSourceType.HeaderCell ||\n            (type === exports.DragSourceType.ToolPanel && this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel());\n    };\n    BodyDropTarget.prototype.getSecondaryContainers = function () {\n        return this.eSecondaryContainers;\n    };\n    BodyDropTarget.prototype.getContainer = function () {\n        return this.eContainer;\n    };\n    BodyDropTarget.prototype.init = function () {\n        this.moveColumnFeature = this.createManagedBean(new MoveColumnFeature(this.pinned, this.eContainer));\n        this.bodyDropPivotTarget = this.createManagedBean(new BodyDropPivotTarget(this.pinned));\n        this.dragAndDropService.addDropTarget(this);\n    };\n    BodyDropTarget.prototype.getIconName = function () {\n        return this.currentDropListener.getIconName();\n    };\n    // we want to use the bodyPivotTarget if the user is dragging columns in from the toolPanel\n    // and we are in pivot mode, as it has to logic to set pivot/value/group on the columns when\n    // dropped into the grid's body.\n    BodyDropTarget.prototype.isDropColumnInPivotMode = function (draggingEvent) {\n        // in pivot mode, then if moving a column (ie didn't come from toolpanel) then it's\n        // a standard column move, however if it came from the toolpanel, then we are introducing\n        // dimensions or values to the grid\n        return this.columnModel.isPivotMode() && draggingEvent.dragSource.type === exports.DragSourceType.ToolPanel;\n    };\n    BodyDropTarget.prototype.onDragEnter = function (draggingEvent) {\n        // we pick the drop listener depending on whether we are in pivot mode are not. if we are\n        // in pivot mode, then dropping cols changes the row group, pivot, value stats. otherwise\n        // we change visibility state and position.\n        this.currentDropListener = this.isDropColumnInPivotMode(draggingEvent) ? this.bodyDropPivotTarget : this.moveColumnFeature;\n        this.currentDropListener.onDragEnter(draggingEvent);\n    };\n    BodyDropTarget.prototype.onDragLeave = function (params) {\n        this.currentDropListener.onDragLeave(params);\n    };\n    BodyDropTarget.prototype.onDragging = function (params) {\n        this.currentDropListener.onDragging(params);\n    };\n    BodyDropTarget.prototype.onDragStop = function (params) {\n        this.currentDropListener.onDragStop(params);\n    };\n    __decorate$13([\n        Autowired('dragAndDropService')\n    ], BodyDropTarget.prototype, \"dragAndDropService\", void 0);\n    __decorate$13([\n        Autowired('columnModel')\n    ], BodyDropTarget.prototype, \"columnModel\", void 0);\n    __decorate$13([\n        Autowired('ctrlsService')\n    ], BodyDropTarget.prototype, \"ctrlsService\", void 0);\n    __decorate$13([\n        PostConstruct\n    ], BodyDropTarget.prototype, \"postConstruct\", null);\n    __decorate$13([\n        PostConstruct\n    ], BodyDropTarget.prototype, \"init\", null);\n    return BodyDropTarget;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$b = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$8 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$b(arguments[i]));\n    return ar;\n};\nvar CssClassApplier = /** @class */ (function () {\n    function CssClassApplier() {\n    }\n    CssClassApplier.getHeaderClassesFromColDef = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n        if (missing(abstractColDef)) {\n            return [];\n        }\n        return this.getColumnClassesFromCollDef(abstractColDef.headerClass, abstractColDef, gridOptionsWrapper, column, columnGroup);\n    };\n    CssClassApplier.getToolPanelClassesFromColDef = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n        if (missing(abstractColDef)) {\n            return [];\n        }\n        return this.getColumnClassesFromCollDef(abstractColDef.toolPanelClass, abstractColDef, gridOptionsWrapper, column, columnGroup);\n    };\n    CssClassApplier.getClassParams = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n        return {\n            // bad naming, as colDef here can be a group or a column,\n            // however most people won't appreciate the difference,\n            // so keeping it as colDef to avoid confusion.\n            colDef: abstractColDef,\n            column: column,\n            columnGroup: columnGroup,\n            api: gridOptionsWrapper.getApi(),\n            columnApi: gridOptionsWrapper.getColumnApi(),\n            context: gridOptionsWrapper.getContext()\n        };\n    };\n    CssClassApplier.getColumnClassesFromCollDef = function (classesOrFunc, abstractColDef, gridOptionsWrapper, column, columnGroup) {\n        if (missing(classesOrFunc)) {\n            return [];\n        }\n        var classToUse;\n        if (typeof classesOrFunc === 'function') {\n            var params = this.getClassParams(abstractColDef, gridOptionsWrapper, column, columnGroup);\n            classToUse = classesOrFunc(params);\n        }\n        else {\n            classToUse = classesOrFunc;\n        }\n        if (typeof classToUse === 'string') {\n            return [classToUse];\n        }\n        if (Array.isArray(classToUse)) {\n            return __spread$8(classToUse);\n        }\n        return [];\n    };\n    return CssClassApplier;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1h = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$14 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderCellComp = /** @class */ (function (_super) {\n    __extends$1h(HeaderCellComp, _super);\n    function HeaderCellComp(ctrl) {\n        var _this = _super.call(this, HeaderCellComp.TEMPLATE, ctrl) || this;\n        _this.headerCompVersion = 0;\n        _this.column = ctrl.getColumnGroupChild();\n        _this.pinned = ctrl.getPinned();\n        return _this;\n    }\n    HeaderCellComp.prototype.postConstruct = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        var setAttribute = function (name, value, element) {\n            var actualElement = element ? element : eGui;\n            if (value != null && value != '') {\n                actualElement.setAttribute(name, value);\n            }\n            else {\n                actualElement.removeAttribute(name);\n            }\n        };\n        var compProxy = {\n            setWidth: function (width) { return eGui.style.width = width; },\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            setColId: function (id) { return setAttribute('col-id', id); },\n            setTitle: function (title) { return setAttribute('title', title); },\n            setAriaDescription: function (label) { return setAriaDescription(eGui, label); },\n            setAriaSort: function (sort) { return sort ? setAriaSort(eGui, sort) : removeAriaSort(eGui); },\n            setUserCompDetails: function (compDetails) { return _this.setUserCompDetails(compDetails); },\n            getUserCompInstance: function () { return _this.headerComp; }\n        };\n        this.ctrl.setComp(compProxy, this.getGui(), this.eResize);\n        var selectAllGui = this.ctrl.getSelectAllGui();\n        this.eResize.insertAdjacentElement('afterend', selectAllGui);\n    };\n    HeaderCellComp.prototype.destroyHeaderComp = function () {\n        if (this.headerComp) {\n            this.getGui().removeChild(this.headerCompGui);\n            this.headerComp = this.destroyBean(this.headerComp);\n            this.headerCompGui = undefined;\n        }\n    };\n    HeaderCellComp.prototype.setUserCompDetails = function (compDetails) {\n        var _this = this;\n        this.headerCompVersion++;\n        var versionCopy = this.headerCompVersion;\n        compDetails.newAgStackInstance().then(function (comp) { return _this.afterCompCreated(versionCopy, comp); });\n    };\n    HeaderCellComp.prototype.afterCompCreated = function (version, headerComp) {\n        if (version != this.headerCompVersion || !this.isAlive()) {\n            this.destroyBean(headerComp);\n            return;\n        }\n        this.destroyHeaderComp();\n        this.headerComp = headerComp;\n        this.headerCompGui = headerComp.getGui();\n        this.getGui().appendChild(this.headerCompGui);\n        this.ctrl.setDragSource(this.headerCompGui);\n    };\n    HeaderCellComp.TEMPLATE = \"<div class=\\\"ag-header-cell\\\" role=\\\"columnheader\\\" tabindex=\\\"-1\\\">\\n            <div ref=\\\"eResize\\\" class=\\\"ag-header-cell-resize\\\" role=\\\"presentation\\\"></div>\\n        </div>\";\n    __decorate$14([\n        RefSelector('eResize')\n    ], HeaderCellComp.prototype, \"eResize\", void 0);\n    __decorate$14([\n        PostConstruct\n    ], HeaderCellComp.prototype, \"postConstruct\", null);\n    __decorate$14([\n        PreDestroy\n    ], HeaderCellComp.prototype, \"destroyHeaderComp\", null);\n    return HeaderCellComp;\n}(AbstractHeaderCellComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1i = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$15 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderGroupCellComp = /** @class */ (function (_super) {\n    __extends$1i(HeaderGroupCellComp, _super);\n    function HeaderGroupCellComp(ctrl) {\n        return _super.call(this, HeaderGroupCellComp.TEMPLATE, ctrl) || this;\n    }\n    HeaderGroupCellComp.prototype.postConstruct = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        var setAttribute = function (key, value) {\n            return value != undefined ? eGui.setAttribute(key, value) : eGui.removeAttribute(key);\n        };\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            addOrRemoveResizableCssClass: function (cssClassName, on) { return _this.eResize.classList.toggle(cssClassName, on); },\n            setWidth: function (width) { return eGui.style.width = width; },\n            setColId: function (id) { return eGui.setAttribute(\"col-id\", id); },\n            setAriaExpanded: function (expanded) { return setAttribute('aria-expanded', expanded); },\n            setTitle: function (title) { return setAttribute(\"title\", title); },\n            setUserCompDetails: function (details) { return _this.setUserCompDetails(details); }\n        };\n        this.ctrl.setComp(compProxy, eGui, this.eResize);\n    };\n    HeaderGroupCellComp.prototype.setUserCompDetails = function (details) {\n        var _this = this;\n        details.newAgStackInstance().then(function (comp) { return _this.afterHeaderCompCreated(comp); });\n    };\n    HeaderGroupCellComp.prototype.afterHeaderCompCreated = function (headerGroupComp) {\n        var _this = this;\n        var destroyFunc = function () { return _this.destroyBean(headerGroupComp); };\n        if (!this.isAlive()) {\n            destroyFunc();\n            return;\n        }\n        this.getGui().appendChild(headerGroupComp.getGui());\n        this.addDestroyFunc(destroyFunc);\n        this.ctrl.setDragSource(headerGroupComp.getGui());\n    };\n    HeaderGroupCellComp.TEMPLATE = \"<div class=\\\"ag-header-group-cell\\\" role=\\\"columnheader\\\" tabindex=\\\"-1\\\">\\n            <div ref=\\\"eResize\\\" class=\\\"ag-header-cell-resize\\\" role=\\\"presentation\\\"></div>\\n        </div>\";\n    __decorate$15([\n        Autowired('userComponentFactory')\n    ], HeaderGroupCellComp.prototype, \"userComponentFactory\", void 0);\n    __decorate$15([\n        RefSelector('eResize')\n    ], HeaderGroupCellComp.prototype, \"eResize\", void 0);\n    __decorate$15([\n        PostConstruct\n    ], HeaderGroupCellComp.prototype, \"postConstruct\", null);\n    return HeaderGroupCellComp;\n}(AbstractHeaderCellComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1j = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$16 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n(function (HeaderRowType) {\n    HeaderRowType[\"COLUMN_GROUP\"] = \"group\";\n    HeaderRowType[\"COLUMN\"] = \"column\";\n    HeaderRowType[\"FLOATING_FILTER\"] = \"filter\";\n})(exports.HeaderRowType || (exports.HeaderRowType = {}));\nvar HeaderRowComp = /** @class */ (function (_super) {\n    __extends$1j(HeaderRowComp, _super);\n    function HeaderRowComp(ctrl) {\n        var _this = _super.call(this) || this;\n        _this.headerComps = {};\n        var extraClass = ctrl.getType() == exports.HeaderRowType.COLUMN_GROUP ? \"ag-header-row-column-group\" :\n            ctrl.getType() == exports.HeaderRowType.FLOATING_FILTER ? \"ag-header-row-column-filter\" : \"ag-header-row-column\";\n        _this.setTemplate(/* html */ \"<div class=\\\"ag-header-row \" + extraClass + \"\\\" role=\\\"row\\\"></div>\");\n        _this.ctrl = ctrl;\n        return _this;\n    }\n    //noinspection JSUnusedLocalSymbols\n    HeaderRowComp.prototype.init = function () {\n        var _this = this;\n        var compProxy = {\n            setTransform: function (transform) { return _this.getGui().style.transform = transform; },\n            setHeight: function (height) { return _this.getGui().style.height = height; },\n            setTop: function (top) { return _this.getGui().style.top = top; },\n            setHeaderCtrls: function (ctrls) { return _this.setHeaderCtrls(ctrls); },\n            setWidth: function (width) { return _this.getGui().style.width = width; },\n            setAriaRowIndex: function (rowIndex) { return setAriaRowIndex(_this.getGui(), rowIndex); }\n        };\n        this.ctrl.setComp(compProxy);\n    };\n    HeaderRowComp.prototype.destroyHeaderCtrls = function () {\n        this.setHeaderCtrls([]);\n    };\n    HeaderRowComp.prototype.setHeaderCtrls = function (ctrls) {\n        var _this = this;\n        if (!this.isAlive()) {\n            return;\n        }\n        var oldComps = this.headerComps;\n        this.headerComps = {};\n        ctrls.forEach(function (ctrl) {\n            var id = ctrl.getInstanceId();\n            var comp = oldComps[id];\n            delete oldComps[id];\n            if (comp == null) {\n                comp = _this.createHeaderComp(ctrl);\n                _this.getGui().appendChild(comp.getGui());\n            }\n            _this.headerComps[id] = comp;\n        });\n        iterateObject(oldComps, function (id, comp) {\n            _this.getGui().removeChild(comp.getGui());\n            _this.destroyBean(comp);\n        });\n        var ensureDomOrder = this.gridOptionsWrapper.isEnsureDomOrder();\n        if (ensureDomOrder) {\n            var comps = getAllValuesInObject(this.headerComps);\n            // ordering the columns by left position orders them in the order they appear on the screen\n            comps.sort(function (a, b) {\n                var leftA = a.getCtrl().getColumnGroupChild().getLeft();\n                var leftB = b.getCtrl().getColumnGroupChild().getLeft();\n                return leftA - leftB;\n            });\n            var elementsInOrder = comps.map(function (c) { return c.getGui(); });\n            setDomChildOrder(this.getGui(), elementsInOrder);\n        }\n    };\n    HeaderRowComp.prototype.createHeaderComp = function (headerCtrl) {\n        var result;\n        switch (this.ctrl.getType()) {\n            case exports.HeaderRowType.COLUMN_GROUP:\n                result = new HeaderGroupCellComp(headerCtrl);\n                break;\n            case exports.HeaderRowType.FLOATING_FILTER:\n                result = new HeaderFilterCellComp(headerCtrl);\n                break;\n            default:\n                result = new HeaderCellComp(headerCtrl);\n                break;\n        }\n        this.createBean(result);\n        result.setParentComponent(this);\n        return result;\n    };\n    __decorate$16([\n        PostConstruct\n    ], HeaderRowComp.prototype, \"init\", null);\n    __decorate$16([\n        PreDestroy\n    ], HeaderRowComp.prototype, \"destroyHeaderCtrls\", null);\n    return HeaderRowComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1k = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$17 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar instanceIdSequence$3 = 0;\nvar AbstractHeaderCellCtrl = /** @class */ (function (_super) {\n    __extends$1k(AbstractHeaderCellCtrl, _super);\n    function AbstractHeaderCellCtrl(columnGroupChild, parentRowCtrl) {\n        var _this = _super.call(this) || this;\n        _this.lastFocusEvent = null;\n        _this.columnGroupChild = columnGroupChild;\n        _this.parentRowCtrl = parentRowCtrl;\n        // unique id to this instance, including the column ID to help with debugging in React as it's used in 'key'\n        _this.instanceId = columnGroupChild.getUniqueId() + '-' + instanceIdSequence$3++;\n        return _this;\n    }\n    AbstractHeaderCellCtrl.prototype.shouldStopEventPropagation = function (e) {\n        var _a = this.focusService.getFocusedHeader(), headerRowIndex = _a.headerRowIndex, column = _a.column;\n        return isUserSuppressingHeaderKeyboardEvent(this.gridOptionsWrapper, e, headerRowIndex, column);\n    };\n    AbstractHeaderCellCtrl.prototype.setGui = function (eGui) {\n        this.eGui = eGui;\n        this.addDomData();\n    };\n    AbstractHeaderCellCtrl.prototype.addDomData = function () {\n        var _this = this;\n        var key = AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL;\n        this.gridOptionsWrapper.setDomData(this.eGui, key, this);\n        this.addDestroyFunc(function () { return _this.gridOptionsWrapper.setDomData(_this.eGui, key, null); });\n    };\n    AbstractHeaderCellCtrl.prototype.getGui = function () {\n        return this.eGui;\n    };\n    AbstractHeaderCellCtrl.prototype.focus = function (event) {\n        if (!this.eGui) {\n            return false;\n        }\n        this.lastFocusEvent = event || null;\n        this.eGui.focus();\n        return true;\n    };\n    AbstractHeaderCellCtrl.prototype.getRowIndex = function () {\n        return this.parentRowCtrl.getRowIndex();\n    };\n    AbstractHeaderCellCtrl.prototype.getParentRowCtrl = function () {\n        return this.parentRowCtrl;\n    };\n    AbstractHeaderCellCtrl.prototype.getPinned = function () {\n        return this.parentRowCtrl.getPinned();\n    };\n    AbstractHeaderCellCtrl.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    AbstractHeaderCellCtrl.prototype.getColumnGroupChild = function () {\n        return this.columnGroupChild;\n    };\n    AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL = 'headerCtrl';\n    __decorate$17([\n        Autowired('focusService')\n    ], AbstractHeaderCellCtrl.prototype, \"focusService\", void 0);\n    return AbstractHeaderCellCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (ClientSideRowModelSteps) {\n    ClientSideRowModelSteps[\"EVERYTHING\"] = \"group\";\n    ClientSideRowModelSteps[\"FILTER\"] = \"filter\";\n    ClientSideRowModelSteps[\"SORT\"] = \"sort\";\n    ClientSideRowModelSteps[\"MAP\"] = \"map\";\n    ClientSideRowModelSteps[\"AGGREGATE\"] = \"aggregate\";\n    ClientSideRowModelSteps[\"FILTER_AGGREGATES\"] = \"filter_aggregates\";\n    ClientSideRowModelSteps[\"PIVOT\"] = \"pivot\";\n    ClientSideRowModelSteps[\"NOTHING\"] = \"nothing\";\n})(exports.ClientSideRowModelSteps || (exports.ClientSideRowModelSteps = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$18 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nfunction unwrapUserComp(comp) {\n    var compAsAny = comp;\n    var isProxy = compAsAny != null && compAsAny.getFrameworkComponentInstance != null;\n    return isProxy ? compAsAny.getFrameworkComponentInstance() : comp;\n}\nvar GridApi = /** @class */ (function () {\n    function GridApi() {\n        this.detailGridInfoMap = {};\n        this.destroyCalled = false;\n    }\n    GridApi.prototype.registerOverlayWrapperComp = function (overlayWrapperComp) {\n        this.overlayWrapperComp = overlayWrapperComp;\n    };\n    GridApi.prototype.registerSideBarComp = function (sideBarComp) {\n        this.sideBarComp = sideBarComp;\n    };\n    GridApi.prototype.init = function () {\n        var _this = this;\n        switch (this.rowModel.getType()) {\n            case Constants.ROW_MODEL_TYPE_CLIENT_SIDE:\n                this.clientSideRowModel = this.rowModel;\n                break;\n            case Constants.ROW_MODEL_TYPE_INFINITE:\n                this.infiniteRowModel = this.rowModel;\n                break;\n            case Constants.ROW_MODEL_TYPE_SERVER_SIDE:\n                this.serverSideRowModel = this.rowModel;\n                break;\n        }\n        this.ctrlsService.whenReady(function () {\n            _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n        });\n    };\n    /** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */\n    GridApi.prototype.__getAlignedGridService = function () {\n        return this.alignedGridsService;\n    };\n    /** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */\n    GridApi.prototype.__getContext = function () {\n        return this.context;\n    };\n    /** Register a detail grid with the master grid when it is created. */\n    GridApi.prototype.addDetailGridInfo = function (id, gridInfo) {\n        this.detailGridInfoMap[id] = gridInfo;\n    };\n    /** Unregister a detail grid from the master grid when it is destroyed. */\n    GridApi.prototype.removeDetailGridInfo = function (id) {\n        this.detailGridInfoMap[id] = undefined;\n    };\n    /** Returns the `DetailGridInfo` corresponding to the supplied `detailGridId`. */\n    GridApi.prototype.getDetailGridInfo = function (id) {\n        return this.detailGridInfoMap[id];\n    };\n    /** Iterates through each `DetailGridInfo` in the grid and calls the supplied callback on each. */\n    GridApi.prototype.forEachDetailGridInfo = function (callback) {\n        var index = 0;\n        iterateObject(this.detailGridInfoMap, function (id, gridInfo) {\n            // check for undefined, as old references will still be lying around\n            if (exists(gridInfo)) {\n                callback(gridInfo, index);\n                index++;\n            }\n        });\n    };\n    /** Similar to `exportDataAsCsv`, except returns the result as a string rather than download it. */\n    GridApi.prototype.getDataAsCsv = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.CsvExportModule, 'api.getDataAsCsv')) {\n            return this.csvCreator.getDataAsCsv(params);\n        }\n    };\n    /** Downloads a CSV export of the grid's data. */\n    GridApi.prototype.exportDataAsCsv = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.CsvExportModule, 'api.exportDataAsCSv')) {\n            this.csvCreator.exportDataAsCsv(params);\n        }\n    };\n    GridApi.prototype.getExcelExportMode = function (params) {\n        var baseParams = this.gridOptionsWrapper.getDefaultExportParams('excel');\n        var mergedParams = Object.assign({ exportMode: 'xlsx' }, baseParams, params);\n        return mergedParams.exportMode;\n    };\n    /** Similar to `exportDataAsExcel`, except instead of downloading a file, it will return a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) to be processed by the user. */\n    GridApi.prototype.getDataAsExcel = function (params) {\n        if (!ModuleRegistry.assertRegistered(exports.ModuleNames.ExcelExportModule, 'api.getDataAsExcel')) {\n            return;\n        }\n        var exportMode = this.getExcelExportMode(params);\n        if (this.excelCreator.getFactoryMode(exportMode) === exports.ExcelFactoryMode.MULTI_SHEET) {\n            console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');\n            return;\n        }\n        return this.excelCreator.getDataAsExcel(params);\n    };\n    /** Downloads an Excel export of the grid's data. */\n    GridApi.prototype.exportDataAsExcel = function (params) {\n        if (!ModuleRegistry.assertRegistered(exports.ModuleNames.ExcelExportModule, 'api.exportDataAsExcel')) {\n            return;\n        }\n        var exportMode = this.getExcelExportMode(params);\n        if (this.excelCreator.getFactoryMode(exportMode) === exports.ExcelFactoryMode.MULTI_SHEET) {\n            console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');\n            return;\n        }\n        this.excelCreator.exportDataAsExcel(params);\n    };\n    /** This is method to be used to get the grid's data as a sheet, that will later be exported either by `getMultipleSheetsAsExcel()` or `exportMultipleSheetsAsExcel()`. */\n    GridApi.prototype.getSheetDataForExcel = function (params) {\n        if (!ModuleRegistry.assertRegistered(exports.ModuleNames.ExcelExportModule, 'api.getSheetDataForExcel')) {\n            return;\n        }\n        var exportMode = this.getExcelExportMode(params);\n        this.excelCreator.setFactoryMode(exports.ExcelFactoryMode.MULTI_SHEET, exportMode);\n        return this.excelCreator.getSheetDataForExcel(params);\n    };\n    /** Similar to `exportMultipleSheetsAsExcel`, except instead of downloading a file, it will return a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) to be processed by the user. */\n    GridApi.prototype.getMultipleSheetsAsExcel = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.ExcelExportModule, 'api.getMultipleSheetsAsExcel')) {\n            return this.excelCreator.getMultipleSheetsAsExcel(params);\n        }\n    };\n    /** Downloads an Excel export of multiple sheets in one file. */\n    GridApi.prototype.exportMultipleSheetsAsExcel = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.ExcelExportModule, 'api.exportMultipleSheetsAsExcel')) {\n            return this.excelCreator.exportMultipleSheetsAsExcel(params);\n        }\n    };\n    /** @deprecated */\n    GridApi.prototype.setEnterpriseDatasource = function (datasource) {\n        console.warn(\"AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()\");\n        this.setServerSideDatasource(datasource);\n    };\n    /**\n     * Sets an ARIA property in the grid panel (element with `role=\\\"grid\\\"`), and removes an ARIA property when the value is null.\n     *\n     * Example: `api.setGridAriaProperty('label', 'my grid')` will set `aria-label=\\\"my grid\\\"`.\n     *\n     * `api.setGridAriaProperty('label', null)` will remove the `aria-label` attribute from the grid element.\n     */\n    GridApi.prototype.setGridAriaProperty = function (property, value) {\n        if (!property) {\n            return;\n        }\n        var eGrid = this.ctrlsService.getGridBodyCtrl().getGui();\n        var ariaProperty = \"aria-\" + property;\n        if (value === null) {\n            eGrid.removeAttribute(ariaProperty);\n        }\n        else {\n            eGrid.setAttribute(ariaProperty, value);\n        }\n    };\n    /** Set new datasource for Server-Side Row Model. */\n    GridApi.prototype.setServerSideDatasource = function (datasource) {\n        if (this.serverSideRowModel) {\n            // should really have an IEnterpriseRowModel interface, so we are not casting to any\n            this.serverSideRowModel.setDatasource(datasource);\n        }\n        else {\n            console.warn(\"AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + \"'\");\n        }\n    };\n    /** Set new datasource for Infinite Row Model. */\n    GridApi.prototype.setDatasource = function (datasource) {\n        if (this.gridOptionsWrapper.isRowModelInfinite()) {\n            this.rowModel.setDatasource(datasource);\n        }\n        else {\n            console.warn(\"AG Grid: you can only use a datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_INFINITE + \"'\");\n        }\n    };\n    /** Set new datasource for Viewport Row Model. */\n    GridApi.prototype.setViewportDatasource = function (viewportDatasource) {\n        if (this.gridOptionsWrapper.isRowModelViewport()) {\n            // this is bad coding, because it's using an interface that's exposed in the enterprise.\n            // really we should create an interface in the core for viewportDatasource and let\n            // the enterprise implement it, rather than casting to 'any' here\n            this.rowModel.setViewportDatasource(viewportDatasource);\n        }\n        else {\n            console.warn(\"AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_VIEWPORT + \"'\");\n        }\n    };\n    /** Set the row data. */\n    GridApi.prototype.setRowData = function (rowData) {\n        // immutable service is part of the CSRM module, if missing, no CSRM\n        var missingImmutableService = this.immutableService == null;\n        if (missingImmutableService) {\n            console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');\n            return;\n        }\n        // if no keys provided provided for rows, then we can tread the operation as Immutable\n        if (this.immutableService.isActive()) {\n            this.immutableService.setRowData(rowData);\n        }\n        else {\n            this.selectionService.reset();\n            this.clientSideRowModel.setRowData(rowData);\n        }\n    };\n    /** @deprecated */\n    GridApi.prototype.setFloatingTopRowData = function (rows) {\n        console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');\n        this.setPinnedTopRowData(rows);\n    };\n    /** @deprecated */\n    GridApi.prototype.setFloatingBottomRowData = function (rows) {\n        console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');\n        this.setPinnedBottomRowData(rows);\n    };\n    /** @deprecated */\n    GridApi.prototype.getFloatingTopRowCount = function () {\n        console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');\n        return this.getPinnedTopRowCount();\n    };\n    /** @deprecated */\n    GridApi.prototype.getFloatingBottomRowCount = function () {\n        console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');\n        return this.getPinnedBottomRowCount();\n    };\n    /** @deprecated */\n    GridApi.prototype.getFloatingTopRow = function (index) {\n        console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');\n        return this.getPinnedTopRow(index);\n    };\n    /** @deprecated */\n    GridApi.prototype.getFloatingBottomRow = function (index) {\n        console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');\n        return this.getPinnedBottomRow(index);\n    };\n    /** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */\n    GridApi.prototype.setPinnedTopRowData = function (rows) {\n        this.pinnedRowModel.setPinnedTopRowData(rows);\n    };\n    /** Set the bottom pinned rows. Call with no rows / undefined to clear bottom pinned rows. */\n    GridApi.prototype.setPinnedBottomRowData = function (rows) {\n        this.pinnedRowModel.setPinnedBottomRowData(rows);\n    };\n    /** Gets the number of top pinned rows. */\n    GridApi.prototype.getPinnedTopRowCount = function () {\n        return this.pinnedRowModel.getPinnedTopRowCount();\n    };\n    /** Gets the number of bottom pinned rows. */\n    GridApi.prototype.getPinnedBottomRowCount = function () {\n        return this.pinnedRowModel.getPinnedBottomRowCount();\n    };\n    /** Gets the top pinned row with the specified index. */\n    GridApi.prototype.getPinnedTopRow = function (index) {\n        return this.pinnedRowModel.getPinnedTopRow(index);\n    };\n    /** Gets the top pinned row with the specified index. */\n    GridApi.prototype.getPinnedBottomRow = function (index) {\n        return this.pinnedRowModel.getPinnedBottomRow(index);\n    };\n    /**\n     * Call to set new column definitions. The grid will redraw all the column headers, and then redraw all of the rows.\n     */\n    GridApi.prototype.setColumnDefs = function (colDefs, source) {\n        if (source === void 0) { source = \"api\"; }\n        this.columnModel.setColumnDefs(colDefs, source);\n    };\n    /** Call to set new auto group column definition. The grid will recreate any auto-group columns if present. */\n    GridApi.prototype.setAutoGroupColumnDef = function (colDef, source) {\n        this.gridOptionsWrapper.setProperty('autoGroupColumnDef', colDef, true);\n    };\n    /** Call to set new Default Column Definition. */\n    GridApi.prototype.setDefaultColDef = function (colDef, source) {\n        this.gridOptionsWrapper.setProperty('defaultColDef', colDef, true);\n    };\n    GridApi.prototype.expireValueCache = function () {\n        this.valueCache.expire();\n    };\n    /**\n     * Returns an object with two properties:\n     *  - `top`: The top pixel position of the current scroll in the grid\n     *  - `bottom`: The bottom pixel position of the current scroll in the grid\n     */\n    GridApi.prototype.getVerticalPixelRange = function () {\n        return this.gridBodyCtrl.getScrollFeature().getVScrollPosition();\n    };\n    /**\n     * Returns an object with two properties:\n     * - `left`: The left pixel position of the current scroll in the grid\n     * - `right`: The right pixel position of the current scroll in the grid\n     */\n    GridApi.prototype.getHorizontalPixelRange = function () {\n        return this.gridBodyCtrl.getScrollFeature().getHScrollPosition();\n    };\n    /** If `true`, the horizontal scrollbar will always be present, even if not required. Otherwise, it will only be displayed when necessary. */\n    GridApi.prototype.setAlwaysShowHorizontalScroll = function (show) {\n        this.gridOptionsWrapper.setProperty('alwaysShowHorizontalScroll', show);\n    };\n    /** If `true`, the vertical scrollbar will always be present, even if not required. Otherwise it will only be displayed when necessary. */\n    GridApi.prototype.setAlwaysShowVerticalScroll = function (show) {\n        this.gridOptionsWrapper.setProperty('alwaysShowVerticalScroll', show);\n    };\n    /** Force refresh all tool panels by calling their `refresh` method. */\n    GridApi.prototype.refreshToolPanel = function () {\n        if (!this.sideBarComp) {\n            return;\n        }\n        this.sideBarComp.refresh();\n    };\n    /** Performs change detection on all cells, refreshing cells where required. */\n    GridApi.prototype.refreshCells = function (params) {\n        if (params === void 0) { params = {}; }\n        if (Array.isArray(params)) {\n            // the old version of refreshCells() took an array of rowNodes for the first argument\n            console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');\n            return;\n        }\n        this.rowRenderer.refreshCells(params);\n    };\n    /** Flash rows, columns or individual cells. */\n    GridApi.prototype.flashCells = function (params) {\n        if (params === void 0) { params = {}; }\n        this.rowRenderer.flashCells(params);\n    };\n    /** Remove row(s) from the DOM and recreate them again from scratch. */\n    GridApi.prototype.redrawRows = function (params) {\n        if (params === void 0) { params = {}; }\n        var rowNodes = params ? params.rowNodes : undefined;\n        this.rowRenderer.redrawRows(rowNodes);\n    };\n    GridApi.prototype.setFunctionsReadOnly = function (readOnly) {\n        this.gridOptionsWrapper.setProperty('functionsReadOnly', readOnly);\n    };\n    /** Redraws the header. Useful if a column name changes, or something else that changes how the column header is displayed. */\n    GridApi.prototype.refreshHeader = function () {\n        this.ctrlsService.getHeaderRowContainerCtrls().forEach(function (c) { return c.refresh(); });\n    };\n    /** Returns `true` if any filter is set. This includes quick filter, advanced filter or external filter. */\n    GridApi.prototype.isAnyFilterPresent = function () {\n        return this.filterManager.isAnyFilterPresent();\n    };\n    /** Returns `true` if any column filter is set, otherwise `false`. */\n    GridApi.prototype.isColumnFilterPresent = function () {\n        return this.filterManager.isColumnFilterPresent() || this.filterManager.isAggregateFilterPresent();\n    };\n    /** Returns `true` if the quick filter is set, otherwise `false`. */\n    GridApi.prototype.isQuickFilterPresent = function () {\n        return this.filterManager.isQuickFilterPresent();\n    };\n    /**\n     * Returns the row model inside the table.\n     * From here you can see the original rows, rows after filter has been applied,\n     * rows after aggregation has been applied, and the final set of 'to be displayed' rows.\n     */\n    GridApi.prototype.getModel = function () {\n        return this.rowModel;\n    };\n    /** Expand or collapse a specific row node. */\n    GridApi.prototype.setRowNodeExpanded = function (rowNode, expanded) {\n        if (rowNode) {\n            rowNode.setExpanded(expanded);\n        }\n    };\n    /**\n     *  If after getting the model, you expand or collapse a group, call this method to inform the grid.\n     *  It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).\n     */\n    GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');\n        }\n        if (exists(deprecated_refreshFromIndex)) {\n            console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');\n        }\n        // we don't really want the user calling this if only one rowNode was expanded, instead they should be\n        // calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole\n        // grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,\n        // and thus the expand icon in the group cell won't get 'opened' or 'closed'.\n        this.clientSideRowModel.refreshModel({ step: exports.ClientSideRowModelSteps.MAP });\n    };\n    GridApi.prototype.refreshInMemoryRowModel = function (step) {\n        console.warn(\"ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()\");\n        this.refreshClientSideRowModel(step);\n    };\n    /** Gets the Client-Side Row Model to refresh, executing the grouping, filtering and sorting again. */\n    GridApi.prototype.refreshClientSideRowModel = function (step) {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('cannot call refreshClientSideRowModel unless using normal row model');\n        }\n        var paramsStep = exports.ClientSideRowModelSteps.EVERYTHING;\n        var stepsMapped = {\n            group: exports.ClientSideRowModelSteps.EVERYTHING,\n            filter: exports.ClientSideRowModelSteps.FILTER,\n            map: exports.ClientSideRowModelSteps.MAP,\n            aggregate: exports.ClientSideRowModelSteps.AGGREGATE,\n            sort: exports.ClientSideRowModelSteps.SORT,\n            pivot: exports.ClientSideRowModelSteps.PIVOT\n        };\n        if (exists(step)) {\n            paramsStep = stepsMapped[step];\n        }\n        if (missing(paramsStep)) {\n            console.error(\"AG Grid: invalid step \" + step + \", available steps are \" + Object.keys(stepsMapped).join(', '));\n            return;\n        }\n        var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n        var modelParams = {\n            step: paramsStep,\n            keepRenderedRows: true,\n            keepEditingRows: true,\n            animate: animate\n        };\n        this.clientSideRowModel.refreshModel(modelParams);\n    };\n    /** Returns `true` when there are no more animation frames left to process. */\n    GridApi.prototype.isAnimationFrameQueueEmpty = function () {\n        return this.animationFrameService.isQueueEmpty();\n    };\n    GridApi.prototype.flushAllAnimationFrames = function () {\n        this.animationFrameService.flushAllFrames();\n    };\n    /**\n     * Returns the row node with the given ID.\n     * The row node ID is the one you provide from the callback `getRowId(params)`,\n     * otherwise the ID is a number (cast as string) auto-generated by the grid when\n     * the row data is set.\n     */\n    GridApi.prototype.getRowNode = function (id) {\n        return this.rowModel.getRowNode(id);\n    };\n    /**\n     * Gets the sizes that various UI elements will be rendered at with the current theme.\n     * If you override the row or header height using `gridOptions`, the override value you provided will be returned.\n     */\n    GridApi.prototype.getSizesForCurrentTheme = function () {\n        return {\n            rowHeight: this.gridOptionsWrapper.getRowHeightAsNumber(),\n            headerHeight: this.gridOptionsWrapper.getHeaderHeight()\n        };\n    };\n    /** Expand all groups. */\n    GridApi.prototype.expandAll = function () {\n        if (this.clientSideRowModel) {\n            this.clientSideRowModel.expandOrCollapseAll(true);\n        }\n        else if (this.serverSideRowModel) {\n            this.serverSideRowModel.expandAll(true);\n        }\n        else {\n            console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');\n        }\n    };\n    /** Collapse all groups. */\n    GridApi.prototype.collapseAll = function () {\n        if (this.clientSideRowModel) {\n            this.clientSideRowModel.expandOrCollapseAll(false);\n        }\n        else if (this.serverSideRowModel) {\n            this.serverSideRowModel.expandAll(false);\n        }\n        else {\n            console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');\n        }\n    };\n    /** Gets the tool panel instance corresponding to the supplied `id`. */\n    GridApi.prototype.getToolPanelInstance = function (id) {\n        if (!this.sideBarComp) {\n            console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n            return;\n        }\n        var comp = this.sideBarComp.getToolPanelInstance(id);\n        return unwrapUserComp(comp);\n    };\n    GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {\n        if (typeof eventName !== 'string') {\n            console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');\n        }\n        this.addRenderedRowListener(eventName, rowIndex, callback);\n    };\n    /**\n     * Registers a callback to a virtual row.\n     * A virtual row is a row that is visually rendered on the screen (rows that are not visible because of the scroll position are not rendered).\n     * Unlike normal events, you do not need to unregister rendered row listeners.\n     * When the rendered row is removed from the grid, all associated rendered row listeners will also be removed.\n     * Currently supports only one event, `virtualRowRemoved`;\n     * listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.\n     */\n    GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {\n        if (eventName === 'virtualRowSelected') {\n            console.warn(\"AG Grid: event virtualRowSelected is deprecated, to register for individual row\\n                selection events, add a listener directly to the row node.\");\n        }\n        this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);\n    };\n    /** Pass a quick filter text into the grid for filtering. */\n    GridApi.prototype.setQuickFilter = function (newFilter) {\n        this.filterManager.setQuickFilter(newFilter);\n    };\n    GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {\n        console.warn('AG Grid: do not use api for selection, call node.setSelected(value) instead');\n        if (suppressEvents) {\n            console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n        }\n        this.selectionService.selectIndex(index, tryMulti);\n    };\n    GridApi.prototype.deselectIndex = function (index, suppressEvents) {\n        if (suppressEvents === void 0) { suppressEvents = false; }\n        console.warn('AG Grid: do not use api for selection, call node.setSelected(value) instead');\n        if (suppressEvents) {\n            console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n        }\n        this.selectionService.deselectIndex(index);\n    };\n    GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {\n        if (tryMulti === void 0) { tryMulti = false; }\n        if (suppressEvents === void 0) { suppressEvents = false; }\n        console.warn('AG Grid: API for selection is deprecated, call node.setSelected(value) instead');\n        if (suppressEvents) {\n            console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n        }\n        node.setSelectedParams({ newValue: true, clearSelection: !tryMulti });\n    };\n    GridApi.prototype.deselectNode = function (node, suppressEvents) {\n        if (suppressEvents === void 0) { suppressEvents = false; }\n        console.warn('AG Grid: API for selection is deprecated, call node.setSelected(value) instead');\n        if (suppressEvents) {\n            console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n        }\n        node.setSelectedParams({ newValue: false });\n    };\n    /** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */\n    GridApi.prototype.selectAll = function () {\n        this.selectionService.selectAllRowNodes();\n    };\n    /** Clear all row selections, regardless of filtering. */\n    GridApi.prototype.deselectAll = function () {\n        this.selectionService.deselectAllRowNodes();\n    };\n    /** Select all filtered rows. */\n    GridApi.prototype.selectAllFiltered = function () {\n        this.selectionService.selectAllRowNodes(true);\n    };\n    /** Clear all filtered selections. */\n    GridApi.prototype.deselectAllFiltered = function () {\n        this.selectionService.deselectAllRowNodes(true);\n    };\n    GridApi.prototype.recomputeAggregates = function () {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('cannot call recomputeAggregates unless using normal row model');\n        }\n        console.warn(\"recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead\");\n        this.clientSideRowModel.refreshModel({ step: exports.ClientSideRowModelSteps.AGGREGATE });\n    };\n    /** Sets columns to adjust in size to fit the grid horizontally. */\n    GridApi.prototype.sizeColumnsToFit = function () {\n        this.gridBodyCtrl.sizeColumnsToFit();\n    };\n    /** Show the 'loading' overlay. */\n    GridApi.prototype.showLoadingOverlay = function () {\n        this.overlayWrapperComp.showLoadingOverlay();\n    };\n    /** Show the 'no rows' overlay. */\n    GridApi.prototype.showNoRowsOverlay = function () {\n        this.overlayWrapperComp.showNoRowsOverlay();\n    };\n    /** Hides the overlay if showing. */\n    GridApi.prototype.hideOverlay = function () {\n        this.overlayWrapperComp.hideOverlay();\n    };\n    GridApi.prototype.isNodeSelected = function (node) {\n        console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');\n        return node.isSelected();\n    };\n    GridApi.prototype.getSelectedNodesById = function () {\n        console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');\n        return null;\n    };\n    /**\n     * Returns a list of selected nodes.\n     * Getting the underlying node (rather than the data) is useful when working with tree / aggregated data,\n     * as the node can be traversed.\n     */\n    GridApi.prototype.getSelectedNodes = function () {\n        return this.selectionService.getSelectedNodes();\n    };\n    /** Returns a list of selected rows (i.e. row data that you provided). */\n    GridApi.prototype.getSelectedRows = function () {\n        return this.selectionService.getSelectedRows();\n    };\n    /**\n     * Returns a list of all selected nodes at 'best cost', a feature to be used with groups / trees.\n     * If a group has all its children selected, then the group appears in the result, but not the children.\n     * Designed for use with `'children'` as the group selection type, where groups don't actually appear in the selection normally.\n     */\n    GridApi.prototype.getBestCostNodeSelection = function () {\n        return this.selectionService.getBestCostNodeSelection();\n    };\n    /** Retrieve rendered nodes. Due to virtualisation this will contain only the current visible rows and those in the buffer. */\n    GridApi.prototype.getRenderedNodes = function () {\n        return this.rowRenderer.getRenderedNodes();\n    };\n    GridApi.prototype.ensureColIndexVisible = function (index) {\n        console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');\n    };\n    /**\n     *  Ensures the column is visible by scrolling the table if needed.\n     * @param key - The column to ensure visible\n     * @param position - Where the column will be positioned.\n     * - `auto` - Scrolls the minimum amount to make sure the column is visible.\n     * - `start` - Scrolls the column to the start of the viewport.\n     * - `middle` - Scrolls the column to the middle of the viewport.\n     * - `end` - Scrolls the column to the end of the viewport.\n    */\n    GridApi.prototype.ensureColumnVisible = function (key, position) {\n        if (position === void 0) { position = 'auto'; }\n        this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(key, position);\n    };\n    /**\n     * Ensures the row index is visible by vertically scrolling the grid.\n     * If a position of `'top'`, `'middle'` or `'bottom'` is supplied, the grid will scroll the grid to place the row at the top, middle or bottom respectively.\n     * Otherwise, the grid will do the minimum scrolling possible to show the row.\n     * i.e.\n     * - if the grid needs to scroll up then it will scroll so that the row is at the top,\n     * - if the grid needs to scroll down then it will scroll so that the row is at the bottom,\n     * - if the row is already in view then the grid will do nothing.\n     */\n    GridApi.prototype.ensureIndexVisible = function (index, position) {\n        this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(index, position);\n    };\n    /**\n     * Ensures a row node is visible, scrolling the grid if needed.\n     * Provide either:\n     * - the node,\n     * - the data object\n     * - a comparator function (that takes the node as a parameter, and returns `true` for match or `false` for no match).\n     */\n    GridApi.prototype.ensureNodeVisible = function (comparator, position) {\n        if (position === void 0) { position = null; }\n        this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(comparator, position);\n    };\n    /**\n     * Similar to `forEachNode`, except lists all the leaf nodes.\n     * This effectively goes through all the data that you provided to the grid before the grid performed any grouping.\n     * If using tree data, goes through all the nodes for the data you provided, including nodes that have children,\n     * but excluding groups the grid created where gaps were missing in the hierarchy.\n     */\n    GridApi.prototype.forEachLeafNode = function (callback) {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('cannot call forEachNode unless using normal row model');\n        }\n        this.clientSideRowModel.forEachLeafNode(callback);\n    };\n    /**\n     * Iterates through each node (row) in the grid and calls the callback for each node.\n     * This works similar to the `forEach` method on a JavaScript array.\n     * This is called for every node, ignoring any filtering or sorting applied within the grid.\n     * If using the Infinite Row Model, then this gets called for each page loaded in the page cache.\n     */\n    GridApi.prototype.forEachNode = function (callback) {\n        this.rowModel.forEachNode(callback);\n    };\n    /** Similar to `forEachNode`, except skips any filtered out data. */\n    GridApi.prototype.forEachNodeAfterFilter = function (callback) {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('cannot call forEachNodeAfterFilter unless using normal row model');\n        }\n        this.clientSideRowModel.forEachNodeAfterFilter(callback);\n    };\n    /** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */\n    GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {\n        if (missing(this.clientSideRowModel)) {\n            console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');\n        }\n        this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);\n    };\n    /**\n     * Returns the filter component instance for a column.\n     * `key` can be a string field name or a ColDef object (matches on object reference, useful if field names are not unique).\n     * If your filter is created asynchronously, `getFilterInstance` will return `null` so you will need to use the `callback` to access the filter instance instead.\n     */\n    GridApi.prototype.getFilterInstance = function (key, callback) {\n        var res = this.getFilterInstanceImpl(key, function (instance) {\n            if (!callback) {\n                return;\n            }\n            var unwrapped = unwrapUserComp(instance);\n            callback(unwrapped);\n        });\n        var unwrapped = unwrapUserComp(res);\n        return unwrapped;\n    };\n    GridApi.prototype.getFilterInstanceImpl = function (key, callback) {\n        var column = this.columnModel.getPrimaryColumn(key);\n        if (!column) {\n            return undefined;\n        }\n        var filterPromise = this.filterManager.getFilterComponent(column, 'NO_UI');\n        var currentValue = filterPromise && filterPromise.resolveNow(null, function (filterComp) { return filterComp; });\n        if (currentValue) {\n            setTimeout(callback, 0, currentValue);\n        }\n        else if (filterPromise) {\n            filterPromise.then(function (comp) {\n                callback(comp);\n            });\n        }\n        return currentValue;\n    };\n    /** Destroys a filter. Useful to force a particular filter to be created from scratch again. */\n    GridApi.prototype.destroyFilter = function (key) {\n        var column = this.columnModel.getPrimaryColumn(key);\n        if (column) {\n            return this.filterManager.destroyFilter(column, \"filterDestroyed\");\n        }\n    };\n    /** Gets the status panel instance corresponding to the supplied `id`. */\n    GridApi.prototype.getStatusPanel = function (key) {\n        if (!this.statusBarService) {\n            return;\n        }\n        var comp = this.statusBarService.getStatusPanel(key);\n        return unwrapUserComp(comp);\n    };\n    GridApi.prototype.getColumnDef = function (key) {\n        var column = this.columnModel.getPrimaryColumn(key);\n        if (column) {\n            return column.getColDef();\n        }\n        return null;\n    };\n    /**\n     * Returns the current column definitions.\n    */\n    GridApi.prototype.getColumnDefs = function () { return this.columnModel.getColumnDefs(); };\n    /** Informs the grid that a filter has changed. This is typically called after a filter change through one of the filter APIs. */\n    GridApi.prototype.onFilterChanged = function () {\n        this.filterManager.onFilterChanged();\n    };\n    /**\n     * Gets the grid to act as if the sort was changed.\n     * Useful if you update some values and want to get the grid to reorder them according to the new values.\n     */\n    GridApi.prototype.onSortChanged = function () {\n        this.sortController.onSortChanged('api');\n    };\n    /** Sets the state of all the advanced filters. Provide it with what you get from `getFilterModel()` to restore filter state. */\n    GridApi.prototype.setFilterModel = function (model) {\n        this.filterManager.setFilterModel(model);\n    };\n    /** Gets the current state of all the advanced filters. Used for saving filter state. */\n    GridApi.prototype.getFilterModel = function () {\n        return this.filterManager.getFilterModel();\n    };\n    /** Returns the focused cell (or the last focused cell if the grid lost focus). */\n    GridApi.prototype.getFocusedCell = function () {\n        return this.focusService.getFocusedCell();\n    };\n    /** Clears the focused cell. */\n    GridApi.prototype.clearFocusedCell = function () {\n        return this.focusService.clearFocusedCell();\n    };\n    /** Sets the focus to the specified cell. `rowPinned` can be either 'top', 'bottom' or null (for not pinned). */\n    GridApi.prototype.setFocusedCell = function (rowIndex, colKey, rowPinned) {\n        this.focusService.setFocusedCell(rowIndex, colKey, rowPinned, true);\n    };\n    /** Sets the `suppressRowDrag` property. */\n    GridApi.prototype.setSuppressRowDrag = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG, value);\n    };\n    /** Sets the `suppressMoveWhenRowDragging` property. */\n    GridApi.prototype.setSuppressMoveWhenRowDragging = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG, value);\n    };\n    /** Sets the `suppressRowClickSelection` property. */\n    GridApi.prototype.setSuppressRowClickSelection = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_ROW_CLICK_SELECTION, value);\n    };\n    /** Adds a drop zone outside of the grid where rows can be dropped. */\n    GridApi.prototype.addRowDropZone = function (params) {\n        this.gridBodyCtrl.getRowDragFeature().addRowDropZone(params);\n    };\n    /** Removes an external drop zone added by `addRowDropZone`. */\n    GridApi.prototype.removeRowDropZone = function (params) {\n        var activeDropTarget = this.dragAndDropService.findExternalZone(params);\n        if (activeDropTarget) {\n            this.dragAndDropService.removeDropTarget(activeDropTarget);\n        }\n    };\n    /** Returns the `RowDropZoneParams` to be used by another grid's `addRowDropZone` method. */\n    GridApi.prototype.getRowDropZoneParams = function (events) {\n        return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(events);\n    };\n    /** Sets the height in pixels for the row containing the column label header. */\n    GridApi.prototype.setHeaderHeight = function (headerHeight) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_HEADER_HEIGHT, headerHeight);\n    };\n    /**\n     * Switch between layout options: `normal`, `autoHeight`, `print`.\n     * Defaults to `normal` if no domLayout provided.\n     */\n    GridApi.prototype.setDomLayout = function (domLayout) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DOM_LAYOUT, domLayout);\n    };\n    /** Sets the `enableCellTextSelection` property. */\n    GridApi.prototype.setEnableCellTextSelection = function (selectable) {\n        this.gridBodyCtrl.setCellTextSelection(selectable);\n    };\n    /** Sets the preferred direction for the selection fill handle. */\n    GridApi.prototype.setFillHandleDirection = function (direction) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_FILL_HANDLE_DIRECTION, direction);\n    };\n    /** Sets the height in pixels for the rows containing header column groups. */\n    GridApi.prototype.setGroupHeaderHeight = function (headerHeight) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, headerHeight);\n    };\n    /** Sets the height in pixels for the row containing the floating filters. */\n    GridApi.prototype.setFloatingFiltersHeight = function (headerHeight) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, headerHeight);\n    };\n    /** Sets the height in pixels for the row containing the columns when in pivot mode. */\n    GridApi.prototype.setPivotHeaderHeight = function (headerHeight) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, headerHeight);\n    };\n    /** Sets the height in pixels for the row containing header column groups when in pivot mode. */\n    GridApi.prototype.setPivotGroupHeaderHeight = function (headerHeight) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, headerHeight);\n    };\n    GridApi.prototype.setIsExternalFilterPresent = function (isExternalFilterPresentFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_EXTERNAL_FILTER_PRESENT, isExternalFilterPresentFunc);\n    };\n    GridApi.prototype.setDoesExternalFilterPass = function (doesExternalFilterPassFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DOES_EXTERNAL_FILTER_PASS, doesExternalFilterPassFunc);\n    };\n    GridApi.prototype.setNavigateToNextCell = function (navigateToNextCellFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_CELL, navigateToNextCellFunc);\n    };\n    GridApi.prototype.setTabToNextCell = function (tabToNextCellFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_TAB_TO_NEXT_CELL, tabToNextCellFunc);\n    };\n    GridApi.prototype.setTabToNextHeader = function (tabToNextHeaderFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_TAB_TO_NEXT_HEADER, tabToNextHeaderFunc);\n    };\n    GridApi.prototype.setNavigateToNextHeader = function (navigateToNextHeaderFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_HEADER, navigateToNextHeaderFunc);\n    };\n    GridApi.prototype.setGroupRowAggNodes = function (groupRowAggNodesFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_ROW_AGG_NODES, groupRowAggNodesFunc);\n    };\n    GridApi.prototype.setGetGroupRowAgg = function (getGroupRowAggFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_GROUP_ROW_AGG, getGroupRowAggFunc);\n    };\n    GridApi.prototype.setGetBusinessKeyForNode = function (getBusinessKeyForNodeFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_BUSINESS_KEY_FOR_NODE, getBusinessKeyForNodeFunc);\n    };\n    GridApi.prototype.setGetChildCount = function (getChildCountFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CHILD_COUNT, getChildCountFunc);\n    };\n    GridApi.prototype.setProcessRowPostCreate = function (processRowPostCreateFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_ROW_POST_CREATE, processRowPostCreateFunc);\n    };\n    GridApi.prototype.setGetRowNodeId = function (getRowNodeIdFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_NODE_ID, getRowNodeIdFunc);\n    };\n    GridApi.prototype.setGetRowId = function (getRowIdFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_ID, getRowIdFunc);\n    };\n    GridApi.prototype.setGetRowClass = function (rowClassFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_CLASS, rowClassFunc);\n    };\n    GridApi.prototype.setIsFullWidthCell = function (isFullWidthCellFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_FULL_WIDTH_CELL, isFullWidthCellFunc);\n    };\n    GridApi.prototype.setIsFullWidthRow = function (isFullWidthRowFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_FULL_WIDTH_ROW, isFullWidthRowFunc);\n    };\n    GridApi.prototype.setIsRowSelectable = function (isRowSelectableFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_ROW_SELECTABLE, isRowSelectableFunc);\n    };\n    GridApi.prototype.setIsRowMaster = function (isRowMasterFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_ROW_MASTER, isRowMasterFunc);\n    };\n    GridApi.prototype.setPostSort = function (postSortFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_SORT, postSortFunc);\n    };\n    GridApi.prototype.setPostSortRows = function (postSortRowsFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_SORT_ROWS, postSortRowsFunc);\n    };\n    GridApi.prototype.setGetDocument = function (getDocumentFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_DOCUMENT, getDocumentFunc);\n    };\n    GridApi.prototype.setGetContextMenuItems = function (getContextMenuItemsFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CONTEXT_MENU_ITEMS, getContextMenuItemsFunc);\n    };\n    GridApi.prototype.setGetMainMenuItems = function (getMainMenuItemsFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_MAIN_MENU_ITEMS, getMainMenuItemsFunc);\n    };\n    GridApi.prototype.setProcessCellForClipboard = function (processCellForClipboardFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_CELL_FOR_CLIPBOARD, processCellForClipboardFunc);\n    };\n    GridApi.prototype.setSendToClipboard = function (sendToClipboardFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SEND_TO_CLIPBOARD, sendToClipboardFunc);\n    };\n    GridApi.prototype.setProcessCellFromClipboard = function (processCellFromClipboardFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_CELL_FROM_CLIPBOARD, processCellFromClipboardFunc);\n    };\n    GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_TO_SECONDARY_COLDEF, processSecondaryColDefFunc);\n    };\n    GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_SECONDARY_COL_GROUP_DEF, processSecondaryColGroupDefFunc);\n    };\n    GridApi.prototype.setPostProcessPopup = function (postProcessPopupFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_PROCESS_POPUP, postProcessPopupFunc);\n    };\n    GridApi.prototype.setDefaultGroupOrderComparator = function (defaultGroupOrderComparatorFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DEFAULT_GROUP_ORDER_COMPARATOR, defaultGroupOrderComparatorFunc);\n    };\n    GridApi.prototype.setInitialGroupOrderComparator = function (initialGroupOrderComparatorFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_INITIAL_GROUP_ORDER_COMPARATOR, initialGroupOrderComparatorFunc);\n    };\n    GridApi.prototype.setGetChartToolbarItems = function (getChartToolbarItemsFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CHART_TOOLBAR_ITEMS, getChartToolbarItemsFunc);\n    };\n    GridApi.prototype.setPaginationNumberFormatter = function (paginationNumberFormatterFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PAGINATION_NUMBER_FORMATTER, paginationNumberFormatterFunc);\n    };\n    GridApi.prototype.setGetServerSideStoreParams = function (getServerSideStoreParamsFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_SERVER_SIDE_STORE_PARAMS, getServerSideStoreParamsFunc);\n    };\n    GridApi.prototype.setIsServerSideGroupOpenByDefault = function (isServerSideGroupOpenByDefaultFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT, isServerSideGroupOpenByDefaultFunc);\n    };\n    GridApi.prototype.setIsApplyServerSideTransaction = function (isApplyServerSideTransactionFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION, isApplyServerSideTransactionFunc);\n    };\n    GridApi.prototype.setIsServerSideGroup = function (isServerSideGroupFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUP, isServerSideGroupFunc);\n    };\n    GridApi.prototype.setGetServerSideGroupKey = function (getServerSideGroupKeyFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_KEY, getServerSideGroupKeyFunc);\n    };\n    GridApi.prototype.setGetRowStyle = function (rowStyleFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_STYLE, rowStyleFunc);\n    };\n    GridApi.prototype.setGetRowHeight = function (rowHeightFunc) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_HEIGHT, rowHeightFunc);\n    };\n    /** Returns `true` if the side bar is visible. */\n    GridApi.prototype.isSideBarVisible = function () {\n        return this.sideBarComp ? this.sideBarComp.isDisplayed() : false;\n    };\n    /** Show/hide the entire side bar, including any visible panel and the tab buttons. */\n    GridApi.prototype.setSideBarVisible = function (show) {\n        if (!this.sideBarComp) {\n            if (show) {\n                console.warn('AG Grid: sideBar is not loaded');\n            }\n            return;\n        }\n        this.sideBarComp.setDisplayed(show);\n    };\n    /** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */\n    GridApi.prototype.setSideBarPosition = function (position) {\n        if (!this.sideBarComp) {\n            console.warn('AG Grid: sideBar is not loaded');\n            return;\n        }\n        this.sideBarComp.setSideBarPosition(position);\n    };\n    /** Opens a particular tool panel. Provide the ID of the tool panel to open. */\n    GridApi.prototype.openToolPanel = function (key) {\n        if (!this.sideBarComp) {\n            console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n            return;\n        }\n        this.sideBarComp.openToolPanel(key);\n    };\n    /** Closes the currently open tool panel (if any). */\n    GridApi.prototype.closeToolPanel = function () {\n        if (!this.sideBarComp) {\n            console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n            return;\n        }\n        this.sideBarComp.close();\n    };\n    /** Returns the ID of the currently shown tool panel if any, otherwise `null`. */\n    GridApi.prototype.getOpenedToolPanel = function () {\n        return this.sideBarComp ? this.sideBarComp.openedItem() : null;\n    };\n    /** Returns the current side bar configuration. If a shortcut was used, returns the detailed long form. */\n    GridApi.prototype.getSideBar = function () {\n        return this.gridOptionsWrapper.getSideBar();\n    };\n    /** Resets the side bar to the provided configuration. The parameter is the same as the sideBar grid property. The side bar is re-created from scratch with the new config. */\n    GridApi.prototype.setSideBar = function (def) {\n        this.gridOptionsWrapper.setProperty('sideBar', SideBarDefParser.parse(def));\n    };\n    GridApi.prototype.setSuppressClipboardPaste = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE, value);\n    };\n    /** Returns `true` if the tool panel is showing, otherwise `false`. */\n    GridApi.prototype.isToolPanelShowing = function () {\n        return this.sideBarComp.isToolPanelShowing();\n    };\n    GridApi.prototype.doLayout = function () {\n        var message = \"AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically\";\n        doOnce(function () { return console.warn(message); }, 'doLayoutDeprecated');\n    };\n    /** Tells the grid to recalculate the row heights. */\n    GridApi.prototype.resetRowHeights = function () {\n        if (exists(this.clientSideRowModel)) {\n            if (this.columnModel.isAutoRowHeightActive()) {\n                console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');\n                return;\n            }\n            this.clientSideRowModel.resetRowHeights();\n        }\n    };\n    GridApi.prototype.setGroupRemoveSingleChildren = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN, value);\n    };\n    GridApi.prototype.setGroupRemoveLowestSingleChildren = function (value) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN, value);\n    };\n    /** Tells the grid a row height has changed. To be used after calling `rowNode.setRowHeight(newHeight)`. */\n    GridApi.prototype.onRowHeightChanged = function () {\n        if (this.clientSideRowModel) {\n            this.clientSideRowModel.onRowHeightChanged();\n        }\n        else if (this.serverSideRowModel) {\n            this.serverSideRowModel.onRowHeightChanged();\n        }\n    };\n    /**\n     * Gets the value for a column for a particular `rowNode` (row).\n     * This is useful if you want the raw value of a cell e.g. if implementing your own CSV export.\n     */\n    GridApi.prototype.getValue = function (colKey, rowNode) {\n        var column = this.columnModel.getPrimaryColumn(colKey);\n        if (missing(column)) {\n            column = this.columnModel.getGridColumn(colKey);\n        }\n        if (missing(column)) {\n            return null;\n        }\n        return this.valueService.getValue(column, rowNode);\n    };\n    /** Add an event listener for the specified `eventType`. Works similar to `addEventListener` for a browser DOM element. */\n    GridApi.prototype.addEventListener = function (eventType, listener) {\n        var async = this.gridOptionsWrapper.useAsyncEvents();\n        this.eventService.addEventListener(eventType, listener, async);\n    };\n    /** Add an event listener for all event types coming from the grid. */\n    GridApi.prototype.addGlobalListener = function (listener) {\n        var async = this.gridOptionsWrapper.useAsyncEvents();\n        this.eventService.addGlobalListener(listener, async);\n    };\n    /** Remove an event listener. */\n    GridApi.prototype.removeEventListener = function (eventType, listener) {\n        var async = this.gridOptionsWrapper.useAsyncEvents();\n        this.eventService.removeEventListener(eventType, listener, async);\n    };\n    /** Remove a global event listener. */\n    GridApi.prototype.removeGlobalListener = function (listener) {\n        var async = this.gridOptionsWrapper.useAsyncEvents();\n        this.eventService.removeGlobalListener(listener, async);\n    };\n    GridApi.prototype.dispatchEvent = function (event) {\n        this.eventService.dispatchEvent(event);\n    };\n    /** Will destroy the grid and release resources. If you are using a framework you do not need to call this, as the grid links in with the framework lifecycle. However if you are using Web Components or native JavaScript, you do need to call this, to avoid a memory leak in your application. */\n    GridApi.prototype.destroy = function () {\n        // this is needed as GridAPI is a bean, and GridAPI.destroy() is called as part\n        // of context.destroy(). so we need to stop the infinite loop.\n        if (this.destroyCalled) {\n            return;\n        }\n        this.destroyCalled = true;\n        // destroy the UI first (as they use the services)\n        var gridCtrl = this.ctrlsService.getGridCtrl();\n        if (gridCtrl) {\n            gridCtrl.destroyGridUi();\n        }\n        // destroy the services\n        this.context.destroy();\n    };\n    GridApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {\n        // some users were raising support issues with regards memory leaks. the problem was the customers applications\n        // were keeping references to the API. trying to educate them all would be difficult, easier to just remove\n        // all references in the API so at least the core grid can be garbage collected.\n        //\n        // wait about 100ms before clearing down the references, in case user has some cleanup to do,\n        // and needs to deference the API first\n        setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);\n    };\n    GridApi.prototype.warnIfDestroyed = function (methodName) {\n        if (this.destroyCalled) {\n            console.warn(\"AG Grid: Grid API method \" + methodName + \" was called on a grid that was destroyed.\");\n        }\n        return this.destroyCalled;\n    };\n    /** Reset the quick filter cache text on every rowNode. */\n    GridApi.prototype.resetQuickFilter = function () {\n        if (this.warnIfDestroyed('resetQuickFilter')) {\n            return;\n        }\n        this.rowModel.forEachNode(function (node) { return node.quickFilterAggregateText = null; });\n    };\n    GridApi.prototype.getRangeSelections = function () {\n        console.warn(\"AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\\n        getCellRanges() is a bit different, please check the AG Grid documentation.\");\n        return null;\n    };\n    /** Returns the list of selected cell ranges. */\n    GridApi.prototype.getCellRanges = function () {\n        if (this.rangeService) {\n            return this.rangeService.getCellRanges();\n        }\n        console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n        return null;\n    };\n    GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {\n        return camelCaseToHumanText(camelCase);\n    };\n    GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {\n        console.warn('AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()');\n    };\n    /** Adds the provided cell range to the selected ranges. */\n    GridApi.prototype.addCellRange = function (params) {\n        if (!this.rangeService) {\n            console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n        }\n        this.rangeService.addCellRange(params);\n    };\n    /** Clears the selected ranges. */\n    GridApi.prototype.clearRangeSelection = function () {\n        if (!this.rangeService) {\n            console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n        }\n        this.rangeService.removeAllCellRanges();\n    };\n    /** Reverts the last cell edit. */\n    GridApi.prototype.undoCellEditing = function () {\n        this.undoRedoService.undo();\n    };\n    /** Re-applies the most recently undone cell edit. */\n    GridApi.prototype.redoCellEditing = function () {\n        this.undoRedoService.redo();\n    };\n    /** Returns current number of available cell edit undo operations. */\n    GridApi.prototype.getCurrentUndoSize = function () {\n        return this.undoRedoService.getCurrentUndoStackSize();\n    };\n    /** Returns current number of available cell edit redo operations. */\n    GridApi.prototype.getCurrentRedoSize = function () {\n        return this.undoRedoService.getCurrentRedoStackSize();\n    };\n    /** Returns a list of models with information about the charts that are currently rendered from the grid. */\n    GridApi.prototype.getChartModels = function () {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.getChartModels') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.getChartModels')) {\n            return this.chartService.getChartModels();\n        }\n    };\n    /** Returns the `ChartRef` using the supplied `chartId`. */\n    GridApi.prototype.getChartRef = function (chartId) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.getChartRef') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.getChartRef')) {\n            return this.chartService.getChartRef(chartId);\n        }\n    };\n    /** Returns a string containing the requested data URL which contains a representation of the chart image. */\n    GridApi.prototype.getChartImageDataURL = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.getChartImageDataURL') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.getChartImageDataURL')) {\n            return this.chartService.getChartImageDataURL(params);\n        }\n    };\n    /** Used to programmatically create charts from a range. */\n    GridApi.prototype.createRangeChart = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.createRangeChart') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.createRangeChart')) {\n            return this.chartService.createRangeChart(params);\n        }\n    };\n    /** Used to programmatically create cross filter charts from a range. */\n    GridApi.prototype.createCrossFilterChart = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.createCrossFilterChart') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.createCrossFilterChart')) {\n            return this.chartService.createCrossFilterChart(params);\n        }\n    };\n    /** Restores a chart using the `ChartModel` that was previously obtained from `getChartModels()`. */\n    GridApi.prototype.restoreChart = function (chartModel, chartContainer) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.restoreChart') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.restoreChart')) {\n            return this.chartService.restoreChart(chartModel, chartContainer);\n        }\n    };\n    /** Used to programmatically create pivot charts from a grid. */\n    GridApi.prototype.createPivotChart = function (params) {\n        if (ModuleRegistry.assertRegistered(exports.ModuleNames.RangeSelectionModule, 'api.createPivotChart') &&\n            ModuleRegistry.assertRegistered(exports.ModuleNames.GridChartsModule, 'api.createPivotChart')) {\n            return this.chartService.createPivotChart(params);\n        }\n    };\n    /** Copies the selected rows to the clipboard. */\n    GridApi.prototype.copySelectedRowsToClipboard = function (params) {\n        if (!this.clipboardService) {\n            console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n        }\n        this.clipboardService.copySelectedRowsToClipboard(params);\n    };\n    /** Copies the selected ranges to the clipboard. */\n    GridApi.prototype.copySelectedRangeToClipboard = function (params) {\n        if (!this.clipboardService) {\n            console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n        }\n        this.clipboardService.copySelectedRangeToClipboard(params);\n    };\n    /** Copies the selected range down, similar to `Ctrl + D` in Excel. */\n    GridApi.prototype.copySelectedRangeDown = function () {\n        if (!this.clipboardService) {\n            console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n        }\n        this.clipboardService.copyRangeDown();\n    };\n    /** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */\n    GridApi.prototype.showColumnMenuAfterButtonClick = function (colKey, buttonElement) {\n        // use grid column so works with pivot mode\n        var column = this.columnModel.getGridColumn(colKey);\n        this.menuFactory.showMenuAfterButtonClick(column, buttonElement, 'columnMenu');\n    };\n    /** Shows the column menu after and positions it relative to the mouse event. Use in conjunction with your own header template. */\n    GridApi.prototype.showColumnMenuAfterMouseClick = function (colKey, mouseEvent) {\n        // use grid column so works with pivot mode\n        var column = this.columnModel.getGridColumn(colKey);\n        if (!column) {\n            column = this.columnModel.getPrimaryColumn(colKey);\n        }\n        if (!column) {\n            console.error(\"AG Grid: column '\" + colKey + \"' not found\");\n            return;\n        }\n        this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);\n    };\n    /** Hides any visible context menu or column menu. */\n    GridApi.prototype.hidePopupMenu = function () {\n        // hide the context menu if in enterprise\n        if (this.contextMenuFactory) {\n            this.contextMenuFactory.hideActiveMenu();\n        }\n        // and hide the column menu always\n        this.menuFactory.hideActiveMenu();\n    };\n    /** DOM element to use as the popup parent for grid popups (context menu, column menu etc). */\n    GridApi.prototype.setPopupParent = function (ePopupParent) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POPUP_PARENT, ePopupParent);\n    };\n    /** Navigates the grid focus to the next cell, as if tabbing. */\n    GridApi.prototype.tabToNextCell = function (event) {\n        return this.navigationService.tabToNextCell(false, event);\n    };\n    /** Navigates the grid focus to the previous cell, as if shift-tabbing. */\n    GridApi.prototype.tabToPreviousCell = function (event) {\n        return this.navigationService.tabToNextCell(true, event);\n    };\n    /** Returns the list of active cell renderer instances. */\n    GridApi.prototype.getCellRendererInstances = function (params) {\n        if (params === void 0) { params = {}; }\n        var res = this.rowRenderer.getCellRendererInstances(params);\n        var unwrapped = res.map(unwrapUserComp);\n        return unwrapped;\n    };\n    /** Returns the list of active cell editor instances. Optionally provide parameters to restrict to certain columns / row nodes. */\n    GridApi.prototype.getCellEditorInstances = function (params) {\n        if (params === void 0) { params = {}; }\n        var res = this.rowRenderer.getCellEditorInstances(params);\n        var unwrapped = res.map(unwrapUserComp);\n        return unwrapped;\n    };\n    /** If the grid is editing, returns back details of the editing cell(s). */\n    GridApi.prototype.getEditingCells = function () {\n        return this.rowRenderer.getEditingCells();\n    };\n    /** If a cell is editing, it stops the editing. Pass `true` if you want to cancel the editing (i.e. don't accept changes). */\n    GridApi.prototype.stopEditing = function (cancel) {\n        if (cancel === void 0) { cancel = false; }\n        this.rowRenderer.stopEditing(cancel);\n    };\n    /** Start editing the provided cell. If another cell is editing, the editing will be stopped in that other cell. */\n    GridApi.prototype.startEditingCell = function (params) {\n        var column = this.columnModel.getGridColumn(params.colKey);\n        if (!column) {\n            console.warn(\"AG Grid: no column found for \" + params.colKey);\n            return;\n        }\n        var cellPosition = {\n            rowIndex: params.rowIndex,\n            rowPinned: params.rowPinned || null,\n            column: column\n        };\n        var notPinned = params.rowPinned == null;\n        if (notPinned) {\n            this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(params.rowIndex);\n        }\n        var cell = this.navigationService.getCellByPosition(cellPosition);\n        if (!cell) {\n            return;\n        }\n        cell.startRowOrCellEdit(params.key, params.charPress);\n    };\n    /** Add an aggregation function with the specified key. */\n    GridApi.prototype.addAggFunc = function (key, aggFunc) {\n        if (this.aggFuncService) {\n            this.aggFuncService.addAggFunc(key, aggFunc);\n        }\n    };\n    /** Add aggregations function with the specified keys. */\n    GridApi.prototype.addAggFuncs = function (aggFuncs) {\n        if (this.aggFuncService) {\n            this.aggFuncService.addAggFuncs(aggFuncs);\n        }\n    };\n    /** Clears all aggregation functions (including those provided by the grid). */\n    GridApi.prototype.clearAggFuncs = function () {\n        if (this.aggFuncService) {\n            this.aggFuncService.clear();\n        }\n    };\n    /** Apply transactions to the server side row model. */\n    GridApi.prototype.applyServerSideTransaction = function (transaction) {\n        if (!this.serverSideTransactionManager) {\n            console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');\n            return;\n        }\n        return this.serverSideTransactionManager.applyTransaction(transaction);\n    };\n    GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {\n        if (!this.serverSideTransactionManager) {\n            console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');\n            return;\n        }\n        return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);\n    };\n    /** Gets all failed server side loads to retry. */\n    GridApi.prototype.retryServerSideLoads = function () {\n        if (!this.serverSideRowModel) {\n            console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');\n            return;\n        }\n        this.serverSideRowModel.retryLoads();\n    };\n    GridApi.prototype.flushServerSideAsyncTransactions = function () {\n        if (!this.serverSideTransactionManager) {\n            console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');\n            return;\n        }\n        return this.serverSideTransactionManager.flushAsyncTransactions();\n    };\n    /** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */\n    GridApi.prototype.applyTransaction = function (rowDataTransaction) {\n        if (!this.clientSideRowModel) {\n            console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');\n            return;\n        }\n        var res = this.clientSideRowModel.updateRowData(rowDataTransaction);\n        // refresh all the full width rows\n        this.rowRenderer.refreshFullWidthRows(res.update);\n        // do change detection for all present cells\n        if (!this.gridOptionsWrapper.isSuppressChangeDetection()) {\n            this.rowRenderer.refreshCells();\n        }\n        return res;\n    };\n    /** Sets the `deltaSort` property */\n    GridApi.prototype.setDeltaSort = function (enable) {\n        this.gridOptionsWrapper.setProperty('deltaSort', enable);\n    };\n    /** @deprecated */\n    GridApi.prototype.updateRowData = function (rowDataTransaction) {\n        var message = 'AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.';\n        doOnce(function () { return console.warn(message); }, 'updateRowData deprecated');\n        return this.applyTransaction(rowDataTransaction);\n    };\n    /** Same as `applyTransaction` except executes asynchronously for efficiency. */\n    GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {\n        if (!this.clientSideRowModel) {\n            console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');\n            return;\n        }\n        this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);\n    };\n    /** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */\n    GridApi.prototype.flushAsyncTransactions = function () {\n        if (!this.clientSideRowModel) {\n            console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');\n            return;\n        }\n        this.clientSideRowModel.flushAsyncTransactions();\n    };\n    /** @deprecated */\n    GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {\n        var message = 'AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.';\n        doOnce(function () { return console.warn(message); }, 'batchUpdateRowData deprecated');\n        this.applyTransactionAsync(rowDataTransaction, callback);\n    };\n    GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {\n        console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');\n        this.updateRowData({ add: items, addIndex: index, update: null, remove: null });\n    };\n    GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {\n        console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');\n        var dataToRemove = rowNodes.map(function (rowNode) { return rowNode.data; });\n        this.updateRowData({ add: null, addIndex: null, update: null, remove: dataToRemove });\n    };\n    GridApi.prototype.addItems = function (items, skipRefresh) {\n        console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');\n        this.updateRowData({ add: items, addIndex: null, update: null, remove: null });\n    };\n    GridApi.prototype.refreshVirtualPageCache = function () {\n        console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');\n        this.refreshInfiniteCache();\n    };\n    GridApi.prototype.refreshInfinitePageCache = function () {\n        console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');\n        this.refreshInfiniteCache();\n    };\n    /**\n     * Marks all the currently loaded blocks in the cache for reload.\n     * If you have 10 blocks in the cache, all 10 will be marked for reload.\n     * The old data will continue to be displayed until the new data is loaded.\n     */\n    GridApi.prototype.refreshInfiniteCache = function () {\n        if (this.infiniteRowModel) {\n            this.infiniteRowModel.refreshCache();\n        }\n        else {\n            console.warn(\"AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.\");\n        }\n    };\n    GridApi.prototype.purgeVirtualPageCache = function () {\n        console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');\n        this.purgeInfinitePageCache();\n    };\n    GridApi.prototype.purgeInfinitePageCache = function () {\n        console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');\n        this.purgeInfiniteCache();\n    };\n    /**\n     * Purges the cache.\n     * The grid is then told to refresh. Only the blocks required to display the current data on screen are fetched (typically no more than 2).\n     * The grid will display nothing while the new blocks are loaded.\n     * Use this to immediately remove the old data from the user.\n     */\n    GridApi.prototype.purgeInfiniteCache = function () {\n        if (this.infiniteRowModel) {\n            this.infiniteRowModel.purgeCache();\n        }\n        else {\n            console.warn(\"AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.\");\n        }\n    };\n    /** @deprecated */\n    GridApi.prototype.purgeEnterpriseCache = function (route) {\n        console.warn(\"ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()\");\n        this.purgeServerSideCache(route);\n    };\n    /** @deprecated */\n    GridApi.prototype.purgeServerSideCache = function (route) {\n        if (route === void 0) { route = []; }\n        if (this.serverSideRowModel) {\n            console.warn(\"AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead.\");\n            this.refreshServerSideStore({\n                route: route,\n                purge: true\n            });\n        }\n        else {\n            console.warn(\"AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.\");\n        }\n    };\n    /**\n     * Refresh a server-side store.\n     * If you pass no parameters, then the top level cache is purged.\n     * To purge a child cache, pass in the string of keys to get to the child cache.\n     */\n    GridApi.prototype.refreshServerSideStore = function (params) {\n        if (this.serverSideRowModel) {\n            this.serverSideRowModel.refreshStore(params);\n        }\n        else {\n            console.warn(\"AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.\");\n        }\n    };\n    /** Returns info on all server side stores. */\n    GridApi.prototype.getServerSideStoreState = function () {\n        if (this.serverSideRowModel) {\n            return this.serverSideRowModel.getStoreState();\n        }\n        else {\n            console.warn(\"AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'.\");\n            return [];\n        }\n    };\n    GridApi.prototype.getVirtualRowCount = function () {\n        console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');\n        return this.getInfiniteRowCount();\n    };\n    /** The row count defines how many rows the grid allows scrolling to. */\n    GridApi.prototype.getInfiniteRowCount = function () {\n        if (this.infiniteRowModel) {\n            return this.infiniteRowModel.getRowCount();\n        }\n        else {\n            console.warn(\"AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.\");\n        }\n    };\n    GridApi.prototype.isMaxRowFound = function () {\n        console.warn(\"AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()\");\n        return this.isLastRowIndexKnown();\n    };\n    /** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */\n    GridApi.prototype.isLastRowIndexKnown = function () {\n        if (this.infiniteRowModel) {\n            return this.infiniteRowModel.isLastRowIndexKnown();\n        }\n        else {\n            console.warn(\"AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.\");\n        }\n    };\n    GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {\n        console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');\n        this.setRowCount(rowCount, maxRowFound);\n    };\n    GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {\n        console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');\n        this.setRowCount(rowCount, maxRowFound);\n    };\n    /**\n     * Sets the `rowCount` and `lastRowIndexKnown` properties.\n     * The second parameter, `lastRowIndexKnown`, is optional and if left out, only `rowCount` is set.\n     * Set `rowCount` to adjust the height of the vertical scroll.\n     * Set `lastRowIndexKnown` to enable / disable searching for more rows.\n     * Use this method if you add or remove rows into the dataset and need to reset the number of rows or put the data back into 'look for data' mode.\n     */\n    GridApi.prototype.setRowCount = function (rowCount, maxRowFound) {\n        if (this.infiniteRowModel) {\n            this.infiniteRowModel.setRowCount(rowCount, maxRowFound);\n        }\n        else {\n            console.warn(\"AG Grid: api.setRowCount is only available for Infinite Row Model.\");\n        }\n    };\n    GridApi.prototype.getVirtualPageState = function () {\n        console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');\n        return this.getCacheBlockState();\n    };\n    GridApi.prototype.getInfinitePageState = function () {\n        console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');\n        return this.getCacheBlockState();\n    };\n    /**\n     * Returns an object representing the state of the cache. This is useful for debugging and understanding how the cache is working.\n     */\n    GridApi.prototype.getCacheBlockState = function () {\n        return this.rowNodeBlockLoader.getBlockState();\n    };\n    GridApi.prototype.checkGridSize = function () {\n        console.warn(\"in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.\");\n    };\n    GridApi.prototype.getFirstRenderedRow = function () {\n        console.warn('in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');\n        return this.getFirstDisplayedRow();\n    };\n    /** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */\n    GridApi.prototype.getFirstDisplayedRow = function () {\n        return this.rowRenderer.getFirstVirtualRenderedRow();\n    };\n    GridApi.prototype.getLastRenderedRow = function () {\n        console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');\n        return this.getLastDisplayedRow();\n    };\n    /** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */\n    GridApi.prototype.getLastDisplayedRow = function () {\n        return this.rowRenderer.getLastVirtualRenderedRow();\n    };\n    /** Returns the displayed `RowNode` at the given `index`. */\n    GridApi.prototype.getDisplayedRowAtIndex = function (index) {\n        return this.rowModel.getRow(index);\n    };\n    /** Returns the total number of displayed rows. */\n    GridApi.prototype.getDisplayedRowCount = function () {\n        return this.rowModel.getRowCount();\n    };\n    /**\n     * Returns `true` when the last page is known.\n     * This will always be `true` if you are using the Client-Side Row Model for pagination.\n     * Returns `false` when the last page is not known; this only happens when using Infinite Row Model.\n     */\n    GridApi.prototype.paginationIsLastPageFound = function () {\n        return this.paginationProxy.isLastPageFound();\n    };\n    /** Returns how many rows are being shown per page. */\n    GridApi.prototype.paginationGetPageSize = function () {\n        return this.paginationProxy.getPageSize();\n    };\n    /** Sets the `paginationPageSize`, then re-paginates the grid so the changes are applied immediately. */\n    GridApi.prototype.paginationSetPageSize = function (size) {\n        this.gridOptionsWrapper.setProperty('paginationPageSize', size);\n    };\n    /** Returns the 0-based index of the page which is showing. */\n    GridApi.prototype.paginationGetCurrentPage = function () {\n        return this.paginationProxy.getCurrentPage();\n    };\n    /** Returns the total number of pages. Returns `null` if `paginationIsLastPageFound() === false`. */\n    GridApi.prototype.paginationGetTotalPages = function () {\n        return this.paginationProxy.getTotalPages();\n    };\n    /** The total number of rows. Returns `null` if `paginationIsLastPageFound() === false`. */\n    GridApi.prototype.paginationGetRowCount = function () {\n        return this.paginationProxy.getMasterRowCount();\n    };\n    /** Navigates to the next page. */\n    GridApi.prototype.paginationGoToNextPage = function () {\n        this.paginationProxy.goToNextPage();\n    };\n    /** Navigates to the previous page. */\n    GridApi.prototype.paginationGoToPreviousPage = function () {\n        this.paginationProxy.goToPreviousPage();\n    };\n    /** Navigates to the first page. */\n    GridApi.prototype.paginationGoToFirstPage = function () {\n        this.paginationProxy.goToFirstPage();\n    };\n    /** Navigates to the last page. */\n    GridApi.prototype.paginationGoToLastPage = function () {\n        this.paginationProxy.goToLastPage();\n    };\n    /** Goes to the specified page. If the page requested doesn't exist, it will go to the last page. */\n    GridApi.prototype.paginationGoToPage = function (page) {\n        this.paginationProxy.goToPage(page);\n    };\n    GridApi.prototype.setRowClass = function (className) {\n        this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_ROW_CLASS, className);\n    };\n    __decorate$18([\n        Optional('immutableService')\n    ], GridApi.prototype, \"immutableService\", void 0);\n    __decorate$18([\n        Optional('csvCreator')\n    ], GridApi.prototype, \"csvCreator\", void 0);\n    __decorate$18([\n        Optional('excelCreator')\n    ], GridApi.prototype, \"excelCreator\", void 0);\n    __decorate$18([\n        Autowired('rowRenderer')\n    ], GridApi.prototype, \"rowRenderer\", void 0);\n    __decorate$18([\n        Autowired('navigationService')\n    ], GridApi.prototype, \"navigationService\", void 0);\n    __decorate$18([\n        Autowired('filterManager')\n    ], GridApi.prototype, \"filterManager\", void 0);\n    __decorate$18([\n        Autowired('columnModel')\n    ], GridApi.prototype, \"columnModel\", void 0);\n    __decorate$18([\n        Autowired('selectionService')\n    ], GridApi.prototype, \"selectionService\", void 0);\n    __decorate$18([\n        Autowired('gridOptionsWrapper')\n    ], GridApi.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$18([\n        Autowired('valueService')\n    ], GridApi.prototype, \"valueService\", void 0);\n    __decorate$18([\n        Autowired('alignedGridsService')\n    ], GridApi.prototype, \"alignedGridsService\", void 0);\n    __decorate$18([\n        Autowired('eventService')\n    ], GridApi.prototype, \"eventService\", void 0);\n    __decorate$18([\n        Autowired('pinnedRowModel')\n    ], GridApi.prototype, \"pinnedRowModel\", void 0);\n    __decorate$18([\n        Autowired('context')\n    ], GridApi.prototype, \"context\", void 0);\n    __decorate$18([\n        Autowired('rowModel')\n    ], GridApi.prototype, \"rowModel\", void 0);\n    __decorate$18([\n        Autowired('sortController')\n    ], GridApi.prototype, \"sortController\", void 0);\n    __decorate$18([\n        Autowired('paginationProxy')\n    ], GridApi.prototype, \"paginationProxy\", void 0);\n    __decorate$18([\n        Autowired('focusService')\n    ], GridApi.prototype, \"focusService\", void 0);\n    __decorate$18([\n        Autowired('dragAndDropService')\n    ], GridApi.prototype, \"dragAndDropService\", void 0);\n    __decorate$18([\n        Optional('rangeService')\n    ], GridApi.prototype, \"rangeService\", void 0);\n    __decorate$18([\n        Optional('clipboardService')\n    ], GridApi.prototype, \"clipboardService\", void 0);\n    __decorate$18([\n        Optional('aggFuncService')\n    ], GridApi.prototype, \"aggFuncService\", void 0);\n    __decorate$18([\n        Autowired('menuFactory')\n    ], GridApi.prototype, \"menuFactory\", void 0);\n    __decorate$18([\n        Optional('contextMenuFactory')\n    ], GridApi.prototype, \"contextMenuFactory\", void 0);\n    __decorate$18([\n        Autowired('valueCache')\n    ], GridApi.prototype, \"valueCache\", void 0);\n    __decorate$18([\n        Autowired('animationFrameService')\n    ], GridApi.prototype, \"animationFrameService\", void 0);\n    __decorate$18([\n        Optional('statusBarService')\n    ], GridApi.prototype, \"statusBarService\", void 0);\n    __decorate$18([\n        Optional('chartService')\n    ], GridApi.prototype, \"chartService\", void 0);\n    __decorate$18([\n        Optional('undoRedoService')\n    ], GridApi.prototype, \"undoRedoService\", void 0);\n    __decorate$18([\n        Optional('rowNodeBlockLoader')\n    ], GridApi.prototype, \"rowNodeBlockLoader\", void 0);\n    __decorate$18([\n        Optional('ssrmTransactionManager')\n    ], GridApi.prototype, \"serverSideTransactionManager\", void 0);\n    __decorate$18([\n        Autowired('ctrlsService')\n    ], GridApi.prototype, \"ctrlsService\", void 0);\n    __decorate$18([\n        Optional('frameworkComponentWrapper')\n    ], GridApi.prototype, \"frameworkComponentWrapper\", void 0);\n    __decorate$18([\n        PostConstruct\n    ], GridApi.prototype, \"init\", null);\n    __decorate$18([\n        PreDestroy\n    ], GridApi.prototype, \"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\", null);\n    GridApi = __decorate$18([\n        Bean('gridApi')\n    ], GridApi);\n    return GridApi;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1l = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$19 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SetLeftFeature = /** @class */ (function (_super) {\n    __extends$1l(SetLeftFeature, _super);\n    function SetLeftFeature(columnOrGroup, eCell, beans, colsSpanning) {\n        var _this = _super.call(this) || this;\n        _this.columnOrGroup = columnOrGroup;\n        _this.eCell = eCell;\n        _this.ariaEl = _this.eCell.querySelector('[role=columnheader]') || _this.eCell;\n        _this.colsSpanning = colsSpanning;\n        _this.beans = beans;\n        return _this;\n    }\n    SetLeftFeature.prototype.setColsSpanning = function (colsSpanning) {\n        this.colsSpanning = colsSpanning;\n        this.onLeftChanged();\n    };\n    SetLeftFeature.prototype.getColumnOrGroup = function () {\n        if (this.beans.gridOptionsWrapper.isEnableRtl() && this.colsSpanning) {\n            return last(this.colsSpanning);\n        }\n        return this.columnOrGroup;\n    };\n    SetLeftFeature.prototype.postConstruct = function () {\n        this.addManagedListener(this.columnOrGroup, Column.EVENT_LEFT_CHANGED, this.onLeftChanged.bind(this));\n        this.setLeftFirstTime();\n        // when in print layout, the left position is also dependent on the width of the pinned sections.\n        // so additionally update left if any column width changes.\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onLeftChanged.bind(this));\n        // setting left has a dependency on print layout\n        this.addManagedListener(this.beans.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onLeftChanged.bind(this));\n    };\n    SetLeftFeature.prototype.setLeftFirstTime = function () {\n        var suppressMoveAnimation = this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation();\n        var oldLeftExists = exists(this.columnOrGroup.getOldLeft());\n        var animateColumnMove = this.beans.columnAnimationService.isActive() && oldLeftExists && !suppressMoveAnimation;\n        if (animateColumnMove) {\n            this.animateInLeft();\n        }\n        else {\n            this.onLeftChanged();\n        }\n    };\n    SetLeftFeature.prototype.animateInLeft = function () {\n        var _this = this;\n        var colOrGroup = this.getColumnOrGroup();\n        var left = colOrGroup.getLeft();\n        var oldLeft = colOrGroup.getOldLeft();\n        var oldActualLeft = this.modifyLeftForPrintLayout(colOrGroup, oldLeft);\n        var actualLeft = this.modifyLeftForPrintLayout(colOrGroup, left);\n        this.setLeft(oldActualLeft);\n        // we must keep track of the left we want to set to, as this would otherwise lead to a race\n        // condition, if the user changed the left value many times in one VM turn, then we want to make\n        // make sure the actualLeft we set in the timeout below (in the next VM turn) is the correct left\n        // position. eg if user changes column position twice, then setLeft() below executes twice in next\n        // VM turn, but only one (the correct one) should get applied.\n        this.actualLeft = actualLeft;\n        this.beans.columnAnimationService.executeNextVMTurn(function () {\n            // test this left value is the latest one to be applied, and if not, do nothing\n            if (_this.actualLeft === actualLeft) {\n                _this.setLeft(actualLeft);\n            }\n        });\n    };\n    SetLeftFeature.prototype.onLeftChanged = function () {\n        var colOrGroup = this.getColumnOrGroup();\n        var left = colOrGroup.getLeft();\n        this.actualLeft = this.modifyLeftForPrintLayout(colOrGroup, left);\n        this.setLeft(this.actualLeft);\n    };\n    SetLeftFeature.prototype.modifyLeftForPrintLayout = function (colOrGroup, leftPosition) {\n        var printLayout = this.beans.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        if (!printLayout) {\n            return leftPosition;\n        }\n        if (colOrGroup.getPinned() === Constants.PINNED_LEFT) {\n            return leftPosition;\n        }\n        var leftWidth = this.beans.columnModel.getDisplayedColumnsLeftWidth();\n        if (colOrGroup.getPinned() === Constants.PINNED_RIGHT) {\n            var bodyWidth = this.beans.columnModel.getBodyContainerWidth();\n            return leftWidth + bodyWidth + leftPosition;\n        }\n        // is in body\n        return leftWidth + leftPosition;\n    };\n    SetLeftFeature.prototype.setLeft = function (value) {\n        // if the value is null, then that means the column is no longer\n        // displayed. there is logic in the rendering to fade these columns\n        // out, so we don't try and change their left positions.\n        if (exists(value)) {\n            this.eCell.style.left = value + \"px\";\n        }\n        var indexColumn;\n        if (this.columnOrGroup instanceof Column) {\n            indexColumn = this.columnOrGroup;\n        }\n        else {\n            var columnGroup = this.columnOrGroup;\n            var children = columnGroup.getLeafColumns();\n            if (!children.length) {\n                return;\n            }\n            if (children.length > 1) {\n                setAriaColSpan(this.ariaEl, children.length);\n            }\n            indexColumn = children[0];\n        }\n        var index = this.beans.columnModel.getAriaColumnIndex(indexColumn);\n        setAriaColIndex(this.ariaEl, index);\n    };\n    __decorate$19([\n        PostConstruct\n    ], SetLeftFeature.prototype, \"postConstruct\", null);\n    return SetLeftFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1m = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HoverFeature = /** @class */ (function (_super) {\n    __extends$1m(HoverFeature, _super);\n    function HoverFeature(columns, element) {\n        var _this = _super.call(this) || this;\n        _this.columns = columns;\n        _this.element = element;\n        return _this;\n    }\n    HoverFeature.prototype.postConstruct = function () {\n        if (this.gridOptionsWrapper.isColumnHoverHighlight()) {\n            this.addMouseHoverListeners();\n        }\n    };\n    HoverFeature.prototype.addMouseHoverListeners = function () {\n        this.addManagedListener(this.element, 'mouseout', this.onMouseOut.bind(this));\n        this.addManagedListener(this.element, 'mouseover', this.onMouseOver.bind(this));\n    };\n    HoverFeature.prototype.onMouseOut = function () {\n        this.columnHoverService.clearMouseOver();\n    };\n    HoverFeature.prototype.onMouseOver = function () {\n        this.columnHoverService.setMouseOver(this.columns);\n    };\n    __decorate$1a([\n        Autowired('columnHoverService')\n    ], HoverFeature.prototype, \"columnHoverService\", void 0);\n    __decorate$1a([\n        PostConstruct\n    ], HoverFeature.prototype, \"postConstruct\", null);\n    return HoverFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1n = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderFilterCellCtrl = /** @class */ (function (_super) {\n    __extends$1n(HeaderFilterCellCtrl, _super);\n    function HeaderFilterCellCtrl(column, parentRowCtrl) {\n        var _this = _super.call(this, column, parentRowCtrl) || this;\n        _this.column = column;\n        return _this;\n    }\n    HeaderFilterCellCtrl.prototype.setComp = function (comp, eGui, eButtonShowMainFilter, eFloatingFilterBody) {\n        _super.prototype.setGui.call(this, eGui);\n        this.comp = comp;\n        this.eButtonShowMainFilter = eButtonShowMainFilter;\n        this.eFloatingFilterBody = eFloatingFilterBody;\n        var colDef = this.column.getColDef();\n        var filterExists = !!colDef.filter || !!colDef.filterFramework;\n        var floatingFilterExists = !!colDef.floatingFilter;\n        this.active = filterExists && floatingFilterExists;\n        this.setupWidth();\n        this.setupLeft();\n        this.setupHover();\n        this.setupFocus();\n        this.setupUserComp();\n        this.setupSyncWithFilter();\n        this.setupUi();\n        this.addManagedListener(this.eButtonShowMainFilter, 'click', this.showParentFilter.bind(this));\n    };\n    HeaderFilterCellCtrl.prototype.setupUi = function () {\n        this.comp.addOrRemoveButtonWrapperCssClass('ag-hidden', !this.active || this.suppressFilterButton);\n        if (!this.active) {\n            return;\n        }\n        this.comp.addOrRemoveBodyCssClass('ag-floating-filter-full-body', this.suppressFilterButton);\n        this.comp.addOrRemoveBodyCssClass('ag-floating-filter-body', !this.suppressFilterButton);\n        var eMenuIcon = createIconNoSpan('filter', this.gridOptionsWrapper, this.column);\n        if (eMenuIcon) {\n            this.eButtonShowMainFilter.appendChild(eMenuIcon);\n        }\n    };\n    HeaderFilterCellCtrl.prototype.setupFocus = function () {\n        this.createManagedBean(new ManagedFocusFeature(this.eGui, {\n            shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),\n            onTabKeyDown: this.onTabKeyDown.bind(this),\n            handleKeyDown: this.handleKeyDown.bind(this),\n            onFocusIn: this.onFocusIn.bind(this)\n        }));\n    };\n    HeaderFilterCellCtrl.prototype.onTabKeyDown = function (e) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeEl = eDocument.activeElement;\n        var wrapperHasFocus = activeEl === this.eGui;\n        if (wrapperHasFocus) {\n            return;\n        }\n        var nextFocusableEl = this.focusService.findNextFocusableElement(this.eGui, null, e.shiftKey);\n        if (nextFocusableEl) {\n            this.beans.headerNavigationService.scrollToColumn(this.column);\n            e.preventDefault();\n            nextFocusableEl.focus();\n            return;\n        }\n        var nextFocusableColumn = this.findNextColumnWithFloatingFilter(e.shiftKey);\n        if (!nextFocusableColumn) {\n            return;\n        }\n        if (this.focusService.focusHeaderPosition({\n            headerPosition: {\n                headerRowIndex: this.getParentRowCtrl().getRowIndex(),\n                column: nextFocusableColumn\n            },\n            event: e\n        })) {\n            e.preventDefault();\n        }\n    };\n    HeaderFilterCellCtrl.prototype.findNextColumnWithFloatingFilter = function (backwards) {\n        var columModel = this.beans.columnModel;\n        var nextCol = this.column;\n        do {\n            nextCol = backwards\n                ? columModel.getDisplayedColBefore(nextCol)\n                : columModel.getDisplayedColAfter(nextCol);\n            if (!nextCol) {\n                break;\n            }\n        } while (!nextCol.getColDef().filter || !nextCol.getColDef().floatingFilter);\n        return nextCol;\n    };\n    HeaderFilterCellCtrl.prototype.handleKeyDown = function (e) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeEl = eDocument.activeElement;\n        var wrapperHasFocus = activeEl === this.eGui;\n        switch (e.key) {\n            case KeyCode.UP:\n            case KeyCode.DOWN:\n                if (!wrapperHasFocus) {\n                    e.preventDefault();\n                }\n            case KeyCode.LEFT:\n            case KeyCode.RIGHT:\n                if (wrapperHasFocus) {\n                    return;\n                }\n                e.stopPropagation();\n            case KeyCode.ENTER:\n                if (wrapperHasFocus) {\n                    if (this.focusService.focusInto(this.eGui)) {\n                        e.preventDefault();\n                    }\n                }\n                break;\n            case KeyCode.ESCAPE:\n                if (!wrapperHasFocus) {\n                    this.eGui.focus();\n                }\n        }\n    };\n    HeaderFilterCellCtrl.prototype.onFocusIn = function (e) {\n        var isRelatedWithin = this.eGui.contains(e.relatedTarget);\n        // when the focus is already within the component,\n        // we default to the browser's behavior\n        if (isRelatedWithin) {\n            return;\n        }\n        var notFromHeaderWrapper = !!e.relatedTarget && !e.relatedTarget.classList.contains('ag-floating-filter');\n        var fromWithinHeader = !!e.relatedTarget && isElementChildOfClass(e.relatedTarget, 'ag-floating-filter');\n        if (notFromHeaderWrapper && fromWithinHeader && e.target === this.eGui) {\n            var lastFocusEvent = this.lastFocusEvent;\n            var fromTab = !!(lastFocusEvent && lastFocusEvent.key === KeyCode.TAB);\n            if (lastFocusEvent && fromTab) {\n                var shouldFocusLast = lastFocusEvent.shiftKey;\n                this.focusService.focusInto(this.eGui, shouldFocusLast);\n            }\n        }\n        var rowIndex = this.getRowIndex();\n        this.beans.focusService.setFocusedHeader(rowIndex, this.column);\n    };\n    HeaderFilterCellCtrl.prototype.setupHover = function () {\n        var _this = this;\n        this.createManagedBean(new HoverFeature([this.column], this.eGui));\n        var listener = function () {\n            if (!_this.gridOptionsWrapper.isColumnHoverHighlight()) {\n                return;\n            }\n            var hovered = _this.columnHoverService.isHovered(_this.column);\n            _this.comp.addOrRemoveCssClass('ag-column-hover', hovered);\n        };\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, listener);\n        listener();\n    };\n    HeaderFilterCellCtrl.prototype.setupLeft = function () {\n        var setLeftFeature = new SetLeftFeature(this.column, this.eGui, this.beans);\n        this.createManagedBean(setLeftFeature);\n    };\n    HeaderFilterCellCtrl.prototype.setupUserComp = function () {\n        var _this = this;\n        if (!this.active) {\n            return;\n        }\n        var colDef = this.column.getColDef();\n        var filterParams = this.filterManager.createFilterParams(this.column, colDef);\n        var finalFilterParams = this.userComponentFactory.mergeParamsWithApplicationProvidedParams(colDef, FilterComponent, filterParams);\n        var defaultFloatingFilterType = this.userComponentFactory.getDefaultFloatingFilterType(colDef);\n        if (defaultFloatingFilterType == null) {\n            defaultFloatingFilterType = 'agReadOnlyFloatingFilter';\n        }\n        var params = {\n            column: this.column,\n            filterParams: finalFilterParams,\n            currentParentModel: function () { return _this.currentParentModel(); },\n            parentFilterInstance: function (cb) { return _this.parentFilterInstance(cb); },\n            showParentFilter: function () { return _this.showParentFilter(); },\n            suppressFilterButton: false // This one might be overridden from the colDef\n        };\n        // this is unusual - we need a params value OUTSIDE the component the params are for.\n        // the params are for the floating filter component, but this property is actually for the wrapper.\n        this.suppressFilterButton = colDef.floatingFilterComponentParams ? !!colDef.floatingFilterComponentParams.suppressFilterButton : false;\n        var compDetails = this.userComponentFactory.getFloatingFilterCompDetails(colDef, params, defaultFloatingFilterType);\n        if (compDetails) {\n            this.comp.setCompDetails(compDetails);\n        }\n    };\n    HeaderFilterCellCtrl.prototype.currentParentModel = function () {\n        var filterComponent = this.getFilterComponent(false);\n        return filterComponent ? filterComponent.resolveNow(null, function (filter) { return filter && filter.getModel(); }) : null;\n    };\n    HeaderFilterCellCtrl.prototype.getFilterComponent = function (createIfDoesNotExist) {\n        if (createIfDoesNotExist === void 0) { createIfDoesNotExist = true; }\n        return this.filterManager.getFilterComponent(this.column, 'NO_UI', createIfDoesNotExist);\n    };\n    HeaderFilterCellCtrl.prototype.parentFilterInstance = function (callback) {\n        var filterComponent = this.getFilterComponent();\n        if (filterComponent == null) {\n            return;\n        }\n        filterComponent.then(function (instance) {\n            callback(unwrapUserComp(instance));\n        });\n    };\n    HeaderFilterCellCtrl.prototype.showParentFilter = function () {\n        var eventSource = this.suppressFilterButton ? this.eFloatingFilterBody : this.eButtonShowMainFilter;\n        this.menuFactory.showMenuAfterButtonClick(this.column, eventSource, 'floatingFilter', 'filterMenuTab', ['filterMenuTab']);\n    };\n    HeaderFilterCellCtrl.prototype.setupSyncWithFilter = function () {\n        var _this = this;\n        if (!this.active) {\n            return;\n        }\n        var syncWithFilter = function (filterChangedEvent) {\n            var compPromise = _this.comp.getFloatingFilterComp();\n            if (!compPromise) {\n                return;\n            }\n            var parentModel = _this.currentParentModel();\n            compPromise.then(function (comp) {\n                if (comp) {\n                    comp.onParentModelChanged(parentModel, filterChangedEvent);\n                }\n            });\n        };\n        this.addManagedListener(this.column, Column.EVENT_FILTER_CHANGED, syncWithFilter);\n        if (this.filterManager.isFilterActive(this.column)) {\n            syncWithFilter(null);\n        }\n    };\n    HeaderFilterCellCtrl.prototype.setupWidth = function () {\n        var _this = this;\n        var listener = function () {\n            var width = _this.column.getActualWidth() + \"px\";\n            _this.comp.setWidth(width);\n        };\n        this.addManagedListener(this.column, Column.EVENT_WIDTH_CHANGED, listener);\n        listener();\n    };\n    __decorate$1b([\n        Autowired('userComponentFactory')\n    ], HeaderFilterCellCtrl.prototype, \"userComponentFactory\", void 0);\n    __decorate$1b([\n        Autowired('filterManager')\n    ], HeaderFilterCellCtrl.prototype, \"filterManager\", void 0);\n    __decorate$1b([\n        Autowired('columnHoverService')\n    ], HeaderFilterCellCtrl.prototype, \"columnHoverService\", void 0);\n    __decorate$1b([\n        Autowired('gridApi')\n    ], HeaderFilterCellCtrl.prototype, \"gridApi\", void 0);\n    __decorate$1b([\n        Autowired('menuFactory')\n    ], HeaderFilterCellCtrl.prototype, \"menuFactory\", void 0);\n    __decorate$1b([\n        Autowired('beans')\n    ], HeaderFilterCellCtrl.prototype, \"beans\", void 0);\n    return HeaderFilterCellCtrl;\n}(AbstractHeaderCellCtrl));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1o = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ResizeFeature = /** @class */ (function (_super) {\n    __extends$1o(ResizeFeature, _super);\n    function ResizeFeature(pinned, column, eResize, comp, ctrl) {\n        var _this = _super.call(this) || this;\n        _this.pinned = pinned;\n        _this.column = column;\n        _this.eResize = eResize;\n        _this.comp = comp;\n        _this.ctrl = ctrl;\n        return _this;\n    }\n    ResizeFeature.prototype.postConstruct = function () {\n        var _this = this;\n        var colDef = this.column.getColDef();\n        var destroyResizeFuncs = [];\n        var canResize;\n        var canAutosize;\n        var addResize = function () {\n            setDisplayed(_this.eResize, canResize);\n            if (!canResize) {\n                return;\n            }\n            var finishedWithResizeFunc = _this.horizontalResizeService.addResizeBar({\n                eResizeBar: _this.eResize,\n                onResizeStart: _this.onResizeStart.bind(_this),\n                onResizing: _this.onResizing.bind(_this, false),\n                onResizeEnd: _this.onResizing.bind(_this, true)\n            });\n            destroyResizeFuncs.push(finishedWithResizeFunc);\n            if (canAutosize) {\n                var skipHeaderOnAutoSize_1 = _this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n                var autoSizeColListener_1 = function () {\n                    _this.columnModel.autoSizeColumn(_this.column, skipHeaderOnAutoSize_1, \"uiColumnResized\");\n                };\n                _this.eResize.addEventListener('dblclick', autoSizeColListener_1);\n                var touchListener_1 = new TouchListener(_this.eResize);\n                touchListener_1.addEventListener(TouchListener.EVENT_DOUBLE_TAP, autoSizeColListener_1);\n                _this.addDestroyFunc(function () {\n                    _this.eResize.removeEventListener('dblclick', autoSizeColListener_1);\n                    touchListener_1.removeEventListener(TouchListener.EVENT_DOUBLE_TAP, autoSizeColListener_1);\n                    touchListener_1.destroy();\n                });\n            }\n        };\n        var removeResize = function () {\n            destroyResizeFuncs.forEach(function (f) { return f(); });\n            destroyResizeFuncs.length = 0;\n        };\n        var refresh = function () {\n            var resize = _this.column.isResizable();\n            var autoSize = !_this.gridOptionsWrapper.isSuppressAutoSize() && !colDef.suppressAutoSize;\n            var propertyChange = resize !== canResize || autoSize !== canAutosize;\n            if (propertyChange) {\n                canResize = resize;\n                canAutosize = autoSize;\n                removeResize();\n                addResize();\n            }\n        };\n        refresh();\n        this.addDestroyFunc(removeResize);\n        this.ctrl.addRefreshFunction(refresh);\n    };\n    ResizeFeature.prototype.onResizing = function (finished, resizeAmount) {\n        var resizeAmountNormalised = this.normaliseResizeAmount(resizeAmount);\n        var columnWidths = [{ key: this.column, newWidth: this.resizeStartWidth + resizeAmountNormalised }];\n        this.columnModel.setColumnWidths(columnWidths, this.resizeWithShiftKey, finished, \"uiColumnDragged\");\n        if (finished) {\n            this.comp.addOrRemoveCssClass('ag-column-resizing', false);\n        }\n    };\n    ResizeFeature.prototype.onResizeStart = function (shiftKey) {\n        this.resizeStartWidth = this.column.getActualWidth();\n        this.resizeWithShiftKey = shiftKey;\n        this.comp.addOrRemoveCssClass('ag-column-resizing', true);\n    };\n    // optionally inverts the drag, depending on pinned and RTL\n    // note - this method is duplicated in RenderedHeaderGroupCell - should refactor out?\n    ResizeFeature.prototype.normaliseResizeAmount = function (dragChange) {\n        var result = dragChange;\n        var notPinningLeft = this.pinned !== Constants.PINNED_LEFT;\n        var pinningRight = this.pinned === Constants.PINNED_RIGHT;\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            // for RTL, dragging left makes the col bigger, except when pinning left\n            if (notPinningLeft) {\n                result *= -1;\n            }\n        }\n        else {\n            // for LTR (ie normal), dragging left makes the col smaller, except when pinning right\n            if (pinningRight) {\n                result *= -1;\n            }\n        }\n        return result;\n    };\n    __decorate$1c([\n        Autowired('horizontalResizeService')\n    ], ResizeFeature.prototype, \"horizontalResizeService\", void 0);\n    __decorate$1c([\n        Autowired('columnModel')\n    ], ResizeFeature.prototype, \"columnModel\", void 0);\n    __decorate$1c([\n        PostConstruct\n    ], ResizeFeature.prototype, \"postConstruct\", null);\n    return ResizeFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1p = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgCheckbox = /** @class */ (function (_super) {\n    __extends$1p(AgCheckbox, _super);\n    function AgCheckbox(config, className, inputType) {\n        if (className === void 0) { className = 'ag-checkbox'; }\n        if (inputType === void 0) { inputType = 'checkbox'; }\n        var _this = _super.call(this, config, className, inputType) || this;\n        _this.labelAlignment = 'right';\n        _this.selected = false;\n        _this.readOnly = false;\n        _this.passive = false;\n        return _this;\n    }\n    AgCheckbox.prototype.addInputListeners = function () {\n        this.addManagedListener(this.eInput, 'click', this.onCheckboxClick.bind(this));\n        this.addManagedListener(this.eLabel, 'click', this.toggle.bind(this));\n    };\n    AgCheckbox.prototype.getNextValue = function () {\n        return this.selected === undefined ? true : !this.selected;\n    };\n    AgCheckbox.prototype.setPassive = function (passive) {\n        this.passive = passive;\n    };\n    AgCheckbox.prototype.isReadOnly = function () {\n        return this.readOnly;\n    };\n    AgCheckbox.prototype.setReadOnly = function (readOnly) {\n        this.eWrapper.classList.toggle('ag-disabled', readOnly);\n        this.eInput.disabled = readOnly;\n        this.readOnly = readOnly;\n    };\n    AgCheckbox.prototype.setDisabled = function (disabled) {\n        this.eWrapper.classList.toggle('ag-disabled', disabled);\n        return _super.prototype.setDisabled.call(this, disabled);\n    };\n    AgCheckbox.prototype.toggle = function () {\n        if (this.eInput.disabled) {\n            return;\n        }\n        var previousValue = this.isSelected();\n        var nextValue = this.getNextValue();\n        if (this.passive) {\n            this.dispatchChange(nextValue, previousValue);\n        }\n        else {\n            this.setValue(nextValue);\n        }\n    };\n    AgCheckbox.prototype.getValue = function () {\n        return this.isSelected();\n    };\n    AgCheckbox.prototype.setValue = function (value, silent) {\n        this.refreshSelectedClass(value);\n        this.setSelected(value, silent);\n        return this;\n    };\n    AgCheckbox.prototype.setName = function (name) {\n        var input = this.getInputElement();\n        input.name = name;\n        return this;\n    };\n    AgCheckbox.prototype.isSelected = function () {\n        return this.selected;\n    };\n    AgCheckbox.prototype.setSelected = function (selected, silent) {\n        if (this.isSelected() === selected) {\n            return;\n        }\n        this.previousValue = this.isSelected();\n        selected = this.selected = typeof selected === 'boolean' ? selected : undefined;\n        this.eInput.checked = selected;\n        this.eInput.indeterminate = selected === undefined;\n        if (!silent) {\n            this.dispatchChange(this.selected, this.previousValue);\n        }\n    };\n    AgCheckbox.prototype.dispatchChange = function (selected, previousValue, event) {\n        this.dispatchEvent({ type: AgCheckbox.EVENT_CHANGED, selected: selected, previousValue: previousValue, event: event });\n        var input = this.getInputElement();\n        var checkboxChangedEvent = {\n            type: Events.EVENT_CHECKBOX_CHANGED,\n            id: input.id,\n            name: input.name,\n            selected: selected,\n            previousValue: previousValue\n        };\n        this.eventService.dispatchEvent(checkboxChangedEvent);\n    };\n    AgCheckbox.prototype.onCheckboxClick = function (e) {\n        if (this.passive || this.eInput.disabled) {\n            return;\n        }\n        var previousValue = this.isSelected();\n        var selected = this.selected = e.target.checked;\n        this.refreshSelectedClass(selected);\n        this.dispatchChange(selected, previousValue, e);\n    };\n    AgCheckbox.prototype.refreshSelectedClass = function (value) {\n        this.eWrapper.classList.toggle('ag-checked', value === true);\n        this.eWrapper.classList.toggle('ag-indeterminate', value == null);\n    };\n    return AgCheckbox;\n}(AgAbstractInputField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SelectAllFeature = /** @class */ (function (_super) {\n    __extends$1q(SelectAllFeature, _super);\n    function SelectAllFeature(column) {\n        var _this = _super.call(this) || this;\n        _this.cbSelectAllVisible = false;\n        _this.processingEventFromCheckbox = false;\n        _this.column = column;\n        var colDef = column.getColDef();\n        _this.filteredOnly = colDef ? !!colDef.headerCheckboxSelectionFilteredOnly : false;\n        return _this;\n    }\n    SelectAllFeature.prototype.onSpaceKeyPressed = function (e) {\n        var checkbox = this.cbSelectAll;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        if (checkbox.isDisplayed() && !checkbox.getGui().contains(eDocument.activeElement)) {\n            e.preventDefault();\n            checkbox.setValue(!checkbox.getValue());\n        }\n    };\n    SelectAllFeature.prototype.getCheckboxGui = function () {\n        return this.cbSelectAll.getGui();\n    };\n    SelectAllFeature.prototype.setComp = function (ctrl) {\n        this.headerCellCtrl = ctrl;\n        this.cbSelectAll = this.createManagedBean(new AgCheckbox());\n        this.cbSelectAll.addCssClass('ag-header-select-all');\n        setAriaRole(this.cbSelectAll.getGui(), 'presentation');\n        this.showOrHideSelectAll();\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.showOrHideSelectAll.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.showOrHideSelectAll.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_SELECTION_CHANGED, this.onSelectionChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onModelChanged.bind(this));\n        this.addManagedListener(this.cbSelectAll, AgCheckbox.EVENT_CHANGED, this.onCbSelectAll.bind(this));\n        this.cbSelectAll.getInputElement().setAttribute('tabindex', '-1');\n        this.refreshSelectAllLabel();\n    };\n    SelectAllFeature.prototype.showOrHideSelectAll = function () {\n        this.cbSelectAllVisible = this.isCheckboxSelection();\n        this.cbSelectAll.setDisplayed(this.cbSelectAllVisible);\n        if (this.cbSelectAllVisible) {\n            // in case user is trying this feature with the wrong model type\n            this.checkRightRowModelType();\n            // make sure checkbox is showing the right state\n            this.updateStateOfCheckbox();\n        }\n        this.refreshSelectAllLabel();\n    };\n    SelectAllFeature.prototype.onModelChanged = function () {\n        if (!this.cbSelectAllVisible) {\n            return;\n        }\n        this.updateStateOfCheckbox();\n    };\n    SelectAllFeature.prototype.onSelectionChanged = function () {\n        if (!this.cbSelectAllVisible) {\n            return;\n        }\n        this.updateStateOfCheckbox();\n    };\n    SelectAllFeature.prototype.getNextCheckboxState = function (selectionCount) {\n        // if no rows, always have it unselected\n        if (selectionCount.selected === 0 && selectionCount.notSelected === 0) {\n            return false;\n        }\n        // if mix of selected and unselected, this is the tri-state\n        if (selectionCount.selected > 0 && selectionCount.notSelected > 0) {\n            return null;\n        }\n        // only selected\n        if (selectionCount.selected > 0) {\n            return true;\n        }\n        // nothing selected\n        return false;\n    };\n    SelectAllFeature.prototype.updateStateOfCheckbox = function () {\n        if (this.processingEventFromCheckbox) {\n            return;\n        }\n        this.processingEventFromCheckbox = true;\n        var selectionCount = this.getSelectionCount();\n        var allSelected = this.getNextCheckboxState(selectionCount);\n        this.cbSelectAll.setValue(allSelected);\n        this.refreshSelectAllLabel();\n        this.processingEventFromCheckbox = false;\n    };\n    SelectAllFeature.prototype.refreshSelectAllLabel = function () {\n        if (!this.cbSelectAllVisible) {\n            this.headerCellCtrl.setAriaDescriptionProperty('selectAll', null);\n        }\n        else {\n            var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n            var checked = this.cbSelectAll.getValue();\n            var ariaStatus = checked ? translate('ariaChecked', 'checked') : translate('ariaUnchecked', 'unchecked');\n            var ariaLabel = translate('ariaRowSelectAll', 'Press Space to toggle all rows selection');\n            this.headerCellCtrl.setAriaDescriptionProperty('selectAll', ariaLabel + \" (\" + ariaStatus + \")\");\n        }\n        this.headerCellCtrl.refreshAriaDescription();\n    };\n    SelectAllFeature.prototype.getSelectionCount = function () {\n        var _this = this;\n        var selectedCount = 0;\n        var notSelectedCount = 0;\n        var callback = function (node) {\n            if (_this.gridOptionsWrapper.isGroupSelectsChildren() && node.group) {\n                return;\n            }\n            if (node.isSelected()) {\n                selectedCount++;\n            }\n            else if (!node.selectable) ;\n            else {\n                notSelectedCount++;\n            }\n        };\n        if (this.filteredOnly) {\n            this.gridApi.forEachNodeAfterFilter(callback);\n        }\n        else {\n            this.gridApi.forEachNode(callback);\n        }\n        return {\n            notSelected: notSelectedCount,\n            selected: selectedCount\n        };\n    };\n    SelectAllFeature.prototype.checkRightRowModelType = function () {\n        var rowModelType = this.rowModel.getType();\n        var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n        if (!rowModelMatches) {\n            console.warn(\"AG Grid: selectAllCheckbox is only available if using normal row model, you are using \" + rowModelType);\n        }\n    };\n    SelectAllFeature.prototype.onCbSelectAll = function () {\n        if (this.processingEventFromCheckbox) {\n            return;\n        }\n        if (!this.cbSelectAllVisible) {\n            return;\n        }\n        var value = this.cbSelectAll.getValue();\n        if (value) {\n            this.selectionService.selectAllRowNodes(this.filteredOnly);\n        }\n        else {\n            this.selectionService.deselectAllRowNodes(this.filteredOnly);\n        }\n    };\n    SelectAllFeature.prototype.isCheckboxSelection = function () {\n        var result = this.column.getColDef().headerCheckboxSelection;\n        if (typeof result === 'function') {\n            var func = result;\n            var params = {\n                column: this.column,\n                colDef: this.column.getColDef(),\n                columnApi: this.columnApi,\n                api: this.gridApi,\n                context: this.gridOptionsWrapper.getContext()\n            };\n            result = func(params);\n        }\n        if (result) {\n            if (this.gridOptionsWrapper.isRowModelServerSide()) {\n                console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');\n                return false;\n            }\n            if (this.gridOptionsWrapper.isRowModelInfinite()) {\n                console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');\n                return false;\n            }\n            if (this.gridOptionsWrapper.isRowModelViewport()) {\n                console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');\n                return false;\n            }\n            // otherwise the row model is compatible, so return true\n            return true;\n        }\n        return false;\n    };\n    __decorate$1d([\n        Autowired('gridApi')\n    ], SelectAllFeature.prototype, \"gridApi\", void 0);\n    __decorate$1d([\n        Autowired('columnApi')\n    ], SelectAllFeature.prototype, \"columnApi\", void 0);\n    __decorate$1d([\n        Autowired('rowModel')\n    ], SelectAllFeature.prototype, \"rowModel\", void 0);\n    __decorate$1d([\n        Autowired('selectionService')\n    ], SelectAllFeature.prototype, \"selectionService\", void 0);\n    return SelectAllFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1r = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderCellCtrl = /** @class */ (function (_super) {\n    __extends$1r(HeaderCellCtrl, _super);\n    function HeaderCellCtrl(column, parentRowCtrl) {\n        var _this = _super.call(this, column, parentRowCtrl) || this;\n        _this.refreshFunctions = [];\n        _this.userHeaderClasses = new Set();\n        _this.ariaDescriptionProperties = new Map();\n        _this.column = column;\n        return _this;\n    }\n    HeaderCellCtrl.prototype.setComp = function (comp, eGui, eResize) {\n        var _this = this;\n        _super.prototype.setGui.call(this, eGui);\n        this.comp = comp;\n        this.colDefVersion = this.columnModel.getColDefVersion();\n        this.updateState();\n        this.setupWidth();\n        this.setupMovingCss();\n        this.setupMenuClass();\n        this.setupSortableClass();\n        this.addColumnHoverListener();\n        this.setupFilterCss();\n        this.setupColId();\n        this.setupClassesFromColDef();\n        this.setupTooltip();\n        this.addActiveHeaderMouseListeners();\n        this.setupSelectAll();\n        this.setupUserComp();\n        this.refreshAria();\n        this.createManagedBean(new ResizeFeature(this.getPinned(), this.column, eResize, comp, this));\n        this.createManagedBean(new HoverFeature([this.column], eGui));\n        this.createManagedBean(new SetLeftFeature(this.column, eGui, this.beans));\n        this.createManagedBean(new ManagedFocusFeature(eGui, {\n            shouldStopEventPropagation: function (e) { return _this.shouldStopEventPropagation(e); },\n            onTabKeyDown: function () { return null; },\n            handleKeyDown: this.handleKeyDown.bind(this),\n            onFocusIn: this.onFocusIn.bind(this),\n            onFocusOut: this.onFocusOut.bind(this)\n        }));\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onNewColumnsLoaded.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.onColumnValueChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onColumnRowGroupChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.onColumnPivotChanged.bind(this));\n    };\n    HeaderCellCtrl.prototype.setupUserComp = function () {\n        var compDetails = this.lookupUserCompDetails();\n        this.setCompDetails(compDetails);\n    };\n    HeaderCellCtrl.prototype.setCompDetails = function (compDetails) {\n        this.userCompDetails = compDetails;\n        this.comp.setUserCompDetails(compDetails);\n    };\n    HeaderCellCtrl.prototype.lookupUserCompDetails = function () {\n        var params = this.createParams();\n        var colDef = this.column.getColDef();\n        return this.userComponentFactory.getHeaderCompDetails(colDef, params);\n    };\n    HeaderCellCtrl.prototype.createParams = function () {\n        var _this = this;\n        var colDef = this.column.getColDef();\n        var params = {\n            column: this.column,\n            displayName: this.displayName,\n            enableSorting: colDef.sortable,\n            enableMenu: this.menuEnabled,\n            showColumnMenu: function (source) {\n                _this.gridApi.showColumnMenuAfterButtonClick(_this.column, source);\n            },\n            progressSort: function (multiSort) {\n                _this.sortController.progressSort(_this.column, !!multiSort, \"uiColumnSorted\");\n            },\n            setSort: function (sort, multiSort) {\n                _this.sortController.setSortForColumn(_this.column, sort, !!multiSort, \"uiColumnSorted\");\n            },\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            context: this.gridOptionsWrapper.getContext(),\n            eGridHeader: this.getGui()\n        };\n        return params;\n    };\n    HeaderCellCtrl.prototype.setupSelectAll = function () {\n        this.selectAllFeature = this.createManagedBean(new SelectAllFeature(this.column));\n        this.selectAllFeature.setComp(this);\n    };\n    HeaderCellCtrl.prototype.getSelectAllGui = function () {\n        return this.selectAllFeature.getCheckboxGui();\n    };\n    HeaderCellCtrl.prototype.handleKeyDown = function (e) {\n        if (e.key === KeyCode.SPACE) {\n            this.selectAllFeature.onSpaceKeyPressed(e);\n        }\n        if (e.key === KeyCode.ENTER) {\n            this.onEnterKeyPressed(e);\n        }\n    };\n    HeaderCellCtrl.prototype.onEnterKeyPressed = function (e) {\n        /// THIS IS BAD - we are assuming the header is not a user provided comp\n        var headerComp = this.comp.getUserCompInstance();\n        if (!headerComp) {\n            return;\n        }\n        if (e.ctrlKey || e.metaKey) {\n            if (this.menuEnabled && headerComp.showMenu) {\n                e.preventDefault();\n                headerComp.showMenu();\n            }\n        }\n        else if (this.sortable) {\n            var multiSort = e.shiftKey;\n            this.sortController.progressSort(this.column, multiSort, \"uiColumnSorted\");\n        }\n    };\n    HeaderCellCtrl.prototype.isMenuEnabled = function () {\n        return this.menuEnabled;\n    };\n    HeaderCellCtrl.prototype.onFocusIn = function (e) {\n        if (!this.getGui().contains(e.relatedTarget)) {\n            var rowIndex = this.getRowIndex();\n            this.focusService.setFocusedHeader(rowIndex, this.column);\n        }\n        this.setActiveHeader(true);\n    };\n    HeaderCellCtrl.prototype.onFocusOut = function (e) {\n        if (this.getGui().contains(e.relatedTarget)) {\n            return;\n        }\n        this.setActiveHeader(false);\n    };\n    HeaderCellCtrl.prototype.setupTooltip = function () {\n        var _this = this;\n        var tooltipCtrl = {\n            getColumn: function () { return _this.column; },\n            getColDef: function () { return _this.column.getColDef(); },\n            getGui: function () { return _this.eGui; },\n            getLocation: function () { return 'header'; },\n            getTooltipValue: function () {\n                var res = _this.column.getColDef().headerTooltip;\n                return res;\n            },\n        };\n        var tooltipFeature = this.createManagedBean(new TooltipFeature(tooltipCtrl, this.beans));\n        tooltipFeature.setComp(this.comp);\n        this.refreshFunctions.push(function () { return tooltipFeature.refreshToolTip(); });\n    };\n    HeaderCellCtrl.prototype.setupClassesFromColDef = function () {\n        var _this = this;\n        var refreshHeaderClasses = function () {\n            var colDef = _this.column.getColDef();\n            var goa = _this.gridOptionsWrapper;\n            var classes = CssClassApplier.getHeaderClassesFromColDef(colDef, goa, _this.column, null);\n            var oldClasses = _this.userHeaderClasses;\n            _this.userHeaderClasses = new Set(classes);\n            classes.forEach(function (c) {\n                if (oldClasses.has(c)) {\n                    // class already added, no need to apply it, but remove from old set\n                    oldClasses.delete(c);\n                }\n                else {\n                    // class new since last time, so apply it\n                    _this.comp.addOrRemoveCssClass(c, true);\n                }\n            });\n            // now old set only has classes that were applied last time, but not this time, so remove them\n            oldClasses.forEach(function (c) { return _this.comp.addOrRemoveCssClass(c, false); });\n        };\n        this.refreshFunctions.push(refreshHeaderClasses);\n        refreshHeaderClasses();\n    };\n    HeaderCellCtrl.prototype.setDragSource = function (eSource) {\n        var _this = this;\n        this.dragSourceElement = eSource;\n        this.removeDragSource();\n        if (!eSource) {\n            return;\n        }\n        if (!this.draggable) {\n            return;\n        }\n        this.moveDragSource = {\n            type: exports.DragSourceType.HeaderCell,\n            eElement: eSource,\n            defaultIconName: DragAndDropService.ICON_HIDE,\n            getDragItem: function () { return _this.createDragItem(); },\n            dragItemName: this.displayName,\n            onDragStarted: function () { return _this.column.setMoving(true, \"uiColumnMoved\"); },\n            onDragStopped: function () { return _this.column.setMoving(false, \"uiColumnMoved\"); }\n        };\n        this.dragAndDropService.addDragSource(this.moveDragSource, true);\n    };\n    HeaderCellCtrl.prototype.createDragItem = function () {\n        var visibleState = {};\n        visibleState[this.column.getId()] = this.column.isVisible();\n        return {\n            columns: [this.column],\n            visibleState: visibleState\n        };\n    };\n    HeaderCellCtrl.prototype.removeDragSource = function () {\n        if (this.moveDragSource) {\n            this.dragAndDropService.removeDragSource(this.moveDragSource);\n            this.moveDragSource = undefined;\n        }\n    };\n    HeaderCellCtrl.prototype.onNewColumnsLoaded = function () {\n        var colDefVersionNow = this.columnModel.getColDefVersion();\n        if (colDefVersionNow != this.colDefVersion) {\n            this.colDefVersion = colDefVersionNow;\n            this.refresh();\n        }\n    };\n    HeaderCellCtrl.prototype.updateState = function () {\n        var colDef = this.column.getColDef();\n        this.menuEnabled = this.menuFactory.isMenuEnabled(this.column) && !colDef.suppressMenu;\n        this.sortable = colDef.sortable;\n        this.displayName = this.calculateDisplayName();\n        this.draggable = this.workOutDraggable();\n    };\n    HeaderCellCtrl.prototype.addRefreshFunction = function (func) {\n        this.refreshFunctions.push(func);\n    };\n    HeaderCellCtrl.prototype.refresh = function () {\n        this.updateState();\n        this.refreshHeaderComp();\n        this.refreshAria();\n        this.refreshFunctions.forEach(function (f) { return f(); });\n    };\n    HeaderCellCtrl.prototype.refreshHeaderComp = function () {\n        var newCompDetails = this.lookupUserCompDetails();\n        var compInstance = this.comp.getUserCompInstance();\n        // only try refresh if old comp exists adn it is the correct type\n        var attemptRefresh = compInstance != null && this.userCompDetails.componentClass == newCompDetails.componentClass;\n        var headerCompRefreshed = attemptRefresh ? this.attemptHeaderCompRefresh(newCompDetails.params) : false;\n        if (headerCompRefreshed) {\n            // we do this as a refresh happens after colDefs change, and it's possible the column has had it's\n            // draggable property toggled. no need to call this if not refreshing, as setDragSource is done\n            // as part of appendHeaderComp\n            this.setDragSource(this.dragSourceElement);\n        }\n        else {\n            this.setCompDetails(newCompDetails);\n        }\n    };\n    HeaderCellCtrl.prototype.attemptHeaderCompRefresh = function (params) {\n        var headerComp = this.comp.getUserCompInstance();\n        if (!headerComp) {\n            return false;\n        }\n        // if no refresh method, then we want to replace the headerComp\n        if (!headerComp.refresh) {\n            return false;\n        }\n        var res = headerComp.refresh(params);\n        return res;\n    };\n    HeaderCellCtrl.prototype.calculateDisplayName = function () {\n        return this.columnModel.getDisplayNameForColumn(this.column, 'header', true);\n    };\n    HeaderCellCtrl.prototype.checkDisplayName = function () {\n        // display name can change if aggFunc different, eg sum(Gold) is now max(Gold)\n        if (this.displayName !== this.calculateDisplayName()) {\n            this.refresh();\n        }\n    };\n    HeaderCellCtrl.prototype.workOutDraggable = function () {\n        var colDef = this.column.getColDef();\n        var isSuppressMovableColumns = this.gridOptionsWrapper.isSuppressMovableColumns();\n        var colCanMove = !isSuppressMovableColumns && !colDef.suppressMovable && !colDef.lockPosition;\n        // we should still be allowed drag the column, even if it can't be moved, if the column\n        // can be dragged to a rowGroup or pivot drop zone\n        return !!colCanMove || !!colDef.enableRowGroup || !!colDef.enablePivot;\n    };\n    HeaderCellCtrl.prototype.onColumnRowGroupChanged = function () {\n        this.checkDisplayName();\n    };\n    HeaderCellCtrl.prototype.onColumnPivotChanged = function () {\n        this.checkDisplayName();\n    };\n    HeaderCellCtrl.prototype.onColumnValueChanged = function () {\n        this.checkDisplayName();\n    };\n    HeaderCellCtrl.prototype.setupWidth = function () {\n        var _this = this;\n        var listener = function () {\n            _this.comp.setWidth(_this.column.getActualWidth() + 'px');\n        };\n        this.addManagedListener(this.column, Column.EVENT_WIDTH_CHANGED, listener);\n        listener();\n    };\n    HeaderCellCtrl.prototype.setupMovingCss = function () {\n        var _this = this;\n        var listener = function () {\n            // this is what makes the header go dark when it is been moved (gives impression to\n            // user that the column was picked up).\n            _this.comp.addOrRemoveCssClass('ag-header-cell-moving', _this.column.isMoving());\n        };\n        this.addManagedListener(this.column, Column.EVENT_MOVING_CHANGED, listener);\n        listener();\n    };\n    HeaderCellCtrl.prototype.setupMenuClass = function () {\n        var _this = this;\n        var listener = function () {\n            _this.comp.addOrRemoveCssClass('ag-column-menu-visible', _this.column.isMenuVisible());\n        };\n        this.addManagedListener(this.column, Column.EVENT_MENU_VISIBLE_CHANGED, listener);\n        listener();\n    };\n    HeaderCellCtrl.prototype.setupSortableClass = function () {\n        var _this = this;\n        var updateSortableCssClass = function () {\n            _this.comp.addOrRemoveCssClass('ag-header-cell-sortable', !!_this.sortable);\n        };\n        updateSortableCssClass();\n        this.addRefreshFunction(updateSortableCssClass);\n        this.addManagedListener(this.column, Column.EVENT_SORT_CHANGED, this.refreshAriaSort.bind(this));\n    };\n    HeaderCellCtrl.prototype.refreshAriaSort = function () {\n        if (this.sortable) {\n            var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n            this.comp.setAriaSort(getAriaSortState(this.column));\n            this.setAriaDescriptionProperty('sort', translate('ariaSortableColumn', 'Press ENTER to sort.'));\n        }\n        else {\n            this.comp.setAriaSort();\n            this.setAriaDescriptionProperty('sort', null);\n        }\n    };\n    HeaderCellCtrl.prototype.refreshAriaMenu = function () {\n        if (this.menuEnabled) {\n            var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n            this.setAriaDescriptionProperty('menu', translate('ariaMenuColumn', 'Press CTRL ENTER to open column menu.'));\n        }\n        else {\n            this.setAriaDescriptionProperty('menu', null);\n        }\n    };\n    HeaderCellCtrl.prototype.setAriaDescriptionProperty = function (property, value) {\n        if (value != null) {\n            this.ariaDescriptionProperties.set(property, value);\n        }\n        else {\n            this.ariaDescriptionProperties.delete(property);\n        }\n    };\n    HeaderCellCtrl.prototype.refreshAriaDescription = function () {\n        var descriptionArray = Array.from(this.ariaDescriptionProperties.values());\n        this.comp.setAriaDescription(descriptionArray.length ? descriptionArray.join(' ') : undefined);\n    };\n    HeaderCellCtrl.prototype.refreshAria = function () {\n        this.refreshAriaSort();\n        this.refreshAriaMenu();\n        this.refreshAriaDescription();\n    };\n    HeaderCellCtrl.prototype.addColumnHoverListener = function () {\n        var _this = this;\n        var listener = function () {\n            if (!_this.gridOptionsWrapper.isColumnHoverHighlight()) {\n                return;\n            }\n            var isHovered = _this.columnHoverService.isHovered(_this.column);\n            _this.comp.addOrRemoveCssClass('ag-column-hover', isHovered);\n        };\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, listener);\n        listener();\n    };\n    HeaderCellCtrl.prototype.setupFilterCss = function () {\n        var _this = this;\n        var listener = function () {\n            _this.comp.addOrRemoveCssClass('ag-header-cell-filtered', _this.column.isFilterActive());\n        };\n        this.addManagedListener(this.column, Column.EVENT_FILTER_ACTIVE_CHANGED, listener);\n        listener();\n    };\n    HeaderCellCtrl.prototype.setupColId = function () {\n        this.comp.setColId(this.column.getColId());\n    };\n    HeaderCellCtrl.prototype.addActiveHeaderMouseListeners = function () {\n        var _this = this;\n        var listener = function (e) { return _this.setActiveHeader(e.type === 'mouseenter'); };\n        this.addManagedListener(this.getGui(), 'mouseenter', listener);\n        this.addManagedListener(this.getGui(), 'mouseleave', listener);\n    };\n    HeaderCellCtrl.prototype.setActiveHeader = function (active) {\n        this.comp.addOrRemoveCssClass('ag-header-active', active);\n    };\n    __decorate$1e([\n        Autowired('columnModel')\n    ], HeaderCellCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1e([\n        Autowired('columnHoverService')\n    ], HeaderCellCtrl.prototype, \"columnHoverService\", void 0);\n    __decorate$1e([\n        Autowired('beans')\n    ], HeaderCellCtrl.prototype, \"beans\", void 0);\n    __decorate$1e([\n        Autowired('sortController')\n    ], HeaderCellCtrl.prototype, \"sortController\", void 0);\n    __decorate$1e([\n        Autowired('menuFactory')\n    ], HeaderCellCtrl.prototype, \"menuFactory\", void 0);\n    __decorate$1e([\n        Autowired('dragAndDropService')\n    ], HeaderCellCtrl.prototype, \"dragAndDropService\", void 0);\n    __decorate$1e([\n        Autowired('gridApi')\n    ], HeaderCellCtrl.prototype, \"gridApi\", void 0);\n    __decorate$1e([\n        Autowired('columnApi')\n    ], HeaderCellCtrl.prototype, \"columnApi\", void 0);\n    __decorate$1e([\n        Autowired('userComponentFactory')\n    ], HeaderCellCtrl.prototype, \"userComponentFactory\", void 0);\n    __decorate$1e([\n        PreDestroy\n    ], HeaderCellCtrl.prototype, \"removeDragSource\", null);\n    return HeaderCellCtrl;\n}(AbstractHeaderCellCtrl));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1s = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GroupResizeFeature = /** @class */ (function (_super) {\n    __extends$1s(GroupResizeFeature, _super);\n    function GroupResizeFeature(comp, eResize, pinned, columnGroup) {\n        var _this = _super.call(this) || this;\n        _this.eResize = eResize;\n        _this.comp = comp;\n        _this.pinned = pinned;\n        _this.columnGroup = columnGroup;\n        return _this;\n    }\n    GroupResizeFeature.prototype.postConstruct = function () {\n        var _this = this;\n        if (!this.columnGroup.isResizable()) {\n            this.comp.addOrRemoveResizableCssClass('ag-hidden', true);\n            return;\n        }\n        var finishedWithResizeFunc = this.horizontalResizeService.addResizeBar({\n            eResizeBar: this.eResize,\n            onResizeStart: this.onResizeStart.bind(this),\n            onResizing: this.onResizing.bind(this, false),\n            onResizeEnd: this.onResizing.bind(this, true)\n        });\n        this.addDestroyFunc(finishedWithResizeFunc);\n        if (!this.gridOptionsWrapper.isSuppressAutoSize()) {\n            var skipHeaderOnAutoSize_1 = this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n            this.eResize.addEventListener('dblclick', function () {\n                // get list of all the column keys we are responsible for\n                var keys = [];\n                var leafCols = _this.columnGroup.getDisplayedLeafColumns();\n                leafCols.forEach(function (column) {\n                    // not all cols in the group may be participating with auto-resize\n                    if (!column.getColDef().suppressAutoSize) {\n                        keys.push(column.getColId());\n                    }\n                });\n                if (keys.length > 0) {\n                    _this.columnModel.autoSizeColumns({\n                        columns: keys,\n                        skipHeader: skipHeaderOnAutoSize_1,\n                        stopAtGroup: _this.columnGroup,\n                        source: 'uiColumnResized'\n                    });\n                }\n                _this.resizeLeafColumnsToFit();\n            });\n        }\n    };\n    GroupResizeFeature.prototype.onResizeStart = function (shiftKey) {\n        var _this = this;\n        this.calculateInitialValues();\n        var takeFromGroup = null;\n        if (shiftKey) {\n            takeFromGroup = this.columnModel.getDisplayedGroupAfter(this.columnGroup);\n        }\n        if (takeFromGroup) {\n            var takeFromLeafCols = takeFromGroup.getDisplayedLeafColumns();\n            this.resizeTakeFromCols = takeFromLeafCols.filter(function (col) { return col.isResizable(); });\n            this.resizeTakeFromStartWidth = 0;\n            this.resizeTakeFromCols.forEach(function (col) { return _this.resizeTakeFromStartWidth += col.getActualWidth(); });\n            this.resizeTakeFromRatios = [];\n            this.resizeTakeFromCols.forEach(function (col) { return _this.resizeTakeFromRatios.push(col.getActualWidth() / _this.resizeTakeFromStartWidth); });\n        }\n        else {\n            this.resizeTakeFromCols = null;\n            this.resizeTakeFromStartWidth = null;\n            this.resizeTakeFromRatios = null;\n        }\n        this.comp.addOrRemoveCssClass('ag-column-resizing', true);\n    };\n    GroupResizeFeature.prototype.onResizing = function (finished, resizeAmount) {\n        var resizeAmountNormalised = this.normaliseDragChange(resizeAmount);\n        var width = this.resizeStartWidth + resizeAmountNormalised;\n        this.resizeColumns(width, finished);\n    };\n    GroupResizeFeature.prototype.resizeLeafColumnsToFit = function () {\n        var preferredSize = this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);\n        this.calculateInitialValues();\n        if (preferredSize > this.resizeStartWidth) {\n            this.resizeColumns(preferredSize, true);\n        }\n    };\n    GroupResizeFeature.prototype.resizeColumns = function (totalWidth, finished) {\n        if (finished === void 0) { finished = true; }\n        var resizeSets = [];\n        resizeSets.push({\n            columns: this.resizeCols,\n            ratios: this.resizeRatios,\n            width: totalWidth\n        });\n        if (this.resizeTakeFromCols) {\n            var diff = totalWidth - this.resizeStartWidth;\n            resizeSets.push({\n                columns: this.resizeTakeFromCols,\n                ratios: this.resizeTakeFromRatios,\n                width: this.resizeTakeFromStartWidth - diff\n            });\n        }\n        this.columnModel.resizeColumnSets({\n            resizeSets: resizeSets,\n            finished: finished,\n            source: 'uiColumnDragged'\n        });\n        if (finished) {\n            this.comp.addOrRemoveCssClass('ag-column-resizing', false);\n        }\n    };\n    GroupResizeFeature.prototype.calculateInitialValues = function () {\n        var _this = this;\n        var leafCols = this.columnGroup.getDisplayedLeafColumns();\n        this.resizeCols = leafCols.filter(function (col) { return col.isResizable(); });\n        this.resizeStartWidth = 0;\n        this.resizeCols.forEach(function (col) { return _this.resizeStartWidth += col.getActualWidth(); });\n        this.resizeRatios = [];\n        this.resizeCols.forEach(function (col) { return _this.resizeRatios.push(col.getActualWidth() / _this.resizeStartWidth); });\n    };\n    // optionally inverts the drag, depending on pinned and RTL\n    // note - this method is duplicated in RenderedHeaderCell - should refactor out?\n    GroupResizeFeature.prototype.normaliseDragChange = function (dragChange) {\n        var result = dragChange;\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            // for RTL, dragging left makes the col bigger, except when pinning left\n            if (this.pinned !== Constants.PINNED_LEFT) {\n                result *= -1;\n            }\n        }\n        else if (this.pinned === Constants.PINNED_RIGHT) {\n            // for LTR (ie normal), dragging left makes the col smaller, except when pinning right\n            result *= -1;\n        }\n        return result;\n    };\n    __decorate$1f([\n        Autowired('horizontalResizeService')\n    ], GroupResizeFeature.prototype, \"horizontalResizeService\", void 0);\n    __decorate$1f([\n        Autowired('autoWidthCalculator')\n    ], GroupResizeFeature.prototype, \"autoWidthCalculator\", void 0);\n    __decorate$1f([\n        Autowired('columnModel')\n    ], GroupResizeFeature.prototype, \"columnModel\", void 0);\n    __decorate$1f([\n        PostConstruct\n    ], GroupResizeFeature.prototype, \"postConstruct\", null);\n    return GroupResizeFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1t = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GroupWidthFeature = /** @class */ (function (_super) {\n    __extends$1t(GroupWidthFeature, _super);\n    function GroupWidthFeature(comp, columnGroup) {\n        var _this = _super.call(this) || this;\n        // the children can change, we keep destroy functions related to listening to the children here\n        _this.removeChildListenersFuncs = [];\n        _this.columnGroup = columnGroup;\n        _this.comp = comp;\n        return _this;\n    }\n    GroupWidthFeature.prototype.postConstruct = function () {\n        // we need to listen to changes in child columns, as they impact our width\n        this.addListenersToChildrenColumns();\n        // the children belonging to this group can change, so we need to add and remove listeners as they change\n        this.addManagedListener(this.columnGroup, ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED, this.onDisplayedChildrenChanged.bind(this));\n        this.onWidthChanged();\n        // the child listeners are not tied to this components life-cycle, as children can get added and removed\n        // to the group - hence they are on a different life-cycle. so we must make sure the existing children\n        // listeners are removed when we finally get destroyed\n        this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this));\n    };\n    GroupWidthFeature.prototype.addListenersToChildrenColumns = function () {\n        var _this = this;\n        // first destroy any old listeners\n        this.removeListenersOnChildrenColumns();\n        // now add new listeners to the new set of children\n        var widthChangedListener = this.onWidthChanged.bind(this);\n        this.columnGroup.getLeafColumns().forEach(function (column) {\n            column.addEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n            column.addEventListener(Column.EVENT_VISIBLE_CHANGED, widthChangedListener);\n            _this.removeChildListenersFuncs.push(function () {\n                column.removeEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n                column.removeEventListener(Column.EVENT_VISIBLE_CHANGED, widthChangedListener);\n            });\n        });\n    };\n    GroupWidthFeature.prototype.removeListenersOnChildrenColumns = function () {\n        this.removeChildListenersFuncs.forEach(function (func) { return func(); });\n        this.removeChildListenersFuncs = [];\n    };\n    GroupWidthFeature.prototype.onDisplayedChildrenChanged = function () {\n        this.addListenersToChildrenColumns();\n        this.onWidthChanged();\n    };\n    GroupWidthFeature.prototype.onWidthChanged = function () {\n        this.comp.setWidth(this.columnGroup.getActualWidth() + 'px');\n    };\n    __decorate$1g([\n        PostConstruct\n    ], GroupWidthFeature.prototype, \"postConstruct\", null);\n    return GroupWidthFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1u = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderGroupCellCtrl = /** @class */ (function (_super) {\n    __extends$1u(HeaderGroupCellCtrl, _super);\n    function HeaderGroupCellCtrl(columnGroup, parentRowCtrl) {\n        var _this = _super.call(this, columnGroup, parentRowCtrl) || this;\n        _this.columnGroup = columnGroup;\n        return _this;\n    }\n    HeaderGroupCellCtrl.prototype.setComp = function (comp, eGui, eResize) {\n        _super.prototype.setGui.call(this, eGui);\n        this.comp = comp;\n        this.displayName = this.columnModel.getDisplayNameForColumnGroup(this.columnGroup, 'header');\n        this.addClasses();\n        this.addAttributes();\n        this.setupMovingCss();\n        this.setupExpandable();\n        this.setupTooltip();\n        this.setupUserComp();\n        var pinned = this.getParentRowCtrl().getPinned();\n        var leafCols = this.columnGroup.getProvidedColumnGroup().getLeafColumns();\n        this.createManagedBean(new HoverFeature(leafCols, eGui));\n        this.createManagedBean(new SetLeftFeature(this.columnGroup, eGui, this.beans));\n        this.createManagedBean(new GroupWidthFeature(comp, this.columnGroup));\n        this.groupResizeFeature = this.createManagedBean(new GroupResizeFeature(comp, eResize, pinned, this.columnGroup));\n        this.createManagedBean(new ManagedFocusFeature(eGui, {\n            shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),\n            onTabKeyDown: function () { return undefined; },\n            handleKeyDown: this.handleKeyDown.bind(this),\n            onFocusIn: this.onFocusIn.bind(this)\n        }));\n    };\n    HeaderGroupCellCtrl.prototype.resizeLeafColumnsToFit = function () {\n        this.groupResizeFeature.onResizeStart(false);\n        this.groupResizeFeature.resizeLeafColumnsToFit();\n    };\n    HeaderGroupCellCtrl.prototype.setupUserComp = function () {\n        var _this = this;\n        var displayName = this.displayName;\n        var params = {\n            displayName: this.displayName,\n            columnGroup: this.columnGroup,\n            setExpanded: function (expanded) {\n                _this.columnModel.setColumnGroupOpened(_this.columnGroup.getProvidedColumnGroup(), expanded, \"gridInitializing\");\n            },\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            context: this.gridOptionsWrapper.getContext()\n        };\n        if (!displayName) {\n            var columnGroup = this.columnGroup;\n            var leafCols = columnGroup.getLeafColumns();\n            // find the top most column group that represents the same columns. so if we are dragging a group, we also\n            // want to visually show the parent groups dragging for the same column set. for example imaging 5 levels\n            // of grouping, with each group only containing the next group, and the last group containing three columns,\n            // then when you move any group (even the lowest level group) you are in-fact moving all the groups, as all\n            // the groups represent the same column set.\n            while (columnGroup.getParent() && columnGroup.getParent().getLeafColumns().length === leafCols.length) {\n                columnGroup = columnGroup.getParent();\n            }\n            var colGroupDef = columnGroup.getColGroupDef();\n            if (colGroupDef) {\n                displayName = colGroupDef.headerName;\n            }\n            if (!displayName) {\n                displayName = leafCols ? this.columnModel.getDisplayNameForColumn(leafCols[0], 'header', true) : '';\n            }\n        }\n        var compDetails = this.userComponentFactory.getHeaderGroupCompDetails(params);\n        this.comp.setUserCompDetails(compDetails);\n    };\n    HeaderGroupCellCtrl.prototype.setupTooltip = function () {\n        var _this = this;\n        var colGroupDef = this.columnGroup.getColGroupDef();\n        var tooltipCtrl = {\n            getColumn: function () { return _this.columnGroup; },\n            getGui: function () { return _this.eGui; },\n            getLocation: function () { return 'headerGroup'; },\n            getTooltipValue: function () { return colGroupDef && colGroupDef.headerTooltip; }\n        };\n        if (colGroupDef) {\n            tooltipCtrl.getColDef = function () { return colGroupDef; };\n        }\n        var tooltipFeature = this.createManagedBean(new TooltipFeature(tooltipCtrl, this.beans));\n        tooltipFeature.setComp(this.comp);\n    };\n    HeaderGroupCellCtrl.prototype.setupExpandable = function () {\n        var providedColGroup = this.columnGroup.getProvidedColumnGroup();\n        this.refreshExpanded();\n        this.addManagedListener(providedColGroup, ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED, this.refreshExpanded.bind(this));\n        this.addManagedListener(providedColGroup, ProvidedColumnGroup.EVENT_EXPANDED_CHANGED, this.refreshExpanded.bind(this));\n    };\n    HeaderGroupCellCtrl.prototype.refreshExpanded = function () {\n        var column = this.columnGroup;\n        this.expandable = column.isExpandable();\n        var expanded = column.isExpanded();\n        if (this.expandable) {\n            this.comp.setAriaExpanded(expanded ? 'true' : 'false');\n        }\n        else {\n            this.comp.setAriaExpanded(undefined);\n        }\n    };\n    HeaderGroupCellCtrl.prototype.addAttributes = function () {\n        this.comp.setColId(this.columnGroup.getUniqueId());\n    };\n    HeaderGroupCellCtrl.prototype.addClasses = function () {\n        var _this = this;\n        var colGroupDef = this.columnGroup.getColGroupDef();\n        var classes = CssClassApplier.getHeaderClassesFromColDef(colGroupDef, this.gridOptionsWrapper, null, this.columnGroup);\n        // having different classes below allows the style to not have a bottom border\n        // on the group header, if no group is specified\n        classes.push(this.columnGroup.isPadding() ? \"ag-header-group-cell-no-group\" : \"ag-header-group-cell-with-group\");\n        classes.forEach(function (c) { return _this.comp.addOrRemoveCssClass(c, true); });\n    };\n    HeaderGroupCellCtrl.prototype.setupMovingCss = function () {\n        var _this = this;\n        var providedColumnGroup = this.columnGroup.getProvidedColumnGroup();\n        var leafColumns = providedColumnGroup.getLeafColumns();\n        // this function adds or removes the moving css, based on if the col is moving.\n        // this is what makes the header go dark when it is been moved (gives impression to\n        // user that the column was picked up).\n        var listener = function () { return _this.comp.addOrRemoveCssClass('ag-header-cell-moving', _this.columnGroup.isMoving()); };\n        leafColumns.forEach(function (col) {\n            _this.addManagedListener(col, Column.EVENT_MOVING_CHANGED, listener);\n        });\n        listener();\n    };\n    HeaderGroupCellCtrl.prototype.onFocusIn = function (e) {\n        if (!this.eGui.contains(e.relatedTarget)) {\n            var rowIndex = this.getRowIndex();\n            this.beans.focusService.setFocusedHeader(rowIndex, this.columnGroup);\n        }\n    };\n    HeaderGroupCellCtrl.prototype.handleKeyDown = function (e) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeEl = eDocument.activeElement;\n        var wrapperHasFocus = activeEl === this.eGui;\n        if (!this.expandable || !wrapperHasFocus) {\n            return;\n        }\n        if (e.key === KeyCode.ENTER) {\n            var column = this.columnGroup;\n            var newExpandedValue = !column.isExpanded();\n            this.columnModel.setColumnGroupOpened(column.getProvidedColumnGroup(), newExpandedValue, \"uiColumnExpanded\");\n        }\n    };\n    // unlike columns, this will only get called once, as we don't react on props on column groups\n    // (we will always destroy and recreate this comp if something changes)\n    HeaderGroupCellCtrl.prototype.setDragSource = function (eHeaderGroup) {\n        var _this = this;\n        if (this.isSuppressMoving()) {\n            return;\n        }\n        var allLeafColumns = this.columnGroup.getProvidedColumnGroup().getLeafColumns();\n        var dragSource = {\n            type: exports.DragSourceType.HeaderCell,\n            eElement: eHeaderGroup,\n            defaultIconName: DragAndDropService.ICON_HIDE,\n            dragItemName: this.displayName,\n            // we add in the original group leaf columns, so we move both visible and non-visible items\n            getDragItem: this.getDragItemForGroup.bind(this),\n            onDragStarted: function () { return allLeafColumns.forEach(function (col) { return col.setMoving(true, \"uiColumnDragged\"); }); },\n            onDragStopped: function () { return allLeafColumns.forEach(function (col) { return col.setMoving(false, \"uiColumnDragged\"); }); }\n        };\n        this.dragAndDropService.addDragSource(dragSource, true);\n        this.addDestroyFunc(function () { return _this.dragAndDropService.removeDragSource(dragSource); });\n    };\n    // when moving the columns, we want to move all the columns (contained within the DragItem) in this group in one go,\n    // and in the order they are currently in the screen.\n    HeaderGroupCellCtrl.prototype.getDragItemForGroup = function () {\n        var allColumnsOriginalOrder = this.columnGroup.getProvidedColumnGroup().getLeafColumns();\n        // capture visible state, used when re-entering grid to dictate which columns should be visible\n        var visibleState = {};\n        allColumnsOriginalOrder.forEach(function (column) { return visibleState[column.getId()] = column.isVisible(); });\n        var allColumnsCurrentOrder = [];\n        this.columnModel.getAllDisplayedColumns().forEach(function (column) {\n            if (allColumnsOriginalOrder.indexOf(column) >= 0) {\n                allColumnsCurrentOrder.push(column);\n                removeFromArray(allColumnsOriginalOrder, column);\n            }\n        });\n        // we are left with non-visible columns, stick these in at the end\n        allColumnsOriginalOrder.forEach(function (column) { return allColumnsCurrentOrder.push(column); });\n        // create and return dragItem\n        return {\n            columns: allColumnsCurrentOrder,\n            visibleState: visibleState\n        };\n    };\n    HeaderGroupCellCtrl.prototype.isSuppressMoving = function () {\n        // if any child is fixed, then don't allow moving\n        var childSuppressesMoving = false;\n        this.columnGroup.getLeafColumns().forEach(function (column) {\n            if (column.getColDef().suppressMovable || column.getColDef().lockPosition) {\n                childSuppressesMoving = true;\n            }\n        });\n        var result = childSuppressesMoving || this.gridOptionsWrapper.isSuppressMovableColumns();\n        return result;\n    };\n    __decorate$1h([\n        Autowired('beans')\n    ], HeaderGroupCellCtrl.prototype, \"beans\", void 0);\n    __decorate$1h([\n        Autowired('columnModel')\n    ], HeaderGroupCellCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1h([\n        Autowired('dragAndDropService')\n    ], HeaderGroupCellCtrl.prototype, \"dragAndDropService\", void 0);\n    __decorate$1h([\n        Autowired('userComponentFactory')\n    ], HeaderGroupCellCtrl.prototype, \"userComponentFactory\", void 0);\n    __decorate$1h([\n        Autowired('gridApi')\n    ], HeaderGroupCellCtrl.prototype, \"gridApi\", void 0);\n    __decorate$1h([\n        Autowired('columnApi')\n    ], HeaderGroupCellCtrl.prototype, \"columnApi\", void 0);\n    return HeaderGroupCellCtrl;\n}(AbstractHeaderCellCtrl));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1v = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar instanceIdSequence$4 = 0;\nvar HeaderRowCtrl = /** @class */ (function (_super) {\n    __extends$1v(HeaderRowCtrl, _super);\n    function HeaderRowCtrl(rowIndex, pinned, type) {\n        var _this = _super.call(this) || this;\n        _this.instanceId = instanceIdSequence$4++;\n        _this.headerCellCtrls = {};\n        _this.rowIndex = rowIndex;\n        _this.pinned = pinned;\n        _this.type = type;\n        return _this;\n    }\n    HeaderRowCtrl.prototype.getInstanceId = function () {\n        return this.instanceId;\n    };\n    HeaderRowCtrl.prototype.setComp = function (comp) {\n        this.comp = comp;\n        this.onRowHeightChanged();\n        this.onVirtualColumnsChanged();\n        this.setWidth();\n        this.addEventListeners();\n        if (isBrowserSafari()) {\n            // fix for a Safari rendering bug that caused the header to flicker above chart panels\n            // as you move the mouse over the header\n            this.comp.setTransform('translateZ(0)');\n        }\n        comp.setAriaRowIndex(this.rowIndex + 1);\n    };\n    HeaderRowCtrl.prototype.addEventListeners = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_RESIZED, this.onColumnResized.bind(this));\n        // when print layout changes, it changes what columns are in what section\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onDisplayedColumnsChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, this.onRowHeightChanged.bind(this));\n    };\n    HeaderRowCtrl.prototype.getHeaderCellCtrl = function (column) {\n        return values(this.headerCellCtrls).find(function (cellCtrl) { return cellCtrl.getColumnGroupChild() === column; });\n    };\n    HeaderRowCtrl.prototype.onDisplayedColumnsChanged = function () {\n        this.onVirtualColumnsChanged();\n        this.setWidth();\n    };\n    HeaderRowCtrl.prototype.getType = function () {\n        return this.type;\n    };\n    HeaderRowCtrl.prototype.onColumnResized = function () {\n        this.setWidth();\n    };\n    HeaderRowCtrl.prototype.setWidth = function () {\n        var width = this.getWidthForRow();\n        this.comp.setWidth(width + \"px\");\n    };\n    HeaderRowCtrl.prototype.getWidthForRow = function () {\n        var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        if (printLayout) {\n            var pinned = this.pinned != null;\n            if (pinned) {\n                return 0;\n            }\n            return this.columnModel.getContainerWidth(Constants.PINNED_RIGHT)\n                + this.columnModel.getContainerWidth(Constants.PINNED_LEFT)\n                + this.columnModel.getContainerWidth(null);\n        }\n        // if not printing, just return the width as normal\n        return this.columnModel.getContainerWidth(this.pinned);\n    };\n    HeaderRowCtrl.prototype.onRowHeightChanged = function () {\n        var headerRowCount = this.columnModel.getHeaderRowCount();\n        var sizes = [];\n        var numberOfFloating = 0;\n        var groupHeight;\n        var headerHeight;\n        if (this.columnModel.hasFloatingFilters()) {\n            headerRowCount++;\n            numberOfFloating = 1;\n        }\n        if (this.columnModel.isPivotMode()) {\n            groupHeight = this.gridOptionsWrapper.getPivotGroupHeaderHeight();\n            headerHeight = this.gridOptionsWrapper.getPivotHeaderHeight();\n        }\n        else {\n            groupHeight = this.gridOptionsWrapper.getGroupHeaderHeight();\n            headerHeight = this.gridOptionsWrapper.getHeaderHeight();\n        }\n        var numberOfNonGroups = 1 + numberOfFloating;\n        var numberOfGroups = headerRowCount - numberOfNonGroups;\n        for (var i = 0; i < numberOfGroups; i++) {\n            sizes.push(groupHeight);\n        }\n        sizes.push(headerHeight);\n        for (var i = 0; i < numberOfFloating; i++) {\n            sizes.push(this.gridOptionsWrapper.getFloatingFiltersHeight());\n        }\n        var rowHeight = 0;\n        for (var i = 0; i < this.rowIndex; i++) {\n            rowHeight += sizes[i];\n        }\n        this.comp.setTop(rowHeight + 'px');\n        this.comp.setHeight(sizes[this.rowIndex] + 'px');\n    };\n    HeaderRowCtrl.prototype.getPinned = function () {\n        return this.pinned;\n    };\n    HeaderRowCtrl.prototype.getRowIndex = function () {\n        return this.rowIndex;\n    };\n    HeaderRowCtrl.prototype.onVirtualColumnsChanged = function () {\n        var _this = this;\n        var oldCtrls = this.headerCellCtrls;\n        this.headerCellCtrls = {};\n        var columns = this.getColumnsInViewport();\n        columns.forEach(function (child) {\n            // skip groups that have no displayed children. this can happen when the group is broken,\n            // and this section happens to have nothing to display for the open / closed state.\n            // (a broken group is one that is split, ie columns in the group have a non-group column\n            // in between them)\n            if (child.isEmptyGroup()) {\n                return;\n            }\n            var idOfChild = child.getUniqueId();\n            // if we already have this cell rendered, do nothing\n            var headerCtrl = oldCtrls[idOfChild];\n            delete oldCtrls[idOfChild];\n            // it's possible there is a new Column with the same ID, but it's for a different Column.\n            // this is common with pivoting, where the pivot cols change, but the id's are still pivot_0,\n            // pivot_1 etc. so if new col but same ID, need to remove the old col here first as we are\n            // about to replace it in the this.headerComps map.\n            var forOldColumn = headerCtrl && headerCtrl.getColumnGroupChild() != child;\n            if (forOldColumn) {\n                _this.destroyBean(headerCtrl);\n                headerCtrl = undefined;\n            }\n            if (headerCtrl == null) {\n                switch (_this.type) {\n                    case exports.HeaderRowType.FLOATING_FILTER:\n                        headerCtrl = _this.createBean(new HeaderFilterCellCtrl(child, _this));\n                        break;\n                    case exports.HeaderRowType.COLUMN_GROUP:\n                        headerCtrl = _this.createBean(new HeaderGroupCellCtrl(child, _this));\n                        break;\n                    default:\n                        headerCtrl = _this.createBean(new HeaderCellCtrl(child, _this));\n                        break;\n                }\n            }\n            _this.headerCellCtrls[idOfChild] = headerCtrl;\n        });\n        // we want to keep columns that are focused, otherwise keyboard navigation breaks\n        var isFocusedAndDisplayed = function (ctrl) {\n            var isFocused = _this.focusService.isHeaderWrapperFocused(ctrl);\n            if (!isFocused) {\n                return false;\n            }\n            var isDisplayed = _this.columnModel.isDisplayed(ctrl.getColumnGroupChild());\n            return isDisplayed;\n        };\n        iterateObject(oldCtrls, function (id, oldCtrl) {\n            var keepCtrl = isFocusedAndDisplayed(oldCtrl);\n            if (keepCtrl) {\n                _this.headerCellCtrls[id] = oldCtrl;\n            }\n            else {\n                _this.destroyBean(oldCtrl);\n            }\n        });\n        var ctrlsToDisplay = getAllValuesInObject(this.headerCellCtrls);\n        this.comp.setHeaderCtrls(ctrlsToDisplay);\n    };\n    HeaderRowCtrl.prototype.destroyCtrls = function () {\n        var _this = this;\n        iterateObject(this.headerCellCtrls, function (key, ctrl) {\n            _this.destroyBean(ctrl);\n        });\n        this.headerCellCtrls = {};\n    };\n    HeaderRowCtrl.prototype.getColumnsInViewport = function () {\n        var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        return printLayout ? this.getColumnsInViewportPrintLayout() : this.getColumnsInViewportNormalLayout();\n    };\n    HeaderRowCtrl.prototype.getColumnsInViewportPrintLayout = function () {\n        var _this = this;\n        // for print layout, we add all columns into the center\n        if (this.pinned != null) {\n            return [];\n        }\n        var viewportColumns = [];\n        var actualDepth = this.getActualDepth();\n        [Constants.PINNED_LEFT, null, Constants.PINNED_RIGHT].forEach(function (pinned) {\n            var items = _this.columnModel.getVirtualHeaderGroupRow(pinned, actualDepth);\n            viewportColumns = viewportColumns.concat(items);\n        });\n        return viewportColumns;\n    };\n    HeaderRowCtrl.prototype.getActualDepth = function () {\n        return this.type == exports.HeaderRowType.FLOATING_FILTER ? this.rowIndex - 1 : this.rowIndex;\n    };\n    HeaderRowCtrl.prototype.getColumnsInViewportNormalLayout = function () {\n        // when in normal layout, we add the columns for that container only\n        return this.columnModel.getVirtualHeaderGroupRow(this.pinned, this.getActualDepth());\n    };\n    HeaderRowCtrl.prototype.focusHeader = function (column, event) {\n        var allCtrls = getAllValuesInObject(this.headerCellCtrls);\n        var ctrl = allCtrls.find(function (ctrl) { return ctrl.getColumnGroupChild() == column; });\n        if (!ctrl) {\n            return false;\n        }\n        ctrl.focus(event);\n        return true;\n    };\n    __decorate$1i([\n        Autowired('columnModel')\n    ], HeaderRowCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1i([\n        Autowired('focusService')\n    ], HeaderRowCtrl.prototype, \"focusService\", void 0);\n    __decorate$1i([\n        PreDestroy\n    ], HeaderRowCtrl.prototype, \"destroyCtrls\", null);\n    return HeaderRowCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1w = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$c = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$9 = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$c(arguments[i]));\n    return ar;\n};\nvar HeaderRowContainerCtrl = /** @class */ (function (_super) {\n    __extends$1w(HeaderRowContainerCtrl, _super);\n    function HeaderRowContainerCtrl(pinned) {\n        var _this = _super.call(this) || this;\n        _this.groupsRowCtrls = [];\n        _this.pinned = pinned;\n        return _this;\n    }\n    HeaderRowContainerCtrl.prototype.setComp = function (comp, eGui) {\n        this.comp = comp;\n        this.setupCenterWidth();\n        this.setupPinnedWidth();\n        this.setupDragAndDrop(eGui);\n        this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this));\n        this.ctrlsService.registerHeaderContainer(this, this.pinned);\n        if (this.columnModel.isReady()) {\n            this.refresh();\n        }\n    };\n    HeaderRowContainerCtrl.prototype.setupDragAndDrop = function (dropContainer) {\n        var bodyDropTarget = new BodyDropTarget(this.pinned, dropContainer);\n        this.createManagedBean(bodyDropTarget);\n    };\n    HeaderRowContainerCtrl.prototype.refresh = function (keepColumns) {\n        var _this = this;\n        if (keepColumns === void 0) { keepColumns = false; }\n        var sequence = new NumberSequence();\n        var focusedHeaderPosition = this.focusService.getFocusHeaderToUseAfterRefresh();\n        var refreshColumnGroups = function () {\n            var groupRowCount = _this.columnModel.getHeaderRowCount() - 1;\n            _this.groupsRowCtrls = _this.destroyBeans(_this.groupsRowCtrls);\n            for (var i = 0; i < groupRowCount; i++) {\n                var ctrl = _this.createBean(new HeaderRowCtrl(sequence.next(), _this.pinned, exports.HeaderRowType.COLUMN_GROUP));\n                _this.groupsRowCtrls.push(ctrl);\n            }\n        };\n        var refreshColumns = function () {\n            var rowIndex = sequence.next();\n            var needNewInstance = _this.columnsRowCtrl == null || !keepColumns || _this.columnsRowCtrl.getRowIndex() !== rowIndex;\n            if (needNewInstance) {\n                _this.destroyBean(_this.columnsRowCtrl);\n                _this.columnsRowCtrl = _this.createBean(new HeaderRowCtrl(rowIndex, _this.pinned, exports.HeaderRowType.COLUMN));\n            }\n        };\n        var refreshFilters = function () {\n            var includeFloatingFilter = _this.columnModel.hasFloatingFilters();\n            var destroyPreviousComp = function () {\n                _this.filtersRowCtrl = _this.destroyBean(_this.filtersRowCtrl);\n            };\n            if (!includeFloatingFilter) {\n                destroyPreviousComp();\n                return;\n            }\n            var rowIndex = sequence.next();\n            if (_this.filtersRowCtrl) {\n                var rowIndexMismatch = _this.filtersRowCtrl.getRowIndex() !== rowIndex;\n                if (!keepColumns || rowIndexMismatch) {\n                    destroyPreviousComp();\n                }\n            }\n            if (!_this.filtersRowCtrl) {\n                _this.filtersRowCtrl = _this.createBean(new HeaderRowCtrl(rowIndex, _this.pinned, exports.HeaderRowType.FLOATING_FILTER));\n            }\n        };\n        refreshColumnGroups();\n        refreshColumns();\n        refreshFilters();\n        var allCtrls = this.getAllCtrls();\n        this.comp.setCtrls(allCtrls);\n        this.restoreFocusOnHeader(focusedHeaderPosition);\n    };\n    HeaderRowContainerCtrl.prototype.restoreFocusOnHeader = function (position) {\n        if (position == null || position.column.getPinned() != this.pinned) {\n            return;\n        }\n        this.focusService.focusHeaderPosition({ headerPosition: position });\n    };\n    HeaderRowContainerCtrl.prototype.getAllCtrls = function () {\n        var res = __spread$9(this.groupsRowCtrls, [this.columnsRowCtrl]);\n        if (this.filtersRowCtrl) {\n            res.push(this.filtersRowCtrl);\n        }\n        return res;\n    };\n    // grid cols have changed - this also means the number of rows in the header can have\n    // changed. so we remove all the old rows and insert new ones for a complete refresh\n    HeaderRowContainerCtrl.prototype.onGridColumnsChanged = function () {\n        this.refresh(true);\n    };\n    HeaderRowContainerCtrl.prototype.setupCenterWidth = function () {\n        var _this = this;\n        if (this.pinned != null) {\n            return;\n        }\n        this.createManagedBean(new CenterWidthFeature(function (width) { return _this.comp.setCenterWidth(width + \"px\"); }));\n    };\n    HeaderRowContainerCtrl.prototype.setHorizontalScroll = function (offset) {\n        this.comp.setContainerTransform(\"translateX(\" + offset + \"px)\");\n    };\n    HeaderRowContainerCtrl.prototype.setupPinnedWidth = function () {\n        var _this = this;\n        if (this.pinned == null) {\n            return;\n        }\n        var pinningLeft = this.pinned === Constants.PINNED_LEFT;\n        var pinningRight = this.pinned === Constants.PINNED_RIGHT;\n        var listener = function () {\n            var width = pinningLeft ? _this.pinnedWidthService.getPinnedLeftWidth() : _this.pinnedWidthService.getPinnedRightWidth();\n            if (width == null) {\n                return;\n            } // can happen at initialisation, width not yet set\n            var hidden = width == 0;\n            var isRtl = _this.gridOptionsWrapper.isEnableRtl();\n            var scrollbarWidth = _this.gridOptionsWrapper.getScrollbarWidth();\n            // if there is a scroll showing (and taking up space, so Windows, and not iOS)\n            // in the body, then we add extra space to keep header aligned with the body,\n            // as body width fits the cols and the scrollbar\n            var addPaddingForScrollbar = _this.scrollVisibleService.isVerticalScrollShowing() && ((isRtl && pinningLeft) || (!isRtl && pinningRight));\n            var widthWithPadding = addPaddingForScrollbar ? width + scrollbarWidth : width;\n            _this.comp.setPinnedContainerWidth(widthWithPadding + 'px');\n            _this.comp.addOrRemoveCssClass('ag-hidden', hidden);\n        };\n        this.addManagedListener(this.eventService, Events.EVENT_LEFT_PINNED_WIDTH_CHANGED, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLLBAR_WIDTH_CHANGED, listener);\n    };\n    HeaderRowContainerCtrl.prototype.getHeaderCtrlForColumn = function (column) {\n        if (column instanceof Column) {\n            if (!this.columnsRowCtrl) {\n                return;\n            }\n            return this.columnsRowCtrl.getHeaderCellCtrl(column);\n        }\n        if (this.groupsRowCtrls.length === 0) {\n            return;\n        }\n        for (var i = 0; i < this.groupsRowCtrls.length; i++) {\n            var ctrl = this.groupsRowCtrls[i].getHeaderCellCtrl(column);\n            if (ctrl) {\n                return ctrl;\n            }\n        }\n    };\n    HeaderRowContainerCtrl.prototype.getHtmlElementForColumnHeader = function (column) {\n        /* tslint:enable */\n        var cellCtrl = this.getHeaderCtrlForColumn(column);\n        if (!cellCtrl) {\n            return null;\n        }\n        return cellCtrl.getGui();\n    };\n    HeaderRowContainerCtrl.prototype.getRowType = function (rowIndex) {\n        var allCtrls = this.getAllCtrls();\n        var ctrl = allCtrls[rowIndex];\n        return ctrl ? ctrl.getType() : undefined;\n    };\n    HeaderRowContainerCtrl.prototype.focusHeader = function (rowIndex, column, event) {\n        var allCtrls = this.getAllCtrls();\n        var ctrl = allCtrls[rowIndex];\n        if (!ctrl) {\n            return false;\n        }\n        return ctrl.focusHeader(column, event);\n    };\n    HeaderRowContainerCtrl.prototype.getRowCount = function () {\n        return this.getAllCtrls().length;\n    };\n    __decorate$1j([\n        Autowired('ctrlsService')\n    ], HeaderRowContainerCtrl.prototype, \"ctrlsService\", void 0);\n    __decorate$1j([\n        Autowired('scrollVisibleService')\n    ], HeaderRowContainerCtrl.prototype, \"scrollVisibleService\", void 0);\n    __decorate$1j([\n        Autowired('pinnedWidthService')\n    ], HeaderRowContainerCtrl.prototype, \"pinnedWidthService\", void 0);\n    __decorate$1j([\n        Autowired('columnModel')\n    ], HeaderRowContainerCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1j([\n        Autowired('focusService')\n    ], HeaderRowContainerCtrl.prototype, \"focusService\", void 0);\n    return HeaderRowContainerCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1x = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderRowContainerComp = /** @class */ (function (_super) {\n    __extends$1x(HeaderRowContainerComp, _super);\n    function HeaderRowContainerComp(pinned) {\n        var _this = _super.call(this) || this;\n        _this.headerRowComps = {};\n        _this.rowCompsList = [];\n        _this.pinned = pinned;\n        return _this;\n    }\n    HeaderRowContainerComp.prototype.init = function () {\n        var _this = this;\n        this.selectAndSetTemplate();\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            setCtrls: function (ctrls) { return _this.setCtrls(ctrls); },\n            // only gets called for center section\n            setCenterWidth: function (width) { return _this.eCenterContainer.style.width = width; },\n            setContainerTransform: function (transform) { return _this.eCenterContainer.style.transform = transform; },\n            // only gets called for pinned sections\n            setPinnedContainerWidth: function (width) {\n                var eGui = _this.getGui();\n                eGui.style.width = width;\n                eGui.style.maxWidth = width;\n                eGui.style.minWidth = width;\n            }\n        };\n        var ctrl = this.createManagedBean(new HeaderRowContainerCtrl(this.pinned));\n        ctrl.setComp(compProxy, this.getGui());\n    };\n    HeaderRowContainerComp.prototype.selectAndSetTemplate = function () {\n        var pinnedLeft = this.pinned == Constants.PINNED_LEFT;\n        var pinnedRight = this.pinned == Constants.PINNED_RIGHT;\n        var template = pinnedLeft ? HeaderRowContainerComp.PINNED_LEFT_TEMPLATE :\n            pinnedRight ? HeaderRowContainerComp.PINNED_RIGHT_TEMPLATE : HeaderRowContainerComp.CENTER_TEMPLATE;\n        this.setTemplate(template);\n        // for left and right, we add rows directly to the root element,\n        // but for center container we add elements to the child container.\n        this.eRowContainer = this.eCenterContainer ? this.eCenterContainer : this.getGui();\n    };\n    HeaderRowContainerComp.prototype.destroyRowComps = function () {\n        this.setCtrls([]);\n    };\n    HeaderRowContainerComp.prototype.destroyRowComp = function (rowComp) {\n        this.destroyBean(rowComp);\n        this.eRowContainer.removeChild(rowComp.getGui());\n    };\n    HeaderRowContainerComp.prototype.setCtrls = function (ctrls) {\n        var _this = this;\n        var oldRowComps = this.headerRowComps;\n        this.headerRowComps = {};\n        this.rowCompsList = [];\n        var prevGui;\n        var appendEnsuringDomOrder = function (rowComp) {\n            var eGui = rowComp.getGui();\n            var notAlreadyIn = eGui.parentElement != _this.eRowContainer;\n            if (notAlreadyIn) {\n                _this.eRowContainer.appendChild(eGui);\n            }\n            if (prevGui) {\n                ensureDomOrder(_this.eRowContainer, eGui, prevGui);\n            }\n            prevGui = eGui;\n        };\n        ctrls.forEach(function (ctrl) {\n            var ctrlId = ctrl.getInstanceId();\n            var existingComp = oldRowComps[ctrlId];\n            delete oldRowComps[ctrlId];\n            var rowComp = existingComp ? existingComp : _this.createBean(new HeaderRowComp(ctrl));\n            _this.headerRowComps[ctrlId] = rowComp;\n            _this.rowCompsList.push(rowComp);\n            appendEnsuringDomOrder(rowComp);\n        });\n        getAllValuesInObject(oldRowComps).forEach(function (c) { return _this.destroyRowComp(c); });\n    };\n    HeaderRowContainerComp.PINNED_LEFT_TEMPLATE = \"<div class=\\\"ag-pinned-left-header\\\" role=\\\"presentation\\\"/>\";\n    HeaderRowContainerComp.PINNED_RIGHT_TEMPLATE = \"<div class=\\\"ag-pinned-right-header\\\" role=\\\"presentation\\\"/>\";\n    HeaderRowContainerComp.CENTER_TEMPLATE = \"<div class=\\\"ag-header-viewport\\\" role=\\\"presentation\\\">\\n            <div class=\\\"ag-header-container\\\" ref=\\\"eCenterContainer\\\" role=\\\"rowgroup\\\"></div>\\n        </div>\";\n    __decorate$1k([\n        RefSelector('eCenterContainer')\n    ], HeaderRowContainerComp.prototype, \"eCenterContainer\", void 0);\n    __decorate$1k([\n        PostConstruct\n    ], HeaderRowContainerComp.prototype, \"init\", null);\n    __decorate$1k([\n        PreDestroy\n    ], HeaderRowContainerComp.prototype, \"destroyRowComps\", null);\n    return HeaderRowContainerComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1y = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n(function (HeaderNavigationDirection) {\n    HeaderNavigationDirection[HeaderNavigationDirection[\"UP\"] = 0] = \"UP\";\n    HeaderNavigationDirection[HeaderNavigationDirection[\"DOWN\"] = 1] = \"DOWN\";\n    HeaderNavigationDirection[HeaderNavigationDirection[\"LEFT\"] = 2] = \"LEFT\";\n    HeaderNavigationDirection[HeaderNavigationDirection[\"RIGHT\"] = 3] = \"RIGHT\";\n})(exports.HeaderNavigationDirection || (exports.HeaderNavigationDirection = {}));\nvar HeaderNavigationService = /** @class */ (function (_super) {\n    __extends$1y(HeaderNavigationService, _super);\n    function HeaderNavigationService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    HeaderNavigationService.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            _this.gridBodyCon = p.gridBodyCtrl;\n        });\n    };\n    HeaderNavigationService.prototype.getHeaderRowCount = function () {\n        var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n        return centerHeaderContainer ? centerHeaderContainer.getRowCount() : 0;\n    };\n    HeaderNavigationService.prototype.getHeaderRowType = function (rowIndex) {\n        var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n        if (centerHeaderContainer) {\n            return centerHeaderContainer.getRowType(rowIndex);\n        }\n    };\n    /*\n     * This method navigates grid header vertically\n     * @return {boolean} true to preventDefault on the event that caused this navigation.\n     */\n    HeaderNavigationService.prototype.navigateVertically = function (direction, fromHeader, event) {\n        if (!fromHeader) {\n            fromHeader = this.focusService.getFocusedHeader();\n        }\n        if (!fromHeader) {\n            return false;\n        }\n        var headerRowIndex = fromHeader.headerRowIndex, column = fromHeader.column;\n        var rowLen = this.getHeaderRowCount();\n        var isUp = direction === exports.HeaderNavigationDirection.UP;\n        var nextRow = isUp ? headerRowIndex - 1 : headerRowIndex + 1;\n        var nextFocusColumn = null;\n        var skipColumn = false;\n        if (nextRow < 0) {\n            nextRow = 0;\n            nextFocusColumn = column;\n            skipColumn = true;\n        }\n        if (nextRow >= rowLen) {\n            nextRow = -1; // -1 indicates the focus should move to grid rows.\n        }\n        var currentRowType = this.getHeaderRowType(headerRowIndex);\n        if (!skipColumn) {\n            if (currentRowType === exports.HeaderRowType.COLUMN_GROUP) {\n                var currentColumn = column;\n                nextFocusColumn = isUp ? column.getParent() : currentColumn.getDisplayedChildren()[0];\n            }\n            else if (currentRowType === exports.HeaderRowType.FLOATING_FILTER) {\n                nextFocusColumn = column;\n            }\n            else {\n                var currentColumn = column;\n                nextFocusColumn = isUp ? currentColumn.getParent() : currentColumn;\n            }\n            if (!nextFocusColumn) {\n                return false;\n            }\n        }\n        return this.focusService.focusHeaderPosition({\n            headerPosition: { headerRowIndex: nextRow, column: nextFocusColumn },\n            allowUserOverride: true,\n            event: event\n        });\n    };\n    /*\n     * This method navigates grid header horizontally\n     * @return {boolean} true to preventDefault on the event that caused this navigation.\n     */\n    HeaderNavigationService.prototype.navigateHorizontally = function (direction, fromTab, event) {\n        if (fromTab === void 0) { fromTab = false; }\n        var focusedHeader = this.focusService.getFocusedHeader();\n        var isLeft = direction === exports.HeaderNavigationDirection.LEFT;\n        var isRtl = this.gridOptionsWrapper.isEnableRtl();\n        var nextHeader;\n        var normalisedDirection;\n        // either navigating to the left or isRtl (cannot be both)\n        if (isLeft !== isRtl) {\n            normalisedDirection = 'Before';\n            nextHeader = this.headerPositionUtils.findHeader(focusedHeader, normalisedDirection);\n        }\n        else {\n            normalisedDirection = 'After';\n            nextHeader = this.headerPositionUtils.findHeader(focusedHeader, normalisedDirection);\n        }\n        if (nextHeader) {\n            return this.focusService.focusHeaderPosition({\n                headerPosition: nextHeader,\n                direction: normalisedDirection,\n                fromTab: fromTab,\n                allowUserOverride: true,\n                event: event\n            });\n        }\n        if (!fromTab) {\n            return true;\n        }\n        return this.focusNextHeaderRow(focusedHeader, normalisedDirection, event);\n    };\n    HeaderNavigationService.prototype.focusNextHeaderRow = function (focusedHeader, direction, event) {\n        var currentIndex = focusedHeader.headerRowIndex;\n        var nextPosition = null;\n        var nextRowIndex;\n        if (direction === 'Before') {\n            if (currentIndex > 0) {\n                nextRowIndex = currentIndex - 1;\n                nextPosition = this.headerPositionUtils.findColAtEdgeForHeaderRow(nextRowIndex, 'end');\n            }\n        }\n        else {\n            nextRowIndex = currentIndex + 1;\n            nextPosition = this.headerPositionUtils.findColAtEdgeForHeaderRow(nextRowIndex, 'start');\n        }\n        return this.focusService.focusHeaderPosition({\n            headerPosition: nextPosition,\n            direction: direction,\n            fromTab: true,\n            allowUserOverride: true,\n            event: event\n        });\n    };\n    HeaderNavigationService.prototype.scrollToColumn = function (column, direction) {\n        if (direction === void 0) { direction = 'After'; }\n        if (column.getPinned()) {\n            return;\n        }\n        var columnToScrollTo;\n        if (column instanceof ColumnGroup) {\n            var columns = column.getDisplayedLeafColumns();\n            columnToScrollTo = direction === 'Before' ? last(columns) : columns[0];\n        }\n        else {\n            columnToScrollTo = column;\n        }\n        this.gridBodyCon.getScrollFeature().ensureColumnVisible(columnToScrollTo);\n        // need to nudge the scrolls for the floating items. otherwise when we set focus on a non-visible\n        // floating cell, the scrolls get out of sync\n        this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter();\n        // need to flush frames, to make sure the correct cells are rendered\n        this.animationFrameService.flushAllFrames();\n    };\n    __decorate$1l([\n        Autowired('focusService')\n    ], HeaderNavigationService.prototype, \"focusService\", void 0);\n    __decorate$1l([\n        Autowired('headerPositionUtils')\n    ], HeaderNavigationService.prototype, \"headerPositionUtils\", void 0);\n    __decorate$1l([\n        Autowired('animationFrameService')\n    ], HeaderNavigationService.prototype, \"animationFrameService\", void 0);\n    __decorate$1l([\n        Autowired('ctrlsService')\n    ], HeaderNavigationService.prototype, \"ctrlsService\", void 0);\n    __decorate$1l([\n        PostConstruct\n    ], HeaderNavigationService.prototype, \"postConstruct\", null);\n    HeaderNavigationService = __decorate$1l([\n        Bean('headerNavigationService')\n    ], HeaderNavigationService);\n    return HeaderNavigationService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1z = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GridHeaderCtrl = /** @class */ (function (_super) {\n    __extends$1z(GridHeaderCtrl, _super);\n    function GridHeaderCtrl() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    GridHeaderCtrl.prototype.setComp = function (comp, eGui, eFocusableElement) {\n        this.comp = comp;\n        this.eGui = eGui;\n        this.createManagedBean(new ManagedFocusFeature(eFocusableElement, {\n            onTabKeyDown: this.onTabKeyDown.bind(this),\n            handleKeyDown: this.handleKeyDown.bind(this),\n            onFocusOut: this.onFocusOut.bind(this)\n        }));\n        // for setting ag-pivot-on / ag-pivot-off CSS classes\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onPivotModeChanged.bind(this));\n        this.onPivotModeChanged();\n        this.setupHeaderHeight();\n        this.ctrlsService.registerGridHeaderCtrl(this);\n    };\n    GridHeaderCtrl.prototype.setupHeaderHeight = function () {\n        var listener = this.setHeaderHeight.bind(this);\n        listener();\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_HEADER_HEIGHT, listener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, listener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, listener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, listener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n    };\n    GridHeaderCtrl.prototype.setHeaderHeight = function () {\n        var _a = this, columnModel = _a.columnModel, gridOptionsWrapper = _a.gridOptionsWrapper;\n        var numberOfFloating = 0;\n        var headerRowCount = columnModel.getHeaderRowCount();\n        var totalHeaderHeight;\n        var groupHeight;\n        var headerHeight;\n        var hasFloatingFilters = columnModel.hasFloatingFilters();\n        if (hasFloatingFilters) {\n            headerRowCount++;\n            numberOfFloating = 1;\n        }\n        if (columnModel.isPivotMode()) {\n            groupHeight = gridOptionsWrapper.getPivotGroupHeaderHeight();\n            headerHeight = gridOptionsWrapper.getPivotHeaderHeight();\n        }\n        else {\n            groupHeight = gridOptionsWrapper.getGroupHeaderHeight();\n            headerHeight = gridOptionsWrapper.getHeaderHeight();\n        }\n        var numberOfNonGroups = 1 + numberOfFloating;\n        var numberOfGroups = headerRowCount - numberOfNonGroups;\n        totalHeaderHeight = numberOfFloating * gridOptionsWrapper.getFloatingFiltersHeight();\n        totalHeaderHeight += numberOfGroups * groupHeight;\n        totalHeaderHeight += headerHeight;\n        // one extra pixel is needed here to account for the\n        // height of the border\n        var px = totalHeaderHeight + 1 + \"px\";\n        this.comp.setHeightAndMinHeight(px);\n    };\n    GridHeaderCtrl.prototype.onPivotModeChanged = function () {\n        var pivotMode = this.columnModel.isPivotMode();\n        this.comp.addOrRemoveCssClass('ag-pivot-on', pivotMode);\n        this.comp.addOrRemoveCssClass('ag-pivot-off', !pivotMode);\n    };\n    GridHeaderCtrl.prototype.onTabKeyDown = function (e) {\n        var isRtl = this.gridOptionsWrapper.isEnableRtl();\n        var direction = e.shiftKey !== isRtl\n            ? exports.HeaderNavigationDirection.LEFT\n            : exports.HeaderNavigationDirection.RIGHT;\n        if (this.headerNavigationService.navigateHorizontally(direction, true, e) ||\n            this.focusService.focusNextGridCoreContainer(e.shiftKey)) {\n            e.preventDefault();\n        }\n    };\n    GridHeaderCtrl.prototype.handleKeyDown = function (e) {\n        var direction = null;\n        switch (e.key) {\n            case KeyCode.LEFT:\n                direction = exports.HeaderNavigationDirection.LEFT;\n            case KeyCode.RIGHT:\n                if (!exists(direction)) {\n                    direction = exports.HeaderNavigationDirection.RIGHT;\n                }\n                this.headerNavigationService.navigateHorizontally(direction, false, e);\n                break;\n            case KeyCode.UP:\n                direction = exports.HeaderNavigationDirection.UP;\n            case KeyCode.DOWN:\n                if (!exists(direction)) {\n                    direction = exports.HeaderNavigationDirection.DOWN;\n                }\n                if (this.headerNavigationService.navigateVertically(direction, null, e)) {\n                    e.preventDefault();\n                }\n                break;\n            default:\n                return;\n        }\n    };\n    GridHeaderCtrl.prototype.onFocusOut = function (e) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var relatedTarget = e.relatedTarget;\n        if (!relatedTarget && this.eGui.contains(eDocument.activeElement)) {\n            return;\n        }\n        if (!this.eGui.contains(relatedTarget)) {\n            this.focusService.clearFocusedHeader();\n        }\n    };\n    __decorate$1m([\n        Autowired('headerNavigationService')\n    ], GridHeaderCtrl.prototype, \"headerNavigationService\", void 0);\n    __decorate$1m([\n        Autowired('focusService')\n    ], GridHeaderCtrl.prototype, \"focusService\", void 0);\n    __decorate$1m([\n        Autowired('columnModel')\n    ], GridHeaderCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1m([\n        Autowired('ctrlsService')\n    ], GridHeaderCtrl.prototype, \"ctrlsService\", void 0);\n    return GridHeaderCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1A = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GridHeaderComp = /** @class */ (function (_super) {\n    __extends$1A(GridHeaderComp, _super);\n    function GridHeaderComp() {\n        return _super.call(this, GridHeaderComp.TEMPLATE) || this;\n    }\n    GridHeaderComp.prototype.postConstruct = function () {\n        var _this = this;\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            setHeightAndMinHeight: function (height) {\n                _this.getGui().style.height = height;\n                _this.getGui().style.minHeight = height;\n            }\n        };\n        var ctrl = this.createManagedBean(new GridHeaderCtrl());\n        ctrl.setComp(compProxy, this.getGui(), this.getFocusableElement());\n        var addContainer = function (container) {\n            _this.createManagedBean(container);\n            _this.appendChild(container);\n        };\n        addContainer(new HeaderRowContainerComp(Constants.PINNED_LEFT));\n        addContainer(new HeaderRowContainerComp(null));\n        addContainer(new HeaderRowContainerComp(Constants.PINNED_RIGHT));\n    };\n    GridHeaderComp.TEMPLATE = \"<div class=\\\"ag-header\\\" role=\\\"presentation\\\"/>\";\n    __decorate$1n([\n        PostConstruct\n    ], GridHeaderComp.prototype, \"postConstruct\", null);\n    return GridHeaderComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1B = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HorizontalResizeService = /** @class */ (function (_super) {\n    __extends$1B(HorizontalResizeService, _super);\n    function HorizontalResizeService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    HorizontalResizeService.prototype.addResizeBar = function (params) {\n        var _this = this;\n        var dragSource = {\n            dragStartPixels: params.dragStartPixels || 0,\n            eElement: params.eResizeBar,\n            onDragStart: this.onDragStart.bind(this, params),\n            onDragStop: this.onDragStop.bind(this, params),\n            onDragging: this.onDragging.bind(this, params)\n        };\n        this.dragService.addDragSource(dragSource, true);\n        // we pass remove func back to the caller, so call can tell us when they\n        // are finished, and then we remove the listener from the drag source\n        var finishedWithResizeFunc = function () { return _this.dragService.removeDragSource(dragSource); };\n        return finishedWithResizeFunc;\n    };\n    HorizontalResizeService.prototype.onDragStart = function (params, mouseEvent) {\n        this.dragStartX = mouseEvent.clientX;\n        this.setResizeIcons();\n        var shiftKey = mouseEvent instanceof MouseEvent && mouseEvent.shiftKey === true;\n        params.onResizeStart(shiftKey);\n    };\n    HorizontalResizeService.prototype.setResizeIcons = function () {\n        var ctrl = this.ctrlsService.getGridCtrl();\n        // change the body cursor, so when drag moves out of the drag bar, the cursor is still 'resize' (or 'move'\n        ctrl.setResizeCursor(true);\n        // we don't want text selection outside the grid (otherwise it looks weird as text highlights when we move)\n        ctrl.disableUserSelect(true);\n    };\n    HorizontalResizeService.prototype.onDragStop = function (params, mouseEvent) {\n        params.onResizeEnd(this.resizeAmount);\n        this.resetIcons();\n    };\n    HorizontalResizeService.prototype.resetIcons = function () {\n        var ctrl = this.ctrlsService.getGridCtrl();\n        ctrl.setResizeCursor(false);\n        ctrl.disableUserSelect(false);\n    };\n    HorizontalResizeService.prototype.onDragging = function (params, mouseEvent) {\n        this.resizeAmount = mouseEvent.clientX - this.dragStartX;\n        params.onResizing(this.resizeAmount);\n    };\n    __decorate$1o([\n        Autowired('dragService')\n    ], HorizontalResizeService.prototype, \"dragService\", void 0);\n    __decorate$1o([\n        Autowired('ctrlsService')\n    ], HorizontalResizeService.prototype, \"ctrlsService\", void 0);\n    HorizontalResizeService = __decorate$1o([\n        Bean('horizontalResizeService')\n    ], HorizontalResizeService);\n    return HorizontalResizeService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1C = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar StandardMenuFactory = /** @class */ (function (_super) {\n    __extends$1C(StandardMenuFactory, _super);\n    function StandardMenuFactory() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    StandardMenuFactory.prototype.hideActiveMenu = function () {\n        if (this.hidePopup) {\n            this.hidePopup();\n        }\n    };\n    StandardMenuFactory.prototype.showMenuAfterMouseEvent = function (column, mouseEvent) {\n        var _this = this;\n        this.showPopup(column, function (eMenu) {\n            _this.popupService.positionPopupUnderMouseEvent({\n                column: column,\n                type: 'columnMenu',\n                mouseEvent: mouseEvent,\n                ePopup: eMenu\n            });\n        }, mouseEvent.target);\n    };\n    StandardMenuFactory.prototype.showMenuAfterButtonClick = function (column, eventSource, containerType) {\n        var _this = this;\n        this.showPopup(column, function (eMenu) {\n            _this.popupService.positionPopupUnderComponent({\n                type: containerType,\n                eventSource: eventSource,\n                ePopup: eMenu,\n                keepWithinBounds: true,\n                column: column\n            });\n        }, eventSource);\n    };\n    StandardMenuFactory.prototype.showPopup = function (column, positionCallback, eventSource) {\n        var _this = this;\n        var filterWrapper = this.filterManager.getOrCreateFilterWrapper(column, 'COLUMN_MENU');\n        if (!filterWrapper) {\n            throw new Error('AG Grid - unable to show popup filter, filter instantiation failed');\n        }\n        var eMenu = document.createElement('div');\n        setAriaRole(eMenu, 'presentation');\n        eMenu.classList.add('ag-menu');\n        this.tabListener = this.addManagedListener(eMenu, 'keydown', function (e) { return _this.trapFocusWithin(e, eMenu); });\n        filterWrapper.guiPromise.then(function (gui) { return eMenu.appendChild(gui); });\n        var hidePopup;\n        var anchorToElement = eventSource || this.ctrlsService.getGridBodyCtrl().getGui();\n        var closedCallback = function (e) {\n            column.setMenuVisible(false, 'contextMenu');\n            var isKeyboardEvent = e instanceof KeyboardEvent;\n            if (_this.tabListener) {\n                _this.tabListener = _this.tabListener();\n            }\n            if (isKeyboardEvent && eventSource && isVisible(eventSource)) {\n                var focusableEl = _this.focusService.findTabbableParent(eventSource);\n                if (focusableEl) {\n                    focusableEl.focus();\n                }\n            }\n        };\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = this.popupService.addPopup({\n            modal: true,\n            eChild: eMenu,\n            closeOnEsc: true,\n            closedCallback: closedCallback,\n            positionCallback: function () { return positionCallback(eMenu); },\n            anchorToElement: anchorToElement,\n            ariaLabel: translate('ariaLabelColumnMenu', 'Column Menu')\n        });\n        if (addPopupRes) {\n            this.hidePopup = hidePopup = addPopupRes.hideFunc;\n        }\n        filterWrapper.filterPromise.then(function (filter) {\n            // need to make sure the filter is present before positioning, as only\n            // after filter it is visible can we find out what the width of it is\n            positionCallback(eMenu);\n            if (filter.afterGuiAttached) {\n                filter.afterGuiAttached({ container: 'columnMenu', hidePopup: hidePopup });\n            }\n        });\n        column.setMenuVisible(true, 'contextMenu');\n    };\n    StandardMenuFactory.prototype.trapFocusWithin = function (e, menu) {\n        if (e.key !== KeyCode.TAB ||\n            e.defaultPrevented ||\n            this.focusService.findNextFocusableElement(menu, false, e.shiftKey)) {\n            return;\n        }\n        e.preventDefault();\n        this.focusService.focusInto(menu, e.shiftKey);\n    };\n    StandardMenuFactory.prototype.isMenuEnabled = function (column) {\n        // for standard, we show menu if filter is enabled, and the menu is not suppressed\n        return column.isFilterAllowed();\n    };\n    __decorate$1p([\n        Autowired('filterManager')\n    ], StandardMenuFactory.prototype, \"filterManager\", void 0);\n    __decorate$1p([\n        Autowired('popupService')\n    ], StandardMenuFactory.prototype, \"popupService\", void 0);\n    __decorate$1p([\n        Autowired('focusService')\n    ], StandardMenuFactory.prototype, \"focusService\", void 0);\n    __decorate$1p([\n        Autowired('ctrlsService')\n    ], StandardMenuFactory.prototype, \"ctrlsService\", void 0);\n    StandardMenuFactory = __decorate$1p([\n        Bean('menuFactory')\n    ], StandardMenuFactory);\n    return StandardMenuFactory;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1D = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TabbedLayout = /** @class */ (function (_super) {\n    __extends$1D(TabbedLayout, _super);\n    function TabbedLayout(params) {\n        var _this = _super.call(this, TabbedLayout.getTemplate(params.cssClass)) || this;\n        _this.items = [];\n        _this.tabbedItemScrollMap = new Map();\n        _this.params = params;\n        if (params.items) {\n            params.items.forEach(function (item) { return _this.addItem(item); });\n        }\n        return _this;\n    }\n    TabbedLayout.prototype.postConstruct = function () {\n        this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n            onTabKeyDown: this.onTabKeyDown.bind(this),\n            handleKeyDown: this.handleKeyDown.bind(this)\n        }));\n    };\n    TabbedLayout.getTemplate = function (cssClass) {\n        return /* html */ \"<div class=\\\"ag-tabs \" + cssClass + \"\\\">\\n            <div ref=\\\"eHeader\\\" role=\\\"tablist\\\" class=\\\"ag-tabs-header \" + (cssClass ? cssClass + \"-header\" : '') + \"\\\"></div>\\n            <div ref=\\\"eBody\\\" role=\\\"presentation\\\" class=\\\"ag-tabs-body \" + (cssClass ? cssClass + \"-body\" : '') + \"\\\"></div>\\n        </div>\";\n    };\n    TabbedLayout.prototype.handleKeyDown = function (e) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        switch (e.key) {\n            case KeyCode.RIGHT:\n            case KeyCode.LEFT:\n                if (!this.eHeader.contains(eDocument.activeElement)) {\n                    return;\n                }\n                var currentPosition = this.items.indexOf(this.activeItem);\n                var nextPosition = e.key === KeyCode.RIGHT ? Math.min(currentPosition + 1, this.items.length - 1) : Math.max(currentPosition - 1, 0);\n                if (currentPosition === nextPosition) {\n                    return;\n                }\n                e.preventDefault();\n                var nextItem = this.items[nextPosition];\n                this.showItemWrapper(nextItem);\n                nextItem.eHeaderButton.focus();\n                break;\n            case KeyCode.UP:\n            case KeyCode.DOWN:\n                e.stopPropagation();\n                break;\n        }\n    };\n    TabbedLayout.prototype.onTabKeyDown = function (e) {\n        if (e.defaultPrevented) {\n            return;\n        }\n        var _a = this, focusService = _a.focusService, eHeader = _a.eHeader, eBody = _a.eBody, activeItem = _a.activeItem;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeElement = eDocument.activeElement;\n        e.preventDefault();\n        if (eHeader.contains(activeElement)) {\n            // focus is in header, move into body of popup\n            focusService.focusInto(eBody, e.shiftKey);\n        }\n        else {\n            // focus is in body, establish if it should return to header\n            if (focusService.isFocusUnderManagedComponent(eBody)) {\n                // focus was in a managed focus component and has now left, so we can return to the header\n                activeItem.eHeaderButton.focus();\n            }\n            else {\n                var nextEl = focusService.findNextFocusableElement(eBody, false, e.shiftKey);\n                if (nextEl) {\n                    // if another element exists in the body that can be focussed, go to that\n                    nextEl.focus();\n                }\n                else {\n                    // otherwise return to the header\n                    activeItem.eHeaderButton.focus();\n                }\n            }\n        }\n    };\n    TabbedLayout.prototype.setAfterAttachedParams = function (params) {\n        this.afterAttachedParams = params;\n    };\n    TabbedLayout.prototype.showFirstItem = function () {\n        if (this.items.length > 0) {\n            this.showItemWrapper(this.items[0]);\n        }\n    };\n    TabbedLayout.prototype.addItem = function (item) {\n        var eHeaderButton = document.createElement('span');\n        setAriaRole(eHeaderButton, 'tab');\n        eHeaderButton.setAttribute('tabIndex', '-1');\n        eHeaderButton.appendChild(item.title);\n        eHeaderButton.classList.add('ag-tab');\n        this.eHeader.appendChild(eHeaderButton);\n        setAriaLabel(eHeaderButton, item.titleLabel);\n        var wrapper = {\n            tabbedItem: item,\n            eHeaderButton: eHeaderButton\n        };\n        this.items.push(wrapper);\n        eHeaderButton.addEventListener('click', this.showItemWrapper.bind(this, wrapper));\n    };\n    TabbedLayout.prototype.showItem = function (tabbedItem) {\n        var itemWrapper = this.items.find(function (wrapper) { return wrapper.tabbedItem === tabbedItem; });\n        if (itemWrapper) {\n            this.showItemWrapper(itemWrapper);\n        }\n    };\n    TabbedLayout.prototype.showItemWrapper = function (wrapper) {\n        var _this = this;\n        var tabbedItem = wrapper.tabbedItem, eHeaderButton = wrapper.eHeaderButton;\n        if (this.params.onItemClicked) {\n            this.params.onItemClicked({ item: tabbedItem });\n        }\n        if (this.activeItem === wrapper) {\n            callIfPresent(this.params.onActiveItemClicked);\n            return;\n        }\n        if (this.lastScrollListener) {\n            this.lastScrollListener = this.lastScrollListener();\n        }\n        clearElement(this.eBody);\n        tabbedItem.bodyPromise.then(function (body) {\n            _this.eBody.appendChild(body);\n            var onlyUnmanaged = !_this.focusService.isKeyboardMode();\n            _this.focusService.focusInto(_this.eBody, false, onlyUnmanaged);\n            if (tabbedItem.afterAttachedCallback) {\n                tabbedItem.afterAttachedCallback(_this.afterAttachedParams);\n            }\n            if (_this.params.keepScrollPosition) {\n                var scrollableContainer_1 = (tabbedItem.getScrollableContainer && tabbedItem.getScrollableContainer()) || body;\n                _this.lastScrollListener = _this.addManagedListener(scrollableContainer_1, 'scroll', function () {\n                    _this.tabbedItemScrollMap.set(tabbedItem.name, scrollableContainer_1.scrollTop);\n                });\n                var scrollPosition_1 = _this.tabbedItemScrollMap.get(tabbedItem.name);\n                if (scrollPosition_1 !== undefined) {\n                    // Safari needs a small timeout or it will fire a scroll event to position 0\n                    setTimeout(function () {\n                        scrollableContainer_1.scrollTop = scrollPosition_1;\n                    }, 0);\n                }\n            }\n        });\n        if (this.activeItem) {\n            this.activeItem.eHeaderButton.classList.remove('ag-tab-selected');\n        }\n        eHeaderButton.classList.add('ag-tab-selected');\n        this.activeItem = wrapper;\n    };\n    __decorate$1q([\n        Autowired('focusService')\n    ], TabbedLayout.prototype, \"focusService\", void 0);\n    __decorate$1q([\n        RefSelector('eHeader')\n    ], TabbedLayout.prototype, \"eHeader\", void 0);\n    __decorate$1q([\n        RefSelector('eBody')\n    ], TabbedLayout.prototype, \"eBody\", void 0);\n    __decorate$1q([\n        PostConstruct\n    ], TabbedLayout.prototype, \"postConstruct\", null);\n    return TabbedLayout;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n/**\n * @deprecated\n */\nfunction simpleHttpRequest(params) {\n    return new AgPromise(function (resolve) {\n        var httpRequest = new XMLHttpRequest();\n        httpRequest.open('GET', params.url);\n        httpRequest.send();\n        httpRequest.onreadystatechange = function () {\n            if (httpRequest.readyState === 4 && httpRequest.status === 200) {\n                resolve(JSON.parse(httpRequest.responseText));\n            }\n        };\n    });\n}\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1E = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DEBOUNCE_DELAY = 50;\nvar ResizeObserverService = /** @class */ (function (_super) {\n    __extends$1E(ResizeObserverService, _super);\n    function ResizeObserverService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.polyfillFunctions = [];\n        return _this;\n    }\n    ResizeObserverService.prototype.observeResize = function (element, callback) {\n        var _this = this;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var win = (eDocument.defaultView || window);\n        // this gets fired too often and might cause some relayout issues\n        // so we add a debounce to the callback here to avoid the flashing effect.\n        var debouncedCallback = debounce(callback, DEBOUNCE_DELAY);\n        var useBrowserResizeObserver = function () {\n            var resizeObserver = new win.ResizeObserver(debouncedCallback);\n            resizeObserver.observe(element);\n            return function () { return resizeObserver.disconnect(); };\n        };\n        var usePolyfill = function () {\n            // initialise to the current width and height, so first call will have no changes\n            var widthLastTime = offsetWidth(element);\n            var heightLastTime = offsetHeight(element);\n            // when finished, this gets turned to false.\n            var running = true;\n            var periodicallyCheckWidthAndHeight = function () {\n                if (running) {\n                    var newWidth = offsetWidth(element);\n                    var newHeight = offsetHeight(element);\n                    var changed = newWidth !== widthLastTime || newHeight !== heightLastTime;\n                    if (changed) {\n                        widthLastTime = newWidth;\n                        heightLastTime = newHeight;\n                        callback();\n                    }\n                    _this.doNextPolyfillTurn(periodicallyCheckWidthAndHeight);\n                }\n            };\n            periodicallyCheckWidthAndHeight();\n            // the callback function we return sets running to false\n            return function () { return running = false; };\n        };\n        var suppressResize = this.gridOptionsWrapper.isSuppressBrowserResizeObserver();\n        var resizeObserverExists = !!win.ResizeObserver;\n        if (resizeObserverExists && !suppressResize) {\n            return useBrowserResizeObserver();\n        }\n        return usePolyfill();\n    };\n    ResizeObserverService.prototype.doNextPolyfillTurn = function (func) {\n        this.polyfillFunctions.push(func);\n        this.schedulePolyfill();\n    };\n    ResizeObserverService.prototype.schedulePolyfill = function () {\n        var _this = this;\n        if (this.polyfillScheduled) {\n            return;\n        }\n        var executeAllFuncs = function () {\n            var funcs = _this.polyfillFunctions;\n            // make sure set scheduled to false and clear clear array\n            // before executing the funcs, as the funcs could add more funcs\n            _this.polyfillScheduled = false;\n            _this.polyfillFunctions = [];\n            funcs.forEach(function (f) { return f(); });\n        };\n        this.polyfillScheduled = true;\n        this.getFrameworkOverrides().setTimeout(executeAllFuncs, DEBOUNCE_DELAY);\n    };\n    ResizeObserverService = __decorate$1r([\n        Bean('resizeObserverService')\n    ], ResizeObserverService);\n    return ResizeObserverService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1F = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AnimationFrameService = /** @class */ (function (_super) {\n    __extends$1F(AnimationFrameService, _super);\n    function AnimationFrameService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        // p1 and p2 are create tasks are to do with row and cell creation.\n        // for them we want to execute according to row order, so we use\n        // TaskItem so we know what index the item is for.\n        _this.createTasksP1 = { list: [], sorted: false }; // eg drawing back-ground of rows\n        _this.createTasksP2 = { list: [], sorted: false }; // eg cell renderers, adding hover functionality\n        // destroy tasks are to do with row removal. they are done after row creation as the user will need to see new\n        // rows first (as blank is scrolled into view), when we remove the old rows (no longer in view) is not as\n        // important.\n        _this.destroyTasks = [];\n        _this.ticking = false;\n        // we need to know direction of scroll, to build up rows in the direction of\n        // the scroll. eg if user scrolls down, we extend the rows by building down.\n        _this.scrollGoingDown = true;\n        _this.lastScrollTop = 0;\n        _this.taskCount = 0;\n        _this.cancelledTasks = new Set();\n        return _this;\n    }\n    AnimationFrameService.prototype.setScrollTop = function (scrollTop) {\n        this.scrollGoingDown = scrollTop > this.lastScrollTop;\n        this.lastScrollTop = scrollTop;\n    };\n    AnimationFrameService.prototype.init = function () {\n        this.useAnimationFrame = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n    };\n    AnimationFrameService.prototype.isOn = function () {\n        return this.useAnimationFrame;\n    };\n    // this method is for our AG Grid sanity only - if animation frames are turned off,\n    // then no place in the code should be looking to add any work to be done in animation\n    // frames. this stops bugs - where some code is asking for a frame to be executed\n    // when it should not.\n    AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {\n        if (this.useAnimationFrame === false) {\n            console.warn(\"AG Grid: AnimationFrameService.\" + methodName + \" called but animation frames are off\");\n        }\n    };\n    AnimationFrameService.prototype.createTask = function (task, index, list) {\n        this.verifyAnimationFrameOn(list);\n        var taskItem = { task: task, index: index, createOrder: ++this.taskCount };\n        this.addTaskToList(this[list], taskItem);\n        this.schedule();\n    };\n    AnimationFrameService.prototype.cancelTask = function (task) {\n        this.cancelledTasks.add(task);\n    };\n    AnimationFrameService.prototype.addTaskToList = function (taskList, task) {\n        taskList.list.push(task);\n        taskList.sorted = false;\n    };\n    AnimationFrameService.prototype.sortTaskList = function (taskList) {\n        if (taskList.sorted) {\n            return;\n        }\n        var sortDirection = this.scrollGoingDown ? 1 : -1;\n        // sort first by row index (taking into account scroll direction), then by\n        // order of task creation (always ascending, so cells will render left-to-right)\n        taskList.list.sort(function (a, b) { return a.index !== b.index ? sortDirection * (b.index - a.index) : b.createOrder - a.createOrder; });\n        taskList.sorted = true;\n    };\n    AnimationFrameService.prototype.addDestroyTask = function (task) {\n        this.verifyAnimationFrameOn('createTasksP3');\n        this.destroyTasks.push(task);\n        this.schedule();\n    };\n    AnimationFrameService.prototype.executeFrame = function (millis) {\n        this.verifyAnimationFrameOn('executeFrame');\n        var p1TaskList = this.createTasksP1;\n        var p1Tasks = p1TaskList.list;\n        var p2TaskList = this.createTasksP2;\n        var p2Tasks = p2TaskList.list;\n        var destroyTasks = this.destroyTasks;\n        var frameStart = new Date().getTime();\n        var duration = (new Date().getTime()) - frameStart;\n        // 16ms is 60 fps\n        var noMaxMillis = millis <= 0;\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        while (noMaxMillis || duration < millis) {\n            var gridBodyDidSomething = gridBodyCon.getScrollFeature().executeAnimationFrameScroll();\n            if (!gridBodyDidSomething) {\n                var task = void 0;\n                if (p1Tasks.length) {\n                    this.sortTaskList(p1TaskList);\n                    task = p1Tasks.pop().task;\n                }\n                else if (p2Tasks.length) {\n                    this.sortTaskList(p2TaskList);\n                    task = p2Tasks.pop().task;\n                }\n                else if (destroyTasks.length) {\n                    task = destroyTasks.pop();\n                }\n                else {\n                    this.cancelledTasks.clear();\n                    break;\n                }\n                if (!this.cancelledTasks.has(task)) {\n                    task();\n                }\n            }\n            duration = (new Date().getTime()) - frameStart;\n        }\n        if (p1Tasks.length || p2Tasks.length || destroyTasks.length) {\n            this.requestFrame();\n        }\n        else {\n            this.stopTicking();\n        }\n    };\n    AnimationFrameService.prototype.stopTicking = function () {\n        this.ticking = false;\n    };\n    AnimationFrameService.prototype.flushAllFrames = function () {\n        if (!this.useAnimationFrame) {\n            return;\n        }\n        this.executeFrame(-1);\n    };\n    AnimationFrameService.prototype.schedule = function () {\n        if (!this.useAnimationFrame) {\n            return;\n        }\n        if (!this.ticking) {\n            this.ticking = true;\n            this.requestFrame();\n        }\n    };\n    AnimationFrameService.prototype.requestFrame = function () {\n        // check for the existence of requestAnimationFrame, and if\n        // it's missing, then we polyfill it with setTimeout()\n        var callback = this.executeFrame.bind(this, 60);\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var win = (eDocument.defaultView || window);\n        if (win.requestAnimationFrame) {\n            win.requestAnimationFrame(callback);\n        }\n        else if (win.webkitRequestAnimationFrame) {\n            win.webkitRequestAnimationFrame(callback);\n        }\n        else {\n            win.setTimeout(callback, 0);\n        }\n    };\n    AnimationFrameService.prototype.isQueueEmpty = function () {\n        return !this.ticking;\n    };\n    // a debounce utility used for parts of the app involved with rendering.\n    // the advantage over normal debounce is the client can call flushAllFrames()\n    // to make sure all rendering is complete. we don't wait any milliseconds,\n    // as this is intended to batch calls in one VM turn.\n    AnimationFrameService.prototype.debounce = function (func) {\n        var _this = this;\n        var pending = false;\n        return function () {\n            if (!_this.isOn()) {\n                _this.getFrameworkOverrides().setTimeout(func, 0);\n                return;\n            }\n            if (pending) {\n                return;\n            }\n            pending = true;\n            _this.addDestroyTask(function () {\n                pending = false;\n                func();\n            });\n        };\n    };\n    __decorate$1s([\n        Autowired('ctrlsService')\n    ], AnimationFrameService.prototype, \"ctrlsService\", void 0);\n    __decorate$1s([\n        PostConstruct\n    ], AnimationFrameService.prototype, \"init\", null);\n    AnimationFrameService = __decorate$1s([\n        Bean('animationFrameService')\n    ], AnimationFrameService);\n    return AnimationFrameService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1G = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RESIZE_CONTAINER_STYLE = 'ag-resizer-wrapper';\nvar RESIZE_TEMPLATE = /* html */ \"<div class=\\\"\" + RESIZE_CONTAINER_STYLE + \"\\\">\\n        <div ref=\\\"eTopLeftResizer\\\" class=\\\"ag-resizer ag-resizer-topLeft\\\"></div>\\n        <div ref=\\\"eTopResizer\\\" class=\\\"ag-resizer ag-resizer-top\\\"></div>\\n        <div ref=\\\"eTopRightResizer\\\" class=\\\"ag-resizer ag-resizer-topRight\\\"></div>\\n        <div ref=\\\"eRightResizer\\\" class=\\\"ag-resizer ag-resizer-right\\\"></div>\\n        <div ref=\\\"eBottomRightResizer\\\" class=\\\"ag-resizer ag-resizer-bottomRight\\\"></div>\\n        <div ref=\\\"eBottomResizer\\\" class=\\\"ag-resizer ag-resizer-bottom\\\"></div>\\n        <div ref=\\\"eBottomLeftResizer\\\" class=\\\"ag-resizer ag-resizer-bottomLeft\\\"></div>\\n        <div ref=\\\"eLeftResizer\\\" class=\\\"ag-resizer ag-resizer-left\\\"></div>\\n    </div>\";\nvar PositionableFeature = /** @class */ (function (_super) {\n    __extends$1G(PositionableFeature, _super);\n    function PositionableFeature(element, config) {\n        var _this = _super.call(this) || this;\n        _this.element = element;\n        _this.dragStartPosition = {\n            x: 0,\n            y: 0\n        };\n        _this.position = {\n            x: 0,\n            y: 0\n        };\n        _this.lastSize = {\n            width: -1,\n            height: -1\n        };\n        _this.positioned = false;\n        _this.resizersAdded = false;\n        _this.resizeListeners = [];\n        _this.boundaryEl = null;\n        _this.isResizing = false;\n        _this.isMoving = false;\n        _this.resizable = {};\n        _this.movable = false;\n        _this.currentResizer = null;\n        _this.config = Object.assign({}, { popup: false }, config);\n        return _this;\n    }\n    PositionableFeature.prototype.center = function () {\n        var _a = this.offsetParent, clientHeight = _a.clientHeight, clientWidth = _a.clientWidth;\n        var x = (clientWidth / 2) - (this.getWidth() / 2);\n        var y = (clientHeight / 2) - (this.getHeight() / 2);\n        this.offsetElement(x, y);\n    };\n    PositionableFeature.prototype.initialisePosition = function () {\n        var _a = this.config, centered = _a.centered, forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent, minWidth = _a.minWidth, width = _a.width, minHeight = _a.minHeight, height = _a.height, x = _a.x, y = _a.y;\n        if (!this.offsetParent) {\n            this.setOffsetParent();\n        }\n        var computedMinHeight = 0;\n        var computedMinWidth = 0;\n        // here we don't use the main offset parent but the element's offsetParent\n        // in order to calculated the minWidth and minHeight correctly\n        var isVisible = !!this.element.offsetParent;\n        if (isVisible) {\n            var boundaryEl = this.findBoundaryElement();\n            var offsetParentComputedStyles = window.getComputedStyle(boundaryEl);\n            if (offsetParentComputedStyles.minWidth != null) {\n                var paddingWidth = boundaryEl.offsetWidth - this.element.offsetWidth;\n                computedMinWidth = parseInt(offsetParentComputedStyles.minWidth, 10) - paddingWidth;\n            }\n            if (offsetParentComputedStyles.minHeight != null) {\n                var paddingHeight = boundaryEl.offsetHeight - this.element.offsetHeight;\n                computedMinHeight = parseInt(offsetParentComputedStyles.minHeight, 10) - paddingHeight;\n            }\n        }\n        this.minHeight = minHeight || computedMinHeight;\n        this.minWidth = minWidth || computedMinWidth;\n        if (width) {\n            this.setWidth(width);\n        }\n        if (height) {\n            this.setHeight(height);\n        }\n        if (!width || !height) {\n            this.refreshSize();\n        }\n        if (centered) {\n            this.center();\n        }\n        else if (x || y) {\n            this.offsetElement(x, y);\n        }\n        else if (isVisible && forcePopupParentAsOffsetParent && this.boundaryEl) {\n            var top_1 = parseFloat(this.boundaryEl.style.top);\n            var left = parseFloat(this.boundaryEl.style.left);\n            this.offsetElement(isNaN(left) ? 0 : left, isNaN(top_1) ? 0 : top_1);\n        }\n        this.positioned = !!this.offsetParent;\n    };\n    PositionableFeature.prototype.isPositioned = function () {\n        return this.positioned;\n    };\n    PositionableFeature.prototype.getPosition = function () {\n        return this.position;\n    };\n    PositionableFeature.prototype.setMovable = function (movable, moveElement) {\n        if (!this.config.popup || movable === this.movable) {\n            return;\n        }\n        this.movable = movable;\n        var params = this.moveElementDragListener || {\n            eElement: moveElement,\n            onDragStart: this.onMoveStart.bind(this),\n            onDragging: this.onMove.bind(this),\n            onDragStop: this.onMoveEnd.bind(this)\n        };\n        if (movable) {\n            this.dragService.addDragSource(params);\n            this.moveElementDragListener = params;\n        }\n        else {\n            this.dragService.removeDragSource(params);\n            this.moveElementDragListener = undefined;\n        }\n    };\n    PositionableFeature.prototype.setResizable = function (resizable) {\n        var _this = this;\n        this.clearResizeListeners();\n        if (resizable) {\n            this.addResizers();\n        }\n        else {\n            this.removeResizers();\n        }\n        if (typeof resizable === 'boolean') {\n            if (resizable === false) {\n                return;\n            }\n            resizable = {\n                topLeft: resizable,\n                top: resizable,\n                topRight: resizable,\n                right: resizable,\n                bottomRight: resizable,\n                bottom: resizable,\n                bottomLeft: resizable,\n                left: resizable\n            };\n        }\n        Object.keys(resizable).forEach(function (side) {\n            var resizableStructure = resizable;\n            var val = !!resizableStructure[side];\n            var resizerEl = _this.getResizerElement(side);\n            var params = {\n                dragStartPixels: 0,\n                eElement: resizerEl,\n                onDragStart: function (e) { return _this.onResizeStart(e, side); },\n                onDragging: _this.onResize.bind(_this),\n                onDragStop: function (e) { return _this.onResizeEnd(e, side); },\n            };\n            if (!!_this.resizable[side] !== val || (!_this.isAlive() && !val)) {\n                if (val) {\n                    _this.dragService.addDragSource(params);\n                    _this.resizeListeners.push(params);\n                    resizerEl.style.pointerEvents = 'all';\n                }\n                else {\n                    resizerEl.style.pointerEvents = 'none';\n                }\n            }\n        });\n    };\n    PositionableFeature.prototype.removeSizeFromEl = function () {\n        this.element.style.removeProperty('height');\n        this.element.style.removeProperty('width');\n        this.element.style.removeProperty('flex');\n    };\n    PositionableFeature.prototype.restoreLastSize = function () {\n        this.element.style.flex = '0 0 auto';\n        var _a = this.lastSize, height = _a.height, width = _a.width;\n        if (width !== -1) {\n            this.element.style.width = width + \"px\";\n        }\n        if (height !== -1) {\n            this.element.style.height = height + \"px\";\n        }\n    };\n    PositionableFeature.prototype.getHeight = function () {\n        return this.element.offsetHeight;\n    };\n    PositionableFeature.prototype.setHeight = function (height) {\n        var popup = this.config.popup;\n        var eGui = this.element;\n        var isPercent = false;\n        if (typeof height === 'string' && height.indexOf('%') !== -1) {\n            setFixedHeight(eGui, height);\n            height = getAbsoluteHeight(eGui);\n            isPercent = true;\n        }\n        else if (this.positioned) {\n            var elRect = this.element.getBoundingClientRect();\n            var parentRect = this.offsetParent.getBoundingClientRect();\n            height = Math.max(this.minHeight, height);\n            var clientHeight = this.offsetParent.clientHeight;\n            var yPosition = popup ? this.position.y : elRect.top;\n            var parentTop = popup ? 0 : parentRect.top;\n            if (clientHeight && (height + yPosition > clientHeight + parentTop)) {\n                height = clientHeight - yPosition;\n            }\n        }\n        if (this.getHeight() === height) {\n            return;\n        }\n        if (!isPercent) {\n            if (popup) {\n                setFixedHeight(eGui, height);\n            }\n            else {\n                eGui.style.height = height + \"px\";\n                eGui.style.flex = '0 0 auto';\n                this.lastSize.height = typeof height === 'number' ? height : parseFloat(height);\n            }\n        }\n        else {\n            eGui.style.maxHeight = 'unset';\n            eGui.style.minHeight = 'unset';\n        }\n    };\n    PositionableFeature.prototype.getWidth = function () {\n        return this.element.offsetWidth;\n    };\n    PositionableFeature.prototype.setWidth = function (width) {\n        var eGui = this.element;\n        var popup = this.config.popup;\n        var isPercent = false;\n        if (typeof width === 'string' && width.indexOf('%') !== -1) {\n            setFixedWidth(eGui, width);\n            width = getAbsoluteWidth(eGui);\n            isPercent = true;\n        }\n        else if (this.positioned) {\n            width = Math.max(this.minWidth, width);\n            var clientWidth = this.offsetParent.clientWidth;\n            var xPosition = popup ? this.position.x : this.element.getBoundingClientRect().left;\n            if (clientWidth && (width + xPosition > clientWidth)) {\n                width = clientWidth - xPosition;\n            }\n        }\n        if (this.getWidth() === width) {\n            return;\n        }\n        if (!isPercent) {\n            if (this.config.popup) {\n                setFixedWidth(eGui, width);\n            }\n            else {\n                eGui.style.width = width + \"px\";\n                eGui.style.flex = ' unset';\n                this.lastSize.width = typeof width === 'number' ? width : parseFloat(width);\n            }\n        }\n        else {\n            eGui.style.maxWidth = 'unset';\n            eGui.style.minWidth = 'unset';\n        }\n    };\n    PositionableFeature.prototype.offsetElement = function (x, y) {\n        if (x === void 0) { x = 0; }\n        if (y === void 0) { y = 0; }\n        var ePopup = this.config.forcePopupParentAsOffsetParent ? this.boundaryEl : this.element;\n        this.popupService.positionPopup({\n            ePopup: ePopup,\n            x: x,\n            y: y,\n            keepWithinBounds: true\n        });\n        this.setPosition(parseFloat(ePopup.style.left), parseFloat(ePopup.style.top));\n    };\n    PositionableFeature.prototype.setPosition = function (x, y) {\n        this.position.x = x;\n        this.position.y = y;\n    };\n    PositionableFeature.prototype.updateDragStartPosition = function (x, y) {\n        this.dragStartPosition = { x: x, y: y };\n    };\n    PositionableFeature.prototype.calculateMouseMovement = function (params) {\n        var e = params.e, isLeft = params.isLeft, isTop = params.isTop, anywhereWithin = params.anywhereWithin, topBuffer = params.topBuffer;\n        var xDiff = e.clientX - this.dragStartPosition.x;\n        var yDiff = e.clientY - this.dragStartPosition.y;\n        var movementX = this.shouldSkipX(e, !!isLeft, !!anywhereWithin, xDiff) ? 0 : xDiff;\n        var movementY = this.shouldSkipY(e, !!isTop, topBuffer, yDiff) ? 0 : yDiff;\n        return { movementX: movementX, movementY: movementY };\n    };\n    PositionableFeature.prototype.shouldSkipX = function (e, isLeft, anywhereWithin, diff) {\n        var elRect = this.element.getBoundingClientRect();\n        var parentRect = this.offsetParent.getBoundingClientRect();\n        var boundaryElRect = this.boundaryEl.getBoundingClientRect();\n        var xPosition = this.config.popup ? this.position.x : elRect.left;\n        // skip if cursor is outside of popupParent horizontally\n        var skipX = ((xPosition <= 0 && parentRect.left >= e.clientX) ||\n            (parentRect.right <= e.clientX && parentRect.right <= boundaryElRect.right));\n        if (skipX) {\n            return true;\n        }\n        if (isLeft) {\n            skipX = (\n            // skip if we are moving to the left and the cursor\n            // is positioned to the right of the left side anchor\n            (diff < 0 && e.clientX > xPosition + parentRect.left) ||\n                // skip if we are moving to the right and the cursor\n                // is positioned to the left of the dialog\n                (diff > 0 && e.clientX < xPosition + parentRect.left));\n        }\n        else {\n            if (anywhereWithin) {\n                // if anywhereWithin is true, we allow to move\n                // as long as the cursor is within the dialog\n                skipX = ((diff < 0 && e.clientX > boundaryElRect.right) ||\n                    (diff > 0 && e.clientX < xPosition + parentRect.left));\n            }\n            else {\n                skipX = (\n                // if the movement is bound to the right side of the dialog\n                // we skip if we are moving to the left and the cursor\n                // is to the right of the dialog\n                (diff < 0 && e.clientX > boundaryElRect.right) ||\n                    // or skip if we are moving to the right and the cursor\n                    // is to the left of the right side anchor\n                    (diff > 0 && e.clientX < boundaryElRect.right));\n            }\n        }\n        return skipX;\n    };\n    PositionableFeature.prototype.shouldSkipY = function (e, isTop, topBuffer, diff) {\n        if (topBuffer === void 0) { topBuffer = 0; }\n        var elRect = this.element.getBoundingClientRect();\n        var parentRect = this.offsetParent.getBoundingClientRect();\n        var boundaryElRect = this.boundaryEl.getBoundingClientRect();\n        var yPosition = this.config.popup ? this.position.y : elRect.top;\n        // skip if cursor is outside of popupParent vertically\n        var skipY = ((yPosition <= 0 && parentRect.top >= e.clientY) ||\n            (parentRect.bottom <= e.clientY && parentRect.bottom <= boundaryElRect.bottom));\n        if (skipY) {\n            return true;\n        }\n        if (isTop) {\n            skipY = (\n            // skip if we are moving to towards top and the cursor is\n            // below the top anchor + topBuffer\n            // note: topBuffer is used when moving the dialog using the title bar\n            (diff < 0 && e.clientY > yPosition + parentRect.top + topBuffer) ||\n                // skip if we are moving to the bottom and the cursor is\n                // above the top anchor\n                (diff > 0 && e.clientY < yPosition + parentRect.top));\n        }\n        else {\n            skipY = (\n            // skip if we are moving towards the top and the cursor\n            // is below the bottom anchor\n            (diff < 0 && e.clientY > boundaryElRect.bottom) ||\n                // skip if we are moving towards the bottom and the cursor\n                // is above the bottom anchor\n                (diff > 0 && e.clientY < boundaryElRect.bottom));\n        }\n        return skipY;\n    };\n    PositionableFeature.prototype.createResizeMap = function () {\n        var eGui = this.element;\n        this.resizerMap = {\n            topLeft: { element: eGui.querySelector('[ref=eTopLeftResizer]') },\n            top: { element: eGui.querySelector('[ref=eTopResizer]') },\n            topRight: { element: eGui.querySelector('[ref=eTopRightResizer]') },\n            right: { element: eGui.querySelector('[ref=eRightResizer]') },\n            bottomRight: { element: eGui.querySelector('[ref=eBottomRightResizer]') },\n            bottom: { element: eGui.querySelector('[ref=eBottomResizer]') },\n            bottomLeft: { element: eGui.querySelector('[ref=eBottomLeftResizer]') },\n            left: { element: eGui.querySelector('[ref=eLeftResizer]') }\n        };\n    };\n    PositionableFeature.prototype.addResizers = function () {\n        if (this.resizersAdded) {\n            return;\n        }\n        var eGui = this.element;\n        if (!eGui) {\n            return;\n        }\n        var parser = new DOMParser();\n        var resizers = parser.parseFromString(RESIZE_TEMPLATE, 'text/html').body;\n        eGui.appendChild(resizers.firstChild);\n        this.createResizeMap();\n        this.resizersAdded = true;\n    };\n    PositionableFeature.prototype.removeResizers = function () {\n        this.resizerMap = undefined;\n        var resizerEl = this.element.querySelector(\".\" + RESIZE_CONTAINER_STYLE);\n        if (resizerEl) {\n            this.element.removeChild(resizerEl);\n        }\n        this.resizersAdded = false;\n    };\n    PositionableFeature.prototype.getResizerElement = function (side) {\n        return this.resizerMap[side].element;\n    };\n    PositionableFeature.prototype.onResizeStart = function (e, side) {\n        this.boundaryEl = this.findBoundaryElement();\n        if (!this.positioned) {\n            this.initialisePosition();\n        }\n        this.currentResizer = {\n            isTop: !!side.match(/top/i),\n            isRight: !!side.match(/right/i),\n            isBottom: !!side.match(/bottom/i),\n            isLeft: !!side.match(/left/i),\n        };\n        this.element.classList.add('ag-resizing');\n        this.resizerMap[side].element.classList.add('ag-active');\n        var _a = this.config, popup = _a.popup, forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent;\n        if (!popup && !forcePopupParentAsOffsetParent) {\n            this.applySizeToSiblings(this.currentResizer.isBottom || this.currentResizer.isTop);\n        }\n        this.isResizing = true;\n        this.updateDragStartPosition(e.clientX, e.clientY);\n    };\n    PositionableFeature.prototype.getSiblings = function () {\n        var element = this.element;\n        var parent = element.parentElement;\n        if (!parent) {\n            return null;\n        }\n        return Array.prototype.slice.call(parent.children).filter(function (el) { return !el.classList.contains('ag-hidden'); });\n    };\n    PositionableFeature.prototype.getMinSizeOfSiblings = function () {\n        var siblings = this.getSiblings() || [];\n        var height = 0;\n        var width = 0;\n        for (var i = 0; i < siblings.length; i++) {\n            var currentEl = siblings[i];\n            var isFlex = !!currentEl.style.flex && currentEl.style.flex !== '0 0 auto';\n            if (currentEl === this.element) {\n                continue;\n            }\n            var nextHeight = this.minHeight || 0;\n            var nextWidth = this.minWidth || 0;\n            if (isFlex) {\n                var computedStyle = window.getComputedStyle(currentEl);\n                if (computedStyle.minHeight) {\n                    nextHeight = parseInt(computedStyle.minHeight, 10);\n                }\n                if (computedStyle.minWidth) {\n                    nextWidth = parseInt(computedStyle.minWidth, 10);\n                }\n            }\n            else {\n                nextHeight = currentEl.offsetHeight;\n                nextWidth = currentEl.offsetWidth;\n            }\n            height += nextHeight;\n            width += nextWidth;\n        }\n        return { height: height, width: width };\n    };\n    PositionableFeature.prototype.applySizeToSiblings = function (vertical) {\n        var containerToFlex = null;\n        var siblings = this.getSiblings();\n        if (!siblings) {\n            return;\n        }\n        for (var i = 0; i < siblings.length; i++) {\n            var el = siblings[i];\n            if (el === containerToFlex) {\n                continue;\n            }\n            if (vertical) {\n                el.style.height = el.offsetHeight + \"px\";\n            }\n            else {\n                el.style.width = el.offsetWidth + \"px\";\n            }\n            el.style.flex = '0 0 auto';\n            if (el === this.element) {\n                containerToFlex = siblings[i + 1];\n            }\n        }\n        if (containerToFlex) {\n            containerToFlex.style.removeProperty('height');\n            containerToFlex.style.removeProperty('min-height');\n            containerToFlex.style.removeProperty('max-height');\n            containerToFlex.style.flex = '1 1 auto';\n        }\n    };\n    PositionableFeature.prototype.onResize = function (e) {\n        if (!this.isResizing || !this.currentResizer) {\n            return;\n        }\n        var _a = this.config, popup = _a.popup, forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent;\n        var _b = this.currentResizer, isTop = _b.isTop, isRight = _b.isRight, isBottom = _b.isBottom, isLeft = _b.isLeft;\n        var isHorizontal = isRight || isLeft;\n        var isVertical = isBottom || isTop;\n        var _c = this.calculateMouseMovement({ e: e, isLeft: isLeft, isTop: isTop }), movementX = _c.movementX, movementY = _c.movementY;\n        var xPosition = this.position.x;\n        var yPosition = this.position.y;\n        var offsetLeft = 0;\n        var offsetTop = 0;\n        if (isHorizontal && movementX) {\n            var direction = isLeft ? -1 : 1;\n            var oldWidth = this.getWidth();\n            var newWidth = oldWidth + (movementX * direction);\n            var skipWidth = false;\n            if (isLeft) {\n                offsetLeft = oldWidth - newWidth;\n                if (xPosition + offsetLeft <= 0 || newWidth <= this.minWidth) {\n                    skipWidth = true;\n                    offsetLeft = 0;\n                }\n            }\n            if (!skipWidth) {\n                this.setWidth(newWidth);\n            }\n        }\n        if (isVertical && movementY) {\n            var direction = isTop ? -1 : 1;\n            var oldHeight = this.getHeight();\n            var newHeight = oldHeight + (movementY * direction);\n            var skipHeight = false;\n            if (isTop) {\n                offsetTop = oldHeight - newHeight;\n                if (yPosition + offsetTop <= 0 || newHeight <= this.minHeight) {\n                    skipHeight = true;\n                    offsetTop = 0;\n                }\n            }\n            else {\n                // do not let the size of all siblings be higher than the parent container\n                if (!this.config.popup &&\n                    !this.config.forcePopupParentAsOffsetParent &&\n                    oldHeight < newHeight &&\n                    (this.getMinSizeOfSiblings().height + newHeight) > this.element.parentElement.offsetHeight) {\n                    skipHeight = true;\n                }\n            }\n            if (!skipHeight) {\n                this.setHeight(newHeight);\n            }\n        }\n        this.updateDragStartPosition(e.clientX, e.clientY);\n        if ((popup || forcePopupParentAsOffsetParent) && offsetLeft || offsetTop) {\n            this.offsetElement(xPosition + offsetLeft, yPosition + offsetTop);\n        }\n    };\n    PositionableFeature.prototype.onResizeEnd = function (e, side) {\n        this.isResizing = false;\n        this.currentResizer = null;\n        this.boundaryEl = null;\n        var params = {\n            type: 'resize',\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi()\n        };\n        this.element.classList.remove('ag-resizing');\n        this.resizerMap[side].element.classList.remove('ag-active');\n        this.dispatchEvent(params);\n    };\n    PositionableFeature.prototype.refreshSize = function () {\n        var eGui = this.element;\n        if (this.config.popup) {\n            if (!this.config.width) {\n                this.setWidth(eGui.offsetWidth);\n            }\n            if (!this.config.height) {\n                this.setHeight(eGui.offsetHeight);\n            }\n        }\n    };\n    PositionableFeature.prototype.onMoveStart = function (e) {\n        this.boundaryEl = this.findBoundaryElement();\n        if (!this.positioned) {\n            this.initialisePosition();\n        }\n        this.isMoving = true;\n        this.element.classList.add('ag-moving');\n        this.updateDragStartPosition(e.clientX, e.clientY);\n    };\n    PositionableFeature.prototype.onMove = function (e) {\n        if (!this.isMoving) {\n            return;\n        }\n        var _a = this.position, x = _a.x, y = _a.y;\n        var topBuffer;\n        if (this.config.calculateTopBuffer) {\n            topBuffer = this.config.calculateTopBuffer();\n        }\n        var _b = this.calculateMouseMovement({\n            e: e,\n            isTop: true,\n            anywhereWithin: true,\n            topBuffer: topBuffer\n        }), movementX = _b.movementX, movementY = _b.movementY;\n        this.offsetElement(x + movementX, y + movementY);\n        this.updateDragStartPosition(e.clientX, e.clientY);\n    };\n    PositionableFeature.prototype.onMoveEnd = function () {\n        this.isMoving = false;\n        this.boundaryEl = null;\n        this.element.classList.remove('ag-moving');\n    };\n    PositionableFeature.prototype.setOffsetParent = function () {\n        if (this.config.forcePopupParentAsOffsetParent) {\n            this.offsetParent = this.popupService.getPopupParent();\n        }\n        else {\n            this.offsetParent = this.element.offsetParent;\n        }\n    };\n    PositionableFeature.prototype.findBoundaryElement = function () {\n        var el = this.element;\n        while (el) {\n            if (window.getComputedStyle(el).position !== 'static') {\n                return el;\n            }\n            el = el.parentElement;\n        }\n        return this.element;\n    };\n    PositionableFeature.prototype.clearResizeListeners = function () {\n        while (this.resizeListeners.length) {\n            var params = this.resizeListeners.pop();\n            this.dragService.removeDragSource(params);\n        }\n    };\n    PositionableFeature.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n        if (this.moveElementDragListener) {\n            this.dragService.removeDragSource(this.moveElementDragListener);\n        }\n        this.clearResizeListeners();\n        this.removeResizers();\n    };\n    __decorate$1t([\n        Autowired('popupService')\n    ], PositionableFeature.prototype, \"popupService\", void 0);\n    __decorate$1t([\n        Autowired('dragService')\n    ], PositionableFeature.prototype, \"dragService\", void 0);\n    return PositionableFeature;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1H = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1u = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AutoWidthCalculator = /** @class */ (function (_super) {\n    __extends$1H(AutoWidthCalculator, _super);\n    function AutoWidthCalculator() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    AutoWidthCalculator.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            _this.centerRowContainerCtrl = p.centerRowContainerCtrl;\n        });\n    };\n    // this is the trick: we create a dummy container and clone all the cells\n    // into the dummy, then check the dummy's width. then destroy the dummy\n    // as we don't need it any more.\n    // drawback: only the cells visible on the screen are considered\n    AutoWidthCalculator.prototype.getPreferredWidthForColumn = function (column, skipHeader) {\n        var eHeaderCell = this.getHeaderCellForColumn(column);\n        // cell isn't visible\n        if (!eHeaderCell) {\n            return -1;\n        }\n        var elements = this.rowRenderer.getAllCellsForColumn(column);\n        if (!skipHeader) {\n            // we only consider the lowest level cell, not the group cell. in 99% of the time, this\n            // will be enough. if we consider groups, then it gets too complicated for what it's worth,\n            // as the groups can span columns and this class only considers one column at a time.\n            elements.push(eHeaderCell);\n        }\n        return this.addElementsToContainerAndGetWidth(elements);\n    };\n    AutoWidthCalculator.prototype.getPreferredWidthForColumnGroup = function (columnGroup) {\n        var eHeaderCell = this.getHeaderCellForColumn(columnGroup);\n        if (!eHeaderCell) {\n            return -1;\n        }\n        return this.addElementsToContainerAndGetWidth([eHeaderCell]);\n    };\n    AutoWidthCalculator.prototype.addElementsToContainerAndGetWidth = function (elements) {\n        var _this = this;\n        var eDummyContainer = document.createElement('span');\n        // position fixed, so it isn't restricted to the boundaries of the parent\n        eDummyContainer.style.position = 'fixed';\n        // we put the dummy into the body container, so it will inherit all the\n        // css styles that the real cells are inheriting\n        var eBodyContainer = this.centerRowContainerCtrl.getContainerElement();\n        eBodyContainer.appendChild(eDummyContainer);\n        elements.forEach(function (el) { return _this.cloneItemIntoDummy(el, eDummyContainer); });\n        // at this point, all the clones are lined up vertically with natural widths. the dummy\n        // container will have a width wide enough just to fit the largest.\n        var dummyContainerWidth = eDummyContainer.offsetWidth;\n        // we are finished with the dummy container, so get rid of it\n        eBodyContainer.removeChild(eDummyContainer);\n        // we add padding as I found sometimes the gui still put '...' after some of the texts. so the\n        // user can configure the grid to add a few more pixels after the calculated width\n        var autoSizePadding = this.gridOptionsWrapper.getAutoSizePadding();\n        return dummyContainerWidth + autoSizePadding;\n    };\n    AutoWidthCalculator.prototype.getHeaderCellForColumn = function (column) {\n        /* tslint:enable */\n        var element = null;\n        this.ctrlsService.getHeaderRowContainerCtrls().forEach(function (container) {\n            var res = container.getHtmlElementForColumnHeader(column);\n            if (res != null) {\n                element = res;\n            }\n        });\n        return element;\n    };\n    AutoWidthCalculator.prototype.cloneItemIntoDummy = function (eCell, eDummyContainer) {\n        // make a deep clone of the cell\n        var eCellClone = eCell.cloneNode(true);\n        // the original has a fixed width, we remove this to allow the natural width based on content\n        eCellClone.style.width = '';\n        // the original has position = absolute, we need to remove this so it's positioned normally\n        eCellClone.style.position = 'static';\n        eCellClone.style.left = '';\n        // we put the cell into a containing div, as otherwise the cells would just line up\n        // on the same line, standard flow layout, by putting them into divs, they are laid\n        // out one per line\n        var eCloneParent = document.createElement('div');\n        var eCloneParentClassList = eCloneParent.classList;\n        var isHeader = ['ag-header-cell', 'ag-header-group-cell'].some(function (cls) { return eCellClone.classList.contains(cls); });\n        if (isHeader) {\n            eCloneParentClassList.add('ag-header', 'ag-header-row');\n            eCloneParent.style.position = 'static';\n        }\n        else {\n            eCloneParentClassList.add('ag-row');\n        }\n        // find parent using classes (headers have ag-header-cell, rows have ag-row), and copy classes from it.\n        // if we didn't do this, things like ag-row-level-2 would be missing if present, which sets indents\n        // onto group items.\n        var pointer = eCell.parentElement;\n        while (pointer) {\n            var isRow = ['ag-header-row', 'ag-row'].some(function (cls) { return pointer.classList.contains(cls); });\n            if (isRow) {\n                for (var i = 0; i < pointer.classList.length; i++) {\n                    var item = pointer.classList[i];\n                    // we skip ag-row-position-absolute, as this has structural CSS applied that stops the\n                    // element from fitting into it's parent, and we need the element to stretch the parent\n                    // as we are measuring the parents width\n                    if (item != 'ag-row-position-absolute') {\n                        eCloneParentClassList.add(item);\n                    }\n                }\n                break;\n            }\n            pointer = pointer.parentElement;\n        }\n        // the twig on the branch, the branch on the tree, the tree in the hole,\n        // the hole in the bog, the bog in the clone, the clone in the parent,\n        // the parent in the dummy, and the dummy down in the vall-e-ooo, OOOOOOOOO! Oh row the rattling bog....\n        eCloneParent.appendChild(eCellClone);\n        eDummyContainer.appendChild(eCloneParent);\n    };\n    __decorate$1u([\n        Autowired('rowRenderer')\n    ], AutoWidthCalculator.prototype, \"rowRenderer\", void 0);\n    __decorate$1u([\n        Autowired('ctrlsService')\n    ], AutoWidthCalculator.prototype, \"ctrlsService\", void 0);\n    __decorate$1u([\n        Autowired('rowCssClassCalculator')\n    ], AutoWidthCalculator.prototype, \"rowCssClassCalculator\", void 0);\n    __decorate$1u([\n        PostConstruct\n    ], AutoWidthCalculator.prototype, \"postConstruct\", null);\n    AutoWidthCalculator = __decorate$1u([\n        Bean('autoWidthCalculator')\n    ], AutoWidthCalculator);\n    return AutoWidthCalculator;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1I = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1v = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$d = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$a = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$d(arguments[i]));\n    return ar;\n};\nvar RowRenderer = /** @class */ (function (_super) {\n    __extends$1I(RowRenderer, _super);\n    function RowRenderer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.destroyFuncsForColumnListeners = [];\n        // map of row ids to row objects. keeps track of which elements\n        // are rendered for which rows in the dom.\n        _this.rowCtrlsByRowIndex = {};\n        _this.zombieRowCtrls = {};\n        _this.allRowCtrls = [];\n        _this.topRowCtrls = [];\n        _this.bottomRowCtrls = [];\n        // we only allow one refresh at a time, otherwise the internal memory structure here\n        // will get messed up. this can happen if the user has a cellRenderer, and inside the\n        // renderer they call an API method that results in another pass of the refresh,\n        // then it will be trying to draw rows in the middle of a refresh.\n        _this.refreshInProgress = false;\n        return _this;\n    }\n    RowRenderer.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function () {\n            _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n            _this.initialise();\n        });\n    };\n    RowRenderer.prototype.initialise = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_PAGINATION_CHANGED, this.onPageLoaded.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, this.redrawAfterScroll.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, this.redrawAfterScroll.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onDomLayoutChanged.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onNewColumnsLoaded.bind(this));\n        this.registerCellEventListeners();\n        this.initialiseCache();\n        this.printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        this.embedFullWidthRows = this.printLayout || this.gridOptionsWrapper.isEmbedFullWidthRows();\n        this.redrawAfterModelUpdate();\n    };\n    RowRenderer.prototype.initialiseCache = function () {\n        if (this.gridOptionsWrapper.isKeepDetailRows()) {\n            var countProp = this.gridOptionsWrapper.getKeepDetailRowsCount();\n            var count = countProp != null ? countProp : 3;\n            this.cachedRowCtrls = new RowCtrlCache(count);\n        }\n    };\n    RowRenderer.prototype.getRowCtrls = function () {\n        return this.allRowCtrls;\n    };\n    RowRenderer.prototype.updateAllRowCtrls = function () {\n        var liveList = getAllValuesInObject(this.rowCtrlsByRowIndex);\n        if (this.gridOptionsWrapper.isEnsureDomOrder()) {\n            liveList.sort(function (a, b) { return a.getRowNode().rowIndex - b.getRowNode.rowIndex; });\n        }\n        var zombieList = getAllValuesInObject(this.zombieRowCtrls);\n        var cachedList = this.cachedRowCtrls ? this.cachedRowCtrls.getEntries() : [];\n        this.allRowCtrls = __spread$a(liveList, zombieList, cachedList);\n    };\n    // in a clean design, each cell would register for each of these events. however when scrolling, all the cells\n    // registering and de-registering for events is a performance bottleneck. so we register here once and inform\n    // all active cells.\n    RowRenderer.prototype.registerCellEventListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_CELL_FOCUSED, function (event) {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onCellFocused(event); });\n            _this.getFullWidthRowCtrls().forEach(function (rowCtrl) {\n                rowCtrl.onFullWidthRowFocused(event);\n            });\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_FLASH_CELLS, function (event) {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onFlashCells(event); });\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, function () {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onColumnHover(); });\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, function () {\n            _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onDisplayedColumnsChanged(); });\n        });\n        // only for printLayout - because we are rendering all the cells in the same row, regardless of pinned state,\n        // then changing the width of the containers will impact left position. eg the center cols all have their\n        // left position adjusted by the width of the left pinned column, so if the pinned left column width changes,\n        // all the center cols need to be shifted to accommodate this. when in normal layout, the pinned cols are\n        // in different containers so doesn't impact.\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function () {\n            if (_this.printLayout) {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onLeftChanged(); });\n            }\n        });\n        var rangeSelectionEnabled = this.gridOptionsWrapper.isEnableRangeSelection();\n        if (rangeSelectionEnabled) {\n            this.addManagedListener(this.eventService, Events.EVENT_RANGE_SELECTION_CHANGED, function () {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onRangeSelectionChanged(); });\n            });\n            this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, function () {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.updateRangeBordersIfRangeCount(); });\n            });\n            this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, function () {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.updateRangeBordersIfRangeCount(); });\n            });\n            this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, function () {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.updateRangeBordersIfRangeCount(); });\n            });\n        }\n        // add listeners to the grid columns\n        this.refreshListenersToColumnsForCellComps();\n        // if the grid columns change, then refresh the listeners again\n        this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.refreshListenersToColumnsForCellComps.bind(this));\n        this.addDestroyFunc(this.removeGridColumnListeners.bind(this));\n    };\n    // executes all functions in destroyFuncsForColumnListeners and then clears the list\n    RowRenderer.prototype.removeGridColumnListeners = function () {\n        this.destroyFuncsForColumnListeners.forEach(function (func) { return func(); });\n        this.destroyFuncsForColumnListeners.length = 0;\n    };\n    // this function adds listeners onto all the grid columns, which are the column that we could have cellComps for.\n    // when the grid columns change, we add listeners again. in an ideal design, each CellComp would just register to\n    // the column it belongs to on creation, however this was a bottleneck with the number of cells, so do it here\n    // once instead.\n    RowRenderer.prototype.refreshListenersToColumnsForCellComps = function () {\n        var _this = this;\n        this.removeGridColumnListeners();\n        var cols = this.columnModel.getAllGridColumns();\n        if (!cols) {\n            return;\n        }\n        cols.forEach(function (col) {\n            var forEachCellWithThisCol = function (callback) {\n                _this.getAllCellCtrls().forEach(function (cellCtrl) {\n                    if (cellCtrl.getColumn() === col) {\n                        callback(cellCtrl);\n                    }\n                });\n            };\n            var leftChangedListener = function () {\n                forEachCellWithThisCol(function (cellCtrl) { return cellCtrl.onLeftChanged(); });\n            };\n            var widthChangedListener = function () {\n                forEachCellWithThisCol(function (cellCtrl) { return cellCtrl.onWidthChanged(); });\n            };\n            var firstRightPinnedChangedListener = function () {\n                forEachCellWithThisCol(function (cellCtrl) { return cellCtrl.onFirstRightPinnedChanged(); });\n            };\n            var lastLeftPinnedChangedListener = function () {\n                forEachCellWithThisCol(function (cellCtrl) { return cellCtrl.onLastLeftPinnedChanged(); });\n            };\n            col.addEventListener(Column.EVENT_LEFT_CHANGED, leftChangedListener);\n            col.addEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n            col.addEventListener(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, firstRightPinnedChangedListener);\n            col.addEventListener(Column.EVENT_LAST_LEFT_PINNED_CHANGED, lastLeftPinnedChangedListener);\n            _this.destroyFuncsForColumnListeners.push(function () {\n                col.removeEventListener(Column.EVENT_LEFT_CHANGED, leftChangedListener);\n                col.removeEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n                col.removeEventListener(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, firstRightPinnedChangedListener);\n                col.removeEventListener(Column.EVENT_LAST_LEFT_PINNED_CHANGED, lastLeftPinnedChangedListener);\n            });\n        });\n    };\n    RowRenderer.prototype.onDomLayoutChanged = function () {\n        var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        var embedFullWidthRows = printLayout || this.gridOptionsWrapper.isEmbedFullWidthRows();\n        // if moving towards or away from print layout, means we need to destroy all rows, as rows are not laid\n        // out using absolute positioning when doing print layout\n        var destroyRows = embedFullWidthRows !== this.embedFullWidthRows || this.printLayout !== printLayout;\n        this.printLayout = printLayout;\n        this.embedFullWidthRows = embedFullWidthRows;\n        if (destroyRows) {\n            this.redrawAfterModelUpdate();\n        }\n    };\n    // for row models that have datasources, when we update the datasource, we need to force the rowRenderer\n    // to redraw all rows. otherwise the old rows from the old datasource will stay displayed.\n    RowRenderer.prototype.datasourceChanged = function () {\n        this.firstRenderedRow = 0;\n        this.lastRenderedRow = -1;\n        var rowIndexesToRemove = Object.keys(this.rowCtrlsByRowIndex);\n        this.removeRowCtrls(rowIndexesToRemove);\n    };\n    RowRenderer.prototype.onPageLoaded = function (event) {\n        var params = {\n            recycleRows: event.keepRenderedRows,\n            animate: event.animate,\n            newData: event.newData,\n            newPage: event.newPage,\n            // because this is a model updated event (not pinned rows), we\n            // can skip updating the pinned rows. this is needed so that if user\n            // is doing transaction updates, the pinned rows are not getting constantly\n            // trashed - or editing cells in pinned rows are not refreshed and put into read mode\n            onlyBody: true\n        };\n        this.redrawAfterModelUpdate(params);\n    };\n    RowRenderer.prototype.getAllCellsForColumn = function (column) {\n        var res = [];\n        this.getAllRowCtrls().forEach(function (rowCtrl) {\n            var eCell = rowCtrl.getCellElement(column);\n            if (eCell) {\n                res.push(eCell);\n            }\n        });\n        return res;\n    };\n    RowRenderer.prototype.refreshFloatingRowComps = function () {\n        this.refreshFloatingRows(this.topRowCtrls, this.pinnedRowModel.getPinnedTopRowData());\n        this.refreshFloatingRows(this.bottomRowCtrls, this.pinnedRowModel.getPinnedBottomRowData());\n    };\n    RowRenderer.prototype.getTopRowCtrls = function () {\n        return this.topRowCtrls;\n    };\n    RowRenderer.prototype.getBottomRowCtrls = function () {\n        return this.bottomRowCtrls;\n    };\n    RowRenderer.prototype.refreshFloatingRows = function (rowComps, rowNodes) {\n        var _this = this;\n        rowComps.forEach(function (row) {\n            row.destroyFirstPass();\n            row.destroySecondPass();\n        });\n        rowComps.length = 0;\n        if (!rowNodes) {\n            return;\n        }\n        rowNodes.forEach(function (rowNode) {\n            var rowCtrl = new RowCtrl(rowNode, _this.beans, false, false, _this.printLayout);\n            rowComps.push(rowCtrl);\n        });\n    };\n    RowRenderer.prototype.onPinnedRowDataChanged = function () {\n        // recycling rows in order to ensure cell editing is not cancelled\n        var params = {\n            recycleRows: true\n        };\n        this.redrawAfterModelUpdate(params);\n    };\n    // if the row nodes are not rendered, no index is returned\n    RowRenderer.prototype.getRenderedIndexesForRowNodes = function (rowNodes) {\n        var result = [];\n        if (missing(rowNodes)) {\n            return result;\n        }\n        iterateObject(this.rowCtrlsByRowIndex, function (index, renderedRow) {\n            var rowNode = renderedRow.getRowNode();\n            if (rowNodes.indexOf(rowNode) >= 0) {\n                result.push(index);\n            }\n        });\n        return result;\n    };\n    RowRenderer.prototype.redrawRows = function (rowNodes) {\n        // if no row nodes provided, then refresh everything\n        var partialRefresh = rowNodes != null && rowNodes.length > 0;\n        if (partialRefresh) {\n            var indexesToRemove = this.getRenderedIndexesForRowNodes(rowNodes);\n            // remove the rows\n            this.removeRowCtrls(indexesToRemove);\n        }\n        // add draw them again\n        this.redrawAfterModelUpdate({\n            recycleRows: partialRefresh\n        });\n    };\n    RowRenderer.prototype.getCellToRestoreFocusToAfterRefresh = function (params) {\n        var focusedCell = params.suppressKeepFocus ? null : this.focusService.getFocusCellToUseAfterRefresh();\n        if (focusedCell == null) {\n            return null;\n        }\n        // if the dom is not actually focused on a cell, then we don't try to refocus. the problem this\n        // solves is with editing - if the user is editing, eg focus is on a text field, and not on the\n        // cell itself, then the cell can be registered as having focus, however it's the text field that\n        // has the focus and not the cell div. therefore, when the refresh is finished, the grid will focus\n        // the cell, and not the textfield. that means if the user is in a text field, and the grid refreshes,\n        // the focus is lost from the text field. we do not want this.\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeElement = eDocument.activeElement;\n        var cellDomData = this.gridOptionsWrapper.getDomData(activeElement, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n        var rowDomData = this.gridOptionsWrapper.getDomData(activeElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n        var gridElementFocused = cellDomData || rowDomData;\n        return gridElementFocused ? focusedCell : null;\n    };\n    // gets called from:\n    // +) initialisation (in registerGridComp) params = null\n    // +) onDomLayoutChanged, params = null\n    // +) onPageLoaded, recycleRows, animate, newData, newPage from event, onlyBody=true\n    // +) onPinnedRowDataChanged, recycleRows = true\n    // +) redrawRows (from Grid API), recycleRows = true/false\n    RowRenderer.prototype.redrawAfterModelUpdate = function (params) {\n        if (params === void 0) { params = {}; }\n        this.getLockOnRefresh();\n        var focusedCell = this.getCellToRestoreFocusToAfterRefresh(params);\n        this.updateContainerHeights();\n        this.scrollToTopIfNewData(params);\n        // never recycle rows when print layout, we draw each row again from scratch. this is because print layout\n        // uses normal dom layout to put cells into dom - it doesn't allow reordering rows.\n        var recycleRows = !this.printLayout && !!params.recycleRows;\n        var animate = params.animate && this.gridOptionsWrapper.isAnimateRows();\n        // after modelUpdate, row indexes can change, so we clear out the rowsByIndex map,\n        // however we can reuse the rows, so we keep them but index by rowNode.id\n        var rowsToRecycle = recycleRows ? this.recycleRows() : null;\n        if (!recycleRows) {\n            this.removeAllRowComps();\n        }\n        var isFocusedCellGettingRecycled = function () {\n            if (focusedCell == null || rowsToRecycle == null) {\n                return false;\n            }\n            var res = false;\n            iterateObject(rowsToRecycle, function (key, rowComp) {\n                var rowNode = rowComp.getRowNode();\n                var rowIndexEqual = rowNode.rowIndex == focusedCell.rowIndex;\n                var pinnedEqual = rowNode.rowPinned == focusedCell.rowPinned;\n                if (rowIndexEqual && pinnedEqual) {\n                    res = true;\n                }\n            });\n            return res;\n        };\n        var focusedCellRecycled = isFocusedCellGettingRecycled();\n        this.redraw(rowsToRecycle, animate);\n        if (!params.onlyBody) {\n            this.refreshFloatingRowComps();\n        }\n        this.dispatchDisplayedRowsChanged();\n        // if we focus a cell that's already focused, then we get an unnecessary 'cellFocused' event fired.\n        // this was happening when user clicked 'expand' on a rowGroup, then cellFocused was getting fired twice.\n        if (!focusedCellRecycled) {\n            this.restoreFocusedCell(focusedCell);\n        }\n        this.releaseLockOnRefresh();\n    };\n    RowRenderer.prototype.scrollToTopIfNewData = function (params) {\n        var scrollToTop = params.newData || params.newPage;\n        var suppressScrollToTop = this.gridOptionsWrapper.isSuppressScrollOnNewData();\n        if (scrollToTop && !suppressScrollToTop) {\n            this.gridBodyCtrl.getScrollFeature().scrollToTop();\n        }\n    };\n    RowRenderer.prototype.updateContainerHeights = function () {\n        // when doing print layout, we don't explicitly set height on the containers\n        if (this.printLayout) {\n            this.rowContainerHeightService.setModelHeight(null);\n            return;\n        }\n        var containerHeight = this.paginationProxy.getCurrentPageHeight();\n        // we need at least 1 pixel for the horizontal scroll to work. so if there are now rows,\n        // we still want the scroll to be present, otherwise there would be no way to scroll the header\n        // which might be needed us user wants to access columns\n        // on the RHS - and if that was where the filter was that cause no rows to be presented, there\n        // is no way to remove the filter.\n        if (containerHeight === 0) {\n            containerHeight = 1;\n        }\n        this.rowContainerHeightService.setModelHeight(containerHeight);\n    };\n    RowRenderer.prototype.getLockOnRefresh = function () {\n        if (this.refreshInProgress) {\n            throw new Error(\"AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. \" +\n                \"Your code probably called a grid API method while the grid was in the render stage. To overcome \" +\n                \"this, put the API call into a timeout, e.g. instead of api.redrawRows(), \" +\n                \"call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code \" +\n                \"that caused the refresh check this stacktrace.\");\n        }\n        this.refreshInProgress = true;\n    };\n    RowRenderer.prototype.releaseLockOnRefresh = function () {\n        this.refreshInProgress = false;\n    };\n    RowRenderer.prototype.isRefreshInProgress = function () {\n        return this.refreshInProgress;\n    };\n    // sets the focus to the provided cell, if the cell is provided. this way, the user can call refresh without\n    // worry about the focus been lost. this is important when the user is using keyboard navigation to do edits\n    // and the cellEditor is calling 'refresh' to get other cells to update (as other cells might depend on the\n    // edited cell).\n    RowRenderer.prototype.restoreFocusedCell = function (cellPosition) {\n        if (cellPosition) {\n            this.focusService.setFocusedCell(cellPosition.rowIndex, cellPosition.column, cellPosition.rowPinned, true);\n        }\n    };\n    RowRenderer.prototype.stopEditing = function (cancel) {\n        if (cancel === void 0) { cancel = false; }\n        this.getAllRowCtrls().forEach(function (rowCtrl) {\n            rowCtrl.stopEditing(cancel);\n        });\n    };\n    RowRenderer.prototype.onNewColumnsLoaded = function () {\n        // we don't want each cellComp to register for events, as would increase rendering time.\n        // so for newColumnsLoaded, we register once here (in rowRenderer) and then inform\n        // each cell if / when event was fired.\n        this.getAllCellCtrls().forEach(function (cellCtrl) { return cellCtrl.onNewColumnsLoaded(); });\n    };\n    RowRenderer.prototype.getAllCellCtrls = function () {\n        var res = [];\n        this.getAllRowCtrls().forEach(function (rowCtrl) { return res = res.concat(rowCtrl.getAllCellCtrls()); });\n        return res;\n    };\n    RowRenderer.prototype.getAllRowCtrls = function () {\n        var _this = this;\n        var res = __spread$a(this.topRowCtrls, this.bottomRowCtrls);\n        Object.keys(this.rowCtrlsByRowIndex).forEach(function (key) { return res.push(_this.rowCtrlsByRowIndex[key]); });\n        return res;\n    };\n    RowRenderer.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {\n        var rowComp = this.rowCtrlsByRowIndex[rowIndex];\n        if (rowComp) {\n            rowComp.addEventListener(eventName, callback);\n        }\n    };\n    RowRenderer.prototype.flashCells = function (params) {\n        if (params === void 0) { params = {}; }\n        var flashDelay = params.flashDelay, fadeDelay = params.fadeDelay;\n        this.getCellCtrls(params.rowNodes, params.columns)\n            .forEach(function (cellCtrl) { return cellCtrl.flashCell({ flashDelay: flashDelay, fadeDelay: fadeDelay }); });\n    };\n    RowRenderer.prototype.refreshCells = function (params) {\n        if (params === void 0) { params = {}; }\n        var refreshCellParams = {\n            forceRefresh: params.force,\n            newData: false,\n            suppressFlash: params.suppressFlash\n        };\n        this.getCellCtrls(params.rowNodes, params.columns)\n            .forEach(function (cellCtrl) {\n            if (cellCtrl.refreshShouldDestroy()) {\n                var rowCtrl = cellCtrl.getRowCtrl();\n                if (rowCtrl) {\n                    rowCtrl.refreshCell(cellCtrl);\n                }\n            }\n            else {\n                cellCtrl.refreshCell(refreshCellParams);\n            }\n        });\n        this.getFullWidthRowCtrls(params.rowNodes).forEach(function (fullWidthRowCtrl) {\n            fullWidthRowCtrl.refreshFullWidth();\n        });\n    };\n    RowRenderer.prototype.getCellRendererInstances = function (params) {\n        var res = this.getCellCtrls(params.rowNodes, params.columns)\n            .map(function (cellCtrl) { return cellCtrl.getCellRenderer(); })\n            .filter(function (renderer) { return renderer != null; });\n        return res;\n    };\n    RowRenderer.prototype.getCellEditorInstances = function (params) {\n        var res = [];\n        this.getCellCtrls(params.rowNodes, params.columns).forEach(function (cellCtrl) {\n            var cellEditor = cellCtrl.getCellEditor();\n            if (cellEditor) {\n                res.push(cellEditor);\n            }\n        });\n        return res;\n    };\n    RowRenderer.prototype.getEditingCells = function () {\n        var res = [];\n        this.getAllCellCtrls().forEach(function (cellCtrl) {\n            if (cellCtrl.isEditing()) {\n                var cellPosition = cellCtrl.getCellPosition();\n                res.push(cellPosition);\n            }\n        });\n        return res;\n    };\n    RowRenderer.prototype.mapRowNodes = function (rowNodes) {\n        if (!rowNodes) {\n            return;\n        }\n        var res = {\n            top: {},\n            bottom: {},\n            normal: {}\n        };\n        rowNodes.forEach(function (rowNode) {\n            var id = rowNode.id;\n            if (rowNode.rowPinned === Constants.PINNED_TOP) {\n                res.top[id] = rowNode;\n            }\n            else if (rowNode.rowPinned === Constants.PINNED_BOTTOM) {\n                res.bottom[id] = rowNode;\n            }\n            else {\n                res.normal[id] = rowNode;\n            }\n        });\n        return res;\n    };\n    RowRenderer.prototype.isRowInMap = function (rowNode, rowIdsMap) {\n        // skip this row if it is missing from the provided list\n        var id = rowNode.id;\n        var floating = rowNode.rowPinned;\n        if (floating === Constants.PINNED_BOTTOM) {\n            return rowIdsMap.bottom[id] != null;\n        }\n        else if (floating === Constants.PINNED_TOP) {\n            return rowIdsMap.top[id] != null;\n        }\n        else {\n            return rowIdsMap.normal[id] != null;\n        }\n    };\n    // returns CellCtrl's that match the provided rowNodes and columns. eg if one row node\n    // and two columns provided, that identifies 4 cells, so 4 CellCtrl's returned.\n    RowRenderer.prototype.getCellCtrls = function (rowNodes, columns) {\n        var _this = this;\n        var rowIdsMap = this.mapRowNodes(rowNodes);\n        var res = [];\n        var colIdsMap;\n        if (exists(columns)) {\n            colIdsMap = {};\n            columns.forEach(function (colKey) {\n                var column = _this.columnModel.getGridColumn(colKey);\n                if (exists(column)) {\n                    colIdsMap[column.getId()] = true;\n                }\n            });\n        }\n        var processRow = function (rowComp) {\n            var rowNode = rowComp.getRowNode();\n            // skip this row if it is missing from the provided list\n            if (rowIdsMap != null && !_this.isRowInMap(rowNode, rowIdsMap)) {\n                return;\n            }\n            rowComp.getAllCellCtrls().forEach(function (cellCtrl) {\n                var colId = cellCtrl.getColumn().getId();\n                var excludeColFromRefresh = colIdsMap && !colIdsMap[colId];\n                if (excludeColFromRefresh) {\n                    return;\n                }\n                res.push(cellCtrl);\n            });\n        };\n        iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n            processRow(rowComp);\n        });\n        if (this.topRowCtrls) {\n            this.topRowCtrls.forEach(processRow);\n        }\n        if (this.bottomRowCtrls) {\n            this.bottomRowCtrls.forEach(processRow);\n        }\n        return res;\n    };\n    RowRenderer.prototype.destroy = function () {\n        this.removeAllRowComps();\n        _super.prototype.destroy.call(this);\n    };\n    RowRenderer.prototype.removeAllRowComps = function () {\n        var rowIndexesToRemove = Object.keys(this.rowCtrlsByRowIndex);\n        this.removeRowCtrls(rowIndexesToRemove);\n    };\n    RowRenderer.prototype.recycleRows = function () {\n        // remove all stub nodes, they can't be reused, as no rowNode id\n        var stubNodeIndexes = [];\n        iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n            var stubNode = rowComp.getRowNode().id == null;\n            if (stubNode) {\n                stubNodeIndexes.push(index);\n            }\n        });\n        this.removeRowCtrls(stubNodeIndexes);\n        // then clear out rowCompsByIndex, but before that take a copy, but index by id, not rowIndex\n        var nodesByIdMap = {};\n        iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n            var rowNode = rowComp.getRowNode();\n            nodesByIdMap[rowNode.id] = rowComp;\n        });\n        this.rowCtrlsByRowIndex = {};\n        return nodesByIdMap;\n    };\n    // takes array of row indexes\n    RowRenderer.prototype.removeRowCtrls = function (rowsToRemove) {\n        var _this = this;\n        // if no fromIndex then set to -1, which will refresh everything\n        // let realFromIndex = -1;\n        rowsToRemove.forEach(function (indexToRemove) {\n            var rowCtrl = _this.rowCtrlsByRowIndex[indexToRemove];\n            if (rowCtrl) {\n                rowCtrl.destroyFirstPass();\n                rowCtrl.destroySecondPass();\n            }\n            delete _this.rowCtrlsByRowIndex[indexToRemove];\n        });\n    };\n    // gets called when rows don't change, but viewport does, so after:\n    // 1) height of grid body changes, ie number of displayed rows has changed\n    // 2) grid scrolled to new position\n    // 3) ensure index visible (which is a scroll)\n    RowRenderer.prototype.redrawAfterScroll = function () {\n        this.getLockOnRefresh();\n        this.redraw(null, false, true);\n        this.releaseLockOnRefresh();\n        this.dispatchDisplayedRowsChanged();\n    };\n    RowRenderer.prototype.removeRowCompsNotToDraw = function (indexesToDraw) {\n        // for speedy lookup, dump into map\n        var indexesToDrawMap = {};\n        indexesToDraw.forEach(function (index) { return (indexesToDrawMap[index] = true); });\n        var existingIndexes = Object.keys(this.rowCtrlsByRowIndex);\n        var indexesNotToDraw = existingIndexes.filter(function (index) { return !indexesToDrawMap[index]; });\n        this.removeRowCtrls(indexesNotToDraw);\n    };\n    RowRenderer.prototype.calculateIndexesToDraw = function (rowsToRecycle) {\n        var _this = this;\n        // all in all indexes in the viewport\n        var indexesToDraw = createArrayOfNumbers(this.firstRenderedRow, this.lastRenderedRow);\n        var checkRowToDraw = function (indexStr, rowComp) {\n            var index = rowComp.getRowNode().rowIndex;\n            if (index == null) {\n                return;\n            }\n            if (index < _this.firstRenderedRow || index > _this.lastRenderedRow) {\n                if (_this.doNotUnVirtualiseRow(rowComp)) {\n                    indexesToDraw.push(index);\n                }\n            }\n        };\n        // if we are redrawing due to scrolling change, then old rows are in this.rowCompsByIndex\n        iterateObject(this.rowCtrlsByRowIndex, checkRowToDraw);\n        // if we are redrawing due to model update, then old rows are in rowsToRecycle\n        iterateObject(rowsToRecycle, checkRowToDraw);\n        indexesToDraw.sort(function (a, b) { return a - b; });\n        return indexesToDraw;\n    };\n    RowRenderer.prototype.redraw = function (rowsToRecycle, animate, afterScroll) {\n        var _this = this;\n        if (animate === void 0) { animate = false; }\n        if (afterScroll === void 0) { afterScroll = false; }\n        this.rowContainerHeightService.updateOffset();\n        this.workOutFirstAndLastRowsToRender();\n        // the row can already exist and be in the following:\n        // rowsToRecycle -> if model change, then the index may be different, however row may\n        //                         exist here from previous time (mapped by id).\n        // this.rowCompsByIndex -> if just a scroll, then this will contain what is currently in the viewport\n        // this is all the indexes we want, including those that already exist, so this method\n        // will end up going through each index and drawing only if the row doesn't already exist\n        var indexesToDraw = this.calculateIndexesToDraw(rowsToRecycle);\n        this.removeRowCompsNotToDraw(indexesToDraw);\n        // never animate when doing print layout - as we want to get things ready to print as quickly as possible,\n        // otherwise we risk the printer printing a row that's half faded (half way through fading in)\n        if (this.printLayout) {\n            animate = false;\n        }\n        indexesToDraw.forEach(function (rowIndex) {\n            var rowCtrl = _this.createOrUpdateRowCtrl(rowIndex, rowsToRecycle, animate, afterScroll);\n            if (exists(rowCtrl)) ;\n        });\n        if (rowsToRecycle) {\n            var useAnimationFrame = afterScroll && !this.gridOptionsWrapper.isSuppressAnimationFrame() && !this.printLayout;\n            if (useAnimationFrame) {\n                this.beans.animationFrameService.addDestroyTask(function () {\n                    _this.destroyRowCtrls(rowsToRecycle, animate);\n                    _this.updateAllRowCtrls();\n                    _this.dispatchDisplayedRowsChanged();\n                });\n            }\n            else {\n                this.destroyRowCtrls(rowsToRecycle, animate);\n            }\n        }\n        this.updateAllRowCtrls();\n        this.gridBodyCtrl.updateRowCount();\n    };\n    RowRenderer.prototype.dispatchDisplayedRowsChanged = function () {\n        var event = { type: Events.EVENT_DISPLAYED_ROWS_CHANGED };\n        this.eventService.dispatchEvent(event);\n    };\n    RowRenderer.prototype.onDisplayedColumnsChanged = function () {\n        var pinningLeft = this.columnModel.isPinningLeft();\n        var pinningRight = this.columnModel.isPinningRight();\n        var atLeastOneChanged = this.pinningLeft !== pinningLeft || pinningRight !== this.pinningRight;\n        if (atLeastOneChanged) {\n            this.pinningLeft = pinningLeft;\n            this.pinningRight = pinningRight;\n            if (this.embedFullWidthRows) {\n                this.redrawFullWidthEmbeddedRows();\n            }\n        }\n    };\n    // when embedding, what gets showed in each section depends on what is pinned. eg if embedding group expand / collapse,\n    // then it should go into the pinned left area if pinning left, or the center area if not pinning.\n    RowRenderer.prototype.redrawFullWidthEmbeddedRows = function () {\n        // if either of the pinned panels has shown / hidden, then need to redraw the fullWidth bits when\n        // embedded, as what appears in each section depends on whether we are pinned or not\n        var rowsToRemove = [];\n        this.getFullWidthRowCtrls().forEach(function (fullWidthCtrl) {\n            var rowIndex = fullWidthCtrl.getRowNode().rowIndex;\n            rowsToRemove.push(rowIndex.toString());\n        });\n        this.refreshFloatingRowComps();\n        this.removeRowCtrls(rowsToRemove);\n        this.redrawAfterScroll();\n    };\n    RowRenderer.prototype.getFullWidthRowCtrls = function (rowNodes) {\n        var _this = this;\n        var rowNodesMap = this.mapRowNodes(rowNodes);\n        return getAllValuesInObject(this.rowCtrlsByRowIndex).filter(function (rowCtrl) {\n            // include just full width\n            if (!rowCtrl.isFullWidth()) {\n                return false;\n            }\n            // if Row Nodes provided, we exclude where Row Node is missing\n            var rowNode = rowCtrl.getRowNode();\n            if (rowNodesMap != null && !_this.isRowInMap(rowNode, rowNodesMap)) {\n                return false;\n            }\n            return true;\n        });\n    };\n    RowRenderer.prototype.refreshFullWidthRows = function (rowNodesToRefresh) {\n        var rowsToRemove = [];\n        var selectivelyRefreshing = !!rowNodesToRefresh;\n        var idsToRefresh = selectivelyRefreshing ? {} : undefined;\n        if (selectivelyRefreshing && idsToRefresh) {\n            rowNodesToRefresh.forEach(function (r) { return idsToRefresh[r.id] = true; });\n        }\n        this.getFullWidthRowCtrls().forEach(function (fullWidthRowCtrl) {\n            var rowNode = fullWidthRowCtrl.getRowNode();\n            if (selectivelyRefreshing && idsToRefresh) {\n                // we refresh if a) this node is present or b) this parents nodes is present. checking parent\n                // node is important for master/detail, as we want detail to refresh on changes to parent node.\n                // it's also possible, if user is provider their own fullWidth, that details panels contain\n                // some info on the parent, eg if in tree data and child row shows some data from parent row also.\n                var parentId = (rowNode.level > 0 && rowNode.parent) ? rowNode.parent.id : undefined;\n                var skipThisNode = !idsToRefresh[rowNode.id] && !idsToRefresh[parentId];\n                if (skipThisNode) {\n                    return;\n                }\n            }\n            var fullWidthRowsRefreshed = fullWidthRowCtrl.refreshFullWidth();\n            if (!fullWidthRowsRefreshed) {\n                var rowIndex = fullWidthRowCtrl.getRowNode().rowIndex;\n                rowsToRemove.push(rowIndex.toString());\n            }\n        });\n        this.removeRowCtrls(rowsToRemove);\n        this.redrawAfterScroll();\n    };\n    RowRenderer.prototype.createOrUpdateRowCtrl = function (rowIndex, rowsToRecycle, animate, afterScroll) {\n        var rowNode;\n        var rowCtrl = this.rowCtrlsByRowIndex[rowIndex];\n        // if no row comp, see if we can get it from the previous rowComps\n        if (!rowCtrl) {\n            rowNode = this.paginationProxy.getRow(rowIndex);\n            if (exists(rowNode) && exists(rowsToRecycle) && rowsToRecycle[rowNode.id] && rowNode.alreadyRendered) {\n                rowCtrl = rowsToRecycle[rowNode.id];\n                rowsToRecycle[rowNode.id] = null;\n            }\n        }\n        var creatingNewRowCtrl = !rowCtrl;\n        if (creatingNewRowCtrl) {\n            // create a new one\n            if (!rowNode) {\n                rowNode = this.paginationProxy.getRow(rowIndex);\n            }\n            if (exists(rowNode)) {\n                rowCtrl = this.createRowCon(rowNode, animate, afterScroll);\n            }\n            else {\n                // this should never happen - if somehow we are trying to create\n                // a row for a rowNode that does not exist.\n                return;\n            }\n        }\n        if (rowNode) {\n            // set node as 'alreadyRendered' to ensure we only recycle rowComps that have been rendered, this ensures\n            // we don't reuse rowComps that have been removed and then re-added in the same batch transaction.\n            rowNode.alreadyRendered = true;\n        }\n        this.rowCtrlsByRowIndex[rowIndex] = rowCtrl;\n        return rowCtrl;\n    };\n    RowRenderer.prototype.destroyRowCtrls = function (rowCtrlsMap, animate) {\n        var _this = this;\n        var executeInAWhileFuncs = [];\n        iterateObject(rowCtrlsMap, function (nodeId, rowCtrl) {\n            // if row was used, then it's null\n            if (!rowCtrl) {\n                return;\n            }\n            if (_this.cachedRowCtrls && rowCtrl.isCacheable()) {\n                _this.cachedRowCtrls.addRow(rowCtrl);\n                return;\n            }\n            rowCtrl.destroyFirstPass();\n            if (animate) {\n                _this.zombieRowCtrls[rowCtrl.getInstanceId()] = rowCtrl;\n                executeInAWhileFuncs.push(function () {\n                    rowCtrl.destroySecondPass();\n                    delete _this.zombieRowCtrls[rowCtrl.getInstanceId()];\n                });\n            }\n            else {\n                rowCtrl.destroySecondPass();\n            }\n        });\n        if (animate) {\n            // this ensures we fire displayedRowsChanged AFTER all the 'executeInAWhileFuncs' get\n            // executed, as we added it to the end of the list.\n            executeInAWhileFuncs.push(function () {\n                _this.updateAllRowCtrls();\n                _this.dispatchDisplayedRowsChanged();\n            });\n            executeInAWhile(executeInAWhileFuncs);\n        }\n    };\n    RowRenderer.prototype.workOutFirstAndLastRowsToRender = function () {\n        var _this = this;\n        var newFirst;\n        var newLast;\n        if (!this.paginationProxy.isRowsToRender()) {\n            newFirst = 0;\n            newLast = -1; // setting to -1 means nothing in range\n        }\n        else if (this.printLayout) {\n            newFirst = this.paginationProxy.getPageFirstRow();\n            newLast = this.paginationProxy.getPageLastRow();\n        }\n        else {\n            var bufferPixels = this.gridOptionsWrapper.getRowBufferInPixels();\n            var gridBodyCtrl = this.ctrlsService.getGridBodyCtrl();\n            var suppressRowVirtualisation = this.gridOptionsWrapper.isSuppressRowVirtualisation();\n            var rowHeightsChanged = false;\n            var firstPixel = void 0;\n            var lastPixel = void 0;\n            do {\n                var paginationOffset = this.paginationProxy.getPixelOffset();\n                var _a = this.paginationProxy.getCurrentPagePixelRange(), pageFirstPixel = _a.pageFirstPixel, pageLastPixel = _a.pageLastPixel;\n                var divStretchOffset = this.rowContainerHeightService.getDivStretchOffset();\n                if (suppressRowVirtualisation) {\n                    firstPixel = pageFirstPixel + divStretchOffset;\n                    lastPixel = pageLastPixel + divStretchOffset;\n                }\n                else {\n                    var bodyVRange = gridBodyCtrl.getScrollFeature().getVScrollPosition();\n                    var bodyTopPixel = bodyVRange.top;\n                    var bodyBottomPixel = bodyVRange.bottom;\n                    firstPixel = Math.max(bodyTopPixel + paginationOffset - bufferPixels, pageFirstPixel) + divStretchOffset;\n                    lastPixel = Math.min(bodyBottomPixel + paginationOffset + bufferPixels, pageLastPixel) + divStretchOffset;\n                }\n                // if the rows we are about to display get their heights changed, then that upsets the calcs from above.\n                rowHeightsChanged = this.ensureAllRowsInRangeHaveHeightsCalculated(firstPixel, lastPixel);\n            } while (rowHeightsChanged);\n            var firstRowIndex = this.paginationProxy.getRowIndexAtPixel(firstPixel);\n            var lastRowIndex = this.paginationProxy.getRowIndexAtPixel(lastPixel);\n            var pageFirstRow = this.paginationProxy.getPageFirstRow();\n            var pageLastRow = this.paginationProxy.getPageLastRow();\n            // adjust, in case buffer extended actual size\n            if (firstRowIndex < pageFirstRow) {\n                firstRowIndex = pageFirstRow;\n            }\n            if (lastRowIndex > pageLastRow) {\n                lastRowIndex = pageLastRow;\n            }\n            newFirst = firstRowIndex;\n            newLast = lastRowIndex;\n        }\n        // sometimes user doesn't set CSS right and ends up with grid with no height and grid ends up\n        // trying to render all the rows, eg 10,000+ rows. this will kill the browser. so instead of\n        // killing the browser, we limit the number of rows. just in case some use case we didn't think\n        // of, we also have a property to not do this operation.\n        var rowLayoutNormal = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n        var suppressRowCountRestriction = this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction();\n        var rowBufferMaxSize = Math.max(this.gridOptionsWrapper.getRowBuffer(), 500);\n        if (rowLayoutNormal && !suppressRowCountRestriction) {\n            if (newLast - newFirst > rowBufferMaxSize) {\n                newLast = newFirst + rowBufferMaxSize;\n            }\n        }\n        var firstDiffers = newFirst !== this.firstRenderedRow;\n        var lastDiffers = newLast !== this.lastRenderedRow;\n        if (firstDiffers || lastDiffers) {\n            this.firstRenderedRow = newFirst;\n            this.lastRenderedRow = newLast;\n            var event_1 = {\n                type: Events.EVENT_VIEWPORT_CHANGED,\n                firstRow: newFirst,\n                lastRow: newLast,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n        // only dispatch firstDataRendered if we have actually rendered some data\n        if (this.paginationProxy.isRowsToRender()) {\n            var event_2 = {\n                type: Events.EVENT_FIRST_DATA_RENDERED,\n                firstRow: newFirst,\n                lastRow: newLast,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            // added a small delay here because in some scenarios this can be fired\n            // before the grid is actually rendered, causing component creation\n            // on EVENT_FIRST_DATA_RENDERED to fail.\n            window.setTimeout(function () { return _this.eventService.dispatchEventOnce(event_2); }, 50);\n        }\n    };\n    RowRenderer.prototype.ensureAllRowsInRangeHaveHeightsCalculated = function (topPixel, bottomPixel) {\n        // ensureRowHeightsVisible only works with CSRM, as it's the only row model that allows lazy row height calcs.\n        // all the other row models just hard code so the method just returns back false\n        var res = this.paginationProxy.ensureRowHeightsValid(topPixel, bottomPixel, -1, -1);\n        if (res) {\n            this.updateContainerHeights();\n        }\n        return res;\n    };\n    RowRenderer.prototype.getFirstVirtualRenderedRow = function () {\n        return this.firstRenderedRow;\n    };\n    RowRenderer.prototype.getLastVirtualRenderedRow = function () {\n        return this.lastRenderedRow;\n    };\n    // check that none of the rows to remove are editing or focused as:\n    // a) if editing, we want to keep them, otherwise the user will loose the context of the edit,\n    //    eg user starts editing, enters some text, then scrolls down and then up, next time row rendered\n    //    the edit is reset - so we want to keep it rendered.\n    // b) if focused, we want ot keep keyboard focus, so if user ctrl+c, it goes to clipboard,\n    //    otherwise the user can range select and drag (with focus cell going out of the viewport)\n    //    and then ctrl+c, nothing will happen if cell is removed from dom.\n    // c) if detail record of master detail, as users complained that the context of detail rows\n    //    was getting lost when detail row out of view. eg user expands to show detail row,\n    //    then manipulates the detail panel (eg sorts the detail grid), then context is lost\n    //    after detail panel is scrolled out of / into view.\n    RowRenderer.prototype.doNotUnVirtualiseRow = function (rowComp) {\n        var REMOVE_ROW = false;\n        var KEEP_ROW = true;\n        var rowNode = rowComp.getRowNode();\n        var rowHasFocus = this.focusService.isRowNodeFocused(rowNode);\n        var rowIsEditing = rowComp.isEditing();\n        var rowIsDetail = rowNode.detail;\n        var mightWantToKeepRow = rowHasFocus || rowIsEditing || rowIsDetail;\n        // if we deffo don't want to keep it,\n        if (!mightWantToKeepRow) {\n            return REMOVE_ROW;\n        }\n        // editing row, only remove if it is no longer rendered, eg filtered out or new data set.\n        // the reason we want to keep is if user is scrolling up and down, we don't want to loose\n        // the context of the editing in process.\n        var rowNodePresent = this.paginationProxy.isRowPresent(rowNode);\n        return rowNodePresent ? KEEP_ROW : REMOVE_ROW;\n    };\n    RowRenderer.prototype.createRowCon = function (rowNode, animate, afterScroll) {\n        var rowCtrlFromCache = this.cachedRowCtrls ? this.cachedRowCtrls.getRow(rowNode) : null;\n        if (rowCtrlFromCache) {\n            return rowCtrlFromCache;\n        }\n        // we don't use animations frames for printing, so the user can put the grid into print mode\n        // and immediately print - otherwise the user would have to wait for the rows to draw in the background\n        // (via the animation frames) which is awkward to do from code.\n        // we only do the animation frames after scrolling, as this is where we want the smooth user experience.\n        // having animation frames for other times makes the grid look 'jumpy'.\n        var suppressAnimationFrame = this.gridOptionsWrapper.isSuppressAnimationFrame();\n        var useAnimationFrameForCreate = afterScroll && !suppressAnimationFrame && !this.printLayout;\n        var res = new RowCtrl(rowNode, this.beans, animate, useAnimationFrameForCreate, this.printLayout);\n        return res;\n    };\n    RowRenderer.prototype.getRenderedNodes = function () {\n        var renderedRows = this.rowCtrlsByRowIndex;\n        return Object.keys(renderedRows).map(function (key) { return renderedRows[key].getRowNode(); });\n    };\n    RowRenderer.prototype.getRowByPosition = function (rowPosition) {\n        var rowComponent;\n        switch (rowPosition.rowPinned) {\n            case Constants.PINNED_TOP:\n                rowComponent = this.topRowCtrls[rowPosition.rowIndex];\n                break;\n            case Constants.PINNED_BOTTOM:\n                rowComponent = this.bottomRowCtrls[rowPosition.rowIndex];\n                break;\n            default:\n                rowComponent = this.rowCtrlsByRowIndex[rowPosition.rowIndex];\n                break;\n        }\n        return rowComponent;\n    };\n    RowRenderer.prototype.getRowNode = function (gridRow) {\n        switch (gridRow.rowPinned) {\n            case Constants.PINNED_TOP:\n                return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n            case Constants.PINNED_BOTTOM:\n                return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n            default:\n                return this.rowModel.getRow(gridRow.rowIndex);\n        }\n    };\n    // returns true if any row between startIndex and endIndex is rendered. used by\n    // SSRM or IRM, as they don't want to purge visible blocks from cache.\n    RowRenderer.prototype.isRangeInRenderedViewport = function (startIndex, endIndex) {\n        // parent closed means the parent node is not expanded, thus these blocks are not visible\n        var parentClosed = startIndex == null || endIndex == null;\n        if (parentClosed) {\n            return false;\n        }\n        var blockAfterViewport = startIndex > this.lastRenderedRow;\n        var blockBeforeViewport = endIndex < this.firstRenderedRow;\n        var blockInsideViewport = !blockBeforeViewport && !blockAfterViewport;\n        return blockInsideViewport;\n    };\n    __decorate$1v([\n        Autowired(\"paginationProxy\")\n    ], RowRenderer.prototype, \"paginationProxy\", void 0);\n    __decorate$1v([\n        Autowired(\"columnModel\")\n    ], RowRenderer.prototype, \"columnModel\", void 0);\n    __decorate$1v([\n        Autowired(\"pinnedRowModel\")\n    ], RowRenderer.prototype, \"pinnedRowModel\", void 0);\n    __decorate$1v([\n        Autowired(\"rowModel\")\n    ], RowRenderer.prototype, \"rowModel\", void 0);\n    __decorate$1v([\n        Autowired(\"focusService\")\n    ], RowRenderer.prototype, \"focusService\", void 0);\n    __decorate$1v([\n        Autowired(\"columnApi\")\n    ], RowRenderer.prototype, \"columnApi\", void 0);\n    __decorate$1v([\n        Autowired(\"gridApi\")\n    ], RowRenderer.prototype, \"gridApi\", void 0);\n    __decorate$1v([\n        Autowired(\"beans\")\n    ], RowRenderer.prototype, \"beans\", void 0);\n    __decorate$1v([\n        Autowired(\"rowContainerHeightService\")\n    ], RowRenderer.prototype, \"rowContainerHeightService\", void 0);\n    __decorate$1v([\n        Optional(\"ctrlsService\")\n    ], RowRenderer.prototype, \"ctrlsService\", void 0);\n    __decorate$1v([\n        PostConstruct\n    ], RowRenderer.prototype, \"postConstruct\", null);\n    RowRenderer = __decorate$1v([\n        Bean(\"rowRenderer\")\n    ], RowRenderer);\n    return RowRenderer;\n}(BeanStub));\nvar RowCtrlCache = /** @class */ (function () {\n    function RowCtrlCache(maxCount) {\n        // map for fast access\n        this.entriesMap = {};\n        // list for keeping order\n        this.entriesList = [];\n        this.maxCount = maxCount;\n    }\n    RowCtrlCache.prototype.addRow = function (rowCtrl) {\n        this.entriesMap[rowCtrl.getRowNode().id] = rowCtrl;\n        this.entriesList.push(rowCtrl);\n        rowCtrl.setCached(true);\n        if (this.entriesList.length > this.maxCount) {\n            var rowCtrlToDestroy = this.entriesList[0];\n            rowCtrlToDestroy.destroyFirstPass();\n            rowCtrlToDestroy.destroySecondPass();\n            this.removeFromCache(rowCtrlToDestroy);\n        }\n    };\n    RowCtrlCache.prototype.getRow = function (rowNode) {\n        if (rowNode == null || rowNode.id == null) {\n            return null;\n        }\n        var res = this.entriesMap[rowNode.id];\n        if (!res) {\n            return null;\n        }\n        this.removeFromCache(res);\n        res.setCached(false);\n        // this can happen if user reloads data, and a new RowNode is reusing\n        // the same ID as the old one\n        var rowNodeMismatch = res.getRowNode() != rowNode;\n        return rowNodeMismatch ? null : res;\n    };\n    RowCtrlCache.prototype.removeFromCache = function (rowCtrl) {\n        var rowNodeId = rowCtrl.getRowNode().id;\n        delete this.entriesMap[rowNodeId];\n        removeFromArray(this.entriesList, rowCtrl);\n    };\n    RowCtrlCache.prototype.getEntries = function () {\n        return this.entriesList;\n    };\n    return RowCtrlCache;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1J = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1w = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ValueFormatterService = /** @class */ (function (_super) {\n    __extends$1J(ValueFormatterService, _super);\n    function ValueFormatterService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ValueFormatterService.prototype.formatValue = function (column, node, value, suppliedFormatter, useFormatterFromColumn) {\n        if (useFormatterFromColumn === void 0) { useFormatterFromColumn = true; }\n        var result = null;\n        var formatter;\n        var colDef = column.getColDef();\n        if (suppliedFormatter) {\n            // use supplied formatter if provided, e.g. set filter items can have their own value formatters\n            formatter = suppliedFormatter;\n        }\n        else if (useFormatterFromColumn) {\n            // if row is pinned, give preference to the pinned formatter\n            formatter = node && node.rowPinned && colDef.pinnedRowValueFormatter ?\n                colDef.pinnedRowValueFormatter : colDef.valueFormatter;\n        }\n        if (formatter) {\n            var params = {\n                value: value,\n                node: node,\n                data: node ? node.data : null,\n                colDef: colDef,\n                column: column,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            };\n            result = this.expressionService.evaluate(formatter, params);\n        }\n        else if (colDef.refData) {\n            return colDef.refData[value] || '';\n        }\n        // if we don't do this, then arrays get displayed as 1,2,3, but we want 1, 2, 3 (i.e. with spaces)\n        if (result == null && Array.isArray(value)) {\n            result = value.join(', ');\n        }\n        return result;\n    };\n    __decorate$1w([\n        Autowired('expressionService')\n    ], ValueFormatterService.prototype, \"expressionService\", void 0);\n    ValueFormatterService = __decorate$1w([\n        Bean('valueFormatterService')\n    ], ValueFormatterService);\n    return ValueFormatterService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1K = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1x = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PinnedRowModel = /** @class */ (function (_super) {\n    __extends$1K(PinnedRowModel, _super);\n    function PinnedRowModel() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    PinnedRowModel.prototype.init = function () {\n        this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData());\n        this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData());\n    };\n    PinnedRowModel.prototype.isEmpty = function (floating) {\n        var rows = floating === Constants.PINNED_TOP ? this.pinnedTopRows : this.pinnedBottomRows;\n        return missingOrEmpty(rows);\n    };\n    PinnedRowModel.prototype.isRowsToRender = function (floating) {\n        return !this.isEmpty(floating);\n    };\n    PinnedRowModel.prototype.getRowAtPixel = function (pixel, floating) {\n        var rows = floating === Constants.PINNED_TOP ? this.pinnedTopRows : this.pinnedBottomRows;\n        if (missingOrEmpty(rows)) {\n            return 0; // this should never happen, just in case, 0 is graceful failure\n        }\n        for (var i = 0; i < rows.length; i++) {\n            var rowNode = rows[i];\n            var rowTopPixel = rowNode.rowTop + rowNode.rowHeight - 1;\n            // only need to range check against the top pixel, as we are going through the list\n            // in order, first row to hit the pixel wins\n            if (rowTopPixel >= pixel) {\n                return i;\n            }\n        }\n        return rows.length - 1;\n    };\n    PinnedRowModel.prototype.setPinnedTopRowData = function (rowData) {\n        this.pinnedTopRows = this.createNodesFromData(rowData, true);\n        var event = {\n            type: Events.EVENT_PINNED_ROW_DATA_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    PinnedRowModel.prototype.setPinnedBottomRowData = function (rowData) {\n        this.pinnedBottomRows = this.createNodesFromData(rowData, false);\n        var event = {\n            type: Events.EVENT_PINNED_ROW_DATA_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    PinnedRowModel.prototype.createNodesFromData = function (allData, isTop) {\n        var _this = this;\n        var rowNodes = [];\n        if (allData) {\n            var nextRowTop_1 = 0;\n            allData.forEach(function (dataItem, index) {\n                var rowNode = new RowNode(_this.beans);\n                rowNode.data = dataItem;\n                var idPrefix = isTop ? RowNode.ID_PREFIX_TOP_PINNED : RowNode.ID_PREFIX_BOTTOM_PINNED;\n                rowNode.id = idPrefix + index;\n                rowNode.rowPinned = isTop ? Constants.PINNED_TOP : Constants.PINNED_BOTTOM;\n                rowNode.setRowTop(nextRowTop_1);\n                rowNode.setRowHeight(_this.gridOptionsWrapper.getRowHeightForNode(rowNode).height);\n                rowNode.setRowIndex(index);\n                nextRowTop_1 += rowNode.rowHeight;\n                rowNodes.push(rowNode);\n            });\n        }\n        return rowNodes;\n    };\n    PinnedRowModel.prototype.getPinnedTopRowData = function () {\n        return this.pinnedTopRows;\n    };\n    PinnedRowModel.prototype.getPinnedBottomRowData = function () {\n        return this.pinnedBottomRows;\n    };\n    PinnedRowModel.prototype.getPinnedTopTotalHeight = function () {\n        return this.getTotalHeight(this.pinnedTopRows);\n    };\n    PinnedRowModel.prototype.getPinnedTopRowCount = function () {\n        return this.pinnedTopRows ? this.pinnedTopRows.length : 0;\n    };\n    PinnedRowModel.prototype.getPinnedBottomRowCount = function () {\n        return this.pinnedBottomRows ? this.pinnedBottomRows.length : 0;\n    };\n    PinnedRowModel.prototype.getPinnedTopRow = function (index) {\n        return this.pinnedTopRows[index];\n    };\n    PinnedRowModel.prototype.getPinnedBottomRow = function (index) {\n        return this.pinnedBottomRows[index];\n    };\n    PinnedRowModel.prototype.forEachPinnedTopRow = function (callback) {\n        if (missingOrEmpty(this.pinnedTopRows)) {\n            return;\n        }\n        this.pinnedTopRows.forEach(callback);\n    };\n    PinnedRowModel.prototype.forEachPinnedBottomRow = function (callback) {\n        if (missingOrEmpty(this.pinnedBottomRows)) {\n            return;\n        }\n        this.pinnedBottomRows.forEach(callback);\n    };\n    PinnedRowModel.prototype.getPinnedBottomTotalHeight = function () {\n        return this.getTotalHeight(this.pinnedBottomRows);\n    };\n    PinnedRowModel.prototype.getTotalHeight = function (rowNodes) {\n        if (!rowNodes || rowNodes.length === 0) {\n            return 0;\n        }\n        var lastNode = last(rowNodes);\n        return lastNode.rowTop + lastNode.rowHeight;\n    };\n    __decorate$1x([\n        Autowired('columnApi')\n    ], PinnedRowModel.prototype, \"columnApi\", void 0);\n    __decorate$1x([\n        Autowired('gridApi')\n    ], PinnedRowModel.prototype, \"gridApi\", void 0);\n    __decorate$1x([\n        Autowired('beans')\n    ], PinnedRowModel.prototype, \"beans\", void 0);\n    __decorate$1x([\n        PostConstruct\n    ], PinnedRowModel.prototype, \"init\", null);\n    PinnedRowModel = __decorate$1x([\n        Bean('pinnedRowModel')\n    ], PinnedRowModel);\n    return PinnedRowModel;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (ServerSideTransactionResultStatus) {\n    /** Transaction was successfully applied */\n    ServerSideTransactionResultStatus[\"Applied\"] = \"Applied\";\n    /**\n     * Store was not found, transaction not applied.\n     * Either invalid route, or the parent row has not yet been expanded.\n     */\n    ServerSideTransactionResultStatus[\"StoreNotFound\"] = \"StoreNotFound\";\n    /**\n     * Store is loading, transaction not applied.\n     */\n    ServerSideTransactionResultStatus[\"StoreLoading\"] = \"StoreLoading\";\n    /**\n     * Store is loading (as max loads exceeded), transaction not applied.\n     */\n    ServerSideTransactionResultStatus[\"StoreWaitingToLoad\"] = \"StoreWaitingToLoad\";\n    /**\n     * Store load attempt failed, transaction not applied.\n     */\n    ServerSideTransactionResultStatus[\"StoreLoadingFailed\"] = \"StoreLoadingFailed\";\n    /**\n     * Store is type Partial, which doesn't accept transactions\n     */\n    ServerSideTransactionResultStatus[\"StoreWrongType\"] = \"StoreWrongType\";\n    /**\n     * Transaction was cancelled, due to grid.\n     * Callback isApplyServerSideTransaction() returning false\n     */\n    ServerSideTransactionResultStatus[\"Cancelled\"] = \"Cancelled\";\n})(exports.ServerSideTransactionResultStatus || (exports.ServerSideTransactionResultStatus = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// when doing transactions, or change detection, and grouping is present\n// in the data, there is no need for the ClientSideRowModel to update each\n// group after an update, ony parts that were impacted by the change.\n// this class keeps track of all groups that were impacted by a transaction.\n// the the different CSRM operations (filter, sort etc) use the forEach method\n// to visit each group that was changed.\nvar ChangedPath = /** @class */ (function () {\n    function ChangedPath(keepingColumns, rootNode) {\n        // whether changed path is active of not. it is active when a) doing\n        // a transaction update or b) doing change detection. if we are doing\n        // a CSRM refresh for other reasons (after sort or filter, or user calling\n        // setRowData() without delta mode) then we are not active. we are also\n        // marked as not active if secondary columns change in pivot (as this impacts\n        // aggregations)\n        this.active = true;\n        // for each node in the change path, we also store which columns need\n        // to be re-aggregated.\n        this.nodeIdsToColumns = {};\n        // for quick lookup, all items in the change path are mapped by nodeId\n        this.mapToItems = {};\n        this.keepingColumns = keepingColumns;\n        this.pathRoot = {\n            rowNode: rootNode,\n            children: null\n        };\n        this.mapToItems[rootNode.id] = this.pathRoot;\n    }\n    // can be set inactive by:\n    // a) ClientSideRowModel, if no transactions or\n    // b) PivotService, if secondary columns changed\n    ChangedPath.prototype.setInactive = function () {\n        this.active = false;\n    };\n    ChangedPath.prototype.isActive = function () {\n        return this.active;\n    };\n    ChangedPath.prototype.depthFirstSearchChangedPath = function (pathItem, callback) {\n        if (pathItem.children) {\n            for (var i = 0; i < pathItem.children.length; i++) {\n                this.depthFirstSearchChangedPath(pathItem.children[i], callback);\n            }\n        }\n        callback(pathItem.rowNode);\n    };\n    ChangedPath.prototype.depthFirstSearchEverything = function (rowNode, callback, traverseEverything) {\n        if (rowNode.childrenAfterGroup) {\n            for (var i = 0; i < rowNode.childrenAfterGroup.length; i++) {\n                var childNode = rowNode.childrenAfterGroup[i];\n                if (childNode.childrenAfterGroup) {\n                    this.depthFirstSearchEverything(rowNode.childrenAfterGroup[i], callback, traverseEverything);\n                }\n                else if (traverseEverything) {\n                    callback(childNode);\n                }\n            }\n        }\n        callback(rowNode);\n    };\n    // traverseLeafNodes -> used when NOT doing changed path, ie traversing everything. the callback\n    // will be called for child nodes in addition to parent nodes.\n    ChangedPath.prototype.forEachChangedNodeDepthFirst = function (callback, traverseLeafNodes) {\n        if (traverseLeafNodes === void 0) { traverseLeafNodes = false; }\n        if (this.active) {\n            // if we are active, then use the change path to callback\n            // only for updated groups\n            this.depthFirstSearchChangedPath(this.pathRoot, callback);\n        }\n        else {\n            // we are not active, so callback for everything, walk the entire path\n            this.depthFirstSearchEverything(this.pathRoot.rowNode, callback, traverseLeafNodes);\n        }\n    };\n    ChangedPath.prototype.executeFromRootNode = function (callback) {\n        callback(this.pathRoot.rowNode);\n    };\n    ChangedPath.prototype.createPathItems = function (rowNode) {\n        var pointer = rowNode;\n        var newEntryCount = 0;\n        while (!this.mapToItems[pointer.id]) {\n            var newEntry = {\n                rowNode: pointer,\n                children: null\n            };\n            this.mapToItems[pointer.id] = newEntry;\n            newEntryCount++;\n            pointer = pointer.parent;\n        }\n        return newEntryCount;\n    };\n    ChangedPath.prototype.populateColumnsMap = function (rowNode, columns) {\n        var _this = this;\n        if (!this.keepingColumns || !columns) {\n            return;\n        }\n        var pointer = rowNode;\n        while (pointer) {\n            // if columns, add the columns in all the way to parent, merging\n            // in any other columns that might be there already\n            if (!this.nodeIdsToColumns[pointer.id]) {\n                this.nodeIdsToColumns[pointer.id] = {};\n            }\n            columns.forEach(function (col) { return _this.nodeIdsToColumns[pointer.id][col.getId()] = true; });\n            pointer = pointer.parent;\n        }\n    };\n    ChangedPath.prototype.linkPathItems = function (rowNode, newEntryCount) {\n        var pointer = rowNode;\n        for (var i = 0; i < newEntryCount; i++) {\n            var thisItem = this.mapToItems[pointer.id];\n            var parentItem = this.mapToItems[pointer.parent.id];\n            if (!parentItem.children) {\n                parentItem.children = [];\n            }\n            parentItem.children.push(thisItem);\n            pointer = pointer.parent;\n        }\n    };\n    // called by\n    // 1) change detection (provides cols) and\n    // 2) groupStage if doing transaction update (doesn't provide cols)\n    ChangedPath.prototype.addParentNode = function (rowNode, columns) {\n        if (!rowNode || rowNode.isRowPinned()) {\n            return;\n        }\n        // we cannot do  both steps below in the same loop as\n        // the second loop has a dependency on the first loop.\n        // ie the hierarchy cannot be stitched up yet because\n        // we don't have it built yet\n        // create the new PathItem objects.\n        var newEntryCount = this.createPathItems(rowNode);\n        // link in the node items\n        this.linkPathItems(rowNode, newEntryCount);\n        // update columns\n        this.populateColumnsMap(rowNode, columns);\n    };\n    ChangedPath.prototype.canSkip = function (rowNode) {\n        return this.active && !this.mapToItems[rowNode.id];\n    };\n    ChangedPath.prototype.getValueColumnsForNode = function (rowNode, valueColumns) {\n        if (!this.keepingColumns) {\n            return valueColumns;\n        }\n        var colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n        var result = valueColumns.filter(function (col) { return colsForThisNode[col.getId()]; });\n        return result;\n    };\n    ChangedPath.prototype.getNotValueColumnsForNode = function (rowNode, valueColumns) {\n        if (!this.keepingColumns) {\n            return null;\n        }\n        var colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n        var result = valueColumns.filter(function (col) { return !colsForThisNode[col.getId()]; });\n        return result;\n    };\n    return ChangedPath;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1L = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar RowNodeBlock = /** @class */ (function (_super) {\n    __extends$1L(RowNodeBlock, _super);\n    function RowNodeBlock(id) {\n        var _this = _super.call(this) || this;\n        _this.state = RowNodeBlock.STATE_WAITING_TO_LOAD;\n        _this.version = 0;\n        _this.id = id;\n        return _this;\n    }\n    RowNodeBlock.prototype.getId = function () {\n        return this.id;\n    };\n    RowNodeBlock.prototype.load = function () {\n        this.state = RowNodeBlock.STATE_LOADING;\n        this.loadFromDatasource();\n    };\n    RowNodeBlock.prototype.getVersion = function () {\n        return this.version;\n    };\n    RowNodeBlock.prototype.setStateWaitingToLoad = function () {\n        // in case any current loads in progress, this will have their results ignored\n        this.version++;\n        this.state = RowNodeBlock.STATE_WAITING_TO_LOAD;\n    };\n    RowNodeBlock.prototype.getState = function () {\n        return this.state;\n    };\n    RowNodeBlock.prototype.pageLoadFailed = function (version) {\n        var requestMostRecentAndLive = this.isRequestMostRecentAndLive(version);\n        if (requestMostRecentAndLive) {\n            this.state = RowNodeBlock.STATE_FAILED;\n            this.processServerFail();\n        }\n        this.dispatchLoadCompleted(false);\n    };\n    RowNodeBlock.prototype.success = function (version, params) {\n        this.successCommon(version, params);\n    };\n    RowNodeBlock.prototype.pageLoaded = function (version, rows, lastRow) {\n        this.successCommon(version, { rowData: rows, rowCount: lastRow });\n    };\n    RowNodeBlock.prototype.isRequestMostRecentAndLive = function (version) {\n        // thisIsMostRecentRequest - if block was refreshed, then another request\n        // could of been sent after this one.\n        var thisIsMostRecentRequest = version === this.version;\n        // weAreNotDestroyed - if InfiniteStore is purged, then blocks are destroyed\n        // and new blocks created. so data loads of old blocks are discarded.\n        var weAreNotDestroyed = this.isAlive();\n        return thisIsMostRecentRequest && weAreNotDestroyed;\n    };\n    RowNodeBlock.prototype.successCommon = function (version, params) {\n        // need to dispatch load complete before processing the data, as PaginationComp checks\n        // RowNodeBlockLoader to see if it is still loading, so the RowNodeBlockLoader needs to\n        // be updated first (via LoadComplete event) before PaginationComp updates (via processServerResult method)\n        this.dispatchLoadCompleted();\n        var requestMostRecentAndLive = this.isRequestMostRecentAndLive(version);\n        if (requestMostRecentAndLive) {\n            this.state = RowNodeBlock.STATE_LOADED;\n            this.processServerResult(params);\n        }\n    };\n    RowNodeBlock.prototype.dispatchLoadCompleted = function (success) {\n        if (success === void 0) { success = true; }\n        // we fire event regardless of processing data or now, as we want\n        // the concurrentLoadRequests count to be reduced in BlockLoader\n        var event = {\n            type: RowNodeBlock.EVENT_LOAD_COMPLETE,\n            success: success,\n            block: this\n        };\n        this.dispatchEvent(event);\n    };\n    RowNodeBlock.EVENT_LOAD_COMPLETE = 'loadComplete';\n    RowNodeBlock.STATE_WAITING_TO_LOAD = 'needsLoading';\n    RowNodeBlock.STATE_LOADING = 'loading';\n    RowNodeBlock.STATE_LOADED = 'loaded';\n    RowNodeBlock.STATE_FAILED = 'failed';\n    return RowNodeBlock;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1M = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1y = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$4 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar RowNodeBlockLoader = /** @class */ (function (_super) {\n    __extends$1M(RowNodeBlockLoader, _super);\n    function RowNodeBlockLoader() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.activeBlockLoadsCount = 0;\n        _this.blocks = [];\n        _this.active = true;\n        return _this;\n    }\n    RowNodeBlockLoader_1 = RowNodeBlockLoader;\n    RowNodeBlockLoader.prototype.postConstruct = function () {\n        this.maxConcurrentRequests = this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();\n        var blockLoadDebounceMillis = this.gridOptionsWrapper.getBlockLoadDebounceMillis();\n        if (blockLoadDebounceMillis && blockLoadDebounceMillis > 0) {\n            this.checkBlockToLoadDebounce = _.debounce(this.performCheckBlocksToLoad.bind(this), blockLoadDebounceMillis);\n        }\n    };\n    RowNodeBlockLoader.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('RowNodeBlockLoader');\n    };\n    RowNodeBlockLoader.prototype.addBlock = function (block) {\n        this.blocks.push(block);\n        // note that we do not remove this listener when removing the block. this is because the\n        // cache can get destroyed (and containing blocks) when a block is loading. however the loading block\n        // is still counted as an active loading block and we must decrement activeBlockLoadsCount when it finishes.\n        block.addEventListener(RowNodeBlock.EVENT_LOAD_COMPLETE, this.loadComplete.bind(this));\n        this.checkBlockToLoad();\n    };\n    RowNodeBlockLoader.prototype.removeBlock = function (block) {\n        _.removeFromArray(this.blocks, block);\n    };\n    RowNodeBlockLoader.prototype.destroy = function () {\n        _super.prototype.destroy.call(this);\n        this.active = false;\n    };\n    RowNodeBlockLoader.prototype.loadComplete = function () {\n        this.activeBlockLoadsCount--;\n        this.checkBlockToLoad();\n        if (this.activeBlockLoadsCount == 0) {\n            this.dispatchEvent({ type: RowNodeBlockLoader_1.BLOCK_LOADER_FINISHED_EVENT });\n        }\n    };\n    RowNodeBlockLoader.prototype.checkBlockToLoad = function () {\n        if (this.checkBlockToLoadDebounce) {\n            this.checkBlockToLoadDebounce();\n        }\n        else {\n            this.performCheckBlocksToLoad();\n        }\n    };\n    RowNodeBlockLoader.prototype.performCheckBlocksToLoad = function () {\n        if (!this.active) {\n            return;\n        }\n        this.printCacheStatus();\n        if (this.maxConcurrentRequests != null && this.activeBlockLoadsCount >= this.maxConcurrentRequests) {\n            this.logger.log(\"checkBlockToLoad: max loads exceeded\");\n            return;\n        }\n        var blockToLoad = null;\n        this.blocks.forEach(function (block) {\n            if (block.getState() === RowNodeBlock.STATE_WAITING_TO_LOAD) {\n                blockToLoad = block;\n            }\n        });\n        if (blockToLoad) {\n            blockToLoad.load();\n            this.activeBlockLoadsCount++;\n            this.printCacheStatus();\n        }\n    };\n    RowNodeBlockLoader.prototype.getBlockState = function () {\n        var result = {};\n        this.blocks.forEach(function (block) {\n            var _a = block.getBlockStateJson(), id = _a.id, state = _a.state;\n            result[id] = state;\n        });\n        return result;\n    };\n    RowNodeBlockLoader.prototype.printCacheStatus = function () {\n        if (this.logger.isLogging()) {\n            this.logger.log(\"printCacheStatus: activePageLoadsCount = \" + this.activeBlockLoadsCount + \",\"\n                + (\" blocks = \" + JSON.stringify(this.getBlockState())));\n        }\n    };\n    RowNodeBlockLoader.prototype.isLoading = function () {\n        return this.activeBlockLoadsCount > 0;\n    };\n    var RowNodeBlockLoader_1;\n    RowNodeBlockLoader.BLOCK_LOADER_FINISHED_EVENT = 'blockLoaderFinished';\n    __decorate$1y([\n        PostConstruct\n    ], RowNodeBlockLoader.prototype, \"postConstruct\", null);\n    __decorate$1y([\n        __param$4(0, Qualifier('loggerFactory'))\n    ], RowNodeBlockLoader.prototype, \"setBeans\", null);\n    RowNodeBlockLoader = RowNodeBlockLoader_1 = __decorate$1y([\n        Bean('rowNodeBlockLoader')\n    ], RowNodeBlockLoader);\n    return RowNodeBlockLoader;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1N = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1z = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PaginationProxy = /** @class */ (function (_super) {\n    __extends$1N(PaginationProxy, _super);\n    function PaginationProxy() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.currentPage = 0;\n        _this.topDisplayedRowIndex = 0;\n        _this.bottomDisplayedRowIndex = 0;\n        _this.pixelOffset = 0;\n        _this.masterRowCount = 0;\n        return _this;\n    }\n    PaginationProxy.prototype.postConstruct = function () {\n        this.active = this.gridOptionsWrapper.isPagination();\n        this.paginateChildRows = this.gridOptionsWrapper.isPaginateChildRows();\n        this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this));\n        this.addManagedListener(this.gridOptionsWrapper, 'paginationPageSize', this.onPaginationPageSizeChanged.bind(this));\n        this.onModelUpdated();\n    };\n    PaginationProxy.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n        var res = this.rowModel.ensureRowHeightsValid(startPixel, endPixel, this.getPageFirstRow(), this.getPageLastRow());\n        if (res) {\n            this.calculatePages();\n        }\n        return res;\n    };\n    PaginationProxy.prototype.onModelUpdated = function (modelUpdatedEvent) {\n        this.calculatePages();\n        var paginationChangedEvent = {\n            type: Events.EVENT_PAGINATION_CHANGED,\n            animate: modelUpdatedEvent ? modelUpdatedEvent.animate : false,\n            newData: modelUpdatedEvent ? modelUpdatedEvent.newData : false,\n            newPage: modelUpdatedEvent ? modelUpdatedEvent.newPage : false,\n            keepRenderedRows: modelUpdatedEvent ? modelUpdatedEvent.keepRenderedRows : false,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(paginationChangedEvent);\n    };\n    PaginationProxy.prototype.onPaginationPageSizeChanged = function () {\n        this.calculatePages();\n        var paginationChangedEvent = {\n            type: Events.EVENT_PAGINATION_CHANGED,\n            animate: false,\n            newData: false,\n            newPage: false,\n            // important to keep rendered rows, otherwise every time grid is resized,\n            // we would destroy all the rows.\n            keepRenderedRows: true,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(paginationChangedEvent);\n    };\n    PaginationProxy.prototype.goToPage = function (page) {\n        if (!this.active || this.currentPage === page) {\n            return;\n        }\n        this.currentPage = page;\n        var event = {\n            type: Events.EVENT_MODEL_UPDATED,\n            animate: false,\n            keepRenderedRows: false,\n            newData: false,\n            newPage: true,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.onModelUpdated(event);\n    };\n    PaginationProxy.prototype.getPixelOffset = function () {\n        return this.pixelOffset;\n    };\n    PaginationProxy.prototype.getRow = function (index) {\n        return this.rowModel.getRow(index);\n    };\n    PaginationProxy.prototype.getRowNode = function (id) {\n        return this.rowModel.getRowNode(id);\n    };\n    PaginationProxy.prototype.getRowIndexAtPixel = function (pixel) {\n        return this.rowModel.getRowIndexAtPixel(pixel);\n    };\n    PaginationProxy.prototype.getCurrentPageHeight = function () {\n        if (missing(this.topRowBounds) || missing(this.bottomRowBounds)) {\n            return 0;\n        }\n        return Math.max(this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight - this.topRowBounds.rowTop, 0);\n    };\n    PaginationProxy.prototype.getCurrentPagePixelRange = function () {\n        var pageFirstPixel = this.topRowBounds ? this.topRowBounds.rowTop : 0;\n        var pageLastPixel = this.bottomRowBounds ? this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight : 0;\n        return { pageFirstPixel: pageFirstPixel, pageLastPixel: pageLastPixel };\n    };\n    PaginationProxy.prototype.isRowPresent = function (rowNode) {\n        if (!this.rowModel.isRowPresent(rowNode)) {\n            return false;\n        }\n        var nodeIsInPage = rowNode.rowIndex >= this.topDisplayedRowIndex && rowNode.rowIndex <= this.bottomDisplayedRowIndex;\n        return nodeIsInPage;\n    };\n    PaginationProxy.prototype.isEmpty = function () {\n        return this.rowModel.isEmpty();\n    };\n    PaginationProxy.prototype.isRowsToRender = function () {\n        return this.rowModel.isRowsToRender();\n    };\n    PaginationProxy.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n        return this.rowModel.getNodesInRangeForSelection(firstInRange, lastInRange);\n    };\n    PaginationProxy.prototype.forEachNode = function (callback) {\n        return this.rowModel.forEachNode(callback);\n    };\n    PaginationProxy.prototype.getType = function () {\n        return this.rowModel.getType();\n    };\n    PaginationProxy.prototype.getRowBounds = function (index) {\n        var res = this.rowModel.getRowBounds(index);\n        res.rowIndex = index;\n        return res;\n    };\n    PaginationProxy.prototype.getPageFirstRow = function () {\n        return this.topRowBounds ? this.topRowBounds.rowIndex : -1;\n    };\n    PaginationProxy.prototype.getPageLastRow = function () {\n        return this.bottomRowBounds ? this.bottomRowBounds.rowIndex : -1;\n    };\n    PaginationProxy.prototype.getRowCount = function () {\n        return this.rowModel.getRowCount();\n    };\n    PaginationProxy.prototype.getPageForIndex = function (index) {\n        return Math.floor(index / this.pageSize);\n    };\n    PaginationProxy.prototype.goToPageWithIndex = function (index) {\n        if (!this.active) {\n            return;\n        }\n        var pageNumber = this.getPageForIndex(index);\n        this.goToPage(pageNumber);\n    };\n    PaginationProxy.prototype.isRowInPage = function (row) {\n        if (!this.active) {\n            return true;\n        }\n        var rowPage = this.getPageForIndex(row.rowIndex);\n        return rowPage === this.currentPage;\n    };\n    PaginationProxy.prototype.isLastPageFound = function () {\n        return this.rowModel.isLastRowIndexKnown();\n    };\n    PaginationProxy.prototype.getCurrentPage = function () {\n        return this.currentPage;\n    };\n    PaginationProxy.prototype.goToNextPage = function () {\n        this.goToPage(this.currentPage + 1);\n    };\n    PaginationProxy.prototype.goToPreviousPage = function () {\n        this.goToPage(this.currentPage - 1);\n    };\n    PaginationProxy.prototype.goToFirstPage = function () {\n        this.goToPage(0);\n    };\n    PaginationProxy.prototype.goToLastPage = function () {\n        var rowCount = this.rowModel.getRowCount();\n        var lastPage = Math.floor(rowCount / this.pageSize);\n        this.goToPage(lastPage);\n    };\n    PaginationProxy.prototype.getPageSize = function () {\n        return this.pageSize;\n    };\n    PaginationProxy.prototype.getTotalPages = function () {\n        return this.totalPages;\n    };\n    PaginationProxy.prototype.setPageSize = function () {\n        // show put this into super class\n        this.pageSize = this.gridOptionsWrapper.getPaginationPageSize();\n        if (this.pageSize == null || this.pageSize < 1) {\n            this.pageSize = 100;\n        }\n    };\n    PaginationProxy.prototype.calculatePages = function () {\n        if (this.active) {\n            this.setPageSize();\n            if (this.paginateChildRows) {\n                this.calculatePagesAllRows();\n            }\n            else {\n                this.calculatePagesMasterRowsOnly();\n            }\n        }\n        else {\n            this.calculatedPagesNotActive();\n        }\n        this.topRowBounds = this.rowModel.getRowBounds(this.topDisplayedRowIndex);\n        if (this.topRowBounds) {\n            this.topRowBounds.rowIndex = this.topDisplayedRowIndex;\n        }\n        this.bottomRowBounds = this.rowModel.getRowBounds(this.bottomDisplayedRowIndex);\n        if (this.bottomRowBounds) {\n            this.bottomRowBounds.rowIndex = this.bottomDisplayedRowIndex;\n        }\n        this.setPixelOffset(exists(this.topRowBounds) ? this.topRowBounds.rowTop : 0);\n    };\n    PaginationProxy.prototype.setPixelOffset = function (value) {\n        if (this.pixelOffset === value) {\n            return;\n        }\n        this.pixelOffset = value;\n        this.eventService.dispatchEvent({ type: Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED });\n    };\n    PaginationProxy.prototype.setZeroRows = function () {\n        this.masterRowCount = 0;\n        this.topDisplayedRowIndex = 0;\n        this.bottomDisplayedRowIndex = -1;\n        this.currentPage = 0;\n        this.totalPages = 0;\n    };\n    PaginationProxy.prototype.calculatePagesMasterRowsOnly = function () {\n        // const csrm = <ClientSideRowModel> this.rowModel;\n        // const rootNode = csrm.getRootNode();\n        // const masterRows = rootNode.childrenAfterSort;\n        this.masterRowCount = this.rowModel.getTopLevelRowCount();\n        // we say <=0 (rather than =0) as viewport returns -1 when no rows\n        if (this.masterRowCount <= 0) {\n            this.setZeroRows();\n            return;\n        }\n        var masterLastRowIndex = this.masterRowCount - 1;\n        this.totalPages = Math.floor((masterLastRowIndex) / this.pageSize) + 1;\n        if (this.currentPage >= this.totalPages) {\n            this.currentPage = this.totalPages - 1;\n        }\n        if (!isNumeric(this.currentPage) || this.currentPage < 0) {\n            this.currentPage = 0;\n        }\n        var masterPageStartIndex = this.pageSize * this.currentPage;\n        var masterPageEndIndex = (this.pageSize * (this.currentPage + 1)) - 1;\n        if (masterPageEndIndex > masterLastRowIndex) {\n            masterPageEndIndex = masterLastRowIndex;\n        }\n        this.topDisplayedRowIndex = this.rowModel.getTopLevelRowDisplayedIndex(masterPageStartIndex);\n        // masterRows[masterPageStartIndex].rowIndex;\n        if (masterPageEndIndex === masterLastRowIndex) {\n            // if showing the last master row, then we want to show the very last row of the model\n            this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;\n        }\n        else {\n            var firstIndexNotToShow = this.rowModel.getTopLevelRowDisplayedIndex(masterPageEndIndex + 1);\n            //masterRows[masterPageEndIndex + 1].rowIndex;\n            // this gets the index of the last child - eg current row is open, we want to display all children,\n            // the index of the last child is one less than the index of the next parent row.\n            this.bottomDisplayedRowIndex = firstIndexNotToShow - 1;\n        }\n    };\n    PaginationProxy.prototype.getMasterRowCount = function () {\n        return this.masterRowCount;\n    };\n    PaginationProxy.prototype.calculatePagesAllRows = function () {\n        this.masterRowCount = this.rowModel.getRowCount();\n        if (this.masterRowCount === 0) {\n            this.setZeroRows();\n            return;\n        }\n        var maxRowIndex = this.masterRowCount - 1;\n        this.totalPages = Math.floor((maxRowIndex) / this.pageSize) + 1;\n        if (this.currentPage >= this.totalPages) {\n            this.currentPage = this.totalPages - 1;\n        }\n        if (!isNumeric(this.currentPage) || this.currentPage < 0) {\n            this.currentPage = 0;\n        }\n        this.topDisplayedRowIndex = this.pageSize * this.currentPage;\n        this.bottomDisplayedRowIndex = (this.pageSize * (this.currentPage + 1)) - 1;\n        if (this.bottomDisplayedRowIndex > maxRowIndex) {\n            this.bottomDisplayedRowIndex = maxRowIndex;\n        }\n    };\n    PaginationProxy.prototype.calculatedPagesNotActive = function () {\n        this.pageSize = this.rowModel.getRowCount();\n        this.totalPages = 1;\n        this.currentPage = 0;\n        this.topDisplayedRowIndex = 0;\n        this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;\n    };\n    __decorate$1z([\n        Autowired('rowModel')\n    ], PaginationProxy.prototype, \"rowModel\", void 0);\n    __decorate$1z([\n        Autowired('columnApi')\n    ], PaginationProxy.prototype, \"columnApi\", void 0);\n    __decorate$1z([\n        Autowired('gridApi')\n    ], PaginationProxy.prototype, \"gridApi\", void 0);\n    __decorate$1z([\n        PostConstruct\n    ], PaginationProxy.prototype, \"postConstruct\", null);\n    PaginationProxy = __decorate$1z([\n        Bean('paginationProxy')\n    ], PaginationProxy);\n    return PaginationProxy;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1O = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1A = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar StylingService = /** @class */ (function (_super) {\n    __extends$1O(StylingService, _super);\n    function StylingService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    StylingService.prototype.processAllCellClasses = function (colDef, params, onApplicableClass, onNotApplicableClass) {\n        this.processClassRules(colDef.cellClassRules, params, onApplicableClass, onNotApplicableClass);\n        this.processStaticCellClasses(colDef, params, onApplicableClass);\n    };\n    StylingService.prototype.processClassRules = function (classRules, params, onApplicableClass, onNotApplicableClass) {\n        if (classRules == null) {\n            return;\n        }\n        var classNames = Object.keys(classRules);\n        var classesToApply = {};\n        var classesToRemove = {};\n        var _loop_1 = function (i) {\n            var className = classNames[i];\n            var rule = classRules[className];\n            var resultOfRule;\n            if (typeof rule === 'string') {\n                resultOfRule = this_1.expressionService.evaluate(rule, params);\n            }\n            else if (typeof rule === 'function') {\n                resultOfRule = rule(params);\n            }\n            // in case className = 'my-class1 my-class2', we need to split into individual class names\n            className.split(' ').forEach(function (singleClass) {\n                if (singleClass == null || singleClass.trim() == '') {\n                    return;\n                }\n                resultOfRule ? classesToApply[singleClass] = true : classesToRemove[singleClass] = true;\n            });\n        };\n        var this_1 = this;\n        for (var i = 0; i < classNames.length; i++) {\n            _loop_1(i);\n        }\n        // we remove all classes first, then add all classes second,\n        // in case a class appears in more than one rule, this means it will be added\n        // if appears in at least one truthy rule\n        if (onNotApplicableClass) {\n            Object.keys(classesToRemove).forEach(onNotApplicableClass);\n        }\n        Object.keys(classesToApply).forEach(onApplicableClass);\n    };\n    StylingService.prototype.getStaticCellClasses = function (colDef, params) {\n        var cellClass = colDef.cellClass;\n        if (!cellClass) {\n            return [];\n        }\n        var classOrClasses;\n        if (typeof cellClass === 'function') {\n            var cellClassFunc = cellClass;\n            classOrClasses = cellClassFunc(params);\n        }\n        else {\n            classOrClasses = cellClass;\n        }\n        if (typeof classOrClasses === 'string') {\n            classOrClasses = [classOrClasses];\n        }\n        return classOrClasses || [];\n    };\n    StylingService.prototype.processStaticCellClasses = function (colDef, params, onApplicableClass) {\n        var classOrClasses = this.getStaticCellClasses(colDef, params);\n        classOrClasses.forEach(function (cssClassItem) {\n            onApplicableClass(cssClassItem);\n        });\n    };\n    __decorate$1A([\n        Autowired('expressionService')\n    ], StylingService.prototype, \"expressionService\", void 0);\n    StylingService = __decorate$1A([\n        Bean('stylingService')\n    ], StylingService);\n    return StylingService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1P = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgRadioButton = /** @class */ (function (_super) {\n    __extends$1P(AgRadioButton, _super);\n    function AgRadioButton(config) {\n        return _super.call(this, config, 'ag-radio-button', 'radio') || this;\n    }\n    AgRadioButton.prototype.isSelected = function () {\n        return this.eInput.checked;\n    };\n    AgRadioButton.prototype.toggle = function () {\n        if (this.eInput.disabled) {\n            return;\n        }\n        // do not allow an active radio button to be deselected\n        if (!this.isSelected()) {\n            this.setValue(true);\n        }\n    };\n    AgRadioButton.prototype.addInputListeners = function () {\n        _super.prototype.addInputListeners.call(this);\n        this.addManagedListener(this.eventService, Events.EVENT_CHECKBOX_CHANGED, this.onChange.bind(this));\n    };\n    /**\n     * This ensures that if another radio button in the same named group is selected, we deselect this radio button.\n     * By default the browser does this for you, but we are managing classes ourselves in order to ensure input\n     * elements are styled correctly in IE11, and the DOM 'changed' event is only fired when a button is selected,\n     * not deselected, so we need to use our own event.\n     */\n    AgRadioButton.prototype.onChange = function (event) {\n        if (event.selected &&\n            event.name &&\n            this.eInput.name &&\n            this.eInput.name === event.name &&\n            event.id &&\n            this.eInput.id !== event.id) {\n            this.setValue(false, true);\n        }\n    };\n    return AgRadioButton;\n}(AgCheckbox));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1Q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgToggleButton = /** @class */ (function (_super) {\n    __extends$1Q(AgToggleButton, _super);\n    function AgToggleButton(config) {\n        return _super.call(this, config, 'ag-toggle-button') || this;\n    }\n    AgToggleButton.prototype.setValue = function (value, silent) {\n        _super.prototype.setValue.call(this, value, silent);\n        this.addOrRemoveCssClass('ag-selected', this.getValue());\n        return this;\n    };\n    return AgToggleButton;\n}(AgCheckbox));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1R = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgInputTextField = /** @class */ (function (_super) {\n    __extends$1R(AgInputTextField, _super);\n    function AgInputTextField(config, className, inputType) {\n        if (className === void 0) { className = 'ag-text-field'; }\n        if (inputType === void 0) { inputType = 'text'; }\n        return _super.call(this, config, className, inputType) || this;\n    }\n    AgInputTextField.prototype.postConstruct = function () {\n        _super.prototype.postConstruct.call(this);\n        if (this.config.allowedCharPattern) {\n            this.preventDisallowedCharacters();\n        }\n    };\n    AgInputTextField.prototype.setValue = function (value, silent) {\n        var ret = _super.prototype.setValue.call(this, value, silent);\n        if (this.eInput.value !== value) {\n            this.eInput.value = exists(value) ? value : '';\n        }\n        return ret;\n    };\n    AgInputTextField.prototype.preventDisallowedCharacters = function () {\n        var pattern = new RegExp(\"[\" + this.config.allowedCharPattern + \"]\");\n        var preventDisallowedCharacters = function (event) {\n            if (event.key && !pattern.test(event.key)) {\n                event.preventDefault();\n            }\n        };\n        this.addManagedListener(this.eInput, 'keypress', preventDisallowedCharacters);\n        this.addManagedListener(this.eInput, 'paste', function (e) {\n            var _a;\n            var text = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');\n            if (text && text.split('').some(function (c) { return !pattern.test(c); })) {\n                e.preventDefault();\n            }\n        });\n    };\n    return AgInputTextField;\n}(AgAbstractInputField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1S = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgInputTextArea = /** @class */ (function (_super) {\n    __extends$1S(AgInputTextArea, _super);\n    function AgInputTextArea(config) {\n        return _super.call(this, config, 'ag-text-area', null, 'textarea') || this;\n    }\n    AgInputTextArea.prototype.setValue = function (value, silent) {\n        var ret = _super.prototype.setValue.call(this, value, silent);\n        this.eInput.value = value;\n        return ret;\n    };\n    AgInputTextArea.prototype.setCols = function (cols) {\n        this.eInput.cols = cols;\n        return this;\n    };\n    AgInputTextArea.prototype.setRows = function (rows) {\n        this.eInput.rows = rows;\n        return this;\n    };\n    return AgInputTextArea;\n}(AgAbstractInputField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1T = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgInputNumberField = /** @class */ (function (_super) {\n    __extends$1T(AgInputNumberField, _super);\n    function AgInputNumberField(config) {\n        return _super.call(this, config, 'ag-number-field', 'number') || this;\n    }\n    AgInputNumberField.prototype.postConstruct = function () {\n        var _this = this;\n        _super.prototype.postConstruct.call(this);\n        this.addManagedListener(this.eInput, 'blur', function () {\n            var floatedValue = parseFloat(_this.eInput.value);\n            var value = isNaN(floatedValue) ? '' : _this.normalizeValue(floatedValue.toString());\n            if (_this.value !== value) {\n                _this.setValue(value);\n            }\n        });\n        this.eInput.step = 'any';\n    };\n    AgInputNumberField.prototype.normalizeValue = function (value) {\n        if (value === '') {\n            return '';\n        }\n        if (this.precision) {\n            value = this.adjustPrecision(value);\n        }\n        var val = parseFloat(value);\n        if (this.min != null && val < this.min) {\n            value = this.min.toString();\n        }\n        else if (this.max != null && val > this.max) {\n            value = this.max.toString();\n        }\n        return value;\n    };\n    AgInputNumberField.prototype.adjustPrecision = function (value) {\n        if (this.precision) {\n            var floatString = parseFloat(value).toFixed(this.precision);\n            value = parseFloat(floatString).toString();\n        }\n        return value;\n    };\n    AgInputNumberField.prototype.setMin = function (min) {\n        if (this.min === min) {\n            return this;\n        }\n        this.min = min;\n        addOrRemoveAttribute(this.eInput, 'min', min);\n        return this;\n    };\n    AgInputNumberField.prototype.setMax = function (max) {\n        if (this.max === max) {\n            return this;\n        }\n        this.max = max;\n        addOrRemoveAttribute(this.eInput, 'max', max);\n        return this;\n    };\n    AgInputNumberField.prototype.setPrecision = function (precision) {\n        this.precision = precision;\n        return this;\n    };\n    AgInputNumberField.prototype.setStep = function (step) {\n        if (this.step === step) {\n            return this;\n        }\n        this.step = step;\n        addOrRemoveAttribute(this.eInput, 'step', step);\n        return this;\n    };\n    AgInputNumberField.prototype.setValue = function (value, silent) {\n        value = this.adjustPrecision(value);\n        var normalizedValue = this.normalizeValue(value);\n        if (value != normalizedValue) {\n            return this;\n        }\n        return _super.prototype.setValue.call(this, value, silent);\n    };\n    return AgInputNumberField;\n}(AgInputTextField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1U = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgInputRange = /** @class */ (function (_super) {\n    __extends$1U(AgInputRange, _super);\n    function AgInputRange(config) {\n        return _super.call(this, config, 'ag-range-field', 'range') || this;\n    }\n    AgInputRange.prototype.postConstruct = function () {\n        _super.prototype.postConstruct.call(this);\n        var _a = this.config, min = _a.min, max = _a.max, step = _a.step;\n        if (min != null) {\n            this.setMinValue(min);\n        }\n        if (max != null) {\n            this.setMaxValue(max);\n        }\n        this.setStep(step || 1);\n    };\n    AgInputRange.prototype.addInputListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eInput, 'input', function (e) {\n            var value = e.target.value;\n            _this.setValue(value);\n        });\n    };\n    AgInputRange.prototype.setMinValue = function (value) {\n        this.min = value;\n        this.eInput.setAttribute('min', value.toString());\n        return this;\n    };\n    AgInputRange.prototype.setMaxValue = function (value) {\n        this.max = value;\n        this.eInput.setAttribute('max', value.toString());\n        return this;\n    };\n    AgInputRange.prototype.setStep = function (value) {\n        this.eInput.setAttribute('step', value.toString());\n        return this;\n    };\n    AgInputRange.prototype.setValue = function (value, silent) {\n        if (this.min != null) {\n            value = Math.max(parseFloat(value), this.min).toString();\n        }\n        if (this.max != null) {\n            value = Math.min(parseFloat(value), this.max).toString();\n        }\n        var ret = _super.prototype.setValue.call(this, value, silent);\n        this.eInput.value = value;\n        return ret;\n    };\n    return AgInputRange;\n}(AgAbstractInputField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1V = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1B = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgSlider = /** @class */ (function (_super) {\n    __extends$1V(AgSlider, _super);\n    function AgSlider(config) {\n        var _this = _super.call(this, config, AgSlider.TEMPLATE) || this;\n        _this.labelAlignment = 'top';\n        return _this;\n    }\n    AgSlider.prototype.init = function () {\n        this.eSlider.addCssClass('ag-slider-field');\n    };\n    AgSlider.prototype.onValueChange = function (callbackFn) {\n        var _this = this;\n        var eventChanged = AgAbstractField.EVENT_CHANGED;\n        this.addManagedListener(this.eText, eventChanged, function () {\n            var textValue = parseFloat(_this.eText.getValue());\n            _this.eSlider.setValue(textValue.toString(), true);\n            callbackFn(textValue || 0);\n        });\n        this.addManagedListener(this.eSlider, eventChanged, function () {\n            var sliderValue = _this.eSlider.getValue();\n            _this.eText.setValue(sliderValue, true);\n            callbackFn(parseFloat(sliderValue));\n        });\n        return this;\n    };\n    AgSlider.prototype.setSliderWidth = function (width) {\n        this.eSlider.setWidth(width);\n        return this;\n    };\n    AgSlider.prototype.setTextFieldWidth = function (width) {\n        this.eText.setWidth(width);\n        return this;\n    };\n    AgSlider.prototype.setMinValue = function (minValue) {\n        this.eSlider.setMinValue(minValue);\n        this.eText.setMin(minValue);\n        return this;\n    };\n    AgSlider.prototype.setMaxValue = function (maxValue) {\n        this.eSlider.setMaxValue(maxValue);\n        this.eText.setMax(maxValue);\n        return this;\n    };\n    AgSlider.prototype.getValue = function () {\n        return this.eText.getValue();\n    };\n    AgSlider.prototype.setValue = function (value) {\n        if (this.getValue() === value) {\n            return this;\n        }\n        this.eText.setValue(value, true);\n        this.eSlider.setValue(value, true);\n        this.dispatchEvent({ type: AgAbstractField.EVENT_CHANGED });\n        return this;\n    };\n    AgSlider.prototype.setStep = function (step) {\n        this.eSlider.setStep(step);\n        this.eText.setStep(step);\n        return this;\n    };\n    AgSlider.TEMPLATE = \"<div class=\\\"ag-slider\\\">\\n            <label ref=\\\"eLabel\\\"></label>\\n            <div class=\\\"ag-wrapper ag-slider-wrapper\\\">\\n                <ag-input-range ref=\\\"eSlider\\\"></ag-input-range>\\n                <ag-input-number-field ref=\\\"eText\\\"></ag-input-number-field>\\n            </div>\\n        </div>\";\n    __decorate$1B([\n        RefSelector('eLabel')\n    ], AgSlider.prototype, \"eLabel\", void 0);\n    __decorate$1B([\n        RefSelector('eSlider')\n    ], AgSlider.prototype, \"eSlider\", void 0);\n    __decorate$1B([\n        RefSelector('eText')\n    ], AgSlider.prototype, \"eText\", void 0);\n    __decorate$1B([\n        PostConstruct\n    ], AgSlider.prototype, \"init\", null);\n    return AgSlider;\n}(AgAbstractLabel));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1W = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1C = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgAngleSelect = /** @class */ (function (_super) {\n    __extends$1W(AgAngleSelect, _super);\n    function AgAngleSelect(config) {\n        var _this = _super.call(this, config, AgAngleSelect.TEMPLATE) || this;\n        _this.radius = 0;\n        _this.offsetX = 0;\n        _this.offsetY = 0;\n        return _this;\n    }\n    AgAngleSelect.prototype.postConstruct = function () {\n        var _this = this;\n        _super.prototype.postConstruct.call(this);\n        this.dragListener = {\n            eElement: this.eParentCircle,\n            dragStartPixels: 0,\n            onDragStart: function (e) {\n                _this.parentCircleRect = _this.eParentCircle.getBoundingClientRect();\n            },\n            onDragging: function (e) { return _this.calculateAngleDrag(e); },\n            onDragStop: function () { }\n        };\n        this.dragService.addDragSource(this.dragListener);\n        this.eAngleValue\n            .setLabel('')\n            .setLabelWidth(5)\n            .setInputWidth(45)\n            .setMin(0)\n            .setMax(360)\n            .setValue(\"\" + this.degrees)\n            .onValueChange(function (value) {\n            if (value == null || value === '') {\n                value = '0';\n            }\n            value = _this.eAngleValue.normalizeValue(value);\n            var floatValue = parseFloat(value);\n            if (floatValue > 180) {\n                floatValue = floatValue - 360;\n            }\n            _this.setValue(floatValue);\n        });\n        this.updateNumberInput();\n        if (exists(this.getValue())) {\n            this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString());\n        }\n        this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () {\n            var eDocument = _this.gridOptionsWrapper.getDocument();\n            if (_this.eAngleValue.getInputElement().contains(eDocument.activeElement)) {\n                return;\n            }\n            _this.updateNumberInput();\n        });\n    };\n    AgAngleSelect.prototype.updateNumberInput = function () {\n        var normalizedValue = this.normalizeNegativeValue(this.getValue());\n        this.eAngleValue.setValue(normalizedValue.toString());\n    };\n    AgAngleSelect.prototype.positionChildCircle = function (radians) {\n        var rect = this.parentCircleRect || { width: 24, height: 24 };\n        var eChildCircle = this.eChildCircle;\n        var centerX = rect.width / 2;\n        var centerY = rect.height / 2;\n        eChildCircle.style.left = centerX + Math.cos(radians) * 8 + \"px\";\n        eChildCircle.style.top = centerY + Math.sin(radians) * 8 + \"px\";\n    };\n    AgAngleSelect.prototype.calculatePolar = function () {\n        var x = this.offsetX;\n        var y = this.offsetY;\n        var radians = Math.atan2(y, x);\n        this.degrees = this.toDegrees(radians);\n        this.radius = Math.sqrt((x * x) + (y * y));\n        this.positionChildCircle(radians);\n    };\n    AgAngleSelect.prototype.calculateCartesian = function () {\n        var radians = this.toRadians(this.getValue());\n        var radius = this.getRadius();\n        this\n            .setOffsetX(Math.cos(radians) * radius)\n            .setOffsetY(Math.sin(radians) * radius);\n    };\n    AgAngleSelect.prototype.setOffsetX = function (offset) {\n        if (this.offsetX !== offset) {\n            this.offsetX = offset;\n            this.calculatePolar();\n        }\n        return this;\n    };\n    AgAngleSelect.prototype.setOffsetY = function (offset) {\n        if (this.offsetY !== offset) {\n            this.offsetY = offset;\n            this.calculatePolar();\n        }\n        return this;\n    };\n    AgAngleSelect.prototype.calculateAngleDrag = function (e) {\n        var rect = this.parentCircleRect;\n        var centerX = rect.width / 2;\n        var centerY = rect.height / 2;\n        var x = e.clientX - rect.left;\n        var y = e.clientY - rect.top;\n        var dx = x - centerX;\n        var dy = y - centerY;\n        var radians = Math.atan2(dy, dx);\n        this.setValue(radians, true);\n    };\n    AgAngleSelect.prototype.toDegrees = function (radians) {\n        return radians / Math.PI * 180;\n    };\n    AgAngleSelect.prototype.toRadians = function (degrees) {\n        return degrees / 180 * Math.PI;\n    };\n    AgAngleSelect.prototype.normalizeNegativeValue = function (degrees) {\n        return degrees < 0 ? 360 + degrees : degrees;\n    };\n    AgAngleSelect.prototype.normalizeAngle180 = function (radians) {\n        radians %= Math.PI * 2;\n        if (radians < -Math.PI) {\n            radians += Math.PI * 2;\n        }\n        else if (radians >= Math.PI) {\n            radians -= Math.PI * 2;\n        }\n        return radians;\n    };\n    AgAngleSelect.prototype.getRadius = function () {\n        return this.radius;\n    };\n    AgAngleSelect.prototype.setRadius = function (r) {\n        if (this.radius === r) {\n            return this;\n        }\n        this.radius = r;\n        this.calculateCartesian();\n        return this;\n    };\n    AgAngleSelect.prototype.onValueChange = function (callbackFn) {\n        var _this = this;\n        this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () {\n            callbackFn(_this.degrees);\n        });\n        return this;\n    };\n    AgAngleSelect.prototype.getValue = function (radians) {\n        return radians ? this.toRadians(this.degrees) : this.degrees;\n    };\n    AgAngleSelect.prototype.setValue = function (degrees, radians) {\n        var radiansValue;\n        if (!radians) {\n            radiansValue = this.normalizeAngle180(this.toRadians(degrees));\n        }\n        else {\n            radiansValue = degrees;\n        }\n        degrees = this.toDegrees(radiansValue);\n        if (this.degrees !== degrees) {\n            this.degrees = Math.floor(degrees);\n            this.calculateCartesian();\n            this.positionChildCircle(radiansValue);\n            this.dispatchEvent({ type: AgAbstractField.EVENT_CHANGED });\n        }\n        return this;\n    };\n    AgAngleSelect.prototype.setWidth = function (width) {\n        setFixedWidth(this.getGui(), width);\n        return this;\n    };\n    AgAngleSelect.prototype.destroy = function () {\n        this.dragService.removeDragSource(this.dragListener);\n        _super.prototype.destroy.call(this);\n    };\n    AgAngleSelect.TEMPLATE = \"<div class=\\\"ag-angle-select\\\">\\n            <div ref=\\\"eLabel\\\"></div>\\n            <div class=\\\"ag-wrapper ag-angle-select-wrapper\\\">\\n                <div ref=\\\"eAngleSelectField\\\" class=\\\"ag-angle-select-field\\\">\\n                    <div ref=\\\"eParentCircle\\\" class=\\\"ag-angle-select-parent-circle\\\">\\n                        <div ref=\\\"eChildCircle\\\" class=\\\"ag-angle-select-child-circle\\\"></div>\\n                    </div>\\n                </div>\\n                <ag-input-number-field ref=\\\"eAngleValue\\\"></ag-input-number-field>\\n            </div>\\n        </div>\";\n    __decorate$1C([\n        RefSelector('eLabel')\n    ], AgAngleSelect.prototype, \"eLabel\", void 0);\n    __decorate$1C([\n        RefSelector('eParentCircle')\n    ], AgAngleSelect.prototype, \"eParentCircle\", void 0);\n    __decorate$1C([\n        RefSelector('eChildCircle')\n    ], AgAngleSelect.prototype, \"eChildCircle\", void 0);\n    __decorate$1C([\n        RefSelector('eAngleValue')\n    ], AgAngleSelect.prototype, \"eAngleValue\", void 0);\n    __decorate$1C([\n        Autowired('dragService')\n    ], AgAngleSelect.prototype, \"dragService\", void 0);\n    return AgAngleSelect;\n}(AgAbstractLabel));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1X = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1D = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$e = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar AgColorPanel = /** @class */ (function (_super) {\n    __extends$1X(AgColorPanel, _super);\n    function AgColorPanel(config) {\n        var _this = _super.call(this, AgColorPanel.TEMPLATE) || this;\n        _this.H = 1; // in the [0, 1] range\n        _this.S = 1; // in the [0, 1] range\n        _this.B = 1; // in the [0, 1] range\n        _this.A = 1; // in the [0, 1] range\n        _this.isSpectrumDragging = false;\n        _this.isSpectrumHueDragging = false;\n        _this.isSpectrumAlphaDragging = false;\n        _this.colorChanged = false;\n        _this.picker = config.picker;\n        return _this;\n    }\n    AgColorPanel.prototype.postConstruct = function () {\n        var eGui = this.getGui();\n        this.initRecentColors();\n        this.addManagedListener(this.spectrumVal, 'mousedown', this.onSpectrumDraggerDown.bind(this));\n        this.addManagedListener(eGui, 'mousemove', this.onSpectrumDraggerMove.bind(this));\n        this.addManagedListener(this.spectrumHue, 'mousedown', this.onSpectrumHueDown.bind(this));\n        this.addManagedListener(eGui, 'mousemove', this.onSpectrumHueMove.bind(this));\n        this.addManagedListener(this.spectrumAlpha, 'mousedown', this.onSpectrumAlphaDown.bind(this));\n        this.addManagedListener(eGui, 'mousemove', this.onSpectrumAlphaMove.bind(this));\n        // Listening to `mouseup` on the document on purpose. The user might release the mouse button\n        // outside the UI control. When the mouse returns back to the control's area, the dragging\n        // of the thumb is not expected and seen as a bug.\n        this.addManagedListener(document, 'mouseup', this.onMouseUp.bind(this));\n        this.addManagedListener(this.recentColors, 'click', this.onRecentColorClick.bind(this));\n    };\n    AgColorPanel.prototype.refreshSpectrumRect = function () {\n        return this.spectrumValRect = this.spectrumVal.getBoundingClientRect();\n    };\n    AgColorPanel.prototype.refreshHueRect = function () {\n        return this.spectrumHueRect = this.spectrumHue.getBoundingClientRect();\n    };\n    AgColorPanel.prototype.refreshAlphaRect = function () {\n        return this.spectrumAlphaRect = this.spectrumAlpha.getBoundingClientRect();\n    };\n    AgColorPanel.prototype.onSpectrumDraggerDown = function (e) {\n        this.refreshSpectrumRect();\n        this.isSpectrumDragging = true;\n        this.moveDragger(e);\n    };\n    AgColorPanel.prototype.onSpectrumDraggerMove = function (e) {\n        if (this.isSpectrumDragging) {\n            this.moveDragger(e);\n        }\n    };\n    AgColorPanel.prototype.onSpectrumHueDown = function (e) {\n        this.refreshHueRect();\n        this.isSpectrumHueDragging = true;\n        this.moveHueSlider(e);\n    };\n    AgColorPanel.prototype.onSpectrumHueMove = function (e) {\n        if (this.isSpectrumHueDragging) {\n            this.moveHueSlider(e);\n        }\n    };\n    AgColorPanel.prototype.onSpectrumAlphaDown = function (e) {\n        this.refreshAlphaRect();\n        this.isSpectrumAlphaDragging = true;\n        this.moveAlphaSlider(e);\n    };\n    AgColorPanel.prototype.onSpectrumAlphaMove = function (e) {\n        if (this.isSpectrumAlphaDragging) {\n            this.moveAlphaSlider(e);\n        }\n    };\n    AgColorPanel.prototype.onMouseUp = function () {\n        this.isSpectrumDragging = false;\n        this.isSpectrumHueDragging = false;\n        this.isSpectrumAlphaDragging = false;\n    };\n    AgColorPanel.prototype.moveDragger = function (e) {\n        var valRect = this.spectrumValRect;\n        if (valRect) {\n            var x = e.clientX - valRect.left;\n            var y = e.clientY - valRect.top;\n            x = Math.max(x, 0);\n            x = Math.min(x, valRect.width);\n            y = Math.max(y, 0);\n            y = Math.min(y, valRect.height);\n            this.setSpectrumValue(x / valRect.width, 1 - y / valRect.height);\n        }\n    };\n    AgColorPanel.prototype.moveHueSlider = function (e) {\n        var hueRect = this.spectrumHueRect;\n        if (hueRect) {\n            var slider = this.spectrumHueSlider;\n            var sliderRect = slider.getBoundingClientRect();\n            var x = e.clientX - hueRect.left;\n            x = Math.max(x, 0);\n            x = Math.min(x, hueRect.width);\n            this.H = 1 - x / hueRect.width;\n            slider.style.left = (x + sliderRect.width / 2) + 'px';\n            this.update();\n        }\n    };\n    AgColorPanel.prototype.moveAlphaSlider = function (e) {\n        var alphaRect = this.spectrumAlphaRect;\n        if (alphaRect) {\n            var slider = this.spectrumAlphaSlider;\n            var sliderRect = slider.getBoundingClientRect();\n            var x = e.clientX - alphaRect.left;\n            x = Math.max(x, 0);\n            x = Math.min(x, alphaRect.width);\n            this.A = x / alphaRect.width;\n            slider.style.left = (x + sliderRect.width / 2) + 'px';\n            this.update();\n        }\n    };\n    AgColorPanel.prototype.update = function () {\n        var color = Color.fromHSB(this.H * 360, this.S, this.B, this.A);\n        var spectrumColor = Color.fromHSB(this.H * 360, 1, 1);\n        var rgbaColor = color.toRgbaString();\n        // the recent color list needs to know color has actually changed\n        var colorPicker = this.picker;\n        var existingColor = Color.fromString(colorPicker.getValue());\n        if (existingColor.toRgbaString() !== rgbaColor) {\n            this.colorChanged = true;\n        }\n        colorPicker.setValue(rgbaColor);\n        this.spectrumColor.style.backgroundColor = spectrumColor.toRgbaString();\n        this.spectrumDragger.style.backgroundColor = rgbaColor;\n    };\n    /**\n     * @param saturation In the [0, 1] interval.\n     * @param brightness In the [0, 1] interval.\n     */\n    AgColorPanel.prototype.setSpectrumValue = function (saturation, brightness) {\n        var valRect = this.spectrumValRect || this.refreshSpectrumRect();\n        if (valRect) {\n            var dragger = this.spectrumDragger;\n            var draggerRect = dragger.getBoundingClientRect();\n            saturation = Math.max(0, saturation);\n            saturation = Math.min(1, saturation);\n            brightness = Math.max(0, brightness);\n            brightness = Math.min(1, brightness);\n            this.S = saturation;\n            this.B = brightness;\n            dragger.style.left = (saturation * valRect.width - draggerRect.width / 2) + 'px';\n            dragger.style.top = ((1 - brightness) * valRect.height - draggerRect.height / 2) + 'px';\n            this.update();\n        }\n    };\n    AgColorPanel.prototype.initRecentColors = function () {\n        var recentColors = AgColorPanel.recentColors;\n        var innerHtml = recentColors.map(function (color, index) {\n            return \"<div class=\\\"ag-recent-color\\\" id=\" + index + \" style=\\\"background-color: \" + color + \"; width: 15px; height: 15px;\\\" recent-color=\\\"\" + color + \"\\\"></div>\";\n        });\n        this.recentColors.innerHTML = innerHtml.join('');\n    };\n    AgColorPanel.prototype.setValue = function (val) {\n        var color = Color.fromString(val);\n        var _a = __read$e(color.toHSB(), 3), h = _a[0], s = _a[1], b = _a[2];\n        this.H = (isNaN(h) ? 0 : h) / 360;\n        this.A = color.a;\n        var spectrumHueRect = this.spectrumHueRect || this.refreshHueRect();\n        var spectrumAlphaRect = this.spectrumAlphaRect || this.refreshAlphaRect();\n        this.spectrumHueSlider.style.left = ((this.H - 1) * -spectrumHueRect.width) + \"px\";\n        this.spectrumAlphaSlider.style.left = (this.A * spectrumAlphaRect.width) + \"px\";\n        this.setSpectrumValue(s, b);\n    };\n    AgColorPanel.prototype.onRecentColorClick = function (e) {\n        var target = e.target;\n        if (!exists(target.id)) {\n            return;\n        }\n        var id = parseInt(target.id, 10);\n        this.setValue(AgColorPanel.recentColors[id]);\n        this.destroy();\n    };\n    AgColorPanel.prototype.addRecentColor = function () {\n        var color = Color.fromHSB(this.H * 360, this.S, this.B, this.A);\n        var rgbaColor = color.toRgbaString();\n        var recentColors = AgColorPanel.recentColors;\n        if (!this.colorChanged || recentColors[0] === rgbaColor) {\n            return;\n        }\n        // remove duplicate color\n        recentColors = recentColors.filter(function (currentColor) { return currentColor != rgbaColor; });\n        // add color to head\n        recentColors = [rgbaColor].concat(recentColors);\n        // ensure we don't exceed max number of recent colors\n        if (recentColors.length > AgColorPanel.maxRecentColors) {\n            recentColors = recentColors.slice(0, AgColorPanel.maxRecentColors);\n        }\n        AgColorPanel.recentColors = recentColors;\n    };\n    AgColorPanel.prototype.destroy = function () {\n        this.addRecentColor();\n        _super.prototype.destroy.call(this);\n    };\n    AgColorPanel.maxRecentColors = 8;\n    AgColorPanel.recentColors = [];\n    AgColorPanel.TEMPLATE = \"<div class=\\\"ag-color-panel\\\">\\n            <div ref=\\\"spectrumColor\\\" class=\\\"ag-spectrum-color\\\">\\n                <div class=\\\"ag-spectrum-sat ag-spectrum-fill\\\">\\n                    <div ref=\\\"spectrumVal\\\" class=\\\"ag-spectrum-val ag-spectrum-fill\\\">\\n                        <div ref=\\\"spectrumDragger\\\" class=\\\"ag-spectrum-dragger\\\"></div>\\n                    </div>\\n                </div>\\n            </div>\\n            <div class=\\\"ag-spectrum-tools\\\">\\n                <div ref=\\\"spectrumHue\\\" class=\\\"ag-spectrum-hue ag-spectrum-tool\\\">\\n                    <div class=\\\"ag-spectrum-hue-background\\\"></div>\\n                    <div ref=\\\"spectrumHueSlider\\\" class=\\\"ag-spectrum-slider\\\"></div>\\n                </div>\\n                <div ref=\\\"spectrumAlpha\\\" class=\\\"ag-spectrum-alpha ag-spectrum-tool\\\">\\n                    <div class=\\\"ag-spectrum-alpha-background\\\"></div>\\n                    <div ref=\\\"spectrumAlphaSlider\\\" class=\\\"ag-spectrum-slider\\\"></div>\\n                </div>\\n                <div ref=\\\"recentColors\\\" class=\\\"ag-recent-colors\\\"></div>\\n            </div>\\n        </div>\";\n    __decorate$1D([\n        RefSelector('spectrumColor')\n    ], AgColorPanel.prototype, \"spectrumColor\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumVal')\n    ], AgColorPanel.prototype, \"spectrumVal\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumDragger')\n    ], AgColorPanel.prototype, \"spectrumDragger\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumHue')\n    ], AgColorPanel.prototype, \"spectrumHue\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumHueSlider')\n    ], AgColorPanel.prototype, \"spectrumHueSlider\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumAlpha')\n    ], AgColorPanel.prototype, \"spectrumAlpha\", void 0);\n    __decorate$1D([\n        RefSelector('spectrumAlphaSlider')\n    ], AgColorPanel.prototype, \"spectrumAlphaSlider\", void 0);\n    __decorate$1D([\n        RefSelector('recentColors')\n    ], AgColorPanel.prototype, \"recentColors\", void 0);\n    __decorate$1D([\n        PostConstruct\n    ], AgColorPanel.prototype, \"postConstruct\", null);\n    return AgColorPanel;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1Y = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1E = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgPanel = /** @class */ (function (_super) {\n    __extends$1Y(AgPanel, _super);\n    function AgPanel(config) {\n        var _this = _super.call(this, AgPanel.getTemplate(config)) || this;\n        _this.closable = true;\n        _this.config = config;\n        return _this;\n    }\n    AgPanel.getTemplate = function (config) {\n        var cssIdentifier = (config && config.cssIdentifier) || 'default';\n        return /* html */ \"<div class=\\\"ag-panel ag-\" + cssIdentifier + \"-panel\\\" tabindex=\\\"-1\\\">\\n            <div ref=\\\"eTitleBar\\\" class=\\\"ag-panel-title-bar ag-\" + cssIdentifier + \"-panel-title-bar ag-unselectable\\\">\\n                <span ref=\\\"eTitle\\\" class=\\\"ag-panel-title-bar-title ag-\" + cssIdentifier + \"-panel-title-bar-title\\\"></span>\\n                <div ref=\\\"eTitleBarButtons\\\" class=\\\"ag-panel-title-bar-buttons ag-\" + cssIdentifier + \"-panel-title-bar-buttons\\\"></div>\\n            </div>\\n            <div ref=\\\"eContentWrapper\\\" class=\\\"ag-panel-content-wrapper ag-\" + cssIdentifier + \"-panel-content-wrapper\\\"></div>\\n        </div>\";\n    };\n    AgPanel.prototype.postConstruct = function () {\n        var _this = this;\n        var _a = this.config, component = _a.component, closable = _a.closable, hideTitleBar = _a.hideTitleBar, title = _a.title, _b = _a.minWidth, minWidth = _b === void 0 ? 250 : _b, width = _a.width, _c = _a.minHeight, minHeight = _c === void 0 ? 250 : _c, height = _a.height, centered = _a.centered, popup = _a.popup, x = _a.x, y = _a.y;\n        this.positionableFeature = new PositionableFeature(this.getGui(), {\n            minWidth: minWidth, width: width, minHeight: minHeight, height: height, centered: centered, x: x, y: y, popup: popup,\n            calculateTopBuffer: function () { return _this.positionableFeature.getHeight() - _this.getBodyHeight(); }\n        });\n        this.createManagedBean(this.positionableFeature);\n        var eGui = this.getGui();\n        if (component) {\n            this.setBodyComponent(component);\n        }\n        if (!hideTitleBar) {\n            if (title) {\n                this.setTitle(title);\n            }\n            this.setClosable(closable != null ? closable : this.closable);\n        }\n        else {\n            this.eTitleBar.classList.add('ag-hidden');\n        }\n        this.addManagedListener(this.eTitleBar, 'mousedown', function (e) {\n            var eDocument = _this.gridOptionsWrapper.getDocument();\n            if (eGui.contains(e.relatedTarget) ||\n                eGui.contains(eDocument.activeElement) ||\n                _this.eTitleBarButtons.contains(e.target)) {\n                e.preventDefault();\n                return;\n            }\n            var focusEl = _this.eContentWrapper.querySelector('button, [href], input, select, textarea, [tabindex]');\n            if (focusEl) {\n                focusEl.focus();\n            }\n        });\n        if (popup && this.positionableFeature.isPositioned()) {\n            return;\n        }\n        if (this.renderComponent) {\n            this.renderComponent();\n        }\n        this.positionableFeature.initialisePosition();\n        this.eContentWrapper.style.height = '0';\n    };\n    AgPanel.prototype.renderComponent = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        eGui.focus();\n        this.close = function () {\n            eGui.parentElement.removeChild(eGui);\n            _this.destroy();\n        };\n    };\n    AgPanel.prototype.getHeight = function () {\n        return this.positionableFeature.getHeight();\n    };\n    AgPanel.prototype.setHeight = function (height) {\n        this.positionableFeature.setHeight(height);\n    };\n    AgPanel.prototype.getWidth = function () {\n        return this.positionableFeature.getWidth();\n    };\n    AgPanel.prototype.setWidth = function (width) {\n        this.positionableFeature.setWidth(width);\n    };\n    AgPanel.prototype.setClosable = function (closable) {\n        if (closable !== this.closable) {\n            this.closable = closable;\n        }\n        if (closable) {\n            var closeButtonComp = this.closeButtonComp = new Component(AgPanel.CLOSE_BTN_TEMPLATE);\n            this.getContext().createBean(closeButtonComp);\n            var eGui = closeButtonComp.getGui();\n            var child = createIconNoSpan('close', this.gridOptionsWrapper);\n            child.classList.add('ag-panel-title-bar-button-icon');\n            eGui.appendChild(child);\n            this.addTitleBarButton(closeButtonComp);\n            closeButtonComp.addManagedListener(eGui, 'click', this.onBtClose.bind(this));\n        }\n        else if (this.closeButtonComp) {\n            var eGui = this.closeButtonComp.getGui();\n            eGui.parentElement.removeChild(eGui);\n            this.closeButtonComp = this.destroyBean(this.closeButtonComp);\n        }\n    };\n    AgPanel.prototype.setBodyComponent = function (bodyComponent) {\n        bodyComponent.setParentComponent(this);\n        this.eContentWrapper.appendChild(bodyComponent.getGui());\n    };\n    AgPanel.prototype.addTitleBarButton = function (button, position) {\n        var eTitleBarButtons = this.eTitleBarButtons;\n        var buttons = eTitleBarButtons.children;\n        var len = buttons.length;\n        if (position == null) {\n            position = len;\n        }\n        position = Math.max(0, Math.min(position, len));\n        button.addCssClass('ag-panel-title-bar-button');\n        var eGui = button.getGui();\n        if (position === 0) {\n            eTitleBarButtons.insertAdjacentElement('afterbegin', eGui);\n        }\n        else if (position === len) {\n            eTitleBarButtons.insertAdjacentElement('beforeend', eGui);\n        }\n        else {\n            buttons[position - 1].insertAdjacentElement('afterend', eGui);\n        }\n        button.setParentComponent(this);\n    };\n    AgPanel.prototype.getBodyHeight = function () {\n        return getInnerHeight(this.eContentWrapper);\n    };\n    AgPanel.prototype.getBodyWidth = function () {\n        return getInnerWidth(this.eContentWrapper);\n    };\n    AgPanel.prototype.setTitle = function (title) {\n        this.eTitle.innerText = title;\n    };\n    // called when user hits the 'x' in the top right\n    AgPanel.prototype.onBtClose = function () {\n        this.close();\n    };\n    AgPanel.prototype.destroy = function () {\n        if (this.closeButtonComp) {\n            this.closeButtonComp = this.destroyBean(this.closeButtonComp);\n        }\n        var eGui = this.getGui();\n        if (eGui && eGui.offsetParent) {\n            this.close();\n        }\n        _super.prototype.destroy.call(this);\n    };\n    AgPanel.CLOSE_BTN_TEMPLATE = \"<div class=\\\"ag-button\\\"></div>\";\n    __decorate$1E([\n        RefSelector('eContentWrapper')\n    ], AgPanel.prototype, \"eContentWrapper\", void 0);\n    __decorate$1E([\n        RefSelector('eTitleBar')\n    ], AgPanel.prototype, \"eTitleBar\", void 0);\n    __decorate$1E([\n        RefSelector('eTitleBarButtons')\n    ], AgPanel.prototype, \"eTitleBarButtons\", void 0);\n    __decorate$1E([\n        RefSelector('eTitle')\n    ], AgPanel.prototype, \"eTitle\", void 0);\n    __decorate$1E([\n        PostConstruct\n    ], AgPanel.prototype, \"postConstruct\", null);\n    return AgPanel;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1Z = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$e = (undefined && undefined.__assign) || function () {\n    __assign$e = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$e.apply(this, arguments);\n};\nvar __decorate$1F = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgDialog = /** @class */ (function (_super) {\n    __extends$1Z(AgDialog, _super);\n    function AgDialog(config) {\n        var _this = _super.call(this, __assign$e(__assign$e({}, config), { popup: true })) || this;\n        _this.isMaximizable = false;\n        _this.isMaximized = false;\n        _this.maximizeListeners = [];\n        _this.resizeListenerDestroy = null;\n        _this.lastPosition = {\n            x: 0,\n            y: 0,\n            width: 0,\n            height: 0\n        };\n        return _this;\n    }\n    AgDialog.prototype.postConstruct = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        var _a = this.config, movable = _a.movable, resizable = _a.resizable, maximizable = _a.maximizable;\n        this.addCssClass('ag-dialog');\n        _super.prototype.postConstruct.call(this);\n        this.addManagedListener(eGui, 'focusin', function (e) {\n            if (eGui.contains(e.relatedTarget)) {\n                return;\n            }\n            _this.popupService.bringPopupToFront(eGui);\n        });\n        if (movable) {\n            this.setMovable(movable);\n        }\n        if (maximizable) {\n            this.setMaximizable(maximizable);\n        }\n        if (resizable) {\n            this.setResizable(resizable);\n        }\n    };\n    AgDialog.prototype.renderComponent = function () {\n        var eGui = this.getGui();\n        var _a = this.config, alwaysOnTop = _a.alwaysOnTop, modal = _a.modal, title = _a.title;\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = this.popupService.addPopup({\n            modal: modal,\n            eChild: eGui,\n            closeOnEsc: true,\n            closedCallback: this.destroy.bind(this),\n            alwaysOnTop: alwaysOnTop,\n            ariaLabel: title || translate('ariaLabelDialog', 'Dialog')\n        });\n        if (addPopupRes) {\n            this.close = addPopupRes.hideFunc;\n        }\n    };\n    AgDialog.prototype.toggleMaximize = function () {\n        var position = this.positionableFeature.getPosition();\n        if (this.isMaximized) {\n            var _a = this.lastPosition, x = _a.x, y = _a.y, width = _a.width, height = _a.height;\n            this.setWidth(width);\n            this.setHeight(height);\n            this.positionableFeature.offsetElement(x, y);\n        }\n        else {\n            this.lastPosition.width = this.getWidth();\n            this.lastPosition.height = this.getHeight();\n            this.lastPosition.x = position.x;\n            this.lastPosition.y = position.y;\n            this.positionableFeature.offsetElement(0, 0);\n            this.setHeight('100%');\n            this.setWidth('100%');\n        }\n        this.isMaximized = !this.isMaximized;\n        this.refreshMaximizeIcon();\n    };\n    AgDialog.prototype.refreshMaximizeIcon = function () {\n        setDisplayed(this.maximizeIcon, !this.isMaximized);\n        setDisplayed(this.minimizeIcon, this.isMaximized);\n    };\n    AgDialog.prototype.clearMaximizebleListeners = function () {\n        if (this.maximizeListeners.length) {\n            this.maximizeListeners.forEach(function (destroyListener) { return destroyListener(); });\n            this.maximizeListeners.length = 0;\n        }\n        if (this.resizeListenerDestroy) {\n            this.resizeListenerDestroy();\n            this.resizeListenerDestroy = null;\n        }\n    };\n    AgDialog.prototype.destroy = function () {\n        this.maximizeButtonComp = this.destroyBean(this.maximizeButtonComp);\n        this.clearMaximizebleListeners();\n        _super.prototype.destroy.call(this);\n    };\n    AgDialog.prototype.setResizable = function (resizable) {\n        this.positionableFeature.setResizable(resizable);\n    };\n    AgDialog.prototype.setMovable = function (movable) {\n        this.positionableFeature.setMovable(movable, this.eTitleBar);\n    };\n    AgDialog.prototype.setMaximizable = function (maximizable) {\n        var _this = this;\n        if (!maximizable) {\n            this.clearMaximizebleListeners();\n            if (this.maximizeButtonComp) {\n                this.destroyBean(this.maximizeButtonComp);\n                this.maximizeButtonComp = this.maximizeIcon = this.minimizeIcon = undefined;\n            }\n            return;\n        }\n        var eTitleBar = this.eTitleBar;\n        if (!eTitleBar || maximizable === this.isMaximizable) {\n            return;\n        }\n        var maximizeButtonComp = this.maximizeButtonComp =\n            this.createBean(new Component(/* html */ \"<div class=\\\"ag-dialog-button\\\"></span>\"));\n        var eGui = maximizeButtonComp.getGui();\n        eGui.appendChild(this.maximizeIcon = createIconNoSpan('maximize', this.gridOptionsWrapper));\n        this.maximizeIcon.classList.add('ag-panel-title-bar-button-icon');\n        eGui.appendChild(this.minimizeIcon = createIconNoSpan('minimize', this.gridOptionsWrapper));\n        this.minimizeIcon.classList.add('ag-panel-title-bar-button-icon', 'ag-hidden');\n        maximizeButtonComp.addManagedListener(eGui, 'click', this.toggleMaximize.bind(this));\n        this.addTitleBarButton(maximizeButtonComp, 0);\n        this.maximizeListeners.push(this.addManagedListener(eTitleBar, 'dblclick', this.toggleMaximize.bind(this)));\n        this.resizeListenerDestroy = this.addManagedListener(this, 'resize', function () {\n            _this.isMaximized = false;\n            _this.refreshMaximizeIcon();\n        });\n    };\n    __decorate$1F([\n        Autowired('popupService')\n    ], AgDialog.prototype, \"popupService\", void 0);\n    return AgDialog;\n}(AgPanel));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1_ = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar AgColorPicker = /** @class */ (function (_super) {\n    __extends$1_(AgColorPicker, _super);\n    function AgColorPicker(config) {\n        var _this = _super.call(this, config, 'ag-color-picker', 'colorPicker') || this;\n        if (config && config.color) {\n            _this.value = config.color;\n        }\n        return _this;\n    }\n    AgColorPicker.prototype.postConstruct = function () {\n        _super.prototype.postConstruct.call(this);\n        if (this.value) {\n            this.setValue(this.value);\n        }\n    };\n    AgColorPicker.prototype.showPicker = function () {\n        var _this = this;\n        var eGuiRect = this.getGui().getBoundingClientRect();\n        var colorDialog = this.createBean(new AgDialog({\n            closable: false,\n            modal: true,\n            hideTitleBar: true,\n            minWidth: 190,\n            width: 190,\n            height: 250,\n            x: eGuiRect.right - 190,\n            y: eGuiRect.top - 250\n        }));\n        this.isPickerDisplayed = true;\n        colorDialog.addCssClass('ag-color-dialog');\n        setAriaExpanded(this.eWrapper, true);\n        var colorPanel = this.createBean(new AgColorPanel({ picker: this }));\n        colorPanel.addDestroyFunc(function () {\n            if (colorDialog.isAlive()) {\n                _this.destroyBean(colorDialog);\n            }\n        });\n        colorDialog.setParentComponent(this);\n        colorDialog.setBodyComponent(colorPanel);\n        colorPanel.setValue(this.getValue());\n        colorDialog.addDestroyFunc(function () {\n            // here we check if the picker was already being\n            // destroyed to avoid a stack overflow\n            if (!_this.isDestroyingPicker) {\n                _this.isDestroyingPicker = true;\n                if (colorPanel.isAlive()) {\n                    _this.destroyBean(colorPanel);\n                }\n            }\n            else {\n                _this.isDestroyingPicker = false;\n            }\n            if (_this.isAlive()) {\n                setAriaExpanded(_this.eWrapper, false);\n                _this.getFocusableElement().focus();\n            }\n            _this.isPickerDisplayed = false;\n        });\n        return colorDialog;\n    };\n    AgColorPicker.prototype.setValue = function (color) {\n        if (this.value === color) {\n            return this;\n        }\n        this.eDisplayField.style.backgroundColor = color;\n        return _super.prototype.setValue.call(this, color);\n    };\n    AgColorPicker.prototype.getValue = function () {\n        return this.value;\n    };\n    return AgColorPicker;\n}(AgPickerField));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$1$ = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1G = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgGroupComponent = /** @class */ (function (_super) {\n    __extends$1$(AgGroupComponent, _super);\n    function AgGroupComponent(params) {\n        if (params === void 0) { params = {}; }\n        var _this = _super.call(this, AgGroupComponent.getTemplate(params)) || this;\n        _this.suppressEnabledCheckbox = true;\n        _this.suppressOpenCloseIcons = false;\n        var title = params.title, enabled = params.enabled, items = params.items, suppressEnabledCheckbox = params.suppressEnabledCheckbox, suppressOpenCloseIcons = params.suppressOpenCloseIcons;\n        _this.title = title;\n        _this.cssIdentifier = params.cssIdentifier || 'default';\n        _this.enabled = enabled != null ? enabled : true;\n        _this.items = items || [];\n        _this.alignItems = params.alignItems || 'center';\n        if (suppressEnabledCheckbox != null) {\n            _this.suppressEnabledCheckbox = suppressEnabledCheckbox;\n        }\n        if (suppressOpenCloseIcons != null) {\n            _this.suppressOpenCloseIcons = suppressOpenCloseIcons;\n        }\n        return _this;\n    }\n    AgGroupComponent.getTemplate = function (params) {\n        var cssIdentifier = params.cssIdentifier || 'default';\n        var direction = params.direction || 'vertical';\n        return /* html */ \"<div class=\\\"ag-group ag-\" + cssIdentifier + \"-group\\\" role=\\\"presentation\\\">\\n            <div class=\\\"ag-group-title-bar ag-\" + cssIdentifier + \"-group-title-bar ag-unselectable\\\" ref=\\\"eTitleBar\\\" role=\\\"button\\\">\\n                <span class=\\\"ag-group-title-bar-icon ag-\" + cssIdentifier + \"-group-title-bar-icon\\\" ref=\\\"eGroupOpenedIcon\\\" role=\\\"presentation\\\"></span>\\n                <span class=\\\"ag-group-title-bar-icon ag-\" + cssIdentifier + \"-group-title-bar-icon\\\" ref=\\\"eGroupClosedIcon\\\" role=\\\"presentation\\\"></span>\\n                <span ref=\\\"eTitle\\\" class=\\\"ag-group-title ag-\" + cssIdentifier + \"-group-title\\\"></span>\\n            </div>\\n            <div ref=\\\"eToolbar\\\" class=\\\"ag-group-toolbar ag-\" + cssIdentifier + \"-group-toolbar\\\">\\n                <ag-checkbox ref=\\\"cbGroupEnabled\\\"></ag-checkbox>\\n            </div>\\n            <div ref=\\\"eContainer\\\" class=\\\"ag-group-container ag-group-container-\" + direction + \" ag-\" + cssIdentifier + \"-group-container\\\"></div>\\n        </div>\";\n    };\n    AgGroupComponent.prototype.postConstruct = function () {\n        if (this.items.length) {\n            var initialItems = this.items;\n            this.items = [];\n            this.addItems(initialItems);\n        }\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        this.cbGroupEnabled.setLabel(localeTextFunc('enabled', 'Enabled'));\n        if (this.title) {\n            this.setTitle(this.title);\n        }\n        if (this.enabled) {\n            this.setEnabled(this.enabled);\n        }\n        this.setAlignItems(this.alignItems);\n        this.hideEnabledCheckbox(this.suppressEnabledCheckbox);\n        this.hideOpenCloseIcons(this.suppressOpenCloseIcons);\n        this.setupExpandContract();\n        this.refreshAriaStatus();\n        this.refreshChildDisplay();\n    };\n    AgGroupComponent.prototype.setupExpandContract = function () {\n        var _this = this;\n        this.eGroupClosedIcon.appendChild(createIcon('columnSelectClosed', this.gridOptionsWrapper, null));\n        this.eGroupOpenedIcon.appendChild(createIcon('columnSelectOpen', this.gridOptionsWrapper, null));\n        this.addManagedListener(this.eTitleBar, 'click', function () { return _this.toggleGroupExpand(); });\n        this.addManagedListener(this.eTitleBar, 'keydown', function (e) {\n            switch (e.key) {\n                case KeyCode.ENTER:\n                case KeyCode.SPACE:\n                    e.preventDefault();\n                    _this.toggleGroupExpand();\n                    break;\n                case KeyCode.RIGHT:\n                case KeyCode.LEFT:\n                    e.preventDefault();\n                    _this.toggleGroupExpand(e.key === KeyCode.RIGHT);\n                    break;\n            }\n        });\n    };\n    AgGroupComponent.prototype.refreshAriaStatus = function () {\n        if (!this.suppressOpenCloseIcons) {\n            setAriaExpanded(this.eTitleBar, this.expanded);\n        }\n    };\n    AgGroupComponent.prototype.refreshChildDisplay = function () {\n        var showIcon = !this.suppressOpenCloseIcons;\n        setDisplayed(this.eToolbar, this.expanded && !this.suppressEnabledCheckbox);\n        setDisplayed(this.eGroupOpenedIcon, showIcon && this.expanded);\n        setDisplayed(this.eGroupClosedIcon, showIcon && !this.expanded);\n    };\n    AgGroupComponent.prototype.isExpanded = function () {\n        return this.expanded;\n    };\n    AgGroupComponent.prototype.setAlignItems = function (alignment) {\n        if (this.alignItems !== alignment) {\n            this.removeCssClass(\"ag-group-item-alignment-\" + this.alignItems);\n        }\n        this.alignItems = alignment;\n        var newCls = \"ag-group-item-alignment-\" + this.alignItems;\n        this.addCssClass(newCls);\n        return this;\n    };\n    AgGroupComponent.prototype.toggleGroupExpand = function (expanded) {\n        if (this.suppressOpenCloseIcons) {\n            this.expanded = true;\n            this.refreshChildDisplay();\n            setDisplayed(this.eContainer, true);\n            return this;\n        }\n        expanded = expanded != null ? expanded : !this.expanded;\n        if (this.expanded === expanded) {\n            return this;\n        }\n        this.expanded = expanded;\n        this.refreshAriaStatus();\n        this.refreshChildDisplay();\n        setDisplayed(this.eContainer, expanded);\n        this.dispatchEvent({ type: this.expanded ? AgGroupComponent.EVENT_EXPANDED : AgGroupComponent.EVENT_COLLAPSED });\n        return this;\n    };\n    AgGroupComponent.prototype.addItems = function (items) {\n        var _this = this;\n        items.forEach(function (item) { return _this.addItem(item); });\n    };\n    AgGroupComponent.prototype.addItem = function (item) {\n        var container = this.eContainer;\n        var el = item instanceof Component ? item.getGui() : item;\n        el.classList.add('ag-group-item', \"ag-\" + this.cssIdentifier + \"-group-item\");\n        container.appendChild(el);\n        this.items.push(el);\n    };\n    AgGroupComponent.prototype.hideItem = function (hide, index) {\n        var itemToHide = this.items[index];\n        itemToHide.classList.toggle('ag-hidden', hide);\n    };\n    AgGroupComponent.prototype.setTitle = function (title) {\n        this.eTitle.innerText = title;\n        return this;\n    };\n    AgGroupComponent.prototype.addCssClassToTitleBar = function (cssClass) {\n        this.eTitleBar.classList.add(cssClass);\n    };\n    AgGroupComponent.prototype.setEnabled = function (enabled, skipToggle) {\n        this.enabled = enabled;\n        this.refreshDisabledStyles();\n        this.toggleGroupExpand(enabled);\n        if (!skipToggle) {\n            this.cbGroupEnabled.setValue(enabled);\n        }\n        return this;\n    };\n    AgGroupComponent.prototype.isEnabled = function () {\n        return this.enabled;\n    };\n    AgGroupComponent.prototype.onEnableChange = function (callbackFn) {\n        var _this = this;\n        this.cbGroupEnabled.onValueChange(function (newSelection) {\n            _this.setEnabled(newSelection, true);\n            callbackFn(newSelection);\n        });\n        return this;\n    };\n    AgGroupComponent.prototype.hideEnabledCheckbox = function (hide) {\n        this.suppressEnabledCheckbox = hide;\n        this.refreshChildDisplay();\n        this.refreshDisabledStyles();\n        return this;\n    };\n    AgGroupComponent.prototype.hideOpenCloseIcons = function (hide) {\n        this.suppressOpenCloseIcons = hide;\n        if (hide) {\n            this.toggleGroupExpand(true);\n        }\n        return this;\n    };\n    AgGroupComponent.prototype.refreshDisabledStyles = function () {\n        this.addOrRemoveCssClass('ag-disabled', !this.enabled);\n        if (this.suppressEnabledCheckbox && !this.enabled) {\n            this.eTitleBar.classList.add('ag-disabled-group-title-bar');\n            this.eTitleBar.removeAttribute('tabindex');\n        }\n        else {\n            this.eTitleBar.classList.remove('ag-disabled-group-title-bar');\n            this.eTitleBar.setAttribute('tabindex', '0');\n        }\n        this.eContainer.classList.toggle('ag-disabled-group-container', !this.enabled);\n    };\n    AgGroupComponent.EVENT_EXPANDED = 'expanded';\n    AgGroupComponent.EVENT_COLLAPSED = 'collapsed';\n    __decorate$1G([\n        RefSelector('eTitleBar')\n    ], AgGroupComponent.prototype, \"eTitleBar\", void 0);\n    __decorate$1G([\n        RefSelector('eGroupOpenedIcon')\n    ], AgGroupComponent.prototype, \"eGroupOpenedIcon\", void 0);\n    __decorate$1G([\n        RefSelector('eGroupClosedIcon')\n    ], AgGroupComponent.prototype, \"eGroupClosedIcon\", void 0);\n    __decorate$1G([\n        RefSelector('eToolbar')\n    ], AgGroupComponent.prototype, \"eToolbar\", void 0);\n    __decorate$1G([\n        RefSelector('cbGroupEnabled')\n    ], AgGroupComponent.prototype, \"cbGroupEnabled\", void 0);\n    __decorate$1G([\n        RefSelector('eTitle')\n    ], AgGroupComponent.prototype, \"eTitle\", void 0);\n    __decorate$1G([\n        RefSelector('eContainer')\n    ], AgGroupComponent.prototype, \"eContainer\", void 0);\n    __decorate$1G([\n        PostConstruct\n    ], AgGroupComponent.prototype, \"postConstruct\", null);\n    return AgGroupComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$20 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1H = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TabGuardCtrl = /** @class */ (function (_super) {\n    __extends$20(TabGuardCtrl, _super);\n    function TabGuardCtrl(params) {\n        var _this = _super.call(this) || this;\n        _this.skipTabGuardFocus = false;\n        var comp = params.comp, eTopGuard = params.eTopGuard, eBottomGuard = params.eBottomGuard, focusInnerElement = params.focusInnerElement, onFocusIn = params.onFocusIn, onFocusOut = params.onFocusOut, shouldStopEventPropagation = params.shouldStopEventPropagation, onTabKeyDown = params.onTabKeyDown, handleKeyDown = params.handleKeyDown, eFocusableElement = params.eFocusableElement;\n        _this.comp = comp;\n        _this.eTopGuard = eTopGuard;\n        _this.eBottomGuard = eBottomGuard;\n        _this.providedFocusInnerElement = focusInnerElement;\n        _this.eFocusableElement = eFocusableElement;\n        _this.providedFocusIn = onFocusIn;\n        _this.providedFocusOut = onFocusOut;\n        _this.providedShouldStopEventPropagation = shouldStopEventPropagation;\n        _this.providedOnTabKeyDown = onTabKeyDown;\n        _this.providedHandleKeyDown = handleKeyDown;\n        return _this;\n    }\n    TabGuardCtrl.prototype.postConstruct = function () {\n        var _this = this;\n        this.createManagedBean(new ManagedFocusFeature(this.eFocusableElement, {\n            shouldStopEventPropagation: function () { return _this.shouldStopEventPropagation(); },\n            onTabKeyDown: function (e) { return _this.onTabKeyDown(e); },\n            handleKeyDown: function (e) { return _this.handleKeyDown(e); },\n            onFocusIn: function (e) { return _this.onFocusIn(e); },\n            onFocusOut: function (e) { return _this.onFocusOut(e); }\n        }));\n        this.activateTabGuards();\n        [this.eTopGuard, this.eBottomGuard].forEach(function (guard) { return _this.addManagedListener(guard, 'focus', _this.onFocus.bind(_this)); });\n    };\n    TabGuardCtrl.prototype.handleKeyDown = function (e) {\n        if (this.providedHandleKeyDown) {\n            this.providedHandleKeyDown(e);\n        }\n    };\n    TabGuardCtrl.prototype.tabGuardsAreActive = function () {\n        return !!this.eTopGuard && this.eTopGuard.hasAttribute('tabIndex');\n    };\n    TabGuardCtrl.prototype.shouldStopEventPropagation = function () {\n        if (this.providedShouldStopEventPropagation) {\n            return this.providedShouldStopEventPropagation();\n        }\n        return false;\n    };\n    TabGuardCtrl.prototype.activateTabGuards = function () {\n        this.comp.setTabIndex(this.getGridTabIndex());\n    };\n    TabGuardCtrl.prototype.deactivateTabGuards = function () {\n        this.comp.setTabIndex();\n    };\n    TabGuardCtrl.prototype.onFocus = function (e) {\n        if (this.skipTabGuardFocus) {\n            this.skipTabGuardFocus = false;\n            return;\n        }\n        var fromBottom = e.target === this.eBottomGuard;\n        if (this.providedFocusInnerElement) {\n            this.providedFocusInnerElement(fromBottom);\n        }\n        else {\n            this.focusInnerElement(fromBottom);\n        }\n    };\n    TabGuardCtrl.prototype.onFocusIn = function (e) {\n        if (this.providedFocusIn && this.providedFocusIn(e)) {\n            return;\n        }\n        this.deactivateTabGuards();\n    };\n    TabGuardCtrl.prototype.onFocusOut = function (e) {\n        if (this.providedFocusOut && this.providedFocusOut(e)) {\n            return;\n        }\n        if (!this.eFocusableElement.contains(e.relatedTarget)) {\n            this.activateTabGuards();\n        }\n    };\n    TabGuardCtrl.prototype.onTabKeyDown = function (e) {\n        var _this = this;\n        if (this.providedOnTabKeyDown) {\n            this.providedOnTabKeyDown(e);\n            return;\n        }\n        if (e.defaultPrevented) {\n            return;\n        }\n        var tabGuardsAreActive = this.tabGuardsAreActive();\n        if (tabGuardsAreActive) {\n            this.deactivateTabGuards();\n        }\n        var nextRoot = this.getNextFocusableElement(e.shiftKey);\n        if (tabGuardsAreActive) {\n            // ensure the tab guards are only re-instated once the event has finished processing, to avoid the browser\n            // tabbing to the tab guard from inside the component\n            setTimeout(function () { return _this.activateTabGuards(); }, 0);\n        }\n        if (!nextRoot) {\n            return;\n        }\n        nextRoot.focus();\n        e.preventDefault();\n    };\n    TabGuardCtrl.prototype.getGridTabIndex = function () {\n        return this.gridOptionsWrapper.getGridTabIndex();\n    };\n    TabGuardCtrl.prototype.focusInnerElement = function (fromBottom) {\n        if (fromBottom === void 0) { fromBottom = false; }\n        var focusable = this.focusService.findFocusableElements(this.eFocusableElement);\n        if (this.tabGuardsAreActive()) {\n            // remove tab guards from this component from list of focusable elements\n            focusable.splice(0, 1);\n            focusable.splice(focusable.length - 1, 1);\n        }\n        if (!focusable.length) {\n            return;\n        }\n        focusable[fromBottom ? focusable.length - 1 : 0].focus();\n    };\n    TabGuardCtrl.prototype.getNextFocusableElement = function (backwards) {\n        return this.focusService.findNextFocusableElement(this.eFocusableElement, false, backwards);\n    };\n    TabGuardCtrl.prototype.forceFocusOutOfContainer = function (up) {\n        if (up === void 0) { up = false; }\n        var tabGuardToFocus = up ? this.eTopGuard : this.eBottomGuard;\n        this.activateTabGuards();\n        this.skipTabGuardFocus = true;\n        tabGuardToFocus.focus();\n    };\n    __decorate$1H([\n        Autowired('focusService')\n    ], TabGuardCtrl.prototype, \"focusService\", void 0);\n    __decorate$1H([\n        PostConstruct\n    ], TabGuardCtrl.prototype, \"postConstruct\", null);\n    return TabGuardCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$21 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __read$f = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$b = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$f(arguments[i]));\n    return ar;\n};\nvar TabGuardComp = /** @class */ (function (_super) {\n    __extends$21(TabGuardComp, _super);\n    function TabGuardComp() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    TabGuardComp.prototype.initialiseTabGuard = function (params) {\n        this.eTopGuard = this.createTabGuard('top');\n        this.eBottomGuard = this.createTabGuard('bottom');\n        this.eFocusableElement = this.getFocusableElement();\n        var tabGuards = [this.eTopGuard, this.eBottomGuard];\n        var compProxy = {\n            setTabIndex: function (tabIndex) {\n                tabGuards.forEach(function (tabGuard) { return tabIndex != null ? tabGuard.setAttribute('tabIndex', tabIndex) : tabGuard.removeAttribute('tabIndex'); });\n            }\n        };\n        this.addTabGuards(this.eTopGuard, this.eBottomGuard);\n        this.tabGuardCtrl = this.createManagedBean(new TabGuardCtrl({\n            comp: compProxy,\n            eTopGuard: this.eTopGuard,\n            eBottomGuard: this.eBottomGuard,\n            eFocusableElement: this.eFocusableElement,\n            onFocusIn: params.onFocusIn,\n            onFocusOut: params.onFocusOut,\n            focusInnerElement: params.focusInnerElement,\n            handleKeyDown: params.handleKeyDown,\n            onTabKeyDown: params.onTabKeyDown,\n            shouldStopEventPropagation: params.shouldStopEventPropagation\n        }));\n    };\n    TabGuardComp.prototype.createTabGuard = function (side) {\n        var tabGuard = document.createElement('div');\n        tabGuard.classList.add('ag-tab-guard', \"ag-tab-guard-\" + side);\n        setAriaRole(tabGuard, 'presentation');\n        return tabGuard;\n    };\n    TabGuardComp.prototype.addTabGuards = function (topTabGuard, bottomTabGuard) {\n        this.eFocusableElement.insertAdjacentElement('afterbegin', topTabGuard);\n        this.eFocusableElement.insertAdjacentElement('beforeend', bottomTabGuard);\n    };\n    TabGuardComp.prototype.removeAllChildrenExceptTabGuards = function () {\n        var tabGuards = [this.eTopGuard, this.eBottomGuard];\n        clearElement(this.getFocusableElement());\n        this.addTabGuards.apply(this, __spread$b(tabGuards));\n    };\n    TabGuardComp.prototype.forceFocusOutOfContainer = function (up) {\n        if (up === void 0) { up = false; }\n        this.tabGuardCtrl.forceFocusOutOfContainer(up);\n    };\n    TabGuardComp.prototype.appendChild = function (newChild, container) {\n        if (!isNodeOrElement(newChild)) {\n            newChild = newChild.getGui();\n        }\n        var bottomTabGuard = this.eBottomGuard;\n        if (bottomTabGuard) {\n            bottomTabGuard.insertAdjacentElement('beforebegin', newChild);\n        }\n        else {\n            _super.prototype.appendChild.call(this, newChild, container);\n        }\n    };\n    return TabGuardComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$22 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign$f = (undefined && undefined.__assign) || function () {\n    __assign$f = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign$f.apply(this, arguments);\n};\nvar __decorate$1I = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgMenuList = /** @class */ (function (_super) {\n    __extends$22(AgMenuList, _super);\n    function AgMenuList(level) {\n        if (level === void 0) { level = 1; }\n        var _this = _super.call(this, /* html */ \"<div class=\\\"ag-menu-list\\\" role=\\\"tree\\\"></div>\") || this;\n        _this.level = level;\n        _this.menuItems = [];\n        return _this;\n    }\n    AgMenuList.prototype.postConstruct = function () {\n        var _this = this;\n        this.initialiseTabGuard({\n            onTabKeyDown: function (e) { return _this.onTabKeyDown(e); },\n            handleKeyDown: function (e) { return _this.handleKeyDown(e); }\n        });\n    };\n    AgMenuList.prototype.onTabKeyDown = function (e) {\n        var parent = this.getParentComponent();\n        var parentGui = parent && parent.getGui();\n        var isManaged = parentGui && parentGui.classList.contains('ag-focus-managed');\n        if (!isManaged) {\n            e.preventDefault();\n        }\n        if (e.shiftKey) {\n            this.closeIfIsChild(e);\n        }\n    };\n    AgMenuList.prototype.handleKeyDown = function (e) {\n        switch (e.key) {\n            case KeyCode.UP:\n            case KeyCode.RIGHT:\n            case KeyCode.DOWN:\n            case KeyCode.LEFT:\n                e.preventDefault();\n                this.handleNavKey(e.key);\n                break;\n            case KeyCode.ESCAPE:\n                var topMenu = this.findTopMenu();\n                if (topMenu) {\n                    this.focusService.focusInto(topMenu.getGui());\n                }\n                break;\n        }\n    };\n    AgMenuList.prototype.clearActiveItem = function () {\n        if (this.activeMenuItem) {\n            this.activeMenuItem.deactivate();\n            this.activeMenuItem = null;\n        }\n    };\n    AgMenuList.prototype.addMenuItems = function (menuItems) {\n        var _this = this;\n        if (menuItems == null) {\n            return;\n        }\n        menuItems.forEach(function (menuItemOrString) {\n            if (menuItemOrString === 'separator') {\n                _this.addSeparator();\n            }\n            else if (typeof menuItemOrString === 'string') {\n                console.warn(\"AG Grid: unrecognised menu item \" + menuItemOrString);\n            }\n            else {\n                _this.addItem(menuItemOrString);\n            }\n        });\n    };\n    AgMenuList.prototype.addItem = function (menuItemDef) {\n        var _this = this;\n        var menuItem = this.createManagedBean(new AgMenuItemComponent(__assign$f(__assign$f({}, menuItemDef), { isAnotherSubMenuOpen: function () { return _this.menuItems.some(function (m) { return m.isSubMenuOpen(); }); } })));\n        menuItem.setParentComponent(this);\n        setAriaLevel(menuItem.getGui(), this.level);\n        this.menuItems.push(menuItem);\n        this.appendChild(menuItem.getGui());\n        this.addManagedListener(menuItem, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function (event) {\n            _this.dispatchEvent(event);\n        });\n        this.addManagedListener(menuItem, AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED, function (event) {\n            if (_this.activeMenuItem && _this.activeMenuItem !== event.menuItem) {\n                _this.activeMenuItem.deactivate();\n            }\n            _this.activeMenuItem = event.menuItem;\n        });\n    };\n    AgMenuList.prototype.activateFirstItem = function () {\n        var item = this.menuItems.filter(function (currentItem) { return !currentItem.isDisabled(); })[0];\n        if (!item) {\n            return;\n        }\n        item.activate();\n    };\n    AgMenuList.prototype.addSeparator = function () {\n        var separatorHtml = /* html */ \"\\n            <div class=\\\"ag-menu-separator\\\" aria-hidden=\\\"true\\\">\\n                <div class=\\\"ag-menu-separator-part\\\"></div>\\n                <div class=\\\"ag-menu-separator-part\\\"></div>\\n                <div class=\\\"ag-menu-separator-part\\\"></div>\\n                <div class=\\\"ag-menu-separator-part\\\"></div>\\n            </div>\";\n        this.appendChild(loadTemplate(separatorHtml));\n    };\n    AgMenuList.prototype.findTopMenu = function () {\n        var parent = this.getParentComponent();\n        if (!parent && this instanceof AgMenuList) {\n            return this;\n        }\n        while (true) {\n            var nextParent = parent && parent.getParentComponent && parent.getParentComponent();\n            if (!nextParent || (!(nextParent instanceof AgMenuList || nextParent instanceof AgMenuItemComponent))) {\n                break;\n            }\n            parent = nextParent;\n        }\n        return parent instanceof AgMenuList ? parent : undefined;\n    };\n    AgMenuList.prototype.handleNavKey = function (key) {\n        switch (key) {\n            case KeyCode.UP:\n            case KeyCode.DOWN:\n                var nextItem = this.findNextItem(key === KeyCode.UP);\n                if (nextItem && nextItem !== this.activeMenuItem) {\n                    nextItem.activate();\n                }\n                return;\n        }\n        var left = this.gridOptionsWrapper.isEnableRtl() ? KeyCode.RIGHT : KeyCode.LEFT;\n        if (key === left) {\n            this.closeIfIsChild();\n        }\n        else {\n            this.openChild();\n        }\n    };\n    AgMenuList.prototype.closeIfIsChild = function (e) {\n        var parentItem = this.getParentComponent();\n        if (parentItem && parentItem instanceof AgMenuItemComponent) {\n            if (e) {\n                e.preventDefault();\n            }\n            parentItem.closeSubMenu();\n            parentItem.getGui().focus();\n        }\n    };\n    AgMenuList.prototype.openChild = function () {\n        if (this.activeMenuItem) {\n            this.activeMenuItem.openSubMenu(true);\n        }\n    };\n    AgMenuList.prototype.findNextItem = function (up) {\n        var items = this.menuItems.filter(function (item) { return !item.isDisabled(); });\n        if (!items.length) {\n            return;\n        }\n        if (!this.activeMenuItem) {\n            return up ? last(items) : items[0];\n        }\n        if (up) {\n            items.reverse();\n        }\n        var nextItem;\n        var foundCurrent = false;\n        for (var i = 0; i < items.length; i++) {\n            var item = items[i];\n            if (!foundCurrent) {\n                if (item === this.activeMenuItem) {\n                    foundCurrent = true;\n                }\n                continue;\n            }\n            nextItem = item;\n            break;\n        }\n        return nextItem || this.activeMenuItem;\n    };\n    AgMenuList.prototype.destroy = function () {\n        this.clearActiveItem();\n        _super.prototype.destroy.call(this);\n    };\n    __decorate$1I([\n        Autowired('focusService')\n    ], AgMenuList.prototype, \"focusService\", void 0);\n    __decorate$1I([\n        PostConstruct\n    ], AgMenuList.prototype, \"postConstruct\", null);\n    return AgMenuList;\n}(TabGuardComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$23 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1J = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgMenuPanel = /** @class */ (function (_super) {\n    __extends$23(AgMenuPanel, _super);\n    function AgMenuPanel(wrappedComponent) {\n        var _this = _super.call(this) || this;\n        _this.wrappedComponent = wrappedComponent;\n        _this.setTemplateFromElement(wrappedComponent.getGui());\n        return _this;\n    }\n    AgMenuPanel.prototype.postConstruct = function () {\n        var _this = this;\n        this.initialiseTabGuard({\n            onTabKeyDown: function (e) { return _this.onTabKeyDown(e); },\n            handleKeyDown: function (e) { return _this.handleKeyDown(e); }\n        });\n    };\n    AgMenuPanel.prototype.handleKeyDown = function (e) {\n        if (e.key === KeyCode.ESCAPE) {\n            this.closePanel();\n        }\n    };\n    AgMenuPanel.prototype.onTabKeyDown = function (e) {\n        if (e.defaultPrevented) {\n            return;\n        }\n        this.closePanel();\n        e.preventDefault();\n    };\n    AgMenuPanel.prototype.closePanel = function () {\n        var menuItem = this.parentComponent;\n        menuItem.closeSubMenu();\n        setTimeout(function () { return menuItem.getGui().focus(); }, 0);\n    };\n    __decorate$1J([\n        PostConstruct\n    ], AgMenuPanel.prototype, \"postConstruct\", null);\n    return AgMenuPanel;\n}(TabGuardComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$24 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1K = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgMenuItemComponent = /** @class */ (function (_super) {\n    __extends$24(AgMenuItemComponent, _super);\n    function AgMenuItemComponent(params) {\n        var _this = _super.call(this) || this;\n        _this.params = params;\n        _this.isActive = false;\n        _this.subMenuIsOpen = false;\n        _this.setTemplate(/* html */ \"<div class=\\\"\" + _this.getClassName() + \"\\\" tabindex=\\\"-1\\\" role=\\\"treeitem\\\"></div>\");\n        return _this;\n    }\n    AgMenuItemComponent.prototype.init = function () {\n        var _this = this;\n        this.addIcon();\n        this.addName();\n        this.addShortcut();\n        this.addSubMenu();\n        this.addTooltip();\n        var eGui = this.getGui();\n        if (this.params.disabled) {\n            this.addCssClass(this.getClassName('disabled'));\n            setAriaDisabled(eGui, true);\n        }\n        else {\n            this.addGuiEventListener('click', function (e) { return _this.onItemSelected(e); });\n            this.addGuiEventListener('keydown', function (e) {\n                if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {\n                    e.preventDefault();\n                    _this.onItemSelected(e);\n                }\n            });\n            this.addGuiEventListener('mousedown', function (e) {\n                // Prevent event bubbling to other event handlers such as PopupService triggering\n                // premature closing of any open sub-menu popup.\n                e.stopPropagation();\n                e.preventDefault();\n            });\n            this.addGuiEventListener('mouseenter', function () { return _this.onMouseEnter(); });\n            this.addGuiEventListener('mouseleave', function () { return _this.onMouseLeave(); });\n        }\n        if (this.params.cssClasses) {\n            this.params.cssClasses.forEach(function (it) { return _this.addCssClass(it); });\n        }\n    };\n    AgMenuItemComponent.prototype.isDisabled = function () {\n        return !!this.params.disabled;\n    };\n    AgMenuItemComponent.prototype.openSubMenu = function (activateFirstItem) {\n        var _this = this;\n        if (activateFirstItem === void 0) { activateFirstItem = false; }\n        this.closeSubMenu();\n        if (!this.params.subMenu) {\n            return;\n        }\n        var ePopup = loadTemplate(/* html */ \"<div class=\\\"ag-menu\\\" role=\\\"presentation\\\"></div>\");\n        var destroySubMenu;\n        if (this.params.subMenu instanceof Array) {\n            var currentLevel = getAriaLevel(this.getGui());\n            var nextLevel = isNaN(currentLevel) ? 1 : (currentLevel + 1);\n            var childMenu_1 = this.createBean(new AgMenuList(nextLevel));\n            childMenu_1.setParentComponent(this);\n            childMenu_1.addMenuItems(this.params.subMenu);\n            ePopup.appendChild(childMenu_1.getGui());\n            // bubble menu item selected events\n            this.addManagedListener(childMenu_1, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function (e) { return _this.dispatchEvent(e); });\n            childMenu_1.addGuiEventListener('mouseenter', function () { return _this.cancelDeactivate(); });\n            destroySubMenu = function () { return _this.destroyBean(childMenu_1); };\n            if (activateFirstItem) {\n                setTimeout(function () { return childMenu_1.activateFirstItem(); }, 0);\n            }\n        }\n        else {\n            var subMenu_1 = this.params.subMenu;\n            var menuPanel = this.createBean(new AgMenuPanel(subMenu_1));\n            menuPanel.setParentComponent(this);\n            var subMenuGui_1 = menuPanel.getGui();\n            var mouseEvent_1 = 'mouseenter';\n            var mouseEnterListener_1 = function () { return _this.cancelDeactivate(); };\n            subMenuGui_1.addEventListener(mouseEvent_1, mouseEnterListener_1);\n            destroySubMenu = function () { return subMenuGui_1.removeEventListener(mouseEvent_1, mouseEnterListener_1); };\n            ePopup.appendChild(subMenuGui_1);\n            if (subMenu_1.afterGuiAttached) {\n                setTimeout(function () { return subMenu_1.afterGuiAttached(); }, 0);\n            }\n        }\n        var eGui = this.getGui();\n        var positionCallback = this.popupService.positionPopupForMenu.bind(this.popupService, { eventSource: eGui, ePopup: ePopup });\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = this.popupService.addPopup({\n            modal: true,\n            eChild: ePopup,\n            positionCallback: positionCallback,\n            anchorToElement: eGui,\n            ariaLabel: translate('ariaLabelSubMenu', 'SubMenu')\n        });\n        this.subMenuIsOpen = true;\n        setAriaExpanded(eGui, true);\n        this.hideSubMenu = function () {\n            if (addPopupRes) {\n                addPopupRes.hideFunc();\n            }\n            _this.subMenuIsOpen = false;\n            setAriaExpanded(eGui, false);\n            destroySubMenu();\n        };\n    };\n    AgMenuItemComponent.prototype.closeSubMenu = function () {\n        if (!this.hideSubMenu) {\n            return;\n        }\n        this.hideSubMenu();\n        this.hideSubMenu = null;\n        setAriaExpanded(this.getGui(), false);\n    };\n    AgMenuItemComponent.prototype.isSubMenuOpen = function () {\n        return this.subMenuIsOpen;\n    };\n    AgMenuItemComponent.prototype.activate = function (openSubMenu) {\n        var _this = this;\n        this.cancelActivate();\n        if (this.params.disabled) {\n            return;\n        }\n        this.isActive = true;\n        this.addCssClass(this.getClassName('active'));\n        this.getGui().focus();\n        if (openSubMenu && this.params.subMenu) {\n            window.setTimeout(function () {\n                if (_this.isAlive() && _this.isActive) {\n                    _this.openSubMenu();\n                }\n            }, 300);\n        }\n        this.onItemActivated();\n    };\n    AgMenuItemComponent.prototype.deactivate = function () {\n        this.cancelDeactivate();\n        this.removeCssClass(this.getClassName('active'));\n        this.isActive = false;\n        if (this.subMenuIsOpen) {\n            this.hideSubMenu();\n        }\n    };\n    AgMenuItemComponent.prototype.addIcon = function () {\n        if (!this.params.checked && !this.params.icon && this.params.isCompact) {\n            return;\n        }\n        var icon = loadTemplate(/* html */ \"<span ref=\\\"eIcon\\\" class=\\\"\" + this.getClassName('part') + \" \" + this.getClassName('icon') + \"\\\" role=\\\"presentation\\\"></span>\");\n        if (this.params.checked) {\n            icon.appendChild(createIconNoSpan('check', this.gridOptionsWrapper));\n        }\n        else if (this.params.icon) {\n            if (isNodeOrElement(this.params.icon)) {\n                icon.appendChild(this.params.icon);\n            }\n            else if (typeof this.params.icon === 'string') {\n                icon.innerHTML = this.params.icon;\n            }\n            else {\n                console.warn('AG Grid: menu item icon must be DOM node or string');\n            }\n        }\n        this.getGui().appendChild(icon);\n    };\n    AgMenuItemComponent.prototype.addName = function () {\n        if (!this.params.name && this.params.isCompact) {\n            return;\n        }\n        var name = loadTemplate(/* html */ \"<span ref=\\\"eName\\\" class=\\\"\" + this.getClassName('part') + \" \" + this.getClassName('text') + \"\\\">\" + (this.params.name || '') + \"</span>\");\n        this.getGui().appendChild(name);\n    };\n    AgMenuItemComponent.prototype.addTooltip = function () {\n        if (!this.params.tooltip) {\n            return;\n        }\n        this.tooltip = this.params.tooltip;\n        if (this.gridOptionsWrapper.isEnableBrowserTooltips()) {\n            this.getGui().setAttribute('title', this.tooltip);\n        }\n        else {\n            this.createManagedBean(new CustomTooltipFeature(this));\n        }\n    };\n    AgMenuItemComponent.prototype.getTooltipParams = function () {\n        return {\n            location: 'menu',\n            value: this.tooltip\n        };\n    };\n    AgMenuItemComponent.prototype.addShortcut = function () {\n        if (!this.params.shortcut && this.params.isCompact) {\n            return;\n        }\n        var shortcut = loadTemplate(/* html */ \"<span ref=\\\"eShortcut\\\" class=\\\"\" + this.getClassName('part') + \" \" + this.getClassName('shortcut') + \"\\\">\" + (this.params.shortcut || '') + \"</span>\");\n        this.getGui().appendChild(shortcut);\n    };\n    AgMenuItemComponent.prototype.addSubMenu = function () {\n        if (!this.params.subMenu && this.params.isCompact) {\n            return;\n        }\n        var pointer = loadTemplate(/* html */ \"<span ref=\\\"ePopupPointer\\\" class=\\\"\" + this.getClassName('part') + \" \" + this.getClassName('popup-pointer') + \"\\\"></span>\");\n        var eGui = this.getGui();\n        if (this.params.subMenu) {\n            var iconName = this.gridOptionsWrapper.isEnableRtl() ? 'smallLeft' : 'smallRight';\n            setAriaExpanded(eGui, false);\n            pointer.appendChild(createIconNoSpan(iconName, this.gridOptionsWrapper));\n        }\n        eGui.appendChild(pointer);\n    };\n    AgMenuItemComponent.prototype.onItemSelected = function (event) {\n        if (this.params.action) {\n            this.params.action();\n        }\n        else {\n            this.openSubMenu(event && event.type === 'keydown');\n        }\n        if (this.params.subMenu && !this.params.action) {\n            return;\n        }\n        var e = {\n            type: AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,\n            action: this.params.action,\n            checked: this.params.checked,\n            cssClasses: this.params.cssClasses,\n            disabled: this.params.disabled,\n            icon: this.params.icon,\n            name: this.params.name,\n            shortcut: this.params.shortcut,\n            subMenu: this.params.subMenu,\n            tooltip: this.params.tooltip,\n            event: event\n        };\n        this.dispatchEvent(e);\n    };\n    AgMenuItemComponent.prototype.onItemActivated = function () {\n        var event = {\n            type: AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED,\n            menuItem: this,\n        };\n        this.dispatchEvent(event);\n    };\n    AgMenuItemComponent.prototype.cancelActivate = function () {\n        if (this.activateTimeoutId) {\n            window.clearTimeout(this.activateTimeoutId);\n            this.activateTimeoutId = 0;\n        }\n    };\n    AgMenuItemComponent.prototype.cancelDeactivate = function () {\n        if (this.deactivateTimeoutId) {\n            window.clearTimeout(this.deactivateTimeoutId);\n            this.deactivateTimeoutId = 0;\n        }\n    };\n    AgMenuItemComponent.prototype.onMouseEnter = function () {\n        var _this = this;\n        this.cancelDeactivate();\n        if (this.params.isAnotherSubMenuOpen()) {\n            // wait to see if the user enters the open sub-menu\n            this.activateTimeoutId = window.setTimeout(function () { return _this.activate(true); }, AgMenuItemComponent.ACTIVATION_DELAY);\n        }\n        else {\n            // activate immediately\n            this.activate(true);\n        }\n    };\n    AgMenuItemComponent.prototype.onMouseLeave = function () {\n        var _this = this;\n        this.cancelActivate();\n        if (this.isSubMenuOpen()) {\n            // wait to see if the user enters the sub-menu\n            this.deactivateTimeoutId = window.setTimeout(function () { return _this.deactivate(); }, AgMenuItemComponent.ACTIVATION_DELAY);\n        }\n        else {\n            // de-activate immediately\n            this.deactivate();\n        }\n    };\n    AgMenuItemComponent.prototype.getClassName = function (suffix) {\n        var prefix = this.params.isCompact ? 'ag-compact-menu-option' : 'ag-menu-option';\n        return suffix ? prefix + \"-\" + suffix : prefix;\n    };\n    AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED = 'menuItemSelected';\n    AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED = 'menuItemActivated';\n    AgMenuItemComponent.ACTIVATION_DELAY = 80;\n    __decorate$1K([\n        Autowired('popupService')\n    ], AgMenuItemComponent.prototype, \"popupService\", void 0);\n    __decorate$1K([\n        PostConstruct\n    ], AgMenuItemComponent.prototype, \"init\", null);\n    return AgMenuItemComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$25 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1L = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$g = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$c = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$g(arguments[i]));\n    return ar;\n};\nvar FocusService = /** @class */ (function (_super) {\n    __extends$25(FocusService, _super);\n    function FocusService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    FocusService_1 = FocusService;\n    /**\n     * Adds a gridCore to the list of the gridCores monitoring Keyboard Mode\n     * in a specific HTMLDocument.\n     *\n     * @param doc {Document} - The Document containing the gridCore.\n     * @param gridCore {GridComp} - The GridCore to be monitored.\n     */\n    FocusService.addKeyboardModeEvents = function (doc, controller) {\n        var docControllers = FocusService_1.instancesMonitored.get(doc);\n        if (docControllers && docControllers.length > 0) {\n            if (docControllers.indexOf(controller) === -1) {\n                docControllers.push(controller);\n            }\n        }\n        else {\n            FocusService_1.instancesMonitored.set(doc, [controller]);\n            doc.addEventListener('keydown', FocusService_1.toggleKeyboardMode);\n            doc.addEventListener('mousedown', FocusService_1.toggleKeyboardMode);\n        }\n    };\n    /**\n     * Removes a gridCore from the list of the gridCores monitoring Keyboard Mode\n     * in a specific HTMLDocument.\n     *\n     * @param doc {Document} - The Document containing the gridCore.\n     * @param gridCore {GridComp} - The GridCore to be removed.\n     */\n    FocusService.removeKeyboardModeEvents = function (doc, controller) {\n        var docControllers = FocusService_1.instancesMonitored.get(doc);\n        var newControllers = [];\n        if (docControllers && docControllers.length) {\n            newControllers = __spread$c(docControllers).filter(function (currentGridCore) { return currentGridCore !== controller; });\n            FocusService_1.instancesMonitored.set(doc, newControllers);\n        }\n        if (newControllers.length === 0) {\n            doc.removeEventListener('keydown', FocusService_1.toggleKeyboardMode);\n            doc.removeEventListener('mousedown', FocusService_1.toggleKeyboardMode);\n        }\n    };\n    /**\n     * This method will be called by `keydown` and `mousedown` events on all Documents monitoring\n     * KeyboardMode. It will then fire a KEYBOARD_FOCUS, MOUSE_FOCUS on each gridCore present in\n     * the Document allowing each gridCore to maintain a state for KeyboardMode.\n     *\n     * @param event {KeyboardEvent | MouseEvent | TouchEvent} - The event triggered.\n     */\n    FocusService.toggleKeyboardMode = function (event) {\n        var isKeyboardActive = FocusService_1.keyboardModeActive;\n        var isKeyboardEvent = event.type === 'keydown';\n        if (isKeyboardEvent) {\n            // the following keys should not toggle keyboard mode.\n            if (event.ctrlKey || event.metaKey || event.altKey) {\n                return;\n            }\n        }\n        if (isKeyboardActive && isKeyboardEvent || !isKeyboardActive && !isKeyboardEvent) {\n            return;\n        }\n        FocusService_1.keyboardModeActive = isKeyboardEvent;\n        var doc = event.target.ownerDocument;\n        if (!doc) {\n            return;\n        }\n        var controllersForDoc = FocusService_1.instancesMonitored.get(doc);\n        if (controllersForDoc) {\n            controllersForDoc.forEach(function (controller) {\n                controller.dispatchEvent({ type: isKeyboardEvent ? Events.EVENT_KEYBOARD_FOCUS : Events.EVENT_MOUSE_FOCUS });\n            });\n        }\n    };\n    FocusService.prototype.init = function () {\n        var _this = this;\n        var clearFocusedCellListener = this.clearFocusedCell.bind(this);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, clearFocusedCellListener);\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverythingChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, clearFocusedCellListener);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, clearFocusedCellListener);\n        this.ctrlsService.whenReady(function (p) {\n            _this.gridCtrl = p.gridCtrl;\n            var doc = _this.gridOptionsWrapper.getDocument();\n            FocusService_1.addKeyboardModeEvents(doc, _this.gridCtrl);\n            _this.addDestroyFunc(function () { return _this.unregisterGridCompController(_this.gridCtrl); });\n        });\n    };\n    FocusService.prototype.unregisterGridCompController = function (gridCompController) {\n        var doc = this.gridOptionsWrapper.getDocument();\n        FocusService_1.removeKeyboardModeEvents(doc, gridCompController);\n    };\n    FocusService.prototype.onColumnEverythingChanged = function () {\n        // if the columns change, check and see if this column still exists. if it does, then\n        // we can keep the focused cell. if it doesn't, then we need to drop the focused cell.\n        if (!this.focusedCellPosition) {\n            return;\n        }\n        var col = this.focusedCellPosition.column;\n        var colFromColumnModel = this.columnModel.getGridColumn(col.getId());\n        if (col !== colFromColumnModel) {\n            this.clearFocusedCell();\n        }\n    };\n    FocusService.prototype.isKeyboardMode = function () {\n        return FocusService_1.keyboardModeActive;\n    };\n    // we check if the browser is focusing something, and if it is, and\n    // it's the cell we think is focused, then return the cell. so this\n    // methods returns the cell if a) we think it has focus and b) the\n    // browser thinks it has focus. this then returns nothing if we\n    // first focus a cell, then second click outside the grid, as then the\n    // grid cell will still be focused as far as the grid is concerned,\n    // however the browser focus will have moved somewhere else.\n    FocusService.prototype.getFocusCellToUseAfterRefresh = function () {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        if (this.gridOptionsWrapper.isSuppressFocusAfterRefresh() || !this.focusedCellPosition) {\n            return null;\n        }\n        // we check that the browser is actually focusing on the grid, if it is not, then\n        // we have nothing to worry about. we check for ROW data, as this covers both focused Rows (for Full Width Rows)\n        // and Cells (covers cells as cells live in rows)\n        if (this.isDomDataMissingInHierarchy(eDocument.activeElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL)) {\n            return null;\n        }\n        return this.focusedCellPosition;\n    };\n    FocusService.prototype.getFocusHeaderToUseAfterRefresh = function () {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        if (this.gridOptionsWrapper.isSuppressFocusAfterRefresh() || !this.focusedHeaderPosition) {\n            return null;\n        }\n        // we check that the browser is actually focusing on the grid, if it is not, then\n        // we have nothing to worry about\n        if (this.isDomDataMissingInHierarchy(eDocument.activeElement, AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL)) {\n            return null;\n        }\n        return this.focusedHeaderPosition;\n    };\n    FocusService.prototype.isDomDataMissingInHierarchy = function (eBrowserCell, key) {\n        var ePointer = eBrowserCell;\n        while (ePointer) {\n            var data = this.gridOptionsWrapper.getDomData(ePointer, key);\n            if (data) {\n                return false;\n            }\n            ePointer = ePointer.parentNode;\n        }\n        return true;\n    };\n    FocusService.prototype.clearFocusedCell = function () {\n        this.focusedCellPosition = null;\n        this.onCellFocused(false);\n    };\n    FocusService.prototype.getFocusedCell = function () {\n        return this.focusedCellPosition;\n    };\n    FocusService.prototype.setFocusedCell = function (rowIndex, colKey, floating, forceBrowserFocus) {\n        if (forceBrowserFocus === void 0) { forceBrowserFocus = false; }\n        var gridColumn = this.columnModel.getGridColumn(colKey);\n        // if column doesn't exist, then blank the focused cell and return. this can happen when user sets new columns,\n        // and the focused cell is in a column that no longer exists. after columns change, the grid refreshes and tries\n        // to re-focus the focused cell.\n        if (!gridColumn) {\n            this.focusedCellPosition = null;\n            return;\n        }\n        this.focusedCellPosition = gridColumn ? { rowIndex: rowIndex, rowPinned: makeNull(floating), column: gridColumn } : null;\n        this.onCellFocused(forceBrowserFocus);\n    };\n    FocusService.prototype.isCellFocused = function (cellPosition) {\n        if (this.focusedCellPosition == null) {\n            return false;\n        }\n        return this.focusedCellPosition.column === cellPosition.column &&\n            this.isRowFocused(cellPosition.rowIndex, cellPosition.rowPinned);\n    };\n    FocusService.prototype.isRowNodeFocused = function (rowNode) {\n        return this.isRowFocused(rowNode.rowIndex, rowNode.rowPinned);\n    };\n    FocusService.prototype.isHeaderWrapperFocused = function (headerCtrl) {\n        if (this.focusedHeaderPosition == null) {\n            return false;\n        }\n        var column = headerCtrl.getColumnGroupChild();\n        var headerRowIndex = headerCtrl.getRowIndex();\n        var pinned = headerCtrl.getPinned();\n        var _a = this.focusedHeaderPosition, focusedColumn = _a.column, focusedHeaderRowIndex = _a.headerRowIndex;\n        return column === focusedColumn &&\n            headerRowIndex === focusedHeaderRowIndex &&\n            pinned == focusedColumn.getPinned();\n    };\n    FocusService.prototype.clearFocusedHeader = function () {\n        this.focusedHeaderPosition = null;\n    };\n    FocusService.prototype.getFocusedHeader = function () {\n        return this.focusedHeaderPosition;\n    };\n    FocusService.prototype.setFocusedHeader = function (headerRowIndex, column) {\n        this.focusedHeaderPosition = { headerRowIndex: headerRowIndex, column: column };\n    };\n    FocusService.prototype.focusHeaderPosition = function (params) {\n        var direction = params.direction, fromTab = params.fromTab, allowUserOverride = params.allowUserOverride, event = params.event;\n        var headerPosition = params.headerPosition;\n        if (allowUserOverride) {\n            var gridOptionsWrapper = this.gridOptionsWrapper;\n            var currentPosition = this.getFocusedHeader();\n            var headerRowCount = this.headerNavigationService.getHeaderRowCount();\n            if (fromTab) {\n                var userFunc = gridOptionsWrapper.getTabToNextHeaderFunc();\n                if (userFunc) {\n                    var params_1 = {\n                        backwards: direction === 'Before',\n                        previousHeaderPosition: currentPosition,\n                        nextHeaderPosition: headerPosition,\n                        headerRowCount: headerRowCount,\n                    };\n                    headerPosition = userFunc(params_1);\n                }\n            }\n            else {\n                var userFunc = gridOptionsWrapper.getNavigateToNextHeaderFunc();\n                if (userFunc && event) {\n                    var params_2 = {\n                        key: event.key,\n                        previousHeaderPosition: currentPosition,\n                        nextHeaderPosition: headerPosition,\n                        headerRowCount: headerRowCount,\n                        event: event,\n                    };\n                    headerPosition = userFunc(params_2);\n                }\n            }\n        }\n        if (!headerPosition) {\n            return false;\n        }\n        if (headerPosition.headerRowIndex === -1) {\n            return this.focusGridView(headerPosition.column);\n        }\n        this.headerNavigationService.scrollToColumn(headerPosition.column, direction);\n        var headerRowContainerCtrl = this.ctrlsService.getHeaderRowContainerCtrl(headerPosition.column.getPinned());\n        // this will automatically call the setFocusedHeader method above\n        var focusSuccess = headerRowContainerCtrl.focusHeader(headerPosition.headerRowIndex, headerPosition.column, event);\n        return focusSuccess;\n    };\n    FocusService.prototype.focusFirstHeader = function () {\n        var firstColumn = this.columnModel.getAllDisplayedColumns()[0];\n        if (!firstColumn) {\n            return false;\n        }\n        if (firstColumn.getParent()) {\n            firstColumn = this.columnModel.getColumnGroupAtLevel(firstColumn, 0);\n        }\n        return this.focusHeaderPosition({\n            headerPosition: { headerRowIndex: 0, column: firstColumn }\n        });\n    };\n    FocusService.prototype.focusLastHeader = function (event) {\n        var headerRowIndex = this.headerNavigationService.getHeaderRowCount() - 1;\n        var column = last(this.columnModel.getAllDisplayedColumns());\n        return this.focusHeaderPosition({\n            headerPosition: { headerRowIndex: headerRowIndex, column: column },\n            event: event\n        });\n    };\n    FocusService.prototype.isAnyCellFocused = function () {\n        return !!this.focusedCellPosition;\n    };\n    FocusService.prototype.isRowFocused = function (rowIndex, floating) {\n        if (this.focusedCellPosition == null) {\n            return false;\n        }\n        return this.focusedCellPosition.rowIndex === rowIndex && this.focusedCellPosition.rowPinned === makeNull(floating);\n    };\n    FocusService.prototype.findFocusableElements = function (rootNode, exclude, onlyUnmanaged) {\n        if (onlyUnmanaged === void 0) { onlyUnmanaged = false; }\n        var focusableString = Constants.FOCUSABLE_SELECTOR;\n        var excludeString = Constants.FOCUSABLE_EXCLUDE;\n        if (exclude) {\n            excludeString += ', ' + exclude;\n        }\n        if (onlyUnmanaged) {\n            excludeString += ', [tabindex=\"-1\"]';\n        }\n        var nodes = Array.prototype.slice.apply(rootNode.querySelectorAll(focusableString));\n        var excludeNodes = Array.prototype.slice.apply(rootNode.querySelectorAll(excludeString));\n        if (!excludeNodes.length) {\n            return nodes;\n        }\n        var diff = function (a, b) { return a.filter(function (element) { return b.indexOf(element) === -1; }); };\n        return diff(nodes, excludeNodes);\n    };\n    FocusService.prototype.focusInto = function (rootNode, up, onlyUnmanaged) {\n        if (up === void 0) { up = false; }\n        if (onlyUnmanaged === void 0) { onlyUnmanaged = false; }\n        var focusableElements = this.findFocusableElements(rootNode, null, onlyUnmanaged);\n        var toFocus = up ? last(focusableElements) : focusableElements[0];\n        if (toFocus) {\n            toFocus.focus();\n            return true;\n        }\n        return false;\n    };\n    FocusService.prototype.findNextFocusableElement = function (rootNode, onlyManaged, backwards) {\n        if (rootNode === void 0) { rootNode = this.eGridDiv; }\n        var focusable = this.findFocusableElements(rootNode, onlyManaged ? ':not([tabindex=\"-1\"])' : null);\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var activeEl = eDocument.activeElement;\n        var currentIndex;\n        if (onlyManaged) {\n            currentIndex = focusable.findIndex(function (el) { return el.contains(activeEl); });\n        }\n        else {\n            currentIndex = focusable.indexOf(activeEl);\n        }\n        var nextIndex = currentIndex + (backwards ? -1 : 1);\n        if (nextIndex < 0 || nextIndex >= focusable.length) {\n            return null;\n        }\n        return focusable[nextIndex];\n    };\n    FocusService.prototype.isFocusUnderManagedComponent = function (rootNode) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var managedContainers = rootNode.querySelectorAll(\".\" + ManagedFocusFeature.FOCUS_MANAGED_CLASS);\n        if (!managedContainers.length) {\n            return false;\n        }\n        for (var i = 0; i < managedContainers.length; i++) {\n            if (managedContainers[i].contains(eDocument.activeElement)) {\n                return true;\n            }\n        }\n        return false;\n    };\n    FocusService.prototype.findTabbableParent = function (node, limit) {\n        if (limit === void 0) { limit = 5; }\n        var counter = 0;\n        while (node && getTabIndex(node) === null && ++counter <= limit) {\n            node = node.parentElement;\n        }\n        if (getTabIndex(node) === null) {\n            return null;\n        }\n        return node;\n    };\n    FocusService.prototype.onCellFocused = function (forceBrowserFocus) {\n        var event = {\n            type: Events.EVENT_CELL_FOCUSED,\n            forceBrowserFocus: forceBrowserFocus,\n            rowIndex: null,\n            column: null,\n            floating: null,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            rowPinned: null,\n            isFullWidthCell: false\n        };\n        if (this.focusedCellPosition) {\n            var rowIndex = event.rowIndex = this.focusedCellPosition.rowIndex;\n            var rowPinned = event.rowPinned = this.focusedCellPosition.rowPinned;\n            event.column = this.focusedCellPosition.column;\n            var rowCtrl = this.rowRenderer.getRowByPosition({ rowIndex: rowIndex, rowPinned: rowPinned });\n            if (rowCtrl) {\n                event.isFullWidthCell = rowCtrl.isFullWidth();\n            }\n        }\n        this.eventService.dispatchEvent(event);\n    };\n    FocusService.prototype.focusGridView = function (column, backwards) {\n        // if suppressCellFocus is `true`, it means the user does not want to\n        // navigate between the cells using tab. Instead, we put focus on either\n        // the header or after the grid, depending on whether tab or shift-tab was pressed.\n        if (this.gridOptionsWrapper.isSuppressCellFocus()) {\n            if (backwards) {\n                return this.focusLastHeader();\n            }\n            return this.focusNextGridCoreContainer(false);\n        }\n        var nextRow = backwards\n            ? this.rowPositionUtils.getLastRow()\n            : this.rowPositionUtils.getFirstRow();\n        if (!nextRow) {\n            return false;\n        }\n        var rowIndex = nextRow.rowIndex, rowPinned = nextRow.rowPinned;\n        var focusedHeader = this.getFocusedHeader();\n        if (!column && focusedHeader) {\n            column = focusedHeader.column;\n        }\n        if (rowIndex == null || !column) {\n            return false;\n        }\n        this.navigationService.ensureCellVisible({ rowIndex: rowIndex, column: column, rowPinned: rowPinned });\n        this.setFocusedCell(rowIndex, column, makeNull(rowPinned), true);\n        if (this.rangeService) {\n            var cellPosition = { rowIndex: rowIndex, rowPinned: rowPinned, column: column };\n            this.rangeService.setRangeToCell(cellPosition);\n        }\n        return true;\n    };\n    FocusService.prototype.focusNextGridCoreContainer = function (backwards) {\n        if (this.gridCtrl.focusNextInnerContainer(backwards)) {\n            return true;\n        }\n        if (!backwards && !this.gridCtrl.isDetailGrid()) {\n            this.gridCtrl.forceFocusOutOfContainer();\n        }\n        return false;\n    };\n    var FocusService_1;\n    FocusService.AG_KEYBOARD_FOCUS = 'ag-keyboard-focus';\n    FocusService.keyboardModeActive = false;\n    FocusService.instancesMonitored = new Map();\n    __decorate$1L([\n        Autowired('eGridDiv')\n    ], FocusService.prototype, \"eGridDiv\", void 0);\n    __decorate$1L([\n        Autowired('columnModel')\n    ], FocusService.prototype, \"columnModel\", void 0);\n    __decorate$1L([\n        Autowired('headerNavigationService')\n    ], FocusService.prototype, \"headerNavigationService\", void 0);\n    __decorate$1L([\n        Autowired('columnApi')\n    ], FocusService.prototype, \"columnApi\", void 0);\n    __decorate$1L([\n        Autowired('gridApi')\n    ], FocusService.prototype, \"gridApi\", void 0);\n    __decorate$1L([\n        Autowired('rowRenderer')\n    ], FocusService.prototype, \"rowRenderer\", void 0);\n    __decorate$1L([\n        Autowired('rowPositionUtils')\n    ], FocusService.prototype, \"rowPositionUtils\", void 0);\n    __decorate$1L([\n        Optional('rangeService')\n    ], FocusService.prototype, \"rangeService\", void 0);\n    __decorate$1L([\n        Autowired('navigationService')\n    ], FocusService.prototype, \"navigationService\", void 0);\n    __decorate$1L([\n        Autowired('ctrlsService')\n    ], FocusService.prototype, \"ctrlsService\", void 0);\n    __decorate$1L([\n        PostConstruct\n    ], FocusService.prototype, \"init\", null);\n    FocusService = FocusService_1 = __decorate$1L([\n        Bean('focusService')\n    ], FocusService);\n    return FocusService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$26 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1M = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar DIRECTION;\n(function (DIRECTION) {\n    DIRECTION[DIRECTION[\"vertical\"] = 0] = \"vertical\";\n    DIRECTION[DIRECTION[\"horizontal\"] = 1] = \"horizontal\";\n})(DIRECTION || (DIRECTION = {}));\nvar instanceIdSeq = 0;\nvar PopupService = /** @class */ (function (_super) {\n    __extends$26(PopupService, _super);\n    function PopupService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.popupList = [];\n        return _this;\n    }\n    PopupService.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            _this.gridCtrl = p.gridCtrl;\n            _this.addManagedListener(_this.gridCtrl, Events.EVENT_KEYBOARD_FOCUS, function () {\n                _this.popupList.forEach(function (popup) { return popup.element.classList.add(FocusService.AG_KEYBOARD_FOCUS); });\n            });\n            _this.addManagedListener(_this.gridCtrl, Events.EVENT_MOUSE_FOCUS, function () {\n                _this.popupList.forEach(function (popup) { return popup.element.classList.remove(FocusService.AG_KEYBOARD_FOCUS); });\n            });\n        });\n    };\n    PopupService.prototype.getPopupParent = function () {\n        var ePopupParent = this.gridOptionsWrapper.getPopupParent();\n        if (ePopupParent) {\n            return ePopupParent;\n        }\n        return this.gridCtrl.getGui();\n    };\n    PopupService.prototype.positionPopupForMenu = function (params) {\n        var sourceRect = params.eventSource.getBoundingClientRect();\n        var parentRect = this.getParentRect();\n        var y = this.keepXYWithinBounds(params.ePopup, sourceRect.top - parentRect.top, DIRECTION.vertical);\n        var minWidth = (params.ePopup.clientWidth > 0) ? params.ePopup.clientWidth : 200;\n        params.ePopup.style.minWidth = minWidth + \"px\";\n        var widthOfParent = parentRect.right - parentRect.left;\n        var maxX = widthOfParent - minWidth;\n        // the x position of the popup depends on RTL or LTR. for normal cases, LTR, we put the child popup\n        // to the right, unless it doesn't fit and we then put it to the left. for RTL it's the other way around,\n        // we try place it first to the left, and then if not to the right.\n        var x;\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            // for RTL, try left first\n            x = xLeftPosition();\n            if (x < 0) {\n                x = xRightPosition();\n            }\n            if (x > maxX) {\n                x = 0;\n            }\n        }\n        else {\n            // for LTR, try right first\n            x = xRightPosition();\n            if (x > maxX) {\n                x = xLeftPosition();\n            }\n            if (x < 0) {\n                x = 0;\n            }\n        }\n        params.ePopup.style.left = x + \"px\";\n        params.ePopup.style.top = y + \"px\";\n        function xRightPosition() {\n            return sourceRect.right - parentRect.left - 2;\n        }\n        function xLeftPosition() {\n            return sourceRect.left - parentRect.left - minWidth;\n        }\n    };\n    PopupService.prototype.positionPopupUnderMouseEvent = function (params) {\n        var ePopup = params.ePopup, nudgeX = params.nudgeX, nudgeY = params.nudgeY;\n        var _a = this.calculatePointerAlign(params.mouseEvent), x = _a.x, y = _a.y;\n        this.positionPopup({\n            ePopup: ePopup,\n            x: x,\n            y: y,\n            nudgeX: nudgeX,\n            nudgeY: nudgeY,\n            keepWithinBounds: true\n        });\n        this.callPostProcessPopup(params.type, params.ePopup, null, params.mouseEvent, params.column, params.rowNode);\n    };\n    PopupService.prototype.calculatePointerAlign = function (e) {\n        var parentRect = this.getParentRect();\n        return {\n            x: e.clientX - parentRect.left,\n            y: e.clientY - parentRect.top\n        };\n    };\n    PopupService.prototype.positionPopupUnderComponent = function (params) {\n        var sourceRect = params.eventSource.getBoundingClientRect();\n        var alignSide = params.alignSide || 'left';\n        var parentRect = this.getParentRect();\n        var x = sourceRect.left - parentRect.left;\n        if (alignSide === 'right') {\n            x -= (params.ePopup.offsetWidth - sourceRect.width);\n        }\n        this.positionPopup({\n            ePopup: params.ePopup,\n            nudgeX: params.nudgeX,\n            nudgeY: params.nudgeY,\n            x: x,\n            y: sourceRect.top - parentRect.top + sourceRect.height,\n            keepWithinBounds: params.keepWithinBounds\n        });\n        this.callPostProcessPopup(params.type, params.ePopup, params.eventSource, null, params.column, params.rowNode);\n    };\n    PopupService.prototype.positionPopupOverComponent = function (params) {\n        var sourceRect = params.eventSource.getBoundingClientRect();\n        var parentRect = this.getParentRect();\n        this.positionPopup({\n            ePopup: params.ePopup,\n            nudgeX: params.nudgeX,\n            nudgeY: params.nudgeY,\n            x: sourceRect.left - parentRect.left,\n            y: sourceRect.top - parentRect.top,\n            keepWithinBounds: params.keepWithinBounds\n        });\n        this.callPostProcessPopup(params.type, params.ePopup, params.eventSource, null, params.column, params.rowNode);\n    };\n    PopupService.prototype.callPostProcessPopup = function (type, ePopup, eventSource, mouseEvent, column, rowNode) {\n        var callback = this.gridOptionsWrapper.getPostProcessPopupFunc();\n        if (callback) {\n            var params = {\n                column: column,\n                rowNode: rowNode,\n                ePopup: ePopup,\n                type: type,\n                eventSource: eventSource,\n                mouseEvent: mouseEvent\n            };\n            callback(params);\n        }\n    };\n    PopupService.prototype.positionPopup = function (params) {\n        var ePopup = params.ePopup, keepWithinBounds = params.keepWithinBounds, nudgeX = params.nudgeX, nudgeY = params.nudgeY;\n        var x = params.x, y = params.y;\n        if (nudgeX) {\n            x += nudgeX;\n        }\n        if (nudgeY) {\n            y += nudgeY;\n        }\n        // if popup is overflowing to the bottom, move it up\n        if (keepWithinBounds) {\n            x = this.keepXYWithinBounds(ePopup, x, DIRECTION.horizontal);\n            y = this.keepXYWithinBounds(ePopup, y, DIRECTION.vertical);\n        }\n        ePopup.style.left = x + \"px\";\n        ePopup.style.top = y + \"px\";\n    };\n    PopupService.prototype.getActivePopups = function () {\n        return this.popupList.map(function (popup) { return popup.element; });\n    };\n    PopupService.prototype.getPopupList = function () {\n        return this.popupList;\n    };\n    PopupService.prototype.getParentRect = function () {\n        // subtract the popup parent borders, because popupParent.getBoundingClientRect\n        // returns the rect outside the borders, but the 0,0 coordinate for absolute\n        // positioning is inside the border, leading the popup to be off by the width\n        // of the border\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var popupParent = this.getPopupParent();\n        if (popupParent === eDocument.body) {\n            popupParent = eDocument.documentElement;\n        }\n        var style = getComputedStyle(popupParent);\n        var bounds = popupParent.getBoundingClientRect();\n        return {\n            top: bounds.top + parseFloat(style.borderTopWidth) || 0,\n            left: bounds.left + parseFloat(style.borderLeftWidth) || 0,\n            right: bounds.right + parseFloat(style.borderRightWidth) || 0,\n            bottom: bounds.bottom + parseFloat(style.borderBottomWidth) || 0,\n        };\n    };\n    PopupService.prototype.keepXYWithinBounds = function (ePopup, position, direction) {\n        var isVertical = direction === DIRECTION.vertical;\n        var sizeProperty = isVertical ? 'clientHeight' : 'clientWidth';\n        var anchorProperty = isVertical ? 'top' : 'left';\n        var offsetProperty = isVertical ? 'offsetHeight' : 'offsetWidth';\n        var scrollPositionProperty = isVertical ? 'scrollTop' : 'scrollLeft';\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var docElement = eDocument.documentElement;\n        var popupParent = this.getPopupParent();\n        var parentRect = popupParent.getBoundingClientRect();\n        var documentRect = eDocument.documentElement.getBoundingClientRect();\n        var isBody = popupParent === eDocument.body;\n        var offsetSize = ePopup[offsetProperty];\n        var getSize = isVertical ? getAbsoluteHeight : getAbsoluteWidth;\n        var sizeOfParent = isBody ? (getSize(docElement) + docElement[scrollPositionProperty]) : popupParent[sizeProperty];\n        if (isBody) {\n            sizeOfParent -= Math.abs(documentRect[anchorProperty] - parentRect[anchorProperty]);\n        }\n        var max = sizeOfParent - offsetSize;\n        return Math.min(Math.max(position, 0), Math.abs(max));\n    };\n    PopupService.prototype.keepPopupPositionedRelativeTo = function (params) {\n        var _this = this;\n        var eParent = this.getPopupParent();\n        var parentRect = eParent.getBoundingClientRect();\n        var sourceRect = params.element.getBoundingClientRect();\n        var initialDiffTop = parentRect.top - sourceRect.top;\n        var initialDiffLeft = parentRect.left - sourceRect.left;\n        var lastDiffTop = initialDiffTop;\n        var lastDiffLeft = initialDiffLeft;\n        var topPx = params.ePopup.style.top;\n        var top = parseInt(topPx.substring(0, topPx.length - 1), 10);\n        var leftPx = params.ePopup.style.left;\n        var left = parseInt(leftPx.substring(0, leftPx.length - 1), 10);\n        return new AgPromise(function (resolve) {\n            _this.getFrameworkOverrides().setInterval(function () {\n                var pRect = eParent.getBoundingClientRect();\n                var sRect = params.element.getBoundingClientRect();\n                var elementNotInDom = sRect.top == 0 && sRect.left == 0 && sRect.height == 0 && sRect.width == 0;\n                if (elementNotInDom) {\n                    params.hidePopup();\n                    return;\n                }\n                var currentDiffTop = pRect.top - sRect.top;\n                if (currentDiffTop != lastDiffTop) {\n                    var newTop = _this.keepXYWithinBounds(params.ePopup, top + initialDiffTop - currentDiffTop, DIRECTION.vertical);\n                    params.ePopup.style.top = newTop + \"px\";\n                }\n                lastDiffTop = currentDiffTop;\n                var currentDiffLeft = pRect.left - sRect.left;\n                if (currentDiffLeft != lastDiffLeft) {\n                    var newLeft = _this.keepXYWithinBounds(params.ePopup, left + initialDiffLeft - currentDiffLeft, DIRECTION.horizontal);\n                    params.ePopup.style.left = newLeft + \"px\";\n                }\n                lastDiffLeft = currentDiffLeft;\n            }, 200).then(function (intervalId) {\n                var result = function () {\n                    if (intervalId != null) {\n                        window.clearInterval(intervalId);\n                    }\n                };\n                resolve(result);\n            });\n        });\n    };\n    PopupService.prototype.addPopup = function (params) {\n        var _this = this;\n        var modal = params.modal, eChild = params.eChild, closeOnEsc = params.closeOnEsc, closedCallback = params.closedCallback, click = params.click, alwaysOnTop = params.alwaysOnTop, afterGuiAttached = params.afterGuiAttached, positionCallback = params.positionCallback, anchorToElement = params.anchorToElement, ariaLabel = params.ariaLabel;\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var destroyPositionTracker = new AgPromise(function (resolve) { return resolve(function () { }); });\n        if (!eDocument) {\n            console.warn('ag-grid: could not find the document, document is empty');\n            return { hideFunc: function () { }, stopAnchoringPromise: destroyPositionTracker };\n        }\n        var pos = this.popupList.findIndex(function (popup) { return popup.element === eChild; });\n        if (pos !== -1) {\n            var popup = this.popupList[pos];\n            return { hideFunc: popup.hideFunc, stopAnchoringPromise: popup.stopAnchoringPromise };\n        }\n        var ePopupParent = this.getPopupParent();\n        if (eChild.style.top == null) {\n            eChild.style.top = '0px';\n        }\n        if (eChild.style.left == null) {\n            eChild.style.left = '0px';\n        }\n        // add env CSS class to child, in case user provided a popup parent, which means\n        // theme class may be missing\n        var eWrapper = document.createElement('div');\n        var theme = this.environment.getTheme().theme;\n        if (theme) {\n            eWrapper.classList.add(theme);\n        }\n        eWrapper.classList.add('ag-popup');\n        eChild.classList.add(this.gridOptionsWrapper.isEnableRtl() ? 'ag-rtl' : 'ag-ltr', 'ag-popup-child');\n        if (!eChild.hasAttribute('role')) {\n            setAriaRole(eChild, 'dialog');\n        }\n        setAriaLabel(eChild, ariaLabel);\n        if (this.focusService.isKeyboardMode()) {\n            eChild.classList.add(FocusService.AG_KEYBOARD_FOCUS);\n        }\n        eWrapper.appendChild(eChild);\n        ePopupParent.appendChild(eWrapper);\n        if (alwaysOnTop) {\n            this.setAlwaysOnTop(eWrapper, true);\n        }\n        else {\n            this.bringPopupToFront(eWrapper);\n        }\n        var popupHidden = false;\n        var hidePopupOnKeyboardEvent = function (event) {\n            if (!eWrapper.contains(eDocument.activeElement)) {\n                return;\n            }\n            var key = event.key;\n            if (key === KeyCode.ESCAPE) {\n                hidePopup({ keyboardEvent: event });\n            }\n        };\n        var hidePopupOnMouseEvent = function (event) { return hidePopup({ mouseEvent: event }); };\n        var hidePopupOnTouchEvent = function (event) { return hidePopup({ touchEvent: event }); };\n        var hidePopup = function (popupParams) {\n            if (popupParams === void 0) { popupParams = {}; }\n            var mouseEvent = popupParams.mouseEvent, touchEvent = popupParams.touchEvent, keyboardEvent = popupParams.keyboardEvent;\n            if (\n            // we don't hide popup if the event was on the child, or any\n            // children of this child\n            _this.isEventFromCurrentPopup({ mouseEvent: mouseEvent, touchEvent: touchEvent }, eChild) ||\n                // if the event to close is actually the open event, then ignore it\n                _this.isEventSameChainAsOriginalEvent({ originalMouseEvent: click, mouseEvent: mouseEvent, touchEvent: touchEvent }) ||\n                // this method should only be called once. the client can have different\n                // paths, each one wanting to close, so this method may be called multiple times.\n                popupHidden) {\n                return;\n            }\n            popupHidden = true;\n            ePopupParent.removeChild(eWrapper);\n            eDocument.removeEventListener('keydown', hidePopupOnKeyboardEvent);\n            eDocument.removeEventListener('mousedown', hidePopupOnMouseEvent);\n            eDocument.removeEventListener('touchstart', hidePopupOnTouchEvent);\n            eDocument.removeEventListener('contextmenu', hidePopupOnMouseEvent);\n            _this.eventService.removeEventListener(Events.EVENT_DRAG_STARTED, hidePopupOnMouseEvent);\n            if (closedCallback) {\n                closedCallback(mouseEvent || touchEvent || keyboardEvent);\n            }\n            _this.popupList = _this.popupList.filter(function (popup) { return popup.element !== eChild; });\n            if (destroyPositionTracker) {\n                destroyPositionTracker.then(function (destroyFunc) { return destroyFunc && destroyFunc(); });\n            }\n        };\n        if (afterGuiAttached) {\n            afterGuiAttached({ hidePopup: hidePopup });\n        }\n        // if we add these listeners now, then the current mouse\n        // click will be included, which we don't want\n        window.setTimeout(function () {\n            if (closeOnEsc) {\n                eDocument.addEventListener('keydown', hidePopupOnKeyboardEvent);\n            }\n            if (modal) {\n                eDocument.addEventListener('mousedown', hidePopupOnMouseEvent);\n                _this.eventService.addEventListener(Events.EVENT_DRAG_STARTED, hidePopupOnMouseEvent);\n                eDocument.addEventListener('touchstart', hidePopupOnTouchEvent);\n                eDocument.addEventListener('contextmenu', hidePopupOnMouseEvent);\n            }\n        }, 0);\n        if (positionCallback) {\n            positionCallback();\n        }\n        if (anchorToElement) {\n            // keeps popup positioned under created, eg if context menu, if user scrolls\n            // using touchpad and the cell moves, it moves the popup to keep it with the cell.\n            destroyPositionTracker = this.keepPopupPositionedRelativeTo({\n                element: anchorToElement,\n                ePopup: eChild,\n                hidePopup: hidePopup\n            });\n        }\n        this.popupList.push({\n            element: eChild,\n            wrapper: eWrapper,\n            hideFunc: hidePopup,\n            stopAnchoringPromise: destroyPositionTracker,\n            instanceId: instanceIdSeq++,\n            isAnchored: !!anchorToElement\n        });\n        return {\n            hideFunc: hidePopup,\n            stopAnchoringPromise: destroyPositionTracker\n        };\n    };\n    PopupService.prototype.hasAnchoredPopup = function () {\n        return this.popupList.some(function (popup) { return popup.isAnchored; });\n    };\n    PopupService.prototype.isEventFromCurrentPopup = function (params, target) {\n        var mouseEvent = params.mouseEvent, touchEvent = params.touchEvent;\n        var event = mouseEvent ? mouseEvent : touchEvent;\n        if (!event) {\n            return false;\n        }\n        var indexOfThisChild = this.popupList.findIndex(function (popup) { return popup.element === target; });\n        if (indexOfThisChild === -1) {\n            return false;\n        }\n        for (var i = indexOfThisChild; i < this.popupList.length; i++) {\n            var popup = this.popupList[i];\n            if (isElementInEventPath(popup.element, event)) {\n                return true;\n            }\n        }\n        // if the user did not write their own Custom Element to be rendered as popup\n        // and this component has an additional popup element, they should have the\n        // `ag-custom-component-popup` class to be detected as part of the Custom Component\n        return this.isElementWithinCustomPopup(event.target);\n    };\n    PopupService.prototype.isElementWithinCustomPopup = function (el) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        while (el && el !== eDocument.body) {\n            if (el.classList.contains('ag-custom-component-popup') || el.parentElement === null) {\n                return true;\n            }\n            el = el.parentElement;\n        }\n        return false;\n    };\n    // in some browsers, the context menu event can be fired before the click event, which means\n    // the context menu event could open the popup, but then the click event closes it straight away.\n    PopupService.prototype.isEventSameChainAsOriginalEvent = function (params) {\n        var originalMouseEvent = params.originalMouseEvent, mouseEvent = params.mouseEvent, touchEvent = params.touchEvent;\n        // we check the coordinates of the event, to see if it's the same event. there is a 1 / 1000 chance that\n        // the event is a different event, however that is an edge case that is not very relevant (the user clicking\n        // twice on the same location isn't a normal path).\n        // event could be mouse event or touch event.\n        var mouseEventOrTouch = null;\n        if (mouseEvent) {\n            // mouse event can be used direction, it has coordinates\n            mouseEventOrTouch = mouseEvent;\n        }\n        else if (touchEvent) {\n            // touch event doesn't have coordinates, need it's touch object\n            mouseEventOrTouch = touchEvent.touches[0];\n        }\n        if (mouseEventOrTouch && originalMouseEvent) {\n            // for x, allow 4px margin, to cover iPads, where touch (which opens menu) is followed\n            // by browser click (when you finger up, touch is interrupted as click in browser)\n            var screenX_1 = mouseEvent ? mouseEvent.screenX : 0;\n            var screenY_1 = mouseEvent ? mouseEvent.screenY : 0;\n            var xMatch = Math.abs(originalMouseEvent.screenX - screenX_1) < 5;\n            var yMatch = Math.abs(originalMouseEvent.screenY - screenY_1) < 5;\n            if (xMatch && yMatch) {\n                return true;\n            }\n        }\n        return false;\n    };\n    PopupService.prototype.getWrapper = function (ePopup) {\n        while (!ePopup.classList.contains('ag-popup') && ePopup.parentElement) {\n            ePopup = ePopup.parentElement;\n        }\n        return ePopup.classList.contains('ag-popup') ? ePopup : null;\n    };\n    PopupService.prototype.setAlwaysOnTop = function (ePopup, alwaysOnTop) {\n        var eWrapper = this.getWrapper(ePopup);\n        if (!eWrapper) {\n            return;\n        }\n        eWrapper.classList.toggle('ag-always-on-top', !!alwaysOnTop);\n        if (alwaysOnTop) {\n            this.bringPopupToFront(eWrapper);\n        }\n    };\n    PopupService.prototype.bringPopupToFront = function (ePopup) {\n        var parent = this.getPopupParent();\n        var popupList = Array.prototype.slice.call(parent.querySelectorAll('.ag-popup'));\n        var popupLen = popupList.length;\n        var alwaysOnTopList = Array.prototype.slice.call(parent.querySelectorAll('.ag-popup.ag-always-on-top'));\n        var onTopLength = alwaysOnTopList.length;\n        var eWrapper = this.getWrapper(ePopup);\n        if (!eWrapper || popupLen <= 1 || !parent.contains(ePopup)) {\n            return;\n        }\n        var pos = popupList.indexOf(eWrapper);\n        var innerEls = eWrapper.querySelectorAll('div');\n        var innerElsScrollMap = [];\n        innerEls.forEach(function (el) {\n            if (el.scrollTop !== 0) {\n                innerElsScrollMap.push([el, el.scrollTop]);\n            }\n        });\n        if (onTopLength) {\n            var isPopupAlwaysOnTop = eWrapper.classList.contains('ag-always-on-top');\n            if (isPopupAlwaysOnTop) {\n                if (pos !== popupLen - 1) {\n                    last(alwaysOnTopList).insertAdjacentElement('afterend', eWrapper);\n                }\n            }\n            else if (pos !== popupLen - onTopLength - 1) {\n                alwaysOnTopList[0].insertAdjacentElement('beforebegin', eWrapper);\n            }\n        }\n        else if (pos !== popupLen - 1) {\n            last(popupList).insertAdjacentElement('afterend', eWrapper);\n        }\n        while (innerElsScrollMap.length) {\n            var currentEl = innerElsScrollMap.pop();\n            currentEl[0].scrollTop = currentEl[1];\n        }\n        var params = {\n            type: 'popupToFront',\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            eWrapper: eWrapper\n        };\n        this.eventService.dispatchEvent(params);\n    };\n    __decorate$1M([\n        Autowired('environment')\n    ], PopupService.prototype, \"environment\", void 0);\n    __decorate$1M([\n        Autowired('focusService')\n    ], PopupService.prototype, \"focusService\", void 0);\n    __decorate$1M([\n        Autowired('ctrlsService')\n    ], PopupService.prototype, \"ctrlsService\", void 0);\n    __decorate$1M([\n        PostConstruct\n    ], PopupService.prototype, \"postConstruct\", null);\n    PopupService = __decorate$1M([\n        Bean('popupService')\n    ], PopupService);\n    return PopupService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$27 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1N = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar VirtualList = /** @class */ (function (_super) {\n    __extends$27(VirtualList, _super);\n    function VirtualList(cssIdentifier, ariaRole, listName) {\n        if (cssIdentifier === void 0) { cssIdentifier = 'default'; }\n        if (ariaRole === void 0) { ariaRole = 'listbox'; }\n        var _this = _super.call(this, VirtualList.getTemplate(cssIdentifier)) || this;\n        _this.cssIdentifier = cssIdentifier;\n        _this.ariaRole = ariaRole;\n        _this.listName = listName;\n        _this.renderedRows = new Map();\n        _this.rowHeight = 20;\n        _this.isDestroyed = false;\n        return _this;\n    }\n    VirtualList.prototype.postConstruct = function () {\n        var _this = this;\n        this.addScrollListener();\n        this.rowHeight = this.getItemHeight();\n        this.addResizeObserver();\n        this.initialiseTabGuard({\n            onFocusIn: function (e) { return _this.onFocusIn(e); },\n            onFocusOut: function (e) { return _this.onFocusOut(e); },\n            focusInnerElement: function (fromBottom) { return _this.focusInnerElement(fromBottom); },\n            onTabKeyDown: function (e) { return _this.onTabKeyDown(e); },\n            handleKeyDown: function (e) { return _this.handleKeyDown(e); }\n        });\n        this.setAriaProperties();\n    };\n    VirtualList.prototype.setAriaProperties = function () {\n        var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n        var listName = translate('ariaDefaultListName', this.listName || 'List');\n        var ariaEl = this.eContainer;\n        setAriaRole(ariaEl, this.ariaRole);\n        setAriaLabel(ariaEl, listName);\n    };\n    VirtualList.prototype.addResizeObserver = function () {\n        var listener = this.drawVirtualRows.bind(this);\n        var destroyObserver = this.resizeObserverService.observeResize(this.getGui(), listener);\n        this.addDestroyFunc(destroyObserver);\n    };\n    VirtualList.prototype.focusInnerElement = function (fromBottom) {\n        this.focusRow(fromBottom ? this.model.getRowCount() - 1 : 0);\n    };\n    VirtualList.prototype.onFocusIn = function (e) {\n        var target = e.target;\n        if (target.classList.contains('ag-virtual-list-item')) {\n            this.lastFocusedRowIndex = getAriaPosInSet(target) - 1;\n        }\n        return false;\n    };\n    VirtualList.prototype.onFocusOut = function (e) {\n        if (!this.getFocusableElement().contains(e.relatedTarget)) {\n            this.lastFocusedRowIndex = null;\n        }\n        return false;\n    };\n    VirtualList.prototype.handleKeyDown = function (e) {\n        switch (e.key) {\n            case KeyCode.UP:\n            case KeyCode.DOWN:\n                if (this.navigate(e.key === KeyCode.UP)) {\n                    e.preventDefault();\n                }\n                break;\n        }\n    };\n    VirtualList.prototype.onTabKeyDown = function (e) {\n        if (this.navigate(e.shiftKey)) {\n            e.preventDefault();\n        }\n        else {\n            // focus on the first or last focusable element to ensure that any other handlers start from there\n            this.focusService.focusInto(this.getGui(), !e.shiftKey);\n        }\n    };\n    VirtualList.prototype.navigate = function (up) {\n        if (this.lastFocusedRowIndex == null) {\n            return false;\n        }\n        var nextRow = this.lastFocusedRowIndex + (up ? -1 : 1);\n        if (nextRow < 0 || nextRow >= this.model.getRowCount()) {\n            return false;\n        }\n        this.focusRow(nextRow);\n        return true;\n    };\n    VirtualList.prototype.getLastFocusedRow = function () {\n        return this.lastFocusedRowIndex;\n    };\n    VirtualList.prototype.focusRow = function (rowNumber) {\n        var _this = this;\n        this.ensureIndexVisible(rowNumber);\n        window.setTimeout(function () {\n            var renderedRow = _this.renderedRows.get(rowNumber);\n            if (renderedRow) {\n                renderedRow.eDiv.focus();\n            }\n        }, 10);\n    };\n    VirtualList.prototype.getComponentAt = function (rowIndex) {\n        var comp = this.renderedRows.get(rowIndex);\n        return comp && comp.rowComponent;\n    };\n    VirtualList.getTemplate = function (cssIdentifier) {\n        return /* html */ \"\\n            <div class=\\\"ag-virtual-list-viewport ag-\" + cssIdentifier + \"-virtual-list-viewport\\\" role=\\\"presentation\\\">\\n                <div class=\\\"ag-virtual-list-container ag-\" + cssIdentifier + \"-virtual-list-container\\\" ref=\\\"eContainer\\\"></div>\\n            </div>\";\n    };\n    VirtualList.prototype.getItemHeight = function () {\n        return this.gridOptionsWrapper.getListItemHeight();\n    };\n    VirtualList.prototype.ensureIndexVisible = function (index) {\n        var lastRow = this.model.getRowCount();\n        if (typeof index !== 'number' || index < 0 || index >= lastRow) {\n            console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);\n            return;\n        }\n        var rowTopPixel = index * this.rowHeight;\n        var rowBottomPixel = rowTopPixel + this.rowHeight;\n        var eGui = this.getGui();\n        var viewportTopPixel = eGui.scrollTop;\n        var viewportHeight = eGui.offsetHeight;\n        var viewportBottomPixel = viewportTopPixel + viewportHeight;\n        var viewportScrolledPastRow = viewportTopPixel > rowTopPixel;\n        var viewportScrolledBeforeRow = viewportBottomPixel < rowBottomPixel;\n        if (viewportScrolledPastRow) {\n            // if row is before, scroll up with row at top\n            eGui.scrollTop = rowTopPixel;\n        }\n        else if (viewportScrolledBeforeRow) {\n            // if row is below, scroll down with row at bottom\n            var newScrollPosition = rowBottomPixel - viewportHeight;\n            eGui.scrollTop = newScrollPosition;\n        }\n    };\n    VirtualList.prototype.setComponentCreator = function (componentCreator) {\n        this.componentCreator = componentCreator;\n    };\n    VirtualList.prototype.getRowHeight = function () {\n        return this.rowHeight;\n    };\n    VirtualList.prototype.getScrollTop = function () {\n        return this.getGui().scrollTop;\n    };\n    VirtualList.prototype.setRowHeight = function (rowHeight) {\n        this.rowHeight = rowHeight;\n        this.refresh();\n    };\n    VirtualList.prototype.refresh = function () {\n        var _this = this;\n        if (this.model == null || this.isDestroyed) {\n            return;\n        }\n        var rowCount = this.model.getRowCount();\n        this.eContainer.style.height = rowCount * this.rowHeight + \"px\";\n        // ensure height is applied before attempting to redraw rows\n        waitUntil(function () { return _this.eContainer.clientHeight >= rowCount * _this.rowHeight; }, function () {\n            if (_this.isDestroyed) {\n                return;\n            }\n            _this.clearVirtualRows();\n            _this.drawVirtualRows();\n        });\n    };\n    VirtualList.prototype.clearVirtualRows = function () {\n        var _this = this;\n        this.renderedRows.forEach(function (_, rowIndex) { return _this.removeRow(rowIndex); });\n    };\n    VirtualList.prototype.drawVirtualRows = function () {\n        var gui = this.getGui();\n        var topPixel = gui.scrollTop;\n        var bottomPixel = topPixel + gui.offsetHeight;\n        var firstRow = Math.floor(topPixel / this.rowHeight);\n        var lastRow = Math.floor(bottomPixel / this.rowHeight);\n        this.ensureRowsRendered(firstRow, lastRow);\n    };\n    VirtualList.prototype.ensureRowsRendered = function (start, finish) {\n        var _this = this;\n        // remove any rows that are no longer required\n        this.renderedRows.forEach(function (_, rowIndex) {\n            if ((rowIndex < start || rowIndex > finish) && rowIndex !== _this.lastFocusedRowIndex) {\n                _this.removeRow(rowIndex);\n            }\n        });\n        // insert any required new rows\n        for (var rowIndex = start; rowIndex <= finish; rowIndex++) {\n            if (this.renderedRows.has(rowIndex)) {\n                continue;\n            }\n            // check this row actually exists (in case overflow buffer window exceeds real data)\n            if (rowIndex < this.model.getRowCount()) {\n                this.insertRow(rowIndex);\n            }\n        }\n    };\n    VirtualList.prototype.insertRow = function (rowIndex) {\n        var _this = this;\n        var value = this.model.getRow(rowIndex);\n        var eDiv = document.createElement('div');\n        eDiv.classList.add('ag-virtual-list-item', \"ag-\" + this.cssIdentifier + \"-virtual-list-item\");\n        setAriaRole(eDiv, this.ariaRole === 'tree' ? 'treeitem' : 'option');\n        setAriaSetSize(eDiv, this.model.getRowCount());\n        setAriaPosInSet(eDiv, rowIndex + 1);\n        eDiv.setAttribute('tabindex', '-1');\n        if (typeof this.model.isRowSelected === 'function') {\n            var isSelected = this.model.isRowSelected(rowIndex);\n            setAriaSelected(eDiv, !!isSelected);\n            setAriaChecked(eDiv, isSelected);\n        }\n        eDiv.style.height = this.rowHeight + \"px\";\n        eDiv.style.top = this.rowHeight * rowIndex + \"px\";\n        var rowComponent = this.componentCreator(value, eDiv);\n        rowComponent.addGuiEventListener('focusin', function () { return _this.lastFocusedRowIndex = rowIndex; });\n        eDiv.appendChild(rowComponent.getGui());\n        // keep the DOM order consistent with the order of the rows\n        if (this.renderedRows.has(rowIndex - 1)) {\n            this.renderedRows.get(rowIndex - 1).eDiv.insertAdjacentElement('afterend', eDiv);\n        }\n        else if (this.renderedRows.has(rowIndex + 1)) {\n            this.renderedRows.get(rowIndex + 1).eDiv.insertAdjacentElement('beforebegin', eDiv);\n        }\n        else {\n            this.eContainer.appendChild(eDiv);\n        }\n        this.renderedRows.set(rowIndex, { rowComponent: rowComponent, eDiv: eDiv });\n    };\n    VirtualList.prototype.removeRow = function (rowIndex) {\n        var component = this.renderedRows.get(rowIndex);\n        this.eContainer.removeChild(component.eDiv);\n        this.destroyBean(component.rowComponent);\n        this.renderedRows.delete(rowIndex);\n    };\n    VirtualList.prototype.addScrollListener = function () {\n        var _this = this;\n        this.addGuiEventListener('scroll', function () { return _this.drawVirtualRows(); });\n    };\n    VirtualList.prototype.setModel = function (model) {\n        this.model = model;\n    };\n    VirtualList.prototype.destroy = function () {\n        if (this.isDestroyed) {\n            return;\n        }\n        this.clearVirtualRows();\n        this.isDestroyed = true;\n        _super.prototype.destroy.call(this);\n    };\n    __decorate$1N([\n        Autowired('resizeObserverService')\n    ], VirtualList.prototype, \"resizeObserverService\", void 0);\n    __decorate$1N([\n        Autowired('focusService')\n    ], VirtualList.prototype, \"focusService\", void 0);\n    __decorate$1N([\n        RefSelector('eContainer')\n    ], VirtualList.prototype, \"eContainer\", void 0);\n    __decorate$1N([\n        PostConstruct\n    ], VirtualList.prototype, \"postConstruct\", null);\n    return VirtualList;\n}(TabGuardComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar OUTSIDE_ANGULAR_EVENTS = ['mouseover', 'mouseout', 'mouseenter', 'mouseleave'];\nvar PASSIVE_EVENTS$1 = ['touchstart', 'touchend', 'touchmove', 'touchcancel'];\n/** The base frameworks, eg React & Angular, override this bean with implementations specific to their requirement. */\nvar VanillaFrameworkOverrides = /** @class */ (function () {\n    function VanillaFrameworkOverrides() {\n        this.isOutsideAngular = function (eventType) { return includes(OUTSIDE_ANGULAR_EVENTS, eventType); };\n    }\n    // for Vanilla JS, we use simple timeout\n    VanillaFrameworkOverrides.prototype.setTimeout = function (action, timeout) {\n        window.setTimeout(action, timeout);\n    };\n    VanillaFrameworkOverrides.prototype.setInterval = function (action, timeout) {\n        return new AgPromise(function (resolve) {\n            resolve(window.setInterval(action, timeout));\n        });\n    };\n    // for Vanilla JS, we just add the event to the element\n    VanillaFrameworkOverrides.prototype.addEventListener = function (element, type, listener, useCapture) {\n        var isPassive = includes(PASSIVE_EVENTS$1, type);\n        element.addEventListener(type, listener, { capture: !!useCapture, passive: isPassive });\n    };\n    // for Vanilla JS, we just execute the listener\n    VanillaFrameworkOverrides.prototype.dispatchEvent = function (eventType, listener, global) {\n        listener();\n    };\n    VanillaFrameworkOverrides.prototype.frameworkComponent = function (name) {\n        return null;\n    };\n    VanillaFrameworkOverrides.prototype.isFrameworkComponent = function (comp) {\n        return false;\n    };\n    return VanillaFrameworkOverrides;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$28 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1O = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CellNavigationService = /** @class */ (function (_super) {\n    __extends$28(CellNavigationService, _super);\n    function CellNavigationService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    // returns null if no cell to focus on, ie at the end of the grid\n    CellNavigationService.prototype.getNextCellToFocus = function (key, focusedCell, ctrlPressed) {\n        if (ctrlPressed === void 0) { ctrlPressed = false; }\n        if (ctrlPressed) {\n            return this.getNextCellToFocusWithCtrlPressed(key, focusedCell);\n        }\n        return this.getNextCellToFocusWithoutCtrlPressed(key, focusedCell);\n    };\n    CellNavigationService.prototype.getNextCellToFocusWithCtrlPressed = function (key, focusedCell) {\n        var upKey = key === KeyCode.UP;\n        var downKey = key === KeyCode.DOWN;\n        var leftKey = key === KeyCode.LEFT;\n        var column;\n        var rowIndex;\n        if (upKey || downKey) {\n            rowIndex = upKey ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow();\n            column = focusedCell.column;\n        }\n        else {\n            var allColumns = this.columnModel.getAllDisplayedColumns();\n            var isRtl = this.gridOptionsWrapper.isEnableRtl();\n            rowIndex = focusedCell.rowIndex;\n            column = leftKey !== isRtl ? allColumns[0] : last(allColumns);\n        }\n        return {\n            rowIndex: rowIndex,\n            rowPinned: null,\n            column: column\n        };\n    };\n    CellNavigationService.prototype.getNextCellToFocusWithoutCtrlPressed = function (key, focusedCell) {\n        // starting with the provided cell, we keep moving until we find a cell we can\n        // focus on.\n        var pointer = focusedCell;\n        var finished = false;\n        // finished will be true when either:\n        // a) cell found that we can focus on\n        // b) run out of cells (ie the method returns null)\n        while (!finished) {\n            switch (key) {\n                case KeyCode.UP:\n                    pointer = this.getCellAbove(pointer);\n                    break;\n                case KeyCode.DOWN:\n                    pointer = this.getCellBelow(pointer);\n                    break;\n                case KeyCode.RIGHT:\n                    if (this.gridOptionsWrapper.isEnableRtl()) {\n                        pointer = this.getCellToLeft(pointer);\n                    }\n                    else {\n                        pointer = this.getCellToRight(pointer);\n                    }\n                    break;\n                case KeyCode.LEFT:\n                    if (this.gridOptionsWrapper.isEnableRtl()) {\n                        pointer = this.getCellToRight(pointer);\n                    }\n                    else {\n                        pointer = this.getCellToLeft(pointer);\n                    }\n                    break;\n                default:\n                    pointer = null;\n                    console.warn('AG Grid: unknown key for navigation ' + key);\n                    break;\n            }\n            if (pointer) {\n                finished = this.isCellGoodToFocusOn(pointer);\n            }\n            else {\n                finished = true;\n            }\n        }\n        return pointer;\n    };\n    CellNavigationService.prototype.isCellGoodToFocusOn = function (gridCell) {\n        var column = gridCell.column;\n        var rowNode;\n        switch (gridCell.rowPinned) {\n            case Constants.PINNED_TOP:\n                rowNode = this.pinnedRowModel.getPinnedTopRow(gridCell.rowIndex);\n                break;\n            case Constants.PINNED_BOTTOM:\n                rowNode = this.pinnedRowModel.getPinnedBottomRow(gridCell.rowIndex);\n                break;\n            default:\n                rowNode = this.rowModel.getRow(gridCell.rowIndex);\n                break;\n        }\n        if (!rowNode) {\n            return false;\n        }\n        var suppressNavigable = column.isSuppressNavigable(rowNode);\n        return !suppressNavigable;\n    };\n    CellNavigationService.prototype.getCellToLeft = function (lastCell) {\n        if (!lastCell) {\n            return null;\n        }\n        var colToLeft = this.columnModel.getDisplayedColBefore(lastCell.column);\n        if (!colToLeft) {\n            return null;\n        }\n        return {\n            rowIndex: lastCell.rowIndex,\n            column: colToLeft,\n            rowPinned: lastCell.rowPinned\n        };\n    };\n    CellNavigationService.prototype.getCellToRight = function (lastCell) {\n        if (!lastCell) {\n            return null;\n        }\n        var colToRight = this.columnModel.getDisplayedColAfter(lastCell.column);\n        // if already on right, do nothing\n        if (!colToRight) {\n            return null;\n        }\n        return {\n            rowIndex: lastCell.rowIndex,\n            column: colToRight,\n            rowPinned: lastCell.rowPinned\n        };\n    };\n    CellNavigationService.prototype.getRowBelow = function (rowPosition) {\n        // if already on top row, do nothing\n        var index = rowPosition.rowIndex;\n        var pinned = rowPosition.rowPinned;\n        if (this.isLastRowInContainer(rowPosition)) {\n            switch (pinned) {\n                case Constants.PINNED_BOTTOM:\n                    // never any rows after pinned bottom\n                    return null;\n                case Constants.PINNED_TOP:\n                    // if on last row of pinned top, then next row is main body (if rows exist),\n                    // otherwise it's the pinned bottom\n                    if (this.rowModel.isRowsToRender()) {\n                        return { rowIndex: this.paginationProxy.getPageFirstRow(), rowPinned: null };\n                    }\n                    if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_BOTTOM)) {\n                        return { rowIndex: 0, rowPinned: Constants.PINNED_BOTTOM };\n                    }\n                    return null;\n                default:\n                    // if in the main body, then try pinned bottom, otherwise return nothing\n                    if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_BOTTOM)) {\n                        return { rowIndex: 0, rowPinned: Constants.PINNED_BOTTOM };\n                    }\n                    return null;\n            }\n        }\n        return { rowIndex: index + 1, rowPinned: pinned };\n    };\n    CellNavigationService.prototype.getCellBelow = function (lastCell) {\n        if (!lastCell) {\n            return null;\n        }\n        var rowBelow = this.getRowBelow(lastCell);\n        if (rowBelow) {\n            return {\n                rowIndex: rowBelow.rowIndex,\n                column: lastCell.column,\n                rowPinned: rowBelow.rowPinned\n            };\n        }\n        return null;\n    };\n    CellNavigationService.prototype.isLastRowInContainer = function (rowPosition) {\n        var pinned = rowPosition.rowPinned;\n        var index = rowPosition.rowIndex;\n        if (pinned === Constants.PINNED_TOP) {\n            var lastTopIndex = this.pinnedRowModel.getPinnedTopRowData().length - 1;\n            return lastTopIndex <= index;\n        }\n        if (pinned === Constants.PINNED_BOTTOM) {\n            var lastBottomIndex = this.pinnedRowModel.getPinnedBottomRowData().length - 1;\n            return lastBottomIndex <= index;\n        }\n        var lastBodyIndex = this.paginationProxy.getPageLastRow();\n        return lastBodyIndex <= index;\n    };\n    CellNavigationService.prototype.getRowAbove = function (rowPosition) {\n        // if already on top row, do nothing\n        var index = rowPosition.rowIndex;\n        var pinned = rowPosition.rowPinned;\n        var isFirstRow = pinned ? index === 0 : index === this.paginationProxy.getPageFirstRow();\n        // if already on top row, do nothing\n        if (isFirstRow) {\n            if (pinned === Constants.PINNED_TOP) {\n                return null;\n            }\n            if (!pinned) {\n                if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_TOP)) {\n                    return this.getLastFloatingTopRow();\n                }\n                return null;\n            }\n            // last floating bottom\n            if (this.rowModel.isRowsToRender()) {\n                return this.getLastBodyCell();\n            }\n            if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_TOP)) {\n                return this.getLastFloatingTopRow();\n            }\n            return null;\n        }\n        return { rowIndex: index - 1, rowPinned: pinned };\n    };\n    CellNavigationService.prototype.getCellAbove = function (lastCell) {\n        if (!lastCell) {\n            return null;\n        }\n        var rowAbove = this.getRowAbove({ rowIndex: lastCell.rowIndex, rowPinned: lastCell.rowPinned });\n        if (rowAbove) {\n            return {\n                rowIndex: rowAbove.rowIndex,\n                column: lastCell.column,\n                rowPinned: rowAbove.rowPinned\n            };\n        }\n        return null;\n    };\n    CellNavigationService.prototype.getLastBodyCell = function () {\n        var lastBodyRow = this.paginationProxy.getPageLastRow();\n        return { rowIndex: lastBodyRow, rowPinned: null };\n    };\n    CellNavigationService.prototype.getLastFloatingTopRow = function () {\n        var lastFloatingRow = this.pinnedRowModel.getPinnedTopRowData().length - 1;\n        return { rowIndex: lastFloatingRow, rowPinned: Constants.PINNED_TOP };\n    };\n    CellNavigationService.prototype.getNextTabbedCell = function (gridCell, backwards) {\n        if (backwards) {\n            return this.getNextTabbedCellBackwards(gridCell);\n        }\n        return this.getNextTabbedCellForwards(gridCell);\n    };\n    CellNavigationService.prototype.getNextTabbedCellForwards = function (gridCell) {\n        var displayedColumns = this.columnModel.getAllDisplayedColumns();\n        var newRowIndex = gridCell.rowIndex;\n        var newFloating = gridCell.rowPinned;\n        // move along to the next cell\n        var newColumn = this.columnModel.getDisplayedColAfter(gridCell.column);\n        // check if end of the row, and if so, go forward a row\n        if (!newColumn) {\n            newColumn = displayedColumns[0];\n            var rowBelow = this.getRowBelow(gridCell);\n            if (missing(rowBelow)) {\n                return null;\n            }\n            // If we are tabbing and there is a paging panel present, tabbing should go\n            // to the paging panel instead of loading the next page.\n            if (!rowBelow.rowPinned && !this.paginationProxy.isRowInPage(rowBelow)) {\n                return null;\n            }\n            newRowIndex = rowBelow ? rowBelow.rowIndex : null;\n            newFloating = rowBelow ? rowBelow.rowPinned : null;\n        }\n        return { rowIndex: newRowIndex, column: newColumn, rowPinned: newFloating };\n    };\n    CellNavigationService.prototype.getNextTabbedCellBackwards = function (gridCell) {\n        var displayedColumns = this.columnModel.getAllDisplayedColumns();\n        var newRowIndex = gridCell.rowIndex;\n        var newFloating = gridCell.rowPinned;\n        // move along to the next cell\n        var newColumn = this.columnModel.getDisplayedColBefore(gridCell.column);\n        // check if end of the row, and if so, go forward a row\n        if (!newColumn) {\n            newColumn = last(displayedColumns);\n            var rowAbove = this.getRowAbove({ rowIndex: gridCell.rowIndex, rowPinned: gridCell.rowPinned });\n            if (missing(rowAbove)) {\n                return null;\n            }\n            // If we are tabbing and there is a paging panel present, tabbing should go\n            // to the paging panel instead of loading the next page.\n            if (!rowAbove.rowPinned && !this.paginationProxy.isRowInPage(rowAbove)) {\n                return null;\n            }\n            newRowIndex = rowAbove ? rowAbove.rowIndex : null;\n            newFloating = rowAbove ? rowAbove.rowPinned : null;\n        }\n        return { rowIndex: newRowIndex, column: newColumn, rowPinned: newFloating };\n    };\n    __decorate$1O([\n        Autowired('columnModel')\n    ], CellNavigationService.prototype, \"columnModel\", void 0);\n    __decorate$1O([\n        Autowired('rowModel')\n    ], CellNavigationService.prototype, \"rowModel\", void 0);\n    __decorate$1O([\n        Autowired('pinnedRowModel')\n    ], CellNavigationService.prototype, \"pinnedRowModel\", void 0);\n    __decorate$1O([\n        Autowired('paginationProxy')\n    ], CellNavigationService.prototype, \"paginationProxy\", void 0);\n    CellNavigationService = __decorate$1O([\n        Bean('cellNavigationService')\n    ], CellNavigationService);\n    return CellNavigationService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$29 = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1P = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$5 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar AlignedGridsService = /** @class */ (function (_super) {\n    __extends$29(AlignedGridsService, _super);\n    function AlignedGridsService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        // flag to mark if we are consuming. to avoid cyclic events (ie other grid firing back to master\n        // while processing a master event) we mark this if consuming an event, and if we are, then\n        // we don't fire back any events.\n        _this.consuming = false;\n        return _this;\n    }\n    AlignedGridsService.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('AlignedGridsService');\n    };\n    AlignedGridsService.prototype.init = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.fireColumnEvent.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.fireColumnEvent.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.fireColumnEvent.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.fireColumnEvent.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_RESIZED, this.fireColumnEvent.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, this.fireScrollEvent.bind(this));\n    };\n    // common logic across all the fire methods\n    AlignedGridsService.prototype.fireEvent = function (callback) {\n        // if we are already consuming, then we are acting on an event from a master,\n        // so we don't cause a cyclic firing of events\n        if (this.consuming) {\n            return;\n        }\n        // iterate through the aligned grids, and pass each aligned grid service to the callback\n        var otherGrids = this.gridOptionsWrapper.getAlignedGrids();\n        if (otherGrids) {\n            otherGrids.forEach(function (otherGridOptions) {\n                if (otherGridOptions.api) {\n                    var alignedGridService = otherGridOptions.api.__getAlignedGridService();\n                    callback(alignedGridService);\n                }\n            });\n        }\n    };\n    // common logic across all consume methods. very little common logic, however extracting\n    // guarantees consistency across the methods.\n    AlignedGridsService.prototype.onEvent = function (callback) {\n        this.consuming = true;\n        callback();\n        this.consuming = false;\n    };\n    AlignedGridsService.prototype.fireColumnEvent = function (event) {\n        this.fireEvent(function (alignedGridsService) {\n            alignedGridsService.onColumnEvent(event);\n        });\n    };\n    AlignedGridsService.prototype.fireScrollEvent = function (event) {\n        if (event.direction !== 'horizontal') {\n            return;\n        }\n        this.fireEvent(function (alignedGridsService) {\n            alignedGridsService.onScrollEvent(event);\n        });\n    };\n    AlignedGridsService.prototype.onScrollEvent = function (event) {\n        var _this = this;\n        this.onEvent(function () {\n            var gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n            gridBodyCon.getScrollFeature().setHorizontalScrollPosition(event.left);\n        });\n    };\n    AlignedGridsService.prototype.getMasterColumns = function (event) {\n        var result = [];\n        if (event.columns) {\n            event.columns.forEach(function (column) {\n                result.push(column);\n            });\n        }\n        else if (event.column) {\n            result.push(event.column);\n        }\n        return result;\n    };\n    AlignedGridsService.prototype.getColumnIds = function (event) {\n        var result = [];\n        if (event.columns) {\n            event.columns.forEach(function (column) {\n                result.push(column.getColId());\n            });\n        }\n        else if (event.column) {\n            result.push(event.column.getColId());\n        }\n        return result;\n    };\n    AlignedGridsService.prototype.onColumnEvent = function (event) {\n        var _this = this;\n        this.onEvent(function () {\n            switch (event.type) {\n                case Events.EVENT_COLUMN_MOVED:\n                case Events.EVENT_COLUMN_VISIBLE:\n                case Events.EVENT_COLUMN_PINNED:\n                case Events.EVENT_COLUMN_RESIZED:\n                    var colEvent = event;\n                    _this.processColumnEvent(colEvent);\n                    break;\n                case Events.EVENT_COLUMN_GROUP_OPENED:\n                    var groupOpenedEvent = event;\n                    _this.processGroupOpenedEvent(groupOpenedEvent);\n                    break;\n                case Events.EVENT_COLUMN_PIVOT_CHANGED:\n                    // we cannot support pivoting with aligned grids as the columns will be out of sync as the\n                    // grids will have columns created based on the row data of the grid.\n                    console.warn('AG Grid: pivoting is not supported with aligned grids. ' +\n                        'You can only use one of these features at a time in a grid.');\n                    break;\n            }\n        });\n    };\n    AlignedGridsService.prototype.processGroupOpenedEvent = function (groupOpenedEvent) {\n        // likewise for column group\n        var masterColumnGroup = groupOpenedEvent.columnGroup;\n        var otherColumnGroup = null;\n        if (masterColumnGroup) {\n            var groupId = masterColumnGroup.getGroupId();\n            otherColumnGroup = this.columnModel.getProvidedColumnGroup(groupId);\n        }\n        if (masterColumnGroup && !otherColumnGroup) {\n            return;\n        }\n        this.logger.log('onColumnEvent-> processing ' + groupOpenedEvent + ' expanded = ' + masterColumnGroup.isExpanded());\n        this.columnModel.setColumnGroupOpened(otherColumnGroup, masterColumnGroup.isExpanded(), \"alignedGridChanged\");\n    };\n    AlignedGridsService.prototype.processColumnEvent = function (colEvent) {\n        var _this = this;\n        // the column in the event is from the master grid. need to\n        // look up the equivalent from this (other) grid\n        var masterColumn = colEvent.column;\n        var otherColumn = null;\n        if (masterColumn) {\n            otherColumn = this.columnModel.getPrimaryColumn(masterColumn.getColId());\n        }\n        // if event was with respect to a master column, that is not present in this\n        // grid, then we ignore the event\n        if (masterColumn && !otherColumn) {\n            return;\n        }\n        // in time, all the methods below should use the column ids, it's a more generic way\n        // of handling columns, and also allows for single or multi column events\n        var masterColumns = this.getMasterColumns(colEvent);\n        switch (colEvent.type) {\n            case Events.EVENT_COLUMN_MOVED:\n                // when the user moves columns via setColumnState, we can't depend on moving specific columns\n                // to an index, as there maybe be many indexes columns moved to (as wasn't result of a mouse drag).\n                // so only way to be sure is match the order of all columns using Column State.\n                {\n                    var movedEvent = colEvent;\n                    var srcColState = colEvent.columnApi.getColumnState();\n                    var destColState = srcColState.map(function (s) { return ({ colId: s.colId }); });\n                    this.columnModel.applyColumnState({ state: destColState, applyOrder: true }, \"alignedGridChanged\");\n                    this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" toIndex = \" + movedEvent.toIndex);\n                }\n                break;\n            case Events.EVENT_COLUMN_VISIBLE:\n                // when the user changes visibility via setColumnState, we can't depend on visibility flag in event\n                // as there maybe be mix of true/false (as wasn't result of a mouse click to set visiblity).\n                // so only way to be sure is match the visibility of all columns using Column State.\n                {\n                    var visibleEvent = colEvent;\n                    var srcColState = colEvent.columnApi.getColumnState();\n                    var destColState = srcColState.map(function (s) { return ({ colId: s.colId, hide: s.hide }); });\n                    this.columnModel.applyColumnState({ state: destColState }, \"alignedGridChanged\");\n                    this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" visible = \" + visibleEvent.visible);\n                }\n                break;\n            case Events.EVENT_COLUMN_PINNED:\n                {\n                    var pinnedEvent = colEvent;\n                    var srcColState = colEvent.columnApi.getColumnState();\n                    var destColState = srcColState.map(function (s) { return ({ colId: s.colId, pinned: s.pinned }); });\n                    this.columnModel.applyColumnState({ state: destColState }, \"alignedGridChanged\");\n                    this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" pinned = \" + pinnedEvent.pinned);\n                }\n                break;\n            case Events.EVENT_COLUMN_RESIZED:\n                var resizedEvent_1 = colEvent;\n                masterColumns.forEach(function (column) {\n                    _this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" actualWidth = \" + column.getActualWidth());\n                    var columnWidths = [{ key: column.getColId(), newWidth: column.getActualWidth() }];\n                    _this.columnModel.setColumnWidths(columnWidths, false, resizedEvent_1.finished, \"alignedGridChanged\");\n                });\n                break;\n        }\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var isVerticalScrollShowing = gridBodyCon.isVerticalScrollShowing();\n        var alignedGrids = this.gridOptionsWrapper.getAlignedGrids();\n        if (alignedGrids) {\n            alignedGrids.forEach(function (grid) {\n                if (grid.api) {\n                    grid.api.setAlwaysShowVerticalScroll(isVerticalScrollShowing);\n                }\n            });\n        }\n    };\n    __decorate$1P([\n        Autowired('columnModel')\n    ], AlignedGridsService.prototype, \"columnModel\", void 0);\n    __decorate$1P([\n        Autowired('ctrlsService')\n    ], AlignedGridsService.prototype, \"ctrlsService\", void 0);\n    __decorate$1P([\n        __param$5(0, Qualifier('loggerFactory'))\n    ], AlignedGridsService.prototype, \"setBeans\", null);\n    __decorate$1P([\n        PostConstruct\n    ], AlignedGridsService.prototype, \"init\", null);\n    AlignedGridsService = __decorate$1P([\n        Bean('alignedGridsService')\n    ], AlignedGridsService);\n    return AlignedGridsService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2a = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1Q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$6 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar SelectionService = /** @class */ (function (_super) {\n    __extends$2a(SelectionService, _super);\n    function SelectionService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SelectionService.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('selectionService');\n        this.reset();\n    };\n    SelectionService.prototype.init = function () {\n        this.groupSelectsChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_SELECTED, this.onRowSelected.bind(this));\n    };\n    SelectionService.prototype.setLastSelectedNode = function (rowNode) {\n        this.lastSelectedNode = rowNode;\n    };\n    SelectionService.prototype.getLastSelectedNode = function () {\n        return this.lastSelectedNode;\n    };\n    SelectionService.prototype.getSelectedNodes = function () {\n        var selectedNodes = [];\n        iterateObject(this.selectedNodes, function (key, rowNode) {\n            if (rowNode) {\n                selectedNodes.push(rowNode);\n            }\n        });\n        return selectedNodes;\n    };\n    SelectionService.prototype.getSelectedRows = function () {\n        var selectedRows = [];\n        iterateObject(this.selectedNodes, function (key, rowNode) {\n            if (rowNode && rowNode.data) {\n                selectedRows.push(rowNode.data);\n            }\n        });\n        return selectedRows;\n    };\n    SelectionService.prototype.removeGroupsFromSelection = function () {\n        var _this = this;\n        iterateObject(this.selectedNodes, function (key, rowNode) {\n            if (rowNode && rowNode.group) {\n                _this.selectedNodes[rowNode.id] = undefined;\n            }\n        });\n    };\n    // should only be called if groupSelectsChildren=true\n    SelectionService.prototype.updateGroupsFromChildrenSelections = function (changedPath) {\n        // we only do this when group selection state depends on selected children\n        if (!this.gridOptionsWrapper.isGroupSelectsChildren()) {\n            return;\n        }\n        // also only do it if CSRM (code should never allow this anyway)\n        if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            return;\n        }\n        var clientSideRowModel = this.rowModel;\n        var rootNode = clientSideRowModel.getRootNode();\n        if (!changedPath) {\n            changedPath = new ChangedPath(true, rootNode);\n            changedPath.setInactive();\n        }\n        changedPath.forEachChangedNodeDepthFirst(function (rowNode) {\n            if (rowNode !== rootNode) {\n                rowNode.calculateSelectedFromChildren();\n            }\n        });\n        // clientSideRowModel.getTopLevelNodes()!.forEach((rowNode: RowNode) => {\n        //     rowNode.depthFirstSearch((node) => {\n        //         if (node.group) {\n        //         }\n        //     });\n        // });\n    };\n    SelectionService.prototype.getNodeForIdIfSelected = function (id) {\n        return this.selectedNodes[id];\n    };\n    SelectionService.prototype.clearOtherNodes = function (rowNodeToKeepSelected) {\n        var _this = this;\n        var groupsToRefresh = {};\n        var updatedCount = 0;\n        iterateObject(this.selectedNodes, function (key, otherRowNode) {\n            if (otherRowNode && otherRowNode.id !== rowNodeToKeepSelected.id) {\n                var rowNode = _this.selectedNodes[otherRowNode.id];\n                updatedCount += rowNode.setSelectedParams({\n                    newValue: false,\n                    clearSelection: false,\n                    suppressFinishActions: true\n                });\n                if (_this.groupSelectsChildren && otherRowNode.parent) {\n                    groupsToRefresh[otherRowNode.parent.id] = otherRowNode.parent;\n                }\n            }\n        });\n        iterateObject(groupsToRefresh, function (key, group) {\n            group.calculateSelectedFromChildren();\n        });\n        return updatedCount;\n    };\n    SelectionService.prototype.onRowSelected = function (event) {\n        var rowNode = event.node;\n        // we do not store the group rows when the groups select children\n        if (this.groupSelectsChildren && rowNode.group) {\n            return;\n        }\n        if (rowNode.isSelected()) {\n            this.selectedNodes[rowNode.id] = rowNode;\n        }\n        else {\n            this.selectedNodes[rowNode.id] = undefined;\n        }\n    };\n    SelectionService.prototype.syncInRowNode = function (rowNode, oldNode) {\n        this.syncInOldRowNode(rowNode, oldNode);\n        this.syncInNewRowNode(rowNode);\n    };\n    // if the id has changed for the node, then this means the rowNode\n    // is getting used for a different data item, which breaks\n    // our selectedNodes, as the node now is mapped by the old id\n    // which is inconsistent. so to keep the old node as selected,\n    // we swap in the clone (with the old id and old data). this means\n    // the oldNode is effectively a daemon we keep a reference to,\n    // so if client calls api.getSelectedNodes(), it gets the daemon\n    // in the result. when the client un-selects, the reference to the\n    // daemon is removed. the daemon, because it's an oldNode, is not\n    // used by the grid for rendering, it's a copy of what the node used\n    // to be like before the id was changed.\n    SelectionService.prototype.syncInOldRowNode = function (rowNode, oldNode) {\n        var oldNodeHasDifferentId = exists(oldNode) && (rowNode.id !== oldNode.id);\n        if (oldNodeHasDifferentId && oldNode) {\n            var id = oldNode.id;\n            var oldNodeSelected = this.selectedNodes[id] == rowNode;\n            if (oldNodeSelected) {\n                this.selectedNodes[oldNode.id] = oldNode;\n            }\n        }\n    };\n    SelectionService.prototype.syncInNewRowNode = function (rowNode) {\n        if (exists(this.selectedNodes[rowNode.id])) {\n            rowNode.setSelectedInitialValue(true);\n            this.selectedNodes[rowNode.id] = rowNode;\n        }\n        else {\n            rowNode.setSelectedInitialValue(false);\n        }\n    };\n    SelectionService.prototype.reset = function () {\n        this.logger.log('reset');\n        this.selectedNodes = {};\n        this.lastSelectedNode = null;\n    };\n    // returns a list of all nodes at 'best cost' - a feature to be used\n    // with groups / trees. if a group has all it's children selected,\n    // then the group appears in the result, but not the children.\n    // Designed for use with 'children' as the group selection type,\n    // where groups don't actually appear in the selection normally.\n    SelectionService.prototype.getBestCostNodeSelection = function () {\n        if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');\n            return;\n        }\n        var clientSideRowModel = this.rowModel;\n        var topLevelNodes = clientSideRowModel.getTopLevelNodes();\n        if (topLevelNodes === null) {\n            console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');\n            return;\n        }\n        var result = [];\n        // recursive function, to find the selected nodes\n        function traverse(nodes) {\n            for (var i = 0, l = nodes.length; i < l; i++) {\n                var node = nodes[i];\n                if (node.isSelected()) {\n                    result.push(node);\n                }\n                else {\n                    // if not selected, then if it's a group, and the group\n                    // has children, continue to search for selections\n                    var maybeGroup = node;\n                    if (maybeGroup.group && maybeGroup.children) {\n                        traverse(maybeGroup.children);\n                    }\n                }\n            }\n        }\n        traverse(topLevelNodes);\n        return result;\n    };\n    SelectionService.prototype.setRowModel = function (rowModel) {\n        this.rowModel = rowModel;\n    };\n    SelectionService.prototype.isEmpty = function () {\n        var count = 0;\n        iterateObject(this.selectedNodes, function (nodeId, rowNode) {\n            if (rowNode) {\n                count++;\n            }\n        });\n        return count === 0;\n    };\n    SelectionService.prototype.deselectAllRowNodes = function (justFiltered) {\n        if (justFiltered === void 0) { justFiltered = false; }\n        var callback = function (rowNode) { return rowNode.selectThisNode(false); };\n        var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n        if (justFiltered) {\n            if (!rowModelClientSide) {\n                console.error('AG Grid: selecting just filtered only works with In Memory Row Model');\n                return;\n            }\n            var clientSideRowModel = this.rowModel;\n            clientSideRowModel.forEachNodeAfterFilter(callback);\n        }\n        else {\n            iterateObject(this.selectedNodes, function (id, rowNode) {\n                // remember the reference can be to null, as we never 'delete' from the map\n                if (rowNode) {\n                    callback(rowNode);\n                }\n            });\n            // this clears down the map (whereas above only sets the items in map to 'undefined')\n            this.reset();\n        }\n        // the above does not clean up the parent rows if they are selected\n        if (rowModelClientSide && this.groupSelectsChildren) {\n            this.updateGroupsFromChildrenSelections();\n        }\n        var event = {\n            type: Events.EVENT_SELECTION_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    SelectionService.prototype.selectAllRowNodes = function (justFiltered) {\n        if (justFiltered === void 0) { justFiltered = false; }\n        if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            throw new Error(\"selectAll only available with normal row model, ie not \" + this.rowModel.getType());\n        }\n        var clientSideRowModel = this.rowModel;\n        var callback = function (rowNode) { return rowNode.selectThisNode(true); };\n        if (justFiltered) {\n            clientSideRowModel.forEachNodeAfterFilter(callback);\n        }\n        else {\n            clientSideRowModel.forEachNode(callback);\n        }\n        // the above does not clean up the parent rows if they are selected\n        if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE && this.groupSelectsChildren) {\n            this.updateGroupsFromChildrenSelections();\n        }\n        var event = {\n            type: Events.EVENT_SELECTION_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    /**\n     * @method\n     * @deprecated\n     */\n    SelectionService.prototype.selectNode = function (rowNode, tryMulti) {\n        if (rowNode) {\n            rowNode.setSelectedParams({ newValue: true, clearSelection: !tryMulti });\n        }\n    };\n    /**\n     * @method\n     * @deprecated\n     */\n    SelectionService.prototype.deselectIndex = function (rowIndex) {\n        var node = this.rowModel.getRow(rowIndex);\n        this.deselectNode(node);\n    };\n    /**\n     * @method\n     * @deprecated\n     */\n    SelectionService.prototype.deselectNode = function (rowNode) {\n        if (rowNode) {\n            rowNode.setSelectedParams({ newValue: false, clearSelection: false });\n        }\n    };\n    /**\n     * @method\n     * @deprecated\n     */\n    SelectionService.prototype.selectIndex = function (index, tryMulti) {\n        var node = this.rowModel.getRow(index);\n        this.selectNode(node, tryMulti);\n    };\n    __decorate$1Q([\n        Autowired('rowModel')\n    ], SelectionService.prototype, \"rowModel\", void 0);\n    __decorate$1Q([\n        Autowired('columnApi')\n    ], SelectionService.prototype, \"columnApi\", void 0);\n    __decorate$1Q([\n        Autowired('gridApi')\n    ], SelectionService.prototype, \"gridApi\", void 0);\n    __decorate$1Q([\n        __param$6(0, Qualifier('loggerFactory'))\n    ], SelectionService.prototype, \"setBeans\", null);\n    __decorate$1Q([\n        PostConstruct\n    ], SelectionService.prototype, \"init\", null);\n    SelectionService = __decorate$1Q([\n        Bean('selectionService')\n    ], SelectionService);\n    return SelectionService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$1R = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ColumnApi = /** @class */ (function () {\n    function ColumnApi() {\n    }\n    /** Gets the grid to size the columns to the specified width in pixels, e.g. `sizeColumnsToFit(900)`. To have the grid fit the columns to the grid's width, use the Grid API `gridApi.sizeColumnsToFit()` instead. */\n    ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {\n        // AG-3403 validate that gridWidth is provided because this method has the same name as\n        // a method on the grid API that takes no arguments, and it's easy to confuse the two\n        if (typeof gridWidth === \"undefined\") {\n            console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');\n        }\n        this.columnModel.sizeColumnsToFit(gridWidth, 'api');\n    };\n    /** Call this if you want to open or close a column group. */\n    ColumnApi.prototype.setColumnGroupOpened = function (group, newValue) { this.columnModel.setColumnGroupOpened(group, newValue, 'api'); };\n    /** Returns the column group with the given name. */\n    ColumnApi.prototype.getColumnGroup = function (name, instanceId) { return this.columnModel.getColumnGroup(name, instanceId); };\n    /** Returns the provided column group with the given name. */\n    ColumnApi.prototype.getProvidedColumnGroup = function (name) { return this.columnModel.getProvidedColumnGroup(name); };\n    /** Returns the display name for a column. Useful if you are doing your own header rendering and want the grid to work out if `headerValueGetter` is used, or if you are doing your own column management GUI, to know what to show as the column name. */\n    ColumnApi.prototype.getDisplayNameForColumn = function (column, location) { return this.columnModel.getDisplayNameForColumn(column, location) || ''; };\n    /** Returns the display name for a column group (when grouping columns). */\n    ColumnApi.prototype.getDisplayNameForColumnGroup = function (columnGroup, location) { return this.columnModel.getDisplayNameForColumnGroup(columnGroup, location) || ''; };\n    /** Returns the column with the given `colKey`, which can either be the `colId` (a string) or the `colDef` (an object). */\n    ColumnApi.prototype.getColumn = function (key) { return this.columnModel.getPrimaryColumn(key); };\n    /** Applies the state of the columns from a previous state. Returns `false` if one or more columns could not be found. */\n    ColumnApi.prototype.applyColumnState = function (params) { return this.columnModel.applyColumnState(params, 'api'); };\n    /** Gets the state of the columns. Typically used when saving column state. */\n    ColumnApi.prototype.getColumnState = function () { return this.columnModel.getColumnState(); };\n    /** Sets the state back to match the originally provided column definitions. */\n    ColumnApi.prototype.resetColumnState = function () { this.columnModel.resetColumnState('api'); };\n    /** Gets the state of the column groups. Typically used when saving column group state. */\n    ColumnApi.prototype.getColumnGroupState = function () { return this.columnModel.getColumnGroupState(); };\n    /** Sets the state of the column group state from a previous state. */\n    ColumnApi.prototype.setColumnGroupState = function (stateItems) { this.columnModel.setColumnGroupState(stateItems, 'api'); };\n    /** Sets the state back to match the originally provided column definitions. */\n    ColumnApi.prototype.resetColumnGroupState = function () { this.columnModel.resetColumnGroupState('api'); };\n    /** Returns `true` if pinning left or right, otherwise `false`. */\n    ColumnApi.prototype.isPinning = function () { return this.columnModel.isPinningLeft() || this.columnModel.isPinningRight(); };\n    /** Returns `true` if pinning left, otherwise `false`. */\n    ColumnApi.prototype.isPinningLeft = function () { return this.columnModel.isPinningLeft(); };\n    /** Returns `true` if pinning right, otherwise `false`. */\n    ColumnApi.prototype.isPinningRight = function () { return this.columnModel.isPinningRight(); };\n    /** Returns the column to the right of the provided column, taking into consideration open / closed column groups and visible columns. This is useful if you need to know what column is beside yours e.g. if implementing your own cell navigation. */\n    ColumnApi.prototype.getDisplayedColAfter = function (col) { return this.columnModel.getDisplayedColAfter(col); };\n    /** Same as `getVisibleColAfter` except gives column to the left. */\n    ColumnApi.prototype.getDisplayedColBefore = function (col) { return this.columnModel.getDisplayedColBefore(col); };\n    /** Sets the visibility of a column. Key can be the column ID or `Column` object. */\n    ColumnApi.prototype.setColumnVisible = function (key, visible) { this.columnModel.setColumnVisible(key, visible, 'api'); };\n    /** Same as `setColumnVisible`, but provide a list of column keys. */\n    ColumnApi.prototype.setColumnsVisible = function (keys, visible) { this.columnModel.setColumnsVisible(keys, visible, 'api'); };\n    /** Sets the column pinned / unpinned. Key can be the column ID, field, `ColDef` object or `Column` object. */\n    ColumnApi.prototype.setColumnPinned = function (key, pinned) { this.columnModel.setColumnPinned(key, pinned, 'api'); };\n    /** Same as `setColumnPinned`, but provide a list of column keys. */\n    ColumnApi.prototype.setColumnsPinned = function (keys, pinned) { this.columnModel.setColumnsPinned(keys, pinned, 'api'); };\n    /** Returns all the columns, regardless of visible or not. */\n    ColumnApi.prototype.getAllColumns = function () { return this.columnModel.getAllPrimaryColumns(); };\n    /**\n     * Returns all the grid columns, same as `getAllColumns()`, except\n     *\n     *  a) it has the order of the columns that are presented in the grid\n     *\n     *  b) it's after the 'pivot' step, so if pivoting, has the value columns for the pivot.\n     */\n    ColumnApi.prototype.getAllGridColumns = function () { return this.columnModel.getAllGridColumns(); };\n    /** Same as `getAllDisplayedColumns` but just for the pinned left portion of the grid. */\n    ColumnApi.prototype.getDisplayedLeftColumns = function () { return this.columnModel.getDisplayedLeftColumns(); };\n    /** Same as `getAllDisplayedColumns` but just for the center portion of the grid. */\n    ColumnApi.prototype.getDisplayedCenterColumns = function () { return this.columnModel.getDisplayedCenterColumns(); };\n    /** Same as `getAllDisplayedColumns` but just for the pinned right portion of the grid. */\n    ColumnApi.prototype.getDisplayedRightColumns = function () { return this.columnModel.getDisplayedRightColumns(); };\n    /** Returns all columns currently displayed (e.g. are visible and if in a group, the group is showing the columns) for the pinned left, centre and pinned right portions of the grid. */\n    ColumnApi.prototype.getAllDisplayedColumns = function () { return this.columnModel.getAllDisplayedColumns(); };\n    /** Same as `getAllGridColumns()`, except only returns rendered columns, i.e. columns that are not within the viewport and therefore not rendered, due to column virtualisation, are not displayed. */\n    ColumnApi.prototype.getAllDisplayedVirtualColumns = function () { return this.columnModel.getViewportColumns(); };\n    /** Moves a column to `toIndex`. The column is first removed, then added at the `toIndex` location, thus index locations will change to the right of the column after the removal. */\n    ColumnApi.prototype.moveColumn = function (key, toIndex) {\n        if (typeof key === 'number') {\n            // moveColumn used to take indexes, so this is advising user who hasn't moved to new method name\n            console.warn('AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead');\n            this.columnModel.moveColumnByIndex(key, toIndex, 'api');\n        }\n        else {\n            this.columnModel.moveColumn(key, toIndex, 'api');\n        }\n    };\n    /** Same as `moveColumn` but works on index locations. */\n    ColumnApi.prototype.moveColumnByIndex = function (fromIndex, toIndex) { this.columnModel.moveColumnByIndex(fromIndex, toIndex, 'api'); };\n    /** Same as `moveColumn` but works on list. */\n    ColumnApi.prototype.moveColumns = function (columnsToMoveKeys, toIndex) { this.columnModel.moveColumns(columnsToMoveKeys, toIndex, 'api'); };\n    /** Move the column to a new position in the row grouping order. */\n    ColumnApi.prototype.moveRowGroupColumn = function (fromIndex, toIndex) { this.columnModel.moveRowGroupColumn(fromIndex, toIndex); };\n    /** Sets the agg function for a column. `aggFunc` can be one of `'min' | 'max' | 'sum'`. */\n    ColumnApi.prototype.setColumnAggFunc = function (key, aggFunc) { this.columnModel.setColumnAggFunc(key, aggFunc); };\n    /** Sets the column width on a single column. The finished flag gets included in the resulting event and not used internally by the grid. The finished flag is intended for dragging, where a dragging action will produce many `columnWidth` events, so the consumer of events knows when it receives the last event in a stream. The finished parameter is optional, and defaults to `true`. */\n    ColumnApi.prototype.setColumnWidth = function (key, newWidth, finished, source) {\n        if (finished === void 0) { finished = true; }\n        this.columnModel.setColumnWidths([{ key: key, newWidth: newWidth }], false, finished, source);\n    };\n    /** Sets the column widths on multiple columns. This method offers better performance than calling `setColumnWidth` multiple times. The finished flag gets included in the resulting event and not used internally by the grid. The finished flag is intended for dragging, where a dragging action will produce many `columnWidth` events, so the consumer of events knows when it receives the last event in a stream. The finished parameter is optional, and defaults to `true`. */\n    ColumnApi.prototype.setColumnWidths = function (columnWidths, finished, source) {\n        if (finished === void 0) { finished = true; }\n        this.columnModel.setColumnWidths(columnWidths, false, finished, source);\n    };\n    /** Set the pivot mode. */\n    ColumnApi.prototype.setPivotMode = function (pivotMode) { this.columnModel.setPivotMode(pivotMode); };\n    /** Get the pivot mode. */\n    ColumnApi.prototype.isPivotMode = function () { return this.columnModel.isPivotMode(); };\n    /** Returns the pivot column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */\n    ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) { return this.columnModel.getSecondaryPivotColumn(pivotKeys, valueColKey); };\n    /** Set the value columns. */\n    ColumnApi.prototype.setValueColumns = function (colKeys) { this.columnModel.setValueColumns(colKeys, 'api'); };\n    /** Get value columns. */\n    ColumnApi.prototype.getValueColumns = function () { return this.columnModel.getValueColumns(); };\n    /** Remove a value column. */\n    ColumnApi.prototype.removeValueColumn = function (colKey) { this.columnModel.removeValueColumn(colKey, 'api'); };\n    /** Same as `removeValueColumns` but provide a list. */\n    ColumnApi.prototype.removeValueColumns = function (colKeys) { this.columnModel.removeValueColumns(colKeys, 'api'); };\n    /** Add a value column. */\n    ColumnApi.prototype.addValueColumn = function (colKey) { this.columnModel.addValueColumn(colKey, 'api'); };\n    /** Same as `addValueColumn` but provide a list. */\n    ColumnApi.prototype.addValueColumns = function (colKeys) { this.columnModel.addValueColumns(colKeys, 'api'); };\n    /** Set the row group columns. */\n    ColumnApi.prototype.setRowGroupColumns = function (colKeys) { this.columnModel.setRowGroupColumns(colKeys, 'api'); };\n    /** Remove a column from the row groups. */\n    ColumnApi.prototype.removeRowGroupColumn = function (colKey) { this.columnModel.removeRowGroupColumn(colKey, 'api'); };\n    /** Same as `removeRowGroupColumn` but provide a list of columns. */\n    ColumnApi.prototype.removeRowGroupColumns = function (colKeys) { this.columnModel.removeRowGroupColumns(colKeys, 'api'); };\n    /** Add a column to the row groups. */\n    ColumnApi.prototype.addRowGroupColumn = function (colKey) { this.columnModel.addRowGroupColumn(colKey, 'api'); };\n    /** Same as `addRowGroupColumn` but provide a list of columns. */\n    ColumnApi.prototype.addRowGroupColumns = function (colKeys) { this.columnModel.addRowGroupColumns(colKeys, 'api'); };\n    /** Get row group columns. */\n    ColumnApi.prototype.getRowGroupColumns = function () { return this.columnModel.getRowGroupColumns(); };\n    /** Set the pivot columns. */\n    ColumnApi.prototype.setPivotColumns = function (colKeys) { this.columnModel.setPivotColumns(colKeys, 'api'); };\n    /** Remove a pivot column. */\n    ColumnApi.prototype.removePivotColumn = function (colKey) { this.columnModel.removePivotColumn(colKey, 'api'); };\n    /** Same as `removePivotColumn` but provide a list of columns. */\n    ColumnApi.prototype.removePivotColumns = function (colKeys) { this.columnModel.removePivotColumns(colKeys, 'api'); };\n    /** Add a pivot column. */\n    ColumnApi.prototype.addPivotColumn = function (colKey) { this.columnModel.addPivotColumn(colKey, 'api'); };\n    /** Same as `addPivotColumn` but provide a list of columns. */\n    ColumnApi.prototype.addPivotColumns = function (colKeys) { this.columnModel.addPivotColumns(colKeys, 'api'); };\n    /** Get the pivot columns. */\n    ColumnApi.prototype.getPivotColumns = function () { return this.columnModel.getPivotColumns(); };\n    /** Same as `getAllDisplayedColumnGroups` but just for the pinned left portion of the grid. */\n    ColumnApi.prototype.getLeftDisplayedColumnGroups = function () { return this.columnModel.getDisplayedTreeLeft(); };\n    /** Same as `getAllDisplayedColumnGroups` but just for the center portion of the grid. */\n    ColumnApi.prototype.getCenterDisplayedColumnGroups = function () { return this.columnModel.getDisplayedTreeCentre(); };\n    /** Same as `getAllDisplayedColumnGroups` but just for the pinned right portion of the grid. */\n    ColumnApi.prototype.getRightDisplayedColumnGroups = function () { return this.columnModel.getDisplayedTreeRight(); };\n    /** Returns all 'root' column headers. If you are not grouping columns, these return the columns. If you are grouping, these return the top level groups - you can navigate down through each one to get the other lower level headers and finally the columns at the bottom. */\n    ColumnApi.prototype.getAllDisplayedColumnGroups = function () { return this.columnModel.getAllDisplayedTrees(); };\n    /** Auto-sizes a column based on its contents. */\n    ColumnApi.prototype.autoSizeColumn = function (key, skipHeader) { return this.columnModel.autoSizeColumn(key, skipHeader, 'api'); };\n    /** Same as `autoSizeColumn`, but provide a list of column keys. */\n    ColumnApi.prototype.autoSizeColumns = function (keys, skipHeader) {\n        this.columnModel.autoSizeColumns({ columns: keys, skipHeader: skipHeader });\n    };\n    /** Calls `autoSizeColumns` on all displayed columns. */\n    ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) { this.columnModel.autoSizeAllColumns(skipHeader, 'api'); };\n    /** Set the secondary pivot columns. */\n    ColumnApi.prototype.setSecondaryColumns = function (colDefs) { this.columnModel.setSecondaryColumns(colDefs, 'api'); };\n    /** Returns the grid's secondary columns. */\n    ColumnApi.prototype.getSecondaryColumns = function () { return this.columnModel.getSecondaryColumns(); };\n    /** Returns the grid's primary columns. */\n    ColumnApi.prototype.getPrimaryColumns = function () { return this.columnModel.getAllPrimaryColumns(); };\n    ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {\n        // some users were raising support issues with regards memory leaks. the problem was the customers applications\n        // were keeping references to the API. trying to educate them all would be difficult, easier to just remove\n        // all references in the API so at least the core grid can be garbage collected.\n        //\n        // wait about 100ms before clearing down the references, in case user has some cleanup to do,\n        // and needs to deference the API first\n        setTimeout(_.removeAllReferences.bind(window, this, 'Column API'), 100);\n    };\n    // below goes through deprecated items, prints message to user, then calls the new version of the same method\n    // public getColumnDefs(): (ColDef | ColGroupDef)[] {\n    //     this.setColumnGroupOpened(group, newValue);\n    //     return null;\n    // }\n    /** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */\n    ColumnApi.prototype.columnGroupOpened = function (group, newValue) {\n        console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');\n        this.setColumnGroupOpened(group, newValue);\n    };\n    /** @deprecated hideColumns is deprecated, use setColumnsVisible */\n    ColumnApi.prototype.hideColumns = function (colIds, hide) {\n        console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');\n        this.columnModel.setColumnsVisible(colIds, !hide, 'api');\n    };\n    /** @deprecated hideColumn is deprecated, use setColumnVisible */\n    ColumnApi.prototype.hideColumn = function (colId, hide) {\n        console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');\n        this.columnModel.setColumnVisible(colId, !hide, 'api');\n    };\n    /** @deprecated setState is deprecated, use setColumnState */\n    ColumnApi.prototype.setState = function (columnState) {\n        console.error('AG Grid: setState is deprecated, use setColumnState');\n        return this.setColumnState(columnState);\n    };\n    /** @deprecated getState is deprecated, use getColumnState */\n    ColumnApi.prototype.getState = function () {\n        console.error('AG Grid: getState is deprecated, use getColumnState');\n        return this.getColumnState();\n    };\n    /** @deprecated resetState is deprecated, use resetColumnState */\n    ColumnApi.prototype.resetState = function () {\n        console.error('AG Grid: resetState is deprecated, use resetColumnState');\n        this.resetColumnState();\n    };\n    /** @deprecated getAggregationColumns is deprecated, use getValueColumns */\n    ColumnApi.prototype.getAggregationColumns = function () {\n        console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');\n        return this.columnModel.getValueColumns();\n    };\n    /** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */\n    ColumnApi.prototype.removeAggregationColumn = function (colKey) {\n        console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');\n        this.columnModel.removeValueColumn(colKey, 'api');\n    };\n    /** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */\n    ColumnApi.prototype.removeAggregationColumns = function (colKeys) {\n        console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');\n        this.columnModel.removeValueColumns(colKeys, 'api');\n    };\n    /** @deprecated addAggregationColumn is deprecated, use addValueColumn */\n    ColumnApi.prototype.addAggregationColumn = function (colKey) {\n        console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');\n        this.columnModel.addValueColumn(colKey, 'api');\n    };\n    /** @deprecated addAggregationColumns is deprecated, use addValueColumns */\n    ColumnApi.prototype.addAggregationColumns = function (colKeys) {\n        console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');\n        this.columnModel.addValueColumns(colKeys, 'api');\n    };\n    /** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */\n    ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {\n        console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');\n        this.columnModel.setColumnAggFunc(column, aggFunc, 'api');\n    };\n    /** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */\n    ColumnApi.prototype.getDisplayNameForCol = function (column) {\n        console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');\n        return this.getDisplayNameForColumn(column, null);\n    };\n    /** @deprecated setColumnState is deprecated, use applyColumnState. */\n    ColumnApi.prototype.setColumnState = function (columnState) {\n        console.error('AG Grid: setColumnState is deprecated, use applyColumnState');\n        return this.columnModel.applyColumnState({ state: columnState, applyOrder: true }, 'api');\n    };\n    /** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */\n    ColumnApi.prototype.getOriginalColumnGroup = function (name) {\n        console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');\n        return this.columnModel.getProvidedColumnGroup(name);\n    };\n    __decorate$1R([\n        Autowired('columnModel')\n    ], ColumnApi.prototype, \"columnModel\", void 0);\n    __decorate$1R([\n        PreDestroy\n    ], ColumnApi.prototype, \"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\", null);\n    ColumnApi = __decorate$1R([\n        Bean('columnApi')\n    ], ColumnApi);\n    return ColumnApi;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2b = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1S = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ValueService = /** @class */ (function (_super) {\n    __extends$2b(ValueService, _super);\n    function ValueService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.initialised = false;\n        return _this;\n    }\n    ValueService.prototype.init = function () {\n        var _this = this;\n        this.cellExpressions = this.gridOptionsWrapper.isEnableCellExpressions();\n        this.initialised = true;\n        // We listen to our own event and use it to call the columnSpecific callback,\n        // this way the handler calls are correctly interleaved with other global events\n        this.eventService.addEventListener(Events.EVENT_CELL_VALUE_CHANGED, function (event) { return _this.callColumnCellValueChangedHandler(event); }, this.gridOptionsWrapper.useAsyncEvents());\n    };\n    ValueService.prototype.getValue = function (column, rowNode, forFilter, ignoreAggData) {\n        if (forFilter === void 0) { forFilter = false; }\n        if (ignoreAggData === void 0) { ignoreAggData = false; }\n        // hack - the grid is getting refreshed before this bean gets initialised, race condition.\n        // really should have a way so they get initialised in the right order???\n        if (!this.initialised) {\n            this.init();\n        }\n        if (!rowNode) {\n            return;\n        }\n        // pull these out to make code below easier to read\n        var colDef = column.getColDef();\n        var field = colDef.field;\n        var colId = column.getId();\n        var data = rowNode.data;\n        var result;\n        // if there is a value getter, this gets precedence over a field\n        var groupDataExists = rowNode.groupData && rowNode.groupData[colId] !== undefined;\n        var aggDataExists = !ignoreAggData && rowNode.aggData && rowNode.aggData[colId] !== undefined;\n        if (forFilter && colDef.filterValueGetter) {\n            result = this.executeFilterValueGetter(colDef.filterValueGetter, data, column, rowNode);\n        }\n        else if (this.gridOptionsWrapper.isTreeData() && aggDataExists) {\n            result = rowNode.aggData[colId];\n        }\n        else if (this.gridOptionsWrapper.isTreeData() && colDef.valueGetter) {\n            result = this.executeValueGetter(colDef.valueGetter, data, column, rowNode);\n        }\n        else if (this.gridOptionsWrapper.isTreeData() && (field && data)) {\n            result = getValueUsingField(data, field, column.isFieldContainsDots());\n        }\n        else if (groupDataExists) {\n            result = rowNode.groupData[colId];\n        }\n        else if (aggDataExists) {\n            result = rowNode.aggData[colId];\n        }\n        else if (colDef.valueGetter) {\n            result = this.executeValueGetter(colDef.valueGetter, data, column, rowNode);\n        }\n        else if (field && data) {\n            result = getValueUsingField(data, field, column.isFieldContainsDots());\n        }\n        // the result could be an expression itself, if we are allowing cell values to be expressions\n        if (this.cellExpressions && (typeof result === 'string') && result.indexOf('=') === 0) {\n            var cellValueGetter = result.substring(1);\n            result = this.executeValueGetter(cellValueGetter, data, column, rowNode);\n        }\n        if (result == null) {\n            var openedGroup = this.getOpenedGroup(rowNode, column);\n            if (openedGroup != null) {\n                return openedGroup;\n            }\n        }\n        return result;\n    };\n    ValueService.prototype.getOpenedGroup = function (rowNode, column) {\n        if (!this.gridOptionsWrapper.isShowOpenedGroup()) {\n            return;\n        }\n        var colDef = column.getColDef();\n        if (!colDef.showRowGroup) {\n            return;\n        }\n        var showRowGroup = column.getColDef().showRowGroup;\n        var pointer = rowNode.parent;\n        while (pointer != null) {\n            if (pointer.rowGroupColumn && (showRowGroup === true || showRowGroup === pointer.rowGroupColumn.getId())) {\n                return pointer.key;\n            }\n            pointer = pointer.parent;\n        }\n        return undefined;\n    };\n    /**\n     * Sets the value of a GridCell\n     * @param rowNode The `RowNode` to be updated\n     * @param colKey The `Column` to be updated\n     * @param newValue The new value to be set\n     * @param eventSource The event source\n     * @returns `True` if the value has been updated, otherwise`False`.\n     */\n    ValueService.prototype.setValue = function (rowNode, colKey, newValue, eventSource) {\n        var column = this.columnModel.getPrimaryColumn(colKey);\n        if (!rowNode || !column) {\n            return false;\n        }\n        // this will only happen if user is trying to paste into a group row, which doesn't make sense\n        // the user should not be trying to paste into group rows\n        if (missing(rowNode.data)) {\n            rowNode.data = {};\n        }\n        // for backwards compatibility we are also retrieving the newValueHandler as well as the valueSetter\n        var _a = column.getColDef(), field = _a.field, newValueHandler = _a.newValueHandler, valueSetter = _a.valueSetter;\n        // need either a field or a newValueHandler for this to work\n        if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {\n            // we don't tell user about newValueHandler, as that is deprecated\n            console.warn(\"AG Grid: you need either field or valueSetter set on colDef for editing to work\");\n            return false;\n        }\n        var params = {\n            node: rowNode,\n            data: rowNode.data,\n            oldValue: this.getValue(column, rowNode),\n            newValue: newValue,\n            colDef: column.getColDef(),\n            column: column,\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            context: this.gridOptionsWrapper.getContext()\n        };\n        params.newValue = newValue;\n        var valueWasDifferent;\n        if (newValueHandler && exists(newValueHandler)) {\n            valueWasDifferent = newValueHandler(params);\n        }\n        else if (exists(valueSetter)) {\n            valueWasDifferent = this.expressionService.evaluate(valueSetter, params);\n        }\n        else {\n            valueWasDifferent = this.setValueUsingField(rowNode.data, field, newValue, column.isFieldContainsDots());\n        }\n        // in case user forgot to return something (possible if they are not using TypeScript\n        // and just forgot, or using an old newValueHandler we didn't always expect a return\n        // value here), we default the return value to true, so we always refresh.\n        if (valueWasDifferent === undefined) {\n            valueWasDifferent = true;\n        }\n        // if no change to the value, then no need to do the updating, or notifying via events.\n        // otherwise the user could be tabbing around the grid, and cellValueChange would get called\n        // all the time.\n        if (!valueWasDifferent) {\n            return false;\n        }\n        // reset quick filter on this row\n        rowNode.resetQuickFilterAggregateText();\n        this.valueCache.onDataChanged();\n        params.newValue = this.getValue(column, rowNode);\n        var event = {\n            type: Events.EVENT_CELL_VALUE_CHANGED,\n            event: null,\n            rowIndex: rowNode.rowIndex,\n            rowPinned: rowNode.rowPinned,\n            column: params.column,\n            api: params.api,\n            columnApi: params.columnApi,\n            colDef: params.colDef,\n            context: params.context,\n            data: rowNode.data,\n            node: rowNode,\n            oldValue: params.oldValue,\n            newValue: params.newValue,\n            value: params.newValue,\n            source: eventSource\n        };\n        this.eventService.dispatchEvent(event);\n        return true;\n    };\n    ValueService.prototype.callColumnCellValueChangedHandler = function (event) {\n        var onCellValueChanged = event.colDef.onCellValueChanged;\n        if (typeof onCellValueChanged === 'function') {\n            onCellValueChanged({\n                node: event.node,\n                data: event.data,\n                oldValue: event.oldValue,\n                newValue: event.newValue,\n                colDef: event.colDef,\n                column: event.column,\n                api: event.api,\n                columnApi: event.columnApi,\n                context: event.context\n            });\n        }\n    };\n    ValueService.prototype.setValueUsingField = function (data, field, newValue, isFieldContainsDots) {\n        if (!field) {\n            return false;\n        }\n        // if no '.', then it's not a deep value\n        var valuesAreSame = false;\n        if (!isFieldContainsDots) {\n            data[field] = newValue;\n        }\n        else {\n            // otherwise it is a deep value, so need to dig for it\n            var fieldPieces = field.split('.');\n            var currentObject = data;\n            while (fieldPieces.length > 0 && currentObject) {\n                var fieldPiece = fieldPieces.shift();\n                if (fieldPieces.length === 0) {\n                    currentObject[fieldPiece] = newValue;\n                }\n                else {\n                    currentObject = currentObject[fieldPiece];\n                }\n            }\n        }\n        return !valuesAreSame;\n    };\n    ValueService.prototype.executeFilterValueGetter = function (valueGetter, data, column, rowNode) {\n        var params = {\n            data: data,\n            node: rowNode,\n            column: column,\n            colDef: column.getColDef(),\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            context: this.gridOptionsWrapper.getContext(),\n            getValue: this.getValueCallback.bind(this, rowNode)\n        };\n        return this.expressionService.evaluate(valueGetter, params);\n    };\n    ValueService.prototype.executeValueGetter = function (valueGetter, data, column, rowNode) {\n        var colId = column.getId();\n        // if inside the same turn, just return back the value we got last time\n        var valueFromCache = this.valueCache.getValue(rowNode, colId);\n        if (valueFromCache !== undefined) {\n            return valueFromCache;\n        }\n        var params = {\n            data: data,\n            node: rowNode,\n            column: column,\n            colDef: column.getColDef(),\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            context: this.gridOptionsWrapper.getContext(),\n            getValue: this.getValueCallback.bind(this, rowNode)\n        };\n        var result = this.expressionService.evaluate(valueGetter, params);\n        // if a turn is active, store the value in case the grid asks for it again\n        this.valueCache.setValue(rowNode, colId, result);\n        return result;\n    };\n    ValueService.prototype.getValueCallback = function (node, field) {\n        var otherColumn = this.columnModel.getPrimaryColumn(field);\n        if (otherColumn) {\n            return this.getValue(otherColumn, node);\n        }\n        return null;\n    };\n    // used by row grouping and pivot, to get key for a row. col can be a pivot col or a row grouping col\n    ValueService.prototype.getKeyForNode = function (col, rowNode) {\n        var value = this.getValue(col, rowNode);\n        var keyCreator = col.getColDef().keyCreator;\n        var result = value;\n        if (keyCreator) {\n            var keyParams = {\n                value: value,\n                colDef: col.getColDef(),\n                column: col,\n                node: rowNode,\n                data: rowNode.data,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            };\n            result = keyCreator(keyParams);\n        }\n        // if already a string, or missing, just return it\n        if (typeof result === 'string' || result == null) {\n            return result;\n        }\n        result = String(result);\n        if (result === '[object Object]') {\n            doOnce(function () {\n                console.warn('AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key');\n            }, 'getKeyForNode - warn about [object,object]');\n        }\n        return result;\n    };\n    __decorate$1S([\n        Autowired('expressionService')\n    ], ValueService.prototype, \"expressionService\", void 0);\n    __decorate$1S([\n        Autowired('columnModel')\n    ], ValueService.prototype, \"columnModel\", void 0);\n    __decorate$1S([\n        Autowired('valueCache')\n    ], ValueService.prototype, \"valueCache\", void 0);\n    __decorate$1S([\n        PostConstruct\n    ], ValueService.prototype, \"init\", null);\n    ValueService = __decorate$1S([\n        Bean('valueService')\n    ], ValueService);\n    return ValueService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2c = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1T = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$7 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar ExpressionService = /** @class */ (function (_super) {\n    __extends$2c(ExpressionService, _super);\n    function ExpressionService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.expressionToFunctionCache = {};\n        return _this;\n    }\n    ExpressionService.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('ExpressionService');\n    };\n    ExpressionService.prototype.evaluate = function (expressionOrFunc, params) {\n        if (typeof expressionOrFunc === 'function') {\n            // valueGetter is a function, so just call it\n            var func = expressionOrFunc;\n            return func(params);\n        }\n        else if (typeof expressionOrFunc === 'string') {\n            // valueGetter is an expression, so execute the expression\n            var expression = expressionOrFunc;\n            return this.evaluateExpression(expression, params);\n        }\n        else {\n            console.error('AG Grid: value should be either a string or a function', expressionOrFunc);\n        }\n    };\n    ExpressionService.prototype.evaluateExpression = function (expression, params) {\n        try {\n            var javaScriptFunction = this.createExpressionFunction(expression);\n            // the params don't have all these values, rather we add every possible\n            // value a params can have, which makes whatever is in the params available.\n            var result = javaScriptFunction(params.value, params.context, params.oldValue, params.newValue, params.value, params.node, params.data, params.colDef, params.rowIndex, params.api, params.columnApi, params.getValue, params.column, params.columnGroup);\n            return result;\n        }\n        catch (e) {\n            // the expression failed, which can happen, as it's the client that\n            // provides the expression. so print a nice message\n            // tslint:disable-next-line\n            console.log('Processing of the expression failed');\n            // tslint:disable-next-line\n            console.log('Expression = ' + expression);\n            // tslint:disable-next-line\n            console.log('Params =', params);\n            // tslint:disable-next-line\n            console.log('Exception = ' + e);\n            return null;\n        }\n    };\n    ExpressionService.prototype.createExpressionFunction = function (expression) {\n        // check cache first\n        if (this.expressionToFunctionCache[expression]) {\n            return this.expressionToFunctionCache[expression];\n        }\n        // if not found in cache, return the function\n        var functionBody = this.createFunctionBody(expression);\n        var theFunction = new Function('x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup', functionBody);\n        // store in cache\n        this.expressionToFunctionCache[expression] = theFunction;\n        return theFunction;\n    };\n    ExpressionService.prototype.createFunctionBody = function (expression) {\n        // if the expression has the 'return' word in it, then use as is,\n        // if not, then wrap it with return and ';' to make a function\n        if (expression.indexOf('return') >= 0) {\n            return expression;\n        }\n        else {\n            return 'return ' + expression + ';';\n        }\n    };\n    __decorate$1T([\n        __param$7(0, Qualifier('loggerFactory'))\n    ], ExpressionService.prototype, \"setBeans\", null);\n    ExpressionService = __decorate$1T([\n        Bean('expressionService')\n    ], ExpressionService);\n    return ExpressionService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2d = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1U = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar TemplateService = /** @class */ (function (_super) {\n    __extends$2d(TemplateService, _super);\n    function TemplateService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.templateCache = {};\n        _this.waitingCallbacks = {};\n        return _this;\n    }\n    // returns the template if it is loaded, or null if it is not loaded\n    // but will call the callback when it is loaded\n    TemplateService.prototype.getTemplate = function (url, callback) {\n        var templateFromCache = this.templateCache[url];\n        if (templateFromCache) {\n            return templateFromCache;\n        }\n        var callbackList = this.waitingCallbacks[url];\n        var that = this;\n        if (!callbackList) {\n            // first time this was called, so need a new list for callbacks\n            callbackList = [];\n            this.waitingCallbacks[url] = callbackList;\n            // and also need to do the http request\n            var client = new XMLHttpRequest();\n            client.onload = function () {\n                that.handleHttpResult(this, url);\n            };\n            client.open(\"GET\", url);\n            client.send();\n        }\n        // add this callback\n        if (callback) {\n            callbackList.push(callback);\n        }\n        // caller needs to wait for template to load, so return null\n        return null;\n    };\n    TemplateService.prototype.handleHttpResult = function (httpResult, url) {\n        if (httpResult.status !== 200 || httpResult.response === null) {\n            console.warn(\"AG Grid: Unable to get template error \" + httpResult.status + \" - \" + url);\n            return;\n        }\n        // response success, so process it\n        // in IE9 the response is in - responseText\n        this.templateCache[url] = httpResult.response || httpResult.responseText;\n        // inform all listeners that this is now in the cache\n        var callbacks = this.waitingCallbacks[url];\n        for (var i = 0; i < callbacks.length; i++) {\n            var callback = callbacks[i];\n            // we could pass the callback the response, however we know the client of this code\n            // is the cell renderer, and it passes the 'cellRefresh' method in as the callback\n            // which doesn't take any parameters.\n            callback();\n        }\n    };\n    TemplateService = __decorate$1U([\n        Bean('templateService')\n    ], TemplateService);\n    return TemplateService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2e = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1V = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$8 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar LoggerFactory = /** @class */ (function (_super) {\n    __extends$2e(LoggerFactory, _super);\n    function LoggerFactory() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    LoggerFactory.prototype.setBeans = function (gridOptionsWrapper) {\n        this.logging = gridOptionsWrapper.isDebug();\n    };\n    LoggerFactory.prototype.create = function (name) {\n        return new Logger(name, this.isLogging.bind(this));\n    };\n    LoggerFactory.prototype.isLogging = function () {\n        return this.logging;\n    };\n    __decorate$1V([\n        __param$8(0, Qualifier('gridOptionsWrapper'))\n    ], LoggerFactory.prototype, \"setBeans\", null);\n    LoggerFactory = __decorate$1V([\n        Bean('loggerFactory')\n    ], LoggerFactory);\n    return LoggerFactory;\n}(BeanStub));\nvar Logger = /** @class */ (function () {\n    function Logger(name, isLoggingFunc) {\n        this.name = name;\n        this.isLoggingFunc = isLoggingFunc;\n    }\n    Logger.prototype.isLogging = function () {\n        return this.isLoggingFunc();\n    };\n    Logger.prototype.log = function (message) {\n        if (this.isLoggingFunc()) {\n            // tslint:disable-next-line\n            console.log('AG Grid.' + this.name + ': ' + message);\n        }\n    };\n    return Logger;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2f = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1W = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GridCtrl = /** @class */ (function (_super) {\n    __extends$2f(GridCtrl, _super);\n    function GridCtrl() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    GridCtrl.prototype.setComp = function (view, eGridDiv, eGui) {\n        var _this = this;\n        this.view = view;\n        this.eGridHostDiv = eGridDiv;\n        this.eGui = eGui;\n        this.mouseEventService.stampTopLevelGridCompWithGridInstance(eGridDiv);\n        this.createManagedBean(new LayoutFeature(this.view));\n        // important to set rtl before doLayout, as setting the RTL class impacts the scroll position,\n        // which doLayout indirectly depends on\n        this.addRtlSupport();\n        this.addManagedListener(this, Events.EVENT_KEYBOARD_FOCUS, function () {\n            _this.view.addOrRemoveKeyboardFocusClass(true);\n        });\n        this.addManagedListener(this, Events.EVENT_MOUSE_FOCUS, function () {\n            _this.view.addOrRemoveKeyboardFocusClass(false);\n        });\n        var unsubscribeFromResize = this.resizeObserverService.observeResize(this.eGridHostDiv, this.onGridSizeChanged.bind(this));\n        this.addDestroyFunc(function () { return unsubscribeFromResize(); });\n        this.ctrlsService.registerGridCtrl(this);\n    };\n    GridCtrl.prototype.isDetailGrid = function () {\n        var _a, _b;\n        var el = this.focusService.findTabbableParent(this.getGui());\n        return ((_b = (_a = el) === null || _a === void 0 ? void 0 : _a.getAttribute('row-id')) === null || _b === void 0 ? void 0 : _b.startsWith('detail')) || false;\n    };\n    GridCtrl.prototype.showDropZones = function () {\n        return ModuleRegistry.isRegistered(exports.ModuleNames.RowGroupingModule);\n    };\n    GridCtrl.prototype.showSideBar = function () {\n        return ModuleRegistry.isRegistered(exports.ModuleNames.SideBarModule);\n    };\n    GridCtrl.prototype.showStatusBar = function () {\n        return ModuleRegistry.isRegistered(exports.ModuleNames.StatusBarModule);\n    };\n    GridCtrl.prototype.showWatermark = function () {\n        return ModuleRegistry.isRegistered(exports.ModuleNames.EnterpriseCoreModule);\n    };\n    GridCtrl.prototype.onGridSizeChanged = function () {\n        var event = {\n            type: Events.EVENT_GRID_SIZE_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            clientWidth: this.eGridHostDiv.clientWidth,\n            clientHeight: this.eGridHostDiv.clientHeight\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    GridCtrl.prototype.addRtlSupport = function () {\n        var cssClass = this.gridOptionsWrapper.isEnableRtl() ? 'ag-rtl' : 'ag-ltr';\n        this.view.setRtlClass(cssClass);\n    };\n    GridCtrl.prototype.destroyGridUi = function () {\n        this.view.destroyGridUi();\n    };\n    GridCtrl.prototype.getGui = function () {\n        return this.eGui;\n    };\n    GridCtrl.prototype.setResizeCursor = function (on) {\n        this.view.setCursor(on ? 'ew-resize' : null);\n    };\n    GridCtrl.prototype.disableUserSelect = function (on) {\n        this.view.setUserSelect(on ? 'none' : null);\n    };\n    GridCtrl.prototype.focusNextInnerContainer = function (backwards) {\n        var eDocument = this.gridOptionsWrapper.getDocument();\n        var focusableContainers = this.view.getFocusableContainers();\n        var idxWithFocus = focusableContainers.findIndex(function (container) { return container.contains(eDocument.activeElement); });\n        var nextIdx = idxWithFocus + (backwards ? -1 : 1);\n        if (nextIdx <= 0 || nextIdx >= focusableContainers.length) {\n            return false;\n        }\n        return this.focusService.focusInto(focusableContainers[nextIdx]);\n    };\n    GridCtrl.prototype.focusInnerElement = function (fromBottom) {\n        var focusableContainers = this.view.getFocusableContainers();\n        if (fromBottom) {\n            if (focusableContainers.length > 1) {\n                return this.focusService.focusInto(last(focusableContainers), true);\n            }\n            var lastColumn = last(this.columnModel.getAllDisplayedColumns());\n            if (this.focusService.focusGridView(lastColumn, true)) {\n                return true;\n            }\n        }\n        return this.focusService.focusFirstHeader();\n    };\n    GridCtrl.prototype.forceFocusOutOfContainer = function (up) {\n        if (up === void 0) { up = false; }\n        this.view.forceFocusOutOfContainer(up);\n    };\n    __decorate$1W([\n        Autowired('columnApi')\n    ], GridCtrl.prototype, \"columnApi\", void 0);\n    __decorate$1W([\n        Autowired('gridApi')\n    ], GridCtrl.prototype, \"gridApi\", void 0);\n    __decorate$1W([\n        Autowired('focusService')\n    ], GridCtrl.prototype, \"focusService\", void 0);\n    __decorate$1W([\n        Autowired('resizeObserverService')\n    ], GridCtrl.prototype, \"resizeObserverService\", void 0);\n    __decorate$1W([\n        Autowired('columnModel')\n    ], GridCtrl.prototype, \"columnModel\", void 0);\n    __decorate$1W([\n        Autowired('ctrlsService')\n    ], GridCtrl.prototype, \"ctrlsService\", void 0);\n    __decorate$1W([\n        Autowired('mouseEventService')\n    ], GridCtrl.prototype, \"mouseEventService\", void 0);\n    return GridCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2g = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1X = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar GridComp = /** @class */ (function (_super) {\n    __extends$2g(GridComp, _super);\n    function GridComp(eGridDiv) {\n        var _this = _super.call(this, undefined) || this;\n        _this.eGridDiv = eGridDiv;\n        return _this;\n    }\n    GridComp.prototype.postConstruct = function () {\n        var _this = this;\n        this.logger = this.loggerFactory.create('GridComp');\n        var compProxy = {\n            destroyGridUi: function () { return _this.destroyBean(_this); },\n            setRtlClass: function (cssClass) { return _this.addCssClass(cssClass); },\n            addOrRemoveKeyboardFocusClass: function (addOrRemove) { return _this.addOrRemoveCssClass(FocusService.AG_KEYBOARD_FOCUS, addOrRemove); },\n            forceFocusOutOfContainer: this.forceFocusOutOfContainer.bind(this),\n            updateLayoutClasses: this.updateLayoutClasses.bind(this),\n            getFocusableContainers: this.getFocusableContainers.bind(this),\n            setUserSelect: function (value) {\n                _this.getGui().style.userSelect = value != null ? value : '';\n                _this.getGui().style.webkitUserSelect = value != null ? value : '';\n            },\n            setCursor: function (value) {\n                _this.getGui().style.cursor = value != null ? value : '';\n            }\n        };\n        this.ctrl = this.createManagedBean(new GridCtrl());\n        var template = this.createTemplate();\n        this.setTemplate(template);\n        this.ctrl.setComp(compProxy, this.eGridDiv, this.getGui());\n        this.insertGridIntoDom();\n        this.initialiseTabGuard({\n            // we want to override the default behaviour to do nothing for onTabKeyDown\n            onTabKeyDown: function () { return undefined; },\n            focusInnerElement: function (fromBottom) { return _this.ctrl.focusInnerElement(fromBottom); }\n        });\n    };\n    GridComp.prototype.insertGridIntoDom = function () {\n        var _this = this;\n        var eGui = this.getGui();\n        this.eGridDiv.appendChild(eGui);\n        this.addDestroyFunc(function () {\n            _this.eGridDiv.removeChild(eGui);\n            _this.logger.log('Grid removed from DOM');\n        });\n    };\n    GridComp.prototype.updateLayoutClasses = function (cssClass, params) {\n        var eRootWrapperBodyClassList = this.eRootWrapperBody.classList;\n        eRootWrapperBodyClassList.toggle(exports.LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n        eRootWrapperBodyClassList.toggle(exports.LayoutCssClasses.NORMAL, params.normal);\n        eRootWrapperBodyClassList.toggle(exports.LayoutCssClasses.PRINT, params.print);\n        this.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n        this.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL, params.normal);\n        this.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT, params.print);\n    };\n    GridComp.prototype.createTemplate = function () {\n        var dropZones = this.ctrl.showDropZones() ? '<ag-grid-header-drop-zones></ag-grid-header-drop-zones>' : '';\n        var sideBar = this.ctrl.showSideBar() ? '<ag-side-bar ref=\"sideBar\"></ag-side-bar>' : '';\n        var statusBar = this.ctrl.showStatusBar() ? '<ag-status-bar ref=\"statusBar\"></ag-status-bar>' : '';\n        var watermark = this.ctrl.showWatermark() ? '<ag-watermark></ag-watermark>' : '';\n        var template = /* html */ \"<div class=\\\"ag-root-wrapper\\\">\\n                \" + dropZones + \"\\n                <div class=\\\"ag-root-wrapper-body\\\" ref=\\\"rootWrapperBody\\\">\\n                    <ag-grid-body ref=\\\"gridBody\\\"></ag-grid-body>\\n                    \" + sideBar + \"\\n                </div>\\n                \" + statusBar + \"\\n                <ag-pagination></ag-pagination>\\n                \" + watermark + \"\\n            </div>\";\n        return template;\n    };\n    GridComp.prototype.getFocusableElement = function () {\n        return this.eRootWrapperBody;\n    };\n    GridComp.prototype.getFocusableContainers = function () {\n        var focusableContainers = [\n            this.gridBodyComp.getGui()\n        ];\n        if (this.sideBarComp) {\n            focusableContainers.push(this.sideBarComp.getGui());\n        }\n        return focusableContainers.filter(function (el) { return isVisible(el); });\n    };\n    __decorate$1X([\n        Autowired('loggerFactory')\n    ], GridComp.prototype, \"loggerFactory\", void 0);\n    __decorate$1X([\n        RefSelector('gridBody')\n    ], GridComp.prototype, \"gridBodyComp\", void 0);\n    __decorate$1X([\n        RefSelector('sideBar')\n    ], GridComp.prototype, \"sideBarComp\", void 0);\n    __decorate$1X([\n        RefSelector('rootWrapperBody')\n    ], GridComp.prototype, \"eRootWrapperBody\", void 0);\n    __decorate$1X([\n        PostConstruct\n    ], GridComp.prototype, \"postConstruct\", null);\n    return GridComp;\n}(TabGuardComp));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2h = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1Y = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SortController = /** @class */ (function (_super) {\n    __extends$2h(SortController, _super);\n    function SortController() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SortController_1 = SortController;\n    SortController.prototype.progressSort = function (column, multiSort, source) {\n        var nextDirection = this.getNextSortDirection(column);\n        this.setSortForColumn(column, nextDirection, multiSort, source);\n    };\n    SortController.prototype.setSortForColumn = function (column, sort, multiSort, source) {\n        // auto correct - if sort not legal value, then set it to 'no sort' (which is null)\n        if (sort !== Constants.SORT_ASC && sort !== Constants.SORT_DESC) {\n            sort = null;\n        }\n        // update sort on current col\n        column.setSort(sort, source);\n        var doingMultiSort = (multiSort || this.gridOptionsWrapper.isAlwaysMultiSort()) && !this.gridOptionsWrapper.isSuppressMultiSort();\n        // clear sort on all columns except this one, and update the icons\n        if (!doingMultiSort) {\n            this.clearSortBarThisColumn(column, source);\n        }\n        // sortIndex used for knowing order of cols when multi-col sort\n        this.updateSortIndex(column);\n        this.dispatchSortChangedEvents(source);\n    };\n    SortController.prototype.updateSortIndex = function (lastColToChange) {\n        // update sortIndex on all sorting cols\n        var allSortedCols = this.getColumnsWithSortingOrdered();\n        var sortIndex = 0;\n        allSortedCols.forEach(function (col) {\n            if (col !== lastColToChange) {\n                col.setSortIndex(sortIndex);\n                sortIndex++;\n            }\n        });\n        // last col to change always gets the last sort index, it's added to the end\n        if (lastColToChange.getSort()) {\n            lastColToChange.setSortIndex(sortIndex);\n        }\n        // clear sort index on all cols not sorting\n        var allCols = this.columnModel.getPrimaryAndSecondaryAndAutoColumns();\n        allCols.filter(function (col) { return col.getSort() == null; }).forEach(function (col) { return col.setSortIndex(); });\n    };\n    // gets called by API, so if data changes, use can call this, which will end up\n    // working out the sort order again of the rows.\n    SortController.prototype.onSortChanged = function (source) {\n        this.dispatchSortChangedEvents(source);\n    };\n    SortController.prototype.isSortActive = function () {\n        // pull out all the columns that have sorting set\n        var allCols = this.columnModel.getPrimaryAndSecondaryAndAutoColumns();\n        var sortedCols = allCols.filter(function (column) { return !!column.getSort(); });\n        return sortedCols && sortedCols.length > 0;\n    };\n    SortController.prototype.dispatchSortChangedEvents = function (source) {\n        var event = {\n            type: Events.EVENT_SORT_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            source: source\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    SortController.prototype.clearSortBarThisColumn = function (columnToSkip, source) {\n        this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function (columnToClear) {\n            // Do not clear if either holding shift, or if column in question was clicked\n            if (columnToClear !== columnToSkip) {\n                // setting to 'undefined' as null means 'none' rather than cleared, otherwise issue will arise\n                // if sort order is: ['desc', null , 'asc'], as it will start at null rather than 'desc'.\n                columnToClear.setSort(undefined, source);\n            }\n        });\n    };\n    SortController.prototype.getNextSortDirection = function (column) {\n        var sortingOrder;\n        if (column.getColDef().sortingOrder) {\n            sortingOrder = column.getColDef().sortingOrder;\n        }\n        else if (this.gridOptionsWrapper.getSortingOrder()) {\n            sortingOrder = this.gridOptionsWrapper.getSortingOrder();\n        }\n        else {\n            sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;\n        }\n        if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {\n            console.warn(\"AG Grid: sortingOrder must be an array with at least one element, currently it's \" + sortingOrder);\n            return null;\n        }\n        var currentIndex = sortingOrder.indexOf(column.getSort());\n        var notInArray = currentIndex < 0;\n        var lastItemInArray = currentIndex == sortingOrder.length - 1;\n        var result;\n        if (notInArray || lastItemInArray) {\n            result = sortingOrder[0];\n        }\n        else {\n            result = sortingOrder[currentIndex + 1];\n        }\n        // verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid\n        if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {\n            console.warn('AG Grid: invalid sort type ' + result);\n            return null;\n        }\n        return result;\n    };\n    SortController.prototype.getColumnsWithSortingOrdered = function () {\n        // pull out all the columns that have sorting set\n        var allColumnsIncludingAuto = this.columnModel.getPrimaryAndSecondaryAndAutoColumns();\n        var columnsWithSorting = allColumnsIncludingAuto.filter(function (column) { return !!column.getSort(); });\n        // when both cols are missing sortIndex, we use the position of the col in all cols list.\n        // this means if colDefs only have sort, but no sortIndex, we deterministically pick which\n        // cols is sorted by first.\n        var allColsIndexes = {};\n        allColumnsIncludingAuto.forEach(function (col, index) { return allColsIndexes[col.getId()] = index; });\n        // put the columns in order of which one got sorted first\n        columnsWithSorting.sort(function (a, b) {\n            var iA = a.getSortIndex();\n            var iB = b.getSortIndex();\n            if (iA != null && iB != null) {\n                return iA - iB; // both present, normal comparison\n            }\n            else if (iA == null && iB == null) {\n                // both missing, compare using column positions\n                var posA = allColsIndexes[a.getId()];\n                var posB = allColsIndexes[b.getId()];\n                return posA > posB ? 1 : -1;\n            }\n            else if (iB == null) {\n                return -1; // iB missing\n            }\n            else {\n                return 1; // iA missing\n            }\n        });\n        return columnsWithSorting;\n    };\n    // used by server side row models, to sent sort to server\n    SortController.prototype.getSortModel = function () {\n        return this.getColumnsWithSortingOrdered().map(function (column) { return ({\n            sort: column.getSort(),\n            colId: column.getId()\n        }); });\n    };\n    SortController.prototype.getSortOptions = function () {\n        return this.getColumnsWithSortingOrdered().map(function (column) { return ({\n            sort: column.getSort(),\n            column: column\n        }); });\n    };\n    var SortController_1;\n    SortController.DEFAULT_SORTING_ORDER = [Constants.SORT_ASC, Constants.SORT_DESC, null];\n    __decorate$1Y([\n        Autowired('columnModel')\n    ], SortController.prototype, \"columnModel\", void 0);\n    __decorate$1Y([\n        Autowired('columnApi')\n    ], SortController.prototype, \"columnApi\", void 0);\n    __decorate$1Y([\n        Autowired('gridApi')\n    ], SortController.prototype, \"gridApi\", void 0);\n    SortController = SortController_1 = __decorate$1Y([\n        Bean('sortController')\n    ], SortController);\n    return SortController;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2i = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1Z = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ColumnHoverService = /** @class */ (function (_super) {\n    __extends$2i(ColumnHoverService, _super);\n    function ColumnHoverService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ColumnHoverService.prototype.setMouseOver = function (columns) {\n        this.selectedColumns = columns;\n        var event = {\n            type: Events.EVENT_COLUMN_HOVER_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnHoverService.prototype.clearMouseOver = function () {\n        this.selectedColumns = null;\n        var event = {\n            type: Events.EVENT_COLUMN_HOVER_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ColumnHoverService.prototype.isHovered = function (column) {\n        return !!this.selectedColumns && this.selectedColumns.indexOf(column) >= 0;\n    };\n    __decorate$1Z([\n        Autowired('columnApi')\n    ], ColumnHoverService.prototype, \"columnApi\", void 0);\n    __decorate$1Z([\n        Autowired('gridApi')\n    ], ColumnHoverService.prototype, \"gridApi\", void 0);\n    ColumnHoverService = __decorate$1Z([\n        Bean('columnHoverService')\n    ], ColumnHoverService);\n    return ColumnHoverService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2j = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1_ = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ColumnAnimationService = /** @class */ (function (_super) {\n    __extends$2j(ColumnAnimationService, _super);\n    function ColumnAnimationService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.executeNextFuncs = [];\n        _this.executeLaterFuncs = [];\n        _this.active = false;\n        _this.animationThreadCount = 0;\n        return _this;\n    }\n    ColumnAnimationService.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) { return _this.gridBodyCtrl = p.gridBodyCtrl; });\n    };\n    ColumnAnimationService.prototype.isActive = function () {\n        return this.active;\n    };\n    ColumnAnimationService.prototype.start = function () {\n        if (this.active) {\n            return;\n        }\n        if (this.gridOptionsWrapper.isSuppressColumnMoveAnimation()) {\n            return;\n        }\n        // if doing RTL, we don't animate open / close as due to how the pixels are inverted,\n        // the animation moves all the row the the right rather than to the left (ie it's the static\n        // columns that actually get their coordinates updated)\n        if (this.gridOptionsWrapper.isEnableRtl()) {\n            return;\n        }\n        this.ensureAnimationCssClassPresent();\n        this.active = true;\n    };\n    ColumnAnimationService.prototype.finish = function () {\n        if (!this.active) {\n            return;\n        }\n        this.flush();\n        this.active = false;\n    };\n    ColumnAnimationService.prototype.executeNextVMTurn = function (func) {\n        if (this.active) {\n            this.executeNextFuncs.push(func);\n        }\n        else {\n            func();\n        }\n    };\n    ColumnAnimationService.prototype.executeLaterVMTurn = function (func) {\n        if (this.active) {\n            this.executeLaterFuncs.push(func);\n        }\n        else {\n            func();\n        }\n    };\n    ColumnAnimationService.prototype.ensureAnimationCssClassPresent = function () {\n        var _this = this;\n        // up the count, so we can tell if someone else has updated the count\n        // by the time the 'wait' func executes\n        this.animationThreadCount++;\n        var animationThreadCountCopy = this.animationThreadCount;\n        this.gridBodyCtrl.setColumnMovingCss(true);\n        this.executeLaterFuncs.push(function () {\n            // only remove the class if this thread was the last one to update it\n            if (_this.animationThreadCount === animationThreadCountCopy) {\n                _this.gridBodyCtrl.setColumnMovingCss(false);\n            }\n        });\n    };\n    ColumnAnimationService.prototype.flush = function () {\n        var nowFuncs = this.executeNextFuncs;\n        this.executeNextFuncs = [];\n        var waitFuncs = this.executeLaterFuncs;\n        this.executeLaterFuncs = [];\n        if (nowFuncs.length === 0 && waitFuncs.length === 0) {\n            return;\n        }\n        window.setTimeout(function () { return nowFuncs.forEach(function (func) { return func(); }); }, 0);\n        window.setTimeout(function () { return waitFuncs.forEach(function (func) { return func(); }); }, 300);\n    };\n    __decorate$1_([\n        Autowired('ctrlsService')\n    ], ColumnAnimationService.prototype, \"ctrlsService\", void 0);\n    __decorate$1_([\n        PostConstruct\n    ], ColumnAnimationService.prototype, \"postConstruct\", null);\n    ColumnAnimationService = __decorate$1_([\n        Bean('columnAnimationService')\n    ], ColumnAnimationService);\n    return ColumnAnimationService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2k = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$1$ = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AutoGroupColService = /** @class */ (function (_super) {\n    __extends$2k(AutoGroupColService, _super);\n    function AutoGroupColService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    AutoGroupColService_1 = AutoGroupColService;\n    AutoGroupColService.prototype.createAutoGroupColumns = function (existingCols, rowGroupColumns) {\n        var _this = this;\n        var groupAutoColumns = [];\n        var doingTreeData = this.gridOptionsWrapper.isTreeData();\n        var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();\n        if (doingTreeData && doingMultiAutoColumn) {\n            console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');\n            doingMultiAutoColumn = false;\n        }\n        // if doing groupMultiAutoColumn, then we call the method multiple times, once\n        // for each column we are grouping by\n        if (doingMultiAutoColumn) {\n            rowGroupColumns.forEach(function (rowGroupCol, index) {\n                groupAutoColumns.push(_this.createOneAutoGroupColumn(existingCols, rowGroupCol, index));\n            });\n        }\n        else {\n            groupAutoColumns.push(this.createOneAutoGroupColumn(existingCols));\n        }\n        return groupAutoColumns;\n    };\n    // rowGroupCol and index are missing if groupMultiAutoColumn=false\n    AutoGroupColService.prototype.createOneAutoGroupColumn = function (existingCols, rowGroupCol, index) {\n        // if one provided by user, use it, otherwise create one\n        var defaultAutoColDef = this.generateDefaultColDef(rowGroupCol);\n        // if doing multi, set the field\n        var colId;\n        if (rowGroupCol) {\n            colId = Constants.GROUP_AUTO_COLUMN_ID + \"-\" + rowGroupCol.getId();\n        }\n        else {\n            colId = AutoGroupColService_1.GROUP_AUTO_COLUMN_BUNDLE_ID;\n        }\n        var userAutoColDef = this.gridOptionsWrapper.getAutoGroupColumnDef();\n        mergeDeep(defaultAutoColDef, userAutoColDef);\n        defaultAutoColDef = this.columnFactory.mergeColDefs(defaultAutoColDef);\n        defaultAutoColDef.colId = colId;\n        // For tree data the filter is always allowed\n        if (!this.gridOptionsWrapper.isTreeData()) {\n            // we would only allow filter if the user has provided field or value getter. otherwise the filter\n            // would not be able to work.\n            var noFieldOrValueGetter = missing(defaultAutoColDef.field) && missing(defaultAutoColDef.valueGetter) && missing(defaultAutoColDef.filterValueGetter);\n            if (noFieldOrValueGetter) {\n                defaultAutoColDef.filter = false;\n            }\n        }\n        // if showing many cols, we don't want to show more than one with a checkbox for selection\n        if (index && index > 0) {\n            defaultAutoColDef.headerCheckboxSelection = false;\n        }\n        var existingCol = existingCols.find(function (col) { return col.getId() == colId; });\n        if (existingCol) {\n            existingCol.setColDef(defaultAutoColDef, null);\n            this.columnFactory.applyColumnState(existingCol, defaultAutoColDef);\n            return existingCol;\n        }\n        var newCol = new Column(defaultAutoColDef, null, colId, true);\n        this.context.createBean(newCol);\n        return newCol;\n    };\n    AutoGroupColService.prototype.generateDefaultColDef = function (rowGroupCol) {\n        var userDef = this.gridOptionsWrapper.getAutoGroupColumnDef();\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        var res = {\n            headerName: localeTextFunc('group', 'Group')\n        };\n        var userHasProvidedGroupCellRenderer = userDef &&\n            (userDef.cellRenderer || userDef.cellRendererFramework || userDef.cellRendererSelector);\n        // only add the default group cell renderer if user hasn't provided one\n        if (!userHasProvidedGroupCellRenderer) {\n            res.cellRenderer = 'agGroupCellRenderer';\n        }\n        // we never allow moving the group column\n        // defaultAutoColDef.suppressMovable = true;\n        if (rowGroupCol) {\n            var colDef = rowGroupCol.getColDef();\n            Object.assign(res, {\n                // cellRendererParams.groupKey: colDefToCopy.field;\n                headerName: this.columnModel.getDisplayNameForColumn(rowGroupCol, 'header'),\n                headerValueGetter: colDef.headerValueGetter\n            });\n            if (colDef.cellRenderer || colDef.cellRendererFramework) {\n                Object.assign(res, {\n                    cellRendererParams: {\n                        innerRenderer: colDef.cellRenderer,\n                        innerRendererFramework: colDef.cellRendererFramework,\n                        innerRendererParams: colDef.cellRendererParams\n                    }\n                });\n            }\n            res.showRowGroup = rowGroupCol.getColId();\n        }\n        else {\n            res.showRowGroup = true;\n        }\n        return res;\n    };\n    var AutoGroupColService_1;\n    AutoGroupColService.GROUP_AUTO_COLUMN_BUNDLE_ID = Constants.GROUP_AUTO_COLUMN_ID;\n    __decorate$1$([\n        Autowired('columnModel')\n    ], AutoGroupColService.prototype, \"columnModel\", void 0);\n    __decorate$1$([\n        Autowired('columnFactory')\n    ], AutoGroupColService.prototype, \"columnFactory\", void 0);\n    AutoGroupColService = AutoGroupColService_1 = __decorate$1$([\n        Bean('autoGroupColService')\n    ], AutoGroupColService);\n    return AutoGroupColService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2l = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$20 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PaginationAutoPageSizeService = /** @class */ (function (_super) {\n    __extends$2l(PaginationAutoPageSizeService, _super);\n    function PaginationAutoPageSizeService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    PaginationAutoPageSizeService.prototype.postConstruct = function () {\n        var _this = this;\n        this.ctrlsService.whenReady(function (p) {\n            _this.centerRowContainerCon = p.centerRowContainerCtrl;\n            _this.addManagedListener(_this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, _this.onBodyHeightChanged.bind(_this));\n            _this.addManagedListener(_this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, _this.onScrollVisibilityChanged.bind(_this));\n            _this.checkPageSize();\n        });\n    };\n    PaginationAutoPageSizeService.prototype.notActive = function () {\n        return !this.gridOptionsWrapper.isPaginationAutoPageSize();\n    };\n    PaginationAutoPageSizeService.prototype.onScrollVisibilityChanged = function () {\n        this.checkPageSize();\n    };\n    PaginationAutoPageSizeService.prototype.onBodyHeightChanged = function () {\n        this.checkPageSize();\n    };\n    PaginationAutoPageSizeService.prototype.checkPageSize = function () {\n        if (this.notActive()) {\n            return;\n        }\n        var rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n        var bodyHeight = this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();\n        if (bodyHeight > 0) {\n            var newPageSize = Math.floor(bodyHeight / rowHeight);\n            this.gridOptionsWrapper.setProperty('paginationPageSize', newPageSize);\n        }\n    };\n    __decorate$20([\n        Autowired('ctrlsService')\n    ], PaginationAutoPageSizeService.prototype, \"ctrlsService\", void 0);\n    __decorate$20([\n        PostConstruct\n    ], PaginationAutoPageSizeService.prototype, \"postConstruct\", null);\n    PaginationAutoPageSizeService = __decorate$20([\n        Bean('paginationAutoPageSizeService')\n    ], PaginationAutoPageSizeService);\n    return PaginationAutoPageSizeService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2m = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$21 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ValueCache = /** @class */ (function (_super) {\n    __extends$2m(ValueCache, _super);\n    function ValueCache() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.cacheVersion = 0;\n        return _this;\n    }\n    ValueCache.prototype.init = function () {\n        this.active = this.gridOptionsWrapper.isValueCache();\n        this.neverExpires = this.gridOptionsWrapper.isValueCacheNeverExpires();\n    };\n    ValueCache.prototype.onDataChanged = function () {\n        if (this.neverExpires) {\n            return;\n        }\n        this.expire();\n    };\n    ValueCache.prototype.expire = function () {\n        this.cacheVersion++;\n    };\n    ValueCache.prototype.setValue = function (rowNode, colId, value) {\n        if (this.active) {\n            if (rowNode.__cacheVersion !== this.cacheVersion) {\n                rowNode.__cacheVersion = this.cacheVersion;\n                rowNode.__cacheData = {};\n            }\n            rowNode.__cacheData[colId] = value;\n        }\n    };\n    ValueCache.prototype.getValue = function (rowNode, colId) {\n        if (!this.active || rowNode.__cacheVersion !== this.cacheVersion) {\n            return undefined;\n        }\n        return rowNode.__cacheData[colId];\n    };\n    __decorate$21([\n        PostConstruct\n    ], ValueCache.prototype, \"init\", null);\n    ValueCache = __decorate$21([\n        Bean('valueCache')\n    ], ValueCache);\n    return ValueCache;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2n = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$22 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ChangeDetectionService = /** @class */ (function (_super) {\n    __extends$2n(ChangeDetectionService, _super);\n    function ChangeDetectionService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ChangeDetectionService.prototype.init = function () {\n        if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            this.clientSideRowModel = this.rowModel;\n        }\n        this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged.bind(this));\n    };\n    ChangeDetectionService.prototype.onCellValueChanged = function (event) {\n        // Clipboard service manages its own change detection, so no need to do it here.\n        // The clipboard manages its own as otherwise this would happen once for every cell\n        // that got updated as part of a paste operation, so e.g. if 100 cells in a paste operation,\n        // this doChangeDetection would get called 100 times (once for each cell), instead clipboard\n        // service executes the logic we have here once (in essence batching up all cell changes\n        // into one change detection).\n        if (event.source === Constants.SOURCE_PASTE) {\n            return;\n        }\n        this.doChangeDetection(event.node, event.column);\n    };\n    ChangeDetectionService.prototype.doChangeDetection = function (rowNode, column) {\n        if (this.gridOptionsWrapper.isSuppressChangeDetection()) {\n            return;\n        }\n        // step 1 of change detection is to update the aggregated values\n        if (this.clientSideRowModel && !rowNode.isRowPinned()) {\n            var onlyChangedColumns = this.gridOptionsWrapper.isAggregateOnlyChangedColumns();\n            var changedPath = new ChangedPath(onlyChangedColumns, this.clientSideRowModel.getRootNode());\n            changedPath.addParentNode(rowNode.parent, [column]);\n            this.clientSideRowModel.doAggregate(changedPath);\n        }\n        // step 2 of change detection is to refresh the cells\n        this.rowRenderer.refreshCells();\n    };\n    __decorate$22([\n        Autowired('rowModel')\n    ], ChangeDetectionService.prototype, \"rowModel\", void 0);\n    __decorate$22([\n        Autowired('rowRenderer')\n    ], ChangeDetectionService.prototype, \"rowRenderer\", void 0);\n    __decorate$22([\n        PostConstruct\n    ], ChangeDetectionService.prototype, \"init\", null);\n    ChangeDetectionService = __decorate$22([\n        Bean('changeDetectionService')\n    ], ChangeDetectionService);\n    return ChangeDetectionService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2o = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$23 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar AgComponentUtils = /** @class */ (function (_super) {\n    __extends$2o(AgComponentUtils, _super);\n    function AgComponentUtils() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    AgComponentUtils.prototype.adaptFunction = function (propertyName, jsCompFunc) {\n        var metadata = this.componentMetadataProvider.retrieve(propertyName);\n        if (metadata && metadata.functionAdapter) {\n            return metadata.functionAdapter(jsCompFunc);\n        }\n        return null;\n    };\n    AgComponentUtils.prototype.adaptCellRendererFunction = function (callback) {\n        var Adapter = /** @class */ (function () {\n            function Adapter() {\n            }\n            Adapter.prototype.refresh = function (params) {\n                return false;\n            };\n            Adapter.prototype.getGui = function () {\n                return this.eGui;\n            };\n            Adapter.prototype.init = function (params) {\n                var callbackResult = callback(params);\n                var type = typeof callbackResult;\n                if (type === 'string' || type === 'number' || type === 'boolean') {\n                    this.eGui = loadTemplate('<span>' + callbackResult + '</span>');\n                    return;\n                }\n                if (callbackResult == null) {\n                    this.eGui = loadTemplate('<span></span>');\n                    return;\n                }\n                this.eGui = callbackResult;\n            };\n            return Adapter;\n        }());\n        return Adapter;\n    };\n    AgComponentUtils.prototype.doesImplementIComponent = function (candidate) {\n        if (!candidate) {\n            return false;\n        }\n        return candidate.prototype && 'getGui' in candidate.prototype;\n    };\n    __decorate$23([\n        Autowired(\"componentMetadataProvider\")\n    ], AgComponentUtils.prototype, \"componentMetadataProvider\", void 0);\n    AgComponentUtils = __decorate$23([\n        Bean(\"agComponentUtils\")\n    ], AgComponentUtils);\n    return AgComponentUtils;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2p = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$24 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ComponentMetadataProvider = /** @class */ (function (_super) {\n    __extends$2p(ComponentMetadataProvider, _super);\n    function ComponentMetadataProvider() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ComponentMetadataProvider.prototype.postConstruct = function () {\n        this.componentMetaData = {\n            dateComponent: {\n                mandatoryMethodList: ['getDate', 'setDate'],\n                optionalMethodList: ['afterGuiAttached', 'setInputPlaceholder', 'setInputAriaLabel']\n            },\n            detailCellRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            headerComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh']\n            },\n            headerGroupComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            },\n            loadingCellRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            },\n            loadingOverlayComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            },\n            noRowsOverlayComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            },\n            floatingFilterComponent: {\n                mandatoryMethodList: ['onParentModelChanged'],\n                optionalMethodList: ['afterGuiAttached']\n            },\n            floatingFilterWrapperComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            },\n            cellRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh', 'afterGuiAttached'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            cellEditor: {\n                mandatoryMethodList: ['getValue'],\n                optionalMethodList: ['isPopup', 'isCancelBeforeStart', 'isCancelAfterEnd', 'getPopupPosition', 'focusIn', 'focusOut', 'afterGuiAttached']\n            },\n            innerRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['afterGuiAttached'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            fullWidthCellRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh', 'afterGuiAttached'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            pinnedRowCellRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh', 'afterGuiAttached'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            groupRowRenderer: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['afterGuiAttached'],\n                functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n            },\n            filter: {\n                mandatoryMethodList: ['isFilterActive', 'doesFilterPass', 'getModel', 'setModel'],\n                optionalMethodList: ['afterGuiAttached', 'onNewRowsLoaded', 'getModelAsString', 'onFloatingFilterChanged']\n            },\n            filterComponent: {\n                mandatoryMethodList: ['isFilterActive', 'doesFilterPass', 'getModel', 'setModel'],\n                optionalMethodList: ['afterGuiAttached', 'onNewRowsLoaded', 'getModelAsString', 'onFloatingFilterChanged']\n            },\n            statusPanel: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['afterGuiAttached'],\n            },\n            toolPanel: {\n                mandatoryMethodList: [],\n                optionalMethodList: ['refresh', 'afterGuiAttached']\n            },\n            tooltipComponent: {\n                mandatoryMethodList: [],\n                optionalMethodList: []\n            }\n        };\n    };\n    ComponentMetadataProvider.prototype.retrieve = function (name) {\n        return this.componentMetaData[name];\n    };\n    __decorate$24([\n        Autowired(\"agComponentUtils\")\n    ], ComponentMetadataProvider.prototype, \"agComponentUtils\", void 0);\n    __decorate$24([\n        PostConstruct\n    ], ComponentMetadataProvider.prototype, \"postConstruct\", null);\n    ComponentMetadataProvider = __decorate$24([\n        Bean(\"componentMetadataProvider\")\n    ], ComponentMetadataProvider);\n    return ComponentMetadataProvider;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$25 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar MAT_GRID_SIZE = 8;\nvar BASE_GRID_SIZE = 4;\nvar BALHAM_GRID_SIZE = 4;\nvar ALPINE_GRID_SIZE = 6;\nvar HARD_CODED_SIZES = {\n    // this item is required for custom themes\n    'ag-theme-custom': {\n        headerHeight: 25,\n        headerCellMinWidth: 24,\n        listItemHeight: BASE_GRID_SIZE * 5,\n        rowHeight: 25,\n        chartMenuPanelWidth: 220\n    },\n    'ag-theme-material': {\n        headerHeight: MAT_GRID_SIZE * 7,\n        headerCellMinWidth: 48,\n        listItemHeight: MAT_GRID_SIZE * 4,\n        rowHeight: MAT_GRID_SIZE * 6,\n        chartMenuPanelWidth: 240\n    },\n    'ag-theme-balham': {\n        headerHeight: BALHAM_GRID_SIZE * 8,\n        headerCellMinWidth: 24,\n        listItemHeight: BALHAM_GRID_SIZE * 6,\n        rowHeight: BALHAM_GRID_SIZE * 7,\n        chartMenuPanelWidth: 220\n    },\n    'ag-theme-alpine': {\n        headerHeight: ALPINE_GRID_SIZE * 8,\n        headerCellMinWidth: 36,\n        listItemHeight: ALPINE_GRID_SIZE * 4,\n        rowHeight: ALPINE_GRID_SIZE * 7,\n        chartMenuPanelWidth: 240\n    }\n};\n/**\n * this object contains a list of Sass variables and an array\n * of CSS styles required to get the correct value.\n * eg. $virtual-item-height requires a structure, so we can get its height.\n * <div class=\"ag-theme-balham\">\n *     <div class=\"ag-virtual-list-container\">\n *         <div class=\"ag-virtual-list-item\"></div>\n *     </div>\n * </div>\n */\nvar SASS_PROPERTY_BUILDER = {\n    headerHeight: ['ag-header-row'],\n    headerCellMinWidth: ['ag-header-cell'],\n    listItemHeight: ['ag-virtual-list-item'],\n    rowHeight: ['ag-row'],\n    chartMenuPanelWidth: ['ag-chart-docked-container']\n};\nvar CALCULATED_SIZES = {};\nvar Environment = /** @class */ (function (_super) {\n    __extends$2q(Environment, _super);\n    function Environment() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    Environment.prototype.getSassVariable = function (theme, key) {\n        var useTheme = 'ag-theme-' + (theme.match('material') ? 'material' : theme.match('balham') ? 'balham' : theme.match('alpine') ? 'alpine' : 'custom');\n        var defaultValue = HARD_CODED_SIZES[useTheme][key];\n        var calculatedValue = 0;\n        if (!CALCULATED_SIZES[theme]) {\n            CALCULATED_SIZES[theme] = {};\n        }\n        var size = CALCULATED_SIZES[theme][key];\n        if (size != null) {\n            return size;\n        }\n        if (SASS_PROPERTY_BUILDER[key]) {\n            var classList = SASS_PROPERTY_BUILDER[key];\n            var div = document.createElement('div');\n            div.classList.add(theme);\n            div.style.position = 'absolute';\n            var el = classList.reduce(function (prevEl, currentClass) {\n                var currentDiv = document.createElement('div');\n                currentDiv.style.position = 'static';\n                currentDiv.classList.add(currentClass);\n                prevEl.appendChild(currentDiv);\n                return currentDiv;\n            }, div);\n            if (document.body) {\n                document.body.appendChild(div);\n                var sizeName = key.toLowerCase().indexOf('height') !== -1 ? 'height' : 'width';\n                calculatedValue = parseInt(window.getComputedStyle(el)[sizeName], 10);\n                document.body.removeChild(div);\n            }\n        }\n        CALCULATED_SIZES[theme][key] = calculatedValue || defaultValue;\n        return CALCULATED_SIZES[theme][key];\n    };\n    Environment.prototype.isThemeDark = function () {\n        var theme = this.getTheme().theme;\n        return !!theme && theme.indexOf('dark') >= 0;\n    };\n    Environment.prototype.chartMenuPanelWidth = function () {\n        var theme = this.getTheme().themeFamily;\n        return this.getSassVariable(theme, 'chartMenuPanelWidth');\n    };\n    Environment.prototype.getTheme = function () {\n        var reg = /\\bag-(material|(?:theme-([\\w\\-]*)))\\b/;\n        var el = this.eGridDiv;\n        var themeMatch = null;\n        while (el) {\n            themeMatch = reg.exec(el.className);\n            if (!themeMatch) {\n                el = el.parentElement || undefined;\n            }\n            else {\n                break;\n            }\n        }\n        if (!themeMatch) {\n            return {};\n        }\n        var theme = themeMatch[0];\n        var usingOldTheme = themeMatch[2] === undefined;\n        if (usingOldTheme) {\n            var newTheme_1 = theme.replace('ag-', 'ag-theme-');\n            doOnce(function () { return console.warn(\"AG Grid: As of v19 old theme are no longer provided. Please replace \" + theme + \" with \" + newTheme_1 + \".\"); }, 'using-old-theme');\n        }\n        return { theme: theme, el: el, themeFamily: theme.replace(/-dark$/, '') };\n    };\n    __decorate$25([\n        Autowired('eGridDiv')\n    ], Environment.prototype, \"eGridDiv\", void 0);\n    Environment = __decorate$25([\n        Bean('environment')\n    ], Environment);\n    return Environment;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2r = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$26 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$9 = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n/**\n * This class solves the 'max height' problem, where the user might want to show more data than\n * the max div height actually allows.\n */\nvar RowContainerHeightService = /** @class */ (function (_super) {\n    __extends$2r(RowContainerHeightService, _super);\n    function RowContainerHeightService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        // the scrollY position\n        _this.scrollY = 0;\n        // how tall the body is\n        _this.uiBodyHeight = 0;\n        return _this;\n    }\n    RowContainerHeightService.prototype.agWire = function (loggerFactory) {\n        this.logger = loggerFactory.create(\"RowContainerHeightService\");\n    };\n    RowContainerHeightService.prototype.postConstruct = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, this.updateOffset.bind(this));\n        this.maxDivHeight = getMaxDivHeight();\n        this.logger.log('maxDivHeight = ' + this.maxDivHeight);\n    };\n    RowContainerHeightService.prototype.isStretching = function () {\n        return this.stretching;\n    };\n    RowContainerHeightService.prototype.getDivStretchOffset = function () {\n        return this.divStretchOffset;\n    };\n    RowContainerHeightService.prototype.updateOffset = function () {\n        if (!this.stretching) {\n            return;\n        }\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var newScrollY = gridBodyCon.getScrollFeature().getVScrollPosition().top;\n        var newBodyHeight = this.getUiBodyHeight();\n        var atLeastOneChanged = newScrollY !== this.scrollY || newBodyHeight !== this.uiBodyHeight;\n        if (atLeastOneChanged) {\n            this.scrollY = newScrollY;\n            this.uiBodyHeight = newBodyHeight;\n            this.calculateOffset();\n        }\n    };\n    RowContainerHeightService.prototype.calculateOffset = function () {\n        this.setUiContainerHeight(this.maxDivHeight);\n        this.pixelsToShave = this.modelHeight - this.uiContainerHeight;\n        this.maxScrollY = this.uiContainerHeight - this.uiBodyHeight;\n        var scrollPercent = this.scrollY / this.maxScrollY;\n        var divStretchOffset = scrollPercent * this.pixelsToShave;\n        this.logger.log(\"Div Stretch Offset = \" + divStretchOffset + \" (\" + this.pixelsToShave + \" * \" + scrollPercent + \")\");\n        this.setDivStretchOffset(divStretchOffset);\n    };\n    RowContainerHeightService.prototype.setUiContainerHeight = function (height) {\n        if (height !== this.uiContainerHeight) {\n            this.uiContainerHeight = height;\n            this.eventService.dispatchEvent({ type: Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED });\n        }\n    };\n    RowContainerHeightService.prototype.clearOffset = function () {\n        this.setUiContainerHeight(this.modelHeight);\n        this.pixelsToShave = 0;\n        this.setDivStretchOffset(0);\n    };\n    RowContainerHeightService.prototype.setDivStretchOffset = function (newOffset) {\n        // because we are talking pixels, no point in confusing things with half numbers\n        var newOffsetFloor = typeof newOffset === 'number' ? Math.floor(newOffset) : null;\n        if (this.divStretchOffset === newOffsetFloor) {\n            return;\n        }\n        this.divStretchOffset = newOffsetFloor;\n        this.eventService.dispatchEvent({ type: Events.EVENT_HEIGHT_SCALE_CHANGED });\n    };\n    RowContainerHeightService.prototype.setModelHeight = function (modelHeight) {\n        this.modelHeight = modelHeight;\n        this.stretching = modelHeight != null // null happens when in print layout\n            && this.maxDivHeight > 0\n            && modelHeight > this.maxDivHeight;\n        if (this.stretching) {\n            this.calculateOffset();\n        }\n        else {\n            this.clearOffset();\n        }\n    };\n    RowContainerHeightService.prototype.getUiContainerHeight = function () {\n        return this.uiContainerHeight;\n    };\n    RowContainerHeightService.prototype.getRealPixelPosition = function (modelPixel) {\n        return modelPixel - this.divStretchOffset;\n    };\n    RowContainerHeightService.prototype.getUiBodyHeight = function () {\n        var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n        var pos = gridBodyCon.getScrollFeature().getVScrollPosition();\n        return pos.bottom - pos.top;\n    };\n    RowContainerHeightService.prototype.getScrollPositionForPixel = function (rowTop) {\n        if (this.pixelsToShave <= 0) {\n            return rowTop;\n        }\n        var modelMaxScroll = this.modelHeight - this.getUiBodyHeight();\n        var scrollPercent = rowTop / modelMaxScroll;\n        var scrollPixel = this.maxScrollY * scrollPercent;\n        return scrollPixel;\n    };\n    __decorate$26([\n        Autowired('ctrlsService')\n    ], RowContainerHeightService.prototype, \"ctrlsService\", void 0);\n    __decorate$26([\n        __param$9(0, Qualifier(\"loggerFactory\"))\n    ], RowContainerHeightService.prototype, \"agWire\", null);\n    __decorate$26([\n        PostConstruct\n    ], RowContainerHeightService.prototype, \"postConstruct\", null);\n    RowContainerHeightService = __decorate$26([\n        Bean('rowContainerHeightService')\n    ], RowContainerHeightService);\n    return RowContainerHeightService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2s = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$27 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SelectableService = /** @class */ (function (_super) {\n    __extends$2s(SelectableService, _super);\n    function SelectableService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SelectableService.prototype.init = function () {\n        this.groupSelectsChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n        this.isRowSelectableFunc = this.gridOptionsWrapper.getIsRowSelectableFunc();\n    };\n    SelectableService.prototype.updateSelectableAfterGrouping = function (rowNode) {\n        if (this.isRowSelectableFunc) {\n            var nextChildrenFunc = function (node) { return node.childrenAfterGroup; };\n            this.recurseDown(rowNode.childrenAfterGroup, nextChildrenFunc);\n        }\n    };\n    SelectableService.prototype.recurseDown = function (children, nextChildrenFunc) {\n        var _this = this;\n        if (!children) {\n            return;\n        }\n        children.forEach(function (child) {\n            if (!child.group) {\n                return;\n            } // only interested in groups\n            if (child.hasChildren()) {\n                _this.recurseDown(nextChildrenFunc(child), nextChildrenFunc);\n            }\n            var rowSelectable;\n            if (_this.groupSelectsChildren) {\n                // have this group selectable if at least one direct child is selectable\n                var firstSelectable = (nextChildrenFunc(child) || []).find(function (rowNode) { return rowNode.selectable === true; });\n                rowSelectable = exists(firstSelectable);\n            }\n            else {\n                // directly retrieve selectable value from user callback\n                rowSelectable = _this.isRowSelectableFunc ? _this.isRowSelectableFunc(child) : false;\n            }\n            child.setRowSelectable(rowSelectable);\n        });\n    };\n    __decorate$27([\n        PostConstruct\n    ], SelectableService.prototype, \"init\", null);\n    SelectableService = __decorate$27([\n        Bean('selectableService')\n    ], SelectableService);\n    return SelectableService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2t = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$28 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PaginationComp = /** @class */ (function (_super) {\n    __extends$2t(PaginationComp, _super);\n    function PaginationComp() {\n        var _this = _super.call(this) || this;\n        _this.previousAndFirstButtonsDisabled = false;\n        _this.nextButtonDisabled = false;\n        _this.lastButtonDisabled = false;\n        return _this;\n    }\n    PaginationComp.prototype.postConstruct = function () {\n        var _this = this;\n        var isRtl = this.gridOptionsWrapper.isEnableRtl();\n        this.setTemplate(this.getTemplate());\n        this.btFirst.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'last' : 'first', this.gridOptionsWrapper));\n        this.btPrevious.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'next' : 'previous', this.gridOptionsWrapper));\n        this.btNext.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'previous' : 'next', this.gridOptionsWrapper));\n        this.btLast.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'first' : 'last', this.gridOptionsWrapper));\n        var isPaging = this.gridOptionsWrapper.isPagination();\n        var paginationPanelEnabled = isPaging && !this.gridOptionsWrapper.isSuppressPaginationPanel();\n        if (!paginationPanelEnabled) {\n            this.setDisplayed(false);\n            return;\n        }\n        this.addManagedListener(this.eventService, Events.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this));\n        [\n            { el: this.btFirst, fn: this.onBtFirst.bind(this) },\n            { el: this.btPrevious, fn: this.onBtPrevious.bind(this) },\n            { el: this.btNext, fn: this.onBtNext.bind(this) },\n            { el: this.btLast, fn: this.onBtLast.bind(this) }\n        ].forEach(function (item) {\n            var el = item.el, fn = item.fn;\n            _this.addManagedListener(el, 'click', fn);\n            _this.addManagedListener(el, 'keydown', function (e) {\n                if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {\n                    e.preventDefault();\n                    fn();\n                }\n            });\n        });\n        this.onPaginationChanged();\n    };\n    PaginationComp.prototype.onPaginationChanged = function () {\n        this.enableOrDisableButtons();\n        this.updateRowLabels();\n        this.setCurrentPageLabel();\n        this.setTotalLabels();\n    };\n    PaginationComp.prototype.onBtFirst = function () {\n        if (!this.previousAndFirstButtonsDisabled) {\n            this.paginationProxy.goToFirstPage();\n        }\n    };\n    PaginationComp.prototype.setCurrentPageLabel = function () {\n        var pagesExist = this.paginationProxy.getTotalPages() > 0;\n        var currentPage = this.paginationProxy.getCurrentPage();\n        var toDisplay = pagesExist ? currentPage + 1 : 0;\n        this.lbCurrent.innerHTML = this.formatNumber(toDisplay);\n    };\n    PaginationComp.prototype.formatNumber = function (value) {\n        var userFunc = this.gridOptionsWrapper.getPaginationNumberFormatterFunc();\n        if (userFunc) {\n            var params = { value: value };\n            return userFunc(params);\n        }\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n        var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n        return formatNumberCommas(value, thousandSeparator, decimalSeparator);\n    };\n    PaginationComp.prototype.getTemplate = function () {\n        var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n        var strPage = localeTextFunc('page', 'Page');\n        var strTo = localeTextFunc('to', 'to');\n        var strOf = localeTextFunc('of', 'of');\n        var strFirst = localeTextFunc('firstPage', 'First Page');\n        var strPrevious = localeTextFunc('previousPage', 'Previous Page');\n        var strNext = localeTextFunc('nextPage', 'Next Page');\n        var strLast = localeTextFunc('lastPage', 'Last Page');\n        var compId = this.getCompId();\n        return /* html */ \"<div class=\\\"ag-paging-panel ag-unselectable\\\" id=\\\"ag-\" + compId + \"\\\">\\n                <span class=\\\"ag-paging-row-summary-panel\\\" role=\\\"status\\\">\\n                    <span id=\\\"ag-\" + compId + \"-first-row\\\" ref=\\\"lbFirstRowOnPage\\\" class=\\\"ag-paging-row-summary-panel-number\\\"></span>\\n                    <span id=\\\"ag-\" + compId + \"-to\\\">\" + strTo + \"</span>\\n                    <span id=\\\"ag-\" + compId + \"-last-row\\\" ref=\\\"lbLastRowOnPage\\\" class=\\\"ag-paging-row-summary-panel-number\\\"></span>\\n                    <span id=\\\"ag-\" + compId + \"-of\\\">\" + strOf + \"</span>\\n                    <span id=\\\"ag-\" + compId + \"-row-count\\\" ref=\\\"lbRecordCount\\\" class=\\\"ag-paging-row-summary-panel-number\\\"></span>\\n                </span>\\n                <span class=\\\"ag-paging-page-summary-panel\\\" role=\\\"presentation\\\">\\n                    <div ref=\\\"btFirst\\\" class=\\\"ag-paging-button\\\" role=\\\"button\\\" aria-label=\\\"\" + strFirst + \"\\\"></div>\\n                    <div ref=\\\"btPrevious\\\" class=\\\"ag-paging-button\\\" role=\\\"button\\\" aria-label=\\\"\" + strPrevious + \"\\\"></div>\\n                    <span class=\\\"ag-paging-description\\\" role=\\\"status\\\">\\n                        <span id=\\\"ag-\" + compId + \"-start-page\\\">\" + strPage + \"</span>\\n                        <span id=\\\"ag-\" + compId + \"-start-page-number\\\" ref=\\\"lbCurrent\\\" class=\\\"ag-paging-number\\\"></span>\\n                        <span id=\\\"ag-\" + compId + \"-of-page\\\">\" + strOf + \"</span>\\n                        <span id=\\\"ag-\" + compId + \"-of-page-number\\\" ref=\\\"lbTotal\\\" class=\\\"ag-paging-number\\\"></span>\\n                    </span>\\n                    <div ref=\\\"btNext\\\" class=\\\"ag-paging-button\\\" role=\\\"button\\\" aria-label=\\\"\" + strNext + \"\\\"></div>\\n                    <div ref=\\\"btLast\\\" class=\\\"ag-paging-button\\\" role=\\\"button\\\" aria-label=\\\"\" + strLast + \"\\\"></div>\\n                </span>\\n            </div>\";\n    };\n    PaginationComp.prototype.onBtNext = function () {\n        if (!this.nextButtonDisabled) {\n            this.paginationProxy.goToNextPage();\n        }\n    };\n    PaginationComp.prototype.onBtPrevious = function () {\n        if (!this.previousAndFirstButtonsDisabled) {\n            this.paginationProxy.goToPreviousPage();\n        }\n    };\n    PaginationComp.prototype.onBtLast = function () {\n        if (!this.lastButtonDisabled) {\n            this.paginationProxy.goToLastPage();\n        }\n    };\n    PaginationComp.prototype.enableOrDisableButtons = function () {\n        var currentPage = this.paginationProxy.getCurrentPage();\n        var maxRowFound = this.paginationProxy.isLastPageFound();\n        var totalPages = this.paginationProxy.getTotalPages();\n        this.previousAndFirstButtonsDisabled = currentPage === 0;\n        this.toggleButtonDisabled(this.btFirst, this.previousAndFirstButtonsDisabled);\n        this.toggleButtonDisabled(this.btPrevious, this.previousAndFirstButtonsDisabled);\n        var zeroPagesToDisplay = this.isZeroPagesToDisplay();\n        var onLastPage = maxRowFound && currentPage === (totalPages - 1);\n        this.nextButtonDisabled = onLastPage || zeroPagesToDisplay;\n        this.lastButtonDisabled = !maxRowFound || zeroPagesToDisplay || currentPage === (totalPages - 1);\n        this.toggleButtonDisabled(this.btNext, this.nextButtonDisabled);\n        this.toggleButtonDisabled(this.btLast, this.lastButtonDisabled);\n    };\n    PaginationComp.prototype.toggleButtonDisabled = function (button, disabled) {\n        setAriaDisabled(button, disabled);\n        button.classList.toggle('ag-disabled', disabled);\n        if (disabled) {\n            button.removeAttribute('tabindex');\n        }\n        else {\n            button.setAttribute('tabindex', '0');\n        }\n    };\n    PaginationComp.prototype.updateRowLabels = function () {\n        var currentPage = this.paginationProxy.getCurrentPage();\n        var pageSize = this.paginationProxy.getPageSize();\n        var maxRowFound = this.paginationProxy.isLastPageFound();\n        var rowCount = this.paginationProxy.isLastPageFound() ?\n            this.paginationProxy.getMasterRowCount() : null;\n        var startRow;\n        var endRow;\n        if (this.isZeroPagesToDisplay()) {\n            startRow = endRow = 0;\n        }\n        else {\n            startRow = (pageSize * currentPage) + 1;\n            endRow = startRow + pageSize - 1;\n            if (maxRowFound && endRow > rowCount) {\n                endRow = rowCount;\n            }\n        }\n        this.lbFirstRowOnPage.innerHTML = this.formatNumber(startRow);\n        if (this.rowNodeBlockLoader.isLoading()) {\n            this.lbLastRowOnPage.innerHTML = '?';\n        }\n        else {\n            this.lbLastRowOnPage.innerHTML = this.formatNumber(endRow);\n        }\n    };\n    PaginationComp.prototype.isZeroPagesToDisplay = function () {\n        var maxRowFound = this.paginationProxy.isLastPageFound();\n        var totalPages = this.paginationProxy.getTotalPages();\n        return maxRowFound && totalPages === 0;\n    };\n    PaginationComp.prototype.setTotalLabels = function () {\n        var lastPageFound = this.paginationProxy.isLastPageFound();\n        var totalPages = this.paginationProxy.getTotalPages();\n        var rowCount = lastPageFound ? this.paginationProxy.getMasterRowCount() : null;\n        // When `pivotMode=true` and no grouping or value columns exist, a single 'hidden' group row (root node) is in\n        // the grid and the pagination totals will correctly display total = 1. However this is confusing to users as\n        // they can't see it. To address this UX issue we simply set the totals to zero in the pagination panel.\n        if (rowCount === 1) {\n            var firstRow = this.paginationProxy.getRow(0);\n            // a group node with no group or agg data will not be visible to users\n            var hiddenGroupRow = firstRow && firstRow.group && !(firstRow.groupData || firstRow.aggData);\n            if (hiddenGroupRow) {\n                this.setTotalLabelsToZero();\n                return;\n            }\n        }\n        if (lastPageFound) {\n            this.lbTotal.innerHTML = this.formatNumber(totalPages);\n            this.lbRecordCount.innerHTML = this.formatNumber(rowCount);\n        }\n        else {\n            var moreText = this.gridOptionsWrapper.getLocaleTextFunc()('more', 'more');\n            this.lbTotal.innerHTML = moreText;\n            this.lbRecordCount.innerHTML = moreText;\n        }\n    };\n    PaginationComp.prototype.setTotalLabelsToZero = function () {\n        this.lbFirstRowOnPage.innerHTML = this.formatNumber(0);\n        this.lbCurrent.innerHTML = this.formatNumber(0);\n        this.lbLastRowOnPage.innerHTML = this.formatNumber(0);\n        this.lbTotal.innerHTML = this.formatNumber(0);\n        this.lbRecordCount.innerHTML = this.formatNumber(0);\n    };\n    __decorate$28([\n        Autowired('paginationProxy')\n    ], PaginationComp.prototype, \"paginationProxy\", void 0);\n    __decorate$28([\n        Autowired('rowNodeBlockLoader')\n    ], PaginationComp.prototype, \"rowNodeBlockLoader\", void 0);\n    __decorate$28([\n        RefSelector('btFirst')\n    ], PaginationComp.prototype, \"btFirst\", void 0);\n    __decorate$28([\n        RefSelector('btPrevious')\n    ], PaginationComp.prototype, \"btPrevious\", void 0);\n    __decorate$28([\n        RefSelector('btNext')\n    ], PaginationComp.prototype, \"btNext\", void 0);\n    __decorate$28([\n        RefSelector('btLast')\n    ], PaginationComp.prototype, \"btLast\", void 0);\n    __decorate$28([\n        RefSelector('lbRecordCount')\n    ], PaginationComp.prototype, \"lbRecordCount\", void 0);\n    __decorate$28([\n        RefSelector('lbFirstRowOnPage')\n    ], PaginationComp.prototype, \"lbFirstRowOnPage\", void 0);\n    __decorate$28([\n        RefSelector('lbLastRowOnPage')\n    ], PaginationComp.prototype, \"lbLastRowOnPage\", void 0);\n    __decorate$28([\n        RefSelector('lbCurrent')\n    ], PaginationComp.prototype, \"lbCurrent\", void 0);\n    __decorate$28([\n        RefSelector('lbTotal')\n    ], PaginationComp.prototype, \"lbTotal\", void 0);\n    __decorate$28([\n        PostConstruct\n    ], PaginationComp.prototype, \"postConstruct\", null);\n    return PaginationComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2u = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$29 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar LoadingType;\n(function (LoadingType) {\n    LoadingType[LoadingType[\"Loading\"] = 0] = \"Loading\";\n    LoadingType[LoadingType[\"NoRows\"] = 1] = \"NoRows\";\n})(LoadingType || (LoadingType = {}));\nvar OverlayWrapperComponent = /** @class */ (function (_super) {\n    __extends$2u(OverlayWrapperComponent, _super);\n    function OverlayWrapperComponent() {\n        var _this = _super.call(this, OverlayWrapperComponent.TEMPLATE) || this;\n        _this.inProgress = false;\n        _this.destroyRequested = false;\n        _this.manuallyDisplayed = false;\n        return _this;\n    }\n    OverlayWrapperComponent.prototype.updateLayoutClasses = function (cssClass, params) {\n        var overlayWrapperClassList = this.eOverlayWrapper.classList;\n        overlayWrapperClassList.toggle(exports.LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n        overlayWrapperClassList.toggle(exports.LayoutCssClasses.NORMAL, params.normal);\n        overlayWrapperClassList.toggle(exports.LayoutCssClasses.PRINT, params.print);\n    };\n    OverlayWrapperComponent.prototype.postConstruct = function () {\n        this.createManagedBean(new LayoutFeature(this));\n        this.setDisplayed(false);\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_DATA_CHANGED, this.onRowDataChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_DATA_UPDATED, this.onRowDataChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onNewColumnsLoaded.bind(this));\n        if (this.gridOptionsWrapper.isRowModelDefault() && !this.gridOptionsWrapper.getRowData()) {\n            this.showLoadingOverlay();\n        }\n        this.gridApi.registerOverlayWrapperComp(this);\n    };\n    OverlayWrapperComponent.prototype.setWrapperTypeClass = function (loadingType) {\n        var overlayWrapperClassList = this.eOverlayWrapper.classList;\n        overlayWrapperClassList.toggle('ag-overlay-loading-wrapper', loadingType === LoadingType.Loading);\n        overlayWrapperClassList.toggle('ag-overlay-no-rows-wrapper', loadingType === LoadingType.NoRows);\n    };\n    OverlayWrapperComponent.prototype.showLoadingOverlay = function () {\n        if (this.gridOptionsWrapper.isSuppressLoadingOverlay()) {\n            return;\n        }\n        var params = {};\n        var compDetails = this.userComponentFactory.getLoadingOverlayCompDetails(params);\n        var promise = compDetails.newAgStackInstance();\n        this.showOverlay(promise, LoadingType.Loading);\n    };\n    OverlayWrapperComponent.prototype.showNoRowsOverlay = function () {\n        if (this.gridOptionsWrapper.isSuppressNoRowsOverlay()) {\n            return;\n        }\n        var params = {};\n        var compDetails = this.userComponentFactory.getNoRowsOverlayCompDetails(params);\n        var promise = compDetails.newAgStackInstance();\n        this.showOverlay(promise, LoadingType.NoRows);\n    };\n    OverlayWrapperComponent.prototype.showOverlay = function (workItem, type) {\n        var _this = this;\n        if (this.inProgress) {\n            return;\n        }\n        this.setWrapperTypeClass(type);\n        this.destroyActiveOverlay();\n        this.inProgress = true;\n        if (workItem) {\n            workItem.then(function (comp) {\n                _this.inProgress = false;\n                _this.eOverlayWrapper.appendChild(comp.getGui());\n                _this.activeOverlay = comp;\n                if (_this.destroyRequested) {\n                    _this.destroyRequested = false;\n                    _this.destroyActiveOverlay();\n                }\n            });\n        }\n        this.manuallyDisplayed = this.columnModel.isReady() && !this.paginationProxy.isEmpty();\n        this.setDisplayed(true);\n    };\n    OverlayWrapperComponent.prototype.destroyActiveOverlay = function () {\n        if (this.inProgress) {\n            this.destroyRequested = true;\n            return;\n        }\n        if (!this.activeOverlay) {\n            return;\n        }\n        this.activeOverlay = this.getContext().destroyBean(this.activeOverlay);\n        clearElement(this.eOverlayWrapper);\n    };\n    OverlayWrapperComponent.prototype.hideOverlay = function () {\n        this.manuallyDisplayed = false;\n        this.destroyActiveOverlay();\n        this.setDisplayed(false);\n    };\n    OverlayWrapperComponent.prototype.destroy = function () {\n        this.destroyActiveOverlay();\n        _super.prototype.destroy.call(this);\n    };\n    OverlayWrapperComponent.prototype.showOrHideOverlay = function () {\n        var isEmpty = this.paginationProxy.isEmpty();\n        var isSuppressNoRowsOverlay = this.gridOptionsWrapper.isSuppressNoRowsOverlay();\n        if (isEmpty && !isSuppressNoRowsOverlay) {\n            this.showNoRowsOverlay();\n        }\n        else {\n            this.hideOverlay();\n        }\n    };\n    OverlayWrapperComponent.prototype.onRowDataChanged = function () {\n        this.showOrHideOverlay();\n    };\n    OverlayWrapperComponent.prototype.onNewColumnsLoaded = function () {\n        // hide overlay if columns and rows exist, this can happen if columns are loaded after data.\n        // this problem exists before of the race condition between the services (column controller in this case)\n        // and the view (grid panel). if the model beans were all initialised first, and then the view beans second,\n        // this race condition would not happen.\n        if (this.columnModel.isReady() && !this.paginationProxy.isEmpty() && !this.manuallyDisplayed) {\n            this.hideOverlay();\n        }\n    };\n    // wrapping in outer div, and wrapper, is needed to center the loading icon\n    // The idea for centering came from here: http://www.vanseodesign.com/css/vertical-centering/\n    OverlayWrapperComponent.TEMPLATE = \"\\n        <div class=\\\"ag-overlay\\\" aria-hidden=\\\"true\\\">\\n            <div class=\\\"ag-overlay-panel\\\">\\n                <div class=\\\"ag-overlay-wrapper\\\" ref=\\\"eOverlayWrapper\\\"></div>\\n            </div>\\n        </div>\";\n    __decorate$29([\n        Autowired('userComponentFactory')\n    ], OverlayWrapperComponent.prototype, \"userComponentFactory\", void 0);\n    __decorate$29([\n        Autowired('paginationProxy')\n    ], OverlayWrapperComponent.prototype, \"paginationProxy\", void 0);\n    __decorate$29([\n        Autowired('gridApi')\n    ], OverlayWrapperComponent.prototype, \"gridApi\", void 0);\n    __decorate$29([\n        Autowired('columnModel')\n    ], OverlayWrapperComponent.prototype, \"columnModel\", void 0);\n    __decorate$29([\n        RefSelector('eOverlayWrapper')\n    ], OverlayWrapperComponent.prototype, \"eOverlayWrapper\", void 0);\n    __decorate$29([\n        PostConstruct\n    ], OverlayWrapperComponent.prototype, \"postConstruct\", null);\n    return OverlayWrapperComponent;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2v = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RowPositionUtils = /** @class */ (function (_super) {\n    __extends$2v(RowPositionUtils, _super);\n    function RowPositionUtils() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    RowPositionUtils.prototype.getFirstRow = function () {\n        var rowIndex = 0;\n        var rowPinned;\n        if (this.pinnedRowModel.getPinnedTopRowCount()) {\n            rowPinned = Constants.PINNED_TOP;\n        }\n        else if (this.rowModel.getRowCount()) {\n            rowPinned = null;\n            rowIndex = this.paginationProxy.getPageFirstRow();\n        }\n        else if (this.pinnedRowModel.getPinnedBottomRowCount()) {\n            rowPinned = Constants.PINNED_BOTTOM;\n        }\n        return rowPinned === undefined ? null : { rowIndex: rowIndex, rowPinned: rowPinned };\n    };\n    RowPositionUtils.prototype.getLastRow = function () {\n        var rowIndex;\n        var rowPinned = null;\n        var pinnedBottomCount = this.pinnedRowModel.getPinnedBottomRowCount();\n        var pinnedTopCount = this.pinnedRowModel.getPinnedTopRowCount();\n        if (pinnedBottomCount) {\n            rowPinned = Constants.PINNED_BOTTOM;\n            rowIndex = pinnedBottomCount - 1;\n        }\n        else if (this.rowModel.getRowCount()) {\n            rowPinned = null;\n            rowIndex = this.paginationProxy.getPageLastRow();\n        }\n        else if (pinnedTopCount) {\n            rowPinned = Constants.PINNED_TOP;\n            rowIndex = pinnedTopCount - 1;\n        }\n        return rowIndex === undefined ? null : { rowIndex: rowIndex, rowPinned: rowPinned };\n    };\n    RowPositionUtils.prototype.getRowNode = function (gridRow) {\n        switch (gridRow.rowPinned) {\n            case Constants.PINNED_TOP:\n                return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n            case Constants.PINNED_BOTTOM:\n                return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n            default:\n                return this.rowModel.getRow(gridRow.rowIndex);\n        }\n    };\n    RowPositionUtils.prototype.sameRow = function (rowA, rowB) {\n        // if both missing\n        if (!rowA && !rowB) {\n            return true;\n        }\n        // if only one missing\n        if ((rowA && !rowB) || (!rowA && rowB)) {\n            return false;\n        }\n        // otherwise compare (use == to compare rowPinned because it can be null or undefined)\n        return rowA.rowIndex === rowB.rowIndex && rowA.rowPinned == rowB.rowPinned;\n    };\n    // tests if this row selection is before the other row selection\n    RowPositionUtils.prototype.before = function (rowA, rowB) {\n        switch (rowA.rowPinned) {\n            case Constants.PINNED_TOP:\n                // we we are floating top, and other isn't, then we are always before\n                if (rowB.rowPinned !== Constants.PINNED_TOP) {\n                    return true;\n                }\n                break;\n            case Constants.PINNED_BOTTOM:\n                // if we are floating bottom, and the other isn't, then we are never before\n                if (rowB.rowPinned !== Constants.PINNED_BOTTOM) {\n                    return false;\n                }\n                break;\n            default:\n                // if we are not floating, but the other one is floating...\n                if (exists(rowB.rowPinned)) {\n                    return rowB.rowPinned !== Constants.PINNED_TOP;\n                }\n                break;\n        }\n        return rowA.rowIndex < rowB.rowIndex;\n    };\n    __decorate$2a([\n        Autowired('rowModel')\n    ], RowPositionUtils.prototype, \"rowModel\", void 0);\n    __decorate$2a([\n        Autowired('pinnedRowModel')\n    ], RowPositionUtils.prototype, \"pinnedRowModel\", void 0);\n    __decorate$2a([\n        Autowired('paginationProxy')\n    ], RowPositionUtils.prototype, \"paginationProxy\", void 0);\n    RowPositionUtils = __decorate$2a([\n        Bean('rowPositionUtils')\n    ], RowPositionUtils);\n    return RowPositionUtils;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2w = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CellPositionUtils = /** @class */ (function (_super) {\n    __extends$2w(CellPositionUtils, _super);\n    function CellPositionUtils() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    CellPositionUtils.prototype.createId = function (cellPosition) {\n        var rowIndex = cellPosition.rowIndex, rowPinned = cellPosition.rowPinned, column = cellPosition.column;\n        return this.createIdFromValues(rowIndex, column, rowPinned);\n    };\n    CellPositionUtils.prototype.createIdFromValues = function (rowIndex, column, rowPinned) {\n        return rowIndex + \".\" + (rowPinned == null ? 'null' : rowPinned) + \".\" + column.getId();\n    };\n    CellPositionUtils.prototype.equals = function (cellA, cellB) {\n        var colsMatch = cellA.column === cellB.column;\n        var floatingMatch = cellA.rowPinned === cellB.rowPinned;\n        var indexMatch = cellA.rowIndex === cellB.rowIndex;\n        return colsMatch && floatingMatch && indexMatch;\n    };\n    CellPositionUtils = __decorate$2b([\n        Bean('cellPositionUtils')\n    ], CellPositionUtils);\n    return CellPositionUtils;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2x = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar UndoRedoAction = /** @class */ (function () {\n    function UndoRedoAction(cellValueChanges) {\n        this.cellValueChanges = cellValueChanges;\n    }\n    return UndoRedoAction;\n}());\nvar FillUndoRedoAction = /** @class */ (function (_super) {\n    __extends$2x(FillUndoRedoAction, _super);\n    function FillUndoRedoAction(cellValueChanges, initialRange, finalRange) {\n        var _this = _super.call(this, cellValueChanges) || this;\n        _this.initialRange = initialRange;\n        _this.finalRange = finalRange;\n        return _this;\n    }\n    return FillUndoRedoAction;\n}(UndoRedoAction));\nvar UndoRedoStack = /** @class */ (function () {\n    function UndoRedoStack(maxStackSize) {\n        this.actionStack = [];\n        this.maxStackSize = maxStackSize ? maxStackSize : UndoRedoStack.DEFAULT_STACK_SIZE;\n        this.actionStack = new Array(this.maxStackSize);\n    }\n    UndoRedoStack.prototype.pop = function () {\n        return this.actionStack.pop();\n    };\n    UndoRedoStack.prototype.push = function (item) {\n        var shouldAddActions = item.cellValueChanges && item.cellValueChanges.length > 0;\n        if (!shouldAddActions) {\n            return;\n        }\n        if (this.actionStack.length === this.maxStackSize) {\n            this.actionStack.shift();\n        }\n        this.actionStack.push(item);\n    };\n    UndoRedoStack.prototype.clear = function () {\n        this.actionStack = [];\n    };\n    UndoRedoStack.prototype.getCurrentStackSize = function () {\n        return this.actionStack.length;\n    };\n    UndoRedoStack.DEFAULT_STACK_SIZE = 10;\n    return UndoRedoStack;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2y = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar UndoRedoService = /** @class */ (function (_super) {\n    __extends$2y(UndoRedoService, _super);\n    function UndoRedoService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.cellValueChanges = [];\n        _this.activeCellEdit = null;\n        _this.activeRowEdit = null;\n        _this.isPasting = false;\n        _this.isFilling = false;\n        _this.onCellValueChanged = function (event) {\n            var eventCell = { column: event.column, rowIndex: event.rowIndex, rowPinned: event.rowPinned };\n            var isCellEditing = _this.activeCellEdit !== null && _this.cellPositionUtils.equals(_this.activeCellEdit, eventCell);\n            var isRowEditing = _this.activeRowEdit !== null && _this.rowPositionUtils.sameRow(_this.activeRowEdit, eventCell);\n            var shouldCaptureAction = isCellEditing || isRowEditing || _this.isPasting || _this.isFilling;\n            if (!shouldCaptureAction) {\n                return;\n            }\n            var rowPinned = event.rowPinned, rowIndex = event.rowIndex, column = event.column, oldValue = event.oldValue, value = event.value;\n            var cellValueChange = {\n                rowPinned: rowPinned,\n                rowIndex: rowIndex,\n                columnId: column.getColId(),\n                newValue: value,\n                oldValue: oldValue\n            };\n            _this.cellValueChanges.push(cellValueChange);\n        };\n        _this.clearStacks = function () {\n            _this.undoStack.clear();\n            _this.redoStack.clear();\n        };\n        return _this;\n    }\n    UndoRedoService.prototype.init = function () {\n        if (!this.gridOptionsWrapper.isUndoRedoCellEditing()) {\n            return;\n        }\n        var undoRedoLimit = this.gridOptionsWrapper.getUndoRedoCellEditingLimit();\n        if (undoRedoLimit <= 0) {\n            return;\n        }\n        this.undoStack = new UndoRedoStack(undoRedoLimit);\n        this.redoStack = new UndoRedoStack(undoRedoLimit);\n        this.addRowEditingListeners();\n        this.addCellEditingListeners();\n        this.addPasteListeners();\n        this.addFillListeners();\n        this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged);\n        // undo / redo is restricted to actual editing so we clear the stacks when other operations are\n        // performed that change the order of the row / cols.\n        this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.clearStacks);\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_DRAG_END, this.clearStacks);\n    };\n    UndoRedoService.prototype.getCurrentUndoStackSize = function () {\n        return this.undoStack ? this.undoStack.getCurrentStackSize() : 0;\n    };\n    UndoRedoService.prototype.getCurrentRedoStackSize = function () {\n        return this.redoStack ? this.redoStack.getCurrentStackSize() : 0;\n    };\n    UndoRedoService.prototype.undo = function () {\n        if (!this.undoStack) {\n            return;\n        }\n        var undoAction = this.undoStack.pop();\n        if (!undoAction || !undoAction.cellValueChanges) {\n            return;\n        }\n        this.processAction(undoAction, function (cellValueChange) { return cellValueChange.oldValue; });\n        if (undoAction instanceof FillUndoRedoAction) {\n            this.processRangeAndCellFocus(undoAction.cellValueChanges, undoAction.initialRange);\n        }\n        else {\n            this.processRangeAndCellFocus(undoAction.cellValueChanges);\n        }\n        this.redoStack.push(undoAction);\n    };\n    UndoRedoService.prototype.redo = function () {\n        if (!this.redoStack) {\n            return;\n        }\n        var redoAction = this.redoStack.pop();\n        if (!redoAction || !redoAction.cellValueChanges) {\n            return;\n        }\n        this.processAction(redoAction, function (cellValueChange) { return cellValueChange.newValue; });\n        if (redoAction instanceof FillUndoRedoAction) {\n            this.processRangeAndCellFocus(redoAction.cellValueChanges, redoAction.finalRange);\n        }\n        else {\n            this.processRangeAndCellFocus(redoAction.cellValueChanges);\n        }\n        this.undoStack.push(redoAction);\n    };\n    UndoRedoService.prototype.processAction = function (action, valueExtractor) {\n        var _this = this;\n        action.cellValueChanges.forEach(function (cellValueChange) {\n            var rowIndex = cellValueChange.rowIndex, rowPinned = cellValueChange.rowPinned, columnId = cellValueChange.columnId;\n            var rowPosition = { rowIndex: rowIndex, rowPinned: rowPinned };\n            var currentRow = _this.getRowNode(rowPosition);\n            // checks if the row has been filtered out\n            if (!currentRow.displayed) {\n                return;\n            }\n            currentRow.setDataValue(columnId, valueExtractor(cellValueChange));\n        });\n    };\n    UndoRedoService.prototype.processRangeAndCellFocus = function (cellValueChanges, range) {\n        var lastFocusedCell;\n        if (range) {\n            var startRow = range.startRow;\n            var endRow = range.endRow;\n            lastFocusedCell = {\n                rowPinned: startRow.rowPinned,\n                rowIndex: startRow.rowIndex,\n                columnId: range.startColumn.getColId()\n            };\n            this.setLastFocusedCell(lastFocusedCell);\n            var cellRangeParams = {\n                rowStartIndex: startRow.rowIndex,\n                rowStartPinned: startRow.rowPinned,\n                rowEndIndex: endRow.rowIndex,\n                rowEndPinned: endRow.rowPinned,\n                columnStart: range.startColumn,\n                columns: range.columns\n            };\n            this.gridApi.addCellRange(cellRangeParams);\n            return;\n        }\n        var cellValueChange = cellValueChanges[0];\n        var rowIndex = cellValueChange.rowIndex, rowPinned = cellValueChange.rowPinned;\n        var rowPosition = { rowIndex: rowIndex, rowPinned: rowPinned };\n        var row = this.getRowNode(rowPosition);\n        lastFocusedCell = {\n            rowPinned: cellValueChange.rowPinned,\n            rowIndex: row.rowIndex,\n            columnId: cellValueChange.columnId\n        };\n        this.setLastFocusedCell(lastFocusedCell);\n    };\n    UndoRedoService.prototype.setLastFocusedCell = function (lastFocusedCell) {\n        var rowIndex = lastFocusedCell.rowIndex, columnId = lastFocusedCell.columnId, rowPinned = lastFocusedCell.rowPinned;\n        this.gridApi.ensureIndexVisible(rowIndex);\n        this.gridApi.ensureColumnVisible(columnId);\n        if (ModuleRegistry.isRegistered(exports.ModuleNames.RangeSelectionModule)) {\n            this.gridApi.clearRangeSelection();\n        }\n        this.focusService.setFocusedCell(rowIndex, columnId, rowPinned, true);\n    };\n    UndoRedoService.prototype.addRowEditingListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_EDITING_STARTED, function (e) {\n            _this.activeRowEdit = { rowIndex: e.rowIndex, rowPinned: e.rowPinned };\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_ROW_EDITING_STOPPED, function () {\n            var action = new UndoRedoAction(_this.cellValueChanges);\n            _this.pushActionsToUndoStack(action);\n            _this.activeRowEdit = null;\n        });\n    };\n    UndoRedoService.prototype.addCellEditingListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_CELL_EDITING_STARTED, function (e) {\n            _this.activeCellEdit = { column: e.column, rowIndex: e.rowIndex, rowPinned: e.rowPinned };\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_CELL_EDITING_STOPPED, function () {\n            _this.activeCellEdit = null;\n            var shouldPushAction = !_this.activeRowEdit && !_this.isPasting && !_this.isFilling;\n            if (shouldPushAction) {\n                var action = new UndoRedoAction(_this.cellValueChanges);\n                _this.pushActionsToUndoStack(action);\n            }\n        });\n    };\n    UndoRedoService.prototype.addPasteListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_PASTE_START, function () {\n            _this.isPasting = true;\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_PASTE_END, function () {\n            var action = new UndoRedoAction(_this.cellValueChanges);\n            _this.pushActionsToUndoStack(action);\n            _this.isPasting = false;\n        });\n    };\n    UndoRedoService.prototype.addFillListeners = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_FILL_START, function () {\n            _this.isFilling = true;\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_FILL_END, function (event) {\n            var action = new FillUndoRedoAction(_this.cellValueChanges, event.initialRange, event.finalRange);\n            _this.pushActionsToUndoStack(action);\n            _this.isFilling = false;\n        });\n    };\n    UndoRedoService.prototype.pushActionsToUndoStack = function (action) {\n        this.undoStack.push(action);\n        this.cellValueChanges = [];\n        this.redoStack.clear();\n    };\n    UndoRedoService.prototype.getRowNode = function (gridRow) {\n        switch (gridRow.rowPinned) {\n            case Constants.PINNED_TOP:\n                return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n            case Constants.PINNED_BOTTOM:\n                return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n            default:\n                return this.rowModel.getRow(gridRow.rowIndex);\n        }\n    };\n    __decorate$2c([\n        Autowired('focusService')\n    ], UndoRedoService.prototype, \"focusService\", void 0);\n    __decorate$2c([\n        Autowired('gridApi')\n    ], UndoRedoService.prototype, \"gridApi\", void 0);\n    __decorate$2c([\n        Autowired('rowModel')\n    ], UndoRedoService.prototype, \"rowModel\", void 0);\n    __decorate$2c([\n        Autowired('pinnedRowModel')\n    ], UndoRedoService.prototype, \"pinnedRowModel\", void 0);\n    __decorate$2c([\n        Autowired('cellPositionUtils')\n    ], UndoRedoService.prototype, \"cellPositionUtils\", void 0);\n    __decorate$2c([\n        Autowired('rowPositionUtils')\n    ], UndoRedoService.prototype, \"rowPositionUtils\", void 0);\n    __decorate$2c([\n        PostConstruct\n    ], UndoRedoService.prototype, \"init\", null);\n    UndoRedoService = __decorate$2c([\n        Bean('undoRedoService')\n    ], UndoRedoService);\n    return UndoRedoService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2z = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar HeaderPositionUtils = /** @class */ (function (_super) {\n    __extends$2z(HeaderPositionUtils, _super);\n    function HeaderPositionUtils() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    HeaderPositionUtils.prototype.findHeader = function (focusedHeader, direction) {\n        var nextColumn;\n        var getGroupMethod;\n        var getColMethod;\n        if (focusedHeader.column instanceof ColumnGroup) {\n            getGroupMethod = \"getDisplayedGroup\" + direction;\n            nextColumn = this.columnModel[getGroupMethod](focusedHeader.column);\n        }\n        else {\n            getColMethod = \"getDisplayedCol\" + direction;\n            nextColumn = this.columnModel[getColMethod](focusedHeader.column);\n        }\n        if (nextColumn) {\n            return {\n                column: nextColumn,\n                headerRowIndex: focusedHeader.headerRowIndex\n            };\n        }\n    };\n    HeaderPositionUtils.prototype.findColAtEdgeForHeaderRow = function (level, position) {\n        var displayedColumns = this.columnModel.getAllDisplayedColumns();\n        var column = displayedColumns[position === 'start' ? 0 : displayedColumns.length - 1];\n        if (!column) {\n            return;\n        }\n        var childContainer = this.ctrlsService.getHeaderRowContainerCtrl(column.getPinned());\n        var type = childContainer.getRowType(level);\n        if (type == exports.HeaderRowType.COLUMN_GROUP) {\n            var columnGroup = this.columnModel.getColumnGroupAtLevel(column, level);\n            return {\n                headerRowIndex: level,\n                column: columnGroup\n            };\n        }\n        return {\n            // if type==null, means the header level didn't exist\n            headerRowIndex: type == null ? -1 : level,\n            column: column\n        };\n    };\n    __decorate$2d([\n        Autowired('columnModel')\n    ], HeaderPositionUtils.prototype, \"columnModel\", void 0);\n    __decorate$2d([\n        Autowired('ctrlsService')\n    ], HeaderPositionUtils.prototype, \"ctrlsService\", void 0);\n    HeaderPositionUtils = __decorate$2d([\n        Bean('headerPositionUtils')\n    ], HeaderPositionUtils);\n    return HeaderPositionUtils;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$2e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar ColumnDefFactory = /** @class */ (function () {\n    function ColumnDefFactory() {\n    }\n    ColumnDefFactory.prototype.buildColumnDefs = function (cols, rowGroupColumns, pivotColumns) {\n        var _this = this;\n        var res = [];\n        var colGroupDefs = {};\n        cols.forEach(function (col) {\n            var colDef = _this.createDefFromColumn(col, rowGroupColumns, pivotColumns);\n            var addToResult = true;\n            var childDef = colDef;\n            var pointer = col.getOriginalParent();\n            while (pointer) {\n                var parentDef = null;\n                // we don't include padding groups, as the column groups provided\n                // by application didn't have these. the whole point of padding groups\n                // is to balance the column tree that the user provided.\n                if (pointer.isPadding()) {\n                    pointer = pointer.getOriginalParent();\n                    continue;\n                }\n                // if colDef for this group already exists, use it\n                var existingParentDef = colGroupDefs[pointer.getGroupId()];\n                if (existingParentDef) {\n                    existingParentDef.children.push(childDef);\n                    // if we added to result, it would be the second time we did it\n                    addToResult = false;\n                    // we don't want to continue up the tree, as it has already been\n                    // done for this group\n                    break;\n                }\n                parentDef = _this.createDefFromGroup(pointer);\n                if (parentDef) {\n                    parentDef.children = [childDef];\n                    colGroupDefs[parentDef.groupId] = parentDef;\n                    childDef = parentDef;\n                    pointer = pointer.getOriginalParent();\n                }\n            }\n            if (addToResult) {\n                res.push(childDef);\n            }\n        });\n        return res;\n    };\n    ColumnDefFactory.prototype.createDefFromGroup = function (group) {\n        var defCloned = deepCloneDefinition(group.getColGroupDef(), ['children']);\n        if (defCloned) {\n            defCloned.groupId = group.getGroupId();\n        }\n        return defCloned;\n    };\n    ColumnDefFactory.prototype.createDefFromColumn = function (col, rowGroupColumns, pivotColumns) {\n        var colDefCloned = deepCloneDefinition(col.getColDef());\n        colDefCloned.colId = col.getColId();\n        colDefCloned.width = col.getActualWidth();\n        colDefCloned.rowGroup = col.isRowGroupActive();\n        colDefCloned.rowGroupIndex = col.isRowGroupActive() ? rowGroupColumns.indexOf(col) : null;\n        colDefCloned.pivot = col.isPivotActive();\n        colDefCloned.pivotIndex = col.isPivotActive() ? pivotColumns.indexOf(col) : null;\n        colDefCloned.aggFunc = col.isValueActive() ? col.getAggFunc() : null;\n        colDefCloned.hide = col.isVisible() ? undefined : true;\n        colDefCloned.pinned = col.isPinned() ? col.getPinned() : null;\n        colDefCloned.sort = col.getSort() ? col.getSort() : null;\n        colDefCloned.sortIndex = col.getSortIndex() != null ? col.getSortIndex() : null;\n        return colDefCloned;\n    };\n    ColumnDefFactory = __decorate$2e([\n        Bean('columnDefFactory')\n    ], ColumnDefFactory);\n    return ColumnDefFactory;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$2f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RowCssClassCalculator = /** @class */ (function () {\n    function RowCssClassCalculator() {\n    }\n    RowCssClassCalculator.prototype.getInitialRowClasses = function (params) {\n        var classes = [];\n        if (exists(params.extraCssClass)) {\n            classes.push(params.extraCssClass);\n        }\n        classes.push('ag-row');\n        classes.push(params.rowFocused ? 'ag-row-focus' : 'ag-row-no-focus');\n        if (params.fadeRowIn) {\n            classes.push('ag-opacity-zero');\n        }\n        classes.push(params.rowIsEven ? 'ag-row-even' : 'ag-row-odd');\n        if (params.rowNode.isRowPinned()) {\n            classes.push('ag-row-pinned');\n        }\n        if (params.rowNode.isSelected()) {\n            classes.push('ag-row-selected');\n        }\n        if (params.rowNode.footer) {\n            classes.push('ag-row-footer');\n        }\n        classes.push('ag-row-level-' + params.rowLevel);\n        if (params.rowNode.stub) {\n            classes.push('ag-row-loading');\n        }\n        if (params.fullWidthRow) {\n            classes.push('ag-full-width-row');\n        }\n        if (params.expandable) {\n            classes.push('ag-row-group');\n            classes.push(params.rowNode.expanded ? 'ag-row-group-expanded' : 'ag-row-group-contracted');\n        }\n        if (params.rowNode.dragging) {\n            classes.push('ag-row-dragging');\n        }\n        pushAll(classes, this.processClassesFromGridOptions(params.rowNode));\n        pushAll(classes, this.preProcessRowClassRules(params.rowNode));\n        // we use absolute position unless we are doing print layout\n        classes.push(params.printLayout ? 'ag-row-position-relative' : 'ag-row-position-absolute');\n        if (params.firstRowOnPage) {\n            classes.push('ag-row-first');\n        }\n        if (params.lastRowOnPage) {\n            classes.push('ag-row-last');\n        }\n        if (params.fullWidthRow) {\n            if (params.pinned === Constants.PINNED_LEFT) {\n                classes.push('ag-cell-last-left-pinned');\n            }\n            if (params.pinned === Constants.PINNED_RIGHT) {\n                classes.push('ag-cell-first-right-pinned');\n            }\n        }\n        return classes;\n    };\n    RowCssClassCalculator.prototype.processClassesFromGridOptions = function (rowNode) {\n        var res = [];\n        var process = function (rowCls) {\n            if (typeof rowCls === 'string') {\n                res.push(rowCls);\n            }\n            else if (Array.isArray(rowCls)) {\n                rowCls.forEach(function (e) { return res.push(e); });\n            }\n        };\n        // part 1 - rowClass\n        var rowClass = this.gridOptionsWrapper.getRowClass();\n        if (rowClass) {\n            if (typeof rowClass === 'function') {\n                console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');\n                return [];\n            }\n            process(rowClass);\n        }\n        // part 2 - rowClassFunc\n        var rowClassFunc = this.gridOptionsWrapper.getRowClassFunc();\n        if (rowClassFunc) {\n            var params = {\n                data: rowNode.data,\n                node: rowNode,\n                rowIndex: rowNode.rowIndex\n            };\n            var rowClassFuncResult = rowClassFunc(params);\n            process(rowClassFuncResult);\n        }\n        return res;\n    };\n    RowCssClassCalculator.prototype.preProcessRowClassRules = function (rowNode) {\n        var res = [];\n        this.processRowClassRules(rowNode, function (className) {\n            res.push(className);\n        }, function (className) {\n            // not catered for, if creating, no need\n            // to remove class as it was never there\n        });\n        return res;\n    };\n    RowCssClassCalculator.prototype.processRowClassRules = function (rowNode, onApplicableClass, onNotApplicableClass) {\n        var rowClassParams = {\n            data: rowNode.data,\n            node: rowNode,\n            rowIndex: rowNode.rowIndex,\n            api: this.gridOptionsWrapper.getApi(),\n            columnApi: this.gridOptionsWrapper.getColumnApi(),\n            context: this.gridOptionsWrapper.getContext()\n        };\n        this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(), rowClassParams, onApplicableClass, onNotApplicableClass);\n    };\n    RowCssClassCalculator.prototype.calculateRowLevel = function (rowNode) {\n        if (rowNode.group) {\n            return rowNode.level;\n        }\n        // if a leaf, and a parent exists, put a level of the parent, else put level of 0 for top level item\n        return rowNode.parent ? (rowNode.parent.level + 1) : 0;\n    };\n    __decorate$2f([\n        Autowired('stylingService')\n    ], RowCssClassCalculator.prototype, \"stylingService\", void 0);\n    __decorate$2f([\n        Autowired('gridOptionsWrapper')\n    ], RowCssClassCalculator.prototype, \"gridOptionsWrapper\", void 0);\n    RowCssClassCalculator = __decorate$2f([\n        Bean('rowCssClassCalculator')\n    ], RowCssClassCalculator);\n    return RowCssClassCalculator;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __decorate$2g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n// this logic is used by both SSRM and CSRM\nvar RowNodeSorter = /** @class */ (function () {\n    function RowNodeSorter() {\n    }\n    RowNodeSorter.prototype.doFullSort = function (rowNodes, sortOptions) {\n        var mapper = function (rowNode, pos) { return ({ currentPos: pos, rowNode: rowNode }); };\n        var sortedRowNodes = rowNodes.map(mapper);\n        sortedRowNodes.sort(this.compareRowNodes.bind(this, sortOptions));\n        return sortedRowNodes.map(function (item) { return item.rowNode; });\n    };\n    RowNodeSorter.prototype.compareRowNodes = function (sortOptions, sortedNodeA, sortedNodeB) {\n        var nodeA = sortedNodeA.rowNode;\n        var nodeB = sortedNodeB.rowNode;\n        // Iterate columns, return the first that doesn't match\n        for (var i = 0, len = sortOptions.length; i < len; i++) {\n            var sortOption = sortOptions[i];\n            var isInverted = sortOption.sort === Constants.SORT_DESC;\n            var valueA = this.getValue(nodeA, sortOption.column);\n            var valueB = this.getValue(nodeB, sortOption.column);\n            var comparatorResult = void 0;\n            var providedComparator = this.getComparator(sortOption, nodeA);\n            if (providedComparator) {\n                //if comparator provided, use it\n                comparatorResult = providedComparator(valueA, valueB, nodeA, nodeB, isInverted);\n            }\n            else {\n                //otherwise do our own comparison\n                comparatorResult = _.defaultComparator(valueA, valueB, this.gridOptionsWrapper.isAccentedSort());\n            }\n            // user provided comparators can return 'NaN' if they don't correctly handle 'undefined' values, this\n            // typically occurs when the comparator is used on a group row\n            var validResult = !isNaN(comparatorResult);\n            if (validResult && comparatorResult !== 0) {\n                return sortOption.sort === Constants.SORT_ASC ? comparatorResult : comparatorResult * -1;\n            }\n        }\n        // All matched, we make is so that the original sort order is kept:\n        return sortedNodeA.currentPos - sortedNodeB.currentPos;\n    };\n    RowNodeSorter.prototype.getComparator = function (sortOption, rowNode) {\n        var column = sortOption.column;\n        // comparator on col get preference over everything else\n        var comparatorOnCol = column.getColDef().comparator;\n        if (comparatorOnCol != null) {\n            return comparatorOnCol;\n        }\n        // if no comparator on col, see if we are showing a group, and if we are, get comparator from row group col\n        if (rowNode.rowGroupColumn) {\n            return rowNode.rowGroupColumn.getColDef().comparator;\n        }\n        if (!column.getColDef().showRowGroup) {\n            return;\n        }\n        // if a 'field' is supplied on the autoGroupColumnDef we need to use the associated column comparator\n        var groupLeafField = !rowNode.group && column.getColDef().field;\n        if (!groupLeafField) {\n            return;\n        }\n        var primaryColumn = this.columnModel.getPrimaryColumn(groupLeafField);\n        if (!primaryColumn) {\n            return;\n        }\n        return primaryColumn.getColDef().comparator;\n    };\n    RowNodeSorter.prototype.getValue = function (nodeA, column) {\n        return this.valueService.getValue(column, nodeA, false, false);\n    };\n    __decorate$2g([\n        Autowired('gridOptionsWrapper')\n    ], RowNodeSorter.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$2g([\n        Autowired('valueService')\n    ], RowNodeSorter.prototype, \"valueService\", void 0);\n    __decorate$2g([\n        Autowired('columnModel')\n    ], RowNodeSorter.prototype, \"columnModel\", void 0);\n    RowNodeSorter = __decorate$2g([\n        Bean('rowNodeSorter')\n    ], RowNodeSorter);\n    return RowNodeSorter;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2A = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CtrlsService = /** @class */ (function (_super) {\n    __extends$2A(CtrlsService, _super);\n    function CtrlsService() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.ready = false;\n        _this.readyCallbacks = [];\n        return _this;\n    }\n    CtrlsService_1 = CtrlsService;\n    CtrlsService.prototype.checkReady = function () {\n        this.ready =\n            this.gridCtrl != null\n                && this.gridBodyCtrl != null\n                && this.centerRowContainerCtrl != null\n                && this.leftRowContainerCtrl != null\n                && this.rightRowContainerCtrl != null\n                && this.bottomCenterRowContainerCtrl != null\n                && this.bottomLeftRowContainerCtrl != null\n                && this.bottomRightRowContainerCtrl != null\n                && this.topCenterRowContainerCtrl != null\n                && this.topLeftRowContainerCtrl != null\n                && this.topRightRowContainerCtrl != null\n                && this.centerHeaderRowContainerCtrl != null\n                && this.leftHeaderRowContainerCtrl != null\n                && this.rightHeaderRowContainerCtrl != null\n                && this.fakeHScrollCtrl != null\n                && this.gridHeaderCtrl != null;\n        if (this.ready) {\n            var p_1 = this.createReadyParams();\n            this.readyCallbacks.forEach(function (c) { return c(p_1); });\n            this.readyCallbacks.length = 0;\n        }\n    };\n    CtrlsService.prototype.whenReady = function (callback) {\n        if (this.ready) {\n            callback(this.createReadyParams());\n        }\n        else {\n            this.readyCallbacks.push(callback);\n        }\n    };\n    CtrlsService.prototype.createReadyParams = function () {\n        return {\n            centerRowContainerCtrl: this.centerRowContainerCtrl,\n            leftRowContainerCtrl: this.leftRowContainerCtrl,\n            rightRowContainerCtrl: this.rightRowContainerCtrl,\n            bottomCenterRowContainerCtrl: this.bottomCenterRowContainerCtrl,\n            bottomLeftRowContainerCtrl: this.bottomLeftRowContainerCtrl,\n            bottomRightRowContainerCtrl: this.bottomRightRowContainerCtrl,\n            topCenterRowContainerCtrl: this.topCenterRowContainerCtrl,\n            topLeftRowContainerCtrl: this.topLeftRowContainerCtrl,\n            topRightRowContainerCtrl: this.topRightRowContainerCtrl,\n            centerHeaderRowContainerCtrl: this.centerHeaderRowContainerCtrl,\n            leftHeaderRowContainerCtrl: this.leftHeaderRowContainerCtrl,\n            rightHeaderRowContainerCtrl: this.rightHeaderRowContainerCtrl,\n            fakeHScrollCtrl: this.fakeHScrollCtrl,\n            gridBodyCtrl: this.gridBodyCtrl,\n            gridCtrl: this.gridCtrl,\n            gridHeaderCtrl: this.gridHeaderCtrl,\n        };\n    };\n    CtrlsService.prototype.registerFakeHScrollCtrl = function (ctrl) {\n        this.fakeHScrollCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerGridHeaderCtrl = function (gridHeaderCtrl) {\n        this.gridHeaderCtrl = gridHeaderCtrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerCenterRowContainerCtrl = function (ctrl) {\n        this.centerRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerLeftRowContainerCtrl = function (ctrl) {\n        this.leftRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerRightRowContainerCtrl = function (ctrl) {\n        this.rightRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerTopCenterRowContainerCtrl = function (ctrl) {\n        this.topCenterRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerTopLeftRowContainerCon = function (ctrl) {\n        this.topLeftRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerTopRightRowContainerCtrl = function (ctrl) {\n        this.topRightRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerBottomCenterRowContainerCtrl = function (ctrl) {\n        this.bottomCenterRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerBottomLeftRowContainerCtrl = function (ctrl) {\n        this.bottomLeftRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerBottomRightRowContainerCtrl = function (ctrl) {\n        this.bottomRightRowContainerCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerHeaderContainer = function (ctrl, pinned) {\n        switch (pinned) {\n            case Constants.PINNED_LEFT:\n                this.leftHeaderRowContainerCtrl = ctrl;\n                break;\n            case Constants.PINNED_RIGHT:\n                this.rightHeaderRowContainerCtrl = ctrl;\n                break;\n            default:\n                this.centerHeaderRowContainerCtrl = ctrl;\n                break;\n        }\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerGridBodyCtrl = function (ctrl) {\n        this.gridBodyCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.registerGridCtrl = function (ctrl) {\n        this.gridCtrl = ctrl;\n        this.checkReady();\n    };\n    CtrlsService.prototype.getFakeHScrollCtrl = function () {\n        return this.fakeHScrollCtrl;\n    };\n    CtrlsService.prototype.getGridHeaderCtrl = function () {\n        return this.gridHeaderCtrl;\n    };\n    CtrlsService.prototype.getGridCtrl = function () {\n        return this.gridCtrl;\n    };\n    CtrlsService.prototype.getCenterRowContainerCtrl = function () {\n        return this.centerRowContainerCtrl;\n    };\n    CtrlsService.prototype.getTopCenterRowContainerCtrl = function () {\n        return this.topCenterRowContainerCtrl;\n    };\n    CtrlsService.prototype.getBottomCenterRowContainerCtrl = function () {\n        return this.bottomCenterRowContainerCtrl;\n    };\n    CtrlsService.prototype.getGridBodyCtrl = function () {\n        return this.gridBodyCtrl;\n    };\n    CtrlsService.prototype.getHeaderRowContainerCtrls = function () {\n        return [this.leftHeaderRowContainerCtrl, this.rightHeaderRowContainerCtrl, this.centerHeaderRowContainerCtrl];\n    };\n    CtrlsService.prototype.getHeaderRowContainerCtrl = function (pinned) {\n        switch (pinned) {\n            case Constants.PINNED_LEFT: return this.leftHeaderRowContainerCtrl;\n            case Constants.PINNED_RIGHT: return this.rightHeaderRowContainerCtrl;\n            default: return this.centerHeaderRowContainerCtrl;\n        }\n    };\n    var CtrlsService_1;\n    CtrlsService.NAME = 'ctrlsService';\n    CtrlsService = CtrlsService_1 = __decorate$2h([\n        Bean(CtrlsService_1.NAME)\n    ], CtrlsService);\n    return CtrlsService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2B = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CtrlsFactory = /** @class */ (function (_super) {\n    __extends$2B(CtrlsFactory, _super);\n    function CtrlsFactory() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.registry = {};\n        return _this;\n    }\n    CtrlsFactory.prototype.register = function (meta) {\n        this.registry[meta.controllerName] = meta.controllerClass;\n    };\n    CtrlsFactory.prototype.getInstance = function (name) {\n        var ControllerClass = this.registry[name];\n        if (ControllerClass == null) {\n            return undefined;\n        }\n        return new ControllerClass();\n    };\n    CtrlsFactory = __decorate$2i([\n        Bean('ctrlsFactory')\n    ], CtrlsFactory);\n    return CtrlsFactory;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2C = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FakeHScrollCtrl = /** @class */ (function (_super) {\n    __extends$2C(FakeHScrollCtrl, _super);\n    function FakeHScrollCtrl() {\n        return _super.call(this) || this;\n    }\n    FakeHScrollCtrl.prototype.setComp = function (view, eGui, eViewport, eContainer) {\n        this.view = view;\n        this.eViewport = eViewport;\n        this.eContainer = eContainer;\n        this.eGui = eGui;\n        this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this));\n        this.onScrollVisibilityChanged();\n        // When doing printing, this changes whether cols are pinned or not\n        var spacerWidthsListener = this.setFakeHScrollSpacerWidths.bind(this);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, spacerWidthsListener);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, spacerWidthsListener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, spacerWidthsListener);\n        this.setFakeHScrollSpacerWidths();\n        if (this.invisibleScrollbar) {\n            this.hideAndShowInvisibleScrollAsNeeded();\n            this.addActiveListenerToggles();\n        }\n        this.ctrlsService.registerFakeHScrollCtrl(this);\n    };\n    FakeHScrollCtrl.prototype.addActiveListenerToggles = function () {\n        var _this = this;\n        var activateEvents = ['mouseenter', 'mousedown', 'touchstart'];\n        var deactivateEvents = ['mouseleave', 'mouseup', 'touchend'];\n        activateEvents.forEach(function (eventName) { return _this.addManagedListener(_this.eGui, eventName, function () { return _this.view.addOrRemoveCssClass('ag-scrollbar-active', true); }); });\n        deactivateEvents.forEach(function (eventName) { return _this.addManagedListener(_this.eGui, eventName, function () { return _this.view.addOrRemoveCssClass('ag-scrollbar-active', false); }); });\n    };\n    FakeHScrollCtrl.prototype.postConstruct = function () {\n        this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n        this.invisibleScrollbar = isInvisibleScrollbar();\n    };\n    FakeHScrollCtrl.prototype.onScrollVisibilityChanged = function () {\n        this.setScrollVisible();\n        this.setFakeHScrollSpacerWidths();\n    };\n    FakeHScrollCtrl.prototype.hideAndShowInvisibleScrollAsNeeded = function () {\n        var _this = this;\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, function (params) {\n            if (params.direction === 'horizontal') {\n                _this.view.addOrRemoveCssClass('ag-scrollbar-scrolling', true);\n            }\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL_END, function () { return _this.view.addOrRemoveCssClass('ag-scrollbar-scrolling', false); });\n    };\n    FakeHScrollCtrl.prototype.setFakeHScrollSpacerWidths = function () {\n        var vScrollShowing = this.scrollVisibleService.isVerticalScrollShowing();\n        // we pad the right based on a) if cols are pinned to the right and\n        // b) if v scroll is showing on the right (normal position of scroll)\n        var rightSpacing = this.columnModel.getDisplayedColumnsRightWidth();\n        var scrollOnRight = !this.enableRtl && vScrollShowing;\n        var scrollbarWidth = this.gridOptionsWrapper.getScrollbarWidth();\n        if (scrollOnRight) {\n            rightSpacing += scrollbarWidth;\n        }\n        this.view.setRightSpacerFixedWidth(rightSpacing);\n        this.view.includeRightSpacerScrollerCss('ag-scroller-corner', rightSpacing <= scrollbarWidth);\n        // we pad the left based on a) if cols are pinned to the left and\n        // b) if v scroll is showing on the left (happens in LTR layout only)\n        var leftSpacing = this.columnModel.getDisplayedColumnsLeftWidth();\n        var scrollOnLeft = this.enableRtl && vScrollShowing;\n        if (scrollOnLeft) {\n            leftSpacing += scrollbarWidth;\n        }\n        this.view.setLeftSpacerFixedWidth(leftSpacing);\n        this.view.includeLeftSpacerScrollerCss('ag-scroller-corner', leftSpacing <= scrollbarWidth);\n    };\n    FakeHScrollCtrl.prototype.setScrollVisible = function () {\n        var hScrollShowing = this.scrollVisibleService.isHorizontalScrollShowing();\n        var invisibleScrollbar = this.invisibleScrollbar;\n        var isSuppressHorizontalScroll = this.gridOptionsWrapper.isSuppressHorizontalScroll();\n        var scrollbarWidth = hScrollShowing ? (this.gridOptionsWrapper.getScrollbarWidth() || 0) : 0;\n        var adjustedScrollbarWidth = (scrollbarWidth === 0 && invisibleScrollbar) ? 15 : scrollbarWidth;\n        var scrollContainerSize = !isSuppressHorizontalScroll ? adjustedScrollbarWidth : 0;\n        this.view.addOrRemoveCssClass('ag-scrollbar-invisible', invisibleScrollbar);\n        this.view.setHeight(scrollContainerSize);\n        this.view.setViewportHeight(scrollContainerSize);\n        this.view.setContainerHeight(scrollContainerSize);\n    };\n    FakeHScrollCtrl.prototype.getViewport = function () {\n        return this.eViewport;\n    };\n    FakeHScrollCtrl.prototype.getContainer = function () {\n        return this.eContainer;\n    };\n    __decorate$2j([\n        Autowired('scrollVisibleService')\n    ], FakeHScrollCtrl.prototype, \"scrollVisibleService\", void 0);\n    __decorate$2j([\n        Autowired('columnModel')\n    ], FakeHScrollCtrl.prototype, \"columnModel\", void 0);\n    __decorate$2j([\n        Autowired('ctrlsService')\n    ], FakeHScrollCtrl.prototype, \"ctrlsService\", void 0);\n    __decorate$2j([\n        PostConstruct\n    ], FakeHScrollCtrl.prototype, \"postConstruct\", null);\n    return FakeHScrollCtrl;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2D = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FakeHScrollComp = /** @class */ (function (_super) {\n    __extends$2D(FakeHScrollComp, _super);\n    function FakeHScrollComp() {\n        return _super.call(this, FakeHScrollComp.TEMPLATE) || this;\n    }\n    FakeHScrollComp.prototype.postConstruct = function () {\n        var _this = this;\n        var compProxy = {\n            addOrRemoveCssClass: function (cssClassName, on) { return _this.addOrRemoveCssClass(cssClassName, on); },\n            setHeight: function (height) { return setFixedHeight(_this.getGui(), height); },\n            setContainerHeight: function (height) { return setFixedHeight(_this.eContainer, height); },\n            setViewportHeight: function (height) { return setFixedHeight(_this.eViewport, height); },\n            setRightSpacerFixedWidth: function (width) { return setFixedWidth(_this.eRightSpacer, width); },\n            setLeftSpacerFixedWidth: function (width) { return setFixedWidth(_this.eLeftSpacer, width); },\n            includeLeftSpacerScrollerCss: function (cssClass, include) {\n                return _this.eLeftSpacer.classList.toggle(cssClass, include);\n            },\n            includeRightSpacerScrollerCss: function (cssClass, include) {\n                return _this.eRightSpacer.classList.toggle(cssClass, include);\n            },\n        };\n        var ctrl = this.createManagedBean(new FakeHScrollCtrl());\n        ctrl.setComp(compProxy, this.getGui(), this.eViewport, this.eContainer);\n        this.createManagedBean(new CenterWidthFeature(function (width) { return _this.eContainer.style.width = width + \"px\"; }));\n    };\n    FakeHScrollComp.TEMPLATE = \"<div class=\\\"ag-body-horizontal-scroll\\\" aria-hidden=\\\"true\\\">\\n            <div class=\\\"ag-horizontal-left-spacer\\\" ref=\\\"eLeftSpacer\\\"></div>\\n            <div class=\\\"ag-body-horizontal-scroll-viewport\\\" ref=\\\"eViewport\\\">\\n                <div class=\\\"ag-body-horizontal-scroll-container\\\" ref=\\\"eContainer\\\"></div>\\n            </div>\\n            <div class=\\\"ag-horizontal-right-spacer\\\" ref=\\\"eRightSpacer\\\"></div>\\n        </div>\";\n    __decorate$2k([\n        RefSelector('eLeftSpacer')\n    ], FakeHScrollComp.prototype, \"eLeftSpacer\", void 0);\n    __decorate$2k([\n        RefSelector('eRightSpacer')\n    ], FakeHScrollComp.prototype, \"eRightSpacer\", void 0);\n    __decorate$2k([\n        RefSelector('eViewport')\n    ], FakeHScrollComp.prototype, \"eViewport\", void 0);\n    __decorate$2k([\n        RefSelector('eContainer')\n    ], FakeHScrollComp.prototype, \"eContainer\", void 0);\n    __decorate$2k([\n        PostConstruct\n    ], FakeHScrollComp.prototype, \"postConstruct\", null);\n    return FakeHScrollComp;\n}(Component));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2E = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar PinnedWidthService = /** @class */ (function (_super) {\n    __extends$2E(PinnedWidthService, _super);\n    function PinnedWidthService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    PinnedWidthService.prototype.postConstruct = function () {\n        var listener = this.checkContainerWidths.bind(this);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n        this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, listener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n    };\n    PinnedWidthService.prototype.checkContainerWidths = function () {\n        var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n        var newLeftWidth = printLayout ? 0 : this.columnModel.getDisplayedColumnsLeftWidth();\n        var newRightWidth = printLayout ? 0 : this.columnModel.getDisplayedColumnsRightWidth();\n        if (newLeftWidth != this.leftWidth) {\n            this.leftWidth = newLeftWidth;\n            this.eventService.dispatchEvent({ type: Events.EVENT_LEFT_PINNED_WIDTH_CHANGED });\n        }\n        if (newRightWidth != this.rightWidth) {\n            this.rightWidth = newRightWidth;\n            this.eventService.dispatchEvent({ type: Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED });\n        }\n    };\n    PinnedWidthService.prototype.getPinnedRightWidth = function () {\n        return this.rightWidth;\n    };\n    PinnedWidthService.prototype.getPinnedLeftWidth = function () {\n        return this.leftWidth;\n    };\n    __decorate$2l([\n        Autowired('columnModel')\n    ], PinnedWidthService.prototype, \"columnModel\", void 0);\n    __decorate$2l([\n        PostConstruct\n    ], PinnedWidthService.prototype, \"postConstruct\", null);\n    PinnedWidthService = __decorate$2l([\n        Bean('pinnedWidthService')\n    ], PinnedWidthService);\n    return PinnedWidthService;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __extends$2F = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RowNodeEventThrottle = /** @class */ (function (_super) {\n    __extends$2F(RowNodeEventThrottle, _super);\n    function RowNodeEventThrottle() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.events = [];\n        return _this;\n    }\n    RowNodeEventThrottle.prototype.postConstruct = function () {\n        if (this.rowModel.getType() == Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            this.clientSideRowModel = this.rowModel;\n        }\n    };\n    // because the user can call rowNode.setExpanded() many times in one VM turn,\n    // we throttle the calls to ClientSideRowModel using animationFrameService. this means for 100\n    // row nodes getting expanded, we only update the CSRM once, and then we fire all events after\n    // CSRM has updated.\n    //\n    // if we did not do this, then the user could call setExpanded on 100+ rows, causing the grid\n    // to re-render 100+ times, which would be a performance lag.\n    //\n    // we use animationFrameService\n    // rather than _.debounce() so this will get done if anyone flushes the animationFrameService\n    // (eg user calls api.ensureRowVisible(), which in turn flushes ).\n    RowNodeEventThrottle.prototype.dispatchExpanded = function (event) {\n        var _this = this;\n        // if not using CSRM, we don't debounce. otherwise this breaks the SSRM.\n        if (this.clientSideRowModel == null) {\n            this.eventService.dispatchEvent(event);\n            return;\n        }\n        this.events.push(event);\n        var func = function () {\n            if (_this.clientSideRowModel) {\n                _this.clientSideRowModel.onRowGroupOpened();\n            }\n            _this.events.forEach(function (e) { return _this.eventService.dispatchEvent(e); });\n            _this.events = [];\n        };\n        if (this.dispatchExpandedDebounced == null) {\n            this.dispatchExpandedDebounced = this.animationFrameService.debounce(func);\n        }\n        this.dispatchExpandedDebounced();\n    };\n    __decorate$2m([\n        Autowired('animationFrameService')\n    ], RowNodeEventThrottle.prototype, \"animationFrameService\", void 0);\n    __decorate$2m([\n        Autowired('rowModel')\n    ], RowNodeEventThrottle.prototype, \"rowModel\", void 0);\n    __decorate$2m([\n        PostConstruct\n    ], RowNodeEventThrottle.prototype, \"postConstruct\", null);\n    RowNodeEventThrottle = __decorate$2m([\n        Bean('rowNodeEventThrottle')\n    ], RowNodeEventThrottle);\n    return RowNodeEventThrottle;\n}(BeanStub));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar __read$h = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$d = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$h(arguments[i]));\n    return ar;\n};\n// creates JavaScript vanilla Grid, including JavaScript (ag-stack) components, which can\n// be wrapped by the framework wrappers\nvar Grid = /** @class */ (function () {\n    function Grid(eGridDiv, gridOptions, params) {\n        if (!gridOptions) {\n            console.error('AG Grid: no gridOptions provided to the grid');\n            return;\n        }\n        this.gridOptions = gridOptions;\n        new GridCoreCreator().create(eGridDiv, gridOptions, function (context) {\n            var gridComp = new GridComp(eGridDiv);\n            context.createBean(gridComp);\n        }, undefined, params);\n    }\n    Grid.prototype.destroy = function () {\n        if (this.gridOptions && this.gridOptions.api) {\n            this.gridOptions.api.destroy();\n        }\n    };\n    return Grid;\n}());\n// created services of grid only, no UI, so frameworks can use this if providing\n// their own UI\nvar GridCoreCreator = /** @class */ (function () {\n    function GridCoreCreator() {\n    }\n    GridCoreCreator.prototype.create = function (eGridDiv, gridOptions, createUi, acceptChanges, params) {\n        var _this = this;\n        var debug = !!gridOptions.debug;\n        var registeredModules = this.getRegisteredModules(params);\n        var beanClasses = this.createBeansList(gridOptions.rowModelType, registeredModules);\n        var providedBeanInstances = this.createProvidedBeans(eGridDiv, gridOptions, params);\n        if (!beanClasses) {\n            return;\n        } // happens when no row model found\n        var contextParams = {\n            providedBeanInstances: providedBeanInstances,\n            beanClasses: beanClasses,\n            debug: debug\n        };\n        var logger = new Logger('AG Grid', function () { return gridOptions.debug; });\n        var contextLogger = new Logger('Context', function () { return contextParams.debug; });\n        var context = new Context(contextParams, contextLogger);\n        var beans = context.getBean('beans');\n        this.registerModuleUserComponents(beans, registeredModules);\n        this.registerStackComponents(beans, registeredModules);\n        this.registerControllers(beans, registeredModules);\n        createUi(context);\n        // we wait until the UI has finished initialising before setting in columns and rows\n        beans.ctrlsService.whenReady(function () {\n            _this.setColumnsAndData(beans);\n            _this.dispatchGridReadyEvent(beans, gridOptions);\n            var isEnterprise = ModuleRegistry.isRegistered(exports.ModuleNames.EnterpriseCoreModule);\n            logger.log(\"initialised successfully, enterprise = \" + isEnterprise);\n        });\n        if (acceptChanges) {\n            acceptChanges(context);\n        }\n    };\n    GridCoreCreator.prototype.registerControllers = function (beans, registeredModules) {\n        registeredModules.forEach(function (module) {\n            if (module.controllers) {\n                module.controllers.forEach(function (meta) { return beans.ctrlsFactory.register(meta); });\n            }\n        });\n    };\n    GridCoreCreator.prototype.registerStackComponents = function (beans, registeredModules) {\n        var agStackComponents = this.createAgStackComponentsList(registeredModules);\n        beans.agStackComponentsRegistry.setupComponents(agStackComponents);\n    };\n    GridCoreCreator.prototype.getRegisteredModules = function (params) {\n        var passedViaConstructor = params ? params.modules : null;\n        var registered = ModuleRegistry.getRegisteredModules();\n        var allModules = [];\n        var mapNames = {};\n        // adds to list and removes duplicates\n        function addModule(moduleBased, mod) {\n            function addIndividualModule(currentModule) {\n                if (!mapNames[currentModule.moduleName]) {\n                    mapNames[currentModule.moduleName] = true;\n                    allModules.push(currentModule);\n                    ModuleRegistry.register(currentModule, moduleBased);\n                }\n            }\n            addIndividualModule(mod);\n            if (mod.dependantModules) {\n                mod.dependantModules.forEach(addModule.bind(null, moduleBased));\n            }\n        }\n        if (passedViaConstructor) {\n            passedViaConstructor.forEach(addModule.bind(null, true));\n        }\n        if (registered) {\n            registered.forEach(addModule.bind(null, !ModuleRegistry.isPackageBased()));\n        }\n        return allModules;\n    };\n    GridCoreCreator.prototype.registerModuleUserComponents = function (beans, registeredModules) {\n        var moduleUserComps = this.extractModuleEntity(registeredModules, function (module) { return module.userComponents ? module.userComponents : []; });\n        moduleUserComps.forEach(function (compMeta) {\n            beans.userComponentRegistry.registerDefaultComponent(compMeta.componentName, compMeta.componentClass);\n        });\n    };\n    GridCoreCreator.prototype.createProvidedBeans = function (eGridDiv, gridOptions, params) {\n        var frameworkOverrides = params ? params.frameworkOverrides : null;\n        if (missing(frameworkOverrides)) {\n            frameworkOverrides = new VanillaFrameworkOverrides();\n        }\n        var seed = {\n            gridOptions: gridOptions,\n            eGridDiv: eGridDiv,\n            globalEventListener: params ? params.globalEventListener : null,\n            frameworkOverrides: frameworkOverrides\n        };\n        if (params && params.providedBeanInstances) {\n            Object.assign(seed, params.providedBeanInstances);\n        }\n        return seed;\n    };\n    GridCoreCreator.prototype.createAgStackComponentsList = function (registeredModules) {\n        var components = [\n            { componentName: 'AgCheckbox', componentClass: AgCheckbox },\n            { componentName: 'AgRadioButton', componentClass: AgRadioButton },\n            { componentName: 'AgToggleButton', componentClass: AgToggleButton },\n            { componentName: 'AgInputTextField', componentClass: AgInputTextField },\n            { componentName: 'AgInputTextArea', componentClass: AgInputTextArea },\n            { componentName: 'AgInputNumberField', componentClass: AgInputNumberField },\n            { componentName: 'AgInputRange', componentClass: AgInputRange },\n            { componentName: 'AgSelect', componentClass: AgSelect },\n            { componentName: 'AgSlider', componentClass: AgSlider },\n            { componentName: 'AgAngleSelect', componentClass: AgAngleSelect },\n            { componentName: 'AgColorPicker', componentClass: AgColorPicker },\n            { componentName: 'AgGridBody', componentClass: GridBodyComp },\n            { componentName: 'AgHeaderRoot', componentClass: GridHeaderComp },\n            { componentName: 'AgPagination', componentClass: PaginationComp },\n            { componentName: 'AgOverlayWrapper', componentClass: OverlayWrapperComponent },\n            { componentName: 'AgGroupComponent', componentClass: AgGroupComponent },\n            { componentName: 'AgPanel', componentClass: AgPanel },\n            { componentName: 'AgDialog', componentClass: AgDialog },\n            { componentName: 'AgRowContainer', componentClass: RowContainerComp },\n            { componentName: 'AgFakeHorizontalScroll', componentClass: FakeHScrollComp }\n        ];\n        var moduleAgStackComps = this.extractModuleEntity(registeredModules, function (module) { return module.agStackComponents ? module.agStackComponents : []; });\n        components = components.concat(moduleAgStackComps);\n        return components;\n    };\n    GridCoreCreator.prototype.createBeansList = function (rowModelType, registeredModules) {\n        var rowModelClass = this.getRowModelClass(rowModelType, registeredModules);\n        if (!rowModelClass) {\n            return;\n        }\n        // beans should only contain SERVICES, it should NEVER contain COMPONENTS\n        var beans = [\n            rowModelClass, Beans, RowPositionUtils, CellPositionUtils, HeaderPositionUtils,\n            PaginationAutoPageSizeService, GridApi, UserComponentRegistry, AgComponentUtils,\n            ComponentMetadataProvider, ResizeObserverService, UserComponentFactory,\n            RowContainerHeightService, HorizontalResizeService,\n            PinnedRowModel, DragService, DisplayedGroupCreator, EventService, GridOptionsWrapper,\n            PopupService, SelectionService, FilterManager, ColumnModel, HeaderNavigationService,\n            PaginationProxy, RowRenderer, ExpressionService, ColumnFactory, TemplateService,\n            AlignedGridsService, NavigationService, ValueCache, ValueService, LoggerFactory,\n            ColumnUtils, AutoWidthCalculator, StandardMenuFactory, DragAndDropService, ColumnApi,\n            FocusService, MouseEventService, Environment, CellNavigationService, ValueFormatterService,\n            StylingService, ScrollVisibleService, SortController, ColumnHoverService, ColumnAnimationService,\n            SelectableService, AutoGroupColService, ChangeDetectionService, AnimationFrameService,\n            UndoRedoService, AgStackComponentsRegistry, ColumnDefFactory,\n            RowCssClassCalculator, RowNodeBlockLoader, RowNodeSorter, CtrlsService,\n            PinnedWidthService, RowNodeEventThrottle, CtrlsFactory\n        ];\n        var moduleBeans = this.extractModuleEntity(registeredModules, function (module) { return module.beans ? module.beans : []; });\n        beans.push.apply(beans, __spread$d(moduleBeans));\n        // check for duplicates, as different modules could include the same beans that\n        // they depend on, eg ClientSideRowModel in enterprise, and ClientSideRowModel in community\n        var beansNoDuplicates = [];\n        beans.forEach(function (bean) {\n            if (beansNoDuplicates.indexOf(bean) < 0) {\n                beansNoDuplicates.push(bean);\n            }\n        });\n        return beansNoDuplicates;\n    };\n    GridCoreCreator.prototype.extractModuleEntity = function (moduleEntities, extractor) {\n        return [].concat.apply([], __spread$d(moduleEntities.map(extractor)));\n    };\n    GridCoreCreator.prototype.setColumnsAndData = function (beans) {\n        var columnDefs = beans.gridOptionsWrapper.getColumnDefs();\n        beans.columnModel.setColumnDefs(columnDefs || [], \"gridInitializing\");\n        beans.rowModel.start();\n    };\n    GridCoreCreator.prototype.dispatchGridReadyEvent = function (beans, gridOptions) {\n        var readyEvent = {\n            type: Events.EVENT_GRID_READY,\n            api: gridOptions.api,\n            columnApi: gridOptions.columnApi\n        };\n        beans.eventService.dispatchEvent(readyEvent);\n    };\n    GridCoreCreator.prototype.getRowModelClass = function (rowModelType, registeredModules) {\n        // default to client side\n        if (!rowModelType) {\n            rowModelType = Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n        }\n        var rowModelClasses = {};\n        registeredModules.forEach(function (module) {\n            iterateObject(module.rowModels, function (key, value) {\n                rowModelClasses[key] = value;\n            });\n        });\n        var rowModelClass = rowModelClasses[rowModelType];\n        if (exists(rowModelClass)) {\n            return rowModelClass;\n        }\n        if (ModuleRegistry.isPackageBased()) {\n            if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType))\n                // If package based only the enterprise row models could be missing.\n                console.error(\"AG Grid: Row Model \\\"\" + rowModelType + \"\\\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/\");\n            else {\n                console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);\n            }\n        }\n        else {\n            if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {\n                console.error(\"AG Grid: Row Model \\\"Infinite\\\" not found. Please ensure the \" + exports.ModuleNames.InfiniteRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n            }\n            else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {\n                console.error(\"AG Grid: Row Model \\\"Viewport\\\" not found. Please ensure the AG Grid Enterprise Module \" + exports.ModuleNames.ViewportRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n            }\n            else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {\n                console.error(\"AG Grid: Row Model \\\"Server Side\\\" not found. Please ensure the AG Grid Enterprise Module \" + exports.ModuleNames.ServerSideRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n            }\n            else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n                console.error(\"AG Grid: Row Model \\\"Client Side\\\" not found. Please ensure the \" + exports.ModuleNames.ClientSideRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n            }\n            else {\n                console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);\n            }\n        }\n    };\n    return GridCoreCreator;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nfunction defaultGroupComparator(valueA, valueB, nodeA, nodeB, accentedCompare) {\n    if (accentedCompare === void 0) { accentedCompare = false; }\n    console.warn('AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef');\n    var nodeAIsGroup = exists(nodeA) && nodeA.group;\n    var nodeBIsGroup = exists(nodeB) && nodeB.group;\n    var bothAreGroups = nodeAIsGroup && nodeBIsGroup;\n    var bothAreNormal = !nodeAIsGroup && !nodeBIsGroup;\n    if (bothAreGroups) {\n        return defaultComparator(nodeA.key, nodeB.key, accentedCompare);\n    }\n    if (bothAreNormal) {\n        return defaultComparator(valueA, valueB, accentedCompare);\n    }\n    if (nodeAIsGroup) {\n        return 1;\n    }\n    return -1;\n}\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar BaseComponentWrapper = /** @class */ (function () {\n    function BaseComponentWrapper() {\n    }\n    BaseComponentWrapper.prototype.wrap = function (OriginalConstructor, mandatoryMethodList, optionalMethodList, componentType) {\n        var _this = this;\n        if (optionalMethodList === void 0) { optionalMethodList = []; }\n        var wrapper = this.createWrapper(OriginalConstructor, componentType);\n        mandatoryMethodList.forEach((function (methodName) {\n            _this.createMethod(wrapper, methodName, true);\n        }));\n        optionalMethodList.forEach((function (methodName) {\n            _this.createMethod(wrapper, methodName, false);\n        }));\n        return wrapper;\n    };\n    BaseComponentWrapper.prototype.unwrap = function (comp) {\n        return comp;\n    };\n    BaseComponentWrapper.prototype.createMethod = function (wrapper, methodName, mandatory) {\n        wrapper.addMethod(methodName, this.createMethodProxy(wrapper, methodName, mandatory));\n    };\n    BaseComponentWrapper.prototype.createMethodProxy = function (wrapper, methodName, mandatory) {\n        return function () {\n            if (wrapper.hasMethod(methodName)) {\n                return wrapper.callMethod(methodName, arguments);\n            }\n            if (mandatory) {\n                console.warn('AG Grid: Framework component is missing the method ' + methodName + '()');\n            }\n            return null;\n        };\n    };\n    return BaseComponentWrapper;\n}());\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n(function (BarColumnLabelPlacement) {\n    BarColumnLabelPlacement[\"InsideBase\"] = \"insideBase\";\n    BarColumnLabelPlacement[\"InsideEnd\"] = \"insideEnd\";\n    BarColumnLabelPlacement[\"Center\"] = \"center\";\n    BarColumnLabelPlacement[\"OutsideEnd\"] = \"outsideEnd\";\n})(exports.BarColumnLabelPlacement || (exports.BarColumnLabelPlacement = {}));\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v27.3.0\n * @link https://www.ag-grid.com/\n * @license MIT\n */\nvar globalObj = typeof global === 'undefined' ? {} : global;\nglobalObj.HTMLElement = typeof HTMLElement === 'undefined' ? {} : HTMLElement;\nglobalObj.HTMLButtonElement = typeof HTMLButtonElement === 'undefined' ? {} : HTMLButtonElement;\nglobalObj.HTMLSelectElement = typeof HTMLSelectElement === 'undefined' ? {} : HTMLSelectElement;\nglobalObj.HTMLInputElement = typeof HTMLInputElement === 'undefined' ? {} : HTMLInputElement;\nglobalObj.Node = typeof Node === 'undefined' ? {} : Node;\nglobalObj.MouseEvent = typeof MouseEvent === 'undefined' ? {} : MouseEvent;\n\nvar __read$i = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread$e = (undefined && undefined.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$i(arguments[i]));\n    return ar;\n};\nvar ClientSideNodeManager = /** @class */ (function () {\n    function ClientSideNodeManager(rootNode, gridOptionsWrapper, eventService, columnModel, gridApi, columnApi, selectionService, beans) {\n        this.nextId = 0;\n        // when user is provide the id's, we also keep a map of ids to row nodes for convenience\n        this.allNodesMap = {};\n        this.rootNode = rootNode;\n        this.gridOptionsWrapper = gridOptionsWrapper;\n        this.eventService = eventService;\n        this.columnModel = columnModel;\n        this.gridApi = gridApi;\n        this.columnApi = columnApi;\n        this.beans = beans;\n        this.selectionService = selectionService;\n        this.rootNode.group = true;\n        this.rootNode.level = -1;\n        this.rootNode.id = ClientSideNodeManager.ROOT_NODE_ID;\n        this.rootNode.allLeafChildren = [];\n        this.rootNode.childrenAfterGroup = [];\n        this.rootNode.childrenAfterSort = [];\n        this.rootNode.childrenAfterAggFilter = [];\n        this.rootNode.childrenAfterFilter = [];\n        // if we make this class a bean, then can annotate postConstruct\n        this.postConstruct();\n    }\n    // @PostConstruct - this is not a bean, so postConstruct called by constructor\n    ClientSideNodeManager.prototype.postConstruct = function () {\n        // func below doesn't have 'this' pointer, so need to pull out these bits\n        this.suppressParentsInRowNodes = this.gridOptionsWrapper.isSuppressParentsInRowNodes();\n        this.isRowMasterFunc = this.gridOptionsWrapper.getIsRowMasterFunc();\n        this.doingTreeData = this.gridOptionsWrapper.isTreeData();\n        this.doingMasterDetail = this.gridOptionsWrapper.isMasterDetail();\n    };\n    ClientSideNodeManager.prototype.getCopyOfNodesMap = function () {\n        return _.cloneObject(this.allNodesMap);\n    };\n    ClientSideNodeManager.prototype.getRowNode = function (id) {\n        return this.allNodesMap[id];\n    };\n    ClientSideNodeManager.prototype.setRowData = function (rowData) {\n        var _this = this;\n        if (typeof rowData === 'string') {\n            console.warn('AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first');\n            return;\n        }\n        var rootNode = this.rootNode;\n        var sibling = this.rootNode.sibling;\n        rootNode.childrenAfterFilter = null;\n        rootNode.childrenAfterGroup = null;\n        rootNode.childrenAfterAggFilter = null;\n        rootNode.childrenAfterSort = null;\n        rootNode.childrenMapped = null;\n        rootNode.updateHasChildren();\n        this.nextId = 0;\n        this.allNodesMap = {};\n        if (rowData) {\n            // we use rootNode as the parent, however if using ag-grid-enterprise, the grouping stage\n            // sets the parent node on each row (even if we are not grouping). so setting parent node\n            // here is for benefit of ag-grid-community users\n            rootNode.allLeafChildren = rowData.map(function (dataItem) { return _this.createNode(dataItem, _this.rootNode, ClientSideNodeManager.TOP_LEVEL); });\n        }\n        else {\n            rootNode.allLeafChildren = [];\n            rootNode.childrenAfterGroup = [];\n        }\n        if (sibling) {\n            sibling.childrenAfterFilter = rootNode.childrenAfterFilter;\n            sibling.childrenAfterGroup = rootNode.childrenAfterGroup;\n            sibling.childrenAfterAggFilter = rootNode.childrenAfterAggFilter;\n            sibling.childrenAfterSort = rootNode.childrenAfterSort;\n            sibling.childrenMapped = rootNode.childrenMapped;\n            sibling.allLeafChildren = rootNode.allLeafChildren;\n        }\n    };\n    ClientSideNodeManager.prototype.updateRowData = function (rowDataTran, rowNodeOrder) {\n        var rowNodeTransaction = {\n            remove: [],\n            update: [],\n            add: []\n        };\n        var nodesToUnselect = [];\n        this.executeRemove(rowDataTran, rowNodeTransaction, nodesToUnselect);\n        this.executeUpdate(rowDataTran, rowNodeTransaction, nodesToUnselect);\n        this.executeAdd(rowDataTran, rowNodeTransaction);\n        this.updateSelection(nodesToUnselect);\n        if (rowNodeOrder) {\n            _.sortRowNodesByOrder(this.rootNode.allLeafChildren, rowNodeOrder);\n        }\n        return rowNodeTransaction;\n    };\n    ClientSideNodeManager.prototype.updateSelection = function (nodesToUnselect) {\n        var selectionChanged = nodesToUnselect.length > 0;\n        if (selectionChanged) {\n            nodesToUnselect.forEach(function (rowNode) {\n                rowNode.setSelected(false, false, true);\n            });\n        }\n        // we do this regardless of nodes to unselect or not, as it's possible\n        // a new node was inserted, so a parent that was previously selected (as all\n        // children were selected) should not be tri-state (as new one unselected against\n        // all other selected children).\n        this.selectionService.updateGroupsFromChildrenSelections();\n        if (selectionChanged) {\n            var event_1 = {\n                type: Events.EVENT_SELECTION_CHANGED,\n                api: this.gridApi,\n                columnApi: this.columnApi\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n    };\n    ClientSideNodeManager.prototype.executeAdd = function (rowDataTran, rowNodeTransaction) {\n        var _this = this;\n        var add = rowDataTran.add, addIndex = rowDataTran.addIndex;\n        if (_.missingOrEmpty(add)) {\n            return;\n        }\n        // create new row nodes for each data item\n        var newNodes = add.map(function (item) { return _this.createNode(item, _this.rootNode, ClientSideNodeManager.TOP_LEVEL); });\n        // add new row nodes to the root nodes 'allLeafChildren'\n        var useIndex = typeof addIndex === 'number' && addIndex >= 0;\n        var nodesBeforeIndex;\n        var nodesAfterIndex;\n        if (useIndex) {\n            // new rows are inserted in one go by concatenating them in between the existing rows at the desired index.\n            // this is much faster than splicing them individually into 'allLeafChildren' when there are large inserts.\n            // allLeafChildren can be out of order, so we loop over all the Nodes to find the correct index that\n            // represents the position `addIndex` intended to be.\n            var allLeafChildren_1 = this.rootNode.allLeafChildren;\n            // if addIndex is 0, it should always be added at the start of the array\n            // there is no need to verify the order of node by nodeIndex.\n            var normalizedAddIndex = addIndex === 0 ? 0 : (allLeafChildren_1.reduce(function (prevIdx, currNode, currIdx) {\n                var _a;\n                var rowIndex = currNode.rowIndex;\n                var prevValueAtIndex = (_a = allLeafChildren_1[prevIdx]) === null || _a === void 0 ? void 0 : _a.rowIndex;\n                var shouldUpdateIndex = rowIndex != null && prevValueAtIndex != null && rowIndex < addIndex && rowIndex > prevValueAtIndex;\n                return shouldUpdateIndex ? currIdx : prevIdx;\n            }, 0) + 1);\n            nodesBeforeIndex = allLeafChildren_1.slice(0, normalizedAddIndex);\n            nodesAfterIndex = allLeafChildren_1.slice(normalizedAddIndex, allLeafChildren_1.length);\n        }\n        else {\n            nodesBeforeIndex = this.rootNode.allLeafChildren;\n            nodesAfterIndex = [];\n        }\n        this.rootNode.allLeafChildren = __spread$e(nodesBeforeIndex, newNodes, nodesAfterIndex);\n        if (this.rootNode.sibling) {\n            this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren;\n        }\n        // add new row nodes to the transaction add items\n        rowNodeTransaction.add = newNodes;\n    };\n    ClientSideNodeManager.prototype.executeRemove = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n        var _this = this;\n        var remove = rowDataTran.remove;\n        if (_.missingOrEmpty(remove)) {\n            return;\n        }\n        var rowIdsRemoved = {};\n        remove.forEach(function (item) {\n            var rowNode = _this.lookupRowNode(item);\n            if (!rowNode) {\n                return;\n            }\n            // do delete - setting 'suppressFinishActions = true' to ensure EVENT_SELECTION_CHANGED is not raised for\n            // each row node updated, instead it is raised once by the calling code if any selected nodes exist.\n            if (rowNode.isSelected()) {\n                nodesToUnselect.push(rowNode);\n            }\n            // so row renderer knows to fade row out (and not reposition it)\n            rowNode.clearRowTopAndRowIndex();\n            // NOTE: were we could remove from allLeaveChildren, however _.removeFromArray() is expensive, especially\n            // if called multiple times (eg deleting lots of rows) and if allLeafChildren is a large list\n            rowIdsRemoved[rowNode.id] = true;\n            // _.removeFromArray(this.rootNode.allLeafChildren, rowNode);\n            delete _this.allNodesMap[rowNode.id];\n            rowNodeTransaction.remove.push(rowNode);\n        });\n        this.rootNode.allLeafChildren = this.rootNode.allLeafChildren.filter(function (rowNode) { return !rowIdsRemoved[rowNode.id]; });\n        if (this.rootNode.sibling) {\n            this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren;\n        }\n    };\n    ClientSideNodeManager.prototype.executeUpdate = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n        var _this = this;\n        var update = rowDataTran.update;\n        if (_.missingOrEmpty(update)) {\n            return;\n        }\n        update.forEach(function (item) {\n            var rowNode = _this.lookupRowNode(item);\n            if (!rowNode) {\n                return;\n            }\n            rowNode.updateData(item);\n            if (!rowNode.selectable && rowNode.isSelected()) {\n                nodesToUnselect.push(rowNode);\n            }\n            _this.setMasterForRow(rowNode, item, ClientSideNodeManager.TOP_LEVEL, false);\n            rowNodeTransaction.update.push(rowNode);\n        });\n    };\n    ClientSideNodeManager.prototype.lookupRowNode = function (data) {\n        var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n        var rowNode;\n        if (getRowIdFunc) {\n            // find rowNode using id\n            var id = getRowIdFunc({ data: data, level: 0 });\n            rowNode = this.allNodesMap[id];\n            if (!rowNode) {\n                console.error(\"AG Grid: could not find row id=\" + id + \", data item was not found for this id\");\n                return null;\n            }\n        }\n        else {\n            // find rowNode using object references\n            rowNode = this.rootNode.allLeafChildren.find(function (node) { return node.data === data; });\n            if (!rowNode) {\n                console.error(\"AG Grid: could not find data item as object was not found\", data);\n                console.error(\"Consider using getRowId to help the Grid find matching row data\");\n                return null;\n            }\n        }\n        return rowNode || null;\n    };\n    ClientSideNodeManager.prototype.createNode = function (dataItem, parent, level) {\n        var node = new RowNode(this.beans);\n        node.group = false;\n        this.setMasterForRow(node, dataItem, level, true);\n        if (parent && !this.suppressParentsInRowNodes) {\n            node.parent = parent;\n        }\n        node.level = level;\n        node.setDataAndId(dataItem, this.nextId.toString());\n        if (this.allNodesMap[node.id]) {\n            console.warn(\"AG Grid: duplicate node id '\" + node.id + \"' detected from getRowId callback, this could cause issues in your grid.\");\n        }\n        this.allNodesMap[node.id] = node;\n        this.nextId++;\n        return node;\n    };\n    ClientSideNodeManager.prototype.setMasterForRow = function (rowNode, data, level, setExpanded) {\n        if (this.doingTreeData) {\n            rowNode.setMaster(false);\n            if (setExpanded) {\n                rowNode.expanded = false;\n            }\n        }\n        else {\n            // this is the default, for when doing grid data\n            if (this.doingMasterDetail) {\n                // if we are doing master detail, then the\n                // default is that everything can be a Master Row.\n                if (this.isRowMasterFunc) {\n                    rowNode.setMaster(this.isRowMasterFunc(data));\n                }\n                else {\n                    rowNode.setMaster(true);\n                }\n            }\n            else {\n                rowNode.setMaster(false);\n            }\n            if (setExpanded) {\n                var rowGroupColumns = this.columnModel.getRowGroupColumns();\n                var numRowGroupColumns = rowGroupColumns ? rowGroupColumns.length : 0;\n                // need to take row group into account when determining level\n                var masterRowLevel = level + numRowGroupColumns;\n                rowNode.expanded = rowNode.master ? this.isExpanded(masterRowLevel) : false;\n            }\n        }\n    };\n    ClientSideNodeManager.prototype.isExpanded = function (level) {\n        var expandByDefault = this.gridOptionsWrapper.getGroupDefaultExpanded();\n        if (expandByDefault === -1) {\n            return true;\n        }\n        return level < expandByDefault;\n    };\n    ClientSideNodeManager.TOP_LEVEL = 0;\n    ClientSideNodeManager.ROOT_NODE_ID = 'ROOT_NODE_ID';\n    return ClientSideNodeManager;\n}());\n\nvar __extends$2G = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar RecursionType;\n(function (RecursionType) {\n    RecursionType[RecursionType[\"Normal\"] = 0] = \"Normal\";\n    RecursionType[RecursionType[\"AfterFilter\"] = 1] = \"AfterFilter\";\n    RecursionType[RecursionType[\"AfterFilterAndSort\"] = 2] = \"AfterFilterAndSort\";\n    RecursionType[RecursionType[\"PivotNodes\"] = 3] = \"PivotNodes\";\n})(RecursionType || (RecursionType = {}));\nvar ClientSideRowModel = /** @class */ (function (_super) {\n    __extends$2G(ClientSideRowModel, _super);\n    function ClientSideRowModel() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ClientSideRowModel.prototype.init = function () {\n        var refreshEverythingFunc = this.refreshModel.bind(this, { step: exports.ClientSideRowModelSteps.EVERYTHING });\n        var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n        var refreshEverythingAfterColsChangedFunc = this.refreshModel.bind(this, {\n            step: exports.ClientSideRowModelSteps.EVERYTHING,\n            afterColumnsChanged: true,\n            keepRenderedRows: true,\n            animate: animate\n        });\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refreshEverythingAfterColsChangedFunc);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, refreshEverythingFunc);\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.onValueChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.refreshModel.bind(this, { step: exports.ClientSideRowModelSteps.PIVOT }));\n        this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, refreshEverythingFunc);\n        var refreshMapListener = this.refreshModel.bind(this, {\n            step: exports.ClientSideRowModelSteps.MAP,\n            keepRenderedRows: true,\n            animate: animate\n        });\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN, refreshMapListener);\n        this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN, refreshMapListener);\n        this.rootNode = new RowNode(this.beans);\n        this.nodeManager = new ClientSideNodeManager(this.rootNode, this.gridOptionsWrapper, this.eventService, this.columnModel, this.gridApi, this.columnApi, this.selectionService, this.beans);\n    };\n    ClientSideRowModel.prototype.start = function () {\n        var rowData = this.gridOptionsWrapper.getRowData();\n        if (rowData) {\n            this.setRowData(rowData);\n        }\n    };\n    ClientSideRowModel.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n        var atLeastOneChange;\n        var res = false;\n        // we do this multiple times as changing the row heights can also change the first and last rows,\n        // so the first pass can make lots of rows smaller, which means the second pass we end up changing\n        // more rows.\n        do {\n            atLeastOneChange = false;\n            var rowAtStartPixel = this.getRowIndexAtPixel(startPixel);\n            var rowAtEndPixel = this.getRowIndexAtPixel(endPixel);\n            // keep check to current page if doing pagination\n            var firstRow = Math.max(rowAtStartPixel, startLimitIndex);\n            var lastRow = Math.min(rowAtEndPixel, endLimitIndex);\n            for (var rowIndex = firstRow; rowIndex <= lastRow; rowIndex++) {\n                var rowNode = this.getRow(rowIndex);\n                if (rowNode.rowHeightEstimated) {\n                    var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(rowNode);\n                    rowNode.setRowHeight(rowHeight.height);\n                    atLeastOneChange = true;\n                    res = true;\n                }\n            }\n            if (atLeastOneChange) {\n                this.setRowTopAndRowIndex();\n            }\n        } while (atLeastOneChange);\n        return res;\n    };\n    ClientSideRowModel.prototype.setRowTopAndRowIndex = function () {\n        var defaultRowHeight = this.gridOptionsWrapper.getDefaultRowHeight();\n        var nextRowTop = 0;\n        // mapping displayed rows is not needed for this method, however it's used in\n        // clearRowTopAndRowIndex(), and given we are looping through this.rowsToDisplay here,\n        // we create the map here for performance reasons, so we don't loop a second time\n        // in clearRowTopAndRowIndex()\n        var displayedRowsMapped = new Set();\n        // we don't estimate if doing fullHeight or autoHeight, as all rows get rendered all the time\n        // with these two layouts.\n        var allowEstimate = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n        for (var i = 0; i < this.rowsToDisplay.length; i++) {\n            var rowNode = this.rowsToDisplay[i];\n            if (rowNode.id != null) {\n                displayedRowsMapped.add(rowNode.id);\n            }\n            if (rowNode.rowHeight == null) {\n                var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(rowNode, allowEstimate, defaultRowHeight);\n                rowNode.setRowHeight(rowHeight.height, rowHeight.estimated);\n            }\n            rowNode.setRowTop(nextRowTop);\n            rowNode.setRowIndex(i);\n            nextRowTop += rowNode.rowHeight;\n        }\n        return displayedRowsMapped;\n    };\n    ClientSideRowModel.prototype.clearRowTopAndRowIndex = function (changedPath, displayedRowsMapped) {\n        var changedPathActive = changedPath.isActive();\n        var clearIfNotDisplayed = function (rowNode) {\n            if (rowNode && rowNode.id != null && !displayedRowsMapped.has(rowNode.id)) {\n                rowNode.clearRowTopAndRowIndex();\n            }\n        };\n        var recurse = function (rowNode) {\n            clearIfNotDisplayed(rowNode);\n            clearIfNotDisplayed(rowNode.detailNode);\n            clearIfNotDisplayed(rowNode.sibling);\n            if (rowNode.hasChildren()) {\n                if (rowNode.childrenAfterGroup) {\n                    // if a changedPath is active, it means we are here because of a transaction update or\n                    // a change detection. neither of these impacts the open/closed state of groups. so if\n                    // a group is not open this time, it was not open last time. so we know all closed groups\n                    // already have their top positions cleared. so there is no need to traverse all the way\n                    // when changedPath is active and the rowNode is not expanded.\n                    var isRootNode = rowNode.level == -1; // we need to give special consideration for root node,\n                    // as expanded=undefined for root node\n                    var skipChildren = changedPathActive && !isRootNode && !rowNode.expanded;\n                    if (!skipChildren) {\n                        rowNode.childrenAfterGroup.forEach(recurse);\n                    }\n                }\n            }\n        };\n        recurse(this.rootNode);\n    };\n    // returns false if row was moved, otherwise true\n    ClientSideRowModel.prototype.ensureRowsAtPixel = function (rowNodes, pixel, increment) {\n        var _this = this;\n        if (increment === void 0) { increment = 0; }\n        var indexAtPixelNow = this.getRowIndexAtPixel(pixel);\n        var rowNodeAtPixelNow = this.getRow(indexAtPixelNow);\n        var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n        if (rowNodeAtPixelNow === rowNodes[0]) {\n            return false;\n        }\n        rowNodes.forEach(function (rowNode) {\n            _.removeFromArray(_this.rootNode.allLeafChildren, rowNode);\n        });\n        rowNodes.forEach(function (rowNode, idx) {\n            _.insertIntoArray(_this.rootNode.allLeafChildren, rowNode, Math.max(indexAtPixelNow + increment, 0) + idx);\n        });\n        this.refreshModel({\n            step: exports.ClientSideRowModelSteps.EVERYTHING,\n            keepRenderedRows: true,\n            keepEditingRows: true,\n            animate: animate\n        });\n        return true;\n    };\n    ClientSideRowModel.prototype.highlightRowAtPixel = function (rowNode, pixel) {\n        var indexAtPixelNow = pixel != null ? this.getRowIndexAtPixel(pixel) : null;\n        var rowNodeAtPixelNow = indexAtPixelNow != null ? this.getRow(indexAtPixelNow) : null;\n        if (!rowNodeAtPixelNow || !rowNode || rowNodeAtPixelNow === rowNode || pixel == null) {\n            if (this.lastHighlightedRow) {\n                this.lastHighlightedRow.setHighlighted(null);\n                this.lastHighlightedRow = null;\n            }\n            return;\n        }\n        var highlight = this.getHighlightPosition(pixel, rowNodeAtPixelNow);\n        if (this.lastHighlightedRow && this.lastHighlightedRow !== rowNodeAtPixelNow) {\n            this.lastHighlightedRow.setHighlighted(null);\n            this.lastHighlightedRow = null;\n        }\n        rowNodeAtPixelNow.setHighlighted(highlight);\n        this.lastHighlightedRow = rowNodeAtPixelNow;\n    };\n    ClientSideRowModel.prototype.getHighlightPosition = function (pixel, rowNode) {\n        if (!rowNode) {\n            var index = this.getRowIndexAtPixel(pixel);\n            rowNode = this.getRow(index || 0);\n            if (!rowNode) {\n                return exports.RowHighlightPosition.Below;\n            }\n        }\n        var rowTop = rowNode.rowTop, rowHeight = rowNode.rowHeight;\n        return pixel - rowTop < rowHeight / 2 ? exports.RowHighlightPosition.Above : exports.RowHighlightPosition.Below;\n    };\n    ClientSideRowModel.prototype.getLastHighlightedRowNode = function () {\n        return this.lastHighlightedRow;\n    };\n    ClientSideRowModel.prototype.isLastRowIndexKnown = function () {\n        return true;\n    };\n    ClientSideRowModel.prototype.getRowCount = function () {\n        if (this.rowsToDisplay) {\n            return this.rowsToDisplay.length;\n        }\n        return 0;\n    };\n    ClientSideRowModel.prototype.getTopLevelRowCount = function () {\n        var showingRootNode = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;\n        if (showingRootNode) {\n            return 1;\n        }\n        var filteredChildren = this.rootNode.childrenAfterAggFilter;\n        return filteredChildren ? filteredChildren.length : 0;\n    };\n    ClientSideRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n        var showingRootNode = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;\n        if (showingRootNode) {\n            return topLevelIndex;\n        }\n        var rowNode = this.rootNode.childrenAfterSort[topLevelIndex];\n        if (this.gridOptionsWrapper.isGroupHideOpenParents()) {\n            // if hideOpenParents, and this row open, then this row is now displayed at this index, first child is\n            while (rowNode.expanded && rowNode.childrenAfterSort && rowNode.childrenAfterSort.length > 0) {\n                rowNode = rowNode.childrenAfterSort[0];\n            }\n        }\n        return rowNode.rowIndex;\n    };\n    ClientSideRowModel.prototype.getRowBounds = function (index) {\n        if (_.missing(this.rowsToDisplay)) {\n            return null;\n        }\n        var rowNode = this.rowsToDisplay[index];\n        if (rowNode) {\n            return {\n                rowTop: rowNode.rowTop,\n                rowHeight: rowNode.rowHeight\n            };\n        }\n        return null;\n    };\n    ClientSideRowModel.prototype.onRowGroupOpened = function () {\n        var animate = this.gridOptionsWrapper.isAnimateRows();\n        this.refreshModel({ step: exports.ClientSideRowModelSteps.MAP, keepRenderedRows: true, animate: animate });\n    };\n    ClientSideRowModel.prototype.onFilterChanged = function (event) {\n        if (event.afterDataChange) {\n            return;\n        }\n        var animate = this.gridOptionsWrapper.isAnimateRows();\n        var primaryOrQuickFilterChanged = event.columns.length === 0 || event.columns.some(function (col) { return col.isPrimary(); });\n        var step = primaryOrQuickFilterChanged ? exports.ClientSideRowModelSteps.FILTER : exports.ClientSideRowModelSteps.FILTER_AGGREGATES;\n        this.refreshModel({ step: step, keepRenderedRows: true, animate: animate });\n    };\n    ClientSideRowModel.prototype.onSortChanged = function () {\n        var animate = this.gridOptionsWrapper.isAnimateRows();\n        this.refreshModel({ step: exports.ClientSideRowModelSteps.SORT, keepRenderedRows: true, animate: animate, keepEditingRows: true });\n    };\n    ClientSideRowModel.prototype.getType = function () {\n        return Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n    };\n    ClientSideRowModel.prototype.onValueChanged = function () {\n        if (this.columnModel.isPivotActive()) {\n            this.refreshModel({ step: exports.ClientSideRowModelSteps.PIVOT });\n        }\n        else {\n            this.refreshModel({ step: exports.ClientSideRowModelSteps.AGGREGATE });\n        }\n    };\n    ClientSideRowModel.prototype.createChangePath = function (rowNodeTransactions) {\n        // for updates, if the row is updated at all, then we re-calc all the values\n        // in that row. we could compare each value to each old value, however if we\n        // did this, we would be calling the valueService twice, once on the old value\n        // and once on the new value. so it's less valueGetter calls if we just assume\n        // each column is different. that way the changedPath is used so that only\n        // the impacted parent rows are recalculated, parents who's children have\n        // not changed are not impacted.\n        var noTransactions = _.missingOrEmpty(rowNodeTransactions);\n        var changedPath = new ChangedPath(false, this.rootNode);\n        if (noTransactions || this.gridOptionsWrapper.isTreeData()) {\n            changedPath.setInactive();\n        }\n        return changedPath;\n    };\n    ClientSideRowModel.prototype.isSuppressModelUpdateAfterUpdateTransaction = function (params) {\n        if (!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()) {\n            return false;\n        }\n        // return true if we are only doing update transactions\n        if (params.rowNodeTransactions == null) {\n            return false;\n        }\n        var transWithAddsOrDeletes = params.rowNodeTransactions.filter(function (tx) {\n            return (tx.add != null && tx.add.length > 0) || (tx.remove != null && tx.remove.length > 0);\n        });\n        var transactionsContainUpdatesOnly = transWithAddsOrDeletes == null || transWithAddsOrDeletes.length == 0;\n        return transactionsContainUpdatesOnly;\n    };\n    ClientSideRowModel.prototype.refreshModel = function (params) {\n        if (this.isSuppressModelUpdateAfterUpdateTransaction(params)) {\n            return;\n        }\n        // this goes through the pipeline of stages. what's in my head is similar\n        // to the diagram on this page:\n        // http://commons.apache.org/sandbox/commons-pipeline/pipeline_basics.html\n        // however we want to keep the results of each stage, hence we manually call\n        // each step rather than have them chain each other.\n        // fallthrough in below switch is on purpose,\n        // eg if STEP_FILTER, then all steps below this\n        // step get done\n        // let start: number;\n        // console.log('======= start =======');\n        var changedPath = this.createChangePath(params.rowNodeTransactions);\n        switch (params.step) {\n            case exports.ClientSideRowModelSteps.EVERYTHING:\n                this.doRowGrouping(params.groupState, params.rowNodeTransactions, params.rowNodeOrder, changedPath, !!params.afterColumnsChanged);\n            case exports.ClientSideRowModelSteps.FILTER:\n                this.doFilter(changedPath);\n            case exports.ClientSideRowModelSteps.PIVOT:\n                this.doPivot(changedPath);\n            case exports.ClientSideRowModelSteps.AGGREGATE: // depends on agg fields\n                this.doAggregate(changedPath);\n            case exports.ClientSideRowModelSteps.FILTER_AGGREGATES:\n                this.doFilterAggregates(changedPath);\n            case exports.ClientSideRowModelSteps.SORT:\n                this.doSort(params.rowNodeTransactions, changedPath);\n            case exports.ClientSideRowModelSteps.MAP:\n                this.doRowsToDisplay();\n        }\n        // set all row tops to null, then set row tops on all visible rows. if we don't\n        // do this, then the algorithm below only sets row tops, old row tops from old rows\n        // will still lie around\n        var displayedNodesMapped = this.setRowTopAndRowIndex();\n        this.clearRowTopAndRowIndex(changedPath, displayedNodesMapped);\n        var event = {\n            type: Events.EVENT_MODEL_UPDATED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            animate: params.animate,\n            keepRenderedRows: params.keepRenderedRows,\n            newData: params.newData,\n            newPage: false\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ClientSideRowModel.prototype.isEmpty = function () {\n        var rowsMissing = _.missing(this.rootNode.allLeafChildren) || this.rootNode.allLeafChildren.length === 0;\n        return _.missing(this.rootNode) || rowsMissing || !this.columnModel.isReady();\n    };\n    ClientSideRowModel.prototype.isRowsToRender = function () {\n        return _.exists(this.rowsToDisplay) && this.rowsToDisplay.length > 0;\n    };\n    ClientSideRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n        // if lastSelectedNode is missing, we start at the first row\n        var firstRowHit = !lastInRange;\n        var lastRowHit = false;\n        var lastRow;\n        var result = [];\n        var groupsSelectChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n        this.forEachNodeAfterFilterAndSort(function (rowNode) {\n            var lookingForLastRow = firstRowHit && !lastRowHit;\n            // check if we need to flip the select switch\n            if (!firstRowHit) {\n                if (rowNode === lastInRange || rowNode === firstInRange) {\n                    firstRowHit = true;\n                }\n            }\n            var skipThisGroupNode = rowNode.group && groupsSelectChildren;\n            if (!skipThisGroupNode) {\n                var inRange = firstRowHit && !lastRowHit;\n                var childOfLastRow = rowNode.isParentOfNode(lastRow);\n                if (inRange || childOfLastRow) {\n                    result.push(rowNode);\n                }\n            }\n            if (lookingForLastRow) {\n                if (rowNode === lastInRange || rowNode === firstInRange) {\n                    lastRowHit = true;\n                    if (rowNode === lastInRange) {\n                        lastRow = lastInRange;\n                    }\n                    else {\n                        lastRow = firstInRange;\n                    }\n                }\n            }\n        });\n        return result;\n    };\n    ClientSideRowModel.prototype.setDatasource = function (datasource) {\n        console.error('AG Grid: should never call setDatasource on clientSideRowController');\n    };\n    ClientSideRowModel.prototype.getTopLevelNodes = function () {\n        return this.rootNode ? this.rootNode.childrenAfterGroup : null;\n    };\n    ClientSideRowModel.prototype.getRootNode = function () {\n        return this.rootNode;\n    };\n    ClientSideRowModel.prototype.getRow = function (index) {\n        return this.rowsToDisplay[index];\n    };\n    ClientSideRowModel.prototype.isRowPresent = function (rowNode) {\n        return this.rowsToDisplay.indexOf(rowNode) >= 0;\n    };\n    ClientSideRowModel.prototype.getRowIndexAtPixel = function (pixelToMatch) {\n        if (this.isEmpty()) {\n            return -1;\n        }\n        // do binary search of tree\n        // http://oli.me.uk/2013/06/08/searching-javascript-arrays-with-a-binary-search/\n        var bottomPointer = 0;\n        var topPointer = this.rowsToDisplay.length - 1;\n        // quick check, if the pixel is out of bounds, then return last row\n        if (pixelToMatch <= 0) {\n            // if pixel is less than or equal zero, it's always the first row\n            return 0;\n        }\n        var lastNode = _.last(this.rowsToDisplay);\n        if (lastNode.rowTop <= pixelToMatch) {\n            return this.rowsToDisplay.length - 1;\n        }\n        while (true) {\n            var midPointer = Math.floor((bottomPointer + topPointer) / 2);\n            var currentRowNode = this.rowsToDisplay[midPointer];\n            if (this.isRowInPixel(currentRowNode, pixelToMatch)) {\n                return midPointer;\n            }\n            if (currentRowNode.rowTop < pixelToMatch) {\n                bottomPointer = midPointer + 1;\n            }\n            else if (currentRowNode.rowTop > pixelToMatch) {\n                topPointer = midPointer - 1;\n            }\n        }\n    };\n    ClientSideRowModel.prototype.isRowInPixel = function (rowNode, pixelToMatch) {\n        var topPixel = rowNode.rowTop;\n        var bottomPixel = rowNode.rowTop + rowNode.rowHeight;\n        var pixelInRow = topPixel <= pixelToMatch && bottomPixel > pixelToMatch;\n        return pixelInRow;\n    };\n    ClientSideRowModel.prototype.forEachLeafNode = function (callback) {\n        if (this.rootNode.allLeafChildren) {\n            this.rootNode.allLeafChildren.forEach(function (rowNode, index) { return callback(rowNode, index); });\n        }\n    };\n    ClientSideRowModel.prototype.forEachNode = function (callback) {\n        this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup, callback, RecursionType.Normal, 0);\n    };\n    ClientSideRowModel.prototype.forEachNodeAfterFilter = function (callback) {\n        this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter, callback, RecursionType.AfterFilter, 0);\n    };\n    ClientSideRowModel.prototype.forEachNodeAfterFilterAndSort = function (callback) {\n        this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort, callback, RecursionType.AfterFilterAndSort, 0);\n    };\n    ClientSideRowModel.prototype.forEachPivotNode = function (callback) {\n        this.recursivelyWalkNodesAndCallback([this.rootNode], callback, RecursionType.PivotNodes, 0);\n    };\n    // iterates through each item in memory, and calls the callback function\n    // nodes - the rowNodes to traverse\n    // callback - the user provided callback\n    // recursion type - need this to know what child nodes to recurse, eg if looking at all nodes, or filtered notes etc\n    // index - works similar to the index in forEach in javascript's array function\n    ClientSideRowModel.prototype.recursivelyWalkNodesAndCallback = function (nodes, callback, recursionType, index) {\n        if (!nodes) {\n            return index;\n        }\n        for (var i = 0; i < nodes.length; i++) {\n            var node = nodes[i];\n            callback(node, index++);\n            // go to the next level if it is a group\n            if (node.hasChildren()) {\n                // depending on the recursion type, we pick a difference set of children\n                var nodeChildren = null;\n                switch (recursionType) {\n                    case RecursionType.Normal:\n                        nodeChildren = node.childrenAfterGroup;\n                        break;\n                    case RecursionType.AfterFilter:\n                        nodeChildren = node.childrenAfterAggFilter;\n                        break;\n                    case RecursionType.AfterFilterAndSort:\n                        nodeChildren = node.childrenAfterSort;\n                        break;\n                    case RecursionType.PivotNodes:\n                        // for pivot, we don't go below leafGroup levels\n                        nodeChildren = !node.leafGroup ? node.childrenAfterSort : null;\n                        break;\n                }\n                if (nodeChildren) {\n                    index = this.recursivelyWalkNodesAndCallback(nodeChildren, callback, recursionType, index);\n                }\n            }\n        }\n        return index;\n    };\n    // it's possible to recompute the aggregate without doing the other parts\n    // + gridApi.recomputeAggregates()\n    ClientSideRowModel.prototype.doAggregate = function (changedPath) {\n        if (this.aggregationStage) {\n            this.aggregationStage.execute({ rowNode: this.rootNode, changedPath: changedPath });\n        }\n    };\n    ClientSideRowModel.prototype.doFilterAggregates = function (changedPath) {\n        if (this.filterAggregatesStage) {\n            this.filterAggregatesStage.execute({ rowNode: this.rootNode, changedPath: changedPath });\n        }\n        else {\n            // If filterAggregatesStage is undefined, then so is the grouping stage, so all children should be on the rootNode.\n            this.rootNode.childrenAfterAggFilter = this.rootNode.childrenAfterFilter;\n        }\n    };\n    // + gridApi.expandAll()\n    // + gridApi.collapseAll()\n    ClientSideRowModel.prototype.expandOrCollapseAll = function (expand) {\n        var usingTreeData = this.gridOptionsWrapper.isTreeData();\n        var usingPivotMode = this.columnModel.isPivotActive();\n        var recursiveExpandOrCollapse = function (rowNodes) {\n            if (!rowNodes) {\n                return;\n            }\n            rowNodes.forEach(function (rowNode) {\n                var actionRow = function () {\n                    rowNode.expanded = expand;\n                    recursiveExpandOrCollapse(rowNode.childrenAfterGroup);\n                };\n                if (usingTreeData) {\n                    var hasChildren = _.exists(rowNode.childrenAfterGroup);\n                    if (hasChildren) {\n                        actionRow();\n                    }\n                    return;\n                }\n                if (usingPivotMode) {\n                    var notLeafGroup = !rowNode.leafGroup;\n                    if (notLeafGroup) {\n                        actionRow();\n                    }\n                    return;\n                }\n                var isRowGroup = rowNode.group;\n                if (isRowGroup) {\n                    actionRow();\n                }\n            });\n        };\n        if (this.rootNode) {\n            recursiveExpandOrCollapse(this.rootNode.childrenAfterGroup);\n        }\n        this.refreshModel({ step: exports.ClientSideRowModelSteps.MAP });\n        var eventSource = expand ? 'expandAll' : 'collapseAll';\n        var event = {\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            type: Events.EVENT_EXPAND_COLLAPSE_ALL,\n            source: eventSource\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ClientSideRowModel.prototype.doSort = function (rowNodeTransactions, changedPath) {\n        this.sortStage.execute({\n            rowNode: this.rootNode,\n            rowNodeTransactions: rowNodeTransactions,\n            changedPath: changedPath\n        });\n    };\n    ClientSideRowModel.prototype.doRowGrouping = function (groupState, rowNodeTransactions, rowNodeOrder, changedPath, afterColumnsChanged) {\n        if (this.groupStage) {\n            if (rowNodeTransactions) {\n                this.groupStage.execute({\n                    rowNode: this.rootNode,\n                    rowNodeTransactions: rowNodeTransactions,\n                    rowNodeOrder: rowNodeOrder,\n                    changedPath: changedPath\n                });\n            }\n            else {\n                this.groupStage.execute({\n                    rowNode: this.rootNode,\n                    changedPath: changedPath,\n                    afterColumnsChanged: afterColumnsChanged\n                });\n                // set open/closed state on groups\n                this.restoreGroupState(groupState);\n            }\n            if (this.gridOptionsWrapper.isGroupSelectsChildren()) {\n                this.selectionService.updateGroupsFromChildrenSelections(changedPath);\n            }\n        }\n        else {\n            this.rootNode.childrenAfterGroup = this.rootNode.allLeafChildren;\n            if (this.rootNode.sibling) {\n                this.rootNode.sibling.childrenAfterGroup = this.rootNode.childrenAfterGroup;\n            }\n            this.rootNode.updateHasChildren();\n        }\n    };\n    ClientSideRowModel.prototype.restoreGroupState = function (groupState) {\n        if (!groupState) {\n            return;\n        }\n        _.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function (node, key) {\n            // if the group was open last time, then open it this time. however\n            // if was not open last time, then don't touch the group, so the 'groupDefaultExpanded'\n            // setting will take effect.\n            if (typeof groupState[key] === 'boolean') {\n                node.expanded = groupState[key];\n            }\n        });\n    };\n    ClientSideRowModel.prototype.doFilter = function (changedPath) {\n        this.filterStage.execute({ rowNode: this.rootNode, changedPath: changedPath });\n    };\n    ClientSideRowModel.prototype.doPivot = function (changedPath) {\n        if (this.pivotStage) {\n            this.pivotStage.execute({ rowNode: this.rootNode, changedPath: changedPath });\n        }\n    };\n    ClientSideRowModel.prototype.getGroupState = function () {\n        if (!this.rootNode.childrenAfterGroup || !this.gridOptionsWrapper.isRememberGroupStateWhenNewData()) {\n            return null;\n        }\n        var result = {};\n        _.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function (node, key) { return result[key] = node.expanded; });\n        return result;\n    };\n    ClientSideRowModel.prototype.getCopyOfNodesMap = function () {\n        return this.nodeManager.getCopyOfNodesMap();\n    };\n    ClientSideRowModel.prototype.getRowNode = function (id) {\n        // although id is typed a string, this could be called by the user, and they could have passed a number\n        var idIsGroup = typeof id == 'string' && id.indexOf(RowNode.ID_PREFIX_ROW_GROUP) == 0;\n        if (idIsGroup) {\n            // only one users complained about getRowNode not working for groups, after years of\n            // this working for normal rows. so have done quick implementation. if users complain\n            // about performance, then GroupStage should store / manage created groups in a map,\n            // which is a chunk of work.\n            var res_1 = undefined;\n            this.forEachNode(function (node) {\n                if (node.id === id) {\n                    res_1 = node;\n                }\n            });\n            return res_1;\n        }\n        return this.nodeManager.getRowNode(id);\n    };\n    // rows: the rows to put into the model\n    ClientSideRowModel.prototype.setRowData = function (rowData) {\n        // no need to invalidate cache, as the cache is stored on the rowNode,\n        // so new rowNodes means the cache is wiped anyway.\n        // remember group state, so we can expand groups that should be expanded\n        var groupState = this.getGroupState();\n        this.nodeManager.setRowData(rowData);\n        // - clears selection\n        this.selectionService.reset();\n        // - updates filters\n        this.filterManager.onNewRowsLoaded('rowDataUpdated');\n        // this event kicks off:\n        // - shows 'no rows' overlay if needed\n        var rowDataChangedEvent = {\n            type: Events.EVENT_ROW_DATA_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(rowDataChangedEvent);\n        this.refreshModel({\n            step: exports.ClientSideRowModelSteps.EVERYTHING,\n            groupState: groupState,\n            newData: true\n        });\n    };\n    ClientSideRowModel.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {\n        var _this = this;\n        if (this.applyAsyncTransactionsTimeout == null) {\n            this.rowDataTransactionBatch = [];\n            var waitMillis = this.gridOptionsWrapper.getAsyncTransactionWaitMillis();\n            this.applyAsyncTransactionsTimeout = window.setTimeout(function () {\n                _this.executeBatchUpdateRowData();\n            }, waitMillis);\n        }\n        this.rowDataTransactionBatch.push({ rowDataTransaction: rowDataTransaction, callback: callback });\n    };\n    ClientSideRowModel.prototype.flushAsyncTransactions = function () {\n        if (this.applyAsyncTransactionsTimeout != null) {\n            clearTimeout(this.applyAsyncTransactionsTimeout);\n            this.executeBatchUpdateRowData();\n        }\n    };\n    ClientSideRowModel.prototype.executeBatchUpdateRowData = function () {\n        var _this = this;\n        this.valueCache.onDataChanged();\n        var callbackFuncsBound = [];\n        var rowNodeTrans = [];\n        // The rowGroup stage uses rowNodeOrder if order was provided. if we didn't pass 'true' to\n        // commonUpdateRowData, using addIndex would have no effect when grouping.\n        var forceRowNodeOrder = false;\n        if (this.rowDataTransactionBatch) {\n            this.rowDataTransactionBatch.forEach(function (tranItem) {\n                var rowNodeTran = _this.nodeManager.updateRowData(tranItem.rowDataTransaction, undefined);\n                rowNodeTrans.push(rowNodeTran);\n                if (tranItem.callback) {\n                    callbackFuncsBound.push(tranItem.callback.bind(null, rowNodeTran));\n                }\n                if (typeof tranItem.rowDataTransaction.addIndex === 'number') {\n                    forceRowNodeOrder = true;\n                }\n            });\n        }\n        this.commonUpdateRowData(rowNodeTrans, undefined, forceRowNodeOrder);\n        // do callbacks in next VM turn so it's async\n        if (callbackFuncsBound.length > 0) {\n            window.setTimeout(function () {\n                callbackFuncsBound.forEach(function (func) { return func(); });\n            }, 0);\n        }\n        if (rowNodeTrans.length > 0) {\n            var event_1 = {\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                type: Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,\n                results: rowNodeTrans\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n        this.rowDataTransactionBatch = null;\n        this.applyAsyncTransactionsTimeout = undefined;\n    };\n    ClientSideRowModel.prototype.updateRowData = function (rowDataTran, rowNodeOrder) {\n        this.valueCache.onDataChanged();\n        var rowNodeTran = this.nodeManager.updateRowData(rowDataTran, rowNodeOrder);\n        // if doing immutableData, addIndex is never present. however if doing standard transaction, and user\n        // provided addIndex, then this is used in updateRowData. However if doing Enterprise, then the rowGroup\n        // stage also uses the\n        var forceRowNodeOrder = typeof rowDataTran.addIndex === 'number';\n        this.commonUpdateRowData([rowNodeTran], rowNodeOrder, forceRowNodeOrder);\n        return rowNodeTran;\n    };\n    ClientSideRowModel.prototype.createRowNodeOrder = function () {\n        var suppressSortOrder = this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();\n        if (suppressSortOrder) {\n            return;\n        }\n        var orderMap = {};\n        if (this.rootNode && this.rootNode.allLeafChildren) {\n            for (var index = 0; index < this.rootNode.allLeafChildren.length; index++) {\n                var node = this.rootNode.allLeafChildren[index];\n                orderMap[node.id] = index;\n            }\n        }\n        return orderMap;\n    };\n    // common to updateRowData and batchUpdateRowData\n    ClientSideRowModel.prototype.commonUpdateRowData = function (rowNodeTrans, rowNodeOrder, forceRowNodeOrder) {\n        var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n        if (forceRowNodeOrder) {\n            rowNodeOrder = this.createRowNodeOrder();\n        }\n        this.refreshModel({\n            step: exports.ClientSideRowModelSteps.EVERYTHING,\n            rowNodeTransactions: rowNodeTrans,\n            rowNodeOrder: rowNodeOrder,\n            keepRenderedRows: true,\n            keepEditingRows: true,\n            animate: animate\n        });\n        var event = {\n            type: Events.EVENT_ROW_DATA_UPDATED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(event);\n    };\n    ClientSideRowModel.prototype.doRowsToDisplay = function () {\n        this.rowsToDisplay = this.flattenStage.execute({ rowNode: this.rootNode });\n    };\n    ClientSideRowModel.prototype.onRowHeightChanged = function () {\n        this.refreshModel({ step: exports.ClientSideRowModelSteps.MAP, keepRenderedRows: true, keepEditingRows: true });\n    };\n    ClientSideRowModel.prototype.resetRowHeights = function () {\n        var atLeastOne = false;\n        this.forEachNode(function (rowNode) {\n            rowNode.setRowHeight(rowNode.rowHeight, true);\n            // we keep the height each row is at, however we set estimated=true rather than clear the height.\n            // this means the grid will not reset the row heights back to defaults, rather it will re-calc\n            // the height for each row as the row is displayed. otherwise the scroll will jump when heights are reset.\n            var detailNode = rowNode.detailNode;\n            if (detailNode) {\n                detailNode.setRowHeight(detailNode.rowHeight, true);\n            }\n            atLeastOne = true;\n        });\n        if (atLeastOne) {\n            this.onRowHeightChanged();\n        }\n    };\n    __decorate$2n([\n        Autowired('columnModel')\n    ], ClientSideRowModel.prototype, \"columnModel\", void 0);\n    __decorate$2n([\n        Autowired('selectionService')\n    ], ClientSideRowModel.prototype, \"selectionService\", void 0);\n    __decorate$2n([\n        Autowired('filterManager')\n    ], ClientSideRowModel.prototype, \"filterManager\", void 0);\n    __decorate$2n([\n        Autowired('valueCache')\n    ], ClientSideRowModel.prototype, \"valueCache\", void 0);\n    __decorate$2n([\n        Autowired('columnApi')\n    ], ClientSideRowModel.prototype, \"columnApi\", void 0);\n    __decorate$2n([\n        Autowired('gridApi')\n    ], ClientSideRowModel.prototype, \"gridApi\", void 0);\n    __decorate$2n([\n        Autowired('animationFrameService')\n    ], ClientSideRowModel.prototype, \"animationFrameService\", void 0);\n    __decorate$2n([\n        Autowired('beans')\n    ], ClientSideRowModel.prototype, \"beans\", void 0);\n    __decorate$2n([\n        Autowired('filterStage')\n    ], ClientSideRowModel.prototype, \"filterStage\", void 0);\n    __decorate$2n([\n        Autowired('sortStage')\n    ], ClientSideRowModel.prototype, \"sortStage\", void 0);\n    __decorate$2n([\n        Autowired('flattenStage')\n    ], ClientSideRowModel.prototype, \"flattenStage\", void 0);\n    __decorate$2n([\n        Optional('groupStage')\n    ], ClientSideRowModel.prototype, \"groupStage\", void 0);\n    __decorate$2n([\n        Optional('aggregationStage')\n    ], ClientSideRowModel.prototype, \"aggregationStage\", void 0);\n    __decorate$2n([\n        Optional('pivotStage')\n    ], ClientSideRowModel.prototype, \"pivotStage\", void 0);\n    __decorate$2n([\n        Optional('filterAggregatesStage')\n    ], ClientSideRowModel.prototype, \"filterAggregatesStage\", void 0);\n    __decorate$2n([\n        PostConstruct\n    ], ClientSideRowModel.prototype, \"init\", null);\n    ClientSideRowModel = __decorate$2n([\n        Bean('rowModel')\n    ], ClientSideRowModel);\n    return ClientSideRowModel;\n}(BeanStub));\n\nvar __extends$2H = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FilterStage = /** @class */ (function (_super) {\n    __extends$2H(FilterStage, _super);\n    function FilterStage() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    FilterStage.prototype.execute = function (params) {\n        var changedPath = params.changedPath;\n        this.filterService.filter(changedPath);\n    };\n    __decorate$2o([\n        Autowired('filterService')\n    ], FilterStage.prototype, \"filterService\", void 0);\n    FilterStage = __decorate$2o([\n        Bean('filterStage')\n    ], FilterStage);\n    return FilterStage;\n}(BeanStub));\n\nvar __extends$2I = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SortStage = /** @class */ (function (_super) {\n    __extends$2I(SortStage, _super);\n    function SortStage() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SortStage.prototype.execute = function (params) {\n        var sortOptions = this.sortController.getSortOptions();\n        var sortActive = _.exists(sortOptions) && sortOptions.length > 0;\n        var deltaSort = sortActive\n            && _.exists(params.rowNodeTransactions)\n            // in time we can remove this check, so that delta sort is always\n            // on if transactions are present. it's off for now so that we can\n            // selectively turn it on and test it with some select users before\n            // rolling out to everyone.\n            && this.gridOptionsWrapper.isDeltaSort();\n        var sortContainsGroupColumns = sortOptions.some(function (opt) { return !!opt.column.getColDef().showRowGroup; });\n        this.sortService.sort(sortOptions, sortActive, deltaSort, params.rowNodeTransactions, params.changedPath, sortContainsGroupColumns);\n    };\n    __decorate$2p([\n        Autowired('sortService')\n    ], SortStage.prototype, \"sortService\", void 0);\n    __decorate$2p([\n        Autowired('sortController')\n    ], SortStage.prototype, \"sortController\", void 0);\n    __decorate$2p([\n        Autowired('columnModel')\n    ], SortStage.prototype, \"columnModel\", void 0);\n    SortStage = __decorate$2p([\n        Bean('sortStage')\n    ], SortStage);\n    return SortStage;\n}(BeanStub));\n\nvar __extends$2J = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FlattenStage = /** @class */ (function (_super) {\n    __extends$2J(FlattenStage, _super);\n    function FlattenStage() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    FlattenStage.prototype.execute = function (params) {\n        var rootNode = params.rowNode;\n        // even if not doing grouping, we do the mapping, as the client might\n        // of passed in data that already has a grouping in it somewhere\n        var result = [];\n        // putting value into a wrapper so it's passed by reference\n        var nextRowTop = { value: 0 };\n        var skipLeafNodes = this.columnModel.isPivotMode();\n        // if we are reducing, and not grouping, then we want to show the root node, as that\n        // is where the pivot values are\n        var showRootNode = skipLeafNodes && rootNode.leafGroup;\n        var topList = showRootNode ? [rootNode] : rootNode.childrenAfterSort;\n        this.recursivelyAddToRowsToDisplay(topList, result, nextRowTop, skipLeafNodes, 0);\n        // we do not want the footer total if the gris is empty\n        var atLeastOneRowPresent = result.length > 0;\n        var includeGroupTotalFooter = !showRootNode\n            // don't show total footer when showRootNode is true (i.e. in pivot mode and no groups)\n            && atLeastOneRowPresent\n            && this.gridOptionsWrapper.isGroupIncludeTotalFooter();\n        if (includeGroupTotalFooter) {\n            this.ensureFooterNodeExists(rootNode);\n            this.addRowNodeToRowsToDisplay(rootNode.sibling, result, nextRowTop, 0);\n        }\n        return result;\n    };\n    FlattenStage.prototype.recursivelyAddToRowsToDisplay = function (rowsToFlatten, result, nextRowTop, skipLeafNodes, uiLevel) {\n        if (_.missingOrEmpty(rowsToFlatten)) {\n            return;\n        }\n        var hideOpenParents = this.gridOptionsWrapper.isGroupHideOpenParents();\n        // these two are mutually exclusive, so if first set, we don't set the second\n        var groupRemoveSingleChildren = this.gridOptionsWrapper.isGroupRemoveSingleChildren();\n        var groupRemoveLowestSingleChildren = !groupRemoveSingleChildren && this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren();\n        for (var i = 0; i < rowsToFlatten.length; i++) {\n            var rowNode = rowsToFlatten[i];\n            // check all these cases, for working out if this row should be included in the final mapped list\n            var isParent = rowNode.hasChildren();\n            var isSkippedLeafNode = skipLeafNodes && !isParent;\n            var isRemovedSingleChildrenGroup = groupRemoveSingleChildren &&\n                isParent &&\n                rowNode.childrenAfterGroup.length === 1;\n            var isRemovedLowestSingleChildrenGroup = groupRemoveLowestSingleChildren &&\n                isParent &&\n                rowNode.leafGroup &&\n                rowNode.childrenAfterGroup.length === 1;\n            // hide open parents means when group is open, we don't show it. we also need to make sure the\n            // group is expandable in the first place (as leaf groups are not expandable if pivot mode is on).\n            // the UI will never allow expanding leaf  groups, however the user might via the API (or menu option 'expand all')\n            var neverAllowToExpand = skipLeafNodes && rowNode.leafGroup;\n            var isHiddenOpenParent = hideOpenParents && rowNode.expanded && !rowNode.master && (!neverAllowToExpand);\n            var thisRowShouldBeRendered = !isSkippedLeafNode && !isHiddenOpenParent &&\n                !isRemovedSingleChildrenGroup && !isRemovedLowestSingleChildrenGroup;\n            if (thisRowShouldBeRendered) {\n                this.addRowNodeToRowsToDisplay(rowNode, result, nextRowTop, uiLevel);\n            }\n            // if we are pivoting, we never map below the leaf group\n            if (skipLeafNodes && rowNode.leafGroup) {\n                continue;\n            }\n            if (isParent) {\n                var excludedParent = isRemovedSingleChildrenGroup || isRemovedLowestSingleChildrenGroup;\n                // we traverse the group if it is expended, however we always traverse if the parent node\n                // was removed (as the group will never be opened if it is not displayed, we show the children instead)\n                if (rowNode.expanded || excludedParent) {\n                    // if the parent was excluded, then ui level is that of the parent\n                    var uiLevelForChildren = excludedParent ? uiLevel : uiLevel + 1;\n                    this.recursivelyAddToRowsToDisplay(rowNode.childrenAfterSort, result, nextRowTop, skipLeafNodes, uiLevelForChildren);\n                    // put a footer in if user is looking for it\n                    if (this.gridOptionsWrapper.isGroupIncludeFooter()) {\n                        this.ensureFooterNodeExists(rowNode);\n                        this.addRowNodeToRowsToDisplay(rowNode.sibling, result, nextRowTop, uiLevel);\n                    }\n                }\n            }\n            else if (rowNode.master && rowNode.expanded) {\n                var detailNode = this.createDetailNode(rowNode);\n                this.addRowNodeToRowsToDisplay(detailNode, result, nextRowTop, uiLevel);\n            }\n        }\n    };\n    // duplicated method, it's also in floatingRowModel\n    FlattenStage.prototype.addRowNodeToRowsToDisplay = function (rowNode, result, nextRowTop, uiLevel) {\n        var isGroupMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();\n        result.push(rowNode);\n        rowNode.setUiLevel(isGroupMultiAutoColumn ? 0 : uiLevel);\n    };\n    FlattenStage.prototype.ensureFooterNodeExists = function (groupNode) {\n        // only create footer node once, otherwise we have daemons and\n        // the animate screws up with the daemons hanging around\n        if (_.exists(groupNode.sibling)) {\n            return;\n        }\n        var footerNode = new RowNode(this.beans);\n        Object.keys(groupNode).forEach(function (key) {\n            footerNode[key] = groupNode[key];\n        });\n        footerNode.footer = true;\n        footerNode.setRowTop(null);\n        footerNode.setRowIndex(null);\n        // manually set oldRowTop to null so we discard any\n        // previous information about its position.\n        footerNode.oldRowTop = null;\n        if (_.exists(footerNode.id)) {\n            footerNode.id = 'rowGroupFooter_' + footerNode.id;\n        }\n        // get both header and footer to reference each other as siblings. this is never undone,\n        // only overwritten. so if a group is expanded, then contracted, it will have a ghost\n        // sibling - but that's fine, as we can ignore this if the header is contracted.\n        footerNode.sibling = groupNode;\n        groupNode.sibling = footerNode;\n    };\n    FlattenStage.prototype.createDetailNode = function (masterNode) {\n        if (_.exists(masterNode.detailNode)) {\n            return masterNode.detailNode;\n        }\n        var detailNode = new RowNode(this.beans);\n        detailNode.detail = true;\n        detailNode.selectable = false;\n        detailNode.parent = masterNode;\n        if (_.exists(masterNode.id)) {\n            detailNode.id = 'detail_' + masterNode.id;\n        }\n        detailNode.data = masterNode.data;\n        detailNode.level = masterNode.level + 1;\n        masterNode.detailNode = detailNode;\n        return detailNode;\n    };\n    __decorate$2q([\n        Autowired('columnModel')\n    ], FlattenStage.prototype, \"columnModel\", void 0);\n    __decorate$2q([\n        Autowired('beans')\n    ], FlattenStage.prototype, \"beans\", void 0);\n    FlattenStage = __decorate$2q([\n        Bean('flattenStage')\n    ], FlattenStage);\n    return FlattenStage;\n}(BeanStub));\n\nvar __extends$2K = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2r = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar SortService = /** @class */ (function (_super) {\n    __extends$2K(SortService, _super);\n    function SortService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SortService.prototype.init = function () {\n        this.postSortFunc = this.gridOptionsWrapper.getPostSortFunc();\n    };\n    SortService.prototype.sort = function (sortOptions, sortActive, useDeltaSort, rowNodeTransactions, changedPath, sortContainsGroupColumns) {\n        var _this = this;\n        var groupMaintainOrder = this.gridOptionsWrapper.isGroupMaintainOrder();\n        var groupColumnsPresent = this.columnModel.getAllGridColumns().some(function (c) { return c.isRowGroupActive(); });\n        var allDirtyNodes = {};\n        if (useDeltaSort && rowNodeTransactions) {\n            allDirtyNodes = this.calculateDirtyNodes(rowNodeTransactions);\n        }\n        var isPivotMode = this.columnModel.isPivotMode();\n        var callback = function (rowNode) {\n            // we clear out the 'pull down open parents' first, as the values mix up the sorting\n            _this.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterAggFilter, true);\n            // It's pointless to sort rows which aren't being displayed. in pivot mode we don't need to sort the leaf group children.\n            var skipSortingPivotLeafs = isPivotMode && rowNode.leafGroup;\n            // Javascript sort is non deterministic when all the array items are equals, ie Comparator always returns 0,\n            // so to ensure the array keeps its order, add an additional sorting condition manually, in this case we\n            // are going to inspect the original array position. This is what sortedRowNodes is for.\n            var skipSortingGroups = groupMaintainOrder && groupColumnsPresent && !rowNode.leafGroup && !sortContainsGroupColumns;\n            if (!sortActive || skipSortingGroups || skipSortingPivotLeafs) {\n                // when 'groupMaintainOrder' is enabled we skip sorting groups unless we are sorting on group columns\n                var childrenToBeSorted = rowNode.childrenAfterAggFilter.slice(0);\n                if (groupMaintainOrder && rowNode.childrenAfterSort) {\n                    var indexedOrders_1 = rowNode.childrenAfterSort.reduce(function (acc, row, idx) {\n                        acc[row.id] = idx;\n                        return acc;\n                    }, {});\n                    childrenToBeSorted.sort(function (row1, row2) { return (indexedOrders_1[row1.id] || 0) - (indexedOrders_1[row2.id] || 0); });\n                }\n                rowNode.childrenAfterSort = childrenToBeSorted;\n            }\n            else if (useDeltaSort) {\n                rowNode.childrenAfterSort = _this.doDeltaSort(rowNode, allDirtyNodes, changedPath, sortOptions);\n            }\n            else {\n                rowNode.childrenAfterSort = _this.rowNodeSorter.doFullSort(rowNode.childrenAfterAggFilter, sortOptions);\n            }\n            if (rowNode.sibling) {\n                rowNode.sibling.childrenAfterSort = rowNode.childrenAfterSort;\n            }\n            _this.updateChildIndexes(rowNode);\n            if (_this.postSortFunc) {\n                var params = { nodes: rowNode.childrenAfterSort };\n                _this.postSortFunc(params);\n            }\n        };\n        if (changedPath) {\n            changedPath.forEachChangedNodeDepthFirst(callback);\n        }\n        this.updateGroupDataForHideOpenParents(changedPath);\n    };\n    SortService.prototype.calculateDirtyNodes = function (rowNodeTransactions) {\n        var dirtyNodes = {};\n        var addNodesFunc = function (rowNodes) {\n            if (rowNodes) {\n                rowNodes.forEach(function (rowNode) { return dirtyNodes[rowNode.id] = true; });\n            }\n        };\n        // all leaf level nodes in the transaction were impacted\n        if (rowNodeTransactions) {\n            rowNodeTransactions.forEach(function (tran) {\n                addNodesFunc(tran.add);\n                addNodesFunc(tran.update);\n                addNodesFunc(tran.remove);\n            });\n        }\n        return dirtyNodes;\n    };\n    SortService.prototype.doDeltaSort = function (rowNode, allTouchedNodes, changedPath, sortOptions) {\n        var _this = this;\n        var unsortedRows = rowNode.childrenAfterAggFilter;\n        var oldSortedRows = rowNode.childrenAfterSort;\n        if (!oldSortedRows) {\n            return this.rowNodeSorter.doFullSort(unsortedRows, sortOptions);\n        }\n        var untouchedRowsMap = {};\n        var touchedRows = [];\n        unsortedRows.forEach(function (row) {\n            if (allTouchedNodes[row.id] || !changedPath.canSkip(row)) {\n                touchedRows.push(row);\n            }\n            else {\n                untouchedRowsMap[row.id] = true;\n            }\n        });\n        var sortedUntouchedRows = oldSortedRows.filter(function (child) { return untouchedRowsMap[child.id]; });\n        var mapNodeToSortedNode = function (rowNode, pos) { return ({ currentPos: pos, rowNode: rowNode }); };\n        var sortedChangedRows = touchedRows\n            .map(mapNodeToSortedNode)\n            .sort(function (a, b) { return _this.rowNodeSorter.compareRowNodes(sortOptions, a, b); });\n        return this.mergeSortedArrays(sortOptions, sortedChangedRows, sortedUntouchedRows.map(mapNodeToSortedNode)).map(function (_a) {\n            var rowNode = _a.rowNode;\n            return rowNode;\n        });\n    };\n    // Merge two sorted arrays into each other\n    SortService.prototype.mergeSortedArrays = function (sortOptions, arr1, arr2) {\n        var res = [];\n        var i = 0;\n        var j = 0;\n        // Traverse both array, adding them in order\n        while (i < arr1.length && j < arr2.length) {\n            // Check if current element of first\n            // array is smaller than current element\n            // of second array. If yes, store first\n            // array element and increment first array\n            // index. Otherwise do same with second array\n            var compareResult = this.rowNodeSorter.compareRowNodes(sortOptions, arr1[i], arr2[j]);\n            if (compareResult < 0) {\n                res.push(arr1[i++]);\n            }\n            else {\n                res.push(arr2[j++]);\n            }\n        }\n        // add remaining from arr1\n        while (i < arr1.length) {\n            res.push(arr1[i++]);\n        }\n        // add remaining from arr2\n        while (j < arr2.length) {\n            res.push(arr2[j++]);\n        }\n        return res;\n    };\n    SortService.prototype.updateChildIndexes = function (rowNode) {\n        if (_.missing(rowNode.childrenAfterSort)) {\n            return;\n        }\n        var listToSort = rowNode.childrenAfterSort;\n        for (var i = 0; i < listToSort.length; i++) {\n            var child = listToSort[i];\n            var firstChild = i === 0;\n            var lastChild = i === rowNode.childrenAfterSort.length - 1;\n            child.setFirstChild(firstChild);\n            child.setLastChild(lastChild);\n            child.setChildIndex(i);\n        }\n    };\n    SortService.prototype.updateGroupDataForHideOpenParents = function (changedPath) {\n        var _this = this;\n        if (!this.gridOptionsWrapper.isGroupHideOpenParents()) {\n            return;\n        }\n        if (this.gridOptionsWrapper.isTreeData()) {\n            var msg_1 = \"AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).\";\n            _.doOnce(function () { return console.warn(msg_1); }, 'sortService.hideOpenParentsWithTreeData');\n            return false;\n        }\n        // recurse breadth first over group nodes after sort to 'pull down' group data to child groups\n        var callback = function (rowNode) {\n            _this.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterSort, false);\n            rowNode.childrenAfterSort.forEach(function (child) {\n                if (child.hasChildren()) {\n                    callback(child);\n                }\n            });\n        };\n        if (changedPath) {\n            changedPath.executeFromRootNode(function (rowNode) { return callback(rowNode); });\n        }\n    };\n    SortService.prototype.pullDownGroupDataForHideOpenParents = function (rowNodes, clearOperation) {\n        var _this = this;\n        if (!this.gridOptionsWrapper.isGroupHideOpenParents() || _.missing(rowNodes)) {\n            return;\n        }\n        rowNodes.forEach(function (childRowNode) {\n            var groupDisplayCols = _this.columnModel.getGroupDisplayColumns();\n            groupDisplayCols.forEach(function (groupDisplayCol) {\n                var showRowGroup = groupDisplayCol.getColDef().showRowGroup;\n                if (typeof showRowGroup !== 'string') {\n                    console.error('AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup');\n                    return;\n                }\n                var displayingGroupKey = showRowGroup;\n                var rowGroupColumn = _this.columnModel.getPrimaryColumn(displayingGroupKey);\n                var thisRowNodeMatches = rowGroupColumn === childRowNode.rowGroupColumn;\n                if (thisRowNodeMatches) {\n                    return;\n                }\n                if (clearOperation) {\n                    // if doing a clear operation, we clear down the value for every possible group column\n                    childRowNode.setGroupValue(groupDisplayCol.getId(), undefined);\n                }\n                else {\n                    // if doing a set operation, we set only where the pull down is to occur\n                    var parentToStealFrom = childRowNode.getFirstChildOfFirstChild(rowGroupColumn);\n                    if (parentToStealFrom) {\n                        childRowNode.setGroupValue(groupDisplayCol.getId(), parentToStealFrom.key);\n                    }\n                }\n            });\n        });\n    };\n    __decorate$2r([\n        Autowired('columnModel')\n    ], SortService.prototype, \"columnModel\", void 0);\n    __decorate$2r([\n        Autowired('rowNodeSorter')\n    ], SortService.prototype, \"rowNodeSorter\", void 0);\n    __decorate$2r([\n        PostConstruct\n    ], SortService.prototype, \"init\", null);\n    SortService = __decorate$2r([\n        Bean('sortService')\n    ], SortService);\n    return SortService;\n}(BeanStub));\n\nvar __extends$2L = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2s = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar FilterService = /** @class */ (function (_super) {\n    __extends$2L(FilterService, _super);\n    function FilterService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    FilterService.prototype.filter = function (changedPath) {\n        var filterActive = this.filterManager.isColumnFilterPresent()\n            || this.filterManager.isQuickFilterPresent()\n            || this.gridOptionsWrapper.isExternalFilterPresent();\n        this.filterNodes(filterActive, changedPath);\n    };\n    FilterService.prototype.filterNodes = function (filterActive, changedPath) {\n        var _this = this;\n        var filterCallback = function (rowNode, includeChildNodes) {\n            // recursively get all children that are groups to also filter\n            if (rowNode.hasChildren()) {\n                // result of filter for this node. when filtering tree data, includeChildNodes = true when parent passes\n                if (filterActive && !includeChildNodes) {\n                    rowNode.childrenAfterFilter = rowNode.childrenAfterGroup.filter(function (childNode) {\n                        // a group is included in the result if it has any children of it's own.\n                        // by this stage, the child groups are already filtered\n                        var passBecauseChildren = childNode.childrenAfterFilter && childNode.childrenAfterFilter.length > 0;\n                        // both leaf level nodes and tree data nodes have data. these get added if\n                        // the data passes the filter\n                        var passBecauseDataPasses = childNode.data\n                            && _this.filterManager.doesRowPassFilter({ rowNode: childNode });\n                        // note - tree data nodes pass either if a) they pass themselves or b) any children of that node pass\n                        return passBecauseChildren || passBecauseDataPasses;\n                    });\n                }\n                else {\n                    // if not filtering, the result is the original list\n                    rowNode.childrenAfterFilter = rowNode.childrenAfterGroup;\n                }\n            }\n            else {\n                rowNode.childrenAfterFilter = rowNode.childrenAfterGroup;\n            }\n            if (rowNode.sibling) {\n                rowNode.sibling.childrenAfterFilter = rowNode.childrenAfterFilter;\n            }\n        };\n        if (this.doingTreeDataFiltering()) {\n            var treeDataDepthFirstFilter_1 = function (rowNode, alreadyFoundInParent) {\n                // tree data filter traverses the hierarchy depth first and includes child nodes if parent passes\n                // filter, and parent nodes will be include if any children exist.\n                if (rowNode.childrenAfterGroup) {\n                    for (var i = 0; i < rowNode.childrenAfterGroup.length; i++) {\n                        var childNode = rowNode.childrenAfterGroup[i];\n                        // first check if current node passes filter before invoking child nodes\n                        var foundInParent = alreadyFoundInParent\n                            || _this.filterManager.doesRowPassFilter({ rowNode: childNode });\n                        if (childNode.childrenAfterGroup) {\n                            treeDataDepthFirstFilter_1(rowNode.childrenAfterGroup[i], foundInParent);\n                        }\n                        else {\n                            filterCallback(childNode, foundInParent);\n                        }\n                    }\n                }\n                filterCallback(rowNode, alreadyFoundInParent);\n            };\n            var treeDataFilterCallback = function (rowNode) { return treeDataDepthFirstFilter_1(rowNode, false); };\n            changedPath.executeFromRootNode(treeDataFilterCallback);\n        }\n        else {\n            var defaultFilterCallback = function (rowNode) { return filterCallback(rowNode, false); };\n            changedPath.forEachChangedNodeDepthFirst(defaultFilterCallback, true);\n        }\n    };\n    FilterService.prototype.doingTreeDataFiltering = function () {\n        return this.gridOptionsWrapper.isTreeData() && !this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering();\n    };\n    __decorate$2s([\n        Autowired('filterManager')\n    ], FilterService.prototype, \"filterManager\", void 0);\n    FilterService = __decorate$2s([\n        Bean(\"filterService\")\n    ], FilterService);\n    return FilterService;\n}(BeanStub));\n\nvar __extends$2M = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2t = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __read$j = (undefined && undefined.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar ImmutableService = /** @class */ (function (_super) {\n    __extends$2M(ImmutableService, _super);\n    function ImmutableService() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ImmutableService.prototype.postConstruct = function () {\n        if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n            this.clientSideRowModel = this.rowModel;\n        }\n    };\n    ImmutableService.prototype.isActive = function () {\n        return this.gridOptionsWrapper.isImmutableData();\n    };\n    ImmutableService.prototype.setRowData = function (rowData) {\n        var transactionAndMap = this.createTransactionForRowData(rowData);\n        if (!transactionAndMap) {\n            return;\n        }\n        var _a = __read$j(transactionAndMap, 2), transaction = _a[0], orderIdMap = _a[1];\n        var nodeTransaction = this.clientSideRowModel.updateRowData(transaction, orderIdMap);\n        // need to force updating of full width rows - note this wouldn't be necessary the full width cell comp listened\n        // to the data change event on the row node and refreshed itself.\n        if (nodeTransaction) {\n            this.rowRenderer.refreshFullWidthRows(nodeTransaction.update);\n        }\n        // - shows 'no rows' overlay if needed\n        var rowDataChangedEvent = {\n            type: Events.EVENT_ROW_DATA_CHANGED,\n            api: this.gridApi,\n            columnApi: this.columnApi\n        };\n        this.eventService.dispatchEvent(rowDataChangedEvent);\n    };\n    // converts the setRowData() command to a transaction\n    ImmutableService.prototype.createTransactionForRowData = function (rowData) {\n        if (_.missing(this.clientSideRowModel)) {\n            console.error('AG Grid: ImmutableService only works with ClientSideRowModel');\n            return;\n        }\n        var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n        if (getRowIdFunc == null) {\n            console.error('AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!');\n            return;\n        }\n        // convert the data into a transaction object by working out adds, removes and updates\n        var transaction = {\n            remove: [],\n            update: [],\n            add: []\n        };\n        var existingNodesMap = this.clientSideRowModel.getCopyOfNodesMap();\n        var suppressSortOrder = this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();\n        var orderMap = suppressSortOrder ? undefined : {};\n        if (_.exists(rowData)) {\n            // split all the new data in the following:\n            // if new, push to 'add'\n            // if update, push to 'update'\n            // if not changed, do not include in the transaction\n            rowData.forEach(function (data, index) {\n                var id = getRowIdFunc({ data: data, level: 0 });\n                var existingNode = existingNodesMap[id];\n                if (orderMap) {\n                    orderMap[id] = index;\n                }\n                if (existingNode) {\n                    var dataHasChanged = existingNode.data !== data;\n                    if (dataHasChanged) {\n                        transaction.update.push(data);\n                    }\n                    // otherwise, if data not changed, we just don't include it anywhere, as it's not a delta\n                    // remove from list, so we know the item is not to be removed\n                    existingNodesMap[id] = undefined;\n                }\n                else {\n                    transaction.add.push(data);\n                }\n            });\n        }\n        // at this point, all rows that are left, should be removed\n        _.iterateObject(existingNodesMap, function (id, rowNode) {\n            if (rowNode) {\n                transaction.remove.push(rowNode.data);\n            }\n        });\n        return [transaction, orderMap];\n    };\n    __decorate$2t([\n        Autowired('rowModel')\n    ], ImmutableService.prototype, \"rowModel\", void 0);\n    __decorate$2t([\n        Autowired('rowRenderer')\n    ], ImmutableService.prototype, \"rowRenderer\", void 0);\n    __decorate$2t([\n        Autowired('columnApi')\n    ], ImmutableService.prototype, \"columnApi\", void 0);\n    __decorate$2t([\n        Autowired('gridApi')\n    ], ImmutableService.prototype, \"gridApi\", void 0);\n    __decorate$2t([\n        PostConstruct\n    ], ImmutableService.prototype, \"postConstruct\", null);\n    ImmutableService = __decorate$2t([\n        Bean('immutableService')\n    ], ImmutableService);\n    return ImmutableService;\n}(BeanStub));\n\nvar ClientSideRowModelModule = {\n    moduleName: exports.ModuleNames.ClientSideRowModelModule,\n    beans: [FilterStage, SortStage, FlattenStage, SortService, FilterService, ImmutableService],\n    rowModels: { clientSide: ClientSideRowModel }\n};\n\nvar __extends$2N = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2u = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar InfiniteBlock = /** @class */ (function (_super) {\n    __extends$2N(InfiniteBlock, _super);\n    function InfiniteBlock(id, parentCache, params) {\n        var _this = _super.call(this, id) || this;\n        _this.parentCache = parentCache;\n        _this.params = params;\n        // we don't need to calculate these now, as the inputs don't change,\n        // however it makes the code easier to read if we work them out up front\n        _this.startRow = id * params.blockSize;\n        _this.endRow = _this.startRow + params.blockSize;\n        return _this;\n    }\n    InfiniteBlock.prototype.postConstruct = function () {\n        this.createRowNodes();\n    };\n    InfiniteBlock.prototype.getBlockStateJson = function () {\n        return {\n            id: '' + this.getId(),\n            state: {\n                blockNumber: this.getId(),\n                startRow: this.getStartRow(),\n                endRow: this.getEndRow(),\n                pageStatus: this.getState()\n            }\n        };\n    };\n    InfiniteBlock.prototype.setDataAndId = function (rowNode, data, index) {\n        // if there's no id and the rowNode was rendered before, it means this\n        // was a placeholder rowNode and should not be recycled. Setting\n        // `alreadyRendered`  to `false` forces the rowRenderer to flush it.\n        if (!rowNode.id && rowNode.alreadyRendered) {\n            rowNode.alreadyRendered = false;\n        }\n        if (_.exists(data)) {\n            // this means if the user is not providing id's we just use the\n            // index for the row. this will allow selection to work (that is based\n            // on index) as long user is not inserting or deleting rows,\n            // or wanting to keep selection between server side sorting or filtering\n            rowNode.setDataAndId(data, index.toString());\n        }\n        else {\n            rowNode.setDataAndId(undefined, undefined);\n        }\n    };\n    InfiniteBlock.prototype.loadFromDatasource = function () {\n        var _this = this;\n        var params = this.createLoadParams();\n        if (_.missing(this.params.datasource.getRows)) {\n            console.warn(\"AG Grid: datasource is missing getRows method\");\n            return;\n        }\n        // put in timeout, to force result to be async\n        window.setTimeout(function () {\n            _this.params.datasource.getRows(params);\n        }, 0);\n    };\n    InfiniteBlock.prototype.processServerFail = function () {\n        // todo - this method has better handling in SSRM\n    };\n    InfiniteBlock.prototype.createLoadParams = function () {\n        // PROBLEM . . . . when the user sets sort via colDef.sort, then this code\n        // is executing before the sort is set up, so server is not getting the sort\n        // model. need to change with regards order - so the server side request is\n        // AFTER thus it gets the right sort model.\n        var params = {\n            startRow: this.getStartRow(),\n            endRow: this.getEndRow(),\n            successCallback: this.pageLoaded.bind(this, this.getVersion()),\n            failCallback: this.pageLoadFailed.bind(this, this.getVersion()),\n            sortModel: this.params.sortModel,\n            filterModel: this.params.filterModel,\n            context: this.gridOptionsWrapper.getContext()\n        };\n        return params;\n    };\n    InfiniteBlock.prototype.forEachNode = function (callback, sequence, rowCount) {\n        var _this = this;\n        this.rowNodes.forEach(function (rowNode, index) {\n            var rowIndex = _this.startRow + index;\n            if (rowIndex < rowCount) {\n                callback(rowNode, sequence.next());\n            }\n        });\n    };\n    InfiniteBlock.prototype.getLastAccessed = function () {\n        return this.lastAccessed;\n    };\n    InfiniteBlock.prototype.getRow = function (rowIndex, dontTouchLastAccessed) {\n        if (dontTouchLastAccessed === void 0) { dontTouchLastAccessed = false; }\n        if (!dontTouchLastAccessed) {\n            this.lastAccessed = this.params.lastAccessedSequence.next();\n        }\n        var localIndex = rowIndex - this.startRow;\n        return this.rowNodes[localIndex];\n    };\n    InfiniteBlock.prototype.getStartRow = function () {\n        return this.startRow;\n    };\n    InfiniteBlock.prototype.getEndRow = function () {\n        return this.endRow;\n    };\n    // creates empty row nodes, data is missing as not loaded yet\n    InfiniteBlock.prototype.createRowNodes = function () {\n        this.rowNodes = [];\n        for (var i = 0; i < this.params.blockSize; i++) {\n            var rowIndex = this.startRow + i;\n            var rowNode = new RowNode(this.beans);\n            rowNode.setRowHeight(this.params.rowHeight);\n            rowNode.uiLevel = 0;\n            rowNode.setRowIndex(rowIndex);\n            rowNode.setRowTop(this.params.rowHeight * rowIndex);\n            this.rowNodes.push(rowNode);\n        }\n    };\n    InfiniteBlock.prototype.processServerResult = function (params) {\n        var _this = this;\n        this.rowNodes.forEach(function (rowNode, index) {\n            var data = params.rowData ? params.rowData[index] : undefined;\n            _this.setDataAndId(rowNode, data, _this.startRow + index);\n        });\n        var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;\n        this.parentCache.pageLoaded(this, finalRowCount);\n    };\n    InfiniteBlock.prototype.destroyRowNodes = function () {\n        this.rowNodes.forEach(function (rowNode) {\n            // this is needed, so row render knows to fade out the row, otherwise it\n            // sees row top is present, and thinks the row should be shown.\n            rowNode.clearRowTopAndRowIndex();\n        });\n    };\n    __decorate$2u([\n        Autowired('beans')\n    ], InfiniteBlock.prototype, \"beans\", void 0);\n    __decorate$2u([\n        PostConstruct\n    ], InfiniteBlock.prototype, \"postConstruct\", null);\n    __decorate$2u([\n        PreDestroy\n    ], InfiniteBlock.prototype, \"destroyRowNodes\", null);\n    return InfiniteBlock;\n}(RowNodeBlock));\n\nvar __extends$2O = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2v = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __param$a = (undefined && undefined.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\nvar InfiniteCache = /** @class */ (function (_super) {\n    __extends$2O(InfiniteCache, _super);\n    function InfiniteCache(params) {\n        var _this = _super.call(this) || this;\n        _this.lastRowIndexKnown = false;\n        _this.blocks = {};\n        _this.blockCount = 0;\n        _this.rowCount = params.initialRowCount;\n        _this.params = params;\n        return _this;\n    }\n    InfiniteCache.prototype.setBeans = function (loggerFactory) {\n        this.logger = loggerFactory.create('InfiniteCache');\n    };\n    // the rowRenderer will not pass dontCreatePage, meaning when rendering the grid,\n    // it will want new pages in the cache as it asks for rows. only when we are inserting /\n    // removing rows via the api is dontCreatePage set, where we move rows between the pages.\n    InfiniteCache.prototype.getRow = function (rowIndex, dontCreatePage) {\n        if (dontCreatePage === void 0) { dontCreatePage = false; }\n        var blockId = Math.floor(rowIndex / this.params.blockSize);\n        var block = this.blocks[blockId];\n        if (!block) {\n            if (dontCreatePage) {\n                return undefined;\n            }\n            block = this.createBlock(blockId);\n        }\n        return block.getRow(rowIndex);\n    };\n    InfiniteCache.prototype.createBlock = function (blockNumber) {\n        var newBlock = this.createBean(new InfiniteBlock(blockNumber, this, this.params));\n        this.blocks[newBlock.getId()] = newBlock;\n        this.blockCount++;\n        this.purgeBlocksIfNeeded(newBlock);\n        this.params.rowNodeBlockLoader.addBlock(newBlock);\n        return newBlock;\n    };\n    // we have this on infinite row model only, not server side row model,\n    // because for server side, it would leave the children in inconsistent\n    // state - eg if a node had children, but after the refresh it had data\n    // for a different row, then the children would be with the wrong row node.\n    InfiniteCache.prototype.refreshCache = function () {\n        var nothingToRefresh = this.blockCount == 0;\n        if (nothingToRefresh) {\n            this.purgeCache();\n            return;\n        }\n        this.getBlocksInOrder().forEach(function (block) { return block.setStateWaitingToLoad(); });\n        this.params.rowNodeBlockLoader.checkBlockToLoad();\n    };\n    InfiniteCache.prototype.destroyAllBlocks = function () {\n        var _this = this;\n        this.getBlocksInOrder().forEach(function (block) { return _this.destroyBlock(block); });\n    };\n    InfiniteCache.prototype.getRowCount = function () {\n        return this.rowCount;\n    };\n    InfiniteCache.prototype.isLastRowIndexKnown = function () {\n        return this.lastRowIndexKnown;\n    };\n    // block calls this, when page loaded\n    InfiniteCache.prototype.pageLoaded = function (block, lastRow) {\n        // if we are not active, then we ignore all events, otherwise we could end up getting the\n        // grid to refresh even though we are no longer the active cache\n        if (!this.isAlive()) {\n            return;\n        }\n        this.logger.log(\"onPageLoaded: page = \" + block.getId() + \", lastRow = \" + lastRow);\n        this.checkRowCount(block, lastRow);\n        // we fire cacheUpdated even if the row count has not changed, as some items need updating even\n        // if no new rows to render. for example the pagination panel has '?' as the total rows when loading\n        // is underway, which would need to get updated when loading finishes.\n        this.onCacheUpdated();\n    };\n    InfiniteCache.prototype.purgeBlocksIfNeeded = function (blockToExclude) {\n        var _this = this;\n        // we exclude checking for the page just created, as this has yet to be accessed and hence\n        // the lastAccessed stamp will not be updated for the first time yet\n        var blocksForPurging = this.getBlocksInOrder().filter(function (b) { return b != blockToExclude; });\n        var lastAccessedComparator = function (a, b) { return b.getLastAccessed() - a.getLastAccessed(); };\n        blocksForPurging.sort(lastAccessedComparator);\n        // we remove (maxBlocksInCache - 1) as we already excluded the 'just created' page.\n        // in other words, after the splice operation below, we have taken out the blocks\n        // we want to keep, which means we are left with blocks that we can potentially purge\n        var maxBlocksProvided = this.params.maxBlocksInCache > 0;\n        var blocksToKeep = maxBlocksProvided ? this.params.maxBlocksInCache - 1 : null;\n        var emptyBlocksToKeep = InfiniteCache.MAX_EMPTY_BLOCKS_TO_KEEP - 1;\n        blocksForPurging.forEach(function (block, index) {\n            var purgeBecauseBlockEmpty = block.getState() === InfiniteBlock.STATE_WAITING_TO_LOAD && index >= emptyBlocksToKeep;\n            var purgeBecauseCacheFull = maxBlocksProvided ? index >= blocksToKeep : false;\n            if (purgeBecauseBlockEmpty || purgeBecauseCacheFull) {\n                // if the block currently has rows been displayed, then don't remove it either.\n                // this can happen if user has maxBlocks=2, and blockSize=5 (thus 10 max rows in cache)\n                // but the screen is showing 20 rows, so at least 4 blocks are needed.\n                if (_this.isBlockCurrentlyDisplayed(block)) {\n                    return;\n                }\n                // don't want to loose keyboard focus, so keyboard navigation can continue. so keep focused blocks.\n                if (_this.isBlockFocused(block)) {\n                    return;\n                }\n                // at this point, block is not needed, so burn baby burn\n                _this.removeBlockFromCache(block);\n            }\n        });\n    };\n    InfiniteCache.prototype.isBlockFocused = function (block) {\n        var focusedCell = this.focusService.getFocusCellToUseAfterRefresh();\n        if (!focusedCell) {\n            return false;\n        }\n        if (focusedCell.rowPinned != null) {\n            return false;\n        }\n        var blockIndexStart = block.getStartRow();\n        var blockIndexEnd = block.getEndRow();\n        var hasFocus = focusedCell.rowIndex >= blockIndexStart && focusedCell.rowIndex < blockIndexEnd;\n        return hasFocus;\n    };\n    InfiniteCache.prototype.isBlockCurrentlyDisplayed = function (block) {\n        var startIndex = block.getStartRow();\n        var endIndex = block.getEndRow() - 1;\n        return this.rowRenderer.isRangeInRenderedViewport(startIndex, endIndex);\n    };\n    InfiniteCache.prototype.removeBlockFromCache = function (blockToRemove) {\n        if (!blockToRemove) {\n            return;\n        }\n        this.destroyBlock(blockToRemove);\n        // we do not want to remove the 'loaded' event listener, as the\n        // concurrent loads count needs to be updated when the load is complete\n        // if the purged page is in loading state\n    };\n    InfiniteCache.prototype.checkRowCount = function (block, lastRow) {\n        // if client provided a last row, we always use it, as it could change between server calls\n        // if user deleted data and then called refresh on the grid.\n        if (typeof lastRow === 'number' && lastRow >= 0) {\n            this.rowCount = lastRow;\n            this.lastRowIndexKnown = true;\n        }\n        else if (!this.lastRowIndexKnown) {\n            // otherwise, see if we need to add some virtual rows\n            var lastRowIndex = (block.getId() + 1) * this.params.blockSize;\n            var lastRowIndexPlusOverflow = lastRowIndex + this.params.overflowSize;\n            if (this.rowCount < lastRowIndexPlusOverflow) {\n                this.rowCount = lastRowIndexPlusOverflow;\n            }\n        }\n    };\n    InfiniteCache.prototype.setRowCount = function (rowCount, lastRowIndexKnown) {\n        this.rowCount = rowCount;\n        // if undefined is passed, we do not set this value, if one of {true,false}\n        // is passed, we do set the value.\n        if (_.exists(lastRowIndexKnown)) {\n            this.lastRowIndexKnown = lastRowIndexKnown;\n        }\n        // if we are still searching, then the row count must not end at the end\n        // of a particular page, otherwise the searching will not pop into the\n        // next page\n        if (!this.lastRowIndexKnown) {\n            if (this.rowCount % this.params.blockSize === 0) {\n                this.rowCount++;\n            }\n        }\n        this.onCacheUpdated();\n    };\n    InfiniteCache.prototype.forEachNodeDeep = function (callback) {\n        var _this = this;\n        var sequence = new NumberSequence();\n        this.getBlocksInOrder().forEach(function (block) { return block.forEachNode(callback, sequence, _this.rowCount); });\n    };\n    InfiniteCache.prototype.getBlocksInOrder = function () {\n        // get all page id's as NUMBERS (not strings, as we need to sort as numbers) and in descending order\n        var blockComparator = function (a, b) { return a.getId() - b.getId(); };\n        var blocks = _.getAllValuesInObject(this.blocks).sort(blockComparator);\n        return blocks;\n    };\n    InfiniteCache.prototype.destroyBlock = function (block) {\n        delete this.blocks[block.getId()];\n        this.destroyBean(block);\n        this.blockCount--;\n        this.params.rowNodeBlockLoader.removeBlock(block);\n    };\n    // gets called 1) row count changed 2) cache purged 3) items inserted\n    InfiniteCache.prototype.onCacheUpdated = function () {\n        if (this.isAlive()) {\n            // if the virtualRowCount is shortened, then it's possible blocks exist that are no longer\n            // in the valid range. so we must remove these. this can happen if user explicitly sets\n            // the virtual row count, or the datasource returns a result and sets lastRow to something\n            // less than virtualRowCount (can happen if user scrolls down, server reduces dataset size).\n            this.destroyAllBlocksPastVirtualRowCount();\n            // this results in both row models (infinite and server side) firing ModelUpdated,\n            // however server side row model also updates the row indexes first\n            var event_1 = {\n                type: Events.EVENT_STORE_UPDATED\n            };\n            this.eventService.dispatchEvent(event_1);\n        }\n    };\n    InfiniteCache.prototype.destroyAllBlocksPastVirtualRowCount = function () {\n        var _this = this;\n        var blocksToDestroy = [];\n        this.getBlocksInOrder().forEach(function (block) {\n            var startRow = block.getId() * _this.params.blockSize;\n            if (startRow >= _this.rowCount) {\n                blocksToDestroy.push(block);\n            }\n        });\n        if (blocksToDestroy.length > 0) {\n            blocksToDestroy.forEach(function (block) { return _this.destroyBlock(block); });\n        }\n    };\n    InfiniteCache.prototype.purgeCache = function () {\n        var _this = this;\n        this.getBlocksInOrder().forEach(function (block) { return _this.removeBlockFromCache(block); });\n        this.lastRowIndexKnown = false;\n        // if zero rows in the cache, we need to get the SSRM to start asking for rows again.\n        // otherwise if set to zero rows last time, and we don't update the row count, then after\n        // the purge there will still be zero rows, meaning the SSRM won't request any rows.\n        // to kick things off, at least one row needs to be asked for.\n        if (this.rowCount === 0) {\n            this.rowCount = this.params.initialRowCount;\n        }\n        this.onCacheUpdated();\n    };\n    InfiniteCache.prototype.getRowNodesInRange = function (firstInRange, lastInRange) {\n        var _this = this;\n        var result = [];\n        var lastBlockId = -1;\n        var inActiveRange = false;\n        var numberSequence = new NumberSequence();\n        // if only one node passed, we start the selection at the top\n        if (_.missing(firstInRange)) {\n            inActiveRange = true;\n        }\n        var foundGapInSelection = false;\n        this.getBlocksInOrder().forEach(function (block) {\n            if (foundGapInSelection) {\n                return;\n            }\n            if (inActiveRange && (lastBlockId + 1 !== block.getId())) {\n                foundGapInSelection = true;\n                return;\n            }\n            lastBlockId = block.getId();\n            block.forEachNode(function (rowNode) {\n                var hitFirstOrLast = rowNode === firstInRange || rowNode === lastInRange;\n                if (inActiveRange || hitFirstOrLast) {\n                    result.push(rowNode);\n                }\n                if (hitFirstOrLast) {\n                    inActiveRange = !inActiveRange;\n                }\n            }, numberSequence, _this.rowCount);\n        });\n        // inActiveRange will be still true if we never hit the second rowNode\n        var invalidRange = foundGapInSelection || inActiveRange;\n        return invalidRange ? [] : result;\n    };\n    // this property says how many empty blocks should be in a cache, eg if scrolls down fast and creates 10\n    // blocks all for loading, the grid will only load the last 2 - it will assume the blocks the user quickly\n    // scrolled over are not needed to be loaded.\n    InfiniteCache.MAX_EMPTY_BLOCKS_TO_KEEP = 2;\n    __decorate$2v([\n        Autowired('rowRenderer')\n    ], InfiniteCache.prototype, \"rowRenderer\", void 0);\n    __decorate$2v([\n        Autowired(\"focusService\")\n    ], InfiniteCache.prototype, \"focusService\", void 0);\n    __decorate$2v([\n        __param$a(0, Qualifier('loggerFactory'))\n    ], InfiniteCache.prototype, \"setBeans\", null);\n    __decorate$2v([\n        PreDestroy\n    ], InfiniteCache.prototype, \"destroyAllBlocks\", null);\n    return InfiniteCache;\n}(BeanStub));\n\nvar __extends$2P = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2w = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar InfiniteRowModel = /** @class */ (function (_super) {\n    __extends$2P(InfiniteRowModel, _super);\n    function InfiniteRowModel() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    InfiniteRowModel.prototype.getRowBounds = function (index) {\n        return {\n            rowHeight: this.rowHeight,\n            rowTop: this.rowHeight * index\n        };\n    };\n    // we don't implement as lazy row heights is not supported in this row model\n    InfiniteRowModel.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n        return false;\n    };\n    InfiniteRowModel.prototype.init = function () {\n        var _this = this;\n        if (!this.gridOptionsWrapper.isRowModelInfinite()) {\n            return;\n        }\n        this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n        this.addEventListeners();\n        this.addDestroyFunc(function () { return _this.destroyCache(); });\n        this.verifyProps();\n    };\n    InfiniteRowModel.prototype.verifyProps = function () {\n        if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {\n            var message_1 = \"AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.\";\n            _.doOnce(function () { return console.warn(message_1); }, 'IRM.InitialGroupOrderComparator');\n        }\n    };\n    InfiniteRowModel.prototype.start = function () {\n        this.setDatasource(this.gridOptionsWrapper.getDatasource());\n    };\n    InfiniteRowModel.prototype.destroyDatasource = function () {\n        if (this.datasource) {\n            this.getContext().destroyBean(this.datasource);\n            this.rowRenderer.datasourceChanged();\n            this.datasource = null;\n        }\n    };\n    InfiniteRowModel.prototype.addEventListeners = function () {\n        this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverything.bind(this));\n        this.addManagedListener(this.eventService, Events.EVENT_STORE_UPDATED, this.onCacheUpdated.bind(this));\n    };\n    InfiniteRowModel.prototype.onFilterChanged = function () {\n        this.reset();\n    };\n    InfiniteRowModel.prototype.onSortChanged = function () {\n        this.reset();\n    };\n    InfiniteRowModel.prototype.onColumnEverything = function () {\n        var resetRequired;\n        // if cache params, we require reset only if sort model has changed. we don't need to check\n        // for filter model, as the filter manager will fire an event when columns change that result\n        // in the filter changing.\n        if (this.cacheParams) {\n            resetRequired = this.isSortModelDifferent();\n        }\n        else {\n            // if no cacheParams, means first time creating the cache, so always create one\n            resetRequired = true;\n        }\n        if (resetRequired) {\n            this.reset();\n        }\n    };\n    InfiniteRowModel.prototype.isSortModelDifferent = function () {\n        return !_.jsonEquals(this.cacheParams.sortModel, this.sortController.getSortModel());\n    };\n    InfiniteRowModel.prototype.getType = function () {\n        return Constants.ROW_MODEL_TYPE_INFINITE;\n    };\n    InfiniteRowModel.prototype.setDatasource = function (datasource) {\n        this.destroyDatasource();\n        this.datasource = datasource;\n        // only reset if we have a valid datasource to working with\n        if (datasource) {\n            this.reset();\n        }\n    };\n    InfiniteRowModel.prototype.isEmpty = function () {\n        return !this.infiniteCache;\n    };\n    InfiniteRowModel.prototype.isRowsToRender = function () {\n        return !!this.infiniteCache;\n    };\n    InfiniteRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n        return this.infiniteCache ? this.infiniteCache.getRowNodesInRange(firstInRange, lastInRange) : [];\n    };\n    InfiniteRowModel.prototype.reset = function () {\n        // important to return here, as the user could be setting filter or sort before\n        // data-source is set\n        if (!this.datasource) {\n            return;\n        }\n        // if user is providing id's, then this means we can keep the selection between datasource hits,\n        // as the rows will keep their unique id's even if, for example, server side sorting or filtering\n        // is done.\n        var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n        var userGeneratingIds = getRowIdFunc != null;\n        if (!userGeneratingIds) {\n            this.selectionService.reset();\n        }\n        this.resetCache();\n        var event = this.createModelUpdatedEvent();\n        this.eventService.dispatchEvent(event);\n    };\n    InfiniteRowModel.prototype.createModelUpdatedEvent = function () {\n        return {\n            type: Events.EVENT_MODEL_UPDATED,\n            api: this.gridApi,\n            columnApi: this.columnApi,\n            // not sure if these should all be false - noticed if after implementing,\n            // maybe they should be true?\n            newPage: false,\n            newData: false,\n            keepRenderedRows: true,\n            animate: false\n        };\n    };\n    InfiniteRowModel.prototype.resetCache = function () {\n        // if not first time creating a cache, need to destroy the old one\n        this.destroyCache();\n        this.cacheParams = {\n            // the user provided datasource\n            datasource: this.datasource,\n            // sort and filter model\n            filterModel: this.filterManager.getFilterModel(),\n            sortModel: this.sortController.getSortModel(),\n            rowNodeBlockLoader: this.rowNodeBlockLoader,\n            // properties - this way we take a snapshot of them, so if user changes any, they will be\n            // used next time we create a new cache, which is generally after a filter or sort change,\n            // or a new datasource is set\n            initialRowCount: this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(), 1),\n            maxBlocksInCache: this.gridOptionsWrapper.getMaxBlocksInCache(),\n            rowHeight: this.gridOptionsWrapper.getRowHeightAsNumber(),\n            // if user doesn't provide overflow, we use default overflow of 1, so user can scroll past\n            // the current page and request first row of next page\n            overflowSize: this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(), 1),\n            // page size needs to be 1 or greater. having it at 1 would be silly, as you would be hitting the\n            // server for one page at a time. so the default if not specified is 100.\n            blockSize: this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(), 100),\n            // the cache could create this, however it is also used by the pages, so handy to create it\n            // here as the settings are also passed to the pages\n            lastAccessedSequence: new NumberSequence()\n        };\n        this.infiniteCache = this.createBean(new InfiniteCache(this.cacheParams));\n    };\n    InfiniteRowModel.prototype.defaultIfInvalid = function (value, defaultValue) {\n        return value > 0 ? value : defaultValue;\n    };\n    InfiniteRowModel.prototype.destroyCache = function () {\n        if (this.infiniteCache) {\n            this.infiniteCache = this.destroyBean(this.infiniteCache);\n        }\n    };\n    InfiniteRowModel.prototype.onCacheUpdated = function () {\n        var event = this.createModelUpdatedEvent();\n        this.eventService.dispatchEvent(event);\n    };\n    InfiniteRowModel.prototype.getRow = function (rowIndex) {\n        if (!this.infiniteCache) {\n            return undefined;\n        }\n        if (rowIndex >= this.infiniteCache.getRowCount()) {\n            return undefined;\n        }\n        return this.infiniteCache.getRow(rowIndex);\n    };\n    InfiniteRowModel.prototype.getRowNode = function (id) {\n        var result;\n        this.forEachNode(function (rowNode) {\n            if (rowNode.id === id) {\n                result = rowNode;\n            }\n        });\n        return result;\n    };\n    InfiniteRowModel.prototype.forEachNode = function (callback) {\n        if (this.infiniteCache) {\n            this.infiniteCache.forEachNodeDeep(callback);\n        }\n    };\n    InfiniteRowModel.prototype.getTopLevelRowCount = function () {\n        return this.getRowCount();\n    };\n    InfiniteRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n        return topLevelIndex;\n    };\n    InfiniteRowModel.prototype.getRowIndexAtPixel = function (pixel) {\n        if (this.rowHeight !== 0) { // avoid divide by zero error\n            var rowIndexForPixel = Math.floor(pixel / this.rowHeight);\n            var lastRowIndex = this.getRowCount() - 1;\n            if (rowIndexForPixel > lastRowIndex) {\n                return lastRowIndex;\n            }\n            return rowIndexForPixel;\n        }\n        return 0;\n    };\n    InfiniteRowModel.prototype.getRowCount = function () {\n        return this.infiniteCache ? this.infiniteCache.getRowCount() : 0;\n    };\n    InfiniteRowModel.prototype.isRowPresent = function (rowNode) {\n        var foundRowNode = this.getRowNode(rowNode.id);\n        return !!foundRowNode;\n    };\n    InfiniteRowModel.prototype.refreshCache = function () {\n        if (this.infiniteCache) {\n            this.infiniteCache.refreshCache();\n        }\n    };\n    InfiniteRowModel.prototype.purgeCache = function () {\n        if (this.infiniteCache) {\n            this.infiniteCache.purgeCache();\n        }\n    };\n    // for iRowModel\n    InfiniteRowModel.prototype.isLastRowIndexKnown = function () {\n        if (this.infiniteCache) {\n            return this.infiniteCache.isLastRowIndexKnown();\n        }\n        return false;\n    };\n    InfiniteRowModel.prototype.setRowCount = function (rowCount, lastRowIndexKnown) {\n        if (this.infiniteCache) {\n            this.infiniteCache.setRowCount(rowCount, lastRowIndexKnown);\n        }\n    };\n    __decorate$2w([\n        Autowired('filterManager')\n    ], InfiniteRowModel.prototype, \"filterManager\", void 0);\n    __decorate$2w([\n        Autowired('sortController')\n    ], InfiniteRowModel.prototype, \"sortController\", void 0);\n    __decorate$2w([\n        Autowired('selectionService')\n    ], InfiniteRowModel.prototype, \"selectionService\", void 0);\n    __decorate$2w([\n        Autowired('gridApi')\n    ], InfiniteRowModel.prototype, \"gridApi\", void 0);\n    __decorate$2w([\n        Autowired('columnApi')\n    ], InfiniteRowModel.prototype, \"columnApi\", void 0);\n    __decorate$2w([\n        Autowired('rowRenderer')\n    ], InfiniteRowModel.prototype, \"rowRenderer\", void 0);\n    __decorate$2w([\n        Autowired('rowNodeBlockLoader')\n    ], InfiniteRowModel.prototype, \"rowNodeBlockLoader\", void 0);\n    __decorate$2w([\n        PostConstruct\n    ], InfiniteRowModel.prototype, \"init\", null);\n    __decorate$2w([\n        PreDestroy\n    ], InfiniteRowModel.prototype, \"destroyDatasource\", null);\n    InfiniteRowModel = __decorate$2w([\n        Bean('rowModel')\n    ], InfiniteRowModel);\n    return InfiniteRowModel;\n}(BeanStub));\n\nvar InfiniteRowModelModule = {\n    moduleName: exports.ModuleNames.InfiniteRowModelModule,\n    rowModels: { infinite: InfiniteRowModel }\n};\n\nvar BaseCreator = /** @class */ (function () {\n    function BaseCreator() {\n    }\n    BaseCreator.prototype.setBeans = function (beans) {\n        this.beans = beans;\n    };\n    BaseCreator.prototype.getFileName = function (fileName) {\n        var extension = this.getDefaultFileExtension();\n        if (fileName == null || !fileName.length) {\n            fileName = this.getDefaultFileName();\n        }\n        return fileName.indexOf('.') === -1 ? fileName + \".\" + extension : fileName;\n    };\n    BaseCreator.prototype.getData = function (params) {\n        var serializingSession = this.createSerializingSession(params);\n        var data = this.beans.gridSerializer.serialize(serializingSession, params);\n        return data;\n    };\n    return BaseCreator;\n}());\n\nvar BaseGridSerializingSession = /** @class */ (function () {\n    function BaseGridSerializingSession(config) {\n        this.groupColumns = [];\n        var columnModel = config.columnModel, valueService = config.valueService, gridOptionsWrapper = config.gridOptionsWrapper, processCellCallback = config.processCellCallback, processHeaderCallback = config.processHeaderCallback, processGroupHeaderCallback = config.processGroupHeaderCallback, processRowGroupCallback = config.processRowGroupCallback;\n        this.columnModel = columnModel;\n        this.valueService = valueService;\n        this.gridOptionsWrapper = gridOptionsWrapper;\n        this.processCellCallback = processCellCallback;\n        this.processHeaderCallback = processHeaderCallback;\n        this.processGroupHeaderCallback = processGroupHeaderCallback;\n        this.processRowGroupCallback = processRowGroupCallback;\n    }\n    BaseGridSerializingSession.prototype.prepare = function (columnsToExport) {\n        this.groupColumns = columnsToExport.filter(function (col) { return !!col.getColDef().showRowGroup; });\n    };\n    BaseGridSerializingSession.prototype.extractHeaderValue = function (column) {\n        var value = this.getHeaderName(this.processHeaderCallback, column);\n        return value != null ? value : '';\n    };\n    BaseGridSerializingSession.prototype.extractRowCellValue = function (column, index, accumulatedRowIndex, type, node) {\n        // we render the group summary text e.g. \"-> Parent -> Child\"...\n        var groupIndex = this.gridOptionsWrapper.isGroupMultiAutoColumn() ? node.rowGroupIndex : 0;\n        var renderGroupSummaryCell = \n        // on group rows\n        node && node.group\n            && (\n            // in the group column if groups appear in regular grid cells\n            index === groupIndex && this.groupColumns.indexOf(column) !== -1\n                // or the first cell in the row, if we're doing full width rows\n                || (index === 0 && this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())));\n        var valueForCell;\n        if (renderGroupSummaryCell) {\n            valueForCell = this.createValueForGroupNode(node);\n        }\n        else {\n            valueForCell = this.valueService.getValue(column, node);\n        }\n        var value = this.processCell(accumulatedRowIndex, node, column, valueForCell, this.processCellCallback, type);\n        return value != null ? value : '';\n    };\n    BaseGridSerializingSession.prototype.getHeaderName = function (callback, column) {\n        if (callback) {\n            return callback({\n                column: column,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext()\n            });\n        }\n        return this.columnModel.getDisplayNameForColumn(column, 'csv', true);\n    };\n    BaseGridSerializingSession.prototype.createValueForGroupNode = function (node) {\n        if (this.processRowGroupCallback) {\n            return this.processRowGroupCallback({\n                node: node,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext(),\n            });\n        }\n        var keys = [node.key];\n        if (!this.gridOptionsWrapper.isGroupMultiAutoColumn()) {\n            while (node.parent) {\n                node = node.parent;\n                keys.push(node.key);\n            }\n        }\n        return keys.reverse().join(' -> ');\n    };\n    BaseGridSerializingSession.prototype.processCell = function (accumulatedRowIndex, rowNode, column, value, processCellCallback, type) {\n        if (processCellCallback) {\n            return processCellCallback({\n                accumulatedRowIndex: accumulatedRowIndex,\n                column: column,\n                node: rowNode,\n                value: value,\n                api: this.gridOptionsWrapper.getApi(),\n                columnApi: this.gridOptionsWrapper.getColumnApi(),\n                context: this.gridOptionsWrapper.getContext(),\n                type: type\n            });\n        }\n        return value != null ? value : '';\n    };\n    return BaseGridSerializingSession;\n}());\n\nvar Downloader = /** @class */ (function () {\n    function Downloader() {\n    }\n    Downloader.download = function (fileName, content) {\n        var win = document.defaultView || window;\n        if (!win) {\n            console.warn('AG Grid: There is no `window` associated with the current `document`');\n            return;\n        }\n        var element = document.createElement('a');\n        // @ts-ignore\n        var url = win.URL.createObjectURL(content);\n        element.setAttribute('href', url);\n        element.setAttribute('download', fileName);\n        element.style.display = 'none';\n        document.body.appendChild(element);\n        element.dispatchEvent(new MouseEvent('click', {\n            bubbles: false,\n            cancelable: true,\n            view: win\n        }));\n        document.body.removeChild(element);\n        win.setTimeout(function () {\n            // @ts-ignore\n            win.URL.revokeObjectURL(url);\n        }, 0);\n    };\n    return Downloader;\n}());\n\nvar __extends$2Q = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar LINE_SEPARATOR = '\\r\\n';\nvar CsvSerializingSession = /** @class */ (function (_super) {\n    __extends$2Q(CsvSerializingSession, _super);\n    function CsvSerializingSession(config) {\n        var _this = _super.call(this, config) || this;\n        _this.isFirstLine = true;\n        _this.result = '';\n        var suppressQuotes = config.suppressQuotes, columnSeparator = config.columnSeparator;\n        _this.suppressQuotes = suppressQuotes;\n        _this.columnSeparator = columnSeparator;\n        return _this;\n    }\n    CsvSerializingSession.prototype.addCustomContent = function (content) {\n        var _this = this;\n        if (!content) {\n            return;\n        }\n        if (typeof content === 'string') {\n            if (!/^\\s*\\n/.test(content)) {\n                this.beginNewLine();\n            }\n            // replace whatever newlines are supplied with the style we're using\n            content = content.replace(/\\r?\\n/g, LINE_SEPARATOR);\n            this.result += content;\n        }\n        else {\n            content.forEach(function (row) {\n                _this.beginNewLine();\n                row.forEach(function (cell, index) {\n                    if (index !== 0) {\n                        _this.result += _this.columnSeparator;\n                    }\n                    _this.result += _this.putInQuotes(cell.data.value || '');\n                    if (cell.mergeAcross) {\n                        _this.appendEmptyCells(cell.mergeAcross);\n                    }\n                });\n            });\n        }\n    };\n    CsvSerializingSession.prototype.onNewHeaderGroupingRow = function () {\n        this.beginNewLine();\n        return {\n            onColumn: this.onNewHeaderGroupingRowColumn.bind(this)\n        };\n    };\n    CsvSerializingSession.prototype.onNewHeaderGroupingRowColumn = function (header, index, span) {\n        if (index != 0) {\n            this.result += this.columnSeparator;\n        }\n        this.result += this.putInQuotes(header);\n        this.appendEmptyCells(span);\n    };\n    CsvSerializingSession.prototype.appendEmptyCells = function (count) {\n        for (var i = 1; i <= count; i++) {\n            this.result += this.columnSeparator + this.putInQuotes(\"\");\n        }\n    };\n    CsvSerializingSession.prototype.onNewHeaderRow = function () {\n        this.beginNewLine();\n        return {\n            onColumn: this.onNewHeaderRowColumn.bind(this)\n        };\n    };\n    CsvSerializingSession.prototype.onNewHeaderRowColumn = function (column, index) {\n        if (index != 0) {\n            this.result += this.columnSeparator;\n        }\n        this.result += this.putInQuotes(this.extractHeaderValue(column));\n    };\n    CsvSerializingSession.prototype.onNewBodyRow = function () {\n        this.beginNewLine();\n        return {\n            onColumn: this.onNewBodyRowColumn.bind(this)\n        };\n    };\n    CsvSerializingSession.prototype.onNewBodyRowColumn = function (column, index, node) {\n        if (index != 0) {\n            this.result += this.columnSeparator;\n        }\n        this.result += this.putInQuotes(this.extractRowCellValue(column, index, index, Constants.EXPORT_TYPE_CSV, node));\n    };\n    CsvSerializingSession.prototype.putInQuotes = function (value) {\n        if (this.suppressQuotes) {\n            return value;\n        }\n        if (value === null || value === undefined) {\n            return '\"\"';\n        }\n        var stringValue;\n        if (typeof value === 'string') {\n            stringValue = value;\n        }\n        else if (typeof value.toString === 'function') {\n            stringValue = value.toString();\n        }\n        else {\n            console.warn('AG Grid: unknown value type during csv conversion');\n            stringValue = '';\n        }\n        // replace each \" with \"\" (ie two sets of double quotes is how to do double quotes in csv)\n        var valueEscaped = stringValue.replace(/\"/g, \"\\\"\\\"\");\n        return '\"' + valueEscaped + '\"';\n    };\n    CsvSerializingSession.prototype.parse = function () {\n        return this.result;\n    };\n    CsvSerializingSession.prototype.beginNewLine = function () {\n        if (!this.isFirstLine) {\n            this.result += LINE_SEPARATOR;\n        }\n        this.isFirstLine = false;\n    };\n    return CsvSerializingSession;\n}(BaseGridSerializingSession));\n\nvar __extends$2R = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2x = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar CsvCreator = /** @class */ (function (_super) {\n    __extends$2R(CsvCreator, _super);\n    function CsvCreator() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    CsvCreator.prototype.postConstruct = function () {\n        this.setBeans({\n            gridSerializer: this.gridSerializer,\n            gridOptionsWrapper: this.gridOptionsWrapper\n        });\n    };\n    CsvCreator.prototype.getMergedParams = function (params) {\n        var baseParams = this.gridOptionsWrapper.getDefaultExportParams('csv');\n        return Object.assign({}, baseParams, params);\n    };\n    CsvCreator.prototype.export = function (userParams) {\n        if (this.isExportSuppressed()) {\n            console.warn(\"AG Grid: Export cancelled. Export is not allowed as per your configuration.\");\n            return '';\n        }\n        var mergedParams = this.getMergedParams(userParams);\n        var data = this.getData(mergedParams);\n        var packagedFile = new Blob([\"\\ufeff\", data], { type: 'text/plain' });\n        Downloader.download(this.getFileName(mergedParams.fileName), packagedFile);\n        return data;\n    };\n    CsvCreator.prototype.exportDataAsCsv = function (params) {\n        return this.export(params);\n    };\n    CsvCreator.prototype.getDataAsCsv = function (params) {\n        var mergedParams = this.getMergedParams(params);\n        return this.getData(mergedParams);\n    };\n    CsvCreator.prototype.getDefaultFileName = function () {\n        return 'export.csv';\n    };\n    CsvCreator.prototype.getDefaultFileExtension = function () {\n        return 'csv';\n    };\n    CsvCreator.prototype.createSerializingSession = function (params) {\n        var _a = this, columnModel = _a.columnModel, valueService = _a.valueService, gridOptionsWrapper = _a.gridOptionsWrapper;\n        var _b = params, processCellCallback = _b.processCellCallback, processHeaderCallback = _b.processHeaderCallback, processGroupHeaderCallback = _b.processGroupHeaderCallback, processRowGroupCallback = _b.processRowGroupCallback, suppressQuotes = _b.suppressQuotes, columnSeparator = _b.columnSeparator;\n        return new CsvSerializingSession({\n            columnModel: columnModel,\n            valueService: valueService,\n            gridOptionsWrapper: gridOptionsWrapper,\n            processCellCallback: processCellCallback || undefined,\n            processHeaderCallback: processHeaderCallback || undefined,\n            processGroupHeaderCallback: processGroupHeaderCallback || undefined,\n            processRowGroupCallback: processRowGroupCallback || undefined,\n            suppressQuotes: suppressQuotes || false,\n            columnSeparator: columnSeparator || ','\n        });\n    };\n    CsvCreator.prototype.isExportSuppressed = function () {\n        return this.gridOptionsWrapper.isSuppressCsvExport();\n    };\n    __decorate$2x([\n        Autowired('columnModel')\n    ], CsvCreator.prototype, \"columnModel\", void 0);\n    __decorate$2x([\n        Autowired('valueService')\n    ], CsvCreator.prototype, \"valueService\", void 0);\n    __decorate$2x([\n        Autowired('gridSerializer')\n    ], CsvCreator.prototype, \"gridSerializer\", void 0);\n    __decorate$2x([\n        Autowired('gridOptionsWrapper')\n    ], CsvCreator.prototype, \"gridOptionsWrapper\", void 0);\n    __decorate$2x([\n        PostConstruct\n    ], CsvCreator.prototype, \"postConstruct\", null);\n    CsvCreator = __decorate$2x([\n        Bean('csvCreator')\n    ], CsvCreator);\n    return CsvCreator;\n}(BaseCreator));\n\nvar __extends$2S = (undefined && undefined.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __decorate$2y = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n(function (RowType) {\n    RowType[RowType[\"HEADER_GROUPING\"] = 0] = \"HEADER_GROUPING\";\n    RowType[RowType[\"HEADER\"] = 1] = \"HEADER\";\n    RowType[RowType[\"BODY\"] = 2] = \"BODY\";\n})(exports.RowType || (exports.RowType = {}));\nvar GridSerializer = /** @class */ (function (_super) {\n    __extends$2S(GridSerializer, _super);\n    function GridSerializer() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    GridSerializer.prototype.serialize = function (gridSerializingSession, params) {\n        if (params === void 0) { params = {}; }\n        var columnsToExport = this.getColumnsToExport(params.allColumns, params.columnKeys);\n        var serializeChain = _.compose(\n        // first pass, put in the header names of the cols\n        this.prepareSession(columnsToExport), this.prependContent(params), this.exportColumnGroups(params, columnsToExport), this.exportHeaders(params, columnsToExport), this.processPinnedTopRows(params, columnsToExport), this.processRows(params, columnsToExport), this.processPinnedBottomRows(params, columnsToExport), this.appendContent(params));\n        return serializeChain(gridSerializingSession).parse();\n    };\n    GridSerializer.prototype.processRow = function (gridSerializingSession, params, columnsToExport, node) {\n        var _this = this;\n        var rowSkipper = params.shouldRowBeSkipped || (function () { return false; });\n        var gridOptionsWrapper = this.gridOptionsWrapper;\n        var context = gridOptionsWrapper.getContext();\n        var api = gridOptionsWrapper.getApi();\n        var columnApi = gridOptionsWrapper.getColumnApi();\n        var skipSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveSingleChildren();\n        var hideOpenParents = gridOptionsWrapper.isGroupHideOpenParents();\n        var skipLowestSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveLowestSingleChildren();\n        var isLeafNode = this.columnModel.isPivotMode() ? node.leafGroup : !node.group;\n        var skipRowGroups = params.skipGroups || params.skipRowGroups;\n        var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;\n        var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);\n        if (skipRowGroups && params.skipGroups) {\n            _.doOnce(function () { return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.'); }, 'gridSerializer-skipGroups');\n        }\n        var rowPosition = { rowIndex: node.rowIndex, rowPinned: node.rowPinned };\n        if ((!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents)) ||\n            (params.onlySelected && !node.isSelected()) ||\n            (params.rowNodes && !params.rowNodes.some(function (position) { return _this.rowPositionUtils.sameRow(position, rowPosition); })) ||\n            (params.skipPinnedTop && node.rowPinned === 'top') ||\n            (params.skipPinnedBottom && node.rowPinned === 'bottom')) {\n            return;\n        }\n        // if we are in pivotMode, then the grid will show the root node only\n        // if it's not a leaf group\n        var nodeIsRootNode = node.level === -1;\n        if (nodeIsRootNode && !node.leafGroup) {\n            return;\n        }\n        var shouldRowBeSkipped = rowSkipper({ node: node, api: api, columnApi: columnApi, context: context });\n        if (shouldRowBeSkipped) {\n            return;\n        }\n        var rowAccumulator = gridSerializingSession.onNewBodyRow();\n        columnsToExport.forEach(function (column, index) {\n            rowAccumulator.onColumn(column, index, node);\n        });\n        if (params.getCustomContentBelowRow) {\n            var content = params.getCustomContentBelowRow({ node: node, api: api, columnApi: columnApi, context: context });\n            if (content) {\n                gridSerializingSession.addCustomContent(content);\n            }\n        }\n    };\n    GridSerializer.prototype.appendContent = function (params) {\n        return function (gridSerializingSession) {\n            var appendContent = params.customFooter || params.appendContent;\n            if (appendContent) {\n                if (params.customFooter) {\n                    _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.'); }, 'gridSerializer-customFooter');\n                }\n                gridSerializingSession.addCustomContent(appendContent);\n            }\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.prependContent = function (params) {\n        return function (gridSerializingSession) {\n            var prependContent = params.customHeader || params.prependContent;\n            if (prependContent) {\n                if (params.customHeader) {\n                    _.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.'); }, 'gridSerializer-customHeader');\n                }\n                gridSerializingSession.addCustomContent(prependContent);\n            }\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.prepareSession = function (columnsToExport) {\n        return function (gridSerializingSession) {\n            gridSerializingSession.prepare(columnsToExport);\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.exportColumnGroups = function (params, columnsToExport) {\n        var _this = this;\n        return function (gridSerializingSession) {\n            if (!params.skipColumnGroupHeaders) {\n                var groupInstanceIdCreator = new GroupInstanceIdCreator();\n                var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnModel.getGridBalancedTree(), groupInstanceIdCreator, null);\n                _this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);\n            }\n            else if (params.columnGroups) {\n                _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.'); }, 'gridSerializer-columnGroups');\n            }\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.exportHeaders = function (params, columnsToExport) {\n        return function (gridSerializingSession) {\n            if (!params.skipHeader && !params.skipColumnHeaders) {\n                var gridRowIterator_1 = gridSerializingSession.onNewHeaderRow();\n                columnsToExport.forEach(function (column, index) {\n                    gridRowIterator_1.onColumn(column, index, undefined);\n                });\n            }\n            else if (params.skipHeader) {\n                _.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.'); }, 'gridSerializer-skipHeader');\n            }\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.processPinnedTopRows = function (params, columnsToExport) {\n        var _this = this;\n        return function (gridSerializingSession) {\n            var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n            _this.pinnedRowModel.forEachPinnedTopRow(processRow);\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.processRows = function (params, columnsToExport) {\n        var _this = this;\n        return function (gridSerializingSession) {\n            // when in pivot mode, we always render cols on screen, never 'all columns'\n            var rowModel = _this.rowModel;\n            var rowModelType = rowModel.getType();\n            var usingCsrm = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n            var usingSsrm = rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n            var onlySelectedNonStandardModel = !usingCsrm && params.onlySelected;\n            var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n            if (_this.columnModel.isPivotMode()) {\n                if (usingCsrm) {\n                    rowModel.forEachPivotNode(processRow);\n                }\n                else {\n                    // must be enterprise, so we can just loop through all the nodes\n                    rowModel.forEachNode(processRow);\n                }\n            }\n            else {\n                // onlySelectedAllPages: user doing pagination and wants selected items from\n                // other pages, so cannot use the standard row model as it won't have rows from\n                // other pages.\n                // onlySelectedNonStandardModel: if user wants selected in non standard row model\n                // (eg viewport) then again RowModel cannot be used, so need to use selected instead.\n                if (params.onlySelectedAllPages || onlySelectedNonStandardModel) {\n                    var selectedNodes = _this.selectionService.getSelectedNodes();\n                    selectedNodes.forEach(processRow);\n                }\n                else {\n                    // here is everything else - including standard row model and selected. we don't use\n                    // the selection model even when just using selected, so that the result is the order\n                    // of the rows appearing on the screen.\n                    if (usingCsrm) {\n                        rowModel.forEachNodeAfterFilterAndSort(processRow);\n                    }\n                    else if (usingSsrm) {\n                        rowModel.forEachNodeAfterFilterAndSort(processRow);\n                    }\n                    else {\n                        rowModel.forEachNode(processRow);\n                    }\n                }\n            }\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.processPinnedBottomRows = function (params, columnsToExport) {\n        var _this = this;\n        return function (gridSerializingSession) {\n            var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n            _this.pinnedRowModel.forEachPinnedBottomRow(processRow);\n            return gridSerializingSession;\n        };\n    };\n    GridSerializer.prototype.getColumnsToExport = function (allColumns, columnKeys) {\n        if (allColumns === void 0) { allColumns = false; }\n        var isPivotMode = this.columnModel.isPivotMode();\n        if (columnKeys && columnKeys.length) {\n            return this.columnModel.getGridColumns(columnKeys);\n        }\n        if (allColumns && !isPivotMode) {\n            // add auto group column for tree data\n            var columns = this.gridOptionsWrapper.isTreeData()\n                ? this.columnModel.getGridColumns([Constants.GROUP_AUTO_COLUMN_ID])\n                : [];\n            return columns.concat(this.columnModel.getAllPrimaryColumns() || []);\n        }\n        return this.columnModel.getAllDisplayedColumns();\n    };\n    GridSerializer.prototype.recursivelyAddHeaderGroups = function (displayedGroups, gridSerializingSession, processGroupHeaderCallback) {\n        var directChildrenHeaderGroups = [];\n        displayedGroups.forEach(function (columnGroupChild) {\n            var columnGroup = columnGroupChild;\n            if (!columnGroup.getChildren) {\n                return;\n            }\n            columnGroup.getChildren().forEach(function (it) { return directChildrenHeaderGroups.push(it); });\n        });\n        if (displayedGroups.length > 0 && displayedGroups[0] instanceof ColumnGroup) {\n            this.doAddHeaderHeader(gridSerializingSession, displayedGroups, processGroupHeaderCallback);\n        }\n        if (directChildrenHeaderGroups && directChildrenHeaderGroups.length > 0) {\n            this.recursivelyAddHeaderGroups(directChildrenHeaderGroups, gridSerializingSession, processGroupHeaderCallback);\n        }\n    };\n    GridSerializer.prototype.doAddHeaderHeader = function (gridSerializingSession, displayedGroups, processGroupHeaderCallback) {\n        var _this = this;\n        var gridRowIterator = gridSerializingSession.onNewHeaderGroupingRow();\n        var columnIndex = 0;\n        displayedGroups.forEach(function (columnGroupChild) {\n            var columnGroup = columnGroupChild;\n            var name;\n            if (processGroupHeaderCallback) {\n                name = processGroupHeaderCallback({\n                    columnGroup: columnGroup,\n                    api: _this.gridOptionsWrapper.getApi(),\n                    columnApi: _this.gridOptionsWrapper.getColumnApi(),\n                    context: _this.gridOptionsWrapper.getContext()\n                });\n            }\n            else {\n                name = _this.columnModel.getDisplayNameForColumnGroup(columnGroup, 'header');\n            }\n            var collapsibleGroupRanges = columnGroup.getLeafColumns().reduce(function (collapsibleGroups, currentColumn, currentIdx, arr) {\n                var lastGroup = _.last(collapsibleGroups);\n                var groupShow = currentColumn.getColumnGroupShow() === 'open';\n                if (!groupShow) {\n                    if (lastGroup && lastGroup[1] == null) {\n                        lastGroup[1] = currentIdx - 1;\n                    }\n                }\n                else if (!lastGroup || lastGroup[1] != null) {\n                    lastGroup = [currentIdx];\n                    collapsibleGroups.push(lastGroup);\n                }\n                if (currentIdx === arr.length - 1 && lastGroup && lastGroup[1] == null) {\n                    lastGroup[1] = currentIdx;\n                }\n                return collapsibleGroups;\n            }, []);\n            gridRowIterator.onColumn(name || '', columnIndex++, columnGroup.getLeafColumns().length - 1, collapsibleGroupRanges);\n        });\n    };\n    __decorate$2y([\n        Autowired('displayedGroupCreator')\n    ], GridSerializer.prototype, \"displayedGroupCreator\", void 0);\n    __decorate$2y([\n        Autowired('columnModel')\n    ], GridSerializer.prototype, \"columnModel\", void 0);\n    __decorate$2y([\n        Autowired('rowModel')\n    ], GridSerializer.prototype, \"rowModel\", void 0);\n    __decorate$2y([\n        Autowired('pinnedRowModel')\n    ], GridSerializer.prototype, \"pinnedRowModel\", void 0);\n    __decorate$2y([\n        Autowired('selectionService')\n    ], GridSerializer.prototype, \"selectionService\", void 0);\n    __decorate$2y([\n        Autowired('rowPositionUtils')\n    ], GridSerializer.prototype, \"rowPositionUtils\", void 0);\n    GridSerializer = __decorate$2y([\n        Bean(\"gridSerializer\")\n    ], GridSerializer);\n    return GridSerializer;\n}(BeanStub));\n\nvar CsvExportModule = {\n    moduleName: exports.ModuleNames.CsvExportModule,\n    beans: [CsvCreator, GridSerializer]\n};\n\nvar LINE_SEPARATOR$1 = '\\r\\n';\nvar XmlFactory = /** @class */ (function () {\n    function XmlFactory() {\n    }\n    XmlFactory.createHeader = function (headerElement) {\n        if (headerElement === void 0) { headerElement = {}; }\n        var headerStart = '<?';\n        var headerEnd = '?>';\n        var keys = ['version'];\n        if (!headerElement.version) {\n            headerElement.version = \"1.0\";\n        }\n        if (headerElement.encoding) {\n            keys.push('encoding');\n        }\n        if (headerElement.standalone) {\n            keys.push('standalone');\n        }\n        var att = keys.map(function (key) { return key + \"=\\\"\" + headerElement[key] + \"\\\"\"; }).join(' ');\n        return headerStart + \"xml \" + att + \" \" + headerEnd;\n    };\n    XmlFactory.createXml = function (xmlElement, booleanTransformer) {\n        var _this = this;\n        var props = '';\n        if (xmlElement.properties) {\n            if (xmlElement.properties.prefixedAttributes) {\n                xmlElement.properties.prefixedAttributes.forEach(function (prefixedSet) {\n                    Object.keys(prefixedSet.map).forEach(function (key) {\n                        props += _this.returnAttributeIfPopulated(prefixedSet.prefix + key, prefixedSet.map[key], booleanTransformer);\n                    });\n                });\n            }\n            if (xmlElement.properties.rawMap) {\n                Object.keys(xmlElement.properties.rawMap).forEach(function (key) {\n                    props += _this.returnAttributeIfPopulated(key, xmlElement.properties.rawMap[key], booleanTransformer);\n                });\n            }\n        }\n        var result = '<' + xmlElement.name + props;\n        if (!xmlElement.children && xmlElement.textNode == null) {\n            return result + '/>' + LINE_SEPARATOR$1;\n        }\n        if (xmlElement.textNode != null) {\n            return result + '>' + xmlElement.textNode + '</' + xmlElement.name + '>' + LINE_SEPARATOR$1;\n        }\n        result += '>' + LINE_SEPARATOR$1;\n        if (xmlElement.children) {\n            xmlElement.children.forEach(function (it) {\n                result += _this.createXml(it, booleanTransformer);\n            });\n        }\n        return result + '</' + xmlElement.name + '>' + LINE_SEPARATOR$1;\n    };\n    XmlFactory.returnAttributeIfPopulated = function (key, value, booleanTransformer) {\n        if (!value && value !== '' && value !== 0) {\n            return '';\n        }\n        var xmlValue = value;\n        if ((typeof (value) === 'boolean')) {\n            if (booleanTransformer) {\n                xmlValue = booleanTransformer(value);\n            }\n        }\n        return \" \" + key + \"=\\\"\" + xmlValue + \"\\\"\";\n    };\n    return XmlFactory;\n}());\n\nvar __values$3 = (undefined && undefined.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n// table for crc calculation\n// from: https://referencesource.microsoft.com/#System/sys/System/IO/compression/Crc32Helper.cs,3b31978c7d7f7246,references\nvar crcTable = new Uint32Array([\n    0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,\n    0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,\n    0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,\n    0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,\n    0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,\n    0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,\n    0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,\n    0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,\n    0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,\n    0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,\n    0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,\n    0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,\n    0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,\n    0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,\n    0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,\n    0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,\n    0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,\n    0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,\n    0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,\n    0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,\n    0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,\n    0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,\n    0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,\n    0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,\n    0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,\n    0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,\n    0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,\n    0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,\n    0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,\n    0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,\n    0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,\n    0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,\n    0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,\n    0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,\n    0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,\n    0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,\n    0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,\n    0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,\n    0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,\n    0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,\n    0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,\n    0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,\n    0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d\n]);\nvar ZipContainer = /** @class */ (function () {\n    function ZipContainer() {\n    }\n    ZipContainer.addFolders = function (paths) {\n        paths.forEach(this.addFolder.bind(this));\n    };\n    ZipContainer.addFolder = function (path) {\n        this.folders.push({\n            path: path,\n            created: new Date(),\n            isBase64: false\n        });\n    };\n    ZipContainer.addFile = function (path, content, isBase64) {\n        if (isBase64 === void 0) { isBase64 = false; }\n        this.files.push({\n            path: path,\n            created: new Date(),\n            content: content,\n            isBase64: isBase64\n        });\n    };\n    ZipContainer.getContent = function (mimeType) {\n        if (mimeType === void 0) { mimeType = 'application/zip'; }\n        var textOutput = this.buildFileStream();\n        var uInt8Output = this.buildUint8Array(textOutput);\n        this.clearStream();\n        return new Blob([uInt8Output], { type: mimeType });\n    };\n    ZipContainer.clearStream = function () {\n        this.folders = [];\n        this.files = [];\n    };\n    ZipContainer.buildFileStream = function (fData) {\n        var e_1, _a;\n        if (fData === void 0) { fData = ''; }\n        var totalFiles = this.folders.concat(this.files);\n        var len = totalFiles.length;\n        var foData = '';\n        var lL = 0;\n        var cL = 0;\n        try {\n            for (var totalFiles_1 = __values$3(totalFiles), totalFiles_1_1 = totalFiles_1.next(); !totalFiles_1_1.done; totalFiles_1_1 = totalFiles_1.next()) {\n                var currentFile = totalFiles_1_1.value;\n                var _b = this.getHeader(currentFile, lL), fileHeader = _b.fileHeader, folderHeader = _b.folderHeader, content = _b.content;\n                lL += fileHeader.length + content.length;\n                cL += folderHeader.length;\n                fData += fileHeader + content;\n                foData += folderHeader;\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (totalFiles_1_1 && !totalFiles_1_1.done && (_a = totalFiles_1.return)) _a.call(totalFiles_1);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n        var foEnd = this.buildFolderEnd(len, cL, lL);\n        return fData + foData + foEnd;\n    };\n    ZipContainer.getHeader = function (currentFile, offset) {\n        var content = currentFile.content, path = currentFile.path, created = currentFile.created, isBase64 = currentFile.isBase64;\n        var utf8_encode = _.utf8_encode, decToHex = _.decToHex;\n        var utfPath = utf8_encode(path);\n        var isUTF8 = utfPath !== path;\n        var time = this.convertTime(created);\n        var dt = this.convertDate(created);\n        var extraFields = '';\n        if (isUTF8) {\n            var uExtraFieldPath = decToHex(1, 1) + decToHex(this.getFromCrc32Table(utfPath), 4) + utfPath;\n            extraFields = \"\\x75\\x70\" + decToHex(uExtraFieldPath.length, 2) + uExtraFieldPath;\n        }\n        var _a = !content ? { size: 0, content: '' } : this.getConvertedContent(content, isBase64), size = _a.size, convertedContent = _a.content;\n        var header = '\\x0A\\x00' +\n            (isUTF8 ? '\\x00\\x08' : '\\x00\\x00') +\n            '\\x00\\x00' +\n            decToHex(time, 2) + // last modified time\n            decToHex(dt, 2) + // last modified date\n            decToHex(size ? this.getFromCrc32Table(convertedContent) : 0, 4) +\n            decToHex(size, 4) + // compressed size\n            decToHex(size, 4) + // uncompressed size\n            decToHex(utfPath.length, 2) + // file name length\n            decToHex(extraFields.length, 2); // extra field length\n        var fileHeader = 'PK\\x03\\x04' + header + utfPath + extraFields;\n        var folderHeader = 'PK\\x01\\x02' + // central header\n            '\\x14\\x00' +\n            header + // file header\n            '\\x00\\x00' +\n            '\\x00\\x00' +\n            '\\x00\\x00' +\n            (content ? '\\x00\\x00\\x00\\x00' : '\\x10\\x00\\x00\\x00') + // external file attributes\n            decToHex(offset, 4) + // relative offset of local header\n            utfPath + // file name\n            extraFields; // extra field\n        return { fileHeader: fileHeader, folderHeader: folderHeader, content: convertedContent || '' };\n    };\n    ZipContainer.getConvertedContent = function (content, isBase64) {\n        if (isBase64 === void 0) { isBase64 = false; }\n        if (isBase64) {\n            content = content.split(';base64,')[1];\n        }\n        content = isBase64 ? atob(content) : content;\n        return {\n            size: content.length,\n            content: content\n        };\n    };\n    ZipContainer.buildFolderEnd = function (tLen, cLen, lLen) {\n        var decToHex = _.decToHex;\n        return 'PK\\x05\\x06' + // central folder end\n            '\\x00\\x00' +\n            '\\x00\\x00' +\n            decToHex(tLen, 2) + // total number of entries in the central folder\n            decToHex(tLen, 2) + // total number of entries in the central folder\n            decToHex(cLen, 4) + // size of the central folder\n            decToHex(lLen, 4) + // central folder start offset\n            '\\x00\\x00';\n    };\n    ZipContainer.buildUint8Array = function (content) {\n        var uint8 = new Uint8Array(content.length);\n        for (var i = 0; i < uint8.length; i++) {\n            uint8[i] = content.charCodeAt(i);\n        }\n        return uint8;\n    };\n    ZipContainer.getFromCrc32Table = function (content) {\n        if (!content.length) {\n            return 0;\n        }\n        var size = content.length;\n        var iterable = new Uint8Array(size);\n        for (var i = 0; i < size; i++) {\n            iterable[i] = content.charCodeAt(i);\n        }\n        var crc = 0 ^ (-1);\n        var j = 0;\n        var k = 0;\n        var l = 0;\n        for (var i = 0; i < size; i++) {\n            j = iterable[i];\n            k = (crc ^ j) & 0xFF;\n            l = crcTable[k];\n            crc = (crc >>> 8) ^ l;\n        }\n        return crc ^ (-1);\n    };\n    ZipContainer.convertTime = function (date) {\n        var time = date.getHours();\n        time <<= 6;\n        time = time | date.getMinutes();\n        time <<= 5;\n        time = time | date.getSeconds() / 2;\n        return time;\n    };\n    ZipContainer.convertDate = function (date) {\n        var dt = date.getFullYear() - 1980;\n        dt <<= 4;\n        dt = dt | (date.getMonth() + 1);\n        dt <<= 5;\n        dt = dt | date.getDate();\n        return dt;\n    };\n    ZipContainer.folders = [];\n    ZipContainer.files = [];\n    return ZipContainer;\n}());\n\nModuleRegistry.register(ClientSideRowModelModule, false);\r\nModuleRegistry.register(InfiniteRowModelModule, false);\r\nModuleRegistry.register(CsvExportModule, false);\n\nexports.AbstractHeaderCellCtrl = AbstractHeaderCellCtrl;\nexports.AgAbstractField = AgAbstractField;\nexports.AgAngleSelect = AgAngleSelect;\nexports.AgCheckbox = AgCheckbox;\nexports.AgColorPicker = AgColorPicker;\nexports.AgDialog = AgDialog;\nexports.AgGroupComponent = AgGroupComponent;\nexports.AgInputNumberField = AgInputNumberField;\nexports.AgInputRange = AgInputRange;\nexports.AgInputTextArea = AgInputTextArea;\nexports.AgInputTextField = AgInputTextField;\nexports.AgMenuItemComponent = AgMenuItemComponent;\nexports.AgMenuList = AgMenuList;\nexports.AgMenuPanel = AgMenuPanel;\nexports.AgPanel = AgPanel;\nexports.AgPromise = AgPromise;\nexports.AgRadioButton = AgRadioButton;\nexports.AgSelect = AgSelect;\nexports.AgSlider = AgSlider;\nexports.AgStackComponentsRegistry = AgStackComponentsRegistry;\nexports.AgToggleButton = AgToggleButton;\nexports.AlignedGridsService = AlignedGridsService;\nexports.AnimateShowChangeCellRenderer = AnimateShowChangeCellRenderer;\nexports.AnimateSlideCellRenderer = AnimateSlideCellRenderer;\nexports.AnimationFrameService = AnimationFrameService;\nexports.AutoScrollService = AutoScrollService;\nexports.AutoWidthCalculator = AutoWidthCalculator;\nexports.Autowired = Autowired;\nexports.BaseComponentWrapper = BaseComponentWrapper;\nexports.BaseCreator = BaseCreator;\nexports.BaseGridSerializingSession = BaseGridSerializingSession;\nexports.Bean = Bean;\nexports.BeanStub = BeanStub;\nexports.Beans = Beans;\nexports.BodyDropPivotTarget = BodyDropPivotTarget;\nexports.BodyDropTarget = BodyDropTarget;\nexports.CellComp = CellComp;\nexports.CellCtrl = CellCtrl;\nexports.CellNavigationService = CellNavigationService;\nexports.CellPositionUtils = CellPositionUtils;\nexports.ChangedPath = ChangedPath;\nexports.CheckboxSelectionComponent = CheckboxSelectionComponent;\nexports.ColDefUtil = ColDefUtil;\nexports.Color = Color;\nexports.Column = Column;\nexports.ColumnApi = ColumnApi;\nexports.ColumnFactory = ColumnFactory;\nexports.ColumnGroup = ColumnGroup;\nexports.ColumnKeyCreator = ColumnKeyCreator;\nexports.ColumnModel = ColumnModel;\nexports.ColumnUtils = ColumnUtils;\nexports.Component = Component;\nexports.ComponentUtil = ComponentUtil;\nexports.Constants = Constants;\nexports.Context = Context;\nexports.CssClassApplier = CssClassApplier;\nexports.CssClassManager = CssClassManager;\nexports.CsvCreator = CsvCreator;\nexports.CsvExportModule = CsvExportModule;\nexports.CtrlsService = CtrlsService;\nexports.CustomTooltipFeature = CustomTooltipFeature;\nexports.DateFilter = DateFilter;\nexports.DisplayedGroupCreator = DisplayedGroupCreator;\nexports.Downloader = Downloader;\nexports.DragAndDropService = DragAndDropService;\nexports.DragService = DragService;\nexports.Environment = Environment;\nexports.EventService = EventService;\nexports.Events = Events;\nexports.ExpressionService = ExpressionService;\nexports.FilterManager = FilterManager;\nexports.FloatingFilterMapper = FloatingFilterMapper;\nexports.FocusService = FocusService;\nexports.Grid = Grid;\nexports.GridApi = GridApi;\nexports.GridBodyComp = GridBodyComp;\nexports.GridBodyCtrl = GridBodyCtrl;\nexports.GridComp = GridComp;\nexports.GridCoreCreator = GridCoreCreator;\nexports.GridCtrl = GridCtrl;\nexports.GridHeaderComp = GridHeaderComp;\nexports.GridHeaderCtrl = GridHeaderCtrl;\nexports.GridOptionsWrapper = GridOptionsWrapper;\nexports.GridSerializer = GridSerializer;\nexports.GroupCellRenderer = GroupCellRenderer;\nexports.GroupCellRendererCtrl = GroupCellRendererCtrl;\nexports.GroupInstanceIdCreator = GroupInstanceIdCreator;\nexports.HeaderCellCtrl = HeaderCellCtrl;\nexports.HeaderFilterCellComp = HeaderFilterCellComp;\nexports.HeaderFilterCellCtrl = HeaderFilterCellCtrl;\nexports.HeaderGroupCellCtrl = HeaderGroupCellCtrl;\nexports.HeaderNavigationService = HeaderNavigationService;\nexports.HeaderPositionUtils = HeaderPositionUtils;\nexports.HeaderRowComp = HeaderRowComp;\nexports.HeaderRowContainerComp = HeaderRowContainerComp;\nexports.HeaderRowContainerCtrl = HeaderRowContainerCtrl;\nexports.HeaderRowCtrl = HeaderRowCtrl;\nexports.HorizontalResizeService = HorizontalResizeService;\nexports.KeyCode = KeyCode;\nexports.LargeTextCellEditor = LargeTextCellEditor;\nexports.Logger = Logger;\nexports.LoggerFactory = LoggerFactory;\nexports.ManagedFocusFeature = ManagedFocusFeature;\nexports.ModuleRegistry = ModuleRegistry;\nexports.MouseEventService = MouseEventService;\nexports.MoveColumnFeature = MoveColumnFeature;\nexports.NavigationService = NavigationService;\nexports.NumberFilter = NumberFilter;\nexports.NumberSequence = NumberSequence;\nexports.Optional = Optional;\nexports.PaginationProxy = PaginationProxy;\nexports.PinnedRowModel = PinnedRowModel;\nexports.PopupComponent = PopupComponent;\nexports.PopupEditorWrapper = PopupEditorWrapper;\nexports.PopupSelectCellEditor = PopupSelectCellEditor;\nexports.PopupService = PopupService;\nexports.PopupTextCellEditor = PopupTextCellEditor;\nexports.PositionableFeature = PositionableFeature;\nexports.PostConstruct = PostConstruct;\nexports.PreConstruct = PreConstruct;\nexports.PreDestroy = PreDestroy;\nexports.PropertyKeys = PropertyKeys;\nexports.ProvidedColumnGroup = ProvidedColumnGroup;\nexports.ProvidedFilter = ProvidedFilter;\nexports.Qualifier = Qualifier;\nexports.QuerySelector = QuerySelector;\nexports.RefSelector = RefSelector;\nexports.ResizeObserverService = ResizeObserverService;\nexports.RowContainerComp = RowContainerComp;\nexports.RowContainerCtrl = RowContainerCtrl;\nexports.RowCtrl = RowCtrl;\nexports.RowNode = RowNode;\nexports.RowNodeBlock = RowNodeBlock;\nexports.RowNodeBlockLoader = RowNodeBlockLoader;\nexports.RowNodeSorter = RowNodeSorter;\nexports.RowPositionUtils = RowPositionUtils;\nexports.RowRenderer = RowRenderer;\nexports.ScalarFilter = ScalarFilter;\nexports.ScrollVisibleService = ScrollVisibleService;\nexports.SelectCellEditor = SelectCellEditor;\nexports.SelectableService = SelectableService;\nexports.SelectionService = SelectionService;\nexports.SetLeftFeature = SetLeftFeature;\nexports.SimpleFilter = SimpleFilter;\nexports.SortController = SortController;\nexports.StandardMenuFactory = StandardMenuFactory;\nexports.StylingService = StylingService;\nexports.TabGuardComp = TabGuardComp;\nexports.TabGuardCtrl = TabGuardCtrl;\nexports.TabbedLayout = TabbedLayout;\nexports.TemplateService = TemplateService;\nexports.TextCellEditor = TextCellEditor;\nexports.TextFilter = TextFilter;\nexports.TextFloatingFilter = TextFloatingFilter;\nexports.Timer = Timer;\nexports.TouchListener = TouchListener;\nexports.UserComponentFactory = UserComponentFactory;\nexports.UserComponentRegistry = UserComponentRegistry;\nexports.ValueCache = ValueCache;\nexports.ValueFormatterService = ValueFormatterService;\nexports.ValueService = ValueService;\nexports.VanillaFrameworkOverrides = VanillaFrameworkOverrides;\nexports.VirtualList = VirtualList;\nexports.XmlFactory = XmlFactory;\nexports.ZipContainer = ZipContainer;\nexports._ = _;\nexports.defaultGroupComparator = defaultGroupComparator;\nexports.getRowContainerTypeForName = getRowContainerTypeForName;\nexports.simpleHttpRequest = simpleHttpRequest;\nexports.stringToArray = stringToArray;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar agGridReactLegacy_1 = require(\"./legacy/agGridReactLegacy\");\nvar agGridReactUi_1 = require(\"./reactUi/agGridReactUi\");\nvar AgGridReact = /** @class */ (function (_super) {\n    __extends(AgGridReact, _super);\n    function AgGridReact() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.setGridApi = function (api, columnApi) {\n            _this.api = api;\n            _this.columnApi = columnApi;\n        };\n        return _this;\n    }\n    AgGridReact.prototype.render = function () {\n        var ReactComponentToUse = this.props.suppressReactUi ? agGridReactLegacy_1.AgGridReactLegacy : agGridReactUi_1.AgGridReactUi;\n        return react_1.default.createElement(ReactComponentToUse, __assign({}, this.props, { setGridApi: this.setGridApi }));\n    };\n    return AgGridReact;\n}(react_1.Component));\nexports.AgGridReact = AgGridReact;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar prop_types_1 = __importDefault(require(\"prop-types\"));\nvar react_1 = __importStar(require(\"react\"));\nvar legacyReactComponent_1 = require(\"./legacyReactComponent\");\nvar agGridColumn_1 = require(\"../shared/agGridColumn\");\nvar changeDetectionService_1 = require(\"../shared/changeDetectionService\");\nvar newReactComponent_1 = require(\"../shared/newReactComponent\");\nvar portalManager_1 = require(\"../shared/portalManager\");\nvar reactFrameworkOverrides_1 = require(\"../shared/reactFrameworkOverrides\");\nvar AgGridReactLegacy = /** @class */ (function (_super) {\n    __extends(AgGridReactLegacy, _super);\n    function AgGridReactLegacy(props) {\n        var _this = _super.call(this, props) || this;\n        _this.props = props;\n        _this.changeDetectionService = new changeDetectionService_1.ChangeDetectionService();\n        _this.api = null;\n        _this.destroyed = false;\n        _this.SYNCHRONOUS_CHANGE_PROPERTIES = ['context'];\n        _this.portalManager = new portalManager_1.PortalManager(_this, props.componentWrappingElement, props.maxComponentCreationTimeMs);\n        return _this;\n    }\n    AgGridReactLegacy.prototype.render = function () {\n        var _this = this;\n        return react_1.default.createElement('div', {\n            style: this.createStyleForDiv(),\n            className: this.props.className,\n            ref: function (e) {\n                _this.eGridDiv = e;\n            }\n        }, this.portalManager.getPortals());\n    };\n    AgGridReactLegacy.prototype.createStyleForDiv = function () {\n        return __assign({ height: '100%' }, (this.props.containerStyle || {}));\n    };\n    AgGridReactLegacy.prototype.componentDidMount = function () {\n        var modules = this.props.modules || [];\n        var gridParams = {\n            providedBeanInstances: {\n                agGridReact: this,\n                frameworkComponentWrapper: new ReactFrameworkComponentWrapper(this, this.portalManager)\n            },\n            modules: modules,\n            frameworkOverrides: new reactFrameworkOverrides_1.ReactFrameworkOverrides(false)\n        };\n        var gridOptions = this.props.gridOptions || {};\n        var children = this.props.children;\n        if (agGridColumn_1.AgGridColumn.hasChildColumns(children)) {\n            gridOptions.columnDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(children);\n        }\n        this.gridOptions = ag_grid_community_1.ComponentUtil.copyAttributesToGridOptions(gridOptions, this.props);\n        // don't need the return value\n        new ag_grid_community_1.Grid(this.eGridDiv, this.gridOptions, gridParams);\n        this.api = this.gridOptions.api;\n        this.columnApi = this.gridOptions.columnApi;\n        this.props.setGridApi(this.api, this.columnApi);\n    };\n    AgGridReactLegacy.prototype.getStrategyTypeForProp = function (propKey) {\n        if (propKey === 'rowData') {\n            if (this.props.rowDataChangeDetectionStrategy) {\n                return this.props.rowDataChangeDetectionStrategy;\n            }\n            else if (this.isImmutableDataActive()) {\n                return changeDetectionService_1.ChangeDetectionStrategyType.IdentityCheck;\n            }\n        }\n        // all other cases will default to DeepValueCheck\n        return changeDetectionService_1.ChangeDetectionStrategyType.DeepValueCheck;\n    };\n    AgGridReactLegacy.prototype.isImmutableDataActive = function () {\n        return (this.props.deltaRowDataMode || this.props.immutableData) || this.props.getRowId != null ||\n            (this.props.gridOptions && (this.props.gridOptions.deltaRowDataMode\n                || this.props.gridOptions.immutableData\n                || this.props.gridOptions.getRowId != null));\n    };\n    AgGridReactLegacy.prototype.shouldComponentUpdate = function (nextProps) {\n        this.processPropsChanges(this.props, nextProps);\n        // we want full control of the dom, as AG Grid doesn't use React internally,\n        // so for performance reasons we tell React we don't need render called after\n        // property changes.\n        return false;\n    };\n    AgGridReactLegacy.prototype.componentDidUpdate = function (prevProps) {\n        this.processPropsChanges(prevProps, this.props);\n    };\n    AgGridReactLegacy.prototype.processPropsChanges = function (prevProps, nextProps) {\n        var changes = {};\n        this.extractGridPropertyChanges(prevProps, nextProps, changes);\n        this.extractDeclarativeColDefChanges(nextProps, changes);\n        this.processSynchronousChanges(changes);\n        this.processAsynchronousChanges(changes);\n    };\n    AgGridReactLegacy.prototype.extractDeclarativeColDefChanges = function (nextProps, changes) {\n        // if columnDefs are provided on gridOptions we use those - you can't combine both\n        // we also skip if columnDefs are provided as a prop directly on AgGridReact\n        if ((this.props.gridOptions && this.props.gridOptions.columnDefs) || this.props.columnDefs) {\n            return;\n        }\n        var debugLogging = !!nextProps.debug;\n        var propKey = 'columnDefs';\n        var currentColDefs = this.gridOptions.columnDefs;\n        if (agGridColumn_1.AgGridColumn.hasChildColumns(nextProps.children)) {\n            var detectionStrategy = this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(propKey));\n            var newColDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(nextProps.children);\n            if (!detectionStrategy.areEqual(currentColDefs, newColDefs)) {\n                if (debugLogging) {\n                    console.log(\"agGridReact: colDefs definitions changed\");\n                }\n                changes[propKey] =\n                    {\n                        previousValue: currentColDefs,\n                        currentValue: newColDefs\n                    };\n            }\n        }\n        else if (currentColDefs && currentColDefs.length > 0) {\n            changes[propKey] =\n                {\n                    previousValue: currentColDefs,\n                    currentValue: []\n                };\n        }\n    };\n    AgGridReactLegacy.prototype.extractGridPropertyChanges = function (prevProps, nextProps, changes) {\n        var _this = this;\n        var debugLogging = !!nextProps.debug;\n        Object.keys(nextProps).forEach(function (propKey) {\n            if (ag_grid_community_1._.includes(ag_grid_community_1.ComponentUtil.ALL_PROPERTIES, propKey)) {\n                var changeDetectionStrategy = _this.changeDetectionService.getStrategy(_this.getStrategyTypeForProp(propKey));\n                if (!changeDetectionStrategy.areEqual(prevProps[propKey], nextProps[propKey])) {\n                    if (debugLogging) {\n                        console.log(\"agGridReact: [\" + propKey + \"] property changed\");\n                    }\n                    changes[propKey] = {\n                        previousValue: prevProps[propKey],\n                        currentValue: nextProps[propKey]\n                    };\n                }\n            }\n        });\n        ag_grid_community_1.ComponentUtil.getEventCallbacks().forEach(function (funcName) {\n            if (prevProps[funcName] !== nextProps[funcName]) {\n                if (debugLogging) {\n                    console.log(\"agGridReact: [\" + funcName + \"] event callback changed\");\n                }\n                changes[funcName] = {\n                    previousValue: prevProps[funcName],\n                    currentValue: nextProps[funcName]\n                };\n            }\n        });\n    };\n    AgGridReactLegacy.prototype.componentWillUnmount = function () {\n        if (this.api) {\n            this.api.destroy();\n            this.api = null;\n        }\n        this.destroyed = true;\n        this.portalManager.destroy();\n    };\n    AgGridReactLegacy.prototype.isDisableStaticMarkup = function () {\n        return this.props.disableStaticMarkup === true;\n    };\n    AgGridReactLegacy.prototype.isLegacyComponentRendering = function () {\n        return this.props.legacyComponentRendering === true;\n    };\n    AgGridReactLegacy.prototype.processSynchronousChanges = function (changes) {\n        var asyncChanges = __assign({}, changes);\n        if (Object.keys(asyncChanges).length > 0) {\n            var synchronousChanges_1 = {};\n            this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function (synchronousChangeProperty) {\n                if (asyncChanges[synchronousChangeProperty]) {\n                    synchronousChanges_1[synchronousChangeProperty] = asyncChanges[synchronousChangeProperty];\n                    delete asyncChanges[synchronousChangeProperty];\n                }\n            });\n            if (Object.keys(synchronousChanges_1).length > 0 && !!this.api) {\n                ag_grid_community_1.ComponentUtil.processOnChange(synchronousChanges_1, this.gridOptions, this.api, this.columnApi);\n            }\n        }\n        return asyncChanges;\n    };\n    AgGridReactLegacy.prototype.processAsynchronousChanges = function (changes) {\n        var _this = this;\n        if (Object.keys(changes).length > 0) {\n            window.setTimeout(function () {\n                // destroyed?\n                if (_this.api) {\n                    ag_grid_community_1.ComponentUtil.processOnChange(changes, _this.gridOptions, _this.api, _this.columnApi);\n                }\n            });\n        }\n    };\n    AgGridReactLegacy.MAX_COMPONENT_CREATION_TIME_IN_MS = 1000; // a second should be more than enough to instantiate a component\n    AgGridReactLegacy.defaultProps = {\n        legacyComponentRendering: false,\n        disableStaticMarkup: false,\n        maxComponentCreationTimeMs: AgGridReactLegacy.MAX_COMPONENT_CREATION_TIME_IN_MS\n    };\n    return AgGridReactLegacy;\n}(react_1.Component));\nexports.AgGridReactLegacy = AgGridReactLegacy;\nAgGridReactLegacy.propTypes = {\n    gridOptions: prop_types_1.default.object\n};\naddProperties(ag_grid_community_1.ComponentUtil.getEventCallbacks(), prop_types_1.default.func);\naddProperties(ag_grid_community_1.ComponentUtil.BOOLEAN_PROPERTIES, prop_types_1.default.bool);\naddProperties(ag_grid_community_1.ComponentUtil.STRING_PROPERTIES, prop_types_1.default.string);\naddProperties(ag_grid_community_1.ComponentUtil.OBJECT_PROPERTIES, prop_types_1.default.object);\naddProperties(ag_grid_community_1.ComponentUtil.ARRAY_PROPERTIES, prop_types_1.default.array);\naddProperties(ag_grid_community_1.ComponentUtil.NUMBER_PROPERTIES, prop_types_1.default.number);\naddProperties(ag_grid_community_1.ComponentUtil.FUNCTION_PROPERTIES, prop_types_1.default.func);\nfunction addProperties(listOfProps, propType) {\n    listOfProps.forEach(function (propKey) {\n        AgGridReactLegacy[propKey] = propType;\n    });\n}\nvar ReactFrameworkComponentWrapper = /** @class */ (function (_super) {\n    __extends(ReactFrameworkComponentWrapper, _super);\n    function ReactFrameworkComponentWrapper(agGridReact, portalManager) {\n        var _this = _super.call(this) || this;\n        _this.agGridReact = agGridReact;\n        _this.portalManager = portalManager;\n        return _this;\n    }\n    ReactFrameworkComponentWrapper.prototype.createWrapper = function (UserReactComponent, componentType) {\n        if (this.agGridReact.isLegacyComponentRendering()) {\n            return new legacyReactComponent_1.LegacyReactComponent(UserReactComponent, this.agGridReact, this.portalManager, componentType);\n        }\n        else {\n            return new newReactComponent_1.NewReactComponent(UserReactComponent, this.portalManager, componentType);\n        }\n    };\n    return ReactFrameworkComponentWrapper;\n}(ag_grid_community_1.BaseComponentWrapper));\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar react_dom_1 = require(\"react-dom\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar reactComponent_1 = require(\"../shared/reactComponent\");\nvar server_1 = require(\"react-dom/server\");\nvar keyGenerator_1 = __importDefault(require(\"../shared/keyGenerator\"));\nvar LegacyReactComponent = /** @class */ (function (_super) {\n    __extends(LegacyReactComponent, _super);\n    function LegacyReactComponent(reactComponent, parentComponent, portalManager, componentType) {\n        var _this = _super.call(this, reactComponent, portalManager, componentType) || this;\n        _this.staticMarkup = null;\n        _this.staticRenderTime = 0;\n        _this.parentComponent = parentComponent;\n        return _this;\n    }\n    LegacyReactComponent.prototype.init = function (params) {\n        var _this = this;\n        this.eParentElement = this.createParentElement(params);\n        this.renderStaticMarkup(params);\n        return new ag_grid_community_1.AgPromise(function (resolve) { return _this.createReactComponent(params, resolve); });\n    };\n    LegacyReactComponent.prototype.createReactComponent = function (params, resolve) {\n        var _this = this;\n        // regular components (ie not functional)\n        if (!this.isStatelessComponent()) {\n            // grab hold of the actual instance created\n            params.ref = function (element) {\n                _this.componentInstance = element;\n                _this.addParentContainerStyleAndClasses();\n                _this.removeStaticMarkup();\n            };\n        }\n        var reactComponent = react_1.createElement(this.reactComponent, params);\n        var portal = react_dom_1.createPortal(reactComponent, this.eParentElement, keyGenerator_1.default() // fixed deltaRowModeRefreshCompRenderer\n        );\n        this.portal = portal;\n        this.portalManager.mountReactPortal(portal, this, function (value) {\n            resolve(value);\n            // functional/stateless components have a slightly different lifecycle (no refs) so we'll clean them up\n            // here\n            if (_this.isStatelessComponent()) {\n                if (_this.isSlowRenderer()) {\n                    _this.removeStaticMarkup();\n                }\n                setTimeout(function () {\n                    _this.removeStaticMarkup();\n                });\n            }\n        });\n    };\n    LegacyReactComponent.prototype.fallbackMethodAvailable = function (name) {\n        return false;\n    };\n    LegacyReactComponent.prototype.fallbackMethod = function (name, params) { };\n    LegacyReactComponent.prototype.isSlowRenderer = function () {\n        return this.staticRenderTime >= LegacyReactComponent.SLOW_RENDERING_THRESHOLD;\n    };\n    LegacyReactComponent.prototype.isNullValue = function () {\n        return this.staticMarkup === '';\n    };\n    /*\n     * Attempt to render the component as static markup if possible\n     * What this does is eliminate any visible flicker for the user in the scenario where a component is destroyed and\n     * recreated with exactly the same data (ie with force refresh)\n     * Note: Some use cases will throw an error (ie when using Context) so if an error occurs just ignore it any move on\n     */\n    LegacyReactComponent.prototype.renderStaticMarkup = function (params) {\n        if (this.parentComponent.isDisableStaticMarkup() || !this.componentType.cellRenderer) {\n            return;\n        }\n        var originalConsoleError = console.error;\n        var reactComponent = react_1.createElement(this.reactComponent, params);\n        try {\n            // if a user is doing anything that uses useLayoutEffect (like material ui) then it will throw and we\n            // can't do anything to stop it; this is just a warning and has no effect on anything so just suppress it\n            // for this single operation\n            console.error = function () {\n            };\n            var start = Date.now();\n            var staticMarkup = server_1.renderToStaticMarkup(reactComponent);\n            this.staticRenderTime = Date.now() - start;\n            console.error = originalConsoleError;\n            // if the render method returns null the result will be an empty string\n            if (staticMarkup === '') {\n                this.staticMarkup = staticMarkup;\n            }\n            else {\n                if (staticMarkup) {\n                    // we wrap the content as if there is \"trailing\" text etc it's not easy to safely remove\n                    // the same is true for memoized renderers, renderers that that return simple strings or NaN etc\n                    this.staticMarkup = document.createElement('span');\n                    this.staticMarkup.innerHTML = staticMarkup;\n                    this.eParentElement.appendChild(this.staticMarkup);\n                }\n            }\n        }\n        catch (e) {\n            // we tried - this can happen with certain (rare) edge cases\n        }\n        finally {\n            console.error = originalConsoleError;\n        }\n    };\n    LegacyReactComponent.prototype.removeStaticMarkup = function () {\n        if (this.parentComponent.isDisableStaticMarkup() || !this.componentType.cellRenderer) {\n            return;\n        }\n        if (this.staticMarkup) {\n            if (this.staticMarkup.remove) {\n                // everyone else in the world\n                this.staticMarkup.remove();\n                this.staticMarkup = null;\n            }\n            else if (this.eParentElement.removeChild) {\n                // ie11...\n                this.eParentElement.removeChild(this.staticMarkup);\n                this.staticMarkup = null;\n            }\n        }\n    };\n    LegacyReactComponent.prototype.rendered = function () {\n        return this.isNullValue() ||\n            !!this.staticMarkup || (this.isStatelessComponent() && this.statelessComponentRendered()) ||\n            !!(!this.isStatelessComponent() && this.getFrameworkComponentInstance());\n    };\n    LegacyReactComponent.SLOW_RENDERING_THRESHOLD = 3;\n    return LegacyReactComponent;\n}(reactComponent_1.ReactComponent));\nexports.LegacyReactComponent = LegacyReactComponent;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar agGridColumn_1 = require(\"../shared/agGridColumn\");\nvar changeDetectionService_1 = require(\"../shared/changeDetectionService\");\nvar newReactComponent_1 = require(\"../shared/newReactComponent\");\nvar portalManager_1 = require(\"../shared/portalManager\");\nvar gridComp_1 = __importDefault(require(\"./gridComp\"));\nvar reactFrameworkOverrides_1 = require(\"../shared/reactFrameworkOverrides\");\nfunction debug(msg, obj) {\n    // console.log(msg, obj);\n}\nvar AgGridReactUi = /** @class */ (function (_super) {\n    __extends(AgGridReactUi, _super);\n    function AgGridReactUi(props) {\n        var _this = _super.call(this, props) || this;\n        _this.props = props;\n        _this.destroyFuncs = [];\n        _this.changeDetectionService = new changeDetectionService_1.ChangeDetectionService();\n        _this.eGui = react_1.default.createRef();\n        _this.whenReadyFuncs = [];\n        _this.ready = false;\n        _this.renderedAfterMount = false;\n        _this.mounted = false;\n        debug('AgGridReactUi.constructor');\n        _this.state = { context: undefined };\n        _this.portalManager = new portalManager_1.PortalManager(_this, props.componentWrappingElement, props.maxComponentCreationTimeMs);\n        _this.destroyFuncs.push(function () { return _this.portalManager.destroy(); });\n        return _this;\n    }\n    AgGridReactUi.prototype.render = function () {\n        debug('AgGridReactUi.render, context = ' + (this.state.context));\n        if (this.state.context) {\n            this.renderedAfterMount = true;\n        }\n        return (react_1.default.createElement(\"div\", { style: this.createStyleForDiv(), className: this.props.className, ref: this.eGui },\n            this.state.context && react_1.default.createElement(gridComp_1.default, { context: this.state.context }),\n            this.portalManager.getPortals()));\n    };\n    AgGridReactUi.prototype.createStyleForDiv = function () {\n        return __assign({ height: '100%' }, (this.props.containerStyle || {}));\n    };\n    AgGridReactUi.prototype.componentDidMount = function () {\n        var _this = this;\n        if (this.mounted) {\n            debug('AgGridReactUi.componentDidMount - skipping');\n            return;\n        }\n        debug('AgGridReactUi.componentDidMount');\n        this.mounted = true;\n        var modules = this.props.modules || [];\n        var gridParams = {\n            providedBeanInstances: {\n                frameworkComponentWrapper: new ReactFrameworkComponentWrapper(this.portalManager)\n            },\n            modules: modules,\n            frameworkOverrides: new reactFrameworkOverrides_1.ReactFrameworkOverrides(true)\n        };\n        this.gridOptions = this.props.gridOptions || {};\n        var children = this.props.children;\n        if (agGridColumn_1.AgGridColumn.hasChildColumns(children)) {\n            this.gridOptions.columnDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(children);\n        }\n        this.gridOptions = ag_grid_community_1.ComponentUtil.copyAttributesToGridOptions(this.gridOptions, this.props);\n        var createUiCallback = function (context) {\n            _this.setState({ context: context });\n            // because React is Async, we need to wait for the UI to be initialised before exposing the API's\n            var ctrlsService = context.getBean(ag_grid_community_1.CtrlsService.NAME);\n            ctrlsService.whenReady(function () {\n                debug('AgGridReactUi.createUiCallback');\n                _this.api = _this.gridOptions.api;\n                _this.columnApi = _this.gridOptions.columnApi;\n                _this.props.setGridApi(_this.api, _this.columnApi);\n                _this.destroyFuncs.push(function () { return _this.api.destroy(); });\n            });\n        };\n        // this callback adds to ctrlsService.whenReady(), just like above, however because whenReady() executes\n        // funcs in the order they were received, we know adding items here will be AFTER the grid has set columns\n        // and data. this is because GridCoreCreator sets these between calling createUiCallback and acceptChangesCallback\n        var acceptChangesCallback = function (context) {\n            var ctrlsService = context.getBean(ag_grid_community_1.CtrlsService.NAME);\n            ctrlsService.whenReady(function () {\n                debug('AgGridReactUi.acceptChangesCallback');\n                _this.whenReadyFuncs.forEach(function (f) { return f(); });\n                _this.whenReadyFuncs.length = 0;\n                _this.ready = true;\n            });\n        };\n        // don't need the return value\n        var gridCoreCreator = new ag_grid_community_1.GridCoreCreator();\n        gridCoreCreator.create(this.eGui.current, this.gridOptions, createUiCallback, acceptChangesCallback, gridParams);\n    };\n    AgGridReactUi.prototype.componentWillUnmount = function () {\n        if (this.renderedAfterMount) {\n            debug('AgGridReactUi.componentWillUnmount - executing');\n            this.destroyFuncs.forEach(function (f) { return f(); });\n            this.destroyFuncs.length = 0;\n        }\n        else {\n            debug('AgGridReactUi.componentWillUnmount - skipping');\n        }\n    };\n    AgGridReactUi.prototype.componentDidUpdate = function (prevProps) {\n        this.processPropsChanges(prevProps, this.props);\n    };\n    AgGridReactUi.prototype.processPropsChanges = function (prevProps, nextProps) {\n        var changes = {};\n        this.extractGridPropertyChanges(prevProps, nextProps, changes);\n        this.extractDeclarativeColDefChanges(nextProps, changes);\n        this.processChanges(changes);\n    };\n    AgGridReactUi.prototype.extractDeclarativeColDefChanges = function (nextProps, changes) {\n        // if columnDefs are provided on gridOptions we use those - you can't combine both\n        // we also skip if columnDefs are provided as a prop directly on AgGridReact\n        if ((this.props.gridOptions && this.props.gridOptions.columnDefs) || this.props.columnDefs) {\n            return;\n        }\n        var debugLogging = !!nextProps.debug;\n        var propKey = 'columnDefs';\n        var currentColDefs = this.gridOptions.columnDefs;\n        if (agGridColumn_1.AgGridColumn.hasChildColumns(nextProps.children)) {\n            var detectionStrategy = this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(propKey));\n            var newColDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(nextProps.children);\n            if (!detectionStrategy.areEqual(currentColDefs, newColDefs)) {\n                if (debugLogging) {\n                    console.log(\"agGridReact: colDefs definitions changed\");\n                }\n                changes[propKey] =\n                    {\n                        previousValue: currentColDefs,\n                        currentValue: newColDefs\n                    };\n            }\n        }\n        else if (currentColDefs && currentColDefs.length > 0) {\n            changes[propKey] =\n                {\n                    previousValue: currentColDefs,\n                    currentValue: []\n                };\n        }\n    };\n    AgGridReactUi.prototype.extractGridPropertyChanges = function (prevProps, nextProps, changes) {\n        var _this = this;\n        var debugLogging = !!nextProps.debug;\n        Object.keys(nextProps).forEach(function (propKey) {\n            if (ag_grid_community_1._.includes(ag_grid_community_1.ComponentUtil.ALL_PROPERTIES, propKey)) {\n                var changeDetectionStrategy = _this.changeDetectionService.getStrategy(_this.getStrategyTypeForProp(propKey));\n                if (!changeDetectionStrategy.areEqual(prevProps[propKey], nextProps[propKey])) {\n                    if (debugLogging) {\n                        console.log(\"agGridReact: [\" + propKey + \"] property changed\");\n                    }\n                    changes[propKey] = {\n                        previousValue: prevProps[propKey],\n                        currentValue: nextProps[propKey]\n                    };\n                }\n            }\n        });\n        ag_grid_community_1.ComponentUtil.getEventCallbacks().forEach(function (funcName) {\n            if (prevProps[funcName] !== nextProps[funcName]) {\n                if (debugLogging) {\n                    console.log(\"agGridReact: [\" + funcName + \"] event callback changed\");\n                }\n                changes[funcName] = {\n                    previousValue: prevProps[funcName],\n                    currentValue: nextProps[funcName]\n                };\n            }\n        });\n    };\n    AgGridReactUi.prototype.processChanges = function (changes) {\n        var _this = this;\n        this.processWhenReady(function () {\n            return ag_grid_community_1.ComponentUtil.processOnChange(changes, _this.gridOptions, _this.api, _this.columnApi);\n        });\n    };\n    AgGridReactUi.prototype.processWhenReady = function (func) {\n        if (this.ready) {\n            debug('AgGridReactUi.processWhenReady sync');\n            func();\n        }\n        else {\n            debug('AgGridReactUi.processWhenReady async');\n            this.whenReadyFuncs.push(func);\n        }\n    };\n    AgGridReactUi.prototype.getStrategyTypeForProp = function (propKey) {\n        if (propKey === 'rowData') {\n            if (this.props.rowDataChangeDetectionStrategy) {\n                return this.props.rowDataChangeDetectionStrategy;\n            }\n            if (this.isImmutableDataActive()) {\n                return changeDetectionService_1.ChangeDetectionStrategyType.IdentityCheck;\n            }\n        }\n        // all other cases will default to DeepValueCheck\n        return changeDetectionService_1.ChangeDetectionStrategyType.DeepValueCheck;\n    };\n    AgGridReactUi.prototype.isImmutableDataActive = function () {\n        return (this.props.deltaRowDataMode || this.props.immutableData || this.props.getRowId != null) ||\n            (this.props.gridOptions && (this.props.gridOptions.deltaRowDataMode\n                || this.props.gridOptions.immutableData\n                || this.props.gridOptions.getRowId != null));\n    };\n    return AgGridReactUi;\n}(react_1.Component));\nexports.AgGridReactUi = AgGridReactUi;\nvar ReactFrameworkComponentWrapper = /** @class */ (function (_super) {\n    __extends(ReactFrameworkComponentWrapper, _super);\n    function ReactFrameworkComponentWrapper(parent) {\n        var _this = _super.call(this) || this;\n        _this.parent = parent;\n        return _this;\n    }\n    ReactFrameworkComponentWrapper.prototype.createWrapper = function (UserReactComponent, componentType) {\n        return new newReactComponent_1.NewReactComponent(UserReactComponent, this.parent, componentType);\n    };\n    return ReactFrameworkComponentWrapper;\n}(ag_grid_community_1.BaseComponentWrapper));\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importDefault(require(\"react\"));\nexports.BeansContext = react_1.default.createContext({});\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar utils_1 = require(\"../utils\");\nvar beansContext_1 = require(\"../beansContext\");\nvar agGridReactUi_1 = require(\"../agGridReactUi\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar DetailCellRenderer = function (props, ref) {\n    var _a = react_1.useContext(beansContext_1.BeansContext), ctrlsFactory = _a.ctrlsFactory, context = _a.context, gridOptionsWrapper = _a.gridOptionsWrapper, resizeObserverService = _a.resizeObserverService, clientSideRowModel = _a.clientSideRowModel, serverSideRowModel = _a.serverSideRowModel;\n    var _b = react_1.useState(new utils_1.CssClasses()), cssClasses = _b[0], setCssClasses = _b[1];\n    var _c = react_1.useState(new utils_1.CssClasses()), gridCssClasses = _c[0], setGridCssClasses = _c[1];\n    var _d = react_1.useState(), detailGridOptions = _d[0], setDetailGridOptions = _d[1];\n    var _e = react_1.useState(), detailRowData = _e[0], setDetailRowData = _e[1];\n    var ctrlRef = react_1.useRef();\n    var eGuiRef = react_1.useRef(null);\n    var topClassName = react_1.useMemo(function () { return cssClasses.toString() + ' ag-details-row'; }, [cssClasses]);\n    var gridClassName = react_1.useMemo(function () { return gridCssClasses.toString() + ' ag-details-grid'; }, [gridCssClasses]);\n    if (ref) {\n        react_1.useImperativeHandle(ref, function () { return ({\n            refresh: function () { return ctrlRef.current.refresh(); }\n        }); });\n    }\n    useEffectOnce_1.useEffectOnce(function () {\n        if (props.template && typeof props.template === 'string') {\n            console.warn('AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.');\n        }\n    });\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            addOrRemoveDetailGridCssClass: function (name, on) { return setGridCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setDetailGrid: function (gridOptions) { return setDetailGridOptions(gridOptions); },\n            setRowData: function (rowData) { return setDetailRowData(rowData); },\n            getGui: function () { return eGuiRef.current; }\n        };\n        var ctrl = ctrlsFactory.getInstance('detailCellRenderer');\n        if (!ctrl) {\n            return;\n        } // should never happen, means master/detail module not loaded\n        context.createBean(ctrl);\n        ctrl.init(compProxy, props);\n        ctrlRef.current = ctrl;\n        var resizeObserverDestroyFunc;\n        if (gridOptionsWrapper.isDetailRowAutoHeight()) {\n            var checkRowSizeFunc = function () {\n                // when disposed, current is null, so nothing to do, and the resize observer will\n                // be disposed of soon\n                if (eGuiRef.current == null) {\n                    return;\n                }\n                var clientHeight = eGuiRef.current.clientHeight;\n                // if the UI is not ready, the height can be 0, which we ignore, as otherwise a flicker will occur\n                // as UI goes from the default height, to 0, then to the real height as UI becomes ready. this means\n                // it's not possible for have 0 as auto-height, however this is an improbable use case, as even an\n                // empty detail grid would still have some styling around it giving at least a few pixels.\n                if (clientHeight != null && clientHeight > 0) {\n                    // we do the update in a timeout, to make sure we are not calling from inside the grid\n                    // doing another update\n                    var updateRowHeightFunc = function () {\n                        props.node.setRowHeight(clientHeight);\n                        if (clientSideRowModel) {\n                            clientSideRowModel.onRowHeightChanged();\n                        }\n                        else if (serverSideRowModel) {\n                            serverSideRowModel.onRowHeightChanged();\n                        }\n                    };\n                    setTimeout(updateRowHeightFunc, 0);\n                }\n            };\n            resizeObserverDestroyFunc = resizeObserverService.observeResize(eGuiRef.current, checkRowSizeFunc);\n            checkRowSizeFunc();\n        }\n        return function () {\n            context.destroyBean(ctrl);\n            if (resizeObserverDestroyFunc) {\n                resizeObserverDestroyFunc();\n            }\n        };\n    });\n    var setGridApi = react_1.useCallback(function (api, columnApi) {\n        ctrlRef.current.registerDetailWithMaster(api, columnApi);\n    }, []);\n    return (react_1.default.createElement(\"div\", { className: topClassName, ref: eGuiRef }, detailGridOptions &&\n        react_1.default.createElement(agGridReactUi_1.AgGridReactUi, __assign({ className: gridClassName }, detailGridOptions, { rowData: detailRowData, setGridApi: setGridApi }))));\n};\nexports.default = react_1.forwardRef(DetailCellRenderer);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar jsComp_1 = require(\"../jsComp\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar utils_1 = require(\"../utils\");\nvar GroupCellRenderer = react_1.forwardRef(function (props, ref) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var eGui = react_1.useRef(null);\n    var eValueRef = react_1.useRef(null);\n    var eCheckboxRef = react_1.useRef(null);\n    var eExpandedRef = react_1.useRef(null);\n    var eContractedRef = react_1.useRef(null);\n    var _a = react_1.useState(), innerCompDetails = _a[0], setInnerCompDetails = _a[1];\n    var _b = react_1.useState(), childCount = _b[0], setChildCount = _b[1];\n    var _c = react_1.useState(), value = _c[0], setValue = _c[1];\n    var _d = react_1.useState(new utils_1.CssClasses()), cssClasses = _d[0], setCssClasses = _d[1];\n    var _e = react_1.useState(new utils_1.CssClasses('ag-hidden')), expandedCssClasses = _e[0], setExpandedCssClasses = _e[1];\n    var _f = react_1.useState(new utils_1.CssClasses('ag-hidden')), contractedCssClasses = _f[0], setContractedCssClasses = _f[1];\n    var _g = react_1.useState(new utils_1.CssClasses('ag-invisible')), checkboxCssClasses = _g[0], setCheckboxCssClasses = _g[1];\n    react_1.useImperativeHandle(ref, function () {\n        return {\n            // force new instance when grid tries to refresh\n            refresh: function () { return false; }\n        };\n    });\n    react_1.useEffect(function () {\n        return jsComp_1.showJsComp(innerCompDetails, context, eValueRef.current);\n    }, [innerCompDetails]);\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            setInnerRenderer: function (details, valueToDisplay) {\n                setInnerCompDetails(details);\n                setValue(valueToDisplay);\n            },\n            setChildCount: function (count) { return setChildCount(count); },\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setContractedDisplayed: function (displayed) { return setContractedCssClasses(function (prev) { return prev.setClass('ag-hidden', !displayed); }); },\n            setExpandedDisplayed: function (displayed) { return setExpandedCssClasses(function (prev) { return prev.setClass('ag-hidden', !displayed); }); },\n            setCheckboxVisible: function (visible) { return setCheckboxCssClasses(function (prev) { return prev.setClass('ag-invisible', !visible); }); }\n        };\n        var ctrl = context.createBean(new ag_grid_community_1.GroupCellRendererCtrl());\n        ctrl.init(compProxy, eGui.current, eCheckboxRef.current, eExpandedRef.current, eContractedRef.current, GroupCellRenderer, props);\n        return function () { context.destroyBean(ctrl); };\n    });\n    var className = react_1.useMemo(function () { return \"ag-cell-wrapper \" + cssClasses.toString(); }, [cssClasses]);\n    var expandedClassName = react_1.useMemo(function () { return \"ag-group-expanded \" + expandedCssClasses.toString(); }, [expandedCssClasses]);\n    var contractedClassName = react_1.useMemo(function () { return \"ag-group-contracted \" + contractedCssClasses.toString(); }, [contractedCssClasses]);\n    var checkboxClassName = react_1.useMemo(function () { return \"ag-group-checkbox \" + checkboxCssClasses.toString(); }, [checkboxCssClasses]);\n    var useFwRenderer = innerCompDetails && innerCompDetails.componentFromFramework;\n    var FwRenderer = useFwRenderer ? innerCompDetails.componentClass : undefined;\n    var useValue = innerCompDetails == null && value != null;\n    return (react_1.default.createElement(\"span\", __assign({ className: className, ref: eGui }, (!props.colDef ? { role: 'gridcell' } : {})),\n        react_1.default.createElement(\"span\", { className: expandedClassName, ref: eExpandedRef }),\n        react_1.default.createElement(\"span\", { className: contractedClassName, ref: eContractedRef }),\n        react_1.default.createElement(\"span\", { className: checkboxClassName, ref: eCheckboxRef }),\n        react_1.default.createElement(\"span\", { className: \"ag-group-value\", ref: eValueRef },\n            useValue && react_1.default.createElement(react_1.default.Fragment, null, value),\n            useFwRenderer && react_1.default.createElement(FwRenderer, __assign({}, innerCompDetails.params))),\n        react_1.default.createElement(\"span\", { className: \"ag-group-child-count\" }, childCount)));\n});\n// we do not memo() here, as it would stop the forwardRef working\nexports.default = GroupCellRenderer;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar utils_1 = require(\"../utils\");\nvar popupEditorComp_1 = __importDefault(require(\"./popupEditorComp\"));\nvar showJsRenderer_1 = __importDefault(require(\"./showJsRenderer\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar jsComp_1 = require(\"../jsComp\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar CellCompState;\n(function (CellCompState) {\n    CellCompState[CellCompState[\"ShowValue\"] = 0] = \"ShowValue\";\n    CellCompState[CellCompState[\"EditValue\"] = 1] = \"EditValue\";\n})(CellCompState = exports.CellCompState || (exports.CellCompState = {}));\nvar checkCellEditorDeprecations = function (popup, cellEditor, cellCtrl) {\n    var col = cellCtrl.getColumn();\n    // cellEditor is written to be a popup editor, however colDef.cellEditorPopup is not set\n    if (!popup && cellEditor.isPopup && cellEditor.isPopup()) {\n        var msg_1 = \"AG Grid: Found an issue in column \" + col.getColId() + \". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.\";\n        ag_grid_community_1._.doOnce(function () { return console.warn(msg_1); }, 'jsEditorComp-isPopup-' + cellCtrl.getColumn().getColId());\n    }\n    // cellEditor is a popup and is trying to position itself the deprecated way\n    if (popup && cellEditor.getPopupPosition && cellEditor.getPopupPosition() != null) {\n        var msg_2 = \"AG Grid: Found an issue in column \" + col.getColId() + \". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.\";\n        ag_grid_community_1._.doOnce(function () { return console.warn(msg_2); }, 'jsEditorComp-getPopupPosition-' + cellCtrl.getColumn().getColId());\n    }\n};\nvar jsxEditValue = function (editDetails, setInlineCellEditorRef, setPopupCellEditorRef, eGui, cellCtrl, jsEditorComp) {\n    var compDetails = editDetails.compDetails;\n    var CellEditorClass = compDetails.componentClass;\n    var reactInlineEditor = compDetails.componentFromFramework && !editDetails.popup;\n    var reactPopupEditor = compDetails.componentFromFramework && editDetails.popup;\n    var jsPopupEditor = !compDetails.componentFromFramework && editDetails.popup;\n    return (react_1.default.createElement(react_1.default.Fragment, null,\n        reactInlineEditor\n            && react_1.default.createElement(CellEditorClass, __assign({}, editDetails.compDetails.params, { ref: setInlineCellEditorRef })),\n        reactPopupEditor\n            && react_1.default.createElement(popupEditorComp_1.default, { editDetails: editDetails, cellCtrl: cellCtrl, eParentCell: eGui, wrappedContent: react_1.default.createElement(CellEditorClass, __assign({}, editDetails.compDetails.params, { ref: setPopupCellEditorRef })) }),\n        jsPopupEditor && jsEditorComp && react_1.default.createElement(popupEditorComp_1.default, { editDetails: editDetails, cellCtrl: cellCtrl, eParentCell: eGui, jsChildComp: jsEditorComp })));\n};\nvar jsxShowValue = function (showDetails, key, parentId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setECellValue) {\n    var compDetails = showDetails.compDetails, value = showDetails.value;\n    var noCellRenderer = !compDetails;\n    var reactCellRenderer = compDetails && compDetails.componentFromFramework;\n    var CellRendererClass = compDetails && compDetails.componentClass;\n    // if we didn't do this, objects would cause React error. we depend on objects for things\n    // like the aggregation functions avg and count, which return objects and depend on toString()\n    // getting called.\n    var valueForNoCellRenderer = (value && value.toString) ? value.toString() : value;\n    var bodyJsxFunc = function () { return (react_1.default.createElement(react_1.default.Fragment, null,\n        noCellRenderer && react_1.default.createElement(react_1.default.Fragment, null, valueForNoCellRenderer),\n        reactCellRenderer && !reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params, { key: key, ref: cellRendererRef })),\n        reactCellRenderer && reactCellRendererStateless && react_1.default.createElement(CellRendererClass, __assign({}, compDetails.params, { key: key })))); };\n    return (react_1.default.createElement(react_1.default.Fragment, null, showCellWrapper ?\n        react_1.default.createElement(\"span\", { role: \"presentation\", id: \"cell-\" + parentId, className: \"ag-cell-value\", ref: setECellValue }, bodyJsxFunc())\n        :\n            bodyJsxFunc()));\n};\nvar CellComp = function (props) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var cellCtrl = props.cellCtrl, printLayout = props.printLayout, editingRow = props.editingRow;\n    var _a = react_1.useState(), renderDetails = _a[0], setRenderDetails = _a[1];\n    var _b = react_1.useState(), editDetails = _b[0], setEditDetails = _b[1];\n    var _c = react_1.useState(1), renderKey = _c[0], setRenderKey = _c[1];\n    var _d = react_1.useState(new utils_1.CssClasses()), cssClasses = _d[0], setCssClasses = _d[1];\n    var _e = react_1.useState(), userStyles = _e[0], setUserStyles = _e[1];\n    var _f = react_1.useState(), tabIndex = _f[0], setTabIndex = _f[1];\n    var _g = react_1.useState(), ariaDescribedBy = _g[0], setAriaDescribedBy = _g[1];\n    var _h = react_1.useState(), role = _h[0], setRole = _h[1];\n    var _j = react_1.useState(), colId = _j[0], setColId = _j[1];\n    var _k = react_1.useState(), title = _k[0], setTitle = _k[1];\n    var _l = react_1.useState(false), includeSelection = _l[0], setIncludeSelection = _l[1];\n    var _m = react_1.useState(false), includeRowDrag = _m[0], setIncludeRowDrag = _m[1];\n    var _o = react_1.useState(false), includeDndSource = _o[0], setIncludeDndSource = _o[1];\n    var _p = react_1.useState(), jsEditorComp = _p[0], setJsEditorComp = _p[1];\n    var forceWrapper = react_1.useMemo(function () { return cellCtrl.isForceWrapper(); }, []);\n    var eGui = react_1.useRef(null);\n    var cellRendererRef = react_1.useRef(null);\n    var jsCellRendererRef = react_1.useRef();\n    var cellEditorRef = react_1.useRef();\n    // when setting the ref, we also update the state item to force a re-render\n    var eCellWrapper = react_1.useRef();\n    var _q = react_1.useState(0), cellWrapperVersion = _q[0], setCellWrapperVersion = _q[1];\n    var setCellWrapperRef = react_1.useCallback(function (ref) {\n        eCellWrapper.current = ref;\n        setCellWrapperVersion(function (v) { return v + 1; });\n    }, []);\n    // when setting the ref, we also update the state item to force a re-render\n    var eCellValue = react_1.useRef();\n    var _r = react_1.useState(0), cellValueVersion = _r[0], setCellValueVersion = _r[1];\n    var setCellValueRef = react_1.useCallback(function (ref) {\n        eCellValue.current = ref;\n        setCellValueVersion(function (v) { return v + 1; });\n    }, []);\n    var showTools = renderDetails != null && (includeSelection || includeDndSource || includeRowDrag);\n    var showCellWrapper = forceWrapper || showTools;\n    var setCellEditorRef = react_1.useCallback(function (popup, cellEditor) {\n        cellEditorRef.current = cellEditor;\n        if (cellEditor) {\n            checkCellEditorDeprecations(popup, cellEditor, cellCtrl);\n            var editingCancelledByUserComp = cellEditor.isCancelBeforeStart && cellEditor.isCancelBeforeStart();\n            if (editingCancelledByUserComp) {\n                // we cannot set state inside render, so hack is to do it in next VM turn\n                setTimeout(function () { return cellCtrl.stopEditing(); }, 0);\n            }\n        }\n    }, []);\n    var setPopupCellEditorRef = react_1.useCallback(function (cellRenderer) { return setCellEditorRef(true, cellRenderer); }, []);\n    var setInlineCellEditorRef = react_1.useCallback(function (cellRenderer) { return setCellEditorRef(false, cellRenderer); }, []);\n    showJsRenderer_1.default(renderDetails, showCellWrapper, eCellValue.current, cellValueVersion, jsCellRendererRef, eGui);\n    // if RenderDetails changed, need to call refresh. This is not our preferred way (the preferred\n    // way for React is just allow the new props to propagate down to the React Cell Renderer)\n    // however we do this for backwards compatibility, as having refresh used to be supported.\n    var lastRenderDetails = react_1.useRef();\n    react_1.useEffect(function () {\n        var oldDetails = lastRenderDetails.current;\n        var newDetails = renderDetails;\n        lastRenderDetails.current = renderDetails;\n        // if not updating renderDetails, do nothing\n        if (oldDetails == null || oldDetails.compDetails == null\n            || newDetails == null || newDetails.compDetails == null) {\n            return;\n        }\n        var oldCompDetails = oldDetails.compDetails;\n        var newCompDetails = newDetails.compDetails;\n        // if different Cell Renderer, then do nothing, as renderer will be recreated\n        if (oldCompDetails.componentClass != newCompDetails.componentClass) {\n            return;\n        }\n        // if no refresh method, do nothing\n        if (cellRendererRef.current == null || cellRendererRef.current.refresh == null) {\n            return;\n        }\n        var result = cellRendererRef.current.refresh(newCompDetails.params);\n        if (result != true) {\n            // increasing the render key forces the refresh. this is undocumented (for React users,\n            // we don't document the refresh method, instead we tell them to act on new params).\n            // however the GroupCellRenderer has this logic in it and would need a small refactor\n            // to get it working without using refresh() returning false. so this hack staying in,\n            // in React if refresh() is implemented and returns false (or undefined), we force a refresh\n            setRenderKey(function (prev) { return prev + 1; });\n        }\n    }, [renderDetails]);\n    react_1.useEffect(function () {\n        var doingJsEditor = editDetails && !editDetails.compDetails.componentFromFramework;\n        if (!doingJsEditor) {\n            return;\n        }\n        var compDetails = editDetails.compDetails;\n        var isPopup = editDetails.popup === true;\n        var cellEditor = jsComp_1.createSyncJsComp(compDetails);\n        if (!cellEditor) {\n            return;\n        }\n        var compGui = cellEditor.getGui();\n        setCellEditorRef(isPopup, cellEditor);\n        if (!isPopup) {\n            eGui.current.appendChild(compGui);\n            cellEditor.afterGuiAttached && cellEditor.afterGuiAttached();\n        }\n        setJsEditorComp(cellEditor);\n        return function () {\n            context.destroyBean(cellEditor);\n            setCellEditorRef(isPopup, undefined);\n            setJsEditorComp(undefined);\n            if (compGui && compGui.parentElement) {\n                compGui.parentElement.removeChild(compGui);\n            }\n        };\n    }, [editDetails]);\n    // tool widgets effect\n    react_1.useEffect(function () {\n        if (!cellCtrl || !context) {\n            return;\n        }\n        setAriaDescribedBy(!!eCellWrapper.current ? \"cell-\" + cellCtrl.getInstanceId() : undefined);\n        if (!eCellWrapper.current || !showCellWrapper) {\n            return;\n        }\n        var destroyFuncs = [];\n        var addComp = function (comp) {\n            if (comp) {\n                var eGui_1 = comp.getGui();\n                eCellWrapper.current.insertAdjacentElement('afterbegin', eGui_1);\n                destroyFuncs.push(function () {\n                    context.destroyBean(comp);\n                    ag_grid_community_1._.removeFromParent(eGui_1);\n                });\n            }\n            return comp;\n        };\n        if (includeSelection) {\n            addComp(cellCtrl.createSelectionCheckbox());\n        }\n        if (includeDndSource) {\n            addComp(cellCtrl.createDndSource());\n        }\n        if (includeRowDrag) {\n            addComp(cellCtrl.createRowDragComp());\n        }\n        return function () {\n            destroyFuncs.forEach(function (f) {\n                f();\n            });\n        };\n    }, [showCellWrapper, includeDndSource, includeRowDrag, includeSelection, cellWrapperVersion]);\n    useEffectOnce_1.useEffectOnce(function () {\n        if (!cellCtrl) {\n            return;\n        }\n        var compProxy = {\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setUserStyles: function (styles) { return setUserStyles(styles); },\n            getFocusableElement: function () { return eGui.current; },\n            setTabIndex: function (tabIndex) { return setTabIndex(tabIndex); },\n            setRole: function (role) { return setRole(role); },\n            setColId: function (colId) { return setColId(colId); },\n            setTitle: function (title) { return setTitle(title); },\n            setIncludeSelection: function (include) { return setIncludeSelection(include); },\n            setIncludeRowDrag: function (include) { return setIncludeRowDrag(include); },\n            setIncludeDndSource: function (include) { return setIncludeDndSource(include); },\n            getCellEditor: function () { return cellEditorRef.current || null; },\n            getCellRenderer: function () { return cellRendererRef.current ? cellRendererRef.current : jsCellRendererRef.current; },\n            getParentOfValue: function () { return eCellValue.current ? eCellValue.current : eCellWrapper.current ? eCellWrapper.current : eGui.current; },\n            setRenderDetails: function (compDetails, value, force) {\n                setRenderDetails({\n                    value: value,\n                    compDetails: compDetails,\n                    force: force\n                });\n            },\n            setEditDetails: function (compDetails, popup, popupPosition) {\n                if (compDetails) {\n                    // start editing\n                    setEditDetails({\n                        compDetails: compDetails,\n                        popup: popup,\n                        popupPosition: popupPosition\n                    });\n                    if (!popup) {\n                        setRenderDetails(undefined);\n                    }\n                }\n                else {\n                    // stop editing\n                    setEditDetails(undefined);\n                }\n            }\n        };\n        var cellWrapperOrUndefined = eCellWrapper.current || undefined;\n        cellCtrl.setComp(compProxy, eGui.current, cellWrapperOrUndefined, printLayout, editingRow);\n    });\n    var reactCellRendererStateless = react_1.useMemo(function () {\n        var res = renderDetails && renderDetails.compDetails\n            && renderDetails.compDetails.componentFromFramework\n            && utils_1.isComponentStateless(renderDetails.compDetails.componentClass);\n        return !!res;\n    }, [renderDetails]);\n    var className = react_1.useMemo(function () {\n        var res = cssClasses.toString();\n        if (!showCellWrapper) {\n            res += ' ag-cell-value';\n        }\n        return res;\n    }, [cssClasses, showTools]);\n    var cellInstanceId = react_1.useMemo(function () { return cellCtrl.getInstanceId(); }, []);\n    var showContents = function () { return react_1.default.createElement(react_1.default.Fragment, null,\n        renderDetails != null && jsxShowValue(renderDetails, renderKey, cellInstanceId, cellRendererRef, showCellWrapper, reactCellRendererStateless, setCellValueRef),\n        editDetails != null && jsxEditValue(editDetails, setInlineCellEditorRef, setPopupCellEditorRef, eGui.current, cellCtrl, jsEditorComp)); };\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: className, style: userStyles, tabIndex: tabIndex, role: role, \"col-id\": colId, title: title, \"aria-describedby\": ariaDescribedBy }, showCellWrapper ?\n        react_1.default.createElement(\"div\", { className: \"ag-cell-wrapper\", role: \"presentation\", ref: setCellWrapperRef }, showContents())\n        :\n            showContents()));\n};\nexports.default = react_1.memo(CellComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar react_dom_1 = require(\"react-dom\");\nvar beansContext_1 = require(\"../beansContext\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar PopupEditorComp = function (props) {\n    var _a = react_1.useState(), popupEditorWrapper = _a[0], setPopupEditorWrapper = _a[1];\n    var _b = react_1.useContext(beansContext_1.BeansContext), context = _b.context, popupService = _b.popupService, gridOptionsWrapper = _b.gridOptionsWrapper;\n    useEffectOnce_1.useEffectOnce(function () {\n        var editDetails = props.editDetails, cellCtrl = props.cellCtrl, eParentCell = props.eParentCell;\n        var compDetails = editDetails.compDetails;\n        var useModelPopup = gridOptionsWrapper.isStopEditingWhenCellsLoseFocus();\n        var wrapper = context.createBean(new ag_grid_community_1.PopupEditorWrapper(compDetails.params));\n        var ePopupGui = wrapper.getGui();\n        if (props.jsChildComp) {\n            var eChildGui = props.jsChildComp.getGui();\n            if (eChildGui) {\n                ePopupGui.appendChild(eChildGui);\n            }\n        }\n        var positionParams = {\n            column: cellCtrl.getColumn(),\n            rowNode: cellCtrl.getRowNode(),\n            type: 'popupCellEditor',\n            eventSource: eParentCell,\n            ePopup: ePopupGui,\n            keepWithinBounds: true\n        };\n        var positionCallback = editDetails.popupPosition === 'under' ?\n            popupService.positionPopupUnderComponent.bind(popupService, positionParams)\n            : popupService.positionPopupOverComponent.bind(popupService, positionParams);\n        var translate = gridOptionsWrapper.getLocaleTextFunc();\n        var addPopupRes = popupService.addPopup({\n            modal: useModelPopup,\n            eChild: ePopupGui,\n            closeOnEsc: true,\n            closedCallback: function () { cellCtrl.onPopupEditorClosed(); },\n            anchorToElement: eParentCell,\n            positionCallback: positionCallback,\n            ariaLabel: translate('ariaLabelCellEditor', 'Cell Editor')\n        });\n        var hideEditorPopup = addPopupRes ? addPopupRes.hideFunc : undefined;\n        setPopupEditorWrapper(wrapper);\n        props.jsChildComp && props.jsChildComp.afterGuiAttached && props.jsChildComp.afterGuiAttached();\n        return function () {\n            if (hideEditorPopup != null) {\n                hideEditorPopup();\n            }\n            context.destroyBean(wrapper);\n        };\n    });\n    return (react_1.default.createElement(react_1.default.Fragment, null, popupEditorWrapper && props.wrappedContent\n        && react_dom_1.createPortal(props.wrappedContent, popupEditorWrapper.getGui())));\n};\nexports.default = react_1.memo(PopupEditorComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar beansContext_1 = require(\"../beansContext\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar useJsCellRenderer = function (showDetails, showTools, eCellValue, cellValueVersion, jsCellRendererRef, eGui) {\n    var _a = react_1.useContext(beansContext_1.BeansContext), context = _a.context, userComponentFactory = _a.userComponentFactory;\n    var destroyCellRenderer = react_1.useCallback(function () {\n        var comp = jsCellRendererRef.current;\n        if (!comp) {\n            return;\n        }\n        var compGui = comp.getGui();\n        if (compGui && compGui.parentElement) {\n            compGui.parentElement.removeChild(compGui);\n        }\n        context.destroyBean(comp);\n        jsCellRendererRef.current = undefined;\n    }, []);\n    // create or refresh JS cell renderer\n    react_1.useEffect(function () {\n        var showValue = showDetails != null;\n        var jsCompDetails = showDetails && showDetails.compDetails && !showDetails.compDetails.componentFromFramework;\n        var waitingForToolsSetup = showTools && eCellValue == null;\n        var showComp = showValue && jsCompDetails && !waitingForToolsSetup;\n        // if not showing comp, destroy any existing one and return\n        if (!showComp) {\n            destroyCellRenderer();\n            return;\n        }\n        var compDetails = showDetails.compDetails;\n        if (jsCellRendererRef.current) {\n            // attempt refresh if refresh method exists\n            var comp_1 = jsCellRendererRef.current;\n            var attemptRefresh = comp_1.refresh != null && showDetails.force == false;\n            var refreshResult = attemptRefresh ? comp_1.refresh(compDetails.params) : false;\n            var refreshWorked = refreshResult === true || refreshResult === undefined;\n            // if refresh worked, nothing else to do\n            if (refreshWorked) {\n                return;\n            }\n            // if refresh didn't work, we destroy it and continue, so new cell renderer created below\n            destroyCellRenderer();\n        }\n        var promise = compDetails.newAgStackInstance();\n        ;\n        if (!promise) {\n            return;\n        }\n        var comp = promise.resolveNow(null, function (x) { return x; }); // js comps are never async\n        if (!comp) {\n            return;\n        }\n        var compGui = comp.getGui();\n        if (!compGui) {\n            return;\n        }\n        var parent = showTools ? eCellValue : eGui.current;\n        parent.appendChild(compGui);\n        jsCellRendererRef.current = comp;\n    }, [showDetails, showTools, cellValueVersion]);\n    // this effect makes sure destroyCellRenderer gets called when the\n    // component is destroyed. as the other effect only updates when there\n    // is a change in state\n    useEffectOnce_1.useEffectOnce(function () {\n        return destroyCellRenderer;\n    });\n};\nexports.default = useJsCellRenderer;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"./beansContext\");\nvar gridHeaderComp_1 = __importDefault(require(\"./header/gridHeaderComp\"));\nvar reactComment_1 = __importDefault(require(\"./reactComment\"));\nvar rowContainerComp_1 = __importDefault(require(\"./rows/rowContainerComp\"));\nvar useEffectOnce_1 = require(\"./useEffectOnce\");\nvar utils_1 = require(\"./utils\");\nvar GridBodyComp = function () {\n    var _a = react_1.useContext(beansContext_1.BeansContext), context = _a.context, agStackComponentsRegistry = _a.agStackComponentsRegistry, resizeObserverService = _a.resizeObserverService;\n    var _b = react_1.useState(''), rowAnimationClass = _b[0], setRowAnimationClass = _b[1];\n    var _c = react_1.useState(0), ariaColCount = _c[0], setAriaColCount = _c[1];\n    var _d = react_1.useState(0), ariaRowCount = _d[0], setAriaRowCount = _d[1];\n    var _e = react_1.useState(0), topHeight = _e[0], setTopHeight = _e[1];\n    var _f = react_1.useState(0), bottomHeight = _f[0], setBottomHeight = _f[1];\n    var _g = react_1.useState(''), topDisplay = _g[0], setTopDisplay = _g[1];\n    var _h = react_1.useState(''), bottomDisplay = _h[0], setBottomDisplay = _h[1];\n    var _j = react_1.useState(null), movingCss = _j[0], setMovingCss = _j[1];\n    var _k = react_1.useState(null), forceVerticalScrollClass = _k[0], setForceVerticalScrollClass = _k[1];\n    var _l = react_1.useState(''), topAndBottomOverflowY = _l[0], setTopAndBottomOverflowY = _l[1];\n    var _m = react_1.useState(null), cellSelectableCss = _m[0], setCellSelectableCss = _m[1];\n    // we initialise layoutClass to 'ag-layout-normal', because if we don't, the comp will initially\n    // render with no width (as ag-layout-normal sets width to 0, which is needed for flex) which\n    // gives the grid a massive width, which then renders a massive amount of columns. this problem\n    // is due to React been async, for the non-async version (ie when not using React) this is not a\n    // problem as the UI will finish initialising before we set data.\n    var _o = react_1.useState('ag-layout-normal'), layoutClass = _o[0], setLayoutClass = _o[1];\n    var eRoot = react_1.useRef(null);\n    var eTop = react_1.useRef(null);\n    var eBodyViewport = react_1.useRef(null);\n    var eBottom = react_1.useRef(null);\n    reactComment_1.default(' AG Grid Body ', eRoot);\n    reactComment_1.default(' AG Pinned Top ', eTop);\n    reactComment_1.default(' AG Middle ', eBodyViewport);\n    reactComment_1.default(' AG Pinned Bottom ', eBottom);\n    useEffectOnce_1.useEffectOnce(function () {\n        var beansToDestroy = [];\n        var destroyFuncs = [];\n        if (!context) {\n            return;\n        }\n        var newComp = function (tag) {\n            var CompClass = agStackComponentsRegistry.getComponentClass(tag);\n            var comp = context.createBean(new CompClass());\n            beansToDestroy.push(comp);\n            return comp;\n        };\n        eRoot.current.appendChild(document.createComment(' AG Fake Horizontal Scroll '));\n        eRoot.current.appendChild(newComp('AG-FAKE-HORIZONTAL-SCROLL').getGui());\n        eRoot.current.appendChild(document.createComment(' AG Overlay Wrapper '));\n        eRoot.current.appendChild(newComp('AG-OVERLAY-WRAPPER').getGui());\n        var compProxy = {\n            setRowAnimationCssOnBodyViewport: setRowAnimationClass,\n            setColumnCount: setAriaColCount,\n            setRowCount: setAriaRowCount,\n            setTopHeight: setTopHeight,\n            setBottomHeight: setBottomHeight,\n            setTopDisplay: setTopDisplay,\n            setBottomDisplay: setBottomDisplay,\n            setColumnMovingCss: setMovingCss,\n            updateLayoutClasses: setLayoutClass,\n            setAlwaysVerticalScrollClass: setForceVerticalScrollClass,\n            setPinnedTopBottomOverflowY: setTopAndBottomOverflowY,\n            setCellSelectableCss: setCellSelectableCss,\n            registerBodyViewportResizeListener: function (listener) {\n                var unsubscribeFromResize = resizeObserverService.observeResize(eBodyViewport.current, listener);\n                destroyFuncs.push(function () { return unsubscribeFromResize(); });\n            }\n        };\n        var ctrl = context.createBean(new ag_grid_community_1.GridBodyCtrl());\n        beansToDestroy.push(ctrl);\n        ctrl.setComp(compProxy, eRoot.current, eBodyViewport.current, eTop.current, eBottom.current);\n        return function () {\n            context.destroyBeans(beansToDestroy);\n            destroyFuncs.forEach(function (f) { return f(); });\n        };\n    });\n    var rootClasses = react_1.useMemo(function () {\n        return utils_1.classesList('ag-root', 'ag-unselectable', movingCss, layoutClass);\n    }, [movingCss, layoutClass]);\n    var bodyViewportClasses = react_1.useMemo(function () {\n        return utils_1.classesList('ag-body-viewport', rowAnimationClass, layoutClass, forceVerticalScrollClass, cellSelectableCss);\n    }, [rowAnimationClass, layoutClass, forceVerticalScrollClass, cellSelectableCss]);\n    var topClasses = react_1.useMemo(function () {\n        return utils_1.classesList('ag-floating-top', cellSelectableCss);\n    }, [cellSelectableCss]);\n    var bottomClasses = react_1.useMemo(function () {\n        return utils_1.classesList('ag-floating-bottom', cellSelectableCss);\n    }, [cellSelectableCss]);\n    var topStyle = react_1.useMemo(function () { return ({\n        height: topHeight,\n        minHeight: topHeight,\n        display: topDisplay,\n        overflowY: topAndBottomOverflowY\n    }); }, [topHeight, topDisplay, topAndBottomOverflowY]);\n    var bottomStyle = react_1.useMemo(function () { return ({\n        height: bottomHeight,\n        minHeight: bottomHeight,\n        display: bottomDisplay,\n        overflowY: topAndBottomOverflowY\n    }); }, [bottomHeight, bottomDisplay, topAndBottomOverflowY]);\n    var createRowContainer = function (container) { return react_1.default.createElement(rowContainerComp_1.default, { name: container, key: container + \"-container\" }); };\n    var createSection = function (_a) {\n        var section = _a.section, children = _a.children, className = _a.className, style = _a.style;\n        return (react_1.default.createElement(\"div\", { ref: section, className: className, role: \"presentation\", style: style }, children.map(createRowContainer)));\n    };\n    return (react_1.default.createElement(\"div\", { ref: eRoot, className: rootClasses, role: \"grid\", \"aria-colcount\": ariaColCount, \"aria-rowcount\": ariaRowCount },\n        react_1.default.createElement(gridHeaderComp_1.default, null),\n        createSection({ section: eTop, className: topClasses, style: topStyle, children: [\n                ag_grid_community_1.RowContainerName.TOP_LEFT,\n                ag_grid_community_1.RowContainerName.TOP_CENTER,\n                ag_grid_community_1.RowContainerName.TOP_RIGHT,\n                ag_grid_community_1.RowContainerName.TOP_FULL_WIDTH,\n            ] }),\n        createSection({ section: eBodyViewport, className: bodyViewportClasses, children: [\n                ag_grid_community_1.RowContainerName.LEFT,\n                ag_grid_community_1.RowContainerName.CENTER,\n                ag_grid_community_1.RowContainerName.RIGHT,\n                ag_grid_community_1.RowContainerName.FULL_WIDTH,\n            ] }),\n        createSection({ section: eBottom, className: bottomClasses, style: bottomStyle, children: [\n                ag_grid_community_1.RowContainerName.BOTTOM_LEFT,\n                ag_grid_community_1.RowContainerName.BOTTOM_CENTER,\n                ag_grid_community_1.RowContainerName.BOTTOM_RIGHT,\n                ag_grid_community_1.RowContainerName.BOTTOM_FULL_WIDTH,\n            ] })));\n};\nexports.default = react_1.memo(GridBodyComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"./beansContext\");\nvar gridBodyComp_1 = __importDefault(require(\"./gridBodyComp\"));\nvar reactComment_1 = __importDefault(require(\"./reactComment\"));\nvar tabGuardComp_1 = __importDefault(require(\"./tabGuardComp\"));\nvar useEffectOnce_1 = require(\"./useEffectOnce\");\nvar utils_1 = require(\"./utils\");\nvar GridComp = function (_a) {\n    var context = _a.context;\n    var _b = react_1.useState(''), rtlClass = _b[0], setRtlClass = _b[1];\n    var _c = react_1.useState(''), keyboardFocusClass = _c[0], setKeyboardFocusClass = _c[1];\n    var _d = react_1.useState(''), layoutClass = _d[0], setLayoutClass = _d[1];\n    var _e = react_1.useState(null), cursor = _e[0], setCursor = _e[1];\n    var _f = react_1.useState(null), userSelect = _f[0], setUserSelect = _f[1];\n    var _g = react_1.useState(false), initialised = _g[0], setInitialised = _g[1];\n    var _h = react_1.useState(), tabGuardReady = _h[0], setTabGuardReady = _h[1];\n    var gridCtrlRef = react_1.useRef(null);\n    var eRootWrapperRef = react_1.useRef(null);\n    var tabGuardRef = react_1.useRef();\n    var eGridBodyParentRef = react_1.useRef(null);\n    var focusInnerElementRef = react_1.useRef(function () { return undefined; });\n    var onTabKeyDown = react_1.useCallback(function () { return undefined; }, []);\n    var beans = react_1.useMemo(function () { return context.getBean('beans'); }, []);\n    reactComment_1.default(' AG Grid ', eRootWrapperRef);\n    // create shared controller.\n    useEffectOnce_1.useEffectOnce(function () {\n        var currentController = gridCtrlRef.current = context.createBean(new ag_grid_community_1.GridCtrl());\n        return function () {\n            context.destroyBean(currentController);\n            gridCtrlRef.current = null;\n        };\n    });\n    // initialise the UI\n    useEffectOnce_1.useEffectOnce(function () {\n        var gridCtrl = gridCtrlRef.current;\n        focusInnerElementRef.current = gridCtrl.focusInnerElement.bind(gridCtrl);\n        var compProxy = {\n            destroyGridUi: function () { },\n            setRtlClass: setRtlClass,\n            addOrRemoveKeyboardFocusClass: function (addOrRemove) { return setKeyboardFocusClass(addOrRemove ? ag_grid_community_1.FocusService.AG_KEYBOARD_FOCUS : ''); },\n            forceFocusOutOfContainer: function () {\n                tabGuardRef.current.forceFocusOutOfContainer();\n            },\n            updateLayoutClasses: setLayoutClass,\n            getFocusableContainers: function () {\n                var els = [];\n                var gridBodyCompEl = eRootWrapperRef.current.querySelector('.ag-root');\n                var sideBarEl = eRootWrapperRef.current.querySelector('.ag-side-bar');\n                if (gridBodyCompEl) {\n                    els.push(gridBodyCompEl);\n                }\n                if (sideBarEl) {\n                    els.push(sideBarEl);\n                }\n                return els;\n            },\n            setCursor: setCursor,\n            setUserSelect: setUserSelect\n        };\n        gridCtrl.setComp(compProxy, eRootWrapperRef.current, eRootWrapperRef.current);\n        setInitialised(true);\n    });\n    // initialise the extra components\n    react_1.useEffect(function () {\n        if (!tabGuardReady) {\n            return;\n        }\n        var gridCtrl = gridCtrlRef.current;\n        var beansToDestroy = [];\n        var agStackComponentsRegistry = beans.agStackComponentsRegistry;\n        var HeaderDropZonesClass = agStackComponentsRegistry.getComponentClass('AG-GRID-HEADER-DROP-ZONES');\n        var SideBarClass = agStackComponentsRegistry.getComponentClass('AG-SIDE-BAR');\n        var StatusBarClass = agStackComponentsRegistry.getComponentClass('AG-STATUS-BAR');\n        var WatermarkClass = agStackComponentsRegistry.getComponentClass('AG-WATERMARK');\n        var PaginationClass = agStackComponentsRegistry.getComponentClass('AG-PAGINATION');\n        var additionalEls = [];\n        var eRootWrapper = eRootWrapperRef.current;\n        var eGridBodyParent = eGridBodyParentRef.current;\n        if (gridCtrl.showDropZones() && HeaderDropZonesClass) {\n            var headerDropZonesComp = context.createBean(new HeaderDropZonesClass());\n            var eGui = headerDropZonesComp.getGui();\n            eRootWrapper.insertAdjacentElement('afterbegin', eGui);\n            additionalEls.push(eGui);\n            beansToDestroy.push(headerDropZonesComp);\n        }\n        if (gridCtrl.showSideBar() && SideBarClass) {\n            var sideBarComp = context.createBean(new SideBarClass());\n            var eGui = sideBarComp.getGui();\n            var bottomTabGuard = eGridBodyParent.querySelector('.ag-tab-guard-bottom');\n            if (bottomTabGuard) {\n                bottomTabGuard.insertAdjacentElement('beforebegin', eGui);\n                additionalEls.push(eGui);\n            }\n            beansToDestroy.push(sideBarComp);\n        }\n        if (gridCtrl.showStatusBar() && StatusBarClass) {\n            var statusBarComp = context.createBean(new StatusBarClass());\n            var eGui = statusBarComp.getGui();\n            eRootWrapper.insertAdjacentElement('beforeend', eGui);\n            additionalEls.push(eGui);\n            beansToDestroy.push(statusBarComp);\n        }\n        if (PaginationClass) {\n            var paginationComp = context.createBean(new PaginationClass());\n            var eGui = paginationComp.getGui();\n            eRootWrapper.insertAdjacentElement('beforeend', eGui);\n            additionalEls.push(eGui);\n            beansToDestroy.push(paginationComp);\n        }\n        if (gridCtrl.showWatermark() && WatermarkClass) {\n            var watermarkComp = context.createBean(new WatermarkClass());\n            var eGui = watermarkComp.getGui();\n            eRootWrapper.insertAdjacentElement('beforeend', eGui);\n            additionalEls.push(eGui);\n            beansToDestroy.push(watermarkComp);\n        }\n        return function () {\n            context.destroyBeans(beansToDestroy);\n            additionalEls.forEach(function (el) {\n                if (el.parentElement) {\n                    el.parentElement.removeChild(el);\n                }\n            });\n        };\n    }, [tabGuardReady]);\n    var rootWrapperClasses = react_1.useMemo(function () { return utils_1.classesList('ag-root-wrapper', rtlClass, keyboardFocusClass, layoutClass); }, [rtlClass, keyboardFocusClass, layoutClass]);\n    var rootWrapperBodyClasses = react_1.useMemo(function () { return utils_1.classesList('ag-root-wrapper-body', 'ag-focus-managed', layoutClass); }, [layoutClass]);\n    var topStyle = react_1.useMemo(function () { return ({\n        userSelect: userSelect != null ? userSelect : '',\n        WebkitUserSelect: userSelect != null ? userSelect : '',\n        cursor: cursor != null ? cursor : ''\n    }); }, [userSelect, cursor]);\n    var eGridBodyParent = eGridBodyParentRef.current;\n    var setTabGuardCompRef = react_1.useCallback(function (ref) {\n        tabGuardRef.current = ref;\n        setTabGuardReady(true);\n    }, []);\n    return (react_1.default.createElement(\"div\", { ref: eRootWrapperRef, className: rootWrapperClasses, style: topStyle },\n        react_1.default.createElement(\"div\", { className: rootWrapperBodyClasses, ref: eGridBodyParentRef }, initialised && eGridBodyParent &&\n            react_1.default.createElement(beansContext_1.BeansContext.Provider, { value: beans },\n                react_1.default.createElement(tabGuardComp_1.default, { ref: setTabGuardCompRef, eFocusableElement: eGridBodyParent, onTabKeyDown: onTabKeyDown, gridCtrl: gridCtrlRef.current }, // we wait for initialised before rending the children, so GridComp has created and registered with it's\n                // GridCtrl before we create the child GridBodyComp. Otherwise the GridBodyComp would initialise first,\n                // before we have set the the Layout CSS classes, causing the GridBodyComp to render rows to a grid that\n                // doesn't have it's height specified, which would result if all the rows getting rendered (and if many rows,\n                // hangs the UI)\n                react_1.default.createElement(gridBodyComp_1.default, null))))));\n};\nexports.default = react_1.memo(GridComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar utils_1 = require(\"../utils\");\nvar headerRowContainerComp_1 = __importDefault(require(\"./headerRowContainerComp\"));\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar GridHeaderComp = function () {\n    var _a = react_1.useState(new utils_1.CssClasses()), cssClasses = _a[0], setCssClasses = _a[1];\n    var _b = react_1.useState(), height = _b[0], setHeight = _b[1];\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var eGui = react_1.useRef(null);\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setHeightAndMinHeight: function (height) { return setHeight(height); }\n        };\n        var ctrl = context.createBean(new ag_grid_community_1.GridHeaderCtrl());\n        ctrl.setComp(compProxy, eGui.current, eGui.current);\n        return function () {\n            context.destroyBean(ctrl);\n        };\n    });\n    var className = react_1.useMemo(function () {\n        var res = cssClasses.toString();\n        return 'ag-header ' + res;\n    }, [cssClasses]);\n    var style = react_1.useMemo(function () { return ({\n        height: height,\n        minHeight: height\n    }); }, [height]);\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: className, style: style, role: \"presentation\" },\n        react_1.default.createElement(headerRowContainerComp_1.default, { pinned: ag_grid_community_1.Constants.PINNED_LEFT }),\n        react_1.default.createElement(headerRowContainerComp_1.default, { pinned: null }),\n        react_1.default.createElement(headerRowContainerComp_1.default, { pinned: ag_grid_community_1.Constants.PINNED_RIGHT })));\n};\nexports.default = react_1.memo(GridHeaderComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar utils_1 = require(\"../utils\");\nvar jsComp_1 = require(\"../jsComp\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar HeaderCellComp = function (props) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var _a = react_1.useState(), width = _a[0], setWidth = _a[1];\n    var _b = react_1.useState(), title = _b[0], setTitle = _b[1];\n    var _c = react_1.useState(), colId = _c[0], setColId = _c[1];\n    var _d = react_1.useState(), ariaSort = _d[0], setAriaSort = _d[1];\n    var _e = react_1.useState(), ariaDescription = _e[0], setAriaDescription = _e[1];\n    var _f = react_1.useState(), userCompDetails = _f[0], setUserCompDetails = _f[1];\n    var eGui = react_1.useRef(null);\n    var eResize = react_1.useRef(null);\n    var userCompRef = react_1.useRef();\n    var ctrl = props.ctrl;\n    var cssClassManager = react_1.useMemo(function () { return new ag_grid_community_1.CssClassManager(function () { return eGui.current; }); }, []);\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            setWidth: function (width) { return setWidth(width); },\n            addOrRemoveCssClass: function (name, on) { return cssClassManager.addOrRemoveCssClass(name, on); },\n            setColId: function (id) { return setColId(id); },\n            setTitle: function (title) { return setTitle(title); },\n            setAriaDescription: function (description) { return setAriaDescription(description); },\n            setAriaSort: function (sort) { return setAriaSort(sort); },\n            setUserCompDetails: function (compDetails) { return setUserCompDetails(compDetails); },\n            getUserCompInstance: function () { return userCompRef.current || undefined; }\n        };\n        ctrl.setComp(compProxy, eGui.current, eResize.current);\n        var selectAllGui = ctrl.getSelectAllGui();\n        eResize.current.insertAdjacentElement('afterend', selectAllGui);\n    });\n    // js comps\n    react_1.useEffect(function () { return jsComp_1.showJsComp(userCompDetails, context, eGui.current, userCompRef); }, [userCompDetails]);\n    // add drag handling, must be done after component is added to the dom\n    react_1.useEffect(function () {\n        var userCompDomElement = undefined;\n        eGui.current.childNodes.forEach(function (node) {\n            if (node != null && node !== eResize.current) {\n                userCompDomElement = node;\n            }\n        });\n        ctrl.setDragSource(userCompDomElement);\n    }, [userCompDetails]);\n    var style = react_1.useMemo(function () { return ({ width: width }); }, [width]);\n    var userCompStateless = react_1.useMemo(function () {\n        var _a;\n        var res = ((_a = userCompDetails) === null || _a === void 0 ? void 0 : _a.componentFromFramework) && utils_1.isComponentStateless(userCompDetails.componentClass);\n        return !!res;\n    }, [userCompDetails]);\n    var reactUserComp = userCompDetails && userCompDetails.componentFromFramework;\n    var UserCompClass = userCompDetails && userCompDetails.componentClass;\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: \"ag-header-cell\", style: style, title: title, \"col-id\": colId, \"aria-sort\": ariaSort, role: \"columnheader\", tabIndex: -1, \"aria-description\": ariaDescription },\n        react_1.default.createElement(\"div\", { ref: eResize, className: \"ag-header-cell-resize\", role: \"presentation\" }),\n        reactUserComp && userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)),\n        reactUserComp && !userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params, { ref: userCompRef }))));\n};\nexports.default = react_1.memo(HeaderCellComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar utils_1 = require(\"../utils\");\nvar jsComp_1 = require(\"../jsComp\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar HeaderFilterCellComp = function (props) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var _a = react_1.useState(new utils_1.CssClasses()), cssClasses = _a[0], setCssClasses = _a[1];\n    var _b = react_1.useState(new utils_1.CssClasses()), cssBodyClasses = _b[0], setBodyCssClasses = _b[1];\n    var _c = react_1.useState(new utils_1.CssClasses()), cssButtonWrapperClasses = _c[0], setButtonWrapperCssClasses = _c[1];\n    var _d = react_1.useState(), width = _d[0], setWidth = _d[1];\n    var _e = react_1.useState(), userCompDetails = _e[0], setUserCompDetails = _e[1];\n    var eGui = react_1.useRef(null);\n    var eFloatingFilterBody = react_1.useRef(null);\n    var eButtonWrapper = react_1.useRef(null);\n    var eButtonShowMainFilter = react_1.useRef(null);\n    var alreadyResolved = react_1.useRef(false);\n    var userCompResolve = react_1.useRef();\n    var userCompPromise = react_1.useRef();\n    useEffectOnce_1.useEffectOnce(function () {\n        userCompPromise.current = new ag_grid_community_1.AgPromise(function (resolve) {\n            userCompResolve.current = resolve;\n        });\n    });\n    var userCompRef = function (value) {\n        // i don't know why, but react was calling this method multiple\n        // times, thus un-setting, them immediately setting the reference again.\n        // because we are resolving a promise, it's not good to be resolving\n        // the promise multiple times, so we only resolve the first time.\n        if (alreadyResolved.current) {\n            return;\n        }\n        // we also skip when it's un-setting\n        if (value == null) {\n            return;\n        }\n        userCompResolve.current && userCompResolve.current(value);\n        alreadyResolved.current = true;\n    };\n    var ctrl = props.ctrl;\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            addOrRemoveBodyCssClass: function (name, on) { return setBodyCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            addOrRemoveButtonWrapperCssClass: function (name, on) { return setButtonWrapperCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setWidth: function (width) { return setWidth(width); },\n            setCompDetails: function (compDetails) { return setUserCompDetails(compDetails); },\n            getFloatingFilterComp: function () { return userCompPromise.current ? userCompPromise.current : null; },\n            setMenuIcon: function (eIcon) { return eButtonShowMainFilter.current.appendChild(eIcon); }\n        };\n        ctrl.setComp(compProxy, eGui.current, eButtonShowMainFilter.current, eFloatingFilterBody.current);\n    });\n    // js comps\n    react_1.useEffect(function () {\n        return jsComp_1.showJsComp(userCompDetails, context, eFloatingFilterBody.current, userCompRef);\n    }, [userCompDetails]);\n    var style = react_1.useMemo(function () { return ({\n        width: width\n    }); }, [width]);\n    var className = react_1.useMemo(function () { return 'ag-header-cell ag-floating-filter ' + cssClasses.toString(); }, [cssClasses]);\n    var bodyClassName = react_1.useMemo(function () { return cssBodyClasses.toString(); }, [cssBodyClasses]);\n    var buttonWrapperClassName = react_1.useMemo(function () { return 'ag-floating-filter-button ' + cssButtonWrapperClasses.toString(); }, [cssBodyClasses]);\n    var userCompStateless = react_1.useMemo(function () {\n        var res = userCompDetails\n            && userCompDetails.componentFromFramework\n            && utils_1.isComponentStateless(userCompDetails.componentClass);\n        return !!res;\n    }, [userCompDetails]);\n    var reactUserComp = userCompDetails && userCompDetails.componentFromFramework;\n    var UserCompClass = userCompDetails && userCompDetails.componentClass;\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: className, style: style, role: \"gridcell\", tabIndex: -1 },\n        react_1.default.createElement(\"div\", { ref: eFloatingFilterBody, className: bodyClassName, role: \"presentation\" },\n            reactUserComp && userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)),\n            reactUserComp && !userCompStateless && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params, { ref: userCompRef }))),\n        react_1.default.createElement(\"div\", { ref: eButtonWrapper, className: buttonWrapperClassName, role: \"presentation\" },\n            react_1.default.createElement(\"button\", { ref: eButtonShowMainFilter, type: \"button\", \"aria-label\": \"Open Filter Menu\", className: \"ag-floating-filter-button-button\", tabIndex: -1 }))));\n};\nexports.default = react_1.memo(HeaderFilterCellComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar jsComp_1 = require(\"../jsComp\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar utils_1 = require(\"../utils\");\nvar HeaderGroupCellComp = function (props) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var _a = react_1.useState(new utils_1.CssClasses()), cssClasses = _a[0], setCssClasses = _a[1];\n    var _b = react_1.useState(new utils_1.CssClasses()), cssResizableClasses = _b[0], setResizableCssClasses = _b[1];\n    var _c = react_1.useState(), width = _c[0], setWidth = _c[1];\n    var _d = react_1.useState(), title = _d[0], setTitle = _d[1];\n    var _e = react_1.useState(), colId = _e[0], setColId = _e[1];\n    var _f = react_1.useState(), ariaExpanded = _f[0], setAriaExpanded = _f[1];\n    var _g = react_1.useState(), userCompDetails = _g[0], setUserCompDetails = _g[1];\n    var eGui = react_1.useRef(null);\n    var eResize = react_1.useRef(null);\n    var ctrl = props.ctrl;\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            setWidth: function (width) { return setWidth(width); },\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setColId: function (id) { return setColId(id); },\n            setTitle: function (title) { return setTitle(title); },\n            setUserCompDetails: function (compDetails) { return setUserCompDetails(compDetails); },\n            addOrRemoveResizableCssClass: function (name, on) { return setResizableCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setAriaExpanded: function (expanded) { return setAriaExpanded(expanded); }\n        };\n        ctrl.setComp(compProxy, eGui.current, eResize.current);\n    });\n    // js comps\n    react_1.useEffect(function () {\n        return jsComp_1.showJsComp(userCompDetails, context, eGui.current);\n    }, [userCompDetails]);\n    // add drag handling, must be done after component is added to the dom\n    react_1.useEffect(function () {\n        var userCompDomElement = undefined;\n        eGui.current.childNodes.forEach(function (node) {\n            if (node != null && node !== eResize.current) {\n                userCompDomElement = node;\n            }\n        });\n        userCompDomElement && ctrl.setDragSource(userCompDomElement);\n    }, [userCompDetails]);\n    var style = react_1.useMemo(function () { return ({\n        width: width\n    }); }, [width]);\n    var className = react_1.useMemo(function () { return 'ag-header-group-cell ' + cssClasses.toString(); }, [cssClasses]);\n    var resizableClassName = react_1.useMemo(function () { return 'ag-header-cell-resize ' + cssResizableClasses.toString(); }, [cssResizableClasses]);\n    var reactUserComp = userCompDetails && userCompDetails.componentFromFramework;\n    var UserCompClass = userCompDetails && userCompDetails.componentClass;\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: className, style: style, title: title, \"col-id\": colId, role: \"columnheader\", tabIndex: -1, \"aria-expanded\": ariaExpanded },\n        reactUserComp && react_1.default.createElement(UserCompClass, __assign({}, userCompDetails.params)),\n        react_1.default.createElement(\"div\", { ref: eResize, className: resizableClassName })));\n};\nexports.default = react_1.memo(HeaderGroupCellComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar headerCellComp_1 = __importDefault(require(\"./headerCellComp\"));\nvar headerGroupCellComp_1 = __importDefault(require(\"./headerGroupCellComp\"));\nvar headerFilterCellComp_1 = __importDefault(require(\"./headerFilterCellComp\"));\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar HeaderRowComp = function (props) {\n    var gridOptionsWrapper = react_1.useContext(beansContext_1.BeansContext).gridOptionsWrapper;\n    var _a = react_1.useState(), transform = _a[0], setTransform = _a[1];\n    var _b = react_1.useState(), height = _b[0], setHeight = _b[1];\n    var _c = react_1.useState(), top = _c[0], setTop = _c[1];\n    var _d = react_1.useState(), width = _d[0], setWidth = _d[1];\n    var _e = react_1.useState(), ariaRowIndex = _e[0], setAriaRowIndex = _e[1];\n    var _f = react_1.useState([]), cellCtrls = _f[0], setCellCtrls = _f[1];\n    var eGui = react_1.useRef(null);\n    var ctrl = props.ctrl;\n    var typeColumn = ctrl.getType() === ag_grid_community_1.HeaderRowType.COLUMN;\n    var typeGroup = ctrl.getType() === ag_grid_community_1.HeaderRowType.COLUMN_GROUP;\n    var typeFilter = ctrl.getType() === ag_grid_community_1.HeaderRowType.FLOATING_FILTER;\n    var setCellCtrlsMaintainOrder = react_1.useCallback(function (prev, next) {\n        // if we are ensuring dom order, we set the ctrls into the dom in the same order they appear on screen\n        if (gridOptionsWrapper.isEnsureDomOrder()) {\n            return next;\n        }\n        // if not maintaining order, we want to keep the dom elements we have and add new ones to the end,\n        // otherwise we will loose transition effects as elements are placed in different dom locations\n        var prevMap = ag_grid_community_1._.mapById(prev, function (c) { return c.getInstanceId(); });\n        var nextMap = ag_grid_community_1._.mapById(next, function (c) { return c.getInstanceId(); });\n        var oldCtrlsWeAreKeeping = prev.filter(function (c) { return nextMap.has(c.getInstanceId()); });\n        var newCtrls = next.filter(function (c) { return !prevMap.has(c.getInstanceId()); });\n        return __spreadArrays(oldCtrlsWeAreKeeping, newCtrls);\n    }, []);\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            setTransform: function (transform) { return setTransform(transform); },\n            setHeight: function (height) { return setHeight(height); },\n            setTop: function (top) { return setTop(top); },\n            setHeaderCtrls: function (ctrls) { return setCellCtrls(function (prev) { return setCellCtrlsMaintainOrder(prev, ctrls); }); },\n            setWidth: function (width) { return setWidth(width); },\n            setAriaRowIndex: function (rowIndex) { return setAriaRowIndex(rowIndex); }\n        };\n        ctrl.setComp(compProxy);\n    });\n    var style = react_1.useMemo(function () { return ({\n        transform: transform,\n        height: height,\n        top: top,\n        width: width\n    }); }, [transform, height, top, width]);\n    var className = react_1.useMemo(function () {\n        var res = [\"ag-header-row\"];\n        typeColumn && res.push(\"ag-header-row-column\");\n        typeGroup && res.push(\"ag-header-row-column-group\");\n        typeFilter && res.push(\"ag-header-row-column-filter\");\n        return res.join(' ');\n    }, []);\n    var createCellJsx = react_1.useCallback(function (cellCtrl) {\n        switch (ctrl.getType()) {\n            case ag_grid_community_1.HeaderRowType.COLUMN_GROUP:\n                return react_1.default.createElement(headerGroupCellComp_1.default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });\n            case ag_grid_community_1.HeaderRowType.FLOATING_FILTER:\n                return react_1.default.createElement(headerFilterCellComp_1.default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });\n            default:\n                return react_1.default.createElement(headerCellComp_1.default, { ctrl: cellCtrl, key: cellCtrl.getInstanceId() });\n        }\n    }, []);\n    // below, we are not doing floating filters, not yet\n    return (react_1.default.createElement(\"div\", { ref: eGui, className: className, role: \"row\", style: style, \"aria-rowindex\": ariaRowIndex }, cellCtrls.map(createCellJsx)));\n};\nexports.default = react_1.memo(HeaderRowComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar utils_1 = require(\"../utils\");\nvar headerRowComp_1 = __importDefault(require(\"./headerRowComp\"));\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar HeaderRowContainerComp = function (props) {\n    var _a = react_1.useState(new utils_1.CssClasses()), cssClasses = _a[0], setCssClasses = _a[1];\n    var _b = react_1.useState(), centerContainerWidth = _b[0], setCenterContainerWidth = _b[1];\n    var _c = react_1.useState(), centerContainerTransform = _c[0], setCenterContainerTransform = _c[1];\n    var _d = react_1.useState(), pinnedContainerWidth = _d[0], setPinnedContainerWidth = _d[1];\n    var _e = react_1.useState([]), headerRowCtrls = _e[0], setHeaderRowCtrls = _e[1];\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var eGui = react_1.useRef(null);\n    var pinnedLeft = props.pinned === ag_grid_community_1.Constants.PINNED_LEFT;\n    var pinnedRight = props.pinned === ag_grid_community_1.Constants.PINNED_RIGHT;\n    var centre = !pinnedLeft && !pinnedRight;\n    useEffectOnce_1.useEffectOnce(function () {\n        var compProxy = {\n            addOrRemoveCssClass: function (name, on) { return setCssClasses(function (prev) { return prev.setClass(name, on); }); },\n            setCtrls: function (ctrls) { return setHeaderRowCtrls(ctrls); },\n            // centre only\n            setCenterWidth: function (width) { return setCenterContainerWidth(width); },\n            setContainerTransform: function (transform) { return setCenterContainerTransform(transform); },\n            // pinned only\n            setPinnedContainerWidth: function (width) { return setPinnedContainerWidth(width); }\n        };\n        var ctrl = context.createBean(new ag_grid_community_1.HeaderRowContainerCtrl(props.pinned));\n        ctrl.setComp(compProxy, eGui.current);\n        return function () {\n            context.destroyBean(ctrl);\n        };\n    });\n    var className = react_1.useMemo(function () { return cssClasses.toString(); }, [cssClasses]);\n    var insertRowsJsx = function () { return headerRowCtrls.map(function (ctrl) { return react_1.default.createElement(headerRowComp_1.default, { ctrl: ctrl, key: ctrl.getInstanceId() }); }); };\n    var eCenterContainerStyle = react_1.useMemo(function () { return ({\n        width: centerContainerWidth,\n        transform: centerContainerTransform\n    }); }, [centerContainerWidth, centerContainerTransform]);\n    var ePinnedStyle = react_1.useMemo(function () { return ({\n        width: pinnedContainerWidth,\n        minWidth: pinnedContainerWidth,\n        maxWidth: pinnedContainerWidth,\n    }); }, [pinnedContainerWidth]);\n    return (react_1.default.createElement(react_1.default.Fragment, null,\n        pinnedLeft &&\n            react_1.default.createElement(\"div\", { ref: eGui, className: \"ag-pinned-left-header \" + className, role: \"presentation\", style: ePinnedStyle }, insertRowsJsx()),\n        pinnedRight &&\n            react_1.default.createElement(\"div\", { ref: eGui, className: \"ag-pinned-right-header \" + className, role: \"presentation\", style: ePinnedStyle }, insertRowsJsx()),\n        centre &&\n            react_1.default.createElement(\"div\", { ref: eGui, className: \"ag-header-viewport \" + className, role: \"presentation\" },\n                react_1.default.createElement(\"div\", { className: \"ag-header-container\", role: \"rowgroup\", style: eCenterContainerStyle }, insertRowsJsx()))));\n};\nexports.default = react_1.memo(HeaderRowContainerComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.showJsComp = function (compDetails, context, eParent, ref) {\n    var doNothing = !compDetails || compDetails.componentFromFramework;\n    if (doNothing) {\n        return;\n    }\n    var promise = compDetails.newAgStackInstance();\n    if (!promise) {\n        return;\n    }\n    // almost all JS Comps are NOT async, however the Floating Multi Filter is Async as it could\n    // be wrapping a React filter, so we need to cater for async comps here.\n    var comp;\n    var compGui;\n    var destroyed = false;\n    promise.then(function (c) {\n        if (destroyed) {\n            context.destroyBean(c);\n            return;\n        }\n        comp = c;\n        compGui = comp.getGui();\n        eParent.appendChild(compGui);\n        setRef(ref, comp);\n    });\n    return function () {\n        destroyed = true;\n        if (!comp) {\n            return;\n        } // in case we were destroyed before async comp was returned\n        if (compGui && compGui.parentElement) {\n            compGui.parentElement.removeChild(compGui);\n        }\n        context.destroyBean(comp);\n        if (ref) {\n            setRef(ref, undefined);\n        }\n    };\n};\nvar setRef = function (ref, value) {\n    if (!ref) {\n        return;\n    }\n    if (ref instanceof Function) {\n        var refCallback = ref;\n        refCallback(value);\n    }\n    else {\n        var refObj = ref;\n        refObj.current = value;\n    }\n};\nexports.createSyncJsComp = function (compDetails) {\n    var promise = compDetails.newAgStackInstance();\n    if (!promise) {\n        return;\n    }\n    return promise.resolveNow(null, function (x) { return x; }); // js comps are never async\n};\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar useEffectOnce_1 = require(\"./useEffectOnce\");\nvar useReactCommentEffect = function (comment, eForCommentRef) {\n    useEffectOnce_1.useEffectOnce(function () {\n        var eForComment = eForCommentRef.current;\n        var eParent = eForComment.parentElement;\n        if (!eParent) {\n            return;\n        }\n        var eComment = document.createComment(comment);\n        eParent.insertBefore(eComment, eForComment);\n        return function () {\n            eParent.removeChild(eComment);\n        };\n    });\n};\nexports.default = useReactCommentEffect;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar jsComp_1 = require(\"../jsComp\");\nvar utils_1 = require(\"../utils\");\nvar beansContext_1 = require(\"../beansContext\");\nvar cellComp_1 = __importDefault(require(\"../cells/cellComp\"));\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar maintainOrderOnColumns = function (prev, next, domOrder) {\n    if (domOrder) {\n        var res_1 = { list: next, instanceIdMap: new Map() };\n        next.forEach(function (c) { return res_1.instanceIdMap.set(c.getInstanceId(), c); });\n        return res_1;\n    }\n    // if dom order not important, we don't want to change the order\n    // of the elements in the dom, as this would break transition styles\n    var oldCellCtrls = [];\n    var newCellCtrls = [];\n    var newInstanceIdMap = new Map();\n    var tempMap = new Map();\n    next.forEach(function (c) { return tempMap.set(c.getInstanceId(), c); });\n    prev.list.forEach(function (c) {\n        var instanceId = c.getInstanceId();\n        if (tempMap.has(instanceId)) {\n            oldCellCtrls.push(c);\n            newInstanceIdMap.set(instanceId, c);\n        }\n    });\n    next.forEach(function (c) {\n        var instanceId = c.getInstanceId();\n        if (!prev.instanceIdMap.has(instanceId)) {\n            newCellCtrls.push(c);\n            newInstanceIdMap.set(instanceId, c);\n        }\n    });\n    var res = {\n        list: __spreadArrays(oldCellCtrls, newCellCtrls),\n        instanceIdMap: newInstanceIdMap\n    };\n    return res;\n};\nvar RowComp = function (params) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var rowCtrl = params.rowCtrl, containerType = params.containerType;\n    var _a = react_1.useState(), rowIndex = _a[0], setRowIndex = _a[1];\n    var _b = react_1.useState(), rowId = _b[0], setRowId = _b[1];\n    var _c = react_1.useState(), role = _c[0], setRole = _c[1];\n    var _d = react_1.useState(), rowBusinessKey = _d[0], setRowBusinessKey = _d[1];\n    var _e = react_1.useState(), tabIndex = _e[0], setTabIndex = _e[1];\n    var _f = react_1.useState(), userStyles = _f[0], setUserStyles = _f[1];\n    var _g = react_1.useState({ list: [], instanceIdMap: new Map() }), cellCtrls = _g[0], setCellCtrls = _g[1];\n    var _h = react_1.useState(), fullWidthCompDetails = _h[0], setFullWidthCompDetails = _h[1];\n    var _j = react_1.useState(false), domOrder = _j[0], setDomOrder = _j[1];\n    // these styles have initial values, so element is placed into the DOM with them,\n    // rather than an transition getting applied.\n    var _k = react_1.useState(rowCtrl.getInitialRowTop()), top = _k[0], setTop = _k[1];\n    var _l = react_1.useState(rowCtrl.getInitialTransform()), transform = _l[0], setTransform = _l[1];\n    var eGui = react_1.useRef(null);\n    var fullWidthCompRef = react_1.useRef();\n    var autoHeightSetup = react_1.useRef(false);\n    var _m = react_1.useState(0), autoHeightSetupAttempt = _m[0], setAutoHeightSetupAttempt = _m[1];\n    // puts autoHeight onto full with detail rows. this needs trickery, as we need\n    // the HTMLElement for the provided Detail Cell Renderer, however the Detail Cell Renderer\n    // could be a stateless React Func Comp which won't work with useRef, so we need\n    // to poll (we limit to 10) looking for the Detail HTMLElement (which will be the only\n    // child) after the fullWidthCompDetails is set.\n    react_1.useEffect(function () {\n        var _a;\n        if (autoHeightSetup.current) {\n            return;\n        }\n        if (!fullWidthCompDetails) {\n            return;\n        }\n        if (autoHeightSetupAttempt > 10) {\n            return;\n        }\n        var eChild = (_a = eGui.current) === null || _a === void 0 ? void 0 : _a.firstChild;\n        if (eChild) {\n            rowCtrl.setupDetailRowAutoHeight(eChild);\n            autoHeightSetup.current = true;\n        }\n        else {\n            setAutoHeightSetupAttempt(function (prev) { return prev + 1; });\n        }\n    }, [fullWidthCompDetails, autoHeightSetupAttempt]);\n    var cssClassManager = react_1.useMemo(function () { return new ag_grid_community_1.CssClassManager(function () { return eGui.current; }); }, []);\n    useEffectOnce_1.useEffectOnce(function () {\n        // because React is asychronous, it's possible the RowCtrl is no longer a valid RowCtrl. This can\n        // happen if user calls two API methods one after the other, with the second API invalidating the rows\n        // the first call created. Thus the rows for the first call could still get created even though no longer needed.\n        if (!rowCtrl.isAlive()) {\n            return;\n        }\n        var compProxy = {\n            // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)\n            // as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.\n            setTop: function (value) { return setTop(value); },\n            setTransform: function (value) { return setTransform(value); },\n            // i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of\n            // React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.\n            addOrRemoveCssClass: function (name, on) { return cssClassManager.addOrRemoveCssClass(name, on); },\n            setDomOrder: function (domOrder) { return setDomOrder(domOrder); },\n            setRowIndex: function (value) { return setRowIndex(value); },\n            setRowId: function (value) { return setRowId(value); },\n            setRowBusinessKey: function (value) { return setRowBusinessKey(value); },\n            setTabIndex: function (value) { return setTabIndex(value); },\n            setUserStyles: function (styles) { return setUserStyles(styles); },\n            setRole: function (value) { return setRole(value); },\n            // if we don't maintain the order, then cols will be ripped out and into the dom\n            // when cols reordered, which would stop the CSS transitions from working\n            setCellCtrls: function (next) { return setCellCtrls(function (prev) { return maintainOrderOnColumns(prev, next, domOrder); }); },\n            showFullWidth: function (compDetails) { return setFullWidthCompDetails(compDetails); },\n            getFullWidthCellRenderer: function () { return fullWidthCompRef.current; },\n        };\n        rowCtrl.setComp(compProxy, eGui.current, containerType);\n    });\n    react_1.useEffect(function () { return jsComp_1.showJsComp(fullWidthCompDetails, context, eGui.current, fullWidthCompRef); }, [fullWidthCompDetails]);\n    var rowStyles = react_1.useMemo(function () {\n        var res = { top: top, transform: transform };\n        Object.assign(res, userStyles);\n        return res;\n    }, [top, transform, userStyles]);\n    var showFullWidthFramework = fullWidthCompDetails && fullWidthCompDetails.componentFromFramework;\n    var showCells = cellCtrls != null;\n    var reactFullWidthCellRendererStateless = react_1.useMemo(function () {\n        var _a;\n        var res = ((_a = fullWidthCompDetails) === null || _a === void 0 ? void 0 : _a.componentFromFramework) && utils_1.isComponentStateless(fullWidthCompDetails.componentClass);\n        return !!res;\n    }, [fullWidthCompDetails]);\n    var showCellsJsx = function () { return cellCtrls.list.map(function (cellCtrl) { return (react_1.default.createElement(cellComp_1.default, { cellCtrl: cellCtrl, editingRow: rowCtrl.isEditing(), printLayout: rowCtrl.isPrintLayout(), key: cellCtrl.getInstanceId() })); }); };\n    var showFullWidthFrameworkJsx = function () {\n        var FullWidthComp = fullWidthCompDetails.componentClass;\n        return (react_1.default.createElement(react_1.default.Fragment, null,\n            reactFullWidthCellRendererStateless\n                && react_1.default.createElement(FullWidthComp, __assign({}, fullWidthCompDetails.params)),\n            !reactFullWidthCellRendererStateless\n                && react_1.default.createElement(FullWidthComp, __assign({}, fullWidthCompDetails.params, { ref: fullWidthCompRef }))));\n    };\n    return (react_1.default.createElement(\"div\", { ref: eGui, role: role, style: rowStyles, \"row-index\": rowIndex, \"row-id\": rowId, \"row-business-key\": rowBusinessKey, tabIndex: tabIndex },\n        showCells && showCellsJsx(),\n        showFullWidthFramework && showFullWidthFrameworkJsx()));\n};\nexports.default = react_1.memo(RowComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar react_1 = __importStar(require(\"react\"));\nvar utils_1 = require(\"../utils\");\nvar reactComment_1 = __importDefault(require(\"../reactComment\"));\nvar rowComp_1 = __importDefault(require(\"./rowComp\"));\nvar beansContext_1 = require(\"../beansContext\");\nvar useEffectOnce_1 = require(\"../useEffectOnce\");\nvar RowContainerComp = function (params) {\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var _a = react_1.useState(''), viewportHeight = _a[0], setViewportHeight = _a[1];\n    var _b = react_1.useState([]), rowCtrlsOrdered = _b[0], setRowCtrlsOrdered = _b[1];\n    var _c = react_1.useState([]), rowCtrls = _c[0], setRowCtrls = _c[1];\n    var _d = react_1.useState(false), domOrder = _d[0], setDomOrder = _d[1];\n    var _e = react_1.useState(''), containerWidth = _e[0], setContainerWidth = _e[1];\n    var name = params.name;\n    var containerType = react_1.useMemo(function () { return ag_grid_community_1.getRowContainerTypeForName(name); }, [name]);\n    var eWrapper = react_1.useRef(null);\n    var eViewport = react_1.useRef(null);\n    var eContainer = react_1.useRef(null);\n    var cssClasses = react_1.useMemo(function () { return ag_grid_community_1.RowContainerCtrl.getRowContainerCssClasses(name); }, [name]);\n    var wrapperClasses = react_1.useMemo(function () { return utils_1.classesList(cssClasses.wrapper); }, []);\n    var viewportClasses = react_1.useMemo(function () { return utils_1.classesList(cssClasses.viewport); }, []);\n    var containerClasses = react_1.useMemo(function () { return utils_1.classesList(cssClasses.container); }, []);\n    // no need to useMemo for boolean types\n    var template1 = name === ag_grid_community_1.RowContainerName.CENTER;\n    var template2 = name === ag_grid_community_1.RowContainerName.TOP_CENTER || name === ag_grid_community_1.RowContainerName.BOTTOM_CENTER;\n    var template3 = !template1 && !template2;\n    var topLevelRef = template1 ? eWrapper : template2 ? eViewport : eContainer;\n    reactComment_1.default(' AG Row Container ' + name + ' ', topLevelRef);\n    // if domOrder=true, then we just copy rowCtrls into rowCtrlsOrdered observing order,\n    // however if false, then we need to keep the order as they are in the dom, otherwise rowAnimation breaks\n    react_1.useEffect(function () {\n        setRowCtrlsOrdered(function (prev) {\n            if (domOrder) {\n                return rowCtrls;\n            }\n            // if dom order not important, we don't want to change the order\n            // of the elements in the dom, as this would break transition styles\n            var oldRows = prev.filter(function (r) { return rowCtrls.indexOf(r) >= 0; });\n            var newRows = rowCtrls.filter(function (r) { return oldRows.indexOf(r) < 0; });\n            var next = __spreadArrays(oldRows, newRows);\n            return next;\n        });\n    }, [domOrder, rowCtrls]);\n    useEffectOnce_1.useEffectOnce(function () {\n        var beansToDestroy = [];\n        var compProxy = {\n            setViewportHeight: setViewportHeight,\n            setRowCtrls: function (rowCtrls) { return setRowCtrls(rowCtrls); },\n            setDomOrder: function (domOrder) { return setDomOrder(domOrder); },\n            setContainerWidth: function (width) { return setContainerWidth(width); }\n        };\n        var ctrl = context.createBean(new ag_grid_community_1.RowContainerCtrl(name));\n        beansToDestroy.push(ctrl);\n        ctrl.setComp(compProxy, eContainer.current, eViewport.current, eWrapper.current);\n        return function () {\n            context.destroyBeans(beansToDestroy);\n        };\n    });\n    var viewportStyle = react_1.useMemo(function () { return ({\n        height: viewportHeight\n    }); }, [viewportHeight]);\n    var containerStyle = react_1.useMemo(function () { return ({\n        width: containerWidth\n    }); }, [containerWidth]);\n    var buildContainer = function () { return (react_1.default.createElement(\"div\", { className: containerClasses, ref: eContainer, role: rowCtrls.length ? \"rowgroup\" : \"presentation\", style: containerStyle }, rowCtrlsOrdered.map(function (rowCtrl) { return react_1.default.createElement(rowComp_1.default, { rowCtrl: rowCtrl, containerType: containerType, key: rowCtrl.getInstanceId() }); }))); };\n    return (react_1.default.createElement(react_1.default.Fragment, null,\n        template1 &&\n            react_1.default.createElement(\"div\", { className: wrapperClasses, ref: eWrapper, role: \"presentation\" },\n                react_1.default.createElement(\"div\", { className: viewportClasses, ref: eViewport, role: \"presentation\", style: viewportStyle }, buildContainer())),\n        template2 &&\n            react_1.default.createElement(\"div\", { className: viewportClasses, ref: eViewport, role: \"presentation\", style: viewportStyle }, buildContainer()),\n        template3 && buildContainer()));\n};\nexports.default = react_1.memo(RowContainerComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar beansContext_1 = require(\"./beansContext\");\nvar useEffectOnce_1 = require(\"./useEffectOnce\");\nvar TabGuardCompRef = function (props, forwardRef) {\n    var children = props.children, eFocusableElement = props.eFocusableElement, onTabKeyDown = props.onTabKeyDown, gridCtrl = props.gridCtrl;\n    var context = react_1.useContext(beansContext_1.BeansContext).context;\n    var topTabGuardRef = react_1.useRef(null);\n    var bottomTabGuardRef = react_1.useRef(null);\n    var tabGuardCtrlRef = react_1.useRef();\n    var _a = react_1.useState(), tabIndex = _a[0], setTabIndex = _a[1];\n    react_1.useImperativeHandle(forwardRef, function () { return ({\n        forceFocusOutOfContainer: function () {\n            tabGuardCtrlRef.current.forceFocusOutOfContainer();\n        }\n    }); });\n    useEffectOnce_1.useEffectOnce(function () {\n        var eTopGuard = topTabGuardRef.current;\n        var eBottomGuard = bottomTabGuardRef.current;\n        var compProxy = {\n            setTabIndex: function (value) { return value == null ? setTabIndex(undefined) : setTabIndex(parseInt(value, 10)); }\n        };\n        var ctrl = tabGuardCtrlRef.current = context.createBean(new ag_grid_community_1.TabGuardCtrl({\n            comp: compProxy,\n            eTopGuard: eTopGuard,\n            eBottomGuard: eBottomGuard,\n            eFocusableElement: eFocusableElement,\n            onTabKeyDown: onTabKeyDown,\n            focusInnerElement: function (fromBottom) { return gridCtrl.focusInnerElement(fromBottom); }\n        }));\n        return function () {\n            context.destroyBean(ctrl);\n        };\n    });\n    var createTabGuard = function (side) { return (react_1.default.createElement(\"div\", { className: \"ag-tab-guard ag-tab-guard-\" + side, role: \"presentation\", tabIndex: tabIndex, ref: side === 'top' ? topTabGuardRef : bottomTabGuardRef })); };\n    return (react_1.default.createElement(react_1.default.Fragment, null,\n        createTabGuard('top'),\n        children,\n        createTabGuard('bottom')));\n};\nvar TabGuardComp = react_1.forwardRef(TabGuardCompRef);\nexports.default = react_1.memo(TabGuardComp);\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nexports.useEffectOnce = function (effect) {\n    var destroyFunc = react_1.useRef();\n    var effectCalled = react_1.useRef(false);\n    var renderAfterCalled = react_1.useRef(false);\n    var _a = react_1.useState(0), val = _a[0], setVal = _a[1];\n    if (effectCalled.current) {\n        renderAfterCalled.current = true;\n    }\n    react_1.useEffect(function () {\n        // only execute the effect first time around\n        if (!effectCalled.current) {\n            destroyFunc.current = effect();\n            effectCalled.current = true;\n        }\n        // this forces one render after the effect is run\n        setVal(function (val) { return val + 1; });\n        return function () {\n            // if the comp didn't render since the useEffect was called,\n            // we know it's the dummy React cycle\n            if (!renderAfterCalled.current) {\n                return;\n            }\n            // otherwise this is not a dummy destroy, so call the destroy func\n            if (destroyFunc.current) {\n                destroyFunc.current();\n            }\n        };\n    }, []);\n};\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.classesList = function () {\n    var list = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        list[_i] = arguments[_i];\n    }\n    var filtered = list.filter(function (s) { return s != null && s !== ''; });\n    return filtered.join(' ');\n};\nvar CssClasses = /** @class */ (function () {\n    function CssClasses() {\n        var _this = this;\n        var initialClasses = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            initialClasses[_i] = arguments[_i];\n        }\n        this.classesMap = {};\n        initialClasses.forEach(function (className) {\n            _this.classesMap[className] = true;\n        });\n    }\n    CssClasses.prototype.setClass = function (className, on) {\n        // important to not make a copy if nothing has changed, so react\n        // won't trigger a render cycle on new object instance\n        var nothingHasChanged = !!this.classesMap[className] == on;\n        if (nothingHasChanged) {\n            return this;\n        }\n        var res = new CssClasses();\n        res.classesMap = __assign({}, this.classesMap);\n        res.classesMap[className] = on;\n        return res;\n    };\n    CssClasses.prototype.toString = function () {\n        var _this = this;\n        var res = Object.keys(this.classesMap).filter(function (key) { return _this.classesMap[key]; }).join(' ');\n        return res;\n    };\n    return CssClasses;\n}());\nexports.CssClasses = CssClasses;\nexports.isComponentStateless = function (Component) {\n    var hasSymbol = function () { return typeof Symbol === 'function' && Symbol.for; };\n    var getMemoType = function () { return hasSymbol() ? Symbol.for('react.memo') : 0xead3; };\n    return (typeof Component === 'function' && !(Component.prototype && Component.prototype.isReactComponent)) || (typeof Component === 'object' && Component.$$typeof === getMemoType());\n};\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                t[p[i]] = s[p[i]];\n        }\n    return t;\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result[\"default\"] = mod;\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = __importStar(require(\"react\"));\nvar prop_types_1 = __importDefault(require(\"prop-types\"));\nvar AgGrid = __importStar(require(\"ag-grid-community\"));\nvar AgGridColumn = /** @class */ (function (_super) {\n    __extends(AgGridColumn, _super);\n    function AgGridColumn(props) {\n        var _this = _super.call(this, props) || this;\n        _this.props = props;\n        return _this;\n    }\n    AgGridColumn.prototype.render = function () {\n        return null;\n    };\n    AgGridColumn.mapChildColumnDefs = function (children) {\n        return react_1.default.Children.map(children, function (child) { return !!child ? AgGridColumn.toColDef(child.props) : null; });\n    };\n    AgGridColumn.toColDef = function (columnProps) {\n        var children = columnProps.children, colDef = __rest(columnProps, [\"children\"]);\n        if (AgGridColumn.hasChildColumns(children)) {\n            colDef.children = AgGridColumn.mapChildColumnDefs(children);\n        }\n        return colDef;\n    };\n    AgGridColumn.hasChildColumns = function (children) {\n        return react_1.default.Children.count(children) > 0;\n    };\n    return AgGridColumn;\n}(react_1.Component));\nexports.AgGridColumn = AgGridColumn;\naddProperties(AgGrid.ColDefUtil.BOOLEAN_PROPERTIES, prop_types_1.default.bool);\naddProperties(AgGrid.ColDefUtil.STRING_PROPERTIES, prop_types_1.default.string);\naddProperties(AgGrid.ColDefUtil.OBJECT_PROPERTIES, prop_types_1.default.object);\naddProperties(AgGrid.ColDefUtil.ARRAY_PROPERTIES, prop_types_1.default.array);\naddProperties(AgGrid.ColDefUtil.NUMBER_PROPERTIES, prop_types_1.default.number);\naddProperties(AgGrid.ColDefUtil.FUNCTION_PROPERTIES, prop_types_1.default.func);\nfunction addProperties(listOfProps, propType) {\n    listOfProps.forEach(function (propKey) {\n        // @ts-ignore\n        AgGridColumn[propKey] = propType;\n    });\n}\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ChangeDetectionStrategyType;\n(function (ChangeDetectionStrategyType) {\n    ChangeDetectionStrategyType[\"IdentityCheck\"] = \"IdentityCheck\";\n    ChangeDetectionStrategyType[\"DeepValueCheck\"] = \"DeepValueCheck\";\n    ChangeDetectionStrategyType[\"NoCheck\"] = \"NoCheck\";\n})(ChangeDetectionStrategyType = exports.ChangeDetectionStrategyType || (exports.ChangeDetectionStrategyType = {}));\nvar SimpleFunctionalStrategy = /** @class */ (function () {\n    function SimpleFunctionalStrategy(strategy) {\n        this.strategy = strategy;\n    }\n    SimpleFunctionalStrategy.prototype.areEqual = function (a, b) {\n        return this.strategy(a, b);\n    };\n    return SimpleFunctionalStrategy;\n}());\nvar DeepValueStrategy = /** @class */ (function () {\n    function DeepValueStrategy() {\n    }\n    DeepValueStrategy.prototype.areEqual = function (a, b) {\n        return DeepValueStrategy.areEquivalent(DeepValueStrategy.copy(a), DeepValueStrategy.copy(b));\n    };\n    /*\n     * deeper object comparison - taken from https://stackoverflow.com/questions/1068834/object-comparison-in-javascript\n     */\n    DeepValueStrategy.unwrapStringOrNumber = function (obj) {\n        return obj instanceof Number || obj instanceof String ? obj.valueOf() : obj;\n    };\n    // sigh, here for ie compatibility\n    DeepValueStrategy.copy = function (value) {\n        if (!value) {\n            return value;\n        }\n        if (Array.isArray(value)) {\n            // shallow copy the array - this will typically be either rowData or columnDefs\n            var arrayCopy = [];\n            for (var i = 0; i < value.length; i++) {\n                arrayCopy.push(this.copy(value[i]));\n            }\n            return arrayCopy;\n        }\n        // for anything without keys (boolean, string etc).\n        // Object.keys - chrome will swallow them\n        if (typeof value !== \"object\") {\n            return value;\n        }\n        return [{}, value].reduce(function (r, o) {\n            Object.keys(o).forEach(function (k) {\n                r[k] = o[k];\n            });\n            return r;\n        }, {});\n    };\n    DeepValueStrategy.isNaN = function (value) {\n        if (Number.isNaN) {\n            return Number.isNaN(value);\n        }\n        // for ie11...\n        return typeof (value) === 'number' && isNaN(value);\n    };\n    /*\n     * slightly modified, but taken from https://stackoverflow.com/questions/1068834/object-comparison-in-javascript\n     *\n     * What we're trying to do here is determine if the property being checked has changed in _value_, not just in reference\n     *\n     * For eg, if a user updates the columnDefs via property binding, but the actual columns defs are the same before and\n     * after, then we don't want the grid to re-render\n     */\n    DeepValueStrategy.areEquivalent = function (a, b) {\n        a = DeepValueStrategy.unwrapStringOrNumber(a);\n        b = DeepValueStrategy.unwrapStringOrNumber(b);\n        if (a === b)\n            return true; //e.g. a and b both null\n        if (a === null || b === null || typeof a !== typeof b)\n            return false;\n        if (DeepValueStrategy.isNaN(a) && DeepValueStrategy.isNaN(b)) {\n            return true;\n        }\n        if (a instanceof Date) {\n            return b instanceof Date && a.valueOf() === b.valueOf();\n        }\n        if (typeof a === \"function\") {\n            // false to allow for callbacks to be reactive...\n            return false;\n        }\n        if (typeof a !== \"object\" ||\n            (a.$$typeof && a.$$typeof.toString() === \"Symbol(react.element)\")) {\n            return a == b; //for boolean, number, string, function, xml\n        }\n        if (Object.isFrozen(a) || Object.isFrozen(b)) {\n            return a === b;\n        }\n        var newA = a.areEquivPropertyTracking === undefined, newB = b.areEquivPropertyTracking === undefined;\n        try {\n            var prop = void 0;\n            if (newA) {\n                a.areEquivPropertyTracking = [];\n            }\n            else if (a.areEquivPropertyTracking.some(function (other) {\n                return other === b;\n            }))\n                return true;\n            if (newB) {\n                b.areEquivPropertyTracking = [];\n            }\n            else if (b.areEquivPropertyTracking.some(function (other) { return other === a; })) {\n                return true;\n            }\n            a.areEquivPropertyTracking.push(b);\n            b.areEquivPropertyTracking.push(a);\n            var tmp = {};\n            for (prop in a)\n                if (prop != \"areEquivPropertyTracking\") {\n                    tmp[prop] = null;\n                }\n            for (prop in b)\n                if (prop != \"areEquivPropertyTracking\") {\n                    tmp[prop] = null;\n                }\n            for (prop in tmp) {\n                if (!this.areEquivalent(a[prop], b[prop])) {\n                    return false;\n                }\n            }\n            return true;\n        }\n        finally {\n            if (newA)\n                delete a.areEquivPropertyTracking;\n            if (newB)\n                delete b.areEquivPropertyTracking;\n        }\n    };\n    return DeepValueStrategy;\n}());\nvar ChangeDetectionService = /** @class */ (function () {\n    function ChangeDetectionService() {\n        var _a;\n        this.strategyMap = (_a = {},\n            _a[ChangeDetectionStrategyType.DeepValueCheck] = new DeepValueStrategy(),\n            _a[ChangeDetectionStrategyType.IdentityCheck] = new SimpleFunctionalStrategy(function (a, b) { return a === b; }),\n            _a[ChangeDetectionStrategyType.NoCheck] = new SimpleFunctionalStrategy(function (a, b) { return false; }),\n            _a);\n    }\n    ChangeDetectionService.prototype.getStrategy = function (changeDetectionStrategy) {\n        return this.strategyMap[changeDetectionStrategy];\n    };\n    return ChangeDetectionService;\n}());\nexports.ChangeDetectionService = ChangeDetectionService;\n","// ag-grid-react v27.3.0\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar counter = 0;\nfunction generateNewKey() {\n    return \"agPortalKey_\" + ++counter;\n}\nexports.default = generateNewKey;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar react_dom_1 = require(\"react-dom\");\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar reactComponent_1 = require(\"./reactComponent\");\nvar server_1 = require(\"react-dom/server\");\nvar keyGenerator_1 = __importDefault(require(\"./keyGenerator\"));\nvar NewReactComponent = /** @class */ (function (_super) {\n    __extends(NewReactComponent, _super);\n    function NewReactComponent(reactComponent, parentComponent, componentType) {\n        var _this = _super.call(this, reactComponent, parentComponent, componentType) || this;\n        _this.oldPortal = null;\n        _this.key = keyGenerator_1.default();\n        _this.portalKey = keyGenerator_1.default();\n        return _this;\n    }\n    NewReactComponent.prototype.init = function (params) {\n        var _this = this;\n        this.eParentElement = this.createParentElement(params);\n        this.params = params;\n        this.createOrUpdatePortal(params);\n        return new ag_grid_community_1.AgPromise(function (resolve) { return _this.createReactComponent(resolve); });\n    };\n    NewReactComponent.prototype.createOrUpdatePortal = function (params) {\n        var _this = this;\n        if (!this.isStatelessComponent()) {\n            // grab hold of the actual instance created\n            params.ref = function (element) {\n                _this.componentInstance = element;\n                _this.addParentContainerStyleAndClasses();\n            };\n        }\n        this.reactElement = react_1.createElement(this.reactComponent, __assign(__assign({}, params), { key: this.key }));\n        this.portal = react_dom_1.createPortal(this.reactElement, this.eParentElement, this.portalKey // fixed deltaRowModeRefreshCompRenderer\n        );\n    };\n    NewReactComponent.prototype.createReactComponent = function (resolve) {\n        this.portalManager.mountReactPortal(this.portal, this, function (value) {\n            resolve(value);\n        });\n    };\n    NewReactComponent.prototype.isNullValue = function () {\n        return this.valueRenderedIsNull(this.params);\n    };\n    NewReactComponent.prototype.rendered = function () {\n        return (this.isStatelessComponent() && this.statelessComponentRendered()) ||\n            !!(!this.isStatelessComponent() && this.getFrameworkComponentInstance());\n    };\n    NewReactComponent.prototype.valueRenderedIsNull = function (params) {\n        // we only do this for cellRenderers\n        if (!this.componentType.cellRenderer) {\n            return false;\n        }\n        // we've no way of knowing if a component returns null without rendering it first\n        // so we render it to markup and check the output - if it'll be null we know and won't timeout\n        // waiting for a component that will never be created\n        var originalConsoleError = console.error;\n        try {\n            // if a user is doing anything that uses useLayoutEffect (like material ui) then it will throw and we\n            // can't do anything to stop it; this is just a warning and has no effect on anything so just suppress it\n            // for this single operation\n            console.error = function () {\n            };\n            var staticMarkup = server_1.renderToStaticMarkup(react_1.createElement(this.reactComponent, params));\n            return staticMarkup === '';\n        }\n        catch (ignore) {\n        }\n        finally {\n            console.error = originalConsoleError;\n        }\n        return false;\n    };\n    /*\n    * fallback methods - these will be invoked if a corresponding instance method is not present\n    * for example if refresh is called and is not available on the component instance, then refreshComponent on this\n    * class will be invoked instead\n    *\n    * Currently only refresh is supported\n    */\n    NewReactComponent.prototype.refreshComponent = function (args) {\n        this.oldPortal = this.portal;\n        this.createOrUpdatePortal(args);\n        this.portalManager.updateReactPortal(this.oldPortal, this.portal);\n    };\n    NewReactComponent.prototype.fallbackMethod = function (name, params) {\n        var method = this[name + \"Component\"];\n        if (!!method) {\n            return method.bind(this)(params);\n        }\n    };\n    NewReactComponent.prototype.fallbackMethodAvailable = function (name) {\n        var method = this[name + \"Component\"];\n        return !!method;\n    };\n    return NewReactComponent;\n}(reactComponent_1.ReactComponent));\nexports.NewReactComponent = NewReactComponent;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar PortalManager = /** @class */ (function () {\n    function PortalManager(parent, wrappingElement, maxComponentCreationTimeMs) {\n        this.destroyed = false;\n        this.portals = [];\n        this.hasPendingPortalUpdate = false;\n        this.wrappingElement = wrappingElement ? wrappingElement : 'div';\n        this.parent = parent;\n        this.maxComponentCreationTimeMs = maxComponentCreationTimeMs ? maxComponentCreationTimeMs : PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS;\n    }\n    PortalManager.prototype.getPortals = function () {\n        return this.portals;\n    };\n    PortalManager.prototype.destroy = function () {\n        this.destroyed = true;\n    };\n    PortalManager.prototype.destroyPortal = function (portal) {\n        this.portals = this.portals.filter(function (curPortal) { return curPortal !== portal; });\n        this.batchUpdate();\n    };\n    PortalManager.prototype.getComponentWrappingElement = function () {\n        return this.wrappingElement;\n    };\n    PortalManager.prototype.mountReactPortal = function (portal, reactComponent, resolve) {\n        this.portals = __spreadArrays(this.portals, [portal]);\n        this.waitForInstance(reactComponent, resolve);\n        this.batchUpdate();\n    };\n    PortalManager.prototype.updateReactPortal = function (oldPortal, newPortal) {\n        this.portals[this.portals.indexOf(oldPortal)] = newPortal;\n        this.batchUpdate();\n    };\n    PortalManager.prototype.batchUpdate = function () {\n        var _this = this;\n        if (this.hasPendingPortalUpdate) {\n            return;\n        }\n        setTimeout(function () {\n            if (!_this.destroyed) { // destroyed?\n                _this.parent.forceUpdate(function () {\n                    _this.hasPendingPortalUpdate = false;\n                });\n            }\n        });\n        this.hasPendingPortalUpdate = true;\n    };\n    PortalManager.prototype.waitForInstance = function (reactComponent, resolve, startTime) {\n        var _this = this;\n        if (startTime === void 0) { startTime = Date.now(); }\n        // if the grid has been destroyed in the meantime just resolve\n        if (this.destroyed) {\n            resolve(null);\n            return;\n        }\n        if (reactComponent.rendered()) {\n            resolve(reactComponent);\n        }\n        else {\n            if (Date.now() - startTime >= this.maxComponentCreationTimeMs && !this.hasPendingPortalUpdate) {\n                // last check - we check if this is a null value being rendered - we do this last as using SSR to check the value\n                // can mess up contexts\n                if (reactComponent.isNullValue()) {\n                    resolve(reactComponent);\n                    return;\n                }\n                console.error(\"AG Grid: React Component '\" + reactComponent.getReactComponentName() + \"' not created within \" + this.maxComponentCreationTimeMs + \"ms\");\n                return;\n            }\n            window.setTimeout(function () {\n                _this.waitForInstance(reactComponent, resolve, startTime);\n            });\n        }\n    };\n    PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS = 1000; // a second should be more than enough to instantiate a component\n    return PortalManager;\n}());\nexports.PortalManager = PortalManager;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar BaseReactComponent = /** @class */ (function () {\n    function BaseReactComponent() {\n    }\n    return BaseReactComponent;\n}());\nvar ReactComponent = /** @class */ (function (_super) {\n    __extends(ReactComponent, _super);\n    function ReactComponent(reactComponent, portalManager, componentType) {\n        var _this = _super.call(this) || this;\n        _this.portal = null;\n        _this.reactComponent = reactComponent;\n        _this.portalManager = portalManager;\n        _this.componentType = componentType;\n        _this.statelessComponent = _this.isStateless(_this.reactComponent);\n        return _this;\n    }\n    ReactComponent.prototype.getGui = function () {\n        return this.eParentElement;\n    };\n    ReactComponent.prototype.destroy = function () {\n        if (this.componentInstance && typeof this.componentInstance.destroy == 'function') {\n            this.componentInstance.destroy();\n        }\n        return this.portalManager.destroyPortal(this.portal);\n    };\n    ReactComponent.prototype.createParentElement = function (params) {\n        var componentWrappingElement = this.portalManager.getComponentWrappingElement();\n        var eParentElement = document.createElement(componentWrappingElement || 'div');\n        eParentElement.classList.add('ag-react-container');\n        // DEPRECATED - use componentInstance.getReactContainerStyle or componentInstance.getReactContainerClasses instead\n        // so user can have access to the react container, to add css class or style\n        params.reactContainer = eParentElement;\n        return eParentElement;\n    };\n    ReactComponent.prototype.addParentContainerStyleAndClasses = function () {\n        var _this = this;\n        if (!this.componentInstance) {\n            return;\n        }\n        if (this.componentInstance.getReactContainerStyle && this.componentInstance.getReactContainerStyle()) {\n            Object.assign(this.eParentElement.style, this.componentInstance.getReactContainerStyle());\n        }\n        if (this.componentInstance.getReactContainerClasses && this.componentInstance.getReactContainerClasses()) {\n            var parentContainerClasses = this.componentInstance.getReactContainerClasses();\n            parentContainerClasses.forEach(function (className) { return _this.eParentElement.classList.add(className); });\n        }\n    };\n    ReactComponent.prototype.statelessComponentRendered = function () {\n        // fixed fragmentsFuncRendererCreateDestroy funcRendererWithNan (changeDetectionService too for NaN)\n        return this.eParentElement.childElementCount > 0 || this.eParentElement.childNodes.length > 0;\n    };\n    ReactComponent.prototype.getFrameworkComponentInstance = function () {\n        return this.componentInstance;\n    };\n    ReactComponent.prototype.isStatelessComponent = function () {\n        return this.statelessComponent;\n    };\n    ReactComponent.prototype.getReactComponentName = function () {\n        return this.reactComponent.name;\n    };\n    ReactComponent.prototype.getMemoType = function () {\n        return this.hasSymbol() ? Symbol.for('react.memo') : 0xead3;\n    };\n    ReactComponent.prototype.hasSymbol = function () {\n        return typeof Symbol === 'function' && Symbol.for;\n    };\n    ReactComponent.prototype.isStateless = function (Component) {\n        return (typeof Component === 'function' && !(Component.prototype && Component.prototype.isReactComponent))\n            || (typeof Component === 'object' && Component.$$typeof === this.getMemoType());\n    };\n    ReactComponent.prototype.hasMethod = function (name) {\n        var frameworkComponentInstance = this.getFrameworkComponentInstance();\n        return (!!frameworkComponentInstance && frameworkComponentInstance[name] !== null) ||\n            this.fallbackMethodAvailable(name);\n    };\n    ReactComponent.prototype.callMethod = function (name, args) {\n        var _this = this;\n        var frameworkComponentInstance = this.getFrameworkComponentInstance();\n        if (this.isStatelessComponent()) {\n            return this.fallbackMethod(name, !!args && args[0] ? args[0] : {});\n        }\n        else if (!(!!frameworkComponentInstance)) {\n            // instance not ready yet - wait for it\n            setTimeout(function () { return _this.callMethod(name, args); });\n            return;\n        }\n        var method = frameworkComponentInstance[name];\n        if (!!method) {\n            return method.apply(frameworkComponentInstance, args);\n        }\n        if (this.fallbackMethodAvailable(name)) {\n            return this.fallbackMethod(name, !!args && args[0] ? args[0] : {});\n        }\n    };\n    ReactComponent.prototype.addMethod = function (name, callback) {\n        this[name] = callback;\n    };\n    return ReactComponent;\n}(BaseReactComponent));\nexports.ReactComponent = ReactComponent;\n","// ag-grid-react v27.3.0\n\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ag_grid_community_1 = require(\"ag-grid-community\");\nvar groupCellRenderer_1 = __importDefault(require(\"../reactUi/cellRenderer/groupCellRenderer\"));\nvar detailCellRenderer_1 = __importDefault(require(\"../reactUi/cellRenderer/detailCellRenderer\"));\nvar ReactFrameworkOverrides = /** @class */ (function (_super) {\n    __extends(ReactFrameworkOverrides, _super);\n    function ReactFrameworkOverrides(reactUi) {\n        var _this = _super.call(this) || this;\n        _this.frameworkComponents = {\n            agGroupCellRenderer: groupCellRenderer_1.default,\n            agGroupRowRenderer: groupCellRenderer_1.default,\n            agDetailCellRenderer: detailCellRenderer_1.default\n        };\n        _this.reactUi = reactUi;\n        return _this;\n    }\n    ReactFrameworkOverrides.prototype.frameworkComponent = function (name) {\n        if (!this.reactUi) {\n            return;\n        }\n        return this.frameworkComponents[name];\n    };\n    ReactFrameworkOverrides.prototype.isFrameworkComponent = function (comp) {\n        if (!comp) {\n            return false;\n        }\n        var prototype = comp.prototype;\n        var isJsComp = prototype && 'getGui' in prototype;\n        return !isJsComp;\n    };\n    return ReactFrameworkOverrides;\n}(ag_grid_community_1.VanillaFrameworkOverrides));\nexports.ReactFrameworkOverrides = ReactFrameworkOverrides;\n","exports.AgGridReact = require('./lib/agGridReact').AgGridReact;\nexports.AgGridColumn = require('./lib/shared/agGridColumn').AgGridColumn;\nexports.ChangeDetectionStrategyType = require('./lib/shared/changeDetectionService').ChangeDetectionStrategyType;\nexports.AgGridReactUi = require('./lib/reactUi/agGridReactUi').AgGridReactUi;\n","'use strict';\n\nvar bind = require('function-bind');\n\nvar $apply = require('./functionApply');\nvar $call = require('./functionCall');\nvar $reflectApply = require('./reflectApply');\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n","'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n","'use strict';\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n","'use strict';\n\nvar bind = require('function-bind');\nvar $TypeError = require('es-errors/type');\n\nvar $call = require('./functionCall');\nvar $actualApply = require('./actualApply');\n\n/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n","'use strict';\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBindBasic = require('call-bind-apply-helpers');\n\n/** @type {(thisArg: string, searchString: string, position?: number) => number} */\nvar $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);\n\n/** @type {import('.')} */\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\t/* eslint no-extra-parens: 0 */\n\n\tvar intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBindBasic(/** @type {const} */ ([intrinsic]));\n\t}\n\treturn intrinsic;\n};\n","var charenc = {\n  // UTF-8 encoding\n  utf8: {\n    // Convert a string to a byte array\n    stringToBytes: function(str) {\n      return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n    },\n\n    // Convert a byte array to a string\n    bytesToString: function(bytes) {\n      return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n    }\n  },\n\n  // Binary encoding\n  bin: {\n    // Convert a string to a byte array\n    stringToBytes: function(str) {\n      for (var bytes = [], i = 0; i < str.length; i++)\n        bytes.push(str.charCodeAt(i) & 0xFF);\n      return bytes;\n    },\n\n    // Convert a byte array to a string\n    bytesToString: function(bytes) {\n      for (var str = [], i = 0; i < bytes.length; i++)\n        str.push(String.fromCharCode(bytes[i]));\n      return str.join('');\n    }\n  }\n};\n\nmodule.exports = charenc;\n","(function() {\n  var base64map\n      = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n\n  crypt = {\n    // Bit-wise rotation left\n    rotl: function(n, b) {\n      return (n << b) | (n >>> (32 - b));\n    },\n\n    // Bit-wise rotation right\n    rotr: function(n, b) {\n      return (n << (32 - b)) | (n >>> b);\n    },\n\n    // Swap big-endian to little-endian and vice versa\n    endian: function(n) {\n      // If number given, swap endian\n      if (n.constructor == Number) {\n        return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n      }\n\n      // Else, assume array and swap all items\n      for (var i = 0; i < n.length; i++)\n        n[i] = crypt.endian(n[i]);\n      return n;\n    },\n\n    // Generate an array of any length of random bytes\n    randomBytes: function(n) {\n      for (var bytes = []; n > 0; n--)\n        bytes.push(Math.floor(Math.random() * 256));\n      return bytes;\n    },\n\n    // Convert a byte array to big-endian 32-bit words\n    bytesToWords: function(bytes) {\n      for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)\n        words[b >>> 5] |= bytes[i] << (24 - b % 32);\n      return words;\n    },\n\n    // Convert big-endian 32-bit words to a byte array\n    wordsToBytes: function(words) {\n      for (var bytes = [], b = 0; b < words.length * 32; b += 8)\n        bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n      return bytes;\n    },\n\n    // Convert a byte array to a hex string\n    bytesToHex: function(bytes) {\n      for (var hex = [], i = 0; i < bytes.length; i++) {\n        hex.push((bytes[i] >>> 4).toString(16));\n        hex.push((bytes[i] & 0xF).toString(16));\n      }\n      return hex.join('');\n    },\n\n    // Convert a hex string to a byte array\n    hexToBytes: function(hex) {\n      for (var bytes = [], c = 0; c < hex.length; c += 2)\n        bytes.push(parseInt(hex.substr(c, 2), 16));\n      return bytes;\n    },\n\n    // Convert a byte array to a base-64 string\n    bytesToBase64: function(bytes) {\n      for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n        var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n        for (var j = 0; j < 4; j++)\n          if (i * 8 + j * 6 <= bytes.length * 8)\n            base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));\n          else\n            base64.push('=');\n      }\n      return base64.join('');\n    },\n\n    // Convert a base-64 string to a byte array\n    base64ToBytes: function(base64) {\n      // Remove non-base-64 characters\n      base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n\n      for (var bytes = [], i = 0, imod4 = 0; i < base64.length;\n          imod4 = ++i % 4) {\n        if (imod4 == 0) continue;\n        bytes.push(((base64map.indexOf(base64.charAt(i - 1))\n            & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))\n            | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));\n      }\n      return bytes;\n    }\n  };\n\n  module.exports = crypt;\n})();\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDIzNSA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxuczpzZXJpZj0iaHR0cDovL3d3dy5zZXJpZi5jb20vIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjI7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDAuNjM1NzIzLDAsMCwwLjYzNTcyMywtNDkyLjkyMSwtMzIzLjYwOCkiPgogICAgICAgIDxwYXRoIGQ9Ik0xMDk5LjQsNTQ5LjRMMTA5OS40LDUzNi45TDEwNzguMSw1MzYuOUwxMDY1LjYsNTQ5LjRMMTA5OS40LDU0OS40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTEyMy40LDUxOC40TDEwOTYuNyw1MTguNEwxMDg0LjEsNTMwLjlMMTEyMy40LDUzMC45TDExMjMuNCw1MTguNFoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwNTMuMiw1NjEuOUwxMDU5LjYsNTU1LjVMMTA4MS4yLDU1NS41TDEwODEuMiw1NjhMMTA1My4yLDU2OEwxMDUzLjIsNTYxLjlaIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDU3LjksNTQzLjNMMTA3MS43LDU0My4zTDEwODQuMyw1MzAuOEwxMDU3LjksNTMwLjhMMTA1Ny45LDU0My4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTA0Mi44LDU2MS45TDEwNTMuMiw1NjEuOUwxMDY1LjYsNTQ5LjRMMTA0Mi44LDU0OS40TDEwNDIuOCw1NjEuOVoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwOTYuNyw1MTguNEwxMDkwLjMsNTI0LjhMMTA0OS41LDUyNC44TDEwNDkuNSw1MTIuM0wxMDk2LjcsNTEyLjNMMTA5Ni43LDUxOC40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNODI4LjYsNTU5LjdMODA5LDU1OS43TDgwNS42LDU2OC4xTDc5Nyw1NjguMUw4MTUuMSw1MjUuN0w4MjIuNiw1MjUuN0w4NDAuNyw1NjguMUw4MzIsNTY4LjFMODI4LjYsNTU5LjdaTTgyNS45LDU1M0w4MTguOCw1MzUuN0w4MTEuNyw1NTNMODI1LjksNTUzWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTYwLjEsNTQxLjNDOTYyLjYsNTM3LjYgOTY4LjksNTM3LjIgOTcxLjUsNTM3LjJMOTcxLjUsNTQ0LjRDOTY4LjMsNTQ0LjQgOTY1LjEsNTQ0LjUgOTYzLjIsNTQ1LjlDOTYxLjMsNTQ3LjMgOTYwLjMsNTQ5LjIgOTYwLjMsNTUxLjVMOTYwLjMsNTY4LjFMOTUyLjUsNTY4LjFMOTUyLjUsNTM3LjJMOTYwLDUzNy4yTDk2MC4xLDU0MS4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTM3LjIiIHdpZHRoPSI3LjgiIGhlaWdodD0iMzAuOSIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTIzLjQiIHdpZHRoPSI3LjgiIGhlaWdodD0iOS4yIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDIyLjMsNTIzLjRMMTAyMi4zLDU2OC4xTDEwMTQuOCw1NjguMUwxMDE0LjYsNTYzLjRDMTAxMy41LDU2NSAxMDEyLjEsNTY2LjMgMTAxMC40LDU2Ny4zQzEwMDguNyw1NjguMiAxMDA2LjYsNTY4LjcgMTAwNC4yLDU2OC43QzEwMDIuMSw1NjguNyAxMDAwLjEsNTY4LjMgOTk4LjQsNTY3LjZDOTk2LjYsNTY2LjggOTk1LDU2NS44IDk5My43LDU2NC40Qzk5Mi40LDU2MyA5OTEuMyw1NjEuMyA5OTAuNiw1NTkuNEM5ODkuOCw1NTcuNSA5ODkuNSw1NTUuMyA5ODkuNSw1NTIuOUM5ODkuNSw1NTAuNSA5ODkuOSw1NDguMyA5OTAuNiw1NDYuM0M5OTEuNCw1NDQuMyA5OTIuNCw1NDIuNiA5OTMuNyw1NDEuMkM5OTUsNTM5LjggOTk2LjYsNTM4LjcgOTk4LjQsNTM3LjlDMTAwMC4yLDUzNy4xIDEwMDIuMSw1MzYuNyAxMDA0LjIsNTM2LjdDMTAwNi42LDUzNi43IDEwMDguNiw1MzcuMSAxMDEwLjMsNTM4QzEwMTIsNTM4LjkgMTAxMy40LDU0MC4xIDEwMTQuNSw1NDEuOEwxMDE0LjUsNTIzLjVMMTAyMi4zLDUyMy41TDEwMjIuMyw1MjMuNFpNMTAwNS45LDU2MkMxMDA4LjUsNTYyIDEwMTAuNSw1NjEuMSAxMDEyLjEsNTU5LjRDMTAxMy43LDU1Ny43IDEwMTQuNSw1NTUuNCAxMDE0LjUsNTUyLjZDMTAxNC41LDU0OS44IDEwMTMuNyw1NDcuNiAxMDEyLjEsNTQ1LjhDMTAxMC41LDU0NC4xIDEwMDguNSw1NDMuMiAxMDA1LjksNTQzLjJDMTAwMy40LDU0My4yIDEwMDEuMyw1NDQuMSA5OTkuOCw1NDUuOEM5OTguMiw1NDcuNSA5OTcuNCw1NDkuOCA5OTcuNCw1NTIuNkM5OTcuNCw1NTUuNCA5OTguMiw1NTcuNiA5OTkuOCw1NTkuM0MxMDAxLjQsNTYxLjEgMTAwMy40LDU2MiAxMDA1LjksNTYyIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik04ODUuOCw1NDQuMkw4NjYuNSw1NDQuMkw4NjYuNSw1NTAuOUw4NzcuNSw1NTAuOUM4NzcuMiw1NTQuMyA4NzUuOSw1NTYuOSA4NzMuNyw1NTlDODcxLjUsNTYxIDg2OC43LDU2MiA4NjUuMSw1NjJDODYzLjEsNTYyIDg2MS4yLDU2MS42IDg1OS42LDU2MC45Qzg1Ny45LDU2MC4yIDg1Ni41LDU1OS4yIDg1NS4zLDU1Ny44Qzg1NC4xLDU1Ni41IDg1My4yLDU1NC45IDg1Mi41LDU1M0M4NTEuOCw1NTEuMSA4NTEuNSw1NDkuMSA4NTEuNSw1NDYuOEM4NTEuNSw1NDQuNSA4NTEuOCw1NDIuNSA4NTIuNSw1NDAuNkM4NTMuMSw1MzguNyA4NTQuMSw1MzcuMiA4NTUuMyw1MzUuOEM4NTYuNSw1MzQuNSA4NTcuOSw1MzMuNSA4NTkuNiw1MzIuN0M4NjEuMyw1MzIgODYzLjEsNTMxLjYgODY1LjIsNTMxLjZDODY5LjQsNTMxLjYgODcyLjYsNTMyLjYgODc0LjgsNTM0LjZMODgwLDUyOS40Qzg3Ni4xLDUyNi40IDg3MS4xLDUyNC44IDg2NS4yLDUyNC44Qzg2MS45LDUyNC44IDg1OC45LDUyNS4zIDg1Ni4yLDUyNi40Qzg1My41LDUyNy41IDg1MS4yLDUyOC45IDg0OS4zLDUzMC44Qzg0Ny40LDUzMi43IDg0NS45LDUzNSA4NDQuOSw1MzcuN0M4NDMuOSw1NDAuNCA4NDMuNCw1NDMuNCA4NDMuNCw1NDYuNkM4NDMuNCw1NDkuOCA4NDMuOSw1NTIuOCA4NDUsNTU1LjVDODQ2LjEsNTU4LjIgODQ3LjUsNTYwLjUgODQ5LjQsNTYyLjRDODUxLjMsNTY0LjMgODUzLjYsNTY1LjggODU2LjMsNTY2LjhDODU5LDU2Ny45IDg2Miw1NjguNCA4NjUuMiw1NjguNEM4NjguNCw1NjguNCA4NzEuMyw1NjcuOSA4NzMuOSw1NjYuOEM4NzYuNSw1NjUuNyA4NzguNyw1NjQuMyA4ODAuNSw1NjIuNEM4ODIuMyw1NjAuNSA4ODMuNyw1NTguMiA4ODQuNyw1NTUuNUM4ODUuNyw1NTIuOCA4ODYuMiw1NDkuOCA4ODYuMiw1NDYuNkw4ODYuMiw1NDUuM0M4ODUuOSw1NDUuMSA4ODUuOCw1NDQuNiA4ODUuOCw1NDQuMiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTQ2LjgsNTQ0LjJMOTI3LjUsNTQ0LjJMOTI3LjUsNTUwLjlMOTM4LjUsNTUwLjlDOTM4LjIsNTU0LjMgOTM2LjksNTU2LjkgOTM0LjcsNTU5QzkzMi41LDU2MSA5MjkuNyw1NjIgOTI2LjEsNTYyQzkyNC4xLDU2MiA5MjIuMiw1NjEuNiA5MjAuNiw1NjAuOUM5MTguOSw1NjAuMiA5MTcuNSw1NTkuMiA5MTYuMyw1NTcuOEM5MTUuMSw1NTYuNSA5MTQuMiw1NTQuOSA5MTMuNSw1NTNDOTEyLjgsNTUxLjEgOTEyLjUsNTQ5LjEgOTEyLjUsNTQ2LjhDOTEyLjUsNTQ0LjUgOTEyLjgsNTQyLjUgOTEzLjUsNTQwLjZDOTE0LjEsNTM4LjcgOTE1LjEsNTM3LjIgOTE2LjMsNTM1LjhDOTE3LjUsNTM0LjUgOTE4LjksNTMzLjUgOTIwLjYsNTMyLjdDOTIyLjMsNTMyIDkyNC4xLDUzMS42IDkyNi4yLDUzMS42QzkzMC40LDUzMS42IDkzMy42LDUzMi42IDkzNS44LDUzNC42TDk0MSw1MjkuNEM5MzcuMSw1MjYuNCA5MzIuMSw1MjQuOCA5MjYuMiw1MjQuOEM5MjIuOSw1MjQuOCA5MTkuOSw1MjUuMyA5MTcuMiw1MjYuNEM5MTQuNSw1MjcuNSA5MTIuMiw1MjguOSA5MTAuMyw1MzAuOEM5MDguNCw1MzIuNyA5MDYuOSw1MzUgOTA1LjksNTM3LjdDOTA0LjksNTQwLjQgOTA0LjQsNTQzLjQgOTA0LjQsNTQ2LjZDOTA0LjQsNTQ5LjggOTA0LjksNTUyLjggOTA2LDU1NS41QzkwNy4xLDU1OC4yIDkwOC41LDU2MC41IDkxMC40LDU2Mi40QzkxMi4zLDU2NC4zIDkxNC42LDU2NS44IDkxNy4zLDU2Ni44QzkyMCw1NjcuOSA5MjMsNTY4LjQgOTI2LjIsNTY4LjRDOTI5LjQsNTY4LjQgOTMyLjMsNTY3LjkgOTM0LjksNTY2LjhDOTM3LjUsNTY1LjcgOTM5LjcsNTY0LjMgOTQxLjUsNTYyLjRDOTQzLjMsNTYwLjUgOTQ0LjcsNTU4LjIgOTQ1LjcsNTU1LjVDOTQ2LjcsNTUyLjggOTQ3LjIsNTQ5LjggOTQ3LjIsNTQ2LjZMOTQ3LjIsNTQ1LjNDOTQ2LjksNTQ1LjEgOTQ2LjgsNTQ0LjYgOTQ2LjgsNTQ0LjIiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/**\n ****************************\n * Generic Styles\n ****************************\n*/\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\n  display: block;\n}\n\n.ag-hidden {\n  display: none !important;\n}\n\n.ag-invisible {\n  visibility: hidden !important;\n}\n\n.ag-drag-handle {\n  cursor: -webkit-grab;\n  cursor: grab;\n}\n\n.ag-column-drop-wrapper {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-column-drop-horizontal-half-width {\n  display: inline-block;\n  width: 50% !important;\n}\n\n.ag-unselectable {\n  -moz-user-select: none;\n  -webkit-user-select: none;\n  user-select: none;\n}\n\n.ag-selectable {\n  -moz-user-select: text;\n  -webkit-user-select: text;\n  user-select: text;\n}\n\n.ag-tab {\n  position: relative;\n}\n\n.ag-tab-guard {\n  position: absolute;\n  width: 0;\n  height: 0;\n  display: block;\n}\n\n.ag-select-agg-func-popup {\n  position: absolute;\n}\n\n.ag-input-wrapper, .ag-picker-field-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  -webkit-box-align: center;\n          align-items: center;\n  line-height: normal;\n  position: relative;\n}\n\n.ag-shake-left-to-right {\n  -webkit-animation-direction: alternate;\n          animation-direction: alternate;\n  -webkit-animation-duration: 0.2s;\n          animation-duration: 0.2s;\n  -webkit-animation-iteration-count: infinite;\n          animation-iteration-count: infinite;\n  -webkit-animation-name: ag-shake-left-to-right;\n          animation-name: ag-shake-left-to-right;\n}\n\n@-webkit-keyframes ag-shake-left-to-right {\n  from {\n    padding-left: 6px;\n    padding-right: 2px;\n  }\n  to {\n    padding-left: 2px;\n    padding-right: 6px;\n  }\n}\n\n@keyframes ag-shake-left-to-right {\n  from {\n    padding-left: 6px;\n    padding-right: 2px;\n  }\n  to {\n    padding-left: 2px;\n    padding-right: 6px;\n  }\n}\n.ag-root-wrapper {\n  cursor: default;\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow: hidden;\n}\n.ag-root-wrapper.ag-layout-normal {\n  height: 100%;\n}\n\n.ag-watermark {\n  position: absolute;\n  bottom: 20px;\n  right: 25px;\n  opacity: 0.5;\n  -webkit-transition: opacity 1s ease-out 3s;\n  transition: opacity 1s ease-out 3s;\n}\n.ag-watermark::before {\n  content: \"\";\n  background-image: url(${___CSS_LOADER_URL_REPLACEMENT_0___});\n  background-repeat: no-repeat;\n  background-size: 170px 40px;\n  display: block;\n  height: 40px;\n  width: 170px;\n  opacity: 0.5;\n}\n\n.ag-watermark-text {\n  opacity: 0.5;\n  font-weight: bold;\n  font-family: Impact, sans-serif;\n  font-size: 19px;\n  padding-left: 0.7rem;\n}\n\n.ag-root-wrapper-body {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n}\n.ag-root-wrapper-body.ag-layout-normal {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  height: 0;\n  min-height: 0;\n}\n\n.ag-root {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n}\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\n  overflow: hidden;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  width: 0;\n}\n.ag-root.ag-layout-normal {\n  height: 100%;\n}\n\n/**\n ****************************\n * Viewports\n ****************************\n*/\n.ag-header-viewport,\n.ag-floating-top-viewport,\n.ag-body-viewport,\n.ag-center-cols-viewport,\n.ag-floating-bottom-viewport,\n.ag-body-horizontal-scroll-viewport,\n.ag-virtual-list-viewport {\n  position: relative;\n  height: 100%;\n  min-width: 0px;\n  overflow: hidden;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-body-viewport {\n  display: -webkit-box;\n  display: flex;\n}\n.ag-body-viewport.ag-layout-normal {\n  overflow-y: auto;\n  -webkit-overflow-scrolling: touch;\n}\n\n.ag-center-cols-viewport {\n  width: 100%;\n  overflow-x: auto;\n}\n\n.ag-body-horizontal-scroll-viewport {\n  overflow-x: scroll;\n}\n\n.ag-virtual-list-viewport {\n  overflow: auto;\n  width: 100%;\n}\n\n/**\n ****************************\n * Containers\n ****************************\n*/\n.ag-header-container,\n.ag-floating-top-container,\n.ag-body-container,\n.ag-pinned-right-cols-container,\n.ag-center-cols-container,\n.ag-pinned-left-cols-container,\n.ag-floating-bottom-container,\n.ag-body-horizontal-scroll-container,\n.ag-full-width-container,\n.ag-floating-bottom-full-width-container,\n.ag-virtual-list-container {\n  position: relative;\n}\n\n.ag-header-container, .ag-floating-top-container, .ag-floating-bottom-container {\n  height: 100%;\n  white-space: nowrap;\n}\n\n.ag-center-cols-container {\n  display: block;\n}\n\n.ag-pinned-right-cols-container {\n  display: block;\n}\n\n.ag-body-horizontal-scroll-container {\n  height: 100%;\n}\n\n.ag-full-width-container,\n.ag-floating-top-full-width-container,\n.ag-floating-bottom-full-width-container {\n  position: absolute;\n  top: 0px;\n  left: 0px;\n  pointer-events: none;\n}\n\n.ag-full-width-container {\n  width: 100%;\n}\n\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\n  display: inline-block;\n  overflow: hidden;\n  height: 100%;\n  width: 100%;\n}\n\n.ag-virtual-list-container {\n  overflow: hidden;\n}\n\n/**\n ****************************\n * Scrollers\n ****************************\n*/\n.ag-center-cols-clipper {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  min-width: 0;\n  overflow: hidden;\n  min-height: 100%;\n  -webkit-transform: translate3d(0, 0, 0);\n          transform: translate3d(0, 0, 0);\n}\n\n.ag-body-horizontal-scroll {\n  min-height: 0;\n  min-width: 0;\n  width: 100%;\n  display: -webkit-box;\n  display: flex;\n  position: relative;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  pointer-events: none;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-scrollbar-active {\n  pointer-events: all;\n}\n\n.ag-force-vertical-scroll {\n  overflow-y: scroll !important;\n}\n\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\n  height: 100%;\n  min-width: 0;\n  overflow-x: scroll;\n}\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\n  overflow-x: hidden;\n}\n\n/**\n ****************************\n * Headers\n ****************************\n*/\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\n  display: inline-block;\n  overflow: hidden;\n  position: relative;\n}\n\n.ag-header-cell-sortable {\n  cursor: pointer;\n}\n\n.ag-header {\n  display: -webkit-box;\n  display: flex;\n  width: 100%;\n  white-space: nowrap;\n}\n\n.ag-pinned-left-header {\n  height: 100%;\n}\n\n.ag-pinned-right-header {\n  height: 100%;\n}\n\n.ag-header-row {\n  position: absolute;\n  overflow: hidden;\n}\n\n.ag-header-cell {\n  display: -webkit-inline-box;\n  display: inline-flex;\n  -webkit-box-align: center;\n          align-items: center;\n  position: absolute;\n  height: 100%;\n  overflow: hidden;\n}\n\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button {\n  opacity: 1;\n}\n\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\n  -webkit-transition: opacity 0.2s;\n  transition: opacity 0.2s;\n  opacity: 0;\n}\n\n.ag-header-group-cell-label, .ag-header-cell-label {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  overflow: hidden;\n  -webkit-box-align: center;\n          align-items: center;\n  text-overflow: ellipsis;\n  align-self: stretch;\n}\n\n.ag-header-cell-text {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.ag-right-aligned-header .ag-header-cell-label {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: reverse;\n          flex-direction: row-reverse;\n}\n\n.ag-header-group-text {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.ag-header-cell-resize {\n  position: absolute;\n  z-index: 2;\n  height: 100%;\n  width: 8px;\n  top: 0;\n  cursor: ew-resize;\n}\n.ag-ltr .ag-header-cell-resize {\n  right: -4px;\n}\n.ag-rtl .ag-header-cell-resize {\n  left: -4px;\n}\n\n.ag-pinned-left-header .ag-header-cell-resize {\n  right: -4px;\n}\n\n.ag-pinned-right-header .ag-header-cell-resize {\n  left: -4px;\n}\n\n.ag-header-select-all {\n  display: -webkit-box;\n  display: flex;\n}\n\n/**\n ****************************\n * Columns\n ****************************\n*/\n.ag-column-moving .ag-cell {\n  -webkit-transition: left 0.2s;\n  transition: left 0.2s;\n}\n.ag-column-moving .ag-header-cell {\n  -webkit-transition: left 0.2s;\n  transition: left 0.2s;\n}\n.ag-column-moving .ag-header-group-cell {\n  -webkit-transition: left 0.2s, width 0.2s;\n  transition: left 0.2s, width 0.2s;\n}\n\n/**\n ****************************\n * Column Panel\n ****************************\n*/\n.ag-column-panel {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow: hidden;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-column-select {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow: hidden;\n  -webkit-box-flex: 3;\n          flex: 3 1 0px;\n}\n\n.ag-column-select-header {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-column-select-header-icon {\n  position: relative;\n}\n\n.ag-column-select-header-filter-wrapper {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-column-select-header-filter {\n  width: 100%;\n}\n\n.ag-column-select-list {\n  -webkit-box-flex: 1;\n          flex: 1 1 0px;\n  overflow: hidden;\n}\n\n.ag-column-drop {\n  position: relative;\n  display: -webkit-inline-box;\n  display: inline-flex;\n  -webkit-box-align: center;\n          align-items: center;\n  overflow: auto;\n  width: 100%;\n}\n\n.ag-column-drop-list {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-column-drop-cell {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-column-drop-cell-text {\n  overflow: hidden;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.ag-column-drop-vertical {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow: hidden;\n  -webkit-box-align: stretch;\n          align-items: stretch;\n  -webkit-box-flex: 1;\n          flex: 1 1 0px;\n}\n\n.ag-column-drop-vertical-title-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-column-drop-vertical-list {\n  position: relative;\n  -webkit-box-align: stretch;\n          align-items: stretch;\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow-x: auto;\n}\n.ag-column-drop-vertical-list > * {\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-column-drop-empty .ag-column-drop-vertical-list {\n  overflow: hidden;\n}\n\n.ag-column-drop-vertical-empty-message {\n  display: block;\n}\n\n.ag-column-drop.ag-column-drop-horizontal {\n  white-space: nowrap;\n  overflow: hidden;\n}\n\n.ag-column-drop-cell-button {\n  cursor: pointer;\n}\n\n.ag-filter-toolpanel {\n  -webkit-box-flex: 1;\n          flex: 1 1 0px;\n  min-width: 0;\n}\n\n.ag-filter-toolpanel-header {\n  position: relative;\n}\n\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-filter-apply-panel {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-pack: end;\n          justify-content: flex-end;\n  overflow: hidden;\n}\n\n/**\n ****************************\n * Rows\n ****************************\n*/\n.ag-row-animation .ag-row {\n  -webkit-transition: top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n  transition: top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s;\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n}\n\n.ag-row-animation .ag-row.ag-after-created {\n  -webkit-transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n  transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s;\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\n}\n\n.ag-row-no-animation .ag-row {\n  -webkit-transition: background-color 0.1s;\n  transition: background-color 0.1s;\n}\n\n.ag-row {\n  white-space: nowrap;\n  width: 100%;\n}\n\n.ag-row-loading {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-row-position-absolute {\n  position: absolute;\n}\n\n.ag-row-position-relative {\n  position: relative;\n}\n\n.ag-full-width-row {\n  overflow: hidden;\n  pointer-events: all;\n}\n\n.ag-row-inline-editing {\n  z-index: 1;\n}\n\n.ag-row-dragging {\n  z-index: 2;\n}\n\n.ag-stub-cell {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n/**\n ****************************\n * Cells\n ****************************\n*/\n.ag-cell {\n  display: inline-block;\n  position: absolute;\n  white-space: nowrap;\n  height: 100%;\n}\n\n.ag-cell-value {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-cell-value, .ag-group-value {\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.ag-cell-wrap-text {\n  white-space: normal;\n  word-break: break-all;\n}\n\n.ag-cell-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-cell-wrapper.ag-row-group {\n  -webkit-box-align: start;\n          align-items: flex-start;\n}\n\n.ag-sparkline-wrapper {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  left: 0;\n  top: 0;\n}\n\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\n  height: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-cell-inline-editing {\n  z-index: 1;\n}\n.ag-cell-inline-editing .ag-cell-wrapper,\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\n.ag-cell-inline-editing .ag-cell-editor,\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\n.ag-cell-inline-editing .ag-cell-editor input {\n  height: 100%;\n  width: 100%;\n  line-height: normal;\n}\n\n.ag-cell .ag-icon {\n  display: inline-block;\n  vertical-align: middle;\n}\n\n/**\n ****************************\n * Filters\n ****************************\n*/\n.ag-set-filter-item {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  height: 100%;\n}\n\n.ag-set-filter-item-value {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.ag-set-filter-item-checkbox {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-filter-body-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n}\n\n.ag-filter-filter {\n  -webkit-box-flex: 1;\n          flex: 1 1 0px;\n}\n\n.ag-filter-condition {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-pack: center;\n          justify-content: center;\n}\n\n/**\n ****************************\n * Floating Filter\n ****************************\n*/\n.ag-floating-filter-body {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  height: 100%;\n}\n\n.ag-floating-filter-full-body {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  height: 100%;\n  width: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n  overflow: hidden;\n}\n\n.ag-floating-filter-full-body > div {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-floating-filter-input {\n  -webkit-box-align: center;\n          align-items: center;\n  display: -webkit-box;\n  display: flex;\n  width: 100%;\n}\n.ag-floating-filter-input > * {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-floating-filter-button {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n/**\n ****************************\n * Drag & Drop\n ****************************\n*/\n.ag-dnd-ghost {\n  position: absolute;\n  display: -webkit-inline-box;\n  display: inline-flex;\n  -webkit-box-align: center;\n          align-items: center;\n  cursor: move;\n  white-space: nowrap;\n  z-index: 9999;\n}\n\n/**\n ****************************\n * Overlay\n ****************************\n*/\n.ag-overlay {\n  height: 100%;\n  left: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 0;\n  width: 100%;\n}\n\n.ag-overlay-panel {\n  display: -webkit-box;\n  display: flex;\n  height: 100%;\n  width: 100%;\n}\n\n.ag-overlay-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n  width: 100%;\n  height: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n          justify-content: center;\n  text-align: center;\n}\n\n.ag-overlay-loading-wrapper {\n  pointer-events: all;\n}\n\n/**\n ****************************\n * Popup\n ****************************\n*/\n.ag-popup-child {\n  z-index: 5;\n  top: 0;\n}\n\n.ag-popup-editor {\n  position: absolute;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n  z-index: 1;\n}\n\n.ag-large-text-input {\n  display: block;\n}\n\n/**\n ****************************\n * Virtual Lists\n ****************************\n*/\n.ag-virtual-list-item {\n  position: absolute;\n  width: 100%;\n}\n\n/**\n ****************************\n * Floating Top and Bottom\n ****************************\n*/\n.ag-floating-top {\n  overflow: hidden;\n  white-space: nowrap;\n  width: 100%;\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-pinned-left-floating-top {\n  display: inline-block;\n  overflow: hidden;\n  position: relative;\n  min-width: 0px;\n}\n\n.ag-pinned-right-floating-top {\n  display: inline-block;\n  overflow: hidden;\n  position: relative;\n  min-width: 0px;\n}\n\n.ag-floating-bottom {\n  overflow: hidden;\n  white-space: nowrap;\n  width: 100%;\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-pinned-left-floating-bottom {\n  display: inline-block;\n  overflow: hidden;\n  position: relative;\n  min-width: 0px;\n}\n\n.ag-pinned-right-floating-bottom {\n  display: inline-block;\n  overflow: hidden;\n  position: relative;\n  min-width: 0px;\n}\n\n/**\n ****************************\n * Dialog\n ****************************\n*/\n.ag-dialog, .ag-panel {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  position: relative;\n  overflow: hidden;\n}\n\n.ag-panel-title-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n  -webkit-box-align: center;\n          align-items: center;\n  cursor: default;\n}\n\n.ag-panel-title-bar-title {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-panel-title-bar-buttons {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-panel-title-bar-button {\n  cursor: pointer;\n}\n\n.ag-panel-content-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  position: relative;\n  overflow: hidden;\n}\n\n.ag-dialog {\n  position: absolute;\n}\n\n.ag-resizer {\n  position: absolute;\n  pointer-events: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n  z-index: 1;\n}\n.ag-resizer.ag-resizer-topLeft {\n  top: 0;\n  left: 0;\n  height: 5px;\n  width: 5px;\n  cursor: nwse-resize;\n}\n.ag-resizer.ag-resizer-top {\n  top: 0;\n  left: 5px;\n  right: 5px;\n  height: 5px;\n  cursor: ns-resize;\n}\n.ag-resizer.ag-resizer-topRight {\n  top: 0;\n  right: 0;\n  height: 5px;\n  width: 5px;\n  cursor: nesw-resize;\n}\n.ag-resizer.ag-resizer-right {\n  top: 5px;\n  right: 0;\n  bottom: 5px;\n  width: 5px;\n  cursor: ew-resize;\n}\n.ag-resizer.ag-resizer-bottomRight {\n  bottom: 0;\n  right: 0;\n  height: 5px;\n  width: 5px;\n  cursor: nwse-resize;\n}\n.ag-resizer.ag-resizer-bottom {\n  bottom: 0;\n  left: 5px;\n  right: 5px;\n  height: 5px;\n  cursor: ns-resize;\n}\n.ag-resizer.ag-resizer-bottomLeft {\n  bottom: 0;\n  left: 0;\n  height: 5px;\n  width: 5px;\n  cursor: nesw-resize;\n}\n.ag-resizer.ag-resizer-left {\n  left: 0;\n  top: 5px;\n  bottom: 5px;\n  width: 5px;\n  cursor: ew-resize;\n}\n\n/**\n ****************************\n * Tooltip\n ****************************\n*/\n.ag-tooltip {\n  position: absolute;\n  pointer-events: none;\n  z-index: 99999;\n}\n\n.ag-tooltip-custom {\n  position: absolute;\n  pointer-events: none;\n  z-index: 99999;\n}\n\n/**\n ****************************\n * Animations\n ****************************\n*/\n.ag-value-slide-out {\n  margin-right: 5px;\n  opacity: 1;\n  -webkit-transition: opacity 3s, margin-right 3s;\n  transition: opacity 3s, margin-right 3s;\n  -webkit-transition-timing-function: linear;\n          transition-timing-function: linear;\n}\n\n.ag-value-slide-out-end {\n  margin-right: 10px;\n  opacity: 0;\n}\n\n.ag-opacity-zero {\n  opacity: 0 !important;\n}\n\n/**\n ****************************\n * Menu\n ****************************\n*/\n.ag-menu {\n  max-height: 100%;\n  overflow-y: auto;\n  position: absolute;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n\n.ag-menu-column-select-wrapper {\n  height: 265px;\n  overflow: auto;\n}\n.ag-menu-column-select-wrapper .ag-column-select {\n  height: 100%;\n}\n\n.ag-menu-list {\n  display: table;\n  width: 100%;\n}\n\n.ag-menu-option, .ag-menu-separator {\n  display: table-row;\n}\n\n.ag-menu-option-part, .ag-menu-separator-part {\n  display: table-cell;\n  vertical-align: middle;\n}\n\n.ag-menu-option-text {\n  white-space: nowrap;\n}\n\n.ag-compact-menu-option {\n  width: 100%;\n  display: -webkit-box;\n  display: flex;\n  flex-wrap: nowrap;\n}\n\n.ag-compact-menu-option-text {\n  white-space: nowrap;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n/**\n ****************************\n * Rich Select\n ****************************\n*/\n.ag-rich-select {\n  cursor: default;\n  outline: none;\n}\n\n.ag-rich-select-value {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-rich-select-value-icon {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  -webkit-box-ordinal-group: 2;\n          order: 1;\n}\n.ag-ltr .ag-rich-select-value-icon {\n  text-align: right;\n}\n.ag-rtl .ag-rich-select-value-icon {\n  text-align: left;\n}\n\n.ag-rich-select-list {\n  position: relative;\n}\n\n.ag-rich-select-virtual-list-item {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-rich-select-row {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  -webkit-box-align: center;\n          align-items: center;\n  white-space: nowrap;\n}\n\n/**\n ****************************\n * Pagination\n ****************************\n*/\n.ag-paging-panel {\n  -webkit-box-align: center;\n          align-items: center;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-pack: end;\n          justify-content: flex-end;\n}\n\n.ag-paging-page-summary-panel {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-paging-button {\n  position: relative;\n}\n\n.ag-disabled .ag-paging-page-summary-panel {\n  pointer-events: none;\n}\n\n/**\n ****************************\n * Tool Panel\n ****************************\n*/\n.ag-tool-panel-wrapper {\n  display: -webkit-box;\n  display: flex;\n  overflow-y: auto;\n  overflow-x: hidden;\n  cursor: default;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n\n.ag-column-select-column,\n.ag-column-select-column-group,\n.ag-select-agg-func-item {\n  position: relative;\n  -webkit-box-align: center;\n          align-items: center;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n  flex-wrap: nowrap;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  height: 100%;\n}\n.ag-column-select-column > *,\n.ag-column-select-column-group > *,\n.ag-select-agg-func-item > * {\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-column-select-checkbox {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-tool-panel-horizontal-resize {\n  cursor: ew-resize;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  width: 5px;\n  z-index: 1;\n}\n\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\n  right: -3px;\n}\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\n  left: -3px;\n}\n\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\n  left: -3px;\n}\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\n  right: -3px;\n}\n\n.ag-details-row {\n  width: 100%;\n}\n\n.ag-details-row-fixed-height {\n  height: 100%;\n}\n\n.ag-details-grid {\n  width: 100%;\n}\n\n.ag-details-grid-fixed-height {\n  height: 100%;\n}\n\n.ag-header-group-cell {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  height: 100%;\n  position: absolute;\n}\n\n.ag-cell-label-container {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-pack: justify;\n          justify-content: space-between;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: reverse;\n          flex-direction: row-reverse;\n  -webkit-box-align: center;\n          align-items: center;\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n}\n\n.ag-right-aligned-header .ag-cell-label-container {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n}\n\n/**\n ****************************\n * Side Bar\n ****************************\n*/\n.ag-side-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: reverse;\n          flex-direction: row-reverse;\n}\n\n.ag-side-bar-left {\n  -webkit-box-ordinal-group: 0;\n          order: -1;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n}\n\n.ag-side-button-button {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n          justify-content: center;\n  flex-wrap: nowrap;\n  white-space: nowrap;\n  outline: none;\n  cursor: pointer;\n}\n\n.ag-side-button-label {\n  -webkit-writing-mode: vertical-lr;\n          writing-mode: vertical-lr;\n}\n\n/**\n ****************************\n * Status Bar\n ****************************\n*/\n.ag-status-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-pack: justify;\n          justify-content: space-between;\n  overflow: hidden;\n}\n\n.ag-status-panel {\n  display: -webkit-inline-box;\n  display: inline-flex;\n}\n\n.ag-status-name-value {\n  white-space: nowrap;\n}\n\n.ag-status-bar-left {\n  display: -webkit-inline-box;\n  display: inline-flex;\n}\n\n.ag-status-bar-center {\n  display: -webkit-inline-box;\n  display: inline-flex;\n}\n\n.ag-status-bar-right {\n  display: -webkit-inline-box;\n  display: inline-flex;\n}\n\n/**\n ****************************\n * Widgets\n ****************************\n*/\n.ag-icon {\n  display: block;\n  speak: none;\n}\n\n.ag-group {\n  position: relative;\n  width: 100%;\n}\n\n.ag-group-title-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-group-title {\n  display: block;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  min-width: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n\n.ag-group-title-bar .ag-group-title {\n  cursor: default;\n}\n\n.ag-group-toolbar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-group-container {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-disabled .ag-group-container {\n  pointer-events: none;\n}\n\n.ag-group-container-horizontal {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n  flex-wrap: wrap;\n}\n\n.ag-group-container-vertical {\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n}\n\n.ag-column-group-icons {\n  display: block;\n}\n.ag-column-group-icons > * {\n  cursor: pointer;\n}\n\n.ag-group-item-alignment-stretch .ag-group-item {\n  -webkit-box-align: stretch;\n          align-items: stretch;\n}\n\n.ag-group-item-alignment-start .ag-group-item {\n  -webkit-box-align: start;\n          align-items: flex-start;\n}\n\n.ag-group-item-alignment-end .ag-group-item {\n  -webkit-box-align: end;\n          align-items: flex-end;\n}\n\n.ag-toggle-button-icon {\n  -webkit-transition: right 0.3s;\n  transition: right 0.3s;\n  position: absolute;\n  top: -1px;\n}\n\n.ag-input-field, .ag-select {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-input-field-input {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  width: 100%;\n  min-width: 0;\n}\n\n.ag-floating-filter-input .ag-input-field-input[type=date] {\n  width: 1px;\n}\n\n.ag-range-field {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-angle-select {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-angle-select-wrapper {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-angle-select-parent-circle {\n  display: block;\n  position: relative;\n}\n\n.ag-angle-select-child-circle {\n  position: absolute;\n}\n\n.ag-slider-wrapper {\n  display: -webkit-box;\n  display: flex;\n}\n.ag-slider-wrapper .ag-input-field {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-picker-field-display {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n}\n\n.ag-picker-field {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n\n.ag-picker-field-icon {\n  display: -webkit-box;\n  display: flex;\n  border: 0;\n  padding: 0;\n  margin: 0;\n  cursor: pointer;\n}\n\n.ag-picker-field-wrapper {\n  overflow: hidden;\n}\n\n.ag-label-align-right .ag-label {\n  -webkit-box-ordinal-group: 2;\n          order: 1;\n}\n.ag-label-align-right > * {\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-label-align-top {\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  -webkit-box-align: start;\n          align-items: flex-start;\n}\n.ag-label-align-top > * {\n  align-self: stretch;\n}\n\n.ag-color-panel {\n  width: 100%;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  text-align: center;\n}\n\n.ag-spectrum-color {\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  position: relative;\n  overflow: hidden;\n  cursor: default;\n}\n\n.ag-spectrum-fill {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n\n.ag-spectrum-val {\n  cursor: pointer;\n}\n\n.ag-spectrum-dragger {\n  position: absolute;\n  pointer-events: none;\n  cursor: pointer;\n}\n\n.ag-spectrum-hue {\n  cursor: default;\n  background: -webkit-gradient(linear, right top, left top, color-stop(3%, #ff0000), color-stop(17%, #ffff00), color-stop(33%, #00ff00), color-stop(50%, #00ffff), color-stop(67%, #0000ff), color-stop(83%, #ff00ff), to(#ff0000));\n  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.ag-spectrum-alpha {\n  cursor: default;\n}\n\n.ag-spectrum-hue-background {\n  width: 100%;\n  height: 100%;\n}\n\n.ag-spectrum-alpha-background {\n  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0)), to(rgb(0, 0, 0)));\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\n  width: 100%;\n  height: 100%;\n}\n\n.ag-spectrum-tool {\n  cursor: pointer;\n}\n\n.ag-spectrum-slider {\n  position: absolute;\n  pointer-events: none;\n}\n\n.ag-recent-colors {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-recent-color {\n  cursor: pointer;\n}\n\n.ag-ltr .ag-column-select-indent-1 {\n  padding-left: 20px;\n}\n.ag-rtl .ag-column-select-indent-1 {\n  padding-right: 20px;\n}\n\n.ag-ltr .ag-row-group-indent-1 {\n  padding-left: 20px;\n}\n.ag-rtl .ag-row-group-indent-1 {\n  padding-right: 20px;\n}\n\n.ag-ltr .ag-column-select-indent-2 {\n  padding-left: 40px;\n}\n.ag-rtl .ag-column-select-indent-2 {\n  padding-right: 40px;\n}\n\n.ag-ltr .ag-row-group-indent-2 {\n  padding-left: 40px;\n}\n.ag-rtl .ag-row-group-indent-2 {\n  padding-right: 40px;\n}\n\n.ag-ltr .ag-column-select-indent-3 {\n  padding-left: 60px;\n}\n.ag-rtl .ag-column-select-indent-3 {\n  padding-right: 60px;\n}\n\n.ag-ltr .ag-row-group-indent-3 {\n  padding-left: 60px;\n}\n.ag-rtl .ag-row-group-indent-3 {\n  padding-right: 60px;\n}\n\n.ag-ltr .ag-column-select-indent-4 {\n  padding-left: 80px;\n}\n.ag-rtl .ag-column-select-indent-4 {\n  padding-right: 80px;\n}\n\n.ag-ltr .ag-row-group-indent-4 {\n  padding-left: 80px;\n}\n.ag-rtl .ag-row-group-indent-4 {\n  padding-right: 80px;\n}\n\n.ag-ltr .ag-column-select-indent-5 {\n  padding-left: 100px;\n}\n.ag-rtl .ag-column-select-indent-5 {\n  padding-right: 100px;\n}\n\n.ag-ltr .ag-row-group-indent-5 {\n  padding-left: 100px;\n}\n.ag-rtl .ag-row-group-indent-5 {\n  padding-right: 100px;\n}\n\n.ag-ltr .ag-column-select-indent-6 {\n  padding-left: 120px;\n}\n.ag-rtl .ag-column-select-indent-6 {\n  padding-right: 120px;\n}\n\n.ag-ltr .ag-row-group-indent-6 {\n  padding-left: 120px;\n}\n.ag-rtl .ag-row-group-indent-6 {\n  padding-right: 120px;\n}\n\n.ag-ltr .ag-column-select-indent-7 {\n  padding-left: 140px;\n}\n.ag-rtl .ag-column-select-indent-7 {\n  padding-right: 140px;\n}\n\n.ag-ltr .ag-row-group-indent-7 {\n  padding-left: 140px;\n}\n.ag-rtl .ag-row-group-indent-7 {\n  padding-right: 140px;\n}\n\n.ag-ltr .ag-column-select-indent-8 {\n  padding-left: 160px;\n}\n.ag-rtl .ag-column-select-indent-8 {\n  padding-right: 160px;\n}\n\n.ag-ltr .ag-row-group-indent-8 {\n  padding-left: 160px;\n}\n.ag-rtl .ag-row-group-indent-8 {\n  padding-right: 160px;\n}\n\n.ag-ltr .ag-column-select-indent-9 {\n  padding-left: 180px;\n}\n.ag-rtl .ag-column-select-indent-9 {\n  padding-right: 180px;\n}\n\n.ag-ltr .ag-row-group-indent-9 {\n  padding-left: 180px;\n}\n.ag-rtl .ag-row-group-indent-9 {\n  padding-right: 180px;\n}\n\n.ag-ltr .ag-column-select-indent-10 {\n  padding-left: 200px;\n}\n.ag-rtl .ag-column-select-indent-10 {\n  padding-right: 200px;\n}\n\n.ag-ltr .ag-row-group-indent-10 {\n  padding-left: 200px;\n}\n.ag-rtl .ag-row-group-indent-10 {\n  padding-right: 200px;\n}\n\n.ag-ltr .ag-column-select-indent-11 {\n  padding-left: 220px;\n}\n.ag-rtl .ag-column-select-indent-11 {\n  padding-right: 220px;\n}\n\n.ag-ltr .ag-row-group-indent-11 {\n  padding-left: 220px;\n}\n.ag-rtl .ag-row-group-indent-11 {\n  padding-right: 220px;\n}\n\n.ag-ltr .ag-column-select-indent-12 {\n  padding-left: 240px;\n}\n.ag-rtl .ag-column-select-indent-12 {\n  padding-right: 240px;\n}\n\n.ag-ltr .ag-row-group-indent-12 {\n  padding-left: 240px;\n}\n.ag-rtl .ag-row-group-indent-12 {\n  padding-right: 240px;\n}\n\n.ag-ltr .ag-column-select-indent-13 {\n  padding-left: 260px;\n}\n.ag-rtl .ag-column-select-indent-13 {\n  padding-right: 260px;\n}\n\n.ag-ltr .ag-row-group-indent-13 {\n  padding-left: 260px;\n}\n.ag-rtl .ag-row-group-indent-13 {\n  padding-right: 260px;\n}\n\n.ag-ltr .ag-column-select-indent-14 {\n  padding-left: 280px;\n}\n.ag-rtl .ag-column-select-indent-14 {\n  padding-right: 280px;\n}\n\n.ag-ltr .ag-row-group-indent-14 {\n  padding-left: 280px;\n}\n.ag-rtl .ag-row-group-indent-14 {\n  padding-right: 280px;\n}\n\n.ag-ltr .ag-column-select-indent-15 {\n  padding-left: 300px;\n}\n.ag-rtl .ag-column-select-indent-15 {\n  padding-right: 300px;\n}\n\n.ag-ltr .ag-row-group-indent-15 {\n  padding-left: 300px;\n}\n.ag-rtl .ag-row-group-indent-15 {\n  padding-right: 300px;\n}\n\n.ag-ltr .ag-column-select-indent-16 {\n  padding-left: 320px;\n}\n.ag-rtl .ag-column-select-indent-16 {\n  padding-right: 320px;\n}\n\n.ag-ltr .ag-row-group-indent-16 {\n  padding-left: 320px;\n}\n.ag-rtl .ag-row-group-indent-16 {\n  padding-right: 320px;\n}\n\n.ag-ltr .ag-column-select-indent-17 {\n  padding-left: 340px;\n}\n.ag-rtl .ag-column-select-indent-17 {\n  padding-right: 340px;\n}\n\n.ag-ltr .ag-row-group-indent-17 {\n  padding-left: 340px;\n}\n.ag-rtl .ag-row-group-indent-17 {\n  padding-right: 340px;\n}\n\n.ag-ltr .ag-column-select-indent-18 {\n  padding-left: 360px;\n}\n.ag-rtl .ag-column-select-indent-18 {\n  padding-right: 360px;\n}\n\n.ag-ltr .ag-row-group-indent-18 {\n  padding-left: 360px;\n}\n.ag-rtl .ag-row-group-indent-18 {\n  padding-right: 360px;\n}\n\n.ag-ltr .ag-column-select-indent-19 {\n  padding-left: 380px;\n}\n.ag-rtl .ag-column-select-indent-19 {\n  padding-right: 380px;\n}\n\n.ag-ltr .ag-row-group-indent-19 {\n  padding-left: 380px;\n}\n.ag-rtl .ag-row-group-indent-19 {\n  padding-right: 380px;\n}\n\n.ag-ltr .ag-column-select-indent-20 {\n  padding-left: 400px;\n}\n.ag-rtl .ag-column-select-indent-20 {\n  padding-right: 400px;\n}\n\n.ag-ltr .ag-row-group-indent-20 {\n  padding-left: 400px;\n}\n.ag-rtl .ag-row-group-indent-20 {\n  padding-right: 400px;\n}\n\n.ag-ltr .ag-column-select-indent-21 {\n  padding-left: 420px;\n}\n.ag-rtl .ag-column-select-indent-21 {\n  padding-right: 420px;\n}\n\n.ag-ltr .ag-row-group-indent-21 {\n  padding-left: 420px;\n}\n.ag-rtl .ag-row-group-indent-21 {\n  padding-right: 420px;\n}\n\n.ag-ltr .ag-column-select-indent-22 {\n  padding-left: 440px;\n}\n.ag-rtl .ag-column-select-indent-22 {\n  padding-right: 440px;\n}\n\n.ag-ltr .ag-row-group-indent-22 {\n  padding-left: 440px;\n}\n.ag-rtl .ag-row-group-indent-22 {\n  padding-right: 440px;\n}\n\n.ag-ltr .ag-column-select-indent-23 {\n  padding-left: 460px;\n}\n.ag-rtl .ag-column-select-indent-23 {\n  padding-right: 460px;\n}\n\n.ag-ltr .ag-row-group-indent-23 {\n  padding-left: 460px;\n}\n.ag-rtl .ag-row-group-indent-23 {\n  padding-right: 460px;\n}\n\n.ag-ltr .ag-column-select-indent-24 {\n  padding-left: 480px;\n}\n.ag-rtl .ag-column-select-indent-24 {\n  padding-right: 480px;\n}\n\n.ag-ltr .ag-row-group-indent-24 {\n  padding-left: 480px;\n}\n.ag-rtl .ag-row-group-indent-24 {\n  padding-right: 480px;\n}\n\n.ag-ltr .ag-column-select-indent-25 {\n  padding-left: 500px;\n}\n.ag-rtl .ag-column-select-indent-25 {\n  padding-right: 500px;\n}\n\n.ag-ltr .ag-row-group-indent-25 {\n  padding-left: 500px;\n}\n.ag-rtl .ag-row-group-indent-25 {\n  padding-right: 500px;\n}\n\n.ag-ltr .ag-column-select-indent-26 {\n  padding-left: 520px;\n}\n.ag-rtl .ag-column-select-indent-26 {\n  padding-right: 520px;\n}\n\n.ag-ltr .ag-row-group-indent-26 {\n  padding-left: 520px;\n}\n.ag-rtl .ag-row-group-indent-26 {\n  padding-right: 520px;\n}\n\n.ag-ltr .ag-column-select-indent-27 {\n  padding-left: 540px;\n}\n.ag-rtl .ag-column-select-indent-27 {\n  padding-right: 540px;\n}\n\n.ag-ltr .ag-row-group-indent-27 {\n  padding-left: 540px;\n}\n.ag-rtl .ag-row-group-indent-27 {\n  padding-right: 540px;\n}\n\n.ag-ltr .ag-column-select-indent-28 {\n  padding-left: 560px;\n}\n.ag-rtl .ag-column-select-indent-28 {\n  padding-right: 560px;\n}\n\n.ag-ltr .ag-row-group-indent-28 {\n  padding-left: 560px;\n}\n.ag-rtl .ag-row-group-indent-28 {\n  padding-right: 560px;\n}\n\n.ag-ltr .ag-column-select-indent-29 {\n  padding-left: 580px;\n}\n.ag-rtl .ag-column-select-indent-29 {\n  padding-right: 580px;\n}\n\n.ag-ltr .ag-row-group-indent-29 {\n  padding-left: 580px;\n}\n.ag-rtl .ag-row-group-indent-29 {\n  padding-right: 580px;\n}\n\n.ag-ltr .ag-column-select-indent-30 {\n  padding-left: 600px;\n}\n.ag-rtl .ag-column-select-indent-30 {\n  padding-right: 600px;\n}\n\n.ag-ltr .ag-row-group-indent-30 {\n  padding-left: 600px;\n}\n.ag-rtl .ag-row-group-indent-30 {\n  padding-right: 600px;\n}\n\n.ag-ltr .ag-column-select-indent-31 {\n  padding-left: 620px;\n}\n.ag-rtl .ag-column-select-indent-31 {\n  padding-right: 620px;\n}\n\n.ag-ltr .ag-row-group-indent-31 {\n  padding-left: 620px;\n}\n.ag-rtl .ag-row-group-indent-31 {\n  padding-right: 620px;\n}\n\n.ag-ltr .ag-column-select-indent-32 {\n  padding-left: 640px;\n}\n.ag-rtl .ag-column-select-indent-32 {\n  padding-right: 640px;\n}\n\n.ag-ltr .ag-row-group-indent-32 {\n  padding-left: 640px;\n}\n.ag-rtl .ag-row-group-indent-32 {\n  padding-right: 640px;\n}\n\n.ag-ltr .ag-column-select-indent-33 {\n  padding-left: 660px;\n}\n.ag-rtl .ag-column-select-indent-33 {\n  padding-right: 660px;\n}\n\n.ag-ltr .ag-row-group-indent-33 {\n  padding-left: 660px;\n}\n.ag-rtl .ag-row-group-indent-33 {\n  padding-right: 660px;\n}\n\n.ag-ltr .ag-column-select-indent-34 {\n  padding-left: 680px;\n}\n.ag-rtl .ag-column-select-indent-34 {\n  padding-right: 680px;\n}\n\n.ag-ltr .ag-row-group-indent-34 {\n  padding-left: 680px;\n}\n.ag-rtl .ag-row-group-indent-34 {\n  padding-right: 680px;\n}\n\n.ag-ltr .ag-column-select-indent-35 {\n  padding-left: 700px;\n}\n.ag-rtl .ag-column-select-indent-35 {\n  padding-right: 700px;\n}\n\n.ag-ltr .ag-row-group-indent-35 {\n  padding-left: 700px;\n}\n.ag-rtl .ag-row-group-indent-35 {\n  padding-right: 700px;\n}\n\n.ag-ltr .ag-column-select-indent-36 {\n  padding-left: 720px;\n}\n.ag-rtl .ag-column-select-indent-36 {\n  padding-right: 720px;\n}\n\n.ag-ltr .ag-row-group-indent-36 {\n  padding-left: 720px;\n}\n.ag-rtl .ag-row-group-indent-36 {\n  padding-right: 720px;\n}\n\n.ag-ltr .ag-column-select-indent-37 {\n  padding-left: 740px;\n}\n.ag-rtl .ag-column-select-indent-37 {\n  padding-right: 740px;\n}\n\n.ag-ltr .ag-row-group-indent-37 {\n  padding-left: 740px;\n}\n.ag-rtl .ag-row-group-indent-37 {\n  padding-right: 740px;\n}\n\n.ag-ltr .ag-column-select-indent-38 {\n  padding-left: 760px;\n}\n.ag-rtl .ag-column-select-indent-38 {\n  padding-right: 760px;\n}\n\n.ag-ltr .ag-row-group-indent-38 {\n  padding-left: 760px;\n}\n.ag-rtl .ag-row-group-indent-38 {\n  padding-right: 760px;\n}\n\n.ag-ltr .ag-column-select-indent-39 {\n  padding-left: 780px;\n}\n.ag-rtl .ag-column-select-indent-39 {\n  padding-right: 780px;\n}\n\n.ag-ltr .ag-row-group-indent-39 {\n  padding-left: 780px;\n}\n.ag-rtl .ag-row-group-indent-39 {\n  padding-right: 780px;\n}\n\n.ag-ltr .ag-column-select-indent-40 {\n  padding-left: 800px;\n}\n.ag-rtl .ag-column-select-indent-40 {\n  padding-right: 800px;\n}\n\n.ag-ltr .ag-row-group-indent-40 {\n  padding-left: 800px;\n}\n.ag-rtl .ag-row-group-indent-40 {\n  padding-right: 800px;\n}\n\n.ag-ltr .ag-column-select-indent-41 {\n  padding-left: 820px;\n}\n.ag-rtl .ag-column-select-indent-41 {\n  padding-right: 820px;\n}\n\n.ag-ltr .ag-row-group-indent-41 {\n  padding-left: 820px;\n}\n.ag-rtl .ag-row-group-indent-41 {\n  padding-right: 820px;\n}\n\n.ag-ltr .ag-column-select-indent-42 {\n  padding-left: 840px;\n}\n.ag-rtl .ag-column-select-indent-42 {\n  padding-right: 840px;\n}\n\n.ag-ltr .ag-row-group-indent-42 {\n  padding-left: 840px;\n}\n.ag-rtl .ag-row-group-indent-42 {\n  padding-right: 840px;\n}\n\n.ag-ltr .ag-column-select-indent-43 {\n  padding-left: 860px;\n}\n.ag-rtl .ag-column-select-indent-43 {\n  padding-right: 860px;\n}\n\n.ag-ltr .ag-row-group-indent-43 {\n  padding-left: 860px;\n}\n.ag-rtl .ag-row-group-indent-43 {\n  padding-right: 860px;\n}\n\n.ag-ltr .ag-column-select-indent-44 {\n  padding-left: 880px;\n}\n.ag-rtl .ag-column-select-indent-44 {\n  padding-right: 880px;\n}\n\n.ag-ltr .ag-row-group-indent-44 {\n  padding-left: 880px;\n}\n.ag-rtl .ag-row-group-indent-44 {\n  padding-right: 880px;\n}\n\n.ag-ltr .ag-column-select-indent-45 {\n  padding-left: 900px;\n}\n.ag-rtl .ag-column-select-indent-45 {\n  padding-right: 900px;\n}\n\n.ag-ltr .ag-row-group-indent-45 {\n  padding-left: 900px;\n}\n.ag-rtl .ag-row-group-indent-45 {\n  padding-right: 900px;\n}\n\n.ag-ltr .ag-column-select-indent-46 {\n  padding-left: 920px;\n}\n.ag-rtl .ag-column-select-indent-46 {\n  padding-right: 920px;\n}\n\n.ag-ltr .ag-row-group-indent-46 {\n  padding-left: 920px;\n}\n.ag-rtl .ag-row-group-indent-46 {\n  padding-right: 920px;\n}\n\n.ag-ltr .ag-column-select-indent-47 {\n  padding-left: 940px;\n}\n.ag-rtl .ag-column-select-indent-47 {\n  padding-right: 940px;\n}\n\n.ag-ltr .ag-row-group-indent-47 {\n  padding-left: 940px;\n}\n.ag-rtl .ag-row-group-indent-47 {\n  padding-right: 940px;\n}\n\n.ag-ltr .ag-column-select-indent-48 {\n  padding-left: 960px;\n}\n.ag-rtl .ag-column-select-indent-48 {\n  padding-right: 960px;\n}\n\n.ag-ltr .ag-row-group-indent-48 {\n  padding-left: 960px;\n}\n.ag-rtl .ag-row-group-indent-48 {\n  padding-right: 960px;\n}\n\n.ag-ltr .ag-column-select-indent-49 {\n  padding-left: 980px;\n}\n.ag-rtl .ag-column-select-indent-49 {\n  padding-right: 980px;\n}\n\n.ag-ltr .ag-row-group-indent-49 {\n  padding-left: 980px;\n}\n.ag-rtl .ag-row-group-indent-49 {\n  padding-right: 980px;\n}\n\n.ag-ltr .ag-column-select-indent-50 {\n  padding-left: 1000px;\n}\n.ag-rtl .ag-column-select-indent-50 {\n  padding-right: 1000px;\n}\n\n.ag-ltr .ag-row-group-indent-50 {\n  padding-left: 1000px;\n}\n.ag-rtl .ag-row-group-indent-50 {\n  padding-right: 1000px;\n}\n\n.ag-ltr .ag-column-select-indent-51 {\n  padding-left: 1020px;\n}\n.ag-rtl .ag-column-select-indent-51 {\n  padding-right: 1020px;\n}\n\n.ag-ltr .ag-row-group-indent-51 {\n  padding-left: 1020px;\n}\n.ag-rtl .ag-row-group-indent-51 {\n  padding-right: 1020px;\n}\n\n.ag-ltr .ag-column-select-indent-52 {\n  padding-left: 1040px;\n}\n.ag-rtl .ag-column-select-indent-52 {\n  padding-right: 1040px;\n}\n\n.ag-ltr .ag-row-group-indent-52 {\n  padding-left: 1040px;\n}\n.ag-rtl .ag-row-group-indent-52 {\n  padding-right: 1040px;\n}\n\n.ag-ltr .ag-column-select-indent-53 {\n  padding-left: 1060px;\n}\n.ag-rtl .ag-column-select-indent-53 {\n  padding-right: 1060px;\n}\n\n.ag-ltr .ag-row-group-indent-53 {\n  padding-left: 1060px;\n}\n.ag-rtl .ag-row-group-indent-53 {\n  padding-right: 1060px;\n}\n\n.ag-ltr .ag-column-select-indent-54 {\n  padding-left: 1080px;\n}\n.ag-rtl .ag-column-select-indent-54 {\n  padding-right: 1080px;\n}\n\n.ag-ltr .ag-row-group-indent-54 {\n  padding-left: 1080px;\n}\n.ag-rtl .ag-row-group-indent-54 {\n  padding-right: 1080px;\n}\n\n.ag-ltr .ag-column-select-indent-55 {\n  padding-left: 1100px;\n}\n.ag-rtl .ag-column-select-indent-55 {\n  padding-right: 1100px;\n}\n\n.ag-ltr .ag-row-group-indent-55 {\n  padding-left: 1100px;\n}\n.ag-rtl .ag-row-group-indent-55 {\n  padding-right: 1100px;\n}\n\n.ag-ltr .ag-column-select-indent-56 {\n  padding-left: 1120px;\n}\n.ag-rtl .ag-column-select-indent-56 {\n  padding-right: 1120px;\n}\n\n.ag-ltr .ag-row-group-indent-56 {\n  padding-left: 1120px;\n}\n.ag-rtl .ag-row-group-indent-56 {\n  padding-right: 1120px;\n}\n\n.ag-ltr .ag-column-select-indent-57 {\n  padding-left: 1140px;\n}\n.ag-rtl .ag-column-select-indent-57 {\n  padding-right: 1140px;\n}\n\n.ag-ltr .ag-row-group-indent-57 {\n  padding-left: 1140px;\n}\n.ag-rtl .ag-row-group-indent-57 {\n  padding-right: 1140px;\n}\n\n.ag-ltr .ag-column-select-indent-58 {\n  padding-left: 1160px;\n}\n.ag-rtl .ag-column-select-indent-58 {\n  padding-right: 1160px;\n}\n\n.ag-ltr .ag-row-group-indent-58 {\n  padding-left: 1160px;\n}\n.ag-rtl .ag-row-group-indent-58 {\n  padding-right: 1160px;\n}\n\n.ag-ltr .ag-column-select-indent-59 {\n  padding-left: 1180px;\n}\n.ag-rtl .ag-column-select-indent-59 {\n  padding-right: 1180px;\n}\n\n.ag-ltr .ag-row-group-indent-59 {\n  padding-left: 1180px;\n}\n.ag-rtl .ag-row-group-indent-59 {\n  padding-right: 1180px;\n}\n\n.ag-ltr .ag-column-select-indent-60 {\n  padding-left: 1200px;\n}\n.ag-rtl .ag-column-select-indent-60 {\n  padding-right: 1200px;\n}\n\n.ag-ltr .ag-row-group-indent-60 {\n  padding-left: 1200px;\n}\n.ag-rtl .ag-row-group-indent-60 {\n  padding-right: 1200px;\n}\n\n.ag-ltr .ag-column-select-indent-61 {\n  padding-left: 1220px;\n}\n.ag-rtl .ag-column-select-indent-61 {\n  padding-right: 1220px;\n}\n\n.ag-ltr .ag-row-group-indent-61 {\n  padding-left: 1220px;\n}\n.ag-rtl .ag-row-group-indent-61 {\n  padding-right: 1220px;\n}\n\n.ag-ltr .ag-column-select-indent-62 {\n  padding-left: 1240px;\n}\n.ag-rtl .ag-column-select-indent-62 {\n  padding-right: 1240px;\n}\n\n.ag-ltr .ag-row-group-indent-62 {\n  padding-left: 1240px;\n}\n.ag-rtl .ag-row-group-indent-62 {\n  padding-right: 1240px;\n}\n\n.ag-ltr .ag-column-select-indent-63 {\n  padding-left: 1260px;\n}\n.ag-rtl .ag-column-select-indent-63 {\n  padding-right: 1260px;\n}\n\n.ag-ltr .ag-row-group-indent-63 {\n  padding-left: 1260px;\n}\n.ag-rtl .ag-row-group-indent-63 {\n  padding-right: 1260px;\n}\n\n.ag-ltr .ag-column-select-indent-64 {\n  padding-left: 1280px;\n}\n.ag-rtl .ag-column-select-indent-64 {\n  padding-right: 1280px;\n}\n\n.ag-ltr .ag-row-group-indent-64 {\n  padding-left: 1280px;\n}\n.ag-rtl .ag-row-group-indent-64 {\n  padding-right: 1280px;\n}\n\n.ag-ltr .ag-column-select-indent-65 {\n  padding-left: 1300px;\n}\n.ag-rtl .ag-column-select-indent-65 {\n  padding-right: 1300px;\n}\n\n.ag-ltr .ag-row-group-indent-65 {\n  padding-left: 1300px;\n}\n.ag-rtl .ag-row-group-indent-65 {\n  padding-right: 1300px;\n}\n\n.ag-ltr .ag-column-select-indent-66 {\n  padding-left: 1320px;\n}\n.ag-rtl .ag-column-select-indent-66 {\n  padding-right: 1320px;\n}\n\n.ag-ltr .ag-row-group-indent-66 {\n  padding-left: 1320px;\n}\n.ag-rtl .ag-row-group-indent-66 {\n  padding-right: 1320px;\n}\n\n.ag-ltr .ag-column-select-indent-67 {\n  padding-left: 1340px;\n}\n.ag-rtl .ag-column-select-indent-67 {\n  padding-right: 1340px;\n}\n\n.ag-ltr .ag-row-group-indent-67 {\n  padding-left: 1340px;\n}\n.ag-rtl .ag-row-group-indent-67 {\n  padding-right: 1340px;\n}\n\n.ag-ltr .ag-column-select-indent-68 {\n  padding-left: 1360px;\n}\n.ag-rtl .ag-column-select-indent-68 {\n  padding-right: 1360px;\n}\n\n.ag-ltr .ag-row-group-indent-68 {\n  padding-left: 1360px;\n}\n.ag-rtl .ag-row-group-indent-68 {\n  padding-right: 1360px;\n}\n\n.ag-ltr .ag-column-select-indent-69 {\n  padding-left: 1380px;\n}\n.ag-rtl .ag-column-select-indent-69 {\n  padding-right: 1380px;\n}\n\n.ag-ltr .ag-row-group-indent-69 {\n  padding-left: 1380px;\n}\n.ag-rtl .ag-row-group-indent-69 {\n  padding-right: 1380px;\n}\n\n.ag-ltr .ag-column-select-indent-70 {\n  padding-left: 1400px;\n}\n.ag-rtl .ag-column-select-indent-70 {\n  padding-right: 1400px;\n}\n\n.ag-ltr .ag-row-group-indent-70 {\n  padding-left: 1400px;\n}\n.ag-rtl .ag-row-group-indent-70 {\n  padding-right: 1400px;\n}\n\n.ag-ltr .ag-column-select-indent-71 {\n  padding-left: 1420px;\n}\n.ag-rtl .ag-column-select-indent-71 {\n  padding-right: 1420px;\n}\n\n.ag-ltr .ag-row-group-indent-71 {\n  padding-left: 1420px;\n}\n.ag-rtl .ag-row-group-indent-71 {\n  padding-right: 1420px;\n}\n\n.ag-ltr .ag-column-select-indent-72 {\n  padding-left: 1440px;\n}\n.ag-rtl .ag-column-select-indent-72 {\n  padding-right: 1440px;\n}\n\n.ag-ltr .ag-row-group-indent-72 {\n  padding-left: 1440px;\n}\n.ag-rtl .ag-row-group-indent-72 {\n  padding-right: 1440px;\n}\n\n.ag-ltr .ag-column-select-indent-73 {\n  padding-left: 1460px;\n}\n.ag-rtl .ag-column-select-indent-73 {\n  padding-right: 1460px;\n}\n\n.ag-ltr .ag-row-group-indent-73 {\n  padding-left: 1460px;\n}\n.ag-rtl .ag-row-group-indent-73 {\n  padding-right: 1460px;\n}\n\n.ag-ltr .ag-column-select-indent-74 {\n  padding-left: 1480px;\n}\n.ag-rtl .ag-column-select-indent-74 {\n  padding-right: 1480px;\n}\n\n.ag-ltr .ag-row-group-indent-74 {\n  padding-left: 1480px;\n}\n.ag-rtl .ag-row-group-indent-74 {\n  padding-right: 1480px;\n}\n\n.ag-ltr .ag-column-select-indent-75 {\n  padding-left: 1500px;\n}\n.ag-rtl .ag-column-select-indent-75 {\n  padding-right: 1500px;\n}\n\n.ag-ltr .ag-row-group-indent-75 {\n  padding-left: 1500px;\n}\n.ag-rtl .ag-row-group-indent-75 {\n  padding-right: 1500px;\n}\n\n.ag-ltr .ag-column-select-indent-76 {\n  padding-left: 1520px;\n}\n.ag-rtl .ag-column-select-indent-76 {\n  padding-right: 1520px;\n}\n\n.ag-ltr .ag-row-group-indent-76 {\n  padding-left: 1520px;\n}\n.ag-rtl .ag-row-group-indent-76 {\n  padding-right: 1520px;\n}\n\n.ag-ltr .ag-column-select-indent-77 {\n  padding-left: 1540px;\n}\n.ag-rtl .ag-column-select-indent-77 {\n  padding-right: 1540px;\n}\n\n.ag-ltr .ag-row-group-indent-77 {\n  padding-left: 1540px;\n}\n.ag-rtl .ag-row-group-indent-77 {\n  padding-right: 1540px;\n}\n\n.ag-ltr .ag-column-select-indent-78 {\n  padding-left: 1560px;\n}\n.ag-rtl .ag-column-select-indent-78 {\n  padding-right: 1560px;\n}\n\n.ag-ltr .ag-row-group-indent-78 {\n  padding-left: 1560px;\n}\n.ag-rtl .ag-row-group-indent-78 {\n  padding-right: 1560px;\n}\n\n.ag-ltr .ag-column-select-indent-79 {\n  padding-left: 1580px;\n}\n.ag-rtl .ag-column-select-indent-79 {\n  padding-right: 1580px;\n}\n\n.ag-ltr .ag-row-group-indent-79 {\n  padding-left: 1580px;\n}\n.ag-rtl .ag-row-group-indent-79 {\n  padding-right: 1580px;\n}\n\n.ag-ltr .ag-column-select-indent-80 {\n  padding-left: 1600px;\n}\n.ag-rtl .ag-column-select-indent-80 {\n  padding-right: 1600px;\n}\n\n.ag-ltr .ag-row-group-indent-80 {\n  padding-left: 1600px;\n}\n.ag-rtl .ag-row-group-indent-80 {\n  padding-right: 1600px;\n}\n\n.ag-ltr .ag-column-select-indent-81 {\n  padding-left: 1620px;\n}\n.ag-rtl .ag-column-select-indent-81 {\n  padding-right: 1620px;\n}\n\n.ag-ltr .ag-row-group-indent-81 {\n  padding-left: 1620px;\n}\n.ag-rtl .ag-row-group-indent-81 {\n  padding-right: 1620px;\n}\n\n.ag-ltr .ag-column-select-indent-82 {\n  padding-left: 1640px;\n}\n.ag-rtl .ag-column-select-indent-82 {\n  padding-right: 1640px;\n}\n\n.ag-ltr .ag-row-group-indent-82 {\n  padding-left: 1640px;\n}\n.ag-rtl .ag-row-group-indent-82 {\n  padding-right: 1640px;\n}\n\n.ag-ltr .ag-column-select-indent-83 {\n  padding-left: 1660px;\n}\n.ag-rtl .ag-column-select-indent-83 {\n  padding-right: 1660px;\n}\n\n.ag-ltr .ag-row-group-indent-83 {\n  padding-left: 1660px;\n}\n.ag-rtl .ag-row-group-indent-83 {\n  padding-right: 1660px;\n}\n\n.ag-ltr .ag-column-select-indent-84 {\n  padding-left: 1680px;\n}\n.ag-rtl .ag-column-select-indent-84 {\n  padding-right: 1680px;\n}\n\n.ag-ltr .ag-row-group-indent-84 {\n  padding-left: 1680px;\n}\n.ag-rtl .ag-row-group-indent-84 {\n  padding-right: 1680px;\n}\n\n.ag-ltr .ag-column-select-indent-85 {\n  padding-left: 1700px;\n}\n.ag-rtl .ag-column-select-indent-85 {\n  padding-right: 1700px;\n}\n\n.ag-ltr .ag-row-group-indent-85 {\n  padding-left: 1700px;\n}\n.ag-rtl .ag-row-group-indent-85 {\n  padding-right: 1700px;\n}\n\n.ag-ltr .ag-column-select-indent-86 {\n  padding-left: 1720px;\n}\n.ag-rtl .ag-column-select-indent-86 {\n  padding-right: 1720px;\n}\n\n.ag-ltr .ag-row-group-indent-86 {\n  padding-left: 1720px;\n}\n.ag-rtl .ag-row-group-indent-86 {\n  padding-right: 1720px;\n}\n\n.ag-ltr .ag-column-select-indent-87 {\n  padding-left: 1740px;\n}\n.ag-rtl .ag-column-select-indent-87 {\n  padding-right: 1740px;\n}\n\n.ag-ltr .ag-row-group-indent-87 {\n  padding-left: 1740px;\n}\n.ag-rtl .ag-row-group-indent-87 {\n  padding-right: 1740px;\n}\n\n.ag-ltr .ag-column-select-indent-88 {\n  padding-left: 1760px;\n}\n.ag-rtl .ag-column-select-indent-88 {\n  padding-right: 1760px;\n}\n\n.ag-ltr .ag-row-group-indent-88 {\n  padding-left: 1760px;\n}\n.ag-rtl .ag-row-group-indent-88 {\n  padding-right: 1760px;\n}\n\n.ag-ltr .ag-column-select-indent-89 {\n  padding-left: 1780px;\n}\n.ag-rtl .ag-column-select-indent-89 {\n  padding-right: 1780px;\n}\n\n.ag-ltr .ag-row-group-indent-89 {\n  padding-left: 1780px;\n}\n.ag-rtl .ag-row-group-indent-89 {\n  padding-right: 1780px;\n}\n\n.ag-ltr .ag-column-select-indent-90 {\n  padding-left: 1800px;\n}\n.ag-rtl .ag-column-select-indent-90 {\n  padding-right: 1800px;\n}\n\n.ag-ltr .ag-row-group-indent-90 {\n  padding-left: 1800px;\n}\n.ag-rtl .ag-row-group-indent-90 {\n  padding-right: 1800px;\n}\n\n.ag-ltr .ag-column-select-indent-91 {\n  padding-left: 1820px;\n}\n.ag-rtl .ag-column-select-indent-91 {\n  padding-right: 1820px;\n}\n\n.ag-ltr .ag-row-group-indent-91 {\n  padding-left: 1820px;\n}\n.ag-rtl .ag-row-group-indent-91 {\n  padding-right: 1820px;\n}\n\n.ag-ltr .ag-column-select-indent-92 {\n  padding-left: 1840px;\n}\n.ag-rtl .ag-column-select-indent-92 {\n  padding-right: 1840px;\n}\n\n.ag-ltr .ag-row-group-indent-92 {\n  padding-left: 1840px;\n}\n.ag-rtl .ag-row-group-indent-92 {\n  padding-right: 1840px;\n}\n\n.ag-ltr .ag-column-select-indent-93 {\n  padding-left: 1860px;\n}\n.ag-rtl .ag-column-select-indent-93 {\n  padding-right: 1860px;\n}\n\n.ag-ltr .ag-row-group-indent-93 {\n  padding-left: 1860px;\n}\n.ag-rtl .ag-row-group-indent-93 {\n  padding-right: 1860px;\n}\n\n.ag-ltr .ag-column-select-indent-94 {\n  padding-left: 1880px;\n}\n.ag-rtl .ag-column-select-indent-94 {\n  padding-right: 1880px;\n}\n\n.ag-ltr .ag-row-group-indent-94 {\n  padding-left: 1880px;\n}\n.ag-rtl .ag-row-group-indent-94 {\n  padding-right: 1880px;\n}\n\n.ag-ltr .ag-column-select-indent-95 {\n  padding-left: 1900px;\n}\n.ag-rtl .ag-column-select-indent-95 {\n  padding-right: 1900px;\n}\n\n.ag-ltr .ag-row-group-indent-95 {\n  padding-left: 1900px;\n}\n.ag-rtl .ag-row-group-indent-95 {\n  padding-right: 1900px;\n}\n\n.ag-ltr .ag-column-select-indent-96 {\n  padding-left: 1920px;\n}\n.ag-rtl .ag-column-select-indent-96 {\n  padding-right: 1920px;\n}\n\n.ag-ltr .ag-row-group-indent-96 {\n  padding-left: 1920px;\n}\n.ag-rtl .ag-row-group-indent-96 {\n  padding-right: 1920px;\n}\n\n.ag-ltr .ag-column-select-indent-97 {\n  padding-left: 1940px;\n}\n.ag-rtl .ag-column-select-indent-97 {\n  padding-right: 1940px;\n}\n\n.ag-ltr .ag-row-group-indent-97 {\n  padding-left: 1940px;\n}\n.ag-rtl .ag-row-group-indent-97 {\n  padding-right: 1940px;\n}\n\n.ag-ltr .ag-column-select-indent-98 {\n  padding-left: 1960px;\n}\n.ag-rtl .ag-column-select-indent-98 {\n  padding-right: 1960px;\n}\n\n.ag-ltr .ag-row-group-indent-98 {\n  padding-left: 1960px;\n}\n.ag-rtl .ag-row-group-indent-98 {\n  padding-right: 1960px;\n}\n\n.ag-ltr .ag-column-select-indent-99 {\n  padding-left: 1980px;\n}\n.ag-rtl .ag-column-select-indent-99 {\n  padding-right: 1980px;\n}\n\n.ag-ltr .ag-row-group-indent-99 {\n  padding-left: 1980px;\n}\n.ag-rtl .ag-row-group-indent-99 {\n  padding-right: 1980px;\n}\n\n.ag-ltr {\n  direction: ltr;\n}\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n          flex-direction: row;\n}\n\n.ag-rtl {\n  direction: rtl;\n}\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: reverse;\n          flex-direction: row-reverse;\n}\n.ag-rtl .ag-icon-contracted,\n.ag-rtl .ag-icon-tree-closed {\n  display: block;\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.ag-layout-print.ag-body-viewport {\n  -webkit-box-flex: 0;\n          flex: none;\n}\n.ag-layout-print.ag-root-wrapper {\n  display: -webkit-inline-box;\n  display: inline-flex;\n}\n.ag-layout-print .ag-center-cols-clipper {\n  min-width: 100%;\n}\n.ag-layout-print .ag-body-horizontal-scroll {\n  display: none;\n}\n.ag-layout-print.ag-force-vertical-scroll {\n  overflow-y: visible !important;\n}\n\n@media print {\n  .ag-root-wrapper.ag-layout-print,\n.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\n.ag-root-wrapper.ag-layout-print .ag-root,\n.ag-root-wrapper.ag-layout-print .ag-body-viewport,\n.ag-root-wrapper.ag-layout-print .ag-center-cols-container,\n.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\n.ag-root-wrapper.ag-layout-print .ag-center-cols-clipper,\n.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\n.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\n    height: auto !important;\n    overflow: hidden !important;\n    display: block !important;\n  }\n  .ag-root-wrapper.ag-layout-print .ag-row {\n    page-break-inside: avoid;\n  }\n}\n.ag-body .ag-body-viewport {\n  -webkit-overflow-scrolling: touch;\n}\n\n.ag-chart {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  overflow: hidden;\n  width: 100%;\n  height: 100%;\n}\n\n.ag-chart-components-wrapper {\n  position: relative;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.ag-chart-title-edit {\n  position: absolute;\n  display: none;\n  top: 0;\n  left: 0;\n  text-align: center;\n}\n\n.ag-chart-title-edit.currently-editing {\n  display: inline-block;\n}\n\n.ag-chart-canvas-wrapper {\n  position: relative;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  overflow: hidden;\n}\n\n.ag-charts-canvas {\n  display: block;\n}\n\n.ag-chart-menu {\n  position: absolute;\n  top: 10px;\n  width: 24px;\n  overflow: hidden;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n}\n.ag-ltr .ag-chart-menu {\n  right: 20px;\n}\n.ag-rtl .ag-chart-menu {\n  left: 20px;\n}\n\n.ag-chart-docked-container {\n  position: relative;\n  width: 0;\n  min-width: 0;\n  -webkit-transition: min-width 0.4s;\n  transition: min-width 0.4s;\n}\n\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\n  max-width: 0;\n  overflow: hidden;\n}\n\n.ag-chart-tabbed-menu {\n  width: 100%;\n  height: 100%;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  overflow: hidden;\n}\n\n.ag-chart-tabbed-menu-header {\n  -webkit-box-flex: 0;\n          flex: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n  cursor: default;\n}\n\n.ag-chart-tabbed-menu-body {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  -webkit-box-align: stretch;\n          align-items: stretch;\n  overflow: hidden;\n}\n\n.ag-chart-tab {\n  width: 100%;\n  overflow: hidden;\n  overflow-y: auto;\n}\n\n.ag-chart-settings {\n  overflow-x: hidden;\n}\n\n.ag-chart-settings-wrapper {\n  position: relative;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  width: 100%;\n  height: 100%;\n  display: -webkit-box;\n  display: flex;\n  overflow: hidden;\n}\n\n.ag-chart-settings-nav-bar {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  width: 100%;\n  height: 30px;\n  padding: 0 10px;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n\n.ag-chart-settings-card-selector {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  justify-content: space-around;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  height: 100%;\n  padding: 0 10px;\n}\n\n.ag-chart-settings-card-item {\n  cursor: pointer;\n  width: 10px;\n  height: 10px;\n  background-color: #000;\n  position: relative;\n}\n.ag-chart-settings-card-item.ag-not-selected {\n  opacity: 0.2;\n}\n.ag-chart-settings-card-item::before {\n  content: \" \";\n  display: block;\n  position: absolute;\n  background-color: transparent;\n  left: 50%;\n  top: 50%;\n  margin-left: -10px;\n  margin-top: -10px;\n  width: 20px;\n  height: 20px;\n}\n\n.ag-chart-settings-prev,\n.ag-chart-settings-next {\n  position: relative;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n\n.ag-chart-settings-prev-button,\n.ag-chart-settings-next-button {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  cursor: pointer;\n  opacity: 0;\n}\n\n.ag-chart-settings-mini-charts-container {\n  position: relative;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n\n.ag-chart-settings-mini-wrapper {\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  width: 100%;\n  min-height: 100%;\n  overflow: hidden;\n}\n.ag-chart-settings-mini-wrapper.ag-animating {\n  -webkit-transition: left 0.3s;\n  transition: left 0.3s;\n  -webkit-transition-timing-function: ease-in-out;\n          transition-timing-function: ease-in-out;\n}\n\n.ag-chart-mini-thumbnail {\n  cursor: pointer;\n}\n\n.ag-chart-mini-thumbnail-canvas {\n  display: block;\n}\n\n.ag-chart-data-wrapper,\n.ag-chart-format-wrapper {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n          flex-direction: column;\n  position: relative;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n}\n\n.ag-chart-data-wrapper {\n  height: 100%;\n  overflow-y: auto;\n}\n\n.ag-chart-data-section,\n.ag-chart-format-section {\n  display: -webkit-box;\n  display: flex;\n  margin: 0;\n}\n\n.ag-chart-empty-text {\n  display: -webkit-box;\n  display: flex;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n          justify-content: center;\n}\n\n.ag-chart .ag-chart-menu {\n  opacity: 0;\n  pointer-events: none;\n}\n\n.ag-chart-menu-hidden:hover .ag-chart-menu {\n  opacity: 1;\n  pointer-events: all;\n}\n\n.ag-charts-font-size-color {\n  display: -webkit-box;\n  display: flex;\n  align-self: stretch;\n  -webkit-box-pack: justify;\n          justify-content: space-between;\n}\n\n.ag-charts-data-group-item {\n  position: relative;\n}\n\n.ag-date-time-list-page-title-bar {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-date-time-list-page-column-labels-row,\n.ag-date-time-list-page-entries-row {\n  display: -webkit-box;\n  display: flex;\n}\n\n.ag-date-time-list-page-column-label,\n.ag-date-time-list-page-entry {\n  flex-basis: 0;\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n}\n\n.ag-date-time-list-page-entry {\n  cursor: pointer;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/ag-grid-community/dist/styles/ag-grid.css\"],\"names\":[],\"mappings\":\"AAAA;;;;CAIC;AACD;EACE,cAAc;AAChB;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,oBAAoB;EACpB,YAAY;AACd;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,qBAAqB;AACvB;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,iBAAiB;AACnB;;AAEA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;AAChB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,sCAAsC;UAC9B,8BAA8B;EACtC,gCAAgC;UACxB,wBAAwB;EAChC,2CAA2C;UACnC,mCAAmC;EAC3C,8CAA8C;UACtC,sCAAsC;AAChD;;AAEA;EACE;IACE,iBAAiB;IACjB,kBAAkB;EACpB;EACA;IACE,iBAAiB;IACjB,kBAAkB;EACpB;AACF;;AAEA;EACE;IACE,iBAAiB;IACjB,kBAAkB;EACpB;EACA;IACE,iBAAiB;IACjB,kBAAkB;EACpB;AACF;AACA;EACE,eAAe;EACf,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,0CAA0C;EAC1C,kCAAkC;AACpC;AACA;EACE,WAAW;EACX,yDAAq+M;EACr+M,4BAA4B;EAC5B,2BAA2B;EAC3B,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,iBAAiB;EACjB,+BAA+B;EAC/B,eAAe;EACf,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;AAC7B;AACA;EACE,mBAAmB;UACX,cAAc;EACtB,SAAS;EACT,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;AAChC;AACA;EACE,gBAAgB;EAChB,mBAAmB;UACX,cAAc;EACtB,QAAQ;AACV;AACA;EACE,YAAY;AACd;;AAEA;;;;CAIC;AACD;;;;;;;EAOE,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,gBAAgB;EAChB,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iCAAiC;AACnC;;AAEA;EACE,WAAW;EACX,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;;;;CAIC;AACD;;;;;;;;;;;EAWE,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,YAAY;AACd;;AAEA;;;EAGE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,oBAAoB;AACtB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;;;CAIC;AACD;EACE,mBAAmB;UACX,cAAc;EACtB,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,uCAAuC;UAC/B,+BAA+B;AACzC;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,WAAW;EACX,oBAAoB;EACpB,aAAa;EACb,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,QAAQ;EACR,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;;AAEA;;;;CAIC;AACD;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B,oBAAoB;EACpB,yBAAyB;UACjB,mBAAmB;EAC3B,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,gCAAgC;EAChC,wBAAwB;EACxB,UAAU;AACZ;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,gBAAgB;EAChB,yBAAyB;UACjB,mBAAmB;EAC3B,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,8BAA8B;EAC9B,8BAA8B;UACtB,2BAA2B;AACrC;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,YAAY;EACZ,UAAU;EACV,MAAM;EACN,iBAAiB;AACnB;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;;;;CAIC;AACD;EACE,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,yCAAyC;EACzC,iCAAiC;AACnC;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;EAChB,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;EAChB,mBAAmB;UACX,aAAa;AACvB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,mBAAmB;UACX,aAAa;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,2BAA2B;EAC3B,oBAAoB;EACpB,yBAAyB;UACjB,mBAAmB;EAC3B,cAAc;EACd,WAAW;AACb;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;UACX,cAAc;EACtB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;EAChB,0BAA0B;UAClB,oBAAoB;EAC5B,mBAAmB;UACX,aAAa;AACvB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;UACX,UAAU;AACpB;;AAEA;EACE,kBAAkB;EAClB,0BAA0B;UAClB,oBAAoB;EAC5B,mBAAmB;UACX,YAAY;EACpB,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;AAClB;AACA;EACE,mBAAmB;UACX,UAAU;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,mBAAmB;UACX,aAAa;EACrB,YAAY;AACd;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,qBAAqB;UACb,yBAAyB;EACjC,gBAAgB;AAClB;;AAEA;;;;CAIC;AACD;EACE,yFAAyF;EACzF,iFAAiF;EACjF,yEAAyE;EACzE,iGAAiG;AACnG;;AAEA;EACE,sGAAsG;EACtG,8FAA8F;EAC9F,sFAAsF;EACtF,8GAA8G;AAChH;;AAEA;EACE,yCAAyC;EACzC,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;;;;CAIC;AACD;EACE,qBAAqB;EACrB,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,mBAAmB;EACnB,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,wBAAwB;UAChB,uBAAuB;AACjC;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,OAAO;EACP,MAAM;AACR;;AAEA;EACE,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,UAAU;AACZ;AACA;;;;;EAKE,YAAY;EACZ,WAAW;EACX,mBAAmB;AACrB;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,YAAY;AACd;;AAEA;EACE,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;AAChC;;AAEA;EACE,mBAAmB;UACX,aAAa;AACvB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,wBAAwB;UAChB,uBAAuB;AACjC;;AAEA;;;;CAIC;AACD;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,YAAY;AACd;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,YAAY;EACZ,WAAW;EACX,yBAAyB;UACjB,mBAAmB;EAC3B,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,yBAAyB;UACjB,mBAAmB;EAC3B,oBAAoB;EACpB,aAAa;EACb,WAAW;AACb;AACA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;AACpB;;AAEA;;;;CAIC;AACD;EACE,kBAAkB;EAClB,2BAA2B;EAC3B,oBAAoB;EACpB,yBAAyB;UACjB,mBAAmB;EAC3B,YAAY;EACZ,mBAAmB;EACnB,aAAa;AACf;;AAEA;;;;CAIC;AACD;EACE,YAAY;EACZ,OAAO;EACP,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,WAAW;AACb;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;EAClB,WAAW;EACX,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;EAC3B,wBAAwB;UAChB,uBAAuB;EAC/B,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;;;;CAIC;AACD;EACE,UAAU;EACV,MAAM;AACR;;AAEA;EACE,kBAAkB;EAClB,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;EACzB,UAAU;AACZ;;AAEA;EACE,cAAc;AAChB;;AAEA;;;;CAIC;AACD;EACE,kBAAkB;EAClB,WAAW;AACb;;AAEA;;;;CAIC;AACD;EACE,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;EAClB,yBAAyB;UACjB,mBAAmB;EAC3B,eAAe;AACjB;;AAEA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;EACzB,UAAU;AACZ;AACA;EACE,MAAM;EACN,OAAO;EACP,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,MAAM;EACN,SAAS;EACT,UAAU;EACV,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,QAAQ;EACR,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,UAAU;EACV,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,QAAQ;EACR,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,SAAS;EACT,UAAU;EACV,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,OAAO;EACP,WAAW;EACX,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,OAAO;EACP,QAAQ;EACR,WAAW;EACX,UAAU;EACV,iBAAiB;AACnB;;AAEA;;;;CAIC;AACD;EACE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;AAChB;;AAEA;;;;CAIC;AACD;EACE,iBAAiB;EACjB,UAAU;EACV,+CAA+C;EAC/C,uCAAuC;EACvC,0CAA0C;UAClC,kCAAkC;AAC5C;;AAEA;EACE,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,qBAAqB;AACvB;;AAEA;;;;CAIC;AACD;EACE,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;AAC3B;;AAEA;EACE,aAAa;EACb,cAAc;AAChB;AACA;EACE,YAAY;AACd;;AAEA;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,oBAAoB;EACpB,aAAa;EACb,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;UACX,cAAc;AACxB;;AAEA;;;;CAIC;AACD;EACE,eAAe;EACf,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,mBAAmB;UACX,cAAc;EACtB,4BAA4B;UACpB,QAAQ;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;AACrB;;AAEA;;;;CAIC;AACD;EACE,yBAAyB;UACjB,mBAAmB;EAC3B,oBAAoB;EACpB,aAAa;EACb,qBAAqB;UACb,yBAAyB;AACnC;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;AAC3B;;AAEA;;;EAGE,kBAAkB;EAClB,yBAAyB;UACjB,mBAAmB;EAC3B,oBAAoB;EACpB,aAAa;EACb,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;EAC3B,iBAAiB;EACjB,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;AACd;AACA;;;EAGE,mBAAmB;UACX,UAAU;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,8BAA8B;EACtC,8BAA8B;EAC9B,8BAA8B;UACtB,2BAA2B;EACnC,yBAAyB;UACjB,mBAAmB;EAC3B,WAAW;EACX,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;AAC7B;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,8BAA8B;EAC9B,8BAA8B;UACtB,2BAA2B;AACrC;;AAEA;EACE,4BAA4B;UACpB,SAAS;EACjB,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;AAC7B;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,yBAAyB;UACjB,mBAAmB;EAC3B,wBAAwB;UAChB,uBAAuB;EAC/B,iBAAiB;EACjB,mBAAmB;EACnB,aAAa;EACb,eAAe;AACjB;;AAEA;EACE,iCAAiC;UACzB,yBAAyB;AACnC;;AAEA;;;;CAIC;AACD;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,8BAA8B;EACtC,gBAAgB;AAClB;;AAEA;EACE,2BAA2B;EAC3B,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;EAC3B,oBAAoB;AACtB;;AAEA;EACE,2BAA2B;EAC3B,oBAAoB;AACtB;;AAEA;EACE,2BAA2B;EAC3B,oBAAoB;AACtB;;AAEA;;;;CAIC;AACD;EACE,cAAc;EACd,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,cAAc;EACd,mBAAmB;UACX,cAAc;EACtB,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;EAC3B,eAAe;AACjB;;AAEA;EACE,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;AAChC;;AAEA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,0BAA0B;UAClB,oBAAoB;AAC9B;;AAEA;EACE,wBAAwB;UAChB,uBAAuB;AACjC;;AAEA;EACE,sBAAsB;UACd,qBAAqB;AAC/B;;AAEA;EACE,8BAA8B;EAC9B,sBAAsB;EACtB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;EAC3B,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,mBAAmB;UACX,cAAc;EACtB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,mBAAmB;UACX,cAAc;AACxB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,SAAS;EACT,UAAU;EACV,SAAS;EACT,eAAe;AACjB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,4BAA4B;UACpB,QAAQ;AAClB;AACA;EACE,mBAAmB;UACX,UAAU;AACpB;;AAEA;EACE,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,wBAAwB;UAChB,uBAAuB;AACjC;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;UACX,cAAc;EACtB,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;AACX;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,iOAAiO;EACjO,+HAA+H;AACjI;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,yGAAyG;EACzG,2EAA2E;EAC3E,WAAW;EACX,YAAY;AACd;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,cAAc;AAChB;AACA;EACE,8BAA8B;EAC9B,6BAA6B;UACrB,mBAAmB;AAC7B;;AAEA;EACE,cAAc;AAChB;AACA;EACE,8BAA8B;EAC9B,8BAA8B;UACtB,2BAA2B;AACrC;AACA;;EAEE,cAAc;EACd,iCAAiC;UACzB,yBAAyB;AACnC;;AAEA;EACE,mBAAmB;UACX,UAAU;AACpB;AACA;EACE,2BAA2B;EAC3B,oBAAoB;AACtB;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,8BAA8B;AAChC;;AAEA;EACE;;;;;;;;;IASE,uBAAuB;IACvB,2BAA2B;IAC3B,yBAAyB;EAC3B;EACA;IACE,wBAAwB;EAC1B;AACF;AACA;EACE,iCAAiC;AACnC;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,gBAAgB;EAChB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,MAAM;EACN,OAAO;EACP,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;UACX,cAAc;EACtB,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,gBAAgB;EAChB,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;AAChC;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,kCAAkC;EAClC,0BAA0B;AAC5B;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;UACX,UAAU;EAClB,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;EACzB,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,cAAc;EACtB,0BAA0B;UAClB,oBAAoB;EAC5B,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,WAAW;EACX,YAAY;EACZ,oBAAoB;EACpB,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,WAAW;EACX,YAAY;EACZ,eAAe;EACf,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;AAC3B;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,6BAA6B;EAC7B,mBAAmB;UACX,cAAc;EACtB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,6BAA6B;EAC7B,SAAS;EACT,QAAQ;EACR,kBAAkB;EAClB,iBAAiB;EACjB,WAAW;EACX,YAAY;AACd;;AAEA;;EAEE,kBAAkB;EAClB,mBAAmB;UACX,UAAU;AACpB;;AAEA;;EAEE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,eAAe;EACf,UAAU;AACZ;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;UACX,cAAc;EACtB,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,WAAW;EACX,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,qBAAqB;EACrB,+CAA+C;UACvC,uCAAuC;AACjD;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;;EAEE,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,6BAA6B;UACrB,sBAAsB;EAC9B,kBAAkB;EAClB,yBAAyB;KACtB,sBAAsB;UACjB,iBAAiB;AAC3B;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;;EAEE,oBAAoB;EACpB,aAAa;EACb,SAAS;AACX;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,MAAM;EACN,WAAW;EACX,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;EAC3B,wBAAwB;UAChB,uBAAuB;AACjC;;AAEA;EACE,UAAU;EACV,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,aAAa;EACb,mBAAmB;EACnB,yBAAyB;UACjB,8BAA8B;AACxC;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;EACpB,aAAa;AACf;;AAEA;;EAEE,oBAAoB;EACpB,aAAa;AACf;;AAEA;;EAEE,aAAa;EACb,mBAAmB;UACX,YAAY;AACtB;;AAEA;EACE,eAAe;AACjB\",\"sourcesContent\":[\"/**\\n ****************************\\n * Generic Styles\\n ****************************\\n*/\\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\\n  display: block;\\n}\\n\\n.ag-hidden {\\n  display: none !important;\\n}\\n\\n.ag-invisible {\\n  visibility: hidden !important;\\n}\\n\\n.ag-drag-handle {\\n  cursor: -webkit-grab;\\n  cursor: grab;\\n}\\n\\n.ag-column-drop-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-column-drop-horizontal-half-width {\\n  display: inline-block;\\n  width: 50% !important;\\n}\\n\\n.ag-unselectable {\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  user-select: none;\\n}\\n\\n.ag-selectable {\\n  -moz-user-select: text;\\n  -webkit-user-select: text;\\n  user-select: text;\\n}\\n\\n.ag-tab {\\n  position: relative;\\n}\\n\\n.ag-tab-guard {\\n  position: absolute;\\n  width: 0;\\n  height: 0;\\n  display: block;\\n}\\n\\n.ag-select-agg-func-popup {\\n  position: absolute;\\n}\\n\\n.ag-input-wrapper, .ag-picker-field-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  line-height: normal;\\n  position: relative;\\n}\\n\\n.ag-shake-left-to-right {\\n  -webkit-animation-direction: alternate;\\n          animation-direction: alternate;\\n  -webkit-animation-duration: 0.2s;\\n          animation-duration: 0.2s;\\n  -webkit-animation-iteration-count: infinite;\\n          animation-iteration-count: infinite;\\n  -webkit-animation-name: ag-shake-left-to-right;\\n          animation-name: ag-shake-left-to-right;\\n}\\n\\n@-webkit-keyframes ag-shake-left-to-right {\\n  from {\\n    padding-left: 6px;\\n    padding-right: 2px;\\n  }\\n  to {\\n    padding-left: 2px;\\n    padding-right: 6px;\\n  }\\n}\\n\\n@keyframes ag-shake-left-to-right {\\n  from {\\n    padding-left: 6px;\\n    padding-right: 2px;\\n  }\\n  to {\\n    padding-left: 2px;\\n    padding-right: 6px;\\n  }\\n}\\n.ag-root-wrapper {\\n  cursor: default;\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow: hidden;\\n}\\n.ag-root-wrapper.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n.ag-watermark {\\n  position: absolute;\\n  bottom: 20px;\\n  right: 25px;\\n  opacity: 0.5;\\n  -webkit-transition: opacity 1s ease-out 3s;\\n  transition: opacity 1s ease-out 3s;\\n}\\n.ag-watermark::before {\\n  content: \\\"\\\";\\n  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDIzNSA0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxuczpzZXJpZj0iaHR0cDovL3d3dy5zZXJpZi5jb20vIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjI7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDAuNjM1NzIzLDAsMCwwLjYzNTcyMywtNDkyLjkyMSwtMzIzLjYwOCkiPgogICAgICAgIDxwYXRoIGQ9Ik0xMDk5LjQsNTQ5LjRMMTA5OS40LDUzNi45TDEwNzguMSw1MzYuOUwxMDY1LjYsNTQ5LjRMMTA5OS40LDU0OS40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTEyMy40LDUxOC40TDEwOTYuNyw1MTguNEwxMDg0LjEsNTMwLjlMMTEyMy40LDUzMC45TDExMjMuNCw1MTguNFoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwNTMuMiw1NjEuOUwxMDU5LjYsNTU1LjVMMTA4MS4yLDU1NS41TDEwODEuMiw1NjhMMTA1My4yLDU2OEwxMDUzLjIsNTYxLjlaIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDU3LjksNTQzLjNMMTA3MS43LDU0My4zTDEwODQuMyw1MzAuOEwxMDU3LjksNTMwLjhMMTA1Ny45LDU0My4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNMTA0Mi44LDU2MS45TDEwNTMuMiw1NjEuOUwxMDY1LjYsNTQ5LjRMMTA0Mi44LDU0OS40TDEwNDIuOCw1NjEuOVoiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPHBhdGggZD0iTTEwOTYuNyw1MTguNEwxMDkwLjMsNTI0LjhMMTA0OS41LDUyNC44TDEwNDkuNSw1MTIuM0wxMDk2LjcsNTEyLjNMMTA5Ni43LDUxOC40WiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNODI4LjYsNTU5LjdMODA5LDU1OS43TDgwNS42LDU2OC4xTDc5Nyw1NjguMUw4MTUuMSw1MjUuN0w4MjIuNiw1MjUuN0w4NDAuNyw1NjguMUw4MzIsNTY4LjFMODI4LjYsNTU5LjdaTTgyNS45LDU1M0w4MTguOCw1MzUuN0w4MTEuNyw1NTNMODI1LjksNTUzWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTYwLjEsNTQxLjNDOTYyLjYsNTM3LjYgOTY4LjksNTM3LjIgOTcxLjUsNTM3LjJMOTcxLjUsNTQ0LjRDOTY4LjMsNTQ0LjQgOTY1LjEsNTQ0LjUgOTYzLjIsNTQ1LjlDOTYxLjMsNTQ3LjMgOTYwLjMsNTQ5LjIgOTYwLjMsNTUxLjVMOTYwLjMsNTY4LjFMOTUyLjUsNTY4LjFMOTUyLjUsNTM3LjJMOTYwLDUzNy4yTDk2MC4xLDU0MS4zWiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTM3LjIiIHdpZHRoPSI3LjgiIGhlaWdodD0iMzAuOSIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTsiLz4KICAgICAgICA8cmVjdCB4PSI5NzUuOCIgeT0iNTIzLjQiIHdpZHRoPSI3LjgiIGhlaWdodD0iOS4yIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpOyIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDIyLjMsNTIzLjRMMTAyMi4zLDU2OC4xTDEwMTQuOCw1NjguMUwxMDE0LjYsNTYzLjRDMTAxMy41LDU2NSAxMDEyLjEsNTY2LjMgMTAxMC40LDU2Ny4zQzEwMDguNyw1NjguMiAxMDA2LjYsNTY4LjcgMTAwNC4yLDU2OC43QzEwMDIuMSw1NjguNyAxMDAwLjEsNTY4LjMgOTk4LjQsNTY3LjZDOTk2LjYsNTY2LjggOTk1LDU2NS44IDk5My43LDU2NC40Qzk5Mi40LDU2MyA5OTEuMyw1NjEuMyA5OTAuNiw1NTkuNEM5ODkuOCw1NTcuNSA5ODkuNSw1NTUuMyA5ODkuNSw1NTIuOUM5ODkuNSw1NTAuNSA5ODkuOSw1NDguMyA5OTAuNiw1NDYuM0M5OTEuNCw1NDQuMyA5OTIuNCw1NDIuNiA5OTMuNyw1NDEuMkM5OTUsNTM5LjggOTk2LjYsNTM4LjcgOTk4LjQsNTM3LjlDMTAwMC4yLDUzNy4xIDEwMDIuMSw1MzYuNyAxMDA0LjIsNTM2LjdDMTAwNi42LDUzNi43IDEwMDguNiw1MzcuMSAxMDEwLjMsNTM4QzEwMTIsNTM4LjkgMTAxMy40LDU0MC4xIDEwMTQuNSw1NDEuOEwxMDE0LjUsNTIzLjVMMTAyMi4zLDUyMy41TDEwMjIuMyw1MjMuNFpNMTAwNS45LDU2MkMxMDA4LjUsNTYyIDEwMTAuNSw1NjEuMSAxMDEyLjEsNTU5LjRDMTAxMy43LDU1Ny43IDEwMTQuNSw1NTUuNCAxMDE0LjUsNTUyLjZDMTAxNC41LDU0OS44IDEwMTMuNyw1NDcuNiAxMDEyLjEsNTQ1LjhDMTAxMC41LDU0NC4xIDEwMDguNSw1NDMuMiAxMDA1LjksNTQzLjJDMTAwMy40LDU0My4yIDEwMDEuMyw1NDQuMSA5OTkuOCw1NDUuOEM5OTguMiw1NDcuNSA5OTcuNCw1NDkuOCA5OTcuNCw1NTIuNkM5OTcuNCw1NTUuNCA5OTguMiw1NTcuNiA5OTkuOCw1NTkuM0MxMDAxLjQsNTYxLjEgMTAwMy40LDU2MiAxMDA1LjksNTYyIiBzdHlsZT0iZmlsbDpyZ2IoMjQsMjksMzEpO2ZpbGwtcnVsZTpub256ZXJvOyIvPgogICAgICAgIDxwYXRoIGQ9Ik04ODUuOCw1NDQuMkw4NjYuNSw1NDQuMkw4NjYuNSw1NTAuOUw4NzcuNSw1NTAuOUM4NzcuMiw1NTQuMyA4NzUuOSw1NTYuOSA4NzMuNyw1NTlDODcxLjUsNTYxIDg2OC43LDU2MiA4NjUuMSw1NjJDODYzLjEsNTYyIDg2MS4yLDU2MS42IDg1OS42LDU2MC45Qzg1Ny45LDU2MC4yIDg1Ni41LDU1OS4yIDg1NS4zLDU1Ny44Qzg1NC4xLDU1Ni41IDg1My4yLDU1NC45IDg1Mi41LDU1M0M4NTEuOCw1NTEuMSA4NTEuNSw1NDkuMSA4NTEuNSw1NDYuOEM4NTEuNSw1NDQuNSA4NTEuOCw1NDIuNSA4NTIuNSw1NDAuNkM4NTMuMSw1MzguNyA4NTQuMSw1MzcuMiA4NTUuMyw1MzUuOEM4NTYuNSw1MzQuNSA4NTcuOSw1MzMuNSA4NTkuNiw1MzIuN0M4NjEuMyw1MzIgODYzLjEsNTMxLjYgODY1LjIsNTMxLjZDODY5LjQsNTMxLjYgODcyLjYsNTMyLjYgODc0LjgsNTM0LjZMODgwLDUyOS40Qzg3Ni4xLDUyNi40IDg3MS4xLDUyNC44IDg2NS4yLDUyNC44Qzg2MS45LDUyNC44IDg1OC45LDUyNS4zIDg1Ni4yLDUyNi40Qzg1My41LDUyNy41IDg1MS4yLDUyOC45IDg0OS4zLDUzMC44Qzg0Ny40LDUzMi43IDg0NS45LDUzNSA4NDQuOSw1MzcuN0M4NDMuOSw1NDAuNCA4NDMuNCw1NDMuNCA4NDMuNCw1NDYuNkM4NDMuNCw1NDkuOCA4NDMuOSw1NTIuOCA4NDUsNTU1LjVDODQ2LjEsNTU4LjIgODQ3LjUsNTYwLjUgODQ5LjQsNTYyLjRDODUxLjMsNTY0LjMgODUzLjYsNTY1LjggODU2LjMsNTY2LjhDODU5LDU2Ny45IDg2Miw1NjguNCA4NjUuMiw1NjguNEM4NjguNCw1NjguNCA4NzEuMyw1NjcuOSA4NzMuOSw1NjYuOEM4NzYuNSw1NjUuNyA4NzguNyw1NjQuMyA4ODAuNSw1NjIuNEM4ODIuMyw1NjAuNSA4ODMuNyw1NTguMiA4ODQuNyw1NTUuNUM4ODUuNyw1NTIuOCA4ODYuMiw1NDkuOCA4ODYuMiw1NDYuNkw4ODYuMiw1NDUuM0M4ODUuOSw1NDUuMSA4ODUuOCw1NDQuNiA4ODUuOCw1NDQuMiIgc3R5bGU9ImZpbGw6cmdiKDI0LDI5LDMxKTtmaWxsLXJ1bGU6bm9uemVybzsiLz4KICAgICAgICA8cGF0aCBkPSJNOTQ2LjgsNTQ0LjJMOTI3LjUsNTQ0LjJMOTI3LjUsNTUwLjlMOTM4LjUsNTUwLjlDOTM4LjIsNTU0LjMgOTM2LjksNTU2LjkgOTM0LjcsNTU5QzkzMi41LDU2MSA5MjkuNyw1NjIgOTI2LjEsNTYyQzkyNC4xLDU2MiA5MjIuMiw1NjEuNiA5MjAuNiw1NjAuOUM5MTguOSw1NjAuMiA5MTcuNSw1NTkuMiA5MTYuMyw1NTcuOEM5MTUuMSw1NTYuNSA5MTQuMiw1NTQuOSA5MTMuNSw1NTNDOTEyLjgsNTUxLjEgOTEyLjUsNTQ5LjEgOTEyLjUsNTQ2LjhDOTEyLjUsNTQ0LjUgOTEyLjgsNTQyLjUgOTEzLjUsNTQwLjZDOTE0LjEsNTM4LjcgOTE1LjEsNTM3LjIgOTE2LjMsNTM1LjhDOTE3LjUsNTM0LjUgOTE4LjksNTMzLjUgOTIwLjYsNTMyLjdDOTIyLjMsNTMyIDkyNC4xLDUzMS42IDkyNi4yLDUzMS42QzkzMC40LDUzMS42IDkzMy42LDUzMi42IDkzNS44LDUzNC42TDk0MSw1MjkuNEM5MzcuMSw1MjYuNCA5MzIuMSw1MjQuOCA5MjYuMiw1MjQuOEM5MjIuOSw1MjQuOCA5MTkuOSw1MjUuMyA5MTcuMiw1MjYuNEM5MTQuNSw1MjcuNSA5MTIuMiw1MjguOSA5MTAuMyw1MzAuOEM5MDguNCw1MzIuNyA5MDYuOSw1MzUgOTA1LjksNTM3LjdDOTA0LjksNTQwLjQgOTA0LjQsNTQzLjQgOTA0LjQsNTQ2LjZDOTA0LjQsNTQ5LjggOTA0LjksNTUyLjggOTA2LDU1NS41QzkwNy4xLDU1OC4yIDkwOC41LDU2MC41IDkxMC40LDU2Mi40QzkxMi4zLDU2NC4zIDkxNC42LDU2NS44IDkxNy4zLDU2Ni44QzkyMCw1NjcuOSA5MjMsNTY4LjQgOTI2LjIsNTY4LjRDOTI5LjQsNTY4LjQgOTMyLjMsNTY3LjkgOTM0LjksNTY2LjhDOTM3LjUsNTY1LjcgOTM5LjcsNTY0LjMgOTQxLjUsNTYyLjRDOTQzLjMsNTYwLjUgOTQ0LjcsNTU4LjIgOTQ1LjcsNTU1LjVDOTQ2LjcsNTUyLjggOTQ3LjIsNTQ5LjggOTQ3LjIsNTQ2LjZMOTQ3LjIsNTQ1LjNDOTQ2LjksNTQ1LjEgOTQ2LjgsNTQ0LjYgOTQ2LjgsNTQ0LjIiIHN0eWxlPSJmaWxsOnJnYigyNCwyOSwzMSk7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=);\\n  background-repeat: no-repeat;\\n  background-size: 170px 40px;\\n  display: block;\\n  height: 40px;\\n  width: 170px;\\n  opacity: 0.5;\\n}\\n\\n.ag-watermark-text {\\n  opacity: 0.5;\\n  font-weight: bold;\\n  font-family: Impact, sans-serif;\\n  font-size: 19px;\\n  padding-left: 0.7rem;\\n}\\n\\n.ag-root-wrapper-body {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n}\\n.ag-root-wrapper-body.ag-layout-normal {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  height: 0;\\n  min-height: 0;\\n}\\n\\n.ag-root {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n}\\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\\n  overflow: hidden;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  width: 0;\\n}\\n.ag-root.ag-layout-normal {\\n  height: 100%;\\n}\\n\\n/**\\n ****************************\\n * Viewports\\n ****************************\\n*/\\n.ag-header-viewport,\\n.ag-floating-top-viewport,\\n.ag-body-viewport,\\n.ag-center-cols-viewport,\\n.ag-floating-bottom-viewport,\\n.ag-body-horizontal-scroll-viewport,\\n.ag-virtual-list-viewport {\\n  position: relative;\\n  height: 100%;\\n  min-width: 0px;\\n  overflow: hidden;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-body-viewport {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-body-viewport.ag-layout-normal {\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-center-cols-viewport {\\n  width: 100%;\\n  overflow-x: auto;\\n}\\n\\n.ag-body-horizontal-scroll-viewport {\\n  overflow-x: scroll;\\n}\\n\\n.ag-virtual-list-viewport {\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n/**\\n ****************************\\n * Containers\\n ****************************\\n*/\\n.ag-header-container,\\n.ag-floating-top-container,\\n.ag-body-container,\\n.ag-pinned-right-cols-container,\\n.ag-center-cols-container,\\n.ag-pinned-left-cols-container,\\n.ag-floating-bottom-container,\\n.ag-body-horizontal-scroll-container,\\n.ag-full-width-container,\\n.ag-floating-bottom-full-width-container,\\n.ag-virtual-list-container {\\n  position: relative;\\n}\\n\\n.ag-header-container, .ag-floating-top-container, .ag-floating-bottom-container {\\n  height: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-center-cols-container {\\n  display: block;\\n}\\n\\n.ag-pinned-right-cols-container {\\n  display: block;\\n}\\n\\n.ag-body-horizontal-scroll-container {\\n  height: 100%;\\n}\\n\\n.ag-full-width-container,\\n.ag-floating-top-full-width-container,\\n.ag-floating-bottom-full-width-container {\\n  position: absolute;\\n  top: 0px;\\n  left: 0px;\\n  pointer-events: none;\\n}\\n\\n.ag-full-width-container {\\n  width: 100%;\\n}\\n\\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\\n  display: inline-block;\\n  overflow: hidden;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-virtual-list-container {\\n  overflow: hidden;\\n}\\n\\n/**\\n ****************************\\n * Scrollers\\n ****************************\\n*/\\n.ag-center-cols-clipper {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  min-height: 100%;\\n  -webkit-transform: translate3d(0, 0, 0);\\n          transform: translate3d(0, 0, 0);\\n}\\n\\n.ag-body-horizontal-scroll {\\n  min-height: 0;\\n  min-width: 0;\\n  width: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n  position: relative;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\\n  position: absolute;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  pointer-events: none;\\n}\\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-scrollbar-active {\\n  pointer-events: all;\\n}\\n\\n.ag-force-vertical-scroll {\\n  overflow-y: scroll !important;\\n}\\n\\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\\n  height: 100%;\\n  min-width: 0;\\n  overflow-x: scroll;\\n}\\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\\n  overflow-x: hidden;\\n}\\n\\n/**\\n ****************************\\n * Headers\\n ****************************\\n*/\\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n}\\n\\n.ag-header-cell-sortable {\\n  cursor: pointer;\\n}\\n\\n.ag-header {\\n  display: -webkit-box;\\n  display: flex;\\n  width: 100%;\\n  white-space: nowrap;\\n}\\n\\n.ag-pinned-left-header {\\n  height: 100%;\\n}\\n\\n.ag-pinned-right-header {\\n  height: 100%;\\n}\\n\\n.ag-header-row {\\n  position: absolute;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  position: absolute;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button {\\n  opacity: 1;\\n}\\n\\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\\n  -webkit-transition: opacity 0.2s;\\n  transition: opacity 0.2s;\\n  opacity: 0;\\n}\\n\\n.ag-header-group-cell-label, .ag-header-cell-label {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  overflow: hidden;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  text-overflow: ellipsis;\\n  align-self: stretch;\\n}\\n\\n.ag-header-cell-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-right-aligned-header .ag-header-cell-label {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: reverse;\\n          flex-direction: row-reverse;\\n}\\n\\n.ag-header-group-text {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-header-cell-resize {\\n  position: absolute;\\n  z-index: 2;\\n  height: 100%;\\n  width: 8px;\\n  top: 0;\\n  cursor: ew-resize;\\n}\\n.ag-ltr .ag-header-cell-resize {\\n  right: -4px;\\n}\\n.ag-rtl .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-pinned-left-header .ag-header-cell-resize {\\n  right: -4px;\\n}\\n\\n.ag-pinned-right-header .ag-header-cell-resize {\\n  left: -4px;\\n}\\n\\n.ag-header-select-all {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n/**\\n ****************************\\n * Columns\\n ****************************\\n*/\\n.ag-column-moving .ag-cell {\\n  -webkit-transition: left 0.2s;\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-cell {\\n  -webkit-transition: left 0.2s;\\n  transition: left 0.2s;\\n}\\n.ag-column-moving .ag-header-group-cell {\\n  -webkit-transition: left 0.2s, width 0.2s;\\n  transition: left 0.2s, width 0.2s;\\n}\\n\\n/**\\n ****************************\\n * Column Panel\\n ****************************\\n*/\\n.ag-column-panel {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow: hidden;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-column-select {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow: hidden;\\n  -webkit-box-flex: 3;\\n          flex: 3 1 0px;\\n}\\n\\n.ag-column-select-header {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-column-select-header-icon {\\n  position: relative;\\n}\\n\\n.ag-column-select-header-filter-wrapper {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-column-select-header-filter {\\n  width: 100%;\\n}\\n\\n.ag-column-select-list {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 0px;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop {\\n  position: relative;\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  overflow: auto;\\n  width: 100%;\\n}\\n\\n.ag-column-drop-list {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-column-drop-cell {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-column-drop-cell-text {\\n  overflow: hidden;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-column-drop-vertical {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow: hidden;\\n  -webkit-box-align: stretch;\\n          align-items: stretch;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 0px;\\n}\\n\\n.ag-column-drop-vertical-title-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-column-drop-vertical-list {\\n  position: relative;\\n  -webkit-box-align: stretch;\\n          align-items: stretch;\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow-x: auto;\\n}\\n.ag-column-drop-vertical-list > * {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-column-drop-empty .ag-column-drop-vertical-list {\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-vertical-empty-message {\\n  display: block;\\n}\\n\\n.ag-column-drop.ag-column-drop-horizontal {\\n  white-space: nowrap;\\n  overflow: hidden;\\n}\\n\\n.ag-column-drop-cell-button {\\n  cursor: pointer;\\n}\\n\\n.ag-filter-toolpanel {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 0px;\\n  min-width: 0;\\n}\\n\\n.ag-filter-toolpanel-header {\\n  position: relative;\\n}\\n\\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-filter-apply-panel {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-pack: end;\\n          justify-content: flex-end;\\n  overflow: hidden;\\n}\\n\\n/**\\n ****************************\\n * Rows\\n ****************************\\n*/\\n.ag-row-animation .ag-row {\\n  -webkit-transition: top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n  transition: top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s;\\n  transition: transform 0.4s, top 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n}\\n\\n.ag-row-animation .ag-row.ag-after-created {\\n  -webkit-transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n  transition: top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s;\\n  transition: transform 0.4s, top 0.4s, height 0.4s, background-color 0.1s, opacity 0.2s, -webkit-transform 0.4s;\\n}\\n\\n.ag-row-no-animation .ag-row {\\n  -webkit-transition: background-color 0.1s;\\n  transition: background-color 0.1s;\\n}\\n\\n.ag-row {\\n  white-space: nowrap;\\n  width: 100%;\\n}\\n\\n.ag-row-loading {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-row-position-absolute {\\n  position: absolute;\\n}\\n\\n.ag-row-position-relative {\\n  position: relative;\\n}\\n\\n.ag-full-width-row {\\n  overflow: hidden;\\n  pointer-events: all;\\n}\\n\\n.ag-row-inline-editing {\\n  z-index: 1;\\n}\\n\\n.ag-row-dragging {\\n  z-index: 2;\\n}\\n\\n.ag-stub-cell {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n/**\\n ****************************\\n * Cells\\n ****************************\\n*/\\n.ag-cell {\\n  display: inline-block;\\n  position: absolute;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n\\n.ag-cell-value {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-cell-value, .ag-group-value {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-cell-wrap-text {\\n  white-space: normal;\\n  word-break: break-all;\\n}\\n\\n.ag-cell-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-cell-wrapper.ag-row-group {\\n  -webkit-box-align: start;\\n          align-items: flex-start;\\n}\\n\\n.ag-sparkline-wrapper {\\n  position: absolute;\\n  height: 100%;\\n  width: 100%;\\n  left: 0;\\n  top: 0;\\n}\\n\\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  height: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-cell-inline-editing {\\n  z-index: 1;\\n}\\n.ag-cell-inline-editing .ag-cell-wrapper,\\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor,\\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\\n.ag-cell-inline-editing .ag-cell-editor input {\\n  height: 100%;\\n  width: 100%;\\n  line-height: normal;\\n}\\n\\n.ag-cell .ag-icon {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n\\n/**\\n ****************************\\n * Filters\\n ****************************\\n*/\\n.ag-set-filter-item {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  height: 100%;\\n}\\n\\n.ag-set-filter-item-value {\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n}\\n\\n.ag-set-filter-item-checkbox {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-filter-body-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n}\\n\\n.ag-filter-filter {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 0px;\\n}\\n\\n.ag-filter-condition {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n}\\n\\n/**\\n ****************************\\n * Floating Filter\\n ****************************\\n*/\\n.ag-floating-filter-body {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  height: 100%;\\n}\\n\\n.ag-floating-filter-full-body {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  height: 100%;\\n  width: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  overflow: hidden;\\n}\\n\\n.ag-floating-filter-full-body > div {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-input {\\n  -webkit-box-align: center;\\n          align-items: center;\\n  display: -webkit-box;\\n  display: flex;\\n  width: 100%;\\n}\\n.ag-floating-filter-input > * {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-floating-filter-button {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n/**\\n ****************************\\n * Drag & Drop\\n ****************************\\n*/\\n.ag-dnd-ghost {\\n  position: absolute;\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  cursor: move;\\n  white-space: nowrap;\\n  z-index: 9999;\\n}\\n\\n/**\\n ****************************\\n * Overlay\\n ****************************\\n*/\\n.ag-overlay {\\n  height: 100%;\\n  left: 0;\\n  pointer-events: none;\\n  position: absolute;\\n  top: 0;\\n  width: 100%;\\n}\\n\\n.ag-overlay-panel {\\n  display: -webkit-box;\\n  display: flex;\\n  height: 100%;\\n  width: 100%;\\n}\\n\\n.ag-overlay-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  width: 100%;\\n  height: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n  text-align: center;\\n}\\n\\n.ag-overlay-loading-wrapper {\\n  pointer-events: all;\\n}\\n\\n/**\\n ****************************\\n * Popup\\n ****************************\\n*/\\n.ag-popup-child {\\n  z-index: 5;\\n  top: 0;\\n}\\n\\n.ag-popup-editor {\\n  position: absolute;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n  z-index: 1;\\n}\\n\\n.ag-large-text-input {\\n  display: block;\\n}\\n\\n/**\\n ****************************\\n * Virtual Lists\\n ****************************\\n*/\\n.ag-virtual-list-item {\\n  position: absolute;\\n  width: 100%;\\n}\\n\\n/**\\n ****************************\\n * Floating Top and Bottom\\n ****************************\\n*/\\n.ag-floating-top {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-top {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-floating-bottom {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  width: 100%;\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-pinned-left-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n.ag-pinned-right-floating-bottom {\\n  display: inline-block;\\n  overflow: hidden;\\n  position: relative;\\n  min-width: 0px;\\n}\\n\\n/**\\n ****************************\\n * Dialog\\n ****************************\\n*/\\n.ag-dialog, .ag-panel {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-panel-title-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  cursor: default;\\n}\\n\\n.ag-panel-title-bar-title {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-panel-title-bar-buttons {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-panel-title-bar-button {\\n  cursor: pointer;\\n}\\n\\n.ag-panel-content-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n}\\n\\n.ag-dialog {\\n  position: absolute;\\n}\\n\\n.ag-resizer {\\n  position: absolute;\\n  pointer-events: none;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n  z-index: 1;\\n}\\n.ag-resizer.ag-resizer-topLeft {\\n  top: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-top {\\n  top: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-topRight {\\n  top: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-right {\\n  top: 5px;\\n  right: 0;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n.ag-resizer.ag-resizer-bottomRight {\\n  bottom: 0;\\n  right: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nwse-resize;\\n}\\n.ag-resizer.ag-resizer-bottom {\\n  bottom: 0;\\n  left: 5px;\\n  right: 5px;\\n  height: 5px;\\n  cursor: ns-resize;\\n}\\n.ag-resizer.ag-resizer-bottomLeft {\\n  bottom: 0;\\n  left: 0;\\n  height: 5px;\\n  width: 5px;\\n  cursor: nesw-resize;\\n}\\n.ag-resizer.ag-resizer-left {\\n  left: 0;\\n  top: 5px;\\n  bottom: 5px;\\n  width: 5px;\\n  cursor: ew-resize;\\n}\\n\\n/**\\n ****************************\\n * Tooltip\\n ****************************\\n*/\\n.ag-tooltip {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n.ag-tooltip-custom {\\n  position: absolute;\\n  pointer-events: none;\\n  z-index: 99999;\\n}\\n\\n/**\\n ****************************\\n * Animations\\n ****************************\\n*/\\n.ag-value-slide-out {\\n  margin-right: 5px;\\n  opacity: 1;\\n  -webkit-transition: opacity 3s, margin-right 3s;\\n  transition: opacity 3s, margin-right 3s;\\n  -webkit-transition-timing-function: linear;\\n          transition-timing-function: linear;\\n}\\n\\n.ag-value-slide-out-end {\\n  margin-right: 10px;\\n  opacity: 0;\\n}\\n\\n.ag-opacity-zero {\\n  opacity: 0 !important;\\n}\\n\\n/**\\n ****************************\\n * Menu\\n ****************************\\n*/\\n.ag-menu {\\n  max-height: 100%;\\n  overflow-y: auto;\\n  position: absolute;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n}\\n\\n.ag-menu-column-select-wrapper {\\n  height: 265px;\\n  overflow: auto;\\n}\\n.ag-menu-column-select-wrapper .ag-column-select {\\n  height: 100%;\\n}\\n\\n.ag-menu-list {\\n  display: table;\\n  width: 100%;\\n}\\n\\n.ag-menu-option, .ag-menu-separator {\\n  display: table-row;\\n}\\n\\n.ag-menu-option-part, .ag-menu-separator-part {\\n  display: table-cell;\\n  vertical-align: middle;\\n}\\n\\n.ag-menu-option-text {\\n  white-space: nowrap;\\n}\\n\\n.ag-compact-menu-option {\\n  width: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n  flex-wrap: nowrap;\\n}\\n\\n.ag-compact-menu-option-text {\\n  white-space: nowrap;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n/**\\n ****************************\\n * Rich Select\\n ****************************\\n*/\\n.ag-rich-select {\\n  cursor: default;\\n  outline: none;\\n}\\n\\n.ag-rich-select-value {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-rich-select-value-icon {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  -webkit-box-ordinal-group: 2;\\n          order: 1;\\n}\\n.ag-ltr .ag-rich-select-value-icon {\\n  text-align: right;\\n}\\n.ag-rtl .ag-rich-select-value-icon {\\n  text-align: left;\\n}\\n\\n.ag-rich-select-list {\\n  position: relative;\\n}\\n\\n.ag-rich-select-virtual-list-item {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-rich-select-row {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  white-space: nowrap;\\n}\\n\\n/**\\n ****************************\\n * Pagination\\n ****************************\\n*/\\n.ag-paging-panel {\\n  -webkit-box-align: center;\\n          align-items: center;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-pack: end;\\n          justify-content: flex-end;\\n}\\n\\n.ag-paging-page-summary-panel {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-paging-button {\\n  position: relative;\\n}\\n\\n.ag-disabled .ag-paging-page-summary-panel {\\n  pointer-events: none;\\n}\\n\\n/**\\n ****************************\\n * Tool Panel\\n ****************************\\n*/\\n.ag-tool-panel-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n  cursor: default;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n}\\n\\n.ag-column-select-column,\\n.ag-column-select-column-group,\\n.ag-select-agg-func-item {\\n  position: relative;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n  flex-wrap: nowrap;\\n  text-overflow: ellipsis;\\n  white-space: nowrap;\\n  height: 100%;\\n}\\n.ag-column-select-column > *,\\n.ag-column-select-column-group > *,\\n.ag-select-agg-func-item > * {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-column-select-checkbox {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-tool-panel-horizontal-resize {\\n  cursor: ew-resize;\\n  height: 100%;\\n  position: absolute;\\n  top: 0;\\n  width: 5px;\\n  z-index: 1;\\n}\\n\\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n\\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  left: -3px;\\n}\\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\\n  right: -3px;\\n}\\n\\n.ag-details-row {\\n  width: 100%;\\n}\\n\\n.ag-details-row-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-details-grid {\\n  width: 100%;\\n}\\n\\n.ag-details-grid-fixed-height {\\n  height: 100%;\\n}\\n\\n.ag-header-group-cell {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  height: 100%;\\n  position: absolute;\\n}\\n\\n.ag-cell-label-container {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-pack: justify;\\n          justify-content: space-between;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: reverse;\\n          flex-direction: row-reverse;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  width: 100%;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n\\n.ag-right-aligned-header .ag-cell-label-container {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n}\\n\\n/**\\n ****************************\\n * Side Bar\\n ****************************\\n*/\\n.ag-side-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: reverse;\\n          flex-direction: row-reverse;\\n}\\n\\n.ag-side-bar-left {\\n  -webkit-box-ordinal-group: 0;\\n          order: -1;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n}\\n\\n.ag-side-button-button {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n  flex-wrap: nowrap;\\n  white-space: nowrap;\\n  outline: none;\\n  cursor: pointer;\\n}\\n\\n.ag-side-button-label {\\n  -webkit-writing-mode: vertical-lr;\\n          writing-mode: vertical-lr;\\n}\\n\\n/**\\n ****************************\\n * Status Bar\\n ****************************\\n*/\\n.ag-status-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-pack: justify;\\n          justify-content: space-between;\\n  overflow: hidden;\\n}\\n\\n.ag-status-panel {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n}\\n\\n.ag-status-name-value {\\n  white-space: nowrap;\\n}\\n\\n.ag-status-bar-left {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-center {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n}\\n\\n.ag-status-bar-right {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n}\\n\\n/**\\n ****************************\\n * Widgets\\n ****************************\\n*/\\n.ag-icon {\\n  display: block;\\n  speak: none;\\n}\\n\\n.ag-group {\\n  position: relative;\\n  width: 100%;\\n}\\n\\n.ag-group-title-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-group-title {\\n  display: block;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  min-width: 0;\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n\\n.ag-group-title-bar .ag-group-title {\\n  cursor: default;\\n}\\n\\n.ag-group-toolbar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-group-container {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-disabled .ag-group-container {\\n  pointer-events: none;\\n}\\n\\n.ag-group-container-horizontal {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n  flex-wrap: wrap;\\n}\\n\\n.ag-group-container-vertical {\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n}\\n\\n.ag-column-group-icons {\\n  display: block;\\n}\\n.ag-column-group-icons > * {\\n  cursor: pointer;\\n}\\n\\n.ag-group-item-alignment-stretch .ag-group-item {\\n  -webkit-box-align: stretch;\\n          align-items: stretch;\\n}\\n\\n.ag-group-item-alignment-start .ag-group-item {\\n  -webkit-box-align: start;\\n          align-items: flex-start;\\n}\\n\\n.ag-group-item-alignment-end .ag-group-item {\\n  -webkit-box-align: end;\\n          align-items: flex-end;\\n}\\n\\n.ag-toggle-button-icon {\\n  -webkit-transition: right 0.3s;\\n  transition: right 0.3s;\\n  position: absolute;\\n  top: -1px;\\n}\\n\\n.ag-input-field, .ag-select {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-input-field-input {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  width: 100%;\\n  min-width: 0;\\n}\\n\\n.ag-floating-filter-input .ag-input-field-input[type=date] {\\n  width: 1px;\\n}\\n\\n.ag-range-field {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-angle-select {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-angle-select-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-angle-select-parent-circle {\\n  display: block;\\n  position: relative;\\n}\\n\\n.ag-angle-select-child-circle {\\n  position: absolute;\\n}\\n\\n.ag-slider-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-slider-wrapper .ag-input-field {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-picker-field-display {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n}\\n\\n.ag-picker-field {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n\\n.ag-picker-field-icon {\\n  display: -webkit-box;\\n  display: flex;\\n  border: 0;\\n  padding: 0;\\n  margin: 0;\\n  cursor: pointer;\\n}\\n\\n.ag-picker-field-wrapper {\\n  overflow: hidden;\\n}\\n\\n.ag-label-align-right .ag-label {\\n  -webkit-box-ordinal-group: 2;\\n          order: 1;\\n}\\n.ag-label-align-right > * {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-label-align-top {\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  -webkit-box-align: start;\\n          align-items: flex-start;\\n}\\n.ag-label-align-top > * {\\n  align-self: stretch;\\n}\\n\\n.ag-color-panel {\\n  width: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  text-align: center;\\n}\\n\\n.ag-spectrum-color {\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  position: relative;\\n  overflow: hidden;\\n  cursor: default;\\n}\\n\\n.ag-spectrum-fill {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  right: 0;\\n  bottom: 0;\\n}\\n\\n.ag-spectrum-val {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-dragger {\\n  position: absolute;\\n  pointer-events: none;\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-hue {\\n  cursor: default;\\n  background: -webkit-gradient(linear, right top, left top, color-stop(3%, #ff0000), color-stop(17%, #ffff00), color-stop(33%, #00ff00), color-stop(50%, #00ffff), color-stop(67%, #0000ff), color-stop(83%, #ff00ff), to(#ff0000));\\n  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\\n}\\n\\n.ag-spectrum-alpha {\\n  cursor: default;\\n}\\n\\n.ag-spectrum-hue-background {\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-alpha-background {\\n  background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0)), to(rgb(0, 0, 0)));\\n  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-spectrum-tool {\\n  cursor: pointer;\\n}\\n\\n.ag-spectrum-slider {\\n  position: absolute;\\n  pointer-events: none;\\n}\\n\\n.ag-recent-colors {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-recent-color {\\n  cursor: pointer;\\n}\\n\\n.ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 20px;\\n}\\n.ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 40px;\\n}\\n.ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 60px;\\n}\\n.ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 80px;\\n}\\n.ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 100px;\\n}\\n.ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 120px;\\n}\\n.ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 140px;\\n}\\n.ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 160px;\\n}\\n.ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 180px;\\n}\\n.ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-10 {\\n  padding-left: 200px;\\n}\\n.ag-rtl .ag-column-select-indent-10 {\\n  padding-right: 200px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-10 {\\n  padding-left: 200px;\\n}\\n.ag-rtl .ag-row-group-indent-10 {\\n  padding-right: 200px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-11 {\\n  padding-left: 220px;\\n}\\n.ag-rtl .ag-column-select-indent-11 {\\n  padding-right: 220px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-11 {\\n  padding-left: 220px;\\n}\\n.ag-rtl .ag-row-group-indent-11 {\\n  padding-right: 220px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-12 {\\n  padding-left: 240px;\\n}\\n.ag-rtl .ag-column-select-indent-12 {\\n  padding-right: 240px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-12 {\\n  padding-left: 240px;\\n}\\n.ag-rtl .ag-row-group-indent-12 {\\n  padding-right: 240px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-13 {\\n  padding-left: 260px;\\n}\\n.ag-rtl .ag-column-select-indent-13 {\\n  padding-right: 260px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-13 {\\n  padding-left: 260px;\\n}\\n.ag-rtl .ag-row-group-indent-13 {\\n  padding-right: 260px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-14 {\\n  padding-left: 280px;\\n}\\n.ag-rtl .ag-column-select-indent-14 {\\n  padding-right: 280px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-14 {\\n  padding-left: 280px;\\n}\\n.ag-rtl .ag-row-group-indent-14 {\\n  padding-right: 280px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-15 {\\n  padding-left: 300px;\\n}\\n.ag-rtl .ag-column-select-indent-15 {\\n  padding-right: 300px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-15 {\\n  padding-left: 300px;\\n}\\n.ag-rtl .ag-row-group-indent-15 {\\n  padding-right: 300px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-16 {\\n  padding-left: 320px;\\n}\\n.ag-rtl .ag-column-select-indent-16 {\\n  padding-right: 320px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-16 {\\n  padding-left: 320px;\\n}\\n.ag-rtl .ag-row-group-indent-16 {\\n  padding-right: 320px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-17 {\\n  padding-left: 340px;\\n}\\n.ag-rtl .ag-column-select-indent-17 {\\n  padding-right: 340px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-17 {\\n  padding-left: 340px;\\n}\\n.ag-rtl .ag-row-group-indent-17 {\\n  padding-right: 340px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-18 {\\n  padding-left: 360px;\\n}\\n.ag-rtl .ag-column-select-indent-18 {\\n  padding-right: 360px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-18 {\\n  padding-left: 360px;\\n}\\n.ag-rtl .ag-row-group-indent-18 {\\n  padding-right: 360px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-19 {\\n  padding-left: 380px;\\n}\\n.ag-rtl .ag-column-select-indent-19 {\\n  padding-right: 380px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-19 {\\n  padding-left: 380px;\\n}\\n.ag-rtl .ag-row-group-indent-19 {\\n  padding-right: 380px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-20 {\\n  padding-left: 400px;\\n}\\n.ag-rtl .ag-column-select-indent-20 {\\n  padding-right: 400px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-20 {\\n  padding-left: 400px;\\n}\\n.ag-rtl .ag-row-group-indent-20 {\\n  padding-right: 400px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-21 {\\n  padding-left: 420px;\\n}\\n.ag-rtl .ag-column-select-indent-21 {\\n  padding-right: 420px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-21 {\\n  padding-left: 420px;\\n}\\n.ag-rtl .ag-row-group-indent-21 {\\n  padding-right: 420px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-22 {\\n  padding-left: 440px;\\n}\\n.ag-rtl .ag-column-select-indent-22 {\\n  padding-right: 440px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-22 {\\n  padding-left: 440px;\\n}\\n.ag-rtl .ag-row-group-indent-22 {\\n  padding-right: 440px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-23 {\\n  padding-left: 460px;\\n}\\n.ag-rtl .ag-column-select-indent-23 {\\n  padding-right: 460px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-23 {\\n  padding-left: 460px;\\n}\\n.ag-rtl .ag-row-group-indent-23 {\\n  padding-right: 460px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-24 {\\n  padding-left: 480px;\\n}\\n.ag-rtl .ag-column-select-indent-24 {\\n  padding-right: 480px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-24 {\\n  padding-left: 480px;\\n}\\n.ag-rtl .ag-row-group-indent-24 {\\n  padding-right: 480px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-25 {\\n  padding-left: 500px;\\n}\\n.ag-rtl .ag-column-select-indent-25 {\\n  padding-right: 500px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-25 {\\n  padding-left: 500px;\\n}\\n.ag-rtl .ag-row-group-indent-25 {\\n  padding-right: 500px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-26 {\\n  padding-left: 520px;\\n}\\n.ag-rtl .ag-column-select-indent-26 {\\n  padding-right: 520px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-26 {\\n  padding-left: 520px;\\n}\\n.ag-rtl .ag-row-group-indent-26 {\\n  padding-right: 520px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-27 {\\n  padding-left: 540px;\\n}\\n.ag-rtl .ag-column-select-indent-27 {\\n  padding-right: 540px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-27 {\\n  padding-left: 540px;\\n}\\n.ag-rtl .ag-row-group-indent-27 {\\n  padding-right: 540px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-28 {\\n  padding-left: 560px;\\n}\\n.ag-rtl .ag-column-select-indent-28 {\\n  padding-right: 560px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-28 {\\n  padding-left: 560px;\\n}\\n.ag-rtl .ag-row-group-indent-28 {\\n  padding-right: 560px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-29 {\\n  padding-left: 580px;\\n}\\n.ag-rtl .ag-column-select-indent-29 {\\n  padding-right: 580px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-29 {\\n  padding-left: 580px;\\n}\\n.ag-rtl .ag-row-group-indent-29 {\\n  padding-right: 580px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-30 {\\n  padding-left: 600px;\\n}\\n.ag-rtl .ag-column-select-indent-30 {\\n  padding-right: 600px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-30 {\\n  padding-left: 600px;\\n}\\n.ag-rtl .ag-row-group-indent-30 {\\n  padding-right: 600px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-31 {\\n  padding-left: 620px;\\n}\\n.ag-rtl .ag-column-select-indent-31 {\\n  padding-right: 620px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-31 {\\n  padding-left: 620px;\\n}\\n.ag-rtl .ag-row-group-indent-31 {\\n  padding-right: 620px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-32 {\\n  padding-left: 640px;\\n}\\n.ag-rtl .ag-column-select-indent-32 {\\n  padding-right: 640px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-32 {\\n  padding-left: 640px;\\n}\\n.ag-rtl .ag-row-group-indent-32 {\\n  padding-right: 640px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-33 {\\n  padding-left: 660px;\\n}\\n.ag-rtl .ag-column-select-indent-33 {\\n  padding-right: 660px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-33 {\\n  padding-left: 660px;\\n}\\n.ag-rtl .ag-row-group-indent-33 {\\n  padding-right: 660px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-34 {\\n  padding-left: 680px;\\n}\\n.ag-rtl .ag-column-select-indent-34 {\\n  padding-right: 680px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-34 {\\n  padding-left: 680px;\\n}\\n.ag-rtl .ag-row-group-indent-34 {\\n  padding-right: 680px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-35 {\\n  padding-left: 700px;\\n}\\n.ag-rtl .ag-column-select-indent-35 {\\n  padding-right: 700px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-35 {\\n  padding-left: 700px;\\n}\\n.ag-rtl .ag-row-group-indent-35 {\\n  padding-right: 700px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-36 {\\n  padding-left: 720px;\\n}\\n.ag-rtl .ag-column-select-indent-36 {\\n  padding-right: 720px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-36 {\\n  padding-left: 720px;\\n}\\n.ag-rtl .ag-row-group-indent-36 {\\n  padding-right: 720px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-37 {\\n  padding-left: 740px;\\n}\\n.ag-rtl .ag-column-select-indent-37 {\\n  padding-right: 740px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-37 {\\n  padding-left: 740px;\\n}\\n.ag-rtl .ag-row-group-indent-37 {\\n  padding-right: 740px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-38 {\\n  padding-left: 760px;\\n}\\n.ag-rtl .ag-column-select-indent-38 {\\n  padding-right: 760px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-38 {\\n  padding-left: 760px;\\n}\\n.ag-rtl .ag-row-group-indent-38 {\\n  padding-right: 760px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-39 {\\n  padding-left: 780px;\\n}\\n.ag-rtl .ag-column-select-indent-39 {\\n  padding-right: 780px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-39 {\\n  padding-left: 780px;\\n}\\n.ag-rtl .ag-row-group-indent-39 {\\n  padding-right: 780px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-40 {\\n  padding-left: 800px;\\n}\\n.ag-rtl .ag-column-select-indent-40 {\\n  padding-right: 800px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-40 {\\n  padding-left: 800px;\\n}\\n.ag-rtl .ag-row-group-indent-40 {\\n  padding-right: 800px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-41 {\\n  padding-left: 820px;\\n}\\n.ag-rtl .ag-column-select-indent-41 {\\n  padding-right: 820px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-41 {\\n  padding-left: 820px;\\n}\\n.ag-rtl .ag-row-group-indent-41 {\\n  padding-right: 820px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-42 {\\n  padding-left: 840px;\\n}\\n.ag-rtl .ag-column-select-indent-42 {\\n  padding-right: 840px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-42 {\\n  padding-left: 840px;\\n}\\n.ag-rtl .ag-row-group-indent-42 {\\n  padding-right: 840px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-43 {\\n  padding-left: 860px;\\n}\\n.ag-rtl .ag-column-select-indent-43 {\\n  padding-right: 860px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-43 {\\n  padding-left: 860px;\\n}\\n.ag-rtl .ag-row-group-indent-43 {\\n  padding-right: 860px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-44 {\\n  padding-left: 880px;\\n}\\n.ag-rtl .ag-column-select-indent-44 {\\n  padding-right: 880px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-44 {\\n  padding-left: 880px;\\n}\\n.ag-rtl .ag-row-group-indent-44 {\\n  padding-right: 880px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-45 {\\n  padding-left: 900px;\\n}\\n.ag-rtl .ag-column-select-indent-45 {\\n  padding-right: 900px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-45 {\\n  padding-left: 900px;\\n}\\n.ag-rtl .ag-row-group-indent-45 {\\n  padding-right: 900px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-46 {\\n  padding-left: 920px;\\n}\\n.ag-rtl .ag-column-select-indent-46 {\\n  padding-right: 920px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-46 {\\n  padding-left: 920px;\\n}\\n.ag-rtl .ag-row-group-indent-46 {\\n  padding-right: 920px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-47 {\\n  padding-left: 940px;\\n}\\n.ag-rtl .ag-column-select-indent-47 {\\n  padding-right: 940px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-47 {\\n  padding-left: 940px;\\n}\\n.ag-rtl .ag-row-group-indent-47 {\\n  padding-right: 940px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-48 {\\n  padding-left: 960px;\\n}\\n.ag-rtl .ag-column-select-indent-48 {\\n  padding-right: 960px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-48 {\\n  padding-left: 960px;\\n}\\n.ag-rtl .ag-row-group-indent-48 {\\n  padding-right: 960px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-49 {\\n  padding-left: 980px;\\n}\\n.ag-rtl .ag-column-select-indent-49 {\\n  padding-right: 980px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-49 {\\n  padding-left: 980px;\\n}\\n.ag-rtl .ag-row-group-indent-49 {\\n  padding-right: 980px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-50 {\\n  padding-left: 1000px;\\n}\\n.ag-rtl .ag-column-select-indent-50 {\\n  padding-right: 1000px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-50 {\\n  padding-left: 1000px;\\n}\\n.ag-rtl .ag-row-group-indent-50 {\\n  padding-right: 1000px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-51 {\\n  padding-left: 1020px;\\n}\\n.ag-rtl .ag-column-select-indent-51 {\\n  padding-right: 1020px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-51 {\\n  padding-left: 1020px;\\n}\\n.ag-rtl .ag-row-group-indent-51 {\\n  padding-right: 1020px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-52 {\\n  padding-left: 1040px;\\n}\\n.ag-rtl .ag-column-select-indent-52 {\\n  padding-right: 1040px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-52 {\\n  padding-left: 1040px;\\n}\\n.ag-rtl .ag-row-group-indent-52 {\\n  padding-right: 1040px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-53 {\\n  padding-left: 1060px;\\n}\\n.ag-rtl .ag-column-select-indent-53 {\\n  padding-right: 1060px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-53 {\\n  padding-left: 1060px;\\n}\\n.ag-rtl .ag-row-group-indent-53 {\\n  padding-right: 1060px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-54 {\\n  padding-left: 1080px;\\n}\\n.ag-rtl .ag-column-select-indent-54 {\\n  padding-right: 1080px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-54 {\\n  padding-left: 1080px;\\n}\\n.ag-rtl .ag-row-group-indent-54 {\\n  padding-right: 1080px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-55 {\\n  padding-left: 1100px;\\n}\\n.ag-rtl .ag-column-select-indent-55 {\\n  padding-right: 1100px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-55 {\\n  padding-left: 1100px;\\n}\\n.ag-rtl .ag-row-group-indent-55 {\\n  padding-right: 1100px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-56 {\\n  padding-left: 1120px;\\n}\\n.ag-rtl .ag-column-select-indent-56 {\\n  padding-right: 1120px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-56 {\\n  padding-left: 1120px;\\n}\\n.ag-rtl .ag-row-group-indent-56 {\\n  padding-right: 1120px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-57 {\\n  padding-left: 1140px;\\n}\\n.ag-rtl .ag-column-select-indent-57 {\\n  padding-right: 1140px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-57 {\\n  padding-left: 1140px;\\n}\\n.ag-rtl .ag-row-group-indent-57 {\\n  padding-right: 1140px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-58 {\\n  padding-left: 1160px;\\n}\\n.ag-rtl .ag-column-select-indent-58 {\\n  padding-right: 1160px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-58 {\\n  padding-left: 1160px;\\n}\\n.ag-rtl .ag-row-group-indent-58 {\\n  padding-right: 1160px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-59 {\\n  padding-left: 1180px;\\n}\\n.ag-rtl .ag-column-select-indent-59 {\\n  padding-right: 1180px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-59 {\\n  padding-left: 1180px;\\n}\\n.ag-rtl .ag-row-group-indent-59 {\\n  padding-right: 1180px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-60 {\\n  padding-left: 1200px;\\n}\\n.ag-rtl .ag-column-select-indent-60 {\\n  padding-right: 1200px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-60 {\\n  padding-left: 1200px;\\n}\\n.ag-rtl .ag-row-group-indent-60 {\\n  padding-right: 1200px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-61 {\\n  padding-left: 1220px;\\n}\\n.ag-rtl .ag-column-select-indent-61 {\\n  padding-right: 1220px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-61 {\\n  padding-left: 1220px;\\n}\\n.ag-rtl .ag-row-group-indent-61 {\\n  padding-right: 1220px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-62 {\\n  padding-left: 1240px;\\n}\\n.ag-rtl .ag-column-select-indent-62 {\\n  padding-right: 1240px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-62 {\\n  padding-left: 1240px;\\n}\\n.ag-rtl .ag-row-group-indent-62 {\\n  padding-right: 1240px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-63 {\\n  padding-left: 1260px;\\n}\\n.ag-rtl .ag-column-select-indent-63 {\\n  padding-right: 1260px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-63 {\\n  padding-left: 1260px;\\n}\\n.ag-rtl .ag-row-group-indent-63 {\\n  padding-right: 1260px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-64 {\\n  padding-left: 1280px;\\n}\\n.ag-rtl .ag-column-select-indent-64 {\\n  padding-right: 1280px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-64 {\\n  padding-left: 1280px;\\n}\\n.ag-rtl .ag-row-group-indent-64 {\\n  padding-right: 1280px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-65 {\\n  padding-left: 1300px;\\n}\\n.ag-rtl .ag-column-select-indent-65 {\\n  padding-right: 1300px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-65 {\\n  padding-left: 1300px;\\n}\\n.ag-rtl .ag-row-group-indent-65 {\\n  padding-right: 1300px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-66 {\\n  padding-left: 1320px;\\n}\\n.ag-rtl .ag-column-select-indent-66 {\\n  padding-right: 1320px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-66 {\\n  padding-left: 1320px;\\n}\\n.ag-rtl .ag-row-group-indent-66 {\\n  padding-right: 1320px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-67 {\\n  padding-left: 1340px;\\n}\\n.ag-rtl .ag-column-select-indent-67 {\\n  padding-right: 1340px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-67 {\\n  padding-left: 1340px;\\n}\\n.ag-rtl .ag-row-group-indent-67 {\\n  padding-right: 1340px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-68 {\\n  padding-left: 1360px;\\n}\\n.ag-rtl .ag-column-select-indent-68 {\\n  padding-right: 1360px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-68 {\\n  padding-left: 1360px;\\n}\\n.ag-rtl .ag-row-group-indent-68 {\\n  padding-right: 1360px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-69 {\\n  padding-left: 1380px;\\n}\\n.ag-rtl .ag-column-select-indent-69 {\\n  padding-right: 1380px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-69 {\\n  padding-left: 1380px;\\n}\\n.ag-rtl .ag-row-group-indent-69 {\\n  padding-right: 1380px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-70 {\\n  padding-left: 1400px;\\n}\\n.ag-rtl .ag-column-select-indent-70 {\\n  padding-right: 1400px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-70 {\\n  padding-left: 1400px;\\n}\\n.ag-rtl .ag-row-group-indent-70 {\\n  padding-right: 1400px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-71 {\\n  padding-left: 1420px;\\n}\\n.ag-rtl .ag-column-select-indent-71 {\\n  padding-right: 1420px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-71 {\\n  padding-left: 1420px;\\n}\\n.ag-rtl .ag-row-group-indent-71 {\\n  padding-right: 1420px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-72 {\\n  padding-left: 1440px;\\n}\\n.ag-rtl .ag-column-select-indent-72 {\\n  padding-right: 1440px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-72 {\\n  padding-left: 1440px;\\n}\\n.ag-rtl .ag-row-group-indent-72 {\\n  padding-right: 1440px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-73 {\\n  padding-left: 1460px;\\n}\\n.ag-rtl .ag-column-select-indent-73 {\\n  padding-right: 1460px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-73 {\\n  padding-left: 1460px;\\n}\\n.ag-rtl .ag-row-group-indent-73 {\\n  padding-right: 1460px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-74 {\\n  padding-left: 1480px;\\n}\\n.ag-rtl .ag-column-select-indent-74 {\\n  padding-right: 1480px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-74 {\\n  padding-left: 1480px;\\n}\\n.ag-rtl .ag-row-group-indent-74 {\\n  padding-right: 1480px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-75 {\\n  padding-left: 1500px;\\n}\\n.ag-rtl .ag-column-select-indent-75 {\\n  padding-right: 1500px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-75 {\\n  padding-left: 1500px;\\n}\\n.ag-rtl .ag-row-group-indent-75 {\\n  padding-right: 1500px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-76 {\\n  padding-left: 1520px;\\n}\\n.ag-rtl .ag-column-select-indent-76 {\\n  padding-right: 1520px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-76 {\\n  padding-left: 1520px;\\n}\\n.ag-rtl .ag-row-group-indent-76 {\\n  padding-right: 1520px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-77 {\\n  padding-left: 1540px;\\n}\\n.ag-rtl .ag-column-select-indent-77 {\\n  padding-right: 1540px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-77 {\\n  padding-left: 1540px;\\n}\\n.ag-rtl .ag-row-group-indent-77 {\\n  padding-right: 1540px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-78 {\\n  padding-left: 1560px;\\n}\\n.ag-rtl .ag-column-select-indent-78 {\\n  padding-right: 1560px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-78 {\\n  padding-left: 1560px;\\n}\\n.ag-rtl .ag-row-group-indent-78 {\\n  padding-right: 1560px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-79 {\\n  padding-left: 1580px;\\n}\\n.ag-rtl .ag-column-select-indent-79 {\\n  padding-right: 1580px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-79 {\\n  padding-left: 1580px;\\n}\\n.ag-rtl .ag-row-group-indent-79 {\\n  padding-right: 1580px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-80 {\\n  padding-left: 1600px;\\n}\\n.ag-rtl .ag-column-select-indent-80 {\\n  padding-right: 1600px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-80 {\\n  padding-left: 1600px;\\n}\\n.ag-rtl .ag-row-group-indent-80 {\\n  padding-right: 1600px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-81 {\\n  padding-left: 1620px;\\n}\\n.ag-rtl .ag-column-select-indent-81 {\\n  padding-right: 1620px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-81 {\\n  padding-left: 1620px;\\n}\\n.ag-rtl .ag-row-group-indent-81 {\\n  padding-right: 1620px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-82 {\\n  padding-left: 1640px;\\n}\\n.ag-rtl .ag-column-select-indent-82 {\\n  padding-right: 1640px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-82 {\\n  padding-left: 1640px;\\n}\\n.ag-rtl .ag-row-group-indent-82 {\\n  padding-right: 1640px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-83 {\\n  padding-left: 1660px;\\n}\\n.ag-rtl .ag-column-select-indent-83 {\\n  padding-right: 1660px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-83 {\\n  padding-left: 1660px;\\n}\\n.ag-rtl .ag-row-group-indent-83 {\\n  padding-right: 1660px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-84 {\\n  padding-left: 1680px;\\n}\\n.ag-rtl .ag-column-select-indent-84 {\\n  padding-right: 1680px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-84 {\\n  padding-left: 1680px;\\n}\\n.ag-rtl .ag-row-group-indent-84 {\\n  padding-right: 1680px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-85 {\\n  padding-left: 1700px;\\n}\\n.ag-rtl .ag-column-select-indent-85 {\\n  padding-right: 1700px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-85 {\\n  padding-left: 1700px;\\n}\\n.ag-rtl .ag-row-group-indent-85 {\\n  padding-right: 1700px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-86 {\\n  padding-left: 1720px;\\n}\\n.ag-rtl .ag-column-select-indent-86 {\\n  padding-right: 1720px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-86 {\\n  padding-left: 1720px;\\n}\\n.ag-rtl .ag-row-group-indent-86 {\\n  padding-right: 1720px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-87 {\\n  padding-left: 1740px;\\n}\\n.ag-rtl .ag-column-select-indent-87 {\\n  padding-right: 1740px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-87 {\\n  padding-left: 1740px;\\n}\\n.ag-rtl .ag-row-group-indent-87 {\\n  padding-right: 1740px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-88 {\\n  padding-left: 1760px;\\n}\\n.ag-rtl .ag-column-select-indent-88 {\\n  padding-right: 1760px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-88 {\\n  padding-left: 1760px;\\n}\\n.ag-rtl .ag-row-group-indent-88 {\\n  padding-right: 1760px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-89 {\\n  padding-left: 1780px;\\n}\\n.ag-rtl .ag-column-select-indent-89 {\\n  padding-right: 1780px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-89 {\\n  padding-left: 1780px;\\n}\\n.ag-rtl .ag-row-group-indent-89 {\\n  padding-right: 1780px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-90 {\\n  padding-left: 1800px;\\n}\\n.ag-rtl .ag-column-select-indent-90 {\\n  padding-right: 1800px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-90 {\\n  padding-left: 1800px;\\n}\\n.ag-rtl .ag-row-group-indent-90 {\\n  padding-right: 1800px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-91 {\\n  padding-left: 1820px;\\n}\\n.ag-rtl .ag-column-select-indent-91 {\\n  padding-right: 1820px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-91 {\\n  padding-left: 1820px;\\n}\\n.ag-rtl .ag-row-group-indent-91 {\\n  padding-right: 1820px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-92 {\\n  padding-left: 1840px;\\n}\\n.ag-rtl .ag-column-select-indent-92 {\\n  padding-right: 1840px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-92 {\\n  padding-left: 1840px;\\n}\\n.ag-rtl .ag-row-group-indent-92 {\\n  padding-right: 1840px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-93 {\\n  padding-left: 1860px;\\n}\\n.ag-rtl .ag-column-select-indent-93 {\\n  padding-right: 1860px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-93 {\\n  padding-left: 1860px;\\n}\\n.ag-rtl .ag-row-group-indent-93 {\\n  padding-right: 1860px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-94 {\\n  padding-left: 1880px;\\n}\\n.ag-rtl .ag-column-select-indent-94 {\\n  padding-right: 1880px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-94 {\\n  padding-left: 1880px;\\n}\\n.ag-rtl .ag-row-group-indent-94 {\\n  padding-right: 1880px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-95 {\\n  padding-left: 1900px;\\n}\\n.ag-rtl .ag-column-select-indent-95 {\\n  padding-right: 1900px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-95 {\\n  padding-left: 1900px;\\n}\\n.ag-rtl .ag-row-group-indent-95 {\\n  padding-right: 1900px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-96 {\\n  padding-left: 1920px;\\n}\\n.ag-rtl .ag-column-select-indent-96 {\\n  padding-right: 1920px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-96 {\\n  padding-left: 1920px;\\n}\\n.ag-rtl .ag-row-group-indent-96 {\\n  padding-right: 1920px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-97 {\\n  padding-left: 1940px;\\n}\\n.ag-rtl .ag-column-select-indent-97 {\\n  padding-right: 1940px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-97 {\\n  padding-left: 1940px;\\n}\\n.ag-rtl .ag-row-group-indent-97 {\\n  padding-right: 1940px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-98 {\\n  padding-left: 1960px;\\n}\\n.ag-rtl .ag-column-select-indent-98 {\\n  padding-right: 1960px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-98 {\\n  padding-left: 1960px;\\n}\\n.ag-rtl .ag-row-group-indent-98 {\\n  padding-right: 1960px;\\n}\\n\\n.ag-ltr .ag-column-select-indent-99 {\\n  padding-left: 1980px;\\n}\\n.ag-rtl .ag-column-select-indent-99 {\\n  padding-right: 1980px;\\n}\\n\\n.ag-ltr .ag-row-group-indent-99 {\\n  padding-left: 1980px;\\n}\\n.ag-rtl .ag-row-group-indent-99 {\\n  padding-right: 1980px;\\n}\\n\\n.ag-ltr {\\n  direction: ltr;\\n}\\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n          flex-direction: row;\\n}\\n\\n.ag-rtl {\\n  direction: rtl;\\n}\\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: reverse;\\n          flex-direction: row-reverse;\\n}\\n.ag-rtl .ag-icon-contracted,\\n.ag-rtl .ag-icon-tree-closed {\\n  display: block;\\n  -webkit-transform: rotate(180deg);\\n          transform: rotate(180deg);\\n}\\n\\n.ag-layout-print.ag-body-viewport {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n.ag-layout-print.ag-root-wrapper {\\n  display: -webkit-inline-box;\\n  display: inline-flex;\\n}\\n.ag-layout-print .ag-center-cols-clipper {\\n  min-width: 100%;\\n}\\n.ag-layout-print .ag-body-horizontal-scroll {\\n  display: none;\\n}\\n.ag-layout-print.ag-force-vertical-scroll {\\n  overflow-y: visible !important;\\n}\\n\\n@media print {\\n  .ag-root-wrapper.ag-layout-print,\\n.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\\n.ag-root-wrapper.ag-layout-print .ag-root,\\n.ag-root-wrapper.ag-layout-print .ag-body-viewport,\\n.ag-root-wrapper.ag-layout-print .ag-center-cols-container,\\n.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\\n.ag-root-wrapper.ag-layout-print .ag-center-cols-clipper,\\n.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\\n.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\\n    height: auto !important;\\n    overflow: hidden !important;\\n    display: block !important;\\n  }\\n  .ag-root-wrapper.ag-layout-print .ag-row {\\n    page-break-inside: avoid;\\n  }\\n}\\n.ag-body .ag-body-viewport {\\n  -webkit-overflow-scrolling: touch;\\n}\\n\\n.ag-chart {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  overflow: hidden;\\n  width: 100%;\\n  height: 100%;\\n}\\n\\n.ag-chart-components-wrapper {\\n  position: relative;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-title-edit {\\n  position: absolute;\\n  display: none;\\n  top: 0;\\n  left: 0;\\n  text-align: center;\\n}\\n\\n.ag-chart-title-edit.currently-editing {\\n  display: inline-block;\\n}\\n\\n.ag-chart-canvas-wrapper {\\n  position: relative;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  overflow: hidden;\\n}\\n\\n.ag-charts-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-menu {\\n  position: absolute;\\n  top: 10px;\\n  width: 24px;\\n  overflow: hidden;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n}\\n.ag-ltr .ag-chart-menu {\\n  right: 20px;\\n}\\n.ag-rtl .ag-chart-menu {\\n  left: 20px;\\n}\\n\\n.ag-chart-docked-container {\\n  position: relative;\\n  width: 0;\\n  min-width: 0;\\n  -webkit-transition: min-width 0.4s;\\n  transition: min-width 0.4s;\\n}\\n\\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\\n  max-width: 0;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu {\\n  width: 100%;\\n  height: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tabbed-menu-header {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n  cursor: default;\\n}\\n\\n.ag-chart-tabbed-menu-body {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  -webkit-box-align: stretch;\\n          align-items: stretch;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-tab {\\n  width: 100%;\\n  overflow: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings {\\n  overflow-x: hidden;\\n}\\n\\n.ag-chart-settings-wrapper {\\n  position: relative;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  width: 100%;\\n  height: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n  overflow: hidden;\\n}\\n\\n.ag-chart-settings-nav-bar {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  width: 100%;\\n  height: 30px;\\n  padding: 0 10px;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n}\\n\\n.ag-chart-settings-card-selector {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  justify-content: space-around;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  height: 100%;\\n  padding: 0 10px;\\n}\\n\\n.ag-chart-settings-card-item {\\n  cursor: pointer;\\n  width: 10px;\\n  height: 10px;\\n  background-color: #000;\\n  position: relative;\\n}\\n.ag-chart-settings-card-item.ag-not-selected {\\n  opacity: 0.2;\\n}\\n.ag-chart-settings-card-item::before {\\n  content: \\\" \\\";\\n  display: block;\\n  position: absolute;\\n  background-color: transparent;\\n  left: 50%;\\n  top: 50%;\\n  margin-left: -10px;\\n  margin-top: -10px;\\n  width: 20px;\\n  height: 20px;\\n}\\n\\n.ag-chart-settings-prev,\\n.ag-chart-settings-next {\\n  position: relative;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n\\n.ag-chart-settings-prev-button,\\n.ag-chart-settings-next-button {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  cursor: pointer;\\n  opacity: 0;\\n}\\n\\n.ag-chart-settings-mini-charts-container {\\n  position: relative;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  overflow-x: hidden;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-settings-mini-wrapper {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  width: 100%;\\n  min-height: 100%;\\n  overflow: hidden;\\n}\\n.ag-chart-settings-mini-wrapper.ag-animating {\\n  -webkit-transition: left 0.3s;\\n  transition: left 0.3s;\\n  -webkit-transition-timing-function: ease-in-out;\\n          transition-timing-function: ease-in-out;\\n}\\n\\n.ag-chart-mini-thumbnail {\\n  cursor: pointer;\\n}\\n\\n.ag-chart-mini-thumbnail-canvas {\\n  display: block;\\n}\\n\\n.ag-chart-data-wrapper,\\n.ag-chart-format-wrapper {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n          flex-direction: column;\\n  position: relative;\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n          user-select: none;\\n}\\n\\n.ag-chart-data-wrapper {\\n  height: 100%;\\n  overflow-y: auto;\\n}\\n\\n.ag-chart-data-section,\\n.ag-chart-format-section {\\n  display: -webkit-box;\\n  display: flex;\\n  margin: 0;\\n}\\n\\n.ag-chart-empty-text {\\n  display: -webkit-box;\\n  display: flex;\\n  top: 0;\\n  width: 100%;\\n  height: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n}\\n\\n.ag-chart .ag-chart-menu {\\n  opacity: 0;\\n  pointer-events: none;\\n}\\n\\n.ag-chart-menu-hidden:hover .ag-chart-menu {\\n  opacity: 1;\\n  pointer-events: all;\\n}\\n\\n.ag-charts-font-size-color {\\n  display: -webkit-box;\\n  display: flex;\\n  align-self: stretch;\\n  -webkit-box-pack: justify;\\n          justify-content: space-between;\\n}\\n\\n.ag-charts-data-group-item {\\n  position: relative;\\n}\\n\\n.ag-date-time-list-page-title-bar {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-column-labels-row,\\n.ag-date-time-list-page-entries-row {\\n  display: -webkit-box;\\n  display: flex;\\n}\\n\\n.ag-date-time-list-page-column-label,\\n.ag-date-time-list-page-entry {\\n  flex-basis: 0;\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n}\\n\\n.ag-date-time-list-page-entry {\\n  cursor: pointer;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABWoAAsAAAAAJ9AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAmYAAAR2ZcBn9U9TLzIAAANwAAAAQQAAAFZWUVMIY21hcAAAA7QAAAIcAAAFnIMq5ipnbHlmAAAF0AAAC80AABVszjC1ZWhlYWQAABGgAAAANAAAADZ2zsSBaGhlYQAAEdQAAAAeAAAAJAfSBDFobXR4AAAR9AAAABcAAAE0xzj/+2xvY2EAABIMAAAAdQAAAJwYJx3EbWF4cAAAEoQAAAAfAAAAIAFjAKpuYW1lAAASpAAAATUAAAJG5xgJvXBvc3QAABPcAAAByQAAAqgIzxhUeJx9lEtyElEUhv+mm0gCJilFjRhjovEVXzF2uhuaRx4QEDJwYFkOnMSyyrKKcsQ6XIAryNAVuAAHrsAFOHDo2PK7h0ZMBuEWze3z+M9//3Mu8iTNaVNN5doHhy81PzwafVRFgcYf5/9/7w0/vD9SYfKGL7DfgrygpHnd1GuN9M2b90beca7sV/xX/jv/s//F/yWfqFU9JrqobVakmGeoRFXVlCqnGWwR+7oaRPs8m2a9oKvKm6ernpaoGZHTM8QN9XVPi+B0DKetPaISlsNs8xyw7mvhjIgUlDy+be1gDVBkBU3qKmtWz2HZhkmL/Ab+i9Tcp3ZIVgdfB3Z5LE32LV2Ck8sITNWe3ugpfndSh1LNchK+kQ7sPbS3NTSZRDXBqVHLYW/BYGKvgReTsQl6lajdTNEN3SK7Bk4btJZl1y17jcgYbgl9CeycMVxLWmf/Qm/pRREW45y2aTpW4CHsp/aO4aV6dMLaAmtA7BM4TK2uPw+oFdKVGPQlfEN90rG+6rt+6Kd+64/O6TJ1YjvDHuj7Z2pTQMHT0V28zX9Wd9YZZuB01MmIWU5eM3UifL1MQ1etyMmcOgn7EGti8XPwdPFd2KT0I6BGaHVdp/OsHd4jos9n09lglUzpHlOwYBPct1moMKNbum6I4zlM0XoZRLcb86uYbg3wrlnfnLruhi3am7sLrt8VurPCb8gJq6bTId5VLA5parlhWSnsHcYz/Cmsp9Ucq2VYhbqLz81Y325Hl0rrnGfMJNYduxl9m6/bMKhmN7VMDx37VtaxKxYXWZbHP0GY3fDEtHMz3YGbm4/BX0ArchMAAHicY2BkmsY4gYGVgYGpimkPAwNDD4RmfMBgyMgEFGVgZWbACgLSXFMYDjDofjRifgHkRjG/BZnCwAiSAwDkfwr5AAAAeJy11AdSG0EQheFfgSxwIOecEWCCySCiEHAJnCkcKJw5h8/me/QJ8Bt1+wC4ylv1qXdGq92ZWr0GaoCczEkesvVkdEYmq9lMdT5HY3U+z2+NC9ST1XmRK264s6X7e80WueSaW8tUR3+PjK4u0McEzzU6YoUDdjlmjXNWKbHBPnucsMUmp7pmh3XKnLHNIRUu9Pu0irzWWEudntuglTTpjs208JgntNJGOx100kU3PfTqWf0MMMgQw4wwyhjjevokU0wzw6x2U2SeBRb1/TOWWNYia3nYcfTA69OxcrB7vHa+WtKO9062NrXZnfXy2fZh5eIfbvYfjkL6yP2K0Tnpjbq028uwIi/CgbwMu/IqHMvrsCZvQrrn27Aq70JJrsKGXId9eR/25EM4kY9hSz6FTbkJp3Ib0j/vc9iRL2FdvoayfAtn8j1sy49wKD9DRe6CXqBlXMqLZR2p5lzKl+VdypjVuJQ9q3WkWudItd6RaoMj1UaXMmlNjlQLLr1Ja3ak2uJI9ZFTdrCgFGFBecKeOiULa3XKGNbmlDas3Sl3WIdTArFOpyxiXU6pxLqd8on1OCUV63XKLNbnlF6s3ynH2IBTorFBp+xiQ04px4ad8o6NOCUfG3XqAdiYUzfAxp36Ajbh1CGwSadegU05dQ1s2ql/YDMu9UubdSknNufUXbCiU5/B5p06DrbgqutfdOpCWFA/wgLLfwB3H6YceJztWHtwVNUZv9852b179/2+WUI22b3ZXNjshib7uEkWdkMSSMAQcVwwQDFEikONtqK0KBAR/2hNHavjDPgH6Uw7bcPUmUZaph0VKk6VEkeldqTtDOof1dKSqmlxGLGBvfQ7Z3dDAqnaPzttsnvej+98z9+3Agj4R6ZoXLAIAoR8sugLpUKaGiJTunV6Gi7qd2F5kMZz09PZ7PQ0W264evnqZfoR/Ugw4C6H4BOqBMEjyqKqGTRWRrCgMmt6VFZ+8PTTsZdfJlksYk/rg/39/e18JMYHyGOzOv0b+vv1T2evR7LYpbSDdggS3iNrroRL1iQ43DaZP5/Rj+pH4WJmUjfA5ckMrNGPCoSvP0APCF6hFreHRaNo9Mp+2d+spbV0Uq1X6z2iioQidUgfXNwxOKC1tmoDg++VGwNtBw+2HTjAS3pgzhRvFF4tz2LJrivx0Y4tkfMy4VLUhE9hNfxyePj48DDsGh6mtsJpZOgufUQo0Xmenhc8QoBxP2wHn8sbhESoOQspV7IRJNBkkOmDVz4JJoL4oWZeF6b0v/VNwFgfPY/9OZNXPgF/3ykYu3nu+fL851MU9g2nP144Q2I3nlw4c+/sMyk/0xVyReY7F8+k5uvOLQ5+/fpzi7yjD9CvoD6ZhEpBkECUJaBaDRiZ6Hxef3M6xcRGPtAH2rbqBchOTJw6YrEEHP6mFU1+RwB+DT/I4IT+MiybmMjabMGq+kC4qSkciCwMsuMr+B1x1POifByCEAm5QgbFlfAorgy4FBeNF54gO/TVXFbHhqdJYlgfYZIqSqukh+QInmFAGgmqD+yCVv0UmgWN66f0iZJ9FN/zMD2BrwkI1ZzzRh9qbUjmDa8fGZVGPtUrHqSBHNGtSlMeLg7rKUYyvIalAnoKXqMvNoULz5PuW5uUwvNsjnQrTYVtpLtkE0/SJ5muSYDsEiVQUV3gImzo1MdgY6d+WB/rhI1YkPScLmzEJbjdKAhXr9Cv0Q8FJ2pItdAjPCx8D6lF81ANswilSgrlLBtlfwY8Ea+dKOHGilQySxLNQfB5jeF6tREU3IAq0JzWstDsl712HMHhVDLdHKQJJr9GUBtJMgu4i5Q2FffUgF8OEjTFtNaEm4Pg9TnATsKNsITidj+9R7zzXoPep2qaStKqtvKo3gEjBKjBeZboA5I76HXKXqfZYKsMeeQ6j9lmqjB5HfJCq1zrNxKT3fwzd9hf7bI5JbtJNDmsLr/F7fRWudw1fnely2S2iRUGR9BttBjcbovNbV7aECWUmCwmA0kR0eywGkmCgtltIn81ffMRA2lRr/yWEzPy5pXv0Ad+H5BchSf/aK0JekzuqtqIL5yq9y5U3ZLDbPN5k821Df7KSrPD7ggs9jssEbfFbgm4rLLb7jIZRU+oMeKx+Sp9TrPF4fbYJItERdEgeqq/e+y4ZDGaRZvZIJ2RHCbJLp12SGanW/i/7P6rZTcnnoEqou9R0Xrpch7QYA3+Y0CDy7phEsMbrCn5rznyXvW5stZYmEumE83+GsgRJjq/z+sAGUVkh3D9EhCZMtSnkp8toviGmyTR4HW4PM6l7Wa70WZyeHx9eatZcnvdFf23VUguHPks5k48OGS3WfxOT+XGjQ63weC0uqrvedDhc9slybhvt9FkdDnc/ytvnBNDIui4RRljzgS0IL46Di3QmpsdQx5DPFElNArLmJ5ocpoZbQ0+ChjYMipGtDJAm5VxIIgWreFYmNmtpsppZouinNYaSRgql8V61g+sH91ZTam3Kx6PaZuHbhvdubCiwtc3GO/yLhjc33PLqkw01bAqGjK11N26Kurt6asL3LH/cfIj3Lu4a89as0XbrDTG0glYsXutxbx0m1R9a/PyrVpdW020uyHVsKXFG+3J1/VkNuHgLPrtiMHiSD9CA0YLJzWSJaWXcE8BBpxEH4OT6FJIRff+OwJ49xP7BxcgZfrJhTtHf8ppr+aNhRXw7eiqaHTVOlZAQNu6HK8slufW7ulixJpL9SjS1BPlRQm7DCHvRcGGFIk+0aWmQgbZp6U0OjR9bJo8Wxh/O3eWTE2PHof+6Vzu7bPZ0be5yHhxiUyh3LjVaqooM2xHLr30UmZ6Wk/l85A6cSLDMbNVsBbxBq4v4w2GwaqEGkERVKFBWCIImpJKyLO+kc/pI/4+nssd42XhjX/XmR4u/uVKdbZUIzmmmfdfT5MAiPoj+PXgPSn8qvhlYyLWIazpENPRwml+FF5BntUnsAW/0CfIDn6vvjqHd+X0ESQhm83OwzMP6jomFsizC5xlsCufJ0c5y3TrXL9oYphJY3BGDdHlZT/IfCIJTrYxyN82WbaRA+QkZiABtBLBgxEqAymlqEe8hdYgI8aNKD4WuuzQANjgyqb8MLxUGRtr3dLSsqV1bExZGn4G+vSfwy7eBuXaJFxUMsrNLQP3DbTcjK1ofgyrlWxoy46BFs7Xq1fpJMfE1/E1hPiSJRoGlhUhHQaWXJX6DHuSBb29I5e0S6RBu6QhOHsdkoVeVm7GPvkAZ/TXe3shWY8t/GjLent7d2KNn0u/g2QZjz9Dn0EqXBzTJnyAionAEj2lCph76CP9QDp0/V1MQDbo6PfIOznY9S4fox595B0+NuNzruksyiA1819Ex+UvtKKsh7Pl+9+kbxbvn7l2hpDczKWoQ2VKGFHFa/9QpmTGN44XfSNzcTLANzK6noFWGse6DVpKOnWOOnnuyaKnjGmCyBI5cu7ChdjJkzFekiCvvsXLmbcVc8IQ05V5s0JIsiZGERkaAQOICgwksYXz5Yh6RzzWu2ZT6/YGPR6ugzXYgLfCdWxwvpRRH9i0pjcWrwvr8Ybt+od1YXirYXsrHyvTdzfmDD4hKNQjfQqDWKIyN2EINfsZ/EqmgfE3lErQynF7+9p227M8O+jBUn/BFQiEAwFIFZ7Lw/fzdCjS2BjBPGIbX3Io3FSpVOKn4CaHuFsoyXAv3YMa28Z9W7r4L2v1WIFoRC4jn0SjA/mtsqQMWV6PbAG2CkOQ7E/4sanCLU+h+zZI1W1LtK32tupaCPraV2wHINTri8sH/xyDcx7JanKOphc1u2CBSSZgIgdMCJ/sbucZeOgpyWJxWBdZJMtg47KgT39v4TrrNqMhkGr4kmzB7eQJp9Nj94/aKa3S/2L0qpVJ98GKChBN7jOCmb9jnI6j9dUKi4TlwkrhJiEvbBIGhTvxXUEiu6mdiBWRRqIST5ZodYaQy48BVEsbvDILSCmuSqLqQ/wgKjLv+DkzIl45kVKNYiKlRQEZkUAH7UsgDlYjRkX0JbR6dDHUtWhFFJCe6IpF+vv6+9d6UA27C6f+PqUkiVQwAUkqtfCCObYuH5OiKxftlGLr1sXM7XXNC4JQeBX27gEYziVvagHYnYNf7WbrkRet0X0nWrr30Z/Me341710pvGqUcPnUGy4nXgZ7wMEPl+5d1N1ApFge7wGEqP5ocGXLQy+uTu37ZzoykNu7N4yrKcDeYXjoBlvknpiMZ/RT0JrRyccZlu226cLs3wO8wuKyVTmZttQytjmZVdEwh2ms38xmSgb16M4dnV1dnTt2grPcevSezRtTmpbauPlsuUHPswn9H3MXX9k7ZxFvlGyI0WJFG08zanggKPp79T8grev+zs77H2VF1xejkkyV1mMx/YUJviEXEGUMtuy3j7m/aPHMYLKNZQbXsGEvHeJxlSMZ5v8A93JEUvSDhffJkcJadNRZmOQD+uEcmSqcLt9JySEmPY8E58ABDnIIY19fSe6HKGVzEimOUqpf0C/MnUPsivRgwOS75z+zuKA092Pq4b+bsN8qNLgLPu0snNT/1AFVrPUbqOkorYuTTvZCD77mOA82HbfP8ClOxouxgeVL5GMeEqCVjGOMYKo5y88PCW7BLySYH/XxVNdvFOUssExWQcNOMMzsmwUSkmlNxpUyfjQgrxQxgBZdlswhAFj85byp8NwjbT1lpNDRtL7mvoGew8lCN3mFYYLYCsuyqjuWtg60jOXh7v2VX21vLYKFptWG9fnbcSV54V8PFbSvAAAAeJxjYGRgYADiJZeya+P5bb4ycDO/AApEcT7e1wCj///+/5v5LfNboEoOBiYgyQAAoN8P3nicY2BkYGB+wcAAIv///v+b+S0DIwMq8AUAntwHCgAAeJxjYGBgYH4Bwv9/Q+ihjekBAG/aMMwAeJxjYAACKYYghiyGJQz7GN4xSjA6MZYwTmNcxXiH8R/THeZdzFdY3Fh2sJxh1WEtY53Cuob1G5semxtbHNsitgfsbOwK7G7sEewl7Ec4mDjSOHk4FTjTOA9w3uL8xcXBJcalwmXE5cYVwpXBtY10CAAggCv3AAAAeJxjYGRgYPBlmMfAwwACTEDMBYQMDP/BfAYAIOsCDgB4nHWRPU7DQBCFnxMniBghJCREx1Y0SM5PQZEuFHGfIgWdE68dR7bXWm8ipeMYnIBjUHIETsEheDFTREjZ1a6/+fbNNAZwgy94OC4PV+19XB1csPrjLulW2Cc/CPcQ4Em4T/8sPKB9EQ7YWXKC51/S3ONNuINrvAt36T+EffKncA93+Bbu0/8ID7D0fOEAj95rnEU2T2ZFnVd6obNdEdtTdcpLbZvcVGocjk51pCttY6cTtTqoZp9NnEtVak2p5qZyuiiMqq3Z6rULN87V0+EwFR+uTYkYGSJY5EgwQ4GaVEFjwZNhRxPz9VzqnF/yWDSsDGuFMUKMzqYjnqrtiOH4TdixwoF3gz17JrQOKeuUGcO/ojBvJx/TBbehqdu3Lc2aPsSm7aoxxZA7/ZcPmeKkXwK+aWkAAAB4nG2SB2/bMBSE/cWS7dhp46ZtuvceapvuvXeb/geGomUiEimQlO3k15e1gwAB+gASd4eHe8cHtpZai+q3/l+bLNEmIaVDlx7L9BmwwiEOs8qQI6xxlGMcZ50TnOQUpznDWc5xngtc5BKXucJVrnGdG9zkFre5w10y7nGfB2zwkEc85glPecZzXvCSV7zmDW95x3s+8JFPfOYLX/nGd37wk1/8ZpM/rYEoCqcKEbQ1HeGcnfq28LIjhZGqTOVYuDCUYyW3t+wsmwOVr+8L2uQqKFdpI4Ja25cbs9e5Im1pXVbrSFw3kqYyvi+tCU7IoPJE2nonlc5635Z+ksaTbSS58jJVsxigO7+zjZ6a1SLOypfVjsp8Kfy4HVFnpMs4Ph1p50NSOF2nhbNNncSGkJRqFDqlNjFHt7Qi16boVWKmK72rkkqZphdzL5hRs5AYa9TA2JCJsrRTlad1dFHtWpu01hMberVTE20bP3TRzGZbTQjWZHY0Wj0omNTpYhwSLyaq76tol+V2avbgv1iDBZy39RY4pg5xTWvBKXVwr8tzydbK9BqzeA+CAocioLEYpngkJWO22WIW/0ZORUPNDhNG7LZafwFegLa2AAAA\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.ag-theme-alpine {\n  -webkit-font-smoothing: antialiased;\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n  font-size: 13px;\n  line-height: normal;\n}\n@font-face {\n  font-family: \"agGridAlpine\";\n  src: url(${___CSS_LOADER_URL_REPLACEMENT_0___}) format(\"woff\");\n  font-weight: normal;\n  font-style: normal;\n}\n.ag-theme-alpine .ag-icon {\n  font-family: \"agGridAlpine\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.ag-theme-alpine .ag-icon-aggregation::before {\n  content: \"\\\\f101\";\n}\n.ag-theme-alpine .ag-icon-arrows::before {\n  content: \"\\\\f102\";\n}\n.ag-theme-alpine .ag-icon-asc::before {\n  content: \"\\\\f103\";\n}\n.ag-theme-alpine .ag-icon-cancel::before {\n  content: \"\\\\f104\";\n}\n.ag-theme-alpine .ag-icon-chart::before {\n  content: \"\\\\f105\";\n}\n.ag-theme-alpine .ag-icon-color-picker::before {\n  content: \"\\\\f109\";\n}\n.ag-theme-alpine .ag-icon-columns::before {\n  content: \"\\\\f10a\";\n}\n.ag-theme-alpine .ag-icon-contracted::before {\n  content: \"\\\\f10b\";\n}\n.ag-theme-alpine .ag-icon-copy::before {\n  content: \"\\\\f10c\";\n}\n.ag-theme-alpine .ag-icon-cross::before {\n  content: \"\\\\f10d\";\n}\n.ag-theme-alpine .ag-icon-csv::before {\n  content: \"\\\\f10e\";\n}\n.ag-theme-alpine .ag-icon-desc::before {\n  content: \"\\\\f10f\";\n}\n.ag-theme-alpine .ag-icon-excel::before {\n  content: \"\\\\f110\";\n}\n.ag-theme-alpine .ag-icon-expanded::before {\n  content: \"\\\\f111\";\n}\n.ag-theme-alpine .ag-icon-eye-slash::before {\n  content: \"\\\\f112\";\n}\n.ag-theme-alpine .ag-icon-eye::before {\n  content: \"\\\\f113\";\n}\n.ag-theme-alpine .ag-icon-filter::before {\n  content: \"\\\\f114\";\n}\n.ag-theme-alpine .ag-icon-first::before {\n  content: \"\\\\f115\";\n}\n.ag-theme-alpine .ag-icon-grip::before {\n  content: \"\\\\f116\";\n}\n.ag-theme-alpine .ag-icon-group::before {\n  content: \"\\\\f117\";\n}\n.ag-theme-alpine .ag-icon-last::before {\n  content: \"\\\\f118\";\n}\n.ag-theme-alpine .ag-icon-left::before {\n  content: \"\\\\f119\";\n}\n.ag-theme-alpine .ag-icon-linked::before {\n  content: \"\\\\f11a\";\n}\n.ag-theme-alpine .ag-icon-loading::before {\n  content: \"\\\\f11b\";\n}\n.ag-theme-alpine .ag-icon-maximize::before {\n  content: \"\\\\f11c\";\n}\n.ag-theme-alpine .ag-icon-menu::before {\n  content: \"\\\\f11d\";\n}\n.ag-theme-alpine .ag-icon-minimize::before {\n  content: \"\\\\f11e\";\n}\n.ag-theme-alpine .ag-icon-next::before {\n  content: \"\\\\f11f\";\n}\n.ag-theme-alpine .ag-icon-none::before {\n  content: \"\\\\f120\";\n}\n.ag-theme-alpine .ag-icon-not-allowed::before {\n  content: \"\\\\f121\";\n}\n.ag-theme-alpine .ag-icon-paste::before {\n  content: \"\\\\f122\";\n}\n.ag-theme-alpine .ag-icon-pin::before {\n  content: \"\\\\f123\";\n}\n.ag-theme-alpine .ag-icon-pivot::before {\n  content: \"\\\\f124\";\n}\n.ag-theme-alpine .ag-icon-previous::before {\n  content: \"\\\\f125\";\n}\n.ag-theme-alpine .ag-icon-right::before {\n  content: \"\\\\f128\";\n}\n.ag-theme-alpine .ag-icon-save::before {\n  content: \"\\\\f129\";\n}\n.ag-theme-alpine .ag-icon-small-down::before {\n  content: \"\\\\f12a\";\n}\n.ag-theme-alpine .ag-icon-small-left::before {\n  content: \"\\\\f12b\";\n}\n.ag-theme-alpine .ag-icon-small-right::before {\n  content: \"\\\\f12c\";\n}\n.ag-theme-alpine .ag-icon-small-up::before {\n  content: \"\\\\f12d\";\n}\n.ag-theme-alpine .ag-icon-tick::before {\n  content: \"\\\\f12e\";\n}\n.ag-theme-alpine .ag-icon-tree-closed::before {\n  content: \"\\\\f12f\";\n}\n.ag-theme-alpine .ag-icon-tree-indeterminate::before {\n  content: \"\\\\f130\";\n}\n.ag-theme-alpine .ag-icon-tree-open::before {\n  content: \"\\\\f131\";\n}\n.ag-theme-alpine .ag-icon-unlinked::before {\n  content: \"\\\\f132\";\n}\n.ag-theme-alpine .ag-icon-row-drag::before {\n  content: \"\\\\f116\";\n}\n.ag-theme-alpine .ag-left-arrow::before {\n  content: \"\\\\f119\";\n}\n.ag-theme-alpine .ag-right-arrow::before {\n  content: \"\\\\f128\";\n}\n.ag-theme-alpine .ag-root-wrapper {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine [class^=ag-], .ag-theme-alpine [class^=ag-]:focus, .ag-theme-alpine [class^=ag-]:after, .ag-theme-alpine [class^=ag-]:before {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  outline: none;\n}\n.ag-theme-alpine [class^=ag-]::-ms-clear {\n  display: none;\n}\n.ag-theme-alpine .ag-checkbox .ag-input-wrapper,\n.ag-theme-alpine .ag-radio-button .ag-input-wrapper {\n  overflow: visible;\n}\n.ag-theme-alpine .ag-range-field .ag-input-wrapper {\n  height: 100%;\n}\n.ag-theme-alpine .ag-toggle-button {\n  -webkit-box-flex: 0;\n          flex: none;\n  width: unset;\n  min-width: unset;\n}\n.ag-theme-alpine .ag-ltr .ag-label-align-right .ag-label {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-label-align-right .ag-label {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine input[class^=ag-] {\n  margin: 0;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine textarea[class^=ag-],\n.ag-theme-alpine select[class^=ag-] {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine input[class^=ag-]:not([type]),\n.ag-theme-alpine input[class^=ag-][type=text],\n.ag-theme-alpine input[class^=ag-][type=number],\n.ag-theme-alpine input[class^=ag-][type=tel],\n.ag-theme-alpine input[class^=ag-][type=date],\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\n.ag-theme-alpine textarea[class^=ag-] {\n  font-size: inherit;\n  line-height: inherit;\n  color: inherit;\n  border-width: 1px;\n  border-style: solid;\n  border-color: #babfc7;\n  border-color: var(--ag-input-border-color, var(--ag-border-color, #babfc7));\n}\n.ag-theme-alpine input[class^=ag-]:not([type]):disabled,\n.ag-theme-alpine input[class^=ag-][type=text]:disabled,\n.ag-theme-alpine input[class^=ag-][type=number]:disabled,\n.ag-theme-alpine input[class^=ag-][type=tel]:disabled,\n.ag-theme-alpine input[class^=ag-][type=date]:disabled,\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:disabled,\n.ag-theme-alpine textarea[class^=ag-]:disabled {\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n  background-color: #f1f2f4;\n  background-color: var(--ag-input-disabled-background-color, #f1f2f4);\n  border-color: rgba(186, 191, 199, 0.3);\n  border-color: var(--ag-input-disabled-border-color, rgba(186, 191, 199, 0.3));\n}\n.ag-theme-alpine input[class^=ag-]:not([type]):focus,\n.ag-theme-alpine input[class^=ag-][type=text]:focus,\n.ag-theme-alpine input[class^=ag-][type=number]:focus,\n.ag-theme-alpine input[class^=ag-][type=tel]:focus,\n.ag-theme-alpine input[class^=ag-][type=date]:focus,\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:focus,\n.ag-theme-alpine textarea[class^=ag-]:focus {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine input[class^=ag-]:not([type]):invalid,\n.ag-theme-alpine input[class^=ag-][type=text]:invalid,\n.ag-theme-alpine input[class^=ag-][type=number]:invalid,\n.ag-theme-alpine input[class^=ag-][type=tel]:invalid,\n.ag-theme-alpine input[class^=ag-][type=date]:invalid,\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:invalid,\n.ag-theme-alpine textarea[class^=ag-]:invalid {\n  border-width: 2px;\n  border-style: solid;\n  border-color: #e02525;\n  border-color: var(--ag-input-border-color-invalid, var(--ag-invalid-color, #e02525));\n}\n.ag-theme-alpine input[class^=ag-][type=number] {\n  -moz-appearance: textfield;\n}\n.ag-theme-alpine input[class^=ag-][type=number]::-webkit-outer-spin-button, .ag-theme-alpine input[class^=ag-][type=number]::-webkit-inner-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n.ag-theme-alpine input[class^=ag-][type=range] {\n  padding: 0;\n}\n.ag-theme-alpine input[class^=ag-][type=button]:focus, .ag-theme-alpine button[class^=ag-]:focus {\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n}\n.ag-theme-alpine .ag-drag-handle {\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-list-item, .ag-theme-alpine .ag-virtual-list-item {\n  height: 24px;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-select-list {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n.ag-theme-alpine .ag-list-item {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.ag-theme-alpine .ag-list-item.ag-active-item {\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-select-list-item {\n  padding-left: 4px;\n  padding-right: 4px;\n  cursor: default;\n  -moz-user-select: none;\n  -webkit-user-select: none;\n  user-select: none;\n}\n.ag-theme-alpine .ag-select-list-item span {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n.ag-theme-alpine .ag-select .ag-picker-field-wrapper {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  min-height: 24px;\n  cursor: default;\n}\n.ag-theme-alpine .ag-select.ag-disabled .ag-picker-field-wrapper:focus {\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.ag-theme-alpine .ag-select:not(.ag-cell-editor) {\n  height: 24px;\n}\n.ag-theme-alpine .ag-select .ag-picker-field-display {\n  margin: 4px;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.ag-theme-alpine .ag-select .ag-picker-field-icon {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-alpine .ag-select.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-rich-select {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n}\n.ag-theme-alpine .ag-rich-select-list {\n  width: 100%;\n  min-width: 200px;\n  height: 273px;\n}\n.ag-theme-alpine .ag-rich-select-value {\n  padding: 0 6px 0 18px;\n  height: 42px;\n  border-bottom: solid 1px;\n  border-bottom-color: #dde2eb;\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-rich-select-virtual-list-item {\n  cursor: default;\n  height: 24px;\n}\n.ag-theme-alpine .ag-rich-select-virtual-list-item:hover {\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-rich-select-row {\n  padding-left: 18px;\n}\n.ag-theme-alpine .ag-rich-select-row-selected {\n  background-color: rgba(33, 150, 243, 0.3);\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\n}\n.ag-theme-alpine .ag-row-drag,\n.ag-theme-alpine .ag-selection-checkbox,\n.ag-theme-alpine .ag-group-expanded,\n.ag-theme-alpine .ag-group-contracted {\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-ltr .ag-row-drag, .ag-theme-alpine .ag-ltr .ag-selection-checkbox, .ag-theme-alpine .ag-ltr .ag-group-expanded, .ag-theme-alpine .ag-ltr .ag-group-contracted {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-drag, .ag-theme-alpine .ag-rtl .ag-selection-checkbox, .ag-theme-alpine .ag-rtl .ag-group-expanded, .ag-theme-alpine .ag-rtl .ag-group-contracted {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\n  height: min(var(--ag-line-height, 40px), 40px);\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n.ag-theme-alpine .ag-group-expanded,\n.ag-theme-alpine .ag-group-contracted {\n  cursor: pointer;\n}\n.ag-theme-alpine .ag-group-title-bar-icon {\n  cursor: pointer;\n  -webkit-box-flex: 0;\n          flex: none;\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-ltr .ag-group-child-count {\n  margin-left: 2px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-group-child-count {\n  margin-right: 2px;\n}\n\n.ag-theme-alpine .ag-group-title-bar {\n  background-color: #fff;\n  background-color: var(--ag-subheader-background-color, #fff);\n  padding: 6px;\n}\n.ag-theme-alpine .ag-group-toolbar {\n  padding: 6px;\n}\n.ag-theme-alpine .ag-disabled-group-title-bar, .ag-theme-alpine .ag-disabled-group-container {\n  opacity: 0.5;\n}\n.ag-theme-alpine .group-item {\n  margin: 3px 0;\n}\n.ag-theme-alpine .ag-label {\n  white-space: nowrap;\n}\n.ag-theme-alpine .ag-ltr .ag-label {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-label {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-label-align-top .ag-label {\n  margin-bottom: 3px;\n}\n.ag-theme-alpine .ag-ltr .ag-slider-field, .ag-theme-alpine .ag-ltr .ag-angle-select-field {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-slider-field, .ag-theme-alpine .ag-rtl .ag-angle-select-field {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-angle-select-parent-circle {\n  width: 24px;\n  height: 24px;\n  border-radius: 12px;\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-angle-select-child-circle {\n  top: 4px;\n  left: 12px;\n  width: 6px;\n  height: 6px;\n  margin-left: -3px;\n  margin-top: -4px;\n  border-radius: 3px;\n  background-color: #181d1f;\n  background-color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-picker-field-wrapper {\n  border: 1px solid;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  border-radius: 5px;\n}\n.ag-theme-alpine .ag-picker-field-wrapper:focus {\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n}\n.ag-theme-alpine .ag-picker-field-button {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-dialog.ag-color-dialog {\n  border-radius: 5px;\n}\n.ag-theme-alpine .ag-color-picker .ag-picker-field-display {\n  height: 16px;\n}\n.ag-theme-alpine .ag-color-panel {\n  padding: 6px;\n}\n.ag-theme-alpine .ag-spectrum-color {\n  background-color: rgb(255, 0, 0);\n  border-radius: 2px;\n}\n.ag-theme-alpine .ag-spectrum-tools {\n  padding: 10px;\n}\n.ag-theme-alpine .ag-spectrum-sat {\n  background-image: -webkit-gradient(linear, left top, right top, from(white), to(rgba(204, 154, 129, 0)));\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\n}\n.ag-theme-alpine .ag-spectrum-val {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(black), to(rgba(204, 154, 129, 0)));\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\n}\n.ag-theme-alpine .ag-spectrum-dragger {\n  border-radius: 12px;\n  height: 12px;\n  width: 12px;\n  border: 1px solid white;\n  background: black;\n  -webkit-box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\n          box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\n}\n.ag-theme-alpine .ag-spectrum-hue-background {\n  border-radius: 2px;\n}\n.ag-theme-alpine .ag-spectrum-alpha-background {\n  border-radius: 2px;\n}\n.ag-theme-alpine .ag-spectrum-tool {\n  margin-bottom: 10px;\n  height: 11px;\n  border-radius: 2px;\n}\n.ag-theme-alpine .ag-spectrum-slider {\n  margin-top: -12px;\n  width: 13px;\n  height: 13px;\n  border-radius: 13px;\n  background-color: rgb(248, 248, 248);\n  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n          box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.ag-theme-alpine .ag-recent-color {\n  margin: 0 3px;\n}\n.ag-theme-alpine .ag-recent-color:first-child {\n  margin-left: 0;\n}\n.ag-theme-alpine .ag-recent-color:last-child {\n  margin-right: 0;\n}\n.ag-theme-alpine.ag-dnd-ghost {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  border: solid 1px;\n  border-color: #dde2eb;\n  border-color: var(--ag-secondary-border-color, #dde2eb);\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n  height: 48px !important;\n  line-height: 48px;\n  margin: 0;\n  padding: 0 12px;\n  -webkit-transform: translateY(12px);\n          transform: translateY(12px);\n}\n.ag-theme-alpine .ag-dnd-ghost-icon {\n  margin-right: 6px;\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n}\n.ag-theme-alpine .ag-popup-child:not(.ag-tooltip-custom) {\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n}\n.ag-dragging-range-handle .ag-theme-alpine .ag-dialog, .ag-dragging-fill-handle .ag-theme-alpine .ag-dialog {\n  opacity: 0.7;\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-dialog {\n  border-radius: 3px;\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-panel {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-panel-title-bar {\n  background-color: #f8f8f8;\n  background-color: var(--ag-header-background-color, #f8f8f8);\n  color: #181d1f;\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\n  height: 48px;\n  padding: 6px 18px;\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-tooltip {\n  background-color: #f8f8f8;\n  background-color: var(--ag-header-background-color, #f8f8f8);\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n  padding: 6px;\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  border-radius: 3px;\n  -webkit-transition: opacity 1s;\n  transition: opacity 1s;\n  white-space: normal;\n}\n.ag-theme-alpine .ag-tooltip.ag-tooltip-hiding {\n  opacity: 0;\n}\n.ag-theme-alpine .ag-tooltip-custom {\n  -webkit-transition: opacity 1s;\n  transition: opacity 1s;\n}\n.ag-theme-alpine .ag-tooltip-custom.ag-tooltip-hiding {\n  opacity: 0;\n}\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-1 {\n  padding-left: 16px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-1 {\n  padding-right: 16px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-2 {\n  padding-left: 32px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-2 {\n  padding-right: 32px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-3 {\n  padding-left: 48px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-3 {\n  padding-right: 48px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-4 {\n  padding-left: 64px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-4 {\n  padding-right: 64px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-5 {\n  padding-left: 80px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-5 {\n  padding-right: 80px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-6 {\n  padding-left: 96px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-6 {\n  padding-right: 96px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-7 {\n  padding-left: 112px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-7 {\n  padding-right: 112px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-8 {\n  padding-left: 128px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-8 {\n  padding-right: 128px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-9 {\n  padding-left: 144px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-9 {\n  padding-right: 144px;\n}\n\n.ag-theme-alpine .ag-column-select-header-icon {\n  cursor: pointer;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header-icon:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header-icon:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 0px;\n  left: 0px;\n  display: block;\n  width: calc(100% - 0px);\n  height: calc(100% - 0px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-ltr .ag-column-group-icons:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-icon:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-checkbox:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-checkbox:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-label:not(:last-child) {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-group-icons:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-icon:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-checkbox:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-checkbox:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-label:not(:last-child) {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 1px;\n  left: 1px;\n  display: block;\n  width: calc(100% - 2px);\n  height: calc(100% - 2px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-column-select-column-group:not(:last-child),\n.ag-theme-alpine .ag-column-select-column:not(:last-child) {\n  margin-bottom: 9px;\n}\n.ag-theme-alpine .ag-column-select-column-readonly,\n.ag-theme-alpine .ag-column-select-column-group-readonly {\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-ltr .ag-column-select-add-group-indent {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-select-add-group-indent {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-column-select-virtual-list-viewport {\n  padding: 6px 0px;\n}\n.ag-theme-alpine .ag-column-select-virtual-list-item {\n  padding: 0 12px;\n}\n.ag-theme-alpine .ag-rtl {\n  text-align: right;\n}\n.ag-theme-alpine .ag-root-wrapper {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n  padding-left: 46px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n  padding-right: 46px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-1 {\n  padding-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-1 {\n  padding-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n  padding-left: 74px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n  padding-right: 74px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-2 {\n  padding-left: 56px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-2 {\n  padding-right: 56px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n  padding-left: 102px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n  padding-right: 102px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-3 {\n  padding-left: 84px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-3 {\n  padding-right: 84px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n  padding-left: 130px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n  padding-right: 130px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-4 {\n  padding-left: 112px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-4 {\n  padding-right: 112px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n  padding-left: 158px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n  padding-right: 158px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-5 {\n  padding-left: 140px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-5 {\n  padding-right: 140px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n  padding-left: 186px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n  padding-right: 186px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-6 {\n  padding-left: 168px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-6 {\n  padding-right: 168px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n  padding-left: 214px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n  padding-right: 214px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-7 {\n  padding-left: 196px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-7 {\n  padding-right: 196px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n  padding-left: 242px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n  padding-right: 242px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-8 {\n  padding-left: 224px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-8 {\n  padding-right: 224px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n  padding-left: 270px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n  padding-right: 270px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-9 {\n  padding-left: 252px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-9 {\n  padding-right: 252px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n  padding-left: 298px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n  padding-right: 298px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-10 {\n  padding-left: 280px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-10 {\n  padding-right: 280px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n  padding-left: 326px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n  padding-right: 326px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-11 {\n  padding-left: 308px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-11 {\n  padding-right: 308px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n  padding-left: 354px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n  padding-right: 354px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-12 {\n  padding-left: 336px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-12 {\n  padding-right: 336px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n  padding-left: 382px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n  padding-right: 382px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-13 {\n  padding-left: 364px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-13 {\n  padding-right: 364px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n  padding-left: 410px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n  padding-right: 410px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-14 {\n  padding-left: 392px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-14 {\n  padding-right: 392px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n  padding-left: 438px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n  padding-right: 438px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-15 {\n  padding-left: 420px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-15 {\n  padding-right: 420px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n  padding-left: 466px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n  padding-right: 466px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-16 {\n  padding-left: 448px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-16 {\n  padding-right: 448px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n  padding-left: 494px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n  padding-right: 494px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-17 {\n  padding-left: 476px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-17 {\n  padding-right: 476px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n  padding-left: 522px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n  padding-right: 522px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-18 {\n  padding-left: 504px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-18 {\n  padding-right: 504px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n  padding-left: 550px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n  padding-right: 550px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-19 {\n  padding-left: 532px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-19 {\n  padding-right: 532px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n  padding-left: 578px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n  padding-right: 578px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-20 {\n  padding-left: 560px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-20 {\n  padding-right: 560px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n  padding-left: 606px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n  padding-right: 606px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-21 {\n  padding-left: 588px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-21 {\n  padding-right: 588px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n  padding-left: 634px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n  padding-right: 634px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-22 {\n  padding-left: 616px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-22 {\n  padding-right: 616px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n  padding-left: 662px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n  padding-right: 662px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-23 {\n  padding-left: 644px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-23 {\n  padding-right: 644px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n  padding-left: 690px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n  padding-right: 690px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-24 {\n  padding-left: 672px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-24 {\n  padding-right: 672px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n  padding-left: 718px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n  padding-right: 718px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-25 {\n  padding-left: 700px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-25 {\n  padding-right: 700px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n  padding-left: 746px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n  padding-right: 746px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-26 {\n  padding-left: 728px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-26 {\n  padding-right: 728px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n  padding-left: 774px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n  padding-right: 774px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-27 {\n  padding-left: 756px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-27 {\n  padding-right: 756px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n  padding-left: 802px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n  padding-right: 802px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-28 {\n  padding-left: 784px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-28 {\n  padding-right: 784px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n  padding-left: 830px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n  padding-right: 830px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-29 {\n  padding-left: 812px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-29 {\n  padding-right: 812px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n  padding-left: 858px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n  padding-right: 858px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-30 {\n  padding-left: 840px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-30 {\n  padding-right: 840px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n  padding-left: 886px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n  padding-right: 886px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-31 {\n  padding-left: 868px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-31 {\n  padding-right: 868px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n  padding-left: 914px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n  padding-right: 914px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-32 {\n  padding-left: 896px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-32 {\n  padding-right: 896px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n  padding-left: 942px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n  padding-right: 942px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-33 {\n  padding-left: 924px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-33 {\n  padding-right: 924px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n  padding-left: 970px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n  padding-right: 970px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-34 {\n  padding-left: 952px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-34 {\n  padding-right: 952px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n  padding-left: 998px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n  padding-right: 998px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-35 {\n  padding-left: 980px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-35 {\n  padding-right: 980px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n  padding-left: 1026px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n  padding-right: 1026px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-36 {\n  padding-left: 1008px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-36 {\n  padding-right: 1008px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n  padding-left: 1054px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n  padding-right: 1054px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-37 {\n  padding-left: 1036px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-37 {\n  padding-right: 1036px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n  padding-left: 1082px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n  padding-right: 1082px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-38 {\n  padding-left: 1064px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-38 {\n  padding-right: 1064px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n  padding-left: 1110px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n  padding-right: 1110px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-39 {\n  padding-left: 1092px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-39 {\n  padding-right: 1092px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n  padding-left: 1138px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n  padding-right: 1138px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-40 {\n  padding-left: 1120px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-40 {\n  padding-right: 1120px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n  padding-left: 1166px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n  padding-right: 1166px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-41 {\n  padding-left: 1148px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-41 {\n  padding-right: 1148px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n  padding-left: 1194px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n  padding-right: 1194px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-42 {\n  padding-left: 1176px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-42 {\n  padding-right: 1176px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n  padding-left: 1222px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n  padding-right: 1222px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-43 {\n  padding-left: 1204px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-43 {\n  padding-right: 1204px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n  padding-left: 1250px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n  padding-right: 1250px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-44 {\n  padding-left: 1232px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-44 {\n  padding-right: 1232px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n  padding-left: 1278px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n  padding-right: 1278px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-45 {\n  padding-left: 1260px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-45 {\n  padding-right: 1260px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n  padding-left: 1306px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n  padding-right: 1306px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-46 {\n  padding-left: 1288px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-46 {\n  padding-right: 1288px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n  padding-left: 1334px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n  padding-right: 1334px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-47 {\n  padding-left: 1316px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-47 {\n  padding-right: 1316px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n  padding-left: 1362px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n  padding-right: 1362px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-48 {\n  padding-left: 1344px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-48 {\n  padding-right: 1344px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n  padding-left: 1390px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n  padding-right: 1390px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-49 {\n  padding-left: 1372px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-49 {\n  padding-right: 1372px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n  padding-left: 1418px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n  padding-right: 1418px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-50 {\n  padding-left: 1400px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-50 {\n  padding-right: 1400px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n  padding-left: 1446px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n  padding-right: 1446px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-51 {\n  padding-left: 1428px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-51 {\n  padding-right: 1428px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n  padding-left: 1474px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n  padding-right: 1474px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-52 {\n  padding-left: 1456px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-52 {\n  padding-right: 1456px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n  padding-left: 1502px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n  padding-right: 1502px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-53 {\n  padding-left: 1484px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-53 {\n  padding-right: 1484px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n  padding-left: 1530px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n  padding-right: 1530px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-54 {\n  padding-left: 1512px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-54 {\n  padding-right: 1512px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n  padding-left: 1558px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n  padding-right: 1558px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-55 {\n  padding-left: 1540px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-55 {\n  padding-right: 1540px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n  padding-left: 1586px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n  padding-right: 1586px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-56 {\n  padding-left: 1568px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-56 {\n  padding-right: 1568px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n  padding-left: 1614px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n  padding-right: 1614px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-57 {\n  padding-left: 1596px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-57 {\n  padding-right: 1596px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n  padding-left: 1642px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n  padding-right: 1642px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-58 {\n  padding-left: 1624px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-58 {\n  padding-right: 1624px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n  padding-left: 1670px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n  padding-right: 1670px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-59 {\n  padding-left: 1652px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-59 {\n  padding-right: 1652px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n  padding-left: 1698px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n  padding-right: 1698px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-60 {\n  padding-left: 1680px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-60 {\n  padding-right: 1680px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n  padding-left: 1726px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n  padding-right: 1726px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-61 {\n  padding-left: 1708px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-61 {\n  padding-right: 1708px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n  padding-left: 1754px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n  padding-right: 1754px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-62 {\n  padding-left: 1736px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-62 {\n  padding-right: 1736px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n  padding-left: 1782px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n  padding-right: 1782px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-63 {\n  padding-left: 1764px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-63 {\n  padding-right: 1764px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n  padding-left: 1810px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n  padding-right: 1810px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-64 {\n  padding-left: 1792px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-64 {\n  padding-right: 1792px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n  padding-left: 1838px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n  padding-right: 1838px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-65 {\n  padding-left: 1820px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-65 {\n  padding-right: 1820px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n  padding-left: 1866px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n  padding-right: 1866px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-66 {\n  padding-left: 1848px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-66 {\n  padding-right: 1848px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n  padding-left: 1894px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n  padding-right: 1894px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-67 {\n  padding-left: 1876px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-67 {\n  padding-right: 1876px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n  padding-left: 1922px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n  padding-right: 1922px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-68 {\n  padding-left: 1904px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-68 {\n  padding-right: 1904px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n  padding-left: 1950px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n  padding-right: 1950px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-69 {\n  padding-left: 1932px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-69 {\n  padding-right: 1932px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n  padding-left: 1978px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n  padding-right: 1978px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-70 {\n  padding-left: 1960px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-70 {\n  padding-right: 1960px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n  padding-left: 2006px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n  padding-right: 2006px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-71 {\n  padding-left: 1988px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-71 {\n  padding-right: 1988px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n  padding-left: 2034px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n  padding-right: 2034px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-72 {\n  padding-left: 2016px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-72 {\n  padding-right: 2016px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n  padding-left: 2062px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n  padding-right: 2062px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-73 {\n  padding-left: 2044px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-73 {\n  padding-right: 2044px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n  padding-left: 2090px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n  padding-right: 2090px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-74 {\n  padding-left: 2072px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-74 {\n  padding-right: 2072px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n  padding-left: 2118px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n  padding-right: 2118px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-75 {\n  padding-left: 2100px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-75 {\n  padding-right: 2100px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n  padding-left: 2146px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n  padding-right: 2146px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-76 {\n  padding-left: 2128px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-76 {\n  padding-right: 2128px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n  padding-left: 2174px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n  padding-right: 2174px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-77 {\n  padding-left: 2156px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-77 {\n  padding-right: 2156px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n  padding-left: 2202px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n  padding-right: 2202px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-78 {\n  padding-left: 2184px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-78 {\n  padding-right: 2184px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n  padding-left: 2230px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n  padding-right: 2230px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-79 {\n  padding-left: 2212px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-79 {\n  padding-right: 2212px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n  padding-left: 2258px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n  padding-right: 2258px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-80 {\n  padding-left: 2240px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-80 {\n  padding-right: 2240px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n  padding-left: 2286px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n  padding-right: 2286px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-81 {\n  padding-left: 2268px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-81 {\n  padding-right: 2268px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n  padding-left: 2314px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n  padding-right: 2314px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-82 {\n  padding-left: 2296px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-82 {\n  padding-right: 2296px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n  padding-left: 2342px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n  padding-right: 2342px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-83 {\n  padding-left: 2324px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-83 {\n  padding-right: 2324px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n  padding-left: 2370px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n  padding-right: 2370px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-84 {\n  padding-left: 2352px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-84 {\n  padding-right: 2352px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n  padding-left: 2398px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n  padding-right: 2398px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-85 {\n  padding-left: 2380px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-85 {\n  padding-right: 2380px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n  padding-left: 2426px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n  padding-right: 2426px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-86 {\n  padding-left: 2408px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-86 {\n  padding-right: 2408px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n  padding-left: 2454px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n  padding-right: 2454px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-87 {\n  padding-left: 2436px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-87 {\n  padding-right: 2436px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n  padding-left: 2482px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n  padding-right: 2482px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-88 {\n  padding-left: 2464px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-88 {\n  padding-right: 2464px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n  padding-left: 2510px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n  padding-right: 2510px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-89 {\n  padding-left: 2492px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-89 {\n  padding-right: 2492px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n  padding-left: 2538px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n  padding-right: 2538px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-90 {\n  padding-left: 2520px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-90 {\n  padding-right: 2520px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n  padding-left: 2566px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n  padding-right: 2566px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-91 {\n  padding-left: 2548px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-91 {\n  padding-right: 2548px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n  padding-left: 2594px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n  padding-right: 2594px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-92 {\n  padding-left: 2576px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-92 {\n  padding-right: 2576px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n  padding-left: 2622px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n  padding-right: 2622px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-93 {\n  padding-left: 2604px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-93 {\n  padding-right: 2604px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n  padding-left: 2650px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n  padding-right: 2650px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-94 {\n  padding-left: 2632px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-94 {\n  padding-right: 2632px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n  padding-left: 2678px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n  padding-right: 2678px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-95 {\n  padding-left: 2660px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-95 {\n  padding-right: 2660px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n  padding-left: 2706px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n  padding-right: 2706px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-96 {\n  padding-left: 2688px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-96 {\n  padding-right: 2688px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n  padding-left: 2734px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n  padding-right: 2734px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-97 {\n  padding-left: 2716px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-97 {\n  padding-right: 2716px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n  padding-left: 2762px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n  padding-right: 2762px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-98 {\n  padding-left: 2744px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-98 {\n  padding-right: 2744px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n  padding-left: 2790px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n  padding-right: 2790px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-99 {\n  padding-left: 2772px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-99 {\n  padding-right: 2772px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-row-group-leaf-indent {\n  margin-left: 28px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-row-group-leaf-indent {\n  margin-right: 28px;\n}\n\n.ag-theme-alpine .ag-value-change-delta {\n  padding-right: 2px;\n}\n.ag-theme-alpine .ag-value-change-delta-up {\n  color: #43a047;\n  color: var(--ag-value-change-delta-up-color, #43a047);\n}\n.ag-theme-alpine .ag-value-change-delta-down {\n  color: #e53935;\n  color: var(--ag-value-change-delta-down-color, #e53935);\n}\n.ag-theme-alpine .ag-value-change-value {\n  background-color: transparent;\n  border-radius: 1px;\n  padding-left: 1px;\n  padding-right: 1px;\n  -webkit-transition: background-color 1s;\n  transition: background-color 1s;\n}\n.ag-theme-alpine .ag-value-change-value-highlight {\n  background-color: rgba(22, 160, 133, 0.5);\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5));\n  -webkit-transition: background-color 0.1s;\n  transition: background-color 0.1s;\n}\n.ag-theme-alpine .ag-cell-data-changed {\n  background-color: rgba(22, 160, 133, 0.5) !important;\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5)) !important;\n}\n.ag-theme-alpine .ag-cell-data-changed-animation {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-cell-highlight {\n  background-color: #2196f3 !important;\n  background-color: var(--ag-range-selection-highlight-color, var(--ag-range-selection-border-color, #2196f3)) !important;\n}\n.ag-theme-alpine .ag-row {\n  height: 42px;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  color: #181d1f;\n  color: var(--ag-data-color, var(--ag-foreground-color, #181d1f));\n  border-width: 1px;\n  border-color: #dde2eb;\n  border-color: var(--ag-row-border-color, var(--ag-secondary-border-color, #dde2eb));\n  border-bottom-style: solid;\n}\n.ag-theme-alpine .ag-row-highlight-above::after, .ag-theme-alpine .ag-row-highlight-below::after {\n  content: \"\";\n  position: absolute;\n  width: calc(100% - 1px);\n  height: 1px;\n  background-color: #2196f3;\n  background-color: var(--ag-range-selection-border-color, #2196f3);\n  left: 1px;\n}\n.ag-theme-alpine .ag-row-highlight-above::after {\n  top: -1px;\n}\n.ag-theme-alpine .ag-row-highlight-above.ag-row-first::after {\n  top: 0;\n}\n.ag-theme-alpine .ag-row-highlight-below::after {\n  bottom: 0px;\n}\n.ag-theme-alpine .ag-row-odd {\n  background-color: #fcfcfc;\n  background-color: var(--ag-odd-row-background-color, #fcfcfc);\n}\n.ag-theme-alpine .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-row-hover {\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-column-hover {\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-column-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-ltr .ag-right-aligned-cell {\n  text-align: right;\n}\n\n.ag-theme-alpine .ag-rtl .ag-right-aligned-cell {\n  text-align: left;\n}\n\n.ag-theme-alpine .ag-ltr .ag-right-aligned-cell .ag-cell-value, .ag-theme-alpine .ag-ltr .ag-right-aligned-cell .ag-group-value {\n  margin-left: auto;\n}\n\n.ag-theme-alpine .ag-rtl .ag-right-aligned-cell .ag-cell-value, .ag-theme-alpine .ag-rtl .ag-right-aligned-cell .ag-group-value {\n  margin-right: auto;\n}\n\n.ag-theme-alpine .ag-cell, .ag-theme-alpine .ag-full-width-row .ag-cell-wrapper.ag-row-group {\n  border: 1px solid transparent;\n  line-height: min(var(--ag-line-height, 40px), 40px);\n  padding-left: 17px;\n  padding-right: 17px;\n  -webkit-font-smoothing: subpixel-antialiased;\n}\n.ag-theme-alpine .ag-row > .ag-cell-wrapper {\n  padding-left: 17px;\n  padding-right: 17px;\n}\n.ag-theme-alpine .ag-row-dragging {\n  cursor: move;\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-cell-inline-editing {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n  padding: 0;\n  height: 42px;\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n}\n.ag-theme-alpine .ag-popup-editor {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n  padding: 0;\n}\n.ag-theme-alpine .ag-large-text-input {\n  height: auto;\n  padding: 18px;\n}\n.ag-theme-alpine .ag-details-row {\n  padding: 30px;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container {\n  min-height: 50px;\n}\n.ag-theme-alpine .ag-overlay-loading-wrapper {\n  background-color: rgba(255, 255, 255, 0.66);\n  background-color: var(--ag-modal-overlay-background-color, rgba(255, 255, 255, 0.66));\n}\n.ag-theme-alpine .ag-overlay-loading-center {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n}\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\n  padding-top: 30px;\n}\n.ag-theme-alpine .ag-loading {\n  padding-left: 18px;\n  display: -webkit-box;\n  display: flex;\n  height: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-alpine .ag-loading-icon {\n  padding-right: 12px;\n}\n.ag-theme-alpine .ag-icon-loading {\n  -webkit-animation-name: spin;\n          animation-name: spin;\n  -webkit-animation-duration: 1000ms;\n          animation-duration: 1000ms;\n  -webkit-animation-iteration-count: infinite;\n          animation-iteration-count: infinite;\n  -webkit-animation-timing-function: linear;\n          animation-timing-function: linear;\n}\n@-webkit-keyframes spin {\n  from {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes spin {\n  from {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.ag-theme-alpine .ag-floating-top {\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-floating-bottom {\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-cell {\n  border-right: solid transparent;\n}\n\n.ag-theme-alpine .ag-rtl .ag-cell {\n  border-left: solid transparent;\n}\n\n.ag-theme-alpine .ag-ltr .ag-cell {\n  border-right-width: 1px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-cell {\n  border-left-width: 1px;\n}\n\n.ag-theme-alpine .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-row-selected {\n  background-color: rgba(33, 150, 243, 0.3);\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\n}\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus),\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\n  background-color: rgba(33, 150, 243, 0.2);\n  background-color: var(--ag-range-selection-background-color, rgba(33, 150, 243, 0.2));\n}\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\n  background-color: rgba(0, 88, 255, 0.1) !important;\n  background-color: var(--ag-range-selection-chart-background-color, rgba(0, 88, 255, 0.1)) !important;\n}\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\n  background-color: rgba(0, 255, 132, 0.1) !important;\n  background-color: var(--ag-range-selection-chart-category-background-color, rgba(0, 255, 132, 0.1)) !important;\n}\n.ag-theme-alpine .ag-cell-range-selected-1:not(.ag-cell-focus),\n.ag-theme-alpine .ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\n  background-color: rgba(33, 150, 243, 0.2);\n  background-color: var(--ag-range-selection-background-color-1, var(--ag-range-selection-background-color, rgba(33, 150, 243, 0.2)));\n}\n.ag-theme-alpine .ag-cell-range-selected-2:not(.ag-cell-focus),\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\n  background-color: rgba(33, 150, 243, 0.36);\n  background-color: var(--ag-range-selection-background-color-2, rgba(33, 150, 243, 0.36));\n}\n.ag-theme-alpine .ag-cell-range-selected-3:not(.ag-cell-focus),\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\n  background-color: rgba(33, 150, 243, 0.488);\n  background-color: var(--ag-range-selection-background-color-3, rgba(33, 150, 243, 0.488));\n}\n.ag-theme-alpine .ag-cell-range-selected-4:not(.ag-cell-focus),\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\n  background-color: rgba(33, 150, 243, 0.5904);\n  background-color: var(--ag-range-selection-background-color-4, rgba(33, 150, 243, 0.5904));\n}\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\n  border-top-color: #2196f3;\n  border-top-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\n  border-right-color: #2196f3;\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\n  border-bottom-color: #2196f3;\n  border-bottom-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\n  border-left-color: #2196f3;\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-alpine .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-alpine .ag-ltr .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\n.ag-theme-alpine .ag-ltr .ag-cell-range-single-cell,\n.ag-theme-alpine .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-theme-alpine .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-alpine .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-alpine .ag-rtl .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\n.ag-theme-alpine .ag-rtl .ag-cell-range-single-cell,\n.ag-theme-alpine .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\n  border: 1px solid;\n  border-color: #2196f3;\n  border-color: var(--ag-range-selection-border-color, #2196f3);\n  outline: initial;\n}\n.ag-theme-alpine .ag-cell.ag-selection-fill-top,\n.ag-theme-alpine .ag-cell.ag-selection-fill-top.ag-cell-range-selected {\n  border-top: 1px dashed;\n  border-top-color: #2196f3;\n  border-top-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-right, .ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n  border-right: 1px dashed;\n  border-right-color: #2196f3;\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\n}\n\n.ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-right, .ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n  border-left: 1px dashed;\n  border-left-color: #2196f3;\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\n}\n\n.ag-theme-alpine .ag-cell.ag-selection-fill-bottom,\n.ag-theme-alpine .ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\n  border-bottom: 1px dashed;\n  border-bottom-color: #2196f3;\n  border-bottom-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-left, .ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n  border-left: 1px dashed;\n  border-left-color: #2196f3;\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\n}\n\n.ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-left, .ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n  border-right: 1px dashed;\n  border-right-color: #2196f3;\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\n}\n\n.ag-theme-alpine .ag-range-handle, .ag-theme-alpine .ag-fill-handle {\n  position: absolute;\n  width: 6px;\n  height: 6px;\n  bottom: -1px;\n  background-color: #2196f3;\n  background-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-ltr .ag-range-handle, .ag-theme-alpine .ag-ltr .ag-fill-handle {\n  right: -1px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-range-handle, .ag-theme-alpine .ag-rtl .ag-fill-handle {\n  left: -1px;\n}\n\n.ag-theme-alpine .ag-fill-handle {\n  cursor: cell;\n}\n.ag-theme-alpine .ag-range-handle {\n  cursor: nwse-resize;\n}\n.ag-theme-alpine .ag-cell-inline-editing {\n  border-color: rgba(33, 150, 243, 0.4) !important;\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4)) !important;\n}\n.ag-theme-alpine .ag-menu {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n  padding: 0;\n}\n.ag-theme-alpine .ag-menu-list {\n  cursor: default;\n  padding: 6px 0;\n}\n.ag-theme-alpine .ag-menu-separator {\n  height: 13px;\n}\n.ag-theme-alpine .ag-menu-separator-part::after {\n  content: \"\";\n  display: block;\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-menu-option-active, .ag-theme-alpine .ag-compact-menu-option-active {\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-menu-option-part, .ag-theme-alpine .ag-compact-menu-option-part {\n  line-height: 16px;\n  padding: 8px 0;\n}\n.ag-theme-alpine .ag-menu-option-disabled, .ag-theme-alpine .ag-compact-menu-option-disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-menu-option-icon, .ag-theme-alpine .ag-compact-menu-option-icon {\n  width: 16px;\n}\n.ag-theme-alpine .ag-ltr .ag-menu-option-icon, .ag-theme-alpine .ag-ltr .ag-compact-menu-option-icon {\n  padding-left: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-menu-option-icon, .ag-theme-alpine .ag-rtl .ag-compact-menu-option-icon {\n  padding-right: 12px;\n}\n\n.ag-theme-alpine .ag-menu-option-text, .ag-theme-alpine .ag-compact-menu-option-text {\n  padding-left: 12px;\n  padding-right: 12px;\n}\n.ag-theme-alpine .ag-ltr .ag-menu-option-shortcut, .ag-theme-alpine .ag-ltr .ag-compact-menu-option-shortcut {\n  padding-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-menu-option-shortcut, .ag-theme-alpine .ag-rtl .ag-compact-menu-option-shortcut {\n  padding-left: 6px;\n}\n\n.ag-theme-alpine .ag-menu-option-popup-pointer, .ag-theme-alpine .ag-compact-menu-option-popup-pointer {\n  padding-right: 6px;\n}\n.ag-theme-alpine .ag-tabs {\n  min-width: 240px;\n}\n.ag-theme-alpine .ag-tabs-header {\n  width: 100%;\n  display: -webkit-box;\n  display: flex;\n}\n.ag-theme-alpine .ag-tab {\n  border-bottom: 2px solid transparent;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n          justify-content: center;\n  cursor: pointer;\n  -webkit-box-flex: 1;\n          flex: 1 1 auto;\n  -webkit-transition: border-bottom 0.3s;\n  transition: border-bottom 0.3s;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-tab:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-tab:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-tab-selected {\n  border-bottom-color: #2196f3;\n  border-bottom-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine .ag-menu-header {\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-filter-separator {\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-menu:not(.ag-tabs) .ag-filter-select {\n  min-width: 155px;\n}\n.ag-theme-alpine .ag-tabs .ag-filter-select {\n  min-width: 214px;\n}\n.ag-theme-alpine .ag-filter-select .ag-picker-field-wrapper {\n  width: 0;\n}\n.ag-theme-alpine .ag-filter-condition-operator {\n  height: 17px;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-condition-operator-or {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-condition-operator-or {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-set-filter-select-all {\n  padding-top: 12px;\n}\n.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine .ag-filter-no-matches {\n  height: 144px;\n}\n.ag-theme-alpine .ag-set-filter-filter {\n  margin-top: 12px;\n  margin-left: 12px;\n  margin-right: 12px;\n}\n.ag-theme-alpine .ag-filter-to {\n  margin-top: 9px;\n}\n.ag-theme-alpine .ag-mini-filter {\n  margin: 12px 12px;\n}\n.ag-theme-alpine .ag-set-filter-item {\n  margin: 0px 12px;\n}\n.ag-theme-alpine .ag-ltr .ag-set-filter-item-value {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-set-filter-item-value {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-filter-apply-panel {\n  padding: 12px 12px;\n  border-top: solid 1px;\n  border-top-color: #dde2eb;\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-filter-apply-panel-button {\n  line-height: 1.5;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-apply-panel-button {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-apply-panel-button {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-simple-filter-body-wrapper {\n  padding: 12px 12px;\n  padding-bottom: 3px;\n}\n.ag-theme-alpine .ag-simple-filter-body-wrapper > * {\n  margin-bottom: 9px;\n}\n.ag-theme-alpine .ag-filter-no-matches {\n  padding: 12px 12px;\n}\n.ag-theme-alpine .ag-multi-filter-menu-item {\n  margin: 6px 0;\n}\n.ag-theme-alpine .ag-multi-filter-group-title-bar {\n  padding: 12px 6px;\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-side-bar {\n  position: relative;\n}\n.ag-theme-alpine .ag-tool-panel-wrapper {\n  width: 250px;\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n}\n.ag-theme-alpine .ag-side-buttons {\n  padding-top: 24px;\n  width: 20px;\n  position: relative;\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n  overflow: hidden;\n}\n.ag-theme-alpine button.ag-side-button-button {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  font-weight: inherit;\n  line-height: inherit;\n  background: transparent;\n  padding: 12px 0 12px 0;\n  width: 100%;\n  margin: 0;\n  min-height: 108px;\n  background-position-y: center;\n  background-position-x: center;\n  background-repeat: no-repeat;\n  border: none;\n}\n.ag-theme-alpine button.ag-side-button-button:focus {\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-side-button-button:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-side-button-button:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-side-button-icon-wrapper {\n  margin-bottom: 3px;\n}\n.ag-theme-alpine .ag-ltr .ag-side-bar-left,\n.ag-theme-alpine .ag-rtl .ag-side-bar-right {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-side-button-button,\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-side-button-button {\n  border-right: 2px solid transparent;\n  -webkit-transition: border-right 0.3s;\n  transition: border-right 0.3s;\n}\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\n  border-right-color: #2196f3;\n  border-right-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine .ag-rtl .ag-side-bar-left,\n.ag-theme-alpine .ag-ltr .ag-side-bar-right {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-side-button-button,\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-side-button-button {\n  border-left: 2px solid transparent;\n  -webkit-transition: border-left 0.3s;\n  transition: border-left 0.3s;\n}\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\n  border-left-color: #2196f3;\n  border-left-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine .ag-filter-toolpanel-header {\n  height: 36px;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-header, .ag-theme-alpine .ag-ltr .ag-filter-toolpanel-search {\n  padding-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-header, .ag-theme-alpine .ag-rtl .ag-filter-toolpanel-search {\n  padding-right: 6px;\n}\n\n.ag-theme-alpine .ag-keyboard-focus .ag-filter-toolpanel-header:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  font-family: \"agGridAlpine\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  content: \"\\\\f114\";\n  position: absolute;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  padding-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  padding-right: 6px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-0-header {\n  height: 48px;\n}\n.ag-theme-alpine .ag-filter-toolpanel-group-item {\n  margin-top: 3px;\n  margin-bottom: 3px;\n}\n.ag-theme-alpine .ag-filter-toolpanel-search {\n  height: 48px;\n}\n.ag-theme-alpine .ag-filter-toolpanel-search-input {\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n  height: 24px;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-search-input {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-search-input {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-0 {\n  border-top: solid 1px;\n  border-top-color: #dde2eb;\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-expand, .ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-expand, .ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n  padding-left: 22px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n  padding-right: 22px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n  padding-left: 38px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n  padding-right: 38px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n  padding-left: 54px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n  padding-right: 54px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n  padding-left: 70px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n  padding-right: 70px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n  padding-left: 86px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n  padding-right: 86px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n  padding-left: 102px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n  padding-right: 102px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n  padding-left: 118px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n  padding-right: 118px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n  padding-left: 134px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n  padding-right: 134px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n  padding-left: 150px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n  padding-right: 150px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n  padding-left: 166px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n  padding-right: 166px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\n  padding-left: 6px;\n}\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter {\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n  margin-top: 6px;\n}\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-header-icon {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-header-icon {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-pivot-mode-panel {\n  min-height: 48px;\n  height: 48px;\n  display: -webkit-box;\n  display: flex;\n}\n.ag-theme-alpine .ag-pivot-mode-select {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-alpine .ag-ltr .ag-pivot-mode-select {\n  margin-left: 12px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-pivot-mode-select {\n  margin-right: 12px;\n}\n\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-column-select-header {\n  height: 48px;\n  -webkit-box-align: center;\n          align-items: center;\n  padding: 0 12px;\n  border-bottom: solid 1px;\n  border-bottom-color: #dde2eb;\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-column-panel-column-select {\n  border-bottom: solid 1px;\n  border-bottom-color: #dde2eb;\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\n  border-top: solid 1px;\n  border-top-color: #dde2eb;\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-column-group-icons,\n.ag-theme-alpine .ag-column-select-header-icon {\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-column-select-list .ag-list-item-hovered::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  height: 1px;\n  background-color: #2196f3;\n  background-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-column-select-list .ag-item-highlight-top::after {\n  top: 0;\n}\n.ag-theme-alpine .ag-column-select-list .ag-item-highlight-bottom::after {\n  bottom: 0;\n}\n.ag-theme-alpine .ag-header {\n  background-color: #f8f8f8;\n  background-color: var(--ag-header-background-color, #f8f8f8);\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-header-row {\n  color: #181d1f;\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\n  height: 48px;\n}\n.ag-theme-alpine .ag-pinned-right-header {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-pinned-left-header {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-header-cell,\n.ag-theme-alpine .ag-header-group-cell {\n  padding-left: 18px;\n  padding-right: 18px;\n}\n.ag-theme-alpine .ag-header-cell.ag-header-cell-moving,\n.ag-theme-alpine .ag-header-group-cell.ag-header-cell-moving {\n  background-color: #fff;\n  background-color: var(--ag-header-cell-moving-background-color, var(--ag-background-color, #fff));\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-header-cell:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-header-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-header-group-cell:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-header-group-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-header-icon {\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-header-expand-icon {\n  cursor: pointer;\n}\n.ag-theme-alpine .ag-ltr .ag-header-expand-icon {\n  padding-left: 4px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-header-expand-icon {\n  padding-right: 4px;\n}\n\n.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-cell,\n.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-header-cell-resize {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-alpine .ag-header-cell-resize::after {\n  content: \"\";\n  position: absolute;\n  z-index: 1;\n  display: block;\n  left: calc(50% - 1px);\n  width: 2px;\n  height: 30%;\n  top: calc(50% - 15%);\n  background-color: rgba(186, 191, 199, 0.5);\n  background-color: var(--ag-header-column-resize-handle-color, rgba(186, 191, 199, 0.5));\n}\n.ag-theme-alpine .ag-pinned-right-header .ag-header-cell-resize::after {\n  left: calc(50% - 2px);\n}\n.ag-theme-alpine .ag-ltr .ag-header-select-all {\n  margin-right: 18px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-header-select-all {\n  margin-left: 18px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-floating-filter-button {\n  margin-left: 18px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-floating-filter-button {\n  margin-right: 18px;\n}\n\n.ag-theme-alpine .ag-floating-filter-button-button {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  font-weight: inherit;\n  line-height: inherit;\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  background: transparent;\n  border: none;\n  height: 16px;\n  padding: 0;\n  width: 16px;\n}\n.ag-theme-alpine .ag-filter-loading {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n  height: 100%;\n  padding: 12px 12px;\n  position: absolute;\n  width: 100%;\n  z-index: 1;\n}\n.ag-theme-alpine .ag-paging-panel {\n  border-top: 1px solid;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n  height: 48px;\n}\n.ag-theme-alpine .ag-paging-panel > * {\n  margin: 0 18px;\n}\n.ag-theme-alpine .ag-paging-button {\n  cursor: pointer;\n}\n.ag-theme-alpine .ag-paging-button.ag-disabled {\n  cursor: default;\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-paging-button:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-paging-button:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 0px;\n  left: 0px;\n  display: block;\n  width: calc(100% - 0px);\n  height: calc(100% - 0px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-paging-button, .ag-theme-alpine .ag-paging-description {\n  margin: 0 6px;\n}\n.ag-theme-alpine .ag-status-bar {\n  border-top: solid 1px;\n  border-top-color: #babfc7;\n  border-top-color: var(--ag-border-color, #babfc7);\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n  padding-right: 24px;\n  padding-left: 24px;\n  line-height: 1.5;\n}\n.ag-theme-alpine .ag-status-name-value-value {\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n}\n.ag-theme-alpine .ag-status-bar-center {\n  text-align: center;\n}\n.ag-theme-alpine .ag-status-name-value {\n  margin-left: 6px;\n  margin-right: 6px;\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n.ag-theme-alpine .ag-column-drop-cell {\n  background: rgba(24, 29, 31, 0.07);\n  background: var(--ag-chip-background-color, rgba(24, 29, 31, 0.07));\n  border-radius: 24px;\n  height: 24px;\n  padding: 0 3px;\n  border: 1px solid transparent;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-drop-cell:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-column-drop-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 2px;\n  left: 2px;\n  display: block;\n  width: calc(100% - 4px);\n  height: calc(100% - 4px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-column-drop-cell-text {\n  margin: 0 6px;\n}\n.ag-theme-alpine .ag-column-drop-cell-button {\n  min-width: 24px;\n  margin: 0 3px;\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-column-drop-cell-drag-handle {\n  margin-left: 12px;\n}\n.ag-theme-alpine .ag-column-drop-cell-ghost {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-column-drop-horizontal {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n  height: 42px;\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal {\n  padding-left: 18px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal {\n  padding-right: 18px;\n}\n\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n\n.ag-theme-alpine .ag-column-drop-horizontal-cell-separator {\n  margin: 0 6px;\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-column-drop-horizontal-empty-message {\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n}\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal-icon {\n  margin-right: 18px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal-icon {\n  margin-left: 18px;\n}\n\n.ag-theme-alpine .ag-column-drop-vertical-list {\n  padding-bottom: 6px;\n  padding-right: 6px;\n  padding-left: 6px;\n}\n.ag-theme-alpine .ag-column-drop-vertical-cell {\n  margin-top: 6px;\n}\n.ag-theme-alpine .ag-column-drop-vertical {\n  min-height: 50px;\n  border-bottom: solid 1px;\n  border-bottom-color: #dde2eb;\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-column-drop-vertical.ag-last-column-drop {\n  border-bottom: none;\n}\n.ag-theme-alpine .ag-column-drop-vertical-icon {\n  margin-left: 6px;\n  margin-right: 6px;\n}\n.ag-theme-alpine .ag-column-drop-vertical-empty-message {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  overflow: hidden;\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n  margin-top: 6px;\n}\n.ag-theme-alpine .ag-select-agg-func-popup {\n  border: solid 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  border-radius: 3px;\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\n  padding: 6px;\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n  height: 105px;\n  padding: 0;\n}\n.ag-theme-alpine .ag-select-agg-func-virtual-list-item {\n  cursor: default;\n  padding-left: 12px;\n}\n.ag-theme-alpine .ag-select-agg-func-virtual-list-item:hover {\n  background-color: rgba(33, 150, 243, 0.3);\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-alpine .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 1px;\n  left: 1px;\n  display: block;\n  width: calc(100% - 2px);\n  height: calc(100% - 2px);\n  border: 1px solid;\n  border-color: rgba(33, 150, 243, 0.4);\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine .ag-chart-menu {\n  border-radius: 3px;\n  background: #fff;\n  background: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-chart-menu-icon {\n  opacity: 0.5;\n  line-height: 24px;\n  font-size: 24px;\n  width: 24px;\n  height: 24px;\n  margin: 2px 0;\n  cursor: pointer;\n  border-radius: 3px;\n  color: #181d1f;\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\n}\n.ag-theme-alpine .ag-chart-menu-icon:hover {\n  opacity: 1;\n}\n.ag-theme-alpine .ag-chart-mini-thumbnail {\n  border: 1px solid;\n  border-color: #dde2eb;\n  border-color: var(--ag-secondary-border-color, #dde2eb);\n  border-radius: 5px;\n  margin: 5px;\n}\n.ag-theme-alpine .ag-chart-mini-thumbnail:nth-last-child(3), .ag-theme-alpine .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\n  margin-left: auto;\n  margin-right: auto;\n}\n.ag-theme-alpine .ag-ltr .ag-chart-mini-thumbnail:first-child {\n  margin-left: 0;\n}\n\n.ag-theme-alpine .ag-rtl .ag-chart-mini-thumbnail:first-child {\n  margin-right: 0;\n}\n\n.ag-theme-alpine .ag-ltr .ag-chart-mini-thumbnail:last-child {\n  margin-right: 0;\n}\n\n.ag-theme-alpine .ag-rtl .ag-chart-mini-thumbnail:last-child {\n  margin-left: 0;\n}\n\n.ag-theme-alpine .ag-chart-mini-thumbnail.ag-selected {\n  border-color: #2196f3;\n  border-color: var(--ag-minichart-selected-chart-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\n}\n.ag-theme-alpine .ag-chart-settings-card-item {\n  background: #181d1f;\n  background: var(--ag-foreground-color, #181d1f);\n  width: 8px;\n  height: 8px;\n  border-radius: 4px;\n}\n.ag-theme-alpine .ag-chart-settings-card-item.ag-selected {\n  background-color: #2196f3;\n  background-color: var(--ag-minichart-selected-page-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\n}\n.ag-theme-alpine .ag-chart-data-column-drag-handle {\n  margin-left: 6px;\n}\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\n.ag-theme-alpine .ag-charts-data-group-title-bar,\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar {\n  border-top: solid 1px;\n  border-top-color: #dde2eb;\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-charts-settings-group-container {\n  padding: 6px;\n}\n.ag-theme-alpine .ag-charts-data-group-container {\n  padding: 6px 12px;\n}\n.ag-theme-alpine .ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\n  height: 24px;\n}\n.ag-theme-alpine .ag-charts-data-group-container .ag-list-item-hovered::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  height: 1px;\n  background-color: #2196f3;\n  background-color: var(--ag-range-selection-border-color, #2196f3);\n}\n.ag-theme-alpine .ag-charts-data-group-container .ag-item-highlight-top::after {\n  top: 0;\n}\n.ag-theme-alpine .ag-charts-data-group-container .ag-item-highlight-bottom::after {\n  bottom: 0;\n}\n.ag-theme-alpine .ag-charts-format-top-level-group-container {\n  margin-left: 12px;\n  padding: 6px;\n}\n.ag-theme-alpine .ag-charts-format-top-level-group-item {\n  margin: 6px 0;\n}\n.ag-theme-alpine .ag-charts-format-sub-level-group-container {\n  padding: 12px 12px;\n  padding-bottom: 3px;\n}\n.ag-theme-alpine .ag-charts-format-sub-level-group-container > * {\n  margin-bottom: 9px;\n}\n.ag-theme-alpine .ag-charts-group-container.ag-group-container-horizontal {\n  padding: 6px;\n}\n.ag-theme-alpine .ag-chart-data-section,\n.ag-theme-alpine .ag-chart-format-section {\n  display: -webkit-box;\n  display: flex;\n  margin: 0;\n}\n.ag-theme-alpine .ag-chart-menu-panel {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n}\n.ag-theme-alpine .ag-ltr .ag-chart-menu-panel {\n  border-left: solid 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n}\n\n.ag-theme-alpine .ag-rtl .ag-chart-menu-panel {\n  border-right: solid 1px;\n  border-right-color: #babfc7;\n  border-right-color: var(--ag-border-color, #babfc7);\n}\n\n.ag-theme-alpine .ag-date-time-list-page-title {\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n  text-align: center;\n}\n.ag-theme-alpine .ag-date-time-list-page-column-label {\n  text-align: center;\n}\n.ag-theme-alpine .ag-date-time-list-page-entry {\n  text-align: center;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper {\n  font-family: \"agGridAlpine\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  width: 16px;\n  height: 16px;\n  background-color: #fff;\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, #fff));\n  border-radius: 3px;\n  display: inline-block;\n  vertical-align: middle;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper input, .ag-theme-alpine .ag-checkbox-input-wrapper input {\n  -webkit-appearance: none;\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper:focus-within, .ag-theme-alpine .ag-checkbox-input-wrapper:active {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper::after {\n  content: \"\\\\f108\";\n  color: #999;\n  color: var(--ag-checkbox-unchecked-color, #999);\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked::after {\n  content: \"\\\\f106\";\n  color: #2196f3;\n  color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-indeterminate::after {\n  content: \"\\\\f107\";\n  color: #999;\n  color: var(--ag-checkbox-indeterminate-color, var(--ag-checkbox-unchecked-color, #999));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: 28px;\n  height: 18px;\n  background-color: #999;\n  background-color: var(--ag-toggle-button-off-background-color, var(--ag-checkbox-unchecked-color, #999));\n  border-radius: 9px;\n  position: relative;\n  -webkit-box-flex: 0;\n          flex: none;\n  border: 1px solid;\n  border-color: #999;\n  border-color: var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #999));\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper input {\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper:focus-within {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-checked {\n  background-color: #2196f3;\n  background-color: var(--ag-toggle-button-on-background-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\n  border-color: #2196f3;\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper::before {\n  content: \" \";\n  position: absolute;\n  top: -1px;\n  left: -1px;\n  display: block;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  height: 18px;\n  width: 18px;\n  background-color: #fff;\n  background-color: var(--ag-toggle-button-switch-background-color, var(--ag-background-color, #fff));\n  border-radius: 9px;\n  -webkit-transition: left 100ms;\n  transition: left 100ms;\n  border: 1px solid;\n  border-color: #999;\n  border-color: var(--ag-toggle-button-switch-border-color, var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #999)));\n}\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-checked::before {\n  left: calc(100% - 18px );\n  border-color: #2196f3;\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper {\n  font-family: \"agGridAlpine\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  width: 16px;\n  height: 16px;\n  background-color: #fff;\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, #fff));\n  border-radius: 3px;\n  display: inline-block;\n  vertical-align: middle;\n  -webkit-box-flex: 0;\n          flex: none;\n  border-radius: 16px;\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper input, .ag-theme-alpine .ag-radio-button-input-wrapper input {\n  -webkit-appearance: none;\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper:focus-within, .ag-theme-alpine .ag-radio-button-input-wrapper:active {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper::after {\n  content: \"\\\\f126\";\n  color: #999;\n  color: var(--ag-checkbox-unchecked-color, #999);\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-alpine .ag-radio-button-input-wrapper.ag-checked::after {\n  content: \"\\\\f127\";\n  color: #2196f3;\n  color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-alpine input[class^=ag-][type=range] {\n  -webkit-appearance: none;\n  width: 100%;\n  height: 100%;\n  background: none;\n  overflow: visible;\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-webkit-slider-runnable-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #babfc7;\n  background-color: var(--ag-border-color, #babfc7);\n  border-radius: 3px;\n  border-radius: 3px;\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-moz-range-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #babfc7;\n  background-color: var(--ag-border-color, #babfc7);\n  border-radius: 3px;\n  border-radius: 3px;\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-ms-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #babfc7;\n  background-color: var(--ag-border-color, #babfc7);\n  border-radius: 3px;\n  border-radius: 3px;\n  color: transparent;\n  width: calc(100% - 2px);\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-webkit-slider-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  border: 1px solid;\n  border-color: #999;\n  border-color: var(--ag-checkbox-unchecked-color, #999);\n  border-radius: 16px;\n  -webkit-transform: translateY(-6.5px);\n          transform: translateY(-6.5px);\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-ms-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  border: 1px solid;\n  border-color: #999;\n  border-color: var(--ag-checkbox-unchecked-color, #999);\n  border-radius: 16px;\n}\n.ag-theme-alpine input[class^=ag-][type=range]::-moz-ag-range-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  border: 1px solid;\n  border-color: #999;\n  border-color: var(--ag-checkbox-unchecked-color, #999);\n  border-radius: 16px;\n}\n.ag-theme-alpine input[class^=ag-][type=range]:focus {\n  outline: none;\n}\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-webkit-slider-thumb {\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n  border-color: #2196f3;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-ms-thumb {\n  box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n  border-color: #2196f3;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\n  box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\n  border-color: #2196f3;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\n  background-color: rgba(33, 150, 243, 0.4);\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:active::-moz-ag-range-track {\n  background-color: rgba(33, 150, 243, 0.4);\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:active::-ms-track {\n  background-color: rgba(33, 150, 243, 0.4);\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\n}\n.ag-theme-alpine input[class^=ag-][type=range]:disabled {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-filter-toolpanel-header,\n.ag-theme-alpine .ag-filter-toolpanel-search,\n.ag-theme-alpine .ag-status-bar,\n.ag-theme-alpine .ag-header-row,\n.ag-theme-alpine .ag-panel-title-bar-title,\n.ag-theme-alpine .ag-multi-filter-group-title-bar {\n  font-weight: 700;\n  color: #181d1f;\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\n}\n.ag-theme-alpine .ag-rtl .ag-pinned-left-header .ag-header-row::before, .ag-theme-alpine .ag-ltr .ag-pinned-right-header .ag-header-row::after {\n  content: \"\";\n  position: absolute;\n  height: calc(100% - 20px);\n  top: 10px;\n  width: 1px;\n  background-color: #babfc7;\n  background-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-ltr .ag-pinned-right-header .ag-header-row::after {\n  right: 0;\n}\n.ag-theme-alpine .ag-rtl .ag-pinned-left-header .ag-header-row::before {\n  left: 0;\n}\n.ag-theme-alpine .ag-row {\n  font-size: 14px;\n}\n.ag-theme-alpine input[class^=ag-]:not([type]),\n.ag-theme-alpine input[class^=ag-][type=text],\n.ag-theme-alpine input[class^=ag-][type=number],\n.ag-theme-alpine input[class^=ag-][type=tel],\n.ag-theme-alpine input[class^=ag-][type=date],\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\n.ag-theme-alpine textarea[class^=ag-] {\n  min-height: 24px;\n  border-radius: 3px;\n}\n.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],\n.ag-theme-alpine .ag-ltr textarea[class^=ag-] {\n  padding-left: 6px;\n}\n\n.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],\n.ag-theme-alpine .ag-rtl textarea[class^=ag-] {\n  padding-right: 6px;\n}\n\n.ag-theme-alpine .ag-tab {\n  padding: 9px;\n  -webkit-transition: color 0.4s;\n  transition: color 0.4s;\n}\n.ag-theme-alpine .ag-tab-selected {\n  color: #2196f3;\n  color: var(--ag-alpine-active-color, #2196f3);\n}\n.ag-theme-alpine .ag-menu {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n}\n.ag-theme-alpine .ag-menu-header {\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n  padding-top: 1px;\n}\n.ag-theme-alpine .ag-tabs-header {\n  border-bottom: solid 1px;\n  border-bottom-color: #babfc7;\n  border-bottom-color: var(--ag-border-color, #babfc7);\n}\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\n.ag-theme-alpine .ag-charts-data-group-title-bar,\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar {\n  padding: 6px 12px;\n  line-height: 20px;\n}\n.ag-theme-alpine .ag-chart-mini-thumbnail {\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-chart-settings-nav-bar {\n  border-top: solid 1px;\n  border-top-color: #dde2eb;\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\n}\n.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon {\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon {\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-charts-format-top-level-group-toolbar {\n  margin-top: 6px;\n}\n.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar {\n  padding-left: 20px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar {\n  padding-right: 20px;\n}\n\n.ag-theme-alpine .ag-charts-format-sub-level-group {\n  border-left: dashed 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n  padding-left: 6px;\n  margin-bottom: 12px;\n}\n.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar {\n  padding-top: 0;\n  padding-bottom: 0;\n  background: none;\n  font-weight: 700;\n}\n.ag-theme-alpine .ag-charts-format-sub-level-group-container {\n  padding-bottom: 0;\n}\n.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child {\n  margin-bottom: 0;\n}\n.ag-theme-alpine .ag-dnd-ghost {\n  font-size: 12px;\n  font-weight: 700;\n}\n.ag-theme-alpine .ag-side-buttons {\n  width: 30px;\n}\n.ag-theme-alpine .ag-standard-button {\n  -moz-appearance: none;\n       appearance: none;\n  -webkit-appearance: none;\n  border-radius: 3px;\n  border: 1px solid;\n  border-color: #2196f3;\n  border-color: var(--ag-alpine-active-color, #2196f3);\n  color: #2196f3;\n  color: var(--ag-alpine-active-color, #2196f3);\n  background-color: #fff;\n  background-color: var(--ag-background-color, #fff);\n  font-weight: 600;\n  padding: 6px 12px;\n}\n.ag-theme-alpine .ag-standard-button:hover {\n  border-color: #2196f3;\n  border-color: var(--ag-alpine-active-color, #2196f3);\n  background-color: rgba(33, 150, 243, 0.1);\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\n}\n.ag-theme-alpine .ag-standard-button:active {\n  border-color: #2196f3;\n  border-color: var(--ag-alpine-active-color, #2196f3);\n  background-color: #2196f3;\n  background-color: var(--ag-alpine-active-color, #2196f3);\n  color: #fff;\n  color: var(--ag-background-color, #fff);\n}\n.ag-theme-alpine .ag-standard-button:disabled {\n  color: rgba(24, 29, 31, 0.5);\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\n  background-color: #f1f2f4;\n  background-color: var(--ag-input-disabled-background-color, #f1f2f4);\n  border-color: rgba(186, 191, 199, 0.3);\n  border-color: var(--ag-input-disabled-border-color, rgba(186, 191, 199, 0.3));\n}\n.ag-theme-alpine .ag-column-drop-vertical {\n  min-height: 75px;\n}\n.ag-theme-alpine .ag-column-drop-vertical-title-bar {\n  padding: 12px;\n  padding-bottom: 0px;\n}\n.ag-theme-alpine .ag-column-drop-vertical-empty-message {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  border: dashed 1px;\n  border-color: #babfc7;\n  border-color: var(--ag-border-color, #babfc7);\n  margin: 12px;\n  padding: 12px;\n}\n.ag-theme-alpine .ag-column-drop-empty-message {\n  color: #181d1f;\n  color: var(--ag-foreground-color, #181d1f);\n  opacity: 0.75;\n}\n.ag-theme-alpine .ag-status-bar {\n  font-weight: normal;\n}\n.ag-theme-alpine .ag-status-name-value-value {\n  font-weight: 700;\n}\n.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number {\n  font-weight: 700;\n}\n.ag-theme-alpine .ag-column-drop-cell-button {\n  opacity: 0.5;\n}\n.ag-theme-alpine .ag-column-drop-cell-button:hover {\n  opacity: 0.75;\n}\n.ag-theme-alpine .ag-header-cell-menu-button:hover,\n.ag-theme-alpine .ag-side-button-button:hover,\n.ag-theme-alpine .ag-tab:hover,\n.ag-theme-alpine .ag-panel-title-bar-button:hover,\n.ag-theme-alpine .ag-header-expand-icon:hover,\n.ag-theme-alpine .ag-column-group-icons:hover,\n.ag-theme-alpine .ag-group-expanded .ag-icon:hover,\n.ag-theme-alpine .ag-group-contracted .ag-icon:hover,\n.ag-theme-alpine .ag-chart-settings-prev:hover,\n.ag-theme-alpine .ag-chart-settings-next:hover,\n.ag-theme-alpine .ag-group-title-bar-icon:hover,\n.ag-theme-alpine .ag-column-select-header-icon:hover,\n.ag-theme-alpine .ag-floating-filter-button-button:hover,\n.ag-theme-alpine .ag-filter-toolpanel-expand:hover,\n.ag-theme-alpine .ag-chart-menu-icon:hover {\n  color: #2196f3;\n  color: var(--ag-alpine-active-color, #2196f3);\n}\n.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover {\n  opacity: 0.35;\n}\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button {\n  margin-left: 12px;\n  margin-right: 6px;\n}\n\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button {\n  margin-right: 12px;\n  margin-left: 6px;\n}\n\n.ag-theme-alpine .ag-filter-toolpanel-group-container {\n  padding-left: 6px;\n}\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter {\n  border: none;\n  background-color: #f8f8f8;\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\n  border-left: dashed 1px;\n  border-left-color: #babfc7;\n  border-left-color: var(--ag-border-color, #babfc7);\n  margin-left: 8px;\n  padding-left: 8px;\n  margin-right: 12px;\n}\n.ag-theme-alpine .ag-set-filter-list {\n  padding-top: 3px;\n  padding-bottom: 3px;\n}\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container {\n  min-height: 150px;\n}\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\n  padding-top: 60px;\n}\n.ag-theme-alpine .ag-date-time-list-page-entry-is-current {\n  background-color: #2196f3;\n  background-color: var(--ag-alpine-active-color, #2196f3);\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/ag-grid-community/dist/styles/ag-theme-alpine.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,mCAAmC;EACnC,cAAc;EACd,0CAA0C;EAC1C,gIAAgI;EAChI,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,2BAA2B;EAC3B,2DAA2yO;EAC3yO,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;AACpC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,kDAAkD;AACpD;AACA;EACE,8BAA8B;UACtB,sBAAsB;EAC9B,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;UACX,UAAU;EAClB,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,SAAS;EACT,sBAAsB;EACtB,kDAAkD;AACpD;AACA;;EAEE,sBAAsB;EACtB,kDAAkD;AACpD;AACA;;;;;;;EAOE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;EACd,iBAAiB;EACjB,mBAAmB;EACnB,qBAAqB;EACrB,2EAA2E;AAC7E;AACA;;;;;;;EAOE,4BAA4B;EAC5B,iEAAiE;EACjE,yBAAyB;EACzB,oEAAoE;EACpE,sCAAsC;EACtC,6EAA6E;AAC/E;AACA;;;;;;;EAOE,aAAa;EACb,0DAA0D;UAClD,kDAAkD;EAC1D,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;;;;;;;EAOE,iBAAiB;EACjB,mBAAmB;EACnB,qBAAqB;EACrB,oFAAoF;AACtF;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,wBAAwB;EACxB,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,sBAAsB;EACtB,kDAAkD;EAClD,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,yCAAyC;EACzC,oEAAoE;AACtE;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,sBAAsB;EACtB,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,kDAAkD;EAClD,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,wBAAwB;UAChB,gBAAgB;AAC1B;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,wBAAwB;EACxB,4BAA4B;EAC5B,8DAA8D;AAChE;AACA;EACE,eAAe;EACf,YAAY;AACd;AACA;EACE,yCAAyC;EACzC,oEAAoE;AACtE;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yCAAyC;EACzC,kFAAkF;AACpF;AACA;;;;EAIE,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,8CAA8C;EAC9C,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;UACX,UAAU;AACpB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,eAAe;EACf,mBAAmB;UACX,UAAU;EAClB,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,sBAAsB;EACtB,4DAA4D;EAC5D,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,sBAAsB;EACtB,kDAAkD;AACpD;AACA;EACE,QAAQ;EACR,UAAU;EACV,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,yBAAyB;EACzB,2FAA2F;AAC7F;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,kBAAkB;AACpB;AACA;EACE,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,sBAAsB;EACtB,kDAAkD;EAClD,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,gCAAgC;EAChC,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,wGAAwG;EACxG,0EAA0E;AAC5E;AACA;EACE,0GAA0G;EAC1G,wEAAwE;AAC1E;AACA;EACE,mBAAmB;EACnB,YAAY;EACZ,WAAW;EACX,uBAAuB;EACvB,iBAAiB;EACjB,mDAAmD;UAC3C,2CAA2C;AACrD;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,oCAAoC;EACpC,mDAAmD;UAC3C,2CAA2C;AACrD;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;EACZ,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;EACjB,qBAAqB;EACrB,uDAAuD;EACvD,cAAc;EACd,gFAAgF;EAChF,uBAAuB;EACvB,iBAAiB;EACjB,SAAS;EACT,eAAe;EACf,mCAAmC;UAC3B,2BAA2B;AACrC;AACA;EACE,iBAAiB;EACjB,cAAc;EACd,0CAA0C;AAC5C;AACA;EACE,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,YAAY;EACZ,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;AAC/C;AACA;EACE,sBAAsB;EACtB,kDAAkD;AACpD;AACA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,cAAc;EACd,mHAAmH;EACnH,YAAY;EACZ,iBAAiB;EACjB,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,cAAc;EACd,0CAA0C;EAC1C,YAAY;EACZ,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,kBAAkB;EAClB,8BAA8B;EAC9B,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;EACE,8BAA8B;EAC9B,sBAAsB;AACxB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,4BAA4B;EAC5B,iEAAiE;EACjE,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;AAC/C;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,qDAAqD;AACvD;AACA;EACE,cAAc;EACd,uDAAuD;AACzD;AACA;EACE,6BAA6B;EAC7B,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,uCAAuC;EACvC,+BAA+B;AACjC;AACA;EACE,yCAAyC;EACzC,kGAAkG;EAClG,yCAAyC;EACzC,iCAAiC;AACnC;AACA;EACE,oDAAoD;EACpD,6GAA6G;AAC/G;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,oCAAoC;EACpC,uHAAuH;AACzH;AACA;EACE,YAAY;EACZ,sBAAsB;EACtB,kDAAkD;EAClD,cAAc;EACd,gEAAgE;EAChE,iBAAiB;EACjB,qBAAqB;EACrB,mFAAmF;EACnF,0BAA0B;AAC5B;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,uBAAuB;EACvB,WAAW;EACX,yBAAyB;EACzB,iEAAiE;EACjE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,MAAM;AACR;AACA;EACE,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,6DAA6D;AAC/D;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,yCAAyC;EACzC,oEAAoE;AACtE;AACA;EACE,yCAAyC;EACzC,uEAAuE;AACzE;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,6BAA6B;EAC7B,mDAAmD;EACnD,kBAAkB;EAClB,mBAAmB;EACnB,4CAA4C;AAC9C;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;EACnE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,kDAAkD;AACpD;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2CAA2C;EAC3C,qFAAqF;AACvF;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,4BAA4B;UACpB,oBAAoB;EAC5B,kCAAkC;UAC1B,0BAA0B;EAClC,2CAA2C;UACnC,mCAAmC;EAC3C,yCAAyC;UACjC,iCAAiC;AAC3C;AACA;EACE;IACE,+BAA+B;YACvB,uBAAuB;EACjC;EACA;IACE,iCAAiC;YACzB,yBAAyB;EACnC;AACF;AACA;EACE;IACE,+BAA+B;YACvB,uBAAuB;EACjC;EACA;IACE,iCAAiC;YACzB,yBAAyB;EACnC;AACF;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,yCAAyC;EACzC,kFAAkF;AACpF;AACA;;EAEE,yCAAyC;EACzC,qFAAqF;AACvF;AACA;;EAEE,kDAAkD;EAClD,oGAAoG;AACtG;AACA;;EAEE,mDAAmD;EACnD,8GAA8G;AAChH;AACA;;EAEE,yCAAyC;EACzC,mIAAmI;AACrI;AACA;;EAEE,0CAA0C;EAC1C,wFAAwF;AAC1F;AACA;;EAEE,2CAA2C;EAC3C,yFAAyF;AAC3F;AACA;;EAEE,4CAA4C;EAC5C,0FAA0F;AAC5F;AACA;EACE,yBAAyB;EACzB,iEAAiE;AACnE;AACA;EACE,2BAA2B;EAC3B,mEAAmE;AACrE;AACA;EACE,4BAA4B;EAC5B,oEAAoE;AACtE;AACA;EACE,0BAA0B;EAC1B,kEAAkE;AACpE;AACA;;;;;;;;;EASE,iBAAiB;EACjB,qBAAqB;EACrB,6DAA6D;EAC7D,gBAAgB;AAClB;AACA;;EAEE,sBAAsB;EACtB,yBAAyB;EACzB,iEAAiE;AACnE;AACA;EACE,wBAAwB;EACxB,2BAA2B;EAC3B,mEAAmE;AACrE;;AAEA;EACE,uBAAuB;EACvB,0BAA0B;EAC1B,kEAAkE;AACpE;;AAEA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B,oEAAoE;AACtE;AACA;EACE,uBAAuB;EACvB,0BAA0B;EAC1B,kEAAkE;AACpE;;AAEA;EACE,wBAAwB;EACxB,2BAA2B;EAC3B,mEAAmE;AACrE;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,iEAAiE;AACnE;AACA;EACE,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gDAAgD;EAChD,oFAAoF;AACtF;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;EACZ,UAAU;AACZ;AACA;EACE,eAAe;EACf,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,cAAc;EACd,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,yCAAyC;EACzC,oEAAoE;AACtE;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,oCAAoC;EACpC,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;EAClB,yBAAyB;UACjB,mBAAmB;EAC3B,wBAAwB;UAChB,uBAAuB;EAC/B,eAAe;EACf,mBAAmB;UACX,cAAc;EACtB,sCAAsC;EACtC,8BAA8B;AAChC;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,4BAA4B;EAC5B,mGAAmG;AACrG;AACA;EACE,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;AACV;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,yBAAyB;EACzB,2DAA2D;AAC7D;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,iBAAiB;EACjB,WAAW;EACX,kBAAkB;EAClB,cAAc;EACd,0CAA0C;EAC1C,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,uBAAuB;EACvB,sBAAsB;EACtB,WAAW;EACX,SAAS;EACT,iBAAiB;EACjB,6BAA6B;EAC7B,6BAA6B;EAC7B,4BAA4B;EAC5B,YAAY;AACd;AACA;EACE,wBAAwB;UAChB,gBAAgB;AAC1B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;;EAEE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;;EAEE,mCAAmC;EACnC,qCAAqC;EACrC,6BAA6B;AAC/B;AACA;;EAEE,2BAA2B;EAC3B,kGAAkG;AACpG;AACA;;EAEE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;;EAEE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;;EAEE,kCAAkC;EAClC,oCAAoC;EACpC,4BAA4B;AAC9B;AACA;;EAEE,0BAA0B;EAC1B,iGAAiG;AACnG;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;UACX,YAAY;EACpB,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,2DAA2D;AAC7D;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;EACpD,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,YAAY;EACZ,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;EAC3B,eAAe;EACf,wBAAwB;EACxB,4BAA4B;EAC5B,8DAA8D;AAChE;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,8DAA8D;EAC9D,qBAAqB;EACrB,yBAAyB;EACzB,2DAA2D;AAC7D;AACA;;EAEE,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,yBAAyB;EACzB,iEAAiE;AACnE;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,cAAc;EACd,mHAAmH;EACnH,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;;EAEE,sBAAsB;EACtB,iGAAiG;AACnG;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;;EAEE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,oBAAoB;EACpB,0CAA0C;EAC1C,uFAAuF;AACzF;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,wBAAwB;KACrB,qBAAqB;UAChB,gBAAgB;EACxB,uBAAuB;EACvB,YAAY;EACZ,YAAY;EACZ,UAAU;EACV,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;EACX,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,cAAc;EACd,gFAAgF;EAChF,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,4BAA4B;EAC5B,iEAAiE;AACnE;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,4BAA4B;EAC5B,iEAAiE;EACjE,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,0CAA0C;AAC5C;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,kCAAkC;EAClC,mEAAmE;EACnE,mBAAmB;EACnB,YAAY;EACZ,cAAc;EACd,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,aAAa;EACb,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,cAAc;EACd,gFAAgF;EAChF,YAAY;EACZ,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;;AAEA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;;AAEA;EACE,aAAa;EACb,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,4BAA4B;EAC5B,iEAAiE;AACnE;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,4BAA4B;EAC5B,8DAA8D;AAChE;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB,4BAA4B;EAC5B,iEAAiE;EACjE,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,gBAAgB;EAChB,4CAA4C;EAC5C,kBAAkB;EAClB,0DAA0D;UAClD,kDAAkD;EAC1D,YAAY;EACZ,gBAAgB;EAChB,4CAA4C;EAC5C,aAAa;EACb,UAAU;AACZ;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,yCAAyC;EACzC,kFAAkF;AACpF;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qCAAqC;EACrC,yEAAyE;AAC3E;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,4CAA4C;AAC9C;AACA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,aAAa;EACb,eAAe;EACf,kBAAkB;EAClB,cAAc;EACd,gFAAgF;AAClF;AACA;EACE,UAAU;AACZ;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,uDAAuD;EACvD,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gIAAgI;AAClI;AACA;EACE,mBAAmB;EACnB,+CAA+C;EAC/C,UAAU;EACV,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,mIAAmI;AACrI;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,qBAAqB;EACrB,yBAAyB;EACzB,2DAA2D;AAC7D;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,yBAAyB;EACzB,iEAAiE;AACnE;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;;EAEE,oBAAoB;EACpB,aAAa;EACb,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;;AAEA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;;AAEA;EACE,mBAAmB;UACX,YAAY;EACpB,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,uFAAuF;EACvF,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,mBAAmB;UACX,UAAU;AACpB;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,+CAA+C;EAC/C,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,+EAA+E;EAC/E,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,uFAAuF;EACvF,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,8BAA8B;UACtB,sBAAsB;EAC9B,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,wGAAwG;EACxG,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;UACX,UAAU;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,gGAAgG;AAClG;AACA;EACE,UAAU;EACV,YAAY;EACZ,WAAW;AACb;AACA;EACE,aAAa;EACb,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,uIAAuI;EACvI,qBAAqB;EACrB,+HAA+H;AACjI;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,cAAc;EACd,8BAA8B;UACtB,sBAAsB;EAC9B,YAAY;EACZ,WAAW;EACX,sBAAsB;EACtB,mGAAmG;EACnG,kBAAkB;EAClB,8BAA8B;EAC9B,sBAAsB;EACtB,iBAAiB;EACjB,kBAAkB;EAClB,6IAA6I;AAC/I;AACA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,+HAA+H;AACjI;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,uFAAuF;EACvF,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,mBAAmB;UACX,UAAU;EAClB,mBAAmB;AACrB;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,0DAA0D;UAClD,kDAAkD;AAC5D;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,+CAA+C;EAC/C,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,+EAA+E;EAC/E,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,uBAAuB;AACzB;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,kDAAkD;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,sDAAsD;EACtD,mBAAmB;EACnB,qCAAqC;UAC7B,6BAA6B;AACvC;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,kDAAkD;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,sDAAsD;EACtD,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,kDAAkD;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,sDAAsD;EACtD,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,0DAA0D;UAClD,kDAAkD;EAC1D,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,kDAAkD;EAClD,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,kDAAkD;EAClD,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,yCAAyC;EACzC,6EAA6E;AAC/E;AACA;EACE,yCAAyC;EACzC,6EAA6E;AAC/E;AACA;EACE,yCAAyC;EACzC,6EAA6E;AAC/E;AACA;EACE,YAAY;AACd;AACA;;;;;;EAME,gBAAgB;EAChB,cAAc;EACd,mHAAmH;AACrH;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,yBAAyB;EACzB,SAAS;EACT,UAAU;EACV,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,QAAQ;AACV;AACA;EACE,OAAO;AACT;AACA;EACE,eAAe;AACjB;AACA;;;;;;;EAOE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;;;;;;;EAOE,iBAAiB;AACnB;;AAEA;;;;;;;EAOE,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,8BAA8B;EAC9B,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,6CAA6C;AAC/C;AACA;EACE,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,gBAAgB;AAClB;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;;;EAGE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,kDAAkD;AACpD;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,2DAA2D;AAC7D;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,uBAAuB;EACvB,0BAA0B;EAC1B,kDAAkD;EAClD,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,qBAAqB;OAChB,gBAAgB;EACrB,wBAAwB;EACxB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,oDAAoD;EACpD,cAAc;EACd,6CAA6C;EAC7C,sBAAsB;EACtB,kDAAkD;EAClD,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,oDAAoD;EACpD,yCAAyC;EACzC,oEAAoE;AACtE;AACA;EACE,qBAAqB;EACrB,oDAAoD;EACpD,yBAAyB;EACzB,wDAAwD;EACxD,WAAW;EACX,uCAAuC;AACzC;AACA;EACE,4BAA4B;EAC5B,iEAAiE;EACjE,yBAAyB;EACzB,oEAAoE;EACpE,sCAAsC;EACtC,6EAA6E;AAC/E;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,kBAAkB;EAClB,qBAAqB;EACrB,6CAA6C;EAC7C,YAAY;EACZ,aAAa;AACf;AACA;EACE,cAAc;EACd,0CAA0C;EAC1C,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;;;;;;;;;;;;;;;EAeE,cAAc;EACd,6CAA6C;AAC/C;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;EACnE,uBAAuB;EACvB,0BAA0B;EAC1B,kDAAkD;EAClD,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,wDAAwD;AAC1D\",\"sourcesContent\":[\".ag-theme-alpine {\\n  -webkit-font-smoothing: antialiased;\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n  font-family: -apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \\\"Helvetica Neue\\\", sans-serif;\\n  font-size: 13px;\\n  line-height: normal;\\n}\\n@font-face {\\n  font-family: \\\"agGridAlpine\\\";\\n  src: url(\\\"data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABWoAAsAAAAAJ9AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAmYAAAR2ZcBn9U9TLzIAAANwAAAAQQAAAFZWUVMIY21hcAAAA7QAAAIcAAAFnIMq5ipnbHlmAAAF0AAAC80AABVszjC1ZWhlYWQAABGgAAAANAAAADZ2zsSBaGhlYQAAEdQAAAAeAAAAJAfSBDFobXR4AAAR9AAAABcAAAE0xzj/+2xvY2EAABIMAAAAdQAAAJwYJx3EbWF4cAAAEoQAAAAfAAAAIAFjAKpuYW1lAAASpAAAATUAAAJG5xgJvXBvc3QAABPcAAAByQAAAqgIzxhUeJx9lEtyElEUhv+mm0gCJilFjRhjovEVXzF2uhuaRx4QEDJwYFkOnMSyyrKKcsQ6XIAryNAVuAAHrsAFOHDo2PK7h0ZMBuEWze3z+M9//3Mu8iTNaVNN5doHhy81PzwafVRFgcYf5/9/7w0/vD9SYfKGL7DfgrygpHnd1GuN9M2b90beca7sV/xX/jv/s//F/yWfqFU9JrqobVakmGeoRFXVlCqnGWwR+7oaRPs8m2a9oKvKm6ernpaoGZHTM8QN9XVPi+B0DKetPaISlsNs8xyw7mvhjIgUlDy+be1gDVBkBU3qKmtWz2HZhkmL/Ab+i9Tcp3ZIVgdfB3Z5LE32LV2Ck8sITNWe3ugpfndSh1LNchK+kQ7sPbS3NTSZRDXBqVHLYW/BYGKvgReTsQl6lajdTNEN3SK7Bk4btJZl1y17jcgYbgl9CeycMVxLWmf/Qm/pRREW45y2aTpW4CHsp/aO4aV6dMLaAmtA7BM4TK2uPw+oFdKVGPQlfEN90rG+6rt+6Kd+64/O6TJ1YjvDHuj7Z2pTQMHT0V28zX9Wd9YZZuB01MmIWU5eM3UifL1MQ1etyMmcOgn7EGti8XPwdPFd2KT0I6BGaHVdp/OsHd4jos9n09lglUzpHlOwYBPct1moMKNbum6I4zlM0XoZRLcb86uYbg3wrlnfnLruhi3am7sLrt8VurPCb8gJq6bTId5VLA5parlhWSnsHcYz/Cmsp9Ucq2VYhbqLz81Y325Hl0rrnGfMJNYduxl9m6/bMKhmN7VMDx37VtaxKxYXWZbHP0GY3fDEtHMz3YGbm4/BX0ArchMAAHicY2BkmsY4gYGVgYGpimkPAwNDD4RmfMBgyMgEFGVgZWbACgLSXFMYDjDofjRifgHkRjG/BZnCwAiSAwDkfwr5AAAAeJy11AdSG0EQheFfgSxwIOecEWCCySCiEHAJnCkcKJw5h8/me/QJ8Bt1+wC4ylv1qXdGq92ZWr0GaoCczEkesvVkdEYmq9lMdT5HY3U+z2+NC9ST1XmRK264s6X7e80WueSaW8tUR3+PjK4u0McEzzU6YoUDdjlmjXNWKbHBPnucsMUmp7pmh3XKnLHNIRUu9Pu0irzWWEudntuglTTpjs208JgntNJGOx100kU3PfTqWf0MMMgQw4wwyhjjevokU0wzw6x2U2SeBRb1/TOWWNYia3nYcfTA69OxcrB7vHa+WtKO9062NrXZnfXy2fZh5eIfbvYfjkL6yP2K0Tnpjbq028uwIi/CgbwMu/IqHMvrsCZvQrrn27Aq70JJrsKGXId9eR/25EM4kY9hSz6FTbkJp3Ib0j/vc9iRL2FdvoayfAtn8j1sy49wKD9DRe6CXqBlXMqLZR2p5lzKl+VdypjVuJQ9q3WkWudItd6RaoMj1UaXMmlNjlQLLr1Ja3ak2uJI9ZFTdrCgFGFBecKeOiULa3XKGNbmlDas3Sl3WIdTArFOpyxiXU6pxLqd8on1OCUV63XKLNbnlF6s3ynH2IBTorFBp+xiQ04px4ad8o6NOCUfG3XqAdiYUzfAxp36Ajbh1CGwSadegU05dQ1s2ql/YDMu9UubdSknNufUXbCiU5/B5p06DrbgqutfdOpCWFA/wgLLfwB3H6YceJztWHtwVNUZv9852b179/2+WUI22b3ZXNjshib7uEkWdkMSSMAQcVwwQDFEikONtqK0KBAR/2hNHavjDPgH6Uw7bcPUmUZaph0VKk6VEkeldqTtDOof1dKSqmlxGLGBvfQ7Z3dDAqnaPzttsnvej+98z9+3Agj4R6ZoXLAIAoR8sugLpUKaGiJTunV6Gi7qd2F5kMZz09PZ7PQ0W264evnqZfoR/Ugw4C6H4BOqBMEjyqKqGTRWRrCgMmt6VFZ+8PTTsZdfJlksYk/rg/39/e18JMYHyGOzOv0b+vv1T2evR7LYpbSDdggS3iNrroRL1iQ43DaZP5/Rj+pH4WJmUjfA5ckMrNGPCoSvP0APCF6hFreHRaNo9Mp+2d+spbV0Uq1X6z2iioQidUgfXNwxOKC1tmoDg++VGwNtBw+2HTjAS3pgzhRvFF4tz2LJrivx0Y4tkfMy4VLUhE9hNfxyePj48DDsGh6mtsJpZOgufUQo0Xmenhc8QoBxP2wHn8sbhESoOQspV7IRJNBkkOmDVz4JJoL4oWZeF6b0v/VNwFgfPY/9OZNXPgF/3ykYu3nu+fL851MU9g2nP144Q2I3nlw4c+/sMyk/0xVyReY7F8+k5uvOLQ5+/fpzi7yjD9CvoD6ZhEpBkECUJaBaDRiZ6Hxef3M6xcRGPtAH2rbqBchOTJw6YrEEHP6mFU1+RwB+DT/I4IT+MiybmMjabMGq+kC4qSkciCwMsuMr+B1x1POifByCEAm5QgbFlfAorgy4FBeNF54gO/TVXFbHhqdJYlgfYZIqSqukh+QInmFAGgmqD+yCVv0UmgWN66f0iZJ9FN/zMD2BrwkI1ZzzRh9qbUjmDa8fGZVGPtUrHqSBHNGtSlMeLg7rKUYyvIalAnoKXqMvNoULz5PuW5uUwvNsjnQrTYVtpLtkE0/SJ5muSYDsEiVQUV3gImzo1MdgY6d+WB/rhI1YkPScLmzEJbjdKAhXr9Cv0Q8FJ2pItdAjPCx8D6lF81ANswilSgrlLBtlfwY8Ea+dKOHGilQySxLNQfB5jeF6tREU3IAq0JzWstDsl712HMHhVDLdHKQJJr9GUBtJMgu4i5Q2FffUgF8OEjTFtNaEm4Pg9TnATsKNsITidj+9R7zzXoPep2qaStKqtvKo3gEjBKjBeZboA5I76HXKXqfZYKsMeeQ6j9lmqjB5HfJCq1zrNxKT3fwzd9hf7bI5JbtJNDmsLr/F7fRWudw1fnely2S2iRUGR9BttBjcbovNbV7aECWUmCwmA0kR0eywGkmCgtltIn81ffMRA2lRr/yWEzPy5pXv0Ad+H5BchSf/aK0JekzuqtqIL5yq9y5U3ZLDbPN5k821Df7KSrPD7ggs9jssEbfFbgm4rLLb7jIZRU+oMeKx+Sp9TrPF4fbYJItERdEgeqq/e+y4ZDGaRZvZIJ2RHCbJLp12SGanW/i/7P6rZTcnnoEqou9R0Xrpch7QYA3+Y0CDy7phEsMbrCn5rznyXvW5stZYmEumE83+GsgRJjq/z+sAGUVkh3D9EhCZMtSnkp8toviGmyTR4HW4PM6l7Wa70WZyeHx9eatZcnvdFf23VUguHPks5k48OGS3WfxOT+XGjQ63weC0uqrvedDhc9slybhvt9FkdDnc/ytvnBNDIui4RRljzgS0IL46Di3QmpsdQx5DPFElNArLmJ5ocpoZbQ0+ChjYMipGtDJAm5VxIIgWreFYmNmtpsppZouinNYaSRgql8V61g+sH91ZTam3Kx6PaZuHbhvdubCiwtc3GO/yLhjc33PLqkw01bAqGjK11N26Kurt6asL3LH/cfIj3Lu4a89as0XbrDTG0glYsXutxbx0m1R9a/PyrVpdW020uyHVsKXFG+3J1/VkNuHgLPrtiMHiSD9CA0YLJzWSJaWXcE8BBpxEH4OT6FJIRff+OwJ49xP7BxcgZfrJhTtHf8ppr+aNhRXw7eiqaHTVOlZAQNu6HK8slufW7ulixJpL9SjS1BPlRQm7DCHvRcGGFIk+0aWmQgbZp6U0OjR9bJo8Wxh/O3eWTE2PHof+6Vzu7bPZ0be5yHhxiUyh3LjVaqooM2xHLr30UmZ6Wk/l85A6cSLDMbNVsBbxBq4v4w2GwaqEGkERVKFBWCIImpJKyLO+kc/pI/4+nssd42XhjX/XmR4u/uVKdbZUIzmmmfdfT5MAiPoj+PXgPSn8qvhlYyLWIazpENPRwml+FF5BntUnsAW/0CfIDn6vvjqHd+X0ESQhm83OwzMP6jomFsizC5xlsCufJ0c5y3TrXL9oYphJY3BGDdHlZT/IfCIJTrYxyN82WbaRA+QkZiABtBLBgxEqAymlqEe8hdYgI8aNKD4WuuzQANjgyqb8MLxUGRtr3dLSsqV1bExZGn4G+vSfwy7eBuXaJFxUMsrNLQP3DbTcjK1ofgyrlWxoy46BFs7Xq1fpJMfE1/E1hPiSJRoGlhUhHQaWXJX6DHuSBb29I5e0S6RBu6QhOHsdkoVeVm7GPvkAZ/TXe3shWY8t/GjLent7d2KNn0u/g2QZjz9Dn0EqXBzTJnyAionAEj2lCph76CP9QDp0/V1MQDbo6PfIOznY9S4fox595B0+NuNzruksyiA1819Ex+UvtKKsh7Pl+9+kbxbvn7l2hpDczKWoQ2VKGFHFa/9QpmTGN44XfSNzcTLANzK6noFWGse6DVpKOnWOOnnuyaKnjGmCyBI5cu7ChdjJkzFekiCvvsXLmbcVc8IQ05V5s0JIsiZGERkaAQOICgwksYXz5Yh6RzzWu2ZT6/YGPR6ugzXYgLfCdWxwvpRRH9i0pjcWrwvr8Ybt+od1YXirYXsrHyvTdzfmDD4hKNQjfQqDWKIyN2EINfsZ/EqmgfE3lErQynF7+9p227M8O+jBUn/BFQiEAwFIFZ7Lw/fzdCjS2BjBPGIbX3Io3FSpVOKn4CaHuFsoyXAv3YMa28Z9W7r4L2v1WIFoRC4jn0SjA/mtsqQMWV6PbAG2CkOQ7E/4sanCLU+h+zZI1W1LtK32tupaCPraV2wHINTri8sH/xyDcx7JanKOphc1u2CBSSZgIgdMCJ/sbucZeOgpyWJxWBdZJMtg47KgT39v4TrrNqMhkGr4kmzB7eQJp9Nj94/aKa3S/2L0qpVJ98GKChBN7jOCmb9jnI6j9dUKi4TlwkrhJiEvbBIGhTvxXUEiu6mdiBWRRqIST5ZodYaQy48BVEsbvDILSCmuSqLqQ/wgKjLv+DkzIl45kVKNYiKlRQEZkUAH7UsgDlYjRkX0JbR6dDHUtWhFFJCe6IpF+vv6+9d6UA27C6f+PqUkiVQwAUkqtfCCObYuH5OiKxftlGLr1sXM7XXNC4JQeBX27gEYziVvagHYnYNf7WbrkRet0X0nWrr30Z/Me341710pvGqUcPnUGy4nXgZ7wMEPl+5d1N1ApFge7wGEqP5ocGXLQy+uTu37ZzoykNu7N4yrKcDeYXjoBlvknpiMZ/RT0JrRyccZlu226cLs3wO8wuKyVTmZttQytjmZVdEwh2ms38xmSgb16M4dnV1dnTt2grPcevSezRtTmpbauPlsuUHPswn9H3MXX9k7ZxFvlGyI0WJFG08zanggKPp79T8grev+zs77H2VF1xejkkyV1mMx/YUJviEXEGUMtuy3j7m/aPHMYLKNZQbXsGEvHeJxlSMZ5v8A93JEUvSDhffJkcJadNRZmOQD+uEcmSqcLt9JySEmPY8E58ABDnIIY19fSe6HKGVzEimOUqpf0C/MnUPsivRgwOS75z+zuKA092Pq4b+bsN8qNLgLPu0snNT/1AFVrPUbqOkorYuTTvZCD77mOA82HbfP8ClOxouxgeVL5GMeEqCVjGOMYKo5y88PCW7BLySYH/XxVNdvFOUssExWQcNOMMzsmwUSkmlNxpUyfjQgrxQxgBZdlswhAFj85byp8NwjbT1lpNDRtL7mvoGew8lCN3mFYYLYCsuyqjuWtg60jOXh7v2VX21vLYKFptWG9fnbcSV54V8PFbSvAAAAeJxjYGRgYADiJZeya+P5bb4ycDO/AApEcT7e1wCj///+/5v5LfNboEoOBiYgyQAAoN8P3nicY2BkYGB+wcAAIv///v+b+S0DIwMq8AUAntwHCgAAeJxjYGBgYH4Bwv9/Q+ihjekBAG/aMMwAeJxjYAACKYYghiyGJQz7GN4xSjA6MZYwTmNcxXiH8R/THeZdzFdY3Fh2sJxh1WEtY53Cuob1G5semxtbHNsitgfsbOwK7G7sEewl7Ec4mDjSOHk4FTjTOA9w3uL8xcXBJcalwmXE5cYVwpXBtY10CAAggCv3AAAAeJxjYGRgYPBlmMfAwwACTEDMBYQMDP/BfAYAIOsCDgB4nHWRPU7DQBCFnxMniBghJCREx1Y0SM5PQZEuFHGfIgWdE68dR7bXWm8ipeMYnIBjUHIETsEheDFTREjZ1a6/+fbNNAZwgy94OC4PV+19XB1csPrjLulW2Cc/CPcQ4Em4T/8sPKB9EQ7YWXKC51/S3ONNuINrvAt36T+EffKncA93+Bbu0/8ID7D0fOEAj95rnEU2T2ZFnVd6obNdEdtTdcpLbZvcVGocjk51pCttY6cTtTqoZp9NnEtVak2p5qZyuiiMqq3Z6rULN87V0+EwFR+uTYkYGSJY5EgwQ4GaVEFjwZNhRxPz9VzqnF/yWDSsDGuFMUKMzqYjnqrtiOH4TdixwoF3gz17JrQOKeuUGcO/ojBvJx/TBbehqdu3Lc2aPsSm7aoxxZA7/ZcPmeKkXwK+aWkAAAB4nG2SB2/bMBSE/cWS7dhp46ZtuvceapvuvXeb/geGomUiEimQlO3k15e1gwAB+gASd4eHe8cHtpZai+q3/l+bLNEmIaVDlx7L9BmwwiEOs8qQI6xxlGMcZ50TnOQUpznDWc5xngtc5BKXucJVrnGdG9zkFre5w10y7nGfB2zwkEc85glPecZzXvCSV7zmDW95x3s+8JFPfOYLX/nGd37wk1/8ZpM/rYEoCqcKEbQ1HeGcnfq28LIjhZGqTOVYuDCUYyW3t+wsmwOVr+8L2uQqKFdpI4Ja25cbs9e5Im1pXVbrSFw3kqYyvi+tCU7IoPJE2nonlc5635Z+ksaTbSS58jJVsxigO7+zjZ6a1SLOypfVjsp8Kfy4HVFnpMs4Ph1p50NSOF2nhbNNncSGkJRqFDqlNjFHt7Qi16boVWKmK72rkkqZphdzL5hRs5AYa9TA2JCJsrRTlad1dFHtWpu01hMberVTE20bP3TRzGZbTQjWZHY0Wj0omNTpYhwSLyaq76tol+V2avbgv1iDBZy39RY4pg5xTWvBKXVwr8tzydbK9BqzeA+CAocioLEYpngkJWO22WIW/0ZORUPNDhNG7LZafwFegLa2AAAA\\\") format(\\\"woff\\\");\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-alpine .ag-icon {\\n  font-family: \\\"agGridAlpine\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.ag-theme-alpine .ag-icon-aggregation::before {\\n  content: \\\"\\\\f101\\\";\\n}\\n.ag-theme-alpine .ag-icon-arrows::before {\\n  content: \\\"\\\\f102\\\";\\n}\\n.ag-theme-alpine .ag-icon-asc::before {\\n  content: \\\"\\\\f103\\\";\\n}\\n.ag-theme-alpine .ag-icon-cancel::before {\\n  content: \\\"\\\\f104\\\";\\n}\\n.ag-theme-alpine .ag-icon-chart::before {\\n  content: \\\"\\\\f105\\\";\\n}\\n.ag-theme-alpine .ag-icon-color-picker::before {\\n  content: \\\"\\\\f109\\\";\\n}\\n.ag-theme-alpine .ag-icon-columns::before {\\n  content: \\\"\\\\f10a\\\";\\n}\\n.ag-theme-alpine .ag-icon-contracted::before {\\n  content: \\\"\\\\f10b\\\";\\n}\\n.ag-theme-alpine .ag-icon-copy::before {\\n  content: \\\"\\\\f10c\\\";\\n}\\n.ag-theme-alpine .ag-icon-cross::before {\\n  content: \\\"\\\\f10d\\\";\\n}\\n.ag-theme-alpine .ag-icon-csv::before {\\n  content: \\\"\\\\f10e\\\";\\n}\\n.ag-theme-alpine .ag-icon-desc::before {\\n  content: \\\"\\\\f10f\\\";\\n}\\n.ag-theme-alpine .ag-icon-excel::before {\\n  content: \\\"\\\\f110\\\";\\n}\\n.ag-theme-alpine .ag-icon-expanded::before {\\n  content: \\\"\\\\f111\\\";\\n}\\n.ag-theme-alpine .ag-icon-eye-slash::before {\\n  content: \\\"\\\\f112\\\";\\n}\\n.ag-theme-alpine .ag-icon-eye::before {\\n  content: \\\"\\\\f113\\\";\\n}\\n.ag-theme-alpine .ag-icon-filter::before {\\n  content: \\\"\\\\f114\\\";\\n}\\n.ag-theme-alpine .ag-icon-first::before {\\n  content: \\\"\\\\f115\\\";\\n}\\n.ag-theme-alpine .ag-icon-grip::before {\\n  content: \\\"\\\\f116\\\";\\n}\\n.ag-theme-alpine .ag-icon-group::before {\\n  content: \\\"\\\\f117\\\";\\n}\\n.ag-theme-alpine .ag-icon-last::before {\\n  content: \\\"\\\\f118\\\";\\n}\\n.ag-theme-alpine .ag-icon-left::before {\\n  content: \\\"\\\\f119\\\";\\n}\\n.ag-theme-alpine .ag-icon-linked::before {\\n  content: \\\"\\\\f11a\\\";\\n}\\n.ag-theme-alpine .ag-icon-loading::before {\\n  content: \\\"\\\\f11b\\\";\\n}\\n.ag-theme-alpine .ag-icon-maximize::before {\\n  content: \\\"\\\\f11c\\\";\\n}\\n.ag-theme-alpine .ag-icon-menu::before {\\n  content: \\\"\\\\f11d\\\";\\n}\\n.ag-theme-alpine .ag-icon-minimize::before {\\n  content: \\\"\\\\f11e\\\";\\n}\\n.ag-theme-alpine .ag-icon-next::before {\\n  content: \\\"\\\\f11f\\\";\\n}\\n.ag-theme-alpine .ag-icon-none::before {\\n  content: \\\"\\\\f120\\\";\\n}\\n.ag-theme-alpine .ag-icon-not-allowed::before {\\n  content: \\\"\\\\f121\\\";\\n}\\n.ag-theme-alpine .ag-icon-paste::before {\\n  content: \\\"\\\\f122\\\";\\n}\\n.ag-theme-alpine .ag-icon-pin::before {\\n  content: \\\"\\\\f123\\\";\\n}\\n.ag-theme-alpine .ag-icon-pivot::before {\\n  content: \\\"\\\\f124\\\";\\n}\\n.ag-theme-alpine .ag-icon-previous::before {\\n  content: \\\"\\\\f125\\\";\\n}\\n.ag-theme-alpine .ag-icon-right::before {\\n  content: \\\"\\\\f128\\\";\\n}\\n.ag-theme-alpine .ag-icon-save::before {\\n  content: \\\"\\\\f129\\\";\\n}\\n.ag-theme-alpine .ag-icon-small-down::before {\\n  content: \\\"\\\\f12a\\\";\\n}\\n.ag-theme-alpine .ag-icon-small-left::before {\\n  content: \\\"\\\\f12b\\\";\\n}\\n.ag-theme-alpine .ag-icon-small-right::before {\\n  content: \\\"\\\\f12c\\\";\\n}\\n.ag-theme-alpine .ag-icon-small-up::before {\\n  content: \\\"\\\\f12d\\\";\\n}\\n.ag-theme-alpine .ag-icon-tick::before {\\n  content: \\\"\\\\f12e\\\";\\n}\\n.ag-theme-alpine .ag-icon-tree-closed::before {\\n  content: \\\"\\\\f12f\\\";\\n}\\n.ag-theme-alpine .ag-icon-tree-indeterminate::before {\\n  content: \\\"\\\\f130\\\";\\n}\\n.ag-theme-alpine .ag-icon-tree-open::before {\\n  content: \\\"\\\\f131\\\";\\n}\\n.ag-theme-alpine .ag-icon-unlinked::before {\\n  content: \\\"\\\\f132\\\";\\n}\\n.ag-theme-alpine .ag-icon-row-drag::before {\\n  content: \\\"\\\\f116\\\";\\n}\\n.ag-theme-alpine .ag-left-arrow::before {\\n  content: \\\"\\\\f119\\\";\\n}\\n.ag-theme-alpine .ag-right-arrow::before {\\n  content: \\\"\\\\f128\\\";\\n}\\n.ag-theme-alpine .ag-root-wrapper {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine [class^=ag-], .ag-theme-alpine [class^=ag-]:focus, .ag-theme-alpine [class^=ag-]:after, .ag-theme-alpine [class^=ag-]:before {\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  outline: none;\\n}\\n.ag-theme-alpine [class^=ag-]::-ms-clear {\\n  display: none;\\n}\\n.ag-theme-alpine .ag-checkbox .ag-input-wrapper,\\n.ag-theme-alpine .ag-radio-button .ag-input-wrapper {\\n  overflow: visible;\\n}\\n.ag-theme-alpine .ag-range-field .ag-input-wrapper {\\n  height: 100%;\\n}\\n.ag-theme-alpine .ag-toggle-button {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  width: unset;\\n  min-width: unset;\\n}\\n.ag-theme-alpine .ag-ltr .ag-label-align-right .ag-label {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-label-align-right .ag-label {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine input[class^=ag-] {\\n  margin: 0;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine textarea[class^=ag-],\\n.ag-theme-alpine select[class^=ag-] {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]),\\n.ag-theme-alpine input[class^=ag-][type=text],\\n.ag-theme-alpine input[class^=ag-][type=number],\\n.ag-theme-alpine input[class^=ag-][type=tel],\\n.ag-theme-alpine input[class^=ag-][type=date],\\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine textarea[class^=ag-] {\\n  font-size: inherit;\\n  line-height: inherit;\\n  color: inherit;\\n  border-width: 1px;\\n  border-style: solid;\\n  border-color: #babfc7;\\n  border-color: var(--ag-input-border-color, var(--ag-border-color, #babfc7));\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]):disabled,\\n.ag-theme-alpine input[class^=ag-][type=text]:disabled,\\n.ag-theme-alpine input[class^=ag-][type=number]:disabled,\\n.ag-theme-alpine input[class^=ag-][type=tel]:disabled,\\n.ag-theme-alpine input[class^=ag-][type=date]:disabled,\\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:disabled,\\n.ag-theme-alpine textarea[class^=ag-]:disabled {\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n  background-color: #f1f2f4;\\n  background-color: var(--ag-input-disabled-background-color, #f1f2f4);\\n  border-color: rgba(186, 191, 199, 0.3);\\n  border-color: var(--ag-input-disabled-border-color, rgba(186, 191, 199, 0.3));\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]):focus,\\n.ag-theme-alpine input[class^=ag-][type=text]:focus,\\n.ag-theme-alpine input[class^=ag-][type=number]:focus,\\n.ag-theme-alpine input[class^=ag-][type=tel]:focus,\\n.ag-theme-alpine input[class^=ag-][type=date]:focus,\\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:focus,\\n.ag-theme-alpine textarea[class^=ag-]:focus {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]):invalid,\\n.ag-theme-alpine input[class^=ag-][type=text]:invalid,\\n.ag-theme-alpine input[class^=ag-][type=number]:invalid,\\n.ag-theme-alpine input[class^=ag-][type=tel]:invalid,\\n.ag-theme-alpine input[class^=ag-][type=date]:invalid,\\n.ag-theme-alpine input[class^=ag-][type=datetime-local]:invalid,\\n.ag-theme-alpine textarea[class^=ag-]:invalid {\\n  border-width: 2px;\\n  border-style: solid;\\n  border-color: #e02525;\\n  border-color: var(--ag-input-border-color-invalid, var(--ag-invalid-color, #e02525));\\n}\\n.ag-theme-alpine input[class^=ag-][type=number] {\\n  -moz-appearance: textfield;\\n}\\n.ag-theme-alpine input[class^=ag-][type=number]::-webkit-outer-spin-button, .ag-theme-alpine input[class^=ag-][type=number]::-webkit-inner-spin-button {\\n  -webkit-appearance: none;\\n  margin: 0;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range] {\\n  padding: 0;\\n}\\n.ag-theme-alpine input[class^=ag-][type=button]:focus, .ag-theme-alpine button[class^=ag-]:focus {\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n}\\n.ag-theme-alpine .ag-drag-handle {\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-list-item, .ag-theme-alpine .ag-virtual-list-item {\\n  height: 24px;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-select-list {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n}\\n.ag-theme-alpine .ag-list-item {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-theme-alpine .ag-list-item.ag-active-item {\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-select-list-item {\\n  padding-left: 4px;\\n  padding-right: 4px;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  user-select: none;\\n}\\n.ag-theme-alpine .ag-select-list-item span {\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n  overflow: hidden;\\n}\\n.ag-theme-alpine .ag-select .ag-picker-field-wrapper {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  min-height: 24px;\\n  cursor: default;\\n}\\n.ag-theme-alpine .ag-select.ag-disabled .ag-picker-field-wrapper:focus {\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n}\\n.ag-theme-alpine .ag-select:not(.ag-cell-editor) {\\n  height: 24px;\\n}\\n.ag-theme-alpine .ag-select .ag-picker-field-display {\\n  margin: 4px;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-theme-alpine .ag-select .ag-picker-field-icon {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-alpine .ag-select.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-rich-select {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n}\\n.ag-theme-alpine .ag-rich-select-list {\\n  width: 100%;\\n  min-width: 200px;\\n  height: 273px;\\n}\\n.ag-theme-alpine .ag-rich-select-value {\\n  padding: 0 6px 0 18px;\\n  height: 42px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #dde2eb;\\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-rich-select-virtual-list-item {\\n  cursor: default;\\n  height: 24px;\\n}\\n.ag-theme-alpine .ag-rich-select-virtual-list-item:hover {\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-rich-select-row {\\n  padding-left: 18px;\\n}\\n.ag-theme-alpine .ag-rich-select-row-selected {\\n  background-color: rgba(33, 150, 243, 0.3);\\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\\n}\\n.ag-theme-alpine .ag-row-drag,\\n.ag-theme-alpine .ag-selection-checkbox,\\n.ag-theme-alpine .ag-group-expanded,\\n.ag-theme-alpine .ag-group-contracted {\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-ltr .ag-row-drag, .ag-theme-alpine .ag-ltr .ag-selection-checkbox, .ag-theme-alpine .ag-ltr .ag-group-expanded, .ag-theme-alpine .ag-ltr .ag-group-contracted {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-drag, .ag-theme-alpine .ag-rtl .ag-selection-checkbox, .ag-theme-alpine .ag-rtl .ag-group-expanded, .ag-theme-alpine .ag-rtl .ag-group-contracted {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\\n  height: min(var(--ag-line-height, 40px), 40px);\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n.ag-theme-alpine .ag-group-expanded,\\n.ag-theme-alpine .ag-group-contracted {\\n  cursor: pointer;\\n}\\n.ag-theme-alpine .ag-group-title-bar-icon {\\n  cursor: pointer;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-ltr .ag-group-child-count {\\n  margin-left: 2px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-group-child-count {\\n  margin-right: 2px;\\n}\\n\\n.ag-theme-alpine .ag-group-title-bar {\\n  background-color: #fff;\\n  background-color: var(--ag-subheader-background-color, #fff);\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-group-toolbar {\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-disabled-group-title-bar, .ag-theme-alpine .ag-disabled-group-container {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .group-item {\\n  margin: 3px 0;\\n}\\n.ag-theme-alpine .ag-label {\\n  white-space: nowrap;\\n}\\n.ag-theme-alpine .ag-ltr .ag-label {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-label {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-label-align-top .ag-label {\\n  margin-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-slider-field, .ag-theme-alpine .ag-ltr .ag-angle-select-field {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-slider-field, .ag-theme-alpine .ag-rtl .ag-angle-select-field {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-angle-select-parent-circle {\\n  width: 24px;\\n  height: 24px;\\n  border-radius: 12px;\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-angle-select-child-circle {\\n  top: 4px;\\n  left: 12px;\\n  width: 6px;\\n  height: 6px;\\n  margin-left: -3px;\\n  margin-top: -4px;\\n  border-radius: 3px;\\n  background-color: #181d1f;\\n  background-color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-picker-field-wrapper {\\n  border: 1px solid;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  border-radius: 5px;\\n}\\n.ag-theme-alpine .ag-picker-field-wrapper:focus {\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n}\\n.ag-theme-alpine .ag-picker-field-button {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-dialog.ag-color-dialog {\\n  border-radius: 5px;\\n}\\n.ag-theme-alpine .ag-color-picker .ag-picker-field-display {\\n  height: 16px;\\n}\\n.ag-theme-alpine .ag-color-panel {\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-spectrum-color {\\n  background-color: rgb(255, 0, 0);\\n  border-radius: 2px;\\n}\\n.ag-theme-alpine .ag-spectrum-tools {\\n  padding: 10px;\\n}\\n.ag-theme-alpine .ag-spectrum-sat {\\n  background-image: -webkit-gradient(linear, left top, right top, from(white), to(rgba(204, 154, 129, 0)));\\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\\n}\\n.ag-theme-alpine .ag-spectrum-val {\\n  background-image: -webkit-gradient(linear, left bottom, left top, from(black), to(rgba(204, 154, 129, 0)));\\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\\n}\\n.ag-theme-alpine .ag-spectrum-dragger {\\n  border-radius: 12px;\\n  height: 12px;\\n  width: 12px;\\n  border: 1px solid white;\\n  background: black;\\n  -webkit-box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n          box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n}\\n.ag-theme-alpine .ag-spectrum-hue-background {\\n  border-radius: 2px;\\n}\\n.ag-theme-alpine .ag-spectrum-alpha-background {\\n  border-radius: 2px;\\n}\\n.ag-theme-alpine .ag-spectrum-tool {\\n  margin-bottom: 10px;\\n  height: 11px;\\n  border-radius: 2px;\\n}\\n.ag-theme-alpine .ag-spectrum-slider {\\n  margin-top: -12px;\\n  width: 13px;\\n  height: 13px;\\n  border-radius: 13px;\\n  background-color: rgb(248, 248, 248);\\n  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n          box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n}\\n.ag-theme-alpine .ag-recent-color {\\n  margin: 0 3px;\\n}\\n.ag-theme-alpine .ag-recent-color:first-child {\\n  margin-left: 0;\\n}\\n.ag-theme-alpine .ag-recent-color:last-child {\\n  margin-right: 0;\\n}\\n.ag-theme-alpine.ag-dnd-ghost {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  border: solid 1px;\\n  border-color: #dde2eb;\\n  border-color: var(--ag-secondary-border-color, #dde2eb);\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n  height: 48px !important;\\n  line-height: 48px;\\n  margin: 0;\\n  padding: 0 12px;\\n  -webkit-transform: translateY(12px);\\n          transform: translateY(12px);\\n}\\n.ag-theme-alpine .ag-dnd-ghost-icon {\\n  margin-right: 6px;\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n}\\n.ag-theme-alpine .ag-popup-child:not(.ag-tooltip-custom) {\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n}\\n.ag-dragging-range-handle .ag-theme-alpine .ag-dialog, .ag-dragging-fill-handle .ag-theme-alpine .ag-dialog {\\n  opacity: 0.7;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-dialog {\\n  border-radius: 3px;\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-panel {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-panel-title-bar {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-header-background-color, #f8f8f8);\\n  color: #181d1f;\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\\n  height: 48px;\\n  padding: 6px 18px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-tooltip {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-header-background-color, #f8f8f8);\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n  padding: 6px;\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  border-radius: 3px;\\n  -webkit-transition: opacity 1s;\\n  transition: opacity 1s;\\n  white-space: normal;\\n}\\n.ag-theme-alpine .ag-tooltip.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n.ag-theme-alpine .ag-tooltip-custom {\\n  -webkit-transition: opacity 1s;\\n  transition: opacity 1s;\\n}\\n.ag-theme-alpine .ag-tooltip-custom.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 16px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 16px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 32px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 32px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 48px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 48px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 64px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 64px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 80px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 80px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 96px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 96px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 112px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 112px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 128px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 128px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 144px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 144px;\\n}\\n\\n.ag-theme-alpine .ag-column-select-header-icon {\\n  cursor: pointer;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header-icon:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header-icon:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-ltr .ag-column-group-icons:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-icon:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-checkbox:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-checkbox:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-alpine .ag-ltr .ag-column-select-column-label:not(:last-child) {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-group-icons:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-icon:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-checkbox:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-checkbox:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-alpine .ag-rtl .ag-column-select-column-label:not(:last-child) {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-column-select-column-group:not(:last-child),\\n.ag-theme-alpine .ag-column-select-column:not(:last-child) {\\n  margin-bottom: 9px;\\n}\\n.ag-theme-alpine .ag-column-select-column-readonly,\\n.ag-theme-alpine .ag-column-select-column-group-readonly {\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-ltr .ag-column-select-add-group-indent {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-select-add-group-indent {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-column-select-virtual-list-viewport {\\n  padding: 6px 0px;\\n}\\n.ag-theme-alpine .ag-column-select-virtual-list-item {\\n  padding: 0 12px;\\n}\\n.ag-theme-alpine .ag-rtl {\\n  text-align: right;\\n}\\n.ag-theme-alpine .ag-root-wrapper {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-left: 46px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-right: 46px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-left: 74px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-right: 74px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 56px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 56px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-left: 102px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-right: 102px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 84px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 84px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-left: 130px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-right: 130px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 112px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 112px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-left: 158px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-right: 158px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 140px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 140px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-left: 186px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-right: 186px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 168px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 168px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-left: 214px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-right: 214px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 196px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 196px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-left: 242px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-right: 242px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 224px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 224px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-left: 270px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-right: 270px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 252px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 252px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-left: 298px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-right: 298px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-10 {\\n  padding-left: 280px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-10 {\\n  padding-right: 280px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-left: 326px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-right: 326px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-11 {\\n  padding-left: 308px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-11 {\\n  padding-right: 308px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-left: 354px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-right: 354px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-12 {\\n  padding-left: 336px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-12 {\\n  padding-right: 336px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-left: 382px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-right: 382px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-13 {\\n  padding-left: 364px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-13 {\\n  padding-right: 364px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-left: 410px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-right: 410px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-14 {\\n  padding-left: 392px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-14 {\\n  padding-right: 392px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-left: 438px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-right: 438px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-15 {\\n  padding-left: 420px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-15 {\\n  padding-right: 420px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-left: 466px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-right: 466px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-16 {\\n  padding-left: 448px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-16 {\\n  padding-right: 448px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-left: 494px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-right: 494px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-17 {\\n  padding-left: 476px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-17 {\\n  padding-right: 476px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-left: 522px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-right: 522px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-18 {\\n  padding-left: 504px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-18 {\\n  padding-right: 504px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-left: 550px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-right: 550px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-19 {\\n  padding-left: 532px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-19 {\\n  padding-right: 532px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-left: 578px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-right: 578px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-20 {\\n  padding-left: 560px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-20 {\\n  padding-right: 560px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-left: 606px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-right: 606px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-21 {\\n  padding-left: 588px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-21 {\\n  padding-right: 588px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-left: 634px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-right: 634px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-22 {\\n  padding-left: 616px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-22 {\\n  padding-right: 616px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-left: 662px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-right: 662px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-23 {\\n  padding-left: 644px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-23 {\\n  padding-right: 644px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-left: 690px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-right: 690px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-24 {\\n  padding-left: 672px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-24 {\\n  padding-right: 672px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-left: 718px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-right: 718px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-25 {\\n  padding-left: 700px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-25 {\\n  padding-right: 700px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-left: 746px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-right: 746px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-26 {\\n  padding-left: 728px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-26 {\\n  padding-right: 728px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-left: 774px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-right: 774px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-27 {\\n  padding-left: 756px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-27 {\\n  padding-right: 756px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-left: 802px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-right: 802px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-28 {\\n  padding-left: 784px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-28 {\\n  padding-right: 784px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-left: 830px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-right: 830px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-29 {\\n  padding-left: 812px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-29 {\\n  padding-right: 812px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-left: 858px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-right: 858px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-30 {\\n  padding-left: 840px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-30 {\\n  padding-right: 840px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-left: 886px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-right: 886px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-31 {\\n  padding-left: 868px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-31 {\\n  padding-right: 868px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-left: 914px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-right: 914px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-32 {\\n  padding-left: 896px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-32 {\\n  padding-right: 896px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-left: 942px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-right: 942px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-33 {\\n  padding-left: 924px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-33 {\\n  padding-right: 924px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-left: 970px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-right: 970px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-34 {\\n  padding-left: 952px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-34 {\\n  padding-right: 952px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-left: 998px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-right: 998px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-35 {\\n  padding-left: 980px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-35 {\\n  padding-right: 980px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-left: 1026px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-right: 1026px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-36 {\\n  padding-left: 1008px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-36 {\\n  padding-right: 1008px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-left: 1054px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-right: 1054px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-37 {\\n  padding-left: 1036px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-37 {\\n  padding-right: 1036px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-left: 1082px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-right: 1082px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-38 {\\n  padding-left: 1064px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-38 {\\n  padding-right: 1064px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-left: 1110px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-right: 1110px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-39 {\\n  padding-left: 1092px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-39 {\\n  padding-right: 1092px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-left: 1138px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-right: 1138px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-40 {\\n  padding-left: 1120px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-40 {\\n  padding-right: 1120px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-left: 1166px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-right: 1166px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-41 {\\n  padding-left: 1148px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-41 {\\n  padding-right: 1148px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-left: 1194px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-right: 1194px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-42 {\\n  padding-left: 1176px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-42 {\\n  padding-right: 1176px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-left: 1222px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-right: 1222px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-43 {\\n  padding-left: 1204px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-43 {\\n  padding-right: 1204px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-left: 1250px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-right: 1250px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-44 {\\n  padding-left: 1232px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-44 {\\n  padding-right: 1232px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-left: 1278px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-right: 1278px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-45 {\\n  padding-left: 1260px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-45 {\\n  padding-right: 1260px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-left: 1306px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-right: 1306px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-46 {\\n  padding-left: 1288px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-46 {\\n  padding-right: 1288px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-left: 1334px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-right: 1334px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-47 {\\n  padding-left: 1316px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-47 {\\n  padding-right: 1316px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-left: 1362px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-right: 1362px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-48 {\\n  padding-left: 1344px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-48 {\\n  padding-right: 1344px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-left: 1390px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-right: 1390px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-49 {\\n  padding-left: 1372px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-49 {\\n  padding-right: 1372px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-left: 1418px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-right: 1418px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-50 {\\n  padding-left: 1400px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-50 {\\n  padding-right: 1400px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-left: 1446px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-right: 1446px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-51 {\\n  padding-left: 1428px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-51 {\\n  padding-right: 1428px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-left: 1474px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-right: 1474px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-52 {\\n  padding-left: 1456px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-52 {\\n  padding-right: 1456px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-left: 1502px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-right: 1502px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-53 {\\n  padding-left: 1484px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-53 {\\n  padding-right: 1484px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-left: 1530px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-right: 1530px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-54 {\\n  padding-left: 1512px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-54 {\\n  padding-right: 1512px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-left: 1558px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-right: 1558px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-55 {\\n  padding-left: 1540px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-55 {\\n  padding-right: 1540px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-left: 1586px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-right: 1586px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-56 {\\n  padding-left: 1568px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-56 {\\n  padding-right: 1568px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-left: 1614px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-right: 1614px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-57 {\\n  padding-left: 1596px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-57 {\\n  padding-right: 1596px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-left: 1642px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-right: 1642px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-58 {\\n  padding-left: 1624px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-58 {\\n  padding-right: 1624px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-left: 1670px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-right: 1670px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-59 {\\n  padding-left: 1652px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-59 {\\n  padding-right: 1652px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-left: 1698px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-right: 1698px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-60 {\\n  padding-left: 1680px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-60 {\\n  padding-right: 1680px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-left: 1726px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-right: 1726px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-61 {\\n  padding-left: 1708px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-61 {\\n  padding-right: 1708px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-left: 1754px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-right: 1754px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-62 {\\n  padding-left: 1736px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-62 {\\n  padding-right: 1736px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-left: 1782px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-right: 1782px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-63 {\\n  padding-left: 1764px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-63 {\\n  padding-right: 1764px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-left: 1810px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-right: 1810px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-64 {\\n  padding-left: 1792px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-64 {\\n  padding-right: 1792px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-left: 1838px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-right: 1838px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-65 {\\n  padding-left: 1820px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-65 {\\n  padding-right: 1820px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-left: 1866px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-right: 1866px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-66 {\\n  padding-left: 1848px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-66 {\\n  padding-right: 1848px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-left: 1894px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-right: 1894px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-67 {\\n  padding-left: 1876px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-67 {\\n  padding-right: 1876px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-left: 1922px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-right: 1922px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-68 {\\n  padding-left: 1904px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-68 {\\n  padding-right: 1904px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-left: 1950px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-right: 1950px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-69 {\\n  padding-left: 1932px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-69 {\\n  padding-right: 1932px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-left: 1978px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-right: 1978px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-70 {\\n  padding-left: 1960px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-70 {\\n  padding-right: 1960px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-left: 2006px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-right: 2006px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-71 {\\n  padding-left: 1988px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-71 {\\n  padding-right: 1988px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-left: 2034px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-right: 2034px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-72 {\\n  padding-left: 2016px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-72 {\\n  padding-right: 2016px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-left: 2062px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-right: 2062px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-73 {\\n  padding-left: 2044px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-73 {\\n  padding-right: 2044px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-left: 2090px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-right: 2090px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-74 {\\n  padding-left: 2072px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-74 {\\n  padding-right: 2072px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-left: 2118px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-right: 2118px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-75 {\\n  padding-left: 2100px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-75 {\\n  padding-right: 2100px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-left: 2146px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-right: 2146px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-76 {\\n  padding-left: 2128px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-76 {\\n  padding-right: 2128px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-left: 2174px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-right: 2174px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-77 {\\n  padding-left: 2156px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-77 {\\n  padding-right: 2156px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-left: 2202px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-right: 2202px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-78 {\\n  padding-left: 2184px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-78 {\\n  padding-right: 2184px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-left: 2230px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-right: 2230px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-79 {\\n  padding-left: 2212px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-79 {\\n  padding-right: 2212px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-left: 2258px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-right: 2258px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-80 {\\n  padding-left: 2240px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-80 {\\n  padding-right: 2240px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-left: 2286px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-right: 2286px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-81 {\\n  padding-left: 2268px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-81 {\\n  padding-right: 2268px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-left: 2314px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-right: 2314px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-82 {\\n  padding-left: 2296px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-82 {\\n  padding-right: 2296px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-left: 2342px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-right: 2342px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-83 {\\n  padding-left: 2324px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-83 {\\n  padding-right: 2324px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-left: 2370px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-right: 2370px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-84 {\\n  padding-left: 2352px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-84 {\\n  padding-right: 2352px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-left: 2398px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-right: 2398px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-85 {\\n  padding-left: 2380px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-85 {\\n  padding-right: 2380px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-left: 2426px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-right: 2426px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-86 {\\n  padding-left: 2408px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-86 {\\n  padding-right: 2408px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-left: 2454px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-right: 2454px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-87 {\\n  padding-left: 2436px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-87 {\\n  padding-right: 2436px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-left: 2482px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-right: 2482px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-88 {\\n  padding-left: 2464px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-88 {\\n  padding-right: 2464px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-left: 2510px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-right: 2510px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-89 {\\n  padding-left: 2492px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-89 {\\n  padding-right: 2492px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-left: 2538px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-right: 2538px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-90 {\\n  padding-left: 2520px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-90 {\\n  padding-right: 2520px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-left: 2566px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-right: 2566px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-91 {\\n  padding-left: 2548px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-91 {\\n  padding-right: 2548px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-left: 2594px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-right: 2594px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-92 {\\n  padding-left: 2576px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-92 {\\n  padding-right: 2576px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-left: 2622px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-right: 2622px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-93 {\\n  padding-left: 2604px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-93 {\\n  padding-right: 2604px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-left: 2650px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-right: 2650px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-94 {\\n  padding-left: 2632px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-94 {\\n  padding-right: 2632px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-left: 2678px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-right: 2678px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-95 {\\n  padding-left: 2660px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-95 {\\n  padding-right: 2660px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-left: 2706px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-right: 2706px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-96 {\\n  padding-left: 2688px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-96 {\\n  padding-right: 2688px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-left: 2734px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-right: 2734px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-97 {\\n  padding-left: 2716px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-97 {\\n  padding-right: 2716px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-left: 2762px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-right: 2762px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-98 {\\n  padding-left: 2744px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-98 {\\n  padding-right: 2744px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-left: 2790px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-right: 2790px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-indent-99 {\\n  padding-left: 2772px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-indent-99 {\\n  padding-right: 2772px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-row-group-leaf-indent {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-row-group-leaf-indent {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-alpine .ag-value-change-delta {\\n  padding-right: 2px;\\n}\\n.ag-theme-alpine .ag-value-change-delta-up {\\n  color: #43a047;\\n  color: var(--ag-value-change-delta-up-color, #43a047);\\n}\\n.ag-theme-alpine .ag-value-change-delta-down {\\n  color: #e53935;\\n  color: var(--ag-value-change-delta-down-color, #e53935);\\n}\\n.ag-theme-alpine .ag-value-change-value {\\n  background-color: transparent;\\n  border-radius: 1px;\\n  padding-left: 1px;\\n  padding-right: 1px;\\n  -webkit-transition: background-color 1s;\\n  transition: background-color 1s;\\n}\\n.ag-theme-alpine .ag-value-change-value-highlight {\\n  background-color: rgba(22, 160, 133, 0.5);\\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5));\\n  -webkit-transition: background-color 0.1s;\\n  transition: background-color 0.1s;\\n}\\n.ag-theme-alpine .ag-cell-data-changed {\\n  background-color: rgba(22, 160, 133, 0.5) !important;\\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5)) !important;\\n}\\n.ag-theme-alpine .ag-cell-data-changed-animation {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-cell-highlight {\\n  background-color: #2196f3 !important;\\n  background-color: var(--ag-range-selection-highlight-color, var(--ag-range-selection-border-color, #2196f3)) !important;\\n}\\n.ag-theme-alpine .ag-row {\\n  height: 42px;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  color: #181d1f;\\n  color: var(--ag-data-color, var(--ag-foreground-color, #181d1f));\\n  border-width: 1px;\\n  border-color: #dde2eb;\\n  border-color: var(--ag-row-border-color, var(--ag-secondary-border-color, #dde2eb));\\n  border-bottom-style: solid;\\n}\\n.ag-theme-alpine .ag-row-highlight-above::after, .ag-theme-alpine .ag-row-highlight-below::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  width: calc(100% - 1px);\\n  height: 1px;\\n  background-color: #2196f3;\\n  background-color: var(--ag-range-selection-border-color, #2196f3);\\n  left: 1px;\\n}\\n.ag-theme-alpine .ag-row-highlight-above::after {\\n  top: -1px;\\n}\\n.ag-theme-alpine .ag-row-highlight-above.ag-row-first::after {\\n  top: 0;\\n}\\n.ag-theme-alpine .ag-row-highlight-below::after {\\n  bottom: 0px;\\n}\\n.ag-theme-alpine .ag-row-odd {\\n  background-color: #fcfcfc;\\n  background-color: var(--ag-odd-row-background-color, #fcfcfc);\\n}\\n.ag-theme-alpine .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-row-hover {\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-column-hover {\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-column-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-ltr .ag-right-aligned-cell {\\n  text-align: right;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-right-aligned-cell {\\n  text-align: left;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-right-aligned-cell .ag-cell-value, .ag-theme-alpine .ag-ltr .ag-right-aligned-cell .ag-group-value {\\n  margin-left: auto;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-right-aligned-cell .ag-cell-value, .ag-theme-alpine .ag-rtl .ag-right-aligned-cell .ag-group-value {\\n  margin-right: auto;\\n}\\n\\n.ag-theme-alpine .ag-cell, .ag-theme-alpine .ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  border: 1px solid transparent;\\n  line-height: min(var(--ag-line-height, 40px), 40px);\\n  padding-left: 17px;\\n  padding-right: 17px;\\n  -webkit-font-smoothing: subpixel-antialiased;\\n}\\n.ag-theme-alpine .ag-row > .ag-cell-wrapper {\\n  padding-left: 17px;\\n  padding-right: 17px;\\n}\\n.ag-theme-alpine .ag-row-dragging {\\n  cursor: move;\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-cell-inline-editing {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n  padding: 0;\\n  height: 42px;\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n}\\n.ag-theme-alpine .ag-popup-editor {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n  padding: 0;\\n}\\n.ag-theme-alpine .ag-large-text-input {\\n  height: auto;\\n  padding: 18px;\\n}\\n.ag-theme-alpine .ag-details-row {\\n  padding: 30px;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container {\\n  min-height: 50px;\\n}\\n.ag-theme-alpine .ag-overlay-loading-wrapper {\\n  background-color: rgba(255, 255, 255, 0.66);\\n  background-color: var(--ag-modal-overlay-background-color, rgba(255, 255, 255, 0.66));\\n}\\n.ag-theme-alpine .ag-overlay-loading-center {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 30px;\\n}\\n.ag-theme-alpine .ag-loading {\\n  padding-left: 18px;\\n  display: -webkit-box;\\n  display: flex;\\n  height: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-alpine .ag-loading-icon {\\n  padding-right: 12px;\\n}\\n.ag-theme-alpine .ag-icon-loading {\\n  -webkit-animation-name: spin;\\n          animation-name: spin;\\n  -webkit-animation-duration: 1000ms;\\n          animation-duration: 1000ms;\\n  -webkit-animation-iteration-count: infinite;\\n          animation-iteration-count: infinite;\\n  -webkit-animation-timing-function: linear;\\n          animation-timing-function: linear;\\n}\\n@-webkit-keyframes spin {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n@keyframes spin {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n.ag-theme-alpine .ag-floating-top {\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-floating-bottom {\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-cell {\\n  border-right: solid transparent;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-cell {\\n  border-left: solid transparent;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-cell {\\n  border-right-width: 1px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-cell {\\n  border-left-width: 1px;\\n}\\n\\n.ag-theme-alpine .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-row-selected {\\n  background-color: rgba(33, 150, 243, 0.3);\\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\\n}\\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus),\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\\n  background-color: rgba(33, 150, 243, 0.2);\\n  background-color: var(--ag-range-selection-background-color, rgba(33, 150, 243, 0.2));\\n}\\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\\n  background-color: rgba(0, 88, 255, 0.1) !important;\\n  background-color: var(--ag-range-selection-chart-background-color, rgba(0, 88, 255, 0.1)) !important;\\n}\\n.ag-theme-alpine .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\\n  background-color: rgba(0, 255, 132, 0.1) !important;\\n  background-color: var(--ag-range-selection-chart-category-background-color, rgba(0, 255, 132, 0.1)) !important;\\n}\\n.ag-theme-alpine .ag-cell-range-selected-1:not(.ag-cell-focus),\\n.ag-theme-alpine .ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\\n  background-color: rgba(33, 150, 243, 0.2);\\n  background-color: var(--ag-range-selection-background-color-1, var(--ag-range-selection-background-color, rgba(33, 150, 243, 0.2)));\\n}\\n.ag-theme-alpine .ag-cell-range-selected-2:not(.ag-cell-focus),\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\\n  background-color: rgba(33, 150, 243, 0.36);\\n  background-color: var(--ag-range-selection-background-color-2, rgba(33, 150, 243, 0.36));\\n}\\n.ag-theme-alpine .ag-cell-range-selected-3:not(.ag-cell-focus),\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\\n  background-color: rgba(33, 150, 243, 0.488);\\n  background-color: var(--ag-range-selection-background-color-3, rgba(33, 150, 243, 0.488));\\n}\\n.ag-theme-alpine .ag-cell-range-selected-4:not(.ag-cell-focus),\\n.ag-theme-alpine .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\\n  background-color: rgba(33, 150, 243, 0.5904);\\n  background-color: var(--ag-range-selection-background-color-4, rgba(33, 150, 243, 0.5904));\\n}\\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\\n  border-top-color: #2196f3;\\n  border-top-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\\n  border-right-color: #2196f3;\\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\\n  border-bottom-color: #2196f3;\\n  border-bottom-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\\n  border-left-color: #2196f3;\\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-alpine .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-alpine .ag-ltr .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\\n.ag-theme-alpine .ag-ltr .ag-cell-range-single-cell,\\n.ag-theme-alpine .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-theme-alpine .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-alpine .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-alpine .ag-rtl .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\\n.ag-theme-alpine .ag-rtl .ag-cell-range-single-cell,\\n.ag-theme-alpine .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\\n  border: 1px solid;\\n  border-color: #2196f3;\\n  border-color: var(--ag-range-selection-border-color, #2196f3);\\n  outline: initial;\\n}\\n.ag-theme-alpine .ag-cell.ag-selection-fill-top,\\n.ag-theme-alpine .ag-cell.ag-selection-fill-top.ag-cell-range-selected {\\n  border-top: 1px dashed;\\n  border-top-color: #2196f3;\\n  border-top-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-right, .ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-right: 1px dashed;\\n  border-right-color: #2196f3;\\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-right, .ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-left: 1px dashed;\\n  border-left-color: #2196f3;\\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n\\n.ag-theme-alpine .ag-cell.ag-selection-fill-bottom,\\n.ag-theme-alpine .ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\\n  border-bottom: 1px dashed;\\n  border-bottom-color: #2196f3;\\n  border-bottom-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-left, .ag-theme-alpine .ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-left: 1px dashed;\\n  border-left-color: #2196f3;\\n  border-left-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-left, .ag-theme-alpine .ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-right: 1px dashed;\\n  border-right-color: #2196f3;\\n  border-right-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n\\n.ag-theme-alpine .ag-range-handle, .ag-theme-alpine .ag-fill-handle {\\n  position: absolute;\\n  width: 6px;\\n  height: 6px;\\n  bottom: -1px;\\n  background-color: #2196f3;\\n  background-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-ltr .ag-range-handle, .ag-theme-alpine .ag-ltr .ag-fill-handle {\\n  right: -1px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-range-handle, .ag-theme-alpine .ag-rtl .ag-fill-handle {\\n  left: -1px;\\n}\\n\\n.ag-theme-alpine .ag-fill-handle {\\n  cursor: cell;\\n}\\n.ag-theme-alpine .ag-range-handle {\\n  cursor: nwse-resize;\\n}\\n.ag-theme-alpine .ag-cell-inline-editing {\\n  border-color: rgba(33, 150, 243, 0.4) !important;\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4)) !important;\\n}\\n.ag-theme-alpine .ag-menu {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n  padding: 0;\\n}\\n.ag-theme-alpine .ag-menu-list {\\n  cursor: default;\\n  padding: 6px 0;\\n}\\n.ag-theme-alpine .ag-menu-separator {\\n  height: 13px;\\n}\\n.ag-theme-alpine .ag-menu-separator-part::after {\\n  content: \\\"\\\";\\n  display: block;\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-menu-option-active, .ag-theme-alpine .ag-compact-menu-option-active {\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-menu-option-part, .ag-theme-alpine .ag-compact-menu-option-part {\\n  line-height: 16px;\\n  padding: 8px 0;\\n}\\n.ag-theme-alpine .ag-menu-option-disabled, .ag-theme-alpine .ag-compact-menu-option-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-menu-option-icon, .ag-theme-alpine .ag-compact-menu-option-icon {\\n  width: 16px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-menu-option-icon, .ag-theme-alpine .ag-ltr .ag-compact-menu-option-icon {\\n  padding-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-menu-option-icon, .ag-theme-alpine .ag-rtl .ag-compact-menu-option-icon {\\n  padding-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-menu-option-text, .ag-theme-alpine .ag-compact-menu-option-text {\\n  padding-left: 12px;\\n  padding-right: 12px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-menu-option-shortcut, .ag-theme-alpine .ag-ltr .ag-compact-menu-option-shortcut {\\n  padding-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-menu-option-shortcut, .ag-theme-alpine .ag-rtl .ag-compact-menu-option-shortcut {\\n  padding-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-menu-option-popup-pointer, .ag-theme-alpine .ag-compact-menu-option-popup-pointer {\\n  padding-right: 6px;\\n}\\n.ag-theme-alpine .ag-tabs {\\n  min-width: 240px;\\n}\\n.ag-theme-alpine .ag-tabs-header {\\n  width: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-theme-alpine .ag-tab {\\n  border-bottom: 2px solid transparent;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n  cursor: pointer;\\n  -webkit-box-flex: 1;\\n          flex: 1 1 auto;\\n  -webkit-transition: border-bottom 0.3s;\\n  transition: border-bottom 0.3s;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-tab:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-tab:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-tab-selected {\\n  border-bottom-color: #2196f3;\\n  border-bottom-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine .ag-menu-header {\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-filter-separator {\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-menu:not(.ag-tabs) .ag-filter-select {\\n  min-width: 155px;\\n}\\n.ag-theme-alpine .ag-tabs .ag-filter-select {\\n  min-width: 214px;\\n}\\n.ag-theme-alpine .ag-filter-select .ag-picker-field-wrapper {\\n  width: 0;\\n}\\n.ag-theme-alpine .ag-filter-condition-operator {\\n  height: 17px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-condition-operator-or {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-condition-operator-or {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-set-filter-select-all {\\n  padding-top: 12px;\\n}\\n.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine .ag-filter-no-matches {\\n  height: 144px;\\n}\\n.ag-theme-alpine .ag-set-filter-filter {\\n  margin-top: 12px;\\n  margin-left: 12px;\\n  margin-right: 12px;\\n}\\n.ag-theme-alpine .ag-filter-to {\\n  margin-top: 9px;\\n}\\n.ag-theme-alpine .ag-mini-filter {\\n  margin: 12px 12px;\\n}\\n.ag-theme-alpine .ag-set-filter-item {\\n  margin: 0px 12px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-set-filter-item-value {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-set-filter-item-value {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-filter-apply-panel {\\n  padding: 12px 12px;\\n  border-top: solid 1px;\\n  border-top-color: #dde2eb;\\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-filter-apply-panel-button {\\n  line-height: 1.5;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-apply-panel-button {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-apply-panel-button {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-simple-filter-body-wrapper {\\n  padding: 12px 12px;\\n  padding-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-simple-filter-body-wrapper > * {\\n  margin-bottom: 9px;\\n}\\n.ag-theme-alpine .ag-filter-no-matches {\\n  padding: 12px 12px;\\n}\\n.ag-theme-alpine .ag-multi-filter-menu-item {\\n  margin: 6px 0;\\n}\\n.ag-theme-alpine .ag-multi-filter-group-title-bar {\\n  padding: 12px 6px;\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-side-bar {\\n  position: relative;\\n}\\n.ag-theme-alpine .ag-tool-panel-wrapper {\\n  width: 250px;\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n}\\n.ag-theme-alpine .ag-side-buttons {\\n  padding-top: 24px;\\n  width: 20px;\\n  position: relative;\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n  overflow: hidden;\\n}\\n.ag-theme-alpine button.ag-side-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  background: transparent;\\n  padding: 12px 0 12px 0;\\n  width: 100%;\\n  margin: 0;\\n  min-height: 108px;\\n  background-position-y: center;\\n  background-position-x: center;\\n  background-repeat: no-repeat;\\n  border: none;\\n}\\n.ag-theme-alpine button.ag-side-button-button:focus {\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-side-button-button:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-side-button-button:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-side-button-icon-wrapper {\\n  margin-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-side-bar-left,\\n.ag-theme-alpine .ag-rtl .ag-side-bar-right {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-side-button-button,\\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-side-button-button {\\n  border-right: 2px solid transparent;\\n  -webkit-transition: border-right 0.3s;\\n  transition: border-right 0.3s;\\n}\\n.ag-theme-alpine .ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-theme-alpine .ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-right-color: #2196f3;\\n  border-right-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine .ag-rtl .ag-side-bar-left,\\n.ag-theme-alpine .ag-ltr .ag-side-bar-right {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-side-button-button,\\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-side-button-button {\\n  border-left: 2px solid transparent;\\n  -webkit-transition: border-left 0.3s;\\n  transition: border-left 0.3s;\\n}\\n.ag-theme-alpine .ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-theme-alpine .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-left-color: #2196f3;\\n  border-left-color: var(--ag-selected-tab-underline-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-header {\\n  height: 36px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-header, .ag-theme-alpine .ag-ltr .ag-filter-toolpanel-search {\\n  padding-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-header, .ag-theme-alpine .ag-rtl .ag-filter-toolpanel-search {\\n  padding-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-keyboard-focus .ag-filter-toolpanel-header:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  font-family: \\\"agGridAlpine\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  content: \\\"\\\\f114\\\";\\n  position: absolute;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-0-header {\\n  height: 48px;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-group-item {\\n  margin-top: 3px;\\n  margin-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-search {\\n  height: 48px;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-search-input {\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n  height: 24px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-search-input {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-search-input {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-0 {\\n  border-top: solid 1px;\\n  border-top-color: #dde2eb;\\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-expand, .ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-expand, .ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-left: 22px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-right: 22px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-left: 38px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-right: 38px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-left: 54px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-right: 54px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-left: 70px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-right: 70px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-left: 86px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-right: 86px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-left: 102px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-right: 102px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-left: 118px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-right: 118px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-left: 134px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-right: 134px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-left: 150px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-right: 150px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-left: 166px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-right: 166px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\\n  padding-left: 6px;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter {\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n  margin-top: 6px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-header-icon {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-header-icon {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-pivot-mode-panel {\\n  min-height: 48px;\\n  height: 48px;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-theme-alpine .ag-pivot-mode-select {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-alpine .ag-ltr .ag-pivot-mode-select {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-pivot-mode-select {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-select-header:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-column-select-header {\\n  height: 48px;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  padding: 0 12px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #dde2eb;\\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-column-panel-column-select {\\n  border-bottom: solid 1px;\\n  border-bottom-color: #dde2eb;\\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\\n  border-top: solid 1px;\\n  border-top-color: #dde2eb;\\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-column-group-icons,\\n.ag-theme-alpine .ag-column-select-header-icon {\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-column-select-list .ag-list-item-hovered::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: #2196f3;\\n  background-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-column-select-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-theme-alpine .ag-column-select-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n.ag-theme-alpine .ag-header {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-header-background-color, #f8f8f8);\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-header-row {\\n  color: #181d1f;\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\\n  height: 48px;\\n}\\n.ag-theme-alpine .ag-pinned-right-header {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-pinned-left-header {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-header-cell,\\n.ag-theme-alpine .ag-header-group-cell {\\n  padding-left: 18px;\\n  padding-right: 18px;\\n}\\n.ag-theme-alpine .ag-header-cell.ag-header-cell-moving,\\n.ag-theme-alpine .ag-header-group-cell.ag-header-cell-moving {\\n  background-color: #fff;\\n  background-color: var(--ag-header-cell-moving-background-color, var(--ag-background-color, #fff));\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-header-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-header-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-header-group-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-header-group-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-header-icon {\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-header-expand-icon {\\n  cursor: pointer;\\n}\\n.ag-theme-alpine .ag-ltr .ag-header-expand-icon {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-header-expand-icon {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-cell,\\n.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-header-cell-resize {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-alpine .ag-header-cell-resize::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  z-index: 1;\\n  display: block;\\n  left: calc(50% - 1px);\\n  width: 2px;\\n  height: 30%;\\n  top: calc(50% - 15%);\\n  background-color: rgba(186, 191, 199, 0.5);\\n  background-color: var(--ag-header-column-resize-handle-color, rgba(186, 191, 199, 0.5));\\n}\\n.ag-theme-alpine .ag-pinned-right-header .ag-header-cell-resize::after {\\n  left: calc(50% - 2px);\\n}\\n.ag-theme-alpine .ag-ltr .ag-header-select-all {\\n  margin-right: 18px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-header-select-all {\\n  margin-left: 18px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-floating-filter-button {\\n  margin-left: 18px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-floating-filter-button {\\n  margin-right: 18px;\\n}\\n\\n.ag-theme-alpine .ag-floating-filter-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  -webkit-appearance: none;\\n     -moz-appearance: none;\\n          appearance: none;\\n  background: transparent;\\n  border: none;\\n  height: 16px;\\n  padding: 0;\\n  width: 16px;\\n}\\n.ag-theme-alpine .ag-filter-loading {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n  height: 100%;\\n  padding: 12px 12px;\\n  position: absolute;\\n  width: 100%;\\n  z-index: 1;\\n}\\n.ag-theme-alpine .ag-paging-panel {\\n  border-top: 1px solid;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n  height: 48px;\\n}\\n.ag-theme-alpine .ag-paging-panel > * {\\n  margin: 0 18px;\\n}\\n.ag-theme-alpine .ag-paging-button {\\n  cursor: pointer;\\n}\\n.ag-theme-alpine .ag-paging-button.ag-disabled {\\n  cursor: default;\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-paging-button:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-paging-button:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-paging-button, .ag-theme-alpine .ag-paging-description {\\n  margin: 0 6px;\\n}\\n.ag-theme-alpine .ag-status-bar {\\n  border-top: solid 1px;\\n  border-top-color: #babfc7;\\n  border-top-color: var(--ag-border-color, #babfc7);\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n  padding-right: 24px;\\n  padding-left: 24px;\\n  line-height: 1.5;\\n}\\n.ag-theme-alpine .ag-status-name-value-value {\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n}\\n.ag-theme-alpine .ag-status-bar-center {\\n  text-align: center;\\n}\\n.ag-theme-alpine .ag-status-name-value {\\n  margin-left: 6px;\\n  margin-right: 6px;\\n  padding-top: 12px;\\n  padding-bottom: 12px;\\n}\\n.ag-theme-alpine .ag-column-drop-cell {\\n  background: rgba(24, 29, 31, 0.07);\\n  background: var(--ag-chip-background-color, rgba(24, 29, 31, 0.07));\\n  border-radius: 24px;\\n  height: 24px;\\n  padding: 0 3px;\\n  border: 1px solid transparent;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-drop-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-column-drop-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 2px;\\n  left: 2px;\\n  display: block;\\n  width: calc(100% - 4px);\\n  height: calc(100% - 4px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-column-drop-cell-text {\\n  margin: 0 6px;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button {\\n  min-width: 24px;\\n  margin: 0 3px;\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-column-drop-cell-drag-handle {\\n  margin-left: 12px;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-ghost {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-column-drop-horizontal {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n  height: 42px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal {\\n  padding-left: 18px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal {\\n  padding-right: 18px;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n\\n.ag-theme-alpine .ag-column-drop-horizontal-cell-separator {\\n  margin: 0 6px;\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-column-drop-horizontal-empty-message {\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n}\\n.ag-theme-alpine .ag-ltr .ag-column-drop-horizontal-icon {\\n  margin-right: 18px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-column-drop-horizontal-icon {\\n  margin-left: 18px;\\n}\\n\\n.ag-theme-alpine .ag-column-drop-vertical-list {\\n  padding-bottom: 6px;\\n  padding-right: 6px;\\n  padding-left: 6px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-cell {\\n  margin-top: 6px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical {\\n  min-height: 50px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #dde2eb;\\n  border-bottom-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-column-drop-vertical.ag-last-column-drop {\\n  border-bottom: none;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-icon {\\n  margin-left: 6px;\\n  margin-right: 6px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-empty-message {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  overflow: hidden;\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n  margin-top: 6px;\\n}\\n.ag-theme-alpine .ag-select-agg-func-popup {\\n  border: solid 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  border-radius: 3px;\\n  -webkit-box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n          box-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);\\n  padding: 6px;\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n  height: 105px;\\n  padding: 0;\\n}\\n.ag-theme-alpine .ag-select-agg-func-virtual-list-item {\\n  cursor: default;\\n  padding-left: 12px;\\n}\\n.ag-theme-alpine .ag-select-agg-func-virtual-list-item:hover {\\n  background-color: rgba(33, 150, 243, 0.3);\\n  background-color: var(--ag-selected-row-background-color, rgba(33, 150, 243, 0.3));\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: rgba(33, 150, 243, 0.4);\\n  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine .ag-chart-menu {\\n  border-radius: 3px;\\n  background: #fff;\\n  background: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-chart-menu-icon {\\n  opacity: 0.5;\\n  line-height: 24px;\\n  font-size: 24px;\\n  width: 24px;\\n  height: 24px;\\n  margin: 2px 0;\\n  cursor: pointer;\\n  border-radius: 3px;\\n  color: #181d1f;\\n  color: var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f));\\n}\\n.ag-theme-alpine .ag-chart-menu-icon:hover {\\n  opacity: 1;\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail {\\n  border: 1px solid;\\n  border-color: #dde2eb;\\n  border-color: var(--ag-secondary-border-color, #dde2eb);\\n  border-radius: 5px;\\n  margin: 5px;\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail:nth-last-child(3), .ag-theme-alpine .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\\n  margin-left: auto;\\n  margin-right: auto;\\n}\\n.ag-theme-alpine .ag-ltr .ag-chart-mini-thumbnail:first-child {\\n  margin-left: 0;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-chart-mini-thumbnail:first-child {\\n  margin-right: 0;\\n}\\n\\n.ag-theme-alpine .ag-ltr .ag-chart-mini-thumbnail:last-child {\\n  margin-right: 0;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-chart-mini-thumbnail:last-child {\\n  margin-left: 0;\\n}\\n\\n.ag-theme-alpine .ag-chart-mini-thumbnail.ag-selected {\\n  border-color: #2196f3;\\n  border-color: var(--ag-minichart-selected-chart-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item {\\n  background: #181d1f;\\n  background: var(--ag-foreground-color, #181d1f);\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 4px;\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item.ag-selected {\\n  background-color: #2196f3;\\n  background-color: var(--ag-minichart-selected-page-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\\n}\\n.ag-theme-alpine .ag-chart-data-column-drag-handle {\\n  margin-left: 6px;\\n}\\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine .ag-charts-data-group-title-bar,\\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar {\\n  border-top: solid 1px;\\n  border-top-color: #dde2eb;\\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-charts-settings-group-container {\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-charts-data-group-container {\\n  padding: 6px 12px;\\n}\\n.ag-theme-alpine .ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\\n  height: 24px;\\n}\\n.ag-theme-alpine .ag-charts-data-group-container .ag-list-item-hovered::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: #2196f3;\\n  background-color: var(--ag-range-selection-border-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-charts-data-group-container .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-theme-alpine .ag-charts-data-group-container .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n.ag-theme-alpine .ag-charts-format-top-level-group-container {\\n  margin-left: 12px;\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-charts-format-top-level-group-item {\\n  margin: 6px 0;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container {\\n  padding: 12px 12px;\\n  padding-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container > * {\\n  margin-bottom: 9px;\\n}\\n.ag-theme-alpine .ag-charts-group-container.ag-group-container-horizontal {\\n  padding: 6px;\\n}\\n.ag-theme-alpine .ag-chart-data-section,\\n.ag-theme-alpine .ag-chart-format-section {\\n  display: -webkit-box;\\n  display: flex;\\n  margin: 0;\\n}\\n.ag-theme-alpine .ag-chart-menu-panel {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n}\\n.ag-theme-alpine .ag-ltr .ag-chart-menu-panel {\\n  border-left: solid 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-chart-menu-panel {\\n  border-right: solid 1px;\\n  border-right-color: #babfc7;\\n  border-right-color: var(--ag-border-color, #babfc7);\\n}\\n\\n.ag-theme-alpine .ag-date-time-list-page-title {\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n  text-align: center;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-column-label {\\n  text-align: center;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-entry {\\n  text-align: center;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper {\\n  font-family: \\\"agGridAlpine\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: 16px;\\n  height: 16px;\\n  background-color: #fff;\\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, #fff));\\n  border-radius: 3px;\\n  display: inline-block;\\n  vertical-align: middle;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper input, .ag-theme-alpine .ag-checkbox-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper:focus-within, .ag-theme-alpine .ag-checkbox-input-wrapper:active {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper::after {\\n  content: \\\"\\\\f108\\\";\\n  color: #999;\\n  color: var(--ag-checkbox-unchecked-color, #999);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-checked::after {\\n  content: \\\"\\\\f106\\\";\\n  color: #2196f3;\\n  color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-checkbox-input-wrapper.ag-indeterminate::after {\\n  content: \\\"\\\\f107\\\";\\n  color: #999;\\n  color: var(--ag-checkbox-indeterminate-color, var(--ag-checkbox-unchecked-color, #999));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper {\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  width: 28px;\\n  height: 18px;\\n  background-color: #999;\\n  background-color: var(--ag-toggle-button-off-background-color, var(--ag-checkbox-unchecked-color, #999));\\n  border-radius: 9px;\\n  position: relative;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  border: 1px solid;\\n  border-color: #999;\\n  border-color: var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #999));\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper input {\\n  opacity: 0;\\n  height: 100%;\\n  width: 100%;\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper:focus-within {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-checked {\\n  background-color: #2196f3;\\n  background-color: var(--ag-toggle-button-on-background-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\\n  border-color: #2196f3;\\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper::before {\\n  content: \\\" \\\";\\n  position: absolute;\\n  top: -1px;\\n  left: -1px;\\n  display: block;\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  height: 18px;\\n  width: 18px;\\n  background-color: #fff;\\n  background-color: var(--ag-toggle-button-switch-background-color, var(--ag-background-color, #fff));\\n  border-radius: 9px;\\n  -webkit-transition: left 100ms;\\n  transition: left 100ms;\\n  border: 1px solid;\\n  border-color: #999;\\n  border-color: var(--ag-toggle-button-switch-border-color, var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #999)));\\n}\\n.ag-theme-alpine .ag-toggle-button-input-wrapper.ag-checked::before {\\n  left: calc(100% - 18px );\\n  border-color: #2196f3;\\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3)));\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper {\\n  font-family: \\\"agGridAlpine\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: 16px;\\n  height: 16px;\\n  background-color: #fff;\\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, #fff));\\n  border-radius: 3px;\\n  display: inline-block;\\n  vertical-align: middle;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  border-radius: 16px;\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper input, .ag-theme-alpine .ag-radio-button-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper:focus-within, .ag-theme-alpine .ag-radio-button-input-wrapper:active {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper::after {\\n  content: \\\"\\\\f126\\\";\\n  color: #999;\\n  color: var(--ag-checkbox-unchecked-color, #999);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine .ag-radio-button-input-wrapper.ag-checked::after {\\n  content: \\\"\\\\f127\\\";\\n  color: #2196f3;\\n  color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range] {\\n  -webkit-appearance: none;\\n  width: 100%;\\n  height: 100%;\\n  background: none;\\n  overflow: visible;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-webkit-slider-runnable-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #babfc7;\\n  background-color: var(--ag-border-color, #babfc7);\\n  border-radius: 3px;\\n  border-radius: 3px;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-moz-range-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #babfc7;\\n  background-color: var(--ag-border-color, #babfc7);\\n  border-radius: 3px;\\n  border-radius: 3px;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-ms-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #babfc7;\\n  background-color: var(--ag-border-color, #babfc7);\\n  border-radius: 3px;\\n  border-radius: 3px;\\n  color: transparent;\\n  width: calc(100% - 2px);\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-webkit-slider-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  border: 1px solid;\\n  border-color: #999;\\n  border-color: var(--ag-checkbox-unchecked-color, #999);\\n  border-radius: 16px;\\n  -webkit-transform: translateY(-6.5px);\\n          transform: translateY(-6.5px);\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-ms-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  border: 1px solid;\\n  border-color: #999;\\n  border-color: var(--ag-checkbox-unchecked-color, #999);\\n  border-radius: 16px;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]::-moz-ag-range-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  border: 1px solid;\\n  border-color: #999;\\n  border-color: var(--ag-checkbox-unchecked-color, #999);\\n  border-radius: 16px;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:focus {\\n  outline: none;\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-webkit-slider-thumb {\\n  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n  border-color: #2196f3;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-ms-thumb {\\n  box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n  border-color: #2196f3;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\\n  box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);\\n  border-color: #2196f3;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-alpine-active-color, #2196f3));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\\n  background-color: rgba(33, 150, 243, 0.4);\\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:active::-moz-ag-range-track {\\n  background-color: rgba(33, 150, 243, 0.4);\\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:active::-ms-track {\\n  background-color: rgba(33, 150, 243, 0.4);\\n  background-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));\\n}\\n.ag-theme-alpine input[class^=ag-][type=range]:disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-header,\\n.ag-theme-alpine .ag-filter-toolpanel-search,\\n.ag-theme-alpine .ag-status-bar,\\n.ag-theme-alpine .ag-header-row,\\n.ag-theme-alpine .ag-panel-title-bar-title,\\n.ag-theme-alpine .ag-multi-filter-group-title-bar {\\n  font-weight: 700;\\n  color: #181d1f;\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, var(--ag-foreground-color, #181d1f)));\\n}\\n.ag-theme-alpine .ag-rtl .ag-pinned-left-header .ag-header-row::before, .ag-theme-alpine .ag-ltr .ag-pinned-right-header .ag-header-row::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  height: calc(100% - 20px);\\n  top: 10px;\\n  width: 1px;\\n  background-color: #babfc7;\\n  background-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-ltr .ag-pinned-right-header .ag-header-row::after {\\n  right: 0;\\n}\\n.ag-theme-alpine .ag-rtl .ag-pinned-left-header .ag-header-row::before {\\n  left: 0;\\n}\\n.ag-theme-alpine .ag-row {\\n  font-size: 14px;\\n}\\n.ag-theme-alpine input[class^=ag-]:not([type]),\\n.ag-theme-alpine input[class^=ag-][type=text],\\n.ag-theme-alpine input[class^=ag-][type=number],\\n.ag-theme-alpine input[class^=ag-][type=tel],\\n.ag-theme-alpine input[class^=ag-][type=date],\\n.ag-theme-alpine input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine textarea[class^=ag-] {\\n  min-height: 24px;\\n  border-radius: 3px;\\n}\\n.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),\\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],\\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],\\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],\\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],\\n.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine .ag-ltr textarea[class^=ag-] {\\n  padding-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),\\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],\\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],\\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],\\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],\\n.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],\\n.ag-theme-alpine .ag-rtl textarea[class^=ag-] {\\n  padding-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-tab {\\n  padding: 9px;\\n  -webkit-transition: color 0.4s;\\n  transition: color 0.4s;\\n}\\n.ag-theme-alpine .ag-tab-selected {\\n  color: #2196f3;\\n  color: var(--ag-alpine-active-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-menu {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n}\\n.ag-theme-alpine .ag-menu-header {\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n  padding-top: 1px;\\n}\\n.ag-theme-alpine .ag-tabs-header {\\n  border-bottom: solid 1px;\\n  border-bottom-color: #babfc7;\\n  border-bottom-color: var(--ag-border-color, #babfc7);\\n}\\n.ag-theme-alpine .ag-charts-settings-group-title-bar,\\n.ag-theme-alpine .ag-charts-data-group-title-bar,\\n.ag-theme-alpine .ag-charts-format-top-level-group-title-bar {\\n  padding: 6px 12px;\\n  line-height: 20px;\\n}\\n.ag-theme-alpine .ag-chart-mini-thumbnail {\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-chart-settings-nav-bar {\\n  border-top: solid 1px;\\n  border-top-color: #dde2eb;\\n  border-top-color: var(--ag-secondary-border-color, #dde2eb);\\n}\\n.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-charts-format-top-level-group-toolbar {\\n  margin-top: 6px;\\n}\\n.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar {\\n  padding-left: 20px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar {\\n  padding-right: 20px;\\n}\\n\\n.ag-theme-alpine .ag-charts-format-sub-level-group {\\n  border-left: dashed 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n  padding-left: 6px;\\n  margin-bottom: 12px;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar {\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  background: none;\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-container {\\n  padding-bottom: 0;\\n}\\n.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child {\\n  margin-bottom: 0;\\n}\\n.ag-theme-alpine .ag-dnd-ghost {\\n  font-size: 12px;\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-side-buttons {\\n  width: 30px;\\n}\\n.ag-theme-alpine .ag-standard-button {\\n  -moz-appearance: none;\\n       appearance: none;\\n  -webkit-appearance: none;\\n  border-radius: 3px;\\n  border: 1px solid;\\n  border-color: #2196f3;\\n  border-color: var(--ag-alpine-active-color, #2196f3);\\n  color: #2196f3;\\n  color: var(--ag-alpine-active-color, #2196f3);\\n  background-color: #fff;\\n  background-color: var(--ag-background-color, #fff);\\n  font-weight: 600;\\n  padding: 6px 12px;\\n}\\n.ag-theme-alpine .ag-standard-button:hover {\\n  border-color: #2196f3;\\n  border-color: var(--ag-alpine-active-color, #2196f3);\\n  background-color: rgba(33, 150, 243, 0.1);\\n  background-color: var(--ag-row-hover-color, rgba(33, 150, 243, 0.1));\\n}\\n.ag-theme-alpine .ag-standard-button:active {\\n  border-color: #2196f3;\\n  border-color: var(--ag-alpine-active-color, #2196f3);\\n  background-color: #2196f3;\\n  background-color: var(--ag-alpine-active-color, #2196f3);\\n  color: #fff;\\n  color: var(--ag-background-color, #fff);\\n}\\n.ag-theme-alpine .ag-standard-button:disabled {\\n  color: rgba(24, 29, 31, 0.5);\\n  color: var(--ag-disabled-foreground-color, rgba(24, 29, 31, 0.5));\\n  background-color: #f1f2f4;\\n  background-color: var(--ag-input-disabled-background-color, #f1f2f4);\\n  border-color: rgba(186, 191, 199, 0.3);\\n  border-color: var(--ag-input-disabled-border-color, rgba(186, 191, 199, 0.3));\\n}\\n.ag-theme-alpine .ag-column-drop-vertical {\\n  min-height: 75px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-title-bar {\\n  padding: 12px;\\n  padding-bottom: 0px;\\n}\\n.ag-theme-alpine .ag-column-drop-vertical-empty-message {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  border: dashed 1px;\\n  border-color: #babfc7;\\n  border-color: var(--ag-border-color, #babfc7);\\n  margin: 12px;\\n  padding: 12px;\\n}\\n.ag-theme-alpine .ag-column-drop-empty-message {\\n  color: #181d1f;\\n  color: var(--ag-foreground-color, #181d1f);\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-status-bar {\\n  font-weight: normal;\\n}\\n.ag-theme-alpine .ag-status-name-value-value {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number {\\n  font-weight: 700;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button {\\n  opacity: 0.5;\\n}\\n.ag-theme-alpine .ag-column-drop-cell-button:hover {\\n  opacity: 0.75;\\n}\\n.ag-theme-alpine .ag-header-cell-menu-button:hover,\\n.ag-theme-alpine .ag-side-button-button:hover,\\n.ag-theme-alpine .ag-tab:hover,\\n.ag-theme-alpine .ag-panel-title-bar-button:hover,\\n.ag-theme-alpine .ag-header-expand-icon:hover,\\n.ag-theme-alpine .ag-column-group-icons:hover,\\n.ag-theme-alpine .ag-group-expanded .ag-icon:hover,\\n.ag-theme-alpine .ag-group-contracted .ag-icon:hover,\\n.ag-theme-alpine .ag-chart-settings-prev:hover,\\n.ag-theme-alpine .ag-chart-settings-next:hover,\\n.ag-theme-alpine .ag-group-title-bar-icon:hover,\\n.ag-theme-alpine .ag-column-select-header-icon:hover,\\n.ag-theme-alpine .ag-floating-filter-button-button:hover,\\n.ag-theme-alpine .ag-filter-toolpanel-expand:hover,\\n.ag-theme-alpine .ag-chart-menu-icon:hover {\\n  color: #2196f3;\\n  color: var(--ag-alpine-active-color, #2196f3);\\n}\\n.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover {\\n  opacity: 0.35;\\n}\\n.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: 12px;\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: 12px;\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-alpine .ag-filter-toolpanel-group-container {\\n  padding-left: 6px;\\n}\\n.ag-theme-alpine .ag-filter-toolpanel-instance-filter {\\n  border: none;\\n  background-color: #f8f8f8;\\n  background-color: var(--ag-control-panel-background-color, #f8f8f8);\\n  border-left: dashed 1px;\\n  border-left-color: #babfc7;\\n  border-left-color: var(--ag-border-color, #babfc7);\\n  margin-left: 8px;\\n  padding-left: 8px;\\n  margin-right: 12px;\\n}\\n.ag-theme-alpine .ag-set-filter-list {\\n  padding-top: 3px;\\n  padding-bottom: 3px;\\n}\\n.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container {\\n  min-height: 150px;\\n}\\n.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 60px;\\n}\\n.ag-theme-alpine .ag-date-time-list-page-entry-is-current {\\n  background-color: #2196f3;\\n  background-color: var(--ag-alpine-active-color, #2196f3);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABgoAAsAAAAALEgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAmMAAAR2YfRkQU9TLzIAAANsAAAAQQAAAFZWUFLwY21hcAAAA7AAAAIMAAAFnGSNxkJnbHlmAAAFvAAADpIAABo4y6JNTGhlYWQAABRQAAAANAAAADZ2zcSBaGhlYQAAFIQAAAAaAAAAJAfQBDFobXR4AAAUoAAAABoAAAEgs7L//WxvY2EAABS8AAAAawAAAJJHu0GKbWF4cAAAFSgAAAAfAAAAIAFeAKpuYW1lAAAVSAAAATUAAAJG0OP3eXBvc3QAABaAAAABqAAAAm9qOX49eJx9lM1SE1EQhc8wAYFEoDQqRkRQ/IvKMD8Zk/CTkJBoWS5cWJYLN1hWWVZRrngOH8AnYOkT+AAufAIfwIVL15ZfdwaDLMitTO50n+4+fW7fKJA0qw3taGJv+Pyl5g72Dz+qppJGH/Of3AcHH97va/r4DV/Jf6cVlCqa00291qG+BXPBYXA0UQ1r4avwXfg5/BL+UghqReugy1TcUKyEZ6RUmRrKNaEpbDH7x2qCDnm23HpBVzXpnp76WqRmTEzfM9b1THe0QJ6u5+loG1TKspwdnkPWXc2fgch1j/wZbDaxllBkmf2WqprRHiw7MGkT38R/kZo71I6I6uLrwm4SS4t9W5fgZBElV/Wp3ugRfuvUsmRFTMo31q6/R/5WZh2jWuRpUMty12FwbG9QNSHiIdkzUFuFonVUL+NNwUTEtl1Biy6DTOCWapWd9ZnAtaI1MC/01qvuFjEd13SkQB32Y3vX8+V0ftLaJtcQ7AM4jK12PvepFWngXS2COdAnHemrvuuHfuq3/uicLlMn8R62yb5zpjbTKHga3cPb+me1XqeYgdOo/xEzdN5wdWJ8/UJDq1amM1MnZR9hTR0/C0/D92CTcx4lakRe1056krXJewz6fDGdTVbFle4zBfM+wQOfhRoTlui6ZxzNYY7WS2S03YhfzXVrku+an5upazdswd/sLth51zj/ZX4jOsxcpyd4V7BYprHlhkflsLcc6/hzWI+rGaslWGU+0TZjA78dPSrdop8Rk0S3/WYMfL7WYJAVN7XKGRr7dnFiVxwXe1TAP0FU3PDUtbOZ7sLN5mP4F/iHapMAeJxjYGSqZ5zAwMrAwFTFtIeBgaEHQjM+YDBkZAKKMrAyM2AFAWmuKQwHGHQ/GjG/AHKjmN8wsABpRpAcANz2CuAAAAB4nLXUZ1IbQRCG4VeBKIEDOeNEVkAgssjhh0+BM4UDhTPn8Nl8jz4B/ma7fQBc5al61Duzo9FMrb4F2oCCLEkR8p3kdEUur9FcNl6gOxsv8lv9Mp3kdV3hgiturHF7q9EK51xybbms97flNLvMODOsqbdHjRab7NPglDrbrLLDFge62+SIZTZY4ZAT1tnlmDN9P+2iqD2206Hf7dJOSlqxh17u84A++hlgkCGGGWGUMf3WBJNMMa15j3jME57yTPNmmGWOeRZ0XWJRpyppzwtUtcl27tb27jg/tVprc79xWt/WibcO1po67MbK4cn67vHZPyz2H1o5fRR+Re856Ym6dNrzUJMXoSUvw6a8CvvyOjTkTTiVt6Eu78K2XIRVuQw78j5syYdwIB9D+ld9Ck25CkdyHZblc9iQL2FFvoZD+RZO5HtYlx9hV36GY7kJeoCWcykvlnekWnApX1Z0KWPW5lL2rN2Raocj1U5Hql2OVLtdyqSVHKmWXXqS1uNItdeR6j2n7GBBKcKCsoE9dEoW1ueUMazfKW3YgFPusEGnBGJDTlnEhp1SiY045RMbdUoqNuaUWWzcKb3YhFOOsUmnRGNTLjvvtFPKsaC8Y0HJx4LeAVjQ2wAL2XlnHKnOOlKdc6Q670h1wZHqosvWWXLZ3iqOdL/q0vvVai6bU3cpY7bssjUbjuofQy2jW3ic7VlrkBzVde5ze2d6et7d04+Z2Z33a3deu/OWZnd79EDL7gr0YldCBqQoEnKwVhgpwsJCC7ZwBBI4JlIBdkXxq8qmoCouJ65QlC3ZKeKCpYIWhUAShCs/sBML4mAcq1LljaaVc3t6VlqhAPa/VLLT3ff07XvPPfecc8/57l2GZfCP/Q77HUZlSsx2hoEwUUXWTbieVJFkiE8jjaQlbvWAVZbUMKg9KQ0aIluETDoRt1oStYSsqObPyhk/uVKryLFMtVFvYNt6o57O0F8txgr9a7LQ0wPZNf36T/WfXnmDkP7z1DIAtodUExCGcKJKHA6kp+5a8V/wZGsBfI5o2K04vHa/J5p2qwst/Rj0cLJ7pVu2WsORITEEcJB95nqsIWS8raqnbv/6+j/6VJe1OQzLLrRYj+hUFKdP7FuluPwht+ptzToG5aTkHHL6PEKfPylFE6upqsDQ15fZLzMRhvGpXKahcjHBKDJCzCgaMcEoVGFuPH/yZH4cXEtL/dfm+xvXr1/87jLHIy+yEmPDF3OcBLxxtPDaa4WjGjl1NP/aa/mj+jIqliHbHnYPIzEDTA3bx6k5JGqaMrVDldqBK9N3iX4x7FKnX3zIFzkj/0wDLu7eMl2uVMrTW17pErunJ8ayuVx2bOJZSkAWqelvFb797cK3jCe7Z0lzg9CWNjco/dfdHvhkFmX2s36kOMaBOq0ICXo3KnLi3OzsuwcOvHPvveQu/ZNkvP38woLR/PJlfFxg32F8TIZBNgMQL0JNqGpQiZXDIAuSG9hY3E2pMK3T6NcicID6A7ba/lzplqGhW0qkUw62Z0PlEF7kIaPs17e9UvkKfPpKi5LRg/1mqBRqH8YHXuQL+PgVtix/Be65Vqbcx5eJjeG6+CiJVrZ/TEY+Why9OG64y2X8Q1kuGLIw0B0+EVsUyXI9SapXMaeDHblGCvbC1V9pOXatBKY972N3MRb0WD/D8MCpPLCNCHRig6SU6zXqiOTf9O3NnXobtLm5l77rcAQ8SmlNSfEE4AX4xjB+0P8GRufmNJcr3JsOxEuleCDVF6bse4wxCqzb9BkPw6QSQsVn3kDv51qtH2ja6VarfVbT3iLl9vyVe3Edk5OsBeVEGanfkxP6+/mf/SwPFzulOZebcT35mAQzREfpKnB4UaksRkEkFKyp46c0jm7YXI5hPfnzi7mJXHYiT4vcRPpSul43HnrPiuxEDp7QP5mqzeI3qBgNcvpZfJByPa3/mDaFkXRddxIxN55r1VJX5H6RvEjXCixZtVctRxK9eplZGebyJfZu9heMF2cSYsaZzzF/hr3p8rd0pEcvqNfYRA2EmGpVcTK+lOQmON2eWlUjFTpZyRpPZ4pAp4tuU6axvayo1K3iWF2r1sthtkJti6mhSKgOymFidur0iYCihklDxYBT0qgCJdkDboI6HWSxu8Lu5XbfY9HXZRqNDKlnGmPf01fBMQKsxXue6Nt5MSx5Vclrt7j8MZ+a9Nldth6b5FH7nGpUsRKb2/4XYlwJCS4v77ZxNo9TUByiV+oVxIgi+gWb3cX1WDxh0eqwiKLDJdpHclnCEpvDZiE1wtk9TiupsGAXbeTnts8csZBlmUuvGsIcO3fpOHvfGwFeaD/+j85I2GcTe6MpOV5LS30ZkffYXbJULUdzit9v97g9gQHF40iJDrcjIDhV0S3YrJwvVkz5XLJf9todHtHn4h08y3EWzhf64x+c5h1WO+eyW/jXeY+Nd/PzHt7uFamp/992/3tttzR3m5igQnxm7oabOrkb5joxbYmdJz7Sxg2avKv1SlmJQItQkymy5AHEaGjXeHoQOOoE6Vr1w01T2LqW5yySR/B5R1bY3VaXzeOT10057bwoiT23bunhBaz5MKXOfXaP2+VQvD7/Jz7hES0Wr1MI7f2sRxbdPG998JDVZhU8IvN/ZI5L8gqmPo4HcgKTif4+eMk/0eziBS82sRi55Wm2iZllOXMTM81sw/b1RgXhdwdF08juhkwHOzcMlIZhXnWDBwywTV+tRkKqNkCDFhQJ9ql31juXMlZtpdwCY1Un4hwktt8l3v7M55MuQewNRtOj+Ym1z26cumFjyevjHQ6vN98ayWtDN6mQ3rh+x523K1Jfc2Jk13AeHh5aq0L4wBNfW5toTgzf2czp88HcjbnBTD6YHc8OZsivSiy77pFb++LhbF8sgIxToiSXmpt7i5JfDsujudH8U5Fba2SrNirJYau9Lze8a3iiqf9ddGuNjN89ysbjWDMy0TzfP4gcg/nMYA6LK7n+aTbB9DJFZhg1ZexQTBVZr1YP7jVUN+lqp6MRrtxxlSJgUFOpJhD3hIAGQUQ90F7Ux9q9n/r0/q0byqYuWn89Azd98e6IqYuNn09QBYw3dzSbOw7sWL58xz9kx6fGs8aDTSxOfl0y4fasaG4xJz69q6dFRmfWdCYeCt67ns42shxZdPj8PWQpkyzpFNR1TGxTwP0Yokgw5xkCrlE3J5sehZhFMvdccqPWcQ1cOgUY8K9q+G2nAQhw/vqqwADZ1z5rMyh0kc5XciEzFBoeCvLOP3xsen/TYQuURsNDyTUtgQ+WRkNDqSODU9iiWQrygikPWTD8me96tEVICOQ3plfrv6ctOraiO+Ei4+zMgby3iM98OJte3DElDGw8yDCNRK2iXnWnPuJ9wcByVxDd9V8WZjt/LbPUzBLFsS3Z59ZwzY0yK5k1Rgz6rXa8PpTGgpg9dU35O+5tT83OwkH9JViuH1uknEhd1Cfhud9tO9v+d03TWubNMB+wYQftUpRMcibi/WdN66Le9n+iBbt+uJ/tRc0J1O4IaKnpWbWRwdlieMy04Jh+sHVcPw/p+fnSLLyth2dL5HHttHYc0pDWz8+X0QLlLq99iKOzzBbDp1GtHCoYwxvVar0FtXSmhH7uBnTpMDSwRqOhzxc3WmEljXZF8wPtLeEHrC4Z697gkiB+3GvEeu32vpnQLf3JKmdVAqKTFVPePo/bm8gdXp6NzBT8ITW7K3tzaM+g2qfmwjbgUgHZIdIuuQaokggOVky4+yS7Y3UxnSVreKeld9NAOrQn5HO5RtOJsaDIJlJiUs7sHColc72qJ7qn+PBwMQJ8FLl+YXgoGuYdlsiugopcfW7P+mKoJhl9Yr7kHYXSep+364+Pso9+YI0w1KMoprfgbXgX3g3znUMaPVS7Zy4/By/k5/IQWFhozy8srEWabMNaXCnbFiJI4JUvowdswxKvuWcWrvhCm7QRWbpwtx2hzsClBgF3Eo1fsG+O7d+4H/7WLOfOs7T8aqcw90MF8mp3rw7oCd0fW2h/CaONeUOghbZvdW0fx/htjGcOZA4Lr/YYA/1JZ7z/eLMHi33wozfZsX2b9pt9n8V9XscHuwgKXbdzEALNx4pvnS8+thL+aiVSbw0+Bhseyp09m3sIzrTn4UyHphga+RxhDzIKRp8G02LWMlPIj7qaqhhul0kb3tXQiEpfOavphxh0qW9hK1qZQcTBg2KE20FATAJGp3pDNYK02kjDwh2bN+61O7Ppmyeev/WO1aMrCElF73505YbxG27j+VR607oz66azCZtt69jkU1Grdf3oqslqKQOH9F9WZgayCFHOrFrerx9NOvzBenMTr1XLsiJejrCfIdXS09vuvG3DslpKVlrLvjq1ZXLlznqL5LNf3DB98/pizpItbJ6Y3vh4rvDy6MTYbDzJWYIK3K8/5e1NpavN4VdIWNGPtk6sXD1QsGjsQP+INnzZvngGM8Pej97Xz4ygZoyDIuPwSE588KAgwZUVujmo1iGG4Euo1odBjtUoOBMkK9nndAcimyMBt3M2vjyOF1zslAtCIBAPBMChO4PJZLAFB7VgKsWGRMnvFkW3XxKxkT5pdnoOH4I/6ser/fVUAJ4LJmdnk0F9MpBajE+HDZmbKHEXIdXRCFhQY3E0QdIwg4uJ5tEIcGmcEnSs11CVioGhYOMJID0WPtQcbOx0N0NRCMsr1vwB5lBWkgvqkxge/8XHO23eU/X+sgBBm0rARp6w4VbALXpfhwdOIGLwOPsdvGNHcTQs62/3TTvvtFoCtdyQ6sDu5Eter8+tnHKzbK/+r1Yp46+KT2Iw52zi64z9qrwURe2vZMYM77yN2cHs/h9yU0xQjINVC01PEYQxndUgI9DhEp0jScVQRkpSK7WMlavUGllARVQwscoV6tEpa4KTK410Qq58WOKCQ+2XfvkeZhW+bQPMMVH4vj0/PZXns2P9B/j89HTeviJZDoah/TIcvh9gtlVdi5nuUAvOHKLtURfLsw/+aNmND35oKrvUftnKY/P3zgpeHAzuB4/BnL+n/8Yc4fNTOA7gdkvJhseWPfDDydqDv6mntrcOH47ThAdweBYeWPQJeu5Fzz/N008v9YIoVYf3mtPPuLG5oF/g4iMH9q2+4YbV+w6At0s9cnD3zubISHPn7veQGB5Ggr1AP+jvL22sLWlDiZHumurKov1W0lxzNmu0+bgiwnevc+r6seXWJ6eX9qTMrsUCFD9gwMdkpCIowGieYffp54+39INwrHW8NKuH4e3Z0vw8IorzxykaOE5hwPy8yYeeT7swEjO4z0Mcae77BEs3urP+9vO3lOJkPF7SvzfTPHeuOTOFrH4CSf0n9BQQkn0zw+fODc/AycXzeAs5aZzj0QMKtkd/34AyZDeFp0gw17YDemaGeCzfga1HOuVimxe6Z4IqttFP/CVu0VeRJ5AoPAyrFnkViESt7EMdnDaSnk9bjKV72Rm0ew7xJeOLI5BEtI6Zhm7GMLJiPvEhpgkTBDMZ7goGygBFO6qxtOk/Uzq0cW7zNCFJQv4Ulr1LLAalz71LvEU1pGz6/Z1JraAl7sr6Y5xNDmoF+MbAuhBWCYXA4GZRECJIR6JWpXfnMnYPdraQU/rcO8gQrOQUNN4l+n0IX7B9xGDk7PUW+5KTvchoMmrwUVhLOd+/Ffm0Iptv7y8N4wz/G4A9L1cAAHicY2BkYGAAYgWvvDnx/DZfGbiZXwAFojgf72uA0f/////D/IL5DVAlBwMTkGQAAHb/DvN4nGNgZGBgfsHAACL//wezGRlQgQcAdFMFCgAAeJxjYGBgYH6BDf//j8C41AwspgcAANyGMDUAAHicY2AAghkMFxieMTowRjEuYXzFpMEUxVTD1Md0g+kT8wWWdSxHWM1YV7DuYQtgO8EuwK7FXsL+iYOHw4hjD8cPTjFOA04/ziIuJq4YrgPcadxreIR4zHgSeEp42nhm8azglSEdAgCdlRu1AHicY2BkYGDwYJjHwMMAAkxAzAWEDAz/wXwGACBkAgkAeJx1jz9OwzAYxV9oWkSLEBISYsMTC1L6Z2Do2KHZO3RgcxsnbZXEkeNW6sYxOAHHYOQInIJD8BK+oUKqLTk///zeJwXALb4QoFkBrtuzWRe45O2PO6Q74ZD8KNzFAM/CPfoX4T7tTHjAZsEJQXhF84A34Qvc4F24Q/8hHJI/hbu4x7dwj/5HuI9lEAoP8BS86ix222Sm840uFibb59qdqlNeGldvbanG0ehUx6Y0TnuTqNVR1Yds4n2qUmcLNbelN3luVeXszqx9tPG+mg6HqfhobQtoZIjhsEXCP9fIseFZYAHDlz3vmq/nUuf8km2Hmt6ihMIYEUZn0zHTZdvQ8PwmbKxw5FnjwM6E1iPlPWXGsqEwbyc36Zzb0lTt245mTR9xdtOqMMWQO/2Xj5jipF9al2jJAAAAeJxtkQdv2zAQhf3Fku3YaeO6bbr3Hmrr7p3upj+DpmiZiEQKJOWRX18iLgIE6AE8vPdwvHu4a2201tFv/T/22KBNQkqHLj026TNgixOcZJshpxhxmjOcZYdznOcCF7nEZa5wlWtc5wY3ucVt7nCXe9znAQ95xGMynvCUZ4x5zgte8orXvOEt73jPBz7yic/s8oWvfOM7P/jJL36zx5/WQBSFU4UI2pqOcM4ufFt42ZHCSFWmciZcGMqZkvsTu8wOgcp3jgRtchWUq7QRQY2O5Mb8q9yStrQuq3UkrhtJUxnfl9YEJ2RQeSJtvUqls963pZ+n8WXjJFdepmoZDXQPczbuqWUt4qx8U61U5kvhZ+2IOlNdxvHpVDsfksLpOi2cbeokFoSkVNPQKbWJPrqlFbk2Ra8SS13pA5VUyjS96HvNjDVqYGzIRFnahcrTOjZQ7VqbtNZzG4YufrfZpAnBmsxOp9vHBZM6XcxC4sVc9X0Vu2S5XZjeGkZDIW5gFJxSx1fWa8zaIIIChyKgsRgWeCQlM/aZsIwnzqloqFkxZ8pBq/UXq/Gj5g==\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.ag-theme-balham {\n  -webkit-font-smoothing: antialiased;\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n  font-size: 12px;\n  line-height: normal;\n}\n@font-face {\n  font-family: \"agGridBalham\";\n  src: url(${___CSS_LOADER_URL_REPLACEMENT_0___}) format(\"woff\");\n  font-weight: normal;\n  font-style: normal;\n}\n.ag-theme-balham .ag-icon {\n  font-family: \"agGridBalham\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.ag-theme-balham .ag-icon-aggregation::before {\n  content: \"\\\\f101\";\n}\n.ag-theme-balham .ag-icon-arrows::before {\n  content: \"\\\\f102\";\n}\n.ag-theme-balham .ag-icon-asc::before {\n  content: \"\\\\f103\";\n}\n.ag-theme-balham .ag-icon-cancel::before {\n  content: \"\\\\f104\";\n}\n.ag-theme-balham .ag-icon-chart::before {\n  content: \"\\\\f105\";\n}\n.ag-theme-balham .ag-icon-color-picker::before {\n  content: \"\\\\f109\";\n}\n.ag-theme-balham .ag-icon-columns::before {\n  content: \"\\\\f10a\";\n}\n.ag-theme-balham .ag-icon-contracted::before {\n  content: \"\\\\f10b\";\n}\n.ag-theme-balham .ag-icon-copy::before {\n  content: \"\\\\f10c\";\n}\n.ag-theme-balham .ag-icon-cross::before {\n  content: \"\\\\f10d\";\n}\n.ag-theme-balham .ag-icon-csv::before {\n  content: \"\\\\f10e\";\n}\n.ag-theme-balham .ag-icon-desc::before {\n  content: \"\\\\f10f\";\n}\n.ag-theme-balham .ag-icon-excel::before {\n  content: \"\\\\f110\";\n}\n.ag-theme-balham .ag-icon-expanded::before {\n  content: \"\\\\f111\";\n}\n.ag-theme-balham .ag-icon-eye-slash::before {\n  content: \"\\\\f112\";\n}\n.ag-theme-balham .ag-icon-eye::before {\n  content: \"\\\\f113\";\n}\n.ag-theme-balham .ag-icon-filter::before {\n  content: \"\\\\f114\";\n}\n.ag-theme-balham .ag-icon-first::before {\n  content: \"\\\\f115\";\n}\n.ag-theme-balham .ag-icon-grip::before {\n  content: \"\\\\f116\";\n}\n.ag-theme-balham .ag-icon-group::before {\n  content: \"\\\\f117\";\n}\n.ag-theme-balham .ag-icon-last::before {\n  content: \"\\\\f118\";\n}\n.ag-theme-balham .ag-icon-left::before {\n  content: \"\\\\f119\";\n}\n.ag-theme-balham .ag-icon-linked::before {\n  content: \"\\\\f11a\";\n}\n.ag-theme-balham .ag-icon-loading::before {\n  content: \"\\\\f11b\";\n}\n.ag-theme-balham .ag-icon-maximize::before {\n  content: \"\\\\f11c\";\n}\n.ag-theme-balham .ag-icon-menu::before {\n  content: \"\\\\f11d\";\n}\n.ag-theme-balham .ag-icon-minimize::before {\n  content: \"\\\\f11e\";\n}\n.ag-theme-balham .ag-icon-next::before {\n  content: \"\\\\f11f\";\n}\n.ag-theme-balham .ag-icon-none::before {\n  content: \"\\\\f120\";\n}\n.ag-theme-balham .ag-icon-not-allowed::before {\n  content: \"\\\\f121\";\n}\n.ag-theme-balham .ag-icon-paste::before {\n  content: \"\\\\f122\";\n}\n.ag-theme-balham .ag-icon-pin::before {\n  content: \"\\\\f123\";\n}\n.ag-theme-balham .ag-icon-pivot::before {\n  content: \"\\\\f124\";\n}\n.ag-theme-balham .ag-icon-previous::before {\n  content: \"\\\\f125\";\n}\n.ag-theme-balham .ag-icon-right::before {\n  content: \"\\\\f128\";\n}\n.ag-theme-balham .ag-icon-save::before {\n  content: \"\\\\f129\";\n}\n.ag-theme-balham .ag-icon-small-down::before {\n  content: \"\\\\f12a\";\n}\n.ag-theme-balham .ag-icon-small-left::before {\n  content: \"\\\\f12b\";\n}\n.ag-theme-balham .ag-icon-small-right::before {\n  content: \"\\\\f12c\";\n}\n.ag-theme-balham .ag-icon-small-up::before {\n  content: \"\\\\f12d\";\n}\n.ag-theme-balham .ag-icon-tick::before {\n  content: \"\\\\f12e\";\n}\n.ag-theme-balham .ag-icon-tree-closed::before {\n  content: \"\\\\f12f\";\n}\n.ag-theme-balham .ag-icon-tree-indeterminate::before {\n  content: \"\\\\f130\";\n}\n.ag-theme-balham .ag-icon-tree-open::before {\n  content: \"\\\\f131\";\n}\n.ag-theme-balham .ag-icon-unlinked::before {\n  content: \"\\\\f132\";\n}\n.ag-theme-balham .ag-icon-row-drag::before {\n  content: \"\\\\f116\";\n}\n.ag-theme-balham .ag-left-arrow::before {\n  content: \"\\\\f119\";\n}\n.ag-theme-balham .ag-right-arrow::before {\n  content: \"\\\\f128\";\n}\n.ag-theme-balham .ag-root-wrapper {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham [class^=ag-], .ag-theme-balham [class^=ag-]:focus, .ag-theme-balham [class^=ag-]:after, .ag-theme-balham [class^=ag-]:before {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  outline: none;\n}\n.ag-theme-balham [class^=ag-]::-ms-clear {\n  display: none;\n}\n.ag-theme-balham .ag-checkbox .ag-input-wrapper,\n.ag-theme-balham .ag-radio-button .ag-input-wrapper {\n  overflow: visible;\n}\n.ag-theme-balham .ag-range-field .ag-input-wrapper {\n  height: 100%;\n}\n.ag-theme-balham .ag-toggle-button {\n  -webkit-box-flex: 0;\n          flex: none;\n  width: unset;\n  min-width: unset;\n}\n.ag-theme-balham .ag-ltr .ag-label-align-right .ag-label {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-label-align-right .ag-label {\n  margin-right: 4px;\n}\n\n.ag-theme-balham input[class^=ag-] {\n  margin: 0;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham textarea[class^=ag-],\n.ag-theme-balham select[class^=ag-] {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham input[class^=ag-]:not([type]),\n.ag-theme-balham input[class^=ag-][type=text],\n.ag-theme-balham input[class^=ag-][type=number],\n.ag-theme-balham input[class^=ag-][type=tel],\n.ag-theme-balham input[class^=ag-][type=date],\n.ag-theme-balham input[class^=ag-][type=datetime-local],\n.ag-theme-balham textarea[class^=ag-] {\n  font-size: inherit;\n  line-height: inherit;\n  color: inherit;\n  border-width: 1px;\n  border-style: solid;\n  border-color: #95a5a6;\n  border-color: var(--ag-input-border-color, #95a5a6);\n}\n.ag-theme-balham input[class^=ag-]:not([type]):disabled,\n.ag-theme-balham input[class^=ag-][type=text]:disabled,\n.ag-theme-balham input[class^=ag-][type=number]:disabled,\n.ag-theme-balham input[class^=ag-][type=tel]:disabled,\n.ag-theme-balham input[class^=ag-][type=date]:disabled,\n.ag-theme-balham input[class^=ag-][type=datetime-local]:disabled,\n.ag-theme-balham textarea[class^=ag-]:disabled {\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n  background-color: #ebebeb;\n  background-color: var(--ag-input-disabled-background-color, #ebebeb);\n  border-color: rgba(149, 165, 166, 0.3);\n  border-color: var(--ag-input-disabled-border-color, rgba(149, 165, 166, 0.3));\n}\n.ag-theme-balham input[class^=ag-]:not([type]):focus,\n.ag-theme-balham input[class^=ag-][type=text]:focus,\n.ag-theme-balham input[class^=ag-][type=number]:focus,\n.ag-theme-balham input[class^=ag-][type=tel]:focus,\n.ag-theme-balham input[class^=ag-][type=date]:focus,\n.ag-theme-balham input[class^=ag-][type=datetime-local]:focus,\n.ag-theme-balham textarea[class^=ag-]:focus {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham input[class^=ag-]:not([type]):invalid,\n.ag-theme-balham input[class^=ag-][type=text]:invalid,\n.ag-theme-balham input[class^=ag-][type=number]:invalid,\n.ag-theme-balham input[class^=ag-][type=tel]:invalid,\n.ag-theme-balham input[class^=ag-][type=date]:invalid,\n.ag-theme-balham input[class^=ag-][type=datetime-local]:invalid,\n.ag-theme-balham textarea[class^=ag-]:invalid {\n  border-width: 2px;\n  border-style: solid;\n  border-color: #e02525;\n  border-color: var(--ag-input-border-color-invalid, var(--ag-invalid-color, #e02525));\n}\n.ag-theme-balham input[class^=ag-][type=number] {\n  -moz-appearance: textfield;\n}\n.ag-theme-balham input[class^=ag-][type=number]::-webkit-outer-spin-button, .ag-theme-balham input[class^=ag-][type=number]::-webkit-inner-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n.ag-theme-balham input[class^=ag-][type=range] {\n  padding: 0;\n}\n.ag-theme-balham input[class^=ag-][type=button]:focus, .ag-theme-balham button[class^=ag-]:focus {\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n}\n.ag-theme-balham .ag-drag-handle {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-list-item, .ag-theme-balham .ag-virtual-list-item {\n  height: 24px;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-select-list {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n.ag-theme-balham .ag-list-item {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.ag-theme-balham .ag-list-item.ag-active-item {\n  background-color: #ecf0f1;\n  background-color: var(--ag-row-hover-color, #ecf0f1);\n}\n.ag-theme-balham .ag-select-list-item {\n  padding-left: 4px;\n  padding-right: 4px;\n  cursor: default;\n  -moz-user-select: none;\n  -webkit-user-select: none;\n  user-select: none;\n}\n.ag-theme-balham .ag-select-list-item span {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n.ag-theme-balham .ag-select .ag-picker-field-wrapper {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  min-height: 24px;\n  cursor: default;\n}\n.ag-theme-balham .ag-select.ag-disabled .ag-picker-field-wrapper:focus {\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.ag-theme-balham .ag-select:not(.ag-cell-editor) {\n  height: 24px;\n}\n.ag-theme-balham .ag-select .ag-picker-field-display {\n  margin: 4px;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.ag-theme-balham .ag-select .ag-picker-field-icon {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-balham .ag-select.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-rich-select {\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n}\n.ag-theme-balham .ag-rich-select-list {\n  width: 100%;\n  min-width: 200px;\n  height: 182px;\n}\n.ag-theme-balham .ag-rich-select-value {\n  padding: 0 4px 0 12px;\n  height: 28px;\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-rich-select-virtual-list-item {\n  cursor: default;\n  height: 24px;\n}\n.ag-theme-balham .ag-rich-select-virtual-list-item:hover {\n  background-color: #ecf0f1;\n  background-color: var(--ag-row-hover-color, #ecf0f1);\n}\n.ag-theme-balham .ag-rich-select-row {\n  padding-left: 12px;\n}\n.ag-theme-balham .ag-rich-select-row-selected {\n  background-color: #b7e4ff;\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\n}\n.ag-theme-balham .ag-row-drag,\n.ag-theme-balham .ag-selection-checkbox,\n.ag-theme-balham .ag-group-expanded,\n.ag-theme-balham .ag-group-contracted {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-ltr .ag-row-drag, .ag-theme-balham .ag-ltr .ag-selection-checkbox, .ag-theme-balham .ag-ltr .ag-group-expanded, .ag-theme-balham .ag-ltr .ag-group-contracted {\n  margin-right: 12px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-drag, .ag-theme-balham .ag-rtl .ag-selection-checkbox, .ag-theme-balham .ag-rtl .ag-group-expanded, .ag-theme-balham .ag-rtl .ag-group-contracted {\n  margin-left: 12px;\n}\n\n.ag-theme-balham .ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\n  height: min(var(--ag-line-height, 26px), 26px);\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n.ag-theme-balham .ag-group-expanded,\n.ag-theme-balham .ag-group-contracted {\n  cursor: pointer;\n}\n.ag-theme-balham .ag-group-title-bar-icon {\n  cursor: pointer;\n  -webkit-box-flex: 0;\n          flex: none;\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-ltr .ag-group-child-count {\n  margin-left: 2px;\n}\n\n.ag-theme-balham .ag-rtl .ag-group-child-count {\n  margin-right: 2px;\n}\n\n.ag-theme-balham .ag-group-title-bar {\n  background-color: #e2e9eb;\n  background-color: var(--ag-subheader-background-color, #e2e9eb);\n  padding: 4px;\n}\n.ag-theme-balham .ag-group-toolbar {\n  padding: 4px;\n}\n.ag-theme-balham .ag-disabled-group-title-bar, .ag-theme-balham .ag-disabled-group-container {\n  opacity: 0.5;\n}\n.ag-theme-balham .group-item {\n  margin: 2px 0;\n}\n.ag-theme-balham .ag-label {\n  white-space: nowrap;\n}\n.ag-theme-balham .ag-ltr .ag-label {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-label {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-label-align-top .ag-label {\n  margin-bottom: 2px;\n}\n.ag-theme-balham .ag-ltr .ag-slider-field, .ag-theme-balham .ag-ltr .ag-angle-select-field {\n  margin-right: 8px;\n}\n\n.ag-theme-balham .ag-rtl .ag-slider-field, .ag-theme-balham .ag-rtl .ag-angle-select-field {\n  margin-left: 8px;\n}\n\n.ag-theme-balham .ag-angle-select-parent-circle {\n  width: 24px;\n  height: 24px;\n  border-radius: 12px;\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham .ag-angle-select-child-circle {\n  top: 4px;\n  left: 12px;\n  width: 6px;\n  height: 6px;\n  margin-left: -3px;\n  margin-top: -4px;\n  border-radius: 3px;\n  background-color: rgba(0, 0, 0, 0.54);\n  background-color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-picker-field-wrapper {\n  border: 1px solid;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  border-radius: 5px;\n}\n.ag-theme-balham .ag-picker-field-wrapper:focus {\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n}\n.ag-theme-balham .ag-picker-field-button {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-dialog.ag-color-dialog {\n  border-radius: 5px;\n}\n.ag-theme-balham .ag-color-picker .ag-picker-field-display {\n  height: 16px;\n}\n.ag-theme-balham .ag-color-panel {\n  padding: 4px;\n}\n.ag-theme-balham .ag-spectrum-color {\n  background-color: rgb(255, 0, 0);\n  border-radius: 2px;\n}\n.ag-theme-balham .ag-spectrum-tools {\n  padding: 10px;\n}\n.ag-theme-balham .ag-spectrum-sat {\n  background-image: -webkit-gradient(linear, left top, right top, from(white), to(rgba(204, 154, 129, 0)));\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\n}\n.ag-theme-balham .ag-spectrum-val {\n  background-image: -webkit-gradient(linear, left bottom, left top, from(black), to(rgba(204, 154, 129, 0)));\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\n}\n.ag-theme-balham .ag-spectrum-dragger {\n  border-radius: 12px;\n  height: 12px;\n  width: 12px;\n  border: 1px solid white;\n  background: black;\n  -webkit-box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\n          box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\n}\n.ag-theme-balham .ag-spectrum-hue-background {\n  border-radius: 2px;\n}\n.ag-theme-balham .ag-spectrum-alpha-background {\n  border-radius: 2px;\n}\n.ag-theme-balham .ag-spectrum-tool {\n  margin-bottom: 10px;\n  height: 11px;\n  border-radius: 2px;\n}\n.ag-theme-balham .ag-spectrum-slider {\n  margin-top: -12px;\n  width: 13px;\n  height: 13px;\n  border-radius: 13px;\n  background-color: rgb(248, 248, 248);\n  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n          box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.ag-theme-balham .ag-recent-color {\n  margin: 0 3px;\n}\n.ag-theme-balham .ag-recent-color:first-child {\n  margin-left: 0;\n}\n.ag-theme-balham .ag-recent-color:last-child {\n  margin-right: 0;\n}\n.ag-theme-balham.ag-dnd-ghost {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n  height: 32px !important;\n  line-height: 32px;\n  margin: 0;\n  padding: 0 8px;\n  -webkit-transform: translateY(8px);\n          transform: translateY(8px);\n}\n.ag-theme-balham .ag-dnd-ghost-icon {\n  margin-right: 4px;\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n}\n.ag-theme-balham .ag-popup-child:not(.ag-tooltip-custom) {\n  -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\n          box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\n}\n.ag-dragging-range-handle .ag-theme-balham .ag-dialog, .ag-dragging-fill-handle .ag-theme-balham .ag-dialog {\n  opacity: 0.7;\n  pointer-events: none;\n}\n.ag-theme-balham .ag-dialog {\n  border-radius: 2px;\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-panel {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham .ag-panel-title-bar {\n  background-color: #f5f7f7;\n  background-color: var(--ag-header-background-color, #f5f7f7);\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\n  height: 32px;\n  padding: 4px 12px;\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-panel-title-bar-button {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-panel-title-bar-button {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-tooltip {\n  background-color: #f5f7f7;\n  background-color: var(--ag-header-background-color, #f5f7f7);\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n  padding: 4px;\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  border-radius: 2px;\n  -webkit-transition: opacity 1s;\n  transition: opacity 1s;\n  white-space: normal;\n}\n.ag-theme-balham .ag-tooltip.ag-tooltip-hiding {\n  opacity: 0;\n}\n.ag-theme-balham .ag-tooltip-custom {\n  -webkit-transition: opacity 1s;\n  transition: opacity 1s;\n}\n.ag-theme-balham .ag-tooltip-custom.ag-tooltip-hiding {\n  opacity: 0;\n}\n.ag-theme-balham .ag-ltr .ag-column-select-indent-1 {\n  padding-left: 20px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-1 {\n  padding-right: 20px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-2 {\n  padding-left: 40px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-2 {\n  padding-right: 40px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-3 {\n  padding-left: 60px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-3 {\n  padding-right: 60px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-4 {\n  padding-left: 80px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-4 {\n  padding-right: 80px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-5 {\n  padding-left: 100px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-5 {\n  padding-right: 100px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-6 {\n  padding-left: 120px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-6 {\n  padding-right: 120px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-7 {\n  padding-left: 140px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-7 {\n  padding-right: 140px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-8 {\n  padding-left: 160px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-8 {\n  padding-right: 160px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-select-indent-9 {\n  padding-left: 180px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-indent-9 {\n  padding-right: 180px;\n}\n\n.ag-theme-balham .ag-column-select-header-icon {\n  cursor: pointer;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header-icon:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header-icon:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 0px;\n  left: 0px;\n  display: block;\n  width: calc(100% - 0px);\n  height: calc(100% - 0px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-ltr .ag-column-group-icons:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-icon:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-checkbox:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-checkbox:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-label:not(:last-child) {\n  margin-right: 8px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-group-icons:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-icon:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-checkbox:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-checkbox:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-label:not(:last-child) {\n  margin-left: 8px;\n}\n\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 1px;\n  left: 1px;\n  display: block;\n  width: calc(100% - 2px);\n  height: calc(100% - 2px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-column-select-column-group:not(:last-child),\n.ag-theme-balham .ag-column-select-column:not(:last-child) {\n  margin-bottom: 4px;\n}\n.ag-theme-balham .ag-column-select-column-readonly,\n.ag-theme-balham .ag-column-select-column-group-readonly {\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n  pointer-events: none;\n}\n.ag-theme-balham .ag-ltr .ag-column-select-add-group-indent {\n  margin-left: 24px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-select-add-group-indent {\n  margin-right: 24px;\n}\n\n.ag-theme-balham .ag-column-select-virtual-list-viewport {\n  padding: 3px 0px;\n}\n.ag-theme-balham .ag-column-select-virtual-list-item {\n  padding: 0 6px;\n}\n.ag-theme-balham .ag-rtl {\n  text-align: right;\n}\n.ag-theme-balham .ag-root-wrapper {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n  padding-left: 40px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n  padding-right: 40px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-1 {\n  padding-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-1 {\n  padding-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n  padding-left: 68px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n  padding-right: 68px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-2 {\n  padding-left: 56px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-2 {\n  padding-right: 56px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n  padding-left: 96px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n  padding-right: 96px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-3 {\n  padding-left: 84px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-3 {\n  padding-right: 84px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n  padding-left: 124px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n  padding-right: 124px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-4 {\n  padding-left: 112px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-4 {\n  padding-right: 112px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n  padding-left: 152px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n  padding-right: 152px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-5 {\n  padding-left: 140px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-5 {\n  padding-right: 140px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n  padding-left: 180px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n  padding-right: 180px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-6 {\n  padding-left: 168px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-6 {\n  padding-right: 168px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n  padding-left: 208px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n  padding-right: 208px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-7 {\n  padding-left: 196px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-7 {\n  padding-right: 196px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n  padding-left: 236px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n  padding-right: 236px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-8 {\n  padding-left: 224px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-8 {\n  padding-right: 224px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n  padding-left: 264px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n  padding-right: 264px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-9 {\n  padding-left: 252px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-9 {\n  padding-right: 252px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n  padding-left: 292px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n  padding-right: 292px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-10 {\n  padding-left: 280px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-10 {\n  padding-right: 280px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n  padding-left: 320px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n  padding-right: 320px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-11 {\n  padding-left: 308px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-11 {\n  padding-right: 308px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n  padding-left: 348px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n  padding-right: 348px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-12 {\n  padding-left: 336px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-12 {\n  padding-right: 336px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n  padding-left: 376px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n  padding-right: 376px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-13 {\n  padding-left: 364px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-13 {\n  padding-right: 364px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n  padding-left: 404px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n  padding-right: 404px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-14 {\n  padding-left: 392px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-14 {\n  padding-right: 392px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n  padding-left: 432px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n  padding-right: 432px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-15 {\n  padding-left: 420px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-15 {\n  padding-right: 420px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n  padding-left: 460px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n  padding-right: 460px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-16 {\n  padding-left: 448px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-16 {\n  padding-right: 448px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n  padding-left: 488px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n  padding-right: 488px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-17 {\n  padding-left: 476px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-17 {\n  padding-right: 476px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n  padding-left: 516px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n  padding-right: 516px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-18 {\n  padding-left: 504px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-18 {\n  padding-right: 504px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n  padding-left: 544px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n  padding-right: 544px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-19 {\n  padding-left: 532px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-19 {\n  padding-right: 532px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n  padding-left: 572px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n  padding-right: 572px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-20 {\n  padding-left: 560px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-20 {\n  padding-right: 560px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n  padding-left: 600px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n  padding-right: 600px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-21 {\n  padding-left: 588px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-21 {\n  padding-right: 588px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n  padding-left: 628px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n  padding-right: 628px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-22 {\n  padding-left: 616px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-22 {\n  padding-right: 616px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n  padding-left: 656px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n  padding-right: 656px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-23 {\n  padding-left: 644px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-23 {\n  padding-right: 644px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n  padding-left: 684px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n  padding-right: 684px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-24 {\n  padding-left: 672px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-24 {\n  padding-right: 672px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n  padding-left: 712px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n  padding-right: 712px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-25 {\n  padding-left: 700px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-25 {\n  padding-right: 700px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n  padding-left: 740px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n  padding-right: 740px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-26 {\n  padding-left: 728px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-26 {\n  padding-right: 728px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n  padding-left: 768px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n  padding-right: 768px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-27 {\n  padding-left: 756px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-27 {\n  padding-right: 756px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n  padding-left: 796px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n  padding-right: 796px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-28 {\n  padding-left: 784px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-28 {\n  padding-right: 784px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n  padding-left: 824px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n  padding-right: 824px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-29 {\n  padding-left: 812px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-29 {\n  padding-right: 812px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n  padding-left: 852px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n  padding-right: 852px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-30 {\n  padding-left: 840px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-30 {\n  padding-right: 840px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n  padding-left: 880px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n  padding-right: 880px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-31 {\n  padding-left: 868px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-31 {\n  padding-right: 868px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n  padding-left: 908px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n  padding-right: 908px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-32 {\n  padding-left: 896px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-32 {\n  padding-right: 896px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n  padding-left: 936px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n  padding-right: 936px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-33 {\n  padding-left: 924px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-33 {\n  padding-right: 924px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n  padding-left: 964px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n  padding-right: 964px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-34 {\n  padding-left: 952px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-34 {\n  padding-right: 952px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n  padding-left: 992px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n  padding-right: 992px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-35 {\n  padding-left: 980px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-35 {\n  padding-right: 980px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n  padding-left: 1020px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n  padding-right: 1020px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-36 {\n  padding-left: 1008px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-36 {\n  padding-right: 1008px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n  padding-left: 1048px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n  padding-right: 1048px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-37 {\n  padding-left: 1036px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-37 {\n  padding-right: 1036px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n  padding-left: 1076px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n  padding-right: 1076px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-38 {\n  padding-left: 1064px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-38 {\n  padding-right: 1064px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n  padding-left: 1104px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n  padding-right: 1104px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-39 {\n  padding-left: 1092px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-39 {\n  padding-right: 1092px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n  padding-left: 1132px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n  padding-right: 1132px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-40 {\n  padding-left: 1120px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-40 {\n  padding-right: 1120px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n  padding-left: 1160px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n  padding-right: 1160px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-41 {\n  padding-left: 1148px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-41 {\n  padding-right: 1148px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n  padding-left: 1188px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n  padding-right: 1188px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-42 {\n  padding-left: 1176px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-42 {\n  padding-right: 1176px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n  padding-left: 1216px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n  padding-right: 1216px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-43 {\n  padding-left: 1204px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-43 {\n  padding-right: 1204px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n  padding-left: 1244px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n  padding-right: 1244px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-44 {\n  padding-left: 1232px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-44 {\n  padding-right: 1232px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n  padding-left: 1272px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n  padding-right: 1272px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-45 {\n  padding-left: 1260px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-45 {\n  padding-right: 1260px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n  padding-left: 1300px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n  padding-right: 1300px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-46 {\n  padding-left: 1288px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-46 {\n  padding-right: 1288px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n  padding-left: 1328px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n  padding-right: 1328px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-47 {\n  padding-left: 1316px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-47 {\n  padding-right: 1316px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n  padding-left: 1356px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n  padding-right: 1356px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-48 {\n  padding-left: 1344px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-48 {\n  padding-right: 1344px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n  padding-left: 1384px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n  padding-right: 1384px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-49 {\n  padding-left: 1372px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-49 {\n  padding-right: 1372px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n  padding-left: 1412px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n  padding-right: 1412px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-50 {\n  padding-left: 1400px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-50 {\n  padding-right: 1400px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n  padding-left: 1440px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n  padding-right: 1440px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-51 {\n  padding-left: 1428px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-51 {\n  padding-right: 1428px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n  padding-left: 1468px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n  padding-right: 1468px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-52 {\n  padding-left: 1456px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-52 {\n  padding-right: 1456px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n  padding-left: 1496px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n  padding-right: 1496px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-53 {\n  padding-left: 1484px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-53 {\n  padding-right: 1484px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n  padding-left: 1524px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n  padding-right: 1524px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-54 {\n  padding-left: 1512px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-54 {\n  padding-right: 1512px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n  padding-left: 1552px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n  padding-right: 1552px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-55 {\n  padding-left: 1540px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-55 {\n  padding-right: 1540px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n  padding-left: 1580px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n  padding-right: 1580px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-56 {\n  padding-left: 1568px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-56 {\n  padding-right: 1568px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n  padding-left: 1608px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n  padding-right: 1608px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-57 {\n  padding-left: 1596px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-57 {\n  padding-right: 1596px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n  padding-left: 1636px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n  padding-right: 1636px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-58 {\n  padding-left: 1624px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-58 {\n  padding-right: 1624px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n  padding-left: 1664px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n  padding-right: 1664px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-59 {\n  padding-left: 1652px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-59 {\n  padding-right: 1652px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n  padding-left: 1692px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n  padding-right: 1692px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-60 {\n  padding-left: 1680px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-60 {\n  padding-right: 1680px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n  padding-left: 1720px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n  padding-right: 1720px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-61 {\n  padding-left: 1708px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-61 {\n  padding-right: 1708px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n  padding-left: 1748px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n  padding-right: 1748px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-62 {\n  padding-left: 1736px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-62 {\n  padding-right: 1736px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n  padding-left: 1776px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n  padding-right: 1776px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-63 {\n  padding-left: 1764px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-63 {\n  padding-right: 1764px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n  padding-left: 1804px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n  padding-right: 1804px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-64 {\n  padding-left: 1792px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-64 {\n  padding-right: 1792px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n  padding-left: 1832px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n  padding-right: 1832px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-65 {\n  padding-left: 1820px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-65 {\n  padding-right: 1820px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n  padding-left: 1860px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n  padding-right: 1860px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-66 {\n  padding-left: 1848px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-66 {\n  padding-right: 1848px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n  padding-left: 1888px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n  padding-right: 1888px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-67 {\n  padding-left: 1876px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-67 {\n  padding-right: 1876px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n  padding-left: 1916px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n  padding-right: 1916px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-68 {\n  padding-left: 1904px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-68 {\n  padding-right: 1904px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n  padding-left: 1944px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n  padding-right: 1944px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-69 {\n  padding-left: 1932px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-69 {\n  padding-right: 1932px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n  padding-left: 1972px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n  padding-right: 1972px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-70 {\n  padding-left: 1960px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-70 {\n  padding-right: 1960px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n  padding-left: 2000px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n  padding-right: 2000px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-71 {\n  padding-left: 1988px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-71 {\n  padding-right: 1988px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n  padding-left: 2028px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n  padding-right: 2028px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-72 {\n  padding-left: 2016px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-72 {\n  padding-right: 2016px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n  padding-left: 2056px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n  padding-right: 2056px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-73 {\n  padding-left: 2044px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-73 {\n  padding-right: 2044px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n  padding-left: 2084px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n  padding-right: 2084px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-74 {\n  padding-left: 2072px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-74 {\n  padding-right: 2072px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n  padding-left: 2112px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n  padding-right: 2112px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-75 {\n  padding-left: 2100px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-75 {\n  padding-right: 2100px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n  padding-left: 2140px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n  padding-right: 2140px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-76 {\n  padding-left: 2128px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-76 {\n  padding-right: 2128px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n  padding-left: 2168px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n  padding-right: 2168px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-77 {\n  padding-left: 2156px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-77 {\n  padding-right: 2156px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n  padding-left: 2196px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n  padding-right: 2196px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-78 {\n  padding-left: 2184px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-78 {\n  padding-right: 2184px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n  padding-left: 2224px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n  padding-right: 2224px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-79 {\n  padding-left: 2212px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-79 {\n  padding-right: 2212px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n  padding-left: 2252px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n  padding-right: 2252px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-80 {\n  padding-left: 2240px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-80 {\n  padding-right: 2240px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n  padding-left: 2280px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n  padding-right: 2280px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-81 {\n  padding-left: 2268px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-81 {\n  padding-right: 2268px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n  padding-left: 2308px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n  padding-right: 2308px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-82 {\n  padding-left: 2296px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-82 {\n  padding-right: 2296px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n  padding-left: 2336px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n  padding-right: 2336px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-83 {\n  padding-left: 2324px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-83 {\n  padding-right: 2324px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n  padding-left: 2364px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n  padding-right: 2364px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-84 {\n  padding-left: 2352px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-84 {\n  padding-right: 2352px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n  padding-left: 2392px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n  padding-right: 2392px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-85 {\n  padding-left: 2380px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-85 {\n  padding-right: 2380px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n  padding-left: 2420px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n  padding-right: 2420px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-86 {\n  padding-left: 2408px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-86 {\n  padding-right: 2408px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n  padding-left: 2448px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n  padding-right: 2448px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-87 {\n  padding-left: 2436px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-87 {\n  padding-right: 2436px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n  padding-left: 2476px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n  padding-right: 2476px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-88 {\n  padding-left: 2464px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-88 {\n  padding-right: 2464px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n  padding-left: 2504px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n  padding-right: 2504px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-89 {\n  padding-left: 2492px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-89 {\n  padding-right: 2492px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n  padding-left: 2532px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n  padding-right: 2532px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-90 {\n  padding-left: 2520px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-90 {\n  padding-right: 2520px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n  padding-left: 2560px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n  padding-right: 2560px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-91 {\n  padding-left: 2548px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-91 {\n  padding-right: 2548px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n  padding-left: 2588px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n  padding-right: 2588px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-92 {\n  padding-left: 2576px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-92 {\n  padding-right: 2576px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n  padding-left: 2616px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n  padding-right: 2616px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-93 {\n  padding-left: 2604px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-93 {\n  padding-right: 2604px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n  padding-left: 2644px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n  padding-right: 2644px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-94 {\n  padding-left: 2632px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-94 {\n  padding-right: 2632px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n  padding-left: 2672px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n  padding-right: 2672px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-95 {\n  padding-left: 2660px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-95 {\n  padding-right: 2660px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n  padding-left: 2700px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n  padding-right: 2700px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-96 {\n  padding-left: 2688px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-96 {\n  padding-right: 2688px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n  padding-left: 2728px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n  padding-right: 2728px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-97 {\n  padding-left: 2716px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-97 {\n  padding-right: 2716px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n  padding-left: 2756px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n  padding-right: 2756px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-98 {\n  padding-left: 2744px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-98 {\n  padding-right: 2744px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n  padding-left: 2784px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n  padding-right: 2784px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-indent-99 {\n  padding-left: 2772px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-indent-99 {\n  padding-right: 2772px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-ltr .ag-row-group-leaf-indent {\n  margin-left: 28px;\n}\n\n.ag-theme-balham .ag-rtl .ag-row-group-leaf-indent {\n  margin-right: 28px;\n}\n\n.ag-theme-balham .ag-value-change-delta {\n  padding-right: 2px;\n}\n.ag-theme-balham .ag-value-change-delta-up {\n  color: #43a047;\n  color: var(--ag-value-change-delta-up-color, #43a047);\n}\n.ag-theme-balham .ag-value-change-delta-down {\n  color: #e53935;\n  color: var(--ag-value-change-delta-down-color, #e53935);\n}\n.ag-theme-balham .ag-value-change-value {\n  background-color: transparent;\n  border-radius: 1px;\n  padding-left: 1px;\n  padding-right: 1px;\n  -webkit-transition: background-color 1s;\n  transition: background-color 1s;\n}\n.ag-theme-balham .ag-value-change-value-highlight {\n  background-color: rgba(22, 160, 133, 0.5);\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5));\n  -webkit-transition: background-color 0.1s;\n  transition: background-color 0.1s;\n}\n.ag-theme-balham .ag-cell-data-changed {\n  background-color: rgba(22, 160, 133, 0.5) !important;\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5)) !important;\n}\n.ag-theme-balham .ag-cell-data-changed-animation {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-cell-highlight {\n  background-color: #0091ea !important;\n  background-color: var(--ag-range-selection-highlight-color, var(--ag-balham-active-color, #0091ea)) !important;\n}\n.ag-theme-balham .ag-row {\n  height: 28px;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  color: #000;\n  color: var(--ag-data-color, var(--ag-foreground-color, #000));\n  border-width: 1px;\n  border-color: #d9dcde;\n  border-color: var(--ag-row-border-color, #d9dcde);\n  border-bottom-style: solid;\n}\n.ag-theme-balham .ag-row-highlight-above::after, .ag-theme-balham .ag-row-highlight-below::after {\n  content: \"\";\n  position: absolute;\n  width: calc(100% - 1px);\n  height: 1px;\n  background-color: #0091ea;\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n  left: 1px;\n}\n.ag-theme-balham .ag-row-highlight-above::after {\n  top: -1px;\n}\n.ag-theme-balham .ag-row-highlight-above.ag-row-first::after {\n  top: 0;\n}\n.ag-theme-balham .ag-row-highlight-below::after {\n  bottom: 0px;\n}\n.ag-theme-balham .ag-row-odd {\n  background-color: #fcfdfe;\n  background-color: var(--ag-odd-row-background-color, #fcfdfe);\n}\n.ag-theme-balham .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-row-hover {\n  background-color: #ecf0f1;\n  background-color: var(--ag-row-hover-color, #ecf0f1);\n}\n.ag-theme-balham .ag-column-hover {\n  background-color: #ecf0f1;\n  background-color: var(--ag-column-hover-color, #ecf0f1);\n}\n.ag-theme-balham .ag-ltr .ag-right-aligned-cell {\n  text-align: right;\n}\n\n.ag-theme-balham .ag-rtl .ag-right-aligned-cell {\n  text-align: left;\n}\n\n.ag-theme-balham .ag-ltr .ag-right-aligned-cell .ag-cell-value, .ag-theme-balham .ag-ltr .ag-right-aligned-cell .ag-group-value {\n  margin-left: auto;\n}\n\n.ag-theme-balham .ag-rtl .ag-right-aligned-cell .ag-cell-value, .ag-theme-balham .ag-rtl .ag-right-aligned-cell .ag-group-value {\n  margin-right: auto;\n}\n\n.ag-theme-balham .ag-cell, .ag-theme-balham .ag-full-width-row .ag-cell-wrapper.ag-row-group {\n  border: 1px solid transparent;\n  line-height: min(var(--ag-line-height, 26px), 26px);\n  padding-left: 11px;\n  padding-right: 11px;\n  -webkit-font-smoothing: subpixel-antialiased;\n}\n.ag-theme-balham .ag-row > .ag-cell-wrapper {\n  padding-left: 11px;\n  padding-right: 11px;\n}\n.ag-theme-balham .ag-row-dragging {\n  cursor: move;\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-cell-inline-editing {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n  padding: 0;\n  height: 28px;\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n}\n.ag-theme-balham .ag-popup-editor {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n  padding: 0;\n}\n.ag-theme-balham .ag-large-text-input {\n  height: auto;\n  padding: 12px;\n}\n.ag-theme-balham .ag-details-row {\n  padding: 20px;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n}\n.ag-theme-balham .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-balham .ag-layout-auto-height .ag-center-cols-container, .ag-theme-balham .ag-layout-print .ag-center-cols-clipper, .ag-theme-balham .ag-layout-print .ag-center-cols-container {\n  min-height: 50px;\n}\n.ag-theme-balham .ag-overlay-loading-wrapper {\n  background-color: rgba(255, 255, 255, 0.66);\n  background-color: var(--ag-modal-overlay-background-color, rgba(255, 255, 255, 0.66));\n}\n.ag-theme-balham .ag-overlay-loading-center {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n}\n.ag-theme-balham .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\n  padding-top: 30px;\n}\n.ag-theme-balham .ag-loading {\n  padding-left: 12px;\n  display: -webkit-box;\n  display: flex;\n  height: 100%;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-balham .ag-loading-icon {\n  padding-right: 12px;\n}\n.ag-theme-balham .ag-icon-loading {\n  -webkit-animation-name: spin;\n          animation-name: spin;\n  -webkit-animation-duration: 1000ms;\n          animation-duration: 1000ms;\n  -webkit-animation-iteration-count: infinite;\n          animation-iteration-count: infinite;\n  -webkit-animation-timing-function: linear;\n          animation-timing-function: linear;\n}\n@-webkit-keyframes spin {\n  from {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes spin {\n  from {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  to {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.ag-theme-balham .ag-floating-top {\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-floating-bottom {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-cell {\n  border-right: solid transparent;\n}\n\n.ag-theme-balham .ag-rtl .ag-cell {\n  border-left: solid transparent;\n}\n\n.ag-theme-balham .ag-ltr .ag-cell {\n  border-right-width: 1px;\n}\n\n.ag-theme-balham .ag-rtl .ag-cell {\n  border-left-width: 1px;\n}\n\n.ag-theme-balham .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-row-selected {\n  background-color: #b7e4ff;\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\n}\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus),\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\n  background-color: rgba(0, 145, 234, 0.2);\n  background-color: var(--ag-range-selection-background-color, rgba(0, 145, 234, 0.2));\n}\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\n  background-color: rgba(0, 88, 255, 0.1) !important;\n  background-color: var(--ag-range-selection-chart-background-color, rgba(0, 88, 255, 0.1)) !important;\n}\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\n  background-color: rgba(0, 255, 132, 0.1) !important;\n  background-color: var(--ag-range-selection-chart-category-background-color, rgba(0, 255, 132, 0.1)) !important;\n}\n.ag-theme-balham .ag-cell-range-selected-1:not(.ag-cell-focus),\n.ag-theme-balham .ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\n  background-color: rgba(0, 145, 234, 0.2);\n  background-color: var(--ag-range-selection-background-color-1, var(--ag-range-selection-background-color, rgba(0, 145, 234, 0.2)));\n}\n.ag-theme-balham .ag-cell-range-selected-2:not(.ag-cell-focus),\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\n  background-color: rgba(0, 145, 234, 0.36);\n  background-color: var(--ag-range-selection-background-color-2, rgba(0, 145, 234, 0.36));\n}\n.ag-theme-balham .ag-cell-range-selected-3:not(.ag-cell-focus),\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\n  background-color: rgba(0, 145, 234, 0.488);\n  background-color: var(--ag-range-selection-background-color-3, rgba(0, 145, 234, 0.488));\n}\n.ag-theme-balham .ag-cell-range-selected-4:not(.ag-cell-focus),\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\n  background-color: rgba(0, 145, 234, 0.5904);\n  background-color: var(--ag-range-selection-background-color-4, rgba(0, 145, 234, 0.5904));\n}\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\n  border-top-color: #0091ea;\n  border-top-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\n  border-right-color: #0091ea;\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\n  border-bottom-color: #0091ea;\n  border-bottom-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\n  border-left-color: #0091ea;\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-balham .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-balham .ag-ltr .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\n.ag-theme-balham .ag-ltr .ag-cell-range-single-cell,\n.ag-theme-balham .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-theme-balham .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-balham .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-theme-balham .ag-rtl .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\n.ag-theme-balham .ag-rtl .ag-cell-range-single-cell,\n.ag-theme-balham .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\n  border: 1px solid;\n  border-color: #0091ea;\n  border-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n  outline: initial;\n}\n.ag-theme-balham .ag-cell.ag-selection-fill-top,\n.ag-theme-balham .ag-cell.ag-selection-fill-top.ag-cell-range-selected {\n  border-top: 1px dashed;\n  border-top-color: #0091ea;\n  border-top-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-right, .ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n  border-right: 1px dashed;\n  border-right-color: #0091ea;\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n\n.ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-right, .ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n  border-left: 1px dashed;\n  border-left-color: #0091ea;\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n\n.ag-theme-balham .ag-cell.ag-selection-fill-bottom,\n.ag-theme-balham .ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\n  border-bottom: 1px dashed;\n  border-bottom-color: #0091ea;\n  border-bottom-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-left, .ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n  border-left: 1px dashed;\n  border-left-color: #0091ea;\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n\n.ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-left, .ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n  border-right: 1px dashed;\n  border-right-color: #0091ea;\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n\n.ag-theme-balham .ag-range-handle, .ag-theme-balham .ag-fill-handle {\n  position: absolute;\n  width: 6px;\n  height: 6px;\n  bottom: -1px;\n  background-color: #0091ea;\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-ltr .ag-range-handle, .ag-theme-balham .ag-ltr .ag-fill-handle {\n  right: -1px;\n}\n\n.ag-theme-balham .ag-rtl .ag-range-handle, .ag-theme-balham .ag-rtl .ag-fill-handle {\n  left: -1px;\n}\n\n.ag-theme-balham .ag-fill-handle {\n  cursor: cell;\n}\n.ag-theme-balham .ag-range-handle {\n  cursor: nwse-resize;\n}\n.ag-theme-balham .ag-cell-inline-editing {\n  border-color: #719ECE !important;\n  border-color: var(--ag-input-focus-border-color, #719ECE) !important;\n}\n.ag-theme-balham .ag-menu {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n  padding: 0;\n}\n.ag-theme-balham .ag-menu-list {\n  cursor: default;\n  padding: 4px 0;\n}\n.ag-theme-balham .ag-menu-separator {\n  height: 9px;\n}\n.ag-theme-balham .ag-menu-separator-part::after {\n  content: \"\";\n  display: block;\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-menu-option-active, .ag-theme-balham .ag-compact-menu-option-active {\n  background-color: #ecf0f1;\n  background-color: var(--ag-row-hover-color, #ecf0f1);\n}\n.ag-theme-balham .ag-menu-option-part, .ag-theme-balham .ag-compact-menu-option-part {\n  line-height: 16px;\n  padding: 6px 0;\n}\n.ag-theme-balham .ag-menu-option-disabled, .ag-theme-balham .ag-compact-menu-option-disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-menu-option-icon, .ag-theme-balham .ag-compact-menu-option-icon {\n  width: 16px;\n}\n.ag-theme-balham .ag-ltr .ag-menu-option-icon, .ag-theme-balham .ag-ltr .ag-compact-menu-option-icon {\n  padding-left: 8px;\n}\n\n.ag-theme-balham .ag-rtl .ag-menu-option-icon, .ag-theme-balham .ag-rtl .ag-compact-menu-option-icon {\n  padding-right: 8px;\n}\n\n.ag-theme-balham .ag-menu-option-text, .ag-theme-balham .ag-compact-menu-option-text {\n  padding-left: 8px;\n  padding-right: 8px;\n}\n.ag-theme-balham .ag-ltr .ag-menu-option-shortcut, .ag-theme-balham .ag-ltr .ag-compact-menu-option-shortcut {\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-menu-option-shortcut, .ag-theme-balham .ag-rtl .ag-compact-menu-option-shortcut {\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-menu-option-popup-pointer, .ag-theme-balham .ag-compact-menu-option-popup-pointer {\n  padding-right: 4px;\n}\n.ag-theme-balham .ag-tabs {\n  min-width: 220px;\n}\n.ag-theme-balham .ag-tabs-header {\n  width: 100%;\n  display: -webkit-box;\n  display: flex;\n}\n.ag-theme-balham .ag-tab {\n  border-bottom: 0 solid transparent;\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-flex: 0;\n          flex: none;\n  -webkit-box-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n          justify-content: center;\n  cursor: pointer;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-tab:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-tab:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-tab-selected {\n  border-bottom-color: #0091ea;\n  border-bottom-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-menu-header {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-filter-separator {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-menu:not(.ag-tabs) .ag-filter-select {\n  min-width: 167px;\n}\n.ag-theme-balham .ag-tabs .ag-filter-select {\n  min-width: 206px;\n}\n.ag-theme-balham .ag-filter-select .ag-picker-field-wrapper {\n  width: 0;\n}\n.ag-theme-balham .ag-filter-condition-operator {\n  height: 17px;\n}\n.ag-theme-balham .ag-ltr .ag-filter-condition-operator-or {\n  margin-left: 8px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-condition-operator-or {\n  margin-right: 8px;\n}\n\n.ag-theme-balham .ag-set-filter-select-all {\n  padding-top: 6px;\n}\n.ag-theme-balham .ag-set-filter-list, .ag-theme-balham .ag-filter-no-matches {\n  height: 144px;\n}\n.ag-theme-balham .ag-set-filter-filter {\n  margin-top: 6px;\n  margin-left: 6px;\n  margin-right: 6px;\n}\n.ag-theme-balham .ag-filter-to {\n  margin-top: 4px;\n}\n.ag-theme-balham .ag-mini-filter {\n  margin: 6px 6px;\n}\n.ag-theme-balham .ag-set-filter-item {\n  margin: 0px 6px;\n}\n.ag-theme-balham .ag-ltr .ag-set-filter-item-value {\n  margin-left: 6px;\n}\n\n.ag-theme-balham .ag-rtl .ag-set-filter-item-value {\n  margin-right: 6px;\n}\n\n.ag-theme-balham .ag-filter-apply-panel {\n  padding: 6px 6px;\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-filter-apply-panel-button {\n  line-height: 1.5;\n}\n.ag-theme-balham .ag-ltr .ag-filter-apply-panel-button {\n  margin-left: 8px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-apply-panel-button {\n  margin-right: 8px;\n}\n\n.ag-theme-balham .ag-simple-filter-body-wrapper {\n  padding: 6px 6px;\n  padding-bottom: 2px;\n}\n.ag-theme-balham .ag-simple-filter-body-wrapper > * {\n  margin-bottom: 4px;\n}\n.ag-theme-balham .ag-filter-no-matches {\n  padding: 6px 6px;\n}\n.ag-theme-balham .ag-multi-filter-menu-item {\n  margin: 4px 0;\n}\n.ag-theme-balham .ag-multi-filter-group-title-bar {\n  padding: 8px 4px;\n  background-color: transparent;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-side-bar {\n  position: relative;\n}\n.ag-theme-balham .ag-tool-panel-wrapper {\n  width: 200px;\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n}\n.ag-theme-balham .ag-side-buttons {\n  padding-top: 16px;\n  width: 20px;\n  position: relative;\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n  overflow: hidden;\n}\n.ag-theme-balham button.ag-side-button-button {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  font-weight: inherit;\n  line-height: inherit;\n  background: transparent;\n  padding: 8px 0 8px 0;\n  width: calc(100% + 1px);\n  margin: 0;\n  min-height: 72px;\n  background-position-y: center;\n  background-position-x: center;\n  background-repeat: no-repeat;\n  border: none;\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham button.ag-side-button-button:focus {\n  -webkit-box-shadow: none;\n          box-shadow: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-side-button-button:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-side-button-button:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-selected .ag-side-button-button {\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-side-button-icon-wrapper {\n  margin-bottom: 3px;\n}\n.ag-theme-balham .ag-ltr .ag-side-bar-left,\n.ag-theme-balham .ag-rtl .ag-side-bar-right {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-side-button-button,\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-side-button-button {\n  border-right: 0 solid transparent;\n  margin-right: -1px;\n  padding-right: 1px;\n}\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\n  border-right-color: #0091ea;\n  border-right-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-rtl .ag-side-bar-left,\n.ag-theme-balham .ag-ltr .ag-side-bar-right {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-side-button-button,\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-side-button-button {\n  border-left: 0 solid transparent;\n  margin-left: -1px;\n  padding-left: 1px;\n}\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\n  border-left-color: #0091ea;\n  border-left-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-filter-toolpanel-header {\n  height: 24px;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-header, .ag-theme-balham .ag-ltr .ag-filter-toolpanel-search {\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-header, .ag-theme-balham .ag-rtl .ag-filter-toolpanel-search {\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-keyboard-focus .ag-filter-toolpanel-header:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  font-family: \"agGridBalham\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  content: \"\\\\f114\";\n  position: absolute;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-0-header {\n  height: 32px;\n}\n.ag-theme-balham .ag-filter-toolpanel-group-item {\n  margin-top: 2px;\n  margin-bottom: 2px;\n}\n.ag-theme-balham .ag-filter-toolpanel-search {\n  height: 32px;\n}\n.ag-theme-balham .ag-filter-toolpanel-search-input {\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n  height: 16px;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-search-input {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-search-input {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-0 {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-expand, .ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-expand, .ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n  padding-left: 20px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n  padding-right: 20px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n  padding-left: 36px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n  padding-right: 36px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n  padding-left: 52px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n  padding-right: 52px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n  padding-left: 68px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n  padding-right: 68px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n  padding-left: 84px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n  padding-right: 84px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n  padding-left: 100px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n  padding-right: 100px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n  padding-left: 116px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n  padding-right: 116px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n  padding-left: 132px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n  padding-right: 132px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n  padding-left: 148px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n  padding-right: 148px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\n  background-color: transparent;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n  padding-left: 164px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n  padding-right: 164px;\n}\n\n.ag-theme-balham .ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\n  padding-left: 4px;\n}\n.ag-theme-balham .ag-filter-toolpanel-instance-filter {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n  margin-top: 4px;\n}\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-instance-header-icon {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-instance-header-icon {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-pivot-mode-panel {\n  min-height: 32px;\n  height: 32px;\n  display: -webkit-box;\n  display: flex;\n}\n.ag-theme-balham .ag-pivot-mode-select {\n  display: -webkit-box;\n  display: flex;\n  -webkit-box-align: center;\n          align-items: center;\n}\n.ag-theme-balham .ag-ltr .ag-pivot-mode-select {\n  margin-left: 6px;\n}\n\n.ag-theme-balham .ag-rtl .ag-pivot-mode-select {\n  margin-right: 6px;\n}\n\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-column-select-header {\n  height: 32px;\n  -webkit-box-align: center;\n          align-items: center;\n  padding: 0 6px;\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-column-panel-column-select {\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-column-group-icons,\n.ag-theme-balham .ag-column-select-header-icon {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-column-select-list .ag-list-item-hovered::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  height: 1px;\n  background-color: #0091ea;\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-column-select-list .ag-item-highlight-top::after {\n  top: 0;\n}\n.ag-theme-balham .ag-column-select-list .ag-item-highlight-bottom::after {\n  bottom: 0;\n}\n.ag-theme-balham .ag-header {\n  background-color: #f5f7f7;\n  background-color: var(--ag-header-background-color, #f5f7f7);\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-header-row {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\n  height: 32px;\n}\n.ag-theme-balham .ag-pinned-right-header {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-pinned-left-header {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\n  margin-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\n  margin-left: 4px;\n}\n\n.ag-theme-balham .ag-header-cell,\n.ag-theme-balham .ag-header-group-cell {\n  padding-left: 12px;\n  padding-right: 12px;\n}\n.ag-theme-balham .ag-header-cell.ag-header-cell-moving,\n.ag-theme-balham .ag-header-group-cell.ag-header-cell-moving {\n  background-color: white;\n  background-color: var(--ag-header-cell-moving-background-color, var(--ag-background-color, white));\n}\n.ag-theme-balham .ag-keyboard-focus .ag-header-cell:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-header-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-keyboard-focus .ag-header-group-cell:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-header-group-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 4px;\n  left: 4px;\n  display: block;\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-header-icon {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-header-expand-icon {\n  cursor: pointer;\n}\n.ag-theme-balham .ag-ltr .ag-header-expand-icon {\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-header-expand-icon {\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-header-row:not(:first-child) .ag-header-cell,\n.ag-theme-balham .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-header-cell::after,\n.ag-theme-balham .ag-header-group-cell::after {\n  content: \"\";\n  position: absolute;\n  z-index: 1;\n  display: block;\n  width: 1px;\n  height: 50%;\n  top: calc(50% - 25%);\n  background-color: rgba(189, 195, 199, 0.5);\n  background-color: var(--ag-header-column-separator-color, rgba(189, 195, 199, 0.5));\n}\n.ag-theme-balham .ag-ltr .ag-header-cell::after, .ag-theme-balham .ag-ltr .ag-header-group-cell::after {\n  right: 0;\n}\n\n.ag-theme-balham .ag-rtl .ag-header-cell::after, .ag-theme-balham .ag-rtl .ag-header-group-cell::after {\n  left: 0;\n}\n\n.ag-theme-balham .ag-ltr .ag-header-select-all {\n  margin-right: 12px;\n}\n\n.ag-theme-balham .ag-rtl .ag-header-select-all {\n  margin-left: 12px;\n}\n\n.ag-theme-balham .ag-ltr .ag-floating-filter-button {\n  margin-left: 12px;\n}\n\n.ag-theme-balham .ag-rtl .ag-floating-filter-button {\n  margin-right: 12px;\n}\n\n.ag-theme-balham .ag-floating-filter-button-button {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  font-weight: inherit;\n  line-height: inherit;\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  background: transparent;\n  border: none;\n  height: 16px;\n  padding: 0;\n  width: 16px;\n}\n.ag-theme-balham .ag-filter-loading {\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n  height: 100%;\n  padding: 6px 6px;\n  position: absolute;\n  width: 100%;\n  z-index: 1;\n}\n.ag-theme-balham .ag-paging-panel {\n  border-top: 1px solid;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n  height: 32px;\n}\n.ag-theme-balham .ag-paging-panel > * {\n  margin: 0 12px;\n}\n.ag-theme-balham .ag-paging-button {\n  cursor: pointer;\n}\n.ag-theme-balham .ag-paging-button.ag-disabled {\n  cursor: default;\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n}\n.ag-theme-balham .ag-keyboard-focus .ag-paging-button:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-paging-button:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 0px;\n  left: 0px;\n  display: block;\n  width: calc(100% - 0px);\n  height: calc(100% - 0px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-paging-button, .ag-theme-balham .ag-paging-description {\n  margin: 0 4px;\n}\n.ag-theme-balham .ag-status-bar {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-border-color, #bdc3c7);\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n  padding-right: 16px;\n  padding-left: 16px;\n  line-height: 1.5;\n}\n.ag-theme-balham .ag-status-name-value-value {\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n}\n.ag-theme-balham .ag-status-bar-center {\n  text-align: center;\n}\n.ag-theme-balham .ag-status-name-value {\n  margin-left: 4px;\n  margin-right: 4px;\n  padding-top: 8px;\n  padding-bottom: 8px;\n}\n.ag-theme-balham .ag-column-drop-cell {\n  background: #dddede;\n  background: var(--ag-chip-background-color, #dddede);\n  border-radius: 16px;\n  height: 16px;\n  padding: 0 2px;\n  border: 1px solid transparent;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-drop-cell:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-column-drop-cell:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 2px;\n  left: 2px;\n  display: block;\n  width: calc(100% - 4px);\n  height: calc(100% - 4px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-column-drop-cell-text {\n  margin: 0 4px;\n}\n.ag-theme-balham .ag-column-drop-cell-button {\n  min-width: 16px;\n  margin: 0 2px;\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-column-drop-cell-drag-handle {\n  margin-left: 8px;\n}\n.ag-theme-balham .ag-column-drop-cell-ghost {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-column-drop-horizontal {\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n  height: 28px;\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal {\n  padding-left: 12px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal {\n  padding-right: 12px;\n}\n\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n\n.ag-theme-balham .ag-column-drop-horizontal-cell-separator {\n  margin: 0 4px;\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-column-drop-horizontal-empty-message {\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n}\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal-icon {\n  margin-right: 12px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal-icon {\n  margin-left: 12px;\n}\n\n.ag-theme-balham .ag-column-drop-vertical-list {\n  padding-bottom: 4px;\n  padding-right: 4px;\n  padding-left: 4px;\n}\n.ag-theme-balham .ag-column-drop-vertical-cell {\n  margin-top: 4px;\n}\n.ag-theme-balham .ag-column-drop-vertical {\n  min-height: 50px;\n  border-bottom: solid 1px;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-column-drop-vertical.ag-last-column-drop {\n  border-bottom: none;\n}\n.ag-theme-balham .ag-column-drop-vertical-icon {\n  margin-left: 4px;\n  margin-right: 4px;\n}\n.ag-theme-balham .ag-column-drop-vertical-empty-message {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  overflow: hidden;\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n  margin-top: 4px;\n}\n.ag-theme-balham .ag-select-agg-func-popup {\n  border: solid 1px;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  background: white;\n  background: var(--ag-background-color, white);\n  border-radius: 2px;\n  -webkit-box-shadow: none;\n          box-shadow: none;\n  padding: 4px;\n  background: white;\n  background: var(--ag-background-color, white);\n  height: 70px;\n  padding: 0;\n}\n.ag-theme-balham .ag-select-agg-func-virtual-list-item {\n  cursor: default;\n  padding-left: 8px;\n}\n.ag-theme-balham .ag-select-agg-func-virtual-list-item:hover {\n  background-color: #b7e4ff;\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\n}\n.ag-theme-balham .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\n  outline: none;\n}\n.ag-theme-balham .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\n  content: \"\";\n  position: absolute;\n  background-color: transparent;\n  pointer-events: none;\n  top: 1px;\n  left: 1px;\n  display: block;\n  width: calc(100% - 2px);\n  height: calc(100% - 2px);\n  border: 1px solid;\n  border-color: #719ECE;\n  border-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham .ag-chart-menu {\n  border-radius: 2px;\n  background: white;\n  background: var(--ag-background-color, white);\n}\n.ag-theme-balham .ag-chart-menu-icon {\n  opacity: 0.5;\n  line-height: 24px;\n  font-size: 24px;\n  width: 24px;\n  height: 24px;\n  margin: 2px 0;\n  cursor: pointer;\n  border-radius: 2px;\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-chart-menu-icon:hover {\n  opacity: 1;\n}\n.ag-theme-balham .ag-chart-mini-thumbnail {\n  border: 1px solid;\n  border-color: #bdc3c7;\n  border-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n  border-radius: 5px;\n  margin: 5px;\n}\n.ag-theme-balham .ag-chart-mini-thumbnail:nth-last-child(3), .ag-theme-balham .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\n  margin-left: auto;\n  margin-right: auto;\n}\n.ag-theme-balham .ag-ltr .ag-chart-mini-thumbnail:first-child {\n  margin-left: 0;\n}\n\n.ag-theme-balham .ag-rtl .ag-chart-mini-thumbnail:first-child {\n  margin-right: 0;\n}\n\n.ag-theme-balham .ag-ltr .ag-chart-mini-thumbnail:last-child {\n  margin-right: 0;\n}\n\n.ag-theme-balham .ag-rtl .ag-chart-mini-thumbnail:last-child {\n  margin-left: 0;\n}\n\n.ag-theme-balham .ag-chart-mini-thumbnail.ag-selected {\n  border-color: #0091ea;\n  border-color: var(--ag-minichart-selected-chart-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-chart-settings-card-item {\n  background: #000;\n  background: var(--ag-foreground-color, #000);\n  width: 8px;\n  height: 8px;\n  border-radius: 4px;\n}\n.ag-theme-balham .ag-chart-settings-card-item.ag-selected {\n  background-color: #0091ea;\n  background-color: var(--ag-minichart-selected-page-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-chart-data-column-drag-handle {\n  margin-left: 4px;\n}\n.ag-theme-balham .ag-charts-settings-group-title-bar,\n.ag-theme-balham .ag-charts-data-group-title-bar,\n.ag-theme-balham .ag-charts-format-top-level-group-title-bar {\n  border-top: solid 1px;\n  border-top-color: #bdc3c7;\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\n}\n.ag-theme-balham .ag-charts-settings-group-container {\n  padding: 4px;\n}\n.ag-theme-balham .ag-charts-data-group-container {\n  padding: 3px 6px;\n}\n.ag-theme-balham .ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\n  height: 24px;\n}\n.ag-theme-balham .ag-charts-data-group-container .ag-list-item-hovered::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  height: 1px;\n  background-color: #0091ea;\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham .ag-charts-data-group-container .ag-item-highlight-top::after {\n  top: 0;\n}\n.ag-theme-balham .ag-charts-data-group-container .ag-item-highlight-bottom::after {\n  bottom: 0;\n}\n.ag-theme-balham .ag-charts-format-top-level-group-container {\n  margin-left: 8px;\n  padding: 4px;\n}\n.ag-theme-balham .ag-charts-format-top-level-group-item {\n  margin: 4px 0;\n}\n.ag-theme-balham .ag-charts-format-sub-level-group-container {\n  padding: 6px 6px;\n  padding-bottom: 2px;\n}\n.ag-theme-balham .ag-charts-format-sub-level-group-container > * {\n  margin-bottom: 4px;\n}\n.ag-theme-balham .ag-charts-group-container.ag-group-container-horizontal {\n  padding: 4px;\n}\n.ag-theme-balham .ag-chart-data-section,\n.ag-theme-balham .ag-chart-format-section {\n  display: -webkit-box;\n  display: flex;\n  margin: 0;\n}\n.ag-theme-balham .ag-chart-menu-panel {\n  background-color: #f5f7f7;\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\n}\n.ag-theme-balham .ag-ltr .ag-chart-menu-panel {\n  border-left: solid 1px;\n  border-left-color: #bdc3c7;\n  border-left-color: var(--ag-border-color, #bdc3c7);\n}\n\n.ag-theme-balham .ag-rtl .ag-chart-menu-panel {\n  border-right: solid 1px;\n  border-right-color: #bdc3c7;\n  border-right-color: var(--ag-border-color, #bdc3c7);\n}\n\n.ag-theme-balham .ag-date-time-list-page-title {\n  -webkit-box-flex: 1;\n          flex-grow: 1;\n  text-align: center;\n}\n.ag-theme-balham .ag-date-time-list-page-column-label {\n  text-align: center;\n}\n.ag-theme-balham .ag-date-time-list-page-entry {\n  text-align: center;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper {\n  font-family: \"agGridBalham\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  width: 16px;\n  height: 16px;\n  background-color: white;\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, white));\n  border-radius: 3px;\n  display: inline-block;\n  vertical-align: middle;\n  -webkit-box-flex: 0;\n          flex: none;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper input, .ag-theme-balham .ag-checkbox-input-wrapper input {\n  -webkit-appearance: none;\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper:focus-within, .ag-theme-balham .ag-checkbox-input-wrapper:active {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper::after {\n  content: \"\\\\f108\";\n  color: #7f8c8d;\n  color: var(--ag-checkbox-unchecked-color, #7f8c8d);\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-checked::after {\n  content: \"\\\\f106\";\n  color: #0091ea;\n  color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-indeterminate::after {\n  content: \"\\\\f107\";\n  color: #7f8c8d;\n  color: var(--ag-checkbox-indeterminate-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: 32px;\n  height: 16px;\n  background-color: #7f8c8d;\n  background-color: var(--ag-toggle-button-off-background-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\n  border-radius: 8px;\n  position: relative;\n  -webkit-box-flex: 0;\n          flex: none;\n  border: 1px solid;\n  border-color: #7f8c8d;\n  border-color: var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper input {\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper:focus-within {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-checked {\n  background-color: #0091ea;\n  background-color: var(--ag-toggle-button-on-background-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\n  border-color: #0091ea;\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper::before {\n  content: \" \";\n  position: absolute;\n  top: -1px;\n  left: -1px;\n  display: block;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  height: 16px;\n  width: 16px;\n  background-color: white;\n  background-color: var(--ag-toggle-button-switch-background-color, var(--ag-background-color, white));\n  border-radius: 8px;\n  -webkit-transition: left 100ms;\n  transition: left 100ms;\n  border: 1px solid;\n  border-color: #7f8c8d;\n  border-color: var(--ag-toggle-button-switch-border-color, var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #7f8c8d)));\n}\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-checked::before {\n  left: calc(100% - 16px );\n  border-color: #0091ea;\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\n}\n.ag-theme-balham .ag-radio-button-input-wrapper {\n  font-family: \"agGridBalham\";\n  font-size: 16px;\n  line-height: 16px;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  width: 16px;\n  height: 16px;\n  background-color: white;\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, white));\n  border-radius: 3px;\n  display: inline-block;\n  vertical-align: middle;\n  -webkit-box-flex: 0;\n          flex: none;\n  border-radius: 16px;\n}\n.ag-theme-balham .ag-radio-button-input-wrapper input, .ag-theme-balham .ag-radio-button-input-wrapper input {\n  -webkit-appearance: none;\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n}\n.ag-theme-balham .ag-radio-button-input-wrapper:focus-within, .ag-theme-balham .ag-radio-button-input-wrapper:active {\n  outline: none;\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n}\n.ag-theme-balham .ag-radio-button-input-wrapper.ag-disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-radio-button-input-wrapper::after {\n  content: \"\\\\f126\";\n  color: #7f8c8d;\n  color: var(--ag-checkbox-unchecked-color, #7f8c8d);\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-balham .ag-radio-button-input-wrapper.ag-checked::after {\n  content: \"\\\\f127\";\n  color: #0091ea;\n  color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n}\n.ag-theme-balham input[class^=ag-][type=range] {\n  -webkit-appearance: none;\n  width: 100%;\n  height: 100%;\n  background: none;\n  overflow: visible;\n}\n.ag-theme-balham input[class^=ag-][type=range]::-webkit-slider-runnable-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #bdc3c7;\n  background-color: var(--ag-border-color, #bdc3c7);\n  border-radius: 2px;\n  border-radius: 3px;\n}\n.ag-theme-balham input[class^=ag-][type=range]::-moz-range-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #bdc3c7;\n  background-color: var(--ag-border-color, #bdc3c7);\n  border-radius: 2px;\n  border-radius: 3px;\n}\n.ag-theme-balham input[class^=ag-][type=range]::-ms-track {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 3px;\n  background-color: #bdc3c7;\n  background-color: var(--ag-border-color, #bdc3c7);\n  border-radius: 2px;\n  border-radius: 3px;\n  color: transparent;\n  width: calc(100% - 2px);\n}\n.ag-theme-balham input[class^=ag-][type=range]::-webkit-slider-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  border: 1px solid;\n  border-color: #7f8c8d;\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\n  border-radius: 16px;\n  -webkit-transform: translateY(-6.5px);\n          transform: translateY(-6.5px);\n}\n.ag-theme-balham input[class^=ag-][type=range]::-ms-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  border: 1px solid;\n  border-color: #7f8c8d;\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\n  border-radius: 16px;\n}\n.ag-theme-balham input[class^=ag-][type=range]::-moz-ag-range-thumb {\n  margin: 0;\n  padding: 0;\n  -webkit-appearance: none;\n  width: 16px;\n  height: 16px;\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  border: 1px solid;\n  border-color: #7f8c8d;\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\n  border-radius: 16px;\n}\n.ag-theme-balham input[class^=ag-][type=range]:focus {\n  outline: none;\n}\n.ag-theme-balham input[class^=ag-][type=range]:focus::-webkit-slider-thumb {\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\n          box-shadow: 0 0 2px 1px #719ECE;\n  border-color: #0091ea;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham input[class^=ag-][type=range]:focus::-ms-thumb {\n  box-shadow: 0 0 2px 1px #719ECE;\n  border-color: #0091ea;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\n  box-shadow: 0 0 2px 1px #719ECE;\n  border-color: #0091ea;\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\n}\n.ag-theme-balham input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\n  background-color: #719ECE;\n  background-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham input[class^=ag-][type=range]:active::-moz-ag-range-track {\n  background-color: #719ECE;\n  background-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham input[class^=ag-][type=range]:active::-ms-track {\n  background-color: #719ECE;\n  background-color: var(--ag-input-focus-border-color, #719ECE);\n}\n.ag-theme-balham input[class^=ag-][type=range]:disabled {\n  opacity: 0.5;\n}\n.ag-theme-balham .ag-filter-toolpanel-header,\n.ag-theme-balham .ag-filter-toolpanel-search,\n.ag-theme-balham .ag-status-bar,\n.ag-theme-balham .ag-header-row,\n.ag-theme-balham .ag-multi-filter-group-title-bar {\n  font-weight: 600;\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\n}\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]),\n.ag-theme-balham .ag-ltr input[class^=ag-][type=text],\n.ag-theme-balham .ag-ltr input[class^=ag-][type=number],\n.ag-theme-balham .ag-ltr input[class^=ag-][type=tel],\n.ag-theme-balham .ag-ltr input[class^=ag-][type=date],\n.ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local],\n.ag-theme-balham .ag-ltr textarea[class^=ag-] {\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]),\n.ag-theme-balham .ag-rtl input[class^=ag-][type=text],\n.ag-theme-balham .ag-rtl input[class^=ag-][type=number],\n.ag-theme-balham .ag-rtl input[class^=ag-][type=tel],\n.ag-theme-balham .ag-rtl input[class^=ag-][type=date],\n.ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local],\n.ag-theme-balham .ag-rtl textarea[class^=ag-] {\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar {\n  font-weight: 600;\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n}\n.ag-theme-balham .ag-dnd-ghost {\n  font-weight: 600;\n}\n.ag-theme-balham .ag-tab {\n  border: 1px solid transparent;\n  padding: 4px 8px;\n  margin: 4px;\n  margin-bottom: -1px;\n}\n.ag-theme-balham .ag-tab-selected {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  border-bottom-color: transparent;\n}\n.ag-theme-balham .ag-tabs-header {\n  border-bottom: 1px solid;\n  border-bottom-color: #bdc3c7;\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\n}\n.ag-theme-balham .ag-column-drop-cell {\n  height: 24px;\n}\n.ag-theme-balham .ag-column-drop-vertical-title {\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n}\n.ag-theme-balham .ag-column-drop-vertical-cell {\n  margin-left: 8px;\n  margin-right: 8px;\n}\n.ag-theme-balham .ag-column-drop-vertical-cell-text {\n  margin-left: 8px;\n}\n.ag-theme-balham .ag-column-drop-vertical-icon {\n  color: rgba(0, 0, 0, 0.54);\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\n}\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message {\n  padding-left: 24px;\n  padding-right: 4px;\n}\n\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message {\n  padding-right: 24px;\n  padding-left: 4px;\n}\n\n.ag-theme-balham .ag-column-drop-horizontal {\n  height: 32px;\n}\n.ag-theme-balham .ag-column-drop-empty {\n  color: rgba(0, 0, 0, 0.38);\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\n}\n.ag-theme-balham .ag-column-drop-horizontal-cell-text {\n  margin-left: 8px;\n}\n.ag-theme-balham .ag-column-drop-vertical {\n  padding-top: 8px;\n}\n.ag-theme-balham .ag-menu-header {\n  background-color: #f5f7f7;\n  background-color: var(--ag-header-background-color, #f5f7f7);\n}\n.ag-theme-balham .ag-overlay-loading-center {\n  background-color: white;\n  background-color: var(--ag-background-color, white);\n  border: 1px solid;\n  border-color: #bdc3c7;\n  border-color: var(--ag-border-color, #bdc3c7);\n  color: #000;\n  color: var(--ag-foreground-color, #000);\n  padding: 16px;\n}\n.ag-theme-balham .ag-tooltip {\n  border: none;\n  background-color: #cbd0d3;\n}\n.ag-theme-balham .ag-panel-title-bar-button-icon {\n  font-size: 20px;\n}\n.ag-theme-balham .ag-chart-data-section,\n.ag-theme-balham .ag-chart-format-section {\n  padding-bottom: 2px;\n}\n.ag-theme-balham .ag-group-toolbar {\n  background-color: rgba(226, 233, 235, 0.5);\n  background-color: var(--ag-subheader-toolbar-background-color, rgba(226, 233, 235, 0.5));\n}\n.ag-theme-balham .ag-chart-tab {\n  padding-top: 2px;\n}\n.ag-theme-balham .ag-charts-format-sub-level-group-item {\n  margin-bottom: 6px;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/ag-grid-community/dist/styles/ag-theme-balham.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,mCAAmC;EACnC,WAAW;EACX,uCAAuC;EACvC,gIAAgI;EAChI,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,2BAA2B;EAC3B,2DAAmoQ;EACnoQ,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;AACpC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,mDAAmD;AACrD;AACA;EACE,8BAA8B;UACtB,sBAAsB;EAC9B,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;UACX,UAAU;EAClB,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,SAAS;EACT,uBAAuB;EACvB,mDAAmD;AACrD;AACA;;EAEE,uBAAuB;EACvB,mDAAmD;AACrD;AACA;;;;;;;EAOE,kBAAkB;EAClB,oBAAoB;EACpB,cAAc;EACd,iBAAiB;EACjB,mBAAmB;EACnB,qBAAqB;EACrB,mDAAmD;AACrD;AACA;;;;;;;EAOE,0BAA0B;EAC1B,+DAA+D;EAC/D,yBAAyB;EACzB,oEAAoE;EACpE,sCAAsC;EACtC,6EAA6E;AAC/E;AACA;;;;;;;EAOE,aAAa;EACb,uCAAuC;UAC/B,+BAA+B;EACvC,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;;;;;;;EAOE,iBAAiB;EACjB,mBAAmB;EACnB,qBAAqB;EACrB,oFAAoF;AACtF;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,wBAAwB;EACxB,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,uCAAuC;UAC/B,+BAA+B;AACzC;AACA;EACE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,yBAAyB;EACzB,oDAAoD;AACtD;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,sBAAsB;EACtB,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,wBAAwB;UAChB,gBAAgB;AAC1B;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,wBAAwB;EACxB,4BAA4B;EAC5B,sFAAsF;AACxF;AACA;EACE,eAAe;EACf,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,oDAAoD;AACtD;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,kEAAkE;AACpE;AACA;;;;EAIE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,8CAA8C;EAC9C,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;EAC3B,mBAAmB;UACX,UAAU;AACpB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,eAAe;EACf,mBAAmB;UACX,UAAU;EAClB,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,yBAAyB;EACzB,+DAA+D;EAC/D,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,uBAAuB;EACvB,mDAAmD;AACrD;AACA;EACE,QAAQ;EACR,UAAU;EACV,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,qCAAqC;EACrC,2EAA2E;AAC7E;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,kBAAkB;AACpB;AACA;EACE,uCAAuC;UAC/B,+BAA+B;AACzC;AACA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,gCAAgC;EAChC,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,wGAAwG;EACxG,0EAA0E;AAC5E;AACA;EACE,0GAA0G;EAC1G,wEAAwE;AAC1E;AACA;EACE,mBAAmB;EACnB,YAAY;EACZ,WAAW;EACX,uBAAuB;EACvB,iBAAiB;EACjB,mDAAmD;UAC3C,2CAA2C;AACrD;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,oCAAoC;EACpC,mDAAmD;UAC3C,2CAA2C;AACrD;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;EACZ,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;EACjB,qBAAqB;EACrB,+EAA+E;EAC/E,0BAA0B;EAC1B,gEAAgE;EAChE,uBAAuB;EACvB,iBAAiB;EACjB,SAAS;EACT,cAAc;EACd,kCAAkC;UAC1B,0BAA0B;AACpC;AACA;EACE,iBAAiB;EACjB,WAAW;EACX,uCAAuC;AACzC;AACA;EACE,mDAAmD;UAC3C,2CAA2C;AACrD;AACA;EACE,YAAY;EACZ,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;AAC/C;AACA;EACE,uBAAuB;EACvB,mDAAmD;AACrD;AACA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,0BAA0B;EAC1B,mGAAmG;EACnG,YAAY;EACZ,iBAAiB;EACjB,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,WAAW;EACX,uCAAuC;EACvC,YAAY;EACZ,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,kBAAkB;EAClB,8BAA8B;EAC9B,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;EACE,8BAA8B;EAC9B,sBAAsB;AACxB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,0BAA0B;EAC1B,+DAA+D;EAC/D,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;AAC/C;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,qDAAqD;AACvD;AACA;EACE,cAAc;EACd,uDAAuD;AACzD;AACA;EACE,6BAA6B;EAC7B,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,uCAAuC;EACvC,+BAA+B;AACjC;AACA;EACE,yCAAyC;EACzC,kGAAkG;EAClG,yCAAyC;EACzC,iCAAiC;AACnC;AACA;EACE,oDAAoD;EACpD,6GAA6G;AAC/G;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,oCAAoC;EACpC,8GAA8G;AAChH;AACA;EACE,YAAY;EACZ,uBAAuB;EACvB,mDAAmD;EACnD,WAAW;EACX,6DAA6D;EAC7D,iBAAiB;EACjB,qBAAqB;EACrB,iDAAiD;EACjD,0BAA0B;AAC5B;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,uBAAuB;EACvB,WAAW;EACX,yBAAyB;EACzB,gGAAgG;EAChG,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,MAAM;AACR;AACA;EACE,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,6DAA6D;AAC/D;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,yBAAyB;EACzB,oDAAoD;AACtD;AACA;EACE,yBAAyB;EACzB,uDAAuD;AACzD;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,6BAA6B;EAC7B,mDAAmD;EACnD,kBAAkB;EAClB,mBAAmB;EACnB,4CAA4C;AAC9C;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;EACnE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,aAAa;EACb,uBAAuB;EACvB,mDAAmD;AACrD;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2CAA2C;EAC3C,qFAAqF;AACvF;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,aAAa;EACb,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,4BAA4B;UACpB,oBAAoB;EAC5B,kCAAkC;UAC1B,0BAA0B;EAClC,2CAA2C;UACnC,mCAAmC;EAC3C,yCAAyC;UACjC,iCAAiC;AAC3C;AACA;EACE;IACE,+BAA+B;YACvB,uBAAuB;EACjC;EACA;IACE,iCAAiC;YACzB,yBAAyB;EACnC;AACF;AACA;EACE;IACE,+BAA+B;YACvB,uBAAuB;EACjC;EACA;IACE,iCAAiC;YACzB,yBAAyB;EACnC;AACF;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,8BAA8B;AAChC;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,yBAAyB;EACzB,kEAAkE;AACpE;AACA;;EAEE,wCAAwC;EACxC,oFAAoF;AACtF;AACA;;EAEE,kDAAkD;EAClD,oGAAoG;AACtG;AACA;;EAEE,mDAAmD;EACnD,8GAA8G;AAChH;AACA;;EAEE,wCAAwC;EACxC,kIAAkI;AACpI;AACA;;EAEE,yCAAyC;EACzC,uFAAuF;AACzF;AACA;;EAEE,0CAA0C;EAC1C,wFAAwF;AAC1F;AACA;;EAEE,2CAA2C;EAC3C,yFAAyF;AAC3F;AACA;EACE,yBAAyB;EACzB,gGAAgG;AAClG;AACA;EACE,2BAA2B;EAC3B,kGAAkG;AACpG;AACA;EACE,4BAA4B;EAC5B,mGAAmG;AACrG;AACA;EACE,0BAA0B;EAC1B,iGAAiG;AACnG;AACA;;;;;;;;;EASE,iBAAiB;EACjB,qBAAqB;EACrB,4FAA4F;EAC5F,gBAAgB;AAClB;AACA;;EAEE,sBAAsB;EACtB,yBAAyB;EACzB,gGAAgG;AAClG;AACA;EACE,wBAAwB;EACxB,2BAA2B;EAC3B,kGAAkG;AACpG;;AAEA;EACE,uBAAuB;EACvB,0BAA0B;EAC1B,iGAAiG;AACnG;;AAEA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B,mGAAmG;AACrG;AACA;EACE,uBAAuB;EACvB,0BAA0B;EAC1B,iGAAiG;AACnG;;AAEA;EACE,wBAAwB;EACxB,2BAA2B;EAC3B,kGAAkG;AACpG;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,gGAAgG;AAClG;AACA;EACE,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gCAAgC;EAChC,oEAAoE;AACtE;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;EACZ,UAAU;AACZ;AACA;EACE,eAAe;EACf,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;EACX,cAAc;EACd,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,yBAAyB;EACzB,oDAAoD;AACtD;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,kCAAkC;EAClC,oBAAoB;EACpB,aAAa;EACb,mBAAmB;UACX,UAAU;EAClB,yBAAyB;UACjB,mBAAmB;EAC3B,wBAAwB;UAChB,uBAAuB;EAC/B,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,4BAA4B;EAC5B,2IAA2I;AAC7I;AACA;EACE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;AACV;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,qBAAqB;EACrB,yBAAyB;EACzB,mFAAmF;AACrF;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,iBAAiB;EACjB,WAAW;EACX,kBAAkB;EAClB,WAAW;EACX,uCAAuC;EACvC,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,uBAAuB;EACvB,oBAAoB;EACpB,uBAAuB;EACvB,SAAS;EACT,gBAAgB;EAChB,6BAA6B;EAC7B,6BAA6B;EAC7B,4BAA4B;EAC5B,YAAY;EACZ,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,wBAAwB;UAChB,gBAAgB;AAC1B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,yBAAyB;EACzB,iDAAiD;EACjD,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;;EAEE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;;EAEE,iCAAiC;EACjC,kBAAkB;EAClB,kBAAkB;AACpB;AACA;;EAEE,2BAA2B;EAC3B,0IAA0I;AAC5I;AACA;;EAEE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;;EAEE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;;EAEE,gCAAgC;EAChC,iBAAiB;EACjB,iBAAiB;AACnB;AACA;;EAEE,0BAA0B;EAC1B,yIAAyI;AAC3I;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;UACX,YAAY;EACpB,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,mFAAmF;AACrF;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,6BAA6B;AAC/B;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;EACpD,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;EAChB,YAAY;EACZ,oBAAoB;EACpB,aAAa;AACf;AACA;EACE,oBAAoB;EACpB,aAAa;EACb,yBAAyB;UACjB,mBAAmB;AAC7B;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,YAAY;EACZ,yBAAyB;UACjB,mBAAmB;EAC3B,cAAc;EACd,wBAAwB;EACxB,4BAA4B;EAC5B,sFAAsF;AACxF;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,sFAAsF;EACtF,qBAAqB;EACrB,yBAAyB;EACzB,mFAAmF;AACrF;AACA;;EAEE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,yBAAyB;EACzB,gGAAgG;AAClG;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,4DAA4D;EAC5D,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,0BAA0B;EAC1B,mGAAmG;EACnG,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;;EAEE,uBAAuB;EACvB,kGAAkG;AACpG;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;;EAEE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;AACnD;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,UAAU;EACV,WAAW;EACX,oBAAoB;EACpB,0CAA0C;EAC1C,mFAAmF;AACrF;AACA;EACE,QAAQ;AACV;;AAEA;EACE,OAAO;AACT;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;EACpB,wBAAwB;KACrB,qBAAqB;UAChB,gBAAgB;EACxB,uBAAuB;EACvB,YAAY;EACZ,YAAY;EACZ,UAAU;EACV,WAAW;AACb;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;EACX,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,0BAA0B;EAC1B,gEAAgE;EAChE,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,+DAA+D;AACjE;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,iDAAiD;EACjD,0BAA0B;EAC1B,+DAA+D;EAC/D,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,uCAAuC;AACzC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,oDAAoD;EACpD,mBAAmB;EACnB,YAAY;EACZ,cAAc;EACd,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,aAAa;EACb,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,mEAAmE;EACnE,0BAA0B;EAC1B,gEAAgE;EAChE,YAAY;EACZ,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;;AAEA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;;AAEA;EACE,aAAa;EACb,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,0BAA0B;EAC1B,+DAA+D;AACjE;AACA;EACE,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,4BAA4B;EAC5B,sFAAsF;AACxF;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB,0BAA0B;EAC1B,+DAA+D;EAC/D,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,iBAAiB;EACjB,6CAA6C;EAC7C,kBAAkB;EAClB,wBAAwB;UAChB,gBAAgB;EACxB,YAAY;EACZ,iBAAiB;EACjB,6CAA6C;EAC7C,YAAY;EACZ,UAAU;AACZ;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,kEAAkE;AACpE;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,6BAA6B;EAC7B,oBAAoB;EACpB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,uBAAuB;EACvB,wBAAwB;EACxB,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;AAC3D;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,6CAA6C;AAC/C;AACA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,aAAa;EACb,eAAe;EACf,kBAAkB;EAClB,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,UAAU;AACZ;AACA;EACE,iBAAiB;EACjB,qBAAqB;EACrB,+EAA+E;EAC/E,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,gIAAgI;AAClI;AACA;EACE,gBAAgB;EAChB,4CAA4C;EAC5C,UAAU;EACV,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,mIAAmI;AACrI;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,qBAAqB;EACrB,yBAAyB;EACzB,mFAAmF;AACrF;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX,yBAAyB;EACzB,gGAAgG;AAClG;AACA;EACE,MAAM;AACR;AACA;EACE,SAAS;AACX;AACA;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;;EAEE,oBAAoB;EACpB,aAAa;EACb,SAAS;AACX;AACA;EACE,yBAAyB;EACzB,mEAAmE;AACrE;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,kDAAkD;AACpD;;AAEA;EACE,uBAAuB;EACvB,2BAA2B;EAC3B,mDAAmD;AACrD;;AAEA;EACE,mBAAmB;UACX,YAAY;EACpB,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,WAAW;EACX,YAAY;EACZ,uBAAuB;EACvB,wFAAwF;EACxF,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,mBAAmB;UACX,UAAU;AACpB;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,uCAAuC;UAC/B,+BAA+B;AACzC;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,kDAAkD;EAClD,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,+EAA+E;EAC/E,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,0FAA0F;EAC1F,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,8BAA8B;UACtB,sBAAsB;EAC9B,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,2GAA2G;EAC3G,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;UACX,UAAU;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,mGAAmG;AACrG;AACA;EACE,UAAU;EACV,YAAY;EACZ,WAAW;AACb;AACA;EACE,aAAa;EACb,uCAAuC;UAC/B,+BAA+B;AACzC;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,uIAAuI;EACvI,qBAAqB;EACrB,+HAA+H;AACjI;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,cAAc;EACd,8BAA8B;UACtB,sBAAsB;EAC9B,YAAY;EACZ,WAAW;EACX,uBAAuB;EACvB,oGAAoG;EACpG,kBAAkB;EAClB,8BAA8B;EAC9B,sBAAsB;EACtB,iBAAiB;EACjB,qBAAqB;EACrB,gJAAgJ;AAClJ;AACA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,+HAA+H;AACjI;AACA;EACE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB,sCAAsC;EACtC,mCAAmC;EACnC,kCAAkC;EAClC,WAAW;EACX,YAAY;EACZ,uBAAuB;EACvB,wFAAwF;EACxF,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,mBAAmB;UACX,UAAU;EAClB,mBAAmB;AACrB;AACA;EACE,wBAAwB;EACxB,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,aAAa;EACb,uCAAuC;UAC/B,+BAA+B;AACzC;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,kDAAkD;EAClD,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,cAAc;EACd,+EAA+E;EAC/E,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,oBAAoB;AACtB;AACA;EACE,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,UAAU;EACV,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,iDAAiD;EACjD,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,uBAAuB;AACzB;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,uBAAuB;EACvB,mDAAmD;EACnD,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;EACzD,mBAAmB;EACnB,qCAAqC;UAC7B,6BAA6B;AACvC;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,uBAAuB;EACvB,mDAAmD;EACnD,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;EACzD,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,YAAY;EACZ,uBAAuB;EACvB,mDAAmD;EACnD,iBAAiB;EACjB,qBAAqB;EACrB,yDAAyD;EACzD,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,uCAAuC;UAC/B,+BAA+B;EACvC,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,+BAA+B;EAC/B,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,+BAA+B;EAC/B,qBAAqB;EACrB,sFAAsF;AACxF;AACA;EACE,yBAAyB;EACzB,6DAA6D;AAC/D;AACA;EACE,yBAAyB;EACzB,6DAA6D;AAC/D;AACA;EACE,yBAAyB;EACzB,6DAA6D;AAC/D;AACA;EACE,YAAY;AACd;AACA;;;;;EAKE,gBAAgB;EAChB,0BAA0B;EAC1B,mGAAmG;AACrG;AACA;;;;;;;EAOE,iBAAiB;AACnB;;AAEA;;;;;;;EAOE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,0BAA0B;EAC1B,+DAA+D;AACjE;AACA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,gBAAgB;EAChB,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,qBAAqB;EACrB,6CAA6C;EAC7C,gCAAgC;AAClC;AACA;EACE,wBAAwB;EACxB,4BAA4B;EAC5B,oDAAoD;AACtD;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,uCAAuC;AACzC;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0BAA0B;EAC1B,gEAAgE;AAClE;AACA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;AACnB;;AAEA;EACE,YAAY;AACd;AACA;EACE,0BAA0B;EAC1B,+DAA+D;AACjE;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,yBAAyB;EACzB,4DAA4D;AAC9D;AACA;EACE,uBAAuB;EACvB,mDAAmD;EACnD,iBAAiB;EACjB,qBAAqB;EACrB,6CAA6C;EAC7C,WAAW;EACX,uCAAuC;EACvC,aAAa;AACf;AACA;EACE,YAAY;EACZ,yBAAyB;AAC3B;AACA;EACE,eAAe;AACjB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,0CAA0C;EAC1C,wFAAwF;AAC1F;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB\",\"sourcesContent\":[\".ag-theme-balham {\\n  -webkit-font-smoothing: antialiased;\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n  font-family: -apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \\\"Helvetica Neue\\\", sans-serif;\\n  font-size: 12px;\\n  line-height: normal;\\n}\\n@font-face {\\n  font-family: \\\"agGridBalham\\\";\\n  src: url(\\\"data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABgoAAsAAAAALEgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAmMAAAR2YfRkQU9TLzIAAANsAAAAQQAAAFZWUFLwY21hcAAAA7AAAAIMAAAFnGSNxkJnbHlmAAAFvAAADpIAABo4y6JNTGhlYWQAABRQAAAANAAAADZ2zcSBaGhlYQAAFIQAAAAaAAAAJAfQBDFobXR4AAAUoAAAABoAAAEgs7L//WxvY2EAABS8AAAAawAAAJJHu0GKbWF4cAAAFSgAAAAfAAAAIAFeAKpuYW1lAAAVSAAAATUAAAJG0OP3eXBvc3QAABaAAAABqAAAAm9qOX49eJx9lM1SE1EQhc8wAYFEoDQqRkRQ/IvKMD8Zk/CTkJBoWS5cWJYLN1hWWVZRrngOH8AnYOkT+AAufAIfwIVL15ZfdwaDLMitTO50n+4+fW7fKJA0qw3taGJv+Pyl5g72Dz+qppJGH/Of3AcHH97va/r4DV/Jf6cVlCqa00291qG+BXPBYXA0UQ1r4avwXfg5/BL+UghqReugy1TcUKyEZ6RUmRrKNaEpbDH7x2qCDnm23HpBVzXpnp76WqRmTEzfM9b1THe0QJ6u5+loG1TKspwdnkPWXc2fgch1j/wZbDaxllBkmf2WqprRHiw7MGkT38R/kZo71I6I6uLrwm4SS4t9W5fgZBElV/Wp3ugRfuvUsmRFTMo31q6/R/5WZh2jWuRpUMty12FwbG9QNSHiIdkzUFuFonVUL+NNwUTEtl1Biy6DTOCWapWd9ZnAtaI1MC/01qvuFjEd13SkQB32Y3vX8+V0ftLaJtcQ7AM4jK12PvepFWngXS2COdAnHemrvuuHfuq3/uicLlMn8R62yb5zpjbTKHga3cPb+me1XqeYgdOo/xEzdN5wdWJ8/UJDq1amM1MnZR9hTR0/C0/D92CTcx4lakRe1056krXJewz6fDGdTVbFle4zBfM+wQOfhRoTlui6ZxzNYY7WS2S03YhfzXVrku+an5upazdswd/sLth51zj/ZX4jOsxcpyd4V7BYprHlhkflsLcc6/hzWI+rGaslWGU+0TZjA78dPSrdop8Rk0S3/WYMfL7WYJAVN7XKGRr7dnFiVxwXe1TAP0FU3PDUtbOZ7sLN5mP4F/iHapMAeJxjYGSqZ5zAwMrAwFTFtIeBgaEHQjM+YDBkZAKKMrAyM2AFAWmuKQwHGHQ/GjG/AHKjmN8wsABpRpAcANz2CuAAAAB4nLXUZ1IbQRCG4VeBKIEDOeNEVkAgssjhh0+BM4UDhTPn8Nl8jz4B/ma7fQBc5al61Duzo9FMrb4F2oCCLEkR8p3kdEUur9FcNl6gOxsv8lv9Mp3kdV3hgiturHF7q9EK51xybbms97flNLvMODOsqbdHjRab7NPglDrbrLLDFge62+SIZTZY4ZAT1tnlmDN9P+2iqD2206Hf7dJOSlqxh17u84A++hlgkCGGGWGUMf3WBJNMMa15j3jME57yTPNmmGWOeRZ0XWJRpyppzwtUtcl27tb27jg/tVprc79xWt/WibcO1po67MbK4cn67vHZPyz2H1o5fRR+Re856Ym6dNrzUJMXoSUvw6a8CvvyOjTkTTiVt6Eu78K2XIRVuQw78j5syYdwIB9D+ld9Ck25CkdyHZblc9iQL2FFvoZD+RZO5HtYlx9hV36GY7kJeoCWcykvlnekWnApX1Z0KWPW5lL2rN2Raocj1U5Hql2OVLtdyqSVHKmWXXqS1uNItdeR6j2n7GBBKcKCsoE9dEoW1ueUMazfKW3YgFPusEGnBGJDTlnEhp1SiY045RMbdUoqNuaUWWzcKb3YhFOOsUmnRGNTLjvvtFPKsaC8Y0HJx4LeAVjQ2wAL2XlnHKnOOlKdc6Q670h1wZHqosvWWXLZ3iqOdL/q0vvVai6bU3cpY7bssjUbjuofQy2jW3ic7VlrkBzVde5ze2d6et7d04+Z2Z33a3deu/OWZnd79EDL7gr0YldCBqQoEnKwVhgpwsJCC7ZwBBI4JlIBdkXxq8qmoCouJ65QlC3ZKeKCpYIWhUAShCs/sBML4mAcq1LljaaVc3t6VlqhAPa/VLLT3ff07XvPPfecc8/57l2GZfCP/Q77HUZlSsx2hoEwUUXWTbieVJFkiE8jjaQlbvWAVZbUMKg9KQ0aIluETDoRt1oStYSsqObPyhk/uVKryLFMtVFvYNt6o57O0F8txgr9a7LQ0wPZNf36T/WfXnmDkP7z1DIAtodUExCGcKJKHA6kp+5a8V/wZGsBfI5o2K04vHa/J5p2qwst/Rj0cLJ7pVu2WsORITEEcJB95nqsIWS8raqnbv/6+j/6VJe1OQzLLrRYj+hUFKdP7FuluPwht+ptzToG5aTkHHL6PEKfPylFE6upqsDQ15fZLzMRhvGpXKahcjHBKDJCzCgaMcEoVGFuPH/yZH4cXEtL/dfm+xvXr1/87jLHIy+yEmPDF3OcBLxxtPDaa4WjGjl1NP/aa/mj+jIqliHbHnYPIzEDTA3bx6k5JGqaMrVDldqBK9N3iX4x7FKnX3zIFzkj/0wDLu7eMl2uVMrTW17pErunJ8ayuVx2bOJZSkAWqelvFb797cK3jCe7Z0lzg9CWNjco/dfdHvhkFmX2s36kOMaBOq0ICXo3KnLi3OzsuwcOvHPvveQu/ZNkvP38woLR/PJlfFxg32F8TIZBNgMQL0JNqGpQiZXDIAuSG9hY3E2pMK3T6NcicID6A7ba/lzplqGhW0qkUw62Z0PlEF7kIaPs17e9UvkKfPpKi5LRg/1mqBRqH8YHXuQL+PgVtix/Be65Vqbcx5eJjeG6+CiJVrZ/TEY+Why9OG64y2X8Q1kuGLIw0B0+EVsUyXI9SapXMaeDHblGCvbC1V9pOXatBKY972N3MRb0WD/D8MCpPLCNCHRig6SU6zXqiOTf9O3NnXobtLm5l77rcAQ8SmlNSfEE4AX4xjB+0P8GRufmNJcr3JsOxEuleCDVF6bse4wxCqzb9BkPw6QSQsVn3kDv51qtH2ja6VarfVbT3iLl9vyVe3Edk5OsBeVEGanfkxP6+/mf/SwPFzulOZebcT35mAQzREfpKnB4UaksRkEkFKyp46c0jm7YXI5hPfnzi7mJXHYiT4vcRPpSul43HnrPiuxEDp7QP5mqzeI3qBgNcvpZfJByPa3/mDaFkXRddxIxN55r1VJX5H6RvEjXCixZtVctRxK9eplZGebyJfZu9heMF2cSYsaZzzF/hr3p8rd0pEcvqNfYRA2EmGpVcTK+lOQmON2eWlUjFTpZyRpPZ4pAp4tuU6axvayo1K3iWF2r1sthtkJti6mhSKgOymFidur0iYCihklDxYBT0qgCJdkDboI6HWSxu8Lu5XbfY9HXZRqNDKlnGmPf01fBMQKsxXue6Nt5MSx5Vclrt7j8MZ+a9Nldth6b5FH7nGpUsRKb2/4XYlwJCS4v77ZxNo9TUByiV+oVxIgi+gWb3cX1WDxh0eqwiKLDJdpHclnCEpvDZiE1wtk9TiupsGAXbeTnts8csZBlmUuvGsIcO3fpOHvfGwFeaD/+j85I2GcTe6MpOV5LS30ZkffYXbJULUdzit9v97g9gQHF40iJDrcjIDhV0S3YrJwvVkz5XLJf9todHtHn4h08y3EWzhf64x+c5h1WO+eyW/jXeY+Nd/PzHt7uFamp/992/3tttzR3m5igQnxm7oabOrkb5joxbYmdJz7Sxg2avKv1SlmJQItQkymy5AHEaGjXeHoQOOoE6Vr1w01T2LqW5yySR/B5R1bY3VaXzeOT10057bwoiT23bunhBaz5MKXOfXaP2+VQvD7/Jz7hES0Wr1MI7f2sRxbdPG998JDVZhU8IvN/ZI5L8gqmPo4HcgKTif4+eMk/0eziBS82sRi55Wm2iZllOXMTM81sw/b1RgXhdwdF08juhkwHOzcMlIZhXnWDBwywTV+tRkKqNkCDFhQJ9ql31juXMlZtpdwCY1Un4hwktt8l3v7M55MuQewNRtOj+Ym1z26cumFjyevjHQ6vN98ayWtDN6mQ3rh+x523K1Jfc2Jk13AeHh5aq0L4wBNfW5toTgzf2czp88HcjbnBTD6YHc8OZsivSiy77pFb++LhbF8sgIxToiSXmpt7i5JfDsujudH8U5Fba2SrNirJYau9Lze8a3iiqf9ddGuNjN89ysbjWDMy0TzfP4gcg/nMYA6LK7n+aTbB9DJFZhg1ZexQTBVZr1YP7jVUN+lqp6MRrtxxlSJgUFOpJhD3hIAGQUQ90F7Ux9q9n/r0/q0byqYuWn89Azd98e6IqYuNn09QBYw3dzSbOw7sWL58xz9kx6fGs8aDTSxOfl0y4fasaG4xJz69q6dFRmfWdCYeCt67ns42shxZdPj8PWQpkyzpFNR1TGxTwP0Yokgw5xkCrlE3J5sehZhFMvdccqPWcQ1cOgUY8K9q+G2nAQhw/vqqwADZ1z5rMyh0kc5XciEzFBoeCvLOP3xsen/TYQuURsNDyTUtgQ+WRkNDqSODU9iiWQrygikPWTD8me96tEVICOQ3plfrv6ctOraiO+Ei4+zMgby3iM98OJte3DElDGw8yDCNRK2iXnWnPuJ9wcByVxDd9V8WZjt/LbPUzBLFsS3Z59ZwzY0yK5k1Rgz6rXa8PpTGgpg9dU35O+5tT83OwkH9JViuH1uknEhd1Cfhud9tO9v+d03TWubNMB+wYQftUpRMcibi/WdN66Le9n+iBbt+uJ/tRc0J1O4IaKnpWbWRwdlieMy04Jh+sHVcPw/p+fnSLLyth2dL5HHttHYc0pDWz8+X0QLlLq99iKOzzBbDp1GtHCoYwxvVar0FtXSmhH7uBnTpMDSwRqOhzxc3WmEljXZF8wPtLeEHrC4Z697gkiB+3GvEeu32vpnQLf3JKmdVAqKTFVPePo/bm8gdXp6NzBT8ITW7K3tzaM+g2qfmwjbgUgHZIdIuuQaokggOVky4+yS7Y3UxnSVreKeld9NAOrQn5HO5RtOJsaDIJlJiUs7sHColc72qJ7qn+PBwMQJ8FLl+YXgoGuYdlsiugopcfW7P+mKoJhl9Yr7kHYXSep+364+Pso9+YI0w1KMoprfgbXgX3g3znUMaPVS7Zy4/By/k5/IQWFhozy8srEWabMNaXCnbFiJI4JUvowdswxKvuWcWrvhCm7QRWbpwtx2hzsClBgF3Eo1fsG+O7d+4H/7WLOfOs7T8aqcw90MF8mp3rw7oCd0fW2h/CaONeUOghbZvdW0fx/htjGcOZA4Lr/YYA/1JZ7z/eLMHi33wozfZsX2b9pt9n8V9XscHuwgKXbdzEALNx4pvnS8+thL+aiVSbw0+Bhseyp09m3sIzrTn4UyHphga+RxhDzIKRp8G02LWMlPIj7qaqhhul0kb3tXQiEpfOavphxh0qW9hK1qZQcTBg2KE20FATAJGp3pDNYK02kjDwh2bN+61O7Ppmyeev/WO1aMrCElF73505YbxG27j+VR607oz66azCZtt69jkU1Grdf3oqslqKQOH9F9WZgayCFHOrFrerx9NOvzBenMTr1XLsiJejrCfIdXS09vuvG3DslpKVlrLvjq1ZXLlznqL5LNf3DB98/pizpItbJ6Y3vh4rvDy6MTYbDzJWYIK3K8/5e1NpavN4VdIWNGPtk6sXD1QsGjsQP+INnzZvngGM8Pej97Xz4ygZoyDIuPwSE588KAgwZUVujmo1iGG4Euo1odBjtUoOBMkK9nndAcimyMBt3M2vjyOF1zslAtCIBAPBMChO4PJZLAFB7VgKsWGRMnvFkW3XxKxkT5pdnoOH4I/6ser/fVUAJ4LJmdnk0F9MpBajE+HDZmbKHEXIdXRCFhQY3E0QdIwg4uJ5tEIcGmcEnSs11CVioGhYOMJID0WPtQcbOx0N0NRCMsr1vwB5lBWkgvqkxge/8XHO23eU/X+sgBBm0rARp6w4VbALXpfhwdOIGLwOPsdvGNHcTQs62/3TTvvtFoCtdyQ6sDu5Eter8+tnHKzbK/+r1Yp46+KT2Iw52zi64z9qrwURe2vZMYM77yN2cHs/h9yU0xQjINVC01PEYQxndUgI9DhEp0jScVQRkpSK7WMlavUGllARVQwscoV6tEpa4KTK410Qq58WOKCQ+2XfvkeZhW+bQPMMVH4vj0/PZXns2P9B/j89HTeviJZDoah/TIcvh9gtlVdi5nuUAvOHKLtURfLsw/+aNmND35oKrvUftnKY/P3zgpeHAzuB4/BnL+n/8Yc4fNTOA7gdkvJhseWPfDDydqDv6mntrcOH47ThAdweBYeWPQJeu5Fzz/N008v9YIoVYf3mtPPuLG5oF/g4iMH9q2+4YbV+w6At0s9cnD3zubISHPn7veQGB5Ggr1AP+jvL22sLWlDiZHumurKov1W0lxzNmu0+bgiwnevc+r6seXWJ6eX9qTMrsUCFD9gwMdkpCIowGieYffp54+39INwrHW8NKuH4e3Z0vw8IorzxykaOE5hwPy8yYeeT7swEjO4z0Mcae77BEs3urP+9vO3lOJkPF7SvzfTPHeuOTOFrH4CSf0n9BQQkn0zw+fODc/AycXzeAs5aZzj0QMKtkd/34AyZDeFp0gw17YDemaGeCzfga1HOuVimxe6Z4IqttFP/CVu0VeRJ5AoPAyrFnkViESt7EMdnDaSnk9bjKV72Rm0ew7xJeOLI5BEtI6Zhm7GMLJiPvEhpgkTBDMZ7goGygBFO6qxtOk/Uzq0cW7zNCFJQv4Ulr1LLAalz71LvEU1pGz6/Z1JraAl7sr6Y5xNDmoF+MbAuhBWCYXA4GZRECJIR6JWpXfnMnYPdraQU/rcO8gQrOQUNN4l+n0IX7B9xGDk7PUW+5KTvchoMmrwUVhLOd+/Ffm0Iptv7y8N4wz/G4A9L1cAAHicY2BkYGAAYgWvvDnx/DZfGbiZXwAFojgf72uA0f/////D/IL5DVAlBwMTkGQAAHb/DvN4nGNgZGBgfsHAACL//wezGRlQgQcAdFMFCgAAeJxjYGBgYH6BDf//j8C41AwspgcAANyGMDUAAHicY2AAghkMFxieMTowRjEuYXzFpMEUxVTD1Md0g+kT8wWWdSxHWM1YV7DuYQtgO8EuwK7FXsL+iYOHw4hjD8cPTjFOA04/ziIuJq4YrgPcadxreIR4zHgSeEp42nhm8azglSEdAgCdlRu1AHicY2BkYGDwYJjHwMMAAkxAzAWEDAz/wXwGACBkAgkAeJx1jz9OwzAYxV9oWkSLEBISYsMTC1L6Z2Do2KHZO3RgcxsnbZXEkeNW6sYxOAHHYOQInIJD8BK+oUKqLTk///zeJwXALb4QoFkBrtuzWRe45O2PO6Q74ZD8KNzFAM/CPfoX4T7tTHjAZsEJQXhF84A34Qvc4F24Q/8hHJI/hbu4x7dwj/5HuI9lEAoP8BS86ix222Sm840uFibb59qdqlNeGldvbanG0ehUx6Y0TnuTqNVR1Yds4n2qUmcLNbelN3luVeXszqx9tPG+mg6HqfhobQtoZIjhsEXCP9fIseFZYAHDlz3vmq/nUuf8km2Hmt6ihMIYEUZn0zHTZdvQ8PwmbKxw5FnjwM6E1iPlPWXGsqEwbyc36Zzb0lTt245mTR9xdtOqMMWQO/2Xj5jipF9al2jJAAAAeJxtkQdv2zAQhf3Fku3YaeO6bbr3Hmrr7p3upj+DpmiZiEQKJOWRX18iLgIE6AE8vPdwvHu4a2201tFv/T/22KBNQkqHLj026TNgixOcZJshpxhxmjOcZYdznOcCF7nEZa5wlWtc5wY3ucVt7nCXe9znAQ95xGMynvCUZ4x5zgte8orXvOEt73jPBz7yic/s8oWvfOM7P/jJL36zx5/WQBSFU4UI2pqOcM4ufFt42ZHCSFWmciZcGMqZkvsTu8wOgcp3jgRtchWUq7QRQY2O5Mb8q9yStrQuq3UkrhtJUxnfl9YEJ2RQeSJtvUqls963pZ+n8WXjJFdepmoZDXQPczbuqWUt4qx8U61U5kvhZ+2IOlNdxvHpVDsfksLpOi2cbeokFoSkVNPQKbWJPrqlFbk2Ra8SS13pA5VUyjS96HvNjDVqYGzIRFnahcrTOjZQ7VqbtNZzG4YufrfZpAnBmsxOp9vHBZM6XcxC4sVc9X0Vu2S5XZjeGkZDIW5gFJxSx1fWa8zaIIIChyKgsRgWeCQlM/aZsIwnzqloqFkxZ8pBq/UXq/Gj5g==\\\") format(\\\"woff\\\");\\n  font-weight: normal;\\n  font-style: normal;\\n}\\n.ag-theme-balham .ag-icon {\\n  font-family: \\\"agGridBalham\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n}\\n.ag-theme-balham .ag-icon-aggregation::before {\\n  content: \\\"\\\\f101\\\";\\n}\\n.ag-theme-balham .ag-icon-arrows::before {\\n  content: \\\"\\\\f102\\\";\\n}\\n.ag-theme-balham .ag-icon-asc::before {\\n  content: \\\"\\\\f103\\\";\\n}\\n.ag-theme-balham .ag-icon-cancel::before {\\n  content: \\\"\\\\f104\\\";\\n}\\n.ag-theme-balham .ag-icon-chart::before {\\n  content: \\\"\\\\f105\\\";\\n}\\n.ag-theme-balham .ag-icon-color-picker::before {\\n  content: \\\"\\\\f109\\\";\\n}\\n.ag-theme-balham .ag-icon-columns::before {\\n  content: \\\"\\\\f10a\\\";\\n}\\n.ag-theme-balham .ag-icon-contracted::before {\\n  content: \\\"\\\\f10b\\\";\\n}\\n.ag-theme-balham .ag-icon-copy::before {\\n  content: \\\"\\\\f10c\\\";\\n}\\n.ag-theme-balham .ag-icon-cross::before {\\n  content: \\\"\\\\f10d\\\";\\n}\\n.ag-theme-balham .ag-icon-csv::before {\\n  content: \\\"\\\\f10e\\\";\\n}\\n.ag-theme-balham .ag-icon-desc::before {\\n  content: \\\"\\\\f10f\\\";\\n}\\n.ag-theme-balham .ag-icon-excel::before {\\n  content: \\\"\\\\f110\\\";\\n}\\n.ag-theme-balham .ag-icon-expanded::before {\\n  content: \\\"\\\\f111\\\";\\n}\\n.ag-theme-balham .ag-icon-eye-slash::before {\\n  content: \\\"\\\\f112\\\";\\n}\\n.ag-theme-balham .ag-icon-eye::before {\\n  content: \\\"\\\\f113\\\";\\n}\\n.ag-theme-balham .ag-icon-filter::before {\\n  content: \\\"\\\\f114\\\";\\n}\\n.ag-theme-balham .ag-icon-first::before {\\n  content: \\\"\\\\f115\\\";\\n}\\n.ag-theme-balham .ag-icon-grip::before {\\n  content: \\\"\\\\f116\\\";\\n}\\n.ag-theme-balham .ag-icon-group::before {\\n  content: \\\"\\\\f117\\\";\\n}\\n.ag-theme-balham .ag-icon-last::before {\\n  content: \\\"\\\\f118\\\";\\n}\\n.ag-theme-balham .ag-icon-left::before {\\n  content: \\\"\\\\f119\\\";\\n}\\n.ag-theme-balham .ag-icon-linked::before {\\n  content: \\\"\\\\f11a\\\";\\n}\\n.ag-theme-balham .ag-icon-loading::before {\\n  content: \\\"\\\\f11b\\\";\\n}\\n.ag-theme-balham .ag-icon-maximize::before {\\n  content: \\\"\\\\f11c\\\";\\n}\\n.ag-theme-balham .ag-icon-menu::before {\\n  content: \\\"\\\\f11d\\\";\\n}\\n.ag-theme-balham .ag-icon-minimize::before {\\n  content: \\\"\\\\f11e\\\";\\n}\\n.ag-theme-balham .ag-icon-next::before {\\n  content: \\\"\\\\f11f\\\";\\n}\\n.ag-theme-balham .ag-icon-none::before {\\n  content: \\\"\\\\f120\\\";\\n}\\n.ag-theme-balham .ag-icon-not-allowed::before {\\n  content: \\\"\\\\f121\\\";\\n}\\n.ag-theme-balham .ag-icon-paste::before {\\n  content: \\\"\\\\f122\\\";\\n}\\n.ag-theme-balham .ag-icon-pin::before {\\n  content: \\\"\\\\f123\\\";\\n}\\n.ag-theme-balham .ag-icon-pivot::before {\\n  content: \\\"\\\\f124\\\";\\n}\\n.ag-theme-balham .ag-icon-previous::before {\\n  content: \\\"\\\\f125\\\";\\n}\\n.ag-theme-balham .ag-icon-right::before {\\n  content: \\\"\\\\f128\\\";\\n}\\n.ag-theme-balham .ag-icon-save::before {\\n  content: \\\"\\\\f129\\\";\\n}\\n.ag-theme-balham .ag-icon-small-down::before {\\n  content: \\\"\\\\f12a\\\";\\n}\\n.ag-theme-balham .ag-icon-small-left::before {\\n  content: \\\"\\\\f12b\\\";\\n}\\n.ag-theme-balham .ag-icon-small-right::before {\\n  content: \\\"\\\\f12c\\\";\\n}\\n.ag-theme-balham .ag-icon-small-up::before {\\n  content: \\\"\\\\f12d\\\";\\n}\\n.ag-theme-balham .ag-icon-tick::before {\\n  content: \\\"\\\\f12e\\\";\\n}\\n.ag-theme-balham .ag-icon-tree-closed::before {\\n  content: \\\"\\\\f12f\\\";\\n}\\n.ag-theme-balham .ag-icon-tree-indeterminate::before {\\n  content: \\\"\\\\f130\\\";\\n}\\n.ag-theme-balham .ag-icon-tree-open::before {\\n  content: \\\"\\\\f131\\\";\\n}\\n.ag-theme-balham .ag-icon-unlinked::before {\\n  content: \\\"\\\\f132\\\";\\n}\\n.ag-theme-balham .ag-icon-row-drag::before {\\n  content: \\\"\\\\f116\\\";\\n}\\n.ag-theme-balham .ag-left-arrow::before {\\n  content: \\\"\\\\f119\\\";\\n}\\n.ag-theme-balham .ag-right-arrow::before {\\n  content: \\\"\\\\f128\\\";\\n}\\n.ag-theme-balham .ag-root-wrapper {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham [class^=ag-], .ag-theme-balham [class^=ag-]:focus, .ag-theme-balham [class^=ag-]:after, .ag-theme-balham [class^=ag-]:before {\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  outline: none;\\n}\\n.ag-theme-balham [class^=ag-]::-ms-clear {\\n  display: none;\\n}\\n.ag-theme-balham .ag-checkbox .ag-input-wrapper,\\n.ag-theme-balham .ag-radio-button .ag-input-wrapper {\\n  overflow: visible;\\n}\\n.ag-theme-balham .ag-range-field .ag-input-wrapper {\\n  height: 100%;\\n}\\n.ag-theme-balham .ag-toggle-button {\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  width: unset;\\n  min-width: unset;\\n}\\n.ag-theme-balham .ag-ltr .ag-label-align-right .ag-label {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-label-align-right .ag-label {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham input[class^=ag-] {\\n  margin: 0;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham textarea[class^=ag-],\\n.ag-theme-balham select[class^=ag-] {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham input[class^=ag-]:not([type]),\\n.ag-theme-balham input[class^=ag-][type=text],\\n.ag-theme-balham input[class^=ag-][type=number],\\n.ag-theme-balham input[class^=ag-][type=tel],\\n.ag-theme-balham input[class^=ag-][type=date],\\n.ag-theme-balham input[class^=ag-][type=datetime-local],\\n.ag-theme-balham textarea[class^=ag-] {\\n  font-size: inherit;\\n  line-height: inherit;\\n  color: inherit;\\n  border-width: 1px;\\n  border-style: solid;\\n  border-color: #95a5a6;\\n  border-color: var(--ag-input-border-color, #95a5a6);\\n}\\n.ag-theme-balham input[class^=ag-]:not([type]):disabled,\\n.ag-theme-balham input[class^=ag-][type=text]:disabled,\\n.ag-theme-balham input[class^=ag-][type=number]:disabled,\\n.ag-theme-balham input[class^=ag-][type=tel]:disabled,\\n.ag-theme-balham input[class^=ag-][type=date]:disabled,\\n.ag-theme-balham input[class^=ag-][type=datetime-local]:disabled,\\n.ag-theme-balham textarea[class^=ag-]:disabled {\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n  background-color: #ebebeb;\\n  background-color: var(--ag-input-disabled-background-color, #ebebeb);\\n  border-color: rgba(149, 165, 166, 0.3);\\n  border-color: var(--ag-input-disabled-border-color, rgba(149, 165, 166, 0.3));\\n}\\n.ag-theme-balham input[class^=ag-]:not([type]):focus,\\n.ag-theme-balham input[class^=ag-][type=text]:focus,\\n.ag-theme-balham input[class^=ag-][type=number]:focus,\\n.ag-theme-balham input[class^=ag-][type=tel]:focus,\\n.ag-theme-balham input[class^=ag-][type=date]:focus,\\n.ag-theme-balham input[class^=ag-][type=datetime-local]:focus,\\n.ag-theme-balham textarea[class^=ag-]:focus {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham input[class^=ag-]:not([type]):invalid,\\n.ag-theme-balham input[class^=ag-][type=text]:invalid,\\n.ag-theme-balham input[class^=ag-][type=number]:invalid,\\n.ag-theme-balham input[class^=ag-][type=tel]:invalid,\\n.ag-theme-balham input[class^=ag-][type=date]:invalid,\\n.ag-theme-balham input[class^=ag-][type=datetime-local]:invalid,\\n.ag-theme-balham textarea[class^=ag-]:invalid {\\n  border-width: 2px;\\n  border-style: solid;\\n  border-color: #e02525;\\n  border-color: var(--ag-input-border-color-invalid, var(--ag-invalid-color, #e02525));\\n}\\n.ag-theme-balham input[class^=ag-][type=number] {\\n  -moz-appearance: textfield;\\n}\\n.ag-theme-balham input[class^=ag-][type=number]::-webkit-outer-spin-button, .ag-theme-balham input[class^=ag-][type=number]::-webkit-inner-spin-button {\\n  -webkit-appearance: none;\\n  margin: 0;\\n}\\n.ag-theme-balham input[class^=ag-][type=range] {\\n  padding: 0;\\n}\\n.ag-theme-balham input[class^=ag-][type=button]:focus, .ag-theme-balham button[class^=ag-]:focus {\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n}\\n.ag-theme-balham .ag-drag-handle {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-list-item, .ag-theme-balham .ag-virtual-list-item {\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-select-list {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  overflow-y: auto;\\n  overflow-x: hidden;\\n}\\n.ag-theme-balham .ag-list-item {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-theme-balham .ag-list-item.ag-active-item {\\n  background-color: #ecf0f1;\\n  background-color: var(--ag-row-hover-color, #ecf0f1);\\n}\\n.ag-theme-balham .ag-select-list-item {\\n  padding-left: 4px;\\n  padding-right: 4px;\\n  cursor: default;\\n  -moz-user-select: none;\\n  -webkit-user-select: none;\\n  user-select: none;\\n}\\n.ag-theme-balham .ag-select-list-item span {\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n  overflow: hidden;\\n}\\n.ag-theme-balham .ag-select .ag-picker-field-wrapper {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  min-height: 24px;\\n  cursor: default;\\n}\\n.ag-theme-balham .ag-select.ag-disabled .ag-picker-field-wrapper:focus {\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n}\\n.ag-theme-balham .ag-select:not(.ag-cell-editor) {\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-select .ag-picker-field-display {\\n  margin: 4px;\\n  white-space: nowrap;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n}\\n.ag-theme-balham .ag-select .ag-picker-field-icon {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-balham .ag-select.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-rich-select {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n}\\n.ag-theme-balham .ag-rich-select-list {\\n  width: 100%;\\n  min-width: 200px;\\n  height: 182px;\\n}\\n.ag-theme-balham .ag-rich-select-value {\\n  padding: 0 4px 0 12px;\\n  height: 28px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-rich-select-virtual-list-item {\\n  cursor: default;\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-rich-select-virtual-list-item:hover {\\n  background-color: #ecf0f1;\\n  background-color: var(--ag-row-hover-color, #ecf0f1);\\n}\\n.ag-theme-balham .ag-rich-select-row {\\n  padding-left: 12px;\\n}\\n.ag-theme-balham .ag-rich-select-row-selected {\\n  background-color: #b7e4ff;\\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\\n}\\n.ag-theme-balham .ag-row-drag,\\n.ag-theme-balham .ag-selection-checkbox,\\n.ag-theme-balham .ag-group-expanded,\\n.ag-theme-balham .ag-group-contracted {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-ltr .ag-row-drag, .ag-theme-balham .ag-ltr .ag-selection-checkbox, .ag-theme-balham .ag-ltr .ag-group-expanded, .ag-theme-balham .ag-ltr .ag-group-contracted {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-drag, .ag-theme-balham .ag-rtl .ag-selection-checkbox, .ag-theme-balham .ag-rtl .ag-group-expanded, .ag-theme-balham .ag-rtl .ag-group-contracted {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-balham .ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\\n  height: min(var(--ag-line-height, 26px), 26px);\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n.ag-theme-balham .ag-group-expanded,\\n.ag-theme-balham .ag-group-contracted {\\n  cursor: pointer;\\n}\\n.ag-theme-balham .ag-group-title-bar-icon {\\n  cursor: pointer;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-ltr .ag-group-child-count {\\n  margin-left: 2px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-group-child-count {\\n  margin-right: 2px;\\n}\\n\\n.ag-theme-balham .ag-group-title-bar {\\n  background-color: #e2e9eb;\\n  background-color: var(--ag-subheader-background-color, #e2e9eb);\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-group-toolbar {\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-disabled-group-title-bar, .ag-theme-balham .ag-disabled-group-container {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .group-item {\\n  margin: 2px 0;\\n}\\n.ag-theme-balham .ag-label {\\n  white-space: nowrap;\\n}\\n.ag-theme-balham .ag-ltr .ag-label {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-label {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-label-align-top .ag-label {\\n  margin-bottom: 2px;\\n}\\n.ag-theme-balham .ag-ltr .ag-slider-field, .ag-theme-balham .ag-ltr .ag-angle-select-field {\\n  margin-right: 8px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-slider-field, .ag-theme-balham .ag-rtl .ag-angle-select-field {\\n  margin-left: 8px;\\n}\\n\\n.ag-theme-balham .ag-angle-select-parent-circle {\\n  width: 24px;\\n  height: 24px;\\n  border-radius: 12px;\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham .ag-angle-select-child-circle {\\n  top: 4px;\\n  left: 12px;\\n  width: 6px;\\n  height: 6px;\\n  margin-left: -3px;\\n  margin-top: -4px;\\n  border-radius: 3px;\\n  background-color: rgba(0, 0, 0, 0.54);\\n  background-color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-picker-field-wrapper {\\n  border: 1px solid;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  border-radius: 5px;\\n}\\n.ag-theme-balham .ag-picker-field-wrapper:focus {\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n}\\n.ag-theme-balham .ag-picker-field-button {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-dialog.ag-color-dialog {\\n  border-radius: 5px;\\n}\\n.ag-theme-balham .ag-color-picker .ag-picker-field-display {\\n  height: 16px;\\n}\\n.ag-theme-balham .ag-color-panel {\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-spectrum-color {\\n  background-color: rgb(255, 0, 0);\\n  border-radius: 2px;\\n}\\n.ag-theme-balham .ag-spectrum-tools {\\n  padding: 10px;\\n}\\n.ag-theme-balham .ag-spectrum-sat {\\n  background-image: -webkit-gradient(linear, left top, right top, from(white), to(rgba(204, 154, 129, 0)));\\n  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\\n}\\n.ag-theme-balham .ag-spectrum-val {\\n  background-image: -webkit-gradient(linear, left bottom, left top, from(black), to(rgba(204, 154, 129, 0)));\\n  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\\n}\\n.ag-theme-balham .ag-spectrum-dragger {\\n  border-radius: 12px;\\n  height: 12px;\\n  width: 12px;\\n  border: 1px solid white;\\n  background: black;\\n  -webkit-box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n          box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\\n}\\n.ag-theme-balham .ag-spectrum-hue-background {\\n  border-radius: 2px;\\n}\\n.ag-theme-balham .ag-spectrum-alpha-background {\\n  border-radius: 2px;\\n}\\n.ag-theme-balham .ag-spectrum-tool {\\n  margin-bottom: 10px;\\n  height: 11px;\\n  border-radius: 2px;\\n}\\n.ag-theme-balham .ag-spectrum-slider {\\n  margin-top: -12px;\\n  width: 13px;\\n  height: 13px;\\n  border-radius: 13px;\\n  background-color: rgb(248, 248, 248);\\n  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n          box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\\n}\\n.ag-theme-balham .ag-recent-color {\\n  margin: 0 3px;\\n}\\n.ag-theme-balham .ag-recent-color:first-child {\\n  margin-left: 0;\\n}\\n.ag-theme-balham .ag-recent-color:last-child {\\n  margin-right: 0;\\n}\\n.ag-theme-balham.ag-dnd-ghost {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n  height: 32px !important;\\n  line-height: 32px;\\n  margin: 0;\\n  padding: 0 8px;\\n  -webkit-transform: translateY(8px);\\n          transform: translateY(8px);\\n}\\n.ag-theme-balham .ag-dnd-ghost-icon {\\n  margin-right: 4px;\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n}\\n.ag-theme-balham .ag-popup-child:not(.ag-tooltip-custom) {\\n  -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\\n          box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\\n}\\n.ag-dragging-range-handle .ag-theme-balham .ag-dialog, .ag-dragging-fill-handle .ag-theme-balham .ag-dialog {\\n  opacity: 0.7;\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-dialog {\\n  border-radius: 2px;\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-panel {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham .ag-panel-title-bar {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-header-background-color, #f5f7f7);\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\\n  height: 32px;\\n  padding: 4px 12px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-panel-title-bar-button {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-panel-title-bar-button {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-tooltip {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-header-background-color, #f5f7f7);\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n  padding: 4px;\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  border-radius: 2px;\\n  -webkit-transition: opacity 1s;\\n  transition: opacity 1s;\\n  white-space: normal;\\n}\\n.ag-theme-balham .ag-tooltip.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n.ag-theme-balham .ag-tooltip-custom {\\n  -webkit-transition: opacity 1s;\\n  transition: opacity 1s;\\n}\\n.ag-theme-balham .ag-tooltip-custom.ag-tooltip-hiding {\\n  opacity: 0;\\n}\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-1 {\\n  padding-left: 20px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-1 {\\n  padding-right: 20px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-2 {\\n  padding-left: 40px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-2 {\\n  padding-right: 40px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-3 {\\n  padding-left: 60px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-3 {\\n  padding-right: 60px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-4 {\\n  padding-left: 80px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-4 {\\n  padding-right: 80px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-5 {\\n  padding-left: 100px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-5 {\\n  padding-right: 100px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-6 {\\n  padding-left: 120px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-6 {\\n  padding-right: 120px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-7 {\\n  padding-left: 140px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-7 {\\n  padding-right: 140px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-8 {\\n  padding-left: 160px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-8 {\\n  padding-right: 160px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-select-indent-9 {\\n  padding-left: 180px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-indent-9 {\\n  padding-right: 180px;\\n}\\n\\n.ag-theme-balham .ag-column-select-header-icon {\\n  cursor: pointer;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header-icon:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header-icon:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-ltr .ag-column-group-icons:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-icon:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-checkbox:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-checkbox:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-balham .ag-ltr .ag-column-select-column-label:not(:last-child) {\\n  margin-right: 8px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-group-icons:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-icon:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-checkbox:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-checkbox:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-drag-handle:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child), .ag-theme-balham .ag-rtl .ag-column-select-column-label:not(:last-child) {\\n  margin-left: 8px;\\n}\\n\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-column-select-column-group:not(:last-child),\\n.ag-theme-balham .ag-column-select-column:not(:last-child) {\\n  margin-bottom: 4px;\\n}\\n.ag-theme-balham .ag-column-select-column-readonly,\\n.ag-theme-balham .ag-column-select-column-group-readonly {\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-ltr .ag-column-select-add-group-indent {\\n  margin-left: 24px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-select-add-group-indent {\\n  margin-right: 24px;\\n}\\n\\n.ag-theme-balham .ag-column-select-virtual-list-viewport {\\n  padding: 3px 0px;\\n}\\n.ag-theme-balham .ag-column-select-virtual-list-item {\\n  padding: 0 6px;\\n}\\n.ag-theme-balham .ag-rtl {\\n  text-align: right;\\n}\\n.ag-theme-balham .ag-root-wrapper {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-left: 40px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\\n  padding-right: 40px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-1 {\\n  padding-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-1 {\\n  padding-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-left: 68px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\\n  padding-right: 68px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-2 {\\n  padding-left: 56px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-2 {\\n  padding-right: 56px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-left: 96px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\\n  padding-right: 96px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-3 {\\n  padding-left: 84px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-3 {\\n  padding-right: 84px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-left: 124px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\\n  padding-right: 124px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-4 {\\n  padding-left: 112px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-4 {\\n  padding-right: 112px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-left: 152px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\\n  padding-right: 152px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-5 {\\n  padding-left: 140px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-5 {\\n  padding-right: 140px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-left: 180px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\\n  padding-right: 180px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-6 {\\n  padding-left: 168px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-6 {\\n  padding-right: 168px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-left: 208px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\\n  padding-right: 208px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-7 {\\n  padding-left: 196px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-7 {\\n  padding-right: 196px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-left: 236px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\\n  padding-right: 236px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-8 {\\n  padding-left: 224px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-8 {\\n  padding-right: 224px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-left: 264px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\\n  padding-right: 264px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-9 {\\n  padding-left: 252px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-9 {\\n  padding-right: 252px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-left: 292px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\\n  padding-right: 292px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-10 {\\n  padding-left: 280px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-10 {\\n  padding-right: 280px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-left: 320px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\\n  padding-right: 320px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-11 {\\n  padding-left: 308px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-11 {\\n  padding-right: 308px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-left: 348px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\\n  padding-right: 348px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-12 {\\n  padding-left: 336px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-12 {\\n  padding-right: 336px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-left: 376px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\\n  padding-right: 376px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-13 {\\n  padding-left: 364px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-13 {\\n  padding-right: 364px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-left: 404px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\\n  padding-right: 404px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-14 {\\n  padding-left: 392px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-14 {\\n  padding-right: 392px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-left: 432px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\\n  padding-right: 432px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-15 {\\n  padding-left: 420px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-15 {\\n  padding-right: 420px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-left: 460px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\\n  padding-right: 460px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-16 {\\n  padding-left: 448px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-16 {\\n  padding-right: 448px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-left: 488px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\\n  padding-right: 488px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-17 {\\n  padding-left: 476px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-17 {\\n  padding-right: 476px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-left: 516px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\\n  padding-right: 516px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-18 {\\n  padding-left: 504px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-18 {\\n  padding-right: 504px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-left: 544px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\\n  padding-right: 544px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-19 {\\n  padding-left: 532px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-19 {\\n  padding-right: 532px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-left: 572px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\\n  padding-right: 572px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-20 {\\n  padding-left: 560px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-20 {\\n  padding-right: 560px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-left: 600px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\\n  padding-right: 600px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-21 {\\n  padding-left: 588px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-21 {\\n  padding-right: 588px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-left: 628px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\\n  padding-right: 628px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-22 {\\n  padding-left: 616px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-22 {\\n  padding-right: 616px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-left: 656px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\\n  padding-right: 656px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-23 {\\n  padding-left: 644px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-23 {\\n  padding-right: 644px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-left: 684px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\\n  padding-right: 684px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-24 {\\n  padding-left: 672px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-24 {\\n  padding-right: 672px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-left: 712px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\\n  padding-right: 712px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-25 {\\n  padding-left: 700px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-25 {\\n  padding-right: 700px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-left: 740px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\\n  padding-right: 740px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-26 {\\n  padding-left: 728px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-26 {\\n  padding-right: 728px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-left: 768px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\\n  padding-right: 768px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-27 {\\n  padding-left: 756px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-27 {\\n  padding-right: 756px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-left: 796px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\\n  padding-right: 796px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-28 {\\n  padding-left: 784px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-28 {\\n  padding-right: 784px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-left: 824px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\\n  padding-right: 824px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-29 {\\n  padding-left: 812px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-29 {\\n  padding-right: 812px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-left: 852px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\\n  padding-right: 852px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-30 {\\n  padding-left: 840px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-30 {\\n  padding-right: 840px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-left: 880px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\\n  padding-right: 880px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-31 {\\n  padding-left: 868px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-31 {\\n  padding-right: 868px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-left: 908px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\\n  padding-right: 908px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-32 {\\n  padding-left: 896px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-32 {\\n  padding-right: 896px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-left: 936px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\\n  padding-right: 936px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-33 {\\n  padding-left: 924px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-33 {\\n  padding-right: 924px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-left: 964px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\\n  padding-right: 964px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-34 {\\n  padding-left: 952px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-34 {\\n  padding-right: 952px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-left: 992px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\\n  padding-right: 992px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-35 {\\n  padding-left: 980px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-35 {\\n  padding-right: 980px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-left: 1020px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\\n  padding-right: 1020px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-36 {\\n  padding-left: 1008px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-36 {\\n  padding-right: 1008px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-left: 1048px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\\n  padding-right: 1048px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-37 {\\n  padding-left: 1036px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-37 {\\n  padding-right: 1036px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-left: 1076px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\\n  padding-right: 1076px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-38 {\\n  padding-left: 1064px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-38 {\\n  padding-right: 1064px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-left: 1104px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\\n  padding-right: 1104px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-39 {\\n  padding-left: 1092px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-39 {\\n  padding-right: 1092px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-left: 1132px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\\n  padding-right: 1132px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-40 {\\n  padding-left: 1120px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-40 {\\n  padding-right: 1120px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-left: 1160px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\\n  padding-right: 1160px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-41 {\\n  padding-left: 1148px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-41 {\\n  padding-right: 1148px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-left: 1188px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\\n  padding-right: 1188px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-42 {\\n  padding-left: 1176px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-42 {\\n  padding-right: 1176px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-left: 1216px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\\n  padding-right: 1216px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-43 {\\n  padding-left: 1204px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-43 {\\n  padding-right: 1204px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-left: 1244px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\\n  padding-right: 1244px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-44 {\\n  padding-left: 1232px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-44 {\\n  padding-right: 1232px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-left: 1272px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\\n  padding-right: 1272px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-45 {\\n  padding-left: 1260px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-45 {\\n  padding-right: 1260px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-left: 1300px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\\n  padding-right: 1300px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-46 {\\n  padding-left: 1288px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-46 {\\n  padding-right: 1288px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-left: 1328px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\\n  padding-right: 1328px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-47 {\\n  padding-left: 1316px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-47 {\\n  padding-right: 1316px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-left: 1356px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\\n  padding-right: 1356px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-48 {\\n  padding-left: 1344px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-48 {\\n  padding-right: 1344px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-left: 1384px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\\n  padding-right: 1384px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-49 {\\n  padding-left: 1372px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-49 {\\n  padding-right: 1372px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-left: 1412px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\\n  padding-right: 1412px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-50 {\\n  padding-left: 1400px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-50 {\\n  padding-right: 1400px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-left: 1440px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\\n  padding-right: 1440px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-51 {\\n  padding-left: 1428px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-51 {\\n  padding-right: 1428px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-left: 1468px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\\n  padding-right: 1468px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-52 {\\n  padding-left: 1456px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-52 {\\n  padding-right: 1456px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-left: 1496px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\\n  padding-right: 1496px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-53 {\\n  padding-left: 1484px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-53 {\\n  padding-right: 1484px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-left: 1524px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\\n  padding-right: 1524px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-54 {\\n  padding-left: 1512px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-54 {\\n  padding-right: 1512px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-left: 1552px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\\n  padding-right: 1552px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-55 {\\n  padding-left: 1540px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-55 {\\n  padding-right: 1540px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-left: 1580px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\\n  padding-right: 1580px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-56 {\\n  padding-left: 1568px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-56 {\\n  padding-right: 1568px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-left: 1608px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\\n  padding-right: 1608px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-57 {\\n  padding-left: 1596px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-57 {\\n  padding-right: 1596px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-left: 1636px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\\n  padding-right: 1636px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-58 {\\n  padding-left: 1624px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-58 {\\n  padding-right: 1624px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-left: 1664px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\\n  padding-right: 1664px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-59 {\\n  padding-left: 1652px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-59 {\\n  padding-right: 1652px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-left: 1692px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\\n  padding-right: 1692px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-60 {\\n  padding-left: 1680px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-60 {\\n  padding-right: 1680px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-left: 1720px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\\n  padding-right: 1720px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-61 {\\n  padding-left: 1708px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-61 {\\n  padding-right: 1708px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-left: 1748px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\\n  padding-right: 1748px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-62 {\\n  padding-left: 1736px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-62 {\\n  padding-right: 1736px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-left: 1776px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\\n  padding-right: 1776px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-63 {\\n  padding-left: 1764px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-63 {\\n  padding-right: 1764px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-left: 1804px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\\n  padding-right: 1804px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-64 {\\n  padding-left: 1792px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-64 {\\n  padding-right: 1792px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-left: 1832px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\\n  padding-right: 1832px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-65 {\\n  padding-left: 1820px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-65 {\\n  padding-right: 1820px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-left: 1860px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\\n  padding-right: 1860px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-66 {\\n  padding-left: 1848px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-66 {\\n  padding-right: 1848px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-left: 1888px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\\n  padding-right: 1888px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-67 {\\n  padding-left: 1876px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-67 {\\n  padding-right: 1876px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-left: 1916px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\\n  padding-right: 1916px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-68 {\\n  padding-left: 1904px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-68 {\\n  padding-right: 1904px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-left: 1944px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\\n  padding-right: 1944px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-69 {\\n  padding-left: 1932px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-69 {\\n  padding-right: 1932px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-left: 1972px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\\n  padding-right: 1972px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-70 {\\n  padding-left: 1960px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-70 {\\n  padding-right: 1960px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-left: 2000px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\\n  padding-right: 2000px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-71 {\\n  padding-left: 1988px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-71 {\\n  padding-right: 1988px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-left: 2028px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\\n  padding-right: 2028px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-72 {\\n  padding-left: 2016px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-72 {\\n  padding-right: 2016px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-left: 2056px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\\n  padding-right: 2056px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-73 {\\n  padding-left: 2044px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-73 {\\n  padding-right: 2044px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-left: 2084px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\\n  padding-right: 2084px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-74 {\\n  padding-left: 2072px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-74 {\\n  padding-right: 2072px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-left: 2112px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\\n  padding-right: 2112px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-75 {\\n  padding-left: 2100px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-75 {\\n  padding-right: 2100px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-left: 2140px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\\n  padding-right: 2140px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-76 {\\n  padding-left: 2128px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-76 {\\n  padding-right: 2128px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-left: 2168px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\\n  padding-right: 2168px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-77 {\\n  padding-left: 2156px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-77 {\\n  padding-right: 2156px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-left: 2196px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\\n  padding-right: 2196px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-78 {\\n  padding-left: 2184px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-78 {\\n  padding-right: 2184px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-left: 2224px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\\n  padding-right: 2224px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-79 {\\n  padding-left: 2212px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-79 {\\n  padding-right: 2212px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-left: 2252px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\\n  padding-right: 2252px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-80 {\\n  padding-left: 2240px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-80 {\\n  padding-right: 2240px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-left: 2280px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\\n  padding-right: 2280px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-81 {\\n  padding-left: 2268px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-81 {\\n  padding-right: 2268px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-left: 2308px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\\n  padding-right: 2308px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-82 {\\n  padding-left: 2296px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-82 {\\n  padding-right: 2296px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-left: 2336px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\\n  padding-right: 2336px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-83 {\\n  padding-left: 2324px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-83 {\\n  padding-right: 2324px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-left: 2364px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\\n  padding-right: 2364px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-84 {\\n  padding-left: 2352px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-84 {\\n  padding-right: 2352px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-left: 2392px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\\n  padding-right: 2392px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-85 {\\n  padding-left: 2380px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-85 {\\n  padding-right: 2380px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-left: 2420px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\\n  padding-right: 2420px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-86 {\\n  padding-left: 2408px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-86 {\\n  padding-right: 2408px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-left: 2448px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\\n  padding-right: 2448px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-87 {\\n  padding-left: 2436px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-87 {\\n  padding-right: 2436px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-left: 2476px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\\n  padding-right: 2476px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-88 {\\n  padding-left: 2464px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-88 {\\n  padding-right: 2464px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-left: 2504px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\\n  padding-right: 2504px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-89 {\\n  padding-left: 2492px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-89 {\\n  padding-right: 2492px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-left: 2532px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\\n  padding-right: 2532px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-90 {\\n  padding-left: 2520px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-90 {\\n  padding-right: 2520px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-left: 2560px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\\n  padding-right: 2560px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-91 {\\n  padding-left: 2548px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-91 {\\n  padding-right: 2548px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-left: 2588px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\\n  padding-right: 2588px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-92 {\\n  padding-left: 2576px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-92 {\\n  padding-right: 2576px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-left: 2616px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\\n  padding-right: 2616px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-93 {\\n  padding-left: 2604px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-93 {\\n  padding-right: 2604px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-left: 2644px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\\n  padding-right: 2644px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-94 {\\n  padding-left: 2632px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-94 {\\n  padding-right: 2632px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-left: 2672px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\\n  padding-right: 2672px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-95 {\\n  padding-left: 2660px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-95 {\\n  padding-right: 2660px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-left: 2700px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\\n  padding-right: 2700px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-96 {\\n  padding-left: 2688px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-96 {\\n  padding-right: 2688px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-left: 2728px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\\n  padding-right: 2728px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-97 {\\n  padding-left: 2716px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-97 {\\n  padding-right: 2716px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-left: 2756px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\\n  padding-right: 2756px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-98 {\\n  padding-left: 2744px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-98 {\\n  padding-right: 2744px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-left: 2784px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\\n  padding-right: 2784px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-indent-99 {\\n  padding-left: 2772px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-indent-99 {\\n  padding-right: 2772px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-row-group-leaf-indent {\\n  margin-left: 28px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-row-group-leaf-indent {\\n  margin-right: 28px;\\n}\\n\\n.ag-theme-balham .ag-value-change-delta {\\n  padding-right: 2px;\\n}\\n.ag-theme-balham .ag-value-change-delta-up {\\n  color: #43a047;\\n  color: var(--ag-value-change-delta-up-color, #43a047);\\n}\\n.ag-theme-balham .ag-value-change-delta-down {\\n  color: #e53935;\\n  color: var(--ag-value-change-delta-down-color, #e53935);\\n}\\n.ag-theme-balham .ag-value-change-value {\\n  background-color: transparent;\\n  border-radius: 1px;\\n  padding-left: 1px;\\n  padding-right: 1px;\\n  -webkit-transition: background-color 1s;\\n  transition: background-color 1s;\\n}\\n.ag-theme-balham .ag-value-change-value-highlight {\\n  background-color: rgba(22, 160, 133, 0.5);\\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5));\\n  -webkit-transition: background-color 0.1s;\\n  transition: background-color 0.1s;\\n}\\n.ag-theme-balham .ag-cell-data-changed {\\n  background-color: rgba(22, 160, 133, 0.5) !important;\\n  background-color: var(--ag-value-change-value-highlight-background-color, rgba(22, 160, 133, 0.5)) !important;\\n}\\n.ag-theme-balham .ag-cell-data-changed-animation {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-cell-highlight {\\n  background-color: #0091ea !important;\\n  background-color: var(--ag-range-selection-highlight-color, var(--ag-balham-active-color, #0091ea)) !important;\\n}\\n.ag-theme-balham .ag-row {\\n  height: 28px;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  color: #000;\\n  color: var(--ag-data-color, var(--ag-foreground-color, #000));\\n  border-width: 1px;\\n  border-color: #d9dcde;\\n  border-color: var(--ag-row-border-color, #d9dcde);\\n  border-bottom-style: solid;\\n}\\n.ag-theme-balham .ag-row-highlight-above::after, .ag-theme-balham .ag-row-highlight-below::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  width: calc(100% - 1px);\\n  height: 1px;\\n  background-color: #0091ea;\\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n  left: 1px;\\n}\\n.ag-theme-balham .ag-row-highlight-above::after {\\n  top: -1px;\\n}\\n.ag-theme-balham .ag-row-highlight-above.ag-row-first::after {\\n  top: 0;\\n}\\n.ag-theme-balham .ag-row-highlight-below::after {\\n  bottom: 0px;\\n}\\n.ag-theme-balham .ag-row-odd {\\n  background-color: #fcfdfe;\\n  background-color: var(--ag-odd-row-background-color, #fcfdfe);\\n}\\n.ag-theme-balham .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-row-hover {\\n  background-color: #ecf0f1;\\n  background-color: var(--ag-row-hover-color, #ecf0f1);\\n}\\n.ag-theme-balham .ag-column-hover {\\n  background-color: #ecf0f1;\\n  background-color: var(--ag-column-hover-color, #ecf0f1);\\n}\\n.ag-theme-balham .ag-ltr .ag-right-aligned-cell {\\n  text-align: right;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-right-aligned-cell {\\n  text-align: left;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-right-aligned-cell .ag-cell-value, .ag-theme-balham .ag-ltr .ag-right-aligned-cell .ag-group-value {\\n  margin-left: auto;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-right-aligned-cell .ag-cell-value, .ag-theme-balham .ag-rtl .ag-right-aligned-cell .ag-group-value {\\n  margin-right: auto;\\n}\\n\\n.ag-theme-balham .ag-cell, .ag-theme-balham .ag-full-width-row .ag-cell-wrapper.ag-row-group {\\n  border: 1px solid transparent;\\n  line-height: min(var(--ag-line-height, 26px), 26px);\\n  padding-left: 11px;\\n  padding-right: 11px;\\n  -webkit-font-smoothing: subpixel-antialiased;\\n}\\n.ag-theme-balham .ag-row > .ag-cell-wrapper {\\n  padding-left: 11px;\\n  padding-right: 11px;\\n}\\n.ag-theme-balham .ag-row-dragging {\\n  cursor: move;\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-cell-inline-editing {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n  padding: 0;\\n  height: 28px;\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n}\\n.ag-theme-balham .ag-popup-editor {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n  padding: 0;\\n}\\n.ag-theme-balham .ag-large-text-input {\\n  height: auto;\\n  padding: 12px;\\n}\\n.ag-theme-balham .ag-details-row {\\n  padding: 20px;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n}\\n.ag-theme-balham .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-balham .ag-layout-auto-height .ag-center-cols-container, .ag-theme-balham .ag-layout-print .ag-center-cols-clipper, .ag-theme-balham .ag-layout-print .ag-center-cols-container {\\n  min-height: 50px;\\n}\\n.ag-theme-balham .ag-overlay-loading-wrapper {\\n  background-color: rgba(255, 255, 255, 0.66);\\n  background-color: var(--ag-modal-overlay-background-color, rgba(255, 255, 255, 0.66));\\n}\\n.ag-theme-balham .ag-overlay-loading-center {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-overlay-no-rows-wrapper.ag-layout-auto-height {\\n  padding-top: 30px;\\n}\\n.ag-theme-balham .ag-loading {\\n  padding-left: 12px;\\n  display: -webkit-box;\\n  display: flex;\\n  height: 100%;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-balham .ag-loading-icon {\\n  padding-right: 12px;\\n}\\n.ag-theme-balham .ag-icon-loading {\\n  -webkit-animation-name: spin;\\n          animation-name: spin;\\n  -webkit-animation-duration: 1000ms;\\n          animation-duration: 1000ms;\\n  -webkit-animation-iteration-count: infinite;\\n          animation-iteration-count: infinite;\\n  -webkit-animation-timing-function: linear;\\n          animation-timing-function: linear;\\n}\\n@-webkit-keyframes spin {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n@keyframes spin {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n.ag-theme-balham .ag-floating-top {\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-floating-bottom {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-cell {\\n  border-right: solid transparent;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-cell {\\n  border-left: solid transparent;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-cell {\\n  border-right-width: 1px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-cell {\\n  border-left-width: 1px;\\n}\\n\\n.ag-theme-balham .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-row-selected {\\n  background-color: #b7e4ff;\\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\\n}\\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus),\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\\n  background-color: rgba(0, 145, 234, 0.2);\\n  background-color: var(--ag-range-selection-background-color, rgba(0, 145, 234, 0.2));\\n}\\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\\n  background-color: rgba(0, 88, 255, 0.1) !important;\\n  background-color: var(--ag-range-selection-chart-background-color, rgba(0, 88, 255, 0.1)) !important;\\n}\\n.ag-theme-balham .ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\\n  background-color: rgba(0, 255, 132, 0.1) !important;\\n  background-color: var(--ag-range-selection-chart-category-background-color, rgba(0, 255, 132, 0.1)) !important;\\n}\\n.ag-theme-balham .ag-cell-range-selected-1:not(.ag-cell-focus),\\n.ag-theme-balham .ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\\n  background-color: rgba(0, 145, 234, 0.2);\\n  background-color: var(--ag-range-selection-background-color-1, var(--ag-range-selection-background-color, rgba(0, 145, 234, 0.2)));\\n}\\n.ag-theme-balham .ag-cell-range-selected-2:not(.ag-cell-focus),\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\\n  background-color: rgba(0, 145, 234, 0.36);\\n  background-color: var(--ag-range-selection-background-color-2, rgba(0, 145, 234, 0.36));\\n}\\n.ag-theme-balham .ag-cell-range-selected-3:not(.ag-cell-focus),\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\\n  background-color: rgba(0, 145, 234, 0.488);\\n  background-color: var(--ag-range-selection-background-color-3, rgba(0, 145, 234, 0.488));\\n}\\n.ag-theme-balham .ag-cell-range-selected-4:not(.ag-cell-focus),\\n.ag-theme-balham .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\\n  background-color: rgba(0, 145, 234, 0.5904);\\n  background-color: var(--ag-range-selection-background-color-4, rgba(0, 145, 234, 0.5904));\\n}\\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\\n  border-top-color: #0091ea;\\n  border-top-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\\n  border-right-color: #0091ea;\\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\\n  border-bottom-color: #0091ea;\\n  border-bottom-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\\n  border-left-color: #0091ea;\\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-ltr .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-balham .ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-balham .ag-ltr .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\\n.ag-theme-balham .ag-ltr .ag-cell-range-single-cell,\\n.ag-theme-balham .ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-theme-balham .ag-rtl .ag-has-focus .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-balham .ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\\n.ag-theme-balham .ag-rtl .ag-has-focus .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,\\n.ag-theme-balham .ag-rtl .ag-cell-range-single-cell,\\n.ag-theme-balham .ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\\n  border: 1px solid;\\n  border-color: #0091ea;\\n  border-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n  outline: initial;\\n}\\n.ag-theme-balham .ag-cell.ag-selection-fill-top,\\n.ag-theme-balham .ag-cell.ag-selection-fill-top.ag-cell-range-selected {\\n  border-top: 1px dashed;\\n  border-top-color: #0091ea;\\n  border-top-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-right, .ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-right: 1px dashed;\\n  border-right-color: #0091ea;\\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-right, .ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\\n  border-left: 1px dashed;\\n  border-left-color: #0091ea;\\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n\\n.ag-theme-balham .ag-cell.ag-selection-fill-bottom,\\n.ag-theme-balham .ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\\n  border-bottom: 1px dashed;\\n  border-bottom-color: #0091ea;\\n  border-bottom-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-left, .ag-theme-balham .ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-left: 1px dashed;\\n  border-left-color: #0091ea;\\n  border-left-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-left, .ag-theme-balham .ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\\n  border-right: 1px dashed;\\n  border-right-color: #0091ea;\\n  border-right-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n\\n.ag-theme-balham .ag-range-handle, .ag-theme-balham .ag-fill-handle {\\n  position: absolute;\\n  width: 6px;\\n  height: 6px;\\n  bottom: -1px;\\n  background-color: #0091ea;\\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-ltr .ag-range-handle, .ag-theme-balham .ag-ltr .ag-fill-handle {\\n  right: -1px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-range-handle, .ag-theme-balham .ag-rtl .ag-fill-handle {\\n  left: -1px;\\n}\\n\\n.ag-theme-balham .ag-fill-handle {\\n  cursor: cell;\\n}\\n.ag-theme-balham .ag-range-handle {\\n  cursor: nwse-resize;\\n}\\n.ag-theme-balham .ag-cell-inline-editing {\\n  border-color: #719ECE !important;\\n  border-color: var(--ag-input-focus-border-color, #719ECE) !important;\\n}\\n.ag-theme-balham .ag-menu {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n  padding: 0;\\n}\\n.ag-theme-balham .ag-menu-list {\\n  cursor: default;\\n  padding: 4px 0;\\n}\\n.ag-theme-balham .ag-menu-separator {\\n  height: 9px;\\n}\\n.ag-theme-balham .ag-menu-separator-part::after {\\n  content: \\\"\\\";\\n  display: block;\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-menu-option-active, .ag-theme-balham .ag-compact-menu-option-active {\\n  background-color: #ecf0f1;\\n  background-color: var(--ag-row-hover-color, #ecf0f1);\\n}\\n.ag-theme-balham .ag-menu-option-part, .ag-theme-balham .ag-compact-menu-option-part {\\n  line-height: 16px;\\n  padding: 6px 0;\\n}\\n.ag-theme-balham .ag-menu-option-disabled, .ag-theme-balham .ag-compact-menu-option-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-menu-option-icon, .ag-theme-balham .ag-compact-menu-option-icon {\\n  width: 16px;\\n}\\n.ag-theme-balham .ag-ltr .ag-menu-option-icon, .ag-theme-balham .ag-ltr .ag-compact-menu-option-icon {\\n  padding-left: 8px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-menu-option-icon, .ag-theme-balham .ag-rtl .ag-compact-menu-option-icon {\\n  padding-right: 8px;\\n}\\n\\n.ag-theme-balham .ag-menu-option-text, .ag-theme-balham .ag-compact-menu-option-text {\\n  padding-left: 8px;\\n  padding-right: 8px;\\n}\\n.ag-theme-balham .ag-ltr .ag-menu-option-shortcut, .ag-theme-balham .ag-ltr .ag-compact-menu-option-shortcut {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-menu-option-shortcut, .ag-theme-balham .ag-rtl .ag-compact-menu-option-shortcut {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-menu-option-popup-pointer, .ag-theme-balham .ag-compact-menu-option-popup-pointer {\\n  padding-right: 4px;\\n}\\n.ag-theme-balham .ag-tabs {\\n  min-width: 220px;\\n}\\n.ag-theme-balham .ag-tabs-header {\\n  width: 100%;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-theme-balham .ag-tab {\\n  border-bottom: 0 solid transparent;\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n          justify-content: center;\\n  cursor: pointer;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-tab:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-tab:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-tab-selected {\\n  border-bottom-color: #0091ea;\\n  border-bottom-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-menu-header {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-filter-separator {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-menu:not(.ag-tabs) .ag-filter-select {\\n  min-width: 167px;\\n}\\n.ag-theme-balham .ag-tabs .ag-filter-select {\\n  min-width: 206px;\\n}\\n.ag-theme-balham .ag-filter-select .ag-picker-field-wrapper {\\n  width: 0;\\n}\\n.ag-theme-balham .ag-filter-condition-operator {\\n  height: 17px;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-condition-operator-or {\\n  margin-left: 8px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-condition-operator-or {\\n  margin-right: 8px;\\n}\\n\\n.ag-theme-balham .ag-set-filter-select-all {\\n  padding-top: 6px;\\n}\\n.ag-theme-balham .ag-set-filter-list, .ag-theme-balham .ag-filter-no-matches {\\n  height: 144px;\\n}\\n.ag-theme-balham .ag-set-filter-filter {\\n  margin-top: 6px;\\n  margin-left: 6px;\\n  margin-right: 6px;\\n}\\n.ag-theme-balham .ag-filter-to {\\n  margin-top: 4px;\\n}\\n.ag-theme-balham .ag-mini-filter {\\n  margin: 6px 6px;\\n}\\n.ag-theme-balham .ag-set-filter-item {\\n  margin: 0px 6px;\\n}\\n.ag-theme-balham .ag-ltr .ag-set-filter-item-value {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-set-filter-item-value {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-balham .ag-filter-apply-panel {\\n  padding: 6px 6px;\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-filter-apply-panel-button {\\n  line-height: 1.5;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-apply-panel-button {\\n  margin-left: 8px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-apply-panel-button {\\n  margin-right: 8px;\\n}\\n\\n.ag-theme-balham .ag-simple-filter-body-wrapper {\\n  padding: 6px 6px;\\n  padding-bottom: 2px;\\n}\\n.ag-theme-balham .ag-simple-filter-body-wrapper > * {\\n  margin-bottom: 4px;\\n}\\n.ag-theme-balham .ag-filter-no-matches {\\n  padding: 6px 6px;\\n}\\n.ag-theme-balham .ag-multi-filter-menu-item {\\n  margin: 4px 0;\\n}\\n.ag-theme-balham .ag-multi-filter-group-title-bar {\\n  padding: 8px 4px;\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-multi-filter-group-title-bar:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-side-bar {\\n  position: relative;\\n}\\n.ag-theme-balham .ag-tool-panel-wrapper {\\n  width: 200px;\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n}\\n.ag-theme-balham .ag-side-buttons {\\n  padding-top: 16px;\\n  width: 20px;\\n  position: relative;\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n  overflow: hidden;\\n}\\n.ag-theme-balham button.ag-side-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  background: transparent;\\n  padding: 8px 0 8px 0;\\n  width: calc(100% + 1px);\\n  margin: 0;\\n  min-height: 72px;\\n  background-position-y: center;\\n  background-position-x: center;\\n  background-repeat: no-repeat;\\n  border: none;\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham button.ag-side-button-button:focus {\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-side-button-button:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-side-button-button:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-selected .ag-side-button-button {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-side-button-icon-wrapper {\\n  margin-bottom: 3px;\\n}\\n.ag-theme-balham .ag-ltr .ag-side-bar-left,\\n.ag-theme-balham .ag-rtl .ag-side-bar-right {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-side-button-button,\\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-side-button-button {\\n  border-right: 0 solid transparent;\\n  margin-right: -1px;\\n  padding-right: 1px;\\n}\\n.ag-theme-balham .ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-theme-balham .ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-right-color: #0091ea;\\n  border-right-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-rtl .ag-side-bar-left,\\n.ag-theme-balham .ag-ltr .ag-side-bar-right {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-side-button-button,\\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-side-button-button {\\n  border-left: 0 solid transparent;\\n  margin-left: -1px;\\n  padding-left: 1px;\\n}\\n.ag-theme-balham .ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\\n.ag-theme-balham .ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\\n  border-left-color: #0091ea;\\n  border-left-color: var(--ag-selected-tab-underline-color, var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-filter-toolpanel-header {\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-header, .ag-theme-balham .ag-ltr .ag-filter-toolpanel-search {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-header, .ag-theme-balham .ag-rtl .ag-filter-toolpanel-search {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-keyboard-focus .ag-filter-toolpanel-header:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-filter-toolpanel-header:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  font-family: \\\"agGridBalham\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  content: \\\"\\\\f114\\\";\\n  position: absolute;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group.ag-has-filter > .ag-group-title-bar .ag-group-title::after {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-0-header {\\n  height: 32px;\\n}\\n.ag-theme-balham .ag-filter-toolpanel-group-item {\\n  margin-top: 2px;\\n  margin-bottom: 2px;\\n}\\n.ag-theme-balham .ag-filter-toolpanel-search {\\n  height: 32px;\\n}\\n.ag-theme-balham .ag-filter-toolpanel-search-input {\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n  height: 16px;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-search-input {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-search-input {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-0 {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-expand, .ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-expand, .ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-left: 20px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\\n  padding-right: 20px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-left: 36px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\\n  padding-right: 36px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-left: 52px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\\n  padding-right: 52px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-left: 68px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\\n  padding-right: 68px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-left: 84px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\\n  padding-right: 84px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-left: 100px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\\n  padding-right: 100px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-left: 116px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\\n  padding-right: 116px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-left: 132px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\\n  padding-right: 132px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-left: 148px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\\n  padding-right: 148px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\\n  background-color: transparent;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-left: 164px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\\n  padding-right: 164px;\\n}\\n\\n.ag-theme-balham .ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\\n  padding-left: 4px;\\n}\\n.ag-theme-balham .ag-filter-toolpanel-instance-filter {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n  margin-top: 4px;\\n}\\n.ag-theme-balham .ag-ltr .ag-filter-toolpanel-instance-header-icon {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-filter-toolpanel-instance-header-icon {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-pivot-mode-panel {\\n  min-height: 32px;\\n  height: 32px;\\n  display: -webkit-box;\\n  display: flex;\\n}\\n.ag-theme-balham .ag-pivot-mode-select {\\n  display: -webkit-box;\\n  display: flex;\\n  -webkit-box-align: center;\\n          align-items: center;\\n}\\n.ag-theme-balham .ag-ltr .ag-pivot-mode-select {\\n  margin-left: 6px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-pivot-mode-select {\\n  margin-right: 6px;\\n}\\n\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-select-header:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-column-select-header {\\n  height: 32px;\\n  -webkit-box-align: center;\\n          align-items: center;\\n  padding: 0 6px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-column-panel-column-select {\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-column-group-icons,\\n.ag-theme-balham .ag-column-select-header-icon {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-column-select-list .ag-list-item-hovered::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: #0091ea;\\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-column-select-list .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-theme-balham .ag-column-select-list .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n.ag-theme-balham .ag-header {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-header-background-color, #f5f7f7);\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-header-row {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\\n  height: 32px;\\n}\\n.ag-theme-balham .ag-pinned-right-header {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-pinned-left-header {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon {\\n  margin-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-header-cell,\\n.ag-theme-balham .ag-header-group-cell {\\n  padding-left: 12px;\\n  padding-right: 12px;\\n}\\n.ag-theme-balham .ag-header-cell.ag-header-cell-moving,\\n.ag-theme-balham .ag-header-group-cell.ag-header-cell-moving {\\n  background-color: white;\\n  background-color: var(--ag-header-cell-moving-background-color, var(--ag-background-color, white));\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-header-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-header-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-header-group-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-header-group-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 4px;\\n  left: 4px;\\n  display: block;\\n  width: calc(100% - 8px);\\n  height: calc(100% - 8px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-header-icon {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-header-expand-icon {\\n  cursor: pointer;\\n}\\n.ag-theme-balham .ag-ltr .ag-header-expand-icon {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-header-expand-icon {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-header-row:not(:first-child) .ag-header-cell,\\n.ag-theme-balham .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-header-cell::after,\\n.ag-theme-balham .ag-header-group-cell::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  z-index: 1;\\n  display: block;\\n  width: 1px;\\n  height: 50%;\\n  top: calc(50% - 25%);\\n  background-color: rgba(189, 195, 199, 0.5);\\n  background-color: var(--ag-header-column-separator-color, rgba(189, 195, 199, 0.5));\\n}\\n.ag-theme-balham .ag-ltr .ag-header-cell::after, .ag-theme-balham .ag-ltr .ag-header-group-cell::after {\\n  right: 0;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-header-cell::after, .ag-theme-balham .ag-rtl .ag-header-group-cell::after {\\n  left: 0;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-header-select-all {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-header-select-all {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-floating-filter-button {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-floating-filter-button {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-balham .ag-floating-filter-button-button {\\n  color: inherit;\\n  font-family: inherit;\\n  font-size: inherit;\\n  font-weight: inherit;\\n  line-height: inherit;\\n  -webkit-appearance: none;\\n     -moz-appearance: none;\\n          appearance: none;\\n  background: transparent;\\n  border: none;\\n  height: 16px;\\n  padding: 0;\\n  width: 16px;\\n}\\n.ag-theme-balham .ag-filter-loading {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n  height: 100%;\\n  padding: 6px 6px;\\n  position: absolute;\\n  width: 100%;\\n  z-index: 1;\\n}\\n.ag-theme-balham .ag-paging-panel {\\n  border-top: 1px solid;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n  height: 32px;\\n}\\n.ag-theme-balham .ag-paging-panel > * {\\n  margin: 0 12px;\\n}\\n.ag-theme-balham .ag-paging-button {\\n  cursor: pointer;\\n}\\n.ag-theme-balham .ag-paging-button.ag-disabled {\\n  cursor: default;\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-paging-button:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-paging-button:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 0px;\\n  left: 0px;\\n  display: block;\\n  width: calc(100% - 0px);\\n  height: calc(100% - 0px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-paging-button, .ag-theme-balham .ag-paging-description {\\n  margin: 0 4px;\\n}\\n.ag-theme-balham .ag-status-bar {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-border-color, #bdc3c7);\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n  padding-right: 16px;\\n  padding-left: 16px;\\n  line-height: 1.5;\\n}\\n.ag-theme-balham .ag-status-name-value-value {\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n}\\n.ag-theme-balham .ag-status-bar-center {\\n  text-align: center;\\n}\\n.ag-theme-balham .ag-status-name-value {\\n  margin-left: 4px;\\n  margin-right: 4px;\\n  padding-top: 8px;\\n  padding-bottom: 8px;\\n}\\n.ag-theme-balham .ag-column-drop-cell {\\n  background: #dddede;\\n  background: var(--ag-chip-background-color, #dddede);\\n  border-radius: 16px;\\n  height: 16px;\\n  padding: 0 2px;\\n  border: 1px solid transparent;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-drop-cell:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-column-drop-cell:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 2px;\\n  left: 2px;\\n  display: block;\\n  width: calc(100% - 4px);\\n  height: calc(100% - 4px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-column-drop-cell-text {\\n  margin: 0 4px;\\n}\\n.ag-theme-balham .ag-column-drop-cell-button {\\n  min-width: 16px;\\n  margin: 0 2px;\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-column-drop-cell-drag-handle {\\n  margin-left: 8px;\\n}\\n.ag-theme-balham .ag-column-drop-cell-ghost {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-column-drop-horizontal {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n  height: 28px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal {\\n  padding-left: 12px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal {\\n  padding-right: 12px;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n\\n.ag-theme-balham .ag-column-drop-horizontal-cell-separator {\\n  margin: 0 4px;\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-column-drop-horizontal-empty-message {\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-horizontal-icon {\\n  margin-right: 12px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-horizontal-icon {\\n  margin-left: 12px;\\n}\\n\\n.ag-theme-balham .ag-column-drop-vertical-list {\\n  padding-bottom: 4px;\\n  padding-right: 4px;\\n  padding-left: 4px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell {\\n  margin-top: 4px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical {\\n  min-height: 50px;\\n  border-bottom: solid 1px;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-column-drop-vertical.ag-last-column-drop {\\n  border-bottom: none;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-icon {\\n  margin-left: 4px;\\n  margin-right: 4px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-empty-message {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  left: 0;\\n  right: 0;\\n  overflow: hidden;\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n  margin-top: 4px;\\n}\\n.ag-theme-balham .ag-select-agg-func-popup {\\n  border: solid 1px;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  border-radius: 2px;\\n  -webkit-box-shadow: none;\\n          box-shadow: none;\\n  padding: 4px;\\n  background: white;\\n  background: var(--ag-background-color, white);\\n  height: 70px;\\n  padding: 0;\\n}\\n.ag-theme-balham .ag-select-agg-func-virtual-list-item {\\n  cursor: default;\\n  padding-left: 8px;\\n}\\n.ag-theme-balham .ag-select-agg-func-virtual-list-item:hover {\\n  background-color: #b7e4ff;\\n  background-color: var(--ag-selected-row-background-color, #b7e4ff);\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus {\\n  outline: none;\\n}\\n.ag-theme-balham .ag-keyboard-focus .ag-select-agg-func-virtual-list-item:focus::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  background-color: transparent;\\n  pointer-events: none;\\n  top: 1px;\\n  left: 1px;\\n  display: block;\\n  width: calc(100% - 2px);\\n  height: calc(100% - 2px);\\n  border: 1px solid;\\n  border-color: #719ECE;\\n  border-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham .ag-chart-menu {\\n  border-radius: 2px;\\n  background: white;\\n  background: var(--ag-background-color, white);\\n}\\n.ag-theme-balham .ag-chart-menu-icon {\\n  opacity: 0.5;\\n  line-height: 24px;\\n  font-size: 24px;\\n  width: 24px;\\n  height: 24px;\\n  margin: 2px 0;\\n  cursor: pointer;\\n  border-radius: 2px;\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-chart-menu-icon:hover {\\n  opacity: 1;\\n}\\n.ag-theme-balham .ag-chart-mini-thumbnail {\\n  border: 1px solid;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n  border-radius: 5px;\\n  margin: 5px;\\n}\\n.ag-theme-balham .ag-chart-mini-thumbnail:nth-last-child(3), .ag-theme-balham .ag-chart-mini-thumbnail:nth-last-child(3) ~ .ag-chart-mini-thumbnail {\\n  margin-left: auto;\\n  margin-right: auto;\\n}\\n.ag-theme-balham .ag-ltr .ag-chart-mini-thumbnail:first-child {\\n  margin-left: 0;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-chart-mini-thumbnail:first-child {\\n  margin-right: 0;\\n}\\n\\n.ag-theme-balham .ag-ltr .ag-chart-mini-thumbnail:last-child {\\n  margin-right: 0;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-chart-mini-thumbnail:last-child {\\n  margin-left: 0;\\n}\\n\\n.ag-theme-balham .ag-chart-mini-thumbnail.ag-selected {\\n  border-color: #0091ea;\\n  border-color: var(--ag-minichart-selected-chart-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-chart-settings-card-item {\\n  background: #000;\\n  background: var(--ag-foreground-color, #000);\\n  width: 8px;\\n  height: 8px;\\n  border-radius: 4px;\\n}\\n.ag-theme-balham .ag-chart-settings-card-item.ag-selected {\\n  background-color: #0091ea;\\n  background-color: var(--ag-minichart-selected-page-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-chart-data-column-drag-handle {\\n  margin-left: 4px;\\n}\\n.ag-theme-balham .ag-charts-settings-group-title-bar,\\n.ag-theme-balham .ag-charts-data-group-title-bar,\\n.ag-theme-balham .ag-charts-format-top-level-group-title-bar {\\n  border-top: solid 1px;\\n  border-top-color: #bdc3c7;\\n  border-top-color: var(--ag-secondary-border-color, var(--ag-border-color, #bdc3c7));\\n}\\n.ag-theme-balham .ag-charts-settings-group-container {\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-charts-data-group-container {\\n  padding: 3px 6px;\\n}\\n.ag-theme-balham .ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group) {\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-charts-data-group-container .ag-list-item-hovered::after {\\n  content: \\\"\\\";\\n  position: absolute;\\n  left: 0;\\n  right: 0;\\n  height: 1px;\\n  background-color: #0091ea;\\n  background-color: var(--ag-range-selection-border-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham .ag-charts-data-group-container .ag-item-highlight-top::after {\\n  top: 0;\\n}\\n.ag-theme-balham .ag-charts-data-group-container .ag-item-highlight-bottom::after {\\n  bottom: 0;\\n}\\n.ag-theme-balham .ag-charts-format-top-level-group-container {\\n  margin-left: 8px;\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-charts-format-top-level-group-item {\\n  margin: 4px 0;\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-container {\\n  padding: 6px 6px;\\n  padding-bottom: 2px;\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-container > * {\\n  margin-bottom: 4px;\\n}\\n.ag-theme-balham .ag-charts-group-container.ag-group-container-horizontal {\\n  padding: 4px;\\n}\\n.ag-theme-balham .ag-chart-data-section,\\n.ag-theme-balham .ag-chart-format-section {\\n  display: -webkit-box;\\n  display: flex;\\n  margin: 0;\\n}\\n.ag-theme-balham .ag-chart-menu-panel {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-control-panel-background-color, #f5f7f7);\\n}\\n.ag-theme-balham .ag-ltr .ag-chart-menu-panel {\\n  border-left: solid 1px;\\n  border-left-color: #bdc3c7;\\n  border-left-color: var(--ag-border-color, #bdc3c7);\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-chart-menu-panel {\\n  border-right: solid 1px;\\n  border-right-color: #bdc3c7;\\n  border-right-color: var(--ag-border-color, #bdc3c7);\\n}\\n\\n.ag-theme-balham .ag-date-time-list-page-title {\\n  -webkit-box-flex: 1;\\n          flex-grow: 1;\\n  text-align: center;\\n}\\n.ag-theme-balham .ag-date-time-list-page-column-label {\\n  text-align: center;\\n}\\n.ag-theme-balham .ag-date-time-list-page-entry {\\n  text-align: center;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper {\\n  font-family: \\\"agGridBalham\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: 16px;\\n  height: 16px;\\n  background-color: white;\\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, white));\\n  border-radius: 3px;\\n  display: inline-block;\\n  vertical-align: middle;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper input, .ag-theme-balham .ag-checkbox-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper:focus-within, .ag-theme-balham .ag-checkbox-input-wrapper:active {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper::after {\\n  content: \\\"\\\\f108\\\";\\n  color: #7f8c8d;\\n  color: var(--ag-checkbox-unchecked-color, #7f8c8d);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-checked::after {\\n  content: \\\"\\\\f106\\\";\\n  color: #0091ea;\\n  color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-checkbox-input-wrapper.ag-indeterminate::after {\\n  content: \\\"\\\\f107\\\";\\n  color: #7f8c8d;\\n  color: var(--ag-checkbox-indeterminate-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper {\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  width: 32px;\\n  height: 16px;\\n  background-color: #7f8c8d;\\n  background-color: var(--ag-toggle-button-off-background-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\\n  border-radius: 8px;\\n  position: relative;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  border: 1px solid;\\n  border-color: #7f8c8d;\\n  border-color: var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #7f8c8d));\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper input {\\n  opacity: 0;\\n  height: 100%;\\n  width: 100%;\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper:focus-within {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-checked {\\n  background-color: #0091ea;\\n  background-color: var(--ag-toggle-button-on-background-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\\n  border-color: #0091ea;\\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper::before {\\n  content: \\\" \\\";\\n  position: absolute;\\n  top: -1px;\\n  left: -1px;\\n  display: block;\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  height: 16px;\\n  width: 16px;\\n  background-color: white;\\n  background-color: var(--ag-toggle-button-switch-background-color, var(--ag-background-color, white));\\n  border-radius: 8px;\\n  -webkit-transition: left 100ms;\\n  transition: left 100ms;\\n  border: 1px solid;\\n  border-color: #7f8c8d;\\n  border-color: var(--ag-toggle-button-switch-border-color, var(--ag-toggle-button-off-border-color, var(--ag-checkbox-unchecked-color, #7f8c8d)));\\n}\\n.ag-theme-balham .ag-toggle-button-input-wrapper.ag-checked::before {\\n  left: calc(100% - 16px );\\n  border-color: #0091ea;\\n  border-color: var(--ag-toggle-button-on-border-color, var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea)));\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper {\\n  font-family: \\\"agGridBalham\\\";\\n  font-size: 16px;\\n  line-height: 16px;\\n  font-style: normal;\\n  font-weight: normal;\\n  font-variant: normal;\\n  text-transform: none;\\n  /* Better Font Rendering =========== */\\n  -webkit-font-smoothing: antialiased;\\n  -moz-osx-font-smoothing: grayscale;\\n  width: 16px;\\n  height: 16px;\\n  background-color: white;\\n  background-color: var(--ag-checkbox-background-color, var(--ag-background-color, white));\\n  border-radius: 3px;\\n  display: inline-block;\\n  vertical-align: middle;\\n  -webkit-box-flex: 0;\\n          flex: none;\\n  border-radius: 16px;\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper input, .ag-theme-balham .ag-radio-button-input-wrapper input {\\n  -webkit-appearance: none;\\n  opacity: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper:focus-within, .ag-theme-balham .ag-radio-button-input-wrapper:active {\\n  outline: none;\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper.ag-disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper::after {\\n  content: \\\"\\\\f126\\\";\\n  color: #7f8c8d;\\n  color: var(--ag-checkbox-unchecked-color, #7f8c8d);\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-balham .ag-radio-button-input-wrapper.ag-checked::after {\\n  content: \\\"\\\\f127\\\";\\n  color: #0091ea;\\n  color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  pointer-events: none;\\n}\\n.ag-theme-balham input[class^=ag-][type=range] {\\n  -webkit-appearance: none;\\n  width: 100%;\\n  height: 100%;\\n  background: none;\\n  overflow: visible;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-webkit-slider-runnable-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #bdc3c7;\\n  background-color: var(--ag-border-color, #bdc3c7);\\n  border-radius: 2px;\\n  border-radius: 3px;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-moz-range-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #bdc3c7;\\n  background-color: var(--ag-border-color, #bdc3c7);\\n  border-radius: 2px;\\n  border-radius: 3px;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-ms-track {\\n  margin: 0;\\n  padding: 0;\\n  width: 100%;\\n  height: 3px;\\n  background-color: #bdc3c7;\\n  background-color: var(--ag-border-color, #bdc3c7);\\n  border-radius: 2px;\\n  border-radius: 3px;\\n  color: transparent;\\n  width: calc(100% - 2px);\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-webkit-slider-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  border: 1px solid;\\n  border-color: #7f8c8d;\\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\\n  border-radius: 16px;\\n  -webkit-transform: translateY(-6.5px);\\n          transform: translateY(-6.5px);\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-ms-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  border: 1px solid;\\n  border-color: #7f8c8d;\\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\\n  border-radius: 16px;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]::-moz-ag-range-thumb {\\n  margin: 0;\\n  padding: 0;\\n  -webkit-appearance: none;\\n  width: 16px;\\n  height: 16px;\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  border: 1px solid;\\n  border-color: #7f8c8d;\\n  border-color: var(--ag-checkbox-unchecked-color, #7f8c8d);\\n  border-radius: 16px;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:focus {\\n  outline: none;\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:focus::-webkit-slider-thumb {\\n  -webkit-box-shadow: 0 0 2px 1px #719ECE;\\n          box-shadow: 0 0 2px 1px #719ECE;\\n  border-color: #0091ea;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:focus::-ms-thumb {\\n  box-shadow: 0 0 2px 1px #719ECE;\\n  border-color: #0091ea;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\\n  box-shadow: 0 0 2px 1px #719ECE;\\n  border-color: #0091ea;\\n  border-color: var(--ag-checkbox-checked-color, var(--ag-balham-active-color, #0091ea));\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\\n  background-color: #719ECE;\\n  background-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:active::-moz-ag-range-track {\\n  background-color: #719ECE;\\n  background-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:active::-ms-track {\\n  background-color: #719ECE;\\n  background-color: var(--ag-input-focus-border-color, #719ECE);\\n}\\n.ag-theme-balham input[class^=ag-][type=range]:disabled {\\n  opacity: 0.5;\\n}\\n.ag-theme-balham .ag-filter-toolpanel-header,\\n.ag-theme-balham .ag-filter-toolpanel-search,\\n.ag-theme-balham .ag-status-bar,\\n.ag-theme-balham .ag-header-row,\\n.ag-theme-balham .ag-multi-filter-group-title-bar {\\n  font-weight: 600;\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-header-foreground-color, var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54)));\\n}\\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]),\\n.ag-theme-balham .ag-ltr input[class^=ag-][type=text],\\n.ag-theme-balham .ag-ltr input[class^=ag-][type=number],\\n.ag-theme-balham .ag-ltr input[class^=ag-][type=tel],\\n.ag-theme-balham .ag-ltr input[class^=ag-][type=date],\\n.ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local],\\n.ag-theme-balham .ag-ltr textarea[class^=ag-] {\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]),\\n.ag-theme-balham .ag-rtl input[class^=ag-][type=text],\\n.ag-theme-balham .ag-rtl input[class^=ag-][type=number],\\n.ag-theme-balham .ag-rtl input[class^=ag-][type=tel],\\n.ag-theme-balham .ag-rtl input[class^=ag-][type=date],\\n.ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local],\\n.ag-theme-balham .ag-rtl textarea[class^=ag-] {\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar {\\n  font-weight: 600;\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n}\\n.ag-theme-balham .ag-dnd-ghost {\\n  font-weight: 600;\\n}\\n.ag-theme-balham .ag-tab {\\n  border: 1px solid transparent;\\n  padding: 4px 8px;\\n  margin: 4px;\\n  margin-bottom: -1px;\\n}\\n.ag-theme-balham .ag-tab-selected {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  border-bottom-color: transparent;\\n}\\n.ag-theme-balham .ag-tabs-header {\\n  border-bottom: 1px solid;\\n  border-bottom-color: #bdc3c7;\\n  border-bottom-color: var(--ag-border-color, #bdc3c7);\\n}\\n.ag-theme-balham .ag-column-drop-cell {\\n  height: 24px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-title {\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell {\\n  margin-left: 8px;\\n  margin-right: 8px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-cell-text {\\n  margin-left: 8px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical-icon {\\n  color: rgba(0, 0, 0, 0.54);\\n  color: var(--ag-secondary-foreground-color, rgba(0, 0, 0, 0.54));\\n}\\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message {\\n  padding-left: 24px;\\n  padding-right: 4px;\\n}\\n\\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message {\\n  padding-right: 24px;\\n  padding-left: 4px;\\n}\\n\\n.ag-theme-balham .ag-column-drop-horizontal {\\n  height: 32px;\\n}\\n.ag-theme-balham .ag-column-drop-empty {\\n  color: rgba(0, 0, 0, 0.38);\\n  color: var(--ag-disabled-foreground-color, rgba(0, 0, 0, 0.38));\\n}\\n.ag-theme-balham .ag-column-drop-horizontal-cell-text {\\n  margin-left: 8px;\\n}\\n.ag-theme-balham .ag-column-drop-vertical {\\n  padding-top: 8px;\\n}\\n.ag-theme-balham .ag-menu-header {\\n  background-color: #f5f7f7;\\n  background-color: var(--ag-header-background-color, #f5f7f7);\\n}\\n.ag-theme-balham .ag-overlay-loading-center {\\n  background-color: white;\\n  background-color: var(--ag-background-color, white);\\n  border: 1px solid;\\n  border-color: #bdc3c7;\\n  border-color: var(--ag-border-color, #bdc3c7);\\n  color: #000;\\n  color: var(--ag-foreground-color, #000);\\n  padding: 16px;\\n}\\n.ag-theme-balham .ag-tooltip {\\n  border: none;\\n  background-color: #cbd0d3;\\n}\\n.ag-theme-balham .ag-panel-title-bar-button-icon {\\n  font-size: 20px;\\n}\\n.ag-theme-balham .ag-chart-data-section,\\n.ag-theme-balham .ag-chart-format-section {\\n  padding-bottom: 2px;\\n}\\n.ag-theme-balham .ag-group-toolbar {\\n  background-color: rgba(226, 233, 235, 0.5);\\n  background-color: var(--ag-subheader-toolbar-background-color, rgba(226, 233, 235, 0.5));\\n}\\n.ag-theme-balham .ag-chart-tab {\\n  padding-top: 2px;\\n}\\n.ag-theme-balham .ag-charts-format-sub-level-group-item {\\n  margin-bottom: 6px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n  box-sizing: border-box;\n  font-family: Helvetica, Arial, sans-serif;\n  font-size: 13px;\n  height: 100%;\n  margin: 0px;\n  position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n  visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n  pointer-events: none;\n}\n.ql-clipboard {\n  left: -100000px;\n  height: 1px;\n  overflow-y: hidden;\n  position: absolute;\n  top: 50%;\n}\n.ql-clipboard p {\n  margin: 0;\n  padding: 0;\n}\n.ql-editor {\n  box-sizing: border-box;\n  line-height: 1.42;\n  height: 100%;\n  outline: none;\n  overflow-y: auto;\n  padding: 12px 15px;\n  tab-size: 4;\n  -moz-tab-size: 4;\n  text-align: left;\n  white-space: pre-wrap;\n  word-wrap: break-word;\n}\n.ql-editor > * {\n  cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n  margin: 0;\n  padding: 0;\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n  padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n  list-style-type: none;\n}\n.ql-editor ul > li::before {\n  content: '\\\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n  pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n  pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n  color: #777;\n  cursor: pointer;\n  pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n  content: '\\\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n  content: '\\\\2610';\n}\n.ql-editor li::before {\n  display: inline-block;\n  white-space: nowrap;\n  width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n  margin-left: -1.5em;\n  margin-right: 0.3em;\n  text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n  margin-left: 0.3em;\n  margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n  padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n  padding-right: 1.5em;\n}\n.ql-editor ol li {\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n  counter-increment: list-0;\n}\n.ql-editor ol li:before {\n  content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n  counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n  content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n  counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n  content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n  counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n  content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n  counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n  content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n  counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n  counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n  content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n  counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n  counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n  content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n  counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n  counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n  content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n  counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n  counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n  content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n  counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n  counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n  content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n  padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n  padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n  padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n  padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n  padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n  padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n  padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n  padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n  padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n  padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n  padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n  padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n  padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n  padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n  padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n  padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n  padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n  padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n  padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n  padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n  padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n  padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n  padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n  padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n  padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n  padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n  padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n  padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n  padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n  padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n  padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n  padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n  padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n  padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n  padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n  padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n  display: block;\n  max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n  margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n  margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n  background-color: #000;\n}\n.ql-editor .ql-bg-red {\n  background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n  background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n  background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n  background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n  background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n  background-color: #93f;\n}\n.ql-editor .ql-color-white {\n  color: #fff;\n}\n.ql-editor .ql-color-red {\n  color: #e60000;\n}\n.ql-editor .ql-color-orange {\n  color: #f90;\n}\n.ql-editor .ql-color-yellow {\n  color: #ff0;\n}\n.ql-editor .ql-color-green {\n  color: #008a00;\n}\n.ql-editor .ql-color-blue {\n  color: #06c;\n}\n.ql-editor .ql-color-purple {\n  color: #93f;\n}\n.ql-editor .ql-font-serif {\n  font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n  font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n  font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n  font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n  font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n  direction: rtl;\n  text-align: inherit;\n}\n.ql-editor .ql-align-center {\n  text-align: center;\n}\n.ql-editor .ql-align-justify {\n  text-align: justify;\n}\n.ql-editor .ql-align-right {\n  text-align: right;\n}\n.ql-editor.ql-blank::before {\n  color: rgba(0,0,0,0.6);\n  content: attr(data-placeholder);\n  font-style: italic;\n  left: 15px;\n  pointer-events: none;\n  position: absolute;\n  right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n  clear: both;\n  content: '';\n  display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n  background: none;\n  border: none;\n  cursor: pointer;\n  display: inline-block;\n  float: left;\n  height: 24px;\n  padding: 3px 5px;\n  width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n  float: left;\n  height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n  outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n  display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n  color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n  fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n  stroke: #06c;\n}\n@media (pointer: coarse) {\n  .ql-snow.ql-toolbar button:hover:not(.ql-active),\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n    color: #444;\n  }\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n    fill: #444;\n  }\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n    stroke: #444;\n  }\n}\n.ql-snow {\n  box-sizing: border-box;\n}\n.ql-snow * {\n  box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n  display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n  visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n  position: absolute;\n  transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n  cursor: pointer;\n  text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n  transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n  display: inline-block;\n  vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n  clear: both;\n  content: '';\n  display: table;\n}\n.ql-snow .ql-stroke {\n  fill: none;\n  stroke: #444;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n  fill: none;\n  stroke: #444;\n  stroke-miterlimit: 10;\n  stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n  fill: #444;\n}\n.ql-snow .ql-empty {\n  fill: none;\n}\n.ql-snow .ql-even {\n  fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n  stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n  opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n  display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n  display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n  display: none;\n}\n.ql-snow .ql-editor h1 {\n  font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n  font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n  font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n  font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n  font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n  font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n  text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n  border-left: 4px solid #ccc;\n  margin-bottom: 5px;\n  margin-top: 5px;\n  padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n  background-color: #f0f0f0;\n  border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n  white-space: pre-wrap;\n  margin-bottom: 5px;\n  margin-top: 5px;\n  padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n  font-size: 85%;\n  padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n  background-color: #23241f;\n  color: #f8f8f2;\n  overflow: visible;\n}\n.ql-snow .ql-editor img {\n  max-width: 100%;\n}\n.ql-snow .ql-picker {\n  color: #444;\n  display: inline-block;\n  float: left;\n  font-size: 14px;\n  font-weight: 500;\n  height: 24px;\n  position: relative;\n  vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n  cursor: pointer;\n  display: inline-block;\n  height: 100%;\n  padding-left: 8px;\n  padding-right: 2px;\n  position: relative;\n  width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n  display: inline-block;\n  line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n  background-color: #fff;\n  display: none;\n  min-width: 100%;\n  padding: 4px 8px;\n  position: absolute;\n  white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n  cursor: pointer;\n  display: block;\n  padding-bottom: 5px;\n  padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n  color: #ccc;\n  z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n  fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n  stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n  display: block;\n  margin-top: -1px;\n  top: 100%;\n  z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n  width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n  padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n  right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n  padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n  height: 24px;\n  width: 24px;\n  padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n  padding: 3px 5px;\n  width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n  border: 1px solid transparent;\n  float: left;\n  height: 16px;\n  margin: 2px;\n  padding: 0px;\n  width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n  position: absolute;\n  margin-top: -9px;\n  right: 0;\n  top: 50%;\n  width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n  content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n  width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n  content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n  content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n  content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n  content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n  content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n  content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n  content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n  font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n  font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n  font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n  font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n  font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n  font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n  width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n  content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n  content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n  content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n  font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n  font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n  width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n  content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n  content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n  content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n  content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n  font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n  font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n  font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n  background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n  background-color: #000;\n}\n.ql-toolbar.ql-snow {\n  border: 1px solid #ccc;\n  box-sizing: border-box;\n  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n  padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n  margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n  border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n  border: 1px solid transparent;\n  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n  border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n  border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n  border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n  border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n  background-color: #fff;\n  border: 1px solid #ccc;\n  box-shadow: 0px 0px 5px #ddd;\n  color: #444;\n  padding: 5px 12px;\n  white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n  content: \"Visit URL:\";\n  line-height: 26px;\n  margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n  display: none;\n  border: 1px solid #ccc;\n  font-size: 13px;\n  height: 26px;\n  margin: 0px;\n  padding: 3px 5px;\n  width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n  display: inline-block;\n  max-width: 200px;\n  overflow-x: hidden;\n  text-overflow: ellipsis;\n  vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n  border-right: 1px solid #ccc;\n  content: 'Edit';\n  margin-left: 16px;\n  padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n  content: 'Remove';\n  margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n  line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n  display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n  display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n  border-right: 0px;\n  content: 'Save';\n  padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n  content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n  content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n  content: \"Enter video:\";\n}\n.ql-snow a {\n  color: #06c;\n}\n.ql-container.ql-snow {\n  border: 1px solid #ccc;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/react-quill/dist/quill.snow.css\"],\"names\":[],\"mappings\":\"AAAA;;;;;EAKE;AACF;EACE,sBAAsB;EACtB,yCAAyC;EACzC,eAAe;EACf,YAAY;EACZ,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,iBAAiB;EACjB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,kBAAkB;EAClB,WAAW;EACX,gBAAgB;EAChB,gBAAgB;EAChB,qBAAqB;EACrB,qBAAqB;AACvB;AACA;EACE,YAAY;AACd;AACA;;;;;;;;;;;EAWE,SAAS;EACT,UAAU;EACV,6EAA6E;AAC/E;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,qBAAqB;AACvB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,WAAW;EACX,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,6EAA6E;EAC7E,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,sEAAsE;AACxE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,+DAA+D;AACjE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,wDAAwD;AAC1D;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,iDAAiD;AACnD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,mCAAmC;AACrC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sCAAsC;AACxC;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,+BAA+B;EAC/B,kBAAkB;EAClB,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,WAAW;EACX,cAAc;AAChB;AACA;;EAEE,gBAAgB;EAChB,YAAY;EACZ,eAAe;EACf,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,YAAY;AACd;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;;;;;;;;;;;;;;EAcE,WAAW;AACb;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE,UAAU;AACZ;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BE,YAAY;AACd;AACA;EACE;;IAEE,WAAW;EACb;EACA;;;;IAIE,UAAU;EACZ;EACA;;;;IAIE,YAAY;EACd;AACF;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,aAAa;AACf;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,2BAA2B;AAC7B;AACA;EACE,eAAe;EACf,qBAAqB;AACvB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,WAAW;EACX,WAAW;EACX,cAAc;AAChB;AACA;EACE,UAAU;EACV,YAAY;EACZ,qBAAqB;EACrB,sBAAsB;EACtB,eAAe;AACjB;AACA;EACE,UAAU;EACV,YAAY;EACZ,qBAAqB;EACrB,eAAe;AACjB;AACA;;EAEE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,yBAAyB;EACzB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,eAAe;EACf,qBAAqB;EACrB,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,SAAS;EACT,UAAU;AACZ;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,6BAA6B;EAC7B,WAAW;EACX,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,QAAQ;EACR,QAAQ;EACR,WAAW;AACb;AACA;;;;;;EAME,yBAAyB;AAC3B;AACA;EACE,WAAW;AACb;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,WAAW;AACb;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;EACtB,sBAAsB;EACtB,+DAA+D;EAC/D,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,qCAAqC;AACvC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,sBAAsB;EACtB,4BAA4B;EAC5B,WAAW;EACX,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,eAAe;EACf,YAAY;EACZ,WAAW;EACX,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,4BAA4B;EAC5B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,aAAa;AACf;AACA;EACE,qBAAqB;AACvB;AACA;EACE,iBAAiB;EACjB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,WAAW;AACb;AACA;EACE,sBAAsB;AACxB\",\"sourcesContent\":[\"/*!\\n * Quill Editor v1.3.7\\n * https://quilljs.com/\\n * Copyright (c) 2014, Jason Chen\\n * Copyright (c) 2013, salesforce.com\\n */\\n.ql-container {\\n  box-sizing: border-box;\\n  font-family: Helvetica, Arial, sans-serif;\\n  font-size: 13px;\\n  height: 100%;\\n  margin: 0px;\\n  position: relative;\\n}\\n.ql-container.ql-disabled .ql-tooltip {\\n  visibility: hidden;\\n}\\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\\n  pointer-events: none;\\n}\\n.ql-clipboard {\\n  left: -100000px;\\n  height: 1px;\\n  overflow-y: hidden;\\n  position: absolute;\\n  top: 50%;\\n}\\n.ql-clipboard p {\\n  margin: 0;\\n  padding: 0;\\n}\\n.ql-editor {\\n  box-sizing: border-box;\\n  line-height: 1.42;\\n  height: 100%;\\n  outline: none;\\n  overflow-y: auto;\\n  padding: 12px 15px;\\n  tab-size: 4;\\n  -moz-tab-size: 4;\\n  text-align: left;\\n  white-space: pre-wrap;\\n  word-wrap: break-word;\\n}\\n.ql-editor > * {\\n  cursor: text;\\n}\\n.ql-editor p,\\n.ql-editor ol,\\n.ql-editor ul,\\n.ql-editor pre,\\n.ql-editor blockquote,\\n.ql-editor h1,\\n.ql-editor h2,\\n.ql-editor h3,\\n.ql-editor h4,\\n.ql-editor h5,\\n.ql-editor h6 {\\n  margin: 0;\\n  padding: 0;\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol,\\n.ql-editor ul {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol > li,\\n.ql-editor ul > li {\\n  list-style-type: none;\\n}\\n.ql-editor ul > li::before {\\n  content: '\\\\2022';\\n}\\n.ql-editor ul[data-checked=true],\\n.ql-editor ul[data-checked=false] {\\n  pointer-events: none;\\n}\\n.ql-editor ul[data-checked=true] > li *,\\n.ql-editor ul[data-checked=false] > li * {\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before,\\n.ql-editor ul[data-checked=false] > li::before {\\n  color: #777;\\n  cursor: pointer;\\n  pointer-events: all;\\n}\\n.ql-editor ul[data-checked=true] > li::before {\\n  content: '\\\\2611';\\n}\\n.ql-editor ul[data-checked=false] > li::before {\\n  content: '\\\\2610';\\n}\\n.ql-editor li::before {\\n  display: inline-block;\\n  white-space: nowrap;\\n  width: 1.2em;\\n}\\n.ql-editor li:not(.ql-direction-rtl)::before {\\n  margin-left: -1.5em;\\n  margin-right: 0.3em;\\n  text-align: right;\\n}\\n.ql-editor li.ql-direction-rtl::before {\\n  margin-left: 0.3em;\\n  margin-right: -1.5em;\\n}\\n.ql-editor ol li:not(.ql-direction-rtl),\\n.ql-editor ul li:not(.ql-direction-rtl) {\\n  padding-left: 1.5em;\\n}\\n.ql-editor ol li.ql-direction-rtl,\\n.ql-editor ul li.ql-direction-rtl {\\n  padding-right: 1.5em;\\n}\\n.ql-editor ol li {\\n  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n  counter-increment: list-0;\\n}\\n.ql-editor ol li:before {\\n  content: counter(list-0, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-increment: list-1;\\n}\\n.ql-editor ol li.ql-indent-1:before {\\n  content: counter(list-1, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-1 {\\n  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-increment: list-2;\\n}\\n.ql-editor ol li.ql-indent-2:before {\\n  content: counter(list-2, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-2 {\\n  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-increment: list-3;\\n}\\n.ql-editor ol li.ql-indent-3:before {\\n  content: counter(list-3, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-3 {\\n  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-increment: list-4;\\n}\\n.ql-editor ol li.ql-indent-4:before {\\n  content: counter(list-4, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-4 {\\n  counter-reset: list-5 list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-increment: list-5;\\n}\\n.ql-editor ol li.ql-indent-5:before {\\n  content: counter(list-5, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-5 {\\n  counter-reset: list-6 list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-increment: list-6;\\n}\\n.ql-editor ol li.ql-indent-6:before {\\n  content: counter(list-6, decimal) '. ';\\n}\\n.ql-editor ol li.ql-indent-6 {\\n  counter-reset: list-7 list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-increment: list-7;\\n}\\n.ql-editor ol li.ql-indent-7:before {\\n  content: counter(list-7, lower-alpha) '. ';\\n}\\n.ql-editor ol li.ql-indent-7 {\\n  counter-reset: list-8 list-9;\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-increment: list-8;\\n}\\n.ql-editor ol li.ql-indent-8:before {\\n  content: counter(list-8, lower-roman) '. ';\\n}\\n.ql-editor ol li.ql-indent-8 {\\n  counter-reset: list-9;\\n}\\n.ql-editor ol li.ql-indent-9 {\\n  counter-increment: list-9;\\n}\\n.ql-editor ol li.ql-indent-9:before {\\n  content: counter(list-9, decimal) '. ';\\n}\\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 3em;\\n}\\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\\n  padding-left: 4.5em;\\n}\\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 3em;\\n}\\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\\n  padding-right: 4.5em;\\n}\\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 6em;\\n}\\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\\n  padding-left: 7.5em;\\n}\\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 6em;\\n}\\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\\n  padding-right: 7.5em;\\n}\\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 9em;\\n}\\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\\n  padding-left: 10.5em;\\n}\\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 9em;\\n}\\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\\n  padding-right: 10.5em;\\n}\\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 12em;\\n}\\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\\n  padding-left: 13.5em;\\n}\\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 12em;\\n}\\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\\n  padding-right: 13.5em;\\n}\\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 15em;\\n}\\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\\n  padding-left: 16.5em;\\n}\\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 15em;\\n}\\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\\n  padding-right: 16.5em;\\n}\\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 18em;\\n}\\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\\n  padding-left: 19.5em;\\n}\\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 18em;\\n}\\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\\n  padding-right: 19.5em;\\n}\\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 21em;\\n}\\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\\n  padding-left: 22.5em;\\n}\\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 21em;\\n}\\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\\n  padding-right: 22.5em;\\n}\\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 24em;\\n}\\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\\n  padding-left: 25.5em;\\n}\\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 24em;\\n}\\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\\n  padding-right: 25.5em;\\n}\\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 27em;\\n}\\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\\n  padding-left: 28.5em;\\n}\\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 27em;\\n}\\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\\n  padding-right: 28.5em;\\n}\\n.ql-editor .ql-video {\\n  display: block;\\n  max-width: 100%;\\n}\\n.ql-editor .ql-video.ql-align-center {\\n  margin: 0 auto;\\n}\\n.ql-editor .ql-video.ql-align-right {\\n  margin: 0 0 0 auto;\\n}\\n.ql-editor .ql-bg-black {\\n  background-color: #000;\\n}\\n.ql-editor .ql-bg-red {\\n  background-color: #e60000;\\n}\\n.ql-editor .ql-bg-orange {\\n  background-color: #f90;\\n}\\n.ql-editor .ql-bg-yellow {\\n  background-color: #ff0;\\n}\\n.ql-editor .ql-bg-green {\\n  background-color: #008a00;\\n}\\n.ql-editor .ql-bg-blue {\\n  background-color: #06c;\\n}\\n.ql-editor .ql-bg-purple {\\n  background-color: #93f;\\n}\\n.ql-editor .ql-color-white {\\n  color: #fff;\\n}\\n.ql-editor .ql-color-red {\\n  color: #e60000;\\n}\\n.ql-editor .ql-color-orange {\\n  color: #f90;\\n}\\n.ql-editor .ql-color-yellow {\\n  color: #ff0;\\n}\\n.ql-editor .ql-color-green {\\n  color: #008a00;\\n}\\n.ql-editor .ql-color-blue {\\n  color: #06c;\\n}\\n.ql-editor .ql-color-purple {\\n  color: #93f;\\n}\\n.ql-editor .ql-font-serif {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-editor .ql-font-monospace {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-editor .ql-size-small {\\n  font-size: 0.75em;\\n}\\n.ql-editor .ql-size-large {\\n  font-size: 1.5em;\\n}\\n.ql-editor .ql-size-huge {\\n  font-size: 2.5em;\\n}\\n.ql-editor .ql-direction-rtl {\\n  direction: rtl;\\n  text-align: inherit;\\n}\\n.ql-editor .ql-align-center {\\n  text-align: center;\\n}\\n.ql-editor .ql-align-justify {\\n  text-align: justify;\\n}\\n.ql-editor .ql-align-right {\\n  text-align: right;\\n}\\n.ql-editor.ql-blank::before {\\n  color: rgba(0,0,0,0.6);\\n  content: attr(data-placeholder);\\n  font-style: italic;\\n  left: 15px;\\n  pointer-events: none;\\n  position: absolute;\\n  right: 15px;\\n}\\n.ql-snow.ql-toolbar:after,\\n.ql-snow .ql-toolbar:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow.ql-toolbar button,\\n.ql-snow .ql-toolbar button {\\n  background: none;\\n  border: none;\\n  cursor: pointer;\\n  display: inline-block;\\n  float: left;\\n  height: 24px;\\n  padding: 3px 5px;\\n  width: 28px;\\n}\\n.ql-snow.ql-toolbar button svg,\\n.ql-snow .ql-toolbar button svg {\\n  float: left;\\n  height: 100%;\\n}\\n.ql-snow.ql-toolbar button:active:hover,\\n.ql-snow .ql-toolbar button:active:hover {\\n  outline: none;\\n}\\n.ql-snow.ql-toolbar input.ql-image[type=file],\\n.ql-snow .ql-toolbar input.ql-image[type=file] {\\n  display: none;\\n}\\n.ql-snow.ql-toolbar button:hover,\\n.ql-snow .ql-toolbar button:hover,\\n.ql-snow.ql-toolbar button:focus,\\n.ql-snow .ql-toolbar button:focus,\\n.ql-snow.ql-toolbar button.ql-active,\\n.ql-snow .ql-toolbar button.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-label:hover,\\n.ql-snow .ql-toolbar .ql-picker-label:hover,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\\n.ql-snow.ql-toolbar .ql-picker-item:hover,\\n.ql-snow .ql-toolbar .ql-picker-item:hover,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\\n  color: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\\n  fill: #06c;\\n}\\n.ql-snow.ql-toolbar button:hover .ql-stroke,\\n.ql-snow .ql-toolbar button:hover .ql-stroke,\\n.ql-snow.ql-toolbar button:focus .ql-stroke,\\n.ql-snow .ql-toolbar button:focus .ql-stroke,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\\n  stroke: #06c;\\n}\\n@media (pointer: coarse) {\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active),\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) {\\n    color: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\\n    fill: #444;\\n  }\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\\n  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\\n  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\\n    stroke: #444;\\n  }\\n}\\n.ql-snow {\\n  box-sizing: border-box;\\n}\\n.ql-snow * {\\n  box-sizing: border-box;\\n}\\n.ql-snow .ql-hidden {\\n  display: none;\\n}\\n.ql-snow .ql-out-bottom,\\n.ql-snow .ql-out-top {\\n  visibility: hidden;\\n}\\n.ql-snow .ql-tooltip {\\n  position: absolute;\\n  transform: translateY(10px);\\n}\\n.ql-snow .ql-tooltip a {\\n  cursor: pointer;\\n  text-decoration: none;\\n}\\n.ql-snow .ql-tooltip.ql-flip {\\n  transform: translateY(-10px);\\n}\\n.ql-snow .ql-formats {\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-formats:after {\\n  clear: both;\\n  content: '';\\n  display: table;\\n}\\n.ql-snow .ql-stroke {\\n  fill: none;\\n  stroke: #444;\\n  stroke-linecap: round;\\n  stroke-linejoin: round;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-stroke-miter {\\n  fill: none;\\n  stroke: #444;\\n  stroke-miterlimit: 10;\\n  stroke-width: 2;\\n}\\n.ql-snow .ql-fill,\\n.ql-snow .ql-stroke.ql-fill {\\n  fill: #444;\\n}\\n.ql-snow .ql-empty {\\n  fill: none;\\n}\\n.ql-snow .ql-even {\\n  fill-rule: evenodd;\\n}\\n.ql-snow .ql-thin,\\n.ql-snow .ql-stroke.ql-thin {\\n  stroke-width: 1;\\n}\\n.ql-snow .ql-transparent {\\n  opacity: 0.4;\\n}\\n.ql-snow .ql-direction svg:last-child {\\n  display: none;\\n}\\n.ql-snow .ql-direction.ql-active svg:last-child {\\n  display: inline;\\n}\\n.ql-snow .ql-direction.ql-active svg:first-child {\\n  display: none;\\n}\\n.ql-snow .ql-editor h1 {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-editor h2 {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-editor h3 {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-editor h4 {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-editor h5 {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-editor h6 {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-editor a {\\n  text-decoration: underline;\\n}\\n.ql-snow .ql-editor blockquote {\\n  border-left: 4px solid #ccc;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding-left: 16px;\\n}\\n.ql-snow .ql-editor code,\\n.ql-snow .ql-editor pre {\\n  background-color: #f0f0f0;\\n  border-radius: 3px;\\n}\\n.ql-snow .ql-editor pre {\\n  white-space: pre-wrap;\\n  margin-bottom: 5px;\\n  margin-top: 5px;\\n  padding: 5px 10px;\\n}\\n.ql-snow .ql-editor code {\\n  font-size: 85%;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-editor pre.ql-syntax {\\n  background-color: #23241f;\\n  color: #f8f8f2;\\n  overflow: visible;\\n}\\n.ql-snow .ql-editor img {\\n  max-width: 100%;\\n}\\n.ql-snow .ql-picker {\\n  color: #444;\\n  display: inline-block;\\n  float: left;\\n  font-size: 14px;\\n  font-weight: 500;\\n  height: 24px;\\n  position: relative;\\n  vertical-align: middle;\\n}\\n.ql-snow .ql-picker-label {\\n  cursor: pointer;\\n  display: inline-block;\\n  height: 100%;\\n  padding-left: 8px;\\n  padding-right: 2px;\\n  position: relative;\\n  width: 100%;\\n}\\n.ql-snow .ql-picker-label::before {\\n  display: inline-block;\\n  line-height: 22px;\\n}\\n.ql-snow .ql-picker-options {\\n  background-color: #fff;\\n  display: none;\\n  min-width: 100%;\\n  padding: 4px 8px;\\n  position: absolute;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-picker-options .ql-picker-item {\\n  cursor: pointer;\\n  display: block;\\n  padding-bottom: 5px;\\n  padding-top: 5px;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  color: #ccc;\\n  z-index: 2;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\\n  fill: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\\n  stroke: #ccc;\\n}\\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  display: block;\\n  margin-top: -1px;\\n  top: 100%;\\n  z-index: 1;\\n}\\n.ql-snow .ql-color-picker,\\n.ql-snow .ql-icon-picker {\\n  width: 28px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label,\\n.ql-snow .ql-icon-picker .ql-picker-label {\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-label svg,\\n.ql-snow .ql-icon-picker .ql-picker-label svg {\\n  right: 4px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-options {\\n  padding: 4px 0px;\\n}\\n.ql-snow .ql-icon-picker .ql-picker-item {\\n  height: 24px;\\n  width: 24px;\\n  padding: 2px 4px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-options {\\n  padding: 3px 5px;\\n  width: 152px;\\n}\\n.ql-snow .ql-color-picker .ql-picker-item {\\n  border: 1px solid transparent;\\n  float: left;\\n  height: 16px;\\n  margin: 2px;\\n  padding: 0px;\\n  width: 16px;\\n}\\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\\n  position: absolute;\\n  margin-top: -9px;\\n  right: 0;\\n  top: 50%;\\n  width: 18px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\\n  content: attr(data-label);\\n}\\n.ql-snow .ql-picker.ql-header {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"1\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  content: 'Heading 1';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"2\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  content: 'Heading 2';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"3\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  content: 'Heading 3';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"4\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  content: 'Heading 4';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"5\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  content: 'Heading 5';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\\\"6\\\"]::before,\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  content: 'Heading 6';\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"1\\\"]::before {\\n  font-size: 2em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"2\\\"]::before {\\n  font-size: 1.5em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"3\\\"]::before {\\n  font-size: 1.17em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"4\\\"]::before {\\n  font-size: 1em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"5\\\"]::before {\\n  font-size: 0.83em;\\n}\\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\\\"6\\\"]::before {\\n  font-size: 0.67em;\\n}\\n.ql-snow .ql-picker.ql-font {\\n  width: 108px;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\\n  content: 'Sans Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  content: 'Serif';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  content: 'Monospace';\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\\n  font-family: Georgia, Times New Roman, serif;\\n}\\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\\n  font-family: Monaco, Courier New, monospace;\\n}\\n.ql-snow .ql-picker.ql-size {\\n  width: 98px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\\n  content: 'Normal';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  content: 'Small';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  content: 'Large';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  content: 'Huge';\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\\n  font-size: 10px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\\n  font-size: 18px;\\n}\\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\\n  font-size: 32px;\\n}\\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\\n  background-color: #fff;\\n}\\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\\n  background-color: #000;\\n}\\n.ql-toolbar.ql-snow {\\n  border: 1px solid #ccc;\\n  box-sizing: border-box;\\n  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\\n  padding: 8px;\\n}\\n.ql-toolbar.ql-snow .ql-formats {\\n  margin-right: 15px;\\n}\\n.ql-toolbar.ql-snow .ql-picker-label {\\n  border: 1px solid transparent;\\n}\\n.ql-toolbar.ql-snow .ql-picker-options {\\n  border: 1px solid transparent;\\n  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\\n  border-color: #ccc;\\n}\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\\n  border-color: #000;\\n}\\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\\n  border-top: 0px;\\n}\\n.ql-snow .ql-tooltip {\\n  background-color: #fff;\\n  border: 1px solid #ccc;\\n  box-shadow: 0px 0px 5px #ddd;\\n  color: #444;\\n  padding: 5px 12px;\\n  white-space: nowrap;\\n}\\n.ql-snow .ql-tooltip::before {\\n  content: \\\"Visit URL:\\\";\\n  line-height: 26px;\\n  margin-right: 8px;\\n}\\n.ql-snow .ql-tooltip input[type=text] {\\n  display: none;\\n  border: 1px solid #ccc;\\n  font-size: 13px;\\n  height: 26px;\\n  margin: 0px;\\n  padding: 3px 5px;\\n  width: 170px;\\n}\\n.ql-snow .ql-tooltip a.ql-preview {\\n  display: inline-block;\\n  max-width: 200px;\\n  overflow-x: hidden;\\n  text-overflow: ellipsis;\\n  vertical-align: top;\\n}\\n.ql-snow .ql-tooltip a.ql-action::after {\\n  border-right: 1px solid #ccc;\\n  content: 'Edit';\\n  margin-left: 16px;\\n  padding-right: 8px;\\n}\\n.ql-snow .ql-tooltip a.ql-remove::before {\\n  content: 'Remove';\\n  margin-left: 8px;\\n}\\n.ql-snow .ql-tooltip a {\\n  line-height: 26px;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\\n  display: none;\\n}\\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\\n  display: inline-block;\\n}\\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\\n  border-right: 0px;\\n  content: 'Save';\\n  padding-right: 0px;\\n}\\n.ql-snow .ql-tooltip[data-mode=link]::before {\\n  content: \\\"Enter link:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=formula]::before {\\n  content: \\\"Enter formula:\\\";\\n}\\n.ql-snow .ql-tooltip[data-mode=video]::before {\\n  content: \\\"Enter video:\\\";\\n}\\n.ql-snow a {\\n  color: #06c;\\n}\\n.ql-container.ql-snow {\\n  border: 1px solid #ccc;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:root {\n  --toastify-color-light: #fff;\n  --toastify-color-dark: #121212;\n  --toastify-color-info: #3498db;\n  --toastify-color-success: #07bc0c;\n  --toastify-color-warning: #f1c40f;\n  --toastify-color-error: #e74c3c;\n  --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n  --toastify-icon-color-info: var(--toastify-color-info);\n  --toastify-icon-color-success: var(--toastify-color-success);\n  --toastify-icon-color-warning: var(--toastify-color-warning);\n  --toastify-icon-color-error: var(--toastify-color-error);\n  --toastify-toast-width: 320px;\n  --toastify-toast-background: #fff;\n  --toastify-toast-min-height: 64px;\n  --toastify-toast-max-height: 800px;\n  --toastify-font-family: sans-serif;\n  --toastify-z-index: 9999;\n  --toastify-text-color-light: #757575;\n  --toastify-text-color-dark: #fff;\n  --toastify-text-color-info: #fff;\n  --toastify-text-color-success: #fff;\n  --toastify-text-color-warning: #fff;\n  --toastify-text-color-error: #fff;\n  --toastify-spinner-color: #616161;\n  --toastify-spinner-color-empty-area: #e0e0e0;\n  --toastify-color-progress-light: linear-gradient(\n    to right,\n    #4cd964,\n    #5ac8fa,\n    #007aff,\n    #34aadc,\n    #5856d6,\n    #ff2d55\n  );\n  --toastify-color-progress-dark: #bb86fc;\n  --toastify-color-progress-info: var(--toastify-color-info);\n  --toastify-color-progress-success: var(--toastify-color-success);\n  --toastify-color-progress-warning: var(--toastify-color-warning);\n  --toastify-color-progress-error: var(--toastify-color-error);\n}\n\n.Toastify__toast-container {\n  z-index: var(--toastify-z-index);\n  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n  position: fixed;\n  padding: 4px;\n  width: var(--toastify-toast-width);\n  box-sizing: border-box;\n  color: #fff;\n}\n.Toastify__toast-container--top-left {\n  top: 1em;\n  left: 1em;\n}\n.Toastify__toast-container--top-center {\n  top: 1em;\n  left: 50%;\n  transform: translateX(-50%);\n}\n.Toastify__toast-container--top-right {\n  top: 1em;\n  right: 1em;\n}\n.Toastify__toast-container--bottom-left {\n  bottom: 1em;\n  left: 1em;\n}\n.Toastify__toast-container--bottom-center {\n  bottom: 1em;\n  left: 50%;\n  transform: translateX(-50%);\n}\n.Toastify__toast-container--bottom-right {\n  bottom: 1em;\n  right: 1em;\n}\n\n@media only screen and (max-width : 480px) {\n  .Toastify__toast-container {\n    width: 100vw;\n    padding: 0;\n    left: 0;\n    margin: 0;\n  }\n  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {\n    top: 0;\n    transform: translateX(0);\n  }\n  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {\n    bottom: 0;\n    transform: translateX(0);\n  }\n  .Toastify__toast-container--rtl {\n    right: 0;\n    left: initial;\n  }\n}\n.Toastify__toast {\n  position: relative;\n  min-height: var(--toastify-toast-min-height);\n  box-sizing: border-box;\n  margin-bottom: 1rem;\n  padding: 8px;\n  border-radius: 4px;\n  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-pack: justify;\n      justify-content: space-between;\n  max-height: var(--toastify-toast-max-height);\n  overflow: hidden;\n  font-family: var(--toastify-font-family);\n  cursor: default;\n  direction: ltr;\n  /* webkit only issue #791 */\n  z-index: 0;\n}\n.Toastify__toast--rtl {\n  direction: rtl;\n}\n.Toastify__toast--close-on-click {\n  cursor: pointer;\n}\n.Toastify__toast-body {\n  margin: auto 0;\n  -ms-flex: 1 1 auto;\n      flex: 1 1 auto;\n  padding: 6px;\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-align: center;\n      align-items: center;\n}\n.Toastify__toast-body > div:last-child {\n  word-break: break-word;\n  -ms-flex: 1;\n      flex: 1;\n}\n.Toastify__toast-icon {\n  -webkit-margin-end: 10px;\n          margin-inline-end: 10px;\n  width: 20px;\n  -ms-flex-negative: 0;\n      flex-shrink: 0;\n  display: -ms-flexbox;\n  display: flex;\n}\n\n.Toastify--animate {\n  animation-fill-mode: both;\n  animation-duration: 0.7s;\n}\n\n.Toastify--animate-icon {\n  animation-fill-mode: both;\n  animation-duration: 0.3s;\n}\n\n@media only screen and (max-width : 480px) {\n  .Toastify__toast {\n    margin-bottom: 0;\n    border-radius: 0;\n  }\n}\n.Toastify__toast-theme--dark {\n  background: var(--toastify-color-dark);\n  color: var(--toastify-text-color-dark);\n}\n.Toastify__toast-theme--light {\n  background: var(--toastify-color-light);\n  color: var(--toastify-text-color-light);\n}\n.Toastify__toast-theme--colored.Toastify__toast--default {\n  background: var(--toastify-color-light);\n  color: var(--toastify-text-color-light);\n}\n.Toastify__toast-theme--colored.Toastify__toast--info {\n  color: var(--toastify-text-color-info);\n  background: var(--toastify-color-info);\n}\n.Toastify__toast-theme--colored.Toastify__toast--success {\n  color: var(--toastify-text-color-success);\n  background: var(--toastify-color-success);\n}\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n  color: var(--toastify-text-color-warning);\n  background: var(--toastify-color-warning);\n}\n.Toastify__toast-theme--colored.Toastify__toast--error {\n  color: var(--toastify-text-color-error);\n  background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n  background: var(--toastify-color-progress-light);\n}\n.Toastify__progress-bar-theme--dark {\n  background: var(--toastify-color-progress-dark);\n}\n.Toastify__progress-bar--info {\n  background: var(--toastify-color-progress-info);\n}\n.Toastify__progress-bar--success {\n  background: var(--toastify-color-progress-success);\n}\n.Toastify__progress-bar--warning {\n  background: var(--toastify-color-progress-warning);\n}\n.Toastify__progress-bar--error {\n  background: var(--toastify-color-progress-error);\n}\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n  background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n  color: #fff;\n  background: transparent;\n  outline: none;\n  border: none;\n  padding: 0;\n  cursor: pointer;\n  opacity: 0.7;\n  transition: 0.3s ease;\n  -ms-flex-item-align: start;\n      align-self: flex-start;\n}\n.Toastify__close-button--light {\n  color: #000;\n  opacity: 0.3;\n}\n.Toastify__close-button > svg {\n  fill: currentColor;\n  height: 16px;\n  width: 14px;\n}\n.Toastify__close-button:hover, .Toastify__close-button:focus {\n  opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n  0% {\n    transform: scaleX(1);\n  }\n  100% {\n    transform: scaleX(0);\n  }\n}\n.Toastify__progress-bar {\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  height: 5px;\n  z-index: var(--toastify-z-index);\n  opacity: 0.7;\n  transform-origin: left;\n}\n.Toastify__progress-bar--animated {\n  animation: Toastify__trackProgress linear 1 forwards;\n}\n.Toastify__progress-bar--controlled {\n  transition: transform 0.2s;\n}\n.Toastify__progress-bar--rtl {\n  right: 0;\n  left: initial;\n  transform-origin: right;\n}\n\n.Toastify__spinner {\n  width: 20px;\n  height: 20px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: var(--toastify-spinner-color-empty-area);\n  border-right-color: var(--toastify-spinner-color);\n  animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  from {\n    opacity: 0;\n    transform: translate3d(3000px, 0, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(-25px, 0, 0);\n  }\n  75% {\n    transform: translate3d(10px, 0, 0);\n  }\n  90% {\n    transform: translate3d(-5px, 0, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n@keyframes Toastify__bounceOutRight {\n  20% {\n    opacity: 1;\n    transform: translate3d(-20px, 0, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(2000px, 0, 0);\n  }\n}\n@keyframes Toastify__bounceInLeft {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  0% {\n    opacity: 0;\n    transform: translate3d(-3000px, 0, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(25px, 0, 0);\n  }\n  75% {\n    transform: translate3d(-10px, 0, 0);\n  }\n  90% {\n    transform: translate3d(5px, 0, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n@keyframes Toastify__bounceOutLeft {\n  20% {\n    opacity: 1;\n    transform: translate3d(20px, 0, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(-2000px, 0, 0);\n  }\n}\n@keyframes Toastify__bounceInUp {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  from {\n    opacity: 0;\n    transform: translate3d(0, 3000px, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n  75% {\n    transform: translate3d(0, 10px, 0);\n  }\n  90% {\n    transform: translate3d(0, -5px, 0);\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n@keyframes Toastify__bounceOutUp {\n  20% {\n    transform: translate3d(0, -10px, 0);\n  }\n  40%, 45% {\n    opacity: 1;\n    transform: translate3d(0, 20px, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(0, -2000px, 0);\n  }\n}\n@keyframes Toastify__bounceInDown {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  0% {\n    opacity: 0;\n    transform: translate3d(0, -3000px, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(0, 25px, 0);\n  }\n  75% {\n    transform: translate3d(0, -10px, 0);\n  }\n  90% {\n    transform: translate3d(0, 5px, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n@keyframes Toastify__bounceOutDown {\n  20% {\n    transform: translate3d(0, 10px, 0);\n  }\n  40%, 45% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(0, 2000px, 0);\n  }\n}\n.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {\n  animation-name: Toastify__bounceInLeft;\n}\n.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {\n  animation-name: Toastify__bounceInRight;\n}\n.Toastify__bounce-enter--top-center {\n  animation-name: Toastify__bounceInDown;\n}\n.Toastify__bounce-enter--bottom-center {\n  animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {\n  animation-name: Toastify__bounceOutLeft;\n}\n.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {\n  animation-name: Toastify__bounceOutRight;\n}\n.Toastify__bounce-exit--top-center {\n  animation-name: Toastify__bounceOutUp;\n}\n.Toastify__bounce-exit--bottom-center {\n  animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n  from {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n  50% {\n    opacity: 1;\n  }\n}\n@keyframes Toastify__zoomOut {\n  from {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n  to {\n    opacity: 0;\n  }\n}\n.Toastify__zoom-enter {\n  animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n  animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n  from {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    animation-timing-function: ease-in;\n    opacity: 0;\n  }\n  40% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    animation-timing-function: ease-in;\n  }\n  60% {\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1;\n  }\n  80% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n  }\n  to {\n    transform: perspective(400px);\n  }\n}\n@keyframes Toastify__flipOut {\n  from {\n    transform: perspective(400px);\n  }\n  30% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1;\n  }\n  to {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0;\n  }\n}\n.Toastify__flip-enter {\n  animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n  animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n  from {\n    transform: translate3d(110%, 0, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n@keyframes Toastify__slideInLeft {\n  from {\n    transform: translate3d(-110%, 0, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n@keyframes Toastify__slideInUp {\n  from {\n    transform: translate3d(0, 110%, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n@keyframes Toastify__slideInDown {\n  from {\n    transform: translate3d(0, -110%, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n@keyframes Toastify__slideOutRight {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(110%, 0, 0);\n  }\n}\n@keyframes Toastify__slideOutLeft {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(-110%, 0, 0);\n  }\n}\n@keyframes Toastify__slideOutDown {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(0, 500px, 0);\n  }\n}\n@keyframes Toastify__slideOutUp {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(0, -500px, 0);\n  }\n}\n.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {\n  animation-name: Toastify__slideInLeft;\n}\n.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {\n  animation-name: Toastify__slideInRight;\n}\n.Toastify__slide-enter--top-center {\n  animation-name: Toastify__slideInDown;\n}\n.Toastify__slide-enter--bottom-center {\n  animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {\n  animation-name: Toastify__slideOutLeft;\n}\n.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {\n  animation-name: Toastify__slideOutRight;\n}\n.Toastify__slide-exit--top-center {\n  animation-name: Toastify__slideOutUp;\n}\n.Toastify__slide-exit--bottom-center {\n  animation-name: Toastify__slideOutDown;\n}\n\n@keyframes Toastify__spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}\n\n/*# sourceMappingURL=ReactToastify.css.map */`, \"\",{\"version\":3,\"sources\":[\"webpack://./node_modules/react-toastify/scss/_variables.scss\",\"webpack://./node_modules/react-toastify/dist/ReactToastify.css\",\"webpack://./node_modules/react-toastify/scss/_toastContainer.scss\",\"webpack://./node_modules/react-toastify/scss/_toast.scss\",\"webpack://./node_modules/react-toastify/scss/_theme.scss\",\"webpack://./node_modules/react-toastify/scss/_closeButton.scss\",\"webpack://./node_modules/react-toastify/scss/_progressBar.scss\",\"webpack://./node_modules/react-toastify/scss/_icons.scss\",\"webpack://./node_modules/react-toastify/scss/animations/_bounce.scss\",\"webpack://./node_modules/react-toastify/scss/animations/_zoom.scss\",\"webpack://./node_modules/react-toastify/scss/animations/_flip.scss\",\"webpack://./node_modules/react-toastify/scss/animations/_slide.scss\",\"webpack://./node_modules/react-toastify/scss/animations/_spin.scss\"],\"names\":[],\"mappings\":\"AAGA;EACE,4BAAA;EACA,8BAAA;EACA,8BAAA;EACA,iCAAA;EACA,iCAAA;EACA,+BAAA;EACA,sDAAA;EAEA,sDAAA;EACA,4DAAA;EACA,4DAAA;EACA,wDAAA;EAEA,6BAAA;EACA,iCAAA;EACA,iCAAA;EACA,kCAAA;EACA,kCAAA;EACA,wBAAA;EAEA,oCAAA;EACA,gCAAA;EAGA,gCAAA;EACA,mCAAA;EACA,mCAAA;EACA,iCAAA;EAEA,iCAAA;EACA,4CAAA;EAGA;;;;;;;;GAAA;EAUA,uCAAA;EACA,0DAAA;EACA,gEAAA;EACA,gEAAA;EACA,4DAAA;ACXF;;ACxCA;EACE,gCAAA;EACA,6DAAA;EACA,eAAA;EACA,YAAA;EACA,kCAAA;EACA,sBAAA;EACA,WAAA;AD2CF;AC1CE;EACE,QAAA;EACA,SAAA;AD4CJ;AC1CE;EACE,QAAA;EACA,SAAA;EACA,2BAAA;AD4CJ;AC1CE;EACE,QAAA;EACA,UAAA;AD4CJ;AC1CE;EACE,WAAA;EACA,SAAA;AD4CJ;AC1CE;EACE,WAAA;EACA,SAAA;EACA,2BAAA;AD4CJ;AC1CE;EACE,WAAA;EACA,UAAA;AD4CJ;;ACxCA;EACE;IACE,YAAA;IACA,UAAA;IACA,OAAA;IACA,SAAA;ED2CF;EC1CE;IAGE,MAAA;IACA,wBAAA;ED0CJ;ECxCE;IAGE,SAAA;IACA,wBAAA;EDwCJ;ECtCE;IACE,QAAA;IACA,aAAA;EDwCJ;AACF;AEjGA;EACE,kBAAA;EACA,4CAAA;EACA,sBAAA;EACA,mBAAA;EACA,YAAA;EACA,kBAAA;EACA,6EAAA;EACA,oBAAA;EAAA,aAAA;EACA,sBAAA;MAAA,8BAAA;EACA,4CAAA;EACA,gBAAA;EACA,wCAAA;EACA,eAAA;EACA,cAAA;EACA,2BAAA;EACA,UAAA;AFmGF;AElGE;EACE,cAAA;AFoGJ;AElGE;EACE,eAAA;AFoGJ;AElGE;EACE,cAAA;EACA,kBAAA;MAAA,cAAA;EACA,YAAA;EACA,oBAAA;EAAA,aAAA;EACA,sBAAA;MAAA,mBAAA;AFoGJ;AEnGI;EACE,sBAAA;EACA,WAAA;MAAA,OAAA;AFqGN;AElGE;EACE,wBAAA;UAAA,uBAAA;EACA,WAAA;EACA,oBAAA;MAAA,cAAA;EACA,oBAAA;EAAA,aAAA;AFoGJ;;AEhGA;EACE,yBAAA;EACA,wBAAA;AFmGF;;AEhGA;EACE,yBAAA;EACA,wBAAA;AFmGF;;AEhGA;EACE;IACE,gBAAA;IACA,gBAAA;EFmGF;AACF;AG1JE;EACE,sCAAA;EACA,sCAAA;AH4JJ;AG1JE;EACE,uCAAA;EACA,uCAAA;AH4JJ;AG1JE;EACE,uCAAA;EACA,uCAAA;AH4JJ;AG1JE;EACE,sCAAA;EACA,sCAAA;AH4JJ;AG1JE;EACE,yCAAA;EACA,yCAAA;AH4JJ;AG1JE;EACE,yCAAA;EACA,yCAAA;AH4JJ;AG1JE;EACE,uCAAA;EACA,uCAAA;AH4JJ;;AGvJE;EACE,gDAAA;AH0JJ;AGxJE;EACE,+CAAA;AH0JJ;AGxJE;EACE,+CAAA;AH0JJ;AGxJE;EACE,kDAAA;AH0JJ;AGxJE;EACE,kDAAA;AH0JJ;AGxJE;EACE,gDAAA;AH0JJ;AGxJE;EAIE,6CAAA;AHuJJ;;AI7MA;EACE,WAAA;EACA,uBAAA;EACA,aAAA;EACA,YAAA;EACA,UAAA;EACA,eAAA;EACA,YAAA;EACA,qBAAA;EACA,0BAAA;MAAA,sBAAA;AJgNF;AI9ME;EACE,WAAA;EACA,YAAA;AJgNJ;AI7ME;EACE,kBAAA;EACA,YAAA;EACA,WAAA;AJ+MJ;AI5ME;EAEE,UAAA;AJ6MJ;;AKrOA;EACE;IACE,oBAAA;ELwOF;EKtOA;IACE,oBAAA;ELwOF;AACF;AKrOA;EACE,kBAAA;EACA,SAAA;EACA,OAAA;EACA,WAAA;EACA,WAAA;EACA,gCAAA;EACA,YAAA;EACA,sBAAA;ALuOF;AKrOE;EACE,oDAAA;ALuOJ;AKpOE;EACE,0BAAA;ALsOJ;AKnOE;EACE,QAAA;EACA,aAAA;EACA,uBAAA;ALqOJ;;AMnQA;EACE,WAAA;EACA,YAAA;EACA,sBAAA;EACA,iBAAA;EACA,mBAAA;EACA,sDAAA;EACA,iDAAA;EACA,+CAAA;ANsQF;;AO1QA;EACE;IAJA,8DAAA;EPkRA;EOvQA;IACE,UAAA;IACA,oCAAA;EPyQF;EOvQA;IACE,UAAA;IACA,mCAAA;EPyQF;EOvQA;IACE,kCAAA;EPyQF;EOvQA;IACE,kCAAA;EPyQF;EOvQA;IACE,eAAA;EPyQF;AACF;AOtQA;EACE;IACE,UAAA;IACA,mCAAA;EPwQF;EOtQA;IACE,UAAA;IACA,oCAAA;EPwQF;AACF;AOrQA;EACE;IA1CA,8DAAA;EPkTA;EOjQA;IACE,UAAA;IACA,qCAAA;EPmQF;EOjQA;IACE,UAAA;IACA,kCAAA;EPmQF;EOjQA;IACE,mCAAA;EPmQF;EOjQA;IACE,iCAAA;EPmQF;EOjQA;IACE,eAAA;EPmQF;AACF;AOhQA;EACE;IACE,UAAA;IACA,kCAAA;EPkQF;EOhQA;IACE,UAAA;IACA,qCAAA;EPkQF;AACF;AO/PA;EACE;IAhFA,8DAAA;EPkVA;EO3PA;IACE,UAAA;IACA,oCAAA;EP6PF;EO3PA;IACE,UAAA;IACA,mCAAA;EP6PF;EO3PA;IACE,kCAAA;EP6PF;EO3PA;IACE,kCAAA;EP6PF;EO3PA;IACE,+BAAA;EP6PF;AACF;AO1PA;EACE;IACE,mCAAA;EP4PF;EO1PA;IAEE,UAAA;IACA,kCAAA;EP2PF;EOzPA;IACE,UAAA;IACA,qCAAA;EP2PF;AACF;AOxPA;EACE;IA1HA,8DAAA;EPqXA;EOpPA;IACE,UAAA;IACA,qCAAA;EPsPF;EOpPA;IACE,UAAA;IACA,kCAAA;EPsPF;EOpPA;IACE,mCAAA;EPsPF;EOpPA;IACE,iCAAA;EPsPF;EOpPA;IACE,eAAA;EPsPF;AACF;AOnPA;EACE;IACE,kCAAA;EPqPF;EOnPA;IAEE,UAAA;IACA,mCAAA;EPoPF;EOlPA;IACE,UAAA;IACA,oCAAA;EPoPF;AACF;AOhPE;EAEE,sCAAA;APiPJ;AO/OE;EAEE,uCAAA;APgPJ;AO9OE;EACE,sCAAA;APgPJ;AO9OE;EACE,oCAAA;APgPJ;;AO3OE;EAEE,uCAAA;AP6OJ;AO3OE;EAEE,wCAAA;AP4OJ;AO1OE;EACE,qCAAA;AP4OJ;AO1OE;EACE,uCAAA;AP4OJ;;AQ9aA;EACE;IACE,UAAA;IACA,iCAAA;ERibF;EQ/aA;IACE,UAAA;ERibF;AACF;AQ9aA;EACE;IACE,UAAA;ERgbF;EQ9aA;IACE,UAAA;IACA,iCAAA;ERgbF;EQ9aA;IACE,UAAA;ERgbF;AACF;AQ7aA;EACE,gCAAA;AR+aF;;AQ5aA;EACE,iCAAA;AR+aF;;AS3cA;EACE;IACE,sDAAA;IACA,kCAAA;IACA,UAAA;ET8cF;ES5cA;IACE,uDAAA;IACA,kCAAA;ET8cF;ES5cA;IACE,sDAAA;IACA,UAAA;ET8cF;ES5cA;IACE,sDAAA;ET8cF;ES5cA;IACE,6BAAA;ET8cF;AACF;AS3cA;EACE;IACE,6BAAA;ET6cF;ES3cA;IACE,uDAAA;IACA,UAAA;ET6cF;ES3cA;IACE,sDAAA;IACA,UAAA;ET6cF;AACF;AS1cA;EACE,gCAAA;AT4cF;;ASzcA;EACE,iCAAA;AT4cF;;AUjfA;EACE;IACE,kCAAA;IACA,mBAAA;EVofF;EUlfA;IARA,+BAAA;EV6fA;AACF;AUjfA;EACE;IACE,mCAAA;IACA,mBAAA;EVmfF;EUjfA;IAlBA,+BAAA;EVsgBA;AACF;AUhfA;EACE;IACE,kCAAA;IACA,mBAAA;EVkfF;EUhfA;IA5BA,+BAAA;EV+gBA;AACF;AU/eA;EACE;IACE,mCAAA;IACA,mBAAA;EVifF;EU/eA;IAtCA,+BAAA;EVwhBA;AACF;AU9eA;EACE;IA5CA,+BAAA;EV6hBA;EU9eA;IACE,kBAAA;IACA,kCAAA;EVgfF;AACF;AU7eA;EACE;IAtDA,+BAAA;EVsiBA;EU7eA;IACE,kBAAA;IACA,mCAAA;EV+eF;AACF;AU5eA;EACE;IAhEA,+BAAA;EV+iBA;EU5eA;IACE,kBAAA;IACA,mCAAA;EV8eF;AACF;AU3eA;EACE;IA1EA,+BAAA;EVwjBA;EU3eA;IACE,kBAAA;IACA,oCAAA;EV6eF;AACF;AUzeE;EAEE,qCAAA;AV0eJ;AUxeE;EAEE,sCAAA;AVyeJ;AUveE;EACE,qCAAA;AVyeJ;AUveE;EACE,mCAAA;AVyeJ;;AUpeE;EAEE,sCAAA;AVseJ;AUpeE;EAEE,uCAAA;AVqeJ;AUneE;EACE,oCAAA;AVqeJ;AUneE;EACE,sCAAA;AVqeJ;;AWvlBA;EACE;IACE,uBAAA;EX0lBF;EWxlBA;IACE,yBAAA;EX0lBF;AACF;;AAYA,4CAA4C\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n  MIT License http://www.opensource.org/licenses/mit-license.php\n  Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n  var list = [];\n\n  // return the list of modules as css string\n  list.toString = function toString() {\n    return this.map(function (item) {\n      var content = \"\";\n      var needLayer = typeof item[5] !== \"undefined\";\n      if (item[4]) {\n        content += \"@supports (\".concat(item[4], \") {\");\n      }\n      if (item[2]) {\n        content += \"@media \".concat(item[2], \" {\");\n      }\n      if (needLayer) {\n        content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n      }\n      content += cssWithMappingToString(item);\n      if (needLayer) {\n        content += \"}\";\n      }\n      if (item[2]) {\n        content += \"}\";\n      }\n      if (item[4]) {\n        content += \"}\";\n      }\n      return content;\n    }).join(\"\");\n  };\n\n  // import a list of modules into the list\n  list.i = function i(modules, media, dedupe, supports, layer) {\n    if (typeof modules === \"string\") {\n      modules = [[null, modules, undefined]];\n    }\n    var alreadyImportedModules = {};\n    if (dedupe) {\n      for (var k = 0; k < this.length; k++) {\n        var id = this[k][0];\n        if (id != null) {\n          alreadyImportedModules[id] = true;\n        }\n      }\n    }\n    for (var _k = 0; _k < modules.length; _k++) {\n      var item = [].concat(modules[_k]);\n      if (dedupe && alreadyImportedModules[item[0]]) {\n        continue;\n      }\n      if (typeof layer !== \"undefined\") {\n        if (typeof item[5] === \"undefined\") {\n          item[5] = layer;\n        } else {\n          item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n          item[5] = layer;\n        }\n      }\n      if (media) {\n        if (!item[2]) {\n          item[2] = media;\n        } else {\n          item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n          item[2] = media;\n        }\n      }\n      if (supports) {\n        if (!item[4]) {\n          item[4] = \"\".concat(supports);\n        } else {\n          item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n          item[4] = supports;\n        }\n      }\n      list.push(item);\n    }\n  };\n  return list;\n};","\"use strict\";\n\nmodule.exports = function (url, options) {\n  if (!options) {\n    options = {};\n  }\n  if (!url) {\n    return url;\n  }\n  url = String(url.__esModule ? url.default : url);\n\n  // If url is already wrapped in quotes, remove them\n  if (/^['\"].*['\"]$/.test(url)) {\n    url = url.slice(1, -1);\n  }\n  if (options.hash) {\n    url += options.hash;\n  }\n\n  // Should url be wrapped?\n  // See https://drafts.csswg.org/css-values-3/#urls\n  if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n    return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n  }\n  return url;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n  var content = item[1];\n  var cssMapping = item[3];\n  if (!cssMapping) {\n    return content;\n  }\n  if (typeof btoa === \"function\") {\n    var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n    var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n    var sourceMapping = \"/*# \".concat(data, \" */\");\n    return [content].concat([sourceMapping]).join(\"\\n\");\n  }\n  return [content].join(\"\\n\");\n};","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function (ElementType) {\n    /** Type for the root element of a document */\n    ElementType[\"Root\"] = \"root\";\n    /** Type for Text */\n    ElementType[\"Text\"] = \"text\";\n    /** Type for <? ... ?> */\n    ElementType[\"Directive\"] = \"directive\";\n    /** Type for <!-- ... --> */\n    ElementType[\"Comment\"] = \"comment\";\n    /** Type for <script> tags */\n    ElementType[\"Script\"] = \"script\";\n    /** Type for <style> tags */\n    ElementType[\"Style\"] = \"style\";\n    /** Type for Any tag */\n    ElementType[\"Tag\"] = \"tag\";\n    /** Type for <![CDATA[ ... ]]> */\n    ElementType[\"CDATA\"] = \"cdata\";\n    /** Type for <!doctype ...> */\n    ElementType[\"Doctype\"] = \"doctype\";\n})(ElementType = exports.ElementType || (exports.ElementType = {}));\n/**\n * Tests whether an element is a tag or not.\n *\n * @param elem Element to test\n */\nfunction isTag(elem) {\n    return (elem.type === ElementType.Tag ||\n        elem.type === ElementType.Script ||\n        elem.type === ElementType.Style);\n}\nexports.isTag = isTag;\n// Exports for backwards compatibility\n/** Type for the root element of a document */\nexports.Root = ElementType.Root;\n/** Type for Text */\nexports.Text = ElementType.Text;\n/** Type for <? ... ?> */\nexports.Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\nexports.Comment = ElementType.Comment;\n/** Type for <script> tags */\nexports.Script = ElementType.Script;\n/** Type for <style> tags */\nexports.Style = ElementType.Style;\n/** Type for Any tag */\nexports.Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\nexports.CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\nexports.Doctype = ElementType.Doctype;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n    withStartIndices: false,\n    withEndIndices: false,\n    xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n    /**\n     * @param callback Called once parsing has completed.\n     * @param options Settings for the handler.\n     * @param elementCB Callback whenever a tag is closed.\n     */\n    function DomHandler(callback, options, elementCB) {\n        /** The elements of the DOM */\n        this.dom = [];\n        /** The root element for the DOM */\n        this.root = new node_js_1.Document(this.dom);\n        /** Indicated whether parsing has been completed. */\n        this.done = false;\n        /** Stack of open tags. */\n        this.tagStack = [this.root];\n        /** A data node that is still being written to. */\n        this.lastNode = null;\n        /** Reference to the parser instance. Used for location information. */\n        this.parser = null;\n        // Make it possible to skip arguments, for backwards-compatibility\n        if (typeof options === \"function\") {\n            elementCB = options;\n            options = defaultOpts;\n        }\n        if (typeof callback === \"object\") {\n            options = callback;\n            callback = undefined;\n        }\n        this.callback = callback !== null && callback !== void 0 ? callback : null;\n        this.options = options !== null && options !== void 0 ? options : defaultOpts;\n        this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n    }\n    DomHandler.prototype.onparserinit = function (parser) {\n        this.parser = parser;\n    };\n    // Resets the handler back to starting state\n    DomHandler.prototype.onreset = function () {\n        this.dom = [];\n        this.root = new node_js_1.Document(this.dom);\n        this.done = false;\n        this.tagStack = [this.root];\n        this.lastNode = null;\n        this.parser = null;\n    };\n    // Signals the handler that parsing is done\n    DomHandler.prototype.onend = function () {\n        if (this.done)\n            return;\n        this.done = true;\n        this.parser = null;\n        this.handleCallback(null);\n    };\n    DomHandler.prototype.onerror = function (error) {\n        this.handleCallback(error);\n    };\n    DomHandler.prototype.onclosetag = function () {\n        this.lastNode = null;\n        var elem = this.tagStack.pop();\n        if (this.options.withEndIndices) {\n            elem.endIndex = this.parser.endIndex;\n        }\n        if (this.elementCB)\n            this.elementCB(elem);\n    };\n    DomHandler.prototype.onopentag = function (name, attribs) {\n        var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n        var element = new node_js_1.Element(name, attribs, undefined, type);\n        this.addNode(element);\n        this.tagStack.push(element);\n    };\n    DomHandler.prototype.ontext = function (data) {\n        var lastNode = this.lastNode;\n        if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n            lastNode.data += data;\n            if (this.options.withEndIndices) {\n                lastNode.endIndex = this.parser.endIndex;\n            }\n        }\n        else {\n            var node = new node_js_1.Text(data);\n            this.addNode(node);\n            this.lastNode = node;\n        }\n    };\n    DomHandler.prototype.oncomment = function (data) {\n        if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n            this.lastNode.data += data;\n            return;\n        }\n        var node = new node_js_1.Comment(data);\n        this.addNode(node);\n        this.lastNode = node;\n    };\n    DomHandler.prototype.oncommentend = function () {\n        this.lastNode = null;\n    };\n    DomHandler.prototype.oncdatastart = function () {\n        var text = new node_js_1.Text(\"\");\n        var node = new node_js_1.CDATA([text]);\n        this.addNode(node);\n        text.parent = node;\n        this.lastNode = text;\n    };\n    DomHandler.prototype.oncdataend = function () {\n        this.lastNode = null;\n    };\n    DomHandler.prototype.onprocessinginstruction = function (name, data) {\n        var node = new node_js_1.ProcessingInstruction(name, data);\n        this.addNode(node);\n    };\n    DomHandler.prototype.handleCallback = function (error) {\n        if (typeof this.callback === \"function\") {\n            this.callback(error, this.dom);\n        }\n        else if (error) {\n            throw error;\n        }\n    };\n    DomHandler.prototype.addNode = function (node) {\n        var parent = this.tagStack[this.tagStack.length - 1];\n        var previousSibling = parent.children[parent.children.length - 1];\n        if (this.options.withStartIndices) {\n            node.startIndex = this.parser.startIndex;\n        }\n        if (this.options.withEndIndices) {\n            node.endIndex = this.parser.endIndex;\n        }\n        parent.children.push(node);\n        if (previousSibling) {\n            node.prev = previousSibling;\n            previousSibling.next = node;\n        }\n        node.parent = parent;\n        this.lastNode = null;\n    };\n    return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        if (typeof b !== \"function\" && b !== null)\n            throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nvar Node = /** @class */ (function () {\n    function Node() {\n        /** Parent of the node */\n        this.parent = null;\n        /** Previous sibling */\n        this.prev = null;\n        /** Next sibling */\n        this.next = null;\n        /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n        this.startIndex = null;\n        /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n        this.endIndex = null;\n    }\n    Object.defineProperty(Node.prototype, \"parentNode\", {\n        // Read-write aliases for properties\n        /**\n         * Same as {@link parent}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.parent;\n        },\n        set: function (parent) {\n            this.parent = parent;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(Node.prototype, \"previousSibling\", {\n        /**\n         * Same as {@link prev}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.prev;\n        },\n        set: function (prev) {\n            this.prev = prev;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(Node.prototype, \"nextSibling\", {\n        /**\n         * Same as {@link next}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.next;\n        },\n        set: function (next) {\n            this.next = next;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    /**\n     * Clone this node, and optionally its children.\n     *\n     * @param recursive Clone child nodes as well.\n     * @returns A clone of the node.\n     */\n    Node.prototype.cloneNode = function (recursive) {\n        if (recursive === void 0) { recursive = false; }\n        return cloneNode(this, recursive);\n    };\n    return Node;\n}());\nexports.Node = Node;\n/**\n * A node that contains some data.\n */\nvar DataNode = /** @class */ (function (_super) {\n    __extends(DataNode, _super);\n    /**\n     * @param data The content of the data node\n     */\n    function DataNode(data) {\n        var _this = _super.call(this) || this;\n        _this.data = data;\n        return _this;\n    }\n    Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n        /**\n         * Same as {@link data}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.data;\n        },\n        set: function (data) {\n            this.data = data;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return DataNode;\n}(Node));\nexports.DataNode = DataNode;\n/**\n * Text within the document.\n */\nvar Text = /** @class */ (function (_super) {\n    __extends(Text, _super);\n    function Text() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.type = domelementtype_1.ElementType.Text;\n        return _this;\n    }\n    Object.defineProperty(Text.prototype, \"nodeType\", {\n        get: function () {\n            return 3;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return Text;\n}(DataNode));\nexports.Text = Text;\n/**\n * Comments within the document.\n */\nvar Comment = /** @class */ (function (_super) {\n    __extends(Comment, _super);\n    function Comment() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.type = domelementtype_1.ElementType.Comment;\n        return _this;\n    }\n    Object.defineProperty(Comment.prototype, \"nodeType\", {\n        get: function () {\n            return 8;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return Comment;\n}(DataNode));\nexports.Comment = Comment;\n/**\n * Processing instructions, including doc types.\n */\nvar ProcessingInstruction = /** @class */ (function (_super) {\n    __extends(ProcessingInstruction, _super);\n    function ProcessingInstruction(name, data) {\n        var _this = _super.call(this, data) || this;\n        _this.name = name;\n        _this.type = domelementtype_1.ElementType.Directive;\n        return _this;\n    }\n    Object.defineProperty(ProcessingInstruction.prototype, \"nodeType\", {\n        get: function () {\n            return 1;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return ProcessingInstruction;\n}(DataNode));\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\nvar NodeWithChildren = /** @class */ (function (_super) {\n    __extends(NodeWithChildren, _super);\n    /**\n     * @param children Children of the node. Only certain node types can have children.\n     */\n    function NodeWithChildren(children) {\n        var _this = _super.call(this) || this;\n        _this.children = children;\n        return _this;\n    }\n    Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n        // Aliases\n        /** First child of the node. */\n        get: function () {\n            var _a;\n            return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(NodeWithChildren.prototype, \"lastChild\", {\n        /** Last child of the node. */\n        get: function () {\n            return this.children.length > 0\n                ? this.children[this.children.length - 1]\n                : null;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n        /**\n         * Same as {@link children}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.children;\n        },\n        set: function (children) {\n            this.children = children;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return NodeWithChildren;\n}(Node));\nexports.NodeWithChildren = NodeWithChildren;\nvar CDATA = /** @class */ (function (_super) {\n    __extends(CDATA, _super);\n    function CDATA() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.type = domelementtype_1.ElementType.CDATA;\n        return _this;\n    }\n    Object.defineProperty(CDATA.prototype, \"nodeType\", {\n        get: function () {\n            return 4;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return CDATA;\n}(NodeWithChildren));\nexports.CDATA = CDATA;\n/**\n * The root node of the document.\n */\nvar Document = /** @class */ (function (_super) {\n    __extends(Document, _super);\n    function Document() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.type = domelementtype_1.ElementType.Root;\n        return _this;\n    }\n    Object.defineProperty(Document.prototype, \"nodeType\", {\n        get: function () {\n            return 9;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return Document;\n}(NodeWithChildren));\nexports.Document = Document;\n/**\n * An element within the DOM.\n */\nvar Element = /** @class */ (function (_super) {\n    __extends(Element, _super);\n    /**\n     * @param name Name of the tag, eg. `div`, `span`.\n     * @param attribs Object mapping attribute names to attribute values.\n     * @param children Children of the node.\n     */\n    function Element(name, attribs, children, type) {\n        if (children === void 0) { children = []; }\n        if (type === void 0) { type = name === \"script\"\n            ? domelementtype_1.ElementType.Script\n            : name === \"style\"\n                ? domelementtype_1.ElementType.Style\n                : domelementtype_1.ElementType.Tag; }\n        var _this = _super.call(this, children) || this;\n        _this.name = name;\n        _this.attribs = attribs;\n        _this.type = type;\n        return _this;\n    }\n    Object.defineProperty(Element.prototype, \"nodeType\", {\n        get: function () {\n            return 1;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(Element.prototype, \"tagName\", {\n        // DOM Level 1 aliases\n        /**\n         * Same as {@link name}.\n         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n         */\n        get: function () {\n            return this.name;\n        },\n        set: function (name) {\n            this.name = name;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    Object.defineProperty(Element.prototype, \"attributes\", {\n        get: function () {\n            var _this = this;\n            return Object.keys(this.attribs).map(function (name) {\n                var _a, _b;\n                return ({\n                    name: name,\n                    value: _this.attribs[name],\n                    namespace: (_a = _this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n                    prefix: (_b = _this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n                });\n            });\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return Element;\n}(NodeWithChildren));\nexports.Element = Element;\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nfunction isTag(node) {\n    return (0, domelementtype_1.isTag)(node);\n}\nexports.isTag = isTag;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nfunction isCDATA(node) {\n    return node.type === domelementtype_1.ElementType.CDATA;\n}\nexports.isCDATA = isCDATA;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nfunction isText(node) {\n    return node.type === domelementtype_1.ElementType.Text;\n}\nexports.isText = isText;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nfunction isComment(node) {\n    return node.type === domelementtype_1.ElementType.Comment;\n}\nexports.isComment = isComment;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDirective(node) {\n    return node.type === domelementtype_1.ElementType.Directive;\n}\nexports.isDirective = isDirective;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDocument(node) {\n    return node.type === domelementtype_1.ElementType.Root;\n}\nexports.isDocument = isDocument;\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nfunction hasChildren(node) {\n    return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\nexports.hasChildren = hasChildren;\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nfunction cloneNode(node, recursive) {\n    if (recursive === void 0) { recursive = false; }\n    var result;\n    if (isText(node)) {\n        result = new Text(node.data);\n    }\n    else if (isComment(node)) {\n        result = new Comment(node.data);\n    }\n    else if (isTag(node)) {\n        var children = recursive ? cloneChildren(node.children) : [];\n        var clone_1 = new Element(node.name, __assign({}, node.attribs), children);\n        children.forEach(function (child) { return (child.parent = clone_1); });\n        if (node.namespace != null) {\n            clone_1.namespace = node.namespace;\n        }\n        if (node[\"x-attribsNamespace\"]) {\n            clone_1[\"x-attribsNamespace\"] = __assign({}, node[\"x-attribsNamespace\"]);\n        }\n        if (node[\"x-attribsPrefix\"]) {\n            clone_1[\"x-attribsPrefix\"] = __assign({}, node[\"x-attribsPrefix\"]);\n        }\n        result = clone_1;\n    }\n    else if (isCDATA(node)) {\n        var children = recursive ? cloneChildren(node.children) : [];\n        var clone_2 = new CDATA(children);\n        children.forEach(function (child) { return (child.parent = clone_2); });\n        result = clone_2;\n    }\n    else if (isDocument(node)) {\n        var children = recursive ? cloneChildren(node.children) : [];\n        var clone_3 = new Document(children);\n        children.forEach(function (child) { return (child.parent = clone_3); });\n        if (node[\"x-mode\"]) {\n            clone_3[\"x-mode\"] = node[\"x-mode\"];\n        }\n        result = clone_3;\n    }\n    else if (isDirective(node)) {\n        var instruction = new ProcessingInstruction(node.name, node.data);\n        if (node[\"x-name\"] != null) {\n            instruction[\"x-name\"] = node[\"x-name\"];\n            instruction[\"x-publicId\"] = node[\"x-publicId\"];\n            instruction[\"x-systemId\"] = node[\"x-systemId\"];\n        }\n        result = instruction;\n    }\n    else {\n        throw new Error(\"Not implemented yet: \".concat(node.type));\n    }\n    result.startIndex = node.startIndex;\n    result.endIndex = node.endIndex;\n    if (node.sourceCodeLocation != null) {\n        result.sourceCodeLocation = node.sourceCodeLocation;\n    }\n    return result;\n}\nexports.cloneNode = cloneNode;\nfunction cloneChildren(childs) {\n    var children = childs.map(function (child) { return cloneNode(child, true); });\n    for (var i = 1; i < children.length; i++) {\n        children[i].prev = children[i - 1];\n        children[i - 1].next = children[i];\n    }\n    return children;\n}\n","'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n","'use strict';\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Object;\n","var isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tObject.keys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tObject.keys(source).forEach(function(key) {\n\t\tif (!options.isMergeableObject(source[key]) || !target[key]) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = deepmerge(target[key], source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nexport default deepmerge_1;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n    undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\nexport default overArg;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n    return false;\n  }\n  var proto = getPrototype(value);\n  if (proto === null) {\n    return true;\n  }\n  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n  return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n    funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n  this.size = 0;\n}\n\nexport default listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\nexport default assocIndexOf;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  --this.size;\n  return true;\n}\n\nexport default listCacheDelete;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    ++this.size;\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\nexport default listCacheSet;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n  this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  var data = this.__data__,\n      result = data['delete'](key);\n\n  this.size = data.size;\n  return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\nexport default stackHas;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\nexport default toSource;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n  this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  var result = this.has(key) && delete this.__data__[key];\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  this.size += this.has(key) ? 0 : 1;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\nexport default hashSet;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.size = 0;\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\nexport default mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\nexport default isKeyable;\n","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\nexport default getMapData;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  var result = getMapData(this, key)['delete'](key);\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  var data = getMapData(this, key),\n      size = data.size;\n\n  data.set(key, value);\n  this.size += data.size == size ? 0 : 1;\n  return this;\n}\n\nexport default mapCacheSet;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var data = this.__data__;\n  if (data instanceof ListCache) {\n    var pairs = data.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      this.size = ++data.size;\n      return this;\n    }\n    data = this.__data__ = new MapCache(pairs);\n  }\n  data.set(key, value);\n  this.size = data.size;\n  return this;\n}\n\nexport default stackSet;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  var data = this.__data__ = new ListCache(entries);\n  this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (iteratee(array[index], index, array) === false) {\n      break;\n    }\n  }\n  return array;\n}\n\nexport default arrayEach;\n","import getNative from './_getNative.js';\n\nvar defineProperty = (function() {\n  try {\n    var func = getNative(Object, 'defineProperty');\n    func({}, '', {});\n    return func;\n  } catch (e) {}\n}());\n\nexport default defineProperty;\n","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n  if (key == '__proto__' && defineProperty) {\n    defineProperty(object, key, {\n      'configurable': true,\n      'enumerable': true,\n      'value': value,\n      'writable': true\n    });\n  } else {\n    object[key] = value;\n  }\n}\n\nexport default baseAssignValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n  var objValue = object[key];\n  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n      (value === undefined && !(key in object))) {\n    baseAssignValue(object, key, value);\n  }\n}\n\nexport default assignValue;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n  var isNew = !object;\n  object || (object = {});\n\n  var index = -1,\n      length = props.length;\n\n  while (++index < length) {\n    var key = props[index];\n\n    var newValue = customizer\n      ? customizer(object[key], source[key], key, object, source)\n      : undefined;\n\n    if (newValue === undefined) {\n      newValue = source[key];\n    }\n    if (isNew) {\n      baseAssignValue(object, key, newValue);\n    } else {\n      assignValue(object, key, newValue);\n    }\n  }\n  return object;\n}\n\nexport default copyObject;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\nexport default baseTimes;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n  return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n    !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n  return false;\n}\n\nexport default stubFalse;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  var type = typeof value;\n  length = length == null ? MAX_SAFE_INTEGER : length;\n\n  return !!length &&\n    (type == 'number' ||\n      (type != 'symbol' && reIsUint.test(value))) &&\n        (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\nexport default baseUnary;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    // Use `util.types` for Node.js 10+.\n    var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n    if (types) {\n      return types;\n    }\n\n    // Legacy `process.binding('util')` for Node.js < 10.\n    return freeProcess && freeProcess.binding && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  var isArr = isArray(value),\n      isArg = !isArr && isArguments(value),\n      isBuff = !isArr && !isArg && isBuffer(value),\n      isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n      skipIndexes = isArr || isArg || isBuff || isType,\n      result = skipIndexes ? baseTimes(value.length, String) : [],\n      length = result.length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (\n           // Safari 9 has enumerable `arguments.length` in strict mode.\n           key == 'length' ||\n           // Node.js 0.10 has enumerable non-index properties on buffers.\n           (isBuff && (key == 'offset' || key == 'parent')) ||\n           // PhantomJS 2 has enumerable non-index properties on typed arrays.\n           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n           // Skip index properties.\n           isIndex(key, length)\n        ))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nexport default arrayLikeKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\nexport default isPrototype;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nexport default baseKeys;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n  return object && copyObject(source, keys(source), object);\n}\n\nexport default baseAssign;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n  var result = [];\n  if (object != null) {\n    for (var key in Object(object)) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nexport default nativeKeysIn;\n","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n  if (!isObject(object)) {\n    return nativeKeysIn(object);\n  }\n  var isProto = isPrototype(object),\n      result = [];\n\n  for (var key in object) {\n    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nexport default baseKeysIn;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nexport default keysIn;\n","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n  return object && copyObject(source, keysIn(source), object);\n}\n\nexport default baseAssignIn;\n","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of  `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n  if (isDeep) {\n    return buffer.slice();\n  }\n  var length = buffer.length,\n      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n  buffer.copy(result);\n  return result;\n}\n\nexport default cloneBuffer;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n  var index = -1,\n      length = source.length;\n\n  array || (array = Array(length));\n  while (++index < length) {\n    array[index] = source[index];\n  }\n  return array;\n}\n\nexport default copyArray;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\nexport default arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n  return [];\n}\n\nexport default stubArray;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n  if (object == null) {\n    return [];\n  }\n  object = Object(object);\n  return arrayFilter(nativeGetSymbols(object), function(symbol) {\n    return propertyIsEnumerable.call(object, symbol);\n  });\n};\n\nexport default getSymbols;\n","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n  return copyObject(source, getSymbols(source), object);\n}\n\nexport default copySymbols;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\nexport default arrayPush;\n","import arrayPush from './_arrayPush.js';\nimport getPrototype from './_getPrototype.js';\nimport getSymbols from './_getSymbols.js';\nimport stubArray from './stubArray.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n  var result = [];\n  while (object) {\n    arrayPush(result, getSymbols(object));\n    object = getPrototype(object);\n  }\n  return result;\n};\n\nexport default getSymbolsIn;\n","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n  return copyObject(source, getSymbolsIn(source), object);\n}\n\nexport default copySymbolsIn;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n  var result = keysFunc(object);\n  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n  return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\nimport keysIn from './keysIn.js';\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n  return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nexport default getAllKeysIn;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    setTag = '[object Set]',\n    weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = baseGetTag(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : '';\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\nexport default getTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n  var length = array.length,\n      result = new array.constructor(length);\n\n  // Add properties assigned by `RegExp#exec`.\n  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n    result.index = array.index;\n    result.input = array.input;\n  }\n  return result;\n}\n\nexport default initCloneArray;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n  new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n  return result;\n}\n\nexport default cloneArrayBuffer;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nexport default cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n  result.lastIndex = regexp.lastIndex;\n  return result;\n}\n\nexport default cloneRegExp;\n","import Symbol from './_Symbol.js';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nexport default cloneSymbol;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n  var Ctor = object.constructor;\n  switch (tag) {\n    case arrayBufferTag:\n      return cloneArrayBuffer(object);\n\n    case boolTag:\n    case dateTag:\n      return new Ctor(+object);\n\n    case dataViewTag:\n      return cloneDataView(object, isDeep);\n\n    case float32Tag: case float64Tag:\n    case int8Tag: case int16Tag: case int32Tag:\n    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n      return cloneTypedArray(object, isDeep);\n\n    case mapTag:\n      return new Ctor;\n\n    case numberTag:\n    case stringTag:\n      return new Ctor(object);\n\n    case regexpTag:\n      return cloneRegExp(object);\n\n    case setTag:\n      return new Ctor;\n\n    case symbolTag:\n      return cloneSymbol(object);\n  }\n}\n\nexport default initCloneByTag;\n","import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n  function object() {}\n  return function(proto) {\n    if (!isObject(proto)) {\n      return {};\n    }\n    if (objectCreate) {\n      return objectCreate(proto);\n    }\n    object.prototype = proto;\n    var result = new object;\n    object.prototype = undefined;\n    return result;\n  };\n}());\n\nexport default baseCreate;\n","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n  return (typeof object.constructor == 'function' && !isPrototype(object))\n    ? baseCreate(getPrototype(object))\n    : {};\n}\n\nexport default initCloneObject;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n  return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nexport default baseIsMap;\n","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nexport default isMap;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n  return isObjectLike(value) && getTag(value) == setTag;\n}\n\nexport default baseIsSet;\n","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nexport default isSet;\n","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\nimport keysIn from './keysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_FLAT_FLAG = 2,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Deep clone\n *  2 - Flatten inherited properties\n *  4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n  var result,\n      isDeep = bitmask & CLONE_DEEP_FLAG,\n      isFlat = bitmask & CLONE_FLAT_FLAG,\n      isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n  if (customizer) {\n    result = object ? customizer(value, key, object, stack) : customizer(value);\n  }\n  if (result !== undefined) {\n    return result;\n  }\n  if (!isObject(value)) {\n    return value;\n  }\n  var isArr = isArray(value);\n  if (isArr) {\n    result = initCloneArray(value);\n    if (!isDeep) {\n      return copyArray(value, result);\n    }\n  } else {\n    var tag = getTag(value),\n        isFunc = tag == funcTag || tag == genTag;\n\n    if (isBuffer(value)) {\n      return cloneBuffer(value, isDeep);\n    }\n    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n      result = (isFlat || isFunc) ? {} : initCloneObject(value);\n      if (!isDeep) {\n        return isFlat\n          ? copySymbolsIn(value, baseAssignIn(result, value))\n          : copySymbols(value, baseAssign(result, value));\n      }\n    } else {\n      if (!cloneableTags[tag]) {\n        return object ? value : {};\n      }\n      result = initCloneByTag(value, tag, isDeep);\n    }\n  }\n  // Check for circular references and return its corresponding clone.\n  stack || (stack = new Stack);\n  var stacked = stack.get(value);\n  if (stacked) {\n    return stacked;\n  }\n  stack.set(value, result);\n\n  if (isSet(value)) {\n    value.forEach(function(subValue) {\n      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n    });\n  } else if (isMap(value)) {\n    value.forEach(function(subValue, key) {\n      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n    });\n  }\n\n  var keysFunc = isFull\n    ? (isFlat ? getAllKeysIn : getAllKeys)\n    : (isFlat ? keysIn : keys);\n\n  var props = isArr ? undefined : keysFunc(value);\n  arrayEach(props || value, function(subValue, key) {\n    if (props) {\n      key = subValue;\n      subValue = value[key];\n    }\n    // Recursively populate clone (susceptible to call stack limits).\n    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n  });\n  return result;\n}\n\nexport default baseClone;\n","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nexport default cloneDeep;\n","import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n  return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nexport default clone;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\nexport default arrayMap;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","import MapCache from './_MapCache.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result) || cache;\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nexport default memoize;\n","import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n  var result = [];\n  if (string.charCodeAt(0) === 46 /* . */) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, subString) {\n    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\nexport default stringToPath;\n","import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n  var result = memoize(func, function(key) {\n    if (cache.size === MAX_MEMOIZE_SIZE) {\n      cache.clear();\n    }\n    return key;\n  });\n\n  var cache = result.cache;\n  return result;\n}\n\nexport default memoizeCapped;\n","import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isArray(value)) {\n    // Recursively convert values (susceptible to call stack limits).\n    return arrayMap(value, baseToString) + '';\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","import arrayMap from './_arrayMap.js';\nimport copyArray from './_copyArray.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\nimport stringToPath from './_stringToPath.js';\nimport toKey from './_toKey.js';\nimport toString from './toString.js';\n\n/**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\nfunction toPath(value) {\n  if (isArray(value)) {\n    return arrayMap(value, toKey);\n  }\n  return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n}\n\nexport default toPath;\n","import deepmerge from 'deepmerge';\nimport isPlainObject from 'lodash-es/isPlainObject';\nimport cloneDeep from 'lodash-es/cloneDeep';\nimport { createContext, useContext, Children, useRef, useEffect, useState, useCallback, useMemo, useImperativeHandle, createElement, useLayoutEffect, forwardRef, Component } from 'react';\nimport isEqual from 'react-fast-compare';\nimport invariant from 'tiny-warning';\nimport clone from 'lodash-es/clone';\nimport toPath from 'lodash-es/toPath';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\nfunction _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  subClass.__proto__ = superClass;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nfunction _assertThisInitialized(self) {\n  if (self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return self;\n}\n\nvar FormikContext = /*#__PURE__*/createContext(undefined);\nFormikContext.displayName = 'FormikContext';\nvar FormikProvider = FormikContext.Provider;\nvar FormikConsumer = FormikContext.Consumer;\nfunction useFormikContext() {\n  var formik = useContext(FormikContext);\n  !!!formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.\") : invariant(false) : void 0;\n  return formik;\n}\n\n/** @private is the value an empty array? */\n\nvar isEmptyArray = function isEmptyArray(value) {\n  return Array.isArray(value) && value.length === 0;\n};\n/** @private is the given object a Function? */\n\nvar isFunction = function isFunction(obj) {\n  return typeof obj === 'function';\n};\n/** @private is the given object an Object? */\n\nvar isObject = function isObject(obj) {\n  return obj !== null && typeof obj === 'object';\n};\n/** @private is the given object an integer? */\n\nvar isInteger = function isInteger(obj) {\n  return String(Math.floor(Number(obj))) === obj;\n};\n/** @private is the given object a string? */\n\nvar isString = function isString(obj) {\n  return Object.prototype.toString.call(obj) === '[object String]';\n};\n/** @private is the given object a NaN? */\n// eslint-disable-next-line no-self-compare\n\nvar isNaN$1 = function isNaN(obj) {\n  return obj !== obj;\n};\n/** @private Does a React component have exactly 0 children? */\n\nvar isEmptyChildren = function isEmptyChildren(children) {\n  return Children.count(children) === 0;\n};\n/** @private is the given object/value a promise? */\n\nvar isPromise = function isPromise(value) {\n  return isObject(value) && isFunction(value.then);\n};\n/** @private is the given object/value a type of synthetic event? */\n\nvar isInputEvent = function isInputEvent(value) {\n  return value && isObject(value) && isObject(value.target);\n};\n/**\r\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\r\n * not safe to call document.activeElement if there is nothing focused.\r\n *\r\n * The activeElement will be null only if the document or document body is not\r\n * yet defined.\r\n *\r\n * @param {?Document} doc Defaults to current document.\r\n * @return {Element | null}\r\n * @see https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/dom/getActiveElement.js\r\n */\n\nfunction getActiveElement(doc) {\n  doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n  if (typeof doc === 'undefined') {\n    return null;\n  }\n\n  try {\n    return doc.activeElement || doc.body;\n  } catch (e) {\n    return doc.body;\n  }\n}\n/**\r\n * Deeply get a value from an object via its path.\r\n */\n\nfunction getIn(obj, key, def, p) {\n  if (p === void 0) {\n    p = 0;\n  }\n\n  var path = toPath(key);\n\n  while (obj && p < path.length) {\n    obj = obj[path[p++]];\n  } // check if path is not in the end\n\n\n  if (p !== path.length && !obj) {\n    return def;\n  }\n\n  return obj === undefined ? def : obj;\n}\n/**\r\n * Deeply set a value from in object via it's path. If the value at `path`\r\n * has changed, return a shallow copy of obj with `value` set at `path`.\r\n * If `value` has not changed, return the original `obj`.\r\n *\r\n * Existing objects / arrays along `path` are also shallow copied. Sibling\r\n * objects along path retain the same internal js reference. Since new\r\n * objects / arrays are only created along `path`, we can test if anything\r\n * changed in a nested structure by comparing the object's reference in\r\n * the old and new object, similar to how russian doll cache invalidation\r\n * works.\r\n *\r\n * In earlier versions of this function, which used cloneDeep, there were\r\n * issues whereby settings a nested value would mutate the parent\r\n * instead of creating a new object. `clone` avoids that bug making a\r\n * shallow copy of the objects along the update path\r\n * so no object is mutated in place.\r\n *\r\n * Before changing this function, please read through the following\r\n * discussions.\r\n *\r\n * @see https://github.com/developit/linkstate\r\n * @see https://github.com/jaredpalmer/formik/pull/123\r\n */\n\nfunction setIn(obj, path, value) {\n  var res = clone(obj); // this keeps inheritance when obj is a class\n\n  var resVal = res;\n  var i = 0;\n  var pathArray = toPath(path);\n\n  for (; i < pathArray.length - 1; i++) {\n    var currentPath = pathArray[i];\n    var currentObj = getIn(obj, pathArray.slice(0, i + 1));\n\n    if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) {\n      resVal = resVal[currentPath] = clone(currentObj);\n    } else {\n      var nextPath = pathArray[i + 1];\n      resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};\n    }\n  } // Return original object if new value is the same as current\n\n\n  if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {\n    return obj;\n  }\n\n  if (value === undefined) {\n    delete resVal[pathArray[i]];\n  } else {\n    resVal[pathArray[i]] = value;\n  } // If the path array has a single element, the loop did not run.\n  // Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.\n\n\n  if (i === 0 && value === undefined) {\n    delete res[pathArray[i]];\n  }\n\n  return res;\n}\n/**\r\n * Recursively a set the same value for all keys and arrays nested object, cloning\r\n * @param object\r\n * @param value\r\n * @param visited\r\n * @param response\r\n */\n\nfunction setNestedObjectValues(object, value, visited, response) {\n  if (visited === void 0) {\n    visited = new WeakMap();\n  }\n\n  if (response === void 0) {\n    response = {};\n  }\n\n  for (var _i = 0, _Object$keys = Object.keys(object); _i < _Object$keys.length; _i++) {\n    var k = _Object$keys[_i];\n    var val = object[k];\n\n    if (isObject(val)) {\n      if (!visited.get(val)) {\n        visited.set(val, true); // In order to keep array values consistent for both dot path  and\n        // bracket syntax, we need to check if this is an array so that\n        // this will output  { friends: [true] } and not { friends: { \"0\": true } }\n\n        response[k] = Array.isArray(val) ? [] : {};\n        setNestedObjectValues(val, value, visited, response[k]);\n      }\n    } else {\n      response[k] = value;\n    }\n  }\n\n  return response;\n}\n\nfunction formikReducer(state, msg) {\n  switch (msg.type) {\n    case 'SET_VALUES':\n      return _extends({}, state, {\n        values: msg.payload\n      });\n\n    case 'SET_TOUCHED':\n      return _extends({}, state, {\n        touched: msg.payload\n      });\n\n    case 'SET_ERRORS':\n      if (isEqual(state.errors, msg.payload)) {\n        return state;\n      }\n\n      return _extends({}, state, {\n        errors: msg.payload\n      });\n\n    case 'SET_STATUS':\n      return _extends({}, state, {\n        status: msg.payload\n      });\n\n    case 'SET_ISSUBMITTING':\n      return _extends({}, state, {\n        isSubmitting: msg.payload\n      });\n\n    case 'SET_ISVALIDATING':\n      return _extends({}, state, {\n        isValidating: msg.payload\n      });\n\n    case 'SET_FIELD_VALUE':\n      return _extends({}, state, {\n        values: setIn(state.values, msg.payload.field, msg.payload.value)\n      });\n\n    case 'SET_FIELD_TOUCHED':\n      return _extends({}, state, {\n        touched: setIn(state.touched, msg.payload.field, msg.payload.value)\n      });\n\n    case 'SET_FIELD_ERROR':\n      return _extends({}, state, {\n        errors: setIn(state.errors, msg.payload.field, msg.payload.value)\n      });\n\n    case 'RESET_FORM':\n      return _extends({}, state, msg.payload);\n\n    case 'SET_FORMIK_STATE':\n      return msg.payload(state);\n\n    case 'SUBMIT_ATTEMPT':\n      return _extends({}, state, {\n        touched: setNestedObjectValues(state.values, true),\n        isSubmitting: true,\n        submitCount: state.submitCount + 1\n      });\n\n    case 'SUBMIT_FAILURE':\n      return _extends({}, state, {\n        isSubmitting: false\n      });\n\n    case 'SUBMIT_SUCCESS':\n      return _extends({}, state, {\n        isSubmitting: false\n      });\n\n    default:\n      return state;\n  }\n} // Initial empty states // objects\n\n\nvar emptyErrors = {};\nvar emptyTouched = {};\nfunction useFormik(_ref) {\n  var _ref$validateOnChange = _ref.validateOnChange,\n      validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange,\n      _ref$validateOnBlur = _ref.validateOnBlur,\n      validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur,\n      _ref$validateOnMount = _ref.validateOnMount,\n      validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount,\n      isInitialValid = _ref.isInitialValid,\n      _ref$enableReinitiali = _ref.enableReinitialize,\n      enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,\n      onSubmit = _ref.onSubmit,\n      rest = _objectWithoutPropertiesLoose(_ref, [\"validateOnChange\", \"validateOnBlur\", \"validateOnMount\", \"isInitialValid\", \"enableReinitialize\", \"onSubmit\"]);\n\n  var props = _extends({\n    validateOnChange: validateOnChange,\n    validateOnBlur: validateOnBlur,\n    validateOnMount: validateOnMount,\n    onSubmit: onSubmit\n  }, rest);\n\n  var initialValues = useRef(props.initialValues);\n  var initialErrors = useRef(props.initialErrors || emptyErrors);\n  var initialTouched = useRef(props.initialTouched || emptyTouched);\n  var initialStatus = useRef(props.initialStatus);\n  var isMounted = useRef(false);\n  var fieldRegistry = useRef({});\n\n  if (process.env.NODE_ENV !== \"production\") {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    useEffect(function () {\n      !(typeof isInitialValid === 'undefined') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.') : invariant(false) : void 0; // eslint-disable-next-line\n    }, []);\n  }\n\n  useEffect(function () {\n    isMounted.current = true;\n    return function () {\n      isMounted.current = false;\n    };\n  }, []);\n\n  var _React$useState = useState(0),\n      setIteration = _React$useState[1];\n\n  var stateRef = useRef({\n    values: cloneDeep(props.initialValues),\n    errors: cloneDeep(props.initialErrors) || emptyErrors,\n    touched: cloneDeep(props.initialTouched) || emptyTouched,\n    status: cloneDeep(props.initialStatus),\n    isSubmitting: false,\n    isValidating: false,\n    submitCount: 0\n  });\n  var state = stateRef.current;\n  var dispatch = useCallback(function (action) {\n    var prev = stateRef.current;\n    stateRef.current = formikReducer(prev, action); // force rerender\n\n    if (prev !== stateRef.current) setIteration(function (x) {\n      return x + 1;\n    });\n  }, []);\n  var runValidateHandler = useCallback(function (values, field) {\n    return new Promise(function (resolve, reject) {\n      var maybePromisedErrors = props.validate(values, field);\n\n      if (maybePromisedErrors == null) {\n        // use loose null check here on purpose\n        resolve(emptyErrors);\n      } else if (isPromise(maybePromisedErrors)) {\n        maybePromisedErrors.then(function (errors) {\n          resolve(errors || emptyErrors);\n        }, function (actualException) {\n          if (process.env.NODE_ENV !== 'production') {\n            console.warn(\"Warning: An unhandled error was caught during validation in <Formik validate />\", actualException);\n          }\n\n          reject(actualException);\n        });\n      } else {\n        resolve(maybePromisedErrors);\n      }\n    });\n  }, [props.validate]);\n  /**\r\n   * Run validation against a Yup schema and optionally run a function if successful\r\n   */\n\n  var runValidationSchema = useCallback(function (values, field) {\n    var validationSchema = props.validationSchema;\n    var schema = isFunction(validationSchema) ? validationSchema(field) : validationSchema;\n    var promise = field && schema.validateAt ? schema.validateAt(field, values) : validateYupSchema(values, schema);\n    return new Promise(function (resolve, reject) {\n      promise.then(function () {\n        resolve(emptyErrors);\n      }, function (err) {\n        // Yup will throw a validation error if validation fails. We catch those and\n        // resolve them into Formik errors. We can sniff if something is a Yup error\n        // by checking error.name.\n        // @see https://github.com/jquense/yup#validationerrorerrors-string--arraystring-value-any-path-string\n        if (err.name === 'ValidationError') {\n          resolve(yupToFormErrors(err));\n        } else {\n          // We throw any other errors\n          if (process.env.NODE_ENV !== 'production') {\n            console.warn(\"Warning: An unhandled error was caught during validation in <Formik validationSchema />\", err);\n          }\n\n          reject(err);\n        }\n      });\n    });\n  }, [props.validationSchema]);\n  var runSingleFieldLevelValidation = useCallback(function (field, value) {\n    return new Promise(function (resolve) {\n      return resolve(fieldRegistry.current[field].validate(value));\n    });\n  }, []);\n  var runFieldLevelValidations = useCallback(function (values) {\n    var fieldKeysWithValidation = Object.keys(fieldRegistry.current).filter(function (f) {\n      return isFunction(fieldRegistry.current[f].validate);\n    }); // Construct an array with all of the field validation functions\n\n    var fieldValidations = fieldKeysWithValidation.length > 0 ? fieldKeysWithValidation.map(function (f) {\n      return runSingleFieldLevelValidation(f, getIn(values, f));\n    }) : [Promise.resolve('DO_NOT_DELETE_YOU_WILL_BE_FIRED')]; // use special case ;)\n\n    return Promise.all(fieldValidations).then(function (fieldErrorsList) {\n      return fieldErrorsList.reduce(function (prev, curr, index) {\n        if (curr === 'DO_NOT_DELETE_YOU_WILL_BE_FIRED') {\n          return prev;\n        }\n\n        if (curr) {\n          prev = setIn(prev, fieldKeysWithValidation[index], curr);\n        }\n\n        return prev;\n      }, {});\n    });\n  }, [runSingleFieldLevelValidation]); // Run all validations and return the result\n\n  var runAllValidations = useCallback(function (values) {\n    return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]).then(function (_ref2) {\n      var fieldErrors = _ref2[0],\n          schemaErrors = _ref2[1],\n          validateErrors = _ref2[2];\n      var combinedErrors = deepmerge.all([fieldErrors, schemaErrors, validateErrors], {\n        arrayMerge: arrayMerge\n      });\n      return combinedErrors;\n    });\n  }, [props.validate, props.validationSchema, runFieldLevelValidations, runValidateHandler, runValidationSchema]); // Run all validations methods and update state accordingly\n\n  var validateFormWithHighPriority = useEventCallback(function (values) {\n    if (values === void 0) {\n      values = state.values;\n    }\n\n    dispatch({\n      type: 'SET_ISVALIDATING',\n      payload: true\n    });\n    return runAllValidations(values).then(function (combinedErrors) {\n      if (!!isMounted.current) {\n        dispatch({\n          type: 'SET_ISVALIDATING',\n          payload: false\n        });\n        dispatch({\n          type: 'SET_ERRORS',\n          payload: combinedErrors\n        });\n      }\n\n      return combinedErrors;\n    });\n  });\n  useEffect(function () {\n    if (validateOnMount && isMounted.current === true && isEqual(initialValues.current, props.initialValues)) {\n      validateFormWithHighPriority(initialValues.current);\n    }\n  }, [validateOnMount, validateFormWithHighPriority]);\n  var resetForm = useCallback(function (nextState) {\n    var values = nextState && nextState.values ? nextState.values : initialValues.current;\n    var errors = nextState && nextState.errors ? nextState.errors : initialErrors.current ? initialErrors.current : props.initialErrors || {};\n    var touched = nextState && nextState.touched ? nextState.touched : initialTouched.current ? initialTouched.current : props.initialTouched || {};\n    var status = nextState && nextState.status ? nextState.status : initialStatus.current ? initialStatus.current : props.initialStatus;\n    initialValues.current = values;\n    initialErrors.current = errors;\n    initialTouched.current = touched;\n    initialStatus.current = status;\n\n    var dispatchFn = function dispatchFn() {\n      dispatch({\n        type: 'RESET_FORM',\n        payload: {\n          isSubmitting: !!nextState && !!nextState.isSubmitting,\n          errors: errors,\n          touched: touched,\n          status: status,\n          values: values,\n          isValidating: !!nextState && !!nextState.isValidating,\n          submitCount: !!nextState && !!nextState.submitCount && typeof nextState.submitCount === 'number' ? nextState.submitCount : 0\n        }\n      });\n    };\n\n    if (props.onReset) {\n      var maybePromisedOnReset = props.onReset(state.values, imperativeMethods);\n\n      if (isPromise(maybePromisedOnReset)) {\n        maybePromisedOnReset.then(dispatchFn);\n      } else {\n        dispatchFn();\n      }\n    } else {\n      dispatchFn();\n    }\n  }, [props.initialErrors, props.initialStatus, props.initialTouched, props.onReset]);\n  useEffect(function () {\n    if (isMounted.current === true && !isEqual(initialValues.current, props.initialValues)) {\n      if (enableReinitialize) {\n        initialValues.current = props.initialValues;\n        resetForm();\n\n        if (validateOnMount) {\n          validateFormWithHighPriority(initialValues.current);\n        }\n      }\n    }\n  }, [enableReinitialize, props.initialValues, resetForm, validateOnMount, validateFormWithHighPriority]);\n  useEffect(function () {\n    if (enableReinitialize && isMounted.current === true && !isEqual(initialErrors.current, props.initialErrors)) {\n      initialErrors.current = props.initialErrors || emptyErrors;\n      dispatch({\n        type: 'SET_ERRORS',\n        payload: props.initialErrors || emptyErrors\n      });\n    }\n  }, [enableReinitialize, props.initialErrors]);\n  useEffect(function () {\n    if (enableReinitialize && isMounted.current === true && !isEqual(initialTouched.current, props.initialTouched)) {\n      initialTouched.current = props.initialTouched || emptyTouched;\n      dispatch({\n        type: 'SET_TOUCHED',\n        payload: props.initialTouched || emptyTouched\n      });\n    }\n  }, [enableReinitialize, props.initialTouched]);\n  useEffect(function () {\n    if (enableReinitialize && isMounted.current === true && !isEqual(initialStatus.current, props.initialStatus)) {\n      initialStatus.current = props.initialStatus;\n      dispatch({\n        type: 'SET_STATUS',\n        payload: props.initialStatus\n      });\n    }\n  }, [enableReinitialize, props.initialStatus, props.initialTouched]);\n  var validateField = useEventCallback(function (name) {\n    // This will efficiently validate a single field by avoiding state\n    // changes if the validation function is synchronous. It's different from\n    // what is called when using validateForm.\n    if (fieldRegistry.current[name] && isFunction(fieldRegistry.current[name].validate)) {\n      var value = getIn(state.values, name);\n      var maybePromise = fieldRegistry.current[name].validate(value);\n\n      if (isPromise(maybePromise)) {\n        // Only flip isValidating if the function is async.\n        dispatch({\n          type: 'SET_ISVALIDATING',\n          payload: true\n        });\n        return maybePromise.then(function (x) {\n          return x;\n        }).then(function (error) {\n          dispatch({\n            type: 'SET_FIELD_ERROR',\n            payload: {\n              field: name,\n              value: error\n            }\n          });\n          dispatch({\n            type: 'SET_ISVALIDATING',\n            payload: false\n          });\n        });\n      } else {\n        dispatch({\n          type: 'SET_FIELD_ERROR',\n          payload: {\n            field: name,\n            value: maybePromise\n          }\n        });\n        return Promise.resolve(maybePromise);\n      }\n    } else if (props.validationSchema) {\n      dispatch({\n        type: 'SET_ISVALIDATING',\n        payload: true\n      });\n      return runValidationSchema(state.values, name).then(function (x) {\n        return x;\n      }).then(function (error) {\n        dispatch({\n          type: 'SET_FIELD_ERROR',\n          payload: {\n            field: name,\n            value: getIn(error, name)\n          }\n        });\n        dispatch({\n          type: 'SET_ISVALIDATING',\n          payload: false\n        });\n      });\n    }\n\n    return Promise.resolve();\n  });\n  var registerField = useCallback(function (name, _ref3) {\n    var validate = _ref3.validate;\n    fieldRegistry.current[name] = {\n      validate: validate\n    };\n  }, []);\n  var unregisterField = useCallback(function (name) {\n    delete fieldRegistry.current[name];\n  }, []);\n  var setTouched = useEventCallback(function (touched, shouldValidate) {\n    dispatch({\n      type: 'SET_TOUCHED',\n      payload: touched\n    });\n    var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate;\n    return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve();\n  });\n  var setErrors = useCallback(function (errors) {\n    dispatch({\n      type: 'SET_ERRORS',\n      payload: errors\n    });\n  }, []);\n  var setValues = useEventCallback(function (values, shouldValidate) {\n    var resolvedValues = isFunction(values) ? values(state.values) : values;\n    dispatch({\n      type: 'SET_VALUES',\n      payload: resolvedValues\n    });\n    var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n    return willValidate ? validateFormWithHighPriority(resolvedValues) : Promise.resolve();\n  });\n  var setFieldError = useCallback(function (field, value) {\n    dispatch({\n      type: 'SET_FIELD_ERROR',\n      payload: {\n        field: field,\n        value: value\n      }\n    });\n  }, []);\n  var setFieldValue = useEventCallback(function (field, value, shouldValidate) {\n    var resolvedValue = isFunction(value) ? value(getIn(state.values, field)) : value;\n    dispatch({\n      type: 'SET_FIELD_VALUE',\n      payload: {\n        field: field,\n        value: resolvedValue\n      }\n    });\n    var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n    return willValidate ? validateFormWithHighPriority(setIn(state.values, field, resolvedValue)) : Promise.resolve();\n  });\n  var executeChange = useCallback(function (eventOrTextValue, maybePath) {\n    // By default, assume that the first argument is a string. This allows us to use\n    // handleChange with React Native and React Native Web's onChangeText prop which\n    // provides just the value of the input.\n    var field = maybePath;\n    var val = eventOrTextValue;\n    var parsed; // If the first argument is not a string though, it has to be a synthetic React Event (or a fake one),\n    // so we handle like we would a normal HTML change event.\n\n    if (!isString(eventOrTextValue)) {\n      // If we can, persist the event\n      // @see https://reactjs.org/docs/events.html#event-pooling\n      if (eventOrTextValue.persist) {\n        eventOrTextValue.persist();\n      }\n\n      var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;\n      var type = target.type,\n          name = target.name,\n          id = target.id,\n          value = target.value,\n          checked = target.checked,\n          outerHTML = target.outerHTML,\n          options = target.options,\n          multiple = target.multiple;\n      field = maybePath ? maybePath : name ? name : id;\n\n      if (!field && process.env.NODE_ENV !== \"production\") {\n        warnAboutMissingIdentifier({\n          htmlContent: outerHTML,\n          documentationAnchorLink: 'handlechange-e-reactchangeeventany--void',\n          handlerName: 'handleChange'\n        });\n      }\n\n      val = /number|range/.test(type) ? (parsed = parseFloat(value), isNaN(parsed) ? '' : parsed) : /checkbox/.test(type) // checkboxes\n      ? getValueForCheckbox(getIn(state.values, field), checked, value) : options && multiple // <select multiple>\n      ? getSelectedValues(options) : value;\n    }\n\n    if (field) {\n      // Set form fields by name\n      setFieldValue(field, val);\n    }\n  }, [setFieldValue, state.values]);\n  var handleChange = useEventCallback(function (eventOrPath) {\n    if (isString(eventOrPath)) {\n      return function (event) {\n        return executeChange(event, eventOrPath);\n      };\n    } else {\n      executeChange(eventOrPath);\n    }\n  });\n  var setFieldTouched = useEventCallback(function (field, touched, shouldValidate) {\n    if (touched === void 0) {\n      touched = true;\n    }\n\n    dispatch({\n      type: 'SET_FIELD_TOUCHED',\n      payload: {\n        field: field,\n        value: touched\n      }\n    });\n    var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate;\n    return willValidate ? validateFormWithHighPriority(state.values) : Promise.resolve();\n  });\n  var executeBlur = useCallback(function (e, path) {\n    if (e.persist) {\n      e.persist();\n    }\n\n    var _e$target = e.target,\n        name = _e$target.name,\n        id = _e$target.id,\n        outerHTML = _e$target.outerHTML;\n    var field = path ? path : name ? name : id;\n\n    if (!field && process.env.NODE_ENV !== \"production\") {\n      warnAboutMissingIdentifier({\n        htmlContent: outerHTML,\n        documentationAnchorLink: 'handleblur-e-any--void',\n        handlerName: 'handleBlur'\n      });\n    }\n\n    setFieldTouched(field, true);\n  }, [setFieldTouched]);\n  var handleBlur = useEventCallback(function (eventOrString) {\n    if (isString(eventOrString)) {\n      return function (event) {\n        return executeBlur(event, eventOrString);\n      };\n    } else {\n      executeBlur(eventOrString);\n    }\n  });\n  var setFormikState = useCallback(function (stateOrCb) {\n    if (isFunction(stateOrCb)) {\n      dispatch({\n        type: 'SET_FORMIK_STATE',\n        payload: stateOrCb\n      });\n    } else {\n      dispatch({\n        type: 'SET_FORMIK_STATE',\n        payload: function payload() {\n          return stateOrCb;\n        }\n      });\n    }\n  }, []);\n  var setStatus = useCallback(function (status) {\n    dispatch({\n      type: 'SET_STATUS',\n      payload: status\n    });\n  }, []);\n  var setSubmitting = useCallback(function (isSubmitting) {\n    dispatch({\n      type: 'SET_ISSUBMITTING',\n      payload: isSubmitting\n    });\n  }, []);\n  var submitForm = useEventCallback(function () {\n    dispatch({\n      type: 'SUBMIT_ATTEMPT'\n    });\n    return validateFormWithHighPriority().then(function (combinedErrors) {\n      // In case an error was thrown and passed to the resolved Promise,\n      // `combinedErrors` can be an instance of an Error. We need to check\n      // that and abort the submit.\n      // If we don't do that, calling `Object.keys(new Error())` yields an\n      // empty array, which causes the validation to pass and the form\n      // to be submitted.\n      var isInstanceOfError = combinedErrors instanceof Error;\n      var isActuallyValid = !isInstanceOfError && Object.keys(combinedErrors).length === 0;\n\n      if (isActuallyValid) {\n        // Proceed with submit...\n        //\n        // To respect sync submit fns, we can't simply wrap executeSubmit in a promise and\n        // _always_ dispatch SUBMIT_SUCCESS because isSubmitting would then always be false.\n        // This would be fine in simple cases, but make it impossible to disable submit\n        // buttons where people use callbacks or promises as side effects (which is basically\n        // all of v1 Formik code). Instead, recall that we are inside of a promise chain already,\n        //  so we can try/catch executeSubmit(), if it returns undefined, then just bail.\n        // If there are errors, throw em. Otherwise, wrap executeSubmit in a promise and handle\n        // cleanup of isSubmitting on behalf of the consumer.\n        var promiseOrUndefined;\n\n        try {\n          promiseOrUndefined = executeSubmit(); // Bail if it's sync, consumer is responsible for cleaning up\n          // via setSubmitting(false)\n\n          if (promiseOrUndefined === undefined) {\n            return;\n          }\n        } catch (error) {\n          throw error;\n        }\n\n        return Promise.resolve(promiseOrUndefined).then(function (result) {\n          if (!!isMounted.current) {\n            dispatch({\n              type: 'SUBMIT_SUCCESS'\n            });\n          }\n\n          return result;\n        })[\"catch\"](function (_errors) {\n          if (!!isMounted.current) {\n            dispatch({\n              type: 'SUBMIT_FAILURE'\n            }); // This is a legit error rejected by the onSubmit fn\n            // so we don't want to break the promise chain\n\n            throw _errors;\n          }\n        });\n      } else if (!!isMounted.current) {\n        // ^^^ Make sure Formik is still mounted before updating state\n        dispatch({\n          type: 'SUBMIT_FAILURE'\n        }); // throw combinedErrors;\n\n        if (isInstanceOfError) {\n          throw combinedErrors;\n        }\n      }\n\n      return;\n    });\n  });\n  var handleSubmit = useEventCallback(function (e) {\n    if (e && e.preventDefault && isFunction(e.preventDefault)) {\n      e.preventDefault();\n    }\n\n    if (e && e.stopPropagation && isFunction(e.stopPropagation)) {\n      e.stopPropagation();\n    } // Warn if form submission is triggered by a <button> without a\n    // specified `type` attribute during development. This mitigates\n    // a common gotcha in forms with both reset and submit buttons,\n    // where the dev forgets to add type=\"button\" to the reset button.\n\n\n    if (process.env.NODE_ENV !== \"production\" && typeof document !== 'undefined') {\n      // Safely get the active element (works with IE)\n      var activeElement = getActiveElement();\n\n      if (activeElement !== null && activeElement instanceof HTMLButtonElement) {\n        !(activeElement.attributes && activeElement.attributes.getNamedItem('type')) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You submitted a Formik form using a button with an unspecified `type` attribute.  Most browsers default button elements to `type=\"submit\"`. If this is not a submit button, please add `type=\"button\"`.') : invariant(false) : void 0;\n      }\n    }\n\n    submitForm()[\"catch\"](function (reason) {\n      console.warn(\"Warning: An unhandled error was caught from submitForm()\", reason);\n    });\n  });\n  var imperativeMethods = {\n    resetForm: resetForm,\n    validateForm: validateFormWithHighPriority,\n    validateField: validateField,\n    setErrors: setErrors,\n    setFieldError: setFieldError,\n    setFieldTouched: setFieldTouched,\n    setFieldValue: setFieldValue,\n    setStatus: setStatus,\n    setSubmitting: setSubmitting,\n    setTouched: setTouched,\n    setValues: setValues,\n    setFormikState: setFormikState,\n    submitForm: submitForm\n  };\n  var executeSubmit = useEventCallback(function () {\n    return onSubmit(state.values, imperativeMethods);\n  });\n  var handleReset = useEventCallback(function (e) {\n    if (e && e.preventDefault && isFunction(e.preventDefault)) {\n      e.preventDefault();\n    }\n\n    if (e && e.stopPropagation && isFunction(e.stopPropagation)) {\n      e.stopPropagation();\n    }\n\n    resetForm();\n  });\n  var getFieldMeta = useCallback(function (name) {\n    return {\n      value: getIn(state.values, name),\n      error: getIn(state.errors, name),\n      touched: !!getIn(state.touched, name),\n      initialValue: getIn(initialValues.current, name),\n      initialTouched: !!getIn(initialTouched.current, name),\n      initialError: getIn(initialErrors.current, name)\n    };\n  }, [state.errors, state.touched, state.values]);\n  var getFieldHelpers = useCallback(function (name) {\n    return {\n      setValue: function setValue(value, shouldValidate) {\n        return setFieldValue(name, value, shouldValidate);\n      },\n      setTouched: function setTouched(value, shouldValidate) {\n        return setFieldTouched(name, value, shouldValidate);\n      },\n      setError: function setError(value) {\n        return setFieldError(name, value);\n      }\n    };\n  }, [setFieldValue, setFieldTouched, setFieldError]);\n  var getFieldProps = useCallback(function (nameOrOptions) {\n    var isAnObject = isObject(nameOrOptions);\n    var name = isAnObject ? nameOrOptions.name : nameOrOptions;\n    var valueState = getIn(state.values, name);\n    var field = {\n      name: name,\n      value: valueState,\n      onChange: handleChange,\n      onBlur: handleBlur\n    };\n\n    if (isAnObject) {\n      var type = nameOrOptions.type,\n          valueProp = nameOrOptions.value,\n          is = nameOrOptions.as,\n          multiple = nameOrOptions.multiple;\n\n      if (type === 'checkbox') {\n        if (valueProp === undefined) {\n          field.checked = !!valueState;\n        } else {\n          field.checked = !!(Array.isArray(valueState) && ~valueState.indexOf(valueProp));\n          field.value = valueProp;\n        }\n      } else if (type === 'radio') {\n        field.checked = valueState === valueProp;\n        field.value = valueProp;\n      } else if (is === 'select' && multiple) {\n        field.value = field.value || [];\n        field.multiple = true;\n      }\n    }\n\n    return field;\n  }, [handleBlur, handleChange, state.values]);\n  var dirty = useMemo(function () {\n    return !isEqual(initialValues.current, state.values);\n  }, [initialValues.current, state.values]);\n  var isValid = useMemo(function () {\n    return typeof isInitialValid !== 'undefined' ? dirty ? state.errors && Object.keys(state.errors).length === 0 : isInitialValid !== false && isFunction(isInitialValid) ? isInitialValid(props) : isInitialValid : state.errors && Object.keys(state.errors).length === 0;\n  }, [isInitialValid, dirty, state.errors, props]);\n\n  var ctx = _extends({}, state, {\n    initialValues: initialValues.current,\n    initialErrors: initialErrors.current,\n    initialTouched: initialTouched.current,\n    initialStatus: initialStatus.current,\n    handleBlur: handleBlur,\n    handleChange: handleChange,\n    handleReset: handleReset,\n    handleSubmit: handleSubmit,\n    resetForm: resetForm,\n    setErrors: setErrors,\n    setFormikState: setFormikState,\n    setFieldTouched: setFieldTouched,\n    setFieldValue: setFieldValue,\n    setFieldError: setFieldError,\n    setStatus: setStatus,\n    setSubmitting: setSubmitting,\n    setTouched: setTouched,\n    setValues: setValues,\n    submitForm: submitForm,\n    validateForm: validateFormWithHighPriority,\n    validateField: validateField,\n    isValid: isValid,\n    dirty: dirty,\n    unregisterField: unregisterField,\n    registerField: registerField,\n    getFieldProps: getFieldProps,\n    getFieldMeta: getFieldMeta,\n    getFieldHelpers: getFieldHelpers,\n    validateOnBlur: validateOnBlur,\n    validateOnChange: validateOnChange,\n    validateOnMount: validateOnMount\n  });\n\n  return ctx;\n}\nfunction Formik(props) {\n  var formikbag = useFormik(props);\n  var component = props.component,\n      children = props.children,\n      render = props.render,\n      innerRef = props.innerRef; // This allows folks to pass a ref to <Formik />\n\n  useImperativeHandle(innerRef, function () {\n    return formikbag;\n  });\n\n  if (process.env.NODE_ENV !== \"production\") {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    useEffect(function () {\n      !!props.render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>\") : invariant(false) : void 0; // eslint-disable-next-line\n    }, []);\n  }\n\n  return createElement(FormikProvider, {\n    value: formikbag\n  }, component ? createElement(component, formikbag) : render ? render(formikbag) : children // children come last, always called\n  ? isFunction(children) ? children(formikbag) : !isEmptyChildren(children) ? Children.only(children) : null : null);\n}\n\nfunction warnAboutMissingIdentifier(_ref4) {\n  var htmlContent = _ref4.htmlContent,\n      documentationAnchorLink = _ref4.documentationAnchorLink,\n      handlerName = _ref4.handlerName;\n  console.warn(\"Warning: Formik called `\" + handlerName + \"`, but you forgot to pass an `id` or `name` attribute to your input:\\n    \" + htmlContent + \"\\n    Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#\" + documentationAnchorLink + \"\\n  \");\n}\n/**\r\n * Transform Yup ValidationError to a more usable object\r\n */\n\n\nfunction yupToFormErrors(yupError) {\n  var errors = {};\n\n  if (yupError.inner) {\n    if (yupError.inner.length === 0) {\n      return setIn(errors, yupError.path, yupError.message);\n    }\n\n    for (var _iterator = yupError.inner, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n      var _ref5;\n\n      if (_isArray) {\n        if (_i >= _iterator.length) break;\n        _ref5 = _iterator[_i++];\n      } else {\n        _i = _iterator.next();\n        if (_i.done) break;\n        _ref5 = _i.value;\n      }\n\n      var err = _ref5;\n\n      if (!getIn(errors, err.path)) {\n        errors = setIn(errors, err.path, err.message);\n      }\n    }\n  }\n\n  return errors;\n}\n/**\r\n * Validate a yup schema.\r\n */\n\nfunction validateYupSchema(values, schema, sync, context) {\n  if (sync === void 0) {\n    sync = false;\n  }\n\n  var normalizedValues = prepareDataForValidation(values);\n  return schema[sync ? 'validateSync' : 'validate'](normalizedValues, {\n    abortEarly: false,\n    context: context || normalizedValues\n  });\n}\n/**\r\n * Recursively prepare values.\r\n */\n\nfunction prepareDataForValidation(values) {\n  var data = Array.isArray(values) ? [] : {};\n\n  for (var k in values) {\n    if (Object.prototype.hasOwnProperty.call(values, k)) {\n      var key = String(k);\n\n      if (Array.isArray(values[key]) === true) {\n        data[key] = values[key].map(function (value) {\n          if (Array.isArray(value) === true || isPlainObject(value)) {\n            return prepareDataForValidation(value);\n          } else {\n            return value !== '' ? value : undefined;\n          }\n        });\n      } else if (isPlainObject(values[key])) {\n        data[key] = prepareDataForValidation(values[key]);\n      } else {\n        data[key] = values[key] !== '' ? values[key] : undefined;\n      }\n    }\n  }\n\n  return data;\n}\n/**\r\n * deepmerge array merging algorithm\r\n * https://github.com/KyleAMathews/deepmerge#combine-array\r\n */\n\nfunction arrayMerge(target, source, options) {\n  var destination = target.slice();\n  source.forEach(function merge(e, i) {\n    if (typeof destination[i] === 'undefined') {\n      var cloneRequested = options.clone !== false;\n      var shouldClone = cloneRequested && options.isMergeableObject(e);\n      destination[i] = shouldClone ? deepmerge(Array.isArray(e) ? [] : {}, e, options) : e;\n    } else if (options.isMergeableObject(e)) {\n      destination[i] = deepmerge(target[i], e, options);\n    } else if (target.indexOf(e) === -1) {\n      destination.push(e);\n    }\n  });\n  return destination;\n}\n/** Return multi select values based on an array of options */\n\n\nfunction getSelectedValues(options) {\n  return Array.from(options).filter(function (el) {\n    return el.selected;\n  }).map(function (el) {\n    return el.value;\n  });\n}\n/** Return the next value for a checkbox */\n\n\nfunction getValueForCheckbox(currentValue, checked, valueProp) {\n  // If the current value was a boolean, return a boolean\n  if (typeof currentValue === 'boolean') {\n    return Boolean(checked);\n  } // If the currentValue was not a boolean we want to return an array\n\n\n  var currentArrayOfValues = [];\n  var isValueInArray = false;\n  var index = -1;\n\n  if (!Array.isArray(currentValue)) {\n    // eslint-disable-next-line eqeqeq\n    if (!valueProp || valueProp == 'true' || valueProp == 'false') {\n      return Boolean(checked);\n    }\n  } else {\n    // If the current value is already an array, use it\n    currentArrayOfValues = currentValue;\n    index = currentValue.indexOf(valueProp);\n    isValueInArray = index >= 0;\n  } // If the checkbox was checked and the value is not already present in the aray we want to add the new value to the array of values\n\n\n  if (checked && valueProp && !isValueInArray) {\n    return currentArrayOfValues.concat(valueProp);\n  } // If the checkbox was unchecked and the value is not in the array, simply return the already existing array of values\n\n\n  if (!isValueInArray) {\n    return currentArrayOfValues;\n  } // If the checkbox was unchecked and the value is in the array, remove the value and return the array\n\n\n  return currentArrayOfValues.slice(0, index).concat(currentArrayOfValues.slice(index + 1));\n} // React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\n// @see https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n\n\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect : useEffect;\n\nfunction useEventCallback(fn) {\n  var ref = useRef(fn); // we copy a ref to the callback scoped to the current state/props on each render\n\n  useIsomorphicLayoutEffect(function () {\n    ref.current = fn;\n  });\n  return useCallback(function () {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    return ref.current.apply(void 0, args);\n  }, []);\n}\n\nfunction useField(propsOrFieldName) {\n  var formik = useFormikContext();\n  var getFieldProps = formik.getFieldProps,\n      getFieldMeta = formik.getFieldMeta,\n      getFieldHelpers = formik.getFieldHelpers,\n      registerField = formik.registerField,\n      unregisterField = formik.unregisterField;\n  var isAnObject = isObject(propsOrFieldName); // Normalize propsOrFieldName to FieldHookConfig<Val>\n\n  var props = isAnObject ? propsOrFieldName : {\n    name: propsOrFieldName\n  };\n  var fieldName = props.name,\n      validateFn = props.validate;\n  useEffect(function () {\n    if (fieldName) {\n      registerField(fieldName, {\n        validate: validateFn\n      });\n    }\n\n    return function () {\n      if (fieldName) {\n        unregisterField(fieldName);\n      }\n    };\n  }, [registerField, unregisterField, fieldName, validateFn]);\n\n  if (process.env.NODE_ENV !== \"production\") {\n    !formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component') : invariant(false) : void 0;\n  }\n\n  !fieldName ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Invalid field name. Either pass `useField` a string or an object containing a `name` key.') : invariant(false) : void 0;\n  var fieldHelpers = useMemo(function () {\n    return getFieldHelpers(fieldName);\n  }, [getFieldHelpers, fieldName]);\n  return [getFieldProps(props), getFieldMeta(fieldName), fieldHelpers];\n}\nfunction Field(_ref) {\n  var validate = _ref.validate,\n      name = _ref.name,\n      render = _ref.render,\n      children = _ref.children,\n      is = _ref.as,\n      component = _ref.component,\n      className = _ref.className,\n      props = _objectWithoutPropertiesLoose(_ref, [\"validate\", \"name\", \"render\", \"children\", \"as\", \"component\", \"className\"]);\n\n  var _useFormikContext = useFormikContext(),\n      formik = _objectWithoutPropertiesLoose(_useFormikContext, [\"validate\", \"validationSchema\"]);\n\n  if (process.env.NODE_ENV !== \"production\") {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    useEffect(function () {\n      !!render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\\\"\" + name + \"\\\" render={({field, form}) => ...} /> with <Field name=\\\"\" + name + \"\\\">{({field, form, meta}) => ...}</Field>\") : invariant(false) : void 0;\n      !!(is && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.') : invariant(false) : void 0;\n      !!(component && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.') : invariant(false) : void 0;\n      !!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored') : invariant(false) : void 0; // eslint-disable-next-line\n    }, []);\n  } // Register field and field-level validation with parent <Formik>\n\n\n  var registerField = formik.registerField,\n      unregisterField = formik.unregisterField;\n  useEffect(function () {\n    registerField(name, {\n      validate: validate\n    });\n    return function () {\n      unregisterField(name);\n    };\n  }, [registerField, unregisterField, name, validate]);\n  var field = formik.getFieldProps(_extends({\n    name: name\n  }, props));\n  var meta = formik.getFieldMeta(name);\n  var legacyBag = {\n    field: field,\n    form: formik\n  };\n\n  if (render) {\n    return render(_extends({}, legacyBag, {\n      meta: meta\n    }));\n  }\n\n  if (isFunction(children)) {\n    return children(_extends({}, legacyBag, {\n      meta: meta\n    }));\n  }\n\n  if (component) {\n    // This behavior is backwards compat with earlier Formik 0.9 to 1.x\n    if (typeof component === 'string') {\n      var innerRef = props.innerRef,\n          rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n      return createElement(component, _extends({\n        ref: innerRef\n      }, field, rest, {\n        className: className\n      }), children);\n    } // We don't pass `meta` for backwards compat\n\n\n    return createElement(component, _extends({\n      field: field,\n      form: formik\n    }, props, {\n      className: className\n    }), children);\n  } // default to input here so we can check for both `as` and `children` above\n\n\n  var asElement = is || 'input';\n\n  if (typeof asElement === 'string') {\n    var _innerRef = props.innerRef,\n        _rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n    return createElement(asElement, _extends({\n      ref: _innerRef\n    }, field, _rest, {\n      className: className\n    }), children);\n  }\n\n  return createElement(asElement, _extends({}, field, props, {\n    className: className\n  }), children);\n}\n\nvar Form = /*#__PURE__*/forwardRef(function (props, ref) {\n  // iOS needs an \"action\" attribute for nice input: https://stackoverflow.com/a/39485162/406725\n  // We default the action to \"#\" in case the preventDefault fails (just updates the URL hash)\n  var action = props.action,\n      rest = _objectWithoutPropertiesLoose(props, [\"action\"]);\n\n  var _action = action != null ? action : '#';\n\n  var _useFormikContext = useFormikContext(),\n      handleReset = _useFormikContext.handleReset,\n      handleSubmit = _useFormikContext.handleSubmit;\n\n  return createElement(\"form\", _extends({\n    onSubmit: handleSubmit,\n    ref: ref,\n    onReset: handleReset,\n    action: _action\n  }, rest));\n});\nForm.displayName = 'Form';\n\n/**\r\n * A public higher-order component to access the imperative API\r\n */\n\nfunction withFormik(_ref) {\n  var _ref$mapPropsToValues = _ref.mapPropsToValues,\n      mapPropsToValues = _ref$mapPropsToValues === void 0 ? function (vanillaProps) {\n    var val = {};\n\n    for (var k in vanillaProps) {\n      if (vanillaProps.hasOwnProperty(k) && typeof vanillaProps[k] !== 'function') {\n        // @todo TypeScript fix\n        val[k] = vanillaProps[k];\n      }\n    }\n\n    return val;\n  } : _ref$mapPropsToValues,\n      config = _objectWithoutPropertiesLoose(_ref, [\"mapPropsToValues\"]);\n\n  return function createFormik(Component$1) {\n    var componentDisplayName = Component$1.displayName || Component$1.name || Component$1.constructor && Component$1.constructor.name || 'Component';\n    /**\r\n     * We need to use closures here for to provide the wrapped component's props to\r\n     * the respective withFormik config methods.\r\n     */\n\n    var C = /*#__PURE__*/function (_React$Component) {\n      _inheritsLoose(C, _React$Component);\n\n      function C() {\n        var _this;\n\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n        _this.validate = function (values) {\n          return config.validate(values, _this.props);\n        };\n\n        _this.validationSchema = function () {\n          return isFunction(config.validationSchema) ? config.validationSchema(_this.props) : config.validationSchema;\n        };\n\n        _this.handleSubmit = function (values, actions) {\n          return config.handleSubmit(values, _extends({}, actions, {\n            props: _this.props\n          }));\n        };\n\n        _this.renderFormComponent = function (formikProps) {\n          return createElement(Component$1, _extends({}, _this.props, formikProps));\n        };\n\n        return _this;\n      }\n\n      var _proto = C.prototype;\n\n      _proto.render = function render() {\n        var _this$props = this.props,\n            props = _objectWithoutPropertiesLoose(_this$props, [\"children\"]);\n\n        return createElement(Formik, _extends({}, props, config, {\n          validate: config.validate && this.validate,\n          validationSchema: config.validationSchema && this.validationSchema,\n          initialValues: mapPropsToValues(this.props),\n          initialStatus: config.mapPropsToStatus && config.mapPropsToStatus(this.props),\n          initialErrors: config.mapPropsToErrors && config.mapPropsToErrors(this.props),\n          initialTouched: config.mapPropsToTouched && config.mapPropsToTouched(this.props),\n          onSubmit: this.handleSubmit,\n          children: this.renderFormComponent\n        }));\n      };\n\n      return C;\n    }(Component);\n\n    C.displayName = \"WithFormik(\" + componentDisplayName + \")\";\n    return hoistNonReactStatics(C, Component$1 // cast type to ComponentClass (even if SFC)\n    );\n  };\n}\n\n/**\r\n * Connect any component to Formik context, and inject as a prop called `formik`;\r\n * @param Comp React Component\r\n */\n\nfunction connect(Comp) {\n  var C = function C(props) {\n    return createElement(FormikConsumer, null, function (formik) {\n      !!!formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: \" + Comp.name) : invariant(false) : void 0;\n      return createElement(Comp, _extends({}, props, {\n        formik: formik\n      }));\n    });\n  };\n\n  var componentDisplayName = Comp.displayName || Comp.name || Comp.constructor && Comp.constructor.name || 'Component'; // Assign Comp to C.WrappedComponent so we can access the inner component in tests\n  // For example, <Field.WrappedComponent /> gets us <FieldInner/>\n\n  C.WrappedComponent = Comp;\n  C.displayName = \"FormikConnect(\" + componentDisplayName + \")\";\n  return hoistNonReactStatics(C, Comp // cast type to ComponentClass (even if SFC)\n  );\n}\n\n/**\r\n * Some array helpers!\r\n */\n\nvar move = function move(array, from, to) {\n  var copy = copyArrayLike(array);\n  var value = copy[from];\n  copy.splice(from, 1);\n  copy.splice(to, 0, value);\n  return copy;\n};\nvar swap = function swap(arrayLike, indexA, indexB) {\n  var copy = copyArrayLike(arrayLike);\n  var a = copy[indexA];\n  copy[indexA] = copy[indexB];\n  copy[indexB] = a;\n  return copy;\n};\nvar insert = function insert(arrayLike, index, value) {\n  var copy = copyArrayLike(arrayLike);\n  copy.splice(index, 0, value);\n  return copy;\n};\nvar replace = function replace(arrayLike, index, value) {\n  var copy = copyArrayLike(arrayLike);\n  copy[index] = value;\n  return copy;\n};\n\nvar copyArrayLike = function copyArrayLike(arrayLike) {\n  if (!arrayLike) {\n    return [];\n  } else if (Array.isArray(arrayLike)) {\n    return [].concat(arrayLike);\n  } else {\n    var maxIndex = Object.keys(arrayLike).map(function (key) {\n      return parseInt(key);\n    }).reduce(function (max, el) {\n      return el > max ? el : max;\n    }, 0);\n    return Array.from(_extends({}, arrayLike, {\n      length: maxIndex + 1\n    }));\n  }\n};\n\nvar createAlterationHandler = function createAlterationHandler(alteration, defaultFunction) {\n  var fn = typeof alteration === 'function' ? alteration : defaultFunction;\n  return function (data) {\n    if (Array.isArray(data) || isObject(data)) {\n      var clone = copyArrayLike(data);\n      return fn(clone);\n    } // This can be assumed to be a primitive, which\n    // is a case for top level validation errors\n\n\n    return data;\n  };\n};\n\nvar FieldArrayInner = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(FieldArrayInner, _React$Component);\n\n  function FieldArrayInner(props) {\n    var _this;\n\n    _this = _React$Component.call(this, props) || this; // We need TypeScript generics on these, so we'll bind them in the constructor\n    // @todo Fix TS 3.2.1\n\n    _this.updateArrayField = function (fn, alterTouched, alterErrors) {\n      var _this$props = _this.props,\n          name = _this$props.name,\n          setFormikState = _this$props.formik.setFormikState;\n      setFormikState(function (prevState) {\n        var updateErrors = createAlterationHandler(alterErrors, fn);\n        var updateTouched = createAlterationHandler(alterTouched, fn); // values fn should be executed before updateErrors and updateTouched,\n        // otherwise it causes an error with unshift.\n\n        var values = setIn(prevState.values, name, fn(getIn(prevState.values, name)));\n        var fieldError = alterErrors ? updateErrors(getIn(prevState.errors, name)) : undefined;\n        var fieldTouched = alterTouched ? updateTouched(getIn(prevState.touched, name)) : undefined;\n\n        if (isEmptyArray(fieldError)) {\n          fieldError = undefined;\n        }\n\n        if (isEmptyArray(fieldTouched)) {\n          fieldTouched = undefined;\n        }\n\n        return _extends({}, prevState, {\n          values: values,\n          errors: alterErrors ? setIn(prevState.errors, name, fieldError) : prevState.errors,\n          touched: alterTouched ? setIn(prevState.touched, name, fieldTouched) : prevState.touched\n        });\n      });\n    };\n\n    _this.push = function (value) {\n      return _this.updateArrayField(function (arrayLike) {\n        return [].concat(copyArrayLike(arrayLike), [cloneDeep(value)]);\n      }, false, false);\n    };\n\n    _this.handlePush = function (value) {\n      return function () {\n        return _this.push(value);\n      };\n    };\n\n    _this.swap = function (indexA, indexB) {\n      return _this.updateArrayField(function (array) {\n        return swap(array, indexA, indexB);\n      }, true, true);\n    };\n\n    _this.handleSwap = function (indexA, indexB) {\n      return function () {\n        return _this.swap(indexA, indexB);\n      };\n    };\n\n    _this.move = function (from, to) {\n      return _this.updateArrayField(function (array) {\n        return move(array, from, to);\n      }, true, true);\n    };\n\n    _this.handleMove = function (from, to) {\n      return function () {\n        return _this.move(from, to);\n      };\n    };\n\n    _this.insert = function (index, value) {\n      return _this.updateArrayField(function (array) {\n        return insert(array, index, value);\n      }, function (array) {\n        return insert(array, index, null);\n      }, function (array) {\n        return insert(array, index, null);\n      });\n    };\n\n    _this.handleInsert = function (index, value) {\n      return function () {\n        return _this.insert(index, value);\n      };\n    };\n\n    _this.replace = function (index, value) {\n      return _this.updateArrayField(function (array) {\n        return replace(array, index, value);\n      }, false, false);\n    };\n\n    _this.handleReplace = function (index, value) {\n      return function () {\n        return _this.replace(index, value);\n      };\n    };\n\n    _this.unshift = function (value) {\n      var length = -1;\n\n      _this.updateArrayField(function (array) {\n        var arr = array ? [value].concat(array) : [value];\n        length = arr.length;\n        return arr;\n      }, function (array) {\n        return array ? [null].concat(array) : [null];\n      }, function (array) {\n        return array ? [null].concat(array) : [null];\n      });\n\n      return length;\n    };\n\n    _this.handleUnshift = function (value) {\n      return function () {\n        return _this.unshift(value);\n      };\n    };\n\n    _this.handleRemove = function (index) {\n      return function () {\n        return _this.remove(index);\n      };\n    };\n\n    _this.handlePop = function () {\n      return function () {\n        return _this.pop();\n      };\n    };\n\n    _this.remove = _this.remove.bind(_assertThisInitialized(_this));\n    _this.pop = _this.pop.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  var _proto = FieldArrayInner.prototype;\n\n  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n    if (this.props.validateOnChange && this.props.formik.validateOnChange && !isEqual(getIn(prevProps.formik.values, prevProps.name), getIn(this.props.formik.values, this.props.name))) {\n      this.props.formik.validateForm(this.props.formik.values);\n    }\n  };\n\n  _proto.remove = function remove(index) {\n    // We need to make sure we also remove relevant pieces of `touched` and `errors`\n    var result;\n    this.updateArrayField( // so this gets call 3 times\n    function (array) {\n      var copy = array ? copyArrayLike(array) : [];\n\n      if (!result) {\n        result = copy[index];\n      }\n\n      if (isFunction(copy.splice)) {\n        copy.splice(index, 1);\n      } // if the array only includes undefined values we have to return an empty array\n\n\n      return isFunction(copy.every) ? copy.every(function (v) {\n        return v === undefined;\n      }) ? [] : copy : copy;\n    }, true, true);\n    return result;\n  };\n\n  _proto.pop = function pop() {\n    // Remove relevant pieces of `touched` and `errors` too!\n    var result;\n    this.updateArrayField( // so this gets call 3 times\n    function (array) {\n      var tmp = array.slice();\n\n      if (!result) {\n        result = tmp && tmp.pop && tmp.pop();\n      }\n\n      return tmp;\n    }, true, true);\n    return result;\n  };\n\n  _proto.render = function render() {\n    var arrayHelpers = {\n      push: this.push,\n      pop: this.pop,\n      swap: this.swap,\n      move: this.move,\n      insert: this.insert,\n      replace: this.replace,\n      unshift: this.unshift,\n      remove: this.remove,\n      handlePush: this.handlePush,\n      handlePop: this.handlePop,\n      handleSwap: this.handleSwap,\n      handleMove: this.handleMove,\n      handleInsert: this.handleInsert,\n      handleReplace: this.handleReplace,\n      handleUnshift: this.handleUnshift,\n      handleRemove: this.handleRemove\n    };\n\n    var _this$props2 = this.props,\n        component = _this$props2.component,\n        render = _this$props2.render,\n        children = _this$props2.children,\n        name = _this$props2.name,\n        _this$props2$formik = _this$props2.formik,\n        restOfFormik = _objectWithoutPropertiesLoose(_this$props2$formik, [\"validate\", \"validationSchema\"]);\n\n    var props = _extends({}, arrayHelpers, {\n      form: restOfFormik,\n      name: name\n    });\n\n    return component ? createElement(component, props) : render ? render(props) : children // children come last, always called\n    ? typeof children === 'function' ? children(props) : !isEmptyChildren(children) ? Children.only(children) : null : null;\n  };\n\n  return FieldArrayInner;\n}(Component);\n\nFieldArrayInner.defaultProps = {\n  validateOnChange: true\n};\nvar FieldArray = /*#__PURE__*/connect(FieldArrayInner);\n\nvar ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(ErrorMessageImpl, _React$Component);\n\n  function ErrorMessageImpl() {\n    return _React$Component.apply(this, arguments) || this;\n  }\n\n  var _proto = ErrorMessageImpl.prototype;\n\n  _proto.shouldComponentUpdate = function shouldComponentUpdate(props) {\n    if (getIn(this.props.formik.errors, this.props.name) !== getIn(props.formik.errors, this.props.name) || getIn(this.props.formik.touched, this.props.name) !== getIn(props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length) {\n      return true;\n    } else {\n      return false;\n    }\n  };\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        component = _this$props.component,\n        formik = _this$props.formik,\n        render = _this$props.render,\n        children = _this$props.children,\n        name = _this$props.name,\n        rest = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"formik\", \"render\", \"children\", \"name\"]);\n\n    var touch = getIn(formik.touched, name);\n    var error = getIn(formik.errors, name);\n    return !!touch && !!error ? render ? isFunction(render) ? render(error) : null : children ? isFunction(children) ? children(error) : null : component ? createElement(component, rest, error) : error : null;\n  };\n\n  return ErrorMessageImpl;\n}(Component);\n\nvar ErrorMessage = /*#__PURE__*/connect(ErrorMessageImpl);\n\n/**\r\n * Custom Field component for quickly hooking into Formik\r\n * context and wiring up forms.\r\n */\n\nvar FastFieldInner = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(FastFieldInner, _React$Component);\n\n  function FastFieldInner(props) {\n    var _this;\n\n    _this = _React$Component.call(this, props) || this;\n    var render = props.render,\n        children = props.children,\n        component = props.component,\n        is = props.as,\n        name = props.name;\n    !!render ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"<FastField render> has been deprecated. Please use a child callback function instead: <FastField name={\" + name + \"}>{props => ...}</FastField> instead.\") : invariant(false) : void 0;\n    !!(component && render) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField component> and <FastField render> in the same <FastField> component; <FastField component> will be ignored') : invariant(false) : void 0;\n    !!(is && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField as> and <FastField children> as a function in the same <FastField> component; <FastField as> will be ignored.') : invariant(false) : void 0;\n    !!(component && children && isFunction(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField component> and <FastField children> as a function in the same <FastField> component; <FastField component> will be ignored.') : invariant(false) : void 0;\n    !!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'You should not use <FastField render> and <FastField children> in the same <FastField> component; <FastField children> will be ignored') : invariant(false) : void 0;\n    return _this;\n  }\n\n  var _proto = FastFieldInner.prototype;\n\n  _proto.shouldComponentUpdate = function shouldComponentUpdate(props) {\n    if (this.props.shouldUpdate) {\n      return this.props.shouldUpdate(props, this.props);\n    } else if (props.name !== this.props.name || getIn(props.formik.values, this.props.name) !== getIn(this.props.formik.values, this.props.name) || getIn(props.formik.errors, this.props.name) !== getIn(this.props.formik.errors, this.props.name) || getIn(props.formik.touched, this.props.name) !== getIn(this.props.formik.touched, this.props.name) || Object.keys(this.props).length !== Object.keys(props).length || props.formik.isSubmitting !== this.props.formik.isSubmitting) {\n      return true;\n    } else {\n      return false;\n    }\n  };\n\n  _proto.componentDidMount = function componentDidMount() {\n    // Register the Field with the parent Formik. Parent will cycle through\n    // registered Field's validate fns right prior to submit\n    this.props.formik.registerField(this.props.name, {\n      validate: this.props.validate\n    });\n  };\n\n  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n    if (this.props.name !== prevProps.name) {\n      this.props.formik.unregisterField(prevProps.name);\n      this.props.formik.registerField(this.props.name, {\n        validate: this.props.validate\n      });\n    }\n\n    if (this.props.validate !== prevProps.validate) {\n      this.props.formik.registerField(this.props.name, {\n        validate: this.props.validate\n      });\n    }\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    this.props.formik.unregisterField(this.props.name);\n  };\n\n  _proto.render = function render() {\n    var _this$props = this.props,\n        name = _this$props.name,\n        render = _this$props.render,\n        is = _this$props.as,\n        children = _this$props.children,\n        component = _this$props.component,\n        formik = _this$props.formik,\n        props = _objectWithoutPropertiesLoose(_this$props, [\"validate\", \"name\", \"render\", \"as\", \"children\", \"component\", \"shouldUpdate\", \"formik\"]);\n\n    var restOfFormik = _objectWithoutPropertiesLoose(formik, [\"validate\", \"validationSchema\"]);\n\n    var field = formik.getFieldProps(_extends({\n      name: name\n    }, props));\n    var meta = {\n      value: getIn(formik.values, name),\n      error: getIn(formik.errors, name),\n      touched: !!getIn(formik.touched, name),\n      initialValue: getIn(formik.initialValues, name),\n      initialTouched: !!getIn(formik.initialTouched, name),\n      initialError: getIn(formik.initialErrors, name)\n    };\n    var bag = {\n      field: field,\n      meta: meta,\n      form: restOfFormik\n    };\n\n    if (render) {\n      return render(bag);\n    }\n\n    if (isFunction(children)) {\n      return children(bag);\n    }\n\n    if (component) {\n      // This behavior is backwards compat with earlier Formik 0.9 to 1.x\n      if (typeof component === 'string') {\n        var innerRef = props.innerRef,\n            rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n        return createElement(component, _extends({\n          ref: innerRef\n        }, field, rest), children);\n      } // We don't pass `meta` for backwards compat\n\n\n      return createElement(component, _extends({\n        field: field,\n        form: formik\n      }, props), children);\n    } // default to input here so we can check for both `as` and `children` above\n\n\n    var asElement = is || 'input';\n\n    if (typeof asElement === 'string') {\n      var _innerRef = props.innerRef,\n          _rest = _objectWithoutPropertiesLoose(props, [\"innerRef\"]);\n\n      return createElement(asElement, _extends({\n        ref: _innerRef\n      }, field, _rest), children);\n    }\n\n    return createElement(asElement, _extends({}, field, props), children);\n  };\n\n  return FastFieldInner;\n}(Component);\n\nvar FastField = /*#__PURE__*/connect(FastFieldInner);\n\nexport { ErrorMessage, FastField, Field, FieldArray, Form, Formik, FormikConsumer, FormikContext, FormikProvider, connect, getActiveElement, getIn, insert, isEmptyArray, isEmptyChildren, isFunction, isInputEvent, isInteger, isNaN$1 as isNaN, isObject, isPromise, isString, move, prepareDataForValidation, replace, setIn, setNestedObjectValues, swap, useField, useFormik, useFormikContext, validateYupSchema, withFormik, yupToFormErrors };\n//# sourceMappingURL=formik.esm.js.map\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n    var arr = [];\n\n    for (var i = 0; i < a.length; i += 1) {\n        arr[i] = a[i];\n    }\n    for (var j = 0; j < b.length; j += 1) {\n        arr[j + a.length] = b[j];\n    }\n\n    return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n    var arr = [];\n    for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n        arr[j] = arrLike[i];\n    }\n    return arr;\n};\n\nvar joiny = function (arr, joiner) {\n    var str = '';\n    for (var i = 0; i < arr.length; i += 1) {\n        str += arr[i];\n        if (i + 1 < arr.length) {\n            str += joiner;\n        }\n    }\n    return str;\n};\n\nmodule.exports = function bind(that) {\n    var target = this;\n    if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n        throw new TypeError(ERROR_MESSAGE + target);\n    }\n    var args = slicy(arguments, 1);\n\n    var bound;\n    var binder = function () {\n        if (this instanceof bound) {\n            var result = target.apply(\n                this,\n                concatty(args, arguments)\n            );\n            if (Object(result) === result) {\n                return result;\n            }\n            return this;\n        }\n        return target.apply(\n            that,\n            concatty(args, arguments)\n        );\n\n    };\n\n    var boundLength = max(0, target.length - args.length);\n    var boundArgs = [];\n    for (var i = 0; i < boundLength; i++) {\n        boundArgs[i] = '$' + i;\n    }\n\n    bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n    if (target.prototype) {\n        var Empty = function Empty() {};\n        Empty.prototype = target.prototype;\n        bound.prototype = new Empty();\n        Empty.prototype = null;\n    }\n\n    return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $Object = require('es-object-atoms');\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar abs = require('math-intrinsics/abs');\nvar floor = require('math-intrinsics/floor');\nvar max = require('math-intrinsics/max');\nvar min = require('math-intrinsics/min');\nvar pow = require('math-intrinsics/pow');\nvar round = require('math-intrinsics/round');\nvar sign = require('math-intrinsics/sign');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = require('gopd');\nvar $defineProperty = require('es-define-property');\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = require('get-proto');\nvar $ObjectGPO = require('get-proto/Object.getPrototypeOf');\nvar $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');\n\nvar $apply = require('call-bind-apply-helpers/functionApply');\nvar $call = require('call-bind-apply-helpers/functionCall');\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.getPrototypeOf')} */\nmodule.exports = $Object.getPrototypeOf || null;\n","'use strict';\n\n/** @type {import('./Reflect.getPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;\n","'use strict';\n\nvar reflectGetProto = require('./Reflect.getPrototypeOf');\nvar originalGetProto = require('./Object.getPrototypeOf');\n\nvar getDunderProto = require('dunder-proto/get');\n\n/** @type {import('.')} */\nmodule.exports = reflectGetProto\n\t? function getProto(O) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\treturn reflectGetProto(O);\n\t}\n\t: originalGetProto\n\t\t? function getProto(O) {\n\t\t\tif (!O || (typeof O !== 'object' && typeof O !== 'function')) {\n\t\t\t\tthrow new TypeError('getProto: not an object');\n\t\t\t}\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\treturn originalGetProto(O);\n\t\t}\n\t\t: getDunderProto\n\t\t\t? function getProto(O) {\n\t\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\t\treturn getDunderProto(O);\n\t\t\t}\n\t\t\t: null;\n","'use strict';\n\n/** @type {import('./gOPD')} */\nmodule.exports = Object.getOwnPropertyDescriptor;\n","'use strict';\n\n/** @type {import('.')} */\nvar $gOPD = require('./gOPD');\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/** @type {import('./shams')} */\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\t/** @type {{ [k in symbol]?: unknown }} */\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n  childContextTypes: true,\n  contextType: true,\n  contextTypes: true,\n  defaultProps: true,\n  displayName: true,\n  getDefaultProps: true,\n  getDerivedStateFromError: true,\n  getDerivedStateFromProps: true,\n  mixins: true,\n  propTypes: true,\n  type: true\n};\nvar KNOWN_STATICS = {\n  name: true,\n  length: true,\n  prototype: true,\n  caller: true,\n  callee: true,\n  arguments: true,\n  arity: true\n};\nvar FORWARD_REF_STATICS = {\n  '$$typeof': true,\n  render: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true\n};\nvar MEMO_STATICS = {\n  '$$typeof': true,\n  compare: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true,\n  type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n  // React v16.11 and below\n  if (reactIs.isMemo(component)) {\n    return MEMO_STATICS;\n  } // React v16.12 and above\n\n\n  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n  if (typeof sourceComponent !== 'string') {\n    // don't hoist over string (html) components\n    if (objectPrototype) {\n      var inheritedComponent = getPrototypeOf(sourceComponent);\n\n      if (inheritedComponent && inheritedComponent !== objectPrototype) {\n        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n      }\n    }\n\n    var keys = getOwnPropertyNames(sourceComponent);\n\n    if (getOwnPropertySymbols) {\n      keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n    }\n\n    var targetStatics = getStatics(targetComponent);\n    var sourceStatics = getStatics(sourceComponent);\n\n    for (var i = 0; i < keys.length; ++i) {\n      var key = keys[i];\n\n      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n        try {\n          // Avoid failures from read-only properties\n          defineProperty(targetComponent, key, descriptor);\n        } catch (e) {}\n      }\n    }\n  }\n\n  return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/**\n * SVG elements are case-sensitive.\n *\n * @see {@link https://developer.mozilla.org/docs/Web/SVG/Element#svg_elements_a_to_z}\n */\nexports.CASE_SENSITIVE_TAG_NAMES = [\n  'animateMotion',\n  'animateTransform',\n  'clipPath',\n  'feBlend',\n  'feColorMatrix',\n  'feComponentTransfer',\n  'feComposite',\n  'feConvolveMatrix',\n  'feDiffuseLighting',\n  'feDisplacementMap',\n  'feDropShadow',\n  'feFlood',\n  'feFuncA',\n  'feFuncB',\n  'feFuncG',\n  'feFuncR',\n  'feGaussianBlur',\n  'feImage',\n  'feMerge',\n  'feMergeNode',\n  'feMorphology',\n  'feOffset',\n  'fePointLight',\n  'feSpecularLighting',\n  'feSpotLight',\n  'feTile',\n  'feTurbulence',\n  'foreignObject',\n  'linearGradient',\n  'radialGradient',\n  'textPath'\n];\n","// constants\nvar HTML = 'html';\nvar HEAD = 'head';\nvar BODY = 'body';\nvar FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/; // e.g., <h1>\n// match-all-characters in case of newlines (DOTALL)\nvar HEAD_TAG_REGEX = /<head[^]*>/i;\nvar BODY_TAG_REGEX = /<body[^]*>/i;\n\n// falls back to `parseFromString` if `createHTMLDocument` cannot be used\nvar parseFromDocument = function () {\n  throw new Error(\n    'This browser does not support `document.implementation.createHTMLDocument`'\n  );\n};\n\nvar parseFromString = function () {\n  throw new Error(\n    'This browser does not support `DOMParser.prototype.parseFromString`'\n  );\n};\n\nvar DOMParser = typeof window === 'object' && window.DOMParser;\n\n/**\n * DOMParser (performance: slow).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMParser#Parsing_an_SVG_or_HTML_document\n */\nif (typeof DOMParser === 'function') {\n  var domParser = new DOMParser();\n  var mimeType = 'text/html';\n\n  /**\n   * Creates an HTML document using `DOMParser.parseFromString`.\n   *\n   * @param  {string} html      - The HTML string.\n   * @param  {string} [tagName] - The element to render the HTML (with 'body' as fallback).\n   * @return {HTMLDocument}\n   */\n  parseFromString = function (html, tagName) {\n    if (tagName) {\n      html = '<' + tagName + '>' + html + '</' + tagName + '>';\n    }\n\n    return domParser.parseFromString(html, mimeType);\n  };\n\n  parseFromDocument = parseFromString;\n}\n\n/**\n * DOMImplementation (performance: fair).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument\n */\nif (typeof document === 'object' && document.implementation) {\n  var doc = document.implementation.createHTMLDocument();\n\n  /**\n   * Use HTML document created by `document.implementation.createHTMLDocument`.\n   *\n   * @param  {string} html      - The HTML string.\n   * @param  {string} [tagName] - The element to render the HTML (with 'body' as fallback).\n   * @return {HTMLDocument}\n   */\n  parseFromDocument = function (html, tagName) {\n    if (tagName) {\n      var element = doc.documentElement.querySelector(tagName);\n      element.innerHTML = html;\n      return doc;\n    }\n\n    doc.documentElement.innerHTML = html;\n    return doc;\n  };\n}\n\n/**\n * Template (performance: fast).\n *\n * @see https://developer.mozilla.org/docs/Web/HTML/Element/template\n */\nvar template =\n  typeof document === 'object' ? document.createElement('template') : {};\n\nvar parseFromTemplate;\n\nif (template.content) {\n  /**\n   * Uses a template element (content fragment) to parse HTML.\n   *\n   * @param  {string} html - The HTML string.\n   * @return {NodeList}\n   */\n  parseFromTemplate = function (html) {\n    template.innerHTML = html;\n    return template.content.childNodes;\n  };\n}\n\n/**\n * Parses HTML string to DOM nodes.\n *\n * @param  {string}   html - HTML markup.\n * @return {NodeList}\n */\nfunction domparser(html) {\n  var firstTagName;\n  var match = html.match(FIRST_TAG_REGEX);\n\n  if (match && match[1]) {\n    firstTagName = match[1].toLowerCase();\n  }\n\n  var doc;\n  var element;\n  var elements;\n\n  switch (firstTagName) {\n    case HTML:\n      doc = parseFromString(html);\n\n      // the created document may come with filler head/body elements,\n      // so make sure to remove them if they don't actually exist\n      if (!HEAD_TAG_REGEX.test(html)) {\n        element = doc.querySelector(HEAD);\n        if (element) {\n          element.parentNode.removeChild(element);\n        }\n      }\n\n      if (!BODY_TAG_REGEX.test(html)) {\n        element = doc.querySelector(BODY);\n        if (element) {\n          element.parentNode.removeChild(element);\n        }\n      }\n\n      return doc.querySelectorAll(HTML);\n\n    case HEAD:\n    case BODY:\n      doc = parseFromDocument(html);\n      elements = doc.querySelectorAll(firstTagName);\n\n      // if there's a sibling element, then return both elements\n      if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {\n        return elements[0].parentNode.childNodes;\n      }\n      return elements;\n\n    // low-level tag or text\n    default:\n      if (parseFromTemplate) {\n        return parseFromTemplate(html);\n      }\n      element = parseFromDocument(html, BODY).querySelector(BODY);\n      return element.childNodes;\n  }\n}\n\nmodule.exports = domparser;\n","var domparser = require('./domparser');\nvar utilities = require('./utilities');\n\nvar formatDOM = utilities.formatDOM;\n\nvar DIRECTIVE_REGEX = /<(![a-zA-Z\\s]+)>/; // e.g., <!doctype html>\n\n/**\n * Parses HTML string to DOM nodes in browser.\n *\n * @param  {string} html  - HTML markup.\n * @return {DomElement[]} - DOM elements.\n */\nfunction HTMLDOMParser(html) {\n  if (typeof html !== 'string') {\n    throw new TypeError('First argument must be a string');\n  }\n\n  if (html === '') {\n    return [];\n  }\n\n  // match directive\n  var match = html.match(DIRECTIVE_REGEX);\n  var directive;\n\n  if (match && match[1]) {\n    directive = match[1];\n  }\n\n  return formatDOM(domparser(html), null, directive);\n}\n\nmodule.exports = HTMLDOMParser;\n","var domhandler = require('domhandler');\nvar constants = require('./constants');\n\nvar CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;\n\nvar Comment = domhandler.Comment;\nvar Element = domhandler.Element;\nvar ProcessingInstruction = domhandler.ProcessingInstruction;\nvar Text = domhandler.Text;\n\nvar caseSensitiveTagNamesMap = {};\nvar tagName;\n\nfor (var i = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i < len; i++) {\n  tagName = CASE_SENSITIVE_TAG_NAMES[i];\n  caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;\n}\n\n/**\n * Gets case-sensitive tag name.\n *\n * @param {string} tagName - Tag name in lowercase.\n * @returns {string|undefined} - Case-sensitive tag name.\n */\nfunction getCaseSensitiveTagName(tagName) {\n  return caseSensitiveTagNamesMap[tagName];\n}\n\n/**\n * Formats DOM attributes to a hash map.\n *\n * @param {NamedNodeMap} attributes - List of attributes.\n * @returns {object} - Map of attribute name to value.\n */\nfunction formatAttributes(attributes) {\n  var result = {};\n  var attribute;\n  // `NamedNodeMap` is array-like\n  for (var i = 0, len = attributes.length; i < len; i++) {\n    attribute = attributes[i];\n    result[attribute.name] = attribute.value;\n  }\n  return result;\n}\n\n/**\n * Corrects the tag name if it is case-sensitive (SVG).\n * Otherwise, returns the lowercase tag name (HTML).\n *\n * @param {string} tagName - Lowercase tag name.\n * @returns {string} - Formatted tag name.\n */\nfunction formatTagName(tagName) {\n  tagName = tagName.toLowerCase();\n  var caseSensitiveTagName = getCaseSensitiveTagName(tagName);\n  if (caseSensitiveTagName) {\n    return caseSensitiveTagName;\n  }\n  return tagName;\n}\n\n/**\n * Transforms DOM nodes to `domhandler` nodes.\n *\n * @param {NodeList} nodes - DOM nodes.\n * @param {Element|null} [parent=null] - Parent node.\n * @param {string} [directive] - Directive.\n * @returns {Array<Comment|Element|ProcessingInstruction|Text>}\n */\nfunction formatDOM(nodes, parent, directive) {\n  parent = parent || null;\n  var result = [];\n  var tagName;\n\n  for (var index = 0, len = nodes.length; index < len; index++) {\n    var node = nodes[index];\n    var current;\n\n    // set the node data given the type\n    switch (node.nodeType) {\n      case 1:\n        tagName = formatTagName(node.nodeName);\n        // script, style, or tag\n        current = new Element(tagName, formatAttributes(node.attributes));\n        current.children = formatDOM(\n          // template children are on content\n          tagName === 'template' ? node.content.childNodes : node.childNodes,\n          current\n        );\n        break;\n\n      case 3:\n        current = new Text(node.nodeValue);\n        break;\n\n      case 8:\n        current = new Comment(node.nodeValue);\n        break;\n\n      default:\n        continue;\n    }\n\n    // set previous node next\n    var prev = result[index - 1] || null;\n    if (prev) {\n      prev.next = current;\n    }\n\n    // set properties for current node\n    current.parent = parent;\n    current.prev = prev;\n    current.next = null;\n\n    result.push(current);\n  }\n\n  if (directive) {\n    current = new ProcessingInstruction(\n      directive.substring(0, directive.indexOf(' ')).toLowerCase(),\n      directive\n    );\n    current.next = result[0] || null;\n    current.parent = parent;\n    result.unshift(current);\n\n    if (result[1]) {\n      result[1].prev = result[0];\n    }\n  }\n\n  return result;\n}\n\nexports.formatAttributes = formatAttributes;\nexports.formatDOM = formatDOM;\n","var domhandler = require('domhandler');\nvar htmlToDOM = require('html-dom-parser');\n\nvar attributesToProps = require('./lib/attributes-to-props');\nvar domToReact = require('./lib/dom-to-react');\n\n// support backwards compatibility for ES Module\nhtmlToDOM =\n  /* istanbul ignore next */\n  typeof htmlToDOM.default === 'function' ? htmlToDOM.default : htmlToDOM;\n\nvar domParserOptions = { lowerCaseAttributeNames: false };\n\n/**\n * Converts HTML string to React elements.\n *\n * @param {string} html - HTML string.\n * @param {object} [options] - Parser options.\n * @param {object} [options.htmlparser2] - htmlparser2 options.\n * @param {object} [options.library] - Library for React, Preact, etc.\n * @param {Function} [options.replace] - Replace method.\n * @returns {JSX.Element|JSX.Element[]|string} - React element(s), empty array, or string.\n */\nfunction HTMLReactParser(html, options) {\n  if (typeof html !== 'string') {\n    throw new TypeError('First argument must be a string');\n  }\n  if (html === '') {\n    return [];\n  }\n  options = options || {};\n  return domToReact(\n    htmlToDOM(html, options.htmlparser2 || domParserOptions),\n    options\n  );\n}\n\nHTMLReactParser.domToReact = domToReact;\nHTMLReactParser.htmlToDOM = htmlToDOM;\nHTMLReactParser.attributesToProps = attributesToProps;\n\n// domhandler\nHTMLReactParser.Comment = domhandler.Comment;\nHTMLReactParser.Element = domhandler.Element;\nHTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;\nHTMLReactParser.Text = domhandler.Text;\n\n// support CommonJS and ES Modules\nmodule.exports = HTMLReactParser;\nHTMLReactParser.default = HTMLReactParser;\n","var reactProperty = require('react-property');\nvar utilities = require('./utilities');\n\n// https://reactjs.org/docs/uncontrolled-components.html\n// https://developer.mozilla.org/docs/Web/HTML/Attributes\nvar UNCONTROLLED_COMPONENT_ATTRIBUTES = ['checked', 'value'];\nvar UNCONTROLLED_COMPONENT_NAMES = ['input', 'select', 'textarea'];\n\nvar VALUE_ONLY_INPUTS = {\n  reset: true,\n  submit: true\n};\n\n/**\n * Converts HTML/SVG DOM attributes to React props.\n *\n * @param {object} [attributes={}] - HTML/SVG DOM attributes.\n * @param {string} [nodeName] - DOM node name.\n * @returns - React props.\n */\nmodule.exports = function attributesToProps(attributes, nodeName) {\n  attributes = attributes || {};\n\n  var attributeName;\n  var attributeNameLowerCased;\n  var attributeValue;\n  var propName;\n  var propertyInfo;\n  var props = {};\n  var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];\n\n  for (attributeName in attributes) {\n    attributeValue = attributes[attributeName];\n\n    // ARIA (aria-*) or custom data (data-*) attribute\n    if (reactProperty.isCustomAttribute(attributeName)) {\n      props[attributeName] = attributeValue;\n      continue;\n    }\n\n    // convert HTML/SVG attribute to React prop\n    attributeNameLowerCased = attributeName.toLowerCase();\n    propName = getPropName(attributeNameLowerCased);\n\n    if (propName) {\n      propertyInfo = reactProperty.getPropertyInfo(propName);\n\n      // convert attribute to uncontrolled component prop (e.g., `value` to `defaultValue`)\n      if (\n        UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 &&\n        UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 &&\n        !inputIsValueOnly\n      ) {\n        propName = getPropName('default' + attributeNameLowerCased);\n      }\n\n      props[propName] = attributeValue;\n\n      switch (propertyInfo && propertyInfo.type) {\n        case reactProperty.BOOLEAN:\n          props[propName] = true;\n          break;\n        case reactProperty.OVERLOADED_BOOLEAN:\n          if (attributeValue === '') {\n            props[propName] = true;\n          }\n          break;\n      }\n      continue;\n    }\n\n    // preserve custom attribute if React >=16\n    if (utilities.PRESERVE_CUSTOM_ATTRIBUTES) {\n      props[attributeName] = attributeValue;\n    }\n  }\n\n  // transform inline style to object\n  utilities.setStyleProp(attributes.style, props);\n\n  return props;\n};\n\n/**\n * Gets prop name from lowercased attribute name.\n *\n * @param {string} attributeName - Lowercased attribute name.\n * @returns - Prop name.\n */\nfunction getPropName(attributeName) {\n  return reactProperty.possibleStandardNames[attributeName];\n}\n","var React = require('react');\nvar attributesToProps = require('./attributes-to-props');\nvar utilities = require('./utilities');\n\nvar setStyleProp = utilities.setStyleProp;\nvar canTextBeChildOfNode = utilities.canTextBeChildOfNode;\n\n/**\n * Converts DOM nodes to JSX element(s).\n *\n * @param {DomElement[]} nodes - DOM nodes.\n * @param {object} [options={}] - Options.\n * @param {Function} [options.replace] - Replacer.\n * @param {object} [options.library] - Library (React, Preact, etc.).\n * @returns - String or JSX element(s).\n */\nfunction domToReact(nodes, options) {\n  options = options || {};\n\n  var library = options.library || React;\n  var cloneElement = library.cloneElement;\n  var createElement = library.createElement;\n  var isValidElement = library.isValidElement;\n\n  var result = [];\n  var node;\n  var isWhitespace;\n  var hasReplace = typeof options.replace === 'function';\n  var replaceElement;\n  var props;\n  var children;\n  var trim = options.trim;\n\n  for (var i = 0, len = nodes.length; i < len; i++) {\n    node = nodes[i];\n\n    // replace with custom React element (if present)\n    if (hasReplace) {\n      replaceElement = options.replace(node);\n\n      if (isValidElement(replaceElement)) {\n        // set \"key\" prop for sibling elements\n        // https://fb.me/react-warning-keys\n        if (len > 1) {\n          replaceElement = cloneElement(replaceElement, {\n            key: replaceElement.key || i\n          });\n        }\n        result.push(replaceElement);\n        continue;\n      }\n    }\n\n    if (node.type === 'text') {\n      isWhitespace = !node.data.trim().length;\n\n      if (isWhitespace && node.parent && !canTextBeChildOfNode(node.parent)) {\n        // We have a whitespace node that can't be nested in its parent\n        // so skip it\n        continue;\n      }\n\n      if (trim && isWhitespace) {\n        // Trim is enabled and we have a whitespace node\n        // so skip it\n        continue;\n      }\n\n      // We have a text node that's not whitespace and it can be nested\n      // in its parent so add it to the results\n      result.push(node.data);\n      continue;\n    }\n\n    props = node.attribs;\n    if (skipAttributesToProps(node)) {\n      setStyleProp(props.style, props);\n    } else if (props) {\n      props = attributesToProps(props, node.name);\n    }\n\n    children = null;\n\n    switch (node.type) {\n      case 'script':\n      case 'style':\n        // prevent text in <script> or <style> from being escaped\n        // https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml\n        if (node.children[0]) {\n          props.dangerouslySetInnerHTML = {\n            __html: node.children[0].data\n          };\n        }\n        break;\n\n      case 'tag':\n        // setting textarea value in children is an antipattern in React\n        // https://reactjs.org/docs/forms.html#the-textarea-tag\n        if (node.name === 'textarea' && node.children[0]) {\n          props.defaultValue = node.children[0].data;\n        } else if (node.children && node.children.length) {\n          // continue recursion of creating React elements (if applicable)\n          children = domToReact(node.children, options);\n        }\n        break;\n\n      // skip all other cases (e.g., comment)\n      default:\n        continue;\n    }\n\n    // set \"key\" prop for sibling elements\n    // https://fb.me/react-warning-keys\n    if (len > 1) {\n      props.key = i;\n    }\n\n    result.push(createElement(node.name, props, children));\n  }\n\n  return result.length === 1 ? result[0] : result;\n}\n\n/**\n * Determines whether DOM element attributes should be transformed to props.\n * Web Components should not have their attributes transformed except for `style`.\n *\n * @param {DomElement} node\n * @returns - Whether node attributes should be converted to props.\n */\nfunction skipAttributesToProps(node) {\n  return (\n    utilities.PRESERVE_CUSTOM_ATTRIBUTES &&\n    node.type === 'tag' &&\n    utilities.isCustomComponent(node.name, node.attribs)\n  );\n}\n\nmodule.exports = domToReact;\n","var React = require('react');\nvar styleToJS = require('style-to-js').default;\n\n/**\n * Swap key with value in an object.\n *\n * @param {object} obj - The object.\n * @param {Function} [override] - The override method.\n * @returns - The inverted object.\n */\nfunction invertObject(obj, override) {\n  if (!obj || typeof obj !== 'object') {\n    throw new TypeError('First argument must be an object');\n  }\n\n  var key;\n  var value;\n  var isOverridePresent = typeof override === 'function';\n  var overrides = {};\n  var result = {};\n\n  for (key in obj) {\n    value = obj[key];\n\n    if (isOverridePresent) {\n      overrides = override(key, value);\n      if (overrides && overrides.length === 2) {\n        result[overrides[0]] = overrides[1];\n        continue;\n      }\n    }\n\n    if (typeof value === 'string') {\n      result[value] = key;\n    }\n  }\n\n  return result;\n}\n\n/**\n * Check if a given tag is a custom component.\n *\n * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js}\n *\n * @param {string} tagName - The name of the html tag.\n * @param {object} props - The props being passed to the element.\n * @returns - Whether tag is custom component.\n */\nfunction isCustomComponent(tagName, props) {\n  if (tagName.indexOf('-') === -1) {\n    return props && typeof props.is === 'string';\n  }\n\n  switch (tagName) {\n    // These are reserved SVG and MathML elements.\n    // We don't mind this whitelist too much because we expect it to never grow.\n    // The alternative is to track the namespace in a few places which is convoluted.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      return false;\n    default:\n      return true;\n  }\n}\n\nvar styleToJSOptions = { reactCompat: true };\n\n/**\n * Sets style prop.\n *\n * @param {null|undefined|string} style\n * @param {object} props\n */\nfunction setStyleProp(style, props) {\n  if (style === null || style === undefined) {\n    return;\n  }\n  try {\n    props.style = styleToJS(style, styleToJSOptions);\n  } catch (err) {\n    props.style = {};\n  }\n}\n\n/**\n * @constant {boolean}\n * @see {@link https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html}\n */\nvar PRESERVE_CUSTOM_ATTRIBUTES = React.version.split('.')[0] >= 16;\n\n// Taken from\n// https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react-dom/src/client/validateDOMNesting.js#L213\nvar elementsWithNoTextChildren = new Set([\n  'tr',\n  'tbody',\n  'thead',\n  'tfoot',\n  'colgroup',\n  'table',\n  'head',\n  'html',\n  'frameset'\n]);\n\n/**\n * Checks if the given node can contain text nodes\n *\n * @param {DomElement} node - Node.\n * @returns - Whether node can contain text nodes.\n */\nfunction canTextBeChildOfNode(node) {\n  return !elementsWithNoTextChildren.has(node.name);\n}\n\nmodule.exports = {\n  PRESERVE_CUSTOM_ATTRIBUTES: PRESERVE_CUSTOM_ATTRIBUTES,\n  invertObject: invertObject,\n  isCustomComponent: isCustomComponent,\n  setStyleProp: setStyleProp,\n  canTextBeChildOfNode: canTextBeChildOfNode,\n  elementsWithNoTextChildren: elementsWithNoTextChildren\n};\n","// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nmodule.exports = function(style, options) {\n  if (typeof style !== 'string') {\n    throw new TypeError('First argument must be a string');\n  }\n\n  if (!style) return [];\n\n  options = options || {};\n\n  /**\n   * Positional.\n   */\n  var lineno = 1;\n  var column = 1;\n\n  /**\n   * Update lineno and column based on `str`.\n   *\n   * @param {String} str\n   */\n  function updatePosition(str) {\n    var lines = str.match(NEWLINE_REGEX);\n    if (lines) lineno += lines.length;\n    var i = str.lastIndexOf(NEWLINE);\n    column = ~i ? str.length - i : column + str.length;\n  }\n\n  /**\n   * Mark position and patch `node.position`.\n   *\n   * @return {Function}\n   */\n  function position() {\n    var start = { line: lineno, column: column };\n    return function(node) {\n      node.position = new Position(start);\n      whitespace();\n      return node;\n    };\n  }\n\n  /**\n   * Store position information for a node.\n   *\n   * @constructor\n   * @property {Object} start\n   * @property {Object} end\n   * @property {undefined|String} source\n   */\n  function Position(start) {\n    this.start = start;\n    this.end = { line: lineno, column: column };\n    this.source = options.source;\n  }\n\n  /**\n   * Non-enumerable source string.\n   */\n  Position.prototype.content = style;\n\n  var errorsList = [];\n\n  /**\n   * Error `msg`.\n   *\n   * @param {String} msg\n   * @throws {Error}\n   */\n  function error(msg) {\n    var err = new Error(\n      options.source + ':' + lineno + ':' + column + ': ' + msg\n    );\n    err.reason = msg;\n    err.filename = options.source;\n    err.line = lineno;\n    err.column = column;\n    err.source = style;\n\n    if (options.silent) {\n      errorsList.push(err);\n    } else {\n      throw err;\n    }\n  }\n\n  /**\n   * Match `re` and return captures.\n   *\n   * @param {RegExp} re\n   * @return {undefined|Array}\n   */\n  function match(re) {\n    var m = re.exec(style);\n    if (!m) return;\n    var str = m[0];\n    updatePosition(str);\n    style = style.slice(str.length);\n    return m;\n  }\n\n  /**\n   * Parse whitespace.\n   */\n  function whitespace() {\n    match(WHITESPACE_REGEX);\n  }\n\n  /**\n   * Parse comments.\n   *\n   * @param {Object[]} [rules]\n   * @return {Object[]}\n   */\n  function comments(rules) {\n    var c;\n    rules = rules || [];\n    while ((c = comment())) {\n      if (c !== false) {\n        rules.push(c);\n      }\n    }\n    return rules;\n  }\n\n  /**\n   * Parse comment.\n   *\n   * @return {Object}\n   * @throws {Error}\n   */\n  function comment() {\n    var pos = position();\n    if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n    var i = 2;\n    while (\n      EMPTY_STRING != style.charAt(i) &&\n      (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n    ) {\n      ++i;\n    }\n    i += 2;\n\n    if (EMPTY_STRING === style.charAt(i - 1)) {\n      return error('End of comment missing');\n    }\n\n    var str = style.slice(2, i - 2);\n    column += 2;\n    updatePosition(str);\n    style = style.slice(i);\n    column += 2;\n\n    return pos({\n      type: TYPE_COMMENT,\n      comment: str\n    });\n  }\n\n  /**\n   * Parse declaration.\n   *\n   * @return {Object}\n   * @throws {Error}\n   */\n  function declaration() {\n    var pos = position();\n\n    // prop\n    var prop = match(PROPERTY_REGEX);\n    if (!prop) return;\n    comment();\n\n    // :\n    if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n    // val\n    var val = match(VALUE_REGEX);\n\n    var ret = pos({\n      type: TYPE_DECLARATION,\n      property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n      value: val\n        ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n        : EMPTY_STRING\n    });\n\n    // ;\n    match(SEMICOLON_REGEX);\n\n    return ret;\n  }\n\n  /**\n   * Parse declarations.\n   *\n   * @return {Object[]}\n   */\n  function declarations() {\n    var decls = [];\n\n    comments(decls);\n\n    // declarations\n    var decl;\n    while ((decl = declaration())) {\n      if (decl !== false) {\n        decls.push(decl);\n        comments(decls);\n      }\n    }\n\n    return decls;\n  }\n\n  whitespace();\n  return declarations();\n};\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n  return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n","/*!\n * Determine if an object is a Buffer\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n    hashDelete = require('./_hashDelete'),\n    hashGet = require('./_hashGet'),\n    hashHas = require('./_hashHas'),\n    hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var baseCreate = require('./_baseCreate'),\n    baseLodash = require('./_baseLodash');\n\n/** Used as references for the maximum length and index of an array. */\nvar MAX_ARRAY_LENGTH = 4294967295;\n\n/**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\nfunction LazyWrapper(value) {\n  this.__wrapped__ = value;\n  this.__actions__ = [];\n  this.__dir__ = 1;\n  this.__filtered__ = false;\n  this.__iteratees__ = [];\n  this.__takeCount__ = MAX_ARRAY_LENGTH;\n  this.__views__ = [];\n}\n\n// Ensure `LazyWrapper` is an instance of `baseLodash`.\nLazyWrapper.prototype = baseCreate(baseLodash.prototype);\nLazyWrapper.prototype.constructor = LazyWrapper;\n\nmodule.exports = LazyWrapper;\n","var listCacheClear = require('./_listCacheClear'),\n    listCacheDelete = require('./_listCacheDelete'),\n    listCacheGet = require('./_listCacheGet'),\n    listCacheHas = require('./_listCacheHas'),\n    listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var baseCreate = require('./_baseCreate'),\n    baseLodash = require('./_baseLodash');\n\n/**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\nfunction LodashWrapper(value, chainAll) {\n  this.__wrapped__ = value;\n  this.__actions__ = [];\n  this.__chain__ = !!chainAll;\n  this.__index__ = 0;\n  this.__values__ = undefined;\n}\n\nLodashWrapper.prototype = baseCreate(baseLodash.prototype);\nLodashWrapper.prototype.constructor = LodashWrapper;\n\nmodule.exports = LodashWrapper;\n","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n    mapCacheDelete = require('./_mapCacheDelete'),\n    mapCacheGet = require('./_mapCacheGet'),\n    mapCacheHas = require('./_mapCacheHas'),\n    mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n    setCacheAdd = require('./_setCacheAdd'),\n    setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values == null ? 0 : values.length;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n    stackClear = require('./_stackClear'),\n    stackDelete = require('./_stackDelete'),\n    stackGet = require('./_stackGet'),\n    stackHas = require('./_stackHas'),\n    stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  var data = this.__data__ = new ListCache(entries);\n  this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n  switch (args.length) {\n    case 0: return func.call(thisArg);\n    case 1: return func.call(thisArg, args[0]);\n    case 2: return func.call(thisArg, args[0], args[1]);\n    case 3: return func.call(thisArg, args[0], args[1], args[2]);\n  }\n  return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (iteratee(array[index], index, array) === false) {\n      break;\n    }\n  }\n  return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n *  else `false`.\n */\nfunction arrayEvery(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (!predicate(array[index], index, array)) {\n      return false;\n    }\n  }\n  return true;\n}\n\nmodule.exports = arrayEvery;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n  var length = array == null ? 0 : array.length;\n  return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (comparator(value, array[index])) {\n      return true;\n    }\n  }\n  return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isBuffer = require('./isBuffer'),\n    isIndex = require('./_isIndex'),\n    isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  var isArr = isArray(value),\n      isArg = !isArr && isArguments(value),\n      isBuff = !isArr && !isArg && isBuffer(value),\n      isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n      skipIndexes = isArr || isArg || isBuff || isType,\n      result = skipIndexes ? baseTimes(value.length, String) : [],\n      length = result.length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (\n           // Safari 9 has enumerable `arguments.length` in strict mode.\n           key == 'length' ||\n           // Node.js 0.10 has enumerable non-index properties on buffers.\n           (isBuff && (key == 'offset' || key == 'parent')) ||\n           // PhantomJS 2 has enumerable non-index properties on typed arrays.\n           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n           // Skip index properties.\n           isIndex(key, length)\n        ))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n *  the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  if (initAccum && length) {\n    accumulator = array[++index];\n  }\n  while (++index < length) {\n    accumulator = iteratee(accumulator, array[index], index, array);\n  }\n  return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","var baseRandom = require('./_baseRandom');\n\n/**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\nfunction arraySample(array) {\n  var length = array.length;\n  return length ? array[baseRandom(0, length - 1)] : undefined;\n}\n\nmodule.exports = arraySample;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\nmodule.exports = arraySome;\n","var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n  return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n  return string.match(reAsciiWord) || [];\n}\n\nmodule.exports = asciiWords;\n","var baseAssignValue = require('./_baseAssignValue'),\n    eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n  var objValue = object[key];\n  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n      (value === undefined && !(key in object))) {\n    baseAssignValue(object, key, value);\n  }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n    keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n  return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n    keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n  return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n  if (key == '__proto__' && defineProperty) {\n    defineProperty(object, key, {\n      'configurable': true,\n      'enumerable': true,\n      'value': value,\n      'writable': true\n    });\n  } else {\n    object[key] = value;\n  }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n    arrayEach = require('./_arrayEach'),\n    assignValue = require('./_assignValue'),\n    baseAssign = require('./_baseAssign'),\n    baseAssignIn = require('./_baseAssignIn'),\n    cloneBuffer = require('./_cloneBuffer'),\n    copyArray = require('./_copyArray'),\n    copySymbols = require('./_copySymbols'),\n    copySymbolsIn = require('./_copySymbolsIn'),\n    getAllKeys = require('./_getAllKeys'),\n    getAllKeysIn = require('./_getAllKeysIn'),\n    getTag = require('./_getTag'),\n    initCloneArray = require('./_initCloneArray'),\n    initCloneByTag = require('./_initCloneByTag'),\n    initCloneObject = require('./_initCloneObject'),\n    isArray = require('./isArray'),\n    isBuffer = require('./isBuffer'),\n    isMap = require('./isMap'),\n    isObject = require('./isObject'),\n    isSet = require('./isSet'),\n    keys = require('./keys'),\n    keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_FLAT_FLAG = 2,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Deep clone\n *  2 - Flatten inherited properties\n *  4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n  var result,\n      isDeep = bitmask & CLONE_DEEP_FLAG,\n      isFlat = bitmask & CLONE_FLAT_FLAG,\n      isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n  if (customizer) {\n    result = object ? customizer(value, key, object, stack) : customizer(value);\n  }\n  if (result !== undefined) {\n    return result;\n  }\n  if (!isObject(value)) {\n    return value;\n  }\n  var isArr = isArray(value);\n  if (isArr) {\n    result = initCloneArray(value);\n    if (!isDeep) {\n      return copyArray(value, result);\n    }\n  } else {\n    var tag = getTag(value),\n        isFunc = tag == funcTag || tag == genTag;\n\n    if (isBuffer(value)) {\n      return cloneBuffer(value, isDeep);\n    }\n    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n      result = (isFlat || isFunc) ? {} : initCloneObject(value);\n      if (!isDeep) {\n        return isFlat\n          ? copySymbolsIn(value, baseAssignIn(result, value))\n          : copySymbols(value, baseAssign(result, value));\n      }\n    } else {\n      if (!cloneableTags[tag]) {\n        return object ? value : {};\n      }\n      result = initCloneByTag(value, tag, isDeep);\n    }\n  }\n  // Check for circular references and return its corresponding clone.\n  stack || (stack = new Stack);\n  var stacked = stack.get(value);\n  if (stacked) {\n    return stacked;\n  }\n  stack.set(value, result);\n\n  if (isSet(value)) {\n    value.forEach(function(subValue) {\n      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n    });\n  } else if (isMap(value)) {\n    value.forEach(function(subValue, key) {\n      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n    });\n  }\n\n  var keysFunc = isFull\n    ? (isFlat ? getAllKeysIn : getAllKeys)\n    : (isFlat ? keysIn : keys);\n\n  var props = isArr ? undefined : keysFunc(value);\n  arrayEach(props || value, function(subValue, key) {\n    if (props) {\n      key = subValue;\n      subValue = value[key];\n    }\n    // Recursively populate clone (susceptible to call stack limits).\n    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n  });\n  return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n  function object() {}\n  return function(proto) {\n    if (!isObject(proto)) {\n      return {};\n    }\n    if (objectCreate) {\n      return objectCreate(proto);\n    }\n    object.prototype = proto;\n    var result = new object;\n    object.prototype = undefined;\n    return result;\n  };\n}());\n\nmodule.exports = baseCreate;\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\nfunction baseDelay(func, wait, args) {\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  return setTimeout(function() { func.apply(undefined, args); }, wait);\n}\n\nmodule.exports = baseDelay;\n","var SetCache = require('./_SetCache'),\n    arrayIncludes = require('./_arrayIncludes'),\n    arrayIncludesWith = require('./_arrayIncludesWith'),\n    arrayMap = require('./_arrayMap'),\n    baseUnary = require('./_baseUnary'),\n    cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n  var index = -1,\n      includes = arrayIncludes,\n      isCommon = true,\n      length = array.length,\n      result = [],\n      valuesLength = values.length;\n\n  if (!length) {\n    return result;\n  }\n  if (iteratee) {\n    values = arrayMap(values, baseUnary(iteratee));\n  }\n  if (comparator) {\n    includes = arrayIncludesWith;\n    isCommon = false;\n  }\n  else if (values.length >= LARGE_ARRAY_SIZE) {\n    includes = cacheHas;\n    isCommon = false;\n    values = new SetCache(values);\n  }\n  outer:\n  while (++index < length) {\n    var value = array[index],\n        computed = iteratee == null ? value : iteratee(value);\n\n    value = (comparator || value !== 0) ? value : 0;\n    if (isCommon && computed === computed) {\n      var valuesIndex = valuesLength;\n      while (valuesIndex--) {\n        if (values[valuesIndex] === computed) {\n          continue outer;\n        }\n      }\n      result.push(value);\n    }\n    else if (!includes(values, computed, comparator)) {\n      result.push(value);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseDifference;\n","var baseForOwn = require('./_baseForOwn'),\n    createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n *  else `false`\n */\nfunction baseEvery(collection, predicate) {\n  var result = true;\n  baseEach(collection, function(value, index, collection) {\n    result = !!predicate(value, index, collection);\n    return result;\n  });\n  return result;\n}\n\nmodule.exports = baseEvery;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n  var index = -1,\n      length = array.length;\n\n  while (++index < length) {\n    var value = array[index],\n        current = iteratee(value);\n\n    if (current != null && (computed === undefined\n          ? (current === current && !isSymbol(current))\n          : comparator(current, computed)\n        )) {\n      var computed = current,\n          result = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseExtremum;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n  var result = [];\n  baseEach(collection, function(value, index, collection) {\n    if (predicate(value, index, collection)) {\n      result.push(value);\n    }\n  });\n  return result;\n}\n\nmodule.exports = baseFilter;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n  var length = array.length,\n      index = fromIndex + (fromRight ? 1 : -1);\n\n  while ((fromRight ? index-- : ++index < length)) {\n    if (predicate(array[index], index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n    isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var baseFor = require('./_baseFor'),\n    keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n  return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var castPath = require('./_castPath'),\n    toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = castPath(path, object);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var arrayPush = require('./_arrayPush'),\n    isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n  var result = keysFunc(object);\n  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n    getRawTag = require('./_getRawTag'),\n    objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n    undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n *  else `false`.\n */\nfunction baseGt(value, other) {\n  return value > other;\n}\n\nmodule.exports = baseGt;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n  return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseFindIndex = require('./_baseFindIndex'),\n    baseIsNaN = require('./_baseIsNaN'),\n    strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n  return value === value\n    ? strictIndexOf(array, value, fromIndex)\n    : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var SetCache = require('./_SetCache'),\n    arrayIncludes = require('./_arrayIncludes'),\n    arrayIncludesWith = require('./_arrayIncludesWith'),\n    arrayMap = require('./_arrayMap'),\n    baseUnary = require('./_baseUnary'),\n    cacheHas = require('./_cacheHas');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMin = Math.min;\n\n/**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\nfunction baseIntersection(arrays, iteratee, comparator) {\n  var includes = comparator ? arrayIncludesWith : arrayIncludes,\n      length = arrays[0].length,\n      othLength = arrays.length,\n      othIndex = othLength,\n      caches = Array(othLength),\n      maxLength = Infinity,\n      result = [];\n\n  while (othIndex--) {\n    var array = arrays[othIndex];\n    if (othIndex && iteratee) {\n      array = arrayMap(array, baseUnary(iteratee));\n    }\n    maxLength = nativeMin(array.length, maxLength);\n    caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n      ? new SetCache(othIndex && array)\n      : undefined;\n  }\n  array = arrays[0];\n\n  var index = -1,\n      seen = caches[0];\n\n  outer:\n  while (++index < length && result.length < maxLength) {\n    var value = array[index],\n        computed = iteratee ? iteratee(value) : value;\n\n    value = (comparator || value !== 0) ? value : 0;\n    if (!(seen\n          ? cacheHas(seen, computed)\n          : includes(result, computed, comparator)\n        )) {\n      othIndex = othLength;\n      while (--othIndex) {\n        var cache = caches[othIndex];\n        if (!(cache\n              ? cacheHas(cache, computed)\n              : includes(arrays[othIndex], computed, comparator))\n            ) {\n          continue outer;\n        }\n      }\n      if (seen) {\n        seen.push(computed);\n      }\n      result.push(value);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseIntersection;\n","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n  return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n    isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Unordered comparison\n *  2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n    equalArrays = require('./_equalArrays'),\n    equalByTag = require('./_equalByTag'),\n    equalObjects = require('./_equalObjects'),\n    getTag = require('./_getTag'),\n    isArray = require('./isArray'),\n    isBuffer = require('./isBuffer'),\n    isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = objIsArr ? arrayTag : getTag(object),\n      othTag = othIsArr ? arrayTag : getTag(other);\n\n  objTag = objTag == argsTag ? objectTag : objTag;\n  othTag = othTag == argsTag ? objectTag : othTag;\n\n  var objIsObj = objTag == objectTag,\n      othIsObj = othTag == objectTag,\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && isBuffer(object)) {\n    if (!isBuffer(other)) {\n      return false;\n    }\n    objIsArr = true;\n    objIsObj = false;\n  }\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n  }\n  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var getTag = require('./_getTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n  return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var Stack = require('./_Stack'),\n    baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n  return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n    isMasked = require('./_isMasked'),\n    isObject = require('./isObject'),\n    toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar regexpTag = '[object RegExp]';\n\n/**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\nfunction baseIsRegExp(value) {\n  return isObjectLike(value) && baseGetTag(value) == regexpTag;\n}\n\nmodule.exports = baseIsRegExp;\n","var getTag = require('./_getTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n  return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n    isLength = require('./isLength'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var baseMatches = require('./_baseMatches'),\n    baseMatchesProperty = require('./_baseMatchesProperty'),\n    identity = require('./identity'),\n    isArray = require('./isArray'),\n    property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var isPrototype = require('./_isPrototype'),\n    nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n    isPrototype = require('./_isPrototype'),\n    nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n  if (!isObject(object)) {\n    return nativeKeysIn(object);\n  }\n  var isProto = isPrototype(object),\n      result = [];\n\n  for (var key in object) {\n    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\nfunction baseLodash() {\n  // No operation performed.\n}\n\nmodule.exports = baseLodash;\n","var baseEach = require('./_baseEach'),\n    isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n  var index = -1,\n      result = isArrayLike(collection) ? Array(collection.length) : [];\n\n  baseEach(collection, function(value, key, collection) {\n    result[++index] = iteratee(value, key, collection);\n  });\n  return result;\n}\n\nmodule.exports = baseMap;\n","var baseIsMatch = require('./_baseIsMatch'),\n    getMatchData = require('./_getMatchData'),\n    matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\nmodule.exports = baseMatches;\n","var baseIsEqual = require('./_baseIsEqual'),\n    get = require('./get'),\n    hasIn = require('./hasIn'),\n    isKey = require('./_isKey'),\n    isStrictComparable = require('./_isStrictComparable'),\n    matchesStrictComparable = require('./_matchesStrictComparable'),\n    toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n  };\n}\n\nmodule.exports = baseMatchesProperty;\n","var isIndex = require('./_isIndex');\n\n/**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\nfunction baseNth(array, n) {\n  var length = array.length;\n  if (!length) {\n    return;\n  }\n  n += n < 0 ? length : 0;\n  return isIndex(n, length) ? array[n] : undefined;\n}\n\nmodule.exports = baseNth;\n","var arrayMap = require('./_arrayMap'),\n    baseGet = require('./_baseGet'),\n    baseIteratee = require('./_baseIteratee'),\n    baseMap = require('./_baseMap'),\n    baseSortBy = require('./_baseSortBy'),\n    baseUnary = require('./_baseUnary'),\n    compareMultiple = require('./_compareMultiple'),\n    identity = require('./identity'),\n    isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n  if (iteratees.length) {\n    iteratees = arrayMap(iteratees, function(iteratee) {\n      if (isArray(iteratee)) {\n        return function(value) {\n          return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n        };\n      }\n      return iteratee;\n    });\n  } else {\n    iteratees = [identity];\n  }\n\n  var index = -1;\n  iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n  var result = baseMap(collection, function(value, key, collection) {\n    var criteria = arrayMap(iteratees, function(iteratee) {\n      return iteratee(value);\n    });\n    return { 'criteria': criteria, 'index': ++index, 'value': value };\n  });\n\n  return baseSortBy(result, function(object, other) {\n    return compareMultiple(object, other, orders);\n  });\n}\n\nmodule.exports = baseOrderBy;\n","var basePickBy = require('./_basePickBy'),\n    hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n  return basePickBy(object, paths, function(value, path) {\n    return hasIn(object, path);\n  });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n    baseSet = require('./_baseSet'),\n    castPath = require('./_castPath');\n\n/**\n * The base implementation of  `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n  var index = -1,\n      length = paths.length,\n      result = {};\n\n  while (++index < length) {\n    var path = paths[index],\n        value = baseGet(object, path);\n\n    if (predicate(value, path)) {\n      baseSet(result, castPath(path, object), value);\n    }\n  }\n  return result;\n}\n\nmodule.exports = basePickBy;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\nmodule.exports = basePropertyDeep;\n","/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n  return function(key) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = basePropertyOf;\n","var baseUnset = require('./_baseUnset'),\n    isIndex = require('./_isIndex');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\nfunction basePullAt(array, indexes) {\n  var length = array ? indexes.length : 0,\n      lastIndex = length - 1;\n\n  while (length--) {\n    var index = indexes[length];\n    if (length == lastIndex || index !== previous) {\n      var previous = index;\n      if (isIndex(index)) {\n        splice.call(array, index, 1);\n      } else {\n        baseUnset(array, index);\n      }\n    }\n  }\n  return array;\n}\n\nmodule.exports = basePullAt;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeFloor = Math.floor,\n    nativeRandom = Math.random;\n\n/**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\nfunction baseRandom(lower, upper) {\n  return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n}\n\nmodule.exports = baseRandom;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n *  `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n  eachFunc(collection, function(value, index, collection) {\n    accumulator = initAccum\n      ? (initAccum = false, value)\n      : iteratee(accumulator, value, index, collection);\n  });\n  return accumulator;\n}\n\nmodule.exports = baseReduce;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeFloor = Math.floor;\n\n/**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\nfunction baseRepeat(string, n) {\n  var result = '';\n  if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n    return result;\n  }\n  // Leverage the exponentiation by squaring algorithm for a faster repeat.\n  // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n  do {\n    if (n % 2) {\n      result += string;\n    }\n    n = nativeFloor(n / 2);\n    if (n) {\n      string += string;\n    }\n  } while (n);\n\n  return result;\n}\n\nmodule.exports = baseRepeat;\n","var identity = require('./identity'),\n    overRest = require('./_overRest'),\n    setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n  return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var arraySample = require('./_arraySample'),\n    values = require('./values');\n\n/**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\nfunction baseSample(collection) {\n  return arraySample(values(collection));\n}\n\nmodule.exports = baseSample;\n","var assignValue = require('./_assignValue'),\n    castPath = require('./_castPath'),\n    isIndex = require('./_isIndex'),\n    isObject = require('./isObject'),\n    toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n  if (!isObject(object)) {\n    return object;\n  }\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      lastIndex = length - 1,\n      nested = object;\n\n  while (nested != null && ++index < length) {\n    var key = toKey(path[index]),\n        newValue = value;\n\n    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n      return object;\n    }\n\n    if (index != lastIndex) {\n      var objValue = nested[key];\n      newValue = customizer ? customizer(objValue, key, nested) : undefined;\n      if (newValue === undefined) {\n        newValue = isObject(objValue)\n          ? objValue\n          : (isIndex(path[index + 1]) ? [] : {});\n      }\n    }\n    assignValue(nested, key, newValue);\n    nested = nested[key];\n  }\n  return object;\n}\n\nmodule.exports = baseSet;\n","var identity = require('./identity'),\n    metaMap = require('./_metaMap');\n\n/**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\nvar baseSetData = !metaMap ? identity : function(func, data) {\n  metaMap.set(func, data);\n  return func;\n};\n\nmodule.exports = baseSetData;\n","var constant = require('./constant'),\n    defineProperty = require('./_defineProperty'),\n    identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n  return defineProperty(func, 'toString', {\n    'configurable': true,\n    'enumerable': false,\n    'value': constant(string),\n    'writable': true\n  });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n  var index = -1,\n      length = array.length;\n\n  if (start < 0) {\n    start = -start > length ? 0 : (length + start);\n  }\n  end = end > length ? length : end;\n  if (end < 0) {\n    end += length;\n  }\n  length = start > end ? 0 : ((end - start) >>> 0);\n  start >>>= 0;\n\n  var result = Array(length);\n  while (++index < length) {\n    result[index] = array[index + start];\n  }\n  return result;\n}\n\nmodule.exports = baseSlice;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n  var length = array.length;\n\n  array.sort(comparer);\n  while (length--) {\n    array[length] = array[length].value;\n  }\n  return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n  var result,\n      index = -1,\n      length = array.length;\n\n  while (++index < length) {\n    var current = iteratee(array[index]);\n    if (current !== undefined) {\n      result = result === undefined ? current : (result + current);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseSum;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n    arrayMap = require('./_arrayMap'),\n    isArray = require('./isArray'),\n    isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isArray(value)) {\n    // Recursively convert values (susceptible to call stack limits).\n    return arrayMap(value, baseToString) + '';\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n  return string\n    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n    : string;\n}\n\nmodule.exports = baseTrim;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n    arrayIncludes = require('./_arrayIncludes'),\n    arrayIncludesWith = require('./_arrayIncludesWith'),\n    cacheHas = require('./_cacheHas'),\n    createSet = require('./_createSet'),\n    setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n  var index = -1,\n      includes = arrayIncludes,\n      length = array.length,\n      isCommon = true,\n      result = [],\n      seen = result;\n\n  if (comparator) {\n    isCommon = false;\n    includes = arrayIncludesWith;\n  }\n  else if (length >= LARGE_ARRAY_SIZE) {\n    var set = iteratee ? null : createSet(array);\n    if (set) {\n      return setToArray(set);\n    }\n    isCommon = false;\n    includes = cacheHas;\n    seen = new SetCache;\n  }\n  else {\n    seen = iteratee ? [] : result;\n  }\n  outer:\n  while (++index < length) {\n    var value = array[index],\n        computed = iteratee ? iteratee(value) : value;\n\n    value = (comparator || value !== 0) ? value : 0;\n    if (isCommon && computed === computed) {\n      var seenIndex = seen.length;\n      while (seenIndex--) {\n        if (seen[seenIndex] === computed) {\n          continue outer;\n        }\n      }\n      if (iteratee) {\n        seen.push(computed);\n      }\n      result.push(value);\n    }\n    else if (!includes(seen, computed, comparator)) {\n      if (seen !== result) {\n        seen.push(computed);\n      }\n      result.push(value);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseUniq;\n","var castPath = require('./_castPath'),\n    last = require('./last'),\n    parent = require('./_parent'),\n    toKey = require('./_toKey');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n  path = castPath(path, object);\n\n  // Prevent prototype pollution:\n  // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg\n  // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh\n  var index = -1,\n      length = path.length;\n\n  if (!length) {\n    return true;\n  }\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n\n    // Always block \"__proto__\" anywhere in the path if it's not expected\n    if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {\n      return false;\n    }\n\n    // Block constructor/prototype as non-terminal traversal keys to prevent\n    // escaping the object graph into built-in constructors and prototypes.\n    if ((key === 'constructor' || key === 'prototype') && index < length - 1) {\n      return false;\n    }\n  }\n\n  var obj = parent(object, path);\n  return obj == null || delete obj[toKey(last(path))];\n}\n\nmodule.exports = baseUnset;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n  return arrayMap(props, function(key) {\n    return object[key];\n  });\n}\n\nmodule.exports = baseValues;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\nfunction castArrayLikeObject(value) {\n  return isArrayLikeObject(value) ? value : [];\n}\n\nmodule.exports = castArrayLikeObject;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n  return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var isArray = require('./isArray'),\n    isKey = require('./_isKey'),\n    stringToPath = require('./_stringToPath'),\n    toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n  if (isArray(value)) {\n    return value;\n  }\n  return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n  var length = array.length;\n  end = end === undefined ? length : end;\n  return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n  new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n  return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of  `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n  if (isDeep) {\n    return buffer.slice();\n  }\n  var length = buffer.length,\n      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n  buffer.copy(result);\n  return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n  result.lastIndex = regexp.lastIndex;\n  return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n  if (value !== other) {\n    var valIsDefined = value !== undefined,\n        valIsNull = value === null,\n        valIsReflexive = value === value,\n        valIsSymbol = isSymbol(value);\n\n    var othIsDefined = other !== undefined,\n        othIsNull = other === null,\n        othIsReflexive = other === other,\n        othIsSymbol = isSymbol(other);\n\n    if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n        (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n        (valIsNull && othIsDefined && othIsReflexive) ||\n        (!valIsDefined && othIsReflexive) ||\n        !valIsReflexive) {\n      return 1;\n    }\n    if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n        (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n        (othIsNull && valIsDefined && valIsReflexive) ||\n        (!othIsDefined && valIsReflexive) ||\n        !othIsReflexive) {\n      return -1;\n    }\n  }\n  return 0;\n}\n\nmodule.exports = compareAscending;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n  var index = -1,\n      objCriteria = object.criteria,\n      othCriteria = other.criteria,\n      length = objCriteria.length,\n      ordersLength = orders.length;\n\n  while (++index < length) {\n    var result = compareAscending(objCriteria[index], othCriteria[index]);\n    if (result) {\n      if (index >= ordersLength) {\n        return result;\n      }\n      var order = orders[index];\n      return result * (order == 'desc' ? -1 : 1);\n    }\n  }\n  // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n  // that causes it, under certain circumstances, to provide the same value for\n  // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n  // for more details.\n  //\n  // This also ensures a stable sort in V8 and other engines.\n  // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n  return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\nfunction composeArgs(args, partials, holders, isCurried) {\n  var argsIndex = -1,\n      argsLength = args.length,\n      holdersLength = holders.length,\n      leftIndex = -1,\n      leftLength = partials.length,\n      rangeLength = nativeMax(argsLength - holdersLength, 0),\n      result = Array(leftLength + rangeLength),\n      isUncurried = !isCurried;\n\n  while (++leftIndex < leftLength) {\n    result[leftIndex] = partials[leftIndex];\n  }\n  while (++argsIndex < holdersLength) {\n    if (isUncurried || argsIndex < argsLength) {\n      result[holders[argsIndex]] = args[argsIndex];\n    }\n  }\n  while (rangeLength--) {\n    result[leftIndex++] = args[argsIndex++];\n  }\n  return result;\n}\n\nmodule.exports = composeArgs;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\nfunction composeArgsRight(args, partials, holders, isCurried) {\n  var argsIndex = -1,\n      argsLength = args.length,\n      holdersIndex = -1,\n      holdersLength = holders.length,\n      rightIndex = -1,\n      rightLength = partials.length,\n      rangeLength = nativeMax(argsLength - holdersLength, 0),\n      result = Array(rangeLength + rightLength),\n      isUncurried = !isCurried;\n\n  while (++argsIndex < rangeLength) {\n    result[argsIndex] = args[argsIndex];\n  }\n  var offset = argsIndex;\n  while (++rightIndex < rightLength) {\n    result[offset + rightIndex] = partials[rightIndex];\n  }\n  while (++holdersIndex < holdersLength) {\n    if (isUncurried || argsIndex < argsLength) {\n      result[offset + holders[holdersIndex]] = args[argsIndex++];\n    }\n  }\n  return result;\n}\n\nmodule.exports = composeArgsRight;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n  var index = -1,\n      length = source.length;\n\n  array || (array = Array(length));\n  while (++index < length) {\n    array[index] = source[index];\n  }\n  return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n    baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n  var isNew = !object;\n  object || (object = {});\n\n  var index = -1,\n      length = props.length;\n\n  while (++index < length) {\n    var key = props[index];\n\n    var newValue = customizer\n      ? customizer(object[key], source[key], key, object, source)\n      : undefined;\n\n    if (newValue === undefined) {\n      newValue = source[key];\n    }\n    if (isNew) {\n      baseAssignValue(object, key, newValue);\n    } else {\n      assignValue(object, key, newValue);\n    }\n  }\n  return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n    getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n  return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n    getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n  return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\nfunction countHolders(array, placeholder) {\n  var length = array.length,\n      result = 0;\n\n  while (length--) {\n    if (array[length] === placeholder) {\n      ++result;\n    }\n  }\n  return result;\n}\n\nmodule.exports = countHolders;\n","var baseRest = require('./_baseRest'),\n    isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n  return baseRest(function(object, sources) {\n    var index = -1,\n        length = sources.length,\n        customizer = length > 1 ? sources[length - 1] : undefined,\n        guard = length > 2 ? sources[2] : undefined;\n\n    customizer = (assigner.length > 3 && typeof customizer == 'function')\n      ? (length--, customizer)\n      : undefined;\n\n    if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n      customizer = length < 3 ? undefined : customizer;\n      length = 1;\n    }\n    object = Object(object);\n    while (++index < length) {\n      var source = sources[index];\n      if (source) {\n        assigner(object, source, index, customizer);\n      }\n    }\n    return object;\n  });\n}\n\nmodule.exports = createAssigner;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n  return function(collection, iteratee) {\n    if (collection == null) {\n      return collection;\n    }\n    if (!isArrayLike(collection)) {\n      return eachFunc(collection, iteratee);\n    }\n    var length = collection.length,\n        index = fromRight ? length : -1,\n        iterable = Object(collection);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (iteratee(iterable[index], index, iterable) === false) {\n        break;\n      }\n    }\n    return collection;\n  };\n}\n\nmodule.exports = createBaseEach;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n  return function(object, iteratee, keysFunc) {\n    var index = -1,\n        iterable = Object(object),\n        props = keysFunc(object),\n        length = props.length;\n\n    while (length--) {\n      var key = props[fromRight ? length : ++index];\n      if (iteratee(iterable[key], key, iterable) === false) {\n        break;\n      }\n    }\n    return object;\n  };\n}\n\nmodule.exports = createBaseFor;\n","var createCtor = require('./_createCtor'),\n    root = require('./_root');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1;\n\n/**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createBind(func, bitmask, thisArg) {\n  var isBind = bitmask & WRAP_BIND_FLAG,\n      Ctor = createCtor(func);\n\n  function wrapper() {\n    var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n    return fn.apply(isBind ? thisArg : this, arguments);\n  }\n  return wrapper;\n}\n\nmodule.exports = createBind;\n","var castSlice = require('./_castSlice'),\n    hasUnicode = require('./_hasUnicode'),\n    stringToArray = require('./_stringToArray'),\n    toString = require('./toString');\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n  return function(string) {\n    string = toString(string);\n\n    var strSymbols = hasUnicode(string)\n      ? stringToArray(string)\n      : undefined;\n\n    var chr = strSymbols\n      ? strSymbols[0]\n      : string.charAt(0);\n\n    var trailing = strSymbols\n      ? castSlice(strSymbols, 1).join('')\n      : string.slice(1);\n\n    return chr[methodName]() + trailing;\n  };\n}\n\nmodule.exports = createCaseFirst;\n","var arrayReduce = require('./_arrayReduce'),\n    deburr = require('./deburr'),\n    words = require('./words');\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\";\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n  return function(string) {\n    return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n  };\n}\n\nmodule.exports = createCompounder;\n","var baseCreate = require('./_baseCreate'),\n    isObject = require('./isObject');\n\n/**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createCtor(Ctor) {\n  return function() {\n    // Use a `switch` statement to work with class constructors. See\n    // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n    // for more details.\n    var args = arguments;\n    switch (args.length) {\n      case 0: return new Ctor;\n      case 1: return new Ctor(args[0]);\n      case 2: return new Ctor(args[0], args[1]);\n      case 3: return new Ctor(args[0], args[1], args[2]);\n      case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n      case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n      case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n      case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n    }\n    var thisBinding = baseCreate(Ctor.prototype),\n        result = Ctor.apply(thisBinding, args);\n\n    // Mimic the constructor's `return` behavior.\n    // See https://es5.github.io/#x13.2.2 for more details.\n    return isObject(result) ? result : thisBinding;\n  };\n}\n\nmodule.exports = createCtor;\n","var apply = require('./_apply'),\n    createCtor = require('./_createCtor'),\n    createHybrid = require('./_createHybrid'),\n    createRecurry = require('./_createRecurry'),\n    getHolder = require('./_getHolder'),\n    replaceHolders = require('./_replaceHolders'),\n    root = require('./_root');\n\n/**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createCurry(func, bitmask, arity) {\n  var Ctor = createCtor(func);\n\n  function wrapper() {\n    var length = arguments.length,\n        args = Array(length),\n        index = length,\n        placeholder = getHolder(wrapper);\n\n    while (index--) {\n      args[index] = arguments[index];\n    }\n    var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n      ? []\n      : replaceHolders(args, placeholder);\n\n    length -= holders.length;\n    if (length < arity) {\n      return createRecurry(\n        func, bitmask, createHybrid, wrapper.placeholder, undefined,\n        args, holders, undefined, undefined, arity - length);\n    }\n    var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n    return apply(fn, this, args);\n  }\n  return wrapper;\n}\n\nmodule.exports = createCurry;\n","var baseIteratee = require('./_baseIteratee'),\n    isArrayLike = require('./isArrayLike'),\n    keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n  return function(collection, predicate, fromIndex) {\n    var iterable = Object(collection);\n    if (!isArrayLike(collection)) {\n      var iteratee = baseIteratee(predicate, 3);\n      collection = keys(collection);\n      predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n    }\n    var index = findIndexFunc(collection, predicate, fromIndex);\n    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n  };\n}\n\nmodule.exports = createFind;\n","var composeArgs = require('./_composeArgs'),\n    composeArgsRight = require('./_composeArgsRight'),\n    countHolders = require('./_countHolders'),\n    createCtor = require('./_createCtor'),\n    createRecurry = require('./_createRecurry'),\n    getHolder = require('./_getHolder'),\n    reorder = require('./_reorder'),\n    replaceHolders = require('./_replaceHolders'),\n    root = require('./_root');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1,\n    WRAP_BIND_KEY_FLAG = 2,\n    WRAP_CURRY_FLAG = 8,\n    WRAP_CURRY_RIGHT_FLAG = 16,\n    WRAP_ARY_FLAG = 128,\n    WRAP_FLIP_FLAG = 512;\n\n/**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n *  the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n *  to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n  var isAry = bitmask & WRAP_ARY_FLAG,\n      isBind = bitmask & WRAP_BIND_FLAG,\n      isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n      isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n      isFlip = bitmask & WRAP_FLIP_FLAG,\n      Ctor = isBindKey ? undefined : createCtor(func);\n\n  function wrapper() {\n    var length = arguments.length,\n        args = Array(length),\n        index = length;\n\n    while (index--) {\n      args[index] = arguments[index];\n    }\n    if (isCurried) {\n      var placeholder = getHolder(wrapper),\n          holdersCount = countHolders(args, placeholder);\n    }\n    if (partials) {\n      args = composeArgs(args, partials, holders, isCurried);\n    }\n    if (partialsRight) {\n      args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n    }\n    length -= holdersCount;\n    if (isCurried && length < arity) {\n      var newHolders = replaceHolders(args, placeholder);\n      return createRecurry(\n        func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n        args, newHolders, argPos, ary, arity - length\n      );\n    }\n    var thisBinding = isBind ? thisArg : this,\n        fn = isBindKey ? thisBinding[func] : func;\n\n    length = args.length;\n    if (argPos) {\n      args = reorder(args, argPos);\n    } else if (isFlip && length > 1) {\n      args.reverse();\n    }\n    if (isAry && ary < length) {\n      args.length = ary;\n    }\n    if (this && this !== root && this instanceof wrapper) {\n      fn = Ctor || createCtor(fn);\n    }\n    return fn.apply(thisBinding, args);\n  }\n  return wrapper;\n}\n\nmodule.exports = createHybrid;\n","var baseRepeat = require('./_baseRepeat'),\n    baseToString = require('./_baseToString'),\n    castSlice = require('./_castSlice'),\n    hasUnicode = require('./_hasUnicode'),\n    stringSize = require('./_stringSize'),\n    stringToArray = require('./_stringToArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil;\n\n/**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\nfunction createPadding(length, chars) {\n  chars = chars === undefined ? ' ' : baseToString(chars);\n\n  var charsLength = chars.length;\n  if (charsLength < 2) {\n    return charsLength ? baseRepeat(chars, length) : chars;\n  }\n  var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n  return hasUnicode(chars)\n    ? castSlice(stringToArray(result), 0, length).join('')\n    : result.slice(0, length);\n}\n\nmodule.exports = createPadding;\n","var apply = require('./_apply'),\n    createCtor = require('./_createCtor'),\n    root = require('./_root');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1;\n\n/**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n *  the new function.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createPartial(func, bitmask, thisArg, partials) {\n  var isBind = bitmask & WRAP_BIND_FLAG,\n      Ctor = createCtor(func);\n\n  function wrapper() {\n    var argsIndex = -1,\n        argsLength = arguments.length,\n        leftIndex = -1,\n        leftLength = partials.length,\n        args = Array(leftLength + argsLength),\n        fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n    while (++leftIndex < leftLength) {\n      args[leftIndex] = partials[leftIndex];\n    }\n    while (argsLength--) {\n      args[leftIndex++] = arguments[++argsIndex];\n    }\n    return apply(fn, isBind ? thisArg : this, args);\n  }\n  return wrapper;\n}\n\nmodule.exports = createPartial;\n","var isLaziable = require('./_isLaziable'),\n    setData = require('./_setData'),\n    setWrapToString = require('./_setWrapToString');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1,\n    WRAP_BIND_KEY_FLAG = 2,\n    WRAP_CURRY_BOUND_FLAG = 4,\n    WRAP_CURRY_FLAG = 8,\n    WRAP_PARTIAL_FLAG = 32,\n    WRAP_PARTIAL_RIGHT_FLAG = 64;\n\n/**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n *  the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n  var isCurry = bitmask & WRAP_CURRY_FLAG,\n      newHolders = isCurry ? holders : undefined,\n      newHoldersRight = isCurry ? undefined : holders,\n      newPartials = isCurry ? partials : undefined,\n      newPartialsRight = isCurry ? undefined : partials;\n\n  bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n    bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n  }\n  var newData = [\n    func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n    newHoldersRight, argPos, ary, arity\n  ];\n\n  var result = wrapFunc.apply(undefined, newData);\n  if (isLaziable(func)) {\n    setData(result, newData);\n  }\n  result.placeholder = placeholder;\n  return setWrapToString(result, func, bitmask);\n}\n\nmodule.exports = createRecurry;\n","var Set = require('./_Set'),\n    noop = require('./noop'),\n    setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n  return new Set(values);\n};\n\nmodule.exports = createSet;\n","var baseSetData = require('./_baseSetData'),\n    createBind = require('./_createBind'),\n    createCurry = require('./_createCurry'),\n    createHybrid = require('./_createHybrid'),\n    createPartial = require('./_createPartial'),\n    getData = require('./_getData'),\n    mergeData = require('./_mergeData'),\n    setData = require('./_setData'),\n    setWrapToString = require('./_setWrapToString'),\n    toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1,\n    WRAP_BIND_KEY_FLAG = 2,\n    WRAP_CURRY_FLAG = 8,\n    WRAP_CURRY_RIGHT_FLAG = 16,\n    WRAP_PARTIAL_FLAG = 32,\n    WRAP_PARTIAL_RIGHT_FLAG = 64;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n *    1 - `_.bind`\n *    2 - `_.bindKey`\n *    4 - `_.curry` or `_.curryRight` of a bound function\n *    8 - `_.curry`\n *   16 - `_.curryRight`\n *   32 - `_.partial`\n *   64 - `_.partialRight`\n *  128 - `_.rearg`\n *  256 - `_.ary`\n *  512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\nfunction createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n  var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n  if (!isBindKey && typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var length = partials ? partials.length : 0;\n  if (!length) {\n    bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n    partials = holders = undefined;\n  }\n  ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n  arity = arity === undefined ? arity : toInteger(arity);\n  length -= holders ? holders.length : 0;\n\n  if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n    var partialsRight = partials,\n        holdersRight = holders;\n\n    partials = holders = undefined;\n  }\n  var data = isBindKey ? undefined : getData(func);\n\n  var newData = [\n    func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n    argPos, ary, arity\n  ];\n\n  if (data) {\n    mergeData(newData, data);\n  }\n  func = newData[0];\n  bitmask = newData[1];\n  thisArg = newData[2];\n  partials = newData[3];\n  holders = newData[4];\n  arity = newData[9] = newData[9] === undefined\n    ? (isBindKey ? 0 : func.length)\n    : nativeMax(newData[9] - length, 0);\n\n  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n    bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n  }\n  if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n    var result = createBind(func, bitmask, thisArg);\n  } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n    result = createCurry(func, bitmask, arity);\n  } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n    result = createPartial(func, bitmask, thisArg, partials);\n  } else {\n    result = createHybrid.apply(undefined, newData);\n  }\n  var setter = data ? baseSetData : setData;\n  return setWrapToString(setter(result, newData), func, bitmask);\n}\n\nmodule.exports = createWrap;\n","var isPlainObject = require('./isPlainObject');\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n  return isPlainObject(value) ? undefined : value;\n}\n\nmodule.exports = customOmitClone;\n","var basePropertyOf = require('./_basePropertyOf');\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n  // Latin-1 Supplement block.\n  '\\xc0': 'A',  '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n  '\\xe0': 'a',  '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n  '\\xc7': 'C',  '\\xe7': 'c',\n  '\\xd0': 'D',  '\\xf0': 'd',\n  '\\xc8': 'E',  '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n  '\\xe8': 'e',  '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n  '\\xcc': 'I',  '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n  '\\xec': 'i',  '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n  '\\xd1': 'N',  '\\xf1': 'n',\n  '\\xd2': 'O',  '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n  '\\xf2': 'o',  '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n  '\\xd9': 'U',  '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n  '\\xf9': 'u',  '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n  '\\xdd': 'Y',  '\\xfd': 'y', '\\xff': 'y',\n  '\\xc6': 'Ae', '\\xe6': 'ae',\n  '\\xde': 'Th', '\\xfe': 'th',\n  '\\xdf': 'ss',\n  // Latin Extended-A block.\n  '\\u0100': 'A',  '\\u0102': 'A', '\\u0104': 'A',\n  '\\u0101': 'a',  '\\u0103': 'a', '\\u0105': 'a',\n  '\\u0106': 'C',  '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n  '\\u0107': 'c',  '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n  '\\u010e': 'D',  '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n  '\\u0112': 'E',  '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n  '\\u0113': 'e',  '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n  '\\u011c': 'G',  '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n  '\\u011d': 'g',  '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n  '\\u0124': 'H',  '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n  '\\u0128': 'I',  '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n  '\\u0129': 'i',  '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n  '\\u0134': 'J',  '\\u0135': 'j',\n  '\\u0136': 'K',  '\\u0137': 'k', '\\u0138': 'k',\n  '\\u0139': 'L',  '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n  '\\u013a': 'l',  '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n  '\\u0143': 'N',  '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n  '\\u0144': 'n',  '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n  '\\u014c': 'O',  '\\u014e': 'O', '\\u0150': 'O',\n  '\\u014d': 'o',  '\\u014f': 'o', '\\u0151': 'o',\n  '\\u0154': 'R',  '\\u0156': 'R', '\\u0158': 'R',\n  '\\u0155': 'r',  '\\u0157': 'r', '\\u0159': 'r',\n  '\\u015a': 'S',  '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n  '\\u015b': 's',  '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n  '\\u0162': 'T',  '\\u0164': 'T', '\\u0166': 'T',\n  '\\u0163': 't',  '\\u0165': 't', '\\u0167': 't',\n  '\\u0168': 'U',  '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n  '\\u0169': 'u',  '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n  '\\u0174': 'W',  '\\u0175': 'w',\n  '\\u0176': 'Y',  '\\u0177': 'y', '\\u0178': 'Y',\n  '\\u0179': 'Z',  '\\u017b': 'Z', '\\u017d': 'Z',\n  '\\u017a': 'z',  '\\u017c': 'z', '\\u017e': 'z',\n  '\\u0132': 'IJ', '\\u0133': 'ij',\n  '\\u0152': 'Oe', '\\u0153': 'oe',\n  '\\u0149': \"'n\", '\\u017f': 's'\n};\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\nmodule.exports = deburrLetter;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n  try {\n    var func = getNative(Object, 'defineProperty');\n    func({}, '', {});\n    return func;\n  } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var SetCache = require('./_SetCache'),\n    arraySome = require('./_arraySome'),\n    cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Check that cyclic values are equal.\n  var arrStacked = stack.get(array);\n  var othStacked = stack.get(other);\n  if (arrStacked && othStacked) {\n    return arrStacked == other && othStacked == array;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!cacheHas(seen, othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n              return seen.push(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, bitmask, customizer, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalArrays;\n","var Symbol = require('./_Symbol'),\n    Uint8Array = require('./_Uint8Array'),\n    eq = require('./eq'),\n    equalArrays = require('./_equalArrays'),\n    mapToArray = require('./_mapToArray'),\n    setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= COMPARE_UNORDERED_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\nmodule.exports = equalByTag;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      objProps = getAllKeys(object),\n      objLength = objProps.length,\n      othProps = getAllKeys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Check that cyclic values are equal.\n  var objStacked = stack.get(object);\n  var othStacked = stack.get(other);\n  if (objStacked && othStacked) {\n    return objStacked == other && othStacked == object;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalObjects;\n","var flatten = require('./flatten'),\n    overRest = require('./_overRest'),\n    setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n  return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n    getSymbols = require('./_getSymbols'),\n    keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n  return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n    getSymbolsIn = require('./_getSymbolsIn'),\n    keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n  return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var metaMap = require('./_metaMap'),\n    noop = require('./noop');\n\n/**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\nvar getData = !metaMap ? noop : function(func) {\n  return metaMap.get(func);\n};\n\nmodule.exports = getData;\n","var realNames = require('./_realNames');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\nfunction getFuncName(func) {\n  var result = (func.name + ''),\n      array = realNames[result],\n      length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n  while (length--) {\n    var data = array[length],\n        otherFunc = data.func;\n    if (otherFunc == null || otherFunc == func) {\n      return data.name;\n    }\n  }\n  return result;\n}\n\nmodule.exports = getFuncName;\n","/**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\nfunction getHolder(func) {\n  var object = func;\n  return object.placeholder;\n}\n\nmodule.exports = getHolder;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\nmodule.exports = getMapData;\n","var isStrictComparable = require('./_isStrictComparable'),\n    keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsNative = require('./_baseIsNative'),\n    getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n    stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n  if (object == null) {\n    return [];\n  }\n  object = Object(object);\n  return arrayFilter(nativeGetSymbols(object), function(symbol) {\n    return propertyIsEnumerable.call(object, symbol);\n  });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n    getPrototype = require('./_getPrototype'),\n    getSymbols = require('./_getSymbols'),\n    stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n  var result = [];\n  while (object) {\n    arrayPush(result, getSymbols(object));\n    object = getPrototype(object);\n  }\n  return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n    Map = require('./_Map'),\n    Promise = require('./_Promise'),\n    Set = require('./_Set'),\n    WeakMap = require('./_WeakMap'),\n    baseGetTag = require('./_baseGetTag'),\n    toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    setTag = '[object Set]',\n    weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = baseGetTag(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : '';\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","/** Used to match wrap detail comments. */\nvar reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n    reSplitDetails = /,? & /;\n\n/**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\nfunction getWrapDetails(source) {\n  var match = source.match(reWrapDetails);\n  return match ? match[1].split(reSplitDetails) : [];\n}\n\nmodule.exports = getWrapDetails;\n","var castPath = require('./_castPath'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isIndex = require('./_isIndex'),\n    isLength = require('./isLength'),\n    toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      result = false;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result || ++index != length) {\n    return result;\n  }\n  length = object == null ? 0 : object.length;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n  return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n  return reHasUnicodeWord.test(string);\n}\n\nmodule.exports = hasUnicodeWord;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n  this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  var result = this.has(key) && delete this.__data__[key];\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  this.size += this.has(key) ? 0 : 1;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n  var length = array.length,\n      result = new array.constructor(length);\n\n  // Add properties assigned by `RegExp#exec`.\n  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n    result.index = array.index;\n    result.input = array.input;\n  }\n  return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n    cloneDataView = require('./_cloneDataView'),\n    cloneRegExp = require('./_cloneRegExp'),\n    cloneSymbol = require('./_cloneSymbol'),\n    cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n  var Ctor = object.constructor;\n  switch (tag) {\n    case arrayBufferTag:\n      return cloneArrayBuffer(object);\n\n    case boolTag:\n    case dateTag:\n      return new Ctor(+object);\n\n    case dataViewTag:\n      return cloneDataView(object, isDeep);\n\n    case float32Tag: case float64Tag:\n    case int8Tag: case int16Tag: case int32Tag:\n    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n      return cloneTypedArray(object, isDeep);\n\n    case mapTag:\n      return new Ctor;\n\n    case numberTag:\n    case stringTag:\n      return new Ctor(object);\n\n    case regexpTag:\n      return cloneRegExp(object);\n\n    case setTag:\n      return new Ctor;\n\n    case symbolTag:\n      return cloneSymbol(object);\n  }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n    getPrototype = require('./_getPrototype'),\n    isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n  return (typeof object.constructor == 'function' && !isPrototype(object))\n    ? baseCreate(getPrototype(object))\n    : {};\n}\n\nmodule.exports = initCloneObject;\n","/** Used to match wrap detail comments. */\nvar reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/;\n\n/**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\nfunction insertWrapDetails(source, details) {\n  var length = details.length;\n  if (!length) {\n    return source;\n  }\n  var lastIndex = length - 1;\n  details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n  details = details.join(length > 2 ? ', ' : ' ');\n  return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n}\n\nmodule.exports = insertWrapDetails;\n","var Symbol = require('./_Symbol'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  var type = typeof value;\n  length = length == null ? MAX_SAFE_INTEGER : length;\n\n  return !!length &&\n    (type == 'number' ||\n      (type != 'symbol' && reIsUint.test(value))) &&\n        (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n    isArrayLike = require('./isArrayLike'),\n    isIndex = require('./_isIndex'),\n    isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n *  else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n  if (!isObject(object)) {\n    return false;\n  }\n  var type = typeof index;\n  if (type == 'number'\n        ? (isArrayLike(object) && isIndex(index, object.length))\n        : (type == 'string' && index in object)\n      ) {\n    return eq(object[index], value);\n  }\n  return false;\n}\n\nmodule.exports = isIterateeCall;\n","var isArray = require('./isArray'),\n    isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var LazyWrapper = require('./_LazyWrapper'),\n    getData = require('./_getData'),\n    getFuncName = require('./_getFuncName'),\n    lodash = require('./wrapperLodash');\n\n/**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n *  else `false`.\n */\nfunction isLaziable(func) {\n  var funcName = getFuncName(func),\n      other = lodash[funcName];\n\n  if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n    return false;\n  }\n  if (func === other) {\n    return true;\n  }\n  var data = getData(other);\n  return !!data && func === data[0];\n}\n\nmodule.exports = isLaziable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n  this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  --this.size;\n  return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    ++this.size;\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n    ListCache = require('./_ListCache'),\n    Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.size = 0;\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  var result = getMapData(this, key)['delete'](key);\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  var data = getMapData(this, key),\n      size = data.size;\n\n  data.set(key, value);\n  this.size += data.size == size ? 0 : 1;\n  return this;\n}\n\nmodule.exports = mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\nmodule.exports = matchesStrictComparable;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n  var result = memoize(func, function(key) {\n    if (cache.size === MAX_MEMOIZE_SIZE) {\n      cache.clear();\n    }\n    return key;\n  });\n\n  var cache = result.cache;\n  return result;\n}\n\nmodule.exports = memoizeCapped;\n","var composeArgs = require('./_composeArgs'),\n    composeArgsRight = require('./_composeArgsRight'),\n    replaceHolders = require('./_replaceHolders');\n\n/** Used as the internal argument placeholder. */\nvar PLACEHOLDER = '__lodash_placeholder__';\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1,\n    WRAP_BIND_KEY_FLAG = 2,\n    WRAP_CURRY_BOUND_FLAG = 4,\n    WRAP_CURRY_FLAG = 8,\n    WRAP_ARY_FLAG = 128,\n    WRAP_REARG_FLAG = 256;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMin = Math.min;\n\n/**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\nfunction mergeData(data, source) {\n  var bitmask = data[1],\n      srcBitmask = source[1],\n      newBitmask = bitmask | srcBitmask,\n      isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n  var isCombo =\n    ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n    ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n    ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n  // Exit early if metadata can't be merged.\n  if (!(isCommon || isCombo)) {\n    return data;\n  }\n  // Use source `thisArg` if available.\n  if (srcBitmask & WRAP_BIND_FLAG) {\n    data[2] = source[2];\n    // Set when currying a bound function.\n    newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n  }\n  // Compose partial arguments.\n  var value = source[3];\n  if (value) {\n    var partials = data[3];\n    data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n    data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n  }\n  // Compose partial right arguments.\n  value = source[5];\n  if (value) {\n    partials = data[5];\n    data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n    data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n  }\n  // Use source `argPos` if available.\n  value = source[7];\n  if (value) {\n    data[7] = value;\n  }\n  // Use source `ary` if it's smaller.\n  if (srcBitmask & WRAP_ARY_FLAG) {\n    data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n  }\n  // Use source `arity` if one is not provided.\n  if (data[9] == null) {\n    data[9] = source[9];\n  }\n  // Use source `func` and merge bitmasks.\n  data[0] = source[0];\n  data[1] = newBitmask;\n\n  return data;\n}\n\nmodule.exports = mergeData;\n","var WeakMap = require('./_WeakMap');\n\n/** Used to store function metadata. */\nvar metaMap = WeakMap && new WeakMap;\n\nmodule.exports = metaMap;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n  var result = [];\n  if (object != null) {\n    for (var key in Object(object)) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    // Use `util.types` for Node.js 10+.\n    var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n    if (types) {\n      return types;\n    }\n\n    // Legacy `process.binding('util')` for Node.js < 10.\n    return freeProcess && freeProcess.binding && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n  return function() {\n    var args = arguments,\n        index = -1,\n        length = nativeMax(args.length - start, 0),\n        array = Array(length);\n\n    while (++index < length) {\n      array[index] = args[start + index];\n    }\n    index = -1;\n    var otherArgs = Array(start + 1);\n    while (++index < start) {\n      otherArgs[index] = args[index];\n    }\n    otherArgs[start] = transform(array);\n    return apply(func, this, otherArgs);\n  };\n}\n\nmodule.exports = overRest;\n","var baseGet = require('./_baseGet'),\n    baseSlice = require('./_baseSlice');\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n  return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nmodule.exports = parent;\n","/** Used to lookup unminified function names. */\nvar realNames = {};\n\nmodule.exports = realNames;\n","var copyArray = require('./_copyArray'),\n    isIndex = require('./_isIndex');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMin = Math.min;\n\n/**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\nfunction reorder(array, indexes) {\n  var arrLength = array.length,\n      length = nativeMin(indexes.length, arrLength),\n      oldArray = copyArray(array);\n\n  while (length--) {\n    var index = indexes[length];\n    array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n  }\n  return array;\n}\n\nmodule.exports = reorder;\n","/** Used as the internal argument placeholder. */\nvar PLACEHOLDER = '__lodash_placeholder__';\n\n/**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\nfunction replaceHolders(array, placeholder) {\n  var index = -1,\n      length = array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (value === placeholder || value === PLACEHOLDER) {\n      array[index] = PLACEHOLDER;\n      result[resIndex++] = index;\n    }\n  }\n  return result;\n}\n\nmodule.exports = replaceHolders;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","var baseSetData = require('./_baseSetData'),\n    shortOut = require('./_shortOut');\n\n/**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\nvar setData = shortOut(baseSetData);\n\nmodule.exports = setData;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n  var index = -1,\n      result = Array(set.size);\n\n  set.forEach(function(value) {\n    result[++index] = value;\n  });\n  return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n    shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var getWrapDetails = require('./_getWrapDetails'),\n    insertWrapDetails = require('./_insertWrapDetails'),\n    setToString = require('./_setToString'),\n    updateWrapDetails = require('./_updateWrapDetails');\n\n/**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\nfunction setWrapToString(wrapper, reference, bitmask) {\n  var source = (reference + '');\n  return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n}\n\nmodule.exports = setWrapToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n    HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n  var count = 0,\n      lastCalled = 0;\n\n  return function() {\n    var stamp = nativeNow(),\n        remaining = HOT_SPAN - (stamp - lastCalled);\n\n    lastCalled = stamp;\n    if (remaining > 0) {\n      if (++count >= HOT_COUNT) {\n        return arguments[0];\n      }\n    } else {\n      count = 0;\n    }\n    return func.apply(undefined, arguments);\n  };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n  this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  var data = this.__data__,\n      result = data['delete'](key);\n\n  this.size = data.size;\n  return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n    Map = require('./_Map'),\n    MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var data = this.__data__;\n  if (data instanceof ListCache) {\n    var pairs = data.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      this.size = ++data.size;\n      return this;\n    }\n    data = this.__data__ = new MapCache(pairs);\n  }\n  data.set(key, value);\n  this.size = data.size;\n  return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n  var index = fromIndex - 1,\n      length = array.length;\n\n  while (++index < length) {\n    if (array[index] === value) {\n      return index;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var asciiSize = require('./_asciiSize'),\n    hasUnicode = require('./_hasUnicode'),\n    unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n  return hasUnicode(string)\n    ? unicodeSize(string)\n    : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n","var asciiToArray = require('./_asciiToArray'),\n    hasUnicode = require('./_hasUnicode'),\n    unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n  return hasUnicode(string)\n    ? unicodeToArray(string)\n    : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n  var result = [];\n  if (string.charCodeAt(0) === 46 /* . */) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, subString) {\n    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\nmodule.exports = stringToPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\nmodule.exports = toSource;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n  var index = string.length;\n\n  while (index-- && reWhitespace.test(string.charAt(index))) {}\n  return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n  var result = reUnicode.lastIndex = 0;\n  while (reUnicode.test(string)) {\n    ++result;\n  }\n  return result;\n}\n\nmodule.exports = unicodeSize;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n  return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n    rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n    rsDingbatRange = '\\\\u2700-\\\\u27bf',\n    rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n    rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n    rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n    rsPunctuationRange = '\\\\u2000-\\\\u206f',\n    rsSpaceRange = ' \\\\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',\n    rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n    rsVarRange = '\\\\ufe0e\\\\ufe0f',\n    rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n    rsBreak = '[' + rsBreakRange + ']',\n    rsCombo = '[' + rsComboRange + ']',\n    rsDigits = '\\\\d+',\n    rsDingbat = '[' + rsDingbatRange + ']',\n    rsLower = '[' + rsLowerRange + ']',\n    rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n    rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n    rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n    rsNonAstral = '[^' + rsAstralRange + ']',\n    rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n    rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n    rsUpper = '[' + rsUpperRange + ']',\n    rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n    rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n    rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n    rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n    reOptMod = rsModifier + '?',\n    rsOptVar = '[' + rsVarRange + ']?',\n    rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n    rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n    rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n    rsSeq = rsOptVar + reOptMod + rsOptJoin,\n    rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n  rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n  rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n  rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n  rsUpper + '+' + rsOptContrUpper,\n  rsOrdUpper,\n  rsOrdLower,\n  rsDigits,\n  rsEmoji\n].join('|'), 'g');\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n  return string.match(reUnicodeWord) || [];\n}\n\nmodule.exports = unicodeWords;\n","var arrayEach = require('./_arrayEach'),\n    arrayIncludes = require('./_arrayIncludes');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_BIND_FLAG = 1,\n    WRAP_BIND_KEY_FLAG = 2,\n    WRAP_CURRY_FLAG = 8,\n    WRAP_CURRY_RIGHT_FLAG = 16,\n    WRAP_PARTIAL_FLAG = 32,\n    WRAP_PARTIAL_RIGHT_FLAG = 64,\n    WRAP_ARY_FLAG = 128,\n    WRAP_REARG_FLAG = 256,\n    WRAP_FLIP_FLAG = 512;\n\n/** Used to associate wrap methods with their bit flags. */\nvar wrapFlags = [\n  ['ary', WRAP_ARY_FLAG],\n  ['bind', WRAP_BIND_FLAG],\n  ['bindKey', WRAP_BIND_KEY_FLAG],\n  ['curry', WRAP_CURRY_FLAG],\n  ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n  ['flip', WRAP_FLIP_FLAG],\n  ['partial', WRAP_PARTIAL_FLAG],\n  ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n  ['rearg', WRAP_REARG_FLAG]\n];\n\n/**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\nfunction updateWrapDetails(details, bitmask) {\n  arrayEach(wrapFlags, function(pair) {\n    var value = '_.' + pair[0];\n    if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n      details.push(value);\n    }\n  });\n  return details.sort();\n}\n\nmodule.exports = updateWrapDetails;\n","var LazyWrapper = require('./_LazyWrapper'),\n    LodashWrapper = require('./_LodashWrapper'),\n    copyArray = require('./_copyArray');\n\n/**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\nfunction wrapperClone(wrapper) {\n  if (wrapper instanceof LazyWrapper) {\n    return wrapper.clone();\n  }\n  var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n  result.__actions__ = copyArray(wrapper.__actions__);\n  result.__index__  = wrapper.__index__;\n  result.__values__ = wrapper.__values__;\n  return result;\n}\n\nmodule.exports = wrapperClone;\n","var createWrap = require('./_createWrap');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_ARY_FLAG = 128;\n\n/**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\nfunction ary(func, n, guard) {\n  n = guard ? undefined : n;\n  n = (func && n == null) ? func.length : n;\n  return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n}\n\nmodule.exports = ary;\n","var copyObject = require('./_copyObject'),\n    createAssigner = require('./_createAssigner'),\n    keysIn = require('./keysIn');\n\n/**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * function Bar() {\n *   this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\nvar assignIn = createAssigner(function(object, source) {\n  copyObject(source, keysIn(source), object);\n});\n\nmodule.exports = assignIn;\n","var capitalize = require('./capitalize'),\n    createCompounder = require('./_createCompounder');\n\n/**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\nvar camelCase = createCompounder(function(result, word, index) {\n  word = word.toLowerCase();\n  return result + (index ? capitalize(word) : word);\n});\n\nmodule.exports = camelCase;\n","var toString = require('./toString'),\n    upperFirst = require('./upperFirst');\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n  return upperFirst(toString(string).toLowerCase());\n}\n\nmodule.exports = capitalize;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n  return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `-0`, `0n`, `\"\"`, `undefined`, and `NaN` are falsy.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\nfunction compact(array) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (value) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = compact;\n","var arrayPush = require('./_arrayPush'),\n    baseFlatten = require('./_baseFlatten'),\n    copyArray = require('./_copyArray'),\n    isArray = require('./isArray');\n\n/**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\nfunction concat() {\n  var length = arguments.length;\n  if (!length) {\n    return [];\n  }\n  var args = Array(length - 1),\n      array = arguments[0],\n      index = length;\n\n  while (index--) {\n    args[index - 1] = arguments[index];\n  }\n  return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n}\n\nmodule.exports = concat;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n  return function() {\n    return value;\n  };\n}\n\nmodule.exports = constant;\n","var isObject = require('./isObject'),\n    now = require('./now'),\n    toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n    nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n *  Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n *  The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n *   'leading': true,\n *   'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n  var lastArgs,\n      lastThis,\n      maxWait,\n      result,\n      timerId,\n      lastCallTime,\n      lastInvokeTime = 0,\n      leading = false,\n      maxing = false,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  wait = toNumber(wait) || 0;\n  if (isObject(options)) {\n    leading = !!options.leading;\n    maxing = 'maxWait' in options;\n    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n\n  function invokeFunc(time) {\n    var args = lastArgs,\n        thisArg = lastThis;\n\n    lastArgs = lastThis = undefined;\n    lastInvokeTime = time;\n    result = func.apply(thisArg, args);\n    return result;\n  }\n\n  function leadingEdge(time) {\n    // Reset any `maxWait` timer.\n    lastInvokeTime = time;\n    // Start the timer for the trailing edge.\n    timerId = setTimeout(timerExpired, wait);\n    // Invoke the leading edge.\n    return leading ? invokeFunc(time) : result;\n  }\n\n  function remainingWait(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime,\n        timeWaiting = wait - timeSinceLastCall;\n\n    return maxing\n      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n      : timeWaiting;\n  }\n\n  function shouldInvoke(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime;\n\n    // Either this is the first call, activity has stopped and we're at the\n    // trailing edge, the system time has gone backwards and we're treating\n    // it as the trailing edge, or we've hit the `maxWait` limit.\n    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n  }\n\n  function timerExpired() {\n    var time = now();\n    if (shouldInvoke(time)) {\n      return trailingEdge(time);\n    }\n    // Restart the timer.\n    timerId = setTimeout(timerExpired, remainingWait(time));\n  }\n\n  function trailingEdge(time) {\n    timerId = undefined;\n\n    // Only invoke if we have `lastArgs` which means `func` has been\n    // debounced at least once.\n    if (trailing && lastArgs) {\n      return invokeFunc(time);\n    }\n    lastArgs = lastThis = undefined;\n    return result;\n  }\n\n  function cancel() {\n    if (timerId !== undefined) {\n      clearTimeout(timerId);\n    }\n    lastInvokeTime = 0;\n    lastArgs = lastCallTime = lastThis = timerId = undefined;\n  }\n\n  function flush() {\n    return timerId === undefined ? result : trailingEdge(now());\n  }\n\n  function debounced() {\n    var time = now(),\n        isInvoking = shouldInvoke(time);\n\n    lastArgs = arguments;\n    lastThis = this;\n    lastCallTime = time;\n\n    if (isInvoking) {\n      if (timerId === undefined) {\n        return leadingEdge(lastCallTime);\n      }\n      if (maxing) {\n        // Handle invocations in a tight loop.\n        clearTimeout(timerId);\n        timerId = setTimeout(timerExpired, wait);\n        return invokeFunc(lastCallTime);\n      }\n    }\n    if (timerId === undefined) {\n      timerId = setTimeout(timerExpired, wait);\n    }\n    return result;\n  }\n  debounced.cancel = cancel;\n  debounced.flush = flush;\n  return debounced;\n}\n\nmodule.exports = debounce;\n","var deburrLetter = require('./_deburrLetter'),\n    toString = require('./toString');\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsComboMarksRange = '\\\\u0300-\\\\u036f',\n    reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n    rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n    rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;\n\n/** Used to compose unicode capture groups. */\nvar rsCombo = '[' + rsComboRange + ']';\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n  string = toString(string);\n  return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\nmodule.exports = deburr;\n","var baseDelay = require('./_baseDelay'),\n    baseRest = require('./_baseRest');\n\n/**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n *   console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\nvar defer = baseRest(function(func, args) {\n  return baseDelay(func, 1, args);\n});\n\nmodule.exports = defer;\n","module.exports = require('./forEach');\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var arrayEvery = require('./_arrayEvery'),\n    baseEvery = require('./_baseEvery'),\n    baseIteratee = require('./_baseIteratee'),\n    isArray = require('./isArray'),\n    isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n *  else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n *   { 'user': 'barney', 'age': 36, 'active': false },\n *   { 'user': 'fred',   'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\nfunction every(collection, predicate, guard) {\n  var func = isArray(collection) ? arrayEvery : baseEvery;\n  if (guard && isIterateeCall(collection, predicate, guard)) {\n    predicate = undefined;\n  }\n  return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = every;\n","module.exports = require('./assignIn');\n","var arrayFilter = require('./_arrayFilter'),\n    baseFilter = require('./_baseFilter'),\n    baseIteratee = require('./_baseIteratee'),\n    isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n *   { 'user': 'barney', 'age': 36, 'active': true },\n *   { 'user': 'fred',   'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\nfunction filter(collection, predicate) {\n  var func = isArray(collection) ? arrayFilter : baseFilter;\n  return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var createFind = require('./_createFind'),\n    findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'age': 36, 'active': true },\n *   { 'user': 'fred',    'age': 40, 'active': false },\n *   { 'user': 'pebbles', 'age': 1,  'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseFindIndex = require('./_baseFindIndex'),\n    baseIteratee = require('./_baseIteratee'),\n    toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'active': false },\n *   { 'user': 'fred',    'active': false },\n *   { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n  var length = array == null ? 0 : array.length;\n  if (!length) {\n    return -1;\n  }\n  var index = fromIndex == null ? 0 : toInteger(fromIndex);\n  if (index < 0) {\n    index = nativeMax(length + index, 0);\n  }\n  return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","module.exports = require('./head');\n","var baseFlatten = require('./_baseFlatten'),\n    map = require('./map');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n *   return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\nfunction flatMapDeep(collection, iteratee) {\n  return baseFlatten(map(collection, iteratee), INFINITY);\n}\n\nmodule.exports = flatMapDeep;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n  var length = array == null ? 0 : array.length;\n  return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var baseFlatten = require('./_baseFlatten');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\nfunction flattenDeep(array) {\n  var length = array == null ? 0 : array.length;\n  return length ? baseFlatten(array, INFINITY) : [];\n}\n\nmodule.exports = flattenDeep;\n","var arrayEach = require('./_arrayEach'),\n    baseEach = require('./_baseEach'),\n    castFunction = require('./_castFunction'),\n    isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n *   console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n *   console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n  var func = isArray(collection) ? arrayEach : baseEach;\n  return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var baseHas = require('./_baseHas'),\n    hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n  return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","var baseHasIn = require('./_baseHasIn'),\n    hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n  return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n  return value;\n}\n\nmodule.exports = identity;\n","var baseIndexOf = require('./_baseIndexOf'),\n    toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\nfunction indexOf(array, value, fromIndex) {\n  var length = array == null ? 0 : array.length;\n  if (!length) {\n    return -1;\n  }\n  var index = fromIndex == null ? 0 : toInteger(fromIndex);\n  if (index < 0) {\n    index = nativeMax(length + index, 0);\n  }\n  return baseIndexOf(array, value, index);\n}\n\nmodule.exports = indexOf;\n","var arrayMap = require('./_arrayMap'),\n    baseIntersection = require('./_baseIntersection'),\n    baseIteratee = require('./_baseIteratee'),\n    baseRest = require('./_baseRest'),\n    castArrayLikeObject = require('./_castArrayLikeObject'),\n    last = require('./last');\n\n/**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\nvar intersectionBy = baseRest(function(arrays) {\n  var iteratee = last(arrays),\n      mapped = arrayMap(arrays, castArrayLikeObject);\n\n  if (iteratee === last(mapped)) {\n    iteratee = undefined;\n  } else {\n    mapped.pop();\n  }\n  return (mapped.length && mapped[0] === arrays[0])\n    ? baseIntersection(mapped, baseIteratee(iteratee, 2))\n    : [];\n});\n\nmodule.exports = intersectionBy;\n","var baseIsArguments = require('./_baseIsArguments'),\n    isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n    !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n    isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n    isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n    stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseKeys = require('./_baseKeys'),\n    getTag = require('./_getTag'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isArrayLike = require('./isArrayLike'),\n    isBuffer = require('./isBuffer'),\n    isPrototype = require('./_isPrototype'),\n    isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n  if (value == null) {\n    return true;\n  }\n  if (isArrayLike(value) &&\n      (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n        isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n    return !value.length;\n  }\n  var tag = getTag(value);\n  if (tag == mapTag || tag == setTag) {\n    return !value.size;\n  }\n  if (isPrototype(value)) {\n    return !baseKeys(value).length;\n  }\n  for (var key in value) {\n    if (hasOwnProperty.call(value, key)) {\n      return false;\n    }\n  }\n  return true;\n}\n\nmodule.exports = isEmpty;\n","var baseIsEqual = require('./_baseIsEqual');\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n  return baseIsEqual(value, other);\n}\n\nmodule.exports = isEqual;\n","var baseGetTag = require('./_baseGetTag'),\n    isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n    baseUnary = require('./_baseUnary'),\n    nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n    getPrototype = require('./_getPrototype'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n    return false;\n  }\n  var proto = getPrototype(value);\n  if (proto === null) {\n    return true;\n  }\n  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n  return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n    funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsRegExp = require('./_baseIsRegExp'),\n    baseUnary = require('./_baseUnary'),\n    nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;\n\n/**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\nvar isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\nmodule.exports = isRegExp;\n","var baseIsSet = require('./_baseIsSet'),\n    baseUnary = require('./_baseUnary'),\n    nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n    isArray = require('./isArray'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n  return typeof value == 'string' ||\n    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n    baseUnary = require('./_baseUnary'),\n    nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeJoin = arrayProto.join;\n\n/**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\nfunction join(array, separator) {\n  return array == null ? '' : nativeJoin.call(array, separator);\n}\n\nmodule.exports = join;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n    baseKeys = require('./_baseKeys'),\n    isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n    baseKeysIn = require('./_baseKeysIn'),\n    isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n  var length = array == null ? 0 : array.length;\n  return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n  /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n  var undefined;\n\n  /** Used as the semantic version number. */\n  var VERSION = '4.18.1';\n\n  /** Used as the size to enable large array optimizations. */\n  var LARGE_ARRAY_SIZE = 200;\n\n  /** Error message constants. */\n  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n      FUNC_ERROR_TEXT = 'Expected a function',\n      INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`',\n      INVALID_TEMPL_IMPORTS_ERROR_TEXT = 'Invalid `imports` option passed into `_.template`';\n\n  /** Used to stand-in for `undefined` hash values. */\n  var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n  /** Used as the maximum memoize cache size. */\n  var MAX_MEMOIZE_SIZE = 500;\n\n  /** Used as the internal argument placeholder. */\n  var PLACEHOLDER = '__lodash_placeholder__';\n\n  /** Used to compose bitmasks for cloning. */\n  var CLONE_DEEP_FLAG = 1,\n      CLONE_FLAT_FLAG = 2,\n      CLONE_SYMBOLS_FLAG = 4;\n\n  /** Used to compose bitmasks for value comparisons. */\n  var COMPARE_PARTIAL_FLAG = 1,\n      COMPARE_UNORDERED_FLAG = 2;\n\n  /** Used to compose bitmasks for function metadata. */\n  var WRAP_BIND_FLAG = 1,\n      WRAP_BIND_KEY_FLAG = 2,\n      WRAP_CURRY_BOUND_FLAG = 4,\n      WRAP_CURRY_FLAG = 8,\n      WRAP_CURRY_RIGHT_FLAG = 16,\n      WRAP_PARTIAL_FLAG = 32,\n      WRAP_PARTIAL_RIGHT_FLAG = 64,\n      WRAP_ARY_FLAG = 128,\n      WRAP_REARG_FLAG = 256,\n      WRAP_FLIP_FLAG = 512;\n\n  /** Used as default options for `_.truncate`. */\n  var DEFAULT_TRUNC_LENGTH = 30,\n      DEFAULT_TRUNC_OMISSION = '...';\n\n  /** Used to detect hot functions by number of calls within a span of milliseconds. */\n  var HOT_COUNT = 800,\n      HOT_SPAN = 16;\n\n  /** Used to indicate the type of lazy iteratees. */\n  var LAZY_FILTER_FLAG = 1,\n      LAZY_MAP_FLAG = 2,\n      LAZY_WHILE_FLAG = 3;\n\n  /** Used as references for various `Number` constants. */\n  var INFINITY = 1 / 0,\n      MAX_SAFE_INTEGER = 9007199254740991,\n      MAX_INTEGER = 1.7976931348623157e+308,\n      NAN = 0 / 0;\n\n  /** Used as references for the maximum length and index of an array. */\n  var MAX_ARRAY_LENGTH = 4294967295,\n      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n  /** Used to associate wrap methods with their bit flags. */\n  var wrapFlags = [\n    ['ary', WRAP_ARY_FLAG],\n    ['bind', WRAP_BIND_FLAG],\n    ['bindKey', WRAP_BIND_KEY_FLAG],\n    ['curry', WRAP_CURRY_FLAG],\n    ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n    ['flip', WRAP_FLIP_FLAG],\n    ['partial', WRAP_PARTIAL_FLAG],\n    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n    ['rearg', WRAP_REARG_FLAG]\n  ];\n\n  /** `Object#toString` result references. */\n  var argsTag = '[object Arguments]',\n      arrayTag = '[object Array]',\n      asyncTag = '[object AsyncFunction]',\n      boolTag = '[object Boolean]',\n      dateTag = '[object Date]',\n      domExcTag = '[object DOMException]',\n      errorTag = '[object Error]',\n      funcTag = '[object Function]',\n      genTag = '[object GeneratorFunction]',\n      mapTag = '[object Map]',\n      numberTag = '[object Number]',\n      nullTag = '[object Null]',\n      objectTag = '[object Object]',\n      promiseTag = '[object Promise]',\n      proxyTag = '[object Proxy]',\n      regexpTag = '[object RegExp]',\n      setTag = '[object Set]',\n      stringTag = '[object String]',\n      symbolTag = '[object Symbol]',\n      undefinedTag = '[object Undefined]',\n      weakMapTag = '[object WeakMap]',\n      weakSetTag = '[object WeakSet]';\n\n  var arrayBufferTag = '[object ArrayBuffer]',\n      dataViewTag = '[object DataView]',\n      float32Tag = '[object Float32Array]',\n      float64Tag = '[object Float64Array]',\n      int8Tag = '[object Int8Array]',\n      int16Tag = '[object Int16Array]',\n      int32Tag = '[object Int32Array]',\n      uint8Tag = '[object Uint8Array]',\n      uint8ClampedTag = '[object Uint8ClampedArray]',\n      uint16Tag = '[object Uint16Array]',\n      uint32Tag = '[object Uint32Array]';\n\n  /** Used to match empty string literals in compiled template source. */\n  var reEmptyStringLeading = /\\b__p \\+= '';/g,\n      reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n      reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n  /** Used to match HTML entities and HTML characters. */\n  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n      reUnescapedHtml = /[&<>\"']/g,\n      reHasEscapedHtml = RegExp(reEscapedHtml.source),\n      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n  /** Used to match template delimiters. */\n  var reEscape = /<%-([\\s\\S]+?)%>/g,\n      reEvaluate = /<%([\\s\\S]+?)%>/g,\n      reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n  /** Used to match property names within property paths. */\n  var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n      reIsPlainProp = /^\\w*$/,\n      rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n  /**\n   * Used to match `RegExp`\n   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n   */\n  var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n      reHasRegExpChar = RegExp(reRegExpChar.source);\n\n  /** Used to match leading whitespace. */\n  var reTrimStart = /^\\s+/;\n\n  /** Used to match a single whitespace character. */\n  var reWhitespace = /\\s/;\n\n  /** Used to match wrap detail comments. */\n  var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n      reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n      reSplitDetails = /,? & /;\n\n  /** Used to match words composed of alphanumeric characters. */\n  var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n  /**\n   * Used to validate the `validate` option in `_.template` variable.\n   *\n   * Forbids characters which could potentially change the meaning of the function argument definition:\n   * - \"(),\" (modification of function parameters)\n   * - \"=\" (default value)\n   * - \"[]{}\" (destructuring of function parameters)\n   * - \"/\" (beginning of a comment)\n   * - whitespace\n   */\n  var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n  /** Used to match backslashes in property paths. */\n  var reEscapeChar = /\\\\(\\\\)?/g;\n\n  /**\n   * Used to match\n   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n   */\n  var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n  /** Used to match `RegExp` flags from their coerced string values. */\n  var reFlags = /\\w*$/;\n\n  /** Used to detect bad signed hexadecimal string values. */\n  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n  /** Used to detect binary string values. */\n  var reIsBinary = /^0b[01]+$/i;\n\n  /** Used to detect host constructors (Safari). */\n  var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n  /** Used to detect octal string values. */\n  var reIsOctal = /^0o[0-7]+$/i;\n\n  /** Used to detect unsigned integer values. */\n  var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n  /** Used to match Latin Unicode letters (excluding mathematical operators). */\n  var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n  /** Used to ensure capturing order of template delimiters. */\n  var reNoMatch = /($^)/;\n\n  /** Used to match unescaped characters in compiled string literals. */\n  var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n  /** Used to compose unicode character classes. */\n  var rsAstralRange = '\\\\ud800-\\\\udfff',\n      rsComboMarksRange = '\\\\u0300-\\\\u036f',\n      reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n      rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n      rsDingbatRange = '\\\\u2700-\\\\u27bf',\n      rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n      rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n      rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n      rsPunctuationRange = '\\\\u2000-\\\\u206f',\n      rsSpaceRange = ' \\\\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',\n      rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n      rsVarRange = '\\\\ufe0e\\\\ufe0f',\n      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n  /** Used to compose unicode capture groups. */\n  var rsApos = \"['\\u2019]\",\n      rsAstral = '[' + rsAstralRange + ']',\n      rsBreak = '[' + rsBreakRange + ']',\n      rsCombo = '[' + rsComboRange + ']',\n      rsDigits = '\\\\d+',\n      rsDingbat = '[' + rsDingbatRange + ']',\n      rsLower = '[' + rsLowerRange + ']',\n      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n      rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n      rsNonAstral = '[^' + rsAstralRange + ']',\n      rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n      rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n      rsUpper = '[' + rsUpperRange + ']',\n      rsZWJ = '\\\\u200d';\n\n  /** Used to compose unicode regexes. */\n  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n      reOptMod = rsModifier + '?',\n      rsOptVar = '[' + rsVarRange + ']?',\n      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n      rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n      rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n      rsSeq = rsOptVar + reOptMod + rsOptJoin,\n      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n  /** Used to match apostrophes. */\n  var reApos = RegExp(rsApos, 'g');\n\n  /**\n   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n   */\n  var reComboMark = RegExp(rsCombo, 'g');\n\n  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n  /** Used to match complex or compound words. */\n  var reUnicodeWord = RegExp([\n    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n    rsUpper + '+' + rsOptContrUpper,\n    rsOrdUpper,\n    rsOrdLower,\n    rsDigits,\n    rsEmoji\n  ].join('|'), 'g');\n\n  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');\n\n  /** Used to detect strings that need a more robust regexp to match words. */\n  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n  /** Used to assign default `context` object properties. */\n  var contextProps = [\n    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n  ];\n\n  /** Used to make template sourceURLs easier to identify. */\n  var templateCounter = -1;\n\n  /** Used to identify `toStringTag` values of typed arrays. */\n  var typedArrayTags = {};\n  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n  typedArrayTags[uint32Tag] = true;\n  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n  typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n  typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n  typedArrayTags[setTag] = typedArrayTags[stringTag] =\n  typedArrayTags[weakMapTag] = false;\n\n  /** Used to identify `toStringTag` values supported by `_.clone`. */\n  var cloneableTags = {};\n  cloneableTags[argsTag] = cloneableTags[arrayTag] =\n  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n  cloneableTags[boolTag] = cloneableTags[dateTag] =\n  cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n  cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n  cloneableTags[int32Tag] = cloneableTags[mapTag] =\n  cloneableTags[numberTag] = cloneableTags[objectTag] =\n  cloneableTags[regexpTag] = cloneableTags[setTag] =\n  cloneableTags[stringTag] = cloneableTags[symbolTag] =\n  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n  cloneableTags[errorTag] = cloneableTags[funcTag] =\n  cloneableTags[weakMapTag] = false;\n\n  /** Used to map Latin Unicode letters to basic Latin letters. */\n  var deburredLetters = {\n    // Latin-1 Supplement block.\n    '\\xc0': 'A',  '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n    '\\xe0': 'a',  '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n    '\\xc7': 'C',  '\\xe7': 'c',\n    '\\xd0': 'D',  '\\xf0': 'd',\n    '\\xc8': 'E',  '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n    '\\xe8': 'e',  '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n    '\\xcc': 'I',  '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n    '\\xec': 'i',  '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n    '\\xd1': 'N',  '\\xf1': 'n',\n    '\\xd2': 'O',  '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n    '\\xf2': 'o',  '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n    '\\xd9': 'U',  '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n    '\\xf9': 'u',  '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n    '\\xdd': 'Y',  '\\xfd': 'y', '\\xff': 'y',\n    '\\xc6': 'Ae', '\\xe6': 'ae',\n    '\\xde': 'Th', '\\xfe': 'th',\n    '\\xdf': 'ss',\n    // Latin Extended-A block.\n    '\\u0100': 'A',  '\\u0102': 'A', '\\u0104': 'A',\n    '\\u0101': 'a',  '\\u0103': 'a', '\\u0105': 'a',\n    '\\u0106': 'C',  '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n    '\\u0107': 'c',  '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n    '\\u010e': 'D',  '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n    '\\u0112': 'E',  '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n    '\\u0113': 'e',  '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n    '\\u011c': 'G',  '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n    '\\u011d': 'g',  '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n    '\\u0124': 'H',  '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n    '\\u0128': 'I',  '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n    '\\u0129': 'i',  '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n    '\\u0134': 'J',  '\\u0135': 'j',\n    '\\u0136': 'K',  '\\u0137': 'k', '\\u0138': 'k',\n    '\\u0139': 'L',  '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n    '\\u013a': 'l',  '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n    '\\u0143': 'N',  '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n    '\\u0144': 'n',  '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n    '\\u014c': 'O',  '\\u014e': 'O', '\\u0150': 'O',\n    '\\u014d': 'o',  '\\u014f': 'o', '\\u0151': 'o',\n    '\\u0154': 'R',  '\\u0156': 'R', '\\u0158': 'R',\n    '\\u0155': 'r',  '\\u0157': 'r', '\\u0159': 'r',\n    '\\u015a': 'S',  '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n    '\\u015b': 's',  '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n    '\\u0162': 'T',  '\\u0164': 'T', '\\u0166': 'T',\n    '\\u0163': 't',  '\\u0165': 't', '\\u0167': 't',\n    '\\u0168': 'U',  '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n    '\\u0169': 'u',  '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n    '\\u0174': 'W',  '\\u0175': 'w',\n    '\\u0176': 'Y',  '\\u0177': 'y', '\\u0178': 'Y',\n    '\\u0179': 'Z',  '\\u017b': 'Z', '\\u017d': 'Z',\n    '\\u017a': 'z',  '\\u017c': 'z', '\\u017e': 'z',\n    '\\u0132': 'IJ', '\\u0133': 'ij',\n    '\\u0152': 'Oe', '\\u0153': 'oe',\n    '\\u0149': \"'n\", '\\u017f': 's'\n  };\n\n  /** Used to map characters to HTML entities. */\n  var htmlEscapes = {\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;',\n    '\"': '&quot;',\n    \"'\": '&#39;'\n  };\n\n  /** Used to map HTML entities to characters. */\n  var htmlUnescapes = {\n    '&amp;': '&',\n    '&lt;': '<',\n    '&gt;': '>',\n    '&quot;': '\"',\n    '&#39;': \"'\"\n  };\n\n  /** Used to escape characters for inclusion in compiled string literals. */\n  var stringEscapes = {\n    '\\\\': '\\\\',\n    \"'\": \"'\",\n    '\\n': 'n',\n    '\\r': 'r',\n    '\\u2028': 'u2028',\n    '\\u2029': 'u2029'\n  };\n\n  /** Built-in method references without a dependency on `root`. */\n  var freeParseFloat = parseFloat,\n      freeParseInt = parseInt;\n\n  /** Detect free variable `global` from Node.js. */\n  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n  /** Detect free variable `self`. */\n  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n  /** Used as a reference to the global object. */\n  var root = freeGlobal || freeSelf || Function('return this')();\n\n  /** Detect free variable `exports`. */\n  var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n  /** Detect free variable `module`. */\n  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n  /** Detect the popular CommonJS extension `module.exports`. */\n  var moduleExports = freeModule && freeModule.exports === freeExports;\n\n  /** Detect free variable `process` from Node.js. */\n  var freeProcess = moduleExports && freeGlobal.process;\n\n  /** Used to access faster Node.js helpers. */\n  var nodeUtil = (function() {\n    try {\n      // Use `util.types` for Node.js 10+.\n      var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n      if (types) {\n        return types;\n      }\n\n      // Legacy `process.binding('util')` for Node.js < 10.\n      return freeProcess && freeProcess.binding && freeProcess.binding('util');\n    } catch (e) {}\n  }());\n\n  /* Node.js helper references. */\n  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n      nodeIsDate = nodeUtil && nodeUtil.isDate,\n      nodeIsMap = nodeUtil && nodeUtil.isMap,\n      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n      nodeIsSet = nodeUtil && nodeUtil.isSet,\n      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n  /*--------------------------------------------------------------------------*/\n\n  /**\n   * A faster alternative to `Function#apply`, this function invokes `func`\n   * with the `this` binding of `thisArg` and the arguments of `args`.\n   *\n   * @private\n   * @param {Function} func The function to invoke.\n   * @param {*} thisArg The `this` binding of `func`.\n   * @param {Array} args The arguments to invoke `func` with.\n   * @returns {*} Returns the result of `func`.\n   */\n  function apply(func, thisArg, args) {\n    switch (args.length) {\n      case 0: return func.call(thisArg);\n      case 1: return func.call(thisArg, args[0]);\n      case 2: return func.call(thisArg, args[0], args[1]);\n      case 3: return func.call(thisArg, args[0], args[1], args[2]);\n    }\n    return func.apply(thisArg, args);\n  }\n\n  /**\n   * A specialized version of `baseAggregator` for arrays.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} setter The function to set `accumulator` values.\n   * @param {Function} iteratee The iteratee to transform keys.\n   * @param {Object} accumulator The initial aggregated object.\n   * @returns {Function} Returns `accumulator`.\n   */\n  function arrayAggregator(array, setter, iteratee, accumulator) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    while (++index < length) {\n      var value = array[index];\n      setter(accumulator, value, iteratee(value), array);\n    }\n    return accumulator;\n  }\n\n  /**\n   * A specialized version of `_.forEach` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {Array} Returns `array`.\n   */\n  function arrayEach(array, iteratee) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    while (++index < length) {\n      if (iteratee(array[index], index, array) === false) {\n        break;\n      }\n    }\n    return array;\n  }\n\n  /**\n   * A specialized version of `_.forEachRight` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {Array} Returns `array`.\n   */\n  function arrayEachRight(array, iteratee) {\n    var length = array == null ? 0 : array.length;\n\n    while (length--) {\n      if (iteratee(array[length], length, array) === false) {\n        break;\n      }\n    }\n    return array;\n  }\n\n  /**\n   * A specialized version of `_.every` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} predicate The function invoked per iteration.\n   * @returns {boolean} Returns `true` if all elements pass the predicate check,\n   *  else `false`.\n   */\n  function arrayEvery(array, predicate) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    while (++index < length) {\n      if (!predicate(array[index], index, array)) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  /**\n   * A specialized version of `_.filter` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} predicate The function invoked per iteration.\n   * @returns {Array} Returns the new filtered array.\n   */\n  function arrayFilter(array, predicate) {\n    var index = -1,\n        length = array == null ? 0 : array.length,\n        resIndex = 0,\n        result = [];\n\n    while (++index < length) {\n      var value = array[index];\n      if (predicate(value, index, array)) {\n        result[resIndex++] = value;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * A specialized version of `_.includes` for arrays without support for\n   * specifying an index to search from.\n   *\n   * @private\n   * @param {Array} [array] The array to inspect.\n   * @param {*} target The value to search for.\n   * @returns {boolean} Returns `true` if `target` is found, else `false`.\n   */\n  function arrayIncludes(array, value) {\n    var length = array == null ? 0 : array.length;\n    return !!length && baseIndexOf(array, value, 0) > -1;\n  }\n\n  /**\n   * This function is like `arrayIncludes` except that it accepts a comparator.\n   *\n   * @private\n   * @param {Array} [array] The array to inspect.\n   * @param {*} target The value to search for.\n   * @param {Function} comparator The comparator invoked per element.\n   * @returns {boolean} Returns `true` if `target` is found, else `false`.\n   */\n  function arrayIncludesWith(array, value, comparator) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    while (++index < length) {\n      if (comparator(value, array[index])) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  /**\n   * A specialized version of `_.map` for arrays without support for iteratee\n   * shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {Array} Returns the new mapped array.\n   */\n  function arrayMap(array, iteratee) {\n    var index = -1,\n        length = array == null ? 0 : array.length,\n        result = Array(length);\n\n    while (++index < length) {\n      result[index] = iteratee(array[index], index, array);\n    }\n    return result;\n  }\n\n  /**\n   * Appends the elements of `values` to `array`.\n   *\n   * @private\n   * @param {Array} array The array to modify.\n   * @param {Array} values The values to append.\n   * @returns {Array} Returns `array`.\n   */\n  function arrayPush(array, values) {\n    var index = -1,\n        length = values.length,\n        offset = array.length;\n\n    while (++index < length) {\n      array[offset + index] = values[index];\n    }\n    return array;\n  }\n\n  /**\n   * A specialized version of `_.reduce` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @param {*} [accumulator] The initial value.\n   * @param {boolean} [initAccum] Specify using the first element of `array` as\n   *  the initial value.\n   * @returns {*} Returns the accumulated value.\n   */\n  function arrayReduce(array, iteratee, accumulator, initAccum) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    if (initAccum && length) {\n      accumulator = array[++index];\n    }\n    while (++index < length) {\n      accumulator = iteratee(accumulator, array[index], index, array);\n    }\n    return accumulator;\n  }\n\n  /**\n   * A specialized version of `_.reduceRight` for arrays without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @param {*} [accumulator] The initial value.\n   * @param {boolean} [initAccum] Specify using the last element of `array` as\n   *  the initial value.\n   * @returns {*} Returns the accumulated value.\n   */\n  function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n    var length = array == null ? 0 : array.length;\n    if (initAccum && length) {\n      accumulator = array[--length];\n    }\n    while (length--) {\n      accumulator = iteratee(accumulator, array[length], length, array);\n    }\n    return accumulator;\n  }\n\n  /**\n   * A specialized version of `_.some` for arrays without support for iteratee\n   * shorthands.\n   *\n   * @private\n   * @param {Array} [array] The array to iterate over.\n   * @param {Function} predicate The function invoked per iteration.\n   * @returns {boolean} Returns `true` if any element passes the predicate check,\n   *  else `false`.\n   */\n  function arraySome(array, predicate) {\n    var index = -1,\n        length = array == null ? 0 : array.length;\n\n    while (++index < length) {\n      if (predicate(array[index], index, array)) {\n        return true;\n      }\n    }\n    return false;\n  }\n\n  /**\n   * Gets the size of an ASCII `string`.\n   *\n   * @private\n   * @param {string} string The string inspect.\n   * @returns {number} Returns the string size.\n   */\n  var asciiSize = baseProperty('length');\n\n  /**\n   * Converts an ASCII `string` to an array.\n   *\n   * @private\n   * @param {string} string The string to convert.\n   * @returns {Array} Returns the converted array.\n   */\n  function asciiToArray(string) {\n    return string.split('');\n  }\n\n  /**\n   * Splits an ASCII `string` into an array of its words.\n   *\n   * @private\n   * @param {string} The string to inspect.\n   * @returns {Array} Returns the words of `string`.\n   */\n  function asciiWords(string) {\n    return string.match(reAsciiWord) || [];\n  }\n\n  /**\n   * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n   * without support for iteratee shorthands, which iterates over `collection`\n   * using `eachFunc`.\n   *\n   * @private\n   * @param {Array|Object} collection The collection to inspect.\n   * @param {Function} predicate The function invoked per iteration.\n   * @param {Function} eachFunc The function to iterate over `collection`.\n   * @returns {*} Returns the found element or its key, else `undefined`.\n   */\n  function baseFindKey(collection, predicate, eachFunc) {\n    var result;\n    eachFunc(collection, function(value, key, collection) {\n      if (predicate(value, key, collection)) {\n        result = key;\n        return false;\n      }\n    });\n    return result;\n  }\n\n  /**\n   * The base implementation of `_.findIndex` and `_.findLastIndex` without\n   * support for iteratee shorthands.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {Function} predicate The function invoked per iteration.\n   * @param {number} fromIndex The index to search from.\n   * @param {boolean} [fromRight] Specify iterating from right to left.\n   * @returns {number} Returns the index of the matched value, else `-1`.\n   */\n  function baseFindIndex(array, predicate, fromIndex, fromRight) {\n    var length = array.length,\n        index = fromIndex + (fromRight ? 1 : -1);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (predicate(array[index], index, array)) {\n        return index;\n      }\n    }\n    return -1;\n  }\n\n  /**\n   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {*} value The value to search for.\n   * @param {number} fromIndex The index to search from.\n   * @returns {number} Returns the index of the matched value, else `-1`.\n   */\n  function baseIndexOf(array, value, fromIndex) {\n    return value === value\n      ? strictIndexOf(array, value, fromIndex)\n      : baseFindIndex(array, baseIsNaN, fromIndex);\n  }\n\n  /**\n   * This function is like `baseIndexOf` except that it accepts a comparator.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {*} value The value to search for.\n   * @param {number} fromIndex The index to search from.\n   * @param {Function} comparator The comparator invoked per element.\n   * @returns {number} Returns the index of the matched value, else `-1`.\n   */\n  function baseIndexOfWith(array, value, fromIndex, comparator) {\n    var index = fromIndex - 1,\n        length = array.length;\n\n    while (++index < length) {\n      if (comparator(array[index], value)) {\n        return index;\n      }\n    }\n    return -1;\n  }\n\n  /**\n   * The base implementation of `_.isNaN` without support for number objects.\n   *\n   * @private\n   * @param {*} value The value to check.\n   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n   */\n  function baseIsNaN(value) {\n    return value !== value;\n  }\n\n  /**\n   * The base implementation of `_.mean` and `_.meanBy` without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} array The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {number} Returns the mean.\n   */\n  function baseMean(array, iteratee) {\n    var length = array == null ? 0 : array.length;\n    return length ? (baseSum(array, iteratee) / length) : NAN;\n  }\n\n  /**\n   * The base implementation of `_.property` without support for deep paths.\n   *\n   * @private\n   * @param {string} key The key of the property to get.\n   * @returns {Function} Returns the new accessor function.\n   */\n  function baseProperty(key) {\n    return function(object) {\n      return object == null ? undefined : object[key];\n    };\n  }\n\n  /**\n   * The base implementation of `_.propertyOf` without support for deep paths.\n   *\n   * @private\n   * @param {Object} object The object to query.\n   * @returns {Function} Returns the new accessor function.\n   */\n  function basePropertyOf(object) {\n    return function(key) {\n      return object == null ? undefined : object[key];\n    };\n  }\n\n  /**\n   * The base implementation of `_.reduce` and `_.reduceRight`, without support\n   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n   *\n   * @private\n   * @param {Array|Object} collection The collection to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @param {*} accumulator The initial value.\n   * @param {boolean} initAccum Specify using the first or last element of\n   *  `collection` as the initial value.\n   * @param {Function} eachFunc The function to iterate over `collection`.\n   * @returns {*} Returns the accumulated value.\n   */\n  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n    eachFunc(collection, function(value, index, collection) {\n      accumulator = initAccum\n        ? (initAccum = false, value)\n        : iteratee(accumulator, value, index, collection);\n    });\n    return accumulator;\n  }\n\n  /**\n   * The base implementation of `_.sortBy` which uses `comparer` to define the\n   * sort order of `array` and replaces criteria objects with their corresponding\n   * values.\n   *\n   * @private\n   * @param {Array} array The array to sort.\n   * @param {Function} comparer The function to define sort order.\n   * @returns {Array} Returns `array`.\n   */\n  function baseSortBy(array, comparer) {\n    var length = array.length;\n\n    array.sort(comparer);\n    while (length--) {\n      array[length] = array[length].value;\n    }\n    return array;\n  }\n\n  /**\n   * The base implementation of `_.sum` and `_.sumBy` without support for\n   * iteratee shorthands.\n   *\n   * @private\n   * @param {Array} array The array to iterate over.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {number} Returns the sum.\n   */\n  function baseSum(array, iteratee) {\n    var result,\n        index = -1,\n        length = array.length;\n\n    while (++index < length) {\n      var current = iteratee(array[index]);\n      if (current !== undefined) {\n        result = result === undefined ? current : (result + current);\n      }\n    }\n    return result;\n  }\n\n  /**\n   * The base implementation of `_.times` without support for iteratee shorthands\n   * or max array length checks.\n   *\n   * @private\n   * @param {number} n The number of times to invoke `iteratee`.\n   * @param {Function} iteratee The function invoked per iteration.\n   * @returns {Array} Returns the array of results.\n   */\n  function baseTimes(n, iteratee) {\n    var index = -1,\n        result = Array(n);\n\n    while (++index < n) {\n      result[index] = iteratee(index);\n    }\n    return result;\n  }\n\n  /**\n   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n   * of key-value pairs for `object` corresponding to the property names of `props`.\n   *\n   * @private\n   * @param {Object} object The object to query.\n   * @param {Array} props The property names to get values for.\n   * @returns {Object} Returns the key-value pairs.\n   */\n  function baseToPairs(object, props) {\n    return arrayMap(props, function(key) {\n      return [key, object[key]];\n    });\n  }\n\n  /**\n   * The base implementation of `_.trim`.\n   *\n   * @private\n   * @param {string} string The string to trim.\n   * @returns {string} Returns the trimmed string.\n   */\n  function baseTrim(string) {\n    return string\n      ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n      : string;\n  }\n\n  /**\n   * The base implementation of `_.unary` without support for storing metadata.\n   *\n   * @private\n   * @param {Function} func The function to cap arguments for.\n   * @returns {Function} Returns the new capped function.\n   */\n  function baseUnary(func) {\n    return function(value) {\n      return func(value);\n    };\n  }\n\n  /**\n   * The base implementation of `_.values` and `_.valuesIn` which creates an\n   * array of `object` property values corresponding to the property names\n   * of `props`.\n   *\n   * @private\n   * @param {Object} object The object to query.\n   * @param {Array} props The property names to get values for.\n   * @returns {Object} Returns the array of property values.\n   */\n  function baseValues(object, props) {\n    return arrayMap(props, function(key) {\n      return object[key];\n    });\n  }\n\n  /**\n   * Checks if a `cache` value for `key` exists.\n   *\n   * @private\n   * @param {Object} cache The cache to query.\n   * @param {string} key The key of the entry to check.\n   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n   */\n  function cacheHas(cache, key) {\n    return cache.has(key);\n  }\n\n  /**\n   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n   * that is not found in the character symbols.\n   *\n   * @private\n   * @param {Array} strSymbols The string symbols to inspect.\n   * @param {Array} chrSymbols The character symbols to find.\n   * @returns {number} Returns the index of the first unmatched string symbol.\n   */\n  function charsStartIndex(strSymbols, chrSymbols) {\n    var index = -1,\n        length = strSymbols.length;\n\n    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n    return index;\n  }\n\n  /**\n   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n   * that is not found in the character symbols.\n   *\n   * @private\n   * @param {Array} strSymbols The string symbols to inspect.\n   * @param {Array} chrSymbols The character symbols to find.\n   * @returns {number} Returns the index of the last unmatched string symbol.\n   */\n  function charsEndIndex(strSymbols, chrSymbols) {\n    var index = strSymbols.length;\n\n    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n    return index;\n  }\n\n  /**\n   * Gets the number of `placeholder` occurrences in `array`.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {*} placeholder The placeholder to search for.\n   * @returns {number} Returns the placeholder count.\n   */\n  function countHolders(array, placeholder) {\n    var length = array.length,\n        result = 0;\n\n    while (length--) {\n      if (array[length] === placeholder) {\n        ++result;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n   * letters to basic Latin letters.\n   *\n   * @private\n   * @param {string} letter The matched letter to deburr.\n   * @returns {string} Returns the deburred letter.\n   */\n  var deburrLetter = basePropertyOf(deburredLetters);\n\n  /**\n   * Used by `_.escape` to convert characters to HTML entities.\n   *\n   * @private\n   * @param {string} chr The matched character to escape.\n   * @returns {string} Returns the escaped character.\n   */\n  var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n  /**\n   * Used by `_.template` to escape characters for inclusion in compiled string literals.\n   *\n   * @private\n   * @param {string} chr The matched character to escape.\n   * @returns {string} Returns the escaped character.\n   */\n  function escapeStringChar(chr) {\n    return '\\\\' + stringEscapes[chr];\n  }\n\n  /**\n   * Gets the value at `key` of `object`.\n   *\n   * @private\n   * @param {Object} [object] The object to query.\n   * @param {string} key The key of the property to get.\n   * @returns {*} Returns the property value.\n   */\n  function getValue(object, key) {\n    return object == null ? undefined : object[key];\n  }\n\n  /**\n   * Checks if `string` contains Unicode symbols.\n   *\n   * @private\n   * @param {string} string The string to inspect.\n   * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n   */\n  function hasUnicode(string) {\n    return reHasUnicode.test(string);\n  }\n\n  /**\n   * Checks if `string` contains a word composed of Unicode symbols.\n   *\n   * @private\n   * @param {string} string The string to inspect.\n   * @returns {boolean} Returns `true` if a word is found, else `false`.\n   */\n  function hasUnicodeWord(string) {\n    return reHasUnicodeWord.test(string);\n  }\n\n  /**\n   * Converts `iterator` to an array.\n   *\n   * @private\n   * @param {Object} iterator The iterator to convert.\n   * @returns {Array} Returns the converted array.\n   */\n  function iteratorToArray(iterator) {\n    var data,\n        result = [];\n\n    while (!(data = iterator.next()).done) {\n      result.push(data.value);\n    }\n    return result;\n  }\n\n  /**\n   * Converts `map` to its key-value pairs.\n   *\n   * @private\n   * @param {Object} map The map to convert.\n   * @returns {Array} Returns the key-value pairs.\n   */\n  function mapToArray(map) {\n    var index = -1,\n        result = Array(map.size);\n\n    map.forEach(function(value, key) {\n      result[++index] = [key, value];\n    });\n    return result;\n  }\n\n  /**\n   * Creates a unary function that invokes `func` with its argument transformed.\n   *\n   * @private\n   * @param {Function} func The function to wrap.\n   * @param {Function} transform The argument transform.\n   * @returns {Function} Returns the new function.\n   */\n  function overArg(func, transform) {\n    return function(arg) {\n      return func(transform(arg));\n    };\n  }\n\n  /**\n   * Replaces all `placeholder` elements in `array` with an internal placeholder\n   * and returns an array of their indexes.\n   *\n   * @private\n   * @param {Array} array The array to modify.\n   * @param {*} placeholder The placeholder to replace.\n   * @returns {Array} Returns the new array of placeholder indexes.\n   */\n  function replaceHolders(array, placeholder) {\n    var index = -1,\n        length = array.length,\n        resIndex = 0,\n        result = [];\n\n    while (++index < length) {\n      var value = array[index];\n      if (value === placeholder || value === PLACEHOLDER) {\n        array[index] = PLACEHOLDER;\n        result[resIndex++] = index;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * Converts `set` to an array of its values.\n   *\n   * @private\n   * @param {Object} set The set to convert.\n   * @returns {Array} Returns the values.\n   */\n  function setToArray(set) {\n    var index = -1,\n        result = Array(set.size);\n\n    set.forEach(function(value) {\n      result[++index] = value;\n    });\n    return result;\n  }\n\n  /**\n   * Converts `set` to its value-value pairs.\n   *\n   * @private\n   * @param {Object} set The set to convert.\n   * @returns {Array} Returns the value-value pairs.\n   */\n  function setToPairs(set) {\n    var index = -1,\n        result = Array(set.size);\n\n    set.forEach(function(value) {\n      result[++index] = [value, value];\n    });\n    return result;\n  }\n\n  /**\n   * A specialized version of `_.indexOf` which performs strict equality\n   * comparisons of values, i.e. `===`.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {*} value The value to search for.\n   * @param {number} fromIndex The index to search from.\n   * @returns {number} Returns the index of the matched value, else `-1`.\n   */\n  function strictIndexOf(array, value, fromIndex) {\n    var index = fromIndex - 1,\n        length = array.length;\n\n    while (++index < length) {\n      if (array[index] === value) {\n        return index;\n      }\n    }\n    return -1;\n  }\n\n  /**\n   * A specialized version of `_.lastIndexOf` which performs strict equality\n   * comparisons of values, i.e. `===`.\n   *\n   * @private\n   * @param {Array} array The array to inspect.\n   * @param {*} value The value to search for.\n   * @param {number} fromIndex The index to search from.\n   * @returns {number} Returns the index of the matched value, else `-1`.\n   */\n  function strictLastIndexOf(array, value, fromIndex) {\n    var index = fromIndex + 1;\n    while (index--) {\n      if (array[index] === value) {\n        return index;\n      }\n    }\n    return index;\n  }\n\n  /**\n   * Gets the number of symbols in `string`.\n   *\n   * @private\n   * @param {string} string The string to inspect.\n   * @returns {number} Returns the string size.\n   */\n  function stringSize(string) {\n    return hasUnicode(string)\n      ? unicodeSize(string)\n      : asciiSize(string);\n  }\n\n  /**\n   * Converts `string` to an array.\n   *\n   * @private\n   * @param {string} string The string to convert.\n   * @returns {Array} Returns the converted array.\n   */\n  function stringToArray(string) {\n    return hasUnicode(string)\n      ? unicodeToArray(string)\n      : asciiToArray(string);\n  }\n\n  /**\n   * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n   * character of `string`.\n   *\n   * @private\n   * @param {string} string The string to inspect.\n   * @returns {number} Returns the index of the last non-whitespace character.\n   */\n  function trimmedEndIndex(string) {\n    var index = string.length;\n\n    while (index-- && reWhitespace.test(string.charAt(index))) {}\n    return index;\n  }\n\n  /**\n   * Used by `_.unescape` to convert HTML entities to characters.\n   *\n   * @private\n   * @param {string} chr The matched character to unescape.\n   * @returns {string} Returns the unescaped character.\n   */\n  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n  /**\n   * Gets the size of a Unicode `string`.\n   *\n   * @private\n   * @param {string} string The string inspect.\n   * @returns {number} Returns the string size.\n   */\n  function unicodeSize(string) {\n    var result = reUnicode.lastIndex = 0;\n    while (reUnicode.test(string)) {\n      ++result;\n    }\n    return result;\n  }\n\n  /**\n   * Converts a Unicode `string` to an array.\n   *\n   * @private\n   * @param {string} string The string to convert.\n   * @returns {Array} Returns the converted array.\n   */\n  function unicodeToArray(string) {\n    return string.match(reUnicode) || [];\n  }\n\n  /**\n   * Splits a Unicode `string` into an array of its words.\n   *\n   * @private\n   * @param {string} The string to inspect.\n   * @returns {Array} Returns the words of `string`.\n   */\n  function unicodeWords(string) {\n    return string.match(reUnicodeWord) || [];\n  }\n\n  /*--------------------------------------------------------------------------*/\n\n  /**\n   * Create a new pristine `lodash` function using the `context` object.\n   *\n   * @static\n   * @memberOf _\n   * @since 1.1.0\n   * @category Util\n   * @param {Object} [context=root] The context object.\n   * @returns {Function} Returns a new `lodash` function.\n   * @example\n   *\n   * _.mixin({ 'foo': _.constant('foo') });\n   *\n   * var lodash = _.runInContext();\n   * lodash.mixin({ 'bar': lodash.constant('bar') });\n   *\n   * _.isFunction(_.foo);\n   * // => true\n   * _.isFunction(_.bar);\n   * // => false\n   *\n   * lodash.isFunction(lodash.foo);\n   * // => false\n   * lodash.isFunction(lodash.bar);\n   * // => true\n   *\n   * // Create a suped-up `defer` in Node.js.\n   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n   */\n  var runInContext = (function runInContext(context) {\n    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n    /** Built-in constructor references. */\n    var Array = context.Array,\n        Date = context.Date,\n        Error = context.Error,\n        Function = context.Function,\n        Math = context.Math,\n        Object = context.Object,\n        RegExp = context.RegExp,\n        String = context.String,\n        TypeError = context.TypeError;\n\n    /** Used for built-in method references. */\n    var arrayProto = Array.prototype,\n        funcProto = Function.prototype,\n        objectProto = Object.prototype;\n\n    /** Used to detect overreaching core-js shims. */\n    var coreJsData = context['__core-js_shared__'];\n\n    /** Used to resolve the decompiled source of functions. */\n    var funcToString = funcProto.toString;\n\n    /** Used to check objects for own properties. */\n    var hasOwnProperty = objectProto.hasOwnProperty;\n\n    /** Used to generate unique IDs. */\n    var idCounter = 0;\n\n    /** Used to detect methods masquerading as native. */\n    var maskSrcKey = (function() {\n      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n      return uid ? ('Symbol(src)_1.' + uid) : '';\n    }());\n\n    /**\n     * Used to resolve the\n     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n     * of values.\n     */\n    var nativeObjectToString = objectProto.toString;\n\n    /** Used to infer the `Object` constructor. */\n    var objectCtorString = funcToString.call(Object);\n\n    /** Used to restore the original `_` reference in `_.noConflict`. */\n    var oldDash = root._;\n\n    /** Used to detect if a method is native. */\n    var reIsNative = RegExp('^' +\n      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n      .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n    );\n\n    /** Built-in value references. */\n    var Buffer = moduleExports ? context.Buffer : undefined,\n        Symbol = context.Symbol,\n        Uint8Array = context.Uint8Array,\n        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n        getPrototype = overArg(Object.getPrototypeOf, Object),\n        objectCreate = Object.create,\n        propertyIsEnumerable = objectProto.propertyIsEnumerable,\n        splice = arrayProto.splice,\n        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n        symIterator = Symbol ? Symbol.iterator : undefined,\n        symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n    var defineProperty = (function() {\n      try {\n        var func = getNative(Object, 'defineProperty');\n        func({}, '', {});\n        return func;\n      } catch (e) {}\n    }());\n\n    /** Mocked built-ins. */\n    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n        ctxNow = Date && Date.now !== root.Date.now && Date.now,\n        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n    /* Built-in method references for those with the same name as other `lodash` methods. */\n    var nativeCeil = Math.ceil,\n        nativeFloor = Math.floor,\n        nativeGetSymbols = Object.getOwnPropertySymbols,\n        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n        nativeIsFinite = context.isFinite,\n        nativeJoin = arrayProto.join,\n        nativeKeys = overArg(Object.keys, Object),\n        nativeMax = Math.max,\n        nativeMin = Math.min,\n        nativeNow = Date.now,\n        nativeParseInt = context.parseInt,\n        nativeRandom = Math.random,\n        nativeReverse = arrayProto.reverse;\n\n    /* Built-in method references that are verified to be native. */\n    var DataView = getNative(context, 'DataView'),\n        Map = getNative(context, 'Map'),\n        Promise = getNative(context, 'Promise'),\n        Set = getNative(context, 'Set'),\n        WeakMap = getNative(context, 'WeakMap'),\n        nativeCreate = getNative(Object, 'create');\n\n    /** Used to store function metadata. */\n    var metaMap = WeakMap && new WeakMap;\n\n    /** Used to lookup unminified function names. */\n    var realNames = {};\n\n    /** Used to detect maps, sets, and weakmaps. */\n    var dataViewCtorString = toSource(DataView),\n        mapCtorString = toSource(Map),\n        promiseCtorString = toSource(Promise),\n        setCtorString = toSource(Set),\n        weakMapCtorString = toSource(WeakMap);\n\n    /** Used to convert symbols to primitives and strings. */\n    var symbolProto = Symbol ? Symbol.prototype : undefined,\n        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n        symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a `lodash` object which wraps `value` to enable implicit method\n     * chain sequences. Methods that operate on and return arrays, collections,\n     * and functions can be chained together. Methods that retrieve a single value\n     * or may return a primitive value will automatically end the chain sequence\n     * and return the unwrapped value. Otherwise, the value must be unwrapped\n     * with `_#value`.\n     *\n     * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n     * enabled using `_.chain`.\n     *\n     * The execution of chained methods is lazy, that is, it's deferred until\n     * `_#value` is implicitly or explicitly called.\n     *\n     * Lazy evaluation allows several methods to support shortcut fusion.\n     * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n     * the creation of intermediate arrays and can greatly reduce the number of\n     * iteratee executions. Sections of a chain sequence qualify for shortcut\n     * fusion if the section is applied to an array and iteratees accept only\n     * one argument. The heuristic for whether a section qualifies for shortcut\n     * fusion is subject to change.\n     *\n     * Chaining is supported in custom builds as long as the `_#value` method is\n     * directly or indirectly included in the build.\n     *\n     * In addition to lodash methods, wrappers have `Array` and `String` methods.\n     *\n     * The wrapper `Array` methods are:\n     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n     *\n     * The wrapper `String` methods are:\n     * `replace` and `split`\n     *\n     * The wrapper methods that support shortcut fusion are:\n     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n     *\n     * The chainable wrapper methods are:\n     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n     * `zipObject`, `zipObjectDeep`, and `zipWith`\n     *\n     * The wrapper methods that are **not** chainable by default are:\n     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n     * `upperFirst`, `value`, and `words`\n     *\n     * @name _\n     * @constructor\n     * @category Seq\n     * @param {*} value The value to wrap in a `lodash` instance.\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * var wrapped = _([1, 2, 3]);\n     *\n     * // Returns an unwrapped value.\n     * wrapped.reduce(_.add);\n     * // => 6\n     *\n     * // Returns a wrapped value.\n     * var squares = wrapped.map(square);\n     *\n     * _.isArray(squares);\n     * // => false\n     *\n     * _.isArray(squares.value());\n     * // => true\n     */\n    function lodash(value) {\n      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n        if (value instanceof LodashWrapper) {\n          return value;\n        }\n        if (hasOwnProperty.call(value, '__wrapped__')) {\n          return wrapperClone(value);\n        }\n      }\n      return new LodashWrapper(value);\n    }\n\n    /**\n     * The base implementation of `_.create` without support for assigning\n     * properties to the created object.\n     *\n     * @private\n     * @param {Object} proto The object to inherit from.\n     * @returns {Object} Returns the new object.\n     */\n    var baseCreate = (function() {\n      function object() {}\n      return function(proto) {\n        if (!isObject(proto)) {\n          return {};\n        }\n        if (objectCreate) {\n          return objectCreate(proto);\n        }\n        object.prototype = proto;\n        var result = new object;\n        object.prototype = undefined;\n        return result;\n      };\n    }());\n\n    /**\n     * The function whose prototype chain sequence wrappers inherit from.\n     *\n     * @private\n     */\n    function baseLodash() {\n      // No operation performed.\n    }\n\n    /**\n     * The base constructor for creating `lodash` wrapper objects.\n     *\n     * @private\n     * @param {*} value The value to wrap.\n     * @param {boolean} [chainAll] Enable explicit method chain sequences.\n     */\n    function LodashWrapper(value, chainAll) {\n      this.__wrapped__ = value;\n      this.__actions__ = [];\n      this.__chain__ = !!chainAll;\n      this.__index__ = 0;\n      this.__values__ = undefined;\n    }\n\n    /**\n     * By default, the template delimiters used by lodash are like those in\n     * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n     * following template settings to use alternative delimiters.\n     *\n     * **Security:** See\n     * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)\n     * — `_.template` is insecure and will be removed in v5.\n     *\n     * @static\n     * @memberOf _\n     * @type {Object}\n     */\n    lodash.templateSettings = {\n\n      /**\n       * Used to detect `data` property values to be HTML-escaped.\n       *\n       * @memberOf _.templateSettings\n       * @type {RegExp}\n       */\n      'escape': reEscape,\n\n      /**\n       * Used to detect code to be evaluated.\n       *\n       * @memberOf _.templateSettings\n       * @type {RegExp}\n       */\n      'evaluate': reEvaluate,\n\n      /**\n       * Used to detect `data` property values to inject.\n       *\n       * @memberOf _.templateSettings\n       * @type {RegExp}\n       */\n      'interpolate': reInterpolate,\n\n      /**\n       * Used to reference the data object in the template text.\n       *\n       * @memberOf _.templateSettings\n       * @type {string}\n       */\n      'variable': '',\n\n      /**\n       * Used to import variables into the compiled template.\n       *\n       * @memberOf _.templateSettings\n       * @type {Object}\n       */\n      'imports': {\n\n        /**\n         * A reference to the `lodash` function.\n         *\n         * @memberOf _.templateSettings.imports\n         * @type {Function}\n         */\n        '_': lodash\n      }\n    };\n\n    // Ensure wrappers are instances of `baseLodash`.\n    lodash.prototype = baseLodash.prototype;\n    lodash.prototype.constructor = lodash;\n\n    LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n    LodashWrapper.prototype.constructor = LodashWrapper;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n     *\n     * @private\n     * @constructor\n     * @param {*} value The value to wrap.\n     */\n    function LazyWrapper(value) {\n      this.__wrapped__ = value;\n      this.__actions__ = [];\n      this.__dir__ = 1;\n      this.__filtered__ = false;\n      this.__iteratees__ = [];\n      this.__takeCount__ = MAX_ARRAY_LENGTH;\n      this.__views__ = [];\n    }\n\n    /**\n     * Creates a clone of the lazy wrapper object.\n     *\n     * @private\n     * @name clone\n     * @memberOf LazyWrapper\n     * @returns {Object} Returns the cloned `LazyWrapper` object.\n     */\n    function lazyClone() {\n      var result = new LazyWrapper(this.__wrapped__);\n      result.__actions__ = copyArray(this.__actions__);\n      result.__dir__ = this.__dir__;\n      result.__filtered__ = this.__filtered__;\n      result.__iteratees__ = copyArray(this.__iteratees__);\n      result.__takeCount__ = this.__takeCount__;\n      result.__views__ = copyArray(this.__views__);\n      return result;\n    }\n\n    /**\n     * Reverses the direction of lazy iteration.\n     *\n     * @private\n     * @name reverse\n     * @memberOf LazyWrapper\n     * @returns {Object} Returns the new reversed `LazyWrapper` object.\n     */\n    function lazyReverse() {\n      if (this.__filtered__) {\n        var result = new LazyWrapper(this);\n        result.__dir__ = -1;\n        result.__filtered__ = true;\n      } else {\n        result = this.clone();\n        result.__dir__ *= -1;\n      }\n      return result;\n    }\n\n    /**\n     * Extracts the unwrapped value from its lazy wrapper.\n     *\n     * @private\n     * @name value\n     * @memberOf LazyWrapper\n     * @returns {*} Returns the unwrapped value.\n     */\n    function lazyValue() {\n      var array = this.__wrapped__.value(),\n          dir = this.__dir__,\n          isArr = isArray(array),\n          isRight = dir < 0,\n          arrLength = isArr ? array.length : 0,\n          view = getView(0, arrLength, this.__views__),\n          start = view.start,\n          end = view.end,\n          length = end - start,\n          index = isRight ? end : (start - 1),\n          iteratees = this.__iteratees__,\n          iterLength = iteratees.length,\n          resIndex = 0,\n          takeCount = nativeMin(length, this.__takeCount__);\n\n      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n        return baseWrapperValue(array, this.__actions__);\n      }\n      var result = [];\n\n      outer:\n      while (length-- && resIndex < takeCount) {\n        index += dir;\n\n        var iterIndex = -1,\n            value = array[index];\n\n        while (++iterIndex < iterLength) {\n          var data = iteratees[iterIndex],\n              iteratee = data.iteratee,\n              type = data.type,\n              computed = iteratee(value);\n\n          if (type == LAZY_MAP_FLAG) {\n            value = computed;\n          } else if (!computed) {\n            if (type == LAZY_FILTER_FLAG) {\n              continue outer;\n            } else {\n              break outer;\n            }\n          }\n        }\n        result[resIndex++] = value;\n      }\n      return result;\n    }\n\n    // Ensure `LazyWrapper` is an instance of `baseLodash`.\n    LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n    LazyWrapper.prototype.constructor = LazyWrapper;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a hash object.\n     *\n     * @private\n     * @constructor\n     * @param {Array} [entries] The key-value pairs to cache.\n     */\n    function Hash(entries) {\n      var index = -1,\n          length = entries == null ? 0 : entries.length;\n\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n\n    /**\n     * Removes all key-value entries from the hash.\n     *\n     * @private\n     * @name clear\n     * @memberOf Hash\n     */\n    function hashClear() {\n      this.__data__ = nativeCreate ? nativeCreate(null) : {};\n      this.size = 0;\n    }\n\n    /**\n     * Removes `key` and its value from the hash.\n     *\n     * @private\n     * @name delete\n     * @memberOf Hash\n     * @param {Object} hash The hash to modify.\n     * @param {string} key The key of the value to remove.\n     * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n     */\n    function hashDelete(key) {\n      var result = this.has(key) && delete this.__data__[key];\n      this.size -= result ? 1 : 0;\n      return result;\n    }\n\n    /**\n     * Gets the hash value for `key`.\n     *\n     * @private\n     * @name get\n     * @memberOf Hash\n     * @param {string} key The key of the value to get.\n     * @returns {*} Returns the entry value.\n     */\n    function hashGet(key) {\n      var data = this.__data__;\n      if (nativeCreate) {\n        var result = data[key];\n        return result === HASH_UNDEFINED ? undefined : result;\n      }\n      return hasOwnProperty.call(data, key) ? data[key] : undefined;\n    }\n\n    /**\n     * Checks if a hash value for `key` exists.\n     *\n     * @private\n     * @name has\n     * @memberOf Hash\n     * @param {string} key The key of the entry to check.\n     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n     */\n    function hashHas(key) {\n      var data = this.__data__;\n      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n    }\n\n    /**\n     * Sets the hash `key` to `value`.\n     *\n     * @private\n     * @name set\n     * @memberOf Hash\n     * @param {string} key The key of the value to set.\n     * @param {*} value The value to set.\n     * @returns {Object} Returns the hash instance.\n     */\n    function hashSet(key, value) {\n      var data = this.__data__;\n      this.size += this.has(key) ? 0 : 1;\n      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n      return this;\n    }\n\n    // Add methods to `Hash`.\n    Hash.prototype.clear = hashClear;\n    Hash.prototype['delete'] = hashDelete;\n    Hash.prototype.get = hashGet;\n    Hash.prototype.has = hashHas;\n    Hash.prototype.set = hashSet;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates an list cache object.\n     *\n     * @private\n     * @constructor\n     * @param {Array} [entries] The key-value pairs to cache.\n     */\n    function ListCache(entries) {\n      var index = -1,\n          length = entries == null ? 0 : entries.length;\n\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n\n    /**\n     * Removes all key-value entries from the list cache.\n     *\n     * @private\n     * @name clear\n     * @memberOf ListCache\n     */\n    function listCacheClear() {\n      this.__data__ = [];\n      this.size = 0;\n    }\n\n    /**\n     * Removes `key` and its value from the list cache.\n     *\n     * @private\n     * @name delete\n     * @memberOf ListCache\n     * @param {string} key The key of the value to remove.\n     * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n     */\n    function listCacheDelete(key) {\n      var data = this.__data__,\n          index = assocIndexOf(data, key);\n\n      if (index < 0) {\n        return false;\n      }\n      var lastIndex = data.length - 1;\n      if (index == lastIndex) {\n        data.pop();\n      } else {\n        splice.call(data, index, 1);\n      }\n      --this.size;\n      return true;\n    }\n\n    /**\n     * Gets the list cache value for `key`.\n     *\n     * @private\n     * @name get\n     * @memberOf ListCache\n     * @param {string} key The key of the value to get.\n     * @returns {*} Returns the entry value.\n     */\n    function listCacheGet(key) {\n      var data = this.__data__,\n          index = assocIndexOf(data, key);\n\n      return index < 0 ? undefined : data[index][1];\n    }\n\n    /**\n     * Checks if a list cache value for `key` exists.\n     *\n     * @private\n     * @name has\n     * @memberOf ListCache\n     * @param {string} key The key of the entry to check.\n     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n     */\n    function listCacheHas(key) {\n      return assocIndexOf(this.__data__, key) > -1;\n    }\n\n    /**\n     * Sets the list cache `key` to `value`.\n     *\n     * @private\n     * @name set\n     * @memberOf ListCache\n     * @param {string} key The key of the value to set.\n     * @param {*} value The value to set.\n     * @returns {Object} Returns the list cache instance.\n     */\n    function listCacheSet(key, value) {\n      var data = this.__data__,\n          index = assocIndexOf(data, key);\n\n      if (index < 0) {\n        ++this.size;\n        data.push([key, value]);\n      } else {\n        data[index][1] = value;\n      }\n      return this;\n    }\n\n    // Add methods to `ListCache`.\n    ListCache.prototype.clear = listCacheClear;\n    ListCache.prototype['delete'] = listCacheDelete;\n    ListCache.prototype.get = listCacheGet;\n    ListCache.prototype.has = listCacheHas;\n    ListCache.prototype.set = listCacheSet;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a map cache object to store key-value pairs.\n     *\n     * @private\n     * @constructor\n     * @param {Array} [entries] The key-value pairs to cache.\n     */\n    function MapCache(entries) {\n      var index = -1,\n          length = entries == null ? 0 : entries.length;\n\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n\n    /**\n     * Removes all key-value entries from the map.\n     *\n     * @private\n     * @name clear\n     * @memberOf MapCache\n     */\n    function mapCacheClear() {\n      this.size = 0;\n      this.__data__ = {\n        'hash': new Hash,\n        'map': new (Map || ListCache),\n        'string': new Hash\n      };\n    }\n\n    /**\n     * Removes `key` and its value from the map.\n     *\n     * @private\n     * @name delete\n     * @memberOf MapCache\n     * @param {string} key The key of the value to remove.\n     * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n     */\n    function mapCacheDelete(key) {\n      var result = getMapData(this, key)['delete'](key);\n      this.size -= result ? 1 : 0;\n      return result;\n    }\n\n    /**\n     * Gets the map value for `key`.\n     *\n     * @private\n     * @name get\n     * @memberOf MapCache\n     * @param {string} key The key of the value to get.\n     * @returns {*} Returns the entry value.\n     */\n    function mapCacheGet(key) {\n      return getMapData(this, key).get(key);\n    }\n\n    /**\n     * Checks if a map value for `key` exists.\n     *\n     * @private\n     * @name has\n     * @memberOf MapCache\n     * @param {string} key The key of the entry to check.\n     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n     */\n    function mapCacheHas(key) {\n      return getMapData(this, key).has(key);\n    }\n\n    /**\n     * Sets the map `key` to `value`.\n     *\n     * @private\n     * @name set\n     * @memberOf MapCache\n     * @param {string} key The key of the value to set.\n     * @param {*} value The value to set.\n     * @returns {Object} Returns the map cache instance.\n     */\n    function mapCacheSet(key, value) {\n      var data = getMapData(this, key),\n          size = data.size;\n\n      data.set(key, value);\n      this.size += data.size == size ? 0 : 1;\n      return this;\n    }\n\n    // Add methods to `MapCache`.\n    MapCache.prototype.clear = mapCacheClear;\n    MapCache.prototype['delete'] = mapCacheDelete;\n    MapCache.prototype.get = mapCacheGet;\n    MapCache.prototype.has = mapCacheHas;\n    MapCache.prototype.set = mapCacheSet;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     *\n     * Creates an array cache object to store unique values.\n     *\n     * @private\n     * @constructor\n     * @param {Array} [values] The values to cache.\n     */\n    function SetCache(values) {\n      var index = -1,\n          length = values == null ? 0 : values.length;\n\n      this.__data__ = new MapCache;\n      while (++index < length) {\n        this.add(values[index]);\n      }\n    }\n\n    /**\n     * Adds `value` to the array cache.\n     *\n     * @private\n     * @name add\n     * @memberOf SetCache\n     * @alias push\n     * @param {*} value The value to cache.\n     * @returns {Object} Returns the cache instance.\n     */\n    function setCacheAdd(value) {\n      this.__data__.set(value, HASH_UNDEFINED);\n      return this;\n    }\n\n    /**\n     * Checks if `value` is in the array cache.\n     *\n     * @private\n     * @name has\n     * @memberOf SetCache\n     * @param {*} value The value to search for.\n     * @returns {boolean} Returns `true` if `value` is found, else `false`.\n     */\n    function setCacheHas(value) {\n      return this.__data__.has(value);\n    }\n\n    // Add methods to `SetCache`.\n    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n    SetCache.prototype.has = setCacheHas;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a stack cache object to store key-value pairs.\n     *\n     * @private\n     * @constructor\n     * @param {Array} [entries] The key-value pairs to cache.\n     */\n    function Stack(entries) {\n      var data = this.__data__ = new ListCache(entries);\n      this.size = data.size;\n    }\n\n    /**\n     * Removes all key-value entries from the stack.\n     *\n     * @private\n     * @name clear\n     * @memberOf Stack\n     */\n    function stackClear() {\n      this.__data__ = new ListCache;\n      this.size = 0;\n    }\n\n    /**\n     * Removes `key` and its value from the stack.\n     *\n     * @private\n     * @name delete\n     * @memberOf Stack\n     * @param {string} key The key of the value to remove.\n     * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n     */\n    function stackDelete(key) {\n      var data = this.__data__,\n          result = data['delete'](key);\n\n      this.size = data.size;\n      return result;\n    }\n\n    /**\n     * Gets the stack value for `key`.\n     *\n     * @private\n     * @name get\n     * @memberOf Stack\n     * @param {string} key The key of the value to get.\n     * @returns {*} Returns the entry value.\n     */\n    function stackGet(key) {\n      return this.__data__.get(key);\n    }\n\n    /**\n     * Checks if a stack value for `key` exists.\n     *\n     * @private\n     * @name has\n     * @memberOf Stack\n     * @param {string} key The key of the entry to check.\n     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n     */\n    function stackHas(key) {\n      return this.__data__.has(key);\n    }\n\n    /**\n     * Sets the stack `key` to `value`.\n     *\n     * @private\n     * @name set\n     * @memberOf Stack\n     * @param {string} key The key of the value to set.\n     * @param {*} value The value to set.\n     * @returns {Object} Returns the stack cache instance.\n     */\n    function stackSet(key, value) {\n      var data = this.__data__;\n      if (data instanceof ListCache) {\n        var pairs = data.__data__;\n        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n          pairs.push([key, value]);\n          this.size = ++data.size;\n          return this;\n        }\n        data = this.__data__ = new MapCache(pairs);\n      }\n      data.set(key, value);\n      this.size = data.size;\n      return this;\n    }\n\n    // Add methods to `Stack`.\n    Stack.prototype.clear = stackClear;\n    Stack.prototype['delete'] = stackDelete;\n    Stack.prototype.get = stackGet;\n    Stack.prototype.has = stackHas;\n    Stack.prototype.set = stackSet;\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates an array of the enumerable property names of the array-like `value`.\n     *\n     * @private\n     * @param {*} value The value to query.\n     * @param {boolean} inherited Specify returning inherited property names.\n     * @returns {Array} Returns the array of property names.\n     */\n    function arrayLikeKeys(value, inherited) {\n      var isArr = isArray(value),\n          isArg = !isArr && isArguments(value),\n          isBuff = !isArr && !isArg && isBuffer(value),\n          isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n          skipIndexes = isArr || isArg || isBuff || isType,\n          result = skipIndexes ? baseTimes(value.length, String) : [],\n          length = result.length;\n\n      for (var key in value) {\n        if ((inherited || hasOwnProperty.call(value, key)) &&\n            !(skipIndexes && (\n               // Safari 9 has enumerable `arguments.length` in strict mode.\n               key == 'length' ||\n               // Node.js 0.10 has enumerable non-index properties on buffers.\n               (isBuff && (key == 'offset' || key == 'parent')) ||\n               // PhantomJS 2 has enumerable non-index properties on typed arrays.\n               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n               // Skip index properties.\n               isIndex(key, length)\n            ))) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * A specialized version of `_.sample` for arrays.\n     *\n     * @private\n     * @param {Array} array The array to sample.\n     * @returns {*} Returns the random element.\n     */\n    function arraySample(array) {\n      var length = array.length;\n      return length ? array[baseRandom(0, length - 1)] : undefined;\n    }\n\n    /**\n     * A specialized version of `_.sampleSize` for arrays.\n     *\n     * @private\n     * @param {Array} array The array to sample.\n     * @param {number} n The number of elements to sample.\n     * @returns {Array} Returns the random elements.\n     */\n    function arraySampleSize(array, n) {\n      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n    }\n\n    /**\n     * A specialized version of `_.shuffle` for arrays.\n     *\n     * @private\n     * @param {Array} array The array to shuffle.\n     * @returns {Array} Returns the new shuffled array.\n     */\n    function arrayShuffle(array) {\n      return shuffleSelf(copyArray(array));\n    }\n\n    /**\n     * This function is like `assignValue` except that it doesn't assign\n     * `undefined` values.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {string} key The key of the property to assign.\n     * @param {*} value The value to assign.\n     */\n    function assignMergeValue(object, key, value) {\n      if ((value !== undefined && !eq(object[key], value)) ||\n          (value === undefined && !(key in object))) {\n        baseAssignValue(object, key, value);\n      }\n    }\n\n    /**\n     * Assigns `value` to `key` of `object` if the existing value is not equivalent\n     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {string} key The key of the property to assign.\n     * @param {*} value The value to assign.\n     */\n    function assignValue(object, key, value) {\n      var objValue = object[key];\n      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n          (value === undefined && !(key in object))) {\n        baseAssignValue(object, key, value);\n      }\n    }\n\n    /**\n     * Gets the index at which the `key` is found in `array` of key-value pairs.\n     *\n     * @private\n     * @param {Array} array The array to inspect.\n     * @param {*} key The key to search for.\n     * @returns {number} Returns the index of the matched value, else `-1`.\n     */\n    function assocIndexOf(array, key) {\n      var length = array.length;\n      while (length--) {\n        if (eq(array[length][0], key)) {\n          return length;\n        }\n      }\n      return -1;\n    }\n\n    /**\n     * Aggregates elements of `collection` on `accumulator` with keys transformed\n     * by `iteratee` and values set by `setter`.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} setter The function to set `accumulator` values.\n     * @param {Function} iteratee The iteratee to transform keys.\n     * @param {Object} accumulator The initial aggregated object.\n     * @returns {Function} Returns `accumulator`.\n     */\n    function baseAggregator(collection, setter, iteratee, accumulator) {\n      baseEach(collection, function(value, key, collection) {\n        setter(accumulator, value, iteratee(value), collection);\n      });\n      return accumulator;\n    }\n\n    /**\n     * The base implementation of `_.assign` without support for multiple sources\n     * or `customizer` functions.\n     *\n     * @private\n     * @param {Object} object The destination object.\n     * @param {Object} source The source object.\n     * @returns {Object} Returns `object`.\n     */\n    function baseAssign(object, source) {\n      return object && copyObject(source, keys(source), object);\n    }\n\n    /**\n     * The base implementation of `_.assignIn` without support for multiple sources\n     * or `customizer` functions.\n     *\n     * @private\n     * @param {Object} object The destination object.\n     * @param {Object} source The source object.\n     * @returns {Object} Returns `object`.\n     */\n    function baseAssignIn(object, source) {\n      return object && copyObject(source, keysIn(source), object);\n    }\n\n    /**\n     * The base implementation of `assignValue` and `assignMergeValue` without\n     * value checks.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {string} key The key of the property to assign.\n     * @param {*} value The value to assign.\n     */\n    function baseAssignValue(object, key, value) {\n      if (key == '__proto__' && defineProperty) {\n        defineProperty(object, key, {\n          'configurable': true,\n          'enumerable': true,\n          'value': value,\n          'writable': true\n        });\n      } else {\n        object[key] = value;\n      }\n    }\n\n    /**\n     * The base implementation of `_.at` without support for individual paths.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {string[]} paths The property paths to pick.\n     * @returns {Array} Returns the picked elements.\n     */\n    function baseAt(object, paths) {\n      var index = -1,\n          length = paths.length,\n          result = Array(length),\n          skip = object == null;\n\n      while (++index < length) {\n        result[index] = skip ? undefined : get(object, paths[index]);\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.clamp` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {number} number The number to clamp.\n     * @param {number} [lower] The lower bound.\n     * @param {number} upper The upper bound.\n     * @returns {number} Returns the clamped number.\n     */\n    function baseClamp(number, lower, upper) {\n      if (number === number) {\n        if (upper !== undefined) {\n          number = number <= upper ? number : upper;\n        }\n        if (lower !== undefined) {\n          number = number >= lower ? number : lower;\n        }\n      }\n      return number;\n    }\n\n    /**\n     * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n     * traversed objects.\n     *\n     * @private\n     * @param {*} value The value to clone.\n     * @param {boolean} bitmask The bitmask flags.\n     *  1 - Deep clone\n     *  2 - Flatten inherited properties\n     *  4 - Clone symbols\n     * @param {Function} [customizer] The function to customize cloning.\n     * @param {string} [key] The key of `value`.\n     * @param {Object} [object] The parent object of `value`.\n     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n     * @returns {*} Returns the cloned value.\n     */\n    function baseClone(value, bitmask, customizer, key, object, stack) {\n      var result,\n          isDeep = bitmask & CLONE_DEEP_FLAG,\n          isFlat = bitmask & CLONE_FLAT_FLAG,\n          isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n      if (customizer) {\n        result = object ? customizer(value, key, object, stack) : customizer(value);\n      }\n      if (result !== undefined) {\n        return result;\n      }\n      if (!isObject(value)) {\n        return value;\n      }\n      var isArr = isArray(value);\n      if (isArr) {\n        result = initCloneArray(value);\n        if (!isDeep) {\n          return copyArray(value, result);\n        }\n      } else {\n        var tag = getTag(value),\n            isFunc = tag == funcTag || tag == genTag;\n\n        if (isBuffer(value)) {\n          return cloneBuffer(value, isDeep);\n        }\n        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n          result = (isFlat || isFunc) ? {} : initCloneObject(value);\n          if (!isDeep) {\n            return isFlat\n              ? copySymbolsIn(value, baseAssignIn(result, value))\n              : copySymbols(value, baseAssign(result, value));\n          }\n        } else {\n          if (!cloneableTags[tag]) {\n            return object ? value : {};\n          }\n          result = initCloneByTag(value, tag, isDeep);\n        }\n      }\n      // Check for circular references and return its corresponding clone.\n      stack || (stack = new Stack);\n      var stacked = stack.get(value);\n      if (stacked) {\n        return stacked;\n      }\n      stack.set(value, result);\n\n      if (isSet(value)) {\n        value.forEach(function(subValue) {\n          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n        });\n      } else if (isMap(value)) {\n        value.forEach(function(subValue, key) {\n          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n        });\n      }\n\n      var keysFunc = isFull\n        ? (isFlat ? getAllKeysIn : getAllKeys)\n        : (isFlat ? keysIn : keys);\n\n      var props = isArr ? undefined : keysFunc(value);\n      arrayEach(props || value, function(subValue, key) {\n        if (props) {\n          key = subValue;\n          subValue = value[key];\n        }\n        // Recursively populate clone (susceptible to call stack limits).\n        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n      });\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.conforms` which doesn't clone `source`.\n     *\n     * @private\n     * @param {Object} source The object of property predicates to conform to.\n     * @returns {Function} Returns the new spec function.\n     */\n    function baseConforms(source) {\n      var props = keys(source);\n      return function(object) {\n        return baseConformsTo(object, source, props);\n      };\n    }\n\n    /**\n     * The base implementation of `_.conformsTo` which accepts `props` to check.\n     *\n     * @private\n     * @param {Object} object The object to inspect.\n     * @param {Object} source The object of property predicates to conform to.\n     * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n     */\n    function baseConformsTo(object, source, props) {\n      var length = props.length;\n      if (object == null) {\n        return !length;\n      }\n      object = Object(object);\n      while (length--) {\n        var key = props[length],\n            predicate = source[key],\n            value = object[key];\n\n        if ((value === undefined && !(key in object)) || !predicate(value)) {\n          return false;\n        }\n      }\n      return true;\n    }\n\n    /**\n     * The base implementation of `_.delay` and `_.defer` which accepts `args`\n     * to provide to `func`.\n     *\n     * @private\n     * @param {Function} func The function to delay.\n     * @param {number} wait The number of milliseconds to delay invocation.\n     * @param {Array} args The arguments to provide to `func`.\n     * @returns {number|Object} Returns the timer id or timeout object.\n     */\n    function baseDelay(func, wait, args) {\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      return setTimeout(function() { func.apply(undefined, args); }, wait);\n    }\n\n    /**\n     * The base implementation of methods like `_.difference` without support\n     * for excluding multiple arrays or iteratee shorthands.\n     *\n     * @private\n     * @param {Array} array The array to inspect.\n     * @param {Array} values The values to exclude.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of filtered values.\n     */\n    function baseDifference(array, values, iteratee, comparator) {\n      var index = -1,\n          includes = arrayIncludes,\n          isCommon = true,\n          length = array.length,\n          result = [],\n          valuesLength = values.length;\n\n      if (!length) {\n        return result;\n      }\n      if (iteratee) {\n        values = arrayMap(values, baseUnary(iteratee));\n      }\n      if (comparator) {\n        includes = arrayIncludesWith;\n        isCommon = false;\n      }\n      else if (values.length >= LARGE_ARRAY_SIZE) {\n        includes = cacheHas;\n        isCommon = false;\n        values = new SetCache(values);\n      }\n      outer:\n      while (++index < length) {\n        var value = array[index],\n            computed = iteratee == null ? value : iteratee(value);\n\n        value = (comparator || value !== 0) ? value : 0;\n        if (isCommon && computed === computed) {\n          var valuesIndex = valuesLength;\n          while (valuesIndex--) {\n            if (values[valuesIndex] === computed) {\n              continue outer;\n            }\n          }\n          result.push(value);\n        }\n        else if (!includes(values, computed, comparator)) {\n          result.push(value);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.forEach` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @returns {Array|Object} Returns `collection`.\n     */\n    var baseEach = createBaseEach(baseForOwn);\n\n    /**\n     * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @returns {Array|Object} Returns `collection`.\n     */\n    var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n    /**\n     * The base implementation of `_.every` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} predicate The function invoked per iteration.\n     * @returns {boolean} Returns `true` if all elements pass the predicate check,\n     *  else `false`\n     */\n    function baseEvery(collection, predicate) {\n      var result = true;\n      baseEach(collection, function(value, index, collection) {\n        result = !!predicate(value, index, collection);\n        return result;\n      });\n      return result;\n    }\n\n    /**\n     * The base implementation of methods like `_.max` and `_.min` which accepts a\n     * `comparator` to determine the extremum value.\n     *\n     * @private\n     * @param {Array} array The array to iterate over.\n     * @param {Function} iteratee The iteratee invoked per iteration.\n     * @param {Function} comparator The comparator used to compare values.\n     * @returns {*} Returns the extremum value.\n     */\n    function baseExtremum(array, iteratee, comparator) {\n      var index = -1,\n          length = array.length;\n\n      while (++index < length) {\n        var value = array[index],\n            current = iteratee(value);\n\n        if (current != null && (computed === undefined\n              ? (current === current && !isSymbol(current))\n              : comparator(current, computed)\n            )) {\n          var computed = current,\n              result = value;\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.fill` without an iteratee call guard.\n     *\n     * @private\n     * @param {Array} array The array to fill.\n     * @param {*} value The value to fill `array` with.\n     * @param {number} [start=0] The start position.\n     * @param {number} [end=array.length] The end position.\n     * @returns {Array} Returns `array`.\n     */\n    function baseFill(array, value, start, end) {\n      var length = array.length;\n\n      start = toInteger(start);\n      if (start < 0) {\n        start = -start > length ? 0 : (length + start);\n      }\n      end = (end === undefined || end > length) ? length : toInteger(end);\n      if (end < 0) {\n        end += length;\n      }\n      end = start > end ? 0 : toLength(end);\n      while (start < end) {\n        array[start++] = value;\n      }\n      return array;\n    }\n\n    /**\n     * The base implementation of `_.filter` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} predicate The function invoked per iteration.\n     * @returns {Array} Returns the new filtered array.\n     */\n    function baseFilter(collection, predicate) {\n      var result = [];\n      baseEach(collection, function(value, index, collection) {\n        if (predicate(value, index, collection)) {\n          result.push(value);\n        }\n      });\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.flatten` with support for restricting flattening.\n     *\n     * @private\n     * @param {Array} array The array to flatten.\n     * @param {number} depth The maximum recursion depth.\n     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n     * @param {Array} [result=[]] The initial result value.\n     * @returns {Array} Returns the new flattened array.\n     */\n    function baseFlatten(array, depth, predicate, isStrict, result) {\n      var index = -1,\n          length = array.length;\n\n      predicate || (predicate = isFlattenable);\n      result || (result = []);\n\n      while (++index < length) {\n        var value = array[index];\n        if (depth > 0 && predicate(value)) {\n          if (depth > 1) {\n            // Recursively flatten arrays (susceptible to call stack limits).\n            baseFlatten(value, depth - 1, predicate, isStrict, result);\n          } else {\n            arrayPush(result, value);\n          }\n        } else if (!isStrict) {\n          result[result.length] = value;\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `baseForOwn` which iterates over `object`\n     * properties returned by `keysFunc` and invokes `iteratee` for each property.\n     * Iteratee functions may exit iteration early by explicitly returning `false`.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @param {Function} keysFunc The function to get the keys of `object`.\n     * @returns {Object} Returns `object`.\n     */\n    var baseFor = createBaseFor();\n\n    /**\n     * This function is like `baseFor` except that it iterates over properties\n     * in the opposite order.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @param {Function} keysFunc The function to get the keys of `object`.\n     * @returns {Object} Returns `object`.\n     */\n    var baseForRight = createBaseFor(true);\n\n    /**\n     * The base implementation of `_.forOwn` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     */\n    function baseForOwn(object, iteratee) {\n      return object && baseFor(object, iteratee, keys);\n    }\n\n    /**\n     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     */\n    function baseForOwnRight(object, iteratee) {\n      return object && baseForRight(object, iteratee, keys);\n    }\n\n    /**\n     * The base implementation of `_.functions` which creates an array of\n     * `object` function property names filtered from `props`.\n     *\n     * @private\n     * @param {Object} object The object to inspect.\n     * @param {Array} props The property names to filter.\n     * @returns {Array} Returns the function names.\n     */\n    function baseFunctions(object, props) {\n      return arrayFilter(props, function(key) {\n        return isFunction(object[key]);\n      });\n    }\n\n    /**\n     * The base implementation of `_.get` without support for default values.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path of the property to get.\n     * @returns {*} Returns the resolved value.\n     */\n    function baseGet(object, path) {\n      path = castPath(path, object);\n\n      var index = 0,\n          length = path.length;\n\n      while (object != null && index < length) {\n        object = object[toKey(path[index++])];\n      }\n      return (index && index == length) ? object : undefined;\n    }\n\n    /**\n     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n     * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n     * symbols of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {Function} keysFunc The function to get the keys of `object`.\n     * @param {Function} symbolsFunc The function to get the symbols of `object`.\n     * @returns {Array} Returns the array of property names and symbols.\n     */\n    function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n      var result = keysFunc(object);\n      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n    }\n\n    /**\n     * The base implementation of `getTag` without fallbacks for buggy environments.\n     *\n     * @private\n     * @param {*} value The value to query.\n     * @returns {string} Returns the `toStringTag`.\n     */\n    function baseGetTag(value) {\n      if (value == null) {\n        return value === undefined ? undefinedTag : nullTag;\n      }\n      return (symToStringTag && symToStringTag in Object(value))\n        ? getRawTag(value)\n        : objectToString(value);\n    }\n\n    /**\n     * The base implementation of `_.gt` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is greater than `other`,\n     *  else `false`.\n     */\n    function baseGt(value, other) {\n      return value > other;\n    }\n\n    /**\n     * The base implementation of `_.has` without support for deep paths.\n     *\n     * @private\n     * @param {Object} [object] The object to query.\n     * @param {Array|string} key The key to check.\n     * @returns {boolean} Returns `true` if `key` exists, else `false`.\n     */\n    function baseHas(object, key) {\n      return object != null && hasOwnProperty.call(object, key);\n    }\n\n    /**\n     * The base implementation of `_.hasIn` without support for deep paths.\n     *\n     * @private\n     * @param {Object} [object] The object to query.\n     * @param {Array|string} key The key to check.\n     * @returns {boolean} Returns `true` if `key` exists, else `false`.\n     */\n    function baseHasIn(object, key) {\n      return object != null && key in Object(object);\n    }\n\n    /**\n     * The base implementation of `_.inRange` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {number} number The number to check.\n     * @param {number} start The start of the range.\n     * @param {number} end The end of the range.\n     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n     */\n    function baseInRange(number, start, end) {\n      return number >= nativeMin(start, end) && number < nativeMax(start, end);\n    }\n\n    /**\n     * The base implementation of methods like `_.intersection`, without support\n     * for iteratee shorthands, that accepts an array of arrays to inspect.\n     *\n     * @private\n     * @param {Array} arrays The arrays to inspect.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of shared values.\n     */\n    function baseIntersection(arrays, iteratee, comparator) {\n      var includes = comparator ? arrayIncludesWith : arrayIncludes,\n          length = arrays[0].length,\n          othLength = arrays.length,\n          othIndex = othLength,\n          caches = Array(othLength),\n          maxLength = Infinity,\n          result = [];\n\n      while (othIndex--) {\n        var array = arrays[othIndex];\n        if (othIndex && iteratee) {\n          array = arrayMap(array, baseUnary(iteratee));\n        }\n        maxLength = nativeMin(array.length, maxLength);\n        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n          ? new SetCache(othIndex && array)\n          : undefined;\n      }\n      array = arrays[0];\n\n      var index = -1,\n          seen = caches[0];\n\n      outer:\n      while (++index < length && result.length < maxLength) {\n        var value = array[index],\n            computed = iteratee ? iteratee(value) : value;\n\n        value = (comparator || value !== 0) ? value : 0;\n        if (!(seen\n              ? cacheHas(seen, computed)\n              : includes(result, computed, comparator)\n            )) {\n          othIndex = othLength;\n          while (--othIndex) {\n            var cache = caches[othIndex];\n            if (!(cache\n                  ? cacheHas(cache, computed)\n                  : includes(arrays[othIndex], computed, comparator))\n                ) {\n              continue outer;\n            }\n          }\n          if (seen) {\n            seen.push(computed);\n          }\n          result.push(value);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.invert` and `_.invertBy` which inverts\n     * `object` with values transformed by `iteratee` and set by `setter`.\n     *\n     * @private\n     * @param {Object} object The object to iterate over.\n     * @param {Function} setter The function to set `accumulator` values.\n     * @param {Function} iteratee The iteratee to transform values.\n     * @param {Object} accumulator The initial inverted object.\n     * @returns {Function} Returns `accumulator`.\n     */\n    function baseInverter(object, setter, iteratee, accumulator) {\n      baseForOwn(object, function(value, key, object) {\n        setter(accumulator, iteratee(value), key, object);\n      });\n      return accumulator;\n    }\n\n    /**\n     * The base implementation of `_.invoke` without support for individual\n     * method arguments.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path of the method to invoke.\n     * @param {Array} args The arguments to invoke the method with.\n     * @returns {*} Returns the result of the invoked method.\n     */\n    function baseInvoke(object, path, args) {\n      path = castPath(path, object);\n      object = parent(object, path);\n      var func = object == null ? object : object[toKey(last(path))];\n      return func == null ? undefined : apply(func, object, args);\n    }\n\n    /**\n     * The base implementation of `_.isArguments`.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n     */\n    function baseIsArguments(value) {\n      return isObjectLike(value) && baseGetTag(value) == argsTag;\n    }\n\n    /**\n     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n     */\n    function baseIsArrayBuffer(value) {\n      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n    }\n\n    /**\n     * The base implementation of `_.isDate` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n     */\n    function baseIsDate(value) {\n      return isObjectLike(value) && baseGetTag(value) == dateTag;\n    }\n\n    /**\n     * The base implementation of `_.isEqual` which supports partial comparisons\n     * and tracks traversed objects.\n     *\n     * @private\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @param {boolean} bitmask The bitmask flags.\n     *  1 - Unordered comparison\n     *  2 - Partial comparison\n     * @param {Function} [customizer] The function to customize comparisons.\n     * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n     */\n    function baseIsEqual(value, other, bitmask, customizer, stack) {\n      if (value === other) {\n        return true;\n      }\n      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n        return value !== value && other !== other;\n      }\n      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n    }\n\n    /**\n     * A specialized version of `baseIsEqual` for arrays and objects which performs\n     * deep comparisons and tracks traversed objects enabling objects with circular\n     * references to be compared.\n     *\n     * @private\n     * @param {Object} object The object to compare.\n     * @param {Object} other The other object to compare.\n     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n     * @param {Function} customizer The function to customize comparisons.\n     * @param {Function} equalFunc The function to determine equivalents of values.\n     * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n     */\n    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n      var objIsArr = isArray(object),\n          othIsArr = isArray(other),\n          objTag = objIsArr ? arrayTag : getTag(object),\n          othTag = othIsArr ? arrayTag : getTag(other);\n\n      objTag = objTag == argsTag ? objectTag : objTag;\n      othTag = othTag == argsTag ? objectTag : othTag;\n\n      var objIsObj = objTag == objectTag,\n          othIsObj = othTag == objectTag,\n          isSameTag = objTag == othTag;\n\n      if (isSameTag && isBuffer(object)) {\n        if (!isBuffer(other)) {\n          return false;\n        }\n        objIsArr = true;\n        objIsObj = false;\n      }\n      if (isSameTag && !objIsObj) {\n        stack || (stack = new Stack);\n        return (objIsArr || isTypedArray(object))\n          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n      }\n      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n        if (objIsWrapped || othIsWrapped) {\n          var objUnwrapped = objIsWrapped ? object.value() : object,\n              othUnwrapped = othIsWrapped ? other.value() : other;\n\n          stack || (stack = new Stack);\n          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n        }\n      }\n      if (!isSameTag) {\n        return false;\n      }\n      stack || (stack = new Stack);\n      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n    }\n\n    /**\n     * The base implementation of `_.isMap` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n     */\n    function baseIsMap(value) {\n      return isObjectLike(value) && getTag(value) == mapTag;\n    }\n\n    /**\n     * The base implementation of `_.isMatch` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Object} object The object to inspect.\n     * @param {Object} source The object of property values to match.\n     * @param {Array} matchData The property names, values, and compare flags to match.\n     * @param {Function} [customizer] The function to customize comparisons.\n     * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n     */\n    function baseIsMatch(object, source, matchData, customizer) {\n      var index = matchData.length,\n          length = index,\n          noCustomizer = !customizer;\n\n      if (object == null) {\n        return !length;\n      }\n      object = Object(object);\n      while (index--) {\n        var data = matchData[index];\n        if ((noCustomizer && data[2])\n              ? data[1] !== object[data[0]]\n              : !(data[0] in object)\n            ) {\n          return false;\n        }\n      }\n      while (++index < length) {\n        data = matchData[index];\n        var key = data[0],\n            objValue = object[key],\n            srcValue = data[1];\n\n        if (noCustomizer && data[2]) {\n          if (objValue === undefined && !(key in object)) {\n            return false;\n          }\n        } else {\n          var stack = new Stack;\n          if (customizer) {\n            var result = customizer(objValue, srcValue, key, object, source, stack);\n          }\n          if (!(result === undefined\n                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n                : result\n              )) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n\n    /**\n     * The base implementation of `_.isNative` without bad shim checks.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a native function,\n     *  else `false`.\n     */\n    function baseIsNative(value) {\n      if (!isObject(value) || isMasked(value)) {\n        return false;\n      }\n      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n      return pattern.test(toSource(value));\n    }\n\n    /**\n     * The base implementation of `_.isRegExp` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n     */\n    function baseIsRegExp(value) {\n      return isObjectLike(value) && baseGetTag(value) == regexpTag;\n    }\n\n    /**\n     * The base implementation of `_.isSet` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n     */\n    function baseIsSet(value) {\n      return isObjectLike(value) && getTag(value) == setTag;\n    }\n\n    /**\n     * The base implementation of `_.isTypedArray` without Node.js optimizations.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n     */\n    function baseIsTypedArray(value) {\n      return isObjectLike(value) &&\n        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n    }\n\n    /**\n     * The base implementation of `_.iteratee`.\n     *\n     * @private\n     * @param {*} [value=_.identity] The value to convert to an iteratee.\n     * @returns {Function} Returns the iteratee.\n     */\n    function baseIteratee(value) {\n      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n      if (typeof value == 'function') {\n        return value;\n      }\n      if (value == null) {\n        return identity;\n      }\n      if (typeof value == 'object') {\n        return isArray(value)\n          ? baseMatchesProperty(value[0], value[1])\n          : baseMatches(value);\n      }\n      return property(value);\n    }\n\n    /**\n     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names.\n     */\n    function baseKeys(object) {\n      if (!isPrototype(object)) {\n        return nativeKeys(object);\n      }\n      var result = [];\n      for (var key in Object(object)) {\n        if (hasOwnProperty.call(object, key) && key != 'constructor') {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names.\n     */\n    function baseKeysIn(object) {\n      if (!isObject(object)) {\n        return nativeKeysIn(object);\n      }\n      var isProto = isPrototype(object),\n          result = [];\n\n      for (var key in object) {\n        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.lt` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is less than `other`,\n     *  else `false`.\n     */\n    function baseLt(value, other) {\n      return value < other;\n    }\n\n    /**\n     * The base implementation of `_.map` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} iteratee The function invoked per iteration.\n     * @returns {Array} Returns the new mapped array.\n     */\n    function baseMap(collection, iteratee) {\n      var index = -1,\n          result = isArrayLike(collection) ? Array(collection.length) : [];\n\n      baseEach(collection, function(value, key, collection) {\n        result[++index] = iteratee(value, key, collection);\n      });\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.matches` which doesn't clone `source`.\n     *\n     * @private\n     * @param {Object} source The object of property values to match.\n     * @returns {Function} Returns the new spec function.\n     */\n    function baseMatches(source) {\n      var matchData = getMatchData(source);\n      if (matchData.length == 1 && matchData[0][2]) {\n        return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n      }\n      return function(object) {\n        return object === source || baseIsMatch(object, source, matchData);\n      };\n    }\n\n    /**\n     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n     *\n     * @private\n     * @param {string} path The path of the property to get.\n     * @param {*} srcValue The value to match.\n     * @returns {Function} Returns the new spec function.\n     */\n    function baseMatchesProperty(path, srcValue) {\n      if (isKey(path) && isStrictComparable(srcValue)) {\n        return matchesStrictComparable(toKey(path), srcValue);\n      }\n      return function(object) {\n        var objValue = get(object, path);\n        return (objValue === undefined && objValue === srcValue)\n          ? hasIn(object, path)\n          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n      };\n    }\n\n    /**\n     * The base implementation of `_.merge` without support for multiple sources.\n     *\n     * @private\n     * @param {Object} object The destination object.\n     * @param {Object} source The source object.\n     * @param {number} srcIndex The index of `source`.\n     * @param {Function} [customizer] The function to customize merged values.\n     * @param {Object} [stack] Tracks traversed source values and their merged\n     *  counterparts.\n     */\n    function baseMerge(object, source, srcIndex, customizer, stack) {\n      if (object === source) {\n        return;\n      }\n      baseFor(source, function(srcValue, key) {\n        stack || (stack = new Stack);\n        if (isObject(srcValue)) {\n          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n        }\n        else {\n          var newValue = customizer\n            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n            : undefined;\n\n          if (newValue === undefined) {\n            newValue = srcValue;\n          }\n          assignMergeValue(object, key, newValue);\n        }\n      }, keysIn);\n    }\n\n    /**\n     * A specialized version of `baseMerge` for arrays and objects which performs\n     * deep merges and tracks traversed objects enabling objects with circular\n     * references to be merged.\n     *\n     * @private\n     * @param {Object} object The destination object.\n     * @param {Object} source The source object.\n     * @param {string} key The key of the value to merge.\n     * @param {number} srcIndex The index of `source`.\n     * @param {Function} mergeFunc The function to merge values.\n     * @param {Function} [customizer] The function to customize assigned values.\n     * @param {Object} [stack] Tracks traversed source values and their merged\n     *  counterparts.\n     */\n    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n      var objValue = safeGet(object, key),\n          srcValue = safeGet(source, key),\n          stacked = stack.get(srcValue);\n\n      if (stacked) {\n        assignMergeValue(object, key, stacked);\n        return;\n      }\n      var newValue = customizer\n        ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n        : undefined;\n\n      var isCommon = newValue === undefined;\n\n      if (isCommon) {\n        var isArr = isArray(srcValue),\n            isBuff = !isArr && isBuffer(srcValue),\n            isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n        newValue = srcValue;\n        if (isArr || isBuff || isTyped) {\n          if (isArray(objValue)) {\n            newValue = objValue;\n          }\n          else if (isArrayLikeObject(objValue)) {\n            newValue = copyArray(objValue);\n          }\n          else if (isBuff) {\n            isCommon = false;\n            newValue = cloneBuffer(srcValue, true);\n          }\n          else if (isTyped) {\n            isCommon = false;\n            newValue = cloneTypedArray(srcValue, true);\n          }\n          else {\n            newValue = [];\n          }\n        }\n        else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n          newValue = objValue;\n          if (isArguments(objValue)) {\n            newValue = toPlainObject(objValue);\n          }\n          else if (!isObject(objValue) || isFunction(objValue)) {\n            newValue = initCloneObject(srcValue);\n          }\n        }\n        else {\n          isCommon = false;\n        }\n      }\n      if (isCommon) {\n        // Recursively merge objects and arrays (susceptible to call stack limits).\n        stack.set(srcValue, newValue);\n        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n        stack['delete'](srcValue);\n      }\n      assignMergeValue(object, key, newValue);\n    }\n\n    /**\n     * The base implementation of `_.nth` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {Array} array The array to query.\n     * @param {number} n The index of the element to return.\n     * @returns {*} Returns the nth element of `array`.\n     */\n    function baseNth(array, n) {\n      var length = array.length;\n      if (!length) {\n        return;\n      }\n      n += n < 0 ? length : 0;\n      return isIndex(n, length) ? array[n] : undefined;\n    }\n\n    /**\n     * The base implementation of `_.orderBy` without param guards.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n     * @param {string[]} orders The sort orders of `iteratees`.\n     * @returns {Array} Returns the new sorted array.\n     */\n    function baseOrderBy(collection, iteratees, orders) {\n      if (iteratees.length) {\n        iteratees = arrayMap(iteratees, function(iteratee) {\n          if (isArray(iteratee)) {\n            return function(value) {\n              return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n            };\n          }\n          return iteratee;\n        });\n      } else {\n        iteratees = [identity];\n      }\n\n      var index = -1;\n      iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n      var result = baseMap(collection, function(value, key, collection) {\n        var criteria = arrayMap(iteratees, function(iteratee) {\n          return iteratee(value);\n        });\n        return { 'criteria': criteria, 'index': ++index, 'value': value };\n      });\n\n      return baseSortBy(result, function(object, other) {\n        return compareMultiple(object, other, orders);\n      });\n    }\n\n    /**\n     * The base implementation of `_.pick` without support for individual\n     * property identifiers.\n     *\n     * @private\n     * @param {Object} object The source object.\n     * @param {string[]} paths The property paths to pick.\n     * @returns {Object} Returns the new object.\n     */\n    function basePick(object, paths) {\n      return basePickBy(object, paths, function(value, path) {\n        return hasIn(object, path);\n      });\n    }\n\n    /**\n     * The base implementation of  `_.pickBy` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Object} object The source object.\n     * @param {string[]} paths The property paths to pick.\n     * @param {Function} predicate The function invoked per property.\n     * @returns {Object} Returns the new object.\n     */\n    function basePickBy(object, paths, predicate) {\n      var index = -1,\n          length = paths.length,\n          result = {};\n\n      while (++index < length) {\n        var path = paths[index],\n            value = baseGet(object, path);\n\n        if (predicate(value, path)) {\n          baseSet(result, castPath(path, object), value);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * A specialized version of `baseProperty` which supports deep paths.\n     *\n     * @private\n     * @param {Array|string} path The path of the property to get.\n     * @returns {Function} Returns the new accessor function.\n     */\n    function basePropertyDeep(path) {\n      return function(object) {\n        return baseGet(object, path);\n      };\n    }\n\n    /**\n     * The base implementation of `_.pullAllBy` without support for iteratee\n     * shorthands.\n     *\n     * @private\n     * @param {Array} array The array to modify.\n     * @param {Array} values The values to remove.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns `array`.\n     */\n    function basePullAll(array, values, iteratee, comparator) {\n      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n          index = -1,\n          length = values.length,\n          seen = array;\n\n      if (array === values) {\n        values = copyArray(values);\n      }\n      if (iteratee) {\n        seen = arrayMap(array, baseUnary(iteratee));\n      }\n      while (++index < length) {\n        var fromIndex = 0,\n            value = values[index],\n            computed = iteratee ? iteratee(value) : value;\n\n        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n          if (seen !== array) {\n            splice.call(seen, fromIndex, 1);\n          }\n          splice.call(array, fromIndex, 1);\n        }\n      }\n      return array;\n    }\n\n    /**\n     * The base implementation of `_.pullAt` without support for individual\n     * indexes or capturing the removed elements.\n     *\n     * @private\n     * @param {Array} array The array to modify.\n     * @param {number[]} indexes The indexes of elements to remove.\n     * @returns {Array} Returns `array`.\n     */\n    function basePullAt(array, indexes) {\n      var length = array ? indexes.length : 0,\n          lastIndex = length - 1;\n\n      while (length--) {\n        var index = indexes[length];\n        if (length == lastIndex || index !== previous) {\n          var previous = index;\n          if (isIndex(index)) {\n            splice.call(array, index, 1);\n          } else {\n            baseUnset(array, index);\n          }\n        }\n      }\n      return array;\n    }\n\n    /**\n     * The base implementation of `_.random` without support for returning\n     * floating-point numbers.\n     *\n     * @private\n     * @param {number} lower The lower bound.\n     * @param {number} upper The upper bound.\n     * @returns {number} Returns the random number.\n     */\n    function baseRandom(lower, upper) {\n      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n    }\n\n    /**\n     * The base implementation of `_.range` and `_.rangeRight` which doesn't\n     * coerce arguments.\n     *\n     * @private\n     * @param {number} start The start of the range.\n     * @param {number} end The end of the range.\n     * @param {number} step The value to increment or decrement by.\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Array} Returns the range of numbers.\n     */\n    function baseRange(start, end, step, fromRight) {\n      var index = -1,\n          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n          result = Array(length);\n\n      while (length--) {\n        result[fromRight ? length : ++index] = start;\n        start += step;\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.repeat` which doesn't coerce arguments.\n     *\n     * @private\n     * @param {string} string The string to repeat.\n     * @param {number} n The number of times to repeat the string.\n     * @returns {string} Returns the repeated string.\n     */\n    function baseRepeat(string, n) {\n      var result = '';\n      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n        return result;\n      }\n      // Leverage the exponentiation by squaring algorithm for a faster repeat.\n      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n      do {\n        if (n % 2) {\n          result += string;\n        }\n        n = nativeFloor(n / 2);\n        if (n) {\n          string += string;\n        }\n      } while (n);\n\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n     *\n     * @private\n     * @param {Function} func The function to apply a rest parameter to.\n     * @param {number} [start=func.length-1] The start position of the rest parameter.\n     * @returns {Function} Returns the new function.\n     */\n    function baseRest(func, start) {\n      return setToString(overRest(func, start, identity), func + '');\n    }\n\n    /**\n     * The base implementation of `_.sample`.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to sample.\n     * @returns {*} Returns the random element.\n     */\n    function baseSample(collection) {\n      return arraySample(values(collection));\n    }\n\n    /**\n     * The base implementation of `_.sampleSize` without param guards.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to sample.\n     * @param {number} n The number of elements to sample.\n     * @returns {Array} Returns the random elements.\n     */\n    function baseSampleSize(collection, n) {\n      var array = values(collection);\n      return shuffleSelf(array, baseClamp(n, 0, array.length));\n    }\n\n    /**\n     * The base implementation of `_.set`.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to set.\n     * @param {*} value The value to set.\n     * @param {Function} [customizer] The function to customize path creation.\n     * @returns {Object} Returns `object`.\n     */\n    function baseSet(object, path, value, customizer) {\n      if (!isObject(object)) {\n        return object;\n      }\n      path = castPath(path, object);\n\n      var index = -1,\n          length = path.length,\n          lastIndex = length - 1,\n          nested = object;\n\n      while (nested != null && ++index < length) {\n        var key = toKey(path[index]),\n            newValue = value;\n\n        if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n          return object;\n        }\n\n        if (index != lastIndex) {\n          var objValue = nested[key];\n          newValue = customizer ? customizer(objValue, key, nested) : undefined;\n          if (newValue === undefined) {\n            newValue = isObject(objValue)\n              ? objValue\n              : (isIndex(path[index + 1]) ? [] : {});\n          }\n        }\n        assignValue(nested, key, newValue);\n        nested = nested[key];\n      }\n      return object;\n    }\n\n    /**\n     * The base implementation of `setData` without support for hot loop shorting.\n     *\n     * @private\n     * @param {Function} func The function to associate metadata with.\n     * @param {*} data The metadata.\n     * @returns {Function} Returns `func`.\n     */\n    var baseSetData = !metaMap ? identity : function(func, data) {\n      metaMap.set(func, data);\n      return func;\n    };\n\n    /**\n     * The base implementation of `setToString` without support for hot loop shorting.\n     *\n     * @private\n     * @param {Function} func The function to modify.\n     * @param {Function} string The `toString` result.\n     * @returns {Function} Returns `func`.\n     */\n    var baseSetToString = !defineProperty ? identity : function(func, string) {\n      return defineProperty(func, 'toString', {\n        'configurable': true,\n        'enumerable': false,\n        'value': constant(string),\n        'writable': true\n      });\n    };\n\n    /**\n     * The base implementation of `_.shuffle`.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to shuffle.\n     * @returns {Array} Returns the new shuffled array.\n     */\n    function baseShuffle(collection) {\n      return shuffleSelf(values(collection));\n    }\n\n    /**\n     * The base implementation of `_.slice` without an iteratee call guard.\n     *\n     * @private\n     * @param {Array} array The array to slice.\n     * @param {number} [start=0] The start position.\n     * @param {number} [end=array.length] The end position.\n     * @returns {Array} Returns the slice of `array`.\n     */\n    function baseSlice(array, start, end) {\n      var index = -1,\n          length = array.length;\n\n      if (start < 0) {\n        start = -start > length ? 0 : (length + start);\n      }\n      end = end > length ? length : end;\n      if (end < 0) {\n        end += length;\n      }\n      length = start > end ? 0 : ((end - start) >>> 0);\n      start >>>= 0;\n\n      var result = Array(length);\n      while (++index < length) {\n        result[index] = array[index + start];\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.some` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} predicate The function invoked per iteration.\n     * @returns {boolean} Returns `true` if any element passes the predicate check,\n     *  else `false`.\n     */\n    function baseSome(collection, predicate) {\n      var result;\n\n      baseEach(collection, function(value, index, collection) {\n        result = predicate(value, index, collection);\n        return !result;\n      });\n      return !!result;\n    }\n\n    /**\n     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n     * performs a binary search of `array` to determine the index at which `value`\n     * should be inserted into `array` in order to maintain its sort order.\n     *\n     * @private\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @param {boolean} [retHighest] Specify returning the highest qualified index.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     */\n    function baseSortedIndex(array, value, retHighest) {\n      var low = 0,\n          high = array == null ? low : array.length;\n\n      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n        while (low < high) {\n          var mid = (low + high) >>> 1,\n              computed = array[mid];\n\n          if (computed !== null && !isSymbol(computed) &&\n              (retHighest ? (computed <= value) : (computed < value))) {\n            low = mid + 1;\n          } else {\n            high = mid;\n          }\n        }\n        return high;\n      }\n      return baseSortedIndexBy(array, value, identity, retHighest);\n    }\n\n    /**\n     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n     * which invokes `iteratee` for `value` and each element of `array` to compute\n     * their sort ranking. The iteratee is invoked with one argument; (value).\n     *\n     * @private\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @param {Function} iteratee The iteratee invoked per element.\n     * @param {boolean} [retHighest] Specify returning the highest qualified index.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     */\n    function baseSortedIndexBy(array, value, iteratee, retHighest) {\n      var low = 0,\n          high = array == null ? 0 : array.length;\n      if (high === 0) {\n        return 0;\n      }\n\n      value = iteratee(value);\n      var valIsNaN = value !== value,\n          valIsNull = value === null,\n          valIsSymbol = isSymbol(value),\n          valIsUndefined = value === undefined;\n\n      while (low < high) {\n        var mid = nativeFloor((low + high) / 2),\n            computed = iteratee(array[mid]),\n            othIsDefined = computed !== undefined,\n            othIsNull = computed === null,\n            othIsReflexive = computed === computed,\n            othIsSymbol = isSymbol(computed);\n\n        if (valIsNaN) {\n          var setLow = retHighest || othIsReflexive;\n        } else if (valIsUndefined) {\n          setLow = othIsReflexive && (retHighest || othIsDefined);\n        } else if (valIsNull) {\n          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n        } else if (valIsSymbol) {\n          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n        } else if (othIsNull || othIsSymbol) {\n          setLow = false;\n        } else {\n          setLow = retHighest ? (computed <= value) : (computed < value);\n        }\n        if (setLow) {\n          low = mid + 1;\n        } else {\n          high = mid;\n        }\n      }\n      return nativeMin(high, MAX_ARRAY_INDEX);\n    }\n\n    /**\n     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n     * support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array} array The array to inspect.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @returns {Array} Returns the new duplicate free array.\n     */\n    function baseSortedUniq(array, iteratee) {\n      var index = -1,\n          length = array.length,\n          resIndex = 0,\n          result = [];\n\n      while (++index < length) {\n        var value = array[index],\n            computed = iteratee ? iteratee(value) : value;\n\n        if (!index || !eq(computed, seen)) {\n          var seen = computed;\n          result[resIndex++] = value === 0 ? 0 : value;\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.toNumber` which doesn't ensure correct\n     * conversions of binary, hexadecimal, or octal string values.\n     *\n     * @private\n     * @param {*} value The value to process.\n     * @returns {number} Returns the number.\n     */\n    function baseToNumber(value) {\n      if (typeof value == 'number') {\n        return value;\n      }\n      if (isSymbol(value)) {\n        return NAN;\n      }\n      return +value;\n    }\n\n    /**\n     * The base implementation of `_.toString` which doesn't convert nullish\n     * values to empty strings.\n     *\n     * @private\n     * @param {*} value The value to process.\n     * @returns {string} Returns the string.\n     */\n    function baseToString(value) {\n      // Exit early for strings to avoid a performance hit in some environments.\n      if (typeof value == 'string') {\n        return value;\n      }\n      if (isArray(value)) {\n        // Recursively convert values (susceptible to call stack limits).\n        return arrayMap(value, baseToString) + '';\n      }\n      if (isSymbol(value)) {\n        return symbolToString ? symbolToString.call(value) : '';\n      }\n      var result = (value + '');\n      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n    }\n\n    /**\n     * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array} array The array to inspect.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new duplicate free array.\n     */\n    function baseUniq(array, iteratee, comparator) {\n      var index = -1,\n          includes = arrayIncludes,\n          length = array.length,\n          isCommon = true,\n          result = [],\n          seen = result;\n\n      if (comparator) {\n        isCommon = false;\n        includes = arrayIncludesWith;\n      }\n      else if (length >= LARGE_ARRAY_SIZE) {\n        var set = iteratee ? null : createSet(array);\n        if (set) {\n          return setToArray(set);\n        }\n        isCommon = false;\n        includes = cacheHas;\n        seen = new SetCache;\n      }\n      else {\n        seen = iteratee ? [] : result;\n      }\n      outer:\n      while (++index < length) {\n        var value = array[index],\n            computed = iteratee ? iteratee(value) : value;\n\n        value = (comparator || value !== 0) ? value : 0;\n        if (isCommon && computed === computed) {\n          var seenIndex = seen.length;\n          while (seenIndex--) {\n            if (seen[seenIndex] === computed) {\n              continue outer;\n            }\n          }\n          if (iteratee) {\n            seen.push(computed);\n          }\n          result.push(value);\n        }\n        else if (!includes(seen, computed, comparator)) {\n          if (seen !== result) {\n            seen.push(computed);\n          }\n          result.push(value);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * The base implementation of `_.unset`.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The property path to unset.\n     * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n     */\n    function baseUnset(object, path) {\n      path = castPath(path, object);\n\n      // Prevent prototype pollution:\n      // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg\n      // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh\n      var index = -1,\n          length = path.length;\n\n      if (!length) {\n        return true;\n      }\n\n      while (++index < length) {\n        var key = toKey(path[index]);\n\n        // Always block \"__proto__\" anywhere in the path if it's not expected\n        if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {\n          return false;\n        }\n\n        // Block constructor/prototype as non-terminal traversal keys to prevent\n        // escaping the object graph into built-in constructors and prototypes.\n        if ((key === 'constructor' || key === 'prototype') && index < length - 1) {\n          return false;\n        }\n      }\n\n      var obj = parent(object, path);\n      return obj == null || delete obj[toKey(last(path))];\n    }\n\n    /**\n     * The base implementation of `_.update`.\n     *\n     * @private\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to update.\n     * @param {Function} updater The function to produce the updated value.\n     * @param {Function} [customizer] The function to customize path creation.\n     * @returns {Object} Returns `object`.\n     */\n    function baseUpdate(object, path, updater, customizer) {\n      return baseSet(object, path, updater(baseGet(object, path)), customizer);\n    }\n\n    /**\n     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n     * without support for iteratee shorthands.\n     *\n     * @private\n     * @param {Array} array The array to query.\n     * @param {Function} predicate The function invoked per iteration.\n     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Array} Returns the slice of `array`.\n     */\n    function baseWhile(array, predicate, isDrop, fromRight) {\n      var length = array.length,\n          index = fromRight ? length : -1;\n\n      while ((fromRight ? index-- : ++index < length) &&\n        predicate(array[index], index, array)) {}\n\n      return isDrop\n        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n    }\n\n    /**\n     * The base implementation of `wrapperValue` which returns the result of\n     * performing a sequence of actions on the unwrapped `value`, where each\n     * successive action is supplied the return value of the previous.\n     *\n     * @private\n     * @param {*} value The unwrapped value.\n     * @param {Array} actions Actions to perform to resolve the unwrapped value.\n     * @returns {*} Returns the resolved value.\n     */\n    function baseWrapperValue(value, actions) {\n      var result = value;\n      if (result instanceof LazyWrapper) {\n        result = result.value();\n      }\n      return arrayReduce(actions, function(result, action) {\n        return action.func.apply(action.thisArg, arrayPush([result], action.args));\n      }, result);\n    }\n\n    /**\n     * The base implementation of methods like `_.xor`, without support for\n     * iteratee shorthands, that accepts an array of arrays to inspect.\n     *\n     * @private\n     * @param {Array} arrays The arrays to inspect.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of values.\n     */\n    function baseXor(arrays, iteratee, comparator) {\n      var length = arrays.length;\n      if (length < 2) {\n        return length ? baseUniq(arrays[0]) : [];\n      }\n      var index = -1,\n          result = Array(length);\n\n      while (++index < length) {\n        var array = arrays[index],\n            othIndex = -1;\n\n        while (++othIndex < length) {\n          if (othIndex != index) {\n            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n          }\n        }\n      }\n      return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n    }\n\n    /**\n     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n     *\n     * @private\n     * @param {Array} props The property identifiers.\n     * @param {Array} values The property values.\n     * @param {Function} assignFunc The function to assign values.\n     * @returns {Object} Returns the new object.\n     */\n    function baseZipObject(props, values, assignFunc) {\n      var index = -1,\n          length = props.length,\n          valsLength = values.length,\n          result = {};\n\n      while (++index < length) {\n        var value = index < valsLength ? values[index] : undefined;\n        assignFunc(result, props[index], value);\n      }\n      return result;\n    }\n\n    /**\n     * Casts `value` to an empty array if it's not an array like object.\n     *\n     * @private\n     * @param {*} value The value to inspect.\n     * @returns {Array|Object} Returns the cast array-like object.\n     */\n    function castArrayLikeObject(value) {\n      return isArrayLikeObject(value) ? value : [];\n    }\n\n    /**\n     * Casts `value` to `identity` if it's not a function.\n     *\n     * @private\n     * @param {*} value The value to inspect.\n     * @returns {Function} Returns cast function.\n     */\n    function castFunction(value) {\n      return typeof value == 'function' ? value : identity;\n    }\n\n    /**\n     * Casts `value` to a path array if it's not one.\n     *\n     * @private\n     * @param {*} value The value to inspect.\n     * @param {Object} [object] The object to query keys on.\n     * @returns {Array} Returns the cast property path array.\n     */\n    function castPath(value, object) {\n      if (isArray(value)) {\n        return value;\n      }\n      return isKey(value, object) ? [value] : stringToPath(toString(value));\n    }\n\n    /**\n     * A `baseRest` alias which can be replaced with `identity` by module\n     * replacement plugins.\n     *\n     * @private\n     * @type {Function}\n     * @param {Function} func The function to apply a rest parameter to.\n     * @returns {Function} Returns the new function.\n     */\n    var castRest = baseRest;\n\n    /**\n     * Casts `array` to a slice if it's needed.\n     *\n     * @private\n     * @param {Array} array The array to inspect.\n     * @param {number} start The start position.\n     * @param {number} [end=array.length] The end position.\n     * @returns {Array} Returns the cast slice.\n     */\n    function castSlice(array, start, end) {\n      var length = array.length;\n      end = end === undefined ? length : end;\n      return (!start && end >= length) ? array : baseSlice(array, start, end);\n    }\n\n    /**\n     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n     *\n     * @private\n     * @param {number|Object} id The timer id or timeout object of the timer to clear.\n     */\n    var clearTimeout = ctxClearTimeout || function(id) {\n      return root.clearTimeout(id);\n    };\n\n    /**\n     * Creates a clone of  `buffer`.\n     *\n     * @private\n     * @param {Buffer} buffer The buffer to clone.\n     * @param {boolean} [isDeep] Specify a deep clone.\n     * @returns {Buffer} Returns the cloned buffer.\n     */\n    function cloneBuffer(buffer, isDeep) {\n      if (isDeep) {\n        return buffer.slice();\n      }\n      var length = buffer.length,\n          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n      buffer.copy(result);\n      return result;\n    }\n\n    /**\n     * Creates a clone of `arrayBuffer`.\n     *\n     * @private\n     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n     * @returns {ArrayBuffer} Returns the cloned array buffer.\n     */\n    function cloneArrayBuffer(arrayBuffer) {\n      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n      new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n      return result;\n    }\n\n    /**\n     * Creates a clone of `dataView`.\n     *\n     * @private\n     * @param {Object} dataView The data view to clone.\n     * @param {boolean} [isDeep] Specify a deep clone.\n     * @returns {Object} Returns the cloned data view.\n     */\n    function cloneDataView(dataView, isDeep) {\n      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n    }\n\n    /**\n     * Creates a clone of `regexp`.\n     *\n     * @private\n     * @param {Object} regexp The regexp to clone.\n     * @returns {Object} Returns the cloned regexp.\n     */\n    function cloneRegExp(regexp) {\n      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n      result.lastIndex = regexp.lastIndex;\n      return result;\n    }\n\n    /**\n     * Creates a clone of the `symbol` object.\n     *\n     * @private\n     * @param {Object} symbol The symbol object to clone.\n     * @returns {Object} Returns the cloned symbol object.\n     */\n    function cloneSymbol(symbol) {\n      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n    }\n\n    /**\n     * Creates a clone of `typedArray`.\n     *\n     * @private\n     * @param {Object} typedArray The typed array to clone.\n     * @param {boolean} [isDeep] Specify a deep clone.\n     * @returns {Object} Returns the cloned typed array.\n     */\n    function cloneTypedArray(typedArray, isDeep) {\n      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n    }\n\n    /**\n     * Compares values to sort them in ascending order.\n     *\n     * @private\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {number} Returns the sort order indicator for `value`.\n     */\n    function compareAscending(value, other) {\n      if (value !== other) {\n        var valIsDefined = value !== undefined,\n            valIsNull = value === null,\n            valIsReflexive = value === value,\n            valIsSymbol = isSymbol(value);\n\n        var othIsDefined = other !== undefined,\n            othIsNull = other === null,\n            othIsReflexive = other === other,\n            othIsSymbol = isSymbol(other);\n\n        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n            (valIsNull && othIsDefined && othIsReflexive) ||\n            (!valIsDefined && othIsReflexive) ||\n            !valIsReflexive) {\n          return 1;\n        }\n        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n            (othIsNull && valIsDefined && valIsReflexive) ||\n            (!othIsDefined && valIsReflexive) ||\n            !othIsReflexive) {\n          return -1;\n        }\n      }\n      return 0;\n    }\n\n    /**\n     * Used by `_.orderBy` to compare multiple properties of a value to another\n     * and stable sort them.\n     *\n     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n     * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n     * of corresponding values.\n     *\n     * @private\n     * @param {Object} object The object to compare.\n     * @param {Object} other The other object to compare.\n     * @param {boolean[]|string[]} orders The order to sort by for each property.\n     * @returns {number} Returns the sort order indicator for `object`.\n     */\n    function compareMultiple(object, other, orders) {\n      var index = -1,\n          objCriteria = object.criteria,\n          othCriteria = other.criteria,\n          length = objCriteria.length,\n          ordersLength = orders.length;\n\n      while (++index < length) {\n        var result = compareAscending(objCriteria[index], othCriteria[index]);\n        if (result) {\n          if (index >= ordersLength) {\n            return result;\n          }\n          var order = orders[index];\n          return result * (order == 'desc' ? -1 : 1);\n        }\n      }\n      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n      // that causes it, under certain circumstances, to provide the same value for\n      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n      // for more details.\n      //\n      // This also ensures a stable sort in V8 and other engines.\n      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n      return object.index - other.index;\n    }\n\n    /**\n     * Creates an array that is the composition of partially applied arguments,\n     * placeholders, and provided arguments into a single array of arguments.\n     *\n     * @private\n     * @param {Array} args The provided arguments.\n     * @param {Array} partials The arguments to prepend to those provided.\n     * @param {Array} holders The `partials` placeholder indexes.\n     * @params {boolean} [isCurried] Specify composing for a curried function.\n     * @returns {Array} Returns the new array of composed arguments.\n     */\n    function composeArgs(args, partials, holders, isCurried) {\n      var argsIndex = -1,\n          argsLength = args.length,\n          holdersLength = holders.length,\n          leftIndex = -1,\n          leftLength = partials.length,\n          rangeLength = nativeMax(argsLength - holdersLength, 0),\n          result = Array(leftLength + rangeLength),\n          isUncurried = !isCurried;\n\n      while (++leftIndex < leftLength) {\n        result[leftIndex] = partials[leftIndex];\n      }\n      while (++argsIndex < holdersLength) {\n        if (isUncurried || argsIndex < argsLength) {\n          result[holders[argsIndex]] = args[argsIndex];\n        }\n      }\n      while (rangeLength--) {\n        result[leftIndex++] = args[argsIndex++];\n      }\n      return result;\n    }\n\n    /**\n     * This function is like `composeArgs` except that the arguments composition\n     * is tailored for `_.partialRight`.\n     *\n     * @private\n     * @param {Array} args The provided arguments.\n     * @param {Array} partials The arguments to append to those provided.\n     * @param {Array} holders The `partials` placeholder indexes.\n     * @params {boolean} [isCurried] Specify composing for a curried function.\n     * @returns {Array} Returns the new array of composed arguments.\n     */\n    function composeArgsRight(args, partials, holders, isCurried) {\n      var argsIndex = -1,\n          argsLength = args.length,\n          holdersIndex = -1,\n          holdersLength = holders.length,\n          rightIndex = -1,\n          rightLength = partials.length,\n          rangeLength = nativeMax(argsLength - holdersLength, 0),\n          result = Array(rangeLength + rightLength),\n          isUncurried = !isCurried;\n\n      while (++argsIndex < rangeLength) {\n        result[argsIndex] = args[argsIndex];\n      }\n      var offset = argsIndex;\n      while (++rightIndex < rightLength) {\n        result[offset + rightIndex] = partials[rightIndex];\n      }\n      while (++holdersIndex < holdersLength) {\n        if (isUncurried || argsIndex < argsLength) {\n          result[offset + holders[holdersIndex]] = args[argsIndex++];\n        }\n      }\n      return result;\n    }\n\n    /**\n     * Copies the values of `source` to `array`.\n     *\n     * @private\n     * @param {Array} source The array to copy values from.\n     * @param {Array} [array=[]] The array to copy values to.\n     * @returns {Array} Returns `array`.\n     */\n    function copyArray(source, array) {\n      var index = -1,\n          length = source.length;\n\n      array || (array = Array(length));\n      while (++index < length) {\n        array[index] = source[index];\n      }\n      return array;\n    }\n\n    /**\n     * Copies properties of `source` to `object`.\n     *\n     * @private\n     * @param {Object} source The object to copy properties from.\n     * @param {Array} props The property identifiers to copy.\n     * @param {Object} [object={}] The object to copy properties to.\n     * @param {Function} [customizer] The function to customize copied values.\n     * @returns {Object} Returns `object`.\n     */\n    function copyObject(source, props, object, customizer) {\n      var isNew = !object;\n      object || (object = {});\n\n      var index = -1,\n          length = props.length;\n\n      while (++index < length) {\n        var key = props[index];\n\n        var newValue = customizer\n          ? customizer(object[key], source[key], key, object, source)\n          : undefined;\n\n        if (newValue === undefined) {\n          newValue = source[key];\n        }\n        if (isNew) {\n          baseAssignValue(object, key, newValue);\n        } else {\n          assignValue(object, key, newValue);\n        }\n      }\n      return object;\n    }\n\n    /**\n     * Copies own symbols of `source` to `object`.\n     *\n     * @private\n     * @param {Object} source The object to copy symbols from.\n     * @param {Object} [object={}] The object to copy symbols to.\n     * @returns {Object} Returns `object`.\n     */\n    function copySymbols(source, object) {\n      return copyObject(source, getSymbols(source), object);\n    }\n\n    /**\n     * Copies own and inherited symbols of `source` to `object`.\n     *\n     * @private\n     * @param {Object} source The object to copy symbols from.\n     * @param {Object} [object={}] The object to copy symbols to.\n     * @returns {Object} Returns `object`.\n     */\n    function copySymbolsIn(source, object) {\n      return copyObject(source, getSymbolsIn(source), object);\n    }\n\n    /**\n     * Creates a function like `_.groupBy`.\n     *\n     * @private\n     * @param {Function} setter The function to set accumulator values.\n     * @param {Function} [initializer] The accumulator object initializer.\n     * @returns {Function} Returns the new aggregator function.\n     */\n    function createAggregator(setter, initializer) {\n      return function(collection, iteratee) {\n        var func = isArray(collection) ? arrayAggregator : baseAggregator,\n            accumulator = initializer ? initializer() : {};\n\n        return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n      };\n    }\n\n    /**\n     * Creates a function like `_.assign`.\n     *\n     * @private\n     * @param {Function} assigner The function to assign values.\n     * @returns {Function} Returns the new assigner function.\n     */\n    function createAssigner(assigner) {\n      return baseRest(function(object, sources) {\n        var index = -1,\n            length = sources.length,\n            customizer = length > 1 ? sources[length - 1] : undefined,\n            guard = length > 2 ? sources[2] : undefined;\n\n        customizer = (assigner.length > 3 && typeof customizer == 'function')\n          ? (length--, customizer)\n          : undefined;\n\n        if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n          customizer = length < 3 ? undefined : customizer;\n          length = 1;\n        }\n        object = Object(object);\n        while (++index < length) {\n          var source = sources[index];\n          if (source) {\n            assigner(object, source, index, customizer);\n          }\n        }\n        return object;\n      });\n    }\n\n    /**\n     * Creates a `baseEach` or `baseEachRight` function.\n     *\n     * @private\n     * @param {Function} eachFunc The function to iterate over a collection.\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Function} Returns the new base function.\n     */\n    function createBaseEach(eachFunc, fromRight) {\n      return function(collection, iteratee) {\n        if (collection == null) {\n          return collection;\n        }\n        if (!isArrayLike(collection)) {\n          return eachFunc(collection, iteratee);\n        }\n        var length = collection.length,\n            index = fromRight ? length : -1,\n            iterable = Object(collection);\n\n        while ((fromRight ? index-- : ++index < length)) {\n          if (iteratee(iterable[index], index, iterable) === false) {\n            break;\n          }\n        }\n        return collection;\n      };\n    }\n\n    /**\n     * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n     *\n     * @private\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Function} Returns the new base function.\n     */\n    function createBaseFor(fromRight) {\n      return function(object, iteratee, keysFunc) {\n        var index = -1,\n            iterable = Object(object),\n            props = keysFunc(object),\n            length = props.length;\n\n        while (length--) {\n          var key = props[fromRight ? length : ++index];\n          if (iteratee(iterable[key], key, iterable) === false) {\n            break;\n          }\n        }\n        return object;\n      };\n    }\n\n    /**\n     * Creates a function that wraps `func` to invoke it with the optional `this`\n     * binding of `thisArg`.\n     *\n     * @private\n     * @param {Function} func The function to wrap.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @param {*} [thisArg] The `this` binding of `func`.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createBind(func, bitmask, thisArg) {\n      var isBind = bitmask & WRAP_BIND_FLAG,\n          Ctor = createCtor(func);\n\n      function wrapper() {\n        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n        return fn.apply(isBind ? thisArg : this, arguments);\n      }\n      return wrapper;\n    }\n\n    /**\n     * Creates a function like `_.lowerFirst`.\n     *\n     * @private\n     * @param {string} methodName The name of the `String` case method to use.\n     * @returns {Function} Returns the new case function.\n     */\n    function createCaseFirst(methodName) {\n      return function(string) {\n        string = toString(string);\n\n        var strSymbols = hasUnicode(string)\n          ? stringToArray(string)\n          : undefined;\n\n        var chr = strSymbols\n          ? strSymbols[0]\n          : string.charAt(0);\n\n        var trailing = strSymbols\n          ? castSlice(strSymbols, 1).join('')\n          : string.slice(1);\n\n        return chr[methodName]() + trailing;\n      };\n    }\n\n    /**\n     * Creates a function like `_.camelCase`.\n     *\n     * @private\n     * @param {Function} callback The function to combine each word.\n     * @returns {Function} Returns the new compounder function.\n     */\n    function createCompounder(callback) {\n      return function(string) {\n        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n      };\n    }\n\n    /**\n     * Creates a function that produces an instance of `Ctor` regardless of\n     * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n     *\n     * @private\n     * @param {Function} Ctor The constructor to wrap.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createCtor(Ctor) {\n      return function() {\n        // Use a `switch` statement to work with class constructors. See\n        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n        // for more details.\n        var args = arguments;\n        switch (args.length) {\n          case 0: return new Ctor;\n          case 1: return new Ctor(args[0]);\n          case 2: return new Ctor(args[0], args[1]);\n          case 3: return new Ctor(args[0], args[1], args[2]);\n          case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n        }\n        var thisBinding = baseCreate(Ctor.prototype),\n            result = Ctor.apply(thisBinding, args);\n\n        // Mimic the constructor's `return` behavior.\n        // See https://es5.github.io/#x13.2.2 for more details.\n        return isObject(result) ? result : thisBinding;\n      };\n    }\n\n    /**\n     * Creates a function that wraps `func` to enable currying.\n     *\n     * @private\n     * @param {Function} func The function to wrap.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @param {number} arity The arity of `func`.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createCurry(func, bitmask, arity) {\n      var Ctor = createCtor(func);\n\n      function wrapper() {\n        var length = arguments.length,\n            args = Array(length),\n            index = length,\n            placeholder = getHolder(wrapper);\n\n        while (index--) {\n          args[index] = arguments[index];\n        }\n        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n          ? []\n          : replaceHolders(args, placeholder);\n\n        length -= holders.length;\n        if (length < arity) {\n          return createRecurry(\n            func, bitmask, createHybrid, wrapper.placeholder, undefined,\n            args, holders, undefined, undefined, arity - length);\n        }\n        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n        return apply(fn, this, args);\n      }\n      return wrapper;\n    }\n\n    /**\n     * Creates a `_.find` or `_.findLast` function.\n     *\n     * @private\n     * @param {Function} findIndexFunc The function to find the collection index.\n     * @returns {Function} Returns the new find function.\n     */\n    function createFind(findIndexFunc) {\n      return function(collection, predicate, fromIndex) {\n        var iterable = Object(collection);\n        if (!isArrayLike(collection)) {\n          var iteratee = getIteratee(predicate, 3);\n          collection = keys(collection);\n          predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n        }\n        var index = findIndexFunc(collection, predicate, fromIndex);\n        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n      };\n    }\n\n    /**\n     * Creates a `_.flow` or `_.flowRight` function.\n     *\n     * @private\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Function} Returns the new flow function.\n     */\n    function createFlow(fromRight) {\n      return flatRest(function(funcs) {\n        var length = funcs.length,\n            index = length,\n            prereq = LodashWrapper.prototype.thru;\n\n        if (fromRight) {\n          funcs.reverse();\n        }\n        while (index--) {\n          var func = funcs[index];\n          if (typeof func != 'function') {\n            throw new TypeError(FUNC_ERROR_TEXT);\n          }\n          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n            var wrapper = new LodashWrapper([], true);\n          }\n        }\n        index = wrapper ? index : length;\n        while (++index < length) {\n          func = funcs[index];\n\n          var funcName = getFuncName(func),\n              data = funcName == 'wrapper' ? getData(func) : undefined;\n\n          if (data && isLaziable(data[0]) &&\n                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n                !data[4].length && data[9] == 1\n              ) {\n            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n          } else {\n            wrapper = (func.length == 1 && isLaziable(func))\n              ? wrapper[funcName]()\n              : wrapper.thru(func);\n          }\n        }\n        return function() {\n          var args = arguments,\n              value = args[0];\n\n          if (wrapper && args.length == 1 && isArray(value)) {\n            return wrapper.plant(value).value();\n          }\n          var index = 0,\n              result = length ? funcs[index].apply(this, args) : value;\n\n          while (++index < length) {\n            result = funcs[index].call(this, result);\n          }\n          return result;\n        };\n      });\n    }\n\n    /**\n     * Creates a function that wraps `func` to invoke it with optional `this`\n     * binding of `thisArg`, partial application, and currying.\n     *\n     * @private\n     * @param {Function|string} func The function or method name to wrap.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @param {*} [thisArg] The `this` binding of `func`.\n     * @param {Array} [partials] The arguments to prepend to those provided to\n     *  the new function.\n     * @param {Array} [holders] The `partials` placeholder indexes.\n     * @param {Array} [partialsRight] The arguments to append to those provided\n     *  to the new function.\n     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n     * @param {Array} [argPos] The argument positions of the new function.\n     * @param {number} [ary] The arity cap of `func`.\n     * @param {number} [arity] The arity of `func`.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n      var isAry = bitmask & WRAP_ARY_FLAG,\n          isBind = bitmask & WRAP_BIND_FLAG,\n          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n          isFlip = bitmask & WRAP_FLIP_FLAG,\n          Ctor = isBindKey ? undefined : createCtor(func);\n\n      function wrapper() {\n        var length = arguments.length,\n            args = Array(length),\n            index = length;\n\n        while (index--) {\n          args[index] = arguments[index];\n        }\n        if (isCurried) {\n          var placeholder = getHolder(wrapper),\n              holdersCount = countHolders(args, placeholder);\n        }\n        if (partials) {\n          args = composeArgs(args, partials, holders, isCurried);\n        }\n        if (partialsRight) {\n          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n        }\n        length -= holdersCount;\n        if (isCurried && length < arity) {\n          var newHolders = replaceHolders(args, placeholder);\n          return createRecurry(\n            func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n            args, newHolders, argPos, ary, arity - length\n          );\n        }\n        var thisBinding = isBind ? thisArg : this,\n            fn = isBindKey ? thisBinding[func] : func;\n\n        length = args.length;\n        if (argPos) {\n          args = reorder(args, argPos);\n        } else if (isFlip && length > 1) {\n          args.reverse();\n        }\n        if (isAry && ary < length) {\n          args.length = ary;\n        }\n        if (this && this !== root && this instanceof wrapper) {\n          fn = Ctor || createCtor(fn);\n        }\n        return fn.apply(thisBinding, args);\n      }\n      return wrapper;\n    }\n\n    /**\n     * Creates a function like `_.invertBy`.\n     *\n     * @private\n     * @param {Function} setter The function to set accumulator values.\n     * @param {Function} toIteratee The function to resolve iteratees.\n     * @returns {Function} Returns the new inverter function.\n     */\n    function createInverter(setter, toIteratee) {\n      return function(object, iteratee) {\n        return baseInverter(object, setter, toIteratee(iteratee), {});\n      };\n    }\n\n    /**\n     * Creates a function that performs a mathematical operation on two values.\n     *\n     * @private\n     * @param {Function} operator The function to perform the operation.\n     * @param {number} [defaultValue] The value used for `undefined` arguments.\n     * @returns {Function} Returns the new mathematical operation function.\n     */\n    function createMathOperation(operator, defaultValue) {\n      return function(value, other) {\n        var result;\n        if (value === undefined && other === undefined) {\n          return defaultValue;\n        }\n        if (value !== undefined) {\n          result = value;\n        }\n        if (other !== undefined) {\n          if (result === undefined) {\n            return other;\n          }\n          if (typeof value == 'string' || typeof other == 'string') {\n            value = baseToString(value);\n            other = baseToString(other);\n          } else {\n            value = baseToNumber(value);\n            other = baseToNumber(other);\n          }\n          result = operator(value, other);\n        }\n        return result;\n      };\n    }\n\n    /**\n     * Creates a function like `_.over`.\n     *\n     * @private\n     * @param {Function} arrayFunc The function to iterate over iteratees.\n     * @returns {Function} Returns the new over function.\n     */\n    function createOver(arrayFunc) {\n      return flatRest(function(iteratees) {\n        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n        return baseRest(function(args) {\n          var thisArg = this;\n          return arrayFunc(iteratees, function(iteratee) {\n            return apply(iteratee, thisArg, args);\n          });\n        });\n      });\n    }\n\n    /**\n     * Creates the padding for `string` based on `length`. The `chars` string\n     * is truncated if the number of characters exceeds `length`.\n     *\n     * @private\n     * @param {number} length The padding length.\n     * @param {string} [chars=' '] The string used as padding.\n     * @returns {string} Returns the padding for `string`.\n     */\n    function createPadding(length, chars) {\n      chars = chars === undefined ? ' ' : baseToString(chars);\n\n      var charsLength = chars.length;\n      if (charsLength < 2) {\n        return charsLength ? baseRepeat(chars, length) : chars;\n      }\n      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n      return hasUnicode(chars)\n        ? castSlice(stringToArray(result), 0, length).join('')\n        : result.slice(0, length);\n    }\n\n    /**\n     * Creates a function that wraps `func` to invoke it with the `this` binding\n     * of `thisArg` and `partials` prepended to the arguments it receives.\n     *\n     * @private\n     * @param {Function} func The function to wrap.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @param {*} thisArg The `this` binding of `func`.\n     * @param {Array} partials The arguments to prepend to those provided to\n     *  the new function.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createPartial(func, bitmask, thisArg, partials) {\n      var isBind = bitmask & WRAP_BIND_FLAG,\n          Ctor = createCtor(func);\n\n      function wrapper() {\n        var argsIndex = -1,\n            argsLength = arguments.length,\n            leftIndex = -1,\n            leftLength = partials.length,\n            args = Array(leftLength + argsLength),\n            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n        while (++leftIndex < leftLength) {\n          args[leftIndex] = partials[leftIndex];\n        }\n        while (argsLength--) {\n          args[leftIndex++] = arguments[++argsIndex];\n        }\n        return apply(fn, isBind ? thisArg : this, args);\n      }\n      return wrapper;\n    }\n\n    /**\n     * Creates a `_.range` or `_.rangeRight` function.\n     *\n     * @private\n     * @param {boolean} [fromRight] Specify iterating from right to left.\n     * @returns {Function} Returns the new range function.\n     */\n    function createRange(fromRight) {\n      return function(start, end, step) {\n        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n          end = step = undefined;\n        }\n        // Ensure the sign of `-0` is preserved.\n        start = toFinite(start);\n        if (end === undefined) {\n          end = start;\n          start = 0;\n        } else {\n          end = toFinite(end);\n        }\n        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n        return baseRange(start, end, step, fromRight);\n      };\n    }\n\n    /**\n     * Creates a function that performs a relational operation on two values.\n     *\n     * @private\n     * @param {Function} operator The function to perform the operation.\n     * @returns {Function} Returns the new relational operation function.\n     */\n    function createRelationalOperation(operator) {\n      return function(value, other) {\n        if (!(typeof value == 'string' && typeof other == 'string')) {\n          value = toNumber(value);\n          other = toNumber(other);\n        }\n        return operator(value, other);\n      };\n    }\n\n    /**\n     * Creates a function that wraps `func` to continue currying.\n     *\n     * @private\n     * @param {Function} func The function to wrap.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @param {Function} wrapFunc The function to create the `func` wrapper.\n     * @param {*} placeholder The placeholder value.\n     * @param {*} [thisArg] The `this` binding of `func`.\n     * @param {Array} [partials] The arguments to prepend to those provided to\n     *  the new function.\n     * @param {Array} [holders] The `partials` placeholder indexes.\n     * @param {Array} [argPos] The argument positions of the new function.\n     * @param {number} [ary] The arity cap of `func`.\n     * @param {number} [arity] The arity of `func`.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n      var isCurry = bitmask & WRAP_CURRY_FLAG,\n          newHolders = isCurry ? holders : undefined,\n          newHoldersRight = isCurry ? undefined : holders,\n          newPartials = isCurry ? partials : undefined,\n          newPartialsRight = isCurry ? undefined : partials;\n\n      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n      }\n      var newData = [\n        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n        newHoldersRight, argPos, ary, arity\n      ];\n\n      var result = wrapFunc.apply(undefined, newData);\n      if (isLaziable(func)) {\n        setData(result, newData);\n      }\n      result.placeholder = placeholder;\n      return setWrapToString(result, func, bitmask);\n    }\n\n    /**\n     * Creates a function like `_.round`.\n     *\n     * @private\n     * @param {string} methodName The name of the `Math` method to use when rounding.\n     * @returns {Function} Returns the new round function.\n     */\n    function createRound(methodName) {\n      var func = Math[methodName];\n      return function(number, precision) {\n        number = toNumber(number);\n        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n        if (precision && nativeIsFinite(number)) {\n          // Shift with exponential notation to avoid floating-point issues.\n          // See [MDN](https://mdn.io/round#Examples) for more details.\n          var pair = (toString(number) + 'e').split('e'),\n              value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n          pair = (toString(value) + 'e').split('e');\n          return +(pair[0] + 'e' + (+pair[1] - precision));\n        }\n        return func(number);\n      };\n    }\n\n    /**\n     * Creates a set object of `values`.\n     *\n     * @private\n     * @param {Array} values The values to add to the set.\n     * @returns {Object} Returns the new set.\n     */\n    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n      return new Set(values);\n    };\n\n    /**\n     * Creates a `_.toPairs` or `_.toPairsIn` function.\n     *\n     * @private\n     * @param {Function} keysFunc The function to get the keys of a given object.\n     * @returns {Function} Returns the new pairs function.\n     */\n    function createToPairs(keysFunc) {\n      return function(object) {\n        var tag = getTag(object);\n        if (tag == mapTag) {\n          return mapToArray(object);\n        }\n        if (tag == setTag) {\n          return setToPairs(object);\n        }\n        return baseToPairs(object, keysFunc(object));\n      };\n    }\n\n    /**\n     * Creates a function that either curries or invokes `func` with optional\n     * `this` binding and partially applied arguments.\n     *\n     * @private\n     * @param {Function|string} func The function or method name to wrap.\n     * @param {number} bitmask The bitmask flags.\n     *    1 - `_.bind`\n     *    2 - `_.bindKey`\n     *    4 - `_.curry` or `_.curryRight` of a bound function\n     *    8 - `_.curry`\n     *   16 - `_.curryRight`\n     *   32 - `_.partial`\n     *   64 - `_.partialRight`\n     *  128 - `_.rearg`\n     *  256 - `_.ary`\n     *  512 - `_.flip`\n     * @param {*} [thisArg] The `this` binding of `func`.\n     * @param {Array} [partials] The arguments to be partially applied.\n     * @param {Array} [holders] The `partials` placeholder indexes.\n     * @param {Array} [argPos] The argument positions of the new function.\n     * @param {number} [ary] The arity cap of `func`.\n     * @param {number} [arity] The arity of `func`.\n     * @returns {Function} Returns the new wrapped function.\n     */\n    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n      if (!isBindKey && typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      var length = partials ? partials.length : 0;\n      if (!length) {\n        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n        partials = holders = undefined;\n      }\n      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n      arity = arity === undefined ? arity : toInteger(arity);\n      length -= holders ? holders.length : 0;\n\n      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n        var partialsRight = partials,\n            holdersRight = holders;\n\n        partials = holders = undefined;\n      }\n      var data = isBindKey ? undefined : getData(func);\n\n      var newData = [\n        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n        argPos, ary, arity\n      ];\n\n      if (data) {\n        mergeData(newData, data);\n      }\n      func = newData[0];\n      bitmask = newData[1];\n      thisArg = newData[2];\n      partials = newData[3];\n      holders = newData[4];\n      arity = newData[9] = newData[9] === undefined\n        ? (isBindKey ? 0 : func.length)\n        : nativeMax(newData[9] - length, 0);\n\n      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n      }\n      if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n        var result = createBind(func, bitmask, thisArg);\n      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n        result = createCurry(func, bitmask, arity);\n      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n        result = createPartial(func, bitmask, thisArg, partials);\n      } else {\n        result = createHybrid.apply(undefined, newData);\n      }\n      var setter = data ? baseSetData : setData;\n      return setWrapToString(setter(result, newData), func, bitmask);\n    }\n\n    /**\n     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n     * of source objects to the destination object for all destination properties\n     * that resolve to `undefined`.\n     *\n     * @private\n     * @param {*} objValue The destination value.\n     * @param {*} srcValue The source value.\n     * @param {string} key The key of the property to assign.\n     * @param {Object} object The parent object of `objValue`.\n     * @returns {*} Returns the value to assign.\n     */\n    function customDefaultsAssignIn(objValue, srcValue, key, object) {\n      if (objValue === undefined ||\n          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n        return srcValue;\n      }\n      return objValue;\n    }\n\n    /**\n     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n     * objects into destination objects that are passed thru.\n     *\n     * @private\n     * @param {*} objValue The destination value.\n     * @param {*} srcValue The source value.\n     * @param {string} key The key of the property to merge.\n     * @param {Object} object The parent object of `objValue`.\n     * @param {Object} source The parent object of `srcValue`.\n     * @param {Object} [stack] Tracks traversed source values and their merged\n     *  counterparts.\n     * @returns {*} Returns the value to assign.\n     */\n    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n      if (isObject(objValue) && isObject(srcValue)) {\n        // Recursively merge objects and arrays (susceptible to call stack limits).\n        stack.set(srcValue, objValue);\n        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n        stack['delete'](srcValue);\n      }\n      return objValue;\n    }\n\n    /**\n     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n     * objects.\n     *\n     * @private\n     * @param {*} value The value to inspect.\n     * @param {string} key The key of the property to inspect.\n     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n     */\n    function customOmitClone(value) {\n      return isPlainObject(value) ? undefined : value;\n    }\n\n    /**\n     * A specialized version of `baseIsEqualDeep` for arrays with support for\n     * partial deep comparisons.\n     *\n     * @private\n     * @param {Array} array The array to compare.\n     * @param {Array} other The other array to compare.\n     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n     * @param {Function} customizer The function to customize comparisons.\n     * @param {Function} equalFunc The function to determine equivalents of values.\n     * @param {Object} stack Tracks traversed `array` and `other` objects.\n     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n     */\n    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n          arrLength = array.length,\n          othLength = other.length;\n\n      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n        return false;\n      }\n      // Check that cyclic values are equal.\n      var arrStacked = stack.get(array);\n      var othStacked = stack.get(other);\n      if (arrStacked && othStacked) {\n        return arrStacked == other && othStacked == array;\n      }\n      var index = -1,\n          result = true,\n          seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n      stack.set(array, other);\n      stack.set(other, array);\n\n      // Ignore non-index properties.\n      while (++index < arrLength) {\n        var arrValue = array[index],\n            othValue = other[index];\n\n        if (customizer) {\n          var compared = isPartial\n            ? customizer(othValue, arrValue, index, other, array, stack)\n            : customizer(arrValue, othValue, index, array, other, stack);\n        }\n        if (compared !== undefined) {\n          if (compared) {\n            continue;\n          }\n          result = false;\n          break;\n        }\n        // Recursively compare arrays (susceptible to call stack limits).\n        if (seen) {\n          if (!arraySome(other, function(othValue, othIndex) {\n                if (!cacheHas(seen, othIndex) &&\n                    (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n                  return seen.push(othIndex);\n                }\n              })) {\n            result = false;\n            break;\n          }\n        } else if (!(\n              arrValue === othValue ||\n                equalFunc(arrValue, othValue, bitmask, customizer, stack)\n            )) {\n          result = false;\n          break;\n        }\n      }\n      stack['delete'](array);\n      stack['delete'](other);\n      return result;\n    }\n\n    /**\n     * A specialized version of `baseIsEqualDeep` for comparing objects of\n     * the same `toStringTag`.\n     *\n     * **Note:** This function only supports comparing values with tags of\n     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n     *\n     * @private\n     * @param {Object} object The object to compare.\n     * @param {Object} other The other object to compare.\n     * @param {string} tag The `toStringTag` of the objects to compare.\n     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n     * @param {Function} customizer The function to customize comparisons.\n     * @param {Function} equalFunc The function to determine equivalents of values.\n     * @param {Object} stack Tracks traversed `object` and `other` objects.\n     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n     */\n    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n      switch (tag) {\n        case dataViewTag:\n          if ((object.byteLength != other.byteLength) ||\n              (object.byteOffset != other.byteOffset)) {\n            return false;\n          }\n          object = object.buffer;\n          other = other.buffer;\n\n        case arrayBufferTag:\n          if ((object.byteLength != other.byteLength) ||\n              !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n            return false;\n          }\n          return true;\n\n        case boolTag:\n        case dateTag:\n        case numberTag:\n          // Coerce booleans to `1` or `0` and dates to milliseconds.\n          // Invalid dates are coerced to `NaN`.\n          return eq(+object, +other);\n\n        case errorTag:\n          return object.name == other.name && object.message == other.message;\n\n        case regexpTag:\n        case stringTag:\n          // Coerce regexes to strings and treat strings, primitives and objects,\n          // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n          // for more details.\n          return object == (other + '');\n\n        case mapTag:\n          var convert = mapToArray;\n\n        case setTag:\n          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n          convert || (convert = setToArray);\n\n          if (object.size != other.size && !isPartial) {\n            return false;\n          }\n          // Assume cyclic values are equal.\n          var stacked = stack.get(object);\n          if (stacked) {\n            return stacked == other;\n          }\n          bitmask |= COMPARE_UNORDERED_FLAG;\n\n          // Recursively compare objects (susceptible to call stack limits).\n          stack.set(object, other);\n          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n          stack['delete'](object);\n          return result;\n\n        case symbolTag:\n          if (symbolValueOf) {\n            return symbolValueOf.call(object) == symbolValueOf.call(other);\n          }\n      }\n      return false;\n    }\n\n    /**\n     * A specialized version of `baseIsEqualDeep` for objects with support for\n     * partial deep comparisons.\n     *\n     * @private\n     * @param {Object} object The object to compare.\n     * @param {Object} other The other object to compare.\n     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n     * @param {Function} customizer The function to customize comparisons.\n     * @param {Function} equalFunc The function to determine equivalents of values.\n     * @param {Object} stack Tracks traversed `object` and `other` objects.\n     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n     */\n    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n          objProps = getAllKeys(object),\n          objLength = objProps.length,\n          othProps = getAllKeys(other),\n          othLength = othProps.length;\n\n      if (objLength != othLength && !isPartial) {\n        return false;\n      }\n      var index = objLength;\n      while (index--) {\n        var key = objProps[index];\n        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n          return false;\n        }\n      }\n      // Check that cyclic values are equal.\n      var objStacked = stack.get(object);\n      var othStacked = stack.get(other);\n      if (objStacked && othStacked) {\n        return objStacked == other && othStacked == object;\n      }\n      var result = true;\n      stack.set(object, other);\n      stack.set(other, object);\n\n      var skipCtor = isPartial;\n      while (++index < objLength) {\n        key = objProps[index];\n        var objValue = object[key],\n            othValue = other[key];\n\n        if (customizer) {\n          var compared = isPartial\n            ? customizer(othValue, objValue, key, other, object, stack)\n            : customizer(objValue, othValue, key, object, other, stack);\n        }\n        // Recursively compare objects (susceptible to call stack limits).\n        if (!(compared === undefined\n              ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n              : compared\n            )) {\n          result = false;\n          break;\n        }\n        skipCtor || (skipCtor = key == 'constructor');\n      }\n      if (result && !skipCtor) {\n        var objCtor = object.constructor,\n            othCtor = other.constructor;\n\n        // Non `Object` object instances with different constructors are not equal.\n        if (objCtor != othCtor &&\n            ('constructor' in object && 'constructor' in other) &&\n            !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n              typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n          result = false;\n        }\n      }\n      stack['delete'](object);\n      stack['delete'](other);\n      return result;\n    }\n\n    /**\n     * A specialized version of `baseRest` which flattens the rest array.\n     *\n     * @private\n     * @param {Function} func The function to apply a rest parameter to.\n     * @returns {Function} Returns the new function.\n     */\n    function flatRest(func) {\n      return setToString(overRest(func, undefined, flatten), func + '');\n    }\n\n    /**\n     * Creates an array of own enumerable property names and symbols of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names and symbols.\n     */\n    function getAllKeys(object) {\n      return baseGetAllKeys(object, keys, getSymbols);\n    }\n\n    /**\n     * Creates an array of own and inherited enumerable property names and\n     * symbols of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names and symbols.\n     */\n    function getAllKeysIn(object) {\n      return baseGetAllKeys(object, keysIn, getSymbolsIn);\n    }\n\n    /**\n     * Gets metadata for `func`.\n     *\n     * @private\n     * @param {Function} func The function to query.\n     * @returns {*} Returns the metadata for `func`.\n     */\n    var getData = !metaMap ? noop : function(func) {\n      return metaMap.get(func);\n    };\n\n    /**\n     * Gets the name of `func`.\n     *\n     * @private\n     * @param {Function} func The function to query.\n     * @returns {string} Returns the function name.\n     */\n    function getFuncName(func) {\n      var result = (func.name + ''),\n          array = realNames[result],\n          length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n      while (length--) {\n        var data = array[length],\n            otherFunc = data.func;\n        if (otherFunc == null || otherFunc == func) {\n          return data.name;\n        }\n      }\n      return result;\n    }\n\n    /**\n     * Gets the argument placeholder value for `func`.\n     *\n     * @private\n     * @param {Function} func The function to inspect.\n     * @returns {*} Returns the placeholder value.\n     */\n    function getHolder(func) {\n      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n      return object.placeholder;\n    }\n\n    /**\n     * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n     * this function returns the custom method, otherwise it returns `baseIteratee`.\n     * If arguments are provided, the chosen function is invoked with them and\n     * its result is returned.\n     *\n     * @private\n     * @param {*} [value] The value to convert to an iteratee.\n     * @param {number} [arity] The arity of the created iteratee.\n     * @returns {Function} Returns the chosen function or its result.\n     */\n    function getIteratee() {\n      var result = lodash.iteratee || iteratee;\n      result = result === iteratee ? baseIteratee : result;\n      return arguments.length ? result(arguments[0], arguments[1]) : result;\n    }\n\n    /**\n     * Gets the data for `map`.\n     *\n     * @private\n     * @param {Object} map The map to query.\n     * @param {string} key The reference key.\n     * @returns {*} Returns the map data.\n     */\n    function getMapData(map, key) {\n      var data = map.__data__;\n      return isKeyable(key)\n        ? data[typeof key == 'string' ? 'string' : 'hash']\n        : data.map;\n    }\n\n    /**\n     * Gets the property names, values, and compare flags of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the match data of `object`.\n     */\n    function getMatchData(object) {\n      var result = keys(object),\n          length = result.length;\n\n      while (length--) {\n        var key = result[length],\n            value = object[key];\n\n        result[length] = [key, value, isStrictComparable(value)];\n      }\n      return result;\n    }\n\n    /**\n     * Gets the native function at `key` of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {string} key The key of the method to get.\n     * @returns {*} Returns the function if it's native, else `undefined`.\n     */\n    function getNative(object, key) {\n      var value = getValue(object, key);\n      return baseIsNative(value) ? value : undefined;\n    }\n\n    /**\n     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n     *\n     * @private\n     * @param {*} value The value to query.\n     * @returns {string} Returns the raw `toStringTag`.\n     */\n    function getRawTag(value) {\n      var isOwn = hasOwnProperty.call(value, symToStringTag),\n          tag = value[symToStringTag];\n\n      try {\n        value[symToStringTag] = undefined;\n        var unmasked = true;\n      } catch (e) {}\n\n      var result = nativeObjectToString.call(value);\n      if (unmasked) {\n        if (isOwn) {\n          value[symToStringTag] = tag;\n        } else {\n          delete value[symToStringTag];\n        }\n      }\n      return result;\n    }\n\n    /**\n     * Creates an array of the own enumerable symbols of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of symbols.\n     */\n    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n      if (object == null) {\n        return [];\n      }\n      object = Object(object);\n      return arrayFilter(nativeGetSymbols(object), function(symbol) {\n        return propertyIsEnumerable.call(object, symbol);\n      });\n    };\n\n    /**\n     * Creates an array of the own and inherited enumerable symbols of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of symbols.\n     */\n    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n      var result = [];\n      while (object) {\n        arrayPush(result, getSymbols(object));\n        object = getPrototype(object);\n      }\n      return result;\n    };\n\n    /**\n     * Gets the `toStringTag` of `value`.\n     *\n     * @private\n     * @param {*} value The value to query.\n     * @returns {string} Returns the `toStringTag`.\n     */\n    var getTag = baseGetTag;\n\n    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n        (Map && getTag(new Map) != mapTag) ||\n        (Promise && getTag(Promise.resolve()) != promiseTag) ||\n        (Set && getTag(new Set) != setTag) ||\n        (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n      getTag = function(value) {\n        var result = baseGetTag(value),\n            Ctor = result == objectTag ? value.constructor : undefined,\n            ctorString = Ctor ? toSource(Ctor) : '';\n\n        if (ctorString) {\n          switch (ctorString) {\n            case dataViewCtorString: return dataViewTag;\n            case mapCtorString: return mapTag;\n            case promiseCtorString: return promiseTag;\n            case setCtorString: return setTag;\n            case weakMapCtorString: return weakMapTag;\n          }\n        }\n        return result;\n      };\n    }\n\n    /**\n     * Gets the view, applying any `transforms` to the `start` and `end` positions.\n     *\n     * @private\n     * @param {number} start The start of the view.\n     * @param {number} end The end of the view.\n     * @param {Array} transforms The transformations to apply to the view.\n     * @returns {Object} Returns an object containing the `start` and `end`\n     *  positions of the view.\n     */\n    function getView(start, end, transforms) {\n      var index = -1,\n          length = transforms.length;\n\n      while (++index < length) {\n        var data = transforms[index],\n            size = data.size;\n\n        switch (data.type) {\n          case 'drop':      start += size; break;\n          case 'dropRight': end -= size; break;\n          case 'take':      end = nativeMin(end, start + size); break;\n          case 'takeRight': start = nativeMax(start, end - size); break;\n        }\n      }\n      return { 'start': start, 'end': end };\n    }\n\n    /**\n     * Extracts wrapper details from the `source` body comment.\n     *\n     * @private\n     * @param {string} source The source to inspect.\n     * @returns {Array} Returns the wrapper details.\n     */\n    function getWrapDetails(source) {\n      var match = source.match(reWrapDetails);\n      return match ? match[1].split(reSplitDetails) : [];\n    }\n\n    /**\n     * Checks if `path` exists on `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path to check.\n     * @param {Function} hasFunc The function to check properties.\n     * @returns {boolean} Returns `true` if `path` exists, else `false`.\n     */\n    function hasPath(object, path, hasFunc) {\n      path = castPath(path, object);\n\n      var index = -1,\n          length = path.length,\n          result = false;\n\n      while (++index < length) {\n        var key = toKey(path[index]);\n        if (!(result = object != null && hasFunc(object, key))) {\n          break;\n        }\n        object = object[key];\n      }\n      if (result || ++index != length) {\n        return result;\n      }\n      length = object == null ? 0 : object.length;\n      return !!length && isLength(length) && isIndex(key, length) &&\n        (isArray(object) || isArguments(object));\n    }\n\n    /**\n     * Initializes an array clone.\n     *\n     * @private\n     * @param {Array} array The array to clone.\n     * @returns {Array} Returns the initialized clone.\n     */\n    function initCloneArray(array) {\n      var length = array.length,\n          result = new array.constructor(length);\n\n      // Add properties assigned by `RegExp#exec`.\n      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n        result.index = array.index;\n        result.input = array.input;\n      }\n      return result;\n    }\n\n    /**\n     * Initializes an object clone.\n     *\n     * @private\n     * @param {Object} object The object to clone.\n     * @returns {Object} Returns the initialized clone.\n     */\n    function initCloneObject(object) {\n      return (typeof object.constructor == 'function' && !isPrototype(object))\n        ? baseCreate(getPrototype(object))\n        : {};\n    }\n\n    /**\n     * Initializes an object clone based on its `toStringTag`.\n     *\n     * **Note:** This function only supports cloning values with tags of\n     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n     *\n     * @private\n     * @param {Object} object The object to clone.\n     * @param {string} tag The `toStringTag` of the object to clone.\n     * @param {boolean} [isDeep] Specify a deep clone.\n     * @returns {Object} Returns the initialized clone.\n     */\n    function initCloneByTag(object, tag, isDeep) {\n      var Ctor = object.constructor;\n      switch (tag) {\n        case arrayBufferTag:\n          return cloneArrayBuffer(object);\n\n        case boolTag:\n        case dateTag:\n          return new Ctor(+object);\n\n        case dataViewTag:\n          return cloneDataView(object, isDeep);\n\n        case float32Tag: case float64Tag:\n        case int8Tag: case int16Tag: case int32Tag:\n        case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n          return cloneTypedArray(object, isDeep);\n\n        case mapTag:\n          return new Ctor;\n\n        case numberTag:\n        case stringTag:\n          return new Ctor(object);\n\n        case regexpTag:\n          return cloneRegExp(object);\n\n        case setTag:\n          return new Ctor;\n\n        case symbolTag:\n          return cloneSymbol(object);\n      }\n    }\n\n    /**\n     * Inserts wrapper `details` in a comment at the top of the `source` body.\n     *\n     * @private\n     * @param {string} source The source to modify.\n     * @returns {Array} details The details to insert.\n     * @returns {string} Returns the modified source.\n     */\n    function insertWrapDetails(source, details) {\n      var length = details.length;\n      if (!length) {\n        return source;\n      }\n      var lastIndex = length - 1;\n      details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n      details = details.join(length > 2 ? ', ' : ' ');\n      return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n    }\n\n    /**\n     * Checks if `value` is a flattenable `arguments` object or array.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n     */\n    function isFlattenable(value) {\n      return isArray(value) || isArguments(value) ||\n        !!(spreadableSymbol && value && value[spreadableSymbol]);\n    }\n\n    /**\n     * Checks if `value` is a valid array-like index.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n     */\n    function isIndex(value, length) {\n      var type = typeof value;\n      length = length == null ? MAX_SAFE_INTEGER : length;\n\n      return !!length &&\n        (type == 'number' ||\n          (type != 'symbol' && reIsUint.test(value))) &&\n            (value > -1 && value % 1 == 0 && value < length);\n    }\n\n    /**\n     * Checks if the given arguments are from an iteratee call.\n     *\n     * @private\n     * @param {*} value The potential iteratee value argument.\n     * @param {*} index The potential iteratee index or key argument.\n     * @param {*} object The potential iteratee object argument.\n     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n     *  else `false`.\n     */\n    function isIterateeCall(value, index, object) {\n      if (!isObject(object)) {\n        return false;\n      }\n      var type = typeof index;\n      if (type == 'number'\n            ? (isArrayLike(object) && isIndex(index, object.length))\n            : (type == 'string' && index in object)\n          ) {\n        return eq(object[index], value);\n      }\n      return false;\n    }\n\n    /**\n     * Checks if `value` is a property name and not a property path.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @param {Object} [object] The object to query keys on.\n     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n     */\n    function isKey(value, object) {\n      if (isArray(value)) {\n        return false;\n      }\n      var type = typeof value;\n      if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n          value == null || isSymbol(value)) {\n        return true;\n      }\n      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n        (object != null && value in Object(object));\n    }\n\n    /**\n     * Checks if `value` is suitable for use as unique object key.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n     */\n    function isKeyable(value) {\n      var type = typeof value;\n      return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n        ? (value !== '__proto__')\n        : (value === null);\n    }\n\n    /**\n     * Checks if `func` has a lazy counterpart.\n     *\n     * @private\n     * @param {Function} func The function to check.\n     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n     *  else `false`.\n     */\n    function isLaziable(func) {\n      var funcName = getFuncName(func),\n          other = lodash[funcName];\n\n      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n        return false;\n      }\n      if (func === other) {\n        return true;\n      }\n      var data = getData(other);\n      return !!data && func === data[0];\n    }\n\n    /**\n     * Checks if `func` has its source masked.\n     *\n     * @private\n     * @param {Function} func The function to check.\n     * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n     */\n    function isMasked(func) {\n      return !!maskSrcKey && (maskSrcKey in func);\n    }\n\n    /**\n     * Checks if `func` is capable of being masked.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n     */\n    var isMaskable = coreJsData ? isFunction : stubFalse;\n\n    /**\n     * Checks if `value` is likely a prototype object.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n     */\n    function isPrototype(value) {\n      var Ctor = value && value.constructor,\n          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n      return value === proto;\n    }\n\n    /**\n     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n     *\n     * @private\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` if suitable for strict\n     *  equality comparisons, else `false`.\n     */\n    function isStrictComparable(value) {\n      return value === value && !isObject(value);\n    }\n\n    /**\n     * A specialized version of `matchesProperty` for source values suitable\n     * for strict equality comparisons, i.e. `===`.\n     *\n     * @private\n     * @param {string} key The key of the property to get.\n     * @param {*} srcValue The value to match.\n     * @returns {Function} Returns the new spec function.\n     */\n    function matchesStrictComparable(key, srcValue) {\n      return function(object) {\n        if (object == null) {\n          return false;\n        }\n        return object[key] === srcValue &&\n          (srcValue !== undefined || (key in Object(object)));\n      };\n    }\n\n    /**\n     * A specialized version of `_.memoize` which clears the memoized function's\n     * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n     *\n     * @private\n     * @param {Function} func The function to have its output memoized.\n     * @returns {Function} Returns the new memoized function.\n     */\n    function memoizeCapped(func) {\n      var result = memoize(func, function(key) {\n        if (cache.size === MAX_MEMOIZE_SIZE) {\n          cache.clear();\n        }\n        return key;\n      });\n\n      var cache = result.cache;\n      return result;\n    }\n\n    /**\n     * Merges the function metadata of `source` into `data`.\n     *\n     * Merging metadata reduces the number of wrappers used to invoke a function.\n     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n     * may be applied regardless of execution order. Methods like `_.ary` and\n     * `_.rearg` modify function arguments, making the order in which they are\n     * executed important, preventing the merging of metadata. However, we make\n     * an exception for a safe combined case where curried functions have `_.ary`\n     * and or `_.rearg` applied.\n     *\n     * @private\n     * @param {Array} data The destination metadata.\n     * @param {Array} source The source metadata.\n     * @returns {Array} Returns `data`.\n     */\n    function mergeData(data, source) {\n      var bitmask = data[1],\n          srcBitmask = source[1],\n          newBitmask = bitmask | srcBitmask,\n          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n      var isCombo =\n        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n      // Exit early if metadata can't be merged.\n      if (!(isCommon || isCombo)) {\n        return data;\n      }\n      // Use source `thisArg` if available.\n      if (srcBitmask & WRAP_BIND_FLAG) {\n        data[2] = source[2];\n        // Set when currying a bound function.\n        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n      }\n      // Compose partial arguments.\n      var value = source[3];\n      if (value) {\n        var partials = data[3];\n        data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n      }\n      // Compose partial right arguments.\n      value = source[5];\n      if (value) {\n        partials = data[5];\n        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n      }\n      // Use source `argPos` if available.\n      value = source[7];\n      if (value) {\n        data[7] = value;\n      }\n      // Use source `ary` if it's smaller.\n      if (srcBitmask & WRAP_ARY_FLAG) {\n        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n      }\n      // Use source `arity` if one is not provided.\n      if (data[9] == null) {\n        data[9] = source[9];\n      }\n      // Use source `func` and merge bitmasks.\n      data[0] = source[0];\n      data[1] = newBitmask;\n\n      return data;\n    }\n\n    /**\n     * This function is like\n     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n     * except that it includes inherited enumerable properties.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names.\n     */\n    function nativeKeysIn(object) {\n      var result = [];\n      if (object != null) {\n        for (var key in Object(object)) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n\n    /**\n     * Converts `value` to a string using `Object.prototype.toString`.\n     *\n     * @private\n     * @param {*} value The value to convert.\n     * @returns {string} Returns the converted string.\n     */\n    function objectToString(value) {\n      return nativeObjectToString.call(value);\n    }\n\n    /**\n     * A specialized version of `baseRest` which transforms the rest array.\n     *\n     * @private\n     * @param {Function} func The function to apply a rest parameter to.\n     * @param {number} [start=func.length-1] The start position of the rest parameter.\n     * @param {Function} transform The rest array transform.\n     * @returns {Function} Returns the new function.\n     */\n    function overRest(func, start, transform) {\n      start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n      return function() {\n        var args = arguments,\n            index = -1,\n            length = nativeMax(args.length - start, 0),\n            array = Array(length);\n\n        while (++index < length) {\n          array[index] = args[start + index];\n        }\n        index = -1;\n        var otherArgs = Array(start + 1);\n        while (++index < start) {\n          otherArgs[index] = args[index];\n        }\n        otherArgs[start] = transform(array);\n        return apply(func, this, otherArgs);\n      };\n    }\n\n    /**\n     * Gets the parent value at `path` of `object`.\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {Array} path The path to get the parent value of.\n     * @returns {*} Returns the parent value.\n     */\n    function parent(object, path) {\n      return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n    }\n\n    /**\n     * Reorder `array` according to the specified indexes where the element at\n     * the first index is assigned as the first element, the element at\n     * the second index is assigned as the second element, and so on.\n     *\n     * @private\n     * @param {Array} array The array to reorder.\n     * @param {Array} indexes The arranged array indexes.\n     * @returns {Array} Returns `array`.\n     */\n    function reorder(array, indexes) {\n      var arrLength = array.length,\n          length = nativeMin(indexes.length, arrLength),\n          oldArray = copyArray(array);\n\n      while (length--) {\n        var index = indexes[length];\n        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n      }\n      return array;\n    }\n\n    /**\n     * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n     *\n     * @private\n     * @param {Object} object The object to query.\n     * @param {string} key The key of the property to get.\n     * @returns {*} Returns the property value.\n     */\n    function safeGet(object, key) {\n      if (key === 'constructor' && typeof object[key] === 'function') {\n        return;\n      }\n\n      if (key == '__proto__') {\n        return;\n      }\n\n      return object[key];\n    }\n\n    /**\n     * Sets metadata for `func`.\n     *\n     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n     * period of time, it will trip its breaker and transition to an identity\n     * function to avoid garbage collection pauses in V8. See\n     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n     * for more details.\n     *\n     * @private\n     * @param {Function} func The function to associate metadata with.\n     * @param {*} data The metadata.\n     * @returns {Function} Returns `func`.\n     */\n    var setData = shortOut(baseSetData);\n\n    /**\n     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n     *\n     * @private\n     * @param {Function} func The function to delay.\n     * @param {number} wait The number of milliseconds to delay invocation.\n     * @returns {number|Object} Returns the timer id or timeout object.\n     */\n    var setTimeout = ctxSetTimeout || function(func, wait) {\n      return root.setTimeout(func, wait);\n    };\n\n    /**\n     * Sets the `toString` method of `func` to return `string`.\n     *\n     * @private\n     * @param {Function} func The function to modify.\n     * @param {Function} string The `toString` result.\n     * @returns {Function} Returns `func`.\n     */\n    var setToString = shortOut(baseSetToString);\n\n    /**\n     * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n     * with wrapper details in a comment at the top of the source body.\n     *\n     * @private\n     * @param {Function} wrapper The function to modify.\n     * @param {Function} reference The reference function.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @returns {Function} Returns `wrapper`.\n     */\n    function setWrapToString(wrapper, reference, bitmask) {\n      var source = (reference + '');\n      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n    }\n\n    /**\n     * Creates a function that'll short out and invoke `identity` instead\n     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n     * milliseconds.\n     *\n     * @private\n     * @param {Function} func The function to restrict.\n     * @returns {Function} Returns the new shortable function.\n     */\n    function shortOut(func) {\n      var count = 0,\n          lastCalled = 0;\n\n      return function() {\n        var stamp = nativeNow(),\n            remaining = HOT_SPAN - (stamp - lastCalled);\n\n        lastCalled = stamp;\n        if (remaining > 0) {\n          if (++count >= HOT_COUNT) {\n            return arguments[0];\n          }\n        } else {\n          count = 0;\n        }\n        return func.apply(undefined, arguments);\n      };\n    }\n\n    /**\n     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n     *\n     * @private\n     * @param {Array} array The array to shuffle.\n     * @param {number} [size=array.length] The size of `array`.\n     * @returns {Array} Returns `array`.\n     */\n    function shuffleSelf(array, size) {\n      var index = -1,\n          length = array.length,\n          lastIndex = length - 1;\n\n      size = size === undefined ? length : size;\n      while (++index < size) {\n        var rand = baseRandom(index, lastIndex),\n            value = array[rand];\n\n        array[rand] = array[index];\n        array[index] = value;\n      }\n      array.length = size;\n      return array;\n    }\n\n    /**\n     * Converts `string` to a property path array.\n     *\n     * @private\n     * @param {string} string The string to convert.\n     * @returns {Array} Returns the property path array.\n     */\n    var stringToPath = memoizeCapped(function(string) {\n      var result = [];\n      if (string.charCodeAt(0) === 46 /* . */) {\n        result.push('');\n      }\n      string.replace(rePropName, function(match, number, quote, subString) {\n        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n      });\n      return result;\n    });\n\n    /**\n     * Converts `value` to a string key if it's not a string or symbol.\n     *\n     * @private\n     * @param {*} value The value to inspect.\n     * @returns {string|symbol} Returns the key.\n     */\n    function toKey(value) {\n      if (typeof value == 'string' || isSymbol(value)) {\n        return value;\n      }\n      var result = (value + '');\n      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n    }\n\n    /**\n     * Converts `func` to its source code.\n     *\n     * @private\n     * @param {Function} func The function to convert.\n     * @returns {string} Returns the source code.\n     */\n    function toSource(func) {\n      if (func != null) {\n        try {\n          return funcToString.call(func);\n        } catch (e) {}\n        try {\n          return (func + '');\n        } catch (e) {}\n      }\n      return '';\n    }\n\n    /**\n     * Updates wrapper `details` based on `bitmask` flags.\n     *\n     * @private\n     * @returns {Array} details The details to modify.\n     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n     * @returns {Array} Returns `details`.\n     */\n    function updateWrapDetails(details, bitmask) {\n      arrayEach(wrapFlags, function(pair) {\n        var value = '_.' + pair[0];\n        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n          details.push(value);\n        }\n      });\n      return details.sort();\n    }\n\n    /**\n     * Creates a clone of `wrapper`.\n     *\n     * @private\n     * @param {Object} wrapper The wrapper to clone.\n     * @returns {Object} Returns the cloned wrapper.\n     */\n    function wrapperClone(wrapper) {\n      if (wrapper instanceof LazyWrapper) {\n        return wrapper.clone();\n      }\n      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n      result.__actions__ = copyArray(wrapper.__actions__);\n      result.__index__  = wrapper.__index__;\n      result.__values__ = wrapper.__values__;\n      return result;\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates an array of elements split into groups the length of `size`.\n     * If `array` can't be split evenly, the final chunk will be the remaining\n     * elements.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to process.\n     * @param {number} [size=1] The length of each chunk\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the new array of chunks.\n     * @example\n     *\n     * _.chunk(['a', 'b', 'c', 'd'], 2);\n     * // => [['a', 'b'], ['c', 'd']]\n     *\n     * _.chunk(['a', 'b', 'c', 'd'], 3);\n     * // => [['a', 'b', 'c'], ['d']]\n     */\n    function chunk(array, size, guard) {\n      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n        size = 1;\n      } else {\n        size = nativeMax(toInteger(size), 0);\n      }\n      var length = array == null ? 0 : array.length;\n      if (!length || size < 1) {\n        return [];\n      }\n      var index = 0,\n          resIndex = 0,\n          result = Array(nativeCeil(length / size));\n\n      while (index < length) {\n        result[resIndex++] = baseSlice(array, index, (index += size));\n      }\n      return result;\n    }\n\n    /**\n     * Creates an array with all falsey values removed. The values `false`, `null`,\n     * `0`, `-0`, `0n`, `\"\"`, `undefined`, and `NaN` are falsy.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to compact.\n     * @returns {Array} Returns the new array of filtered values.\n     * @example\n     *\n     * _.compact([0, 1, false, 2, '', 3]);\n     * // => [1, 2, 3]\n     */\n    function compact(array) {\n      var index = -1,\n          length = array == null ? 0 : array.length,\n          resIndex = 0,\n          result = [];\n\n      while (++index < length) {\n        var value = array[index];\n        if (value) {\n          result[resIndex++] = value;\n        }\n      }\n      return result;\n    }\n\n    /**\n     * Creates a new array concatenating `array` with any additional arrays\n     * and/or values.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to concatenate.\n     * @param {...*} [values] The values to concatenate.\n     * @returns {Array} Returns the new concatenated array.\n     * @example\n     *\n     * var array = [1];\n     * var other = _.concat(array, 2, [3], [[4]]);\n     *\n     * console.log(other);\n     * // => [1, 2, 3, [4]]\n     *\n     * console.log(array);\n     * // => [1]\n     */\n    function concat() {\n      var length = arguments.length;\n      if (!length) {\n        return [];\n      }\n      var args = Array(length - 1),\n          array = arguments[0],\n          index = length;\n\n      while (index--) {\n        args[index - 1] = arguments[index];\n      }\n      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n    }\n\n    /**\n     * Creates an array of `array` values not included in the other given arrays\n     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons. The order and references of result values are\n     * determined by the first array.\n     *\n     * **Note:** Unlike `_.pullAll`, this method returns a new array.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {...Array} [values] The values to exclude.\n     * @returns {Array} Returns the new array of filtered values.\n     * @see _.without, _.xor\n     * @example\n     *\n     * _.difference([2, 1], [2, 3]);\n     * // => [1]\n     */\n    var difference = baseRest(function(array, values) {\n      return isArrayLikeObject(array)\n        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n        : [];\n    });\n\n    /**\n     * This method is like `_.difference` except that it accepts `iteratee` which\n     * is invoked for each element of `array` and `values` to generate the criterion\n     * by which they're compared. The order and references of result values are\n     * determined by the first array. The iteratee is invoked with one argument:\n     * (value).\n     *\n     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {...Array} [values] The values to exclude.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns the new array of filtered values.\n     * @example\n     *\n     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n     * // => [1.2]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n     * // => [{ 'x': 2 }]\n     */\n    var differenceBy = baseRest(function(array, values) {\n      var iteratee = last(values);\n      if (isArrayLikeObject(iteratee)) {\n        iteratee = undefined;\n      }\n      return isArrayLikeObject(array)\n        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n        : [];\n    });\n\n    /**\n     * This method is like `_.difference` except that it accepts `comparator`\n     * which is invoked to compare elements of `array` to `values`. The order and\n     * references of result values are determined by the first array. The comparator\n     * is invoked with two arguments: (arrVal, othVal).\n     *\n     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {...Array} [values] The values to exclude.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of filtered values.\n     * @example\n     *\n     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n     *\n     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n     * // => [{ 'x': 2, 'y': 1 }]\n     */\n    var differenceWith = baseRest(function(array, values) {\n      var comparator = last(values);\n      if (isArrayLikeObject(comparator)) {\n        comparator = undefined;\n      }\n      return isArrayLikeObject(array)\n        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n        : [];\n    });\n\n    /**\n     * Creates a slice of `array` with `n` elements dropped from the beginning.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.5.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {number} [n=1] The number of elements to drop.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.drop([1, 2, 3]);\n     * // => [2, 3]\n     *\n     * _.drop([1, 2, 3], 2);\n     * // => [3]\n     *\n     * _.drop([1, 2, 3], 5);\n     * // => []\n     *\n     * _.drop([1, 2, 3], 0);\n     * // => [1, 2, 3]\n     */\n    function drop(array, n, guard) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      n = (guard || n === undefined) ? 1 : toInteger(n);\n      return baseSlice(array, n < 0 ? 0 : n, length);\n    }\n\n    /**\n     * Creates a slice of `array` with `n` elements dropped from the end.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {number} [n=1] The number of elements to drop.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.dropRight([1, 2, 3]);\n     * // => [1, 2]\n     *\n     * _.dropRight([1, 2, 3], 2);\n     * // => [1]\n     *\n     * _.dropRight([1, 2, 3], 5);\n     * // => []\n     *\n     * _.dropRight([1, 2, 3], 0);\n     * // => [1, 2, 3]\n     */\n    function dropRight(array, n, guard) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      n = (guard || n === undefined) ? 1 : toInteger(n);\n      n = length - n;\n      return baseSlice(array, 0, n < 0 ? 0 : n);\n    }\n\n    /**\n     * Creates a slice of `array` excluding elements dropped from the end.\n     * Elements are dropped until `predicate` returns falsey. The predicate is\n     * invoked with three arguments: (value, index, array).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': true },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': false }\n     * ];\n     *\n     * _.dropRightWhile(users, function(o) { return !o.active; });\n     * // => objects for ['barney']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n     * // => objects for ['barney', 'fred']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.dropRightWhile(users, ['active', false]);\n     * // => objects for ['barney']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.dropRightWhile(users, 'active');\n     * // => objects for ['barney', 'fred', 'pebbles']\n     */\n    function dropRightWhile(array, predicate) {\n      return (array && array.length)\n        ? baseWhile(array, getIteratee(predicate, 3), true, true)\n        : [];\n    }\n\n    /**\n     * Creates a slice of `array` excluding elements dropped from the beginning.\n     * Elements are dropped until `predicate` returns falsey. The predicate is\n     * invoked with three arguments: (value, index, array).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': false },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': true }\n     * ];\n     *\n     * _.dropWhile(users, function(o) { return !o.active; });\n     * // => objects for ['pebbles']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.dropWhile(users, { 'user': 'barney', 'active': false });\n     * // => objects for ['fred', 'pebbles']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.dropWhile(users, ['active', false]);\n     * // => objects for ['pebbles']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.dropWhile(users, 'active');\n     * // => objects for ['barney', 'fred', 'pebbles']\n     */\n    function dropWhile(array, predicate) {\n      return (array && array.length)\n        ? baseWhile(array, getIteratee(predicate, 3), true)\n        : [];\n    }\n\n    /**\n     * Fills elements of `array` with `value` from `start` up to, but not\n     * including, `end`.\n     *\n     * **Note:** This method mutates `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.2.0\n     * @category Array\n     * @param {Array} array The array to fill.\n     * @param {*} value The value to fill `array` with.\n     * @param {number} [start=0] The start position.\n     * @param {number} [end=array.length] The end position.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = [1, 2, 3];\n     *\n     * _.fill(array, 'a');\n     * console.log(array);\n     * // => ['a', 'a', 'a']\n     *\n     * _.fill(Array(3), 2);\n     * // => [2, 2, 2]\n     *\n     * _.fill([4, 6, 8, 10], '*', 1, 3);\n     * // => [4, '*', '*', 10]\n     */\n    function fill(array, value, start, end) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n        start = 0;\n        end = length;\n      }\n      return baseFill(array, value, start, end);\n    }\n\n    /**\n     * This method is like `_.find` except that it returns the index of the first\n     * element `predicate` returns truthy for instead of the element itself.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param {number} [fromIndex=0] The index to search from.\n     * @returns {number} Returns the index of the found element, else `-1`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': false },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': true }\n     * ];\n     *\n     * _.findIndex(users, function(o) { return o.user == 'barney'; });\n     * // => 0\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.findIndex(users, { 'user': 'fred', 'active': false });\n     * // => 1\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.findIndex(users, ['active', false]);\n     * // => 0\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.findIndex(users, 'active');\n     * // => 2\n     */\n    function findIndex(array, predicate, fromIndex) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return -1;\n      }\n      var index = fromIndex == null ? 0 : toInteger(fromIndex);\n      if (index < 0) {\n        index = nativeMax(length + index, 0);\n      }\n      return baseFindIndex(array, getIteratee(predicate, 3), index);\n    }\n\n    /**\n     * This method is like `_.findIndex` except that it iterates over elements\n     * of `collection` from right to left.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param {number} [fromIndex=array.length-1] The index to search from.\n     * @returns {number} Returns the index of the found element, else `-1`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': true },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': false }\n     * ];\n     *\n     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n     * // => 2\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n     * // => 0\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.findLastIndex(users, ['active', false]);\n     * // => 2\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.findLastIndex(users, 'active');\n     * // => 0\n     */\n    function findLastIndex(array, predicate, fromIndex) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return -1;\n      }\n      var index = length - 1;\n      if (fromIndex !== undefined) {\n        index = toInteger(fromIndex);\n        index = fromIndex < 0\n          ? nativeMax(length + index, 0)\n          : nativeMin(index, length - 1);\n      }\n      return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n    }\n\n    /**\n     * Flattens `array` a single level deep.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to flatten.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * _.flatten([1, [2, [3, [4]], 5]]);\n     * // => [1, 2, [3, [4]], 5]\n     */\n    function flatten(array) {\n      var length = array == null ? 0 : array.length;\n      return length ? baseFlatten(array, 1) : [];\n    }\n\n    /**\n     * Recursively flattens `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to flatten.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * _.flattenDeep([1, [2, [3, [4]], 5]]);\n     * // => [1, 2, 3, 4, 5]\n     */\n    function flattenDeep(array) {\n      var length = array == null ? 0 : array.length;\n      return length ? baseFlatten(array, INFINITY) : [];\n    }\n\n    /**\n     * Recursively flatten `array` up to `depth` times.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.4.0\n     * @category Array\n     * @param {Array} array The array to flatten.\n     * @param {number} [depth=1] The maximum recursion depth.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * var array = [1, [2, [3, [4]], 5]];\n     *\n     * _.flattenDepth(array, 1);\n     * // => [1, 2, [3, [4]], 5]\n     *\n     * _.flattenDepth(array, 2);\n     * // => [1, 2, 3, [4], 5]\n     */\n    function flattenDepth(array, depth) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      depth = depth === undefined ? 1 : toInteger(depth);\n      return baseFlatten(array, depth);\n    }\n\n    /**\n     * The inverse of `_.toPairs`; this method returns an object composed\n     * from key-value `pairs`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} pairs The key-value pairs.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * _.fromPairs([['a', 1], ['b', 2]]);\n     * // => { 'a': 1, 'b': 2 }\n     */\n    function fromPairs(pairs) {\n      var index = -1,\n          length = pairs == null ? 0 : pairs.length,\n          result = {};\n\n      while (++index < length) {\n        var pair = pairs[index];\n        baseAssignValue(result, pair[0], pair[1]);\n      }\n      return result;\n    }\n\n    /**\n     * Gets the first element of `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @alias first\n     * @category Array\n     * @param {Array} array The array to query.\n     * @returns {*} Returns the first element of `array`.\n     * @example\n     *\n     * _.head([1, 2, 3]);\n     * // => 1\n     *\n     * _.head([]);\n     * // => undefined\n     */\n    function head(array) {\n      return (array && array.length) ? array[0] : undefined;\n    }\n\n    /**\n     * Gets the index at which the first occurrence of `value` is found in `array`\n     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons. If `fromIndex` is negative, it's used as the\n     * offset from the end of `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {*} value The value to search for.\n     * @param {number} [fromIndex=0] The index to search from.\n     * @returns {number} Returns the index of the matched value, else `-1`.\n     * @example\n     *\n     * _.indexOf([1, 2, 1, 2], 2);\n     * // => 1\n     *\n     * // Search from the `fromIndex`.\n     * _.indexOf([1, 2, 1, 2], 2, 2);\n     * // => 3\n     */\n    function indexOf(array, value, fromIndex) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return -1;\n      }\n      var index = fromIndex == null ? 0 : toInteger(fromIndex);\n      if (index < 0) {\n        index = nativeMax(length + index, 0);\n      }\n      return baseIndexOf(array, value, index);\n    }\n\n    /**\n     * Gets all but the last element of `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.initial([1, 2, 3]);\n     * // => [1, 2]\n     */\n    function initial(array) {\n      var length = array == null ? 0 : array.length;\n      return length ? baseSlice(array, 0, -1) : [];\n    }\n\n    /**\n     * Creates an array of unique values that are included in all given arrays\n     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons. The order and references of result values are\n     * determined by the first array.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @returns {Array} Returns the new array of intersecting values.\n     * @example\n     *\n     * _.intersection([2, 1], [2, 3]);\n     * // => [2]\n     */\n    var intersection = baseRest(function(arrays) {\n      var mapped = arrayMap(arrays, castArrayLikeObject);\n      return (mapped.length && mapped[0] === arrays[0])\n        ? baseIntersection(mapped)\n        : [];\n    });\n\n    /**\n     * This method is like `_.intersection` except that it accepts `iteratee`\n     * which is invoked for each element of each `arrays` to generate the criterion\n     * by which they're compared. The order and references of result values are\n     * determined by the first array. The iteratee is invoked with one argument:\n     * (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns the new array of intersecting values.\n     * @example\n     *\n     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n     * // => [2.1]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n     * // => [{ 'x': 1 }]\n     */\n    var intersectionBy = baseRest(function(arrays) {\n      var iteratee = last(arrays),\n          mapped = arrayMap(arrays, castArrayLikeObject);\n\n      if (iteratee === last(mapped)) {\n        iteratee = undefined;\n      } else {\n        mapped.pop();\n      }\n      return (mapped.length && mapped[0] === arrays[0])\n        ? baseIntersection(mapped, getIteratee(iteratee, 2))\n        : [];\n    });\n\n    /**\n     * This method is like `_.intersection` except that it accepts `comparator`\n     * which is invoked to compare elements of `arrays`. The order and references\n     * of result values are determined by the first array. The comparator is\n     * invoked with two arguments: (arrVal, othVal).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of intersecting values.\n     * @example\n     *\n     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n     *\n     * _.intersectionWith(objects, others, _.isEqual);\n     * // => [{ 'x': 1, 'y': 2 }]\n     */\n    var intersectionWith = baseRest(function(arrays) {\n      var comparator = last(arrays),\n          mapped = arrayMap(arrays, castArrayLikeObject);\n\n      comparator = typeof comparator == 'function' ? comparator : undefined;\n      if (comparator) {\n        mapped.pop();\n      }\n      return (mapped.length && mapped[0] === arrays[0])\n        ? baseIntersection(mapped, undefined, comparator)\n        : [];\n    });\n\n    /**\n     * Converts all elements in `array` into a string separated by `separator`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to convert.\n     * @param {string} [separator=','] The element separator.\n     * @returns {string} Returns the joined string.\n     * @example\n     *\n     * _.join(['a', 'b', 'c'], '~');\n     * // => 'a~b~c'\n     */\n    function join(array, separator) {\n      return array == null ? '' : nativeJoin.call(array, separator);\n    }\n\n    /**\n     * Gets the last element of `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @returns {*} Returns the last element of `array`.\n     * @example\n     *\n     * _.last([1, 2, 3]);\n     * // => 3\n     */\n    function last(array) {\n      var length = array == null ? 0 : array.length;\n      return length ? array[length - 1] : undefined;\n    }\n\n    /**\n     * This method is like `_.indexOf` except that it iterates over elements of\n     * `array` from right to left.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {*} value The value to search for.\n     * @param {number} [fromIndex=array.length-1] The index to search from.\n     * @returns {number} Returns the index of the matched value, else `-1`.\n     * @example\n     *\n     * _.lastIndexOf([1, 2, 1, 2], 2);\n     * // => 3\n     *\n     * // Search from the `fromIndex`.\n     * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n     * // => 1\n     */\n    function lastIndexOf(array, value, fromIndex) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return -1;\n      }\n      var index = length;\n      if (fromIndex !== undefined) {\n        index = toInteger(fromIndex);\n        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n      }\n      return value === value\n        ? strictLastIndexOf(array, value, index)\n        : baseFindIndex(array, baseIsNaN, index, true);\n    }\n\n    /**\n     * Gets the element at index `n` of `array`. If `n` is negative, the nth\n     * element from the end is returned.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.11.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {number} [n=0] The index of the element to return.\n     * @returns {*} Returns the nth element of `array`.\n     * @example\n     *\n     * var array = ['a', 'b', 'c', 'd'];\n     *\n     * _.nth(array, 1);\n     * // => 'b'\n     *\n     * _.nth(array, -2);\n     * // => 'c';\n     */\n    function nth(array, n) {\n      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n    }\n\n    /**\n     * Removes all given values from `array` using\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons.\n     *\n     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n     * to remove elements from an array by predicate.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {...*} [values] The values to remove.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n     *\n     * _.pull(array, 'a', 'c');\n     * console.log(array);\n     * // => ['b', 'b']\n     */\n    var pull = baseRest(pullAll);\n\n    /**\n     * This method is like `_.pull` except that it accepts an array of values to remove.\n     *\n     * **Note:** Unlike `_.difference`, this method mutates `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {Array} values The values to remove.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n     *\n     * _.pullAll(array, ['a', 'c']);\n     * console.log(array);\n     * // => ['b', 'b']\n     */\n    function pullAll(array, values) {\n      return (array && array.length && values && values.length)\n        ? basePullAll(array, values)\n        : array;\n    }\n\n    /**\n     * This method is like `_.pullAll` except that it accepts `iteratee` which is\n     * invoked for each element of `array` and `values` to generate the criterion\n     * by which they're compared. The iteratee is invoked with one argument: (value).\n     *\n     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {Array} values The values to remove.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n     *\n     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n     * console.log(array);\n     * // => [{ 'x': 2 }]\n     */\n    function pullAllBy(array, values, iteratee) {\n      return (array && array.length && values && values.length)\n        ? basePullAll(array, values, getIteratee(iteratee, 2))\n        : array;\n    }\n\n    /**\n     * This method is like `_.pullAll` except that it accepts `comparator` which\n     * is invoked to compare elements of `array` to `values`. The comparator is\n     * invoked with two arguments: (arrVal, othVal).\n     *\n     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.6.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {Array} values The values to remove.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n     *\n     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n     * console.log(array);\n     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n     */\n    function pullAllWith(array, values, comparator) {\n      return (array && array.length && values && values.length)\n        ? basePullAll(array, values, undefined, comparator)\n        : array;\n    }\n\n    /**\n     * Removes elements from `array` corresponding to `indexes` and returns an\n     * array of removed elements.\n     *\n     * **Note:** Unlike `_.at`, this method mutates `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n     * @returns {Array} Returns the new array of removed elements.\n     * @example\n     *\n     * var array = ['a', 'b', 'c', 'd'];\n     * var pulled = _.pullAt(array, [1, 3]);\n     *\n     * console.log(array);\n     * // => ['a', 'c']\n     *\n     * console.log(pulled);\n     * // => ['b', 'd']\n     */\n    var pullAt = flatRest(function(array, indexes) {\n      var length = array == null ? 0 : array.length,\n          result = baseAt(array, indexes);\n\n      basePullAt(array, arrayMap(indexes, function(index) {\n        return isIndex(index, length) ? +index : index;\n      }).sort(compareAscending));\n\n      return result;\n    });\n\n    /**\n     * Removes all elements from `array` that `predicate` returns truthy for\n     * and returns an array of the removed elements. The predicate is invoked\n     * with three arguments: (value, index, array).\n     *\n     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n     * to pull elements from an array by value.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new array of removed elements.\n     * @example\n     *\n     * var array = [1, 2, 3, 4];\n     * var evens = _.remove(array, function(n) {\n     *   return n % 2 == 0;\n     * });\n     *\n     * console.log(array);\n     * // => [1, 3]\n     *\n     * console.log(evens);\n     * // => [2, 4]\n     */\n    function remove(array, predicate) {\n      var result = [];\n      if (!(array && array.length)) {\n        return result;\n      }\n      var index = -1,\n          indexes = [],\n          length = array.length;\n\n      predicate = getIteratee(predicate, 3);\n      while (++index < length) {\n        var value = array[index];\n        if (predicate(value, index, array)) {\n          result.push(value);\n          indexes.push(index);\n        }\n      }\n      basePullAt(array, indexes);\n      return result;\n    }\n\n    /**\n     * Reverses `array` so that the first element becomes the last, the second\n     * element becomes the second to last, and so on.\n     *\n     * **Note:** This method mutates `array` and is based on\n     * [`Array#reverse`](https://mdn.io/Array/reverse).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to modify.\n     * @returns {Array} Returns `array`.\n     * @example\n     *\n     * var array = [1, 2, 3];\n     *\n     * _.reverse(array);\n     * // => [3, 2, 1]\n     *\n     * console.log(array);\n     * // => [3, 2, 1]\n     */\n    function reverse(array) {\n      return array == null ? array : nativeReverse.call(array);\n    }\n\n    /**\n     * Creates a slice of `array` from `start` up to, but not including, `end`.\n     *\n     * **Note:** This method is used instead of\n     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n     * returned.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to slice.\n     * @param {number} [start=0] The start position.\n     * @param {number} [end=array.length] The end position.\n     * @returns {Array} Returns the slice of `array`.\n     */\n    function slice(array, start, end) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n        start = 0;\n        end = length;\n      }\n      else {\n        start = start == null ? 0 : toInteger(start);\n        end = end === undefined ? length : toInteger(end);\n      }\n      return baseSlice(array, start, end);\n    }\n\n    /**\n     * Uses a binary search to determine the lowest index at which `value`\n     * should be inserted into `array` in order to maintain its sort order.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     * @example\n     *\n     * _.sortedIndex([30, 50], 40);\n     * // => 1\n     */\n    function sortedIndex(array, value) {\n      return baseSortedIndex(array, value);\n    }\n\n    /**\n     * This method is like `_.sortedIndex` except that it accepts `iteratee`\n     * which is invoked for `value` and each element of `array` to compute their\n     * sort ranking. The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     * @example\n     *\n     * var objects = [{ 'x': 4 }, { 'x': 5 }];\n     *\n     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n     * // => 0\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n     * // => 0\n     */\n    function sortedIndexBy(array, value, iteratee) {\n      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n    }\n\n    /**\n     * This method is like `_.indexOf` except that it performs a binary\n     * search on a sorted `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {*} value The value to search for.\n     * @returns {number} Returns the index of the matched value, else `-1`.\n     * @example\n     *\n     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n     * // => 1\n     */\n    function sortedIndexOf(array, value) {\n      var length = array == null ? 0 : array.length;\n      if (length) {\n        var index = baseSortedIndex(array, value);\n        if (index < length && eq(array[index], value)) {\n          return index;\n        }\n      }\n      return -1;\n    }\n\n    /**\n     * This method is like `_.sortedIndex` except that it returns the highest\n     * index at which `value` should be inserted into `array` in order to\n     * maintain its sort order.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     * @example\n     *\n     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n     * // => 4\n     */\n    function sortedLastIndex(array, value) {\n      return baseSortedIndex(array, value, true);\n    }\n\n    /**\n     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n     * which is invoked for `value` and each element of `array` to compute their\n     * sort ranking. The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The sorted array to inspect.\n     * @param {*} value The value to evaluate.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {number} Returns the index at which `value` should be inserted\n     *  into `array`.\n     * @example\n     *\n     * var objects = [{ 'x': 4 }, { 'x': 5 }];\n     *\n     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n     * // => 1\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n     * // => 1\n     */\n    function sortedLastIndexBy(array, value, iteratee) {\n      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n    }\n\n    /**\n     * This method is like `_.lastIndexOf` except that it performs a binary\n     * search on a sorted `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {*} value The value to search for.\n     * @returns {number} Returns the index of the matched value, else `-1`.\n     * @example\n     *\n     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n     * // => 3\n     */\n    function sortedLastIndexOf(array, value) {\n      var length = array == null ? 0 : array.length;\n      if (length) {\n        var index = baseSortedIndex(array, value, true) - 1;\n        if (eq(array[index], value)) {\n          return index;\n        }\n      }\n      return -1;\n    }\n\n    /**\n     * This method is like `_.uniq` except that it's designed and optimized\n     * for sorted arrays.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @returns {Array} Returns the new duplicate free array.\n     * @example\n     *\n     * _.sortedUniq([1, 1, 2]);\n     * // => [1, 2]\n     */\n    function sortedUniq(array) {\n      return (array && array.length)\n        ? baseSortedUniq(array)\n        : [];\n    }\n\n    /**\n     * This method is like `_.uniqBy` except that it's designed and optimized\n     * for sorted arrays.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {Function} [iteratee] The iteratee invoked per element.\n     * @returns {Array} Returns the new duplicate free array.\n     * @example\n     *\n     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n     * // => [1.1, 2.3]\n     */\n    function sortedUniqBy(array, iteratee) {\n      return (array && array.length)\n        ? baseSortedUniq(array, getIteratee(iteratee, 2))\n        : [];\n    }\n\n    /**\n     * Gets all but the first element of `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.tail([1, 2, 3]);\n     * // => [2, 3]\n     */\n    function tail(array) {\n      var length = array == null ? 0 : array.length;\n      return length ? baseSlice(array, 1, length) : [];\n    }\n\n    /**\n     * Creates a slice of `array` with `n` elements taken from the beginning.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {number} [n=1] The number of elements to take.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.take([1, 2, 3]);\n     * // => [1]\n     *\n     * _.take([1, 2, 3], 2);\n     * // => [1, 2]\n     *\n     * _.take([1, 2, 3], 5);\n     * // => [1, 2, 3]\n     *\n     * _.take([1, 2, 3], 0);\n     * // => []\n     */\n    function take(array, n, guard) {\n      if (!(array && array.length)) {\n        return [];\n      }\n      n = (guard || n === undefined) ? 1 : toInteger(n);\n      return baseSlice(array, 0, n < 0 ? 0 : n);\n    }\n\n    /**\n     * Creates a slice of `array` with `n` elements taken from the end.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {number} [n=1] The number of elements to take.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * _.takeRight([1, 2, 3]);\n     * // => [3]\n     *\n     * _.takeRight([1, 2, 3], 2);\n     * // => [2, 3]\n     *\n     * _.takeRight([1, 2, 3], 5);\n     * // => [1, 2, 3]\n     *\n     * _.takeRight([1, 2, 3], 0);\n     * // => []\n     */\n    function takeRight(array, n, guard) {\n      var length = array == null ? 0 : array.length;\n      if (!length) {\n        return [];\n      }\n      n = (guard || n === undefined) ? 1 : toInteger(n);\n      n = length - n;\n      return baseSlice(array, n < 0 ? 0 : n, length);\n    }\n\n    /**\n     * Creates a slice of `array` with elements taken from the end. Elements are\n     * taken until `predicate` returns falsey. The predicate is invoked with\n     * three arguments: (value, index, array).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': true },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': false }\n     * ];\n     *\n     * _.takeRightWhile(users, function(o) { return !o.active; });\n     * // => objects for ['fred', 'pebbles']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n     * // => objects for ['pebbles']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.takeRightWhile(users, ['active', false]);\n     * // => objects for ['fred', 'pebbles']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.takeRightWhile(users, 'active');\n     * // => []\n     */\n    function takeRightWhile(array, predicate) {\n      return (array && array.length)\n        ? baseWhile(array, getIteratee(predicate, 3), false, true)\n        : [];\n    }\n\n    /**\n     * Creates a slice of `array` with elements taken from the beginning. Elements\n     * are taken until `predicate` returns falsey. The predicate is invoked with\n     * three arguments: (value, index, array).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Array\n     * @param {Array} array The array to query.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the slice of `array`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'active': false },\n     *   { 'user': 'fred',    'active': false },\n     *   { 'user': 'pebbles', 'active': true }\n     * ];\n     *\n     * _.takeWhile(users, function(o) { return !o.active; });\n     * // => objects for ['barney', 'fred']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.takeWhile(users, { 'user': 'barney', 'active': false });\n     * // => objects for ['barney']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.takeWhile(users, ['active', false]);\n     * // => objects for ['barney', 'fred']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.takeWhile(users, 'active');\n     * // => []\n     */\n    function takeWhile(array, predicate) {\n      return (array && array.length)\n        ? baseWhile(array, getIteratee(predicate, 3))\n        : [];\n    }\n\n    /**\n     * Creates an array of unique values, in order, from all given arrays using\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @returns {Array} Returns the new array of combined values.\n     * @example\n     *\n     * _.union([2], [1, 2]);\n     * // => [2, 1]\n     */\n    var union = baseRest(function(arrays) {\n      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n    });\n\n    /**\n     * This method is like `_.union` except that it accepts `iteratee` which is\n     * invoked for each element of each `arrays` to generate the criterion by\n     * which uniqueness is computed. Result values are chosen from the first\n     * array in which the value occurs. The iteratee is invoked with one argument:\n     * (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns the new array of combined values.\n     * @example\n     *\n     * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n     * // => [2.1, 1.2]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n     * // => [{ 'x': 1 }, { 'x': 2 }]\n     */\n    var unionBy = baseRest(function(arrays) {\n      var iteratee = last(arrays);\n      if (isArrayLikeObject(iteratee)) {\n        iteratee = undefined;\n      }\n      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n    });\n\n    /**\n     * This method is like `_.union` except that it accepts `comparator` which\n     * is invoked to compare elements of `arrays`. Result values are chosen from\n     * the first array in which the value occurs. The comparator is invoked\n     * with two arguments: (arrVal, othVal).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of combined values.\n     * @example\n     *\n     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n     *\n     * _.unionWith(objects, others, _.isEqual);\n     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n     */\n    var unionWith = baseRest(function(arrays) {\n      var comparator = last(arrays);\n      comparator = typeof comparator == 'function' ? comparator : undefined;\n      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n    });\n\n    /**\n     * Creates a duplicate-free version of an array, using\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons, in which only the first occurrence of each element\n     * is kept. The order of result values is determined by the order they occur\n     * in the array.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @returns {Array} Returns the new duplicate free array.\n     * @example\n     *\n     * _.uniq([2, 1, 2]);\n     * // => [2, 1]\n     */\n    function uniq(array) {\n      return (array && array.length) ? baseUniq(array) : [];\n    }\n\n    /**\n     * This method is like `_.uniq` except that it accepts `iteratee` which is\n     * invoked for each element in `array` to generate the criterion by which\n     * uniqueness is computed. The order of result values is determined by the\n     * order they occur in the array. The iteratee is invoked with one argument:\n     * (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns the new duplicate free array.\n     * @example\n     *\n     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n     * // => [2.1, 1.2]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n     * // => [{ 'x': 1 }, { 'x': 2 }]\n     */\n    function uniqBy(array, iteratee) {\n      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n    }\n\n    /**\n     * This method is like `_.uniq` except that it accepts `comparator` which\n     * is invoked to compare elements of `array`. The order of result values is\n     * determined by the order they occur in the array.The comparator is invoked\n     * with two arguments: (arrVal, othVal).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new duplicate free array.\n     * @example\n     *\n     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n     *\n     * _.uniqWith(objects, _.isEqual);\n     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n     */\n    function uniqWith(array, comparator) {\n      comparator = typeof comparator == 'function' ? comparator : undefined;\n      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n    }\n\n    /**\n     * This method is like `_.zip` except that it accepts an array of grouped\n     * elements and creates an array regrouping the elements to their pre-zip\n     * configuration.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.2.0\n     * @category Array\n     * @param {Array} array The array of grouped elements to process.\n     * @returns {Array} Returns the new array of regrouped elements.\n     * @example\n     *\n     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n     * // => [['a', 1, true], ['b', 2, false]]\n     *\n     * _.unzip(zipped);\n     * // => [['a', 'b'], [1, 2], [true, false]]\n     */\n    function unzip(array) {\n      if (!(array && array.length)) {\n        return [];\n      }\n      var length = 0;\n      array = arrayFilter(array, function(group) {\n        if (isArrayLikeObject(group)) {\n          length = nativeMax(group.length, length);\n          return true;\n        }\n      });\n      return baseTimes(length, function(index) {\n        return arrayMap(array, baseProperty(index));\n      });\n    }\n\n    /**\n     * This method is like `_.unzip` except that it accepts `iteratee` to specify\n     * how regrouped values should be combined. The iteratee is invoked with the\n     * elements of each group: (...group).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.8.0\n     * @category Array\n     * @param {Array} array The array of grouped elements to process.\n     * @param {Function} [iteratee=_.identity] The function to combine\n     *  regrouped values.\n     * @returns {Array} Returns the new array of regrouped elements.\n     * @example\n     *\n     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n     * // => [[1, 10, 100], [2, 20, 200]]\n     *\n     * _.unzipWith(zipped, _.add);\n     * // => [3, 30, 300]\n     */\n    function unzipWith(array, iteratee) {\n      if (!(array && array.length)) {\n        return [];\n      }\n      var result = unzip(array);\n      if (iteratee == null) {\n        return result;\n      }\n      return arrayMap(result, function(group) {\n        return apply(iteratee, undefined, group);\n      });\n    }\n\n    /**\n     * Creates an array excluding all given values using\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * for equality comparisons.\n     *\n     * **Note:** Unlike `_.pull`, this method returns a new array.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {Array} array The array to inspect.\n     * @param {...*} [values] The values to exclude.\n     * @returns {Array} Returns the new array of filtered values.\n     * @see _.difference, _.xor\n     * @example\n     *\n     * _.without([2, 1, 2, 3], 1, 2);\n     * // => [3]\n     */\n    var without = baseRest(function(array, values) {\n      return isArrayLikeObject(array)\n        ? baseDifference(array, values)\n        : [];\n    });\n\n    /**\n     * Creates an array of unique values that is the\n     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n     * of the given arrays. The order of result values is determined by the order\n     * they occur in the arrays.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.4.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @returns {Array} Returns the new array of filtered values.\n     * @see _.difference, _.without\n     * @example\n     *\n     * _.xor([2, 1], [2, 3]);\n     * // => [1, 3]\n     */\n    var xor = baseRest(function(arrays) {\n      return baseXor(arrayFilter(arrays, isArrayLikeObject));\n    });\n\n    /**\n     * This method is like `_.xor` except that it accepts `iteratee` which is\n     * invoked for each element of each `arrays` to generate the criterion by\n     * which by which they're compared. The order of result values is determined\n     * by the order they occur in the arrays. The iteratee is invoked with one\n     * argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Array} Returns the new array of filtered values.\n     * @example\n     *\n     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n     * // => [1.2, 3.4]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n     * // => [{ 'x': 2 }]\n     */\n    var xorBy = baseRest(function(arrays) {\n      var iteratee = last(arrays);\n      if (isArrayLikeObject(iteratee)) {\n        iteratee = undefined;\n      }\n      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n    });\n\n    /**\n     * This method is like `_.xor` except that it accepts `comparator` which is\n     * invoked to compare elements of `arrays`. The order of result values is\n     * determined by the order they occur in the arrays. The comparator is invoked\n     * with two arguments: (arrVal, othVal).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to inspect.\n     * @param {Function} [comparator] The comparator invoked per element.\n     * @returns {Array} Returns the new array of filtered values.\n     * @example\n     *\n     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n     *\n     * _.xorWith(objects, others, _.isEqual);\n     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n     */\n    var xorWith = baseRest(function(arrays) {\n      var comparator = last(arrays);\n      comparator = typeof comparator == 'function' ? comparator : undefined;\n      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n    });\n\n    /**\n     * Creates an array of grouped elements, the first of which contains the\n     * first elements of the given arrays, the second of which contains the\n     * second elements of the given arrays, and so on.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to process.\n     * @returns {Array} Returns the new array of grouped elements.\n     * @example\n     *\n     * _.zip(['a', 'b'], [1, 2], [true, false]);\n     * // => [['a', 1, true], ['b', 2, false]]\n     */\n    var zip = baseRest(unzip);\n\n    /**\n     * This method is like `_.fromPairs` except that it accepts two arrays,\n     * one of property identifiers and one of corresponding values.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.4.0\n     * @category Array\n     * @param {Array} [props=[]] The property identifiers.\n     * @param {Array} [values=[]] The property values.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * _.zipObject(['a', 'b'], [1, 2]);\n     * // => { 'a': 1, 'b': 2 }\n     */\n    function zipObject(props, values) {\n      return baseZipObject(props || [], values || [], assignValue);\n    }\n\n    /**\n     * This method is like `_.zipObject` except that it supports property paths.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.1.0\n     * @category Array\n     * @param {Array} [props=[]] The property identifiers.\n     * @param {Array} [values=[]] The property values.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n     */\n    function zipObjectDeep(props, values) {\n      return baseZipObject(props || [], values || [], baseSet);\n    }\n\n    /**\n     * This method is like `_.zip` except that it accepts `iteratee` to specify\n     * how grouped values should be combined. The iteratee is invoked with the\n     * elements of each group: (...group).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.8.0\n     * @category Array\n     * @param {...Array} [arrays] The arrays to process.\n     * @param {Function} [iteratee=_.identity] The function to combine\n     *  grouped values.\n     * @returns {Array} Returns the new array of grouped elements.\n     * @example\n     *\n     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n     *   return a + b + c;\n     * });\n     * // => [111, 222]\n     */\n    var zipWith = baseRest(function(arrays) {\n      var length = arrays.length,\n          iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n      return unzipWith(arrays, iteratee);\n    });\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n     * chain sequences enabled. The result of such sequences must be unwrapped\n     * with `_#value`.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.3.0\n     * @category Seq\n     * @param {*} value The value to wrap.\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'age': 36 },\n     *   { 'user': 'fred',    'age': 40 },\n     *   { 'user': 'pebbles', 'age': 1 }\n     * ];\n     *\n     * var youngest = _\n     *   .chain(users)\n     *   .sortBy('age')\n     *   .map(function(o) {\n     *     return o.user + ' is ' + o.age;\n     *   })\n     *   .head()\n     *   .value();\n     * // => 'pebbles is 1'\n     */\n    function chain(value) {\n      var result = lodash(value);\n      result.__chain__ = true;\n      return result;\n    }\n\n    /**\n     * This method invokes `interceptor` and returns `value`. The interceptor\n     * is invoked with one argument; (value). The purpose of this method is to\n     * \"tap into\" a method chain sequence in order to modify intermediate results.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Seq\n     * @param {*} value The value to provide to `interceptor`.\n     * @param {Function} interceptor The function to invoke.\n     * @returns {*} Returns `value`.\n     * @example\n     *\n     * _([1, 2, 3])\n     *  .tap(function(array) {\n     *    // Mutate input array.\n     *    array.pop();\n     *  })\n     *  .reverse()\n     *  .value();\n     * // => [2, 1]\n     */\n    function tap(value, interceptor) {\n      interceptor(value);\n      return value;\n    }\n\n    /**\n     * This method is like `_.tap` except that it returns the result of `interceptor`.\n     * The purpose of this method is to \"pass thru\" values replacing intermediate\n     * results in a method chain sequence.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Seq\n     * @param {*} value The value to provide to `interceptor`.\n     * @param {Function} interceptor The function to invoke.\n     * @returns {*} Returns the result of `interceptor`.\n     * @example\n     *\n     * _('  abc  ')\n     *  .chain()\n     *  .trim()\n     *  .thru(function(value) {\n     *    return [value];\n     *  })\n     *  .value();\n     * // => ['abc']\n     */\n    function thru(value, interceptor) {\n      return interceptor(value);\n    }\n\n    /**\n     * This method is the wrapper version of `_.at`.\n     *\n     * @name at\n     * @memberOf _\n     * @since 1.0.0\n     * @category Seq\n     * @param {...(string|string[])} [paths] The property paths to pick.\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n     *\n     * _(object).at(['a[0].b.c', 'a[1]']).value();\n     * // => [3, 4]\n     */\n    var wrapperAt = flatRest(function(paths) {\n      var length = paths.length,\n          start = length ? paths[0] : 0,\n          value = this.__wrapped__,\n          interceptor = function(object) { return baseAt(object, paths); };\n\n      if (length > 1 || this.__actions__.length ||\n          !(value instanceof LazyWrapper) || !isIndex(start)) {\n        return this.thru(interceptor);\n      }\n      value = value.slice(start, +start + (length ? 1 : 0));\n      value.__actions__.push({\n        'func': thru,\n        'args': [interceptor],\n        'thisArg': undefined\n      });\n      return new LodashWrapper(value, this.__chain__).thru(function(array) {\n        if (length && !array.length) {\n          array.push(undefined);\n        }\n        return array;\n      });\n    });\n\n    /**\n     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n     *\n     * @name chain\n     * @memberOf _\n     * @since 0.1.0\n     * @category Seq\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney', 'age': 36 },\n     *   { 'user': 'fred',   'age': 40 }\n     * ];\n     *\n     * // A sequence without explicit chaining.\n     * _(users).head();\n     * // => { 'user': 'barney', 'age': 36 }\n     *\n     * // A sequence with explicit chaining.\n     * _(users)\n     *   .chain()\n     *   .head()\n     *   .pick('user')\n     *   .value();\n     * // => { 'user': 'barney' }\n     */\n    function wrapperChain() {\n      return chain(this);\n    }\n\n    /**\n     * Executes the chain sequence and returns the wrapped result.\n     *\n     * @name commit\n     * @memberOf _\n     * @since 3.2.0\n     * @category Seq\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * var array = [1, 2];\n     * var wrapped = _(array).push(3);\n     *\n     * console.log(array);\n     * // => [1, 2]\n     *\n     * wrapped = wrapped.commit();\n     * console.log(array);\n     * // => [1, 2, 3]\n     *\n     * wrapped.last();\n     * // => 3\n     *\n     * console.log(array);\n     * // => [1, 2, 3]\n     */\n    function wrapperCommit() {\n      return new LodashWrapper(this.value(), this.__chain__);\n    }\n\n    /**\n     * Gets the next value on a wrapped object following the\n     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n     *\n     * @name next\n     * @memberOf _\n     * @since 4.0.0\n     * @category Seq\n     * @returns {Object} Returns the next iterator value.\n     * @example\n     *\n     * var wrapped = _([1, 2]);\n     *\n     * wrapped.next();\n     * // => { 'done': false, 'value': 1 }\n     *\n     * wrapped.next();\n     * // => { 'done': false, 'value': 2 }\n     *\n     * wrapped.next();\n     * // => { 'done': true, 'value': undefined }\n     */\n    function wrapperNext() {\n      if (this.__values__ === undefined) {\n        this.__values__ = toArray(this.value());\n      }\n      var done = this.__index__ >= this.__values__.length,\n          value = done ? undefined : this.__values__[this.__index__++];\n\n      return { 'done': done, 'value': value };\n    }\n\n    /**\n     * Enables the wrapper to be iterable.\n     *\n     * @name Symbol.iterator\n     * @memberOf _\n     * @since 4.0.0\n     * @category Seq\n     * @returns {Object} Returns the wrapper object.\n     * @example\n     *\n     * var wrapped = _([1, 2]);\n     *\n     * wrapped[Symbol.iterator]() === wrapped;\n     * // => true\n     *\n     * Array.from(wrapped);\n     * // => [1, 2]\n     */\n    function wrapperToIterator() {\n      return this;\n    }\n\n    /**\n     * Creates a clone of the chain sequence planting `value` as the wrapped value.\n     *\n     * @name plant\n     * @memberOf _\n     * @since 3.2.0\n     * @category Seq\n     * @param {*} value The value to plant.\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * var wrapped = _([1, 2]).map(square);\n     * var other = wrapped.plant([3, 4]);\n     *\n     * other.value();\n     * // => [9, 16]\n     *\n     * wrapped.value();\n     * // => [1, 4]\n     */\n    function wrapperPlant(value) {\n      var result,\n          parent = this;\n\n      while (parent instanceof baseLodash) {\n        var clone = wrapperClone(parent);\n        clone.__index__ = 0;\n        clone.__values__ = undefined;\n        if (result) {\n          previous.__wrapped__ = clone;\n        } else {\n          result = clone;\n        }\n        var previous = clone;\n        parent = parent.__wrapped__;\n      }\n      previous.__wrapped__ = value;\n      return result;\n    }\n\n    /**\n     * This method is the wrapper version of `_.reverse`.\n     *\n     * **Note:** This method mutates the wrapped array.\n     *\n     * @name reverse\n     * @memberOf _\n     * @since 0.1.0\n     * @category Seq\n     * @returns {Object} Returns the new `lodash` wrapper instance.\n     * @example\n     *\n     * var array = [1, 2, 3];\n     *\n     * _(array).reverse().value()\n     * // => [3, 2, 1]\n     *\n     * console.log(array);\n     * // => [3, 2, 1]\n     */\n    function wrapperReverse() {\n      var value = this.__wrapped__;\n      if (value instanceof LazyWrapper) {\n        var wrapped = value;\n        if (this.__actions__.length) {\n          wrapped = new LazyWrapper(this);\n        }\n        wrapped = wrapped.reverse();\n        wrapped.__actions__.push({\n          'func': thru,\n          'args': [reverse],\n          'thisArg': undefined\n        });\n        return new LodashWrapper(wrapped, this.__chain__);\n      }\n      return this.thru(reverse);\n    }\n\n    /**\n     * Executes the chain sequence to resolve the unwrapped value.\n     *\n     * @name value\n     * @memberOf _\n     * @since 0.1.0\n     * @alias toJSON, valueOf\n     * @category Seq\n     * @returns {*} Returns the resolved unwrapped value.\n     * @example\n     *\n     * _([1, 2, 3]).value();\n     * // => [1, 2, 3]\n     */\n    function wrapperValue() {\n      return baseWrapperValue(this.__wrapped__, this.__actions__);\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Creates an object composed of keys generated from the results of running\n     * each element of `collection` thru `iteratee`. The corresponding value of\n     * each key is the number of times the key was returned by `iteratee`. The\n     * iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.5.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n     * @returns {Object} Returns the composed aggregate object.\n     * @example\n     *\n     * _.countBy([6.1, 4.2, 6.3], Math.floor);\n     * // => { '4': 1, '6': 2 }\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.countBy(['one', 'two', 'three'], 'length');\n     * // => { '3': 2, '5': 1 }\n     */\n    var countBy = createAggregator(function(result, value, key) {\n      if (hasOwnProperty.call(result, key)) {\n        ++result[key];\n      } else {\n        baseAssignValue(result, key, 1);\n      }\n    });\n\n    /**\n     * Checks if `predicate` returns truthy for **all** elements of `collection`.\n     * Iteration is stopped once `predicate` returns falsey. The predicate is\n     * invoked with three arguments: (value, index|key, collection).\n     *\n     * **Note:** This method returns `true` for\n     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n     * elements of empty collections.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {boolean} Returns `true` if all elements pass the predicate check,\n     *  else `false`.\n     * @example\n     *\n     * _.every([true, 1, null, 'yes'], Boolean);\n     * // => false\n     *\n     * var users = [\n     *   { 'user': 'barney', 'age': 36, 'active': false },\n     *   { 'user': 'fred',   'age': 40, 'active': false }\n     * ];\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.every(users, { 'user': 'barney', 'active': false });\n     * // => false\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.every(users, ['active', false]);\n     * // => true\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.every(users, 'active');\n     * // => false\n     */\n    function every(collection, predicate, guard) {\n      var func = isArray(collection) ? arrayEvery : baseEvery;\n      if (guard && isIterateeCall(collection, predicate, guard)) {\n        predicate = undefined;\n      }\n      return func(collection, getIteratee(predicate, 3));\n    }\n\n    /**\n     * Iterates over elements of `collection`, returning an array of all elements\n     * `predicate` returns truthy for. The predicate is invoked with three\n     * arguments: (value, index|key, collection).\n     *\n     * **Note:** Unlike `_.remove`, this method returns a new array.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new filtered array.\n     * @see _.reject\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney', 'age': 36, 'active': true },\n     *   { 'user': 'fred',   'age': 40, 'active': false }\n     * ];\n     *\n     * _.filter(users, function(o) { return !o.active; });\n     * // => objects for ['fred']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.filter(users, { 'age': 36, 'active': true });\n     * // => objects for ['barney']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.filter(users, ['active', false]);\n     * // => objects for ['fred']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.filter(users, 'active');\n     * // => objects for ['barney']\n     *\n     * // Combining several predicates using `_.overEvery` or `_.overSome`.\n     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n     * // => objects for ['fred', 'barney']\n     */\n    function filter(collection, predicate) {\n      var func = isArray(collection) ? arrayFilter : baseFilter;\n      return func(collection, getIteratee(predicate, 3));\n    }\n\n    /**\n     * Iterates over elements of `collection`, returning the first element\n     * `predicate` returns truthy for. The predicate is invoked with three\n     * arguments: (value, index|key, collection).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param {number} [fromIndex=0] The index to search from.\n     * @returns {*} Returns the matched element, else `undefined`.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'age': 36, 'active': true },\n     *   { 'user': 'fred',    'age': 40, 'active': false },\n     *   { 'user': 'pebbles', 'age': 1,  'active': true }\n     * ];\n     *\n     * _.find(users, function(o) { return o.age < 40; });\n     * // => object for 'barney'\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.find(users, { 'age': 1, 'active': true });\n     * // => object for 'pebbles'\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.find(users, ['active', false]);\n     * // => object for 'fred'\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.find(users, 'active');\n     * // => object for 'barney'\n     */\n    var find = createFind(findIndex);\n\n    /**\n     * This method is like `_.find` except that it iterates over elements of\n     * `collection` from right to left.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param {number} [fromIndex=collection.length-1] The index to search from.\n     * @returns {*} Returns the matched element, else `undefined`.\n     * @example\n     *\n     * _.findLast([1, 2, 3, 4], function(n) {\n     *   return n % 2 == 1;\n     * });\n     * // => 3\n     */\n    var findLast = createFind(findLastIndex);\n\n    /**\n     * Creates a flattened array of values by running each element in `collection`\n     * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n     * with three arguments: (value, index|key, collection).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * function duplicate(n) {\n     *   return [n, n];\n     * }\n     *\n     * _.flatMap([1, 2], duplicate);\n     * // => [1, 1, 2, 2]\n     */\n    function flatMap(collection, iteratee) {\n      return baseFlatten(map(collection, iteratee), 1);\n    }\n\n    /**\n     * This method is like `_.flatMap` except that it recursively flattens the\n     * mapped results.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.7.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * function duplicate(n) {\n     *   return [[[n, n]]];\n     * }\n     *\n     * _.flatMapDeep([1, 2], duplicate);\n     * // => [1, 1, 2, 2]\n     */\n    function flatMapDeep(collection, iteratee) {\n      return baseFlatten(map(collection, iteratee), INFINITY);\n    }\n\n    /**\n     * This method is like `_.flatMap` except that it recursively flattens the\n     * mapped results up to `depth` times.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.7.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @param {number} [depth=1] The maximum recursion depth.\n     * @returns {Array} Returns the new flattened array.\n     * @example\n     *\n     * function duplicate(n) {\n     *   return [[[n, n]]];\n     * }\n     *\n     * _.flatMapDepth([1, 2], duplicate, 2);\n     * // => [[1, 1], [2, 2]]\n     */\n    function flatMapDepth(collection, iteratee, depth) {\n      depth = depth === undefined ? 1 : toInteger(depth);\n      return baseFlatten(map(collection, iteratee), depth);\n    }\n\n    /**\n     * Iterates over elements of `collection` and invokes `iteratee` for each element.\n     * The iteratee is invoked with three arguments: (value, index|key, collection).\n     * Iteratee functions may exit iteration early by explicitly returning `false`.\n     *\n     * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n     * property are iterated like arrays. To avoid this behavior use `_.forIn`\n     * or `_.forOwn` for object iteration.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @alias each\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array|Object} Returns `collection`.\n     * @see _.forEachRight\n     * @example\n     *\n     * _.forEach([1, 2], function(value) {\n     *   console.log(value);\n     * });\n     * // => Logs `1` then `2`.\n     *\n     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n     *   console.log(key);\n     * });\n     * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n     */\n    function forEach(collection, iteratee) {\n      var func = isArray(collection) ? arrayEach : baseEach;\n      return func(collection, getIteratee(iteratee, 3));\n    }\n\n    /**\n     * This method is like `_.forEach` except that it iterates over elements of\n     * `collection` from right to left.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @alias eachRight\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array|Object} Returns `collection`.\n     * @see _.forEach\n     * @example\n     *\n     * _.forEachRight([1, 2], function(value) {\n     *   console.log(value);\n     * });\n     * // => Logs `2` then `1`.\n     */\n    function forEachRight(collection, iteratee) {\n      var func = isArray(collection) ? arrayEachRight : baseEachRight;\n      return func(collection, getIteratee(iteratee, 3));\n    }\n\n    /**\n     * Creates an object composed of keys generated from the results of running\n     * each element of `collection` thru `iteratee`. The order of grouped values\n     * is determined by the order they occur in `collection`. The corresponding\n     * value of each key is an array of elements responsible for generating the\n     * key. The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n     * @returns {Object} Returns the composed aggregate object.\n     * @example\n     *\n     * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n     * // => { '4': [4.2], '6': [6.1, 6.3] }\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.groupBy(['one', 'two', 'three'], 'length');\n     * // => { '3': ['one', 'two'], '5': ['three'] }\n     */\n    var groupBy = createAggregator(function(result, value, key) {\n      if (hasOwnProperty.call(result, key)) {\n        result[key].push(value);\n      } else {\n        baseAssignValue(result, key, [value]);\n      }\n    });\n\n    /**\n     * Checks if `value` is in `collection`. If `collection` is a string, it's\n     * checked for a substring of `value`, otherwise\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * is used for equality comparisons. If `fromIndex` is negative, it's used as\n     * the offset from the end of `collection`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object|string} collection The collection to inspect.\n     * @param {*} value The value to search for.\n     * @param {number} [fromIndex=0] The index to search from.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n     * @returns {boolean} Returns `true` if `value` is found, else `false`.\n     * @example\n     *\n     * _.includes([1, 2, 3], 1);\n     * // => true\n     *\n     * _.includes([1, 2, 3], 1, 2);\n     * // => false\n     *\n     * _.includes({ 'a': 1, 'b': 2 }, 1);\n     * // => true\n     *\n     * _.includes('abcd', 'bc');\n     * // => true\n     */\n    function includes(collection, value, fromIndex, guard) {\n      collection = isArrayLike(collection) ? collection : values(collection);\n      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n      var length = collection.length;\n      if (fromIndex < 0) {\n        fromIndex = nativeMax(length + fromIndex, 0);\n      }\n      return isString(collection)\n        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n    }\n\n    /**\n     * Invokes the method at `path` of each element in `collection`, returning\n     * an array of the results of each invoked method. Any additional arguments\n     * are provided to each invoked method. If `path` is a function, it's invoked\n     * for, and `this` bound to, each element in `collection`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Array|Function|string} path The path of the method to invoke or\n     *  the function invoked per iteration.\n     * @param {...*} [args] The arguments to invoke each method with.\n     * @returns {Array} Returns the array of results.\n     * @example\n     *\n     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n     * // => [[1, 5, 7], [1, 2, 3]]\n     *\n     * _.invokeMap([123, 456], String.prototype.split, '');\n     * // => [['1', '2', '3'], ['4', '5', '6']]\n     */\n    var invokeMap = baseRest(function(collection, path, args) {\n      var index = -1,\n          isFunc = typeof path == 'function',\n          result = isArrayLike(collection) ? Array(collection.length) : [];\n\n      baseEach(collection, function(value) {\n        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n      });\n      return result;\n    });\n\n    /**\n     * Creates an object composed of keys generated from the results of running\n     * each element of `collection` thru `iteratee`. The corresponding value of\n     * each key is the last element responsible for generating the key. The\n     * iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n     * @returns {Object} Returns the composed aggregate object.\n     * @example\n     *\n     * var array = [\n     *   { 'dir': 'left', 'code': 97 },\n     *   { 'dir': 'right', 'code': 100 }\n     * ];\n     *\n     * _.keyBy(array, function(o) {\n     *   return String.fromCharCode(o.code);\n     * });\n     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n     *\n     * _.keyBy(array, 'dir');\n     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n     */\n    var keyBy = createAggregator(function(result, value, key) {\n      baseAssignValue(result, key, value);\n    });\n\n    /**\n     * Creates an array of values by running each element in `collection` thru\n     * `iteratee`. The iteratee is invoked with three arguments:\n     * (value, index|key, collection).\n     *\n     * Many lodash methods are guarded to work as iteratees for methods like\n     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n     *\n     * The guarded methods are:\n     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new mapped array.\n     * @example\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * _.map([4, 8], square);\n     * // => [16, 64]\n     *\n     * _.map({ 'a': 4, 'b': 8 }, square);\n     * // => [16, 64] (iteration order is not guaranteed)\n     *\n     * var users = [\n     *   { 'user': 'barney' },\n     *   { 'user': 'fred' }\n     * ];\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.map(users, 'user');\n     * // => ['barney', 'fred']\n     */\n    function map(collection, iteratee) {\n      var func = isArray(collection) ? arrayMap : baseMap;\n      return func(collection, getIteratee(iteratee, 3));\n    }\n\n    /**\n     * This method is like `_.sortBy` except that it allows specifying the sort\n     * orders of the iteratees to sort by. If `orders` is unspecified, all values\n     * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n     * descending or \"asc\" for ascending sort order of corresponding values.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n     *  The iteratees to sort by.\n     * @param {string[]} [orders] The sort orders of `iteratees`.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n     * @returns {Array} Returns the new sorted array.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'fred',   'age': 48 },\n     *   { 'user': 'barney', 'age': 34 },\n     *   { 'user': 'fred',   'age': 40 },\n     *   { 'user': 'barney', 'age': 36 }\n     * ];\n     *\n     * // Sort by `user` in ascending order and by `age` in descending order.\n     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n     */\n    function orderBy(collection, iteratees, orders, guard) {\n      if (collection == null) {\n        return [];\n      }\n      if (!isArray(iteratees)) {\n        iteratees = iteratees == null ? [] : [iteratees];\n      }\n      orders = guard ? undefined : orders;\n      if (!isArray(orders)) {\n        orders = orders == null ? [] : [orders];\n      }\n      return baseOrderBy(collection, iteratees, orders);\n    }\n\n    /**\n     * Creates an array of elements split into two groups, the first of which\n     * contains elements `predicate` returns truthy for, the second of which\n     * contains elements `predicate` returns falsey for. The predicate is\n     * invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the array of grouped elements.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney',  'age': 36, 'active': false },\n     *   { 'user': 'fred',    'age': 40, 'active': true },\n     *   { 'user': 'pebbles', 'age': 1,  'active': false }\n     * ];\n     *\n     * _.partition(users, function(o) { return o.active; });\n     * // => objects for [['fred'], ['barney', 'pebbles']]\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.partition(users, { 'age': 1, 'active': false });\n     * // => objects for [['pebbles'], ['barney', 'fred']]\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.partition(users, ['active', false]);\n     * // => objects for [['barney', 'pebbles'], ['fred']]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.partition(users, 'active');\n     * // => objects for [['fred'], ['barney', 'pebbles']]\n     */\n    var partition = createAggregator(function(result, value, key) {\n      result[key ? 0 : 1].push(value);\n    }, function() { return [[], []]; });\n\n    /**\n     * Reduces `collection` to a value which is the accumulated result of running\n     * each element in `collection` thru `iteratee`, where each successive\n     * invocation is supplied the return value of the previous. If `accumulator`\n     * is not given, the first element of `collection` is used as the initial\n     * value. The iteratee is invoked with four arguments:\n     * (accumulator, value, index|key, collection).\n     *\n     * Many lodash methods are guarded to work as iteratees for methods like\n     * `_.reduce`, `_.reduceRight`, and `_.transform`.\n     *\n     * The guarded methods are:\n     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n     * and `sortBy`\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @param {*} [accumulator] The initial value.\n     * @returns {*} Returns the accumulated value.\n     * @see _.reduceRight\n     * @example\n     *\n     * _.reduce([1, 2], function(sum, n) {\n     *   return sum + n;\n     * }, 0);\n     * // => 3\n     *\n     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n     *   (result[value] || (result[value] = [])).push(key);\n     *   return result;\n     * }, {});\n     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n     */\n    function reduce(collection, iteratee, accumulator) {\n      var func = isArray(collection) ? arrayReduce : baseReduce,\n          initAccum = arguments.length < 3;\n\n      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n    }\n\n    /**\n     * This method is like `_.reduce` except that it iterates over elements of\n     * `collection` from right to left.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @param {*} [accumulator] The initial value.\n     * @returns {*} Returns the accumulated value.\n     * @see _.reduce\n     * @example\n     *\n     * var array = [[0, 1], [2, 3], [4, 5]];\n     *\n     * _.reduceRight(array, function(flattened, other) {\n     *   return flattened.concat(other);\n     * }, []);\n     * // => [4, 5, 2, 3, 0, 1]\n     */\n    function reduceRight(collection, iteratee, accumulator) {\n      var func = isArray(collection) ? arrayReduceRight : baseReduce,\n          initAccum = arguments.length < 3;\n\n      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n    }\n\n    /**\n     * The opposite of `_.filter`; this method returns the elements of `collection`\n     * that `predicate` does **not** return truthy for.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the new filtered array.\n     * @see _.filter\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney', 'age': 36, 'active': false },\n     *   { 'user': 'fred',   'age': 40, 'active': true }\n     * ];\n     *\n     * _.reject(users, function(o) { return !o.active; });\n     * // => objects for ['fred']\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.reject(users, { 'age': 40, 'active': true });\n     * // => objects for ['barney']\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.reject(users, ['active', false]);\n     * // => objects for ['fred']\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.reject(users, 'active');\n     * // => objects for ['barney']\n     */\n    function reject(collection, predicate) {\n      var func = isArray(collection) ? arrayFilter : baseFilter;\n      return func(collection, negate(getIteratee(predicate, 3)));\n    }\n\n    /**\n     * Gets a random element from `collection`.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to sample.\n     * @returns {*} Returns the random element.\n     * @example\n     *\n     * _.sample([1, 2, 3, 4]);\n     * // => 2\n     */\n    function sample(collection) {\n      var func = isArray(collection) ? arraySample : baseSample;\n      return func(collection);\n    }\n\n    /**\n     * Gets `n` random elements at unique keys from `collection` up to the\n     * size of `collection`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to sample.\n     * @param {number} [n=1] The number of elements to sample.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the random elements.\n     * @example\n     *\n     * _.sampleSize([1, 2, 3], 2);\n     * // => [3, 1]\n     *\n     * _.sampleSize([1, 2, 3], 4);\n     * // => [2, 3, 1]\n     */\n    function sampleSize(collection, n, guard) {\n      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n        n = 1;\n      } else {\n        n = toInteger(n);\n      }\n      var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n      return func(collection, n);\n    }\n\n    /**\n     * Creates an array of shuffled values, using a version of the\n     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to shuffle.\n     * @returns {Array} Returns the new shuffled array.\n     * @example\n     *\n     * _.shuffle([1, 2, 3, 4]);\n     * // => [4, 1, 3, 2]\n     */\n    function shuffle(collection) {\n      var func = isArray(collection) ? arrayShuffle : baseShuffle;\n      return func(collection);\n    }\n\n    /**\n     * Gets the size of `collection` by returning its length for array-like\n     * values or the number of own enumerable string keyed properties for objects.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object|string} collection The collection to inspect.\n     * @returns {number} Returns the collection size.\n     * @example\n     *\n     * _.size([1, 2, 3]);\n     * // => 3\n     *\n     * _.size({ 'a': 1, 'b': 2 });\n     * // => 2\n     *\n     * _.size('pebbles');\n     * // => 7\n     */\n    function size(collection) {\n      if (collection == null) {\n        return 0;\n      }\n      if (isArrayLike(collection)) {\n        return isString(collection) ? stringSize(collection) : collection.length;\n      }\n      var tag = getTag(collection);\n      if (tag == mapTag || tag == setTag) {\n        return collection.size;\n      }\n      return baseKeys(collection).length;\n    }\n\n    /**\n     * Checks if `predicate` returns truthy for **any** element of `collection`.\n     * Iteration is stopped once `predicate` returns truthy. The predicate is\n     * invoked with three arguments: (value, index|key, collection).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {boolean} Returns `true` if any element passes the predicate check,\n     *  else `false`.\n     * @example\n     *\n     * _.some([null, 0, 'yes', false], Boolean);\n     * // => true\n     *\n     * var users = [\n     *   { 'user': 'barney', 'active': true },\n     *   { 'user': 'fred',   'active': false }\n     * ];\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.some(users, { 'user': 'barney', 'active': false });\n     * // => false\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.some(users, ['active', false]);\n     * // => true\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.some(users, 'active');\n     * // => true\n     */\n    function some(collection, predicate, guard) {\n      var func = isArray(collection) ? arraySome : baseSome;\n      if (guard && isIterateeCall(collection, predicate, guard)) {\n        predicate = undefined;\n      }\n      return func(collection, getIteratee(predicate, 3));\n    }\n\n    /**\n     * Creates an array of elements, sorted in ascending order by the results of\n     * running each element in a collection thru each iteratee. This method\n     * performs a stable sort, that is, it preserves the original sort order of\n     * equal elements. The iteratees are invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Collection\n     * @param {Array|Object} collection The collection to iterate over.\n     * @param {...(Function|Function[])} [iteratees=[_.identity]]\n     *  The iteratees to sort by.\n     * @returns {Array} Returns the new sorted array.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'fred',   'age': 48 },\n     *   { 'user': 'barney', 'age': 36 },\n     *   { 'user': 'fred',   'age': 30 },\n     *   { 'user': 'barney', 'age': 34 }\n     * ];\n     *\n     * _.sortBy(users, [function(o) { return o.user; }]);\n     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n     *\n     * _.sortBy(users, ['user', 'age']);\n     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n     */\n    var sortBy = baseRest(function(collection, iteratees) {\n      if (collection == null) {\n        return [];\n      }\n      var length = iteratees.length;\n      if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n        iteratees = [];\n      } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n        iteratees = [iteratees[0]];\n      }\n      return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n    });\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Gets the timestamp of the number of milliseconds that have elapsed since\n     * the Unix epoch (1 January 1970 00:00:00 UTC).\n     *\n     * @static\n     * @memberOf _\n     * @since 2.4.0\n     * @category Date\n     * @returns {number} Returns the timestamp.\n     * @example\n     *\n     * _.defer(function(stamp) {\n     *   console.log(_.now() - stamp);\n     * }, _.now());\n     * // => Logs the number of milliseconds it took for the deferred invocation.\n     */\n    var now = ctxNow || function() {\n      return root.Date.now();\n    };\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * The opposite of `_.before`; this method creates a function that invokes\n     * `func` once it's called `n` or more times.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {number} n The number of calls before `func` is invoked.\n     * @param {Function} func The function to restrict.\n     * @returns {Function} Returns the new restricted function.\n     * @example\n     *\n     * var saves = ['profile', 'settings'];\n     *\n     * var done = _.after(saves.length, function() {\n     *   console.log('done saving!');\n     * });\n     *\n     * _.forEach(saves, function(type) {\n     *   asyncSave({ 'type': type, 'complete': done });\n     * });\n     * // => Logs 'done saving!' after the two async saves have completed.\n     */\n    function after(n, func) {\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      n = toInteger(n);\n      return function() {\n        if (--n < 1) {\n          return func.apply(this, arguments);\n        }\n      };\n    }\n\n    /**\n     * Creates a function that invokes `func`, with up to `n` arguments,\n     * ignoring any additional arguments.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Function\n     * @param {Function} func The function to cap arguments for.\n     * @param {number} [n=func.length] The arity cap.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Function} Returns the new capped function.\n     * @example\n     *\n     * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n     * // => [6, 8, 10]\n     */\n    function ary(func, n, guard) {\n      n = guard ? undefined : n;\n      n = (func && n == null) ? func.length : n;\n      return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n    }\n\n    /**\n     * Creates a function that invokes `func`, with the `this` binding and arguments\n     * of the created function, while it's called less than `n` times. Subsequent\n     * calls to the created function return the result of the last `func` invocation.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Function\n     * @param {number} n The number of calls at which `func` is no longer invoked.\n     * @param {Function} func The function to restrict.\n     * @returns {Function} Returns the new restricted function.\n     * @example\n     *\n     * jQuery(element).on('click', _.before(5, addContactToList));\n     * // => Allows adding up to 4 contacts to the list.\n     */\n    function before(n, func) {\n      var result;\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      n = toInteger(n);\n      return function() {\n        if (--n > 0) {\n          result = func.apply(this, arguments);\n        }\n        if (n <= 1) {\n          func = undefined;\n        }\n        return result;\n      };\n    }\n\n    /**\n     * Creates a function that invokes `func` with the `this` binding of `thisArg`\n     * and `partials` prepended to the arguments it receives.\n     *\n     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n     * may be used as a placeholder for partially applied arguments.\n     *\n     * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n     * property of bound functions.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to bind.\n     * @param {*} thisArg The `this` binding of `func`.\n     * @param {...*} [partials] The arguments to be partially applied.\n     * @returns {Function} Returns the new bound function.\n     * @example\n     *\n     * function greet(greeting, punctuation) {\n     *   return greeting + ' ' + this.user + punctuation;\n     * }\n     *\n     * var object = { 'user': 'fred' };\n     *\n     * var bound = _.bind(greet, object, 'hi');\n     * bound('!');\n     * // => 'hi fred!'\n     *\n     * // Bound with placeholders.\n     * var bound = _.bind(greet, object, _, '!');\n     * bound('hi');\n     * // => 'hi fred!'\n     */\n    var bind = baseRest(function(func, thisArg, partials) {\n      var bitmask = WRAP_BIND_FLAG;\n      if (partials.length) {\n        var holders = replaceHolders(partials, getHolder(bind));\n        bitmask |= WRAP_PARTIAL_FLAG;\n      }\n      return createWrap(func, bitmask, thisArg, partials, holders);\n    });\n\n    /**\n     * Creates a function that invokes the method at `object[key]` with `partials`\n     * prepended to the arguments it receives.\n     *\n     * This method differs from `_.bind` by allowing bound functions to reference\n     * methods that may be redefined or don't yet exist. See\n     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n     * for more details.\n     *\n     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n     * builds, may be used as a placeholder for partially applied arguments.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.10.0\n     * @category Function\n     * @param {Object} object The object to invoke the method on.\n     * @param {string} key The key of the method.\n     * @param {...*} [partials] The arguments to be partially applied.\n     * @returns {Function} Returns the new bound function.\n     * @example\n     *\n     * var object = {\n     *   'user': 'fred',\n     *   'greet': function(greeting, punctuation) {\n     *     return greeting + ' ' + this.user + punctuation;\n     *   }\n     * };\n     *\n     * var bound = _.bindKey(object, 'greet', 'hi');\n     * bound('!');\n     * // => 'hi fred!'\n     *\n     * object.greet = function(greeting, punctuation) {\n     *   return greeting + 'ya ' + this.user + punctuation;\n     * };\n     *\n     * bound('!');\n     * // => 'hiya fred!'\n     *\n     * // Bound with placeholders.\n     * var bound = _.bindKey(object, 'greet', _, '!');\n     * bound('hi');\n     * // => 'hiya fred!'\n     */\n    var bindKey = baseRest(function(object, key, partials) {\n      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n      if (partials.length) {\n        var holders = replaceHolders(partials, getHolder(bindKey));\n        bitmask |= WRAP_PARTIAL_FLAG;\n      }\n      return createWrap(key, bitmask, object, partials, holders);\n    });\n\n    /**\n     * Creates a function that accepts arguments of `func` and either invokes\n     * `func` returning its result, if at least `arity` number of arguments have\n     * been provided, or returns a function that accepts the remaining `func`\n     * arguments, and so on. The arity of `func` may be specified if `func.length`\n     * is not sufficient.\n     *\n     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n     * may be used as a placeholder for provided arguments.\n     *\n     * **Note:** This method doesn't set the \"length\" property of curried functions.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Function\n     * @param {Function} func The function to curry.\n     * @param {number} [arity=func.length] The arity of `func`.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Function} Returns the new curried function.\n     * @example\n     *\n     * var abc = function(a, b, c) {\n     *   return [a, b, c];\n     * };\n     *\n     * var curried = _.curry(abc);\n     *\n     * curried(1)(2)(3);\n     * // => [1, 2, 3]\n     *\n     * curried(1, 2)(3);\n     * // => [1, 2, 3]\n     *\n     * curried(1, 2, 3);\n     * // => [1, 2, 3]\n     *\n     * // Curried with placeholders.\n     * curried(1)(_, 3)(2);\n     * // => [1, 2, 3]\n     */\n    function curry(func, arity, guard) {\n      arity = guard ? undefined : arity;\n      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n      result.placeholder = curry.placeholder;\n      return result;\n    }\n\n    /**\n     * This method is like `_.curry` except that arguments are applied to `func`\n     * in the manner of `_.partialRight` instead of `_.partial`.\n     *\n     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n     * builds, may be used as a placeholder for provided arguments.\n     *\n     * **Note:** This method doesn't set the \"length\" property of curried functions.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Function\n     * @param {Function} func The function to curry.\n     * @param {number} [arity=func.length] The arity of `func`.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Function} Returns the new curried function.\n     * @example\n     *\n     * var abc = function(a, b, c) {\n     *   return [a, b, c];\n     * };\n     *\n     * var curried = _.curryRight(abc);\n     *\n     * curried(3)(2)(1);\n     * // => [1, 2, 3]\n     *\n     * curried(2, 3)(1);\n     * // => [1, 2, 3]\n     *\n     * curried(1, 2, 3);\n     * // => [1, 2, 3]\n     *\n     * // Curried with placeholders.\n     * curried(3)(1, _)(2);\n     * // => [1, 2, 3]\n     */\n    function curryRight(func, arity, guard) {\n      arity = guard ? undefined : arity;\n      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n      result.placeholder = curryRight.placeholder;\n      return result;\n    }\n\n    /**\n     * Creates a debounced function that delays invoking `func` until after `wait`\n     * milliseconds have elapsed since the last time the debounced function was\n     * invoked. The debounced function comes with a `cancel` method to cancel\n     * delayed `func` invocations and a `flush` method to immediately invoke them.\n     * Provide `options` to indicate whether `func` should be invoked on the\n     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n     * with the last arguments provided to the debounced function. Subsequent\n     * calls to the debounced function return the result of the last `func`\n     * invocation.\n     *\n     * **Note:** If `leading` and `trailing` options are `true`, `func` is\n     * invoked on the trailing edge of the timeout only if the debounced function\n     * is invoked more than once during the `wait` timeout.\n     *\n     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n     * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n     *\n     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n     * for details over the differences between `_.debounce` and `_.throttle`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to debounce.\n     * @param {number} [wait=0] The number of milliseconds to delay.\n     * @param {Object} [options={}] The options object.\n     * @param {boolean} [options.leading=false]\n     *  Specify invoking on the leading edge of the timeout.\n     * @param {number} [options.maxWait]\n     *  The maximum time `func` is allowed to be delayed before it's invoked.\n     * @param {boolean} [options.trailing=true]\n     *  Specify invoking on the trailing edge of the timeout.\n     * @returns {Function} Returns the new debounced function.\n     * @example\n     *\n     * // Avoid costly calculations while the window size is in flux.\n     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n     *\n     * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n     * jQuery(element).on('click', _.debounce(sendMail, 300, {\n     *   'leading': true,\n     *   'trailing': false\n     * }));\n     *\n     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n     * var source = new EventSource('/stream');\n     * jQuery(source).on('message', debounced);\n     *\n     * // Cancel the trailing debounced invocation.\n     * jQuery(window).on('popstate', debounced.cancel);\n     */\n    function debounce(func, wait, options) {\n      var lastArgs,\n          lastThis,\n          maxWait,\n          result,\n          timerId,\n          lastCallTime,\n          lastInvokeTime = 0,\n          leading = false,\n          maxing = false,\n          trailing = true;\n\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      wait = toNumber(wait) || 0;\n      if (isObject(options)) {\n        leading = !!options.leading;\n        maxing = 'maxWait' in options;\n        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n        trailing = 'trailing' in options ? !!options.trailing : trailing;\n      }\n\n      function invokeFunc(time) {\n        var args = lastArgs,\n            thisArg = lastThis;\n\n        lastArgs = lastThis = undefined;\n        lastInvokeTime = time;\n        result = func.apply(thisArg, args);\n        return result;\n      }\n\n      function leadingEdge(time) {\n        // Reset any `maxWait` timer.\n        lastInvokeTime = time;\n        // Start the timer for the trailing edge.\n        timerId = setTimeout(timerExpired, wait);\n        // Invoke the leading edge.\n        return leading ? invokeFunc(time) : result;\n      }\n\n      function remainingWait(time) {\n        var timeSinceLastCall = time - lastCallTime,\n            timeSinceLastInvoke = time - lastInvokeTime,\n            timeWaiting = wait - timeSinceLastCall;\n\n        return maxing\n          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n          : timeWaiting;\n      }\n\n      function shouldInvoke(time) {\n        var timeSinceLastCall = time - lastCallTime,\n            timeSinceLastInvoke = time - lastInvokeTime;\n\n        // Either this is the first call, activity has stopped and we're at the\n        // trailing edge, the system time has gone backwards and we're treating\n        // it as the trailing edge, or we've hit the `maxWait` limit.\n        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n      }\n\n      function timerExpired() {\n        var time = now();\n        if (shouldInvoke(time)) {\n          return trailingEdge(time);\n        }\n        // Restart the timer.\n        timerId = setTimeout(timerExpired, remainingWait(time));\n      }\n\n      function trailingEdge(time) {\n        timerId = undefined;\n\n        // Only invoke if we have `lastArgs` which means `func` has been\n        // debounced at least once.\n        if (trailing && lastArgs) {\n          return invokeFunc(time);\n        }\n        lastArgs = lastThis = undefined;\n        return result;\n      }\n\n      function cancel() {\n        if (timerId !== undefined) {\n          clearTimeout(timerId);\n        }\n        lastInvokeTime = 0;\n        lastArgs = lastCallTime = lastThis = timerId = undefined;\n      }\n\n      function flush() {\n        return timerId === undefined ? result : trailingEdge(now());\n      }\n\n      function debounced() {\n        var time = now(),\n            isInvoking = shouldInvoke(time);\n\n        lastArgs = arguments;\n        lastThis = this;\n        lastCallTime = time;\n\n        if (isInvoking) {\n          if (timerId === undefined) {\n            return leadingEdge(lastCallTime);\n          }\n          if (maxing) {\n            // Handle invocations in a tight loop.\n            clearTimeout(timerId);\n            timerId = setTimeout(timerExpired, wait);\n            return invokeFunc(lastCallTime);\n          }\n        }\n        if (timerId === undefined) {\n          timerId = setTimeout(timerExpired, wait);\n        }\n        return result;\n      }\n      debounced.cancel = cancel;\n      debounced.flush = flush;\n      return debounced;\n    }\n\n    /**\n     * Defers invoking the `func` until the current call stack has cleared. Any\n     * additional arguments are provided to `func` when it's invoked.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to defer.\n     * @param {...*} [args] The arguments to invoke `func` with.\n     * @returns {number} Returns the timer id.\n     * @example\n     *\n     * _.defer(function(text) {\n     *   console.log(text);\n     * }, 'deferred');\n     * // => Logs 'deferred' after one millisecond.\n     */\n    var defer = baseRest(function(func, args) {\n      return baseDelay(func, 1, args);\n    });\n\n    /**\n     * Invokes `func` after `wait` milliseconds. Any additional arguments are\n     * provided to `func` when it's invoked.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to delay.\n     * @param {number} wait The number of milliseconds to delay invocation.\n     * @param {...*} [args] The arguments to invoke `func` with.\n     * @returns {number} Returns the timer id.\n     * @example\n     *\n     * _.delay(function(text) {\n     *   console.log(text);\n     * }, 1000, 'later');\n     * // => Logs 'later' after one second.\n     */\n    var delay = baseRest(function(func, wait, args) {\n      return baseDelay(func, toNumber(wait) || 0, args);\n    });\n\n    /**\n     * Creates a function that invokes `func` with arguments reversed.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Function\n     * @param {Function} func The function to flip arguments for.\n     * @returns {Function} Returns the new flipped function.\n     * @example\n     *\n     * var flipped = _.flip(function() {\n     *   return _.toArray(arguments);\n     * });\n     *\n     * flipped('a', 'b', 'c', 'd');\n     * // => ['d', 'c', 'b', 'a']\n     */\n    function flip(func) {\n      return createWrap(func, WRAP_FLIP_FLAG);\n    }\n\n    /**\n     * Creates a function that memoizes the result of `func`. If `resolver` is\n     * provided, it determines the cache key for storing the result based on the\n     * arguments provided to the memoized function. By default, the first argument\n     * provided to the memoized function is used as the map cache key. The `func`\n     * is invoked with the `this` binding of the memoized function.\n     *\n     * **Note:** The cache is exposed as the `cache` property on the memoized\n     * function. Its creation may be customized by replacing the `_.memoize.Cache`\n     * constructor with one whose instances implement the\n     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n     * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to have its output memoized.\n     * @param {Function} [resolver] The function to resolve the cache key.\n     * @returns {Function} Returns the new memoized function.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': 2 };\n     * var other = { 'c': 3, 'd': 4 };\n     *\n     * var values = _.memoize(_.values);\n     * values(object);\n     * // => [1, 2]\n     *\n     * values(other);\n     * // => [3, 4]\n     *\n     * object.a = 2;\n     * values(object);\n     * // => [1, 2]\n     *\n     * // Modify the result cache.\n     * values.cache.set(object, ['a', 'b']);\n     * values(object);\n     * // => ['a', 'b']\n     *\n     * // Replace `_.memoize.Cache`.\n     * _.memoize.Cache = WeakMap;\n     */\n    function memoize(func, resolver) {\n      if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      var memoized = function() {\n        var args = arguments,\n            key = resolver ? resolver.apply(this, args) : args[0],\n            cache = memoized.cache;\n\n        if (cache.has(key)) {\n          return cache.get(key);\n        }\n        var result = func.apply(this, args);\n        memoized.cache = cache.set(key, result) || cache;\n        return result;\n      };\n      memoized.cache = new (memoize.Cache || MapCache);\n      return memoized;\n    }\n\n    // Expose `MapCache`.\n    memoize.Cache = MapCache;\n\n    /**\n     * Creates a function that negates the result of the predicate `func`. The\n     * `func` predicate is invoked with the `this` binding and arguments of the\n     * created function.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Function\n     * @param {Function} predicate The predicate to negate.\n     * @returns {Function} Returns the new negated function.\n     * @example\n     *\n     * function isEven(n) {\n     *   return n % 2 == 0;\n     * }\n     *\n     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n     * // => [1, 3, 5]\n     */\n    function negate(predicate) {\n      if (typeof predicate != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      return function() {\n        var args = arguments;\n        switch (args.length) {\n          case 0: return !predicate.call(this);\n          case 1: return !predicate.call(this, args[0]);\n          case 2: return !predicate.call(this, args[0], args[1]);\n          case 3: return !predicate.call(this, args[0], args[1], args[2]);\n        }\n        return !predicate.apply(this, args);\n      };\n    }\n\n    /**\n     * Creates a function that is restricted to invoking `func` once. Repeat calls\n     * to the function return the value of the first invocation. The `func` is\n     * invoked with the `this` binding and arguments of the created function.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to restrict.\n     * @returns {Function} Returns the new restricted function.\n     * @example\n     *\n     * var initialize = _.once(createApplication);\n     * initialize();\n     * initialize();\n     * // => `createApplication` is invoked once\n     */\n    function once(func) {\n      return before(2, func);\n    }\n\n    /**\n     * Creates a function that invokes `func` with its arguments transformed.\n     *\n     * @static\n     * @since 4.0.0\n     * @memberOf _\n     * @category Function\n     * @param {Function} func The function to wrap.\n     * @param {...(Function|Function[])} [transforms=[_.identity]]\n     *  The argument transforms.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * function doubled(n) {\n     *   return n * 2;\n     * }\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * var func = _.overArgs(function(x, y) {\n     *   return [x, y];\n     * }, [square, doubled]);\n     *\n     * func(9, 3);\n     * // => [81, 6]\n     *\n     * func(10, 5);\n     * // => [100, 10]\n     */\n    var overArgs = castRest(function(func, transforms) {\n      transforms = (transforms.length == 1 && isArray(transforms[0]))\n        ? arrayMap(transforms[0], baseUnary(getIteratee()))\n        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n      var funcsLength = transforms.length;\n      return baseRest(function(args) {\n        var index = -1,\n            length = nativeMin(args.length, funcsLength);\n\n        while (++index < length) {\n          args[index] = transforms[index].call(this, args[index]);\n        }\n        return apply(func, this, args);\n      });\n    });\n\n    /**\n     * Creates a function that invokes `func` with `partials` prepended to the\n     * arguments it receives. This method is like `_.bind` except it does **not**\n     * alter the `this` binding.\n     *\n     * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n     * builds, may be used as a placeholder for partially applied arguments.\n     *\n     * **Note:** This method doesn't set the \"length\" property of partially\n     * applied functions.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.2.0\n     * @category Function\n     * @param {Function} func The function to partially apply arguments to.\n     * @param {...*} [partials] The arguments to be partially applied.\n     * @returns {Function} Returns the new partially applied function.\n     * @example\n     *\n     * function greet(greeting, name) {\n     *   return greeting + ' ' + name;\n     * }\n     *\n     * var sayHelloTo = _.partial(greet, 'hello');\n     * sayHelloTo('fred');\n     * // => 'hello fred'\n     *\n     * // Partially applied with placeholders.\n     * var greetFred = _.partial(greet, _, 'fred');\n     * greetFred('hi');\n     * // => 'hi fred'\n     */\n    var partial = baseRest(function(func, partials) {\n      var holders = replaceHolders(partials, getHolder(partial));\n      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n    });\n\n    /**\n     * This method is like `_.partial` except that partially applied arguments\n     * are appended to the arguments it receives.\n     *\n     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n     * builds, may be used as a placeholder for partially applied arguments.\n     *\n     * **Note:** This method doesn't set the \"length\" property of partially\n     * applied functions.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.0.0\n     * @category Function\n     * @param {Function} func The function to partially apply arguments to.\n     * @param {...*} [partials] The arguments to be partially applied.\n     * @returns {Function} Returns the new partially applied function.\n     * @example\n     *\n     * function greet(greeting, name) {\n     *   return greeting + ' ' + name;\n     * }\n     *\n     * var greetFred = _.partialRight(greet, 'fred');\n     * greetFred('hi');\n     * // => 'hi fred'\n     *\n     * // Partially applied with placeholders.\n     * var sayHelloTo = _.partialRight(greet, 'hello', _);\n     * sayHelloTo('fred');\n     * // => 'hello fred'\n     */\n    var partialRight = baseRest(function(func, partials) {\n      var holders = replaceHolders(partials, getHolder(partialRight));\n      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n    });\n\n    /**\n     * Creates a function that invokes `func` with arguments arranged according\n     * to the specified `indexes` where the argument value at the first index is\n     * provided as the first argument, the argument value at the second index is\n     * provided as the second argument, and so on.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Function\n     * @param {Function} func The function to rearrange arguments for.\n     * @param {...(number|number[])} indexes The arranged argument indexes.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var rearged = _.rearg(function(a, b, c) {\n     *   return [a, b, c];\n     * }, [2, 0, 1]);\n     *\n     * rearged('b', 'c', 'a')\n     * // => ['a', 'b', 'c']\n     */\n    var rearg = flatRest(function(func, indexes) {\n      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n    });\n\n    /**\n     * Creates a function that invokes `func` with the `this` binding of the\n     * created function and arguments from `start` and beyond provided as\n     * an array.\n     *\n     * **Note:** This method is based on the\n     * [rest parameter](https://mdn.io/rest_parameters).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Function\n     * @param {Function} func The function to apply a rest parameter to.\n     * @param {number} [start=func.length-1] The start position of the rest parameter.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var say = _.rest(function(what, names) {\n     *   return what + ' ' + _.initial(names).join(', ') +\n     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n     * });\n     *\n     * say('hello', 'fred', 'barney', 'pebbles');\n     * // => 'hello fred, barney, & pebbles'\n     */\n    function rest(func, start) {\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      start = start === undefined ? start : toInteger(start);\n      return baseRest(func, start);\n    }\n\n    /**\n     * Creates a function that invokes `func` with the `this` binding of the\n     * create function and an array of arguments much like\n     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n     *\n     * **Note:** This method is based on the\n     * [spread operator](https://mdn.io/spread_operator).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.2.0\n     * @category Function\n     * @param {Function} func The function to spread arguments over.\n     * @param {number} [start=0] The start position of the spread.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var say = _.spread(function(who, what) {\n     *   return who + ' says ' + what;\n     * });\n     *\n     * say(['fred', 'hello']);\n     * // => 'fred says hello'\n     *\n     * var numbers = Promise.all([\n     *   Promise.resolve(40),\n     *   Promise.resolve(36)\n     * ]);\n     *\n     * numbers.then(_.spread(function(x, y) {\n     *   return x + y;\n     * }));\n     * // => a Promise of 76\n     */\n    function spread(func, start) {\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      start = start == null ? 0 : nativeMax(toInteger(start), 0);\n      return baseRest(function(args) {\n        var array = args[start],\n            otherArgs = castSlice(args, 0, start);\n\n        if (array) {\n          arrayPush(otherArgs, array);\n        }\n        return apply(func, this, otherArgs);\n      });\n    }\n\n    /**\n     * Creates a throttled function that only invokes `func` at most once per\n     * every `wait` milliseconds. The throttled function comes with a `cancel`\n     * method to cancel delayed `func` invocations and a `flush` method to\n     * immediately invoke them. Provide `options` to indicate whether `func`\n     * should be invoked on the leading and/or trailing edge of the `wait`\n     * timeout. The `func` is invoked with the last arguments provided to the\n     * throttled function. Subsequent calls to the throttled function return the\n     * result of the last `func` invocation.\n     *\n     * **Note:** If `leading` and `trailing` options are `true`, `func` is\n     * invoked on the trailing edge of the timeout only if the throttled function\n     * is invoked more than once during the `wait` timeout.\n     *\n     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n     * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n     *\n     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n     * for details over the differences between `_.throttle` and `_.debounce`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {Function} func The function to throttle.\n     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n     * @param {Object} [options={}] The options object.\n     * @param {boolean} [options.leading=true]\n     *  Specify invoking on the leading edge of the timeout.\n     * @param {boolean} [options.trailing=true]\n     *  Specify invoking on the trailing edge of the timeout.\n     * @returns {Function} Returns the new throttled function.\n     * @example\n     *\n     * // Avoid excessively updating the position while scrolling.\n     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n     *\n     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n     * jQuery(element).on('click', throttled);\n     *\n     * // Cancel the trailing throttled invocation.\n     * jQuery(window).on('popstate', throttled.cancel);\n     */\n    function throttle(func, wait, options) {\n      var leading = true,\n          trailing = true;\n\n      if (typeof func != 'function') {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      if (isObject(options)) {\n        leading = 'leading' in options ? !!options.leading : leading;\n        trailing = 'trailing' in options ? !!options.trailing : trailing;\n      }\n      return debounce(func, wait, {\n        'leading': leading,\n        'maxWait': wait,\n        'trailing': trailing\n      });\n    }\n\n    /**\n     * Creates a function that accepts up to one argument, ignoring any\n     * additional arguments.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Function\n     * @param {Function} func The function to cap arguments for.\n     * @returns {Function} Returns the new capped function.\n     * @example\n     *\n     * _.map(['6', '8', '10'], _.unary(parseInt));\n     * // => [6, 8, 10]\n     */\n    function unary(func) {\n      return ary(func, 1);\n    }\n\n    /**\n     * Creates a function that provides `value` to `wrapper` as its first\n     * argument. Any additional arguments provided to the function are appended\n     * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n     * binding of the created function.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Function\n     * @param {*} value The value to wrap.\n     * @param {Function} [wrapper=identity] The wrapper function.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var p = _.wrap(_.escape, function(func, text) {\n     *   return '<p>' + func(text) + '</p>';\n     * });\n     *\n     * p('fred, barney, & pebbles');\n     * // => '<p>fred, barney, &amp; pebbles</p>'\n     */\n    function wrap(value, wrapper) {\n      return partial(castFunction(wrapper), value);\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Casts `value` as an array if it's not one.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.4.0\n     * @category Lang\n     * @param {*} value The value to inspect.\n     * @returns {Array} Returns the cast array.\n     * @example\n     *\n     * _.castArray(1);\n     * // => [1]\n     *\n     * _.castArray({ 'a': 1 });\n     * // => [{ 'a': 1 }]\n     *\n     * _.castArray('abc');\n     * // => ['abc']\n     *\n     * _.castArray(null);\n     * // => [null]\n     *\n     * _.castArray(undefined);\n     * // => [undefined]\n     *\n     * _.castArray();\n     * // => []\n     *\n     * var array = [1, 2, 3];\n     * console.log(_.castArray(array) === array);\n     * // => true\n     */\n    function castArray() {\n      if (!arguments.length) {\n        return [];\n      }\n      var value = arguments[0];\n      return isArray(value) ? value : [value];\n    }\n\n    /**\n     * Creates a shallow clone of `value`.\n     *\n     * **Note:** This method is loosely based on the\n     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n     * and supports cloning arrays, array buffers, booleans, date objects, maps,\n     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n     * arrays. The own enumerable properties of `arguments` objects are cloned\n     * as plain objects. An empty object is returned for uncloneable values such\n     * as error objects, functions, DOM nodes, and WeakMaps.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to clone.\n     * @returns {*} Returns the cloned value.\n     * @see _.cloneDeep\n     * @example\n     *\n     * var objects = [{ 'a': 1 }, { 'b': 2 }];\n     *\n     * var shallow = _.clone(objects);\n     * console.log(shallow[0] === objects[0]);\n     * // => true\n     */\n    function clone(value) {\n      return baseClone(value, CLONE_SYMBOLS_FLAG);\n    }\n\n    /**\n     * This method is like `_.clone` except that it accepts `customizer` which\n     * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n     * cloning is handled by the method instead. The `customizer` is invoked with\n     * up to four arguments; (value [, index|key, object, stack]).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to clone.\n     * @param {Function} [customizer] The function to customize cloning.\n     * @returns {*} Returns the cloned value.\n     * @see _.cloneDeepWith\n     * @example\n     *\n     * function customizer(value) {\n     *   if (_.isElement(value)) {\n     *     return value.cloneNode(false);\n     *   }\n     * }\n     *\n     * var el = _.cloneWith(document.body, customizer);\n     *\n     * console.log(el === document.body);\n     * // => false\n     * console.log(el.nodeName);\n     * // => 'BODY'\n     * console.log(el.childNodes.length);\n     * // => 0\n     */\n    function cloneWith(value, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n    }\n\n    /**\n     * This method is like `_.clone` except that it recursively clones `value`.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.0.0\n     * @category Lang\n     * @param {*} value The value to recursively clone.\n     * @returns {*} Returns the deep cloned value.\n     * @see _.clone\n     * @example\n     *\n     * var objects = [{ 'a': 1 }, { 'b': 2 }];\n     *\n     * var deep = _.cloneDeep(objects);\n     * console.log(deep[0] === objects[0]);\n     * // => false\n     */\n    function cloneDeep(value) {\n      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n    }\n\n    /**\n     * This method is like `_.cloneWith` except that it recursively clones `value`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to recursively clone.\n     * @param {Function} [customizer] The function to customize cloning.\n     * @returns {*} Returns the deep cloned value.\n     * @see _.cloneWith\n     * @example\n     *\n     * function customizer(value) {\n     *   if (_.isElement(value)) {\n     *     return value.cloneNode(true);\n     *   }\n     * }\n     *\n     * var el = _.cloneDeepWith(document.body, customizer);\n     *\n     * console.log(el === document.body);\n     * // => false\n     * console.log(el.nodeName);\n     * // => 'BODY'\n     * console.log(el.childNodes.length);\n     * // => 20\n     */\n    function cloneDeepWith(value, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n    }\n\n    /**\n     * Checks if `object` conforms to `source` by invoking the predicate\n     * properties of `source` with the corresponding property values of `object`.\n     *\n     * **Note:** This method is equivalent to `_.conforms` when `source` is\n     * partially applied.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.14.0\n     * @category Lang\n     * @param {Object} object The object to inspect.\n     * @param {Object} source The object of property predicates to conform to.\n     * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': 2 };\n     *\n     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n     * // => true\n     *\n     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n     * // => false\n     */\n    function conformsTo(object, source) {\n      return source == null || baseConformsTo(object, source, keys(source));\n    }\n\n    /**\n     * Performs a\n     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n     * comparison between two values to determine if they are equivalent.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n     * @example\n     *\n     * var object = { 'a': 1 };\n     * var other = { 'a': 1 };\n     *\n     * _.eq(object, object);\n     * // => true\n     *\n     * _.eq(object, other);\n     * // => false\n     *\n     * _.eq('a', 'a');\n     * // => true\n     *\n     * _.eq('a', Object('a'));\n     * // => false\n     *\n     * _.eq(NaN, NaN);\n     * // => true\n     */\n    function eq(value, other) {\n      return value === other || (value !== value && other !== other);\n    }\n\n    /**\n     * Checks if `value` is greater than `other`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.9.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is greater than `other`,\n     *  else `false`.\n     * @see _.lt\n     * @example\n     *\n     * _.gt(3, 1);\n     * // => true\n     *\n     * _.gt(3, 3);\n     * // => false\n     *\n     * _.gt(1, 3);\n     * // => false\n     */\n    var gt = createRelationalOperation(baseGt);\n\n    /**\n     * Checks if `value` is greater than or equal to `other`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.9.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is greater than or equal to\n     *  `other`, else `false`.\n     * @see _.lte\n     * @example\n     *\n     * _.gte(3, 1);\n     * // => true\n     *\n     * _.gte(3, 3);\n     * // => true\n     *\n     * _.gte(1, 3);\n     * // => false\n     */\n    var gte = createRelationalOperation(function(value, other) {\n      return value >= other;\n    });\n\n    /**\n     * Checks if `value` is likely an `arguments` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n     *  else `false`.\n     * @example\n     *\n     * _.isArguments(function() { return arguments; }());\n     * // => true\n     *\n     * _.isArguments([1, 2, 3]);\n     * // => false\n     */\n    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n        !propertyIsEnumerable.call(value, 'callee');\n    };\n\n    /**\n     * Checks if `value` is classified as an `Array` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n     * @example\n     *\n     * _.isArray([1, 2, 3]);\n     * // => true\n     *\n     * _.isArray(document.body.children);\n     * // => false\n     *\n     * _.isArray('abc');\n     * // => false\n     *\n     * _.isArray(_.noop);\n     * // => false\n     */\n    var isArray = Array.isArray;\n\n    /**\n     * Checks if `value` is classified as an `ArrayBuffer` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n     * @example\n     *\n     * _.isArrayBuffer(new ArrayBuffer(2));\n     * // => true\n     *\n     * _.isArrayBuffer(new Array(2));\n     * // => false\n     */\n    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n    /**\n     * Checks if `value` is array-like. A value is considered array-like if it's\n     * not a function and has a `value.length` that's an integer greater than or\n     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n     * @example\n     *\n     * _.isArrayLike([1, 2, 3]);\n     * // => true\n     *\n     * _.isArrayLike(document.body.children);\n     * // => true\n     *\n     * _.isArrayLike('abc');\n     * // => true\n     *\n     * _.isArrayLike(_.noop);\n     * // => false\n     */\n    function isArrayLike(value) {\n      return value != null && isLength(value.length) && !isFunction(value);\n    }\n\n    /**\n     * This method is like `_.isArrayLike` except that it also checks if `value`\n     * is an object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an array-like object,\n     *  else `false`.\n     * @example\n     *\n     * _.isArrayLikeObject([1, 2, 3]);\n     * // => true\n     *\n     * _.isArrayLikeObject(document.body.children);\n     * // => true\n     *\n     * _.isArrayLikeObject('abc');\n     * // => false\n     *\n     * _.isArrayLikeObject(_.noop);\n     * // => false\n     */\n    function isArrayLikeObject(value) {\n      return isObjectLike(value) && isArrayLike(value);\n    }\n\n    /**\n     * Checks if `value` is classified as a boolean primitive or object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n     * @example\n     *\n     * _.isBoolean(false);\n     * // => true\n     *\n     * _.isBoolean(null);\n     * // => false\n     */\n    function isBoolean(value) {\n      return value === true || value === false ||\n        (isObjectLike(value) && baseGetTag(value) == boolTag);\n    }\n\n    /**\n     * Checks if `value` is a buffer.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n     * @example\n     *\n     * _.isBuffer(new Buffer(2));\n     * // => true\n     *\n     * _.isBuffer(new Uint8Array(2));\n     * // => false\n     */\n    var isBuffer = nativeIsBuffer || stubFalse;\n\n    /**\n     * Checks if `value` is classified as a `Date` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n     * @example\n     *\n     * _.isDate(new Date);\n     * // => true\n     *\n     * _.isDate('Mon April 23 2012');\n     * // => false\n     */\n    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n    /**\n     * Checks if `value` is likely a DOM element.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n     * @example\n     *\n     * _.isElement(document.body);\n     * // => true\n     *\n     * _.isElement('<body>');\n     * // => false\n     */\n    function isElement(value) {\n      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n    }\n\n    /**\n     * Checks if `value` is an empty object, collection, map, or set.\n     *\n     * Objects are considered empty if they have no own enumerable string keyed\n     * properties.\n     *\n     * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n     * jQuery-like collections are considered empty if they have a `length` of `0`.\n     * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n     * @example\n     *\n     * _.isEmpty(null);\n     * // => true\n     *\n     * _.isEmpty(true);\n     * // => true\n     *\n     * _.isEmpty(1);\n     * // => true\n     *\n     * _.isEmpty([1, 2, 3]);\n     * // => false\n     *\n     * _.isEmpty({ 'a': 1 });\n     * // => false\n     */\n    function isEmpty(value) {\n      if (value == null) {\n        return true;\n      }\n      if (isArrayLike(value) &&\n          (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n            isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n        return !value.length;\n      }\n      var tag = getTag(value);\n      if (tag == mapTag || tag == setTag) {\n        return !value.size;\n      }\n      if (isPrototype(value)) {\n        return !baseKeys(value).length;\n      }\n      for (var key in value) {\n        if (hasOwnProperty.call(value, key)) {\n          return false;\n        }\n      }\n      return true;\n    }\n\n    /**\n     * Performs a deep comparison between two values to determine if they are\n     * equivalent.\n     *\n     * **Note:** This method supports comparing arrays, array buffers, booleans,\n     * date objects, error objects, maps, numbers, `Object` objects, regexes,\n     * sets, strings, symbols, and typed arrays. `Object` objects are compared\n     * by their own, not inherited, enumerable properties. Functions and DOM\n     * nodes are compared by strict equality, i.e. `===`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n     * @example\n     *\n     * var object = { 'a': 1 };\n     * var other = { 'a': 1 };\n     *\n     * _.isEqual(object, other);\n     * // => true\n     *\n     * object === other;\n     * // => false\n     */\n    function isEqual(value, other) {\n      return baseIsEqual(value, other);\n    }\n\n    /**\n     * This method is like `_.isEqual` except that it accepts `customizer` which\n     * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n     * are handled by the method instead. The `customizer` is invoked with up to\n     * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @param {Function} [customizer] The function to customize comparisons.\n     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n     * @example\n     *\n     * function isGreeting(value) {\n     *   return /^h(?:i|ello)$/.test(value);\n     * }\n     *\n     * function customizer(objValue, othValue) {\n     *   if (isGreeting(objValue) && isGreeting(othValue)) {\n     *     return true;\n     *   }\n     * }\n     *\n     * var array = ['hello', 'goodbye'];\n     * var other = ['hi', 'goodbye'];\n     *\n     * _.isEqualWith(array, other, customizer);\n     * // => true\n     */\n    function isEqualWith(value, other, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      var result = customizer ? customizer(value, other) : undefined;\n      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n    }\n\n    /**\n     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n     * `SyntaxError`, `TypeError`, or `URIError` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n     * @example\n     *\n     * _.isError(new Error);\n     * // => true\n     *\n     * _.isError(Error);\n     * // => false\n     */\n    function isError(value) {\n      if (!isObjectLike(value)) {\n        return false;\n      }\n      var tag = baseGetTag(value);\n      return tag == errorTag || tag == domExcTag ||\n        (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n    }\n\n    /**\n     * Checks if `value` is a finite primitive number.\n     *\n     * **Note:** This method is based on\n     * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n     * @example\n     *\n     * _.isFinite(3);\n     * // => true\n     *\n     * _.isFinite(Number.MIN_VALUE);\n     * // => true\n     *\n     * _.isFinite(Infinity);\n     * // => false\n     *\n     * _.isFinite('3');\n     * // => false\n     */\n    function isFinite(value) {\n      return typeof value == 'number' && nativeIsFinite(value);\n    }\n\n    /**\n     * Checks if `value` is classified as a `Function` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n     * @example\n     *\n     * _.isFunction(_);\n     * // => true\n     *\n     * _.isFunction(/abc/);\n     * // => false\n     */\n    function isFunction(value) {\n      if (!isObject(value)) {\n        return false;\n      }\n      // The use of `Object#toString` avoids issues with the `typeof` operator\n      // in Safari 9 which returns 'object' for typed arrays and other constructors.\n      var tag = baseGetTag(value);\n      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n    }\n\n    /**\n     * Checks if `value` is an integer.\n     *\n     * **Note:** This method is based on\n     * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n     * @example\n     *\n     * _.isInteger(3);\n     * // => true\n     *\n     * _.isInteger(Number.MIN_VALUE);\n     * // => false\n     *\n     * _.isInteger(Infinity);\n     * // => false\n     *\n     * _.isInteger('3');\n     * // => false\n     */\n    function isInteger(value) {\n      return typeof value == 'number' && value == toInteger(value);\n    }\n\n    /**\n     * Checks if `value` is a valid array-like length.\n     *\n     * **Note:** This method is loosely based on\n     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n     * @example\n     *\n     * _.isLength(3);\n     * // => true\n     *\n     * _.isLength(Number.MIN_VALUE);\n     * // => false\n     *\n     * _.isLength(Infinity);\n     * // => false\n     *\n     * _.isLength('3');\n     * // => false\n     */\n    function isLength(value) {\n      return typeof value == 'number' &&\n        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n    }\n\n    /**\n     * Checks if `value` is the\n     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n     * @example\n     *\n     * _.isObject({});\n     * // => true\n     *\n     * _.isObject([1, 2, 3]);\n     * // => true\n     *\n     * _.isObject(_.noop);\n     * // => true\n     *\n     * _.isObject(null);\n     * // => false\n     */\n    function isObject(value) {\n      var type = typeof value;\n      return value != null && (type == 'object' || type == 'function');\n    }\n\n    /**\n     * Checks if `value` is object-like. A value is object-like if it's not `null`\n     * and has a `typeof` result of \"object\".\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n     * @example\n     *\n     * _.isObjectLike({});\n     * // => true\n     *\n     * _.isObjectLike([1, 2, 3]);\n     * // => true\n     *\n     * _.isObjectLike(_.noop);\n     * // => false\n     *\n     * _.isObjectLike(null);\n     * // => false\n     */\n    function isObjectLike(value) {\n      return value != null && typeof value == 'object';\n    }\n\n    /**\n     * Checks if `value` is classified as a `Map` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n     * @example\n     *\n     * _.isMap(new Map);\n     * // => true\n     *\n     * _.isMap(new WeakMap);\n     * // => false\n     */\n    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n    /**\n     * Performs a partial deep comparison between `object` and `source` to\n     * determine if `object` contains equivalent property values.\n     *\n     * **Note:** This method is equivalent to `_.matches` when `source` is\n     * partially applied.\n     *\n     * Partial comparisons will match empty array and empty object `source`\n     * values against any array or object value, respectively. See `_.isEqual`\n     * for a list of supported value comparisons.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Lang\n     * @param {Object} object The object to inspect.\n     * @param {Object} source The object of property values to match.\n     * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': 2 };\n     *\n     * _.isMatch(object, { 'b': 2 });\n     * // => true\n     *\n     * _.isMatch(object, { 'b': 1 });\n     * // => false\n     */\n    function isMatch(object, source) {\n      return object === source || baseIsMatch(object, source, getMatchData(source));\n    }\n\n    /**\n     * This method is like `_.isMatch` except that it accepts `customizer` which\n     * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n     * are handled by the method instead. The `customizer` is invoked with five\n     * arguments: (objValue, srcValue, index|key, object, source).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {Object} object The object to inspect.\n     * @param {Object} source The object of property values to match.\n     * @param {Function} [customizer] The function to customize comparisons.\n     * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n     * @example\n     *\n     * function isGreeting(value) {\n     *   return /^h(?:i|ello)$/.test(value);\n     * }\n     *\n     * function customizer(objValue, srcValue) {\n     *   if (isGreeting(objValue) && isGreeting(srcValue)) {\n     *     return true;\n     *   }\n     * }\n     *\n     * var object = { 'greeting': 'hello' };\n     * var source = { 'greeting': 'hi' };\n     *\n     * _.isMatchWith(object, source, customizer);\n     * // => true\n     */\n    function isMatchWith(object, source, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      return baseIsMatch(object, source, getMatchData(source), customizer);\n    }\n\n    /**\n     * Checks if `value` is `NaN`.\n     *\n     * **Note:** This method is based on\n     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n     * `undefined` and other non-number values.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n     * @example\n     *\n     * _.isNaN(NaN);\n     * // => true\n     *\n     * _.isNaN(new Number(NaN));\n     * // => true\n     *\n     * isNaN(undefined);\n     * // => true\n     *\n     * _.isNaN(undefined);\n     * // => false\n     */\n    function isNaN(value) {\n      // An `NaN` primitive is the only value that is not equal to itself.\n      // Perform the `toStringTag` check first to avoid errors with some\n      // ActiveX objects in IE.\n      return isNumber(value) && value != +value;\n    }\n\n    /**\n     * Checks if `value` is a pristine native function.\n     *\n     * **Note:** This method can't reliably detect native functions in the presence\n     * of the core-js package because core-js circumvents this kind of detection.\n     * Despite multiple requests, the core-js maintainer has made it clear: any\n     * attempt to fix the detection will be obstructed. As a result, we're left\n     * with little choice but to throw an error. Unfortunately, this also affects\n     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n     * which rely on core-js.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a native function,\n     *  else `false`.\n     * @example\n     *\n     * _.isNative(Array.prototype.push);\n     * // => true\n     *\n     * _.isNative(_);\n     * // => false\n     */\n    function isNative(value) {\n      if (isMaskable(value)) {\n        throw new Error(CORE_ERROR_TEXT);\n      }\n      return baseIsNative(value);\n    }\n\n    /**\n     * Checks if `value` is `null`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n     * @example\n     *\n     * _.isNull(null);\n     * // => true\n     *\n     * _.isNull(void 0);\n     * // => false\n     */\n    function isNull(value) {\n      return value === null;\n    }\n\n    /**\n     * Checks if `value` is `null` or `undefined`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n     * @example\n     *\n     * _.isNil(null);\n     * // => true\n     *\n     * _.isNil(void 0);\n     * // => true\n     *\n     * _.isNil(NaN);\n     * // => false\n     */\n    function isNil(value) {\n      return value == null;\n    }\n\n    /**\n     * Checks if `value` is classified as a `Number` primitive or object.\n     *\n     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n     * classified as numbers, use the `_.isFinite` method.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n     * @example\n     *\n     * _.isNumber(3);\n     * // => true\n     *\n     * _.isNumber(Number.MIN_VALUE);\n     * // => true\n     *\n     * _.isNumber(Infinity);\n     * // => true\n     *\n     * _.isNumber('3');\n     * // => false\n     */\n    function isNumber(value) {\n      return typeof value == 'number' ||\n        (isObjectLike(value) && baseGetTag(value) == numberTag);\n    }\n\n    /**\n     * Checks if `value` is a plain object, that is, an object created by the\n     * `Object` constructor or one with a `[[Prototype]]` of `null`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.8.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     * }\n     *\n     * _.isPlainObject(new Foo);\n     * // => false\n     *\n     * _.isPlainObject([1, 2, 3]);\n     * // => false\n     *\n     * _.isPlainObject({ 'x': 0, 'y': 0 });\n     * // => true\n     *\n     * _.isPlainObject(Object.create(null));\n     * // => true\n     */\n    function isPlainObject(value) {\n      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n        return false;\n      }\n      var proto = getPrototype(value);\n      if (proto === null) {\n        return true;\n      }\n      var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n      return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n        funcToString.call(Ctor) == objectCtorString;\n    }\n\n    /**\n     * Checks if `value` is classified as a `RegExp` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.1.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n     * @example\n     *\n     * _.isRegExp(/abc/);\n     * // => true\n     *\n     * _.isRegExp('/abc/');\n     * // => false\n     */\n    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n    /**\n     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n     * double precision number which isn't the result of a rounded unsafe integer.\n     *\n     * **Note:** This method is based on\n     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n     * @example\n     *\n     * _.isSafeInteger(3);\n     * // => true\n     *\n     * _.isSafeInteger(Number.MIN_VALUE);\n     * // => false\n     *\n     * _.isSafeInteger(Infinity);\n     * // => false\n     *\n     * _.isSafeInteger('3');\n     * // => false\n     */\n    function isSafeInteger(value) {\n      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n    }\n\n    /**\n     * Checks if `value` is classified as a `Set` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n     * @example\n     *\n     * _.isSet(new Set);\n     * // => true\n     *\n     * _.isSet(new WeakSet);\n     * // => false\n     */\n    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n    /**\n     * Checks if `value` is classified as a `String` primitive or object.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n     * @example\n     *\n     * _.isString('abc');\n     * // => true\n     *\n     * _.isString(1);\n     * // => false\n     */\n    function isString(value) {\n      return typeof value == 'string' ||\n        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n    }\n\n    /**\n     * Checks if `value` is classified as a `Symbol` primitive or object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n     * @example\n     *\n     * _.isSymbol(Symbol.iterator);\n     * // => true\n     *\n     * _.isSymbol('abc');\n     * // => false\n     */\n    function isSymbol(value) {\n      return typeof value == 'symbol' ||\n        (isObjectLike(value) && baseGetTag(value) == symbolTag);\n    }\n\n    /**\n     * Checks if `value` is classified as a typed array.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n     * @example\n     *\n     * _.isTypedArray(new Uint8Array);\n     * // => true\n     *\n     * _.isTypedArray([]);\n     * // => false\n     */\n    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n    /**\n     * Checks if `value` is `undefined`.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n     * @example\n     *\n     * _.isUndefined(void 0);\n     * // => true\n     *\n     * _.isUndefined(null);\n     * // => false\n     */\n    function isUndefined(value) {\n      return value === undefined;\n    }\n\n    /**\n     * Checks if `value` is classified as a `WeakMap` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n     * @example\n     *\n     * _.isWeakMap(new WeakMap);\n     * // => true\n     *\n     * _.isWeakMap(new Map);\n     * // => false\n     */\n    function isWeakMap(value) {\n      return isObjectLike(value) && getTag(value) == weakMapTag;\n    }\n\n    /**\n     * Checks if `value` is classified as a `WeakSet` object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.3.0\n     * @category Lang\n     * @param {*} value The value to check.\n     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n     * @example\n     *\n     * _.isWeakSet(new WeakSet);\n     * // => true\n     *\n     * _.isWeakSet(new Set);\n     * // => false\n     */\n    function isWeakSet(value) {\n      return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n    }\n\n    /**\n     * Checks if `value` is less than `other`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.9.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is less than `other`,\n     *  else `false`.\n     * @see _.gt\n     * @example\n     *\n     * _.lt(1, 3);\n     * // => true\n     *\n     * _.lt(3, 3);\n     * // => false\n     *\n     * _.lt(3, 1);\n     * // => false\n     */\n    var lt = createRelationalOperation(baseLt);\n\n    /**\n     * Checks if `value` is less than or equal to `other`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.9.0\n     * @category Lang\n     * @param {*} value The value to compare.\n     * @param {*} other The other value to compare.\n     * @returns {boolean} Returns `true` if `value` is less than or equal to\n     *  `other`, else `false`.\n     * @see _.gte\n     * @example\n     *\n     * _.lte(1, 3);\n     * // => true\n     *\n     * _.lte(3, 3);\n     * // => true\n     *\n     * _.lte(3, 1);\n     * // => false\n     */\n    var lte = createRelationalOperation(function(value, other) {\n      return value <= other;\n    });\n\n    /**\n     * Converts `value` to an array.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {Array} Returns the converted array.\n     * @example\n     *\n     * _.toArray({ 'a': 1, 'b': 2 });\n     * // => [1, 2]\n     *\n     * _.toArray('abc');\n     * // => ['a', 'b', 'c']\n     *\n     * _.toArray(1);\n     * // => []\n     *\n     * _.toArray(null);\n     * // => []\n     */\n    function toArray(value) {\n      if (!value) {\n        return [];\n      }\n      if (isArrayLike(value)) {\n        return isString(value) ? stringToArray(value) : copyArray(value);\n      }\n      if (symIterator && value[symIterator]) {\n        return iteratorToArray(value[symIterator]());\n      }\n      var tag = getTag(value),\n          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n      return func(value);\n    }\n\n    /**\n     * Converts `value` to a finite number.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.12.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {number} Returns the converted number.\n     * @example\n     *\n     * _.toFinite(3.2);\n     * // => 3.2\n     *\n     * _.toFinite(Number.MIN_VALUE);\n     * // => 5e-324\n     *\n     * _.toFinite(Infinity);\n     * // => 1.7976931348623157e+308\n     *\n     * _.toFinite('3.2');\n     * // => 3.2\n     */\n    function toFinite(value) {\n      if (!value) {\n        return value === 0 ? value : 0;\n      }\n      value = toNumber(value);\n      if (value === INFINITY || value === -INFINITY) {\n        var sign = (value < 0 ? -1 : 1);\n        return sign * MAX_INTEGER;\n      }\n      return value === value ? value : 0;\n    }\n\n    /**\n     * Converts `value` to an integer.\n     *\n     * **Note:** This method is loosely based on\n     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {number} Returns the converted integer.\n     * @example\n     *\n     * _.toInteger(3.2);\n     * // => 3\n     *\n     * _.toInteger(Number.MIN_VALUE);\n     * // => 0\n     *\n     * _.toInteger(Infinity);\n     * // => 1.7976931348623157e+308\n     *\n     * _.toInteger('3.2');\n     * // => 3\n     */\n    function toInteger(value) {\n      var result = toFinite(value),\n          remainder = result % 1;\n\n      return result === result ? (remainder ? result - remainder : result) : 0;\n    }\n\n    /**\n     * Converts `value` to an integer suitable for use as the length of an\n     * array-like object.\n     *\n     * **Note:** This method is based on\n     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {number} Returns the converted integer.\n     * @example\n     *\n     * _.toLength(3.2);\n     * // => 3\n     *\n     * _.toLength(Number.MIN_VALUE);\n     * // => 0\n     *\n     * _.toLength(Infinity);\n     * // => 4294967295\n     *\n     * _.toLength('3.2');\n     * // => 3\n     */\n    function toLength(value) {\n      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n    }\n\n    /**\n     * Converts `value` to a number.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to process.\n     * @returns {number} Returns the number.\n     * @example\n     *\n     * _.toNumber(3.2);\n     * // => 3.2\n     *\n     * _.toNumber(Number.MIN_VALUE);\n     * // => 5e-324\n     *\n     * _.toNumber(Infinity);\n     * // => Infinity\n     *\n     * _.toNumber('3.2');\n     * // => 3.2\n     */\n    function toNumber(value) {\n      if (typeof value == 'number') {\n        return value;\n      }\n      if (isSymbol(value)) {\n        return NAN;\n      }\n      if (isObject(value)) {\n        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n        value = isObject(other) ? (other + '') : other;\n      }\n      if (typeof value != 'string') {\n        return value === 0 ? value : +value;\n      }\n      value = baseTrim(value);\n      var isBinary = reIsBinary.test(value);\n      return (isBinary || reIsOctal.test(value))\n        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n        : (reIsBadHex.test(value) ? NAN : +value);\n    }\n\n    /**\n     * Converts `value` to a plain object flattening inherited enumerable string\n     * keyed properties of `value` to own properties of the plain object.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {Object} Returns the converted plain object.\n     * @example\n     *\n     * function Foo() {\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.assign({ 'a': 1 }, new Foo);\n     * // => { 'a': 1, 'b': 2 }\n     *\n     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n     * // => { 'a': 1, 'b': 2, 'c': 3 }\n     */\n    function toPlainObject(value) {\n      return copyObject(value, keysIn(value));\n    }\n\n    /**\n     * Converts `value` to a safe integer. A safe integer can be compared and\n     * represented correctly.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {number} Returns the converted integer.\n     * @example\n     *\n     * _.toSafeInteger(3.2);\n     * // => 3\n     *\n     * _.toSafeInteger(Number.MIN_VALUE);\n     * // => 0\n     *\n     * _.toSafeInteger(Infinity);\n     * // => 9007199254740991\n     *\n     * _.toSafeInteger('3.2');\n     * // => 3\n     */\n    function toSafeInteger(value) {\n      return value\n        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n        : (value === 0 ? value : 0);\n    }\n\n    /**\n     * Converts `value` to a string. An empty string is returned for `null`\n     * and `undefined` values. The sign of `-0` is preserved.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Lang\n     * @param {*} value The value to convert.\n     * @returns {string} Returns the converted string.\n     * @example\n     *\n     * _.toString(null);\n     * // => ''\n     *\n     * _.toString(-0);\n     * // => '-0'\n     *\n     * _.toString([1, 2, 3]);\n     * // => '1,2,3'\n     */\n    function toString(value) {\n      return value == null ? '' : baseToString(value);\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Assigns own enumerable string keyed properties of source objects to the\n     * destination object. Source objects are applied from left to right.\n     * Subsequent sources overwrite property assignments of previous sources.\n     *\n     * **Note:** This method mutates `object` and is loosely based on\n     * [`Object.assign`](https://mdn.io/Object/assign).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.10.0\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} [sources] The source objects.\n     * @returns {Object} Returns `object`.\n     * @see _.assignIn\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     * }\n     *\n     * function Bar() {\n     *   this.c = 3;\n     * }\n     *\n     * Foo.prototype.b = 2;\n     * Bar.prototype.d = 4;\n     *\n     * _.assign({ 'a': 0 }, new Foo, new Bar);\n     * // => { 'a': 1, 'c': 3 }\n     */\n    var assign = createAssigner(function(object, source) {\n      if (isPrototype(source) || isArrayLike(source)) {\n        copyObject(source, keys(source), object);\n        return;\n      }\n      for (var key in source) {\n        if (hasOwnProperty.call(source, key)) {\n          assignValue(object, key, source[key]);\n        }\n      }\n    });\n\n    /**\n     * This method is like `_.assign` except that it iterates over own and\n     * inherited source properties.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @alias extend\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} [sources] The source objects.\n     * @returns {Object} Returns `object`.\n     * @see _.assign\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     * }\n     *\n     * function Bar() {\n     *   this.c = 3;\n     * }\n     *\n     * Foo.prototype.b = 2;\n     * Bar.prototype.d = 4;\n     *\n     * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n     */\n    var assignIn = createAssigner(function(object, source) {\n      copyObject(source, keysIn(source), object);\n    });\n\n    /**\n     * This method is like `_.assignIn` except that it accepts `customizer`\n     * which is invoked to produce the assigned values. If `customizer` returns\n     * `undefined`, assignment is handled by the method instead. The `customizer`\n     * is invoked with five arguments: (objValue, srcValue, key, object, source).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @alias extendWith\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} sources The source objects.\n     * @param {Function} [customizer] The function to customize assigned values.\n     * @returns {Object} Returns `object`.\n     * @see _.assignWith\n     * @example\n     *\n     * function customizer(objValue, srcValue) {\n     *   return _.isUndefined(objValue) ? srcValue : objValue;\n     * }\n     *\n     * var defaults = _.partialRight(_.assignInWith, customizer);\n     *\n     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n     * // => { 'a': 1, 'b': 2 }\n     */\n    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n      copyObject(source, keysIn(source), object, customizer);\n    });\n\n    /**\n     * This method is like `_.assign` except that it accepts `customizer`\n     * which is invoked to produce the assigned values. If `customizer` returns\n     * `undefined`, assignment is handled by the method instead. The `customizer`\n     * is invoked with five arguments: (objValue, srcValue, key, object, source).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} sources The source objects.\n     * @param {Function} [customizer] The function to customize assigned values.\n     * @returns {Object} Returns `object`.\n     * @see _.assignInWith\n     * @example\n     *\n     * function customizer(objValue, srcValue) {\n     *   return _.isUndefined(objValue) ? srcValue : objValue;\n     * }\n     *\n     * var defaults = _.partialRight(_.assignWith, customizer);\n     *\n     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n     * // => { 'a': 1, 'b': 2 }\n     */\n    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n      copyObject(source, keys(source), object, customizer);\n    });\n\n    /**\n     * Creates an array of values corresponding to `paths` of `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.0.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {...(string|string[])} [paths] The property paths to pick.\n     * @returns {Array} Returns the picked values.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n     *\n     * _.at(object, ['a[0].b.c', 'a[1]']);\n     * // => [3, 4]\n     */\n    var at = flatRest(baseAt);\n\n    /**\n     * Creates an object that inherits from the `prototype` object. If a\n     * `properties` object is given, its own enumerable string keyed properties\n     * are assigned to the created object.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.3.0\n     * @category Object\n     * @param {Object} prototype The object to inherit from.\n     * @param {Object} [properties] The properties to assign to the object.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * function Shape() {\n     *   this.x = 0;\n     *   this.y = 0;\n     * }\n     *\n     * function Circle() {\n     *   Shape.call(this);\n     * }\n     *\n     * Circle.prototype = _.create(Shape.prototype, {\n     *   'constructor': Circle\n     * });\n     *\n     * var circle = new Circle;\n     * circle instanceof Circle;\n     * // => true\n     *\n     * circle instanceof Shape;\n     * // => true\n     */\n    function create(prototype, properties) {\n      var result = baseCreate(prototype);\n      return properties == null ? result : baseAssign(result, properties);\n    }\n\n    /**\n     * Assigns own and inherited enumerable string keyed properties of source\n     * objects to the destination object for all destination properties that\n     * resolve to `undefined`. Source objects are applied from left to right.\n     * Once a property is set, additional values of the same property are ignored.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} [sources] The source objects.\n     * @returns {Object} Returns `object`.\n     * @see _.defaultsDeep\n     * @example\n     *\n     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n     * // => { 'a': 1, 'b': 2 }\n     */\n    var defaults = baseRest(function(object, sources) {\n      object = Object(object);\n\n      var index = -1;\n      var length = sources.length;\n      var guard = length > 2 ? sources[2] : undefined;\n\n      if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n        length = 1;\n      }\n\n      while (++index < length) {\n        var source = sources[index];\n        var props = keysIn(source);\n        var propsIndex = -1;\n        var propsLength = props.length;\n\n        while (++propsIndex < propsLength) {\n          var key = props[propsIndex];\n          var value = object[key];\n\n          if (value === undefined ||\n              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n            object[key] = source[key];\n          }\n        }\n      }\n\n      return object;\n    });\n\n    /**\n     * This method is like `_.defaults` except that it recursively assigns\n     * default properties.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.10.0\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} [sources] The source objects.\n     * @returns {Object} Returns `object`.\n     * @see _.defaults\n     * @example\n     *\n     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n     * // => { 'a': { 'b': 2, 'c': 3 } }\n     */\n    var defaultsDeep = baseRest(function(args) {\n      args.push(undefined, customDefaultsMerge);\n      return apply(mergeWith, undefined, args);\n    });\n\n    /**\n     * This method is like `_.find` except that it returns the key of the first\n     * element `predicate` returns truthy for instead of the element itself.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.1.0\n     * @category Object\n     * @param {Object} object The object to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {string|undefined} Returns the key of the matched element,\n     *  else `undefined`.\n     * @example\n     *\n     * var users = {\n     *   'barney':  { 'age': 36, 'active': true },\n     *   'fred':    { 'age': 40, 'active': false },\n     *   'pebbles': { 'age': 1,  'active': true }\n     * };\n     *\n     * _.findKey(users, function(o) { return o.age < 40; });\n     * // => 'barney' (iteration order is not guaranteed)\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.findKey(users, { 'age': 1, 'active': true });\n     * // => 'pebbles'\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.findKey(users, ['active', false]);\n     * // => 'fred'\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.findKey(users, 'active');\n     * // => 'barney'\n     */\n    function findKey(object, predicate) {\n      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n    }\n\n    /**\n     * This method is like `_.findKey` except that it iterates over elements of\n     * a collection in the opposite order.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Object\n     * @param {Object} object The object to inspect.\n     * @param {Function} [predicate=_.identity] The function invoked per iteration.\n     * @returns {string|undefined} Returns the key of the matched element,\n     *  else `undefined`.\n     * @example\n     *\n     * var users = {\n     *   'barney':  { 'age': 36, 'active': true },\n     *   'fred':    { 'age': 40, 'active': false },\n     *   'pebbles': { 'age': 1,  'active': true }\n     * };\n     *\n     * _.findLastKey(users, function(o) { return o.age < 40; });\n     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.findLastKey(users, { 'age': 36, 'active': true });\n     * // => 'barney'\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.findLastKey(users, ['active', false]);\n     * // => 'fred'\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.findLastKey(users, 'active');\n     * // => 'pebbles'\n     */\n    function findLastKey(object, predicate) {\n      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n    }\n\n    /**\n     * Iterates over own and inherited enumerable string keyed properties of an\n     * object and invokes `iteratee` for each property. The iteratee is invoked\n     * with three arguments: (value, key, object). Iteratee functions may exit\n     * iteration early by explicitly returning `false`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.3.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     * @see _.forInRight\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.forIn(new Foo, function(value, key) {\n     *   console.log(key);\n     * });\n     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n     */\n    function forIn(object, iteratee) {\n      return object == null\n        ? object\n        : baseFor(object, getIteratee(iteratee, 3), keysIn);\n    }\n\n    /**\n     * This method is like `_.forIn` except that it iterates over properties of\n     * `object` in the opposite order.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     * @see _.forIn\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.forInRight(new Foo, function(value, key) {\n     *   console.log(key);\n     * });\n     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n     */\n    function forInRight(object, iteratee) {\n      return object == null\n        ? object\n        : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n    }\n\n    /**\n     * Iterates over own enumerable string keyed properties of an object and\n     * invokes `iteratee` for each property. The iteratee is invoked with three\n     * arguments: (value, key, object). Iteratee functions may exit iteration\n     * early by explicitly returning `false`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.3.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     * @see _.forOwnRight\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.forOwn(new Foo, function(value, key) {\n     *   console.log(key);\n     * });\n     * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n     */\n    function forOwn(object, iteratee) {\n      return object && baseForOwn(object, getIteratee(iteratee, 3));\n    }\n\n    /**\n     * This method is like `_.forOwn` except that it iterates over properties of\n     * `object` in the opposite order.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.0.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns `object`.\n     * @see _.forOwn\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.forOwnRight(new Foo, function(value, key) {\n     *   console.log(key);\n     * });\n     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n     */\n    function forOwnRight(object, iteratee) {\n      return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n    }\n\n    /**\n     * Creates an array of function property names from own enumerable properties\n     * of `object`.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The object to inspect.\n     * @returns {Array} Returns the function names.\n     * @see _.functionsIn\n     * @example\n     *\n     * function Foo() {\n     *   this.a = _.constant('a');\n     *   this.b = _.constant('b');\n     * }\n     *\n     * Foo.prototype.c = _.constant('c');\n     *\n     * _.functions(new Foo);\n     * // => ['a', 'b']\n     */\n    function functions(object) {\n      return object == null ? [] : baseFunctions(object, keys(object));\n    }\n\n    /**\n     * Creates an array of function property names from own and inherited\n     * enumerable properties of `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The object to inspect.\n     * @returns {Array} Returns the function names.\n     * @see _.functions\n     * @example\n     *\n     * function Foo() {\n     *   this.a = _.constant('a');\n     *   this.b = _.constant('b');\n     * }\n     *\n     * Foo.prototype.c = _.constant('c');\n     *\n     * _.functionsIn(new Foo);\n     * // => ['a', 'b', 'c']\n     */\n    function functionsIn(object) {\n      return object == null ? [] : baseFunctions(object, keysIn(object));\n    }\n\n    /**\n     * Gets the value at `path` of `object`. If the resolved value is\n     * `undefined`, the `defaultValue` is returned in its place.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.7.0\n     * @category Object\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path of the property to get.\n     * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n     * @returns {*} Returns the resolved value.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n     *\n     * _.get(object, 'a[0].b.c');\n     * // => 3\n     *\n     * _.get(object, ['a', '0', 'b', 'c']);\n     * // => 3\n     *\n     * _.get(object, 'a.b.c', 'default');\n     * // => 'default'\n     */\n    function get(object, path, defaultValue) {\n      var result = object == null ? undefined : baseGet(object, path);\n      return result === undefined ? defaultValue : result;\n    }\n\n    /**\n     * Checks if `path` is a direct property of `object`.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path to check.\n     * @returns {boolean} Returns `true` if `path` exists, else `false`.\n     * @example\n     *\n     * var object = { 'a': { 'b': 2 } };\n     * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n     *\n     * _.has(object, 'a');\n     * // => true\n     *\n     * _.has(object, 'a.b');\n     * // => true\n     *\n     * _.has(object, ['a', 'b']);\n     * // => true\n     *\n     * _.has(other, 'a');\n     * // => false\n     */\n    function has(object, path) {\n      return object != null && hasPath(object, path, baseHas);\n    }\n\n    /**\n     * Checks if `path` is a direct or inherited property of `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path to check.\n     * @returns {boolean} Returns `true` if `path` exists, else `false`.\n     * @example\n     *\n     * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n     *\n     * _.hasIn(object, 'a');\n     * // => true\n     *\n     * _.hasIn(object, 'a.b');\n     * // => true\n     *\n     * _.hasIn(object, ['a', 'b']);\n     * // => true\n     *\n     * _.hasIn(object, 'b');\n     * // => false\n     */\n    function hasIn(object, path) {\n      return object != null && hasPath(object, path, baseHasIn);\n    }\n\n    /**\n     * Creates an object composed of the inverted keys and values of `object`.\n     * If `object` contains duplicate values, subsequent values overwrite\n     * property assignments of previous values.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.7.0\n     * @category Object\n     * @param {Object} object The object to invert.\n     * @returns {Object} Returns the new inverted object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': 2, 'c': 1 };\n     *\n     * _.invert(object);\n     * // => { '1': 'c', '2': 'b' }\n     */\n    var invert = createInverter(function(result, value, key) {\n      if (value != null &&\n          typeof value.toString != 'function') {\n        value = nativeObjectToString.call(value);\n      }\n\n      result[value] = key;\n    }, constant(identity));\n\n    /**\n     * This method is like `_.invert` except that the inverted object is generated\n     * from the results of running each element of `object` thru `iteratee`. The\n     * corresponding inverted value of each inverted key is an array of keys\n     * responsible for generating the inverted value. The iteratee is invoked\n     * with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.1.0\n     * @category Object\n     * @param {Object} object The object to invert.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {Object} Returns the new inverted object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': 2, 'c': 1 };\n     *\n     * _.invertBy(object);\n     * // => { '1': ['a', 'c'], '2': ['b'] }\n     *\n     * _.invertBy(object, function(value) {\n     *   return 'group' + value;\n     * });\n     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n     */\n    var invertBy = createInverter(function(result, value, key) {\n      if (value != null &&\n          typeof value.toString != 'function') {\n        value = nativeObjectToString.call(value);\n      }\n\n      if (hasOwnProperty.call(result, value)) {\n        result[value].push(key);\n      } else {\n        result[value] = [key];\n      }\n    }, getIteratee);\n\n    /**\n     * Invokes the method at `path` of `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path of the method to invoke.\n     * @param {...*} [args] The arguments to invoke the method with.\n     * @returns {*} Returns the result of the invoked method.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n     *\n     * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n     * // => [2, 3]\n     */\n    var invoke = baseRest(baseInvoke);\n\n    /**\n     * Creates an array of the own enumerable property names of `object`.\n     *\n     * **Note:** Non-object values are coerced to objects. See the\n     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n     * for more details.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.keys(new Foo);\n     * // => ['a', 'b'] (iteration order is not guaranteed)\n     *\n     * _.keys('hi');\n     * // => ['0', '1']\n     */\n    function keys(object) {\n      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n    }\n\n    /**\n     * Creates an array of the own and inherited enumerable property names of `object`.\n     *\n     * **Note:** Non-object values are coerced to objects.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property names.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.keysIn(new Foo);\n     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n     */\n    function keysIn(object) {\n      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n    }\n\n    /**\n     * The opposite of `_.mapValues`; this method creates an object with the\n     * same values as `object` and keys generated by running each own enumerable\n     * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n     * with three arguments: (value, key, object).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.8.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns the new mapped object.\n     * @see _.mapValues\n     * @example\n     *\n     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n     *   return key + value;\n     * });\n     * // => { 'a1': 1, 'b2': 2 }\n     */\n    function mapKeys(object, iteratee) {\n      var result = {};\n      iteratee = getIteratee(iteratee, 3);\n\n      baseForOwn(object, function(value, key, object) {\n        baseAssignValue(result, iteratee(value, key, object), value);\n      });\n      return result;\n    }\n\n    /**\n     * Creates an object with the same keys as `object` and values generated\n     * by running each own enumerable string keyed property of `object` thru\n     * `iteratee`. The iteratee is invoked with three arguments:\n     * (value, key, object).\n     *\n     * @static\n     * @memberOf _\n     * @since 2.4.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Object} Returns the new mapped object.\n     * @see _.mapKeys\n     * @example\n     *\n     * var users = {\n     *   'fred':    { 'user': 'fred',    'age': 40 },\n     *   'pebbles': { 'user': 'pebbles', 'age': 1 }\n     * };\n     *\n     * _.mapValues(users, function(o) { return o.age; });\n     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.mapValues(users, 'age');\n     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n     */\n    function mapValues(object, iteratee) {\n      var result = {};\n      iteratee = getIteratee(iteratee, 3);\n\n      baseForOwn(object, function(value, key, object) {\n        baseAssignValue(result, key, iteratee(value, key, object));\n      });\n      return result;\n    }\n\n    /**\n     * This method is like `_.assign` except that it recursively merges own and\n     * inherited enumerable string keyed properties of source objects into the\n     * destination object. Source properties that resolve to `undefined` are\n     * skipped if a destination value exists. Array and plain object properties\n     * are merged recursively. Other objects and value types are overridden by\n     * assignment. Source objects are applied from left to right. Subsequent\n     * sources overwrite property assignments of previous sources.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.5.0\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} [sources] The source objects.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var object = {\n     *   'a': [{ 'b': 2 }, { 'd': 4 }]\n     * };\n     *\n     * var other = {\n     *   'a': [{ 'c': 3 }, { 'e': 5 }]\n     * };\n     *\n     * _.merge(object, other);\n     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n     */\n    var merge = createAssigner(function(object, source, srcIndex) {\n      baseMerge(object, source, srcIndex);\n    });\n\n    /**\n     * This method is like `_.merge` except that it accepts `customizer` which\n     * is invoked to produce the merged values of the destination and source\n     * properties. If `customizer` returns `undefined`, merging is handled by the\n     * method instead. The `customizer` is invoked with six arguments:\n     * (objValue, srcValue, key, object, source, stack).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The destination object.\n     * @param {...Object} sources The source objects.\n     * @param {Function} customizer The function to customize assigned values.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * function customizer(objValue, srcValue) {\n     *   if (_.isArray(objValue)) {\n     *     return objValue.concat(srcValue);\n     *   }\n     * }\n     *\n     * var object = { 'a': [1], 'b': [2] };\n     * var other = { 'a': [3], 'b': [4] };\n     *\n     * _.mergeWith(object, other, customizer);\n     * // => { 'a': [1, 3], 'b': [2, 4] }\n     */\n    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n      baseMerge(object, source, srcIndex, customizer);\n    });\n\n    /**\n     * The opposite of `_.pick`; this method creates an object composed of the\n     * own and inherited enumerable property paths of `object` that are not omitted.\n     *\n     * **Note:** This method is considerably slower than `_.pick`.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The source object.\n     * @param {...(string|string[])} [paths] The property paths to omit.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': '2', 'c': 3 };\n     *\n     * _.omit(object, ['a', 'c']);\n     * // => { 'b': '2' }\n     */\n    var omit = flatRest(function(object, paths) {\n      var result = {};\n      if (object == null) {\n        return result;\n      }\n      var isDeep = false;\n      paths = arrayMap(paths, function(path) {\n        path = castPath(path, object);\n        isDeep || (isDeep = path.length > 1);\n        return path;\n      });\n      copyObject(object, getAllKeysIn(object), result);\n      if (isDeep) {\n        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n      }\n      var length = paths.length;\n      while (length--) {\n        baseUnset(result, paths[length]);\n      }\n      return result;\n    });\n\n    /**\n     * The opposite of `_.pickBy`; this method creates an object composed of\n     * the own and inherited enumerable string keyed properties of `object` that\n     * `predicate` doesn't return truthy for. The predicate is invoked with two\n     * arguments: (value, key).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The source object.\n     * @param {Function} [predicate=_.identity] The function invoked per property.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': '2', 'c': 3 };\n     *\n     * _.omitBy(object, _.isNumber);\n     * // => { 'b': '2' }\n     */\n    function omitBy(object, predicate) {\n      return pickBy(object, negate(getIteratee(predicate)));\n    }\n\n    /**\n     * Creates an object composed of the picked `object` properties.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The source object.\n     * @param {...(string|string[])} [paths] The property paths to pick.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': '2', 'c': 3 };\n     *\n     * _.pick(object, ['a', 'c']);\n     * // => { 'a': 1, 'c': 3 }\n     */\n    var pick = flatRest(function(object, paths) {\n      return object == null ? {} : basePick(object, paths);\n    });\n\n    /**\n     * Creates an object composed of the `object` properties `predicate` returns\n     * truthy for. The predicate is invoked with two arguments: (value, key).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The source object.\n     * @param {Function} [predicate=_.identity] The function invoked per property.\n     * @returns {Object} Returns the new object.\n     * @example\n     *\n     * var object = { 'a': 1, 'b': '2', 'c': 3 };\n     *\n     * _.pickBy(object, _.isNumber);\n     * // => { 'a': 1, 'c': 3 }\n     */\n    function pickBy(object, predicate) {\n      if (object == null) {\n        return {};\n      }\n      var props = arrayMap(getAllKeysIn(object), function(prop) {\n        return [prop];\n      });\n      predicate = getIteratee(predicate);\n      return basePickBy(object, props, function(value, path) {\n        return predicate(value, path[0]);\n      });\n    }\n\n    /**\n     * This method is like `_.get` except that if the resolved value is a\n     * function it's invoked with the `this` binding of its parent object and\n     * its result is returned.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The object to query.\n     * @param {Array|string} path The path of the property to resolve.\n     * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n     * @returns {*} Returns the resolved value.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n     *\n     * _.result(object, 'a[0].b.c1');\n     * // => 3\n     *\n     * _.result(object, 'a[0].b.c2');\n     * // => 4\n     *\n     * _.result(object, 'a[0].b.c3', 'default');\n     * // => 'default'\n     *\n     * _.result(object, 'a[0].b.c3', _.constant('default'));\n     * // => 'default'\n     */\n    function result(object, path, defaultValue) {\n      path = castPath(path, object);\n\n      var index = -1,\n          length = path.length;\n\n      // Ensure the loop is entered when path is empty.\n      if (!length) {\n        length = 1;\n        object = undefined;\n      }\n      while (++index < length) {\n        var value = object == null ? undefined : object[toKey(path[index])];\n        if (value === undefined) {\n          index = length;\n          value = defaultValue;\n        }\n        object = isFunction(value) ? value.call(object) : value;\n      }\n      return object;\n    }\n\n    /**\n     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n     * it's created. Arrays are created for missing index properties while objects\n     * are created for all other missing properties. Use `_.setWith` to customize\n     * `path` creation.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.7.0\n     * @category Object\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to set.\n     * @param {*} value The value to set.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n     *\n     * _.set(object, 'a[0].b.c', 4);\n     * console.log(object.a[0].b.c);\n     * // => 4\n     *\n     * _.set(object, ['x', '0', 'y', 'z'], 5);\n     * console.log(object.x[0].y.z);\n     * // => 5\n     */\n    function set(object, path, value) {\n      return object == null ? object : baseSet(object, path, value);\n    }\n\n    /**\n     * This method is like `_.set` except that it accepts `customizer` which is\n     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`\n     * path creation is handled by the method instead. The `customizer` is invoked\n     * with three arguments: (nsValue, key, nsObject).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to set.\n     * @param {*} value The value to set.\n     * @param {Function} [customizer] The function to customize assigned values.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var object = {};\n     *\n     * _.setWith(object, '[0][1]', 'a', Object);\n     * // => { '0': { '1': 'a' } }\n     */\n    function setWith(object, path, value, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      return object == null ? object : baseSet(object, path, value, customizer);\n    }\n\n    /**\n     * Creates an array of own enumerable string keyed-value pairs for `object`\n     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n     * entries are returned.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @alias entries\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the key-value pairs.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.toPairs(new Foo);\n     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n     */\n    var toPairs = createToPairs(keys);\n\n    /**\n     * Creates an array of own and inherited enumerable string keyed-value pairs\n     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n     * or set, its entries are returned.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @alias entriesIn\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the key-value pairs.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.toPairsIn(new Foo);\n     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n     */\n    var toPairsIn = createToPairs(keysIn);\n\n    /**\n     * An alternative to `_.reduce`; this method transforms `object` to a new\n     * `accumulator` object which is the result of running each of its own\n     * enumerable string keyed properties thru `iteratee`, with each invocation\n     * potentially mutating the `accumulator` object. If `accumulator` is not\n     * provided, a new object with the same `[[Prototype]]` will be used. The\n     * iteratee is invoked with four arguments: (accumulator, value, key, object).\n     * Iteratee functions may exit iteration early by explicitly returning `false`.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.3.0\n     * @category Object\n     * @param {Object} object The object to iterate over.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @param {*} [accumulator] The custom accumulator value.\n     * @returns {*} Returns the accumulated value.\n     * @example\n     *\n     * _.transform([2, 3, 4], function(result, n) {\n     *   result.push(n *= n);\n     *   return n % 2 == 0;\n     * }, []);\n     * // => [4, 9]\n     *\n     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n     *   (result[value] || (result[value] = [])).push(key);\n     * }, {});\n     * // => { '1': ['a', 'c'], '2': ['b'] }\n     */\n    function transform(object, iteratee, accumulator) {\n      var isArr = isArray(object),\n          isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n      iteratee = getIteratee(iteratee, 4);\n      if (accumulator == null) {\n        var Ctor = object && object.constructor;\n        if (isArrLike) {\n          accumulator = isArr ? new Ctor : [];\n        }\n        else if (isObject(object)) {\n          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n        }\n        else {\n          accumulator = {};\n        }\n      }\n      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n        return iteratee(accumulator, value, index, object);\n      });\n      return accumulator;\n    }\n\n    /**\n     * Removes the property at `path` of `object`.\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Object\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to unset.\n     * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n     * _.unset(object, 'a[0].b.c');\n     * // => true\n     *\n     * console.log(object);\n     * // => { 'a': [{ 'b': {} }] };\n     *\n     * _.unset(object, ['a', '0', 'b', 'c']);\n     * // => true\n     *\n     * console.log(object);\n     * // => { 'a': [{ 'b': {} }] };\n     */\n    function unset(object, path) {\n      return object == null ? true : baseUnset(object, path);\n    }\n\n    /**\n     * This method is like `_.set` except that accepts `updater` to produce the\n     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n     * is invoked with one argument: (value).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.6.0\n     * @category Object\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to set.\n     * @param {Function} updater The function to produce the updated value.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n     *\n     * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n     * console.log(object.a[0].b.c);\n     * // => 9\n     *\n     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n     * console.log(object.x[0].y.z);\n     * // => 0\n     */\n    function update(object, path, updater) {\n      return object == null ? object : baseUpdate(object, path, castFunction(updater));\n    }\n\n    /**\n     * This method is like `_.update` except that it accepts `customizer` which is\n     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`\n     * path creation is handled by the method instead. The `customizer` is invoked\n     * with three arguments: (nsValue, key, nsObject).\n     *\n     * **Note:** This method mutates `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.6.0\n     * @category Object\n     * @param {Object} object The object to modify.\n     * @param {Array|string} path The path of the property to set.\n     * @param {Function} updater The function to produce the updated value.\n     * @param {Function} [customizer] The function to customize assigned values.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var object = {};\n     *\n     * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n     * // => { '0': { '1': 'a' } }\n     */\n    function updateWith(object, path, updater, customizer) {\n      customizer = typeof customizer == 'function' ? customizer : undefined;\n      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n    }\n\n    /**\n     * Creates an array of the own enumerable string keyed property values of `object`.\n     *\n     * **Note:** Non-object values are coerced to objects.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property values.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.values(new Foo);\n     * // => [1, 2] (iteration order is not guaranteed)\n     *\n     * _.values('hi');\n     * // => ['h', 'i']\n     */\n    function values(object) {\n      return object == null ? [] : baseValues(object, keys(object));\n    }\n\n    /**\n     * Creates an array of the own and inherited enumerable string keyed property\n     * values of `object`.\n     *\n     * **Note:** Non-object values are coerced to objects.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Object\n     * @param {Object} object The object to query.\n     * @returns {Array} Returns the array of property values.\n     * @example\n     *\n     * function Foo() {\n     *   this.a = 1;\n     *   this.b = 2;\n     * }\n     *\n     * Foo.prototype.c = 3;\n     *\n     * _.valuesIn(new Foo);\n     * // => [1, 2, 3] (iteration order is not guaranteed)\n     */\n    function valuesIn(object) {\n      return object == null ? [] : baseValues(object, keysIn(object));\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Clamps `number` within the inclusive `lower` and `upper` bounds.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Number\n     * @param {number} number The number to clamp.\n     * @param {number} [lower] The lower bound.\n     * @param {number} upper The upper bound.\n     * @returns {number} Returns the clamped number.\n     * @example\n     *\n     * _.clamp(-10, -5, 5);\n     * // => -5\n     *\n     * _.clamp(10, -5, 5);\n     * // => 5\n     */\n    function clamp(number, lower, upper) {\n      if (upper === undefined) {\n        upper = lower;\n        lower = undefined;\n      }\n      if (upper !== undefined) {\n        upper = toNumber(upper);\n        upper = upper === upper ? upper : 0;\n      }\n      if (lower !== undefined) {\n        lower = toNumber(lower);\n        lower = lower === lower ? lower : 0;\n      }\n      return baseClamp(toNumber(number), lower, upper);\n    }\n\n    /**\n     * Checks if `n` is between `start` and up to, but not including, `end`. If\n     * `end` is not specified, it's set to `start` with `start` then set to `0`.\n     * If `start` is greater than `end` the params are swapped to support\n     * negative ranges.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.3.0\n     * @category Number\n     * @param {number} number The number to check.\n     * @param {number} [start=0] The start of the range.\n     * @param {number} end The end of the range.\n     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n     * @see _.range, _.rangeRight\n     * @example\n     *\n     * _.inRange(3, 2, 4);\n     * // => true\n     *\n     * _.inRange(4, 8);\n     * // => true\n     *\n     * _.inRange(4, 2);\n     * // => false\n     *\n     * _.inRange(2, 2);\n     * // => false\n     *\n     * _.inRange(1.2, 2);\n     * // => true\n     *\n     * _.inRange(5.2, 4);\n     * // => false\n     *\n     * _.inRange(-3, -2, -6);\n     * // => true\n     */\n    function inRange(number, start, end) {\n      start = toFinite(start);\n      if (end === undefined) {\n        end = start;\n        start = 0;\n      } else {\n        end = toFinite(end);\n      }\n      number = toNumber(number);\n      return baseInRange(number, start, end);\n    }\n\n    /**\n     * Produces a random number between the inclusive `lower` and `upper` bounds.\n     * If only one argument is provided a number between `0` and the given number\n     * is returned. If `floating` is `true`, or either `lower` or `upper` are\n     * floats, a floating-point number is returned instead of an integer.\n     *\n     * **Note:** JavaScript follows the IEEE-754 standard for resolving\n     * floating-point values which can produce unexpected results.\n     *\n     * **Note:** If `lower` is greater than `upper`, the values are swapped.\n     *\n     * @static\n     * @memberOf _\n     * @since 0.7.0\n     * @category Number\n     * @param {number} [lower=0] The lower bound.\n     * @param {number} [upper=1] The upper bound.\n     * @param {boolean} [floating] Specify returning a floating-point number.\n     * @returns {number} Returns the random number.\n     * @example\n     *\n     * _.random(0, 5);\n     * // => an integer between 0 and 5\n     *\n     * // when lower is greater than upper the values are swapped\n     * _.random(5, 0);\n     * // => an integer between 0 and 5\n     *\n     * _.random(5);\n     * // => also an integer between 0 and 5\n     *\n     * _.random(-5);\n     * // => an integer between -5 and 0\n     *\n     * _.random(5, true);\n     * // => a floating-point number between 0 and 5\n     *\n     * _.random(1.2, 5.2);\n     * // => a floating-point number between 1.2 and 5.2\n     */\n    function random(lower, upper, floating) {\n      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n        upper = floating = undefined;\n      }\n      if (floating === undefined) {\n        if (typeof upper == 'boolean') {\n          floating = upper;\n          upper = undefined;\n        }\n        else if (typeof lower == 'boolean') {\n          floating = lower;\n          lower = undefined;\n        }\n      }\n      if (lower === undefined && upper === undefined) {\n        lower = 0;\n        upper = 1;\n      }\n      else {\n        lower = toFinite(lower);\n        if (upper === undefined) {\n          upper = lower;\n          lower = 0;\n        } else {\n          upper = toFinite(upper);\n        }\n      }\n      if (lower > upper) {\n        var temp = lower;\n        lower = upper;\n        upper = temp;\n      }\n      if (floating || lower % 1 || upper % 1) {\n        var rand = nativeRandom();\n        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n      }\n      return baseRandom(lower, upper);\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the camel cased string.\n     * @example\n     *\n     * _.camelCase('Foo Bar');\n     * // => 'fooBar'\n     *\n     * _.camelCase('--foo-bar--');\n     * // => 'fooBar'\n     *\n     * _.camelCase('__FOO_BAR__');\n     * // => 'fooBar'\n     */\n    var camelCase = createCompounder(function(result, word, index) {\n      word = word.toLowerCase();\n      return result + (index ? capitalize(word) : word);\n    });\n\n    /**\n     * Converts the first character of `string` to upper case and the remaining\n     * to lower case.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to capitalize.\n     * @returns {string} Returns the capitalized string.\n     * @example\n     *\n     * _.capitalize('FRED');\n     * // => 'Fred'\n     */\n    function capitalize(string) {\n      return upperFirst(toString(string).toLowerCase());\n    }\n\n    /**\n     * Deburrs `string` by converting\n     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n     * letters to basic Latin letters and removing\n     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to deburr.\n     * @returns {string} Returns the deburred string.\n     * @example\n     *\n     * _.deburr('déjà vu');\n     * // => 'deja vu'\n     */\n    function deburr(string) {\n      string = toString(string);\n      return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n    }\n\n    /**\n     * Checks if `string` ends with the given target string.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to inspect.\n     * @param {string} [target] The string to search for.\n     * @param {number} [position=string.length] The position to search up to.\n     * @returns {boolean} Returns `true` if `string` ends with `target`,\n     *  else `false`.\n     * @example\n     *\n     * _.endsWith('abc', 'c');\n     * // => true\n     *\n     * _.endsWith('abc', 'b');\n     * // => false\n     *\n     * _.endsWith('abc', 'b', 2);\n     * // => true\n     */\n    function endsWith(string, target, position) {\n      string = toString(string);\n      target = baseToString(target);\n\n      var length = string.length;\n      position = position === undefined\n        ? length\n        : baseClamp(toInteger(position), 0, length);\n\n      var end = position;\n      position -= target.length;\n      return position >= 0 && string.slice(position, end) == target;\n    }\n\n    /**\n     * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n     * corresponding HTML entities.\n     *\n     * **Note:** No other characters are escaped. To escape additional\n     * characters use a third-party library like [_he_](https://mths.be/he).\n     *\n     * Though the \">\" character is escaped for symmetry, characters like\n     * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n     * unless they're part of a tag or unquoted attribute value. See\n     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n     * (under \"semi-related fun fact\") for more details.\n     *\n     * When working with HTML you should always\n     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n     * XSS vectors.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category String\n     * @param {string} [string=''] The string to escape.\n     * @returns {string} Returns the escaped string.\n     * @example\n     *\n     * _.escape('fred, barney, & pebbles');\n     * // => 'fred, barney, &amp; pebbles'\n     */\n    function escape(string) {\n      string = toString(string);\n      return (string && reHasUnescapedHtml.test(string))\n        ? string.replace(reUnescapedHtml, escapeHtmlChar)\n        : string;\n    }\n\n    /**\n     * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n     * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to escape.\n     * @returns {string} Returns the escaped string.\n     * @example\n     *\n     * _.escapeRegExp('[lodash](https://lodash.com/)');\n     * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n     */\n    function escapeRegExp(string) {\n      string = toString(string);\n      return (string && reHasRegExpChar.test(string))\n        ? string.replace(reRegExpChar, '\\\\$&')\n        : string;\n    }\n\n    /**\n     * Converts `string` to\n     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the kebab cased string.\n     * @example\n     *\n     * _.kebabCase('Foo Bar');\n     * // => 'foo-bar'\n     *\n     * _.kebabCase('fooBar');\n     * // => 'foo-bar'\n     *\n     * _.kebabCase('__FOO_BAR__');\n     * // => 'foo-bar'\n     */\n    var kebabCase = createCompounder(function(result, word, index) {\n      return result + (index ? '-' : '') + word.toLowerCase();\n    });\n\n    /**\n     * Converts `string`, as space separated words, to lower case.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the lower cased string.\n     * @example\n     *\n     * _.lowerCase('--Foo-Bar--');\n     * // => 'foo bar'\n     *\n     * _.lowerCase('fooBar');\n     * // => 'foo bar'\n     *\n     * _.lowerCase('__FOO_BAR__');\n     * // => 'foo bar'\n     */\n    var lowerCase = createCompounder(function(result, word, index) {\n      return result + (index ? ' ' : '') + word.toLowerCase();\n    });\n\n    /**\n     * Converts the first character of `string` to lower case.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the converted string.\n     * @example\n     *\n     * _.lowerFirst('Fred');\n     * // => 'fred'\n     *\n     * _.lowerFirst('FRED');\n     * // => 'fRED'\n     */\n    var lowerFirst = createCaseFirst('toLowerCase');\n\n    /**\n     * Pads `string` on the left and right sides if it's shorter than `length`.\n     * Padding characters are truncated if they can't be evenly divided by `length`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to pad.\n     * @param {number} [length=0] The padding length.\n     * @param {string} [chars=' '] The string used as padding.\n     * @returns {string} Returns the padded string.\n     * @example\n     *\n     * _.pad('abc', 8);\n     * // => '  abc   '\n     *\n     * _.pad('abc', 8, '_-');\n     * // => '_-abc_-_'\n     *\n     * _.pad('abc', 3);\n     * // => 'abc'\n     */\n    function pad(string, length, chars) {\n      string = toString(string);\n      length = toInteger(length);\n\n      var strLength = length ? stringSize(string) : 0;\n      if (!length || strLength >= length) {\n        return string;\n      }\n      var mid = (length - strLength) / 2;\n      return (\n        createPadding(nativeFloor(mid), chars) +\n        string +\n        createPadding(nativeCeil(mid), chars)\n      );\n    }\n\n    /**\n     * Pads `string` on the right side if it's shorter than `length`. Padding\n     * characters are truncated if they exceed `length`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to pad.\n     * @param {number} [length=0] The padding length.\n     * @param {string} [chars=' '] The string used as padding.\n     * @returns {string} Returns the padded string.\n     * @example\n     *\n     * _.padEnd('abc', 6);\n     * // => 'abc   '\n     *\n     * _.padEnd('abc', 6, '_-');\n     * // => 'abc_-_'\n     *\n     * _.padEnd('abc', 3);\n     * // => 'abc'\n     */\n    function padEnd(string, length, chars) {\n      string = toString(string);\n      length = toInteger(length);\n\n      var strLength = length ? stringSize(string) : 0;\n      return (length && strLength < length)\n        ? (string + createPadding(length - strLength, chars))\n        : string;\n    }\n\n    /**\n     * Pads `string` on the left side if it's shorter than `length`. Padding\n     * characters are truncated if they exceed `length`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to pad.\n     * @param {number} [length=0] The padding length.\n     * @param {string} [chars=' '] The string used as padding.\n     * @returns {string} Returns the padded string.\n     * @example\n     *\n     * _.padStart('abc', 6);\n     * // => '   abc'\n     *\n     * _.padStart('abc', 6, '_-');\n     * // => '_-_abc'\n     *\n     * _.padStart('abc', 3);\n     * // => 'abc'\n     */\n    function padStart(string, length, chars) {\n      string = toString(string);\n      length = toInteger(length);\n\n      var strLength = length ? stringSize(string) : 0;\n      return (length && strLength < length)\n        ? (createPadding(length - strLength, chars) + string)\n        : string;\n    }\n\n    /**\n     * Converts `string` to an integer of the specified radix. If `radix` is\n     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n     * hexadecimal, in which case a `radix` of `16` is used.\n     *\n     * **Note:** This method aligns with the\n     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n     *\n     * @static\n     * @memberOf _\n     * @since 1.1.0\n     * @category String\n     * @param {string} string The string to convert.\n     * @param {number} [radix=10] The radix to interpret `value` by.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {number} Returns the converted integer.\n     * @example\n     *\n     * _.parseInt('08');\n     * // => 8\n     *\n     * _.map(['6', '08', '10'], _.parseInt);\n     * // => [6, 8, 10]\n     */\n    function parseInt(string, radix, guard) {\n      if (guard || radix == null) {\n        radix = 0;\n      } else if (radix) {\n        radix = +radix;\n      }\n      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n    }\n\n    /**\n     * Repeats the given string `n` times.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to repeat.\n     * @param {number} [n=1] The number of times to repeat the string.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {string} Returns the repeated string.\n     * @example\n     *\n     * _.repeat('*', 3);\n     * // => '***'\n     *\n     * _.repeat('abc', 2);\n     * // => 'abcabc'\n     *\n     * _.repeat('abc', 0);\n     * // => ''\n     */\n    function repeat(string, n, guard) {\n      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n        n = 1;\n      } else {\n        n = toInteger(n);\n      }\n      return baseRepeat(toString(string), n);\n    }\n\n    /**\n     * Replaces matches for `pattern` in `string` with `replacement`.\n     *\n     * **Note:** This method is based on\n     * [`String#replace`](https://mdn.io/String/replace).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to modify.\n     * @param {RegExp|string} pattern The pattern to replace.\n     * @param {Function|string} replacement The match replacement.\n     * @returns {string} Returns the modified string.\n     * @example\n     *\n     * _.replace('Hi Fred', 'Fred', 'Barney');\n     * // => 'Hi Barney'\n     */\n    function replace() {\n      var args = arguments,\n          string = toString(args[0]);\n\n      return args.length < 3 ? string : string.replace(args[1], args[2]);\n    }\n\n    /**\n     * Converts `string` to\n     * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the snake cased string.\n     * @example\n     *\n     * _.snakeCase('Foo Bar');\n     * // => 'foo_bar'\n     *\n     * _.snakeCase('fooBar');\n     * // => 'foo_bar'\n     *\n     * _.snakeCase('--FOO-BAR--');\n     * // => 'foo_bar'\n     */\n    var snakeCase = createCompounder(function(result, word, index) {\n      return result + (index ? '_' : '') + word.toLowerCase();\n    });\n\n    /**\n     * Splits `string` by `separator`.\n     *\n     * **Note:** This method is based on\n     * [`String#split`](https://mdn.io/String/split).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to split.\n     * @param {RegExp|string} separator The separator pattern to split by.\n     * @param {number} [limit] The length to truncate results to.\n     * @returns {Array} Returns the string segments.\n     * @example\n     *\n     * _.split('a-b-c', '-', 2);\n     * // => ['a', 'b']\n     */\n    function split(string, separator, limit) {\n      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n        separator = limit = undefined;\n      }\n      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n      if (!limit) {\n        return [];\n      }\n      string = toString(string);\n      if (string && (\n            typeof separator == 'string' ||\n            (separator != null && !isRegExp(separator))\n          )) {\n        separator = baseToString(separator);\n        if (!separator && hasUnicode(string)) {\n          return castSlice(stringToArray(string), 0, limit);\n        }\n      }\n      return string.split(separator, limit);\n    }\n\n    /**\n     * Converts `string` to\n     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n     *\n     * @static\n     * @memberOf _\n     * @since 3.1.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the start cased string.\n     * @example\n     *\n     * _.startCase('--foo-bar--');\n     * // => 'Foo Bar'\n     *\n     * _.startCase('fooBar');\n     * // => 'Foo Bar'\n     *\n     * _.startCase('__FOO_BAR__');\n     * // => 'FOO BAR'\n     */\n    var startCase = createCompounder(function(result, word, index) {\n      return result + (index ? ' ' : '') + upperFirst(word);\n    });\n\n    /**\n     * Checks if `string` starts with the given target string.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to inspect.\n     * @param {string} [target] The string to search for.\n     * @param {number} [position=0] The position to search from.\n     * @returns {boolean} Returns `true` if `string` starts with `target`,\n     *  else `false`.\n     * @example\n     *\n     * _.startsWith('abc', 'a');\n     * // => true\n     *\n     * _.startsWith('abc', 'b');\n     * // => false\n     *\n     * _.startsWith('abc', 'b', 1);\n     * // => true\n     */\n    function startsWith(string, target, position) {\n      string = toString(string);\n      position = position == null\n        ? 0\n        : baseClamp(toInteger(position), 0, string.length);\n\n      target = baseToString(target);\n      return string.slice(position, position + target.length) == target;\n    }\n\n    /**\n     * Creates a compiled template function that can interpolate data properties\n     * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n     * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n     * properties may be accessed as free variables in the template. If a setting\n     * object is given, it takes precedence over `_.templateSettings` values.\n     *\n     * **Security:** `_.template` is insecure and should not be used. It will be\n     * removed in Lodash v5. Avoid untrusted input. See\n     * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).\n     *\n     * **Note:** In the development build `_.template` utilizes\n     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n     * for easier debugging.\n     *\n     * For more information on precompiling templates see\n     * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n     *\n     * For more information on Chrome extension sandboxes see\n     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category String\n     * @param {string} [string=''] The template string.\n     * @param {Object} [options={}] The options object.\n     * @param {RegExp} [options.escape=_.templateSettings.escape]\n     *  The HTML \"escape\" delimiter.\n     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n     *  The \"evaluate\" delimiter.\n     * @param {Object} [options.imports=_.templateSettings.imports]\n     *  An object to import into the template as free variables.\n     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n     *  The \"interpolate\" delimiter.\n     * @param {string} [options.sourceURL='lodash.templateSources[n]']\n     *  The sourceURL of the compiled template.\n     * @param {string} [options.variable='obj']\n     *  The data object variable name.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Function} Returns the compiled template function.\n     * @example\n     *\n     * // Use the \"interpolate\" delimiter to create a compiled template.\n     * var compiled = _.template('hello <%= user %>!');\n     * compiled({ 'user': 'fred' });\n     * // => 'hello fred!'\n     *\n     * // Use the HTML \"escape\" delimiter to escape data property values.\n     * var compiled = _.template('<b><%- value %></b>');\n     * compiled({ 'value': '<script>' });\n     * // => '<b>&lt;script&gt;</b>'\n     *\n     * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n     * compiled({ 'users': ['fred', 'barney'] });\n     * // => '<li>fred</li><li>barney</li>'\n     *\n     * // Use the internal `print` function in \"evaluate\" delimiters.\n     * var compiled = _.template('<% print(\"hello \" + user); %>!');\n     * compiled({ 'user': 'barney' });\n     * // => 'hello barney!'\n     *\n     * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n     * // Disable support by replacing the \"interpolate\" delimiter.\n     * var compiled = _.template('hello ${ user }!');\n     * compiled({ 'user': 'pebbles' });\n     * // => 'hello pebbles!'\n     *\n     * // Use backslashes to treat delimiters as plain text.\n     * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n     * compiled({ 'value': 'ignored' });\n     * // => '<%- value %>'\n     *\n     * // Use the `imports` option to import `jQuery` as `jq`.\n     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n     * compiled({ 'users': ['fred', 'barney'] });\n     * // => '<li>fred</li><li>barney</li>'\n     *\n     * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n     * compiled(data);\n     * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n     *\n     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n     * compiled.source;\n     * // => function(data) {\n     * //   var __t, __p = '';\n     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n     * //   return __p;\n     * // }\n     *\n     * // Use custom template delimiters.\n     * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n     * var compiled = _.template('hello {{ user }}!');\n     * compiled({ 'user': 'mustache' });\n     * // => 'hello mustache!'\n     *\n     * // Use the `source` property to inline compiled templates for meaningful\n     * // line numbers in error messages and stack traces.\n     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n     *   var JST = {\\\n     *     \"main\": ' + _.template(mainText).source + '\\\n     *   };\\\n     * ');\n     */\n    function template(string, options, guard) {\n      // Based on John Resig's `tmpl` implementation\n      // (http://ejohn.org/blog/javascript-micro-templating/)\n      // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n      var settings = lodash.templateSettings;\n\n      if (guard && isIterateeCall(string, options, guard)) {\n        options = undefined;\n      }\n      string = toString(string);\n      options = assignWith({}, options, settings, customDefaultsAssignIn);\n\n      var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n          importsKeys = keys(imports),\n          importsValues = baseValues(imports, importsKeys);\n\n      arrayEach(importsKeys, function(key) {\n        if (reForbiddenIdentifierChars.test(key)) {\n          throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);\n        }\n      });\n\n      var isEscaping,\n          isEvaluating,\n          index = 0,\n          interpolate = options.interpolate || reNoMatch,\n          source = \"__p += '\";\n\n      // Compile the regexp to match each delimiter.\n      var reDelimiters = RegExp(\n        (options.escape || reNoMatch).source + '|' +\n        interpolate.source + '|' +\n        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n        (options.evaluate || reNoMatch).source + '|$'\n      , 'g');\n\n      // Use a sourceURL for easier debugging.\n      // The sourceURL gets injected into the source that's eval-ed, so be careful\n      // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in\n      // and escape the comment, thus injecting code that gets evaled.\n      var sourceURL = '//# sourceURL=' +\n        (hasOwnProperty.call(options, 'sourceURL')\n          ? (options.sourceURL + '').replace(/\\s/g, ' ')\n          : ('lodash.templateSources[' + (++templateCounter) + ']')\n        ) + '\\n';\n\n      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n        interpolateValue || (interpolateValue = esTemplateValue);\n\n        // Escape characters that can't be included in string literals.\n        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n        // Replace delimiters with snippets.\n        if (escapeValue) {\n          isEscaping = true;\n          source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n        }\n        if (evaluateValue) {\n          isEvaluating = true;\n          source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n        }\n        if (interpolateValue) {\n          source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n        }\n        index = offset + match.length;\n\n        // The JS engine embedded in Adobe products needs `match` returned in\n        // order to produce the correct `offset` value.\n        return match;\n      });\n\n      source += \"';\\n\";\n\n      // If `variable` is not specified wrap a with-statement around the generated\n      // code to add the data object to the top of the scope chain.\n      var variable = hasOwnProperty.call(options, 'variable') && options.variable;\n      if (!variable) {\n        source = 'with (obj) {\\n' + source + '\\n}\\n';\n      }\n      // Throw an error if a forbidden character was found in `variable`, to prevent\n      // potential command injection attacks.\n      else if (reForbiddenIdentifierChars.test(variable)) {\n        throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);\n      }\n\n      // Cleanup code by stripping empty strings.\n      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n        .replace(reEmptyStringMiddle, '$1')\n        .replace(reEmptyStringTrailing, '$1;');\n\n      // Frame code as the function body.\n      source = 'function(' + (variable || 'obj') + ') {\\n' +\n        (variable\n          ? ''\n          : 'obj || (obj = {});\\n'\n        ) +\n        \"var __t, __p = ''\" +\n        (isEscaping\n           ? ', __e = _.escape'\n           : ''\n        ) +\n        (isEvaluating\n          ? ', __j = Array.prototype.join;\\n' +\n            \"function print() { __p += __j.call(arguments, '') }\\n\"\n          : ';\\n'\n        ) +\n        source +\n        'return __p\\n}';\n\n      var result = attempt(function() {\n        return Function(importsKeys, sourceURL + 'return ' + source)\n          .apply(undefined, importsValues);\n      });\n\n      // Provide the compiled function's source by its `toString` method or\n      // the `source` property as a convenience for inlining compiled templates.\n      result.source = source;\n      if (isError(result)) {\n        throw result;\n      }\n      return result;\n    }\n\n    /**\n     * Converts `string`, as a whole, to lower case just like\n     * [String#toLowerCase](https://mdn.io/toLowerCase).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the lower cased string.\n     * @example\n     *\n     * _.toLower('--Foo-Bar--');\n     * // => '--foo-bar--'\n     *\n     * _.toLower('fooBar');\n     * // => 'foobar'\n     *\n     * _.toLower('__FOO_BAR__');\n     * // => '__foo_bar__'\n     */\n    function toLower(value) {\n      return toString(value).toLowerCase();\n    }\n\n    /**\n     * Converts `string`, as a whole, to upper case just like\n     * [String#toUpperCase](https://mdn.io/toUpperCase).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the upper cased string.\n     * @example\n     *\n     * _.toUpper('--foo-bar--');\n     * // => '--FOO-BAR--'\n     *\n     * _.toUpper('fooBar');\n     * // => 'FOOBAR'\n     *\n     * _.toUpper('__foo_bar__');\n     * // => '__FOO_BAR__'\n     */\n    function toUpper(value) {\n      return toString(value).toUpperCase();\n    }\n\n    /**\n     * Removes leading and trailing whitespace or specified characters from `string`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to trim.\n     * @param {string} [chars=whitespace] The characters to trim.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {string} Returns the trimmed string.\n     * @example\n     *\n     * _.trim('  abc  ');\n     * // => 'abc'\n     *\n     * _.trim('-_-abc-_-', '_-');\n     * // => 'abc'\n     *\n     * _.map(['  foo  ', '  bar  '], _.trim);\n     * // => ['foo', 'bar']\n     */\n    function trim(string, chars, guard) {\n      string = toString(string);\n      if (string && (guard || chars === undefined)) {\n        return baseTrim(string);\n      }\n      if (!string || !(chars = baseToString(chars))) {\n        return string;\n      }\n      var strSymbols = stringToArray(string),\n          chrSymbols = stringToArray(chars),\n          start = charsStartIndex(strSymbols, chrSymbols),\n          end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n      return castSlice(strSymbols, start, end).join('');\n    }\n\n    /**\n     * Removes trailing whitespace or specified characters from `string`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to trim.\n     * @param {string} [chars=whitespace] The characters to trim.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {string} Returns the trimmed string.\n     * @example\n     *\n     * _.trimEnd('  abc  ');\n     * // => '  abc'\n     *\n     * _.trimEnd('-_-abc-_-', '_-');\n     * // => '-_-abc'\n     */\n    function trimEnd(string, chars, guard) {\n      string = toString(string);\n      if (string && (guard || chars === undefined)) {\n        return string.slice(0, trimmedEndIndex(string) + 1);\n      }\n      if (!string || !(chars = baseToString(chars))) {\n        return string;\n      }\n      var strSymbols = stringToArray(string),\n          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n      return castSlice(strSymbols, 0, end).join('');\n    }\n\n    /**\n     * Removes leading whitespace or specified characters from `string`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to trim.\n     * @param {string} [chars=whitespace] The characters to trim.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {string} Returns the trimmed string.\n     * @example\n     *\n     * _.trimStart('  abc  ');\n     * // => 'abc  '\n     *\n     * _.trimStart('-_-abc-_-', '_-');\n     * // => 'abc-_-'\n     */\n    function trimStart(string, chars, guard) {\n      string = toString(string);\n      if (string && (guard || chars === undefined)) {\n        return string.replace(reTrimStart, '');\n      }\n      if (!string || !(chars = baseToString(chars))) {\n        return string;\n      }\n      var strSymbols = stringToArray(string),\n          start = charsStartIndex(strSymbols, stringToArray(chars));\n\n      return castSlice(strSymbols, start).join('');\n    }\n\n    /**\n     * Truncates `string` if it's longer than the given maximum string length.\n     * The last characters of the truncated string are replaced with the omission\n     * string which defaults to \"...\".\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to truncate.\n     * @param {Object} [options={}] The options object.\n     * @param {number} [options.length=30] The maximum string length.\n     * @param {string} [options.omission='...'] The string to indicate text is omitted.\n     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n     * @returns {string} Returns the truncated string.\n     * @example\n     *\n     * _.truncate('hi-diddly-ho there, neighborino');\n     * // => 'hi-diddly-ho there, neighbo...'\n     *\n     * _.truncate('hi-diddly-ho there, neighborino', {\n     *   'length': 24,\n     *   'separator': ' '\n     * });\n     * // => 'hi-diddly-ho there,...'\n     *\n     * _.truncate('hi-diddly-ho there, neighborino', {\n     *   'length': 24,\n     *   'separator': /,? +/\n     * });\n     * // => 'hi-diddly-ho there...'\n     *\n     * _.truncate('hi-diddly-ho there, neighborino', {\n     *   'omission': ' [...]'\n     * });\n     * // => 'hi-diddly-ho there, neig [...]'\n     */\n    function truncate(string, options) {\n      var length = DEFAULT_TRUNC_LENGTH,\n          omission = DEFAULT_TRUNC_OMISSION;\n\n      if (isObject(options)) {\n        var separator = 'separator' in options ? options.separator : separator;\n        length = 'length' in options ? toInteger(options.length) : length;\n        omission = 'omission' in options ? baseToString(options.omission) : omission;\n      }\n      string = toString(string);\n\n      var strLength = string.length;\n      if (hasUnicode(string)) {\n        var strSymbols = stringToArray(string);\n        strLength = strSymbols.length;\n      }\n      if (length >= strLength) {\n        return string;\n      }\n      var end = length - stringSize(omission);\n      if (end < 1) {\n        return omission;\n      }\n      var result = strSymbols\n        ? castSlice(strSymbols, 0, end).join('')\n        : string.slice(0, end);\n\n      if (separator === undefined) {\n        return result + omission;\n      }\n      if (strSymbols) {\n        end += (result.length - end);\n      }\n      if (isRegExp(separator)) {\n        if (string.slice(end).search(separator)) {\n          var match,\n              substring = result;\n\n          if (!separator.global) {\n            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n          }\n          separator.lastIndex = 0;\n          while ((match = separator.exec(substring))) {\n            var newEnd = match.index;\n          }\n          result = result.slice(0, newEnd === undefined ? end : newEnd);\n        }\n      } else if (string.indexOf(baseToString(separator), end) != end) {\n        var index = result.lastIndexOf(separator);\n        if (index > -1) {\n          result = result.slice(0, index);\n        }\n      }\n      return result + omission;\n    }\n\n    /**\n     * The inverse of `_.escape`; this method converts the HTML entities\n     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to\n     * their corresponding characters.\n     *\n     * **Note:** No other HTML entities are unescaped. To unescape additional\n     * HTML entities use a third-party library like [_he_](https://mths.be/he).\n     *\n     * @static\n     * @memberOf _\n     * @since 0.6.0\n     * @category String\n     * @param {string} [string=''] The string to unescape.\n     * @returns {string} Returns the unescaped string.\n     * @example\n     *\n     * _.unescape('fred, barney, &amp; pebbles');\n     * // => 'fred, barney, & pebbles'\n     */\n    function unescape(string) {\n      string = toString(string);\n      return (string && reHasEscapedHtml.test(string))\n        ? string.replace(reEscapedHtml, unescapeHtmlChar)\n        : string;\n    }\n\n    /**\n     * Converts `string`, as space separated words, to upper case.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the upper cased string.\n     * @example\n     *\n     * _.upperCase('--foo-bar');\n     * // => 'FOO BAR'\n     *\n     * _.upperCase('fooBar');\n     * // => 'FOO BAR'\n     *\n     * _.upperCase('__foo_bar__');\n     * // => 'FOO BAR'\n     */\n    var upperCase = createCompounder(function(result, word, index) {\n      return result + (index ? ' ' : '') + word.toUpperCase();\n    });\n\n    /**\n     * Converts the first character of `string` to upper case.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category String\n     * @param {string} [string=''] The string to convert.\n     * @returns {string} Returns the converted string.\n     * @example\n     *\n     * _.upperFirst('fred');\n     * // => 'Fred'\n     *\n     * _.upperFirst('FRED');\n     * // => 'FRED'\n     */\n    var upperFirst = createCaseFirst('toUpperCase');\n\n    /**\n     * Splits `string` into an array of its words.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category String\n     * @param {string} [string=''] The string to inspect.\n     * @param {RegExp|string} [pattern] The pattern to match words.\n     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n     * @returns {Array} Returns the words of `string`.\n     * @example\n     *\n     * _.words('fred, barney, & pebbles');\n     * // => ['fred', 'barney', 'pebbles']\n     *\n     * _.words('fred, barney, & pebbles', /[^, ]+/g);\n     * // => ['fred', 'barney', '&', 'pebbles']\n     */\n    function words(string, pattern, guard) {\n      string = toString(string);\n      pattern = guard ? undefined : pattern;\n\n      if (pattern === undefined) {\n        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n      }\n      return string.match(pattern) || [];\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Attempts to invoke `func`, returning either the result or the caught error\n     * object. Any additional arguments are provided to `func` when it's invoked.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Util\n     * @param {Function} func The function to attempt.\n     * @param {...*} [args] The arguments to invoke `func` with.\n     * @returns {*} Returns the `func` result or error object.\n     * @example\n     *\n     * // Avoid throwing errors for invalid selectors.\n     * var elements = _.attempt(function(selector) {\n     *   return document.querySelectorAll(selector);\n     * }, '>_>');\n     *\n     * if (_.isError(elements)) {\n     *   elements = [];\n     * }\n     */\n    var attempt = baseRest(function(func, args) {\n      try {\n        return apply(func, undefined, args);\n      } catch (e) {\n        return isError(e) ? e : new Error(e);\n      }\n    });\n\n    /**\n     * Binds methods of an object to the object itself, overwriting the existing\n     * method.\n     *\n     * **Note:** This method doesn't set the \"length\" property of bound functions.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {Object} object The object to bind and assign the bound methods to.\n     * @param {...(string|string[])} methodNames The object method names to bind.\n     * @returns {Object} Returns `object`.\n     * @example\n     *\n     * var view = {\n     *   'label': 'docs',\n     *   'click': function() {\n     *     console.log('clicked ' + this.label);\n     *   }\n     * };\n     *\n     * _.bindAll(view, ['click']);\n     * jQuery(element).on('click', view.click);\n     * // => Logs 'clicked docs' when clicked.\n     */\n    var bindAll = flatRest(function(object, methodNames) {\n      arrayEach(methodNames, function(key) {\n        key = toKey(key);\n        baseAssignValue(object, key, bind(object[key], object));\n      });\n      return object;\n    });\n\n    /**\n     * Creates a function that iterates over `pairs` and invokes the corresponding\n     * function of the first predicate to return truthy. The predicate-function\n     * pairs are invoked with the `this` binding and arguments of the created\n     * function.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {Array} pairs The predicate-function pairs.\n     * @returns {Function} Returns the new composite function.\n     * @example\n     *\n     * var func = _.cond([\n     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],\n     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n     *   [_.stubTrue,                      _.constant('no match')]\n     * ]);\n     *\n     * func({ 'a': 1, 'b': 2 });\n     * // => 'matches A'\n     *\n     * func({ 'a': 0, 'b': 1 });\n     * // => 'matches B'\n     *\n     * func({ 'a': '1', 'b': '2' });\n     * // => 'no match'\n     */\n    function cond(pairs) {\n      var length = pairs == null ? 0 : pairs.length,\n          toIteratee = getIteratee();\n\n      pairs = !length ? [] : arrayMap(pairs, function(pair) {\n        if (typeof pair[1] != 'function') {\n          throw new TypeError(FUNC_ERROR_TEXT);\n        }\n        return [toIteratee(pair[0]), pair[1]];\n      });\n\n      return baseRest(function(args) {\n        var index = -1;\n        while (++index < length) {\n          var pair = pairs[index];\n          if (apply(pair[0], this, args)) {\n            return apply(pair[1], this, args);\n          }\n        }\n      });\n    }\n\n    /**\n     * Creates a function that invokes the predicate properties of `source` with\n     * the corresponding property values of a given object, returning `true` if\n     * all predicates return truthy, else `false`.\n     *\n     * **Note:** The created function is equivalent to `_.conformsTo` with\n     * `source` partially applied.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {Object} source The object of property predicates to conform to.\n     * @returns {Function} Returns the new spec function.\n     * @example\n     *\n     * var objects = [\n     *   { 'a': 2, 'b': 1 },\n     *   { 'a': 1, 'b': 2 }\n     * ];\n     *\n     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));\n     * // => [{ 'a': 1, 'b': 2 }]\n     */\n    function conforms(source) {\n      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));\n    }\n\n    /**\n     * Creates a function that returns `value`.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.4.0\n     * @category Util\n     * @param {*} value The value to return from the new function.\n     * @returns {Function} Returns the new constant function.\n     * @example\n     *\n     * var objects = _.times(2, _.constant({ 'a': 1 }));\n     *\n     * console.log(objects);\n     * // => [{ 'a': 1 }, { 'a': 1 }]\n     *\n     * console.log(objects[0] === objects[1]);\n     * // => true\n     */\n    function constant(value) {\n      return function() {\n        return value;\n      };\n    }\n\n    /**\n     * Checks `value` to determine whether a default value should be returned in\n     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,\n     * or `undefined`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.14.0\n     * @category Util\n     * @param {*} value The value to check.\n     * @param {*} defaultValue The default value.\n     * @returns {*} Returns the resolved value.\n     * @example\n     *\n     * _.defaultTo(1, 10);\n     * // => 1\n     *\n     * _.defaultTo(undefined, 10);\n     * // => 10\n     */\n    function defaultTo(value, defaultValue) {\n      return (value == null || value !== value) ? defaultValue : value;\n    }\n\n    /**\n     * Creates a function that returns the result of invoking the given functions\n     * with the `this` binding of the created function, where each successive\n     * invocation is supplied the return value of the previous.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Util\n     * @param {...(Function|Function[])} [funcs] The functions to invoke.\n     * @returns {Function} Returns the new composite function.\n     * @see _.flowRight\n     * @example\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * var addSquare = _.flow([_.add, square]);\n     * addSquare(1, 2);\n     * // => 9\n     */\n    var flow = createFlow();\n\n    /**\n     * This method is like `_.flow` except that it creates a function that\n     * invokes the given functions from right to left.\n     *\n     * @static\n     * @since 3.0.0\n     * @memberOf _\n     * @category Util\n     * @param {...(Function|Function[])} [funcs] The functions to invoke.\n     * @returns {Function} Returns the new composite function.\n     * @see _.flow\n     * @example\n     *\n     * function square(n) {\n     *   return n * n;\n     * }\n     *\n     * var addSquare = _.flowRight([square, _.add]);\n     * addSquare(1, 2);\n     * // => 9\n     */\n    var flowRight = createFlow(true);\n\n    /**\n     * This method returns the first argument it receives.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {*} value Any value.\n     * @returns {*} Returns `value`.\n     * @example\n     *\n     * var object = { 'a': 1 };\n     *\n     * console.log(_.identity(object) === object);\n     * // => true\n     */\n    function identity(value) {\n      return value;\n    }\n\n    /**\n     * Creates a function that invokes `func` with the arguments of the created\n     * function. If `func` is a property name, the created function returns the\n     * property value for a given element. If `func` is an array or object, the\n     * created function returns `true` for elements that contain the equivalent\n     * source properties, otherwise it returns `false`.\n     *\n     * @static\n     * @since 4.0.0\n     * @memberOf _\n     * @category Util\n     * @param {*} [func=_.identity] The value to convert to a callback.\n     * @returns {Function} Returns the callback.\n     * @example\n     *\n     * var users = [\n     *   { 'user': 'barney', 'age': 36, 'active': true },\n     *   { 'user': 'fred',   'age': 40, 'active': false }\n     * ];\n     *\n     * // The `_.matches` iteratee shorthand.\n     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n     *\n     * // The `_.matchesProperty` iteratee shorthand.\n     * _.filter(users, _.iteratee(['user', 'fred']));\n     * // => [{ 'user': 'fred', 'age': 40 }]\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.map(users, _.iteratee('user'));\n     * // => ['barney', 'fred']\n     *\n     * // Create custom iteratee shorthands.\n     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {\n     *     return func.test(string);\n     *   };\n     * });\n     *\n     * _.filter(['abc', 'def'], /ef/);\n     * // => ['def']\n     */\n    function iteratee(func) {\n      return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n    }\n\n    /**\n     * Creates a function that performs a partial deep comparison between a given\n     * object and `source`, returning `true` if the given object has equivalent\n     * property values, else `false`.\n     *\n     * **Note:** The created function is equivalent to `_.isMatch` with `source`\n     * partially applied.\n     *\n     * Partial comparisons will match empty array and empty object `source`\n     * values against any array or object value, respectively. See `_.isEqual`\n     * for a list of supported value comparisons.\n     *\n     * **Note:** Multiple values can be checked by combining several matchers\n     * using `_.overSome`\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Util\n     * @param {Object} source The object of property values to match.\n     * @returns {Function} Returns the new spec function.\n     * @example\n     *\n     * var objects = [\n     *   { 'a': 1, 'b': 2, 'c': 3 },\n     *   { 'a': 4, 'b': 5, 'c': 6 }\n     * ];\n     *\n     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n     *\n     * // Checking for several possible values\n     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));\n     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]\n     */\n    function matches(source) {\n      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n    }\n\n    /**\n     * Creates a function that performs a partial deep comparison between the\n     * value at `path` of a given object to `srcValue`, returning `true` if the\n     * object value is equivalent, else `false`.\n     *\n     * **Note:** Partial comparisons will match empty array and empty object\n     * `srcValue` values against any array or object value, respectively. See\n     * `_.isEqual` for a list of supported value comparisons.\n     *\n     * **Note:** Multiple values can be checked by combining several matchers\n     * using `_.overSome`\n     *\n     * @static\n     * @memberOf _\n     * @since 3.2.0\n     * @category Util\n     * @param {Array|string} path The path of the property to get.\n     * @param {*} srcValue The value to match.\n     * @returns {Function} Returns the new spec function.\n     * @example\n     *\n     * var objects = [\n     *   { 'a': 1, 'b': 2, 'c': 3 },\n     *   { 'a': 4, 'b': 5, 'c': 6 }\n     * ];\n     *\n     * _.find(objects, _.matchesProperty('a', 4));\n     * // => { 'a': 4, 'b': 5, 'c': 6 }\n     *\n     * // Checking for several possible values\n     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));\n     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]\n     */\n    function matchesProperty(path, srcValue) {\n      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));\n    }\n\n    /**\n     * Creates a function that invokes the method at `path` of a given object.\n     * Any additional arguments are provided to the invoked method.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.7.0\n     * @category Util\n     * @param {Array|string} path The path of the method to invoke.\n     * @param {...*} [args] The arguments to invoke the method with.\n     * @returns {Function} Returns the new invoker function.\n     * @example\n     *\n     * var objects = [\n     *   { 'a': { 'b': _.constant(2) } },\n     *   { 'a': { 'b': _.constant(1) } }\n     * ];\n     *\n     * _.map(objects, _.method('a.b'));\n     * // => [2, 1]\n     *\n     * _.map(objects, _.method(['a', 'b']));\n     * // => [2, 1]\n     */\n    var method = baseRest(function(path, args) {\n      return function(object) {\n        return baseInvoke(object, path, args);\n      };\n    });\n\n    /**\n     * The opposite of `_.method`; this method creates a function that invokes\n     * the method at a given path of `object`. Any additional arguments are\n     * provided to the invoked method.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.7.0\n     * @category Util\n     * @param {Object} object The object to query.\n     * @param {...*} [args] The arguments to invoke the method with.\n     * @returns {Function} Returns the new invoker function.\n     * @example\n     *\n     * var array = _.times(3, _.constant),\n     *     object = { 'a': array, 'b': array, 'c': array };\n     *\n     * _.map(['a[2]', 'c[0]'], _.methodOf(object));\n     * // => [2, 0]\n     *\n     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));\n     * // => [2, 0]\n     */\n    var methodOf = baseRest(function(object, args) {\n      return function(path) {\n        return baseInvoke(object, path, args);\n      };\n    });\n\n    /**\n     * Adds all own enumerable string keyed function properties of a source\n     * object to the destination object. If `object` is a function, then methods\n     * are added to its prototype as well.\n     *\n     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n     * avoid conflicts caused by modifying the original.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {Function|Object} [object=lodash] The destination object.\n     * @param {Object} source The object of functions to add.\n     * @param {Object} [options={}] The options object.\n     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n     * @returns {Function|Object} Returns `object`.\n     * @example\n     *\n     * function vowels(string) {\n     *   return _.filter(string, function(v) {\n     *     return /[aeiou]/i.test(v);\n     *   });\n     * }\n     *\n     * _.mixin({ 'vowels': vowels });\n     * _.vowels('fred');\n     * // => ['e']\n     *\n     * _('fred').vowels().value();\n     * // => ['e']\n     *\n     * _.mixin({ 'vowels': vowels }, { 'chain': false });\n     * _('fred').vowels();\n     * // => ['e']\n     */\n    function mixin(object, source, options) {\n      var props = keys(source),\n          methodNames = baseFunctions(source, props);\n\n      if (options == null &&\n          !(isObject(source) && (methodNames.length || !props.length))) {\n        options = source;\n        source = object;\n        object = this;\n        methodNames = baseFunctions(source, keys(source));\n      }\n      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n          isFunc = isFunction(object);\n\n      arrayEach(methodNames, function(methodName) {\n        var func = source[methodName];\n        object[methodName] = func;\n        if (isFunc) {\n          object.prototype[methodName] = function() {\n            var chainAll = this.__chain__;\n            if (chain || chainAll) {\n              var result = object(this.__wrapped__),\n                  actions = result.__actions__ = copyArray(this.__actions__);\n\n              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n              result.__chain__ = chainAll;\n              return result;\n            }\n            return func.apply(object, arrayPush([this.value()], arguments));\n          };\n        }\n      });\n\n      return object;\n    }\n\n    /**\n     * Reverts the `_` variable to its previous value and returns a reference to\n     * the `lodash` function.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @returns {Function} Returns the `lodash` function.\n     * @example\n     *\n     * var lodash = _.noConflict();\n     */\n    function noConflict() {\n      if (root._ === this) {\n        root._ = oldDash;\n      }\n      return this;\n    }\n\n    /**\n     * This method returns `undefined`.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.3.0\n     * @category Util\n     * @example\n     *\n     * _.times(2, _.noop);\n     * // => [undefined, undefined]\n     */\n    function noop() {\n      // No operation performed.\n    }\n\n    /**\n     * Creates a function that gets the argument at index `n`. If `n` is negative,\n     * the nth argument from the end is returned.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {number} [n=0] The index of the argument to return.\n     * @returns {Function} Returns the new pass-thru function.\n     * @example\n     *\n     * var func = _.nthArg(1);\n     * func('a', 'b', 'c', 'd');\n     * // => 'b'\n     *\n     * var func = _.nthArg(-2);\n     * func('a', 'b', 'c', 'd');\n     * // => 'c'\n     */\n    function nthArg(n) {\n      n = toInteger(n);\n      return baseRest(function(args) {\n        return baseNth(args, n);\n      });\n    }\n\n    /**\n     * Creates a function that invokes `iteratees` with the arguments it receives\n     * and returns their results.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {...(Function|Function[])} [iteratees=[_.identity]]\n     *  The iteratees to invoke.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var func = _.over([Math.max, Math.min]);\n     *\n     * func(1, 2, 3, 4);\n     * // => [4, 1]\n     */\n    var over = createOver(arrayMap);\n\n    /**\n     * Creates a function that checks if **all** of the `predicates` return\n     * truthy when invoked with the arguments it receives.\n     *\n     * Following shorthands are possible for providing predicates.\n     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.\n     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {...(Function|Function[])} [predicates=[_.identity]]\n     *  The predicates to check.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var func = _.overEvery([Boolean, isFinite]);\n     *\n     * func('1');\n     * // => true\n     *\n     * func(null);\n     * // => false\n     *\n     * func(NaN);\n     * // => false\n     */\n    var overEvery = createOver(arrayEvery);\n\n    /**\n     * Creates a function that checks if **any** of the `predicates` return\n     * truthy when invoked with the arguments it receives.\n     *\n     * Following shorthands are possible for providing predicates.\n     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.\n     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {...(Function|Function[])} [predicates=[_.identity]]\n     *  The predicates to check.\n     * @returns {Function} Returns the new function.\n     * @example\n     *\n     * var func = _.overSome([Boolean, isFinite]);\n     *\n     * func('1');\n     * // => true\n     *\n     * func(null);\n     * // => true\n     *\n     * func(NaN);\n     * // => false\n     *\n     * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])\n     * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])\n     */\n    var overSome = createOver(arraySome);\n\n    /**\n     * Creates a function that returns the value at `path` of a given object.\n     *\n     * @static\n     * @memberOf _\n     * @since 2.4.0\n     * @category Util\n     * @param {Array|string} path The path of the property to get.\n     * @returns {Function} Returns the new accessor function.\n     * @example\n     *\n     * var objects = [\n     *   { 'a': { 'b': 2 } },\n     *   { 'a': { 'b': 1 } }\n     * ];\n     *\n     * _.map(objects, _.property('a.b'));\n     * // => [2, 1]\n     *\n     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n     * // => [1, 2]\n     */\n    function property(path) {\n      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n    }\n\n    /**\n     * The opposite of `_.property`; this method creates a function that returns\n     * the value at a given path of `object`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.0.0\n     * @category Util\n     * @param {Object} object The object to query.\n     * @returns {Function} Returns the new accessor function.\n     * @example\n     *\n     * var array = [0, 1, 2],\n     *     object = { 'a': array, 'b': array, 'c': array };\n     *\n     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));\n     * // => [2, 0]\n     *\n     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n     * // => [2, 0]\n     */\n    function propertyOf(object) {\n      return function(path) {\n        return object == null ? undefined : baseGet(object, path);\n      };\n    }\n\n    /**\n     * Creates an array of numbers (positive and/or negative) progressing from\n     * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n     * `start` is specified without an `end` or `step`. If `end` is not specified,\n     * it's set to `start` with `start` then set to `0`.\n     *\n     * **Note:** JavaScript follows the IEEE-754 standard for resolving\n     * floating-point values which can produce unexpected results.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {number} [start=0] The start of the range.\n     * @param {number} end The end of the range.\n     * @param {number} [step=1] The value to increment or decrement by.\n     * @returns {Array} Returns the range of numbers.\n     * @see _.inRange, _.rangeRight\n     * @example\n     *\n     * _.range(4);\n     * // => [0, 1, 2, 3]\n     *\n     * _.range(-4);\n     * // => [0, -1, -2, -3]\n     *\n     * _.range(1, 5);\n     * // => [1, 2, 3, 4]\n     *\n     * _.range(0, 20, 5);\n     * // => [0, 5, 10, 15]\n     *\n     * _.range(0, -4, -1);\n     * // => [0, -1, -2, -3]\n     *\n     * _.range(1, 4, 0);\n     * // => [1, 1, 1]\n     *\n     * _.range(0);\n     * // => []\n     */\n    var range = createRange();\n\n    /**\n     * This method is like `_.range` except that it populates values in\n     * descending order.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {number} [start=0] The start of the range.\n     * @param {number} end The end of the range.\n     * @param {number} [step=1] The value to increment or decrement by.\n     * @returns {Array} Returns the range of numbers.\n     * @see _.inRange, _.range\n     * @example\n     *\n     * _.rangeRight(4);\n     * // => [3, 2, 1, 0]\n     *\n     * _.rangeRight(-4);\n     * // => [-3, -2, -1, 0]\n     *\n     * _.rangeRight(1, 5);\n     * // => [4, 3, 2, 1]\n     *\n     * _.rangeRight(0, 20, 5);\n     * // => [15, 10, 5, 0]\n     *\n     * _.rangeRight(0, -4, -1);\n     * // => [-3, -2, -1, 0]\n     *\n     * _.rangeRight(1, 4, 0);\n     * // => [1, 1, 1]\n     *\n     * _.rangeRight(0);\n     * // => []\n     */\n    var rangeRight = createRange(true);\n\n    /**\n     * This method returns a new empty array.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.13.0\n     * @category Util\n     * @returns {Array} Returns the new empty array.\n     * @example\n     *\n     * var arrays = _.times(2, _.stubArray);\n     *\n     * console.log(arrays);\n     * // => [[], []]\n     *\n     * console.log(arrays[0] === arrays[1]);\n     * // => false\n     */\n    function stubArray() {\n      return [];\n    }\n\n    /**\n     * This method returns `false`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.13.0\n     * @category Util\n     * @returns {boolean} Returns `false`.\n     * @example\n     *\n     * _.times(2, _.stubFalse);\n     * // => [false, false]\n     */\n    function stubFalse() {\n      return false;\n    }\n\n    /**\n     * This method returns a new empty object.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.13.0\n     * @category Util\n     * @returns {Object} Returns the new empty object.\n     * @example\n     *\n     * var objects = _.times(2, _.stubObject);\n     *\n     * console.log(objects);\n     * // => [{}, {}]\n     *\n     * console.log(objects[0] === objects[1]);\n     * // => false\n     */\n    function stubObject() {\n      return {};\n    }\n\n    /**\n     * This method returns an empty string.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.13.0\n     * @category Util\n     * @returns {string} Returns the empty string.\n     * @example\n     *\n     * _.times(2, _.stubString);\n     * // => ['', '']\n     */\n    function stubString() {\n      return '';\n    }\n\n    /**\n     * This method returns `true`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.13.0\n     * @category Util\n     * @returns {boolean} Returns `true`.\n     * @example\n     *\n     * _.times(2, _.stubTrue);\n     * // => [true, true]\n     */\n    function stubTrue() {\n      return true;\n    }\n\n    /**\n     * Invokes the iteratee `n` times, returning an array of the results of\n     * each invocation. The iteratee is invoked with one argument; (index).\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {number} n The number of times to invoke `iteratee`.\n     * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n     * @returns {Array} Returns the array of results.\n     * @example\n     *\n     * _.times(3, String);\n     * // => ['0', '1', '2']\n     *\n     *  _.times(4, _.constant(0));\n     * // => [0, 0, 0, 0]\n     */\n    function times(n, iteratee) {\n      n = toInteger(n);\n      if (n < 1 || n > MAX_SAFE_INTEGER) {\n        return [];\n      }\n      var index = MAX_ARRAY_LENGTH,\n          length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n      iteratee = getIteratee(iteratee);\n      n -= MAX_ARRAY_LENGTH;\n\n      var result = baseTimes(length, iteratee);\n      while (++index < n) {\n        iteratee(index);\n      }\n      return result;\n    }\n\n    /**\n     * Converts `value` to a property path array.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Util\n     * @param {*} value The value to convert.\n     * @returns {Array} Returns the new property path array.\n     * @example\n     *\n     * _.toPath('a.b.c');\n     * // => ['a', 'b', 'c']\n     *\n     * _.toPath('a[0].b.c');\n     * // => ['a', '0', 'b', 'c']\n     */\n    function toPath(value) {\n      if (isArray(value)) {\n        return arrayMap(value, toKey);\n      }\n      return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n    }\n\n    /**\n     * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Util\n     * @param {string} [prefix=''] The value to prefix the ID with.\n     * @returns {string} Returns the unique ID.\n     * @example\n     *\n     * _.uniqueId('contact_');\n     * // => 'contact_104'\n     *\n     * _.uniqueId();\n     * // => '105'\n     */\n    function uniqueId(prefix) {\n      var id = ++idCounter;\n      return toString(prefix) + id;\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * Adds two numbers.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.4.0\n     * @category Math\n     * @param {number} augend The first number in an addition.\n     * @param {number} addend The second number in an addition.\n     * @returns {number} Returns the total.\n     * @example\n     *\n     * _.add(6, 4);\n     * // => 10\n     */\n    var add = createMathOperation(function(augend, addend) {\n      return augend + addend;\n    }, 0);\n\n    /**\n     * Computes `number` rounded up to `precision`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.10.0\n     * @category Math\n     * @param {number} number The number to round up.\n     * @param {number} [precision=0] The precision to round up to.\n     * @returns {number} Returns the rounded up number.\n     * @example\n     *\n     * _.ceil(4.006);\n     * // => 5\n     *\n     * _.ceil(6.004, 2);\n     * // => 6.01\n     *\n     * _.ceil(6040, -2);\n     * // => 6100\n     */\n    var ceil = createRound('ceil');\n\n    /**\n     * Divide two numbers.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.7.0\n     * @category Math\n     * @param {number} dividend The first number in a division.\n     * @param {number} divisor The second number in a division.\n     * @returns {number} Returns the quotient.\n     * @example\n     *\n     * _.divide(6, 4);\n     * // => 1.5\n     */\n    var divide = createMathOperation(function(dividend, divisor) {\n      return dividend / divisor;\n    }, 1);\n\n    /**\n     * Computes `number` rounded down to `precision`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.10.0\n     * @category Math\n     * @param {number} number The number to round down.\n     * @param {number} [precision=0] The precision to round down to.\n     * @returns {number} Returns the rounded down number.\n     * @example\n     *\n     * _.floor(4.006);\n     * // => 4\n     *\n     * _.floor(0.046, 2);\n     * // => 0.04\n     *\n     * _.floor(4060, -2);\n     * // => 4000\n     */\n    var floor = createRound('floor');\n\n    /**\n     * Computes the maximum value of `array`. If `array` is empty or falsey,\n     * `undefined` is returned.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @returns {*} Returns the maximum value.\n     * @example\n     *\n     * _.max([4, 2, 8, 6]);\n     * // => 8\n     *\n     * _.max([]);\n     * // => undefined\n     */\n    function max(array) {\n      return (array && array.length)\n        ? baseExtremum(array, identity, baseGt)\n        : undefined;\n    }\n\n    /**\n     * This method is like `_.max` except that it accepts `iteratee` which is\n     * invoked for each element in `array` to generate the criterion by which\n     * the value is ranked. The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {*} Returns the maximum value.\n     * @example\n     *\n     * var objects = [{ 'n': 1 }, { 'n': 2 }];\n     *\n     * _.maxBy(objects, function(o) { return o.n; });\n     * // => { 'n': 2 }\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.maxBy(objects, 'n');\n     * // => { 'n': 2 }\n     */\n    function maxBy(array, iteratee) {\n      return (array && array.length)\n        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)\n        : undefined;\n    }\n\n    /**\n     * Computes the mean of the values in `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @returns {number} Returns the mean.\n     * @example\n     *\n     * _.mean([4, 2, 8, 6]);\n     * // => 5\n     */\n    function mean(array) {\n      return baseMean(array, identity);\n    }\n\n    /**\n     * This method is like `_.mean` except that it accepts `iteratee` which is\n     * invoked for each element in `array` to generate the value to be averaged.\n     * The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.7.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {number} Returns the mean.\n     * @example\n     *\n     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n     *\n     * _.meanBy(objects, function(o) { return o.n; });\n     * // => 5\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.meanBy(objects, 'n');\n     * // => 5\n     */\n    function meanBy(array, iteratee) {\n      return baseMean(array, getIteratee(iteratee, 2));\n    }\n\n    /**\n     * Computes the minimum value of `array`. If `array` is empty or falsey,\n     * `undefined` is returned.\n     *\n     * @static\n     * @since 0.1.0\n     * @memberOf _\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @returns {*} Returns the minimum value.\n     * @example\n     *\n     * _.min([4, 2, 8, 6]);\n     * // => 2\n     *\n     * _.min([]);\n     * // => undefined\n     */\n    function min(array) {\n      return (array && array.length)\n        ? baseExtremum(array, identity, baseLt)\n        : undefined;\n    }\n\n    /**\n     * This method is like `_.min` except that it accepts `iteratee` which is\n     * invoked for each element in `array` to generate the criterion by which\n     * the value is ranked. The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {*} Returns the minimum value.\n     * @example\n     *\n     * var objects = [{ 'n': 1 }, { 'n': 2 }];\n     *\n     * _.minBy(objects, function(o) { return o.n; });\n     * // => { 'n': 1 }\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.minBy(objects, 'n');\n     * // => { 'n': 1 }\n     */\n    function minBy(array, iteratee) {\n      return (array && array.length)\n        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)\n        : undefined;\n    }\n\n    /**\n     * Multiply two numbers.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.7.0\n     * @category Math\n     * @param {number} multiplier The first number in a multiplication.\n     * @param {number} multiplicand The second number in a multiplication.\n     * @returns {number} Returns the product.\n     * @example\n     *\n     * _.multiply(6, 4);\n     * // => 24\n     */\n    var multiply = createMathOperation(function(multiplier, multiplicand) {\n      return multiplier * multiplicand;\n    }, 1);\n\n    /**\n     * Computes `number` rounded to `precision`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.10.0\n     * @category Math\n     * @param {number} number The number to round.\n     * @param {number} [precision=0] The precision to round to.\n     * @returns {number} Returns the rounded number.\n     * @example\n     *\n     * _.round(4.006);\n     * // => 4\n     *\n     * _.round(4.006, 2);\n     * // => 4.01\n     *\n     * _.round(4060, -2);\n     * // => 4100\n     */\n    var round = createRound('round');\n\n    /**\n     * Subtract two numbers.\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Math\n     * @param {number} minuend The first number in a subtraction.\n     * @param {number} subtrahend The second number in a subtraction.\n     * @returns {number} Returns the difference.\n     * @example\n     *\n     * _.subtract(6, 4);\n     * // => 2\n     */\n    var subtract = createMathOperation(function(minuend, subtrahend) {\n      return minuend - subtrahend;\n    }, 0);\n\n    /**\n     * Computes the sum of the values in `array`.\n     *\n     * @static\n     * @memberOf _\n     * @since 3.4.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @returns {number} Returns the sum.\n     * @example\n     *\n     * _.sum([4, 2, 8, 6]);\n     * // => 20\n     */\n    function sum(array) {\n      return (array && array.length)\n        ? baseSum(array, identity)\n        : 0;\n    }\n\n    /**\n     * This method is like `_.sum` except that it accepts `iteratee` which is\n     * invoked for each element in `array` to generate the value to be summed.\n     * The iteratee is invoked with one argument: (value).\n     *\n     * @static\n     * @memberOf _\n     * @since 4.0.0\n     * @category Math\n     * @param {Array} array The array to iterate over.\n     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n     * @returns {number} Returns the sum.\n     * @example\n     *\n     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n     *\n     * _.sumBy(objects, function(o) { return o.n; });\n     * // => 20\n     *\n     * // The `_.property` iteratee shorthand.\n     * _.sumBy(objects, 'n');\n     * // => 20\n     */\n    function sumBy(array, iteratee) {\n      return (array && array.length)\n        ? baseSum(array, getIteratee(iteratee, 2))\n        : 0;\n    }\n\n    /*------------------------------------------------------------------------*/\n\n    // Add methods that return wrapped values in chain sequences.\n    lodash.after = after;\n    lodash.ary = ary;\n    lodash.assign = assign;\n    lodash.assignIn = assignIn;\n    lodash.assignInWith = assignInWith;\n    lodash.assignWith = assignWith;\n    lodash.at = at;\n    lodash.before = before;\n    lodash.bind = bind;\n    lodash.bindAll = bindAll;\n    lodash.bindKey = bindKey;\n    lodash.castArray = castArray;\n    lodash.chain = chain;\n    lodash.chunk = chunk;\n    lodash.compact = compact;\n    lodash.concat = concat;\n    lodash.cond = cond;\n    lodash.conforms = conforms;\n    lodash.constant = constant;\n    lodash.countBy = countBy;\n    lodash.create = create;\n    lodash.curry = curry;\n    lodash.curryRight = curryRight;\n    lodash.debounce = debounce;\n    lodash.defaults = defaults;\n    lodash.defaultsDeep = defaultsDeep;\n    lodash.defer = defer;\n    lodash.delay = delay;\n    lodash.difference = difference;\n    lodash.differenceBy = differenceBy;\n    lodash.differenceWith = differenceWith;\n    lodash.drop = drop;\n    lodash.dropRight = dropRight;\n    lodash.dropRightWhile = dropRightWhile;\n    lodash.dropWhile = dropWhile;\n    lodash.fill = fill;\n    lodash.filter = filter;\n    lodash.flatMap = flatMap;\n    lodash.flatMapDeep = flatMapDeep;\n    lodash.flatMapDepth = flatMapDepth;\n    lodash.flatten = flatten;\n    lodash.flattenDeep = flattenDeep;\n    lodash.flattenDepth = flattenDepth;\n    lodash.flip = flip;\n    lodash.flow = flow;\n    lodash.flowRight = flowRight;\n    lodash.fromPairs = fromPairs;\n    lodash.functions = functions;\n    lodash.functionsIn = functionsIn;\n    lodash.groupBy = groupBy;\n    lodash.initial = initial;\n    lodash.intersection = intersection;\n    lodash.intersectionBy = intersectionBy;\n    lodash.intersectionWith = intersectionWith;\n    lodash.invert = invert;\n    lodash.invertBy = invertBy;\n    lodash.invokeMap = invokeMap;\n    lodash.iteratee = iteratee;\n    lodash.keyBy = keyBy;\n    lodash.keys = keys;\n    lodash.keysIn = keysIn;\n    lodash.map = map;\n    lodash.mapKeys = mapKeys;\n    lodash.mapValues = mapValues;\n    lodash.matches = matches;\n    lodash.matchesProperty = matchesProperty;\n    lodash.memoize = memoize;\n    lodash.merge = merge;\n    lodash.mergeWith = mergeWith;\n    lodash.method = method;\n    lodash.methodOf = methodOf;\n    lodash.mixin = mixin;\n    lodash.negate = negate;\n    lodash.nthArg = nthArg;\n    lodash.omit = omit;\n    lodash.omitBy = omitBy;\n    lodash.once = once;\n    lodash.orderBy = orderBy;\n    lodash.over = over;\n    lodash.overArgs = overArgs;\n    lodash.overEvery = overEvery;\n    lodash.overSome = overSome;\n    lodash.partial = partial;\n    lodash.partialRight = partialRight;\n    lodash.partition = partition;\n    lodash.pick = pick;\n    lodash.pickBy = pickBy;\n    lodash.property = property;\n    lodash.propertyOf = propertyOf;\n    lodash.pull = pull;\n    lodash.pullAll = pullAll;\n    lodash.pullAllBy = pullAllBy;\n    lodash.pullAllWith = pullAllWith;\n    lodash.pullAt = pullAt;\n    lodash.range = range;\n    lodash.rangeRight = rangeRight;\n    lodash.rearg = rearg;\n    lodash.reject = reject;\n    lodash.remove = remove;\n    lodash.rest = rest;\n    lodash.reverse = reverse;\n    lodash.sampleSize = sampleSize;\n    lodash.set = set;\n    lodash.setWith = setWith;\n    lodash.shuffle = shuffle;\n    lodash.slice = slice;\n    lodash.sortBy = sortBy;\n    lodash.sortedUniq = sortedUniq;\n    lodash.sortedUniqBy = sortedUniqBy;\n    lodash.split = split;\n    lodash.spread = spread;\n    lodash.tail = tail;\n    lodash.take = take;\n    lodash.takeRight = takeRight;\n    lodash.takeRightWhile = takeRightWhile;\n    lodash.takeWhile = takeWhile;\n    lodash.tap = tap;\n    lodash.throttle = throttle;\n    lodash.thru = thru;\n    lodash.toArray = toArray;\n    lodash.toPairs = toPairs;\n    lodash.toPairsIn = toPairsIn;\n    lodash.toPath = toPath;\n    lodash.toPlainObject = toPlainObject;\n    lodash.transform = transform;\n    lodash.unary = unary;\n    lodash.union = union;\n    lodash.unionBy = unionBy;\n    lodash.unionWith = unionWith;\n    lodash.uniq = uniq;\n    lodash.uniqBy = uniqBy;\n    lodash.uniqWith = uniqWith;\n    lodash.unset = unset;\n    lodash.unzip = unzip;\n    lodash.unzipWith = unzipWith;\n    lodash.update = update;\n    lodash.updateWith = updateWith;\n    lodash.values = values;\n    lodash.valuesIn = valuesIn;\n    lodash.without = without;\n    lodash.words = words;\n    lodash.wrap = wrap;\n    lodash.xor = xor;\n    lodash.xorBy = xorBy;\n    lodash.xorWith = xorWith;\n    lodash.zip = zip;\n    lodash.zipObject = zipObject;\n    lodash.zipObjectDeep = zipObjectDeep;\n    lodash.zipWith = zipWith;\n\n    // Add aliases.\n    lodash.entries = toPairs;\n    lodash.entriesIn = toPairsIn;\n    lodash.extend = assignIn;\n    lodash.extendWith = assignInWith;\n\n    // Add methods to `lodash.prototype`.\n    mixin(lodash, lodash);\n\n    /*------------------------------------------------------------------------*/\n\n    // Add methods that return unwrapped values in chain sequences.\n    lodash.add = add;\n    lodash.attempt = attempt;\n    lodash.camelCase = camelCase;\n    lodash.capitalize = capitalize;\n    lodash.ceil = ceil;\n    lodash.clamp = clamp;\n    lodash.clone = clone;\n    lodash.cloneDeep = cloneDeep;\n    lodash.cloneDeepWith = cloneDeepWith;\n    lodash.cloneWith = cloneWith;\n    lodash.conformsTo = conformsTo;\n    lodash.deburr = deburr;\n    lodash.defaultTo = defaultTo;\n    lodash.divide = divide;\n    lodash.endsWith = endsWith;\n    lodash.eq = eq;\n    lodash.escape = escape;\n    lodash.escapeRegExp = escapeRegExp;\n    lodash.every = every;\n    lodash.find = find;\n    lodash.findIndex = findIndex;\n    lodash.findKey = findKey;\n    lodash.findLast = findLast;\n    lodash.findLastIndex = findLastIndex;\n    lodash.findLastKey = findLastKey;\n    lodash.floor = floor;\n    lodash.forEach = forEach;\n    lodash.forEachRight = forEachRight;\n    lodash.forIn = forIn;\n    lodash.forInRight = forInRight;\n    lodash.forOwn = forOwn;\n    lodash.forOwnRight = forOwnRight;\n    lodash.get = get;\n    lodash.gt = gt;\n    lodash.gte = gte;\n    lodash.has = has;\n    lodash.hasIn = hasIn;\n    lodash.head = head;\n    lodash.identity = identity;\n    lodash.includes = includes;\n    lodash.indexOf = indexOf;\n    lodash.inRange = inRange;\n    lodash.invoke = invoke;\n    lodash.isArguments = isArguments;\n    lodash.isArray = isArray;\n    lodash.isArrayBuffer = isArrayBuffer;\n    lodash.isArrayLike = isArrayLike;\n    lodash.isArrayLikeObject = isArrayLikeObject;\n    lodash.isBoolean = isBoolean;\n    lodash.isBuffer = isBuffer;\n    lodash.isDate = isDate;\n    lodash.isElement = isElement;\n    lodash.isEmpty = isEmpty;\n    lodash.isEqual = isEqual;\n    lodash.isEqualWith = isEqualWith;\n    lodash.isError = isError;\n    lodash.isFinite = isFinite;\n    lodash.isFunction = isFunction;\n    lodash.isInteger = isInteger;\n    lodash.isLength = isLength;\n    lodash.isMap = isMap;\n    lodash.isMatch = isMatch;\n    lodash.isMatchWith = isMatchWith;\n    lodash.isNaN = isNaN;\n    lodash.isNative = isNative;\n    lodash.isNil = isNil;\n    lodash.isNull = isNull;\n    lodash.isNumber = isNumber;\n    lodash.isObject = isObject;\n    lodash.isObjectLike = isObjectLike;\n    lodash.isPlainObject = isPlainObject;\n    lodash.isRegExp = isRegExp;\n    lodash.isSafeInteger = isSafeInteger;\n    lodash.isSet = isSet;\n    lodash.isString = isString;\n    lodash.isSymbol = isSymbol;\n    lodash.isTypedArray = isTypedArray;\n    lodash.isUndefined = isUndefined;\n    lodash.isWeakMap = isWeakMap;\n    lodash.isWeakSet = isWeakSet;\n    lodash.join = join;\n    lodash.kebabCase = kebabCase;\n    lodash.last = last;\n    lodash.lastIndexOf = lastIndexOf;\n    lodash.lowerCase = lowerCase;\n    lodash.lowerFirst = lowerFirst;\n    lodash.lt = lt;\n    lodash.lte = lte;\n    lodash.max = max;\n    lodash.maxBy = maxBy;\n    lodash.mean = mean;\n    lodash.meanBy = meanBy;\n    lodash.min = min;\n    lodash.minBy = minBy;\n    lodash.stubArray = stubArray;\n    lodash.stubFalse = stubFalse;\n    lodash.stubObject = stubObject;\n    lodash.stubString = stubString;\n    lodash.stubTrue = stubTrue;\n    lodash.multiply = multiply;\n    lodash.nth = nth;\n    lodash.noConflict = noConflict;\n    lodash.noop = noop;\n    lodash.now = now;\n    lodash.pad = pad;\n    lodash.padEnd = padEnd;\n    lodash.padStart = padStart;\n    lodash.parseInt = parseInt;\n    lodash.random = random;\n    lodash.reduce = reduce;\n    lodash.reduceRight = reduceRight;\n    lodash.repeat = repeat;\n    lodash.replace = replace;\n    lodash.result = result;\n    lodash.round = round;\n    lodash.runInContext = runInContext;\n    lodash.sample = sample;\n    lodash.size = size;\n    lodash.snakeCase = snakeCase;\n    lodash.some = some;\n    lodash.sortedIndex = sortedIndex;\n    lodash.sortedIndexBy = sortedIndexBy;\n    lodash.sortedIndexOf = sortedIndexOf;\n    lodash.sortedLastIndex = sortedLastIndex;\n    lodash.sortedLastIndexBy = sortedLastIndexBy;\n    lodash.sortedLastIndexOf = sortedLastIndexOf;\n    lodash.startCase = startCase;\n    lodash.startsWith = startsWith;\n    lodash.subtract = subtract;\n    lodash.sum = sum;\n    lodash.sumBy = sumBy;\n    lodash.template = template;\n    lodash.times = times;\n    lodash.toFinite = toFinite;\n    lodash.toInteger = toInteger;\n    lodash.toLength = toLength;\n    lodash.toLower = toLower;\n    lodash.toNumber = toNumber;\n    lodash.toSafeInteger = toSafeInteger;\n    lodash.toString = toString;\n    lodash.toUpper = toUpper;\n    lodash.trim = trim;\n    lodash.trimEnd = trimEnd;\n    lodash.trimStart = trimStart;\n    lodash.truncate = truncate;\n    lodash.unescape = unescape;\n    lodash.uniqueId = uniqueId;\n    lodash.upperCase = upperCase;\n    lodash.upperFirst = upperFirst;\n\n    // Add aliases.\n    lodash.each = forEach;\n    lodash.eachRight = forEachRight;\n    lodash.first = head;\n\n    mixin(lodash, (function() {\n      var source = {};\n      baseForOwn(lodash, function(func, methodName) {\n        if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n          source[methodName] = func;\n        }\n      });\n      return source;\n    }()), { 'chain': false });\n\n    /*------------------------------------------------------------------------*/\n\n    /**\n     * The semantic version number.\n     *\n     * @static\n     * @memberOf _\n     * @type {string}\n     */\n    lodash.VERSION = VERSION;\n\n    // Assign default placeholders.\n    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n      lodash[methodName].placeholder = lodash;\n    });\n\n    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n    arrayEach(['drop', 'take'], function(methodName, index) {\n      LazyWrapper.prototype[methodName] = function(n) {\n        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n        var result = (this.__filtered__ && !index)\n          ? new LazyWrapper(this)\n          : this.clone();\n\n        if (result.__filtered__) {\n          result.__takeCount__ = nativeMin(n, result.__takeCount__);\n        } else {\n          result.__views__.push({\n            'size': nativeMin(n, MAX_ARRAY_LENGTH),\n            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n          });\n        }\n        return result;\n      };\n\n      LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n        return this.reverse()[methodName](n).reverse();\n      };\n    });\n\n    // Add `LazyWrapper` methods that accept an `iteratee` value.\n    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n      var type = index + 1,\n          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n      LazyWrapper.prototype[methodName] = function(iteratee) {\n        var result = this.clone();\n        result.__iteratees__.push({\n          'iteratee': getIteratee(iteratee, 3),\n          'type': type\n        });\n        result.__filtered__ = result.__filtered__ || isFilter;\n        return result;\n      };\n    });\n\n    // Add `LazyWrapper` methods for `_.head` and `_.last`.\n    arrayEach(['head', 'last'], function(methodName, index) {\n      var takeName = 'take' + (index ? 'Right' : '');\n\n      LazyWrapper.prototype[methodName] = function() {\n        return this[takeName](1).value()[0];\n      };\n    });\n\n    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n    arrayEach(['initial', 'tail'], function(methodName, index) {\n      var dropName = 'drop' + (index ? '' : 'Right');\n\n      LazyWrapper.prototype[methodName] = function() {\n        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n      };\n    });\n\n    LazyWrapper.prototype.compact = function() {\n      return this.filter(identity);\n    };\n\n    LazyWrapper.prototype.find = function(predicate) {\n      return this.filter(predicate).head();\n    };\n\n    LazyWrapper.prototype.findLast = function(predicate) {\n      return this.reverse().find(predicate);\n    };\n\n    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n      if (typeof path == 'function') {\n        return new LazyWrapper(this);\n      }\n      return this.map(function(value) {\n        return baseInvoke(value, path, args);\n      });\n    });\n\n    LazyWrapper.prototype.reject = function(predicate) {\n      return this.filter(negate(getIteratee(predicate)));\n    };\n\n    LazyWrapper.prototype.slice = function(start, end) {\n      start = toInteger(start);\n\n      var result = this;\n      if (result.__filtered__ && (start > 0 || end < 0)) {\n        return new LazyWrapper(result);\n      }\n      if (start < 0) {\n        result = result.takeRight(-start);\n      } else if (start) {\n        result = result.drop(start);\n      }\n      if (end !== undefined) {\n        end = toInteger(end);\n        result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n      }\n      return result;\n    };\n\n    LazyWrapper.prototype.takeRightWhile = function(predicate) {\n      return this.reverse().takeWhile(predicate).reverse();\n    };\n\n    LazyWrapper.prototype.toArray = function() {\n      return this.take(MAX_ARRAY_LENGTH);\n    };\n\n    // Add `LazyWrapper` methods to `lodash.prototype`.\n    baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n          isTaker = /^(?:head|last)$/.test(methodName),\n          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n          retUnwrapped = isTaker || /^find/.test(methodName);\n\n      if (!lodashFunc) {\n        return;\n      }\n      lodash.prototype[methodName] = function() {\n        var value = this.__wrapped__,\n            args = isTaker ? [1] : arguments,\n            isLazy = value instanceof LazyWrapper,\n            iteratee = args[0],\n            useLazy = isLazy || isArray(value);\n\n        var interceptor = function(value) {\n          var result = lodashFunc.apply(lodash, arrayPush([value], args));\n          return (isTaker && chainAll) ? result[0] : result;\n        };\n\n        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n          // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n          isLazy = useLazy = false;\n        }\n        var chainAll = this.__chain__,\n            isHybrid = !!this.__actions__.length,\n            isUnwrapped = retUnwrapped && !chainAll,\n            onlyLazy = isLazy && !isHybrid;\n\n        if (!retUnwrapped && useLazy) {\n          value = onlyLazy ? value : new LazyWrapper(this);\n          var result = func.apply(value, args);\n          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n          return new LodashWrapper(result, chainAll);\n        }\n        if (isUnwrapped && onlyLazy) {\n          return func.apply(this, args);\n        }\n        result = this.thru(interceptor);\n        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n      };\n    });\n\n    // Add `Array` methods to `lodash.prototype`.\n    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n      var func = arrayProto[methodName],\n          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n          retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n      lodash.prototype[methodName] = function() {\n        var args = arguments;\n        if (retUnwrapped && !this.__chain__) {\n          var value = this.value();\n          return func.apply(isArray(value) ? value : [], args);\n        }\n        return this[chainName](function(value) {\n          return func.apply(isArray(value) ? value : [], args);\n        });\n      };\n    });\n\n    // Map minified method names to their real names.\n    baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n      var lodashFunc = lodash[methodName];\n      if (lodashFunc) {\n        var key = lodashFunc.name + '';\n        if (!hasOwnProperty.call(realNames, key)) {\n          realNames[key] = [];\n        }\n        realNames[key].push({ 'name': methodName, 'func': lodashFunc });\n      }\n    });\n\n    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n      'name': 'wrapper',\n      'func': undefined\n    }];\n\n    // Add methods to `LazyWrapper`.\n    LazyWrapper.prototype.clone = lazyClone;\n    LazyWrapper.prototype.reverse = lazyReverse;\n    LazyWrapper.prototype.value = lazyValue;\n\n    // Add chain sequence methods to the `lodash` wrapper.\n    lodash.prototype.at = wrapperAt;\n    lodash.prototype.chain = wrapperChain;\n    lodash.prototype.commit = wrapperCommit;\n    lodash.prototype.next = wrapperNext;\n    lodash.prototype.plant = wrapperPlant;\n    lodash.prototype.reverse = wrapperReverse;\n    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n    // Add lazy aliases.\n    lodash.prototype.first = lodash.prototype.head;\n\n    if (symIterator) {\n      lodash.prototype[symIterator] = wrapperToIterator;\n    }\n    return lodash;\n  });\n\n  /*--------------------------------------------------------------------------*/\n\n  // Export lodash.\n  var _ = runInContext();\n\n  // Some AMD build optimizers, like r.js, check for condition patterns like:\n  if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n    // Expose Lodash on the global object to prevent errors when Lodash is\n    // loaded by a script tag in the presence of an AMD loader.\n    // See http://requirejs.org/docs/errors.html#mismatch for more details.\n    // Use `_.noConflict` to remove Lodash from the global object.\n    root._ = _;\n\n    // Define as an anonymous module so, through path mapping, it can be\n    // referenced as the \"underscore\" module.\n    define(function() {\n      return _;\n    });\n  }\n  // Check for `exports` after `define` in case a build optimizer adds it.\n  else if (freeModule) {\n    // Export for Node.js.\n    (freeModule.exports = _)._ = _;\n    // Export for CommonJS support.\n    freeExports._ = _;\n  }\n  else {\n    // Export to the global object.\n    root._ = _;\n  }\n}.call(this));\n","var arrayMap = require('./_arrayMap'),\n    baseIteratee = require('./_baseIteratee'),\n    baseMap = require('./_baseMap'),\n    isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n *   return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n *   { 'user': 'barney' },\n *   { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n  var func = isArray(collection) ? arrayMap : baseMap;\n  return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseAssignValue = require('./_baseAssignValue'),\n    baseForOwn = require('./_baseForOwn'),\n    baseIteratee = require('./_baseIteratee');\n\n/**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n *   return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\nfunction mapKeys(object, iteratee) {\n  var result = {};\n  iteratee = baseIteratee(iteratee, 3);\n\n  baseForOwn(object, function(value, key, object) {\n    baseAssignValue(result, iteratee(value, key, object), value);\n  });\n  return result;\n}\n\nmodule.exports = mapKeys;\n","var baseAssignValue = require('./_baseAssignValue'),\n    baseForOwn = require('./_baseForOwn'),\n    baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n *   'fred':    { 'user': 'fred',    'age': 40 },\n *   'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n  var result = {};\n  iteratee = baseIteratee(iteratee, 3);\n\n  baseForOwn(object, function(value, key, object) {\n    baseAssignValue(result, key, iteratee(value, key, object));\n  });\n  return result;\n}\n\nmodule.exports = mapValues;\n","var baseExtremum = require('./_baseExtremum'),\n    baseGt = require('./_baseGt'),\n    identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n  return (array && array.length)\n    ? baseExtremum(array, identity, baseGt)\n    : undefined;\n}\n\nmodule.exports = max;\n","var baseExtremum = require('./_baseExtremum'),\n    baseGt = require('./_baseGt'),\n    baseIteratee = require('./_baseIteratee');\n\n/**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\nfunction maxBy(array, iteratee) {\n  return (array && array.length)\n    ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt)\n    : undefined;\n}\n\nmodule.exports = maxBy;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result) || cache;\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n *   return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n  if (typeof predicate != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  return function() {\n    var args = arguments;\n    switch (args.length) {\n      case 0: return !predicate.call(this);\n      case 1: return !predicate.call(this, args[0]);\n      case 2: return !predicate.call(this, args[0], args[1]);\n      case 3: return !predicate.call(this, args[0], args[1], args[2]);\n    }\n    return !predicate.apply(this, args);\n  };\n}\n\nmodule.exports = negate;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n  // No operation performed.\n}\n\nmodule.exports = noop;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n *   console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n  return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseNth = require('./_baseNth'),\n    toInteger = require('./toInteger');\n\n/**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\nfunction nth(array, n) {\n  return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n}\n\nmodule.exports = nth;\n","var arrayMap = require('./_arrayMap'),\n    baseClone = require('./_baseClone'),\n    baseUnset = require('./_baseUnset'),\n    castPath = require('./_castPath'),\n    copyObject = require('./_copyObject'),\n    customOmitClone = require('./_customOmitClone'),\n    flatRest = require('./_flatRest'),\n    getAllKeysIn = require('./_getAllKeysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n    CLONE_FLAT_FLAG = 2,\n    CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n  var result = {};\n  if (object == null) {\n    return result;\n  }\n  var isDeep = false;\n  paths = arrayMap(paths, function(path) {\n    path = castPath(path, object);\n    isDeep || (isDeep = path.length > 1);\n    return path;\n  });\n  copyObject(object, getAllKeysIn(object), result);\n  if (isDeep) {\n    result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n  }\n  var length = paths.length;\n  while (length--) {\n    baseUnset(result, paths[length]);\n  }\n  return result;\n});\n\nmodule.exports = omit;\n","var baseOrderBy = require('./_baseOrderBy'),\n    isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n *  The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n *   { 'user': 'fred',   'age': 48 },\n *   { 'user': 'barney', 'age': 34 },\n *   { 'user': 'fred',   'age': 40 },\n *   { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n  if (collection == null) {\n    return [];\n  }\n  if (!isArray(iteratees)) {\n    iteratees = iteratees == null ? [] : [iteratees];\n  }\n  orders = guard ? undefined : orders;\n  if (!isArray(orders)) {\n    orders = orders == null ? [] : [orders];\n  }\n  return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","var createPadding = require('./_createPadding'),\n    stringSize = require('./_stringSize'),\n    toInteger = require('./toInteger'),\n    toString = require('./toString');\n\n/**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => '   abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\nfunction padStart(string, length, chars) {\n  string = toString(string);\n  length = toInteger(length);\n\n  var strLength = length ? stringSize(string) : 0;\n  return (length && strLength < length)\n    ? (createPadding(length - strLength, chars) + string)\n    : string;\n}\n\nmodule.exports = padStart;\n","var baseRest = require('./_baseRest'),\n    createWrap = require('./_createWrap'),\n    getHolder = require('./_getHolder'),\n    replaceHolders = require('./_replaceHolders');\n\n/** Used to compose bitmasks for function metadata. */\nvar WRAP_PARTIAL_FLAG = 32;\n\n/**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n *   return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\nvar partial = baseRest(function(func, partials) {\n  var holders = replaceHolders(partials, getHolder(partial));\n  return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n});\n\n// Assign default placeholders.\npartial.placeholder = {};\n\nmodule.exports = partial;\n","var basePick = require('./_basePick'),\n    flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n  return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var baseProperty = require('./_baseProperty'),\n    basePropertyDeep = require('./_basePropertyDeep'),\n    isKey = require('./_isKey'),\n    toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var arrayReduce = require('./_arrayReduce'),\n    baseEach = require('./_baseEach'),\n    baseIteratee = require('./_baseIteratee'),\n    baseReduce = require('./_baseReduce'),\n    isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n *   return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n *   (result[value] || (result[value] = [])).push(key);\n *   return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n  var func = isArray(collection) ? arrayReduce : baseReduce,\n      initAccum = arguments.length < 3;\n\n  return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var arrayFilter = require('./_arrayFilter'),\n    baseFilter = require('./_baseFilter'),\n    baseIteratee = require('./_baseIteratee'),\n    isArray = require('./isArray'),\n    negate = require('./negate');\n\n/**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n *   { 'user': 'barney', 'age': 36, 'active': false },\n *   { 'user': 'fred',   'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\nfunction reject(collection, predicate) {\n  var func = isArray(collection) ? arrayFilter : baseFilter;\n  return func(collection, negate(baseIteratee(predicate, 3)));\n}\n\nmodule.exports = reject;\n","var baseIteratee = require('./_baseIteratee'),\n    basePullAt = require('./_basePullAt');\n\n/**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n *   return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\nfunction remove(array, predicate) {\n  var result = [];\n  if (!(array && array.length)) {\n    return result;\n  }\n  var index = -1,\n      indexes = [],\n      length = array.length;\n\n  predicate = baseIteratee(predicate, 3);\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result.push(value);\n      indexes.push(index);\n    }\n  }\n  basePullAt(array, indexes);\n  return result;\n}\n\nmodule.exports = remove;\n","/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeReverse = arrayProto.reverse;\n\n/**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\nfunction reverse(array) {\n  return array == null ? array : nativeReverse.call(array);\n}\n\nmodule.exports = reverse;\n","var arraySample = require('./_arraySample'),\n    baseSample = require('./_baseSample'),\n    isArray = require('./isArray');\n\n/**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\nfunction sample(collection) {\n  var func = isArray(collection) ? arraySample : baseSample;\n  return func(collection);\n}\n\nmodule.exports = sample;\n","var baseKeys = require('./_baseKeys'),\n    getTag = require('./_getTag'),\n    isArrayLike = require('./isArrayLike'),\n    isString = require('./isString'),\n    stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n  if (collection == null) {\n    return 0;\n  }\n  if (isArrayLike(collection)) {\n    return isString(collection) ? stringSize(collection) : collection.length;\n  }\n  var tag = getTag(collection);\n  if (tag == mapTag || tag == setTag) {\n    return collection.size;\n  }\n  return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n","var createCompounder = require('./_createCompounder');\n\n/**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\nvar snakeCase = createCompounder(function(result, word, index) {\n  return result + (index ? '_' : '') + word.toLowerCase();\n});\n\nmodule.exports = snakeCase;\n","var baseFlatten = require('./_baseFlatten'),\n    baseOrderBy = require('./_baseOrderBy'),\n    baseRest = require('./_baseRest'),\n    isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n *  The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n *   { 'user': 'fred',   'age': 48 },\n *   { 'user': 'barney', 'age': 36 },\n *   { 'user': 'fred',   'age': 30 },\n *   { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n  if (collection == null) {\n    return [];\n  }\n  var length = iteratees.length;\n  if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n    iteratees = [];\n  } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n    iteratees = [iteratees[0]];\n  }\n  return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var baseToString = require('./_baseToString'),\n    castSlice = require('./_castSlice'),\n    hasUnicode = require('./_hasUnicode'),\n    isIterateeCall = require('./_isIterateeCall'),\n    isRegExp = require('./isRegExp'),\n    stringToArray = require('./_stringToArray'),\n    toString = require('./toString');\n\n/** Used as references for the maximum length and index of an array. */\nvar MAX_ARRAY_LENGTH = 4294967295;\n\n/**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\nfunction split(string, separator, limit) {\n  if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n    separator = limit = undefined;\n  }\n  limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n  if (!limit) {\n    return [];\n  }\n  string = toString(string);\n  if (string && (\n        typeof separator == 'string' ||\n        (separator != null && !isRegExp(separator))\n      )) {\n    separator = baseToString(separator);\n    if (!separator && hasUnicode(string)) {\n      return castSlice(stringToArray(string), 0, limit);\n    }\n  }\n  return string.split(separator, limit);\n}\n\nmodule.exports = split;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n  return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n  return false;\n}\n\nmodule.exports = stubFalse;\n","var baseSum = require('./_baseSum'),\n    identity = require('./identity');\n\n/**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\nfunction sum(array) {\n  return (array && array.length)\n    ? baseSum(array, identity)\n    : 0;\n}\n\nmodule.exports = sum;\n","var baseSlice = require('./_baseSlice'),\n    toInteger = require('./toInteger');\n\n/**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\nfunction take(array, n, guard) {\n  if (!(array && array.length)) {\n    return [];\n  }\n  n = (guard || n === undefined) ? 1 : toInteger(n);\n  return baseSlice(array, 0, n < 0 ? 0 : n);\n}\n\nmodule.exports = take;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n  if (!value) {\n    return value === 0 ? value : 0;\n  }\n  value = toNumber(value);\n  if (value === INFINITY || value === -INFINITY) {\n    var sign = (value < 0 ? -1 : 1);\n    return sign * MAX_INTEGER;\n  }\n  return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n  var result = toFinite(value),\n      remainder = result % 1;\n\n  return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var baseTrim = require('./_baseTrim'),\n    isObject = require('./isObject'),\n    isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = baseTrim(value);\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseIteratee = require('./_baseIteratee'),\n    baseUniq = require('./_baseUniq');\n\n/**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nfunction uniqBy(array, iteratee) {\n  return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];\n}\n\nmodule.exports = uniqBy;\n","var createCaseFirst = require('./_createCaseFirst');\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\nmodule.exports = upperFirst;\n","var baseValues = require('./_baseValues'),\n    keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n  return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var baseDifference = require('./_baseDifference'),\n    baseRest = require('./_baseRest'),\n    isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\nvar without = baseRest(function(array, values) {\n  return isArrayLikeObject(array)\n    ? baseDifference(array, values)\n    : [];\n});\n\nmodule.exports = without;\n","var asciiWords = require('./_asciiWords'),\n    hasUnicodeWord = require('./_hasUnicodeWord'),\n    toString = require('./toString'),\n    unicodeWords = require('./_unicodeWords');\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n  string = toString(string);\n  pattern = guard ? undefined : pattern;\n\n  if (pattern === undefined) {\n    return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n  }\n  return string.match(pattern) || [];\n}\n\nmodule.exports = words;\n","var LazyWrapper = require('./_LazyWrapper'),\n    LodashWrapper = require('./_LodashWrapper'),\n    baseLodash = require('./_baseLodash'),\n    isArray = require('./isArray'),\n    isObjectLike = require('./isObjectLike'),\n    wrapperClone = require('./_wrapperClone');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n *   return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\nfunction lodash(value) {\n  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n    if (value instanceof LodashWrapper) {\n      return value;\n    }\n    if (hasOwnProperty.call(value, '__wrapped__')) {\n      return wrapperClone(value);\n    }\n  }\n  return new LodashWrapper(value);\n}\n\n// Ensure wrappers are instances of `baseLodash`.\nlodash.prototype = baseLodash.prototype;\nlodash.prototype.constructor = lodash;\n\nmodule.exports = lodash;\n","'use strict';\n\n/** @type {import('./abs')} */\nmodule.exports = Math.abs;\n","'use strict';\n\n/** @type {import('./floor')} */\nmodule.exports = Math.floor;\n","'use strict';\n\n/** @type {import('./isNaN')} */\nmodule.exports = Number.isNaN || function isNaN(a) {\n\treturn a !== a;\n};\n","'use strict';\n\n/** @type {import('./max')} */\nmodule.exports = Math.max;\n","'use strict';\n\n/** @type {import('./min')} */\nmodule.exports = Math.min;\n","'use strict';\n\n/** @type {import('./pow')} */\nmodule.exports = Math.pow;\n","'use strict';\n\n/** @type {import('./round')} */\nmodule.exports = Math.round;\n","'use strict';\n\nvar $isNaN = require('./isNaN');\n\n/** @type {import('./sign')} */\nmodule.exports = function sign(number) {\n\tif ($isNaN(number) || number === 0) {\n\t\treturn number;\n\t}\n\treturn number < 0 ? -1 : +1;\n};\n","(function(){\r\n  var crypt = require('crypt'),\r\n      utf8 = require('charenc').utf8,\r\n      isBuffer = require('is-buffer'),\r\n      bin = require('charenc').bin,\r\n\r\n  // The core\r\n  md5 = function (message, options) {\r\n    // Convert to byte array\r\n    if (message.constructor == String)\r\n      if (options && options.encoding === 'binary')\r\n        message = bin.stringToBytes(message);\r\n      else\r\n        message = utf8.stringToBytes(message);\r\n    else if (isBuffer(message))\r\n      message = Array.prototype.slice.call(message, 0);\r\n    else if (!Array.isArray(message) && message.constructor !== Uint8Array)\r\n      message = message.toString();\r\n    // else, assume byte array already\r\n\r\n    var m = crypt.bytesToWords(message),\r\n        l = message.length * 8,\r\n        a =  1732584193,\r\n        b = -271733879,\r\n        c = -1732584194,\r\n        d =  271733878;\r\n\r\n    // Swap endian\r\n    for (var i = 0; i < m.length; i++) {\r\n      m[i] = ((m[i] <<  8) | (m[i] >>> 24)) & 0x00FF00FF |\r\n             ((m[i] << 24) | (m[i] >>>  8)) & 0xFF00FF00;\r\n    }\r\n\r\n    // Padding\r\n    m[l >>> 5] |= 0x80 << (l % 32);\r\n    m[(((l + 64) >>> 9) << 4) + 14] = l;\r\n\r\n    // Method shortcuts\r\n    var FF = md5._ff,\r\n        GG = md5._gg,\r\n        HH = md5._hh,\r\n        II = md5._ii;\r\n\r\n    for (var i = 0; i < m.length; i += 16) {\r\n\r\n      var aa = a,\r\n          bb = b,\r\n          cc = c,\r\n          dd = d;\r\n\r\n      a = FF(a, b, c, d, m[i+ 0],  7, -680876936);\r\n      d = FF(d, a, b, c, m[i+ 1], 12, -389564586);\r\n      c = FF(c, d, a, b, m[i+ 2], 17,  606105819);\r\n      b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);\r\n      a = FF(a, b, c, d, m[i+ 4],  7, -176418897);\r\n      d = FF(d, a, b, c, m[i+ 5], 12,  1200080426);\r\n      c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);\r\n      b = FF(b, c, d, a, m[i+ 7], 22, -45705983);\r\n      a = FF(a, b, c, d, m[i+ 8],  7,  1770035416);\r\n      d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);\r\n      c = FF(c, d, a, b, m[i+10], 17, -42063);\r\n      b = FF(b, c, d, a, m[i+11], 22, -1990404162);\r\n      a = FF(a, b, c, d, m[i+12],  7,  1804603682);\r\n      d = FF(d, a, b, c, m[i+13], 12, -40341101);\r\n      c = FF(c, d, a, b, m[i+14], 17, -1502002290);\r\n      b = FF(b, c, d, a, m[i+15], 22,  1236535329);\r\n\r\n      a = GG(a, b, c, d, m[i+ 1],  5, -165796510);\r\n      d = GG(d, a, b, c, m[i+ 6],  9, -1069501632);\r\n      c = GG(c, d, a, b, m[i+11], 14,  643717713);\r\n      b = GG(b, c, d, a, m[i+ 0], 20, -373897302);\r\n      a = GG(a, b, c, d, m[i+ 5],  5, -701558691);\r\n      d = GG(d, a, b, c, m[i+10],  9,  38016083);\r\n      c = GG(c, d, a, b, m[i+15], 14, -660478335);\r\n      b = GG(b, c, d, a, m[i+ 4], 20, -405537848);\r\n      a = GG(a, b, c, d, m[i+ 9],  5,  568446438);\r\n      d = GG(d, a, b, c, m[i+14],  9, -1019803690);\r\n      c = GG(c, d, a, b, m[i+ 3], 14, -187363961);\r\n      b = GG(b, c, d, a, m[i+ 8], 20,  1163531501);\r\n      a = GG(a, b, c, d, m[i+13],  5, -1444681467);\r\n      d = GG(d, a, b, c, m[i+ 2],  9, -51403784);\r\n      c = GG(c, d, a, b, m[i+ 7], 14,  1735328473);\r\n      b = GG(b, c, d, a, m[i+12], 20, -1926607734);\r\n\r\n      a = HH(a, b, c, d, m[i+ 5],  4, -378558);\r\n      d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);\r\n      c = HH(c, d, a, b, m[i+11], 16,  1839030562);\r\n      b = HH(b, c, d, a, m[i+14], 23, -35309556);\r\n      a = HH(a, b, c, d, m[i+ 1],  4, -1530992060);\r\n      d = HH(d, a, b, c, m[i+ 4], 11,  1272893353);\r\n      c = HH(c, d, a, b, m[i+ 7], 16, -155497632);\r\n      b = HH(b, c, d, a, m[i+10], 23, -1094730640);\r\n      a = HH(a, b, c, d, m[i+13],  4,  681279174);\r\n      d = HH(d, a, b, c, m[i+ 0], 11, -358537222);\r\n      c = HH(c, d, a, b, m[i+ 3], 16, -722521979);\r\n      b = HH(b, c, d, a, m[i+ 6], 23,  76029189);\r\n      a = HH(a, b, c, d, m[i+ 9],  4, -640364487);\r\n      d = HH(d, a, b, c, m[i+12], 11, -421815835);\r\n      c = HH(c, d, a, b, m[i+15], 16,  530742520);\r\n      b = HH(b, c, d, a, m[i+ 2], 23, -995338651);\r\n\r\n      a = II(a, b, c, d, m[i+ 0],  6, -198630844);\r\n      d = II(d, a, b, c, m[i+ 7], 10,  1126891415);\r\n      c = II(c, d, a, b, m[i+14], 15, -1416354905);\r\n      b = II(b, c, d, a, m[i+ 5], 21, -57434055);\r\n      a = II(a, b, c, d, m[i+12],  6,  1700485571);\r\n      d = II(d, a, b, c, m[i+ 3], 10, -1894986606);\r\n      c = II(c, d, a, b, m[i+10], 15, -1051523);\r\n      b = II(b, c, d, a, m[i+ 1], 21, -2054922799);\r\n      a = II(a, b, c, d, m[i+ 8],  6,  1873313359);\r\n      d = II(d, a, b, c, m[i+15], 10, -30611744);\r\n      c = II(c, d, a, b, m[i+ 6], 15, -1560198380);\r\n      b = II(b, c, d, a, m[i+13], 21,  1309151649);\r\n      a = II(a, b, c, d, m[i+ 4],  6, -145523070);\r\n      d = II(d, a, b, c, m[i+11], 10, -1120210379);\r\n      c = II(c, d, a, b, m[i+ 2], 15,  718787259);\r\n      b = II(b, c, d, a, m[i+ 9], 21, -343485551);\r\n\r\n      a = (a + aa) >>> 0;\r\n      b = (b + bb) >>> 0;\r\n      c = (c + cc) >>> 0;\r\n      d = (d + dd) >>> 0;\r\n    }\r\n\r\n    return crypt.endian([a, b, c, d]);\r\n  };\r\n\r\n  // Auxiliary functions\r\n  md5._ff  = function (a, b, c, d, x, s, t) {\r\n    var n = a + (b & c | ~b & d) + (x >>> 0) + t;\r\n    return ((n << s) | (n >>> (32 - s))) + b;\r\n  };\r\n  md5._gg  = function (a, b, c, d, x, s, t) {\r\n    var n = a + (b & d | c & ~d) + (x >>> 0) + t;\r\n    return ((n << s) | (n >>> (32 - s))) + b;\r\n  };\r\n  md5._hh  = function (a, b, c, d, x, s, t) {\r\n    var n = a + (b ^ c ^ d) + (x >>> 0) + t;\r\n    return ((n << s) | (n >>> (32 - s))) + b;\r\n  };\r\n  md5._ii  = function (a, b, c, d, x, s, t) {\r\n    var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;\r\n    return ((n << s) | (n >>> (32 - s))) + b;\r\n  };\r\n\r\n  // Package private blocksize\r\n  md5._blocksize = 16;\r\n  md5._digestsize = 16;\r\n\r\n  module.exports = function (message, options) {\r\n    if (message === undefined || message === null)\r\n      throw new Error('Illegal argument ' + message);\r\n\r\n    var digestbytes = crypt.wordsToBytes(md5(message, options));\r\n    return options && options.asBytes ? digestbytes :\r\n        options && options.asString ? bin.bytesToString(digestbytes) :\r\n        crypt.bytesToHex(digestbytes);\r\n  };\r\n\r\n})();\r\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc');  // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n    ? Symbol.toStringTag\n    : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n    [].__proto__ === Array.prototype // eslint-disable-line no-proto\n        ? function (O) {\n            return O.__proto__; // eslint-disable-line no-proto\n        }\n        : null\n);\n\nfunction addNumericSeparator(num, str) {\n    if (\n        num === Infinity\n        || num === -Infinity\n        || num !== num\n        || (num && num > -1000 && num < 1000)\n        || $test.call(/e/, str)\n    ) {\n        return str;\n    }\n    var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n    if (typeof num === 'number') {\n        var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n        if (int !== num) {\n            var intStr = String(int);\n            var dec = $slice.call(str, intStr.length + 1);\n            return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n        }\n    }\n    return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nvar quotes = {\n    __proto__: null,\n    'double': '\"',\n    single: \"'\"\n};\nvar quoteREs = {\n    __proto__: null,\n    'double': /([\"\\\\])/g,\n    single: /(['\\\\])/g\n};\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n    var opts = options || {};\n\n    if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {\n        throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n    }\n    if (\n        has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n            ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n            : opts.maxStringLength !== null\n        )\n    ) {\n        throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n    }\n    var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n    if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n        throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n    }\n\n    if (\n        has(opts, 'indent')\n        && opts.indent !== null\n        && opts.indent !== '\\t'\n        && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n    ) {\n        throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n    }\n    if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n        throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n    }\n    var numericSeparator = opts.numericSeparator;\n\n    if (typeof obj === 'undefined') {\n        return 'undefined';\n    }\n    if (obj === null) {\n        return 'null';\n    }\n    if (typeof obj === 'boolean') {\n        return obj ? 'true' : 'false';\n    }\n\n    if (typeof obj === 'string') {\n        return inspectString(obj, opts);\n    }\n    if (typeof obj === 'number') {\n        if (obj === 0) {\n            return Infinity / obj > 0 ? '0' : '-0';\n        }\n        var str = String(obj);\n        return numericSeparator ? addNumericSeparator(obj, str) : str;\n    }\n    if (typeof obj === 'bigint') {\n        var bigIntStr = String(obj) + 'n';\n        return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n    }\n\n    var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n    if (typeof depth === 'undefined') { depth = 0; }\n    if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n        return isArray(obj) ? '[Array]' : '[Object]';\n    }\n\n    var indent = getIndent(opts, depth);\n\n    if (typeof seen === 'undefined') {\n        seen = [];\n    } else if (indexOf(seen, obj) >= 0) {\n        return '[Circular]';\n    }\n\n    function inspect(value, from, noIndent) {\n        if (from) {\n            seen = $arrSlice.call(seen);\n            seen.push(from);\n        }\n        if (noIndent) {\n            var newOpts = {\n                depth: opts.depth\n            };\n            if (has(opts, 'quoteStyle')) {\n                newOpts.quoteStyle = opts.quoteStyle;\n            }\n            return inspect_(value, newOpts, depth + 1, seen);\n        }\n        return inspect_(value, opts, depth + 1, seen);\n    }\n\n    if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n        var name = nameOf(obj);\n        var keys = arrObjKeys(obj, inspect);\n        return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n    }\n    if (isSymbol(obj)) {\n        var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n        return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n    }\n    if (isElement(obj)) {\n        var s = '<' + $toLowerCase.call(String(obj.nodeName));\n        var attrs = obj.attributes || [];\n        for (var i = 0; i < attrs.length; i++) {\n            s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n        }\n        s += '>';\n        if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n        s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';\n        return s;\n    }\n    if (isArray(obj)) {\n        if (obj.length === 0) { return '[]'; }\n        var xs = arrObjKeys(obj, inspect);\n        if (indent && !singleLineValues(xs)) {\n            return '[' + indentedJoin(xs, indent) + ']';\n        }\n        return '[ ' + $join.call(xs, ', ') + ' ]';\n    }\n    if (isError(obj)) {\n        var parts = arrObjKeys(obj, inspect);\n        if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n            return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n        }\n        if (parts.length === 0) { return '[' + String(obj) + ']'; }\n        return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n    }\n    if (typeof obj === 'object' && customInspect) {\n        if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n            return utilInspect(obj, { depth: maxDepth - depth });\n        } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n            return obj.inspect();\n        }\n    }\n    if (isMap(obj)) {\n        var mapParts = [];\n        if (mapForEach) {\n            mapForEach.call(obj, function (value, key) {\n                mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n            });\n        }\n        return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n    }\n    if (isSet(obj)) {\n        var setParts = [];\n        if (setForEach) {\n            setForEach.call(obj, function (value) {\n                setParts.push(inspect(value, obj));\n            });\n        }\n        return collectionOf('Set', setSize.call(obj), setParts, indent);\n    }\n    if (isWeakMap(obj)) {\n        return weakCollectionOf('WeakMap');\n    }\n    if (isWeakSet(obj)) {\n        return weakCollectionOf('WeakSet');\n    }\n    if (isWeakRef(obj)) {\n        return weakCollectionOf('WeakRef');\n    }\n    if (isNumber(obj)) {\n        return markBoxed(inspect(Number(obj)));\n    }\n    if (isBigInt(obj)) {\n        return markBoxed(inspect(bigIntValueOf.call(obj)));\n    }\n    if (isBoolean(obj)) {\n        return markBoxed(booleanValueOf.call(obj));\n    }\n    if (isString(obj)) {\n        return markBoxed(inspect(String(obj)));\n    }\n    // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n    /* eslint-env browser */\n    if (typeof window !== 'undefined' && obj === window) {\n        return '{ [object Window] }';\n    }\n    if (\n        (typeof globalThis !== 'undefined' && obj === globalThis)\n        || (typeof global !== 'undefined' && obj === global)\n    ) {\n        return '{ [object globalThis] }';\n    }\n    if (!isDate(obj) && !isRegExp(obj)) {\n        var ys = arrObjKeys(obj, inspect);\n        var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n        var protoTag = obj instanceof Object ? '' : 'null prototype';\n        var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n        var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n        var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n        if (ys.length === 0) { return tag + '{}'; }\n        if (indent) {\n            return tag + '{' + indentedJoin(ys, indent) + '}';\n        }\n        return tag + '{ ' + $join.call(ys, ', ') + ' }';\n    }\n    return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n    var style = opts.quoteStyle || defaultStyle;\n    var quoteChar = quotes[style];\n    return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n    return $replace.call(String(s), /\"/g, '&quot;');\n}\n\nfunction canTrustToString(obj) {\n    return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));\n}\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n    if (hasShammedSymbols) {\n        return obj && typeof obj === 'object' && obj instanceof Symbol;\n    }\n    if (typeof obj === 'symbol') {\n        return true;\n    }\n    if (!obj || typeof obj !== 'object' || !symToString) {\n        return false;\n    }\n    try {\n        symToString.call(obj);\n        return true;\n    } catch (e) {}\n    return false;\n}\n\nfunction isBigInt(obj) {\n    if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n        return false;\n    }\n    try {\n        bigIntValueOf.call(obj);\n        return true;\n    } catch (e) {}\n    return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n    return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n    return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n    if (f.name) { return f.name; }\n    var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n    if (m) { return m[1]; }\n    return null;\n}\n\nfunction indexOf(xs, x) {\n    if (xs.indexOf) { return xs.indexOf(x); }\n    for (var i = 0, l = xs.length; i < l; i++) {\n        if (xs[i] === x) { return i; }\n    }\n    return -1;\n}\n\nfunction isMap(x) {\n    if (!mapSize || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        mapSize.call(x);\n        try {\n            setSize.call(x);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof Map; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isWeakMap(x) {\n    if (!weakMapHas || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        weakMapHas.call(x, weakMapHas);\n        try {\n            weakSetHas.call(x, weakSetHas);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isWeakRef(x) {\n    if (!weakRefDeref || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        weakRefDeref.call(x);\n        return true;\n    } catch (e) {}\n    return false;\n}\n\nfunction isSet(x) {\n    if (!setSize || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        setSize.call(x);\n        try {\n            mapSize.call(x);\n        } catch (m) {\n            return true;\n        }\n        return x instanceof Set; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isWeakSet(x) {\n    if (!weakSetHas || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        weakSetHas.call(x, weakSetHas);\n        try {\n            weakMapHas.call(x, weakMapHas);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isElement(x) {\n    if (!x || typeof x !== 'object') { return false; }\n    if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n        return true;\n    }\n    return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n    if (str.length > opts.maxStringLength) {\n        var remaining = str.length - opts.maxStringLength;\n        var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n        return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n    }\n    var quoteRE = quoteREs[opts.quoteStyle || 'single'];\n    quoteRE.lastIndex = 0;\n    // eslint-disable-next-line no-control-regex\n    var s = $replace.call($replace.call(str, quoteRE, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n    return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n    var n = c.charCodeAt(0);\n    var x = {\n        8: 'b',\n        9: 't',\n        10: 'n',\n        12: 'f',\n        13: 'r'\n    }[n];\n    if (x) { return '\\\\' + x; }\n    return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n    return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n    return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n    var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n    return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n    for (var i = 0; i < xs.length; i++) {\n        if (indexOf(xs[i], '\\n') >= 0) {\n            return false;\n        }\n    }\n    return true;\n}\n\nfunction getIndent(opts, depth) {\n    var baseIndent;\n    if (opts.indent === '\\t') {\n        baseIndent = '\\t';\n    } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n        baseIndent = $join.call(Array(opts.indent + 1), ' ');\n    } else {\n        return null;\n    }\n    return {\n        base: baseIndent,\n        prev: $join.call(Array(depth + 1), baseIndent)\n    };\n}\n\nfunction indentedJoin(xs, indent) {\n    if (xs.length === 0) { return ''; }\n    var lineJoiner = '\\n' + indent.prev + indent.base;\n    return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n    var isArr = isArray(obj);\n    var xs = [];\n    if (isArr) {\n        xs.length = obj.length;\n        for (var i = 0; i < obj.length; i++) {\n            xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n        }\n    }\n    var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n    var symMap;\n    if (hasShammedSymbols) {\n        symMap = {};\n        for (var k = 0; k < syms.length; k++) {\n            symMap['$' + syms[k]] = syms[k];\n        }\n    }\n\n    for (var key in obj) { // eslint-disable-line no-restricted-syntax\n        if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n        if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n        if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n            // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n            continue; // eslint-disable-line no-restricted-syntax, no-continue\n        } else if ($test.call(/[^\\w$]/, key)) {\n            xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n        } else {\n            xs.push(key + ': ' + inspect(obj[key], obj));\n        }\n    }\n    if (typeof gOPS === 'function') {\n        for (var j = 0; j < syms.length; j++) {\n            if (isEnumerable.call(obj, syms[j])) {\n                xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n            }\n        }\n    }\n    return xs;\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n  var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n  var loggedTypeFailures = {};\n  var has = require('./lib/has');\n\n  printWarning = function(text) {\n    var message = 'Warning: ' + text;\n    if (typeof console !== 'undefined') {\n      console.error(message);\n    }\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      throw new Error(message);\n    } catch (x) { /**/ }\n  };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n  if (process.env.NODE_ENV !== 'production') {\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error;\n        // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            var err = Error(\n              (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n              'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n              'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n            );\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n        } catch (ex) {\n          error = ex;\n        }\n        if (error && !(error instanceof Error)) {\n          printWarning(\n            (componentName || 'React class') + ': type specification of ' +\n            location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n            'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n            'You may have forgotten to pass an argument to the type checker ' +\n            'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n            'shape all require an argument).'\n          );\n        }\n        if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error.message] = true;\n\n          var stack = getStack ? getStack() : '';\n\n          printWarning(\n            'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n          );\n        }\n      }\n    }\n  }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n  if (process.env.NODE_ENV !== 'production') {\n    loggedTypeFailures = {};\n  }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n  printWarning = function(text) {\n    var message = 'Warning: ' + text;\n    if (typeof console !== 'undefined') {\n      console.error(message);\n    }\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      throw new Error(message);\n    } catch (x) {}\n  };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n  return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n  /* global Symbol */\n  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n  /**\n   * Returns the iterator method function contained on the iterable object.\n   *\n   * Be sure to invoke the function with the iterable as context:\n   *\n   *     var iteratorFn = getIteratorFn(myIterable);\n   *     if (iteratorFn) {\n   *       var iterator = iteratorFn.call(myIterable);\n   *       ...\n   *     }\n   *\n   * @param {?object} maybeIterable\n   * @return {?function}\n   */\n  function getIteratorFn(maybeIterable) {\n    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n    if (typeof iteratorFn === 'function') {\n      return iteratorFn;\n    }\n  }\n\n  /**\n   * Collection of methods that allow declaration and validation of props that are\n   * supplied to React components. Example usage:\n   *\n   *   var Props = require('ReactPropTypes');\n   *   var MyArticle = React.createClass({\n   *     propTypes: {\n   *       // An optional string prop named \"description\".\n   *       description: Props.string,\n   *\n   *       // A required enum prop named \"category\".\n   *       category: Props.oneOf(['News','Photos']).isRequired,\n   *\n   *       // A prop named \"dialog\" that requires an instance of Dialog.\n   *       dialog: Props.instanceOf(Dialog).isRequired\n   *     },\n   *     render: function() { ... }\n   *   });\n   *\n   * A more formal specification of how these methods are used:\n   *\n   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n   *   decl := ReactPropTypes.{type}(.isRequired)?\n   *\n   * Each and every declaration produces a function with the same signature. This\n   * allows the creation of custom validation functions. For example:\n   *\n   *  var MyLink = React.createClass({\n   *    propTypes: {\n   *      // An optional string or URI prop named \"href\".\n   *      href: function(props, propName, componentName) {\n   *        var propValue = props[propName];\n   *        if (propValue != null && typeof propValue !== 'string' &&\n   *            !(propValue instanceof URI)) {\n   *          return new Error(\n   *            'Expected a string or an URI for ' + propName + ' in ' +\n   *            componentName\n   *          );\n   *        }\n   *      }\n   *    },\n   *    render: function() {...}\n   *  });\n   *\n   * @internal\n   */\n\n  var ANONYMOUS = '<<anonymous>>';\n\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n  var ReactPropTypes = {\n    array: createPrimitiveTypeChecker('array'),\n    bigint: createPrimitiveTypeChecker('bigint'),\n    bool: createPrimitiveTypeChecker('boolean'),\n    func: createPrimitiveTypeChecker('function'),\n    number: createPrimitiveTypeChecker('number'),\n    object: createPrimitiveTypeChecker('object'),\n    string: createPrimitiveTypeChecker('string'),\n    symbol: createPrimitiveTypeChecker('symbol'),\n\n    any: createAnyTypeChecker(),\n    arrayOf: createArrayOfTypeChecker,\n    element: createElementTypeChecker(),\n    elementType: createElementTypeTypeChecker(),\n    instanceOf: createInstanceTypeChecker,\n    node: createNodeChecker(),\n    objectOf: createObjectOfTypeChecker,\n    oneOf: createEnumTypeChecker,\n    oneOfType: createUnionTypeChecker,\n    shape: createShapeTypeChecker,\n    exact: createStrictShapeTypeChecker,\n  };\n\n  /**\n   * inlined Object.is polyfill to avoid requiring consumers ship their own\n   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n   */\n  /*eslint-disable no-self-compare*/\n  function is(x, y) {\n    // SameValue algorithm\n    if (x === y) {\n      // Steps 1-5, 7-10\n      // Steps 6.b-6.e: +0 != -0\n      return x !== 0 || 1 / x === 1 / y;\n    } else {\n      // Step 6.a: NaN == NaN\n      return x !== x && y !== y;\n    }\n  }\n  /*eslint-enable no-self-compare*/\n\n  /**\n   * We use an Error-like object for backward compatibility as people may call\n   * PropTypes directly and inspect their output. However, we don't use real\n   * Errors anymore. We don't inspect their stack anyway, and creating them\n   * is prohibitively expensive if they are created too often, such as what\n   * happens in oneOfType() for any type before the one that matched.\n   */\n  function PropTypeError(message, data) {\n    this.message = message;\n    this.data = data && typeof data === 'object' ? data: {};\n    this.stack = '';\n  }\n  // Make `instanceof Error` still work for returned errors.\n  PropTypeError.prototype = Error.prototype;\n\n  function createChainableTypeChecker(validate) {\n    if (process.env.NODE_ENV !== 'production') {\n      var manualPropTypeCallCache = {};\n      var manualPropTypeWarningCount = 0;\n    }\n    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n      componentName = componentName || ANONYMOUS;\n      propFullName = propFullName || propName;\n\n      if (secret !== ReactPropTypesSecret) {\n        if (throwOnDirectAccess) {\n          // New behavior only for users of `prop-types` package\n          var err = new Error(\n            'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n            'Use `PropTypes.checkPropTypes()` to call them. ' +\n            'Read more at http://fb.me/use-check-prop-types'\n          );\n          err.name = 'Invariant Violation';\n          throw err;\n        } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n          // Old behavior for people using React.PropTypes\n          var cacheKey = componentName + ':' + propName;\n          if (\n            !manualPropTypeCallCache[cacheKey] &&\n            // Avoid spamming the console because they are often not actionable except for lib authors\n            manualPropTypeWarningCount < 3\n          ) {\n            printWarning(\n              'You are manually calling a React.PropTypes validation ' +\n              'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n              'and will throw in the standalone `prop-types` package. ' +\n              'You may be seeing this warning due to a third-party PropTypes ' +\n              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n            );\n            manualPropTypeCallCache[cacheKey] = true;\n            manualPropTypeWarningCount++;\n          }\n        }\n      }\n      if (props[propName] == null) {\n        if (isRequired) {\n          if (props[propName] === null) {\n            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n          }\n          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n        }\n        return null;\n      } else {\n        return validate(props, propName, componentName, location, propFullName);\n      }\n    }\n\n    var chainedCheckType = checkType.bind(null, false);\n    chainedCheckType.isRequired = checkType.bind(null, true);\n\n    return chainedCheckType;\n  }\n\n  function createPrimitiveTypeChecker(expectedType) {\n    function validate(props, propName, componentName, location, propFullName, secret) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== expectedType) {\n        // `propValue` being instance of, say, date/regexp, pass the 'object'\n        // check, but we can offer a more precise error message here rather than\n        // 'of type `object`'.\n        var preciseType = getPreciseType(propValue);\n\n        return new PropTypeError(\n          'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n          {expectedType: expectedType}\n        );\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createAnyTypeChecker() {\n    return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n  }\n\n  function createArrayOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n      }\n      var propValue = props[propName];\n      if (!Array.isArray(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n      }\n      for (var i = 0; i < propValue.length; i++) {\n        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n        if (error instanceof Error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      if (!isValidElement(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeTypeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      if (!ReactIs.isValidElementType(propValue)) {\n        var propType = getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createInstanceTypeChecker(expectedClass) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!(props[propName] instanceof expectedClass)) {\n        var expectedClassName = expectedClass.name || ANONYMOUS;\n        var actualClassName = getClassName(props[propName]);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createEnumTypeChecker(expectedValues) {\n    if (!Array.isArray(expectedValues)) {\n      if (process.env.NODE_ENV !== 'production') {\n        if (arguments.length > 1) {\n          printWarning(\n            'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n            'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n          );\n        } else {\n          printWarning('Invalid argument supplied to oneOf, expected an array.');\n        }\n      }\n      return emptyFunctionThatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      for (var i = 0; i < expectedValues.length; i++) {\n        if (is(propValue, expectedValues[i])) {\n          return null;\n        }\n      }\n\n      var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n        var type = getPreciseType(value);\n        if (type === 'symbol') {\n          return String(value);\n        }\n        return value;\n      });\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createObjectOfTypeChecker(typeChecker) {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (typeof typeChecker !== 'function') {\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n      }\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n      }\n      for (var key in propValue) {\n        if (has(propValue, key)) {\n          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n          if (error instanceof Error) {\n            return error;\n          }\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createUnionTypeChecker(arrayOfTypeCheckers) {\n    if (!Array.isArray(arrayOfTypeCheckers)) {\n      process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n      return emptyFunctionThatReturnsNull;\n    }\n\n    for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n      var checker = arrayOfTypeCheckers[i];\n      if (typeof checker !== 'function') {\n        printWarning(\n          'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n          'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n        );\n        return emptyFunctionThatReturnsNull;\n      }\n    }\n\n    function validate(props, propName, componentName, location, propFullName) {\n      var expectedTypes = [];\n      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n        var checker = arrayOfTypeCheckers[i];\n        var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n        if (checkerResult == null) {\n          return null;\n        }\n        if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n          expectedTypes.push(checkerResult.data.expectedType);\n        }\n      }\n      var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createNodeChecker() {\n    function validate(props, propName, componentName, location, propFullName) {\n      if (!isNode(props[propName])) {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function invalidValidatorError(componentName, location, propFullName, key, type) {\n    return new PropTypeError(\n      (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n      'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n    );\n  }\n\n  function createShapeTypeChecker(shapeTypes) {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      for (var key in shapeTypes) {\n        var checker = shapeTypes[key];\n        if (typeof checker !== 'function') {\n          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n        }\n        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if (error) {\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createStrictShapeTypeChecker(shapeTypes) {\n    function validate(props, propName, componentName, location, propFullName) {\n      var propValue = props[propName];\n      var propType = getPropType(propValue);\n      if (propType !== 'object') {\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      // We need to check all keys in case some are required but missing from props.\n      var allKeys = assign({}, props[propName], shapeTypes);\n      for (var key in allKeys) {\n        var checker = shapeTypes[key];\n        if (has(shapeTypes, key) && typeof checker !== 'function') {\n          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n        }\n        if (!checker) {\n          return new PropTypeError(\n            'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n            '\\nBad object: ' + JSON.stringify(props[propName], null, '  ') +\n            '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, '  ')\n          );\n        }\n        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if (error) {\n          return error;\n        }\n      }\n      return null;\n    }\n\n    return createChainableTypeChecker(validate);\n  }\n\n  function isNode(propValue) {\n    switch (typeof propValue) {\n      case 'number':\n      case 'string':\n      case 'undefined':\n        return true;\n      case 'boolean':\n        return !propValue;\n      case 'object':\n        if (Array.isArray(propValue)) {\n          return propValue.every(isNode);\n        }\n        if (propValue === null || isValidElement(propValue)) {\n          return true;\n        }\n\n        var iteratorFn = getIteratorFn(propValue);\n        if (iteratorFn) {\n          var iterator = iteratorFn.call(propValue);\n          var step;\n          if (iteratorFn !== propValue.entries) {\n            while (!(step = iterator.next()).done) {\n              if (!isNode(step.value)) {\n                return false;\n              }\n            }\n          } else {\n            // Iterator will provide entry [k,v] tuples rather than values.\n            while (!(step = iterator.next()).done) {\n              var entry = step.value;\n              if (entry) {\n                if (!isNode(entry[1])) {\n                  return false;\n                }\n              }\n            }\n          }\n        } else {\n          return false;\n        }\n\n        return true;\n      default:\n        return false;\n    }\n  }\n\n  function isSymbol(propType, propValue) {\n    // Native Symbol.\n    if (propType === 'symbol') {\n      return true;\n    }\n\n    // falsy value can't be a Symbol\n    if (!propValue) {\n      return false;\n    }\n\n    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n    if (propValue['@@toStringTag'] === 'Symbol') {\n      return true;\n    }\n\n    // Fallback for non-spec compliant Symbols which are polyfilled.\n    if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n      return true;\n    }\n\n    return false;\n  }\n\n  // Equivalent of `typeof` but with special handling for array and regexp.\n  function getPropType(propValue) {\n    var propType = typeof propValue;\n    if (Array.isArray(propValue)) {\n      return 'array';\n    }\n    if (propValue instanceof RegExp) {\n      // Old webkits (at least until Android 4.0) return 'function' rather than\n      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n      // passes PropTypes.object.\n      return 'object';\n    }\n    if (isSymbol(propType, propValue)) {\n      return 'symbol';\n    }\n    return propType;\n  }\n\n  // This handles more types than `getPropType`. Only used for error messages.\n  // See `createPrimitiveTypeChecker`.\n  function getPreciseType(propValue) {\n    if (typeof propValue === 'undefined' || propValue === null) {\n      return '' + propValue;\n    }\n    var propType = getPropType(propValue);\n    if (propType === 'object') {\n      if (propValue instanceof Date) {\n        return 'date';\n      } else if (propValue instanceof RegExp) {\n        return 'regexp';\n      }\n    }\n    return propType;\n  }\n\n  // Returns a string that is postfixed to a warning about an invalid type.\n  // For example, \"undefined\" or \"of type array\"\n  function getPostfixForTypeWarning(value) {\n    var type = getPreciseType(value);\n    switch (type) {\n      case 'array':\n      case 'object':\n        return 'an ' + type;\n      case 'boolean':\n      case 'date':\n      case 'regexp':\n        return 'a ' + type;\n      default:\n        return type;\n    }\n  }\n\n  // Returns class name of the object, if any.\n  function getClassName(propValue) {\n    if (!propValue.constructor || !propValue.constructor.name) {\n      return ANONYMOUS;\n    }\n    return propValue.constructor.name;\n  }\n\n  ReactPropTypes.checkPropTypes = checkPropTypes;\n  ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n  var ReactIs = require('react-is');\n\n  // By explicitly using `prop-types` you are opting into new development behavior.\n  // http://fb.me/prop-types-in-prod\n  var throwOnDirectAccess = true;\n  module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n  // By explicitly using `prop-types` you are opting into new production behavior.\n  // http://fb.me/prop-types-in-prod\n  module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>\n */\n'use strict'\n\nfunction Cache(maxSize) {\n  this._maxSize = maxSize\n  this.clear()\n}\nCache.prototype.clear = function () {\n  this._size = 0\n  this._values = Object.create(null)\n}\nCache.prototype.get = function (key) {\n  return this._values[key]\n}\nCache.prototype.set = function (key, value) {\n  this._size >= this._maxSize && this.clear()\n  if (!(key in this._values)) this._size++\n\n  return (this._values[key] = value)\n}\n\nvar SPLIT_REGEX = /[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,\n  DIGIT_REGEX = /^\\d+$/,\n  LEAD_DIGIT_REGEX = /^\\d/,\n  SPEC_CHAR_REGEX = /[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,\n  CLEAN_QUOTES_REGEX = /^\\s*(['\"]?)(.*?)(\\1)\\s*$/,\n  MAX_CACHE_SIZE = 512\n\nvar pathCache = new Cache(MAX_CACHE_SIZE),\n  setCache = new Cache(MAX_CACHE_SIZE),\n  getCache = new Cache(MAX_CACHE_SIZE)\n\nvar config\n\nmodule.exports = {\n  Cache: Cache,\n\n  split: split,\n\n  normalizePath: normalizePath,\n\n  setter: function (path) {\n    var parts = normalizePath(path)\n\n    return (\n      setCache.get(path) ||\n      setCache.set(path, function setter(obj, value) {\n        var index = 0\n        var len = parts.length\n        var data = obj\n\n        while (index < len - 1) {\n          var part = parts[index]\n          if (\n            part === '__proto__' ||\n            part === 'constructor' ||\n            part === 'prototype'\n          ) {\n            return obj\n          }\n\n          data = data[parts[index++]]\n        }\n        data[parts[index]] = value\n      })\n    )\n  },\n\n  getter: function (path, safe) {\n    var parts = normalizePath(path)\n    return (\n      getCache.get(path) ||\n      getCache.set(path, function getter(data) {\n        var index = 0,\n          len = parts.length\n        while (index < len) {\n          if (data != null || !safe) data = data[parts[index++]]\n          else return\n        }\n        return data\n      })\n    )\n  },\n\n  join: function (segments) {\n    return segments.reduce(function (path, part) {\n      return (\n        path +\n        (isQuoted(part) || DIGIT_REGEX.test(part)\n          ? '[' + part + ']'\n          : (path ? '.' : '') + part)\n      )\n    }, '')\n  },\n\n  forEach: function (path, cb, thisArg) {\n    forEach(Array.isArray(path) ? path : split(path), cb, thisArg)\n  },\n}\n\nfunction normalizePath(path) {\n  return (\n    pathCache.get(path) ||\n    pathCache.set(\n      path,\n      split(path).map(function (part) {\n        return part.replace(CLEAN_QUOTES_REGEX, '$2')\n      })\n    )\n  )\n}\n\nfunction split(path) {\n  return path.match(SPLIT_REGEX) || ['']\n}\n\nfunction forEach(parts, iter, thisArg) {\n  var len = parts.length,\n    part,\n    idx,\n    isArray,\n    isBracket\n\n  for (idx = 0; idx < len; idx++) {\n    part = parts[idx]\n\n    if (part) {\n      if (shouldBeQuoted(part)) {\n        part = '\"' + part + '\"'\n      }\n\n      isBracket = isQuoted(part)\n      isArray = !isBracket && /^\\d+$/.test(part)\n\n      iter.call(thisArg, part, isBracket, isArray, idx, parts)\n    }\n  }\n}\n\nfunction isQuoted(str) {\n  return (\n    typeof str === 'string' && str && [\"'\", '\"'].indexOf(str.charAt(0)) !== -1\n  )\n}\n\nfunction hasLeadingNumber(part) {\n  return part.match(LEAD_DIGIT_REGEX) && !part.match(DIGIT_REGEX)\n}\n\nfunction hasSpecialChars(part) {\n  return SPEC_CHAR_REGEX.test(part)\n}\n\nfunction shouldBeQuoted(part) {\n  return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part))\n}\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n    RFC1738: 'RFC1738',\n    RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n    'default': Format.RFC3986,\n    formatters: {\n        RFC1738: function (value) {\n            return replace.call(value, percentTwenties, '+');\n        },\n        RFC3986: function (value) {\n            return String(value);\n        }\n    },\n    RFC1738: Format.RFC1738,\n    RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n    formats: formats,\n    parse: parse,\n    stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n    allowDots: false,\n    allowEmptyArrays: false,\n    allowPrototypes: false,\n    allowSparse: false,\n    arrayLimit: 20,\n    charset: 'utf-8',\n    charsetSentinel: false,\n    comma: false,\n    decodeDotInKeys: false,\n    decoder: utils.decode,\n    delimiter: '&',\n    depth: 5,\n    duplicates: 'combine',\n    ignoreQueryPrefix: false,\n    interpretNumericEntities: false,\n    parameterLimit: 1000,\n    parseArrays: true,\n    plainObjects: false,\n    strictDepth: false,\n    strictMerge: true,\n    strictNullHandling: false,\n    throwOnLimitExceeded: false\n};\n\nvar interpretNumericEntities = function (str) {\n    return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n        return String.fromCharCode(parseInt(numberStr, 10));\n    });\n};\n\nvar parseArrayValue = function (val, options, currentArrayLength) {\n    if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n        return val.split(',');\n    }\n\n    if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {\n        throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');\n    }\n\n    return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n    var obj = { __proto__: null };\n\n    var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n    cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n\n    var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;\n    var parts = cleanStr.split(\n        options.delimiter,\n        options.throwOnLimitExceeded && typeof limit !== 'undefined' ? limit + 1 : limit\n    );\n\n    if (options.throwOnLimitExceeded && typeof limit !== 'undefined' && parts.length > limit) {\n        throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');\n    }\n\n    var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n    var i;\n\n    var charset = options.charset;\n    if (options.charsetSentinel) {\n        for (i = 0; i < parts.length; ++i) {\n            if (parts[i].indexOf('utf8=') === 0) {\n                if (parts[i] === charsetSentinel) {\n                    charset = 'utf-8';\n                } else if (parts[i] === isoSentinel) {\n                    charset = 'iso-8859-1';\n                }\n                skipIndex = i;\n                i = parts.length; // The eslint settings do not allow break;\n            }\n        }\n    }\n\n    for (i = 0; i < parts.length; ++i) {\n        if (i === skipIndex) {\n            continue;\n        }\n        var part = parts[i];\n\n        var bracketEqualsPos = part.indexOf(']=');\n        var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n        var key;\n        var val;\n        if (pos === -1) {\n            key = options.decoder(part, defaults.decoder, charset, 'key');\n            val = options.strictNullHandling ? null : '';\n        } else {\n            key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n\n            if (key !== null) {\n                val = utils.maybeMap(\n                    parseArrayValue(\n                        part.slice(pos + 1),\n                        options,\n                        isArray(obj[key]) ? obj[key].length : 0\n                    ),\n                    function (encodedVal) {\n                        return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n                    }\n                );\n            }\n        }\n\n        if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n            val = interpretNumericEntities(String(val));\n        }\n\n        if (part.indexOf('[]=') > -1) {\n            val = isArray(val) ? [val] : val;\n        }\n\n        if (options.comma && isArray(val) && val.length > options.arrayLimit) {\n            if (options.throwOnLimitExceeded) {\n                throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');\n            }\n            val = utils.combine([], val, options.arrayLimit, options.plainObjects);\n        }\n\n        if (key !== null) {\n            var existing = has.call(obj, key);\n            if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {\n                obj[key] = utils.combine(\n                    obj[key],\n                    val,\n                    options.arrayLimit,\n                    options.plainObjects\n                );\n            } else if (!existing || options.duplicates === 'last') {\n                obj[key] = val;\n            }\n        }\n    }\n\n    return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n    var currentArrayLength = 0;\n    if (chain.length > 0 && chain[chain.length - 1] === '[]') {\n        var parentKey = chain.slice(0, -1).join('');\n        currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;\n    }\n\n    var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);\n\n    for (var i = chain.length - 1; i >= 0; --i) {\n        var obj;\n        var root = chain[i];\n\n        if (root === '[]' && options.parseArrays) {\n            if (utils.isOverflow(leaf)) {\n                // leaf is already an overflow object, preserve it\n                obj = leaf;\n            } else {\n                obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))\n                    ? []\n                    : utils.combine(\n                        [],\n                        leaf,\n                        options.arrayLimit,\n                        options.plainObjects\n                    );\n            }\n        } else {\n            obj = options.plainObjects ? { __proto__: null } : {};\n            var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n            var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;\n            var index = parseInt(decodedRoot, 10);\n            var isValidArrayIndex = !isNaN(index)\n                && root !== decodedRoot\n                && String(index) === decodedRoot\n                && index >= 0\n                && options.parseArrays;\n            if (!options.parseArrays && decodedRoot === '') {\n                obj = { 0: leaf };\n            } else if (isValidArrayIndex && index < options.arrayLimit) {\n                obj = [];\n                obj[index] = leaf;\n            } else if (isValidArrayIndex && options.throwOnLimitExceeded) {\n                throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');\n            } else if (isValidArrayIndex) {\n                obj[index] = leaf;\n                utils.markOverflow(obj, index);\n            } else if (decodedRoot !== '__proto__') {\n                obj[decodedRoot] = leaf;\n            }\n        }\n\n        leaf = obj;\n    }\n\n    return leaf;\n};\n\n// Split a key like \"a[b][c[]]\" into ['a', '[b]', '[c[]]'] while preserving\n// qs parse semantics for depth/prototype guards.\nvar splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {\n    var key = options.allowDots ? originalKey.replace(/\\.([^.[]+)/g, '[$1]') : originalKey;\n\n    // depth <= 0 keeps the whole key as one segment\n    if (options.depth <= 0) {\n        if (!options.plainObjects && has.call(Object.prototype, key)) {\n            if (!options.allowPrototypes) {\n                return;\n            }\n        }\n\n        return [key];\n    }\n\n    var segments = [];\n\n    // parent before the first '[' (may be empty if key starts with '[')\n    var first = key.indexOf('[');\n    var parent = first >= 0 ? key.slice(0, first) : key;\n    if (parent) {\n        if (!options.plainObjects && has.call(Object.prototype, parent)) {\n            if (!options.allowPrototypes) {\n                return;\n            }\n        }\n\n        segments[segments.length] = parent;\n    }\n\n    var n = key.length;\n    var open = first;\n    var collected = 0;\n\n    while (open >= 0 && collected < options.depth) {\n        var level = 1;\n        var i = open + 1;\n        var close = -1;\n\n        // balance nested '[' and ']' inside this bracket group using a nesting level counter\n        while (i < n && close < 0) {\n            var cu = key.charCodeAt(i);\n            if (cu === 0x5B) { // '['\n                level += 1;\n            } else if (cu === 0x5D) { // ']'\n                level -= 1;\n                if (level === 0) {\n                    close = i; // found matching close; loop will exit by condition\n                }\n            }\n            i += 1;\n        }\n\n        if (close < 0) {\n            // Unterminated group: wrap the raw remainder in one bracket pair so it stays\n            // a single literal segment (e.g. \"[[]b\" -> \"[[]b]\"); we do not infer missing ']'.\n            segments[segments.length] = '[' + key.slice(open) + ']';\n            return segments;\n        }\n\n        var seg = key.slice(open, close + 1);\n        // prototype guard for the content of this group\n        var content = seg.slice(1, -1);\n        if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {\n            return;\n        }\n\n        segments[segments.length] = seg;\n        collected += 1;\n\n        // find the next '[' after this balanced group\n        open = key.indexOf('[', close + 1);\n    }\n\n    if (open >= 0) {\n        if (options.strictDepth === true) {\n            throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');\n        }\n\n        segments[segments.length] = '[' + key.slice(open) + ']';\n    }\n\n    return segments;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n    if (!givenKey) {\n        return;\n    }\n\n    var keys = splitKeyIntoSegments(givenKey, options);\n\n    if (!keys) {\n        return;\n    }\n\n    return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n    if (!opts) {\n        return defaults;\n    }\n\n    if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n        throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n    }\n\n    if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {\n        throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');\n    }\n\n    if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {\n        throw new TypeError('Decoder has to be a function.');\n    }\n\n    if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n        throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n    }\n\n    if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {\n        throw new TypeError('`throwOnLimitExceeded` option must be a boolean');\n    }\n\n    var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n    var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;\n\n    if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {\n        throw new TypeError('The duplicates option must be either combine, first, or last');\n    }\n\n    var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n    return {\n        allowDots: allowDots,\n        allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n        allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n        allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n        arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n        charset: charset,\n        charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n        comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n        decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,\n        decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n        delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n        // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n        depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n        duplicates: duplicates,\n        ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n        interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n        parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n        parseArrays: opts.parseArrays !== false,\n        plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n        strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,\n        strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,\n        strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,\n        throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false\n    };\n};\n\nmodule.exports = function (str, opts) {\n    var options = normalizeParseOptions(opts);\n\n    if (str === '' || str === null || typeof str === 'undefined') {\n        return options.plainObjects ? { __proto__: null } : {};\n    }\n\n    var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n    var obj = options.plainObjects ? { __proto__: null } : {};\n\n    // Iterate over the keys and setup the new object\n\n    var keys = Object.keys(tempObj);\n    for (var i = 0; i < keys.length; ++i) {\n        var key = keys[i];\n        var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n        obj = utils.merge(obj, newObj, options);\n    }\n\n    if (options.allowSparse === true) {\n        return obj;\n    }\n\n    return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n    brackets: function brackets(prefix) {\n        return prefix + '[]';\n    },\n    comma: 'comma',\n    indices: function indices(prefix, key) {\n        return prefix + '[' + key + ']';\n    },\n    repeat: function repeat(prefix) {\n        return prefix;\n    }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n    push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n    addQueryPrefix: false,\n    allowDots: false,\n    allowEmptyArrays: false,\n    arrayFormat: 'indices',\n    charset: 'utf-8',\n    charsetSentinel: false,\n    commaRoundTrip: false,\n    delimiter: '&',\n    encode: true,\n    encodeDotInKeys: false,\n    encoder: utils.encode,\n    encodeValuesOnly: false,\n    filter: void undefined,\n    format: defaultFormat,\n    formatter: formats.formatters[defaultFormat],\n    // deprecated\n    indices: false,\n    serializeDate: function serializeDate(date) {\n        return toISO.call(date);\n    },\n    skipNulls: false,\n    strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n    return typeof v === 'string'\n        || typeof v === 'number'\n        || typeof v === 'boolean'\n        || typeof v === 'symbol'\n        || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n    object,\n    prefix,\n    generateArrayPrefix,\n    commaRoundTrip,\n    allowEmptyArrays,\n    strictNullHandling,\n    skipNulls,\n    encodeDotInKeys,\n    encoder,\n    filter,\n    sort,\n    allowDots,\n    serializeDate,\n    format,\n    formatter,\n    encodeValuesOnly,\n    charset,\n    sideChannel\n) {\n    var obj = object;\n\n    var tmpSc = sideChannel;\n    var step = 0;\n    var findFlag = false;\n    while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n        // Where object last appeared in the ref tree\n        var pos = tmpSc.get(object);\n        step += 1;\n        if (typeof pos !== 'undefined') {\n            if (pos === step) {\n                throw new RangeError('Cyclic object value');\n            } else {\n                findFlag = true; // Break while\n            }\n        }\n        if (typeof tmpSc.get(sentinel) === 'undefined') {\n            step = 0;\n        }\n    }\n\n    if (typeof filter === 'function') {\n        obj = filter(prefix, obj);\n    } else if (obj instanceof Date) {\n        obj = serializeDate(obj);\n    } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n        obj = utils.maybeMap(obj, function (value) {\n            if (value instanceof Date) {\n                return serializeDate(value);\n            }\n            return value;\n        });\n    }\n\n    if (obj === null) {\n        if (strictNullHandling) {\n            return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix);\n        }\n\n        obj = '';\n    }\n\n    if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n        if (encoder) {\n            var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n            return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n        }\n        return [formatter(prefix) + '=' + formatter(String(obj))];\n    }\n\n    var values = [];\n\n    if (typeof obj === 'undefined') {\n        return values;\n    }\n\n    var objKeys;\n    if (generateArrayPrefix === 'comma' && isArray(obj)) {\n        // we need to join elements in\n        if (encodeValuesOnly && encoder) {\n            obj = utils.maybeMap(obj, function (v) {\n                return v == null ? v : encoder(v);\n            });\n        }\n        objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n    } else if (isArray(filter)) {\n        objKeys = filter;\n    } else {\n        var keys = Object.keys(obj);\n        objKeys = sort ? keys.sort(sort) : keys;\n    }\n\n    var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\\./g, '%2E') : String(prefix);\n\n    var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;\n\n    if (allowEmptyArrays && isArray(obj) && obj.length === 0) {\n        return adjustedPrefix + '[]';\n    }\n\n    for (var j = 0; j < objKeys.length; ++j) {\n        var key = objKeys[j];\n        var value = typeof key === 'object' && key && typeof key.value !== 'undefined'\n            ? key.value\n            : obj[key];\n\n        if (skipNulls && value === null) {\n            continue;\n        }\n\n        var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\\./g, '%2E') : String(key);\n        var keyPrefix = isArray(obj)\n            ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix\n            : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');\n\n        sideChannel.set(object, step);\n        var valueSideChannel = getSideChannel();\n        valueSideChannel.set(sentinel, sideChannel);\n        pushToArray(values, stringify(\n            value,\n            keyPrefix,\n            generateArrayPrefix,\n            commaRoundTrip,\n            allowEmptyArrays,\n            strictNullHandling,\n            skipNulls,\n            encodeDotInKeys,\n            generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n            filter,\n            sort,\n            allowDots,\n            serializeDate,\n            format,\n            formatter,\n            encodeValuesOnly,\n            charset,\n            valueSideChannel\n        ));\n    }\n\n    return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n    if (!opts) {\n        return defaults;\n    }\n\n    if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n        throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n    }\n\n    if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {\n        throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');\n    }\n\n    if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n        throw new TypeError('Encoder has to be a function.');\n    }\n\n    var charset = opts.charset || defaults.charset;\n    if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n        throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n    }\n\n    var format = formats['default'];\n    if (typeof opts.format !== 'undefined') {\n        if (!has.call(formats.formatters, opts.format)) {\n            throw new TypeError('Unknown format option provided.');\n        }\n        format = opts.format;\n    }\n    var formatter = formats.formatters[format];\n\n    var filter = defaults.filter;\n    if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n        filter = opts.filter;\n    }\n\n    var arrayFormat;\n    if (opts.arrayFormat in arrayPrefixGenerators) {\n        arrayFormat = opts.arrayFormat;\n    } else if ('indices' in opts) {\n        arrayFormat = opts.indices ? 'indices' : 'repeat';\n    } else {\n        arrayFormat = defaults.arrayFormat;\n    }\n\n    if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n        throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n    }\n\n    var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n    return {\n        addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n        allowDots: allowDots,\n        allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n        arrayFormat: arrayFormat,\n        charset: charset,\n        charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n        commaRoundTrip: !!opts.commaRoundTrip,\n        delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n        encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n        encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,\n        encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n        encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n        filter: filter,\n        format: format,\n        formatter: formatter,\n        serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n        skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n        sort: typeof opts.sort === 'function' ? opts.sort : null,\n        strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n    };\n};\n\nmodule.exports = function (object, opts) {\n    var obj = object;\n    var options = normalizeStringifyOptions(opts);\n\n    var objKeys;\n    var filter;\n\n    if (typeof options.filter === 'function') {\n        filter = options.filter;\n        obj = filter('', obj);\n    } else if (isArray(options.filter)) {\n        filter = options.filter;\n        objKeys = filter;\n    }\n\n    var keys = [];\n\n    if (typeof obj !== 'object' || obj === null) {\n        return '';\n    }\n\n    var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];\n    var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;\n\n    if (!objKeys) {\n        objKeys = Object.keys(obj);\n    }\n\n    if (options.sort) {\n        objKeys.sort(options.sort);\n    }\n\n    var sideChannel = getSideChannel();\n    for (var i = 0; i < objKeys.length; ++i) {\n        var key = objKeys[i];\n\n        if (typeof key === 'undefined' || key === null) {\n            continue;\n        }\n\n        var value = obj[key];\n\n        if (options.skipNulls && value === null) {\n            continue;\n        }\n        pushToArray(keys, stringify(\n            value,\n            key,\n            generateArrayPrefix,\n            commaRoundTrip,\n            options.allowEmptyArrays,\n            options.strictNullHandling,\n            options.skipNulls,\n            options.encodeDotInKeys,\n            options.encode ? options.encoder : null,\n            options.filter,\n            options.sort,\n            options.allowDots,\n            options.serializeDate,\n            options.format,\n            options.formatter,\n            options.encodeValuesOnly,\n            options.charset,\n            sideChannel\n        ));\n    }\n\n    var joined = keys.join(options.delimiter);\n    var prefix = options.addQueryPrefix === true ? '?' : '';\n\n    if (options.charsetSentinel) {\n        if (options.charset === 'iso-8859-1') {\n            // encodeURIComponent('&#10003;'), the \"numeric entity\" representation of a checkmark\n            prefix += 'utf8=%26%2310003%3B' + options.delimiter;\n        } else {\n            // encodeURIComponent('✓')\n            prefix += 'utf8=%E2%9C%93' + options.delimiter;\n        }\n    }\n\n    return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\nvar getSideChannel = require('side-channel');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\n// Track objects created from arrayLimit overflow using side-channel\n// Stores the current max numeric index for O(1) lookup\nvar overflowChannel = getSideChannel();\n\nvar markOverflow = function markOverflow(obj, maxIndex) {\n    overflowChannel.set(obj, maxIndex);\n    return obj;\n};\n\nvar isOverflow = function isOverflow(obj) {\n    return overflowChannel.has(obj);\n};\n\nvar getMaxIndex = function getMaxIndex(obj) {\n    return overflowChannel.get(obj);\n};\n\nvar setMaxIndex = function setMaxIndex(obj, maxIndex) {\n    overflowChannel.set(obj, maxIndex);\n};\n\nvar hexTable = (function () {\n    var array = [];\n    for (var i = 0; i < 256; ++i) {\n        array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();\n    }\n\n    return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n    while (queue.length > 1) {\n        var item = queue.pop();\n        var obj = item.obj[item.prop];\n\n        if (isArray(obj)) {\n            var compacted = [];\n\n            for (var j = 0; j < obj.length; ++j) {\n                if (typeof obj[j] !== 'undefined') {\n                    compacted[compacted.length] = obj[j];\n                }\n            }\n\n            item.obj[item.prop] = compacted;\n        }\n    }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n    var obj = options && options.plainObjects ? { __proto__: null } : {};\n    for (var i = 0; i < source.length; ++i) {\n        if (typeof source[i] !== 'undefined') {\n            obj[i] = source[i];\n        }\n    }\n\n    return obj;\n};\n\nvar merge = function merge(target, source, options) {\n    /* eslint no-param-reassign: 0 */\n    if (!source) {\n        return target;\n    }\n\n    if (typeof source !== 'object' && typeof source !== 'function') {\n        if (isArray(target)) {\n            var nextIndex = target.length;\n            if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {\n                return markOverflow(arrayToObject(target.concat(source), options), nextIndex);\n            }\n            target[nextIndex] = source;\n        } else if (target && typeof target === 'object') {\n            if (isOverflow(target)) {\n                // Add at next numeric index for overflow objects\n                var newIndex = getMaxIndex(target) + 1;\n                target[newIndex] = source;\n                setMaxIndex(target, newIndex);\n            } else if (options && options.strictMerge) {\n                return [target, source];\n            } else if (\n                (options && (options.plainObjects || options.allowPrototypes))\n                || !has.call(Object.prototype, source)\n            ) {\n                target[source] = true;\n            }\n        } else {\n            return [target, source];\n        }\n\n        return target;\n    }\n\n    if (!target || typeof target !== 'object') {\n        if (isOverflow(source)) {\n            // Create new object with target at 0, source values shifted by 1\n            var sourceKeys = Object.keys(source);\n            var result = options && options.plainObjects\n                ? { __proto__: null, 0: target }\n                : { 0: target };\n            for (var m = 0; m < sourceKeys.length; m++) {\n                var oldKey = parseInt(sourceKeys[m], 10);\n                result[oldKey + 1] = source[sourceKeys[m]];\n            }\n            return markOverflow(result, getMaxIndex(source) + 1);\n        }\n        var combined = [target].concat(source);\n        if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {\n            return markOverflow(arrayToObject(combined, options), combined.length - 1);\n        }\n        return combined;\n    }\n\n    var mergeTarget = target;\n    if (isArray(target) && !isArray(source)) {\n        mergeTarget = arrayToObject(target, options);\n    }\n\n    if (isArray(target) && isArray(source)) {\n        source.forEach(function (item, i) {\n            if (has.call(target, i)) {\n                var targetItem = target[i];\n                if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n                    target[i] = merge(targetItem, item, options);\n                } else {\n                    target[target.length] = item;\n                }\n            } else {\n                target[i] = item;\n            }\n        });\n        return target;\n    }\n\n    return Object.keys(source).reduce(function (acc, key) {\n        var value = source[key];\n\n        if (has.call(acc, key)) {\n            acc[key] = merge(acc[key], value, options);\n        } else {\n            acc[key] = value;\n        }\n\n        if (isOverflow(source) && !isOverflow(acc)) {\n            markOverflow(acc, getMaxIndex(source));\n        }\n        if (isOverflow(acc)) {\n            var keyNum = parseInt(key, 10);\n            if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {\n                setMaxIndex(acc, keyNum);\n            }\n        }\n\n        return acc;\n    }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n    return Object.keys(source).reduce(function (acc, key) {\n        acc[key] = source[key];\n        return acc;\n    }, target);\n};\n\nvar decode = function (str, defaultDecoder, charset) {\n    var strWithoutPlus = str.replace(/\\+/g, ' ');\n    if (charset === 'iso-8859-1') {\n        // unescape never throws, no try...catch needed:\n        return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n    }\n    // utf-8\n    try {\n        return decodeURIComponent(strWithoutPlus);\n    } catch (e) {\n        return strWithoutPlus;\n    }\n};\n\nvar limit = 1024;\n\n/* eslint operator-linebreak: [2, \"before\"] */\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n    // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n    // It has been adapted here for stricter adherence to RFC 3986\n    if (str.length === 0) {\n        return str;\n    }\n\n    var string = str;\n    if (typeof str === 'symbol') {\n        string = Symbol.prototype.toString.call(str);\n    } else if (typeof str !== 'string') {\n        string = String(str);\n    }\n\n    if (charset === 'iso-8859-1') {\n        return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n            return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n        });\n    }\n\n    var out = '';\n    for (var j = 0; j < string.length; j += limit) {\n        var segment = string.length >= limit ? string.slice(j, j + limit) : string;\n        var arr = [];\n\n        for (var i = 0; i < segment.length; ++i) {\n            var c = segment.charCodeAt(i);\n            if (\n                c === 0x2D // -\n                || c === 0x2E // .\n                || c === 0x5F // _\n                || c === 0x7E // ~\n                || (c >= 0x30 && c <= 0x39) // 0-9\n                || (c >= 0x41 && c <= 0x5A) // a-z\n                || (c >= 0x61 && c <= 0x7A) // A-Z\n                || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n            ) {\n                arr[arr.length] = segment.charAt(i);\n                continue;\n            }\n\n            if (c < 0x80) {\n                arr[arr.length] = hexTable[c];\n                continue;\n            }\n\n            if (c < 0x800) {\n                arr[arr.length] = hexTable[0xC0 | (c >> 6)]\n                    + hexTable[0x80 | (c & 0x3F)];\n                continue;\n            }\n\n            if (c < 0xD800 || c >= 0xE000) {\n                arr[arr.length] = hexTable[0xE0 | (c >> 12)]\n                    + hexTable[0x80 | ((c >> 6) & 0x3F)]\n                    + hexTable[0x80 | (c & 0x3F)];\n                continue;\n            }\n\n            i += 1;\n            c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));\n\n            arr[arr.length] = hexTable[0xF0 | (c >> 18)]\n                + hexTable[0x80 | ((c >> 12) & 0x3F)]\n                + hexTable[0x80 | ((c >> 6) & 0x3F)]\n                + hexTable[0x80 | (c & 0x3F)];\n        }\n\n        out += arr.join('');\n    }\n\n    return out;\n};\n\nvar compact = function compact(value) {\n    var queue = [{ obj: { o: value }, prop: 'o' }];\n    var refs = [];\n\n    for (var i = 0; i < queue.length; ++i) {\n        var item = queue[i];\n        var obj = item.obj[item.prop];\n\n        var keys = Object.keys(obj);\n        for (var j = 0; j < keys.length; ++j) {\n            var key = keys[j];\n            var val = obj[key];\n            if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n                queue[queue.length] = { obj: obj, prop: key };\n                refs[refs.length] = val;\n            }\n        }\n    }\n\n    compactQueue(queue);\n\n    return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n    return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n    if (!obj || typeof obj !== 'object') {\n        return false;\n    }\n\n    return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b, arrayLimit, plainObjects) {\n    // If 'a' is already an overflow object, add to it\n    if (isOverflow(a)) {\n        var newIndex = getMaxIndex(a) + 1;\n        a[newIndex] = b;\n        setMaxIndex(a, newIndex);\n        return a;\n    }\n\n    var result = [].concat(a, b);\n    if (result.length > arrayLimit) {\n        return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);\n    }\n    return result;\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n    if (isArray(val)) {\n        var mapped = [];\n        for (var i = 0; i < val.length; i += 1) {\n            mapped[mapped.length] = fn(val[i]);\n        }\n        return mapped;\n    }\n    return fn(val);\n};\n\nmodule.exports = {\n    arrayToObject: arrayToObject,\n    assign: assign,\n    combine: combine,\n    compact: compact,\n    decode: decode,\n    encode: encode,\n    isBuffer: isBuffer,\n    isOverflow: isOverflow,\n    isRegExp: isRegExp,\n    markOverflow: markOverflow,\n    maybeMap: maybeMap,\n    merge: merge\n};\n","/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Quill\"] = factory();\n\telse\n\t\troot[\"Quill\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 109);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar container_1 = __webpack_require__(17);\nvar format_1 = __webpack_require__(18);\nvar leaf_1 = __webpack_require__(19);\nvar scroll_1 = __webpack_require__(45);\nvar inline_1 = __webpack_require__(46);\nvar block_1 = __webpack_require__(47);\nvar embed_1 = __webpack_require__(48);\nvar text_1 = __webpack_require__(49);\nvar attributor_1 = __webpack_require__(12);\nvar class_1 = __webpack_require__(32);\nvar style_1 = __webpack_require__(33);\nvar store_1 = __webpack_require__(31);\nvar Registry = __webpack_require__(1);\nvar Parchment = {\n    Scope: Registry.Scope,\n    create: Registry.create,\n    find: Registry.find,\n    query: Registry.query,\n    register: Registry.register,\n    Container: container_1.default,\n    Format: format_1.default,\n    Leaf: leaf_1.default,\n    Embed: embed_1.default,\n    Scroll: scroll_1.default,\n    Block: block_1.default,\n    Inline: inline_1.default,\n    Text: text_1.default,\n    Attributor: {\n        Attribute: attributor_1.default,\n        Class: class_1.default,\n        Style: style_1.default,\n        Store: store_1.default,\n    },\n};\nexports.default = Parchment;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ParchmentError = /** @class */ (function (_super) {\n    __extends(ParchmentError, _super);\n    function ParchmentError(message) {\n        var _this = this;\n        message = '[Parchment] ' + message;\n        _this = _super.call(this, message) || this;\n        _this.message = message;\n        _this.name = _this.constructor.name;\n        return _this;\n    }\n    return ParchmentError;\n}(Error));\nexports.ParchmentError = ParchmentError;\nvar attributes = {};\nvar classes = {};\nvar tags = {};\nvar types = {};\nexports.DATA_KEY = '__blot';\nvar Scope;\n(function (Scope) {\n    Scope[Scope[\"TYPE\"] = 3] = \"TYPE\";\n    Scope[Scope[\"LEVEL\"] = 12] = \"LEVEL\";\n    Scope[Scope[\"ATTRIBUTE\"] = 13] = \"ATTRIBUTE\";\n    Scope[Scope[\"BLOT\"] = 14] = \"BLOT\";\n    Scope[Scope[\"INLINE\"] = 7] = \"INLINE\";\n    Scope[Scope[\"BLOCK\"] = 11] = \"BLOCK\";\n    Scope[Scope[\"BLOCK_BLOT\"] = 10] = \"BLOCK_BLOT\";\n    Scope[Scope[\"INLINE_BLOT\"] = 6] = \"INLINE_BLOT\";\n    Scope[Scope[\"BLOCK_ATTRIBUTE\"] = 9] = \"BLOCK_ATTRIBUTE\";\n    Scope[Scope[\"INLINE_ATTRIBUTE\"] = 5] = \"INLINE_ATTRIBUTE\";\n    Scope[Scope[\"ANY\"] = 15] = \"ANY\";\n})(Scope = exports.Scope || (exports.Scope = {}));\nfunction create(input, value) {\n    var match = query(input);\n    if (match == null) {\n        throw new ParchmentError(\"Unable to create \" + input + \" blot\");\n    }\n    var BlotClass = match;\n    var node = \n    // @ts-ignore\n    input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);\n    return new BlotClass(node, value);\n}\nexports.create = create;\nfunction find(node, bubble) {\n    if (bubble === void 0) { bubble = false; }\n    if (node == null)\n        return null;\n    // @ts-ignore\n    if (node[exports.DATA_KEY] != null)\n        return node[exports.DATA_KEY].blot;\n    if (bubble)\n        return find(node.parentNode, bubble);\n    return null;\n}\nexports.find = find;\nfunction query(query, scope) {\n    if (scope === void 0) { scope = Scope.ANY; }\n    var match;\n    if (typeof query === 'string') {\n        match = types[query] || attributes[query];\n        // @ts-ignore\n    }\n    else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {\n        match = types['text'];\n    }\n    else if (typeof query === 'number') {\n        if (query & Scope.LEVEL & Scope.BLOCK) {\n            match = types['block'];\n        }\n        else if (query & Scope.LEVEL & Scope.INLINE) {\n            match = types['inline'];\n        }\n    }\n    else if (query instanceof HTMLElement) {\n        var names = (query.getAttribute('class') || '').split(/\\s+/);\n        for (var i in names) {\n            match = classes[names[i]];\n            if (match)\n                break;\n        }\n        match = match || tags[query.tagName];\n    }\n    if (match == null)\n        return null;\n    // @ts-ignore\n    if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)\n        return match;\n    return null;\n}\nexports.query = query;\nfunction register() {\n    var Definitions = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        Definitions[_i] = arguments[_i];\n    }\n    if (Definitions.length > 1) {\n        return Definitions.map(function (d) {\n            return register(d);\n        });\n    }\n    var Definition = Definitions[0];\n    if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {\n        throw new ParchmentError('Invalid definition');\n    }\n    else if (Definition.blotName === 'abstract') {\n        throw new ParchmentError('Cannot register abstract class');\n    }\n    types[Definition.blotName || Definition.attrName] = Definition;\n    if (typeof Definition.keyName === 'string') {\n        attributes[Definition.keyName] = Definition;\n    }\n    else {\n        if (Definition.className != null) {\n            classes[Definition.className] = Definition;\n        }\n        if (Definition.tagName != null) {\n            if (Array.isArray(Definition.tagName)) {\n                Definition.tagName = Definition.tagName.map(function (tagName) {\n                    return tagName.toUpperCase();\n                });\n            }\n            else {\n                Definition.tagName = Definition.tagName.toUpperCase();\n            }\n            var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];\n            tagNames.forEach(function (tag) {\n                if (tags[tag] == null || Definition.className == null) {\n                    tags[tag] = Definition;\n                }\n            });\n        }\n    }\n    return Definition;\n}\nexports.register = register;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar diff = __webpack_require__(51);\nvar equal = __webpack_require__(11);\nvar extend = __webpack_require__(3);\nvar op = __webpack_require__(20);\n\n\nvar NULL_CHARACTER = String.fromCharCode(0);  // Placeholder char for embed in diff()\n\n\nvar Delta = function (ops) {\n  // Assume we are given a well formed ops\n  if (Array.isArray(ops)) {\n    this.ops = ops;\n  } else if (ops != null && Array.isArray(ops.ops)) {\n    this.ops = ops.ops;\n  } else {\n    this.ops = [];\n  }\n};\n\n\nDelta.prototype.insert = function (text, attributes) {\n  var newOp = {};\n  if (text.length === 0) return this;\n  newOp.insert = text;\n  if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {\n    newOp.attributes = attributes;\n  }\n  return this.push(newOp);\n};\n\nDelta.prototype['delete'] = function (length) {\n  if (length <= 0) return this;\n  return this.push({ 'delete': length });\n};\n\nDelta.prototype.retain = function (length, attributes) {\n  if (length <= 0) return this;\n  var newOp = { retain: length };\n  if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {\n    newOp.attributes = attributes;\n  }\n  return this.push(newOp);\n};\n\nDelta.prototype.push = function (newOp) {\n  var index = this.ops.length;\n  var lastOp = this.ops[index - 1];\n  newOp = extend(true, {}, newOp);\n  if (typeof lastOp === 'object') {\n    if (typeof newOp['delete'] === 'number' && typeof lastOp['delete'] === 'number') {\n      this.ops[index - 1] = { 'delete': lastOp['delete'] + newOp['delete'] };\n      return this;\n    }\n    // Since it does not matter if we insert before or after deleting at the same index,\n    // always prefer to insert first\n    if (typeof lastOp['delete'] === 'number' && newOp.insert != null) {\n      index -= 1;\n      lastOp = this.ops[index - 1];\n      if (typeof lastOp !== 'object') {\n        this.ops.unshift(newOp);\n        return this;\n      }\n    }\n    if (equal(newOp.attributes, lastOp.attributes)) {\n      if (typeof newOp.insert === 'string' && typeof lastOp.insert === 'string') {\n        this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };\n        if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes\n        return this;\n      } else if (typeof newOp.retain === 'number' && typeof lastOp.retain === 'number') {\n        this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };\n        if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes\n        return this;\n      }\n    }\n  }\n  if (index === this.ops.length) {\n    this.ops.push(newOp);\n  } else {\n    this.ops.splice(index, 0, newOp);\n  }\n  return this;\n};\n\nDelta.prototype.chop = function () {\n  var lastOp = this.ops[this.ops.length - 1];\n  if (lastOp && lastOp.retain && !lastOp.attributes) {\n    this.ops.pop();\n  }\n  return this;\n};\n\nDelta.prototype.filter = function (predicate) {\n  return this.ops.filter(predicate);\n};\n\nDelta.prototype.forEach = function (predicate) {\n  this.ops.forEach(predicate);\n};\n\nDelta.prototype.map = function (predicate) {\n  return this.ops.map(predicate);\n};\n\nDelta.prototype.partition = function (predicate) {\n  var passed = [], failed = [];\n  this.forEach(function(op) {\n    var target = predicate(op) ? passed : failed;\n    target.push(op);\n  });\n  return [passed, failed];\n};\n\nDelta.prototype.reduce = function (predicate, initial) {\n  return this.ops.reduce(predicate, initial);\n};\n\nDelta.prototype.changeLength = function () {\n  return this.reduce(function (length, elem) {\n    if (elem.insert) {\n      return length + op.length(elem);\n    } else if (elem.delete) {\n      return length - elem.delete;\n    }\n    return length;\n  }, 0);\n};\n\nDelta.prototype.length = function () {\n  return this.reduce(function (length, elem) {\n    return length + op.length(elem);\n  }, 0);\n};\n\nDelta.prototype.slice = function (start, end) {\n  start = start || 0;\n  if (typeof end !== 'number') end = Infinity;\n  var ops = [];\n  var iter = op.iterator(this.ops);\n  var index = 0;\n  while (index < end && iter.hasNext()) {\n    var nextOp;\n    if (index < start) {\n      nextOp = iter.next(start - index);\n    } else {\n      nextOp = iter.next(end - index);\n      ops.push(nextOp);\n    }\n    index += op.length(nextOp);\n  }\n  return new Delta(ops);\n};\n\n\nDelta.prototype.compose = function (other) {\n  var thisIter = op.iterator(this.ops);\n  var otherIter = op.iterator(other.ops);\n  var ops = [];\n  var firstOther = otherIter.peek();\n  if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) {\n    var firstLeft = firstOther.retain;\n    while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) {\n      firstLeft -= thisIter.peekLength();\n      ops.push(thisIter.next());\n    }\n    if (firstOther.retain - firstLeft > 0) {\n      otherIter.next(firstOther.retain - firstLeft);\n    }\n  }\n  var delta = new Delta(ops);\n  while (thisIter.hasNext() || otherIter.hasNext()) {\n    if (otherIter.peekType() === 'insert') {\n      delta.push(otherIter.next());\n    } else if (thisIter.peekType() === 'delete') {\n      delta.push(thisIter.next());\n    } else {\n      var length = Math.min(thisIter.peekLength(), otherIter.peekLength());\n      var thisOp = thisIter.next(length);\n      var otherOp = otherIter.next(length);\n      if (typeof otherOp.retain === 'number') {\n        var newOp = {};\n        if (typeof thisOp.retain === 'number') {\n          newOp.retain = length;\n        } else {\n          newOp.insert = thisOp.insert;\n        }\n        // Preserve null when composing with a retain, otherwise remove it for inserts\n        var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');\n        if (attributes) newOp.attributes = attributes;\n        delta.push(newOp);\n\n        // Optimization if rest of other is just retain\n        if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {\n          var rest = new Delta(thisIter.rest());\n          return delta.concat(rest).chop();\n        }\n\n      // Other op should be delete, we could be an insert or retain\n      // Insert + delete cancels out\n      } else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') {\n        delta.push(otherOp);\n      }\n    }\n  }\n  return delta.chop();\n};\n\nDelta.prototype.concat = function (other) {\n  var delta = new Delta(this.ops.slice());\n  if (other.ops.length > 0) {\n    delta.push(other.ops[0]);\n    delta.ops = delta.ops.concat(other.ops.slice(1));\n  }\n  return delta;\n};\n\nDelta.prototype.diff = function (other, index) {\n  if (this.ops === other.ops) {\n    return new Delta();\n  }\n  var strings = [this, other].map(function (delta) {\n    return delta.map(function (op) {\n      if (op.insert != null) {\n        return typeof op.insert === 'string' ? op.insert : NULL_CHARACTER;\n      }\n      var prep = (delta === other) ? 'on' : 'with';\n      throw new Error('diff() called ' + prep + ' non-document');\n    }).join('');\n  });\n  var delta = new Delta();\n  var diffResult = diff(strings[0], strings[1], index);\n  var thisIter = op.iterator(this.ops);\n  var otherIter = op.iterator(other.ops);\n  diffResult.forEach(function (component) {\n    var length = component[1].length;\n    while (length > 0) {\n      var opLength = 0;\n      switch (component[0]) {\n        case diff.INSERT:\n          opLength = Math.min(otherIter.peekLength(), length);\n          delta.push(otherIter.next(opLength));\n          break;\n        case diff.DELETE:\n          opLength = Math.min(length, thisIter.peekLength());\n          thisIter.next(opLength);\n          delta['delete'](opLength);\n          break;\n        case diff.EQUAL:\n          opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);\n          var thisOp = thisIter.next(opLength);\n          var otherOp = otherIter.next(opLength);\n          if (equal(thisOp.insert, otherOp.insert)) {\n            delta.retain(opLength, op.attributes.diff(thisOp.attributes, otherOp.attributes));\n          } else {\n            delta.push(otherOp)['delete'](opLength);\n          }\n          break;\n      }\n      length -= opLength;\n    }\n  });\n  return delta.chop();\n};\n\nDelta.prototype.eachLine = function (predicate, newline) {\n  newline = newline || '\\n';\n  var iter = op.iterator(this.ops);\n  var line = new Delta();\n  var i = 0;\n  while (iter.hasNext()) {\n    if (iter.peekType() !== 'insert') return;\n    var thisOp = iter.peek();\n    var start = op.length(thisOp) - iter.peekLength();\n    var index = typeof thisOp.insert === 'string' ?\n      thisOp.insert.indexOf(newline, start) - start : -1;\n    if (index < 0) {\n      line.push(iter.next());\n    } else if (index > 0) {\n      line.push(iter.next(index));\n    } else {\n      if (predicate(line, iter.next(1).attributes || {}, i) === false) {\n        return;\n      }\n      i += 1;\n      line = new Delta();\n    }\n  }\n  if (line.length() > 0) {\n    predicate(line, {}, i);\n  }\n};\n\nDelta.prototype.transform = function (other, priority) {\n  priority = !!priority;\n  if (typeof other === 'number') {\n    return this.transformPosition(other, priority);\n  }\n  var thisIter = op.iterator(this.ops);\n  var otherIter = op.iterator(other.ops);\n  var delta = new Delta();\n  while (thisIter.hasNext() || otherIter.hasNext()) {\n    if (thisIter.peekType() === 'insert' && (priority || otherIter.peekType() !== 'insert')) {\n      delta.retain(op.length(thisIter.next()));\n    } else if (otherIter.peekType() === 'insert') {\n      delta.push(otherIter.next());\n    } else {\n      var length = Math.min(thisIter.peekLength(), otherIter.peekLength());\n      var thisOp = thisIter.next(length);\n      var otherOp = otherIter.next(length);\n      if (thisOp['delete']) {\n        // Our delete either makes their delete redundant or removes their retain\n        continue;\n      } else if (otherOp['delete']) {\n        delta.push(otherOp);\n      } else {\n        // We retain either their retain or insert\n        delta.retain(length, op.attributes.transform(thisOp.attributes, otherOp.attributes, priority));\n      }\n    }\n  }\n  return delta.chop();\n};\n\nDelta.prototype.transformPosition = function (index, priority) {\n  priority = !!priority;\n  var thisIter = op.iterator(this.ops);\n  var offset = 0;\n  while (thisIter.hasNext() && offset <= index) {\n    var length = thisIter.peekLength();\n    var nextType = thisIter.peekType();\n    thisIter.next();\n    if (nextType === 'delete') {\n      index -= Math.min(length, index - offset);\n      continue;\n    } else if (nextType === 'insert' && (offset < index || !priority)) {\n      index += length;\n    }\n    offset += length;\n  }\n  return index;\n};\n\n\nmodule.exports = Delta;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar defineProperty = Object.defineProperty;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) { /**/ }\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\nvar setProperty = function setProperty(target, options) {\n\tif (defineProperty && options.name === '__proto__') {\n\t\tdefineProperty(target, options.name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: options.newValue,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\ttarget[options.name] = options.newValue;\n\t}\n};\n\n// Return undefined instead of __proto__ if '__proto__' is not an own property\nvar getProperty = function getProperty(obj, name) {\n\tif (name === '__proto__') {\n\t\tif (!hasOwn.call(obj, name)) {\n\t\t\treturn void 0;\n\t\t} else if (gOPD) {\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\n\t\t\treturn gOPD(obj, name).value;\n\t\t}\n\t}\n\n\treturn obj[name];\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone;\n\tvar target = arguments[0];\n\tvar i = 1;\n\tvar length = arguments.length;\n\tvar deep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = getProperty(target, name);\n\t\t\t\tcopy = getProperty(options, name);\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.BlockEmbed = exports.bubbleFormats = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _break = __webpack_require__(16);\n\nvar _break2 = _interopRequireDefault(_break);\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar NEWLINE_LENGTH = 1;\n\nvar BlockEmbed = function (_Parchment$Embed) {\n  _inherits(BlockEmbed, _Parchment$Embed);\n\n  function BlockEmbed() {\n    _classCallCheck(this, BlockEmbed);\n\n    return _possibleConstructorReturn(this, (BlockEmbed.__proto__ || Object.getPrototypeOf(BlockEmbed)).apply(this, arguments));\n  }\n\n  _createClass(BlockEmbed, [{\n    key: 'attach',\n    value: function attach() {\n      _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'attach', this).call(this);\n      this.attributes = new _parchment2.default.Attributor.Store(this.domNode);\n    }\n  }, {\n    key: 'delta',\n    value: function delta() {\n      return new _quillDelta2.default().insert(this.value(), (0, _extend2.default)(this.formats(), this.attributes.values()));\n    }\n  }, {\n    key: 'format',\n    value: function format(name, value) {\n      var attribute = _parchment2.default.query(name, _parchment2.default.Scope.BLOCK_ATTRIBUTE);\n      if (attribute != null) {\n        this.attributes.attribute(attribute, value);\n      }\n    }\n  }, {\n    key: 'formatAt',\n    value: function formatAt(index, length, name, value) {\n      this.format(name, value);\n    }\n  }, {\n    key: 'insertAt',\n    value: function insertAt(index, value, def) {\n      if (typeof value === 'string' && value.endsWith('\\n')) {\n        var block = _parchment2.default.create(Block.blotName);\n        this.parent.insertBefore(block, index === 0 ? this : this.next);\n        block.insertAt(0, value.slice(0, -1));\n      } else {\n        _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'insertAt', this).call(this, index, value, def);\n      }\n    }\n  }]);\n\n  return BlockEmbed;\n}(_parchment2.default.Embed);\n\nBlockEmbed.scope = _parchment2.default.Scope.BLOCK_BLOT;\n// It is important for cursor behavior BlockEmbeds use tags that are block level elements\n\n\nvar Block = function (_Parchment$Block) {\n  _inherits(Block, _Parchment$Block);\n\n  function Block(domNode) {\n    _classCallCheck(this, Block);\n\n    var _this2 = _possibleConstructorReturn(this, (Block.__proto__ || Object.getPrototypeOf(Block)).call(this, domNode));\n\n    _this2.cache = {};\n    return _this2;\n  }\n\n  _createClass(Block, [{\n    key: 'delta',\n    value: function delta() {\n      if (this.cache.delta == null) {\n        this.cache.delta = this.descendants(_parchment2.default.Leaf).reduce(function (delta, leaf) {\n          if (leaf.length() === 0) {\n            return delta;\n          } else {\n            return delta.insert(leaf.value(), bubbleFormats(leaf));\n          }\n        }, new _quillDelta2.default()).insert('\\n', bubbleFormats(this));\n      }\n      return this.cache.delta;\n    }\n  }, {\n    key: 'deleteAt',\n    value: function deleteAt(index, length) {\n      _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'deleteAt', this).call(this, index, length);\n      this.cache = {};\n    }\n  }, {\n    key: 'formatAt',\n    value: function formatAt(index, length, name, value) {\n      if (length <= 0) return;\n      if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {\n        if (index + length === this.length()) {\n          this.format(name, value);\n        }\n      } else {\n        _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'formatAt', this).call(this, index, Math.min(length, this.length() - index - 1), name, value);\n      }\n      this.cache = {};\n    }\n  }, {\n    key: 'insertAt',\n    value: function insertAt(index, value, def) {\n      if (def != null) return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, index, value, def);\n      if (value.length === 0) return;\n      var lines = value.split('\\n');\n      var text = lines.shift();\n      if (text.length > 0) {\n        if (index < this.length() - 1 || this.children.tail == null) {\n          _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, Math.min(index, this.length() - 1), text);\n        } else {\n          this.children.tail.insertAt(this.children.tail.length(), text);\n        }\n        this.cache = {};\n      }\n      var block = this;\n      lines.reduce(function (index, line) {\n        block = block.split(index, true);\n        block.insertAt(0, line);\n        return line.length;\n      }, index + text.length);\n    }\n  }, {\n    key: 'insertBefore',\n    value: function insertBefore(blot, ref) {\n      var head = this.children.head;\n      _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertBefore', this).call(this, blot, ref);\n      if (head instanceof _break2.default) {\n        head.remove();\n      }\n      this.cache = {};\n    }\n  }, {\n    key: 'length',\n    value: function length() {\n      if (this.cache.length == null) {\n        this.cache.length = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'length', this).call(this) + NEWLINE_LENGTH;\n      }\n      return this.cache.length;\n    }\n  }, {\n    key: 'moveChildren',\n    value: function moveChildren(target, ref) {\n      _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'moveChildren', this).call(this, target, ref);\n      this.cache = {};\n    }\n  }, {\n    key: 'optimize',\n    value: function optimize(context) {\n      _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'optimize', this).call(this, context);\n      this.cache = {};\n    }\n  }, {\n    key: 'path',\n    value: function path(index) {\n      return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'path', this).call(this, index, true);\n    }\n  }, {\n    key: 'removeChild',\n    value: function removeChild(child) {\n      _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'removeChild', this).call(this, child);\n      this.cache = {};\n    }\n  }, {\n    key: 'split',\n    value: function split(index) {\n      var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n      if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {\n        var clone = this.clone();\n        if (index === 0) {\n          this.parent.insertBefore(clone, this);\n          return this;\n        } else {\n          this.parent.insertBefore(clone, this.next);\n          return clone;\n        }\n      } else {\n        var next = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'split', this).call(this, index, force);\n        this.cache = {};\n        return next;\n      }\n    }\n  }]);\n\n  return Block;\n}(_parchment2.default.Block);\n\nBlock.blotName = 'block';\nBlock.tagName = 'P';\nBlock.defaultChild = 'break';\nBlock.allowedChildren = [_inline2.default, _parchment2.default.Embed, _text2.default];\n\nfunction bubbleFormats(blot) {\n  var formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  if (blot == null) return formats;\n  if (typeof blot.formats === 'function') {\n    formats = (0, _extend2.default)(formats, blot.formats());\n  }\n  if (blot.parent == null || blot.parent.blotName == 'scroll' || blot.parent.statics.scope !== blot.statics.scope) {\n    return formats;\n  }\n  return bubbleFormats(blot.parent, formats);\n}\n\nexports.bubbleFormats = bubbleFormats;\nexports.BlockEmbed = BlockEmbed;\nexports.default = Block;\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.overload = exports.expandConfig = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\n__webpack_require__(50);\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _editor = __webpack_require__(14);\n\nvar _editor2 = _interopRequireDefault(_editor);\n\nvar _emitter3 = __webpack_require__(8);\n\nvar _emitter4 = _interopRequireDefault(_emitter3);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _selection = __webpack_require__(15);\n\nvar _selection2 = _interopRequireDefault(_selection);\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _theme = __webpack_require__(34);\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar debug = (0, _logger2.default)('quill');\n\nvar Quill = function () {\n  _createClass(Quill, null, [{\n    key: 'debug',\n    value: function debug(limit) {\n      if (limit === true) {\n        limit = 'log';\n      }\n      _logger2.default.level(limit);\n    }\n  }, {\n    key: 'find',\n    value: function find(node) {\n      return node.__quill || _parchment2.default.find(node);\n    }\n  }, {\n    key: 'import',\n    value: function _import(name) {\n      if (this.imports[name] == null) {\n        debug.error('Cannot import ' + name + '. Are you sure it was registered?');\n      }\n      return this.imports[name];\n    }\n  }, {\n    key: 'register',\n    value: function register(path, target) {\n      var _this = this;\n\n      var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n      if (typeof path !== 'string') {\n        var name = path.attrName || path.blotName;\n        if (typeof name === 'string') {\n          // register(Blot | Attributor, overwrite)\n          this.register('formats/' + name, path, target);\n        } else {\n          Object.keys(path).forEach(function (key) {\n            _this.register(key, path[key], target);\n          });\n        }\n      } else {\n        if (this.imports[path] != null && !overwrite) {\n          debug.warn('Overwriting ' + path + ' with', target);\n        }\n        this.imports[path] = target;\n        if ((path.startsWith('blots/') || path.startsWith('formats/')) && target.blotName !== 'abstract') {\n          _parchment2.default.register(target);\n        } else if (path.startsWith('modules') && typeof target.register === 'function') {\n          target.register();\n        }\n      }\n    }\n  }]);\n\n  function Quill(container) {\n    var _this2 = this;\n\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n    _classCallCheck(this, Quill);\n\n    this.options = expandConfig(container, options);\n    this.container = this.options.container;\n    if (this.container == null) {\n      return debug.error('Invalid Quill container', container);\n    }\n    if (this.options.debug) {\n      Quill.debug(this.options.debug);\n    }\n    var html = this.container.innerHTML.trim();\n    this.container.classList.add('ql-container');\n    this.container.innerHTML = '';\n    this.container.__quill = this;\n    this.root = this.addContainer('ql-editor');\n    this.root.classList.add('ql-blank');\n    this.root.setAttribute('data-gramm', false);\n    this.scrollingContainer = this.options.scrollingContainer || this.root;\n    this.emitter = new _emitter4.default();\n    this.scroll = _parchment2.default.create(this.root, {\n      emitter: this.emitter,\n      whitelist: this.options.formats\n    });\n    this.editor = new _editor2.default(this.scroll);\n    this.selection = new _selection2.default(this.scroll, this.emitter);\n    this.theme = new this.options.theme(this, this.options);\n    this.keyboard = this.theme.addModule('keyboard');\n    this.clipboard = this.theme.addModule('clipboard');\n    this.history = this.theme.addModule('history');\n    this.theme.init();\n    this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type) {\n      if (type === _emitter4.default.events.TEXT_CHANGE) {\n        _this2.root.classList.toggle('ql-blank', _this2.editor.isBlank());\n      }\n    });\n    this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function (source, mutations) {\n      var range = _this2.selection.lastRange;\n      var index = range && range.length === 0 ? range.index : undefined;\n      modify.call(_this2, function () {\n        return _this2.editor.update(null, mutations, index);\n      }, source);\n    });\n    var contents = this.clipboard.convert('<div class=\\'ql-editor\\' style=\"white-space: normal;\">' + html + '<p><br></p></div>');\n    this.setContents(contents);\n    this.history.clear();\n    if (this.options.placeholder) {\n      this.root.setAttribute('data-placeholder', this.options.placeholder);\n    }\n    if (this.options.readOnly) {\n      this.disable();\n    }\n  }\n\n  _createClass(Quill, [{\n    key: 'addContainer',\n    value: function addContainer(container) {\n      var refNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n      if (typeof container === 'string') {\n        var className = container;\n        container = document.createElement('div');\n        container.classList.add(className);\n      }\n      this.container.insertBefore(container, refNode);\n      return container;\n    }\n  }, {\n    key: 'blur',\n    value: function blur() {\n      this.selection.setRange(null);\n    }\n  }, {\n    key: 'deleteText',\n    value: function deleteText(index, length, source) {\n      var _this3 = this;\n\n      var _overload = overload(index, length, source);\n\n      var _overload2 = _slicedToArray(_overload, 4);\n\n      index = _overload2[0];\n      length = _overload2[1];\n      source = _overload2[3];\n\n      return modify.call(this, function () {\n        return _this3.editor.deleteText(index, length);\n      }, source, index, -1 * length);\n    }\n  }, {\n    key: 'disable',\n    value: function disable() {\n      this.enable(false);\n    }\n  }, {\n    key: 'enable',\n    value: function enable() {\n      var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n      this.scroll.enable(enabled);\n      this.container.classList.toggle('ql-disabled', !enabled);\n    }\n  }, {\n    key: 'focus',\n    value: function focus() {\n      var scrollTop = this.scrollingContainer.scrollTop;\n      this.selection.focus();\n      this.scrollingContainer.scrollTop = scrollTop;\n      this.scrollIntoView();\n    }\n  }, {\n    key: 'format',\n    value: function format(name, value) {\n      var _this4 = this;\n\n      var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;\n\n      return modify.call(this, function () {\n        var range = _this4.getSelection(true);\n        var change = new _quillDelta2.default();\n        if (range == null) {\n          return change;\n        } else if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {\n          change = _this4.editor.formatLine(range.index, range.length, _defineProperty({}, name, value));\n        } else if (range.length === 0) {\n          _this4.selection.format(name, value);\n          return change;\n        } else {\n          change = _this4.editor.formatText(range.index, range.length, _defineProperty({}, name, value));\n        }\n        _this4.setSelection(range, _emitter4.default.sources.SILENT);\n        return change;\n      }, source);\n    }\n  }, {\n    key: 'formatLine',\n    value: function formatLine(index, length, name, value, source) {\n      var _this5 = this;\n\n      var formats = void 0;\n\n      var _overload3 = overload(index, length, name, value, source);\n\n      var _overload4 = _slicedToArray(_overload3, 4);\n\n      index = _overload4[0];\n      length = _overload4[1];\n      formats = _overload4[2];\n      source = _overload4[3];\n\n      return modify.call(this, function () {\n        return _this5.editor.formatLine(index, length, formats);\n      }, source, index, 0);\n    }\n  }, {\n    key: 'formatText',\n    value: function formatText(index, length, name, value, source) {\n      var _this6 = this;\n\n      var formats = void 0;\n\n      var _overload5 = overload(index, length, name, value, source);\n\n      var _overload6 = _slicedToArray(_overload5, 4);\n\n      index = _overload6[0];\n      length = _overload6[1];\n      formats = _overload6[2];\n      source = _overload6[3];\n\n      return modify.call(this, function () {\n        return _this6.editor.formatText(index, length, formats);\n      }, source, index, 0);\n    }\n  }, {\n    key: 'getBounds',\n    value: function getBounds(index) {\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n      var bounds = void 0;\n      if (typeof index === 'number') {\n        bounds = this.selection.getBounds(index, length);\n      } else {\n        bounds = this.selection.getBounds(index.index, index.length);\n      }\n      var containerBounds = this.container.getBoundingClientRect();\n      return {\n        bottom: bounds.bottom - containerBounds.top,\n        height: bounds.height,\n        left: bounds.left - containerBounds.left,\n        right: bounds.right - containerBounds.left,\n        top: bounds.top - containerBounds.top,\n        width: bounds.width\n      };\n    }\n  }, {\n    key: 'getContents',\n    value: function getContents() {\n      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;\n\n      var _overload7 = overload(index, length);\n\n      var _overload8 = _slicedToArray(_overload7, 2);\n\n      index = _overload8[0];\n      length = _overload8[1];\n\n      return this.editor.getContents(index, length);\n    }\n  }, {\n    key: 'getFormat',\n    value: function getFormat() {\n      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getSelection(true);\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n      if (typeof index === 'number') {\n        return this.editor.getFormat(index, length);\n      } else {\n        return this.editor.getFormat(index.index, index.length);\n      }\n    }\n  }, {\n    key: 'getIndex',\n    value: function getIndex(blot) {\n      return blot.offset(this.scroll);\n    }\n  }, {\n    key: 'getLength',\n    value: function getLength() {\n      return this.scroll.length();\n    }\n  }, {\n    key: 'getLeaf',\n    value: function getLeaf(index) {\n      return this.scroll.leaf(index);\n    }\n  }, {\n    key: 'getLine',\n    value: function getLine(index) {\n      return this.scroll.line(index);\n    }\n  }, {\n    key: 'getLines',\n    value: function getLines() {\n      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;\n\n      if (typeof index !== 'number') {\n        return this.scroll.lines(index.index, index.length);\n      } else {\n        return this.scroll.lines(index, length);\n      }\n    }\n  }, {\n    key: 'getModule',\n    value: function getModule(name) {\n      return this.theme.modules[name];\n    }\n  }, {\n    key: 'getSelection',\n    value: function getSelection() {\n      var focus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n      if (focus) this.focus();\n      this.update(); // Make sure we access getRange with editor in consistent state\n      return this.selection.getRange()[0];\n    }\n  }, {\n    key: 'getText',\n    value: function getText() {\n      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;\n\n      var _overload9 = overload(index, length);\n\n      var _overload10 = _slicedToArray(_overload9, 2);\n\n      index = _overload10[0];\n      length = _overload10[1];\n\n      return this.editor.getText(index, length);\n    }\n  }, {\n    key: 'hasFocus',\n    value: function hasFocus() {\n      return this.selection.hasFocus();\n    }\n  }, {\n    key: 'insertEmbed',\n    value: function insertEmbed(index, embed, value) {\n      var _this7 = this;\n\n      var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Quill.sources.API;\n\n      return modify.call(this, function () {\n        return _this7.editor.insertEmbed(index, embed, value);\n      }, source, index);\n    }\n  }, {\n    key: 'insertText',\n    value: function insertText(index, text, name, value, source) {\n      var _this8 = this;\n\n      var formats = void 0;\n\n      var _overload11 = overload(index, 0, name, value, source);\n\n      var _overload12 = _slicedToArray(_overload11, 4);\n\n      index = _overload12[0];\n      formats = _overload12[2];\n      source = _overload12[3];\n\n      return modify.call(this, function () {\n        return _this8.editor.insertText(index, text, formats);\n      }, source, index, text.length);\n    }\n  }, {\n    key: 'isEnabled',\n    value: function isEnabled() {\n      return !this.container.classList.contains('ql-disabled');\n    }\n  }, {\n    key: 'off',\n    value: function off() {\n      return this.emitter.off.apply(this.emitter, arguments);\n    }\n  }, {\n    key: 'on',\n    value: function on() {\n      return this.emitter.on.apply(this.emitter, arguments);\n    }\n  }, {\n    key: 'once',\n    value: function once() {\n      return this.emitter.once.apply(this.emitter, arguments);\n    }\n  }, {\n    key: 'pasteHTML',\n    value: function pasteHTML(index, html, source) {\n      this.clipboard.dangerouslyPasteHTML(index, html, source);\n    }\n  }, {\n    key: 'removeFormat',\n    value: function removeFormat(index, length, source) {\n      var _this9 = this;\n\n      var _overload13 = overload(index, length, source);\n\n      var _overload14 = _slicedToArray(_overload13, 4);\n\n      index = _overload14[0];\n      length = _overload14[1];\n      source = _overload14[3];\n\n      return modify.call(this, function () {\n        return _this9.editor.removeFormat(index, length);\n      }, source, index);\n    }\n  }, {\n    key: 'scrollIntoView',\n    value: function scrollIntoView() {\n      this.selection.scrollIntoView(this.scrollingContainer);\n    }\n  }, {\n    key: 'setContents',\n    value: function setContents(delta) {\n      var _this10 = this;\n\n      var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;\n\n      return modify.call(this, function () {\n        delta = new _quillDelta2.default(delta);\n        var length = _this10.getLength();\n        var deleted = _this10.editor.deleteText(0, length);\n        var applied = _this10.editor.applyDelta(delta);\n        var lastOp = applied.ops[applied.ops.length - 1];\n        if (lastOp != null && typeof lastOp.insert === 'string' && lastOp.insert[lastOp.insert.length - 1] === '\\n') {\n          _this10.editor.deleteText(_this10.getLength() - 1, 1);\n          applied.delete(1);\n        }\n        var ret = deleted.compose(applied);\n        return ret;\n      }, source);\n    }\n  }, {\n    key: 'setSelection',\n    value: function setSelection(index, length, source) {\n      if (index == null) {\n        this.selection.setRange(null, length || Quill.sources.API);\n      } else {\n        var _overload15 = overload(index, length, source);\n\n        var _overload16 = _slicedToArray(_overload15, 4);\n\n        index = _overload16[0];\n        length = _overload16[1];\n        source = _overload16[3];\n\n        this.selection.setRange(new _selection.Range(index, length), source);\n        if (source !== _emitter4.default.sources.SILENT) {\n          this.selection.scrollIntoView(this.scrollingContainer);\n        }\n      }\n    }\n  }, {\n    key: 'setText',\n    value: function setText(text) {\n      var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;\n\n      var delta = new _quillDelta2.default().insert(text);\n      return this.setContents(delta, source);\n    }\n  }, {\n    key: 'update',\n    value: function update() {\n      var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;\n\n      var change = this.scroll.update(source); // Will update selection before selection.update() does if text changes\n      this.selection.update(source);\n      return change;\n    }\n  }, {\n    key: 'updateContents',\n    value: function updateContents(delta) {\n      var _this11 = this;\n\n      var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;\n\n      return modify.call(this, function () {\n        delta = new _quillDelta2.default(delta);\n        return _this11.editor.applyDelta(delta, source);\n      }, source, true);\n    }\n  }]);\n\n  return Quill;\n}();\n\nQuill.DEFAULTS = {\n  bounds: null,\n  formats: null,\n  modules: {},\n  placeholder: '',\n  readOnly: false,\n  scrollingContainer: null,\n  strict: true,\n  theme: 'default'\n};\nQuill.events = _emitter4.default.events;\nQuill.sources = _emitter4.default.sources;\n// eslint-disable-next-line no-undef\nQuill.version =  false ? 'dev' : \"1.3.7\";\n\nQuill.imports = {\n  'delta': _quillDelta2.default,\n  'parchment': _parchment2.default,\n  'core/module': _module2.default,\n  'core/theme': _theme2.default\n};\n\nfunction expandConfig(container, userConfig) {\n  userConfig = (0, _extend2.default)(true, {\n    container: container,\n    modules: {\n      clipboard: true,\n      keyboard: true,\n      history: true\n    }\n  }, userConfig);\n  if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {\n    userConfig.theme = _theme2.default;\n  } else {\n    userConfig.theme = Quill.import('themes/' + userConfig.theme);\n    if (userConfig.theme == null) {\n      throw new Error('Invalid theme ' + userConfig.theme + '. Did you register it?');\n    }\n  }\n  var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);\n  [themeConfig, userConfig].forEach(function (config) {\n    config.modules = config.modules || {};\n    Object.keys(config.modules).forEach(function (module) {\n      if (config.modules[module] === true) {\n        config.modules[module] = {};\n      }\n    });\n  });\n  var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));\n  var moduleConfig = moduleNames.reduce(function (config, name) {\n    var moduleClass = Quill.import('modules/' + name);\n    if (moduleClass == null) {\n      debug.error('Cannot load ' + name + ' module. Are you sure you registered it?');\n    } else {\n      config[name] = moduleClass.DEFAULTS || {};\n    }\n    return config;\n  }, {});\n  // Special case toolbar shorthand\n  if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {\n    userConfig.modules.toolbar = {\n      container: userConfig.modules.toolbar\n    };\n  }\n  userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);\n  ['bounds', 'container', 'scrollingContainer'].forEach(function (key) {\n    if (typeof userConfig[key] === 'string') {\n      userConfig[key] = document.querySelector(userConfig[key]);\n    }\n  });\n  userConfig.modules = Object.keys(userConfig.modules).reduce(function (config, name) {\n    if (userConfig.modules[name]) {\n      config[name] = userConfig.modules[name];\n    }\n    return config;\n  }, {});\n  return userConfig;\n}\n\n// Handle selection preservation and TEXT_CHANGE emission\n// common to modification APIs\nfunction modify(modifier, source, index, shift) {\n  if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {\n    return new _quillDelta2.default();\n  }\n  var range = index == null ? null : this.getSelection();\n  var oldDelta = this.editor.delta;\n  var change = modifier();\n  if (range != null) {\n    if (index === true) index = range.index;\n    if (shift == null) {\n      range = shiftRange(range, change, source);\n    } else if (shift !== 0) {\n      range = shiftRange(range, index, shift, source);\n    }\n    this.setSelection(range, _emitter4.default.sources.SILENT);\n  }\n  if (change.length() > 0) {\n    var _emitter;\n\n    var args = [_emitter4.default.events.TEXT_CHANGE, change, oldDelta, source];\n    (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));\n    if (source !== _emitter4.default.sources.SILENT) {\n      var _emitter2;\n\n      (_emitter2 = this.emitter).emit.apply(_emitter2, args);\n    }\n  }\n  return change;\n}\n\nfunction overload(index, length, name, value, source) {\n  var formats = {};\n  if (typeof index.index === 'number' && typeof index.length === 'number') {\n    // Allow for throwaway end (used by insertText/insertEmbed)\n    if (typeof length !== 'number') {\n      source = value, value = name, name = length, length = index.length, index = index.index;\n    } else {\n      length = index.length, index = index.index;\n    }\n  } else if (typeof length !== 'number') {\n    source = value, value = name, name = length, length = 0;\n  }\n  // Handle format being object, two format name/value strings or excluded\n  if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {\n    formats = name;\n    source = value;\n  } else if (typeof name === 'string') {\n    if (value != null) {\n      formats[name] = value;\n    } else {\n      source = name;\n    }\n  }\n  // Handle optional source\n  source = source || _emitter4.default.sources.API;\n  return [index, length, formats, source];\n}\n\nfunction shiftRange(range, index, length, source) {\n  if (range == null) return null;\n  var start = void 0,\n      end = void 0;\n  if (index instanceof _quillDelta2.default) {\n    var _map = [range.index, range.index + range.length].map(function (pos) {\n      return index.transformPosition(pos, source !== _emitter4.default.sources.USER);\n    });\n\n    var _map2 = _slicedToArray(_map, 2);\n\n    start = _map2[0];\n    end = _map2[1];\n  } else {\n    var _map3 = [range.index, range.index + range.length].map(function (pos) {\n      if (pos < index || pos === index && source === _emitter4.default.sources.USER) return pos;\n      if (length >= 0) {\n        return pos + length;\n      } else {\n        return Math.max(index, pos + length);\n      }\n    });\n\n    var _map4 = _slicedToArray(_map3, 2);\n\n    start = _map4[0];\n    end = _map4[1];\n  }\n  return new _selection.Range(start, end - start);\n}\n\nexports.expandConfig = expandConfig;\nexports.overload = overload;\nexports.default = Quill;\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Inline = function (_Parchment$Inline) {\n  _inherits(Inline, _Parchment$Inline);\n\n  function Inline() {\n    _classCallCheck(this, Inline);\n\n    return _possibleConstructorReturn(this, (Inline.__proto__ || Object.getPrototypeOf(Inline)).apply(this, arguments));\n  }\n\n  _createClass(Inline, [{\n    key: 'formatAt',\n    value: function formatAt(index, length, name, value) {\n      if (Inline.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {\n        var blot = this.isolate(index, length);\n        if (value) {\n          blot.wrap(name, value);\n        }\n      } else {\n        _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'formatAt', this).call(this, index, length, name, value);\n      }\n    }\n  }, {\n    key: 'optimize',\n    value: function optimize(context) {\n      _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'optimize', this).call(this, context);\n      if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {\n        var parent = this.parent.isolate(this.offset(), this.length());\n        this.moveChildren(parent);\n        parent.wrap(this);\n      }\n    }\n  }], [{\n    key: 'compare',\n    value: function compare(self, other) {\n      var selfIndex = Inline.order.indexOf(self);\n      var otherIndex = Inline.order.indexOf(other);\n      if (selfIndex >= 0 || otherIndex >= 0) {\n        return selfIndex - otherIndex;\n      } else if (self === other) {\n        return 0;\n      } else if (self < other) {\n        return -1;\n      } else {\n        return 1;\n      }\n    }\n  }]);\n\n  return Inline;\n}(_parchment2.default.Inline);\n\nInline.allowedChildren = [Inline, _parchment2.default.Embed, _text2.default];\n// Lower index means deeper in the DOM tree, since not found (-1) is for embeds\nInline.order = ['cursor', 'inline', // Must be lower\n'underline', 'strike', 'italic', 'bold', 'script', 'link', 'code' // Must be higher\n];\n\nexports.default = Inline;\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar TextBlot = function (_Parchment$Text) {\n  _inherits(TextBlot, _Parchment$Text);\n\n  function TextBlot() {\n    _classCallCheck(this, TextBlot);\n\n    return _possibleConstructorReturn(this, (TextBlot.__proto__ || Object.getPrototypeOf(TextBlot)).apply(this, arguments));\n  }\n\n  return TextBlot;\n}(_parchment2.default.Text);\n\nexports.default = TextBlot;\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _eventemitter = __webpack_require__(54);\n\nvar _eventemitter2 = _interopRequireDefault(_eventemitter);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar debug = (0, _logger2.default)('quill:events');\n\nvar EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];\n\nEVENTS.forEach(function (eventName) {\n  document.addEventListener(eventName, function () {\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    [].slice.call(document.querySelectorAll('.ql-container')).forEach(function (node) {\n      // TODO use WeakMap\n      if (node.__quill && node.__quill.emitter) {\n        var _node$__quill$emitter;\n\n        (_node$__quill$emitter = node.__quill.emitter).handleDOM.apply(_node$__quill$emitter, args);\n      }\n    });\n  });\n});\n\nvar Emitter = function (_EventEmitter) {\n  _inherits(Emitter, _EventEmitter);\n\n  function Emitter() {\n    _classCallCheck(this, Emitter);\n\n    var _this = _possibleConstructorReturn(this, (Emitter.__proto__ || Object.getPrototypeOf(Emitter)).call(this));\n\n    _this.listeners = {};\n    _this.on('error', debug.error);\n    return _this;\n  }\n\n  _createClass(Emitter, [{\n    key: 'emit',\n    value: function emit() {\n      debug.log.apply(debug, arguments);\n      _get(Emitter.prototype.__proto__ || Object.getPrototypeOf(Emitter.prototype), 'emit', this).apply(this, arguments);\n    }\n  }, {\n    key: 'handleDOM',\n    value: function handleDOM(event) {\n      for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      (this.listeners[event.type] || []).forEach(function (_ref) {\n        var node = _ref.node,\n            handler = _ref.handler;\n\n        if (event.target === node || node.contains(event.target)) {\n          handler.apply(undefined, [event].concat(args));\n        }\n      });\n    }\n  }, {\n    key: 'listenDOM',\n    value: function listenDOM(eventName, node, handler) {\n      if (!this.listeners[eventName]) {\n        this.listeners[eventName] = [];\n      }\n      this.listeners[eventName].push({ node: node, handler: handler });\n    }\n  }]);\n\n  return Emitter;\n}(_eventemitter2.default);\n\nEmitter.events = {\n  EDITOR_CHANGE: 'editor-change',\n  SCROLL_BEFORE_UPDATE: 'scroll-before-update',\n  SCROLL_OPTIMIZE: 'scroll-optimize',\n  SCROLL_UPDATE: 'scroll-update',\n  SELECTION_CHANGE: 'selection-change',\n  TEXT_CHANGE: 'text-change'\n};\nEmitter.sources = {\n  API: 'api',\n  SILENT: 'silent',\n  USER: 'user'\n};\n\nexports.default = Emitter;\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Module = function Module(quill) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  _classCallCheck(this, Module);\n\n  this.quill = quill;\n  this.options = options;\n};\n\nModule.DEFAULTS = {};\n\nexports.default = Module;\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nvar levels = ['error', 'warn', 'log', 'info'];\nvar level = 'warn';\n\nfunction debug(method) {\n  if (levels.indexOf(method) <= levels.indexOf(level)) {\n    var _console;\n\n    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n\n    (_console = console)[method].apply(_console, args); // eslint-disable-line no-console\n  }\n}\n\nfunction namespace(ns) {\n  return levels.reduce(function (logger, method) {\n    logger[method] = debug.bind(console, method, ns);\n    return logger;\n  }, {});\n}\n\ndebug.level = namespace.level = function (newLevel) {\n  level = newLevel;\n};\n\nexports.default = namespace;\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar pSlice = Array.prototype.slice;\nvar objectKeys = __webpack_require__(52);\nvar isArguments = __webpack_require__(53);\n\nvar deepEqual = module.exports = function (actual, expected, opts) {\n  if (!opts) opts = {};\n  // 7.1. All identical values are equivalent, as determined by ===.\n  if (actual === expected) {\n    return true;\n\n  } else if (actual instanceof Date && expected instanceof Date) {\n    return actual.getTime() === expected.getTime();\n\n  // 7.3. Other pairs that do not both pass typeof value == 'object',\n  // equivalence is determined by ==.\n  } else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {\n    return opts.strict ? actual === expected : actual == expected;\n\n  // 7.4. For all other Object pairs, including Array objects, equivalence is\n  // determined by having the same number of owned properties (as verified\n  // with Object.prototype.hasOwnProperty.call), the same set of keys\n  // (although not necessarily the same order), equivalent values for every\n  // corresponding key, and an identical 'prototype' property. Note: this\n  // accounts for both named and indexed properties on Arrays.\n  } else {\n    return objEquiv(actual, expected, opts);\n  }\n}\n\nfunction isUndefinedOrNull(value) {\n  return value === null || value === undefined;\n}\n\nfunction isBuffer (x) {\n  if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;\n  if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {\n    return false;\n  }\n  if (x.length > 0 && typeof x[0] !== 'number') return false;\n  return true;\n}\n\nfunction objEquiv(a, b, opts) {\n  var i, key;\n  if (isUndefinedOrNull(a) || isUndefinedOrNull(b))\n    return false;\n  // an identical 'prototype' property.\n  if (a.prototype !== b.prototype) return false;\n  //~~~I've managed to break Object.keys through screwy arguments passing.\n  //   Converting to array solves the problem.\n  if (isArguments(a)) {\n    if (!isArguments(b)) {\n      return false;\n    }\n    a = pSlice.call(a);\n    b = pSlice.call(b);\n    return deepEqual(a, b, opts);\n  }\n  if (isBuffer(a)) {\n    if (!isBuffer(b)) {\n      return false;\n    }\n    if (a.length !== b.length) return false;\n    for (i = 0; i < a.length; i++) {\n      if (a[i] !== b[i]) return false;\n    }\n    return true;\n  }\n  try {\n    var ka = objectKeys(a),\n        kb = objectKeys(b);\n  } catch (e) {//happens when one is a string literal and the other isn't\n    return false;\n  }\n  // having the same number of owned properties (keys incorporates\n  // hasOwnProperty)\n  if (ka.length != kb.length)\n    return false;\n  //the same set of keys (although not necessarily the same order),\n  ka.sort();\n  kb.sort();\n  //~~~cheap key test\n  for (i = ka.length - 1; i >= 0; i--) {\n    if (ka[i] != kb[i])\n      return false;\n  }\n  //equivalent values for every corresponding key, and\n  //~~~possibly expensive deep test\n  for (i = ka.length - 1; i >= 0; i--) {\n    key = ka[i];\n    if (!deepEqual(a[key], b[key], opts)) return false;\n  }\n  return typeof a === typeof b;\n}\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Registry = __webpack_require__(1);\nvar Attributor = /** @class */ (function () {\n    function Attributor(attrName, keyName, options) {\n        if (options === void 0) { options = {}; }\n        this.attrName = attrName;\n        this.keyName = keyName;\n        var attributeBit = Registry.Scope.TYPE & Registry.Scope.ATTRIBUTE;\n        if (options.scope != null) {\n            // Ignore type bits, force attribute bit\n            this.scope = (options.scope & Registry.Scope.LEVEL) | attributeBit;\n        }\n        else {\n            this.scope = Registry.Scope.ATTRIBUTE;\n        }\n        if (options.whitelist != null)\n            this.whitelist = options.whitelist;\n    }\n    Attributor.keys = function (node) {\n        return [].map.call(node.attributes, function (item) {\n            return item.name;\n        });\n    };\n    Attributor.prototype.add = function (node, value) {\n        if (!this.canAdd(node, value))\n            return false;\n        node.setAttribute(this.keyName, value);\n        return true;\n    };\n    Attributor.prototype.canAdd = function (node, value) {\n        var match = Registry.query(node, Registry.Scope.BLOT & (this.scope | Registry.Scope.TYPE));\n        if (match == null)\n            return false;\n        if (this.whitelist == null)\n            return true;\n        if (typeof value === 'string') {\n            return this.whitelist.indexOf(value.replace(/[\"']/g, '')) > -1;\n        }\n        else {\n            return this.whitelist.indexOf(value) > -1;\n        }\n    };\n    Attributor.prototype.remove = function (node) {\n        node.removeAttribute(this.keyName);\n    };\n    Attributor.prototype.value = function (node) {\n        var value = node.getAttribute(this.keyName);\n        if (this.canAdd(node, value) && value) {\n            return value;\n        }\n        return '';\n    };\n    return Attributor;\n}());\nexports.default = Attributor;\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.Code = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Code = function (_Inline) {\n  _inherits(Code, _Inline);\n\n  function Code() {\n    _classCallCheck(this, Code);\n\n    return _possibleConstructorReturn(this, (Code.__proto__ || Object.getPrototypeOf(Code)).apply(this, arguments));\n  }\n\n  return Code;\n}(_inline2.default);\n\nCode.blotName = 'code';\nCode.tagName = 'CODE';\n\nvar CodeBlock = function (_Block) {\n  _inherits(CodeBlock, _Block);\n\n  function CodeBlock() {\n    _classCallCheck(this, CodeBlock);\n\n    return _possibleConstructorReturn(this, (CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock)).apply(this, arguments));\n  }\n\n  _createClass(CodeBlock, [{\n    key: 'delta',\n    value: function delta() {\n      var _this3 = this;\n\n      var text = this.domNode.textContent;\n      if (text.endsWith('\\n')) {\n        // Should always be true\n        text = text.slice(0, -1);\n      }\n      return text.split('\\n').reduce(function (delta, frag) {\n        return delta.insert(frag).insert('\\n', _this3.formats());\n      }, new _quillDelta2.default());\n    }\n  }, {\n    key: 'format',\n    value: function format(name, value) {\n      if (name === this.statics.blotName && value) return;\n\n      var _descendant = this.descendant(_text2.default, this.length() - 1),\n          _descendant2 = _slicedToArray(_descendant, 1),\n          text = _descendant2[0];\n\n      if (text != null) {\n        text.deleteAt(text.length() - 1, 1);\n      }\n      _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'format', this).call(this, name, value);\n    }\n  }, {\n    key: 'formatAt',\n    value: function formatAt(index, length, name, value) {\n      if (length === 0) return;\n      if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {\n        return;\n      }\n      var nextNewline = this.newlineIndex(index);\n      if (nextNewline < 0 || nextNewline >= index + length) return;\n      var prevNewline = this.newlineIndex(index, true) + 1;\n      var isolateLength = nextNewline - prevNewline + 1;\n      var blot = this.isolate(prevNewline, isolateLength);\n      var next = blot.next;\n      blot.format(name, value);\n      if (next instanceof CodeBlock) {\n        next.formatAt(0, index - prevNewline + length - isolateLength, name, value);\n      }\n    }\n  }, {\n    key: 'insertAt',\n    value: function insertAt(index, value, def) {\n      if (def != null) return;\n\n      var _descendant3 = this.descendant(_text2.default, index),\n          _descendant4 = _slicedToArray(_descendant3, 2),\n          text = _descendant4[0],\n          offset = _descendant4[1];\n\n      text.insertAt(offset, value);\n    }\n  }, {\n    key: 'length',\n    value: function length() {\n      var length = this.domNode.textContent.length;\n      if (!this.domNode.textContent.endsWith('\\n')) {\n        return length + 1;\n      }\n      return length;\n    }\n  }, {\n    key: 'newlineIndex',\n    value: function newlineIndex(searchIndex) {\n      var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n      if (!reverse) {\n        var offset = this.domNode.textContent.slice(searchIndex).indexOf('\\n');\n        return offset > -1 ? searchIndex + offset : -1;\n      } else {\n        return this.domNode.textContent.slice(0, searchIndex).lastIndexOf('\\n');\n      }\n    }\n  }, {\n    key: 'optimize',\n    value: function optimize(context) {\n      if (!this.domNode.textContent.endsWith('\\n')) {\n        this.appendChild(_parchment2.default.create('text', '\\n'));\n      }\n      _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'optimize', this).call(this, context);\n      var next = this.next;\n      if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === next.statics.formats(next.domNode)) {\n        next.optimize(context);\n        next.moveChildren(this);\n        next.remove();\n      }\n    }\n  }, {\n    key: 'replace',\n    value: function replace(target) {\n      _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'replace', this).call(this, target);\n      [].slice.call(this.domNode.querySelectorAll('*')).forEach(function (node) {\n        var blot = _parchment2.default.find(node);\n        if (blot == null) {\n          node.parentNode.removeChild(node);\n        } else if (blot instanceof _parchment2.default.Embed) {\n          blot.remove();\n        } else {\n          blot.unwrap();\n        }\n      });\n    }\n  }], [{\n    key: 'create',\n    value: function create(value) {\n      var domNode = _get(CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock), 'create', this).call(this, value);\n      domNode.setAttribute('spellcheck', false);\n      return domNode;\n    }\n  }, {\n    key: 'formats',\n    value: function formats() {\n      return true;\n    }\n  }]);\n\n  return CodeBlock;\n}(_block2.default);\n\nCodeBlock.blotName = 'code-block';\nCodeBlock.tagName = 'PRE';\nCodeBlock.TAB = '  ';\n\nexports.Code = Code;\nexports.default = CodeBlock;\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _op = __webpack_require__(20);\n\nvar _op2 = _interopRequireDefault(_op);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _code = __webpack_require__(13);\n\nvar _code2 = _interopRequireDefault(_code);\n\nvar _cursor = __webpack_require__(24);\n\nvar _cursor2 = _interopRequireDefault(_cursor);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nvar _break = __webpack_require__(16);\n\nvar _break2 = _interopRequireDefault(_break);\n\nvar _clone = __webpack_require__(21);\n\nvar _clone2 = _interopRequireDefault(_clone);\n\nvar _deepEqual = __webpack_require__(11);\n\nvar _deepEqual2 = _interopRequireDefault(_deepEqual);\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar ASCII = /^[ -~]*$/;\n\nvar Editor = function () {\n  function Editor(scroll) {\n    _classCallCheck(this, Editor);\n\n    this.scroll = scroll;\n    this.delta = this.getDelta();\n  }\n\n  _createClass(Editor, [{\n    key: 'applyDelta',\n    value: function applyDelta(delta) {\n      var _this = this;\n\n      var consumeNextNewline = false;\n      this.scroll.update();\n      var scrollLength = this.scroll.length();\n      this.scroll.batchStart();\n      delta = normalizeDelta(delta);\n      delta.reduce(function (index, op) {\n        var length = op.retain || op.delete || op.insert.length || 1;\n        var attributes = op.attributes || {};\n        if (op.insert != null) {\n          if (typeof op.insert === 'string') {\n            var text = op.insert;\n            if (text.endsWith('\\n') && consumeNextNewline) {\n              consumeNextNewline = false;\n              text = text.slice(0, -1);\n            }\n            if (index >= scrollLength && !text.endsWith('\\n')) {\n              consumeNextNewline = true;\n            }\n            _this.scroll.insertAt(index, text);\n\n            var _scroll$line = _this.scroll.line(index),\n                _scroll$line2 = _slicedToArray(_scroll$line, 2),\n                line = _scroll$line2[0],\n                offset = _scroll$line2[1];\n\n            var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));\n            if (line instanceof _block2.default) {\n              var _line$descendant = line.descendant(_parchment2.default.Leaf, offset),\n                  _line$descendant2 = _slicedToArray(_line$descendant, 1),\n                  leaf = _line$descendant2[0];\n\n              formats = (0, _extend2.default)(formats, (0, _block.bubbleFormats)(leaf));\n            }\n            attributes = _op2.default.attributes.diff(formats, attributes) || {};\n          } else if (_typeof(op.insert) === 'object') {\n            var key = Object.keys(op.insert)[0]; // There should only be one key\n            if (key == null) return index;\n            _this.scroll.insertAt(index, key, op.insert[key]);\n          }\n          scrollLength += length;\n        }\n        Object.keys(attributes).forEach(function (name) {\n          _this.scroll.formatAt(index, length, name, attributes[name]);\n        });\n        return index + length;\n      }, 0);\n      delta.reduce(function (index, op) {\n        if (typeof op.delete === 'number') {\n          _this.scroll.deleteAt(index, op.delete);\n          return index;\n        }\n        return index + (op.retain || op.insert.length || 1);\n      }, 0);\n      this.scroll.batchEnd();\n      return this.update(delta);\n    }\n  }, {\n    key: 'deleteText',\n    value: function deleteText(index, length) {\n      this.scroll.deleteAt(index, length);\n      return this.update(new _quillDelta2.default().retain(index).delete(length));\n    }\n  }, {\n    key: 'formatLine',\n    value: function formatLine(index, length) {\n      var _this2 = this;\n\n      var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n      this.scroll.update();\n      Object.keys(formats).forEach(function (format) {\n        if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format]) return;\n        var lines = _this2.scroll.lines(index, Math.max(length, 1));\n        var lengthRemaining = length;\n        lines.forEach(function (line) {\n          var lineLength = line.length();\n          if (!(line instanceof _code2.default)) {\n            line.format(format, formats[format]);\n          } else {\n            var codeIndex = index - line.offset(_this2.scroll);\n            var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;\n            line.formatAt(codeIndex, codeLength, format, formats[format]);\n          }\n          lengthRemaining -= lineLength;\n        });\n      });\n      this.scroll.optimize();\n      return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));\n    }\n  }, {\n    key: 'formatText',\n    value: function formatText(index, length) {\n      var _this3 = this;\n\n      var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n      Object.keys(formats).forEach(function (format) {\n        _this3.scroll.formatAt(index, length, format, formats[format]);\n      });\n      return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));\n    }\n  }, {\n    key: 'getContents',\n    value: function getContents(index, length) {\n      return this.delta.slice(index, index + length);\n    }\n  }, {\n    key: 'getDelta',\n    value: function getDelta() {\n      return this.scroll.lines().reduce(function (delta, line) {\n        return delta.concat(line.delta());\n      }, new _quillDelta2.default());\n    }\n  }, {\n    key: 'getFormat',\n    value: function getFormat(index) {\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n      var lines = [],\n          leaves = [];\n      if (length === 0) {\n        this.scroll.path(index).forEach(function (path) {\n          var _path = _slicedToArray(path, 1),\n              blot = _path[0];\n\n          if (blot instanceof _block2.default) {\n            lines.push(blot);\n          } else if (blot instanceof _parchment2.default.Leaf) {\n            leaves.push(blot);\n          }\n        });\n      } else {\n        lines = this.scroll.lines(index, length);\n        leaves = this.scroll.descendants(_parchment2.default.Leaf, index, length);\n      }\n      var formatsArr = [lines, leaves].map(function (blots) {\n        if (blots.length === 0) return {};\n        var formats = (0, _block.bubbleFormats)(blots.shift());\n        while (Object.keys(formats).length > 0) {\n          var blot = blots.shift();\n          if (blot == null) return formats;\n          formats = combineFormats((0, _block.bubbleFormats)(blot), formats);\n        }\n        return formats;\n      });\n      return _extend2.default.apply(_extend2.default, formatsArr);\n    }\n  }, {\n    key: 'getText',\n    value: function getText(index, length) {\n      return this.getContents(index, length).filter(function (op) {\n        return typeof op.insert === 'string';\n      }).map(function (op) {\n        return op.insert;\n      }).join('');\n    }\n  }, {\n    key: 'insertEmbed',\n    value: function insertEmbed(index, embed, value) {\n      this.scroll.insertAt(index, embed, value);\n      return this.update(new _quillDelta2.default().retain(index).insert(_defineProperty({}, embed, value)));\n    }\n  }, {\n    key: 'insertText',\n    value: function insertText(index, text) {\n      var _this4 = this;\n\n      var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n      text = text.replace(/\\r\\n/g, '\\n').replace(/\\r/g, '\\n');\n      this.scroll.insertAt(index, text);\n      Object.keys(formats).forEach(function (format) {\n        _this4.scroll.formatAt(index, text.length, format, formats[format]);\n      });\n      return this.update(new _quillDelta2.default().retain(index).insert(text, (0, _clone2.default)(formats)));\n    }\n  }, {\n    key: 'isBlank',\n    value: function isBlank() {\n      if (this.scroll.children.length == 0) return true;\n      if (this.scroll.children.length > 1) return false;\n      var block = this.scroll.children.head;\n      if (block.statics.blotName !== _block2.default.blotName) return false;\n      if (block.children.length > 1) return false;\n      return block.children.head instanceof _break2.default;\n    }\n  }, {\n    key: 'removeFormat',\n    value: function removeFormat(index, length) {\n      var text = this.getText(index, length);\n\n      var _scroll$line3 = this.scroll.line(index + length),\n          _scroll$line4 = _slicedToArray(_scroll$line3, 2),\n          line = _scroll$line4[0],\n          offset = _scroll$line4[1];\n\n      var suffixLength = 0,\n          suffix = new _quillDelta2.default();\n      if (line != null) {\n        if (!(line instanceof _code2.default)) {\n          suffixLength = line.length() - offset;\n        } else {\n          suffixLength = line.newlineIndex(offset) - offset + 1;\n        }\n        suffix = line.delta().slice(offset, offset + suffixLength - 1).insert('\\n');\n      }\n      var contents = this.getContents(index, length + suffixLength);\n      var diff = contents.diff(new _quillDelta2.default().insert(text).concat(suffix));\n      var delta = new _quillDelta2.default().retain(index).concat(diff);\n      return this.applyDelta(delta);\n    }\n  }, {\n    key: 'update',\n    value: function update(change) {\n      var mutations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n      var cursorIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n\n      var oldDelta = this.delta;\n      if (mutations.length === 1 && mutations[0].type === 'characterData' && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {\n        // Optimization for character changes\n        var textBlot = _parchment2.default.find(mutations[0].target);\n        var formats = (0, _block.bubbleFormats)(textBlot);\n        var index = textBlot.offset(this.scroll);\n        var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, '');\n        var oldText = new _quillDelta2.default().insert(oldValue);\n        var newText = new _quillDelta2.default().insert(textBlot.value());\n        var diffDelta = new _quillDelta2.default().retain(index).concat(oldText.diff(newText, cursorIndex));\n        change = diffDelta.reduce(function (delta, op) {\n          if (op.insert) {\n            return delta.insert(op.insert, formats);\n          } else {\n            return delta.push(op);\n          }\n        }, new _quillDelta2.default());\n        this.delta = oldDelta.compose(change);\n      } else {\n        this.delta = this.getDelta();\n        if (!change || !(0, _deepEqual2.default)(oldDelta.compose(change), this.delta)) {\n          change = oldDelta.diff(this.delta, cursorIndex);\n        }\n      }\n      return change;\n    }\n  }]);\n\n  return Editor;\n}();\n\nfunction combineFormats(formats, combined) {\n  return Object.keys(combined).reduce(function (merged, name) {\n    if (formats[name] == null) return merged;\n    if (combined[name] === formats[name]) {\n      merged[name] = combined[name];\n    } else if (Array.isArray(combined[name])) {\n      if (combined[name].indexOf(formats[name]) < 0) {\n        merged[name] = combined[name].concat([formats[name]]);\n      }\n    } else {\n      merged[name] = [combined[name], formats[name]];\n    }\n    return merged;\n  }, {});\n}\n\nfunction normalizeDelta(delta) {\n  return delta.reduce(function (delta, op) {\n    if (op.insert === 1) {\n      var attributes = (0, _clone2.default)(op.attributes);\n      delete attributes['image'];\n      return delta.insert({ image: op.attributes.image }, attributes);\n    }\n    if (op.attributes != null && (op.attributes.list === true || op.attributes.bullet === true)) {\n      op = (0, _clone2.default)(op);\n      if (op.attributes.list) {\n        op.attributes.list = 'ordered';\n      } else {\n        op.attributes.list = 'bullet';\n        delete op.attributes.bullet;\n      }\n    }\n    if (typeof op.insert === 'string') {\n      var text = op.insert.replace(/\\r\\n/g, '\\n').replace(/\\r/g, '\\n');\n      return delta.insert(text, op.attributes);\n    }\n    return delta.push(op);\n  }, new _quillDelta2.default());\n}\n\nexports.default = Editor;\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.Range = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _clone = __webpack_require__(21);\n\nvar _clone2 = _interopRequireDefault(_clone);\n\nvar _deepEqual = __webpack_require__(11);\n\nvar _deepEqual2 = _interopRequireDefault(_deepEqual);\n\nvar _emitter3 = __webpack_require__(8);\n\nvar _emitter4 = _interopRequireDefault(_emitter3);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar debug = (0, _logger2.default)('quill:selection');\n\nvar Range = function Range(index) {\n  var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n  _classCallCheck(this, Range);\n\n  this.index = index;\n  this.length = length;\n};\n\nvar Selection = function () {\n  function Selection(scroll, emitter) {\n    var _this = this;\n\n    _classCallCheck(this, Selection);\n\n    this.emitter = emitter;\n    this.scroll = scroll;\n    this.composing = false;\n    this.mouseDown = false;\n    this.root = this.scroll.domNode;\n    this.cursor = _parchment2.default.create('cursor', this);\n    // savedRange is last non-null range\n    this.lastRange = this.savedRange = new Range(0, 0);\n    this.handleComposition();\n    this.handleDragging();\n    this.emitter.listenDOM('selectionchange', document, function () {\n      if (!_this.mouseDown) {\n        setTimeout(_this.update.bind(_this, _emitter4.default.sources.USER), 1);\n      }\n    });\n    this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type, delta) {\n      if (type === _emitter4.default.events.TEXT_CHANGE && delta.length() > 0) {\n        _this.update(_emitter4.default.sources.SILENT);\n      }\n    });\n    this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE, function () {\n      if (!_this.hasFocus()) return;\n      var native = _this.getNativeRange();\n      if (native == null) return;\n      if (native.start.node === _this.cursor.textNode) return; // cursor.restore() will handle\n      // TODO unclear if this has negative side effects\n      _this.emitter.once(_emitter4.default.events.SCROLL_UPDATE, function () {\n        try {\n          _this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);\n        } catch (ignored) {}\n      });\n    });\n    this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE, function (mutations, context) {\n      if (context.range) {\n        var _context$range = context.range,\n            startNode = _context$range.startNode,\n            startOffset = _context$range.startOffset,\n            endNode = _context$range.endNode,\n            endOffset = _context$range.endOffset;\n\n        _this.setNativeRange(startNode, startOffset, endNode, endOffset);\n      }\n    });\n    this.update(_emitter4.default.sources.SILENT);\n  }\n\n  _createClass(Selection, [{\n    key: 'handleComposition',\n    value: function handleComposition() {\n      var _this2 = this;\n\n      this.root.addEventListener('compositionstart', function () {\n        _this2.composing = true;\n      });\n      this.root.addEventListener('compositionend', function () {\n        _this2.composing = false;\n        if (_this2.cursor.parent) {\n          var range = _this2.cursor.restore();\n          if (!range) return;\n          setTimeout(function () {\n            _this2.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);\n          }, 1);\n        }\n      });\n    }\n  }, {\n    key: 'handleDragging',\n    value: function handleDragging() {\n      var _this3 = this;\n\n      this.emitter.listenDOM('mousedown', document.body, function () {\n        _this3.mouseDown = true;\n      });\n      this.emitter.listenDOM('mouseup', document.body, function () {\n        _this3.mouseDown = false;\n        _this3.update(_emitter4.default.sources.USER);\n      });\n    }\n  }, {\n    key: 'focus',\n    value: function focus() {\n      if (this.hasFocus()) return;\n      this.root.focus();\n      this.setRange(this.savedRange);\n    }\n  }, {\n    key: 'format',\n    value: function format(_format, value) {\n      if (this.scroll.whitelist != null && !this.scroll.whitelist[_format]) return;\n      this.scroll.update();\n      var nativeRange = this.getNativeRange();\n      if (nativeRange == null || !nativeRange.native.collapsed || _parchment2.default.query(_format, _parchment2.default.Scope.BLOCK)) return;\n      if (nativeRange.start.node !== this.cursor.textNode) {\n        var blot = _parchment2.default.find(nativeRange.start.node, false);\n        if (blot == null) return;\n        // TODO Give blot ability to not split\n        if (blot instanceof _parchment2.default.Leaf) {\n          var after = blot.split(nativeRange.start.offset);\n          blot.parent.insertBefore(this.cursor, after);\n        } else {\n          blot.insertBefore(this.cursor, nativeRange.start.node); // Should never happen\n        }\n        this.cursor.attach();\n      }\n      this.cursor.format(_format, value);\n      this.scroll.optimize();\n      this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);\n      this.update();\n    }\n  }, {\n    key: 'getBounds',\n    value: function getBounds(index) {\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n      var scrollLength = this.scroll.length();\n      index = Math.min(index, scrollLength - 1);\n      length = Math.min(index + length, scrollLength - 1) - index;\n      var node = void 0,\n          _scroll$leaf = this.scroll.leaf(index),\n          _scroll$leaf2 = _slicedToArray(_scroll$leaf, 2),\n          leaf = _scroll$leaf2[0],\n          offset = _scroll$leaf2[1];\n      if (leaf == null) return null;\n\n      var _leaf$position = leaf.position(offset, true);\n\n      var _leaf$position2 = _slicedToArray(_leaf$position, 2);\n\n      node = _leaf$position2[0];\n      offset = _leaf$position2[1];\n\n      var range = document.createRange();\n      if (length > 0) {\n        range.setStart(node, offset);\n\n        var _scroll$leaf3 = this.scroll.leaf(index + length);\n\n        var _scroll$leaf4 = _slicedToArray(_scroll$leaf3, 2);\n\n        leaf = _scroll$leaf4[0];\n        offset = _scroll$leaf4[1];\n\n        if (leaf == null) return null;\n\n        var _leaf$position3 = leaf.position(offset, true);\n\n        var _leaf$position4 = _slicedToArray(_leaf$position3, 2);\n\n        node = _leaf$position4[0];\n        offset = _leaf$position4[1];\n\n        range.setEnd(node, offset);\n        return range.getBoundingClientRect();\n      } else {\n        var side = 'left';\n        var rect = void 0;\n        if (node instanceof Text) {\n          if (offset < node.data.length) {\n            range.setStart(node, offset);\n            range.setEnd(node, offset + 1);\n          } else {\n            range.setStart(node, offset - 1);\n            range.setEnd(node, offset);\n            side = 'right';\n          }\n          rect = range.getBoundingClientRect();\n        } else {\n          rect = leaf.domNode.getBoundingClientRect();\n          if (offset > 0) side = 'right';\n        }\n        return {\n          bottom: rect.top + rect.height,\n          height: rect.height,\n          left: rect[side],\n          right: rect[side],\n          top: rect.top,\n          width: 0\n        };\n      }\n    }\n  }, {\n    key: 'getNativeRange',\n    value: function getNativeRange() {\n      var selection = document.getSelection();\n      if (selection == null || selection.rangeCount <= 0) return null;\n      var nativeRange = selection.getRangeAt(0);\n      if (nativeRange == null) return null;\n      var range = this.normalizeNative(nativeRange);\n      debug.info('getNativeRange', range);\n      return range;\n    }\n  }, {\n    key: 'getRange',\n    value: function getRange() {\n      var normalized = this.getNativeRange();\n      if (normalized == null) return [null, null];\n      var range = this.normalizedToRange(normalized);\n      return [range, normalized];\n    }\n  }, {\n    key: 'hasFocus',\n    value: function hasFocus() {\n      return document.activeElement === this.root;\n    }\n  }, {\n    key: 'normalizedToRange',\n    value: function normalizedToRange(range) {\n      var _this4 = this;\n\n      var positions = [[range.start.node, range.start.offset]];\n      if (!range.native.collapsed) {\n        positions.push([range.end.node, range.end.offset]);\n      }\n      var indexes = positions.map(function (position) {\n        var _position = _slicedToArray(position, 2),\n            node = _position[0],\n            offset = _position[1];\n\n        var blot = _parchment2.default.find(node, true);\n        var index = blot.offset(_this4.scroll);\n        if (offset === 0) {\n          return index;\n        } else if (blot instanceof _parchment2.default.Container) {\n          return index + blot.length();\n        } else {\n          return index + blot.index(node, offset);\n        }\n      });\n      var end = Math.min(Math.max.apply(Math, _toConsumableArray(indexes)), this.scroll.length() - 1);\n      var start = Math.min.apply(Math, [end].concat(_toConsumableArray(indexes)));\n      return new Range(start, end - start);\n    }\n  }, {\n    key: 'normalizeNative',\n    value: function normalizeNative(nativeRange) {\n      if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {\n        return null;\n      }\n      var range = {\n        start: { node: nativeRange.startContainer, offset: nativeRange.startOffset },\n        end: { node: nativeRange.endContainer, offset: nativeRange.endOffset },\n        native: nativeRange\n      };\n      [range.start, range.end].forEach(function (position) {\n        var node = position.node,\n            offset = position.offset;\n        while (!(node instanceof Text) && node.childNodes.length > 0) {\n          if (node.childNodes.length > offset) {\n            node = node.childNodes[offset];\n            offset = 0;\n          } else if (node.childNodes.length === offset) {\n            node = node.lastChild;\n            offset = node instanceof Text ? node.data.length : node.childNodes.length + 1;\n          } else {\n            break;\n          }\n        }\n        position.node = node, position.offset = offset;\n      });\n      return range;\n    }\n  }, {\n    key: 'rangeToNative',\n    value: function rangeToNative(range) {\n      var _this5 = this;\n\n      var indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];\n      var args = [];\n      var scrollLength = this.scroll.length();\n      indexes.forEach(function (index, i) {\n        index = Math.min(scrollLength - 1, index);\n        var node = void 0,\n            _scroll$leaf5 = _this5.scroll.leaf(index),\n            _scroll$leaf6 = _slicedToArray(_scroll$leaf5, 2),\n            leaf = _scroll$leaf6[0],\n            offset = _scroll$leaf6[1];\n        var _leaf$position5 = leaf.position(offset, i !== 0);\n\n        var _leaf$position6 = _slicedToArray(_leaf$position5, 2);\n\n        node = _leaf$position6[0];\n        offset = _leaf$position6[1];\n\n        args.push(node, offset);\n      });\n      if (args.length < 2) {\n        args = args.concat(args);\n      }\n      return args;\n    }\n  }, {\n    key: 'scrollIntoView',\n    value: function scrollIntoView(scrollingContainer) {\n      var range = this.lastRange;\n      if (range == null) return;\n      var bounds = this.getBounds(range.index, range.length);\n      if (bounds == null) return;\n      var limit = this.scroll.length() - 1;\n\n      var _scroll$line = this.scroll.line(Math.min(range.index, limit)),\n          _scroll$line2 = _slicedToArray(_scroll$line, 1),\n          first = _scroll$line2[0];\n\n      var last = first;\n      if (range.length > 0) {\n        var _scroll$line3 = this.scroll.line(Math.min(range.index + range.length, limit));\n\n        var _scroll$line4 = _slicedToArray(_scroll$line3, 1);\n\n        last = _scroll$line4[0];\n      }\n      if (first == null || last == null) return;\n      var scrollBounds = scrollingContainer.getBoundingClientRect();\n      if (bounds.top < scrollBounds.top) {\n        scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;\n      } else if (bounds.bottom > scrollBounds.bottom) {\n        scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;\n      }\n    }\n  }, {\n    key: 'setNativeRange',\n    value: function setNativeRange(startNode, startOffset) {\n      var endNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : startNode;\n      var endOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : startOffset;\n      var force = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n      debug.info('setNativeRange', startNode, startOffset, endNode, endOffset);\n      if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {\n        return;\n      }\n      var selection = document.getSelection();\n      if (selection == null) return;\n      if (startNode != null) {\n        if (!this.hasFocus()) this.root.focus();\n        var native = (this.getNativeRange() || {}).native;\n        if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {\n\n          if (startNode.tagName == \"BR\") {\n            startOffset = [].indexOf.call(startNode.parentNode.childNodes, startNode);\n            startNode = startNode.parentNode;\n          }\n          if (endNode.tagName == \"BR\") {\n            endOffset = [].indexOf.call(endNode.parentNode.childNodes, endNode);\n            endNode = endNode.parentNode;\n          }\n          var range = document.createRange();\n          range.setStart(startNode, startOffset);\n          range.setEnd(endNode, endOffset);\n          selection.removeAllRanges();\n          selection.addRange(range);\n        }\n      } else {\n        selection.removeAllRanges();\n        this.root.blur();\n        document.body.focus(); // root.blur() not enough on IE11+Travis+SauceLabs (but not local VMs)\n      }\n    }\n  }, {\n    key: 'setRange',\n    value: function setRange(range) {\n      var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n      var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;\n\n      if (typeof force === 'string') {\n        source = force;\n        force = false;\n      }\n      debug.info('setRange', range);\n      if (range != null) {\n        var args = this.rangeToNative(range);\n        this.setNativeRange.apply(this, _toConsumableArray(args).concat([force]));\n      } else {\n        this.setNativeRange(null);\n      }\n      this.update(source);\n    }\n  }, {\n    key: 'update',\n    value: function update() {\n      var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;\n\n      var oldRange = this.lastRange;\n\n      var _getRange = this.getRange(),\n          _getRange2 = _slicedToArray(_getRange, 2),\n          lastRange = _getRange2[0],\n          nativeRange = _getRange2[1];\n\n      this.lastRange = lastRange;\n      if (this.lastRange != null) {\n        this.savedRange = this.lastRange;\n      }\n      if (!(0, _deepEqual2.default)(oldRange, this.lastRange)) {\n        var _emitter;\n\n        if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {\n          this.cursor.restore();\n        }\n        var args = [_emitter4.default.events.SELECTION_CHANGE, (0, _clone2.default)(this.lastRange), (0, _clone2.default)(oldRange), source];\n        (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));\n        if (source !== _emitter4.default.sources.SILENT) {\n          var _emitter2;\n\n          (_emitter2 = this.emitter).emit.apply(_emitter2, args);\n        }\n      }\n    }\n  }]);\n\n  return Selection;\n}();\n\nfunction contains(parent, descendant) {\n  try {\n    // Firefox inserts inaccessible nodes around video elements\n    descendant.parentNode;\n  } catch (e) {\n    return false;\n  }\n  // IE11 has bug with Text nodes\n  // https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrect\n  if (descendant instanceof Text) {\n    descendant = descendant.parentNode;\n  }\n  return parent.contains(descendant);\n}\n\nexports.Range = Range;\nexports.default = Selection;\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Break = function (_Parchment$Embed) {\n  _inherits(Break, _Parchment$Embed);\n\n  function Break() {\n    _classCallCheck(this, Break);\n\n    return _possibleConstructorReturn(this, (Break.__proto__ || Object.getPrototypeOf(Break)).apply(this, arguments));\n  }\n\n  _createClass(Break, [{\n    key: 'insertInto',\n    value: function insertInto(parent, ref) {\n      if (parent.children.length === 0) {\n        _get(Break.prototype.__proto__ || Object.getPrototypeOf(Break.prototype), 'insertInto', this).call(this, parent, ref);\n      } else {\n        this.remove();\n      }\n    }\n  }, {\n    key: 'length',\n    value: function length() {\n      return 0;\n    }\n  }, {\n    key: 'value',\n    value: function value() {\n      return '';\n    }\n  }], [{\n    key: 'value',\n    value: function value() {\n      return undefined;\n    }\n  }]);\n\n  return Break;\n}(_parchment2.default.Embed);\n\nBreak.blotName = 'break';\nBreak.tagName = 'BR';\n\nexports.default = Break;\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar linked_list_1 = __webpack_require__(44);\nvar shadow_1 = __webpack_require__(30);\nvar Registry = __webpack_require__(1);\nvar ContainerBlot = /** @class */ (function (_super) {\n    __extends(ContainerBlot, _super);\n    function ContainerBlot(domNode) {\n        var _this = _super.call(this, domNode) || this;\n        _this.build();\n        return _this;\n    }\n    ContainerBlot.prototype.appendChild = function (other) {\n        this.insertBefore(other);\n    };\n    ContainerBlot.prototype.attach = function () {\n        _super.prototype.attach.call(this);\n        this.children.forEach(function (child) {\n            child.attach();\n        });\n    };\n    ContainerBlot.prototype.build = function () {\n        var _this = this;\n        this.children = new linked_list_1.default();\n        // Need to be reversed for if DOM nodes already in order\n        [].slice\n            .call(this.domNode.childNodes)\n            .reverse()\n            .forEach(function (node) {\n            try {\n                var child = makeBlot(node);\n                _this.insertBefore(child, _this.children.head || undefined);\n            }\n            catch (err) {\n                if (err instanceof Registry.ParchmentError)\n                    return;\n                else\n                    throw err;\n            }\n        });\n    };\n    ContainerBlot.prototype.deleteAt = function (index, length) {\n        if (index === 0 && length === this.length()) {\n            return this.remove();\n        }\n        this.children.forEachAt(index, length, function (child, offset, length) {\n            child.deleteAt(offset, length);\n        });\n    };\n    ContainerBlot.prototype.descendant = function (criteria, index) {\n        var _a = this.children.find(index), child = _a[0], offset = _a[1];\n        if ((criteria.blotName == null && criteria(child)) ||\n            (criteria.blotName != null && child instanceof criteria)) {\n            return [child, offset];\n        }\n        else if (child instanceof ContainerBlot) {\n            return child.descendant(criteria, offset);\n        }\n        else {\n            return [null, -1];\n        }\n    };\n    ContainerBlot.prototype.descendants = function (criteria, index, length) {\n        if (index === void 0) { index = 0; }\n        if (length === void 0) { length = Number.MAX_VALUE; }\n        var descendants = [];\n        var lengthLeft = length;\n        this.children.forEachAt(index, length, function (child, index, length) {\n            if ((criteria.blotName == null && criteria(child)) ||\n                (criteria.blotName != null && child instanceof criteria)) {\n                descendants.push(child);\n            }\n            if (child instanceof ContainerBlot) {\n                descendants = descendants.concat(child.descendants(criteria, index, lengthLeft));\n            }\n            lengthLeft -= length;\n        });\n        return descendants;\n    };\n    ContainerBlot.prototype.detach = function () {\n        this.children.forEach(function (child) {\n            child.detach();\n        });\n        _super.prototype.detach.call(this);\n    };\n    ContainerBlot.prototype.formatAt = function (index, length, name, value) {\n        this.children.forEachAt(index, length, function (child, offset, length) {\n            child.formatAt(offset, length, name, value);\n        });\n    };\n    ContainerBlot.prototype.insertAt = function (index, value, def) {\n        var _a = this.children.find(index), child = _a[0], offset = _a[1];\n        if (child) {\n            child.insertAt(offset, value, def);\n        }\n        else {\n            var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);\n            this.appendChild(blot);\n        }\n    };\n    ContainerBlot.prototype.insertBefore = function (childBlot, refBlot) {\n        if (this.statics.allowedChildren != null &&\n            !this.statics.allowedChildren.some(function (child) {\n                return childBlot instanceof child;\n            })) {\n            throw new Registry.ParchmentError(\"Cannot insert \" + childBlot.statics.blotName + \" into \" + this.statics.blotName);\n        }\n        childBlot.insertInto(this, refBlot);\n    };\n    ContainerBlot.prototype.length = function () {\n        return this.children.reduce(function (memo, child) {\n            return memo + child.length();\n        }, 0);\n    };\n    ContainerBlot.prototype.moveChildren = function (targetParent, refNode) {\n        this.children.forEach(function (child) {\n            targetParent.insertBefore(child, refNode);\n        });\n    };\n    ContainerBlot.prototype.optimize = function (context) {\n        _super.prototype.optimize.call(this, context);\n        if (this.children.length === 0) {\n            if (this.statics.defaultChild != null) {\n                var child = Registry.create(this.statics.defaultChild);\n                this.appendChild(child);\n                child.optimize(context);\n            }\n            else {\n                this.remove();\n            }\n        }\n    };\n    ContainerBlot.prototype.path = function (index, inclusive) {\n        if (inclusive === void 0) { inclusive = false; }\n        var _a = this.children.find(index, inclusive), child = _a[0], offset = _a[1];\n        var position = [[this, index]];\n        if (child instanceof ContainerBlot) {\n            return position.concat(child.path(offset, inclusive));\n        }\n        else if (child != null) {\n            position.push([child, offset]);\n        }\n        return position;\n    };\n    ContainerBlot.prototype.removeChild = function (child) {\n        this.children.remove(child);\n    };\n    ContainerBlot.prototype.replace = function (target) {\n        if (target instanceof ContainerBlot) {\n            target.moveChildren(this);\n        }\n        _super.prototype.replace.call(this, target);\n    };\n    ContainerBlot.prototype.split = function (index, force) {\n        if (force === void 0) { force = false; }\n        if (!force) {\n            if (index === 0)\n                return this;\n            if (index === this.length())\n                return this.next;\n        }\n        var after = this.clone();\n        this.parent.insertBefore(after, this.next);\n        this.children.forEachAt(index, this.length(), function (child, offset, length) {\n            child = child.split(offset, force);\n            after.appendChild(child);\n        });\n        return after;\n    };\n    ContainerBlot.prototype.unwrap = function () {\n        this.moveChildren(this.parent, this.next);\n        this.remove();\n    };\n    ContainerBlot.prototype.update = function (mutations, context) {\n        var _this = this;\n        var addedNodes = [];\n        var removedNodes = [];\n        mutations.forEach(function (mutation) {\n            if (mutation.target === _this.domNode && mutation.type === 'childList') {\n                addedNodes.push.apply(addedNodes, mutation.addedNodes);\n                removedNodes.push.apply(removedNodes, mutation.removedNodes);\n            }\n        });\n        removedNodes.forEach(function (node) {\n            // Check node has actually been removed\n            // One exception is Chrome does not immediately remove IFRAMEs\n            // from DOM but MutationRecord is correct in its reported removal\n            if (node.parentNode != null &&\n                // @ts-ignore\n                node.tagName !== 'IFRAME' &&\n                document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n                return;\n            }\n            var blot = Registry.find(node);\n            if (blot == null)\n                return;\n            if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {\n                blot.detach();\n            }\n        });\n        addedNodes\n            .filter(function (node) {\n            return node.parentNode == _this.domNode;\n        })\n            .sort(function (a, b) {\n            if (a === b)\n                return 0;\n            if (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) {\n                return 1;\n            }\n            return -1;\n        })\n            .forEach(function (node) {\n            var refBlot = null;\n            if (node.nextSibling != null) {\n                refBlot = Registry.find(node.nextSibling);\n            }\n            var blot = makeBlot(node);\n            if (blot.next != refBlot || blot.next == null) {\n                if (blot.parent != null) {\n                    blot.parent.removeChild(_this);\n                }\n                _this.insertBefore(blot, refBlot || undefined);\n            }\n        });\n    };\n    return ContainerBlot;\n}(shadow_1.default));\nfunction makeBlot(node) {\n    var blot = Registry.find(node);\n    if (blot == null) {\n        try {\n            blot = Registry.create(node);\n        }\n        catch (e) {\n            blot = Registry.create(Registry.Scope.INLINE);\n            [].slice.call(node.childNodes).forEach(function (child) {\n                // @ts-ignore\n                blot.domNode.appendChild(child);\n            });\n            if (node.parentNode) {\n                node.parentNode.replaceChild(blot.domNode, node);\n            }\n            blot.attach();\n        }\n    }\n    return blot;\n}\nexports.default = ContainerBlot;\n\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar attributor_1 = __webpack_require__(12);\nvar store_1 = __webpack_require__(31);\nvar container_1 = __webpack_require__(17);\nvar Registry = __webpack_require__(1);\nvar FormatBlot = /** @class */ (function (_super) {\n    __extends(FormatBlot, _super);\n    function FormatBlot(domNode) {\n        var _this = _super.call(this, domNode) || this;\n        _this.attributes = new store_1.default(_this.domNode);\n        return _this;\n    }\n    FormatBlot.formats = function (domNode) {\n        if (typeof this.tagName === 'string') {\n            return true;\n        }\n        else if (Array.isArray(this.tagName)) {\n            return domNode.tagName.toLowerCase();\n        }\n        return undefined;\n    };\n    FormatBlot.prototype.format = function (name, value) {\n        var format = Registry.query(name);\n        if (format instanceof attributor_1.default) {\n            this.attributes.attribute(format, value);\n        }\n        else if (value) {\n            if (format != null && (name !== this.statics.blotName || this.formats()[name] !== value)) {\n                this.replaceWith(name, value);\n            }\n        }\n    };\n    FormatBlot.prototype.formats = function () {\n        var formats = this.attributes.values();\n        var format = this.statics.formats(this.domNode);\n        if (format != null) {\n            formats[this.statics.blotName] = format;\n        }\n        return formats;\n    };\n    FormatBlot.prototype.replaceWith = function (name, value) {\n        var replacement = _super.prototype.replaceWith.call(this, name, value);\n        this.attributes.copy(replacement);\n        return replacement;\n    };\n    FormatBlot.prototype.update = function (mutations, context) {\n        var _this = this;\n        _super.prototype.update.call(this, mutations, context);\n        if (mutations.some(function (mutation) {\n            return mutation.target === _this.domNode && mutation.type === 'attributes';\n        })) {\n            this.attributes.build();\n        }\n    };\n    FormatBlot.prototype.wrap = function (name, value) {\n        var wrapper = _super.prototype.wrap.call(this, name, value);\n        if (wrapper instanceof FormatBlot && wrapper.statics.scope === this.statics.scope) {\n            this.attributes.move(wrapper);\n        }\n        return wrapper;\n    };\n    return FormatBlot;\n}(container_1.default));\nexports.default = FormatBlot;\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar shadow_1 = __webpack_require__(30);\nvar Registry = __webpack_require__(1);\nvar LeafBlot = /** @class */ (function (_super) {\n    __extends(LeafBlot, _super);\n    function LeafBlot() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    LeafBlot.value = function (domNode) {\n        return true;\n    };\n    LeafBlot.prototype.index = function (node, offset) {\n        if (this.domNode === node ||\n            this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n            return Math.min(offset, 1);\n        }\n        return -1;\n    };\n    LeafBlot.prototype.position = function (index, inclusive) {\n        var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);\n        if (index > 0)\n            offset += 1;\n        return [this.parent.domNode, offset];\n    };\n    LeafBlot.prototype.value = function () {\n        var _a;\n        return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;\n    };\n    LeafBlot.scope = Registry.Scope.INLINE_BLOT;\n    return LeafBlot;\n}(shadow_1.default));\nexports.default = LeafBlot;\n\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar equal = __webpack_require__(11);\nvar extend = __webpack_require__(3);\n\n\nvar lib = {\n  attributes: {\n    compose: function (a, b, keepNull) {\n      if (typeof a !== 'object') a = {};\n      if (typeof b !== 'object') b = {};\n      var attributes = extend(true, {}, b);\n      if (!keepNull) {\n        attributes = Object.keys(attributes).reduce(function (copy, key) {\n          if (attributes[key] != null) {\n            copy[key] = attributes[key];\n          }\n          return copy;\n        }, {});\n      }\n      for (var key in a) {\n        if (a[key] !== undefined && b[key] === undefined) {\n          attributes[key] = a[key];\n        }\n      }\n      return Object.keys(attributes).length > 0 ? attributes : undefined;\n    },\n\n    diff: function(a, b) {\n      if (typeof a !== 'object') a = {};\n      if (typeof b !== 'object') b = {};\n      var attributes = Object.keys(a).concat(Object.keys(b)).reduce(function (attributes, key) {\n        if (!equal(a[key], b[key])) {\n          attributes[key] = b[key] === undefined ? null : b[key];\n        }\n        return attributes;\n      }, {});\n      return Object.keys(attributes).length > 0 ? attributes : undefined;\n    },\n\n    transform: function (a, b, priority) {\n      if (typeof a !== 'object') return b;\n      if (typeof b !== 'object') return undefined;\n      if (!priority) return b;  // b simply overwrites us without priority\n      var attributes = Object.keys(b).reduce(function (attributes, key) {\n        if (a[key] === undefined) attributes[key] = b[key];  // null is a valid value\n        return attributes;\n      }, {});\n      return Object.keys(attributes).length > 0 ? attributes : undefined;\n    }\n  },\n\n  iterator: function (ops) {\n    return new Iterator(ops);\n  },\n\n  length: function (op) {\n    if (typeof op['delete'] === 'number') {\n      return op['delete'];\n    } else if (typeof op.retain === 'number') {\n      return op.retain;\n    } else {\n      return typeof op.insert === 'string' ? op.insert.length : 1;\n    }\n  }\n};\n\n\nfunction Iterator(ops) {\n  this.ops = ops;\n  this.index = 0;\n  this.offset = 0;\n};\n\nIterator.prototype.hasNext = function () {\n  return this.peekLength() < Infinity;\n};\n\nIterator.prototype.next = function (length) {\n  if (!length) length = Infinity;\n  var nextOp = this.ops[this.index];\n  if (nextOp) {\n    var offset = this.offset;\n    var opLength = lib.length(nextOp)\n    if (length >= opLength - offset) {\n      length = opLength - offset;\n      this.index += 1;\n      this.offset = 0;\n    } else {\n      this.offset += length;\n    }\n    if (typeof nextOp['delete'] === 'number') {\n      return { 'delete': length };\n    } else {\n      var retOp = {};\n      if (nextOp.attributes) {\n        retOp.attributes = nextOp.attributes;\n      }\n      if (typeof nextOp.retain === 'number') {\n        retOp.retain = length;\n      } else if (typeof nextOp.insert === 'string') {\n        retOp.insert = nextOp.insert.substr(offset, length);\n      } else {\n        // offset should === 0, length should === 1\n        retOp.insert = nextOp.insert;\n      }\n      return retOp;\n    }\n  } else {\n    return { retain: Infinity };\n  }\n};\n\nIterator.prototype.peek = function () {\n  return this.ops[this.index];\n};\n\nIterator.prototype.peekLength = function () {\n  if (this.ops[this.index]) {\n    // Should never return 0 if our index is being managed correctly\n    return lib.length(this.ops[this.index]) - this.offset;\n  } else {\n    return Infinity;\n  }\n};\n\nIterator.prototype.peekType = function () {\n  if (this.ops[this.index]) {\n    if (typeof this.ops[this.index]['delete'] === 'number') {\n      return 'delete';\n    } else if (typeof this.ops[this.index].retain === 'number') {\n      return 'retain';\n    } else {\n      return 'insert';\n    }\n  }\n  return 'retain';\n};\n\nIterator.prototype.rest = function () {\n  if (!this.hasNext()) {\n    return [];\n  } else if (this.offset === 0) {\n    return this.ops.slice(this.index);\n  } else {\n    var offset = this.offset;\n    var index = this.index;\n    var next = this.next();\n    var rest = this.ops.slice(this.index);\n    this.offset = offset;\n    this.index = index;\n    return [next].concat(rest);\n  }\n};\n\n\nmodule.exports = lib;\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports) {\n\nvar clone = (function() {\n'use strict';\n\nfunction _instanceof(obj, type) {\n  return type != null && obj instanceof type;\n}\n\nvar nativeMap;\ntry {\n  nativeMap = Map;\n} catch(_) {\n  // maybe a reference error because no `Map`. Give it a dummy value that no\n  // value will ever be an instanceof.\n  nativeMap = function() {};\n}\n\nvar nativeSet;\ntry {\n  nativeSet = Set;\n} catch(_) {\n  nativeSet = function() {};\n}\n\nvar nativePromise;\ntry {\n  nativePromise = Promise;\n} catch(_) {\n  nativePromise = function() {};\n}\n\n/**\n * Clones (copies) an Object using deep copying.\n *\n * This function supports circular references by default, but if you are certain\n * there are no circular references in your object, you can save some CPU time\n * by calling clone(obj, false).\n *\n * Caution: if `circular` is false and `parent` contains circular references,\n * your program may enter an infinite loop and crash.\n *\n * @param `parent` - the object to be cloned\n * @param `circular` - set to true if the object to be cloned may contain\n *    circular references. (optional - true by default)\n * @param `depth` - set to a number if the object is only to be cloned to\n *    a particular depth. (optional - defaults to Infinity)\n * @param `prototype` - sets the prototype to be used when cloning an object.\n *    (optional - defaults to parent prototype).\n * @param `includeNonEnumerable` - set to true if the non-enumerable properties\n *    should be cloned as well. Non-enumerable properties on the prototype\n *    chain will be ignored. (optional - false by default)\n*/\nfunction clone(parent, circular, depth, prototype, includeNonEnumerable) {\n  if (typeof circular === 'object') {\n    depth = circular.depth;\n    prototype = circular.prototype;\n    includeNonEnumerable = circular.includeNonEnumerable;\n    circular = circular.circular;\n  }\n  // maintain two arrays for circular references, where corresponding parents\n  // and children have the same index\n  var allParents = [];\n  var allChildren = [];\n\n  var useBuffer = typeof Buffer != 'undefined';\n\n  if (typeof circular == 'undefined')\n    circular = true;\n\n  if (typeof depth == 'undefined')\n    depth = Infinity;\n\n  // recurse this function so we don't reset allParents and allChildren\n  function _clone(parent, depth) {\n    // cloning null always returns null\n    if (parent === null)\n      return null;\n\n    if (depth === 0)\n      return parent;\n\n    var child;\n    var proto;\n    if (typeof parent != 'object') {\n      return parent;\n    }\n\n    if (_instanceof(parent, nativeMap)) {\n      child = new nativeMap();\n    } else if (_instanceof(parent, nativeSet)) {\n      child = new nativeSet();\n    } else if (_instanceof(parent, nativePromise)) {\n      child = new nativePromise(function (resolve, reject) {\n        parent.then(function(value) {\n          resolve(_clone(value, depth - 1));\n        }, function(err) {\n          reject(_clone(err, depth - 1));\n        });\n      });\n    } else if (clone.__isArray(parent)) {\n      child = [];\n    } else if (clone.__isRegExp(parent)) {\n      child = new RegExp(parent.source, __getRegExpFlags(parent));\n      if (parent.lastIndex) child.lastIndex = parent.lastIndex;\n    } else if (clone.__isDate(parent)) {\n      child = new Date(parent.getTime());\n    } else if (useBuffer && Buffer.isBuffer(parent)) {\n      if (Buffer.allocUnsafe) {\n        // Node.js >= 4.5.0\n        child = Buffer.allocUnsafe(parent.length);\n      } else {\n        // Older Node.js versions\n        child = new Buffer(parent.length);\n      }\n      parent.copy(child);\n      return child;\n    } else if (_instanceof(parent, Error)) {\n      child = Object.create(parent);\n    } else {\n      if (typeof prototype == 'undefined') {\n        proto = Object.getPrototypeOf(parent);\n        child = Object.create(proto);\n      }\n      else {\n        child = Object.create(prototype);\n        proto = prototype;\n      }\n    }\n\n    if (circular) {\n      var index = allParents.indexOf(parent);\n\n      if (index != -1) {\n        return allChildren[index];\n      }\n      allParents.push(parent);\n      allChildren.push(child);\n    }\n\n    if (_instanceof(parent, nativeMap)) {\n      parent.forEach(function(value, key) {\n        var keyChild = _clone(key, depth - 1);\n        var valueChild = _clone(value, depth - 1);\n        child.set(keyChild, valueChild);\n      });\n    }\n    if (_instanceof(parent, nativeSet)) {\n      parent.forEach(function(value) {\n        var entryChild = _clone(value, depth - 1);\n        child.add(entryChild);\n      });\n    }\n\n    for (var i in parent) {\n      var attrs;\n      if (proto) {\n        attrs = Object.getOwnPropertyDescriptor(proto, i);\n      }\n\n      if (attrs && attrs.set == null) {\n        continue;\n      }\n      child[i] = _clone(parent[i], depth - 1);\n    }\n\n    if (Object.getOwnPropertySymbols) {\n      var symbols = Object.getOwnPropertySymbols(parent);\n      for (var i = 0; i < symbols.length; i++) {\n        // Don't need to worry about cloning a symbol because it is a primitive,\n        // like a number or string.\n        var symbol = symbols[i];\n        var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);\n        if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {\n          continue;\n        }\n        child[symbol] = _clone(parent[symbol], depth - 1);\n        if (!descriptor.enumerable) {\n          Object.defineProperty(child, symbol, {\n            enumerable: false\n          });\n        }\n      }\n    }\n\n    if (includeNonEnumerable) {\n      var allPropertyNames = Object.getOwnPropertyNames(parent);\n      for (var i = 0; i < allPropertyNames.length; i++) {\n        var propertyName = allPropertyNames[i];\n        var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);\n        if (descriptor && descriptor.enumerable) {\n          continue;\n        }\n        child[propertyName] = _clone(parent[propertyName], depth - 1);\n        Object.defineProperty(child, propertyName, {\n          enumerable: false\n        });\n      }\n    }\n\n    return child;\n  }\n\n  return _clone(parent, depth);\n}\n\n/**\n * Simple flat clone using prototype, accepts only objects, usefull for property\n * override on FLAT configuration object (no nested props).\n *\n * USE WITH CAUTION! This may not behave as you wish if you do not know how this\n * works.\n */\nclone.clonePrototype = function clonePrototype(parent) {\n  if (parent === null)\n    return null;\n\n  var c = function () {};\n  c.prototype = parent;\n  return new c();\n};\n\n// private utility functions\n\nfunction __objToStr(o) {\n  return Object.prototype.toString.call(o);\n}\nclone.__objToStr = __objToStr;\n\nfunction __isDate(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object Date]';\n}\nclone.__isDate = __isDate;\n\nfunction __isArray(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object Array]';\n}\nclone.__isArray = __isArray;\n\nfunction __isRegExp(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object RegExp]';\n}\nclone.__isRegExp = __isRegExp;\n\nfunction __getRegExpFlags(re) {\n  var flags = '';\n  if (re.global) flags += 'g';\n  if (re.ignoreCase) flags += 'i';\n  if (re.multiline) flags += 'm';\n  return flags;\n}\nclone.__getRegExpFlags = __getRegExpFlags;\n\nreturn clone;\n})();\n\nif (typeof module === 'object' && module.exports) {\n  module.exports = clone;\n}\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _emitter = __webpack_require__(8);\n\nvar _emitter2 = _interopRequireDefault(_emitter);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nvar _break = __webpack_require__(16);\n\nvar _break2 = _interopRequireDefault(_break);\n\nvar _code = __webpack_require__(13);\n\nvar _code2 = _interopRequireDefault(_code);\n\nvar _container = __webpack_require__(25);\n\nvar _container2 = _interopRequireDefault(_container);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction isLine(blot) {\n  return blot instanceof _block2.default || blot instanceof _block.BlockEmbed;\n}\n\nvar Scroll = function (_Parchment$Scroll) {\n  _inherits(Scroll, _Parchment$Scroll);\n\n  function Scroll(domNode, config) {\n    _classCallCheck(this, Scroll);\n\n    var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, domNode));\n\n    _this.emitter = config.emitter;\n    if (Array.isArray(config.whitelist)) {\n      _this.whitelist = config.whitelist.reduce(function (whitelist, format) {\n        whitelist[format] = true;\n        return whitelist;\n      }, {});\n    }\n    // Some reason fixes composition issues with character languages in Windows/Chrome, Safari\n    _this.domNode.addEventListener('DOMNodeInserted', function () {});\n    _this.optimize();\n    _this.enable();\n    return _this;\n  }\n\n  _createClass(Scroll, [{\n    key: 'batchStart',\n    value: function batchStart() {\n      this.batch = true;\n    }\n  }, {\n    key: 'batchEnd',\n    value: function batchEnd() {\n      this.batch = false;\n      this.optimize();\n    }\n  }, {\n    key: 'deleteAt',\n    value: function deleteAt(index, length) {\n      var _line = this.line(index),\n          _line2 = _slicedToArray(_line, 2),\n          first = _line2[0],\n          offset = _line2[1];\n\n      var _line3 = this.line(index + length),\n          _line4 = _slicedToArray(_line3, 1),\n          last = _line4[0];\n\n      _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'deleteAt', this).call(this, index, length);\n      if (last != null && first !== last && offset > 0) {\n        if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {\n          this.optimize();\n          return;\n        }\n        if (first instanceof _code2.default) {\n          var newlineIndex = first.newlineIndex(first.length(), true);\n          if (newlineIndex > -1) {\n            first = first.split(newlineIndex + 1);\n            if (first === last) {\n              this.optimize();\n              return;\n            }\n          }\n        } else if (last instanceof _code2.default) {\n          var _newlineIndex = last.newlineIndex(0);\n          if (_newlineIndex > -1) {\n            last.split(_newlineIndex + 1);\n          }\n        }\n        var ref = last.children.head instanceof _break2.default ? null : last.children.head;\n        first.moveChildren(last, ref);\n        first.remove();\n      }\n      this.optimize();\n    }\n  }, {\n    key: 'enable',\n    value: function enable() {\n      var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n      this.domNode.setAttribute('contenteditable', enabled);\n    }\n  }, {\n    key: 'formatAt',\n    value: function formatAt(index, length, format, value) {\n      if (this.whitelist != null && !this.whitelist[format]) return;\n      _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'formatAt', this).call(this, index, length, format, value);\n      this.optimize();\n    }\n  }, {\n    key: 'insertAt',\n    value: function insertAt(index, value, def) {\n      if (def != null && this.whitelist != null && !this.whitelist[value]) return;\n      if (index >= this.length()) {\n        if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {\n          var blot = _parchment2.default.create(this.statics.defaultChild);\n          this.appendChild(blot);\n          if (def == null && value.endsWith('\\n')) {\n            value = value.slice(0, -1);\n          }\n          blot.insertAt(0, value, def);\n        } else {\n          var embed = _parchment2.default.create(value, def);\n          this.appendChild(embed);\n        }\n      } else {\n        _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertAt', this).call(this, index, value, def);\n      }\n      this.optimize();\n    }\n  }, {\n    key: 'insertBefore',\n    value: function insertBefore(blot, ref) {\n      if (blot.statics.scope === _parchment2.default.Scope.INLINE_BLOT) {\n        var wrapper = _parchment2.default.create(this.statics.defaultChild);\n        wrapper.appendChild(blot);\n        blot = wrapper;\n      }\n      _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertBefore', this).call(this, blot, ref);\n    }\n  }, {\n    key: 'leaf',\n    value: function leaf(index) {\n      return this.path(index).pop() || [null, -1];\n    }\n  }, {\n    key: 'line',\n    value: function line(index) {\n      if (index === this.length()) {\n        return this.line(index - 1);\n      }\n      return this.descendant(isLine, index);\n    }\n  }, {\n    key: 'lines',\n    value: function lines() {\n      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n      var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;\n\n      var getLines = function getLines(blot, index, length) {\n        var lines = [],\n            lengthLeft = length;\n        blot.children.forEachAt(index, length, function (child, index, length) {\n          if (isLine(child)) {\n            lines.push(child);\n          } else if (child instanceof _parchment2.default.Container) {\n            lines = lines.concat(getLines(child, index, lengthLeft));\n          }\n          lengthLeft -= length;\n        });\n        return lines;\n      };\n      return getLines(this, index, length);\n    }\n  }, {\n    key: 'optimize',\n    value: function optimize() {\n      var mutations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n      var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n      if (this.batch === true) return;\n      _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'optimize', this).call(this, mutations, context);\n      if (mutations.length > 0) {\n        this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE, mutations, context);\n      }\n    }\n  }, {\n    key: 'path',\n    value: function path(index) {\n      return _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'path', this).call(this, index).slice(1); // Exclude self\n    }\n  }, {\n    key: 'update',\n    value: function update(mutations) {\n      if (this.batch === true) return;\n      var source = _emitter2.default.sources.USER;\n      if (typeof mutations === 'string') {\n        source = mutations;\n      }\n      if (!Array.isArray(mutations)) {\n        mutations = this.observer.takeRecords();\n      }\n      if (mutations.length > 0) {\n        this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE, source, mutations);\n      }\n      _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'update', this).call(this, mutations.concat([])); // pass copy\n      if (mutations.length > 0) {\n        this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE, source, mutations);\n      }\n    }\n  }]);\n\n  return Scroll;\n}(_parchment2.default.Scroll);\n\nScroll.blotName = 'scroll';\nScroll.className = 'ql-editor';\nScroll.tagName = 'DIV';\nScroll.defaultChild = 'block';\nScroll.allowedChildren = [_block2.default, _block.BlockEmbed, _container2.default];\n\nexports.default = Scroll;\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.SHORTKEY = exports.default = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _clone = __webpack_require__(21);\n\nvar _clone2 = _interopRequireDefault(_clone);\n\nvar _deepEqual = __webpack_require__(11);\n\nvar _deepEqual2 = _interopRequireDefault(_deepEqual);\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _op = __webpack_require__(20);\n\nvar _op2 = _interopRequireDefault(_op);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar debug = (0, _logger2.default)('quill:keyboard');\n\nvar SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';\n\nvar Keyboard = function (_Module) {\n  _inherits(Keyboard, _Module);\n\n  _createClass(Keyboard, null, [{\n    key: 'match',\n    value: function match(evt, binding) {\n      binding = normalize(binding);\n      if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(function (key) {\n        return !!binding[key] !== evt[key] && binding[key] !== null;\n      })) {\n        return false;\n      }\n      return binding.key === (evt.which || evt.keyCode);\n    }\n  }]);\n\n  function Keyboard(quill, options) {\n    _classCallCheck(this, Keyboard);\n\n    var _this = _possibleConstructorReturn(this, (Keyboard.__proto__ || Object.getPrototypeOf(Keyboard)).call(this, quill, options));\n\n    _this.bindings = {};\n    Object.keys(_this.options.bindings).forEach(function (name) {\n      if (name === 'list autofill' && quill.scroll.whitelist != null && !quill.scroll.whitelist['list']) {\n        return;\n      }\n      if (_this.options.bindings[name]) {\n        _this.addBinding(_this.options.bindings[name]);\n      }\n    });\n    _this.addBinding({ key: Keyboard.keys.ENTER, shiftKey: null }, handleEnter);\n    _this.addBinding({ key: Keyboard.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function () {});\n    if (/Firefox/i.test(navigator.userAgent)) {\n      // Need to handle delete and backspace for Firefox in the general case #1171\n      _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true }, handleBackspace);\n      _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true }, handleDelete);\n    } else {\n      _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);\n      _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);\n    }\n    _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);\n    _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);\n    _this.addBinding({ key: Keyboard.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: true, offset: 0 }, handleBackspace);\n    _this.listen();\n    return _this;\n  }\n\n  _createClass(Keyboard, [{\n    key: 'addBinding',\n    value: function addBinding(key) {\n      var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var handler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n      var binding = normalize(key);\n      if (binding == null || binding.key == null) {\n        return debug.warn('Attempted to add invalid keyboard binding', binding);\n      }\n      if (typeof context === 'function') {\n        context = { handler: context };\n      }\n      if (typeof handler === 'function') {\n        handler = { handler: handler };\n      }\n      binding = (0, _extend2.default)(binding, context, handler);\n      this.bindings[binding.key] = this.bindings[binding.key] || [];\n      this.bindings[binding.key].push(binding);\n    }\n  }, {\n    key: 'listen',\n    value: function listen() {\n      var _this2 = this;\n\n      this.quill.root.addEventListener('keydown', function (evt) {\n        if (evt.defaultPrevented) return;\n        var which = evt.which || evt.keyCode;\n        var bindings = (_this2.bindings[which] || []).filter(function (binding) {\n          return Keyboard.match(evt, binding);\n        });\n        if (bindings.length === 0) return;\n        var range = _this2.quill.getSelection();\n        if (range == null || !_this2.quill.hasFocus()) return;\n\n        var _quill$getLine = _this2.quill.getLine(range.index),\n            _quill$getLine2 = _slicedToArray(_quill$getLine, 2),\n            line = _quill$getLine2[0],\n            offset = _quill$getLine2[1];\n\n        var _quill$getLeaf = _this2.quill.getLeaf(range.index),\n            _quill$getLeaf2 = _slicedToArray(_quill$getLeaf, 2),\n            leafStart = _quill$getLeaf2[0],\n            offsetStart = _quill$getLeaf2[1];\n\n        var _ref = range.length === 0 ? [leafStart, offsetStart] : _this2.quill.getLeaf(range.index + range.length),\n            _ref2 = _slicedToArray(_ref, 2),\n            leafEnd = _ref2[0],\n            offsetEnd = _ref2[1];\n\n        var prefixText = leafStart instanceof _parchment2.default.Text ? leafStart.value().slice(0, offsetStart) : '';\n        var suffixText = leafEnd instanceof _parchment2.default.Text ? leafEnd.value().slice(offsetEnd) : '';\n        var curContext = {\n          collapsed: range.length === 0,\n          empty: range.length === 0 && line.length() <= 1,\n          format: _this2.quill.getFormat(range),\n          offset: offset,\n          prefix: prefixText,\n          suffix: suffixText\n        };\n        var prevented = bindings.some(function (binding) {\n          if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) return false;\n          if (binding.empty != null && binding.empty !== curContext.empty) return false;\n          if (binding.offset != null && binding.offset !== curContext.offset) return false;\n          if (Array.isArray(binding.format)) {\n            // any format is present\n            if (binding.format.every(function (name) {\n              return curContext.format[name] == null;\n            })) {\n              return false;\n            }\n          } else if (_typeof(binding.format) === 'object') {\n            // all formats must match\n            if (!Object.keys(binding.format).every(function (name) {\n              if (binding.format[name] === true) return curContext.format[name] != null;\n              if (binding.format[name] === false) return curContext.format[name] == null;\n              return (0, _deepEqual2.default)(binding.format[name], curContext.format[name]);\n            })) {\n              return false;\n            }\n          }\n          if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) return false;\n          if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) return false;\n          return binding.handler.call(_this2, range, curContext) !== true;\n        });\n        if (prevented) {\n          evt.preventDefault();\n        }\n      });\n    }\n  }]);\n\n  return Keyboard;\n}(_module2.default);\n\nKeyboard.keys = {\n  BACKSPACE: 8,\n  TAB: 9,\n  ENTER: 13,\n  ESCAPE: 27,\n  LEFT: 37,\n  UP: 38,\n  RIGHT: 39,\n  DOWN: 40,\n  DELETE: 46\n};\n\nKeyboard.DEFAULTS = {\n  bindings: {\n    'bold': makeFormatHandler('bold'),\n    'italic': makeFormatHandler('italic'),\n    'underline': makeFormatHandler('underline'),\n    'indent': {\n      // highlight tab or tab at beginning of list, indent or blockquote\n      key: Keyboard.keys.TAB,\n      format: ['blockquote', 'indent', 'list'],\n      handler: function handler(range, context) {\n        if (context.collapsed && context.offset !== 0) return true;\n        this.quill.format('indent', '+1', _quill2.default.sources.USER);\n      }\n    },\n    'outdent': {\n      key: Keyboard.keys.TAB,\n      shiftKey: true,\n      format: ['blockquote', 'indent', 'list'],\n      // highlight tab or tab at beginning of list, indent or blockquote\n      handler: function handler(range, context) {\n        if (context.collapsed && context.offset !== 0) return true;\n        this.quill.format('indent', '-1', _quill2.default.sources.USER);\n      }\n    },\n    'outdent backspace': {\n      key: Keyboard.keys.BACKSPACE,\n      collapsed: true,\n      shiftKey: null,\n      metaKey: null,\n      ctrlKey: null,\n      altKey: null,\n      format: ['indent', 'list'],\n      offset: 0,\n      handler: function handler(range, context) {\n        if (context.format.indent != null) {\n          this.quill.format('indent', '-1', _quill2.default.sources.USER);\n        } else if (context.format.list != null) {\n          this.quill.format('list', false, _quill2.default.sources.USER);\n        }\n      }\n    },\n    'indent code-block': makeCodeBlockHandler(true),\n    'outdent code-block': makeCodeBlockHandler(false),\n    'remove tab': {\n      key: Keyboard.keys.TAB,\n      shiftKey: true,\n      collapsed: true,\n      prefix: /\\t$/,\n      handler: function handler(range) {\n        this.quill.deleteText(range.index - 1, 1, _quill2.default.sources.USER);\n      }\n    },\n    'tab': {\n      key: Keyboard.keys.TAB,\n      handler: function handler(range) {\n        this.quill.history.cutoff();\n        var delta = new _quillDelta2.default().retain(range.index).delete(range.length).insert('\\t');\n        this.quill.updateContents(delta, _quill2.default.sources.USER);\n        this.quill.history.cutoff();\n        this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);\n      }\n    },\n    'list empty enter': {\n      key: Keyboard.keys.ENTER,\n      collapsed: true,\n      format: ['list'],\n      empty: true,\n      handler: function handler(range, context) {\n        this.quill.format('list', false, _quill2.default.sources.USER);\n        if (context.format.indent) {\n          this.quill.format('indent', false, _quill2.default.sources.USER);\n        }\n      }\n    },\n    'checklist enter': {\n      key: Keyboard.keys.ENTER,\n      collapsed: true,\n      format: { list: 'checked' },\n      handler: function handler(range) {\n        var _quill$getLine3 = this.quill.getLine(range.index),\n            _quill$getLine4 = _slicedToArray(_quill$getLine3, 2),\n            line = _quill$getLine4[0],\n            offset = _quill$getLine4[1];\n\n        var formats = (0, _extend2.default)({}, line.formats(), { list: 'checked' });\n        var delta = new _quillDelta2.default().retain(range.index).insert('\\n', formats).retain(line.length() - offset - 1).retain(1, { list: 'unchecked' });\n        this.quill.updateContents(delta, _quill2.default.sources.USER);\n        this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);\n        this.quill.scrollIntoView();\n      }\n    },\n    'header enter': {\n      key: Keyboard.keys.ENTER,\n      collapsed: true,\n      format: ['header'],\n      suffix: /^$/,\n      handler: function handler(range, context) {\n        var _quill$getLine5 = this.quill.getLine(range.index),\n            _quill$getLine6 = _slicedToArray(_quill$getLine5, 2),\n            line = _quill$getLine6[0],\n            offset = _quill$getLine6[1];\n\n        var delta = new _quillDelta2.default().retain(range.index).insert('\\n', context.format).retain(line.length() - offset - 1).retain(1, { header: null });\n        this.quill.updateContents(delta, _quill2.default.sources.USER);\n        this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);\n        this.quill.scrollIntoView();\n      }\n    },\n    'list autofill': {\n      key: ' ',\n      collapsed: true,\n      format: { list: false },\n      prefix: /^\\s*?(\\d+\\.|-|\\*|\\[ ?\\]|\\[x\\])$/,\n      handler: function handler(range, context) {\n        var length = context.prefix.length;\n\n        var _quill$getLine7 = this.quill.getLine(range.index),\n            _quill$getLine8 = _slicedToArray(_quill$getLine7, 2),\n            line = _quill$getLine8[0],\n            offset = _quill$getLine8[1];\n\n        if (offset > length) return true;\n        var value = void 0;\n        switch (context.prefix.trim()) {\n          case '[]':case '[ ]':\n            value = 'unchecked';\n            break;\n          case '[x]':\n            value = 'checked';\n            break;\n          case '-':case '*':\n            value = 'bullet';\n            break;\n          default:\n            value = 'ordered';\n        }\n        this.quill.insertText(range.index, ' ', _quill2.default.sources.USER);\n        this.quill.history.cutoff();\n        var delta = new _quillDelta2.default().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, { list: value });\n        this.quill.updateContents(delta, _quill2.default.sources.USER);\n        this.quill.history.cutoff();\n        this.quill.setSelection(range.index - length, _quill2.default.sources.SILENT);\n      }\n    },\n    'code exit': {\n      key: Keyboard.keys.ENTER,\n      collapsed: true,\n      format: ['code-block'],\n      prefix: /\\n\\n$/,\n      suffix: /^\\s+$/,\n      handler: function handler(range) {\n        var _quill$getLine9 = this.quill.getLine(range.index),\n            _quill$getLine10 = _slicedToArray(_quill$getLine9, 2),\n            line = _quill$getLine10[0],\n            offset = _quill$getLine10[1];\n\n        var delta = new _quillDelta2.default().retain(range.index + line.length() - offset - 2).retain(1, { 'code-block': null }).delete(1);\n        this.quill.updateContents(delta, _quill2.default.sources.USER);\n      }\n    },\n    'embed left': makeEmbedArrowHandler(Keyboard.keys.LEFT, false),\n    'embed left shift': makeEmbedArrowHandler(Keyboard.keys.LEFT, true),\n    'embed right': makeEmbedArrowHandler(Keyboard.keys.RIGHT, false),\n    'embed right shift': makeEmbedArrowHandler(Keyboard.keys.RIGHT, true)\n  }\n};\n\nfunction makeEmbedArrowHandler(key, shiftKey) {\n  var _ref3;\n\n  var where = key === Keyboard.keys.LEFT ? 'prefix' : 'suffix';\n  return _ref3 = {\n    key: key,\n    shiftKey: shiftKey,\n    altKey: null\n  }, _defineProperty(_ref3, where, /^$/), _defineProperty(_ref3, 'handler', function handler(range) {\n    var index = range.index;\n    if (key === Keyboard.keys.RIGHT) {\n      index += range.length + 1;\n    }\n\n    var _quill$getLeaf3 = this.quill.getLeaf(index),\n        _quill$getLeaf4 = _slicedToArray(_quill$getLeaf3, 1),\n        leaf = _quill$getLeaf4[0];\n\n    if (!(leaf instanceof _parchment2.default.Embed)) return true;\n    if (key === Keyboard.keys.LEFT) {\n      if (shiftKey) {\n        this.quill.setSelection(range.index - 1, range.length + 1, _quill2.default.sources.USER);\n      } else {\n        this.quill.setSelection(range.index - 1, _quill2.default.sources.USER);\n      }\n    } else {\n      if (shiftKey) {\n        this.quill.setSelection(range.index, range.length + 1, _quill2.default.sources.USER);\n      } else {\n        this.quill.setSelection(range.index + range.length + 1, _quill2.default.sources.USER);\n      }\n    }\n    return false;\n  }), _ref3;\n}\n\nfunction handleBackspace(range, context) {\n  if (range.index === 0 || this.quill.getLength() <= 1) return;\n\n  var _quill$getLine11 = this.quill.getLine(range.index),\n      _quill$getLine12 = _slicedToArray(_quill$getLine11, 1),\n      line = _quill$getLine12[0];\n\n  var formats = {};\n  if (context.offset === 0) {\n    var _quill$getLine13 = this.quill.getLine(range.index - 1),\n        _quill$getLine14 = _slicedToArray(_quill$getLine13, 1),\n        prev = _quill$getLine14[0];\n\n    if (prev != null && prev.length() > 1) {\n      var curFormats = line.formats();\n      var prevFormats = this.quill.getFormat(range.index - 1, 1);\n      formats = _op2.default.attributes.diff(curFormats, prevFormats) || {};\n    }\n  }\n  // Check for astral symbols\n  var length = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$/.test(context.prefix) ? 2 : 1;\n  this.quill.deleteText(range.index - length, length, _quill2.default.sources.USER);\n  if (Object.keys(formats).length > 0) {\n    this.quill.formatLine(range.index - length, length, formats, _quill2.default.sources.USER);\n  }\n  this.quill.focus();\n}\n\nfunction handleDelete(range, context) {\n  // Check for astral symbols\n  var length = /^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/.test(context.suffix) ? 2 : 1;\n  if (range.index >= this.quill.getLength() - length) return;\n  var formats = {},\n      nextLength = 0;\n\n  var _quill$getLine15 = this.quill.getLine(range.index),\n      _quill$getLine16 = _slicedToArray(_quill$getLine15, 1),\n      line = _quill$getLine16[0];\n\n  if (context.offset >= line.length() - 1) {\n    var _quill$getLine17 = this.quill.getLine(range.index + 1),\n        _quill$getLine18 = _slicedToArray(_quill$getLine17, 1),\n        next = _quill$getLine18[0];\n\n    if (next) {\n      var curFormats = line.formats();\n      var nextFormats = this.quill.getFormat(range.index, 1);\n      formats = _op2.default.attributes.diff(curFormats, nextFormats) || {};\n      nextLength = next.length();\n    }\n  }\n  this.quill.deleteText(range.index, length, _quill2.default.sources.USER);\n  if (Object.keys(formats).length > 0) {\n    this.quill.formatLine(range.index + nextLength - 1, length, formats, _quill2.default.sources.USER);\n  }\n}\n\nfunction handleDeleteRange(range) {\n  var lines = this.quill.getLines(range);\n  var formats = {};\n  if (lines.length > 1) {\n    var firstFormats = lines[0].formats();\n    var lastFormats = lines[lines.length - 1].formats();\n    formats = _op2.default.attributes.diff(lastFormats, firstFormats) || {};\n  }\n  this.quill.deleteText(range, _quill2.default.sources.USER);\n  if (Object.keys(formats).length > 0) {\n    this.quill.formatLine(range.index, 1, formats, _quill2.default.sources.USER);\n  }\n  this.quill.setSelection(range.index, _quill2.default.sources.SILENT);\n  this.quill.focus();\n}\n\nfunction handleEnter(range, context) {\n  var _this3 = this;\n\n  if (range.length > 0) {\n    this.quill.scroll.deleteAt(range.index, range.length); // So we do not trigger text-change\n  }\n  var lineFormats = Object.keys(context.format).reduce(function (lineFormats, format) {\n    if (_parchment2.default.query(format, _parchment2.default.Scope.BLOCK) && !Array.isArray(context.format[format])) {\n      lineFormats[format] = context.format[format];\n    }\n    return lineFormats;\n  }, {});\n  this.quill.insertText(range.index, '\\n', lineFormats, _quill2.default.sources.USER);\n  // Earlier scroll.deleteAt might have messed up our selection,\n  // so insertText's built in selection preservation is not reliable\n  this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);\n  this.quill.focus();\n  Object.keys(context.format).forEach(function (name) {\n    if (lineFormats[name] != null) return;\n    if (Array.isArray(context.format[name])) return;\n    if (name === 'link') return;\n    _this3.quill.format(name, context.format[name], _quill2.default.sources.USER);\n  });\n}\n\nfunction makeCodeBlockHandler(indent) {\n  return {\n    key: Keyboard.keys.TAB,\n    shiftKey: !indent,\n    format: { 'code-block': true },\n    handler: function handler(range) {\n      var CodeBlock = _parchment2.default.query('code-block');\n      var index = range.index,\n          length = range.length;\n\n      var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index),\n          _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),\n          block = _quill$scroll$descend2[0],\n          offset = _quill$scroll$descend2[1];\n\n      if (block == null) return;\n      var scrollIndex = this.quill.getIndex(block);\n      var start = block.newlineIndex(offset, true) + 1;\n      var end = block.newlineIndex(scrollIndex + offset + length);\n      var lines = block.domNode.textContent.slice(start, end).split('\\n');\n      offset = 0;\n      lines.forEach(function (line, i) {\n        if (indent) {\n          block.insertAt(start + offset, CodeBlock.TAB);\n          offset += CodeBlock.TAB.length;\n          if (i === 0) {\n            index += CodeBlock.TAB.length;\n          } else {\n            length += CodeBlock.TAB.length;\n          }\n        } else if (line.startsWith(CodeBlock.TAB)) {\n          block.deleteAt(start + offset, CodeBlock.TAB.length);\n          offset -= CodeBlock.TAB.length;\n          if (i === 0) {\n            index -= CodeBlock.TAB.length;\n          } else {\n            length -= CodeBlock.TAB.length;\n          }\n        }\n        offset += line.length + 1;\n      });\n      this.quill.update(_quill2.default.sources.USER);\n      this.quill.setSelection(index, length, _quill2.default.sources.SILENT);\n    }\n  };\n}\n\nfunction makeFormatHandler(format) {\n  return {\n    key: format[0].toUpperCase(),\n    shortKey: true,\n    handler: function handler(range, context) {\n      this.quill.format(format, !context.format[format], _quill2.default.sources.USER);\n    }\n  };\n}\n\nfunction normalize(binding) {\n  if (typeof binding === 'string' || typeof binding === 'number') {\n    return normalize({ key: binding });\n  }\n  if ((typeof binding === 'undefined' ? 'undefined' : _typeof(binding)) === 'object') {\n    binding = (0, _clone2.default)(binding, false);\n  }\n  if (typeof binding.key === 'string') {\n    if (Keyboard.keys[binding.key.toUpperCase()] != null) {\n      binding.key = Keyboard.keys[binding.key.toUpperCase()];\n    } else if (binding.key.length === 1) {\n      binding.key = binding.key.toUpperCase().charCodeAt(0);\n    } else {\n      return null;\n    }\n  }\n  if (binding.shortKey) {\n    binding[SHORTKEY] = binding.shortKey;\n    delete binding.shortKey;\n  }\n  return binding;\n}\n\nexports.default = Keyboard;\nexports.SHORTKEY = SHORTKEY;\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Cursor = function (_Parchment$Embed) {\n  _inherits(Cursor, _Parchment$Embed);\n\n  _createClass(Cursor, null, [{\n    key: 'value',\n    value: function value() {\n      return undefined;\n    }\n  }]);\n\n  function Cursor(domNode, selection) {\n    _classCallCheck(this, Cursor);\n\n    var _this = _possibleConstructorReturn(this, (Cursor.__proto__ || Object.getPrototypeOf(Cursor)).call(this, domNode));\n\n    _this.selection = selection;\n    _this.textNode = document.createTextNode(Cursor.CONTENTS);\n    _this.domNode.appendChild(_this.textNode);\n    _this._length = 0;\n    return _this;\n  }\n\n  _createClass(Cursor, [{\n    key: 'detach',\n    value: function detach() {\n      // super.detach() will also clear domNode.__blot\n      if (this.parent != null) this.parent.removeChild(this);\n    }\n  }, {\n    key: 'format',\n    value: function format(name, value) {\n      if (this._length !== 0) {\n        return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'format', this).call(this, name, value);\n      }\n      var target = this,\n          index = 0;\n      while (target != null && target.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {\n        index += target.offset(target.parent);\n        target = target.parent;\n      }\n      if (target != null) {\n        this._length = Cursor.CONTENTS.length;\n        target.optimize();\n        target.formatAt(index, Cursor.CONTENTS.length, name, value);\n        this._length = 0;\n      }\n    }\n  }, {\n    key: 'index',\n    value: function index(node, offset) {\n      if (node === this.textNode) return 0;\n      return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'index', this).call(this, node, offset);\n    }\n  }, {\n    key: 'length',\n    value: function length() {\n      return this._length;\n    }\n  }, {\n    key: 'position',\n    value: function position() {\n      return [this.textNode, this.textNode.data.length];\n    }\n  }, {\n    key: 'remove',\n    value: function remove() {\n      _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'remove', this).call(this);\n      this.parent = null;\n    }\n  }, {\n    key: 'restore',\n    value: function restore() {\n      if (this.selection.composing || this.parent == null) return;\n      var textNode = this.textNode;\n      var range = this.selection.getNativeRange();\n      var restoreText = void 0,\n          start = void 0,\n          end = void 0;\n      if (range != null && range.start.node === textNode && range.end.node === textNode) {\n        var _ref = [textNode, range.start.offset, range.end.offset];\n        restoreText = _ref[0];\n        start = _ref[1];\n        end = _ref[2];\n      }\n      // Link format will insert text outside of anchor tag\n      while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {\n        this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);\n      }\n      if (this.textNode.data !== Cursor.CONTENTS) {\n        var text = this.textNode.data.split(Cursor.CONTENTS).join('');\n        if (this.next instanceof _text2.default) {\n          restoreText = this.next.domNode;\n          this.next.insertAt(0, text);\n          this.textNode.data = Cursor.CONTENTS;\n        } else {\n          this.textNode.data = text;\n          this.parent.insertBefore(_parchment2.default.create(this.textNode), this);\n          this.textNode = document.createTextNode(Cursor.CONTENTS);\n          this.domNode.appendChild(this.textNode);\n        }\n      }\n      this.remove();\n      if (start != null) {\n        var _map = [start, end].map(function (offset) {\n          return Math.max(0, Math.min(restoreText.data.length, offset - 1));\n        });\n\n        var _map2 = _slicedToArray(_map, 2);\n\n        start = _map2[0];\n        end = _map2[1];\n\n        return {\n          startNode: restoreText,\n          startOffset: start,\n          endNode: restoreText,\n          endOffset: end\n        };\n      }\n    }\n  }, {\n    key: 'update',\n    value: function update(mutations, context) {\n      var _this2 = this;\n\n      if (mutations.some(function (mutation) {\n        return mutation.type === 'characterData' && mutation.target === _this2.textNode;\n      })) {\n        var range = this.restore();\n        if (range) context.range = range;\n      }\n    }\n  }, {\n    key: 'value',\n    value: function value() {\n      return '';\n    }\n  }]);\n\n  return Cursor;\n}(_parchment2.default.Embed);\n\nCursor.blotName = 'cursor';\nCursor.className = 'ql-cursor';\nCursor.tagName = 'span';\nCursor.CONTENTS = '\\uFEFF'; // Zero width no break space\n\n\nexports.default = Cursor;\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Container = function (_Parchment$Container) {\n  _inherits(Container, _Parchment$Container);\n\n  function Container() {\n    _classCallCheck(this, Container);\n\n    return _possibleConstructorReturn(this, (Container.__proto__ || Object.getPrototypeOf(Container)).apply(this, arguments));\n  }\n\n  return Container;\n}(_parchment2.default.Container);\n\nContainer.allowedChildren = [_block2.default, _block.BlockEmbed, Container];\n\nexports.default = Container;\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.ColorStyle = exports.ColorClass = exports.ColorAttributor = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ColorAttributor = function (_Parchment$Attributor) {\n  _inherits(ColorAttributor, _Parchment$Attributor);\n\n  function ColorAttributor() {\n    _classCallCheck(this, ColorAttributor);\n\n    return _possibleConstructorReturn(this, (ColorAttributor.__proto__ || Object.getPrototypeOf(ColorAttributor)).apply(this, arguments));\n  }\n\n  _createClass(ColorAttributor, [{\n    key: 'value',\n    value: function value(domNode) {\n      var value = _get(ColorAttributor.prototype.__proto__ || Object.getPrototypeOf(ColorAttributor.prototype), 'value', this).call(this, domNode);\n      if (!value.startsWith('rgb(')) return value;\n      value = value.replace(/^[^\\d]+/, '').replace(/[^\\d]+$/, '');\n      return '#' + value.split(',').map(function (component) {\n        return ('00' + parseInt(component).toString(16)).slice(-2);\n      }).join('');\n    }\n  }]);\n\n  return ColorAttributor;\n}(_parchment2.default.Attributor.Style);\n\nvar ColorClass = new _parchment2.default.Attributor.Class('color', 'ql-color', {\n  scope: _parchment2.default.Scope.INLINE\n});\nvar ColorStyle = new ColorAttributor('color', 'color', {\n  scope: _parchment2.default.Scope.INLINE\n});\n\nexports.ColorAttributor = ColorAttributor;\nexports.ColorClass = ColorClass;\nexports.ColorStyle = ColorStyle;\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.sanitize = exports.default = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Link = function (_Inline) {\n  _inherits(Link, _Inline);\n\n  function Link() {\n    _classCallCheck(this, Link);\n\n    return _possibleConstructorReturn(this, (Link.__proto__ || Object.getPrototypeOf(Link)).apply(this, arguments));\n  }\n\n  _createClass(Link, [{\n    key: 'format',\n    value: function format(name, value) {\n      if (name !== this.statics.blotName || !value) return _get(Link.prototype.__proto__ || Object.getPrototypeOf(Link.prototype), 'format', this).call(this, name, value);\n      value = this.constructor.sanitize(value);\n      this.domNode.setAttribute('href', value);\n    }\n  }], [{\n    key: 'create',\n    value: function create(value) {\n      var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value);\n      value = this.sanitize(value);\n      node.setAttribute('href', value);\n      node.setAttribute('rel', 'noopener noreferrer');\n      node.setAttribute('target', '_blank');\n      return node;\n    }\n  }, {\n    key: 'formats',\n    value: function formats(domNode) {\n      return domNode.getAttribute('href');\n    }\n  }, {\n    key: 'sanitize',\n    value: function sanitize(url) {\n      return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;\n    }\n  }]);\n\n  return Link;\n}(_inline2.default);\n\nLink.blotName = 'link';\nLink.tagName = 'A';\nLink.SANITIZED_URL = 'about:blank';\nLink.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];\n\nfunction _sanitize(url, protocols) {\n  var anchor = document.createElement('a');\n  anchor.href = url;\n  var protocol = anchor.href.slice(0, anchor.href.indexOf(':'));\n  return protocols.indexOf(protocol) > -1;\n}\n\nexports.default = Link;\nexports.sanitize = _sanitize;\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _keyboard = __webpack_require__(23);\n\nvar _keyboard2 = _interopRequireDefault(_keyboard);\n\nvar _dropdown = __webpack_require__(107);\n\nvar _dropdown2 = _interopRequireDefault(_dropdown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar optionsCounter = 0;\n\nfunction toggleAriaAttribute(element, attribute) {\n  element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));\n}\n\nvar Picker = function () {\n  function Picker(select) {\n    var _this = this;\n\n    _classCallCheck(this, Picker);\n\n    this.select = select;\n    this.container = document.createElement('span');\n    this.buildPicker();\n    this.select.style.display = 'none';\n    this.select.parentNode.insertBefore(this.container, this.select);\n\n    this.label.addEventListener('mousedown', function () {\n      _this.togglePicker();\n    });\n    this.label.addEventListener('keydown', function (event) {\n      switch (event.keyCode) {\n        // Allows the \"Enter\" key to open the picker\n        case _keyboard2.default.keys.ENTER:\n          _this.togglePicker();\n          break;\n\n        // Allows the \"Escape\" key to close the picker\n        case _keyboard2.default.keys.ESCAPE:\n          _this.escape();\n          event.preventDefault();\n          break;\n        default:\n      }\n    });\n    this.select.addEventListener('change', this.update.bind(this));\n  }\n\n  _createClass(Picker, [{\n    key: 'togglePicker',\n    value: function togglePicker() {\n      this.container.classList.toggle('ql-expanded');\n      // Toggle aria-expanded and aria-hidden to make the picker accessible\n      toggleAriaAttribute(this.label, 'aria-expanded');\n      toggleAriaAttribute(this.options, 'aria-hidden');\n    }\n  }, {\n    key: 'buildItem',\n    value: function buildItem(option) {\n      var _this2 = this;\n\n      var item = document.createElement('span');\n      item.tabIndex = '0';\n      item.setAttribute('role', 'button');\n\n      item.classList.add('ql-picker-item');\n      if (option.hasAttribute('value')) {\n        item.setAttribute('data-value', option.getAttribute('value'));\n      }\n      if (option.textContent) {\n        item.setAttribute('data-label', option.textContent);\n      }\n      item.addEventListener('click', function () {\n        _this2.selectItem(item, true);\n      });\n      item.addEventListener('keydown', function (event) {\n        switch (event.keyCode) {\n          // Allows the \"Enter\" key to select an item\n          case _keyboard2.default.keys.ENTER:\n            _this2.selectItem(item, true);\n            event.preventDefault();\n            break;\n\n          // Allows the \"Escape\" key to close the picker\n          case _keyboard2.default.keys.ESCAPE:\n            _this2.escape();\n            event.preventDefault();\n            break;\n          default:\n        }\n      });\n\n      return item;\n    }\n  }, {\n    key: 'buildLabel',\n    value: function buildLabel() {\n      var label = document.createElement('span');\n      label.classList.add('ql-picker-label');\n      label.innerHTML = _dropdown2.default;\n      label.tabIndex = '0';\n      label.setAttribute('role', 'button');\n      label.setAttribute('aria-expanded', 'false');\n      this.container.appendChild(label);\n      return label;\n    }\n  }, {\n    key: 'buildOptions',\n    value: function buildOptions() {\n      var _this3 = this;\n\n      var options = document.createElement('span');\n      options.classList.add('ql-picker-options');\n\n      // Don't want screen readers to read this until options are visible\n      options.setAttribute('aria-hidden', 'true');\n      options.tabIndex = '-1';\n\n      // Need a unique id for aria-controls\n      options.id = 'ql-picker-options-' + optionsCounter;\n      optionsCounter += 1;\n      this.label.setAttribute('aria-controls', options.id);\n\n      this.options = options;\n\n      [].slice.call(this.select.options).forEach(function (option) {\n        var item = _this3.buildItem(option);\n        options.appendChild(item);\n        if (option.selected === true) {\n          _this3.selectItem(item);\n        }\n      });\n      this.container.appendChild(options);\n    }\n  }, {\n    key: 'buildPicker',\n    value: function buildPicker() {\n      var _this4 = this;\n\n      [].slice.call(this.select.attributes).forEach(function (item) {\n        _this4.container.setAttribute(item.name, item.value);\n      });\n      this.container.classList.add('ql-picker');\n      this.label = this.buildLabel();\n      this.buildOptions();\n    }\n  }, {\n    key: 'escape',\n    value: function escape() {\n      var _this5 = this;\n\n      // Close menu and return focus to trigger label\n      this.close();\n      // Need setTimeout for accessibility to ensure that the browser executes\n      // focus on the next process thread and after any DOM content changes\n      setTimeout(function () {\n        return _this5.label.focus();\n      }, 1);\n    }\n  }, {\n    key: 'close',\n    value: function close() {\n      this.container.classList.remove('ql-expanded');\n      this.label.setAttribute('aria-expanded', 'false');\n      this.options.setAttribute('aria-hidden', 'true');\n    }\n  }, {\n    key: 'selectItem',\n    value: function selectItem(item) {\n      var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n      var selected = this.container.querySelector('.ql-selected');\n      if (item === selected) return;\n      if (selected != null) {\n        selected.classList.remove('ql-selected');\n      }\n      if (item == null) return;\n      item.classList.add('ql-selected');\n      this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);\n      if (item.hasAttribute('data-value')) {\n        this.label.setAttribute('data-value', item.getAttribute('data-value'));\n      } else {\n        this.label.removeAttribute('data-value');\n      }\n      if (item.hasAttribute('data-label')) {\n        this.label.setAttribute('data-label', item.getAttribute('data-label'));\n      } else {\n        this.label.removeAttribute('data-label');\n      }\n      if (trigger) {\n        if (typeof Event === 'function') {\n          this.select.dispatchEvent(new Event('change'));\n        } else if ((typeof Event === 'undefined' ? 'undefined' : _typeof(Event)) === 'object') {\n          // IE11\n          var event = document.createEvent('Event');\n          event.initEvent('change', true, true);\n          this.select.dispatchEvent(event);\n        }\n        this.close();\n      }\n    }\n  }, {\n    key: 'update',\n    value: function update() {\n      var option = void 0;\n      if (this.select.selectedIndex > -1) {\n        var item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];\n        option = this.select.options[this.select.selectedIndex];\n        this.selectItem(item);\n      } else {\n        this.selectItem(null);\n      }\n      var isActive = option != null && option !== this.select.querySelector('option[selected]');\n      this.label.classList.toggle('ql-active', isActive);\n    }\n  }]);\n\n  return Picker;\n}();\n\nexports.default = Picker;\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nvar _break = __webpack_require__(16);\n\nvar _break2 = _interopRequireDefault(_break);\n\nvar _container = __webpack_require__(25);\n\nvar _container2 = _interopRequireDefault(_container);\n\nvar _cursor = __webpack_require__(24);\n\nvar _cursor2 = _interopRequireDefault(_cursor);\n\nvar _embed = __webpack_require__(35);\n\nvar _embed2 = _interopRequireDefault(_embed);\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nvar _scroll = __webpack_require__(22);\n\nvar _scroll2 = _interopRequireDefault(_scroll);\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nvar _clipboard = __webpack_require__(55);\n\nvar _clipboard2 = _interopRequireDefault(_clipboard);\n\nvar _history = __webpack_require__(42);\n\nvar _history2 = _interopRequireDefault(_history);\n\nvar _keyboard = __webpack_require__(23);\n\nvar _keyboard2 = _interopRequireDefault(_keyboard);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_quill2.default.register({\n  'blots/block': _block2.default,\n  'blots/block/embed': _block.BlockEmbed,\n  'blots/break': _break2.default,\n  'blots/container': _container2.default,\n  'blots/cursor': _cursor2.default,\n  'blots/embed': _embed2.default,\n  'blots/inline': _inline2.default,\n  'blots/scroll': _scroll2.default,\n  'blots/text': _text2.default,\n\n  'modules/clipboard': _clipboard2.default,\n  'modules/history': _history2.default,\n  'modules/keyboard': _keyboard2.default\n});\n\n_parchment2.default.register(_block2.default, _break2.default, _cursor2.default, _inline2.default, _scroll2.default, _text2.default);\n\nexports.default = _quill2.default;\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Registry = __webpack_require__(1);\nvar ShadowBlot = /** @class */ (function () {\n    function ShadowBlot(domNode) {\n        this.domNode = domNode;\n        // @ts-ignore\n        this.domNode[Registry.DATA_KEY] = { blot: this };\n    }\n    Object.defineProperty(ShadowBlot.prototype, \"statics\", {\n        // Hack for accessing inherited static methods\n        get: function () {\n            return this.constructor;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    ShadowBlot.create = function (value) {\n        if (this.tagName == null) {\n            throw new Registry.ParchmentError('Blot definition missing tagName');\n        }\n        var node;\n        if (Array.isArray(this.tagName)) {\n            if (typeof value === 'string') {\n                value = value.toUpperCase();\n                if (parseInt(value).toString() === value) {\n                    value = parseInt(value);\n                }\n            }\n            if (typeof value === 'number') {\n                node = document.createElement(this.tagName[value - 1]);\n            }\n            else if (this.tagName.indexOf(value) > -1) {\n                node = document.createElement(value);\n            }\n            else {\n                node = document.createElement(this.tagName[0]);\n            }\n        }\n        else {\n            node = document.createElement(this.tagName);\n        }\n        if (this.className) {\n            node.classList.add(this.className);\n        }\n        return node;\n    };\n    ShadowBlot.prototype.attach = function () {\n        if (this.parent != null) {\n            this.scroll = this.parent.scroll;\n        }\n    };\n    ShadowBlot.prototype.clone = function () {\n        var domNode = this.domNode.cloneNode(false);\n        return Registry.create(domNode);\n    };\n    ShadowBlot.prototype.detach = function () {\n        if (this.parent != null)\n            this.parent.removeChild(this);\n        // @ts-ignore\n        delete this.domNode[Registry.DATA_KEY];\n    };\n    ShadowBlot.prototype.deleteAt = function (index, length) {\n        var blot = this.isolate(index, length);\n        blot.remove();\n    };\n    ShadowBlot.prototype.formatAt = function (index, length, name, value) {\n        var blot = this.isolate(index, length);\n        if (Registry.query(name, Registry.Scope.BLOT) != null && value) {\n            blot.wrap(name, value);\n        }\n        else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {\n            var parent = Registry.create(this.statics.scope);\n            blot.wrap(parent);\n            parent.format(name, value);\n        }\n    };\n    ShadowBlot.prototype.insertAt = function (index, value, def) {\n        var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);\n        var ref = this.split(index);\n        this.parent.insertBefore(blot, ref);\n    };\n    ShadowBlot.prototype.insertInto = function (parentBlot, refBlot) {\n        if (refBlot === void 0) { refBlot = null; }\n        if (this.parent != null) {\n            this.parent.children.remove(this);\n        }\n        var refDomNode = null;\n        parentBlot.children.insertBefore(this, refBlot);\n        if (refBlot != null) {\n            refDomNode = refBlot.domNode;\n        }\n        if (this.domNode.parentNode != parentBlot.domNode ||\n            this.domNode.nextSibling != refDomNode) {\n            parentBlot.domNode.insertBefore(this.domNode, refDomNode);\n        }\n        this.parent = parentBlot;\n        this.attach();\n    };\n    ShadowBlot.prototype.isolate = function (index, length) {\n        var target = this.split(index);\n        target.split(length);\n        return target;\n    };\n    ShadowBlot.prototype.length = function () {\n        return 1;\n    };\n    ShadowBlot.prototype.offset = function (root) {\n        if (root === void 0) { root = this.parent; }\n        if (this.parent == null || this == root)\n            return 0;\n        return this.parent.children.offset(this) + this.parent.offset(root);\n    };\n    ShadowBlot.prototype.optimize = function (context) {\n        // TODO clean up once we use WeakMap\n        // @ts-ignore\n        if (this.domNode[Registry.DATA_KEY] != null) {\n            // @ts-ignore\n            delete this.domNode[Registry.DATA_KEY].mutations;\n        }\n    };\n    ShadowBlot.prototype.remove = function () {\n        if (this.domNode.parentNode != null) {\n            this.domNode.parentNode.removeChild(this.domNode);\n        }\n        this.detach();\n    };\n    ShadowBlot.prototype.replace = function (target) {\n        if (target.parent == null)\n            return;\n        target.parent.insertBefore(this, target.next);\n        target.remove();\n    };\n    ShadowBlot.prototype.replaceWith = function (name, value) {\n        var replacement = typeof name === 'string' ? Registry.create(name, value) : name;\n        replacement.replace(this);\n        return replacement;\n    };\n    ShadowBlot.prototype.split = function (index, force) {\n        return index === 0 ? this : this.next;\n    };\n    ShadowBlot.prototype.update = function (mutations, context) {\n        // Nothing to do by default\n    };\n    ShadowBlot.prototype.wrap = function (name, value) {\n        var wrapper = typeof name === 'string' ? Registry.create(name, value) : name;\n        if (this.parent != null) {\n            this.parent.insertBefore(wrapper, this.next);\n        }\n        wrapper.appendChild(this);\n        return wrapper;\n    };\n    ShadowBlot.blotName = 'abstract';\n    return ShadowBlot;\n}());\nexports.default = ShadowBlot;\n\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar attributor_1 = __webpack_require__(12);\nvar class_1 = __webpack_require__(32);\nvar style_1 = __webpack_require__(33);\nvar Registry = __webpack_require__(1);\nvar AttributorStore = /** @class */ (function () {\n    function AttributorStore(domNode) {\n        this.attributes = {};\n        this.domNode = domNode;\n        this.build();\n    }\n    AttributorStore.prototype.attribute = function (attribute, value) {\n        // verb\n        if (value) {\n            if (attribute.add(this.domNode, value)) {\n                if (attribute.value(this.domNode) != null) {\n                    this.attributes[attribute.attrName] = attribute;\n                }\n                else {\n                    delete this.attributes[attribute.attrName];\n                }\n            }\n        }\n        else {\n            attribute.remove(this.domNode);\n            delete this.attributes[attribute.attrName];\n        }\n    };\n    AttributorStore.prototype.build = function () {\n        var _this = this;\n        this.attributes = {};\n        var attributes = attributor_1.default.keys(this.domNode);\n        var classes = class_1.default.keys(this.domNode);\n        var styles = style_1.default.keys(this.domNode);\n        attributes\n            .concat(classes)\n            .concat(styles)\n            .forEach(function (name) {\n            var attr = Registry.query(name, Registry.Scope.ATTRIBUTE);\n            if (attr instanceof attributor_1.default) {\n                _this.attributes[attr.attrName] = attr;\n            }\n        });\n    };\n    AttributorStore.prototype.copy = function (target) {\n        var _this = this;\n        Object.keys(this.attributes).forEach(function (key) {\n            var value = _this.attributes[key].value(_this.domNode);\n            target.format(key, value);\n        });\n    };\n    AttributorStore.prototype.move = function (target) {\n        var _this = this;\n        this.copy(target);\n        Object.keys(this.attributes).forEach(function (key) {\n            _this.attributes[key].remove(_this.domNode);\n        });\n        this.attributes = {};\n    };\n    AttributorStore.prototype.values = function () {\n        var _this = this;\n        return Object.keys(this.attributes).reduce(function (attributes, name) {\n            attributes[name] = _this.attributes[name].value(_this.domNode);\n            return attributes;\n        }, {});\n    };\n    return AttributorStore;\n}());\nexports.default = AttributorStore;\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar attributor_1 = __webpack_require__(12);\nfunction match(node, prefix) {\n    var className = node.getAttribute('class') || '';\n    return className.split(/\\s+/).filter(function (name) {\n        return name.indexOf(prefix + \"-\") === 0;\n    });\n}\nvar ClassAttributor = /** @class */ (function (_super) {\n    __extends(ClassAttributor, _super);\n    function ClassAttributor() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    ClassAttributor.keys = function (node) {\n        return (node.getAttribute('class') || '').split(/\\s+/).map(function (name) {\n            return name\n                .split('-')\n                .slice(0, -1)\n                .join('-');\n        });\n    };\n    ClassAttributor.prototype.add = function (node, value) {\n        if (!this.canAdd(node, value))\n            return false;\n        this.remove(node);\n        node.classList.add(this.keyName + \"-\" + value);\n        return true;\n    };\n    ClassAttributor.prototype.remove = function (node) {\n        var matches = match(node, this.keyName);\n        matches.forEach(function (name) {\n            node.classList.remove(name);\n        });\n        if (node.classList.length === 0) {\n            node.removeAttribute('class');\n        }\n    };\n    ClassAttributor.prototype.value = function (node) {\n        var result = match(node, this.keyName)[0] || '';\n        var value = result.slice(this.keyName.length + 1); // +1 for hyphen\n        return this.canAdd(node, value) ? value : '';\n    };\n    return ClassAttributor;\n}(attributor_1.default));\nexports.default = ClassAttributor;\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar attributor_1 = __webpack_require__(12);\nfunction camelize(name) {\n    var parts = name.split('-');\n    var rest = parts\n        .slice(1)\n        .map(function (part) {\n        return part[0].toUpperCase() + part.slice(1);\n    })\n        .join('');\n    return parts[0] + rest;\n}\nvar StyleAttributor = /** @class */ (function (_super) {\n    __extends(StyleAttributor, _super);\n    function StyleAttributor() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    StyleAttributor.keys = function (node) {\n        return (node.getAttribute('style') || '').split(';').map(function (value) {\n            var arr = value.split(':');\n            return arr[0].trim();\n        });\n    };\n    StyleAttributor.prototype.add = function (node, value) {\n        if (!this.canAdd(node, value))\n            return false;\n        // @ts-ignore\n        node.style[camelize(this.keyName)] = value;\n        return true;\n    };\n    StyleAttributor.prototype.remove = function (node) {\n        // @ts-ignore\n        node.style[camelize(this.keyName)] = '';\n        if (!node.getAttribute('style')) {\n            node.removeAttribute('style');\n        }\n    };\n    StyleAttributor.prototype.value = function (node) {\n        // @ts-ignore\n        var value = node.style[camelize(this.keyName)];\n        return this.canAdd(node, value) ? value : '';\n    };\n    return StyleAttributor;\n}(attributor_1.default));\nexports.default = StyleAttributor;\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Theme = function () {\n  function Theme(quill, options) {\n    _classCallCheck(this, Theme);\n\n    this.quill = quill;\n    this.options = options;\n    this.modules = {};\n  }\n\n  _createClass(Theme, [{\n    key: 'init',\n    value: function init() {\n      var _this = this;\n\n      Object.keys(this.options.modules).forEach(function (name) {\n        if (_this.modules[name] == null) {\n          _this.addModule(name);\n        }\n      });\n    }\n  }, {\n    key: 'addModule',\n    value: function addModule(name) {\n      var moduleClass = this.quill.constructor.import('modules/' + name);\n      this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {});\n      return this.modules[name];\n    }\n  }]);\n\n  return Theme;\n}();\n\nTheme.DEFAULTS = {\n  modules: {}\n};\nTheme.themes = {\n  'default': Theme\n};\n\nexports.default = Theme;\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _text = __webpack_require__(7);\n\nvar _text2 = _interopRequireDefault(_text);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar GUARD_TEXT = '\\uFEFF';\n\nvar Embed = function (_Parchment$Embed) {\n  _inherits(Embed, _Parchment$Embed);\n\n  function Embed(node) {\n    _classCallCheck(this, Embed);\n\n    var _this = _possibleConstructorReturn(this, (Embed.__proto__ || Object.getPrototypeOf(Embed)).call(this, node));\n\n    _this.contentNode = document.createElement('span');\n    _this.contentNode.setAttribute('contenteditable', false);\n    [].slice.call(_this.domNode.childNodes).forEach(function (childNode) {\n      _this.contentNode.appendChild(childNode);\n    });\n    _this.leftGuard = document.createTextNode(GUARD_TEXT);\n    _this.rightGuard = document.createTextNode(GUARD_TEXT);\n    _this.domNode.appendChild(_this.leftGuard);\n    _this.domNode.appendChild(_this.contentNode);\n    _this.domNode.appendChild(_this.rightGuard);\n    return _this;\n  }\n\n  _createClass(Embed, [{\n    key: 'index',\n    value: function index(node, offset) {\n      if (node === this.leftGuard) return 0;\n      if (node === this.rightGuard) return 1;\n      return _get(Embed.prototype.__proto__ || Object.getPrototypeOf(Embed.prototype), 'index', this).call(this, node, offset);\n    }\n  }, {\n    key: 'restore',\n    value: function restore(node) {\n      var range = void 0,\n          textNode = void 0;\n      var text = node.data.split(GUARD_TEXT).join('');\n      if (node === this.leftGuard) {\n        if (this.prev instanceof _text2.default) {\n          var prevLength = this.prev.length();\n          this.prev.insertAt(prevLength, text);\n          range = {\n            startNode: this.prev.domNode,\n            startOffset: prevLength + text.length\n          };\n        } else {\n          textNode = document.createTextNode(text);\n          this.parent.insertBefore(_parchment2.default.create(textNode), this);\n          range = {\n            startNode: textNode,\n            startOffset: text.length\n          };\n        }\n      } else if (node === this.rightGuard) {\n        if (this.next instanceof _text2.default) {\n          this.next.insertAt(0, text);\n          range = {\n            startNode: this.next.domNode,\n            startOffset: text.length\n          };\n        } else {\n          textNode = document.createTextNode(text);\n          this.parent.insertBefore(_parchment2.default.create(textNode), this.next);\n          range = {\n            startNode: textNode,\n            startOffset: text.length\n          };\n        }\n      }\n      node.data = GUARD_TEXT;\n      return range;\n    }\n  }, {\n    key: 'update',\n    value: function update(mutations, context) {\n      var _this2 = this;\n\n      mutations.forEach(function (mutation) {\n        if (mutation.type === 'characterData' && (mutation.target === _this2.leftGuard || mutation.target === _this2.rightGuard)) {\n          var range = _this2.restore(mutation.target);\n          if (range) context.range = range;\n        }\n      });\n    }\n  }]);\n\n  return Embed;\n}(_parchment2.default.Embed);\n\nexports.default = Embed;\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.AlignStyle = exports.AlignClass = exports.AlignAttribute = undefined;\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar config = {\n  scope: _parchment2.default.Scope.BLOCK,\n  whitelist: ['right', 'center', 'justify']\n};\n\nvar AlignAttribute = new _parchment2.default.Attributor.Attribute('align', 'align', config);\nvar AlignClass = new _parchment2.default.Attributor.Class('align', 'ql-align', config);\nvar AlignStyle = new _parchment2.default.Attributor.Style('align', 'text-align', config);\n\nexports.AlignAttribute = AlignAttribute;\nexports.AlignClass = AlignClass;\nexports.AlignStyle = AlignStyle;\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.BackgroundStyle = exports.BackgroundClass = undefined;\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _color = __webpack_require__(26);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar BackgroundClass = new _parchment2.default.Attributor.Class('background', 'ql-bg', {\n  scope: _parchment2.default.Scope.INLINE\n});\nvar BackgroundStyle = new _color.ColorAttributor('background', 'background-color', {\n  scope: _parchment2.default.Scope.INLINE\n});\n\nexports.BackgroundClass = BackgroundClass;\nexports.BackgroundStyle = BackgroundStyle;\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.DirectionStyle = exports.DirectionClass = exports.DirectionAttribute = undefined;\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar config = {\n  scope: _parchment2.default.Scope.BLOCK,\n  whitelist: ['rtl']\n};\n\nvar DirectionAttribute = new _parchment2.default.Attributor.Attribute('direction', 'dir', config);\nvar DirectionClass = new _parchment2.default.Attributor.Class('direction', 'ql-direction', config);\nvar DirectionStyle = new _parchment2.default.Attributor.Style('direction', 'direction', config);\n\nexports.DirectionAttribute = DirectionAttribute;\nexports.DirectionClass = DirectionClass;\nexports.DirectionStyle = DirectionStyle;\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.FontClass = exports.FontStyle = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar config = {\n  scope: _parchment2.default.Scope.INLINE,\n  whitelist: ['serif', 'monospace']\n};\n\nvar FontClass = new _parchment2.default.Attributor.Class('font', 'ql-font', config);\n\nvar FontStyleAttributor = function (_Parchment$Attributor) {\n  _inherits(FontStyleAttributor, _Parchment$Attributor);\n\n  function FontStyleAttributor() {\n    _classCallCheck(this, FontStyleAttributor);\n\n    return _possibleConstructorReturn(this, (FontStyleAttributor.__proto__ || Object.getPrototypeOf(FontStyleAttributor)).apply(this, arguments));\n  }\n\n  _createClass(FontStyleAttributor, [{\n    key: 'value',\n    value: function value(node) {\n      return _get(FontStyleAttributor.prototype.__proto__ || Object.getPrototypeOf(FontStyleAttributor.prototype), 'value', this).call(this, node).replace(/[\"']/g, '');\n    }\n  }]);\n\n  return FontStyleAttributor;\n}(_parchment2.default.Attributor.Style);\n\nvar FontStyle = new FontStyleAttributor('font', 'font-family', config);\n\nexports.FontStyle = FontStyle;\nexports.FontClass = FontClass;\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.SizeStyle = exports.SizeClass = undefined;\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SizeClass = new _parchment2.default.Attributor.Class('size', 'ql-size', {\n  scope: _parchment2.default.Scope.INLINE,\n  whitelist: ['small', 'large', 'huge']\n});\nvar SizeStyle = new _parchment2.default.Attributor.Style('size', 'font-size', {\n  scope: _parchment2.default.Scope.INLINE,\n  whitelist: ['10px', '18px', '32px']\n});\n\nexports.SizeClass = SizeClass;\nexports.SizeStyle = SizeStyle;\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = {\n  'align': {\n    '': __webpack_require__(76),\n    'center': __webpack_require__(77),\n    'right': __webpack_require__(78),\n    'justify': __webpack_require__(79)\n  },\n  'background': __webpack_require__(80),\n  'blockquote': __webpack_require__(81),\n  'bold': __webpack_require__(82),\n  'clean': __webpack_require__(83),\n  'code': __webpack_require__(58),\n  'code-block': __webpack_require__(58),\n  'color': __webpack_require__(84),\n  'direction': {\n    '': __webpack_require__(85),\n    'rtl': __webpack_require__(86)\n  },\n  'float': {\n    'center': __webpack_require__(87),\n    'full': __webpack_require__(88),\n    'left': __webpack_require__(89),\n    'right': __webpack_require__(90)\n  },\n  'formula': __webpack_require__(91),\n  'header': {\n    '1': __webpack_require__(92),\n    '2': __webpack_require__(93)\n  },\n  'italic': __webpack_require__(94),\n  'image': __webpack_require__(95),\n  'indent': {\n    '+1': __webpack_require__(96),\n    '-1': __webpack_require__(97)\n  },\n  'link': __webpack_require__(98),\n  'list': {\n    'ordered': __webpack_require__(99),\n    'bullet': __webpack_require__(100),\n    'check': __webpack_require__(101)\n  },\n  'script': {\n    'sub': __webpack_require__(102),\n    'super': __webpack_require__(103)\n  },\n  'strike': __webpack_require__(104),\n  'underline': __webpack_require__(105),\n  'video': __webpack_require__(106)\n};\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getLastChangeIndex = exports.default = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar History = function (_Module) {\n  _inherits(History, _Module);\n\n  function History(quill, options) {\n    _classCallCheck(this, History);\n\n    var _this = _possibleConstructorReturn(this, (History.__proto__ || Object.getPrototypeOf(History)).call(this, quill, options));\n\n    _this.lastRecorded = 0;\n    _this.ignoreChange = false;\n    _this.clear();\n    _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (eventName, delta, oldDelta, source) {\n      if (eventName !== _quill2.default.events.TEXT_CHANGE || _this.ignoreChange) return;\n      if (!_this.options.userOnly || source === _quill2.default.sources.USER) {\n        _this.record(delta, oldDelta);\n      } else {\n        _this.transform(delta);\n      }\n    });\n    _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true }, _this.undo.bind(_this));\n    _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true, shiftKey: true }, _this.redo.bind(_this));\n    if (/Win/i.test(navigator.platform)) {\n      _this.quill.keyboard.addBinding({ key: 'Y', shortKey: true }, _this.redo.bind(_this));\n    }\n    return _this;\n  }\n\n  _createClass(History, [{\n    key: 'change',\n    value: function change(source, dest) {\n      if (this.stack[source].length === 0) return;\n      var delta = this.stack[source].pop();\n      this.stack[dest].push(delta);\n      this.lastRecorded = 0;\n      this.ignoreChange = true;\n      this.quill.updateContents(delta[source], _quill2.default.sources.USER);\n      this.ignoreChange = false;\n      var index = getLastChangeIndex(delta[source]);\n      this.quill.setSelection(index);\n    }\n  }, {\n    key: 'clear',\n    value: function clear() {\n      this.stack = { undo: [], redo: [] };\n    }\n  }, {\n    key: 'cutoff',\n    value: function cutoff() {\n      this.lastRecorded = 0;\n    }\n  }, {\n    key: 'record',\n    value: function record(changeDelta, oldDelta) {\n      if (changeDelta.ops.length === 0) return;\n      this.stack.redo = [];\n      var undoDelta = this.quill.getContents().diff(oldDelta);\n      var timestamp = Date.now();\n      if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {\n        var delta = this.stack.undo.pop();\n        undoDelta = undoDelta.compose(delta.undo);\n        changeDelta = delta.redo.compose(changeDelta);\n      } else {\n        this.lastRecorded = timestamp;\n      }\n      this.stack.undo.push({\n        redo: changeDelta,\n        undo: undoDelta\n      });\n      if (this.stack.undo.length > this.options.maxStack) {\n        this.stack.undo.shift();\n      }\n    }\n  }, {\n    key: 'redo',\n    value: function redo() {\n      this.change('redo', 'undo');\n    }\n  }, {\n    key: 'transform',\n    value: function transform(delta) {\n      this.stack.undo.forEach(function (change) {\n        change.undo = delta.transform(change.undo, true);\n        change.redo = delta.transform(change.redo, true);\n      });\n      this.stack.redo.forEach(function (change) {\n        change.undo = delta.transform(change.undo, true);\n        change.redo = delta.transform(change.redo, true);\n      });\n    }\n  }, {\n    key: 'undo',\n    value: function undo() {\n      this.change('undo', 'redo');\n    }\n  }]);\n\n  return History;\n}(_module2.default);\n\nHistory.DEFAULTS = {\n  delay: 1000,\n  maxStack: 100,\n  userOnly: false\n};\n\nfunction endsWithNewlineChange(delta) {\n  var lastOp = delta.ops[delta.ops.length - 1];\n  if (lastOp == null) return false;\n  if (lastOp.insert != null) {\n    return typeof lastOp.insert === 'string' && lastOp.insert.endsWith('\\n');\n  }\n  if (lastOp.attributes != null) {\n    return Object.keys(lastOp.attributes).some(function (attr) {\n      return _parchment2.default.query(attr, _parchment2.default.Scope.BLOCK) != null;\n    });\n  }\n  return false;\n}\n\nfunction getLastChangeIndex(delta) {\n  var deleteLength = delta.reduce(function (length, op) {\n    length += op.delete || 0;\n    return length;\n  }, 0);\n  var changeIndex = delta.length() - deleteLength;\n  if (endsWithNewlineChange(delta)) {\n    changeIndex -= 1;\n  }\n  return changeIndex;\n}\n\nexports.default = History;\nexports.getLastChangeIndex = getLastChangeIndex;\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.BaseTooltip = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _emitter = __webpack_require__(8);\n\nvar _emitter2 = _interopRequireDefault(_emitter);\n\nvar _keyboard = __webpack_require__(23);\n\nvar _keyboard2 = _interopRequireDefault(_keyboard);\n\nvar _theme = __webpack_require__(34);\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _colorPicker = __webpack_require__(59);\n\nvar _colorPicker2 = _interopRequireDefault(_colorPicker);\n\nvar _iconPicker = __webpack_require__(60);\n\nvar _iconPicker2 = _interopRequireDefault(_iconPicker);\n\nvar _picker = __webpack_require__(28);\n\nvar _picker2 = _interopRequireDefault(_picker);\n\nvar _tooltip = __webpack_require__(61);\n\nvar _tooltip2 = _interopRequireDefault(_tooltip);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ALIGNS = [false, 'center', 'right', 'justify'];\n\nvar COLORS = [\"#000000\", \"#e60000\", \"#ff9900\", \"#ffff00\", \"#008a00\", \"#0066cc\", \"#9933ff\", \"#ffffff\", \"#facccc\", \"#ffebcc\", \"#ffffcc\", \"#cce8cc\", \"#cce0f5\", \"#ebd6ff\", \"#bbbbbb\", \"#f06666\", \"#ffc266\", \"#ffff66\", \"#66b966\", \"#66a3e0\", \"#c285ff\", \"#888888\", \"#a10000\", \"#b26b00\", \"#b2b200\", \"#006100\", \"#0047b2\", \"#6b24b2\", \"#444444\", \"#5c0000\", \"#663d00\", \"#666600\", \"#003700\", \"#002966\", \"#3d1466\"];\n\nvar FONTS = [false, 'serif', 'monospace'];\n\nvar HEADERS = ['1', '2', '3', false];\n\nvar SIZES = ['small', false, 'large', 'huge'];\n\nvar BaseTheme = function (_Theme) {\n  _inherits(BaseTheme, _Theme);\n\n  function BaseTheme(quill, options) {\n    _classCallCheck(this, BaseTheme);\n\n    var _this = _possibleConstructorReturn(this, (BaseTheme.__proto__ || Object.getPrototypeOf(BaseTheme)).call(this, quill, options));\n\n    var listener = function listener(e) {\n      if (!document.body.contains(quill.root)) {\n        return document.body.removeEventListener('click', listener);\n      }\n      if (_this.tooltip != null && !_this.tooltip.root.contains(e.target) && document.activeElement !== _this.tooltip.textbox && !_this.quill.hasFocus()) {\n        _this.tooltip.hide();\n      }\n      if (_this.pickers != null) {\n        _this.pickers.forEach(function (picker) {\n          if (!picker.container.contains(e.target)) {\n            picker.close();\n          }\n        });\n      }\n    };\n    quill.emitter.listenDOM('click', document.body, listener);\n    return _this;\n  }\n\n  _createClass(BaseTheme, [{\n    key: 'addModule',\n    value: function addModule(name) {\n      var module = _get(BaseTheme.prototype.__proto__ || Object.getPrototypeOf(BaseTheme.prototype), 'addModule', this).call(this, name);\n      if (name === 'toolbar') {\n        this.extendToolbar(module);\n      }\n      return module;\n    }\n  }, {\n    key: 'buildButtons',\n    value: function buildButtons(buttons, icons) {\n      buttons.forEach(function (button) {\n        var className = button.getAttribute('class') || '';\n        className.split(/\\s+/).forEach(function (name) {\n          if (!name.startsWith('ql-')) return;\n          name = name.slice('ql-'.length);\n          if (icons[name] == null) return;\n          if (name === 'direction') {\n            button.innerHTML = icons[name][''] + icons[name]['rtl'];\n          } else if (typeof icons[name] === 'string') {\n            button.innerHTML = icons[name];\n          } else {\n            var value = button.value || '';\n            if (value != null && icons[name][value]) {\n              button.innerHTML = icons[name][value];\n            }\n          }\n        });\n      });\n    }\n  }, {\n    key: 'buildPickers',\n    value: function buildPickers(selects, icons) {\n      var _this2 = this;\n\n      this.pickers = selects.map(function (select) {\n        if (select.classList.contains('ql-align')) {\n          if (select.querySelector('option') == null) {\n            fillSelect(select, ALIGNS);\n          }\n          return new _iconPicker2.default(select, icons.align);\n        } else if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {\n          var format = select.classList.contains('ql-background') ? 'background' : 'color';\n          if (select.querySelector('option') == null) {\n            fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');\n          }\n          return new _colorPicker2.default(select, icons[format]);\n        } else {\n          if (select.querySelector('option') == null) {\n            if (select.classList.contains('ql-font')) {\n              fillSelect(select, FONTS);\n            } else if (select.classList.contains('ql-header')) {\n              fillSelect(select, HEADERS);\n            } else if (select.classList.contains('ql-size')) {\n              fillSelect(select, SIZES);\n            }\n          }\n          return new _picker2.default(select);\n        }\n      });\n      var update = function update() {\n        _this2.pickers.forEach(function (picker) {\n          picker.update();\n        });\n      };\n      this.quill.on(_emitter2.default.events.EDITOR_CHANGE, update);\n    }\n  }]);\n\n  return BaseTheme;\n}(_theme2.default);\n\nBaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        formula: function formula() {\n          this.quill.theme.tooltip.edit('formula');\n        },\n        image: function image() {\n          var _this3 = this;\n\n          var fileInput = this.container.querySelector('input.ql-image[type=file]');\n          if (fileInput == null) {\n            fileInput = document.createElement('input');\n            fileInput.setAttribute('type', 'file');\n            fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon');\n            fileInput.classList.add('ql-image');\n            fileInput.addEventListener('change', function () {\n              if (fileInput.files != null && fileInput.files[0] != null) {\n                var reader = new FileReader();\n                reader.onload = function (e) {\n                  var range = _this3.quill.getSelection(true);\n                  _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);\n                  _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);\n                  fileInput.value = \"\";\n                };\n                reader.readAsDataURL(fileInput.files[0]);\n              }\n            });\n            this.container.appendChild(fileInput);\n          }\n          fileInput.click();\n        },\n        video: function video() {\n          this.quill.theme.tooltip.edit('video');\n        }\n      }\n    }\n  }\n});\n\nvar BaseTooltip = function (_Tooltip) {\n  _inherits(BaseTooltip, _Tooltip);\n\n  function BaseTooltip(quill, boundsContainer) {\n    _classCallCheck(this, BaseTooltip);\n\n    var _this4 = _possibleConstructorReturn(this, (BaseTooltip.__proto__ || Object.getPrototypeOf(BaseTooltip)).call(this, quill, boundsContainer));\n\n    _this4.textbox = _this4.root.querySelector('input[type=\"text\"]');\n    _this4.listen();\n    return _this4;\n  }\n\n  _createClass(BaseTooltip, [{\n    key: 'listen',\n    value: function listen() {\n      var _this5 = this;\n\n      this.textbox.addEventListener('keydown', function (event) {\n        if (_keyboard2.default.match(event, 'enter')) {\n          _this5.save();\n          event.preventDefault();\n        } else if (_keyboard2.default.match(event, 'escape')) {\n          _this5.cancel();\n          event.preventDefault();\n        }\n      });\n    }\n  }, {\n    key: 'cancel',\n    value: function cancel() {\n      this.hide();\n    }\n  }, {\n    key: 'edit',\n    value: function edit() {\n      var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';\n      var preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n      this.root.classList.remove('ql-hidden');\n      this.root.classList.add('ql-editing');\n      if (preview != null) {\n        this.textbox.value = preview;\n      } else if (mode !== this.root.getAttribute('data-mode')) {\n        this.textbox.value = '';\n      }\n      this.position(this.quill.getBounds(this.quill.selection.savedRange));\n      this.textbox.select();\n      this.textbox.setAttribute('placeholder', this.textbox.getAttribute('data-' + mode) || '');\n      this.root.setAttribute('data-mode', mode);\n    }\n  }, {\n    key: 'restoreFocus',\n    value: function restoreFocus() {\n      var scrollTop = this.quill.scrollingContainer.scrollTop;\n      this.quill.focus();\n      this.quill.scrollingContainer.scrollTop = scrollTop;\n    }\n  }, {\n    key: 'save',\n    value: function save() {\n      var value = this.textbox.value;\n      switch (this.root.getAttribute('data-mode')) {\n        case 'link':\n          {\n            var scrollTop = this.quill.root.scrollTop;\n            if (this.linkRange) {\n              this.quill.formatText(this.linkRange, 'link', value, _emitter2.default.sources.USER);\n              delete this.linkRange;\n            } else {\n              this.restoreFocus();\n              this.quill.format('link', value, _emitter2.default.sources.USER);\n            }\n            this.quill.root.scrollTop = scrollTop;\n            break;\n          }\n        case 'video':\n          {\n            value = extractVideoUrl(value);\n          } // eslint-disable-next-line no-fallthrough\n        case 'formula':\n          {\n            if (!value) break;\n            var range = this.quill.getSelection(true);\n            if (range != null) {\n              var index = range.index + range.length;\n              this.quill.insertEmbed(index, this.root.getAttribute('data-mode'), value, _emitter2.default.sources.USER);\n              if (this.root.getAttribute('data-mode') === 'formula') {\n                this.quill.insertText(index + 1, ' ', _emitter2.default.sources.USER);\n              }\n              this.quill.setSelection(index + 2, _emitter2.default.sources.USER);\n            }\n            break;\n          }\n        default:\n      }\n      this.textbox.value = '';\n      this.hide();\n    }\n  }]);\n\n  return BaseTooltip;\n}(_tooltip2.default);\n\nfunction extractVideoUrl(url) {\n  var match = url.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtube\\.com\\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtu\\.be\\/([a-zA-Z0-9_-]+)/);\n  if (match) {\n    return (match[1] || 'https') + '://www.youtube.com/embed/' + match[2] + '?showinfo=0';\n  }\n  if (match = url.match(/^(?:(https?):\\/\\/)?(?:www\\.)?vimeo\\.com\\/(\\d+)/)) {\n    // eslint-disable-line no-cond-assign\n    return (match[1] || 'https') + '://player.vimeo.com/video/' + match[2] + '/';\n  }\n  return url;\n}\n\nfunction fillSelect(select, values) {\n  var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n  values.forEach(function (value) {\n    var option = document.createElement('option');\n    if (value === defaultValue) {\n      option.setAttribute('selected', 'selected');\n    } else {\n      option.setAttribute('value', value);\n    }\n    select.appendChild(option);\n  });\n}\n\nexports.BaseTooltip = BaseTooltip;\nexports.default = BaseTheme;\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar LinkedList = /** @class */ (function () {\n    function LinkedList() {\n        this.head = this.tail = null;\n        this.length = 0;\n    }\n    LinkedList.prototype.append = function () {\n        var nodes = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            nodes[_i] = arguments[_i];\n        }\n        this.insertBefore(nodes[0], null);\n        if (nodes.length > 1) {\n            this.append.apply(this, nodes.slice(1));\n        }\n    };\n    LinkedList.prototype.contains = function (node) {\n        var cur, next = this.iterator();\n        while ((cur = next())) {\n            if (cur === node)\n                return true;\n        }\n        return false;\n    };\n    LinkedList.prototype.insertBefore = function (node, refNode) {\n        if (!node)\n            return;\n        node.next = refNode;\n        if (refNode != null) {\n            node.prev = refNode.prev;\n            if (refNode.prev != null) {\n                refNode.prev.next = node;\n            }\n            refNode.prev = node;\n            if (refNode === this.head) {\n                this.head = node;\n            }\n        }\n        else if (this.tail != null) {\n            this.tail.next = node;\n            node.prev = this.tail;\n            this.tail = node;\n        }\n        else {\n            node.prev = null;\n            this.head = this.tail = node;\n        }\n        this.length += 1;\n    };\n    LinkedList.prototype.offset = function (target) {\n        var index = 0, cur = this.head;\n        while (cur != null) {\n            if (cur === target)\n                return index;\n            index += cur.length();\n            cur = cur.next;\n        }\n        return -1;\n    };\n    LinkedList.prototype.remove = function (node) {\n        if (!this.contains(node))\n            return;\n        if (node.prev != null)\n            node.prev.next = node.next;\n        if (node.next != null)\n            node.next.prev = node.prev;\n        if (node === this.head)\n            this.head = node.next;\n        if (node === this.tail)\n            this.tail = node.prev;\n        this.length -= 1;\n    };\n    LinkedList.prototype.iterator = function (curNode) {\n        if (curNode === void 0) { curNode = this.head; }\n        // TODO use yield when we can\n        return function () {\n            var ret = curNode;\n            if (curNode != null)\n                curNode = curNode.next;\n            return ret;\n        };\n    };\n    LinkedList.prototype.find = function (index, inclusive) {\n        if (inclusive === void 0) { inclusive = false; }\n        var cur, next = this.iterator();\n        while ((cur = next())) {\n            var length = cur.length();\n            if (index < length ||\n                (inclusive && index === length && (cur.next == null || cur.next.length() !== 0))) {\n                return [cur, index];\n            }\n            index -= length;\n        }\n        return [null, 0];\n    };\n    LinkedList.prototype.forEach = function (callback) {\n        var cur, next = this.iterator();\n        while ((cur = next())) {\n            callback(cur);\n        }\n    };\n    LinkedList.prototype.forEachAt = function (index, length, callback) {\n        if (length <= 0)\n            return;\n        var _a = this.find(index), startNode = _a[0], offset = _a[1];\n        var cur, curIndex = index - offset, next = this.iterator(startNode);\n        while ((cur = next()) && curIndex < index + length) {\n            var curLength = cur.length();\n            if (index > curIndex) {\n                callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));\n            }\n            else {\n                callback(cur, 0, Math.min(curLength, index + length - curIndex));\n            }\n            curIndex += curLength;\n        }\n    };\n    LinkedList.prototype.map = function (callback) {\n        return this.reduce(function (memo, cur) {\n            memo.push(callback(cur));\n            return memo;\n        }, []);\n    };\n    LinkedList.prototype.reduce = function (callback, memo) {\n        var cur, next = this.iterator();\n        while ((cur = next())) {\n            memo = callback(memo, cur);\n        }\n        return memo;\n    };\n    return LinkedList;\n}());\nexports.default = LinkedList;\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar container_1 = __webpack_require__(17);\nvar Registry = __webpack_require__(1);\nvar OBSERVER_CONFIG = {\n    attributes: true,\n    characterData: true,\n    characterDataOldValue: true,\n    childList: true,\n    subtree: true,\n};\nvar MAX_OPTIMIZE_ITERATIONS = 100;\nvar ScrollBlot = /** @class */ (function (_super) {\n    __extends(ScrollBlot, _super);\n    function ScrollBlot(node) {\n        var _this = _super.call(this, node) || this;\n        _this.scroll = _this;\n        _this.observer = new MutationObserver(function (mutations) {\n            _this.update(mutations);\n        });\n        _this.observer.observe(_this.domNode, OBSERVER_CONFIG);\n        _this.attach();\n        return _this;\n    }\n    ScrollBlot.prototype.detach = function () {\n        _super.prototype.detach.call(this);\n        this.observer.disconnect();\n    };\n    ScrollBlot.prototype.deleteAt = function (index, length) {\n        this.update();\n        if (index === 0 && length === this.length()) {\n            this.children.forEach(function (child) {\n                child.remove();\n            });\n        }\n        else {\n            _super.prototype.deleteAt.call(this, index, length);\n        }\n    };\n    ScrollBlot.prototype.formatAt = function (index, length, name, value) {\n        this.update();\n        _super.prototype.formatAt.call(this, index, length, name, value);\n    };\n    ScrollBlot.prototype.insertAt = function (index, value, def) {\n        this.update();\n        _super.prototype.insertAt.call(this, index, value, def);\n    };\n    ScrollBlot.prototype.optimize = function (mutations, context) {\n        var _this = this;\n        if (mutations === void 0) { mutations = []; }\n        if (context === void 0) { context = {}; }\n        _super.prototype.optimize.call(this, context);\n        // We must modify mutations directly, cannot make copy and then modify\n        var records = [].slice.call(this.observer.takeRecords());\n        // Array.push currently seems to be implemented by a non-tail recursive function\n        // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());\n        while (records.length > 0)\n            mutations.push(records.pop());\n        // TODO use WeakMap\n        var mark = function (blot, markParent) {\n            if (markParent === void 0) { markParent = true; }\n            if (blot == null || blot === _this)\n                return;\n            if (blot.domNode.parentNode == null)\n                return;\n            // @ts-ignore\n            if (blot.domNode[Registry.DATA_KEY].mutations == null) {\n                // @ts-ignore\n                blot.domNode[Registry.DATA_KEY].mutations = [];\n            }\n            if (markParent)\n                mark(blot.parent);\n        };\n        var optimize = function (blot) {\n            // Post-order traversal\n            if (\n            // @ts-ignore\n            blot.domNode[Registry.DATA_KEY] == null ||\n                // @ts-ignore\n                blot.domNode[Registry.DATA_KEY].mutations == null) {\n                return;\n            }\n            if (blot instanceof container_1.default) {\n                blot.children.forEach(optimize);\n            }\n            blot.optimize(context);\n        };\n        var remaining = mutations;\n        for (var i = 0; remaining.length > 0; i += 1) {\n            if (i >= MAX_OPTIMIZE_ITERATIONS) {\n                throw new Error('[Parchment] Maximum optimize iterations reached');\n            }\n            remaining.forEach(function (mutation) {\n                var blot = Registry.find(mutation.target, true);\n                if (blot == null)\n                    return;\n                if (blot.domNode === mutation.target) {\n                    if (mutation.type === 'childList') {\n                        mark(Registry.find(mutation.previousSibling, false));\n                        [].forEach.call(mutation.addedNodes, function (node) {\n                            var child = Registry.find(node, false);\n                            mark(child, false);\n                            if (child instanceof container_1.default) {\n                                child.children.forEach(function (grandChild) {\n                                    mark(grandChild, false);\n                                });\n                            }\n                        });\n                    }\n                    else if (mutation.type === 'attributes') {\n                        mark(blot.prev);\n                    }\n                }\n                mark(blot);\n            });\n            this.children.forEach(optimize);\n            remaining = [].slice.call(this.observer.takeRecords());\n            records = remaining.slice();\n            while (records.length > 0)\n                mutations.push(records.pop());\n        }\n    };\n    ScrollBlot.prototype.update = function (mutations, context) {\n        var _this = this;\n        if (context === void 0) { context = {}; }\n        mutations = mutations || this.observer.takeRecords();\n        // TODO use WeakMap\n        mutations\n            .map(function (mutation) {\n            var blot = Registry.find(mutation.target, true);\n            if (blot == null)\n                return null;\n            // @ts-ignore\n            if (blot.domNode[Registry.DATA_KEY].mutations == null) {\n                // @ts-ignore\n                blot.domNode[Registry.DATA_KEY].mutations = [mutation];\n                return blot;\n            }\n            else {\n                // @ts-ignore\n                blot.domNode[Registry.DATA_KEY].mutations.push(mutation);\n                return null;\n            }\n        })\n            .forEach(function (blot) {\n            if (blot == null ||\n                blot === _this ||\n                //@ts-ignore\n                blot.domNode[Registry.DATA_KEY] == null)\n                return;\n            // @ts-ignore\n            blot.update(blot.domNode[Registry.DATA_KEY].mutations || [], context);\n        });\n        // @ts-ignore\n        if (this.domNode[Registry.DATA_KEY].mutations != null) {\n            // @ts-ignore\n            _super.prototype.update.call(this, this.domNode[Registry.DATA_KEY].mutations, context);\n        }\n        this.optimize(mutations, context);\n    };\n    ScrollBlot.blotName = 'scroll';\n    ScrollBlot.defaultChild = 'block';\n    ScrollBlot.scope = Registry.Scope.BLOCK_BLOT;\n    ScrollBlot.tagName = 'DIV';\n    return ScrollBlot;\n}(container_1.default));\nexports.default = ScrollBlot;\n\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar format_1 = __webpack_require__(18);\nvar Registry = __webpack_require__(1);\n// Shallow object comparison\nfunction isEqual(obj1, obj2) {\n    if (Object.keys(obj1).length !== Object.keys(obj2).length)\n        return false;\n    // @ts-ignore\n    for (var prop in obj1) {\n        // @ts-ignore\n        if (obj1[prop] !== obj2[prop])\n            return false;\n    }\n    return true;\n}\nvar InlineBlot = /** @class */ (function (_super) {\n    __extends(InlineBlot, _super);\n    function InlineBlot() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    InlineBlot.formats = function (domNode) {\n        if (domNode.tagName === InlineBlot.tagName)\n            return undefined;\n        return _super.formats.call(this, domNode);\n    };\n    InlineBlot.prototype.format = function (name, value) {\n        var _this = this;\n        if (name === this.statics.blotName && !value) {\n            this.children.forEach(function (child) {\n                if (!(child instanceof format_1.default)) {\n                    child = child.wrap(InlineBlot.blotName, true);\n                }\n                _this.attributes.copy(child);\n            });\n            this.unwrap();\n        }\n        else {\n            _super.prototype.format.call(this, name, value);\n        }\n    };\n    InlineBlot.prototype.formatAt = function (index, length, name, value) {\n        if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {\n            var blot = this.isolate(index, length);\n            blot.format(name, value);\n        }\n        else {\n            _super.prototype.formatAt.call(this, index, length, name, value);\n        }\n    };\n    InlineBlot.prototype.optimize = function (context) {\n        _super.prototype.optimize.call(this, context);\n        var formats = this.formats();\n        if (Object.keys(formats).length === 0) {\n            return this.unwrap(); // unformatted span\n        }\n        var next = this.next;\n        if (next instanceof InlineBlot && next.prev === this && isEqual(formats, next.formats())) {\n            next.moveChildren(this);\n            next.remove();\n        }\n    };\n    InlineBlot.blotName = 'inline';\n    InlineBlot.scope = Registry.Scope.INLINE_BLOT;\n    InlineBlot.tagName = 'SPAN';\n    return InlineBlot;\n}(format_1.default));\nexports.default = InlineBlot;\n\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar format_1 = __webpack_require__(18);\nvar Registry = __webpack_require__(1);\nvar BlockBlot = /** @class */ (function (_super) {\n    __extends(BlockBlot, _super);\n    function BlockBlot() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    BlockBlot.formats = function (domNode) {\n        var tagName = Registry.query(BlockBlot.blotName).tagName;\n        if (domNode.tagName === tagName)\n            return undefined;\n        return _super.formats.call(this, domNode);\n    };\n    BlockBlot.prototype.format = function (name, value) {\n        if (Registry.query(name, Registry.Scope.BLOCK) == null) {\n            return;\n        }\n        else if (name === this.statics.blotName && !value) {\n            this.replaceWith(BlockBlot.blotName);\n        }\n        else {\n            _super.prototype.format.call(this, name, value);\n        }\n    };\n    BlockBlot.prototype.formatAt = function (index, length, name, value) {\n        if (Registry.query(name, Registry.Scope.BLOCK) != null) {\n            this.format(name, value);\n        }\n        else {\n            _super.prototype.formatAt.call(this, index, length, name, value);\n        }\n    };\n    BlockBlot.prototype.insertAt = function (index, value, def) {\n        if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {\n            // Insert text or inline\n            _super.prototype.insertAt.call(this, index, value, def);\n        }\n        else {\n            var after = this.split(index);\n            var blot = Registry.create(value, def);\n            after.parent.insertBefore(blot, after);\n        }\n    };\n    BlockBlot.prototype.update = function (mutations, context) {\n        if (navigator.userAgent.match(/Trident/)) {\n            this.build();\n        }\n        else {\n            _super.prototype.update.call(this, mutations, context);\n        }\n    };\n    BlockBlot.blotName = 'block';\n    BlockBlot.scope = Registry.Scope.BLOCK_BLOT;\n    BlockBlot.tagName = 'P';\n    return BlockBlot;\n}(format_1.default));\nexports.default = BlockBlot;\n\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar leaf_1 = __webpack_require__(19);\nvar EmbedBlot = /** @class */ (function (_super) {\n    __extends(EmbedBlot, _super);\n    function EmbedBlot() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    EmbedBlot.formats = function (domNode) {\n        return undefined;\n    };\n    EmbedBlot.prototype.format = function (name, value) {\n        // super.formatAt wraps, which is what we want in general,\n        // but this allows subclasses to overwrite for formats\n        // that just apply to particular embeds\n        _super.prototype.formatAt.call(this, 0, this.length(), name, value);\n    };\n    EmbedBlot.prototype.formatAt = function (index, length, name, value) {\n        if (index === 0 && length === this.length()) {\n            this.format(name, value);\n        }\n        else {\n            _super.prototype.formatAt.call(this, index, length, name, value);\n        }\n    };\n    EmbedBlot.prototype.formats = function () {\n        return this.statics.formats(this.domNode);\n    };\n    return EmbedBlot;\n}(leaf_1.default));\nexports.default = EmbedBlot;\n\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = Object.setPrototypeOf ||\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar leaf_1 = __webpack_require__(19);\nvar Registry = __webpack_require__(1);\nvar TextBlot = /** @class */ (function (_super) {\n    __extends(TextBlot, _super);\n    function TextBlot(node) {\n        var _this = _super.call(this, node) || this;\n        _this.text = _this.statics.value(_this.domNode);\n        return _this;\n    }\n    TextBlot.create = function (value) {\n        return document.createTextNode(value);\n    };\n    TextBlot.value = function (domNode) {\n        var text = domNode.data;\n        // @ts-ignore\n        if (text['normalize'])\n            text = text['normalize']();\n        return text;\n    };\n    TextBlot.prototype.deleteAt = function (index, length) {\n        this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);\n    };\n    TextBlot.prototype.index = function (node, offset) {\n        if (this.domNode === node) {\n            return offset;\n        }\n        return -1;\n    };\n    TextBlot.prototype.insertAt = function (index, value, def) {\n        if (def == null) {\n            this.text = this.text.slice(0, index) + value + this.text.slice(index);\n            this.domNode.data = this.text;\n        }\n        else {\n            _super.prototype.insertAt.call(this, index, value, def);\n        }\n    };\n    TextBlot.prototype.length = function () {\n        return this.text.length;\n    };\n    TextBlot.prototype.optimize = function (context) {\n        _super.prototype.optimize.call(this, context);\n        this.text = this.statics.value(this.domNode);\n        if (this.text.length === 0) {\n            this.remove();\n        }\n        else if (this.next instanceof TextBlot && this.next.prev === this) {\n            this.insertAt(this.length(), this.next.value());\n            this.next.remove();\n        }\n    };\n    TextBlot.prototype.position = function (index, inclusive) {\n        if (inclusive === void 0) { inclusive = false; }\n        return [this.domNode, index];\n    };\n    TextBlot.prototype.split = function (index, force) {\n        if (force === void 0) { force = false; }\n        if (!force) {\n            if (index === 0)\n                return this;\n            if (index === this.length())\n                return this.next;\n        }\n        var after = Registry.create(this.domNode.splitText(index));\n        this.parent.insertBefore(after, this.next);\n        this.text = this.statics.value(this.domNode);\n        return after;\n    };\n    TextBlot.prototype.update = function (mutations, context) {\n        var _this = this;\n        if (mutations.some(function (mutation) {\n            return mutation.type === 'characterData' && mutation.target === _this.domNode;\n        })) {\n            this.text = this.statics.value(this.domNode);\n        }\n    };\n    TextBlot.prototype.value = function () {\n        return this.text;\n    };\n    TextBlot.blotName = 'text';\n    TextBlot.scope = Registry.Scope.INLINE_BLOT;\n    return TextBlot;\n}(leaf_1.default));\nexports.default = TextBlot;\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar elem = document.createElement('div');\nelem.classList.toggle('test-class', false);\nif (elem.classList.contains('test-class')) {\n  var _toggle = DOMTokenList.prototype.toggle;\n  DOMTokenList.prototype.toggle = function (token, force) {\n    if (arguments.length > 1 && !this.contains(token) === !force) {\n      return force;\n    } else {\n      return _toggle.call(this, token);\n    }\n  };\n}\n\nif (!String.prototype.startsWith) {\n  String.prototype.startsWith = function (searchString, position) {\n    position = position || 0;\n    return this.substr(position, searchString.length) === searchString;\n  };\n}\n\nif (!String.prototype.endsWith) {\n  String.prototype.endsWith = function (searchString, position) {\n    var subjectString = this.toString();\n    if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {\n      position = subjectString.length;\n    }\n    position -= searchString.length;\n    var lastIndex = subjectString.indexOf(searchString, position);\n    return lastIndex !== -1 && lastIndex === position;\n  };\n}\n\nif (!Array.prototype.find) {\n  Object.defineProperty(Array.prototype, \"find\", {\n    value: function value(predicate) {\n      if (this === null) {\n        throw new TypeError('Array.prototype.find called on null or undefined');\n      }\n      if (typeof predicate !== 'function') {\n        throw new TypeError('predicate must be a function');\n      }\n      var list = Object(this);\n      var length = list.length >>> 0;\n      var thisArg = arguments[1];\n      var value;\n\n      for (var i = 0; i < length; i++) {\n        value = list[i];\n        if (predicate.call(thisArg, value, i, list)) {\n          return value;\n        }\n      }\n      return undefined;\n    }\n  });\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n  // Disable resizing in Firefox\n  document.execCommand(\"enableObjectResizing\", false, false);\n  // Disable automatic linkifying in IE11\n  document.execCommand(\"autoUrlDetect\", false, false);\n});\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports) {\n\n/**\n * This library modifies the diff-patch-match library by Neil Fraser\n * by removing the patch and match functionality and certain advanced\n * options in the diff function. The original license is as follows:\n *\n * ===\n *\n * Diff Match and Patch\n *\n * Copyright 2006 Google Inc.\n * http://code.google.com/p/google-diff-match-patch/\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n/**\n * The data structure representing a diff is an array of tuples:\n * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n * which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n */\nvar DIFF_DELETE = -1;\nvar DIFF_INSERT = 1;\nvar DIFF_EQUAL = 0;\n\n\n/**\n * Find the differences between two texts.  Simplifies the problem by stripping\n * any common prefix or suffix off the texts before diffing.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {Int} cursor_pos Expected edit position in text1 (optional)\n * @return {Array} Array of diff tuples.\n */\nfunction diff_main(text1, text2, cursor_pos) {\n  // Check for equality (speedup).\n  if (text1 == text2) {\n    if (text1) {\n      return [[DIFF_EQUAL, text1]];\n    }\n    return [];\n  }\n\n  // Check cursor_pos within bounds\n  if (cursor_pos < 0 || text1.length < cursor_pos) {\n    cursor_pos = null;\n  }\n\n  // Trim off common prefix (speedup).\n  var commonlength = diff_commonPrefix(text1, text2);\n  var commonprefix = text1.substring(0, commonlength);\n  text1 = text1.substring(commonlength);\n  text2 = text2.substring(commonlength);\n\n  // Trim off common suffix (speedup).\n  commonlength = diff_commonSuffix(text1, text2);\n  var commonsuffix = text1.substring(text1.length - commonlength);\n  text1 = text1.substring(0, text1.length - commonlength);\n  text2 = text2.substring(0, text2.length - commonlength);\n\n  // Compute the diff on the middle block.\n  var diffs = diff_compute_(text1, text2);\n\n  // Restore the prefix and suffix.\n  if (commonprefix) {\n    diffs.unshift([DIFF_EQUAL, commonprefix]);\n  }\n  if (commonsuffix) {\n    diffs.push([DIFF_EQUAL, commonsuffix]);\n  }\n  diff_cleanupMerge(diffs);\n  if (cursor_pos != null) {\n    diffs = fix_cursor(diffs, cursor_pos);\n  }\n  diffs = fix_emoji(diffs);\n  return diffs;\n};\n\n\n/**\n * Find the differences between two texts.  Assumes that the texts do not\n * have any common prefix or suffix.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_compute_(text1, text2) {\n  var diffs;\n\n  if (!text1) {\n    // Just add some text (speedup).\n    return [[DIFF_INSERT, text2]];\n  }\n\n  if (!text2) {\n    // Just delete some text (speedup).\n    return [[DIFF_DELETE, text1]];\n  }\n\n  var longtext = text1.length > text2.length ? text1 : text2;\n  var shorttext = text1.length > text2.length ? text2 : text1;\n  var i = longtext.indexOf(shorttext);\n  if (i != -1) {\n    // Shorter text is inside the longer text (speedup).\n    diffs = [[DIFF_INSERT, longtext.substring(0, i)],\n             [DIFF_EQUAL, shorttext],\n             [DIFF_INSERT, longtext.substring(i + shorttext.length)]];\n    // Swap insertions for deletions if diff is reversed.\n    if (text1.length > text2.length) {\n      diffs[0][0] = diffs[2][0] = DIFF_DELETE;\n    }\n    return diffs;\n  }\n\n  if (shorttext.length == 1) {\n    // Single character string.\n    // After the previous speedup, the character can't be an equality.\n    return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n  }\n\n  // Check to see if the problem can be split in two.\n  var hm = diff_halfMatch_(text1, text2);\n  if (hm) {\n    // A half-match was found, sort out the return data.\n    var text1_a = hm[0];\n    var text1_b = hm[1];\n    var text2_a = hm[2];\n    var text2_b = hm[3];\n    var mid_common = hm[4];\n    // Send both pairs off for separate processing.\n    var diffs_a = diff_main(text1_a, text2_a);\n    var diffs_b = diff_main(text1_b, text2_b);\n    // Merge the results.\n    return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);\n  }\n\n  return diff_bisect_(text1, text2);\n};\n\n\n/**\n * Find the 'middle snake' of a diff, split the problem in two\n * and return the recursively constructed diff.\n * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n * @private\n */\nfunction diff_bisect_(text1, text2) {\n  // Cache the text lengths to prevent multiple calls.\n  var text1_length = text1.length;\n  var text2_length = text2.length;\n  var max_d = Math.ceil((text1_length + text2_length) / 2);\n  var v_offset = max_d;\n  var v_length = 2 * max_d;\n  var v1 = new Array(v_length);\n  var v2 = new Array(v_length);\n  // Setting all elements to -1 is faster in Chrome & Firefox than mixing\n  // integers and undefined.\n  for (var x = 0; x < v_length; x++) {\n    v1[x] = -1;\n    v2[x] = -1;\n  }\n  v1[v_offset + 1] = 0;\n  v2[v_offset + 1] = 0;\n  var delta = text1_length - text2_length;\n  // If the total number of characters is odd, then the front path will collide\n  // with the reverse path.\n  var front = (delta % 2 != 0);\n  // Offsets for start and end of k loop.\n  // Prevents mapping of space beyond the grid.\n  var k1start = 0;\n  var k1end = 0;\n  var k2start = 0;\n  var k2end = 0;\n  for (var d = 0; d < max_d; d++) {\n    // Walk the front path one step.\n    for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {\n      var k1_offset = v_offset + k1;\n      var x1;\n      if (k1 == -d || (k1 != d && v1[k1_offset - 1] < v1[k1_offset + 1])) {\n        x1 = v1[k1_offset + 1];\n      } else {\n        x1 = v1[k1_offset - 1] + 1;\n      }\n      var y1 = x1 - k1;\n      while (x1 < text1_length && y1 < text2_length &&\n             text1.charAt(x1) == text2.charAt(y1)) {\n        x1++;\n        y1++;\n      }\n      v1[k1_offset] = x1;\n      if (x1 > text1_length) {\n        // Ran off the right of the graph.\n        k1end += 2;\n      } else if (y1 > text2_length) {\n        // Ran off the bottom of the graph.\n        k1start += 2;\n      } else if (front) {\n        var k2_offset = v_offset + delta - k1;\n        if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] != -1) {\n          // Mirror x2 onto top-left coordinate system.\n          var x2 = text1_length - v2[k2_offset];\n          if (x1 >= x2) {\n            // Overlap detected.\n            return diff_bisectSplit_(text1, text2, x1, y1);\n          }\n        }\n      }\n    }\n\n    // Walk the reverse path one step.\n    for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {\n      var k2_offset = v_offset + k2;\n      var x2;\n      if (k2 == -d || (k2 != d && v2[k2_offset - 1] < v2[k2_offset + 1])) {\n        x2 = v2[k2_offset + 1];\n      } else {\n        x2 = v2[k2_offset - 1] + 1;\n      }\n      var y2 = x2 - k2;\n      while (x2 < text1_length && y2 < text2_length &&\n             text1.charAt(text1_length - x2 - 1) ==\n             text2.charAt(text2_length - y2 - 1)) {\n        x2++;\n        y2++;\n      }\n      v2[k2_offset] = x2;\n      if (x2 > text1_length) {\n        // Ran off the left of the graph.\n        k2end += 2;\n      } else if (y2 > text2_length) {\n        // Ran off the top of the graph.\n        k2start += 2;\n      } else if (!front) {\n        var k1_offset = v_offset + delta - k2;\n        if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] != -1) {\n          var x1 = v1[k1_offset];\n          var y1 = v_offset + x1 - k1_offset;\n          // Mirror x2 onto top-left coordinate system.\n          x2 = text1_length - x2;\n          if (x1 >= x2) {\n            // Overlap detected.\n            return diff_bisectSplit_(text1, text2, x1, y1);\n          }\n        }\n      }\n    }\n  }\n  // Diff took too long and hit the deadline or\n  // number of diffs equals number of characters, no commonality at all.\n  return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n};\n\n\n/**\n * Given the location of the 'middle snake', split the diff in two parts\n * and recurse.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} x Index of split point in text1.\n * @param {number} y Index of split point in text2.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_bisectSplit_(text1, text2, x, y) {\n  var text1a = text1.substring(0, x);\n  var text2a = text2.substring(0, y);\n  var text1b = text1.substring(x);\n  var text2b = text2.substring(y);\n\n  // Compute both diffs serially.\n  var diffs = diff_main(text1a, text2a);\n  var diffsb = diff_main(text1b, text2b);\n\n  return diffs.concat(diffsb);\n};\n\n\n/**\n * Determine the common prefix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the start of each\n *     string.\n */\nfunction diff_commonPrefix(text1, text2) {\n  // Quick check for common null cases.\n  if (!text1 || !text2 || text1.charAt(0) != text2.charAt(0)) {\n    return 0;\n  }\n  // Binary search.\n  // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n  var pointermin = 0;\n  var pointermax = Math.min(text1.length, text2.length);\n  var pointermid = pointermax;\n  var pointerstart = 0;\n  while (pointermin < pointermid) {\n    if (text1.substring(pointerstart, pointermid) ==\n        text2.substring(pointerstart, pointermid)) {\n      pointermin = pointermid;\n      pointerstart = pointermin;\n    } else {\n      pointermax = pointermid;\n    }\n    pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n  }\n  return pointermid;\n};\n\n\n/**\n * Determine the common suffix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of each string.\n */\nfunction diff_commonSuffix(text1, text2) {\n  // Quick check for common null cases.\n  if (!text1 || !text2 ||\n      text1.charAt(text1.length - 1) != text2.charAt(text2.length - 1)) {\n    return 0;\n  }\n  // Binary search.\n  // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n  var pointermin = 0;\n  var pointermax = Math.min(text1.length, text2.length);\n  var pointermid = pointermax;\n  var pointerend = 0;\n  while (pointermin < pointermid) {\n    if (text1.substring(text1.length - pointermid, text1.length - pointerend) ==\n        text2.substring(text2.length - pointermid, text2.length - pointerend)) {\n      pointermin = pointermid;\n      pointerend = pointermin;\n    } else {\n      pointermax = pointermid;\n    }\n    pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n  }\n  return pointermid;\n};\n\n\n/**\n * Do the two texts share a substring which is at least half the length of the\n * longer text?\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {Array.<string>} Five element Array, containing the prefix of\n *     text1, the suffix of text1, the prefix of text2, the suffix of\n *     text2 and the common middle.  Or null if there was no match.\n */\nfunction diff_halfMatch_(text1, text2) {\n  var longtext = text1.length > text2.length ? text1 : text2;\n  var shorttext = text1.length > text2.length ? text2 : text1;\n  if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {\n    return null;  // Pointless.\n  }\n\n  /**\n   * Does a substring of shorttext exist within longtext such that the substring\n   * is at least half the length of longtext?\n   * Closure, but does not reference any external variables.\n   * @param {string} longtext Longer string.\n   * @param {string} shorttext Shorter string.\n   * @param {number} i Start index of quarter length substring within longtext.\n   * @return {Array.<string>} Five element Array, containing the prefix of\n   *     longtext, the suffix of longtext, the prefix of shorttext, the suffix\n   *     of shorttext and the common middle.  Or null if there was no match.\n   * @private\n   */\n  function diff_halfMatchI_(longtext, shorttext, i) {\n    // Start with a 1/4 length substring at position i as a seed.\n    var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));\n    var j = -1;\n    var best_common = '';\n    var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;\n    while ((j = shorttext.indexOf(seed, j + 1)) != -1) {\n      var prefixLength = diff_commonPrefix(longtext.substring(i),\n                                           shorttext.substring(j));\n      var suffixLength = diff_commonSuffix(longtext.substring(0, i),\n                                           shorttext.substring(0, j));\n      if (best_common.length < suffixLength + prefixLength) {\n        best_common = shorttext.substring(j - suffixLength, j) +\n            shorttext.substring(j, j + prefixLength);\n        best_longtext_a = longtext.substring(0, i - suffixLength);\n        best_longtext_b = longtext.substring(i + prefixLength);\n        best_shorttext_a = shorttext.substring(0, j - suffixLength);\n        best_shorttext_b = shorttext.substring(j + prefixLength);\n      }\n    }\n    if (best_common.length * 2 >= longtext.length) {\n      return [best_longtext_a, best_longtext_b,\n              best_shorttext_a, best_shorttext_b, best_common];\n    } else {\n      return null;\n    }\n  }\n\n  // First check if the second quarter is the seed for a half-match.\n  var hm1 = diff_halfMatchI_(longtext, shorttext,\n                             Math.ceil(longtext.length / 4));\n  // Check again based on the third quarter.\n  var hm2 = diff_halfMatchI_(longtext, shorttext,\n                             Math.ceil(longtext.length / 2));\n  var hm;\n  if (!hm1 && !hm2) {\n    return null;\n  } else if (!hm2) {\n    hm = hm1;\n  } else if (!hm1) {\n    hm = hm2;\n  } else {\n    // Both matched.  Select the longest.\n    hm = hm1[4].length > hm2[4].length ? hm1 : hm2;\n  }\n\n  // A half-match was found, sort out the return data.\n  var text1_a, text1_b, text2_a, text2_b;\n  if (text1.length > text2.length) {\n    text1_a = hm[0];\n    text1_b = hm[1];\n    text2_a = hm[2];\n    text2_b = hm[3];\n  } else {\n    text2_a = hm[0];\n    text2_b = hm[1];\n    text1_a = hm[2];\n    text1_b = hm[3];\n  }\n  var mid_common = hm[4];\n  return [text1_a, text1_b, text2_a, text2_b, mid_common];\n};\n\n\n/**\n * Reorder and merge like edit sections.  Merge equalities.\n * Any edit section can move as long as it doesn't cross an equality.\n * @param {Array} diffs Array of diff tuples.\n */\nfunction diff_cleanupMerge(diffs) {\n  diffs.push([DIFF_EQUAL, '']);  // Add a dummy entry at the end.\n  var pointer = 0;\n  var count_delete = 0;\n  var count_insert = 0;\n  var text_delete = '';\n  var text_insert = '';\n  var commonlength;\n  while (pointer < diffs.length) {\n    switch (diffs[pointer][0]) {\n      case DIFF_INSERT:\n        count_insert++;\n        text_insert += diffs[pointer][1];\n        pointer++;\n        break;\n      case DIFF_DELETE:\n        count_delete++;\n        text_delete += diffs[pointer][1];\n        pointer++;\n        break;\n      case DIFF_EQUAL:\n        // Upon reaching an equality, check for prior redundancies.\n        if (count_delete + count_insert > 1) {\n          if (count_delete !== 0 && count_insert !== 0) {\n            // Factor out any common prefixies.\n            commonlength = diff_commonPrefix(text_insert, text_delete);\n            if (commonlength !== 0) {\n              if ((pointer - count_delete - count_insert) > 0 &&\n                  diffs[pointer - count_delete - count_insert - 1][0] ==\n                  DIFF_EQUAL) {\n                diffs[pointer - count_delete - count_insert - 1][1] +=\n                    text_insert.substring(0, commonlength);\n              } else {\n                diffs.splice(0, 0, [DIFF_EQUAL,\n                                    text_insert.substring(0, commonlength)]);\n                pointer++;\n              }\n              text_insert = text_insert.substring(commonlength);\n              text_delete = text_delete.substring(commonlength);\n            }\n            // Factor out any common suffixies.\n            commonlength = diff_commonSuffix(text_insert, text_delete);\n            if (commonlength !== 0) {\n              diffs[pointer][1] = text_insert.substring(text_insert.length -\n                  commonlength) + diffs[pointer][1];\n              text_insert = text_insert.substring(0, text_insert.length -\n                  commonlength);\n              text_delete = text_delete.substring(0, text_delete.length -\n                  commonlength);\n            }\n          }\n          // Delete the offending records and add the merged ones.\n          if (count_delete === 0) {\n            diffs.splice(pointer - count_insert,\n                count_delete + count_insert, [DIFF_INSERT, text_insert]);\n          } else if (count_insert === 0) {\n            diffs.splice(pointer - count_delete,\n                count_delete + count_insert, [DIFF_DELETE, text_delete]);\n          } else {\n            diffs.splice(pointer - count_delete - count_insert,\n                count_delete + count_insert, [DIFF_DELETE, text_delete],\n                [DIFF_INSERT, text_insert]);\n          }\n          pointer = pointer - count_delete - count_insert +\n                    (count_delete ? 1 : 0) + (count_insert ? 1 : 0) + 1;\n        } else if (pointer !== 0 && diffs[pointer - 1][0] == DIFF_EQUAL) {\n          // Merge this equality with the previous one.\n          diffs[pointer - 1][1] += diffs[pointer][1];\n          diffs.splice(pointer, 1);\n        } else {\n          pointer++;\n        }\n        count_insert = 0;\n        count_delete = 0;\n        text_delete = '';\n        text_insert = '';\n        break;\n    }\n  }\n  if (diffs[diffs.length - 1][1] === '') {\n    diffs.pop();  // Remove the dummy entry at the end.\n  }\n\n  // Second pass: look for single edits surrounded on both sides by equalities\n  // which can be shifted sideways to eliminate an equality.\n  // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC\n  var changes = false;\n  pointer = 1;\n  // Intentionally ignore the first and last element (don't need checking).\n  while (pointer < diffs.length - 1) {\n    if (diffs[pointer - 1][0] == DIFF_EQUAL &&\n        diffs[pointer + 1][0] == DIFF_EQUAL) {\n      // This is a single edit surrounded by equalities.\n      if (diffs[pointer][1].substring(diffs[pointer][1].length -\n          diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {\n        // Shift the edit over the previous equality.\n        diffs[pointer][1] = diffs[pointer - 1][1] +\n            diffs[pointer][1].substring(0, diffs[pointer][1].length -\n                                        diffs[pointer - 1][1].length);\n        diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n        diffs.splice(pointer - 1, 1);\n        changes = true;\n      } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==\n          diffs[pointer + 1][1]) {\n        // Shift the edit over the next equality.\n        diffs[pointer - 1][1] += diffs[pointer + 1][1];\n        diffs[pointer][1] =\n            diffs[pointer][1].substring(diffs[pointer + 1][1].length) +\n            diffs[pointer + 1][1];\n        diffs.splice(pointer + 1, 1);\n        changes = true;\n      }\n    }\n    pointer++;\n  }\n  // If shifts were made, the diff needs reordering and another shift sweep.\n  if (changes) {\n    diff_cleanupMerge(diffs);\n  }\n};\n\n\nvar diff = diff_main;\ndiff.INSERT = DIFF_INSERT;\ndiff.DELETE = DIFF_DELETE;\ndiff.EQUAL = DIFF_EQUAL;\n\nmodule.exports = diff;\n\n/*\n * Modify a diff such that the cursor position points to the start of a change:\n * E.g.\n *   cursor_normalize_diff([[DIFF_EQUAL, 'abc']], 1)\n *     => [1, [[DIFF_EQUAL, 'a'], [DIFF_EQUAL, 'bc']]]\n *   cursor_normalize_diff([[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xyz']], 2)\n *     => [2, [[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xy'], [DIFF_DELETE, 'z']]]\n *\n * @param {Array} diffs Array of diff tuples\n * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!\n * @return {Array} A tuple [cursor location in the modified diff, modified diff]\n */\nfunction cursor_normalize_diff (diffs, cursor_pos) {\n  if (cursor_pos === 0) {\n    return [DIFF_EQUAL, diffs];\n  }\n  for (var current_pos = 0, i = 0; i < diffs.length; i++) {\n    var d = diffs[i];\n    if (d[0] === DIFF_DELETE || d[0] === DIFF_EQUAL) {\n      var next_pos = current_pos + d[1].length;\n      if (cursor_pos === next_pos) {\n        return [i + 1, diffs];\n      } else if (cursor_pos < next_pos) {\n        // copy to prevent side effects\n        diffs = diffs.slice();\n        // split d into two diff changes\n        var split_pos = cursor_pos - current_pos;\n        var d_left = [d[0], d[1].slice(0, split_pos)];\n        var d_right = [d[0], d[1].slice(split_pos)];\n        diffs.splice(i, 1, d_left, d_right);\n        return [i + 1, diffs];\n      } else {\n        current_pos = next_pos;\n      }\n    }\n  }\n  throw new Error('cursor_pos is out of bounds!')\n}\n\n/*\n * Modify a diff such that the edit position is \"shifted\" to the proposed edit location (cursor_position).\n *\n * Case 1)\n *   Check if a naive shift is possible:\n *     [0, X], [ 1, Y] -> [ 1, Y], [0, X]    (if X + Y === Y + X)\n *     [0, X], [-1, Y] -> [-1, Y], [0, X]    (if X + Y === Y + X) - holds same result\n * Case 2)\n *   Check if the following shifts are possible:\n *     [0, 'pre'], [ 1, 'prefix'] -> [ 1, 'pre'], [0, 'pre'], [ 1, 'fix']\n *     [0, 'pre'], [-1, 'prefix'] -> [-1, 'pre'], [0, 'pre'], [-1, 'fix']\n *         ^            ^\n *         d          d_next\n *\n * @param {Array} diffs Array of diff tuples\n * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!\n * @return {Array} Array of diff tuples\n */\nfunction fix_cursor (diffs, cursor_pos) {\n  var norm = cursor_normalize_diff(diffs, cursor_pos);\n  var ndiffs = norm[1];\n  var cursor_pointer = norm[0];\n  var d = ndiffs[cursor_pointer];\n  var d_next = ndiffs[cursor_pointer + 1];\n\n  if (d == null) {\n    // Text was deleted from end of original string,\n    // cursor is now out of bounds in new string\n    return diffs;\n  } else if (d[0] !== DIFF_EQUAL) {\n    // A modification happened at the cursor location.\n    // This is the expected outcome, so we can return the original diff.\n    return diffs;\n  } else {\n    if (d_next != null && d[1] + d_next[1] === d_next[1] + d[1]) {\n      // Case 1)\n      // It is possible to perform a naive shift\n      ndiffs.splice(cursor_pointer, 2, d_next, d)\n      return merge_tuples(ndiffs, cursor_pointer, 2)\n    } else if (d_next != null && d_next[1].indexOf(d[1]) === 0) {\n      // Case 2)\n      // d[1] is a prefix of d_next[1]\n      // We can assume that d_next[0] !== 0, since d[0] === 0\n      // Shift edit locations..\n      ndiffs.splice(cursor_pointer, 2, [d_next[0], d[1]], [0, d[1]]);\n      var suffix = d_next[1].slice(d[1].length);\n      if (suffix.length > 0) {\n        ndiffs.splice(cursor_pointer + 2, 0, [d_next[0], suffix]);\n      }\n      return merge_tuples(ndiffs, cursor_pointer, 3)\n    } else {\n      // Not possible to perform any modification\n      return diffs;\n    }\n  }\n}\n\n/*\n * Check diff did not split surrogate pairs.\n * Ex. [0, '\\uD83D'], [-1, '\\uDC36'], [1, '\\uDC2F'] -> [-1, '\\uD83D\\uDC36'], [1, '\\uD83D\\uDC2F']\n *     '\\uD83D\\uDC36' === '🐶', '\\uD83D\\uDC2F' === '🐯'\n *\n * @param {Array} diffs Array of diff tuples\n * @return {Array} Array of diff tuples\n */\nfunction fix_emoji (diffs) {\n  var compact = false;\n  var starts_with_pair_end = function(str) {\n    return str.charCodeAt(0) >= 0xDC00 && str.charCodeAt(0) <= 0xDFFF;\n  }\n  var ends_with_pair_start = function(str) {\n    return str.charCodeAt(str.length-1) >= 0xD800 && str.charCodeAt(str.length-1) <= 0xDBFF;\n  }\n  for (var i = 2; i < diffs.length; i += 1) {\n    if (diffs[i-2][0] === DIFF_EQUAL && ends_with_pair_start(diffs[i-2][1]) &&\n        diffs[i-1][0] === DIFF_DELETE && starts_with_pair_end(diffs[i-1][1]) &&\n        diffs[i][0] === DIFF_INSERT && starts_with_pair_end(diffs[i][1])) {\n      compact = true;\n\n      diffs[i-1][1] = diffs[i-2][1].slice(-1) + diffs[i-1][1];\n      diffs[i][1] = diffs[i-2][1].slice(-1) + diffs[i][1];\n\n      diffs[i-2][1] = diffs[i-2][1].slice(0, -1);\n    }\n  }\n  if (!compact) {\n    return diffs;\n  }\n  var fixed_diffs = [];\n  for (var i = 0; i < diffs.length; i += 1) {\n    if (diffs[i][1].length > 0) {\n      fixed_diffs.push(diffs[i]);\n    }\n  }\n  return fixed_diffs;\n}\n\n/*\n * Try to merge tuples with their neigbors in a given range.\n * E.g. [0, 'a'], [0, 'b'] -> [0, 'ab']\n *\n * @param {Array} diffs Array of diff tuples.\n * @param {Int} start Position of the first element to merge (diffs[start] is also merged with diffs[start - 1]).\n * @param {Int} length Number of consecutive elements to check.\n * @return {Array} Array of merged diff tuples.\n */\nfunction merge_tuples (diffs, start, length) {\n  // Check from (start-1) to (start+length).\n  for (var i = start + length - 1; i >= 0 && i >= start - 1; i--) {\n    if (i + 1 < diffs.length) {\n      var left_d = diffs[i];\n      var right_d = diffs[i+1];\n      if (left_d[0] === right_d[1]) {\n        diffs.splice(i, 2, [left_d[0], left_d[1] + right_d[1]]);\n      }\n    }\n  }\n  return diffs;\n}\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports) {\n\nexports = module.exports = typeof Object.keys === 'function'\n  ? Object.keys : shim;\n\nexports.shim = shim;\nfunction shim (obj) {\n  var keys = [];\n  for (var key in obj) keys.push(key);\n  return keys;\n}\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports) {\n\nvar supportsArgumentsClass = (function(){\n  return Object.prototype.toString.call(arguments)\n})() == '[object Arguments]';\n\nexports = module.exports = supportsArgumentsClass ? supported : unsupported;\n\nexports.supported = supported;\nfunction supported(object) {\n  return Object.prototype.toString.call(object) == '[object Arguments]';\n};\n\nexports.unsupported = unsupported;\nfunction unsupported(object){\n  return object &&\n    typeof object == 'object' &&\n    typeof object.length == 'number' &&\n    Object.prototype.hasOwnProperty.call(object, 'callee') &&\n    !Object.prototype.propertyIsEnumerable.call(object, 'callee') ||\n    false;\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports) {\n\n'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n  , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @api private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n  Events.prototype = Object.create(null);\n\n  //\n  // This hack is needed because the `__proto__` property is still inherited in\n  // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n  //\n  if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {Mixed} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @api private\n */\nfunction EE(fn, context, once) {\n  this.fn = fn;\n  this.context = context;\n  this.once = once || false;\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @api public\n */\nfunction EventEmitter() {\n  this._events = new Events();\n  this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @api public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n  var names = []\n    , events\n    , name;\n\n  if (this._eventsCount === 0) return names;\n\n  for (name in (events = this._events)) {\n    if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n  }\n\n  if (Object.getOwnPropertySymbols) {\n    return names.concat(Object.getOwnPropertySymbols(events));\n  }\n\n  return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {String|Symbol} event The event name.\n * @param {Boolean} exists Only check if there are listeners.\n * @returns {Array|Boolean}\n * @api public\n */\nEventEmitter.prototype.listeners = function listeners(event, exists) {\n  var evt = prefix ? prefix + event : event\n    , available = this._events[evt];\n\n  if (exists) return !!available;\n  if (!available) return [];\n  if (available.fn) return [available.fn];\n\n  for (var i = 0, l = available.length, ee = new Array(l); i < l; i++) {\n    ee[i] = available[i].fn;\n  }\n\n  return ee;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {String|Symbol} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @api public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n  var evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) return false;\n\n  var listeners = this._events[evt]\n    , len = arguments.length\n    , args\n    , i;\n\n  if (listeners.fn) {\n    if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n    switch (len) {\n      case 1: return listeners.fn.call(listeners.context), true;\n      case 2: return listeners.fn.call(listeners.context, a1), true;\n      case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n      case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n      case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n      case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n    }\n\n    for (i = 1, args = new Array(len -1); i < len; i++) {\n      args[i - 1] = arguments[i];\n    }\n\n    listeners.fn.apply(listeners.context, args);\n  } else {\n    var length = listeners.length\n      , j;\n\n    for (i = 0; i < length; i++) {\n      if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n      switch (len) {\n        case 1: listeners[i].fn.call(listeners[i].context); break;\n        case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n        case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n        case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n        default:\n          if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n            args[j - 1] = arguments[j];\n          }\n\n          listeners[i].fn.apply(listeners[i].context, args);\n      }\n    }\n  }\n\n  return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {String|Symbol} event The event name.\n * @param {Function} fn The listener function.\n * @param {Mixed} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @api public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n  var listener = new EE(fn, context || this)\n    , evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;\n  else if (!this._events[evt].fn) this._events[evt].push(listener);\n  else this._events[evt] = [this._events[evt], listener];\n\n  return this;\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {String|Symbol} event The event name.\n * @param {Function} fn The listener function.\n * @param {Mixed} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @api public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n  var listener = new EE(fn, context || this, true)\n    , evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;\n  else if (!this._events[evt].fn) this._events[evt].push(listener);\n  else this._events[evt] = [this._events[evt], listener];\n\n  return this;\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {String|Symbol} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {Mixed} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @api public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n  var evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) return this;\n  if (!fn) {\n    if (--this._eventsCount === 0) this._events = new Events();\n    else delete this._events[evt];\n    return this;\n  }\n\n  var listeners = this._events[evt];\n\n  if (listeners.fn) {\n    if (\n         listeners.fn === fn\n      && (!once || listeners.once)\n      && (!context || listeners.context === context)\n    ) {\n      if (--this._eventsCount === 0) this._events = new Events();\n      else delete this._events[evt];\n    }\n  } else {\n    for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n      if (\n           listeners[i].fn !== fn\n        || (once && !listeners[i].once)\n        || (context && listeners[i].context !== context)\n      ) {\n        events.push(listeners[i]);\n      }\n    }\n\n    //\n    // Reset the array, or remove it completely if we have no more listeners.\n    //\n    if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n    else if (--this._eventsCount === 0) this._events = new Events();\n    else delete this._events[evt];\n  }\n\n  return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {String|Symbol} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @api public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n  var evt;\n\n  if (event) {\n    evt = prefix ? prefix + event : event;\n    if (this._events[evt]) {\n      if (--this._eventsCount === 0) this._events = new Events();\n      else delete this._events[evt];\n    }\n  } else {\n    this._events = new Events();\n    this._eventsCount = 0;\n  }\n\n  return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// This function doesn't apply anymore.\n//\nEventEmitter.prototype.setMaxListeners = function setMaxListeners() {\n  return this;\n};\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n  module.exports = EventEmitter;\n}\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.matchText = exports.matchSpacing = exports.matchNewline = exports.matchBlot = exports.matchAttributor = exports.default = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extend2 = __webpack_require__(3);\n\nvar _extend3 = _interopRequireDefault(_extend2);\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nvar _align = __webpack_require__(36);\n\nvar _background = __webpack_require__(37);\n\nvar _code = __webpack_require__(13);\n\nvar _code2 = _interopRequireDefault(_code);\n\nvar _color = __webpack_require__(26);\n\nvar _direction = __webpack_require__(38);\n\nvar _font = __webpack_require__(39);\n\nvar _size = __webpack_require__(40);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar debug = (0, _logger2.default)('quill:clipboard');\n\nvar DOM_KEY = '__ql-matcher';\n\nvar CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['style', matchIgnore]];\n\nvar ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function (memo, attr) {\n  memo[attr.keyName] = attr;\n  return memo;\n}, {});\n\nvar STYLE_ATTRIBUTORS = [_align.AlignStyle, _background.BackgroundStyle, _color.ColorStyle, _direction.DirectionStyle, _font.FontStyle, _size.SizeStyle].reduce(function (memo, attr) {\n  memo[attr.keyName] = attr;\n  return memo;\n}, {});\n\nvar Clipboard = function (_Module) {\n  _inherits(Clipboard, _Module);\n\n  function Clipboard(quill, options) {\n    _classCallCheck(this, Clipboard);\n\n    var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this, quill, options));\n\n    _this.quill.root.addEventListener('paste', _this.onPaste.bind(_this));\n    _this.container = _this.quill.addContainer('ql-clipboard');\n    _this.container.setAttribute('contenteditable', true);\n    _this.container.setAttribute('tabindex', -1);\n    _this.matchers = [];\n    CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function (_ref) {\n      var _ref2 = _slicedToArray(_ref, 2),\n          selector = _ref2[0],\n          matcher = _ref2[1];\n\n      if (!options.matchVisual && matcher === matchSpacing) return;\n      _this.addMatcher(selector, matcher);\n    });\n    return _this;\n  }\n\n  _createClass(Clipboard, [{\n    key: 'addMatcher',\n    value: function addMatcher(selector, matcher) {\n      this.matchers.push([selector, matcher]);\n    }\n  }, {\n    key: 'convert',\n    value: function convert(html) {\n      if (typeof html === 'string') {\n        this.container.innerHTML = html.replace(/\\>\\r?\\n +\\</g, '><'); // Remove spaces between tags\n        return this.convert();\n      }\n      var formats = this.quill.getFormat(this.quill.selection.savedRange.index);\n      if (formats[_code2.default.blotName]) {\n        var text = this.container.innerText;\n        this.container.innerHTML = '';\n        return new _quillDelta2.default().insert(text, _defineProperty({}, _code2.default.blotName, formats[_code2.default.blotName]));\n      }\n\n      var _prepareMatching = this.prepareMatching(),\n          _prepareMatching2 = _slicedToArray(_prepareMatching, 2),\n          elementMatchers = _prepareMatching2[0],\n          textMatchers = _prepareMatching2[1];\n\n      var delta = traverse(this.container, elementMatchers, textMatchers);\n      // Remove trailing newline\n      if (deltaEndsWith(delta, '\\n') && delta.ops[delta.ops.length - 1].attributes == null) {\n        delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));\n      }\n      debug.log('convert', this.container.innerHTML, delta);\n      this.container.innerHTML = '';\n      return delta;\n    }\n  }, {\n    key: 'dangerouslyPasteHTML',\n    value: function dangerouslyPasteHTML(index, html) {\n      var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _quill2.default.sources.API;\n\n      if (typeof index === 'string') {\n        this.quill.setContents(this.convert(index), html);\n        this.quill.setSelection(0, _quill2.default.sources.SILENT);\n      } else {\n        var paste = this.convert(html);\n        this.quill.updateContents(new _quillDelta2.default().retain(index).concat(paste), source);\n        this.quill.setSelection(index + paste.length(), _quill2.default.sources.SILENT);\n      }\n    }\n  }, {\n    key: 'onPaste',\n    value: function onPaste(e) {\n      var _this2 = this;\n\n      if (e.defaultPrevented || !this.quill.isEnabled()) return;\n      var range = this.quill.getSelection();\n      var delta = new _quillDelta2.default().retain(range.index);\n      var scrollTop = this.quill.scrollingContainer.scrollTop;\n      this.container.focus();\n      this.quill.selection.update(_quill2.default.sources.SILENT);\n      setTimeout(function () {\n        delta = delta.concat(_this2.convert()).delete(range.length);\n        _this2.quill.updateContents(delta, _quill2.default.sources.USER);\n        // range.length contributes to delta.length()\n        _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);\n        _this2.quill.scrollingContainer.scrollTop = scrollTop;\n        _this2.quill.focus();\n      }, 1);\n    }\n  }, {\n    key: 'prepareMatching',\n    value: function prepareMatching() {\n      var _this3 = this;\n\n      var elementMatchers = [],\n          textMatchers = [];\n      this.matchers.forEach(function (pair) {\n        var _pair = _slicedToArray(pair, 2),\n            selector = _pair[0],\n            matcher = _pair[1];\n\n        switch (selector) {\n          case Node.TEXT_NODE:\n            textMatchers.push(matcher);\n            break;\n          case Node.ELEMENT_NODE:\n            elementMatchers.push(matcher);\n            break;\n          default:\n            [].forEach.call(_this3.container.querySelectorAll(selector), function (node) {\n              // TODO use weakmap\n              node[DOM_KEY] = node[DOM_KEY] || [];\n              node[DOM_KEY].push(matcher);\n            });\n            break;\n        }\n      });\n      return [elementMatchers, textMatchers];\n    }\n  }]);\n\n  return Clipboard;\n}(_module2.default);\n\nClipboard.DEFAULTS = {\n  matchers: [],\n  matchVisual: true\n};\n\nfunction applyFormat(delta, format, value) {\n  if ((typeof format === 'undefined' ? 'undefined' : _typeof(format)) === 'object') {\n    return Object.keys(format).reduce(function (delta, key) {\n      return applyFormat(delta, key, format[key]);\n    }, delta);\n  } else {\n    return delta.reduce(function (delta, op) {\n      if (op.attributes && op.attributes[format]) {\n        return delta.push(op);\n      } else {\n        return delta.insert(op.insert, (0, _extend3.default)({}, _defineProperty({}, format, value), op.attributes));\n      }\n    }, new _quillDelta2.default());\n  }\n}\n\nfunction computeStyle(node) {\n  if (node.nodeType !== Node.ELEMENT_NODE) return {};\n  var DOM_KEY = '__ql-computed-style';\n  return node[DOM_KEY] || (node[DOM_KEY] = window.getComputedStyle(node));\n}\n\nfunction deltaEndsWith(delta, text) {\n  var endText = \"\";\n  for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {\n    var op = delta.ops[i];\n    if (typeof op.insert !== 'string') break;\n    endText = op.insert + endText;\n  }\n  return endText.slice(-1 * text.length) === text;\n}\n\nfunction isLine(node) {\n  if (node.childNodes.length === 0) return false; // Exclude embed blocks\n  var style = computeStyle(node);\n  return ['block', 'list-item'].indexOf(style.display) > -1;\n}\n\nfunction traverse(node, elementMatchers, textMatchers) {\n  // Post-order\n  if (node.nodeType === node.TEXT_NODE) {\n    return textMatchers.reduce(function (delta, matcher) {\n      return matcher(node, delta);\n    }, new _quillDelta2.default());\n  } else if (node.nodeType === node.ELEMENT_NODE) {\n    return [].reduce.call(node.childNodes || [], function (delta, childNode) {\n      var childrenDelta = traverse(childNode, elementMatchers, textMatchers);\n      if (childNode.nodeType === node.ELEMENT_NODE) {\n        childrenDelta = elementMatchers.reduce(function (childrenDelta, matcher) {\n          return matcher(childNode, childrenDelta);\n        }, childrenDelta);\n        childrenDelta = (childNode[DOM_KEY] || []).reduce(function (childrenDelta, matcher) {\n          return matcher(childNode, childrenDelta);\n        }, childrenDelta);\n      }\n      return delta.concat(childrenDelta);\n    }, new _quillDelta2.default());\n  } else {\n    return new _quillDelta2.default();\n  }\n}\n\nfunction matchAlias(format, node, delta) {\n  return applyFormat(delta, format, true);\n}\n\nfunction matchAttributor(node, delta) {\n  var attributes = _parchment2.default.Attributor.Attribute.keys(node);\n  var classes = _parchment2.default.Attributor.Class.keys(node);\n  var styles = _parchment2.default.Attributor.Style.keys(node);\n  var formats = {};\n  attributes.concat(classes).concat(styles).forEach(function (name) {\n    var attr = _parchment2.default.query(name, _parchment2.default.Scope.ATTRIBUTE);\n    if (attr != null) {\n      formats[attr.attrName] = attr.value(node);\n      if (formats[attr.attrName]) return;\n    }\n    attr = ATTRIBUTE_ATTRIBUTORS[name];\n    if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n      formats[attr.attrName] = attr.value(node) || undefined;\n    }\n    attr = STYLE_ATTRIBUTORS[name];\n    if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n      attr = STYLE_ATTRIBUTORS[name];\n      formats[attr.attrName] = attr.value(node) || undefined;\n    }\n  });\n  if (Object.keys(formats).length > 0) {\n    delta = applyFormat(delta, formats);\n  }\n  return delta;\n}\n\nfunction matchBlot(node, delta) {\n  var match = _parchment2.default.query(node);\n  if (match == null) return delta;\n  if (match.prototype instanceof _parchment2.default.Embed) {\n    var embed = {};\n    var value = match.value(node);\n    if (value != null) {\n      embed[match.blotName] = value;\n      delta = new _quillDelta2.default().insert(embed, match.formats(node));\n    }\n  } else if (typeof match.formats === 'function') {\n    delta = applyFormat(delta, match.blotName, match.formats(node));\n  }\n  return delta;\n}\n\nfunction matchBreak(node, delta) {\n  if (!deltaEndsWith(delta, '\\n')) {\n    delta.insert('\\n');\n  }\n  return delta;\n}\n\nfunction matchIgnore() {\n  return new _quillDelta2.default();\n}\n\nfunction matchIndent(node, delta) {\n  var match = _parchment2.default.query(node);\n  if (match == null || match.blotName !== 'list-item' || !deltaEndsWith(delta, '\\n')) {\n    return delta;\n  }\n  var indent = -1,\n      parent = node.parentNode;\n  while (!parent.classList.contains('ql-clipboard')) {\n    if ((_parchment2.default.query(parent) || {}).blotName === 'list') {\n      indent += 1;\n    }\n    parent = parent.parentNode;\n  }\n  if (indent <= 0) return delta;\n  return delta.compose(new _quillDelta2.default().retain(delta.length() - 1).retain(1, { indent: indent }));\n}\n\nfunction matchNewline(node, delta) {\n  if (!deltaEndsWith(delta, '\\n')) {\n    if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {\n      delta.insert('\\n');\n    }\n  }\n  return delta;\n}\n\nfunction matchSpacing(node, delta) {\n  if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, '\\n\\n')) {\n    var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);\n    if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {\n      delta.insert('\\n');\n    }\n  }\n  return delta;\n}\n\nfunction matchStyles(node, delta) {\n  var formats = {};\n  var style = node.style || {};\n  if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {\n    formats.italic = true;\n  }\n  if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') || parseInt(computeStyle(node).fontWeight) >= 700)) {\n    formats.bold = true;\n  }\n  if (Object.keys(formats).length > 0) {\n    delta = applyFormat(delta, formats);\n  }\n  if (parseFloat(style.textIndent || 0) > 0) {\n    // Could be 0.5in\n    delta = new _quillDelta2.default().insert('\\t').concat(delta);\n  }\n  return delta;\n}\n\nfunction matchText(node, delta) {\n  var text = node.data;\n  // Word represents empty line with <o:p>&nbsp;</o:p>\n  if (node.parentNode.tagName === 'O:P') {\n    return delta.insert(text.trim());\n  }\n  if (text.trim().length === 0 && node.parentNode.classList.contains('ql-clipboard')) {\n    return delta;\n  }\n  if (!computeStyle(node.parentNode).whiteSpace.startsWith('pre')) {\n    // eslint-disable-next-line func-style\n    var replacer = function replacer(collapse, match) {\n      match = match.replace(/[^\\u00a0]/g, ''); // \\u00a0 is nbsp;\n      return match.length < 1 && collapse ? ' ' : match;\n    };\n    text = text.replace(/\\r\\n/g, ' ').replace(/\\n/g, ' ');\n    text = text.replace(/\\s\\s+/g, replacer.bind(replacer, true)); // collapse whitespace\n    if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {\n      text = text.replace(/^\\s+/, replacer.bind(replacer, false));\n    }\n    if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {\n      text = text.replace(/\\s+$/, replacer.bind(replacer, false));\n    }\n  }\n  return delta.insert(text);\n}\n\nexports.default = Clipboard;\nexports.matchAttributor = matchAttributor;\nexports.matchBlot = matchBlot;\nexports.matchNewline = matchNewline;\nexports.matchSpacing = matchSpacing;\nexports.matchText = matchText;\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Bold = function (_Inline) {\n  _inherits(Bold, _Inline);\n\n  function Bold() {\n    _classCallCheck(this, Bold);\n\n    return _possibleConstructorReturn(this, (Bold.__proto__ || Object.getPrototypeOf(Bold)).apply(this, arguments));\n  }\n\n  _createClass(Bold, [{\n    key: 'optimize',\n    value: function optimize(context) {\n      _get(Bold.prototype.__proto__ || Object.getPrototypeOf(Bold.prototype), 'optimize', this).call(this, context);\n      if (this.domNode.tagName !== this.statics.tagName[0]) {\n        this.replaceWith(this.statics.blotName);\n      }\n    }\n  }], [{\n    key: 'create',\n    value: function create() {\n      return _get(Bold.__proto__ || Object.getPrototypeOf(Bold), 'create', this).call(this);\n    }\n  }, {\n    key: 'formats',\n    value: function formats() {\n      return true;\n    }\n  }]);\n\n  return Bold;\n}(_inline2.default);\n\nBold.blotName = 'bold';\nBold.tagName = ['STRONG', 'B'];\n\nexports.default = Bold;\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.addControls = exports.default = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _quillDelta = __webpack_require__(2);\n\nvar _quillDelta2 = _interopRequireDefault(_quillDelta);\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _logger = __webpack_require__(10);\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar debug = (0, _logger2.default)('quill:toolbar');\n\nvar Toolbar = function (_Module) {\n  _inherits(Toolbar, _Module);\n\n  function Toolbar(quill, options) {\n    _classCallCheck(this, Toolbar);\n\n    var _this = _possibleConstructorReturn(this, (Toolbar.__proto__ || Object.getPrototypeOf(Toolbar)).call(this, quill, options));\n\n    if (Array.isArray(_this.options.container)) {\n      var container = document.createElement('div');\n      addControls(container, _this.options.container);\n      quill.container.parentNode.insertBefore(container, quill.container);\n      _this.container = container;\n    } else if (typeof _this.options.container === 'string') {\n      _this.container = document.querySelector(_this.options.container);\n    } else {\n      _this.container = _this.options.container;\n    }\n    if (!(_this.container instanceof HTMLElement)) {\n      var _ret;\n\n      return _ret = debug.error('Container required for toolbar', _this.options), _possibleConstructorReturn(_this, _ret);\n    }\n    _this.container.classList.add('ql-toolbar');\n    _this.controls = [];\n    _this.handlers = {};\n    Object.keys(_this.options.handlers).forEach(function (format) {\n      _this.addHandler(format, _this.options.handlers[format]);\n    });\n    [].forEach.call(_this.container.querySelectorAll('button, select'), function (input) {\n      _this.attach(input);\n    });\n    _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (type, range) {\n      if (type === _quill2.default.events.SELECTION_CHANGE) {\n        _this.update(range);\n      }\n    });\n    _this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {\n      var _this$quill$selection = _this.quill.selection.getRange(),\n          _this$quill$selection2 = _slicedToArray(_this$quill$selection, 1),\n          range = _this$quill$selection2[0]; // quill.getSelection triggers update\n\n\n      _this.update(range);\n    });\n    return _this;\n  }\n\n  _createClass(Toolbar, [{\n    key: 'addHandler',\n    value: function addHandler(format, handler) {\n      this.handlers[format] = handler;\n    }\n  }, {\n    key: 'attach',\n    value: function attach(input) {\n      var _this2 = this;\n\n      var format = [].find.call(input.classList, function (className) {\n        return className.indexOf('ql-') === 0;\n      });\n      if (!format) return;\n      format = format.slice('ql-'.length);\n      if (input.tagName === 'BUTTON') {\n        input.setAttribute('type', 'button');\n      }\n      if (this.handlers[format] == null) {\n        if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[format] == null) {\n          debug.warn('ignoring attaching to disabled format', format, input);\n          return;\n        }\n        if (_parchment2.default.query(format) == null) {\n          debug.warn('ignoring attaching to nonexistent format', format, input);\n          return;\n        }\n      }\n      var eventName = input.tagName === 'SELECT' ? 'change' : 'click';\n      input.addEventListener(eventName, function (e) {\n        var value = void 0;\n        if (input.tagName === 'SELECT') {\n          if (input.selectedIndex < 0) return;\n          var selected = input.options[input.selectedIndex];\n          if (selected.hasAttribute('selected')) {\n            value = false;\n          } else {\n            value = selected.value || false;\n          }\n        } else {\n          if (input.classList.contains('ql-active')) {\n            value = false;\n          } else {\n            value = input.value || !input.hasAttribute('value');\n          }\n          e.preventDefault();\n        }\n        _this2.quill.focus();\n\n        var _quill$selection$getR = _this2.quill.selection.getRange(),\n            _quill$selection$getR2 = _slicedToArray(_quill$selection$getR, 1),\n            range = _quill$selection$getR2[0];\n\n        if (_this2.handlers[format] != null) {\n          _this2.handlers[format].call(_this2, value);\n        } else if (_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed) {\n          value = prompt('Enter ' + format);\n          if (!value) return;\n          _this2.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert(_defineProperty({}, format, value)), _quill2.default.sources.USER);\n        } else {\n          _this2.quill.format(format, value, _quill2.default.sources.USER);\n        }\n        _this2.update(range);\n      });\n      // TODO use weakmap\n      this.controls.push([format, input]);\n    }\n  }, {\n    key: 'update',\n    value: function update(range) {\n      var formats = range == null ? {} : this.quill.getFormat(range);\n      this.controls.forEach(function (pair) {\n        var _pair = _slicedToArray(pair, 2),\n            format = _pair[0],\n            input = _pair[1];\n\n        if (input.tagName === 'SELECT') {\n          var option = void 0;\n          if (range == null) {\n            option = null;\n          } else if (formats[format] == null) {\n            option = input.querySelector('option[selected]');\n          } else if (!Array.isArray(formats[format])) {\n            var value = formats[format];\n            if (typeof value === 'string') {\n              value = value.replace(/\\\"/g, '\\\\\"');\n            }\n            option = input.querySelector('option[value=\"' + value + '\"]');\n          }\n          if (option == null) {\n            input.value = ''; // TODO make configurable?\n            input.selectedIndex = -1;\n          } else {\n            option.selected = true;\n          }\n        } else {\n          if (range == null) {\n            input.classList.remove('ql-active');\n          } else if (input.hasAttribute('value')) {\n            // both being null should match (default values)\n            // '1' should match with 1 (headers)\n            var isActive = formats[format] === input.getAttribute('value') || formats[format] != null && formats[format].toString() === input.getAttribute('value') || formats[format] == null && !input.getAttribute('value');\n            input.classList.toggle('ql-active', isActive);\n          } else {\n            input.classList.toggle('ql-active', formats[format] != null);\n          }\n        }\n      });\n    }\n  }]);\n\n  return Toolbar;\n}(_module2.default);\n\nToolbar.DEFAULTS = {};\n\nfunction addButton(container, format, value) {\n  var input = document.createElement('button');\n  input.setAttribute('type', 'button');\n  input.classList.add('ql-' + format);\n  if (value != null) {\n    input.value = value;\n  }\n  container.appendChild(input);\n}\n\nfunction addControls(container, groups) {\n  if (!Array.isArray(groups[0])) {\n    groups = [groups];\n  }\n  groups.forEach(function (controls) {\n    var group = document.createElement('span');\n    group.classList.add('ql-formats');\n    controls.forEach(function (control) {\n      if (typeof control === 'string') {\n        addButton(group, control);\n      } else {\n        var format = Object.keys(control)[0];\n        var value = control[format];\n        if (Array.isArray(value)) {\n          addSelect(group, format, value);\n        } else {\n          addButton(group, format, value);\n        }\n      }\n    });\n    container.appendChild(group);\n  });\n}\n\nfunction addSelect(container, format, values) {\n  var input = document.createElement('select');\n  input.classList.add('ql-' + format);\n  values.forEach(function (value) {\n    var option = document.createElement('option');\n    if (value !== false) {\n      option.setAttribute('value', value);\n    } else {\n      option.setAttribute('selected', 'selected');\n    }\n    input.appendChild(option);\n  });\n  container.appendChild(input);\n}\n\nToolbar.DEFAULTS = {\n  container: null,\n  handlers: {\n    clean: function clean() {\n      var _this3 = this;\n\n      var range = this.quill.getSelection();\n      if (range == null) return;\n      if (range.length == 0) {\n        var formats = this.quill.getFormat();\n        Object.keys(formats).forEach(function (name) {\n          // Clean functionality in existing apps only clean inline formats\n          if (_parchment2.default.query(name, _parchment2.default.Scope.INLINE) != null) {\n            _this3.quill.format(name, false);\n          }\n        });\n      } else {\n        this.quill.removeFormat(range, _quill2.default.sources.USER);\n      }\n    },\n    direction: function direction(value) {\n      var align = this.quill.getFormat()['align'];\n      if (value === 'rtl' && align == null) {\n        this.quill.format('align', 'right', _quill2.default.sources.USER);\n      } else if (!value && align === 'right') {\n        this.quill.format('align', false, _quill2.default.sources.USER);\n      }\n      this.quill.format('direction', value, _quill2.default.sources.USER);\n    },\n    indent: function indent(value) {\n      var range = this.quill.getSelection();\n      var formats = this.quill.getFormat(range);\n      var indent = parseInt(formats.indent || 0);\n      if (value === '+1' || value === '-1') {\n        var modifier = value === '+1' ? 1 : -1;\n        if (formats.direction === 'rtl') modifier *= -1;\n        this.quill.format('indent', indent + modifier, _quill2.default.sources.USER);\n      }\n    },\n    link: function link(value) {\n      if (value === true) {\n        value = prompt('Enter link URL:');\n      }\n      this.quill.format('link', value, _quill2.default.sources.USER);\n    },\n    list: function list(value) {\n      var range = this.quill.getSelection();\n      var formats = this.quill.getFormat(range);\n      if (value === 'check') {\n        if (formats['list'] === 'checked' || formats['list'] === 'unchecked') {\n          this.quill.format('list', false, _quill2.default.sources.USER);\n        } else {\n          this.quill.format('list', 'unchecked', _quill2.default.sources.USER);\n        }\n      } else {\n        this.quill.format('list', value, _quill2.default.sources.USER);\n      }\n    }\n  }\n};\n\nexports.default = Toolbar;\nexports.addControls = addControls;\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <polyline class=\\\"ql-even ql-stroke\\\" points=\\\"5 7 3 9 5 11\\\"></polyline> <polyline class=\\\"ql-even ql-stroke\\\" points=\\\"13 7 15 9 13 11\\\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>\";\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _picker = __webpack_require__(28);\n\nvar _picker2 = _interopRequireDefault(_picker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ColorPicker = function (_Picker) {\n  _inherits(ColorPicker, _Picker);\n\n  function ColorPicker(select, label) {\n    _classCallCheck(this, ColorPicker);\n\n    var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this, select));\n\n    _this.label.innerHTML = label;\n    _this.container.classList.add('ql-color-picker');\n    [].slice.call(_this.container.querySelectorAll('.ql-picker-item'), 0, 7).forEach(function (item) {\n      item.classList.add('ql-primary');\n    });\n    return _this;\n  }\n\n  _createClass(ColorPicker, [{\n    key: 'buildItem',\n    value: function buildItem(option) {\n      var item = _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'buildItem', this).call(this, option);\n      item.style.backgroundColor = option.getAttribute('value') || '';\n      return item;\n    }\n  }, {\n    key: 'selectItem',\n    value: function selectItem(item, trigger) {\n      _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'selectItem', this).call(this, item, trigger);\n      var colorLabel = this.label.querySelector('.ql-color-label');\n      var value = item ? item.getAttribute('data-value') || '' : '';\n      if (colorLabel) {\n        if (colorLabel.tagName === 'line') {\n          colorLabel.style.stroke = value;\n        } else {\n          colorLabel.style.fill = value;\n        }\n      }\n    }\n  }]);\n\n  return ColorPicker;\n}(_picker2.default);\n\nexports.default = ColorPicker;\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _picker = __webpack_require__(28);\n\nvar _picker2 = _interopRequireDefault(_picker);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar IconPicker = function (_Picker) {\n  _inherits(IconPicker, _Picker);\n\n  function IconPicker(select, icons) {\n    _classCallCheck(this, IconPicker);\n\n    var _this = _possibleConstructorReturn(this, (IconPicker.__proto__ || Object.getPrototypeOf(IconPicker)).call(this, select));\n\n    _this.container.classList.add('ql-icon-picker');\n    [].forEach.call(_this.container.querySelectorAll('.ql-picker-item'), function (item) {\n      item.innerHTML = icons[item.getAttribute('data-value') || ''];\n    });\n    _this.defaultItem = _this.container.querySelector('.ql-selected');\n    _this.selectItem(_this.defaultItem);\n    return _this;\n  }\n\n  _createClass(IconPicker, [{\n    key: 'selectItem',\n    value: function selectItem(item, trigger) {\n      _get(IconPicker.prototype.__proto__ || Object.getPrototypeOf(IconPicker.prototype), 'selectItem', this).call(this, item, trigger);\n      item = item || this.defaultItem;\n      this.label.innerHTML = item.innerHTML;\n    }\n  }]);\n\n  return IconPicker;\n}(_picker2.default);\n\nexports.default = IconPicker;\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Tooltip = function () {\n  function Tooltip(quill, boundsContainer) {\n    var _this = this;\n\n    _classCallCheck(this, Tooltip);\n\n    this.quill = quill;\n    this.boundsContainer = boundsContainer || document.body;\n    this.root = quill.addContainer('ql-tooltip');\n    this.root.innerHTML = this.constructor.TEMPLATE;\n    if (this.quill.root === this.quill.scrollingContainer) {\n      this.quill.root.addEventListener('scroll', function () {\n        _this.root.style.marginTop = -1 * _this.quill.root.scrollTop + 'px';\n      });\n    }\n    this.hide();\n  }\n\n  _createClass(Tooltip, [{\n    key: 'hide',\n    value: function hide() {\n      this.root.classList.add('ql-hidden');\n    }\n  }, {\n    key: 'position',\n    value: function position(reference) {\n      var left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;\n      // root.scrollTop should be 0 if scrollContainer !== root\n      var top = reference.bottom + this.quill.root.scrollTop;\n      this.root.style.left = left + 'px';\n      this.root.style.top = top + 'px';\n      this.root.classList.remove('ql-flip');\n      var containerBounds = this.boundsContainer.getBoundingClientRect();\n      var rootBounds = this.root.getBoundingClientRect();\n      var shift = 0;\n      if (rootBounds.right > containerBounds.right) {\n        shift = containerBounds.right - rootBounds.right;\n        this.root.style.left = left + shift + 'px';\n      }\n      if (rootBounds.left < containerBounds.left) {\n        shift = containerBounds.left - rootBounds.left;\n        this.root.style.left = left + shift + 'px';\n      }\n      if (rootBounds.bottom > containerBounds.bottom) {\n        var height = rootBounds.bottom - rootBounds.top;\n        var verticalShift = reference.bottom - reference.top + height;\n        this.root.style.top = top - verticalShift + 'px';\n        this.root.classList.add('ql-flip');\n      }\n      return shift;\n    }\n  }, {\n    key: 'show',\n    value: function show() {\n      this.root.classList.remove('ql-editing');\n      this.root.classList.remove('ql-hidden');\n    }\n  }]);\n\n  return Tooltip;\n}();\n\nexports.default = Tooltip;\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _emitter = __webpack_require__(8);\n\nvar _emitter2 = _interopRequireDefault(_emitter);\n\nvar _base = __webpack_require__(43);\n\nvar _base2 = _interopRequireDefault(_base);\n\nvar _link = __webpack_require__(27);\n\nvar _link2 = _interopRequireDefault(_link);\n\nvar _selection = __webpack_require__(15);\n\nvar _icons = __webpack_require__(41);\n\nvar _icons2 = _interopRequireDefault(_icons);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar TOOLBAR_CONFIG = [[{ header: ['1', '2', '3', false] }], ['bold', 'italic', 'underline', 'link'], [{ list: 'ordered' }, { list: 'bullet' }], ['clean']];\n\nvar SnowTheme = function (_BaseTheme) {\n  _inherits(SnowTheme, _BaseTheme);\n\n  function SnowTheme(quill, options) {\n    _classCallCheck(this, SnowTheme);\n\n    if (options.modules.toolbar != null && options.modules.toolbar.container == null) {\n      options.modules.toolbar.container = TOOLBAR_CONFIG;\n    }\n\n    var _this = _possibleConstructorReturn(this, (SnowTheme.__proto__ || Object.getPrototypeOf(SnowTheme)).call(this, quill, options));\n\n    _this.quill.container.classList.add('ql-snow');\n    return _this;\n  }\n\n  _createClass(SnowTheme, [{\n    key: 'extendToolbar',\n    value: function extendToolbar(toolbar) {\n      toolbar.container.classList.add('ql-snow');\n      this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);\n      this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);\n      this.tooltip = new SnowTooltip(this.quill, this.options.bounds);\n      if (toolbar.container.querySelector('.ql-link')) {\n        this.quill.keyboard.addBinding({ key: 'K', shortKey: true }, function (range, context) {\n          toolbar.handlers['link'].call(toolbar, !context.format.link);\n        });\n      }\n    }\n  }]);\n\n  return SnowTheme;\n}(_base2.default);\n\nSnowTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        link: function link(value) {\n          if (value) {\n            var range = this.quill.getSelection();\n            if (range == null || range.length == 0) return;\n            var preview = this.quill.getText(range);\n            if (/^\\S+@\\S+\\.\\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {\n              preview = 'mailto:' + preview;\n            }\n            var tooltip = this.quill.theme.tooltip;\n            tooltip.edit('link', preview);\n          } else {\n            this.quill.format('link', false);\n          }\n        }\n      }\n    }\n  }\n});\n\nvar SnowTooltip = function (_BaseTooltip) {\n  _inherits(SnowTooltip, _BaseTooltip);\n\n  function SnowTooltip(quill, bounds) {\n    _classCallCheck(this, SnowTooltip);\n\n    var _this2 = _possibleConstructorReturn(this, (SnowTooltip.__proto__ || Object.getPrototypeOf(SnowTooltip)).call(this, quill, bounds));\n\n    _this2.preview = _this2.root.querySelector('a.ql-preview');\n    return _this2;\n  }\n\n  _createClass(SnowTooltip, [{\n    key: 'listen',\n    value: function listen() {\n      var _this3 = this;\n\n      _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'listen', this).call(this);\n      this.root.querySelector('a.ql-action').addEventListener('click', function (event) {\n        if (_this3.root.classList.contains('ql-editing')) {\n          _this3.save();\n        } else {\n          _this3.edit('link', _this3.preview.textContent);\n        }\n        event.preventDefault();\n      });\n      this.root.querySelector('a.ql-remove').addEventListener('click', function (event) {\n        if (_this3.linkRange != null) {\n          var range = _this3.linkRange;\n          _this3.restoreFocus();\n          _this3.quill.formatText(range, 'link', false, _emitter2.default.sources.USER);\n          delete _this3.linkRange;\n        }\n        event.preventDefault();\n        _this3.hide();\n      });\n      this.quill.on(_emitter2.default.events.SELECTION_CHANGE, function (range, oldRange, source) {\n        if (range == null) return;\n        if (range.length === 0 && source === _emitter2.default.sources.USER) {\n          var _quill$scroll$descend = _this3.quill.scroll.descendant(_link2.default, range.index),\n              _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),\n              link = _quill$scroll$descend2[0],\n              offset = _quill$scroll$descend2[1];\n\n          if (link != null) {\n            _this3.linkRange = new _selection.Range(range.index - offset, link.length());\n            var preview = _link2.default.formats(link.domNode);\n            _this3.preview.textContent = preview;\n            _this3.preview.setAttribute('href', preview);\n            _this3.show();\n            _this3.position(_this3.quill.getBounds(_this3.linkRange));\n            return;\n          }\n        } else {\n          delete _this3.linkRange;\n        }\n        _this3.hide();\n      });\n    }\n  }, {\n    key: 'show',\n    value: function show() {\n      _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'show', this).call(this);\n      this.root.removeAttribute('data-mode');\n    }\n  }]);\n\n  return SnowTooltip;\n}(_base.BaseTooltip);\n\nSnowTooltip.TEMPLATE = ['<a class=\"ql-preview\" rel=\"noopener noreferrer\" target=\"_blank\" href=\"about:blank\"></a>', '<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">', '<a class=\"ql-action\"></a>', '<a class=\"ql-remove\"></a>'].join('');\n\nexports.default = SnowTheme;\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _core = __webpack_require__(29);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _align = __webpack_require__(36);\n\nvar _direction = __webpack_require__(38);\n\nvar _indent = __webpack_require__(64);\n\nvar _blockquote = __webpack_require__(65);\n\nvar _blockquote2 = _interopRequireDefault(_blockquote);\n\nvar _header = __webpack_require__(66);\n\nvar _header2 = _interopRequireDefault(_header);\n\nvar _list = __webpack_require__(67);\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _background = __webpack_require__(37);\n\nvar _color = __webpack_require__(26);\n\nvar _font = __webpack_require__(39);\n\nvar _size = __webpack_require__(40);\n\nvar _bold = __webpack_require__(56);\n\nvar _bold2 = _interopRequireDefault(_bold);\n\nvar _italic = __webpack_require__(68);\n\nvar _italic2 = _interopRequireDefault(_italic);\n\nvar _link = __webpack_require__(27);\n\nvar _link2 = _interopRequireDefault(_link);\n\nvar _script = __webpack_require__(69);\n\nvar _script2 = _interopRequireDefault(_script);\n\nvar _strike = __webpack_require__(70);\n\nvar _strike2 = _interopRequireDefault(_strike);\n\nvar _underline = __webpack_require__(71);\n\nvar _underline2 = _interopRequireDefault(_underline);\n\nvar _image = __webpack_require__(72);\n\nvar _image2 = _interopRequireDefault(_image);\n\nvar _video = __webpack_require__(73);\n\nvar _video2 = _interopRequireDefault(_video);\n\nvar _code = __webpack_require__(13);\n\nvar _code2 = _interopRequireDefault(_code);\n\nvar _formula = __webpack_require__(74);\n\nvar _formula2 = _interopRequireDefault(_formula);\n\nvar _syntax = __webpack_require__(75);\n\nvar _syntax2 = _interopRequireDefault(_syntax);\n\nvar _toolbar = __webpack_require__(57);\n\nvar _toolbar2 = _interopRequireDefault(_toolbar);\n\nvar _icons = __webpack_require__(41);\n\nvar _icons2 = _interopRequireDefault(_icons);\n\nvar _picker = __webpack_require__(28);\n\nvar _picker2 = _interopRequireDefault(_picker);\n\nvar _colorPicker = __webpack_require__(59);\n\nvar _colorPicker2 = _interopRequireDefault(_colorPicker);\n\nvar _iconPicker = __webpack_require__(60);\n\nvar _iconPicker2 = _interopRequireDefault(_iconPicker);\n\nvar _tooltip = __webpack_require__(61);\n\nvar _tooltip2 = _interopRequireDefault(_tooltip);\n\nvar _bubble = __webpack_require__(108);\n\nvar _bubble2 = _interopRequireDefault(_bubble);\n\nvar _snow = __webpack_require__(62);\n\nvar _snow2 = _interopRequireDefault(_snow);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_core2.default.register({\n  'attributors/attribute/direction': _direction.DirectionAttribute,\n\n  'attributors/class/align': _align.AlignClass,\n  'attributors/class/background': _background.BackgroundClass,\n  'attributors/class/color': _color.ColorClass,\n  'attributors/class/direction': _direction.DirectionClass,\n  'attributors/class/font': _font.FontClass,\n  'attributors/class/size': _size.SizeClass,\n\n  'attributors/style/align': _align.AlignStyle,\n  'attributors/style/background': _background.BackgroundStyle,\n  'attributors/style/color': _color.ColorStyle,\n  'attributors/style/direction': _direction.DirectionStyle,\n  'attributors/style/font': _font.FontStyle,\n  'attributors/style/size': _size.SizeStyle\n}, true);\n\n_core2.default.register({\n  'formats/align': _align.AlignClass,\n  'formats/direction': _direction.DirectionClass,\n  'formats/indent': _indent.IndentClass,\n\n  'formats/background': _background.BackgroundStyle,\n  'formats/color': _color.ColorStyle,\n  'formats/font': _font.FontClass,\n  'formats/size': _size.SizeClass,\n\n  'formats/blockquote': _blockquote2.default,\n  'formats/code-block': _code2.default,\n  'formats/header': _header2.default,\n  'formats/list': _list2.default,\n\n  'formats/bold': _bold2.default,\n  'formats/code': _code.Code,\n  'formats/italic': _italic2.default,\n  'formats/link': _link2.default,\n  'formats/script': _script2.default,\n  'formats/strike': _strike2.default,\n  'formats/underline': _underline2.default,\n\n  'formats/image': _image2.default,\n  'formats/video': _video2.default,\n\n  'formats/list/item': _list.ListItem,\n\n  'modules/formula': _formula2.default,\n  'modules/syntax': _syntax2.default,\n  'modules/toolbar': _toolbar2.default,\n\n  'themes/bubble': _bubble2.default,\n  'themes/snow': _snow2.default,\n\n  'ui/icons': _icons2.default,\n  'ui/picker': _picker2.default,\n  'ui/icon-picker': _iconPicker2.default,\n  'ui/color-picker': _colorPicker2.default,\n  'ui/tooltip': _tooltip2.default\n}, true);\n\nexports.default = _core2.default;\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.IndentClass = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar IdentAttributor = function (_Parchment$Attributor) {\n  _inherits(IdentAttributor, _Parchment$Attributor);\n\n  function IdentAttributor() {\n    _classCallCheck(this, IdentAttributor);\n\n    return _possibleConstructorReturn(this, (IdentAttributor.__proto__ || Object.getPrototypeOf(IdentAttributor)).apply(this, arguments));\n  }\n\n  _createClass(IdentAttributor, [{\n    key: 'add',\n    value: function add(node, value) {\n      if (value === '+1' || value === '-1') {\n        var indent = this.value(node) || 0;\n        value = value === '+1' ? indent + 1 : indent - 1;\n      }\n      if (value === 0) {\n        this.remove(node);\n        return true;\n      } else {\n        return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'add', this).call(this, node, value);\n      }\n    }\n  }, {\n    key: 'canAdd',\n    value: function canAdd(node, value) {\n      return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, value) || _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, parseInt(value));\n    }\n  }, {\n    key: 'value',\n    value: function value(node) {\n      return parseInt(_get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'value', this).call(this, node)) || undefined; // Don't return NaN\n    }\n  }]);\n\n  return IdentAttributor;\n}(_parchment2.default.Attributor.Class);\n\nvar IndentClass = new IdentAttributor('indent', 'ql-indent', {\n  scope: _parchment2.default.Scope.BLOCK,\n  whitelist: [1, 2, 3, 4, 5, 6, 7, 8]\n});\n\nexports.IndentClass = IndentClass;\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Blockquote = function (_Block) {\n  _inherits(Blockquote, _Block);\n\n  function Blockquote() {\n    _classCallCheck(this, Blockquote);\n\n    return _possibleConstructorReturn(this, (Blockquote.__proto__ || Object.getPrototypeOf(Blockquote)).apply(this, arguments));\n  }\n\n  return Blockquote;\n}(_block2.default);\n\nBlockquote.blotName = 'blockquote';\nBlockquote.tagName = 'blockquote';\n\nexports.default = Blockquote;\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Header = function (_Block) {\n  _inherits(Header, _Block);\n\n  function Header() {\n    _classCallCheck(this, Header);\n\n    return _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments));\n  }\n\n  _createClass(Header, null, [{\n    key: 'formats',\n    value: function formats(domNode) {\n      return this.tagName.indexOf(domNode.tagName) + 1;\n    }\n  }]);\n\n  return Header;\n}(_block2.default);\n\nHeader.blotName = 'header';\nHeader.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];\n\nexports.default = Header;\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.ListItem = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _block = __webpack_require__(4);\n\nvar _block2 = _interopRequireDefault(_block);\n\nvar _container = __webpack_require__(25);\n\nvar _container2 = _interopRequireDefault(_container);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ListItem = function (_Block) {\n  _inherits(ListItem, _Block);\n\n  function ListItem() {\n    _classCallCheck(this, ListItem);\n\n    return _possibleConstructorReturn(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).apply(this, arguments));\n  }\n\n  _createClass(ListItem, [{\n    key: 'format',\n    value: function format(name, value) {\n      if (name === List.blotName && !value) {\n        this.replaceWith(_parchment2.default.create(this.statics.scope));\n      } else {\n        _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'format', this).call(this, name, value);\n      }\n    }\n  }, {\n    key: 'remove',\n    value: function remove() {\n      if (this.prev == null && this.next == null) {\n        this.parent.remove();\n      } else {\n        _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'remove', this).call(this);\n      }\n    }\n  }, {\n    key: 'replaceWith',\n    value: function replaceWith(name, value) {\n      this.parent.isolate(this.offset(this.parent), this.length());\n      if (name === this.parent.statics.blotName) {\n        this.parent.replaceWith(name, value);\n        return this;\n      } else {\n        this.parent.unwrap();\n        return _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'replaceWith', this).call(this, name, value);\n      }\n    }\n  }], [{\n    key: 'formats',\n    value: function formats(domNode) {\n      return domNode.tagName === this.tagName ? undefined : _get(ListItem.__proto__ || Object.getPrototypeOf(ListItem), 'formats', this).call(this, domNode);\n    }\n  }]);\n\n  return ListItem;\n}(_block2.default);\n\nListItem.blotName = 'list-item';\nListItem.tagName = 'LI';\n\nvar List = function (_Container) {\n  _inherits(List, _Container);\n\n  _createClass(List, null, [{\n    key: 'create',\n    value: function create(value) {\n      var tagName = value === 'ordered' ? 'OL' : 'UL';\n      var node = _get(List.__proto__ || Object.getPrototypeOf(List), 'create', this).call(this, tagName);\n      if (value === 'checked' || value === 'unchecked') {\n        node.setAttribute('data-checked', value === 'checked');\n      }\n      return node;\n    }\n  }, {\n    key: 'formats',\n    value: function formats(domNode) {\n      if (domNode.tagName === 'OL') return 'ordered';\n      if (domNode.tagName === 'UL') {\n        if (domNode.hasAttribute('data-checked')) {\n          return domNode.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked';\n        } else {\n          return 'bullet';\n        }\n      }\n      return undefined;\n    }\n  }]);\n\n  function List(domNode) {\n    _classCallCheck(this, List);\n\n    var _this2 = _possibleConstructorReturn(this, (List.__proto__ || Object.getPrototypeOf(List)).call(this, domNode));\n\n    var listEventHandler = function listEventHandler(e) {\n      if (e.target.parentNode !== domNode) return;\n      var format = _this2.statics.formats(domNode);\n      var blot = _parchment2.default.find(e.target);\n      if (format === 'checked') {\n        blot.format('list', 'unchecked');\n      } else if (format === 'unchecked') {\n        blot.format('list', 'checked');\n      }\n    };\n\n    domNode.addEventListener('touchstart', listEventHandler);\n    domNode.addEventListener('mousedown', listEventHandler);\n    return _this2;\n  }\n\n  _createClass(List, [{\n    key: 'format',\n    value: function format(name, value) {\n      if (this.children.length > 0) {\n        this.children.tail.format(name, value);\n      }\n    }\n  }, {\n    key: 'formats',\n    value: function formats() {\n      // We don't inherit from FormatBlot\n      return _defineProperty({}, this.statics.blotName, this.statics.formats(this.domNode));\n    }\n  }, {\n    key: 'insertBefore',\n    value: function insertBefore(blot, ref) {\n      if (blot instanceof ListItem) {\n        _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'insertBefore', this).call(this, blot, ref);\n      } else {\n        var index = ref == null ? this.length() : ref.offset(this);\n        var after = this.split(index);\n        after.parent.insertBefore(blot, after);\n      }\n    }\n  }, {\n    key: 'optimize',\n    value: function optimize(context) {\n      _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'optimize', this).call(this, context);\n      var next = this.next;\n      if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute('data-checked') === this.domNode.getAttribute('data-checked')) {\n        next.moveChildren(this);\n        next.remove();\n      }\n    }\n  }, {\n    key: 'replace',\n    value: function replace(target) {\n      if (target.statics.blotName !== this.statics.blotName) {\n        var item = _parchment2.default.create(this.statics.defaultChild);\n        target.moveChildren(item);\n        this.appendChild(item);\n      }\n      _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'replace', this).call(this, target);\n    }\n  }]);\n\n  return List;\n}(_container2.default);\n\nList.blotName = 'list';\nList.scope = _parchment2.default.Scope.BLOCK_BLOT;\nList.tagName = ['OL', 'UL'];\nList.defaultChild = 'list-item';\nList.allowedChildren = [ListItem];\n\nexports.ListItem = ListItem;\nexports.default = List;\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _bold = __webpack_require__(56);\n\nvar _bold2 = _interopRequireDefault(_bold);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Italic = function (_Bold) {\n  _inherits(Italic, _Bold);\n\n  function Italic() {\n    _classCallCheck(this, Italic);\n\n    return _possibleConstructorReturn(this, (Italic.__proto__ || Object.getPrototypeOf(Italic)).apply(this, arguments));\n  }\n\n  return Italic;\n}(_bold2.default);\n\nItalic.blotName = 'italic';\nItalic.tagName = ['EM', 'I'];\n\nexports.default = Italic;\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Script = function (_Inline) {\n  _inherits(Script, _Inline);\n\n  function Script() {\n    _classCallCheck(this, Script);\n\n    return _possibleConstructorReturn(this, (Script.__proto__ || Object.getPrototypeOf(Script)).apply(this, arguments));\n  }\n\n  _createClass(Script, null, [{\n    key: 'create',\n    value: function create(value) {\n      if (value === 'super') {\n        return document.createElement('sup');\n      } else if (value === 'sub') {\n        return document.createElement('sub');\n      } else {\n        return _get(Script.__proto__ || Object.getPrototypeOf(Script), 'create', this).call(this, value);\n      }\n    }\n  }, {\n    key: 'formats',\n    value: function formats(domNode) {\n      if (domNode.tagName === 'SUB') return 'sub';\n      if (domNode.tagName === 'SUP') return 'super';\n      return undefined;\n    }\n  }]);\n\n  return Script;\n}(_inline2.default);\n\nScript.blotName = 'script';\nScript.tagName = ['SUB', 'SUP'];\n\nexports.default = Script;\n\n/***/ }),\n/* 70 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Strike = function (_Inline) {\n  _inherits(Strike, _Inline);\n\n  function Strike() {\n    _classCallCheck(this, Strike);\n\n    return _possibleConstructorReturn(this, (Strike.__proto__ || Object.getPrototypeOf(Strike)).apply(this, arguments));\n  }\n\n  return Strike;\n}(_inline2.default);\n\nStrike.blotName = 'strike';\nStrike.tagName = 'S';\n\nexports.default = Strike;\n\n/***/ }),\n/* 71 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _inline = __webpack_require__(6);\n\nvar _inline2 = _interopRequireDefault(_inline);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Underline = function (_Inline) {\n  _inherits(Underline, _Inline);\n\n  function Underline() {\n    _classCallCheck(this, Underline);\n\n    return _possibleConstructorReturn(this, (Underline.__proto__ || Object.getPrototypeOf(Underline)).apply(this, arguments));\n  }\n\n  return Underline;\n}(_inline2.default);\n\nUnderline.blotName = 'underline';\nUnderline.tagName = 'U';\n\nexports.default = Underline;\n\n/***/ }),\n/* 72 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _link = __webpack_require__(27);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ATTRIBUTES = ['alt', 'height', 'width'];\n\nvar Image = function (_Parchment$Embed) {\n  _inherits(Image, _Parchment$Embed);\n\n  function Image() {\n    _classCallCheck(this, Image);\n\n    return _possibleConstructorReturn(this, (Image.__proto__ || Object.getPrototypeOf(Image)).apply(this, arguments));\n  }\n\n  _createClass(Image, [{\n    key: 'format',\n    value: function format(name, value) {\n      if (ATTRIBUTES.indexOf(name) > -1) {\n        if (value) {\n          this.domNode.setAttribute(name, value);\n        } else {\n          this.domNode.removeAttribute(name);\n        }\n      } else {\n        _get(Image.prototype.__proto__ || Object.getPrototypeOf(Image.prototype), 'format', this).call(this, name, value);\n      }\n    }\n  }], [{\n    key: 'create',\n    value: function create(value) {\n      var node = _get(Image.__proto__ || Object.getPrototypeOf(Image), 'create', this).call(this, value);\n      if (typeof value === 'string') {\n        node.setAttribute('src', this.sanitize(value));\n      }\n      return node;\n    }\n  }, {\n    key: 'formats',\n    value: function formats(domNode) {\n      return ATTRIBUTES.reduce(function (formats, attribute) {\n        if (domNode.hasAttribute(attribute)) {\n          formats[attribute] = domNode.getAttribute(attribute);\n        }\n        return formats;\n      }, {});\n    }\n  }, {\n    key: 'match',\n    value: function match(url) {\n      return (/\\.(jpe?g|gif|png)$/.test(url) || /^data:image\\/.+;base64/.test(url)\n      );\n    }\n  }, {\n    key: 'sanitize',\n    value: function sanitize(url) {\n      return (0, _link.sanitize)(url, ['http', 'https', 'data']) ? url : '//:0';\n    }\n  }, {\n    key: 'value',\n    value: function value(domNode) {\n      return domNode.getAttribute('src');\n    }\n  }]);\n\n  return Image;\n}(_parchment2.default.Embed);\n\nImage.blotName = 'image';\nImage.tagName = 'IMG';\n\nexports.default = Image;\n\n/***/ }),\n/* 73 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _block = __webpack_require__(4);\n\nvar _link = __webpack_require__(27);\n\nvar _link2 = _interopRequireDefault(_link);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ATTRIBUTES = ['height', 'width'];\n\nvar Video = function (_BlockEmbed) {\n  _inherits(Video, _BlockEmbed);\n\n  function Video() {\n    _classCallCheck(this, Video);\n\n    return _possibleConstructorReturn(this, (Video.__proto__ || Object.getPrototypeOf(Video)).apply(this, arguments));\n  }\n\n  _createClass(Video, [{\n    key: 'format',\n    value: function format(name, value) {\n      if (ATTRIBUTES.indexOf(name) > -1) {\n        if (value) {\n          this.domNode.setAttribute(name, value);\n        } else {\n          this.domNode.removeAttribute(name);\n        }\n      } else {\n        _get(Video.prototype.__proto__ || Object.getPrototypeOf(Video.prototype), 'format', this).call(this, name, value);\n      }\n    }\n  }], [{\n    key: 'create',\n    value: function create(value) {\n      var node = _get(Video.__proto__ || Object.getPrototypeOf(Video), 'create', this).call(this, value);\n      node.setAttribute('frameborder', '0');\n      node.setAttribute('allowfullscreen', true);\n      node.setAttribute('src', this.sanitize(value));\n      return node;\n    }\n  }, {\n    key: 'formats',\n    value: function formats(domNode) {\n      return ATTRIBUTES.reduce(function (formats, attribute) {\n        if (domNode.hasAttribute(attribute)) {\n          formats[attribute] = domNode.getAttribute(attribute);\n        }\n        return formats;\n      }, {});\n    }\n  }, {\n    key: 'sanitize',\n    value: function sanitize(url) {\n      return _link2.default.sanitize(url);\n    }\n  }, {\n    key: 'value',\n    value: function value(domNode) {\n      return domNode.getAttribute('src');\n    }\n  }]);\n\n  return Video;\n}(_block.BlockEmbed);\n\nVideo.blotName = 'video';\nVideo.className = 'ql-video';\nVideo.tagName = 'IFRAME';\n\nexports.default = Video;\n\n/***/ }),\n/* 74 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.FormulaBlot = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _embed = __webpack_require__(35);\n\nvar _embed2 = _interopRequireDefault(_embed);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar FormulaBlot = function (_Embed) {\n  _inherits(FormulaBlot, _Embed);\n\n  function FormulaBlot() {\n    _classCallCheck(this, FormulaBlot);\n\n    return _possibleConstructorReturn(this, (FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot)).apply(this, arguments));\n  }\n\n  _createClass(FormulaBlot, null, [{\n    key: 'create',\n    value: function create(value) {\n      var node = _get(FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot), 'create', this).call(this, value);\n      if (typeof value === 'string') {\n        window.katex.render(value, node, {\n          throwOnError: false,\n          errorColor: '#f00'\n        });\n        node.setAttribute('data-value', value);\n      }\n      return node;\n    }\n  }, {\n    key: 'value',\n    value: function value(domNode) {\n      return domNode.getAttribute('data-value');\n    }\n  }]);\n\n  return FormulaBlot;\n}(_embed2.default);\n\nFormulaBlot.blotName = 'formula';\nFormulaBlot.className = 'ql-formula';\nFormulaBlot.tagName = 'SPAN';\n\nvar Formula = function (_Module) {\n  _inherits(Formula, _Module);\n\n  _createClass(Formula, null, [{\n    key: 'register',\n    value: function register() {\n      _quill2.default.register(FormulaBlot, true);\n    }\n  }]);\n\n  function Formula() {\n    _classCallCheck(this, Formula);\n\n    var _this2 = _possibleConstructorReturn(this, (Formula.__proto__ || Object.getPrototypeOf(Formula)).call(this));\n\n    if (window.katex == null) {\n      throw new Error('Formula module requires KaTeX.');\n    }\n    return _this2;\n  }\n\n  return Formula;\n}(_module2.default);\n\nexports.FormulaBlot = FormulaBlot;\nexports.default = Formula;\n\n/***/ }),\n/* 75 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.CodeToken = exports.CodeBlock = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _parchment = __webpack_require__(0);\n\nvar _parchment2 = _interopRequireDefault(_parchment);\n\nvar _quill = __webpack_require__(5);\n\nvar _quill2 = _interopRequireDefault(_quill);\n\nvar _module = __webpack_require__(9);\n\nvar _module2 = _interopRequireDefault(_module);\n\nvar _code = __webpack_require__(13);\n\nvar _code2 = _interopRequireDefault(_code);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar SyntaxCodeBlock = function (_CodeBlock) {\n  _inherits(SyntaxCodeBlock, _CodeBlock);\n\n  function SyntaxCodeBlock() {\n    _classCallCheck(this, SyntaxCodeBlock);\n\n    return _possibleConstructorReturn(this, (SyntaxCodeBlock.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock)).apply(this, arguments));\n  }\n\n  _createClass(SyntaxCodeBlock, [{\n    key: 'replaceWith',\n    value: function replaceWith(block) {\n      this.domNode.textContent = this.domNode.textContent;\n      this.attach();\n      _get(SyntaxCodeBlock.prototype.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock.prototype), 'replaceWith', this).call(this, block);\n    }\n  }, {\n    key: 'highlight',\n    value: function highlight(_highlight) {\n      var text = this.domNode.textContent;\n      if (this.cachedText !== text) {\n        if (text.trim().length > 0 || this.cachedText == null) {\n          this.domNode.innerHTML = _highlight(text);\n          this.domNode.normalize();\n          this.attach();\n        }\n        this.cachedText = text;\n      }\n    }\n  }]);\n\n  return SyntaxCodeBlock;\n}(_code2.default);\n\nSyntaxCodeBlock.className = 'ql-syntax';\n\nvar CodeToken = new _parchment2.default.Attributor.Class('token', 'hljs', {\n  scope: _parchment2.default.Scope.INLINE\n});\n\nvar Syntax = function (_Module) {\n  _inherits(Syntax, _Module);\n\n  _createClass(Syntax, null, [{\n    key: 'register',\n    value: function register() {\n      _quill2.default.register(CodeToken, true);\n      _quill2.default.register(SyntaxCodeBlock, true);\n    }\n  }]);\n\n  function Syntax(quill, options) {\n    _classCallCheck(this, Syntax);\n\n    var _this2 = _possibleConstructorReturn(this, (Syntax.__proto__ || Object.getPrototypeOf(Syntax)).call(this, quill, options));\n\n    if (typeof _this2.options.highlight !== 'function') {\n      throw new Error('Syntax module requires highlight.js. Please include the library on the page before Quill.');\n    }\n    var timer = null;\n    _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {\n      clearTimeout(timer);\n      timer = setTimeout(function () {\n        _this2.highlight();\n        timer = null;\n      }, _this2.options.interval);\n    });\n    _this2.highlight();\n    return _this2;\n  }\n\n  _createClass(Syntax, [{\n    key: 'highlight',\n    value: function highlight() {\n      var _this3 = this;\n\n      if (this.quill.selection.composing) return;\n      this.quill.update(_quill2.default.sources.USER);\n      var range = this.quill.getSelection();\n      this.quill.scroll.descendants(SyntaxCodeBlock).forEach(function (code) {\n        code.highlight(_this3.options.highlight);\n      });\n      this.quill.update(_quill2.default.sources.SILENT);\n      if (range != null) {\n        this.quill.setSelection(range, _quill2.default.sources.SILENT);\n      }\n    }\n  }]);\n\n  return Syntax;\n}(_module2.default);\n\nSyntax.DEFAULTS = {\n  highlight: function () {\n    if (window.hljs == null) return null;\n    return function (text) {\n      var result = window.hljs.highlightAuto(text);\n      return result.value;\n    };\n  }(),\n  interval: 1000\n};\n\nexports.CodeBlock = SyntaxCodeBlock;\nexports.CodeToken = CodeToken;\nexports.default = Syntax;\n\n/***/ }),\n/* 76 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>\";\n\n/***/ }),\n/* 77 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>\";\n\n/***/ }),\n/* 78 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>\";\n\n/***/ }),\n/* 79 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>\";\n\n/***/ }),\n/* 80 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <g class=\\\"ql-fill ql-color-label\\\"> <polygon points=\\\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\\\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\\\"6.817 5 6 5 6 6 6.38 6 6.817 5\\\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\\\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\\\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\\\"4.63 10 4 10 4 11 4.192 11 4.63 10\\\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\\\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\\\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\\\"12 6.868 12 6 11.62 6 12 6.868\\\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\\\"12.933 9 13 9 13 8 12.495 8 12.933 9\\\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\\\"5.5 13 9 5 12.5 13\\\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>\";\n\n/***/ }),\n/* 81 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <rect class=\\\"ql-fill ql-stroke\\\" height=3 width=3 x=4 y=5></rect> <rect class=\\\"ql-fill ql-stroke\\\" height=3 width=3 x=11 y=5></rect> <path class=\\\"ql-even ql-fill ql-stroke\\\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\\\"ql-even ql-fill ql-stroke\\\" d=M14,8c0,4.031-3,5-3,5></path> </svg>\";\n\n/***/ }),\n/* 82 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>\";\n\n/***/ }),\n/* 83 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg class=\\\"\\\" viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>\";\n\n/***/ }),\n/* 84 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=\\\"ql-color-label ql-stroke ql-transparent\\\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\\\"5.5 11 9 3 12.5 11\\\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>\";\n\n/***/ }),\n/* 85 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <polygon class=\\\"ql-stroke ql-fill\\\" points=\\\"3 11 5 9 3 7 3 11\\\"></polygon> <line class=\\\"ql-stroke ql-fill\\\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>\";\n\n/***/ }),\n/* 86 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <polygon class=\\\"ql-stroke ql-fill\\\" points=\\\"15 12 13 10 15 8 15 12\\\"></polygon> <line class=\\\"ql-stroke ql-fill\\\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>\";\n\n/***/ }),\n/* 87 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>\";\n\n/***/ }),\n/* 88 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>\";\n\n/***/ }),\n/* 89 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>\";\n\n/***/ }),\n/* 90 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\\\"translate(24 18) rotate(-180)\\\"/> </svg>\";\n\n/***/ }),\n/* 91 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>\";\n\n/***/ }),\n/* 92 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewBox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>\";\n\n/***/ }),\n/* 93 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewBox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>\";\n\n/***/ }),\n/* 94 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>\";\n\n/***/ }),\n/* 95 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\\\"ql-even ql-fill\\\" points=\\\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\\\"></polyline> </svg>\";\n\n/***/ }),\n/* 96 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\\\"ql-fill ql-stroke\\\" points=\\\"3 7 3 11 5 9 3 7\\\"></polyline> </svg>\";\n\n/***/ }),\n/* 97 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\\\"5 7 5 11 3 9 5 7\\\"></polyline> </svg>\";\n\n/***/ }),\n/* 98 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\\\"ql-even ql-stroke\\\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\\\"ql-even ql-stroke\\\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>\";\n\n/***/ }),\n/* 99 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\\\"ql-stroke ql-thin\\\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\\\"ql-stroke ql-thin\\\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\\\"ql-stroke ql-thin\\\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>\";\n\n/***/ }),\n/* 100 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>\";\n\n/***/ }),\n/* 101 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg class=\\\"\\\" viewbox=\\\"0 0 18 18\\\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\\\"3 4 4 5 6 3\\\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\\\"3 14 4 15 6 13\\\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\\\"3 9 4 10 6 8\\\"></polyline> </svg>\";\n\n/***/ }),\n/* 102 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>\";\n\n/***/ }),\n/* 103 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>\";\n\n/***/ }),\n/* 104 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <line class=\\\"ql-stroke ql-thin\\\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>\";\n\n/***/ }),\n/* 105 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>\";\n\n/***/ }),\n/* 106 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>\";\n\n/***/ }),\n/* 107 */\n/***/ (function(module, exports) {\n\nmodule.exports = \"<svg viewbox=\\\"0 0 18 18\\\"> <polygon class=ql-stroke points=\\\"7 11 9 13 11 11 7 11\\\"></polygon> <polygon class=ql-stroke points=\\\"7 7 9 5 11 7 7 7\\\"></polygon> </svg>\";\n\n/***/ }),\n/* 108 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = exports.BubbleTooltip = undefined;\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _extend = __webpack_require__(3);\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _emitter = __webpack_require__(8);\n\nvar _emitter2 = _interopRequireDefault(_emitter);\n\nvar _base = __webpack_require__(43);\n\nvar _base2 = _interopRequireDefault(_base);\n\nvar _selection = __webpack_require__(15);\n\nvar _icons = __webpack_require__(41);\n\nvar _icons2 = _interopRequireDefault(_icons);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar TOOLBAR_CONFIG = [['bold', 'italic', 'link'], [{ header: 1 }, { header: 2 }, 'blockquote']];\n\nvar BubbleTheme = function (_BaseTheme) {\n  _inherits(BubbleTheme, _BaseTheme);\n\n  function BubbleTheme(quill, options) {\n    _classCallCheck(this, BubbleTheme);\n\n    if (options.modules.toolbar != null && options.modules.toolbar.container == null) {\n      options.modules.toolbar.container = TOOLBAR_CONFIG;\n    }\n\n    var _this = _possibleConstructorReturn(this, (BubbleTheme.__proto__ || Object.getPrototypeOf(BubbleTheme)).call(this, quill, options));\n\n    _this.quill.container.classList.add('ql-bubble');\n    return _this;\n  }\n\n  _createClass(BubbleTheme, [{\n    key: 'extendToolbar',\n    value: function extendToolbar(toolbar) {\n      this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);\n      this.tooltip.root.appendChild(toolbar.container);\n      this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);\n      this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);\n    }\n  }]);\n\n  return BubbleTheme;\n}(_base2.default);\n\nBubbleTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        link: function link(value) {\n          if (!value) {\n            this.quill.format('link', false);\n          } else {\n            this.quill.theme.tooltip.edit();\n          }\n        }\n      }\n    }\n  }\n});\n\nvar BubbleTooltip = function (_BaseTooltip) {\n  _inherits(BubbleTooltip, _BaseTooltip);\n\n  function BubbleTooltip(quill, bounds) {\n    _classCallCheck(this, BubbleTooltip);\n\n    var _this2 = _possibleConstructorReturn(this, (BubbleTooltip.__proto__ || Object.getPrototypeOf(BubbleTooltip)).call(this, quill, bounds));\n\n    _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE, function (type, range, oldRange, source) {\n      if (type !== _emitter2.default.events.SELECTION_CHANGE) return;\n      if (range != null && range.length > 0 && source === _emitter2.default.sources.USER) {\n        _this2.show();\n        // Lock our width so we will expand beyond our offsetParent boundaries\n        _this2.root.style.left = '0px';\n        _this2.root.style.width = '';\n        _this2.root.style.width = _this2.root.offsetWidth + 'px';\n        var lines = _this2.quill.getLines(range.index, range.length);\n        if (lines.length === 1) {\n          _this2.position(_this2.quill.getBounds(range));\n        } else {\n          var lastLine = lines[lines.length - 1];\n          var index = _this2.quill.getIndex(lastLine);\n          var length = Math.min(lastLine.length() - 1, range.index + range.length - index);\n          var _bounds = _this2.quill.getBounds(new _selection.Range(index, length));\n          _this2.position(_bounds);\n        }\n      } else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {\n        _this2.hide();\n      }\n    });\n    return _this2;\n  }\n\n  _createClass(BubbleTooltip, [{\n    key: 'listen',\n    value: function listen() {\n      var _this3 = this;\n\n      _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'listen', this).call(this);\n      this.root.querySelector('.ql-close').addEventListener('click', function () {\n        _this3.root.classList.remove('ql-editing');\n      });\n      this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE, function () {\n        // Let selection be restored by toolbar handlers before repositioning\n        setTimeout(function () {\n          if (_this3.root.classList.contains('ql-hidden')) return;\n          var range = _this3.quill.getSelection();\n          if (range != null) {\n            _this3.position(_this3.quill.getBounds(range));\n          }\n        }, 1);\n      });\n    }\n  }, {\n    key: 'cancel',\n    value: function cancel() {\n      this.show();\n    }\n  }, {\n    key: 'position',\n    value: function position(reference) {\n      var shift = _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'position', this).call(this, reference);\n      var arrow = this.root.querySelector('.ql-tooltip-arrow');\n      arrow.style.marginLeft = '';\n      if (shift === 0) return shift;\n      arrow.style.marginLeft = -1 * shift - arrow.offsetWidth / 2 + 'px';\n    }\n  }]);\n\n  return BubbleTooltip;\n}(_base.BaseTooltip);\n\nBubbleTooltip.TEMPLATE = ['<span class=\"ql-tooltip-arrow\"></span>', '<div class=\"ql-tooltip-editor\">', '<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">', '<a class=\"ql-close\"></a>', '</div>'].join('');\n\nexports.BubbleTooltip = BubbleTooltip;\nexports.default = BubbleTheme;\n\n/***/ }),\n/* 109 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(63);\n\n\n/***/ })\n/******/ ])[\"default\"];\n});","/**\n * @license React\n * react-dom-server-legacy.browser.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\nvar React = require('react');\n\nvar ReactVersion = '18.3.1';\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n  {\n    {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      printWarning('warn', format, args);\n    }\n  }\n}\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\nfunction scheduleWork(callback) {\n  callback();\n}\nfunction beginWriting(destination) {}\nfunction writeChunk(destination, chunk) {\n  writeChunkAndReturn(destination, chunk);\n}\nfunction writeChunkAndReturn(destination, chunk) {\n  return destination.push(chunk);\n}\nfunction completeWriting(destination) {}\nfunction close(destination) {\n  destination.push(null);\n}\nfunction stringToChunk(content) {\n  return content;\n}\nfunction stringToPrecomputedChunk(content) {\n  return content;\n}\nfunction closeWithError(destination, error) {\n  // $FlowFixMe: This is an Error object or the destination accepts other types.\n  destination.destroy(error);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\n\nfunction checkAttributeStringCoercion(value, attributeName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkCSSPropertyStringCoercion(value, propName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkHtmlStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":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\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n    return true;\n  }\n\n  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n    return false;\n  }\n\n  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n    validatedAttributeNameCache[attributeName] = true;\n    return true;\n  }\n\n  illegalAttributeNameCache[attributeName] = true;\n\n  {\n    error('Invalid attribute name: `%s`', attributeName);\n  }\n\n  return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n  if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n    return false;\n  }\n\n  switch (typeof value) {\n    case 'function': // $FlowIssue symbol is perfectly valid here\n\n    case 'symbol':\n      // eslint-disable-line\n      return true;\n\n    case 'boolean':\n      {\n        if (isCustomComponentTag) {\n          return false;\n        }\n\n        if (propertyInfo !== null) {\n          return !propertyInfo.acceptsBooleans;\n        } else {\n          var prefix = name.toLowerCase().slice(0, 5);\n          return prefix !== 'data-' && prefix !== 'aria-';\n        }\n      }\n\n    default:\n      return false;\n  }\n}\nfunction getPropertyInfo(name) {\n  return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n  this.attributeName = attributeName;\n  this.attributeNamespace = attributeNamespace;\n  this.mustUseProperty = mustUseProperty;\n  this.propertyName = name;\n  this.type = type;\n  this.sanitizeURL = sanitizeURL;\n  this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\n\nreservedProps.forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n  var name = _ref[0],\n      attributeName = _ref[1];\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n  return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['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' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n  false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  true, // sanitizeURL\n  true);\n});\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nvar isUnitlessNumber = {\n  animationIterationCount: true,\n  aspectRatio: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  columns: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridArea: true,\n  gridRow: true,\n  gridRowEnd: true,\n  gridRowSpan: true,\n  gridRowStart: true,\n  gridColumn: true,\n  gridColumnEnd: true,\n  gridColumnSpan: true,\n  gridColumnStart: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n};\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\n\nfunction prefixKey(prefix, key) {\n  return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\n\n\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n  prefixes.forEach(function (prefix) {\n    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n  });\n});\n\nvar hasReadOnlyValue = {\n  button: true,\n  checkbox: true,\n  image: true,\n  hidden: true,\n  radio: true,\n  reset: true,\n  submit: true\n};\nfunction checkControlledValueProps(tagName, props) {\n  {\n    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {\n      error('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    }\n\n    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {\n      error('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`.');\n    }\n  }\n}\n\nfunction isCustomComponent(tagName, props) {\n  if (tagName.indexOf('-') === -1) {\n    return typeof props.is === 'string';\n  }\n\n  switch (tagName) {\n    // These are reserved SVG and MathML elements.\n    // We don't mind this list too much because we expect it to never grow.\n    // The alternative is to track the namespace in a few places which is convoluted.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      return false;\n\n    default:\n      return true;\n  }\n}\n\nvar ariaProperties = {\n  'aria-current': 0,\n  // state\n  'aria-description': 0,\n  'aria-details': 0,\n  'aria-disabled': 0,\n  // state\n  'aria-hidden': 0,\n  // state\n  'aria-invalid': 0,\n  // state\n  'aria-keyshortcuts': 0,\n  'aria-label': 0,\n  'aria-roledescription': 0,\n  // Widget Attributes\n  'aria-autocomplete': 0,\n  'aria-checked': 0,\n  'aria-expanded': 0,\n  'aria-haspopup': 0,\n  'aria-level': 0,\n  'aria-modal': 0,\n  'aria-multiline': 0,\n  'aria-multiselectable': 0,\n  'aria-orientation': 0,\n  'aria-placeholder': 0,\n  'aria-pressed': 0,\n  'aria-readonly': 0,\n  'aria-required': 0,\n  'aria-selected': 0,\n  'aria-sort': 0,\n  'aria-valuemax': 0,\n  'aria-valuemin': 0,\n  'aria-valuenow': 0,\n  'aria-valuetext': 0,\n  // Live Region Attributes\n  'aria-atomic': 0,\n  'aria-busy': 0,\n  'aria-live': 0,\n  'aria-relevant': 0,\n  // Drag-and-Drop Attributes\n  'aria-dropeffect': 0,\n  'aria-grabbed': 0,\n  // Relationship Attributes\n  'aria-activedescendant': 0,\n  'aria-colcount': 0,\n  'aria-colindex': 0,\n  'aria-colspan': 0,\n  'aria-controls': 0,\n  'aria-describedby': 0,\n  'aria-errormessage': 0,\n  'aria-flowto': 0,\n  'aria-labelledby': 0,\n  'aria-owns': 0,\n  'aria-posinset': 0,\n  'aria-rowcount': 0,\n  'aria-rowindex': 0,\n  'aria-rowspan': 0,\n  'aria-setsize': 0\n};\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nfunction validateProperty(tagName, name) {\n  {\n    if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {\n      return true;\n    }\n\n    if (rARIACamel.test(name)) {\n      var ariaName = 'aria-' + name.slice(4).toLowerCase();\n      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (correctName == null) {\n        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n\n        warnedProperties[name] = true;\n        return true;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== correctName) {\n        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n\n    if (rARIA.test(name)) {\n      var lowerCasedName = name.toLowerCase();\n      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (standardName == null) {\n        warnedProperties[name] = true;\n        return false;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== standardName) {\n        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n  }\n\n  return true;\n}\n\nfunction warnInvalidARIAProps(type, props) {\n  {\n    var invalidProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty(type, key);\n\n      if (!isValid) {\n        invalidProps.push(key);\n      }\n    }\n\n    var unknownPropString = invalidProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (invalidProps.length === 1) {\n      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    } else if (invalidProps.length > 1) {\n      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    }\n  }\n}\n\nfunction validateProperties(type, props) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull = false;\nfunction validateProperties$1(type, props) {\n  {\n    if (type !== 'input' && type !== 'textarea' && type !== 'select') {\n      return;\n    }\n\n    if (props != null && props.value === null && !didWarnValueNull) {\n      didWarnValueNull = true;\n\n      if (type === 'select' && props.multiple) {\n        error('`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.', type);\n      } else {\n        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n      }\n    }\n  }\n}\n\n// When adding attributes to the HTML or SVG allowed attribute list, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames = {\n  // HTML\n  accept: 'accept',\n  acceptcharset: 'acceptCharset',\n  'accept-charset': 'acceptCharset',\n  accesskey: 'accessKey',\n  action: 'action',\n  allowfullscreen: 'allowFullScreen',\n  alt: 'alt',\n  as: 'as',\n  async: 'async',\n  autocapitalize: 'autoCapitalize',\n  autocomplete: 'autoComplete',\n  autocorrect: 'autoCorrect',\n  autofocus: 'autoFocus',\n  autoplay: 'autoPlay',\n  autosave: 'autoSave',\n  capture: 'capture',\n  cellpadding: 'cellPadding',\n  cellspacing: 'cellSpacing',\n  challenge: 'challenge',\n  charset: 'charSet',\n  checked: 'checked',\n  children: 'children',\n  cite: 'cite',\n  class: 'className',\n  classid: 'classID',\n  classname: 'className',\n  cols: 'cols',\n  colspan: 'colSpan',\n  content: 'content',\n  contenteditable: 'contentEditable',\n  contextmenu: 'contextMenu',\n  controls: 'controls',\n  controlslist: 'controlsList',\n  coords: 'coords',\n  crossorigin: 'crossOrigin',\n  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n  data: 'data',\n  datetime: 'dateTime',\n  default: 'default',\n  defaultchecked: 'defaultChecked',\n  defaultvalue: 'defaultValue',\n  defer: 'defer',\n  dir: 'dir',\n  disabled: 'disabled',\n  disablepictureinpicture: 'disablePictureInPicture',\n  disableremoteplayback: 'disableRemotePlayback',\n  download: 'download',\n  draggable: 'draggable',\n  enctype: 'encType',\n  enterkeyhint: 'enterKeyHint',\n  for: 'htmlFor',\n  form: 'form',\n  formmethod: 'formMethod',\n  formaction: 'formAction',\n  formenctype: 'formEncType',\n  formnovalidate: 'formNoValidate',\n  formtarget: 'formTarget',\n  frameborder: 'frameBorder',\n  headers: 'headers',\n  height: 'height',\n  hidden: 'hidden',\n  high: 'high',\n  href: 'href',\n  hreflang: 'hrefLang',\n  htmlfor: 'htmlFor',\n  httpequiv: 'httpEquiv',\n  'http-equiv': 'httpEquiv',\n  icon: 'icon',\n  id: 'id',\n  imagesizes: 'imageSizes',\n  imagesrcset: 'imageSrcSet',\n  innerhtml: 'innerHTML',\n  inputmode: 'inputMode',\n  integrity: 'integrity',\n  is: 'is',\n  itemid: 'itemID',\n  itemprop: 'itemProp',\n  itemref: 'itemRef',\n  itemscope: 'itemScope',\n  itemtype: 'itemType',\n  keyparams: 'keyParams',\n  keytype: 'keyType',\n  kind: 'kind',\n  label: 'label',\n  lang: 'lang',\n  list: 'list',\n  loop: 'loop',\n  low: 'low',\n  manifest: 'manifest',\n  marginwidth: 'marginWidth',\n  marginheight: 'marginHeight',\n  max: 'max',\n  maxlength: 'maxLength',\n  media: 'media',\n  mediagroup: 'mediaGroup',\n  method: 'method',\n  min: 'min',\n  minlength: 'minLength',\n  multiple: 'multiple',\n  muted: 'muted',\n  name: 'name',\n  nomodule: 'noModule',\n  nonce: 'nonce',\n  novalidate: 'noValidate',\n  open: 'open',\n  optimum: 'optimum',\n  pattern: 'pattern',\n  placeholder: 'placeholder',\n  playsinline: 'playsInline',\n  poster: 'poster',\n  preload: 'preload',\n  profile: 'profile',\n  radiogroup: 'radioGroup',\n  readonly: 'readOnly',\n  referrerpolicy: 'referrerPolicy',\n  rel: 'rel',\n  required: 'required',\n  reversed: 'reversed',\n  role: 'role',\n  rows: 'rows',\n  rowspan: 'rowSpan',\n  sandbox: 'sandbox',\n  scope: 'scope',\n  scoped: 'scoped',\n  scrolling: 'scrolling',\n  seamless: 'seamless',\n  selected: 'selected',\n  shape: 'shape',\n  size: 'size',\n  sizes: 'sizes',\n  span: 'span',\n  spellcheck: 'spellCheck',\n  src: 'src',\n  srcdoc: 'srcDoc',\n  srclang: 'srcLang',\n  srcset: 'srcSet',\n  start: 'start',\n  step: 'step',\n  style: 'style',\n  summary: 'summary',\n  tabindex: 'tabIndex',\n  target: 'target',\n  title: 'title',\n  type: 'type',\n  usemap: 'useMap',\n  value: 'value',\n  width: 'width',\n  wmode: 'wmode',\n  wrap: 'wrap',\n  // SVG\n  about: 'about',\n  accentheight: 'accentHeight',\n  'accent-height': 'accentHeight',\n  accumulate: 'accumulate',\n  additive: 'additive',\n  alignmentbaseline: 'alignmentBaseline',\n  'alignment-baseline': 'alignmentBaseline',\n  allowreorder: 'allowReorder',\n  alphabetic: 'alphabetic',\n  amplitude: 'amplitude',\n  arabicform: 'arabicForm',\n  'arabic-form': 'arabicForm',\n  ascent: 'ascent',\n  attributename: 'attributeName',\n  attributetype: 'attributeType',\n  autoreverse: 'autoReverse',\n  azimuth: 'azimuth',\n  basefrequency: 'baseFrequency',\n  baselineshift: 'baselineShift',\n  'baseline-shift': 'baselineShift',\n  baseprofile: 'baseProfile',\n  bbox: 'bbox',\n  begin: 'begin',\n  bias: 'bias',\n  by: 'by',\n  calcmode: 'calcMode',\n  capheight: 'capHeight',\n  'cap-height': 'capHeight',\n  clip: 'clip',\n  clippath: 'clipPath',\n  'clip-path': 'clipPath',\n  clippathunits: 'clipPathUnits',\n  cliprule: 'clipRule',\n  'clip-rule': 'clipRule',\n  color: 'color',\n  colorinterpolation: 'colorInterpolation',\n  'color-interpolation': 'colorInterpolation',\n  colorinterpolationfilters: 'colorInterpolationFilters',\n  'color-interpolation-filters': 'colorInterpolationFilters',\n  colorprofile: 'colorProfile',\n  'color-profile': 'colorProfile',\n  colorrendering: 'colorRendering',\n  'color-rendering': 'colorRendering',\n  contentscripttype: 'contentScriptType',\n  contentstyletype: 'contentStyleType',\n  cursor: 'cursor',\n  cx: 'cx',\n  cy: 'cy',\n  d: 'd',\n  datatype: 'datatype',\n  decelerate: 'decelerate',\n  descent: 'descent',\n  diffuseconstant: 'diffuseConstant',\n  direction: 'direction',\n  display: 'display',\n  divisor: 'divisor',\n  dominantbaseline: 'dominantBaseline',\n  'dominant-baseline': 'dominantBaseline',\n  dur: 'dur',\n  dx: 'dx',\n  dy: 'dy',\n  edgemode: 'edgeMode',\n  elevation: 'elevation',\n  enablebackground: 'enableBackground',\n  'enable-background': 'enableBackground',\n  end: 'end',\n  exponent: 'exponent',\n  externalresourcesrequired: 'externalResourcesRequired',\n  fill: 'fill',\n  fillopacity: 'fillOpacity',\n  'fill-opacity': 'fillOpacity',\n  fillrule: 'fillRule',\n  'fill-rule': 'fillRule',\n  filter: 'filter',\n  filterres: 'filterRes',\n  filterunits: 'filterUnits',\n  floodopacity: 'floodOpacity',\n  'flood-opacity': 'floodOpacity',\n  floodcolor: 'floodColor',\n  'flood-color': 'floodColor',\n  focusable: 'focusable',\n  fontfamily: 'fontFamily',\n  'font-family': 'fontFamily',\n  fontsize: 'fontSize',\n  'font-size': 'fontSize',\n  fontsizeadjust: 'fontSizeAdjust',\n  'font-size-adjust': 'fontSizeAdjust',\n  fontstretch: 'fontStretch',\n  'font-stretch': 'fontStretch',\n  fontstyle: 'fontStyle',\n  'font-style': 'fontStyle',\n  fontvariant: 'fontVariant',\n  'font-variant': 'fontVariant',\n  fontweight: 'fontWeight',\n  'font-weight': 'fontWeight',\n  format: 'format',\n  from: 'from',\n  fx: 'fx',\n  fy: 'fy',\n  g1: 'g1',\n  g2: 'g2',\n  glyphname: 'glyphName',\n  'glyph-name': 'glyphName',\n  glyphorientationhorizontal: 'glyphOrientationHorizontal',\n  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n  glyphorientationvertical: 'glyphOrientationVertical',\n  'glyph-orientation-vertical': 'glyphOrientationVertical',\n  glyphref: 'glyphRef',\n  gradienttransform: 'gradientTransform',\n  gradientunits: 'gradientUnits',\n  hanging: 'hanging',\n  horizadvx: 'horizAdvX',\n  'horiz-adv-x': 'horizAdvX',\n  horizoriginx: 'horizOriginX',\n  'horiz-origin-x': 'horizOriginX',\n  ideographic: 'ideographic',\n  imagerendering: 'imageRendering',\n  'image-rendering': 'imageRendering',\n  in2: 'in2',\n  in: 'in',\n  inlist: 'inlist',\n  intercept: 'intercept',\n  k1: 'k1',\n  k2: 'k2',\n  k3: 'k3',\n  k4: 'k4',\n  k: 'k',\n  kernelmatrix: 'kernelMatrix',\n  kernelunitlength: 'kernelUnitLength',\n  kerning: 'kerning',\n  keypoints: 'keyPoints',\n  keysplines: 'keySplines',\n  keytimes: 'keyTimes',\n  lengthadjust: 'lengthAdjust',\n  letterspacing: 'letterSpacing',\n  'letter-spacing': 'letterSpacing',\n  lightingcolor: 'lightingColor',\n  'lighting-color': 'lightingColor',\n  limitingconeangle: 'limitingConeAngle',\n  local: 'local',\n  markerend: 'markerEnd',\n  'marker-end': 'markerEnd',\n  markerheight: 'markerHeight',\n  markermid: 'markerMid',\n  'marker-mid': 'markerMid',\n  markerstart: 'markerStart',\n  'marker-start': 'markerStart',\n  markerunits: 'markerUnits',\n  markerwidth: 'markerWidth',\n  mask: 'mask',\n  maskcontentunits: 'maskContentUnits',\n  maskunits: 'maskUnits',\n  mathematical: 'mathematical',\n  mode: 'mode',\n  numoctaves: 'numOctaves',\n  offset: 'offset',\n  opacity: 'opacity',\n  operator: 'operator',\n  order: 'order',\n  orient: 'orient',\n  orientation: 'orientation',\n  origin: 'origin',\n  overflow: 'overflow',\n  overlineposition: 'overlinePosition',\n  'overline-position': 'overlinePosition',\n  overlinethickness: 'overlineThickness',\n  'overline-thickness': 'overlineThickness',\n  paintorder: 'paintOrder',\n  'paint-order': 'paintOrder',\n  panose1: 'panose1',\n  'panose-1': 'panose1',\n  pathlength: 'pathLength',\n  patterncontentunits: 'patternContentUnits',\n  patterntransform: 'patternTransform',\n  patternunits: 'patternUnits',\n  pointerevents: 'pointerEvents',\n  'pointer-events': 'pointerEvents',\n  points: 'points',\n  pointsatx: 'pointsAtX',\n  pointsaty: 'pointsAtY',\n  pointsatz: 'pointsAtZ',\n  prefix: 'prefix',\n  preservealpha: 'preserveAlpha',\n  preserveaspectratio: 'preserveAspectRatio',\n  primitiveunits: 'primitiveUnits',\n  property: 'property',\n  r: 'r',\n  radius: 'radius',\n  refx: 'refX',\n  refy: 'refY',\n  renderingintent: 'renderingIntent',\n  'rendering-intent': 'renderingIntent',\n  repeatcount: 'repeatCount',\n  repeatdur: 'repeatDur',\n  requiredextensions: 'requiredExtensions',\n  requiredfeatures: 'requiredFeatures',\n  resource: 'resource',\n  restart: 'restart',\n  result: 'result',\n  results: 'results',\n  rotate: 'rotate',\n  rx: 'rx',\n  ry: 'ry',\n  scale: 'scale',\n  security: 'security',\n  seed: 'seed',\n  shaperendering: 'shapeRendering',\n  'shape-rendering': 'shapeRendering',\n  slope: 'slope',\n  spacing: 'spacing',\n  specularconstant: 'specularConstant',\n  specularexponent: 'specularExponent',\n  speed: 'speed',\n  spreadmethod: 'spreadMethod',\n  startoffset: 'startOffset',\n  stddeviation: 'stdDeviation',\n  stemh: 'stemh',\n  stemv: 'stemv',\n  stitchtiles: 'stitchTiles',\n  stopcolor: 'stopColor',\n  'stop-color': 'stopColor',\n  stopopacity: 'stopOpacity',\n  'stop-opacity': 'stopOpacity',\n  strikethroughposition: 'strikethroughPosition',\n  'strikethrough-position': 'strikethroughPosition',\n  strikethroughthickness: 'strikethroughThickness',\n  'strikethrough-thickness': 'strikethroughThickness',\n  string: 'string',\n  stroke: 'stroke',\n  strokedasharray: 'strokeDasharray',\n  'stroke-dasharray': 'strokeDasharray',\n  strokedashoffset: 'strokeDashoffset',\n  'stroke-dashoffset': 'strokeDashoffset',\n  strokelinecap: 'strokeLinecap',\n  'stroke-linecap': 'strokeLinecap',\n  strokelinejoin: 'strokeLinejoin',\n  'stroke-linejoin': 'strokeLinejoin',\n  strokemiterlimit: 'strokeMiterlimit',\n  'stroke-miterlimit': 'strokeMiterlimit',\n  strokewidth: 'strokeWidth',\n  'stroke-width': 'strokeWidth',\n  strokeopacity: 'strokeOpacity',\n  'stroke-opacity': 'strokeOpacity',\n  suppresscontenteditablewarning: 'suppressContentEditableWarning',\n  suppresshydrationwarning: 'suppressHydrationWarning',\n  surfacescale: 'surfaceScale',\n  systemlanguage: 'systemLanguage',\n  tablevalues: 'tableValues',\n  targetx: 'targetX',\n  targety: 'targetY',\n  textanchor: 'textAnchor',\n  'text-anchor': 'textAnchor',\n  textdecoration: 'textDecoration',\n  'text-decoration': 'textDecoration',\n  textlength: 'textLength',\n  textrendering: 'textRendering',\n  'text-rendering': 'textRendering',\n  to: 'to',\n  transform: 'transform',\n  typeof: 'typeof',\n  u1: 'u1',\n  u2: 'u2',\n  underlineposition: 'underlinePosition',\n  'underline-position': 'underlinePosition',\n  underlinethickness: 'underlineThickness',\n  'underline-thickness': 'underlineThickness',\n  unicode: 'unicode',\n  unicodebidi: 'unicodeBidi',\n  'unicode-bidi': 'unicodeBidi',\n  unicoderange: 'unicodeRange',\n  'unicode-range': 'unicodeRange',\n  unitsperem: 'unitsPerEm',\n  'units-per-em': 'unitsPerEm',\n  unselectable: 'unselectable',\n  valphabetic: 'vAlphabetic',\n  'v-alphabetic': 'vAlphabetic',\n  values: 'values',\n  vectoreffect: 'vectorEffect',\n  'vector-effect': 'vectorEffect',\n  version: 'version',\n  vertadvy: 'vertAdvY',\n  'vert-adv-y': 'vertAdvY',\n  vertoriginx: 'vertOriginX',\n  'vert-origin-x': 'vertOriginX',\n  vertoriginy: 'vertOriginY',\n  'vert-origin-y': 'vertOriginY',\n  vhanging: 'vHanging',\n  'v-hanging': 'vHanging',\n  videographic: 'vIdeographic',\n  'v-ideographic': 'vIdeographic',\n  viewbox: 'viewBox',\n  viewtarget: 'viewTarget',\n  visibility: 'visibility',\n  vmathematical: 'vMathematical',\n  'v-mathematical': 'vMathematical',\n  vocab: 'vocab',\n  widths: 'widths',\n  wordspacing: 'wordSpacing',\n  'word-spacing': 'wordSpacing',\n  writingmode: 'writingMode',\n  'writing-mode': 'writingMode',\n  x1: 'x1',\n  x2: 'x2',\n  x: 'x',\n  xchannelselector: 'xChannelSelector',\n  xheight: 'xHeight',\n  'x-height': 'xHeight',\n  xlinkactuate: 'xlinkActuate',\n  'xlink:actuate': 'xlinkActuate',\n  xlinkarcrole: 'xlinkArcrole',\n  'xlink:arcrole': 'xlinkArcrole',\n  xlinkhref: 'xlinkHref',\n  'xlink:href': 'xlinkHref',\n  xlinkrole: 'xlinkRole',\n  'xlink:role': 'xlinkRole',\n  xlinkshow: 'xlinkShow',\n  'xlink:show': 'xlinkShow',\n  xlinktitle: 'xlinkTitle',\n  'xlink:title': 'xlinkTitle',\n  xlinktype: 'xlinkType',\n  'xlink:type': 'xlinkType',\n  xmlbase: 'xmlBase',\n  'xml:base': 'xmlBase',\n  xmllang: 'xmlLang',\n  'xml:lang': 'xmlLang',\n  xmlns: 'xmlns',\n  'xml:space': 'xmlSpace',\n  xmlnsxlink: 'xmlnsXlink',\n  'xmlns:xlink': 'xmlnsXlink',\n  xmlspace: 'xmlSpace',\n  y1: 'y1',\n  y2: 'y2',\n  y: 'y',\n  ychannelselector: 'yChannelSelector',\n  z: 'z',\n  zoomandpan: 'zoomAndPan'\n};\n\nvar validateProperty$1 = function () {};\n\n{\n  var warnedProperties$1 = {};\n  var EVENT_NAME_REGEX = /^on./;\n  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;\n  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n  validateProperty$1 = function (tagName, name, value, eventRegistry) {\n    if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {\n      return true;\n    }\n\n    var lowerCasedName = name.toLowerCase();\n\n    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {\n      error('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.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // We can't rely on the event system being injected on the server.\n\n\n    if (eventRegistry != null) {\n      var registrationNameDependencies = eventRegistry.registrationNameDependencies,\n          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;\n\n      if (registrationNameDependencies.hasOwnProperty(name)) {\n        return true;\n      }\n\n      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;\n\n      if (registrationName != null) {\n        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n\n      if (EVENT_NAME_REGEX.test(name)) {\n        error('Unknown event handler property `%s`. It will be ignored.', name);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (EVENT_NAME_REGEX.test(name)) {\n      // If no event plugins have been injected, we are in a server environment.\n      // So we can't tell if the event name is correct for sure, but we can filter\n      // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n      if (INVALID_EVENT_NAME_REGEX.test(name)) {\n        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Let the ARIA attribute hook validate ARIA attributes\n\n\n    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {\n      return true;\n    }\n\n    if (lowerCasedName === 'innerhtml') {\n      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'aria') {\n      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {\n      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'number' && isNaN(value)) {\n      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    var propertyInfo = getPropertyInfo(name);\n    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.\n\n    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n      var standardName = possibleStandardNames[lowerCasedName];\n\n      if (standardName !== name) {\n        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (!isReserved && name !== lowerCasedName) {\n      // Unknown attributes should have lowercase casing since that's how they\n      // will be cased anyway with server rendering.\n      error('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.', name, lowerCasedName);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      if (value) {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n      } else {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Now that we've validated casing, do not validate\n    // data types for reserved props\n\n\n    if (isReserved) {\n      return true;\n    } // Warn when a known attribute is a bad type\n\n\n    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      warnedProperties$1[name] = true;\n      return false;\n    } // Warn when passing the strings 'false' or 'true' into a boolean prop\n\n\n    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {\n      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === '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\".', name, value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    return true;\n  };\n}\n\nvar warnUnknownProperties = function (type, props, eventRegistry) {\n  {\n    var unknownProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty$1(type, key, props[key], eventRegistry);\n\n      if (!isValid) {\n        unknownProps.push(key);\n      }\n    }\n\n    var unknownPropString = unknownProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (unknownProps.length === 1) {\n      error('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 ', unknownPropString, type);\n    } else if (unknownProps.length > 1) {\n      error('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 ', unknownPropString, type);\n    }\n  }\n};\n\nfunction validateProperties$2(type, props, eventRegistry) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnUnknownProperties(type, props, eventRegistry);\n}\n\nvar warnValidStyle = function () {};\n\n{\n  // 'msTransform' is correct, but the other prefixes should be capitalized\n  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n  var msPattern = /^-ms-/;\n  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon\n\n  var badStyleValueWithSemicolonPattern = /;\\s*$/;\n  var warnedStyleNames = {};\n  var warnedStyleValues = {};\n  var warnedForNaNValue = false;\n  var warnedForInfinityValue = false;\n\n  var camelize = function (string) {\n    return string.replace(hyphenPattern, function (_, character) {\n      return character.toUpperCase();\n    });\n  };\n\n  var warnHyphenatedStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests\n    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n    // is converted to lowercase `ms`.\n    camelize(name.replace(msPattern, 'ms-')));\n  };\n\n  var warnBadVendoredStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n  };\n\n  var warnStyleValueWithSemicolon = function (name, value) {\n    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n      return;\n    }\n\n    warnedStyleValues[value] = true;\n\n    error(\"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n  };\n\n  var warnStyleValueIsNaN = function (name, value) {\n    if (warnedForNaNValue) {\n      return;\n    }\n\n    warnedForNaNValue = true;\n\n    error('`NaN` is an invalid value for the `%s` css style property.', name);\n  };\n\n  var warnStyleValueIsInfinity = function (name, value) {\n    if (warnedForInfinityValue) {\n      return;\n    }\n\n    warnedForInfinityValue = true;\n\n    error('`Infinity` is an invalid value for the `%s` css style property.', name);\n  };\n\n  warnValidStyle = function (name, value) {\n    if (name.indexOf('-') > -1) {\n      warnHyphenatedStyleName(name);\n    } else if (badVendoredStyleNamePattern.test(name)) {\n      warnBadVendoredStyleName(name);\n    } else if (badStyleValueWithSemicolonPattern.test(value)) {\n      warnStyleValueWithSemicolon(name, value);\n    }\n\n    if (typeof value === 'number') {\n      if (isNaN(value)) {\n        warnStyleValueIsNaN(name, value);\n      } else if (!isFinite(value)) {\n        warnStyleValueIsInfinity(name, value);\n      }\n    }\n  };\n}\n\nvar warnValidStyle$1 = warnValidStyle;\n\n// code copied and modified from escape-html\nvar matchHtmlRegExp = /[\"'&<>]/;\n/**\n * Escapes special characters and HTML entities in a given html string.\n *\n * @param  {string} string HTML string to escape for later insertion\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  {\n    checkHtmlStringCoercion(string);\n  }\n\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34:\n        // \"\n        escape = '&quot;';\n        break;\n\n      case 38:\n        // &\n        escape = '&amp;';\n        break;\n\n      case 39:\n        // '\n        escape = '&#x27;'; // modified from escape-html; used to be '&#39'\n\n        break;\n\n      case 60:\n        // <\n        escape = '&lt;';\n        break;\n\n      case 62:\n        // >\n        escape = '&gt;';\n        break;\n\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;\n} // end code copied and modified from escape-html\n\n/**\n * Escapes text to prevent scripting attacks.\n *\n * @param {*} text Text value to escape.\n * @return {string} An escaped string.\n */\n\n\nfunction escapeTextForBrowser(text) {\n  if (typeof text === 'boolean' || typeof text === 'number') {\n    // this shortcircuit helps perf for types that we know will never have\n    // special characters, especially given that this function is used often\n    // for numeric dom ids.\n    return '' + text;\n  }\n\n  return escapeHtml(text);\n}\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern$1 = /^ms-/;\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n *   > hyphenateStyleName('backgroundColor')\n *   < \"background-color\"\n *   > hyphenateStyleName('MozTransition')\n *   < \"-moz-transition\"\n *   > hyphenateStyleName('msTransition')\n *   < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\n\nfunction hyphenateStyleName(name) {\n  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern$1, '-ms-');\n}\n\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\nvar isJavaScriptProtocol = /^[\\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;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n  {\n    if (!didWarn && isJavaScriptProtocol.test(url)) {\n      didWarn = true;\n\n      error('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(url));\n    }\n  }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\nvar startInlineScript = stringToPrecomputedChunk('<script>');\nvar endInlineScript = stringToPrecomputedChunk('</script>');\nvar startScriptSrc = stringToPrecomputedChunk('<script src=\"');\nvar startModuleSrc = stringToPrecomputedChunk('<script type=\"module\" src=\"');\nvar endAsyncScript = stringToPrecomputedChunk('\" async=\"\"></script>');\n/**\n * This escaping function is designed to work with bootstrapScriptContent only.\n * because we know we are escaping the entire script. We can avoid for instance\n * escaping html comment string sequences that are valid javascript as well because\n * if there are no sebsequent <script sequences the html parser will never enter\n * script data double escaped state (see: https://www.w3.org/TR/html53/syntax.html#script-data-double-escaped-state)\n *\n * While untrusted script content should be made safe before using this api it will\n * ensure that the script cannot be early terminated or never terminated state\n */\n\nfunction escapeBootstrapScriptContent(scriptText) {\n  {\n    checkHtmlStringCoercion(scriptText);\n  }\n\n  return ('' + scriptText).replace(scriptRegex, scriptReplacer);\n}\n\nvar scriptRegex = /(<\\/|<)(s)(cript)/gi;\n\nvar scriptReplacer = function (match, prefix, s, suffix) {\n  return \"\" + prefix + (s === 's' ? \"\\\\u0073\" : \"\\\\u0053\") + suffix;\n}; // Allows us to keep track of what we've already written so we can refer back to it.\n\n\nfunction createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {\n  var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;\n  var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('<script nonce=\"' + escapeTextForBrowser(nonce) + '\">');\n  var bootstrapChunks = [];\n\n  if (bootstrapScriptContent !== undefined) {\n    bootstrapChunks.push(inlineScriptWithNonce, stringToChunk(escapeBootstrapScriptContent(bootstrapScriptContent)), endInlineScript);\n  }\n\n  if (bootstrapScripts !== undefined) {\n    for (var i = 0; i < bootstrapScripts.length; i++) {\n      bootstrapChunks.push(startScriptSrc, stringToChunk(escapeTextForBrowser(bootstrapScripts[i])), endAsyncScript);\n    }\n  }\n\n  if (bootstrapModules !== undefined) {\n    for (var _i = 0; _i < bootstrapModules.length; _i++) {\n      bootstrapChunks.push(startModuleSrc, stringToChunk(escapeTextForBrowser(bootstrapModules[_i])), endAsyncScript);\n    }\n  }\n\n  return {\n    bootstrapChunks: bootstrapChunks,\n    startInlineScript: inlineScriptWithNonce,\n    placeholderPrefix: stringToPrecomputedChunk(idPrefix + 'P:'),\n    segmentPrefix: stringToPrecomputedChunk(idPrefix + 'S:'),\n    boundaryPrefix: idPrefix + 'B:',\n    idPrefix: idPrefix,\n    nextSuspenseID: 0,\n    sentCompleteSegmentFunction: false,\n    sentCompleteBoundaryFunction: false,\n    sentClientRenderFunction: false\n  };\n} // Constants for the insertion mode we're currently writing in. We don't encode all HTML5 insertion\n// modes. We only include the variants as they matter for the sake of our purposes.\n// We don't actually provide the namespace therefore we use constants instead of the string.\n\nvar ROOT_HTML_MODE = 0; // Used for the root most element tag.\n\nvar HTML_MODE = 1;\nvar SVG_MODE = 2;\nvar MATHML_MODE = 3;\nvar HTML_TABLE_MODE = 4;\nvar HTML_TABLE_BODY_MODE = 5;\nvar HTML_TABLE_ROW_MODE = 6;\nvar HTML_COLGROUP_MODE = 7; // We have a greater than HTML_TABLE_MODE check elsewhere. If you add more cases here, make sure it\n// still makes sense\n\nfunction createFormatContext(insertionMode, selectedValue) {\n  return {\n    insertionMode: insertionMode,\n    selectedValue: selectedValue\n  };\n}\nfunction getChildFormatContext(parentContext, type, props) {\n  switch (type) {\n    case 'select':\n      return createFormatContext(HTML_MODE, props.value != null ? props.value : props.defaultValue);\n\n    case 'svg':\n      return createFormatContext(SVG_MODE, null);\n\n    case 'math':\n      return createFormatContext(MATHML_MODE, null);\n\n    case 'foreignObject':\n      return createFormatContext(HTML_MODE, null);\n    // Table parents are special in that their children can only be created at all if they're\n    // wrapped in a table parent. So we need to encode that we're entering this mode.\n\n    case 'table':\n      return createFormatContext(HTML_TABLE_MODE, null);\n\n    case 'thead':\n    case 'tbody':\n    case 'tfoot':\n      return createFormatContext(HTML_TABLE_BODY_MODE, null);\n\n    case 'colgroup':\n      return createFormatContext(HTML_COLGROUP_MODE, null);\n\n    case 'tr':\n      return createFormatContext(HTML_TABLE_ROW_MODE, null);\n  }\n\n  if (parentContext.insertionMode >= HTML_TABLE_MODE) {\n    // Whatever tag this was, it wasn't a table parent or other special parent, so we must have\n    // entered plain HTML again.\n    return createFormatContext(HTML_MODE, null);\n  }\n\n  if (parentContext.insertionMode === ROOT_HTML_MODE) {\n    // We've emitted the root and is now in plain HTML mode.\n    return createFormatContext(HTML_MODE, null);\n  }\n\n  return parentContext;\n}\nvar UNINITIALIZED_SUSPENSE_BOUNDARY_ID = null;\nfunction assignSuspenseBoundaryID(responseState) {\n  var generatedID = responseState.nextSuspenseID++;\n  return stringToPrecomputedChunk(responseState.boundaryPrefix + generatedID.toString(16));\n}\nfunction makeId(responseState, treeId, localId) {\n  var idPrefix = responseState.idPrefix;\n  var id = ':' + idPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end\n  // that represents the position of this useId hook among all the useId\n  // hooks for this fiber.\n\n  if (localId > 0) {\n    id += 'H' + localId.toString(32);\n  }\n\n  return id + ':';\n}\n\nfunction encodeHTMLTextNode(text) {\n  return escapeTextForBrowser(text);\n}\n\nvar textSeparator = stringToPrecomputedChunk('<!-- -->');\nfunction pushTextInstance(target, text, responseState, textEmbedded) {\n  if (text === '') {\n    // Empty text doesn't have a DOM node representation and the hydration is aware of this.\n    return textEmbedded;\n  }\n\n  if (textEmbedded) {\n    target.push(textSeparator);\n  }\n\n  target.push(stringToChunk(encodeHTMLTextNode(text)));\n  return true;\n} // Called when Fizz is done with a Segment. Currently the only purpose is to conditionally\n// emit a text separator when we don't know for sure it is safe to omit\n\nfunction pushSegmentFinale(target, responseState, lastPushedText, textEmbedded) {\n  if (lastPushedText && textEmbedded) {\n    target.push(textSeparator);\n  }\n}\nvar styleNameCache = new Map();\n\nfunction processStyleName(styleName) {\n  var chunk = styleNameCache.get(styleName);\n\n  if (chunk !== undefined) {\n    return chunk;\n  }\n\n  var result = stringToPrecomputedChunk(escapeTextForBrowser(hyphenateStyleName(styleName)));\n  styleNameCache.set(styleName, result);\n  return result;\n}\n\nvar styleAttributeStart = stringToPrecomputedChunk(' style=\"');\nvar styleAssign = stringToPrecomputedChunk(':');\nvar styleSeparator = stringToPrecomputedChunk(';');\n\nfunction pushStyle(target, responseState, style) {\n  if (typeof style !== 'object') {\n    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.');\n  }\n\n  var isFirst = true;\n\n  for (var styleName in style) {\n    if (!hasOwnProperty.call(style, styleName)) {\n      continue;\n    } // If you provide unsafe user data here they can inject arbitrary CSS\n    // which may be problematic (I couldn't repro this):\n    // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n    // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n    // This is not an XSS hole but instead a potential CSS injection issue\n    // which has lead to a greater discussion about how we're going to\n    // trust URLs moving forward. See #2115901\n\n\n    var styleValue = style[styleName];\n\n    if (styleValue == null || typeof styleValue === 'boolean' || styleValue === '') {\n      // TODO: We used to set empty string as a style with an empty value. Does that ever make sense?\n      continue;\n    }\n\n    var nameChunk = void 0;\n    var valueChunk = void 0;\n    var isCustomProperty = styleName.indexOf('--') === 0;\n\n    if (isCustomProperty) {\n      nameChunk = stringToChunk(escapeTextForBrowser(styleName));\n\n      {\n        checkCSSPropertyStringCoercion(styleValue, styleName);\n      }\n\n      valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));\n    } else {\n      {\n        warnValidStyle$1(styleName, styleValue);\n      }\n\n      nameChunk = processStyleName(styleName);\n\n      if (typeof styleValue === 'number') {\n        if (styleValue !== 0 && !hasOwnProperty.call(isUnitlessNumber, styleName)) {\n          valueChunk = stringToChunk(styleValue + 'px'); // Presumes implicit 'px' suffix for unitless numbers\n        } else {\n          valueChunk = stringToChunk('' + styleValue);\n        }\n      } else {\n        {\n          checkCSSPropertyStringCoercion(styleValue, styleName);\n        }\n\n        valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));\n      }\n    }\n\n    if (isFirst) {\n      isFirst = false; // If it's first, we don't need any separators prefixed.\n\n      target.push(styleAttributeStart, nameChunk, styleAssign, valueChunk);\n    } else {\n      target.push(styleSeparator, nameChunk, styleAssign, valueChunk);\n    }\n  }\n\n  if (!isFirst) {\n    target.push(attributeEnd);\n  }\n}\n\nvar attributeSeparator = stringToPrecomputedChunk(' ');\nvar attributeAssign = stringToPrecomputedChunk('=\"');\nvar attributeEnd = stringToPrecomputedChunk('\"');\nvar attributeEmptyString = stringToPrecomputedChunk('=\"\"');\n\nfunction pushAttribute(target, responseState, name, value) {\n  switch (name) {\n    case 'style':\n      {\n        pushStyle(target, responseState, value);\n        return;\n      }\n\n    case 'defaultValue':\n    case 'defaultChecked': // These shouldn't be set as attributes on generic HTML elements.\n\n    case 'innerHTML': // Must use dangerouslySetInnerHTML instead.\n\n    case 'suppressContentEditableWarning':\n    case 'suppressHydrationWarning':\n      // Ignored. These are built-in to React on the client.\n      return;\n  }\n\n  if ( // shouldIgnoreAttribute\n  // We have already filtered out null/undefined and reserved words.\n  name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n    return;\n  }\n\n  var propertyInfo = getPropertyInfo(name);\n\n  if (propertyInfo !== null) {\n    // shouldRemoveAttribute\n    switch (typeof value) {\n      case 'function': // $FlowIssue symbol is perfectly valid here\n\n      case 'symbol':\n        // eslint-disable-line\n        return;\n\n      case 'boolean':\n        {\n          if (!propertyInfo.acceptsBooleans) {\n            return;\n          }\n        }\n    }\n\n    var attributeName = propertyInfo.attributeName;\n    var attributeNameChunk = stringToChunk(attributeName); // TODO: If it's known we can cache the chunk.\n\n    switch (propertyInfo.type) {\n      case BOOLEAN:\n        if (value) {\n          target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);\n        }\n\n        return;\n\n      case OVERLOADED_BOOLEAN:\n        if (value === true) {\n          target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);\n        } else if (value === false) ; else {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        return;\n\n      case NUMERIC:\n        if (!isNaN(value)) {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        break;\n\n      case POSITIVE_NUMERIC:\n        if (!isNaN(value) && value >= 1) {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        break;\n\n      default:\n        if (propertyInfo.sanitizeURL) {\n          {\n            checkAttributeStringCoercion(value, attributeName);\n          }\n\n          value = '' + value;\n          sanitizeURL(value);\n        }\n\n        target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n    }\n  } else if (isAttributeNameSafe(name)) {\n    // shouldRemoveAttribute\n    switch (typeof value) {\n      case 'function': // $FlowIssue symbol is perfectly valid here\n\n      case 'symbol':\n        // eslint-disable-line\n        return;\n\n      case 'boolean':\n        {\n          var prefix = name.toLowerCase().slice(0, 5);\n\n          if (prefix !== 'data-' && prefix !== 'aria-') {\n            return;\n          }\n        }\n    }\n\n    target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n  }\n}\n\nvar endOfStartTag = stringToPrecomputedChunk('>');\nvar endOfStartTagSelfClosing = stringToPrecomputedChunk('/>');\n\nfunction pushInnerHTML(target, innerHTML, children) {\n  if (innerHTML != null) {\n    if (children != null) {\n      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n    }\n\n    if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {\n      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n    }\n\n    var html = innerHTML.__html;\n\n    if (html !== null && html !== undefined) {\n      {\n        checkHtmlStringCoercion(html);\n      }\n\n      target.push(stringToChunk('' + html));\n    }\n  }\n} // TODO: Move these to ResponseState so that we warn for every request.\n// It would help debugging in stateful servers (e.g. service worker).\n\n\nvar didWarnDefaultInputValue = false;\nvar didWarnDefaultChecked = false;\nvar didWarnDefaultSelectValue = false;\nvar didWarnDefaultTextareaValue = false;\nvar didWarnInvalidOptionChildren = false;\nvar didWarnInvalidOptionInnerHTML = false;\nvar didWarnSelectedSetOnOption = false;\n\nfunction checkSelectProp(props, propName) {\n  {\n    var value = props[propName];\n\n    if (value != null) {\n      var array = isArray(value);\n\n      if (props.multiple && !array) {\n        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.', propName);\n      } else if (!props.multiple && array) {\n        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.', propName);\n      }\n    }\n  }\n}\n\nfunction pushStartSelect(target, props, responseState) {\n  {\n    checkControlledValueProps('select', props);\n    checkSelectProp(props, 'value');\n    checkSelectProp(props, 'defaultValue');\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultSelectValue) {\n      error('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');\n\n      didWarnDefaultSelectValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('select'));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          // TODO: This doesn't really make sense for select since it can't use the controlled\n          // value in the innerHTML.\n          innerHTML = propValue;\n          break;\n\n        case 'defaultValue':\n        case 'value':\n          // These are set on the Context instead and applied to the nested options.\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nfunction flattenOptionChildren(children) {\n  var content = ''; // Flatten children and warn if they aren't strings or numbers;\n  // invalid types are ignored.\n\n  React.Children.forEach(children, function (child) {\n    if (child == null) {\n      return;\n    }\n\n    content += child;\n\n    {\n      if (!didWarnInvalidOptionChildren && typeof child !== 'string' && typeof child !== 'number') {\n        didWarnInvalidOptionChildren = true;\n\n        error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');\n      }\n    }\n  });\n  return content;\n}\n\nvar selectedMarkerAttribute = stringToPrecomputedChunk(' selected=\"\"');\n\nfunction pushStartOption(target, props, responseState, formatContext) {\n  var selectedValue = formatContext.selectedValue;\n  target.push(startChunkForTag('option'));\n  var children = null;\n  var value = null;\n  var selected = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'selected':\n          // ignore\n          selected = propValue;\n\n          {\n            // TODO: Remove support for `selected` in <option>.\n            if (!didWarnSelectedSetOnOption) {\n              error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n\n              didWarnSelectedSetOnOption = true;\n            }\n          }\n\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n        // eslint-disable-next-line-no-fallthrough\n\n        case 'value':\n          value = propValue;\n        // We intentionally fallthrough to also set the attribute on the node.\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (selectedValue != null) {\n    var stringValue;\n\n    if (value !== null) {\n      {\n        checkAttributeStringCoercion(value, 'value');\n      }\n\n      stringValue = '' + value;\n    } else {\n      {\n        if (innerHTML !== null) {\n          if (!didWarnInvalidOptionInnerHTML) {\n            didWarnInvalidOptionInnerHTML = true;\n\n            error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');\n          }\n        }\n      }\n\n      stringValue = flattenOptionChildren(children);\n    }\n\n    if (isArray(selectedValue)) {\n      // multiple\n      for (var i = 0; i < selectedValue.length; i++) {\n        {\n          checkAttributeStringCoercion(selectedValue[i], 'value');\n        }\n\n        var v = '' + selectedValue[i];\n\n        if (v === stringValue) {\n          target.push(selectedMarkerAttribute);\n          break;\n        }\n      }\n    } else {\n      {\n        checkAttributeStringCoercion(selectedValue, 'select.value');\n      }\n\n      if ('' + selectedValue === stringValue) {\n        target.push(selectedMarkerAttribute);\n      }\n    }\n  } else if (selected) {\n    target.push(selectedMarkerAttribute);\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nfunction pushInput(target, props, responseState) {\n  {\n    checkControlledValueProps('input', props);\n\n    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnDefaultChecked) {\n      error('%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', 'A component', props.type);\n\n      didWarnDefaultChecked = true;\n    }\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultInputValue) {\n      error('%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', 'A component', props.type);\n\n      didWarnDefaultInputValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('input'));\n  var value = null;\n  var defaultValue = null;\n  var checked = null;\n  var defaultChecked = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error('input' + \" is a self-closing tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        case 'defaultChecked':\n          defaultChecked = propValue;\n          break;\n\n        case 'defaultValue':\n          defaultValue = propValue;\n          break;\n\n        case 'checked':\n          checked = propValue;\n          break;\n\n        case 'value':\n          value = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (checked !== null) {\n    pushAttribute(target, responseState, 'checked', checked);\n  } else if (defaultChecked !== null) {\n    pushAttribute(target, responseState, 'checked', defaultChecked);\n  }\n\n  if (value !== null) {\n    pushAttribute(target, responseState, 'value', value);\n  } else if (defaultValue !== null) {\n    pushAttribute(target, responseState, 'value', defaultValue);\n  }\n\n  target.push(endOfStartTagSelfClosing);\n  return null;\n}\n\nfunction pushStartTextArea(target, props, responseState) {\n  {\n    checkControlledValueProps('textarea', props);\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultTextareaValue) {\n      error('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');\n\n      didWarnDefaultTextareaValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('textarea'));\n  var value = null;\n  var defaultValue = null;\n  var children = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'value':\n          value = propValue;\n          break;\n\n        case 'defaultValue':\n          defaultValue = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (value === null && defaultValue !== null) {\n    value = defaultValue;\n  }\n\n  target.push(endOfStartTag); // TODO (yungsters): Remove support for children content in <textarea>.\n\n  if (children != null) {\n    {\n      error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n    }\n\n    if (value != null) {\n      throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');\n    }\n\n    if (isArray(children)) {\n      if (children.length > 1) {\n        throw new Error('<textarea> can only have at most one child.');\n      } // TODO: remove the coercion and the DEV check below because it will\n      // always be overwritten by the coercion several lines below it. #22309\n\n\n      {\n        checkHtmlStringCoercion(children[0]);\n      }\n\n      value = '' + children[0];\n    }\n\n    {\n      checkHtmlStringCoercion(children);\n    }\n\n    value = '' + children;\n  }\n\n  if (typeof value === 'string' && value[0] === '\\n') {\n    // text/html ignores the first character in these tags if it's a newline\n    // Prefer to break application/xml over text/html (for now) by adding\n    // a newline specifically to get eaten by the parser. (Alternately for\n    // textareas, replacing \"^\\n\" with \"\\r\\n\" doesn't get eaten, and the first\n    // \\r is normalized out by HTMLTextAreaElement#value.)\n    // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>\n    // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>\n    // See: <http://www.w3.org/TR/html5/syntax.html#newlines>\n    // See: Parsing of \"textarea\" \"listing\" and \"pre\" elements\n    //  from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>\n    target.push(leadingNewline);\n  } // ToString and push directly instead of recurse over children.\n  // We don't really support complex children in the value anyway.\n  // This also currently avoids a trailing comment node which breaks textarea.\n\n\n  if (value !== null) {\n    {\n      checkAttributeStringCoercion(value, 'value');\n    }\n\n    target.push(stringToChunk(encodeHTMLTextNode('' + value)));\n  }\n\n  return null;\n}\n\nfunction pushSelfClosing(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error(tag + \" is a self-closing tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTagSelfClosing);\n  return null;\n}\n\nfunction pushStartMenuItem(target, props, responseState) {\n  target.push(startChunkForTag('menuitem'));\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error('menuitems cannot have `children` nor `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  return null;\n}\n\nfunction pushStartTitle(target, props, responseState) {\n  target.push(startChunkForTag('title'));\n  var children = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          throw new Error('`dangerouslySetInnerHTML` does not make sense on <title>.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n\n  {\n    var child = Array.isArray(children) && children.length < 2 ? children[0] || null : children;\n\n    if (Array.isArray(children) && children.length > 1) {\n      error('A title element received an array with more than 1 element as children. ' + 'In browsers title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    } else if (child != null && child.$$typeof != null) {\n      error('A title element received a React element for children. ' + 'In the browser title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    } else if (child != null && typeof child !== 'string' && typeof child !== 'number') {\n      error('A title element received a value that was not a string or number for children. ' + 'In the browser title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    }\n  }\n\n  return children;\n}\n\nfunction pushStartGenericElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n\n  if (typeof children === 'string') {\n    // Special case children as a string to avoid the unnecessary comment.\n    // TODO: Remove this special case after the general optimization is in place.\n    target.push(stringToChunk(encodeHTMLTextNode(children)));\n    return null;\n  }\n\n  return children;\n}\n\nfunction pushStartCustomElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        case 'style':\n          pushStyle(target, responseState, propValue);\n          break;\n\n        case 'suppressContentEditableWarning':\n        case 'suppressHydrationWarning':\n          // Ignored. These are built-in to React on the client.\n          break;\n\n        default:\n          if (isAttributeNameSafe(propKey) && typeof propValue !== 'function' && typeof propValue !== 'symbol') {\n            target.push(attributeSeparator, stringToChunk(propKey), attributeAssign, stringToChunk(escapeTextForBrowser(propValue)), attributeEnd);\n          }\n\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nvar leadingNewline = stringToPrecomputedChunk('\\n');\n\nfunction pushStartPreformattedElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag); // text/html ignores the first character in these tags if it's a newline\n  // Prefer to break application/xml over text/html (for now) by adding\n  // a newline specifically to get eaten by the parser. (Alternately for\n  // textareas, replacing \"^\\n\" with \"\\r\\n\" doesn't get eaten, and the first\n  // \\r is normalized out by HTMLTextAreaElement#value.)\n  // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>\n  // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>\n  // See: <http://www.w3.org/TR/html5/syntax.html#newlines>\n  // See: Parsing of \"textarea\" \"listing\" and \"pre\" elements\n  //  from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>\n  // TODO: This doesn't deal with the case where the child is an array\n  // or component that returns a string.\n\n  if (innerHTML != null) {\n    if (children != null) {\n      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n    }\n\n    if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {\n      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n    }\n\n    var html = innerHTML.__html;\n\n    if (html !== null && html !== undefined) {\n      if (typeof html === 'string' && html.length > 0 && html[0] === '\\n') {\n        target.push(leadingNewline, stringToChunk(html));\n      } else {\n        {\n          checkHtmlStringCoercion(html);\n        }\n\n        target.push(stringToChunk('' + html));\n      }\n    }\n  }\n\n  if (typeof children === 'string' && children[0] === '\\n') {\n    target.push(leadingNewline);\n  }\n\n  return children;\n} // We accept any tag to be rendered but since this gets injected into arbitrary\n// HTML, we want to make sure that it's a safe tag.\n// http://www.w3.org/TR/REC-xml/#NT-Name\n\n\nvar VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/; // Simplified subset\n\nvar validatedTagCache = new Map();\n\nfunction startChunkForTag(tag) {\n  var tagStartChunk = validatedTagCache.get(tag);\n\n  if (tagStartChunk === undefined) {\n    if (!VALID_TAG_REGEX.test(tag)) {\n      throw new Error(\"Invalid tag: \" + tag);\n    }\n\n    tagStartChunk = stringToPrecomputedChunk('<' + tag);\n    validatedTagCache.set(tag, tagStartChunk);\n  }\n\n  return tagStartChunk;\n}\n\nvar DOCTYPE = stringToPrecomputedChunk('<!DOCTYPE html>');\nfunction pushStartInstance(target, type, props, responseState, formatContext) {\n  {\n    validateProperties(type, props);\n    validateProperties$1(type, props);\n    validateProperties$2(type, props, null);\n\n    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {\n      error('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    }\n\n    if (formatContext.insertionMode !== SVG_MODE && formatContext.insertionMode !== MATHML_MODE) {\n      if (type.indexOf('-') === -1 && typeof props.is !== 'string' && type.toLowerCase() !== type) {\n        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);\n      }\n    }\n  }\n\n  switch (type) {\n    // Special tags\n    case 'select':\n      return pushStartSelect(target, props, responseState);\n\n    case 'option':\n      return pushStartOption(target, props, responseState, formatContext);\n\n    case 'textarea':\n      return pushStartTextArea(target, props, responseState);\n\n    case 'input':\n      return pushInput(target, props, responseState);\n\n    case 'menuitem':\n      return pushStartMenuItem(target, props, responseState);\n\n    case 'title':\n      return pushStartTitle(target, props, responseState);\n    // Newline eating tags\n\n    case 'listing':\n    case 'pre':\n      {\n        return pushStartPreformattedElement(target, props, type, responseState);\n      }\n    // Omitted close tags\n\n    case 'area':\n    case 'base':\n    case 'br':\n    case 'col':\n    case 'embed':\n    case 'hr':\n    case 'img':\n    case 'keygen':\n    case 'link':\n    case 'meta':\n    case 'param':\n    case 'source':\n    case 'track':\n    case 'wbr':\n      {\n        return pushSelfClosing(target, props, type, responseState);\n      }\n    // These are reserved SVG and MathML elements, that are never custom elements.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      {\n        return pushStartGenericElement(target, props, type, responseState);\n      }\n\n    case 'html':\n      {\n        if (formatContext.insertionMode === ROOT_HTML_MODE) {\n          // If we're rendering the html tag and we're at the root (i.e. not in foreignObject)\n          // then we also emit the DOCTYPE as part of the root content as a convenience for\n          // rendering the whole document.\n          target.push(DOCTYPE);\n        }\n\n        return pushStartGenericElement(target, props, type, responseState);\n      }\n\n    default:\n      {\n        if (type.indexOf('-') === -1 && typeof props.is !== 'string') {\n          // Generic element\n          return pushStartGenericElement(target, props, type, responseState);\n        } else {\n          // Custom element\n          return pushStartCustomElement(target, props, type, responseState);\n        }\n      }\n  }\n}\nvar endTag1 = stringToPrecomputedChunk('</');\nvar endTag2 = stringToPrecomputedChunk('>');\nfunction pushEndInstance(target, type, props) {\n  switch (type) {\n    // Omitted close tags\n    // TODO: Instead of repeating this switch we could try to pass a flag from above.\n    // That would require returning a tuple. Which might be ok if it gets inlined.\n    case 'area':\n    case 'base':\n    case 'br':\n    case 'col':\n    case 'embed':\n    case 'hr':\n    case 'img':\n    case 'input':\n    case 'keygen':\n    case 'link':\n    case 'meta':\n    case 'param':\n    case 'source':\n    case 'track':\n    case 'wbr':\n      {\n        // No close tag needed.\n        break;\n      }\n\n    default:\n      {\n        target.push(endTag1, stringToChunk(type), endTag2);\n      }\n  }\n}\nfunction writeCompletedRoot(destination, responseState) {\n  var bootstrapChunks = responseState.bootstrapChunks;\n  var i = 0;\n\n  for (; i < bootstrapChunks.length - 1; i++) {\n    writeChunk(destination, bootstrapChunks[i]);\n  }\n\n  if (i < bootstrapChunks.length) {\n    return writeChunkAndReturn(destination, bootstrapChunks[i]);\n  }\n\n  return true;\n} // Structural Nodes\n// A placeholder is a node inside a hidden partial tree that can be filled in later, but before\n// display. It's never visible to users. We use the template tag because it can be used in every\n// type of parent. <script> tags also work in every other tag except <colgroup>.\n\nvar placeholder1 = stringToPrecomputedChunk('<template id=\"');\nvar placeholder2 = stringToPrecomputedChunk('\"></template>');\nfunction writePlaceholder(destination, responseState, id) {\n  writeChunk(destination, placeholder1);\n  writeChunk(destination, responseState.placeholderPrefix);\n  var formattedID = stringToChunk(id.toString(16));\n  writeChunk(destination, formattedID);\n  return writeChunkAndReturn(destination, placeholder2);\n} // Suspense boundaries are encoded as comments.\n\nvar startCompletedSuspenseBoundary = stringToPrecomputedChunk('<!--$-->');\nvar startPendingSuspenseBoundary1 = stringToPrecomputedChunk('<!--$?--><template id=\"');\nvar startPendingSuspenseBoundary2 = stringToPrecomputedChunk('\"></template>');\nvar startClientRenderedSuspenseBoundary = stringToPrecomputedChunk('<!--$!-->');\nvar endSuspenseBoundary = stringToPrecomputedChunk('<!--/$-->');\nvar clientRenderedSuspenseBoundaryError1 = stringToPrecomputedChunk('<template');\nvar clientRenderedSuspenseBoundaryErrorAttrInterstitial = stringToPrecomputedChunk('\"');\nvar clientRenderedSuspenseBoundaryError1A = stringToPrecomputedChunk(' data-dgst=\"');\nvar clientRenderedSuspenseBoundaryError1B = stringToPrecomputedChunk(' data-msg=\"');\nvar clientRenderedSuspenseBoundaryError1C = stringToPrecomputedChunk(' data-stck=\"');\nvar clientRenderedSuspenseBoundaryError2 = stringToPrecomputedChunk('></template>');\nfunction writeStartCompletedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, startCompletedSuspenseBoundary);\n}\nfunction writeStartPendingSuspenseBoundary(destination, responseState, id) {\n  writeChunk(destination, startPendingSuspenseBoundary1);\n\n  if (id === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  writeChunk(destination, id);\n  return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);\n}\nfunction writeStartClientRenderedSuspenseBoundary(destination, responseState, errorDigest, errorMesssage, errorComponentStack) {\n  var result;\n  result = writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);\n  writeChunk(destination, clientRenderedSuspenseBoundaryError1);\n\n  if (errorDigest) {\n    writeChunk(destination, clientRenderedSuspenseBoundaryError1A);\n    writeChunk(destination, stringToChunk(escapeTextForBrowser(errorDigest)));\n    writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n  }\n\n  {\n    if (errorMesssage) {\n      writeChunk(destination, clientRenderedSuspenseBoundaryError1B);\n      writeChunk(destination, stringToChunk(escapeTextForBrowser(errorMesssage)));\n      writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n    }\n\n    if (errorComponentStack) {\n      writeChunk(destination, clientRenderedSuspenseBoundaryError1C);\n      writeChunk(destination, stringToChunk(escapeTextForBrowser(errorComponentStack)));\n      writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n    }\n  }\n\n  result = writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);\n  return result;\n}\nfunction writeEndCompletedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nfunction writeEndPendingSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nfunction writeEndClientRenderedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nvar startSegmentHTML = stringToPrecomputedChunk('<div hidden id=\"');\nvar startSegmentHTML2 = stringToPrecomputedChunk('\">');\nvar endSegmentHTML = stringToPrecomputedChunk('</div>');\nvar startSegmentSVG = stringToPrecomputedChunk('<svg aria-hidden=\"true\" style=\"display:none\" id=\"');\nvar startSegmentSVG2 = stringToPrecomputedChunk('\">');\nvar endSegmentSVG = stringToPrecomputedChunk('</svg>');\nvar startSegmentMathML = stringToPrecomputedChunk('<math aria-hidden=\"true\" style=\"display:none\" id=\"');\nvar startSegmentMathML2 = stringToPrecomputedChunk('\">');\nvar endSegmentMathML = stringToPrecomputedChunk('</math>');\nvar startSegmentTable = stringToPrecomputedChunk('<table hidden id=\"');\nvar startSegmentTable2 = stringToPrecomputedChunk('\">');\nvar endSegmentTable = stringToPrecomputedChunk('</table>');\nvar startSegmentTableBody = stringToPrecomputedChunk('<table hidden><tbody id=\"');\nvar startSegmentTableBody2 = stringToPrecomputedChunk('\">');\nvar endSegmentTableBody = stringToPrecomputedChunk('</tbody></table>');\nvar startSegmentTableRow = stringToPrecomputedChunk('<table hidden><tr id=\"');\nvar startSegmentTableRow2 = stringToPrecomputedChunk('\">');\nvar endSegmentTableRow = stringToPrecomputedChunk('</tr></table>');\nvar startSegmentColGroup = stringToPrecomputedChunk('<table hidden><colgroup id=\"');\nvar startSegmentColGroup2 = stringToPrecomputedChunk('\">');\nvar endSegmentColGroup = stringToPrecomputedChunk('</colgroup></table>');\nfunction writeStartSegment(destination, responseState, formatContext, id) {\n  switch (formatContext.insertionMode) {\n    case ROOT_HTML_MODE:\n    case HTML_MODE:\n      {\n        writeChunk(destination, startSegmentHTML);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentHTML2);\n      }\n\n    case SVG_MODE:\n      {\n        writeChunk(destination, startSegmentSVG);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentSVG2);\n      }\n\n    case MATHML_MODE:\n      {\n        writeChunk(destination, startSegmentMathML);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentMathML2);\n      }\n\n    case HTML_TABLE_MODE:\n      {\n        writeChunk(destination, startSegmentTable);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTable2);\n      }\n    // TODO: For the rest of these, there will be extra wrapper nodes that never\n    // get deleted from the document. We need to delete the table too as part\n    // of the injected scripts. They are invisible though so it's not too terrible\n    // and it's kind of an edge case to suspend in a table. Totally supported though.\n\n    case HTML_TABLE_BODY_MODE:\n      {\n        writeChunk(destination, startSegmentTableBody);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTableBody2);\n      }\n\n    case HTML_TABLE_ROW_MODE:\n      {\n        writeChunk(destination, startSegmentTableRow);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTableRow2);\n      }\n\n    case HTML_COLGROUP_MODE:\n      {\n        writeChunk(destination, startSegmentColGroup);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentColGroup2);\n      }\n\n    default:\n      {\n        throw new Error('Unknown insertion mode. This is a bug in React.');\n      }\n  }\n}\nfunction writeEndSegment(destination, formatContext) {\n  switch (formatContext.insertionMode) {\n    case ROOT_HTML_MODE:\n    case HTML_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentHTML);\n      }\n\n    case SVG_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentSVG);\n      }\n\n    case MATHML_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentMathML);\n      }\n\n    case HTML_TABLE_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTable);\n      }\n\n    case HTML_TABLE_BODY_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTableBody);\n      }\n\n    case HTML_TABLE_ROW_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTableRow);\n      }\n\n    case HTML_COLGROUP_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentColGroup);\n      }\n\n    default:\n      {\n        throw new Error('Unknown insertion mode. This is a bug in React.');\n      }\n  }\n} // Instruction Set\n// The following code is the source scripts that we then minify and inline below,\n// with renamed function names that we hope don't collide:\n// const COMMENT_NODE = 8;\n// const SUSPENSE_START_DATA = '$';\n// const SUSPENSE_END_DATA = '/$';\n// const SUSPENSE_PENDING_START_DATA = '$?';\n// const SUSPENSE_FALLBACK_START_DATA = '$!';\n//\n// function clientRenderBoundary(suspenseBoundaryID, errorDigest, errorMsg, errorComponentStack) {\n//   // Find the fallback's first element.\n//   const suspenseIdNode = document.getElementById(suspenseBoundaryID);\n//   if (!suspenseIdNode) {\n//     // The user must have already navigated away from this tree.\n//     // E.g. because the parent was hydrated.\n//     return;\n//   }\n//   // Find the boundary around the fallback. This is always the previous node.\n//   const suspenseNode = suspenseIdNode.previousSibling;\n//   // Tag it to be client rendered.\n//   suspenseNode.data = SUSPENSE_FALLBACK_START_DATA;\n//   // assign error metadata to first sibling\n//   let dataset = suspenseIdNode.dataset;\n//   if (errorDigest) dataset.dgst = errorDigest;\n//   if (errorMsg) dataset.msg = errorMsg;\n//   if (errorComponentStack) dataset.stck = errorComponentStack;\n//   // Tell React to retry it if the parent already hydrated.\n//   if (suspenseNode._reactRetry) {\n//     suspenseNode._reactRetry();\n//   }\n// }\n//\n// function completeBoundary(suspenseBoundaryID, contentID) {\n//   // Find the fallback's first element.\n//   const suspenseIdNode = document.getElementById(suspenseBoundaryID);\n//   const contentNode = document.getElementById(contentID);\n//   // We'll detach the content node so that regardless of what happens next we don't leave in the tree.\n//   // This might also help by not causing recalcing each time we move a child from here to the target.\n//   contentNode.parentNode.removeChild(contentNode);\n//   if (!suspenseIdNode) {\n//     // The user must have already navigated away from this tree.\n//     // E.g. because the parent was hydrated. That's fine there's nothing to do\n//     // but we have to make sure that we already deleted the container node.\n//     return;\n//   }\n//   // Find the boundary around the fallback. This is always the previous node.\n//   const suspenseNode = suspenseIdNode.previousSibling;\n//\n//   // Clear all the existing children. This is complicated because\n//   // there can be embedded Suspense boundaries in the fallback.\n//   // This is similar to clearSuspenseBoundary in ReactDOMHostConfig.\n//   // TODO: We could avoid this if we never emitted suspense boundaries in fallback trees.\n//   // They never hydrate anyway. However, currently we support incrementally loading the fallback.\n//   const parentInstance = suspenseNode.parentNode;\n//   let node = suspenseNode.nextSibling;\n//   let depth = 0;\n//   do {\n//     if (node && node.nodeType === COMMENT_NODE) {\n//       const data = node.data;\n//       if (data === SUSPENSE_END_DATA) {\n//         if (depth === 0) {\n//           break;\n//         } else {\n//           depth--;\n//         }\n//       } else if (\n//         data === SUSPENSE_START_DATA ||\n//         data === SUSPENSE_PENDING_START_DATA ||\n//         data === SUSPENSE_FALLBACK_START_DATA\n//       ) {\n//         depth++;\n//       }\n//     }\n//\n//     const nextNode = node.nextSibling;\n//     parentInstance.removeChild(node);\n//     node = nextNode;\n//   } while (node);\n//\n//   const endOfBoundary = node;\n//\n//   // Insert all the children from the contentNode between the start and end of suspense boundary.\n//   while (contentNode.firstChild) {\n//     parentInstance.insertBefore(contentNode.firstChild, endOfBoundary);\n//   }\n//   suspenseNode.data = SUSPENSE_START_DATA;\n//   if (suspenseNode._reactRetry) {\n//     suspenseNode._reactRetry();\n//   }\n// }\n//\n// function completeSegment(containerID, placeholderID) {\n//   const segmentContainer = document.getElementById(containerID);\n//   const placeholderNode = document.getElementById(placeholderID);\n//   // We always expect both nodes to exist here because, while we might\n//   // have navigated away from the main tree, we still expect the detached\n//   // tree to exist.\n//   segmentContainer.parentNode.removeChild(segmentContainer);\n//   while (segmentContainer.firstChild) {\n//     placeholderNode.parentNode.insertBefore(\n//       segmentContainer.firstChild,\n//       placeholderNode,\n//     );\n//   }\n//   placeholderNode.parentNode.removeChild(placeholderNode);\n// }\n\nvar completeSegmentFunction = 'function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}';\nvar completeBoundaryFunction = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}}';\nvar clientRenderFunction = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}';\nvar completeSegmentScript1Full = stringToPrecomputedChunk(completeSegmentFunction + ';$RS(\"');\nvar completeSegmentScript1Partial = stringToPrecomputedChunk('$RS(\"');\nvar completeSegmentScript2 = stringToPrecomputedChunk('\",\"');\nvar completeSegmentScript3 = stringToPrecomputedChunk('\")</script>');\nfunction writeCompletedSegmentInstruction(destination, responseState, contentSegmentID) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentCompleteSegmentFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentCompleteSegmentFunction = true;\n    writeChunk(destination, completeSegmentScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, completeSegmentScript1Partial);\n  }\n\n  writeChunk(destination, responseState.segmentPrefix);\n  var formattedID = stringToChunk(contentSegmentID.toString(16));\n  writeChunk(destination, formattedID);\n  writeChunk(destination, completeSegmentScript2);\n  writeChunk(destination, responseState.placeholderPrefix);\n  writeChunk(destination, formattedID);\n  return writeChunkAndReturn(destination, completeSegmentScript3);\n}\nvar completeBoundaryScript1Full = stringToPrecomputedChunk(completeBoundaryFunction + ';$RC(\"');\nvar completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC(\"');\nvar completeBoundaryScript2 = stringToPrecomputedChunk('\",\"');\nvar completeBoundaryScript3 = stringToPrecomputedChunk('\")</script>');\nfunction writeCompletedBoundaryInstruction(destination, responseState, boundaryID, contentSegmentID) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentCompleteBoundaryFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentCompleteBoundaryFunction = true;\n    writeChunk(destination, completeBoundaryScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, completeBoundaryScript1Partial);\n  }\n\n  if (boundaryID === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  var formattedContentID = stringToChunk(contentSegmentID.toString(16));\n  writeChunk(destination, boundaryID);\n  writeChunk(destination, completeBoundaryScript2);\n  writeChunk(destination, responseState.segmentPrefix);\n  writeChunk(destination, formattedContentID);\n  return writeChunkAndReturn(destination, completeBoundaryScript3);\n}\nvar clientRenderScript1Full = stringToPrecomputedChunk(clientRenderFunction + ';$RX(\"');\nvar clientRenderScript1Partial = stringToPrecomputedChunk('$RX(\"');\nvar clientRenderScript1A = stringToPrecomputedChunk('\"');\nvar clientRenderScript2 = stringToPrecomputedChunk(')</script>');\nvar clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(',');\nfunction writeClientRenderBoundaryInstruction(destination, responseState, boundaryID, errorDigest, errorMessage, errorComponentStack) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentClientRenderFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentClientRenderFunction = true;\n    writeChunk(destination, clientRenderScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, clientRenderScript1Partial);\n  }\n\n  if (boundaryID === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  writeChunk(destination, boundaryID);\n  writeChunk(destination, clientRenderScript1A);\n\n  if (errorDigest || errorMessage || errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorDigest || '')));\n  }\n\n  if (errorMessage || errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorMessage || '')));\n  }\n\n  if (errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorComponentStack)));\n  }\n\n  return writeChunkAndReturn(destination, clientRenderScript2);\n}\nvar regexForJSStringsInScripts = /[<\\u2028\\u2029]/g;\n\nfunction escapeJSStringsForInstructionScripts(input) {\n  var escaped = JSON.stringify(input);\n  return escaped.replace(regexForJSStringsInScripts, function (match) {\n    switch (match) {\n      // santizing breaking out of strings and script tags\n      case '<':\n        return \"\\\\u003c\";\n\n      case \"\\u2028\":\n        return \"\\\\u2028\";\n\n      case \"\\u2029\":\n        return \"\\\\u2029\";\n\n      default:\n        {\n          // eslint-disable-next-line react-internal/prod-error-codes\n          throw new Error('escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React');\n        }\n    }\n  });\n}\n\nfunction createResponseState$1(generateStaticMarkup, identifierPrefix) {\n  var responseState = createResponseState(identifierPrefix, undefined);\n  return {\n    // Keep this in sync with ReactDOMServerFormatConfig\n    bootstrapChunks: responseState.bootstrapChunks,\n    startInlineScript: responseState.startInlineScript,\n    placeholderPrefix: responseState.placeholderPrefix,\n    segmentPrefix: responseState.segmentPrefix,\n    boundaryPrefix: responseState.boundaryPrefix,\n    idPrefix: responseState.idPrefix,\n    nextSuspenseID: responseState.nextSuspenseID,\n    sentCompleteSegmentFunction: responseState.sentCompleteSegmentFunction,\n    sentCompleteBoundaryFunction: responseState.sentCompleteBoundaryFunction,\n    sentClientRenderFunction: responseState.sentClientRenderFunction,\n    // This is an extra field for the legacy renderer\n    generateStaticMarkup: generateStaticMarkup\n  };\n}\nfunction createRootFormatContext() {\n  return {\n    insertionMode: HTML_MODE,\n    // We skip the root mode because we don't want to emit the DOCTYPE in legacy mode.\n    selectedValue: null\n  };\n}\nfunction pushTextInstance$1(target, text, responseState, textEmbedded) {\n  if (responseState.generateStaticMarkup) {\n    target.push(stringToChunk(escapeTextForBrowser(text)));\n    return false;\n  } else {\n    return pushTextInstance(target, text, responseState, textEmbedded);\n  }\n}\nfunction pushSegmentFinale$1(target, responseState, lastPushedText, textEmbedded) {\n  if (responseState.generateStaticMarkup) {\n    return;\n  } else {\n    return pushSegmentFinale(target, responseState, lastPushedText, textEmbedded);\n  }\n}\nfunction writeStartCompletedSuspenseBoundary$1(destination, responseState) {\n  if (responseState.generateStaticMarkup) {\n    // A completed boundary is done and doesn't need a representation in the HTML\n    // if we're not going to be hydrating it.\n    return true;\n  }\n\n  return writeStartCompletedSuspenseBoundary(destination);\n}\nfunction writeStartClientRenderedSuspenseBoundary$1(destination, responseState, // flushing these error arguments are not currently supported in this legacy streaming format.\nerrorDigest, errorMessage, errorComponentStack) {\n  if (responseState.generateStaticMarkup) {\n    // A client rendered boundary is done and doesn't need a representation in the HTML\n    // since we'll never hydrate it. This is arguably an error in static generation.\n    return true;\n  }\n\n  return writeStartClientRenderedSuspenseBoundary(destination, responseState, errorDigest, errorMessage, errorComponentStack);\n}\nfunction writeEndCompletedSuspenseBoundary$1(destination, responseState) {\n  if (responseState.generateStaticMarkup) {\n    return true;\n  }\n\n  return writeEndCompletedSuspenseBoundary(destination);\n}\nfunction writeEndClientRenderedSuspenseBoundary$1(destination, responseState) {\n  if (responseState.generateStaticMarkup) {\n    return true;\n  }\n\n  return writeEndClientRenderedSuspenseBoundary(destination);\n}\n\nvar assign = Object.assign;\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_SCOPE_TYPE = Symbol.for('react.scope');\nvar REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');\nvar REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');\nvar REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\n\nfunction describeClassComponentFrame(ctor, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(ctor, true);\n  }\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nvar warnedAboutMissingGetChildContext;\n\n{\n  warnedAboutMissingGetChildContext = {};\n}\n\nvar emptyContextObject = {};\n\n{\n  Object.freeze(emptyContextObject);\n}\n\nfunction getMaskedContext(type, unmaskedContext) {\n  {\n    var contextTypes = type.contextTypes;\n\n    if (!contextTypes) {\n      return emptyContextObject;\n    }\n\n    var context = {};\n\n    for (var key in contextTypes) {\n      context[key] = unmaskedContext[key];\n    }\n\n    {\n      var name = getComponentNameFromType(type) || 'Unknown';\n      checkPropTypes(contextTypes, context, 'context', name);\n    }\n\n    return context;\n  }\n}\nfunction processChildContext(instance, type, parentContext, childContextTypes) {\n  {\n    // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n    // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n    if (typeof instance.getChildContext !== 'function') {\n      {\n        var componentName = getComponentNameFromType(type) || 'Unknown';\n\n        if (!warnedAboutMissingGetChildContext[componentName]) {\n          warnedAboutMissingGetChildContext[componentName] = true;\n\n          error('%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.', componentName, componentName);\n        }\n      }\n\n      return parentContext;\n    }\n\n    var childContext = instance.getChildContext();\n\n    for (var contextKey in childContext) {\n      if (!(contextKey in childContextTypes)) {\n        throw new Error((getComponentNameFromType(type) || 'Unknown') + \".getChildContext(): key \\\"\" + contextKey + \"\\\" is not defined in childContextTypes.\");\n      }\n    }\n\n    {\n      var name = getComponentNameFromType(type) || 'Unknown';\n      checkPropTypes(childContextTypes, childContext, 'child context', name);\n    }\n\n    return assign({}, parentContext, childContext);\n  }\n}\n\nvar rendererSigil;\n\n{\n  // Use this to detect multiple renderers using the same context\n  rendererSigil = {};\n} // Used to store the parent path of all context overrides in a shared linked list.\n// Forming a reverse tree.\n\n\nvar rootContextSnapshot = null; // We assume that this runtime owns the \"current\" field on all ReactContext instances.\n// This global (actually thread local) state represents what state all those \"current\",\n// fields are currently in.\n\nvar currentActiveSnapshot = null;\n\nfunction popNode(prev) {\n  {\n    prev.context._currentValue2 = prev.parentValue;\n  }\n}\n\nfunction pushNode(next) {\n  {\n    next.context._currentValue2 = next.value;\n  }\n}\n\nfunction popToNearestCommonAncestor(prev, next) {\n  if (prev === next) ; else {\n    popNode(prev);\n    var parentPrev = prev.parent;\n    var parentNext = next.parent;\n\n    if (parentPrev === null) {\n      if (parentNext !== null) {\n        throw new Error('The stacks must reach the root at the same time. This is a bug in React.');\n      }\n    } else {\n      if (parentNext === null) {\n        throw new Error('The stacks must reach the root at the same time. This is a bug in React.');\n      }\n\n      popToNearestCommonAncestor(parentPrev, parentNext);\n    } // On the way back, we push the new ones that weren't common.\n\n\n    pushNode(next);\n  }\n}\n\nfunction popAllPrevious(prev) {\n  popNode(prev);\n  var parentPrev = prev.parent;\n\n  if (parentPrev !== null) {\n    popAllPrevious(parentPrev);\n  }\n}\n\nfunction pushAllNext(next) {\n  var parentNext = next.parent;\n\n  if (parentNext !== null) {\n    pushAllNext(parentNext);\n  }\n\n  pushNode(next);\n}\n\nfunction popPreviousToCommonLevel(prev, next) {\n  popNode(prev);\n  var parentPrev = prev.parent;\n\n  if (parentPrev === null) {\n    throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');\n  }\n\n  if (parentPrev.depth === next.depth) {\n    // We found the same level. Now we just need to find a shared ancestor.\n    popToNearestCommonAncestor(parentPrev, next);\n  } else {\n    // We must still be deeper.\n    popPreviousToCommonLevel(parentPrev, next);\n  }\n}\n\nfunction popNextToCommonLevel(prev, next) {\n  var parentNext = next.parent;\n\n  if (parentNext === null) {\n    throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');\n  }\n\n  if (prev.depth === parentNext.depth) {\n    // We found the same level. Now we just need to find a shared ancestor.\n    popToNearestCommonAncestor(prev, parentNext);\n  } else {\n    // We must still be deeper.\n    popNextToCommonLevel(prev, parentNext);\n  }\n\n  pushNode(next);\n} // Perform context switching to the new snapshot.\n// To make it cheap to read many contexts, while not suspending, we make the switch eagerly by\n// updating all the context's current values. That way reads, always just read the current value.\n// At the cost of updating contexts even if they're never read by this subtree.\n\n\nfunction switchContext(newSnapshot) {\n  // The basic algorithm we need to do is to pop back any contexts that are no longer on the stack.\n  // We also need to update any new contexts that are now on the stack with the deepest value.\n  // The easiest way to update new contexts is to just reapply them in reverse order from the\n  // perspective of the backpointers. To avoid allocating a lot when switching, we use the stack\n  // for that. Therefore this algorithm is recursive.\n  // 1) First we pop which ever snapshot tree was deepest. Popping old contexts as we go.\n  // 2) Then we find the nearest common ancestor from there. Popping old contexts as we go.\n  // 3) Then we reapply new contexts on the way back up the stack.\n  var prev = currentActiveSnapshot;\n  var next = newSnapshot;\n\n  if (prev !== next) {\n    if (prev === null) {\n      // $FlowFixMe: This has to be non-null since it's not equal to prev.\n      pushAllNext(next);\n    } else if (next === null) {\n      popAllPrevious(prev);\n    } else if (prev.depth === next.depth) {\n      popToNearestCommonAncestor(prev, next);\n    } else if (prev.depth > next.depth) {\n      popPreviousToCommonLevel(prev, next);\n    } else {\n      popNextToCommonLevel(prev, next);\n    }\n\n    currentActiveSnapshot = next;\n  }\n}\nfunction pushProvider(context, nextValue) {\n  var prevValue;\n\n  {\n    prevValue = context._currentValue2;\n    context._currentValue2 = nextValue;\n\n    {\n      if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) {\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer2 = rendererSigil;\n    }\n  }\n\n  var prevNode = currentActiveSnapshot;\n  var newNode = {\n    parent: prevNode,\n    depth: prevNode === null ? 0 : prevNode.depth + 1,\n    context: context,\n    parentValue: prevValue,\n    value: nextValue\n  };\n  currentActiveSnapshot = newNode;\n  return newNode;\n}\nfunction popProvider(context) {\n  var prevSnapshot = currentActiveSnapshot;\n\n  if (prevSnapshot === null) {\n    throw new Error('Tried to pop a Context at the root of the app. This is a bug in React.');\n  }\n\n  {\n    if (prevSnapshot.context !== context) {\n      error('The parent context is not the expected context. This is probably a bug in React.');\n    }\n  }\n\n  {\n    var _value = prevSnapshot.parentValue;\n\n    if (_value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {\n      prevSnapshot.context._currentValue2 = prevSnapshot.context._defaultValue;\n    } else {\n      prevSnapshot.context._currentValue2 = _value;\n    }\n\n    {\n      if (context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) {\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer2 = rendererSigil;\n    }\n  }\n\n  return currentActiveSnapshot = prevSnapshot.parent;\n}\nfunction getActiveContext() {\n  return currentActiveSnapshot;\n}\nfunction readContext(context) {\n  var value =  context._currentValue2;\n  return value;\n}\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\nfunction get(key) {\n  return key._reactInternals;\n}\nfunction set(key, value) {\n  key._reactInternals = value;\n}\n\nvar didWarnAboutNoopUpdateForComponent = {};\nvar didWarnAboutDeprecatedWillMount = {};\nvar didWarnAboutUninitializedState;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;\nvar didWarnAboutLegacyLifecyclesAndDerivedState;\nvar didWarnAboutUndefinedDerivedState;\nvar warnOnUndefinedDerivedState;\nvar warnOnInvalidCallback;\nvar didWarnAboutDirectlyAssigningPropsToState;\nvar didWarnAboutContextTypeAndContextTypes;\nvar didWarnAboutInvalidateContextType;\n\n{\n  didWarnAboutUninitializedState = new Set();\n  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();\n  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();\n  didWarnAboutDirectlyAssigningPropsToState = new Set();\n  didWarnAboutUndefinedDerivedState = new Set();\n  didWarnAboutContextTypeAndContextTypes = new Set();\n  didWarnAboutInvalidateContextType = new Set();\n  var didWarnOnInvalidCallback = new Set();\n\n  warnOnInvalidCallback = function (callback, callerName) {\n    if (callback === null || typeof callback === 'function') {\n      return;\n    }\n\n    var key = callerName + '_' + callback;\n\n    if (!didWarnOnInvalidCallback.has(key)) {\n      didWarnOnInvalidCallback.add(key);\n\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  };\n\n  warnOnUndefinedDerivedState = function (type, partialState) {\n    if (partialState === undefined) {\n      var componentName = getComponentNameFromType(type) || 'Component';\n\n      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {\n        didWarnAboutUndefinedDerivedState.add(componentName);\n\n        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n      }\n    }\n  };\n}\n\nfunction warnNoop(publicInstance, callerName) {\n  {\n    var _constructor = publicInstance.constructor;\n    var componentName = _constructor && getComponentNameFromType(_constructor) || 'ReactClass';\n    var warningKey = componentName + '.' + callerName;\n\n    if (didWarnAboutNoopUpdateForComponent[warningKey]) {\n      return;\n    }\n\n    error('%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op.\\n\\nPlease check the code for the %s component.', callerName, callerName, componentName);\n\n    didWarnAboutNoopUpdateForComponent[warningKey] = true;\n  }\n}\n\nvar classComponentUpdater = {\n  isMounted: function (inst) {\n    return false;\n  },\n  enqueueSetState: function (inst, payload, callback) {\n    var internals = get(inst);\n\n    if (internals.queue === null) {\n      warnNoop(inst, 'setState');\n    } else {\n      internals.queue.push(payload);\n\n      {\n        if (callback !== undefined && callback !== null) {\n          warnOnInvalidCallback(callback, 'setState');\n        }\n      }\n    }\n  },\n  enqueueReplaceState: function (inst, payload, callback) {\n    var internals = get(inst);\n    internals.replace = true;\n    internals.queue = [payload];\n\n    {\n      if (callback !== undefined && callback !== null) {\n        warnOnInvalidCallback(callback, 'setState');\n      }\n    }\n  },\n  enqueueForceUpdate: function (inst, callback) {\n    var internals = get(inst);\n\n    if (internals.queue === null) {\n      warnNoop(inst, 'forceUpdate');\n    } else {\n      {\n        if (callback !== undefined && callback !== null) {\n          warnOnInvalidCallback(callback, 'setState');\n        }\n      }\n    }\n  }\n};\n\nfunction applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, prevState, nextProps) {\n  var partialState = getDerivedStateFromProps(nextProps, prevState);\n\n  {\n    warnOnUndefinedDerivedState(ctor, partialState);\n  } // Merge the partial state and the previous state.\n\n\n  var newState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);\n  return newState;\n}\n\nfunction constructClassInstance(ctor, props, maskedLegacyContext) {\n  var context = emptyContextObject;\n  var contextType = ctor.contextType;\n\n  {\n    if ('contextType' in ctor) {\n      var isValid = // Allow null for conditional declaration\n      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>\n\n      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {\n        didWarnAboutInvalidateContextType.add(ctor);\n        var addendum = '';\n\n        if (contextType === undefined) {\n          addendum = ' 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.';\n        } else if (typeof contextType !== 'object') {\n          addendum = ' However, it is set to a ' + typeof contextType + '.';\n        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {\n          addendum = ' Did you accidentally pass the Context.Provider instead?';\n        } else if (contextType._context !== undefined) {\n          // <Context.Consumer>\n          addendum = ' Did you accidentally pass the Context.Consumer instead?';\n        } else {\n          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';\n        }\n\n        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);\n      }\n    }\n  }\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    context = readContext(contextType);\n  } else {\n    context = maskedLegacyContext;\n  }\n\n  var instance = new ctor(props, context);\n\n  {\n    if (typeof ctor.getDerivedStateFromProps === 'function' && (instance.state === null || instance.state === undefined)) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutUninitializedState.has(componentName)) {\n        didWarnAboutUninitializedState.add(componentName);\n\n        error('`%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.', componentName, instance.state === null ? 'null' : 'undefined', componentName);\n      }\n    } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n    // Warn about these lifecycles if they are present.\n    // Don't warn about react-lifecycles-compat polyfilled methods though.\n\n\n    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {\n      var foundWillMountName = null;\n      var foundWillReceivePropsName = null;\n      var foundWillUpdateName = null;\n\n      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n        foundWillMountName = 'componentWillMount';\n      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {\n        foundWillMountName = 'UNSAFE_componentWillMount';\n      }\n\n      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n        foundWillReceivePropsName = 'componentWillReceiveProps';\n      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n      }\n\n      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n        foundWillUpdateName = 'componentWillUpdate';\n      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n        foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n      }\n\n      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n        var _componentName = getComponentNameFromType(ctor) || 'Component';\n\n        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n\n        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {\n          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n\n          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? \"\\n  \" + foundWillMountName : '', foundWillReceivePropsName !== null ? \"\\n  \" + foundWillReceivePropsName : '', foundWillUpdateName !== null ? \"\\n  \" + foundWillUpdateName : '');\n        }\n      }\n    }\n  }\n\n  return instance;\n}\n\nfunction checkClassInstance(instance, ctor, newProps) {\n  {\n    var name = getComponentNameFromType(ctor) || 'Component';\n    var renderPresent = instance.render;\n\n    if (!renderPresent) {\n      if (ctor.prototype && typeof ctor.prototype.render === 'function') {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n      } else {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n      }\n    }\n\n    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {\n      error('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?', name);\n    }\n\n    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {\n      error('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.', name);\n    }\n\n    if (instance.propTypes) {\n      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);\n    }\n\n    if (instance.contextType) {\n      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);\n    }\n\n    {\n      if (instance.contextTypes) {\n        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);\n      }\n\n      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {\n        didWarnAboutContextTypeAndContextTypes.add(ctor);\n\n        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n      }\n    }\n\n    if (typeof instance.componentShouldUpdate === 'function') {\n      error('%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.', name);\n    }\n\n    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {\n      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');\n    }\n\n    if (typeof instance.componentDidUnmount === 'function') {\n      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);\n    }\n\n    if (typeof instance.componentDidReceiveProps === 'function') {\n      error('%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().', name);\n    }\n\n    if (typeof instance.componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);\n    }\n\n    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);\n    }\n\n    var hasMutatedProps = instance.props !== newProps;\n\n    if (instance.props !== undefined && hasMutatedProps) {\n      error('%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name);\n    }\n\n    if (instance.defaultProps) {\n      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {\n      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n\n      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));\n    }\n\n    if (typeof instance.getDerivedStateFromProps === 'function') {\n      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof instance.getDerivedStateFromError === 'function') {\n      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {\n      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);\n    }\n\n    var _state = instance.state;\n\n    if (_state && (typeof _state !== 'object' || isArray(_state))) {\n      error('%s.state: must be set to an object or null', name);\n    }\n\n    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {\n      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);\n    }\n  }\n}\n\nfunction callComponentWillMount(type, instance) {\n  var oldState = instance.state;\n\n  if (typeof instance.componentWillMount === 'function') {\n    {\n      if ( instance.componentWillMount.__suppressDeprecationWarning !== true) {\n        var componentName = getComponentNameFromType(type) || 'Unknown';\n\n        if (!didWarnAboutDeprecatedWillMount[componentName]) {\n          warn( // keep this warning in sync with ReactStrictModeWarning.js\n          'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move code from componentWillMount to componentDidMount (preferred in most cases) ' + 'or the constructor.\\n' + '\\nPlease update the following components: %s', componentName);\n\n          didWarnAboutDeprecatedWillMount[componentName] = true;\n        }\n      }\n    }\n\n    instance.componentWillMount();\n  }\n\n  if (typeof instance.UNSAFE_componentWillMount === 'function') {\n    instance.UNSAFE_componentWillMount();\n  }\n\n  if (oldState !== instance.state) {\n    {\n      error('%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentNameFromType(type) || 'Component');\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n}\n\nfunction processUpdateQueue(internalInstance, inst, props, maskedLegacyContext) {\n  if (internalInstance.queue !== null && internalInstance.queue.length > 0) {\n    var oldQueue = internalInstance.queue;\n    var oldReplace = internalInstance.replace;\n    internalInstance.queue = null;\n    internalInstance.replace = false;\n\n    if (oldReplace && oldQueue.length === 1) {\n      inst.state = oldQueue[0];\n    } else {\n      var nextState = oldReplace ? oldQueue[0] : inst.state;\n      var dontMutate = true;\n\n      for (var i = oldReplace ? 1 : 0; i < oldQueue.length; i++) {\n        var partial = oldQueue[i];\n        var partialState = typeof partial === 'function' ? partial.call(inst, nextState, props, maskedLegacyContext) : partial;\n\n        if (partialState != null) {\n          if (dontMutate) {\n            dontMutate = false;\n            nextState = assign({}, nextState, partialState);\n          } else {\n            assign(nextState, partialState);\n          }\n        }\n      }\n\n      inst.state = nextState;\n    }\n  } else {\n    internalInstance.queue = null;\n  }\n} // Invokes the mount life-cycles on a previously never rendered instance.\n\n\nfunction mountClassInstance(instance, ctor, newProps, maskedLegacyContext) {\n  {\n    checkClassInstance(instance, ctor, newProps);\n  }\n\n  var initialState = instance.state !== undefined ? instance.state : null;\n  instance.updater = classComponentUpdater;\n  instance.props = newProps;\n  instance.state = initialState; // We don't bother initializing the refs object on the server, since we're not going to resolve them anyway.\n  // The internal instance will be used to manage updates that happen during this mount.\n\n  var internalInstance = {\n    queue: [],\n    replace: false\n  };\n  set(instance, internalInstance);\n  var contextType = ctor.contextType;\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    instance.context = readContext(contextType);\n  } else {\n    instance.context = maskedLegacyContext;\n  }\n\n  {\n    if (instance.state === newProps) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {\n        didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n\n        error('%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.', componentName);\n      }\n    }\n  }\n\n  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n\n  if (typeof getDerivedStateFromProps === 'function') {\n    instance.state = applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, initialState, newProps);\n  } // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n\n  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n    callComponentWillMount(ctor, instance); // If we had additional state updates during this life-cycle, let's\n    // process them now.\n\n    processUpdateQueue(internalInstance, instance, newProps, maskedLegacyContext);\n  }\n}\n\n// Ids are base 32 strings whose binary representation corresponds to the\n// position of a node in a tree.\n// Every time the tree forks into multiple children, we add additional bits to\n// the left of the sequence that represent the position of the child within the\n// current level of children.\n//\n//      00101       00010001011010101\n//      ╰─┬─╯       ╰───────┬───────╯\n//   Fork 5 of 20       Parent id\n//\n// The leading 0s are important. In the above example, you only need 3 bits to\n// represent slot 5. However, you need 5 bits to represent all the forks at\n// the current level, so we must account for the empty bits at the end.\n//\n// For this same reason, slots are 1-indexed instead of 0-indexed. Otherwise,\n// the zeroth id at a level would be indistinguishable from its parent.\n//\n// If a node has only one child, and does not materialize an id (i.e. does not\n// contain a useId hook), then we don't need to allocate any space in the\n// sequence. It's treated as a transparent indirection. For example, these two\n// trees produce the same ids:\n//\n// <>                          <>\n//   <Indirection>               <A />\n//     <A />                     <B />\n//   </Indirection>            </>\n//   <B />\n// </>\n//\n// However, we cannot skip any node that materializes an id. Otherwise, a parent\n// id that does not fork would be indistinguishable from its child id. For\n// example, this tree does not fork, but the parent and child must have\n// different ids.\n//\n// <Parent>\n//   <Child />\n// </Parent>\n//\n// To handle this scenario, every time we materialize an id, we allocate a\n// new level with a single slot. You can think of this as a fork with only one\n// prong, or an array of children with length 1.\n//\n// It's possible for the size of the sequence to exceed 32 bits, the max\n// size for bitwise operations. When this happens, we make more room by\n// converting the right part of the id to a string and storing it in an overflow\n// variable. We use a base 32 string representation, because 32 is the largest\n// power of 2 that is supported by toString(). We want the base to be large so\n// that the resulting ids are compact, and we want the base to be a power of 2\n// because every log2(base) bits corresponds to a single character, i.e. every\n// log2(32) = 5 bits. That means we can lop bits off the end 5 at a time without\n// affecting the final result.\nvar emptyTreeContext = {\n  id: 1,\n  overflow: ''\n};\nfunction getTreeId(context) {\n  var overflow = context.overflow;\n  var idWithLeadingBit = context.id;\n  var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);\n  return id.toString(32) + overflow;\n}\nfunction pushTreeContext(baseContext, totalChildren, index) {\n  var baseIdWithLeadingBit = baseContext.id;\n  var baseOverflow = baseContext.overflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part\n  // of the id; we use it to account for leading 0s.\n\n  var baseLength = getBitLength(baseIdWithLeadingBit) - 1;\n  var baseId = baseIdWithLeadingBit & ~(1 << baseLength);\n  var slot = index + 1;\n  var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into\n  // consideration the leading 1 we use to mark the end of the sequence.\n\n  if (length > 30) {\n    // We overflowed the bitwise-safe range. Fall back to slower algorithm.\n    // This branch assumes the length of the base id is greater than 5; it won't\n    // work for smaller ids, because you need 5 bits per character.\n    //\n    // We encode the id in multiple steps: first the base id, then the\n    // remaining digits.\n    //\n    // Each 5 bit sequence corresponds to a single base 32 character. So for\n    // example, if the current id is 23 bits long, we can convert 20 of those\n    // bits into a string of 4 characters, with 3 bits left over.\n    //\n    // First calculate how many bits in the base id represent a complete\n    // sequence of characters.\n    var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.\n\n    var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.\n\n    var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.\n\n    var restOfBaseId = baseId >> numberOfOverflowBits;\n    var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because\n    // we made more room, this time it won't overflow.\n\n    var restOfLength = getBitLength(totalChildren) + restOfBaseLength;\n    var restOfNewBits = slot << restOfBaseLength;\n    var id = restOfNewBits | restOfBaseId;\n    var overflow = newOverflow + baseOverflow;\n    return {\n      id: 1 << restOfLength | id,\n      overflow: overflow\n    };\n  } else {\n    // Normal path\n    var newBits = slot << baseLength;\n\n    var _id = newBits | baseId;\n\n    var _overflow = baseOverflow;\n    return {\n      id: 1 << length | _id,\n      overflow: _overflow\n    };\n  }\n}\n\nfunction getBitLength(number) {\n  return 32 - clz32(number);\n}\n\nfunction getLeadingBit(id) {\n  return 1 << getBitLength(id) - 1;\n} // TODO: Math.clz32 is supported in Node 12+. Maybe we can drop the fallback.\n\n\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.\n// Based on:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nfunction clz32Fallback(x) {\n  var asUint = x >>> 0;\n\n  if (asUint === 0) {\n    return 32;\n  }\n\n  return 31 - (log(asUint) / LN2 | 0) | 0;\n}\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n  ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar currentlyRenderingComponent = null;\nvar currentlyRenderingTask = null;\nvar firstWorkInProgressHook = null;\nvar workInProgressHook = null; // Whether the work-in-progress hook is a re-rendered hook\n\nvar isReRender = false; // Whether an update was scheduled during the currently executing render pass.\n\nvar didScheduleRenderPhaseUpdate = false; // Counts the number of useId hooks in this component\n\nvar localIdCounter = 0; // Lazily created map of render-phase updates\n\nvar renderPhaseUpdates = null; // Counter to prevent infinite loops.\n\nvar numberOfReRenders = 0;\nvar RE_RENDER_LIMIT = 25;\nvar isInHookUserCodeInDev = false; // In DEV, this is the name of the currently executing primitive hook\n\nvar currentHookNameInDev;\n\nfunction resolveCurrentlyRenderingComponent() {\n  if (currentlyRenderingComponent === null) {\n    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:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n  }\n\n  {\n    if (isInHookUserCodeInDev) {\n      error('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');\n    }\n  }\n\n  return currentlyRenderingComponent;\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n  if (prevDeps === null) {\n    {\n      error('%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.', currentHookNameInDev);\n    }\n\n    return false;\n  }\n\n  {\n    // Don't bother comparing lengths in prod because these arrays should be\n    // passed inline.\n    if (nextDeps.length !== prevDeps.length) {\n      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, \"[\" + nextDeps.join(', ') + \"]\", \"[\" + prevDeps.join(', ') + \"]\");\n    }\n  }\n\n  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {\n    if (objectIs(nextDeps[i], prevDeps[i])) {\n      continue;\n    }\n\n    return false;\n  }\n\n  return true;\n}\n\nfunction createHook() {\n  if (numberOfReRenders > 0) {\n    throw new Error('Rendered more hooks than during the previous render');\n  }\n\n  return {\n    memoizedState: null,\n    queue: null,\n    next: null\n  };\n}\n\nfunction createWorkInProgressHook() {\n  if (workInProgressHook === null) {\n    // This is the first hook in the list\n    if (firstWorkInProgressHook === null) {\n      isReRender = false;\n      firstWorkInProgressHook = workInProgressHook = createHook();\n    } else {\n      // There's already a work-in-progress. Reuse it.\n      isReRender = true;\n      workInProgressHook = firstWorkInProgressHook;\n    }\n  } else {\n    if (workInProgressHook.next === null) {\n      isReRender = false; // Append to the end of the list\n\n      workInProgressHook = workInProgressHook.next = createHook();\n    } else {\n      // There's already a work-in-progress. Reuse it.\n      isReRender = true;\n      workInProgressHook = workInProgressHook.next;\n    }\n  }\n\n  return workInProgressHook;\n}\n\nfunction prepareToUseHooks(task, componentIdentity) {\n  currentlyRenderingComponent = componentIdentity;\n  currentlyRenderingTask = task;\n\n  {\n    isInHookUserCodeInDev = false;\n  } // The following should have already been reset\n  // didScheduleRenderPhaseUpdate = false;\n  // localIdCounter = 0;\n  // firstWorkInProgressHook = null;\n  // numberOfReRenders = 0;\n  // renderPhaseUpdates = null;\n  // workInProgressHook = null;\n\n\n  localIdCounter = 0;\n}\nfunction finishHooks(Component, props, children, refOrContext) {\n  // This must be called after every function component to prevent hooks from\n  // being used in classes.\n  while (didScheduleRenderPhaseUpdate) {\n    // Updates were scheduled during the render phase. They are stored in\n    // the `renderPhaseUpdates` map. Call the component again, reusing the\n    // work-in-progress hooks and applying the additional updates on top. Keep\n    // restarting until no more updates are scheduled.\n    didScheduleRenderPhaseUpdate = false;\n    localIdCounter = 0;\n    numberOfReRenders += 1; // Start over from the beginning of the list\n\n    workInProgressHook = null;\n    children = Component(props, refOrContext);\n  }\n\n  resetHooksState();\n  return children;\n}\nfunction checkDidRenderIdHook() {\n  // This should be called immediately after every finishHooks call.\n  // Conceptually, it's part of the return value of finishHooks; it's only a\n  // separate function to avoid using an array tuple.\n  var didRenderIdHook = localIdCounter !== 0;\n  return didRenderIdHook;\n} // Reset the internal hooks state if an error occurs while rendering a component\n\nfunction resetHooksState() {\n  {\n    isInHookUserCodeInDev = false;\n  }\n\n  currentlyRenderingComponent = null;\n  currentlyRenderingTask = null;\n  didScheduleRenderPhaseUpdate = false;\n  firstWorkInProgressHook = null;\n  numberOfReRenders = 0;\n  renderPhaseUpdates = null;\n  workInProgressHook = null;\n}\n\nfunction readContext$1(context) {\n  {\n    if (isInHookUserCodeInDev) {\n      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().');\n    }\n  }\n\n  return readContext(context);\n}\n\nfunction useContext(context) {\n  {\n    currentHookNameInDev = 'useContext';\n  }\n\n  resolveCurrentlyRenderingComponent();\n  return readContext(context);\n}\n\nfunction basicStateReducer(state, action) {\n  // $FlowFixMe: Flow doesn't like mixed types\n  return typeof action === 'function' ? action(state) : action;\n}\n\nfunction useState(initialState) {\n  {\n    currentHookNameInDev = 'useState';\n  }\n\n  return useReducer(basicStateReducer, // useReducer has a special case to support lazy useState initializers\n  initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n  {\n    if (reducer !== basicStateReducer) {\n      currentHookNameInDev = 'useReducer';\n    }\n  }\n\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n\n  if (isReRender) {\n    // This is a re-render. Apply the new render phase updates to the previous\n    // current hook.\n    var queue = workInProgressHook.queue;\n    var dispatch = queue.dispatch;\n\n    if (renderPhaseUpdates !== null) {\n      // Render phase updates are stored in a map of queue -> linked list\n      var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n\n      if (firstRenderPhaseUpdate !== undefined) {\n        renderPhaseUpdates.delete(queue);\n        var newState = workInProgressHook.memoizedState;\n        var update = firstRenderPhaseUpdate;\n\n        do {\n          // Process this render phase update. We don't have to check the\n          // priority because it will always be the same as the current\n          // render's.\n          var action = update.action;\n\n          {\n            isInHookUserCodeInDev = true;\n          }\n\n          newState = reducer(newState, action);\n\n          {\n            isInHookUserCodeInDev = false;\n          }\n\n          update = update.next;\n        } while (update !== null);\n\n        workInProgressHook.memoizedState = newState;\n        return [newState, dispatch];\n      }\n    }\n\n    return [workInProgressHook.memoizedState, dispatch];\n  } else {\n    {\n      isInHookUserCodeInDev = true;\n    }\n\n    var initialState;\n\n    if (reducer === basicStateReducer) {\n      // Special case for `useState`.\n      initialState = typeof initialArg === 'function' ? initialArg() : initialArg;\n    } else {\n      initialState = init !== undefined ? init(initialArg) : initialArg;\n    }\n\n    {\n      isInHookUserCodeInDev = false;\n    }\n\n    workInProgressHook.memoizedState = initialState;\n\n    var _queue = workInProgressHook.queue = {\n      last: null,\n      dispatch: null\n    };\n\n    var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue);\n\n    return [workInProgressHook.memoizedState, _dispatch];\n  }\n}\n\nfunction useMemo(nextCreate, deps) {\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n\n  if (workInProgressHook !== null) {\n    var prevState = workInProgressHook.memoizedState;\n\n    if (prevState !== null) {\n      if (nextDeps !== null) {\n        var prevDeps = prevState[1];\n\n        if (areHookInputsEqual(nextDeps, prevDeps)) {\n          return prevState[0];\n        }\n      }\n    }\n  }\n\n  {\n    isInHookUserCodeInDev = true;\n  }\n\n  var nextValue = nextCreate();\n\n  {\n    isInHookUserCodeInDev = false;\n  }\n\n  workInProgressHook.memoizedState = [nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction useRef(initialValue) {\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n  var previousRef = workInProgressHook.memoizedState;\n\n  if (previousRef === null) {\n    var ref = {\n      current: initialValue\n    };\n\n    {\n      Object.seal(ref);\n    }\n\n    workInProgressHook.memoizedState = ref;\n    return ref;\n  } else {\n    return previousRef;\n  }\n}\n\nfunction useLayoutEffect(create, inputs) {\n  {\n    currentHookNameInDev = 'useLayoutEffect';\n\n    error('useLayoutEffect does nothing on the server, because its effect cannot ' + \"be encoded into the server renderer's output format. This will lead \" + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client. ' + 'See https://reactjs.org/link/uselayouteffect-ssr for common fixes.');\n  }\n}\n\nfunction dispatchAction(componentIdentity, queue, action) {\n  if (numberOfReRenders >= RE_RENDER_LIMIT) {\n    throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');\n  }\n\n  if (componentIdentity === currentlyRenderingComponent) {\n    // This is a render phase update. Stash it in a lazily-created map of\n    // queue -> linked list of updates. After this render pass, we'll restart\n    // and apply the stashed updates on top of the work-in-progress hook.\n    didScheduleRenderPhaseUpdate = true;\n    var update = {\n      action: action,\n      next: null\n    };\n\n    if (renderPhaseUpdates === null) {\n      renderPhaseUpdates = new Map();\n    }\n\n    var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n\n    if (firstRenderPhaseUpdate === undefined) {\n      renderPhaseUpdates.set(queue, update);\n    } else {\n      // Append the update to the end of the list.\n      var lastRenderPhaseUpdate = firstRenderPhaseUpdate;\n\n      while (lastRenderPhaseUpdate.next !== null) {\n        lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;\n      }\n\n      lastRenderPhaseUpdate.next = update;\n    }\n  }\n}\n\nfunction useCallback(callback, deps) {\n  return useMemo(function () {\n    return callback;\n  }, deps);\n} // TODO Decide on how to implement this hook for server rendering.\n// If a mutation occurs during render, consider triggering a Suspense boundary\n// and falling back to client rendering.\n\nfunction useMutableSource(source, getSnapshot, subscribe) {\n  resolveCurrentlyRenderingComponent();\n  return getSnapshot(source._source);\n}\n\nfunction useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  if (getServerSnapshot === undefined) {\n    throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');\n  }\n\n  return getServerSnapshot();\n}\n\nfunction useDeferredValue(value) {\n  resolveCurrentlyRenderingComponent();\n  return value;\n}\n\nfunction unsupportedStartTransition() {\n  throw new Error('startTransition cannot be called during server rendering.');\n}\n\nfunction useTransition() {\n  resolveCurrentlyRenderingComponent();\n  return [false, unsupportedStartTransition];\n}\n\nfunction useId() {\n  var task = currentlyRenderingTask;\n  var treeId = getTreeId(task.treeContext);\n  var responseState = currentResponseState;\n\n  if (responseState === null) {\n    throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component.');\n  }\n\n  var localId = localIdCounter++;\n  return makeId(responseState, treeId, localId);\n}\n\nfunction noop() {}\n\nvar Dispatcher = {\n  readContext: readContext$1,\n  useContext: useContext,\n  useMemo: useMemo,\n  useReducer: useReducer,\n  useRef: useRef,\n  useState: useState,\n  useInsertionEffect: noop,\n  useLayoutEffect: useLayoutEffect,\n  useCallback: useCallback,\n  // useImperativeHandle is not run in the server environment\n  useImperativeHandle: noop,\n  // Effects are not run in the server environment.\n  useEffect: noop,\n  // Debugging effect\n  useDebugValue: noop,\n  useDeferredValue: useDeferredValue,\n  useTransition: useTransition,\n  useId: useId,\n  // Subscriptions are not setup in a server environment.\n  useMutableSource: useMutableSource,\n  useSyncExternalStore: useSyncExternalStore\n};\n\nvar currentResponseState = null;\nfunction setCurrentResponseState(responseState) {\n  currentResponseState = responseState;\n}\n\nfunction getStackByComponentStackNode(componentStack) {\n  try {\n    var info = '';\n    var node = componentStack;\n\n    do {\n      switch (node.tag) {\n        case 0:\n          info += describeBuiltInComponentFrame(node.type, null, null);\n          break;\n\n        case 1:\n          info += describeFunctionComponentFrame(node.type, null, null);\n          break;\n\n        case 2:\n          info += describeClassComponentFrame(node.type, null, null);\n          break;\n      }\n\n      node = node.parent;\n    } while (node);\n\n    return info;\n  } catch (x) {\n    return '\\nError generating stack: ' + x.message + '\\n' + x.stack;\n  }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\nvar PENDING = 0;\nvar COMPLETED = 1;\nvar FLUSHED = 2;\nvar ABORTED = 3;\nvar ERRORED = 4;\nvar OPEN = 0;\nvar CLOSING = 1;\nvar CLOSED = 2;\n// This is a default heuristic for how to split up the HTML content into progressive\n// loading. Our goal is to be able to display additional new content about every 500ms.\n// Faster than that is unnecessary and should be throttled on the client. It also\n// adds unnecessary overhead to do more splits. We don't know if it's a higher or lower\n// end device but higher end suffer less from the overhead than lower end does from\n// not getting small enough pieces. We error on the side of low end.\n// We base this on low end 3G speeds which is about 500kbits per second. We assume\n// that there can be a reasonable drop off from max bandwidth which leaves you with\n// as little as 80%. We can receive half of that each 500ms - at best. In practice,\n// a little bandwidth is lost to processing and contention - e.g. CSS and images that\n// are downloaded along with the main content. So we estimate about half of that to be\n// the lower end throughput. In other words, we expect that you can at least show\n// about 12.5kb of content per 500ms. Not counting starting latency for the first\n// paint.\n// 500 * 1024 / 8 * .8 * 0.5 / 2\nvar DEFAULT_PROGRESSIVE_CHUNK_SIZE = 12800;\n\nfunction defaultErrorHandler(error) {\n  console['error'](error); // Don't transform to our wrapper\n\n  return null;\n}\n\nfunction noop$1() {}\n\nfunction createRequest(children, responseState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError) {\n  var pingedTasks = [];\n  var abortSet = new Set();\n  var request = {\n    destination: null,\n    responseState: responseState,\n    progressiveChunkSize: progressiveChunkSize === undefined ? DEFAULT_PROGRESSIVE_CHUNK_SIZE : progressiveChunkSize,\n    status: OPEN,\n    fatalError: null,\n    nextSegmentId: 0,\n    allPendingTasks: 0,\n    pendingRootTasks: 0,\n    completedRootSegment: null,\n    abortableTasks: abortSet,\n    pingedTasks: pingedTasks,\n    clientRenderedBoundaries: [],\n    completedBoundaries: [],\n    partialBoundaries: [],\n    onError: onError === undefined ? defaultErrorHandler : onError,\n    onAllReady: onAllReady === undefined ? noop$1 : onAllReady,\n    onShellReady: onShellReady === undefined ? noop$1 : onShellReady,\n    onShellError: onShellError === undefined ? noop$1 : onShellError,\n    onFatalError: onFatalError === undefined ? noop$1 : onFatalError\n  }; // This segment represents the root fallback.\n\n  var rootSegment = createPendingSegment(request, 0, null, rootFormatContext, // Root segments are never embedded in Text on either edge\n  false, false); // There is no parent so conceptually, we're unblocked to flush this segment.\n\n  rootSegment.parentFlushed = true;\n  var rootTask = createTask(request, children, null, rootSegment, abortSet, emptyContextObject, rootContextSnapshot, emptyTreeContext);\n  pingedTasks.push(rootTask);\n  return request;\n}\n\nfunction pingTask(request, task) {\n  var pingedTasks = request.pingedTasks;\n  pingedTasks.push(task);\n\n  if (pingedTasks.length === 1) {\n    scheduleWork(function () {\n      return performWork(request);\n    });\n  }\n}\n\nfunction createSuspenseBoundary(request, fallbackAbortableTasks) {\n  return {\n    id: UNINITIALIZED_SUSPENSE_BOUNDARY_ID,\n    rootSegmentID: -1,\n    parentFlushed: false,\n    pendingTasks: 0,\n    forceClientRender: false,\n    completedSegments: [],\n    byteSize: 0,\n    fallbackAbortableTasks: fallbackAbortableTasks,\n    errorDigest: null\n  };\n}\n\nfunction createTask(request, node, blockedBoundary, blockedSegment, abortSet, legacyContext, context, treeContext) {\n  request.allPendingTasks++;\n\n  if (blockedBoundary === null) {\n    request.pendingRootTasks++;\n  } else {\n    blockedBoundary.pendingTasks++;\n  }\n\n  var task = {\n    node: node,\n    ping: function () {\n      return pingTask(request, task);\n    },\n    blockedBoundary: blockedBoundary,\n    blockedSegment: blockedSegment,\n    abortSet: abortSet,\n    legacyContext: legacyContext,\n    context: context,\n    treeContext: treeContext\n  };\n\n  {\n    task.componentStack = null;\n  }\n\n  abortSet.add(task);\n  return task;\n}\n\nfunction createPendingSegment(request, index, boundary, formatContext, lastPushedText, textEmbedded) {\n  return {\n    status: PENDING,\n    id: -1,\n    // lazily assigned later\n    index: index,\n    parentFlushed: false,\n    chunks: [],\n    children: [],\n    formatContext: formatContext,\n    boundary: boundary,\n    lastPushedText: lastPushedText,\n    textEmbedded: textEmbedded\n  };\n} // DEV-only global reference to the currently executing task\n\n\nvar currentTaskInDEV = null;\n\nfunction getCurrentStackInDEV() {\n  {\n    if (currentTaskInDEV === null || currentTaskInDEV.componentStack === null) {\n      return '';\n    }\n\n    return getStackByComponentStackNode(currentTaskInDEV.componentStack);\n  }\n}\n\nfunction pushBuiltInComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 0,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction pushFunctionComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 1,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction pushClassComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 2,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction popComponentStackInDEV(task) {\n  {\n    if (task.componentStack === null) {\n      error('Unexpectedly popped too many stack frames. This is a bug in React.');\n    } else {\n      task.componentStack = task.componentStack.parent;\n    }\n  }\n} // stash the component stack of an unwinding error until it is processed\n\n\nvar lastBoundaryErrorComponentStackDev = null;\n\nfunction captureBoundaryErrorDetailsDev(boundary, error) {\n  {\n    var errorMessage;\n\n    if (typeof error === 'string') {\n      errorMessage = error;\n    } else if (error && typeof error.message === 'string') {\n      errorMessage = error.message;\n    } else {\n      // eslint-disable-next-line react-internal/safe-string-coercion\n      errorMessage = String(error);\n    }\n\n    var errorComponentStack = lastBoundaryErrorComponentStackDev || getCurrentStackInDEV();\n    lastBoundaryErrorComponentStackDev = null;\n    boundary.errorMessage = errorMessage;\n    boundary.errorComponentStack = errorComponentStack;\n  }\n}\n\nfunction logRecoverableError(request, error) {\n  // If this callback errors, we intentionally let that error bubble up to become a fatal error\n  // so that someone fixes the error reporting instead of hiding it.\n  var errorDigest = request.onError(error);\n\n  if (errorDigest != null && typeof errorDigest !== 'string') {\n    // eslint-disable-next-line react-internal/prod-error-codes\n    throw new Error(\"onError returned something with a type other than \\\"string\\\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \\\"\" + typeof errorDigest + \"\\\" instead\");\n  }\n\n  return errorDigest;\n}\n\nfunction fatalError(request, error) {\n  // This is called outside error handling code such as if the root errors outside\n  // a suspense boundary or if the root suspense boundary's fallback errors.\n  // It's also called if React itself or its host configs errors.\n  var onShellError = request.onShellError;\n  onShellError(error);\n  var onFatalError = request.onFatalError;\n  onFatalError(error);\n\n  if (request.destination !== null) {\n    request.status = CLOSED;\n    closeWithError(request.destination, error);\n  } else {\n    request.status = CLOSING;\n    request.fatalError = error;\n  }\n}\n\nfunction renderSuspenseBoundary(request, task, props) {\n  pushBuiltInComponentStackInDEV(task, 'Suspense');\n  var parentBoundary = task.blockedBoundary;\n  var parentSegment = task.blockedSegment; // Each time we enter a suspense boundary, we split out into a new segment for\n  // the fallback so that we can later replace that segment with the content.\n  // This also lets us split out the main content even if it doesn't suspend,\n  // in case it ends up generating a large subtree of content.\n\n  var fallback = props.fallback;\n  var content = props.children;\n  var fallbackAbortSet = new Set();\n  var newBoundary = createSuspenseBoundary(request, fallbackAbortSet);\n  var insertionIndex = parentSegment.chunks.length; // The children of the boundary segment is actually the fallback.\n\n  var boundarySegment = createPendingSegment(request, insertionIndex, newBoundary, parentSegment.formatContext, // boundaries never require text embedding at their edges because comment nodes bound them\n  false, false);\n  parentSegment.children.push(boundarySegment); // The parentSegment has a child Segment at this index so we reset the lastPushedText marker on the parent\n\n  parentSegment.lastPushedText = false; // This segment is the actual child content. We can start rendering that immediately.\n\n  var contentRootSegment = createPendingSegment(request, 0, null, parentSegment.formatContext, // boundaries never require text embedding at their edges because comment nodes bound them\n  false, false); // We mark the root segment as having its parent flushed. It's not really flushed but there is\n  // no parent segment so there's nothing to wait on.\n\n  contentRootSegment.parentFlushed = true; // Currently this is running synchronously. We could instead schedule this to pingedTasks.\n  // I suspect that there might be some efficiency benefits from not creating the suspended task\n  // and instead just using the stack if possible.\n  // TODO: Call this directly instead of messing with saving and restoring contexts.\n  // We can reuse the current context and task to render the content immediately without\n  // context switching. We just need to temporarily switch which boundary and which segment\n  // we're writing to. If something suspends, it'll spawn new suspended task with that context.\n\n  task.blockedBoundary = newBoundary;\n  task.blockedSegment = contentRootSegment;\n\n  try {\n    // We use the safe form because we don't handle suspending here. Only error handling.\n    renderNode(request, task, content);\n    pushSegmentFinale$1(contentRootSegment.chunks, request.responseState, contentRootSegment.lastPushedText, contentRootSegment.textEmbedded);\n    contentRootSegment.status = COMPLETED;\n    queueCompletedSegment(newBoundary, contentRootSegment);\n\n    if (newBoundary.pendingTasks === 0) {\n      // This must have been the last segment we were waiting on. This boundary is now complete.\n      // Therefore we won't need the fallback. We early return so that we don't have to create\n      // the fallback.\n      popComponentStackInDEV(task);\n      return;\n    }\n  } catch (error) {\n    contentRootSegment.status = ERRORED;\n    newBoundary.forceClientRender = true;\n    newBoundary.errorDigest = logRecoverableError(request, error);\n\n    {\n      captureBoundaryErrorDetailsDev(newBoundary, error);\n    } // We don't need to decrement any task numbers because we didn't spawn any new task.\n    // We don't need to schedule any task because we know the parent has written yet.\n    // We do need to fallthrough to create the fallback though.\n\n  } finally {\n    task.blockedBoundary = parentBoundary;\n    task.blockedSegment = parentSegment;\n  } // We create suspended task for the fallback because we don't want to actually work\n  // on it yet in case we finish the main content, so we queue for later.\n\n\n  var suspendedFallbackTask = createTask(request, fallback, parentBoundary, boundarySegment, fallbackAbortSet, task.legacyContext, task.context, task.treeContext);\n\n  {\n    suspendedFallbackTask.componentStack = task.componentStack;\n  } // TODO: This should be queued at a separate lower priority queue so that we only work\n  // on preparing fallbacks if we don't have any more main content to task on.\n\n\n  request.pingedTasks.push(suspendedFallbackTask);\n  popComponentStackInDEV(task);\n}\n\nfunction renderHostElement(request, task, type, props) {\n  pushBuiltInComponentStackInDEV(task, type);\n  var segment = task.blockedSegment;\n  var children = pushStartInstance(segment.chunks, type, props, request.responseState, segment.formatContext);\n  segment.lastPushedText = false;\n  var prevContext = segment.formatContext;\n  segment.formatContext = getChildFormatContext(prevContext, type, props); // We use the non-destructive form because if something suspends, we still\n  // need to pop back up and finish this subtree of HTML.\n\n  renderNode(request, task, children); // We expect that errors will fatal the whole task and that we don't need\n  // the correct context. Therefore this is not in a finally.\n\n  segment.formatContext = prevContext;\n  pushEndInstance(segment.chunks, type);\n  segment.lastPushedText = false;\n  popComponentStackInDEV(task);\n}\n\nfunction shouldConstruct$1(Component) {\n  return Component.prototype && Component.prototype.isReactComponent;\n}\n\nfunction renderWithHooks(request, task, Component, props, secondArg) {\n  var componentIdentity = {};\n  prepareToUseHooks(task, componentIdentity);\n  var result = Component(props, secondArg);\n  return finishHooks(Component, props, result, secondArg);\n}\n\nfunction finishClassComponent(request, task, instance, Component, props) {\n  var nextChildren = instance.render();\n\n  {\n    if (instance.props !== props) {\n      if (!didWarnAboutReassigningProps) {\n        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromType(Component) || 'a component');\n      }\n\n      didWarnAboutReassigningProps = true;\n    }\n  }\n\n  {\n    var childContextTypes = Component.childContextTypes;\n\n    if (childContextTypes !== null && childContextTypes !== undefined) {\n      var previousContext = task.legacyContext;\n      var mergedContext = processChildContext(instance, Component, previousContext, childContextTypes);\n      task.legacyContext = mergedContext;\n      renderNodeDestructive(request, task, nextChildren);\n      task.legacyContext = previousContext;\n      return;\n    }\n  }\n\n  renderNodeDestructive(request, task, nextChildren);\n}\n\nfunction renderClassComponent(request, task, Component, props) {\n  pushClassComponentStackInDEV(task, Component);\n  var maskedContext =  getMaskedContext(Component, task.legacyContext) ;\n  var instance = constructClassInstance(Component, props, maskedContext);\n  mountClassInstance(instance, Component, props, maskedContext);\n  finishClassComponent(request, task, instance, Component, props);\n  popComponentStackInDEV(task);\n}\n\nvar didWarnAboutBadClass = {};\nvar didWarnAboutModulePatternComponent = {};\nvar didWarnAboutContextTypeOnFunctionComponent = {};\nvar didWarnAboutGetDerivedStateOnFunctionComponent = {};\nvar didWarnAboutReassigningProps = false;\nvar didWarnAboutDefaultPropsOnFunctionComponent = {};\nvar didWarnAboutGenerators = false;\nvar didWarnAboutMaps = false;\nvar hasWarnedAboutUsingContextAsConsumer = false; // This would typically be a function component but we still support module pattern\n// components for some reason.\n\nfunction renderIndeterminateComponent(request, task, Component, props) {\n  var legacyContext;\n\n  {\n    legacyContext = getMaskedContext(Component, task.legacyContext);\n  }\n\n  pushFunctionComponentStackInDEV(task, Component);\n\n  {\n    if (Component.prototype && typeof Component.prototype.render === 'function') {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutBadClass[componentName]) {\n        error(\"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.', componentName, componentName);\n\n        didWarnAboutBadClass[componentName] = true;\n      }\n    }\n  }\n\n  var value = renderWithHooks(request, task, Component, props, legacyContext);\n  var hasId = checkDidRenderIdHook();\n\n  {\n    // Support for module components is deprecated and is removed behind a flag.\n    // Whether or not it would crash later, we want to show a good message in DEV first.\n    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n      var _componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName]) {\n        error('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.', _componentName, _componentName, _componentName);\n\n        didWarnAboutModulePatternComponent[_componentName] = true;\n      }\n    }\n  }\n\n  if ( // Run these checks in production only if the flag is off.\n  // Eventually we'll delete this branch altogether.\n   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n    {\n      var _componentName2 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName2]) {\n        error('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.', _componentName2, _componentName2, _componentName2);\n\n        didWarnAboutModulePatternComponent[_componentName2] = true;\n      }\n    }\n\n    mountClassInstance(value, Component, props, legacyContext);\n    finishClassComponent(request, task, value, Component, props);\n  } else {\n\n    {\n      validateFunctionComponentInDev(Component);\n    } // We're now successfully past this task, and we don't have to pop back to\n    // the previous task every again, so we can use the destructive recursive form.\n\n\n    if (hasId) {\n      // This component materialized an id. We treat this as its own level, with\n      // a single \"child\" slot.\n      var prevTreeContext = task.treeContext;\n      var totalChildren = 1;\n      var index = 0;\n      task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);\n\n      try {\n        renderNodeDestructive(request, task, value);\n      } finally {\n        task.treeContext = prevTreeContext;\n      }\n    } else {\n      renderNodeDestructive(request, task, value);\n    }\n  }\n\n  popComponentStackInDEV(task);\n}\n\nfunction validateFunctionComponentInDev(Component) {\n  {\n    if (Component) {\n      if (Component.childContextTypes) {\n        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');\n      }\n    }\n\n    if ( Component.defaultProps !== undefined) {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n        error('%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n        didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n      }\n    }\n\n    if (typeof Component.getDerivedStateFromProps === 'function') {\n      var _componentName3 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {\n        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);\n\n        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;\n      }\n    }\n\n    if (typeof Component.contextType === 'object' && Component.contextType !== null) {\n      var _componentName4 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {\n        error('%s: Function components do not support contextType.', _componentName4);\n\n        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;\n      }\n    }\n  }\n}\n\nfunction resolveDefaultProps(Component, baseProps) {\n  if (Component && Component.defaultProps) {\n    // Resolve default props. Taken from ReactElement\n    var props = assign({}, baseProps);\n    var defaultProps = Component.defaultProps;\n\n    for (var propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n\n    return props;\n  }\n\n  return baseProps;\n}\n\nfunction renderForwardRef(request, task, type, props, ref) {\n  pushFunctionComponentStackInDEV(task, type.render);\n  var children = renderWithHooks(request, task, type.render, props, ref);\n  var hasId = checkDidRenderIdHook();\n\n  if (hasId) {\n    // This component materialized an id. We treat this as its own level, with\n    // a single \"child\" slot.\n    var prevTreeContext = task.treeContext;\n    var totalChildren = 1;\n    var index = 0;\n    task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);\n\n    try {\n      renderNodeDestructive(request, task, children);\n    } finally {\n      task.treeContext = prevTreeContext;\n    }\n  } else {\n    renderNodeDestructive(request, task, children);\n  }\n\n  popComponentStackInDEV(task);\n}\n\nfunction renderMemo(request, task, type, props, ref) {\n  var innerType = type.type;\n  var resolvedProps = resolveDefaultProps(innerType, props);\n  renderElement(request, task, innerType, resolvedProps, ref);\n}\n\nfunction renderContextConsumer(request, task, context, props) {\n  // The logic below for Context differs depending on PROD or DEV mode. In\n  // DEV mode, we create a separate object for Context.Consumer that acts\n  // like a proxy to Context. This proxy object adds unnecessary code in PROD\n  // so we use the old behaviour (Context.Consumer references Context) to\n  // reduce size and overhead. The separate object references context via\n  // a property called \"_context\", which also gives us the ability to check\n  // in DEV mode if this property exists or not and warn if it does not.\n  {\n    if (context._context === undefined) {\n      // This may be because it's a Context (rather than a Consumer).\n      // Or it may be because it's older React where they're the same thing.\n      // We only want to warn if we're sure it's a new React.\n      if (context !== context.Consumer) {\n        if (!hasWarnedAboutUsingContextAsConsumer) {\n          hasWarnedAboutUsingContextAsConsumer = true;\n\n          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n        }\n      }\n    } else {\n      context = context._context;\n    }\n  }\n\n  var render = props.children;\n\n  {\n    if (typeof render !== 'function') {\n      error('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.');\n    }\n  }\n\n  var newValue = readContext(context);\n  var newChildren = render(newValue);\n  renderNodeDestructive(request, task, newChildren);\n}\n\nfunction renderContextProvider(request, task, type, props) {\n  var context = type._context;\n  var value = props.value;\n  var children = props.children;\n  var prevSnapshot;\n\n  {\n    prevSnapshot = task.context;\n  }\n\n  task.context = pushProvider(context, value);\n  renderNodeDestructive(request, task, children);\n  task.context = popProvider(context);\n\n  {\n    if (prevSnapshot !== task.context) {\n      error('Popping the context provider did not return back to the original snapshot. This is a bug in React.');\n    }\n  }\n}\n\nfunction renderLazyComponent(request, task, lazyComponent, props, ref) {\n  pushBuiltInComponentStackInDEV(task, 'Lazy');\n  var payload = lazyComponent._payload;\n  var init = lazyComponent._init;\n  var Component = init(payload);\n  var resolvedProps = resolveDefaultProps(Component, props);\n  renderElement(request, task, Component, resolvedProps, ref);\n  popComponentStackInDEV(task);\n}\n\nfunction renderElement(request, task, type, props, ref) {\n  if (typeof type === 'function') {\n    if (shouldConstruct$1(type)) {\n      renderClassComponent(request, task, type, props);\n      return;\n    } else {\n      renderIndeterminateComponent(request, task, type, props);\n      return;\n    }\n  }\n\n  if (typeof type === 'string') {\n    renderHostElement(request, task, type, props);\n    return;\n  }\n\n  switch (type) {\n    // TODO: LegacyHidden acts the same as a fragment. This only works\n    // because we currently assume that every instance of LegacyHidden is\n    // accompanied by a host component wrapper. In the hidden mode, the host\n    // component is given a `hidden` attribute, which ensures that the\n    // initial HTML is not visible. To support the use of LegacyHidden as a\n    // true fragment, without an extra DOM node, we would have to hide the\n    // initial HTML in some other way.\n    // TODO: Add REACT_OFFSCREEN_TYPE here too with the same capability.\n    case REACT_LEGACY_HIDDEN_TYPE:\n    case REACT_DEBUG_TRACING_MODE_TYPE:\n    case REACT_STRICT_MODE_TYPE:\n    case REACT_PROFILER_TYPE:\n    case REACT_FRAGMENT_TYPE:\n      {\n        renderNodeDestructive(request, task, props.children);\n        return;\n      }\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      {\n        pushBuiltInComponentStackInDEV(task, 'SuspenseList'); // TODO: SuspenseList should control the boundaries.\n\n        renderNodeDestructive(request, task, props.children);\n        popComponentStackInDEV(task);\n        return;\n      }\n\n    case REACT_SCOPE_TYPE:\n      {\n\n        throw new Error('ReactDOMServer does not yet support scope components.');\n      }\n    // eslint-disable-next-line-no-fallthrough\n\n    case REACT_SUSPENSE_TYPE:\n      {\n        {\n          renderSuspenseBoundary(request, task, props);\n        }\n\n        return;\n      }\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        {\n          renderForwardRef(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_MEMO_TYPE:\n        {\n          renderMemo(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_PROVIDER_TYPE:\n        {\n          renderContextProvider(request, task, type, props);\n          return;\n        }\n\n      case REACT_CONTEXT_TYPE:\n        {\n          renderContextConsumer(request, task, type, props);\n          return;\n        }\n\n      case REACT_LAZY_TYPE:\n        {\n          renderLazyComponent(request, task, type, props);\n          return;\n        }\n    }\n  }\n\n  var info = '';\n\n  {\n    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n      info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n    }\n  }\n\n  throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + (\"but got: \" + (type == null ? type : typeof type) + \".\" + info));\n}\n\nfunction validateIterable(iterable, iteratorFn) {\n  {\n    // We don't support rendering Generators because it's a mutation.\n    // See https://github.com/facebook/react/issues/12995\n    if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag\n    iterable[Symbol.toStringTag] === 'Generator') {\n      if (!didWarnAboutGenerators) {\n        error('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.');\n      }\n\n      didWarnAboutGenerators = true;\n    } // Warn about using Maps as children\n\n\n    if (iterable.entries === iteratorFn) {\n      if (!didWarnAboutMaps) {\n        error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n      }\n\n      didWarnAboutMaps = true;\n    }\n  }\n}\n\nfunction renderNodeDestructive(request, task, node) {\n  {\n    // In Dev we wrap renderNodeDestructiveImpl in a try / catch so we can capture\n    // a component stack at the right place in the tree. We don't do this in renderNode\n    // becuase it is not called at every layer of the tree and we may lose frames\n    try {\n      return renderNodeDestructiveImpl(request, task, node);\n    } catch (x) {\n      if (typeof x === 'object' && x !== null && typeof x.then === 'function') ; else {\n        // This is an error, stash the component stack if it is null.\n        lastBoundaryErrorComponentStackDev = lastBoundaryErrorComponentStackDev !== null ? lastBoundaryErrorComponentStackDev : getCurrentStackInDEV();\n      } // rethrow so normal suspense logic can handle thrown value accordingly\n\n\n      throw x;\n    }\n  }\n} // This function by it self renders a node and consumes the task by mutating it\n// to update the current execution state.\n\n\nfunction renderNodeDestructiveImpl(request, task, node) {\n  // Stash the node we're working on. We'll pick up from this task in case\n  // something suspends.\n  task.node = node; // Handle object types\n\n  if (typeof node === 'object' && node !== null) {\n    switch (node.$$typeof) {\n      case REACT_ELEMENT_TYPE:\n        {\n          var element = node;\n          var type = element.type;\n          var props = element.props;\n          var ref = element.ref;\n          renderElement(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_PORTAL_TYPE:\n        throw new Error('Portals are not currently supported by the server renderer. ' + 'Render them conditionally so that they only appear on the client render.');\n      // eslint-disable-next-line-no-fallthrough\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyNode = node;\n          var payload = lazyNode._payload;\n          var init = lazyNode._init;\n          var resolvedNode;\n\n          {\n            try {\n              resolvedNode = init(payload);\n            } catch (x) {\n              if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n                // this Lazy initializer is suspending. push a temporary frame onto the stack so it can be\n                // popped off in spawnNewSuspendedTask. This aligns stack behavior between Lazy in element position\n                // vs Component position. We do not want the frame for Errors so we exclusively do this in\n                // the wakeable branch\n                pushBuiltInComponentStackInDEV(task, 'Lazy');\n              }\n\n              throw x;\n            }\n          }\n\n          renderNodeDestructive(request, task, resolvedNode);\n          return;\n        }\n    }\n\n    if (isArray(node)) {\n      renderChildrenArray(request, task, node);\n      return;\n    }\n\n    var iteratorFn = getIteratorFn(node);\n\n    if (iteratorFn) {\n      {\n        validateIterable(node, iteratorFn);\n      }\n\n      var iterator = iteratorFn.call(node);\n\n      if (iterator) {\n        // We need to know how many total children are in this set, so that we\n        // can allocate enough id slots to acommodate them. So we must exhaust\n        // the iterator before we start recursively rendering the children.\n        // TODO: This is not great but I think it's inherent to the id\n        // generation algorithm.\n        var step = iterator.next(); // If there are not entries, we need to push an empty so we start by checking that.\n\n        if (!step.done) {\n          var children = [];\n\n          do {\n            children.push(step.value);\n            step = iterator.next();\n          } while (!step.done);\n\n          renderChildrenArray(request, task, children);\n          return;\n        }\n\n        return;\n      }\n    }\n\n    var childString = Object.prototype.toString.call(node);\n    throw new Error(\"Objects are not valid as a React child (found: \" + (childString === '[object Object]' ? 'object with keys {' + Object.keys(node).join(', ') + '}' : childString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n  }\n\n  if (typeof node === 'string') {\n    var segment = task.blockedSegment;\n    segment.lastPushedText = pushTextInstance$1(task.blockedSegment.chunks, node, request.responseState, segment.lastPushedText);\n    return;\n  }\n\n  if (typeof node === 'number') {\n    var _segment = task.blockedSegment;\n    _segment.lastPushedText = pushTextInstance$1(task.blockedSegment.chunks, '' + node, request.responseState, _segment.lastPushedText);\n    return;\n  }\n\n  {\n    if (typeof node === 'function') {\n      error('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.');\n    }\n  }\n}\n\nfunction renderChildrenArray(request, task, children) {\n  var totalChildren = children.length;\n\n  for (var i = 0; i < totalChildren; i++) {\n    var prevTreeContext = task.treeContext;\n    task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);\n\n    try {\n      // We need to use the non-destructive form so that we can safely pop back\n      // up and render the sibling if something suspends.\n      renderNode(request, task, children[i]);\n    } finally {\n      task.treeContext = prevTreeContext;\n    }\n  }\n}\n\nfunction spawnNewSuspendedTask(request, task, x) {\n  // Something suspended, we'll need to create a new segment and resolve it later.\n  var segment = task.blockedSegment;\n  var insertionIndex = segment.chunks.length;\n  var newSegment = createPendingSegment(request, insertionIndex, null, segment.formatContext, // Adopt the parent segment's leading text embed\n  segment.lastPushedText, // Assume we are text embedded at the trailing edge\n  true);\n  segment.children.push(newSegment); // Reset lastPushedText for current Segment since the new Segment \"consumed\" it\n\n  segment.lastPushedText = false;\n  var newTask = createTask(request, task.node, task.blockedBoundary, newSegment, task.abortSet, task.legacyContext, task.context, task.treeContext);\n\n  {\n    if (task.componentStack !== null) {\n      // We pop one task off the stack because the node that suspended will be tried again,\n      // which will add it back onto the stack.\n      newTask.componentStack = task.componentStack.parent;\n    }\n  }\n\n  var ping = newTask.ping;\n  x.then(ping, ping);\n} // This is a non-destructive form of rendering a node. If it suspends it spawns\n// a new task and restores the context of this task to what it was before.\n\n\nfunction renderNode(request, task, node) {\n  // TODO: Store segment.children.length here and reset it in case something\n  // suspended partially through writing something.\n  // Snapshot the current context in case something throws to interrupt the\n  // process.\n  var previousFormatContext = task.blockedSegment.formatContext;\n  var previousLegacyContext = task.legacyContext;\n  var previousContext = task.context;\n  var previousComponentStack = null;\n\n  {\n    previousComponentStack = task.componentStack;\n  }\n\n  try {\n    return renderNodeDestructive(request, task, node);\n  } catch (x) {\n    resetHooksState();\n\n    if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n      spawnNewSuspendedTask(request, task, x); // Restore the context. We assume that this will be restored by the inner\n      // functions in case nothing throws so we don't use \"finally\" here.\n\n      task.blockedSegment.formatContext = previousFormatContext;\n      task.legacyContext = previousLegacyContext;\n      task.context = previousContext; // Restore all active ReactContexts to what they were before.\n\n      switchContext(previousContext);\n\n      {\n        task.componentStack = previousComponentStack;\n      }\n\n      return;\n    } else {\n      // Restore the context. We assume that this will be restored by the inner\n      // functions in case nothing throws so we don't use \"finally\" here.\n      task.blockedSegment.formatContext = previousFormatContext;\n      task.legacyContext = previousLegacyContext;\n      task.context = previousContext; // Restore all active ReactContexts to what they were before.\n\n      switchContext(previousContext);\n\n      {\n        task.componentStack = previousComponentStack;\n      } // We assume that we don't need the correct context.\n      // Let's terminate the rest of the tree and don't render any siblings.\n\n\n      throw x;\n    }\n  }\n}\n\nfunction erroredTask(request, boundary, segment, error) {\n  // Report the error to a global handler.\n  var errorDigest = logRecoverableError(request, error);\n\n  if (boundary === null) {\n    fatalError(request, error);\n  } else {\n    boundary.pendingTasks--;\n\n    if (!boundary.forceClientRender) {\n      boundary.forceClientRender = true;\n      boundary.errorDigest = errorDigest;\n\n      {\n        captureBoundaryErrorDetailsDev(boundary, error);\n      } // Regardless of what happens next, this boundary won't be displayed,\n      // so we can flush it, if the parent already flushed.\n\n\n      if (boundary.parentFlushed) {\n        // We don't have a preference where in the queue this goes since it's likely\n        // to error on the client anyway. However, intentionally client-rendered\n        // boundaries should be flushed earlier so that they can start on the client.\n        // We reuse the same queue for errors.\n        request.clientRenderedBoundaries.push(boundary);\n      }\n    }\n  }\n\n  request.allPendingTasks--;\n\n  if (request.allPendingTasks === 0) {\n    var onAllReady = request.onAllReady;\n    onAllReady();\n  }\n}\n\nfunction abortTaskSoft(task) {\n  // This aborts task without aborting the parent boundary that it blocks.\n  // It's used for when we didn't need this task to complete the tree.\n  // If task was needed, then it should use abortTask instead.\n  var request = this;\n  var boundary = task.blockedBoundary;\n  var segment = task.blockedSegment;\n  segment.status = ABORTED;\n  finishedTask(request, boundary, segment);\n}\n\nfunction abortTask(task, request, reason) {\n  // This aborts the task and aborts the parent that it blocks, putting it into\n  // client rendered mode.\n  var boundary = task.blockedBoundary;\n  var segment = task.blockedSegment;\n  segment.status = ABORTED;\n\n  if (boundary === null) {\n    request.allPendingTasks--; // We didn't complete the root so we have nothing to show. We can close\n    // the request;\n\n    if (request.status !== CLOSED) {\n      request.status = CLOSED;\n\n      if (request.destination !== null) {\n        close(request.destination);\n      }\n    }\n  } else {\n    boundary.pendingTasks--;\n\n    if (!boundary.forceClientRender) {\n      boundary.forceClientRender = true;\n\n      var _error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason;\n\n      boundary.errorDigest = request.onError(_error);\n\n      {\n        var errorPrefix = 'The server did not finish this Suspense boundary: ';\n\n        if (_error && typeof _error.message === 'string') {\n          _error = errorPrefix + _error.message;\n        } else {\n          // eslint-disable-next-line react-internal/safe-string-coercion\n          _error = errorPrefix + String(_error);\n        }\n\n        var previousTaskInDev = currentTaskInDEV;\n        currentTaskInDEV = task;\n\n        try {\n          captureBoundaryErrorDetailsDev(boundary, _error);\n        } finally {\n          currentTaskInDEV = previousTaskInDev;\n        }\n      }\n\n      if (boundary.parentFlushed) {\n        request.clientRenderedBoundaries.push(boundary);\n      }\n    } // If this boundary was still pending then we haven't already cancelled its fallbacks.\n    // We'll need to abort the fallbacks, which will also error that parent boundary.\n\n\n    boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {\n      return abortTask(fallbackTask, request, reason);\n    });\n    boundary.fallbackAbortableTasks.clear();\n    request.allPendingTasks--;\n\n    if (request.allPendingTasks === 0) {\n      var onAllReady = request.onAllReady;\n      onAllReady();\n    }\n  }\n}\n\nfunction queueCompletedSegment(boundary, segment) {\n  if (segment.chunks.length === 0 && segment.children.length === 1 && segment.children[0].boundary === null) {\n    // This is an empty segment. There's nothing to write, so we can instead transfer the ID\n    // to the child. That way any existing references point to the child.\n    var childSegment = segment.children[0];\n    childSegment.id = segment.id;\n    childSegment.parentFlushed = true;\n\n    if (childSegment.status === COMPLETED) {\n      queueCompletedSegment(boundary, childSegment);\n    }\n  } else {\n    var completedSegments = boundary.completedSegments;\n    completedSegments.push(segment);\n  }\n}\n\nfunction finishedTask(request, boundary, segment) {\n  if (boundary === null) {\n    if (segment.parentFlushed) {\n      if (request.completedRootSegment !== null) {\n        throw new Error('There can only be one root segment. This is a bug in React.');\n      }\n\n      request.completedRootSegment = segment;\n    }\n\n    request.pendingRootTasks--;\n\n    if (request.pendingRootTasks === 0) {\n      // We have completed the shell so the shell can't error anymore.\n      request.onShellError = noop$1;\n      var onShellReady = request.onShellReady;\n      onShellReady();\n    }\n  } else {\n    boundary.pendingTasks--;\n\n    if (boundary.forceClientRender) ; else if (boundary.pendingTasks === 0) {\n      // This must have been the last segment we were waiting on. This boundary is now complete.\n      if (segment.parentFlushed) {\n        // Our parent segment already flushed, so we need to schedule this segment to be emitted.\n        // If it is a segment that was aborted, we'll write other content instead so we don't need\n        // to emit it.\n        if (segment.status === COMPLETED) {\n          queueCompletedSegment(boundary, segment);\n        }\n      }\n\n      if (boundary.parentFlushed) {\n        // The segment might be part of a segment that didn't flush yet, but if the boundary's\n        // parent flushed, we need to schedule the boundary to be emitted.\n        request.completedBoundaries.push(boundary);\n      } // We can now cancel any pending task on the fallback since we won't need to show it anymore.\n      // This needs to happen after we read the parentFlushed flags because aborting can finish\n      // work which can trigger user code, which can start flushing, which can change those flags.\n\n\n      boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request);\n      boundary.fallbackAbortableTasks.clear();\n    } else {\n      if (segment.parentFlushed) {\n        // Our parent already flushed, so we need to schedule this segment to be emitted.\n        // If it is a segment that was aborted, we'll write other content instead so we don't need\n        // to emit it.\n        if (segment.status === COMPLETED) {\n          queueCompletedSegment(boundary, segment);\n          var completedSegments = boundary.completedSegments;\n\n          if (completedSegments.length === 1) {\n            // This is the first time since we last flushed that we completed anything.\n            // We can schedule this boundary to emit its partially completed segments early\n            // in case the parent has already been flushed.\n            if (boundary.parentFlushed) {\n              request.partialBoundaries.push(boundary);\n            }\n          }\n        }\n      }\n    }\n  }\n\n  request.allPendingTasks--;\n\n  if (request.allPendingTasks === 0) {\n    // This needs to be called at the very end so that we can synchronously write the result\n    // in the callback if needed.\n    var onAllReady = request.onAllReady;\n    onAllReady();\n  }\n}\n\nfunction retryTask(request, task) {\n  var segment = task.blockedSegment;\n\n  if (segment.status !== PENDING) {\n    // We completed this by other means before we had a chance to retry it.\n    return;\n  } // We restore the context to what it was when we suspended.\n  // We don't restore it after we leave because it's likely that we'll end up\n  // needing a very similar context soon again.\n\n\n  switchContext(task.context);\n  var prevTaskInDEV = null;\n\n  {\n    prevTaskInDEV = currentTaskInDEV;\n    currentTaskInDEV = task;\n  }\n\n  try {\n    // We call the destructive form that mutates this task. That way if something\n    // suspends again, we can reuse the same task instead of spawning a new one.\n    renderNodeDestructive(request, task, task.node);\n    pushSegmentFinale$1(segment.chunks, request.responseState, segment.lastPushedText, segment.textEmbedded);\n    task.abortSet.delete(task);\n    segment.status = COMPLETED;\n    finishedTask(request, task.blockedBoundary, segment);\n  } catch (x) {\n    resetHooksState();\n\n    if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n      // Something suspended again, let's pick it back up later.\n      var ping = task.ping;\n      x.then(ping, ping);\n    } else {\n      task.abortSet.delete(task);\n      segment.status = ERRORED;\n      erroredTask(request, task.blockedBoundary, segment, x);\n    }\n  } finally {\n    {\n      currentTaskInDEV = prevTaskInDEV;\n    }\n  }\n}\n\nfunction performWork(request) {\n  if (request.status === CLOSED) {\n    return;\n  }\n\n  var prevContext = getActiveContext();\n  var prevDispatcher = ReactCurrentDispatcher$1.current;\n  ReactCurrentDispatcher$1.current = Dispatcher;\n  var prevGetCurrentStackImpl;\n\n  {\n    prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack;\n    ReactDebugCurrentFrame$1.getCurrentStack = getCurrentStackInDEV;\n  }\n\n  var prevResponseState = currentResponseState;\n  setCurrentResponseState(request.responseState);\n\n  try {\n    var pingedTasks = request.pingedTasks;\n    var i;\n\n    for (i = 0; i < pingedTasks.length; i++) {\n      var task = pingedTasks[i];\n      retryTask(request, task);\n    }\n\n    pingedTasks.splice(0, i);\n\n    if (request.destination !== null) {\n      flushCompletedQueues(request, request.destination);\n    }\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  } finally {\n    setCurrentResponseState(prevResponseState);\n    ReactCurrentDispatcher$1.current = prevDispatcher;\n\n    {\n      ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl;\n    }\n\n    if (prevDispatcher === Dispatcher) {\n      // This means that we were in a reentrant work loop. This could happen\n      // in a renderer that supports synchronous work like renderToString,\n      // when it's called from within another renderer.\n      // Normally we don't bother switching the contexts to their root/default\n      // values when leaving because we'll likely need the same or similar\n      // context again. However, when we're inside a synchronous loop like this\n      // we'll to restore the context to what it was before returning.\n      switchContext(prevContext);\n    }\n  }\n}\n\nfunction flushSubtree(request, destination, segment) {\n  segment.parentFlushed = true;\n\n  switch (segment.status) {\n    case PENDING:\n      {\n        // We're emitting a placeholder for this segment to be filled in later.\n        // Therefore we'll need to assign it an ID - to refer to it by.\n        var segmentID = segment.id = request.nextSegmentId++; // When this segment finally completes it won't be embedded in text since it will flush separately\n\n        segment.lastPushedText = false;\n        segment.textEmbedded = false;\n        return writePlaceholder(destination, request.responseState, segmentID);\n      }\n\n    case COMPLETED:\n      {\n        segment.status = FLUSHED;\n        var r = true;\n        var chunks = segment.chunks;\n        var chunkIdx = 0;\n        var children = segment.children;\n\n        for (var childIdx = 0; childIdx < children.length; childIdx++) {\n          var nextChild = children[childIdx]; // Write all the chunks up until the next child.\n\n          for (; chunkIdx < nextChild.index; chunkIdx++) {\n            writeChunk(destination, chunks[chunkIdx]);\n          }\n\n          r = flushSegment(request, destination, nextChild);\n        } // Finally just write all the remaining chunks\n\n\n        for (; chunkIdx < chunks.length - 1; chunkIdx++) {\n          writeChunk(destination, chunks[chunkIdx]);\n        }\n\n        if (chunkIdx < chunks.length) {\n          r = writeChunkAndReturn(destination, chunks[chunkIdx]);\n        }\n\n        return r;\n      }\n\n    default:\n      {\n        throw new Error('Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.');\n      }\n  }\n}\n\nfunction flushSegment(request, destination, segment) {\n  var boundary = segment.boundary;\n\n  if (boundary === null) {\n    // Not a suspense boundary.\n    return flushSubtree(request, destination, segment);\n  }\n\n  boundary.parentFlushed = true; // This segment is a Suspense boundary. We need to decide whether to\n  // emit the content or the fallback now.\n\n  if (boundary.forceClientRender) {\n    // Emit a client rendered suspense boundary wrapper.\n    // We never queue the inner boundary so we'll never emit its content or partial segments.\n    writeStartClientRenderedSuspenseBoundary$1(destination, request.responseState, boundary.errorDigest, boundary.errorMessage, boundary.errorComponentStack); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndClientRenderedSuspenseBoundary$1(destination, request.responseState);\n  } else if (boundary.pendingTasks > 0) {\n    // This boundary is still loading. Emit a pending suspense boundary wrapper.\n    // Assign an ID to refer to the future content by.\n    boundary.rootSegmentID = request.nextSegmentId++;\n\n    if (boundary.completedSegments.length > 0) {\n      // If this is at least partially complete, we can queue it to be partially emitted early.\n      request.partialBoundaries.push(boundary);\n    } /// This is the first time we should have referenced this ID.\n\n\n    var id = boundary.id = assignSuspenseBoundaryID(request.responseState);\n    writeStartPendingSuspenseBoundary(destination, request.responseState, id); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndPendingSuspenseBoundary(destination, request.responseState);\n  } else if (boundary.byteSize > request.progressiveChunkSize) {\n    // This boundary is large and will be emitted separately so that we can progressively show\n    // other content. We add it to the queue during the flush because we have to ensure that\n    // the parent flushes first so that there's something to inject it into.\n    // We also have to make sure that it's emitted into the queue in a deterministic slot.\n    // I.e. we can't insert it here when it completes.\n    // Assign an ID to refer to the future content by.\n    boundary.rootSegmentID = request.nextSegmentId++;\n    request.completedBoundaries.push(boundary); // Emit a pending rendered suspense boundary wrapper.\n\n    writeStartPendingSuspenseBoundary(destination, request.responseState, boundary.id); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndPendingSuspenseBoundary(destination, request.responseState);\n  } else {\n    // We can inline this boundary's content as a complete boundary.\n    writeStartCompletedSuspenseBoundary$1(destination, request.responseState);\n    var completedSegments = boundary.completedSegments;\n\n    if (completedSegments.length !== 1) {\n      throw new Error('A previously unvisited boundary must have exactly one root segment. This is a bug in React.');\n    }\n\n    var contentSegment = completedSegments[0];\n    flushSegment(request, destination, contentSegment);\n    return writeEndCompletedSuspenseBoundary$1(destination, request.responseState);\n  }\n}\n\nfunction flushClientRenderedBoundary(request, destination, boundary) {\n  return writeClientRenderBoundaryInstruction(destination, request.responseState, boundary.id, boundary.errorDigest, boundary.errorMessage, boundary.errorComponentStack);\n}\n\nfunction flushSegmentContainer(request, destination, segment) {\n  writeStartSegment(destination, request.responseState, segment.formatContext, segment.id);\n  flushSegment(request, destination, segment);\n  return writeEndSegment(destination, segment.formatContext);\n}\n\nfunction flushCompletedBoundary(request, destination, boundary) {\n  var completedSegments = boundary.completedSegments;\n  var i = 0;\n\n  for (; i < completedSegments.length; i++) {\n    var segment = completedSegments[i];\n    flushPartiallyCompletedSegment(request, destination, boundary, segment);\n  }\n\n  completedSegments.length = 0;\n  return writeCompletedBoundaryInstruction(destination, request.responseState, boundary.id, boundary.rootSegmentID);\n}\n\nfunction flushPartialBoundary(request, destination, boundary) {\n  var completedSegments = boundary.completedSegments;\n  var i = 0;\n\n  for (; i < completedSegments.length; i++) {\n    var segment = completedSegments[i];\n\n    if (!flushPartiallyCompletedSegment(request, destination, boundary, segment)) {\n      i++;\n      completedSegments.splice(0, i); // Only write as much as the buffer wants. Something higher priority\n      // might want to write later.\n\n      return false;\n    }\n  }\n\n  completedSegments.splice(0, i);\n  return true;\n}\n\nfunction flushPartiallyCompletedSegment(request, destination, boundary, segment) {\n  if (segment.status === FLUSHED) {\n    // We've already flushed this inline.\n    return true;\n  }\n\n  var segmentID = segment.id;\n\n  if (segmentID === -1) {\n    // This segment wasn't previously referred to. This happens at the root of\n    // a boundary. We make kind of a leap here and assume this is the root.\n    var rootSegmentID = segment.id = boundary.rootSegmentID;\n\n    if (rootSegmentID === -1) {\n      throw new Error('A root segment ID must have been assigned by now. This is a bug in React.');\n    }\n\n    return flushSegmentContainer(request, destination, segment);\n  } else {\n    flushSegmentContainer(request, destination, segment);\n    return writeCompletedSegmentInstruction(destination, request.responseState, segmentID);\n  }\n}\n\nfunction flushCompletedQueues(request, destination) {\n\n  try {\n    // The structure of this is to go through each queue one by one and write\n    // until the sink tells us to stop. When we should stop, we still finish writing\n    // that item fully and then yield. At that point we remove the already completed\n    // items up until the point we completed them.\n    // TODO: Emit preloading.\n    // TODO: It's kind of unfortunate to keep checking this array after we've already\n    // emitted the root.\n    var completedRootSegment = request.completedRootSegment;\n\n    if (completedRootSegment !== null && request.pendingRootTasks === 0) {\n      flushSegment(request, destination, completedRootSegment);\n      request.completedRootSegment = null;\n      writeCompletedRoot(destination, request.responseState);\n    } // We emit client rendering instructions for already emitted boundaries first.\n    // This is so that we can signal to the client to start client rendering them as\n    // soon as possible.\n\n\n    var clientRenderedBoundaries = request.clientRenderedBoundaries;\n    var i;\n\n    for (i = 0; i < clientRenderedBoundaries.length; i++) {\n      var boundary = clientRenderedBoundaries[i];\n\n      if (!flushClientRenderedBoundary(request, destination, boundary)) {\n        request.destination = null;\n        i++;\n        clientRenderedBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    clientRenderedBoundaries.splice(0, i); // Next we emit any complete boundaries. It's better to favor boundaries\n    // that are completely done since we can actually show them, than it is to emit\n    // any individual segments from a partially complete boundary.\n\n    var completedBoundaries = request.completedBoundaries;\n\n    for (i = 0; i < completedBoundaries.length; i++) {\n      var _boundary = completedBoundaries[i];\n\n      if (!flushCompletedBoundary(request, destination, _boundary)) {\n        request.destination = null;\n        i++;\n        completedBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    completedBoundaries.splice(0, i); // Allow anything written so far to flush to the underlying sink before\n    // we continue with lower priorities.\n\n    completeWriting(destination);\n    beginWriting(destination); // TODO: Here we'll emit data used by hydration.\n    // Next we emit any segments of any boundaries that are partially complete\n    // but not deeply complete.\n\n    var partialBoundaries = request.partialBoundaries;\n\n    for (i = 0; i < partialBoundaries.length; i++) {\n      var _boundary2 = partialBoundaries[i];\n\n      if (!flushPartialBoundary(request, destination, _boundary2)) {\n        request.destination = null;\n        i++;\n        partialBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    partialBoundaries.splice(0, i); // Next we check the completed boundaries again. This may have had\n    // boundaries added to it in case they were too larged to be inlined.\n    // New ones might be added in this loop.\n\n    var largeBoundaries = request.completedBoundaries;\n\n    for (i = 0; i < largeBoundaries.length; i++) {\n      var _boundary3 = largeBoundaries[i];\n\n      if (!flushCompletedBoundary(request, destination, _boundary3)) {\n        request.destination = null;\n        i++;\n        largeBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    largeBoundaries.splice(0, i);\n  } finally {\n\n    if (request.allPendingTasks === 0 && request.pingedTasks.length === 0 && request.clientRenderedBoundaries.length === 0 && request.completedBoundaries.length === 0 // We don't need to check any partially completed segments because\n    // either they have pending task or they're complete.\n    ) {\n        {\n          if (request.abortableTasks.size !== 0) {\n            error('There was still abortable task at the root when we closed. This is a bug in React.');\n          }\n        } // We're done.\n\n\n        close(destination);\n      }\n  }\n}\n\nfunction startWork(request) {\n  scheduleWork(function () {\n    return performWork(request);\n  });\n}\nfunction startFlowing(request, destination) {\n  if (request.status === CLOSING) {\n    request.status = CLOSED;\n    closeWithError(destination, request.fatalError);\n    return;\n  }\n\n  if (request.status === CLOSED) {\n    return;\n  }\n\n  if (request.destination !== null) {\n    // We're already flowing.\n    return;\n  }\n\n  request.destination = destination;\n\n  try {\n    flushCompletedQueues(request, destination);\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  }\n} // This is called to early terminate a request. It puts all pending boundaries in client rendered state.\n\nfunction abort(request, reason) {\n  try {\n    var abortableTasks = request.abortableTasks;\n    abortableTasks.forEach(function (task) {\n      return abortTask(task, request, reason);\n    });\n    abortableTasks.clear();\n\n    if (request.destination !== null) {\n      flushCompletedQueues(request, request.destination);\n    }\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  }\n}\n\nfunction onError() {// Non-fatal errors are ignored.\n}\n\nfunction renderToStringImpl(children, options, generateStaticMarkup, abortReason) {\n  var didFatal = false;\n  var fatalError = null;\n  var result = '';\n  var destination = {\n    push: function (chunk) {\n      if (chunk !== null) {\n        result += chunk;\n      }\n\n      return true;\n    },\n    destroy: function (error) {\n      didFatal = true;\n      fatalError = error;\n    }\n  };\n  var readyToStream = false;\n\n  function onShellReady() {\n    readyToStream = true;\n  }\n\n  var request = createRequest(children, createResponseState$1(generateStaticMarkup, options ? options.identifierPrefix : undefined), createRootFormatContext(), Infinity, onError, undefined, onShellReady, undefined, undefined);\n  startWork(request); // If anything suspended and is still pending, we'll abort it before writing.\n  // That way we write only client-rendered boundaries from the start.\n\n  abort(request, abortReason);\n  startFlowing(request, destination);\n\n  if (didFatal) {\n    throw fatalError;\n  }\n\n  if (!readyToStream) {\n    // Note: This error message is the one we use on the client. It doesn't\n    // really make sense here. But this is the legacy server renderer, anyway.\n    // We're going to delete it soon.\n    throw 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.');\n  }\n\n  return result;\n}\n\nfunction renderToString(children, options) {\n  return renderToStringImpl(children, options, false, 'The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server');\n}\n\nfunction renderToStaticMarkup(children, options) {\n  return renderToStringImpl(children, options, true, 'The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server');\n}\n\nfunction renderToNodeStream() {\n  throw new Error('ReactDOMServer.renderToNodeStream(): The streaming API is not available ' + 'in the browser. Use ReactDOMServer.renderToString() instead.');\n}\n\nfunction renderToStaticNodeStream() {\n  throw new Error('ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available ' + 'in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.');\n}\n\nexports.renderToNodeStream = renderToNodeStream;\nexports.renderToStaticMarkup = renderToStaticMarkup;\nexports.renderToStaticNodeStream = renderToStaticNodeStream;\nexports.renderToString = renderToString;\nexports.version = ReactVersion;\n  })();\n}\n","/**\n * @license React\n * react-dom-server.browser.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\nvar React = require('react');\n\nvar ReactVersion = '18.3.1';\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n  {\n    {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      printWarning('warn', format, args);\n    }\n  }\n}\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\nfunction scheduleWork(callback) {\n  callback();\n}\nvar VIEW_SIZE = 512;\nvar currentView = null;\nvar writtenBytes = 0;\nfunction beginWriting(destination) {\n  currentView = new Uint8Array(VIEW_SIZE);\n  writtenBytes = 0;\n}\nfunction writeChunk(destination, chunk) {\n  if (chunk.length === 0) {\n    return;\n  }\n\n  if (chunk.length > VIEW_SIZE) {\n    // this chunk may overflow a single view which implies it was not\n    // one that is cached by the streaming renderer. We will enqueu\n    // it directly and expect it is not re-used\n    if (writtenBytes > 0) {\n      destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes));\n      currentView = new Uint8Array(VIEW_SIZE);\n      writtenBytes = 0;\n    }\n\n    destination.enqueue(chunk);\n    return;\n  }\n\n  var bytesToWrite = chunk;\n  var allowableBytes = currentView.length - writtenBytes;\n\n  if (allowableBytes < bytesToWrite.length) {\n    // this chunk would overflow the current view. We enqueue a full view\n    // and start a new view with the remaining chunk\n    if (allowableBytes === 0) {\n      // the current view is already full, send it\n      destination.enqueue(currentView);\n    } else {\n      // fill up the current view and apply the remaining chunk bytes\n      // to a new view.\n      currentView.set(bytesToWrite.subarray(0, allowableBytes), writtenBytes); // writtenBytes += allowableBytes; // this can be skipped because we are going to immediately reset the view\n\n      destination.enqueue(currentView);\n      bytesToWrite = bytesToWrite.subarray(allowableBytes);\n    }\n\n    currentView = new Uint8Array(VIEW_SIZE);\n    writtenBytes = 0;\n  }\n\n  currentView.set(bytesToWrite, writtenBytes);\n  writtenBytes += bytesToWrite.length;\n}\nfunction writeChunkAndReturn(destination, chunk) {\n  writeChunk(destination, chunk); // in web streams there is no backpressure so we can alwas write more\n\n  return true;\n}\nfunction completeWriting(destination) {\n  if (currentView && writtenBytes > 0) {\n    destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes));\n    currentView = null;\n    writtenBytes = 0;\n  }\n}\nfunction close(destination) {\n  destination.close();\n}\nvar textEncoder = new TextEncoder();\nfunction stringToChunk(content) {\n  return textEncoder.encode(content);\n}\nfunction stringToPrecomputedChunk(content) {\n  return textEncoder.encode(content);\n}\nfunction closeWithError(destination, error) {\n  if (typeof destination.error === 'function') {\n    // $FlowFixMe: This is an Error object or the destination accepts other types.\n    destination.error(error);\n  } else {\n    // Earlier implementations doesn't support this method. In that environment you're\n    // supposed to throw from a promise returned but we don't return a promise in our\n    // approach. We could fork this implementation but this is environment is an edge\n    // case to begin with. It's even less common to run this in an older environment.\n    // Even then, this is not where errors are supposed to happen and they get reported\n    // to a global callback in addition to this anyway. So it's fine just to close this.\n    destination.close();\n  }\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\n\nfunction checkAttributeStringCoercion(value, attributeName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkCSSPropertyStringCoercion(value, propName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkHtmlStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":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\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n    return true;\n  }\n\n  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n    return false;\n  }\n\n  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n    validatedAttributeNameCache[attributeName] = true;\n    return true;\n  }\n\n  illegalAttributeNameCache[attributeName] = true;\n\n  {\n    error('Invalid attribute name: `%s`', attributeName);\n  }\n\n  return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n  if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n    return false;\n  }\n\n  switch (typeof value) {\n    case 'function': // $FlowIssue symbol is perfectly valid here\n\n    case 'symbol':\n      // eslint-disable-line\n      return true;\n\n    case 'boolean':\n      {\n        if (isCustomComponentTag) {\n          return false;\n        }\n\n        if (propertyInfo !== null) {\n          return !propertyInfo.acceptsBooleans;\n        } else {\n          var prefix = name.toLowerCase().slice(0, 5);\n          return prefix !== 'data-' && prefix !== 'aria-';\n        }\n      }\n\n    default:\n      return false;\n  }\n}\nfunction getPropertyInfo(name) {\n  return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n  this.attributeName = attributeName;\n  this.attributeNamespace = attributeNamespace;\n  this.mustUseProperty = mustUseProperty;\n  this.propertyName = name;\n  this.type = type;\n  this.sanitizeURL = sanitizeURL;\n  this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\n\nreservedProps.forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n  var name = _ref[0],\n      attributeName = _ref[1];\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n  return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['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' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n  false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  true, // sanitizeURL\n  true);\n});\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nvar isUnitlessNumber = {\n  animationIterationCount: true,\n  aspectRatio: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  columns: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridArea: true,\n  gridRow: true,\n  gridRowEnd: true,\n  gridRowSpan: true,\n  gridRowStart: true,\n  gridColumn: true,\n  gridColumnEnd: true,\n  gridColumnSpan: true,\n  gridColumnStart: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n};\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\n\nfunction prefixKey(prefix, key) {\n  return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\n\n\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n  prefixes.forEach(function (prefix) {\n    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n  });\n});\n\nvar hasReadOnlyValue = {\n  button: true,\n  checkbox: true,\n  image: true,\n  hidden: true,\n  radio: true,\n  reset: true,\n  submit: true\n};\nfunction checkControlledValueProps(tagName, props) {\n  {\n    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {\n      error('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    }\n\n    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {\n      error('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`.');\n    }\n  }\n}\n\nfunction isCustomComponent(tagName, props) {\n  if (tagName.indexOf('-') === -1) {\n    return typeof props.is === 'string';\n  }\n\n  switch (tagName) {\n    // These are reserved SVG and MathML elements.\n    // We don't mind this list too much because we expect it to never grow.\n    // The alternative is to track the namespace in a few places which is convoluted.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      return false;\n\n    default:\n      return true;\n  }\n}\n\nvar ariaProperties = {\n  'aria-current': 0,\n  // state\n  'aria-description': 0,\n  'aria-details': 0,\n  'aria-disabled': 0,\n  // state\n  'aria-hidden': 0,\n  // state\n  'aria-invalid': 0,\n  // state\n  'aria-keyshortcuts': 0,\n  'aria-label': 0,\n  'aria-roledescription': 0,\n  // Widget Attributes\n  'aria-autocomplete': 0,\n  'aria-checked': 0,\n  'aria-expanded': 0,\n  'aria-haspopup': 0,\n  'aria-level': 0,\n  'aria-modal': 0,\n  'aria-multiline': 0,\n  'aria-multiselectable': 0,\n  'aria-orientation': 0,\n  'aria-placeholder': 0,\n  'aria-pressed': 0,\n  'aria-readonly': 0,\n  'aria-required': 0,\n  'aria-selected': 0,\n  'aria-sort': 0,\n  'aria-valuemax': 0,\n  'aria-valuemin': 0,\n  'aria-valuenow': 0,\n  'aria-valuetext': 0,\n  // Live Region Attributes\n  'aria-atomic': 0,\n  'aria-busy': 0,\n  'aria-live': 0,\n  'aria-relevant': 0,\n  // Drag-and-Drop Attributes\n  'aria-dropeffect': 0,\n  'aria-grabbed': 0,\n  // Relationship Attributes\n  'aria-activedescendant': 0,\n  'aria-colcount': 0,\n  'aria-colindex': 0,\n  'aria-colspan': 0,\n  'aria-controls': 0,\n  'aria-describedby': 0,\n  'aria-errormessage': 0,\n  'aria-flowto': 0,\n  'aria-labelledby': 0,\n  'aria-owns': 0,\n  'aria-posinset': 0,\n  'aria-rowcount': 0,\n  'aria-rowindex': 0,\n  'aria-rowspan': 0,\n  'aria-setsize': 0\n};\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nfunction validateProperty(tagName, name) {\n  {\n    if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {\n      return true;\n    }\n\n    if (rARIACamel.test(name)) {\n      var ariaName = 'aria-' + name.slice(4).toLowerCase();\n      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (correctName == null) {\n        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n\n        warnedProperties[name] = true;\n        return true;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== correctName) {\n        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n\n    if (rARIA.test(name)) {\n      var lowerCasedName = name.toLowerCase();\n      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (standardName == null) {\n        warnedProperties[name] = true;\n        return false;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== standardName) {\n        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n  }\n\n  return true;\n}\n\nfunction warnInvalidARIAProps(type, props) {\n  {\n    var invalidProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty(type, key);\n\n      if (!isValid) {\n        invalidProps.push(key);\n      }\n    }\n\n    var unknownPropString = invalidProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (invalidProps.length === 1) {\n      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    } else if (invalidProps.length > 1) {\n      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    }\n  }\n}\n\nfunction validateProperties(type, props) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull = false;\nfunction validateProperties$1(type, props) {\n  {\n    if (type !== 'input' && type !== 'textarea' && type !== 'select') {\n      return;\n    }\n\n    if (props != null && props.value === null && !didWarnValueNull) {\n      didWarnValueNull = true;\n\n      if (type === 'select' && props.multiple) {\n        error('`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.', type);\n      } else {\n        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n      }\n    }\n  }\n}\n\n// When adding attributes to the HTML or SVG allowed attribute list, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames = {\n  // HTML\n  accept: 'accept',\n  acceptcharset: 'acceptCharset',\n  'accept-charset': 'acceptCharset',\n  accesskey: 'accessKey',\n  action: 'action',\n  allowfullscreen: 'allowFullScreen',\n  alt: 'alt',\n  as: 'as',\n  async: 'async',\n  autocapitalize: 'autoCapitalize',\n  autocomplete: 'autoComplete',\n  autocorrect: 'autoCorrect',\n  autofocus: 'autoFocus',\n  autoplay: 'autoPlay',\n  autosave: 'autoSave',\n  capture: 'capture',\n  cellpadding: 'cellPadding',\n  cellspacing: 'cellSpacing',\n  challenge: 'challenge',\n  charset: 'charSet',\n  checked: 'checked',\n  children: 'children',\n  cite: 'cite',\n  class: 'className',\n  classid: 'classID',\n  classname: 'className',\n  cols: 'cols',\n  colspan: 'colSpan',\n  content: 'content',\n  contenteditable: 'contentEditable',\n  contextmenu: 'contextMenu',\n  controls: 'controls',\n  controlslist: 'controlsList',\n  coords: 'coords',\n  crossorigin: 'crossOrigin',\n  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n  data: 'data',\n  datetime: 'dateTime',\n  default: 'default',\n  defaultchecked: 'defaultChecked',\n  defaultvalue: 'defaultValue',\n  defer: 'defer',\n  dir: 'dir',\n  disabled: 'disabled',\n  disablepictureinpicture: 'disablePictureInPicture',\n  disableremoteplayback: 'disableRemotePlayback',\n  download: 'download',\n  draggable: 'draggable',\n  enctype: 'encType',\n  enterkeyhint: 'enterKeyHint',\n  for: 'htmlFor',\n  form: 'form',\n  formmethod: 'formMethod',\n  formaction: 'formAction',\n  formenctype: 'formEncType',\n  formnovalidate: 'formNoValidate',\n  formtarget: 'formTarget',\n  frameborder: 'frameBorder',\n  headers: 'headers',\n  height: 'height',\n  hidden: 'hidden',\n  high: 'high',\n  href: 'href',\n  hreflang: 'hrefLang',\n  htmlfor: 'htmlFor',\n  httpequiv: 'httpEquiv',\n  'http-equiv': 'httpEquiv',\n  icon: 'icon',\n  id: 'id',\n  imagesizes: 'imageSizes',\n  imagesrcset: 'imageSrcSet',\n  innerhtml: 'innerHTML',\n  inputmode: 'inputMode',\n  integrity: 'integrity',\n  is: 'is',\n  itemid: 'itemID',\n  itemprop: 'itemProp',\n  itemref: 'itemRef',\n  itemscope: 'itemScope',\n  itemtype: 'itemType',\n  keyparams: 'keyParams',\n  keytype: 'keyType',\n  kind: 'kind',\n  label: 'label',\n  lang: 'lang',\n  list: 'list',\n  loop: 'loop',\n  low: 'low',\n  manifest: 'manifest',\n  marginwidth: 'marginWidth',\n  marginheight: 'marginHeight',\n  max: 'max',\n  maxlength: 'maxLength',\n  media: 'media',\n  mediagroup: 'mediaGroup',\n  method: 'method',\n  min: 'min',\n  minlength: 'minLength',\n  multiple: 'multiple',\n  muted: 'muted',\n  name: 'name',\n  nomodule: 'noModule',\n  nonce: 'nonce',\n  novalidate: 'noValidate',\n  open: 'open',\n  optimum: 'optimum',\n  pattern: 'pattern',\n  placeholder: 'placeholder',\n  playsinline: 'playsInline',\n  poster: 'poster',\n  preload: 'preload',\n  profile: 'profile',\n  radiogroup: 'radioGroup',\n  readonly: 'readOnly',\n  referrerpolicy: 'referrerPolicy',\n  rel: 'rel',\n  required: 'required',\n  reversed: 'reversed',\n  role: 'role',\n  rows: 'rows',\n  rowspan: 'rowSpan',\n  sandbox: 'sandbox',\n  scope: 'scope',\n  scoped: 'scoped',\n  scrolling: 'scrolling',\n  seamless: 'seamless',\n  selected: 'selected',\n  shape: 'shape',\n  size: 'size',\n  sizes: 'sizes',\n  span: 'span',\n  spellcheck: 'spellCheck',\n  src: 'src',\n  srcdoc: 'srcDoc',\n  srclang: 'srcLang',\n  srcset: 'srcSet',\n  start: 'start',\n  step: 'step',\n  style: 'style',\n  summary: 'summary',\n  tabindex: 'tabIndex',\n  target: 'target',\n  title: 'title',\n  type: 'type',\n  usemap: 'useMap',\n  value: 'value',\n  width: 'width',\n  wmode: 'wmode',\n  wrap: 'wrap',\n  // SVG\n  about: 'about',\n  accentheight: 'accentHeight',\n  'accent-height': 'accentHeight',\n  accumulate: 'accumulate',\n  additive: 'additive',\n  alignmentbaseline: 'alignmentBaseline',\n  'alignment-baseline': 'alignmentBaseline',\n  allowreorder: 'allowReorder',\n  alphabetic: 'alphabetic',\n  amplitude: 'amplitude',\n  arabicform: 'arabicForm',\n  'arabic-form': 'arabicForm',\n  ascent: 'ascent',\n  attributename: 'attributeName',\n  attributetype: 'attributeType',\n  autoreverse: 'autoReverse',\n  azimuth: 'azimuth',\n  basefrequency: 'baseFrequency',\n  baselineshift: 'baselineShift',\n  'baseline-shift': 'baselineShift',\n  baseprofile: 'baseProfile',\n  bbox: 'bbox',\n  begin: 'begin',\n  bias: 'bias',\n  by: 'by',\n  calcmode: 'calcMode',\n  capheight: 'capHeight',\n  'cap-height': 'capHeight',\n  clip: 'clip',\n  clippath: 'clipPath',\n  'clip-path': 'clipPath',\n  clippathunits: 'clipPathUnits',\n  cliprule: 'clipRule',\n  'clip-rule': 'clipRule',\n  color: 'color',\n  colorinterpolation: 'colorInterpolation',\n  'color-interpolation': 'colorInterpolation',\n  colorinterpolationfilters: 'colorInterpolationFilters',\n  'color-interpolation-filters': 'colorInterpolationFilters',\n  colorprofile: 'colorProfile',\n  'color-profile': 'colorProfile',\n  colorrendering: 'colorRendering',\n  'color-rendering': 'colorRendering',\n  contentscripttype: 'contentScriptType',\n  contentstyletype: 'contentStyleType',\n  cursor: 'cursor',\n  cx: 'cx',\n  cy: 'cy',\n  d: 'd',\n  datatype: 'datatype',\n  decelerate: 'decelerate',\n  descent: 'descent',\n  diffuseconstant: 'diffuseConstant',\n  direction: 'direction',\n  display: 'display',\n  divisor: 'divisor',\n  dominantbaseline: 'dominantBaseline',\n  'dominant-baseline': 'dominantBaseline',\n  dur: 'dur',\n  dx: 'dx',\n  dy: 'dy',\n  edgemode: 'edgeMode',\n  elevation: 'elevation',\n  enablebackground: 'enableBackground',\n  'enable-background': 'enableBackground',\n  end: 'end',\n  exponent: 'exponent',\n  externalresourcesrequired: 'externalResourcesRequired',\n  fill: 'fill',\n  fillopacity: 'fillOpacity',\n  'fill-opacity': 'fillOpacity',\n  fillrule: 'fillRule',\n  'fill-rule': 'fillRule',\n  filter: 'filter',\n  filterres: 'filterRes',\n  filterunits: 'filterUnits',\n  floodopacity: 'floodOpacity',\n  'flood-opacity': 'floodOpacity',\n  floodcolor: 'floodColor',\n  'flood-color': 'floodColor',\n  focusable: 'focusable',\n  fontfamily: 'fontFamily',\n  'font-family': 'fontFamily',\n  fontsize: 'fontSize',\n  'font-size': 'fontSize',\n  fontsizeadjust: 'fontSizeAdjust',\n  'font-size-adjust': 'fontSizeAdjust',\n  fontstretch: 'fontStretch',\n  'font-stretch': 'fontStretch',\n  fontstyle: 'fontStyle',\n  'font-style': 'fontStyle',\n  fontvariant: 'fontVariant',\n  'font-variant': 'fontVariant',\n  fontweight: 'fontWeight',\n  'font-weight': 'fontWeight',\n  format: 'format',\n  from: 'from',\n  fx: 'fx',\n  fy: 'fy',\n  g1: 'g1',\n  g2: 'g2',\n  glyphname: 'glyphName',\n  'glyph-name': 'glyphName',\n  glyphorientationhorizontal: 'glyphOrientationHorizontal',\n  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n  glyphorientationvertical: 'glyphOrientationVertical',\n  'glyph-orientation-vertical': 'glyphOrientationVertical',\n  glyphref: 'glyphRef',\n  gradienttransform: 'gradientTransform',\n  gradientunits: 'gradientUnits',\n  hanging: 'hanging',\n  horizadvx: 'horizAdvX',\n  'horiz-adv-x': 'horizAdvX',\n  horizoriginx: 'horizOriginX',\n  'horiz-origin-x': 'horizOriginX',\n  ideographic: 'ideographic',\n  imagerendering: 'imageRendering',\n  'image-rendering': 'imageRendering',\n  in2: 'in2',\n  in: 'in',\n  inlist: 'inlist',\n  intercept: 'intercept',\n  k1: 'k1',\n  k2: 'k2',\n  k3: 'k3',\n  k4: 'k4',\n  k: 'k',\n  kernelmatrix: 'kernelMatrix',\n  kernelunitlength: 'kernelUnitLength',\n  kerning: 'kerning',\n  keypoints: 'keyPoints',\n  keysplines: 'keySplines',\n  keytimes: 'keyTimes',\n  lengthadjust: 'lengthAdjust',\n  letterspacing: 'letterSpacing',\n  'letter-spacing': 'letterSpacing',\n  lightingcolor: 'lightingColor',\n  'lighting-color': 'lightingColor',\n  limitingconeangle: 'limitingConeAngle',\n  local: 'local',\n  markerend: 'markerEnd',\n  'marker-end': 'markerEnd',\n  markerheight: 'markerHeight',\n  markermid: 'markerMid',\n  'marker-mid': 'markerMid',\n  markerstart: 'markerStart',\n  'marker-start': 'markerStart',\n  markerunits: 'markerUnits',\n  markerwidth: 'markerWidth',\n  mask: 'mask',\n  maskcontentunits: 'maskContentUnits',\n  maskunits: 'maskUnits',\n  mathematical: 'mathematical',\n  mode: 'mode',\n  numoctaves: 'numOctaves',\n  offset: 'offset',\n  opacity: 'opacity',\n  operator: 'operator',\n  order: 'order',\n  orient: 'orient',\n  orientation: 'orientation',\n  origin: 'origin',\n  overflow: 'overflow',\n  overlineposition: 'overlinePosition',\n  'overline-position': 'overlinePosition',\n  overlinethickness: 'overlineThickness',\n  'overline-thickness': 'overlineThickness',\n  paintorder: 'paintOrder',\n  'paint-order': 'paintOrder',\n  panose1: 'panose1',\n  'panose-1': 'panose1',\n  pathlength: 'pathLength',\n  patterncontentunits: 'patternContentUnits',\n  patterntransform: 'patternTransform',\n  patternunits: 'patternUnits',\n  pointerevents: 'pointerEvents',\n  'pointer-events': 'pointerEvents',\n  points: 'points',\n  pointsatx: 'pointsAtX',\n  pointsaty: 'pointsAtY',\n  pointsatz: 'pointsAtZ',\n  prefix: 'prefix',\n  preservealpha: 'preserveAlpha',\n  preserveaspectratio: 'preserveAspectRatio',\n  primitiveunits: 'primitiveUnits',\n  property: 'property',\n  r: 'r',\n  radius: 'radius',\n  refx: 'refX',\n  refy: 'refY',\n  renderingintent: 'renderingIntent',\n  'rendering-intent': 'renderingIntent',\n  repeatcount: 'repeatCount',\n  repeatdur: 'repeatDur',\n  requiredextensions: 'requiredExtensions',\n  requiredfeatures: 'requiredFeatures',\n  resource: 'resource',\n  restart: 'restart',\n  result: 'result',\n  results: 'results',\n  rotate: 'rotate',\n  rx: 'rx',\n  ry: 'ry',\n  scale: 'scale',\n  security: 'security',\n  seed: 'seed',\n  shaperendering: 'shapeRendering',\n  'shape-rendering': 'shapeRendering',\n  slope: 'slope',\n  spacing: 'spacing',\n  specularconstant: 'specularConstant',\n  specularexponent: 'specularExponent',\n  speed: 'speed',\n  spreadmethod: 'spreadMethod',\n  startoffset: 'startOffset',\n  stddeviation: 'stdDeviation',\n  stemh: 'stemh',\n  stemv: 'stemv',\n  stitchtiles: 'stitchTiles',\n  stopcolor: 'stopColor',\n  'stop-color': 'stopColor',\n  stopopacity: 'stopOpacity',\n  'stop-opacity': 'stopOpacity',\n  strikethroughposition: 'strikethroughPosition',\n  'strikethrough-position': 'strikethroughPosition',\n  strikethroughthickness: 'strikethroughThickness',\n  'strikethrough-thickness': 'strikethroughThickness',\n  string: 'string',\n  stroke: 'stroke',\n  strokedasharray: 'strokeDasharray',\n  'stroke-dasharray': 'strokeDasharray',\n  strokedashoffset: 'strokeDashoffset',\n  'stroke-dashoffset': 'strokeDashoffset',\n  strokelinecap: 'strokeLinecap',\n  'stroke-linecap': 'strokeLinecap',\n  strokelinejoin: 'strokeLinejoin',\n  'stroke-linejoin': 'strokeLinejoin',\n  strokemiterlimit: 'strokeMiterlimit',\n  'stroke-miterlimit': 'strokeMiterlimit',\n  strokewidth: 'strokeWidth',\n  'stroke-width': 'strokeWidth',\n  strokeopacity: 'strokeOpacity',\n  'stroke-opacity': 'strokeOpacity',\n  suppresscontenteditablewarning: 'suppressContentEditableWarning',\n  suppresshydrationwarning: 'suppressHydrationWarning',\n  surfacescale: 'surfaceScale',\n  systemlanguage: 'systemLanguage',\n  tablevalues: 'tableValues',\n  targetx: 'targetX',\n  targety: 'targetY',\n  textanchor: 'textAnchor',\n  'text-anchor': 'textAnchor',\n  textdecoration: 'textDecoration',\n  'text-decoration': 'textDecoration',\n  textlength: 'textLength',\n  textrendering: 'textRendering',\n  'text-rendering': 'textRendering',\n  to: 'to',\n  transform: 'transform',\n  typeof: 'typeof',\n  u1: 'u1',\n  u2: 'u2',\n  underlineposition: 'underlinePosition',\n  'underline-position': 'underlinePosition',\n  underlinethickness: 'underlineThickness',\n  'underline-thickness': 'underlineThickness',\n  unicode: 'unicode',\n  unicodebidi: 'unicodeBidi',\n  'unicode-bidi': 'unicodeBidi',\n  unicoderange: 'unicodeRange',\n  'unicode-range': 'unicodeRange',\n  unitsperem: 'unitsPerEm',\n  'units-per-em': 'unitsPerEm',\n  unselectable: 'unselectable',\n  valphabetic: 'vAlphabetic',\n  'v-alphabetic': 'vAlphabetic',\n  values: 'values',\n  vectoreffect: 'vectorEffect',\n  'vector-effect': 'vectorEffect',\n  version: 'version',\n  vertadvy: 'vertAdvY',\n  'vert-adv-y': 'vertAdvY',\n  vertoriginx: 'vertOriginX',\n  'vert-origin-x': 'vertOriginX',\n  vertoriginy: 'vertOriginY',\n  'vert-origin-y': 'vertOriginY',\n  vhanging: 'vHanging',\n  'v-hanging': 'vHanging',\n  videographic: 'vIdeographic',\n  'v-ideographic': 'vIdeographic',\n  viewbox: 'viewBox',\n  viewtarget: 'viewTarget',\n  visibility: 'visibility',\n  vmathematical: 'vMathematical',\n  'v-mathematical': 'vMathematical',\n  vocab: 'vocab',\n  widths: 'widths',\n  wordspacing: 'wordSpacing',\n  'word-spacing': 'wordSpacing',\n  writingmode: 'writingMode',\n  'writing-mode': 'writingMode',\n  x1: 'x1',\n  x2: 'x2',\n  x: 'x',\n  xchannelselector: 'xChannelSelector',\n  xheight: 'xHeight',\n  'x-height': 'xHeight',\n  xlinkactuate: 'xlinkActuate',\n  'xlink:actuate': 'xlinkActuate',\n  xlinkarcrole: 'xlinkArcrole',\n  'xlink:arcrole': 'xlinkArcrole',\n  xlinkhref: 'xlinkHref',\n  'xlink:href': 'xlinkHref',\n  xlinkrole: 'xlinkRole',\n  'xlink:role': 'xlinkRole',\n  xlinkshow: 'xlinkShow',\n  'xlink:show': 'xlinkShow',\n  xlinktitle: 'xlinkTitle',\n  'xlink:title': 'xlinkTitle',\n  xlinktype: 'xlinkType',\n  'xlink:type': 'xlinkType',\n  xmlbase: 'xmlBase',\n  'xml:base': 'xmlBase',\n  xmllang: 'xmlLang',\n  'xml:lang': 'xmlLang',\n  xmlns: 'xmlns',\n  'xml:space': 'xmlSpace',\n  xmlnsxlink: 'xmlnsXlink',\n  'xmlns:xlink': 'xmlnsXlink',\n  xmlspace: 'xmlSpace',\n  y1: 'y1',\n  y2: 'y2',\n  y: 'y',\n  ychannelselector: 'yChannelSelector',\n  z: 'z',\n  zoomandpan: 'zoomAndPan'\n};\n\nvar validateProperty$1 = function () {};\n\n{\n  var warnedProperties$1 = {};\n  var EVENT_NAME_REGEX = /^on./;\n  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;\n  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n  validateProperty$1 = function (tagName, name, value, eventRegistry) {\n    if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {\n      return true;\n    }\n\n    var lowerCasedName = name.toLowerCase();\n\n    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {\n      error('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.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // We can't rely on the event system being injected on the server.\n\n\n    if (eventRegistry != null) {\n      var registrationNameDependencies = eventRegistry.registrationNameDependencies,\n          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;\n\n      if (registrationNameDependencies.hasOwnProperty(name)) {\n        return true;\n      }\n\n      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;\n\n      if (registrationName != null) {\n        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n\n      if (EVENT_NAME_REGEX.test(name)) {\n        error('Unknown event handler property `%s`. It will be ignored.', name);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (EVENT_NAME_REGEX.test(name)) {\n      // If no event plugins have been injected, we are in a server environment.\n      // So we can't tell if the event name is correct for sure, but we can filter\n      // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n      if (INVALID_EVENT_NAME_REGEX.test(name)) {\n        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Let the ARIA attribute hook validate ARIA attributes\n\n\n    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {\n      return true;\n    }\n\n    if (lowerCasedName === 'innerhtml') {\n      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'aria') {\n      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {\n      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'number' && isNaN(value)) {\n      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    var propertyInfo = getPropertyInfo(name);\n    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.\n\n    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n      var standardName = possibleStandardNames[lowerCasedName];\n\n      if (standardName !== name) {\n        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (!isReserved && name !== lowerCasedName) {\n      // Unknown attributes should have lowercase casing since that's how they\n      // will be cased anyway with server rendering.\n      error('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.', name, lowerCasedName);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      if (value) {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n      } else {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Now that we've validated casing, do not validate\n    // data types for reserved props\n\n\n    if (isReserved) {\n      return true;\n    } // Warn when a known attribute is a bad type\n\n\n    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      warnedProperties$1[name] = true;\n      return false;\n    } // Warn when passing the strings 'false' or 'true' into a boolean prop\n\n\n    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {\n      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === '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\".', name, value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    return true;\n  };\n}\n\nvar warnUnknownProperties = function (type, props, eventRegistry) {\n  {\n    var unknownProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty$1(type, key, props[key], eventRegistry);\n\n      if (!isValid) {\n        unknownProps.push(key);\n      }\n    }\n\n    var unknownPropString = unknownProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (unknownProps.length === 1) {\n      error('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 ', unknownPropString, type);\n    } else if (unknownProps.length > 1) {\n      error('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 ', unknownPropString, type);\n    }\n  }\n};\n\nfunction validateProperties$2(type, props, eventRegistry) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnUnknownProperties(type, props, eventRegistry);\n}\n\nvar warnValidStyle = function () {};\n\n{\n  // 'msTransform' is correct, but the other prefixes should be capitalized\n  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n  var msPattern = /^-ms-/;\n  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon\n\n  var badStyleValueWithSemicolonPattern = /;\\s*$/;\n  var warnedStyleNames = {};\n  var warnedStyleValues = {};\n  var warnedForNaNValue = false;\n  var warnedForInfinityValue = false;\n\n  var camelize = function (string) {\n    return string.replace(hyphenPattern, function (_, character) {\n      return character.toUpperCase();\n    });\n  };\n\n  var warnHyphenatedStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests\n    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n    // is converted to lowercase `ms`.\n    camelize(name.replace(msPattern, 'ms-')));\n  };\n\n  var warnBadVendoredStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n  };\n\n  var warnStyleValueWithSemicolon = function (name, value) {\n    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n      return;\n    }\n\n    warnedStyleValues[value] = true;\n\n    error(\"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n  };\n\n  var warnStyleValueIsNaN = function (name, value) {\n    if (warnedForNaNValue) {\n      return;\n    }\n\n    warnedForNaNValue = true;\n\n    error('`NaN` is an invalid value for the `%s` css style property.', name);\n  };\n\n  var warnStyleValueIsInfinity = function (name, value) {\n    if (warnedForInfinityValue) {\n      return;\n    }\n\n    warnedForInfinityValue = true;\n\n    error('`Infinity` is an invalid value for the `%s` css style property.', name);\n  };\n\n  warnValidStyle = function (name, value) {\n    if (name.indexOf('-') > -1) {\n      warnHyphenatedStyleName(name);\n    } else if (badVendoredStyleNamePattern.test(name)) {\n      warnBadVendoredStyleName(name);\n    } else if (badStyleValueWithSemicolonPattern.test(value)) {\n      warnStyleValueWithSemicolon(name, value);\n    }\n\n    if (typeof value === 'number') {\n      if (isNaN(value)) {\n        warnStyleValueIsNaN(name, value);\n      } else if (!isFinite(value)) {\n        warnStyleValueIsInfinity(name, value);\n      }\n    }\n  };\n}\n\nvar warnValidStyle$1 = warnValidStyle;\n\n// code copied and modified from escape-html\nvar matchHtmlRegExp = /[\"'&<>]/;\n/**\n * Escapes special characters and HTML entities in a given html string.\n *\n * @param  {string} string HTML string to escape for later insertion\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  {\n    checkHtmlStringCoercion(string);\n  }\n\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34:\n        // \"\n        escape = '&quot;';\n        break;\n\n      case 38:\n        // &\n        escape = '&amp;';\n        break;\n\n      case 39:\n        // '\n        escape = '&#x27;'; // modified from escape-html; used to be '&#39'\n\n        break;\n\n      case 60:\n        // <\n        escape = '&lt;';\n        break;\n\n      case 62:\n        // >\n        escape = '&gt;';\n        break;\n\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index ? html + str.substring(lastIndex, index) : html;\n} // end code copied and modified from escape-html\n\n/**\n * Escapes text to prevent scripting attacks.\n *\n * @param {*} text Text value to escape.\n * @return {string} An escaped string.\n */\n\n\nfunction escapeTextForBrowser(text) {\n  if (typeof text === 'boolean' || typeof text === 'number') {\n    // this shortcircuit helps perf for types that we know will never have\n    // special characters, especially given that this function is used often\n    // for numeric dom ids.\n    return '' + text;\n  }\n\n  return escapeHtml(text);\n}\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern$1 = /^ms-/;\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n *   > hyphenateStyleName('backgroundColor')\n *   < \"background-color\"\n *   > hyphenateStyleName('MozTransition')\n *   < \"-moz-transition\"\n *   > hyphenateStyleName('msTransition')\n *   < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\n\nfunction hyphenateStyleName(name) {\n  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern$1, '-ms-');\n}\n\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\nvar isJavaScriptProtocol = /^[\\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;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n  {\n    if (!didWarn && isJavaScriptProtocol.test(url)) {\n      didWarn = true;\n\n      error('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(url));\n    }\n  }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\nvar startInlineScript = stringToPrecomputedChunk('<script>');\nvar endInlineScript = stringToPrecomputedChunk('</script>');\nvar startScriptSrc = stringToPrecomputedChunk('<script src=\"');\nvar startModuleSrc = stringToPrecomputedChunk('<script type=\"module\" src=\"');\nvar endAsyncScript = stringToPrecomputedChunk('\" async=\"\"></script>');\n/**\n * This escaping function is designed to work with bootstrapScriptContent only.\n * because we know we are escaping the entire script. We can avoid for instance\n * escaping html comment string sequences that are valid javascript as well because\n * if there are no sebsequent <script sequences the html parser will never enter\n * script data double escaped state (see: https://www.w3.org/TR/html53/syntax.html#script-data-double-escaped-state)\n *\n * While untrusted script content should be made safe before using this api it will\n * ensure that the script cannot be early terminated or never terminated state\n */\n\nfunction escapeBootstrapScriptContent(scriptText) {\n  {\n    checkHtmlStringCoercion(scriptText);\n  }\n\n  return ('' + scriptText).replace(scriptRegex, scriptReplacer);\n}\n\nvar scriptRegex = /(<\\/|<)(s)(cript)/gi;\n\nvar scriptReplacer = function (match, prefix, s, suffix) {\n  return \"\" + prefix + (s === 's' ? \"\\\\u0073\" : \"\\\\u0053\") + suffix;\n}; // Allows us to keep track of what we've already written so we can refer back to it.\n\n\nfunction createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {\n  var idPrefix = identifierPrefix === undefined ? '' : identifierPrefix;\n  var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('<script nonce=\"' + escapeTextForBrowser(nonce) + '\">');\n  var bootstrapChunks = [];\n\n  if (bootstrapScriptContent !== undefined) {\n    bootstrapChunks.push(inlineScriptWithNonce, stringToChunk(escapeBootstrapScriptContent(bootstrapScriptContent)), endInlineScript);\n  }\n\n  if (bootstrapScripts !== undefined) {\n    for (var i = 0; i < bootstrapScripts.length; i++) {\n      bootstrapChunks.push(startScriptSrc, stringToChunk(escapeTextForBrowser(bootstrapScripts[i])), endAsyncScript);\n    }\n  }\n\n  if (bootstrapModules !== undefined) {\n    for (var _i = 0; _i < bootstrapModules.length; _i++) {\n      bootstrapChunks.push(startModuleSrc, stringToChunk(escapeTextForBrowser(bootstrapModules[_i])), endAsyncScript);\n    }\n  }\n\n  return {\n    bootstrapChunks: bootstrapChunks,\n    startInlineScript: inlineScriptWithNonce,\n    placeholderPrefix: stringToPrecomputedChunk(idPrefix + 'P:'),\n    segmentPrefix: stringToPrecomputedChunk(idPrefix + 'S:'),\n    boundaryPrefix: idPrefix + 'B:',\n    idPrefix: idPrefix,\n    nextSuspenseID: 0,\n    sentCompleteSegmentFunction: false,\n    sentCompleteBoundaryFunction: false,\n    sentClientRenderFunction: false\n  };\n} // Constants for the insertion mode we're currently writing in. We don't encode all HTML5 insertion\n// modes. We only include the variants as they matter for the sake of our purposes.\n// We don't actually provide the namespace therefore we use constants instead of the string.\n\nvar ROOT_HTML_MODE = 0; // Used for the root most element tag.\n\nvar HTML_MODE = 1;\nvar SVG_MODE = 2;\nvar MATHML_MODE = 3;\nvar HTML_TABLE_MODE = 4;\nvar HTML_TABLE_BODY_MODE = 5;\nvar HTML_TABLE_ROW_MODE = 6;\nvar HTML_COLGROUP_MODE = 7; // We have a greater than HTML_TABLE_MODE check elsewhere. If you add more cases here, make sure it\n// still makes sense\n\nfunction createFormatContext(insertionMode, selectedValue) {\n  return {\n    insertionMode: insertionMode,\n    selectedValue: selectedValue\n  };\n}\n\nfunction createRootFormatContext(namespaceURI) {\n  var insertionMode = namespaceURI === 'http://www.w3.org/2000/svg' ? SVG_MODE : namespaceURI === 'http://www.w3.org/1998/Math/MathML' ? MATHML_MODE : ROOT_HTML_MODE;\n  return createFormatContext(insertionMode, null);\n}\nfunction getChildFormatContext(parentContext, type, props) {\n  switch (type) {\n    case 'select':\n      return createFormatContext(HTML_MODE, props.value != null ? props.value : props.defaultValue);\n\n    case 'svg':\n      return createFormatContext(SVG_MODE, null);\n\n    case 'math':\n      return createFormatContext(MATHML_MODE, null);\n\n    case 'foreignObject':\n      return createFormatContext(HTML_MODE, null);\n    // Table parents are special in that their children can only be created at all if they're\n    // wrapped in a table parent. So we need to encode that we're entering this mode.\n\n    case 'table':\n      return createFormatContext(HTML_TABLE_MODE, null);\n\n    case 'thead':\n    case 'tbody':\n    case 'tfoot':\n      return createFormatContext(HTML_TABLE_BODY_MODE, null);\n\n    case 'colgroup':\n      return createFormatContext(HTML_COLGROUP_MODE, null);\n\n    case 'tr':\n      return createFormatContext(HTML_TABLE_ROW_MODE, null);\n  }\n\n  if (parentContext.insertionMode >= HTML_TABLE_MODE) {\n    // Whatever tag this was, it wasn't a table parent or other special parent, so we must have\n    // entered plain HTML again.\n    return createFormatContext(HTML_MODE, null);\n  }\n\n  if (parentContext.insertionMode === ROOT_HTML_MODE) {\n    // We've emitted the root and is now in plain HTML mode.\n    return createFormatContext(HTML_MODE, null);\n  }\n\n  return parentContext;\n}\nvar UNINITIALIZED_SUSPENSE_BOUNDARY_ID = null;\nfunction assignSuspenseBoundaryID(responseState) {\n  var generatedID = responseState.nextSuspenseID++;\n  return stringToPrecomputedChunk(responseState.boundaryPrefix + generatedID.toString(16));\n}\nfunction makeId(responseState, treeId, localId) {\n  var idPrefix = responseState.idPrefix;\n  var id = ':' + idPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end\n  // that represents the position of this useId hook among all the useId\n  // hooks for this fiber.\n\n  if (localId > 0) {\n    id += 'H' + localId.toString(32);\n  }\n\n  return id + ':';\n}\n\nfunction encodeHTMLTextNode(text) {\n  return escapeTextForBrowser(text);\n}\n\nvar textSeparator = stringToPrecomputedChunk('<!-- -->');\nfunction pushTextInstance(target, text, responseState, textEmbedded) {\n  if (text === '') {\n    // Empty text doesn't have a DOM node representation and the hydration is aware of this.\n    return textEmbedded;\n  }\n\n  if (textEmbedded) {\n    target.push(textSeparator);\n  }\n\n  target.push(stringToChunk(encodeHTMLTextNode(text)));\n  return true;\n} // Called when Fizz is done with a Segment. Currently the only purpose is to conditionally\n// emit a text separator when we don't know for sure it is safe to omit\n\nfunction pushSegmentFinale(target, responseState, lastPushedText, textEmbedded) {\n  if (lastPushedText && textEmbedded) {\n    target.push(textSeparator);\n  }\n}\nvar styleNameCache = new Map();\n\nfunction processStyleName(styleName) {\n  var chunk = styleNameCache.get(styleName);\n\n  if (chunk !== undefined) {\n    return chunk;\n  }\n\n  var result = stringToPrecomputedChunk(escapeTextForBrowser(hyphenateStyleName(styleName)));\n  styleNameCache.set(styleName, result);\n  return result;\n}\n\nvar styleAttributeStart = stringToPrecomputedChunk(' style=\"');\nvar styleAssign = stringToPrecomputedChunk(':');\nvar styleSeparator = stringToPrecomputedChunk(';');\n\nfunction pushStyle(target, responseState, style) {\n  if (typeof style !== 'object') {\n    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.');\n  }\n\n  var isFirst = true;\n\n  for (var styleName in style) {\n    if (!hasOwnProperty.call(style, styleName)) {\n      continue;\n    } // If you provide unsafe user data here they can inject arbitrary CSS\n    // which may be problematic (I couldn't repro this):\n    // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n    // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n    // This is not an XSS hole but instead a potential CSS injection issue\n    // which has lead to a greater discussion about how we're going to\n    // trust URLs moving forward. See #2115901\n\n\n    var styleValue = style[styleName];\n\n    if (styleValue == null || typeof styleValue === 'boolean' || styleValue === '') {\n      // TODO: We used to set empty string as a style with an empty value. Does that ever make sense?\n      continue;\n    }\n\n    var nameChunk = void 0;\n    var valueChunk = void 0;\n    var isCustomProperty = styleName.indexOf('--') === 0;\n\n    if (isCustomProperty) {\n      nameChunk = stringToChunk(escapeTextForBrowser(styleName));\n\n      {\n        checkCSSPropertyStringCoercion(styleValue, styleName);\n      }\n\n      valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));\n    } else {\n      {\n        warnValidStyle$1(styleName, styleValue);\n      }\n\n      nameChunk = processStyleName(styleName);\n\n      if (typeof styleValue === 'number') {\n        if (styleValue !== 0 && !hasOwnProperty.call(isUnitlessNumber, styleName)) {\n          valueChunk = stringToChunk(styleValue + 'px'); // Presumes implicit 'px' suffix for unitless numbers\n        } else {\n          valueChunk = stringToChunk('' + styleValue);\n        }\n      } else {\n        {\n          checkCSSPropertyStringCoercion(styleValue, styleName);\n        }\n\n        valueChunk = stringToChunk(escapeTextForBrowser(('' + styleValue).trim()));\n      }\n    }\n\n    if (isFirst) {\n      isFirst = false; // If it's first, we don't need any separators prefixed.\n\n      target.push(styleAttributeStart, nameChunk, styleAssign, valueChunk);\n    } else {\n      target.push(styleSeparator, nameChunk, styleAssign, valueChunk);\n    }\n  }\n\n  if (!isFirst) {\n    target.push(attributeEnd);\n  }\n}\n\nvar attributeSeparator = stringToPrecomputedChunk(' ');\nvar attributeAssign = stringToPrecomputedChunk('=\"');\nvar attributeEnd = stringToPrecomputedChunk('\"');\nvar attributeEmptyString = stringToPrecomputedChunk('=\"\"');\n\nfunction pushAttribute(target, responseState, name, value) {\n  switch (name) {\n    case 'style':\n      {\n        pushStyle(target, responseState, value);\n        return;\n      }\n\n    case 'defaultValue':\n    case 'defaultChecked': // These shouldn't be set as attributes on generic HTML elements.\n\n    case 'innerHTML': // Must use dangerouslySetInnerHTML instead.\n\n    case 'suppressContentEditableWarning':\n    case 'suppressHydrationWarning':\n      // Ignored. These are built-in to React on the client.\n      return;\n  }\n\n  if ( // shouldIgnoreAttribute\n  // We have already filtered out null/undefined and reserved words.\n  name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n    return;\n  }\n\n  var propertyInfo = getPropertyInfo(name);\n\n  if (propertyInfo !== null) {\n    // shouldRemoveAttribute\n    switch (typeof value) {\n      case 'function': // $FlowIssue symbol is perfectly valid here\n\n      case 'symbol':\n        // eslint-disable-line\n        return;\n\n      case 'boolean':\n        {\n          if (!propertyInfo.acceptsBooleans) {\n            return;\n          }\n        }\n    }\n\n    var attributeName = propertyInfo.attributeName;\n    var attributeNameChunk = stringToChunk(attributeName); // TODO: If it's known we can cache the chunk.\n\n    switch (propertyInfo.type) {\n      case BOOLEAN:\n        if (value) {\n          target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);\n        }\n\n        return;\n\n      case OVERLOADED_BOOLEAN:\n        if (value === true) {\n          target.push(attributeSeparator, attributeNameChunk, attributeEmptyString);\n        } else if (value === false) ; else {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        return;\n\n      case NUMERIC:\n        if (!isNaN(value)) {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        break;\n\n      case POSITIVE_NUMERIC:\n        if (!isNaN(value) && value >= 1) {\n          target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n        }\n\n        break;\n\n      default:\n        if (propertyInfo.sanitizeURL) {\n          {\n            checkAttributeStringCoercion(value, attributeName);\n          }\n\n          value = '' + value;\n          sanitizeURL(value);\n        }\n\n        target.push(attributeSeparator, attributeNameChunk, attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n    }\n  } else if (isAttributeNameSafe(name)) {\n    // shouldRemoveAttribute\n    switch (typeof value) {\n      case 'function': // $FlowIssue symbol is perfectly valid here\n\n      case 'symbol':\n        // eslint-disable-line\n        return;\n\n      case 'boolean':\n        {\n          var prefix = name.toLowerCase().slice(0, 5);\n\n          if (prefix !== 'data-' && prefix !== 'aria-') {\n            return;\n          }\n        }\n    }\n\n    target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);\n  }\n}\n\nvar endOfStartTag = stringToPrecomputedChunk('>');\nvar endOfStartTagSelfClosing = stringToPrecomputedChunk('/>');\n\nfunction pushInnerHTML(target, innerHTML, children) {\n  if (innerHTML != null) {\n    if (children != null) {\n      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n    }\n\n    if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {\n      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n    }\n\n    var html = innerHTML.__html;\n\n    if (html !== null && html !== undefined) {\n      {\n        checkHtmlStringCoercion(html);\n      }\n\n      target.push(stringToChunk('' + html));\n    }\n  }\n} // TODO: Move these to ResponseState so that we warn for every request.\n// It would help debugging in stateful servers (e.g. service worker).\n\n\nvar didWarnDefaultInputValue = false;\nvar didWarnDefaultChecked = false;\nvar didWarnDefaultSelectValue = false;\nvar didWarnDefaultTextareaValue = false;\nvar didWarnInvalidOptionChildren = false;\nvar didWarnInvalidOptionInnerHTML = false;\nvar didWarnSelectedSetOnOption = false;\n\nfunction checkSelectProp(props, propName) {\n  {\n    var value = props[propName];\n\n    if (value != null) {\n      var array = isArray(value);\n\n      if (props.multiple && !array) {\n        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.', propName);\n      } else if (!props.multiple && array) {\n        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.', propName);\n      }\n    }\n  }\n}\n\nfunction pushStartSelect(target, props, responseState) {\n  {\n    checkControlledValueProps('select', props);\n    checkSelectProp(props, 'value');\n    checkSelectProp(props, 'defaultValue');\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultSelectValue) {\n      error('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');\n\n      didWarnDefaultSelectValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('select'));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          // TODO: This doesn't really make sense for select since it can't use the controlled\n          // value in the innerHTML.\n          innerHTML = propValue;\n          break;\n\n        case 'defaultValue':\n        case 'value':\n          // These are set on the Context instead and applied to the nested options.\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nfunction flattenOptionChildren(children) {\n  var content = ''; // Flatten children and warn if they aren't strings or numbers;\n  // invalid types are ignored.\n\n  React.Children.forEach(children, function (child) {\n    if (child == null) {\n      return;\n    }\n\n    content += child;\n\n    {\n      if (!didWarnInvalidOptionChildren && typeof child !== 'string' && typeof child !== 'number') {\n        didWarnInvalidOptionChildren = true;\n\n        error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');\n      }\n    }\n  });\n  return content;\n}\n\nvar selectedMarkerAttribute = stringToPrecomputedChunk(' selected=\"\"');\n\nfunction pushStartOption(target, props, responseState, formatContext) {\n  var selectedValue = formatContext.selectedValue;\n  target.push(startChunkForTag('option'));\n  var children = null;\n  var value = null;\n  var selected = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'selected':\n          // ignore\n          selected = propValue;\n\n          {\n            // TODO: Remove support for `selected` in <option>.\n            if (!didWarnSelectedSetOnOption) {\n              error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n\n              didWarnSelectedSetOnOption = true;\n            }\n          }\n\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n        // eslint-disable-next-line-no-fallthrough\n\n        case 'value':\n          value = propValue;\n        // We intentionally fallthrough to also set the attribute on the node.\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (selectedValue != null) {\n    var stringValue;\n\n    if (value !== null) {\n      {\n        checkAttributeStringCoercion(value, 'value');\n      }\n\n      stringValue = '' + value;\n    } else {\n      {\n        if (innerHTML !== null) {\n          if (!didWarnInvalidOptionInnerHTML) {\n            didWarnInvalidOptionInnerHTML = true;\n\n            error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');\n          }\n        }\n      }\n\n      stringValue = flattenOptionChildren(children);\n    }\n\n    if (isArray(selectedValue)) {\n      // multiple\n      for (var i = 0; i < selectedValue.length; i++) {\n        {\n          checkAttributeStringCoercion(selectedValue[i], 'value');\n        }\n\n        var v = '' + selectedValue[i];\n\n        if (v === stringValue) {\n          target.push(selectedMarkerAttribute);\n          break;\n        }\n      }\n    } else {\n      {\n        checkAttributeStringCoercion(selectedValue, 'select.value');\n      }\n\n      if ('' + selectedValue === stringValue) {\n        target.push(selectedMarkerAttribute);\n      }\n    }\n  } else if (selected) {\n    target.push(selectedMarkerAttribute);\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nfunction pushInput(target, props, responseState) {\n  {\n    checkControlledValueProps('input', props);\n\n    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnDefaultChecked) {\n      error('%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', 'A component', props.type);\n\n      didWarnDefaultChecked = true;\n    }\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultInputValue) {\n      error('%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', 'A component', props.type);\n\n      didWarnDefaultInputValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('input'));\n  var value = null;\n  var defaultValue = null;\n  var checked = null;\n  var defaultChecked = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error('input' + \" is a self-closing tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        case 'defaultChecked':\n          defaultChecked = propValue;\n          break;\n\n        case 'defaultValue':\n          defaultValue = propValue;\n          break;\n\n        case 'checked':\n          checked = propValue;\n          break;\n\n        case 'value':\n          value = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (checked !== null) {\n    pushAttribute(target, responseState, 'checked', checked);\n  } else if (defaultChecked !== null) {\n    pushAttribute(target, responseState, 'checked', defaultChecked);\n  }\n\n  if (value !== null) {\n    pushAttribute(target, responseState, 'value', value);\n  } else if (defaultValue !== null) {\n    pushAttribute(target, responseState, 'value', defaultValue);\n  }\n\n  target.push(endOfStartTagSelfClosing);\n  return null;\n}\n\nfunction pushStartTextArea(target, props, responseState) {\n  {\n    checkControlledValueProps('textarea', props);\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnDefaultTextareaValue) {\n      error('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');\n\n      didWarnDefaultTextareaValue = true;\n    }\n  }\n\n  target.push(startChunkForTag('textarea'));\n  var value = null;\n  var defaultValue = null;\n  var children = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'value':\n          value = propValue;\n          break;\n\n        case 'defaultValue':\n          defaultValue = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  if (value === null && defaultValue !== null) {\n    value = defaultValue;\n  }\n\n  target.push(endOfStartTag); // TODO (yungsters): Remove support for children content in <textarea>.\n\n  if (children != null) {\n    {\n      error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n    }\n\n    if (value != null) {\n      throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');\n    }\n\n    if (isArray(children)) {\n      if (children.length > 1) {\n        throw new Error('<textarea> can only have at most one child.');\n      } // TODO: remove the coercion and the DEV check below because it will\n      // always be overwritten by the coercion several lines below it. #22309\n\n\n      {\n        checkHtmlStringCoercion(children[0]);\n      }\n\n      value = '' + children[0];\n    }\n\n    {\n      checkHtmlStringCoercion(children);\n    }\n\n    value = '' + children;\n  }\n\n  if (typeof value === 'string' && value[0] === '\\n') {\n    // text/html ignores the first character in these tags if it's a newline\n    // Prefer to break application/xml over text/html (for now) by adding\n    // a newline specifically to get eaten by the parser. (Alternately for\n    // textareas, replacing \"^\\n\" with \"\\r\\n\" doesn't get eaten, and the first\n    // \\r is normalized out by HTMLTextAreaElement#value.)\n    // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>\n    // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>\n    // See: <http://www.w3.org/TR/html5/syntax.html#newlines>\n    // See: Parsing of \"textarea\" \"listing\" and \"pre\" elements\n    //  from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>\n    target.push(leadingNewline);\n  } // ToString and push directly instead of recurse over children.\n  // We don't really support complex children in the value anyway.\n  // This also currently avoids a trailing comment node which breaks textarea.\n\n\n  if (value !== null) {\n    {\n      checkAttributeStringCoercion(value, 'value');\n    }\n\n    target.push(stringToChunk(encodeHTMLTextNode('' + value)));\n  }\n\n  return null;\n}\n\nfunction pushSelfClosing(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error(tag + \" is a self-closing tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTagSelfClosing);\n  return null;\n}\n\nfunction pushStartMenuItem(target, props, responseState) {\n  target.push(startChunkForTag('menuitem'));\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n        case 'dangerouslySetInnerHTML':\n          throw new Error('menuitems cannot have `children` nor `dangerouslySetInnerHTML`.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  return null;\n}\n\nfunction pushStartTitle(target, props, responseState) {\n  target.push(startChunkForTag('title'));\n  var children = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          throw new Error('`dangerouslySetInnerHTML` does not make sense on <title>.');\n        // eslint-disable-next-line-no-fallthrough\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n\n  {\n    var child = Array.isArray(children) && children.length < 2 ? children[0] || null : children;\n\n    if (Array.isArray(children) && children.length > 1) {\n      error('A title element received an array with more than 1 element as children. ' + 'In browsers title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    } else if (child != null && child.$$typeof != null) {\n      error('A title element received a React element for children. ' + 'In the browser title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    } else if (child != null && typeof child !== 'string' && typeof child !== 'number') {\n      error('A title element received a value that was not a string or number for children. ' + 'In the browser title Elements can only have Text Nodes as children. If ' + 'the children being rendered output more than a single text node in aggregate the browser ' + 'will display markup and comments as text in the title and hydration will likely fail and ' + 'fall back to client rendering');\n    }\n  }\n\n  return children;\n}\n\nfunction pushStartGenericElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n\n  if (typeof children === 'string') {\n    // Special case children as a string to avoid the unnecessary comment.\n    // TODO: Remove this special case after the general optimization is in place.\n    target.push(stringToChunk(encodeHTMLTextNode(children)));\n    return null;\n  }\n\n  return children;\n}\n\nfunction pushStartCustomElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        case 'style':\n          pushStyle(target, responseState, propValue);\n          break;\n\n        case 'suppressContentEditableWarning':\n        case 'suppressHydrationWarning':\n          // Ignored. These are built-in to React on the client.\n          break;\n\n        default:\n          if (isAttributeNameSafe(propKey) && typeof propValue !== 'function' && typeof propValue !== 'symbol') {\n            target.push(attributeSeparator, stringToChunk(propKey), attributeAssign, stringToChunk(escapeTextForBrowser(propValue)), attributeEnd);\n          }\n\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag);\n  pushInnerHTML(target, innerHTML, children);\n  return children;\n}\n\nvar leadingNewline = stringToPrecomputedChunk('\\n');\n\nfunction pushStartPreformattedElement(target, props, tag, responseState) {\n  target.push(startChunkForTag(tag));\n  var children = null;\n  var innerHTML = null;\n\n  for (var propKey in props) {\n    if (hasOwnProperty.call(props, propKey)) {\n      var propValue = props[propKey];\n\n      if (propValue == null) {\n        continue;\n      }\n\n      switch (propKey) {\n        case 'children':\n          children = propValue;\n          break;\n\n        case 'dangerouslySetInnerHTML':\n          innerHTML = propValue;\n          break;\n\n        default:\n          pushAttribute(target, responseState, propKey, propValue);\n          break;\n      }\n    }\n  }\n\n  target.push(endOfStartTag); // text/html ignores the first character in these tags if it's a newline\n  // Prefer to break application/xml over text/html (for now) by adding\n  // a newline specifically to get eaten by the parser. (Alternately for\n  // textareas, replacing \"^\\n\" with \"\\r\\n\" doesn't get eaten, and the first\n  // \\r is normalized out by HTMLTextAreaElement#value.)\n  // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>\n  // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>\n  // See: <http://www.w3.org/TR/html5/syntax.html#newlines>\n  // See: Parsing of \"textarea\" \"listing\" and \"pre\" elements\n  //  from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>\n  // TODO: This doesn't deal with the case where the child is an array\n  // or component that returns a string.\n\n  if (innerHTML != null) {\n    if (children != null) {\n      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n    }\n\n    if (typeof innerHTML !== 'object' || !('__html' in innerHTML)) {\n      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n    }\n\n    var html = innerHTML.__html;\n\n    if (html !== null && html !== undefined) {\n      if (typeof html === 'string' && html.length > 0 && html[0] === '\\n') {\n        target.push(leadingNewline, stringToChunk(html));\n      } else {\n        {\n          checkHtmlStringCoercion(html);\n        }\n\n        target.push(stringToChunk('' + html));\n      }\n    }\n  }\n\n  if (typeof children === 'string' && children[0] === '\\n') {\n    target.push(leadingNewline);\n  }\n\n  return children;\n} // We accept any tag to be rendered but since this gets injected into arbitrary\n// HTML, we want to make sure that it's a safe tag.\n// http://www.w3.org/TR/REC-xml/#NT-Name\n\n\nvar VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/; // Simplified subset\n\nvar validatedTagCache = new Map();\n\nfunction startChunkForTag(tag) {\n  var tagStartChunk = validatedTagCache.get(tag);\n\n  if (tagStartChunk === undefined) {\n    if (!VALID_TAG_REGEX.test(tag)) {\n      throw new Error(\"Invalid tag: \" + tag);\n    }\n\n    tagStartChunk = stringToPrecomputedChunk('<' + tag);\n    validatedTagCache.set(tag, tagStartChunk);\n  }\n\n  return tagStartChunk;\n}\n\nvar DOCTYPE = stringToPrecomputedChunk('<!DOCTYPE html>');\nfunction pushStartInstance(target, type, props, responseState, formatContext) {\n  {\n    validateProperties(type, props);\n    validateProperties$1(type, props);\n    validateProperties$2(type, props, null);\n\n    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {\n      error('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    }\n\n    if (formatContext.insertionMode !== SVG_MODE && formatContext.insertionMode !== MATHML_MODE) {\n      if (type.indexOf('-') === -1 && typeof props.is !== 'string' && type.toLowerCase() !== type) {\n        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);\n      }\n    }\n  }\n\n  switch (type) {\n    // Special tags\n    case 'select':\n      return pushStartSelect(target, props, responseState);\n\n    case 'option':\n      return pushStartOption(target, props, responseState, formatContext);\n\n    case 'textarea':\n      return pushStartTextArea(target, props, responseState);\n\n    case 'input':\n      return pushInput(target, props, responseState);\n\n    case 'menuitem':\n      return pushStartMenuItem(target, props, responseState);\n\n    case 'title':\n      return pushStartTitle(target, props, responseState);\n    // Newline eating tags\n\n    case 'listing':\n    case 'pre':\n      {\n        return pushStartPreformattedElement(target, props, type, responseState);\n      }\n    // Omitted close tags\n\n    case 'area':\n    case 'base':\n    case 'br':\n    case 'col':\n    case 'embed':\n    case 'hr':\n    case 'img':\n    case 'keygen':\n    case 'link':\n    case 'meta':\n    case 'param':\n    case 'source':\n    case 'track':\n    case 'wbr':\n      {\n        return pushSelfClosing(target, props, type, responseState);\n      }\n    // These are reserved SVG and MathML elements, that are never custom elements.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      {\n        return pushStartGenericElement(target, props, type, responseState);\n      }\n\n    case 'html':\n      {\n        if (formatContext.insertionMode === ROOT_HTML_MODE) {\n          // If we're rendering the html tag and we're at the root (i.e. not in foreignObject)\n          // then we also emit the DOCTYPE as part of the root content as a convenience for\n          // rendering the whole document.\n          target.push(DOCTYPE);\n        }\n\n        return pushStartGenericElement(target, props, type, responseState);\n      }\n\n    default:\n      {\n        if (type.indexOf('-') === -1 && typeof props.is !== 'string') {\n          // Generic element\n          return pushStartGenericElement(target, props, type, responseState);\n        } else {\n          // Custom element\n          return pushStartCustomElement(target, props, type, responseState);\n        }\n      }\n  }\n}\nvar endTag1 = stringToPrecomputedChunk('</');\nvar endTag2 = stringToPrecomputedChunk('>');\nfunction pushEndInstance(target, type, props) {\n  switch (type) {\n    // Omitted close tags\n    // TODO: Instead of repeating this switch we could try to pass a flag from above.\n    // That would require returning a tuple. Which might be ok if it gets inlined.\n    case 'area':\n    case 'base':\n    case 'br':\n    case 'col':\n    case 'embed':\n    case 'hr':\n    case 'img':\n    case 'input':\n    case 'keygen':\n    case 'link':\n    case 'meta':\n    case 'param':\n    case 'source':\n    case 'track':\n    case 'wbr':\n      {\n        // No close tag needed.\n        break;\n      }\n\n    default:\n      {\n        target.push(endTag1, stringToChunk(type), endTag2);\n      }\n  }\n}\nfunction writeCompletedRoot(destination, responseState) {\n  var bootstrapChunks = responseState.bootstrapChunks;\n  var i = 0;\n\n  for (; i < bootstrapChunks.length - 1; i++) {\n    writeChunk(destination, bootstrapChunks[i]);\n  }\n\n  if (i < bootstrapChunks.length) {\n    return writeChunkAndReturn(destination, bootstrapChunks[i]);\n  }\n\n  return true;\n} // Structural Nodes\n// A placeholder is a node inside a hidden partial tree that can be filled in later, but before\n// display. It's never visible to users. We use the template tag because it can be used in every\n// type of parent. <script> tags also work in every other tag except <colgroup>.\n\nvar placeholder1 = stringToPrecomputedChunk('<template id=\"');\nvar placeholder2 = stringToPrecomputedChunk('\"></template>');\nfunction writePlaceholder(destination, responseState, id) {\n  writeChunk(destination, placeholder1);\n  writeChunk(destination, responseState.placeholderPrefix);\n  var formattedID = stringToChunk(id.toString(16));\n  writeChunk(destination, formattedID);\n  return writeChunkAndReturn(destination, placeholder2);\n} // Suspense boundaries are encoded as comments.\n\nvar startCompletedSuspenseBoundary = stringToPrecomputedChunk('<!--$-->');\nvar startPendingSuspenseBoundary1 = stringToPrecomputedChunk('<!--$?--><template id=\"');\nvar startPendingSuspenseBoundary2 = stringToPrecomputedChunk('\"></template>');\nvar startClientRenderedSuspenseBoundary = stringToPrecomputedChunk('<!--$!-->');\nvar endSuspenseBoundary = stringToPrecomputedChunk('<!--/$-->');\nvar clientRenderedSuspenseBoundaryError1 = stringToPrecomputedChunk('<template');\nvar clientRenderedSuspenseBoundaryErrorAttrInterstitial = stringToPrecomputedChunk('\"');\nvar clientRenderedSuspenseBoundaryError1A = stringToPrecomputedChunk(' data-dgst=\"');\nvar clientRenderedSuspenseBoundaryError1B = stringToPrecomputedChunk(' data-msg=\"');\nvar clientRenderedSuspenseBoundaryError1C = stringToPrecomputedChunk(' data-stck=\"');\nvar clientRenderedSuspenseBoundaryError2 = stringToPrecomputedChunk('></template>');\nfunction writeStartCompletedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, startCompletedSuspenseBoundary);\n}\nfunction writeStartPendingSuspenseBoundary(destination, responseState, id) {\n  writeChunk(destination, startPendingSuspenseBoundary1);\n\n  if (id === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  writeChunk(destination, id);\n  return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);\n}\nfunction writeStartClientRenderedSuspenseBoundary(destination, responseState, errorDigest, errorMesssage, errorComponentStack) {\n  var result;\n  result = writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);\n  writeChunk(destination, clientRenderedSuspenseBoundaryError1);\n\n  if (errorDigest) {\n    writeChunk(destination, clientRenderedSuspenseBoundaryError1A);\n    writeChunk(destination, stringToChunk(escapeTextForBrowser(errorDigest)));\n    writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n  }\n\n  {\n    if (errorMesssage) {\n      writeChunk(destination, clientRenderedSuspenseBoundaryError1B);\n      writeChunk(destination, stringToChunk(escapeTextForBrowser(errorMesssage)));\n      writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n    }\n\n    if (errorComponentStack) {\n      writeChunk(destination, clientRenderedSuspenseBoundaryError1C);\n      writeChunk(destination, stringToChunk(escapeTextForBrowser(errorComponentStack)));\n      writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial);\n    }\n  }\n\n  result = writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);\n  return result;\n}\nfunction writeEndCompletedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nfunction writeEndPendingSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nfunction writeEndClientRenderedSuspenseBoundary(destination, responseState) {\n  return writeChunkAndReturn(destination, endSuspenseBoundary);\n}\nvar startSegmentHTML = stringToPrecomputedChunk('<div hidden id=\"');\nvar startSegmentHTML2 = stringToPrecomputedChunk('\">');\nvar endSegmentHTML = stringToPrecomputedChunk('</div>');\nvar startSegmentSVG = stringToPrecomputedChunk('<svg aria-hidden=\"true\" style=\"display:none\" id=\"');\nvar startSegmentSVG2 = stringToPrecomputedChunk('\">');\nvar endSegmentSVG = stringToPrecomputedChunk('</svg>');\nvar startSegmentMathML = stringToPrecomputedChunk('<math aria-hidden=\"true\" style=\"display:none\" id=\"');\nvar startSegmentMathML2 = stringToPrecomputedChunk('\">');\nvar endSegmentMathML = stringToPrecomputedChunk('</math>');\nvar startSegmentTable = stringToPrecomputedChunk('<table hidden id=\"');\nvar startSegmentTable2 = stringToPrecomputedChunk('\">');\nvar endSegmentTable = stringToPrecomputedChunk('</table>');\nvar startSegmentTableBody = stringToPrecomputedChunk('<table hidden><tbody id=\"');\nvar startSegmentTableBody2 = stringToPrecomputedChunk('\">');\nvar endSegmentTableBody = stringToPrecomputedChunk('</tbody></table>');\nvar startSegmentTableRow = stringToPrecomputedChunk('<table hidden><tr id=\"');\nvar startSegmentTableRow2 = stringToPrecomputedChunk('\">');\nvar endSegmentTableRow = stringToPrecomputedChunk('</tr></table>');\nvar startSegmentColGroup = stringToPrecomputedChunk('<table hidden><colgroup id=\"');\nvar startSegmentColGroup2 = stringToPrecomputedChunk('\">');\nvar endSegmentColGroup = stringToPrecomputedChunk('</colgroup></table>');\nfunction writeStartSegment(destination, responseState, formatContext, id) {\n  switch (formatContext.insertionMode) {\n    case ROOT_HTML_MODE:\n    case HTML_MODE:\n      {\n        writeChunk(destination, startSegmentHTML);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentHTML2);\n      }\n\n    case SVG_MODE:\n      {\n        writeChunk(destination, startSegmentSVG);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentSVG2);\n      }\n\n    case MATHML_MODE:\n      {\n        writeChunk(destination, startSegmentMathML);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentMathML2);\n      }\n\n    case HTML_TABLE_MODE:\n      {\n        writeChunk(destination, startSegmentTable);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTable2);\n      }\n    // TODO: For the rest of these, there will be extra wrapper nodes that never\n    // get deleted from the document. We need to delete the table too as part\n    // of the injected scripts. They are invisible though so it's not too terrible\n    // and it's kind of an edge case to suspend in a table. Totally supported though.\n\n    case HTML_TABLE_BODY_MODE:\n      {\n        writeChunk(destination, startSegmentTableBody);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTableBody2);\n      }\n\n    case HTML_TABLE_ROW_MODE:\n      {\n        writeChunk(destination, startSegmentTableRow);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentTableRow2);\n      }\n\n    case HTML_COLGROUP_MODE:\n      {\n        writeChunk(destination, startSegmentColGroup);\n        writeChunk(destination, responseState.segmentPrefix);\n        writeChunk(destination, stringToChunk(id.toString(16)));\n        return writeChunkAndReturn(destination, startSegmentColGroup2);\n      }\n\n    default:\n      {\n        throw new Error('Unknown insertion mode. This is a bug in React.');\n      }\n  }\n}\nfunction writeEndSegment(destination, formatContext) {\n  switch (formatContext.insertionMode) {\n    case ROOT_HTML_MODE:\n    case HTML_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentHTML);\n      }\n\n    case SVG_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentSVG);\n      }\n\n    case MATHML_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentMathML);\n      }\n\n    case HTML_TABLE_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTable);\n      }\n\n    case HTML_TABLE_BODY_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTableBody);\n      }\n\n    case HTML_TABLE_ROW_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentTableRow);\n      }\n\n    case HTML_COLGROUP_MODE:\n      {\n        return writeChunkAndReturn(destination, endSegmentColGroup);\n      }\n\n    default:\n      {\n        throw new Error('Unknown insertion mode. This is a bug in React.');\n      }\n  }\n} // Instruction Set\n// The following code is the source scripts that we then minify and inline below,\n// with renamed function names that we hope don't collide:\n// const COMMENT_NODE = 8;\n// const SUSPENSE_START_DATA = '$';\n// const SUSPENSE_END_DATA = '/$';\n// const SUSPENSE_PENDING_START_DATA = '$?';\n// const SUSPENSE_FALLBACK_START_DATA = '$!';\n//\n// function clientRenderBoundary(suspenseBoundaryID, errorDigest, errorMsg, errorComponentStack) {\n//   // Find the fallback's first element.\n//   const suspenseIdNode = document.getElementById(suspenseBoundaryID);\n//   if (!suspenseIdNode) {\n//     // The user must have already navigated away from this tree.\n//     // E.g. because the parent was hydrated.\n//     return;\n//   }\n//   // Find the boundary around the fallback. This is always the previous node.\n//   const suspenseNode = suspenseIdNode.previousSibling;\n//   // Tag it to be client rendered.\n//   suspenseNode.data = SUSPENSE_FALLBACK_START_DATA;\n//   // assign error metadata to first sibling\n//   let dataset = suspenseIdNode.dataset;\n//   if (errorDigest) dataset.dgst = errorDigest;\n//   if (errorMsg) dataset.msg = errorMsg;\n//   if (errorComponentStack) dataset.stck = errorComponentStack;\n//   // Tell React to retry it if the parent already hydrated.\n//   if (suspenseNode._reactRetry) {\n//     suspenseNode._reactRetry();\n//   }\n// }\n//\n// function completeBoundary(suspenseBoundaryID, contentID) {\n//   // Find the fallback's first element.\n//   const suspenseIdNode = document.getElementById(suspenseBoundaryID);\n//   const contentNode = document.getElementById(contentID);\n//   // We'll detach the content node so that regardless of what happens next we don't leave in the tree.\n//   // This might also help by not causing recalcing each time we move a child from here to the target.\n//   contentNode.parentNode.removeChild(contentNode);\n//   if (!suspenseIdNode) {\n//     // The user must have already navigated away from this tree.\n//     // E.g. because the parent was hydrated. That's fine there's nothing to do\n//     // but we have to make sure that we already deleted the container node.\n//     return;\n//   }\n//   // Find the boundary around the fallback. This is always the previous node.\n//   const suspenseNode = suspenseIdNode.previousSibling;\n//\n//   // Clear all the existing children. This is complicated because\n//   // there can be embedded Suspense boundaries in the fallback.\n//   // This is similar to clearSuspenseBoundary in ReactDOMHostConfig.\n//   // TODO: We could avoid this if we never emitted suspense boundaries in fallback trees.\n//   // They never hydrate anyway. However, currently we support incrementally loading the fallback.\n//   const parentInstance = suspenseNode.parentNode;\n//   let node = suspenseNode.nextSibling;\n//   let depth = 0;\n//   do {\n//     if (node && node.nodeType === COMMENT_NODE) {\n//       const data = node.data;\n//       if (data === SUSPENSE_END_DATA) {\n//         if (depth === 0) {\n//           break;\n//         } else {\n//           depth--;\n//         }\n//       } else if (\n//         data === SUSPENSE_START_DATA ||\n//         data === SUSPENSE_PENDING_START_DATA ||\n//         data === SUSPENSE_FALLBACK_START_DATA\n//       ) {\n//         depth++;\n//       }\n//     }\n//\n//     const nextNode = node.nextSibling;\n//     parentInstance.removeChild(node);\n//     node = nextNode;\n//   } while (node);\n//\n//   const endOfBoundary = node;\n//\n//   // Insert all the children from the contentNode between the start and end of suspense boundary.\n//   while (contentNode.firstChild) {\n//     parentInstance.insertBefore(contentNode.firstChild, endOfBoundary);\n//   }\n//   suspenseNode.data = SUSPENSE_START_DATA;\n//   if (suspenseNode._reactRetry) {\n//     suspenseNode._reactRetry();\n//   }\n// }\n//\n// function completeSegment(containerID, placeholderID) {\n//   const segmentContainer = document.getElementById(containerID);\n//   const placeholderNode = document.getElementById(placeholderID);\n//   // We always expect both nodes to exist here because, while we might\n//   // have navigated away from the main tree, we still expect the detached\n//   // tree to exist.\n//   segmentContainer.parentNode.removeChild(segmentContainer);\n//   while (segmentContainer.firstChild) {\n//     placeholderNode.parentNode.insertBefore(\n//       segmentContainer.firstChild,\n//       placeholderNode,\n//     );\n//   }\n//   placeholderNode.parentNode.removeChild(placeholderNode);\n// }\n\nvar completeSegmentFunction = 'function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}';\nvar completeBoundaryFunction = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}}';\nvar clientRenderFunction = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}';\nvar completeSegmentScript1Full = stringToPrecomputedChunk(completeSegmentFunction + ';$RS(\"');\nvar completeSegmentScript1Partial = stringToPrecomputedChunk('$RS(\"');\nvar completeSegmentScript2 = stringToPrecomputedChunk('\",\"');\nvar completeSegmentScript3 = stringToPrecomputedChunk('\")</script>');\nfunction writeCompletedSegmentInstruction(destination, responseState, contentSegmentID) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentCompleteSegmentFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentCompleteSegmentFunction = true;\n    writeChunk(destination, completeSegmentScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, completeSegmentScript1Partial);\n  }\n\n  writeChunk(destination, responseState.segmentPrefix);\n  var formattedID = stringToChunk(contentSegmentID.toString(16));\n  writeChunk(destination, formattedID);\n  writeChunk(destination, completeSegmentScript2);\n  writeChunk(destination, responseState.placeholderPrefix);\n  writeChunk(destination, formattedID);\n  return writeChunkAndReturn(destination, completeSegmentScript3);\n}\nvar completeBoundaryScript1Full = stringToPrecomputedChunk(completeBoundaryFunction + ';$RC(\"');\nvar completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC(\"');\nvar completeBoundaryScript2 = stringToPrecomputedChunk('\",\"');\nvar completeBoundaryScript3 = stringToPrecomputedChunk('\")</script>');\nfunction writeCompletedBoundaryInstruction(destination, responseState, boundaryID, contentSegmentID) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentCompleteBoundaryFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentCompleteBoundaryFunction = true;\n    writeChunk(destination, completeBoundaryScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, completeBoundaryScript1Partial);\n  }\n\n  if (boundaryID === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  var formattedContentID = stringToChunk(contentSegmentID.toString(16));\n  writeChunk(destination, boundaryID);\n  writeChunk(destination, completeBoundaryScript2);\n  writeChunk(destination, responseState.segmentPrefix);\n  writeChunk(destination, formattedContentID);\n  return writeChunkAndReturn(destination, completeBoundaryScript3);\n}\nvar clientRenderScript1Full = stringToPrecomputedChunk(clientRenderFunction + ';$RX(\"');\nvar clientRenderScript1Partial = stringToPrecomputedChunk('$RX(\"');\nvar clientRenderScript1A = stringToPrecomputedChunk('\"');\nvar clientRenderScript2 = stringToPrecomputedChunk(')</script>');\nvar clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(',');\nfunction writeClientRenderBoundaryInstruction(destination, responseState, boundaryID, errorDigest, errorMessage, errorComponentStack) {\n  writeChunk(destination, responseState.startInlineScript);\n\n  if (!responseState.sentClientRenderFunction) {\n    // The first time we write this, we'll need to include the full implementation.\n    responseState.sentClientRenderFunction = true;\n    writeChunk(destination, clientRenderScript1Full);\n  } else {\n    // Future calls can just reuse the same function.\n    writeChunk(destination, clientRenderScript1Partial);\n  }\n\n  if (boundaryID === null) {\n    throw new Error('An ID must have been assigned before we can complete the boundary.');\n  }\n\n  writeChunk(destination, boundaryID);\n  writeChunk(destination, clientRenderScript1A);\n\n  if (errorDigest || errorMessage || errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorDigest || '')));\n  }\n\n  if (errorMessage || errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorMessage || '')));\n  }\n\n  if (errorComponentStack) {\n    writeChunk(destination, clientRenderErrorScriptArgInterstitial);\n    writeChunk(destination, stringToChunk(escapeJSStringsForInstructionScripts(errorComponentStack)));\n  }\n\n  return writeChunkAndReturn(destination, clientRenderScript2);\n}\nvar regexForJSStringsInScripts = /[<\\u2028\\u2029]/g;\n\nfunction escapeJSStringsForInstructionScripts(input) {\n  var escaped = JSON.stringify(input);\n  return escaped.replace(regexForJSStringsInScripts, function (match) {\n    switch (match) {\n      // santizing breaking out of strings and script tags\n      case '<':\n        return \"\\\\u003c\";\n\n      case \"\\u2028\":\n        return \"\\\\u2028\";\n\n      case \"\\u2029\":\n        return \"\\\\u2029\";\n\n      default:\n        {\n          // eslint-disable-next-line react-internal/prod-error-codes\n          throw new Error('escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React');\n        }\n    }\n  });\n}\n\nvar assign = Object.assign;\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_SCOPE_TYPE = Symbol.for('react.scope');\nvar REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');\nvar REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');\nvar REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\n\nfunction describeClassComponentFrame(ctor, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(ctor, true);\n  }\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nvar warnedAboutMissingGetChildContext;\n\n{\n  warnedAboutMissingGetChildContext = {};\n}\n\nvar emptyContextObject = {};\n\n{\n  Object.freeze(emptyContextObject);\n}\n\nfunction getMaskedContext(type, unmaskedContext) {\n  {\n    var contextTypes = type.contextTypes;\n\n    if (!contextTypes) {\n      return emptyContextObject;\n    }\n\n    var context = {};\n\n    for (var key in contextTypes) {\n      context[key] = unmaskedContext[key];\n    }\n\n    {\n      var name = getComponentNameFromType(type) || 'Unknown';\n      checkPropTypes(contextTypes, context, 'context', name);\n    }\n\n    return context;\n  }\n}\nfunction processChildContext(instance, type, parentContext, childContextTypes) {\n  {\n    // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n    // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n    if (typeof instance.getChildContext !== 'function') {\n      {\n        var componentName = getComponentNameFromType(type) || 'Unknown';\n\n        if (!warnedAboutMissingGetChildContext[componentName]) {\n          warnedAboutMissingGetChildContext[componentName] = true;\n\n          error('%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.', componentName, componentName);\n        }\n      }\n\n      return parentContext;\n    }\n\n    var childContext = instance.getChildContext();\n\n    for (var contextKey in childContext) {\n      if (!(contextKey in childContextTypes)) {\n        throw new Error((getComponentNameFromType(type) || 'Unknown') + \".getChildContext(): key \\\"\" + contextKey + \"\\\" is not defined in childContextTypes.\");\n      }\n    }\n\n    {\n      var name = getComponentNameFromType(type) || 'Unknown';\n      checkPropTypes(childContextTypes, childContext, 'child context', name);\n    }\n\n    return assign({}, parentContext, childContext);\n  }\n}\n\nvar rendererSigil;\n\n{\n  // Use this to detect multiple renderers using the same context\n  rendererSigil = {};\n} // Used to store the parent path of all context overrides in a shared linked list.\n// Forming a reverse tree.\n\n\nvar rootContextSnapshot = null; // We assume that this runtime owns the \"current\" field on all ReactContext instances.\n// This global (actually thread local) state represents what state all those \"current\",\n// fields are currently in.\n\nvar currentActiveSnapshot = null;\n\nfunction popNode(prev) {\n  {\n    prev.context._currentValue = prev.parentValue;\n  }\n}\n\nfunction pushNode(next) {\n  {\n    next.context._currentValue = next.value;\n  }\n}\n\nfunction popToNearestCommonAncestor(prev, next) {\n  if (prev === next) ; else {\n    popNode(prev);\n    var parentPrev = prev.parent;\n    var parentNext = next.parent;\n\n    if (parentPrev === null) {\n      if (parentNext !== null) {\n        throw new Error('The stacks must reach the root at the same time. This is a bug in React.');\n      }\n    } else {\n      if (parentNext === null) {\n        throw new Error('The stacks must reach the root at the same time. This is a bug in React.');\n      }\n\n      popToNearestCommonAncestor(parentPrev, parentNext);\n    } // On the way back, we push the new ones that weren't common.\n\n\n    pushNode(next);\n  }\n}\n\nfunction popAllPrevious(prev) {\n  popNode(prev);\n  var parentPrev = prev.parent;\n\n  if (parentPrev !== null) {\n    popAllPrevious(parentPrev);\n  }\n}\n\nfunction pushAllNext(next) {\n  var parentNext = next.parent;\n\n  if (parentNext !== null) {\n    pushAllNext(parentNext);\n  }\n\n  pushNode(next);\n}\n\nfunction popPreviousToCommonLevel(prev, next) {\n  popNode(prev);\n  var parentPrev = prev.parent;\n\n  if (parentPrev === null) {\n    throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');\n  }\n\n  if (parentPrev.depth === next.depth) {\n    // We found the same level. Now we just need to find a shared ancestor.\n    popToNearestCommonAncestor(parentPrev, next);\n  } else {\n    // We must still be deeper.\n    popPreviousToCommonLevel(parentPrev, next);\n  }\n}\n\nfunction popNextToCommonLevel(prev, next) {\n  var parentNext = next.parent;\n\n  if (parentNext === null) {\n    throw new Error('The depth must equal at least at zero before reaching the root. This is a bug in React.');\n  }\n\n  if (prev.depth === parentNext.depth) {\n    // We found the same level. Now we just need to find a shared ancestor.\n    popToNearestCommonAncestor(prev, parentNext);\n  } else {\n    // We must still be deeper.\n    popNextToCommonLevel(prev, parentNext);\n  }\n\n  pushNode(next);\n} // Perform context switching to the new snapshot.\n// To make it cheap to read many contexts, while not suspending, we make the switch eagerly by\n// updating all the context's current values. That way reads, always just read the current value.\n// At the cost of updating contexts even if they're never read by this subtree.\n\n\nfunction switchContext(newSnapshot) {\n  // The basic algorithm we need to do is to pop back any contexts that are no longer on the stack.\n  // We also need to update any new contexts that are now on the stack with the deepest value.\n  // The easiest way to update new contexts is to just reapply them in reverse order from the\n  // perspective of the backpointers. To avoid allocating a lot when switching, we use the stack\n  // for that. Therefore this algorithm is recursive.\n  // 1) First we pop which ever snapshot tree was deepest. Popping old contexts as we go.\n  // 2) Then we find the nearest common ancestor from there. Popping old contexts as we go.\n  // 3) Then we reapply new contexts on the way back up the stack.\n  var prev = currentActiveSnapshot;\n  var next = newSnapshot;\n\n  if (prev !== next) {\n    if (prev === null) {\n      // $FlowFixMe: This has to be non-null since it's not equal to prev.\n      pushAllNext(next);\n    } else if (next === null) {\n      popAllPrevious(prev);\n    } else if (prev.depth === next.depth) {\n      popToNearestCommonAncestor(prev, next);\n    } else if (prev.depth > next.depth) {\n      popPreviousToCommonLevel(prev, next);\n    } else {\n      popNextToCommonLevel(prev, next);\n    }\n\n    currentActiveSnapshot = next;\n  }\n}\nfunction pushProvider(context, nextValue) {\n  var prevValue;\n\n  {\n    prevValue = context._currentValue;\n    context._currentValue = nextValue;\n\n    {\n      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer = rendererSigil;\n    }\n  }\n\n  var prevNode = currentActiveSnapshot;\n  var newNode = {\n    parent: prevNode,\n    depth: prevNode === null ? 0 : prevNode.depth + 1,\n    context: context,\n    parentValue: prevValue,\n    value: nextValue\n  };\n  currentActiveSnapshot = newNode;\n  return newNode;\n}\nfunction popProvider(context) {\n  var prevSnapshot = currentActiveSnapshot;\n\n  if (prevSnapshot === null) {\n    throw new Error('Tried to pop a Context at the root of the app. This is a bug in React.');\n  }\n\n  {\n    if (prevSnapshot.context !== context) {\n      error('The parent context is not the expected context. This is probably a bug in React.');\n    }\n  }\n\n  {\n    var value = prevSnapshot.parentValue;\n\n    if (value === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) {\n      prevSnapshot.context._currentValue = prevSnapshot.context._defaultValue;\n    } else {\n      prevSnapshot.context._currentValue = value;\n    }\n\n    {\n      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer = rendererSigil;\n    }\n  }\n\n  return currentActiveSnapshot = prevSnapshot.parent;\n}\nfunction getActiveContext() {\n  return currentActiveSnapshot;\n}\nfunction readContext(context) {\n  var value =  context._currentValue ;\n  return value;\n}\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\nfunction get(key) {\n  return key._reactInternals;\n}\nfunction set(key, value) {\n  key._reactInternals = value;\n}\n\nvar didWarnAboutNoopUpdateForComponent = {};\nvar didWarnAboutDeprecatedWillMount = {};\nvar didWarnAboutUninitializedState;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;\nvar didWarnAboutLegacyLifecyclesAndDerivedState;\nvar didWarnAboutUndefinedDerivedState;\nvar warnOnUndefinedDerivedState;\nvar warnOnInvalidCallback;\nvar didWarnAboutDirectlyAssigningPropsToState;\nvar didWarnAboutContextTypeAndContextTypes;\nvar didWarnAboutInvalidateContextType;\n\n{\n  didWarnAboutUninitializedState = new Set();\n  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();\n  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();\n  didWarnAboutDirectlyAssigningPropsToState = new Set();\n  didWarnAboutUndefinedDerivedState = new Set();\n  didWarnAboutContextTypeAndContextTypes = new Set();\n  didWarnAboutInvalidateContextType = new Set();\n  var didWarnOnInvalidCallback = new Set();\n\n  warnOnInvalidCallback = function (callback, callerName) {\n    if (callback === null || typeof callback === 'function') {\n      return;\n    }\n\n    var key = callerName + '_' + callback;\n\n    if (!didWarnOnInvalidCallback.has(key)) {\n      didWarnOnInvalidCallback.add(key);\n\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  };\n\n  warnOnUndefinedDerivedState = function (type, partialState) {\n    if (partialState === undefined) {\n      var componentName = getComponentNameFromType(type) || 'Component';\n\n      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {\n        didWarnAboutUndefinedDerivedState.add(componentName);\n\n        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n      }\n    }\n  };\n}\n\nfunction warnNoop(publicInstance, callerName) {\n  {\n    var _constructor = publicInstance.constructor;\n    var componentName = _constructor && getComponentNameFromType(_constructor) || 'ReactClass';\n    var warningKey = componentName + '.' + callerName;\n\n    if (didWarnAboutNoopUpdateForComponent[warningKey]) {\n      return;\n    }\n\n    error('%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op.\\n\\nPlease check the code for the %s component.', callerName, callerName, componentName);\n\n    didWarnAboutNoopUpdateForComponent[warningKey] = true;\n  }\n}\n\nvar classComponentUpdater = {\n  isMounted: function (inst) {\n    return false;\n  },\n  enqueueSetState: function (inst, payload, callback) {\n    var internals = get(inst);\n\n    if (internals.queue === null) {\n      warnNoop(inst, 'setState');\n    } else {\n      internals.queue.push(payload);\n\n      {\n        if (callback !== undefined && callback !== null) {\n          warnOnInvalidCallback(callback, 'setState');\n        }\n      }\n    }\n  },\n  enqueueReplaceState: function (inst, payload, callback) {\n    var internals = get(inst);\n    internals.replace = true;\n    internals.queue = [payload];\n\n    {\n      if (callback !== undefined && callback !== null) {\n        warnOnInvalidCallback(callback, 'setState');\n      }\n    }\n  },\n  enqueueForceUpdate: function (inst, callback) {\n    var internals = get(inst);\n\n    if (internals.queue === null) {\n      warnNoop(inst, 'forceUpdate');\n    } else {\n      {\n        if (callback !== undefined && callback !== null) {\n          warnOnInvalidCallback(callback, 'setState');\n        }\n      }\n    }\n  }\n};\n\nfunction applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, prevState, nextProps) {\n  var partialState = getDerivedStateFromProps(nextProps, prevState);\n\n  {\n    warnOnUndefinedDerivedState(ctor, partialState);\n  } // Merge the partial state and the previous state.\n\n\n  var newState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);\n  return newState;\n}\n\nfunction constructClassInstance(ctor, props, maskedLegacyContext) {\n  var context = emptyContextObject;\n  var contextType = ctor.contextType;\n\n  {\n    if ('contextType' in ctor) {\n      var isValid = // Allow null for conditional declaration\n      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>\n\n      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {\n        didWarnAboutInvalidateContextType.add(ctor);\n        var addendum = '';\n\n        if (contextType === undefined) {\n          addendum = ' 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.';\n        } else if (typeof contextType !== 'object') {\n          addendum = ' However, it is set to a ' + typeof contextType + '.';\n        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {\n          addendum = ' Did you accidentally pass the Context.Provider instead?';\n        } else if (contextType._context !== undefined) {\n          // <Context.Consumer>\n          addendum = ' Did you accidentally pass the Context.Consumer instead?';\n        } else {\n          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';\n        }\n\n        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);\n      }\n    }\n  }\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    context = readContext(contextType);\n  } else {\n    context = maskedLegacyContext;\n  }\n\n  var instance = new ctor(props, context);\n\n  {\n    if (typeof ctor.getDerivedStateFromProps === 'function' && (instance.state === null || instance.state === undefined)) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutUninitializedState.has(componentName)) {\n        didWarnAboutUninitializedState.add(componentName);\n\n        error('`%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.', componentName, instance.state === null ? 'null' : 'undefined', componentName);\n      }\n    } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n    // Warn about these lifecycles if they are present.\n    // Don't warn about react-lifecycles-compat polyfilled methods though.\n\n\n    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {\n      var foundWillMountName = null;\n      var foundWillReceivePropsName = null;\n      var foundWillUpdateName = null;\n\n      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n        foundWillMountName = 'componentWillMount';\n      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {\n        foundWillMountName = 'UNSAFE_componentWillMount';\n      }\n\n      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n        foundWillReceivePropsName = 'componentWillReceiveProps';\n      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n      }\n\n      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n        foundWillUpdateName = 'componentWillUpdate';\n      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n        foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n      }\n\n      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n        var _componentName = getComponentNameFromType(ctor) || 'Component';\n\n        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n\n        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {\n          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n\n          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? \"\\n  \" + foundWillMountName : '', foundWillReceivePropsName !== null ? \"\\n  \" + foundWillReceivePropsName : '', foundWillUpdateName !== null ? \"\\n  \" + foundWillUpdateName : '');\n        }\n      }\n    }\n  }\n\n  return instance;\n}\n\nfunction checkClassInstance(instance, ctor, newProps) {\n  {\n    var name = getComponentNameFromType(ctor) || 'Component';\n    var renderPresent = instance.render;\n\n    if (!renderPresent) {\n      if (ctor.prototype && typeof ctor.prototype.render === 'function') {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n      } else {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n      }\n    }\n\n    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {\n      error('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?', name);\n    }\n\n    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {\n      error('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.', name);\n    }\n\n    if (instance.propTypes) {\n      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);\n    }\n\n    if (instance.contextType) {\n      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);\n    }\n\n    {\n      if (instance.contextTypes) {\n        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);\n      }\n\n      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {\n        didWarnAboutContextTypeAndContextTypes.add(ctor);\n\n        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n      }\n    }\n\n    if (typeof instance.componentShouldUpdate === 'function') {\n      error('%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.', name);\n    }\n\n    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {\n      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');\n    }\n\n    if (typeof instance.componentDidUnmount === 'function') {\n      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);\n    }\n\n    if (typeof instance.componentDidReceiveProps === 'function') {\n      error('%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().', name);\n    }\n\n    if (typeof instance.componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);\n    }\n\n    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);\n    }\n\n    var hasMutatedProps = instance.props !== newProps;\n\n    if (instance.props !== undefined && hasMutatedProps) {\n      error('%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name);\n    }\n\n    if (instance.defaultProps) {\n      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {\n      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n\n      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));\n    }\n\n    if (typeof instance.getDerivedStateFromProps === 'function') {\n      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof instance.getDerivedStateFromError === 'function') {\n      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {\n      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);\n    }\n\n    var _state = instance.state;\n\n    if (_state && (typeof _state !== 'object' || isArray(_state))) {\n      error('%s.state: must be set to an object or null', name);\n    }\n\n    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {\n      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);\n    }\n  }\n}\n\nfunction callComponentWillMount(type, instance) {\n  var oldState = instance.state;\n\n  if (typeof instance.componentWillMount === 'function') {\n    {\n      if ( instance.componentWillMount.__suppressDeprecationWarning !== true) {\n        var componentName = getComponentNameFromType(type) || 'Unknown';\n\n        if (!didWarnAboutDeprecatedWillMount[componentName]) {\n          warn( // keep this warning in sync with ReactStrictModeWarning.js\n          'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move code from componentWillMount to componentDidMount (preferred in most cases) ' + 'or the constructor.\\n' + '\\nPlease update the following components: %s', componentName);\n\n          didWarnAboutDeprecatedWillMount[componentName] = true;\n        }\n      }\n    }\n\n    instance.componentWillMount();\n  }\n\n  if (typeof instance.UNSAFE_componentWillMount === 'function') {\n    instance.UNSAFE_componentWillMount();\n  }\n\n  if (oldState !== instance.state) {\n    {\n      error('%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentNameFromType(type) || 'Component');\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n}\n\nfunction processUpdateQueue(internalInstance, inst, props, maskedLegacyContext) {\n  if (internalInstance.queue !== null && internalInstance.queue.length > 0) {\n    var oldQueue = internalInstance.queue;\n    var oldReplace = internalInstance.replace;\n    internalInstance.queue = null;\n    internalInstance.replace = false;\n\n    if (oldReplace && oldQueue.length === 1) {\n      inst.state = oldQueue[0];\n    } else {\n      var nextState = oldReplace ? oldQueue[0] : inst.state;\n      var dontMutate = true;\n\n      for (var i = oldReplace ? 1 : 0; i < oldQueue.length; i++) {\n        var partial = oldQueue[i];\n        var partialState = typeof partial === 'function' ? partial.call(inst, nextState, props, maskedLegacyContext) : partial;\n\n        if (partialState != null) {\n          if (dontMutate) {\n            dontMutate = false;\n            nextState = assign({}, nextState, partialState);\n          } else {\n            assign(nextState, partialState);\n          }\n        }\n      }\n\n      inst.state = nextState;\n    }\n  } else {\n    internalInstance.queue = null;\n  }\n} // Invokes the mount life-cycles on a previously never rendered instance.\n\n\nfunction mountClassInstance(instance, ctor, newProps, maskedLegacyContext) {\n  {\n    checkClassInstance(instance, ctor, newProps);\n  }\n\n  var initialState = instance.state !== undefined ? instance.state : null;\n  instance.updater = classComponentUpdater;\n  instance.props = newProps;\n  instance.state = initialState; // We don't bother initializing the refs object on the server, since we're not going to resolve them anyway.\n  // The internal instance will be used to manage updates that happen during this mount.\n\n  var internalInstance = {\n    queue: [],\n    replace: false\n  };\n  set(instance, internalInstance);\n  var contextType = ctor.contextType;\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    instance.context = readContext(contextType);\n  } else {\n    instance.context = maskedLegacyContext;\n  }\n\n  {\n    if (instance.state === newProps) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {\n        didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n\n        error('%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.', componentName);\n      }\n    }\n  }\n\n  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n\n  if (typeof getDerivedStateFromProps === 'function') {\n    instance.state = applyDerivedStateFromProps(instance, ctor, getDerivedStateFromProps, initialState, newProps);\n  } // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n\n  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n    callComponentWillMount(ctor, instance); // If we had additional state updates during this life-cycle, let's\n    // process them now.\n\n    processUpdateQueue(internalInstance, instance, newProps, maskedLegacyContext);\n  }\n}\n\n// Ids are base 32 strings whose binary representation corresponds to the\n// position of a node in a tree.\n// Every time the tree forks into multiple children, we add additional bits to\n// the left of the sequence that represent the position of the child within the\n// current level of children.\n//\n//      00101       00010001011010101\n//      ╰─┬─╯       ╰───────┬───────╯\n//   Fork 5 of 20       Parent id\n//\n// The leading 0s are important. In the above example, you only need 3 bits to\n// represent slot 5. However, you need 5 bits to represent all the forks at\n// the current level, so we must account for the empty bits at the end.\n//\n// For this same reason, slots are 1-indexed instead of 0-indexed. Otherwise,\n// the zeroth id at a level would be indistinguishable from its parent.\n//\n// If a node has only one child, and does not materialize an id (i.e. does not\n// contain a useId hook), then we don't need to allocate any space in the\n// sequence. It's treated as a transparent indirection. For example, these two\n// trees produce the same ids:\n//\n// <>                          <>\n//   <Indirection>               <A />\n//     <A />                     <B />\n//   </Indirection>            </>\n//   <B />\n// </>\n//\n// However, we cannot skip any node that materializes an id. Otherwise, a parent\n// id that does not fork would be indistinguishable from its child id. For\n// example, this tree does not fork, but the parent and child must have\n// different ids.\n//\n// <Parent>\n//   <Child />\n// </Parent>\n//\n// To handle this scenario, every time we materialize an id, we allocate a\n// new level with a single slot. You can think of this as a fork with only one\n// prong, or an array of children with length 1.\n//\n// It's possible for the size of the sequence to exceed 32 bits, the max\n// size for bitwise operations. When this happens, we make more room by\n// converting the right part of the id to a string and storing it in an overflow\n// variable. We use a base 32 string representation, because 32 is the largest\n// power of 2 that is supported by toString(). We want the base to be large so\n// that the resulting ids are compact, and we want the base to be a power of 2\n// because every log2(base) bits corresponds to a single character, i.e. every\n// log2(32) = 5 bits. That means we can lop bits off the end 5 at a time without\n// affecting the final result.\nvar emptyTreeContext = {\n  id: 1,\n  overflow: ''\n};\nfunction getTreeId(context) {\n  var overflow = context.overflow;\n  var idWithLeadingBit = context.id;\n  var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);\n  return id.toString(32) + overflow;\n}\nfunction pushTreeContext(baseContext, totalChildren, index) {\n  var baseIdWithLeadingBit = baseContext.id;\n  var baseOverflow = baseContext.overflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part\n  // of the id; we use it to account for leading 0s.\n\n  var baseLength = getBitLength(baseIdWithLeadingBit) - 1;\n  var baseId = baseIdWithLeadingBit & ~(1 << baseLength);\n  var slot = index + 1;\n  var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into\n  // consideration the leading 1 we use to mark the end of the sequence.\n\n  if (length > 30) {\n    // We overflowed the bitwise-safe range. Fall back to slower algorithm.\n    // This branch assumes the length of the base id is greater than 5; it won't\n    // work for smaller ids, because you need 5 bits per character.\n    //\n    // We encode the id in multiple steps: first the base id, then the\n    // remaining digits.\n    //\n    // Each 5 bit sequence corresponds to a single base 32 character. So for\n    // example, if the current id is 23 bits long, we can convert 20 of those\n    // bits into a string of 4 characters, with 3 bits left over.\n    //\n    // First calculate how many bits in the base id represent a complete\n    // sequence of characters.\n    var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.\n\n    var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.\n\n    var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.\n\n    var restOfBaseId = baseId >> numberOfOverflowBits;\n    var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because\n    // we made more room, this time it won't overflow.\n\n    var restOfLength = getBitLength(totalChildren) + restOfBaseLength;\n    var restOfNewBits = slot << restOfBaseLength;\n    var id = restOfNewBits | restOfBaseId;\n    var overflow = newOverflow + baseOverflow;\n    return {\n      id: 1 << restOfLength | id,\n      overflow: overflow\n    };\n  } else {\n    // Normal path\n    var newBits = slot << baseLength;\n\n    var _id = newBits | baseId;\n\n    var _overflow = baseOverflow;\n    return {\n      id: 1 << length | _id,\n      overflow: _overflow\n    };\n  }\n}\n\nfunction getBitLength(number) {\n  return 32 - clz32(number);\n}\n\nfunction getLeadingBit(id) {\n  return 1 << getBitLength(id) - 1;\n} // TODO: Math.clz32 is supported in Node 12+. Maybe we can drop the fallback.\n\n\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.\n// Based on:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nfunction clz32Fallback(x) {\n  var asUint = x >>> 0;\n\n  if (asUint === 0) {\n    return 32;\n  }\n\n  return 31 - (log(asUint) / LN2 | 0) | 0;\n}\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n  ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar currentlyRenderingComponent = null;\nvar currentlyRenderingTask = null;\nvar firstWorkInProgressHook = null;\nvar workInProgressHook = null; // Whether the work-in-progress hook is a re-rendered hook\n\nvar isReRender = false; // Whether an update was scheduled during the currently executing render pass.\n\nvar didScheduleRenderPhaseUpdate = false; // Counts the number of useId hooks in this component\n\nvar localIdCounter = 0; // Lazily created map of render-phase updates\n\nvar renderPhaseUpdates = null; // Counter to prevent infinite loops.\n\nvar numberOfReRenders = 0;\nvar RE_RENDER_LIMIT = 25;\nvar isInHookUserCodeInDev = false; // In DEV, this is the name of the currently executing primitive hook\n\nvar currentHookNameInDev;\n\nfunction resolveCurrentlyRenderingComponent() {\n  if (currentlyRenderingComponent === null) {\n    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:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n  }\n\n  {\n    if (isInHookUserCodeInDev) {\n      error('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');\n    }\n  }\n\n  return currentlyRenderingComponent;\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n  if (prevDeps === null) {\n    {\n      error('%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.', currentHookNameInDev);\n    }\n\n    return false;\n  }\n\n  {\n    // Don't bother comparing lengths in prod because these arrays should be\n    // passed inline.\n    if (nextDeps.length !== prevDeps.length) {\n      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, \"[\" + nextDeps.join(', ') + \"]\", \"[\" + prevDeps.join(', ') + \"]\");\n    }\n  }\n\n  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {\n    if (objectIs(nextDeps[i], prevDeps[i])) {\n      continue;\n    }\n\n    return false;\n  }\n\n  return true;\n}\n\nfunction createHook() {\n  if (numberOfReRenders > 0) {\n    throw new Error('Rendered more hooks than during the previous render');\n  }\n\n  return {\n    memoizedState: null,\n    queue: null,\n    next: null\n  };\n}\n\nfunction createWorkInProgressHook() {\n  if (workInProgressHook === null) {\n    // This is the first hook in the list\n    if (firstWorkInProgressHook === null) {\n      isReRender = false;\n      firstWorkInProgressHook = workInProgressHook = createHook();\n    } else {\n      // There's already a work-in-progress. Reuse it.\n      isReRender = true;\n      workInProgressHook = firstWorkInProgressHook;\n    }\n  } else {\n    if (workInProgressHook.next === null) {\n      isReRender = false; // Append to the end of the list\n\n      workInProgressHook = workInProgressHook.next = createHook();\n    } else {\n      // There's already a work-in-progress. Reuse it.\n      isReRender = true;\n      workInProgressHook = workInProgressHook.next;\n    }\n  }\n\n  return workInProgressHook;\n}\n\nfunction prepareToUseHooks(task, componentIdentity) {\n  currentlyRenderingComponent = componentIdentity;\n  currentlyRenderingTask = task;\n\n  {\n    isInHookUserCodeInDev = false;\n  } // The following should have already been reset\n  // didScheduleRenderPhaseUpdate = false;\n  // localIdCounter = 0;\n  // firstWorkInProgressHook = null;\n  // numberOfReRenders = 0;\n  // renderPhaseUpdates = null;\n  // workInProgressHook = null;\n\n\n  localIdCounter = 0;\n}\nfunction finishHooks(Component, props, children, refOrContext) {\n  // This must be called after every function component to prevent hooks from\n  // being used in classes.\n  while (didScheduleRenderPhaseUpdate) {\n    // Updates were scheduled during the render phase. They are stored in\n    // the `renderPhaseUpdates` map. Call the component again, reusing the\n    // work-in-progress hooks and applying the additional updates on top. Keep\n    // restarting until no more updates are scheduled.\n    didScheduleRenderPhaseUpdate = false;\n    localIdCounter = 0;\n    numberOfReRenders += 1; // Start over from the beginning of the list\n\n    workInProgressHook = null;\n    children = Component(props, refOrContext);\n  }\n\n  resetHooksState();\n  return children;\n}\nfunction checkDidRenderIdHook() {\n  // This should be called immediately after every finishHooks call.\n  // Conceptually, it's part of the return value of finishHooks; it's only a\n  // separate function to avoid using an array tuple.\n  var didRenderIdHook = localIdCounter !== 0;\n  return didRenderIdHook;\n} // Reset the internal hooks state if an error occurs while rendering a component\n\nfunction resetHooksState() {\n  {\n    isInHookUserCodeInDev = false;\n  }\n\n  currentlyRenderingComponent = null;\n  currentlyRenderingTask = null;\n  didScheduleRenderPhaseUpdate = false;\n  firstWorkInProgressHook = null;\n  numberOfReRenders = 0;\n  renderPhaseUpdates = null;\n  workInProgressHook = null;\n}\n\nfunction readContext$1(context) {\n  {\n    if (isInHookUserCodeInDev) {\n      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().');\n    }\n  }\n\n  return readContext(context);\n}\n\nfunction useContext(context) {\n  {\n    currentHookNameInDev = 'useContext';\n  }\n\n  resolveCurrentlyRenderingComponent();\n  return readContext(context);\n}\n\nfunction basicStateReducer(state, action) {\n  // $FlowFixMe: Flow doesn't like mixed types\n  return typeof action === 'function' ? action(state) : action;\n}\n\nfunction useState(initialState) {\n  {\n    currentHookNameInDev = 'useState';\n  }\n\n  return useReducer(basicStateReducer, // useReducer has a special case to support lazy useState initializers\n  initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n  {\n    if (reducer !== basicStateReducer) {\n      currentHookNameInDev = 'useReducer';\n    }\n  }\n\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n\n  if (isReRender) {\n    // This is a re-render. Apply the new render phase updates to the previous\n    // current hook.\n    var queue = workInProgressHook.queue;\n    var dispatch = queue.dispatch;\n\n    if (renderPhaseUpdates !== null) {\n      // Render phase updates are stored in a map of queue -> linked list\n      var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n\n      if (firstRenderPhaseUpdate !== undefined) {\n        renderPhaseUpdates.delete(queue);\n        var newState = workInProgressHook.memoizedState;\n        var update = firstRenderPhaseUpdate;\n\n        do {\n          // Process this render phase update. We don't have to check the\n          // priority because it will always be the same as the current\n          // render's.\n          var action = update.action;\n\n          {\n            isInHookUserCodeInDev = true;\n          }\n\n          newState = reducer(newState, action);\n\n          {\n            isInHookUserCodeInDev = false;\n          }\n\n          update = update.next;\n        } while (update !== null);\n\n        workInProgressHook.memoizedState = newState;\n        return [newState, dispatch];\n      }\n    }\n\n    return [workInProgressHook.memoizedState, dispatch];\n  } else {\n    {\n      isInHookUserCodeInDev = true;\n    }\n\n    var initialState;\n\n    if (reducer === basicStateReducer) {\n      // Special case for `useState`.\n      initialState = typeof initialArg === 'function' ? initialArg() : initialArg;\n    } else {\n      initialState = init !== undefined ? init(initialArg) : initialArg;\n    }\n\n    {\n      isInHookUserCodeInDev = false;\n    }\n\n    workInProgressHook.memoizedState = initialState;\n\n    var _queue = workInProgressHook.queue = {\n      last: null,\n      dispatch: null\n    };\n\n    var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue);\n\n    return [workInProgressHook.memoizedState, _dispatch];\n  }\n}\n\nfunction useMemo(nextCreate, deps) {\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n\n  if (workInProgressHook !== null) {\n    var prevState = workInProgressHook.memoizedState;\n\n    if (prevState !== null) {\n      if (nextDeps !== null) {\n        var prevDeps = prevState[1];\n\n        if (areHookInputsEqual(nextDeps, prevDeps)) {\n          return prevState[0];\n        }\n      }\n    }\n  }\n\n  {\n    isInHookUserCodeInDev = true;\n  }\n\n  var nextValue = nextCreate();\n\n  {\n    isInHookUserCodeInDev = false;\n  }\n\n  workInProgressHook.memoizedState = [nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction useRef(initialValue) {\n  currentlyRenderingComponent = resolveCurrentlyRenderingComponent();\n  workInProgressHook = createWorkInProgressHook();\n  var previousRef = workInProgressHook.memoizedState;\n\n  if (previousRef === null) {\n    var ref = {\n      current: initialValue\n    };\n\n    {\n      Object.seal(ref);\n    }\n\n    workInProgressHook.memoizedState = ref;\n    return ref;\n  } else {\n    return previousRef;\n  }\n}\n\nfunction useLayoutEffect(create, inputs) {\n  {\n    currentHookNameInDev = 'useLayoutEffect';\n\n    error('useLayoutEffect does nothing on the server, because its effect cannot ' + \"be encoded into the server renderer's output format. This will lead \" + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client. ' + 'See https://reactjs.org/link/uselayouteffect-ssr for common fixes.');\n  }\n}\n\nfunction dispatchAction(componentIdentity, queue, action) {\n  if (numberOfReRenders >= RE_RENDER_LIMIT) {\n    throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');\n  }\n\n  if (componentIdentity === currentlyRenderingComponent) {\n    // This is a render phase update. Stash it in a lazily-created map of\n    // queue -> linked list of updates. After this render pass, we'll restart\n    // and apply the stashed updates on top of the work-in-progress hook.\n    didScheduleRenderPhaseUpdate = true;\n    var update = {\n      action: action,\n      next: null\n    };\n\n    if (renderPhaseUpdates === null) {\n      renderPhaseUpdates = new Map();\n    }\n\n    var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);\n\n    if (firstRenderPhaseUpdate === undefined) {\n      renderPhaseUpdates.set(queue, update);\n    } else {\n      // Append the update to the end of the list.\n      var lastRenderPhaseUpdate = firstRenderPhaseUpdate;\n\n      while (lastRenderPhaseUpdate.next !== null) {\n        lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;\n      }\n\n      lastRenderPhaseUpdate.next = update;\n    }\n  }\n}\n\nfunction useCallback(callback, deps) {\n  return useMemo(function () {\n    return callback;\n  }, deps);\n} // TODO Decide on how to implement this hook for server rendering.\n// If a mutation occurs during render, consider triggering a Suspense boundary\n// and falling back to client rendering.\n\nfunction useMutableSource(source, getSnapshot, subscribe) {\n  resolveCurrentlyRenderingComponent();\n  return getSnapshot(source._source);\n}\n\nfunction useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  if (getServerSnapshot === undefined) {\n    throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');\n  }\n\n  return getServerSnapshot();\n}\n\nfunction useDeferredValue(value) {\n  resolveCurrentlyRenderingComponent();\n  return value;\n}\n\nfunction unsupportedStartTransition() {\n  throw new Error('startTransition cannot be called during server rendering.');\n}\n\nfunction useTransition() {\n  resolveCurrentlyRenderingComponent();\n  return [false, unsupportedStartTransition];\n}\n\nfunction useId() {\n  var task = currentlyRenderingTask;\n  var treeId = getTreeId(task.treeContext);\n  var responseState = currentResponseState;\n\n  if (responseState === null) {\n    throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component.');\n  }\n\n  var localId = localIdCounter++;\n  return makeId(responseState, treeId, localId);\n}\n\nfunction noop() {}\n\nvar Dispatcher = {\n  readContext: readContext$1,\n  useContext: useContext,\n  useMemo: useMemo,\n  useReducer: useReducer,\n  useRef: useRef,\n  useState: useState,\n  useInsertionEffect: noop,\n  useLayoutEffect: useLayoutEffect,\n  useCallback: useCallback,\n  // useImperativeHandle is not run in the server environment\n  useImperativeHandle: noop,\n  // Effects are not run in the server environment.\n  useEffect: noop,\n  // Debugging effect\n  useDebugValue: noop,\n  useDeferredValue: useDeferredValue,\n  useTransition: useTransition,\n  useId: useId,\n  // Subscriptions are not setup in a server environment.\n  useMutableSource: useMutableSource,\n  useSyncExternalStore: useSyncExternalStore\n};\n\nvar currentResponseState = null;\nfunction setCurrentResponseState(responseState) {\n  currentResponseState = responseState;\n}\n\nfunction getStackByComponentStackNode(componentStack) {\n  try {\n    var info = '';\n    var node = componentStack;\n\n    do {\n      switch (node.tag) {\n        case 0:\n          info += describeBuiltInComponentFrame(node.type, null, null);\n          break;\n\n        case 1:\n          info += describeFunctionComponentFrame(node.type, null, null);\n          break;\n\n        case 2:\n          info += describeClassComponentFrame(node.type, null, null);\n          break;\n      }\n\n      node = node.parent;\n    } while (node);\n\n    return info;\n  } catch (x) {\n    return '\\nError generating stack: ' + x.message + '\\n' + x.stack;\n  }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\nvar PENDING = 0;\nvar COMPLETED = 1;\nvar FLUSHED = 2;\nvar ABORTED = 3;\nvar ERRORED = 4;\nvar OPEN = 0;\nvar CLOSING = 1;\nvar CLOSED = 2;\n// This is a default heuristic for how to split up the HTML content into progressive\n// loading. Our goal is to be able to display additional new content about every 500ms.\n// Faster than that is unnecessary and should be throttled on the client. It also\n// adds unnecessary overhead to do more splits. We don't know if it's a higher or lower\n// end device but higher end suffer less from the overhead than lower end does from\n// not getting small enough pieces. We error on the side of low end.\n// We base this on low end 3G speeds which is about 500kbits per second. We assume\n// that there can be a reasonable drop off from max bandwidth which leaves you with\n// as little as 80%. We can receive half of that each 500ms - at best. In practice,\n// a little bandwidth is lost to processing and contention - e.g. CSS and images that\n// are downloaded along with the main content. So we estimate about half of that to be\n// the lower end throughput. In other words, we expect that you can at least show\n// about 12.5kb of content per 500ms. Not counting starting latency for the first\n// paint.\n// 500 * 1024 / 8 * .8 * 0.5 / 2\nvar DEFAULT_PROGRESSIVE_CHUNK_SIZE = 12800;\n\nfunction defaultErrorHandler(error) {\n  console['error'](error); // Don't transform to our wrapper\n\n  return null;\n}\n\nfunction noop$1() {}\n\nfunction createRequest(children, responseState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError) {\n  var pingedTasks = [];\n  var abortSet = new Set();\n  var request = {\n    destination: null,\n    responseState: responseState,\n    progressiveChunkSize: progressiveChunkSize === undefined ? DEFAULT_PROGRESSIVE_CHUNK_SIZE : progressiveChunkSize,\n    status: OPEN,\n    fatalError: null,\n    nextSegmentId: 0,\n    allPendingTasks: 0,\n    pendingRootTasks: 0,\n    completedRootSegment: null,\n    abortableTasks: abortSet,\n    pingedTasks: pingedTasks,\n    clientRenderedBoundaries: [],\n    completedBoundaries: [],\n    partialBoundaries: [],\n    onError: onError === undefined ? defaultErrorHandler : onError,\n    onAllReady: onAllReady === undefined ? noop$1 : onAllReady,\n    onShellReady: onShellReady === undefined ? noop$1 : onShellReady,\n    onShellError: onShellError === undefined ? noop$1 : onShellError,\n    onFatalError: onFatalError === undefined ? noop$1 : onFatalError\n  }; // This segment represents the root fallback.\n\n  var rootSegment = createPendingSegment(request, 0, null, rootFormatContext, // Root segments are never embedded in Text on either edge\n  false, false); // There is no parent so conceptually, we're unblocked to flush this segment.\n\n  rootSegment.parentFlushed = true;\n  var rootTask = createTask(request, children, null, rootSegment, abortSet, emptyContextObject, rootContextSnapshot, emptyTreeContext);\n  pingedTasks.push(rootTask);\n  return request;\n}\n\nfunction pingTask(request, task) {\n  var pingedTasks = request.pingedTasks;\n  pingedTasks.push(task);\n\n  if (pingedTasks.length === 1) {\n    scheduleWork(function () {\n      return performWork(request);\n    });\n  }\n}\n\nfunction createSuspenseBoundary(request, fallbackAbortableTasks) {\n  return {\n    id: UNINITIALIZED_SUSPENSE_BOUNDARY_ID,\n    rootSegmentID: -1,\n    parentFlushed: false,\n    pendingTasks: 0,\n    forceClientRender: false,\n    completedSegments: [],\n    byteSize: 0,\n    fallbackAbortableTasks: fallbackAbortableTasks,\n    errorDigest: null\n  };\n}\n\nfunction createTask(request, node, blockedBoundary, blockedSegment, abortSet, legacyContext, context, treeContext) {\n  request.allPendingTasks++;\n\n  if (blockedBoundary === null) {\n    request.pendingRootTasks++;\n  } else {\n    blockedBoundary.pendingTasks++;\n  }\n\n  var task = {\n    node: node,\n    ping: function () {\n      return pingTask(request, task);\n    },\n    blockedBoundary: blockedBoundary,\n    blockedSegment: blockedSegment,\n    abortSet: abortSet,\n    legacyContext: legacyContext,\n    context: context,\n    treeContext: treeContext\n  };\n\n  {\n    task.componentStack = null;\n  }\n\n  abortSet.add(task);\n  return task;\n}\n\nfunction createPendingSegment(request, index, boundary, formatContext, lastPushedText, textEmbedded) {\n  return {\n    status: PENDING,\n    id: -1,\n    // lazily assigned later\n    index: index,\n    parentFlushed: false,\n    chunks: [],\n    children: [],\n    formatContext: formatContext,\n    boundary: boundary,\n    lastPushedText: lastPushedText,\n    textEmbedded: textEmbedded\n  };\n} // DEV-only global reference to the currently executing task\n\n\nvar currentTaskInDEV = null;\n\nfunction getCurrentStackInDEV() {\n  {\n    if (currentTaskInDEV === null || currentTaskInDEV.componentStack === null) {\n      return '';\n    }\n\n    return getStackByComponentStackNode(currentTaskInDEV.componentStack);\n  }\n}\n\nfunction pushBuiltInComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 0,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction pushFunctionComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 1,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction pushClassComponentStackInDEV(task, type) {\n  {\n    task.componentStack = {\n      tag: 2,\n      parent: task.componentStack,\n      type: type\n    };\n  }\n}\n\nfunction popComponentStackInDEV(task) {\n  {\n    if (task.componentStack === null) {\n      error('Unexpectedly popped too many stack frames. This is a bug in React.');\n    } else {\n      task.componentStack = task.componentStack.parent;\n    }\n  }\n} // stash the component stack of an unwinding error until it is processed\n\n\nvar lastBoundaryErrorComponentStackDev = null;\n\nfunction captureBoundaryErrorDetailsDev(boundary, error) {\n  {\n    var errorMessage;\n\n    if (typeof error === 'string') {\n      errorMessage = error;\n    } else if (error && typeof error.message === 'string') {\n      errorMessage = error.message;\n    } else {\n      // eslint-disable-next-line react-internal/safe-string-coercion\n      errorMessage = String(error);\n    }\n\n    var errorComponentStack = lastBoundaryErrorComponentStackDev || getCurrentStackInDEV();\n    lastBoundaryErrorComponentStackDev = null;\n    boundary.errorMessage = errorMessage;\n    boundary.errorComponentStack = errorComponentStack;\n  }\n}\n\nfunction logRecoverableError(request, error) {\n  // If this callback errors, we intentionally let that error bubble up to become a fatal error\n  // so that someone fixes the error reporting instead of hiding it.\n  var errorDigest = request.onError(error);\n\n  if (errorDigest != null && typeof errorDigest !== 'string') {\n    // eslint-disable-next-line react-internal/prod-error-codes\n    throw new Error(\"onError returned something with a type other than \\\"string\\\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \\\"\" + typeof errorDigest + \"\\\" instead\");\n  }\n\n  return errorDigest;\n}\n\nfunction fatalError(request, error) {\n  // This is called outside error handling code such as if the root errors outside\n  // a suspense boundary or if the root suspense boundary's fallback errors.\n  // It's also called if React itself or its host configs errors.\n  var onShellError = request.onShellError;\n  onShellError(error);\n  var onFatalError = request.onFatalError;\n  onFatalError(error);\n\n  if (request.destination !== null) {\n    request.status = CLOSED;\n    closeWithError(request.destination, error);\n  } else {\n    request.status = CLOSING;\n    request.fatalError = error;\n  }\n}\n\nfunction renderSuspenseBoundary(request, task, props) {\n  pushBuiltInComponentStackInDEV(task, 'Suspense');\n  var parentBoundary = task.blockedBoundary;\n  var parentSegment = task.blockedSegment; // Each time we enter a suspense boundary, we split out into a new segment for\n  // the fallback so that we can later replace that segment with the content.\n  // This also lets us split out the main content even if it doesn't suspend,\n  // in case it ends up generating a large subtree of content.\n\n  var fallback = props.fallback;\n  var content = props.children;\n  var fallbackAbortSet = new Set();\n  var newBoundary = createSuspenseBoundary(request, fallbackAbortSet);\n  var insertionIndex = parentSegment.chunks.length; // The children of the boundary segment is actually the fallback.\n\n  var boundarySegment = createPendingSegment(request, insertionIndex, newBoundary, parentSegment.formatContext, // boundaries never require text embedding at their edges because comment nodes bound them\n  false, false);\n  parentSegment.children.push(boundarySegment); // The parentSegment has a child Segment at this index so we reset the lastPushedText marker on the parent\n\n  parentSegment.lastPushedText = false; // This segment is the actual child content. We can start rendering that immediately.\n\n  var contentRootSegment = createPendingSegment(request, 0, null, parentSegment.formatContext, // boundaries never require text embedding at their edges because comment nodes bound them\n  false, false); // We mark the root segment as having its parent flushed. It's not really flushed but there is\n  // no parent segment so there's nothing to wait on.\n\n  contentRootSegment.parentFlushed = true; // Currently this is running synchronously. We could instead schedule this to pingedTasks.\n  // I suspect that there might be some efficiency benefits from not creating the suspended task\n  // and instead just using the stack if possible.\n  // TODO: Call this directly instead of messing with saving and restoring contexts.\n  // We can reuse the current context and task to render the content immediately without\n  // context switching. We just need to temporarily switch which boundary and which segment\n  // we're writing to. If something suspends, it'll spawn new suspended task with that context.\n\n  task.blockedBoundary = newBoundary;\n  task.blockedSegment = contentRootSegment;\n\n  try {\n    // We use the safe form because we don't handle suspending here. Only error handling.\n    renderNode(request, task, content);\n    pushSegmentFinale(contentRootSegment.chunks, request.responseState, contentRootSegment.lastPushedText, contentRootSegment.textEmbedded);\n    contentRootSegment.status = COMPLETED;\n    queueCompletedSegment(newBoundary, contentRootSegment);\n\n    if (newBoundary.pendingTasks === 0) {\n      // This must have been the last segment we were waiting on. This boundary is now complete.\n      // Therefore we won't need the fallback. We early return so that we don't have to create\n      // the fallback.\n      popComponentStackInDEV(task);\n      return;\n    }\n  } catch (error) {\n    contentRootSegment.status = ERRORED;\n    newBoundary.forceClientRender = true;\n    newBoundary.errorDigest = logRecoverableError(request, error);\n\n    {\n      captureBoundaryErrorDetailsDev(newBoundary, error);\n    } // We don't need to decrement any task numbers because we didn't spawn any new task.\n    // We don't need to schedule any task because we know the parent has written yet.\n    // We do need to fallthrough to create the fallback though.\n\n  } finally {\n    task.blockedBoundary = parentBoundary;\n    task.blockedSegment = parentSegment;\n  } // We create suspended task for the fallback because we don't want to actually work\n  // on it yet in case we finish the main content, so we queue for later.\n\n\n  var suspendedFallbackTask = createTask(request, fallback, parentBoundary, boundarySegment, fallbackAbortSet, task.legacyContext, task.context, task.treeContext);\n\n  {\n    suspendedFallbackTask.componentStack = task.componentStack;\n  } // TODO: This should be queued at a separate lower priority queue so that we only work\n  // on preparing fallbacks if we don't have any more main content to task on.\n\n\n  request.pingedTasks.push(suspendedFallbackTask);\n  popComponentStackInDEV(task);\n}\n\nfunction renderHostElement(request, task, type, props) {\n  pushBuiltInComponentStackInDEV(task, type);\n  var segment = task.blockedSegment;\n  var children = pushStartInstance(segment.chunks, type, props, request.responseState, segment.formatContext);\n  segment.lastPushedText = false;\n  var prevContext = segment.formatContext;\n  segment.formatContext = getChildFormatContext(prevContext, type, props); // We use the non-destructive form because if something suspends, we still\n  // need to pop back up and finish this subtree of HTML.\n\n  renderNode(request, task, children); // We expect that errors will fatal the whole task and that we don't need\n  // the correct context. Therefore this is not in a finally.\n\n  segment.formatContext = prevContext;\n  pushEndInstance(segment.chunks, type);\n  segment.lastPushedText = false;\n  popComponentStackInDEV(task);\n}\n\nfunction shouldConstruct$1(Component) {\n  return Component.prototype && Component.prototype.isReactComponent;\n}\n\nfunction renderWithHooks(request, task, Component, props, secondArg) {\n  var componentIdentity = {};\n  prepareToUseHooks(task, componentIdentity);\n  var result = Component(props, secondArg);\n  return finishHooks(Component, props, result, secondArg);\n}\n\nfunction finishClassComponent(request, task, instance, Component, props) {\n  var nextChildren = instance.render();\n\n  {\n    if (instance.props !== props) {\n      if (!didWarnAboutReassigningProps) {\n        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromType(Component) || 'a component');\n      }\n\n      didWarnAboutReassigningProps = true;\n    }\n  }\n\n  {\n    var childContextTypes = Component.childContextTypes;\n\n    if (childContextTypes !== null && childContextTypes !== undefined) {\n      var previousContext = task.legacyContext;\n      var mergedContext = processChildContext(instance, Component, previousContext, childContextTypes);\n      task.legacyContext = mergedContext;\n      renderNodeDestructive(request, task, nextChildren);\n      task.legacyContext = previousContext;\n      return;\n    }\n  }\n\n  renderNodeDestructive(request, task, nextChildren);\n}\n\nfunction renderClassComponent(request, task, Component, props) {\n  pushClassComponentStackInDEV(task, Component);\n  var maskedContext =  getMaskedContext(Component, task.legacyContext) ;\n  var instance = constructClassInstance(Component, props, maskedContext);\n  mountClassInstance(instance, Component, props, maskedContext);\n  finishClassComponent(request, task, instance, Component, props);\n  popComponentStackInDEV(task);\n}\n\nvar didWarnAboutBadClass = {};\nvar didWarnAboutModulePatternComponent = {};\nvar didWarnAboutContextTypeOnFunctionComponent = {};\nvar didWarnAboutGetDerivedStateOnFunctionComponent = {};\nvar didWarnAboutReassigningProps = false;\nvar didWarnAboutDefaultPropsOnFunctionComponent = {};\nvar didWarnAboutGenerators = false;\nvar didWarnAboutMaps = false;\nvar hasWarnedAboutUsingContextAsConsumer = false; // This would typically be a function component but we still support module pattern\n// components for some reason.\n\nfunction renderIndeterminateComponent(request, task, Component, props) {\n  var legacyContext;\n\n  {\n    legacyContext = getMaskedContext(Component, task.legacyContext);\n  }\n\n  pushFunctionComponentStackInDEV(task, Component);\n\n  {\n    if (Component.prototype && typeof Component.prototype.render === 'function') {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutBadClass[componentName]) {\n        error(\"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.', componentName, componentName);\n\n        didWarnAboutBadClass[componentName] = true;\n      }\n    }\n  }\n\n  var value = renderWithHooks(request, task, Component, props, legacyContext);\n  var hasId = checkDidRenderIdHook();\n\n  {\n    // Support for module components is deprecated and is removed behind a flag.\n    // Whether or not it would crash later, we want to show a good message in DEV first.\n    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n      var _componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName]) {\n        error('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.', _componentName, _componentName, _componentName);\n\n        didWarnAboutModulePatternComponent[_componentName] = true;\n      }\n    }\n  }\n\n  if ( // Run these checks in production only if the flag is off.\n  // Eventually we'll delete this branch altogether.\n   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n    {\n      var _componentName2 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName2]) {\n        error('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.', _componentName2, _componentName2, _componentName2);\n\n        didWarnAboutModulePatternComponent[_componentName2] = true;\n      }\n    }\n\n    mountClassInstance(value, Component, props, legacyContext);\n    finishClassComponent(request, task, value, Component, props);\n  } else {\n\n    {\n      validateFunctionComponentInDev(Component);\n    } // We're now successfully past this task, and we don't have to pop back to\n    // the previous task every again, so we can use the destructive recursive form.\n\n\n    if (hasId) {\n      // This component materialized an id. We treat this as its own level, with\n      // a single \"child\" slot.\n      var prevTreeContext = task.treeContext;\n      var totalChildren = 1;\n      var index = 0;\n      task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);\n\n      try {\n        renderNodeDestructive(request, task, value);\n      } finally {\n        task.treeContext = prevTreeContext;\n      }\n    } else {\n      renderNodeDestructive(request, task, value);\n    }\n  }\n\n  popComponentStackInDEV(task);\n}\n\nfunction validateFunctionComponentInDev(Component) {\n  {\n    if (Component) {\n      if (Component.childContextTypes) {\n        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');\n      }\n    }\n\n    if ( Component.defaultProps !== undefined) {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n        error('%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n        didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n      }\n    }\n\n    if (typeof Component.getDerivedStateFromProps === 'function') {\n      var _componentName3 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {\n        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);\n\n        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;\n      }\n    }\n\n    if (typeof Component.contextType === 'object' && Component.contextType !== null) {\n      var _componentName4 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {\n        error('%s: Function components do not support contextType.', _componentName4);\n\n        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;\n      }\n    }\n  }\n}\n\nfunction resolveDefaultProps(Component, baseProps) {\n  if (Component && Component.defaultProps) {\n    // Resolve default props. Taken from ReactElement\n    var props = assign({}, baseProps);\n    var defaultProps = Component.defaultProps;\n\n    for (var propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n\n    return props;\n  }\n\n  return baseProps;\n}\n\nfunction renderForwardRef(request, task, type, props, ref) {\n  pushFunctionComponentStackInDEV(task, type.render);\n  var children = renderWithHooks(request, task, type.render, props, ref);\n  var hasId = checkDidRenderIdHook();\n\n  if (hasId) {\n    // This component materialized an id. We treat this as its own level, with\n    // a single \"child\" slot.\n    var prevTreeContext = task.treeContext;\n    var totalChildren = 1;\n    var index = 0;\n    task.treeContext = pushTreeContext(prevTreeContext, totalChildren, index);\n\n    try {\n      renderNodeDestructive(request, task, children);\n    } finally {\n      task.treeContext = prevTreeContext;\n    }\n  } else {\n    renderNodeDestructive(request, task, children);\n  }\n\n  popComponentStackInDEV(task);\n}\n\nfunction renderMemo(request, task, type, props, ref) {\n  var innerType = type.type;\n  var resolvedProps = resolveDefaultProps(innerType, props);\n  renderElement(request, task, innerType, resolvedProps, ref);\n}\n\nfunction renderContextConsumer(request, task, context, props) {\n  // The logic below for Context differs depending on PROD or DEV mode. In\n  // DEV mode, we create a separate object for Context.Consumer that acts\n  // like a proxy to Context. This proxy object adds unnecessary code in PROD\n  // so we use the old behaviour (Context.Consumer references Context) to\n  // reduce size and overhead. The separate object references context via\n  // a property called \"_context\", which also gives us the ability to check\n  // in DEV mode if this property exists or not and warn if it does not.\n  {\n    if (context._context === undefined) {\n      // This may be because it's a Context (rather than a Consumer).\n      // Or it may be because it's older React where they're the same thing.\n      // We only want to warn if we're sure it's a new React.\n      if (context !== context.Consumer) {\n        if (!hasWarnedAboutUsingContextAsConsumer) {\n          hasWarnedAboutUsingContextAsConsumer = true;\n\n          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n        }\n      }\n    } else {\n      context = context._context;\n    }\n  }\n\n  var render = props.children;\n\n  {\n    if (typeof render !== 'function') {\n      error('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.');\n    }\n  }\n\n  var newValue = readContext(context);\n  var newChildren = render(newValue);\n  renderNodeDestructive(request, task, newChildren);\n}\n\nfunction renderContextProvider(request, task, type, props) {\n  var context = type._context;\n  var value = props.value;\n  var children = props.children;\n  var prevSnapshot;\n\n  {\n    prevSnapshot = task.context;\n  }\n\n  task.context = pushProvider(context, value);\n  renderNodeDestructive(request, task, children);\n  task.context = popProvider(context);\n\n  {\n    if (prevSnapshot !== task.context) {\n      error('Popping the context provider did not return back to the original snapshot. This is a bug in React.');\n    }\n  }\n}\n\nfunction renderLazyComponent(request, task, lazyComponent, props, ref) {\n  pushBuiltInComponentStackInDEV(task, 'Lazy');\n  var payload = lazyComponent._payload;\n  var init = lazyComponent._init;\n  var Component = init(payload);\n  var resolvedProps = resolveDefaultProps(Component, props);\n  renderElement(request, task, Component, resolvedProps, ref);\n  popComponentStackInDEV(task);\n}\n\nfunction renderElement(request, task, type, props, ref) {\n  if (typeof type === 'function') {\n    if (shouldConstruct$1(type)) {\n      renderClassComponent(request, task, type, props);\n      return;\n    } else {\n      renderIndeterminateComponent(request, task, type, props);\n      return;\n    }\n  }\n\n  if (typeof type === 'string') {\n    renderHostElement(request, task, type, props);\n    return;\n  }\n\n  switch (type) {\n    // TODO: LegacyHidden acts the same as a fragment. This only works\n    // because we currently assume that every instance of LegacyHidden is\n    // accompanied by a host component wrapper. In the hidden mode, the host\n    // component is given a `hidden` attribute, which ensures that the\n    // initial HTML is not visible. To support the use of LegacyHidden as a\n    // true fragment, without an extra DOM node, we would have to hide the\n    // initial HTML in some other way.\n    // TODO: Add REACT_OFFSCREEN_TYPE here too with the same capability.\n    case REACT_LEGACY_HIDDEN_TYPE:\n    case REACT_DEBUG_TRACING_MODE_TYPE:\n    case REACT_STRICT_MODE_TYPE:\n    case REACT_PROFILER_TYPE:\n    case REACT_FRAGMENT_TYPE:\n      {\n        renderNodeDestructive(request, task, props.children);\n        return;\n      }\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      {\n        pushBuiltInComponentStackInDEV(task, 'SuspenseList'); // TODO: SuspenseList should control the boundaries.\n\n        renderNodeDestructive(request, task, props.children);\n        popComponentStackInDEV(task);\n        return;\n      }\n\n    case REACT_SCOPE_TYPE:\n      {\n\n        throw new Error('ReactDOMServer does not yet support scope components.');\n      }\n    // eslint-disable-next-line-no-fallthrough\n\n    case REACT_SUSPENSE_TYPE:\n      {\n        {\n          renderSuspenseBoundary(request, task, props);\n        }\n\n        return;\n      }\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        {\n          renderForwardRef(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_MEMO_TYPE:\n        {\n          renderMemo(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_PROVIDER_TYPE:\n        {\n          renderContextProvider(request, task, type, props);\n          return;\n        }\n\n      case REACT_CONTEXT_TYPE:\n        {\n          renderContextConsumer(request, task, type, props);\n          return;\n        }\n\n      case REACT_LAZY_TYPE:\n        {\n          renderLazyComponent(request, task, type, props);\n          return;\n        }\n    }\n  }\n\n  var info = '';\n\n  {\n    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n      info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n    }\n  }\n\n  throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + (\"but got: \" + (type == null ? type : typeof type) + \".\" + info));\n}\n\nfunction validateIterable(iterable, iteratorFn) {\n  {\n    // We don't support rendering Generators because it's a mutation.\n    // See https://github.com/facebook/react/issues/12995\n    if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag\n    iterable[Symbol.toStringTag] === 'Generator') {\n      if (!didWarnAboutGenerators) {\n        error('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.');\n      }\n\n      didWarnAboutGenerators = true;\n    } // Warn about using Maps as children\n\n\n    if (iterable.entries === iteratorFn) {\n      if (!didWarnAboutMaps) {\n        error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n      }\n\n      didWarnAboutMaps = true;\n    }\n  }\n}\n\nfunction renderNodeDestructive(request, task, node) {\n  {\n    // In Dev we wrap renderNodeDestructiveImpl in a try / catch so we can capture\n    // a component stack at the right place in the tree. We don't do this in renderNode\n    // becuase it is not called at every layer of the tree and we may lose frames\n    try {\n      return renderNodeDestructiveImpl(request, task, node);\n    } catch (x) {\n      if (typeof x === 'object' && x !== null && typeof x.then === 'function') ; else {\n        // This is an error, stash the component stack if it is null.\n        lastBoundaryErrorComponentStackDev = lastBoundaryErrorComponentStackDev !== null ? lastBoundaryErrorComponentStackDev : getCurrentStackInDEV();\n      } // rethrow so normal suspense logic can handle thrown value accordingly\n\n\n      throw x;\n    }\n  }\n} // This function by it self renders a node and consumes the task by mutating it\n// to update the current execution state.\n\n\nfunction renderNodeDestructiveImpl(request, task, node) {\n  // Stash the node we're working on. We'll pick up from this task in case\n  // something suspends.\n  task.node = node; // Handle object types\n\n  if (typeof node === 'object' && node !== null) {\n    switch (node.$$typeof) {\n      case REACT_ELEMENT_TYPE:\n        {\n          var element = node;\n          var type = element.type;\n          var props = element.props;\n          var ref = element.ref;\n          renderElement(request, task, type, props, ref);\n          return;\n        }\n\n      case REACT_PORTAL_TYPE:\n        throw new Error('Portals are not currently supported by the server renderer. ' + 'Render them conditionally so that they only appear on the client render.');\n      // eslint-disable-next-line-no-fallthrough\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyNode = node;\n          var payload = lazyNode._payload;\n          var init = lazyNode._init;\n          var resolvedNode;\n\n          {\n            try {\n              resolvedNode = init(payload);\n            } catch (x) {\n              if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n                // this Lazy initializer is suspending. push a temporary frame onto the stack so it can be\n                // popped off in spawnNewSuspendedTask. This aligns stack behavior between Lazy in element position\n                // vs Component position. We do not want the frame for Errors so we exclusively do this in\n                // the wakeable branch\n                pushBuiltInComponentStackInDEV(task, 'Lazy');\n              }\n\n              throw x;\n            }\n          }\n\n          renderNodeDestructive(request, task, resolvedNode);\n          return;\n        }\n    }\n\n    if (isArray(node)) {\n      renderChildrenArray(request, task, node);\n      return;\n    }\n\n    var iteratorFn = getIteratorFn(node);\n\n    if (iteratorFn) {\n      {\n        validateIterable(node, iteratorFn);\n      }\n\n      var iterator = iteratorFn.call(node);\n\n      if (iterator) {\n        // We need to know how many total children are in this set, so that we\n        // can allocate enough id slots to acommodate them. So we must exhaust\n        // the iterator before we start recursively rendering the children.\n        // TODO: This is not great but I think it's inherent to the id\n        // generation algorithm.\n        var step = iterator.next(); // If there are not entries, we need to push an empty so we start by checking that.\n\n        if (!step.done) {\n          var children = [];\n\n          do {\n            children.push(step.value);\n            step = iterator.next();\n          } while (!step.done);\n\n          renderChildrenArray(request, task, children);\n          return;\n        }\n\n        return;\n      }\n    }\n\n    var childString = Object.prototype.toString.call(node);\n    throw new Error(\"Objects are not valid as a React child (found: \" + (childString === '[object Object]' ? 'object with keys {' + Object.keys(node).join(', ') + '}' : childString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n  }\n\n  if (typeof node === 'string') {\n    var segment = task.blockedSegment;\n    segment.lastPushedText = pushTextInstance(task.blockedSegment.chunks, node, request.responseState, segment.lastPushedText);\n    return;\n  }\n\n  if (typeof node === 'number') {\n    var _segment = task.blockedSegment;\n    _segment.lastPushedText = pushTextInstance(task.blockedSegment.chunks, '' + node, request.responseState, _segment.lastPushedText);\n    return;\n  }\n\n  {\n    if (typeof node === 'function') {\n      error('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.');\n    }\n  }\n}\n\nfunction renderChildrenArray(request, task, children) {\n  var totalChildren = children.length;\n\n  for (var i = 0; i < totalChildren; i++) {\n    var prevTreeContext = task.treeContext;\n    task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);\n\n    try {\n      // We need to use the non-destructive form so that we can safely pop back\n      // up and render the sibling if something suspends.\n      renderNode(request, task, children[i]);\n    } finally {\n      task.treeContext = prevTreeContext;\n    }\n  }\n}\n\nfunction spawnNewSuspendedTask(request, task, x) {\n  // Something suspended, we'll need to create a new segment and resolve it later.\n  var segment = task.blockedSegment;\n  var insertionIndex = segment.chunks.length;\n  var newSegment = createPendingSegment(request, insertionIndex, null, segment.formatContext, // Adopt the parent segment's leading text embed\n  segment.lastPushedText, // Assume we are text embedded at the trailing edge\n  true);\n  segment.children.push(newSegment); // Reset lastPushedText for current Segment since the new Segment \"consumed\" it\n\n  segment.lastPushedText = false;\n  var newTask = createTask(request, task.node, task.blockedBoundary, newSegment, task.abortSet, task.legacyContext, task.context, task.treeContext);\n\n  {\n    if (task.componentStack !== null) {\n      // We pop one task off the stack because the node that suspended will be tried again,\n      // which will add it back onto the stack.\n      newTask.componentStack = task.componentStack.parent;\n    }\n  }\n\n  var ping = newTask.ping;\n  x.then(ping, ping);\n} // This is a non-destructive form of rendering a node. If it suspends it spawns\n// a new task and restores the context of this task to what it was before.\n\n\nfunction renderNode(request, task, node) {\n  // TODO: Store segment.children.length here and reset it in case something\n  // suspended partially through writing something.\n  // Snapshot the current context in case something throws to interrupt the\n  // process.\n  var previousFormatContext = task.blockedSegment.formatContext;\n  var previousLegacyContext = task.legacyContext;\n  var previousContext = task.context;\n  var previousComponentStack = null;\n\n  {\n    previousComponentStack = task.componentStack;\n  }\n\n  try {\n    return renderNodeDestructive(request, task, node);\n  } catch (x) {\n    resetHooksState();\n\n    if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n      spawnNewSuspendedTask(request, task, x); // Restore the context. We assume that this will be restored by the inner\n      // functions in case nothing throws so we don't use \"finally\" here.\n\n      task.blockedSegment.formatContext = previousFormatContext;\n      task.legacyContext = previousLegacyContext;\n      task.context = previousContext; // Restore all active ReactContexts to what they were before.\n\n      switchContext(previousContext);\n\n      {\n        task.componentStack = previousComponentStack;\n      }\n\n      return;\n    } else {\n      // Restore the context. We assume that this will be restored by the inner\n      // functions in case nothing throws so we don't use \"finally\" here.\n      task.blockedSegment.formatContext = previousFormatContext;\n      task.legacyContext = previousLegacyContext;\n      task.context = previousContext; // Restore all active ReactContexts to what they were before.\n\n      switchContext(previousContext);\n\n      {\n        task.componentStack = previousComponentStack;\n      } // We assume that we don't need the correct context.\n      // Let's terminate the rest of the tree and don't render any siblings.\n\n\n      throw x;\n    }\n  }\n}\n\nfunction erroredTask(request, boundary, segment, error) {\n  // Report the error to a global handler.\n  var errorDigest = logRecoverableError(request, error);\n\n  if (boundary === null) {\n    fatalError(request, error);\n  } else {\n    boundary.pendingTasks--;\n\n    if (!boundary.forceClientRender) {\n      boundary.forceClientRender = true;\n      boundary.errorDigest = errorDigest;\n\n      {\n        captureBoundaryErrorDetailsDev(boundary, error);\n      } // Regardless of what happens next, this boundary won't be displayed,\n      // so we can flush it, if the parent already flushed.\n\n\n      if (boundary.parentFlushed) {\n        // We don't have a preference where in the queue this goes since it's likely\n        // to error on the client anyway. However, intentionally client-rendered\n        // boundaries should be flushed earlier so that they can start on the client.\n        // We reuse the same queue for errors.\n        request.clientRenderedBoundaries.push(boundary);\n      }\n    }\n  }\n\n  request.allPendingTasks--;\n\n  if (request.allPendingTasks === 0) {\n    var onAllReady = request.onAllReady;\n    onAllReady();\n  }\n}\n\nfunction abortTaskSoft(task) {\n  // This aborts task without aborting the parent boundary that it blocks.\n  // It's used for when we didn't need this task to complete the tree.\n  // If task was needed, then it should use abortTask instead.\n  var request = this;\n  var boundary = task.blockedBoundary;\n  var segment = task.blockedSegment;\n  segment.status = ABORTED;\n  finishedTask(request, boundary, segment);\n}\n\nfunction abortTask(task, request, reason) {\n  // This aborts the task and aborts the parent that it blocks, putting it into\n  // client rendered mode.\n  var boundary = task.blockedBoundary;\n  var segment = task.blockedSegment;\n  segment.status = ABORTED;\n\n  if (boundary === null) {\n    request.allPendingTasks--; // We didn't complete the root so we have nothing to show. We can close\n    // the request;\n\n    if (request.status !== CLOSED) {\n      request.status = CLOSED;\n\n      if (request.destination !== null) {\n        close(request.destination);\n      }\n    }\n  } else {\n    boundary.pendingTasks--;\n\n    if (!boundary.forceClientRender) {\n      boundary.forceClientRender = true;\n\n      var _error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason;\n\n      boundary.errorDigest = request.onError(_error);\n\n      {\n        var errorPrefix = 'The server did not finish this Suspense boundary: ';\n\n        if (_error && typeof _error.message === 'string') {\n          _error = errorPrefix + _error.message;\n        } else {\n          // eslint-disable-next-line react-internal/safe-string-coercion\n          _error = errorPrefix + String(_error);\n        }\n\n        var previousTaskInDev = currentTaskInDEV;\n        currentTaskInDEV = task;\n\n        try {\n          captureBoundaryErrorDetailsDev(boundary, _error);\n        } finally {\n          currentTaskInDEV = previousTaskInDev;\n        }\n      }\n\n      if (boundary.parentFlushed) {\n        request.clientRenderedBoundaries.push(boundary);\n      }\n    } // If this boundary was still pending then we haven't already cancelled its fallbacks.\n    // We'll need to abort the fallbacks, which will also error that parent boundary.\n\n\n    boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {\n      return abortTask(fallbackTask, request, reason);\n    });\n    boundary.fallbackAbortableTasks.clear();\n    request.allPendingTasks--;\n\n    if (request.allPendingTasks === 0) {\n      var onAllReady = request.onAllReady;\n      onAllReady();\n    }\n  }\n}\n\nfunction queueCompletedSegment(boundary, segment) {\n  if (segment.chunks.length === 0 && segment.children.length === 1 && segment.children[0].boundary === null) {\n    // This is an empty segment. There's nothing to write, so we can instead transfer the ID\n    // to the child. That way any existing references point to the child.\n    var childSegment = segment.children[0];\n    childSegment.id = segment.id;\n    childSegment.parentFlushed = true;\n\n    if (childSegment.status === COMPLETED) {\n      queueCompletedSegment(boundary, childSegment);\n    }\n  } else {\n    var completedSegments = boundary.completedSegments;\n    completedSegments.push(segment);\n  }\n}\n\nfunction finishedTask(request, boundary, segment) {\n  if (boundary === null) {\n    if (segment.parentFlushed) {\n      if (request.completedRootSegment !== null) {\n        throw new Error('There can only be one root segment. This is a bug in React.');\n      }\n\n      request.completedRootSegment = segment;\n    }\n\n    request.pendingRootTasks--;\n\n    if (request.pendingRootTasks === 0) {\n      // We have completed the shell so the shell can't error anymore.\n      request.onShellError = noop$1;\n      var onShellReady = request.onShellReady;\n      onShellReady();\n    }\n  } else {\n    boundary.pendingTasks--;\n\n    if (boundary.forceClientRender) ; else if (boundary.pendingTasks === 0) {\n      // This must have been the last segment we were waiting on. This boundary is now complete.\n      if (segment.parentFlushed) {\n        // Our parent segment already flushed, so we need to schedule this segment to be emitted.\n        // If it is a segment that was aborted, we'll write other content instead so we don't need\n        // to emit it.\n        if (segment.status === COMPLETED) {\n          queueCompletedSegment(boundary, segment);\n        }\n      }\n\n      if (boundary.parentFlushed) {\n        // The segment might be part of a segment that didn't flush yet, but if the boundary's\n        // parent flushed, we need to schedule the boundary to be emitted.\n        request.completedBoundaries.push(boundary);\n      } // We can now cancel any pending task on the fallback since we won't need to show it anymore.\n      // This needs to happen after we read the parentFlushed flags because aborting can finish\n      // work which can trigger user code, which can start flushing, which can change those flags.\n\n\n      boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request);\n      boundary.fallbackAbortableTasks.clear();\n    } else {\n      if (segment.parentFlushed) {\n        // Our parent already flushed, so we need to schedule this segment to be emitted.\n        // If it is a segment that was aborted, we'll write other content instead so we don't need\n        // to emit it.\n        if (segment.status === COMPLETED) {\n          queueCompletedSegment(boundary, segment);\n          var completedSegments = boundary.completedSegments;\n\n          if (completedSegments.length === 1) {\n            // This is the first time since we last flushed that we completed anything.\n            // We can schedule this boundary to emit its partially completed segments early\n            // in case the parent has already been flushed.\n            if (boundary.parentFlushed) {\n              request.partialBoundaries.push(boundary);\n            }\n          }\n        }\n      }\n    }\n  }\n\n  request.allPendingTasks--;\n\n  if (request.allPendingTasks === 0) {\n    // This needs to be called at the very end so that we can synchronously write the result\n    // in the callback if needed.\n    var onAllReady = request.onAllReady;\n    onAllReady();\n  }\n}\n\nfunction retryTask(request, task) {\n  var segment = task.blockedSegment;\n\n  if (segment.status !== PENDING) {\n    // We completed this by other means before we had a chance to retry it.\n    return;\n  } // We restore the context to what it was when we suspended.\n  // We don't restore it after we leave because it's likely that we'll end up\n  // needing a very similar context soon again.\n\n\n  switchContext(task.context);\n  var prevTaskInDEV = null;\n\n  {\n    prevTaskInDEV = currentTaskInDEV;\n    currentTaskInDEV = task;\n  }\n\n  try {\n    // We call the destructive form that mutates this task. That way if something\n    // suspends again, we can reuse the same task instead of spawning a new one.\n    renderNodeDestructive(request, task, task.node);\n    pushSegmentFinale(segment.chunks, request.responseState, segment.lastPushedText, segment.textEmbedded);\n    task.abortSet.delete(task);\n    segment.status = COMPLETED;\n    finishedTask(request, task.blockedBoundary, segment);\n  } catch (x) {\n    resetHooksState();\n\n    if (typeof x === 'object' && x !== null && typeof x.then === 'function') {\n      // Something suspended again, let's pick it back up later.\n      var ping = task.ping;\n      x.then(ping, ping);\n    } else {\n      task.abortSet.delete(task);\n      segment.status = ERRORED;\n      erroredTask(request, task.blockedBoundary, segment, x);\n    }\n  } finally {\n    {\n      currentTaskInDEV = prevTaskInDEV;\n    }\n  }\n}\n\nfunction performWork(request) {\n  if (request.status === CLOSED) {\n    return;\n  }\n\n  var prevContext = getActiveContext();\n  var prevDispatcher = ReactCurrentDispatcher$1.current;\n  ReactCurrentDispatcher$1.current = Dispatcher;\n  var prevGetCurrentStackImpl;\n\n  {\n    prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack;\n    ReactDebugCurrentFrame$1.getCurrentStack = getCurrentStackInDEV;\n  }\n\n  var prevResponseState = currentResponseState;\n  setCurrentResponseState(request.responseState);\n\n  try {\n    var pingedTasks = request.pingedTasks;\n    var i;\n\n    for (i = 0; i < pingedTasks.length; i++) {\n      var task = pingedTasks[i];\n      retryTask(request, task);\n    }\n\n    pingedTasks.splice(0, i);\n\n    if (request.destination !== null) {\n      flushCompletedQueues(request, request.destination);\n    }\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  } finally {\n    setCurrentResponseState(prevResponseState);\n    ReactCurrentDispatcher$1.current = prevDispatcher;\n\n    {\n      ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl;\n    }\n\n    if (prevDispatcher === Dispatcher) {\n      // This means that we were in a reentrant work loop. This could happen\n      // in a renderer that supports synchronous work like renderToString,\n      // when it's called from within another renderer.\n      // Normally we don't bother switching the contexts to their root/default\n      // values when leaving because we'll likely need the same or similar\n      // context again. However, when we're inside a synchronous loop like this\n      // we'll to restore the context to what it was before returning.\n      switchContext(prevContext);\n    }\n  }\n}\n\nfunction flushSubtree(request, destination, segment) {\n  segment.parentFlushed = true;\n\n  switch (segment.status) {\n    case PENDING:\n      {\n        // We're emitting a placeholder for this segment to be filled in later.\n        // Therefore we'll need to assign it an ID - to refer to it by.\n        var segmentID = segment.id = request.nextSegmentId++; // When this segment finally completes it won't be embedded in text since it will flush separately\n\n        segment.lastPushedText = false;\n        segment.textEmbedded = false;\n        return writePlaceholder(destination, request.responseState, segmentID);\n      }\n\n    case COMPLETED:\n      {\n        segment.status = FLUSHED;\n        var r = true;\n        var chunks = segment.chunks;\n        var chunkIdx = 0;\n        var children = segment.children;\n\n        for (var childIdx = 0; childIdx < children.length; childIdx++) {\n          var nextChild = children[childIdx]; // Write all the chunks up until the next child.\n\n          for (; chunkIdx < nextChild.index; chunkIdx++) {\n            writeChunk(destination, chunks[chunkIdx]);\n          }\n\n          r = flushSegment(request, destination, nextChild);\n        } // Finally just write all the remaining chunks\n\n\n        for (; chunkIdx < chunks.length - 1; chunkIdx++) {\n          writeChunk(destination, chunks[chunkIdx]);\n        }\n\n        if (chunkIdx < chunks.length) {\n          r = writeChunkAndReturn(destination, chunks[chunkIdx]);\n        }\n\n        return r;\n      }\n\n    default:\n      {\n        throw new Error('Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.');\n      }\n  }\n}\n\nfunction flushSegment(request, destination, segment) {\n  var boundary = segment.boundary;\n\n  if (boundary === null) {\n    // Not a suspense boundary.\n    return flushSubtree(request, destination, segment);\n  }\n\n  boundary.parentFlushed = true; // This segment is a Suspense boundary. We need to decide whether to\n  // emit the content or the fallback now.\n\n  if (boundary.forceClientRender) {\n    // Emit a client rendered suspense boundary wrapper.\n    // We never queue the inner boundary so we'll never emit its content or partial segments.\n    writeStartClientRenderedSuspenseBoundary(destination, request.responseState, boundary.errorDigest, boundary.errorMessage, boundary.errorComponentStack); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndClientRenderedSuspenseBoundary(destination, request.responseState);\n  } else if (boundary.pendingTasks > 0) {\n    // This boundary is still loading. Emit a pending suspense boundary wrapper.\n    // Assign an ID to refer to the future content by.\n    boundary.rootSegmentID = request.nextSegmentId++;\n\n    if (boundary.completedSegments.length > 0) {\n      // If this is at least partially complete, we can queue it to be partially emitted early.\n      request.partialBoundaries.push(boundary);\n    } /// This is the first time we should have referenced this ID.\n\n\n    var id = boundary.id = assignSuspenseBoundaryID(request.responseState);\n    writeStartPendingSuspenseBoundary(destination, request.responseState, id); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndPendingSuspenseBoundary(destination, request.responseState);\n  } else if (boundary.byteSize > request.progressiveChunkSize) {\n    // This boundary is large and will be emitted separately so that we can progressively show\n    // other content. We add it to the queue during the flush because we have to ensure that\n    // the parent flushes first so that there's something to inject it into.\n    // We also have to make sure that it's emitted into the queue in a deterministic slot.\n    // I.e. we can't insert it here when it completes.\n    // Assign an ID to refer to the future content by.\n    boundary.rootSegmentID = request.nextSegmentId++;\n    request.completedBoundaries.push(boundary); // Emit a pending rendered suspense boundary wrapper.\n\n    writeStartPendingSuspenseBoundary(destination, request.responseState, boundary.id); // Flush the fallback.\n\n    flushSubtree(request, destination, segment);\n    return writeEndPendingSuspenseBoundary(destination, request.responseState);\n  } else {\n    // We can inline this boundary's content as a complete boundary.\n    writeStartCompletedSuspenseBoundary(destination, request.responseState);\n    var completedSegments = boundary.completedSegments;\n\n    if (completedSegments.length !== 1) {\n      throw new Error('A previously unvisited boundary must have exactly one root segment. This is a bug in React.');\n    }\n\n    var contentSegment = completedSegments[0];\n    flushSegment(request, destination, contentSegment);\n    return writeEndCompletedSuspenseBoundary(destination, request.responseState);\n  }\n}\n\nfunction flushClientRenderedBoundary(request, destination, boundary) {\n  return writeClientRenderBoundaryInstruction(destination, request.responseState, boundary.id, boundary.errorDigest, boundary.errorMessage, boundary.errorComponentStack);\n}\n\nfunction flushSegmentContainer(request, destination, segment) {\n  writeStartSegment(destination, request.responseState, segment.formatContext, segment.id);\n  flushSegment(request, destination, segment);\n  return writeEndSegment(destination, segment.formatContext);\n}\n\nfunction flushCompletedBoundary(request, destination, boundary) {\n  var completedSegments = boundary.completedSegments;\n  var i = 0;\n\n  for (; i < completedSegments.length; i++) {\n    var segment = completedSegments[i];\n    flushPartiallyCompletedSegment(request, destination, boundary, segment);\n  }\n\n  completedSegments.length = 0;\n  return writeCompletedBoundaryInstruction(destination, request.responseState, boundary.id, boundary.rootSegmentID);\n}\n\nfunction flushPartialBoundary(request, destination, boundary) {\n  var completedSegments = boundary.completedSegments;\n  var i = 0;\n\n  for (; i < completedSegments.length; i++) {\n    var segment = completedSegments[i];\n\n    if (!flushPartiallyCompletedSegment(request, destination, boundary, segment)) {\n      i++;\n      completedSegments.splice(0, i); // Only write as much as the buffer wants. Something higher priority\n      // might want to write later.\n\n      return false;\n    }\n  }\n\n  completedSegments.splice(0, i);\n  return true;\n}\n\nfunction flushPartiallyCompletedSegment(request, destination, boundary, segment) {\n  if (segment.status === FLUSHED) {\n    // We've already flushed this inline.\n    return true;\n  }\n\n  var segmentID = segment.id;\n\n  if (segmentID === -1) {\n    // This segment wasn't previously referred to. This happens at the root of\n    // a boundary. We make kind of a leap here and assume this is the root.\n    var rootSegmentID = segment.id = boundary.rootSegmentID;\n\n    if (rootSegmentID === -1) {\n      throw new Error('A root segment ID must have been assigned by now. This is a bug in React.');\n    }\n\n    return flushSegmentContainer(request, destination, segment);\n  } else {\n    flushSegmentContainer(request, destination, segment);\n    return writeCompletedSegmentInstruction(destination, request.responseState, segmentID);\n  }\n}\n\nfunction flushCompletedQueues(request, destination) {\n  beginWriting();\n\n  try {\n    // The structure of this is to go through each queue one by one and write\n    // until the sink tells us to stop. When we should stop, we still finish writing\n    // that item fully and then yield. At that point we remove the already completed\n    // items up until the point we completed them.\n    // TODO: Emit preloading.\n    // TODO: It's kind of unfortunate to keep checking this array after we've already\n    // emitted the root.\n    var completedRootSegment = request.completedRootSegment;\n\n    if (completedRootSegment !== null && request.pendingRootTasks === 0) {\n      flushSegment(request, destination, completedRootSegment);\n      request.completedRootSegment = null;\n      writeCompletedRoot(destination, request.responseState);\n    } // We emit client rendering instructions for already emitted boundaries first.\n    // This is so that we can signal to the client to start client rendering them as\n    // soon as possible.\n\n\n    var clientRenderedBoundaries = request.clientRenderedBoundaries;\n    var i;\n\n    for (i = 0; i < clientRenderedBoundaries.length; i++) {\n      var boundary = clientRenderedBoundaries[i];\n\n      if (!flushClientRenderedBoundary(request, destination, boundary)) {\n        request.destination = null;\n        i++;\n        clientRenderedBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    clientRenderedBoundaries.splice(0, i); // Next we emit any complete boundaries. It's better to favor boundaries\n    // that are completely done since we can actually show them, than it is to emit\n    // any individual segments from a partially complete boundary.\n\n    var completedBoundaries = request.completedBoundaries;\n\n    for (i = 0; i < completedBoundaries.length; i++) {\n      var _boundary = completedBoundaries[i];\n\n      if (!flushCompletedBoundary(request, destination, _boundary)) {\n        request.destination = null;\n        i++;\n        completedBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    completedBoundaries.splice(0, i); // Allow anything written so far to flush to the underlying sink before\n    // we continue with lower priorities.\n\n    completeWriting(destination);\n    beginWriting(destination); // TODO: Here we'll emit data used by hydration.\n    // Next we emit any segments of any boundaries that are partially complete\n    // but not deeply complete.\n\n    var partialBoundaries = request.partialBoundaries;\n\n    for (i = 0; i < partialBoundaries.length; i++) {\n      var _boundary2 = partialBoundaries[i];\n\n      if (!flushPartialBoundary(request, destination, _boundary2)) {\n        request.destination = null;\n        i++;\n        partialBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    partialBoundaries.splice(0, i); // Next we check the completed boundaries again. This may have had\n    // boundaries added to it in case they were too larged to be inlined.\n    // New ones might be added in this loop.\n\n    var largeBoundaries = request.completedBoundaries;\n\n    for (i = 0; i < largeBoundaries.length; i++) {\n      var _boundary3 = largeBoundaries[i];\n\n      if (!flushCompletedBoundary(request, destination, _boundary3)) {\n        request.destination = null;\n        i++;\n        largeBoundaries.splice(0, i);\n        return;\n      }\n    }\n\n    largeBoundaries.splice(0, i);\n  } finally {\n    completeWriting(destination);\n\n    if (request.allPendingTasks === 0 && request.pingedTasks.length === 0 && request.clientRenderedBoundaries.length === 0 && request.completedBoundaries.length === 0 // We don't need to check any partially completed segments because\n    // either they have pending task or they're complete.\n    ) {\n        {\n          if (request.abortableTasks.size !== 0) {\n            error('There was still abortable task at the root when we closed. This is a bug in React.');\n          }\n        } // We're done.\n\n\n        close(destination);\n      }\n  }\n}\n\nfunction startWork(request) {\n  scheduleWork(function () {\n    return performWork(request);\n  });\n}\nfunction startFlowing(request, destination) {\n  if (request.status === CLOSING) {\n    request.status = CLOSED;\n    closeWithError(destination, request.fatalError);\n    return;\n  }\n\n  if (request.status === CLOSED) {\n    return;\n  }\n\n  if (request.destination !== null) {\n    // We're already flowing.\n    return;\n  }\n\n  request.destination = destination;\n\n  try {\n    flushCompletedQueues(request, destination);\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  }\n} // This is called to early terminate a request. It puts all pending boundaries in client rendered state.\n\nfunction abort(request, reason) {\n  try {\n    var abortableTasks = request.abortableTasks;\n    abortableTasks.forEach(function (task) {\n      return abortTask(task, request, reason);\n    });\n    abortableTasks.clear();\n\n    if (request.destination !== null) {\n      flushCompletedQueues(request, request.destination);\n    }\n  } catch (error) {\n    logRecoverableError(request, error);\n    fatalError(request, error);\n  }\n}\n\nfunction renderToReadableStream(children, options) {\n  return new Promise(function (resolve, reject) {\n    var onFatalError;\n    var onAllReady;\n    var allReady = new Promise(function (res, rej) {\n      onAllReady = res;\n      onFatalError = rej;\n    });\n\n    function onShellReady() {\n      var stream = new ReadableStream({\n        type: 'bytes',\n        pull: function (controller) {\n          startFlowing(request, controller);\n        },\n        cancel: function (reason) {\n          abort(request);\n        }\n      }, // $FlowFixMe size() methods are not allowed on byte streams.\n      {\n        highWaterMark: 0\n      }); // TODO: Move to sub-classing ReadableStream.\n\n      stream.allReady = allReady;\n      resolve(stream);\n    }\n\n    function onShellError(error) {\n      // If the shell errors the caller of `renderToReadableStream` won't have access to `allReady`.\n      // However, `allReady` will be rejected by `onFatalError` as well.\n      // So we need to catch the duplicate, uncatchable fatal error in `allReady` to prevent a `UnhandledPromiseRejection`.\n      allReady.catch(function () {});\n      reject(error);\n    }\n\n    var request = createRequest(children, createResponseState(options ? options.identifierPrefix : undefined, options ? options.nonce : undefined, options ? options.bootstrapScriptContent : undefined, options ? options.bootstrapScripts : undefined, options ? options.bootstrapModules : undefined), createRootFormatContext(options ? options.namespaceURI : undefined), options ? options.progressiveChunkSize : undefined, options ? options.onError : undefined, onAllReady, onShellReady, onShellError, onFatalError);\n\n    if (options && options.signal) {\n      var signal = options.signal;\n\n      var listener = function () {\n        abort(request, signal.reason);\n        signal.removeEventListener('abort', listener);\n      };\n\n      signal.addEventListener('abort', listener);\n    }\n\n    startWork(request);\n  });\n}\n\nexports.renderToReadableStream = renderToReadableStream;\nexports.version = ReactVersion;\n  })();\n}\n","/**\n * @license React\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n\n          'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n          var React = require('react');\nvar Scheduler = require('scheduler');\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nvar suppressWarning = false;\nfunction setSuppressWarning(newSuppressWarning) {\n  {\n    suppressWarning = newSuppressWarning;\n  }\n} // In DEV, calls to console.warn and console.error get replaced\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n  {\n    if (!suppressWarning) {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      printWarning('warn', format, args);\n    }\n  }\n}\nfunction error(format) {\n  {\n    if (!suppressWarning) {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\nvar FunctionComponent = 0;\nvar ClassComponent = 1;\nvar IndeterminateComponent = 2; // Before we know whether it is function or class\n\nvar HostRoot = 3; // Root of a host tree. Could be nested inside another node.\n\nvar HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\n\nvar HostComponent = 5;\nvar HostText = 6;\nvar Fragment = 7;\nvar Mode = 8;\nvar ContextConsumer = 9;\nvar ContextProvider = 10;\nvar ForwardRef = 11;\nvar Profiler = 12;\nvar SuspenseComponent = 13;\nvar MemoComponent = 14;\nvar SimpleMemoComponent = 15;\nvar LazyComponent = 16;\nvar IncompleteClassComponent = 17;\nvar DehydratedFragment = 18;\nvar SuspenseListComponent = 19;\nvar ScopeComponent = 21;\nvar OffscreenComponent = 22;\nvar LegacyHiddenComponent = 23;\nvar CacheComponent = 24;\nvar TracingMarkerComponent = 25;\n\n// -----------------------------------------------------------------------------\n\nvar enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing\n// the react-reconciler package.\n\nvar enableNewReconciler = false; // Support legacy Primer support on internal FB www\n\nvar enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics.\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n\nvar enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz\n// React DOM Chopping Block\n//\n// Similar to main Chopping Block but only flags related to React DOM. These are\n// grouped because we will likely batch all of them into a single major release.\n// -----------------------------------------------------------------------------\n// Disable support for comment nodes as React DOM containers. Already disabled\n// in open source, but www codebase still relies on it. Need to remove.\n\nvar disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection.\n// and client rendering, mostly to allow JSX attributes to apply to the custom\n// element's object properties instead of only HTML attributes.\n// https://github.com/facebook/react/issues/11347\n\nvar enableCustomElementPropertySupport = false; // Disables children for <textarea> elements\nvar warnAboutStringRefs = true; // -----------------------------------------------------------------------------\n// Debugging and DevTools\n// -----------------------------------------------------------------------------\n// Adds user timing marks for e.g. state updates, suspense, and work loop stuff,\n// for an experimental timeline tool.\n\nvar enableSchedulingProfiler = true; // Helps identify side effects in render-phase lifecycle hooks and setState\n\nvar enableProfilerTimer = true; // Record durations for commit and passive effects phases.\n\nvar enableProfilerCommitHooks = true; // Phase param passed to onRender callback differentiates between an \"update\" and a \"cascading-update\".\n\nvar allNativeEvents = new Set();\n/**\n * Mapping from registration name to event name\n */\n\n\nvar registrationNameDependencies = {};\n/**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\n\nvar possibleRegistrationNames =  {} ; // Trust the developer to only use possibleRegistrationNames in true\n\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n  registerDirectEvent(registrationName, dependencies);\n  registerDirectEvent(registrationName + 'Capture', dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n  {\n    if (registrationNameDependencies[registrationName]) {\n      error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);\n    }\n  }\n\n  registrationNameDependencies[registrationName] = dependencies;\n\n  {\n    var lowerCasedName = registrationName.toLowerCase();\n    possibleRegistrationNames[lowerCasedName] = registrationName;\n\n    if (registrationName === 'onDoubleClick') {\n      possibleRegistrationNames.ondblclick = registrationName;\n    }\n  }\n\n  for (var i = 0; i < dependencies.length; i++) {\n    allNativeEvents.add(dependencies[i]);\n  }\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\n\nfunction checkAttributeStringCoercion(value, attributeName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkKeyStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkPropStringCoercion(value, propName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` prop is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkCSSPropertyStringCoercion(value, propName) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkHtmlStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\nfunction checkFormFieldValueStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('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.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":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\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n    return true;\n  }\n\n  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n    return false;\n  }\n\n  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n    validatedAttributeNameCache[attributeName] = true;\n    return true;\n  }\n\n  illegalAttributeNameCache[attributeName] = true;\n\n  {\n    error('Invalid attribute name: `%s`', attributeName);\n  }\n\n  return false;\n}\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n  if (propertyInfo !== null) {\n    return propertyInfo.type === RESERVED;\n  }\n\n  if (isCustomComponentTag) {\n    return false;\n  }\n\n  if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n    return true;\n  }\n\n  return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n  if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n    return false;\n  }\n\n  switch (typeof value) {\n    case 'function': // $FlowIssue symbol is perfectly valid here\n\n    case 'symbol':\n      // eslint-disable-line\n      return true;\n\n    case 'boolean':\n      {\n        if (isCustomComponentTag) {\n          return false;\n        }\n\n        if (propertyInfo !== null) {\n          return !propertyInfo.acceptsBooleans;\n        } else {\n          var prefix = name.toLowerCase().slice(0, 5);\n          return prefix !== 'data-' && prefix !== 'aria-';\n        }\n      }\n\n    default:\n      return false;\n  }\n}\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n  if (value === null || typeof value === 'undefined') {\n    return true;\n  }\n\n  if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n    return true;\n  }\n\n  if (isCustomComponentTag) {\n\n    return false;\n  }\n\n  if (propertyInfo !== null) {\n\n    switch (propertyInfo.type) {\n      case BOOLEAN:\n        return !value;\n\n      case OVERLOADED_BOOLEAN:\n        return value === false;\n\n      case NUMERIC:\n        return isNaN(value);\n\n      case POSITIVE_NUMERIC:\n        return isNaN(value) || value < 1;\n    }\n  }\n\n  return false;\n}\nfunction getPropertyInfo(name) {\n  return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n  this.attributeName = attributeName;\n  this.attributeNamespace = attributeNamespace;\n  this.mustUseProperty = mustUseProperty;\n  this.propertyName = name;\n  this.type = type;\n  this.sanitizeURL = sanitizeURL;\n  this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\n\nreservedProps.forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n  var name = _ref[0],\n      attributeName = _ref[1];\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n  return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['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' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n  false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  true, // sanitizeURL\n  true);\n});\n\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\nvar isJavaScriptProtocol = /^[\\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;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n  {\n    if (!didWarn && isJavaScriptProtocol.test(url)) {\n      didWarn = true;\n\n      error('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(url));\n    }\n  }\n}\n\n/**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\nfunction getValueForProperty(node, name, expected, propertyInfo) {\n  {\n    if (propertyInfo.mustUseProperty) {\n      var propertyName = propertyInfo.propertyName;\n      return node[propertyName];\n    } else {\n      // This check protects multiple uses of `expected`, which is why the\n      // react-internal/safe-string-coercion rule is disabled in several spots\n      // below.\n      {\n        checkAttributeStringCoercion(expected, name);\n      }\n\n      if ( propertyInfo.sanitizeURL) {\n        // If we haven't fully disabled javascript: URLs, and if\n        // the hydration is successful of a javascript: URL, we\n        // still want to warn on the client.\n        // eslint-disable-next-line react-internal/safe-string-coercion\n        sanitizeURL('' + expected);\n      }\n\n      var attributeName = propertyInfo.attributeName;\n      var stringValue = null;\n\n      if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n        if (node.hasAttribute(attributeName)) {\n          var value = node.getAttribute(attributeName);\n\n          if (value === '') {\n            return true;\n          }\n\n          if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n            return value;\n          } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n          if (value === '' + expected) {\n            return expected;\n          }\n\n          return value;\n        }\n      } else if (node.hasAttribute(attributeName)) {\n        if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n          // We had an attribute but shouldn't have had one, so read it\n          // for the error message.\n          return node.getAttribute(attributeName);\n        }\n\n        if (propertyInfo.type === BOOLEAN) {\n          // If this was a boolean, it doesn't matter what the value is\n          // the fact that we have it is the same as the expected.\n          return expected;\n        } // Even if this property uses a namespace we use getAttribute\n        // because we assume its namespaced name is the same as our config.\n        // To use getAttributeNS we need the local name which we don't have\n        // in our config atm.\n\n\n        stringValue = node.getAttribute(attributeName);\n      }\n\n      if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n        return stringValue === null ? expected : stringValue; // eslint-disable-next-line react-internal/safe-string-coercion\n      } else if (stringValue === '' + expected) {\n        return expected;\n      } else {\n        return stringValue;\n      }\n    }\n  }\n}\n/**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\n\nfunction getValueForAttribute(node, name, expected, isCustomComponentTag) {\n  {\n    if (!isAttributeNameSafe(name)) {\n      return;\n    }\n\n    if (!node.hasAttribute(name)) {\n      return expected === undefined ? undefined : null;\n    }\n\n    var value = node.getAttribute(name);\n\n    {\n      checkAttributeStringCoercion(expected, name);\n    }\n\n    if (value === '' + expected) {\n      return expected;\n    }\n\n    return value;\n  }\n}\n/**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n\nfunction setValueForProperty(node, name, value, isCustomComponentTag) {\n  var propertyInfo = getPropertyInfo(name);\n\n  if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n    return;\n  }\n\n  if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n    value = null;\n  }\n\n\n  if (isCustomComponentTag || propertyInfo === null) {\n    if (isAttributeNameSafe(name)) {\n      var _attributeName = name;\n\n      if (value === null) {\n        node.removeAttribute(_attributeName);\n      } else {\n        {\n          checkAttributeStringCoercion(value, name);\n        }\n\n        node.setAttribute(_attributeName,  '' + value);\n      }\n    }\n\n    return;\n  }\n\n  var mustUseProperty = propertyInfo.mustUseProperty;\n\n  if (mustUseProperty) {\n    var propertyName = propertyInfo.propertyName;\n\n    if (value === null) {\n      var type = propertyInfo.type;\n      node[propertyName] = type === BOOLEAN ? false : '';\n    } else {\n      // Contrary to `setAttribute`, object properties are properly\n      // `toString`ed by IE8/9.\n      node[propertyName] = value;\n    }\n\n    return;\n  } // The rest are treated as attributes with special cases.\n\n\n  var attributeName = propertyInfo.attributeName,\n      attributeNamespace = propertyInfo.attributeNamespace;\n\n  if (value === null) {\n    node.removeAttribute(attributeName);\n  } else {\n    var _type = propertyInfo.type;\n    var attributeValue;\n\n    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n      // If attribute type is boolean, we know for sure it won't be an execution sink\n      // and we won't require Trusted Type here.\n      attributeValue = '';\n    } else {\n      // `setAttribute` with objects becomes only `[object]` in IE8/9,\n      // ('' + value) makes it output the correct toString()-value.\n      {\n        {\n          checkAttributeStringCoercion(value, attributeName);\n        }\n\n        attributeValue = '' + value;\n      }\n\n      if (propertyInfo.sanitizeURL) {\n        sanitizeURL(attributeValue.toString());\n      }\n    }\n\n    if (attributeNamespace) {\n      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n    } else {\n      node.setAttribute(attributeName, attributeValue);\n    }\n  }\n}\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_SCOPE_TYPE = Symbol.for('react.scope');\nvar REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');\nvar REACT_CACHE_TYPE = Symbol.for('react.cache');\nvar REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\n\nfunction describeClassComponentFrame(ctor, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(ctor, true);\n  }\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nfunction describeFiber(fiber) {\n  var owner =  fiber._debugOwner ? fiber._debugOwner.type : null ;\n  var source =  fiber._debugSource ;\n\n  switch (fiber.tag) {\n    case HostComponent:\n      return describeBuiltInComponentFrame(fiber.type);\n\n    case LazyComponent:\n      return describeBuiltInComponentFrame('Lazy');\n\n    case SuspenseComponent:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case SuspenseListComponent:\n      return describeBuiltInComponentFrame('SuspenseList');\n\n    case FunctionComponent:\n    case IndeterminateComponent:\n    case SimpleMemoComponent:\n      return describeFunctionComponentFrame(fiber.type);\n\n    case ForwardRef:\n      return describeFunctionComponentFrame(fiber.type.render);\n\n    case ClassComponent:\n      return describeClassComponentFrame(fiber.type);\n\n    default:\n      return '';\n  }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress) {\n  try {\n    var info = '';\n    var node = workInProgress;\n\n    do {\n      info += describeFiber(node);\n      node = node.return;\n    } while (node);\n\n    return info;\n  } catch (x) {\n    return '\\nError generating stack: ' + x.message + '\\n' + x.stack;\n  }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\nfunction getWrappedName$1(outerType, innerType, wrapperName) {\n  var functionName = innerType.displayName || innerType.name || '';\n  return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n} // Keep in sync with shared/getComponentNameFromType\n\n\nfunction getContextName$1(type) {\n  return type.displayName || 'Context';\n}\n\nfunction getComponentNameFromFiber(fiber) {\n  var tag = fiber.tag,\n      type = fiber.type;\n\n  switch (tag) {\n    case CacheComponent:\n      return 'Cache';\n\n    case ContextConsumer:\n      var context = type;\n      return getContextName$1(context) + '.Consumer';\n\n    case ContextProvider:\n      var provider = type;\n      return getContextName$1(provider._context) + '.Provider';\n\n    case DehydratedFragment:\n      return 'DehydratedFragment';\n\n    case ForwardRef:\n      return getWrappedName$1(type, type.render, 'ForwardRef');\n\n    case Fragment:\n      return 'Fragment';\n\n    case HostComponent:\n      // Host component type is the display name (e.g. \"div\", \"View\")\n      return type;\n\n    case HostPortal:\n      return 'Portal';\n\n    case HostRoot:\n      return 'Root';\n\n    case HostText:\n      return 'Text';\n\n    case LazyComponent:\n      // Name comes from the type in this case; we don't have a tag.\n      return getComponentNameFromType(type);\n\n    case Mode:\n      if (type === REACT_STRICT_MODE_TYPE) {\n        // Don't be less specific than shared/getComponentNameFromType\n        return 'StrictMode';\n      }\n\n      return 'Mode';\n\n    case OffscreenComponent:\n      return 'Offscreen';\n\n    case Profiler:\n      return 'Profiler';\n\n    case ScopeComponent:\n      return 'Scope';\n\n    case SuspenseComponent:\n      return 'Suspense';\n\n    case SuspenseListComponent:\n      return 'SuspenseList';\n\n    case TracingMarkerComponent:\n      return 'TracingMarker';\n    // The display name for this tags come from the user-provided type:\n\n    case ClassComponent:\n    case FunctionComponent:\n    case IncompleteClassComponent:\n    case IndeterminateComponent:\n    case MemoComponent:\n    case SimpleMemoComponent:\n      if (typeof type === 'function') {\n        return type.displayName || type.name || null;\n      }\n\n      if (typeof type === 'string') {\n        return type;\n      }\n\n      break;\n\n  }\n\n  return null;\n}\n\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\nvar current = null;\nvar isRendering = false;\nfunction getCurrentFiberOwnerNameInDevOrNull() {\n  {\n    if (current === null) {\n      return null;\n    }\n\n    var owner = current._debugOwner;\n\n    if (owner !== null && typeof owner !== 'undefined') {\n      return getComponentNameFromFiber(owner);\n    }\n  }\n\n  return null;\n}\n\nfunction getCurrentFiberStackInDev() {\n  {\n    if (current === null) {\n      return '';\n    } // Safe because if current fiber exists, we are reconciling,\n    // and it is guaranteed to be the work-in-progress version.\n\n\n    return getStackByFiberInDevAndProd(current);\n  }\n}\n\nfunction resetCurrentFiber() {\n  {\n    ReactDebugCurrentFrame.getCurrentStack = null;\n    current = null;\n    isRendering = false;\n  }\n}\nfunction setCurrentFiber(fiber) {\n  {\n    ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev;\n    current = fiber;\n    isRendering = false;\n  }\n}\nfunction getCurrentFiber() {\n  {\n    return current;\n  }\n}\nfunction setIsRendering(rendering) {\n  {\n    isRendering = rendering;\n  }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value) {\n  // The coercion safety check is performed in getToStringValue().\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\nfunction getToStringValue(value) {\n  switch (typeof value) {\n    case 'boolean':\n    case 'number':\n    case 'string':\n    case 'undefined':\n      return value;\n\n    case 'object':\n      {\n        checkFormFieldValueStringCoercion(value);\n      }\n\n      return value;\n\n    default:\n      // function, symbol are assigned as empty strings\n      return '';\n  }\n}\n\nvar hasReadOnlyValue = {\n  button: true,\n  checkbox: true,\n  image: true,\n  hidden: true,\n  radio: true,\n  reset: true,\n  submit: true\n};\nfunction checkControlledValueProps(tagName, props) {\n  {\n    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {\n      error('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    }\n\n    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {\n      error('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`.');\n    }\n  }\n}\n\nfunction isCheckable(elem) {\n  var type = elem.type;\n  var nodeName = elem.nodeName;\n  return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n}\n\nfunction getTracker(node) {\n  return node._valueTracker;\n}\n\nfunction detachTracker(node) {\n  node._valueTracker = null;\n}\n\nfunction getValueFromNode(node) {\n  var value = '';\n\n  if (!node) {\n    return value;\n  }\n\n  if (isCheckable(node)) {\n    value = node.checked ? 'true' : 'false';\n  } else {\n    value = node.value;\n  }\n\n  return value;\n}\n\nfunction trackValueOnNode(node) {\n  var valueField = isCheckable(node) ? 'checked' : 'value';\n  var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n\n  {\n    checkFormFieldValueStringCoercion(node[valueField]);\n  }\n\n  var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail\n  // and don't track value will cause over reporting of changes,\n  // but it's better then a hard failure\n  // (needed for certain tests that spyOn input values and Safari)\n\n  if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n    return;\n  }\n\n  var get = descriptor.get,\n      set = descriptor.set;\n  Object.defineProperty(node, valueField, {\n    configurable: true,\n    get: function () {\n      return get.call(this);\n    },\n    set: function (value) {\n      {\n        checkFormFieldValueStringCoercion(value);\n      }\n\n      currentValue = '' + value;\n      set.call(this, value);\n    }\n  }); // We could've passed this the first time\n  // but it triggers a bug in IE11 and Edge 14/15.\n  // Calling defineProperty() again should be equivalent.\n  // https://github.com/facebook/react/issues/11768\n\n  Object.defineProperty(node, valueField, {\n    enumerable: descriptor.enumerable\n  });\n  var tracker = {\n    getValue: function () {\n      return currentValue;\n    },\n    setValue: function (value) {\n      {\n        checkFormFieldValueStringCoercion(value);\n      }\n\n      currentValue = '' + value;\n    },\n    stopTracking: function () {\n      detachTracker(node);\n      delete node[valueField];\n    }\n  };\n  return tracker;\n}\n\nfunction track(node) {\n  if (getTracker(node)) {\n    return;\n  } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n  node._valueTracker = trackValueOnNode(node);\n}\nfunction updateValueIfChanged(node) {\n  if (!node) {\n    return false;\n  }\n\n  var tracker = getTracker(node); // if there is no tracker at this point it's unlikely\n  // that trying again will succeed\n\n  if (!tracker) {\n    return true;\n  }\n\n  var lastValue = tracker.getValue();\n  var nextValue = getValueFromNode(node);\n\n  if (nextValue !== lastValue) {\n    tracker.setValue(nextValue);\n    return true;\n  }\n\n  return false;\n}\n\nfunction getActiveElement(doc) {\n  doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n  if (typeof doc === 'undefined') {\n    return null;\n  }\n\n  try {\n    return doc.activeElement || doc.body;\n  } catch (e) {\n    return doc.body;\n  }\n}\n\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction isControlled(props) {\n  var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n  return usesChecked ? props.checked != null : props.value != null;\n}\n/**\n * Implements an <input> host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\n\nfunction getHostProps(element, props) {\n  var node = element;\n  var checked = props.checked;\n  var hostProps = assign({}, props, {\n    defaultChecked: undefined,\n    defaultValue: undefined,\n    value: undefined,\n    checked: checked != null ? checked : node._wrapperState.initialChecked\n  });\n  return hostProps;\n}\nfunction initWrapperState(element, props) {\n  {\n    checkControlledValueProps('input', props);\n\n    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n      error('%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', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n      didWarnCheckedDefaultChecked = true;\n    }\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n      error('%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', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n\n      didWarnValueDefaultValue = true;\n    }\n  }\n\n  var node = element;\n  var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n  node._wrapperState = {\n    initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n    initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n    controlled: isControlled(props)\n  };\n}\nfunction updateChecked(element, props) {\n  var node = element;\n  var checked = props.checked;\n\n  if (checked != null) {\n    setValueForProperty(node, 'checked', checked, false);\n  }\n}\nfunction updateWrapper(element, props) {\n  var node = element;\n\n  {\n    var controlled = isControlled(props);\n\n    if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {\n      error('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');\n\n      didWarnUncontrolledToControlled = true;\n    }\n\n    if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {\n      error('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');\n\n      didWarnControlledToUncontrolled = true;\n    }\n  }\n\n  updateChecked(element, props);\n  var value = getToStringValue(props.value);\n  var type = props.type;\n\n  if (value != null) {\n    if (type === 'number') {\n      if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.\n      // eslint-disable-next-line\n      node.value != value) {\n        node.value = toString(value);\n      }\n    } else if (node.value !== toString(value)) {\n      node.value = toString(value);\n    }\n  } else if (type === 'submit' || type === 'reset') {\n    // Submit/reset inputs need the attribute removed completely to avoid\n    // blank-text buttons.\n    node.removeAttribute('value');\n    return;\n  }\n\n  {\n    // When syncing the value attribute, the value comes from a cascade of\n    // properties:\n    //  1. The value React property\n    //  2. The defaultValue React property\n    //  3. Otherwise there should be no change\n    if (props.hasOwnProperty('value')) {\n      setDefaultValue(node, props.type, value);\n    } else if (props.hasOwnProperty('defaultValue')) {\n      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n    }\n  }\n\n  {\n    // When syncing the checked attribute, it only changes when it needs\n    // to be removed, such as transitioning from a checkbox into a text input\n    if (props.checked == null && props.defaultChecked != null) {\n      node.defaultChecked = !!props.defaultChecked;\n    }\n  }\n}\nfunction postMountWrapper(element, props, isHydrating) {\n  var node = element; // Do not assign value if it is already set. This prevents user text input\n  // from being lost during SSR hydration.\n\n  if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n    var type = props.type;\n    var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n    // default value provided by the browser. See: #12872\n\n    if (isButton && (props.value === undefined || props.value === null)) {\n      return;\n    }\n\n    var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n    // from being lost during SSR hydration.\n\n    if (!isHydrating) {\n      {\n        // When syncing the value attribute, the value property should use\n        // the wrapperState._initialValue property. This uses:\n        //\n        //   1. The value React property when present\n        //   2. The defaultValue React property when present\n        //   3. An empty string\n        if (initialValue !== node.value) {\n          node.value = initialValue;\n        }\n      }\n    }\n\n    {\n      // Otherwise, the value attribute is synchronized to the property,\n      // so we assign defaultValue to the same thing as the value property\n      // assignment step above.\n      node.defaultValue = initialValue;\n    }\n  } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n  // this is needed to work around a chrome bug where setting defaultChecked\n  // will sometimes influence the value of checked (even after detachment).\n  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n  // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n  var name = node.name;\n\n  if (name !== '') {\n    node.name = '';\n  }\n\n  {\n    // When syncing the checked attribute, both the checked property and\n    // attribute are assigned at the same time using defaultChecked. This uses:\n    //\n    //   1. The checked React property when present\n    //   2. The defaultChecked React property when present\n    //   3. Otherwise, false\n    node.defaultChecked = !node.defaultChecked;\n    node.defaultChecked = !!node._wrapperState.initialChecked;\n  }\n\n  if (name !== '') {\n    node.name = name;\n  }\n}\nfunction restoreControlledState(element, props) {\n  var node = element;\n  updateWrapper(node, props);\n  updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props) {\n  var name = props.name;\n\n  if (props.type === 'radio' && name != null) {\n    var queryRoot = rootNode;\n\n    while (queryRoot.parentNode) {\n      queryRoot = queryRoot.parentNode;\n    } // If `rootNode.form` was non-null, then we could try `form.elements`,\n    // but that sometimes behaves strangely in IE8. We could also try using\n    // `form.getElementsByName`, but that will only return direct children\n    // and won't include inputs that use the HTML5 `form=` attribute. Since\n    // the input might not even be in a form. It might not even be in the\n    // document. Let's just use the local `querySelectorAll` to ensure we don't\n    // miss anything.\n\n\n    {\n      checkAttributeStringCoercion(name, 'name');\n    }\n\n    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n    for (var i = 0; i < group.length; i++) {\n      var otherNode = group[i];\n\n      if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n        continue;\n      } // This will throw if radio buttons rendered by different copies of React\n      // and the same name are rendered into the same form (same as #1939).\n      // That's probably okay; we don't support it just as we don't support\n      // mixing React radio buttons with non-React ones.\n\n\n      var otherProps = getFiberCurrentPropsFromNode(otherNode);\n\n      if (!otherProps) {\n        throw new Error('ReactDOMInput: Mixing React and non-React radio inputs with the ' + 'same `name` is not supported.');\n      } // We need update the tracked value on the named cousin since the value\n      // was changed but the input saw no event or value set\n\n\n      updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n      // was previously checked to update will cause it to be come re-checked\n      // as appropriate.\n\n      updateWrapper(otherNode, otherProps);\n    }\n  }\n} // In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value <x> is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\n\n\nfunction setDefaultValue(node, type, value) {\n  if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n  type !== 'number' || getActiveElement(node.ownerDocument) !== node) {\n    if (value == null) {\n      node.defaultValue = toString(node._wrapperState.initialValue);\n    } else if (node.defaultValue !== toString(value)) {\n      node.defaultValue = toString(value);\n    }\n  }\n}\n\nvar didWarnSelectedSetOnOption = false;\nvar didWarnInvalidChild = false;\nvar didWarnInvalidInnerHTML = false;\n/**\n * Implements an <option> host component that warns when `selected` is set.\n */\n\nfunction validateProps(element, props) {\n  {\n    // If a value is not provided, then the children must be simple.\n    if (props.value == null) {\n      if (typeof props.children === 'object' && props.children !== null) {\n        React.Children.forEach(props.children, function (child) {\n          if (child == null) {\n            return;\n          }\n\n          if (typeof child === 'string' || typeof child === 'number') {\n            return;\n          }\n\n          if (!didWarnInvalidChild) {\n            didWarnInvalidChild = true;\n\n            error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');\n          }\n        });\n      } else if (props.dangerouslySetInnerHTML != null) {\n        if (!didWarnInvalidInnerHTML) {\n          didWarnInvalidInnerHTML = true;\n\n          error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');\n        }\n      }\n    } // TODO: Remove support for `selected` in <option>.\n\n\n    if (props.selected != null && !didWarnSelectedSetOnOption) {\n      error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n\n      didWarnSelectedSetOnOption = true;\n    }\n  }\n}\nfunction postMountWrapper$1(element, props) {\n  // value=\"\" should make a value attribute (#6219)\n  if (props.value != null) {\n    element.setAttribute('value', toString(getToStringValue(props.value)));\n  }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\nvar didWarnValueDefaultValue$1;\n\n{\n  didWarnValueDefaultValue$1 = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n  var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n\n  if (ownerName) {\n    return '\\n\\nCheck the render method of `' + ownerName + '`.';\n  }\n\n  return '';\n}\n\nvar valuePropNames = ['value', 'defaultValue'];\n/**\n * Validation function for `value` and `defaultValue`.\n */\n\nfunction checkSelectPropTypes(props) {\n  {\n    checkControlledValueProps('select', props);\n\n    for (var i = 0; i < valuePropNames.length; i++) {\n      var propName = valuePropNames[i];\n\n      if (props[propName] == null) {\n        continue;\n      }\n\n      var propNameIsArray = isArray(props[propName]);\n\n      if (props.multiple && !propNameIsArray) {\n        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());\n      } else if (!props.multiple && propNameIsArray) {\n        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());\n      }\n    }\n  }\n}\n\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n  var options = node.options;\n\n  if (multiple) {\n    var selectedValues = propValue;\n    var selectedValue = {};\n\n    for (var i = 0; i < selectedValues.length; i++) {\n      // Prefix to avoid chaos with special keys.\n      selectedValue['$' + selectedValues[i]] = true;\n    }\n\n    for (var _i = 0; _i < options.length; _i++) {\n      var selected = selectedValue.hasOwnProperty('$' + options[_i].value);\n\n      if (options[_i].selected !== selected) {\n        options[_i].selected = selected;\n      }\n\n      if (selected && setDefaultSelected) {\n        options[_i].defaultSelected = true;\n      }\n    }\n  } else {\n    // Do not set `select.value` as exact behavior isn't consistent across all\n    // browsers for all cases.\n    var _selectedValue = toString(getToStringValue(propValue));\n\n    var defaultSelected = null;\n\n    for (var _i2 = 0; _i2 < options.length; _i2++) {\n      if (options[_i2].value === _selectedValue) {\n        options[_i2].selected = true;\n\n        if (setDefaultSelected) {\n          options[_i2].defaultSelected = true;\n        }\n\n        return;\n      }\n\n      if (defaultSelected === null && !options[_i2].disabled) {\n        defaultSelected = options[_i2];\n      }\n    }\n\n    if (defaultSelected !== null) {\n      defaultSelected.selected = true;\n    }\n  }\n}\n/**\n * Implements a <select> host component that allows optionally setting the\n * props `value` and `defaultValue`. If `multiple` is false, the prop must be a\n * stringable. If `multiple` is true, the prop must be an array of stringables.\n *\n * If `value` is not supplied (or null/undefined), user actions that change the\n * selected option will trigger updates to the rendered options.\n *\n * If it is supplied (and not null/undefined), the rendered options will not\n * update in response to user actions. Instead, the `value` prop must change in\n * order for the rendered options to update.\n *\n * If `defaultValue` is provided, any options with the supplied values will be\n * selected.\n */\n\n\nfunction getHostProps$1(element, props) {\n  return assign({}, props, {\n    value: undefined\n  });\n}\nfunction initWrapperState$1(element, props) {\n  var node = element;\n\n  {\n    checkSelectPropTypes(props);\n  }\n\n  node._wrapperState = {\n    wasMultiple: !!props.multiple\n  };\n\n  {\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {\n      error('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');\n\n      didWarnValueDefaultValue$1 = true;\n    }\n  }\n}\nfunction postMountWrapper$2(element, props) {\n  var node = element;\n  node.multiple = !!props.multiple;\n  var value = props.value;\n\n  if (value != null) {\n    updateOptions(node, !!props.multiple, value, false);\n  } else if (props.defaultValue != null) {\n    updateOptions(node, !!props.multiple, props.defaultValue, true);\n  }\n}\nfunction postUpdateWrapper(element, props) {\n  var node = element;\n  var wasMultiple = node._wrapperState.wasMultiple;\n  node._wrapperState.wasMultiple = !!props.multiple;\n  var value = props.value;\n\n  if (value != null) {\n    updateOptions(node, !!props.multiple, value, false);\n  } else if (wasMultiple !== !!props.multiple) {\n    // For simplicity, reapply `defaultValue` if `multiple` is toggled.\n    if (props.defaultValue != null) {\n      updateOptions(node, !!props.multiple, props.defaultValue, true);\n    } else {\n      // Revert the select back to its default unselected state.\n      updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);\n    }\n  }\n}\nfunction restoreControlledState$1(element, props) {\n  var node = element;\n  var value = props.value;\n\n  if (value != null) {\n    updateOptions(node, !!props.multiple, value, false);\n  }\n}\n\nvar didWarnValDefaultVal = false;\n\n/**\n * Implements a <textarea> host component that allows setting `value`, and\n * `defaultValue`. This differs from the traditional DOM API because value is\n * usually set as PCDATA children.\n *\n * If `value` is not supplied (or null/undefined), user actions that affect the\n * value will trigger updates to the element.\n *\n * If `value` is supplied (and not null/undefined), the rendered element will\n * not trigger updates to the element. Instead, the `value` prop must change in\n * order for the rendered element to be updated.\n *\n * The rendered element will be initialized with an empty value, the prop\n * `defaultValue` if specified, or the children content (deprecated).\n */\nfunction getHostProps$2(element, props) {\n  var node = element;\n\n  if (props.dangerouslySetInnerHTML != null) {\n    throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');\n  } // Always set children to the same thing. In IE9, the selection range will\n  // get reset if `textContent` is mutated.  We could add a check in setTextContent\n  // to only set the value if/when the value differs from the node value (which would\n  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this\n  // solution. The value can be a boolean or object so that's why it's forced\n  // to be a string.\n\n\n  var hostProps = assign({}, props, {\n    value: undefined,\n    defaultValue: undefined,\n    children: toString(node._wrapperState.initialValue)\n  });\n\n  return hostProps;\n}\nfunction initWrapperState$2(element, props) {\n  var node = element;\n\n  {\n    checkControlledValueProps('textarea', props);\n\n    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {\n      error('%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', getCurrentFiberOwnerNameInDevOrNull() || 'A component');\n\n      didWarnValDefaultVal = true;\n    }\n  }\n\n  var initialValue = props.value; // Only bother fetching default value if we're going to use it\n\n  if (initialValue == null) {\n    var children = props.children,\n        defaultValue = props.defaultValue;\n\n    if (children != null) {\n      {\n        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n      }\n\n      {\n        if (defaultValue != null) {\n          throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');\n        }\n\n        if (isArray(children)) {\n          if (children.length > 1) {\n            throw new Error('<textarea> can only have at most one child.');\n          }\n\n          children = children[0];\n        }\n\n        defaultValue = children;\n      }\n    }\n\n    if (defaultValue == null) {\n      defaultValue = '';\n    }\n\n    initialValue = defaultValue;\n  }\n\n  node._wrapperState = {\n    initialValue: getToStringValue(initialValue)\n  };\n}\nfunction updateWrapper$1(element, props) {\n  var node = element;\n  var value = getToStringValue(props.value);\n  var defaultValue = getToStringValue(props.defaultValue);\n\n  if (value != null) {\n    // Cast `value` to a string to ensure the value is set correctly. While\n    // browsers typically do this as necessary, jsdom doesn't.\n    var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed\n\n    if (newValue !== node.value) {\n      node.value = newValue;\n    }\n\n    if (props.defaultValue == null && node.defaultValue !== newValue) {\n      node.defaultValue = newValue;\n    }\n  }\n\n  if (defaultValue != null) {\n    node.defaultValue = toString(defaultValue);\n  }\n}\nfunction postMountWrapper$3(element, props) {\n  var node = element; // This is in postMount because we need access to the DOM node, which is not\n  // available until after the component has mounted.\n\n  var textContent = node.textContent; // Only set node.value if textContent is equal to the expected\n  // initial value. In IE10/IE11 there is a bug where the placeholder attribute\n  // will populate textContent as well.\n  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/\n\n  if (textContent === node._wrapperState.initialValue) {\n    if (textContent !== '' && textContent !== null) {\n      node.value = textContent;\n    }\n  }\n}\nfunction restoreControlledState$2(element, props) {\n  // DOM component is still mounted; update\n  updateWrapper$1(element, props);\n}\n\nvar HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\nvar MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\nvar SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; // Assumes there is no parent namespace.\n\nfunction getIntrinsicNamespace(type) {\n  switch (type) {\n    case 'svg':\n      return SVG_NAMESPACE;\n\n    case 'math':\n      return MATH_NAMESPACE;\n\n    default:\n      return HTML_NAMESPACE;\n  }\n}\nfunction getChildNamespace(parentNamespace, type) {\n  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {\n    // No (or default) parent namespace: potential entry point.\n    return getIntrinsicNamespace(type);\n  }\n\n  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {\n    // We're leaving SVG.\n    return HTML_NAMESPACE;\n  } // By default, pass namespace below.\n\n\n  return parentNamespace;\n}\n\n/* globals MSApp */\n\n/**\n * Create a function which has 'unsafe' privileges (required by windows8 apps)\n */\nvar createMicrosoftUnsafeLocalFunction = function (func) {\n  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n    return function (arg0, arg1, arg2, arg3) {\n      MSApp.execUnsafeLocalFunction(function () {\n        return func(arg0, arg1, arg2, arg3);\n      });\n    };\n  } else {\n    return func;\n  }\n};\n\nvar reusableSVGContainer;\n/**\n * Set the innerHTML property of a node\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\n\nvar setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {\n  if (node.namespaceURI === SVG_NAMESPACE) {\n\n    if (!('innerHTML' in node)) {\n      // IE does not have innerHTML for SVG nodes, so instead we inject the\n      // new markup in a temp node and then move the child nodes across into\n      // the target node\n      reusableSVGContainer = reusableSVGContainer || document.createElement('div');\n      reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';\n      var svgNode = reusableSVGContainer.firstChild;\n\n      while (node.firstChild) {\n        node.removeChild(node.firstChild);\n      }\n\n      while (svgNode.firstChild) {\n        node.appendChild(svgNode.firstChild);\n      }\n\n      return;\n    }\n  }\n\n  node.innerHTML = html;\n});\n\n/**\n * HTML nodeType values that represent the type of the node\n */\nvar ELEMENT_NODE = 1;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\nvar DOCUMENT_NODE = 9;\nvar DOCUMENT_FRAGMENT_NODE = 11;\n\n/**\n * Set the textContent property of a node. For text updates, it's faster\n * to set the `nodeValue` of the Text node directly instead of using\n * `.textContent` which will remove the existing node and create a new one.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\n\nvar setTextContent = function (node, text) {\n  if (text) {\n    var firstChild = node.firstChild;\n\n    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {\n      firstChild.nodeValue = text;\n      return;\n    }\n  }\n\n  node.textContent = text;\n};\n\n// List derived from Gecko source code:\n// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js\nvar shorthandToLonghand = {\n  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],\n  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],\n  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],\n  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],\n  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],\n  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],\n  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],\n  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],\n  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],\n  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],\n  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],\n  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],\n  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],\n  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],\n  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],\n  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],\n  columns: ['columnCount', 'columnWidth'],\n  flex: ['flexBasis', 'flexGrow', 'flexShrink'],\n  flexFlow: ['flexDirection', 'flexWrap'],\n  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],\n  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],\n  gap: ['columnGap', 'rowGap'],\n  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],\n  gridColumn: ['gridColumnEnd', 'gridColumnStart'],\n  gridColumnGap: ['columnGap'],\n  gridGap: ['columnGap', 'rowGap'],\n  gridRow: ['gridRowEnd', 'gridRowStart'],\n  gridRowGap: ['rowGap'],\n  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],\n  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],\n  marker: ['markerEnd', 'markerMid', 'markerStart'],\n  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],\n  maskPosition: ['maskPositionX', 'maskPositionY'],\n  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],\n  overflow: ['overflowX', 'overflowY'],\n  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],\n  placeContent: ['alignContent', 'justifyContent'],\n  placeItems: ['alignItems', 'justifyItems'],\n  placeSelf: ['alignSelf', 'justifySelf'],\n  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],\n  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],\n  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],\n  wordWrap: ['overflowWrap']\n};\n\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n */\nvar isUnitlessNumber = {\n  animationIterationCount: true,\n  aspectRatio: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  columns: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridArea: true,\n  gridRow: true,\n  gridRowEnd: true,\n  gridRowSpan: true,\n  gridRowStart: true,\n  gridColumn: true,\n  gridColumnEnd: true,\n  gridColumnSpan: true,\n  gridColumnStart: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n};\n/**\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\n\nfunction prefixKey(prefix, key) {\n  return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n */\n\n\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n  prefixes.forEach(function (prefix) {\n    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n  });\n});\n\n/**\n * Convert a value into the proper css writable value. The style name `name`\n * should be logical (no hyphens), as specified\n * in `CSSProperty.isUnitlessNumber`.\n *\n * @param {string} name CSS property name such as `topMargin`.\n * @param {*} value CSS property value such as `10px`.\n * @return {string} Normalized style value with dimensions applied.\n */\n\nfunction dangerousStyleValue(name, value, isCustomProperty) {\n  // Note that we've removed escapeTextForBrowser() calls here since the\n  // whole string will be escaped when the attribute is injected into\n  // the markup. If you provide unsafe user data here they can inject\n  // arbitrary CSS which may be problematic (I couldn't repro this):\n  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n  // This is not an XSS hole but instead a potential CSS injection issue\n  // which has lead to a greater discussion about how we're going to\n  // trust URLs moving forward. See #2115901\n  var isEmpty = value == null || typeof value === 'boolean' || value === '';\n\n  if (isEmpty) {\n    return '';\n  }\n\n  if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {\n    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers\n  }\n\n  {\n    checkCSSPropertyStringCoercion(value, name);\n  }\n\n  return ('' + value).trim();\n}\n\nvar uppercasePattern = /([A-Z])/g;\nvar msPattern = /^ms-/;\n/**\n * Hyphenates a camelcased CSS property name, for example:\n *\n *   > hyphenateStyleName('backgroundColor')\n *   < \"background-color\"\n *   > hyphenateStyleName('MozTransition')\n *   < \"-moz-transition\"\n *   > hyphenateStyleName('msTransition')\n *   < \"-ms-transition\"\n *\n * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix\n * is converted to `-ms-`.\n */\n\nfunction hyphenateStyleName(name) {\n  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n}\n\nvar warnValidStyle = function () {};\n\n{\n  // 'msTransform' is correct, but the other prefixes should be capitalized\n  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;\n  var msPattern$1 = /^-ms-/;\n  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon\n\n  var badStyleValueWithSemicolonPattern = /;\\s*$/;\n  var warnedStyleNames = {};\n  var warnedStyleValues = {};\n  var warnedForNaNValue = false;\n  var warnedForInfinityValue = false;\n\n  var camelize = function (string) {\n    return string.replace(hyphenPattern, function (_, character) {\n      return character.toUpperCase();\n    });\n  };\n\n  var warnHyphenatedStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests\n    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n    // is converted to lowercase `ms`.\n    camelize(name.replace(msPattern$1, 'ms-')));\n  };\n\n  var warnBadVendoredStyleName = function (name) {\n    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {\n      return;\n    }\n\n    warnedStyleNames[name] = true;\n\n    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n  };\n\n  var warnStyleValueWithSemicolon = function (name, value) {\n    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {\n      return;\n    }\n\n    warnedStyleValues[value] = true;\n\n    error(\"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n  };\n\n  var warnStyleValueIsNaN = function (name, value) {\n    if (warnedForNaNValue) {\n      return;\n    }\n\n    warnedForNaNValue = true;\n\n    error('`NaN` is an invalid value for the `%s` css style property.', name);\n  };\n\n  var warnStyleValueIsInfinity = function (name, value) {\n    if (warnedForInfinityValue) {\n      return;\n    }\n\n    warnedForInfinityValue = true;\n\n    error('`Infinity` is an invalid value for the `%s` css style property.', name);\n  };\n\n  warnValidStyle = function (name, value) {\n    if (name.indexOf('-') > -1) {\n      warnHyphenatedStyleName(name);\n    } else if (badVendoredStyleNamePattern.test(name)) {\n      warnBadVendoredStyleName(name);\n    } else if (badStyleValueWithSemicolonPattern.test(value)) {\n      warnStyleValueWithSemicolon(name, value);\n    }\n\n    if (typeof value === 'number') {\n      if (isNaN(value)) {\n        warnStyleValueIsNaN(name, value);\n      } else if (!isFinite(value)) {\n        warnStyleValueIsInfinity(name, value);\n      }\n    }\n  };\n}\n\nvar warnValidStyle$1 = warnValidStyle;\n\n/**\n * Operations for dealing with CSS properties.\n */\n\n/**\n * This creates a string that is expected to be equivalent to the style\n * attribute generated by server-side rendering. It by-passes warnings and\n * security checks so it's not safe to use this value for anything other than\n * comparison. It is only used in DEV for SSR validation.\n */\n\nfunction createDangerousStringForStyles(styles) {\n  {\n    var serialized = '';\n    var delimiter = '';\n\n    for (var styleName in styles) {\n      if (!styles.hasOwnProperty(styleName)) {\n        continue;\n      }\n\n      var styleValue = styles[styleName];\n\n      if (styleValue != null) {\n        var isCustomProperty = styleName.indexOf('--') === 0;\n        serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';\n        serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);\n        delimiter = ';';\n      }\n    }\n\n    return serialized || null;\n  }\n}\n/**\n * Sets the value for multiple styles on a node.  If a value is specified as\n * '' (empty string), the corresponding style property will be unset.\n *\n * @param {DOMElement} node\n * @param {object} styles\n */\n\nfunction setValueForStyles(node, styles) {\n  var style = node.style;\n\n  for (var styleName in styles) {\n    if (!styles.hasOwnProperty(styleName)) {\n      continue;\n    }\n\n    var isCustomProperty = styleName.indexOf('--') === 0;\n\n    {\n      if (!isCustomProperty) {\n        warnValidStyle$1(styleName, styles[styleName]);\n      }\n    }\n\n    var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n\n    if (styleName === 'float') {\n      styleName = 'cssFloat';\n    }\n\n    if (isCustomProperty) {\n      style.setProperty(styleName, styleValue);\n    } else {\n      style[styleName] = styleValue;\n    }\n  }\n}\n\nfunction isValueEmpty(value) {\n  return value == null || typeof value === 'boolean' || value === '';\n}\n/**\n * Given {color: 'red', overflow: 'hidden'} returns {\n *   color: 'color',\n *   overflowX: 'overflow',\n *   overflowY: 'overflow',\n * }. This can be read as \"the overflowY property was set by the overflow\n * shorthand\". That is, the values are the property that each was derived from.\n */\n\n\nfunction expandShorthandMap(styles) {\n  var expanded = {};\n\n  for (var key in styles) {\n    var longhands = shorthandToLonghand[key] || [key];\n\n    for (var i = 0; i < longhands.length; i++) {\n      expanded[longhands[i]] = key;\n    }\n  }\n\n  return expanded;\n}\n/**\n * When mixing shorthand and longhand property names, we warn during updates if\n * we expect an incorrect result to occur. In particular, we warn for:\n *\n * Updating a shorthand property (longhand gets overwritten):\n *   {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}\n *   becomes .style.font = 'baz'\n * Removing a shorthand property (longhand gets lost too):\n *   {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}\n *   becomes .style.font = ''\n * Removing a longhand property (should revert to shorthand; doesn't):\n *   {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}\n *   becomes .style.fontVariant = ''\n */\n\n\nfunction validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {\n  {\n    if (!nextStyles) {\n      return;\n    }\n\n    var expandedUpdates = expandShorthandMap(styleUpdates);\n    var expandedStyles = expandShorthandMap(nextStyles);\n    var warnedAbout = {};\n\n    for (var key in expandedUpdates) {\n      var originalKey = expandedUpdates[key];\n      var correctOriginalKey = expandedStyles[key];\n\n      if (correctOriginalKey && originalKey !== correctOriginalKey) {\n        var warningKey = originalKey + ',' + correctOriginalKey;\n\n        if (warnedAbout[warningKey]) {\n          continue;\n        }\n\n        warnedAbout[warningKey] = true;\n\n        error('%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.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);\n      }\n    }\n  }\n}\n\n// For HTML, certain tags should omit their close tag. We keep a list for\n// those special-case tags.\nvar omittedCloseTags = {\n  area: true,\n  base: true,\n  br: true,\n  col: true,\n  embed: true,\n  hr: true,\n  img: true,\n  input: true,\n  keygen: true,\n  link: true,\n  meta: true,\n  param: true,\n  source: true,\n  track: true,\n  wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.\n\n};\n\n// `omittedCloseTags` except that `menuitem` should still have its closing tag.\n\nvar voidElementTags = assign({\n  menuitem: true\n}, omittedCloseTags);\n\nvar HTML = '__html';\n\nfunction assertValidProps(tag, props) {\n  if (!props) {\n    return;\n  } // Note the use of `==` which checks for null or undefined.\n\n\n  if (voidElementTags[tag]) {\n    if (props.children != null || props.dangerouslySetInnerHTML != null) {\n      throw new Error(tag + \" is a void element tag and must neither have `children` nor \" + 'use `dangerouslySetInnerHTML`.');\n    }\n  }\n\n  if (props.dangerouslySetInnerHTML != null) {\n    if (props.children != null) {\n      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');\n    }\n\n    if (typeof props.dangerouslySetInnerHTML !== 'object' || !(HTML in props.dangerouslySetInnerHTML)) {\n      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');\n    }\n  }\n\n  {\n    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {\n      error('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    }\n  }\n\n  if (props.style != null && typeof props.style !== 'object') {\n    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.');\n  }\n}\n\nfunction isCustomComponent(tagName, props) {\n  if (tagName.indexOf('-') === -1) {\n    return typeof props.is === 'string';\n  }\n\n  switch (tagName) {\n    // These are reserved SVG and MathML elements.\n    // We don't mind this list too much because we expect it to never grow.\n    // The alternative is to track the namespace in a few places which is convoluted.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      return false;\n\n    default:\n      return true;\n  }\n}\n\n// When adding attributes to the HTML or SVG allowed attribute list, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames = {\n  // HTML\n  accept: 'accept',\n  acceptcharset: 'acceptCharset',\n  'accept-charset': 'acceptCharset',\n  accesskey: 'accessKey',\n  action: 'action',\n  allowfullscreen: 'allowFullScreen',\n  alt: 'alt',\n  as: 'as',\n  async: 'async',\n  autocapitalize: 'autoCapitalize',\n  autocomplete: 'autoComplete',\n  autocorrect: 'autoCorrect',\n  autofocus: 'autoFocus',\n  autoplay: 'autoPlay',\n  autosave: 'autoSave',\n  capture: 'capture',\n  cellpadding: 'cellPadding',\n  cellspacing: 'cellSpacing',\n  challenge: 'challenge',\n  charset: 'charSet',\n  checked: 'checked',\n  children: 'children',\n  cite: 'cite',\n  class: 'className',\n  classid: 'classID',\n  classname: 'className',\n  cols: 'cols',\n  colspan: 'colSpan',\n  content: 'content',\n  contenteditable: 'contentEditable',\n  contextmenu: 'contextMenu',\n  controls: 'controls',\n  controlslist: 'controlsList',\n  coords: 'coords',\n  crossorigin: 'crossOrigin',\n  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n  data: 'data',\n  datetime: 'dateTime',\n  default: 'default',\n  defaultchecked: 'defaultChecked',\n  defaultvalue: 'defaultValue',\n  defer: 'defer',\n  dir: 'dir',\n  disabled: 'disabled',\n  disablepictureinpicture: 'disablePictureInPicture',\n  disableremoteplayback: 'disableRemotePlayback',\n  download: 'download',\n  draggable: 'draggable',\n  enctype: 'encType',\n  enterkeyhint: 'enterKeyHint',\n  for: 'htmlFor',\n  form: 'form',\n  formmethod: 'formMethod',\n  formaction: 'formAction',\n  formenctype: 'formEncType',\n  formnovalidate: 'formNoValidate',\n  formtarget: 'formTarget',\n  frameborder: 'frameBorder',\n  headers: 'headers',\n  height: 'height',\n  hidden: 'hidden',\n  high: 'high',\n  href: 'href',\n  hreflang: 'hrefLang',\n  htmlfor: 'htmlFor',\n  httpequiv: 'httpEquiv',\n  'http-equiv': 'httpEquiv',\n  icon: 'icon',\n  id: 'id',\n  imagesizes: 'imageSizes',\n  imagesrcset: 'imageSrcSet',\n  innerhtml: 'innerHTML',\n  inputmode: 'inputMode',\n  integrity: 'integrity',\n  is: 'is',\n  itemid: 'itemID',\n  itemprop: 'itemProp',\n  itemref: 'itemRef',\n  itemscope: 'itemScope',\n  itemtype: 'itemType',\n  keyparams: 'keyParams',\n  keytype: 'keyType',\n  kind: 'kind',\n  label: 'label',\n  lang: 'lang',\n  list: 'list',\n  loop: 'loop',\n  low: 'low',\n  manifest: 'manifest',\n  marginwidth: 'marginWidth',\n  marginheight: 'marginHeight',\n  max: 'max',\n  maxlength: 'maxLength',\n  media: 'media',\n  mediagroup: 'mediaGroup',\n  method: 'method',\n  min: 'min',\n  minlength: 'minLength',\n  multiple: 'multiple',\n  muted: 'muted',\n  name: 'name',\n  nomodule: 'noModule',\n  nonce: 'nonce',\n  novalidate: 'noValidate',\n  open: 'open',\n  optimum: 'optimum',\n  pattern: 'pattern',\n  placeholder: 'placeholder',\n  playsinline: 'playsInline',\n  poster: 'poster',\n  preload: 'preload',\n  profile: 'profile',\n  radiogroup: 'radioGroup',\n  readonly: 'readOnly',\n  referrerpolicy: 'referrerPolicy',\n  rel: 'rel',\n  required: 'required',\n  reversed: 'reversed',\n  role: 'role',\n  rows: 'rows',\n  rowspan: 'rowSpan',\n  sandbox: 'sandbox',\n  scope: 'scope',\n  scoped: 'scoped',\n  scrolling: 'scrolling',\n  seamless: 'seamless',\n  selected: 'selected',\n  shape: 'shape',\n  size: 'size',\n  sizes: 'sizes',\n  span: 'span',\n  spellcheck: 'spellCheck',\n  src: 'src',\n  srcdoc: 'srcDoc',\n  srclang: 'srcLang',\n  srcset: 'srcSet',\n  start: 'start',\n  step: 'step',\n  style: 'style',\n  summary: 'summary',\n  tabindex: 'tabIndex',\n  target: 'target',\n  title: 'title',\n  type: 'type',\n  usemap: 'useMap',\n  value: 'value',\n  width: 'width',\n  wmode: 'wmode',\n  wrap: 'wrap',\n  // SVG\n  about: 'about',\n  accentheight: 'accentHeight',\n  'accent-height': 'accentHeight',\n  accumulate: 'accumulate',\n  additive: 'additive',\n  alignmentbaseline: 'alignmentBaseline',\n  'alignment-baseline': 'alignmentBaseline',\n  allowreorder: 'allowReorder',\n  alphabetic: 'alphabetic',\n  amplitude: 'amplitude',\n  arabicform: 'arabicForm',\n  'arabic-form': 'arabicForm',\n  ascent: 'ascent',\n  attributename: 'attributeName',\n  attributetype: 'attributeType',\n  autoreverse: 'autoReverse',\n  azimuth: 'azimuth',\n  basefrequency: 'baseFrequency',\n  baselineshift: 'baselineShift',\n  'baseline-shift': 'baselineShift',\n  baseprofile: 'baseProfile',\n  bbox: 'bbox',\n  begin: 'begin',\n  bias: 'bias',\n  by: 'by',\n  calcmode: 'calcMode',\n  capheight: 'capHeight',\n  'cap-height': 'capHeight',\n  clip: 'clip',\n  clippath: 'clipPath',\n  'clip-path': 'clipPath',\n  clippathunits: 'clipPathUnits',\n  cliprule: 'clipRule',\n  'clip-rule': 'clipRule',\n  color: 'color',\n  colorinterpolation: 'colorInterpolation',\n  'color-interpolation': 'colorInterpolation',\n  colorinterpolationfilters: 'colorInterpolationFilters',\n  'color-interpolation-filters': 'colorInterpolationFilters',\n  colorprofile: 'colorProfile',\n  'color-profile': 'colorProfile',\n  colorrendering: 'colorRendering',\n  'color-rendering': 'colorRendering',\n  contentscripttype: 'contentScriptType',\n  contentstyletype: 'contentStyleType',\n  cursor: 'cursor',\n  cx: 'cx',\n  cy: 'cy',\n  d: 'd',\n  datatype: 'datatype',\n  decelerate: 'decelerate',\n  descent: 'descent',\n  diffuseconstant: 'diffuseConstant',\n  direction: 'direction',\n  display: 'display',\n  divisor: 'divisor',\n  dominantbaseline: 'dominantBaseline',\n  'dominant-baseline': 'dominantBaseline',\n  dur: 'dur',\n  dx: 'dx',\n  dy: 'dy',\n  edgemode: 'edgeMode',\n  elevation: 'elevation',\n  enablebackground: 'enableBackground',\n  'enable-background': 'enableBackground',\n  end: 'end',\n  exponent: 'exponent',\n  externalresourcesrequired: 'externalResourcesRequired',\n  fill: 'fill',\n  fillopacity: 'fillOpacity',\n  'fill-opacity': 'fillOpacity',\n  fillrule: 'fillRule',\n  'fill-rule': 'fillRule',\n  filter: 'filter',\n  filterres: 'filterRes',\n  filterunits: 'filterUnits',\n  floodopacity: 'floodOpacity',\n  'flood-opacity': 'floodOpacity',\n  floodcolor: 'floodColor',\n  'flood-color': 'floodColor',\n  focusable: 'focusable',\n  fontfamily: 'fontFamily',\n  'font-family': 'fontFamily',\n  fontsize: 'fontSize',\n  'font-size': 'fontSize',\n  fontsizeadjust: 'fontSizeAdjust',\n  'font-size-adjust': 'fontSizeAdjust',\n  fontstretch: 'fontStretch',\n  'font-stretch': 'fontStretch',\n  fontstyle: 'fontStyle',\n  'font-style': 'fontStyle',\n  fontvariant: 'fontVariant',\n  'font-variant': 'fontVariant',\n  fontweight: 'fontWeight',\n  'font-weight': 'fontWeight',\n  format: 'format',\n  from: 'from',\n  fx: 'fx',\n  fy: 'fy',\n  g1: 'g1',\n  g2: 'g2',\n  glyphname: 'glyphName',\n  'glyph-name': 'glyphName',\n  glyphorientationhorizontal: 'glyphOrientationHorizontal',\n  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n  glyphorientationvertical: 'glyphOrientationVertical',\n  'glyph-orientation-vertical': 'glyphOrientationVertical',\n  glyphref: 'glyphRef',\n  gradienttransform: 'gradientTransform',\n  gradientunits: 'gradientUnits',\n  hanging: 'hanging',\n  horizadvx: 'horizAdvX',\n  'horiz-adv-x': 'horizAdvX',\n  horizoriginx: 'horizOriginX',\n  'horiz-origin-x': 'horizOriginX',\n  ideographic: 'ideographic',\n  imagerendering: 'imageRendering',\n  'image-rendering': 'imageRendering',\n  in2: 'in2',\n  in: 'in',\n  inlist: 'inlist',\n  intercept: 'intercept',\n  k1: 'k1',\n  k2: 'k2',\n  k3: 'k3',\n  k4: 'k4',\n  k: 'k',\n  kernelmatrix: 'kernelMatrix',\n  kernelunitlength: 'kernelUnitLength',\n  kerning: 'kerning',\n  keypoints: 'keyPoints',\n  keysplines: 'keySplines',\n  keytimes: 'keyTimes',\n  lengthadjust: 'lengthAdjust',\n  letterspacing: 'letterSpacing',\n  'letter-spacing': 'letterSpacing',\n  lightingcolor: 'lightingColor',\n  'lighting-color': 'lightingColor',\n  limitingconeangle: 'limitingConeAngle',\n  local: 'local',\n  markerend: 'markerEnd',\n  'marker-end': 'markerEnd',\n  markerheight: 'markerHeight',\n  markermid: 'markerMid',\n  'marker-mid': 'markerMid',\n  markerstart: 'markerStart',\n  'marker-start': 'markerStart',\n  markerunits: 'markerUnits',\n  markerwidth: 'markerWidth',\n  mask: 'mask',\n  maskcontentunits: 'maskContentUnits',\n  maskunits: 'maskUnits',\n  mathematical: 'mathematical',\n  mode: 'mode',\n  numoctaves: 'numOctaves',\n  offset: 'offset',\n  opacity: 'opacity',\n  operator: 'operator',\n  order: 'order',\n  orient: 'orient',\n  orientation: 'orientation',\n  origin: 'origin',\n  overflow: 'overflow',\n  overlineposition: 'overlinePosition',\n  'overline-position': 'overlinePosition',\n  overlinethickness: 'overlineThickness',\n  'overline-thickness': 'overlineThickness',\n  paintorder: 'paintOrder',\n  'paint-order': 'paintOrder',\n  panose1: 'panose1',\n  'panose-1': 'panose1',\n  pathlength: 'pathLength',\n  patterncontentunits: 'patternContentUnits',\n  patterntransform: 'patternTransform',\n  patternunits: 'patternUnits',\n  pointerevents: 'pointerEvents',\n  'pointer-events': 'pointerEvents',\n  points: 'points',\n  pointsatx: 'pointsAtX',\n  pointsaty: 'pointsAtY',\n  pointsatz: 'pointsAtZ',\n  prefix: 'prefix',\n  preservealpha: 'preserveAlpha',\n  preserveaspectratio: 'preserveAspectRatio',\n  primitiveunits: 'primitiveUnits',\n  property: 'property',\n  r: 'r',\n  radius: 'radius',\n  refx: 'refX',\n  refy: 'refY',\n  renderingintent: 'renderingIntent',\n  'rendering-intent': 'renderingIntent',\n  repeatcount: 'repeatCount',\n  repeatdur: 'repeatDur',\n  requiredextensions: 'requiredExtensions',\n  requiredfeatures: 'requiredFeatures',\n  resource: 'resource',\n  restart: 'restart',\n  result: 'result',\n  results: 'results',\n  rotate: 'rotate',\n  rx: 'rx',\n  ry: 'ry',\n  scale: 'scale',\n  security: 'security',\n  seed: 'seed',\n  shaperendering: 'shapeRendering',\n  'shape-rendering': 'shapeRendering',\n  slope: 'slope',\n  spacing: 'spacing',\n  specularconstant: 'specularConstant',\n  specularexponent: 'specularExponent',\n  speed: 'speed',\n  spreadmethod: 'spreadMethod',\n  startoffset: 'startOffset',\n  stddeviation: 'stdDeviation',\n  stemh: 'stemh',\n  stemv: 'stemv',\n  stitchtiles: 'stitchTiles',\n  stopcolor: 'stopColor',\n  'stop-color': 'stopColor',\n  stopopacity: 'stopOpacity',\n  'stop-opacity': 'stopOpacity',\n  strikethroughposition: 'strikethroughPosition',\n  'strikethrough-position': 'strikethroughPosition',\n  strikethroughthickness: 'strikethroughThickness',\n  'strikethrough-thickness': 'strikethroughThickness',\n  string: 'string',\n  stroke: 'stroke',\n  strokedasharray: 'strokeDasharray',\n  'stroke-dasharray': 'strokeDasharray',\n  strokedashoffset: 'strokeDashoffset',\n  'stroke-dashoffset': 'strokeDashoffset',\n  strokelinecap: 'strokeLinecap',\n  'stroke-linecap': 'strokeLinecap',\n  strokelinejoin: 'strokeLinejoin',\n  'stroke-linejoin': 'strokeLinejoin',\n  strokemiterlimit: 'strokeMiterlimit',\n  'stroke-miterlimit': 'strokeMiterlimit',\n  strokewidth: 'strokeWidth',\n  'stroke-width': 'strokeWidth',\n  strokeopacity: 'strokeOpacity',\n  'stroke-opacity': 'strokeOpacity',\n  suppresscontenteditablewarning: 'suppressContentEditableWarning',\n  suppresshydrationwarning: 'suppressHydrationWarning',\n  surfacescale: 'surfaceScale',\n  systemlanguage: 'systemLanguage',\n  tablevalues: 'tableValues',\n  targetx: 'targetX',\n  targety: 'targetY',\n  textanchor: 'textAnchor',\n  'text-anchor': 'textAnchor',\n  textdecoration: 'textDecoration',\n  'text-decoration': 'textDecoration',\n  textlength: 'textLength',\n  textrendering: 'textRendering',\n  'text-rendering': 'textRendering',\n  to: 'to',\n  transform: 'transform',\n  typeof: 'typeof',\n  u1: 'u1',\n  u2: 'u2',\n  underlineposition: 'underlinePosition',\n  'underline-position': 'underlinePosition',\n  underlinethickness: 'underlineThickness',\n  'underline-thickness': 'underlineThickness',\n  unicode: 'unicode',\n  unicodebidi: 'unicodeBidi',\n  'unicode-bidi': 'unicodeBidi',\n  unicoderange: 'unicodeRange',\n  'unicode-range': 'unicodeRange',\n  unitsperem: 'unitsPerEm',\n  'units-per-em': 'unitsPerEm',\n  unselectable: 'unselectable',\n  valphabetic: 'vAlphabetic',\n  'v-alphabetic': 'vAlphabetic',\n  values: 'values',\n  vectoreffect: 'vectorEffect',\n  'vector-effect': 'vectorEffect',\n  version: 'version',\n  vertadvy: 'vertAdvY',\n  'vert-adv-y': 'vertAdvY',\n  vertoriginx: 'vertOriginX',\n  'vert-origin-x': 'vertOriginX',\n  vertoriginy: 'vertOriginY',\n  'vert-origin-y': 'vertOriginY',\n  vhanging: 'vHanging',\n  'v-hanging': 'vHanging',\n  videographic: 'vIdeographic',\n  'v-ideographic': 'vIdeographic',\n  viewbox: 'viewBox',\n  viewtarget: 'viewTarget',\n  visibility: 'visibility',\n  vmathematical: 'vMathematical',\n  'v-mathematical': 'vMathematical',\n  vocab: 'vocab',\n  widths: 'widths',\n  wordspacing: 'wordSpacing',\n  'word-spacing': 'wordSpacing',\n  writingmode: 'writingMode',\n  'writing-mode': 'writingMode',\n  x1: 'x1',\n  x2: 'x2',\n  x: 'x',\n  xchannelselector: 'xChannelSelector',\n  xheight: 'xHeight',\n  'x-height': 'xHeight',\n  xlinkactuate: 'xlinkActuate',\n  'xlink:actuate': 'xlinkActuate',\n  xlinkarcrole: 'xlinkArcrole',\n  'xlink:arcrole': 'xlinkArcrole',\n  xlinkhref: 'xlinkHref',\n  'xlink:href': 'xlinkHref',\n  xlinkrole: 'xlinkRole',\n  'xlink:role': 'xlinkRole',\n  xlinkshow: 'xlinkShow',\n  'xlink:show': 'xlinkShow',\n  xlinktitle: 'xlinkTitle',\n  'xlink:title': 'xlinkTitle',\n  xlinktype: 'xlinkType',\n  'xlink:type': 'xlinkType',\n  xmlbase: 'xmlBase',\n  'xml:base': 'xmlBase',\n  xmllang: 'xmlLang',\n  'xml:lang': 'xmlLang',\n  xmlns: 'xmlns',\n  'xml:space': 'xmlSpace',\n  xmlnsxlink: 'xmlnsXlink',\n  'xmlns:xlink': 'xmlnsXlink',\n  xmlspace: 'xmlSpace',\n  y1: 'y1',\n  y2: 'y2',\n  y: 'y',\n  ychannelselector: 'yChannelSelector',\n  z: 'z',\n  zoomandpan: 'zoomAndPan'\n};\n\nvar ariaProperties = {\n  'aria-current': 0,\n  // state\n  'aria-description': 0,\n  'aria-details': 0,\n  'aria-disabled': 0,\n  // state\n  'aria-hidden': 0,\n  // state\n  'aria-invalid': 0,\n  // state\n  'aria-keyshortcuts': 0,\n  'aria-label': 0,\n  'aria-roledescription': 0,\n  // Widget Attributes\n  'aria-autocomplete': 0,\n  'aria-checked': 0,\n  'aria-expanded': 0,\n  'aria-haspopup': 0,\n  'aria-level': 0,\n  'aria-modal': 0,\n  'aria-multiline': 0,\n  'aria-multiselectable': 0,\n  'aria-orientation': 0,\n  'aria-placeholder': 0,\n  'aria-pressed': 0,\n  'aria-readonly': 0,\n  'aria-required': 0,\n  'aria-selected': 0,\n  'aria-sort': 0,\n  'aria-valuemax': 0,\n  'aria-valuemin': 0,\n  'aria-valuenow': 0,\n  'aria-valuetext': 0,\n  // Live Region Attributes\n  'aria-atomic': 0,\n  'aria-busy': 0,\n  'aria-live': 0,\n  'aria-relevant': 0,\n  // Drag-and-Drop Attributes\n  'aria-dropeffect': 0,\n  'aria-grabbed': 0,\n  // Relationship Attributes\n  'aria-activedescendant': 0,\n  'aria-colcount': 0,\n  'aria-colindex': 0,\n  'aria-colspan': 0,\n  'aria-controls': 0,\n  'aria-describedby': 0,\n  'aria-errormessage': 0,\n  'aria-flowto': 0,\n  'aria-labelledby': 0,\n  'aria-owns': 0,\n  'aria-posinset': 0,\n  'aria-rowcount': 0,\n  'aria-rowindex': 0,\n  'aria-rowspan': 0,\n  'aria-setsize': 0\n};\n\nvar warnedProperties = {};\nvar rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\nfunction validateProperty(tagName, name) {\n  {\n    if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {\n      return true;\n    }\n\n    if (rARIACamel.test(name)) {\n      var ariaName = 'aria-' + name.slice(4).toLowerCase();\n      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (correctName == null) {\n        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n\n        warnedProperties[name] = true;\n        return true;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== correctName) {\n        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n\n    if (rARIA.test(name)) {\n      var lowerCasedName = name.toLowerCase();\n      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if (standardName == null) {\n        warnedProperties[name] = true;\n        return false;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if (name !== standardName) {\n        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties[name] = true;\n        return true;\n      }\n    }\n  }\n\n  return true;\n}\n\nfunction warnInvalidARIAProps(type, props) {\n  {\n    var invalidProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty(type, key);\n\n      if (!isValid) {\n        invalidProps.push(key);\n      }\n    }\n\n    var unknownPropString = invalidProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (invalidProps.length === 1) {\n      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    } else if (invalidProps.length > 1) {\n      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);\n    }\n  }\n}\n\nfunction validateProperties(type, props) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull = false;\nfunction validateProperties$1(type, props) {\n  {\n    if (type !== 'input' && type !== 'textarea' && type !== 'select') {\n      return;\n    }\n\n    if (props != null && props.value === null && !didWarnValueNull) {\n      didWarnValueNull = true;\n\n      if (type === 'select' && props.multiple) {\n        error('`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.', type);\n      } else {\n        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n      }\n    }\n  }\n}\n\nvar validateProperty$1 = function () {};\n\n{\n  var warnedProperties$1 = {};\n  var EVENT_NAME_REGEX = /^on./;\n  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;\n  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n  validateProperty$1 = function (tagName, name, value, eventRegistry) {\n    if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {\n      return true;\n    }\n\n    var lowerCasedName = name.toLowerCase();\n\n    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {\n      error('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.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // We can't rely on the event system being injected on the server.\n\n\n    if (eventRegistry != null) {\n      var registrationNameDependencies = eventRegistry.registrationNameDependencies,\n          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;\n\n      if (registrationNameDependencies.hasOwnProperty(name)) {\n        return true;\n      }\n\n      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;\n\n      if (registrationName != null) {\n        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n\n      if (EVENT_NAME_REGEX.test(name)) {\n        error('Unknown event handler property `%s`. It will be ignored.', name);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (EVENT_NAME_REGEX.test(name)) {\n      // If no event plugins have been injected, we are in a server environment.\n      // So we can't tell if the event name is correct for sure, but we can filter\n      // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n      if (INVALID_EVENT_NAME_REGEX.test(name)) {\n        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Let the ARIA attribute hook validate ARIA attributes\n\n\n    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {\n      return true;\n    }\n\n    if (lowerCasedName === 'innerhtml') {\n      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'aria') {\n      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {\n      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'number' && isNaN(value)) {\n      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    var propertyInfo = getPropertyInfo(name);\n    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.\n\n    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n      var standardName = possibleStandardNames[lowerCasedName];\n\n      if (standardName !== name) {\n        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties$1[name] = true;\n        return true;\n      }\n    } else if (!isReserved && name !== lowerCasedName) {\n      // Unknown attributes should have lowercase casing since that's how they\n      // will be cased anyway with server rendering.\n      error('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.', name, lowerCasedName);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      if (value) {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n      } else {\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);\n      }\n\n      warnedProperties$1[name] = true;\n      return true;\n    } // Now that we've validated casing, do not validate\n    // data types for reserved props\n\n\n    if (isReserved) {\n      return true;\n    } // Warn when a known attribute is a bad type\n\n\n    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {\n      warnedProperties$1[name] = true;\n      return false;\n    } // Warn when passing the strings 'false' or 'true' into a boolean prop\n\n\n    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {\n      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === '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\".', name, value);\n\n      warnedProperties$1[name] = true;\n      return true;\n    }\n\n    return true;\n  };\n}\n\nvar warnUnknownProperties = function (type, props, eventRegistry) {\n  {\n    var unknownProps = [];\n\n    for (var key in props) {\n      var isValid = validateProperty$1(type, key, props[key], eventRegistry);\n\n      if (!isValid) {\n        unknownProps.push(key);\n      }\n    }\n\n    var unknownPropString = unknownProps.map(function (prop) {\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if (unknownProps.length === 1) {\n      error('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 ', unknownPropString, type);\n    } else if (unknownProps.length > 1) {\n      error('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 ', unknownPropString, type);\n    }\n  }\n};\n\nfunction validateProperties$2(type, props, eventRegistry) {\n  if (isCustomComponent(type, props)) {\n    return;\n  }\n\n  warnUnknownProperties(type, props, eventRegistry);\n}\n\nvar IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;\nvar IS_NON_DELEGATED = 1 << 1;\nvar IS_CAPTURE_PHASE = 1 << 2;\n// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when\n// we call willDeferLaterForLegacyFBSupport, thus not bailing out\n// will result in endless cycles like an infinite loop.\n// We also don't want to defer during event replaying.\n\nvar SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;\n\n// This exists to avoid circular dependency between ReactDOMEventReplaying\n// and DOMPluginEventSystem.\nvar currentReplayingEvent = null;\nfunction setReplayingEvent(event) {\n  {\n    if (currentReplayingEvent !== null) {\n      error('Expected currently replaying event to be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');\n    }\n  }\n\n  currentReplayingEvent = event;\n}\nfunction resetReplayingEvent() {\n  {\n    if (currentReplayingEvent === null) {\n      error('Expected currently replaying event to not be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');\n    }\n  }\n\n  currentReplayingEvent = null;\n}\nfunction isReplayingEvent(event) {\n  return event === currentReplayingEvent;\n}\n\n/**\n * Gets the target node from a native browser event by accounting for\n * inconsistencies in browser DOM APIs.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {DOMEventTarget} Target node.\n */\n\nfunction getEventTarget(nativeEvent) {\n  // Fallback to nativeEvent.srcElement for IE9\n  // https://github.com/facebook/react/issues/12506\n  var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963\n\n  if (target.correspondingUseElement) {\n    target = target.correspondingUseElement;\n  } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n  // @see http://www.quirksmode.org/js/events_properties.html\n\n\n  return target.nodeType === TEXT_NODE ? target.parentNode : target;\n}\n\nvar restoreImpl = null;\nvar restoreTarget = null;\nvar restoreQueue = null;\n\nfunction restoreStateOfTarget(target) {\n  // We perform this translation at the end of the event loop so that we\n  // always receive the correct fiber here\n  var internalInstance = getInstanceFromNode(target);\n\n  if (!internalInstance) {\n    // Unmounted\n    return;\n  }\n\n  if (typeof restoreImpl !== 'function') {\n    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.');\n  }\n\n  var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.\n\n  if (stateNode) {\n    var _props = getFiberCurrentPropsFromNode(stateNode);\n\n    restoreImpl(internalInstance.stateNode, internalInstance.type, _props);\n  }\n}\n\nfunction setRestoreImplementation(impl) {\n  restoreImpl = impl;\n}\nfunction enqueueStateRestore(target) {\n  if (restoreTarget) {\n    if (restoreQueue) {\n      restoreQueue.push(target);\n    } else {\n      restoreQueue = [target];\n    }\n  } else {\n    restoreTarget = target;\n  }\n}\nfunction needsStateRestore() {\n  return restoreTarget !== null || restoreQueue !== null;\n}\nfunction restoreStateIfNeeded() {\n  if (!restoreTarget) {\n    return;\n  }\n\n  var target = restoreTarget;\n  var queuedTargets = restoreQueue;\n  restoreTarget = null;\n  restoreQueue = null;\n  restoreStateOfTarget(target);\n\n  if (queuedTargets) {\n    for (var i = 0; i < queuedTargets.length; i++) {\n      restoreStateOfTarget(queuedTargets[i]);\n    }\n  }\n}\n\n// the renderer. Such as when we're dispatching events or if third party\n// libraries need to call batchedUpdates. Eventually, this API will go away when\n// everything is batched by default. We'll then have a similar API to opt-out of\n// scheduled work and instead do synchronous work.\n// Defaults\n\nvar batchedUpdatesImpl = function (fn, bookkeeping) {\n  return fn(bookkeeping);\n};\n\nvar flushSyncImpl = function () {};\n\nvar isInsideEventHandler = false;\n\nfunction finishEventHandler() {\n  // Here we wait until all updates have propagated, which is important\n  // when using controlled components within layers:\n  // https://github.com/facebook/react/issues/1698\n  // Then we restore state of any controlled component.\n  var controlledComponentsHavePendingUpdates = needsStateRestore();\n\n  if (controlledComponentsHavePendingUpdates) {\n    // If a controlled event was fired, we may need to restore the state of\n    // the DOM node back to the controlled value. This is necessary when React\n    // bails out of the update without touching the DOM.\n    // TODO: Restore state in the microtask, after the discrete updates flush,\n    // instead of early flushing them here.\n    flushSyncImpl();\n    restoreStateIfNeeded();\n  }\n}\n\nfunction batchedUpdates(fn, a, b) {\n  if (isInsideEventHandler) {\n    // If we are currently inside another batch, we need to wait until it\n    // fully completes before restoring state.\n    return fn(a, b);\n  }\n\n  isInsideEventHandler = true;\n\n  try {\n    return batchedUpdatesImpl(fn, a, b);\n  } finally {\n    isInsideEventHandler = false;\n    finishEventHandler();\n  }\n} // TODO: Replace with flushSync\nfunction setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushSyncImpl) {\n  batchedUpdatesImpl = _batchedUpdatesImpl;\n  flushSyncImpl = _flushSyncImpl;\n}\n\nfunction isInteractive(tag) {\n  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n  switch (name) {\n    case 'onClick':\n    case 'onClickCapture':\n    case 'onDoubleClick':\n    case 'onDoubleClickCapture':\n    case 'onMouseDown':\n    case 'onMouseDownCapture':\n    case 'onMouseMove':\n    case 'onMouseMoveCapture':\n    case 'onMouseUp':\n    case 'onMouseUpCapture':\n    case 'onMouseEnter':\n      return !!(props.disabled && isInteractive(type));\n\n    default:\n      return false;\n  }\n}\n/**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\n\n\nfunction getListener(inst, registrationName) {\n  var stateNode = inst.stateNode;\n\n  if (stateNode === null) {\n    // Work in progress (ex: onload events in incremental mode).\n    return null;\n  }\n\n  var props = getFiberCurrentPropsFromNode(stateNode);\n\n  if (props === null) {\n    // Work in progress.\n    return null;\n  }\n\n  var listener = props[registrationName];\n\n  if (shouldPreventMouseEvent(registrationName, inst.type, props)) {\n    return null;\n  }\n\n  if (listener && typeof listener !== 'function') {\n    throw new Error(\"Expected `\" + registrationName + \"` listener to be a function, instead got a value of `\" + typeof listener + \"` type.\");\n  }\n\n  return listener;\n}\n\nvar passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners\n// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\n\nif (canUseDOM) {\n  try {\n    var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value\n\n    Object.defineProperty(options, 'passive', {\n      get: function () {\n        passiveBrowserEventsSupported = true;\n      }\n    });\n    window.addEventListener('test', options, options);\n    window.removeEventListener('test', options, options);\n  } catch (e) {\n    passiveBrowserEventsSupported = false;\n  }\n}\n\nfunction invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {\n  var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n  try {\n    func.apply(context, funcArgs);\n  } catch (error) {\n    this.onError(error);\n  }\n}\n\nvar invokeGuardedCallbackImpl = invokeGuardedCallbackProd;\n\n{\n  // In DEV mode, we swap out invokeGuardedCallback for a special version\n  // that plays more nicely with the browser's DevTools. The idea is to preserve\n  // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n  // functions in invokeGuardedCallback, and the production version of\n  // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n  // like caught exceptions, and the DevTools won't pause unless the developer\n  // takes the extra step of enabling pause on caught exceptions. This is\n  // unintuitive, though, because even though React has caught the error, from\n  // the developer's perspective, the error is uncaught.\n  //\n  // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n  // DOM node, and call the user-provided callback from inside an event handler\n  // for that fake event. If the callback throws, the error is \"captured\" using\n  // a global event handler. But because the error happens in a different\n  // event loop context, it does not interrupt the normal program flow.\n  // Effectively, this gives us try-catch behavior without actually using\n  // try-catch. Neat!\n  // Check that the browser supports the APIs we need to implement our special\n  // DEV version of invokeGuardedCallback\n  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n    var fakeNode = document.createElement('react');\n\n    invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {\n      // If document doesn't exist we know for sure we will crash in this method\n      // when we call document.createEvent(). However this can cause confusing\n      // errors: https://github.com/facebook/create-react-app/issues/3482\n      // So we preemptively throw with a better message instead.\n      if (typeof document === 'undefined' || document === null) {\n        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.');\n      }\n\n      var evt = document.createEvent('Event');\n      var didCall = false; // Keeps track of whether the user-provided callback threw an error. We\n      // set this to true at the beginning, then set it to false right after\n      // calling the function. If the function errors, `didError` will never be\n      // set to false. This strategy works even if the browser is flaky and\n      // fails to call our global error handler, because it doesn't rely on\n      // the error event at all.\n\n      var didError = true; // Keeps track of the value of window.event so that we can reset it\n      // during the callback to let user code access window.event in the\n      // browsers that support it.\n\n      var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event\n      // dispatching: https://github.com/facebook/react/issues/13688\n\n      var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');\n\n      function restoreAfterDispatch() {\n        // We immediately remove the callback from event listeners so that\n        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n        // nested call would trigger the fake event handlers of any call higher\n        // in the stack.\n        fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the\n        // window.event assignment in both IE <= 10 as they throw an error\n        // \"Member not found\" in strict mode, and in Firefox which does not\n        // support window.event.\n\n        if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {\n          window.event = windowEvent;\n        }\n      } // Create an event handler for our fake event. We will synchronously\n      // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n      // call the user-provided callback.\n\n\n      var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n      function callCallback() {\n        didCall = true;\n        restoreAfterDispatch();\n        func.apply(context, funcArgs);\n        didError = false;\n      } // Create a global error event handler. We use this to capture the value\n      // that was thrown. It's possible that this error handler will fire more\n      // than once; for example, if non-React code also calls `dispatchEvent`\n      // and a handler for that event throws. We should be resilient to most of\n      // those cases. Even if our error event handler fires more than once, the\n      // last error event is always used. If the callback actually does error,\n      // we know that the last error event is the correct one, because it's not\n      // possible for anything else to have happened in between our callback\n      // erroring and the code that follows the `dispatchEvent` call below. If\n      // the callback doesn't error, but the error event was fired, we know to\n      // ignore it because `didError` will be false, as described above.\n\n\n      var error; // Use this to track whether the error event is ever called.\n\n      var didSetError = false;\n      var isCrossOriginError = false;\n\n      function handleWindowError(event) {\n        error = event.error;\n        didSetError = true;\n\n        if (error === null && event.colno === 0 && event.lineno === 0) {\n          isCrossOriginError = true;\n        }\n\n        if (event.defaultPrevented) {\n          // Some other error handler has prevented default.\n          // Browsers silence the error report if this happens.\n          // We'll remember this to later decide whether to log it or not.\n          if (error != null && typeof error === 'object') {\n            try {\n              error._suppressLogging = true;\n            } catch (inner) {// Ignore.\n            }\n          }\n        }\n      } // Create a fake event type.\n\n\n      var evtType = \"react-\" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers\n\n      window.addEventListener('error', handleWindowError);\n      fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function\n      // errors, it will trigger our global error handler.\n\n      evt.initEvent(evtType, false, false);\n      fakeNode.dispatchEvent(evt);\n\n      if (windowEventDescriptor) {\n        Object.defineProperty(window, 'event', windowEventDescriptor);\n      }\n\n      if (didCall && didError) {\n        if (!didSetError) {\n          // The callback errored, but the error event never fired.\n          // eslint-disable-next-line react-internal/prod-error-codes\n          error = 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.');\n        } else if (isCrossOriginError) {\n          // eslint-disable-next-line react-internal/prod-error-codes\n          error = 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.');\n        }\n\n        this.onError(error);\n      } // Remove our event listeners\n\n\n      window.removeEventListener('error', handleWindowError);\n\n      if (!didCall) {\n        // Something went really wrong, and our event was not dispatched.\n        // https://github.com/facebook/react/issues/16734\n        // https://github.com/facebook/react/issues/16585\n        // Fall back to the production implementation.\n        restoreAfterDispatch();\n        return invokeGuardedCallbackProd.apply(this, arguments);\n      }\n    };\n  }\n}\n\nvar invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;\n\nvar hasError = false;\nvar caughtError = null; // Used by event system to capture/rethrow the first error.\n\nvar hasRethrowError = false;\nvar rethrowError = null;\nvar reporter = {\n  onError: function (error) {\n    hasError = true;\n    caughtError = error;\n  }\n};\n/**\n * Call a function while guarding against errors that happens within it.\n * Returns an error if it throws, otherwise null.\n *\n * In production, this is implemented using a try-catch. The reason we don't\n * use a try-catch directly is so that we can swap out a different\n * implementation in DEV mode.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n  hasError = false;\n  caughtError = null;\n  invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n}\n/**\n * Same as invokeGuardedCallback, but instead of returning an error, it stores\n * it in a global so it can be rethrown by `rethrowCaughtError` later.\n * TODO: See if caughtError and rethrowError can be unified.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {\n  invokeGuardedCallback.apply(this, arguments);\n\n  if (hasError) {\n    var error = clearCaughtError();\n\n    if (!hasRethrowError) {\n      hasRethrowError = true;\n      rethrowError = error;\n    }\n  }\n}\n/**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\n\nfunction rethrowCaughtError() {\n  if (hasRethrowError) {\n    var error = rethrowError;\n    hasRethrowError = false;\n    rethrowError = null;\n    throw error;\n  }\n}\nfunction hasCaughtError() {\n  return hasError;\n}\nfunction clearCaughtError() {\n  if (hasError) {\n    var error = caughtError;\n    hasError = false;\n    caughtError = null;\n    return error;\n  } else {\n    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.');\n  }\n}\n\n/**\n * `ReactInstanceMap` maintains a mapping from a public facing stateful\n * instance (key) and the internal representation (value). This allows public\n * methods to accept the user facing instance as an argument and map them back\n * to internal methods.\n *\n * Note that this module is currently shared and assumed to be stateless.\n * If this becomes an actual Map, that will break.\n */\nfunction get(key) {\n  return key._reactInternals;\n}\nfunction has(key) {\n  return key._reactInternals !== undefined;\n}\nfunction set(key, value) {\n  key._reactInternals = value;\n}\n\n// Don't change these two values. They're used by React Dev Tools.\nvar NoFlags =\n/*                      */\n0;\nvar PerformedWork =\n/*                */\n1; // You can change the rest (and add more).\n\nvar Placement =\n/*                    */\n2;\nvar Update =\n/*                       */\n4;\nvar ChildDeletion =\n/*                */\n16;\nvar ContentReset =\n/*                 */\n32;\nvar Callback =\n/*                     */\n64;\nvar DidCapture =\n/*                   */\n128;\nvar ForceClientRender =\n/*            */\n256;\nvar Ref =\n/*                          */\n512;\nvar Snapshot =\n/*                     */\n1024;\nvar Passive =\n/*                      */\n2048;\nvar Hydrating =\n/*                    */\n4096;\nvar Visibility =\n/*                   */\n8192;\nvar StoreConsistency =\n/*             */\n16384;\nvar LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)\n\nvar HostEffectMask =\n/*               */\n32767; // These are not really side effects, but we still reuse this field.\n\nvar Incomplete =\n/*                   */\n32768;\nvar ShouldCapture =\n/*                */\n65536;\nvar ForceUpdateForLegacySuspense =\n/* */\n131072;\nvar Forked =\n/*                       */\n1048576; // Static tags describe aspects of a fiber that are not specific to a render,\n// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).\n// This enables us to defer more work in the unmount case,\n// since we can defer traversing the tree during layout to look for Passive effects,\n// and instead rely on the static flag as a signal that there may be cleanup work.\n\nvar RefStatic =\n/*                    */\n2097152;\nvar LayoutStatic =\n/*                 */\n4194304;\nvar PassiveStatic =\n/*                */\n8388608; // These flags allow us to traverse to fibers that have effects on mount\n// without traversing the entire tree after every commit for\n// double invoking\n\nvar MountLayoutDev =\n/*               */\n16777216;\nvar MountPassiveDev =\n/*              */\n33554432; // Groups of flags that are used in the commit phase to skip over trees that\n// don't contain effects, by checking subtreeFlags.\n\nvar BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility\n// flag logic (see #20043)\nUpdate | Snapshot | ( 0);\nvar MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility;\nvar LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask\n\nvar PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones.\n// This allows certain concepts to persist without recalculating them,\n// e.g. whether a subtree contains passive effects or portals.\n\nvar StaticMask = LayoutStatic | PassiveStatic | RefStatic;\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nfunction getNearestMountedFiber(fiber) {\n  var node = fiber;\n  var nearestMounted = fiber;\n\n  if (!fiber.alternate) {\n    // If there is no alternate, this might be a new tree that isn't inserted\n    // yet. If it is, then it will have a pending insertion effect on it.\n    var nextNode = node;\n\n    do {\n      node = nextNode;\n\n      if ((node.flags & (Placement | Hydrating)) !== NoFlags) {\n        // This is an insertion or in-progress hydration. The nearest possible\n        // mounted fiber is the parent but we need to continue to figure out\n        // if that one is still mounted.\n        nearestMounted = node.return;\n      }\n\n      nextNode = node.return;\n    } while (nextNode);\n  } else {\n    while (node.return) {\n      node = node.return;\n    }\n  }\n\n  if (node.tag === HostRoot) {\n    // TODO: Check if this was a nested HostRoot when used with\n    // renderContainerIntoSubtree.\n    return nearestMounted;\n  } // If we didn't hit the root, that means that we're in an disconnected tree\n  // that has been unmounted.\n\n\n  return null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n  if (fiber.tag === SuspenseComponent) {\n    var suspenseState = fiber.memoizedState;\n\n    if (suspenseState === null) {\n      var current = fiber.alternate;\n\n      if (current !== null) {\n        suspenseState = current.memoizedState;\n      }\n    }\n\n    if (suspenseState !== null) {\n      return suspenseState.dehydrated;\n    }\n  }\n\n  return null;\n}\nfunction getContainerFromFiber(fiber) {\n  return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;\n}\nfunction isFiberMounted(fiber) {\n  return getNearestMountedFiber(fiber) === fiber;\n}\nfunction isMounted(component) {\n  {\n    var owner = ReactCurrentOwner.current;\n\n    if (owner !== null && owner.tag === ClassComponent) {\n      var ownerFiber = owner;\n      var instance = ownerFiber.stateNode;\n\n      if (!instance._warnedAboutRefsInRender) {\n        error('%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.', getComponentNameFromFiber(ownerFiber) || 'A component');\n      }\n\n      instance._warnedAboutRefsInRender = true;\n    }\n  }\n\n  var fiber = get(component);\n\n  if (!fiber) {\n    return false;\n  }\n\n  return getNearestMountedFiber(fiber) === fiber;\n}\n\nfunction assertIsMounted(fiber) {\n  if (getNearestMountedFiber(fiber) !== fiber) {\n    throw new Error('Unable to find node on an unmounted component.');\n  }\n}\n\nfunction findCurrentFiberUsingSlowPath(fiber) {\n  var alternate = fiber.alternate;\n\n  if (!alternate) {\n    // If there is no alternate, then we only need to check if it is mounted.\n    var nearestMounted = getNearestMountedFiber(fiber);\n\n    if (nearestMounted === null) {\n      throw new Error('Unable to find node on an unmounted component.');\n    }\n\n    if (nearestMounted !== fiber) {\n      return null;\n    }\n\n    return fiber;\n  } // If we have two possible branches, we'll walk backwards up to the root\n  // to see what path the root points to. On the way we may hit one of the\n  // special cases and we'll deal with them.\n\n\n  var a = fiber;\n  var b = alternate;\n\n  while (true) {\n    var parentA = a.return;\n\n    if (parentA === null) {\n      // We're at the root.\n      break;\n    }\n\n    var parentB = parentA.alternate;\n\n    if (parentB === null) {\n      // There is no alternate. This is an unusual case. Currently, it only\n      // happens when a Suspense component is hidden. An extra fragment fiber\n      // is inserted in between the Suspense fiber and its children. Skip\n      // over this extra fragment fiber and proceed to the next parent.\n      var nextParent = parentA.return;\n\n      if (nextParent !== null) {\n        a = b = nextParent;\n        continue;\n      } // If there's no parent, we're at the root.\n\n\n      break;\n    } // If both copies of the parent fiber point to the same child, we can\n    // assume that the child is current. This happens when we bailout on low\n    // priority: the bailed out fiber's child reuses the current child.\n\n\n    if (parentA.child === parentB.child) {\n      var child = parentA.child;\n\n      while (child) {\n        if (child === a) {\n          // We've determined that A is the current branch.\n          assertIsMounted(parentA);\n          return fiber;\n        }\n\n        if (child === b) {\n          // We've determined that B is the current branch.\n          assertIsMounted(parentA);\n          return alternate;\n        }\n\n        child = child.sibling;\n      } // We should never have an alternate for any mounting node. So the only\n      // way this could possibly happen is if this was unmounted, if at all.\n\n\n      throw new Error('Unable to find node on an unmounted component.');\n    }\n\n    if (a.return !== b.return) {\n      // The return pointer of A and the return pointer of B point to different\n      // fibers. We assume that return pointers never criss-cross, so A must\n      // belong to the child set of A.return, and B must belong to the child\n      // set of B.return.\n      a = parentA;\n      b = parentB;\n    } else {\n      // The return pointers point to the same fiber. We'll have to use the\n      // default, slow path: scan the child sets of each parent alternate to see\n      // which child belongs to which set.\n      //\n      // Search parent A's child set\n      var didFindChild = false;\n      var _child = parentA.child;\n\n      while (_child) {\n        if (_child === a) {\n          didFindChild = true;\n          a = parentA;\n          b = parentB;\n          break;\n        }\n\n        if (_child === b) {\n          didFindChild = true;\n          b = parentA;\n          a = parentB;\n          break;\n        }\n\n        _child = _child.sibling;\n      }\n\n      if (!didFindChild) {\n        // Search parent B's child set\n        _child = parentB.child;\n\n        while (_child) {\n          if (_child === a) {\n            didFindChild = true;\n            a = parentB;\n            b = parentA;\n            break;\n          }\n\n          if (_child === b) {\n            didFindChild = true;\n            b = parentB;\n            a = parentA;\n            break;\n          }\n\n          _child = _child.sibling;\n        }\n\n        if (!didFindChild) {\n          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.');\n        }\n      }\n    }\n\n    if (a.alternate !== b) {\n      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.');\n    }\n  } // If the root is not a host container, we're in a disconnected tree. I.e.\n  // unmounted.\n\n\n  if (a.tag !== HostRoot) {\n    throw new Error('Unable to find node on an unmounted component.');\n  }\n\n  if (a.stateNode.current === a) {\n    // We've determined that A is the current branch.\n    return fiber;\n  } // Otherwise B has to be current branch.\n\n\n  return alternate;\n}\nfunction findCurrentHostFiber(parent) {\n  var currentParent = findCurrentFiberUsingSlowPath(parent);\n  return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null;\n}\n\nfunction findCurrentHostFiberImpl(node) {\n  // Next we'll drill down this component to find the first HostComponent/Text.\n  if (node.tag === HostComponent || node.tag === HostText) {\n    return node;\n  }\n\n  var child = node.child;\n\n  while (child !== null) {\n    var match = findCurrentHostFiberImpl(child);\n\n    if (match !== null) {\n      return match;\n    }\n\n    child = child.sibling;\n  }\n\n  return null;\n}\n\nfunction findCurrentHostFiberWithNoPortals(parent) {\n  var currentParent = findCurrentFiberUsingSlowPath(parent);\n  return currentParent !== null ? findCurrentHostFiberWithNoPortalsImpl(currentParent) : null;\n}\n\nfunction findCurrentHostFiberWithNoPortalsImpl(node) {\n  // Next we'll drill down this component to find the first HostComponent/Text.\n  if (node.tag === HostComponent || node.tag === HostText) {\n    return node;\n  }\n\n  var child = node.child;\n\n  while (child !== null) {\n    if (child.tag !== HostPortal) {\n      var match = findCurrentHostFiberWithNoPortalsImpl(child);\n\n      if (match !== null) {\n        return match;\n      }\n    }\n\n    child = child.sibling;\n  }\n\n  return null;\n}\n\n// This module only exists as an ESM wrapper around the external CommonJS\nvar scheduleCallback = Scheduler.unstable_scheduleCallback;\nvar cancelCallback = Scheduler.unstable_cancelCallback;\nvar shouldYield = Scheduler.unstable_shouldYield;\nvar requestPaint = Scheduler.unstable_requestPaint;\nvar now = Scheduler.unstable_now;\nvar getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;\nvar ImmediatePriority = Scheduler.unstable_ImmediatePriority;\nvar UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;\nvar NormalPriority = Scheduler.unstable_NormalPriority;\nvar LowPriority = Scheduler.unstable_LowPriority;\nvar IdlePriority = Scheduler.unstable_IdlePriority;\n// this doesn't actually exist on the scheduler, but it *does*\n// on scheduler/unstable_mock, which we'll need for internal testing\nvar unstable_yieldValue = Scheduler.unstable_yieldValue;\nvar unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue;\n\nvar rendererID = null;\nvar injectedHook = null;\nvar injectedProfilingHooks = null;\nvar hasLoggedError = false;\nvar isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';\nfunction injectInternals(internals) {\n  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n    // No DevTools\n    return false;\n  }\n\n  var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n\n  if (hook.isDisabled) {\n    // This isn't a real property on the hook, but it can be set to opt out\n    // of DevTools integration and associated warnings and logs.\n    // https://github.com/facebook/react/issues/3877\n    return true;\n  }\n\n  if (!hook.supportsFiber) {\n    {\n      error('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');\n    } // DevTools exists, even though it doesn't support Fiber.\n\n\n    return true;\n  }\n\n  try {\n    if (enableSchedulingProfiler) {\n      // Conditionally inject these hooks only if Timeline profiler is supported by this build.\n      // This gives DevTools a way to feature detect that isn't tied to version number\n      // (since profiling and timeline are controlled by different feature flags).\n      internals = assign({}, internals, {\n        getLaneLabelMap: getLaneLabelMap,\n        injectProfilingHooks: injectProfilingHooks\n      });\n    }\n\n    rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.\n\n    injectedHook = hook;\n  } catch (err) {\n    // Catch all errors because it is unsafe to throw during initialization.\n    {\n      error('React instrumentation encountered an error: %s.', err);\n    }\n  }\n\n  if (hook.checkDCE) {\n    // This is the real DevTools.\n    return true;\n  } else {\n    // This is likely a hook installed by Fast Refresh runtime.\n    return false;\n  }\n}\nfunction onScheduleRoot(root, children) {\n  {\n    if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {\n      try {\n        injectedHook.onScheduleFiberRoot(rendererID, root, children);\n      } catch (err) {\n        if ( !hasLoggedError) {\n          hasLoggedError = true;\n\n          error('React instrumentation encountered an error: %s', err);\n        }\n      }\n    }\n  }\n}\nfunction onCommitRoot(root, eventPriority) {\n  if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {\n    try {\n      var didError = (root.current.flags & DidCapture) === DidCapture;\n\n      if (enableProfilerTimer) {\n        var schedulerPriority;\n\n        switch (eventPriority) {\n          case DiscreteEventPriority:\n            schedulerPriority = ImmediatePriority;\n            break;\n\n          case ContinuousEventPriority:\n            schedulerPriority = UserBlockingPriority;\n            break;\n\n          case DefaultEventPriority:\n            schedulerPriority = NormalPriority;\n            break;\n\n          case IdleEventPriority:\n            schedulerPriority = IdlePriority;\n            break;\n\n          default:\n            schedulerPriority = NormalPriority;\n            break;\n        }\n\n        injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError);\n      } else {\n        injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);\n      }\n    } catch (err) {\n      {\n        if (!hasLoggedError) {\n          hasLoggedError = true;\n\n          error('React instrumentation encountered an error: %s', err);\n        }\n      }\n    }\n  }\n}\nfunction onPostCommitRoot(root) {\n  if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === 'function') {\n    try {\n      injectedHook.onPostCommitFiberRoot(rendererID, root);\n    } catch (err) {\n      {\n        if (!hasLoggedError) {\n          hasLoggedError = true;\n\n          error('React instrumentation encountered an error: %s', err);\n        }\n      }\n    }\n  }\n}\nfunction onCommitUnmount(fiber) {\n  if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {\n    try {\n      injectedHook.onCommitFiberUnmount(rendererID, fiber);\n    } catch (err) {\n      {\n        if (!hasLoggedError) {\n          hasLoggedError = true;\n\n          error('React instrumentation encountered an error: %s', err);\n        }\n      }\n    }\n  }\n}\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n  {\n    if (typeof unstable_yieldValue === 'function') {\n      // We're in a test because Scheduler.unstable_yieldValue only exists\n      // in SchedulerMock. To reduce the noise in strict mode tests,\n      // suppress warnings and disable scheduler yielding during the double render\n      unstable_setDisableYieldValue(newIsStrictMode);\n      setSuppressWarning(newIsStrictMode);\n    }\n\n    if (injectedHook && typeof injectedHook.setStrictMode === 'function') {\n      try {\n        injectedHook.setStrictMode(rendererID, newIsStrictMode);\n      } catch (err) {\n        {\n          if (!hasLoggedError) {\n            hasLoggedError = true;\n\n            error('React instrumentation encountered an error: %s', err);\n          }\n        }\n      }\n    }\n  }\n} // Profiler API hooks\n\nfunction injectProfilingHooks(profilingHooks) {\n  injectedProfilingHooks = profilingHooks;\n}\n\nfunction getLaneLabelMap() {\n  {\n    var map = new Map();\n    var lane = 1;\n\n    for (var index = 0; index < TotalLanes; index++) {\n      var label = getLabelForLane(lane);\n      map.set(lane, label);\n      lane *= 2;\n    }\n\n    return map;\n  }\n}\n\nfunction markCommitStarted(lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStarted === 'function') {\n      injectedProfilingHooks.markCommitStarted(lanes);\n    }\n  }\n}\nfunction markCommitStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStopped === 'function') {\n      injectedProfilingHooks.markCommitStopped();\n    }\n  }\n}\nfunction markComponentRenderStarted(fiber) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStarted === 'function') {\n      injectedProfilingHooks.markComponentRenderStarted(fiber);\n    }\n  }\n}\nfunction markComponentRenderStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStopped === 'function') {\n      injectedProfilingHooks.markComponentRenderStopped();\n    }\n  }\n}\nfunction markComponentPassiveEffectMountStarted(fiber) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted === 'function') {\n      injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);\n    }\n  }\n}\nfunction markComponentPassiveEffectMountStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped === 'function') {\n      injectedProfilingHooks.markComponentPassiveEffectMountStopped();\n    }\n  }\n}\nfunction markComponentPassiveEffectUnmountStarted(fiber) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted === 'function') {\n      injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);\n    }\n  }\n}\nfunction markComponentPassiveEffectUnmountStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped === 'function') {\n      injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();\n    }\n  }\n}\nfunction markComponentLayoutEffectMountStarted(fiber) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted === 'function') {\n      injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);\n    }\n  }\n}\nfunction markComponentLayoutEffectMountStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped === 'function') {\n      injectedProfilingHooks.markComponentLayoutEffectMountStopped();\n    }\n  }\n}\nfunction markComponentLayoutEffectUnmountStarted(fiber) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted === 'function') {\n      injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);\n    }\n  }\n}\nfunction markComponentLayoutEffectUnmountStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped === 'function') {\n      injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();\n    }\n  }\n}\nfunction markComponentErrored(fiber, thrownValue, lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentErrored === 'function') {\n      injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);\n    }\n  }\n}\nfunction markComponentSuspended(fiber, wakeable, lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentSuspended === 'function') {\n      injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);\n    }\n  }\n}\nfunction markLayoutEffectsStarted(lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStarted === 'function') {\n      injectedProfilingHooks.markLayoutEffectsStarted(lanes);\n    }\n  }\n}\nfunction markLayoutEffectsStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStopped === 'function') {\n      injectedProfilingHooks.markLayoutEffectsStopped();\n    }\n  }\n}\nfunction markPassiveEffectsStarted(lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStarted === 'function') {\n      injectedProfilingHooks.markPassiveEffectsStarted(lanes);\n    }\n  }\n}\nfunction markPassiveEffectsStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStopped === 'function') {\n      injectedProfilingHooks.markPassiveEffectsStopped();\n    }\n  }\n}\nfunction markRenderStarted(lanes) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStarted === 'function') {\n      injectedProfilingHooks.markRenderStarted(lanes);\n    }\n  }\n}\nfunction markRenderYielded() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderYielded === 'function') {\n      injectedProfilingHooks.markRenderYielded();\n    }\n  }\n}\nfunction markRenderStopped() {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStopped === 'function') {\n      injectedProfilingHooks.markRenderStopped();\n    }\n  }\n}\nfunction markRenderScheduled(lane) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderScheduled === 'function') {\n      injectedProfilingHooks.markRenderScheduled(lane);\n    }\n  }\n}\nfunction markForceUpdateScheduled(fiber, lane) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markForceUpdateScheduled === 'function') {\n      injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);\n    }\n  }\n}\nfunction markStateUpdateScheduled(fiber, lane) {\n  {\n    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markStateUpdateScheduled === 'function') {\n      injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);\n    }\n  }\n}\n\nvar NoMode =\n/*                         */\n0; // TODO: Remove ConcurrentMode by reading from the root tag instead\n\nvar ConcurrentMode =\n/*                 */\n1;\nvar ProfileMode =\n/*                    */\n2;\nvar StrictLegacyMode =\n/*               */\n8;\nvar StrictEffectsMode =\n/*              */\n16;\n\n// TODO: This is pretty well supported by browsers. Maybe we can drop it.\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.\n// Based on:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nfunction clz32Fallback(x) {\n  var asUint = x >>> 0;\n\n  if (asUint === 0) {\n    return 32;\n  }\n\n  return 31 - (log(asUint) / LN2 | 0) | 0;\n}\n\n// If those values are changed that package should be rebuilt and redeployed.\n\nvar TotalLanes = 31;\nvar NoLanes =\n/*                        */\n0;\nvar NoLane =\n/*                          */\n0;\nvar SyncLane =\n/*                        */\n1;\nvar InputContinuousHydrationLane =\n/*    */\n2;\nvar InputContinuousLane =\n/*             */\n4;\nvar DefaultHydrationLane =\n/*            */\n8;\nvar DefaultLane =\n/*                     */\n16;\nvar TransitionHydrationLane =\n/*                */\n32;\nvar TransitionLanes =\n/*                       */\n4194240;\nvar TransitionLane1 =\n/*                        */\n64;\nvar TransitionLane2 =\n/*                        */\n128;\nvar TransitionLane3 =\n/*                        */\n256;\nvar TransitionLane4 =\n/*                        */\n512;\nvar TransitionLane5 =\n/*                        */\n1024;\nvar TransitionLane6 =\n/*                        */\n2048;\nvar TransitionLane7 =\n/*                        */\n4096;\nvar TransitionLane8 =\n/*                        */\n8192;\nvar TransitionLane9 =\n/*                        */\n16384;\nvar TransitionLane10 =\n/*                       */\n32768;\nvar TransitionLane11 =\n/*                       */\n65536;\nvar TransitionLane12 =\n/*                       */\n131072;\nvar TransitionLane13 =\n/*                       */\n262144;\nvar TransitionLane14 =\n/*                       */\n524288;\nvar TransitionLane15 =\n/*                       */\n1048576;\nvar TransitionLane16 =\n/*                       */\n2097152;\nvar RetryLanes =\n/*                            */\n130023424;\nvar RetryLane1 =\n/*                             */\n4194304;\nvar RetryLane2 =\n/*                             */\n8388608;\nvar RetryLane3 =\n/*                             */\n16777216;\nvar RetryLane4 =\n/*                             */\n33554432;\nvar RetryLane5 =\n/*                             */\n67108864;\nvar SomeRetryLane = RetryLane1;\nvar SelectiveHydrationLane =\n/*          */\n134217728;\nvar NonIdleLanes =\n/*                          */\n268435455;\nvar IdleHydrationLane =\n/*               */\n268435456;\nvar IdleLane =\n/*                        */\n536870912;\nvar OffscreenLane =\n/*                   */\n1073741824; // This function is used for the experimental timeline (react-devtools-timeline)\n// It should be kept in sync with the Lanes values above.\n\nfunction getLabelForLane(lane) {\n  {\n    if (lane & SyncLane) {\n      return 'Sync';\n    }\n\n    if (lane & InputContinuousHydrationLane) {\n      return 'InputContinuousHydration';\n    }\n\n    if (lane & InputContinuousLane) {\n      return 'InputContinuous';\n    }\n\n    if (lane & DefaultHydrationLane) {\n      return 'DefaultHydration';\n    }\n\n    if (lane & DefaultLane) {\n      return 'Default';\n    }\n\n    if (lane & TransitionHydrationLane) {\n      return 'TransitionHydration';\n    }\n\n    if (lane & TransitionLanes) {\n      return 'Transition';\n    }\n\n    if (lane & RetryLanes) {\n      return 'Retry';\n    }\n\n    if (lane & SelectiveHydrationLane) {\n      return 'SelectiveHydration';\n    }\n\n    if (lane & IdleHydrationLane) {\n      return 'IdleHydration';\n    }\n\n    if (lane & IdleLane) {\n      return 'Idle';\n    }\n\n    if (lane & OffscreenLane) {\n      return 'Offscreen';\n    }\n  }\n}\nvar NoTimestamp = -1;\nvar nextTransitionLane = TransitionLane1;\nvar nextRetryLane = RetryLane1;\n\nfunction getHighestPriorityLanes(lanes) {\n  switch (getHighestPriorityLane(lanes)) {\n    case SyncLane:\n      return SyncLane;\n\n    case InputContinuousHydrationLane:\n      return InputContinuousHydrationLane;\n\n    case InputContinuousLane:\n      return InputContinuousLane;\n\n    case DefaultHydrationLane:\n      return DefaultHydrationLane;\n\n    case DefaultLane:\n      return DefaultLane;\n\n    case TransitionHydrationLane:\n      return TransitionHydrationLane;\n\n    case TransitionLane1:\n    case TransitionLane2:\n    case TransitionLane3:\n    case TransitionLane4:\n    case TransitionLane5:\n    case TransitionLane6:\n    case TransitionLane7:\n    case TransitionLane8:\n    case TransitionLane9:\n    case TransitionLane10:\n    case TransitionLane11:\n    case TransitionLane12:\n    case TransitionLane13:\n    case TransitionLane14:\n    case TransitionLane15:\n    case TransitionLane16:\n      return lanes & TransitionLanes;\n\n    case RetryLane1:\n    case RetryLane2:\n    case RetryLane3:\n    case RetryLane4:\n    case RetryLane5:\n      return lanes & RetryLanes;\n\n    case SelectiveHydrationLane:\n      return SelectiveHydrationLane;\n\n    case IdleHydrationLane:\n      return IdleHydrationLane;\n\n    case IdleLane:\n      return IdleLane;\n\n    case OffscreenLane:\n      return OffscreenLane;\n\n    default:\n      {\n        error('Should have found matching lanes. This is a bug in React.');\n      } // This shouldn't be reachable, but as a fallback, return the entire bitmask.\n\n\n      return lanes;\n  }\n}\n\nfunction getNextLanes(root, wipLanes) {\n  // Early bailout if there's no pending work left.\n  var pendingLanes = root.pendingLanes;\n\n  if (pendingLanes === NoLanes) {\n    return NoLanes;\n  }\n\n  var nextLanes = NoLanes;\n  var suspendedLanes = root.suspendedLanes;\n  var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished,\n  // even if the work is suspended.\n\n  var nonIdlePendingLanes = pendingLanes & NonIdleLanes;\n\n  if (nonIdlePendingLanes !== NoLanes) {\n    var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;\n\n    if (nonIdleUnblockedLanes !== NoLanes) {\n      nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);\n    } else {\n      var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;\n\n      if (nonIdlePingedLanes !== NoLanes) {\n        nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);\n      }\n    }\n  } else {\n    // The only remaining work is Idle.\n    var unblockedLanes = pendingLanes & ~suspendedLanes;\n\n    if (unblockedLanes !== NoLanes) {\n      nextLanes = getHighestPriorityLanes(unblockedLanes);\n    } else {\n      if (pingedLanes !== NoLanes) {\n        nextLanes = getHighestPriorityLanes(pingedLanes);\n      }\n    }\n  }\n\n  if (nextLanes === NoLanes) {\n    // This should only be reachable if we're suspended\n    // TODO: Consider warning in this path if a fallback timer is not scheduled.\n    return NoLanes;\n  } // If we're already in the middle of a render, switching lanes will interrupt\n  // it and we'll lose our progress. We should only do this if the new lanes are\n  // higher priority.\n\n\n  if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't\n  // bother waiting until the root is complete.\n  (wipLanes & suspendedLanes) === NoLanes) {\n    var nextLane = getHighestPriorityLane(nextLanes);\n    var wipLane = getHighestPriorityLane(wipLanes);\n\n    if ( // Tests whether the next lane is equal or lower priority than the wip\n    // one. This works because the bits decrease in priority as you go left.\n    nextLane >= wipLane || // Default priority updates should not interrupt transition updates. The\n    // only difference between default updates and transition updates is that\n    // default updates do not support refresh transitions.\n    nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) {\n      // Keep working on the existing in-progress tree. Do not interrupt.\n      return wipLanes;\n    }\n  }\n\n  if ((nextLanes & InputContinuousLane) !== NoLanes) {\n    // When updates are sync by default, we entangle continuous priority updates\n    // and default updates, so they render in the same batch. The only reason\n    // they use separate lanes is because continuous updates should interrupt\n    // transitions, but default updates should not.\n    nextLanes |= pendingLanes & DefaultLane;\n  } // Check for entangled lanes and add them to the batch.\n  //\n  // A lane is said to be entangled with another when it's not allowed to render\n  // in a batch that does not also include the other lane. Typically we do this\n  // when multiple updates have the same source, and we only want to respond to\n  // the most recent event from that source.\n  //\n  // Note that we apply entanglements *after* checking for partial work above.\n  // This means that if a lane is entangled during an interleaved event while\n  // it's already rendering, we won't interrupt it. This is intentional, since\n  // entanglement is usually \"best effort\": we'll try our best to render the\n  // lanes in the same batch, but it's not worth throwing out partially\n  // completed work in order to do it.\n  // TODO: Reconsider this. The counter-argument is that the partial work\n  // represents an intermediate state, which we don't want to show to the user.\n  // And by spending extra time finishing it, we're increasing the amount of\n  // time it takes to show the final state, which is what they are actually\n  // waiting for.\n  //\n  // For those exceptions where entanglement is semantically important, like\n  // useMutableSource, we should ensure that there is no partial work at the\n  // time we apply the entanglement.\n\n\n  var entangledLanes = root.entangledLanes;\n\n  if (entangledLanes !== NoLanes) {\n    var entanglements = root.entanglements;\n    var lanes = nextLanes & entangledLanes;\n\n    while (lanes > 0) {\n      var index = pickArbitraryLaneIndex(lanes);\n      var lane = 1 << index;\n      nextLanes |= entanglements[index];\n      lanes &= ~lane;\n    }\n  }\n\n  return nextLanes;\n}\nfunction getMostRecentEventTime(root, lanes) {\n  var eventTimes = root.eventTimes;\n  var mostRecentEventTime = NoTimestamp;\n\n  while (lanes > 0) {\n    var index = pickArbitraryLaneIndex(lanes);\n    var lane = 1 << index;\n    var eventTime = eventTimes[index];\n\n    if (eventTime > mostRecentEventTime) {\n      mostRecentEventTime = eventTime;\n    }\n\n    lanes &= ~lane;\n  }\n\n  return mostRecentEventTime;\n}\n\nfunction computeExpirationTime(lane, currentTime) {\n  switch (lane) {\n    case SyncLane:\n    case InputContinuousHydrationLane:\n    case InputContinuousLane:\n      // User interactions should expire slightly more quickly.\n      //\n      // NOTE: This is set to the corresponding constant as in Scheduler.js.\n      // When we made it larger, a product metric in www regressed, suggesting\n      // there's a user interaction that's being starved by a series of\n      // synchronous updates. If that theory is correct, the proper solution is\n      // to fix the starvation. However, this scenario supports the idea that\n      // expiration times are an important safeguard when starvation\n      // does happen.\n      return currentTime + 250;\n\n    case DefaultHydrationLane:\n    case DefaultLane:\n    case TransitionHydrationLane:\n    case TransitionLane1:\n    case TransitionLane2:\n    case TransitionLane3:\n    case TransitionLane4:\n    case TransitionLane5:\n    case TransitionLane6:\n    case TransitionLane7:\n    case TransitionLane8:\n    case TransitionLane9:\n    case TransitionLane10:\n    case TransitionLane11:\n    case TransitionLane12:\n    case TransitionLane13:\n    case TransitionLane14:\n    case TransitionLane15:\n    case TransitionLane16:\n      return currentTime + 5000;\n\n    case RetryLane1:\n    case RetryLane2:\n    case RetryLane3:\n    case RetryLane4:\n    case RetryLane5:\n      // TODO: Retries should be allowed to expire if they are CPU bound for\n      // too long, but when I made this change it caused a spike in browser\n      // crashes. There must be some other underlying bug; not super urgent but\n      // ideally should figure out why and fix it. Unfortunately we don't have\n      // a repro for the crashes, only detected via production metrics.\n      return NoTimestamp;\n\n    case SelectiveHydrationLane:\n    case IdleHydrationLane:\n    case IdleLane:\n    case OffscreenLane:\n      // Anything idle priority or lower should never expire.\n      return NoTimestamp;\n\n    default:\n      {\n        error('Should have found matching lanes. This is a bug in React.');\n      }\n\n      return NoTimestamp;\n  }\n}\n\nfunction markStarvedLanesAsExpired(root, currentTime) {\n  // TODO: This gets called every time we yield. We can optimize by storing\n  // the earliest expiration time on the root. Then use that to quickly bail out\n  // of this function.\n  var pendingLanes = root.pendingLanes;\n  var suspendedLanes = root.suspendedLanes;\n  var pingedLanes = root.pingedLanes;\n  var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their\n  // expiration time. If so, we'll assume the update is being starved and mark\n  // it as expired to force it to finish.\n\n  var lanes = pendingLanes;\n\n  while (lanes > 0) {\n    var index = pickArbitraryLaneIndex(lanes);\n    var lane = 1 << index;\n    var expirationTime = expirationTimes[index];\n\n    if (expirationTime === NoTimestamp) {\n      // Found a pending lane with no expiration time. If it's not suspended, or\n      // if it's pinged, assume it's CPU-bound. Compute a new expiration time\n      // using the current time.\n      if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {\n        // Assumes timestamps are monotonically increasing.\n        expirationTimes[index] = computeExpirationTime(lane, currentTime);\n      }\n    } else if (expirationTime <= currentTime) {\n      // This lane expired\n      root.expiredLanes |= lane;\n    }\n\n    lanes &= ~lane;\n  }\n} // This returns the highest priority pending lanes regardless of whether they\n// are suspended.\n\nfunction getHighestPriorityPendingLanes(root) {\n  return getHighestPriorityLanes(root.pendingLanes);\n}\nfunction getLanesToRetrySynchronouslyOnError(root) {\n  var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;\n\n  if (everythingButOffscreen !== NoLanes) {\n    return everythingButOffscreen;\n  }\n\n  if (everythingButOffscreen & OffscreenLane) {\n    return OffscreenLane;\n  }\n\n  return NoLanes;\n}\nfunction includesSyncLane(lanes) {\n  return (lanes & SyncLane) !== NoLanes;\n}\nfunction includesNonIdleWork(lanes) {\n  return (lanes & NonIdleLanes) !== NoLanes;\n}\nfunction includesOnlyRetries(lanes) {\n  return (lanes & RetryLanes) === lanes;\n}\nfunction includesOnlyNonUrgentLanes(lanes) {\n  var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;\n  return (lanes & UrgentLanes) === NoLanes;\n}\nfunction includesOnlyTransitions(lanes) {\n  return (lanes & TransitionLanes) === lanes;\n}\nfunction includesBlockingLane(root, lanes) {\n\n  var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane;\n  return (lanes & SyncDefaultLanes) !== NoLanes;\n}\nfunction includesExpiredLane(root, lanes) {\n  // This is a separate check from includesBlockingLane because a lane can\n  // expire after a render has already started.\n  return (lanes & root.expiredLanes) !== NoLanes;\n}\nfunction isTransitionLane(lane) {\n  return (lane & TransitionLanes) !== NoLanes;\n}\nfunction claimNextTransitionLane() {\n  // Cycle through the lanes, assigning each new transition to the next lane.\n  // In most cases, this means every transition gets its own lane, until we\n  // run out of lanes and cycle back to the beginning.\n  var lane = nextTransitionLane;\n  nextTransitionLane <<= 1;\n\n  if ((nextTransitionLane & TransitionLanes) === NoLanes) {\n    nextTransitionLane = TransitionLane1;\n  }\n\n  return lane;\n}\nfunction claimNextRetryLane() {\n  var lane = nextRetryLane;\n  nextRetryLane <<= 1;\n\n  if ((nextRetryLane & RetryLanes) === NoLanes) {\n    nextRetryLane = RetryLane1;\n  }\n\n  return lane;\n}\nfunction getHighestPriorityLane(lanes) {\n  return lanes & -lanes;\n}\nfunction pickArbitraryLane(lanes) {\n  // This wrapper function gets inlined. Only exists so to communicate that it\n  // doesn't matter which bit is selected; you can pick any bit without\n  // affecting the algorithms where its used. Here I'm using\n  // getHighestPriorityLane because it requires the fewest operations.\n  return getHighestPriorityLane(lanes);\n}\n\nfunction pickArbitraryLaneIndex(lanes) {\n  return 31 - clz32(lanes);\n}\n\nfunction laneToIndex(lane) {\n  return pickArbitraryLaneIndex(lane);\n}\n\nfunction includesSomeLane(a, b) {\n  return (a & b) !== NoLanes;\n}\nfunction isSubsetOfLanes(set, subset) {\n  return (set & subset) === subset;\n}\nfunction mergeLanes(a, b) {\n  return a | b;\n}\nfunction removeLanes(set, subset) {\n  return set & ~subset;\n}\nfunction intersectLanes(a, b) {\n  return a & b;\n} // Seems redundant, but it changes the type from a single lane (used for\n// updates) to a group of lanes (used for flushing work).\n\nfunction laneToLanes(lane) {\n  return lane;\n}\nfunction higherPriorityLane(a, b) {\n  // This works because the bit ranges decrease in priority as you go left.\n  return a !== NoLane && a < b ? a : b;\n}\nfunction createLaneMap(initial) {\n  // Intentionally pushing one by one.\n  // https://v8.dev/blog/elements-kinds#avoid-creating-holes\n  var laneMap = [];\n\n  for (var i = 0; i < TotalLanes; i++) {\n    laneMap.push(initial);\n  }\n\n  return laneMap;\n}\nfunction markRootUpdated(root, updateLane, eventTime) {\n  root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update\n  // could unblock them. Clear the suspended lanes so that we can try rendering\n  // them again.\n  //\n  // TODO: We really only need to unsuspend only lanes that are in the\n  // `subtreeLanes` of the updated fiber, or the update lanes of the return\n  // path. This would exclude suspended updates in an unrelated sibling tree,\n  // since there's no way for this update to unblock it.\n  //\n  // We don't do this if the incoming update is idle, because we never process\n  // idle updates until after all the regular updates have finished; there's no\n  // way it could unblock a transition.\n\n  if (updateLane !== IdleLane) {\n    root.suspendedLanes = NoLanes;\n    root.pingedLanes = NoLanes;\n  }\n\n  var eventTimes = root.eventTimes;\n  var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most\n  // recent event, and we assume time is monotonically increasing.\n\n  eventTimes[index] = eventTime;\n}\nfunction markRootSuspended(root, suspendedLanes) {\n  root.suspendedLanes |= suspendedLanes;\n  root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.\n\n  var expirationTimes = root.expirationTimes;\n  var lanes = suspendedLanes;\n\n  while (lanes > 0) {\n    var index = pickArbitraryLaneIndex(lanes);\n    var lane = 1 << index;\n    expirationTimes[index] = NoTimestamp;\n    lanes &= ~lane;\n  }\n}\nfunction markRootPinged(root, pingedLanes, eventTime) {\n  root.pingedLanes |= root.suspendedLanes & pingedLanes;\n}\nfunction markRootFinished(root, remainingLanes) {\n  var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;\n  root.pendingLanes = remainingLanes; // Let's try everything again\n\n  root.suspendedLanes = NoLanes;\n  root.pingedLanes = NoLanes;\n  root.expiredLanes &= remainingLanes;\n  root.mutableReadLanes &= remainingLanes;\n  root.entangledLanes &= remainingLanes;\n  var entanglements = root.entanglements;\n  var eventTimes = root.eventTimes;\n  var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work\n\n  var lanes = noLongerPendingLanes;\n\n  while (lanes > 0) {\n    var index = pickArbitraryLaneIndex(lanes);\n    var lane = 1 << index;\n    entanglements[index] = NoLanes;\n    eventTimes[index] = NoTimestamp;\n    expirationTimes[index] = NoTimestamp;\n    lanes &= ~lane;\n  }\n}\nfunction markRootEntangled(root, entangledLanes) {\n  // In addition to entangling each of the given lanes with each other, we also\n  // have to consider _transitive_ entanglements. For each lane that is already\n  // entangled with *any* of the given lanes, that lane is now transitively\n  // entangled with *all* the given lanes.\n  //\n  // Translated: If C is entangled with A, then entangling A with B also\n  // entangles C with B.\n  //\n  // If this is hard to grasp, it might help to intentionally break this\n  // function and look at the tests that fail in ReactTransition-test.js. Try\n  // commenting out one of the conditions below.\n  var rootEntangledLanes = root.entangledLanes |= entangledLanes;\n  var entanglements = root.entanglements;\n  var lanes = rootEntangledLanes;\n\n  while (lanes) {\n    var index = pickArbitraryLaneIndex(lanes);\n    var lane = 1 << index;\n\n    if ( // Is this one of the newly entangled lanes?\n    lane & entangledLanes | // Is this lane transitively entangled with the newly entangled lanes?\n    entanglements[index] & entangledLanes) {\n      entanglements[index] |= entangledLanes;\n    }\n\n    lanes &= ~lane;\n  }\n}\nfunction getBumpedLaneForHydration(root, renderLanes) {\n  var renderLane = getHighestPriorityLane(renderLanes);\n  var lane;\n\n  switch (renderLane) {\n    case InputContinuousLane:\n      lane = InputContinuousHydrationLane;\n      break;\n\n    case DefaultLane:\n      lane = DefaultHydrationLane;\n      break;\n\n    case TransitionLane1:\n    case TransitionLane2:\n    case TransitionLane3:\n    case TransitionLane4:\n    case TransitionLane5:\n    case TransitionLane6:\n    case TransitionLane7:\n    case TransitionLane8:\n    case TransitionLane9:\n    case TransitionLane10:\n    case TransitionLane11:\n    case TransitionLane12:\n    case TransitionLane13:\n    case TransitionLane14:\n    case TransitionLane15:\n    case TransitionLane16:\n    case RetryLane1:\n    case RetryLane2:\n    case RetryLane3:\n    case RetryLane4:\n    case RetryLane5:\n      lane = TransitionHydrationLane;\n      break;\n\n    case IdleLane:\n      lane = IdleHydrationLane;\n      break;\n\n    default:\n      // Everything else is already either a hydration lane, or shouldn't\n      // be retried at a hydration lane.\n      lane = NoLane;\n      break;\n  } // Check if the lane we chose is suspended. If so, that indicates that we\n  // already attempted and failed to hydrate at that level. Also check if we're\n  // already rendering that lane, which is rare but could happen.\n\n\n  if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) {\n    // Give up trying to hydrate and fall back to client render.\n    return NoLane;\n  }\n\n  return lane;\n}\nfunction addFiberToLanesMap(root, fiber, lanes) {\n\n  if (!isDevToolsPresent) {\n    return;\n  }\n\n  var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;\n\n  while (lanes > 0) {\n    var index = laneToIndex(lanes);\n    var lane = 1 << index;\n    var updaters = pendingUpdatersLaneMap[index];\n    updaters.add(fiber);\n    lanes &= ~lane;\n  }\n}\nfunction movePendingFibersToMemoized(root, lanes) {\n\n  if (!isDevToolsPresent) {\n    return;\n  }\n\n  var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;\n  var memoizedUpdaters = root.memoizedUpdaters;\n\n  while (lanes > 0) {\n    var index = laneToIndex(lanes);\n    var lane = 1 << index;\n    var updaters = pendingUpdatersLaneMap[index];\n\n    if (updaters.size > 0) {\n      updaters.forEach(function (fiber) {\n        var alternate = fiber.alternate;\n\n        if (alternate === null || !memoizedUpdaters.has(alternate)) {\n          memoizedUpdaters.add(fiber);\n        }\n      });\n      updaters.clear();\n    }\n\n    lanes &= ~lane;\n  }\n}\nfunction getTransitionsForLanes(root, lanes) {\n  {\n    return null;\n  }\n}\n\nvar DiscreteEventPriority = SyncLane;\nvar ContinuousEventPriority = InputContinuousLane;\nvar DefaultEventPriority = DefaultLane;\nvar IdleEventPriority = IdleLane;\nvar currentUpdatePriority = NoLane;\nfunction getCurrentUpdatePriority() {\n  return currentUpdatePriority;\n}\nfunction setCurrentUpdatePriority(newPriority) {\n  currentUpdatePriority = newPriority;\n}\nfunction runWithPriority(priority, fn) {\n  var previousPriority = currentUpdatePriority;\n\n  try {\n    currentUpdatePriority = priority;\n    return fn();\n  } finally {\n    currentUpdatePriority = previousPriority;\n  }\n}\nfunction higherEventPriority(a, b) {\n  return a !== 0 && a < b ? a : b;\n}\nfunction lowerEventPriority(a, b) {\n  return a === 0 || a > b ? a : b;\n}\nfunction isHigherEventPriority(a, b) {\n  return a !== 0 && a < b;\n}\nfunction lanesToEventPriority(lanes) {\n  var lane = getHighestPriorityLane(lanes);\n\n  if (!isHigherEventPriority(DiscreteEventPriority, lane)) {\n    return DiscreteEventPriority;\n  }\n\n  if (!isHigherEventPriority(ContinuousEventPriority, lane)) {\n    return ContinuousEventPriority;\n  }\n\n  if (includesNonIdleWork(lane)) {\n    return DefaultEventPriority;\n  }\n\n  return IdleEventPriority;\n}\n\n// This is imported by the event replaying implementation in React DOM. It's\n// in a separate file to break a circular dependency between the renderer and\n// the reconciler.\nfunction isRootDehydrated(root) {\n  var currentState = root.current.memoizedState;\n  return currentState.isDehydrated;\n}\n\nvar _attemptSynchronousHydration;\n\nfunction setAttemptSynchronousHydration(fn) {\n  _attemptSynchronousHydration = fn;\n}\nfunction attemptSynchronousHydration(fiber) {\n  _attemptSynchronousHydration(fiber);\n}\nvar attemptContinuousHydration;\nfunction setAttemptContinuousHydration(fn) {\n  attemptContinuousHydration = fn;\n}\nvar attemptHydrationAtCurrentPriority;\nfunction setAttemptHydrationAtCurrentPriority(fn) {\n  attemptHydrationAtCurrentPriority = fn;\n}\nvar getCurrentUpdatePriority$1;\nfunction setGetCurrentUpdatePriority(fn) {\n  getCurrentUpdatePriority$1 = fn;\n}\nvar attemptHydrationAtPriority;\nfunction setAttemptHydrationAtPriority(fn) {\n  attemptHydrationAtPriority = fn;\n} // TODO: Upgrade this definition once we're on a newer version of Flow that\n// has this definition built-in.\n\nvar hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.\n\nvar queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.\n// if the last target was dehydrated.\n\nvar queuedFocus = null;\nvar queuedDrag = null;\nvar queuedMouse = null; // For pointer events there can be one latest event per pointerId.\n\nvar queuedPointers = new Map();\nvar queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.\n\nvar queuedExplicitHydrationTargets = [];\nvar discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase\n'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];\nfunction isDiscreteEventThatRequiresHydration(eventType) {\n  return discreteReplayableEvents.indexOf(eventType) > -1;\n}\n\nfunction createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  return {\n    blockedOn: blockedOn,\n    domEventName: domEventName,\n    eventSystemFlags: eventSystemFlags,\n    nativeEvent: nativeEvent,\n    targetContainers: [targetContainer]\n  };\n}\n\nfunction clearIfContinuousEvent(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case 'focusin':\n    case 'focusout':\n      queuedFocus = null;\n      break;\n\n    case 'dragenter':\n    case 'dragleave':\n      queuedDrag = null;\n      break;\n\n    case 'mouseover':\n    case 'mouseout':\n      queuedMouse = null;\n      break;\n\n    case 'pointerover':\n    case 'pointerout':\n      {\n        var pointerId = nativeEvent.pointerId;\n        queuedPointers.delete(pointerId);\n        break;\n      }\n\n    case 'gotpointercapture':\n    case 'lostpointercapture':\n      {\n        var _pointerId = nativeEvent.pointerId;\n        queuedPointerCaptures.delete(_pointerId);\n        break;\n      }\n  }\n}\n\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {\n    var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n    if (blockedOn !== null) {\n      var _fiber2 = getInstanceFromNode(blockedOn);\n\n      if (_fiber2 !== null) {\n        // Attempt to increase the priority of this target.\n        attemptContinuousHydration(_fiber2);\n      }\n    }\n\n    return queuedEvent;\n  } // If we have already queued this exact event, then it's because\n  // the different event systems have different DOM event listeners.\n  // We can accumulate the flags, and the targetContainers, and\n  // store a single event to be replayed.\n\n\n  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;\n  var targetContainers = existingQueuedEvent.targetContainers;\n\n  if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {\n    targetContainers.push(targetContainer);\n  }\n\n  return existingQueuedEvent;\n}\n\nfunction queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  // These set relatedTarget to null because the replayed event will be treated as if we\n  // moved from outside the window (no target) onto the target once it hydrates.\n  // Instead of mutating we could clone the event.\n  switch (domEventName) {\n    case 'focusin':\n      {\n        var focusEvent = nativeEvent;\n        queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);\n        return true;\n      }\n\n    case 'dragenter':\n      {\n        var dragEvent = nativeEvent;\n        queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);\n        return true;\n      }\n\n    case 'mouseover':\n      {\n        var mouseEvent = nativeEvent;\n        queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);\n        return true;\n      }\n\n    case 'pointerover':\n      {\n        var pointerEvent = nativeEvent;\n        var pointerId = pointerEvent.pointerId;\n        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));\n        return true;\n      }\n\n    case 'gotpointercapture':\n      {\n        var _pointerEvent = nativeEvent;\n        var _pointerId2 = _pointerEvent.pointerId;\n        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));\n        return true;\n      }\n  }\n\n  return false;\n} // Check if this target is unblocked. Returns true if it's unblocked.\n\nfunction attemptExplicitHydrationTarget(queuedTarget) {\n  // TODO: This function shares a lot of logic with findInstanceBlockingEvent.\n  // Try to unify them. It's a bit tricky since it would require two return\n  // values.\n  var targetInst = getClosestInstanceFromNode(queuedTarget.target);\n\n  if (targetInst !== null) {\n    var nearestMounted = getNearestMountedFiber(targetInst);\n\n    if (nearestMounted !== null) {\n      var tag = nearestMounted.tag;\n\n      if (tag === SuspenseComponent) {\n        var instance = getSuspenseInstanceFromFiber(nearestMounted);\n\n        if (instance !== null) {\n          // We're blocked on hydrating this boundary.\n          // Increase its priority.\n          queuedTarget.blockedOn = instance;\n          attemptHydrationAtPriority(queuedTarget.priority, function () {\n            attemptHydrationAtCurrentPriority(nearestMounted);\n          });\n          return;\n        }\n      } else if (tag === HostRoot) {\n        var root = nearestMounted.stateNode;\n\n        if (isRootDehydrated(root)) {\n          queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of\n          // a root other than sync.\n\n          return;\n        }\n      }\n    }\n  }\n\n  queuedTarget.blockedOn = null;\n}\n\nfunction queueExplicitHydrationTarget(target) {\n  // TODO: This will read the priority if it's dispatched by the React\n  // event system but not native events. Should read window.event.type, like\n  // we do for updates (getCurrentEventPriority).\n  var updatePriority = getCurrentUpdatePriority$1();\n  var queuedTarget = {\n    blockedOn: null,\n    target: target,\n    priority: updatePriority\n  };\n  var i = 0;\n\n  for (; i < queuedExplicitHydrationTargets.length; i++) {\n    // Stop once we hit the first target with lower priority than\n    if (!isHigherEventPriority(updatePriority, queuedExplicitHydrationTargets[i].priority)) {\n      break;\n    }\n  }\n\n  queuedExplicitHydrationTargets.splice(i, 0, queuedTarget);\n\n  if (i === 0) {\n    attemptExplicitHydrationTarget(queuedTarget);\n  }\n}\n\nfunction attemptReplayContinuousQueuedEvent(queuedEvent) {\n  if (queuedEvent.blockedOn !== null) {\n    return false;\n  }\n\n  var targetContainers = queuedEvent.targetContainers;\n\n  while (targetContainers.length > 0) {\n    var targetContainer = targetContainers[0];\n    var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);\n\n    if (nextBlockedOn === null) {\n      {\n        var nativeEvent = queuedEvent.nativeEvent;\n        var nativeEventClone = new nativeEvent.constructor(nativeEvent.type, nativeEvent);\n        setReplayingEvent(nativeEventClone);\n        nativeEvent.target.dispatchEvent(nativeEventClone);\n        resetReplayingEvent();\n      }\n    } else {\n      // We're still blocked. Try again later.\n      var _fiber3 = getInstanceFromNode(nextBlockedOn);\n\n      if (_fiber3 !== null) {\n        attemptContinuousHydration(_fiber3);\n      }\n\n      queuedEvent.blockedOn = nextBlockedOn;\n      return false;\n    } // This target container was successfully dispatched. Try the next.\n\n\n    targetContainers.shift();\n  }\n\n  return true;\n}\n\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {\n  if (attemptReplayContinuousQueuedEvent(queuedEvent)) {\n    map.delete(key);\n  }\n}\n\nfunction replayUnblockedEvents() {\n  hasScheduledReplayAttempt = false;\n\n\n  if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {\n    queuedFocus = null;\n  }\n\n  if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {\n    queuedDrag = null;\n  }\n\n  if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {\n    queuedMouse = null;\n  }\n\n  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\n\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked) {\n  if (queuedEvent.blockedOn === unblocked) {\n    queuedEvent.blockedOn = null;\n\n    if (!hasScheduledReplayAttempt) {\n      hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are\n      // now unblocked. This first might not actually be unblocked yet.\n      // We could check it early to avoid scheduling an unnecessary callback.\n\n      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);\n    }\n  }\n}\n\nfunction retryIfBlockedOn(unblocked) {\n  // Mark anything that was blocked on this as no longer blocked\n  // and eligible for a replay.\n  if (queuedDiscreteEvents.length > 0) {\n    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's\n    // worth it because we expect very few discrete events to queue up and once\n    // we are actually fully unblocked it will be fast to replay them.\n\n    for (var i = 1; i < queuedDiscreteEvents.length; i++) {\n      var queuedEvent = queuedDiscreteEvents[i];\n\n      if (queuedEvent.blockedOn === unblocked) {\n        queuedEvent.blockedOn = null;\n      }\n    }\n  }\n\n  if (queuedFocus !== null) {\n    scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n  }\n\n  if (queuedDrag !== null) {\n    scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n  }\n\n  if (queuedMouse !== null) {\n    scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n  }\n\n  var unblock = function (queuedEvent) {\n    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n  };\n\n  queuedPointers.forEach(unblock);\n  queuedPointerCaptures.forEach(unblock);\n\n  for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {\n    var queuedTarget = queuedExplicitHydrationTargets[_i];\n\n    if (queuedTarget.blockedOn === unblocked) {\n      queuedTarget.blockedOn = null;\n    }\n  }\n\n  while (queuedExplicitHydrationTargets.length > 0) {\n    var nextExplicitTarget = queuedExplicitHydrationTargets[0];\n\n    if (nextExplicitTarget.blockedOn !== null) {\n      // We're still blocked.\n      break;\n    } else {\n      attemptExplicitHydrationTarget(nextExplicitTarget);\n\n      if (nextExplicitTarget.blockedOn === null) {\n        // We're unblocked.\n        queuedExplicitHydrationTargets.shift();\n      }\n    }\n  }\n}\n\nvar ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these?\n\nvar _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.\n// We'd like to remove this but it's not clear if this is safe.\n\nfunction setEnabled(enabled) {\n  _enabled = !!enabled;\n}\nfunction isEnabled() {\n  return _enabled;\n}\nfunction createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {\n  var eventPriority = getEventPriority(domEventName);\n  var listenerWrapper;\n\n  switch (eventPriority) {\n    case DiscreteEventPriority:\n      listenerWrapper = dispatchDiscreteEvent;\n      break;\n\n    case ContinuousEventPriority:\n      listenerWrapper = dispatchContinuousEvent;\n      break;\n\n    case DefaultEventPriority:\n    default:\n      listenerWrapper = dispatchEvent;\n      break;\n  }\n\n  return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);\n}\n\nfunction dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {\n  var previousPriority = getCurrentUpdatePriority();\n  var prevTransition = ReactCurrentBatchConfig.transition;\n  ReactCurrentBatchConfig.transition = null;\n\n  try {\n    setCurrentUpdatePriority(DiscreteEventPriority);\n    dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n  } finally {\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig.transition = prevTransition;\n  }\n}\n\nfunction dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) {\n  var previousPriority = getCurrentUpdatePriority();\n  var prevTransition = ReactCurrentBatchConfig.transition;\n  ReactCurrentBatchConfig.transition = null;\n\n  try {\n    setCurrentUpdatePriority(ContinuousEventPriority);\n    dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);\n  } finally {\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig.transition = prevTransition;\n  }\n}\n\nfunction dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  if (!_enabled) {\n    return;\n  }\n\n  {\n    dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n  }\n}\n\nfunction dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  var blockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n  if (blockedOn === null) {\n    dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);\n    clearIfContinuousEvent(domEventName, nativeEvent);\n    return;\n  }\n\n  if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {\n    nativeEvent.stopPropagation();\n    return;\n  } // We need to clear only if we didn't queue because\n  // queueing is accumulative.\n\n\n  clearIfContinuousEvent(domEventName, nativeEvent);\n\n  if (eventSystemFlags & IS_CAPTURE_PHASE && isDiscreteEventThatRequiresHydration(domEventName)) {\n    while (blockedOn !== null) {\n      var fiber = getInstanceFromNode(blockedOn);\n\n      if (fiber !== null) {\n        attemptSynchronousHydration(fiber);\n      }\n\n      var nextBlockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);\n\n      if (nextBlockedOn === null) {\n        dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);\n      }\n\n      if (nextBlockedOn === blockedOn) {\n        break;\n      }\n\n      blockedOn = nextBlockedOn;\n    }\n\n    if (blockedOn !== null) {\n      nativeEvent.stopPropagation();\n    }\n\n    return;\n  } // This is not replayable so we'll invoke it but without a target,\n  // in case the event system needs to trace it.\n\n\n  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);\n}\n\nvar return_targetInst = null; // Returns a SuspenseInstance or Container if it's blocked.\n// The return_targetInst field above is conceptually part of the return value.\n\nfunction findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {\n  // TODO: Warn if _enabled is false.\n  return_targetInst = null;\n  var nativeEventTarget = getEventTarget(nativeEvent);\n  var targetInst = getClosestInstanceFromNode(nativeEventTarget);\n\n  if (targetInst !== null) {\n    var nearestMounted = getNearestMountedFiber(targetInst);\n\n    if (nearestMounted === null) {\n      // This tree has been unmounted already. Dispatch without a target.\n      targetInst = null;\n    } else {\n      var tag = nearestMounted.tag;\n\n      if (tag === SuspenseComponent) {\n        var instance = getSuspenseInstanceFromFiber(nearestMounted);\n\n        if (instance !== null) {\n          // Queue the event to be replayed later. Abort dispatching since we\n          // don't want this event dispatched twice through the event system.\n          // TODO: If this is the first discrete event in the queue. Schedule an increased\n          // priority for this boundary.\n          return instance;\n        } // This shouldn't happen, something went wrong but to avoid blocking\n        // the whole system, dispatch the event without a target.\n        // TODO: Warn.\n\n\n        targetInst = null;\n      } else if (tag === HostRoot) {\n        var root = nearestMounted.stateNode;\n\n        if (isRootDehydrated(root)) {\n          // If this happens during a replay something went wrong and it might block\n          // the whole system.\n          return getContainerFromFiber(nearestMounted);\n        }\n\n        targetInst = null;\n      } else if (nearestMounted !== targetInst) {\n        // If we get an event (ex: img onload) before committing that\n        // component's mount, ignore it for now (that is, treat it as if it was an\n        // event on a non-React tree). We might also consider queueing events and\n        // dispatching them after the mount.\n        targetInst = null;\n      }\n    }\n  }\n\n  return_targetInst = targetInst; // We're not blocked on anything.\n\n  return null;\n}\nfunction getEventPriority(domEventName) {\n  switch (domEventName) {\n    // Used by SimpleEventPlugin:\n    case 'cancel':\n    case 'click':\n    case 'close':\n    case 'contextmenu':\n    case 'copy':\n    case 'cut':\n    case 'auxclick':\n    case 'dblclick':\n    case 'dragend':\n    case 'dragstart':\n    case 'drop':\n    case 'focusin':\n    case 'focusout':\n    case 'input':\n    case 'invalid':\n    case 'keydown':\n    case 'keypress':\n    case 'keyup':\n    case 'mousedown':\n    case 'mouseup':\n    case 'paste':\n    case 'pause':\n    case 'play':\n    case 'pointercancel':\n    case 'pointerdown':\n    case 'pointerup':\n    case 'ratechange':\n    case 'reset':\n    case 'resize':\n    case 'seeked':\n    case 'submit':\n    case 'touchcancel':\n    case 'touchend':\n    case 'touchstart':\n    case 'volumechange': // Used by polyfills:\n    // eslint-disable-next-line no-fallthrough\n\n    case 'change':\n    case 'selectionchange':\n    case 'textInput':\n    case 'compositionstart':\n    case 'compositionend':\n    case 'compositionupdate': // Only enableCreateEventHandleAPI:\n    // eslint-disable-next-line no-fallthrough\n\n    case 'beforeblur':\n    case 'afterblur': // Not used by React but could be by user code:\n    // eslint-disable-next-line no-fallthrough\n\n    case 'beforeinput':\n    case 'blur':\n    case 'fullscreenchange':\n    case 'focus':\n    case 'hashchange':\n    case 'popstate':\n    case 'select':\n    case 'selectstart':\n      return DiscreteEventPriority;\n\n    case 'drag':\n    case 'dragenter':\n    case 'dragexit':\n    case 'dragleave':\n    case 'dragover':\n    case 'mousemove':\n    case 'mouseout':\n    case 'mouseover':\n    case 'pointermove':\n    case 'pointerout':\n    case 'pointerover':\n    case 'scroll':\n    case 'toggle':\n    case 'touchmove':\n    case 'wheel': // Not used by React but could be by user code:\n    // eslint-disable-next-line no-fallthrough\n\n    case 'mouseenter':\n    case 'mouseleave':\n    case 'pointerenter':\n    case 'pointerleave':\n      return ContinuousEventPriority;\n\n    case 'message':\n      {\n        // We might be in the Scheduler callback.\n        // Eventually this mechanism will be replaced by a check\n        // of the current priority on the native scheduler.\n        var schedulerPriority = getCurrentPriorityLevel();\n\n        switch (schedulerPriority) {\n          case ImmediatePriority:\n            return DiscreteEventPriority;\n\n          case UserBlockingPriority:\n            return ContinuousEventPriority;\n\n          case NormalPriority:\n          case LowPriority:\n            // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.\n            return DefaultEventPriority;\n\n          case IdlePriority:\n            return IdleEventPriority;\n\n          default:\n            return DefaultEventPriority;\n        }\n      }\n\n    default:\n      return DefaultEventPriority;\n  }\n}\n\nfunction addEventBubbleListener(target, eventType, listener) {\n  target.addEventListener(eventType, listener, false);\n  return listener;\n}\nfunction addEventCaptureListener(target, eventType, listener) {\n  target.addEventListener(eventType, listener, true);\n  return listener;\n}\nfunction addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {\n  target.addEventListener(eventType, listener, {\n    capture: true,\n    passive: passive\n  });\n  return listener;\n}\nfunction addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {\n  target.addEventListener(eventType, listener, {\n    passive: passive\n  });\n  return listener;\n}\n\n/**\n * These variables store information about text content of a target node,\n * allowing comparison of content before and after a given event.\n *\n * Identify the node where selection currently begins, then observe\n * both its text content and its current position in the DOM. Since the\n * browser may natively replace the target node during composition, we can\n * use its position to find its replacement.\n *\n *\n */\nvar root = null;\nvar startText = null;\nvar fallbackText = null;\nfunction initialize(nativeEventTarget) {\n  root = nativeEventTarget;\n  startText = getText();\n  return true;\n}\nfunction reset() {\n  root = null;\n  startText = null;\n  fallbackText = null;\n}\nfunction getData() {\n  if (fallbackText) {\n    return fallbackText;\n  }\n\n  var start;\n  var startValue = startText;\n  var startLength = startValue.length;\n  var end;\n  var endValue = getText();\n  var endLength = endValue.length;\n\n  for (start = 0; start < startLength; start++) {\n    if (startValue[start] !== endValue[start]) {\n      break;\n    }\n  }\n\n  var minEnd = startLength - start;\n\n  for (end = 1; end <= minEnd; end++) {\n    if (startValue[startLength - end] !== endValue[endLength - end]) {\n      break;\n    }\n  }\n\n  var sliceTail = end > 1 ? 1 - end : undefined;\n  fallbackText = endValue.slice(start, sliceTail);\n  return fallbackText;\n}\nfunction getText() {\n  if ('value' in root) {\n    return root.value;\n  }\n\n  return root.textContent;\n}\n\n/**\n * `charCode` represents the actual \"character code\" and is safe to use with\n * `String.fromCharCode`. As such, only keys that correspond to printable\n * characters produce a valid `charCode`, the only exception to this is Enter.\n * The Tab-key is considered non-printable and does not have a `charCode`,\n * presumably because it does not produce a tab-character in browsers.\n *\n * @param {object} nativeEvent Native browser event.\n * @return {number} Normalized `charCode` property.\n */\nfunction getEventCharCode(nativeEvent) {\n  var charCode;\n  var keyCode = nativeEvent.keyCode;\n\n  if ('charCode' in nativeEvent) {\n    charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n\n    if (charCode === 0 && keyCode === 13) {\n      charCode = 13;\n    }\n  } else {\n    // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n    charCode = keyCode;\n  } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)\n  // report Enter as charCode 10 when ctrl is pressed.\n\n\n  if (charCode === 10) {\n    charCode = 13;\n  } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n  // Must not discard the (non-)printable Enter-key.\n\n\n  if (charCode >= 32 || charCode === 13) {\n    return charCode;\n  }\n\n  return 0;\n}\n\nfunction functionThatReturnsTrue() {\n  return true;\n}\n\nfunction functionThatReturnsFalse() {\n  return false;\n} // This is intentionally a factory so that we have different returned constructors.\n// If we had a single constructor, it would be megamorphic and engines would deopt.\n\n\nfunction createSyntheticEvent(Interface) {\n  /**\n   * Synthetic events are dispatched by event plugins, typically in response to a\n   * top-level event delegation handler.\n   *\n   * These systems should generally use pooling to reduce the frequency of garbage\n   * collection. The system should check `isPersistent` to determine whether the\n   * event should be released into the pool after being dispatched. Users that\n   * need a persisted event should invoke `persist`.\n   *\n   * Synthetic events (and subclasses) implement the DOM Level 3 Events API by\n   * normalizing browser quirks. Subclasses do not necessarily have to implement a\n   * DOM interface; custom application-specific events can also subclass this.\n   */\n  function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {\n    this._reactName = reactName;\n    this._targetInst = targetInst;\n    this.type = reactEventType;\n    this.nativeEvent = nativeEvent;\n    this.target = nativeEventTarget;\n    this.currentTarget = null;\n\n    for (var _propName in Interface) {\n      if (!Interface.hasOwnProperty(_propName)) {\n        continue;\n      }\n\n      var normalize = Interface[_propName];\n\n      if (normalize) {\n        this[_propName] = normalize(nativeEvent);\n      } else {\n        this[_propName] = nativeEvent[_propName];\n      }\n    }\n\n    var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;\n\n    if (defaultPrevented) {\n      this.isDefaultPrevented = functionThatReturnsTrue;\n    } else {\n      this.isDefaultPrevented = functionThatReturnsFalse;\n    }\n\n    this.isPropagationStopped = functionThatReturnsFalse;\n    return this;\n  }\n\n  assign(SyntheticBaseEvent.prototype, {\n    preventDefault: function () {\n      this.defaultPrevented = true;\n      var event = this.nativeEvent;\n\n      if (!event) {\n        return;\n      }\n\n      if (event.preventDefault) {\n        event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE\n      } else if (typeof event.returnValue !== 'unknown') {\n        event.returnValue = false;\n      }\n\n      this.isDefaultPrevented = functionThatReturnsTrue;\n    },\n    stopPropagation: function () {\n      var event = this.nativeEvent;\n\n      if (!event) {\n        return;\n      }\n\n      if (event.stopPropagation) {\n        event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE\n      } else if (typeof event.cancelBubble !== 'unknown') {\n        // The ChangeEventPlugin registers a \"propertychange\" event for\n        // IE. This event does not support bubbling or cancelling, and\n        // any references to cancelBubble throw \"Member not found\".  A\n        // typeof check of \"unknown\" circumvents this issue (and is also\n        // IE specific).\n        event.cancelBubble = true;\n      }\n\n      this.isPropagationStopped = functionThatReturnsTrue;\n    },\n\n    /**\n     * We release all dispatched `SyntheticEvent`s after each event loop, adding\n     * them back into the pool. This allows a way to hold onto a reference that\n     * won't be added back into the pool.\n     */\n    persist: function () {// Modern event system doesn't use pooling.\n    },\n\n    /**\n     * Checks if this event should be released back into the pool.\n     *\n     * @return {boolean} True if this should not be released, false otherwise.\n     */\n    isPersistent: functionThatReturnsTrue\n  });\n  return SyntheticBaseEvent;\n}\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar EventInterface = {\n  eventPhase: 0,\n  bubbles: 0,\n  cancelable: 0,\n  timeStamp: function (event) {\n    return event.timeStamp || Date.now();\n  },\n  defaultPrevented: 0,\n  isTrusted: 0\n};\nvar SyntheticEvent = createSyntheticEvent(EventInterface);\n\nvar UIEventInterface = assign({}, EventInterface, {\n  view: 0,\n  detail: 0\n});\n\nvar SyntheticUIEvent = createSyntheticEvent(UIEventInterface);\nvar lastMovementX;\nvar lastMovementY;\nvar lastMouseEvent;\n\nfunction updateMouseMovementPolyfillState(event) {\n  if (event !== lastMouseEvent) {\n    if (lastMouseEvent && event.type === 'mousemove') {\n      lastMovementX = event.screenX - lastMouseEvent.screenX;\n      lastMovementY = event.screenY - lastMouseEvent.screenY;\n    } else {\n      lastMovementX = 0;\n      lastMovementY = 0;\n    }\n\n    lastMouseEvent = event;\n  }\n}\n/**\n * @interface MouseEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar MouseEventInterface = assign({}, UIEventInterface, {\n  screenX: 0,\n  screenY: 0,\n  clientX: 0,\n  clientY: 0,\n  pageX: 0,\n  pageY: 0,\n  ctrlKey: 0,\n  shiftKey: 0,\n  altKey: 0,\n  metaKey: 0,\n  getModifierState: getEventModifierState,\n  button: 0,\n  buttons: 0,\n  relatedTarget: function (event) {\n    if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;\n    return event.relatedTarget;\n  },\n  movementX: function (event) {\n    if ('movementX' in event) {\n      return event.movementX;\n    }\n\n    updateMouseMovementPolyfillState(event);\n    return lastMovementX;\n  },\n  movementY: function (event) {\n    if ('movementY' in event) {\n      return event.movementY;\n    } // Don't need to call updateMouseMovementPolyfillState() here\n    // because it's guaranteed to have already run when movementX\n    // was copied.\n\n\n    return lastMovementY;\n  }\n});\n\nvar SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);\n/**\n * @interface DragEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar DragEventInterface = assign({}, MouseEventInterface, {\n  dataTransfer: 0\n});\n\nvar SyntheticDragEvent = createSyntheticEvent(DragEventInterface);\n/**\n * @interface FocusEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar FocusEventInterface = assign({}, UIEventInterface, {\n  relatedTarget: 0\n});\n\nvar SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent\n */\n\nvar AnimationEventInterface = assign({}, EventInterface, {\n  animationName: 0,\n  elapsedTime: 0,\n  pseudoElement: 0\n});\n\nvar SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/clipboard-apis/\n */\n\nvar ClipboardEventInterface = assign({}, EventInterface, {\n  clipboardData: function (event) {\n    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;\n  }\n});\n\nvar SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents\n */\n\nvar CompositionEventInterface = assign({}, EventInterface, {\n  data: 0\n});\n\nvar SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105\n *      /#events-inputevents\n */\n// Happens to share the same list for now.\n\nvar SyntheticInputEvent = SyntheticCompositionEvent;\n/**\n * Normalization of deprecated HTML5 `key` values\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\nvar normalizeKey = {\n  Esc: 'Escape',\n  Spacebar: ' ',\n  Left: 'ArrowLeft',\n  Up: 'ArrowUp',\n  Right: 'ArrowRight',\n  Down: 'ArrowDown',\n  Del: 'Delete',\n  Win: 'OS',\n  Menu: 'ContextMenu',\n  Apps: 'ContextMenu',\n  Scroll: 'ScrollLock',\n  MozPrintableKey: 'Unidentified'\n};\n/**\n * Translation from legacy `keyCode` to HTML5 `key`\n * Only special keys supported, all others depend on keyboard layout or browser\n * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names\n */\n\nvar translateToKey = {\n  '8': 'Backspace',\n  '9': 'Tab',\n  '12': 'Clear',\n  '13': 'Enter',\n  '16': 'Shift',\n  '17': 'Control',\n  '18': 'Alt',\n  '19': 'Pause',\n  '20': 'CapsLock',\n  '27': 'Escape',\n  '32': ' ',\n  '33': 'PageUp',\n  '34': 'PageDown',\n  '35': 'End',\n  '36': 'Home',\n  '37': 'ArrowLeft',\n  '38': 'ArrowUp',\n  '39': 'ArrowRight',\n  '40': 'ArrowDown',\n  '45': 'Insert',\n  '46': 'Delete',\n  '112': 'F1',\n  '113': 'F2',\n  '114': 'F3',\n  '115': 'F4',\n  '116': 'F5',\n  '117': 'F6',\n  '118': 'F7',\n  '119': 'F8',\n  '120': 'F9',\n  '121': 'F10',\n  '122': 'F11',\n  '123': 'F12',\n  '144': 'NumLock',\n  '145': 'ScrollLock',\n  '224': 'Meta'\n};\n/**\n * @param {object} nativeEvent Native browser event.\n * @return {string} Normalized `key` property.\n */\n\nfunction getEventKey(nativeEvent) {\n  if (nativeEvent.key) {\n    // Normalize inconsistent values reported by browsers due to\n    // implementations of a working draft specification.\n    // FireFox implements `key` but returns `MozPrintableKey` for all\n    // printable characters (normalized to `Unidentified`), ignore it.\n    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n\n    if (key !== 'Unidentified') {\n      return key;\n    }\n  } // Browser does not implement `key`, polyfill as much of it as we can.\n\n\n  if (nativeEvent.type === 'keypress') {\n    var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can\n    // thus be captured by `keypress`, no other non-printable key should.\n\n    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);\n  }\n\n  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {\n    // While user keyboard layout determines the actual meaning of each\n    // `keyCode` value, almost all function keys have a universal value.\n    return translateToKey[nativeEvent.keyCode] || 'Unidentified';\n  }\n\n  return '';\n}\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\n\nvar modifierKeyToProp = {\n  Alt: 'altKey',\n  Control: 'ctrlKey',\n  Meta: 'metaKey',\n  Shift: 'shiftKey'\n}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support\n// getModifierState. If getModifierState is not supported, we map it to a set of\n// modifier keys exposed by the event. In this case, Lock-keys are not supported.\n\nfunction modifierStateGetter(keyArg) {\n  var syntheticEvent = this;\n  var nativeEvent = syntheticEvent.nativeEvent;\n\n  if (nativeEvent.getModifierState) {\n    return nativeEvent.getModifierState(keyArg);\n  }\n\n  var keyProp = modifierKeyToProp[keyArg];\n  return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n  return modifierStateGetter;\n}\n/**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\n\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n  key: getEventKey,\n  code: 0,\n  location: 0,\n  ctrlKey: 0,\n  shiftKey: 0,\n  altKey: 0,\n  metaKey: 0,\n  repeat: 0,\n  locale: 0,\n  getModifierState: getEventModifierState,\n  // Legacy Interface\n  charCode: function (event) {\n    // `charCode` is the result of a KeyPress event and represents the value of\n    // the actual printable character.\n    // KeyPress is deprecated, but its replacement is not yet final and not\n    // implemented in any major browser. Only KeyPress has charCode.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n\n    return 0;\n  },\n  keyCode: function (event) {\n    // `keyCode` is the result of a KeyDown/Up event and represents the value of\n    // physical keyboard key.\n    // The actual meaning of the value depends on the users' keyboard layout\n    // which cannot be detected. Assuming that it is a US keyboard layout\n    // provides a surprisingly accurate mapping for US and European users.\n    // Due to this, it is left to the user to implement at this time.\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n\n    return 0;\n  },\n  which: function (event) {\n    // `which` is an alias for either `keyCode` or `charCode` depending on the\n    // type of the event.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n\n    return 0;\n  }\n});\n\nvar SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);\n/**\n * @interface PointerEvent\n * @see http://www.w3.org/TR/pointerevents/\n */\n\nvar PointerEventInterface = assign({}, MouseEventInterface, {\n  pointerId: 0,\n  width: 0,\n  height: 0,\n  pressure: 0,\n  tangentialPressure: 0,\n  tiltX: 0,\n  tiltY: 0,\n  twist: 0,\n  pointerType: 0,\n  isPrimary: 0\n});\n\nvar SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);\n/**\n * @interface TouchEvent\n * @see http://www.w3.org/TR/touch-events/\n */\n\nvar TouchEventInterface = assign({}, UIEventInterface, {\n  touches: 0,\n  targetTouches: 0,\n  changedTouches: 0,\n  altKey: 0,\n  metaKey: 0,\n  ctrlKey: 0,\n  shiftKey: 0,\n  getModifierState: getEventModifierState\n});\n\nvar SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);\n/**\n * @interface Event\n * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-\n * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent\n */\n\nvar TransitionEventInterface = assign({}, EventInterface, {\n  propertyName: 0,\n  elapsedTime: 0,\n  pseudoElement: 0\n});\n\nvar SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);\n/**\n * @interface WheelEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\n\nvar WheelEventInterface = assign({}, MouseEventInterface, {\n  deltaX: function (event) {\n    return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;\n  },\n  deltaY: function (event) {\n    return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n    'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n    'wheelDelta' in event ? -event.wheelDelta : 0;\n  },\n  deltaZ: 0,\n  // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n  // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n  deltaMode: 0\n});\n\nvar SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);\n\nvar END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space\n\nvar START_KEYCODE = 229;\nvar canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;\nvar documentMode = null;\n\nif (canUseDOM && 'documentMode' in document) {\n  documentMode = document.documentMode;\n} // Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\n\n\nvar canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\n\nvar useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);\nvar SPACEBAR_CODE = 32;\nvar SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);\n\nfunction registerEvents() {\n  registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);\n  registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n  registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n  registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);\n} // Track whether we've ever handled a keypress on the space key.\n\n\nvar hasSpaceKeypress = false;\n/**\n * Return whether a native keypress event is assumed to be a command.\n * This is required because Firefox fires `keypress` events for key commands\n * (cut, copy, select-all, etc.) even though no character is inserted.\n */\n\nfunction isKeypressCommand(nativeEvent) {\n  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.\n  !(nativeEvent.ctrlKey && nativeEvent.altKey);\n}\n/**\n * Translate native top level events into event types.\n */\n\n\nfunction getCompositionEventType(domEventName) {\n  switch (domEventName) {\n    case 'compositionstart':\n      return 'onCompositionStart';\n\n    case 'compositionend':\n      return 'onCompositionEnd';\n\n    case 'compositionupdate':\n      return 'onCompositionUpdate';\n  }\n}\n/**\n * Does our fallback best-guess model think this event signifies that\n * composition has begun?\n */\n\n\nfunction isFallbackCompositionStart(domEventName, nativeEvent) {\n  return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;\n}\n/**\n * Does our fallback mode think that this event is the end of composition?\n */\n\n\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case 'keyup':\n      // Command keys insert or clear IME input.\n      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;\n\n    case 'keydown':\n      // Expect IME keyCode on each keydown. If we get any other\n      // code we must have exited earlier.\n      return nativeEvent.keyCode !== START_KEYCODE;\n\n    case 'keypress':\n    case 'mousedown':\n    case 'focusout':\n      // Events are not possible without cancelling IME.\n      return true;\n\n    default:\n      return false;\n  }\n}\n/**\n * Google Input Tools provides composition data via a CustomEvent,\n * with the `data` property populated in the `detail` object. If this\n * is available on the event object, use it. If not, this is a plain\n * composition event and we have nothing special to extract.\n *\n * @param {object} nativeEvent\n * @return {?string}\n */\n\n\nfunction getDataFromCustomEvent(nativeEvent) {\n  var detail = nativeEvent.detail;\n\n  if (typeof detail === 'object' && 'data' in detail) {\n    return detail.data;\n  }\n\n  return null;\n}\n/**\n * Check if a composition event was triggered by Korean IME.\n * Our fallback mode does not work well with IE's Korean IME,\n * so just use native composition events when Korean IME is used.\n * Although CompositionEvent.locale property is deprecated,\n * it is available in IE, where our fallback mode is enabled.\n *\n * @param {object} nativeEvent\n * @return {boolean}\n */\n\n\nfunction isUsingKoreanIME(nativeEvent) {\n  return nativeEvent.locale === 'ko';\n} // Track the current IME composition status, if any.\n\n\nvar isComposing = false;\n/**\n * @return {?object} A SyntheticCompositionEvent.\n */\n\nfunction extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {\n  var eventType;\n  var fallbackData;\n\n  if (canUseCompositionEvent) {\n    eventType = getCompositionEventType(domEventName);\n  } else if (!isComposing) {\n    if (isFallbackCompositionStart(domEventName, nativeEvent)) {\n      eventType = 'onCompositionStart';\n    }\n  } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {\n    eventType = 'onCompositionEnd';\n  }\n\n  if (!eventType) {\n    return null;\n  }\n\n  if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {\n    // The current composition is stored statically and must not be\n    // overwritten while composition continues.\n    if (!isComposing && eventType === 'onCompositionStart') {\n      isComposing = initialize(nativeEventTarget);\n    } else if (eventType === 'onCompositionEnd') {\n      if (isComposing) {\n        fallbackData = getData();\n      }\n    }\n  }\n\n  var listeners = accumulateTwoPhaseListeners(targetInst, eventType);\n\n  if (listeners.length > 0) {\n    var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);\n    dispatchQueue.push({\n      event: event,\n      listeners: listeners\n    });\n\n    if (fallbackData) {\n      // Inject data generated from fallback path into the synthetic event.\n      // This matches the property of native CompositionEventInterface.\n      event.data = fallbackData;\n    } else {\n      var customData = getDataFromCustomEvent(nativeEvent);\n\n      if (customData !== null) {\n        event.data = customData;\n      }\n    }\n  }\n}\n\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n  switch (domEventName) {\n    case 'compositionend':\n      return getDataFromCustomEvent(nativeEvent);\n\n    case 'keypress':\n      /**\n       * If native `textInput` events are available, our goal is to make\n       * use of them. However, there is a special case: the spacebar key.\n       * In Webkit, preventing default on a spacebar `textInput` event\n       * cancels character insertion, but it *also* causes the browser\n       * to fall back to its default spacebar behavior of scrolling the\n       * page.\n       *\n       * Tracking at:\n       * https://code.google.com/p/chromium/issues/detail?id=355103\n       *\n       * To avoid this issue, use the keypress event as if no `textInput`\n       * event is available.\n       */\n      var which = nativeEvent.which;\n\n      if (which !== SPACEBAR_CODE) {\n        return null;\n      }\n\n      hasSpaceKeypress = true;\n      return SPACEBAR_CHAR;\n\n    case 'textInput':\n      // Record the characters to be added to the DOM.\n      var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled\n      // it at the keypress level and bail immediately. Android Chrome\n      // doesn't give us keycodes, so we need to ignore it.\n\n      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {\n        return null;\n      }\n\n      return chars;\n\n    default:\n      // For other native event types, do nothing.\n      return null;\n  }\n}\n/**\n * For browsers that do not provide the `textInput` event, extract the\n * appropriate string to use for SyntheticInputEvent.\n */\n\n\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n  // If we are currently composing (IME) and using a fallback to do so,\n  // try to extract the composed characters from the fallback object.\n  // If composition event is available, we extract a string only at\n  // compositionevent, otherwise extract it at fallback events.\n  if (isComposing) {\n    if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {\n      var chars = getData();\n      reset();\n      isComposing = false;\n      return chars;\n    }\n\n    return null;\n  }\n\n  switch (domEventName) {\n    case 'paste':\n      // If a paste event occurs after a keypress, throw out the input\n      // chars. Paste events should not lead to BeforeInput events.\n      return null;\n\n    case 'keypress':\n      /**\n       * As of v27, Firefox may fire keypress events even when no character\n       * will be inserted. A few possibilities:\n       *\n       * - `which` is `0`. Arrow keys, Esc key, etc.\n       *\n       * - `which` is the pressed key code, but no char is available.\n       *   Ex: 'AltGr + d` in Polish. There is no modified character for\n       *   this key combination and no character is inserted into the\n       *   document, but FF fires the keypress for char code `100` anyway.\n       *   No `input` event will occur.\n       *\n       * - `which` is the pressed key code, but a command combination is\n       *   being used. Ex: `Cmd+C`. No character is inserted, and no\n       *   `input` event will occur.\n       */\n      if (!isKeypressCommand(nativeEvent)) {\n        // IE fires the `keypress` event when a user types an emoji via\n        // Touch keyboard of Windows.  In such a case, the `char` property\n        // holds an emoji character like `\\uD83D\\uDE0A`.  Because its length\n        // is 2, the property `which` does not represent an emoji correctly.\n        // In such a case, we directly return the `char` property instead of\n        // using `which`.\n        if (nativeEvent.char && nativeEvent.char.length > 1) {\n          return nativeEvent.char;\n        } else if (nativeEvent.which) {\n          return String.fromCharCode(nativeEvent.which);\n        }\n      }\n\n      return null;\n\n    case 'compositionend':\n      return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;\n\n    default:\n      return null;\n  }\n}\n/**\n * Extract a SyntheticInputEvent for `beforeInput`, based on either native\n * `textInput` or fallback behavior.\n *\n * @return {?object} A SyntheticInputEvent.\n */\n\n\nfunction extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {\n  var chars;\n\n  if (canUseTextInputEvent) {\n    chars = getNativeBeforeInputChars(domEventName, nativeEvent);\n  } else {\n    chars = getFallbackBeforeInputChars(domEventName, nativeEvent);\n  } // If no characters are being inserted, no BeforeInput event should\n  // be fired.\n\n\n  if (!chars) {\n    return null;\n  }\n\n  var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');\n\n  if (listeners.length > 0) {\n    var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);\n    dispatchQueue.push({\n      event: event,\n      listeners: listeners\n    });\n    event.data = chars;\n  }\n}\n/**\n * Create an `onBeforeInput` event to match\n * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.\n *\n * This event plugin is based on the native `textInput` event\n * available in Chrome, Safari, Opera, and IE. This event fires after\n * `onKeyPress` and `onCompositionEnd`, but before `onInput`.\n *\n * `beforeInput` is spec'd but not implemented in any browsers, and\n * the `input` event does not provide any useful information about what has\n * actually been added, contrary to the spec. Thus, `textInput` is the best\n * available event to identify the characters that have actually been inserted\n * into the target node.\n *\n * This plugin is also responsible for emitting `composition` events, thus\n * allowing us to share composition fallback code for both `beforeInput` and\n * `composition` event types.\n */\n\n\nfunction extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n  extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n}\n\n/**\n * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary\n */\nvar supportedInputTypes = {\n  color: true,\n  date: true,\n  datetime: true,\n  'datetime-local': true,\n  email: true,\n  month: true,\n  number: true,\n  password: true,\n  range: true,\n  search: true,\n  tel: true,\n  text: true,\n  time: true,\n  url: true,\n  week: true\n};\n\nfunction isTextInputElement(elem) {\n  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n\n  if (nodeName === 'input') {\n    return !!supportedInputTypes[elem.type];\n  }\n\n  if (nodeName === 'textarea') {\n    return true;\n  }\n\n  return false;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\n\nfunction isEventSupported(eventNameSuffix) {\n  if (!canUseDOM) {\n    return false;\n  }\n\n  var eventName = 'on' + eventNameSuffix;\n  var isSupported = (eventName in document);\n\n  if (!isSupported) {\n    var element = document.createElement('div');\n    element.setAttribute(eventName, 'return;');\n    isSupported = typeof element[eventName] === 'function';\n  }\n\n  return isSupported;\n}\n\nfunction registerEvents$1() {\n  registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);\n}\n\nfunction createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {\n  // Flag this event loop as needing state restore.\n  enqueueStateRestore(target);\n  var listeners = accumulateTwoPhaseListeners(inst, 'onChange');\n\n  if (listeners.length > 0) {\n    var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);\n    dispatchQueue.push({\n      event: event,\n      listeners: listeners\n    });\n  }\n}\n/**\n * For IE shims\n */\n\n\nvar activeElement = null;\nvar activeElementInst = null;\n/**\n * SECTION: handle `change` event\n */\n\nfunction shouldUseChangeEvent(elem) {\n  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();\n  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';\n}\n\nfunction manualDispatchChangeEvent(nativeEvent) {\n  var dispatchQueue = [];\n  createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the\n  // other events and have it go through ReactBrowserEventEmitter. Since it\n  // doesn't, we manually listen for the events and so we have to enqueue and\n  // process the abstract event manually.\n  //\n  // Batching is necessary here in order to ensure that all event handlers run\n  // before the next rerender (including event handlers attached to ancestor\n  // elements instead of directly on the input). Without this, controlled\n  // components don't work properly in conjunction with event bubbling because\n  // the component is rerendered and the value reverted before all the event\n  // handlers can run. See https://github.com/facebook/react/issues/708.\n\n  batchedUpdates(runEventInBatch, dispatchQueue);\n}\n\nfunction runEventInBatch(dispatchQueue) {\n  processDispatchQueue(dispatchQueue, 0);\n}\n\nfunction getInstIfValueChanged(targetInst) {\n  var targetNode = getNodeFromInstance(targetInst);\n\n  if (updateValueIfChanged(targetNode)) {\n    return targetInst;\n  }\n}\n\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n  if (domEventName === 'change') {\n    return targetInst;\n  }\n}\n/**\n * SECTION: handle `input` event\n */\n\n\nvar isInputEventSupported = false;\n\nif (canUseDOM) {\n  // IE9 claims to support the input event but fails to trigger it when\n  // deleting text, so we ignore its input events.\n  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);\n}\n/**\n * (For IE <=9) Starts tracking propertychange events on the passed-in element\n * and override the value property so that we can distinguish user events from\n * value changes in JS.\n */\n\n\nfunction startWatchingForValueChange(target, targetInst) {\n  activeElement = target;\n  activeElementInst = targetInst;\n  activeElement.attachEvent('onpropertychange', handlePropertyChange);\n}\n/**\n * (For IE <=9) Removes the event listeners from the currently-tracked element,\n * if any exists.\n */\n\n\nfunction stopWatchingForValueChange() {\n  if (!activeElement) {\n    return;\n  }\n\n  activeElement.detachEvent('onpropertychange', handlePropertyChange);\n  activeElement = null;\n  activeElementInst = null;\n}\n/**\n * (For IE <=9) Handles a propertychange event, sending a `change` event if\n * the value of the active element has changed.\n */\n\n\nfunction handlePropertyChange(nativeEvent) {\n  if (nativeEvent.propertyName !== 'value') {\n    return;\n  }\n\n  if (getInstIfValueChanged(activeElementInst)) {\n    manualDispatchChangeEvent(nativeEvent);\n  }\n}\n\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n  if (domEventName === 'focusin') {\n    // In IE9, propertychange fires for most input events but is buggy and\n    // doesn't fire when text is deleted, but conveniently, selectionchange\n    // appears to fire in all of the remaining cases so we catch those and\n    // forward the event if the value has changed\n    // In either case, we don't want to call the event handler if the value\n    // is changed from JS so we redefine a setter for `.value` that updates\n    // our activeElementValue variable, allowing us to ignore those changes\n    //\n    // stopWatching() should be a noop here but we call it just in case we\n    // missed a blur event somehow.\n    stopWatchingForValueChange();\n    startWatchingForValueChange(target, targetInst);\n  } else if (domEventName === 'focusout') {\n    stopWatchingForValueChange();\n  }\n} // For IE8 and IE9.\n\n\nfunction getTargetInstForInputEventPolyfill(domEventName, targetInst) {\n  if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {\n    // On the selectionchange event, the target is just document which isn't\n    // helpful for us so just check activeElement instead.\n    //\n    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n    // propertychange on the first input event after setting `value` from a\n    // script and fires only keydown, keypress, keyup. Catching keyup usually\n    // gets it and catching keydown lets us fire an event for the first\n    // keystroke if user does a key repeat (it'll be a little delayed: right\n    // before the second keystroke). Other input methods (e.g., paste) seem to\n    // fire selectionchange normally.\n    return getInstIfValueChanged(activeElementInst);\n  }\n}\n/**\n * SECTION: handle `click` event\n */\n\n\nfunction shouldUseClickEvent(elem) {\n  // Use the `click` event to detect changes to checkbox and radio inputs.\n  // This approach works across all browsers, whereas `change` does not fire\n  // until `blur` in IE8.\n  var nodeName = elem.nodeName;\n  return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');\n}\n\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n  if (domEventName === 'click') {\n    return getInstIfValueChanged(targetInst);\n  }\n}\n\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n  if (domEventName === 'input' || domEventName === 'change') {\n    return getInstIfValueChanged(targetInst);\n  }\n}\n\nfunction handleControlledInputBlur(node) {\n  var state = node._wrapperState;\n\n  if (!state || !state.controlled || node.type !== 'number') {\n    return;\n  }\n\n  {\n    // If controlled, assign the value attribute to the current value on blur\n    setDefaultValue(node, 'number', node.value);\n  }\n}\n/**\n * This plugin creates an `onChange` event that normalizes change events\n * across form elements. This event fires at a time when it's possible to\n * change the element's value without seeing a flicker.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - select\n */\n\n\nfunction extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;\n  var getTargetInstFunc, handleEventFunc;\n\n  if (shouldUseChangeEvent(targetNode)) {\n    getTargetInstFunc = getTargetInstForChangeEvent;\n  } else if (isTextInputElement(targetNode)) {\n    if (isInputEventSupported) {\n      getTargetInstFunc = getTargetInstForInputOrChangeEvent;\n    } else {\n      getTargetInstFunc = getTargetInstForInputEventPolyfill;\n      handleEventFunc = handleEventsForInputEventPolyfill;\n    }\n  } else if (shouldUseClickEvent(targetNode)) {\n    getTargetInstFunc = getTargetInstForClickEvent;\n  }\n\n  if (getTargetInstFunc) {\n    var inst = getTargetInstFunc(domEventName, targetInst);\n\n    if (inst) {\n      createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);\n      return;\n    }\n  }\n\n  if (handleEventFunc) {\n    handleEventFunc(domEventName, targetNode, targetInst);\n  } // When blurring, set the value attribute for number inputs\n\n\n  if (domEventName === 'focusout') {\n    handleControlledInputBlur(targetNode);\n  }\n}\n\nfunction registerEvents$2() {\n  registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);\n  registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);\n  registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);\n  registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);\n}\n/**\n * For almost every interaction we care about, there will be both a top-level\n * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\n * we do not extract duplicate events. However, moving the mouse into the\n * browser from outside will not fire a `mouseout` event. In this case, we use\n * the `mouseover` top-level event.\n */\n\n\nfunction extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';\n  var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';\n\n  if (isOverEvent && !isReplayingEvent(nativeEvent)) {\n    // If this is an over event with a target, we might have already dispatched\n    // the event in the out event of the other target. If this is replayed,\n    // then it's because we couldn't dispatch against this target previously\n    // so we have to do it now instead.\n    var related = nativeEvent.relatedTarget || nativeEvent.fromElement;\n\n    if (related) {\n      // If the related node is managed by React, we can assume that we have\n      // already dispatched the corresponding events during its mouseout.\n      if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {\n        return;\n      }\n    }\n  }\n\n  if (!isOutEvent && !isOverEvent) {\n    // Must not be a mouse or pointer in or out - ignoring.\n    return;\n  }\n\n  var win; // TODO: why is this nullable in the types but we read from it?\n\n  if (nativeEventTarget.window === nativeEventTarget) {\n    // `nativeEventTarget` is probably a window object.\n    win = nativeEventTarget;\n  } else {\n    // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n    var doc = nativeEventTarget.ownerDocument;\n\n    if (doc) {\n      win = doc.defaultView || doc.parentWindow;\n    } else {\n      win = window;\n    }\n  }\n\n  var from;\n  var to;\n\n  if (isOutEvent) {\n    var _related = nativeEvent.relatedTarget || nativeEvent.toElement;\n\n    from = targetInst;\n    to = _related ? getClosestInstanceFromNode(_related) : null;\n\n    if (to !== null) {\n      var nearestMounted = getNearestMountedFiber(to);\n\n      if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {\n        to = null;\n      }\n    }\n  } else {\n    // Moving to a node from outside the window.\n    from = null;\n    to = targetInst;\n  }\n\n  if (from === to) {\n    // Nothing pertains to our managed components.\n    return;\n  }\n\n  var SyntheticEventCtor = SyntheticMouseEvent;\n  var leaveEventType = 'onMouseLeave';\n  var enterEventType = 'onMouseEnter';\n  var eventTypePrefix = 'mouse';\n\n  if (domEventName === 'pointerout' || domEventName === 'pointerover') {\n    SyntheticEventCtor = SyntheticPointerEvent;\n    leaveEventType = 'onPointerLeave';\n    enterEventType = 'onPointerEnter';\n    eventTypePrefix = 'pointer';\n  }\n\n  var fromNode = from == null ? win : getNodeFromInstance(from);\n  var toNode = to == null ? win : getNodeFromInstance(to);\n  var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);\n  leave.target = fromNode;\n  leave.relatedTarget = toNode;\n  var enter = null; // We should only process this nativeEvent if we are processing\n  // the first ancestor. Next time, we will ignore the event.\n\n  var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);\n\n  if (nativeTargetInst === targetInst) {\n    var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);\n    enterEvent.target = toNode;\n    enterEvent.relatedTarget = fromNode;\n    enter = enterEvent;\n  }\n\n  accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);\n}\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n  ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\n\nfunction shallowEqual(objA, objB) {\n  if (objectIs(objA, objB)) {\n    return true;\n  }\n\n  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n    return false;\n  }\n\n  var keysA = Object.keys(objA);\n  var keysB = Object.keys(objB);\n\n  if (keysA.length !== keysB.length) {\n    return false;\n  } // Test for A's keys different from B.\n\n\n  for (var i = 0; i < keysA.length; i++) {\n    var currentKey = keysA[i];\n\n    if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\n/**\n * Given any node return the first leaf node without children.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {DOMElement|DOMTextNode}\n */\n\nfunction getLeafNode(node) {\n  while (node && node.firstChild) {\n    node = node.firstChild;\n  }\n\n  return node;\n}\n/**\n * Get the next sibling within a container. This will walk up the\n * DOM if a node's siblings have been exhausted.\n *\n * @param {DOMElement|DOMTextNode} node\n * @return {?DOMElement|DOMTextNode}\n */\n\n\nfunction getSiblingNode(node) {\n  while (node) {\n    if (node.nextSibling) {\n      return node.nextSibling;\n    }\n\n    node = node.parentNode;\n  }\n}\n/**\n * Get object describing the nodes which contain characters at offset.\n *\n * @param {DOMElement|DOMTextNode} root\n * @param {number} offset\n * @return {?object}\n */\n\n\nfunction getNodeForCharacterOffset(root, offset) {\n  var node = getLeafNode(root);\n  var nodeStart = 0;\n  var nodeEnd = 0;\n\n  while (node) {\n    if (node.nodeType === TEXT_NODE) {\n      nodeEnd = nodeStart + node.textContent.length;\n\n      if (nodeStart <= offset && nodeEnd >= offset) {\n        return {\n          node: node,\n          offset: offset - nodeStart\n        };\n      }\n\n      nodeStart = nodeEnd;\n    }\n\n    node = getLeafNode(getSiblingNode(node));\n  }\n}\n\n/**\n * @param {DOMElement} outerNode\n * @return {?object}\n */\n\nfunction getOffsets(outerNode) {\n  var ownerDocument = outerNode.ownerDocument;\n  var win = ownerDocument && ownerDocument.defaultView || window;\n  var selection = win.getSelection && win.getSelection();\n\n  if (!selection || selection.rangeCount === 0) {\n    return null;\n  }\n\n  var anchorNode = selection.anchorNode,\n      anchorOffset = selection.anchorOffset,\n      focusNode = selection.focusNode,\n      focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be \"anonymous divs\", e.g. the\n  // up/down buttons on an <input type=\"number\">. Anonymous divs do not seem to\n  // expose properties, triggering a \"Permission denied error\" if any of its\n  // properties are accessed. The only seemingly possible way to avoid erroring\n  // is to access a property that typically works for non-anonymous divs and\n  // catch any error that may otherwise arise. See\n  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n\n  try {\n    /* eslint-disable no-unused-expressions */\n    anchorNode.nodeType;\n    focusNode.nodeType;\n    /* eslint-enable no-unused-expressions */\n  } catch (e) {\n    return null;\n  }\n\n  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);\n}\n/**\n * Returns {start, end} where `start` is the character/codepoint index of\n * (anchorNode, anchorOffset) within the textContent of `outerNode`, and\n * `end` is the index of (focusNode, focusOffset).\n *\n * Returns null if you pass in garbage input but we should probably just crash.\n *\n * Exported only for testing.\n */\n\nfunction getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {\n  var length = 0;\n  var start = -1;\n  var end = -1;\n  var indexWithinAnchor = 0;\n  var indexWithinFocus = 0;\n  var node = outerNode;\n  var parentNode = null;\n\n  outer: while (true) {\n    var next = null;\n\n    while (true) {\n      if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {\n        start = length + anchorOffset;\n      }\n\n      if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {\n        end = length + focusOffset;\n      }\n\n      if (node.nodeType === TEXT_NODE) {\n        length += node.nodeValue.length;\n      }\n\n      if ((next = node.firstChild) === null) {\n        break;\n      } // Moving from `node` to its first child `next`.\n\n\n      parentNode = node;\n      node = next;\n    }\n\n    while (true) {\n      if (node === outerNode) {\n        // If `outerNode` has children, this is always the second time visiting\n        // it. If it has no children, this is still the first loop, and the only\n        // valid selection is anchorNode and focusNode both equal to this node\n        // and both offsets 0, in which case we will have handled above.\n        break outer;\n      }\n\n      if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {\n        start = length;\n      }\n\n      if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {\n        end = length;\n      }\n\n      if ((next = node.nextSibling) !== null) {\n        break;\n      }\n\n      node = parentNode;\n      parentNode = node.parentNode;\n    } // Moving from `node` to its next sibling `next`.\n\n\n    node = next;\n  }\n\n  if (start === -1 || end === -1) {\n    // This should never happen. (Would happen if the anchor/focus nodes aren't\n    // actually inside the passed-in node.)\n    return null;\n  }\n\n  return {\n    start: start,\n    end: end\n  };\n}\n/**\n * In modern non-IE browsers, we can support both forward and backward\n * selections.\n *\n * Note: IE10+ supports the Selection object, but it does not support\n * the `extend` method, which means that even in modern IE, it's not possible\n * to programmatically create a backward selection. Thus, for all IE\n * versions, we use the old IE API to create our selections.\n *\n * @param {DOMElement|DOMTextNode} node\n * @param {object} offsets\n */\n\nfunction setOffsets(node, offsets) {\n  var doc = node.ownerDocument || document;\n  var win = doc && doc.defaultView || window; // Edge fails with \"Object expected\" in some scenarios.\n  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,\n  // fails when pasting 100+ items)\n\n  if (!win.getSelection) {\n    return;\n  }\n\n  var selection = win.getSelection();\n  var length = node.textContent.length;\n  var start = Math.min(offsets.start, length);\n  var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.\n  // Flip backward selections, so we can set with a single range.\n\n  if (!selection.extend && start > end) {\n    var temp = end;\n    end = start;\n    start = temp;\n  }\n\n  var startMarker = getNodeForCharacterOffset(node, start);\n  var endMarker = getNodeForCharacterOffset(node, end);\n\n  if (startMarker && endMarker) {\n    if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {\n      return;\n    }\n\n    var range = doc.createRange();\n    range.setStart(startMarker.node, startMarker.offset);\n    selection.removeAllRanges();\n\n    if (start > end) {\n      selection.addRange(range);\n      selection.extend(endMarker.node, endMarker.offset);\n    } else {\n      range.setEnd(endMarker.node, endMarker.offset);\n      selection.addRange(range);\n    }\n  }\n}\n\nfunction isTextNode(node) {\n  return node && node.nodeType === TEXT_NODE;\n}\n\nfunction containsNode(outerNode, innerNode) {\n  if (!outerNode || !innerNode) {\n    return false;\n  } else if (outerNode === innerNode) {\n    return true;\n  } else if (isTextNode(outerNode)) {\n    return false;\n  } else if (isTextNode(innerNode)) {\n    return containsNode(outerNode, innerNode.parentNode);\n  } else if ('contains' in outerNode) {\n    return outerNode.contains(innerNode);\n  } else if (outerNode.compareDocumentPosition) {\n    return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n  } else {\n    return false;\n  }\n}\n\nfunction isInDocument(node) {\n  return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);\n}\n\nfunction isSameOriginFrame(iframe) {\n  try {\n    // Accessing the contentDocument of a HTMLIframeElement can cause the browser\n    // to throw, e.g. if it has a cross-origin src attribute.\n    // Safari will show an error in the console when the access results in \"Blocked a frame with origin\". e.g:\n    // iframe.contentDocument.defaultView;\n    // A safety way is to access one of the cross origin properties: Window or Location\n    // Which might result in \"SecurityError\" DOM Exception and it is compatible to Safari.\n    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl\n    return typeof iframe.contentWindow.location.href === 'string';\n  } catch (err) {\n    return false;\n  }\n}\n\nfunction getActiveElementDeep() {\n  var win = window;\n  var element = getActiveElement();\n\n  while (element instanceof win.HTMLIFrameElement) {\n    if (isSameOriginFrame(element)) {\n      win = element.contentWindow;\n    } else {\n      return element;\n    }\n\n    element = getActiveElement(win.document);\n  }\n\n  return element;\n}\n/**\n * @ReactInputSelection: React input selection module. Based on Selection.js,\n * but modified to be suitable for react and has a couple of bug fixes (doesn't\n * assume buttons have range selections allowed).\n * Input selection module for React.\n */\n\n/**\n * @hasSelectionCapabilities: we get the element types that support selection\n * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`\n * and `selectionEnd` rows.\n */\n\n\nfunction hasSelectionCapabilities(elem) {\n  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n  return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');\n}\nfunction getSelectionInformation() {\n  var focusedElem = getActiveElementDeep();\n  return {\n    focusedElem: focusedElem,\n    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null\n  };\n}\n/**\n * @restoreSelection: If any selection information was potentially lost,\n * restore it. This is useful when performing operations that could remove dom\n * nodes and place them back in, resulting in focus being lost.\n */\n\nfunction restoreSelection(priorSelectionInformation) {\n  var curFocusedElem = getActiveElementDeep();\n  var priorFocusedElem = priorSelectionInformation.focusedElem;\n  var priorSelectionRange = priorSelectionInformation.selectionRange;\n\n  if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {\n    if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {\n      setSelection(priorFocusedElem, priorSelectionRange);\n    } // Focusing a node can change the scroll position, which is undesirable\n\n\n    var ancestors = [];\n    var ancestor = priorFocusedElem;\n\n    while (ancestor = ancestor.parentNode) {\n      if (ancestor.nodeType === ELEMENT_NODE) {\n        ancestors.push({\n          element: ancestor,\n          left: ancestor.scrollLeft,\n          top: ancestor.scrollTop\n        });\n      }\n    }\n\n    if (typeof priorFocusedElem.focus === 'function') {\n      priorFocusedElem.focus();\n    }\n\n    for (var i = 0; i < ancestors.length; i++) {\n      var info = ancestors[i];\n      info.element.scrollLeft = info.left;\n      info.element.scrollTop = info.top;\n    }\n  }\n}\n/**\n * @getSelection: Gets the selection bounds of a focused textarea, input or\n * contentEditable node.\n * -@input: Look up selection bounds of this input\n * -@return {start: selectionStart, end: selectionEnd}\n */\n\nfunction getSelection(input) {\n  var selection;\n\n  if ('selectionStart' in input) {\n    // Modern browser with input or textarea.\n    selection = {\n      start: input.selectionStart,\n      end: input.selectionEnd\n    };\n  } else {\n    // Content editable or old IE textarea.\n    selection = getOffsets(input);\n  }\n\n  return selection || {\n    start: 0,\n    end: 0\n  };\n}\n/**\n * @setSelection: Sets the selection bounds of a textarea or input and focuses\n * the input.\n * -@input     Set selection bounds of this input or textarea\n * -@offsets   Object of same form that is returned from get*\n */\n\nfunction setSelection(input, offsets) {\n  var start = offsets.start;\n  var end = offsets.end;\n\n  if (end === undefined) {\n    end = start;\n  }\n\n  if ('selectionStart' in input) {\n    input.selectionStart = start;\n    input.selectionEnd = Math.min(end, input.value.length);\n  } else {\n    setOffsets(input, offsets);\n  }\n}\n\nvar skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;\n\nfunction registerEvents$3() {\n  registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);\n}\n\nvar activeElement$1 = null;\nvar activeElementInst$1 = null;\nvar lastSelection = null;\nvar mouseDown = false;\n/**\n * Get an object which is a unique representation of the current selection.\n *\n * The return value will not be consistent across nodes or browsers, but\n * two identical selections on the same node will return identical objects.\n */\n\nfunction getSelection$1(node) {\n  if ('selectionStart' in node && hasSelectionCapabilities(node)) {\n    return {\n      start: node.selectionStart,\n      end: node.selectionEnd\n    };\n  } else {\n    var win = node.ownerDocument && node.ownerDocument.defaultView || window;\n    var selection = win.getSelection();\n    return {\n      anchorNode: selection.anchorNode,\n      anchorOffset: selection.anchorOffset,\n      focusNode: selection.focusNode,\n      focusOffset: selection.focusOffset\n    };\n  }\n}\n/**\n * Get document associated with the event target.\n */\n\n\nfunction getEventTargetDocument(eventTarget) {\n  return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;\n}\n/**\n * Poll selection to see whether it's changed.\n *\n * @param {object} nativeEvent\n * @param {object} nativeEventTarget\n * @return {?SyntheticEvent}\n */\n\n\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n  // Ensure we have the right element, and that the user is not dragging a\n  // selection (this matches native `select` event behavior). In HTML5, select\n  // fires only on input and textarea thus if there's no focused element we\n  // won't dispatch.\n  var doc = getEventTargetDocument(nativeEventTarget);\n\n  if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {\n    return;\n  } // Only fire when selection has actually changed.\n\n\n  var currentSelection = getSelection$1(activeElement$1);\n\n  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {\n    lastSelection = currentSelection;\n    var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');\n\n    if (listeners.length > 0) {\n      var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);\n      dispatchQueue.push({\n        event: event,\n        listeners: listeners\n      });\n      event.target = activeElement$1;\n    }\n  }\n}\n/**\n * This plugin creates an `onSelect` event that normalizes select events\n * across form elements.\n *\n * Supported elements are:\n * - input (see `isTextInputElement`)\n * - textarea\n * - contentEditable\n *\n * This differs from native browser implementations in the following ways:\n * - Fires on contentEditable fields as well as inputs.\n * - Fires for collapsed selection.\n * - Fires after user input.\n */\n\n\nfunction extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;\n\n  switch (domEventName) {\n    // Track the input node that has focus.\n    case 'focusin':\n      if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {\n        activeElement$1 = targetNode;\n        activeElementInst$1 = targetInst;\n        lastSelection = null;\n      }\n\n      break;\n\n    case 'focusout':\n      activeElement$1 = null;\n      activeElementInst$1 = null;\n      lastSelection = null;\n      break;\n    // Don't fire the event while the user is dragging. This matches the\n    // semantics of the native select event.\n\n    case 'mousedown':\n      mouseDown = true;\n      break;\n\n    case 'contextmenu':\n    case 'mouseup':\n    case 'dragend':\n      mouseDown = false;\n      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n      break;\n    // Chrome and IE fire non-standard event when selection is changed (and\n    // sometimes when it hasn't). IE's event fires out of order with respect\n    // to key and input events on deletion, so we discard it.\n    //\n    // Firefox doesn't support selectionchange, so check selection status\n    // after each key entry. The selection changes after keydown and before\n    // keyup, but we check on keydown as well in the case of holding down a\n    // key, when multiple keydown events are fired but only one keyup is.\n    // This is also our approach for IE handling, for the reason above.\n\n    case 'selectionchange':\n      if (skipSelectionChangeEvent) {\n        break;\n      }\n\n    // falls through\n\n    case 'keydown':\n    case 'keyup':\n      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);\n  }\n}\n\n/**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\n\nfunction makePrefixMap(styleProp, eventName) {\n  var prefixes = {};\n  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n  prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n  prefixes['Moz' + styleProp] = 'moz' + eventName;\n  return prefixes;\n}\n/**\n * A list of event names to a configurable list of vendor prefixes.\n */\n\n\nvar vendorPrefixes = {\n  animationend: makePrefixMap('Animation', 'AnimationEnd'),\n  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n  animationstart: makePrefixMap('Animation', 'AnimationStart'),\n  transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n/**\n * Event names that have already been detected and prefixed (if applicable).\n */\n\nvar prefixedEventNames = {};\n/**\n * Element to check for prefixes on.\n */\n\nvar style = {};\n/**\n * Bootstrap if a DOM exists.\n */\n\nif (canUseDOM) {\n  style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,\n  // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n  // style object but the events that fire will still be prefixed, so we need\n  // to check if the un-prefixed events are usable, and if not remove them from the map.\n\n  if (!('AnimationEvent' in window)) {\n    delete vendorPrefixes.animationend.animation;\n    delete vendorPrefixes.animationiteration.animation;\n    delete vendorPrefixes.animationstart.animation;\n  } // Same as above\n\n\n  if (!('TransitionEvent' in window)) {\n    delete vendorPrefixes.transitionend.transition;\n  }\n}\n/**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\n\n\nfunction getVendorPrefixedEventName(eventName) {\n  if (prefixedEventNames[eventName]) {\n    return prefixedEventNames[eventName];\n  } else if (!vendorPrefixes[eventName]) {\n    return eventName;\n  }\n\n  var prefixMap = vendorPrefixes[eventName];\n\n  for (var styleProp in prefixMap) {\n    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n      return prefixedEventNames[eventName] = prefixMap[styleProp];\n    }\n  }\n\n  return eventName;\n}\n\nvar ANIMATION_END = getVendorPrefixedEventName('animationend');\nvar ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');\nvar ANIMATION_START = getVendorPrefixedEventName('animationstart');\nvar TRANSITION_END = getVendorPrefixedEventName('transitionend');\n\nvar topLevelEventsToReactNames = new Map(); // NOTE: Capitalization is important in this list!\n//\n// E.g. it needs \"pointerDown\", not \"pointerdown\".\n// This is because we derive both React name (\"onPointerDown\")\n// and DOM name (\"pointerdown\") from the same list.\n//\n// Exceptions that don't match this convention are listed separately.\n//\n// prettier-ignore\n\nvar simpleEventPluginEvents = ['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'];\n\nfunction registerSimpleEvent(domEventName, reactName) {\n  topLevelEventsToReactNames.set(domEventName, reactName);\n  registerTwoPhaseEvent(reactName, [domEventName]);\n}\n\nfunction registerSimpleEvents() {\n  for (var i = 0; i < simpleEventPluginEvents.length; i++) {\n    var eventName = simpleEventPluginEvents[i];\n    var domEventName = eventName.toLowerCase();\n    var capitalizedEvent = eventName[0].toUpperCase() + eventName.slice(1);\n    registerSimpleEvent(domEventName, 'on' + capitalizedEvent);\n  } // Special cases where event names don't match.\n\n\n  registerSimpleEvent(ANIMATION_END, 'onAnimationEnd');\n  registerSimpleEvent(ANIMATION_ITERATION, 'onAnimationIteration');\n  registerSimpleEvent(ANIMATION_START, 'onAnimationStart');\n  registerSimpleEvent('dblclick', 'onDoubleClick');\n  registerSimpleEvent('focusin', 'onFocus');\n  registerSimpleEvent('focusout', 'onBlur');\n  registerSimpleEvent(TRANSITION_END, 'onTransitionEnd');\n}\n\nfunction extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  var reactName = topLevelEventsToReactNames.get(domEventName);\n\n  if (reactName === undefined) {\n    return;\n  }\n\n  var SyntheticEventCtor = SyntheticEvent;\n  var reactEventType = domEventName;\n\n  switch (domEventName) {\n    case 'keypress':\n      // Firefox creates a keypress event for function keys too. This removes\n      // the unwanted keypress events. Enter is however both printable and\n      // non-printable. One would expect Tab to be as well (but it isn't).\n      if (getEventCharCode(nativeEvent) === 0) {\n        return;\n      }\n\n    /* falls through */\n\n    case 'keydown':\n    case 'keyup':\n      SyntheticEventCtor = SyntheticKeyboardEvent;\n      break;\n\n    case 'focusin':\n      reactEventType = 'focus';\n      SyntheticEventCtor = SyntheticFocusEvent;\n      break;\n\n    case 'focusout':\n      reactEventType = 'blur';\n      SyntheticEventCtor = SyntheticFocusEvent;\n      break;\n\n    case 'beforeblur':\n    case 'afterblur':\n      SyntheticEventCtor = SyntheticFocusEvent;\n      break;\n\n    case 'click':\n      // Firefox creates a click event on right mouse clicks. This removes the\n      // unwanted click events.\n      if (nativeEvent.button === 2) {\n        return;\n      }\n\n    /* falls through */\n\n    case 'auxclick':\n    case 'dblclick':\n    case 'mousedown':\n    case 'mousemove':\n    case 'mouseup': // TODO: Disabled elements should not respond to mouse events\n\n    /* falls through */\n\n    case 'mouseout':\n    case 'mouseover':\n    case 'contextmenu':\n      SyntheticEventCtor = SyntheticMouseEvent;\n      break;\n\n    case 'drag':\n    case 'dragend':\n    case 'dragenter':\n    case 'dragexit':\n    case 'dragleave':\n    case 'dragover':\n    case 'dragstart':\n    case 'drop':\n      SyntheticEventCtor = SyntheticDragEvent;\n      break;\n\n    case 'touchcancel':\n    case 'touchend':\n    case 'touchmove':\n    case 'touchstart':\n      SyntheticEventCtor = SyntheticTouchEvent;\n      break;\n\n    case ANIMATION_END:\n    case ANIMATION_ITERATION:\n    case ANIMATION_START:\n      SyntheticEventCtor = SyntheticAnimationEvent;\n      break;\n\n    case TRANSITION_END:\n      SyntheticEventCtor = SyntheticTransitionEvent;\n      break;\n\n    case 'scroll':\n      SyntheticEventCtor = SyntheticUIEvent;\n      break;\n\n    case 'wheel':\n      SyntheticEventCtor = SyntheticWheelEvent;\n      break;\n\n    case 'copy':\n    case 'cut':\n    case 'paste':\n      SyntheticEventCtor = SyntheticClipboardEvent;\n      break;\n\n    case 'gotpointercapture':\n    case 'lostpointercapture':\n    case 'pointercancel':\n    case 'pointerdown':\n    case 'pointermove':\n    case 'pointerout':\n    case 'pointerover':\n    case 'pointerup':\n      SyntheticEventCtor = SyntheticPointerEvent;\n      break;\n  }\n\n  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;\n\n  {\n    // Some events don't bubble in the browser.\n    // In the past, React has always bubbled them, but this can be surprising.\n    // We're going to try aligning closer to the browser behavior by not bubbling\n    // them in React either. We'll start by not bubbling onScroll, and then expand.\n    var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from\n    // nonDelegatedEvents list in DOMPluginEventSystem.\n    // Then we can remove this special list.\n    // This is a breaking change that can wait until React 18.\n    domEventName === 'scroll';\n\n    var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);\n\n    if (_listeners.length > 0) {\n      // Intentionally create event lazily.\n      var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);\n\n      dispatchQueue.push({\n        event: _event,\n        listeners: _listeners\n      });\n    }\n  }\n}\n\n// TODO: remove top-level side effect.\nregisterSimpleEvents();\nregisterEvents$2();\nregisterEvents$1();\nregisterEvents$3();\nregisterEvents();\n\nfunction extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {\n  // TODO: we should remove the concept of a \"SimpleEventPlugin\".\n  // This is the basic functionality of the event system. All\n  // the other plugins are essentially polyfills. So the plugin\n  // should probably be inlined somewhere and have its logic\n  // be core the to event system. This would potentially allow\n  // us to ship builds of React without the polyfilled plugins below.\n  extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n  var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the\n  // event's native \"bubble\" phase, which means that we're\n  // not in the capture phase. That's because we emulate\n  // the capture phase here still. This is a trade-off,\n  // because in an ideal world we would not emulate and use\n  // the phases properly, like we do with the SimpleEvent\n  // plugin. However, the plugins below either expect\n  // emulation (EnterLeave) or use state localized to that\n  // plugin (BeforeInput, Change, Select). The state in\n  // these modules complicates things, as you'll essentially\n  // get the case where the capture phase event might change\n  // state, only for the following bubble event to come in\n  // later and not trigger anything as the state now\n  // invalidates the heuristics of the event plugin. We\n  // could alter all these plugins to work in such ways, but\n  // that might cause other unknown side-effects that we\n  // can't foresee right now.\n\n  if (shouldProcessPolyfillPlugins) {\n    extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n    extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n    extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n    extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);\n  }\n} // List of events that need to be individually attached to media elements.\n\n\nvar mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'resize', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather\n// set them on the actual target element itself. This is primarily\n// because these events do not consistently bubble in the DOM.\n\nvar nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));\n\nfunction executeDispatch(event, listener, currentTarget) {\n  var type = event.type || 'unknown-event';\n  event.currentTarget = currentTarget;\n  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n  event.currentTarget = null;\n}\n\nfunction processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {\n  var previousInstance;\n\n  if (inCapturePhase) {\n    for (var i = dispatchListeners.length - 1; i >= 0; i--) {\n      var _dispatchListeners$i = dispatchListeners[i],\n          instance = _dispatchListeners$i.instance,\n          currentTarget = _dispatchListeners$i.currentTarget,\n          listener = _dispatchListeners$i.listener;\n\n      if (instance !== previousInstance && event.isPropagationStopped()) {\n        return;\n      }\n\n      executeDispatch(event, listener, currentTarget);\n      previousInstance = instance;\n    }\n  } else {\n    for (var _i = 0; _i < dispatchListeners.length; _i++) {\n      var _dispatchListeners$_i = dispatchListeners[_i],\n          _instance = _dispatchListeners$_i.instance,\n          _currentTarget = _dispatchListeners$_i.currentTarget,\n          _listener = _dispatchListeners$_i.listener;\n\n      if (_instance !== previousInstance && event.isPropagationStopped()) {\n        return;\n      }\n\n      executeDispatch(event, _listener, _currentTarget);\n      previousInstance = _instance;\n    }\n  }\n}\n\nfunction processDispatchQueue(dispatchQueue, eventSystemFlags) {\n  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;\n\n  for (var i = 0; i < dispatchQueue.length; i++) {\n    var _dispatchQueue$i = dispatchQueue[i],\n        event = _dispatchQueue$i.event,\n        listeners = _dispatchQueue$i.listeners;\n    processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); //  event system doesn't use pooling.\n  } // This would be a good time to rethrow if any of the event handlers threw.\n\n\n  rethrowCaughtError();\n}\n\nfunction dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {\n  var nativeEventTarget = getEventTarget(nativeEvent);\n  var dispatchQueue = [];\n  extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n  processDispatchQueue(dispatchQueue, eventSystemFlags);\n}\n\nfunction listenToNonDelegatedEvent(domEventName, targetElement) {\n  {\n    if (!nonDelegatedEvents.has(domEventName)) {\n      error('Did not expect a listenToNonDelegatedEvent() call for \"%s\". ' + 'This is a bug in React. Please file an issue.', domEventName);\n    }\n  }\n\n  var isCapturePhaseListener = false;\n  var listenerSet = getEventListenerSet(targetElement);\n  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);\n\n  if (!listenerSet.has(listenerSetKey)) {\n    addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);\n    listenerSet.add(listenerSetKey);\n  }\n}\nfunction listenToNativeEvent(domEventName, isCapturePhaseListener, target) {\n  {\n    if (nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener) {\n      error('Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. ' + 'This is a bug in React. Please file an issue.', domEventName);\n    }\n  }\n\n  var eventSystemFlags = 0;\n\n  if (isCapturePhaseListener) {\n    eventSystemFlags |= IS_CAPTURE_PHASE;\n  }\n\n  addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);\n} // This is only used by createEventHandle when the\nvar listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);\nfunction listenToAllSupportedEvents(rootContainerElement) {\n  if (!rootContainerElement[listeningMarker]) {\n    rootContainerElement[listeningMarker] = true;\n    allNativeEvents.forEach(function (domEventName) {\n      // We handle selectionchange separately because it\n      // doesn't bubble and needs to be on the document.\n      if (domEventName !== 'selectionchange') {\n        if (!nonDelegatedEvents.has(domEventName)) {\n          listenToNativeEvent(domEventName, false, rootContainerElement);\n        }\n\n        listenToNativeEvent(domEventName, true, rootContainerElement);\n      }\n    });\n    var ownerDocument = rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;\n\n    if (ownerDocument !== null) {\n      // The selectionchange event also needs deduplication\n      // but it is attached to the document.\n      if (!ownerDocument[listeningMarker]) {\n        ownerDocument[listeningMarker] = true;\n        listenToNativeEvent('selectionchange', false, ownerDocument);\n      }\n    }\n  }\n}\n\nfunction addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {\n  var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be\n  // active and not passive.\n\n  var isPassiveListener = undefined;\n\n  if (passiveBrowserEventsSupported) {\n    // Browsers introduced an intervention, making these events\n    // passive by default on document. React doesn't bind them\n    // to document anymore, but changing this now would undo\n    // the performance wins from the change. So we emulate\n    // the existing behavior manually on the roots now.\n    // https://github.com/facebook/react/issues/19651\n    if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {\n      isPassiveListener = true;\n    }\n  }\n\n  targetContainer =  targetContainer;\n  var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we\n\n\n  if (isCapturePhaseListener) {\n    if (isPassiveListener !== undefined) {\n      unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);\n    } else {\n      unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);\n    }\n  } else {\n    if (isPassiveListener !== undefined) {\n      unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);\n    } else {\n      unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);\n    }\n  }\n}\n\nfunction isMatchingRootContainer(grandContainer, targetContainer) {\n  return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;\n}\n\nfunction dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {\n  var ancestorInst = targetInst;\n\n  if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {\n    var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we\n\n    if (targetInst !== null) {\n      // The below logic attempts to work out if we need to change\n      // the target fiber to a different ancestor. We had similar logic\n      // in the legacy event system, except the big difference between\n      // systems is that the modern event system now has an event listener\n      // attached to each React Root and React Portal Root. Together,\n      // the DOM nodes representing these roots are the \"rootContainer\".\n      // To figure out which ancestor instance we should use, we traverse\n      // up the fiber tree from the target instance and attempt to find\n      // root boundaries that match that of our current \"rootContainer\".\n      // If we find that \"rootContainer\", we find the parent fiber\n      // sub-tree for that root and make that our ancestor instance.\n      var node = targetInst;\n\n      mainLoop: while (true) {\n        if (node === null) {\n          return;\n        }\n\n        var nodeTag = node.tag;\n\n        if (nodeTag === HostRoot || nodeTag === HostPortal) {\n          var container = node.stateNode.containerInfo;\n\n          if (isMatchingRootContainer(container, targetContainerNode)) {\n            break;\n          }\n\n          if (nodeTag === HostPortal) {\n            // The target is a portal, but it's not the rootContainer we're looking for.\n            // Normally portals handle their own events all the way down to the root.\n            // So we should be able to stop now. However, we don't know if this portal\n            // was part of *our* root.\n            var grandNode = node.return;\n\n            while (grandNode !== null) {\n              var grandTag = grandNode.tag;\n\n              if (grandTag === HostRoot || grandTag === HostPortal) {\n                var grandContainer = grandNode.stateNode.containerInfo;\n\n                if (isMatchingRootContainer(grandContainer, targetContainerNode)) {\n                  // This is the rootContainer we're looking for and we found it as\n                  // a parent of the Portal. That means we can ignore it because the\n                  // Portal will bubble through to us.\n                  return;\n                }\n              }\n\n              grandNode = grandNode.return;\n            }\n          } // Now we need to find it's corresponding host fiber in the other\n          // tree. To do this we can use getClosestInstanceFromNode, but we\n          // need to validate that the fiber is a host instance, otherwise\n          // we need to traverse up through the DOM till we find the correct\n          // node that is from the other tree.\n\n\n          while (container !== null) {\n            var parentNode = getClosestInstanceFromNode(container);\n\n            if (parentNode === null) {\n              return;\n            }\n\n            var parentTag = parentNode.tag;\n\n            if (parentTag === HostComponent || parentTag === HostText) {\n              node = ancestorInst = parentNode;\n              continue mainLoop;\n            }\n\n            container = container.parentNode;\n          }\n        }\n\n        node = node.return;\n      }\n    }\n  }\n\n  batchedUpdates(function () {\n    return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);\n  });\n}\n\nfunction createDispatchListener(instance, listener, currentTarget) {\n  return {\n    instance: instance,\n    listener: listener,\n    currentTarget: currentTarget\n  };\n}\n\nfunction accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly, nativeEvent) {\n  var captureName = reactName !== null ? reactName + 'Capture' : null;\n  var reactEventName = inCapturePhase ? captureName : reactName;\n  var listeners = [];\n  var instance = targetFiber;\n  var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.\n\n  while (instance !== null) {\n    var _instance2 = instance,\n        stateNode = _instance2.stateNode,\n        tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)\n\n    if (tag === HostComponent && stateNode !== null) {\n      lastHostComponent = stateNode; // createEventHandle listeners\n\n\n      if (reactEventName !== null) {\n        var listener = getListener(instance, reactEventName);\n\n        if (listener != null) {\n          listeners.push(createDispatchListener(instance, listener, lastHostComponent));\n        }\n      }\n    } // If we are only accumulating events for the target, then we don't\n    // continue to propagate through the React fiber tree to find other\n    // listeners.\n\n\n    if (accumulateTargetOnly) {\n      break;\n    } // If we are processing the onBeforeBlur event, then we need to take\n\n    instance = instance.return;\n  }\n\n  return listeners;\n} // We should only use this function for:\n// - BeforeInputEventPlugin\n// - ChangeEventPlugin\n// - SelectEventPlugin\n// This is because we only process these plugins\n// in the bubble phase, so we need to accumulate two\n// phase event listeners (via emulation).\n\nfunction accumulateTwoPhaseListeners(targetFiber, reactName) {\n  var captureName = reactName + 'Capture';\n  var listeners = [];\n  var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.\n\n  while (instance !== null) {\n    var _instance3 = instance,\n        stateNode = _instance3.stateNode,\n        tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)\n\n    if (tag === HostComponent && stateNode !== null) {\n      var currentTarget = stateNode;\n      var captureListener = getListener(instance, captureName);\n\n      if (captureListener != null) {\n        listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));\n      }\n\n      var bubbleListener = getListener(instance, reactName);\n\n      if (bubbleListener != null) {\n        listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));\n      }\n    }\n\n    instance = instance.return;\n  }\n\n  return listeners;\n}\n\nfunction getParent(inst) {\n  if (inst === null) {\n    return null;\n  }\n\n  do {\n    inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.\n    // That is depending on if we want nested subtrees (layers) to bubble\n    // events to their parent. We could also go through parentNode on the\n    // host node but that wouldn't work for React Native and doesn't let us\n    // do the portal feature.\n  } while (inst && inst.tag !== HostComponent);\n\n  if (inst) {\n    return inst;\n  }\n\n  return null;\n}\n/**\n * Return the lowest common ancestor of A and B, or null if they are in\n * different trees.\n */\n\n\nfunction getLowestCommonAncestor(instA, instB) {\n  var nodeA = instA;\n  var nodeB = instB;\n  var depthA = 0;\n\n  for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {\n    depthA++;\n  }\n\n  var depthB = 0;\n\n  for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {\n    depthB++;\n  } // If A is deeper, crawl up.\n\n\n  while (depthA - depthB > 0) {\n    nodeA = getParent(nodeA);\n    depthA--;\n  } // If B is deeper, crawl up.\n\n\n  while (depthB - depthA > 0) {\n    nodeB = getParent(nodeB);\n    depthB--;\n  } // Walk in lockstep until we find a match.\n\n\n  var depth = depthA;\n\n  while (depth--) {\n    if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {\n      return nodeA;\n    }\n\n    nodeA = getParent(nodeA);\n    nodeB = getParent(nodeB);\n  }\n\n  return null;\n}\n\nfunction accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {\n  var registrationName = event._reactName;\n  var listeners = [];\n  var instance = target;\n\n  while (instance !== null) {\n    if (instance === common) {\n      break;\n    }\n\n    var _instance4 = instance,\n        alternate = _instance4.alternate,\n        stateNode = _instance4.stateNode,\n        tag = _instance4.tag;\n\n    if (alternate !== null && alternate === common) {\n      break;\n    }\n\n    if (tag === HostComponent && stateNode !== null) {\n      var currentTarget = stateNode;\n\n      if (inCapturePhase) {\n        var captureListener = getListener(instance, registrationName);\n\n        if (captureListener != null) {\n          listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));\n        }\n      } else if (!inCapturePhase) {\n        var bubbleListener = getListener(instance, registrationName);\n\n        if (bubbleListener != null) {\n          listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));\n        }\n      }\n    }\n\n    instance = instance.return;\n  }\n\n  if (listeners.length !== 0) {\n    dispatchQueue.push({\n      event: event,\n      listeners: listeners\n    });\n  }\n} // We should only use this function for:\n// - EnterLeaveEventPlugin\n// This is because we only process this plugin\n// in the bubble phase, so we need to accumulate two\n// phase event listeners.\n\n\nfunction accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {\n  var common = from && to ? getLowestCommonAncestor(from, to) : null;\n\n  if (from !== null) {\n    accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);\n  }\n\n  if (to !== null && enterEvent !== null) {\n    accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);\n  }\n}\nfunction getListenerSetKey(domEventName, capture) {\n  return domEventName + \"__\" + (capture ? 'capture' : 'bubble');\n}\n\nvar didWarnInvalidHydration = false;\nvar DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';\nvar SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';\nvar SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';\nvar AUTOFOCUS = 'autoFocus';\nvar CHILDREN = 'children';\nvar STYLE = 'style';\nvar HTML$1 = '__html';\nvar warnedUnknownTags;\nvar validatePropertiesInDevelopment;\nvar warnForPropDifference;\nvar warnForExtraAttributes;\nvar warnForInvalidEventListener;\nvar canDiffStyleForHydrationWarning;\nvar normalizeHTML;\n\n{\n  warnedUnknownTags = {\n    // There are working polyfills for <dialog>. Let people use it.\n    dialog: true,\n    // Electron ships a custom <webview> tag to display external web content in\n    // an isolated frame and process.\n    // This tag is not present in non Electron environments such as JSDom which\n    // is often used for testing purposes.\n    // @see https://electronjs.org/docs/api/webview-tag\n    webview: true\n  };\n\n  validatePropertiesInDevelopment = function (type, props) {\n    validateProperties(type, props);\n    validateProperties$1(type, props);\n    validateProperties$2(type, props, {\n      registrationNameDependencies: registrationNameDependencies,\n      possibleRegistrationNames: possibleRegistrationNames\n    });\n  }; // IE 11 parses & normalizes the style attribute as opposed to other\n  // browsers. It adds spaces and sorts the properties in some\n  // non-alphabetical order. Handling that would require sorting CSS\n  // properties in the client & server versions or applying\n  // `expectedStyle` to a temporary DOM node to read its `style` attribute\n  // normalized. Since it only affects IE, we're skipping style warnings\n  // in that browser completely in favor of doing all that work.\n  // See https://github.com/facebook/react/issues/11807\n\n\n  canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;\n\n  warnForPropDifference = function (propName, serverValue, clientValue) {\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);\n    var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);\n\n    if (normalizedServerValue === normalizedClientValue) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n\n    error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));\n  };\n\n  warnForExtraAttributes = function (attributeNames) {\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n    var names = [];\n    attributeNames.forEach(function (name) {\n      names.push(name);\n    });\n\n    error('Extra attributes from the server: %s', names);\n  };\n\n  warnForInvalidEventListener = function (registrationName, listener) {\n    if (listener === false) {\n      error('Expected `%s` listener to be a function, instead got `false`.\\n\\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);\n    } else {\n      error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);\n    }\n  }; // Parse the HTML and read it back to normalize the HTML string so that it\n  // can be used for comparison.\n\n\n  normalizeHTML = function (parent, html) {\n    // We could have created a separate document here to avoid\n    // re-initializing custom elements if they exist. But this breaks\n    // how <noscript> is being handled. So we use the same document.\n    // See the discussion in https://github.com/facebook/react/pull/11157.\n    var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);\n    testElement.innerHTML = html;\n    return testElement.innerHTML;\n  };\n} // HTML parsing normalizes CR and CRLF to LF.\n// It also can turn \\u0000 into \\uFFFD inside attributes.\n// https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream\n// If we have a mismatch, it might be caused by that.\n// We will still patch up in this case but not fire the warning.\n\n\nvar NORMALIZE_NEWLINES_REGEX = /\\r\\n?/g;\nvar NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\\u0000|\\uFFFD/g;\n\nfunction normalizeMarkupForTextOrAttribute(markup) {\n  {\n    checkHtmlStringCoercion(markup);\n  }\n\n  var markupString = typeof markup === 'string' ? markup : '' + markup;\n  return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');\n}\n\nfunction checkForUnmatchedText(serverText, clientText, isConcurrentMode, shouldWarnDev) {\n  var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);\n  var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);\n\n  if (normalizedServerText === normalizedClientText) {\n    return;\n  }\n\n  if (shouldWarnDev) {\n    {\n      if (!didWarnInvalidHydration) {\n        didWarnInvalidHydration = true;\n\n        error('Text content did not match. Server: \"%s\" Client: \"%s\"', normalizedServerText, normalizedClientText);\n      }\n    }\n  }\n\n  if (isConcurrentMode && enableClientRenderFallbackOnTextMismatch) {\n    // In concurrent roots, we throw when there's a text mismatch and revert to\n    // client rendering, up to the nearest Suspense boundary.\n    throw new Error('Text content does not match server-rendered HTML.');\n  }\n}\n\nfunction getOwnerDocumentFromRootContainer(rootContainerElement) {\n  return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;\n}\n\nfunction noop() {}\n\nfunction trapClickOnNonInteractiveElement(node) {\n  // Mobile Safari does not fire properly bubble click events on\n  // non-interactive elements, which means delegated click listeners do not\n  // fire. The workaround for this bug involves attaching an empty click\n  // listener on the target node.\n  // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n  // Just set it using the onclick property so that we don't have to manage any\n  // bookkeeping for it. Not sure if we need to clear it when the listener is\n  // removed.\n  // TODO: Only do this for the relevant Safaris maybe?\n  node.onclick = noop;\n}\n\nfunction setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {\n  for (var propKey in nextProps) {\n    if (!nextProps.hasOwnProperty(propKey)) {\n      continue;\n    }\n\n    var nextProp = nextProps[propKey];\n\n    if (propKey === STYLE) {\n      {\n        if (nextProp) {\n          // Freeze the next style object so that we can assume it won't be\n          // mutated. We have already warned for this in the past.\n          Object.freeze(nextProp);\n        }\n      } // Relies on `updateStylesByID` not mutating `styleUpdates`.\n\n\n      setValueForStyles(domElement, nextProp);\n    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n\n      if (nextHtml != null) {\n        setInnerHTML(domElement, nextHtml);\n      }\n    } else if (propKey === CHILDREN) {\n      if (typeof nextProp === 'string') {\n        // Avoid setting initial textContent when the text is empty. In IE11 setting\n        // textContent on a <textarea> will cause the placeholder to not\n        // show within the <textarea> until it has been focused and blurred again.\n        // https://github.com/facebook/react/issues/6731#issuecomment-254874553\n        var canSetTextContent = tag !== 'textarea' || nextProp !== '';\n\n        if (canSetTextContent) {\n          setTextContent(domElement, nextProp);\n        }\n      } else if (typeof nextProp === 'number') {\n        setTextContent(domElement, '' + nextProp);\n      }\n    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n      if (nextProp != null) {\n        if ( typeof nextProp !== 'function') {\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        if (propKey === 'onScroll') {\n          listenToNonDelegatedEvent('scroll', domElement);\n        }\n      }\n    } else if (nextProp != null) {\n      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);\n    }\n  }\n}\n\nfunction updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {\n  // TODO: Handle wasCustomComponentTag\n  for (var i = 0; i < updatePayload.length; i += 2) {\n    var propKey = updatePayload[i];\n    var propValue = updatePayload[i + 1];\n\n    if (propKey === STYLE) {\n      setValueForStyles(domElement, propValue);\n    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n      setInnerHTML(domElement, propValue);\n    } else if (propKey === CHILDREN) {\n      setTextContent(domElement, propValue);\n    } else {\n      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);\n    }\n  }\n}\n\nfunction createElement(type, props, rootContainerElement, parentNamespace) {\n  var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML\n  // tags get no namespace.\n\n  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);\n  var domElement;\n  var namespaceURI = parentNamespace;\n\n  if (namespaceURI === HTML_NAMESPACE) {\n    namespaceURI = getIntrinsicNamespace(type);\n  }\n\n  if (namespaceURI === HTML_NAMESPACE) {\n    {\n      isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to\n      // allow <SVG> or <mATH>.\n\n      if (!isCustomComponentTag && type !== type.toLowerCase()) {\n        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);\n      }\n    }\n\n    if (type === 'script') {\n      // Create the script via .innerHTML so its \"parser-inserted\" flag is\n      // set to true and it does not execute\n      var div = ownerDocument.createElement('div');\n\n      div.innerHTML = '<script><' + '/script>'; // eslint-disable-line\n      // This is guaranteed to yield a script element.\n\n      var firstChild = div.firstChild;\n      domElement = div.removeChild(firstChild);\n    } else if (typeof props.is === 'string') {\n      // $FlowIssue `createElement` should be updated for Web Components\n      domElement = ownerDocument.createElement(type, {\n        is: props.is\n      });\n    } else {\n      // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.\n      // See discussion in https://github.com/facebook/react/pull/6896\n      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240\n      domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`\n      // attributes on `select`s needs to be added before `option`s are inserted.\n      // This prevents:\n      // - a bug where the `select` does not scroll to the correct option because singular\n      //  `select` elements automatically pick the first item #13222\n      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239\n      // See https://github.com/facebook/react/issues/13222\n      // and https://github.com/facebook/react/issues/14239\n\n      if (type === 'select') {\n        var node = domElement;\n\n        if (props.multiple) {\n          node.multiple = true;\n        } else if (props.size) {\n          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where\n          // it is possible that no option is selected.\n          //\n          // This is only necessary when a select in \"single selection mode\".\n          node.size = props.size;\n        }\n      }\n    }\n  } else {\n    domElement = ownerDocument.createElementNS(namespaceURI, type);\n  }\n\n  {\n    if (namespaceURI === HTML_NAMESPACE) {\n      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !hasOwnProperty.call(warnedUnknownTags, type)) {\n        warnedUnknownTags[type] = true;\n\n        error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);\n      }\n    }\n  }\n\n  return domElement;\n}\nfunction createTextNode(text, rootContainerElement) {\n  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);\n}\nfunction setInitialProperties(domElement, tag, rawProps, rootContainerElement) {\n  var isCustomComponentTag = isCustomComponent(tag, rawProps);\n\n  {\n    validatePropertiesInDevelopment(tag, rawProps);\n  } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n  var props;\n\n  switch (tag) {\n    case 'dialog':\n      listenToNonDelegatedEvent('cancel', domElement);\n      listenToNonDelegatedEvent('close', domElement);\n      props = rawProps;\n      break;\n\n    case 'iframe':\n    case 'object':\n    case 'embed':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the load event.\n      listenToNonDelegatedEvent('load', domElement);\n      props = rawProps;\n      break;\n\n    case 'video':\n    case 'audio':\n      // We listen to these events in case to ensure emulated bubble\n      // listeners still fire for all the media events.\n      for (var i = 0; i < mediaEventTypes.length; i++) {\n        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);\n      }\n\n      props = rawProps;\n      break;\n\n    case 'source':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the error event.\n      listenToNonDelegatedEvent('error', domElement);\n      props = rawProps;\n      break;\n\n    case 'img':\n    case 'image':\n    case 'link':\n      // We listen to these events in case to ensure emulated bubble\n      // listeners still fire for error and load events.\n      listenToNonDelegatedEvent('error', domElement);\n      listenToNonDelegatedEvent('load', domElement);\n      props = rawProps;\n      break;\n\n    case 'details':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the toggle event.\n      listenToNonDelegatedEvent('toggle', domElement);\n      props = rawProps;\n      break;\n\n    case 'input':\n      initWrapperState(domElement, rawProps);\n      props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n\n    case 'option':\n      validateProps(domElement, rawProps);\n      props = rawProps;\n      break;\n\n    case 'select':\n      initWrapperState$1(domElement, rawProps);\n      props = getHostProps$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n\n    case 'textarea':\n      initWrapperState$2(domElement, rawProps);\n      props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n\n    default:\n      props = rawProps;\n  }\n\n  assertValidProps(tag, props);\n  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);\n\n  switch (tag) {\n    case 'input':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper(domElement, rawProps, false);\n      break;\n\n    case 'textarea':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper$3(domElement);\n      break;\n\n    case 'option':\n      postMountWrapper$1(domElement, rawProps);\n      break;\n\n    case 'select':\n      postMountWrapper$2(domElement, rawProps);\n      break;\n\n    default:\n      if (typeof props.onClick === 'function') {\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n} // Calculate the diff between the two objects.\n\nfunction diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {\n  {\n    validatePropertiesInDevelopment(tag, nextRawProps);\n  }\n\n  var updatePayload = null;\n  var lastProps;\n  var nextProps;\n\n  switch (tag) {\n    case 'input':\n      lastProps = getHostProps(domElement, lastRawProps);\n      nextProps = getHostProps(domElement, nextRawProps);\n      updatePayload = [];\n      break;\n\n    case 'select':\n      lastProps = getHostProps$1(domElement, lastRawProps);\n      nextProps = getHostProps$1(domElement, nextRawProps);\n      updatePayload = [];\n      break;\n\n    case 'textarea':\n      lastProps = getHostProps$2(domElement, lastRawProps);\n      nextProps = getHostProps$2(domElement, nextRawProps);\n      updatePayload = [];\n      break;\n\n    default:\n      lastProps = lastRawProps;\n      nextProps = nextRawProps;\n\n      if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n\n  assertValidProps(tag, nextProps);\n  var propKey;\n  var styleName;\n  var styleUpdates = null;\n\n  for (propKey in lastProps) {\n    if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {\n      continue;\n    }\n\n    if (propKey === STYLE) {\n      var lastStyle = lastProps[propKey];\n\n      for (styleName in lastStyle) {\n        if (lastStyle.hasOwnProperty(styleName)) {\n          if (!styleUpdates) {\n            styleUpdates = {};\n          }\n\n          styleUpdates[styleName] = '';\n        }\n      }\n    } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n      // This is a special case. If any listener updates we need to ensure\n      // that the \"current\" fiber pointer gets updated so we need a commit\n      // to update this element.\n      if (!updatePayload) {\n        updatePayload = [];\n      }\n    } else {\n      // For all other deleted properties we add it to the queue. We use\n      // the allowed property list in the commit phase instead.\n      (updatePayload = updatePayload || []).push(propKey, null);\n    }\n  }\n\n  for (propKey in nextProps) {\n    var nextProp = nextProps[propKey];\n    var lastProp = lastProps != null ? lastProps[propKey] : undefined;\n\n    if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {\n      continue;\n    }\n\n    if (propKey === STYLE) {\n      {\n        if (nextProp) {\n          // Freeze the next style object so that we can assume it won't be\n          // mutated. We have already warned for this in the past.\n          Object.freeze(nextProp);\n        }\n      }\n\n      if (lastProp) {\n        // Unset styles on `lastProp` but not on `nextProp`.\n        for (styleName in lastProp) {\n          if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {\n            if (!styleUpdates) {\n              styleUpdates = {};\n            }\n\n            styleUpdates[styleName] = '';\n          }\n        } // Update styles that changed since `lastProp`.\n\n\n        for (styleName in nextProp) {\n          if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {\n            if (!styleUpdates) {\n              styleUpdates = {};\n            }\n\n            styleUpdates[styleName] = nextProp[styleName];\n          }\n        }\n      } else {\n        // Relies on `updateStylesByID` not mutating `styleUpdates`.\n        if (!styleUpdates) {\n          if (!updatePayload) {\n            updatePayload = [];\n          }\n\n          updatePayload.push(propKey, styleUpdates);\n        }\n\n        styleUpdates = nextProp;\n      }\n    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n      var lastHtml = lastProp ? lastProp[HTML$1] : undefined;\n\n      if (nextHtml != null) {\n        if (lastHtml !== nextHtml) {\n          (updatePayload = updatePayload || []).push(propKey, nextHtml);\n        }\n      }\n    } else if (propKey === CHILDREN) {\n      if (typeof nextProp === 'string' || typeof nextProp === 'number') {\n        (updatePayload = updatePayload || []).push(propKey, '' + nextProp);\n      }\n    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n      if (nextProp != null) {\n        // We eagerly listen to this even though we haven't committed yet.\n        if ( typeof nextProp !== 'function') {\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        if (propKey === 'onScroll') {\n          listenToNonDelegatedEvent('scroll', domElement);\n        }\n      }\n\n      if (!updatePayload && lastProp !== nextProp) {\n        // This is a special case. If any listener updates we need to ensure\n        // that the \"current\" props pointer gets updated so we need a commit\n        // to update this element.\n        updatePayload = [];\n      }\n    } else {\n      // For any other property we always add it to the queue and then we\n      // filter it out using the allowed property list during the commit.\n      (updatePayload = updatePayload || []).push(propKey, nextProp);\n    }\n  }\n\n  if (styleUpdates) {\n    {\n      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);\n    }\n\n    (updatePayload = updatePayload || []).push(STYLE, styleUpdates);\n  }\n\n  return updatePayload;\n} // Apply the diff.\n\nfunction updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {\n  // Update checked *before* name.\n  // In the middle of an update, it is possible to have multiple checked.\n  // When a checked radio tries to change name, browser makes another radio's checked false.\n  if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {\n    updateChecked(domElement, nextRawProps);\n  }\n\n  var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);\n  var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.\n\n  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props\n  // changed.\n\n  switch (tag) {\n    case 'input':\n      // Update the wrapper around inputs *after* updating props. This has to\n      // happen after `updateDOMProperties`. Otherwise HTML5 input validations\n      // raise warnings and prevent the new value from being assigned.\n      updateWrapper(domElement, nextRawProps);\n      break;\n\n    case 'textarea':\n      updateWrapper$1(domElement, nextRawProps);\n      break;\n\n    case 'select':\n      // <select> value update needs to occur after <option> children\n      // reconciliation\n      postUpdateWrapper(domElement, nextRawProps);\n      break;\n  }\n}\n\nfunction getPossibleStandardName(propName) {\n  {\n    var lowerCasedName = propName.toLowerCase();\n\n    if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {\n      return null;\n    }\n\n    return possibleStandardNames[lowerCasedName] || null;\n  }\n}\n\nfunction diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement, isConcurrentMode, shouldWarnDev) {\n  var isCustomComponentTag;\n  var extraAttributeNames;\n\n  {\n    isCustomComponentTag = isCustomComponent(tag, rawProps);\n    validatePropertiesInDevelopment(tag, rawProps);\n  } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n  switch (tag) {\n    case 'dialog':\n      listenToNonDelegatedEvent('cancel', domElement);\n      listenToNonDelegatedEvent('close', domElement);\n      break;\n\n    case 'iframe':\n    case 'object':\n    case 'embed':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the load event.\n      listenToNonDelegatedEvent('load', domElement);\n      break;\n\n    case 'video':\n    case 'audio':\n      // We listen to these events in case to ensure emulated bubble\n      // listeners still fire for all the media events.\n      for (var i = 0; i < mediaEventTypes.length; i++) {\n        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);\n      }\n\n      break;\n\n    case 'source':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the error event.\n      listenToNonDelegatedEvent('error', domElement);\n      break;\n\n    case 'img':\n    case 'image':\n    case 'link':\n      // We listen to these events in case to ensure emulated bubble\n      // listeners still fire for error and load events.\n      listenToNonDelegatedEvent('error', domElement);\n      listenToNonDelegatedEvent('load', domElement);\n      break;\n\n    case 'details':\n      // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the toggle event.\n      listenToNonDelegatedEvent('toggle', domElement);\n      break;\n\n    case 'input':\n      initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n\n    case 'option':\n      validateProps(domElement, rawProps);\n      break;\n\n    case 'select':\n      initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n\n    case 'textarea':\n      initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble\n      // listeners still fire for the invalid event.\n\n      listenToNonDelegatedEvent('invalid', domElement);\n      break;\n  }\n\n  assertValidProps(tag, rawProps);\n\n  {\n    extraAttributeNames = new Set();\n    var attributes = domElement.attributes;\n\n    for (var _i = 0; _i < attributes.length; _i++) {\n      var name = attributes[_i].name.toLowerCase();\n\n      switch (name) {\n        // Controlled attributes are not validated\n        // TODO: Only ignore them on controlled tags.\n        case 'value':\n          break;\n\n        case 'checked':\n          break;\n\n        case 'selected':\n          break;\n\n        default:\n          // Intentionally use the original name.\n          // See discussion in https://github.com/facebook/react/pull/10676.\n          extraAttributeNames.add(attributes[_i].name);\n      }\n    }\n  }\n\n  var updatePayload = null;\n\n  for (var propKey in rawProps) {\n    if (!rawProps.hasOwnProperty(propKey)) {\n      continue;\n    }\n\n    var nextProp = rawProps[propKey];\n\n    if (propKey === CHILDREN) {\n      // For text content children we compare against textContent. This\n      // might match additional HTML that is hidden when we read it using\n      // textContent. E.g. \"foo\" will match \"f<span>oo</span>\" but that still\n      // satisfies our requirement. Our requirement is not to produce perfect\n      // HTML and attributes. Ideally we should preserve structure but it's\n      // ok not to if the visible content is still enough to indicate what\n      // even listeners these nodes might be wired up to.\n      // TODO: Warn if there is more than a single textNode as a child.\n      // TODO: Should we use domElement.firstChild.nodeValue to compare?\n      if (typeof nextProp === 'string') {\n        if (domElement.textContent !== nextProp) {\n          if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n            checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);\n          }\n\n          updatePayload = [CHILDREN, nextProp];\n        }\n      } else if (typeof nextProp === 'number') {\n        if (domElement.textContent !== '' + nextProp) {\n          if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n            checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);\n          }\n\n          updatePayload = [CHILDREN, '' + nextProp];\n        }\n      }\n    } else if (registrationNameDependencies.hasOwnProperty(propKey)) {\n      if (nextProp != null) {\n        if ( typeof nextProp !== 'function') {\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        if (propKey === 'onScroll') {\n          listenToNonDelegatedEvent('scroll', domElement);\n        }\n      }\n    } else if (shouldWarnDev && true && // Convince Flow we've calculated it (it's DEV-only in this method.)\n    typeof isCustomComponentTag === 'boolean') {\n      // Validate that the properties correspond to their expected values.\n      var serverValue = void 0;\n      var propertyInfo = isCustomComponentTag && enableCustomElementPropertySupport ? null : getPropertyInfo(propKey);\n\n      if (rawProps[SUPPRESS_HYDRATION_WARNING] === true) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated\n      // TODO: Only ignore them on controlled tags.\n      propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {\n        var serverHTML = domElement.innerHTML;\n        var nextHtml = nextProp ? nextProp[HTML$1] : undefined;\n\n        if (nextHtml != null) {\n          var expectedHTML = normalizeHTML(domElement, nextHtml);\n\n          if (expectedHTML !== serverHTML) {\n            warnForPropDifference(propKey, serverHTML, expectedHTML);\n          }\n        }\n      } else if (propKey === STYLE) {\n        // $FlowFixMe - Should be inferred as not undefined.\n        extraAttributeNames.delete(propKey);\n\n        if (canDiffStyleForHydrationWarning) {\n          var expectedStyle = createDangerousStringForStyles(nextProp);\n          serverValue = domElement.getAttribute('style');\n\n          if (expectedStyle !== serverValue) {\n            warnForPropDifference(propKey, serverValue, expectedStyle);\n          }\n        }\n      } else if (isCustomComponentTag && !enableCustomElementPropertySupport) {\n        // $FlowFixMe - Should be inferred as not undefined.\n        extraAttributeNames.delete(propKey.toLowerCase());\n        serverValue = getValueForAttribute(domElement, propKey, nextProp);\n\n        if (nextProp !== serverValue) {\n          warnForPropDifference(propKey, serverValue, nextProp);\n        }\n      } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {\n        var isMismatchDueToBadCasing = false;\n\n        if (propertyInfo !== null) {\n          // $FlowFixMe - Should be inferred as not undefined.\n          extraAttributeNames.delete(propertyInfo.attributeName);\n          serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);\n        } else {\n          var ownNamespace = parentNamespace;\n\n          if (ownNamespace === HTML_NAMESPACE) {\n            ownNamespace = getIntrinsicNamespace(tag);\n          }\n\n          if (ownNamespace === HTML_NAMESPACE) {\n            // $FlowFixMe - Should be inferred as not undefined.\n            extraAttributeNames.delete(propKey.toLowerCase());\n          } else {\n            var standardName = getPossibleStandardName(propKey);\n\n            if (standardName !== null && standardName !== propKey) {\n              // If an SVG prop is supplied with bad casing, it will\n              // be successfully parsed from HTML, but will produce a mismatch\n              // (and would be incorrectly rendered on the client).\n              // However, we already warn about bad casing elsewhere.\n              // So we'll skip the misleading extra mismatch warning in this case.\n              isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.\n\n              extraAttributeNames.delete(standardName);\n            } // $FlowFixMe - Should be inferred as not undefined.\n\n\n            extraAttributeNames.delete(propKey);\n          }\n\n          serverValue = getValueForAttribute(domElement, propKey, nextProp);\n        }\n\n        var dontWarnCustomElement = enableCustomElementPropertySupport  ;\n\n        if (!dontWarnCustomElement && nextProp !== serverValue && !isMismatchDueToBadCasing) {\n          warnForPropDifference(propKey, serverValue, nextProp);\n        }\n      }\n    }\n  }\n\n  {\n    if (shouldWarnDev) {\n      if ( // $FlowFixMe - Should be inferred as not undefined.\n      extraAttributeNames.size > 0 && rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {\n        // $FlowFixMe - Should be inferred as not undefined.\n        warnForExtraAttributes(extraAttributeNames);\n      }\n    }\n  }\n\n  switch (tag) {\n    case 'input':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper(domElement, rawProps, true);\n      break;\n\n    case 'textarea':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper$3(domElement);\n      break;\n\n    case 'select':\n    case 'option':\n      // For input and textarea we current always set the value property at\n      // post mount to force it to diverge from attributes. However, for\n      // option and select we don't quite do the same thing and select\n      // is not resilient to the DOM state changing so we don't do that here.\n      // TODO: Consider not doing this for input and textarea.\n      break;\n\n    default:\n      if (typeof rawProps.onClick === 'function') {\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n\n  return updatePayload;\n}\nfunction diffHydratedText(textNode, text, isConcurrentMode) {\n  var isDifferent = textNode.nodeValue !== text;\n  return isDifferent;\n}\nfunction warnForDeletedHydratableElement(parentNode, child) {\n  {\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n\n    error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForDeletedHydratableText(parentNode, child) {\n  {\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n\n    error('Did not expect server HTML to contain the text node \"%s\" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForInsertedHydratedElement(parentNode, tag, props) {\n  {\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n\n    error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForInsertedHydratedText(parentNode, text) {\n  {\n    if (text === '') {\n      // We expect to insert empty text nodes since they're not represented in\n      // the HTML.\n      // TODO: Remove this special case if we can just avoid inserting empty\n      // text nodes.\n      return;\n    }\n\n    if (didWarnInvalidHydration) {\n      return;\n    }\n\n    didWarnInvalidHydration = true;\n\n    error('Expected server HTML to contain a matching text node for \"%s\" in <%s>.', text, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction restoreControlledState$3(domElement, tag, props) {\n  switch (tag) {\n    case 'input':\n      restoreControlledState(domElement, props);\n      return;\n\n    case 'textarea':\n      restoreControlledState$2(domElement, props);\n      return;\n\n    case 'select':\n      restoreControlledState$1(domElement, props);\n      return;\n  }\n}\n\nvar validateDOMNesting = function () {};\n\nvar updatedAncestorInfo = function () {};\n\n{\n  // This validation code was written based on the HTML5 parsing spec:\n  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n  //\n  // Note: this does not catch all invalid nesting, nor does it try to (as it's\n  // not clear what practical benefit doing so provides); instead, we warn only\n  // for cases where the parser will give a parse tree differing from what React\n  // intended. For example, <b><div></div></b> is invalid but we don't warn\n  // because it still parses correctly; we do warn for other cases like nested\n  // <p> tags where the beginning of the second element implicitly closes the\n  // first, causing a confusing mess.\n  // https://html.spec.whatwg.org/multipage/syntax.html#special\n  var specialTags = ['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']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n\n  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point\n  // TODO: Distinguish by namespace here -- for <title>, including it here\n  // errs on the side of fewer warnings\n  'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope\n\n  var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags\n\n  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];\n  var emptyAncestorInfo = {\n    current: null,\n    formTag: null,\n    aTagInScope: null,\n    buttonTagInScope: null,\n    nobrTagInScope: null,\n    pTagInButtonScope: null,\n    listItemTagAutoclosing: null,\n    dlItemTagAutoclosing: null\n  };\n\n  updatedAncestorInfo = function (oldInfo, tag) {\n    var ancestorInfo = assign({}, oldInfo || emptyAncestorInfo);\n\n    var info = {\n      tag: tag\n    };\n\n    if (inScopeTags.indexOf(tag) !== -1) {\n      ancestorInfo.aTagInScope = null;\n      ancestorInfo.buttonTagInScope = null;\n      ancestorInfo.nobrTagInScope = null;\n    }\n\n    if (buttonScopeTags.indexOf(tag) !== -1) {\n      ancestorInfo.pTagInButtonScope = null;\n    } // See rules for 'li', 'dd', 'dt' start tags in\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {\n      ancestorInfo.listItemTagAutoclosing = null;\n      ancestorInfo.dlItemTagAutoclosing = null;\n    }\n\n    ancestorInfo.current = info;\n\n    if (tag === 'form') {\n      ancestorInfo.formTag = info;\n    }\n\n    if (tag === 'a') {\n      ancestorInfo.aTagInScope = info;\n    }\n\n    if (tag === 'button') {\n      ancestorInfo.buttonTagInScope = info;\n    }\n\n    if (tag === 'nobr') {\n      ancestorInfo.nobrTagInScope = info;\n    }\n\n    if (tag === 'p') {\n      ancestorInfo.pTagInButtonScope = info;\n    }\n\n    if (tag === 'li') {\n      ancestorInfo.listItemTagAutoclosing = info;\n    }\n\n    if (tag === 'dd' || tag === 'dt') {\n      ancestorInfo.dlItemTagAutoclosing = info;\n    }\n\n    return ancestorInfo;\n  };\n  /**\n   * Returns whether\n   */\n\n\n  var isTagValidWithParent = function (tag, parentTag) {\n    // First, let's check if we're in an unusual parsing mode...\n    switch (parentTag) {\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect\n      case 'select':\n        return tag === 'option' || tag === 'optgroup' || tag === '#text';\n\n      case 'optgroup':\n        return tag === 'option' || tag === '#text';\n      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>\n      // but\n\n      case 'option':\n        return tag === '#text';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption\n      // No special behavior since these rules fall back to \"in body\" mode for\n      // all except special table nodes which cause bad parsing behavior anyway.\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr\n\n      case 'tr':\n        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody\n\n      case 'tbody':\n      case 'thead':\n      case 'tfoot':\n        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup\n\n      case 'colgroup':\n        return tag === 'col' || tag === 'template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable\n\n      case 'table':\n        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead\n\n      case 'head':\n        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';\n      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element\n\n      case 'html':\n        return tag === 'head' || tag === 'body' || tag === 'frameset';\n\n      case 'frameset':\n        return tag === 'frame';\n\n      case '#document':\n        return tag === 'html';\n    } // Probably in the \"in body\" parsing mode, so we outlaw only tag combos\n    // where the parsing rules cause implicit opens or closes to be added.\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n    switch (tag) {\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';\n\n      case 'rp':\n      case 'rt':\n        return impliedEndTags.indexOf(parentTag) === -1;\n\n      case 'body':\n      case 'caption':\n      case 'col':\n      case 'colgroup':\n      case 'frameset':\n      case 'frame':\n      case 'head':\n      case 'html':\n      case 'tbody':\n      case 'td':\n      case 'tfoot':\n      case 'th':\n      case 'thead':\n      case 'tr':\n        // These tags are only valid with a few parents that have special child\n        // parsing rules -- if we're down here, then none of those matched and\n        // so we allow it only if we don't know what the parent is, as all other\n        // cases are invalid.\n        return parentTag == null;\n    }\n\n    return true;\n  };\n  /**\n   * Returns whether\n   */\n\n\n  var findInvalidAncestorForTag = function (tag, ancestorInfo) {\n    switch (tag) {\n      case 'address':\n      case 'article':\n      case 'aside':\n      case 'blockquote':\n      case 'center':\n      case 'details':\n      case 'dialog':\n      case 'dir':\n      case 'div':\n      case 'dl':\n      case 'fieldset':\n      case 'figcaption':\n      case 'figure':\n      case 'footer':\n      case 'header':\n      case 'hgroup':\n      case 'main':\n      case 'menu':\n      case 'nav':\n      case 'ol':\n      case 'p':\n      case 'section':\n      case 'summary':\n      case 'ul':\n      case 'pre':\n      case 'listing':\n      case 'table':\n      case 'hr':\n      case 'xmp':\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return ancestorInfo.pTagInButtonScope;\n\n      case 'form':\n        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;\n\n      case 'li':\n        return ancestorInfo.listItemTagAutoclosing;\n\n      case 'dd':\n      case 'dt':\n        return ancestorInfo.dlItemTagAutoclosing;\n\n      case 'button':\n        return ancestorInfo.buttonTagInScope;\n\n      case 'a':\n        // Spec says something about storing a list of markers, but it sounds\n        // equivalent to this check.\n        return ancestorInfo.aTagInScope;\n\n      case 'nobr':\n        return ancestorInfo.nobrTagInScope;\n    }\n\n    return null;\n  };\n\n  var didWarn$1 = {};\n\n  validateDOMNesting = function (childTag, childText, ancestorInfo) {\n    ancestorInfo = ancestorInfo || emptyAncestorInfo;\n    var parentInfo = ancestorInfo.current;\n    var parentTag = parentInfo && parentInfo.tag;\n\n    if (childText != null) {\n      if (childTag != null) {\n        error('validateDOMNesting: when childText is passed, childTag should be null');\n      }\n\n      childTag = '#text';\n    }\n\n    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;\n    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);\n    var invalidParentOrAncestor = invalidParent || invalidAncestor;\n\n    if (!invalidParentOrAncestor) {\n      return;\n    }\n\n    var ancestorTag = invalidParentOrAncestor.tag;\n    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;\n\n    if (didWarn$1[warnKey]) {\n      return;\n    }\n\n    didWarn$1[warnKey] = true;\n    var tagDisplayName = childTag;\n    var whitespaceInfo = '';\n\n    if (childTag === '#text') {\n      if (/\\S/.test(childText)) {\n        tagDisplayName = 'Text nodes';\n      } else {\n        tagDisplayName = 'Whitespace text nodes';\n        whitespaceInfo = \" Make sure you don't have any extra whitespace between tags on \" + 'each line of your source code.';\n      }\n    } else {\n      tagDisplayName = '<' + childTag + '>';\n    }\n\n    if (invalidParent) {\n      var info = '';\n\n      if (ancestorTag === 'table' && childTag === 'tr') {\n        info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';\n      }\n\n      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);\n    } else {\n      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);\n    }\n  };\n}\n\nvar SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';\nvar SUSPENSE_START_DATA = '$';\nvar SUSPENSE_END_DATA = '/$';\nvar SUSPENSE_PENDING_START_DATA = '$?';\nvar SUSPENSE_FALLBACK_START_DATA = '$!';\nvar STYLE$1 = 'style';\nvar eventsEnabled = null;\nvar selectionInformation = null;\nfunction getRootHostContext(rootContainerInstance) {\n  var type;\n  var namespace;\n  var nodeType = rootContainerInstance.nodeType;\n\n  switch (nodeType) {\n    case DOCUMENT_NODE:\n    case DOCUMENT_FRAGMENT_NODE:\n      {\n        type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';\n        var root = rootContainerInstance.documentElement;\n        namespace = root ? root.namespaceURI : getChildNamespace(null, '');\n        break;\n      }\n\n    default:\n      {\n        var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;\n        var ownNamespace = container.namespaceURI || null;\n        type = container.tagName;\n        namespace = getChildNamespace(ownNamespace, type);\n        break;\n      }\n  }\n\n  {\n    var validatedTag = type.toLowerCase();\n    var ancestorInfo = updatedAncestorInfo(null, validatedTag);\n    return {\n      namespace: namespace,\n      ancestorInfo: ancestorInfo\n    };\n  }\n}\nfunction getChildHostContext(parentHostContext, type, rootContainerInstance) {\n  {\n    var parentHostContextDev = parentHostContext;\n    var namespace = getChildNamespace(parentHostContextDev.namespace, type);\n    var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);\n    return {\n      namespace: namespace,\n      ancestorInfo: ancestorInfo\n    };\n  }\n}\nfunction getPublicInstance(instance) {\n  return instance;\n}\nfunction prepareForCommit(containerInfo) {\n  eventsEnabled = isEnabled();\n  selectionInformation = getSelectionInformation();\n  var activeInstance = null;\n\n  setEnabled(false);\n  return activeInstance;\n}\nfunction resetAfterCommit(containerInfo) {\n  restoreSelection(selectionInformation);\n  setEnabled(eventsEnabled);\n  eventsEnabled = null;\n  selectionInformation = null;\n}\nfunction createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {\n  var parentNamespace;\n\n  {\n    // TODO: take namespace into account when validating.\n    var hostContextDev = hostContext;\n    validateDOMNesting(type, null, hostContextDev.ancestorInfo);\n\n    if (typeof props.children === 'string' || typeof props.children === 'number') {\n      var string = '' + props.children;\n      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n      validateDOMNesting(null, string, ownAncestorInfo);\n    }\n\n    parentNamespace = hostContextDev.namespace;\n  }\n\n  var domElement = createElement(type, props, rootContainerInstance, parentNamespace);\n  precacheFiberNode(internalInstanceHandle, domElement);\n  updateFiberProps(domElement, props);\n  return domElement;\n}\nfunction appendInitialChild(parentInstance, child) {\n  parentInstance.appendChild(child);\n}\nfunction finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {\n  setInitialProperties(domElement, type, props, rootContainerInstance);\n\n  switch (type) {\n    case 'button':\n    case 'input':\n    case 'select':\n    case 'textarea':\n      return !!props.autoFocus;\n\n    case 'img':\n      return true;\n\n    default:\n      return false;\n  }\n}\nfunction prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {\n  {\n    var hostContextDev = hostContext;\n\n    if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {\n      var string = '' + newProps.children;\n      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n      validateDOMNesting(null, string, ownAncestorInfo);\n    }\n  }\n\n  return diffProperties(domElement, type, oldProps, newProps);\n}\nfunction shouldSetTextContent(type, props) {\n  return type === 'textarea' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;\n}\nfunction createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {\n  {\n    var hostContextDev = hostContext;\n    validateDOMNesting(null, text, hostContextDev.ancestorInfo);\n  }\n\n  var textNode = createTextNode(text, rootContainerInstance);\n  precacheFiberNode(internalInstanceHandle, textNode);\n  return textNode;\n}\nfunction getCurrentEventPriority() {\n  var currentEvent = window.event;\n\n  if (currentEvent === undefined) {\n    return DefaultEventPriority;\n  }\n\n  return getEventPriority(currentEvent.type);\n}\n// if a component just imports ReactDOM (e.g. for findDOMNode).\n// Some environments might not have setTimeout or clearTimeout.\n\nvar scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;\nvar cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;\nvar noTimeout = -1;\nvar localPromise = typeof Promise === 'function' ? Promise : undefined; // -------------------\nvar scheduleMicrotask = typeof queueMicrotask === 'function' ? queueMicrotask : typeof localPromise !== 'undefined' ? function (callback) {\n  return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);\n} : scheduleTimeout; // TODO: Determine the best fallback here.\n\nfunction handleErrorInNextTick(error) {\n  setTimeout(function () {\n    throw error;\n  });\n} // -------------------\nfunction commitMount(domElement, type, newProps, internalInstanceHandle) {\n  // Despite the naming that might imply otherwise, this method only\n  // fires if there is an `Update` effect scheduled during mounting.\n  // This happens if `finalizeInitialChildren` returns `true` (which it\n  // does to implement the `autoFocus` attribute on the client). But\n  // there are also other cases when this might happen (such as patching\n  // up text content during hydration mismatch). So we'll check this again.\n  switch (type) {\n    case 'button':\n    case 'input':\n    case 'select':\n    case 'textarea':\n      if (newProps.autoFocus) {\n        domElement.focus();\n      }\n\n      return;\n\n    case 'img':\n      {\n        if (newProps.src) {\n          domElement.src = newProps.src;\n        }\n\n        return;\n      }\n  }\n}\nfunction commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {\n  // Apply the diff to the DOM node.\n  updateProperties(domElement, updatePayload, type, oldProps, newProps); // Update the props handle so that we know which props are the ones with\n  // with current event handlers.\n\n  updateFiberProps(domElement, newProps);\n}\nfunction resetTextContent(domElement) {\n  setTextContent(domElement, '');\n}\nfunction commitTextUpdate(textInstance, oldText, newText) {\n  textInstance.nodeValue = newText;\n}\nfunction appendChild(parentInstance, child) {\n  parentInstance.appendChild(child);\n}\nfunction appendChildToContainer(container, child) {\n  var parentNode;\n\n  if (container.nodeType === COMMENT_NODE) {\n    parentNode = container.parentNode;\n    parentNode.insertBefore(child, container);\n  } else {\n    parentNode = container;\n    parentNode.appendChild(child);\n  } // This container might be used for a portal.\n  // If something inside a portal is clicked, that click should bubble\n  // through the React tree. However, on Mobile Safari the click would\n  // never bubble through the *DOM* tree unless an ancestor with onclick\n  // event exists. So we wouldn't see it and dispatch it.\n  // This is why we ensure that non React root containers have inline onclick\n  // defined.\n  // https://github.com/facebook/react/issues/11918\n\n\n  var reactRootContainer = container._reactRootContainer;\n\n  if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {\n    // TODO: This cast may not be sound for SVG, MathML or custom elements.\n    trapClickOnNonInteractiveElement(parentNode);\n  }\n}\nfunction insertBefore(parentInstance, child, beforeChild) {\n  parentInstance.insertBefore(child, beforeChild);\n}\nfunction insertInContainerBefore(container, child, beforeChild) {\n  if (container.nodeType === COMMENT_NODE) {\n    container.parentNode.insertBefore(child, beforeChild);\n  } else {\n    container.insertBefore(child, beforeChild);\n  }\n}\n\nfunction removeChild(parentInstance, child) {\n  parentInstance.removeChild(child);\n}\nfunction removeChildFromContainer(container, child) {\n  if (container.nodeType === COMMENT_NODE) {\n    container.parentNode.removeChild(child);\n  } else {\n    container.removeChild(child);\n  }\n}\nfunction clearSuspenseBoundary(parentInstance, suspenseInstance) {\n  var node = suspenseInstance; // Delete all nodes within this suspense boundary.\n  // There might be nested nodes so we need to keep track of how\n  // deep we are and only break out when we're back on top.\n\n  var depth = 0;\n\n  do {\n    var nextNode = node.nextSibling;\n    parentInstance.removeChild(node);\n\n    if (nextNode && nextNode.nodeType === COMMENT_NODE) {\n      var data = nextNode.data;\n\n      if (data === SUSPENSE_END_DATA) {\n        if (depth === 0) {\n          parentInstance.removeChild(nextNode); // Retry if any event replaying was blocked on this.\n\n          retryIfBlockedOn(suspenseInstance);\n          return;\n        } else {\n          depth--;\n        }\n      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {\n        depth++;\n      }\n    }\n\n    node = nextNode;\n  } while (node); // TODO: Warn, we didn't find the end comment boundary.\n  // Retry if any event replaying was blocked on this.\n\n\n  retryIfBlockedOn(suspenseInstance);\n}\nfunction clearSuspenseBoundaryFromContainer(container, suspenseInstance) {\n  if (container.nodeType === COMMENT_NODE) {\n    clearSuspenseBoundary(container.parentNode, suspenseInstance);\n  } else if (container.nodeType === ELEMENT_NODE) {\n    clearSuspenseBoundary(container, suspenseInstance);\n  } // Retry if any event replaying was blocked on this.\n\n\n  retryIfBlockedOn(container);\n}\nfunction hideInstance(instance) {\n  // TODO: Does this work for all element types? What about MathML? Should we\n  // pass host context to this method?\n  instance = instance;\n  var style = instance.style;\n\n  if (typeof style.setProperty === 'function') {\n    style.setProperty('display', 'none', 'important');\n  } else {\n    style.display = 'none';\n  }\n}\nfunction hideTextInstance(textInstance) {\n  textInstance.nodeValue = '';\n}\nfunction unhideInstance(instance, props) {\n  instance = instance;\n  var styleProp = props[STYLE$1];\n  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;\n  instance.style.display = dangerousStyleValue('display', display);\n}\nfunction unhideTextInstance(textInstance, text) {\n  textInstance.nodeValue = text;\n}\nfunction clearContainer(container) {\n  if (container.nodeType === ELEMENT_NODE) {\n    container.textContent = '';\n  } else if (container.nodeType === DOCUMENT_NODE) {\n    if (container.documentElement) {\n      container.removeChild(container.documentElement);\n    }\n  }\n} // -------------------\nfunction canHydrateInstance(instance, type, props) {\n  if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {\n    return null;\n  } // This has now been refined to an element node.\n\n\n  return instance;\n}\nfunction canHydrateTextInstance(instance, text) {\n  if (text === '' || instance.nodeType !== TEXT_NODE) {\n    // Empty strings are not parsed by HTML so there won't be a correct match here.\n    return null;\n  } // This has now been refined to a text node.\n\n\n  return instance;\n}\nfunction canHydrateSuspenseInstance(instance) {\n  if (instance.nodeType !== COMMENT_NODE) {\n    // Empty strings are not parsed by HTML so there won't be a correct match here.\n    return null;\n  } // This has now been refined to a suspense node.\n\n\n  return instance;\n}\nfunction isSuspenseInstancePending(instance) {\n  return instance.data === SUSPENSE_PENDING_START_DATA;\n}\nfunction isSuspenseInstanceFallback(instance) {\n  return instance.data === SUSPENSE_FALLBACK_START_DATA;\n}\nfunction getSuspenseInstanceFallbackErrorDetails(instance) {\n  var dataset = instance.nextSibling && instance.nextSibling.dataset;\n  var digest, message, stack;\n\n  if (dataset) {\n    digest = dataset.dgst;\n\n    {\n      message = dataset.msg;\n      stack = dataset.stck;\n    }\n  }\n\n  {\n    return {\n      message: message,\n      digest: digest,\n      stack: stack\n    };\n  } // let value = {message: undefined, hash: undefined};\n  // const nextSibling = instance.nextSibling;\n  // if (nextSibling) {\n  //   const dataset = ((nextSibling: any): HTMLTemplateElement).dataset;\n  //   value.message = dataset.msg;\n  //   value.hash = dataset.hash;\n  //   if (true) {\n  //     value.stack = dataset.stack;\n  //   }\n  // }\n  // return value;\n\n}\nfunction registerSuspenseInstanceRetry(instance, callback) {\n  instance._reactRetry = callback;\n}\n\nfunction getNextHydratable(node) {\n  // Skip non-hydratable nodes.\n  for (; node != null; node = node.nextSibling) {\n    var nodeType = node.nodeType;\n\n    if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {\n      break;\n    }\n\n    if (nodeType === COMMENT_NODE) {\n      var nodeData = node.data;\n\n      if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {\n        break;\n      }\n\n      if (nodeData === SUSPENSE_END_DATA) {\n        return null;\n      }\n    }\n  }\n\n  return node;\n}\n\nfunction getNextHydratableSibling(instance) {\n  return getNextHydratable(instance.nextSibling);\n}\nfunction getFirstHydratableChild(parentInstance) {\n  return getNextHydratable(parentInstance.firstChild);\n}\nfunction getFirstHydratableChildWithinContainer(parentContainer) {\n  return getNextHydratable(parentContainer.firstChild);\n}\nfunction getFirstHydratableChildWithinSuspenseInstance(parentInstance) {\n  return getNextHydratable(parentInstance.nextSibling);\n}\nfunction hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle, shouldWarnDev) {\n  precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events\n  // get attached.\n\n  updateFiberProps(instance, props);\n  var parentNamespace;\n\n  {\n    var hostContextDev = hostContext;\n    parentNamespace = hostContextDev.namespace;\n  } // TODO: Temporary hack to check if we're in a concurrent root. We can delete\n  // when the legacy root API is removed.\n\n\n  var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;\n  return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance, isConcurrentMode, shouldWarnDev);\n}\nfunction hydrateTextInstance(textInstance, text, internalInstanceHandle, shouldWarnDev) {\n  precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete\n  // when the legacy root API is removed.\n\n  var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;\n  return diffHydratedText(textInstance, text);\n}\nfunction hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) {\n  precacheFiberNode(internalInstanceHandle, suspenseInstance);\n}\nfunction getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {\n  var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.\n  // There might be nested nodes so we need to keep track of how\n  // deep we are and only break out when we're back on top.\n\n  var depth = 0;\n\n  while (node) {\n    if (node.nodeType === COMMENT_NODE) {\n      var data = node.data;\n\n      if (data === SUSPENSE_END_DATA) {\n        if (depth === 0) {\n          return getNextHydratableSibling(node);\n        } else {\n          depth--;\n        }\n      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {\n        depth++;\n      }\n    }\n\n    node = node.nextSibling;\n  } // TODO: Warn, we didn't find the end comment boundary.\n\n\n  return null;\n} // Returns the SuspenseInstance if this node is a direct child of a\n// SuspenseInstance. I.e. if its previous sibling is a Comment with\n// SUSPENSE_x_START_DATA. Otherwise, null.\n\nfunction getParentSuspenseInstance(targetInstance) {\n  var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.\n  // There might be nested nodes so we need to keep track of how\n  // deep we are and only break out when we're back on top.\n\n  var depth = 0;\n\n  while (node) {\n    if (node.nodeType === COMMENT_NODE) {\n      var data = node.data;\n\n      if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {\n        if (depth === 0) {\n          return node;\n        } else {\n          depth--;\n        }\n      } else if (data === SUSPENSE_END_DATA) {\n        depth++;\n      }\n    }\n\n    node = node.previousSibling;\n  }\n\n  return null;\n}\nfunction commitHydratedContainer(container) {\n  // Retry if any event replaying was blocked on this.\n  retryIfBlockedOn(container);\n}\nfunction commitHydratedSuspenseInstance(suspenseInstance) {\n  // Retry if any event replaying was blocked on this.\n  retryIfBlockedOn(suspenseInstance);\n}\nfunction shouldDeleteUnhydratedTailInstances(parentType) {\n  return parentType !== 'head' && parentType !== 'body';\n}\nfunction didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text, isConcurrentMode) {\n  var shouldWarnDev = true;\n  checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);\n}\nfunction didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text, isConcurrentMode) {\n  if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n    var shouldWarnDev = true;\n    checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);\n  }\n}\nfunction didNotHydrateInstanceWithinContainer(parentContainer, instance) {\n  {\n    if (instance.nodeType === ELEMENT_NODE) {\n      warnForDeletedHydratableElement(parentContainer, instance);\n    } else if (instance.nodeType === COMMENT_NODE) ; else {\n      warnForDeletedHydratableText(parentContainer, instance);\n    }\n  }\n}\nfunction didNotHydrateInstanceWithinSuspenseInstance(parentInstance, instance) {\n  {\n    // $FlowFixMe: Only Element or Document can be parent nodes.\n    var parentNode = parentInstance.parentNode;\n\n    if (parentNode !== null) {\n      if (instance.nodeType === ELEMENT_NODE) {\n        warnForDeletedHydratableElement(parentNode, instance);\n      } else if (instance.nodeType === COMMENT_NODE) ; else {\n        warnForDeletedHydratableText(parentNode, instance);\n      }\n    }\n  }\n}\nfunction didNotHydrateInstance(parentType, parentProps, parentInstance, instance, isConcurrentMode) {\n  {\n    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n      if (instance.nodeType === ELEMENT_NODE) {\n        warnForDeletedHydratableElement(parentInstance, instance);\n      } else if (instance.nodeType === COMMENT_NODE) ; else {\n        warnForDeletedHydratableText(parentInstance, instance);\n      }\n    }\n  }\n}\nfunction didNotFindHydratableInstanceWithinContainer(parentContainer, type, props) {\n  {\n    warnForInsertedHydratedElement(parentContainer, type);\n  }\n}\nfunction didNotFindHydratableTextInstanceWithinContainer(parentContainer, text) {\n  {\n    warnForInsertedHydratedText(parentContainer, text);\n  }\n}\nfunction didNotFindHydratableInstanceWithinSuspenseInstance(parentInstance, type, props) {\n  {\n    // $FlowFixMe: Only Element or Document can be parent nodes.\n    var parentNode = parentInstance.parentNode;\n    if (parentNode !== null) warnForInsertedHydratedElement(parentNode, type);\n  }\n}\nfunction didNotFindHydratableTextInstanceWithinSuspenseInstance(parentInstance, text) {\n  {\n    // $FlowFixMe: Only Element or Document can be parent nodes.\n    var parentNode = parentInstance.parentNode;\n    if (parentNode !== null) warnForInsertedHydratedText(parentNode, text);\n  }\n}\nfunction didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props, isConcurrentMode) {\n  {\n    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n      warnForInsertedHydratedElement(parentInstance, type);\n    }\n  }\n}\nfunction didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text, isConcurrentMode) {\n  {\n    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {\n      warnForInsertedHydratedText(parentInstance, text);\n    }\n  }\n}\nfunction errorHydratingContainer(parentContainer) {\n  {\n    // TODO: This gets logged by onRecoverableError, too, so we should be\n    // able to remove it.\n    error('An error occurred during hydration. The server HTML was replaced with client content in <%s>.', parentContainer.nodeName.toLowerCase());\n  }\n}\nfunction preparePortalMount(portalInstance) {\n  listenToAllSupportedEvents(portalInstance);\n}\n\nvar randomKey = Math.random().toString(36).slice(2);\nvar internalInstanceKey = '__reactFiber$' + randomKey;\nvar internalPropsKey = '__reactProps$' + randomKey;\nvar internalContainerInstanceKey = '__reactContainer$' + randomKey;\nvar internalEventHandlersKey = '__reactEvents$' + randomKey;\nvar internalEventHandlerListenersKey = '__reactListeners$' + randomKey;\nvar internalEventHandlesSetKey = '__reactHandles$' + randomKey;\nfunction detachDeletedInstance(node) {\n  // TODO: This function is only called on host components. I don't think all of\n  // these fields are relevant.\n  delete node[internalInstanceKey];\n  delete node[internalPropsKey];\n  delete node[internalEventHandlersKey];\n  delete node[internalEventHandlerListenersKey];\n  delete node[internalEventHandlesSetKey];\n}\nfunction precacheFiberNode(hostInst, node) {\n  node[internalInstanceKey] = hostInst;\n}\nfunction markContainerAsRoot(hostRoot, node) {\n  node[internalContainerInstanceKey] = hostRoot;\n}\nfunction unmarkContainerAsRoot(node) {\n  node[internalContainerInstanceKey] = null;\n}\nfunction isContainerMarkedAsRoot(node) {\n  return !!node[internalContainerInstanceKey];\n} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.\n// If the target node is part of a hydrated or not yet rendered subtree, then\n// this may also return a SuspenseComponent or HostRoot to indicate that.\n// Conceptually the HostRoot fiber is a child of the Container node. So if you\n// pass the Container node as the targetNode, you will not actually get the\n// HostRoot back. To get to the HostRoot, you need to pass a child of it.\n// The same thing applies to Suspense boundaries.\n\nfunction getClosestInstanceFromNode(targetNode) {\n  var targetInst = targetNode[internalInstanceKey];\n\n  if (targetInst) {\n    // Don't return HostRoot or SuspenseComponent here.\n    return targetInst;\n  } // If the direct event target isn't a React owned DOM node, we need to look\n  // to see if one of its parents is a React owned DOM node.\n\n\n  var parentNode = targetNode.parentNode;\n\n  while (parentNode) {\n    // We'll check if this is a container root that could include\n    // React nodes in the future. We need to check this first because\n    // if we're a child of a dehydrated container, we need to first\n    // find that inner container before moving on to finding the parent\n    // instance. Note that we don't check this field on  the targetNode\n    // itself because the fibers are conceptually between the container\n    // node and the first child. It isn't surrounding the container node.\n    // If it's not a container, we check if it's an instance.\n    targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];\n\n    if (targetInst) {\n      // Since this wasn't the direct target of the event, we might have\n      // stepped past dehydrated DOM nodes to get here. However they could\n      // also have been non-React nodes. We need to answer which one.\n      // If we the instance doesn't have any children, then there can't be\n      // a nested suspense boundary within it. So we can use this as a fast\n      // bailout. Most of the time, when people add non-React children to\n      // the tree, it is using a ref to a child-less DOM node.\n      // Normally we'd only need to check one of the fibers because if it\n      // has ever gone from having children to deleting them or vice versa\n      // it would have deleted the dehydrated boundary nested inside already.\n      // However, since the HostRoot starts out with an alternate it might\n      // have one on the alternate so we need to check in case this was a\n      // root.\n      var alternate = targetInst.alternate;\n\n      if (targetInst.child !== null || alternate !== null && alternate.child !== null) {\n        // Next we need to figure out if the node that skipped past is\n        // nested within a dehydrated boundary and if so, which one.\n        var suspenseInstance = getParentSuspenseInstance(targetNode);\n\n        while (suspenseInstance !== null) {\n          // We found a suspense instance. That means that we haven't\n          // hydrated it yet. Even though we leave the comments in the\n          // DOM after hydrating, and there are boundaries in the DOM\n          // that could already be hydrated, we wouldn't have found them\n          // through this pass since if the target is hydrated it would\n          // have had an internalInstanceKey on it.\n          // Let's get the fiber associated with the SuspenseComponent\n          // as the deepest instance.\n          var targetSuspenseInst = suspenseInstance[internalInstanceKey];\n\n          if (targetSuspenseInst) {\n            return targetSuspenseInst;\n          } // If we don't find a Fiber on the comment, it might be because\n          // we haven't gotten to hydrate it yet. There might still be a\n          // parent boundary that hasn't above this one so we need to find\n          // the outer most that is known.\n\n\n          suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent\n          // host component also hasn't hydrated yet. We can return it\n          // below since it will bail out on the isMounted check later.\n        }\n      }\n\n      return targetInst;\n    }\n\n    targetNode = parentNode;\n    parentNode = targetNode.parentNode;\n  }\n\n  return null;\n}\n/**\n * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\n * instance, or null if the node was not rendered by this React.\n */\n\nfunction getInstanceFromNode(node) {\n  var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];\n\n  if (inst) {\n    if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {\n      return inst;\n    } else {\n      return null;\n    }\n  }\n\n  return null;\n}\n/**\n * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\n * DOM node.\n */\n\nfunction getNodeFromInstance(inst) {\n  if (inst.tag === HostComponent || inst.tag === HostText) {\n    // In Fiber this, is just the state node right now. We assume it will be\n    // a host component or host text.\n    return inst.stateNode;\n  } // Without this first invariant, passing a non-DOM-component triggers the next\n  // invariant for a missing parent, which is super confusing.\n\n\n  throw new Error('getNodeFromInstance: Invalid argument.');\n}\nfunction getFiberCurrentPropsFromNode(node) {\n  return node[internalPropsKey] || null;\n}\nfunction updateFiberProps(node, props) {\n  node[internalPropsKey] = props;\n}\nfunction getEventListenerSet(node) {\n  var elementListenerSet = node[internalEventHandlersKey];\n\n  if (elementListenerSet === undefined) {\n    elementListenerSet = node[internalEventHandlersKey] = new Set();\n  }\n\n  return elementListenerSet;\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nvar valueStack = [];\nvar fiberStack;\n\n{\n  fiberStack = [];\n}\n\nvar index = -1;\n\nfunction createCursor(defaultValue) {\n  return {\n    current: defaultValue\n  };\n}\n\nfunction pop(cursor, fiber) {\n  if (index < 0) {\n    {\n      error('Unexpected pop.');\n    }\n\n    return;\n  }\n\n  {\n    if (fiber !== fiberStack[index]) {\n      error('Unexpected Fiber popped.');\n    }\n  }\n\n  cursor.current = valueStack[index];\n  valueStack[index] = null;\n\n  {\n    fiberStack[index] = null;\n  }\n\n  index--;\n}\n\nfunction push(cursor, value, fiber) {\n  index++;\n  valueStack[index] = cursor.current;\n\n  {\n    fiberStack[index] = fiber;\n  }\n\n  cursor.current = value;\n}\n\nvar warnedAboutMissingGetChildContext;\n\n{\n  warnedAboutMissingGetChildContext = {};\n}\n\nvar emptyContextObject = {};\n\n{\n  Object.freeze(emptyContextObject);\n} // A cursor to the current merged context object on the stack.\n\n\nvar contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.\n\nvar didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.\n// We use this to get access to the parent context after we have already\n// pushed the next context provider, and now need to merge their contexts.\n\nvar previousContext = emptyContextObject;\n\nfunction getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {\n  {\n    if (didPushOwnContextIfProvider && isContextProvider(Component)) {\n      // If the fiber is a context provider itself, when we read its context\n      // we may have already pushed its own child context on the stack. A context\n      // provider should not \"see\" its own child context. Therefore we read the\n      // previous (parent) context instead for a context provider.\n      return previousContext;\n    }\n\n    return contextStackCursor.current;\n  }\n}\n\nfunction cacheContext(workInProgress, unmaskedContext, maskedContext) {\n  {\n    var instance = workInProgress.stateNode;\n    instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;\n    instance.__reactInternalMemoizedMaskedChildContext = maskedContext;\n  }\n}\n\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n  {\n    var type = workInProgress.type;\n    var contextTypes = type.contextTypes;\n\n    if (!contextTypes) {\n      return emptyContextObject;\n    } // Avoid recreating masked context unless unmasked context has changed.\n    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.\n    // This may trigger infinite loops if componentWillReceiveProps calls setState.\n\n\n    var instance = workInProgress.stateNode;\n\n    if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {\n      return instance.__reactInternalMemoizedMaskedChildContext;\n    }\n\n    var context = {};\n\n    for (var key in contextTypes) {\n      context[key] = unmaskedContext[key];\n    }\n\n    {\n      var name = getComponentNameFromFiber(workInProgress) || 'Unknown';\n      checkPropTypes(contextTypes, context, 'context', name);\n    } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n    // Context is created before the class component is instantiated so check for instance.\n\n\n    if (instance) {\n      cacheContext(workInProgress, unmaskedContext, context);\n    }\n\n    return context;\n  }\n}\n\nfunction hasContextChanged() {\n  {\n    return didPerformWorkStackCursor.current;\n  }\n}\n\nfunction isContextProvider(type) {\n  {\n    var childContextTypes = type.childContextTypes;\n    return childContextTypes !== null && childContextTypes !== undefined;\n  }\n}\n\nfunction popContext(fiber) {\n  {\n    pop(didPerformWorkStackCursor, fiber);\n    pop(contextStackCursor, fiber);\n  }\n}\n\nfunction popTopLevelContextObject(fiber) {\n  {\n    pop(didPerformWorkStackCursor, fiber);\n    pop(contextStackCursor, fiber);\n  }\n}\n\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n  {\n    if (contextStackCursor.current !== emptyContextObject) {\n      throw new Error('Unexpected context found on stack. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n    }\n\n    push(contextStackCursor, context, fiber);\n    push(didPerformWorkStackCursor, didChange, fiber);\n  }\n}\n\nfunction processChildContext(fiber, type, parentContext) {\n  {\n    var instance = fiber.stateNode;\n    var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n    // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n\n    if (typeof instance.getChildContext !== 'function') {\n      {\n        var componentName = getComponentNameFromFiber(fiber) || 'Unknown';\n\n        if (!warnedAboutMissingGetChildContext[componentName]) {\n          warnedAboutMissingGetChildContext[componentName] = true;\n\n          error('%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.', componentName, componentName);\n        }\n      }\n\n      return parentContext;\n    }\n\n    var childContext = instance.getChildContext();\n\n    for (var contextKey in childContext) {\n      if (!(contextKey in childContextTypes)) {\n        throw new Error((getComponentNameFromFiber(fiber) || 'Unknown') + \".getChildContext(): key \\\"\" + contextKey + \"\\\" is not defined in childContextTypes.\");\n      }\n    }\n\n    {\n      var name = getComponentNameFromFiber(fiber) || 'Unknown';\n      checkPropTypes(childContextTypes, childContext, 'child context', name);\n    }\n\n    return assign({}, parentContext, childContext);\n  }\n}\n\nfunction pushContextProvider(workInProgress) {\n  {\n    var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.\n    // If the instance does not exist yet, we will push null at first,\n    // and replace it on the stack later when invalidating the context.\n\n    var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.\n    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.\n\n    previousContext = contextStackCursor.current;\n    push(contextStackCursor, memoizedMergedChildContext, workInProgress);\n    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);\n    return true;\n  }\n}\n\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n  {\n    var instance = workInProgress.stateNode;\n\n    if (!instance) {\n      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.');\n    }\n\n    if (didChange) {\n      // Merge parent and own context.\n      // Skip this if we're not updating due to sCU.\n      // This avoids unnecessarily recomputing memoized values.\n      var mergedContext = processChildContext(workInProgress, type, previousContext);\n      instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.\n      // It is important to unwind the context in the reverse order.\n\n      pop(didPerformWorkStackCursor, workInProgress);\n      pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.\n\n      push(contextStackCursor, mergedContext, workInProgress);\n      push(didPerformWorkStackCursor, didChange, workInProgress);\n    } else {\n      pop(didPerformWorkStackCursor, workInProgress);\n      push(didPerformWorkStackCursor, didChange, workInProgress);\n    }\n  }\n}\n\nfunction findCurrentUnmaskedContext(fiber) {\n  {\n    // Currently this is only used with renderSubtreeIntoContainer; not sure if it\n    // makes sense elsewhere\n    if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) {\n      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.');\n    }\n\n    var node = fiber;\n\n    do {\n      switch (node.tag) {\n        case HostRoot:\n          return node.stateNode.context;\n\n        case ClassComponent:\n          {\n            var Component = node.type;\n\n            if (isContextProvider(Component)) {\n              return node.stateNode.__reactInternalMemoizedMergedChildContext;\n            }\n\n            break;\n          }\n      }\n\n      node = node.return;\n    } while (node !== null);\n\n    throw new Error('Found unexpected detached subtree parent. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n  }\n}\n\nvar LegacyRoot = 0;\nvar ConcurrentRoot = 1;\n\nvar syncQueue = null;\nvar includesLegacySyncCallbacks = false;\nvar isFlushingSyncQueue = false;\nfunction scheduleSyncCallback(callback) {\n  // Push this callback into an internal queue. We'll flush these either in\n  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.\n  if (syncQueue === null) {\n    syncQueue = [callback];\n  } else {\n    // Push onto existing queue. Don't need to schedule a callback because\n    // we already scheduled one when we created the queue.\n    syncQueue.push(callback);\n  }\n}\nfunction scheduleLegacySyncCallback(callback) {\n  includesLegacySyncCallbacks = true;\n  scheduleSyncCallback(callback);\n}\nfunction flushSyncCallbacksOnlyInLegacyMode() {\n  // Only flushes the queue if there's a legacy sync callback scheduled.\n  // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So\n  // it might make more sense for the queue to be a list of roots instead of a\n  // list of generic callbacks. Then we can have two: one for legacy roots, one\n  // for concurrent roots. And this method would only flush the legacy ones.\n  if (includesLegacySyncCallbacks) {\n    flushSyncCallbacks();\n  }\n}\nfunction flushSyncCallbacks() {\n  if (!isFlushingSyncQueue && syncQueue !== null) {\n    // Prevent re-entrance.\n    isFlushingSyncQueue = true;\n    var i = 0;\n    var previousUpdatePriority = getCurrentUpdatePriority();\n\n    try {\n      var isSync = true;\n      var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this\n      // queue is in the render or commit phases.\n\n      setCurrentUpdatePriority(DiscreteEventPriority);\n\n      for (; i < queue.length; i++) {\n        var callback = queue[i];\n\n        do {\n          callback = callback(isSync);\n        } while (callback !== null);\n      }\n\n      syncQueue = null;\n      includesLegacySyncCallbacks = false;\n    } catch (error) {\n      // If something throws, leave the remaining callbacks on the queue.\n      if (syncQueue !== null) {\n        syncQueue = syncQueue.slice(i + 1);\n      } // Resume flushing in the next tick\n\n\n      scheduleCallback(ImmediatePriority, flushSyncCallbacks);\n      throw error;\n    } finally {\n      setCurrentUpdatePriority(previousUpdatePriority);\n      isFlushingSyncQueue = false;\n    }\n  }\n\n  return null;\n}\n\n// TODO: Use the unified fiber stack module instead of this local one?\n// Intentionally not using it yet to derisk the initial implementation, because\n// the way we push/pop these values is a bit unusual. If there's a mistake, I'd\n// rather the ids be wrong than crash the whole reconciler.\nvar forkStack = [];\nvar forkStackIndex = 0;\nvar treeForkProvider = null;\nvar treeForkCount = 0;\nvar idStack = [];\nvar idStackIndex = 0;\nvar treeContextProvider = null;\nvar treeContextId = 1;\nvar treeContextOverflow = '';\nfunction isForkedChild(workInProgress) {\n  warnIfNotHydrating();\n  return (workInProgress.flags & Forked) !== NoFlags;\n}\nfunction getForksAtLevel(workInProgress) {\n  warnIfNotHydrating();\n  return treeForkCount;\n}\nfunction getTreeId() {\n  var overflow = treeContextOverflow;\n  var idWithLeadingBit = treeContextId;\n  var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);\n  return id.toString(32) + overflow;\n}\nfunction pushTreeFork(workInProgress, totalChildren) {\n  // This is called right after we reconcile an array (or iterator) of child\n  // fibers, because that's the only place where we know how many children in\n  // the whole set without doing extra work later, or storing addtional\n  // information on the fiber.\n  //\n  // That's why this function is separate from pushTreeId — it's called during\n  // the render phase of the fork parent, not the child, which is where we push\n  // the other context values.\n  //\n  // In the Fizz implementation this is much simpler because the child is\n  // rendered in the same callstack as the parent.\n  //\n  // It might be better to just add a `forks` field to the Fiber type. It would\n  // make this module simpler.\n  warnIfNotHydrating();\n  forkStack[forkStackIndex++] = treeForkCount;\n  forkStack[forkStackIndex++] = treeForkProvider;\n  treeForkProvider = workInProgress;\n  treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n  warnIfNotHydrating();\n  idStack[idStackIndex++] = treeContextId;\n  idStack[idStackIndex++] = treeContextOverflow;\n  idStack[idStackIndex++] = treeContextProvider;\n  treeContextProvider = workInProgress;\n  var baseIdWithLeadingBit = treeContextId;\n  var baseOverflow = treeContextOverflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part\n  // of the id; we use it to account for leading 0s.\n\n  var baseLength = getBitLength(baseIdWithLeadingBit) - 1;\n  var baseId = baseIdWithLeadingBit & ~(1 << baseLength);\n  var slot = index + 1;\n  var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into\n  // consideration the leading 1 we use to mark the end of the sequence.\n\n  if (length > 30) {\n    // We overflowed the bitwise-safe range. Fall back to slower algorithm.\n    // This branch assumes the length of the base id is greater than 5; it won't\n    // work for smaller ids, because you need 5 bits per character.\n    //\n    // We encode the id in multiple steps: first the base id, then the\n    // remaining digits.\n    //\n    // Each 5 bit sequence corresponds to a single base 32 character. So for\n    // example, if the current id is 23 bits long, we can convert 20 of those\n    // bits into a string of 4 characters, with 3 bits left over.\n    //\n    // First calculate how many bits in the base id represent a complete\n    // sequence of characters.\n    var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.\n\n    var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.\n\n    var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.\n\n    var restOfBaseId = baseId >> numberOfOverflowBits;\n    var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because\n    // we made more room, this time it won't overflow.\n\n    var restOfLength = getBitLength(totalChildren) + restOfBaseLength;\n    var restOfNewBits = slot << restOfBaseLength;\n    var id = restOfNewBits | restOfBaseId;\n    var overflow = newOverflow + baseOverflow;\n    treeContextId = 1 << restOfLength | id;\n    treeContextOverflow = overflow;\n  } else {\n    // Normal path\n    var newBits = slot << baseLength;\n\n    var _id = newBits | baseId;\n\n    var _overflow = baseOverflow;\n    treeContextId = 1 << length | _id;\n    treeContextOverflow = _overflow;\n  }\n}\nfunction pushMaterializedTreeId(workInProgress) {\n  warnIfNotHydrating(); // This component materialized an id. This will affect any ids that appear\n  // in its children.\n\n  var returnFiber = workInProgress.return;\n\n  if (returnFiber !== null) {\n    var numberOfForks = 1;\n    var slotIndex = 0;\n    pushTreeFork(workInProgress, numberOfForks);\n    pushTreeId(workInProgress, numberOfForks, slotIndex);\n  }\n}\n\nfunction getBitLength(number) {\n  return 32 - clz32(number);\n}\n\nfunction getLeadingBit(id) {\n  return 1 << getBitLength(id) - 1;\n}\n\nfunction popTreeContext(workInProgress) {\n  // Restore the previous values.\n  // This is a bit more complicated than other context-like modules in Fiber\n  // because the same Fiber may appear on the stack multiple times and for\n  // different reasons. We have to keep popping until the work-in-progress is\n  // no longer at the top of the stack.\n  while (workInProgress === treeForkProvider) {\n    treeForkProvider = forkStack[--forkStackIndex];\n    forkStack[forkStackIndex] = null;\n    treeForkCount = forkStack[--forkStackIndex];\n    forkStack[forkStackIndex] = null;\n  }\n\n  while (workInProgress === treeContextProvider) {\n    treeContextProvider = idStack[--idStackIndex];\n    idStack[idStackIndex] = null;\n    treeContextOverflow = idStack[--idStackIndex];\n    idStack[idStackIndex] = null;\n    treeContextId = idStack[--idStackIndex];\n    idStack[idStackIndex] = null;\n  }\n}\nfunction getSuspendedTreeContext() {\n  warnIfNotHydrating();\n\n  if (treeContextProvider !== null) {\n    return {\n      id: treeContextId,\n      overflow: treeContextOverflow\n    };\n  } else {\n    return null;\n  }\n}\nfunction restoreSuspendedTreeContext(workInProgress, suspendedContext) {\n  warnIfNotHydrating();\n  idStack[idStackIndex++] = treeContextId;\n  idStack[idStackIndex++] = treeContextOverflow;\n  idStack[idStackIndex++] = treeContextProvider;\n  treeContextId = suspendedContext.id;\n  treeContextOverflow = suspendedContext.overflow;\n  treeContextProvider = workInProgress;\n}\n\nfunction warnIfNotHydrating() {\n  {\n    if (!getIsHydrating()) {\n      error('Expected to be hydrating. This is a bug in React. Please file ' + 'an issue.');\n    }\n  }\n}\n\n// This may have been an insertion or a hydration.\n\nvar hydrationParentFiber = null;\nvar nextHydratableInstance = null;\nvar isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches\n// due to earlier mismatches or a suspended fiber.\n\nvar didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary\n\nvar hydrationErrors = null;\n\nfunction warnIfHydrating() {\n  {\n    if (isHydrating) {\n      error('We should not be hydrating here. This is a bug in React. Please file a bug.');\n    }\n  }\n}\n\nfunction markDidThrowWhileHydratingDEV() {\n  {\n    didSuspendOrErrorDEV = true;\n  }\n}\nfunction didSuspendOrErrorWhileHydratingDEV() {\n  {\n    return didSuspendOrErrorDEV;\n  }\n}\n\nfunction enterHydrationState(fiber) {\n\n  var parentInstance = fiber.stateNode.containerInfo;\n  nextHydratableInstance = getFirstHydratableChildWithinContainer(parentInstance);\n  hydrationParentFiber = fiber;\n  isHydrating = true;\n  hydrationErrors = null;\n  didSuspendOrErrorDEV = false;\n  return true;\n}\n\nfunction reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) {\n\n  nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(suspenseInstance);\n  hydrationParentFiber = fiber;\n  isHydrating = true;\n  hydrationErrors = null;\n  didSuspendOrErrorDEV = false;\n\n  if (treeContext !== null) {\n    restoreSuspendedTreeContext(fiber, treeContext);\n  }\n\n  return true;\n}\n\nfunction warnUnhydratedInstance(returnFiber, instance) {\n  {\n    switch (returnFiber.tag) {\n      case HostRoot:\n        {\n          didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance);\n          break;\n        }\n\n      case HostComponent:\n        {\n          var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n          didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance, // TODO: Delete this argument when we remove the legacy root API.\n          isConcurrentMode);\n          break;\n        }\n\n      case SuspenseComponent:\n        {\n          var suspenseState = returnFiber.memoizedState;\n          if (suspenseState.dehydrated !== null) didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance);\n          break;\n        }\n    }\n  }\n}\n\nfunction deleteHydratableInstance(returnFiber, instance) {\n  warnUnhydratedInstance(returnFiber, instance);\n  var childToDelete = createFiberFromHostInstanceForDeletion();\n  childToDelete.stateNode = instance;\n  childToDelete.return = returnFiber;\n  var deletions = returnFiber.deletions;\n\n  if (deletions === null) {\n    returnFiber.deletions = [childToDelete];\n    returnFiber.flags |= ChildDeletion;\n  } else {\n    deletions.push(childToDelete);\n  }\n}\n\nfunction warnNonhydratedInstance(returnFiber, fiber) {\n  {\n    if (didSuspendOrErrorDEV) {\n      // Inside a boundary that already suspended. We're currently rendering the\n      // siblings of a suspended node. The mismatch may be due to the missing\n      // data, so it's probably a false positive.\n      return;\n    }\n\n    switch (returnFiber.tag) {\n      case HostRoot:\n        {\n          var parentContainer = returnFiber.stateNode.containerInfo;\n\n          switch (fiber.tag) {\n            case HostComponent:\n              var type = fiber.type;\n              var props = fiber.pendingProps;\n              didNotFindHydratableInstanceWithinContainer(parentContainer, type);\n              break;\n\n            case HostText:\n              var text = fiber.pendingProps;\n              didNotFindHydratableTextInstanceWithinContainer(parentContainer, text);\n              break;\n          }\n\n          break;\n        }\n\n      case HostComponent:\n        {\n          var parentType = returnFiber.type;\n          var parentProps = returnFiber.memoizedProps;\n          var parentInstance = returnFiber.stateNode;\n\n          switch (fiber.tag) {\n            case HostComponent:\n              {\n                var _type = fiber.type;\n                var _props = fiber.pendingProps;\n                var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n                didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props, // TODO: Delete this argument when we remove the legacy root API.\n                isConcurrentMode);\n                break;\n              }\n\n            case HostText:\n              {\n                var _text = fiber.pendingProps;\n\n                var _isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n\n                didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text, // TODO: Delete this argument when we remove the legacy root API.\n                _isConcurrentMode);\n                break;\n              }\n          }\n\n          break;\n        }\n\n      case SuspenseComponent:\n        {\n          var suspenseState = returnFiber.memoizedState;\n          var _parentInstance = suspenseState.dehydrated;\n          if (_parentInstance !== null) switch (fiber.tag) {\n            case HostComponent:\n              var _type2 = fiber.type;\n              var _props2 = fiber.pendingProps;\n              didNotFindHydratableInstanceWithinSuspenseInstance(_parentInstance, _type2);\n              break;\n\n            case HostText:\n              var _text2 = fiber.pendingProps;\n              didNotFindHydratableTextInstanceWithinSuspenseInstance(_parentInstance, _text2);\n              break;\n          }\n          break;\n        }\n\n      default:\n        return;\n    }\n  }\n}\n\nfunction insertNonHydratedInstance(returnFiber, fiber) {\n  fiber.flags = fiber.flags & ~Hydrating | Placement;\n  warnNonhydratedInstance(returnFiber, fiber);\n}\n\nfunction tryHydrate(fiber, nextInstance) {\n  switch (fiber.tag) {\n    case HostComponent:\n      {\n        var type = fiber.type;\n        var props = fiber.pendingProps;\n        var instance = canHydrateInstance(nextInstance, type);\n\n        if (instance !== null) {\n          fiber.stateNode = instance;\n          hydrationParentFiber = fiber;\n          nextHydratableInstance = getFirstHydratableChild(instance);\n          return true;\n        }\n\n        return false;\n      }\n\n    case HostText:\n      {\n        var text = fiber.pendingProps;\n        var textInstance = canHydrateTextInstance(nextInstance, text);\n\n        if (textInstance !== null) {\n          fiber.stateNode = textInstance;\n          hydrationParentFiber = fiber; // Text Instances don't have children so there's nothing to hydrate.\n\n          nextHydratableInstance = null;\n          return true;\n        }\n\n        return false;\n      }\n\n    case SuspenseComponent:\n      {\n        var suspenseInstance = canHydrateSuspenseInstance(nextInstance);\n\n        if (suspenseInstance !== null) {\n          var suspenseState = {\n            dehydrated: suspenseInstance,\n            treeContext: getSuspendedTreeContext(),\n            retryLane: OffscreenLane\n          };\n          fiber.memoizedState = suspenseState; // Store the dehydrated fragment as a child fiber.\n          // This simplifies the code for getHostSibling and deleting nodes,\n          // since it doesn't have to consider all Suspense boundaries and\n          // check if they're dehydrated ones or not.\n\n          var dehydratedFragment = createFiberFromDehydratedFragment(suspenseInstance);\n          dehydratedFragment.return = fiber;\n          fiber.child = dehydratedFragment;\n          hydrationParentFiber = fiber; // While a Suspense Instance does have children, we won't step into\n          // it during the first pass. Instead, we'll reenter it later.\n\n          nextHydratableInstance = null;\n          return true;\n        }\n\n        return false;\n      }\n\n    default:\n      return false;\n  }\n}\n\nfunction shouldClientRenderOnMismatch(fiber) {\n  return (fiber.mode & ConcurrentMode) !== NoMode && (fiber.flags & DidCapture) === NoFlags;\n}\n\nfunction throwOnHydrationMismatch(fiber) {\n  throw new Error('Hydration failed because the initial UI does not match what was ' + 'rendered on the server.');\n}\n\nfunction tryToClaimNextHydratableInstance(fiber) {\n  if (!isHydrating) {\n    return;\n  }\n\n  var nextInstance = nextHydratableInstance;\n\n  if (!nextInstance) {\n    if (shouldClientRenderOnMismatch(fiber)) {\n      warnNonhydratedInstance(hydrationParentFiber, fiber);\n      throwOnHydrationMismatch();\n    } // Nothing to hydrate. Make it an insertion.\n\n\n    insertNonHydratedInstance(hydrationParentFiber, fiber);\n    isHydrating = false;\n    hydrationParentFiber = fiber;\n    return;\n  }\n\n  var firstAttemptedInstance = nextInstance;\n\n  if (!tryHydrate(fiber, nextInstance)) {\n    if (shouldClientRenderOnMismatch(fiber)) {\n      warnNonhydratedInstance(hydrationParentFiber, fiber);\n      throwOnHydrationMismatch();\n    } // If we can't hydrate this instance let's try the next one.\n    // We use this as a heuristic. It's based on intuition and not data so it\n    // might be flawed or unnecessary.\n\n\n    nextInstance = getNextHydratableSibling(firstAttemptedInstance);\n    var prevHydrationParentFiber = hydrationParentFiber;\n\n    if (!nextInstance || !tryHydrate(fiber, nextInstance)) {\n      // Nothing to hydrate. Make it an insertion.\n      insertNonHydratedInstance(hydrationParentFiber, fiber);\n      isHydrating = false;\n      hydrationParentFiber = fiber;\n      return;\n    } // We matched the next one, we'll now assume that the first one was\n    // superfluous and we'll delete it. Since we can't eagerly delete it\n    // we'll have to schedule a deletion. To do that, this node needs a dummy\n    // fiber associated with it.\n\n\n    deleteHydratableInstance(prevHydrationParentFiber, firstAttemptedInstance);\n  }\n}\n\nfunction prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {\n\n  var instance = fiber.stateNode;\n  var shouldWarnIfMismatchDev = !didSuspendOrErrorDEV;\n  var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev); // TODO: Type this specific to this type of component.\n\n  fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there\n  // is a new ref we mark this as an update.\n\n  if (updatePayload !== null) {\n    return true;\n  }\n\n  return false;\n}\n\nfunction prepareToHydrateHostTextInstance(fiber) {\n\n  var textInstance = fiber.stateNode;\n  var textContent = fiber.memoizedProps;\n  var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);\n\n  if (shouldUpdate) {\n    // We assume that prepareToHydrateHostTextInstance is called in a context where the\n    // hydration parent is the parent host component of this host text.\n    var returnFiber = hydrationParentFiber;\n\n    if (returnFiber !== null) {\n      switch (returnFiber.tag) {\n        case HostRoot:\n          {\n            var parentContainer = returnFiber.stateNode.containerInfo;\n            var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;\n            didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.\n            isConcurrentMode);\n            break;\n          }\n\n        case HostComponent:\n          {\n            var parentType = returnFiber.type;\n            var parentProps = returnFiber.memoizedProps;\n            var parentInstance = returnFiber.stateNode;\n\n            var _isConcurrentMode2 = (returnFiber.mode & ConcurrentMode) !== NoMode;\n\n            didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.\n            _isConcurrentMode2);\n            break;\n          }\n      }\n    }\n  }\n\n  return shouldUpdate;\n}\n\nfunction prepareToHydrateHostSuspenseInstance(fiber) {\n\n  var suspenseState = fiber.memoizedState;\n  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;\n\n  if (!suspenseInstance) {\n    throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n  }\n\n  hydrateSuspenseInstance(suspenseInstance, fiber);\n}\n\nfunction skipPastDehydratedSuspenseInstance(fiber) {\n\n  var suspenseState = fiber.memoizedState;\n  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;\n\n  if (!suspenseInstance) {\n    throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n  }\n\n  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);\n}\n\nfunction popToNextHostParent(fiber) {\n  var parent = fiber.return;\n\n  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {\n    parent = parent.return;\n  }\n\n  hydrationParentFiber = parent;\n}\n\nfunction popHydrationState(fiber) {\n\n  if (fiber !== hydrationParentFiber) {\n    // We're deeper than the current hydration context, inside an inserted\n    // tree.\n    return false;\n  }\n\n  if (!isHydrating) {\n    // If we're not currently hydrating but we're in a hydration context, then\n    // we were an insertion and now need to pop up reenter hydration of our\n    // siblings.\n    popToNextHostParent(fiber);\n    isHydrating = true;\n    return false;\n  } // If we have any remaining hydratable nodes, we need to delete them now.\n  // We only do this deeper than head and body since they tend to have random\n  // other nodes in them. We also ignore components with pure text content in\n  // side of them. We also don't delete anything inside the root container.\n\n\n  if (fiber.tag !== HostRoot && (fiber.tag !== HostComponent || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps))) {\n    var nextInstance = nextHydratableInstance;\n\n    if (nextInstance) {\n      if (shouldClientRenderOnMismatch(fiber)) {\n        warnIfUnhydratedTailNodes(fiber);\n        throwOnHydrationMismatch();\n      } else {\n        while (nextInstance) {\n          deleteHydratableInstance(fiber, nextInstance);\n          nextInstance = getNextHydratableSibling(nextInstance);\n        }\n      }\n    }\n  }\n\n  popToNextHostParent(fiber);\n\n  if (fiber.tag === SuspenseComponent) {\n    nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);\n  } else {\n    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;\n  }\n\n  return true;\n}\n\nfunction hasUnhydratedTailNodes() {\n  return isHydrating && nextHydratableInstance !== null;\n}\n\nfunction warnIfUnhydratedTailNodes(fiber) {\n  var nextInstance = nextHydratableInstance;\n\n  while (nextInstance) {\n    warnUnhydratedInstance(fiber, nextInstance);\n    nextInstance = getNextHydratableSibling(nextInstance);\n  }\n}\n\nfunction resetHydrationState() {\n\n  hydrationParentFiber = null;\n  nextHydratableInstance = null;\n  isHydrating = false;\n  didSuspendOrErrorDEV = false;\n}\n\nfunction upgradeHydrationErrorsToRecoverable() {\n  if (hydrationErrors !== null) {\n    // Successfully completed a forced client render. The errors that occurred\n    // during the hydration attempt are now recovered. We will log them in\n    // commit phase, once the entire tree has finished.\n    queueRecoverableErrors(hydrationErrors);\n    hydrationErrors = null;\n  }\n}\n\nfunction getIsHydrating() {\n  return isHydrating;\n}\n\nfunction queueHydrationError(error) {\n  if (hydrationErrors === null) {\n    hydrationErrors = [error];\n  } else {\n    hydrationErrors.push(error);\n  }\n}\n\nvar ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;\nvar NoTransition = null;\nfunction requestCurrentTransition() {\n  return ReactCurrentBatchConfig$1.transition;\n}\n\nvar ReactStrictModeWarnings = {\n  recordUnsafeLifecycleWarnings: function (fiber, instance) {},\n  flushPendingUnsafeLifecycleWarnings: function () {},\n  recordLegacyContextWarning: function (fiber, instance) {},\n  flushLegacyContextWarning: function () {},\n  discardPendingWarnings: function () {}\n};\n\n{\n  var findStrictRoot = function (fiber) {\n    var maybeStrictRoot = null;\n    var node = fiber;\n\n    while (node !== null) {\n      if (node.mode & StrictLegacyMode) {\n        maybeStrictRoot = node;\n      }\n\n      node = node.return;\n    }\n\n    return maybeStrictRoot;\n  };\n\n  var setToSortedString = function (set) {\n    var array = [];\n    set.forEach(function (value) {\n      array.push(value);\n    });\n    return array.sort().join(', ');\n  };\n\n  var pendingComponentWillMountWarnings = [];\n  var pendingUNSAFE_ComponentWillMountWarnings = [];\n  var pendingComponentWillReceivePropsWarnings = [];\n  var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n  var pendingComponentWillUpdateWarnings = [];\n  var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.\n\n  var didWarnAboutUnsafeLifecycles = new Set();\n\n  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {\n    // Dedupe strategy: Warn once per component.\n    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {\n      return;\n    }\n\n    if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.\n    instance.componentWillMount.__suppressDeprecationWarning !== true) {\n      pendingComponentWillMountWarnings.push(fiber);\n    }\n\n    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === 'function') {\n      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);\n    }\n\n    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n      pendingComponentWillReceivePropsWarnings.push(fiber);\n    }\n\n    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);\n    }\n\n    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n      pendingComponentWillUpdateWarnings.push(fiber);\n    }\n\n    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {\n      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);\n    }\n  };\n\n  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {\n    // We do an initial pass to gather component names\n    var componentWillMountUniqueNames = new Set();\n\n    if (pendingComponentWillMountWarnings.length > 0) {\n      pendingComponentWillMountWarnings.forEach(function (fiber) {\n        componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillMountWarnings = [];\n    }\n\n    var UNSAFE_componentWillMountUniqueNames = new Set();\n\n    if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {\n      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {\n        UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillMountWarnings = [];\n    }\n\n    var componentWillReceivePropsUniqueNames = new Set();\n\n    if (pendingComponentWillReceivePropsWarnings.length > 0) {\n      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {\n        componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillReceivePropsWarnings = [];\n    }\n\n    var UNSAFE_componentWillReceivePropsUniqueNames = new Set();\n\n    if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {\n      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {\n        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n    }\n\n    var componentWillUpdateUniqueNames = new Set();\n\n    if (pendingComponentWillUpdateWarnings.length > 0) {\n      pendingComponentWillUpdateWarnings.forEach(function (fiber) {\n        componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillUpdateWarnings = [];\n    }\n\n    var UNSAFE_componentWillUpdateUniqueNames = new Set();\n\n    if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {\n      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {\n        UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillUpdateWarnings = [];\n    } // Finally, we flush all the warnings\n    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'\n\n\n    if (UNSAFE_componentWillMountUniqueNames.size > 0) {\n      var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);\n\n      error('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.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '\\nPlease update the following components: %s', sortedNames);\n    }\n\n    if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {\n      var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);\n\n      error('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.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* 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\\n' + '\\nPlease update the following components: %s', _sortedNames);\n    }\n\n    if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {\n      var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);\n\n      error('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.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '\\nPlease update the following components: %s', _sortedNames2);\n    }\n\n    if (componentWillMountUniqueNames.size > 0) {\n      var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);\n\n      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '* 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.\\n' + '\\nPlease update the following components: %s', _sortedNames3);\n    }\n\n    if (componentWillReceivePropsUniqueNames.size > 0) {\n      var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);\n\n      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* 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\\n' + '* 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.\\n' + '\\nPlease update the following components: %s', _sortedNames4);\n    }\n\n    if (componentWillUpdateUniqueNames.size > 0) {\n      var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);\n\n      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '* 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.\\n' + '\\nPlease update the following components: %s', _sortedNames5);\n    }\n  };\n\n  var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.\n\n  var didWarnAboutLegacyContext = new Set();\n\n  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {\n    var strictRoot = findStrictRoot(fiber);\n\n    if (strictRoot === null) {\n      error('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.');\n\n      return;\n    } // Dedup strategy: Warn once per component.\n\n\n    if (didWarnAboutLegacyContext.has(fiber.type)) {\n      return;\n    }\n\n    var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);\n\n    if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {\n      if (warningsForRoot === undefined) {\n        warningsForRoot = [];\n        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);\n      }\n\n      warningsForRoot.push(fiber);\n    }\n  };\n\n  ReactStrictModeWarnings.flushLegacyContextWarning = function () {\n    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {\n      if (fiberArray.length === 0) {\n        return;\n      }\n\n      var firstFiber = fiberArray[0];\n      var uniqueNames = new Set();\n      fiberArray.forEach(function (fiber) {\n        uniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');\n        didWarnAboutLegacyContext.add(fiber.type);\n      });\n      var sortedNames = setToSortedString(uniqueNames);\n\n      try {\n        setCurrentFiber(firstFiber);\n\n        error('Legacy context API has been detected within a strict-mode tree.' + '\\n\\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);\n      } finally {\n        resetCurrentFiber();\n      }\n    });\n  };\n\n  ReactStrictModeWarnings.discardPendingWarnings = function () {\n    pendingComponentWillMountWarnings = [];\n    pendingUNSAFE_ComponentWillMountWarnings = [];\n    pendingComponentWillReceivePropsWarnings = [];\n    pendingUNSAFE_ComponentWillReceivePropsWarnings = [];\n    pendingComponentWillUpdateWarnings = [];\n    pendingUNSAFE_ComponentWillUpdateWarnings = [];\n    pendingLegacyContextWarning = new Map();\n  };\n}\n\nvar didWarnAboutMaps;\nvar didWarnAboutGenerators;\nvar didWarnAboutStringRefs;\nvar ownerHasKeyUseWarning;\nvar ownerHasFunctionTypeWarning;\n\nvar warnForMissingKey = function (child, returnFiber) {};\n\n{\n  didWarnAboutMaps = false;\n  didWarnAboutGenerators = false;\n  didWarnAboutStringRefs = {};\n  /**\n   * Warn if there's no key explicitly set on dynamic arrays of children or\n   * object keys are not valid. This allows us to keep track of children between\n   * updates.\n   */\n\n  ownerHasKeyUseWarning = {};\n  ownerHasFunctionTypeWarning = {};\n\n  warnForMissingKey = function (child, returnFiber) {\n    if (child === null || typeof child !== 'object') {\n      return;\n    }\n\n    if (!child._store || child._store.validated || child.key != null) {\n      return;\n    }\n\n    if (typeof child._store !== 'object') {\n      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.');\n    }\n\n    child._store.validated = true;\n    var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n    if (ownerHasKeyUseWarning[componentName]) {\n      return;\n    }\n\n    ownerHasKeyUseWarning[componentName] = true;\n\n    error('Each child in a list should have a unique ' + '\"key\" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');\n  };\n}\n\nfunction isReactClass(type) {\n  return type.prototype && type.prototype.isReactComponent;\n}\n\nfunction coerceRef(returnFiber, current, element) {\n  var mixedRef = element.ref;\n\n  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {\n    {\n      // TODO: Clean this up once we turn on the string ref warning for\n      // everyone, because the strict mode case will no longer be relevant\n      if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs\n      // because these cannot be automatically converted to an arrow function\n      // using a codemod. Therefore, we don't have to warn about string refs again.\n      !(element._owner && element._self && element._owner.stateNode !== element._self) && // Will already throw with \"Function components cannot have string refs\"\n      !(element._owner && element._owner.tag !== ClassComponent) && // Will already warn with \"Function components cannot be given refs\"\n      !(typeof element.type === 'function' && !isReactClass(element.type)) && // Will already throw with \"Element ref was specified as a string (someStringRef) but no owner was set\"\n      element._owner) {\n        var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n        if (!didWarnAboutStringRefs[componentName]) {\n          {\n            error('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', componentName, mixedRef);\n          }\n\n          didWarnAboutStringRefs[componentName] = true;\n        }\n      }\n    }\n\n    if (element._owner) {\n      var owner = element._owner;\n      var inst;\n\n      if (owner) {\n        var ownerFiber = owner;\n\n        if (ownerFiber.tag !== ClassComponent) {\n          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');\n        }\n\n        inst = ownerFiber.stateNode;\n      }\n\n      if (!inst) {\n        throw new Error(\"Missing owner for string ref \" + mixedRef + \". This error is likely caused by a \" + 'bug in React. Please file an issue.');\n      } // Assigning this to a const so Flow knows it won't change in the closure\n\n\n      var resolvedInst = inst;\n\n      {\n        checkPropStringCoercion(mixedRef, 'ref');\n      }\n\n      var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref\n\n      if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {\n        return current.ref;\n      }\n\n      var ref = function (value) {\n        var refs = resolvedInst.refs;\n\n        if (value === null) {\n          delete refs[stringRef];\n        } else {\n          refs[stringRef] = value;\n        }\n      };\n\n      ref._stringRef = stringRef;\n      return ref;\n    } else {\n      if (typeof mixedRef !== 'string') {\n        throw new Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.');\n      }\n\n      if (!element._owner) {\n        throw new Error(\"Element ref was specified as a string (\" + mixedRef + \") but no owner was set. This could happen for one of\" + ' the following reasons:\\n' + '1. You may be adding a ref to a function component\\n' + \"2. You may be adding a ref to a component that was not created inside a component's render method\\n\" + '3. You have multiple copies of React loaded\\n' + 'See https://reactjs.org/link/refs-must-have-owner for more information.');\n      }\n    }\n  }\n\n  return mixedRef;\n}\n\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n  var childString = Object.prototype.toString.call(newChild);\n  throw new Error(\"Objects are not valid as a React child (found: \" + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n}\n\nfunction warnOnFunctionType(returnFiber) {\n  {\n    var componentName = getComponentNameFromFiber(returnFiber) || 'Component';\n\n    if (ownerHasFunctionTypeWarning[componentName]) {\n      return;\n    }\n\n    ownerHasFunctionTypeWarning[componentName] = true;\n\n    error('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.');\n  }\n}\n\nfunction resolveLazy(lazyType) {\n  var payload = lazyType._payload;\n  var init = lazyType._init;\n  return init(payload);\n} // This wrapper function exists because I expect to clone the code in each path\n// to be able to optimize each path individually by branching early. This needs\n// a compiler or we can do it manually. Helpers that don't need this branching\n// live outside of this function.\n\n\nfunction ChildReconciler(shouldTrackSideEffects) {\n  function deleteChild(returnFiber, childToDelete) {\n    if (!shouldTrackSideEffects) {\n      // Noop.\n      return;\n    }\n\n    var deletions = returnFiber.deletions;\n\n    if (deletions === null) {\n      returnFiber.deletions = [childToDelete];\n      returnFiber.flags |= ChildDeletion;\n    } else {\n      deletions.push(childToDelete);\n    }\n  }\n\n  function deleteRemainingChildren(returnFiber, currentFirstChild) {\n    if (!shouldTrackSideEffects) {\n      // Noop.\n      return null;\n    } // TODO: For the shouldClone case, this could be micro-optimized a bit by\n    // assuming that after the first child we've already added everything.\n\n\n    var childToDelete = currentFirstChild;\n\n    while (childToDelete !== null) {\n      deleteChild(returnFiber, childToDelete);\n      childToDelete = childToDelete.sibling;\n    }\n\n    return null;\n  }\n\n  function mapRemainingChildren(returnFiber, currentFirstChild) {\n    // Add the remaining children to a temporary map so that we can find them by\n    // keys quickly. Implicit (null) keys get added to this set with their index\n    // instead.\n    var existingChildren = new Map();\n    var existingChild = currentFirstChild;\n\n    while (existingChild !== null) {\n      if (existingChild.key !== null) {\n        existingChildren.set(existingChild.key, existingChild);\n      } else {\n        existingChildren.set(existingChild.index, existingChild);\n      }\n\n      existingChild = existingChild.sibling;\n    }\n\n    return existingChildren;\n  }\n\n  function useFiber(fiber, pendingProps) {\n    // We currently set sibling to null and index to 0 here because it is easy\n    // to forget to do before returning it. E.g. for the single child case.\n    var clone = createWorkInProgress(fiber, pendingProps);\n    clone.index = 0;\n    clone.sibling = null;\n    return clone;\n  }\n\n  function placeChild(newFiber, lastPlacedIndex, newIndex) {\n    newFiber.index = newIndex;\n\n    if (!shouldTrackSideEffects) {\n      // During hydration, the useId algorithm needs to know which fibers are\n      // part of a list of children (arrays, iterators).\n      newFiber.flags |= Forked;\n      return lastPlacedIndex;\n    }\n\n    var current = newFiber.alternate;\n\n    if (current !== null) {\n      var oldIndex = current.index;\n\n      if (oldIndex < lastPlacedIndex) {\n        // This is a move.\n        newFiber.flags |= Placement;\n        return lastPlacedIndex;\n      } else {\n        // This item can stay in place.\n        return oldIndex;\n      }\n    } else {\n      // This is an insertion.\n      newFiber.flags |= Placement;\n      return lastPlacedIndex;\n    }\n  }\n\n  function placeSingleChild(newFiber) {\n    // This is simpler for the single child case. We only need to do a\n    // placement for inserting new children.\n    if (shouldTrackSideEffects && newFiber.alternate === null) {\n      newFiber.flags |= Placement;\n    }\n\n    return newFiber;\n  }\n\n  function updateTextNode(returnFiber, current, textContent, lanes) {\n    if (current === null || current.tag !== HostText) {\n      // Insert\n      var created = createFiberFromText(textContent, returnFiber.mode, lanes);\n      created.return = returnFiber;\n      return created;\n    } else {\n      // Update\n      var existing = useFiber(current, textContent);\n      existing.return = returnFiber;\n      return existing;\n    }\n  }\n\n  function updateElement(returnFiber, current, element, lanes) {\n    var elementType = element.type;\n\n    if (elementType === REACT_FRAGMENT_TYPE) {\n      return updateFragment(returnFiber, current, element.props.children, lanes, element.key);\n    }\n\n    if (current !== null) {\n      if (current.elementType === elementType || ( // Keep this check inline so it only runs on the false path:\n       isCompatibleFamilyForHotReloading(current, element) ) || // Lazy types should reconcile their resolved type.\n      // We need to do this after the Hot Reloading check above,\n      // because hot reloading has different semantics than prod because\n      // it doesn't resuspend. So we can't let the call below suspend.\n      typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) {\n        // Move based on index\n        var existing = useFiber(current, element.props);\n        existing.ref = coerceRef(returnFiber, current, element);\n        existing.return = returnFiber;\n\n        {\n          existing._debugSource = element._source;\n          existing._debugOwner = element._owner;\n        }\n\n        return existing;\n      }\n    } // Insert\n\n\n    var created = createFiberFromElement(element, returnFiber.mode, lanes);\n    created.ref = coerceRef(returnFiber, current, element);\n    created.return = returnFiber;\n    return created;\n  }\n\n  function updatePortal(returnFiber, current, portal, lanes) {\n    if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {\n      // Insert\n      var created = createFiberFromPortal(portal, returnFiber.mode, lanes);\n      created.return = returnFiber;\n      return created;\n    } else {\n      // Update\n      var existing = useFiber(current, portal.children || []);\n      existing.return = returnFiber;\n      return existing;\n    }\n  }\n\n  function updateFragment(returnFiber, current, fragment, lanes, key) {\n    if (current === null || current.tag !== Fragment) {\n      // Insert\n      var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);\n      created.return = returnFiber;\n      return created;\n    } else {\n      // Update\n      var existing = useFiber(current, fragment);\n      existing.return = returnFiber;\n      return existing;\n    }\n  }\n\n  function createChild(returnFiber, newChild, lanes) {\n    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n      // Text nodes don't have keys. If the previous node is implicitly keyed\n      // we can continue to replace it without aborting even if it is not a text\n      // node.\n      var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);\n      created.return = returnFiber;\n      return created;\n    }\n\n    if (typeof newChild === 'object' && newChild !== null) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          {\n            var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);\n\n            _created.ref = coerceRef(returnFiber, null, newChild);\n            _created.return = returnFiber;\n            return _created;\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);\n\n            _created2.return = returnFiber;\n            return _created2;\n          }\n\n        case REACT_LAZY_TYPE:\n          {\n            var payload = newChild._payload;\n            var init = newChild._init;\n            return createChild(returnFiber, init(payload), lanes);\n          }\n      }\n\n      if (isArray(newChild) || getIteratorFn(newChild)) {\n        var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);\n\n        _created3.return = returnFiber;\n        return _created3;\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if (typeof newChild === 'function') {\n        warnOnFunctionType(returnFiber);\n      }\n    }\n\n    return null;\n  }\n\n  function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n    // Update the fiber if the keys match, otherwise return null.\n    var key = oldFiber !== null ? oldFiber.key : null;\n\n    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n      // Text nodes don't have keys. If the previous node is implicitly keyed\n      // we can continue to replace it without aborting even if it is not a text\n      // node.\n      if (key !== null) {\n        return null;\n      }\n\n      return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);\n    }\n\n    if (typeof newChild === 'object' && newChild !== null) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          {\n            if (newChild.key === key) {\n              return updateElement(returnFiber, oldFiber, newChild, lanes);\n            } else {\n              return null;\n            }\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            if (newChild.key === key) {\n              return updatePortal(returnFiber, oldFiber, newChild, lanes);\n            } else {\n              return null;\n            }\n          }\n\n        case REACT_LAZY_TYPE:\n          {\n            var payload = newChild._payload;\n            var init = newChild._init;\n            return updateSlot(returnFiber, oldFiber, init(payload), lanes);\n          }\n      }\n\n      if (isArray(newChild) || getIteratorFn(newChild)) {\n        if (key !== null) {\n          return null;\n        }\n\n        return updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if (typeof newChild === 'function') {\n        warnOnFunctionType(returnFiber);\n      }\n    }\n\n    return null;\n  }\n\n  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {\n    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n      // Text nodes don't have keys, so we neither have to check the old nor\n      // new node for the key. If both are text nodes, they match.\n      var matchedFiber = existingChildren.get(newIdx) || null;\n      return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);\n    }\n\n    if (typeof newChild === 'object' && newChild !== null) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          {\n            var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n\n            return updateElement(returnFiber, _matchedFiber, newChild, lanes);\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;\n\n            return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);\n          }\n\n        case REACT_LAZY_TYPE:\n          var payload = newChild._payload;\n          var init = newChild._init;\n          return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes);\n      }\n\n      if (isArray(newChild) || getIteratorFn(newChild)) {\n        var _matchedFiber3 = existingChildren.get(newIdx) || null;\n\n        return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if (typeof newChild === 'function') {\n        warnOnFunctionType(returnFiber);\n      }\n    }\n\n    return null;\n  }\n  /**\n   * Warns if there is a duplicate or missing key\n   */\n\n\n  function warnOnInvalidKey(child, knownKeys, returnFiber) {\n    {\n      if (typeof child !== 'object' || child === null) {\n        return knownKeys;\n      }\n\n      switch (child.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n        case REACT_PORTAL_TYPE:\n          warnForMissingKey(child, returnFiber);\n          var key = child.key;\n\n          if (typeof key !== 'string') {\n            break;\n          }\n\n          if (knownKeys === null) {\n            knownKeys = new Set();\n            knownKeys.add(key);\n            break;\n          }\n\n          if (!knownKeys.has(key)) {\n            knownKeys.add(key);\n            break;\n          }\n\n          error('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.', key);\n\n          break;\n\n        case REACT_LAZY_TYPE:\n          var payload = child._payload;\n          var init = child._init;\n          warnOnInvalidKey(init(payload), knownKeys, returnFiber);\n          break;\n      }\n    }\n\n    return knownKeys;\n  }\n\n  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {\n    // This algorithm can't optimize by searching from both ends since we\n    // don't have backpointers on fibers. I'm trying to see how far we can get\n    // with that model. If it ends up not being worth the tradeoffs, we can\n    // add it later.\n    // Even with a two ended optimization, we'd want to optimize for the case\n    // where there are few changes and brute force the comparison instead of\n    // going for the Map. It'd like to explore hitting that path first in\n    // forward-only mode and only go for the Map once we notice that we need\n    // lots of look ahead. This doesn't handle reversal as well as two ended\n    // search but that's unusual. Besides, for the two ended optimization to\n    // work on Iterables, we'd need to copy the whole set.\n    // In this first iteration, we'll just live with hitting the bad case\n    // (adding everything to a Map) in for every insert/move.\n    // If you change this code, also update reconcileChildrenIterator() which\n    // uses the same algorithm.\n    {\n      // First, validate keys.\n      var knownKeys = null;\n\n      for (var i = 0; i < newChildren.length; i++) {\n        var child = newChildren[i];\n        knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);\n      }\n    }\n\n    var resultingFirstChild = null;\n    var previousNewFiber = null;\n    var oldFiber = currentFirstChild;\n    var lastPlacedIndex = 0;\n    var newIdx = 0;\n    var nextOldFiber = null;\n\n    for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {\n      if (oldFiber.index > newIdx) {\n        nextOldFiber = oldFiber;\n        oldFiber = null;\n      } else {\n        nextOldFiber = oldFiber.sibling;\n      }\n\n      var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);\n\n      if (newFiber === null) {\n        // TODO: This breaks on empty slots like null children. That's\n        // unfortunate because it triggers the slow path all the time. We need\n        // a better way to communicate whether this was a miss or null,\n        // boolean, undefined, etc.\n        if (oldFiber === null) {\n          oldFiber = nextOldFiber;\n        }\n\n        break;\n      }\n\n      if (shouldTrackSideEffects) {\n        if (oldFiber && newFiber.alternate === null) {\n          // We matched the slot, but we didn't reuse the existing fiber, so we\n          // need to delete the existing child.\n          deleteChild(returnFiber, oldFiber);\n        }\n      }\n\n      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n\n      if (previousNewFiber === null) {\n        // TODO: Move out of the loop. This only happens for the first run.\n        resultingFirstChild = newFiber;\n      } else {\n        // TODO: Defer siblings if we're not at the right index for this slot.\n        // I.e. if we had null values before, then we want to defer this\n        // for each null value. However, we also don't want to call updateSlot\n        // with the previous one.\n        previousNewFiber.sibling = newFiber;\n      }\n\n      previousNewFiber = newFiber;\n      oldFiber = nextOldFiber;\n    }\n\n    if (newIdx === newChildren.length) {\n      // We've reached the end of the new children. We can delete the rest.\n      deleteRemainingChildren(returnFiber, oldFiber);\n\n      if (getIsHydrating()) {\n        var numberOfForks = newIdx;\n        pushTreeFork(returnFiber, numberOfForks);\n      }\n\n      return resultingFirstChild;\n    }\n\n    if (oldFiber === null) {\n      // If we don't have any more existing children we can choose a fast path\n      // since the rest will all be insertions.\n      for (; newIdx < newChildren.length; newIdx++) {\n        var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);\n\n        if (_newFiber === null) {\n          continue;\n        }\n\n        lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);\n\n        if (previousNewFiber === null) {\n          // TODO: Move out of the loop. This only happens for the first run.\n          resultingFirstChild = _newFiber;\n        } else {\n          previousNewFiber.sibling = _newFiber;\n        }\n\n        previousNewFiber = _newFiber;\n      }\n\n      if (getIsHydrating()) {\n        var _numberOfForks = newIdx;\n        pushTreeFork(returnFiber, _numberOfForks);\n      }\n\n      return resultingFirstChild;\n    } // Add all children to a key map for quick lookups.\n\n\n    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n    for (; newIdx < newChildren.length; newIdx++) {\n      var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);\n\n      if (_newFiber2 !== null) {\n        if (shouldTrackSideEffects) {\n          if (_newFiber2.alternate !== null) {\n            // The new fiber is a work in progress, but if there exists a\n            // current, that means that we reused the fiber. We need to delete\n            // it from the child list so that we don't add it to the deletion\n            // list.\n            existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);\n          }\n        }\n\n        lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);\n\n        if (previousNewFiber === null) {\n          resultingFirstChild = _newFiber2;\n        } else {\n          previousNewFiber.sibling = _newFiber2;\n        }\n\n        previousNewFiber = _newFiber2;\n      }\n    }\n\n    if (shouldTrackSideEffects) {\n      // Any existing children that weren't consumed above were deleted. We need\n      // to add them to the deletion list.\n      existingChildren.forEach(function (child) {\n        return deleteChild(returnFiber, child);\n      });\n    }\n\n    if (getIsHydrating()) {\n      var _numberOfForks2 = newIdx;\n      pushTreeFork(returnFiber, _numberOfForks2);\n    }\n\n    return resultingFirstChild;\n  }\n\n  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {\n    // This is the same implementation as reconcileChildrenArray(),\n    // but using the iterator instead.\n    var iteratorFn = getIteratorFn(newChildrenIterable);\n\n    if (typeof iteratorFn !== 'function') {\n      throw new Error('An object is not an iterable. This error is likely caused by a bug in ' + 'React. Please file an issue.');\n    }\n\n    {\n      // We don't support rendering Generators because it's a mutation.\n      // See https://github.com/facebook/react/issues/12995\n      if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag\n      newChildrenIterable[Symbol.toStringTag] === 'Generator') {\n        if (!didWarnAboutGenerators) {\n          error('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.');\n        }\n\n        didWarnAboutGenerators = true;\n      } // Warn about using Maps as children\n\n\n      if (newChildrenIterable.entries === iteratorFn) {\n        if (!didWarnAboutMaps) {\n          error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n        }\n\n        didWarnAboutMaps = true;\n      } // First, validate keys.\n      // We'll get a different iterator later for the main pass.\n\n\n      var _newChildren = iteratorFn.call(newChildrenIterable);\n\n      if (_newChildren) {\n        var knownKeys = null;\n\n        var _step = _newChildren.next();\n\n        for (; !_step.done; _step = _newChildren.next()) {\n          var child = _step.value;\n          knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);\n        }\n      }\n    }\n\n    var newChildren = iteratorFn.call(newChildrenIterable);\n\n    if (newChildren == null) {\n      throw new Error('An iterable object provided no iterator.');\n    }\n\n    var resultingFirstChild = null;\n    var previousNewFiber = null;\n    var oldFiber = currentFirstChild;\n    var lastPlacedIndex = 0;\n    var newIdx = 0;\n    var nextOldFiber = null;\n    var step = newChildren.next();\n\n    for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {\n      if (oldFiber.index > newIdx) {\n        nextOldFiber = oldFiber;\n        oldFiber = null;\n      } else {\n        nextOldFiber = oldFiber.sibling;\n      }\n\n      var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n\n      if (newFiber === null) {\n        // TODO: This breaks on empty slots like null children. That's\n        // unfortunate because it triggers the slow path all the time. We need\n        // a better way to communicate whether this was a miss or null,\n        // boolean, undefined, etc.\n        if (oldFiber === null) {\n          oldFiber = nextOldFiber;\n        }\n\n        break;\n      }\n\n      if (shouldTrackSideEffects) {\n        if (oldFiber && newFiber.alternate === null) {\n          // We matched the slot, but we didn't reuse the existing fiber, so we\n          // need to delete the existing child.\n          deleteChild(returnFiber, oldFiber);\n        }\n      }\n\n      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);\n\n      if (previousNewFiber === null) {\n        // TODO: Move out of the loop. This only happens for the first run.\n        resultingFirstChild = newFiber;\n      } else {\n        // TODO: Defer siblings if we're not at the right index for this slot.\n        // I.e. if we had null values before, then we want to defer this\n        // for each null value. However, we also don't want to call updateSlot\n        // with the previous one.\n        previousNewFiber.sibling = newFiber;\n      }\n\n      previousNewFiber = newFiber;\n      oldFiber = nextOldFiber;\n    }\n\n    if (step.done) {\n      // We've reached the end of the new children. We can delete the rest.\n      deleteRemainingChildren(returnFiber, oldFiber);\n\n      if (getIsHydrating()) {\n        var numberOfForks = newIdx;\n        pushTreeFork(returnFiber, numberOfForks);\n      }\n\n      return resultingFirstChild;\n    }\n\n    if (oldFiber === null) {\n      // If we don't have any more existing children we can choose a fast path\n      // since the rest will all be insertions.\n      for (; !step.done; newIdx++, step = newChildren.next()) {\n        var _newFiber3 = createChild(returnFiber, step.value, lanes);\n\n        if (_newFiber3 === null) {\n          continue;\n        }\n\n        lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);\n\n        if (previousNewFiber === null) {\n          // TODO: Move out of the loop. This only happens for the first run.\n          resultingFirstChild = _newFiber3;\n        } else {\n          previousNewFiber.sibling = _newFiber3;\n        }\n\n        previousNewFiber = _newFiber3;\n      }\n\n      if (getIsHydrating()) {\n        var _numberOfForks3 = newIdx;\n        pushTreeFork(returnFiber, _numberOfForks3);\n      }\n\n      return resultingFirstChild;\n    } // Add all children to a key map for quick lookups.\n\n\n    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n    for (; !step.done; newIdx++, step = newChildren.next()) {\n      var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);\n\n      if (_newFiber4 !== null) {\n        if (shouldTrackSideEffects) {\n          if (_newFiber4.alternate !== null) {\n            // The new fiber is a work in progress, but if there exists a\n            // current, that means that we reused the fiber. We need to delete\n            // it from the child list so that we don't add it to the deletion\n            // list.\n            existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);\n          }\n        }\n\n        lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);\n\n        if (previousNewFiber === null) {\n          resultingFirstChild = _newFiber4;\n        } else {\n          previousNewFiber.sibling = _newFiber4;\n        }\n\n        previousNewFiber = _newFiber4;\n      }\n    }\n\n    if (shouldTrackSideEffects) {\n      // Any existing children that weren't consumed above were deleted. We need\n      // to add them to the deletion list.\n      existingChildren.forEach(function (child) {\n        return deleteChild(returnFiber, child);\n      });\n    }\n\n    if (getIsHydrating()) {\n      var _numberOfForks4 = newIdx;\n      pushTreeFork(returnFiber, _numberOfForks4);\n    }\n\n    return resultingFirstChild;\n  }\n\n  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {\n    // There's no need to check for keys on text nodes since we don't have a\n    // way to define them.\n    if (currentFirstChild !== null && currentFirstChild.tag === HostText) {\n      // We already have an existing node so let's just update it and delete\n      // the rest.\n      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);\n      var existing = useFiber(currentFirstChild, textContent);\n      existing.return = returnFiber;\n      return existing;\n    } // The existing first child is not a text node so we need to create one\n    // and delete the existing ones.\n\n\n    deleteRemainingChildren(returnFiber, currentFirstChild);\n    var created = createFiberFromText(textContent, returnFiber.mode, lanes);\n    created.return = returnFiber;\n    return created;\n  }\n\n  function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {\n    var key = element.key;\n    var child = currentFirstChild;\n\n    while (child !== null) {\n      // TODO: If key === null and child.key === null, then this only applies to\n      // the first item in the list.\n      if (child.key === key) {\n        var elementType = element.type;\n\n        if (elementType === REACT_FRAGMENT_TYPE) {\n          if (child.tag === Fragment) {\n            deleteRemainingChildren(returnFiber, child.sibling);\n            var existing = useFiber(child, element.props.children);\n            existing.return = returnFiber;\n\n            {\n              existing._debugSource = element._source;\n              existing._debugOwner = element._owner;\n            }\n\n            return existing;\n          }\n        } else {\n          if (child.elementType === elementType || ( // Keep this check inline so it only runs on the false path:\n           isCompatibleFamilyForHotReloading(child, element) ) || // Lazy types should reconcile their resolved type.\n          // We need to do this after the Hot Reloading check above,\n          // because hot reloading has different semantics than prod because\n          // it doesn't resuspend. So we can't let the call below suspend.\n          typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) {\n            deleteRemainingChildren(returnFiber, child.sibling);\n\n            var _existing = useFiber(child, element.props);\n\n            _existing.ref = coerceRef(returnFiber, child, element);\n            _existing.return = returnFiber;\n\n            {\n              _existing._debugSource = element._source;\n              _existing._debugOwner = element._owner;\n            }\n\n            return _existing;\n          }\n        } // Didn't match.\n\n\n        deleteRemainingChildren(returnFiber, child);\n        break;\n      } else {\n        deleteChild(returnFiber, child);\n      }\n\n      child = child.sibling;\n    }\n\n    if (element.type === REACT_FRAGMENT_TYPE) {\n      var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);\n      created.return = returnFiber;\n      return created;\n    } else {\n      var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);\n\n      _created4.ref = coerceRef(returnFiber, currentFirstChild, element);\n      _created4.return = returnFiber;\n      return _created4;\n    }\n  }\n\n  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {\n    var key = portal.key;\n    var child = currentFirstChild;\n\n    while (child !== null) {\n      // TODO: If key === null and child.key === null, then this only applies to\n      // the first item in the list.\n      if (child.key === key) {\n        if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {\n          deleteRemainingChildren(returnFiber, child.sibling);\n          var existing = useFiber(child, portal.children || []);\n          existing.return = returnFiber;\n          return existing;\n        } else {\n          deleteRemainingChildren(returnFiber, child);\n          break;\n        }\n      } else {\n        deleteChild(returnFiber, child);\n      }\n\n      child = child.sibling;\n    }\n\n    var created = createFiberFromPortal(portal, returnFiber.mode, lanes);\n    created.return = returnFiber;\n    return created;\n  } // This API will tag the children with the side-effect of the reconciliation\n  // itself. They will be added to the side-effect list as we pass through the\n  // children and the parent.\n\n\n  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {\n    // This function is not recursive.\n    // If the top level item is an array, we treat it as a set of children,\n    // not as a fragment. Nested arrays on the other hand will be treated as\n    // fragment nodes. Recursion happens at the normal flow.\n    // Handle top level unkeyed fragments as if they were arrays.\n    // This leads to an ambiguity between <>{[...]}</> and <>...</>.\n    // We treat the ambiguous cases above the same.\n    var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;\n\n    if (isUnkeyedTopLevelFragment) {\n      newChild = newChild.props.children;\n    } // Handle object types\n\n\n    if (typeof newChild === 'object' && newChild !== null) {\n      switch (newChild.$$typeof) {\n        case REACT_ELEMENT_TYPE:\n          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));\n\n        case REACT_PORTAL_TYPE:\n          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));\n\n        case REACT_LAZY_TYPE:\n          var payload = newChild._payload;\n          var init = newChild._init; // TODO: This function is supposed to be non-recursive.\n\n          return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes);\n      }\n\n      if (isArray(newChild)) {\n        return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);\n      }\n\n      if (getIteratorFn(newChild)) {\n        return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {\n      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));\n    }\n\n    {\n      if (typeof newChild === 'function') {\n        warnOnFunctionType(returnFiber);\n      }\n    } // Remaining cases are all treated as empty.\n\n\n    return deleteRemainingChildren(returnFiber, currentFirstChild);\n  }\n\n  return reconcileChildFibers;\n}\n\nvar reconcileChildFibers = ChildReconciler(true);\nvar mountChildFibers = ChildReconciler(false);\nfunction cloneChildFibers(current, workInProgress) {\n  if (current !== null && workInProgress.child !== current.child) {\n    throw new Error('Resuming work not yet implemented.');\n  }\n\n  if (workInProgress.child === null) {\n    return;\n  }\n\n  var currentChild = workInProgress.child;\n  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);\n  workInProgress.child = newChild;\n  newChild.return = workInProgress;\n\n  while (currentChild.sibling !== null) {\n    currentChild = currentChild.sibling;\n    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);\n    newChild.return = workInProgress;\n  }\n\n  newChild.sibling = null;\n} // Reset a workInProgress child set to prepare it for a second pass.\n\nfunction resetChildFibers(workInProgress, lanes) {\n  var child = workInProgress.child;\n\n  while (child !== null) {\n    resetWorkInProgress(child, lanes);\n    child = child.sibling;\n  }\n}\n\nvar valueCursor = createCursor(null);\nvar rendererSigil;\n\n{\n  // Use this to detect multiple renderers using the same context\n  rendererSigil = {};\n}\n\nvar currentlyRenderingFiber = null;\nvar lastContextDependency = null;\nvar lastFullyObservedContext = null;\nvar isDisallowedContextReadInDEV = false;\nfunction resetContextDependencies() {\n  // This is called right before React yields execution, to ensure `readContext`\n  // cannot be called outside the render phase.\n  currentlyRenderingFiber = null;\n  lastContextDependency = null;\n  lastFullyObservedContext = null;\n\n  {\n    isDisallowedContextReadInDEV = false;\n  }\n}\nfunction enterDisallowedContextReadInDEV() {\n  {\n    isDisallowedContextReadInDEV = true;\n  }\n}\nfunction exitDisallowedContextReadInDEV() {\n  {\n    isDisallowedContextReadInDEV = false;\n  }\n}\nfunction pushProvider(providerFiber, context, nextValue) {\n  {\n    push(valueCursor, context._currentValue, providerFiber);\n    context._currentValue = nextValue;\n\n    {\n      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer = rendererSigil;\n    }\n  }\n}\nfunction popProvider(context, providerFiber) {\n  var currentValue = valueCursor.current;\n  pop(valueCursor, providerFiber);\n\n  {\n    {\n      context._currentValue = currentValue;\n    }\n  }\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n  // Update the child lanes of all the ancestors, including the alternates.\n  var node = parent;\n\n  while (node !== null) {\n    var alternate = node.alternate;\n\n    if (!isSubsetOfLanes(node.childLanes, renderLanes)) {\n      node.childLanes = mergeLanes(node.childLanes, renderLanes);\n\n      if (alternate !== null) {\n        alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);\n      }\n    } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {\n      alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);\n    }\n\n    if (node === propagationRoot) {\n      break;\n    }\n\n    node = node.return;\n  }\n\n  {\n    if (node !== propagationRoot) {\n      error('Expected to find the propagation root when scheduling context work. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n    }\n  }\n}\nfunction propagateContextChange(workInProgress, context, renderLanes) {\n  {\n    propagateContextChange_eager(workInProgress, context, renderLanes);\n  }\n}\n\nfunction propagateContextChange_eager(workInProgress, context, renderLanes) {\n\n  var fiber = workInProgress.child;\n\n  if (fiber !== null) {\n    // Set the return pointer of the child to the work-in-progress fiber.\n    fiber.return = workInProgress;\n  }\n\n  while (fiber !== null) {\n    var nextFiber = void 0; // Visit this fiber.\n\n    var list = fiber.dependencies;\n\n    if (list !== null) {\n      nextFiber = fiber.child;\n      var dependency = list.firstContext;\n\n      while (dependency !== null) {\n        // Check if the context matches.\n        if (dependency.context === context) {\n          // Match! Schedule an update on this fiber.\n          if (fiber.tag === ClassComponent) {\n            // Schedule a force update on the work-in-progress.\n            var lane = pickArbitraryLane(renderLanes);\n            var update = createUpdate(NoTimestamp, lane);\n            update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the\n            // update to the current fiber, too, which means it will persist even if\n            // this render is thrown away. Since it's a race condition, not sure it's\n            // worth fixing.\n            // Inlined `enqueueUpdate` to remove interleaved update check\n\n            var updateQueue = fiber.updateQueue;\n\n            if (updateQueue === null) ; else {\n              var sharedQueue = updateQueue.shared;\n              var pending = sharedQueue.pending;\n\n              if (pending === null) {\n                // This is the first update. Create a circular list.\n                update.next = update;\n              } else {\n                update.next = pending.next;\n                pending.next = update;\n              }\n\n              sharedQueue.pending = update;\n            }\n          }\n\n          fiber.lanes = mergeLanes(fiber.lanes, renderLanes);\n          var alternate = fiber.alternate;\n\n          if (alternate !== null) {\n            alternate.lanes = mergeLanes(alternate.lanes, renderLanes);\n          }\n\n          scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too.\n\n          list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the\n          // dependency list.\n\n          break;\n        }\n\n        dependency = dependency.next;\n      }\n    } else if (fiber.tag === ContextProvider) {\n      // Don't scan deeper if this is a matching provider\n      nextFiber = fiber.type === workInProgress.type ? null : fiber.child;\n    } else if (fiber.tag === DehydratedFragment) {\n      // If a dehydrated suspense boundary is in this subtree, we don't know\n      // if it will have any context consumers in it. The best we can do is\n      // mark it as having updates.\n      var parentSuspense = fiber.return;\n\n      if (parentSuspense === null) {\n        throw new Error('We just came from a parent so we must have had a parent. This is a bug in React.');\n      }\n\n      parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes);\n      var _alternate = parentSuspense.alternate;\n\n      if (_alternate !== null) {\n        _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes);\n      } // This is intentionally passing this fiber as the parent\n      // because we want to schedule this fiber as having work\n      // on its children. We'll use the childLanes on\n      // this fiber to indicate that a context has changed.\n\n\n      scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress);\n      nextFiber = fiber.sibling;\n    } else {\n      // Traverse down.\n      nextFiber = fiber.child;\n    }\n\n    if (nextFiber !== null) {\n      // Set the return pointer of the child to the work-in-progress fiber.\n      nextFiber.return = fiber;\n    } else {\n      // No child. Traverse to next sibling.\n      nextFiber = fiber;\n\n      while (nextFiber !== null) {\n        if (nextFiber === workInProgress) {\n          // We're back to the root of this subtree. Exit.\n          nextFiber = null;\n          break;\n        }\n\n        var sibling = nextFiber.sibling;\n\n        if (sibling !== null) {\n          // Set the return pointer of the sibling to the work-in-progress fiber.\n          sibling.return = nextFiber.return;\n          nextFiber = sibling;\n          break;\n        } // No more siblings. Traverse up.\n\n\n        nextFiber = nextFiber.return;\n      }\n    }\n\n    fiber = nextFiber;\n  }\n}\nfunction prepareToReadContext(workInProgress, renderLanes) {\n  currentlyRenderingFiber = workInProgress;\n  lastContextDependency = null;\n  lastFullyObservedContext = null;\n  var dependencies = workInProgress.dependencies;\n\n  if (dependencies !== null) {\n    {\n      var firstContext = dependencies.firstContext;\n\n      if (firstContext !== null) {\n        if (includesSomeLane(dependencies.lanes, renderLanes)) {\n          // Context list has a pending update. Mark that this fiber performed work.\n          markWorkInProgressReceivedUpdate();\n        } // Reset the work-in-progress list\n\n\n        dependencies.firstContext = null;\n      }\n    }\n  }\n}\nfunction readContext(context) {\n  {\n    // This warning would fire if you read context inside a Hook like useMemo.\n    // Unlike the class check below, it's not enforced in production for perf.\n    if (isDisallowedContextReadInDEV) {\n      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().');\n    }\n  }\n\n  var value =  context._currentValue ;\n\n  if (lastFullyObservedContext === context) ; else {\n    var contextItem = {\n      context: context,\n      memoizedValue: value,\n      next: null\n    };\n\n    if (lastContextDependency === null) {\n      if (currentlyRenderingFiber === null) {\n        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().');\n      } // This is the first dependency for this component. Create a new list.\n\n\n      lastContextDependency = contextItem;\n      currentlyRenderingFiber.dependencies = {\n        lanes: NoLanes,\n        firstContext: contextItem\n      };\n    } else {\n      // Append a new context item.\n      lastContextDependency = lastContextDependency.next = contextItem;\n    }\n  }\n\n  return value;\n}\n\n// render. When this render exits, either because it finishes or because it is\n// interrupted, the interleaved updates will be transferred onto the main part\n// of the queue.\n\nvar concurrentQueues = null;\nfunction pushConcurrentUpdateQueue(queue) {\n  if (concurrentQueues === null) {\n    concurrentQueues = [queue];\n  } else {\n    concurrentQueues.push(queue);\n  }\n}\nfunction finishQueueingConcurrentUpdates() {\n  // Transfer the interleaved updates onto the main queue. Each queue has a\n  // `pending` field and an `interleaved` field. When they are not null, they\n  // point to the last node in a circular linked list. We need to append the\n  // interleaved list to the end of the pending list by joining them into a\n  // single, circular list.\n  if (concurrentQueues !== null) {\n    for (var i = 0; i < concurrentQueues.length; i++) {\n      var queue = concurrentQueues[i];\n      var lastInterleavedUpdate = queue.interleaved;\n\n      if (lastInterleavedUpdate !== null) {\n        queue.interleaved = null;\n        var firstInterleavedUpdate = lastInterleavedUpdate.next;\n        var lastPendingUpdate = queue.pending;\n\n        if (lastPendingUpdate !== null) {\n          var firstPendingUpdate = lastPendingUpdate.next;\n          lastPendingUpdate.next = firstInterleavedUpdate;\n          lastInterleavedUpdate.next = firstPendingUpdate;\n        }\n\n        queue.pending = lastInterleavedUpdate;\n      }\n    }\n\n    concurrentQueues = null;\n  }\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n  var interleaved = queue.interleaved;\n\n  if (interleaved === null) {\n    // This is the first update. Create a circular list.\n    update.next = update; // At the end of the current render, this queue's interleaved updates will\n    // be transferred to the pending queue.\n\n    pushConcurrentUpdateQueue(queue);\n  } else {\n    update.next = interleaved.next;\n    interleaved.next = update;\n  }\n\n  queue.interleaved = update;\n  return markUpdateLaneFromFiberToRoot(fiber, lane);\n}\nfunction enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) {\n  var interleaved = queue.interleaved;\n\n  if (interleaved === null) {\n    // This is the first update. Create a circular list.\n    update.next = update; // At the end of the current render, this queue's interleaved updates will\n    // be transferred to the pending queue.\n\n    pushConcurrentUpdateQueue(queue);\n  } else {\n    update.next = interleaved.next;\n    interleaved.next = update;\n  }\n\n  queue.interleaved = update;\n}\nfunction enqueueConcurrentClassUpdate(fiber, queue, update, lane) {\n  var interleaved = queue.interleaved;\n\n  if (interleaved === null) {\n    // This is the first update. Create a circular list.\n    update.next = update; // At the end of the current render, this queue's interleaved updates will\n    // be transferred to the pending queue.\n\n    pushConcurrentUpdateQueue(queue);\n  } else {\n    update.next = interleaved.next;\n    interleaved.next = update;\n  }\n\n  queue.interleaved = update;\n  return markUpdateLaneFromFiberToRoot(fiber, lane);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n  return markUpdateLaneFromFiberToRoot(fiber, lane);\n} // Calling this function outside this module should only be done for backwards\n// compatibility and should always be accompanied by a warning.\n\nvar unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot;\n\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, lane) {\n  // Update the source fiber's lanes\n  sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);\n  var alternate = sourceFiber.alternate;\n\n  if (alternate !== null) {\n    alternate.lanes = mergeLanes(alternate.lanes, lane);\n  }\n\n  {\n    if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {\n      warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);\n    }\n  } // Walk the parent path to the root and update the child lanes.\n\n\n  var node = sourceFiber;\n  var parent = sourceFiber.return;\n\n  while (parent !== null) {\n    parent.childLanes = mergeLanes(parent.childLanes, lane);\n    alternate = parent.alternate;\n\n    if (alternate !== null) {\n      alternate.childLanes = mergeLanes(alternate.childLanes, lane);\n    } else {\n      {\n        if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {\n          warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);\n        }\n      }\n    }\n\n    node = parent;\n    parent = parent.return;\n  }\n\n  if (node.tag === HostRoot) {\n    var root = node.stateNode;\n    return root;\n  } else {\n    return null;\n  }\n}\n\nvar UpdateState = 0;\nvar ReplaceState = 1;\nvar ForceUpdate = 2;\nvar CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.\n// It should only be read right after calling `processUpdateQueue`, via\n// `checkHasForceUpdateAfterProcessing`.\n\nvar hasForceUpdate = false;\nvar didWarnUpdateInsideUpdate;\nvar currentlyProcessingQueue;\n\n{\n  didWarnUpdateInsideUpdate = false;\n  currentlyProcessingQueue = null;\n}\n\nfunction initializeUpdateQueue(fiber) {\n  var queue = {\n    baseState: fiber.memoizedState,\n    firstBaseUpdate: null,\n    lastBaseUpdate: null,\n    shared: {\n      pending: null,\n      interleaved: null,\n      lanes: NoLanes\n    },\n    effects: null\n  };\n  fiber.updateQueue = queue;\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n  // Clone the update queue from current. Unless it's already a clone.\n  var queue = workInProgress.updateQueue;\n  var currentQueue = current.updateQueue;\n\n  if (queue === currentQueue) {\n    var clone = {\n      baseState: currentQueue.baseState,\n      firstBaseUpdate: currentQueue.firstBaseUpdate,\n      lastBaseUpdate: currentQueue.lastBaseUpdate,\n      shared: currentQueue.shared,\n      effects: currentQueue.effects\n    };\n    workInProgress.updateQueue = clone;\n  }\n}\nfunction createUpdate(eventTime, lane) {\n  var update = {\n    eventTime: eventTime,\n    lane: lane,\n    tag: UpdateState,\n    payload: null,\n    callback: null,\n    next: null\n  };\n  return update;\n}\nfunction enqueueUpdate(fiber, update, lane) {\n  var updateQueue = fiber.updateQueue;\n\n  if (updateQueue === null) {\n    // Only occurs if the fiber has been unmounted.\n    return null;\n  }\n\n  var sharedQueue = updateQueue.shared;\n\n  {\n    if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {\n      error('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.');\n\n      didWarnUpdateInsideUpdate = true;\n    }\n  }\n\n  if (isUnsafeClassRenderPhaseUpdate()) {\n    // This is an unsafe render phase update. Add directly to the update\n    // queue so we can process it immediately during the current render.\n    var pending = sharedQueue.pending;\n\n    if (pending === null) {\n      // This is the first update. Create a circular list.\n      update.next = update;\n    } else {\n      update.next = pending.next;\n      pending.next = update;\n    }\n\n    sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering\n    // this fiber. This is for backwards compatibility in the case where you\n    // update a different component during render phase than the one that is\n    // currently renderings (a pattern that is accompanied by a warning).\n\n    return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane);\n  } else {\n    return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane);\n  }\n}\nfunction entangleTransitions(root, fiber, lane) {\n  var updateQueue = fiber.updateQueue;\n\n  if (updateQueue === null) {\n    // Only occurs if the fiber has been unmounted.\n    return;\n  }\n\n  var sharedQueue = updateQueue.shared;\n\n  if (isTransitionLane(lane)) {\n    var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must\n    // have finished. We can remove them from the shared queue, which represents\n    // a superset of the actually pending lanes. In some cases we may entangle\n    // more than we need to, but that's OK. In fact it's worse if we *don't*\n    // entangle when we should.\n\n    queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.\n\n    var newQueueLanes = mergeLanes(queueLanes, lane);\n    sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if\n    // the lane finished since the last time we entangled it. So we need to\n    // entangle it again, just to be sure.\n\n    markRootEntangled(root, newQueueLanes);\n  }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n  // Captured updates are updates that are thrown by a child during the render\n  // phase. They should be discarded if the render is aborted. Therefore,\n  // we should only put them on the work-in-progress queue, not the current one.\n  var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.\n\n  var current = workInProgress.alternate;\n\n  if (current !== null) {\n    var currentQueue = current.updateQueue;\n\n    if (queue === currentQueue) {\n      // The work-in-progress queue is the same as current. This happens when\n      // we bail out on a parent fiber that then captures an error thrown by\n      // a child. Since we want to append the update only to the work-in\n      // -progress queue, we need to clone the updates. We usually clone during\n      // processUpdateQueue, but that didn't happen in this case because we\n      // skipped over the parent when we bailed out.\n      var newFirst = null;\n      var newLast = null;\n      var firstBaseUpdate = queue.firstBaseUpdate;\n\n      if (firstBaseUpdate !== null) {\n        // Loop through the updates and clone them.\n        var update = firstBaseUpdate;\n\n        do {\n          var clone = {\n            eventTime: update.eventTime,\n            lane: update.lane,\n            tag: update.tag,\n            payload: update.payload,\n            callback: update.callback,\n            next: null\n          };\n\n          if (newLast === null) {\n            newFirst = newLast = clone;\n          } else {\n            newLast.next = clone;\n            newLast = clone;\n          }\n\n          update = update.next;\n        } while (update !== null); // Append the captured update the end of the cloned list.\n\n\n        if (newLast === null) {\n          newFirst = newLast = capturedUpdate;\n        } else {\n          newLast.next = capturedUpdate;\n          newLast = capturedUpdate;\n        }\n      } else {\n        // There are no base updates.\n        newFirst = newLast = capturedUpdate;\n      }\n\n      queue = {\n        baseState: currentQueue.baseState,\n        firstBaseUpdate: newFirst,\n        lastBaseUpdate: newLast,\n        shared: currentQueue.shared,\n        effects: currentQueue.effects\n      };\n      workInProgress.updateQueue = queue;\n      return;\n    }\n  } // Append the update to the end of the list.\n\n\n  var lastBaseUpdate = queue.lastBaseUpdate;\n\n  if (lastBaseUpdate === null) {\n    queue.firstBaseUpdate = capturedUpdate;\n  } else {\n    lastBaseUpdate.next = capturedUpdate;\n  }\n\n  queue.lastBaseUpdate = capturedUpdate;\n}\n\nfunction getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {\n  switch (update.tag) {\n    case ReplaceState:\n      {\n        var payload = update.payload;\n\n        if (typeof payload === 'function') {\n          // Updater function\n          {\n            enterDisallowedContextReadInDEV();\n          }\n\n          var nextState = payload.call(instance, prevState, nextProps);\n\n          {\n            if ( workInProgress.mode & StrictLegacyMode) {\n              setIsStrictModeForDevtools(true);\n\n              try {\n                payload.call(instance, prevState, nextProps);\n              } finally {\n                setIsStrictModeForDevtools(false);\n              }\n            }\n\n            exitDisallowedContextReadInDEV();\n          }\n\n          return nextState;\n        } // State object\n\n\n        return payload;\n      }\n\n    case CaptureUpdate:\n      {\n        workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;\n      }\n    // Intentional fallthrough\n\n    case UpdateState:\n      {\n        var _payload = update.payload;\n        var partialState;\n\n        if (typeof _payload === 'function') {\n          // Updater function\n          {\n            enterDisallowedContextReadInDEV();\n          }\n\n          partialState = _payload.call(instance, prevState, nextProps);\n\n          {\n            if ( workInProgress.mode & StrictLegacyMode) {\n              setIsStrictModeForDevtools(true);\n\n              try {\n                _payload.call(instance, prevState, nextProps);\n              } finally {\n                setIsStrictModeForDevtools(false);\n              }\n            }\n\n            exitDisallowedContextReadInDEV();\n          }\n        } else {\n          // Partial state object\n          partialState = _payload;\n        }\n\n        if (partialState === null || partialState === undefined) {\n          // Null and undefined are treated as no-ops.\n          return prevState;\n        } // Merge the partial state and the previous state.\n\n\n        return assign({}, prevState, partialState);\n      }\n\n    case ForceUpdate:\n      {\n        hasForceUpdate = true;\n        return prevState;\n      }\n  }\n\n  return prevState;\n}\n\nfunction processUpdateQueue(workInProgress, props, instance, renderLanes) {\n  // This is always non-null on a ClassComponent or HostRoot\n  var queue = workInProgress.updateQueue;\n  hasForceUpdate = false;\n\n  {\n    currentlyProcessingQueue = queue.shared;\n  }\n\n  var firstBaseUpdate = queue.firstBaseUpdate;\n  var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.\n\n  var pendingQueue = queue.shared.pending;\n\n  if (pendingQueue !== null) {\n    queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first\n    // and last so that it's non-circular.\n\n    var lastPendingUpdate = pendingQueue;\n    var firstPendingUpdate = lastPendingUpdate.next;\n    lastPendingUpdate.next = null; // Append pending updates to base queue\n\n    if (lastBaseUpdate === null) {\n      firstBaseUpdate = firstPendingUpdate;\n    } else {\n      lastBaseUpdate.next = firstPendingUpdate;\n    }\n\n    lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then\n    // we need to transfer the updates to that queue, too. Because the base\n    // queue is a singly-linked list with no cycles, we can append to both\n    // lists and take advantage of structural sharing.\n    // TODO: Pass `current` as argument\n\n    var current = workInProgress.alternate;\n\n    if (current !== null) {\n      // This is always non-null on a ClassComponent or HostRoot\n      var currentQueue = current.updateQueue;\n      var currentLastBaseUpdate = currentQueue.lastBaseUpdate;\n\n      if (currentLastBaseUpdate !== lastBaseUpdate) {\n        if (currentLastBaseUpdate === null) {\n          currentQueue.firstBaseUpdate = firstPendingUpdate;\n        } else {\n          currentLastBaseUpdate.next = firstPendingUpdate;\n        }\n\n        currentQueue.lastBaseUpdate = lastPendingUpdate;\n      }\n    }\n  } // These values may change as we process the queue.\n\n\n  if (firstBaseUpdate !== null) {\n    // Iterate through the list of updates to compute the result.\n    var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes\n    // from the original lanes.\n\n    var newLanes = NoLanes;\n    var newBaseState = null;\n    var newFirstBaseUpdate = null;\n    var newLastBaseUpdate = null;\n    var update = firstBaseUpdate;\n\n    do {\n      var updateLane = update.lane;\n      var updateEventTime = update.eventTime;\n\n      if (!isSubsetOfLanes(renderLanes, updateLane)) {\n        // Priority is insufficient. Skip this update. If this is the first\n        // skipped update, the previous update/state is the new base\n        // update/state.\n        var clone = {\n          eventTime: updateEventTime,\n          lane: updateLane,\n          tag: update.tag,\n          payload: update.payload,\n          callback: update.callback,\n          next: null\n        };\n\n        if (newLastBaseUpdate === null) {\n          newFirstBaseUpdate = newLastBaseUpdate = clone;\n          newBaseState = newState;\n        } else {\n          newLastBaseUpdate = newLastBaseUpdate.next = clone;\n        } // Update the remaining priority in the queue.\n\n\n        newLanes = mergeLanes(newLanes, updateLane);\n      } else {\n        // This update does have sufficient priority.\n        if (newLastBaseUpdate !== null) {\n          var _clone = {\n            eventTime: updateEventTime,\n            // This update is going to be committed so we never want uncommit\n            // it. Using NoLane works because 0 is a subset of all bitmasks, so\n            // this will never be skipped by the check above.\n            lane: NoLane,\n            tag: update.tag,\n            payload: update.payload,\n            callback: update.callback,\n            next: null\n          };\n          newLastBaseUpdate = newLastBaseUpdate.next = _clone;\n        } // Process this update.\n\n\n        newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);\n        var callback = update.callback;\n\n        if (callback !== null && // If the update was already committed, we should not queue its\n        // callback again.\n        update.lane !== NoLane) {\n          workInProgress.flags |= Callback;\n          var effects = queue.effects;\n\n          if (effects === null) {\n            queue.effects = [update];\n          } else {\n            effects.push(update);\n          }\n        }\n      }\n\n      update = update.next;\n\n      if (update === null) {\n        pendingQueue = queue.shared.pending;\n\n        if (pendingQueue === null) {\n          break;\n        } else {\n          // An update was scheduled from inside a reducer. Add the new\n          // pending updates to the end of the list and keep processing.\n          var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we\n          // unravel them when transferring them to the base queue.\n\n          var _firstPendingUpdate = _lastPendingUpdate.next;\n          _lastPendingUpdate.next = null;\n          update = _firstPendingUpdate;\n          queue.lastBaseUpdate = _lastPendingUpdate;\n          queue.shared.pending = null;\n        }\n      }\n    } while (true);\n\n    if (newLastBaseUpdate === null) {\n      newBaseState = newState;\n    }\n\n    queue.baseState = newBaseState;\n    queue.firstBaseUpdate = newFirstBaseUpdate;\n    queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to\n    // process them during this render, but we do need to track which lanes\n    // are remaining.\n\n    var lastInterleaved = queue.shared.interleaved;\n\n    if (lastInterleaved !== null) {\n      var interleaved = lastInterleaved;\n\n      do {\n        newLanes = mergeLanes(newLanes, interleaved.lane);\n        interleaved = interleaved.next;\n      } while (interleaved !== lastInterleaved);\n    } else if (firstBaseUpdate === null) {\n      // `queue.lanes` is used for entangling transitions. We can set it back to\n      // zero once the queue is empty.\n      queue.shared.lanes = NoLanes;\n    } // Set the remaining expiration time to be whatever is remaining in the queue.\n    // This should be fine because the only two other things that contribute to\n    // expiration time are props and context. We're already in the middle of the\n    // begin phase by the time we start processing the queue, so we've already\n    // dealt with the props. Context in components that specify\n    // shouldComponentUpdate is tricky; but we'll have to account for\n    // that regardless.\n\n\n    markSkippedUpdateLanes(newLanes);\n    workInProgress.lanes = newLanes;\n    workInProgress.memoizedState = newState;\n  }\n\n  {\n    currentlyProcessingQueue = null;\n  }\n}\n\nfunction callCallback(callback, context) {\n  if (typeof callback !== 'function') {\n    throw new Error('Invalid argument passed as callback. Expected a function. Instead ' + (\"received: \" + callback));\n  }\n\n  callback.call(context);\n}\n\nfunction resetHasForceUpdateBeforeProcessing() {\n  hasForceUpdate = false;\n}\nfunction checkHasForceUpdateAfterProcessing() {\n  return hasForceUpdate;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n  // Commit the effects\n  var effects = finishedQueue.effects;\n  finishedQueue.effects = null;\n\n  if (effects !== null) {\n    for (var i = 0; i < effects.length; i++) {\n      var effect = effects[i];\n      var callback = effect.callback;\n\n      if (callback !== null) {\n        effect.callback = null;\n        callCallback(callback, instance);\n      }\n    }\n  }\n}\n\nvar NO_CONTEXT = {};\nvar contextStackCursor$1 = createCursor(NO_CONTEXT);\nvar contextFiberStackCursor = createCursor(NO_CONTEXT);\nvar rootInstanceStackCursor = createCursor(NO_CONTEXT);\n\nfunction requiredContext(c) {\n  if (c === NO_CONTEXT) {\n    throw new Error('Expected host context to exist. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n  }\n\n  return c;\n}\n\nfunction getRootHostContainer() {\n  var rootInstance = requiredContext(rootInstanceStackCursor.current);\n  return rootInstance;\n}\n\nfunction pushHostContainer(fiber, nextRootInstance) {\n  // Push current root instance onto the stack;\n  // This allows us to reset root when portals are popped.\n  push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.\n  // This enables us to pop only Fibers that provide unique contexts.\n\n  push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.\n  // However, we can't just call getRootHostContext() and push it because\n  // we'd have a different number of entries on the stack depending on\n  // whether getRootHostContext() throws somewhere in renderer code or not.\n  // So we push an empty value first. This lets us safely unwind on errors.\n\n  push(contextStackCursor$1, NO_CONTEXT, fiber);\n  var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.\n\n  pop(contextStackCursor$1, fiber);\n  push(contextStackCursor$1, nextRootContext, fiber);\n}\n\nfunction popHostContainer(fiber) {\n  pop(contextStackCursor$1, fiber);\n  pop(contextFiberStackCursor, fiber);\n  pop(rootInstanceStackCursor, fiber);\n}\n\nfunction getHostContext() {\n  var context = requiredContext(contextStackCursor$1.current);\n  return context;\n}\n\nfunction pushHostContext(fiber) {\n  var rootInstance = requiredContext(rootInstanceStackCursor.current);\n  var context = requiredContext(contextStackCursor$1.current);\n  var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.\n\n  if (context === nextContext) {\n    return;\n  } // Track the context and the Fiber that provided it.\n  // This enables us to pop only Fibers that provide unique contexts.\n\n\n  push(contextFiberStackCursor, fiber, fiber);\n  push(contextStackCursor$1, nextContext, fiber);\n}\n\nfunction popHostContext(fiber) {\n  // Do not pop unless this Fiber provided the current context.\n  // pushHostContext() only pushes Fibers that provide unique contexts.\n  if (contextFiberStackCursor.current !== fiber) {\n    return;\n  }\n\n  pop(contextStackCursor$1, fiber);\n  pop(contextFiberStackCursor, fiber);\n}\n\nvar DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is\n// inherited deeply down the subtree. The upper bits only affect\n// this immediate suspense boundary and gets reset each new\n// boundary or suspense list.\n\nvar SubtreeSuspenseContextMask = 1; // Subtree Flags:\n// InvisibleParentSuspenseContext indicates that one of our parent Suspense\n// boundaries is not currently showing visible main content.\n// Either because it is already showing a fallback or is not mounted at all.\n// We can use this to determine if it is desirable to trigger a fallback at\n// the parent. If not, then we might need to trigger undesirable boundaries\n// and/or suspend the commit to avoid hiding the parent content.\n\nvar InvisibleParentSuspenseContext = 1; // Shallow Flags:\n// ForceSuspenseFallback can be used by SuspenseList to force newly added\n// items into their fallback state during one of the render passes.\n\nvar ForceSuspenseFallback = 2;\nvar suspenseStackCursor = createCursor(DefaultSuspenseContext);\nfunction hasSuspenseContext(parentContext, flag) {\n  return (parentContext & flag) !== 0;\n}\nfunction setDefaultShallowSuspenseContext(parentContext) {\n  return parentContext & SubtreeSuspenseContextMask;\n}\nfunction setShallowSuspenseContext(parentContext, shallowContext) {\n  return parentContext & SubtreeSuspenseContextMask | shallowContext;\n}\nfunction addSubtreeSuspenseContext(parentContext, subtreeContext) {\n  return parentContext | subtreeContext;\n}\nfunction pushSuspenseContext(fiber, newContext) {\n  push(suspenseStackCursor, newContext, fiber);\n}\nfunction popSuspenseContext(fiber) {\n  pop(suspenseStackCursor, fiber);\n}\n\nfunction shouldCaptureSuspense(workInProgress, hasInvisibleParent) {\n  // If it was the primary children that just suspended, capture and render the\n  // fallback. Otherwise, don't capture and bubble to the next boundary.\n  var nextState = workInProgress.memoizedState;\n\n  if (nextState !== null) {\n    if (nextState.dehydrated !== null) {\n      // A dehydrated boundary always captures.\n      return true;\n    }\n\n    return false;\n  }\n\n  var props = workInProgress.memoizedProps; // Regular boundaries always capture.\n\n  {\n    return true;\n  } // If it's a boundary we should avoid, then we prefer to bubble up to the\n}\nfunction findFirstSuspended(row) {\n  var node = row;\n\n  while (node !== null) {\n    if (node.tag === SuspenseComponent) {\n      var state = node.memoizedState;\n\n      if (state !== null) {\n        var dehydrated = state.dehydrated;\n\n        if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {\n          return node;\n        }\n      }\n    } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't\n    // keep track of whether it suspended or not.\n    node.memoizedProps.revealOrder !== undefined) {\n      var didSuspend = (node.flags & DidCapture) !== NoFlags;\n\n      if (didSuspend) {\n        return node;\n      }\n    } else if (node.child !== null) {\n      node.child.return = node;\n      node = node.child;\n      continue;\n    }\n\n    if (node === row) {\n      return null;\n    }\n\n    while (node.sibling === null) {\n      if (node.return === null || node.return === row) {\n        return null;\n      }\n\n      node = node.return;\n    }\n\n    node.sibling.return = node.return;\n    node = node.sibling;\n  }\n\n  return null;\n}\n\nvar NoFlags$1 =\n/*   */\n0; // Represents whether effect should fire.\n\nvar HasEffect =\n/* */\n1; // Represents the phase in which the effect (not the clean-up) fires.\n\nvar Insertion =\n/*  */\n2;\nvar Layout =\n/*    */\n4;\nvar Passive$1 =\n/*   */\n8;\n\n// and should be reset before starting a new render.\n// This tracks which mutable sources need to be reset after a render.\n\nvar workInProgressSources = [];\nfunction resetWorkInProgressVersions() {\n  for (var i = 0; i < workInProgressSources.length; i++) {\n    var mutableSource = workInProgressSources[i];\n\n    {\n      mutableSource._workInProgressVersionPrimary = null;\n    }\n  }\n\n  workInProgressSources.length = 0;\n}\n// This ensures that the version used for server rendering matches the one\n// that is eventually read during hydration.\n// If they don't match there's a potential tear and a full deopt render is required.\n\nfunction registerMutableSourceForHydration(root, mutableSource) {\n  var getVersion = mutableSource._getVersion;\n  var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.\n  // Retaining it forever may interfere with GC.\n\n  if (root.mutableSourceEagerHydrationData == null) {\n    root.mutableSourceEagerHydrationData = [mutableSource, version];\n  } else {\n    root.mutableSourceEagerHydrationData.push(mutableSource, version);\n  }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,\n    ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;\nvar didWarnAboutMismatchedHooksForComponent;\nvar didWarnUncachedGetSnapshot;\n\n{\n  didWarnAboutMismatchedHooksForComponent = new Set();\n}\n\n// These are set right before calling the component.\nvar renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from\n// the work-in-progress hook.\n\nvar currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The\n// current hook list is the list that belongs to the current fiber. The\n// work-in-progress hook list is a new list that will be added to the\n// work-in-progress fiber.\n\nvar currentHook = null;\nvar workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This\n// does not get reset if we do another render pass; only when we're completely\n// finished evaluating this component. This is an optimization so we know\n// whether we need to clear render phase updates after a throw.\n\nvar didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This\n// gets reset after each attempt.\n// TODO: Maybe there's some way to consolidate this with\n// `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.\n\nvar didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component.\n\nvar localIdCounter = 0; // Used for ids that are generated completely client-side (i.e. not during\n// hydration). This counter is global, so client ids are not stable across\n// render attempts.\n\nvar globalClientIdCounter = 0;\nvar RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook\n\nvar currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.\n// The list stores the order of hooks used during the initial render (mount).\n// Subsequent renders (updates) reference this list.\n\nvar hookTypesDev = null;\nvar hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore\n// the dependencies for Hooks that need them (e.g. useEffect or useMemo).\n// When true, such Hooks will always be \"remounted\". Only used during hot reload.\n\nvar ignorePreviousDependencies = false;\n\nfunction mountHookTypesDev() {\n  {\n    var hookName = currentHookNameInDev;\n\n    if (hookTypesDev === null) {\n      hookTypesDev = [hookName];\n    } else {\n      hookTypesDev.push(hookName);\n    }\n  }\n}\n\nfunction updateHookTypesDev() {\n  {\n    var hookName = currentHookNameInDev;\n\n    if (hookTypesDev !== null) {\n      hookTypesUpdateIndexDev++;\n\n      if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {\n        warnOnHookMismatchInDev(hookName);\n      }\n    }\n  }\n}\n\nfunction checkDepsAreArrayDev(deps) {\n  {\n    if (deps !== undefined && deps !== null && !isArray(deps)) {\n      // Verify deps, but only on mount to avoid extra checks.\n      // It's unlikely their type would change as usually you define them inline.\n      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);\n    }\n  }\n}\n\nfunction warnOnHookMismatchInDev(currentHookName) {\n  {\n    var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1);\n\n    if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {\n      didWarnAboutMismatchedHooksForComponent.add(componentName);\n\n      if (hookTypesDev !== null) {\n        var table = '';\n        var secondColumnStart = 30;\n\n        for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {\n          var oldHookName = hookTypesDev[i];\n          var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;\n          var row = i + 1 + \". \" + oldHookName; // Extra space so second column lines up\n          // lol @ IE not supporting String#repeat\n\n          while (row.length < secondColumnStart) {\n            row += ' ';\n          }\n\n          row += newHookName + '\\n';\n          table += row;\n        }\n\n        error('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\\n\\n' + '   Previous render            Next render\\n' + '   ------------------------------------------------------\\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', componentName, table);\n      }\n    }\n  }\n}\n\nfunction throwInvalidHookError() {\n  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:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n  {\n    if (ignorePreviousDependencies) {\n      // Only true when this component is being hot reloaded.\n      return false;\n    }\n  }\n\n  if (prevDeps === null) {\n    {\n      error('%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.', currentHookNameInDev);\n    }\n\n    return false;\n  }\n\n  {\n    // Don't bother comparing lengths in prod because these arrays should be\n    // passed inline.\n    if (nextDeps.length !== prevDeps.length) {\n      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, \"[\" + prevDeps.join(', ') + \"]\", \"[\" + nextDeps.join(', ') + \"]\");\n    }\n  }\n\n  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {\n    if (objectIs(nextDeps[i], prevDeps[i])) {\n      continue;\n    }\n\n    return false;\n  }\n\n  return true;\n}\n\nfunction renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {\n  renderLanes = nextRenderLanes;\n  currentlyRenderingFiber$1 = workInProgress;\n\n  {\n    hookTypesDev = current !== null ? current._debugHookTypes : null;\n    hookTypesUpdateIndexDev = -1; // Used for hot reloading:\n\n    ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;\n  }\n\n  workInProgress.memoizedState = null;\n  workInProgress.updateQueue = null;\n  workInProgress.lanes = NoLanes; // The following should have already been reset\n  // currentHook = null;\n  // workInProgressHook = null;\n  // didScheduleRenderPhaseUpdate = false;\n  // localIdCounter = 0;\n  // TODO Warn if no hooks are used at all during mount, then some are used during update.\n  // Currently we will identify the update render as a mount because memoizedState === null.\n  // This is tricky because it's valid for certain types of components (e.g. React.lazy)\n  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.\n  // Non-stateful hooks (e.g. context) don't get added to memoizedState,\n  // so memoizedState would be null during updates and mounts.\n\n  {\n    if (current !== null && current.memoizedState !== null) {\n      ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;\n    } else if (hookTypesDev !== null) {\n      // This dispatcher handles an edge case where a component is updating,\n      // but no stateful hooks have been used.\n      // We want to match the production code behavior (which will use HooksDispatcherOnMount),\n      // but with the extra DEV validation to ensure hooks ordering hasn't changed.\n      // This dispatcher does that.\n      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;\n    } else {\n      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;\n    }\n  }\n\n  var children = Component(props, secondArg); // Check if there was a render phase update\n\n  if (didScheduleRenderPhaseUpdateDuringThisPass) {\n    // Keep rendering in a loop for as long as render phase updates continue to\n    // be scheduled. Use a counter to prevent infinite loops.\n    var numberOfReRenders = 0;\n\n    do {\n      didScheduleRenderPhaseUpdateDuringThisPass = false;\n      localIdCounter = 0;\n\n      if (numberOfReRenders >= RE_RENDER_LIMIT) {\n        throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');\n      }\n\n      numberOfReRenders += 1;\n\n      {\n        // Even when hot reloading, allow dependencies to stabilize\n        // after first render to prevent infinite render phase updates.\n        ignorePreviousDependencies = false;\n      } // Start over from the beginning of the list\n\n\n      currentHook = null;\n      workInProgressHook = null;\n      workInProgress.updateQueue = null;\n\n      {\n        // Also validate hook order for cascading updates.\n        hookTypesUpdateIndexDev = -1;\n      }\n\n      ReactCurrentDispatcher$1.current =  HooksDispatcherOnRerenderInDEV ;\n      children = Component(props, secondArg);\n    } while (didScheduleRenderPhaseUpdateDuringThisPass);\n  } // We can assume the previous dispatcher is always this one, since we set it\n  // at the beginning of the render phase and there's no re-entrance.\n\n\n  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n  {\n    workInProgress._debugHookTypes = hookTypesDev;\n  } // This check uses currentHook so that it works the same in DEV and prod bundles.\n  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.\n\n\n  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;\n  renderLanes = NoLanes;\n  currentlyRenderingFiber$1 = null;\n  currentHook = null;\n  workInProgressHook = null;\n\n  {\n    currentHookNameInDev = null;\n    hookTypesDev = null;\n    hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last\n    // render. If this fires, it suggests that we incorrectly reset the static\n    // flags in some other part of the codebase. This has happened before, for\n    // example, in the SuspenseList implementation.\n\n    if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && // Disable this warning in legacy mode, because legacy Suspense is weird\n    // and creates false positives. To make this work in legacy mode, we'd\n    // need to mark fibers that commit in an incomplete state, somehow. For\n    // now I'll disable the warning that most of the bugs that would trigger\n    // it are either exclusive to concurrent mode or exist in both.\n    (current.mode & ConcurrentMode) !== NoMode) {\n      error('Internal React error: Expected static flag was missing. Please ' + 'notify the React team.');\n    }\n  }\n\n  didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook\n  // localIdCounter = 0;\n\n  if (didRenderTooFewHooks) {\n    throw new Error('Rendered fewer hooks than expected. This may be caused by an accidental ' + 'early return statement.');\n  }\n\n  return children;\n}\nfunction checkDidRenderIdHook() {\n  // This should be called immediately after every renderWithHooks call.\n  // Conceptually, it's part of the return value of renderWithHooks; it's only a\n  // separate function to avoid using an array tuple.\n  var didRenderIdHook = localIdCounter !== 0;\n  localIdCounter = 0;\n  return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n  workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the\n  // complete phase (bubbleProperties).\n\n  if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n    workInProgress.flags &= ~(MountPassiveDev | MountLayoutDev | Passive | Update);\n  } else {\n    workInProgress.flags &= ~(Passive | Update);\n  }\n\n  current.lanes = removeLanes(current.lanes, lanes);\n}\nfunction resetHooksAfterThrow() {\n  // We can assume the previous dispatcher is always this one, since we set it\n  // at the beginning of the render phase and there's no re-entrance.\n  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;\n\n  if (didScheduleRenderPhaseUpdate) {\n    // There were render phase updates. These are only valid for this render\n    // phase, which we are now aborting. Remove the updates from the queues so\n    // they do not persist to the next render. Do not remove updates from hooks\n    // that weren't processed.\n    //\n    // Only reset the updates from the queue if it has a clone. If it does\n    // not have a clone, that means it wasn't processed, and the updates were\n    // scheduled before we entered the render phase.\n    var hook = currentlyRenderingFiber$1.memoizedState;\n\n    while (hook !== null) {\n      var queue = hook.queue;\n\n      if (queue !== null) {\n        queue.pending = null;\n      }\n\n      hook = hook.next;\n    }\n\n    didScheduleRenderPhaseUpdate = false;\n  }\n\n  renderLanes = NoLanes;\n  currentlyRenderingFiber$1 = null;\n  currentHook = null;\n  workInProgressHook = null;\n\n  {\n    hookTypesDev = null;\n    hookTypesUpdateIndexDev = -1;\n    currentHookNameInDev = null;\n    isUpdatingOpaqueValueInRenderPhase = false;\n  }\n\n  didScheduleRenderPhaseUpdateDuringThisPass = false;\n  localIdCounter = 0;\n}\n\nfunction mountWorkInProgressHook() {\n  var hook = {\n    memoizedState: null,\n    baseState: null,\n    baseQueue: null,\n    queue: null,\n    next: null\n  };\n\n  if (workInProgressHook === null) {\n    // This is the first hook in the list\n    currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;\n  } else {\n    // Append to the end of the list\n    workInProgressHook = workInProgressHook.next = hook;\n  }\n\n  return workInProgressHook;\n}\n\nfunction updateWorkInProgressHook() {\n  // This function is used both for updates and for re-renders triggered by a\n  // render phase update. It assumes there is either a current hook we can\n  // clone, or a work-in-progress hook from a previous render pass that we can\n  // use as a base. When we reach the end of the base list, we must switch to\n  // the dispatcher used for mounts.\n  var nextCurrentHook;\n\n  if (currentHook === null) {\n    var current = currentlyRenderingFiber$1.alternate;\n\n    if (current !== null) {\n      nextCurrentHook = current.memoizedState;\n    } else {\n      nextCurrentHook = null;\n    }\n  } else {\n    nextCurrentHook = currentHook.next;\n  }\n\n  var nextWorkInProgressHook;\n\n  if (workInProgressHook === null) {\n    nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;\n  } else {\n    nextWorkInProgressHook = workInProgressHook.next;\n  }\n\n  if (nextWorkInProgressHook !== null) {\n    // There's already a work-in-progress. Reuse it.\n    workInProgressHook = nextWorkInProgressHook;\n    nextWorkInProgressHook = workInProgressHook.next;\n    currentHook = nextCurrentHook;\n  } else {\n    // Clone from the current hook.\n    if (nextCurrentHook === null) {\n      throw new Error('Rendered more hooks than during the previous render.');\n    }\n\n    currentHook = nextCurrentHook;\n    var newHook = {\n      memoizedState: currentHook.memoizedState,\n      baseState: currentHook.baseState,\n      baseQueue: currentHook.baseQueue,\n      queue: currentHook.queue,\n      next: null\n    };\n\n    if (workInProgressHook === null) {\n      // This is the first hook in the list.\n      currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;\n    } else {\n      // Append to the end of the list.\n      workInProgressHook = workInProgressHook.next = newHook;\n    }\n  }\n\n  return workInProgressHook;\n}\n\nfunction createFunctionComponentUpdateQueue() {\n  return {\n    lastEffect: null,\n    stores: null\n  };\n}\n\nfunction basicStateReducer(state, action) {\n  // $FlowFixMe: Flow doesn't like mixed types\n  return typeof action === 'function' ? action(state) : action;\n}\n\nfunction mountReducer(reducer, initialArg, init) {\n  var hook = mountWorkInProgressHook();\n  var initialState;\n\n  if (init !== undefined) {\n    initialState = init(initialArg);\n  } else {\n    initialState = initialArg;\n  }\n\n  hook.memoizedState = hook.baseState = initialState;\n  var queue = {\n    pending: null,\n    interleaved: null,\n    lanes: NoLanes,\n    dispatch: null,\n    lastRenderedReducer: reducer,\n    lastRenderedState: initialState\n  };\n  hook.queue = queue;\n  var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);\n  return [hook.memoizedState, dispatch];\n}\n\nfunction updateReducer(reducer, initialArg, init) {\n  var hook = updateWorkInProgressHook();\n  var queue = hook.queue;\n\n  if (queue === null) {\n    throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');\n  }\n\n  queue.lastRenderedReducer = reducer;\n  var current = currentHook; // The last rebase update that is NOT part of the base state.\n\n  var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.\n\n  var pendingQueue = queue.pending;\n\n  if (pendingQueue !== null) {\n    // We have new updates that haven't been processed yet.\n    // We'll add them to the base queue.\n    if (baseQueue !== null) {\n      // Merge the pending queue and the base queue.\n      var baseFirst = baseQueue.next;\n      var pendingFirst = pendingQueue.next;\n      baseQueue.next = pendingFirst;\n      pendingQueue.next = baseFirst;\n    }\n\n    {\n      if (current.baseQueue !== baseQueue) {\n        // Internal invariant that should never happen, but feasibly could in\n        // the future if we implement resuming, or some form of that.\n        error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');\n      }\n    }\n\n    current.baseQueue = baseQueue = pendingQueue;\n    queue.pending = null;\n  }\n\n  if (baseQueue !== null) {\n    // We have a queue to process.\n    var first = baseQueue.next;\n    var newState = current.baseState;\n    var newBaseState = null;\n    var newBaseQueueFirst = null;\n    var newBaseQueueLast = null;\n    var update = first;\n\n    do {\n      var updateLane = update.lane;\n\n      if (!isSubsetOfLanes(renderLanes, updateLane)) {\n        // Priority is insufficient. Skip this update. If this is the first\n        // skipped update, the previous update/state is the new base\n        // update/state.\n        var clone = {\n          lane: updateLane,\n          action: update.action,\n          hasEagerState: update.hasEagerState,\n          eagerState: update.eagerState,\n          next: null\n        };\n\n        if (newBaseQueueLast === null) {\n          newBaseQueueFirst = newBaseQueueLast = clone;\n          newBaseState = newState;\n        } else {\n          newBaseQueueLast = newBaseQueueLast.next = clone;\n        } // Update the remaining priority in the queue.\n        // TODO: Don't need to accumulate this. Instead, we can remove\n        // renderLanes from the original lanes.\n\n\n        currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);\n        markSkippedUpdateLanes(updateLane);\n      } else {\n        // This update does have sufficient priority.\n        if (newBaseQueueLast !== null) {\n          var _clone = {\n            // This update is going to be committed so we never want uncommit\n            // it. Using NoLane works because 0 is a subset of all bitmasks, so\n            // this will never be skipped by the check above.\n            lane: NoLane,\n            action: update.action,\n            hasEagerState: update.hasEagerState,\n            eagerState: update.eagerState,\n            next: null\n          };\n          newBaseQueueLast = newBaseQueueLast.next = _clone;\n        } // Process this update.\n\n\n        if (update.hasEagerState) {\n          // If this update is a state update (not a reducer) and was processed eagerly,\n          // we can use the eagerly computed state\n          newState = update.eagerState;\n        } else {\n          var action = update.action;\n          newState = reducer(newState, action);\n        }\n      }\n\n      update = update.next;\n    } while (update !== null && update !== first);\n\n    if (newBaseQueueLast === null) {\n      newBaseState = newState;\n    } else {\n      newBaseQueueLast.next = newBaseQueueFirst;\n    } // Mark that the fiber performed work, but only if the new state is\n    // different from the current state.\n\n\n    if (!objectIs(newState, hook.memoizedState)) {\n      markWorkInProgressReceivedUpdate();\n    }\n\n    hook.memoizedState = newState;\n    hook.baseState = newBaseState;\n    hook.baseQueue = newBaseQueueLast;\n    queue.lastRenderedState = newState;\n  } // Interleaved updates are stored on a separate queue. We aren't going to\n  // process them during this render, but we do need to track which lanes\n  // are remaining.\n\n\n  var lastInterleaved = queue.interleaved;\n\n  if (lastInterleaved !== null) {\n    var interleaved = lastInterleaved;\n\n    do {\n      var interleavedLane = interleaved.lane;\n      currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane);\n      markSkippedUpdateLanes(interleavedLane);\n      interleaved = interleaved.next;\n    } while (interleaved !== lastInterleaved);\n  } else if (baseQueue === null) {\n    // `queue.lanes` is used for entangling transitions. We can set it back to\n    // zero once the queue is empty.\n    queue.lanes = NoLanes;\n  }\n\n  var dispatch = queue.dispatch;\n  return [hook.memoizedState, dispatch];\n}\n\nfunction rerenderReducer(reducer, initialArg, init) {\n  var hook = updateWorkInProgressHook();\n  var queue = hook.queue;\n\n  if (queue === null) {\n    throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');\n  }\n\n  queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous\n  // work-in-progress hook.\n\n  var dispatch = queue.dispatch;\n  var lastRenderPhaseUpdate = queue.pending;\n  var newState = hook.memoizedState;\n\n  if (lastRenderPhaseUpdate !== null) {\n    // The queue doesn't persist past this render pass.\n    queue.pending = null;\n    var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;\n    var update = firstRenderPhaseUpdate;\n\n    do {\n      // Process this render phase update. We don't have to check the\n      // priority because it will always be the same as the current\n      // render's.\n      var action = update.action;\n      newState = reducer(newState, action);\n      update = update.next;\n    } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is\n    // different from the current state.\n\n\n    if (!objectIs(newState, hook.memoizedState)) {\n      markWorkInProgressReceivedUpdate();\n    }\n\n    hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to\n    // the base state unless the queue is empty.\n    // TODO: Not sure if this is the desired semantics, but it's what we\n    // do for gDSFP. I can't remember why.\n\n    if (hook.baseQueue === null) {\n      hook.baseState = newState;\n    }\n\n    queue.lastRenderedState = newState;\n  }\n\n  return [newState, dispatch];\n}\n\nfunction mountMutableSource(source, getSnapshot, subscribe) {\n  {\n    return undefined;\n  }\n}\n\nfunction updateMutableSource(source, getSnapshot, subscribe) {\n  {\n    return undefined;\n  }\n}\n\nfunction mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  var fiber = currentlyRenderingFiber$1;\n  var hook = mountWorkInProgressHook();\n  var nextSnapshot;\n  var isHydrating = getIsHydrating();\n\n  if (isHydrating) {\n    if (getServerSnapshot === undefined) {\n      throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');\n    }\n\n    nextSnapshot = getServerSnapshot();\n\n    {\n      if (!didWarnUncachedGetSnapshot) {\n        if (nextSnapshot !== getServerSnapshot()) {\n          error('The result of getServerSnapshot should be cached to avoid an infinite loop');\n\n          didWarnUncachedGetSnapshot = true;\n        }\n      }\n    }\n  } else {\n    nextSnapshot = getSnapshot();\n\n    {\n      if (!didWarnUncachedGetSnapshot) {\n        var cachedSnapshot = getSnapshot();\n\n        if (!objectIs(nextSnapshot, cachedSnapshot)) {\n          error('The result of getSnapshot should be cached to avoid an infinite loop');\n\n          didWarnUncachedGetSnapshot = true;\n        }\n      }\n    } // Unless we're rendering a blocking lane, schedule a consistency check.\n    // Right before committing, we will walk the tree and check if any of the\n    // stores were mutated.\n    //\n    // We won't do this if we're hydrating server-rendered content, because if\n    // the content is stale, it's already visible anyway. Instead we'll patch\n    // it up in a passive effect.\n\n\n    var root = getWorkInProgressRoot();\n\n    if (root === null) {\n      throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');\n    }\n\n    if (!includesBlockingLane(root, renderLanes)) {\n      pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);\n    }\n  } // Read the current snapshot from the store on every render. This breaks the\n  // normal rules of React, and only works because store updates are\n  // always synchronous.\n\n\n  hook.memoizedState = nextSnapshot;\n  var inst = {\n    value: nextSnapshot,\n    getSnapshot: getSnapshot\n  };\n  hook.queue = inst; // Schedule an effect to subscribe to the store.\n\n  mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update\n  // this whenever subscribe, getSnapshot, or value changes. Because there's no\n  // clean-up function, and we track the deps correctly, we can call pushEffect\n  // directly, without storing any additional state. For the same reason, we\n  // don't need to set a static flag, either.\n  // TODO: We can move this to the passive phase once we add a pre-commit\n  // consistency check. See the next comment.\n\n  fiber.flags |= Passive;\n  pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null);\n  return nextSnapshot;\n}\n\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  var fiber = currentlyRenderingFiber$1;\n  var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the\n  // normal rules of React, and only works because store updates are\n  // always synchronous.\n\n  var nextSnapshot = getSnapshot();\n\n  {\n    if (!didWarnUncachedGetSnapshot) {\n      var cachedSnapshot = getSnapshot();\n\n      if (!objectIs(nextSnapshot, cachedSnapshot)) {\n        error('The result of getSnapshot should be cached to avoid an infinite loop');\n\n        didWarnUncachedGetSnapshot = true;\n      }\n    }\n  }\n\n  var prevSnapshot = hook.memoizedState;\n  var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot);\n\n  if (snapshotChanged) {\n    hook.memoizedState = nextSnapshot;\n    markWorkInProgressReceivedUpdate();\n  }\n\n  var inst = hook.queue;\n  updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the\n  // commit phase if there was an interleaved mutation. In concurrent mode\n  // this can happen all the time, but even in synchronous mode, an earlier\n  // effect may have mutated the store.\n\n  if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by\n  // checking whether we scheduled a subscription effect above.\n  workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {\n    fiber.flags |= Passive;\n    pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check.\n    // Right before committing, we will walk the tree and check if any of the\n    // stores were mutated.\n\n    var root = getWorkInProgressRoot();\n\n    if (root === null) {\n      throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');\n    }\n\n    if (!includesBlockingLane(root, renderLanes)) {\n      pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);\n    }\n  }\n\n  return nextSnapshot;\n}\n\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n  fiber.flags |= StoreConsistency;\n  var check = {\n    getSnapshot: getSnapshot,\n    value: renderedSnapshot\n  };\n  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;\n\n  if (componentUpdateQueue === null) {\n    componentUpdateQueue = createFunctionComponentUpdateQueue();\n    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;\n    componentUpdateQueue.stores = [check];\n  } else {\n    var stores = componentUpdateQueue.stores;\n\n    if (stores === null) {\n      componentUpdateQueue.stores = [check];\n    } else {\n      stores.push(check);\n    }\n  }\n}\n\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n  // These are updated in the passive phase\n  inst.value = nextSnapshot;\n  inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could\n  // have been in an event that fired before the passive effects, or it could\n  // have been in a layout effect. In that case, we would have used the old\n  // snapsho and getSnapshot values to bail out. We need to check one more time.\n\n  if (checkIfSnapshotChanged(inst)) {\n    // Force a re-render.\n    forceStoreRerender(fiber);\n  }\n}\n\nfunction subscribeToStore(fiber, inst, subscribe) {\n  var handleStoreChange = function () {\n    // The store changed. Check if the snapshot changed since the last time we\n    // read from the store.\n    if (checkIfSnapshotChanged(inst)) {\n      // Force a re-render.\n      forceStoreRerender(fiber);\n    }\n  }; // Subscribe to the store and return a clean-up function.\n\n\n  return subscribe(handleStoreChange);\n}\n\nfunction checkIfSnapshotChanged(inst) {\n  var latestGetSnapshot = inst.getSnapshot;\n  var prevValue = inst.value;\n\n  try {\n    var nextValue = latestGetSnapshot();\n    return !objectIs(prevValue, nextValue);\n  } catch (error) {\n    return true;\n  }\n}\n\nfunction forceStoreRerender(fiber) {\n  var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n  if (root !== null) {\n    scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n  }\n}\n\nfunction mountState(initialState) {\n  var hook = mountWorkInProgressHook();\n\n  if (typeof initialState === 'function') {\n    // $FlowFixMe: Flow doesn't like mixed types\n    initialState = initialState();\n  }\n\n  hook.memoizedState = hook.baseState = initialState;\n  var queue = {\n    pending: null,\n    interleaved: null,\n    lanes: NoLanes,\n    dispatch: null,\n    lastRenderedReducer: basicStateReducer,\n    lastRenderedState: initialState\n  };\n  hook.queue = queue;\n  var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);\n  return [hook.memoizedState, dispatch];\n}\n\nfunction updateState(initialState) {\n  return updateReducer(basicStateReducer);\n}\n\nfunction rerenderState(initialState) {\n  return rerenderReducer(basicStateReducer);\n}\n\nfunction pushEffect(tag, create, destroy, deps) {\n  var effect = {\n    tag: tag,\n    create: create,\n    destroy: destroy,\n    deps: deps,\n    // Circular\n    next: null\n  };\n  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;\n\n  if (componentUpdateQueue === null) {\n    componentUpdateQueue = createFunctionComponentUpdateQueue();\n    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;\n    componentUpdateQueue.lastEffect = effect.next = effect;\n  } else {\n    var lastEffect = componentUpdateQueue.lastEffect;\n\n    if (lastEffect === null) {\n      componentUpdateQueue.lastEffect = effect.next = effect;\n    } else {\n      var firstEffect = lastEffect.next;\n      lastEffect.next = effect;\n      effect.next = firstEffect;\n      componentUpdateQueue.lastEffect = effect;\n    }\n  }\n\n  return effect;\n}\n\nfunction mountRef(initialValue) {\n  var hook = mountWorkInProgressHook();\n\n  {\n    var _ref2 = {\n      current: initialValue\n    };\n    hook.memoizedState = _ref2;\n    return _ref2;\n  }\n}\n\nfunction updateRef(initialValue) {\n  var hook = updateWorkInProgressHook();\n  return hook.memoizedState;\n}\n\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n  var hook = mountWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  currentlyRenderingFiber$1.flags |= fiberFlags;\n  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);\n}\n\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n  var hook = updateWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  var destroy = undefined;\n\n  if (currentHook !== null) {\n    var prevEffect = currentHook.memoizedState;\n    destroy = prevEffect.destroy;\n\n    if (nextDeps !== null) {\n      var prevDeps = prevEffect.deps;\n\n      if (areHookInputsEqual(nextDeps, prevDeps)) {\n        hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps);\n        return;\n      }\n    }\n  }\n\n  currentlyRenderingFiber$1.flags |= fiberFlags;\n  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);\n}\n\nfunction mountEffect(create, deps) {\n  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n    return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1, create, deps);\n  } else {\n    return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps);\n  }\n}\n\nfunction updateEffect(create, deps) {\n  return updateEffectImpl(Passive, Passive$1, create, deps);\n}\n\nfunction mountInsertionEffect(create, deps) {\n  return mountEffectImpl(Update, Insertion, create, deps);\n}\n\nfunction updateInsertionEffect(create, deps) {\n  return updateEffectImpl(Update, Insertion, create, deps);\n}\n\nfunction mountLayoutEffect(create, deps) {\n  var fiberFlags = Update;\n\n  {\n    fiberFlags |= LayoutStatic;\n  }\n\n  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n    fiberFlags |= MountLayoutDev;\n  }\n\n  return mountEffectImpl(fiberFlags, Layout, create, deps);\n}\n\nfunction updateLayoutEffect(create, deps) {\n  return updateEffectImpl(Update, Layout, create, deps);\n}\n\nfunction imperativeHandleEffect(create, ref) {\n  if (typeof ref === 'function') {\n    var refCallback = ref;\n\n    var _inst = create();\n\n    refCallback(_inst);\n    return function () {\n      refCallback(null);\n    };\n  } else if (ref !== null && ref !== undefined) {\n    var refObject = ref;\n\n    {\n      if (!refObject.hasOwnProperty('current')) {\n        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');\n      }\n    }\n\n    var _inst2 = create();\n\n    refObject.current = _inst2;\n    return function () {\n      refObject.current = null;\n    };\n  }\n}\n\nfunction mountImperativeHandle(ref, create, deps) {\n  {\n    if (typeof create !== 'function') {\n      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');\n    }\n  } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n  var fiberFlags = Update;\n\n  {\n    fiberFlags |= LayoutStatic;\n  }\n\n  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {\n    fiberFlags |= MountLayoutDev;\n  }\n\n  return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction updateImperativeHandle(ref, create, deps) {\n  {\n    if (typeof create !== 'function') {\n      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');\n    }\n  } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;\n  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction mountDebugValue(value, formatterFn) {// This hook is normally a no-op.\n  // The react-debug-hooks package injects its own implementation\n  // so that e.g. DevTools can display custom hook values.\n}\n\nvar updateDebugValue = mountDebugValue;\n\nfunction mountCallback(callback, deps) {\n  var hook = mountWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  hook.memoizedState = [callback, nextDeps];\n  return callback;\n}\n\nfunction updateCallback(callback, deps) {\n  var hook = updateWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  var prevState = hook.memoizedState;\n\n  if (prevState !== null) {\n    if (nextDeps !== null) {\n      var prevDeps = prevState[1];\n\n      if (areHookInputsEqual(nextDeps, prevDeps)) {\n        return prevState[0];\n      }\n    }\n  }\n\n  hook.memoizedState = [callback, nextDeps];\n  return callback;\n}\n\nfunction mountMemo(nextCreate, deps) {\n  var hook = mountWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  var nextValue = nextCreate();\n  hook.memoizedState = [nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction updateMemo(nextCreate, deps) {\n  var hook = updateWorkInProgressHook();\n  var nextDeps = deps === undefined ? null : deps;\n  var prevState = hook.memoizedState;\n\n  if (prevState !== null) {\n    // Assume these are defined. If they're not, areHookInputsEqual will warn.\n    if (nextDeps !== null) {\n      var prevDeps = prevState[1];\n\n      if (areHookInputsEqual(nextDeps, prevDeps)) {\n        return prevState[0];\n      }\n    }\n  }\n\n  var nextValue = nextCreate();\n  hook.memoizedState = [nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction mountDeferredValue(value) {\n  var hook = mountWorkInProgressHook();\n  hook.memoizedState = value;\n  return value;\n}\n\nfunction updateDeferredValue(value) {\n  var hook = updateWorkInProgressHook();\n  var resolvedCurrentHook = currentHook;\n  var prevValue = resolvedCurrentHook.memoizedState;\n  return updateDeferredValueImpl(hook, prevValue, value);\n}\n\nfunction rerenderDeferredValue(value) {\n  var hook = updateWorkInProgressHook();\n\n  if (currentHook === null) {\n    // This is a rerender during a mount.\n    hook.memoizedState = value;\n    return value;\n  } else {\n    // This is a rerender during an update.\n    var prevValue = currentHook.memoizedState;\n    return updateDeferredValueImpl(hook, prevValue, value);\n  }\n}\n\nfunction updateDeferredValueImpl(hook, prevValue, value) {\n  var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes);\n\n  if (shouldDeferValue) {\n    // This is an urgent update. If the value has changed, keep using the\n    // previous value and spawn a deferred render to update it later.\n    if (!objectIs(value, prevValue)) {\n      // Schedule a deferred render\n      var deferredLane = claimNextTransitionLane();\n      currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane);\n      markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent\n      // from the latest value. The name \"baseState\" doesn't really match how we\n      // use it because we're reusing a state hook field instead of creating a\n      // new one.\n\n      hook.baseState = true;\n    } // Reuse the previous value\n\n\n    return prevValue;\n  } else {\n    // This is not an urgent update, so we can use the latest value regardless\n    // of what it is. No need to defer it.\n    // However, if we're currently inside a spawned render, then we need to mark\n    // this as an update to prevent the fiber from bailing out.\n    //\n    // `baseState` is true when the current value is different from the rendered\n    // value. The name doesn't really match how we use it because we're reusing\n    // a state hook field instead of creating a new one.\n    if (hook.baseState) {\n      // Flip this back to false.\n      hook.baseState = false;\n      markWorkInProgressReceivedUpdate();\n    }\n\n    hook.memoizedState = value;\n    return value;\n  }\n}\n\nfunction startTransition(setPending, callback, options) {\n  var previousPriority = getCurrentUpdatePriority();\n  setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority));\n  setPending(true);\n  var prevTransition = ReactCurrentBatchConfig$2.transition;\n  ReactCurrentBatchConfig$2.transition = {};\n  var currentTransition = ReactCurrentBatchConfig$2.transition;\n\n  {\n    ReactCurrentBatchConfig$2.transition._updatedFibers = new Set();\n  }\n\n  try {\n    setPending(false);\n    callback();\n  } finally {\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig$2.transition = prevTransition;\n\n    {\n      if (prevTransition === null && currentTransition._updatedFibers) {\n        var updatedFibersCount = currentTransition._updatedFibers.size;\n\n        if (updatedFibersCount > 10) {\n          warn('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.');\n        }\n\n        currentTransition._updatedFibers.clear();\n      }\n    }\n  }\n}\n\nfunction mountTransition() {\n  var _mountState = mountState(false),\n      isPending = _mountState[0],\n      setPending = _mountState[1]; // The `start` method never changes.\n\n\n  var start = startTransition.bind(null, setPending);\n  var hook = mountWorkInProgressHook();\n  hook.memoizedState = start;\n  return [isPending, start];\n}\n\nfunction updateTransition() {\n  var _updateState = updateState(),\n      isPending = _updateState[0];\n\n  var hook = updateWorkInProgressHook();\n  var start = hook.memoizedState;\n  return [isPending, start];\n}\n\nfunction rerenderTransition() {\n  var _rerenderState = rerenderState(),\n      isPending = _rerenderState[0];\n\n  var hook = updateWorkInProgressHook();\n  var start = hook.memoizedState;\n  return [isPending, start];\n}\n\nvar isUpdatingOpaqueValueInRenderPhase = false;\nfunction getIsUpdatingOpaqueValueInRenderPhaseInDEV() {\n  {\n    return isUpdatingOpaqueValueInRenderPhase;\n  }\n}\n\nfunction mountId() {\n  var hook = mountWorkInProgressHook();\n  var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we\n  // should do this in Fiber, too? Deferring this decision for now because\n  // there's no other place to store the prefix except for an internal field on\n  // the public createRoot object, which the fiber tree does not currently have\n  // a reference to.\n\n  var identifierPrefix = root.identifierPrefix;\n  var id;\n\n  if (getIsHydrating()) {\n    var treeId = getTreeId(); // Use a captial R prefix for server-generated ids.\n\n    id = ':' + identifierPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end\n    // that represents the position of this useId hook among all the useId\n    // hooks for this fiber.\n\n    var localId = localIdCounter++;\n\n    if (localId > 0) {\n      id += 'H' + localId.toString(32);\n    }\n\n    id += ':';\n  } else {\n    // Use a lowercase r prefix for client-generated ids.\n    var globalClientId = globalClientIdCounter++;\n    id = ':' + identifierPrefix + 'r' + globalClientId.toString(32) + ':';\n  }\n\n  hook.memoizedState = id;\n  return id;\n}\n\nfunction updateId() {\n  var hook = updateWorkInProgressHook();\n  var id = hook.memoizedState;\n  return id;\n}\n\nfunction dispatchReducerAction(fiber, queue, action) {\n  {\n    if (typeof arguments[3] === 'function') {\n      error(\"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().');\n    }\n  }\n\n  var lane = requestUpdateLane(fiber);\n  var update = {\n    lane: lane,\n    action: action,\n    hasEagerState: false,\n    eagerState: null,\n    next: null\n  };\n\n  if (isRenderPhaseUpdate(fiber)) {\n    enqueueRenderPhaseUpdate(queue, update);\n  } else {\n    var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n\n    if (root !== null) {\n      var eventTime = requestEventTime();\n      scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n      entangleTransitionUpdate(root, queue, lane);\n    }\n  }\n\n  markUpdateInDevTools(fiber, lane);\n}\n\nfunction dispatchSetState(fiber, queue, action) {\n  {\n    if (typeof arguments[3] === 'function') {\n      error(\"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().');\n    }\n  }\n\n  var lane = requestUpdateLane(fiber);\n  var update = {\n    lane: lane,\n    action: action,\n    hasEagerState: false,\n    eagerState: null,\n    next: null\n  };\n\n  if (isRenderPhaseUpdate(fiber)) {\n    enqueueRenderPhaseUpdate(queue, update);\n  } else {\n    var alternate = fiber.alternate;\n\n    if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {\n      // The queue is currently empty, which means we can eagerly compute the\n      // next state before entering the render phase. If the new state is the\n      // same as the current state, we may be able to bail out entirely.\n      var lastRenderedReducer = queue.lastRenderedReducer;\n\n      if (lastRenderedReducer !== null) {\n        var prevDispatcher;\n\n        {\n          prevDispatcher = ReactCurrentDispatcher$1.current;\n          ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n        }\n\n        try {\n          var currentState = queue.lastRenderedState;\n          var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute\n          // it, on the update object. If the reducer hasn't changed by the\n          // time we enter the render phase, then the eager state can be used\n          // without calling the reducer again.\n\n          update.hasEagerState = true;\n          update.eagerState = eagerState;\n\n          if (objectIs(eagerState, currentState)) {\n            // Fast path. We can bail out without scheduling React to re-render.\n            // It's still possible that we'll need to rebase this update later,\n            // if the component re-renders for a different reason and by that\n            // time the reducer has changed.\n            // TODO: Do we still need to entangle transitions in this case?\n            enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane);\n            return;\n          }\n        } catch (error) {// Suppress the error. It will throw again in the render phase.\n        } finally {\n          {\n            ReactCurrentDispatcher$1.current = prevDispatcher;\n          }\n        }\n      }\n    }\n\n    var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n\n    if (root !== null) {\n      var eventTime = requestEventTime();\n      scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n      entangleTransitionUpdate(root, queue, lane);\n    }\n  }\n\n  markUpdateInDevTools(fiber, lane);\n}\n\nfunction isRenderPhaseUpdate(fiber) {\n  var alternate = fiber.alternate;\n  return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1;\n}\n\nfunction enqueueRenderPhaseUpdate(queue, update) {\n  // This is a render phase update. Stash it in a lazily-created map of\n  // queue -> linked list of updates. After this render pass, we'll restart\n  // and apply the stashed updates on top of the work-in-progress hook.\n  didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;\n  var pending = queue.pending;\n\n  if (pending === null) {\n    // This is the first update. Create a circular list.\n    update.next = update;\n  } else {\n    update.next = pending.next;\n    pending.next = update;\n  }\n\n  queue.pending = update;\n} // TODO: Move to ReactFiberConcurrentUpdates?\n\n\nfunction entangleTransitionUpdate(root, queue, lane) {\n  if (isTransitionLane(lane)) {\n    var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they\n    // must have finished. We can remove them from the shared queue, which\n    // represents a superset of the actually pending lanes. In some cases we\n    // may entangle more than we need to, but that's OK. In fact it's worse if\n    // we *don't* entangle when we should.\n\n    queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.\n\n    var newQueueLanes = mergeLanes(queueLanes, lane);\n    queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if\n    // the lane finished since the last time we entangled it. So we need to\n    // entangle it again, just to be sure.\n\n    markRootEntangled(root, newQueueLanes);\n  }\n}\n\nfunction markUpdateInDevTools(fiber, lane, action) {\n\n  {\n    markStateUpdateScheduled(fiber, lane);\n  }\n}\n\nvar ContextOnlyDispatcher = {\n  readContext: readContext,\n  useCallback: throwInvalidHookError,\n  useContext: throwInvalidHookError,\n  useEffect: throwInvalidHookError,\n  useImperativeHandle: throwInvalidHookError,\n  useInsertionEffect: throwInvalidHookError,\n  useLayoutEffect: throwInvalidHookError,\n  useMemo: throwInvalidHookError,\n  useReducer: throwInvalidHookError,\n  useRef: throwInvalidHookError,\n  useState: throwInvalidHookError,\n  useDebugValue: throwInvalidHookError,\n  useDeferredValue: throwInvalidHookError,\n  useTransition: throwInvalidHookError,\n  useMutableSource: throwInvalidHookError,\n  useSyncExternalStore: throwInvalidHookError,\n  useId: throwInvalidHookError,\n  unstable_isNewReconciler: enableNewReconciler\n};\n\nvar HooksDispatcherOnMountInDEV = null;\nvar HooksDispatcherOnMountWithHookTypesInDEV = null;\nvar HooksDispatcherOnUpdateInDEV = null;\nvar HooksDispatcherOnRerenderInDEV = null;\nvar InvalidNestedHooksDispatcherOnMountInDEV = null;\nvar InvalidNestedHooksDispatcherOnUpdateInDEV = null;\nvar InvalidNestedHooksDispatcherOnRerenderInDEV = null;\n\n{\n  var warnInvalidContextAccess = function () {\n    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().');\n  };\n\n  var warnInvalidHookAccess = function () {\n    error('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');\n  };\n\n  HooksDispatcherOnMountInDEV = {\n    readContext: function (context) {\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      mountHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      mountHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      mountHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      mountHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      mountHookTypesDev();\n      return mountDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      mountHookTypesDev();\n      return mountDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      mountHookTypesDev();\n      return mountTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      mountHookTypesDev();\n      return mountMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      mountHookTypesDev();\n      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      mountHookTypesDev();\n      return mountId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  HooksDispatcherOnMountWithHookTypesInDEV = {\n    readContext: function (context) {\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      updateHookTypesDev();\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      updateHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      updateHookTypesDev();\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      updateHookTypesDev();\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      updateHookTypesDev();\n      return mountInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      updateHookTypesDev();\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      updateHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      updateHookTypesDev();\n      return mountDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      updateHookTypesDev();\n      return mountDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      updateHookTypesDev();\n      return mountTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      updateHookTypesDev();\n      return mountMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      updateHookTypesDev();\n      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      updateHookTypesDev();\n      return mountId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  HooksDispatcherOnUpdateInDEV = {\n    readContext: function (context) {\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      updateHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      updateHookTypesDev();\n      return updateInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      updateHookTypesDev();\n      return updateDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      updateHookTypesDev();\n      return updateTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      updateHookTypesDev();\n      return updateMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      updateHookTypesDev();\n      return updateSyncExternalStore(subscribe, getSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      updateHookTypesDev();\n      return updateId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  HooksDispatcherOnRerenderInDEV = {\n    readContext: function (context) {\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      updateHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      updateHookTypesDev();\n      return updateInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return rerenderReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return rerenderState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      updateHookTypesDev();\n      return rerenderDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      updateHookTypesDev();\n      return rerenderTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      updateHookTypesDev();\n      return updateMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      updateHookTypesDev();\n      return updateSyncExternalStore(subscribe, getSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      updateHookTypesDev();\n      return updateId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  InvalidNestedHooksDispatcherOnMountInDEV = {\n    readContext: function (context) {\n      warnInvalidContextAccess();\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  InvalidNestedHooksDispatcherOnUpdateInDEV = {\n    readContext: function (context) {\n      warnInvalidContextAccess();\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateSyncExternalStore(subscribe, getSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n\n  InvalidNestedHooksDispatcherOnRerenderInDEV = {\n    readContext: function (context) {\n      warnInvalidContextAccess();\n      return readContext(context);\n    },\n    useCallback: function (callback, deps) {\n      currentHookNameInDev = 'useCallback';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context) {\n      currentHookNameInDev = 'useContext';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return readContext(context);\n    },\n    useEffect: function (create, deps) {\n      currentHookNameInDev = 'useEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps) {\n      currentHookNameInDev = 'useImperativeHandle';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useInsertionEffect: function (create, deps) {\n      currentHookNameInDev = 'useInsertionEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateInsertionEffect(create, deps);\n    },\n    useLayoutEffect: function (create, deps) {\n      currentHookNameInDev = 'useLayoutEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps) {\n      currentHookNameInDev = 'useMemo';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init) {\n      currentHookNameInDev = 'useReducer';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return rerenderReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useRef: function (initialValue) {\n      currentHookNameInDev = 'useRef';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState) {\n      currentHookNameInDev = 'useState';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher = ReactCurrentDispatcher$1.current;\n      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return rerenderState(initialState);\n      } finally {\n        ReactCurrentDispatcher$1.current = prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn) {\n      currentHookNameInDev = 'useDebugValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useDeferredValue: function (value) {\n      currentHookNameInDev = 'useDeferredValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return rerenderDeferredValue(value);\n    },\n    useTransition: function () {\n      currentHookNameInDev = 'useTransition';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return rerenderTransition();\n    },\n    useMutableSource: function (source, getSnapshot, subscribe) {\n      currentHookNameInDev = 'useMutableSource';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateMutableSource();\n    },\n    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n      currentHookNameInDev = 'useSyncExternalStore';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateSyncExternalStore(subscribe, getSnapshot);\n    },\n    useId: function () {\n      currentHookNameInDev = 'useId';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateId();\n    },\n    unstable_isNewReconciler: enableNewReconciler\n  };\n}\n\nvar now$1 = Scheduler.unstable_now;\nvar commitTime = 0;\nvar layoutEffectStartTime = -1;\nvar profilerStartTime = -1;\nvar passiveEffectStartTime = -1;\n/**\n * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect).\n *\n * The overall sequence is:\n *   1. render\n *   2. commit (and call `onRender`, `onCommit`)\n *   3. check for nested updates\n *   4. flush passive effects (and call `onPostCommit`)\n *\n * Nested updates are identified in step 3 above,\n * but step 4 still applies to the work that was just committed.\n * We use two flags to track nested updates then:\n * one tracks whether the upcoming update is a nested update,\n * and the other tracks whether the current update was a nested update.\n * The first value gets synced to the second at the start of the render phase.\n */\n\nvar currentUpdateIsNested = false;\nvar nestedUpdateScheduled = false;\n\nfunction isCurrentUpdateNested() {\n  return currentUpdateIsNested;\n}\n\nfunction markNestedUpdateScheduled() {\n  {\n    nestedUpdateScheduled = true;\n  }\n}\n\nfunction resetNestedUpdateFlag() {\n  {\n    currentUpdateIsNested = false;\n    nestedUpdateScheduled = false;\n  }\n}\n\nfunction syncNestedUpdateFlag() {\n  {\n    currentUpdateIsNested = nestedUpdateScheduled;\n    nestedUpdateScheduled = false;\n  }\n}\n\nfunction getCommitTime() {\n  return commitTime;\n}\n\nfunction recordCommitTime() {\n\n  commitTime = now$1();\n}\n\nfunction startProfilerTimer(fiber) {\n\n  profilerStartTime = now$1();\n\n  if (fiber.actualStartTime < 0) {\n    fiber.actualStartTime = now$1();\n  }\n}\n\nfunction stopProfilerTimerIfRunning(fiber) {\n\n  profilerStartTime = -1;\n}\n\nfunction stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {\n\n  if (profilerStartTime >= 0) {\n    var elapsedTime = now$1() - profilerStartTime;\n    fiber.actualDuration += elapsedTime;\n\n    if (overrideBaseTime) {\n      fiber.selfBaseDuration = elapsedTime;\n    }\n\n    profilerStartTime = -1;\n  }\n}\n\nfunction recordLayoutEffectDuration(fiber) {\n\n  if (layoutEffectStartTime >= 0) {\n    var elapsedTime = now$1() - layoutEffectStartTime;\n    layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor\n    // Or the root (for the DevTools Profiler to read)\n\n    var parentFiber = fiber.return;\n\n    while (parentFiber !== null) {\n      switch (parentFiber.tag) {\n        case HostRoot:\n          var root = parentFiber.stateNode;\n          root.effectDuration += elapsedTime;\n          return;\n\n        case Profiler:\n          var parentStateNode = parentFiber.stateNode;\n          parentStateNode.effectDuration += elapsedTime;\n          return;\n      }\n\n      parentFiber = parentFiber.return;\n    }\n  }\n}\n\nfunction recordPassiveEffectDuration(fiber) {\n\n  if (passiveEffectStartTime >= 0) {\n    var elapsedTime = now$1() - passiveEffectStartTime;\n    passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor\n    // Or the root (for the DevTools Profiler to read)\n\n    var parentFiber = fiber.return;\n\n    while (parentFiber !== null) {\n      switch (parentFiber.tag) {\n        case HostRoot:\n          var root = parentFiber.stateNode;\n\n          if (root !== null) {\n            root.passiveEffectDuration += elapsedTime;\n          }\n\n          return;\n\n        case Profiler:\n          var parentStateNode = parentFiber.stateNode;\n\n          if (parentStateNode !== null) {\n            // Detached fibers have their state node cleared out.\n            // In this case, the return pointer is also cleared out,\n            // so we won't be able to report the time spent in this Profiler's subtree.\n            parentStateNode.passiveEffectDuration += elapsedTime;\n          }\n\n          return;\n      }\n\n      parentFiber = parentFiber.return;\n    }\n  }\n}\n\nfunction startLayoutEffectTimer() {\n\n  layoutEffectStartTime = now$1();\n}\n\nfunction startPassiveEffectTimer() {\n\n  passiveEffectStartTime = now$1();\n}\n\nfunction transferActualDuration(fiber) {\n  // Transfer time spent rendering these children so we don't lose it\n  // after we rerender. This is used as a helper in special cases\n  // where we should count the work of multiple passes.\n  var child = fiber.child;\n\n  while (child) {\n    fiber.actualDuration += child.actualDuration;\n    child = child.sibling;\n  }\n}\n\nfunction resolveDefaultProps(Component, baseProps) {\n  if (Component && Component.defaultProps) {\n    // Resolve default props. Taken from ReactElement\n    var props = assign({}, baseProps);\n    var defaultProps = Component.defaultProps;\n\n    for (var propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n\n    return props;\n  }\n\n  return baseProps;\n}\n\nvar fakeInternalInstance = {};\nvar didWarnAboutStateAssignmentForComponent;\nvar didWarnAboutUninitializedState;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;\nvar didWarnAboutLegacyLifecyclesAndDerivedState;\nvar didWarnAboutUndefinedDerivedState;\nvar warnOnUndefinedDerivedState;\nvar warnOnInvalidCallback;\nvar didWarnAboutDirectlyAssigningPropsToState;\nvar didWarnAboutContextTypeAndContextTypes;\nvar didWarnAboutInvalidateContextType;\nvar didWarnAboutLegacyContext$1;\n\n{\n  didWarnAboutStateAssignmentForComponent = new Set();\n  didWarnAboutUninitializedState = new Set();\n  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();\n  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();\n  didWarnAboutDirectlyAssigningPropsToState = new Set();\n  didWarnAboutUndefinedDerivedState = new Set();\n  didWarnAboutContextTypeAndContextTypes = new Set();\n  didWarnAboutInvalidateContextType = new Set();\n  didWarnAboutLegacyContext$1 = new Set();\n  var didWarnOnInvalidCallback = new Set();\n\n  warnOnInvalidCallback = function (callback, callerName) {\n    if (callback === null || typeof callback === 'function') {\n      return;\n    }\n\n    var key = callerName + '_' + callback;\n\n    if (!didWarnOnInvalidCallback.has(key)) {\n      didWarnOnInvalidCallback.add(key);\n\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  };\n\n  warnOnUndefinedDerivedState = function (type, partialState) {\n    if (partialState === undefined) {\n      var componentName = getComponentNameFromType(type) || 'Component';\n\n      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {\n        didWarnAboutUndefinedDerivedState.add(componentName);\n\n        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n      }\n    }\n  }; // This is so gross but it's at least non-critical and can be removed if\n  // it causes problems. This is meant to give a nicer error message for\n  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,\n  // ...)) which otherwise throws a \"_processChildContext is not a function\"\n  // exception.\n\n\n  Object.defineProperty(fakeInternalInstance, '_processChildContext', {\n    enumerable: false,\n    value: function () {\n      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).');\n    }\n  });\n  Object.freeze(fakeInternalInstance);\n}\n\nfunction applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {\n  var prevState = workInProgress.memoizedState;\n  var partialState = getDerivedStateFromProps(nextProps, prevState);\n\n  {\n    if ( workInProgress.mode & StrictLegacyMode) {\n      setIsStrictModeForDevtools(true);\n\n      try {\n        // Invoke the function an extra time to help detect side-effects.\n        partialState = getDerivedStateFromProps(nextProps, prevState);\n      } finally {\n        setIsStrictModeForDevtools(false);\n      }\n    }\n\n    warnOnUndefinedDerivedState(ctor, partialState);\n  } // Merge the partial state and the previous state.\n\n\n  var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);\n  workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the\n  // base state.\n\n  if (workInProgress.lanes === NoLanes) {\n    // Queue is always non-null for classes\n    var updateQueue = workInProgress.updateQueue;\n    updateQueue.baseState = memoizedState;\n  }\n}\n\nvar classComponentUpdater = {\n  isMounted: isMounted,\n  enqueueSetState: function (inst, payload, callback) {\n    var fiber = get(inst);\n    var eventTime = requestEventTime();\n    var lane = requestUpdateLane(fiber);\n    var update = createUpdate(eventTime, lane);\n    update.payload = payload;\n\n    if (callback !== undefined && callback !== null) {\n      {\n        warnOnInvalidCallback(callback, 'setState');\n      }\n\n      update.callback = callback;\n    }\n\n    var root = enqueueUpdate(fiber, update, lane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n      entangleTransitions(root, fiber, lane);\n    }\n\n    {\n      markStateUpdateScheduled(fiber, lane);\n    }\n  },\n  enqueueReplaceState: function (inst, payload, callback) {\n    var fiber = get(inst);\n    var eventTime = requestEventTime();\n    var lane = requestUpdateLane(fiber);\n    var update = createUpdate(eventTime, lane);\n    update.tag = ReplaceState;\n    update.payload = payload;\n\n    if (callback !== undefined && callback !== null) {\n      {\n        warnOnInvalidCallback(callback, 'replaceState');\n      }\n\n      update.callback = callback;\n    }\n\n    var root = enqueueUpdate(fiber, update, lane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n      entangleTransitions(root, fiber, lane);\n    }\n\n    {\n      markStateUpdateScheduled(fiber, lane);\n    }\n  },\n  enqueueForceUpdate: function (inst, callback) {\n    var fiber = get(inst);\n    var eventTime = requestEventTime();\n    var lane = requestUpdateLane(fiber);\n    var update = createUpdate(eventTime, lane);\n    update.tag = ForceUpdate;\n\n    if (callback !== undefined && callback !== null) {\n      {\n        warnOnInvalidCallback(callback, 'forceUpdate');\n      }\n\n      update.callback = callback;\n    }\n\n    var root = enqueueUpdate(fiber, update, lane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n      entangleTransitions(root, fiber, lane);\n    }\n\n    {\n      markForceUpdateScheduled(fiber, lane);\n    }\n  }\n};\n\nfunction checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {\n  var instance = workInProgress.stateNode;\n\n  if (typeof instance.shouldComponentUpdate === 'function') {\n    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);\n\n    {\n      if ( workInProgress.mode & StrictLegacyMode) {\n        setIsStrictModeForDevtools(true);\n\n        try {\n          // Invoke the function an extra time to help detect side-effects.\n          shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);\n        } finally {\n          setIsStrictModeForDevtools(false);\n        }\n      }\n\n      if (shouldUpdate === undefined) {\n        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentNameFromType(ctor) || 'Component');\n      }\n    }\n\n    return shouldUpdate;\n  }\n\n  if (ctor.prototype && ctor.prototype.isPureReactComponent) {\n    return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);\n  }\n\n  return true;\n}\n\nfunction checkClassInstance(workInProgress, ctor, newProps) {\n  var instance = workInProgress.stateNode;\n\n  {\n    var name = getComponentNameFromType(ctor) || 'Component';\n    var renderPresent = instance.render;\n\n    if (!renderPresent) {\n      if (ctor.prototype && typeof ctor.prototype.render === 'function') {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n      } else {\n        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n      }\n    }\n\n    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {\n      error('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?', name);\n    }\n\n    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {\n      error('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.', name);\n    }\n\n    if (instance.propTypes) {\n      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);\n    }\n\n    if (instance.contextType) {\n      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);\n    }\n\n    {\n      if (ctor.childContextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip\n      // this one.\n      (workInProgress.mode & StrictLegacyMode) === NoMode) {\n        didWarnAboutLegacyContext$1.add(ctor);\n\n        error('%s uses the legacy childContextTypes API which is no longer ' + 'supported and will be removed in the next major release. Use ' + 'React.createContext() instead\\n\\n.' + 'Learn more about this warning here: https://reactjs.org/link/legacy-context', name);\n      }\n\n      if (ctor.contextTypes && !didWarnAboutLegacyContext$1.has(ctor) && // Strict Mode has its own warning for legacy context, so we can skip\n      // this one.\n      (workInProgress.mode & StrictLegacyMode) === NoMode) {\n        didWarnAboutLegacyContext$1.add(ctor);\n\n        error('%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.\\n\\n' + 'Learn more about this warning here: https://reactjs.org/link/legacy-context', name);\n      }\n\n      if (instance.contextTypes) {\n        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);\n      }\n\n      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {\n        didWarnAboutContextTypeAndContextTypes.add(ctor);\n\n        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n      }\n    }\n\n    if (typeof instance.componentShouldUpdate === 'function') {\n      error('%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.', name);\n    }\n\n    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {\n      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');\n    }\n\n    if (typeof instance.componentDidUnmount === 'function') {\n      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);\n    }\n\n    if (typeof instance.componentDidReceiveProps === 'function') {\n      error('%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().', name);\n    }\n\n    if (typeof instance.componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);\n    }\n\n    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {\n      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);\n    }\n\n    var hasMutatedProps = instance.props !== newProps;\n\n    if (instance.props !== undefined && hasMutatedProps) {\n      error('%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name);\n    }\n\n    if (instance.defaultProps) {\n      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {\n      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n\n      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));\n    }\n\n    if (typeof instance.getDerivedStateFromProps === 'function') {\n      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof instance.getDerivedStateFromError === 'function') {\n      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {\n      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);\n    }\n\n    var _state = instance.state;\n\n    if (_state && (typeof _state !== 'object' || isArray(_state))) {\n      error('%s.state: must be set to an object or null', name);\n    }\n\n    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {\n      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);\n    }\n  }\n}\n\nfunction adoptClassInstance(workInProgress, instance) {\n  instance.updater = classComponentUpdater;\n  workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates\n\n  set(instance, workInProgress);\n\n  {\n    instance._reactInternalInstance = fakeInternalInstance;\n  }\n}\n\nfunction constructClassInstance(workInProgress, ctor, props) {\n  var isLegacyContextConsumer = false;\n  var unmaskedContext = emptyContextObject;\n  var context = emptyContextObject;\n  var contextType = ctor.contextType;\n\n  {\n    if ('contextType' in ctor) {\n      var isValid = // Allow null for conditional declaration\n      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>\n\n      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {\n        didWarnAboutInvalidateContextType.add(ctor);\n        var addendum = '';\n\n        if (contextType === undefined) {\n          addendum = ' 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.';\n        } else if (typeof contextType !== 'object') {\n          addendum = ' However, it is set to a ' + typeof contextType + '.';\n        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {\n          addendum = ' Did you accidentally pass the Context.Provider instead?';\n        } else if (contextType._context !== undefined) {\n          // <Context.Consumer>\n          addendum = ' Did you accidentally pass the Context.Consumer instead?';\n        } else {\n          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';\n        }\n\n        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);\n      }\n    }\n  }\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    context = readContext(contextType);\n  } else {\n    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n    var contextTypes = ctor.contextTypes;\n    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;\n    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;\n  }\n\n  var instance = new ctor(props, context); // Instantiate twice to help detect side-effects.\n\n  {\n    if ( workInProgress.mode & StrictLegacyMode) {\n      setIsStrictModeForDevtools(true);\n\n      try {\n        instance = new ctor(props, context); // eslint-disable-line no-new\n      } finally {\n        setIsStrictModeForDevtools(false);\n      }\n    }\n  }\n\n  var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;\n  adoptClassInstance(workInProgress, instance);\n\n  {\n    if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutUninitializedState.has(componentName)) {\n        didWarnAboutUninitializedState.add(componentName);\n\n        error('`%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.', componentName, instance.state === null ? 'null' : 'undefined', componentName);\n      }\n    } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n    // Warn about these lifecycles if they are present.\n    // Don't warn about react-lifecycles-compat polyfilled methods though.\n\n\n    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {\n      var foundWillMountName = null;\n      var foundWillReceivePropsName = null;\n      var foundWillUpdateName = null;\n\n      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {\n        foundWillMountName = 'componentWillMount';\n      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {\n        foundWillMountName = 'UNSAFE_componentWillMount';\n      }\n\n      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {\n        foundWillReceivePropsName = 'componentWillReceiveProps';\n      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n      }\n\n      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {\n        foundWillUpdateName = 'componentWillUpdate';\n      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n        foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n      }\n\n      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n        var _componentName = getComponentNameFromType(ctor) || 'Component';\n\n        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n\n        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {\n          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n\n          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? \"\\n  \" + foundWillMountName : '', foundWillReceivePropsName !== null ? \"\\n  \" + foundWillReceivePropsName : '', foundWillUpdateName !== null ? \"\\n  \" + foundWillUpdateName : '');\n        }\n      }\n    }\n  } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n  // ReactFiberContext usually updates this cache but can't for newly-created instances.\n\n\n  if (isLegacyContextConsumer) {\n    cacheContext(workInProgress, unmaskedContext, context);\n  }\n\n  return instance;\n}\n\nfunction callComponentWillMount(workInProgress, instance) {\n  var oldState = instance.state;\n\n  if (typeof instance.componentWillMount === 'function') {\n    instance.componentWillMount();\n  }\n\n  if (typeof instance.UNSAFE_componentWillMount === 'function') {\n    instance.UNSAFE_componentWillMount();\n  }\n\n  if (oldState !== instance.state) {\n    {\n      error('%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentNameFromFiber(workInProgress) || 'Component');\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n}\n\nfunction callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {\n  var oldState = instance.state;\n\n  if (typeof instance.componentWillReceiveProps === 'function') {\n    instance.componentWillReceiveProps(newProps, nextContext);\n  }\n\n  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {\n    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n  }\n\n  if (instance.state !== oldState) {\n    {\n      var componentName = getComponentNameFromFiber(workInProgress) || 'Component';\n\n      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {\n        didWarnAboutStateAssignmentForComponent.add(componentName);\n\n        error('%s.componentWillReceiveProps(): Assigning directly to ' + \"this.state is deprecated (except inside a component's \" + 'constructor). Use setState instead.', componentName);\n      }\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n} // Invokes the mount life-cycles on a previously never rendered instance.\n\n\nfunction mountClassInstance(workInProgress, ctor, newProps, renderLanes) {\n  {\n    checkClassInstance(workInProgress, ctor, newProps);\n  }\n\n  var instance = workInProgress.stateNode;\n  instance.props = newProps;\n  instance.state = workInProgress.memoizedState;\n  instance.refs = {};\n  initializeUpdateQueue(workInProgress);\n  var contextType = ctor.contextType;\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    instance.context = readContext(contextType);\n  } else {\n    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n    instance.context = getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  {\n    if (instance.state === newProps) {\n      var componentName = getComponentNameFromType(ctor) || 'Component';\n\n      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {\n        didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n\n        error('%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.', componentName);\n      }\n    }\n\n    if (workInProgress.mode & StrictLegacyMode) {\n      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);\n    }\n\n    {\n      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);\n    }\n  }\n\n  instance.state = workInProgress.memoizedState;\n  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n\n  if (typeof getDerivedStateFromProps === 'function') {\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    instance.state = workInProgress.memoizedState;\n  } // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n\n  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n    callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's\n    // process them now.\n\n    processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n    instance.state = workInProgress.memoizedState;\n  }\n\n  if (typeof instance.componentDidMount === 'function') {\n    var fiberFlags = Update;\n\n    {\n      fiberFlags |= LayoutStatic;\n    }\n\n    if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n      fiberFlags |= MountLayoutDev;\n    }\n\n    workInProgress.flags |= fiberFlags;\n  }\n}\n\nfunction resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {\n  var instance = workInProgress.stateNode;\n  var oldProps = workInProgress.memoizedProps;\n  instance.props = oldProps;\n  var oldContext = instance.context;\n  var contextType = ctor.contextType;\n  var nextContext = emptyContextObject;\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    nextContext = readContext(contextType);\n  } else {\n    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n    nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);\n  }\n\n  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what\n  // ever the previously attempted to render - not the \"current\". However,\n  // during componentDidUpdate we pass the \"current\" props.\n  // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n    if (oldProps !== newProps || oldContext !== nextContext) {\n      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n    }\n  }\n\n  resetHasForceUpdateBeforeProcessing();\n  var oldState = workInProgress.memoizedState;\n  var newState = instance.state = oldState;\n  processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n  newState = workInProgress.memoizedState;\n\n  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if (typeof instance.componentDidMount === 'function') {\n      var fiberFlags = Update;\n\n      {\n        fiberFlags |= LayoutStatic;\n      }\n\n      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n        fiberFlags |= MountLayoutDev;\n      }\n\n      workInProgress.flags |= fiberFlags;\n    }\n\n    return false;\n  }\n\n  if (typeof getDerivedStateFromProps === 'function') {\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    newState = workInProgress.memoizedState;\n  }\n\n  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n  if (shouldUpdate) {\n    // In order to support react-lifecycles-compat polyfilled components,\n    // Unsafe lifecycles should not be invoked for components using the new APIs.\n    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {\n      if (typeof instance.componentWillMount === 'function') {\n        instance.componentWillMount();\n      }\n\n      if (typeof instance.UNSAFE_componentWillMount === 'function') {\n        instance.UNSAFE_componentWillMount();\n      }\n    }\n\n    if (typeof instance.componentDidMount === 'function') {\n      var _fiberFlags = Update;\n\n      {\n        _fiberFlags |= LayoutStatic;\n      }\n\n      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n        _fiberFlags |= MountLayoutDev;\n      }\n\n      workInProgress.flags |= _fiberFlags;\n    }\n  } else {\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if (typeof instance.componentDidMount === 'function') {\n      var _fiberFlags2 = Update;\n\n      {\n        _fiberFlags2 |= LayoutStatic;\n      }\n\n      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {\n        _fiberFlags2 |= MountLayoutDev;\n      }\n\n      workInProgress.flags |= _fiberFlags2;\n    } // If shouldComponentUpdate returned false, we should still update the\n    // memoized state to indicate that this work can be reused.\n\n\n    workInProgress.memoizedProps = newProps;\n    workInProgress.memoizedState = newState;\n  } // Update the existing instance's state, props, and context pointers even\n  // if shouldComponentUpdate returns false.\n\n\n  instance.props = newProps;\n  instance.state = newState;\n  instance.context = nextContext;\n  return shouldUpdate;\n} // Invokes the update life-cycles and returns false if it shouldn't rerender.\n\n\nfunction updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {\n  var instance = workInProgress.stateNode;\n  cloneUpdateQueue(current, workInProgress);\n  var unresolvedOldProps = workInProgress.memoizedProps;\n  var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);\n  instance.props = oldProps;\n  var unresolvedNewProps = workInProgress.pendingProps;\n  var oldContext = instance.context;\n  var contextType = ctor.contextType;\n  var nextContext = emptyContextObject;\n\n  if (typeof contextType === 'object' && contextType !== null) {\n    nextContext = readContext(contextType);\n  } else {\n    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);\n    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);\n  }\n\n  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;\n  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what\n  // ever the previously attempted to render - not the \"current\". However,\n  // during componentDidUpdate we pass the \"current\" props.\n  // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {\n    if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {\n      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n    }\n  }\n\n  resetHasForceUpdateBeforeProcessing();\n  var oldState = workInProgress.memoizedState;\n  var newState = instance.state = oldState;\n  processUpdateQueue(workInProgress, newProps, instance, renderLanes);\n  newState = workInProgress.memoizedState;\n\n  if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !(enableLazyContextPropagation   )) {\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if (typeof instance.componentDidUpdate === 'function') {\n      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n        workInProgress.flags |= Update;\n      }\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n        workInProgress.flags |= Snapshot;\n      }\n    }\n\n    return false;\n  }\n\n  if (typeof getDerivedStateFromProps === 'function') {\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    newState = workInProgress.memoizedState;\n  }\n\n  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice,\n  // both before and after `shouldComponentUpdate` has been called. Not ideal,\n  // but I'm loath to refactor this function. This only happens for memoized\n  // components so it's not that common.\n  enableLazyContextPropagation   ;\n\n  if (shouldUpdate) {\n    // In order to support react-lifecycles-compat polyfilled components,\n    // Unsafe lifecycles should not be invoked for components using the new APIs.\n    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {\n      if (typeof instance.componentWillUpdate === 'function') {\n        instance.componentWillUpdate(newProps, newState, nextContext);\n      }\n\n      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {\n        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);\n      }\n    }\n\n    if (typeof instance.componentDidUpdate === 'function') {\n      workInProgress.flags |= Update;\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n      workInProgress.flags |= Snapshot;\n    }\n  } else {\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if (typeof instance.componentDidUpdate === 'function') {\n      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n        workInProgress.flags |= Update;\n      }\n    }\n\n    if (typeof instance.getSnapshotBeforeUpdate === 'function') {\n      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {\n        workInProgress.flags |= Snapshot;\n      }\n    } // If shouldComponentUpdate returned false, we should still update the\n    // memoized props/state to indicate that this work can be reused.\n\n\n    workInProgress.memoizedProps = newProps;\n    workInProgress.memoizedState = newState;\n  } // Update the existing instance's state, props, and context pointers even\n  // if shouldComponentUpdate returns false.\n\n\n  instance.props = newProps;\n  instance.state = newState;\n  instance.context = nextContext;\n  return shouldUpdate;\n}\n\nfunction createCapturedValueAtFiber(value, source) {\n  // If the value is an error, call this function immediately after it is thrown\n  // so the stack is accurate.\n  return {\n    value: value,\n    source: source,\n    stack: getStackByFiberInDevAndProd(source),\n    digest: null\n  };\n}\nfunction createCapturedValue(value, digest, stack) {\n  return {\n    value: value,\n    source: null,\n    stack: stack != null ? stack : null,\n    digest: digest != null ? digest : null\n  };\n}\n\n// This module is forked in different environments.\n// By default, return `true` to log errors to the console.\n// Forks can return `false` if this isn't desirable.\nfunction showErrorDialog(boundary, errorInfo) {\n  return true;\n}\n\nfunction logCapturedError(boundary, errorInfo) {\n  try {\n    var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.\n    // This enables renderers like ReactNative to better manage redbox behavior.\n\n    if (logError === false) {\n      return;\n    }\n\n    var error = errorInfo.value;\n\n    if (true) {\n      var source = errorInfo.source;\n      var stack = errorInfo.stack;\n      var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling\n      // `preventDefault()` in window `error` handler.\n      // We record this information as an expando on the error.\n\n      if (error != null && error._suppressLogging) {\n        if (boundary.tag === ClassComponent) {\n          // The error is recoverable and was silenced.\n          // Ignore it and don't print the stack addendum.\n          // This is handy for testing error boundaries without noise.\n          return;\n        } // The error is fatal. Since the silencing might have\n        // been accidental, we'll surface it anyway.\n        // However, the browser would have silenced the original error\n        // so we'll print it first, and then print the stack addendum.\n\n\n        console['error'](error); // Don't transform to our wrapper\n        // For a more detailed description of this block, see:\n        // https://github.com/facebook/react/pull/13384\n      }\n\n      var componentName = source ? getComponentNameFromFiber(source) : null;\n      var componentNameMessage = componentName ? \"The above error occurred in the <\" + componentName + \"> component:\" : 'The above error occurred in one of your React components:';\n      var errorBoundaryMessage;\n\n      if (boundary.tag === HostRoot) {\n        errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';\n      } else {\n        var errorBoundaryName = getComponentNameFromFiber(boundary) || 'Anonymous';\n        errorBoundaryMessage = \"React will try to recreate this component tree from scratch \" + (\"using the error boundary you provided, \" + errorBoundaryName + \".\");\n      }\n\n      var combinedMessage = componentNameMessage + \"\\n\" + componentStack + \"\\n\\n\" + (\"\" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.\n      // We don't include the original error message and JS stack because the browser\n      // has already printed it. Even if the application swallows the error, it is still\n      // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.\n\n      console['error'](combinedMessage); // Don't transform to our wrapper\n    } else {\n      // In production, we print the error directly.\n      // This will include the message, the JS stack, and anything the browser wants to show.\n      // We pass the error object instead of custom message so that the browser displays the error natively.\n      console['error'](error); // Don't transform to our wrapper\n    }\n  } catch (e) {\n    // This method must not throw, or React internal state will get messed up.\n    // If console.error is overridden, or logCapturedError() shows a dialog that throws,\n    // we want to report this error outside of the normal stack as a last resort.\n    // https://github.com/facebook/react/issues/13188\n    setTimeout(function () {\n      throw e;\n    });\n  }\n}\n\nvar PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;\n\nfunction createRootErrorUpdate(fiber, errorInfo, lane) {\n  var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.\n\n  update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property\n  // being called \"element\".\n\n  update.payload = {\n    element: null\n  };\n  var error = errorInfo.value;\n\n  update.callback = function () {\n    onUncaughtError(error);\n    logCapturedError(fiber, errorInfo);\n  };\n\n  return update;\n}\n\nfunction createClassErrorUpdate(fiber, errorInfo, lane) {\n  var update = createUpdate(NoTimestamp, lane);\n  update.tag = CaptureUpdate;\n  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n\n  if (typeof getDerivedStateFromError === 'function') {\n    var error$1 = errorInfo.value;\n\n    update.payload = function () {\n      return getDerivedStateFromError(error$1);\n    };\n\n    update.callback = function () {\n      {\n        markFailedErrorBoundaryForHotReloading(fiber);\n      }\n\n      logCapturedError(fiber, errorInfo);\n    };\n  }\n\n  var inst = fiber.stateNode;\n\n  if (inst !== null && typeof inst.componentDidCatch === 'function') {\n    update.callback = function callback() {\n      {\n        markFailedErrorBoundaryForHotReloading(fiber);\n      }\n\n      logCapturedError(fiber, errorInfo);\n\n      if (typeof getDerivedStateFromError !== 'function') {\n        // To preserve the preexisting retry behavior of error boundaries,\n        // we keep track of which ones already failed during this batch.\n        // This gets reset before we yield back to the browser.\n        // TODO: Warn in strict mode if getDerivedStateFromError is\n        // not defined.\n        markLegacyErrorBoundaryAsFailed(this);\n      }\n\n      var error$1 = errorInfo.value;\n      var stack = errorInfo.stack;\n      this.componentDidCatch(error$1, {\n        componentStack: stack !== null ? stack : ''\n      });\n\n      {\n        if (typeof getDerivedStateFromError !== 'function') {\n          // If componentDidCatch is the only error boundary method defined,\n          // then it needs to call setState to recover from errors.\n          // If no state update is scheduled then the boundary will swallow the error.\n          if (!includesSomeLane(fiber.lanes, SyncLane)) {\n            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentNameFromFiber(fiber) || 'Unknown');\n          }\n        }\n      }\n    };\n  }\n\n  return update;\n}\n\nfunction attachPingListener(root, wakeable, lanes) {\n  // Attach a ping listener\n  //\n  // The data might resolve before we have a chance to commit the fallback. Or,\n  // in the case of a refresh, we'll never commit a fallback. So we need to\n  // attach a listener now. When it resolves (\"pings\"), we can decide whether to\n  // try rendering the tree again.\n  //\n  // Only attach a listener if one does not already exist for the lanes\n  // we're currently rendering (which acts like a \"thread ID\" here).\n  //\n  // We only need to do this in concurrent mode. Legacy Suspense always\n  // commits fallbacks synchronously, so there are no pings.\n  var pingCache = root.pingCache;\n  var threadIDs;\n\n  if (pingCache === null) {\n    pingCache = root.pingCache = new PossiblyWeakMap$1();\n    threadIDs = new Set();\n    pingCache.set(wakeable, threadIDs);\n  } else {\n    threadIDs = pingCache.get(wakeable);\n\n    if (threadIDs === undefined) {\n      threadIDs = new Set();\n      pingCache.set(wakeable, threadIDs);\n    }\n  }\n\n  if (!threadIDs.has(lanes)) {\n    // Memoize using the thread ID to prevent redundant listeners.\n    threadIDs.add(lanes);\n    var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);\n\n    {\n      if (isDevToolsPresent) {\n        // If we have pending work still, restore the original updaters\n        restorePendingUpdaters(root, lanes);\n      }\n    }\n\n    wakeable.then(ping, ping);\n  }\n}\n\nfunction attachRetryListener(suspenseBoundary, root, wakeable, lanes) {\n  // Retry listener\n  //\n  // If the fallback does commit, we need to attach a different type of\n  // listener. This one schedules an update on the Suspense boundary to turn\n  // the fallback state off.\n  //\n  // Stash the wakeable on the boundary fiber so we can access it in the\n  // commit phase.\n  //\n  // When the wakeable resolves, we'll attempt to render the boundary\n  // again (\"retry\").\n  var wakeables = suspenseBoundary.updateQueue;\n\n  if (wakeables === null) {\n    var updateQueue = new Set();\n    updateQueue.add(wakeable);\n    suspenseBoundary.updateQueue = updateQueue;\n  } else {\n    wakeables.add(wakeable);\n  }\n}\n\nfunction resetSuspendedComponent(sourceFiber, rootRenderLanes) {\n  // A legacy mode Suspense quirk, only relevant to hook components.\n\n\n  var tag = sourceFiber.tag;\n\n  if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) {\n    var currentSource = sourceFiber.alternate;\n\n    if (currentSource) {\n      sourceFiber.updateQueue = currentSource.updateQueue;\n      sourceFiber.memoizedState = currentSource.memoizedState;\n      sourceFiber.lanes = currentSource.lanes;\n    } else {\n      sourceFiber.updateQueue = null;\n      sourceFiber.memoizedState = null;\n    }\n  }\n}\n\nfunction getNearestSuspenseBoundaryToCapture(returnFiber) {\n  var node = returnFiber;\n\n  do {\n    if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {\n      return node;\n    } // This boundary already captured during this render. Continue to the next\n    // boundary.\n\n\n    node = node.return;\n  } while (node !== null);\n\n  return null;\n}\n\nfunction markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) {\n  // This marks a Suspense boundary so that when we're unwinding the stack,\n  // it captures the suspended \"exception\" and does a second (fallback) pass.\n  if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) {\n    // Legacy Mode Suspense\n    //\n    // If the boundary is in legacy mode, we should *not*\n    // suspend the commit. Pretend as if the suspended component rendered\n    // null and keep rendering. When the Suspense boundary completes,\n    // we'll do a second pass to render the fallback.\n    if (suspenseBoundary === returnFiber) {\n      // Special case where we suspended while reconciling the children of\n      // a Suspense boundary's inner Offscreen wrapper fiber. This happens\n      // when a React.lazy component is a direct child of a\n      // Suspense boundary.\n      //\n      // Suspense boundaries are implemented as multiple fibers, but they\n      // are a single conceptual unit. The legacy mode behavior where we\n      // pretend the suspended fiber committed as `null` won't work,\n      // because in this case the \"suspended\" fiber is the inner\n      // Offscreen wrapper.\n      //\n      // Because the contents of the boundary haven't started rendering\n      // yet (i.e. nothing in the tree has partially rendered) we can\n      // switch to the regular, concurrent mode behavior: mark the\n      // boundary with ShouldCapture and enter the unwind phase.\n      suspenseBoundary.flags |= ShouldCapture;\n    } else {\n      suspenseBoundary.flags |= DidCapture;\n      sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.\n      // But we shouldn't call any lifecycle methods or callbacks. Remove\n      // all lifecycle effect tags.\n\n      sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);\n\n      if (sourceFiber.tag === ClassComponent) {\n        var currentSourceFiber = sourceFiber.alternate;\n\n        if (currentSourceFiber === null) {\n          // This is a new mount. Change the tag so it's not mistaken for a\n          // completed class component. For example, we should not call\n          // componentWillUnmount if it is deleted.\n          sourceFiber.tag = IncompleteClassComponent;\n        } else {\n          // When we try rendering again, we should not reuse the current fiber,\n          // since it's known to be in an inconsistent state. Use a force update to\n          // prevent a bail out.\n          var update = createUpdate(NoTimestamp, SyncLane);\n          update.tag = ForceUpdate;\n          enqueueUpdate(sourceFiber, update, SyncLane);\n        }\n      } // The source fiber did not complete. Mark it with Sync priority to\n      // indicate that it still has pending work.\n\n\n      sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);\n    }\n\n    return suspenseBoundary;\n  } // Confirmed that the boundary is in a concurrent mode tree. Continue\n  // with the normal suspend path.\n  //\n  // After this we'll use a set of heuristics to determine whether this\n  // render pass will run to completion or restart or \"suspend\" the commit.\n  // The actual logic for this is spread out in different places.\n  //\n  // This first principle is that if we're going to suspend when we complete\n  // a root, then we should also restart if we get an update or ping that\n  // might unsuspend it, and vice versa. The only reason to suspend is\n  // because you think you might want to restart before committing. However,\n  // it doesn't make sense to restart only while in the period we're suspended.\n  //\n  // Restarting too aggressively is also not good because it starves out any\n  // intermediate loading state. So we use heuristics to determine when.\n  // Suspense Heuristics\n  //\n  // If nothing threw a Promise or all the same fallbacks are already showing,\n  // then don't suspend/restart.\n  //\n  // If this is an initial render of a new tree of Suspense boundaries and\n  // those trigger a fallback, then don't suspend/restart. We want to ensure\n  // that we can show the initial loading state as quickly as possible.\n  //\n  // If we hit a \"Delayed\" case, such as when we'd switch from content back into\n  // a fallback, then we should always suspend/restart. Transitions apply\n  // to this case. If none is defined, JND is used instead.\n  //\n  // If we're already showing a fallback and it gets \"retried\", allowing us to show\n  // another level, but there's still an inner boundary that would show a fallback,\n  // then we suspend/restart for 500ms since the last time we showed a fallback\n  // anywhere in the tree. This effectively throttles progressive loading into a\n  // consistent train of commits. This also gives us an opportunity to restart to\n  // get to the completed state slightly earlier.\n  //\n  // If there's ambiguity due to batching it's resolved in preference of:\n  // 1) \"delayed\", 2) \"initial render\", 3) \"retry\".\n  //\n  // We want to ensure that a \"busy\" state doesn't get force committed. We want to\n  // ensure that new initial loading states can commit as soon as possible.\n\n\n  suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in\n  // the begin phase to prevent an early bailout.\n\n  suspenseBoundary.lanes = rootRenderLanes;\n  return suspenseBoundary;\n}\n\nfunction throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {\n  // The source fiber did not complete.\n  sourceFiber.flags |= Incomplete;\n\n  {\n    if (isDevToolsPresent) {\n      // If we have pending work still, restore the original updaters\n      restorePendingUpdaters(root, rootRenderLanes);\n    }\n  }\n\n  if (value !== null && typeof value === 'object' && typeof value.then === 'function') {\n    // This is a wakeable. The component suspended.\n    var wakeable = value;\n    resetSuspendedComponent(sourceFiber);\n\n    {\n      if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {\n        markDidThrowWhileHydratingDEV();\n      }\n    }\n\n\n    var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);\n\n    if (suspenseBoundary !== null) {\n      suspenseBoundary.flags &= ~ForceClientRender;\n      markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always\n      // commits fallbacks synchronously, so there are no pings.\n\n      if (suspenseBoundary.mode & ConcurrentMode) {\n        attachPingListener(root, wakeable, rootRenderLanes);\n      }\n\n      attachRetryListener(suspenseBoundary, root, wakeable);\n      return;\n    } else {\n      // No boundary was found. Unless this is a sync update, this is OK.\n      // We can suspend and wait for more data to arrive.\n      if (!includesSyncLane(rootRenderLanes)) {\n        // This is not a sync update. Suspend. Since we're not activating a\n        // Suspense boundary, this will unwind all the way to the root without\n        // performing a second pass to render a fallback. (This is arguably how\n        // refresh transitions should work, too, since we're not going to commit\n        // the fallbacks anyway.)\n        //\n        // This case also applies to initial hydration.\n        attachPingListener(root, wakeable, rootRenderLanes);\n        renderDidSuspendDelayIfPossible();\n        return;\n      } // This is a sync/discrete update. We treat this case like an error\n      // because discrete renders are expected to produce a complete tree\n      // synchronously to maintain consistency with external state.\n\n\n      var uncaughtSuspenseError = 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.'); // If we're outside a transition, fall through to the regular error path.\n      // The error will be caught by the nearest suspense boundary.\n\n      value = uncaughtSuspenseError;\n    }\n  } else {\n    // This is a regular error, not a Suspense wakeable.\n    if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {\n      markDidThrowWhileHydratingDEV();\n\n      var _suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); // If the error was thrown during hydration, we may be able to recover by\n      // discarding the dehydrated content and switching to a client render.\n      // Instead of surfacing the error, find the nearest Suspense boundary\n      // and render it again without hydration.\n\n\n      if (_suspenseBoundary !== null) {\n        if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) {\n          // Set a flag to indicate that we should try rendering the normal\n          // children again, not the fallback.\n          _suspenseBoundary.flags |= ForceClientRender;\n        }\n\n        markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // Even though the user may not be affected by this error, we should\n        // still log it so it can be fixed.\n\n        queueHydrationError(createCapturedValueAtFiber(value, sourceFiber));\n        return;\n      }\n    }\n  }\n\n  value = createCapturedValueAtFiber(value, sourceFiber);\n  renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start\n  // over and traverse parent path again, this time treating the exception\n  // as an error.\n\n  var workInProgress = returnFiber;\n\n  do {\n    switch (workInProgress.tag) {\n      case HostRoot:\n        {\n          var _errorInfo = value;\n          workInProgress.flags |= ShouldCapture;\n          var lane = pickArbitraryLane(rootRenderLanes);\n          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);\n          var update = createRootErrorUpdate(workInProgress, _errorInfo, lane);\n          enqueueCapturedUpdate(workInProgress, update);\n          return;\n        }\n\n      case ClassComponent:\n        // Capture and retry\n        var errorInfo = value;\n        var ctor = workInProgress.type;\n        var instance = workInProgress.stateNode;\n\n        if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {\n          workInProgress.flags |= ShouldCapture;\n\n          var _lane = pickArbitraryLane(rootRenderLanes);\n\n          workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state\n\n          var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane);\n\n          enqueueCapturedUpdate(workInProgress, _update);\n          return;\n        }\n\n        break;\n    }\n\n    workInProgress = workInProgress.return;\n  } while (workInProgress !== null);\n}\n\nfunction getSuspendedCache() {\n  {\n    return null;\n  } // This function is called when a Suspense boundary suspends. It returns the\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar didReceiveUpdate = false;\nvar didWarnAboutBadClass;\nvar didWarnAboutModulePatternComponent;\nvar didWarnAboutContextTypeOnFunctionComponent;\nvar didWarnAboutGetDerivedStateOnFunctionComponent;\nvar didWarnAboutFunctionRefs;\nvar didWarnAboutReassigningProps;\nvar didWarnAboutRevealOrder;\nvar didWarnAboutTailOptions;\nvar didWarnAboutDefaultPropsOnFunctionComponent;\n\n{\n  didWarnAboutBadClass = {};\n  didWarnAboutModulePatternComponent = {};\n  didWarnAboutContextTypeOnFunctionComponent = {};\n  didWarnAboutGetDerivedStateOnFunctionComponent = {};\n  didWarnAboutFunctionRefs = {};\n  didWarnAboutReassigningProps = false;\n  didWarnAboutRevealOrder = {};\n  didWarnAboutTailOptions = {};\n  didWarnAboutDefaultPropsOnFunctionComponent = {};\n}\n\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n  if (current === null) {\n    // If this is a fresh new component that hasn't been rendered yet, we\n    // won't update its child set by applying minimal side-effects. Instead,\n    // we will add them all to the child before it gets rendered. That means\n    // we can optimize this reconciliation pass by not tracking side-effects.\n    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);\n  } else {\n    // If the current child is the same as the work in progress, it means that\n    // we haven't yet started any work on these children. Therefore, we use\n    // the clone algorithm to create a copy of all the current children.\n    // If we had any progressed work already, that is invalid at this point so\n    // let's throw it out.\n    workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);\n  }\n}\n\nfunction forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {\n  // This function is fork of reconcileChildren. It's used in cases where we\n  // want to reconcile without matching against the existing set. This has the\n  // effect of all current children being unmounted; even if the type and key\n  // are the same, the old child is unmounted and a new child is created.\n  //\n  // To do this, we're going to go through the reconcile algorithm twice. In\n  // the first pass, we schedule a deletion for all the current children by\n  // passing null.\n  workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we\n  // pass null in place of where we usually pass the current child set. This has\n  // the effect of remounting all children regardless of whether their\n  // identities match.\n\n  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);\n}\n\nfunction updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {\n  // TODO: current can be non-null here even if the component\n  // hasn't yet mounted. This happens after the first render suspends.\n  // We'll need to figure out if this is fine or can cause issues.\n  {\n    if (workInProgress.type !== workInProgress.elementType) {\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes = Component.propTypes;\n\n      if (innerPropTypes) {\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentNameFromType(Component));\n      }\n    }\n  }\n\n  var render = Component.render;\n  var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent\n\n  var nextChildren;\n  var hasId;\n  prepareToReadContext(workInProgress, renderLanes);\n\n  {\n    markComponentRenderStarted(workInProgress);\n  }\n\n  {\n    ReactCurrentOwner$1.current = workInProgress;\n    setIsRendering(true);\n    nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);\n    hasId = checkDidRenderIdHook();\n\n    if ( workInProgress.mode & StrictLegacyMode) {\n      setIsStrictModeForDevtools(true);\n\n      try {\n        nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);\n        hasId = checkDidRenderIdHook();\n      } finally {\n        setIsStrictModeForDevtools(false);\n      }\n    }\n\n    setIsRendering(false);\n  }\n\n  {\n    markComponentRenderStopped();\n  }\n\n  if (current !== null && !didReceiveUpdate) {\n    bailoutHooks(current, workInProgress, renderLanes);\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n  }\n\n  if (getIsHydrating() && hasId) {\n    pushMaterializedTreeId(workInProgress);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {\n  if (current === null) {\n    var type = Component.type;\n\n    if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.\n    Component.defaultProps === undefined) {\n      var resolvedType = type;\n\n      {\n        resolvedType = resolveFunctionForHotReloading(type);\n      } // If this is a plain function component without default props,\n      // and with only the default shallow comparison, we upgrade it\n      // to a SimpleMemoComponent to allow fast path updates.\n\n\n      workInProgress.tag = SimpleMemoComponent;\n      workInProgress.type = resolvedType;\n\n      {\n        validateFunctionComponentInDev(workInProgress, type);\n      }\n\n      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes);\n    }\n\n    {\n      var innerPropTypes = type.propTypes;\n\n      if (innerPropTypes) {\n        // Inner memo component props aren't currently validated in createElement.\n        // We could move it there, but we'd still need this for lazy code path.\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentNameFromType(type));\n      }\n\n      if ( Component.defaultProps !== undefined) {\n        var componentName = getComponentNameFromType(type) || 'Unknown';\n\n        if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n          error('%s: Support for defaultProps will be removed from memo components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n          didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n        }\n      }\n    }\n\n    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);\n    child.ref = workInProgress.ref;\n    child.return = workInProgress;\n    workInProgress.child = child;\n    return child;\n  }\n\n  {\n    var _type = Component.type;\n    var _innerPropTypes = _type.propTypes;\n\n    if (_innerPropTypes) {\n      // Inner memo component props aren't currently validated in createElement.\n      // We could move it there, but we'd still need this for lazy code path.\n      checkPropTypes(_innerPropTypes, nextProps, // Resolved props\n      'prop', getComponentNameFromType(_type));\n    }\n  }\n\n  var currentChild = current.child; // This is always exactly one child\n\n  var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);\n\n  if (!hasScheduledUpdateOrContext) {\n    // This will be the props with resolved defaultProps,\n    // unlike current.memoizedProps which will be the unresolved ones.\n    var prevProps = currentChild.memoizedProps; // Default to shallow comparison\n\n    var compare = Component.compare;\n    compare = compare !== null ? compare : shallowEqual;\n\n    if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {\n      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n    }\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n  var newChild = createWorkInProgress(currentChild, nextProps);\n  newChild.ref = workInProgress.ref;\n  newChild.return = workInProgress;\n  workInProgress.child = newChild;\n  return newChild;\n}\n\nfunction updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {\n  // TODO: current can be non-null here even if the component\n  // hasn't yet mounted. This happens when the inner render suspends.\n  // We'll need to figure out if this is fine or can cause issues.\n  {\n    if (workInProgress.type !== workInProgress.elementType) {\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var outerMemoType = workInProgress.elementType;\n\n      if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {\n        // We warn when you define propTypes on lazy()\n        // so let's just skip over it to find memo() outer wrapper.\n        // Inner props for memo are validated later.\n        var lazyComponent = outerMemoType;\n        var payload = lazyComponent._payload;\n        var init = lazyComponent._init;\n\n        try {\n          outerMemoType = init(payload);\n        } catch (x) {\n          outerMemoType = null;\n        } // Inner propTypes will be validated in the function component path.\n\n\n        var outerPropTypes = outerMemoType && outerMemoType.propTypes;\n\n        if (outerPropTypes) {\n          checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)\n          'prop', getComponentNameFromType(outerMemoType));\n        }\n      }\n    }\n  }\n\n  if (current !== null) {\n    var prevProps = current.memoizedProps;\n\n    if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.\n     workInProgress.type === current.type )) {\n      didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we\n      // would during a normal fiber bailout.\n      //\n      // We don't have strong guarantees that the props object is referentially\n      // equal during updates where we can't bail out anyway — like if the props\n      // are shallowly equal, but there's a local state or context update in the\n      // same batch.\n      //\n      // However, as a principle, we should aim to make the behavior consistent\n      // across different ways of memoizing a component. For example, React.memo\n      // has a different internal Fiber layout if you pass a normal function\n      // component (SimpleMemoComponent) versus if you pass a different type\n      // like forwardRef (MemoComponent). But this is an implementation detail.\n      // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't\n      // affect whether the props object is reused during a bailout.\n\n      workInProgress.pendingProps = nextProps = prevProps;\n\n      if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n        // The pending lanes were cleared at the beginning of beginWork. We're\n        // about to bail out, but there might be other lanes that weren't\n        // included in the current render. Usually, the priority level of the\n        // remaining updates is accumulated during the evaluation of the\n        // component (i.e. when processing the update queue). But since since\n        // we're bailing out early *without* evaluating the component, we need\n        // to account for it here, too. Reset to the value of the current fiber.\n        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,\n        // because a MemoComponent fiber does not have hooks or an update queue;\n        // rather, it wraps around an inner component, which may or may not\n        // contains hooks.\n        // TODO: Move the reset at in beginWork out of the common path so that\n        // this is no longer necessary.\n        workInProgress.lanes = current.lanes;\n        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n      } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {\n        // This is a special case that only exists for legacy mode.\n        // See https://github.com/facebook/react/pull/19216.\n        didReceiveUpdate = true;\n      }\n    }\n  }\n\n  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);\n}\n\nfunction updateOffscreenComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps;\n  var nextChildren = nextProps.children;\n  var prevState = current !== null ? current.memoizedState : null;\n\n  if (nextProps.mode === 'hidden' || enableLegacyHidden ) {\n    // Rendering a hidden tree.\n    if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n      // In legacy sync mode, don't defer the subtree. Render it now.\n      // TODO: Consider how Offscreen should work with transitions in the future\n      var nextState = {\n        baseLanes: NoLanes,\n        cachePool: null,\n        transitions: null\n      };\n      workInProgress.memoizedState = nextState;\n\n      pushRenderLanes(workInProgress, renderLanes);\n    } else if (!includesSomeLane(renderLanes, OffscreenLane)) {\n      var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out\n      // and resume this tree later.\n\n      var nextBaseLanes;\n\n      if (prevState !== null) {\n        var prevBaseLanes = prevState.baseLanes;\n        nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);\n      } else {\n        nextBaseLanes = renderLanes;\n      } // Schedule this fiber to re-render at offscreen priority. Then bailout.\n\n\n      workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);\n      var _nextState = {\n        baseLanes: nextBaseLanes,\n        cachePool: spawnedCachePool,\n        transitions: null\n      };\n      workInProgress.memoizedState = _nextState;\n      workInProgress.updateQueue = null;\n      // to avoid a push/pop misalignment.\n\n\n      pushRenderLanes(workInProgress, nextBaseLanes);\n\n      return null;\n    } else {\n      // This is the second render. The surrounding visible content has already\n      // committed. Now we resume rendering the hidden tree.\n      // Rendering at offscreen, so we can clear the base lanes.\n      var _nextState2 = {\n        baseLanes: NoLanes,\n        cachePool: null,\n        transitions: null\n      };\n      workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.\n\n      var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;\n\n      pushRenderLanes(workInProgress, subtreeRenderLanes);\n    }\n  } else {\n    // Rendering a visible tree.\n    var _subtreeRenderLanes;\n\n    if (prevState !== null) {\n      // We're going from hidden -> visible.\n      _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes);\n\n      workInProgress.memoizedState = null;\n    } else {\n      // We weren't previously hidden, and we still aren't, so there's nothing\n      // special to do. Need to push to the stack regardless, though, to avoid\n      // a push/pop misalignment.\n      _subtreeRenderLanes = renderLanes;\n    }\n\n    pushRenderLanes(workInProgress, _subtreeRenderLanes);\n  }\n\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n} // Note: These happen to have identical begin phases, for now. We shouldn't hold\n\nfunction updateFragment(current, workInProgress, renderLanes) {\n  var nextChildren = workInProgress.pendingProps;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateMode(current, workInProgress, renderLanes) {\n  var nextChildren = workInProgress.pendingProps.children;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateProfiler(current, workInProgress, renderLanes) {\n  {\n    workInProgress.flags |= Update;\n\n    {\n      // Reset effect durations for the next eventual effect phase.\n      // These are reset during render to allow the DevTools commit hook a chance to read them,\n      var stateNode = workInProgress.stateNode;\n      stateNode.effectDuration = 0;\n      stateNode.passiveEffectDuration = 0;\n    }\n  }\n\n  var nextProps = workInProgress.pendingProps;\n  var nextChildren = nextProps.children;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction markRef(current, workInProgress) {\n  var ref = workInProgress.ref;\n\n  if (current === null && ref !== null || current !== null && current.ref !== ref) {\n    // Schedule a Ref effect\n    workInProgress.flags |= Ref;\n\n    {\n      workInProgress.flags |= RefStatic;\n    }\n  }\n}\n\nfunction updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {\n  {\n    if (workInProgress.type !== workInProgress.elementType) {\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes = Component.propTypes;\n\n      if (innerPropTypes) {\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentNameFromType(Component));\n      }\n    }\n  }\n\n  var context;\n\n  {\n    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);\n    context = getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  var nextChildren;\n  var hasId;\n  prepareToReadContext(workInProgress, renderLanes);\n\n  {\n    markComponentRenderStarted(workInProgress);\n  }\n\n  {\n    ReactCurrentOwner$1.current = workInProgress;\n    setIsRendering(true);\n    nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);\n    hasId = checkDidRenderIdHook();\n\n    if ( workInProgress.mode & StrictLegacyMode) {\n      setIsStrictModeForDevtools(true);\n\n      try {\n        nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);\n        hasId = checkDidRenderIdHook();\n      } finally {\n        setIsStrictModeForDevtools(false);\n      }\n    }\n\n    setIsRendering(false);\n  }\n\n  {\n    markComponentRenderStopped();\n  }\n\n  if (current !== null && !didReceiveUpdate) {\n    bailoutHooks(current, workInProgress, renderLanes);\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n  }\n\n  if (getIsHydrating() && hasId) {\n    pushMaterializedTreeId(workInProgress);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {\n  {\n    // This is used by DevTools to force a boundary to error.\n    switch (shouldError(workInProgress)) {\n      case false:\n        {\n          var _instance = workInProgress.stateNode;\n          var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack.\n          // Is there a better way to do this?\n\n          var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context);\n          var state = tempInstance.state;\n\n          _instance.updater.enqueueSetState(_instance, state, null);\n\n          break;\n        }\n\n      case true:\n        {\n          workInProgress.flags |= DidCapture;\n          workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes\n\n          var error$1 = new Error('Simulated error coming from DevTools');\n          var lane = pickArbitraryLane(renderLanes);\n          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state\n\n          var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane);\n          enqueueCapturedUpdate(workInProgress, update);\n          break;\n        }\n    }\n\n    if (workInProgress.type !== workInProgress.elementType) {\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes = Component.propTypes;\n\n      if (innerPropTypes) {\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentNameFromType(Component));\n      }\n    }\n  } // Push context providers early to prevent context stack mismatches.\n  // During mounting we don't know the child context yet as the instance doesn't exist.\n  // We will invalidate the child context in finishClassComponent() right after rendering.\n\n\n  var hasContext;\n\n  if (isContextProvider(Component)) {\n    hasContext = true;\n    pushContextProvider(workInProgress);\n  } else {\n    hasContext = false;\n  }\n\n  prepareToReadContext(workInProgress, renderLanes);\n  var instance = workInProgress.stateNode;\n  var shouldUpdate;\n\n  if (instance === null) {\n    resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance.\n\n    constructClassInstance(workInProgress, Component, nextProps);\n    mountClassInstance(workInProgress, Component, nextProps, renderLanes);\n    shouldUpdate = true;\n  } else if (current === null) {\n    // In a resume, we'll already have an instance we can reuse.\n    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);\n  } else {\n    shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);\n  }\n\n  var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);\n\n  {\n    var inst = workInProgress.stateNode;\n\n    if (shouldUpdate && inst.props !== nextProps) {\n      if (!didWarnAboutReassigningProps) {\n        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromFiber(workInProgress) || 'a component');\n      }\n\n      didWarnAboutReassigningProps = true;\n    }\n  }\n\n  return nextUnitOfWork;\n}\n\nfunction finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {\n  // Refs should update even if shouldComponentUpdate returns false\n  markRef(current, workInProgress);\n  var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;\n\n  if (!shouldUpdate && !didCaptureError) {\n    // Context providers should defer to sCU for rendering\n    if (hasContext) {\n      invalidateContextProvider(workInProgress, Component, false);\n    }\n\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n  }\n\n  var instance = workInProgress.stateNode; // Rerender\n\n  ReactCurrentOwner$1.current = workInProgress;\n  var nextChildren;\n\n  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {\n    // If we captured an error, but getDerivedStateFromError is not defined,\n    // unmount all the children. componentDidCatch will schedule an update to\n    // re-render a fallback. This is temporary until we migrate everyone to\n    // the new API.\n    // TODO: Warn in a future release.\n    nextChildren = null;\n\n    {\n      stopProfilerTimerIfRunning();\n    }\n  } else {\n    {\n      markComponentRenderStarted(workInProgress);\n    }\n\n    {\n      setIsRendering(true);\n      nextChildren = instance.render();\n\n      if ( workInProgress.mode & StrictLegacyMode) {\n        setIsStrictModeForDevtools(true);\n\n        try {\n          instance.render();\n        } finally {\n          setIsStrictModeForDevtools(false);\n        }\n      }\n\n      setIsRendering(false);\n    }\n\n    {\n      markComponentRenderStopped();\n    }\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n\n  if (current !== null && didCaptureError) {\n    // If we're recovering from an error, reconcile without reusing any of\n    // the existing children. Conceptually, the normal children and the children\n    // that are shown on error are two different sets, so we shouldn't reuse\n    // normal children even if their identities match.\n    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);\n  } else {\n    reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  } // Memoize state using the values we just used to render.\n  // TODO: Restructure so we never read values from the instance.\n\n\n  workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.\n\n  if (hasContext) {\n    invalidateContextProvider(workInProgress, Component, true);\n  }\n\n  return workInProgress.child;\n}\n\nfunction pushHostRootContext(workInProgress) {\n  var root = workInProgress.stateNode;\n\n  if (root.pendingContext) {\n    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);\n  } else if (root.context) {\n    // Should always be set\n    pushTopLevelContextObject(workInProgress, root.context, false);\n  }\n\n  pushHostContainer(workInProgress, root.containerInfo);\n}\n\nfunction updateHostRoot(current, workInProgress, renderLanes) {\n  pushHostRootContext(workInProgress);\n\n  if (current === null) {\n    throw new Error('Should have a current fiber. This is a bug in React.');\n  }\n\n  var nextProps = workInProgress.pendingProps;\n  var prevState = workInProgress.memoizedState;\n  var prevChildren = prevState.element;\n  cloneUpdateQueue(current, workInProgress);\n  processUpdateQueue(workInProgress, nextProps, null, renderLanes);\n  var nextState = workInProgress.memoizedState;\n  var root = workInProgress.stateNode;\n  // being called \"element\".\n\n\n  var nextChildren = nextState.element;\n\n  if ( prevState.isDehydrated) {\n    // This is a hydration root whose shell has not yet hydrated. We should\n    // attempt to hydrate.\n    // Flip isDehydrated to false to indicate that when this render\n    // finishes, the root will no longer be dehydrated.\n    var overrideState = {\n      element: nextChildren,\n      isDehydrated: false,\n      cache: nextState.cache,\n      pendingSuspenseBoundaries: nextState.pendingSuspenseBoundaries,\n      transitions: nextState.transitions\n    };\n    var updateQueue = workInProgress.updateQueue; // `baseState` can always be the last state because the root doesn't\n    // have reducer functions so it doesn't need rebasing.\n\n    updateQueue.baseState = overrideState;\n    workInProgress.memoizedState = overrideState;\n\n    if (workInProgress.flags & ForceClientRender) {\n      // Something errored during a previous attempt to hydrate the shell, so we\n      // forced a client render.\n      var recoverableError = createCapturedValueAtFiber(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.'), workInProgress);\n      return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError);\n    } else if (nextChildren !== prevChildren) {\n      var _recoverableError = createCapturedValueAtFiber(new Error('This root received an early update, before anything was able ' + 'hydrate. Switched the entire root to client rendering.'), workInProgress);\n\n      return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, _recoverableError);\n    } else {\n      // The outermost shell has not hydrated yet. Start hydrating.\n      enterHydrationState(workInProgress);\n\n      var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);\n      workInProgress.child = child;\n      var node = child;\n\n      while (node) {\n        // Mark each child as hydrating. This is a fast path to know whether this\n        // tree is part of a hydrating tree. This is used to determine if a child\n        // node has fully mounted yet, and for scheduling event replaying.\n        // Conceptually this is similar to Placement in that a new subtree is\n        // inserted into the React tree here. It just happens to not need DOM\n        // mutations because it already exists.\n        node.flags = node.flags & ~Placement | Hydrating;\n        node = node.sibling;\n      }\n    }\n  } else {\n    // Root is not dehydrated. Either this is a client-only root, or it\n    // already hydrated.\n    resetHydrationState();\n\n    if (nextChildren === prevChildren) {\n      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n    }\n\n    reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  }\n\n  return workInProgress.child;\n}\n\nfunction mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError) {\n  // Revert to client rendering.\n  resetHydrationState();\n  queueHydrationError(recoverableError);\n  workInProgress.flags |= ForceClientRender;\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateHostComponent(current, workInProgress, renderLanes) {\n  pushHostContext(workInProgress);\n\n  if (current === null) {\n    tryToClaimNextHydratableInstance(workInProgress);\n  }\n\n  var type = workInProgress.type;\n  var nextProps = workInProgress.pendingProps;\n  var prevProps = current !== null ? current.memoizedProps : null;\n  var nextChildren = nextProps.children;\n  var isDirectTextChild = shouldSetTextContent(type, nextProps);\n\n  if (isDirectTextChild) {\n    // We special case a direct text child of a host node. This is a common\n    // case. We won't handle it as a reified child. We will instead handle\n    // this in the host environment that also has access to this prop. That\n    // avoids allocating another HostText fiber and traversing it.\n    nextChildren = null;\n  } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {\n    // If we're switching from a direct text child to a normal child, or to\n    // empty, we need to schedule the text content to be reset.\n    workInProgress.flags |= ContentReset;\n  }\n\n  markRef(current, workInProgress);\n  reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction updateHostText(current, workInProgress) {\n  if (current === null) {\n    tryToClaimNextHydratableInstance(workInProgress);\n  } // Nothing to do here. This is terminal. We'll do the completion step\n  // immediately after.\n\n\n  return null;\n}\n\nfunction mountLazyComponent(_current, workInProgress, elementType, renderLanes) {\n  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);\n  var props = workInProgress.pendingProps;\n  var lazyComponent = elementType;\n  var payload = lazyComponent._payload;\n  var init = lazyComponent._init;\n  var Component = init(payload); // Store the unwrapped component in the type.\n\n  workInProgress.type = Component;\n  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);\n  var resolvedProps = resolveDefaultProps(Component, props);\n  var child;\n\n  switch (resolvedTag) {\n    case FunctionComponent:\n      {\n        {\n          validateFunctionComponentInDev(workInProgress, Component);\n          workInProgress.type = Component = resolveFunctionForHotReloading(Component);\n        }\n\n        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);\n        return child;\n      }\n\n    case ClassComponent:\n      {\n        {\n          workInProgress.type = Component = resolveClassForHotReloading(Component);\n        }\n\n        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);\n        return child;\n      }\n\n    case ForwardRef:\n      {\n        {\n          workInProgress.type = Component = resolveForwardRefForHotReloading(Component);\n        }\n\n        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);\n        return child;\n      }\n\n    case MemoComponent:\n      {\n        {\n          if (workInProgress.type !== workInProgress.elementType) {\n            var outerPropTypes = Component.propTypes;\n\n            if (outerPropTypes) {\n              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only\n              'prop', getComponentNameFromType(Component));\n            }\n          }\n        }\n\n        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too\n        renderLanes);\n        return child;\n      }\n  }\n\n  var hint = '';\n\n  {\n    if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {\n      hint = ' Did you wrap a component in React.lazy() more than once?';\n    }\n  } // This message intentionally doesn't mention ForwardRef or MemoComponent\n  // because the fact that it's a separate type of work is an\n  // implementation detail.\n\n\n  throw new Error(\"Element type is invalid. Received a promise that resolves to: \" + Component + \". \" + (\"Lazy element type must resolve to a class or function.\" + hint));\n}\n\nfunction mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {\n  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again.\n\n  workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`\n  // Push context providers early to prevent context stack mismatches.\n  // During mounting we don't know the child context yet as the instance doesn't exist.\n  // We will invalidate the child context in finishClassComponent() right after rendering.\n\n  var hasContext;\n\n  if (isContextProvider(Component)) {\n    hasContext = true;\n    pushContextProvider(workInProgress);\n  } else {\n    hasContext = false;\n  }\n\n  prepareToReadContext(workInProgress, renderLanes);\n  constructClassInstance(workInProgress, Component, nextProps);\n  mountClassInstance(workInProgress, Component, nextProps, renderLanes);\n  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);\n}\n\nfunction mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {\n  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);\n  var props = workInProgress.pendingProps;\n  var context;\n\n  {\n    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);\n    context = getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  prepareToReadContext(workInProgress, renderLanes);\n  var value;\n  var hasId;\n\n  {\n    markComponentRenderStarted(workInProgress);\n  }\n\n  {\n    if (Component.prototype && typeof Component.prototype.render === 'function') {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutBadClass[componentName]) {\n        error(\"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.', componentName, componentName);\n\n        didWarnAboutBadClass[componentName] = true;\n      }\n    }\n\n    if (workInProgress.mode & StrictLegacyMode) {\n      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);\n    }\n\n    setIsRendering(true);\n    ReactCurrentOwner$1.current = workInProgress;\n    value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);\n    hasId = checkDidRenderIdHook();\n    setIsRendering(false);\n  }\n\n  {\n    markComponentRenderStopped();\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n\n  {\n    // Support for module components is deprecated and is removed behind a flag.\n    // Whether or not it would crash later, we want to show a good message in DEV first.\n    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n      var _componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName]) {\n        error('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.', _componentName, _componentName, _componentName);\n\n        didWarnAboutModulePatternComponent[_componentName] = true;\n      }\n    }\n  }\n\n  if ( // Run these checks in production only if the flag is off.\n  // Eventually we'll delete this branch altogether.\n   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {\n    {\n      var _componentName2 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutModulePatternComponent[_componentName2]) {\n        error('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.', _componentName2, _componentName2, _componentName2);\n\n        didWarnAboutModulePatternComponent[_componentName2] = true;\n      }\n    } // Proceed under the assumption that this is a class instance\n\n\n    workInProgress.tag = ClassComponent; // Throw out any hooks that were used.\n\n    workInProgress.memoizedState = null;\n    workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.\n    // During mounting we don't know the child context yet as the instance doesn't exist.\n    // We will invalidate the child context in finishClassComponent() right after rendering.\n\n    var hasContext = false;\n\n    if (isContextProvider(Component)) {\n      hasContext = true;\n      pushContextProvider(workInProgress);\n    } else {\n      hasContext = false;\n    }\n\n    workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;\n    initializeUpdateQueue(workInProgress);\n    adoptClassInstance(workInProgress, value);\n    mountClassInstance(workInProgress, Component, props, renderLanes);\n    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);\n  } else {\n    // Proceed under the assumption that this is a function component\n    workInProgress.tag = FunctionComponent;\n\n    {\n\n      if ( workInProgress.mode & StrictLegacyMode) {\n        setIsStrictModeForDevtools(true);\n\n        try {\n          value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);\n          hasId = checkDidRenderIdHook();\n        } finally {\n          setIsStrictModeForDevtools(false);\n        }\n      }\n    }\n\n    if (getIsHydrating() && hasId) {\n      pushMaterializedTreeId(workInProgress);\n    }\n\n    reconcileChildren(null, workInProgress, value, renderLanes);\n\n    {\n      validateFunctionComponentInDev(workInProgress, Component);\n    }\n\n    return workInProgress.child;\n  }\n}\n\nfunction validateFunctionComponentInDev(workInProgress, Component) {\n  {\n    if (Component) {\n      if (Component.childContextTypes) {\n        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');\n      }\n    }\n\n    if (workInProgress.ref !== null) {\n      var info = '';\n      var ownerName = getCurrentFiberOwnerNameInDevOrNull();\n\n      if (ownerName) {\n        info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n      }\n\n      var warningKey = ownerName || '';\n      var debugSource = workInProgress._debugSource;\n\n      if (debugSource) {\n        warningKey = debugSource.fileName + ':' + debugSource.lineNumber;\n      }\n\n      if (!didWarnAboutFunctionRefs[warningKey]) {\n        didWarnAboutFunctionRefs[warningKey] = true;\n\n        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);\n      }\n    }\n\n    if ( Component.defaultProps !== undefined) {\n      var componentName = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {\n        error('%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);\n\n        didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;\n      }\n    }\n\n    if (typeof Component.getDerivedStateFromProps === 'function') {\n      var _componentName3 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {\n        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);\n\n        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;\n      }\n    }\n\n    if (typeof Component.contextType === 'object' && Component.contextType !== null) {\n      var _componentName4 = getComponentNameFromType(Component) || 'Unknown';\n\n      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {\n        error('%s: Function components do not support contextType.', _componentName4);\n\n        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;\n      }\n    }\n  }\n}\n\nvar SUSPENDED_MARKER = {\n  dehydrated: null,\n  treeContext: null,\n  retryLane: NoLane\n};\n\nfunction mountSuspenseOffscreenState(renderLanes) {\n  return {\n    baseLanes: renderLanes,\n    cachePool: getSuspendedCache(),\n    transitions: null\n  };\n}\n\nfunction updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {\n  var cachePool = null;\n\n  return {\n    baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes),\n    cachePool: cachePool,\n    transitions: prevOffscreenState.transitions\n  };\n} // TODO: Probably should inline this back\n\n\nfunction shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {\n  // If we're already showing a fallback, there are cases where we need to\n  // remain on that fallback regardless of whether the content has resolved.\n  // For example, SuspenseList coordinates when nested content appears.\n  if (current !== null) {\n    var suspenseState = current.memoizedState;\n\n    if (suspenseState === null) {\n      // Currently showing content. Don't hide it, even if ForceSuspenseFallback\n      // is true. More precise name might be \"ForceRemainSuspenseFallback\".\n      // Note: This is a factoring smell. Can't remain on a fallback if there's\n      // no fallback to remain on.\n      return false;\n    }\n  } // Not currently showing content. Consult the Suspense context.\n\n\n  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);\n}\n\nfunction getRemainingWorkInPrimaryTree(current, renderLanes) {\n  // TODO: Should not remove render lanes that were pinged during this render\n  return removeLanes(current.childLanes, renderLanes);\n}\n\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.\n\n  {\n    if (shouldSuspend(workInProgress)) {\n      workInProgress.flags |= DidCapture;\n    }\n  }\n\n  var suspenseContext = suspenseStackCursor.current;\n  var showFallback = false;\n  var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;\n\n  if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {\n    // Something in this boundary's subtree already suspended. Switch to\n    // rendering the fallback children.\n    showFallback = true;\n    workInProgress.flags &= ~DidCapture;\n  } else {\n    // Attempting the main content\n    if (current === null || current.memoizedState !== null) {\n      // This is a new mount or this boundary is already showing a fallback state.\n      // Mark this subtree context as having at least one invisible parent that could\n      // handle the fallback state.\n      // Avoided boundaries are not considered since they cannot handle preferred fallback states.\n      {\n        suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);\n      }\n    }\n  }\n\n  suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n  pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense\n  // boundary's children. This involves some custom reconciliation logic. Two\n  // main reasons this is so complicated.\n  //\n  // First, Legacy Mode has different semantics for backwards compatibility. The\n  // primary tree will commit in an inconsistent state, so when we do the\n  // second pass to render the fallback, we do some exceedingly, uh, clever\n  // hacks to make that not totally break. Like transferring effects and\n  // deletions from hidden tree. In Concurrent Mode, it's much simpler,\n  // because we bailout on the primary tree completely and leave it in its old\n  // state, no effects. Same as what we do for Offscreen (except that\n  // Offscreen doesn't have the first render pass).\n  //\n  // Second is hydration. During hydration, the Suspense fiber has a slightly\n  // different layout, where the child points to a dehydrated fragment, which\n  // contains the DOM rendered by the server.\n  //\n  // Third, even if you set all that aside, Suspense is like error boundaries in\n  // that we first we try to render one tree, and if that fails, we render again\n  // and switch to a different tree. Like a try/catch block. So we have to track\n  // which branch we're currently rendering. Ideally we would model this using\n  // a stack.\n\n  if (current === null) {\n    // Initial mount\n    // Special path for hydration\n    // If we're currently hydrating, try to hydrate this boundary.\n    tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.\n\n    var suspenseState = workInProgress.memoizedState;\n\n    if (suspenseState !== null) {\n      var dehydrated = suspenseState.dehydrated;\n\n      if (dehydrated !== null) {\n        return mountDehydratedSuspenseComponent(workInProgress, dehydrated);\n      }\n    }\n\n    var nextPrimaryChildren = nextProps.children;\n    var nextFallbackChildren = nextProps.fallback;\n\n    if (showFallback) {\n      var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);\n      var primaryChildFragment = workInProgress.child;\n      primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);\n      workInProgress.memoizedState = SUSPENDED_MARKER;\n\n      return fallbackFragment;\n    } else {\n      return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);\n    }\n  } else {\n    // This is an update.\n    // Special path for hydration\n    var prevState = current.memoizedState;\n\n    if (prevState !== null) {\n      var _dehydrated = prevState.dehydrated;\n\n      if (_dehydrated !== null) {\n        return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes);\n      }\n    }\n\n    if (showFallback) {\n      var _nextFallbackChildren = nextProps.fallback;\n      var _nextPrimaryChildren = nextProps.children;\n      var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes);\n      var _primaryChildFragment2 = workInProgress.child;\n      var prevOffscreenState = current.child.memoizedState;\n      _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);\n\n      _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);\n      workInProgress.memoizedState = SUSPENDED_MARKER;\n      return fallbackChildFragment;\n    } else {\n      var _nextPrimaryChildren2 = nextProps.children;\n\n      var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes);\n\n      workInProgress.memoizedState = null;\n      return _primaryChildFragment3;\n    }\n  }\n}\n\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {\n  var mode = workInProgress.mode;\n  var primaryChildProps = {\n    mode: 'visible',\n    children: primaryChildren\n  };\n  var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);\n  primaryChildFragment.return = workInProgress;\n  workInProgress.child = primaryChildFragment;\n  return primaryChildFragment;\n}\n\nfunction mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n  var mode = workInProgress.mode;\n  var progressedPrimaryFragment = workInProgress.child;\n  var primaryChildProps = {\n    mode: 'hidden',\n    children: primaryChildren\n  };\n  var primaryChildFragment;\n  var fallbackChildFragment;\n\n  if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) {\n    // In legacy mode, we commit the primary tree as if it successfully\n    // completed, even though it's in an inconsistent state.\n    primaryChildFragment = progressedPrimaryFragment;\n    primaryChildFragment.childLanes = NoLanes;\n    primaryChildFragment.pendingProps = primaryChildProps;\n\n    if ( workInProgress.mode & ProfileMode) {\n      // Reset the durations from the first pass so they aren't included in the\n      // final amounts. This seems counterintuitive, since we're intentionally\n      // not measuring part of the render phase, but this makes it match what we\n      // do in Concurrent Mode.\n      primaryChildFragment.actualDuration = 0;\n      primaryChildFragment.actualStartTime = -1;\n      primaryChildFragment.selfBaseDuration = 0;\n      primaryChildFragment.treeBaseDuration = 0;\n    }\n\n    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);\n  } else {\n    primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);\n    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);\n  }\n\n  primaryChildFragment.return = workInProgress;\n  fallbackChildFragment.return = workInProgress;\n  primaryChildFragment.sibling = fallbackChildFragment;\n  workInProgress.child = primaryChildFragment;\n  return fallbackChildFragment;\n}\n\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) {\n  // The props argument to `createFiberFromOffscreen` is `any` typed, so we use\n  // this wrapper function to constrain it.\n  return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null);\n}\n\nfunction updateWorkInProgressOffscreenFiber(current, offscreenProps) {\n  // The props argument to `createWorkInProgress` is `any` typed, so we use this\n  // wrapper function to constrain it.\n  return createWorkInProgress(current, offscreenProps);\n}\n\nfunction updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {\n  var currentPrimaryChildFragment = current.child;\n  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;\n  var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {\n    mode: 'visible',\n    children: primaryChildren\n  });\n\n  if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n    primaryChildFragment.lanes = renderLanes;\n  }\n\n  primaryChildFragment.return = workInProgress;\n  primaryChildFragment.sibling = null;\n\n  if (currentFallbackChildFragment !== null) {\n    // Delete the fallback child fragment\n    var deletions = workInProgress.deletions;\n\n    if (deletions === null) {\n      workInProgress.deletions = [currentFallbackChildFragment];\n      workInProgress.flags |= ChildDeletion;\n    } else {\n      deletions.push(currentFallbackChildFragment);\n    }\n  }\n\n  workInProgress.child = primaryChildFragment;\n  return primaryChildFragment;\n}\n\nfunction updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n  var mode = workInProgress.mode;\n  var currentPrimaryChildFragment = current.child;\n  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;\n  var primaryChildProps = {\n    mode: 'hidden',\n    children: primaryChildren\n  };\n  var primaryChildFragment;\n\n  if ( // In legacy mode, we commit the primary tree as if it successfully\n  // completed, even though it's in an inconsistent state.\n  (mode & ConcurrentMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was\n  // already cloned. In legacy mode, the only case where this isn't true is\n  // when DevTools forces us to display a fallback; we skip the first render\n  // pass entirely and go straight to rendering the fallback. (In Concurrent\n  // Mode, SuspenseList can also trigger this scenario, but this is a legacy-\n  // only codepath.)\n  workInProgress.child !== currentPrimaryChildFragment) {\n    var progressedPrimaryFragment = workInProgress.child;\n    primaryChildFragment = progressedPrimaryFragment;\n    primaryChildFragment.childLanes = NoLanes;\n    primaryChildFragment.pendingProps = primaryChildProps;\n\n    if ( workInProgress.mode & ProfileMode) {\n      // Reset the durations from the first pass so they aren't included in the\n      // final amounts. This seems counterintuitive, since we're intentionally\n      // not measuring part of the render phase, but this makes it match what we\n      // do in Concurrent Mode.\n      primaryChildFragment.actualDuration = 0;\n      primaryChildFragment.actualStartTime = -1;\n      primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;\n      primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;\n    } // The fallback fiber was added as a deletion during the first pass.\n    // However, since we're going to remain on the fallback, we no longer want\n    // to delete it.\n\n\n    workInProgress.deletions = null;\n  } else {\n    primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too.\n    // (We don't do this in legacy mode, because in legacy mode we don't re-use\n    // the current tree; see previous branch.)\n\n    primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask;\n  }\n\n  var fallbackChildFragment;\n\n  if (currentFallbackChildFragment !== null) {\n    fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);\n  } else {\n    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already\n    // mounted but this is a new fiber.\n\n    fallbackChildFragment.flags |= Placement;\n  }\n\n  fallbackChildFragment.return = workInProgress;\n  primaryChildFragment.return = workInProgress;\n  primaryChildFragment.sibling = fallbackChildFragment;\n  workInProgress.child = primaryChildFragment;\n  return fallbackChildFragment;\n}\n\nfunction retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) {\n  // Falling back to client rendering. Because this has performance\n  // implications, it's considered a recoverable error, even though the user\n  // likely won't observe anything wrong with the UI.\n  //\n  // The error is passed in as an argument to enforce that every caller provide\n  // a custom message, or explicitly opt out (currently the only path that opts\n  // out is legacy mode; every concurrent path provides an error).\n  if (recoverableError !== null) {\n    queueHydrationError(recoverableError);\n  } // This will add the old fiber to the deletion list\n\n\n  reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated.\n\n  var nextProps = workInProgress.pendingProps;\n  var primaryChildren = nextProps.children;\n  var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already\n  // mounted but this is a new fiber.\n\n  primaryChildFragment.flags |= Placement;\n  workInProgress.memoizedState = null;\n  return primaryChildFragment;\n}\n\nfunction mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {\n  var fiberMode = workInProgress.mode;\n  var primaryChildProps = {\n    mode: 'visible',\n    children: primaryChildren\n  };\n  var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode);\n  var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense\n  // boundary) already mounted but this is a new fiber.\n\n  fallbackChildFragment.flags |= Placement;\n  primaryChildFragment.return = workInProgress;\n  fallbackChildFragment.return = workInProgress;\n  primaryChildFragment.sibling = fallbackChildFragment;\n  workInProgress.child = primaryChildFragment;\n\n  if ((workInProgress.mode & ConcurrentMode) !== NoMode) {\n    // We will have dropped the effect list which contains the\n    // deletion. We need to reconcile to delete the current child.\n    reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n  }\n\n  return fallbackChildFragment;\n}\n\nfunction mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) {\n  // During the first pass, we'll bail out and not drill into the children.\n  // Instead, we'll leave the content in place and try to hydrate it later.\n  if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n    {\n      error('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.');\n    }\n\n    workInProgress.lanes = laneToLanes(SyncLane);\n  } else if (isSuspenseInstanceFallback(suspenseInstance)) {\n    // This is a client-only boundary. Since we won't get any content from the server\n    // for this, we need to schedule that at a higher priority based on when it would\n    // have timed out. In theory we could render it in this pass but it would have the\n    // wrong priority associated with it and will prevent hydration of parent path.\n    // Instead, we'll leave work left on it to render it in a separate commit.\n    // TODO This time should be the time at which the server rendered response that is\n    // a parent to this boundary was displayed. However, since we currently don't have\n    // a protocol to transfer that time, we'll just estimate it by using the current\n    // time. This will mean that Suspense timeouts are slightly shifted to later than\n    // they should be.\n    // Schedule a normal pri update to render this content.\n    workInProgress.lanes = laneToLanes(DefaultHydrationLane);\n  } else {\n    // We'll continue hydrating the rest at offscreen priority since we'll already\n    // be showing the right content coming from the server, it is no rush.\n    workInProgress.lanes = laneToLanes(OffscreenLane);\n  }\n\n  return null;\n}\n\nfunction updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) {\n  if (!didSuspend) {\n    // This is the first render pass. Attempt to hydrate.\n    // We should never be hydrating at this point because it is the first pass,\n    // but after we've already committed once.\n    warnIfHydrating();\n\n    if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, // TODO: When we delete legacy mode, we should make this error argument\n      // required — every concurrent mode path that causes hydration to\n      // de-opt to client rendering should have an error message.\n      null);\n    }\n\n    if (isSuspenseInstanceFallback(suspenseInstance)) {\n      // This boundary is in a permanent fallback state. In this case, we'll never\n      // get an update and we'll never be able to hydrate the final content. Let's just try the\n      // client side render instead.\n      var digest, message, stack;\n\n      {\n        var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(suspenseInstance);\n\n        digest = _getSuspenseInstanceF.digest;\n        message = _getSuspenseInstanceF.message;\n        stack = _getSuspenseInstanceF.stack;\n      }\n\n      var error;\n\n      if (message) {\n        // eslint-disable-next-line react-internal/prod-error-codes\n        error = new Error(message);\n      } else {\n        error = new Error('The server could not finish this Suspense boundary, likely ' + 'due to an error during server rendering. Switched to ' + 'client rendering.');\n      }\n\n      var capturedValue = createCapturedValue(error, digest, stack);\n      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue);\n    }\n    // any context has changed, we need to treat is as if the input might have changed.\n\n\n    var hasContextChanged = includesSomeLane(renderLanes, current.childLanes);\n\n    if (didReceiveUpdate || hasContextChanged) {\n      // This boundary has changed since the first render. This means that we are now unable to\n      // hydrate it. We might still be able to hydrate it using a higher priority lane.\n      var root = getWorkInProgressRoot();\n\n      if (root !== null) {\n        var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes);\n\n        if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) {\n          // Intentionally mutating since this render will get interrupted. This\n          // is one of the very rare times where we mutate the current tree\n          // during the render phase.\n          suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render\n\n          var eventTime = NoTimestamp;\n          enqueueConcurrentRenderForLane(current, attemptHydrationAtLane);\n          scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime);\n        }\n      } // If we have scheduled higher pri work above, this will probably just abort the render\n      // since we now have higher priority work, but in case it doesn't, we need to prepare to\n      // render something, if we time out. Even if that requires us to delete everything and\n      // skip hydration.\n      // Delay having to do this as long as the suspense timeout allows us.\n\n\n      renderDidSuspendDelayIfPossible();\n\n      var _capturedValue = createCapturedValue(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.'));\n\n      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue);\n    } else if (isSuspenseInstancePending(suspenseInstance)) {\n      // This component is still pending more data from the server, so we can't hydrate its\n      // content. We treat it as if this component suspended itself. It might seem as if\n      // we could just try to render it client-side instead. However, this will perform a\n      // lot of unnecessary work and is unlikely to complete since it often will suspend\n      // on missing data anyway. Additionally, the server might be able to render more\n      // than we can on the client yet. In that case we'd end up with more fallback states\n      // on the client than if we just leave it alone. If the server times out or errors\n      // these should update this boundary to the permanent Fallback state instead.\n      // Mark it as having captured (i.e. suspended).\n      workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment.\n\n      workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result.\n\n      var retry = retryDehydratedSuspenseBoundary.bind(null, current);\n      registerSuspenseInstanceRetry(suspenseInstance, retry);\n      return null;\n    } else {\n      // This is the first attempt.\n      reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext);\n      var primaryChildren = nextProps.children;\n      var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this\n      // tree is part of a hydrating tree. This is used to determine if a child\n      // node has fully mounted yet, and for scheduling event replaying.\n      // Conceptually this is similar to Placement in that a new subtree is\n      // inserted into the React tree here. It just happens to not need DOM\n      // mutations because it already exists.\n\n      primaryChildFragment.flags |= Hydrating;\n      return primaryChildFragment;\n    }\n  } else {\n    // This is the second render pass. We already attempted to hydrated, but\n    // something either suspended or errored.\n    if (workInProgress.flags & ForceClientRender) {\n      // Something errored during hydration. Try again without hydrating.\n      workInProgress.flags &= ~ForceClientRender;\n\n      var _capturedValue2 = createCapturedValue(new Error('There was an error while hydrating this Suspense boundary. ' + 'Switched to client rendering.'));\n\n      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2);\n    } else if (workInProgress.memoizedState !== null) {\n      // Something suspended and we should still be in dehydrated mode.\n      // Leave the existing child in place.\n      workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there\n      // but the normal suspense pass doesn't.\n\n      workInProgress.flags |= DidCapture;\n      return null;\n    } else {\n      // Suspended but we should no longer be in dehydrated mode.\n      // Therefore we now have to render the fallback.\n      var nextPrimaryChildren = nextProps.children;\n      var nextFallbackChildren = nextProps.fallback;\n      var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);\n      var _primaryChildFragment4 = workInProgress.child;\n      _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes);\n      workInProgress.memoizedState = SUSPENDED_MARKER;\n      return fallbackChildFragment;\n    }\n  }\n}\n\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n  fiber.lanes = mergeLanes(fiber.lanes, renderLanes);\n  var alternate = fiber.alternate;\n\n  if (alternate !== null) {\n    alternate.lanes = mergeLanes(alternate.lanes, renderLanes);\n  }\n\n  scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\n\nfunction propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {\n  // Mark any Suspense boundaries with fallbacks as having work to do.\n  // If they were previously forced into fallbacks, they may now be able\n  // to unblock.\n  var node = firstChild;\n\n  while (node !== null) {\n    if (node.tag === SuspenseComponent) {\n      var state = node.memoizedState;\n\n      if (state !== null) {\n        scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);\n      }\n    } else if (node.tag === SuspenseListComponent) {\n      // If the tail is hidden there might not be an Suspense boundaries\n      // to schedule work on. In this case we have to schedule it on the\n      // list itself.\n      // We don't have to traverse to the children of the list since\n      // the list will propagate the change when it rerenders.\n      scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);\n    } else if (node.child !== null) {\n      node.child.return = node;\n      node = node.child;\n      continue;\n    }\n\n    if (node === workInProgress) {\n      return;\n    }\n\n    while (node.sibling === null) {\n      if (node.return === null || node.return === workInProgress) {\n        return;\n      }\n\n      node = node.return;\n    }\n\n    node.sibling.return = node.return;\n    node = node.sibling;\n  }\n}\n\nfunction findLastContentRow(firstChild) {\n  // This is going to find the last row among these children that is already\n  // showing content on the screen, as opposed to being in fallback state or\n  // new. If a row has multiple Suspense boundaries, any of them being in the\n  // fallback state, counts as the whole row being in a fallback state.\n  // Note that the \"rows\" will be workInProgress, but any nested children\n  // will still be current since we haven't rendered them yet. The mounted\n  // order may not be the same as the new order. We use the new order.\n  var row = firstChild;\n  var lastContentRow = null;\n\n  while (row !== null) {\n    var currentRow = row.alternate; // New rows can't be content rows.\n\n    if (currentRow !== null && findFirstSuspended(currentRow) === null) {\n      lastContentRow = row;\n    }\n\n    row = row.sibling;\n  }\n\n  return lastContentRow;\n}\n\nfunction validateRevealOrder(revealOrder) {\n  {\n    if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {\n      didWarnAboutRevealOrder[revealOrder] = true;\n\n      if (typeof revealOrder === 'string') {\n        switch (revealOrder.toLowerCase()) {\n          case 'together':\n          case 'forwards':\n          case 'backwards':\n            {\n              error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase \"%s\" instead.', revealOrder, revealOrder.toLowerCase());\n\n              break;\n            }\n\n          case 'forward':\n          case 'backward':\n            {\n              error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use \"%ss\" instead.', revealOrder, revealOrder.toLowerCase());\n\n              break;\n            }\n\n          default:\n            error('\"%s\" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n\n            break;\n        }\n      } else {\n        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n      }\n    }\n  }\n}\n\nfunction validateTailOptions(tailMode, revealOrder) {\n  {\n    if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {\n      if (tailMode !== 'collapsed' && tailMode !== 'hidden') {\n        didWarnAboutTailOptions[tailMode] = true;\n\n        error('\"%s\" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean \"collapsed\" or \"hidden\"?', tailMode);\n      } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {\n        didWarnAboutTailOptions[tailMode] = true;\n\n        error('<SuspenseList tail=\"%s\" /> is only valid if revealOrder is ' + '\"forwards\" or \"backwards\". ' + 'Did you mean to specify revealOrder=\"forwards\"?', tailMode);\n      }\n    }\n  }\n}\n\nfunction validateSuspenseListNestedChild(childSlot, index) {\n  {\n    var isAnArray = isArray(childSlot);\n    var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === 'function';\n\n    if (isAnArray || isIterable) {\n      var type = isAnArray ? 'array' : 'iterable';\n\n      error('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>', type, index, type);\n\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction validateSuspenseListChildren(children, revealOrder) {\n  {\n    if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {\n      if (isArray(children)) {\n        for (var i = 0; i < children.length; i++) {\n          if (!validateSuspenseListNestedChild(children[i], i)) {\n            return;\n          }\n        }\n      } else {\n        var iteratorFn = getIteratorFn(children);\n\n        if (typeof iteratorFn === 'function') {\n          var childrenIterator = iteratorFn.call(children);\n\n          if (childrenIterator) {\n            var step = childrenIterator.next();\n            var _i = 0;\n\n            for (; !step.done; step = childrenIterator.next()) {\n              if (!validateSuspenseListNestedChild(step.value, _i)) {\n                return;\n              }\n\n              _i++;\n            }\n          }\n        } else {\n          error('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?', revealOrder);\n        }\n      }\n    }\n  }\n}\n\nfunction initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {\n  var renderState = workInProgress.memoizedState;\n\n  if (renderState === null) {\n    workInProgress.memoizedState = {\n      isBackwards: isBackwards,\n      rendering: null,\n      renderingStartTime: 0,\n      last: lastContentRow,\n      tail: tail,\n      tailMode: tailMode\n    };\n  } else {\n    // We can reuse the existing object from previous renders.\n    renderState.isBackwards = isBackwards;\n    renderState.rendering = null;\n    renderState.renderingStartTime = 0;\n    renderState.last = lastContentRow;\n    renderState.tail = tail;\n    renderState.tailMode = tailMode;\n  }\n} // This can end up rendering this component multiple passes.\n// The first pass splits the children fibers into two sets. A head and tail.\n// We first render the head. If anything is in fallback state, we do another\n// pass through beginWork to rerender all children (including the tail) with\n// the force suspend context. If the first render didn't have anything in\n// in fallback state. Then we render each row in the tail one-by-one.\n// That happens in the completeWork phase without going back to beginWork.\n\n\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n  var nextProps = workInProgress.pendingProps;\n  var revealOrder = nextProps.revealOrder;\n  var tailMode = nextProps.tail;\n  var newChildren = nextProps.children;\n  validateRevealOrder(revealOrder);\n  validateTailOptions(tailMode, revealOrder);\n  validateSuspenseListChildren(newChildren, revealOrder);\n  reconcileChildren(current, workInProgress, newChildren, renderLanes);\n  var suspenseContext = suspenseStackCursor.current;\n  var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);\n\n  if (shouldForceFallback) {\n    suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n    workInProgress.flags |= DidCapture;\n  } else {\n    var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;\n\n    if (didSuspendBefore) {\n      // If we previously forced a fallback, we need to schedule work\n      // on any nested boundaries to let them know to try to render\n      // again. This is the same as context updating.\n      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);\n    }\n\n    suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n  }\n\n  pushSuspenseContext(workInProgress, suspenseContext);\n\n  if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n    // In legacy mode, SuspenseList doesn't work so we just\n    // use make it a noop by treating it as the default revealOrder.\n    workInProgress.memoizedState = null;\n  } else {\n    switch (revealOrder) {\n      case 'forwards':\n        {\n          var lastContentRow = findLastContentRow(workInProgress.child);\n          var tail;\n\n          if (lastContentRow === null) {\n            // The whole list is part of the tail.\n            // TODO: We could fast path by just rendering the tail now.\n            tail = workInProgress.child;\n            workInProgress.child = null;\n          } else {\n            // Disconnect the tail rows after the content row.\n            // We're going to render them separately later.\n            tail = lastContentRow.sibling;\n            lastContentRow.sibling = null;\n          }\n\n          initSuspenseListRenderState(workInProgress, false, // isBackwards\n          tail, lastContentRow, tailMode);\n          break;\n        }\n\n      case 'backwards':\n        {\n          // We're going to find the first row that has existing content.\n          // At the same time we're going to reverse the list of everything\n          // we pass in the meantime. That's going to be our tail in reverse\n          // order.\n          var _tail = null;\n          var row = workInProgress.child;\n          workInProgress.child = null;\n\n          while (row !== null) {\n            var currentRow = row.alternate; // New rows can't be content rows.\n\n            if (currentRow !== null && findFirstSuspended(currentRow) === null) {\n              // This is the beginning of the main content.\n              workInProgress.child = row;\n              break;\n            }\n\n            var nextRow = row.sibling;\n            row.sibling = _tail;\n            _tail = row;\n            row = nextRow;\n          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.\n\n\n          initSuspenseListRenderState(workInProgress, true, // isBackwards\n          _tail, null, // last\n          tailMode);\n          break;\n        }\n\n      case 'together':\n        {\n          initSuspenseListRenderState(workInProgress, false, // isBackwards\n          null, // tail\n          null, // last\n          undefined);\n          break;\n        }\n\n      default:\n        {\n          // The default reveal order is the same as not having\n          // a boundary.\n          workInProgress.memoizedState = null;\n        }\n    }\n  }\n\n  return workInProgress.child;\n}\n\nfunction updatePortalComponent(current, workInProgress, renderLanes) {\n  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n  var nextChildren = workInProgress.pendingProps;\n\n  if (current === null) {\n    // Portals are special because we don't append the children during mount\n    // but at commit. Therefore we need to track insertions which the normal\n    // flow doesn't do during mount. This doesn't happen at the root because\n    // the root always starts with a \"current\" with a null child.\n    // TODO: Consider unifying this with how the root works.\n    workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);\n  } else {\n    reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n  }\n\n  return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingNoValuePropOnContextProvider = false;\n\nfunction updateContextProvider(current, workInProgress, renderLanes) {\n  var providerType = workInProgress.type;\n  var context = providerType._context;\n  var newProps = workInProgress.pendingProps;\n  var oldProps = workInProgress.memoizedProps;\n  var newValue = newProps.value;\n\n  {\n    if (!('value' in newProps)) {\n      if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {\n        hasWarnedAboutUsingNoValuePropOnContextProvider = true;\n\n        error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');\n      }\n    }\n\n    var providerPropTypes = workInProgress.type.propTypes;\n\n    if (providerPropTypes) {\n      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');\n    }\n  }\n\n  pushProvider(workInProgress, context, newValue);\n\n  {\n    if (oldProps !== null) {\n      var oldValue = oldProps.value;\n\n      if (objectIs(oldValue, newValue)) {\n        // No change. Bailout early if children are the same.\n        if (oldProps.children === newProps.children && !hasContextChanged()) {\n          return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n        }\n      } else {\n        // The context value changed. Search for matching consumers and schedule\n        // them to update.\n        propagateContextChange(workInProgress, context, renderLanes);\n      }\n    }\n  }\n\n  var newChildren = newProps.children;\n  reconcileChildren(current, workInProgress, newChildren, renderLanes);\n  return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingContextAsConsumer = false;\n\nfunction updateContextConsumer(current, workInProgress, renderLanes) {\n  var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In\n  // DEV mode, we create a separate object for Context.Consumer that acts\n  // like a proxy to Context. This proxy object adds unnecessary code in PROD\n  // so we use the old behaviour (Context.Consumer references Context) to\n  // reduce size and overhead. The separate object references context via\n  // a property called \"_context\", which also gives us the ability to check\n  // in DEV mode if this property exists or not and warn if it does not.\n\n  {\n    if (context._context === undefined) {\n      // This may be because it's a Context (rather than a Consumer).\n      // Or it may be because it's older React where they're the same thing.\n      // We only want to warn if we're sure it's a new React.\n      if (context !== context.Consumer) {\n        if (!hasWarnedAboutUsingContextAsConsumer) {\n          hasWarnedAboutUsingContextAsConsumer = true;\n\n          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n        }\n      }\n    } else {\n      context = context._context;\n    }\n  }\n\n  var newProps = workInProgress.pendingProps;\n  var render = newProps.children;\n\n  {\n    if (typeof render !== 'function') {\n      error('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.');\n    }\n  }\n\n  prepareToReadContext(workInProgress, renderLanes);\n  var newValue = readContext(context);\n\n  {\n    markComponentRenderStarted(workInProgress);\n  }\n\n  var newChildren;\n\n  {\n    ReactCurrentOwner$1.current = workInProgress;\n    setIsRendering(true);\n    newChildren = render(newValue);\n    setIsRendering(false);\n  }\n\n  {\n    markComponentRenderStopped();\n  } // React DevTools reads this flag.\n\n\n  workInProgress.flags |= PerformedWork;\n  reconcileChildren(current, workInProgress, newChildren, renderLanes);\n  return workInProgress.child;\n}\n\nfunction markWorkInProgressReceivedUpdate() {\n  didReceiveUpdate = true;\n}\n\nfunction resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {\n  if ((workInProgress.mode & ConcurrentMode) === NoMode) {\n    if (current !== null) {\n      // A lazy component only mounts if it suspended inside a non-\n      // concurrent tree, in an inconsistent state. We want to treat it like\n      // a new mount, even though an empty version of it already committed.\n      // Disconnect the alternate pointers.\n      current.alternate = null;\n      workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n      workInProgress.flags |= Placement;\n    }\n  }\n}\n\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n  if (current !== null) {\n    // Reuse previous dependencies\n    workInProgress.dependencies = current.dependencies;\n  }\n\n  {\n    // Don't update \"base\" render times for bailouts.\n    stopProfilerTimerIfRunning();\n  }\n\n  markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.\n\n  if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {\n    // The children don't have any work either. We can skip them.\n    // TODO: Once we add back resuming, we should check if the children are\n    // a work-in-progress set. If so, we need to transfer their effects.\n    {\n      return null;\n    }\n  } // This fiber doesn't have work, but its subtree does. Clone the child\n  // fibers and continue.\n\n\n  cloneChildFibers(current, workInProgress);\n  return workInProgress.child;\n}\n\nfunction remountFiber(current, oldWorkInProgress, newWorkInProgress) {\n  {\n    var returnFiber = oldWorkInProgress.return;\n\n    if (returnFiber === null) {\n      // eslint-disable-next-line react-internal/prod-error-codes\n      throw new Error('Cannot swap the root fiber.');\n    } // Disconnect from the old current.\n    // It will get deleted.\n\n\n    current.alternate = null;\n    oldWorkInProgress.alternate = null; // Connect to the new tree.\n\n    newWorkInProgress.index = oldWorkInProgress.index;\n    newWorkInProgress.sibling = oldWorkInProgress.sibling;\n    newWorkInProgress.return = oldWorkInProgress.return;\n    newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.\n\n    if (oldWorkInProgress === returnFiber.child) {\n      returnFiber.child = newWorkInProgress;\n    } else {\n      var prevSibling = returnFiber.child;\n\n      if (prevSibling === null) {\n        // eslint-disable-next-line react-internal/prod-error-codes\n        throw new Error('Expected parent to have a child.');\n      }\n\n      while (prevSibling.sibling !== oldWorkInProgress) {\n        prevSibling = prevSibling.sibling;\n\n        if (prevSibling === null) {\n          // eslint-disable-next-line react-internal/prod-error-codes\n          throw new Error('Expected to find the previous sibling.');\n        }\n      }\n\n      prevSibling.sibling = newWorkInProgress;\n    } // Delete the old fiber and place the new one.\n    // Since the old fiber is disconnected, we have to schedule it manually.\n\n\n    var deletions = returnFiber.deletions;\n\n    if (deletions === null) {\n      returnFiber.deletions = [current];\n      returnFiber.flags |= ChildDeletion;\n    } else {\n      deletions.push(current);\n    }\n\n    newWorkInProgress.flags |= Placement; // Restart work from the new fiber.\n\n    return newWorkInProgress;\n  }\n}\n\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n  // Before performing an early bailout, we must check if there are pending\n  // updates or context.\n  var updateLanes = current.lanes;\n\n  if (includesSomeLane(updateLanes, renderLanes)) {\n    return true;\n  } // No pending update, but because context is propagated lazily, we need\n\n  return false;\n}\n\nfunction attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) {\n  // This fiber does not have any pending work. Bailout without entering\n  // the begin phase. There's still some bookkeeping we that needs to be done\n  // in this optimized path, mostly pushing stuff onto the stack.\n  switch (workInProgress.tag) {\n    case HostRoot:\n      pushHostRootContext(workInProgress);\n      var root = workInProgress.stateNode;\n\n      resetHydrationState();\n      break;\n\n    case HostComponent:\n      pushHostContext(workInProgress);\n      break;\n\n    case ClassComponent:\n      {\n        var Component = workInProgress.type;\n\n        if (isContextProvider(Component)) {\n          pushContextProvider(workInProgress);\n        }\n\n        break;\n      }\n\n    case HostPortal:\n      pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n      break;\n\n    case ContextProvider:\n      {\n        var newValue = workInProgress.memoizedProps.value;\n        var context = workInProgress.type._context;\n        pushProvider(workInProgress, context, newValue);\n        break;\n      }\n\n    case Profiler:\n      {\n        // Profiler should only call onRender when one of its descendants actually rendered.\n        var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);\n\n        if (hasChildWork) {\n          workInProgress.flags |= Update;\n        }\n\n        {\n          // Reset effect durations for the next eventual effect phase.\n          // These are reset during render to allow the DevTools commit hook a chance to read them,\n          var stateNode = workInProgress.stateNode;\n          stateNode.effectDuration = 0;\n          stateNode.passiveEffectDuration = 0;\n        }\n      }\n\n      break;\n\n    case SuspenseComponent:\n      {\n        var state = workInProgress.memoizedState;\n\n        if (state !== null) {\n          if (state.dehydrated !== null) {\n            pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has\n            // been unsuspended it has committed as a resolved Suspense component.\n            // If it needs to be retried, it should have work scheduled on it.\n\n            workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we\n            // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork.\n\n            return null;\n          } // If this boundary is currently timed out, we need to decide\n          // whether to retry the primary children, or to skip over it and\n          // go straight to the fallback. Check the priority of the primary\n          // child fragment.\n\n\n          var primaryChildFragment = workInProgress.child;\n          var primaryChildLanes = primaryChildFragment.childLanes;\n\n          if (includesSomeLane(renderLanes, primaryChildLanes)) {\n            // The primary children have pending work. Use the normal path\n            // to attempt to render the primary children again.\n            return updateSuspenseComponent(current, workInProgress, renderLanes);\n          } else {\n            // The primary child fragment does not have pending work marked\n            // on it\n            pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient\n            // priority. Bailout.\n\n            var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n\n            if (child !== null) {\n              // The fallback children have pending work. Skip over the\n              // primary children and work on the fallback.\n              return child.sibling;\n            } else {\n              // Note: We can return `null` here because we already checked\n              // whether there were nested context consumers, via the call to\n              // `bailoutOnAlreadyFinishedWork` above.\n              return null;\n            }\n          }\n        } else {\n          pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));\n        }\n\n        break;\n      }\n\n    case SuspenseListComponent:\n      {\n        var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;\n\n        var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);\n\n        if (didSuspendBefore) {\n          if (_hasChildWork) {\n            // If something was in fallback state last time, and we have all the\n            // same children then we're still in progressive loading state.\n            // Something might get unblocked by state updates or retries in the\n            // tree which will affect the tail. So we need to use the normal\n            // path to compute the correct tail.\n            return updateSuspenseListComponent(current, workInProgress, renderLanes);\n          } // If none of the children had any work, that means that none of\n          // them got retried so they'll still be blocked in the same way\n          // as before. We can fast bail out.\n\n\n          workInProgress.flags |= DidCapture;\n        } // If nothing suspended before and we're rendering the same children,\n        // then the tail doesn't matter. Anything new that suspends will work\n        // in the \"together\" mode, so we can continue from the state we had.\n\n\n        var renderState = workInProgress.memoizedState;\n\n        if (renderState !== null) {\n          // Reset to the \"together\" mode in case we've started a different\n          // update in the past but didn't complete it.\n          renderState.rendering = null;\n          renderState.tail = null;\n          renderState.lastEffect = null;\n        }\n\n        pushSuspenseContext(workInProgress, suspenseStackCursor.current);\n\n        if (_hasChildWork) {\n          break;\n        } else {\n          // If none of the children had any work, that means that none of\n          // them got retried so they'll still be blocked in the same way\n          // as before. We can fast bail out.\n          return null;\n        }\n      }\n\n    case OffscreenComponent:\n    case LegacyHiddenComponent:\n      {\n        // Need to check if the tree still needs to be deferred. This is\n        // almost identical to the logic used in the normal update path,\n        // so we'll just enter that. The only difference is we'll bail out\n        // at the next level instead of this one, because the child props\n        // have not changed. Which is fine.\n        // TODO: Probably should refactor `beginWork` to split the bailout\n        // path from the normal path. I'm tempted to do a labeled break here\n        // but I won't :)\n        workInProgress.lanes = NoLanes;\n        return updateOffscreenComponent(current, workInProgress, renderLanes);\n      }\n  }\n\n  return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\n\nfunction beginWork(current, workInProgress, renderLanes) {\n  {\n    if (workInProgress._debugNeedsRemount && current !== null) {\n      // This will restart the begin phase with a new fiber.\n      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));\n    }\n  }\n\n  if (current !== null) {\n    var oldProps = current.memoizedProps;\n    var newProps = workInProgress.pendingProps;\n\n    if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:\n     workInProgress.type !== current.type )) {\n      // If props or context changed, mark the fiber as having performed work.\n      // This may be unset if the props are determined to be equal later (memo).\n      didReceiveUpdate = true;\n    } else {\n      // Neither props nor legacy context changes. Check if there's a pending\n      // update or context change.\n      var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);\n\n      if (!hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there\n      // may not be work scheduled on `current`, so we check for this flag.\n      (workInProgress.flags & DidCapture) === NoFlags) {\n        // No pending updates or context. Bail out now.\n        didReceiveUpdate = false;\n        return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes);\n      }\n\n      if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {\n        // This is a special case that only exists for legacy mode.\n        // See https://github.com/facebook/react/pull/19216.\n        didReceiveUpdate = true;\n      } else {\n        // An update was scheduled on this fiber, but there are no new props\n        // nor legacy context. Set this to false. If an update queue or context\n        // consumer produces a changed value, it will set this to true. Otherwise,\n        // the component will assume the children have not changed and bail out.\n        didReceiveUpdate = false;\n      }\n    }\n  } else {\n    didReceiveUpdate = false;\n\n    if (getIsHydrating() && isForkedChild(workInProgress)) {\n      // Check if this child belongs to a list of muliple children in\n      // its parent.\n      //\n      // In a true multi-threaded implementation, we would render children on\n      // parallel threads. This would represent the beginning of a new render\n      // thread for this subtree.\n      //\n      // We only use this for id generation during hydration, which is why the\n      // logic is located in this special branch.\n      var slotIndex = workInProgress.index;\n      var numberOfForks = getForksAtLevel();\n      pushTreeId(workInProgress, numberOfForks, slotIndex);\n    }\n  } // Before entering the begin phase, clear pending update priority.\n  // TODO: This assumes that we're about to evaluate the component and process\n  // the update queue. However, there's an exception: SimpleMemoComponent\n  // sometimes bails out later in the begin phase. This indicates that we should\n  // move this assignment out of the common path and into each branch.\n\n\n  workInProgress.lanes = NoLanes;\n\n  switch (workInProgress.tag) {\n    case IndeterminateComponent:\n      {\n        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);\n      }\n\n    case LazyComponent:\n      {\n        var elementType = workInProgress.elementType;\n        return mountLazyComponent(current, workInProgress, elementType, renderLanes);\n      }\n\n    case FunctionComponent:\n      {\n        var Component = workInProgress.type;\n        var unresolvedProps = workInProgress.pendingProps;\n        var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps);\n        return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes);\n      }\n\n    case ClassComponent:\n      {\n        var _Component = workInProgress.type;\n        var _unresolvedProps = workInProgress.pendingProps;\n\n        var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps);\n\n        return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes);\n      }\n\n    case HostRoot:\n      return updateHostRoot(current, workInProgress, renderLanes);\n\n    case HostComponent:\n      return updateHostComponent(current, workInProgress, renderLanes);\n\n    case HostText:\n      return updateHostText(current, workInProgress);\n\n    case SuspenseComponent:\n      return updateSuspenseComponent(current, workInProgress, renderLanes);\n\n    case HostPortal:\n      return updatePortalComponent(current, workInProgress, renderLanes);\n\n    case ForwardRef:\n      {\n        var type = workInProgress.type;\n        var _unresolvedProps2 = workInProgress.pendingProps;\n\n        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);\n\n        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);\n      }\n\n    case Fragment:\n      return updateFragment(current, workInProgress, renderLanes);\n\n    case Mode:\n      return updateMode(current, workInProgress, renderLanes);\n\n    case Profiler:\n      return updateProfiler(current, workInProgress, renderLanes);\n\n    case ContextProvider:\n      return updateContextProvider(current, workInProgress, renderLanes);\n\n    case ContextConsumer:\n      return updateContextConsumer(current, workInProgress, renderLanes);\n\n    case MemoComponent:\n      {\n        var _type2 = workInProgress.type;\n        var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.\n\n        var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);\n\n        {\n          if (workInProgress.type !== workInProgress.elementType) {\n            var outerPropTypes = _type2.propTypes;\n\n            if (outerPropTypes) {\n              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only\n              'prop', getComponentNameFromType(_type2));\n            }\n          }\n        }\n\n        _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);\n        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes);\n      }\n\n    case SimpleMemoComponent:\n      {\n        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);\n      }\n\n    case IncompleteClassComponent:\n      {\n        var _Component2 = workInProgress.type;\n        var _unresolvedProps4 = workInProgress.pendingProps;\n\n        var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4);\n\n        return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes);\n      }\n\n    case SuspenseListComponent:\n      {\n        return updateSuspenseListComponent(current, workInProgress, renderLanes);\n      }\n\n    case ScopeComponent:\n      {\n\n        break;\n      }\n\n    case OffscreenComponent:\n      {\n        return updateOffscreenComponent(current, workInProgress, renderLanes);\n      }\n  }\n\n  throw new Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in \" + 'React. Please file an issue.');\n}\n\nfunction markUpdate(workInProgress) {\n  // Tag the fiber with an update effect. This turns a Placement into\n  // a PlacementAndUpdate.\n  workInProgress.flags |= Update;\n}\n\nfunction markRef$1(workInProgress) {\n  workInProgress.flags |= Ref;\n\n  {\n    workInProgress.flags |= RefStatic;\n  }\n}\n\nvar appendAllChildren;\nvar updateHostContainer;\nvar updateHostComponent$1;\nvar updateHostText$1;\n\n{\n  // Mutation mode\n  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {\n    // We only have the top Fiber that was created but we need recurse down its\n    // children to find all the terminal nodes.\n    var node = workInProgress.child;\n\n    while (node !== null) {\n      if (node.tag === HostComponent || node.tag === HostText) {\n        appendInitialChild(parent, node.stateNode);\n      } else if (node.tag === HostPortal) ; else if (node.child !== null) {\n        node.child.return = node;\n        node = node.child;\n        continue;\n      }\n\n      if (node === workInProgress) {\n        return;\n      }\n\n      while (node.sibling === null) {\n        if (node.return === null || node.return === workInProgress) {\n          return;\n        }\n\n        node = node.return;\n      }\n\n      node.sibling.return = node.return;\n      node = node.sibling;\n    }\n  };\n\n  updateHostContainer = function (current, workInProgress) {// Noop\n  };\n\n  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {\n    // If we have an alternate, that means this is an update and we need to\n    // schedule a side-effect to do the updates.\n    var oldProps = current.memoizedProps;\n\n    if (oldProps === newProps) {\n      // In mutation mode, this is sufficient for a bailout because\n      // we won't touch this node even if children changed.\n      return;\n    } // If we get updated because one of our children updated, we don't\n    // have newProps so we'll have to reuse them.\n    // TODO: Split the update API as separate for the props vs. children.\n    // Even better would be if children weren't special cased at all tho.\n\n\n    var instance = workInProgress.stateNode;\n    var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host\n    // component is hitting the resume path. Figure out why. Possibly\n    // related to `hidden`.\n\n    var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.\n\n    workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there\n    // is a new ref we mark this as an update. All the work is done in commitWork.\n\n    if (updatePayload) {\n      markUpdate(workInProgress);\n    }\n  };\n\n  updateHostText$1 = function (current, workInProgress, oldText, newText) {\n    // If the text differs, mark it as an update. All the work in done in commitWork.\n    if (oldText !== newText) {\n      markUpdate(workInProgress);\n    }\n  };\n}\n\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n  if (getIsHydrating()) {\n    // If we're hydrating, we should consume as many items as we can\n    // so we don't leave any behind.\n    return;\n  }\n\n  switch (renderState.tailMode) {\n    case 'hidden':\n      {\n        // Any insertions at the end of the tail list after this point\n        // should be invisible. If there are already mounted boundaries\n        // anything before them are not considered for collapsing.\n        // Therefore we need to go through the whole tail to find if\n        // there are any.\n        var tailNode = renderState.tail;\n        var lastTailNode = null;\n\n        while (tailNode !== null) {\n          if (tailNode.alternate !== null) {\n            lastTailNode = tailNode;\n          }\n\n          tailNode = tailNode.sibling;\n        } // Next we're simply going to delete all insertions after the\n        // last rendered item.\n\n\n        if (lastTailNode === null) {\n          // All remaining items in the tail are insertions.\n          renderState.tail = null;\n        } else {\n          // Detach the insertion after the last node that was already\n          // inserted.\n          lastTailNode.sibling = null;\n        }\n\n        break;\n      }\n\n    case 'collapsed':\n      {\n        // Any insertions at the end of the tail list after this point\n        // should be invisible. If there are already mounted boundaries\n        // anything before them are not considered for collapsing.\n        // Therefore we need to go through the whole tail to find if\n        // there are any.\n        var _tailNode = renderState.tail;\n        var _lastTailNode = null;\n\n        while (_tailNode !== null) {\n          if (_tailNode.alternate !== null) {\n            _lastTailNode = _tailNode;\n          }\n\n          _tailNode = _tailNode.sibling;\n        } // Next we're simply going to delete all insertions after the\n        // last rendered item.\n\n\n        if (_lastTailNode === null) {\n          // All remaining items in the tail are insertions.\n          if (!hasRenderedATailFallback && renderState.tail !== null) {\n            // We suspended during the head. We want to show at least one\n            // row at the tail. So we'll keep on and cut off the rest.\n            renderState.tail.sibling = null;\n          } else {\n            renderState.tail = null;\n          }\n        } else {\n          // Detach the insertion after the last node that was already\n          // inserted.\n          _lastTailNode.sibling = null;\n        }\n\n        break;\n      }\n  }\n}\n\nfunction bubbleProperties(completedWork) {\n  var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child;\n  var newChildLanes = NoLanes;\n  var subtreeFlags = NoFlags;\n\n  if (!didBailout) {\n    // Bubble up the earliest expiration time.\n    if ( (completedWork.mode & ProfileMode) !== NoMode) {\n      // In profiling mode, resetChildExpirationTime is also used to reset\n      // profiler durations.\n      var actualDuration = completedWork.actualDuration;\n      var treeBaseDuration = completedWork.selfBaseDuration;\n      var child = completedWork.child;\n\n      while (child !== null) {\n        newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));\n        subtreeFlags |= child.subtreeFlags;\n        subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will\n        // only be updated if work is done on the fiber (i.e. it doesn't bailout).\n        // When work is done, it should bubble to the parent's actualDuration. If\n        // the fiber has not been cloned though, (meaning no work was done), then\n        // this value will reflect the amount of time spent working on a previous\n        // render. In that case it should not bubble. We determine whether it was\n        // cloned by comparing the child pointer.\n\n        actualDuration += child.actualDuration;\n        treeBaseDuration += child.treeBaseDuration;\n        child = child.sibling;\n      }\n\n      completedWork.actualDuration = actualDuration;\n      completedWork.treeBaseDuration = treeBaseDuration;\n    } else {\n      var _child = completedWork.child;\n\n      while (_child !== null) {\n        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));\n        subtreeFlags |= _child.subtreeFlags;\n        subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code\n        // smell because it assumes the commit phase is never concurrent with\n        // the render phase. Will address during refactor to alternate model.\n\n        _child.return = completedWork;\n        _child = _child.sibling;\n      }\n    }\n\n    completedWork.subtreeFlags |= subtreeFlags;\n  } else {\n    // Bubble up the earliest expiration time.\n    if ( (completedWork.mode & ProfileMode) !== NoMode) {\n      // In profiling mode, resetChildExpirationTime is also used to reset\n      // profiler durations.\n      var _treeBaseDuration = completedWork.selfBaseDuration;\n      var _child2 = completedWork.child;\n\n      while (_child2 !== null) {\n        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // \"Static\" flags share the lifetime of the fiber/hook they belong to,\n        // so we should bubble those up even during a bailout. All the other\n        // flags have a lifetime only of a single render + commit, so we should\n        // ignore them.\n\n        subtreeFlags |= _child2.subtreeFlags & StaticMask;\n        subtreeFlags |= _child2.flags & StaticMask;\n        _treeBaseDuration += _child2.treeBaseDuration;\n        _child2 = _child2.sibling;\n      }\n\n      completedWork.treeBaseDuration = _treeBaseDuration;\n    } else {\n      var _child3 = completedWork.child;\n\n      while (_child3 !== null) {\n        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // \"Static\" flags share the lifetime of the fiber/hook they belong to,\n        // so we should bubble those up even during a bailout. All the other\n        // flags have a lifetime only of a single render + commit, so we should\n        // ignore them.\n\n        subtreeFlags |= _child3.subtreeFlags & StaticMask;\n        subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code\n        // smell because it assumes the commit phase is never concurrent with\n        // the render phase. Will address during refactor to alternate model.\n\n        _child3.return = completedWork;\n        _child3 = _child3.sibling;\n      }\n    }\n\n    completedWork.subtreeFlags |= subtreeFlags;\n  }\n\n  completedWork.childLanes = newChildLanes;\n  return didBailout;\n}\n\nfunction completeDehydratedSuspenseBoundary(current, workInProgress, nextState) {\n  if (hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && (workInProgress.flags & DidCapture) === NoFlags) {\n    warnIfUnhydratedTailNodes(workInProgress);\n    resetHydrationState();\n    workInProgress.flags |= ForceClientRender | Incomplete | ShouldCapture;\n    return false;\n  }\n\n  var wasHydrated = popHydrationState(workInProgress);\n\n  if (nextState !== null && nextState.dehydrated !== null) {\n    // We might be inside a hydration state the first time we're picking up this\n    // Suspense boundary, and also after we've reentered it for further hydration.\n    if (current === null) {\n      if (!wasHydrated) {\n        throw new Error('A dehydrated suspense component was completed without a hydrated node. ' + 'This is probably a bug in React.');\n      }\n\n      prepareToHydrateHostSuspenseInstance(workInProgress);\n      bubbleProperties(workInProgress);\n\n      {\n        if ((workInProgress.mode & ProfileMode) !== NoMode) {\n          var isTimedOutSuspense = nextState !== null;\n\n          if (isTimedOutSuspense) {\n            // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n            var primaryChildFragment = workInProgress.child;\n\n            if (primaryChildFragment !== null) {\n              // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n              workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;\n            }\n          }\n        }\n      }\n\n      return false;\n    } else {\n      // We might have reentered this boundary to hydrate it. If so, we need to reset the hydration\n      // state since we're now exiting out of it. popHydrationState doesn't do that for us.\n      resetHydrationState();\n\n      if ((workInProgress.flags & DidCapture) === NoFlags) {\n        // This boundary did not suspend so it's now hydrated and unsuspended.\n        workInProgress.memoizedState = null;\n      } // If nothing suspended, we need to schedule an effect to mark this boundary\n      // as having hydrated so events know that they're free to be invoked.\n      // It's also a signal to replay events and the suspense callback.\n      // If something suspended, schedule an effect to attach retry listeners.\n      // So we might as well always mark this.\n\n\n      workInProgress.flags |= Update;\n      bubbleProperties(workInProgress);\n\n      {\n        if ((workInProgress.mode & ProfileMode) !== NoMode) {\n          var _isTimedOutSuspense = nextState !== null;\n\n          if (_isTimedOutSuspense) {\n            // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n            var _primaryChildFragment = workInProgress.child;\n\n            if (_primaryChildFragment !== null) {\n              // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n              workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration;\n            }\n          }\n        }\n      }\n\n      return false;\n    }\n  } else {\n    // Successfully completed this tree. If this was a forced client render,\n    // there may have been recoverable errors during first hydration\n    // attempt. If so, add them to a queue so we can log them in the\n    // commit phase.\n    upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path\n\n    return true;\n  }\n}\n\nfunction completeWork(current, workInProgress, renderLanes) {\n  var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing\n  // to the current tree provider fiber is just as fast and less error-prone.\n  // Ideally we would have a special version of the work loop only\n  // for hydration.\n\n  popTreeContext(workInProgress);\n\n  switch (workInProgress.tag) {\n    case IndeterminateComponent:\n    case LazyComponent:\n    case SimpleMemoComponent:\n    case FunctionComponent:\n    case ForwardRef:\n    case Fragment:\n    case Mode:\n    case Profiler:\n    case ContextConsumer:\n    case MemoComponent:\n      bubbleProperties(workInProgress);\n      return null;\n\n    case ClassComponent:\n      {\n        var Component = workInProgress.type;\n\n        if (isContextProvider(Component)) {\n          popContext(workInProgress);\n        }\n\n        bubbleProperties(workInProgress);\n        return null;\n      }\n\n    case HostRoot:\n      {\n        var fiberRoot = workInProgress.stateNode;\n        popHostContainer(workInProgress);\n        popTopLevelContextObject(workInProgress);\n        resetWorkInProgressVersions();\n\n        if (fiberRoot.pendingContext) {\n          fiberRoot.context = fiberRoot.pendingContext;\n          fiberRoot.pendingContext = null;\n        }\n\n        if (current === null || current.child === null) {\n          // If we hydrated, pop so that we can delete any remaining children\n          // that weren't hydrated.\n          var wasHydrated = popHydrationState(workInProgress);\n\n          if (wasHydrated) {\n            // If we hydrated, then we'll need to schedule an update for\n            // the commit side-effects on the root.\n            markUpdate(workInProgress);\n          } else {\n            if (current !== null) {\n              var prevState = current.memoizedState;\n\n              if ( // Check if this is a client root\n              !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error)\n              (workInProgress.flags & ForceClientRender) !== NoFlags) {\n                // Schedule an effect to clear this container at the start of the\n                // next commit. This handles the case of React rendering into a\n                // container with previous children. It's also safe to do for\n                // updates too, because current.child would only be null if the\n                // previous render was null (so the container would already\n                // be empty).\n                workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been\n                // recoverable errors during first hydration attempt. If so, add\n                // them to a queue so we can log them in the commit phase.\n\n                upgradeHydrationErrorsToRecoverable();\n              }\n            }\n          }\n        }\n\n        updateHostContainer(current, workInProgress);\n        bubbleProperties(workInProgress);\n\n        return null;\n      }\n\n    case HostComponent:\n      {\n        popHostContext(workInProgress);\n        var rootContainerInstance = getRootHostContainer();\n        var type = workInProgress.type;\n\n        if (current !== null && workInProgress.stateNode != null) {\n          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);\n\n          if (current.ref !== workInProgress.ref) {\n            markRef$1(workInProgress);\n          }\n        } else {\n          if (!newProps) {\n            if (workInProgress.stateNode === null) {\n              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.');\n            } // This can happen when we abort work.\n\n\n            bubbleProperties(workInProgress);\n            return null;\n          }\n\n          var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context\n          // \"stack\" as the parent. Then append children as we go in beginWork\n          // or completeWork depending on whether we want to add them top->down or\n          // bottom->up. Top->down is faster in IE11.\n\n          var _wasHydrated = popHydrationState(workInProgress);\n\n          if (_wasHydrated) {\n            // TODO: Move this and createInstance step into the beginPhase\n            // to consolidate.\n            if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {\n              // If changes to the hydrated node need to be applied at the\n              // commit-phase we mark this as such.\n              markUpdate(workInProgress);\n            }\n          } else {\n            var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);\n            appendAllChildren(instance, workInProgress, false, false);\n            workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.\n            // (eg DOM renderer supports auto-focus for certain elements).\n            // Make sure such renderers get scheduled for later work.\n\n            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {\n              markUpdate(workInProgress);\n            }\n          }\n\n          if (workInProgress.ref !== null) {\n            // If there is a ref on a host node we need to schedule a callback\n            markRef$1(workInProgress);\n          }\n        }\n\n        bubbleProperties(workInProgress);\n        return null;\n      }\n\n    case HostText:\n      {\n        var newText = newProps;\n\n        if (current && workInProgress.stateNode != null) {\n          var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need\n          // to schedule a side-effect to do the updates.\n\n          updateHostText$1(current, workInProgress, oldText, newText);\n        } else {\n          if (typeof newText !== 'string') {\n            if (workInProgress.stateNode === null) {\n              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.');\n            } // This can happen when we abort work.\n\n          }\n\n          var _rootContainerInstance = getRootHostContainer();\n\n          var _currentHostContext = getHostContext();\n\n          var _wasHydrated2 = popHydrationState(workInProgress);\n\n          if (_wasHydrated2) {\n            if (prepareToHydrateHostTextInstance(workInProgress)) {\n              markUpdate(workInProgress);\n            }\n          } else {\n            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);\n          }\n        }\n\n        bubbleProperties(workInProgress);\n        return null;\n      }\n\n    case SuspenseComponent:\n      {\n        popSuspenseContext(workInProgress);\n        var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this\n        // to its own fiber type so that we can add other kinds of hydration\n        // boundaries that aren't associated with a Suspense tree. In anticipation\n        // of such a refactor, all the hydration logic is contained in\n        // this branch.\n\n        if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {\n          var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState);\n\n          if (!fallthroughToNormalSuspensePath) {\n            if (workInProgress.flags & ShouldCapture) {\n              // Special case. There were remaining unhydrated nodes. We treat\n              // this as a mismatch. Revert to client rendering.\n              return workInProgress;\n            } else {\n              // Did not finish hydrating, either because this is the initial\n              // render or because something suspended.\n              return null;\n            }\n          } // Continue with the normal Suspense path.\n\n        }\n\n        if ((workInProgress.flags & DidCapture) !== NoFlags) {\n          // Something suspended. Re-render with the fallback children.\n          workInProgress.lanes = renderLanes; // Do not reset the effect list.\n\n          if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n            transferActualDuration(workInProgress);\n          } // Don't bubble properties in this case.\n\n\n          return workInProgress;\n        }\n\n        var nextDidTimeout = nextState !== null;\n        var prevDidTimeout = current !== null && current.memoizedState !== null;\n        // a passive effect, which is when we process the transitions\n\n\n        if (nextDidTimeout !== prevDidTimeout) {\n          // an effect to toggle the subtree's visibility. When we switch from\n          // fallback -> primary, the inner Offscreen fiber schedules this effect\n          // as part of its normal complete phase. But when we switch from\n          // primary -> fallback, the inner Offscreen fiber does not have a complete\n          // phase. So we need to schedule its effect here.\n          //\n          // We also use this flag to connect/disconnect the effects, but the same\n          // logic applies: when re-connecting, the Offscreen fiber's complete\n          // phase will handle scheduling the effect. It's only when the fallback\n          // is active that we have to do anything special.\n\n\n          if (nextDidTimeout) {\n            var _offscreenFiber2 = workInProgress.child;\n            _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything\n            // in the concurrent tree already suspended during this render.\n            // This is a known bug.\n\n            if ((workInProgress.mode & ConcurrentMode) !== NoMode) {\n              // TODO: Move this back to throwException because this is too late\n              // if this is a large tree which is common for initial loads. We\n              // don't know if we should restart a render or not until we get\n              // this marker, and this is too late.\n              // If this render already had a ping or lower pri updates,\n              // and this is the first time we know we're going to suspend we\n              // should be able to immediately restart from within throwException.\n              var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback);\n\n              if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {\n                // If this was in an invisible tree or a new render, then showing\n                // this boundary is ok.\n                renderDidSuspend();\n              } else {\n                // Otherwise, we're going to have to hide content so we should\n                // suspend for longer if possible.\n                renderDidSuspendDelayIfPossible();\n              }\n            }\n          }\n        }\n\n        var wakeables = workInProgress.updateQueue;\n\n        if (wakeables !== null) {\n          // Schedule an effect to attach a retry listener to the promise.\n          // TODO: Move to passive phase\n          workInProgress.flags |= Update;\n        }\n\n        bubbleProperties(workInProgress);\n\n        {\n          if ((workInProgress.mode & ProfileMode) !== NoMode) {\n            if (nextDidTimeout) {\n              // Don't count time spent in a timed out Suspense subtree as part of the base duration.\n              var primaryChildFragment = workInProgress.child;\n\n              if (primaryChildFragment !== null) {\n                // $FlowFixMe Flow doesn't support type casting in combination with the -= operator\n                workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;\n              }\n            }\n          }\n        }\n\n        return null;\n      }\n\n    case HostPortal:\n      popHostContainer(workInProgress);\n      updateHostContainer(current, workInProgress);\n\n      if (current === null) {\n        preparePortalMount(workInProgress.stateNode.containerInfo);\n      }\n\n      bubbleProperties(workInProgress);\n      return null;\n\n    case ContextProvider:\n      // Pop provider fiber\n      var context = workInProgress.type._context;\n      popProvider(context, workInProgress);\n      bubbleProperties(workInProgress);\n      return null;\n\n    case IncompleteClassComponent:\n      {\n        // Same as class component case. I put it down here so that the tags are\n        // sequential to ensure this switch is compiled to a jump table.\n        var _Component = workInProgress.type;\n\n        if (isContextProvider(_Component)) {\n          popContext(workInProgress);\n        }\n\n        bubbleProperties(workInProgress);\n        return null;\n      }\n\n    case SuspenseListComponent:\n      {\n        popSuspenseContext(workInProgress);\n        var renderState = workInProgress.memoizedState;\n\n        if (renderState === null) {\n          // We're running in the default, \"independent\" mode.\n          // We don't do anything in this mode.\n          bubbleProperties(workInProgress);\n          return null;\n        }\n\n        var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;\n        var renderedTail = renderState.rendering;\n\n        if (renderedTail === null) {\n          // We just rendered the head.\n          if (!didSuspendAlready) {\n            // This is the first pass. We need to figure out if anything is still\n            // suspended in the rendered set.\n            // If new content unsuspended, but there's still some content that\n            // didn't. Then we need to do a second pass that forces everything\n            // to keep showing their fallbacks.\n            // We might be suspended if something in this render pass suspended, or\n            // something in the previous committed pass suspended. Otherwise,\n            // there's no chance so we can skip the expensive call to\n            // findFirstSuspended.\n            var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);\n\n            if (!cannotBeSuspended) {\n              var row = workInProgress.child;\n\n              while (row !== null) {\n                var suspended = findFirstSuspended(row);\n\n                if (suspended !== null) {\n                  didSuspendAlready = true;\n                  workInProgress.flags |= DidCapture;\n                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as\n                  // part of the second pass. In that case nothing will subscribe to\n                  // its thenables. Instead, we'll transfer its thenables to the\n                  // SuspenseList so that it can retry if they resolve.\n                  // There might be multiple of these in the list but since we're\n                  // going to wait for all of them anyway, it doesn't really matter\n                  // which ones gets to ping. In theory we could get clever and keep\n                  // track of how many dependencies remain but it gets tricky because\n                  // in the meantime, we can add/remove/change items and dependencies.\n                  // We might bail out of the loop before finding any but that\n                  // doesn't matter since that means that the other boundaries that\n                  // we did find already has their listeners attached.\n\n                  var newThenables = suspended.updateQueue;\n\n                  if (newThenables !== null) {\n                    workInProgress.updateQueue = newThenables;\n                    workInProgress.flags |= Update;\n                  } // Rerender the whole list, but this time, we'll force fallbacks\n                  // to stay in place.\n                  // Reset the effect flags before doing the second pass since that's now invalid.\n                  // Reset the child fibers to their original state.\n\n\n                  workInProgress.subtreeFlags = NoFlags;\n                  resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately\n                  // rerender the children.\n\n                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case.\n\n                  return workInProgress.child;\n                }\n\n                row = row.sibling;\n              }\n            }\n\n            if (renderState.tail !== null && now() > getRenderTargetTime()) {\n              // We have already passed our CPU deadline but we still have rows\n              // left in the tail. We'll just give up further attempts to render\n              // the main content and only render fallbacks.\n              workInProgress.flags |= DidCapture;\n              didSuspendAlready = true;\n              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this\n              // to get it started back up to attempt the next item. While in terms\n              // of priority this work has the same priority as this current render,\n              // it's not part of the same transition once the transition has\n              // committed. If it's sync, we still want to yield so that it can be\n              // painted. Conceptually, this is really the same as pinging.\n              // We can use any RetryLane even if it's the one currently rendering\n              // since we're leaving it behind on this node.\n\n              workInProgress.lanes = SomeRetryLane;\n            }\n          } else {\n            cutOffTailIfNeeded(renderState, false);\n          } // Next we're going to render the tail.\n\n        } else {\n          // Append the rendered row to the child list.\n          if (!didSuspendAlready) {\n            var _suspended = findFirstSuspended(renderedTail);\n\n            if (_suspended !== null) {\n              workInProgress.flags |= DidCapture;\n              didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't\n              // get lost if this row ends up dropped during a second pass.\n\n              var _newThenables = _suspended.updateQueue;\n\n              if (_newThenables !== null) {\n                workInProgress.updateQueue = _newThenables;\n                workInProgress.flags |= Update;\n              }\n\n              cutOffTailIfNeeded(renderState, true); // This might have been modified.\n\n              if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.\n              ) {\n                  // We're done.\n                  bubbleProperties(workInProgress);\n                  return null;\n                }\n            } else if ( // The time it took to render last row is greater than the remaining\n            // time we have to render. So rendering one more row would likely\n            // exceed it.\n            now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {\n              // We have now passed our CPU deadline and we'll just give up further\n              // attempts to render the main content and only render fallbacks.\n              // The assumption is that this is usually faster.\n              workInProgress.flags |= DidCapture;\n              didSuspendAlready = true;\n              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this\n              // to get it started back up to attempt the next item. While in terms\n              // of priority this work has the same priority as this current render,\n              // it's not part of the same transition once the transition has\n              // committed. If it's sync, we still want to yield so that it can be\n              // painted. Conceptually, this is really the same as pinging.\n              // We can use any RetryLane even if it's the one currently rendering\n              // since we're leaving it behind on this node.\n\n              workInProgress.lanes = SomeRetryLane;\n            }\n          }\n\n          if (renderState.isBackwards) {\n            // The effect list of the backwards tail will have been added\n            // to the end. This breaks the guarantee that life-cycles fire in\n            // sibling order but that isn't a strong guarantee promised by React.\n            // Especially since these might also just pop in during future commits.\n            // Append to the beginning of the list.\n            renderedTail.sibling = workInProgress.child;\n            workInProgress.child = renderedTail;\n          } else {\n            var previousSibling = renderState.last;\n\n            if (previousSibling !== null) {\n              previousSibling.sibling = renderedTail;\n            } else {\n              workInProgress.child = renderedTail;\n            }\n\n            renderState.last = renderedTail;\n          }\n        }\n\n        if (renderState.tail !== null) {\n          // We still have tail rows to render.\n          // Pop a row.\n          var next = renderState.tail;\n          renderState.rendering = next;\n          renderState.tail = next.sibling;\n          renderState.renderingStartTime = now();\n          next.sibling = null; // Restore the context.\n          // TODO: We can probably just avoid popping it instead and only\n          // setting it the first time we go from not suspended to suspended.\n\n          var suspenseContext = suspenseStackCursor.current;\n\n          if (didSuspendAlready) {\n            suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n          } else {\n            suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);\n          }\n\n          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.\n          // Don't bubble properties in this case.\n\n          return next;\n        }\n\n        bubbleProperties(workInProgress);\n        return null;\n      }\n\n    case ScopeComponent:\n      {\n\n        break;\n      }\n\n    case OffscreenComponent:\n    case LegacyHiddenComponent:\n      {\n        popRenderLanes(workInProgress);\n        var _nextState = workInProgress.memoizedState;\n        var nextIsHidden = _nextState !== null;\n\n        if (current !== null) {\n          var _prevState = current.memoizedState;\n          var prevIsHidden = _prevState !== null;\n\n          if (prevIsHidden !== nextIsHidden && ( // LegacyHidden doesn't do any hiding — it only pre-renders.\n          !enableLegacyHidden )) {\n            workInProgress.flags |= Visibility;\n          }\n        }\n\n        if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) {\n          bubbleProperties(workInProgress);\n        } else {\n          // Don't bubble properties for hidden children unless we're rendering\n          // at offscreen priority.\n          if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) {\n            bubbleProperties(workInProgress);\n\n            {\n              // Check if there was an insertion or update in the hidden subtree.\n              // If so, we need to hide those nodes in the commit phase, so\n              // schedule a visibility effect.\n              if ( workInProgress.subtreeFlags & (Placement | Update)) {\n                workInProgress.flags |= Visibility;\n              }\n            }\n          }\n        }\n        return null;\n      }\n\n    case CacheComponent:\n      {\n\n        return null;\n      }\n\n    case TracingMarkerComponent:\n      {\n\n        return null;\n      }\n  }\n\n  throw new Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in \" + 'React. Please file an issue.');\n}\n\nfunction unwindWork(current, workInProgress, renderLanes) {\n  // Note: This intentionally doesn't check if we're hydrating because comparing\n  // to the current tree provider fiber is just as fast and less error-prone.\n  // Ideally we would have a special version of the work loop only\n  // for hydration.\n  popTreeContext(workInProgress);\n\n  switch (workInProgress.tag) {\n    case ClassComponent:\n      {\n        var Component = workInProgress.type;\n\n        if (isContextProvider(Component)) {\n          popContext(workInProgress);\n        }\n\n        var flags = workInProgress.flags;\n\n        if (flags & ShouldCapture) {\n          workInProgress.flags = flags & ~ShouldCapture | DidCapture;\n\n          if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n            transferActualDuration(workInProgress);\n          }\n\n          return workInProgress;\n        }\n\n        return null;\n      }\n\n    case HostRoot:\n      {\n        var root = workInProgress.stateNode;\n        popHostContainer(workInProgress);\n        popTopLevelContextObject(workInProgress);\n        resetWorkInProgressVersions();\n        var _flags = workInProgress.flags;\n\n        if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {\n          // There was an error during render that wasn't captured by a suspense\n          // boundary. Do a second pass on the root to unmount the children.\n          workInProgress.flags = _flags & ~ShouldCapture | DidCapture;\n          return workInProgress;\n        } // We unwound to the root without completing it. Exit.\n\n\n        return null;\n      }\n\n    case HostComponent:\n      {\n        // TODO: popHydrationState\n        popHostContext(workInProgress);\n        return null;\n      }\n\n    case SuspenseComponent:\n      {\n        popSuspenseContext(workInProgress);\n        var suspenseState = workInProgress.memoizedState;\n\n        if (suspenseState !== null && suspenseState.dehydrated !== null) {\n          if (workInProgress.alternate === null) {\n            throw new Error('Threw in newly mounted dehydrated component. This is likely a bug in ' + 'React. Please file an issue.');\n          }\n\n          resetHydrationState();\n        }\n\n        var _flags2 = workInProgress.flags;\n\n        if (_flags2 & ShouldCapture) {\n          workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.\n\n          if ( (workInProgress.mode & ProfileMode) !== NoMode) {\n            transferActualDuration(workInProgress);\n          }\n\n          return workInProgress;\n        }\n\n        return null;\n      }\n\n    case SuspenseListComponent:\n      {\n        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been\n        // caught by a nested boundary. If not, it should bubble through.\n\n        return null;\n      }\n\n    case HostPortal:\n      popHostContainer(workInProgress);\n      return null;\n\n    case ContextProvider:\n      var context = workInProgress.type._context;\n      popProvider(context, workInProgress);\n      return null;\n\n    case OffscreenComponent:\n    case LegacyHiddenComponent:\n      popRenderLanes(workInProgress);\n      return null;\n\n    case CacheComponent:\n\n      return null;\n\n    default:\n      return null;\n  }\n}\n\nfunction unwindInterruptedWork(current, interruptedWork, renderLanes) {\n  // Note: This intentionally doesn't check if we're hydrating because comparing\n  // to the current tree provider fiber is just as fast and less error-prone.\n  // Ideally we would have a special version of the work loop only\n  // for hydration.\n  popTreeContext(interruptedWork);\n\n  switch (interruptedWork.tag) {\n    case ClassComponent:\n      {\n        var childContextTypes = interruptedWork.type.childContextTypes;\n\n        if (childContextTypes !== null && childContextTypes !== undefined) {\n          popContext(interruptedWork);\n        }\n\n        break;\n      }\n\n    case HostRoot:\n      {\n        var root = interruptedWork.stateNode;\n        popHostContainer(interruptedWork);\n        popTopLevelContextObject(interruptedWork);\n        resetWorkInProgressVersions();\n        break;\n      }\n\n    case HostComponent:\n      {\n        popHostContext(interruptedWork);\n        break;\n      }\n\n    case HostPortal:\n      popHostContainer(interruptedWork);\n      break;\n\n    case SuspenseComponent:\n      popSuspenseContext(interruptedWork);\n      break;\n\n    case SuspenseListComponent:\n      popSuspenseContext(interruptedWork);\n      break;\n\n    case ContextProvider:\n      var context = interruptedWork.type._context;\n      popProvider(context, interruptedWork);\n      break;\n\n    case OffscreenComponent:\n    case LegacyHiddenComponent:\n      popRenderLanes(interruptedWork);\n      break;\n  }\n}\n\nvar didWarnAboutUndefinedSnapshotBeforeUpdate = null;\n\n{\n  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();\n} // Used during the commit phase to track the state of the Offscreen component stack.\n// Allows us to avoid traversing the return path to find the nearest Offscreen ancestor.\n// Only used when enableSuspenseLayoutEffectSemantics is enabled.\n\n\nvar offscreenSubtreeIsHidden = false;\nvar offscreenSubtreeWasHidden = false;\nvar PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;\nvar nextEffect = null; // Used for Profiling builds to track updaters.\n\nvar inProgressLanes = null;\nvar inProgressRoot = null;\nfunction reportUncaughtErrorInDEV(error) {\n  // Wrapping each small part of the commit phase into a guarded\n  // callback is a bit too slow (https://github.com/facebook/react/pull/21666).\n  // But we rely on it to surface errors to DEV tools like overlays\n  // (https://github.com/facebook/react/issues/21712).\n  // As a compromise, rethrow only caught errors in a guard.\n  {\n    invokeGuardedCallback(null, function () {\n      throw error;\n    });\n    clearCaughtError();\n  }\n}\n\nvar callComponentWillUnmountWithTimer = function (current, instance) {\n  instance.props = current.memoizedProps;\n  instance.state = current.memoizedState;\n\n  if ( current.mode & ProfileMode) {\n    try {\n      startLayoutEffectTimer();\n      instance.componentWillUnmount();\n    } finally {\n      recordLayoutEffectDuration(current);\n    }\n  } else {\n    instance.componentWillUnmount();\n  }\n}; // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyCallCommitHookLayoutEffectListMount(current, nearestMountedAncestor) {\n  try {\n    commitHookEffectListMount(Layout, current);\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n} // Capture errors so they don't interrupt unmounting.\n\n\nfunction safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) {\n  try {\n    callComponentWillUnmountWithTimer(current, instance);\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n} // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyCallComponentDidMount(current, nearestMountedAncestor, instance) {\n  try {\n    instance.componentDidMount();\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n} // Capture errors so they don't interrupt mounting.\n\n\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n  try {\n    commitAttachRef(current);\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n}\n\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n  var ref = current.ref;\n\n  if (ref !== null) {\n    if (typeof ref === 'function') {\n      var retVal;\n\n      try {\n        if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) {\n          try {\n            startLayoutEffectTimer();\n            retVal = ref(null);\n          } finally {\n            recordLayoutEffectDuration(current);\n          }\n        } else {\n          retVal = ref(null);\n        }\n      } catch (error) {\n        captureCommitPhaseError(current, nearestMountedAncestor, error);\n      }\n\n      {\n        if (typeof retVal === 'function') {\n          error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(current));\n        }\n      }\n    } else {\n      ref.current = null;\n    }\n  }\n}\n\nfunction safelyCallDestroy(current, nearestMountedAncestor, destroy) {\n  try {\n    destroy();\n  } catch (error) {\n    captureCommitPhaseError(current, nearestMountedAncestor, error);\n  }\n}\n\nvar focusedInstanceHandle = null;\nvar shouldFireAfterActiveInstanceBlur = false;\nfunction commitBeforeMutationEffects(root, firstChild) {\n  focusedInstanceHandle = prepareForCommit(root.containerInfo);\n  nextEffect = firstChild;\n  commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber\n\n  var shouldFire = shouldFireAfterActiveInstanceBlur;\n  shouldFireAfterActiveInstanceBlur = false;\n  focusedInstanceHandle = null;\n  return shouldFire;\n}\n\nfunction commitBeforeMutationEffects_begin() {\n  while (nextEffect !== null) {\n    var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur.\n\n    var child = fiber.child;\n\n    if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) {\n      child.return = fiber;\n      nextEffect = child;\n    } else {\n      commitBeforeMutationEffects_complete();\n    }\n  }\n}\n\nfunction commitBeforeMutationEffects_complete() {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    setCurrentFiber(fiber);\n\n    try {\n      commitBeforeMutationEffectsOnFiber(fiber);\n    } catch (error) {\n      captureCommitPhaseError(fiber, fiber.return, error);\n    }\n\n    resetCurrentFiber();\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction commitBeforeMutationEffectsOnFiber(finishedWork) {\n  var current = finishedWork.alternate;\n  var flags = finishedWork.flags;\n\n  if ((flags & Snapshot) !== NoFlags) {\n    setCurrentFiber(finishedWork);\n\n    switch (finishedWork.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          break;\n        }\n\n      case ClassComponent:\n        {\n          if (current !== null) {\n            var prevProps = current.memoizedProps;\n            var prevState = current.memoizedState;\n            var instance = finishedWork.stateNode; // We could update instance props and state here,\n            // but instead we rely on them being set during last render.\n            // TODO: revisit this when we implement resuming.\n\n            {\n              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n                if (instance.props !== finishedWork.memoizedProps) {\n                  error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                }\n\n                if (instance.state !== finishedWork.memoizedState) {\n                  error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                }\n              }\n            }\n\n            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);\n\n            {\n              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;\n\n              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {\n                didWarnSet.add(finishedWork.type);\n\n                error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentNameFromFiber(finishedWork));\n              }\n            }\n\n            instance.__reactInternalSnapshotBeforeUpdate = snapshot;\n          }\n\n          break;\n        }\n\n      case HostRoot:\n        {\n          {\n            var root = finishedWork.stateNode;\n            clearContainer(root.containerInfo);\n          }\n\n          break;\n        }\n\n      case HostComponent:\n      case HostText:\n      case HostPortal:\n      case IncompleteClassComponent:\n        // Nothing to do for these component types\n        break;\n\n      default:\n        {\n          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.');\n        }\n    }\n\n    resetCurrentFiber();\n  }\n}\n\nfunction commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) {\n  var updateQueue = finishedWork.updateQueue;\n  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;\n\n  if (lastEffect !== null) {\n    var firstEffect = lastEffect.next;\n    var effect = firstEffect;\n\n    do {\n      if ((effect.tag & flags) === flags) {\n        // Unmount\n        var destroy = effect.destroy;\n        effect.destroy = undefined;\n\n        if (destroy !== undefined) {\n          {\n            if ((flags & Passive$1) !== NoFlags$1) {\n              markComponentPassiveEffectUnmountStarted(finishedWork);\n            } else if ((flags & Layout) !== NoFlags$1) {\n              markComponentLayoutEffectUnmountStarted(finishedWork);\n            }\n          }\n\n          {\n            if ((flags & Insertion) !== NoFlags$1) {\n              setIsRunningInsertionEffect(true);\n            }\n          }\n\n          safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);\n\n          {\n            if ((flags & Insertion) !== NoFlags$1) {\n              setIsRunningInsertionEffect(false);\n            }\n          }\n\n          {\n            if ((flags & Passive$1) !== NoFlags$1) {\n              markComponentPassiveEffectUnmountStopped();\n            } else if ((flags & Layout) !== NoFlags$1) {\n              markComponentLayoutEffectUnmountStopped();\n            }\n          }\n        }\n      }\n\n      effect = effect.next;\n    } while (effect !== firstEffect);\n  }\n}\n\nfunction commitHookEffectListMount(flags, finishedWork) {\n  var updateQueue = finishedWork.updateQueue;\n  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;\n\n  if (lastEffect !== null) {\n    var firstEffect = lastEffect.next;\n    var effect = firstEffect;\n\n    do {\n      if ((effect.tag & flags) === flags) {\n        {\n          if ((flags & Passive$1) !== NoFlags$1) {\n            markComponentPassiveEffectMountStarted(finishedWork);\n          } else if ((flags & Layout) !== NoFlags$1) {\n            markComponentLayoutEffectMountStarted(finishedWork);\n          }\n        } // Mount\n\n\n        var create = effect.create;\n\n        {\n          if ((flags & Insertion) !== NoFlags$1) {\n            setIsRunningInsertionEffect(true);\n          }\n        }\n\n        effect.destroy = create();\n\n        {\n          if ((flags & Insertion) !== NoFlags$1) {\n            setIsRunningInsertionEffect(false);\n          }\n        }\n\n        {\n          if ((flags & Passive$1) !== NoFlags$1) {\n            markComponentPassiveEffectMountStopped();\n          } else if ((flags & Layout) !== NoFlags$1) {\n            markComponentLayoutEffectMountStopped();\n          }\n        }\n\n        {\n          var destroy = effect.destroy;\n\n          if (destroy !== undefined && typeof destroy !== 'function') {\n            var hookName = void 0;\n\n            if ((effect.tag & Layout) !== NoFlags) {\n              hookName = 'useLayoutEffect';\n            } else if ((effect.tag & Insertion) !== NoFlags) {\n              hookName = 'useInsertionEffect';\n            } else {\n              hookName = 'useEffect';\n            }\n\n            var addendum = void 0;\n\n            if (destroy === null) {\n              addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';\n            } else if (typeof destroy.then === 'function') {\n              addendum = '\\n\\nIt looks like you wrote ' + hookName + '(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\\n\\n' + hookName + '(() => {\\n' + '  async function fetchData() {\\n' + '    // You can await here\\n' + '    const response = await MyAPI.getData(someId);\\n' + '    // ...\\n' + '  }\\n' + '  fetchData();\\n' + \"}, [someId]); // Or [] if effect doesn't need props or state\\n\\n\" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';\n            } else {\n              addendum = ' You returned: ' + destroy;\n            }\n\n            error('%s must not return anything besides a function, ' + 'which is used for clean-up.%s', hookName, addendum);\n          }\n        }\n      }\n\n      effect = effect.next;\n    } while (effect !== firstEffect);\n  }\n}\n\nfunction commitPassiveEffectDurations(finishedRoot, finishedWork) {\n  {\n    // Only Profilers with work in their subtree will have an Update effect scheduled.\n    if ((finishedWork.flags & Update) !== NoFlags) {\n      switch (finishedWork.tag) {\n        case Profiler:\n          {\n            var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration;\n            var _finishedWork$memoize = finishedWork.memoizedProps,\n                id = _finishedWork$memoize.id,\n                onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase.\n            // It does not get reset until the start of the next commit phase.\n\n            var commitTime = getCommitTime();\n            var phase = finishedWork.alternate === null ? 'mount' : 'update';\n\n            {\n              if (isCurrentUpdateNested()) {\n                phase = 'nested-update';\n              }\n            }\n\n            if (typeof onPostCommit === 'function') {\n              onPostCommit(id, phase, passiveEffectDuration, commitTime);\n            } // Bubble times to the next nearest ancestor Profiler.\n            // After we process that Profiler, we'll bubble further up.\n\n\n            var parentFiber = finishedWork.return;\n\n            outer: while (parentFiber !== null) {\n              switch (parentFiber.tag) {\n                case HostRoot:\n                  var root = parentFiber.stateNode;\n                  root.passiveEffectDuration += passiveEffectDuration;\n                  break outer;\n\n                case Profiler:\n                  var parentStateNode = parentFiber.stateNode;\n                  parentStateNode.passiveEffectDuration += passiveEffectDuration;\n                  break outer;\n              }\n\n              parentFiber = parentFiber.return;\n            }\n\n            break;\n          }\n      }\n    }\n  }\n}\n\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) {\n  if ((finishedWork.flags & LayoutMask) !== NoFlags) {\n    switch (finishedWork.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          if ( !offscreenSubtreeWasHidden) {\n            // At this point layout effects have already been destroyed (during mutation phase).\n            // This is done to prevent sibling component effects from interfering with each other,\n            // e.g. a destroy function in one component should never override a ref set\n            // by a create function in another component during the same commit.\n            if ( finishedWork.mode & ProfileMode) {\n              try {\n                startLayoutEffectTimer();\n                commitHookEffectListMount(Layout | HasEffect, finishedWork);\n              } finally {\n                recordLayoutEffectDuration(finishedWork);\n              }\n            } else {\n              commitHookEffectListMount(Layout | HasEffect, finishedWork);\n            }\n          }\n\n          break;\n        }\n\n      case ClassComponent:\n        {\n          var instance = finishedWork.stateNode;\n\n          if (finishedWork.flags & Update) {\n            if (!offscreenSubtreeWasHidden) {\n              if (current === null) {\n                // We could update instance props and state here,\n                // but instead we rely on them being set during last render.\n                // TODO: revisit this when we implement resuming.\n                {\n                  if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n                    if (instance.props !== finishedWork.memoizedProps) {\n                      error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                    }\n\n                    if (instance.state !== finishedWork.memoizedState) {\n                      error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                    }\n                  }\n                }\n\n                if ( finishedWork.mode & ProfileMode) {\n                  try {\n                    startLayoutEffectTimer();\n                    instance.componentDidMount();\n                  } finally {\n                    recordLayoutEffectDuration(finishedWork);\n                  }\n                } else {\n                  instance.componentDidMount();\n                }\n              } else {\n                var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);\n                var prevState = current.memoizedState; // We could update instance props and state here,\n                // but instead we rely on them being set during last render.\n                // TODO: revisit this when we implement resuming.\n\n                {\n                  if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n                    if (instance.props !== finishedWork.memoizedProps) {\n                      error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                    }\n\n                    if (instance.state !== finishedWork.memoizedState) {\n                      error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                    }\n                  }\n                }\n\n                if ( finishedWork.mode & ProfileMode) {\n                  try {\n                    startLayoutEffectTimer();\n                    instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n                  } finally {\n                    recordLayoutEffectDuration(finishedWork);\n                  }\n                } else {\n                  instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n                }\n              }\n            }\n          } // TODO: I think this is now always non-null by the time it reaches the\n          // commit phase. Consider removing the type check.\n\n\n          var updateQueue = finishedWork.updateQueue;\n\n          if (updateQueue !== null) {\n            {\n              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {\n                if (instance.props !== finishedWork.memoizedProps) {\n                  error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                }\n\n                if (instance.state !== finishedWork.memoizedState) {\n                  error('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.', getComponentNameFromFiber(finishedWork) || 'instance');\n                }\n              }\n            } // We could update instance props and state here,\n            // but instead we rely on them being set during last render.\n            // TODO: revisit this when we implement resuming.\n\n\n            commitUpdateQueue(finishedWork, updateQueue, instance);\n          }\n\n          break;\n        }\n\n      case HostRoot:\n        {\n          // TODO: I think this is now always non-null by the time it reaches the\n          // commit phase. Consider removing the type check.\n          var _updateQueue = finishedWork.updateQueue;\n\n          if (_updateQueue !== null) {\n            var _instance = null;\n\n            if (finishedWork.child !== null) {\n              switch (finishedWork.child.tag) {\n                case HostComponent:\n                  _instance = getPublicInstance(finishedWork.child.stateNode);\n                  break;\n\n                case ClassComponent:\n                  _instance = finishedWork.child.stateNode;\n                  break;\n              }\n            }\n\n            commitUpdateQueue(finishedWork, _updateQueue, _instance);\n          }\n\n          break;\n        }\n\n      case HostComponent:\n        {\n          var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted\n          // (eg DOM renderer may schedule auto-focus for inputs and form controls).\n          // These effects should only be committed when components are first mounted,\n          // aka when there is no current/alternate.\n\n          if (current === null && finishedWork.flags & Update) {\n            var type = finishedWork.type;\n            var props = finishedWork.memoizedProps;\n            commitMount(_instance2, type, props);\n          }\n\n          break;\n        }\n\n      case HostText:\n        {\n          // We have no life-cycles associated with text.\n          break;\n        }\n\n      case HostPortal:\n        {\n          // We have no life-cycles associated with portals.\n          break;\n        }\n\n      case Profiler:\n        {\n          {\n            var _finishedWork$memoize2 = finishedWork.memoizedProps,\n                onCommit = _finishedWork$memoize2.onCommit,\n                onRender = _finishedWork$memoize2.onRender;\n            var effectDuration = finishedWork.stateNode.effectDuration;\n            var commitTime = getCommitTime();\n            var phase = current === null ? 'mount' : 'update';\n\n            {\n              if (isCurrentUpdateNested()) {\n                phase = 'nested-update';\n              }\n            }\n\n            if (typeof onRender === 'function') {\n              onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime);\n            }\n\n            {\n              if (typeof onCommit === 'function') {\n                onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime);\n              } // Schedule a passive effect for this Profiler to call onPostCommit hooks.\n              // This effect should be scheduled even if there is no onPostCommit callback for this Profiler,\n              // because the effect is also where times bubble to parent Profilers.\n\n\n              enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor.\n              // Do not reset these values until the next render so DevTools has a chance to read them first.\n\n              var parentFiber = finishedWork.return;\n\n              outer: while (parentFiber !== null) {\n                switch (parentFiber.tag) {\n                  case HostRoot:\n                    var root = parentFiber.stateNode;\n                    root.effectDuration += effectDuration;\n                    break outer;\n\n                  case Profiler:\n                    var parentStateNode = parentFiber.stateNode;\n                    parentStateNode.effectDuration += effectDuration;\n                    break outer;\n                }\n\n                parentFiber = parentFiber.return;\n              }\n            }\n          }\n\n          break;\n        }\n\n      case SuspenseComponent:\n        {\n          commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n          break;\n        }\n\n      case SuspenseListComponent:\n      case IncompleteClassComponent:\n      case ScopeComponent:\n      case OffscreenComponent:\n      case LegacyHiddenComponent:\n      case TracingMarkerComponent:\n        {\n          break;\n        }\n\n      default:\n        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.');\n    }\n  }\n\n  if ( !offscreenSubtreeWasHidden) {\n    {\n      if (finishedWork.flags & Ref) {\n        commitAttachRef(finishedWork);\n      }\n    }\n  }\n}\n\nfunction reappearLayoutEffectsOnFiber(node) {\n  // Turn on layout effects in a tree that previously disappeared.\n  // TODO (Offscreen) Check: flags & LayoutStatic\n  switch (node.tag) {\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n      {\n        if ( node.mode & ProfileMode) {\n          try {\n            startLayoutEffectTimer();\n            safelyCallCommitHookLayoutEffectListMount(node, node.return);\n          } finally {\n            recordLayoutEffectDuration(node);\n          }\n        } else {\n          safelyCallCommitHookLayoutEffectListMount(node, node.return);\n        }\n\n        break;\n      }\n\n    case ClassComponent:\n      {\n        var instance = node.stateNode;\n\n        if (typeof instance.componentDidMount === 'function') {\n          safelyCallComponentDidMount(node, node.return, instance);\n        }\n\n        safelyAttachRef(node, node.return);\n        break;\n      }\n\n    case HostComponent:\n      {\n        safelyAttachRef(node, node.return);\n        break;\n      }\n  }\n}\n\nfunction hideOrUnhideAllChildren(finishedWork, isHidden) {\n  // Only hide or unhide the top-most host nodes.\n  var hostSubtreeRoot = null;\n\n  {\n    // We only have the top Fiber that was inserted but we need to recurse down its\n    // children to find all the terminal nodes.\n    var node = finishedWork;\n\n    while (true) {\n      if (node.tag === HostComponent) {\n        if (hostSubtreeRoot === null) {\n          hostSubtreeRoot = node;\n\n          try {\n            var instance = node.stateNode;\n\n            if (isHidden) {\n              hideInstance(instance);\n            } else {\n              unhideInstance(node.stateNode, node.memoizedProps);\n            }\n          } catch (error) {\n            captureCommitPhaseError(finishedWork, finishedWork.return, error);\n          }\n        }\n      } else if (node.tag === HostText) {\n        if (hostSubtreeRoot === null) {\n          try {\n            var _instance3 = node.stateNode;\n\n            if (isHidden) {\n              hideTextInstance(_instance3);\n            } else {\n              unhideTextInstance(_instance3, node.memoizedProps);\n            }\n          } catch (error) {\n            captureCommitPhaseError(finishedWork, finishedWork.return, error);\n          }\n        }\n      } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {\n        node.child.return = node;\n        node = node.child;\n        continue;\n      }\n\n      if (node === finishedWork) {\n        return;\n      }\n\n      while (node.sibling === null) {\n        if (node.return === null || node.return === finishedWork) {\n          return;\n        }\n\n        if (hostSubtreeRoot === node) {\n          hostSubtreeRoot = null;\n        }\n\n        node = node.return;\n      }\n\n      if (hostSubtreeRoot === node) {\n        hostSubtreeRoot = null;\n      }\n\n      node.sibling.return = node.return;\n      node = node.sibling;\n    }\n  }\n}\n\nfunction commitAttachRef(finishedWork) {\n  var ref = finishedWork.ref;\n\n  if (ref !== null) {\n    var instance = finishedWork.stateNode;\n    var instanceToUse;\n\n    switch (finishedWork.tag) {\n      case HostComponent:\n        instanceToUse = getPublicInstance(instance);\n        break;\n\n      default:\n        instanceToUse = instance;\n    } // Moved outside to ensure DCE works with this flag\n\n    if (typeof ref === 'function') {\n      var retVal;\n\n      if ( finishedWork.mode & ProfileMode) {\n        try {\n          startLayoutEffectTimer();\n          retVal = ref(instanceToUse);\n        } finally {\n          recordLayoutEffectDuration(finishedWork);\n        }\n      } else {\n        retVal = ref(instanceToUse);\n      }\n\n      {\n        if (typeof retVal === 'function') {\n          error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(finishedWork));\n        }\n      }\n    } else {\n      {\n        if (!ref.hasOwnProperty('current')) {\n          error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentNameFromFiber(finishedWork));\n        }\n      }\n\n      ref.current = instanceToUse;\n    }\n  }\n}\n\nfunction detachFiberMutation(fiber) {\n  // Cut off the return pointer to disconnect it from the tree.\n  // This enables us to detect and warn against state updates on an unmounted component.\n  // It also prevents events from bubbling from within disconnected components.\n  //\n  // Ideally, we should also clear the child pointer of the parent alternate to let this\n  // get GC:ed but we don't know which for sure which parent is the current\n  // one so we'll settle for GC:ing the subtree of this child.\n  // This child itself will be GC:ed when the parent updates the next time.\n  //\n  // Note that we can't clear child or sibling pointers yet.\n  // They're needed for passive effects and for findDOMNode.\n  // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects).\n  //\n  // Don't reset the alternate yet, either. We need that so we can detach the\n  // alternate's fields in the passive phase. Clearing the return pointer is\n  // sufficient for findDOMNode semantics.\n  var alternate = fiber.alternate;\n\n  if (alternate !== null) {\n    alternate.return = null;\n  }\n\n  fiber.return = null;\n}\n\nfunction detachFiberAfterEffects(fiber) {\n  var alternate = fiber.alternate;\n\n  if (alternate !== null) {\n    fiber.alternate = null;\n    detachFiberAfterEffects(alternate);\n  } // Note: Defensively using negation instead of < in case\n  // `deletedTreeCleanUpLevel` is undefined.\n\n\n  {\n    // Clear cyclical Fiber fields. This level alone is designed to roughly\n    // approximate the planned Fiber refactor. In that world, `setState` will be\n    // bound to a special \"instance\" object instead of a Fiber. The Instance\n    // object will not have any of these fields. It will only be connected to\n    // the fiber tree via a single link at the root. So if this level alone is\n    // sufficient to fix memory issues, that bodes well for our plans.\n    fiber.child = null;\n    fiber.deletions = null;\n    fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host\n    // tree, which has its own pointers to children, parents, and siblings.\n    // The other host nodes also point back to fibers, so we should detach that\n    // one, too.\n\n    if (fiber.tag === HostComponent) {\n      var hostInstance = fiber.stateNode;\n\n      if (hostInstance !== null) {\n        detachDeletedInstance(hostInstance);\n      }\n    }\n\n    fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We\n    // already disconnect the `return` pointer at the root of the deleted\n    // subtree (in `detachFiberMutation`). Besides, `return` by itself is not\n    // cyclical — it's only cyclical when combined with `child`, `sibling`, and\n    // `alternate`. But we'll clear it in the next level anyway, just in case.\n\n    {\n      fiber._debugOwner = null;\n    }\n\n    {\n      // Theoretically, nothing in here should be necessary, because we already\n      // disconnected the fiber from the tree. So even if something leaks this\n      // particular fiber, it won't leak anything else\n      //\n      // The purpose of this branch is to be super aggressive so we can measure\n      // if there's any difference in memory impact. If there is, that could\n      // indicate a React leak we don't know about.\n      fiber.return = null;\n      fiber.dependencies = null;\n      fiber.memoizedProps = null;\n      fiber.memoizedState = null;\n      fiber.pendingProps = null;\n      fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead.\n\n      fiber.updateQueue = null;\n    }\n  }\n}\n\nfunction getHostParentFiber(fiber) {\n  var parent = fiber.return;\n\n  while (parent !== null) {\n    if (isHostParent(parent)) {\n      return parent;\n    }\n\n    parent = parent.return;\n  }\n\n  throw new Error('Expected to find a host parent. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n}\n\nfunction isHostParent(fiber) {\n  return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;\n}\n\nfunction getHostSibling(fiber) {\n  // We're going to search forward into the tree until we find a sibling host\n  // node. Unfortunately, if multiple insertions are done in a row we have to\n  // search past them. This leads to exponential search for the next sibling.\n  // TODO: Find a more efficient way to do this.\n  var node = fiber;\n\n  siblings: while (true) {\n    // If we didn't find anything, let's try the next sibling.\n    while (node.sibling === null) {\n      if (node.return === null || isHostParent(node.return)) {\n        // If we pop out of the root or hit the parent the fiber we are the\n        // last sibling.\n        return null;\n      }\n\n      node = node.return;\n    }\n\n    node.sibling.return = node.return;\n    node = node.sibling;\n\n    while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {\n      // If it is not host node and, we might have a host node inside it.\n      // Try to search down until we find one.\n      if (node.flags & Placement) {\n        // If we don't have a child, try the siblings instead.\n        continue siblings;\n      } // If we don't have a child, try the siblings instead.\n      // We also skip portals because they are not part of this host tree.\n\n\n      if (node.child === null || node.tag === HostPortal) {\n        continue siblings;\n      } else {\n        node.child.return = node;\n        node = node.child;\n      }\n    } // Check if this host node is stable or about to be placed.\n\n\n    if (!(node.flags & Placement)) {\n      // Found it!\n      return node.stateNode;\n    }\n  }\n}\n\nfunction commitPlacement(finishedWork) {\n\n\n  var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.\n\n  switch (parentFiber.tag) {\n    case HostComponent:\n      {\n        var parent = parentFiber.stateNode;\n\n        if (parentFiber.flags & ContentReset) {\n          // Reset the text content of the parent before doing any insertions\n          resetTextContent(parent); // Clear ContentReset from the effect tag\n\n          parentFiber.flags &= ~ContentReset;\n        }\n\n        var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its\n        // children to find all the terminal nodes.\n\n        insertOrAppendPlacementNode(finishedWork, before, parent);\n        break;\n      }\n\n    case HostRoot:\n    case HostPortal:\n      {\n        var _parent = parentFiber.stateNode.containerInfo;\n\n        var _before = getHostSibling(finishedWork);\n\n        insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);\n        break;\n      }\n    // eslint-disable-next-line-no-fallthrough\n\n    default:\n      throw new Error('Invalid host parent fiber. This error is likely caused by a bug ' + 'in React. Please file an issue.');\n  }\n}\n\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent) {\n  var tag = node.tag;\n  var isHost = tag === HostComponent || tag === HostText;\n\n  if (isHost) {\n    var stateNode = node.stateNode;\n\n    if (before) {\n      insertInContainerBefore(parent, stateNode, before);\n    } else {\n      appendChildToContainer(parent, stateNode);\n    }\n  } else if (tag === HostPortal) ; else {\n    var child = node.child;\n\n    if (child !== null) {\n      insertOrAppendPlacementNodeIntoContainer(child, before, parent);\n      var sibling = child.sibling;\n\n      while (sibling !== null) {\n        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);\n        sibling = sibling.sibling;\n      }\n    }\n  }\n}\n\nfunction insertOrAppendPlacementNode(node, before, parent) {\n  var tag = node.tag;\n  var isHost = tag === HostComponent || tag === HostText;\n\n  if (isHost) {\n    var stateNode = node.stateNode;\n\n    if (before) {\n      insertBefore(parent, stateNode, before);\n    } else {\n      appendChild(parent, stateNode);\n    }\n  } else if (tag === HostPortal) ; else {\n    var child = node.child;\n\n    if (child !== null) {\n      insertOrAppendPlacementNode(child, before, parent);\n      var sibling = child.sibling;\n\n      while (sibling !== null) {\n        insertOrAppendPlacementNode(sibling, before, parent);\n        sibling = sibling.sibling;\n      }\n    }\n  }\n} // These are tracked on the stack as we recursively traverse a\n// deleted subtree.\n// TODO: Update these during the whole mutation phase, not just during\n// a deletion.\n\n\nvar hostParent = null;\nvar hostParentIsContainer = false;\n\nfunction commitDeletionEffects(root, returnFiber, deletedFiber) {\n  {\n    // We only have the top Fiber that was deleted but we need to recurse down its\n    // children to find all the terminal nodes.\n    // Recursively delete all host nodes from the parent, detach refs, clean\n    // up mounted layout effects, and call componentWillUnmount.\n    // We only need to remove the topmost host child in each branch. But then we\n    // still need to keep traversing to unmount effects, refs, and cWU. TODO: We\n    // could split this into two separate traversals functions, where the second\n    // one doesn't include any removeChild logic. This is maybe the same\n    // function as \"disappearLayoutEffects\" (or whatever that turns into after\n    // the layout phase is refactored to use recursion).\n    // Before starting, find the nearest host parent on the stack so we know\n    // which instance/container to remove the children from.\n    // TODO: Instead of searching up the fiber return path on every deletion, we\n    // can track the nearest host component on the JS stack as we traverse the\n    // tree during the commit phase. This would make insertions faster, too.\n    var parent = returnFiber;\n\n    findParent: while (parent !== null) {\n      switch (parent.tag) {\n        case HostComponent:\n          {\n            hostParent = parent.stateNode;\n            hostParentIsContainer = false;\n            break findParent;\n          }\n\n        case HostRoot:\n          {\n            hostParent = parent.stateNode.containerInfo;\n            hostParentIsContainer = true;\n            break findParent;\n          }\n\n        case HostPortal:\n          {\n            hostParent = parent.stateNode.containerInfo;\n            hostParentIsContainer = true;\n            break findParent;\n          }\n      }\n\n      parent = parent.return;\n    }\n\n    if (hostParent === null) {\n      throw new Error('Expected to find a host parent. This error is likely caused by ' + 'a bug in React. Please file an issue.');\n    }\n\n    commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber);\n    hostParent = null;\n    hostParentIsContainer = false;\n  }\n\n  detachFiberMutation(deletedFiber);\n}\n\nfunction recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {\n  // TODO: Use a static flag to skip trees that don't have unmount effects\n  var child = parent.child;\n\n  while (child !== null) {\n    commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child);\n    child = child.sibling;\n  }\n}\n\nfunction commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {\n  onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse\n  // into their subtree. There are simpler cases in the inner switch\n  // that don't modify the stack.\n\n  switch (deletedFiber.tag) {\n    case HostComponent:\n      {\n        if (!offscreenSubtreeWasHidden) {\n          safelyDetachRef(deletedFiber, nearestMountedAncestor);\n        } // Intentional fallthrough to next branch\n\n      }\n    // eslint-disable-next-line-no-fallthrough\n\n    case HostText:\n      {\n        // We only need to remove the nearest host child. Set the host parent\n        // to `null` on the stack to indicate that nested children don't\n        // need to be removed.\n        {\n          var prevHostParent = hostParent;\n          var prevHostParentIsContainer = hostParentIsContainer;\n          hostParent = null;\n          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n          hostParent = prevHostParent;\n          hostParentIsContainer = prevHostParentIsContainer;\n\n          if (hostParent !== null) {\n            // Now that all the child effects have unmounted, we can remove the\n            // node from the tree.\n            if (hostParentIsContainer) {\n              removeChildFromContainer(hostParent, deletedFiber.stateNode);\n            } else {\n              removeChild(hostParent, deletedFiber.stateNode);\n            }\n          }\n        }\n\n        return;\n      }\n\n    case DehydratedFragment:\n      {\n        // Delete the dehydrated suspense boundary and all of its content.\n\n\n        {\n          if (hostParent !== null) {\n            if (hostParentIsContainer) {\n              clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode);\n            } else {\n              clearSuspenseBoundary(hostParent, deletedFiber.stateNode);\n            }\n          }\n        }\n\n        return;\n      }\n\n    case HostPortal:\n      {\n        {\n          // When we go into a portal, it becomes the parent to remove from.\n          var _prevHostParent = hostParent;\n          var _prevHostParentIsContainer = hostParentIsContainer;\n          hostParent = deletedFiber.stateNode.containerInfo;\n          hostParentIsContainer = true;\n          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n          hostParent = _prevHostParent;\n          hostParentIsContainer = _prevHostParentIsContainer;\n        }\n\n        return;\n      }\n\n    case FunctionComponent:\n    case ForwardRef:\n    case MemoComponent:\n    case SimpleMemoComponent:\n      {\n        if (!offscreenSubtreeWasHidden) {\n          var updateQueue = deletedFiber.updateQueue;\n\n          if (updateQueue !== null) {\n            var lastEffect = updateQueue.lastEffect;\n\n            if (lastEffect !== null) {\n              var firstEffect = lastEffect.next;\n              var effect = firstEffect;\n\n              do {\n                var _effect = effect,\n                    destroy = _effect.destroy,\n                    tag = _effect.tag;\n\n                if (destroy !== undefined) {\n                  if ((tag & Insertion) !== NoFlags$1) {\n                    safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n                  } else if ((tag & Layout) !== NoFlags$1) {\n                    {\n                      markComponentLayoutEffectUnmountStarted(deletedFiber);\n                    }\n\n                    if ( deletedFiber.mode & ProfileMode) {\n                      startLayoutEffectTimer();\n                      safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n                      recordLayoutEffectDuration(deletedFiber);\n                    } else {\n                      safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);\n                    }\n\n                    {\n                      markComponentLayoutEffectUnmountStopped();\n                    }\n                  }\n                }\n\n                effect = effect.next;\n              } while (effect !== firstEffect);\n            }\n          }\n        }\n\n        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n        return;\n      }\n\n    case ClassComponent:\n      {\n        if (!offscreenSubtreeWasHidden) {\n          safelyDetachRef(deletedFiber, nearestMountedAncestor);\n          var instance = deletedFiber.stateNode;\n\n          if (typeof instance.componentWillUnmount === 'function') {\n            safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance);\n          }\n        }\n\n        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n        return;\n      }\n\n    case ScopeComponent:\n      {\n\n        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n        return;\n      }\n\n    case OffscreenComponent:\n      {\n        if ( // TODO: Remove this dead flag\n         deletedFiber.mode & ConcurrentMode) {\n          // If this offscreen component is hidden, we already unmounted it. Before\n          // deleting the children, track that it's already unmounted so that we\n          // don't attempt to unmount the effects again.\n          // TODO: If the tree is hidden, in most cases we should be able to skip\n          // over the nested children entirely. An exception is we haven't yet found\n          // the topmost host node to delete, which we already track on the stack.\n          // But the other case is portals, which need to be detached no matter how\n          // deeply they are nested. We should use a subtree flag to track whether a\n          // subtree includes a nested portal.\n          var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || deletedFiber.memoizedState !== null;\n          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n        } else {\n          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n        }\n\n        break;\n      }\n\n    default:\n      {\n        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);\n        return;\n      }\n  }\n}\n\nfunction commitSuspenseCallback(finishedWork) {\n  // TODO: Move this to passive phase\n  var newState = finishedWork.memoizedState;\n}\n\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n\n  var newState = finishedWork.memoizedState;\n\n  if (newState === null) {\n    var current = finishedWork.alternate;\n\n    if (current !== null) {\n      var prevState = current.memoizedState;\n\n      if (prevState !== null) {\n        var suspenseInstance = prevState.dehydrated;\n\n        if (suspenseInstance !== null) {\n          commitHydratedSuspenseInstance(suspenseInstance);\n        }\n      }\n    }\n  }\n}\n\nfunction attachSuspenseRetryListeners(finishedWork) {\n  // If this boundary just timed out, then it will have a set of wakeables.\n  // For each wakeable, attach a listener so that when it resolves, React\n  // attempts to re-render the boundary in the primary (pre-timeout) state.\n  var wakeables = finishedWork.updateQueue;\n\n  if (wakeables !== null) {\n    finishedWork.updateQueue = null;\n    var retryCache = finishedWork.stateNode;\n\n    if (retryCache === null) {\n      retryCache = finishedWork.stateNode = new PossiblyWeakSet();\n    }\n\n    wakeables.forEach(function (wakeable) {\n      // Memoize using the boundary fiber to prevent redundant listeners.\n      var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n\n      if (!retryCache.has(wakeable)) {\n        retryCache.add(wakeable);\n\n        {\n          if (isDevToolsPresent) {\n            if (inProgressLanes !== null && inProgressRoot !== null) {\n              // If we have pending work still, associate the original updaters with it.\n              restorePendingUpdaters(inProgressRoot, inProgressLanes);\n            } else {\n              throw Error('Expected finished root and lanes to be set. This is a bug in React.');\n            }\n          }\n        }\n\n        wakeable.then(retry, retry);\n      }\n    });\n  }\n} // This function detects when a Suspense boundary goes from visible to hidden.\nfunction commitMutationEffects(root, finishedWork, committedLanes) {\n  inProgressLanes = committedLanes;\n  inProgressRoot = root;\n  setCurrentFiber(finishedWork);\n  commitMutationEffectsOnFiber(finishedWork, root);\n  setCurrentFiber(finishedWork);\n  inProgressLanes = null;\n  inProgressRoot = null;\n}\n\nfunction recursivelyTraverseMutationEffects(root, parentFiber, lanes) {\n  // Deletions effects can be scheduled on any fiber type. They need to happen\n  // before the children effects hae fired.\n  var deletions = parentFiber.deletions;\n\n  if (deletions !== null) {\n    for (var i = 0; i < deletions.length; i++) {\n      var childToDelete = deletions[i];\n\n      try {\n        commitDeletionEffects(root, parentFiber, childToDelete);\n      } catch (error) {\n        captureCommitPhaseError(childToDelete, parentFiber, error);\n      }\n    }\n  }\n\n  var prevDebugFiber = getCurrentFiber();\n\n  if (parentFiber.subtreeFlags & MutationMask) {\n    var child = parentFiber.child;\n\n    while (child !== null) {\n      setCurrentFiber(child);\n      commitMutationEffectsOnFiber(child, root);\n      child = child.sibling;\n    }\n  }\n\n  setCurrentFiber(prevDebugFiber);\n}\n\nfunction commitMutationEffectsOnFiber(finishedWork, root, lanes) {\n  var current = finishedWork.alternate;\n  var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber,\n  // because the fiber tag is more specific. An exception is any flag related\n  // to reconcilation, because those can be set on all fiber types.\n\n  switch (finishedWork.tag) {\n    case FunctionComponent:\n    case ForwardRef:\n    case MemoComponent:\n    case SimpleMemoComponent:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Update) {\n          try {\n            commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);\n            commitHookEffectListMount(Insertion | HasEffect, finishedWork);\n          } catch (error) {\n            captureCommitPhaseError(finishedWork, finishedWork.return, error);\n          } // Layout effects are destroyed during the mutation phase so that all\n          // destroy functions for all fibers are called before any create functions.\n          // This prevents sibling component effects from interfering with each other,\n          // e.g. a destroy function in one component should never override a ref set\n          // by a create function in another component during the same commit.\n\n\n          if ( finishedWork.mode & ProfileMode) {\n            try {\n              startLayoutEffectTimer();\n              commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);\n            } catch (error) {\n              captureCommitPhaseError(finishedWork, finishedWork.return, error);\n            }\n\n            recordLayoutEffectDuration(finishedWork);\n          } else {\n            try {\n              commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);\n            } catch (error) {\n              captureCommitPhaseError(finishedWork, finishedWork.return, error);\n            }\n          }\n        }\n\n        return;\n      }\n\n    case ClassComponent:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Ref) {\n          if (current !== null) {\n            safelyDetachRef(current, current.return);\n          }\n        }\n\n        return;\n      }\n\n    case HostComponent:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Ref) {\n          if (current !== null) {\n            safelyDetachRef(current, current.return);\n          }\n        }\n\n        {\n          // TODO: ContentReset gets cleared by the children during the commit\n          // phase. This is a refactor hazard because it means we must read\n          // flags the flags after `commitReconciliationEffects` has already run;\n          // the order matters. We should refactor so that ContentReset does not\n          // rely on mutating the flag during commit. Like by setting a flag\n          // during the render phase instead.\n          if (finishedWork.flags & ContentReset) {\n            var instance = finishedWork.stateNode;\n\n            try {\n              resetTextContent(instance);\n            } catch (error) {\n              captureCommitPhaseError(finishedWork, finishedWork.return, error);\n            }\n          }\n\n          if (flags & Update) {\n            var _instance4 = finishedWork.stateNode;\n\n            if (_instance4 != null) {\n              // Commit the work prepared earlier.\n              var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n              // as the newProps. The updatePayload will contain the real change in\n              // this case.\n\n              var oldProps = current !== null ? current.memoizedProps : newProps;\n              var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.\n\n              var updatePayload = finishedWork.updateQueue;\n              finishedWork.updateQueue = null;\n\n              if (updatePayload !== null) {\n                try {\n                  commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork);\n                } catch (error) {\n                  captureCommitPhaseError(finishedWork, finishedWork.return, error);\n                }\n              }\n            }\n          }\n        }\n\n        return;\n      }\n\n    case HostText:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Update) {\n          {\n            if (finishedWork.stateNode === null) {\n              throw new Error('This should have a text node initialized. This error is likely ' + 'caused by a bug in React. Please file an issue.');\n            }\n\n            var textInstance = finishedWork.stateNode;\n            var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n            // as the newProps. The updatePayload will contain the real change in\n            // this case.\n\n            var oldText = current !== null ? current.memoizedProps : newText;\n\n            try {\n              commitTextUpdate(textInstance, oldText, newText);\n            } catch (error) {\n              captureCommitPhaseError(finishedWork, finishedWork.return, error);\n            }\n          }\n        }\n\n        return;\n      }\n\n    case HostRoot:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Update) {\n          {\n            if (current !== null) {\n              var prevRootState = current.memoizedState;\n\n              if (prevRootState.isDehydrated) {\n                try {\n                  commitHydratedContainer(root.containerInfo);\n                } catch (error) {\n                  captureCommitPhaseError(finishedWork, finishedWork.return, error);\n                }\n              }\n            }\n          }\n        }\n\n        return;\n      }\n\n    case HostPortal:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        return;\n      }\n\n    case SuspenseComponent:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n        var offscreenFiber = finishedWork.child;\n\n        if (offscreenFiber.flags & Visibility) {\n          var offscreenInstance = offscreenFiber.stateNode;\n          var newState = offscreenFiber.memoizedState;\n          var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can\n          // read it during an event\n\n          offscreenInstance.isHidden = isHidden;\n\n          if (isHidden) {\n            var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null;\n\n            if (!wasHidden) {\n              // TODO: Move to passive phase\n              markCommitTimeOfFallback();\n            }\n          }\n        }\n\n        if (flags & Update) {\n          try {\n            commitSuspenseCallback(finishedWork);\n          } catch (error) {\n            captureCommitPhaseError(finishedWork, finishedWork.return, error);\n          }\n\n          attachSuspenseRetryListeners(finishedWork);\n        }\n\n        return;\n      }\n\n    case OffscreenComponent:\n      {\n        var _wasHidden = current !== null && current.memoizedState !== null;\n\n        if ( // TODO: Remove this dead flag\n         finishedWork.mode & ConcurrentMode) {\n          // Before committing the children, track on the stack whether this\n          // offscreen subtree was already hidden, so that we don't unmount the\n          // effects again.\n          var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || _wasHidden;\n          recursivelyTraverseMutationEffects(root, finishedWork);\n          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n        } else {\n          recursivelyTraverseMutationEffects(root, finishedWork);\n        }\n\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Visibility) {\n          var _offscreenInstance = finishedWork.stateNode;\n          var _newState = finishedWork.memoizedState;\n\n          var _isHidden = _newState !== null;\n\n          var offscreenBoundary = finishedWork; // Track the current state on the Offscreen instance so we can\n          // read it during an event\n\n          _offscreenInstance.isHidden = _isHidden;\n\n          {\n            if (_isHidden) {\n              if (!_wasHidden) {\n                if ((offscreenBoundary.mode & ConcurrentMode) !== NoMode) {\n                  nextEffect = offscreenBoundary;\n                  var offscreenChild = offscreenBoundary.child;\n\n                  while (offscreenChild !== null) {\n                    nextEffect = offscreenChild;\n                    disappearLayoutEffects_begin(offscreenChild);\n                    offscreenChild = offscreenChild.sibling;\n                  }\n                }\n              }\n            }\n          }\n\n          {\n            // TODO: This needs to run whenever there's an insertion or update\n            // inside a hidden Offscreen tree.\n            hideOrUnhideAllChildren(offscreenBoundary, _isHidden);\n          }\n        }\n\n        return;\n      }\n\n    case SuspenseListComponent:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n\n        if (flags & Update) {\n          attachSuspenseRetryListeners(finishedWork);\n        }\n\n        return;\n      }\n\n    case ScopeComponent:\n      {\n\n        return;\n      }\n\n    default:\n      {\n        recursivelyTraverseMutationEffects(root, finishedWork);\n        commitReconciliationEffects(finishedWork);\n        return;\n      }\n  }\n}\n\nfunction commitReconciliationEffects(finishedWork) {\n  // Placement effects (insertions, reorders) can be scheduled on any fiber\n  // type. They needs to happen after the children effects have fired, but\n  // before the effects on this fiber have fired.\n  var flags = finishedWork.flags;\n\n  if (flags & Placement) {\n    try {\n      commitPlacement(finishedWork);\n    } catch (error) {\n      captureCommitPhaseError(finishedWork, finishedWork.return, error);\n    } // Clear the \"placement\" from effect tag so that we know that this is\n    // inserted, before any life-cycles like componentDidMount gets called.\n    // TODO: findDOMNode doesn't rely on this any more but isMounted does\n    // and isMounted is deprecated anyway so we should be able to kill this.\n\n\n    finishedWork.flags &= ~Placement;\n  }\n\n  if (flags & Hydrating) {\n    finishedWork.flags &= ~Hydrating;\n  }\n}\n\nfunction commitLayoutEffects(finishedWork, root, committedLanes) {\n  inProgressLanes = committedLanes;\n  inProgressRoot = root;\n  nextEffect = finishedWork;\n  commitLayoutEffects_begin(finishedWork, root, committedLanes);\n  inProgressLanes = null;\n  inProgressRoot = null;\n}\n\nfunction commitLayoutEffects_begin(subtreeRoot, root, committedLanes) {\n  // Suspense layout effects semantics don't change for legacy roots.\n  var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode;\n\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var firstChild = fiber.child;\n\n    if ( fiber.tag === OffscreenComponent && isModernRoot) {\n      // Keep track of the current Offscreen stack's state.\n      var isHidden = fiber.memoizedState !== null;\n      var newOffscreenSubtreeIsHidden = isHidden || offscreenSubtreeIsHidden;\n\n      if (newOffscreenSubtreeIsHidden) {\n        // The Offscreen tree is hidden. Skip over its layout effects.\n        commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n        continue;\n      } else {\n        // TODO (Offscreen) Also check: subtreeFlags & LayoutMask\n        var current = fiber.alternate;\n        var wasHidden = current !== null && current.memoizedState !== null;\n        var newOffscreenSubtreeWasHidden = wasHidden || offscreenSubtreeWasHidden;\n        var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden;\n        var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; // Traverse the Offscreen subtree with the current Offscreen as the root.\n\n        offscreenSubtreeIsHidden = newOffscreenSubtreeIsHidden;\n        offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden;\n\n        if (offscreenSubtreeWasHidden && !prevOffscreenSubtreeWasHidden) {\n          // This is the root of a reappearing boundary. Turn its layout effects\n          // back on.\n          nextEffect = fiber;\n          reappearLayoutEffects_begin(fiber);\n        }\n\n        var child = firstChild;\n\n        while (child !== null) {\n          nextEffect = child;\n          commitLayoutEffects_begin(child, // New root; bubble back up to here and stop.\n          root, committedLanes);\n          child = child.sibling;\n        } // Restore Offscreen state and resume in our-progress traversal.\n\n\n        nextEffect = fiber;\n        offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n        offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n        commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n        continue;\n      }\n    }\n\n    if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) {\n      firstChild.return = fiber;\n      nextEffect = firstChild;\n    } else {\n      commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);\n    }\n  }\n}\n\nfunction commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n\n    if ((fiber.flags & LayoutMask) !== NoFlags) {\n      var current = fiber.alternate;\n      setCurrentFiber(fiber);\n\n      try {\n        commitLayoutEffectOnFiber(root, current, fiber, committedLanes);\n      } catch (error) {\n        captureCommitPhaseError(fiber, fiber.return, error);\n      }\n\n      resetCurrentFiber();\n    }\n\n    if (fiber === subtreeRoot) {\n      nextEffect = null;\n      return;\n    }\n\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction disappearLayoutEffects_begin(subtreeRoot) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var firstChild = fiber.child; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic)\n\n    switch (fiber.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case MemoComponent:\n      case SimpleMemoComponent:\n        {\n          if ( fiber.mode & ProfileMode) {\n            try {\n              startLayoutEffectTimer();\n              commitHookEffectListUnmount(Layout, fiber, fiber.return);\n            } finally {\n              recordLayoutEffectDuration(fiber);\n            }\n          } else {\n            commitHookEffectListUnmount(Layout, fiber, fiber.return);\n          }\n\n          break;\n        }\n\n      case ClassComponent:\n        {\n          // TODO (Offscreen) Check: flags & RefStatic\n          safelyDetachRef(fiber, fiber.return);\n          var instance = fiber.stateNode;\n\n          if (typeof instance.componentWillUnmount === 'function') {\n            safelyCallComponentWillUnmount(fiber, fiber.return, instance);\n          }\n\n          break;\n        }\n\n      case HostComponent:\n        {\n          safelyDetachRef(fiber, fiber.return);\n          break;\n        }\n\n      case OffscreenComponent:\n        {\n          // Check if this is a\n          var isHidden = fiber.memoizedState !== null;\n\n          if (isHidden) {\n            // Nested Offscreen tree is already hidden. Don't disappear\n            // its effects.\n            disappearLayoutEffects_complete(subtreeRoot);\n            continue;\n          }\n\n          break;\n        }\n    } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic\n\n\n    if (firstChild !== null) {\n      firstChild.return = fiber;\n      nextEffect = firstChild;\n    } else {\n      disappearLayoutEffects_complete(subtreeRoot);\n    }\n  }\n}\n\nfunction disappearLayoutEffects_complete(subtreeRoot) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n\n    if (fiber === subtreeRoot) {\n      nextEffect = null;\n      return;\n    }\n\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction reappearLayoutEffects_begin(subtreeRoot) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var firstChild = fiber.child;\n\n    if (fiber.tag === OffscreenComponent) {\n      var isHidden = fiber.memoizedState !== null;\n\n      if (isHidden) {\n        // Nested Offscreen tree is still hidden. Don't re-appear its effects.\n        reappearLayoutEffects_complete(subtreeRoot);\n        continue;\n      }\n    } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic\n\n\n    if (firstChild !== null) {\n      // This node may have been reused from a previous render, so we can't\n      // assume its return pointer is correct.\n      firstChild.return = fiber;\n      nextEffect = firstChild;\n    } else {\n      reappearLayoutEffects_complete(subtreeRoot);\n    }\n  }\n}\n\nfunction reappearLayoutEffects_complete(subtreeRoot) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect; // TODO (Offscreen) Check: flags & LayoutStatic\n\n    setCurrentFiber(fiber);\n\n    try {\n      reappearLayoutEffectsOnFiber(fiber);\n    } catch (error) {\n      captureCommitPhaseError(fiber, fiber.return, error);\n    }\n\n    resetCurrentFiber();\n\n    if (fiber === subtreeRoot) {\n      nextEffect = null;\n      return;\n    }\n\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      // This node may have been reused from a previous render, so we can't\n      // assume its return pointer is correct.\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) {\n  nextEffect = finishedWork;\n  commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions);\n}\n\nfunction commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var firstChild = fiber.child;\n\n    if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) {\n      firstChild.return = fiber;\n      nextEffect = firstChild;\n    } else {\n      commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions);\n    }\n  }\n}\n\nfunction commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n\n    if ((fiber.flags & Passive) !== NoFlags) {\n      setCurrentFiber(fiber);\n\n      try {\n        commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions);\n      } catch (error) {\n        captureCommitPhaseError(fiber, fiber.return, error);\n      }\n\n      resetCurrentFiber();\n    }\n\n    if (fiber === subtreeRoot) {\n      nextEffect = null;\n      return;\n    }\n\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {\n  switch (finishedWork.tag) {\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n      {\n        if ( finishedWork.mode & ProfileMode) {\n          startPassiveEffectTimer();\n\n          try {\n            commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);\n          } finally {\n            recordPassiveEffectDuration(finishedWork);\n          }\n        } else {\n          commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);\n        }\n\n        break;\n      }\n  }\n}\n\nfunction commitPassiveUnmountEffects(firstChild) {\n  nextEffect = firstChild;\n  commitPassiveUnmountEffects_begin();\n}\n\nfunction commitPassiveUnmountEffects_begin() {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var child = fiber.child;\n\n    if ((nextEffect.flags & ChildDeletion) !== NoFlags) {\n      var deletions = fiber.deletions;\n\n      if (deletions !== null) {\n        for (var i = 0; i < deletions.length; i++) {\n          var fiberToDelete = deletions[i];\n          nextEffect = fiberToDelete;\n          commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber);\n        }\n\n        {\n          // A fiber was deleted from this parent fiber, but it's still part of\n          // the previous (alternate) parent fiber's list of children. Because\n          // children are a linked list, an earlier sibling that's still alive\n          // will be connected to the deleted fiber via its `alternate`:\n          //\n          //   live fiber\n          //   --alternate--> previous live fiber\n          //   --sibling--> deleted fiber\n          //\n          // We can't disconnect `alternate` on nodes that haven't been deleted\n          // yet, but we can disconnect the `sibling` and `child` pointers.\n          var previousFiber = fiber.alternate;\n\n          if (previousFiber !== null) {\n            var detachedChild = previousFiber.child;\n\n            if (detachedChild !== null) {\n              previousFiber.child = null;\n\n              do {\n                var detachedSibling = detachedChild.sibling;\n                detachedChild.sibling = null;\n                detachedChild = detachedSibling;\n              } while (detachedChild !== null);\n            }\n          }\n        }\n\n        nextEffect = fiber;\n      }\n    }\n\n    if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) {\n      child.return = fiber;\n      nextEffect = child;\n    } else {\n      commitPassiveUnmountEffects_complete();\n    }\n  }\n}\n\nfunction commitPassiveUnmountEffects_complete() {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n\n    if ((fiber.flags & Passive) !== NoFlags) {\n      setCurrentFiber(fiber);\n      commitPassiveUnmountOnFiber(fiber);\n      resetCurrentFiber();\n    }\n\n    var sibling = fiber.sibling;\n\n    if (sibling !== null) {\n      sibling.return = fiber.return;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = fiber.return;\n  }\n}\n\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n  switch (finishedWork.tag) {\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n      {\n        if ( finishedWork.mode & ProfileMode) {\n          startPassiveEffectTimer();\n          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);\n          recordPassiveEffectDuration(finishedWork);\n        } else {\n          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);\n        }\n\n        break;\n      }\n  }\n}\n\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect; // Deletion effects fire in parent -> child order\n    // TODO: Check if fiber has a PassiveStatic flag\n\n    setCurrentFiber(fiber);\n    commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor);\n    resetCurrentFiber();\n    var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we\n    // do this, still need to handle `deletedTreeCleanUpLevel` correctly.)\n\n    if (child !== null) {\n      child.return = fiber;\n      nextEffect = child;\n    } else {\n      commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot);\n    }\n  }\n}\n\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) {\n  while (nextEffect !== null) {\n    var fiber = nextEffect;\n    var sibling = fiber.sibling;\n    var returnFiber = fiber.return;\n\n    {\n      // Recursively traverse the entire deleted tree and clean up fiber fields.\n      // This is more aggressive than ideal, and the long term goal is to only\n      // have to detach the deleted tree at the root.\n      detachFiberAfterEffects(fiber);\n\n      if (fiber === deletedSubtreeRoot) {\n        nextEffect = null;\n        return;\n      }\n    }\n\n    if (sibling !== null) {\n      sibling.return = returnFiber;\n      nextEffect = sibling;\n      return;\n    }\n\n    nextEffect = returnFiber;\n  }\n}\n\nfunction commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) {\n  switch (current.tag) {\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n      {\n        if ( current.mode & ProfileMode) {\n          startPassiveEffectTimer();\n          commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);\n          recordPassiveEffectDuration(current);\n        } else {\n          commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);\n        }\n\n        break;\n      }\n  }\n} // TODO: Reuse reappearLayoutEffects traversal here?\n\n\nfunction invokeLayoutEffectMountInDEV(fiber) {\n  {\n    // We don't need to re-check StrictEffectsMode here.\n    // This function is only called if that check has already passed.\n    switch (fiber.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          try {\n            commitHookEffectListMount(Layout | HasEffect, fiber);\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n\n          break;\n        }\n\n      case ClassComponent:\n        {\n          var instance = fiber.stateNode;\n\n          try {\n            instance.componentDidMount();\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n\n          break;\n        }\n    }\n  }\n}\n\nfunction invokePassiveEffectMountInDEV(fiber) {\n  {\n    // We don't need to re-check StrictEffectsMode here.\n    // This function is only called if that check has already passed.\n    switch (fiber.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          try {\n            commitHookEffectListMount(Passive$1 | HasEffect, fiber);\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n\n          break;\n        }\n    }\n  }\n}\n\nfunction invokeLayoutEffectUnmountInDEV(fiber) {\n  {\n    // We don't need to re-check StrictEffectsMode here.\n    // This function is only called if that check has already passed.\n    switch (fiber.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          try {\n            commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return);\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n\n          break;\n        }\n\n      case ClassComponent:\n        {\n          var instance = fiber.stateNode;\n\n          if (typeof instance.componentWillUnmount === 'function') {\n            safelyCallComponentWillUnmount(fiber, fiber.return, instance);\n          }\n\n          break;\n        }\n    }\n  }\n}\n\nfunction invokePassiveEffectUnmountInDEV(fiber) {\n  {\n    // We don't need to re-check StrictEffectsMode here.\n    // This function is only called if that check has already passed.\n    switch (fiber.tag) {\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n        {\n          try {\n            commitHookEffectListUnmount(Passive$1 | HasEffect, fiber, fiber.return);\n          } catch (error) {\n            captureCommitPhaseError(fiber, fiber.return, error);\n          }\n        }\n    }\n  }\n}\n\nvar COMPONENT_TYPE = 0;\nvar HAS_PSEUDO_CLASS_TYPE = 1;\nvar ROLE_TYPE = 2;\nvar TEST_NAME_TYPE = 3;\nvar TEXT_TYPE = 4;\n\nif (typeof Symbol === 'function' && Symbol.for) {\n  var symbolFor = Symbol.for;\n  COMPONENT_TYPE = symbolFor('selector.component');\n  HAS_PSEUDO_CLASS_TYPE = symbolFor('selector.has_pseudo_class');\n  ROLE_TYPE = symbolFor('selector.role');\n  TEST_NAME_TYPE = symbolFor('selector.test_id');\n  TEXT_TYPE = symbolFor('selector.text');\n}\nvar commitHooks = [];\nfunction onCommitRoot$1() {\n  {\n    commitHooks.forEach(function (commitHook) {\n      return commitHook();\n    });\n  }\n}\n\nvar ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue;\nfunction isLegacyActEnvironment(fiber) {\n  {\n    // Legacy mode. We preserve the behavior of React 17's act. It assumes an\n    // act environment whenever `jest` is defined, but you can still turn off\n    // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly\n    // to false.\n    var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global\n    typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest\n\n    var jestIsDefined = typeof jest !== 'undefined';\n    return  jestIsDefined && isReactActEnvironmentGlobal !== false;\n  }\n}\nfunction isConcurrentActEnvironment() {\n  {\n    var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global\n    typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined;\n\n    if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) {\n      // TODO: Include link to relevant documentation page.\n      error('The current testing environment is not configured to support ' + 'act(...)');\n    }\n\n    return isReactActEnvironmentGlobal;\n  }\n}\n\nvar ceil = Math.ceil;\nvar ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,\n    ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n    ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig,\n    ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue;\nvar NoContext =\n/*             */\n0;\nvar BatchedContext =\n/*               */\n1;\nvar RenderContext =\n/*                */\n2;\nvar CommitContext =\n/*                */\n4;\nvar RootInProgress = 0;\nvar RootFatalErrored = 1;\nvar RootErrored = 2;\nvar RootSuspended = 3;\nvar RootSuspendedWithDelay = 4;\nvar RootCompleted = 5;\nvar RootDidNotComplete = 6; // Describes where we are in the React execution stack\n\nvar executionContext = NoContext; // The root we're working on\n\nvar workInProgressRoot = null; // The fiber we're working on\n\nvar workInProgress = null; // The lanes we're rendering\n\nvar workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree\n// This is a superset of the lanes we started working on at the root. The only\n// case where it's different from `workInProgressRootRenderLanes` is when we\n// enter a subtree that is hidden and needs to be unhidden: Suspense and\n// Offscreen component.\n//\n// Most things in the work loop should deal with workInProgressRootRenderLanes.\n// Most things in begin/complete phases should deal with subtreeRenderLanes.\n\nvar subtreeRenderLanes = NoLanes;\nvar subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.\n\nvar workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown\n\nvar workInProgressRootFatalError = null; // \"Included\" lanes refer to lanes that were worked on during this render. It's\n// slightly different than `renderLanes` because `renderLanes` can change as you\n// enter and exit an Offscreen tree. This value is the combination of all render\n// lanes for the entire render phase.\n\nvar workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only\n// includes unprocessed updates, not work in bailed out children.\n\nvar workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.\n\nvar workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event).\n\nvar workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase.\n\nvar workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.\n// We will log them once the tree commits.\n\nvar workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train\n// model where we don't commit new loading states in too quick succession.\n\nvar globalMostRecentFallbackTime = 0;\nvar FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering\n// more and prefer CPU suspense heuristics instead.\n\nvar workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU\n// suspense heuristics and opt out of rendering more content.\n\nvar RENDER_TIMEOUT_MS = 500;\nvar workInProgressTransitions = null;\n\nfunction resetRenderTimer() {\n  workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;\n}\n\nfunction getRenderTargetTime() {\n  return workInProgressRootRenderTargetTime;\n}\nvar hasUncaughtError = false;\nvar firstUncaughtError = null;\nvar legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true;\nvar rootDoesHavePassiveEffects = false;\nvar rootWithPendingPassiveEffects = null;\nvar pendingPassiveEffectsLanes = NoLanes;\nvar pendingPassiveProfilerEffects = [];\nvar pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates\n\nvar NESTED_UPDATE_LIMIT = 50;\nvar nestedUpdateCount = 0;\nvar rootWithNestedUpdates = null;\nvar isFlushingPassiveEffects = false;\nvar didScheduleUpdateDuringPassiveEffects = false;\nvar NESTED_PASSIVE_UPDATE_LIMIT = 50;\nvar nestedPassiveUpdateCount = 0;\nvar rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their\n// event times as simultaneous, even if the actual clock time has advanced\n// between the first and second call.\n\nvar currentEventTime = NoTimestamp;\nvar currentEventTransitionLane = NoLanes;\nvar isRunningInsertionEffect = false;\nfunction getWorkInProgressRoot() {\n  return workInProgressRoot;\n}\nfunction requestEventTime() {\n  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n    // We're inside React, so it's fine to read the actual time.\n    return now();\n  } // We're not inside React, so we may be in the middle of a browser event.\n\n\n  if (currentEventTime !== NoTimestamp) {\n    // Use the same start time for all updates until we enter React again.\n    return currentEventTime;\n  } // This is the first update since React yielded. Compute a new start time.\n\n\n  currentEventTime = now();\n  return currentEventTime;\n}\nfunction requestUpdateLane(fiber) {\n  // Special cases\n  var mode = fiber.mode;\n\n  if ((mode & ConcurrentMode) === NoMode) {\n    return SyncLane;\n  } else if ( (executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) {\n    // This is a render phase update. These are not officially supported. The\n    // old behavior is to give this the same \"thread\" (lanes) as\n    // whatever is currently rendering. So if you call `setState` on a component\n    // that happens later in the same render, it will flush. Ideally, we want to\n    // remove the special case and treat them as if they came from an\n    // interleaved event. Regardless, this pattern is not officially supported.\n    // This behavior is only a fallback. The flag only exists until we can roll\n    // out the setState warning, since existing code might accidentally rely on\n    // the current behavior.\n    return pickArbitraryLane(workInProgressRootRenderLanes);\n  }\n\n  var isTransition = requestCurrentTransition() !== NoTransition;\n\n  if (isTransition) {\n    if ( ReactCurrentBatchConfig$3.transition !== null) {\n      var transition = ReactCurrentBatchConfig$3.transition;\n\n      if (!transition._updatedFibers) {\n        transition._updatedFibers = new Set();\n      }\n\n      transition._updatedFibers.add(fiber);\n    } // The algorithm for assigning an update to a lane should be stable for all\n    // updates at the same priority within the same event. To do this, the\n    // inputs to the algorithm must be the same.\n    //\n    // The trick we use is to cache the first of each of these inputs within an\n    // event. Then reset the cached values once we can be sure the event is\n    // over. Our heuristic for that is whenever we enter a concurrent work loop.\n\n\n    if (currentEventTransitionLane === NoLane) {\n      // All transitions within the same event are assigned the same lane.\n      currentEventTransitionLane = claimNextTransitionLane();\n    }\n\n    return currentEventTransitionLane;\n  } // Updates originating inside certain React methods, like flushSync, have\n  // their priority set by tracking it with a context variable.\n  //\n  // The opaque type returned by the host config is internally a lane, so we can\n  // use that directly.\n  // TODO: Move this type conversion to the event priority module.\n\n\n  var updateLane = getCurrentUpdatePriority();\n\n  if (updateLane !== NoLane) {\n    return updateLane;\n  } // This update originated outside React. Ask the host environment for an\n  // appropriate priority, based on the type of event.\n  //\n  // The opaque type returned by the host config is internally a lane, so we can\n  // use that directly.\n  // TODO: Move this type conversion to the event priority module.\n\n\n  var eventLane = getCurrentEventPriority();\n  return eventLane;\n}\n\nfunction requestRetryLane(fiber) {\n  // This is a fork of `requestUpdateLane` designed specifically for Suspense\n  // \"retries\" — a special update that attempts to flip a Suspense boundary\n  // from its placeholder state to its primary/resolved state.\n  // Special cases\n  var mode = fiber.mode;\n\n  if ((mode & ConcurrentMode) === NoMode) {\n    return SyncLane;\n  }\n\n  return claimNextRetryLane();\n}\n\nfunction scheduleUpdateOnFiber(root, fiber, lane, eventTime) {\n  checkForNestedUpdates();\n\n  {\n    if (isRunningInsertionEffect) {\n      error('useInsertionEffect must not schedule updates.');\n    }\n  }\n\n  {\n    if (isFlushingPassiveEffects) {\n      didScheduleUpdateDuringPassiveEffects = true;\n    }\n  } // Mark that the root has a pending update.\n\n\n  markRootUpdated(root, lane, eventTime);\n\n  if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) {\n    // This update was dispatched during the render phase. This is a mistake\n    // if the update originates from user space (with the exception of local\n    // hook updates, which are handled differently and don't reach this\n    // function), but there are some internal React features that use this as\n    // an implementation detail, like selective hydration.\n    warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase\n  } else {\n    // This is a normal update, scheduled from outside the render phase. For\n    // example, during an input event.\n    {\n      if (isDevToolsPresent) {\n        addFiberToLanesMap(root, fiber, lane);\n      }\n    }\n\n    warnIfUpdatesNotWrappedWithActDEV(fiber);\n\n    if (root === workInProgressRoot) {\n      // Received an update to a tree that's in the middle of rendering. Mark\n      // that there was an interleaved update work on this root. Unless the\n      // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render\n      // phase update. In that case, we don't treat render phase updates as if\n      // they were interleaved, for backwards compat reasons.\n      if ( (executionContext & RenderContext) === NoContext) {\n        workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane);\n      }\n\n      if (workInProgressRootExitStatus === RootSuspendedWithDelay) {\n        // The root already suspended with a delay, which means this render\n        // definitely won't finish. Since we have a new update, let's mark it as\n        // suspended now, right before marking the incoming update. This has the\n        // effect of interrupting the current render and switching to the update.\n        // TODO: Make sure this doesn't override pings that happen while we've\n        // already started rendering.\n        markRootSuspended$1(root, workInProgressRootRenderLanes);\n      }\n    }\n\n    ensureRootIsScheduled(root, eventTime);\n\n    if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.\n    !( ReactCurrentActQueue$1.isBatchingLegacy)) {\n      // Flush the synchronous work now, unless we're already working or inside\n      // a batch. This is intentionally inside scheduleUpdateOnFiber instead of\n      // scheduleCallbackForFiber to preserve the ability to schedule a callback\n      // without immediately flushing it. We only do this for user-initiated\n      // updates, to preserve historical behavior of legacy mode.\n      resetRenderTimer();\n      flushSyncCallbacksOnlyInLegacyMode();\n    }\n  }\n}\nfunction scheduleInitialHydrationOnRoot(root, lane, eventTime) {\n  // This is a special fork of scheduleUpdateOnFiber that is only used to\n  // schedule the initial hydration of a root that has just been created. Most\n  // of the stuff in scheduleUpdateOnFiber can be skipped.\n  //\n  // The main reason for this separate path, though, is to distinguish the\n  // initial children from subsequent updates. In fully client-rendered roots\n  // (createRoot instead of hydrateRoot), all top-level renders are modeled as\n  // updates, but hydration roots are special because the initial render must\n  // match what was rendered on the server.\n  var current = root.current;\n  current.lanes = lane;\n  markRootUpdated(root, lane, eventTime);\n  ensureRootIsScheduled(root, eventTime);\n}\nfunction isUnsafeClassRenderPhaseUpdate(fiber) {\n  // Check if this is a render phase update. Only called by class components,\n  // which special (deprecated) behavior for UNSAFE_componentWillReceive props.\n  return (// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We\n    // decided not to enable it.\n     (executionContext & RenderContext) !== NoContext\n  );\n} // Use this function to schedule a task for a root. There's only one task per\n// root; if a task was already scheduled, we'll check to make sure the priority\n// of the existing task is the same as the priority of the next level that the\n// root has work on. This function is called on every update, and right before\n// exiting a task.\n\nfunction ensureRootIsScheduled(root, currentTime) {\n  var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as\n  // expired so we know to work on those next.\n\n  markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.\n\n  var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);\n\n  if (nextLanes === NoLanes) {\n    // Special case: There's nothing to work on.\n    if (existingCallbackNode !== null) {\n      cancelCallback$1(existingCallbackNode);\n    }\n\n    root.callbackNode = null;\n    root.callbackPriority = NoLane;\n    return;\n  } // We use the highest priority lane to represent the priority of the callback.\n\n\n  var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it.\n\n  var existingCallbackPriority = root.callbackPriority;\n\n  if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a\n  // Scheduler task, rather than an `act` task, cancel it and re-scheduled\n  // on the `act` queue.\n  !( ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) {\n    {\n      // If we're going to re-use an existing task, it needs to exist.\n      // Assume that discrete update microtasks are non-cancellable and null.\n      // TODO: Temporary until we confirm this warning is not fired.\n      if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) {\n        error('Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.');\n      }\n    } // The priority hasn't changed. We can reuse the existing task. Exit.\n\n\n    return;\n  }\n\n  if (existingCallbackNode != null) {\n    // Cancel the existing callback. We'll schedule a new one below.\n    cancelCallback$1(existingCallbackNode);\n  } // Schedule a new callback.\n\n\n  var newCallbackNode;\n\n  if (newCallbackPriority === SyncLane) {\n    // Special case: Sync React callbacks are scheduled on a special\n    // internal queue\n    if (root.tag === LegacyRoot) {\n      if ( ReactCurrentActQueue$1.isBatchingLegacy !== null) {\n        ReactCurrentActQueue$1.didScheduleLegacyUpdate = true;\n      }\n\n      scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root));\n    } else {\n      scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));\n    }\n\n    {\n      // Flush the queue in a microtask.\n      if ( ReactCurrentActQueue$1.current !== null) {\n        // Inside `act`, use our internal `act` queue so that these get flushed\n        // at the end of the current scope even when using the sync version\n        // of `act`.\n        ReactCurrentActQueue$1.current.push(flushSyncCallbacks);\n      } else {\n        scheduleMicrotask(function () {\n          // In Safari, appending an iframe forces microtasks to run.\n          // https://github.com/facebook/react/issues/22459\n          // We don't support running callbacks in the middle of render\n          // or commit so we need to check against that.\n          if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n            // Note that this would still prematurely flush the callbacks\n            // if this happens outside render or commit phase (e.g. in an event).\n            flushSyncCallbacks();\n          }\n        });\n      }\n    }\n\n    newCallbackNode = null;\n  } else {\n    var schedulerPriorityLevel;\n\n    switch (lanesToEventPriority(nextLanes)) {\n      case DiscreteEventPriority:\n        schedulerPriorityLevel = ImmediatePriority;\n        break;\n\n      case ContinuousEventPriority:\n        schedulerPriorityLevel = UserBlockingPriority;\n        break;\n\n      case DefaultEventPriority:\n        schedulerPriorityLevel = NormalPriority;\n        break;\n\n      case IdleEventPriority:\n        schedulerPriorityLevel = IdlePriority;\n        break;\n\n      default:\n        schedulerPriorityLevel = NormalPriority;\n        break;\n    }\n\n    newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));\n  }\n\n  root.callbackPriority = newCallbackPriority;\n  root.callbackNode = newCallbackNode;\n} // This is the entry point for every concurrent task, i.e. anything that\n// goes through Scheduler.\n\n\nfunction performConcurrentWorkOnRoot(root, didTimeout) {\n  {\n    resetNestedUpdateFlag();\n  } // Since we know we're in a React event, we can clear the current\n  // event time. The next update will compute a new event time.\n\n\n  currentEventTime = NoTimestamp;\n  currentEventTransitionLane = NoLanes;\n\n  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n    throw new Error('Should not already be working.');\n  } // Flush any pending passive effects before deciding which lanes to work on,\n  // in case they schedule additional work.\n\n\n  var originalCallbackNode = root.callbackNode;\n  var didFlushPassiveEffects = flushPassiveEffects();\n\n  if (didFlushPassiveEffects) {\n    // Something in the passive effect phase may have canceled the current task.\n    // Check if the task node for this root was changed.\n    if (root.callbackNode !== originalCallbackNode) {\n      // The current task was canceled. Exit. We don't need to call\n      // `ensureRootIsScheduled` because the check above implies either that\n      // there's a new task, or that there's no remaining work on this root.\n      return null;\n    }\n  } // Determine the next lanes to work on, using the fields stored\n  // on the root.\n\n\n  var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);\n\n  if (lanes === NoLanes) {\n    // Defensive coding. This is never expected to happen.\n    return null;\n  } // We disable time-slicing in some cases: if the work has been CPU-bound\n  // for too long (\"expired\" work, to prevent starvation), or we're in\n  // sync-updates-by-default mode.\n  // TODO: We only check `didTimeout` defensively, to account for a Scheduler\n  // bug we're still investigating. Once the bug in Scheduler is fixed,\n  // we can remove this, since we track expiration ourselves.\n\n\n  var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && ( !didTimeout);\n  var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes);\n\n  if (exitStatus !== RootInProgress) {\n    if (exitStatus === RootErrored) {\n      // If something threw an error, try rendering one more time. We'll\n      // render synchronously to block concurrent data mutations, and we'll\n      // includes all pending updates are included. If it still fails after\n      // the second attempt, we'll give up and commit the resulting tree.\n      var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n      if (errorRetryLanes !== NoLanes) {\n        lanes = errorRetryLanes;\n        exitStatus = recoverFromConcurrentError(root, errorRetryLanes);\n      }\n    }\n\n    if (exitStatus === RootFatalErrored) {\n      var fatalError = workInProgressRootFatalError;\n      prepareFreshStack(root, NoLanes);\n      markRootSuspended$1(root, lanes);\n      ensureRootIsScheduled(root, now());\n      throw fatalError;\n    }\n\n    if (exitStatus === RootDidNotComplete) {\n      // The render unwound without completing the tree. This happens in special\n      // cases where need to exit the current render without producing a\n      // consistent tree or committing.\n      //\n      // This should only happen during a concurrent render, not a discrete or\n      // synchronous update. We should have already checked for this when we\n      // unwound the stack.\n      markRootSuspended$1(root, lanes);\n    } else {\n      // The render completed.\n      // Check if this render may have yielded to a concurrent event, and if so,\n      // confirm that any newly rendered stores are consistent.\n      // TODO: It's possible that even a concurrent render may never have yielded\n      // to the main thread, if it was fast enough, or if it expired. We could\n      // skip the consistency check in that case, too.\n      var renderWasConcurrent = !includesBlockingLane(root, lanes);\n      var finishedWork = root.current.alternate;\n\n      if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) {\n        // A store was mutated in an interleaved event. Render again,\n        // synchronously, to block further mutations.\n        exitStatus = renderRootSync(root, lanes); // We need to check again if something threw\n\n        if (exitStatus === RootErrored) {\n          var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n          if (_errorRetryLanes !== NoLanes) {\n            lanes = _errorRetryLanes;\n            exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any\n            // concurrent events.\n          }\n        }\n\n        if (exitStatus === RootFatalErrored) {\n          var _fatalError = workInProgressRootFatalError;\n          prepareFreshStack(root, NoLanes);\n          markRootSuspended$1(root, lanes);\n          ensureRootIsScheduled(root, now());\n          throw _fatalError;\n        }\n      } // We now have a consistent tree. The next step is either to commit it,\n      // or, if something suspended, wait to commit it after a timeout.\n\n\n      root.finishedWork = finishedWork;\n      root.finishedLanes = lanes;\n      finishConcurrentRender(root, exitStatus, lanes);\n    }\n  }\n\n  ensureRootIsScheduled(root, now());\n\n  if (root.callbackNode === originalCallbackNode) {\n    // The task node scheduled for this root is the same one that's\n    // currently executed. Need to return a continuation.\n    return performConcurrentWorkOnRoot.bind(null, root);\n  }\n\n  return null;\n}\n\nfunction recoverFromConcurrentError(root, errorRetryLanes) {\n  // If an error occurred during hydration, discard server response and fall\n  // back to client side render.\n  // Before rendering again, save the errors from the previous attempt.\n  var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;\n\n  if (isRootDehydrated(root)) {\n    // The shell failed to hydrate. Set a flag to force a client rendering\n    // during the next attempt. To do this, we call prepareFreshStack now\n    // to create the root work-in-progress fiber. This is a bit weird in terms\n    // of factoring, because it relies on renderRootSync not calling\n    // prepareFreshStack again in the call below, which happens because the\n    // root and lanes haven't changed.\n    //\n    // TODO: I think what we should do is set ForceClientRender inside\n    // throwException, like we do for nested Suspense boundaries. The reason\n    // it's here instead is so we can switch to the synchronous work loop, too.\n    // Something to consider for a future refactor.\n    var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes);\n    rootWorkInProgress.flags |= ForceClientRender;\n\n    {\n      errorHydratingContainer(root.containerInfo);\n    }\n  }\n\n  var exitStatus = renderRootSync(root, errorRetryLanes);\n\n  if (exitStatus !== RootErrored) {\n    // Successfully finished rendering on retry\n    // The errors from the failed first attempt have been recovered. Add\n    // them to the collection of recoverable errors. We'll log them in the\n    // commit phase.\n    var errorsFromSecondAttempt = workInProgressRootRecoverableErrors;\n    workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors\n    // from the first attempt, to preserve the causal sequence.\n\n    if (errorsFromSecondAttempt !== null) {\n      queueRecoverableErrors(errorsFromSecondAttempt);\n    }\n  }\n\n  return exitStatus;\n}\n\nfunction queueRecoverableErrors(errors) {\n  if (workInProgressRootRecoverableErrors === null) {\n    workInProgressRootRecoverableErrors = errors;\n  } else {\n    workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors);\n  }\n}\n\nfunction finishConcurrentRender(root, exitStatus, lanes) {\n  switch (exitStatus) {\n    case RootInProgress:\n    case RootFatalErrored:\n      {\n        throw new Error('Root did not complete. This is a bug in React.');\n      }\n    // Flow knows about invariant, so it complains if I add a break\n    // statement, but eslint doesn't know about invariant, so it complains\n    // if I do. eslint-disable-next-line no-fallthrough\n\n    case RootErrored:\n      {\n        // We should have already attempted to retry this tree. If we reached\n        // this point, it errored again. Commit it.\n        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n        break;\n      }\n\n    case RootSuspended:\n      {\n        markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we\n        // should immediately commit it or wait a bit.\n\n        if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope\n        !shouldForceFlushFallbacksInDEV()) {\n          // This render only included retries, no updates. Throttle committing\n          // retries so that we don't show too many loading states too quickly.\n          var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.\n\n          if (msUntilTimeout > 10) {\n            var nextLanes = getNextLanes(root, NoLanes);\n\n            if (nextLanes !== NoLanes) {\n              // There's additional work on this root.\n              break;\n            }\n\n            var suspendedLanes = root.suspendedLanes;\n\n            if (!isSubsetOfLanes(suspendedLanes, lanes)) {\n              // We should prefer to render the fallback of at the last\n              // suspended level. Ping the last suspended level to try\n              // rendering it again.\n              // FIXME: What if the suspended lanes are Idle? Should not restart.\n              var eventTime = requestEventTime();\n              markRootPinged(root, suspendedLanes);\n              break;\n            } // The render is suspended, it hasn't timed out, and there's no\n            // lower priority work to do. Instead of committing the fallback\n            // immediately, wait for more data to arrive.\n\n\n            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout);\n            break;\n          }\n        } // The work expired. Commit immediately.\n\n\n        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n        break;\n      }\n\n    case RootSuspendedWithDelay:\n      {\n        markRootSuspended$1(root, lanes);\n\n        if (includesOnlyTransitions(lanes)) {\n          // This is a transition, so we should exit without committing a\n          // placeholder and without scheduling a timeout. Delay indefinitely\n          // until we receive more data.\n          break;\n        }\n\n        if (!shouldForceFlushFallbacksInDEV()) {\n          // This is not a transition, but we did trigger an avoided state.\n          // Schedule a placeholder to display after a short delay, using the Just\n          // Noticeable Difference.\n          // TODO: Is the JND optimization worth the added complexity? If this is\n          // the only reason we track the event time, then probably not.\n          // Consider removing.\n          var mostRecentEventTime = getMostRecentEventTime(root, lanes);\n          var eventTimeMs = mostRecentEventTime;\n          var timeElapsedMs = now() - eventTimeMs;\n\n          var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.\n\n\n          if (_msUntilTimeout > 10) {\n            // Instead of committing the fallback immediately, wait for more data\n            // to arrive.\n            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);\n            break;\n          }\n        } // Commit the placeholder.\n\n\n        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n        break;\n      }\n\n    case RootCompleted:\n      {\n        // The work completed. Ready to commit.\n        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);\n        break;\n      }\n\n    default:\n      {\n        throw new Error('Unknown root exit status.');\n      }\n  }\n}\n\nfunction isRenderConsistentWithExternalStores(finishedWork) {\n  // Search the rendered tree for external store reads, and check whether the\n  // stores were mutated in a concurrent event. Intentionally using an iterative\n  // loop instead of recursion so we can exit early.\n  var node = finishedWork;\n\n  while (true) {\n    if (node.flags & StoreConsistency) {\n      var updateQueue = node.updateQueue;\n\n      if (updateQueue !== null) {\n        var checks = updateQueue.stores;\n\n        if (checks !== null) {\n          for (var i = 0; i < checks.length; i++) {\n            var check = checks[i];\n            var getSnapshot = check.getSnapshot;\n            var renderedValue = check.value;\n\n            try {\n              if (!objectIs(getSnapshot(), renderedValue)) {\n                // Found an inconsistent store.\n                return false;\n              }\n            } catch (error) {\n              // If `getSnapshot` throws, return `false`. This will schedule\n              // a re-render, and the error will be rethrown during render.\n              return false;\n            }\n          }\n        }\n      }\n    }\n\n    var child = node.child;\n\n    if (node.subtreeFlags & StoreConsistency && child !== null) {\n      child.return = node;\n      node = child;\n      continue;\n    }\n\n    if (node === finishedWork) {\n      return true;\n    }\n\n    while (node.sibling === null) {\n      if (node.return === null || node.return === finishedWork) {\n        return true;\n      }\n\n      node = node.return;\n    }\n\n    node.sibling.return = node.return;\n    node = node.sibling;\n  } // Flow doesn't know this is unreachable, but eslint does\n  // eslint-disable-next-line no-unreachable\n\n\n  return true;\n}\n\nfunction markRootSuspended$1(root, suspendedLanes) {\n  // When suspending, we should always exclude lanes that were pinged or (more\n  // rarely, since we try to avoid it) updated during the render phase.\n  // TODO: Lol maybe there's a better way to factor this besides this\n  // obnoxiously named function :)\n  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);\n  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes);\n  markRootSuspended(root, suspendedLanes);\n} // This is the entry point for synchronous tasks that don't go\n// through Scheduler\n\n\nfunction performSyncWorkOnRoot(root) {\n  {\n    syncNestedUpdateFlag();\n  }\n\n  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n    throw new Error('Should not already be working.');\n  }\n\n  flushPassiveEffects();\n  var lanes = getNextLanes(root, NoLanes);\n\n  if (!includesSomeLane(lanes, SyncLane)) {\n    // There's no remaining sync work left.\n    ensureRootIsScheduled(root, now());\n    return null;\n  }\n\n  var exitStatus = renderRootSync(root, lanes);\n\n  if (root.tag !== LegacyRoot && exitStatus === RootErrored) {\n    // If something threw an error, try rendering one more time. We'll render\n    // synchronously to block concurrent data mutations, and we'll includes\n    // all pending updates are included. If it still fails after the second\n    // attempt, we'll give up and commit the resulting tree.\n    var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);\n\n    if (errorRetryLanes !== NoLanes) {\n      lanes = errorRetryLanes;\n      exitStatus = recoverFromConcurrentError(root, errorRetryLanes);\n    }\n  }\n\n  if (exitStatus === RootFatalErrored) {\n    var fatalError = workInProgressRootFatalError;\n    prepareFreshStack(root, NoLanes);\n    markRootSuspended$1(root, lanes);\n    ensureRootIsScheduled(root, now());\n    throw fatalError;\n  }\n\n  if (exitStatus === RootDidNotComplete) {\n    throw new Error('Root did not complete. This is a bug in React.');\n  } // We now have a consistent tree. Because this is a sync render, we\n  // will commit it even if something suspended.\n\n\n  var finishedWork = root.current.alternate;\n  root.finishedWork = finishedWork;\n  root.finishedLanes = lanes;\n  commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next\n  // pending level.\n\n  ensureRootIsScheduled(root, now());\n  return null;\n}\n\nfunction flushRoot(root, lanes) {\n  if (lanes !== NoLanes) {\n    markRootEntangled(root, mergeLanes(lanes, SyncLane));\n    ensureRootIsScheduled(root, now());\n\n    if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n      resetRenderTimer();\n      flushSyncCallbacks();\n    }\n  }\n}\nfunction batchedUpdates$1(fn, a) {\n  var prevExecutionContext = executionContext;\n  executionContext |= BatchedContext;\n\n  try {\n    return fn(a);\n  } finally {\n    executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer\n    // most batchedUpdates-like method.\n\n    if (executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.\n    !( ReactCurrentActQueue$1.isBatchingLegacy)) {\n      resetRenderTimer();\n      flushSyncCallbacksOnlyInLegacyMode();\n    }\n  }\n}\nfunction discreteUpdates(fn, a, b, c, d) {\n  var previousPriority = getCurrentUpdatePriority();\n  var prevTransition = ReactCurrentBatchConfig$3.transition;\n\n  try {\n    ReactCurrentBatchConfig$3.transition = null;\n    setCurrentUpdatePriority(DiscreteEventPriority);\n    return fn(a, b, c, d);\n  } finally {\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig$3.transition = prevTransition;\n\n    if (executionContext === NoContext) {\n      resetRenderTimer();\n    }\n  }\n} // Overload the definition to the two valid signatures.\n// Warning, this opts-out of checking the function body.\n\n// eslint-disable-next-line no-redeclare\nfunction flushSync(fn) {\n  // In legacy mode, we flush pending passive effects at the beginning of the\n  // next event, not at the end of the previous one.\n  if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) {\n    flushPassiveEffects();\n  }\n\n  var prevExecutionContext = executionContext;\n  executionContext |= BatchedContext;\n  var prevTransition = ReactCurrentBatchConfig$3.transition;\n  var previousPriority = getCurrentUpdatePriority();\n\n  try {\n    ReactCurrentBatchConfig$3.transition = null;\n    setCurrentUpdatePriority(DiscreteEventPriority);\n\n    if (fn) {\n      return fn();\n    } else {\n      return undefined;\n    }\n  } finally {\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig$3.transition = prevTransition;\n    executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.\n    // Note that this will happen even if batchedUpdates is higher up\n    // the stack.\n\n    if ((executionContext & (RenderContext | CommitContext)) === NoContext) {\n      flushSyncCallbacks();\n    }\n  }\n}\nfunction isAlreadyRendering() {\n  // Used by the renderer to print a warning if certain APIs are called from\n  // the wrong context.\n  return  (executionContext & (RenderContext | CommitContext)) !== NoContext;\n}\nfunction pushRenderLanes(fiber, lanes) {\n  push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);\n  subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);\n  workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);\n}\nfunction popRenderLanes(fiber) {\n  subtreeRenderLanes = subtreeRenderLanesCursor.current;\n  pop(subtreeRenderLanesCursor, fiber);\n}\n\nfunction prepareFreshStack(root, lanes) {\n  root.finishedWork = null;\n  root.finishedLanes = NoLanes;\n  var timeoutHandle = root.timeoutHandle;\n\n  if (timeoutHandle !== noTimeout) {\n    // The root previous suspended and scheduled a timeout to commit a fallback\n    // state. Now that we have additional work, cancel the timeout.\n    root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above\n\n    cancelTimeout(timeoutHandle);\n  }\n\n  if (workInProgress !== null) {\n    var interruptedWork = workInProgress.return;\n\n    while (interruptedWork !== null) {\n      var current = interruptedWork.alternate;\n      unwindInterruptedWork(current, interruptedWork);\n      interruptedWork = interruptedWork.return;\n    }\n  }\n\n  workInProgressRoot = root;\n  var rootWorkInProgress = createWorkInProgress(root.current, null);\n  workInProgress = rootWorkInProgress;\n  workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;\n  workInProgressRootExitStatus = RootInProgress;\n  workInProgressRootFatalError = null;\n  workInProgressRootSkippedLanes = NoLanes;\n  workInProgressRootInterleavedUpdatedLanes = NoLanes;\n  workInProgressRootPingedLanes = NoLanes;\n  workInProgressRootConcurrentErrors = null;\n  workInProgressRootRecoverableErrors = null;\n  finishQueueingConcurrentUpdates();\n\n  {\n    ReactStrictModeWarnings.discardPendingWarnings();\n  }\n\n  return rootWorkInProgress;\n}\n\nfunction handleError(root, thrownValue) {\n  do {\n    var erroredWork = workInProgress;\n\n    try {\n      // Reset module-level state that was set during the render phase.\n      resetContextDependencies();\n      resetHooksAfterThrow();\n      resetCurrentFiber(); // TODO: I found and added this missing line while investigating a\n      // separate issue. Write a regression test using string refs.\n\n      ReactCurrentOwner$2.current = null;\n\n      if (erroredWork === null || erroredWork.return === null) {\n        // Expected to be working on a non-root fiber. This is a fatal error\n        // because there's no ancestor that can handle it; the root is\n        // supposed to capture all errors that weren't caught by an error\n        // boundary.\n        workInProgressRootExitStatus = RootFatalErrored;\n        workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next\n        // sibling, or the parent if there are no siblings. But since the root\n        // has no siblings nor a parent, we set it to null. Usually this is\n        // handled by `completeUnitOfWork` or `unwindWork`, but since we're\n        // intentionally not calling those, we need set it here.\n        // TODO: Consider calling `unwindWork` to pop the contexts.\n\n        workInProgress = null;\n        return;\n      }\n\n      if (enableProfilerTimer && erroredWork.mode & ProfileMode) {\n        // Record the time spent rendering before an error was thrown. This\n        // avoids inaccurate Profiler durations in the case of a\n        // suspended render.\n        stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);\n      }\n\n      if (enableSchedulingProfiler) {\n        markComponentRenderStopped();\n\n        if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {\n          var wakeable = thrownValue;\n          markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes);\n        } else {\n          markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes);\n        }\n      }\n\n      throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);\n      completeUnitOfWork(erroredWork);\n    } catch (yetAnotherThrownValue) {\n      // Something in the return path also threw.\n      thrownValue = yetAnotherThrownValue;\n\n      if (workInProgress === erroredWork && erroredWork !== null) {\n        // If this boundary has already errored, then we had trouble processing\n        // the error. Bubble it to the next boundary.\n        erroredWork = erroredWork.return;\n        workInProgress = erroredWork;\n      } else {\n        erroredWork = workInProgress;\n      }\n\n      continue;\n    } // Return to the normal work loop.\n\n\n    return;\n  } while (true);\n}\n\nfunction pushDispatcher() {\n  var prevDispatcher = ReactCurrentDispatcher$2.current;\n  ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;\n\n  if (prevDispatcher === null) {\n    // The React isomorphic package does not include a default dispatcher.\n    // Instead the first renderer will lazily attach one, in order to give\n    // nicer error messages.\n    return ContextOnlyDispatcher;\n  } else {\n    return prevDispatcher;\n  }\n}\n\nfunction popDispatcher(prevDispatcher) {\n  ReactCurrentDispatcher$2.current = prevDispatcher;\n}\n\nfunction markCommitTimeOfFallback() {\n  globalMostRecentFallbackTime = now();\n}\nfunction markSkippedUpdateLanes(lane) {\n  workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);\n}\nfunction renderDidSuspend() {\n  if (workInProgressRootExitStatus === RootInProgress) {\n    workInProgressRootExitStatus = RootSuspended;\n  }\n}\nfunction renderDidSuspendDelayIfPossible() {\n  if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) {\n    workInProgressRootExitStatus = RootSuspendedWithDelay;\n  } // Check if there are updates that we skipped tree that might have unblocked\n  // this render.\n\n\n  if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) {\n    // Mark the current render as suspended so that we switch to working on\n    // the updates that were skipped. Usually we only suspend at the end of\n    // the render phase.\n    // TODO: We should probably always mark the root as suspended immediately\n    // (inside this function), since by suspending at the end of the render\n    // phase introduces a potential mistake where we suspend lanes that were\n    // pinged or updated while we were rendering.\n    markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);\n  }\n}\nfunction renderDidError(error) {\n  if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {\n    workInProgressRootExitStatus = RootErrored;\n  }\n\n  if (workInProgressRootConcurrentErrors === null) {\n    workInProgressRootConcurrentErrors = [error];\n  } else {\n    workInProgressRootConcurrentErrors.push(error);\n  }\n} // Called during render to determine if anything has suspended.\n// Returns false if we're not sure.\n\nfunction renderHasNotSuspendedYet() {\n  // If something errored or completed, we can't really be sure,\n  // so those are false.\n  return workInProgressRootExitStatus === RootInProgress;\n}\n\nfunction renderRootSync(root, lanes) {\n  var prevExecutionContext = executionContext;\n  executionContext |= RenderContext;\n  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack\n  // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {\n    {\n      if (isDevToolsPresent) {\n        var memoizedUpdaters = root.memoizedUpdaters;\n\n        if (memoizedUpdaters.size > 0) {\n          restorePendingUpdaters(root, workInProgressRootRenderLanes);\n          memoizedUpdaters.clear();\n        } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.\n        // If we bailout on this work, we'll move them back (like above).\n        // It's important to move them now in case the work spawns more work at the same priority with different updaters.\n        // That way we can keep the current update and future updates separate.\n\n\n        movePendingFibersToMemoized(root, lanes);\n      }\n    }\n\n    workInProgressTransitions = getTransitionsForLanes();\n    prepareFreshStack(root, lanes);\n  }\n\n  {\n    markRenderStarted(lanes);\n  }\n\n  do {\n    try {\n      workLoopSync();\n      break;\n    } catch (thrownValue) {\n      handleError(root, thrownValue);\n    }\n  } while (true);\n\n  resetContextDependencies();\n  executionContext = prevExecutionContext;\n  popDispatcher(prevDispatcher);\n\n  if (workInProgress !== null) {\n    // This is a sync render, so we should have finished the whole tree.\n    throw new Error('Cannot commit an incomplete root. This error is likely caused by a ' + 'bug in React. Please file an issue.');\n  }\n\n  {\n    markRenderStopped();\n  } // Set this to null to indicate there's no in-progress render.\n\n\n  workInProgressRoot = null;\n  workInProgressRootRenderLanes = NoLanes;\n  return workInProgressRootExitStatus;\n} // The work loop is an extremely hot path. Tell Closure not to inline it.\n\n/** @noinline */\n\n\nfunction workLoopSync() {\n  // Already timed out, so perform work without checking if we need to yield.\n  while (workInProgress !== null) {\n    performUnitOfWork(workInProgress);\n  }\n}\n\nfunction renderRootConcurrent(root, lanes) {\n  var prevExecutionContext = executionContext;\n  executionContext |= RenderContext;\n  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack\n  // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {\n    {\n      if (isDevToolsPresent) {\n        var memoizedUpdaters = root.memoizedUpdaters;\n\n        if (memoizedUpdaters.size > 0) {\n          restorePendingUpdaters(root, workInProgressRootRenderLanes);\n          memoizedUpdaters.clear();\n        } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.\n        // If we bailout on this work, we'll move them back (like above).\n        // It's important to move them now in case the work spawns more work at the same priority with different updaters.\n        // That way we can keep the current update and future updates separate.\n\n\n        movePendingFibersToMemoized(root, lanes);\n      }\n    }\n\n    workInProgressTransitions = getTransitionsForLanes();\n    resetRenderTimer();\n    prepareFreshStack(root, lanes);\n  }\n\n  {\n    markRenderStarted(lanes);\n  }\n\n  do {\n    try {\n      workLoopConcurrent();\n      break;\n    } catch (thrownValue) {\n      handleError(root, thrownValue);\n    }\n  } while (true);\n\n  resetContextDependencies();\n  popDispatcher(prevDispatcher);\n  executionContext = prevExecutionContext;\n\n\n  if (workInProgress !== null) {\n    // Still work remaining.\n    {\n      markRenderYielded();\n    }\n\n    return RootInProgress;\n  } else {\n    // Completed the tree.\n    {\n      markRenderStopped();\n    } // Set this to null to indicate there's no in-progress render.\n\n\n    workInProgressRoot = null;\n    workInProgressRootRenderLanes = NoLanes; // Return the final exit status.\n\n    return workInProgressRootExitStatus;\n  }\n}\n/** @noinline */\n\n\nfunction workLoopConcurrent() {\n  // Perform work until Scheduler asks us to yield\n  while (workInProgress !== null && !shouldYield()) {\n    performUnitOfWork(workInProgress);\n  }\n}\n\nfunction performUnitOfWork(unitOfWork) {\n  // The current, flushed, state of this fiber is the alternate. Ideally\n  // nothing should rely on this, but relying on it here means that we don't\n  // need an additional field on the work in progress.\n  var current = unitOfWork.alternate;\n  setCurrentFiber(unitOfWork);\n  var next;\n\n  if ( (unitOfWork.mode & ProfileMode) !== NoMode) {\n    startProfilerTimer(unitOfWork);\n    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);\n    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);\n  } else {\n    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);\n  }\n\n  resetCurrentFiber();\n  unitOfWork.memoizedProps = unitOfWork.pendingProps;\n\n  if (next === null) {\n    // If this doesn't spawn new work, complete the current work.\n    completeUnitOfWork(unitOfWork);\n  } else {\n    workInProgress = next;\n  }\n\n  ReactCurrentOwner$2.current = null;\n}\n\nfunction completeUnitOfWork(unitOfWork) {\n  // Attempt to complete the current unit of work, then move to the next\n  // sibling. If there are no more siblings, return to the parent fiber.\n  var completedWork = unitOfWork;\n\n  do {\n    // The current, flushed, state of this fiber is the alternate. Ideally\n    // nothing should rely on this, but relying on it here means that we don't\n    // need an additional field on the work in progress.\n    var current = completedWork.alternate;\n    var returnFiber = completedWork.return; // Check if the work completed or if something threw.\n\n    if ((completedWork.flags & Incomplete) === NoFlags) {\n      setCurrentFiber(completedWork);\n      var next = void 0;\n\n      if ( (completedWork.mode & ProfileMode) === NoMode) {\n        next = completeWork(current, completedWork, subtreeRenderLanes);\n      } else {\n        startProfilerTimer(completedWork);\n        next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.\n\n        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);\n      }\n\n      resetCurrentFiber();\n\n      if (next !== null) {\n        // Completing this fiber spawned new work. Work on that next.\n        workInProgress = next;\n        return;\n      }\n    } else {\n      // This fiber did not complete because something threw. Pop values off\n      // the stack without entering the complete phase. If this is a boundary,\n      // capture values if possible.\n      var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes.\n\n\n      if (_next !== null) {\n        // If completing this work spawned new work, do that next. We'll come\n        // back here again.\n        // Since we're restarting, remove anything that is not a host effect\n        // from the effect tag.\n        _next.flags &= HostEffectMask;\n        workInProgress = _next;\n        return;\n      }\n\n      if ( (completedWork.mode & ProfileMode) !== NoMode) {\n        // Record the render duration for the fiber that errored.\n        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.\n\n        var actualDuration = completedWork.actualDuration;\n        var child = completedWork.child;\n\n        while (child !== null) {\n          actualDuration += child.actualDuration;\n          child = child.sibling;\n        }\n\n        completedWork.actualDuration = actualDuration;\n      }\n\n      if (returnFiber !== null) {\n        // Mark the parent fiber as incomplete and clear its subtree flags.\n        returnFiber.flags |= Incomplete;\n        returnFiber.subtreeFlags = NoFlags;\n        returnFiber.deletions = null;\n      } else {\n        // We've unwound all the way to the root.\n        workInProgressRootExitStatus = RootDidNotComplete;\n        workInProgress = null;\n        return;\n      }\n    }\n\n    var siblingFiber = completedWork.sibling;\n\n    if (siblingFiber !== null) {\n      // If there is more work to do in this returnFiber, do that next.\n      workInProgress = siblingFiber;\n      return;\n    } // Otherwise, return to the parent\n\n\n    completedWork = returnFiber; // Update the next thing we're working on in case something throws.\n\n    workInProgress = completedWork;\n  } while (completedWork !== null); // We've reached the root.\n\n\n  if (workInProgressRootExitStatus === RootInProgress) {\n    workInProgressRootExitStatus = RootCompleted;\n  }\n}\n\nfunction commitRoot(root, recoverableErrors, transitions) {\n  // TODO: This no longer makes any sense. We already wrap the mutation and\n  // layout phases. Should be able to remove.\n  var previousUpdateLanePriority = getCurrentUpdatePriority();\n  var prevTransition = ReactCurrentBatchConfig$3.transition;\n\n  try {\n    ReactCurrentBatchConfig$3.transition = null;\n    setCurrentUpdatePriority(DiscreteEventPriority);\n    commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority);\n  } finally {\n    ReactCurrentBatchConfig$3.transition = prevTransition;\n    setCurrentUpdatePriority(previousUpdateLanePriority);\n  }\n\n  return null;\n}\n\nfunction commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) {\n  do {\n    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which\n    // means `flushPassiveEffects` will sometimes result in additional\n    // passive effects. So we need to keep flushing in a loop until there are\n    // no more pending effects.\n    // TODO: Might be better if `flushPassiveEffects` did not automatically\n    // flush synchronous work at the end, to avoid factoring hazards like this.\n    flushPassiveEffects();\n  } while (rootWithPendingPassiveEffects !== null);\n\n  flushRenderPhaseStrictModeWarningsInDEV();\n\n  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n    throw new Error('Should not already be working.');\n  }\n\n  var finishedWork = root.finishedWork;\n  var lanes = root.finishedLanes;\n\n  {\n    markCommitStarted(lanes);\n  }\n\n  if (finishedWork === null) {\n\n    {\n      markCommitStopped();\n    }\n\n    return null;\n  } else {\n    {\n      if (lanes === NoLanes) {\n        error('root.finishedLanes should not be empty during a commit. This is a ' + 'bug in React.');\n      }\n    }\n  }\n\n  root.finishedWork = null;\n  root.finishedLanes = NoLanes;\n\n  if (finishedWork === root.current) {\n    throw new Error('Cannot commit the same tree as before. This error is likely caused by ' + 'a bug in React. Please file an issue.');\n  } // commitRoot never returns a continuation; it always finishes synchronously.\n  // So we can clear these now to allow a new callback to be scheduled.\n\n\n  root.callbackNode = null;\n  root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first\n  // pending time is whatever is left on the root fiber.\n\n  var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);\n  markRootFinished(root, remainingLanes);\n\n  if (root === workInProgressRoot) {\n    // We can reset these now that they are finished.\n    workInProgressRoot = null;\n    workInProgress = null;\n    workInProgressRootRenderLanes = NoLanes;\n  } // If there are pending passive effects, schedule a callback to process them.\n  // Do this as early as possible, so it is queued before anything else that\n  // might get scheduled in the commit phase. (See #16714.)\n  // TODO: Delete all other places that schedule the passive effect callback\n  // They're redundant.\n\n\n  if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) {\n    if (!rootDoesHavePassiveEffects) {\n      rootDoesHavePassiveEffects = true;\n      // to store it in pendingPassiveTransitions until they get processed\n      // We need to pass this through as an argument to commitRoot\n      // because workInProgressTransitions might have changed between\n      // the previous render and commit if we throttle the commit\n      // with setTimeout\n\n      pendingPassiveTransitions = transitions;\n      scheduleCallback$1(NormalPriority, function () {\n        flushPassiveEffects(); // This render triggered passive effects: release the root cache pool\n        // *after* passive effects fire to avoid freeing a cache pool that may\n        // be referenced by a node in the tree (HostRoot, Cache boundary etc)\n\n        return null;\n      });\n    }\n  } // Check if there are any effects in the whole tree.\n  // TODO: This is left over from the effect list implementation, where we had\n  // to check for the existence of `firstEffect` to satisfy Flow. I think the\n  // only other reason this optimization exists is because it affects profiling.\n  // Reconsider whether this is necessary.\n\n\n  var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;\n  var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;\n\n  if (subtreeHasEffects || rootHasEffect) {\n    var prevTransition = ReactCurrentBatchConfig$3.transition;\n    ReactCurrentBatchConfig$3.transition = null;\n    var previousPriority = getCurrentUpdatePriority();\n    setCurrentUpdatePriority(DiscreteEventPriority);\n    var prevExecutionContext = executionContext;\n    executionContext |= CommitContext; // Reset this to null before calling lifecycles\n\n    ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass\n    // of the effect list for each phase: all mutation effects come before all\n    // layout effects, and so on.\n    // The first phase a \"before mutation\" phase. We use this phase to read the\n    // state of the host tree right before we mutate it. This is where\n    // getSnapshotBeforeUpdate is called.\n\n    var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork);\n\n    {\n      // Mark the current commit time to be shared by all Profilers in this\n      // batch. This enables them to be grouped later.\n      recordCommitTime();\n    }\n\n\n    commitMutationEffects(root, finishedWork, lanes);\n\n    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after\n    // the mutation phase, so that the previous tree is still current during\n    // componentWillUnmount, but before the layout phase, so that the finished\n    // work is current during componentDidMount/Update.\n\n    root.current = finishedWork; // The next phase is the layout phase, where we call effects that read\n\n    {\n      markLayoutEffectsStarted(lanes);\n    }\n\n    commitLayoutEffects(finishedWork, root, lanes);\n\n    {\n      markLayoutEffectsStopped();\n    }\n    // opportunity to paint.\n\n\n    requestPaint();\n    executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value.\n\n    setCurrentUpdatePriority(previousPriority);\n    ReactCurrentBatchConfig$3.transition = prevTransition;\n  } else {\n    // No effects.\n    root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were\n    // no effects.\n    // TODO: Maybe there's a better way to report this.\n\n    {\n      recordCommitTime();\n    }\n  }\n\n  var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;\n\n  if (rootDoesHavePassiveEffects) {\n    // This commit has passive effects. Stash a reference to them. But don't\n    // schedule a callback until after flushing layout work.\n    rootDoesHavePassiveEffects = false;\n    rootWithPendingPassiveEffects = root;\n    pendingPassiveEffectsLanes = lanes;\n  } else {\n\n    {\n      nestedPassiveUpdateCount = 0;\n      rootWithPassiveNestedUpdates = null;\n    }\n  } // Read this again, since an effect might have updated it\n\n\n  remainingLanes = root.pendingLanes; // Check if there's remaining work on this root\n  // TODO: This is part of the `componentDidCatch` implementation. Its purpose\n  // is to detect whether something might have called setState inside\n  // `componentDidCatch`. The mechanism is known to be flawed because `setState`\n  // inside `componentDidCatch` is itself flawed — that's why we recommend\n  // `getDerivedStateFromError` instead. However, it could be improved by\n  // checking if remainingLanes includes Sync work, instead of whether there's\n  // any work remaining at all (which would also include stuff like Suspense\n  // retries or transitions). It's been like this for a while, though, so fixing\n  // it probably isn't that urgent.\n\n  if (remainingLanes === NoLanes) {\n    // If there's no remaining work, we can clear the set of already failed\n    // error boundaries.\n    legacyErrorBoundariesThatAlreadyFailed = null;\n  }\n\n  {\n    if (!rootDidHavePassiveEffects) {\n      commitDoubleInvokeEffectsInDEV(root.current, false);\n    }\n  }\n\n  onCommitRoot(finishedWork.stateNode, renderPriorityLevel);\n\n  {\n    if (isDevToolsPresent) {\n      root.memoizedUpdaters.clear();\n    }\n  }\n\n  {\n    onCommitRoot$1();\n  } // Always call this before exiting `commitRoot`, to ensure that any\n  // additional work on this root is scheduled.\n\n\n  ensureRootIsScheduled(root, now());\n\n  if (recoverableErrors !== null) {\n    // There were errors during this render, but recovered from them without\n    // needing to surface it to the UI. We log them here.\n    var onRecoverableError = root.onRecoverableError;\n\n    for (var i = 0; i < recoverableErrors.length; i++) {\n      var recoverableError = recoverableErrors[i];\n      var componentStack = recoverableError.stack;\n      var digest = recoverableError.digest;\n      onRecoverableError(recoverableError.value, {\n        componentStack: componentStack,\n        digest: digest\n      });\n    }\n  }\n\n  if (hasUncaughtError) {\n    hasUncaughtError = false;\n    var error$1 = firstUncaughtError;\n    firstUncaughtError = null;\n    throw error$1;\n  } // If the passive effects are the result of a discrete render, flush them\n  // synchronously at the end of the current task so that the result is\n  // immediately observable. Otherwise, we assume that they are not\n  // order-dependent and do not need to be observed by external systems, so we\n  // can wait until after paint.\n  // TODO: We can optimize this by not scheduling the callback earlier. Since we\n  // currently schedule the callback in multiple places, will wait until those\n  // are consolidated.\n\n\n  if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) {\n    flushPassiveEffects();\n  } // Read this again, since a passive effect might have updated it\n\n\n  remainingLanes = root.pendingLanes;\n\n  if (includesSomeLane(remainingLanes, SyncLane)) {\n    {\n      markNestedUpdateScheduled();\n    } // Count the number of times the root synchronously re-renders without\n    // finishing. If there are too many, it indicates an infinite update loop.\n\n\n    if (root === rootWithNestedUpdates) {\n      nestedUpdateCount++;\n    } else {\n      nestedUpdateCount = 0;\n      rootWithNestedUpdates = root;\n    }\n  } else {\n    nestedUpdateCount = 0;\n  } // If layout work was scheduled, flush it now.\n\n\n  flushSyncCallbacks();\n\n  {\n    markCommitStopped();\n  }\n\n  return null;\n}\n\nfunction flushPassiveEffects() {\n  // Returns whether passive effects were flushed.\n  // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should\n  // probably just combine the two functions. I believe they were only separate\n  // in the first place because we used to wrap it with\n  // `Scheduler.runWithPriority`, which accepts a function. But now we track the\n  // priority within React itself, so we can mutate the variable directly.\n  if (rootWithPendingPassiveEffects !== null) {\n    var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);\n    var priority = lowerEventPriority(DefaultEventPriority, renderPriority);\n    var prevTransition = ReactCurrentBatchConfig$3.transition;\n    var previousPriority = getCurrentUpdatePriority();\n\n    try {\n      ReactCurrentBatchConfig$3.transition = null;\n      setCurrentUpdatePriority(priority);\n      return flushPassiveEffectsImpl();\n    } finally {\n      setCurrentUpdatePriority(previousPriority);\n      ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a\n    }\n  }\n\n  return false;\n}\nfunction enqueuePendingPassiveProfilerEffect(fiber) {\n  {\n    pendingPassiveProfilerEffects.push(fiber);\n\n    if (!rootDoesHavePassiveEffects) {\n      rootDoesHavePassiveEffects = true;\n      scheduleCallback$1(NormalPriority, function () {\n        flushPassiveEffects();\n        return null;\n      });\n    }\n  }\n}\n\nfunction flushPassiveEffectsImpl() {\n  if (rootWithPendingPassiveEffects === null) {\n    return false;\n  } // Cache and clear the transitions flag\n\n\n  var transitions = pendingPassiveTransitions;\n  pendingPassiveTransitions = null;\n  var root = rootWithPendingPassiveEffects;\n  var lanes = pendingPassiveEffectsLanes;\n  rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects.\n  // Figure out why and fix it. It's not causing any known issues (probably\n  // because it's only used for profiling), but it's a refactor hazard.\n\n  pendingPassiveEffectsLanes = NoLanes;\n\n  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {\n    throw new Error('Cannot flush passive effects while already rendering.');\n  }\n\n  {\n    isFlushingPassiveEffects = true;\n    didScheduleUpdateDuringPassiveEffects = false;\n  }\n\n  {\n    markPassiveEffectsStarted(lanes);\n  }\n\n  var prevExecutionContext = executionContext;\n  executionContext |= CommitContext;\n  commitPassiveUnmountEffects(root.current);\n  commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects\n\n  {\n    var profilerEffects = pendingPassiveProfilerEffects;\n    pendingPassiveProfilerEffects = [];\n\n    for (var i = 0; i < profilerEffects.length; i++) {\n      var _fiber = profilerEffects[i];\n      commitPassiveEffectDurations(root, _fiber);\n    }\n  }\n\n  {\n    markPassiveEffectsStopped();\n  }\n\n  {\n    commitDoubleInvokeEffectsInDEV(root.current, true);\n  }\n\n  executionContext = prevExecutionContext;\n  flushSyncCallbacks();\n\n  {\n    // If additional passive effects were scheduled, increment a counter. If this\n    // exceeds the limit, we'll fire a warning.\n    if (didScheduleUpdateDuringPassiveEffects) {\n      if (root === rootWithPassiveNestedUpdates) {\n        nestedPassiveUpdateCount++;\n      } else {\n        nestedPassiveUpdateCount = 0;\n        rootWithPassiveNestedUpdates = root;\n      }\n    } else {\n      nestedPassiveUpdateCount = 0;\n    }\n\n    isFlushingPassiveEffects = false;\n    didScheduleUpdateDuringPassiveEffects = false;\n  } // TODO: Move to commitPassiveMountEffects\n\n\n  onPostCommitRoot(root);\n\n  {\n    var stateNode = root.current.stateNode;\n    stateNode.effectDuration = 0;\n    stateNode.passiveEffectDuration = 0;\n  }\n\n  return true;\n}\n\nfunction isAlreadyFailedLegacyErrorBoundary(instance) {\n  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);\n}\nfunction markLegacyErrorBoundaryAsFailed(instance) {\n  if (legacyErrorBoundariesThatAlreadyFailed === null) {\n    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);\n  } else {\n    legacyErrorBoundariesThatAlreadyFailed.add(instance);\n  }\n}\n\nfunction prepareToThrowUncaughtError(error) {\n  if (!hasUncaughtError) {\n    hasUncaughtError = true;\n    firstUncaughtError = error;\n  }\n}\n\nvar onUncaughtError = prepareToThrowUncaughtError;\n\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {\n  var errorInfo = createCapturedValueAtFiber(error, sourceFiber);\n  var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);\n  var root = enqueueUpdate(rootFiber, update, SyncLane);\n  var eventTime = requestEventTime();\n\n  if (root !== null) {\n    markRootUpdated(root, SyncLane, eventTime);\n    ensureRootIsScheduled(root, eventTime);\n  }\n}\n\nfunction captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {\n  {\n    reportUncaughtErrorInDEV(error$1);\n    setIsRunningInsertionEffect(false);\n  }\n\n  if (sourceFiber.tag === HostRoot) {\n    // Error was thrown at the root. There is no parent, so the root\n    // itself should capture it.\n    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1);\n    return;\n  }\n\n  var fiber = null;\n\n  {\n    fiber = nearestMountedAncestor;\n  }\n\n  while (fiber !== null) {\n    if (fiber.tag === HostRoot) {\n      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1);\n      return;\n    } else if (fiber.tag === ClassComponent) {\n      var ctor = fiber.type;\n      var instance = fiber.stateNode;\n\n      if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {\n        var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);\n        var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);\n        var root = enqueueUpdate(fiber, update, SyncLane);\n        var eventTime = requestEventTime();\n\n        if (root !== null) {\n          markRootUpdated(root, SyncLane, eventTime);\n          ensureRootIsScheduled(root, eventTime);\n        }\n\n        return;\n      }\n    }\n\n    fiber = fiber.return;\n  }\n\n  {\n    // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning\n    // will fire for errors that are thrown by destroy functions inside deleted\n    // trees. What it should instead do is propagate the error to the parent of\n    // the deleted tree. In the meantime, do not add this warning to the\n    // allowlist; this is only for our internal use.\n    error('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.\\n\\n' + 'Error message:\\n\\n%s', error$1);\n  }\n}\nfunction pingSuspendedRoot(root, wakeable, pingedLanes) {\n  var pingCache = root.pingCache;\n\n  if (pingCache !== null) {\n    // The wakeable resolved, so we no longer need to memoize, because it will\n    // never be thrown again.\n    pingCache.delete(wakeable);\n  }\n\n  var eventTime = requestEventTime();\n  markRootPinged(root, pingedLanes);\n  warnIfSuspenseResolutionNotWrappedWithActDEV(root);\n\n  if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {\n    // Received a ping at the same priority level at which we're currently\n    // rendering. We might want to restart this render. This should mirror\n    // the logic of whether or not a root suspends once it completes.\n    // TODO: If we're rendering sync either due to Sync, Batched or expired,\n    // we should probably never restart.\n    // If we're suspended with delay, or if it's a retry, we'll always suspend\n    // so we can always restart.\n    if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {\n      // Restart from the root.\n      prepareFreshStack(root, NoLanes);\n    } else {\n      // Even though we can't restart right now, we might get an\n      // opportunity later. So we mark this render as having a ping.\n      workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);\n    }\n  }\n\n  ensureRootIsScheduled(root, eventTime);\n}\n\nfunction retryTimedOutBoundary(boundaryFiber, retryLane) {\n  // The boundary fiber (a Suspense component or SuspenseList component)\n  // previously was rendered in its fallback state. One of the promises that\n  // suspended it has resolved, which means at least part of the tree was\n  // likely unblocked. Try rendering again, at a new lanes.\n  if (retryLane === NoLane) {\n    // TODO: Assign this to `suspenseState.retryLane`? to avoid\n    // unnecessary entanglement?\n    retryLane = requestRetryLane(boundaryFiber);\n  } // TODO: Special case idle priority?\n\n\n  var eventTime = requestEventTime();\n  var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);\n\n  if (root !== null) {\n    markRootUpdated(root, retryLane, eventTime);\n    ensureRootIsScheduled(root, eventTime);\n  }\n}\n\nfunction retryDehydratedSuspenseBoundary(boundaryFiber) {\n  var suspenseState = boundaryFiber.memoizedState;\n  var retryLane = NoLane;\n\n  if (suspenseState !== null) {\n    retryLane = suspenseState.retryLane;\n  }\n\n  retryTimedOutBoundary(boundaryFiber, retryLane);\n}\nfunction resolveRetryWakeable(boundaryFiber, wakeable) {\n  var retryLane = NoLane; // Default\n\n  var retryCache;\n\n  switch (boundaryFiber.tag) {\n    case SuspenseComponent:\n      retryCache = boundaryFiber.stateNode;\n      var suspenseState = boundaryFiber.memoizedState;\n\n      if (suspenseState !== null) {\n        retryLane = suspenseState.retryLane;\n      }\n\n      break;\n\n    case SuspenseListComponent:\n      retryCache = boundaryFiber.stateNode;\n      break;\n\n    default:\n      throw new Error('Pinged unknown suspense boundary type. ' + 'This is probably a bug in React.');\n  }\n\n  if (retryCache !== null) {\n    // The wakeable resolved, so we no longer need to memoize, because it will\n    // never be thrown again.\n    retryCache.delete(wakeable);\n  }\n\n  retryTimedOutBoundary(boundaryFiber, retryLane);\n} // Computes the next Just Noticeable Difference (JND) boundary.\n// The theory is that a person can't tell the difference between small differences in time.\n// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable\n// difference in the experience. However, waiting for longer might mean that we can avoid\n// showing an intermediate loading state. The longer we have already waited, the harder it\n// is to tell small differences in time. Therefore, the longer we've already waited,\n// the longer we can wait additionally. At some point we have to give up though.\n// We pick a train model where the next boundary commits at a consistent schedule.\n// These particular numbers are vague estimates. We expect to adjust them based on research.\n\nfunction jnd(timeElapsed) {\n  return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;\n}\n\nfunction checkForNestedUpdates() {\n  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {\n    nestedUpdateCount = 0;\n    rootWithNestedUpdates = null;\n    throw 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.');\n  }\n\n  {\n    if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {\n      nestedPassiveUpdateCount = 0;\n      rootWithPassiveNestedUpdates = null;\n\n      error('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.');\n    }\n  }\n}\n\nfunction flushRenderPhaseStrictModeWarningsInDEV() {\n  {\n    ReactStrictModeWarnings.flushLegacyContextWarning();\n\n    {\n      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();\n    }\n  }\n}\n\nfunction commitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) {\n  {\n    // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects\n    // so we don't traverse unnecessarily? similar to subtreeFlags but just at the root level.\n    // Maybe not a big deal since this is DEV only behavior.\n    setCurrentFiber(fiber);\n    invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectUnmountInDEV);\n\n    if (hasPassiveEffects) {\n      invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectUnmountInDEV);\n    }\n\n    invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectMountInDEV);\n\n    if (hasPassiveEffects) {\n      invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectMountInDEV);\n    }\n\n    resetCurrentFiber();\n  }\n}\n\nfunction invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {\n  {\n    // We don't need to re-check StrictEffectsMode here.\n    // This function is only called if that check has already passed.\n    var current = firstChild;\n    var subtreeRoot = null;\n\n    while (current !== null) {\n      var primarySubtreeFlag = current.subtreeFlags & fiberFlags;\n\n      if (current !== subtreeRoot && current.child !== null && primarySubtreeFlag !== NoFlags) {\n        current = current.child;\n      } else {\n        if ((current.flags & fiberFlags) !== NoFlags) {\n          invokeEffectFn(current);\n        }\n\n        if (current.sibling !== null) {\n          current = current.sibling;\n        } else {\n          current = subtreeRoot = current.return;\n        }\n      }\n    }\n  }\n}\n\nvar didWarnStateUpdateForNotYetMountedComponent = null;\nfunction warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {\n  {\n    if ((executionContext & RenderContext) !== NoContext) {\n      // We let the other warning about render phase updates deal with this one.\n      return;\n    }\n\n    if (!(fiber.mode & ConcurrentMode)) {\n      return;\n    }\n\n    var tag = fiber.tag;\n\n    if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {\n      // Only warn for user-defined components, not internal ones like Suspense.\n      return;\n    } // We show the whole stack but dedupe on the top component's name because\n    // the problematic code almost always lies inside that component.\n\n\n    var componentName = getComponentNameFromFiber(fiber) || 'ReactComponent';\n\n    if (didWarnStateUpdateForNotYetMountedComponent !== null) {\n      if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {\n        return;\n      }\n\n      didWarnStateUpdateForNotYetMountedComponent.add(componentName);\n    } else {\n      didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);\n    }\n\n    var previousFiber = current;\n\n    try {\n      setCurrentFiber(fiber);\n\n      error(\"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.');\n    } finally {\n      if (previousFiber) {\n        setCurrentFiber(fiber);\n      } else {\n        resetCurrentFiber();\n      }\n    }\n  }\n}\nvar beginWork$1;\n\n{\n  var dummyFiber = null;\n\n  beginWork$1 = function (current, unitOfWork, lanes) {\n    // If a component throws an error, we replay it again in a synchronously\n    // dispatched event, so that the debugger will treat it as an uncaught\n    // error See ReactErrorUtils for more information.\n    // Before entering the begin phase, copy the work-in-progress onto a dummy\n    // fiber. If beginWork throws, we'll use this to reset the state.\n    var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);\n\n    try {\n      return beginWork(current, unitOfWork, lanes);\n    } catch (originalError) {\n      if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {\n        // Don't replay promises.\n        // Don't replay errors if we are hydrating and have already suspended or handled an error\n        throw originalError;\n      } // Keep this code in sync with handleError; any changes here must have\n      // corresponding changes there.\n\n\n      resetContextDependencies();\n      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the\n      // same fiber again.\n      // Unwind the failed stack frame\n\n      unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber.\n\n      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);\n\n      if ( unitOfWork.mode & ProfileMode) {\n        // Reset the profiler timer.\n        startProfilerTimer(unitOfWork);\n      } // Run beginWork again.\n\n\n      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);\n\n      if (hasCaughtError()) {\n        var replayError = clearCaughtError();\n\n        if (typeof replayError === 'object' && replayError !== null && replayError._suppressLogging && typeof originalError === 'object' && originalError !== null && !originalError._suppressLogging) {\n          // If suppressed, let the flag carry over to the original error which is the one we'll rethrow.\n          originalError._suppressLogging = true;\n        }\n      } // We always throw the original error in case the second render pass is not idempotent.\n      // This can happen if a memoized function or CommonJS module doesn't throw after first invocation.\n\n\n      throw originalError;\n    }\n  };\n}\n\nvar didWarnAboutUpdateInRender = false;\nvar didWarnAboutUpdateInRenderForAnotherComponent;\n\n{\n  didWarnAboutUpdateInRenderForAnotherComponent = new Set();\n}\n\nfunction warnAboutRenderPhaseUpdatesInDEV(fiber) {\n  {\n    if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {\n      switch (fiber.tag) {\n        case FunctionComponent:\n        case ForwardRef:\n        case SimpleMemoComponent:\n          {\n            var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.\n\n            var dedupeKey = renderingComponentName;\n\n            if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {\n              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);\n              var setStateComponentName = getComponentNameFromFiber(fiber) || 'Unknown';\n\n              error('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', setStateComponentName, renderingComponentName, renderingComponentName);\n            }\n\n            break;\n          }\n\n        case ClassComponent:\n          {\n            if (!didWarnAboutUpdateInRender) {\n              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');\n\n              didWarnAboutUpdateInRender = true;\n            }\n\n            break;\n          }\n      }\n    }\n  }\n}\n\nfunction restorePendingUpdaters(root, lanes) {\n  {\n    if (isDevToolsPresent) {\n      var memoizedUpdaters = root.memoizedUpdaters;\n      memoizedUpdaters.forEach(function (schedulingFiber) {\n        addFiberToLanesMap(root, schedulingFiber, lanes);\n      }); // This function intentionally does not clear memoized updaters.\n      // Those may still be relevant to the current commit\n      // and a future one (e.g. Suspense).\n    }\n  }\n}\nvar fakeActCallbackNode = {};\n\nfunction scheduleCallback$1(priorityLevel, callback) {\n  {\n    // If we're currently inside an `act` scope, bypass Scheduler and push to\n    // the `act` queue instead.\n    var actQueue = ReactCurrentActQueue$1.current;\n\n    if (actQueue !== null) {\n      actQueue.push(callback);\n      return fakeActCallbackNode;\n    } else {\n      return scheduleCallback(priorityLevel, callback);\n    }\n  }\n}\n\nfunction cancelCallback$1(callbackNode) {\n  if ( callbackNode === fakeActCallbackNode) {\n    return;\n  } // In production, always call Scheduler. This function will be stripped out.\n\n\n  return cancelCallback(callbackNode);\n}\n\nfunction shouldForceFlushFallbacksInDEV() {\n  // Never force flush in production. This function should get stripped out.\n  return  ReactCurrentActQueue$1.current !== null;\n}\n\nfunction warnIfUpdatesNotWrappedWithActDEV(fiber) {\n  {\n    if (fiber.mode & ConcurrentMode) {\n      if (!isConcurrentActEnvironment()) {\n        // Not in an act environment. No need to warn.\n        return;\n      }\n    } else {\n      // Legacy mode has additional cases where we suppress a warning.\n      if (!isLegacyActEnvironment()) {\n        // Not in an act environment. No need to warn.\n        return;\n      }\n\n      if (executionContext !== NoContext) {\n        // Legacy mode doesn't warn if the update is batched, i.e.\n        // batchedUpdates or flushSync.\n        return;\n      }\n\n      if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) {\n        // For backwards compatibility with pre-hooks code, legacy mode only\n        // warns for updates that originate from a hook.\n        return;\n      }\n    }\n\n    if (ReactCurrentActQueue$1.current === null) {\n      var previousFiber = current;\n\n      try {\n        setCurrentFiber(fiber);\n\n        error('An update to %s inside a test was not wrapped in act(...).\\n\\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\\n\\n' + 'act(() => {\\n' + '  /* fire events that update state */\\n' + '});\\n' + '/* assert on the output */\\n\\n' + \"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', getComponentNameFromFiber(fiber));\n      } finally {\n        if (previousFiber) {\n          setCurrentFiber(fiber);\n        } else {\n          resetCurrentFiber();\n        }\n      }\n    }\n  }\n}\n\nfunction warnIfSuspenseResolutionNotWrappedWithActDEV(root) {\n  {\n    if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) {\n      error('A suspended resource finished loading inside a test, but the event ' + 'was not wrapped in act(...).\\n\\n' + 'When testing, code that resolves suspended data should be wrapped ' + 'into act(...):\\n\\n' + 'act(() => {\\n' + '  /* finish loading suspended data */\\n' + '});\\n' + '/* assert on the output */\\n\\n' + \"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');\n    }\n  }\n}\n\nfunction setIsRunningInsertionEffect(isRunning) {\n  {\n    isRunningInsertionEffect = isRunning;\n  }\n}\n\n/* eslint-disable react-internal/prod-error-codes */\nvar resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.\n\nvar failedBoundaries = null;\nvar setRefreshHandler = function (handler) {\n  {\n    resolveFamily = handler;\n  }\n};\nfunction resolveFunctionForHotReloading(type) {\n  {\n    if (resolveFamily === null) {\n      // Hot reloading is disabled.\n      return type;\n    }\n\n    var family = resolveFamily(type);\n\n    if (family === undefined) {\n      return type;\n    } // Use the latest known implementation.\n\n\n    return family.current;\n  }\n}\nfunction resolveClassForHotReloading(type) {\n  // No implementation differences.\n  return resolveFunctionForHotReloading(type);\n}\nfunction resolveForwardRefForHotReloading(type) {\n  {\n    if (resolveFamily === null) {\n      // Hot reloading is disabled.\n      return type;\n    }\n\n    var family = resolveFamily(type);\n\n    if (family === undefined) {\n      // Check if we're dealing with a real forwardRef. Don't want to crash early.\n      if (type !== null && type !== undefined && typeof type.render === 'function') {\n        // ForwardRef is special because its resolved .type is an object,\n        // but it's possible that we only have its inner render function in the map.\n        // If that inner render function is different, we'll build a new forwardRef type.\n        var currentRender = resolveFunctionForHotReloading(type.render);\n\n        if (type.render !== currentRender) {\n          var syntheticType = {\n            $$typeof: REACT_FORWARD_REF_TYPE,\n            render: currentRender\n          };\n\n          if (type.displayName !== undefined) {\n            syntheticType.displayName = type.displayName;\n          }\n\n          return syntheticType;\n        }\n      }\n\n      return type;\n    } // Use the latest known implementation.\n\n\n    return family.current;\n  }\n}\nfunction isCompatibleFamilyForHotReloading(fiber, element) {\n  {\n    if (resolveFamily === null) {\n      // Hot reloading is disabled.\n      return false;\n    }\n\n    var prevType = fiber.elementType;\n    var nextType = element.type; // If we got here, we know types aren't === equal.\n\n    var needsCompareFamilies = false;\n    var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;\n\n    switch (fiber.tag) {\n      case ClassComponent:\n        {\n          if (typeof nextType === 'function') {\n            needsCompareFamilies = true;\n          }\n\n          break;\n        }\n\n      case FunctionComponent:\n        {\n          if (typeof nextType === 'function') {\n            needsCompareFamilies = true;\n          } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n            // We don't know the inner type yet.\n            // We're going to assume that the lazy inner type is stable,\n            // and so it is sufficient to avoid reconciling it away.\n            // We're not going to unwrap or actually use the new lazy type.\n            needsCompareFamilies = true;\n          }\n\n          break;\n        }\n\n      case ForwardRef:\n        {\n          if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {\n            needsCompareFamilies = true;\n          } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n            needsCompareFamilies = true;\n          }\n\n          break;\n        }\n\n      case MemoComponent:\n      case SimpleMemoComponent:\n        {\n          if ($$typeofNextType === REACT_MEMO_TYPE) {\n            // TODO: if it was but can no longer be simple,\n            // we shouldn't set this.\n            needsCompareFamilies = true;\n          } else if ($$typeofNextType === REACT_LAZY_TYPE) {\n            needsCompareFamilies = true;\n          }\n\n          break;\n        }\n\n      default:\n        return false;\n    } // Check if both types have a family and it's the same one.\n\n\n    if (needsCompareFamilies) {\n      // Note: memo() and forwardRef() we'll compare outer rather than inner type.\n      // This means both of them need to be registered to preserve state.\n      // If we unwrapped and compared the inner types for wrappers instead,\n      // then we would risk falsely saying two separate memo(Foo)\n      // calls are equivalent because they wrap the same Foo function.\n      var prevFamily = resolveFamily(prevType);\n\n      if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n}\nfunction markFailedErrorBoundaryForHotReloading(fiber) {\n  {\n    if (resolveFamily === null) {\n      // Hot reloading is disabled.\n      return;\n    }\n\n    if (typeof WeakSet !== 'function') {\n      return;\n    }\n\n    if (failedBoundaries === null) {\n      failedBoundaries = new WeakSet();\n    }\n\n    failedBoundaries.add(fiber);\n  }\n}\nvar scheduleRefresh = function (root, update) {\n  {\n    if (resolveFamily === null) {\n      // Hot reloading is disabled.\n      return;\n    }\n\n    var staleFamilies = update.staleFamilies,\n        updatedFamilies = update.updatedFamilies;\n    flushPassiveEffects();\n    flushSync(function () {\n      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);\n    });\n  }\n};\nvar scheduleRoot = function (root, element) {\n  {\n    if (root.context !== emptyContextObject) {\n      // Super edge case: root has a legacy _renderSubtree context\n      // but we don't know the parentComponent so we can't pass it.\n      // Just ignore. We'll delete this with _renderSubtree code path later.\n      return;\n    }\n\n    flushPassiveEffects();\n    flushSync(function () {\n      updateContainer(element, root, null, null);\n    });\n  }\n};\n\nfunction scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {\n  {\n    var alternate = fiber.alternate,\n        child = fiber.child,\n        sibling = fiber.sibling,\n        tag = fiber.tag,\n        type = fiber.type;\n    var candidateType = null;\n\n    switch (tag) {\n      case FunctionComponent:\n      case SimpleMemoComponent:\n      case ClassComponent:\n        candidateType = type;\n        break;\n\n      case ForwardRef:\n        candidateType = type.render;\n        break;\n    }\n\n    if (resolveFamily === null) {\n      throw new Error('Expected resolveFamily to be set during hot reload.');\n    }\n\n    var needsRender = false;\n    var needsRemount = false;\n\n    if (candidateType !== null) {\n      var family = resolveFamily(candidateType);\n\n      if (family !== undefined) {\n        if (staleFamilies.has(family)) {\n          needsRemount = true;\n        } else if (updatedFamilies.has(family)) {\n          if (tag === ClassComponent) {\n            needsRemount = true;\n          } else {\n            needsRender = true;\n          }\n        }\n      }\n    }\n\n    if (failedBoundaries !== null) {\n      if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {\n        needsRemount = true;\n      }\n    }\n\n    if (needsRemount) {\n      fiber._debugNeedsRemount = true;\n    }\n\n    if (needsRemount || needsRender) {\n      var _root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n      if (_root !== null) {\n        scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp);\n      }\n    }\n\n    if (child !== null && !needsRemount) {\n      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);\n    }\n\n    if (sibling !== null) {\n      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);\n    }\n  }\n}\n\nvar findHostInstancesForRefresh = function (root, families) {\n  {\n    var hostInstances = new Set();\n    var types = new Set(families.map(function (family) {\n      return family.current;\n    }));\n    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);\n    return hostInstances;\n  }\n};\n\nfunction findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {\n  {\n    var child = fiber.child,\n        sibling = fiber.sibling,\n        tag = fiber.tag,\n        type = fiber.type;\n    var candidateType = null;\n\n    switch (tag) {\n      case FunctionComponent:\n      case SimpleMemoComponent:\n      case ClassComponent:\n        candidateType = type;\n        break;\n\n      case ForwardRef:\n        candidateType = type.render;\n        break;\n    }\n\n    var didMatch = false;\n\n    if (candidateType !== null) {\n      if (types.has(candidateType)) {\n        didMatch = true;\n      }\n    }\n\n    if (didMatch) {\n      // We have a match. This only drills down to the closest host components.\n      // There's no need to search deeper because for the purpose of giving\n      // visual feedback, \"flashing\" outermost parent rectangles is sufficient.\n      findHostInstancesForFiberShallowly(fiber, hostInstances);\n    } else {\n      // If there's no match, maybe there will be one further down in the child tree.\n      if (child !== null) {\n        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);\n      }\n    }\n\n    if (sibling !== null) {\n      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);\n    }\n  }\n}\n\nfunction findHostInstancesForFiberShallowly(fiber, hostInstances) {\n  {\n    var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);\n\n    if (foundHostInstances) {\n      return;\n    } // If we didn't find any host children, fallback to closest host parent.\n\n\n    var node = fiber;\n\n    while (true) {\n      switch (node.tag) {\n        case HostComponent:\n          hostInstances.add(node.stateNode);\n          return;\n\n        case HostPortal:\n          hostInstances.add(node.stateNode.containerInfo);\n          return;\n\n        case HostRoot:\n          hostInstances.add(node.stateNode.containerInfo);\n          return;\n      }\n\n      if (node.return === null) {\n        throw new Error('Expected to reach root first.');\n      }\n\n      node = node.return;\n    }\n  }\n}\n\nfunction findChildHostInstancesForFiberShallowly(fiber, hostInstances) {\n  {\n    var node = fiber;\n    var foundHostInstances = false;\n\n    while (true) {\n      if (node.tag === HostComponent) {\n        // We got a match.\n        foundHostInstances = true;\n        hostInstances.add(node.stateNode); // There may still be more, so keep searching.\n      } else if (node.child !== null) {\n        node.child.return = node;\n        node = node.child;\n        continue;\n      }\n\n      if (node === fiber) {\n        return foundHostInstances;\n      }\n\n      while (node.sibling === null) {\n        if (node.return === null || node.return === fiber) {\n          return foundHostInstances;\n        }\n\n        node = node.return;\n      }\n\n      node.sibling.return = node.return;\n      node = node.sibling;\n    }\n  }\n\n  return false;\n}\n\nvar hasBadMapPolyfill;\n\n{\n  hasBadMapPolyfill = false;\n\n  try {\n    var nonExtensibleObject = Object.preventExtensions({});\n    /* eslint-disable no-new */\n\n    new Map([[nonExtensibleObject, null]]);\n    new Set([nonExtensibleObject]);\n    /* eslint-enable no-new */\n  } catch (e) {\n    // TODO: Consider warning about bad polyfills\n    hasBadMapPolyfill = true;\n  }\n}\n\nfunction FiberNode(tag, pendingProps, key, mode) {\n  // Instance\n  this.tag = tag;\n  this.key = key;\n  this.elementType = null;\n  this.type = null;\n  this.stateNode = null; // Fiber\n\n  this.return = null;\n  this.child = null;\n  this.sibling = null;\n  this.index = 0;\n  this.ref = null;\n  this.pendingProps = pendingProps;\n  this.memoizedProps = null;\n  this.updateQueue = null;\n  this.memoizedState = null;\n  this.dependencies = null;\n  this.mode = mode; // Effects\n\n  this.flags = NoFlags;\n  this.subtreeFlags = NoFlags;\n  this.deletions = null;\n  this.lanes = NoLanes;\n  this.childLanes = NoLanes;\n  this.alternate = null;\n\n  {\n    // Note: The following is done to avoid a v8 performance cliff.\n    //\n    // Initializing the fields below to smis and later updating them with\n    // double values will cause Fibers to end up having separate shapes.\n    // This behavior/bug has something to do with Object.preventExtension().\n    // Fortunately this only impacts DEV builds.\n    // Unfortunately it makes React unusably slow for some applications.\n    // To work around this, initialize the fields below with doubles.\n    //\n    // Learn more about this here:\n    // https://github.com/facebook/react/issues/14365\n    // https://bugs.chromium.org/p/v8/issues/detail?id=8538\n    this.actualDuration = Number.NaN;\n    this.actualStartTime = Number.NaN;\n    this.selfBaseDuration = Number.NaN;\n    this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.\n    // This won't trigger the performance cliff mentioned above,\n    // and it simplifies other profiler code (including DevTools).\n\n    this.actualDuration = 0;\n    this.actualStartTime = -1;\n    this.selfBaseDuration = 0;\n    this.treeBaseDuration = 0;\n  }\n\n  {\n    // This isn't directly used but is handy for debugging internals:\n    this._debugSource = null;\n    this._debugOwner = null;\n    this._debugNeedsRemount = false;\n    this._debugHookTypes = null;\n\n    if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {\n      Object.preventExtensions(this);\n    }\n  }\n} // This is a constructor function, rather than a POJO constructor, still\n// please ensure we do the following:\n// 1) Nobody should add any instance methods on this. Instance methods can be\n//    more difficult to predict when they get optimized and they are almost\n//    never inlined properly in static compilers.\n// 2) Nobody should rely on `instanceof Fiber` for type testing. We should\n//    always know when it is a fiber.\n// 3) We might want to experiment with using numeric keys since they are easier\n//    to optimize in a non-JIT environment.\n// 4) We can easily go from a constructor to a createFiber object literal if that\n//    is faster.\n// 5) It should be easy to port this to a C struct and keep a C implementation\n//    compatible.\n\n\nvar createFiber = function (tag, pendingProps, key, mode) {\n  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors\n  return new FiberNode(tag, pendingProps, key, mode);\n};\n\nfunction shouldConstruct$1(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction isSimpleFunctionComponent(type) {\n  return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;\n}\nfunction resolveLazyComponentTag(Component) {\n  if (typeof Component === 'function') {\n    return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;\n  } else if (Component !== undefined && Component !== null) {\n    var $$typeof = Component.$$typeof;\n\n    if ($$typeof === REACT_FORWARD_REF_TYPE) {\n      return ForwardRef;\n    }\n\n    if ($$typeof === REACT_MEMO_TYPE) {\n      return MemoComponent;\n    }\n  }\n\n  return IndeterminateComponent;\n} // This is used to create an alternate fiber to do work on.\n\nfunction createWorkInProgress(current, pendingProps) {\n  var workInProgress = current.alternate;\n\n  if (workInProgress === null) {\n    // We use a double buffering pooling technique because we know that we'll\n    // only ever need at most two versions of a tree. We pool the \"other\" unused\n    // node that we're free to reuse. This is lazily created to avoid allocating\n    // extra objects for things that are never updated. It also allow us to\n    // reclaim the extra memory if needed.\n    workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);\n    workInProgress.elementType = current.elementType;\n    workInProgress.type = current.type;\n    workInProgress.stateNode = current.stateNode;\n\n    {\n      // DEV-only fields\n      workInProgress._debugSource = current._debugSource;\n      workInProgress._debugOwner = current._debugOwner;\n      workInProgress._debugHookTypes = current._debugHookTypes;\n    }\n\n    workInProgress.alternate = current;\n    current.alternate = workInProgress;\n  } else {\n    workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.\n\n    workInProgress.type = current.type; // We already have an alternate.\n    // Reset the effect tag.\n\n    workInProgress.flags = NoFlags; // The effects are no longer valid.\n\n    workInProgress.subtreeFlags = NoFlags;\n    workInProgress.deletions = null;\n\n    {\n      // We intentionally reset, rather than copy, actualDuration & actualStartTime.\n      // This prevents time from endlessly accumulating in new commits.\n      // This has the downside of resetting values for different priority renders,\n      // But works for yielding (the common case) and should support resuming.\n      workInProgress.actualDuration = 0;\n      workInProgress.actualStartTime = -1;\n    }\n  } // Reset all effects except static ones.\n  // Static effects are not specific to a render.\n\n\n  workInProgress.flags = current.flags & StaticMask;\n  workInProgress.childLanes = current.childLanes;\n  workInProgress.lanes = current.lanes;\n  workInProgress.child = current.child;\n  workInProgress.memoizedProps = current.memoizedProps;\n  workInProgress.memoizedState = current.memoizedState;\n  workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so\n  // it cannot be shared with the current fiber.\n\n  var currentDependencies = current.dependencies;\n  workInProgress.dependencies = currentDependencies === null ? null : {\n    lanes: currentDependencies.lanes,\n    firstContext: currentDependencies.firstContext\n  }; // These will be overridden during the parent's reconciliation\n\n  workInProgress.sibling = current.sibling;\n  workInProgress.index = current.index;\n  workInProgress.ref = current.ref;\n\n  {\n    workInProgress.selfBaseDuration = current.selfBaseDuration;\n    workInProgress.treeBaseDuration = current.treeBaseDuration;\n  }\n\n  {\n    workInProgress._debugNeedsRemount = current._debugNeedsRemount;\n\n    switch (workInProgress.tag) {\n      case IndeterminateComponent:\n      case FunctionComponent:\n      case SimpleMemoComponent:\n        workInProgress.type = resolveFunctionForHotReloading(current.type);\n        break;\n\n      case ClassComponent:\n        workInProgress.type = resolveClassForHotReloading(current.type);\n        break;\n\n      case ForwardRef:\n        workInProgress.type = resolveForwardRefForHotReloading(current.type);\n        break;\n    }\n  }\n\n  return workInProgress;\n} // Used to reuse a Fiber for a second pass.\n\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n  // This resets the Fiber to what createFiber or createWorkInProgress would\n  // have set the values to before during the first pass. Ideally this wouldn't\n  // be necessary but unfortunately many code paths reads from the workInProgress\n  // when they should be reading from current and writing to workInProgress.\n  // We assume pendingProps, index, key, ref, return are still untouched to\n  // avoid doing another reconciliation.\n  // Reset the effect flags but keep any Placement tags, since that's something\n  // that child fiber is setting, not the reconciliation.\n  workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid.\n\n  var current = workInProgress.alternate;\n\n  if (current === null) {\n    // Reset to createFiber's initial values.\n    workInProgress.childLanes = NoLanes;\n    workInProgress.lanes = renderLanes;\n    workInProgress.child = null;\n    workInProgress.subtreeFlags = NoFlags;\n    workInProgress.memoizedProps = null;\n    workInProgress.memoizedState = null;\n    workInProgress.updateQueue = null;\n    workInProgress.dependencies = null;\n    workInProgress.stateNode = null;\n\n    {\n      // Note: We don't reset the actualTime counts. It's useful to accumulate\n      // actual time across multiple render passes.\n      workInProgress.selfBaseDuration = 0;\n      workInProgress.treeBaseDuration = 0;\n    }\n  } else {\n    // Reset to the cloned values that createWorkInProgress would've.\n    workInProgress.childLanes = current.childLanes;\n    workInProgress.lanes = current.lanes;\n    workInProgress.child = current.child;\n    workInProgress.subtreeFlags = NoFlags;\n    workInProgress.deletions = null;\n    workInProgress.memoizedProps = current.memoizedProps;\n    workInProgress.memoizedState = current.memoizedState;\n    workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.\n\n    workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so\n    // it cannot be shared with the current fiber.\n\n    var currentDependencies = current.dependencies;\n    workInProgress.dependencies = currentDependencies === null ? null : {\n      lanes: currentDependencies.lanes,\n      firstContext: currentDependencies.firstContext\n    };\n\n    {\n      // Note: We don't reset the actualTime counts. It's useful to accumulate\n      // actual time across multiple render passes.\n      workInProgress.selfBaseDuration = current.selfBaseDuration;\n      workInProgress.treeBaseDuration = current.treeBaseDuration;\n    }\n  }\n\n  return workInProgress;\n}\nfunction createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) {\n  var mode;\n\n  if (tag === ConcurrentRoot) {\n    mode = ConcurrentMode;\n\n    if (isStrictMode === true) {\n      mode |= StrictLegacyMode;\n\n      {\n        mode |= StrictEffectsMode;\n      }\n    }\n  } else {\n    mode = NoMode;\n  }\n\n  if ( isDevToolsPresent) {\n    // Always collect profile timings when DevTools are present.\n    // This enables DevTools to start capturing timing at any point–\n    // Without some nodes in the tree having empty base times.\n    mode |= ProfileMode;\n  }\n\n  return createFiber(HostRoot, null, null, mode);\n}\nfunction createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, lanes) {\n  var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.\n\n  var resolvedType = type;\n\n  if (typeof type === 'function') {\n    if (shouldConstruct$1(type)) {\n      fiberTag = ClassComponent;\n\n      {\n        resolvedType = resolveClassForHotReloading(resolvedType);\n      }\n    } else {\n      {\n        resolvedType = resolveFunctionForHotReloading(resolvedType);\n      }\n    }\n  } else if (typeof type === 'string') {\n    fiberTag = HostComponent;\n  } else {\n    getTag: switch (type) {\n      case REACT_FRAGMENT_TYPE:\n        return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n\n      case REACT_STRICT_MODE_TYPE:\n        fiberTag = Mode;\n        mode |= StrictLegacyMode;\n\n        if ( (mode & ConcurrentMode) !== NoMode) {\n          // Strict effects should never run on legacy roots\n          mode |= StrictEffectsMode;\n        }\n\n        break;\n\n      case REACT_PROFILER_TYPE:\n        return createFiberFromProfiler(pendingProps, mode, lanes, key);\n\n      case REACT_SUSPENSE_TYPE:\n        return createFiberFromSuspense(pendingProps, mode, lanes, key);\n\n      case REACT_SUSPENSE_LIST_TYPE:\n        return createFiberFromSuspenseList(pendingProps, mode, lanes, key);\n\n      case REACT_OFFSCREEN_TYPE:\n        return createFiberFromOffscreen(pendingProps, mode, lanes, key);\n\n      case REACT_LEGACY_HIDDEN_TYPE:\n\n      // eslint-disable-next-line no-fallthrough\n\n      case REACT_SCOPE_TYPE:\n\n      // eslint-disable-next-line no-fallthrough\n\n      case REACT_CACHE_TYPE:\n\n      // eslint-disable-next-line no-fallthrough\n\n      case REACT_TRACING_MARKER_TYPE:\n\n      // eslint-disable-next-line no-fallthrough\n\n      case REACT_DEBUG_TRACING_MODE_TYPE:\n\n      // eslint-disable-next-line no-fallthrough\n\n      default:\n        {\n          if (typeof type === 'object' && type !== null) {\n            switch (type.$$typeof) {\n              case REACT_PROVIDER_TYPE:\n                fiberTag = ContextProvider;\n                break getTag;\n\n              case REACT_CONTEXT_TYPE:\n                // This is a consumer\n                fiberTag = ContextConsumer;\n                break getTag;\n\n              case REACT_FORWARD_REF_TYPE:\n                fiberTag = ForwardRef;\n\n                {\n                  resolvedType = resolveForwardRefForHotReloading(resolvedType);\n                }\n\n                break getTag;\n\n              case REACT_MEMO_TYPE:\n                fiberTag = MemoComponent;\n                break getTag;\n\n              case REACT_LAZY_TYPE:\n                fiberTag = LazyComponent;\n                resolvedType = null;\n                break getTag;\n            }\n          }\n\n          var info = '';\n\n          {\n            if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n              info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n            }\n\n            var ownerName = owner ? getComponentNameFromFiber(owner) : null;\n\n            if (ownerName) {\n              info += '\\n\\nCheck the render method of `' + ownerName + '`.';\n            }\n          }\n\n          throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + (\"but got: \" + (type == null ? type : typeof type) + \".\" + info));\n        }\n    }\n  }\n\n  var fiber = createFiber(fiberTag, pendingProps, key, mode);\n  fiber.elementType = type;\n  fiber.type = resolvedType;\n  fiber.lanes = lanes;\n\n  {\n    fiber._debugOwner = owner;\n  }\n\n  return fiber;\n}\nfunction createFiberFromElement(element, mode, lanes) {\n  var owner = null;\n\n  {\n    owner = element._owner;\n  }\n\n  var type = element.type;\n  var key = element.key;\n  var pendingProps = element.props;\n  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);\n\n  {\n    fiber._debugSource = element._source;\n    fiber._debugOwner = element._owner;\n  }\n\n  return fiber;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n  var fiber = createFiber(Fragment, elements, key, mode);\n  fiber.lanes = lanes;\n  return fiber;\n}\n\nfunction createFiberFromProfiler(pendingProps, mode, lanes, key) {\n  {\n    if (typeof pendingProps.id !== 'string') {\n      error('Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id);\n    }\n  }\n\n  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);\n  fiber.elementType = REACT_PROFILER_TYPE;\n  fiber.lanes = lanes;\n\n  {\n    fiber.stateNode = {\n      effectDuration: 0,\n      passiveEffectDuration: 0\n    };\n  }\n\n  return fiber;\n}\n\nfunction createFiberFromSuspense(pendingProps, mode, lanes, key) {\n  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);\n  fiber.elementType = REACT_SUSPENSE_TYPE;\n  fiber.lanes = lanes;\n  return fiber;\n}\nfunction createFiberFromSuspenseList(pendingProps, mode, lanes, key) {\n  var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);\n  fiber.elementType = REACT_SUSPENSE_LIST_TYPE;\n  fiber.lanes = lanes;\n  return fiber;\n}\nfunction createFiberFromOffscreen(pendingProps, mode, lanes, key) {\n  var fiber = createFiber(OffscreenComponent, pendingProps, key, mode);\n  fiber.elementType = REACT_OFFSCREEN_TYPE;\n  fiber.lanes = lanes;\n  var primaryChildInstance = {\n    isHidden: false\n  };\n  fiber.stateNode = primaryChildInstance;\n  return fiber;\n}\nfunction createFiberFromText(content, mode, lanes) {\n  var fiber = createFiber(HostText, content, null, mode);\n  fiber.lanes = lanes;\n  return fiber;\n}\nfunction createFiberFromHostInstanceForDeletion() {\n  var fiber = createFiber(HostComponent, null, null, NoMode);\n  fiber.elementType = 'DELETED';\n  return fiber;\n}\nfunction createFiberFromDehydratedFragment(dehydratedNode) {\n  var fiber = createFiber(DehydratedFragment, null, null, NoMode);\n  fiber.stateNode = dehydratedNode;\n  return fiber;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n  var pendingProps = portal.children !== null ? portal.children : [];\n  var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);\n  fiber.lanes = lanes;\n  fiber.stateNode = {\n    containerInfo: portal.containerInfo,\n    pendingChildren: null,\n    // Used by persistent updates\n    implementation: portal.implementation\n  };\n  return fiber;\n} // Used for stashing WIP properties to replay failed work in DEV.\n\nfunction assignFiberPropertiesInDEV(target, source) {\n  if (target === null) {\n    // This Fiber's initial properties will always be overwritten.\n    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.\n    target = createFiber(IndeterminateComponent, null, null, NoMode);\n  } // This is intentionally written as a list of all properties.\n  // We tried to use Object.assign() instead but this is called in\n  // the hottest path, and Object.assign() was too slow:\n  // https://github.com/facebook/react/issues/12502\n  // This code is DEV-only so size is not a concern.\n\n\n  target.tag = source.tag;\n  target.key = source.key;\n  target.elementType = source.elementType;\n  target.type = source.type;\n  target.stateNode = source.stateNode;\n  target.return = source.return;\n  target.child = source.child;\n  target.sibling = source.sibling;\n  target.index = source.index;\n  target.ref = source.ref;\n  target.pendingProps = source.pendingProps;\n  target.memoizedProps = source.memoizedProps;\n  target.updateQueue = source.updateQueue;\n  target.memoizedState = source.memoizedState;\n  target.dependencies = source.dependencies;\n  target.mode = source.mode;\n  target.flags = source.flags;\n  target.subtreeFlags = source.subtreeFlags;\n  target.deletions = source.deletions;\n  target.lanes = source.lanes;\n  target.childLanes = source.childLanes;\n  target.alternate = source.alternate;\n\n  {\n    target.actualDuration = source.actualDuration;\n    target.actualStartTime = source.actualStartTime;\n    target.selfBaseDuration = source.selfBaseDuration;\n    target.treeBaseDuration = source.treeBaseDuration;\n  }\n\n  target._debugSource = source._debugSource;\n  target._debugOwner = source._debugOwner;\n  target._debugNeedsRemount = source._debugNeedsRemount;\n  target._debugHookTypes = source._debugHookTypes;\n  return target;\n}\n\nfunction FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) {\n  this.tag = tag;\n  this.containerInfo = containerInfo;\n  this.pendingChildren = null;\n  this.current = null;\n  this.pingCache = null;\n  this.finishedWork = null;\n  this.timeoutHandle = noTimeout;\n  this.context = null;\n  this.pendingContext = null;\n  this.callbackNode = null;\n  this.callbackPriority = NoLane;\n  this.eventTimes = createLaneMap(NoLanes);\n  this.expirationTimes = createLaneMap(NoTimestamp);\n  this.pendingLanes = NoLanes;\n  this.suspendedLanes = NoLanes;\n  this.pingedLanes = NoLanes;\n  this.expiredLanes = NoLanes;\n  this.mutableReadLanes = NoLanes;\n  this.finishedLanes = NoLanes;\n  this.entangledLanes = NoLanes;\n  this.entanglements = createLaneMap(NoLanes);\n  this.identifierPrefix = identifierPrefix;\n  this.onRecoverableError = onRecoverableError;\n\n  {\n    this.mutableSourceEagerHydrationData = null;\n  }\n\n  {\n    this.effectDuration = 0;\n    this.passiveEffectDuration = 0;\n  }\n\n  {\n    this.memoizedUpdaters = new Set();\n    var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = [];\n\n    for (var _i = 0; _i < TotalLanes; _i++) {\n      pendingUpdatersLaneMap.push(new Set());\n    }\n  }\n\n  {\n    switch (tag) {\n      case ConcurrentRoot:\n        this._debugRootType = hydrate ? 'hydrateRoot()' : 'createRoot()';\n        break;\n\n      case LegacyRoot:\n        this._debugRootType = hydrate ? 'hydrate()' : 'render()';\n        break;\n    }\n  }\n}\n\nfunction createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the\n// host config, but because they are passed in at runtime, we have to thread\n// them through the root constructor. Perhaps we should put them all into a\n// single type, like a DynamicHostConfig that is defined by the renderer.\nidentifierPrefix, onRecoverableError, transitionCallbacks) {\n  var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);\n  // stateNode is any.\n\n\n  var uninitializedFiber = createHostRootFiber(tag, isStrictMode);\n  root.current = uninitializedFiber;\n  uninitializedFiber.stateNode = root;\n\n  {\n    var _initialState = {\n      element: initialChildren,\n      isDehydrated: hydrate,\n      cache: null,\n      // not enabled yet\n      transitions: null,\n      pendingSuspenseBoundaries: null\n    };\n    uninitializedFiber.memoizedState = _initialState;\n  }\n\n  initializeUpdateQueue(uninitializedFiber);\n  return root;\n}\n\nvar ReactVersion = '18.3.1';\n\nfunction createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.\nimplementation) {\n  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n  {\n    checkKeyStringCoercion(key);\n  }\n\n  return {\n    // This tag allow us to uniquely identify this as a React Portal\n    $$typeof: REACT_PORTAL_TYPE,\n    key: key == null ? null : '' + key,\n    children: children,\n    containerInfo: containerInfo,\n    implementation: implementation\n  };\n}\n\nvar didWarnAboutNestedUpdates;\nvar didWarnAboutFindNodeInStrictMode;\n\n{\n  didWarnAboutNestedUpdates = false;\n  didWarnAboutFindNodeInStrictMode = {};\n}\n\nfunction getContextForSubtree(parentComponent) {\n  if (!parentComponent) {\n    return emptyContextObject;\n  }\n\n  var fiber = get(parentComponent);\n  var parentContext = findCurrentUnmaskedContext(fiber);\n\n  if (fiber.tag === ClassComponent) {\n    var Component = fiber.type;\n\n    if (isContextProvider(Component)) {\n      return processChildContext(fiber, Component, parentContext);\n    }\n  }\n\n  return parentContext;\n}\n\nfunction findHostInstanceWithWarning(component, methodName) {\n  {\n    var fiber = get(component);\n\n    if (fiber === undefined) {\n      if (typeof component.render === 'function') {\n        throw new Error('Unable to find node on an unmounted component.');\n      } else {\n        var keys = Object.keys(component).join(',');\n        throw new Error(\"Argument appears to not be a ReactComponent. Keys: \" + keys);\n      }\n    }\n\n    var hostFiber = findCurrentHostFiber(fiber);\n\n    if (hostFiber === null) {\n      return null;\n    }\n\n    if (hostFiber.mode & StrictLegacyMode) {\n      var componentName = getComponentNameFromFiber(fiber) || 'Component';\n\n      if (!didWarnAboutFindNodeInStrictMode[componentName]) {\n        didWarnAboutFindNodeInStrictMode[componentName] = true;\n        var previousFiber = current;\n\n        try {\n          setCurrentFiber(hostFiber);\n\n          if (fiber.mode & StrictLegacyMode) {\n            error('%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', methodName, methodName, componentName);\n          } else {\n            error('%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', methodName, methodName, componentName);\n          }\n        } finally {\n          // Ideally this should reset to previous but this shouldn't be called in\n          // render and there's another warning for that anyway.\n          if (previousFiber) {\n            setCurrentFiber(previousFiber);\n          } else {\n            resetCurrentFiber();\n          }\n        }\n      }\n    }\n\n    return hostFiber.stateNode;\n  }\n}\n\nfunction createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {\n  var hydrate = false;\n  var initialChildren = null;\n  return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n}\nfunction createHydrationContainer(initialChildren, // TODO: Remove `callback` when we delete legacy mode.\ncallback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {\n  var hydrate = true;\n  var root = createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); // TODO: Move this to FiberRoot constructor\n\n  root.context = getContextForSubtree(null); // Schedule the initial render. In a hydration root, this is different from\n  // a regular update because the initial render must match was was rendered\n  // on the server.\n  // NOTE: This update intentionally doesn't have a payload. We're only using\n  // the update to schedule work on the root fiber (and, for legacy roots, to\n  // enqueue the callback if one is provided).\n\n  var current = root.current;\n  var eventTime = requestEventTime();\n  var lane = requestUpdateLane(current);\n  var update = createUpdate(eventTime, lane);\n  update.callback = callback !== undefined && callback !== null ? callback : null;\n  enqueueUpdate(current, update, lane);\n  scheduleInitialHydrationOnRoot(root, lane, eventTime);\n  return root;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n  {\n    onScheduleRoot(container, element);\n  }\n\n  var current$1 = container.current;\n  var eventTime = requestEventTime();\n  var lane = requestUpdateLane(current$1);\n\n  {\n    markRenderScheduled(lane);\n  }\n\n  var context = getContextForSubtree(parentComponent);\n\n  if (container.context === null) {\n    container.context = context;\n  } else {\n    container.pendingContext = context;\n  }\n\n  {\n    if (isRendering && current !== null && !didWarnAboutNestedUpdates) {\n      didWarnAboutNestedUpdates = true;\n\n      error('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.\\n\\n' + 'Check the render method of %s.', getComponentNameFromFiber(current) || 'Unknown');\n    }\n  }\n\n  var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property\n  // being called \"element\".\n\n  update.payload = {\n    element: element\n  };\n  callback = callback === undefined ? null : callback;\n\n  if (callback !== null) {\n    {\n      if (typeof callback !== 'function') {\n        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);\n      }\n    }\n\n    update.callback = callback;\n  }\n\n  var root = enqueueUpdate(current$1, update, lane);\n\n  if (root !== null) {\n    scheduleUpdateOnFiber(root, current$1, lane, eventTime);\n    entangleTransitions(root, current$1, lane);\n  }\n\n  return lane;\n}\nfunction getPublicRootInstance(container) {\n  var containerFiber = container.current;\n\n  if (!containerFiber.child) {\n    return null;\n  }\n\n  switch (containerFiber.child.tag) {\n    case HostComponent:\n      return getPublicInstance(containerFiber.child.stateNode);\n\n    default:\n      return containerFiber.child.stateNode;\n  }\n}\nfunction attemptSynchronousHydration$1(fiber) {\n  switch (fiber.tag) {\n    case HostRoot:\n      {\n        var root = fiber.stateNode;\n\n        if (isRootDehydrated(root)) {\n          // Flush the first scheduled \"update\".\n          var lanes = getHighestPriorityPendingLanes(root);\n          flushRoot(root, lanes);\n        }\n\n        break;\n      }\n\n    case SuspenseComponent:\n      {\n        flushSync(function () {\n          var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n          if (root !== null) {\n            var eventTime = requestEventTime();\n            scheduleUpdateOnFiber(root, fiber, SyncLane, eventTime);\n          }\n        }); // If we're still blocked after this, we need to increase\n        // the priority of any promises resolving within this\n        // boundary so that they next attempt also has higher pri.\n\n        var retryLane = SyncLane;\n        markRetryLaneIfNotHydrated(fiber, retryLane);\n        break;\n      }\n  }\n}\n\nfunction markRetryLaneImpl(fiber, retryLane) {\n  var suspenseState = fiber.memoizedState;\n\n  if (suspenseState !== null && suspenseState.dehydrated !== null) {\n    suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);\n  }\n} // Increases the priority of thenables when they resolve within this boundary.\n\n\nfunction markRetryLaneIfNotHydrated(fiber, retryLane) {\n  markRetryLaneImpl(fiber, retryLane);\n  var alternate = fiber.alternate;\n\n  if (alternate) {\n    markRetryLaneImpl(alternate, retryLane);\n  }\n}\nfunction attemptContinuousHydration$1(fiber) {\n  if (fiber.tag !== SuspenseComponent) {\n    // We ignore HostRoots here because we can't increase\n    // their priority and they should not suspend on I/O,\n    // since you have to wrap anything that might suspend in\n    // Suspense.\n    return;\n  }\n\n  var lane = SelectiveHydrationLane;\n  var root = enqueueConcurrentRenderForLane(fiber, lane);\n\n  if (root !== null) {\n    var eventTime = requestEventTime();\n    scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n  }\n\n  markRetryLaneIfNotHydrated(fiber, lane);\n}\nfunction attemptHydrationAtCurrentPriority$1(fiber) {\n  if (fiber.tag !== SuspenseComponent) {\n    // We ignore HostRoots here because we can't increase\n    // their priority other than synchronously flush it.\n    return;\n  }\n\n  var lane = requestUpdateLane(fiber);\n  var root = enqueueConcurrentRenderForLane(fiber, lane);\n\n  if (root !== null) {\n    var eventTime = requestEventTime();\n    scheduleUpdateOnFiber(root, fiber, lane, eventTime);\n  }\n\n  markRetryLaneIfNotHydrated(fiber, lane);\n}\nfunction findHostInstanceWithNoPortals(fiber) {\n  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);\n\n  if (hostFiber === null) {\n    return null;\n  }\n\n  return hostFiber.stateNode;\n}\n\nvar shouldErrorImpl = function (fiber) {\n  return null;\n};\n\nfunction shouldError(fiber) {\n  return shouldErrorImpl(fiber);\n}\n\nvar shouldSuspendImpl = function (fiber) {\n  return false;\n};\n\nfunction shouldSuspend(fiber) {\n  return shouldSuspendImpl(fiber);\n}\nvar overrideHookState = null;\nvar overrideHookStateDeletePath = null;\nvar overrideHookStateRenamePath = null;\nvar overrideProps = null;\nvar overridePropsDeletePath = null;\nvar overridePropsRenamePath = null;\nvar scheduleUpdate = null;\nvar setErrorHandler = null;\nvar setSuspenseHandler = null;\n\n{\n  var copyWithDeleteImpl = function (obj, path, index) {\n    var key = path[index];\n    var updated = isArray(obj) ? obj.slice() : assign({}, obj);\n\n    if (index + 1 === path.length) {\n      if (isArray(updated)) {\n        updated.splice(key, 1);\n      } else {\n        delete updated[key];\n      }\n\n      return updated;\n    } // $FlowFixMe number or string is fine here\n\n\n    updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);\n    return updated;\n  };\n\n  var copyWithDelete = function (obj, path) {\n    return copyWithDeleteImpl(obj, path, 0);\n  };\n\n  var copyWithRenameImpl = function (obj, oldPath, newPath, index) {\n    var oldKey = oldPath[index];\n    var updated = isArray(obj) ? obj.slice() : assign({}, obj);\n\n    if (index + 1 === oldPath.length) {\n      var newKey = newPath[index]; // $FlowFixMe number or string is fine here\n\n      updated[newKey] = updated[oldKey];\n\n      if (isArray(updated)) {\n        updated.splice(oldKey, 1);\n      } else {\n        delete updated[oldKey];\n      }\n    } else {\n      // $FlowFixMe number or string is fine here\n      updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here\n      obj[oldKey], oldPath, newPath, index + 1);\n    }\n\n    return updated;\n  };\n\n  var copyWithRename = function (obj, oldPath, newPath) {\n    if (oldPath.length !== newPath.length) {\n      warn('copyWithRename() expects paths of the same length');\n\n      return;\n    } else {\n      for (var i = 0; i < newPath.length - 1; i++) {\n        if (oldPath[i] !== newPath[i]) {\n          warn('copyWithRename() expects paths to be the same except for the deepest key');\n\n          return;\n        }\n      }\n    }\n\n    return copyWithRenameImpl(obj, oldPath, newPath, 0);\n  };\n\n  var copyWithSetImpl = function (obj, path, index, value) {\n    if (index >= path.length) {\n      return value;\n    }\n\n    var key = path[index];\n    var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here\n\n    updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);\n    return updated;\n  };\n\n  var copyWithSet = function (obj, path, value) {\n    return copyWithSetImpl(obj, path, 0, value);\n  };\n\n  var findHook = function (fiber, id) {\n    // For now, the \"id\" of stateful hooks is just the stateful hook index.\n    // This may change in the future with e.g. nested hooks.\n    var currentHook = fiber.memoizedState;\n\n    while (currentHook !== null && id > 0) {\n      currentHook = currentHook.next;\n      id--;\n    }\n\n    return currentHook;\n  }; // Support DevTools editable values for useState and useReducer.\n\n\n  overrideHookState = function (fiber, id, path, value) {\n    var hook = findHook(fiber, id);\n\n    if (hook !== null) {\n      var newState = copyWithSet(hook.memoizedState, path, value);\n      hook.memoizedState = newState;\n      hook.baseState = newState; // We aren't actually adding an update to the queue,\n      // because there is no update we can add for useReducer hooks that won't trigger an error.\n      // (There's no appropriate action type for DevTools overrides.)\n      // As a result though, React will see the scheduled update as a noop and bailout.\n      // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n      fiber.memoizedProps = assign({}, fiber.memoizedProps);\n      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n      if (root !== null) {\n        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n      }\n    }\n  };\n\n  overrideHookStateDeletePath = function (fiber, id, path) {\n    var hook = findHook(fiber, id);\n\n    if (hook !== null) {\n      var newState = copyWithDelete(hook.memoizedState, path);\n      hook.memoizedState = newState;\n      hook.baseState = newState; // We aren't actually adding an update to the queue,\n      // because there is no update we can add for useReducer hooks that won't trigger an error.\n      // (There's no appropriate action type for DevTools overrides.)\n      // As a result though, React will see the scheduled update as a noop and bailout.\n      // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n      fiber.memoizedProps = assign({}, fiber.memoizedProps);\n      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n      if (root !== null) {\n        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n      }\n    }\n  };\n\n  overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {\n    var hook = findHook(fiber, id);\n\n    if (hook !== null) {\n      var newState = copyWithRename(hook.memoizedState, oldPath, newPath);\n      hook.memoizedState = newState;\n      hook.baseState = newState; // We aren't actually adding an update to the queue,\n      // because there is no update we can add for useReducer hooks that won't trigger an error.\n      // (There's no appropriate action type for DevTools overrides.)\n      // As a result though, React will see the scheduled update as a noop and bailout.\n      // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n      fiber.memoizedProps = assign({}, fiber.memoizedProps);\n      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n      if (root !== null) {\n        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n      }\n    }\n  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.\n\n\n  overrideProps = function (fiber, path, value) {\n    fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);\n\n    if (fiber.alternate) {\n      fiber.alternate.pendingProps = fiber.pendingProps;\n    }\n\n    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n    }\n  };\n\n  overridePropsDeletePath = function (fiber, path) {\n    fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);\n\n    if (fiber.alternate) {\n      fiber.alternate.pendingProps = fiber.pendingProps;\n    }\n\n    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n    }\n  };\n\n  overridePropsRenamePath = function (fiber, oldPath, newPath) {\n    fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);\n\n    if (fiber.alternate) {\n      fiber.alternate.pendingProps = fiber.pendingProps;\n    }\n\n    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n    }\n  };\n\n  scheduleUpdate = function (fiber) {\n    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);\n\n    if (root !== null) {\n      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);\n    }\n  };\n\n  setErrorHandler = function (newShouldErrorImpl) {\n    shouldErrorImpl = newShouldErrorImpl;\n  };\n\n  setSuspenseHandler = function (newShouldSuspendImpl) {\n    shouldSuspendImpl = newShouldSuspendImpl;\n  };\n}\n\nfunction findHostInstanceByFiber(fiber) {\n  var hostFiber = findCurrentHostFiber(fiber);\n\n  if (hostFiber === null) {\n    return null;\n  }\n\n  return hostFiber.stateNode;\n}\n\nfunction emptyFindFiberByHostInstance(instance) {\n  return null;\n}\n\nfunction getCurrentFiberForDevTools() {\n  return current;\n}\n\nfunction injectIntoDevTools(devToolsConfig) {\n  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\n  return injectInternals({\n    bundleType: devToolsConfig.bundleType,\n    version: devToolsConfig.version,\n    rendererPackageName: devToolsConfig.rendererPackageName,\n    rendererConfig: devToolsConfig.rendererConfig,\n    overrideHookState: overrideHookState,\n    overrideHookStateDeletePath: overrideHookStateDeletePath,\n    overrideHookStateRenamePath: overrideHookStateRenamePath,\n    overrideProps: overrideProps,\n    overridePropsDeletePath: overridePropsDeletePath,\n    overridePropsRenamePath: overridePropsRenamePath,\n    setErrorHandler: setErrorHandler,\n    setSuspenseHandler: setSuspenseHandler,\n    scheduleUpdate: scheduleUpdate,\n    currentDispatcherRef: ReactCurrentDispatcher,\n    findHostInstanceByFiber: findHostInstanceByFiber,\n    findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,\n    // React Refresh\n    findHostInstancesForRefresh:  findHostInstancesForRefresh ,\n    scheduleRefresh:  scheduleRefresh ,\n    scheduleRoot:  scheduleRoot ,\n    setRefreshHandler:  setRefreshHandler ,\n    // Enables DevTools to append owner stacks to error messages in DEV mode.\n    getCurrentFiber:  getCurrentFiberForDevTools ,\n    // Enables DevTools to detect reconciler version rather than renderer version\n    // which may not match for third party renderers.\n    reconcilerVersion: ReactVersion\n  });\n}\n\n/* global reportError */\n\nvar defaultOnRecoverableError = typeof reportError === 'function' ? // In modern browsers, reportError will dispatch an error event,\n// emulating an uncaught JavaScript error.\nreportError : function (error) {\n  // In older browsers and test environments, fallback to console.error.\n  // eslint-disable-next-line react-internal/no-production-logging\n  console['error'](error);\n};\n\nfunction ReactDOMRoot(internalRoot) {\n  this._internalRoot = internalRoot;\n}\n\nReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function (children) {\n  var root = this._internalRoot;\n\n  if (root === null) {\n    throw new Error('Cannot update an unmounted root.');\n  }\n\n  {\n    if (typeof arguments[1] === 'function') {\n      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n    } else if (isValidContainer(arguments[1])) {\n      error('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.\");\n    } else if (typeof arguments[1] !== 'undefined') {\n      error('You passed a second argument to root.render(...) but it only accepts ' + 'one argument.');\n    }\n\n    var container = root.containerInfo;\n\n    if (container.nodeType !== COMMENT_NODE) {\n      var hostInstance = findHostInstanceWithNoPortals(root.current);\n\n      if (hostInstance) {\n        if (hostInstance.parentNode !== container) {\n          error('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.\");\n        }\n      }\n    }\n  }\n\n  updateContainer(children, root, null, null);\n};\n\nReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function () {\n  {\n    if (typeof arguments[0] === 'function') {\n      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n    }\n  }\n\n  var root = this._internalRoot;\n\n  if (root !== null) {\n    this._internalRoot = null;\n    var container = root.containerInfo;\n\n    {\n      if (isAlreadyRendering()) {\n        error('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.');\n      }\n    }\n\n    flushSync(function () {\n      updateContainer(null, root, null, null);\n    });\n    unmarkContainerAsRoot(container);\n  }\n};\n\nfunction createRoot(container, options) {\n  if (!isValidContainer(container)) {\n    throw new Error('createRoot(...): Target container is not a DOM element.');\n  }\n\n  warnIfReactDOMContainerInDEV(container);\n  var isStrictMode = false;\n  var concurrentUpdatesByDefaultOverride = false;\n  var identifierPrefix = '';\n  var onRecoverableError = defaultOnRecoverableError;\n  var transitionCallbacks = null;\n\n  if (options !== null && options !== undefined) {\n    {\n      if (options.hydrate) {\n        warn('hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.');\n      } else {\n        if (typeof options === 'object' && options !== null && options.$$typeof === REACT_ELEMENT_TYPE) {\n          error('You passed a JSX element to createRoot. You probably meant to ' + 'call root.render instead. ' + 'Example usage:\\n\\n' + '  let root = createRoot(domContainer);\\n' + '  root.render(<App />);');\n        }\n      }\n    }\n\n    if (options.unstable_strictMode === true) {\n      isStrictMode = true;\n    }\n\n    if (options.identifierPrefix !== undefined) {\n      identifierPrefix = options.identifierPrefix;\n    }\n\n    if (options.onRecoverableError !== undefined) {\n      onRecoverableError = options.onRecoverableError;\n    }\n\n    if (options.transitionCallbacks !== undefined) {\n      transitionCallbacks = options.transitionCallbacks;\n    }\n  }\n\n  var root = createContainer(container, ConcurrentRoot, null, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n  markContainerAsRoot(root.current, container);\n  var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n  listenToAllSupportedEvents(rootContainerElement);\n  return new ReactDOMRoot(root);\n}\n\nfunction ReactDOMHydrationRoot(internalRoot) {\n  this._internalRoot = internalRoot;\n}\n\nfunction scheduleHydration(target) {\n  if (target) {\n    queueExplicitHydrationTarget(target);\n  }\n}\n\nReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;\nfunction hydrateRoot(container, initialChildren, options) {\n  if (!isValidContainer(container)) {\n    throw new Error('hydrateRoot(...): Target container is not a DOM element.');\n  }\n\n  warnIfReactDOMContainerInDEV(container);\n\n  {\n    if (initialChildren === undefined) {\n      error('Must provide initial children as second argument to hydrateRoot. ' + 'Example usage: hydrateRoot(domContainer, <App />)');\n    }\n  } // For now we reuse the whole bag of options since they contain\n  // the hydration callbacks.\n\n\n  var hydrationCallbacks = options != null ? options : null; // TODO: Delete this option\n\n  var mutableSources = options != null && options.hydratedSources || null;\n  var isStrictMode = false;\n  var concurrentUpdatesByDefaultOverride = false;\n  var identifierPrefix = '';\n  var onRecoverableError = defaultOnRecoverableError;\n\n  if (options !== null && options !== undefined) {\n    if (options.unstable_strictMode === true) {\n      isStrictMode = true;\n    }\n\n    if (options.identifierPrefix !== undefined) {\n      identifierPrefix = options.identifierPrefix;\n    }\n\n    if (options.onRecoverableError !== undefined) {\n      onRecoverableError = options.onRecoverableError;\n    }\n  }\n\n  var root = createHydrationContainer(initialChildren, null, container, ConcurrentRoot, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);\n  markContainerAsRoot(root.current, container); // This can't be a comment node since hydration doesn't work on comment nodes anyway.\n\n  listenToAllSupportedEvents(container);\n\n  if (mutableSources) {\n    for (var i = 0; i < mutableSources.length; i++) {\n      var mutableSource = mutableSources[i];\n      registerMutableSourceForHydration(root, mutableSource);\n    }\n  }\n\n  return new ReactDOMHydrationRoot(root);\n}\nfunction isValidContainer(node) {\n  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || !disableCommentsAsDOMContainers  ));\n} // TODO: Remove this function which also includes comment nodes.\n// We only use it in places that are currently more relaxed.\n\nfunction isValidContainerLegacy(node) {\n  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));\n}\n\nfunction warnIfReactDOMContainerInDEV(container) {\n  {\n    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {\n      error('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.');\n    }\n\n    if (isContainerMarkedAsRoot(container)) {\n      if (container._reactRootContainer) {\n        error('You are calling ReactDOMClient.createRoot() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.');\n      } else {\n        error('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.');\n      }\n    }\n  }\n}\n\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;\nvar topLevelUpdateWarnings;\n\n{\n  topLevelUpdateWarnings = function (container) {\n    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {\n      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer.current);\n\n      if (hostInstance) {\n        if (hostInstance.parentNode !== container) {\n          error('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.');\n        }\n      }\n    }\n\n    var isRootRenderedBySomeReact = !!container._reactRootContainer;\n    var rootEl = getReactRootElementInContainer(container);\n    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));\n\n    if (hasNonRootReactChild && !isRootRenderedBySomeReact) {\n      error('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.');\n    }\n\n    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {\n      error('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.');\n    }\n  };\n}\n\nfunction getReactRootElementInContainer(container) {\n  if (!container) {\n    return null;\n  }\n\n  if (container.nodeType === DOCUMENT_NODE) {\n    return container.documentElement;\n  } else {\n    return container.firstChild;\n  }\n}\n\nfunction noopOnRecoverableError() {// This isn't reachable because onRecoverableError isn't called in the\n  // legacy API.\n}\n\nfunction legacyCreateRootFromDOMContainer(container, initialChildren, parentComponent, callback, isHydrationContainer) {\n  if (isHydrationContainer) {\n    if (typeof callback === 'function') {\n      var originalCallback = callback;\n\n      callback = function () {\n        var instance = getPublicRootInstance(root);\n        originalCallback.call(instance);\n      };\n    }\n\n    var root = createHydrationContainer(initialChildren, callback, container, LegacyRoot, null, // hydrationCallbacks\n    false, // isStrictMode\n    false, // concurrentUpdatesByDefaultOverride,\n    '', // identifierPrefix\n    noopOnRecoverableError);\n    container._reactRootContainer = root;\n    markContainerAsRoot(root.current, container);\n    var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n    listenToAllSupportedEvents(rootContainerElement);\n    flushSync();\n    return root;\n  } else {\n    // First clear any existing content.\n    var rootSibling;\n\n    while (rootSibling = container.lastChild) {\n      container.removeChild(rootSibling);\n    }\n\n    if (typeof callback === 'function') {\n      var _originalCallback = callback;\n\n      callback = function () {\n        var instance = getPublicRootInstance(_root);\n\n        _originalCallback.call(instance);\n      };\n    }\n\n    var _root = createContainer(container, LegacyRoot, null, // hydrationCallbacks\n    false, // isStrictMode\n    false, // concurrentUpdatesByDefaultOverride,\n    '', // identifierPrefix\n    noopOnRecoverableError);\n\n    container._reactRootContainer = _root;\n    markContainerAsRoot(_root.current, container);\n\n    var _rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;\n\n    listenToAllSupportedEvents(_rootContainerElement); // Initial mount should not be batched.\n\n    flushSync(function () {\n      updateContainer(initialChildren, _root, parentComponent, callback);\n    });\n    return _root;\n  }\n}\n\nfunction warnOnInvalidCallback$1(callback, callerName) {\n  {\n    if (callback !== null && typeof callback !== 'function') {\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  }\n}\n\nfunction legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {\n  {\n    topLevelUpdateWarnings(container);\n    warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');\n  }\n\n  var maybeRoot = container._reactRootContainer;\n  var root;\n\n  if (!maybeRoot) {\n    // Initial mount\n    root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);\n  } else {\n    root = maybeRoot;\n\n    if (typeof callback === 'function') {\n      var originalCallback = callback;\n\n      callback = function () {\n        var instance = getPublicRootInstance(root);\n        originalCallback.call(instance);\n      };\n    } // Update\n\n\n    updateContainer(children, root, parentComponent, callback);\n  }\n\n  return getPublicRootInstance(root);\n}\n\nvar didWarnAboutFindDOMNode = false;\nfunction findDOMNode(componentOrElement) {\n  {\n    if (!didWarnAboutFindDOMNode) {\n      didWarnAboutFindDOMNode = true;\n\n      error('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');\n    }\n\n    var owner = ReactCurrentOwner$3.current;\n\n    if (owner !== null && owner.stateNode !== null) {\n      var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;\n\n      if (!warnedAboutRefsInRender) {\n        error('%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.', getComponentNameFromType(owner.type) || 'A component');\n      }\n\n      owner.stateNode._warnedAboutRefsInRender = true;\n    }\n  }\n\n  if (componentOrElement == null) {\n    return null;\n  }\n\n  if (componentOrElement.nodeType === ELEMENT_NODE) {\n    return componentOrElement;\n  }\n\n  {\n    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');\n  }\n}\nfunction hydrate(element, container, callback) {\n  {\n    error('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');\n  }\n\n  if (!isValidContainerLegacy(container)) {\n    throw new Error('Target container is not a DOM element.');\n  }\n\n  {\n    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n    if (isModernRoot) {\n      error('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)?');\n    }\n  } // TODO: throw or warn if we couldn't hydrate?\n\n\n  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);\n}\nfunction render(element, container, callback) {\n  {\n    error('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');\n  }\n\n  if (!isValidContainerLegacy(container)) {\n    throw new Error('Target container is not a DOM element.');\n  }\n\n  {\n    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n    if (isModernRoot) {\n      error('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)?');\n    }\n  }\n\n  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);\n}\nfunction unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {\n  {\n    error('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');\n  }\n\n  if (!isValidContainerLegacy(containerNode)) {\n    throw new Error('Target container is not a DOM element.');\n  }\n\n  if (parentComponent == null || !has(parentComponent)) {\n    throw new Error('parentComponent must be a valid React Component');\n  }\n\n  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);\n}\nvar didWarnAboutUnmountComponentAtNode = false;\nfunction unmountComponentAtNode(container) {\n  {\n    if (!didWarnAboutUnmountComponentAtNode) {\n      didWarnAboutUnmountComponentAtNode = true;\n\n      error('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');\n    }\n  }\n\n  if (!isValidContainerLegacy(container)) {\n    throw new Error('unmountComponentAtNode(...): Target container is not a DOM element.');\n  }\n\n  {\n    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;\n\n    if (isModernRoot) {\n      error('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()?');\n    }\n  }\n\n  if (container._reactRootContainer) {\n    {\n      var rootEl = getReactRootElementInContainer(container);\n      var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);\n\n      if (renderedByDifferentReact) {\n        error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by another copy of React.');\n      }\n    } // Unmount should not be batched.\n\n\n    flushSync(function () {\n      legacyRenderSubtreeIntoContainer(null, null, container, false, function () {\n        // $FlowFixMe This should probably use `delete container._reactRootContainer`\n        container._reactRootContainer = null;\n        unmarkContainerAsRoot(container);\n      });\n    }); // If you call unmountComponentAtNode twice in quick succession, you'll\n    // get `true` twice. That's probably fine?\n\n    return true;\n  } else {\n    {\n      var _rootEl = getReactRootElementInContainer(container);\n\n      var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.\n\n      var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainerLegacy(container.parentNode) && !!container.parentNode._reactRootContainer;\n\n      if (hasNonRootReactChild) {\n        error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? '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.');\n      }\n    }\n\n    return false;\n  }\n}\n\nsetAttemptSynchronousHydration(attemptSynchronousHydration$1);\nsetAttemptContinuousHydration(attemptContinuousHydration$1);\nsetAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);\nsetGetCurrentUpdatePriority(getCurrentUpdatePriority);\nsetAttemptHydrationAtPriority(runWithPriority);\n\n{\n  if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype\n  Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype\n  Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {\n    error('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');\n  }\n}\n\nsetRestoreImplementation(restoreControlledState$3);\nsetBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);\n\nfunction createPortal$1(children, container) {\n  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n  if (!isValidContainer(container)) {\n    throw new Error('Target container is not a DOM element.');\n  } // TODO: pass ReactDOM portal implementation as third argument\n  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.\n\n\n  return createPortal(children, container, null, key);\n}\n\nfunction renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {\n  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);\n}\n\nvar Internals = {\n  usingClientEntryPoint: false,\n  // Keep in sync with ReactTestUtils.js.\n  // This is an array for better minification.\n  Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]\n};\n\nfunction createRoot$1(container, options) {\n  {\n    if (!Internals.usingClientEntryPoint && !false) {\n      error('You are importing createRoot from \"react-dom\" which is not supported. ' + 'You should instead import it from \"react-dom/client\".');\n    }\n  }\n\n  return createRoot(container, options);\n}\n\nfunction hydrateRoot$1(container, initialChildren, options) {\n  {\n    if (!Internals.usingClientEntryPoint && !false) {\n      error('You are importing hydrateRoot from \"react-dom\" which is not supported. ' + 'You should instead import it from \"react-dom/client\".');\n    }\n  }\n\n  return hydrateRoot(container, initialChildren, options);\n} // Overload the definition to the two valid signatures.\n// Warning, this opts-out of checking the function body.\n\n\n// eslint-disable-next-line no-redeclare\nfunction flushSync$1(fn) {\n  {\n    if (isAlreadyRendering()) {\n      error('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.');\n    }\n  }\n\n  return flushSync(fn);\n}\nvar foundDevTools = injectIntoDevTools({\n  findFiberByHostInstance: getClosestInstanceFromNode,\n  bundleType:  1 ,\n  version: ReactVersion,\n  rendererPackageName: 'react-dom'\n});\n\n{\n  if (!foundDevTools && canUseDOM && window.top === window.self) {\n    // If we're in Chrome or Firefox, provide a download link if not installed.\n    if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n      var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.\n\n      if (/^(https?|file):$/.test(protocol)) {\n        // eslint-disable-next-line react-internal/no-production-logging\n        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');\n      }\n    }\n  }\n}\n\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;\nexports.createPortal = createPortal$1;\nexports.createRoot = createRoot$1;\nexports.findDOMNode = findDOMNode;\nexports.flushSync = flushSync$1;\nexports.hydrate = hydrate;\nexports.hydrateRoot = hydrateRoot$1;\nexports.render = render;\nexports.unmountComponentAtNode = unmountComponentAtNode;\nexports.unstable_batchedUpdates = batchedUpdates$1;\nexports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;\nexports.version = ReactVersion;\n          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n        \n  })();\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n  exports.createRoot = m.createRoot;\n  exports.hydrateRoot = m.hydrateRoot;\n} else {\n  var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n  exports.createRoot = function(c, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.createRoot(c, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n  exports.hydrateRoot = function(c, h, o) {\n    i.usingClientEntryPoint = true;\n    try {\n      return m.hydrateRoot(c, h, o);\n    } finally {\n      i.usingClientEntryPoint = false;\n    }\n  };\n}\n","'use strict';\n\nfunction checkDCE() {\n  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n  if (\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n  ) {\n    return;\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    // This branch is unreachable because this function is only called\n    // in production, but the condition is true only in development.\n    // Therefore if the branch is still here, dead code elimination wasn't\n    // properly applied.\n    // Don't change the message. React DevTools relies on it. Also make sure\n    // this message doesn't occur elsewhere in this function, or it will cause\n    // a false positive.\n    throw new Error('^_^');\n  }\n  try {\n    // Verify that the code above has been dead code eliminated (DCE'd).\n    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n  } catch (err) {\n    // DevTools shouldn't crash React, no matter what.\n    // We should still report in case we break this code.\n    console.error(err);\n  }\n}\n\nif (process.env.NODE_ENV === 'production') {\n  // DCE check should happen before ReactDOM bundle executes so that\n  // DevTools can report bad minification during injection.\n  checkDCE();\n  module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n  module.exports = require('./cjs/react-dom.development.js');\n}\n","'use strict';\n\nvar l, s;\nif (process.env.NODE_ENV === 'production') {\n  l = require('./cjs/react-dom-server-legacy.browser.production.min.js');\n  s = require('./cjs/react-dom-server.browser.production.min.js');\n} else {\n  l = require('./cjs/react-dom-server-legacy.browser.development.js');\n  s = require('./cjs/react-dom-server.browser.development.js');\n}\n\nexports.version = l.version;\nexports.renderToString = l.renderToString;\nexports.renderToStaticMarkup = l.renderToStaticMarkup;\nexports.renderToNodeStream = l.renderToNodeStream;\nexports.renderToStaticNodeStream = l.renderToStaticNodeStream;\nexports.renderToReadableStream = s.renderToReadableStream;\n","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\nvar hasElementType = typeof Element !== 'undefined';\n\nfunction equal(a, b) {\n  // fast-deep-equal index.js 2.0.1\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    var arrA = isArray(a)\n      , arrB = isArray(b)\n      , i\n      , length\n      , key;\n\n    if (arrA && arrB) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n    if (arrA != arrB) return false;\n\n    var dateA = a instanceof Date\n      , dateB = b instanceof Date;\n    if (dateA != dateB) return false;\n    if (dateA && dateB) return a.getTime() == b.getTime();\n\n    var regexpA = a instanceof RegExp\n      , regexpB = b instanceof RegExp;\n    if (regexpA != regexpB) return false;\n    if (regexpA && regexpB) return a.toString() == b.toString();\n\n    var keys = keyList(a);\n    length = keys.length;\n\n    if (length !== keyList(b).length)\n      return false;\n\n    for (i = length; i-- !== 0;)\n      if (!hasProp.call(b, keys[i])) return false;\n    // end fast-deep-equal\n\n    // start react-fast-compare\n    // custom handling for DOM elements\n    if (hasElementType && a instanceof Element && b instanceof Element)\n      return a === b;\n\n    // custom handling for React\n    for (i = length; i-- !== 0;) {\n      key = keys[i];\n      if (key === '_owner' && a.$$typeof) {\n        // React-specific: avoid traversing React elements' _owner.\n        //  _owner contains circular references\n        // and is not needed when comparing the actual elements (and not their owners)\n        // .$$typeof and ._store on just reasonable markers of a react element\n        continue;\n      } else {\n        // all other properties should be traversed as usual\n        if (!equal(a[key], b[key])) return false;\n      }\n    }\n    // end react-fast-compare\n\n    // fast-deep-equal index.js 2.0.1\n    return true;\n  }\n\n  return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function exportedEqual(a, b) {\n  try {\n    return equal(a, b);\n  } catch (error) {\n    if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {\n      // warn on circular references, don't crash\n      // browsers give this different errors name and messages:\n      // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n      // firefox: \"InternalError\", too much recursion\"\n      // edge: \"Error\", \"Out of stack space\"\n      console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n      return false;\n    }\n    // some other error. we should definitely know about these\n    throw error;\n  }\n};\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n  return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n  if (typeof object === 'object' && object !== null) {\n    var $$typeof = object.$$typeof;\n\n    switch ($$typeof) {\n      case REACT_ELEMENT_TYPE:\n        var type = object.type;\n\n        switch (type) {\n          case REACT_ASYNC_MODE_TYPE:\n          case REACT_CONCURRENT_MODE_TYPE:\n          case REACT_FRAGMENT_TYPE:\n          case REACT_PROFILER_TYPE:\n          case REACT_STRICT_MODE_TYPE:\n          case REACT_SUSPENSE_TYPE:\n            return type;\n\n          default:\n            var $$typeofType = type && type.$$typeof;\n\n            switch ($$typeofType) {\n              case REACT_CONTEXT_TYPE:\n              case REACT_FORWARD_REF_TYPE:\n              case REACT_LAZY_TYPE:\n              case REACT_MEMO_TYPE:\n              case REACT_PROVIDER_TYPE:\n                return $$typeofType;\n\n              default:\n                return $$typeof;\n            }\n\n        }\n\n      case REACT_PORTAL_TYPE:\n        return $$typeof;\n    }\n  }\n\n  return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n  {\n    if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n      hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n    }\n  }\n\n  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n  return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n  return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n  return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n  return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n  return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n  return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n  return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n  return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n  return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n  return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-is.production.min.js');\n} else {\n  module.exports = require('./cjs/react-is.development.js');\n}\n","!function(e,a){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=a(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],a):\"object\"==typeof exports?exports.ReactPaginate=a(require(\"react\")):e.ReactPaginate=a(e.React)}(this,(e=>(()=>{var a={703:(e,a,t)=>{\"use strict\";var r=t(414);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,a,t,n,i,s){if(s!==r){var o=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw o.name=\"Invariant Violation\",o}}function a(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return t.PropTypes=t,t}},697:(e,a,t)=>{e.exports=t(703)()},414:e=>{\"use strict\";e.exports=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\"},98:a=>{\"use strict\";a.exports=e}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return a[e](i,i.exports,r),i.exports}r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},r.d=(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var n={};return(()=>{\"use strict\";r.r(n),r.d(n,{default:()=>k});var e=r(98),a=r.n(e),t=r(697),i=r.n(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}var o=function(e){var t=e.pageClassName,r=e.pageLinkClassName,n=e.page,i=e.selected,o=e.activeClassName,l=e.activeLinkClassName,c=e.getEventListener,p=e.pageSelectedHandler,u=e.href,g=e.extraAriaContext,d=e.pageLabelBuilder,f=e.rel,b=e.ariaLabel||\"Page \"+n+(g?\" \"+g:\"\"),v=null;return i&&(v=\"page\",b=e.ariaLabel||\"Page \"+n+\" is your current page\",t=void 0!==t?t+\" \"+o:o,void 0!==r?void 0!==l&&(r=r+\" \"+l):r=l),a().createElement(\"li\",{className:t},a().createElement(\"a\",s({rel:f,role:u?void 0:\"button\",className:r,href:u,tabIndex:i?\"-1\":\"0\",\"aria-label\":b,\"aria-current\":v,onKeyPress:p},c(p)),d(n)))};o.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const l=o;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c.apply(this,arguments)}var p=function(e){var t=e.breakLabel,r=e.breakAriaLabel,n=e.breakClassName,i=e.breakLinkClassName,s=e.breakHandler,o=e.getEventListener,l=n||\"break\";return a().createElement(\"li\",{className:l},a().createElement(\"a\",c({className:i,role:\"button\",tabIndex:\"0\",\"aria-label\":r,onKeyPress:s},o(s)),t))};p.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const u=p;function g(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return null!=e?e:a}function d(e){return d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},d(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(this,arguments)}function b(e,a){for(var t=0;t<a.length;t++){var r=a[t];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,a){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},v(e,a)}function h(e,a){if(a&&(\"object\"===d(a)||\"function\"==typeof a))return a;if(void 0!==a)throw new TypeError(\"Derived constructors may only return object or undefined\");return m(e)}function m(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function C(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var P=function(e){!function(e,a){if(\"function\"!=typeof a&&null!==a)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),a&&v(e,a)}(o,e);var t,r,n,i,s=(n=o,i=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=y(n);if(i){var t=y(this).constructor;e=Reflect.construct(a,arguments,t)}else e=a.apply(this,arguments);return h(this,e)});function o(e){var t,r;return function(e,a){if(!(e instanceof a))throw new TypeError(\"Cannot call a class as a function\")}(this,o),C(m(t=s.call(this,e)),\"handlePreviousPage\",(function(e){var a=t.state.selected;t.handleClick(e,null,a>0?a-1:void 0,{isPrevious:!0})})),C(m(t),\"handleNextPage\",(function(e){var a=t.state.selected,r=t.props.pageCount;t.handleClick(e,null,a<r-1?a+1:void 0,{isNext:!0})})),C(m(t),\"handlePageSelected\",(function(e,a){if(t.state.selected===e)return t.callActiveCallback(e),void t.handleClick(a,null,void 0,{isActive:!0});t.handleClick(a,null,e)})),C(m(t),\"handlePageChange\",(function(e){t.state.selected!==e&&(t.setState({selected:e}),t.callCallback(e))})),C(m(t),\"getEventListener\",(function(e){return C({},t.props.eventListener,e)})),C(m(t),\"handleClick\",(function(e,a,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.isPrevious,s=void 0!==i&&i,o=n.isNext,l=void 0!==o&&o,c=n.isBreak,p=void 0!==c&&c,u=n.isActive,g=void 0!==u&&u;e.preventDefault?e.preventDefault():e.returnValue=!1;var d=t.state.selected,f=t.props.onClick,b=r;if(f){var v=f({index:a,selected:d,nextSelectedPage:r,event:e,isPrevious:s,isNext:l,isBreak:p,isActive:g});if(!1===v)return;Number.isInteger(v)&&(b=v)}void 0!==b&&t.handlePageChange(b)})),C(m(t),\"handleBreakClick\",(function(e,a){var r=t.state.selected;t.handleClick(a,e,r<e?t.getForwardJump():t.getBackwardJump(),{isBreak:!0})})),C(m(t),\"callCallback\",(function(e){void 0!==t.props.onPageChange&&\"function\"==typeof t.props.onPageChange&&t.props.onPageChange({selected:e})})),C(m(t),\"callActiveCallback\",(function(e){void 0!==t.props.onPageActive&&\"function\"==typeof t.props.onPageActive&&t.props.onPageActive({selected:e})})),C(m(t),\"getElementPageRel\",(function(e){var a=t.state.selected,r=t.props,n=r.nextPageRel,i=r.prevPageRel,s=r.selectedPageRel;return a-1===e?i:a===e?s:a+1===e?n:void 0})),C(m(t),\"pagination\",(function(){var e=[],r=t.props,n=r.pageRangeDisplayed,i=r.pageCount,s=r.marginPagesDisplayed,o=r.breakLabel,l=r.breakClassName,c=r.breakLinkClassName,p=r.breakAriaLabels,g=t.state.selected;if(i<=n)for(var d=0;d<i;d++)e.push(t.getPageElement(d));else{var f=n/2,b=n-f;g>i-n/2?f=n-(b=i-g):g<n/2&&(b=n-(f=g));var v,h,m=function(e){return t.getPageElement(e)},y=[];for(v=0;v<i;v++){var C=v+1;if(C<=s)y.push({type:\"page\",index:v,display:m(v)});else if(C>i-s)y.push({type:\"page\",index:v,display:m(v)});else if(v>=g-f&&v<=g+(0===g&&n>1?b-1:b))y.push({type:\"page\",index:v,display:m(v)});else if(o&&y.length>0&&y[y.length-1].display!==h&&(n>0||s>0)){var P=v<g?p.backward:p.forward;h=a().createElement(u,{key:v,breakAriaLabel:P,breakLabel:o,breakClassName:l,breakLinkClassName:c,breakHandler:t.handleBreakClick.bind(null,v),getEventListener:t.getEventListener}),y.push({type:\"break\",index:v,display:h})}}y.forEach((function(a,t){var r=a;\"break\"===a.type&&y[t-1]&&\"page\"===y[t-1].type&&y[t+1]&&\"page\"===y[t+1].type&&y[t+1].index-y[t-1].index<=2&&(r={type:\"page\",index:a.index,display:m(a.index)}),e.push(r.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn(\"(react-paginate): Both initialPage (\".concat(e.initialPage,\") and forcePage (\").concat(e.forcePage,\") props are provided, which is discouraged.\")+\" Use exclusively forcePage prop for a controlled component.\\nSee https://reactjs.org/docs/forms.html#controlled-components\"),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:r},t}return t=o,(r=[{key:\"componentDidMount\",value:function(){var e=this.props,a=e.initialPage,t=e.disableInitialCallback,r=e.extraAriaContext,n=e.pageCount,i=e.forcePage;void 0===a||t||this.callCallback(a),r&&console.warn(\"DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.\"),Number.isInteger(n)||console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(n,\"). Did you forget a Math.ceil()?\")),void 0!==a&&a>n-1&&console.warn(\"(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (\".concat(a,\" > \").concat(n-1,\").\")),void 0!==i&&i>n-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(i,\" > \").concat(n-1,\").\"))}},{key:\"componentDidUpdate\",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn(\"(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (\".concat(this.props.forcePage,\" > \").concat(this.props.pageCount-1,\").\")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn(\"(react-paginate): The pageCount prop value provided is not an integer (\".concat(this.props.pageCount,\"). Did you forget a Math.ceil()?\"))}},{key:\"getForwardJump\",value:function(){var e=this.state.selected,a=this.props,t=a.pageCount,r=e+a.pageRangeDisplayed;return r>=t?t-1:r}},{key:\"getBackwardJump\",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:\"getElementHref\",value:function(e){var a=this.props,t=a.hrefBuilder,r=a.pageCount,n=a.hrefAllControls;if(t)return n||e>=0&&e<r?t(e+1,r,this.state.selected):void 0}},{key:\"ariaLabelBuilder\",value:function(e){var a=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var t=this.props.ariaLabelBuilder(e+1,a);return this.props.extraAriaContext&&!a&&(t=t+\" \"+this.props.extraAriaContext),t}}},{key:\"getPageElement\",value:function(e){var t=this.state.selected,r=this.props,n=r.pageClassName,i=r.pageLinkClassName,s=r.activeClassName,o=r.activeLinkClassName,c=r.extraAriaContext,p=r.pageLabelBuilder;return a().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:t===e,rel:this.getElementPageRel(e),pageClassName:n,pageLinkClassName:i,activeClassName:s,activeLinkClassName:o,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:p,getEventListener:this.getEventListener})}},{key:\"render\",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var t=this.props,r=t.disabledClassName,n=t.disabledLinkClassName,i=t.pageCount,s=t.className,o=t.containerClassName,l=t.previousLabel,c=t.previousClassName,p=t.previousLinkClassName,u=t.previousAriaLabel,d=t.prevRel,b=t.nextLabel,v=t.nextClassName,h=t.nextLinkClassName,m=t.nextAriaLabel,y=t.nextRel,C=this.state.selected,P=0===C,k=C===i-1,x=\"\".concat(g(c)).concat(P?\" \".concat(g(r)):\"\"),L=\"\".concat(g(v)).concat(k?\" \".concat(g(r)):\"\"),N=\"\".concat(g(p)).concat(P?\" \".concat(g(n)):\"\"),O=\"\".concat(g(h)).concat(k?\" \".concat(g(n)):\"\"),R=P?\"true\":\"false\",E=k?\"true\":\"false\";return a().createElement(\"ul\",{className:s||o,role:\"navigation\",\"aria-label\":\"Pagination\"},a().createElement(\"li\",{className:x},a().createElement(\"a\",f({className:N,href:this.getElementHref(C-1),tabIndex:P?\"-1\":\"0\",role:\"button\",onKeyPress:this.handlePreviousPage,\"aria-disabled\":R,\"aria-label\":u,rel:d},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),a().createElement(\"li\",{className:L},a().createElement(\"a\",f({className:O,href:this.getElementHref(C+1),tabIndex:k?\"-1\":\"0\",role:\"button\",onKeyPress:this.handleNextPage,\"aria-disabled\":E,\"aria-label\":m,rel:y},this.getEventListener(this.handleNextPage)),b)))}}])&&b(t.prototype,r),Object.defineProperty(t,\"prototype\",{writable:!1}),o}(e.Component);C(P,\"propTypes\",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),C(P,\"defaultProps\",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:\"selected\",previousLabel:\"Previous\",previousClassName:\"previous\",previousAriaLabel:\"Previous page\",prevPageRel:\"prev\",prevRel:\"prev\",nextLabel:\"Next\",nextClassName:\"next\",nextAriaLabel:\"Next page\",nextPageRel:\"next\",nextRel:\"next\",breakLabel:\"...\",breakAriaLabels:{forward:\"Jump forward\",backward:\"Jump backward\"},disabledClassName:\"disabled\",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:\"onClick\",renderOnZeroPageCount:void 0,selectedPageRel:\"canonical\",hrefAllControls:!1});const k=P})(),n})()));\n//# sourceMappingURL=react-paginate.js.map","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _slicedToArray(arr, i) {\n  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n  if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n  var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n  if (_i == null) return;\n  var _arr = [];\n  var _n = true;\n  var _d = false;\n\n  var _s, _e;\n\n  try {\n    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n      _arr.push(_s.value);\n\n      if (i && _arr.length === i) break;\n    }\n  } catch (err) {\n    _d = true;\n    _e = err;\n  } finally {\n    try {\n      if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n    } finally {\n      if (_d) throw _e;\n    }\n  }\n\n  return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n  var n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === \"Object\" && o.constructor) n = o.constructor.name;\n  if (n === \"Map\" || n === \"Set\") return Array.from(o);\n  if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n  return arr2;\n}\n\nfunction _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\nfunction getPropertyInfo(name) {\n  return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {\n  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n  this.attributeName = attributeName;\n  this.attributeNamespace = attributeNamespace;\n  this.mustUseProperty = mustUseProperty;\n  this.propertyName = name;\n  this.type = type;\n  this.sanitizeURL = sanitizeURL;\n  this.removeEmptyString = removeEmptyString;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\nreservedProps.forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n  var _ref2 = _slicedToArray(_ref, 2),\n      name = _ref2[0],\n      attributeName = _ref2[1];\n\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function capitalize(token) {\n  return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['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' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL\n  false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName) {\n  var name = attributeName.replace(CAMELIZE, capitalize);\n  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL\n  false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false, // sanitizeURL\n  false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL\nfalse);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  true, // sanitizeURL\n  true);\n});\n\nvar _require = require('../lib/possibleStandardNamesOptimized'),\n    CAMELCASE = _require.CAMELCASE,\n    SAME = _require.SAME,\n    possibleStandardNamesOptimized = _require.possibleStandardNames;\n\nvar ATTRIBUTE_NAME_START_CHAR = \":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\";\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\n/**\n * Checks whether a property name is a custom attribute.\n *\n * @see {@link https://github.com/facebook/react/blob/15-stable/src/renderers/dom/shared/HTMLDOMPropertyConfig.js#L23-L25}\n *\n * @param {string}\n * @return {boolean}\n */\n\nvar isCustomAttribute = RegExp.prototype.test.bind( // eslint-disable-next-line no-misleading-character-class\nnew RegExp('^(data|aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'));\nvar possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function (accumulator, standardName) {\n  var propName = possibleStandardNamesOptimized[standardName];\n\n  if (propName === SAME) {\n    accumulator[standardName] = standardName;\n  } else if (propName === CAMELCASE) {\n    accumulator[standardName.toLowerCase()] = standardName;\n  } else {\n    accumulator[standardName] = propName;\n  }\n\n  return accumulator;\n}, {});\n\nexports.BOOLEAN = BOOLEAN;\nexports.BOOLEANISH_STRING = BOOLEANISH_STRING;\nexports.NUMERIC = NUMERIC;\nexports.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;\nexports.POSITIVE_NUMERIC = POSITIVE_NUMERIC;\nexports.RESERVED = RESERVED;\nexports.STRING = STRING;\nexports.getPropertyInfo = getPropertyInfo;\nexports.isCustomAttribute = isCustomAttribute;\nexports.possibleStandardNames = possibleStandardNames;\n","// An attribute in which the DOM/SVG standard name is the same as the React prop name (e.g., 'accept').\nvar SAME = 0;\nexports.SAME = SAME;\n\n// An attribute in which the React prop name is the camelcased version of the DOM/SVG standard name (e.g., 'acceptCharset').\nvar CAMELCASE = 1;\nexports.CAMELCASE = CAMELCASE;\n\nexports.possibleStandardNames = {\n  accept: 0,\n  acceptCharset: 1,\n  'accept-charset': 'acceptCharset',\n  accessKey: 1,\n  action: 0,\n  allowFullScreen: 1,\n  alt: 0,\n  as: 0,\n  async: 0,\n  autoCapitalize: 1,\n  autoComplete: 1,\n  autoCorrect: 1,\n  autoFocus: 1,\n  autoPlay: 1,\n  autoSave: 1,\n  capture: 0,\n  cellPadding: 1,\n  cellSpacing: 1,\n  challenge: 0,\n  charSet: 1,\n  checked: 0,\n  children: 0,\n  cite: 0,\n  class: 'className',\n  classID: 1,\n  className: 1,\n  cols: 0,\n  colSpan: 1,\n  content: 0,\n  contentEditable: 1,\n  contextMenu: 1,\n  controls: 0,\n  controlsList: 1,\n  coords: 0,\n  crossOrigin: 1,\n  dangerouslySetInnerHTML: 1,\n  data: 0,\n  dateTime: 1,\n  default: 0,\n  defaultChecked: 1,\n  defaultValue: 1,\n  defer: 0,\n  dir: 0,\n  disabled: 0,\n  disablePictureInPicture: 1,\n  disableRemotePlayback: 1,\n  download: 0,\n  draggable: 0,\n  encType: 1,\n  enterKeyHint: 1,\n  for: 'htmlFor',\n  form: 0,\n  formMethod: 1,\n  formAction: 1,\n  formEncType: 1,\n  formNoValidate: 1,\n  formTarget: 1,\n  frameBorder: 1,\n  headers: 0,\n  height: 0,\n  hidden: 0,\n  high: 0,\n  href: 0,\n  hrefLang: 1,\n  htmlFor: 1,\n  httpEquiv: 1,\n  'http-equiv': 'httpEquiv',\n  icon: 0,\n  id: 0,\n  innerHTML: 1,\n  inputMode: 1,\n  integrity: 0,\n  is: 0,\n  itemID: 1,\n  itemProp: 1,\n  itemRef: 1,\n  itemScope: 1,\n  itemType: 1,\n  keyParams: 1,\n  keyType: 1,\n  kind: 0,\n  label: 0,\n  lang: 0,\n  list: 0,\n  loop: 0,\n  low: 0,\n  manifest: 0,\n  marginWidth: 1,\n  marginHeight: 1,\n  max: 0,\n  maxLength: 1,\n  media: 0,\n  mediaGroup: 1,\n  method: 0,\n  min: 0,\n  minLength: 1,\n  multiple: 0,\n  muted: 0,\n  name: 0,\n  noModule: 1,\n  nonce: 0,\n  noValidate: 1,\n  open: 0,\n  optimum: 0,\n  pattern: 0,\n  placeholder: 0,\n  playsInline: 1,\n  poster: 0,\n  preload: 0,\n  profile: 0,\n  radioGroup: 1,\n  readOnly: 1,\n  referrerPolicy: 1,\n  rel: 0,\n  required: 0,\n  reversed: 0,\n  role: 0,\n  rows: 0,\n  rowSpan: 1,\n  sandbox: 0,\n  scope: 0,\n  scoped: 0,\n  scrolling: 0,\n  seamless: 0,\n  selected: 0,\n  shape: 0,\n  size: 0,\n  sizes: 0,\n  span: 0,\n  spellCheck: 1,\n  src: 0,\n  srcDoc: 1,\n  srcLang: 1,\n  srcSet: 1,\n  start: 0,\n  step: 0,\n  style: 0,\n  summary: 0,\n  tabIndex: 1,\n  target: 0,\n  title: 0,\n  type: 0,\n  useMap: 1,\n  value: 0,\n  width: 0,\n  wmode: 0,\n  wrap: 0,\n  about: 0,\n  accentHeight: 1,\n  'accent-height': 'accentHeight',\n  accumulate: 0,\n  additive: 0,\n  alignmentBaseline: 1,\n  'alignment-baseline': 'alignmentBaseline',\n  allowReorder: 1,\n  alphabetic: 0,\n  amplitude: 0,\n  arabicForm: 1,\n  'arabic-form': 'arabicForm',\n  ascent: 0,\n  attributeName: 1,\n  attributeType: 1,\n  autoReverse: 1,\n  azimuth: 0,\n  baseFrequency: 1,\n  baselineShift: 1,\n  'baseline-shift': 'baselineShift',\n  baseProfile: 1,\n  bbox: 0,\n  begin: 0,\n  bias: 0,\n  by: 0,\n  calcMode: 1,\n  capHeight: 1,\n  'cap-height': 'capHeight',\n  clip: 0,\n  clipPath: 1,\n  'clip-path': 'clipPath',\n  clipPathUnits: 1,\n  clipRule: 1,\n  'clip-rule': 'clipRule',\n  color: 0,\n  colorInterpolation: 1,\n  'color-interpolation': 'colorInterpolation',\n  colorInterpolationFilters: 1,\n  'color-interpolation-filters': 'colorInterpolationFilters',\n  colorProfile: 1,\n  'color-profile': 'colorProfile',\n  colorRendering: 1,\n  'color-rendering': 'colorRendering',\n  contentScriptType: 1,\n  contentStyleType: 1,\n  cursor: 0,\n  cx: 0,\n  cy: 0,\n  d: 0,\n  datatype: 0,\n  decelerate: 0,\n  descent: 0,\n  diffuseConstant: 1,\n  direction: 0,\n  display: 0,\n  divisor: 0,\n  dominantBaseline: 1,\n  'dominant-baseline': 'dominantBaseline',\n  dur: 0,\n  dx: 0,\n  dy: 0,\n  edgeMode: 1,\n  elevation: 0,\n  enableBackground: 1,\n  'enable-background': 'enableBackground',\n  end: 0,\n  exponent: 0,\n  externalResourcesRequired: 1,\n  fill: 0,\n  fillOpacity: 1,\n  'fill-opacity': 'fillOpacity',\n  fillRule: 1,\n  'fill-rule': 'fillRule',\n  filter: 0,\n  filterRes: 1,\n  filterUnits: 1,\n  floodOpacity: 1,\n  'flood-opacity': 'floodOpacity',\n  floodColor: 1,\n  'flood-color': 'floodColor',\n  focusable: 0,\n  fontFamily: 1,\n  'font-family': 'fontFamily',\n  fontSize: 1,\n  'font-size': 'fontSize',\n  fontSizeAdjust: 1,\n  'font-size-adjust': 'fontSizeAdjust',\n  fontStretch: 1,\n  'font-stretch': 'fontStretch',\n  fontStyle: 1,\n  'font-style': 'fontStyle',\n  fontVariant: 1,\n  'font-variant': 'fontVariant',\n  fontWeight: 1,\n  'font-weight': 'fontWeight',\n  format: 0,\n  from: 0,\n  fx: 0,\n  fy: 0,\n  g1: 0,\n  g2: 0,\n  glyphName: 1,\n  'glyph-name': 'glyphName',\n  glyphOrientationHorizontal: 1,\n  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n  glyphOrientationVertical: 1,\n  'glyph-orientation-vertical': 'glyphOrientationVertical',\n  glyphRef: 1,\n  gradientTransform: 1,\n  gradientUnits: 1,\n  hanging: 0,\n  horizAdvX: 1,\n  'horiz-adv-x': 'horizAdvX',\n  horizOriginX: 1,\n  'horiz-origin-x': 'horizOriginX',\n  ideographic: 0,\n  imageRendering: 1,\n  'image-rendering': 'imageRendering',\n  in2: 0,\n  in: 0,\n  inlist: 0,\n  intercept: 0,\n  k1: 0,\n  k2: 0,\n  k3: 0,\n  k4: 0,\n  k: 0,\n  kernelMatrix: 1,\n  kernelUnitLength: 1,\n  kerning: 0,\n  keyPoints: 1,\n  keySplines: 1,\n  keyTimes: 1,\n  lengthAdjust: 1,\n  letterSpacing: 1,\n  'letter-spacing': 'letterSpacing',\n  lightingColor: 1,\n  'lighting-color': 'lightingColor',\n  limitingConeAngle: 1,\n  local: 0,\n  markerEnd: 1,\n  'marker-end': 'markerEnd',\n  markerHeight: 1,\n  markerMid: 1,\n  'marker-mid': 'markerMid',\n  markerStart: 1,\n  'marker-start': 'markerStart',\n  markerUnits: 1,\n  markerWidth: 1,\n  mask: 0,\n  maskContentUnits: 1,\n  maskUnits: 1,\n  mathematical: 0,\n  mode: 0,\n  numOctaves: 1,\n  offset: 0,\n  opacity: 0,\n  operator: 0,\n  order: 0,\n  orient: 0,\n  orientation: 0,\n  origin: 0,\n  overflow: 0,\n  overlinePosition: 1,\n  'overline-position': 'overlinePosition',\n  overlineThickness: 1,\n  'overline-thickness': 'overlineThickness',\n  paintOrder: 1,\n  'paint-order': 'paintOrder',\n  panose1: 0,\n  'panose-1': 'panose1',\n  pathLength: 1,\n  patternContentUnits: 1,\n  patternTransform: 1,\n  patternUnits: 1,\n  pointerEvents: 1,\n  'pointer-events': 'pointerEvents',\n  points: 0,\n  pointsAtX: 1,\n  pointsAtY: 1,\n  pointsAtZ: 1,\n  prefix: 0,\n  preserveAlpha: 1,\n  preserveAspectRatio: 1,\n  primitiveUnits: 1,\n  property: 0,\n  r: 0,\n  radius: 0,\n  refX: 1,\n  refY: 1,\n  renderingIntent: 1,\n  'rendering-intent': 'renderingIntent',\n  repeatCount: 1,\n  repeatDur: 1,\n  requiredExtensions: 1,\n  requiredFeatures: 1,\n  resource: 0,\n  restart: 0,\n  result: 0,\n  results: 0,\n  rotate: 0,\n  rx: 0,\n  ry: 0,\n  scale: 0,\n  security: 0,\n  seed: 0,\n  shapeRendering: 1,\n  'shape-rendering': 'shapeRendering',\n  slope: 0,\n  spacing: 0,\n  specularConstant: 1,\n  specularExponent: 1,\n  speed: 0,\n  spreadMethod: 1,\n  startOffset: 1,\n  stdDeviation: 1,\n  stemh: 0,\n  stemv: 0,\n  stitchTiles: 1,\n  stopColor: 1,\n  'stop-color': 'stopColor',\n  stopOpacity: 1,\n  'stop-opacity': 'stopOpacity',\n  strikethroughPosition: 1,\n  'strikethrough-position': 'strikethroughPosition',\n  strikethroughThickness: 1,\n  'strikethrough-thickness': 'strikethroughThickness',\n  string: 0,\n  stroke: 0,\n  strokeDasharray: 1,\n  'stroke-dasharray': 'strokeDasharray',\n  strokeDashoffset: 1,\n  'stroke-dashoffset': 'strokeDashoffset',\n  strokeLinecap: 1,\n  'stroke-linecap': 'strokeLinecap',\n  strokeLinejoin: 1,\n  'stroke-linejoin': 'strokeLinejoin',\n  strokeMiterlimit: 1,\n  'stroke-miterlimit': 'strokeMiterlimit',\n  strokeWidth: 1,\n  'stroke-width': 'strokeWidth',\n  strokeOpacity: 1,\n  'stroke-opacity': 'strokeOpacity',\n  suppressContentEditableWarning: 1,\n  suppressHydrationWarning: 1,\n  surfaceScale: 1,\n  systemLanguage: 1,\n  tableValues: 1,\n  targetX: 1,\n  targetY: 1,\n  textAnchor: 1,\n  'text-anchor': 'textAnchor',\n  textDecoration: 1,\n  'text-decoration': 'textDecoration',\n  textLength: 1,\n  textRendering: 1,\n  'text-rendering': 'textRendering',\n  to: 0,\n  transform: 0,\n  typeof: 0,\n  u1: 0,\n  u2: 0,\n  underlinePosition: 1,\n  'underline-position': 'underlinePosition',\n  underlineThickness: 1,\n  'underline-thickness': 'underlineThickness',\n  unicode: 0,\n  unicodeBidi: 1,\n  'unicode-bidi': 'unicodeBidi',\n  unicodeRange: 1,\n  'unicode-range': 'unicodeRange',\n  unitsPerEm: 1,\n  'units-per-em': 'unitsPerEm',\n  unselectable: 0,\n  vAlphabetic: 1,\n  'v-alphabetic': 'vAlphabetic',\n  values: 0,\n  vectorEffect: 1,\n  'vector-effect': 'vectorEffect',\n  version: 0,\n  vertAdvY: 1,\n  'vert-adv-y': 'vertAdvY',\n  vertOriginX: 1,\n  'vert-origin-x': 'vertOriginX',\n  vertOriginY: 1,\n  'vert-origin-y': 'vertOriginY',\n  vHanging: 1,\n  'v-hanging': 'vHanging',\n  vIdeographic: 1,\n  'v-ideographic': 'vIdeographic',\n  viewBox: 1,\n  viewTarget: 1,\n  visibility: 0,\n  vMathematical: 1,\n  'v-mathematical': 'vMathematical',\n  vocab: 0,\n  widths: 0,\n  wordSpacing: 1,\n  'word-spacing': 'wordSpacing',\n  writingMode: 1,\n  'writing-mode': 'writingMode',\n  x1: 0,\n  x2: 0,\n  x: 0,\n  xChannelSelector: 1,\n  xHeight: 1,\n  'x-height': 'xHeight',\n  xlinkActuate: 1,\n  'xlink:actuate': 'xlinkActuate',\n  xlinkArcrole: 1,\n  'xlink:arcrole': 'xlinkArcrole',\n  xlinkHref: 1,\n  'xlink:href': 'xlinkHref',\n  xlinkRole: 1,\n  'xlink:role': 'xlinkRole',\n  xlinkShow: 1,\n  'xlink:show': 'xlinkShow',\n  xlinkTitle: 1,\n  'xlink:title': 'xlinkTitle',\n  xlinkType: 1,\n  'xlink:type': 'xlinkType',\n  xmlBase: 1,\n  'xml:base': 'xmlBase',\n  xmlLang: 1,\n  'xml:lang': 'xmlLang',\n  xmlns: 0,\n  'xml:space': 'xmlSpace',\n  xmlnsXlink: 1,\n  'xmlns:xlink': 'xmlnsXlink',\n  xmlSpace: 1,\n  y1: 0,\n  y2: 0,\n  y: 0,\n  yChannelSelector: 1,\n  z: 0,\n  zoomAndPan: 1\n};\n","\"use strict\";\n/*\nReact-Quill\nhttps://github.com/zenoamaro/react-quill\n*/\nvar __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n            r[k] = a[j];\n    return r;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar react_1 = __importDefault(require(\"react\"));\nvar react_dom_1 = __importDefault(require(\"react-dom\"));\nvar isEqual_1 = __importDefault(require(\"lodash/isEqual\"));\nvar quill_1 = __importDefault(require(\"quill\"));\nvar ReactQuill = /** @class */ (function (_super) {\n    __extends(ReactQuill, _super);\n    function ReactQuill(props) {\n        var _this = _super.call(this, props) || this;\n        /*\n        Changing one of these props should cause a full re-render and a\n        re-instantiation of the Quill editor.\n        */\n        _this.dirtyProps = [\n            'modules',\n            'formats',\n            'bounds',\n            'theme',\n            'children',\n        ];\n        /*\n        Changing one of these props should cause a regular update. These are mostly\n        props that act on the container, rather than the quillized editing area.\n        */\n        _this.cleanProps = [\n            'id',\n            'className',\n            'style',\n            'placeholder',\n            'tabIndex',\n            'onChange',\n            'onChangeSelection',\n            'onFocus',\n            'onBlur',\n            'onKeyPress',\n            'onKeyDown',\n            'onKeyUp',\n        ];\n        _this.state = {\n            generation: 0,\n        };\n        /*\n        Tracks the internal selection of the Quill editor\n        */\n        _this.selection = null;\n        _this.onEditorChange = function (eventName, rangeOrDelta, oldRangeOrDelta, source) {\n            var _a, _b, _c, _d;\n            if (eventName === 'text-change') {\n                (_b = (_a = _this).onEditorChangeText) === null || _b === void 0 ? void 0 : _b.call(_a, _this.editor.root.innerHTML, rangeOrDelta, source, _this.unprivilegedEditor);\n            }\n            else if (eventName === 'selection-change') {\n                (_d = (_c = _this).onEditorChangeSelection) === null || _d === void 0 ? void 0 : _d.call(_c, rangeOrDelta, source, _this.unprivilegedEditor);\n            }\n        };\n        var value = _this.isControlled() ? props.value : props.defaultValue;\n        _this.value = (value !== null && value !== void 0 ? value : '');\n        return _this;\n    }\n    ReactQuill.prototype.validateProps = function (props) {\n        var _a;\n        if (react_1.default.Children.count(props.children) > 1)\n            throw new Error('The Quill editing area can only be composed of a single React element.');\n        if (react_1.default.Children.count(props.children)) {\n            var child = react_1.default.Children.only(props.children);\n            if (((_a = child) === null || _a === void 0 ? void 0 : _a.type) === 'textarea')\n                throw new Error('Quill does not support editing on a <textarea>. Use a <div> instead.');\n        }\n        if (this.lastDeltaChangeSet &&\n            props.value === this.lastDeltaChangeSet)\n            throw new Error('You are passing the `delta` object from the `onChange` event back ' +\n                'as `value`. You most probably want `editor.getContents()` instead. ' +\n                'See: https://github.com/zenoamaro/react-quill#using-deltas');\n    };\n    ReactQuill.prototype.shouldComponentUpdate = function (nextProps, nextState) {\n        var _this = this;\n        var _a;\n        this.validateProps(nextProps);\n        // If the editor hasn't been instantiated yet, or the component has been\n        // regenerated, we already know we should update.\n        if (!this.editor || this.state.generation !== nextState.generation) {\n            return true;\n        }\n        // Handle value changes in-place\n        if ('value' in nextProps) {\n            var prevContents = this.getEditorContents();\n            var nextContents = (_a = nextProps.value, (_a !== null && _a !== void 0 ? _a : ''));\n            // NOTE: Seeing that Quill is missing a way to prevent edits, we have to\n            //       settle for a hybrid between controlled and uncontrolled mode. We\n            //       can't prevent the change, but we'll still override content\n            //       whenever `value` differs from current state.\n            // NOTE: Comparing an HTML string and a Quill Delta will always trigger a\n            //       change, regardless of whether they represent the same document.\n            if (!this.isEqualValue(nextContents, prevContents)) {\n                this.setEditorContents(this.editor, nextContents);\n            }\n        }\n        // Handle read-only changes in-place\n        if (nextProps.readOnly !== this.props.readOnly) {\n            this.setEditorReadOnly(this.editor, nextProps.readOnly);\n        }\n        // Clean and Dirty props require a render\n        return __spreadArrays(this.cleanProps, this.dirtyProps).some(function (prop) {\n            return !isEqual_1.default(nextProps[prop], _this.props[prop]);\n        });\n    };\n    ReactQuill.prototype.shouldComponentRegenerate = function (nextProps) {\n        var _this = this;\n        // Whenever a `dirtyProp` changes, the editor needs reinstantiation.\n        return this.dirtyProps.some(function (prop) {\n            return !isEqual_1.default(nextProps[prop], _this.props[prop]);\n        });\n    };\n    ReactQuill.prototype.componentDidMount = function () {\n        this.instantiateEditor();\n        this.setEditorContents(this.editor, this.getEditorContents());\n    };\n    ReactQuill.prototype.componentWillUnmount = function () {\n        this.destroyEditor();\n    };\n    ReactQuill.prototype.componentDidUpdate = function (prevProps, prevState) {\n        var _this = this;\n        // If we're changing one of the `dirtyProps`, the entire Quill Editor needs\n        // to be re-instantiated. Regenerating the editor will cause the whole tree,\n        // including the container, to be cleaned up and re-rendered from scratch.\n        // Store the contents so they can be restored later.\n        if (this.editor && this.shouldComponentRegenerate(prevProps)) {\n            var delta = this.editor.getContents();\n            var selection = this.editor.getSelection();\n            this.regenerationSnapshot = { delta: delta, selection: selection };\n            this.setState({ generation: this.state.generation + 1 });\n            this.destroyEditor();\n        }\n        // The component has been regenerated, so it must be re-instantiated, and\n        // its content must be restored to the previous values from the snapshot.\n        if (this.state.generation !== prevState.generation) {\n            var _a = this.regenerationSnapshot, delta = _a.delta, selection_1 = _a.selection;\n            delete this.regenerationSnapshot;\n            this.instantiateEditor();\n            var editor_1 = this.editor;\n            editor_1.setContents(delta);\n            postpone(function () { return _this.setEditorSelection(editor_1, selection_1); });\n        }\n    };\n    ReactQuill.prototype.instantiateEditor = function () {\n        if (this.editor) {\n            this.hookEditor(this.editor);\n        }\n        else {\n            this.editor = this.createEditor(this.getEditingArea(), this.getEditorConfig());\n        }\n    };\n    ReactQuill.prototype.destroyEditor = function () {\n        if (!this.editor)\n            return;\n        this.unhookEditor(this.editor);\n    };\n    /*\n    We consider the component to be controlled if `value` is being sent in props.\n    */\n    ReactQuill.prototype.isControlled = function () {\n        return 'value' in this.props;\n    };\n    ReactQuill.prototype.getEditorConfig = function () {\n        return {\n            bounds: this.props.bounds,\n            formats: this.props.formats,\n            modules: this.props.modules,\n            placeholder: this.props.placeholder,\n            readOnly: this.props.readOnly,\n            scrollingContainer: this.props.scrollingContainer,\n            tabIndex: this.props.tabIndex,\n            theme: this.props.theme,\n        };\n    };\n    ReactQuill.prototype.getEditor = function () {\n        if (!this.editor)\n            throw new Error('Accessing non-instantiated editor');\n        return this.editor;\n    };\n    /**\n    Creates an editor on the given element. The editor will be passed the\n    configuration, have its events bound,\n    */\n    ReactQuill.prototype.createEditor = function (element, config) {\n        var editor = new quill_1.default(element, config);\n        if (config.tabIndex != null) {\n            this.setEditorTabIndex(editor, config.tabIndex);\n        }\n        this.hookEditor(editor);\n        return editor;\n    };\n    ReactQuill.prototype.hookEditor = function (editor) {\n        // Expose the editor on change events via a weaker, unprivileged proxy\n        // object that does not allow accidentally modifying editor state.\n        this.unprivilegedEditor = this.makeUnprivilegedEditor(editor);\n        // Using `editor-change` allows picking up silent updates, like selection\n        // changes on typing.\n        editor.on('editor-change', this.onEditorChange);\n    };\n    ReactQuill.prototype.unhookEditor = function (editor) {\n        editor.off('editor-change', this.onEditorChange);\n    };\n    ReactQuill.prototype.getEditorContents = function () {\n        return this.value;\n    };\n    ReactQuill.prototype.getEditorSelection = function () {\n        return this.selection;\n    };\n    /*\n    True if the value is a Delta instance or a Delta look-alike.\n    */\n    ReactQuill.prototype.isDelta = function (value) {\n        return value && value.ops;\n    };\n    /*\n    Special comparison function that knows how to compare Deltas.\n    */\n    ReactQuill.prototype.isEqualValue = function (value, nextValue) {\n        if (this.isDelta(value) && this.isDelta(nextValue)) {\n            return isEqual_1.default(value.ops, nextValue.ops);\n        }\n        else {\n            return isEqual_1.default(value, nextValue);\n        }\n    };\n    /*\n    Replace the contents of the editor, but keep the previous selection hanging\n    around so that the cursor won't move.\n    */\n    ReactQuill.prototype.setEditorContents = function (editor, value) {\n        var _this = this;\n        this.value = value;\n        var sel = this.getEditorSelection();\n        if (typeof value === 'string') {\n            editor.setContents(editor.clipboard.convert(value));\n        }\n        else {\n            editor.setContents(value);\n        }\n        postpone(function () { return _this.setEditorSelection(editor, sel); });\n    };\n    ReactQuill.prototype.setEditorSelection = function (editor, range) {\n        this.selection = range;\n        if (range) {\n            // Validate bounds before applying.\n            var length_1 = editor.getLength();\n            range.index = Math.max(0, Math.min(range.index, length_1 - 1));\n            range.length = Math.max(0, Math.min(range.length, (length_1 - 1) - range.index));\n            editor.setSelection(range);\n        }\n    };\n    ReactQuill.prototype.setEditorTabIndex = function (editor, tabIndex) {\n        var _a, _b;\n        if ((_b = (_a = editor) === null || _a === void 0 ? void 0 : _a.scroll) === null || _b === void 0 ? void 0 : _b.domNode) {\n            editor.scroll.domNode.tabIndex = tabIndex;\n        }\n    };\n    ReactQuill.prototype.setEditorReadOnly = function (editor, value) {\n        if (value) {\n            editor.disable();\n        }\n        else {\n            editor.enable();\n        }\n    };\n    /*\n    Returns a weaker, unprivileged proxy object that only exposes read-only\n    accessors found on the editor instance, without any state-modifying methods.\n    */\n    ReactQuill.prototype.makeUnprivilegedEditor = function (editor) {\n        var e = editor;\n        return {\n            getHTML: function () { return e.root.innerHTML; },\n            getLength: e.getLength.bind(e),\n            getText: e.getText.bind(e),\n            getContents: e.getContents.bind(e),\n            getSelection: e.getSelection.bind(e),\n            getBounds: e.getBounds.bind(e),\n        };\n    };\n    ReactQuill.prototype.getEditingArea = function () {\n        if (!this.editingArea) {\n            throw new Error('Instantiating on missing editing area');\n        }\n        var element = react_dom_1.default.findDOMNode(this.editingArea);\n        if (!element) {\n            throw new Error('Cannot find element for editing area');\n        }\n        if (element.nodeType === 3) {\n            throw new Error('Editing area cannot be a text node');\n        }\n        return element;\n    };\n    /*\n    Renders an editor area, unless it has been provided one to clone.\n    */\n    ReactQuill.prototype.renderEditingArea = function () {\n        var _this = this;\n        var _a = this.props, children = _a.children, preserveWhitespace = _a.preserveWhitespace;\n        var generation = this.state.generation;\n        var properties = {\n            key: generation,\n            ref: function (instance) {\n                _this.editingArea = instance;\n            },\n        };\n        if (react_1.default.Children.count(children)) {\n            return react_1.default.cloneElement(react_1.default.Children.only(children), properties);\n        }\n        return preserveWhitespace ?\n            react_1.default.createElement(\"pre\", __assign({}, properties)) :\n            react_1.default.createElement(\"div\", __assign({}, properties));\n    };\n    ReactQuill.prototype.render = function () {\n        var _a;\n        return (react_1.default.createElement(\"div\", { id: this.props.id, style: this.props.style, key: this.state.generation, className: \"quill \" + (_a = this.props.className, (_a !== null && _a !== void 0 ? _a : '')), onKeyPress: this.props.onKeyPress, onKeyDown: this.props.onKeyDown, onKeyUp: this.props.onKeyUp }, this.renderEditingArea()));\n    };\n    ReactQuill.prototype.onEditorChangeText = function (value, delta, source, editor) {\n        var _a, _b;\n        if (!this.editor)\n            return;\n        // We keep storing the same type of value as what the user gives us,\n        // so that value comparisons will be more stable and predictable.\n        var nextContents = this.isDelta(this.value)\n            ? editor.getContents()\n            : editor.getHTML();\n        if (nextContents !== this.getEditorContents()) {\n            // Taint this `delta` object, so we can recognize whether the user\n            // is trying to send it back as `value`, preventing a likely loop.\n            this.lastDeltaChangeSet = delta;\n            this.value = nextContents;\n            (_b = (_a = this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, value, delta, source, editor);\n        }\n    };\n    ReactQuill.prototype.onEditorChangeSelection = function (nextSelection, source, editor) {\n        var _a, _b, _c, _d, _e, _f;\n        if (!this.editor)\n            return;\n        var currentSelection = this.getEditorSelection();\n        var hasGainedFocus = !currentSelection && nextSelection;\n        var hasLostFocus = currentSelection && !nextSelection;\n        if (isEqual_1.default(nextSelection, currentSelection))\n            return;\n        this.selection = nextSelection;\n        (_b = (_a = this.props).onChangeSelection) === null || _b === void 0 ? void 0 : _b.call(_a, nextSelection, source, editor);\n        if (hasGainedFocus) {\n            (_d = (_c = this.props).onFocus) === null || _d === void 0 ? void 0 : _d.call(_c, nextSelection, source, editor);\n        }\n        else if (hasLostFocus) {\n            (_f = (_e = this.props).onBlur) === null || _f === void 0 ? void 0 : _f.call(_e, currentSelection, source, editor);\n        }\n    };\n    ReactQuill.prototype.focus = function () {\n        if (!this.editor)\n            return;\n        this.editor.focus();\n    };\n    ReactQuill.prototype.blur = function () {\n        if (!this.editor)\n            return;\n        this.selection = null;\n        this.editor.blur();\n    };\n    ReactQuill.displayName = 'React Quill';\n    /*\n    Export Quill to be able to call `register`\n    */\n    ReactQuill.Quill = quill_1.default;\n    ReactQuill.defaultProps = {\n        theme: 'snow',\n        modules: {},\n        readOnly: false,\n    };\n    return ReactQuill;\n}(react_1.default.Component));\n/*\nSmall helper to execute a function in the next micro-tick.\n*/\nfunction postpone(fn) {\n    Promise.resolve().then(fn);\n}\nmodule.exports = ReactQuill;\n//# sourceMappingURL=index.js.map","// Default to a dummy \"batch\" implementation that just runs the callback\nfunction defaultNoopBatch(callback) {\n  callback();\n}\n\nlet batch = defaultNoopBatch; // Allow injecting another batching function later\n\nexport const setBatch = newBatch => batch = newBatch; // Supply a getter just to skip dealing with ESM bindings\n\nexport const getBatch = () => batch;","import * as React from 'react';\nconst ContextKey = Symbol.for(`react-redux-context`);\nconst gT = typeof globalThis !== \"undefined\" ? globalThis :\n/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */\n{};\n\nfunction getContext() {\n  var _gT$ContextKey;\n\n  if (!React.createContext) return {};\n  const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();\n  let realContext = contextMap.get(React.createContext);\n\n  if (!realContext) {\n    realContext = React.createContext(null);\n\n    if (process.env.NODE_ENV !== 'production') {\n      realContext.displayName = 'ReactRedux';\n    }\n\n    contextMap.set(React.createContext, realContext);\n  }\n\n  return realContext;\n}\n\nexport const ReactReduxContext = /*#__PURE__*/getContext();\nexport default ReactReduxContext;","import { useContext } from 'react';\nimport { ReactReduxContext } from '../components/Context';\n\n/**\r\n * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useReduxContext` hook bound to the specified context.\r\n */\nexport function createReduxContextHook(context = ReactReduxContext) {\n  return function useReduxContext() {\n    const contextValue = useContext(context);\n\n    if (process.env.NODE_ENV !== 'production' && !contextValue) {\n      throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');\n    }\n\n    return contextValue;\n  };\n}\n/**\r\n * A hook to access the value of the `ReactReduxContext`. This is a low-level\r\n * hook that you should usually not need to call directly.\r\n *\r\n * @returns {any} the value of the `ReactReduxContext`\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useReduxContext } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n *   const { store } = useReduxContext()\r\n *   return <div>{store.getState()}</div>\r\n * }\r\n */\n\nexport const useReduxContext = /*#__PURE__*/createReduxContextHook();","export const notInitialized = () => {\n  throw new Error('uSES not initialized!');\n};","import { useCallback, useDebugValue, useRef } from 'react';\nimport { createReduxContextHook, useReduxContext as useDefaultReduxContext } from './useReduxContext';\nimport { ReactReduxContext } from '../components/Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStoreWithSelector = notInitialized;\nexport const initializeUseSelector = fn => {\n  useSyncExternalStoreWithSelector = fn;\n};\n\nconst refEquality = (a, b) => a === b;\n/**\r\n * Hook factory, which creates a `useSelector` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useSelector` hook bound to the specified context.\r\n */\n\n\nexport function createSelectorHook(context = ReactReduxContext) {\n  const useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : createReduxContextHook(context);\n  return function useSelector(selector, equalityFnOrOptions = {}) {\n    const {\n      equalityFn = refEquality,\n      stabilityCheck = undefined,\n      noopCheck = undefined\n    } = typeof equalityFnOrOptions === 'function' ? {\n      equalityFn: equalityFnOrOptions\n    } : equalityFnOrOptions;\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (!selector) {\n        throw new Error(`You must pass a selector to useSelector`);\n      }\n\n      if (typeof selector !== 'function') {\n        throw new Error(`You must pass a function as a selector to useSelector`);\n      }\n\n      if (typeof equalityFn !== 'function') {\n        throw new Error(`You must pass a function as an equality function to useSelector`);\n      }\n    }\n\n    const {\n      store,\n      subscription,\n      getServerState,\n      stabilityCheck: globalStabilityCheck,\n      noopCheck: globalNoopCheck\n    } = useReduxContext();\n    const firstRun = useRef(true);\n    const wrappedSelector = useCallback({\n      [selector.name](state) {\n        const selected = selector(state);\n\n        if (process.env.NODE_ENV !== 'production') {\n          const finalStabilityCheck = typeof stabilityCheck === 'undefined' ? globalStabilityCheck : stabilityCheck;\n\n          if (finalStabilityCheck === 'always' || finalStabilityCheck === 'once' && firstRun.current) {\n            const toCompare = selector(state);\n\n            if (!equalityFn(selected, toCompare)) {\n              let stack = undefined;\n\n              try {\n                throw new Error();\n              } catch (e) {\n                ;\n                ({\n                  stack\n                } = e);\n              }\n\n              console.warn('Selector ' + (selector.name || 'unknown') + ' returned a different result when called with the same parameters. This can lead to unnecessary rerenders.' + '\\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization', {\n                state,\n                selected,\n                selected2: toCompare,\n                stack\n              });\n            }\n          }\n\n          const finalNoopCheck = typeof noopCheck === 'undefined' ? globalNoopCheck : noopCheck;\n\n          if (finalNoopCheck === 'always' || finalNoopCheck === 'once' && firstRun.current) {\n            // @ts-ignore\n            if (selected === state) {\n              let stack = undefined;\n\n              try {\n                throw new Error();\n              } catch (e) {\n                ;\n                ({\n                  stack\n                } = e);\n              }\n\n              console.warn('Selector ' + (selector.name || 'unknown') + ' returned the root state when called. This can lead to unnecessary rerenders.' + '\\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.', {\n                stack\n              });\n            }\n          }\n\n          if (firstRun.current) firstRun.current = false;\n        }\n\n        return selected;\n      }\n\n    }[selector.name], [selector, globalStabilityCheck, stabilityCheck]);\n    const selectedState = useSyncExternalStoreWithSelector(subscription.addNestedSub, store.getState, getServerState || store.getState, wrappedSelector, equalityFn);\n    useDebugValue(selectedState);\n    return selectedState;\n  };\n}\n/**\r\n * A hook to access the redux store's state. This hook takes a selector function\r\n * as an argument. The selector is called with the store state.\r\n *\r\n * This hook takes an optional equality comparison function as the second parameter\r\n * that allows you to customize the way the selected state is compared to determine\r\n * whether the component needs to be re-rendered.\r\n *\r\n * @param {Function} selector the selector function\r\n * @param {Function=} equalityFn the function that will be used to determine equality\r\n *\r\n * @returns {any} the selected state\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useSelector } from 'react-redux'\r\n *\r\n * export const CounterComponent = () => {\r\n *   const counter = useSelector(state => state.counter)\r\n *   return <div>{counter}</div>\r\n * }\r\n */\n\nexport const useSelector = /*#__PURE__*/createSelectorHook();","/**\r\n * Prints a warning in the console if it exists.\r\n *\r\n * @param {String} message The warning message.\r\n * @returns {void}\r\n */\nexport default function warning(message) {\n  /* eslint-disable no-console */\n  if (typeof console !== 'undefined' && typeof console.error === 'function') {\n    console.error(message);\n  }\n  /* eslint-enable no-console */\n\n\n  try {\n    // This error was thrown as a convenience so that if you enable\n    // \"break on all exceptions\" in your console,\n    // it would pause the execution at this line.\n    throw new Error(message);\n    /* eslint-disable no-empty */\n  } catch (e) {}\n  /* eslint-enable no-empty */\n\n}","import warning from '../utils/warning';\n\nfunction verify(selector, methodName) {\n  if (!selector) {\n    throw new Error(`Unexpected value for ${methodName} in connect.`);\n  } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {\n    if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {\n      warning(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);\n    }\n  }\n}\n\nexport default function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {\n  verify(mapStateToProps, 'mapStateToProps');\n  verify(mapDispatchToProps, 'mapDispatchToProps');\n  verify(mergeProps, 'mergeProps');\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"initMapStateToProps\", \"initMapDispatchToProps\", \"initMergeProps\"];\nimport verifySubselectors from './verifySubselectors';\nexport function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {\n  areStatesEqual,\n  areOwnPropsEqual,\n  areStatePropsEqual\n}) {\n  let hasRunAtLeastOnce = false;\n  let state;\n  let ownProps;\n  let stateProps;\n  let dispatchProps;\n  let mergedProps;\n\n  function handleFirstCall(firstState, firstOwnProps) {\n    state = firstState;\n    ownProps = firstOwnProps;\n    stateProps = mapStateToProps(state, ownProps);\n    dispatchProps = mapDispatchToProps(dispatch, ownProps);\n    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n    hasRunAtLeastOnce = true;\n    return mergedProps;\n  }\n\n  function handleNewPropsAndNewState() {\n    stateProps = mapStateToProps(state, ownProps);\n    if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n    return mergedProps;\n  }\n\n  function handleNewProps() {\n    if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);\n    if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);\n    mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n    return mergedProps;\n  }\n\n  function handleNewState() {\n    const nextStateProps = mapStateToProps(state, ownProps);\n    const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n    stateProps = nextStateProps;\n    if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n    return mergedProps;\n  }\n\n  function handleSubsequentCalls(nextState, nextOwnProps) {\n    const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n    const stateChanged = !areStatesEqual(nextState, state, nextOwnProps, ownProps);\n    state = nextState;\n    ownProps = nextOwnProps;\n    if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n    if (propsChanged) return handleNewProps();\n    if (stateChanged) return handleNewState();\n    return mergedProps;\n  }\n\n  return function pureFinalPropsSelector(nextState, nextOwnProps) {\n    return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n  };\n}\n// TODO: Add more comments\n// The selector returned by selectorFactory will memoize its results,\n// allowing connect's shouldComponentUpdate to return false if final\n// props have not changed.\nexport default function finalPropsSelectorFactory(dispatch, _ref) {\n  let {\n    initMapStateToProps,\n    initMapDispatchToProps,\n    initMergeProps\n  } = _ref,\n      options = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  const mapStateToProps = initMapStateToProps(dispatch, options);\n  const mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n  const mergeProps = initMergeProps(dispatch, options);\n\n  if (process.env.NODE_ENV !== 'production') {\n    verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps);\n  }\n\n  return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}","import isPlainObject from './isPlainObject';\nimport warning from './warning';\nexport default function verifyPlainObject(value, displayName, methodName) {\n  if (!isPlainObject(value)) {\n    warning(`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`);\n  }\n}","/**\r\n * @param {any} obj The object to inspect.\r\n * @returns {boolean} True if the argument appears to be a plain object.\r\n */\nexport default function isPlainObject(obj) {\n  if (typeof obj !== 'object' || obj === null) return false;\n  let proto = Object.getPrototypeOf(obj);\n  if (proto === null) return true;\n  let baseProto = proto;\n\n  while (Object.getPrototypeOf(baseProto) !== null) {\n    baseProto = Object.getPrototypeOf(baseProto);\n  }\n\n  return proto === baseProto;\n}","import verifyPlainObject from '../utils/verifyPlainObject';\nexport function wrapMapToPropsConstant( // * Note:\n//  It seems that the dispatch argument\n//  could be a dispatch function in some cases (ex: whenMapDispatchToPropsIsMissing)\n//  and a state object in some others (ex: whenMapStateToPropsIsMissing)\n// eslint-disable-next-line no-unused-vars\ngetConstant) {\n  return function initConstantSelector(dispatch) {\n    const constant = getConstant(dispatch);\n\n    function constantSelector() {\n      return constant;\n    }\n\n    constantSelector.dependsOnOwnProps = false;\n    return constantSelector;\n  };\n} // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args\n// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine\n// whether mapToProps needs to be invoked when props have changed.\n//\n// A length of one signals that mapToProps does not depend on props from the parent component.\n// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and\n// therefore not reporting its length accurately..\n// TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?\n\nexport function getDependsOnOwnProps(mapToProps) {\n  return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n} // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,\n// this function wraps mapToProps in a proxy function which does several things:\n//\n//  * Detects whether the mapToProps function being called depends on props, which\n//    is used by selectorFactory to decide if it should reinvoke on props changes.\n//\n//  * On first call, handles mapToProps if returns another function, and treats that\n//    new function as the true mapToProps for subsequent calls.\n//\n//  * On first call, verifies the first result is a plain object, in order to warn\n//    the developer that their mapToProps function is not returning a valid result.\n//\n\nexport function wrapMapToPropsFunc(mapToProps, methodName) {\n  return function initProxySelector(dispatch, {\n    displayName\n  }) {\n    const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n      return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, undefined);\n    }; // allow detectFactoryAndVerify to get ownProps\n\n\n    proxy.dependsOnOwnProps = true;\n\n    proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n      proxy.mapToProps = mapToProps;\n      proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n      let props = proxy(stateOrDispatch, ownProps);\n\n      if (typeof props === 'function') {\n        proxy.mapToProps = props;\n        proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n        props = proxy(stateOrDispatch, ownProps);\n      }\n\n      if (process.env.NODE_ENV !== 'production') verifyPlainObject(props, displayName, methodName);\n      return props;\n    };\n\n    return proxy;\n  };\n}","export function createInvalidArgFactory(arg, name) {\n  return (dispatch, options) => {\n    throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);\n  };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport verifyPlainObject from '../utils/verifyPlainObject';\nimport { createInvalidArgFactory } from './invalidArgFactory';\nexport function defaultMergeProps(stateProps, dispatchProps, ownProps) {\n  // @ts-ignore\n  return _extends({}, ownProps, stateProps, dispatchProps);\n}\nexport function wrapMergePropsFunc(mergeProps) {\n  return function initMergePropsProxy(dispatch, {\n    displayName,\n    areMergedPropsEqual\n  }) {\n    let hasRunOnce = false;\n    let mergedProps;\n    return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n      const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n\n      if (hasRunOnce) {\n        if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;\n      } else {\n        hasRunOnce = true;\n        mergedProps = nextMergedProps;\n        if (process.env.NODE_ENV !== 'production') verifyPlainObject(mergedProps, displayName, 'mergeProps');\n      }\n\n      return mergedProps;\n    };\n  };\n}\nexport function mergePropsFactory(mergeProps) {\n  return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, 'mergeProps');\n}","import { getBatch } from './batch'; // encapsulates the subscription logic for connecting a component to the redux store, as\n// well as nesting subscriptions of descendant components, so that we can ensure the\n// ancestor components re-render before descendants\n\nfunction createListenerCollection() {\n  const batch = getBatch();\n  let first = null;\n  let last = null;\n  return {\n    clear() {\n      first = null;\n      last = null;\n    },\n\n    notify() {\n      batch(() => {\n        let listener = first;\n\n        while (listener) {\n          listener.callback();\n          listener = listener.next;\n        }\n      });\n    },\n\n    get() {\n      let listeners = [];\n      let listener = first;\n\n      while (listener) {\n        listeners.push(listener);\n        listener = listener.next;\n      }\n\n      return listeners;\n    },\n\n    subscribe(callback) {\n      let isSubscribed = true;\n      let listener = last = {\n        callback,\n        next: null,\n        prev: last\n      };\n\n      if (listener.prev) {\n        listener.prev.next = listener;\n      } else {\n        first = listener;\n      }\n\n      return function unsubscribe() {\n        if (!isSubscribed || first === null) return;\n        isSubscribed = false;\n\n        if (listener.next) {\n          listener.next.prev = listener.prev;\n        } else {\n          last = listener.prev;\n        }\n\n        if (listener.prev) {\n          listener.prev.next = listener.next;\n        } else {\n          first = listener.next;\n        }\n      };\n    }\n\n  };\n}\n\nconst nullListeners = {\n  notify() {},\n\n  get: () => []\n};\nexport function createSubscription(store, parentSub) {\n  let unsubscribe;\n  let listeners = nullListeners; // Reasons to keep the subscription active\n\n  let subscriptionsAmount = 0; // Is this specific subscription subscribed (or only nested ones?)\n\n  let selfSubscribed = false;\n\n  function addNestedSub(listener) {\n    trySubscribe();\n    const cleanupListener = listeners.subscribe(listener); // cleanup nested sub\n\n    let removed = false;\n    return () => {\n      if (!removed) {\n        removed = true;\n        cleanupListener();\n        tryUnsubscribe();\n      }\n    };\n  }\n\n  function notifyNestedSubs() {\n    listeners.notify();\n  }\n\n  function handleChangeWrapper() {\n    if (subscription.onStateChange) {\n      subscription.onStateChange();\n    }\n  }\n\n  function isSubscribed() {\n    return selfSubscribed;\n  }\n\n  function trySubscribe() {\n    subscriptionsAmount++;\n\n    if (!unsubscribe) {\n      unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);\n      listeners = createListenerCollection();\n    }\n  }\n\n  function tryUnsubscribe() {\n    subscriptionsAmount--;\n\n    if (unsubscribe && subscriptionsAmount === 0) {\n      unsubscribe();\n      unsubscribe = undefined;\n      listeners.clear();\n      listeners = nullListeners;\n    }\n  }\n\n  function trySubscribeSelf() {\n    if (!selfSubscribed) {\n      selfSubscribed = true;\n      trySubscribe();\n    }\n  }\n\n  function tryUnsubscribeSelf() {\n    if (selfSubscribed) {\n      selfSubscribed = false;\n      tryUnsubscribe();\n    }\n  }\n\n  const subscription = {\n    addNestedSub,\n    notifyNestedSubs,\n    handleChangeWrapper,\n    isSubscribed,\n    trySubscribe: trySubscribeSelf,\n    tryUnsubscribe: tryUnsubscribeSelf,\n    getListeners: () => listeners\n  };\n  return subscription;\n}","import * as React from 'react'; // React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store\n// subscription callback always has the selector from the latest render commit\n// available, otherwise a store update may happen between render and the effect,\n// which may cause missed updates; we also must ensure the store subscription\n// is created synchronously, otherwise a store update may occur before the\n// subscription is created and an inconsistent state may be observed\n// Matches logic in React's `shared/ExecutionEnvironment` file\n\nexport const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\nexport const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;","function is(x, y) {\n  if (x === y) {\n    return x !== 0 || y !== 0 || 1 / x === 1 / y;\n  } else {\n    return x !== x && y !== y;\n  }\n}\n\nexport default function shallowEqual(objA, objB) {\n  if (is(objA, objB)) return true;\n\n  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n    return false;\n  }\n\n  const keysA = Object.keys(objA);\n  const keysB = Object.keys(objB);\n  if (keysA.length !== keysB.length) return false;\n\n  for (let i = 0; i < keysA.length; i++) {\n    if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n      return false;\n    }\n  }\n\n  return true;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"reactReduxForwardedRef\"];\n\n/* eslint-disable valid-jsdoc, @typescript-eslint/no-unused-vars */\nimport hoistStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\nimport { isValidElementType, isContextConsumer } from 'react-is';\nimport defaultSelectorFactory from '../connect/selectorFactory';\nimport { mapDispatchToPropsFactory } from '../connect/mapDispatchToProps';\nimport { mapStateToPropsFactory } from '../connect/mapStateToProps';\nimport { mergePropsFactory } from '../connect/mergeProps';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\nimport shallowEqual from '../utils/shallowEqual';\nimport warning from '../utils/warning';\nimport { ReactReduxContext } from './Context';\nimport { notInitialized } from '../utils/useSyncExternalStore';\nlet useSyncExternalStore = notInitialized;\nexport const initializeConnect = fn => {\n  useSyncExternalStore = fn;\n}; // Define some constant arrays just to avoid re-creating these\n\nconst EMPTY_ARRAY = [null, 0];\nconst NO_SUBSCRIPTION_ARRAY = [null, null]; // Attempts to stringify whatever not-really-a-component value we were given\n// for logging in an error message\n\nconst stringifyComponent = Comp => {\n  try {\n    return JSON.stringify(Comp);\n  } catch (err) {\n    return String(Comp);\n  }\n};\n\n// This is \"just\" a `useLayoutEffect`, but with two modifications:\n// - we need to fall back to `useEffect` in SSR to avoid annoying warnings\n// - we extract this to a separate function to avoid closing over values\n//   and causing memory leaks\nfunction useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {\n  useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies);\n} // Effect callback, extracted: assign the latest props values to refs for later usage\n\n\nfunction captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, // actualChildProps: unknown,\nchildPropsFromStoreUpdate, notifyNestedSubs) {\n  // We want to capture the wrapper props and child props we used for later comparisons\n  lastWrapperProps.current = wrapperProps;\n  renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update\n\n  if (childPropsFromStoreUpdate.current) {\n    childPropsFromStoreUpdate.current = null;\n    notifyNestedSubs();\n  }\n} // Effect callback, extracted: subscribe to the Redux store or nearest connected ancestor,\n// check for updates after dispatched actions, and trigger re-renders.\n\n\nfunction subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, // forceComponentUpdateDispatch: React.Dispatch<any>,\nadditionalSubscribeListener) {\n  // If we're not subscribed to the store, nothing to do here\n  if (!shouldHandleStateChanges) return () => {}; // Capture values for checking if and when this component unmounts\n\n  let didUnsubscribe = false;\n  let lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component\n\n  const checkForUpdates = () => {\n    if (didUnsubscribe || !isMounted.current) {\n      // Don't run stale listeners.\n      // Redux doesn't guarantee unsubscriptions happen until next dispatch.\n      return;\n    } // TODO We're currently calling getState ourselves here, rather than letting `uSES` do it\n\n\n    const latestStoreState = store.getState();\n    let newChildProps, error;\n\n    try {\n      // Actually run the selector with the most recent store state and wrapper props\n      // to determine what the child props should be\n      newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);\n    } catch (e) {\n      error = e;\n      lastThrownError = e;\n    }\n\n    if (!error) {\n      lastThrownError = null;\n    } // If the child props haven't changed, nothing to do here - cascade the subscription update\n\n\n    if (newChildProps === lastChildProps.current) {\n      if (!renderIsScheduled.current) {\n        notifyNestedSubs();\n      }\n    } else {\n      // Save references to the new child props.  Note that we track the \"child props from store update\"\n      // as a ref instead of a useState/useReducer because we need a way to determine if that value has\n      // been processed.  If this went into useState/useReducer, we couldn't clear out the value without\n      // forcing another re-render, which we don't want.\n      lastChildProps.current = newChildProps;\n      childPropsFromStoreUpdate.current = newChildProps;\n      renderIsScheduled.current = true; // TODO This is hacky and not how `uSES` is meant to be used\n      // Trigger the React `useSyncExternalStore` subscriber\n\n      additionalSubscribeListener();\n    }\n  }; // Actually subscribe to the nearest connected ancestor (or store)\n\n\n  subscription.onStateChange = checkForUpdates;\n  subscription.trySubscribe(); // Pull data from the store after first render in case the store has\n  // changed since we began.\n\n  checkForUpdates();\n\n  const unsubscribeWrapper = () => {\n    didUnsubscribe = true;\n    subscription.tryUnsubscribe();\n    subscription.onStateChange = null;\n\n    if (lastThrownError) {\n      // It's possible that we caught an error due to a bad mapState function, but the\n      // parent re-rendered without this component and we're about to unmount.\n      // This shouldn't happen as long as we do top-down subscriptions correctly, but\n      // if we ever do those wrong, this throw will surface the error in our tests.\n      // In that case, throw the error from here so it doesn't get lost.\n      throw lastThrownError;\n    }\n  };\n\n  return unsubscribeWrapper;\n} // Reducer initial state creation for our update reducer\n\n\nconst initStateUpdates = () => EMPTY_ARRAY;\n\nfunction strictEqual(a, b) {\n  return a === b;\n}\n/**\r\n * Infers the type of props that a connector will inject into a component.\r\n */\n\n\nlet hasWarnedAboutDeprecatedPureOption = false;\n/**\r\n * Connects a React component to a Redux store.\r\n *\r\n * - Without arguments, just wraps the component, without changing the behavior / props\r\n *\r\n * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior\r\n * is to override ownProps (as stated in the docs), so what remains is everything that's\r\n * not a state or dispatch prop\r\n *\r\n * - When 3rd param is passed, we don't know if ownProps propagate and whether they\r\n * should be valid component props, because it depends on mergeProps implementation.\r\n * As such, it is the user's responsibility to extend ownProps interface from state or\r\n * dispatch props or both when applicable\r\n *\r\n * @param mapStateToProps A function that extracts values from state\r\n * @param mapDispatchToProps Setup for dispatching actions\r\n * @param mergeProps Optional callback to merge state and dispatch props together\r\n * @param options Options for configuring the connection\r\n *\r\n */\n\nfunction connect(mapStateToProps, mapDispatchToProps, mergeProps, {\n  // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.\n  // @ts-ignore\n  pure,\n  areStatesEqual = strictEqual,\n  areOwnPropsEqual = shallowEqual,\n  areStatePropsEqual = shallowEqual,\n  areMergedPropsEqual = shallowEqual,\n  // use React's forwardRef to expose a ref of the wrapped component\n  forwardRef = false,\n  // the context consumer to use\n  context = ReactReduxContext\n} = {}) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (pure !== undefined && !hasWarnedAboutDeprecatedPureOption) {\n      hasWarnedAboutDeprecatedPureOption = true;\n      warning('The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component');\n    }\n  }\n\n  const Context = context;\n  const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);\n  const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);\n  const initMergeProps = mergePropsFactory(mergeProps);\n  const shouldHandleStateChanges = Boolean(mapStateToProps);\n\n  const wrapWithConnect = WrappedComponent => {\n    if (process.env.NODE_ENV !== 'production' && !isValidElementType(WrappedComponent)) {\n      throw new Error(`You must pass a component to the function returned by connect. Instead received ${stringifyComponent(WrappedComponent)}`);\n    }\n\n    const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n    const displayName = `Connect(${wrappedComponentName})`;\n    const selectorFactoryOptions = {\n      shouldHandleStateChanges,\n      displayName,\n      wrappedComponentName,\n      WrappedComponent,\n      // @ts-ignore\n      initMapStateToProps,\n      // @ts-ignore\n      initMapDispatchToProps,\n      initMergeProps,\n      areStatesEqual,\n      areStatePropsEqual,\n      areOwnPropsEqual,\n      areMergedPropsEqual\n    };\n\n    function ConnectFunction(props) {\n      const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {\n        // Distinguish between actual \"data\" props that were passed to the wrapper component,\n        // and values needed to control behavior (forwarded refs, alternate context instances).\n        // To maintain the wrapperProps object reference, memoize this destructuring.\n        const {\n          reactReduxForwardedRef\n        } = props,\n              wrapperProps = _objectWithoutPropertiesLoose(props, _excluded);\n\n        return [props.context, reactReduxForwardedRef, wrapperProps];\n      }, [props]);\n      const ContextToUse = React.useMemo(() => {\n        // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.\n        // Memoize the check that determines which context instance we should use.\n        return propsContext && propsContext.Consumer && // @ts-ignore\n        isContextConsumer( /*#__PURE__*/React.createElement(propsContext.Consumer, null)) ? propsContext : Context;\n      }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available\n\n      const contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.\n      // We'll check to see if it _looks_ like a Redux store first.\n      // This allows us to pass through a `store` prop that is just a plain value.\n\n      const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);\n      const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);\n\n      if (process.env.NODE_ENV !== 'production' && !didStoreComeFromProps && !didStoreComeFromContext) {\n        throw new Error(`Could not find \"store\" in the context of ` + `\"${displayName}\". Either wrap the root component in a <Provider>, ` + `or pass a custom React context provider to <Provider> and the corresponding ` + `React context consumer to ${displayName} in connect options.`);\n      } // Based on the previous check, one of these must be true\n\n\n      const store = didStoreComeFromProps ? props.store : contextValue.store;\n      const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;\n      const childPropsSelector = React.useMemo(() => {\n        // The child props selector needs the store reference as an input.\n        // Re-create this selector whenever the store changes.\n        return defaultSelectorFactory(store.dispatch, selectorFactoryOptions);\n      }, [store]);\n      const [subscription, notifyNestedSubs] = React.useMemo(() => {\n        if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component\n        // connected to the store via props shouldn't use subscription from context, or vice versa.\n\n        const subscription = createSubscription(store, didStoreComeFromProps ? undefined : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in\n        // the middle of the notification loop, where `subscription` will then be null. This can\n        // probably be avoided if Subscription's listeners logic is changed to not call listeners\n        // that have been unsubscribed in the  middle of the notification loop.\n\n        const notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);\n        return [subscription, notifyNestedSubs];\n      }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,\n      // and memoize that value to avoid unnecessary context updates.\n\n      const overriddenContextValue = React.useMemo(() => {\n        if (didStoreComeFromProps) {\n          // This component is directly subscribed to a store from props.\n          // We don't want descendants reading from this store - pass down whatever\n          // the existing context value is from the nearest connected ancestor.\n          return contextValue;\n        } // Otherwise, put this component's subscription instance into context, so that\n        // connected descendants won't update until after this component is done\n\n\n        return _extends({}, contextValue, {\n          subscription\n        });\n      }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic\n\n      const lastChildProps = React.useRef();\n      const lastWrapperProps = React.useRef(wrapperProps);\n      const childPropsFromStoreUpdate = React.useRef();\n      const renderIsScheduled = React.useRef(false);\n      const isProcessingDispatch = React.useRef(false);\n      const isMounted = React.useRef(false);\n      const latestSubscriptionCallbackError = React.useRef();\n      useIsomorphicLayoutEffect(() => {\n        isMounted.current = true;\n        return () => {\n          isMounted.current = false;\n        };\n      }, []);\n      const actualChildPropsSelector = React.useMemo(() => {\n        const selector = () => {\n          // Tricky logic here:\n          // - This render may have been triggered by a Redux store update that produced new child props\n          // - However, we may have gotten new wrapper props after that\n          // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.\n          // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.\n          // So, we'll use the child props from store update only if the wrapper props are the same as last time.\n          if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {\n            return childPropsFromStoreUpdate.current;\n          } // TODO We're reading the store directly in render() here. Bad idea?\n          // This will likely cause Bad Things (TM) to happen in Concurrent Mode.\n          // Note that we do this because on renders _not_ caused by store updates, we need the latest store state\n          // to determine what the child props should be.\n\n\n          return childPropsSelector(store.getState(), wrapperProps);\n        };\n\n        return selector;\n      }, [store, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns\n      // about useLayoutEffect in SSR, so we try to detect environment and fall back to\n      // just useEffect instead to avoid the warning, since neither will run anyway.\n\n      const subscribeForReact = React.useMemo(() => {\n        const subscribe = reactListener => {\n          if (!subscription) {\n            return () => {};\n          }\n\n          return subscribeUpdates(shouldHandleStateChanges, store, subscription, // @ts-ignore\n          childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, reactListener);\n        };\n\n        return subscribe;\n      }, [subscription]);\n      useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs]);\n      let actualChildProps;\n\n      try {\n        actualChildProps = useSyncExternalStore( // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing\n        subscribeForReact, // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,\n        // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.\n        actualChildPropsSelector, getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector);\n      } catch (err) {\n        if (latestSubscriptionCallbackError.current) {\n          ;\n          err.message += `\\nThe error may be correlated with this previous error:\\n${latestSubscriptionCallbackError.current.stack}\\n\\n`;\n        }\n\n        throw err;\n      }\n\n      useIsomorphicLayoutEffect(() => {\n        latestSubscriptionCallbackError.current = undefined;\n        childPropsFromStoreUpdate.current = undefined;\n        lastChildProps.current = actualChildProps;\n      }); // Now that all that's done, we can finally try to actually render the child component.\n      // We memoize the elements for the rendered child component as an optimization.\n\n      const renderedWrappedComponent = React.useMemo(() => {\n        return (\n          /*#__PURE__*/\n          // @ts-ignore\n          React.createElement(WrappedComponent, _extends({}, actualChildProps, {\n            ref: reactReduxForwardedRef\n          }))\n        );\n      }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering\n      // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.\n\n      const renderedChild = React.useMemo(() => {\n        if (shouldHandleStateChanges) {\n          // If this component is subscribed to store updates, we need to pass its own\n          // subscription instance down to our descendants. That means rendering the same\n          // Context instance, and putting a different value into the context.\n          return /*#__PURE__*/React.createElement(ContextToUse.Provider, {\n            value: overriddenContextValue\n          }, renderedWrappedComponent);\n        }\n\n        return renderedWrappedComponent;\n      }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);\n      return renderedChild;\n    }\n\n    const _Connect = React.memo(ConnectFunction);\n\n    // Add a hacky cast to get the right output type\n    const Connect = _Connect;\n    Connect.WrappedComponent = WrappedComponent;\n    Connect.displayName = ConnectFunction.displayName = displayName;\n\n    if (forwardRef) {\n      const _forwarded = React.forwardRef(function forwardConnectRef(props, ref) {\n        // @ts-ignore\n        return /*#__PURE__*/React.createElement(Connect, _extends({}, props, {\n          reactReduxForwardedRef: ref\n        }));\n      });\n\n      const forwarded = _forwarded;\n      forwarded.displayName = displayName;\n      forwarded.WrappedComponent = WrappedComponent;\n      return hoistStatics(forwarded, WrappedComponent);\n    }\n\n    return hoistStatics(Connect, WrappedComponent);\n  };\n\n  return wrapWithConnect;\n}\n\nexport default connect;","import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\nimport { createInvalidArgFactory } from './invalidArgFactory';\nexport function mapStateToPropsFactory(mapStateToProps) {\n  return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : typeof mapStateToProps === 'function' ? // @ts-ignore\n  wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : createInvalidArgFactory(mapStateToProps, 'mapStateToProps');\n}","import bindActionCreators from '../utils/bindActionCreators';\nimport { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';\nimport { createInvalidArgFactory } from './invalidArgFactory';\nexport function mapDispatchToPropsFactory(mapDispatchToProps) {\n  return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(dispatch => // @ts-ignore\n  bindActionCreators(mapDispatchToProps, dispatch)) : !mapDispatchToProps ? wrapMapToPropsConstant(dispatch => ({\n    dispatch\n  })) : typeof mapDispatchToProps === 'function' ? // @ts-ignore\n  wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : createInvalidArgFactory(mapDispatchToProps, 'mapDispatchToProps');\n}","export default function bindActionCreators(actionCreators, dispatch) {\n  const boundActionCreators = {};\n\n  for (const key in actionCreators) {\n    const actionCreator = actionCreators[key];\n\n    if (typeof actionCreator === 'function') {\n      boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));\n    }\n  }\n\n  return boundActionCreators;\n}","import * as React from 'react';\nimport { ReactReduxContext } from './Context';\nimport { createSubscription } from '../utils/Subscription';\nimport { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect';\n\nfunction Provider({\n  store,\n  context,\n  children,\n  serverState,\n  stabilityCheck = 'once',\n  noopCheck = 'once'\n}) {\n  const contextValue = React.useMemo(() => {\n    const subscription = createSubscription(store);\n    return {\n      store,\n      subscription,\n      getServerState: serverState ? () => serverState : undefined,\n      stabilityCheck,\n      noopCheck\n    };\n  }, [store, serverState, stabilityCheck, noopCheck]);\n  const previousState = React.useMemo(() => store.getState(), [store]);\n  useIsomorphicLayoutEffect(() => {\n    const {\n      subscription\n    } = contextValue;\n    subscription.onStateChange = subscription.notifyNestedSubs;\n    subscription.trySubscribe();\n\n    if (previousState !== store.getState()) {\n      subscription.notifyNestedSubs();\n    }\n\n    return () => {\n      subscription.tryUnsubscribe();\n      subscription.onStateChange = undefined;\n    };\n  }, [contextValue, previousState]);\n  const Context = context || ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype\n\n  return /*#__PURE__*/React.createElement(Context.Provider, {\n    value: contextValue\n  }, children);\n}\n\nexport default Provider;","import { ReactReduxContext } from '../components/Context';\nimport { useReduxContext as useDefaultReduxContext, createReduxContextHook } from './useReduxContext';\n/**\r\n * Hook factory, which creates a `useStore` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useStore` hook bound to the specified context.\r\n */\n\nexport function createStoreHook(context = ReactReduxContext) {\n  const useReduxContext = // @ts-ignore\n  context === ReactReduxContext ? useDefaultReduxContext : // @ts-ignore\n  createReduxContextHook(context);\n  return function useStore() {\n    const {\n      store\n    } = useReduxContext(); // @ts-ignore\n\n    return store;\n  };\n}\n/**\r\n * A hook to access the redux store.\r\n *\r\n * @returns {any} the redux store\r\n *\r\n * @example\r\n *\r\n * import React from 'react'\r\n * import { useStore } from 'react-redux'\r\n *\r\n * export const ExampleComponent = () => {\r\n *   const store = useStore()\r\n *   return <div>{store.getState()}</div>\r\n * }\r\n */\n\nexport const useStore = /*#__PURE__*/createStoreHook();","import { ReactReduxContext } from '../components/Context';\nimport { useStore as useDefaultStore, createStoreHook } from './useStore';\n/**\r\n * Hook factory, which creates a `useDispatch` hook bound to a given context.\r\n *\r\n * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.\r\n * @returns {Function} A `useDispatch` hook bound to the specified context.\r\n */\n\nexport function createDispatchHook(context = ReactReduxContext) {\n  const useStore = // @ts-ignore\n  context === ReactReduxContext ? useDefaultStore : createStoreHook(context);\n  return function useDispatch() {\n    const store = useStore(); // @ts-ignore\n\n    return store.dispatch;\n  };\n}\n/**\r\n * A hook to access the redux `dispatch` function.\r\n *\r\n * @returns {any|function} redux store's `dispatch` function\r\n *\r\n * @example\r\n *\r\n * import React, { useCallback } from 'react'\r\n * import { useDispatch } from 'react-redux'\r\n *\r\n * export const CounterComponent = ({ value }) => {\r\n *   const dispatch = useDispatch()\r\n *   const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])\r\n *   return (\r\n *     <div>\r\n *       <span>{value}</span>\r\n *       <button onClick={increaseCounter}>Increase counter</button>\r\n *     </div>\r\n *   )\r\n * }\r\n */\n\nexport const useDispatch = /*#__PURE__*/createDispatchHook();","// The primary entry point assumes we're working with standard ReactDOM/RN, but\n// older versions that do not include `useSyncExternalStore` (React 16.9 - 17.x).\n// Because of that, the useSyncExternalStore compat shim is needed.\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { unstable_batchedUpdates as batch } from './utils/reactBatchedUpdates';\nimport { setBatch } from './utils/batch';\nimport { initializeUseSelector } from './hooks/useSelector';\nimport { initializeConnect } from './components/connect';\ninitializeUseSelector(useSyncExternalStoreWithSelector);\ninitializeConnect(useSyncExternalStore); // Enable batched updates in our subscriptions for use\n// with standard React renderers (ReactDOM, React Native)\n\nsetBatch(batch);\nexport { batch };\nexport * from './exports';","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n  if (typeof type === 'string' || typeof type === 'function') {\n    return true;\n  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {\n    return true;\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n    // types supported by any Flight configuration anywhere since\n    // we don't know which Flight build this will end up being used\n    // with.\n    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction typeOf(object) {\n  if (typeof object === 'object' && object !== null) {\n    var $$typeof = object.$$typeof;\n\n    switch ($$typeof) {\n      case REACT_ELEMENT_TYPE:\n        var type = object.type;\n\n        switch (type) {\n          case REACT_FRAGMENT_TYPE:\n          case REACT_PROFILER_TYPE:\n          case REACT_STRICT_MODE_TYPE:\n          case REACT_SUSPENSE_TYPE:\n          case REACT_SUSPENSE_LIST_TYPE:\n            return type;\n\n          default:\n            var $$typeofType = type && type.$$typeof;\n\n            switch ($$typeofType) {\n              case REACT_SERVER_CONTEXT_TYPE:\n              case REACT_CONTEXT_TYPE:\n              case REACT_FORWARD_REF_TYPE:\n              case REACT_LAZY_TYPE:\n              case REACT_MEMO_TYPE:\n              case REACT_PROVIDER_TYPE:\n                return $$typeofType;\n\n              default:\n                return $$typeof;\n            }\n\n        }\n\n      case REACT_PORTAL_TYPE:\n        return $$typeof;\n    }\n  }\n\n  return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n  {\n    if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n      hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n    }\n  }\n\n  return false;\n}\nfunction isConcurrentMode(object) {\n  {\n    if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n      hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n      console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n    }\n  }\n\n  return false;\n}\nfunction isContextConsumer(object) {\n  return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n  return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n  return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n  return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n  return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n  return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n  return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n  return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n  return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n  return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-is.production.min.js');\n} else {\n  module.exports = require('./cjs/react-is.development.js');\n}\n","/**\n * React Router DOM v6.30.4\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { UNSAFE_mapRouteProperties, UNSAFE_logV6DeprecationWarnings, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, Router, UNSAFE_useRoutesImpl, UNSAFE_NavigationContext, useHref, useResolvedPath, useLocation, useNavigate, createPath, UNSAFE_useRouteId, UNSAFE_RouteContext, useMatches, useNavigation, useBlocker } from 'react-router';\nexport { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, UNSAFE_useRouteId, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, replace, resolvePath, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes } from 'react-router';\nimport { stripBasename, UNSAFE_warning, createRouter, createBrowserHistory, createHashHistory, UNSAFE_ErrorResponseImpl, UNSAFE_invariant, joinPaths, IDLE_FETCHER, matchPath } from '@remix-run/router';\nexport { UNSAFE_ErrorResponseImpl } from '@remix-run/router';\n\nfunction _extends() {\n  return _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, _extends.apply(null, arguments);\n}\nfunction _objectWithoutPropertiesLoose(r, e) {\n  if (null == r) return {};\n  var t = {};\n  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n    if (-1 !== e.indexOf(n)) continue;\n    t[n] = r[n];\n  }\n  return t;\n}\n\nconst defaultMethod = \"get\";\nconst defaultEncType = \"application/x-www-form-urlencoded\";\nfunction isHtmlElement(object) {\n  return object != null && typeof object.tagName === \"string\";\n}\nfunction isButtonElement(object) {\n  return isHtmlElement(object) && object.tagName.toLowerCase() === \"button\";\n}\nfunction isFormElement(object) {\n  return isHtmlElement(object) && object.tagName.toLowerCase() === \"form\";\n}\nfunction isInputElement(object) {\n  return isHtmlElement(object) && object.tagName.toLowerCase() === \"input\";\n}\nfunction isModifiedEvent(event) {\n  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nfunction shouldProcessLinkClick(event, target) {\n  return event.button === 0 && (\n  // Ignore everything but left clicks\n  !target || target === \"_self\") &&\n  // Let browser handle \"target=_blank\" etc.\n  !isModifiedEvent(event) // Ignore clicks with modifier keys\n;\n}\n/**\n * Creates a URLSearchParams object using the given initializer.\n *\n * This is identical to `new URLSearchParams(init)` except it also\n * supports arrays as values in the object form of the initializer\n * instead of just strings. This is convenient when you need multiple\n * values for a given key, but don't want to use an array initializer.\n *\n * For example, instead of:\n *\n *   let searchParams = new URLSearchParams([\n *     ['sort', 'name'],\n *     ['sort', 'price']\n *   ]);\n *\n * you can do:\n *\n *   let searchParams = createSearchParams({\n *     sort: ['name', 'price']\n *   });\n */\nfunction createSearchParams(init) {\n  if (init === void 0) {\n    init = \"\";\n  }\n  return new URLSearchParams(typeof init === \"string\" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => {\n    let value = init[key];\n    return memo.concat(Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]);\n  }, []));\n}\nfunction getSearchParamsForLocation(locationSearch, defaultSearchParams) {\n  let searchParams = createSearchParams(locationSearch);\n  if (defaultSearchParams) {\n    // Use `defaultSearchParams.forEach(...)` here instead of iterating of\n    // `defaultSearchParams.keys()` to work-around a bug in Firefox related to\n    // web extensions. Relevant Bugzilla tickets:\n    // https://bugzilla.mozilla.org/show_bug.cgi?id=1414602\n    // https://bugzilla.mozilla.org/show_bug.cgi?id=1023984\n    defaultSearchParams.forEach((_, key) => {\n      if (!searchParams.has(key)) {\n        defaultSearchParams.getAll(key).forEach(value => {\n          searchParams.append(key, value);\n        });\n      }\n    });\n  }\n  return searchParams;\n}\n// One-time check for submitter support\nlet _formDataSupportsSubmitter = null;\nfunction isFormDataSubmitterSupported() {\n  if (_formDataSupportsSubmitter === null) {\n    try {\n      new FormData(document.createElement(\"form\"),\n      // @ts-expect-error if FormData supports the submitter parameter, this will throw\n      0);\n      _formDataSupportsSubmitter = false;\n    } catch (e) {\n      _formDataSupportsSubmitter = true;\n    }\n  }\n  return _formDataSupportsSubmitter;\n}\nconst supportedFormEncTypes = new Set([\"application/x-www-form-urlencoded\", \"multipart/form-data\", \"text/plain\"]);\nfunction getFormEncType(encType) {\n  if (encType != null && !supportedFormEncTypes.has(encType)) {\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"\\\"\" + encType + \"\\\" is not a valid `encType` for `<Form>`/`<fetcher.Form>` \" + (\"and will default to \\\"\" + defaultEncType + \"\\\"\")) : void 0;\n    return null;\n  }\n  return encType;\n}\nfunction getFormSubmissionInfo(target, basename) {\n  let method;\n  let action;\n  let encType;\n  let formData;\n  let body;\n  if (isFormElement(target)) {\n    // When grabbing the action from the element, it will have had the basename\n    // prefixed to ensure non-JS scenarios work, so strip it since we'll\n    // re-prefix in the router\n    let attr = target.getAttribute(\"action\");\n    action = attr ? stripBasename(attr, basename) : null;\n    method = target.getAttribute(\"method\") || defaultMethod;\n    encType = getFormEncType(target.getAttribute(\"enctype\")) || defaultEncType;\n    formData = new FormData(target);\n  } else if (isButtonElement(target) || isInputElement(target) && (target.type === \"submit\" || target.type === \"image\")) {\n    let form = target.form;\n    if (form == null) {\n      throw new Error(\"Cannot submit a <button> or <input type=\\\"submit\\\"> without a <form>\");\n    }\n    // <button>/<input type=\"submit\"> may override attributes of <form>\n    // When grabbing the action from the element, it will have had the basename\n    // prefixed to ensure non-JS scenarios work, so strip it since we'll\n    // re-prefix in the router\n    let attr = target.getAttribute(\"formaction\") || form.getAttribute(\"action\");\n    action = attr ? stripBasename(attr, basename) : null;\n    method = target.getAttribute(\"formmethod\") || form.getAttribute(\"method\") || defaultMethod;\n    encType = getFormEncType(target.getAttribute(\"formenctype\")) || getFormEncType(form.getAttribute(\"enctype\")) || defaultEncType;\n    // Build a FormData object populated from a form and submitter\n    formData = new FormData(form, target);\n    // If this browser doesn't support the `FormData(el, submitter)` format,\n    // then tack on the submitter value at the end.  This is a lightweight\n    // solution that is not 100% spec compliant.  For complete support in older\n    // browsers, consider using the `formdata-submitter-polyfill` package\n    if (!isFormDataSubmitterSupported()) {\n      let {\n        name,\n        type,\n        value\n      } = target;\n      if (type === \"image\") {\n        let prefix = name ? name + \".\" : \"\";\n        formData.append(prefix + \"x\", \"0\");\n        formData.append(prefix + \"y\", \"0\");\n      } else if (name) {\n        formData.append(name, value);\n      }\n    }\n  } else if (isHtmlElement(target)) {\n    throw new Error(\"Cannot submit element that is not <form>, <button>, or \" + \"<input type=\\\"submit|image\\\">\");\n  } else {\n    method = defaultMethod;\n    action = null;\n    encType = defaultEncType;\n    body = target;\n  }\n  // Send body for <Form encType=\"text/plain\" so we encode it into text\n  if (formData && encType === \"text/plain\") {\n    body = formData;\n    formData = undefined;\n  }\n  return {\n    action,\n    method: method.toLowerCase(),\n    encType,\n    formData,\n    body\n  };\n}\n\nconst _excluded = [\"onClick\", \"relative\", \"reloadDocument\", \"replace\", \"state\", \"target\", \"to\", \"preventScrollReset\", \"viewTransition\"],\n  _excluded2 = [\"aria-current\", \"caseSensitive\", \"className\", \"end\", \"style\", \"to\", \"viewTransition\", \"children\"],\n  _excluded3 = [\"fetcherKey\", \"navigate\", \"reloadDocument\", \"replace\", \"state\", \"method\", \"action\", \"onSubmit\", \"relative\", \"preventScrollReset\", \"viewTransition\"];\n// HEY YOU! DON'T TOUCH THIS VARIABLE!\n//\n// It is replaced with the proper version at build time via a babel plugin in\n// the rollup config.\n//\n// Export a global property onto the window for React Router detection by the\n// Core Web Vitals Technology Report.  This way they can configure the `wappalyzer`\n// to detect and properly classify live websites as being built with React Router:\n// https://github.com/HTTPArchive/wappalyzer/blob/main/src/technologies/r.json\nconst REACT_ROUTER_VERSION = \"6\";\ntry {\n  window.__reactRouterVersion = REACT_ROUTER_VERSION;\n} catch (e) {\n  // no-op\n}\nfunction createBrowserRouter(routes, opts) {\n  return createRouter({\n    basename: opts == null ? void 0 : opts.basename,\n    future: _extends({}, opts == null ? void 0 : opts.future, {\n      v7_prependBasename: true\n    }),\n    history: createBrowserHistory({\n      window: opts == null ? void 0 : opts.window\n    }),\n    hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),\n    routes,\n    mapRouteProperties: UNSAFE_mapRouteProperties,\n    dataStrategy: opts == null ? void 0 : opts.dataStrategy,\n    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,\n    window: opts == null ? void 0 : opts.window\n  }).initialize();\n}\nfunction createHashRouter(routes, opts) {\n  return createRouter({\n    basename: opts == null ? void 0 : opts.basename,\n    future: _extends({}, opts == null ? void 0 : opts.future, {\n      v7_prependBasename: true\n    }),\n    history: createHashHistory({\n      window: opts == null ? void 0 : opts.window\n    }),\n    hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(),\n    routes,\n    mapRouteProperties: UNSAFE_mapRouteProperties,\n    dataStrategy: opts == null ? void 0 : opts.dataStrategy,\n    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,\n    window: opts == null ? void 0 : opts.window\n  }).initialize();\n}\nfunction parseHydrationData() {\n  var _window;\n  let state = (_window = window) == null ? void 0 : _window.__staticRouterHydrationData;\n  if (state && state.errors) {\n    state = _extends({}, state, {\n      errors: deserializeErrors(state.errors)\n    });\n  }\n  return state;\n}\nfunction deserializeErrors(errors) {\n  if (!errors) return null;\n  let entries = Object.entries(errors);\n  let serialized = {};\n  for (let [key, val] of entries) {\n    // Hey you!  If you change this, please change the corresponding logic in\n    // serializeErrors in react-router-dom/server.tsx :)\n    if (val && val.__type === \"RouteErrorResponse\") {\n      serialized[key] = new UNSAFE_ErrorResponseImpl(val.status, val.statusText, val.data, val.internal === true);\n    } else if (val && val.__type === \"Error\") {\n      // Attempt to reconstruct the right type of Error (i.e., ReferenceError)\n      if (val.__subType) {\n        let ErrorConstructor = window[val.__subType];\n        if (typeof ErrorConstructor === \"function\") {\n          try {\n            // @ts-expect-error\n            let error = new ErrorConstructor(val.message);\n            // Wipe away the client-side stack trace.  Nothing to fill it in with\n            // because we don't serialize SSR stack traces for security reasons\n            error.stack = \"\";\n            serialized[key] = error;\n          } catch (e) {\n            // no-op - fall through and create a normal Error\n          }\n        }\n      }\n      if (serialized[key] == null) {\n        let error = new Error(val.message);\n        // Wipe away the client-side stack trace.  Nothing to fill it in with\n        // because we don't serialize SSR stack traces for security reasons\n        error.stack = \"\";\n        serialized[key] = error;\n      }\n    } else {\n      serialized[key] = val;\n    }\n  }\n  return serialized;\n}\nconst ViewTransitionContext = /*#__PURE__*/React.createContext({\n  isTransitioning: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n  ViewTransitionContext.displayName = \"ViewTransition\";\n}\nconst FetchersContext = /*#__PURE__*/React.createContext(new Map());\nif (process.env.NODE_ENV !== \"production\") {\n  FetchersContext.displayName = \"Fetchers\";\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Components\n////////////////////////////////////////////////////////////////////////////////\n/**\n  Webpack + React 17 fails to compile on any of the following because webpack\n  complains that `startTransition` doesn't exist in `React`:\n  * import { startTransition } from \"react\"\n  * import * as React from from \"react\";\n    \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n  * import * as React from from \"react\";\n    \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n  Moving it to a constant such as the following solves the Webpack/React 17 issue:\n  * import * as React from from \"react\";\n    const START_TRANSITION = \"startTransition\";\n    START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n  However, that introduces webpack/terser minification issues in production builds\n  in React 18 where minification/obfuscation ends up removing the call of\n  React.startTransition entirely from the first half of the ternary.  Grabbing\n  this exported reference once up front resolves that issue.\n\n  See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\nconst FLUSH_SYNC = \"flushSync\";\nconst flushSyncImpl = ReactDOM[FLUSH_SYNC];\nconst USE_ID = \"useId\";\nconst useIdImpl = React[USE_ID];\nfunction startTransitionSafe(cb) {\n  if (startTransitionImpl) {\n    startTransitionImpl(cb);\n  } else {\n    cb();\n  }\n}\nfunction flushSyncSafe(cb) {\n  if (flushSyncImpl) {\n    flushSyncImpl(cb);\n  } else {\n    cb();\n  }\n}\nclass Deferred {\n  constructor() {\n    this.status = \"pending\";\n    this.promise = new Promise((resolve, reject) => {\n      this.resolve = value => {\n        if (this.status === \"pending\") {\n          this.status = \"resolved\";\n          resolve(value);\n        }\n      };\n      this.reject = reason => {\n        if (this.status === \"pending\") {\n          this.status = \"rejected\";\n          reject(reason);\n        }\n      };\n    });\n  }\n}\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n  let {\n    fallbackElement,\n    router,\n    future\n  } = _ref;\n  let [state, setStateImpl] = React.useState(router.state);\n  let [pendingState, setPendingState] = React.useState();\n  let [vtContext, setVtContext] = React.useState({\n    isTransitioning: false\n  });\n  let [renderDfd, setRenderDfd] = React.useState();\n  let [transition, setTransition] = React.useState();\n  let [interruption, setInterruption] = React.useState();\n  let fetcherData = React.useRef(new Map());\n  let {\n    v7_startTransition\n  } = future || {};\n  let optInStartTransition = React.useCallback(cb => {\n    if (v7_startTransition) {\n      startTransitionSafe(cb);\n    } else {\n      cb();\n    }\n  }, [v7_startTransition]);\n  let setState = React.useCallback((newState, _ref2) => {\n    let {\n      deletedFetchers,\n      flushSync: flushSync,\n      viewTransitionOpts: viewTransitionOpts\n    } = _ref2;\n    newState.fetchers.forEach((fetcher, key) => {\n      if (fetcher.data !== undefined) {\n        fetcherData.current.set(key, fetcher.data);\n      }\n    });\n    deletedFetchers.forEach(key => fetcherData.current.delete(key));\n    let isViewTransitionUnavailable = router.window == null || router.window.document == null || typeof router.window.document.startViewTransition !== \"function\";\n    // If this isn't a view transition or it's not available in this browser,\n    // just update and be done with it\n    if (!viewTransitionOpts || isViewTransitionUnavailable) {\n      if (flushSync) {\n        flushSyncSafe(() => setStateImpl(newState));\n      } else {\n        optInStartTransition(() => setStateImpl(newState));\n      }\n      return;\n    }\n    // flushSync + startViewTransition\n    if (flushSync) {\n      // Flush through the context to mark DOM elements as transition=ing\n      flushSyncSafe(() => {\n        // Cancel any pending transitions\n        if (transition) {\n          renderDfd && renderDfd.resolve();\n          transition.skipTransition();\n        }\n        setVtContext({\n          isTransitioning: true,\n          flushSync: true,\n          currentLocation: viewTransitionOpts.currentLocation,\n          nextLocation: viewTransitionOpts.nextLocation\n        });\n      });\n      // Update the DOM\n      let t = router.window.document.startViewTransition(() => {\n        flushSyncSafe(() => setStateImpl(newState));\n      });\n      // Clean up after the animation completes\n      t.finished.finally(() => {\n        flushSyncSafe(() => {\n          setRenderDfd(undefined);\n          setTransition(undefined);\n          setPendingState(undefined);\n          setVtContext({\n            isTransitioning: false\n          });\n        });\n      });\n      flushSyncSafe(() => setTransition(t));\n      return;\n    }\n    // startTransition + startViewTransition\n    if (transition) {\n      // Interrupting an in-progress transition, cancel and let everything flush\n      // out, and then kick off a new transition from the interruption state\n      renderDfd && renderDfd.resolve();\n      transition.skipTransition();\n      setInterruption({\n        state: newState,\n        currentLocation: viewTransitionOpts.currentLocation,\n        nextLocation: viewTransitionOpts.nextLocation\n      });\n    } else {\n      // Completed navigation update with opted-in view transitions, let 'er rip\n      setPendingState(newState);\n      setVtContext({\n        isTransitioning: true,\n        flushSync: false,\n        currentLocation: viewTransitionOpts.currentLocation,\n        nextLocation: viewTransitionOpts.nextLocation\n      });\n    }\n  }, [router.window, transition, renderDfd, fetcherData, optInStartTransition]);\n  // Need to use a layout effect here so we are subscribed early enough to\n  // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)\n  React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n  // When we start a view transition, create a Deferred we can use for the\n  // eventual \"completed\" render\n  React.useEffect(() => {\n    if (vtContext.isTransitioning && !vtContext.flushSync) {\n      setRenderDfd(new Deferred());\n    }\n  }, [vtContext]);\n  // Once the deferred is created, kick off startViewTransition() to update the\n  // DOM and then wait on the Deferred to resolve (indicating the DOM update has\n  // happened)\n  React.useEffect(() => {\n    if (renderDfd && pendingState && router.window) {\n      let newState = pendingState;\n      let renderPromise = renderDfd.promise;\n      let transition = router.window.document.startViewTransition(async () => {\n        optInStartTransition(() => setStateImpl(newState));\n        await renderPromise;\n      });\n      transition.finished.finally(() => {\n        setRenderDfd(undefined);\n        setTransition(undefined);\n        setPendingState(undefined);\n        setVtContext({\n          isTransitioning: false\n        });\n      });\n      setTransition(transition);\n    }\n  }, [optInStartTransition, pendingState, renderDfd, router.window]);\n  // When the new location finally renders and is committed to the DOM, this\n  // effect will run to resolve the transition\n  React.useEffect(() => {\n    if (renderDfd && pendingState && state.location.key === pendingState.location.key) {\n      renderDfd.resolve();\n    }\n  }, [renderDfd, transition, state.location, pendingState]);\n  // If we get interrupted with a new navigation during a transition, we skip\n  // the active transition, let it cleanup, then kick it off again here\n  React.useEffect(() => {\n    if (!vtContext.isTransitioning && interruption) {\n      setPendingState(interruption.state);\n      setVtContext({\n        isTransitioning: true,\n        flushSync: false,\n        currentLocation: interruption.currentLocation,\n        nextLocation: interruption.nextLocation\n      });\n      setInterruption(undefined);\n    }\n  }, [vtContext.isTransitioning, interruption]);\n  React.useEffect(() => {\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`<RouterProvider fallbackElement>` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n    // Only log this once on initial mount\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n  let navigator = React.useMemo(() => {\n    return {\n      createHref: router.createHref,\n      encodeLocation: router.encodeLocation,\n      go: n => router.navigate(n),\n      push: (to, state, opts) => router.navigate(to, {\n        state,\n        preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n      }),\n      replace: (to, state, opts) => router.navigate(to, {\n        replace: true,\n        state,\n        preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n      })\n    };\n  }, [router]);\n  let basename = router.basename || \"/\";\n  let dataRouterContext = React.useMemo(() => ({\n    router,\n    navigator,\n    static: false,\n    basename\n  }), [router, navigator, basename]);\n  let routerFuture = React.useMemo(() => ({\n    v7_relativeSplatPath: router.future.v7_relativeSplatPath\n  }), [router.future.v7_relativeSplatPath]);\n  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future, router.future), [future, router.future]);\n  // The fragment and {null} here are important!  We need them to keep React 18's\n  // useId happy when we are server-rendering since we may have a <script> here\n  // containing the hydrated server-side staticContext (from StaticRouterProvider).\n  // useId relies on the component tree structure to generate deterministic id's\n  // so we need to ensure it remains the same on the client even though\n  // we don't need the <script> tag\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UNSAFE_DataRouterContext.Provider, {\n    value: dataRouterContext\n  }, /*#__PURE__*/React.createElement(UNSAFE_DataRouterStateContext.Provider, {\n    value: state\n  }, /*#__PURE__*/React.createElement(FetchersContext.Provider, {\n    value: fetcherData.current\n  }, /*#__PURE__*/React.createElement(ViewTransitionContext.Provider, {\n    value: vtContext\n  }, /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    location: state.location,\n    navigationType: state.historyAction,\n    navigator: navigator,\n    future: routerFuture\n  }, state.initialized || router.future.v7_partialHydration ? (/*#__PURE__*/React.createElement(MemoizedDataRoutes, {\n    routes: router.routes,\n    future: router.future,\n    state: state\n  })) : fallbackElement))))), null);\n}\n// Memoize to avoid re-renders when updating `ViewTransitionContext`\nconst MemoizedDataRoutes = /*#__PURE__*/React.memo(DataRoutes);\nfunction DataRoutes(_ref3) {\n  let {\n    routes,\n    future,\n    state\n  } = _ref3;\n  return UNSAFE_useRoutesImpl(routes, undefined, state, future);\n}\n/**\n * A `<Router>` for use in web browsers. Provides the cleanest URLs.\n */\nfunction BrowserRouter(_ref4) {\n  let {\n    basename,\n    children,\n    future,\n    window\n  } = _ref4;\n  let historyRef = React.useRef();\n  if (historyRef.current == null) {\n    historyRef.current = createBrowserHistory({\n      window,\n      v5Compat: true\n    });\n  }\n  let history = historyRef.current;\n  let [state, setStateImpl] = React.useState({\n    action: history.action,\n    location: history.location\n  });\n  let {\n    v7_startTransition\n  } = future || {};\n  let setState = React.useCallback(newState => {\n    v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n  }, [setStateImpl, v7_startTransition]);\n  React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);\n  return /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    children: children,\n    location: state.location,\n    navigationType: state.action,\n    navigator: history,\n    future: future\n  });\n}\n/**\n * A `<Router>` for use in web browsers. Stores the location in the hash\n * portion of the URL so it is not sent to the server.\n */\nfunction HashRouter(_ref5) {\n  let {\n    basename,\n    children,\n    future,\n    window\n  } = _ref5;\n  let historyRef = React.useRef();\n  if (historyRef.current == null) {\n    historyRef.current = createHashHistory({\n      window,\n      v5Compat: true\n    });\n  }\n  let history = historyRef.current;\n  let [state, setStateImpl] = React.useState({\n    action: history.action,\n    location: history.location\n  });\n  let {\n    v7_startTransition\n  } = future || {};\n  let setState = React.useCallback(newState => {\n    v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n  }, [setStateImpl, v7_startTransition]);\n  React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);\n  return /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    children: children,\n    location: state.location,\n    navigationType: state.action,\n    navigator: history,\n    future: future\n  });\n}\n/**\n * A `<Router>` that accepts a pre-instantiated history object. It's important\n * to note that using your own history object is highly discouraged and may add\n * two versions of the history library to your bundles unless you use the same\n * version of the history library that React Router uses internally.\n */\nfunction HistoryRouter(_ref6) {\n  let {\n    basename,\n    children,\n    future,\n    history\n  } = _ref6;\n  let [state, setStateImpl] = React.useState({\n    action: history.action,\n    location: history.location\n  });\n  let {\n    v7_startTransition\n  } = future || {};\n  let setState = React.useCallback(newState => {\n    v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n  }, [setStateImpl, v7_startTransition]);\n  React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);\n  return /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    children: children,\n    location: state.location,\n    navigationType: state.action,\n    navigator: history,\n    future: future\n  });\n}\nif (process.env.NODE_ENV !== \"production\") {\n  HistoryRouter.displayName = \"unstable_HistoryRouter\";\n}\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\n/**\n * The public API for rendering a history-aware `<a>`.\n */\nconst Link = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref7, ref) {\n  let {\n      onClick,\n      relative,\n      reloadDocument,\n      replace,\n      state,\n      target,\n      to,\n      preventScrollReset,\n      viewTransition\n    } = _ref7,\n    rest = _objectWithoutPropertiesLoose(_ref7, _excluded);\n  let {\n    basename\n  } = React.useContext(UNSAFE_NavigationContext);\n  // Rendered into <a href> for absolute URLs\n  let absoluteHref;\n  let isExternal = false;\n  if (typeof to === \"string\" && ABSOLUTE_URL_REGEX.test(to)) {\n    // Render the absolute href server- and client-side\n    absoluteHref = to;\n    // Only check for external origins client-side\n    if (isBrowser) {\n      try {\n        let currentUrl = new URL(window.location.href);\n        let targetUrl = to.startsWith(\"//\") ? new URL(currentUrl.protocol + to) : new URL(to);\n        let path = stripBasename(targetUrl.pathname, basename);\n        if (targetUrl.origin === currentUrl.origin && path != null) {\n          // Strip the protocol/origin/basename for same-origin absolute URLs\n          to = path + targetUrl.search + targetUrl.hash;\n        } else {\n          isExternal = true;\n        }\n      } catch (e) {\n        // We can't do external URL detection without a valid URL\n        process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"<Link to=\\\"\" + to + \"\\\"> contains an invalid URL which will probably break \" + \"when clicked - please update to a valid URL path.\") : void 0;\n      }\n    }\n  }\n  // Rendered into <a href> for relative URLs\n  let href = useHref(to, {\n    relative\n  });\n  let internalOnClick = useLinkClickHandler(to, {\n    replace,\n    state,\n    target,\n    preventScrollReset,\n    relative,\n    viewTransition\n  });\n  function handleClick(event) {\n    if (onClick) onClick(event);\n    if (!event.defaultPrevented) {\n      internalOnClick(event);\n    }\n  }\n  return (\n    /*#__PURE__*/\n    // eslint-disable-next-line jsx-a11y/anchor-has-content\n    React.createElement(\"a\", _extends({}, rest, {\n      href: absoluteHref || href,\n      onClick: isExternal || reloadDocument ? onClick : handleClick,\n      ref: ref,\n      target: target\n    }))\n  );\n});\nif (process.env.NODE_ENV !== \"production\") {\n  Link.displayName = \"Link\";\n}\n/**\n * A `<Link>` wrapper that knows if it's \"active\" or not.\n */\nconst NavLink = /*#__PURE__*/React.forwardRef(function NavLinkWithRef(_ref8, ref) {\n  let {\n      \"aria-current\": ariaCurrentProp = \"page\",\n      caseSensitive = false,\n      className: classNameProp = \"\",\n      end = false,\n      style: styleProp,\n      to,\n      viewTransition,\n      children\n    } = _ref8,\n    rest = _objectWithoutPropertiesLoose(_ref8, _excluded2);\n  let path = useResolvedPath(to, {\n    relative: rest.relative\n  });\n  let location = useLocation();\n  let routerState = React.useContext(UNSAFE_DataRouterStateContext);\n  let {\n    navigator,\n    basename\n  } = React.useContext(UNSAFE_NavigationContext);\n  let isTransitioning = routerState != null &&\n  // Conditional usage is OK here because the usage of a data router is static\n  // eslint-disable-next-line react-hooks/rules-of-hooks\n  useViewTransitionState(path) && viewTransition === true;\n  let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;\n  let locationPathname = location.pathname;\n  let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;\n  if (!caseSensitive) {\n    locationPathname = locationPathname.toLowerCase();\n    nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null;\n    toPathname = toPathname.toLowerCase();\n  }\n  if (nextLocationPathname && basename) {\n    nextLocationPathname = stripBasename(nextLocationPathname, basename) || nextLocationPathname;\n  }\n  // If the `to` has a trailing slash, look at that exact spot.  Otherwise,\n  // we're looking for a slash _after_ what's in `to`.  For example:\n  //\n  // <NavLink to=\"/users\"> and <NavLink to=\"/users/\">\n  // both want to look for a / at index 6 to match URL `/users/matt`\n  const endSlashPosition = toPathname !== \"/\" && toPathname.endsWith(\"/\") ? toPathname.length - 1 : toPathname.length;\n  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === \"/\";\n  let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === \"/\");\n  let renderProps = {\n    isActive,\n    isPending,\n    isTransitioning\n  };\n  let ariaCurrent = isActive ? ariaCurrentProp : undefined;\n  let className;\n  if (typeof classNameProp === \"function\") {\n    className = classNameProp(renderProps);\n  } else {\n    // If the className prop is not a function, we use a default `active`\n    // class for <NavLink />s that are active. In v5 `active` was the default\n    // value for `activeClassName`, but we are removing that API and can still\n    // use the old default behavior for a cleaner upgrade path and keep the\n    // simple styling rules working as they currently do.\n    className = [classNameProp, isActive ? \"active\" : null, isPending ? \"pending\" : null, isTransitioning ? \"transitioning\" : null].filter(Boolean).join(\" \");\n  }\n  let style = typeof styleProp === \"function\" ? styleProp(renderProps) : styleProp;\n  return /*#__PURE__*/React.createElement(Link, _extends({}, rest, {\n    \"aria-current\": ariaCurrent,\n    className: className,\n    ref: ref,\n    style: style,\n    to: to,\n    viewTransition: viewTransition\n  }), typeof children === \"function\" ? children(renderProps) : children);\n});\nif (process.env.NODE_ENV !== \"production\") {\n  NavLink.displayName = \"NavLink\";\n}\n/**\n * A `@remix-run/router`-aware `<form>`. It behaves like a normal form except\n * that the interaction with the server is with `fetch` instead of new document\n * requests, allowing components to add nicer UX to the page as the form is\n * submitted and returns with data.\n */\nconst Form = /*#__PURE__*/React.forwardRef((_ref9, forwardedRef) => {\n  let {\n      fetcherKey,\n      navigate,\n      reloadDocument,\n      replace,\n      state,\n      method = defaultMethod,\n      action,\n      onSubmit,\n      relative,\n      preventScrollReset,\n      viewTransition\n    } = _ref9,\n    props = _objectWithoutPropertiesLoose(_ref9, _excluded3);\n  let submit = useSubmit();\n  let formAction = useFormAction(action, {\n    relative\n  });\n  let formMethod = method.toLowerCase() === \"get\" ? \"get\" : \"post\";\n  let submitHandler = event => {\n    onSubmit && onSubmit(event);\n    if (event.defaultPrevented) return;\n    event.preventDefault();\n    let submitter = event.nativeEvent.submitter;\n    let submitMethod = (submitter == null ? void 0 : submitter.getAttribute(\"formmethod\")) || method;\n    submit(submitter || event.currentTarget, {\n      fetcherKey,\n      method: submitMethod,\n      navigate,\n      replace,\n      state,\n      relative,\n      preventScrollReset,\n      viewTransition\n    });\n  };\n  return /*#__PURE__*/React.createElement(\"form\", _extends({\n    ref: forwardedRef,\n    method: formMethod,\n    action: formAction,\n    onSubmit: reloadDocument ? onSubmit : submitHandler\n  }, props));\n});\nif (process.env.NODE_ENV !== \"production\") {\n  Form.displayName = \"Form\";\n}\n/**\n * This component will emulate the browser's scroll restoration on location\n * changes.\n */\nfunction ScrollRestoration(_ref0) {\n  let {\n    getKey,\n    storageKey\n  } = _ref0;\n  useScrollRestoration({\n    getKey,\n    storageKey\n  });\n  return null;\n}\nif (process.env.NODE_ENV !== \"production\") {\n  ScrollRestoration.displayName = \"ScrollRestoration\";\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Hooks\n////////////////////////////////////////////////////////////////////////////////\nvar DataRouterHook;\n(function (DataRouterHook) {\n  DataRouterHook[\"UseScrollRestoration\"] = \"useScrollRestoration\";\n  DataRouterHook[\"UseSubmit\"] = \"useSubmit\";\n  DataRouterHook[\"UseSubmitFetcher\"] = \"useSubmitFetcher\";\n  DataRouterHook[\"UseFetcher\"] = \"useFetcher\";\n  DataRouterHook[\"useViewTransitionState\"] = \"useViewTransitionState\";\n})(DataRouterHook || (DataRouterHook = {}));\nvar DataRouterStateHook;\n(function (DataRouterStateHook) {\n  DataRouterStateHook[\"UseFetcher\"] = \"useFetcher\";\n  DataRouterStateHook[\"UseFetchers\"] = \"useFetchers\";\n  DataRouterStateHook[\"UseScrollRestoration\"] = \"useScrollRestoration\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n// Internal hooks\nfunction getDataRouterConsoleError(hookName) {\n  return hookName + \" must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n  let ctx = React.useContext(UNSAFE_DataRouterContext);\n  !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n  return ctx;\n}\nfunction useDataRouterState(hookName) {\n  let state = React.useContext(UNSAFE_DataRouterStateContext);\n  !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n  return state;\n}\n// External hooks\n/**\n * Handles the click behavior for router `<Link>` components. This is useful if\n * you need to create custom `<Link>` components with the same click behavior we\n * use in our exported `<Link>`.\n */\nfunction useLinkClickHandler(to, _temp) {\n  let {\n    target,\n    replace: replaceProp,\n    state,\n    preventScrollReset,\n    relative,\n    viewTransition\n  } = _temp === void 0 ? {} : _temp;\n  let navigate = useNavigate();\n  let location = useLocation();\n  let path = useResolvedPath(to, {\n    relative\n  });\n  return React.useCallback(event => {\n    if (shouldProcessLinkClick(event, target)) {\n      event.preventDefault();\n      // If the URL hasn't changed, a regular <a> will do a replace instead of\n      // a push, so do the same here unless the replace prop is explicitly set\n      let replace = replaceProp !== undefined ? replaceProp : createPath(location) === createPath(path);\n      navigate(to, {\n        replace,\n        state,\n        preventScrollReset,\n        relative,\n        viewTransition\n      });\n    }\n  }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]);\n}\n/**\n * A convenient wrapper for reading and writing search parameters via the\n * URLSearchParams interface.\n */\nfunction useSearchParams(defaultInit) {\n  process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(typeof URLSearchParams !== \"undefined\", \"You cannot use the `useSearchParams` hook in a browser that does not \" + \"support the URLSearchParams API. If you need to support Internet \" + \"Explorer 11, we recommend you load a polyfill such as \" + \"https://github.com/ungap/url-search-params.\") : void 0;\n  let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));\n  let hasSetSearchParamsRef = React.useRef(false);\n  let location = useLocation();\n  let searchParams = React.useMemo(() =>\n  // Only merge in the defaults if we haven't yet called setSearchParams.\n  // Once we call that we want those to take precedence, otherwise you can't\n  // remove a param with setSearchParams({}) if it has an initial value\n  getSearchParamsForLocation(location.search, hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current), [location.search]);\n  let navigate = useNavigate();\n  let setSearchParams = React.useCallback((nextInit, navigateOptions) => {\n    const newSearchParams = createSearchParams(typeof nextInit === \"function\" ? nextInit(searchParams) : nextInit);\n    hasSetSearchParamsRef.current = true;\n    navigate(\"?\" + newSearchParams, navigateOptions);\n  }, [navigate, searchParams]);\n  return [searchParams, setSearchParams];\n}\nfunction validateClientSideSubmission() {\n  if (typeof document === \"undefined\") {\n    throw new Error(\"You are calling submit during the server render. \" + \"Try calling submit within a `useEffect` or callback instead.\");\n  }\n}\nlet fetcherId = 0;\nlet getUniqueFetcherId = () => \"__\" + String(++fetcherId) + \"__\";\n/**\n * Returns a function that may be used to programmatically submit a form (or\n * some arbitrary data) to the server.\n */\nfunction useSubmit() {\n  let {\n    router\n  } = useDataRouterContext(DataRouterHook.UseSubmit);\n  let {\n    basename\n  } = React.useContext(UNSAFE_NavigationContext);\n  let currentRouteId = UNSAFE_useRouteId();\n  return React.useCallback(function (target, options) {\n    if (options === void 0) {\n      options = {};\n    }\n    validateClientSideSubmission();\n    let {\n      action,\n      method,\n      encType,\n      formData,\n      body\n    } = getFormSubmissionInfo(target, basename);\n    if (options.navigate === false) {\n      let key = options.fetcherKey || getUniqueFetcherId();\n      router.fetch(key, currentRouteId, options.action || action, {\n        preventScrollReset: options.preventScrollReset,\n        formData,\n        body,\n        formMethod: options.method || method,\n        formEncType: options.encType || encType,\n        flushSync: options.flushSync\n      });\n    } else {\n      router.navigate(options.action || action, {\n        preventScrollReset: options.preventScrollReset,\n        formData,\n        body,\n        formMethod: options.method || method,\n        formEncType: options.encType || encType,\n        replace: options.replace,\n        state: options.state,\n        fromRouteId: currentRouteId,\n        flushSync: options.flushSync,\n        viewTransition: options.viewTransition\n      });\n    }\n  }, [router, basename, currentRouteId]);\n}\n// v7: Eventually we should deprecate this entirely in favor of using the\n// router method directly?\nfunction useFormAction(action, _temp2) {\n  let {\n    relative\n  } = _temp2 === void 0 ? {} : _temp2;\n  let {\n    basename\n  } = React.useContext(UNSAFE_NavigationContext);\n  let routeContext = React.useContext(UNSAFE_RouteContext);\n  !routeContext ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFormAction must be used inside a RouteContext\") : UNSAFE_invariant(false) : void 0;\n  let [match] = routeContext.matches.slice(-1);\n  // Shallow clone path so we can modify it below, otherwise we modify the\n  // object referenced by useMemo inside useResolvedPath\n  let path = _extends({}, useResolvedPath(action ? action : \".\", {\n    relative\n  }));\n  // If no action was specified, browsers will persist current search params\n  // when determining the path, so match that behavior\n  // https://github.com/remix-run/remix/issues/927\n  let location = useLocation();\n  if (action == null) {\n    // Safe to write to this directly here since if action was undefined, we\n    // would have called useResolvedPath(\".\") which will never include a search\n    path.search = location.search;\n    // When grabbing search params from the URL, remove any included ?index param\n    // since it might not apply to our contextual route.  We add it back based\n    // on match.route.index below\n    let params = new URLSearchParams(path.search);\n    let indexValues = params.getAll(\"index\");\n    let hasNakedIndexParam = indexValues.some(v => v === \"\");\n    if (hasNakedIndexParam) {\n      params.delete(\"index\");\n      indexValues.filter(v => v).forEach(v => params.append(\"index\", v));\n      let qs = params.toString();\n      path.search = qs ? \"?\" + qs : \"\";\n    }\n  }\n  if ((!action || action === \".\") && match.route.index) {\n    path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n  }\n  // If we're operating within a basename, prepend it to the pathname prior\n  // to creating the form action.  If this is a root navigation, then just use\n  // the raw basename which allows the basename to have full control over the\n  // presence of a trailing slash on root actions\n  if (basename !== \"/\") {\n    path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n  }\n  return createPath(path);\n}\n// TODO: (v7) Change the useFetcher generic default from `any` to `unknown`\n/**\n * Interacts with route loaders and actions without causing a navigation. Great\n * for any interaction that stays on the same page.\n */\nfunction useFetcher(_temp3) {\n  var _route$matches;\n  let {\n    key\n  } = _temp3 === void 0 ? {} : _temp3;\n  let {\n    router\n  } = useDataRouterContext(DataRouterHook.UseFetcher);\n  let state = useDataRouterState(DataRouterStateHook.UseFetcher);\n  let fetcherData = React.useContext(FetchersContext);\n  let route = React.useContext(UNSAFE_RouteContext);\n  let routeId = (_route$matches = route.matches[route.matches.length - 1]) == null ? void 0 : _route$matches.route.id;\n  !fetcherData ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher must be used inside a FetchersContext\") : UNSAFE_invariant(false) : void 0;\n  !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher must be used inside a RouteContext\") : UNSAFE_invariant(false) : void 0;\n  !(routeId != null) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"useFetcher can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n  // Fetcher key handling\n  // OK to call conditionally to feature detect `useId`\n  // eslint-disable-next-line react-hooks/rules-of-hooks\n  let defaultKey = useIdImpl ? useIdImpl() : \"\";\n  let [fetcherKey, setFetcherKey] = React.useState(key || defaultKey);\n  if (key && key !== fetcherKey) {\n    setFetcherKey(key);\n  } else if (!fetcherKey) {\n    // We will only fall through here when `useId` is not available\n    setFetcherKey(getUniqueFetcherId());\n  }\n  // Registration/cleanup\n  React.useEffect(() => {\n    router.getFetcher(fetcherKey);\n    return () => {\n      // Tell the router we've unmounted - if v7_fetcherPersist is enabled this\n      // will not delete immediately but instead queue up a delete after the\n      // fetcher returns to an `idle` state\n      router.deleteFetcher(fetcherKey);\n    };\n  }, [router, fetcherKey]);\n  // Fetcher additions\n  let load = React.useCallback((href, opts) => {\n    !routeId ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"No routeId available for fetcher.load()\") : UNSAFE_invariant(false) : void 0;\n    router.fetch(fetcherKey, routeId, href, opts);\n  }, [fetcherKey, routeId, router]);\n  let submitImpl = useSubmit();\n  let submit = React.useCallback((target, opts) => {\n    submitImpl(target, _extends({}, opts, {\n      navigate: false,\n      fetcherKey\n    }));\n  }, [fetcherKey, submitImpl]);\n  let FetcherForm = React.useMemo(() => {\n    let FetcherForm = /*#__PURE__*/React.forwardRef((props, ref) => {\n      return /*#__PURE__*/React.createElement(Form, _extends({}, props, {\n        navigate: false,\n        fetcherKey: fetcherKey,\n        ref: ref\n      }));\n    });\n    if (process.env.NODE_ENV !== \"production\") {\n      FetcherForm.displayName = \"fetcher.Form\";\n    }\n    return FetcherForm;\n  }, [fetcherKey]);\n  // Exposed FetcherWithComponents\n  let fetcher = state.fetchers.get(fetcherKey) || IDLE_FETCHER;\n  let data = fetcherData.get(fetcherKey);\n  let fetcherWithComponents = React.useMemo(() => _extends({\n    Form: FetcherForm,\n    submit,\n    load\n  }, fetcher, {\n    data\n  }), [FetcherForm, submit, load, fetcher, data]);\n  return fetcherWithComponents;\n}\n/**\n * Provides all fetchers currently on the page. Useful for layouts and parent\n * routes that need to provide pending/optimistic UI regarding the fetch.\n */\nfunction useFetchers() {\n  let state = useDataRouterState(DataRouterStateHook.UseFetchers);\n  return Array.from(state.fetchers.entries()).map(_ref1 => {\n    let [key, fetcher] = _ref1;\n    return _extends({}, fetcher, {\n      key\n    });\n  });\n}\nconst SCROLL_RESTORATION_STORAGE_KEY = \"react-router-scroll-positions\";\nlet savedScrollPositions = {};\n/**\n * When rendered inside a RouterProvider, will restore scroll positions on navigations\n */\nfunction useScrollRestoration(_temp4) {\n  let {\n    getKey,\n    storageKey\n  } = _temp4 === void 0 ? {} : _temp4;\n  let {\n    router\n  } = useDataRouterContext(DataRouterHook.UseScrollRestoration);\n  let {\n    restoreScrollPosition,\n    preventScrollReset\n  } = useDataRouterState(DataRouterStateHook.UseScrollRestoration);\n  let {\n    basename\n  } = React.useContext(UNSAFE_NavigationContext);\n  let location = useLocation();\n  let matches = useMatches();\n  let navigation = useNavigation();\n  // Trigger manual scroll restoration while we're active\n  React.useEffect(() => {\n    window.history.scrollRestoration = \"manual\";\n    return () => {\n      window.history.scrollRestoration = \"auto\";\n    };\n  }, []);\n  // Save positions on pagehide\n  usePageHide(React.useCallback(() => {\n    if (navigation.state === \"idle\") {\n      let key = (getKey ? getKey(location, matches) : null) || location.key;\n      savedScrollPositions[key] = window.scrollY;\n    }\n    try {\n      sessionStorage.setItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY, JSON.stringify(savedScrollPositions));\n    } catch (error) {\n      process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (\" + error + \").\") : void 0;\n    }\n    window.history.scrollRestoration = \"auto\";\n  }, [storageKey, getKey, navigation.state, location, matches]));\n  // Read in any saved scroll locations\n  if (typeof document !== \"undefined\") {\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useLayoutEffect(() => {\n      try {\n        let sessionPositions = sessionStorage.getItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY);\n        if (sessionPositions) {\n          savedScrollPositions = JSON.parse(sessionPositions);\n        }\n      } catch (e) {\n        // no-op, use default empty object\n      }\n    }, [storageKey]);\n    // Enable scroll restoration in the router\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useLayoutEffect(() => {\n      let getKeyWithoutBasename = getKey && basename !== \"/\" ? (location, matches) => getKey(// Strip the basename to match useLocation()\n      _extends({}, location, {\n        pathname: stripBasename(location.pathname, basename) || location.pathname\n      }), matches) : getKey;\n      let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(savedScrollPositions, () => window.scrollY, getKeyWithoutBasename);\n      return () => disableScrollRestoration && disableScrollRestoration();\n    }, [router, basename, getKey]);\n    // Restore scrolling when state.restoreScrollPosition changes\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useLayoutEffect(() => {\n      // Explicit false means don't do anything (used for submissions)\n      if (restoreScrollPosition === false) {\n        return;\n      }\n      // been here before, scroll to it\n      if (typeof restoreScrollPosition === \"number\") {\n        window.scrollTo(0, restoreScrollPosition);\n        return;\n      }\n      // try to scroll to the hash\n      if (location.hash) {\n        let el = document.getElementById(decodeURIComponent(location.hash.slice(1)));\n        if (el) {\n          el.scrollIntoView();\n          return;\n        }\n      }\n      // Don't reset if this navigation opted out\n      if (preventScrollReset === true) {\n        return;\n      }\n      // otherwise go to the top on new locations\n      window.scrollTo(0, 0);\n    }, [location, restoreScrollPosition, preventScrollReset]);\n  }\n}\n/**\n * Setup a callback to be fired on the window's `beforeunload` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nfunction useBeforeUnload(callback, options) {\n  let {\n    capture\n  } = options || {};\n  React.useEffect(() => {\n    let opts = capture != null ? {\n      capture\n    } : undefined;\n    window.addEventListener(\"beforeunload\", callback, opts);\n    return () => {\n      window.removeEventListener(\"beforeunload\", callback, opts);\n    };\n  }, [callback, capture]);\n}\n/**\n * Setup a callback to be fired on the window's `pagehide` event. This is\n * useful for saving some data to `window.localStorage` just before the page\n * refreshes.  This event is better supported than beforeunload across browsers.\n *\n * Note: The `callback` argument should be a function created with\n * `React.useCallback()`.\n */\nfunction usePageHide(callback, options) {\n  let {\n    capture\n  } = options || {};\n  React.useEffect(() => {\n    let opts = capture != null ? {\n      capture\n    } : undefined;\n    window.addEventListener(\"pagehide\", callback, opts);\n    return () => {\n      window.removeEventListener(\"pagehide\", callback, opts);\n    };\n  }, [callback, capture]);\n}\n/**\n * Wrapper around useBlocker to show a window.confirm prompt to users instead\n * of building a custom UI with useBlocker.\n *\n * Warning: This has *a lot of rough edges* and behaves very differently (and\n * very incorrectly in some cases) across browsers if user click addition\n * back/forward navigations while the confirm is open.  Use at your own risk.\n */\nfunction usePrompt(_ref10) {\n  let {\n    when,\n    message\n  } = _ref10;\n  let blocker = useBlocker(when);\n  React.useEffect(() => {\n    if (blocker.state === \"blocked\") {\n      let proceed = window.confirm(message);\n      if (proceed) {\n        // This timeout is needed to avoid a weird \"race\" on POP navigations\n        // between the `window.history` revert navigation and the result of\n        // `window.confirm`\n        setTimeout(blocker.proceed, 0);\n      } else {\n        blocker.reset();\n      }\n    }\n  }, [blocker, message]);\n  React.useEffect(() => {\n    if (blocker.state === \"blocked\" && !when) {\n      blocker.reset();\n    }\n  }, [blocker, when]);\n}\n/**\n * Return a boolean indicating if there is an active view transition to the\n * given href.  You can use this value to render CSS classes or viewTransitionName\n * styles onto your elements\n *\n * @param href The destination href\n * @param [opts.relative] Relative routing type (\"route\" | \"path\")\n */\nfunction useViewTransitionState(to, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  let vtContext = React.useContext(ViewTransitionContext);\n  !(vtContext != null) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  \" + \"Did you accidentally import `RouterProvider` from `react-router`?\") : UNSAFE_invariant(false) : void 0;\n  let {\n    basename\n  } = useDataRouterContext(DataRouterHook.useViewTransitionState);\n  let path = useResolvedPath(to, {\n    relative: opts.relative\n  });\n  if (!vtContext.isTransitioning) {\n    return false;\n  }\n  let currentPath = stripBasename(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;\n  let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;\n  // Transition is active if we're going to or coming from the indicated\n  // destination.  This ensures that other PUSH navigations that reverse\n  // an indicated transition apply.  I.e., on the list view you have:\n  //\n  //   <NavLink to=\"/details/1\" viewTransition>\n  //\n  // If you click the breadcrumb back to the list view:\n  //\n  //   <NavLink to=\"/list\" viewTransition>\n  //\n  // We should apply the transition because it's indicated as active going\n  // from /list -> /details/1 and therefore should be active on the reverse\n  // (even though this isn't strictly a POP reverse)\n  return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;\n}\n//#endregion\n\nexport { BrowserRouter, Form, HashRouter, Link, NavLink, RouterProvider, ScrollRestoration, FetchersContext as UNSAFE_FetchersContext, ViewTransitionContext as UNSAFE_ViewTransitionContext, useScrollRestoration as UNSAFE_useScrollRestoration, createBrowserRouter, createHashRouter, createSearchParams, HistoryRouter as unstable_HistoryRouter, usePrompt as unstable_usePrompt, useBeforeUnload, useFetcher, useFetchers, useFormAction, useLinkClickHandler, useSearchParams, useSubmit, useViewTransitionState };\n//# sourceMappingURL=index.js.map\n","/**\n * React Router v6.30.4\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_decodePath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, replace, resolvePath } from '@remix-run/router';\n\nfunction _extends() {\n  return _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, _extends.apply(null, arguments);\n}\n\n// Create react-specific types from the agnostic types in @remix-run/router to\n// export from react-router\n\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  DataRouterContext.displayName = \"DataRouter\";\n}\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  DataRouterStateContext.displayName = \"DataRouterState\";\n}\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  AwaitContext.displayName = \"Await\";\n}\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level `<Router>` API\n * where both the location and a navigator must be provided separately in order\n * to avoid \"tearing\" that may occur in a suspense-enabled app if the action\n * and/or location were to be read directly from the history instance.\n */\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  NavigationContext.displayName = \"Navigation\";\n}\nconst LocationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  LocationContext.displayName = \"Location\";\n}\nconst RouteContext = /*#__PURE__*/React.createContext({\n  outlet: null,\n  matches: [],\n  isDataRoute: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n  RouteContext.displayName = \"Route\";\n}\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n  RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/v6/hooks/use-href\n */\nfunction useHref(to, _temp) {\n  let {\n    relative\n  } = _temp === void 0 ? {} : _temp;\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n  // router loaded. We can help them understand how to avoid that.\n  \"useHref() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  let {\n    basename,\n    navigator\n  } = React.useContext(NavigationContext);\n  let {\n    hash,\n    pathname,\n    search\n  } = useResolvedPath(to, {\n    relative\n  });\n  let joinedPathname = pathname;\n\n  // If we're operating within a basename, prepend it to the pathname prior\n  // to creating the href.  If this is a root navigation, then just use the raw\n  // basename which allows the basename to have full control over the presence\n  // of a trailing slash on root links\n  if (basename !== \"/\") {\n    joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n  }\n  return navigator.createHref({\n    pathname: joinedPathname,\n    search,\n    hash\n  });\n}\n\n/**\n * Returns true if this component is a descendant of a `<Router>`.\n *\n * @see https://reactrouter.com/v6/hooks/use-in-router-context\n */\nfunction useInRouterContext() {\n  return React.useContext(LocationContext) != null;\n}\n\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/v6/hooks/use-location\n */\nfunction useLocation() {\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n  // router loaded. We can help them understand how to avoid that.\n  \"useLocation() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  return React.useContext(LocationContext).location;\n}\n\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/v6/hooks/use-navigation-type\n */\nfunction useNavigationType() {\n  return React.useContext(LocationContext).navigationType;\n}\n\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * `<NavLink>`.\n *\n * @see https://reactrouter.com/v6/hooks/use-match\n */\nfunction useMatch(pattern) {\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n  // router loaded. We can help them understand how to avoid that.\n  \"useMatch() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  let {\n    pathname\n  } = useLocation();\n  return React.useMemo(() => matchPath(pattern, UNSAFE_decodePath(pathname)), [pathname, pattern]);\n}\n\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\nconst navigateEffectWarning = \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\";\n\n// Mute warnings for calls to useNavigate in SSR environments\nfunction useIsomorphicLayoutEffect(cb) {\n  let isStatic = React.useContext(NavigationContext).static;\n  if (!isStatic) {\n    // We should be able to get rid of this once react 18.3 is released\n    // See: https://github.com/facebook/react/pull/26395\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useLayoutEffect(cb);\n  }\n}\n\n/**\n * Returns an imperative method for changing the location. Used by `<Link>`s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/v6/hooks/use-navigate\n */\nfunction useNavigate() {\n  let {\n    isDataRoute\n  } = React.useContext(RouteContext);\n  // Conditional usage is OK here because the usage of a data router is static\n  // eslint-disable-next-line react-hooks/rules-of-hooks\n  return isDataRoute ? useNavigateStable() : useNavigateUnstable();\n}\nfunction useNavigateUnstable() {\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n  // router loaded. We can help them understand how to avoid that.\n  \"useNavigate() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  let dataRouterContext = React.useContext(DataRouterContext);\n  let {\n    basename,\n    future,\n    navigator\n  } = React.useContext(NavigationContext);\n  let {\n    matches\n  } = React.useContext(RouteContext);\n  let {\n    pathname: locationPathname\n  } = useLocation();\n  let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n  let activeRef = React.useRef(false);\n  useIsomorphicLayoutEffect(() => {\n    activeRef.current = true;\n  });\n  let navigate = React.useCallback(function (to, options) {\n    if (options === void 0) {\n      options = {};\n    }\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n    // Short circuit here since if this happens on first render the navigate\n    // is useless because we haven't wired up our history listener yet\n    if (!activeRef.current) return;\n    if (typeof to === \"number\") {\n      navigator.go(to);\n      return;\n    }\n    let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\");\n\n    // If we're operating within a basename, prepend it to the pathname prior\n    // to handing off to history (but only if we're not in a data router,\n    // otherwise it'll prepend the basename inside of the router).\n    // If this is a root navigation, then we navigate to the raw basename\n    // which allows the basename to have full control over the presence of a\n    // trailing slash on root links\n    if (dataRouterContext == null && basename !== \"/\") {\n      path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n    }\n    (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n  }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);\n  return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/v6/hooks/use-outlet-context\n */\nfunction useOutletContext() {\n  return React.useContext(OutletContext);\n}\n\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by `<Outlet>` to render child routes.\n *\n * @see https://reactrouter.com/v6/hooks/use-outlet\n */\nfunction useOutlet(context) {\n  let outlet = React.useContext(RouteContext).outlet;\n  if (outlet) {\n    return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n      value: context\n    }, outlet);\n  }\n  return outlet;\n}\n\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/v6/hooks/use-params\n */\nfunction useParams() {\n  let {\n    matches\n  } = React.useContext(RouteContext);\n  let routeMatch = matches[matches.length - 1];\n  return routeMatch ? routeMatch.params : {};\n}\n\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/v6/hooks/use-resolved-path\n */\nfunction useResolvedPath(to, _temp2) {\n  let {\n    relative\n  } = _temp2 === void 0 ? {} : _temp2;\n  let {\n    future\n  } = React.useContext(NavigationContext);\n  let {\n    matches\n  } = React.useContext(RouteContext);\n  let {\n    pathname: locationPathname\n  } = useLocation();\n  let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n  return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an `<Outlet>` to render their child route's\n * element.\n *\n * @see https://reactrouter.com/v6/hooks/use-routes\n */\nfunction useRoutes(routes, locationArg) {\n  return useRoutesImpl(routes, locationArg);\n}\n\n// Internal implementation with accept optional param for RouterProvider usage\nfunction useRoutesImpl(routes, locationArg, dataRouterState, future) {\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n  // router loaded. We can help them understand how to avoid that.\n  \"useRoutes() may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  let {\n    navigator\n  } = React.useContext(NavigationContext);\n  let {\n    matches: parentMatches\n  } = React.useContext(RouteContext);\n  let routeMatch = parentMatches[parentMatches.length - 1];\n  let parentParams = routeMatch ? routeMatch.params : {};\n  let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n  let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n  let parentRoute = routeMatch && routeMatch.route;\n  if (process.env.NODE_ENV !== \"production\") {\n    // You won't get a warning about 2 different <Routes> under a <Route>\n    // without a trailing *, but this is a best-effort warning anyway since we\n    // cannot even give the warning unless they land at the parent route.\n    //\n    // Example:\n    //\n    // <Routes>\n    //   {/* This route path MUST end with /* because otherwise\n    //       it will never match /blog/post/123 */}\n    //   <Route path=\"blog\" element={<Blog />} />\n    //   <Route path=\"blog/feed\" element={<BlogFeed />} />\n    // </Routes>\n    //\n    // function Blog() {\n    //   return (\n    //     <Routes>\n    //       <Route path=\"post/:id\" element={<Post />} />\n    //     </Routes>\n    //   );\n    // }\n    let parentPath = parentRoute && parentRoute.path || \"\";\n    warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant <Routes> (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under <Route path=\\\"\" + parentPath + \"\\\">) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent <Route path=\\\"\" + parentPath + \"\\\"> to <Route \") + (\"path=\\\"\" + (parentPath === \"/\" ? \"*\" : parentPath + \"/*\") + \"\\\">.\"));\n  }\n  let locationFromContext = useLocation();\n  let location;\n  if (locationArg) {\n    var _parsedLocationArg$pa;\n    let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n    !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : UNSAFE_invariant(false) : void 0;\n    location = parsedLocationArg;\n  } else {\n    location = locationFromContext;\n  }\n  let pathname = location.pathname || \"/\";\n  let remainingPathname = pathname;\n  if (parentPathnameBase !== \"/\") {\n    // Determine the remaining pathname by removing the # of URL segments the\n    // parentPathnameBase has, instead of removing based on character count.\n    // This is because we can't guarantee that incoming/outgoing encodings/\n    // decodings will match exactly.\n    // We decode paths before matching on a per-segment basis with\n    // decodeURIComponent(), but we re-encode pathnames via `new URL()` so they\n    // match what `window.location.pathname` would reflect.  Those don't 100%\n    // align when it comes to encoded URI characters such as % and &.\n    //\n    // So we may end up with:\n    //   pathname:           \"/descendant/a%25b/match\"\n    //   parentPathnameBase: \"/descendant/a%b\"\n    //\n    // And the direct substring removal approach won't work :/\n    let parentSegments = parentPathnameBase.replace(/^\\//, \"\").split(\"/\");\n    let segments = pathname.replace(/^\\//, \"\").split(\"/\");\n    remainingPathname = \"/\" + segments.slice(parentSegments.length).join(\"/\");\n  }\n  let matches = matchRoutes(routes, {\n    pathname: remainingPathname\n  });\n  if (process.env.NODE_ENV !== \"production\") {\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(matches == null || matches[matches.length - 1].route.element !== undefined || matches[matches.length - 1].route.Component !== undefined || matches[matches.length - 1].route.lazy !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \" + \"does not have an element or Component. This means it will render an <Outlet /> with a \" + \"null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n  }\n  let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n    params: Object.assign({}, parentParams, match.params),\n    pathname: joinPaths([parentPathnameBase,\n    // Re-encode pathnames that were decoded inside matchRoutes\n    navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n    pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase,\n    // Re-encode pathnames that were decoded inside matchRoutes\n    navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n  })), parentMatches, dataRouterState, future);\n\n  // When a user passes in a `locationArg`, the associated routes need to\n  // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n  // to use the scoped location instead of the global location.\n  if (locationArg && renderedMatches) {\n    return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n      value: {\n        location: _extends({\n          pathname: \"/\",\n          search: \"\",\n          hash: \"\",\n          state: null,\n          key: \"default\"\n        }, location),\n        navigationType: Action.Pop\n      }\n    }, renderedMatches);\n  }\n  return renderedMatches;\n}\nfunction DefaultErrorComponent() {\n  let error = useRouteError();\n  let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n  let stack = error instanceof Error ? error.stack : null;\n  let lightgrey = \"rgba(200,200,200, 0.5)\";\n  let preStyles = {\n    padding: \"0.5rem\",\n    backgroundColor: lightgrey\n  };\n  let codeStyles = {\n    padding: \"2px 4px\",\n    backgroundColor: lightgrey\n  };\n  let devInfo = null;\n  if (process.env.NODE_ENV !== \"production\") {\n    console.error(\"Error handled by React Router default ErrorBoundary:\", error);\n    devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own \", /*#__PURE__*/React.createElement(\"code\", {\n      style: codeStyles\n    }, \"ErrorBoundary\"), \" or\", \" \", /*#__PURE__*/React.createElement(\"code\", {\n      style: codeStyles\n    }, \"errorElement\"), \" prop on your route.\"));\n  }\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n    style: {\n      fontStyle: \"italic\"\n    }\n  }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n    style: preStyles\n  }, stack) : null, devInfo);\n}\nconst defaultErrorElement = /*#__PURE__*/React.createElement(DefaultErrorComponent, null);\nclass RenderErrorBoundary extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      location: props.location,\n      revalidation: props.revalidation,\n      error: props.error\n    };\n  }\n  static getDerivedStateFromError(error) {\n    return {\n      error: error\n    };\n  }\n  static getDerivedStateFromProps(props, state) {\n    // When we get into an error state, the user will likely click \"back\" to the\n    // previous page that didn't have an error. Because this wraps the entire\n    // application, that will have no effect--the error page continues to display.\n    // This gives us a mechanism to recover from the error when the location changes.\n    //\n    // Whether we're in an error state or not, we update the location in state\n    // so that when we are in an error state, it gets reset when a new location\n    // comes in and the user recovers from the error.\n    if (state.location !== props.location || state.revalidation !== \"idle\" && props.revalidation === \"idle\") {\n      return {\n        error: props.error,\n        location: props.location,\n        revalidation: props.revalidation\n      };\n    }\n\n    // If we're not changing locations, preserve the location but still surface\n    // any new errors that may come through. We retain the existing error, we do\n    // this because the error provided from the app state may be cleared without\n    // the location changing.\n    return {\n      error: props.error !== undefined ? props.error : state.error,\n      location: state.location,\n      revalidation: props.revalidation || state.revalidation\n    };\n  }\n  componentDidCatch(error, errorInfo) {\n    console.error(\"React Router caught the following error during render\", error, errorInfo);\n  }\n  render() {\n    return this.state.error !== undefined ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n      value: this.props.routeContext\n    }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n      value: this.state.error,\n      children: this.props.component\n    })) : this.props.children;\n  }\n}\nfunction RenderedRoute(_ref) {\n  let {\n    routeContext,\n    match,\n    children\n  } = _ref;\n  let dataRouterContext = React.useContext(DataRouterContext);\n\n  // Track how deep we got in our render pass to emulate SSR componentDidCatch\n  // in a DataStaticRouter\n  if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) {\n    dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n  }\n  return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n    value: routeContext\n  }, children);\n}\nfunction _renderMatches(matches, parentMatches, dataRouterState, future) {\n  var _dataRouterState;\n  if (parentMatches === void 0) {\n    parentMatches = [];\n  }\n  if (dataRouterState === void 0) {\n    dataRouterState = null;\n  }\n  if (future === void 0) {\n    future = null;\n  }\n  if (matches == null) {\n    var _future;\n    if (!dataRouterState) {\n      return null;\n    }\n    if (dataRouterState.errors) {\n      // Don't bail if we have data router errors so we can render them in the\n      // boundary.  Use the pre-matched (or shimmed) matches\n      matches = dataRouterState.matches;\n    } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {\n      // Don't bail if we're initializing with partial hydration and we have\n      // router matches.  That means we're actively running `patchRoutesOnNavigation`\n      // so we should render down the partial matches to the appropriate\n      // `HydrateFallback`.  We only do this if `parentMatches` is empty so it\n      // only impacts the root matches for `RouterProvider` and no descendant\n      // `<Routes>`\n      matches = dataRouterState.matches;\n    } else {\n      return null;\n    }\n  }\n  let renderedMatches = matches;\n\n  // If we have data errors, trim matches to the highest error boundary\n  let errors = (_dataRouterState = dataRouterState) == null ? void 0 : _dataRouterState.errors;\n  if (errors != null) {\n    let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== undefined);\n    !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"Could not find a matching route for errors on route IDs: \" + Object.keys(errors).join(\",\")) : UNSAFE_invariant(false) : void 0;\n    renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n  }\n\n  // If we're in a partial hydration mode, detect if we need to render down to\n  // a given HydrateFallback while we load the rest of the hydration data\n  let renderFallback = false;\n  let fallbackIndex = -1;\n  if (dataRouterState && future && future.v7_partialHydration) {\n    for (let i = 0; i < renderedMatches.length; i++) {\n      let match = renderedMatches[i];\n      // Track the deepest fallback up until the first route without data\n      if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {\n        fallbackIndex = i;\n      }\n      if (match.route.id) {\n        let {\n          loaderData,\n          errors\n        } = dataRouterState;\n        let needsToRunLoader = match.route.loader && loaderData[match.route.id] === undefined && (!errors || errors[match.route.id] === undefined);\n        if (match.route.lazy || needsToRunLoader) {\n          // We found the first route that's not ready to render (waiting on\n          // lazy, or has a loader that hasn't run yet).  Flag that we need to\n          // render a fallback and render up until the appropriate fallback\n          renderFallback = true;\n          if (fallbackIndex >= 0) {\n            renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);\n          } else {\n            renderedMatches = [renderedMatches[0]];\n          }\n          break;\n        }\n      }\n    }\n  }\n  return renderedMatches.reduceRight((outlet, match, index) => {\n    // Only data routers handle errors/fallbacks\n    let error;\n    let shouldRenderHydrateFallback = false;\n    let errorElement = null;\n    let hydrateFallbackElement = null;\n    if (dataRouterState) {\n      error = errors && match.route.id ? errors[match.route.id] : undefined;\n      errorElement = match.route.errorElement || defaultErrorElement;\n      if (renderFallback) {\n        if (fallbackIndex < 0 && index === 0) {\n          warningOnce(\"route-fallback\", false, \"No `HydrateFallback` element provided to render during initial hydration\");\n          shouldRenderHydrateFallback = true;\n          hydrateFallbackElement = null;\n        } else if (fallbackIndex === index) {\n          shouldRenderHydrateFallback = true;\n          hydrateFallbackElement = match.route.hydrateFallbackElement || null;\n        }\n      }\n    }\n    let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n    let getChildren = () => {\n      let children;\n      if (error) {\n        children = errorElement;\n      } else if (shouldRenderHydrateFallback) {\n        children = hydrateFallbackElement;\n      } else if (match.route.Component) {\n        // Note: This is a de-optimized path since React won't re-use the\n        // ReactElement since it's identity changes with each new\n        // React.createElement call.  We keep this so folks can use\n        // `<Route Component={...}>` in `<Routes>` but generally `Component`\n        // usage is only advised in `RouterProvider` when we can convert it to\n        // `element` ahead of time.\n        children = /*#__PURE__*/React.createElement(match.route.Component, null);\n      } else if (match.route.element) {\n        children = match.route.element;\n      } else {\n        children = outlet;\n      }\n      return /*#__PURE__*/React.createElement(RenderedRoute, {\n        match: match,\n        routeContext: {\n          outlet,\n          matches,\n          isDataRoute: dataRouterState != null\n        },\n        children: children\n      });\n    };\n    // Only wrap in an error boundary within data router usages when we have an\n    // ErrorBoundary/errorElement on this route.  Otherwise let it bubble up to\n    // an ancestor ErrorBoundary/errorElement\n    return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n      location: dataRouterState.location,\n      revalidation: dataRouterState.revalidation,\n      component: errorElement,\n      error: error,\n      children: getChildren(),\n      routeContext: {\n        outlet: null,\n        matches,\n        isDataRoute: true\n      }\n    }) : getChildren();\n  }, null);\n}\nvar DataRouterHook = /*#__PURE__*/function (DataRouterHook) {\n  DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n  DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n  DataRouterHook[\"UseNavigateStable\"] = \"useNavigate\";\n  return DataRouterHook;\n}(DataRouterHook || {});\nvar DataRouterStateHook = /*#__PURE__*/function (DataRouterStateHook) {\n  DataRouterStateHook[\"UseBlocker\"] = \"useBlocker\";\n  DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n  DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n  DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n  DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n  DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n  DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n  DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n  DataRouterStateHook[\"UseNavigateStable\"] = \"useNavigate\";\n  DataRouterStateHook[\"UseRouteId\"] = \"useRouteId\";\n  return DataRouterStateHook;\n}(DataRouterStateHook || {});\nfunction getDataRouterConsoleError(hookName) {\n  return hookName + \" must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n  let ctx = React.useContext(DataRouterContext);\n  !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n  return ctx;\n}\nfunction useDataRouterState(hookName) {\n  let state = React.useContext(DataRouterStateContext);\n  !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n  return state;\n}\nfunction useRouteContext(hookName) {\n  let route = React.useContext(RouteContext);\n  !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n  return route;\n}\n\n// Internal version with hookName-aware debugging\nfunction useCurrentRouteId(hookName) {\n  let route = useRouteContext(hookName);\n  let thisRoute = route.matches[route.matches.length - 1];\n  !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n  return thisRoute.route.id;\n}\n\n/**\n * Returns the ID for the nearest contextual route\n */\nfunction useRouteId() {\n  return useCurrentRouteId(DataRouterStateHook.UseRouteId);\n}\n\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\nfunction useNavigation() {\n  let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n  return state.navigation;\n}\n\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\nfunction useRevalidator() {\n  let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n  let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n  return React.useMemo(() => ({\n    revalidate: dataRouterContext.router.revalidate,\n    state: state.revalidation\n  }), [dataRouterContext.router.revalidate, state.revalidation]);\n}\n\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\nfunction useMatches() {\n  let {\n    matches,\n    loaderData\n  } = useDataRouterState(DataRouterStateHook.UseMatches);\n  return React.useMemo(() => matches.map(m => UNSAFE_convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);\n}\n\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\nfunction useLoaderData() {\n  let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n  let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n  if (state.errors && state.errors[routeId] != null) {\n    console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n    return undefined;\n  }\n  return state.loaderData[routeId];\n}\n\n/**\n * Returns the loaderData for the given routeId\n */\nfunction useRouteLoaderData(routeId) {\n  let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n  return state.loaderData[routeId];\n}\n\n/**\n * Returns the action data for the nearest ancestor Route action\n */\nfunction useActionData() {\n  let state = useDataRouterState(DataRouterStateHook.UseActionData);\n  let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n  return state.actionData ? state.actionData[routeId] : undefined;\n}\n\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error.  This is intended to be called from your\n * ErrorBoundary/errorElement to display a proper error message.\n */\nfunction useRouteError() {\n  var _state$errors;\n  let error = React.useContext(RouteErrorContext);\n  let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n  let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);\n\n  // If this was a render error, we put it in a RouteError context inside\n  // of RenderErrorBoundary\n  if (error !== undefined) {\n    return error;\n  }\n\n  // Otherwise look for errors from our data router state\n  return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n\n/**\n * Returns the happy-path data from the nearest ancestor `<Await />` value\n */\nfunction useAsyncValue() {\n  let value = React.useContext(AwaitContext);\n  return value == null ? void 0 : value._data;\n}\n\n/**\n * Returns the error from the nearest ancestor `<Await />` value\n */\nfunction useAsyncError() {\n  let value = React.useContext(AwaitContext);\n  return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation.  Mostly used to avoid\n * using half-filled form data.  This does not handle hard-reloads or\n * cross-origin navigations.\n */\nfunction useBlocker(shouldBlock) {\n  let {\n    router,\n    basename\n  } = useDataRouterContext(DataRouterHook.UseBlocker);\n  let state = useDataRouterState(DataRouterStateHook.UseBlocker);\n  let [blockerKey, setBlockerKey] = React.useState(\"\");\n  let blockerFunction = React.useCallback(arg => {\n    if (typeof shouldBlock !== \"function\") {\n      return !!shouldBlock;\n    }\n    if (basename === \"/\") {\n      return shouldBlock(arg);\n    }\n\n    // If they provided us a function and we've got an active basename, strip\n    // it from the locations we expose to the user to match the behavior of\n    // useLocation\n    let {\n      currentLocation,\n      nextLocation,\n      historyAction\n    } = arg;\n    return shouldBlock({\n      currentLocation: _extends({}, currentLocation, {\n        pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname\n      }),\n      nextLocation: _extends({}, nextLocation, {\n        pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname\n      }),\n      historyAction\n    });\n  }, [basename, shouldBlock]);\n\n  // This effect is in charge of blocker key assignment and deletion (which is\n  // tightly coupled to the key)\n  React.useEffect(() => {\n    let key = String(++blockerId);\n    setBlockerKey(key);\n    return () => router.deleteBlocker(key);\n  }, [router]);\n\n  // This effect handles assigning the blockerFunction.  This is to handle\n  // unstable blocker function identities, and happens only after the prior\n  // effect so we don't get an orphaned blockerFunction in the router with a\n  // key of \"\".  Until then we just have the IDLE_BLOCKER.\n  React.useEffect(() => {\n    if (blockerKey !== \"\") {\n      router.getBlocker(blockerKey, blockerFunction);\n    }\n  }, [router, blockerKey, blockerFunction]);\n\n  // Prefer the blocker from `state` not `router.state` since DataRouterContext\n  // is memoized so this ensures we update on blocker state updates\n  return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;\n}\n\n/**\n * Stable version of useNavigate that is used when we are in the context of\n * a RouterProvider.\n */\nfunction useNavigateStable() {\n  let {\n    router\n  } = useDataRouterContext(DataRouterHook.UseNavigateStable);\n  let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);\n  let activeRef = React.useRef(false);\n  useIsomorphicLayoutEffect(() => {\n    activeRef.current = true;\n  });\n  let navigate = React.useCallback(function (to, options) {\n    if (options === void 0) {\n      options = {};\n    }\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n    // Short circuit here since if this happens on first render the navigate\n    // is useless because we haven't wired up our router subscriber yet\n    if (!activeRef.current) return;\n    if (typeof to === \"number\") {\n      router.navigate(to);\n    } else {\n      router.navigate(to, _extends({\n        fromRouteId: id\n      }, options));\n    }\n  }, [router, id]);\n  return navigate;\n}\nconst alreadyWarned$1 = {};\nfunction warningOnce(key, cond, message) {\n  if (!cond && !alreadyWarned$1[key]) {\n    alreadyWarned$1[key] = true;\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, message) : void 0;\n  }\n}\n\nconst alreadyWarned = {};\nfunction warnOnce(key, message) {\n  if (process.env.NODE_ENV !== \"production\" && !alreadyWarned[message]) {\n    alreadyWarned[message] = true;\n    console.warn(message);\n  }\n}\nconst logDeprecation = (flag, msg, link) => warnOnce(flag, \"\\u26A0\\uFE0F React Router Future Flag Warning: \" + msg + \". \" + (\"You can use the `\" + flag + \"` future flag to opt-in early. \") + (\"For more information, see \" + link + \".\"));\nfunction logV6DeprecationWarnings(renderFuture, routerFuture) {\n  if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === undefined) {\n    logDeprecation(\"v7_startTransition\", \"React Router will begin wrapping state updates in `React.startTransition` in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_starttransition\");\n  }\n  if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture || routerFuture.v7_relativeSplatPath === undefined)) {\n    logDeprecation(\"v7_relativeSplatPath\", \"Relative route resolution within Splat routes is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath\");\n  }\n  if (routerFuture) {\n    if (routerFuture.v7_fetcherPersist === undefined) {\n      logDeprecation(\"v7_fetcherPersist\", \"The persistence behavior of fetchers is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist\");\n    }\n    if (routerFuture.v7_normalizeFormMethod === undefined) {\n      logDeprecation(\"v7_normalizeFormMethod\", \"Casing of `formMethod` fields is being normalized to uppercase in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod\");\n    }\n    if (routerFuture.v7_partialHydration === undefined) {\n      logDeprecation(\"v7_partialHydration\", \"`RouterProvider` hydration behavior is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_partialhydration\");\n    }\n    if (routerFuture.v7_skipActionErrorRevalidation === undefined) {\n      logDeprecation(\"v7_skipActionErrorRevalidation\", \"The revalidation behavior after 4xx/5xx `action` responses is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation\");\n    }\n  }\n}\n\n/**\n  Webpack + React 17 fails to compile on any of the following because webpack\n  complains that `startTransition` doesn't exist in `React`:\n  * import { startTransition } from \"react\"\n  * import * as React from from \"react\";\n    \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n  * import * as React from from \"react\";\n    \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n  Moving it to a constant such as the following solves the Webpack/React 17 issue:\n  * import * as React from from \"react\";\n    const START_TRANSITION = \"startTransition\";\n    START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n  However, that introduces webpack/terser minification issues in production builds\n  in React 18 where minification/obfuscation ends up removing the call of\n  React.startTransition entirely from the first half of the ternary.  Grabbing\n  this exported reference once up front resolves that issue.\n\n  See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n  let {\n    fallbackElement,\n    router,\n    future\n  } = _ref;\n  let [state, setStateImpl] = React.useState(router.state);\n  let {\n    v7_startTransition\n  } = future || {};\n  let setState = React.useCallback(newState => {\n    if (v7_startTransition && startTransitionImpl) {\n      startTransitionImpl(() => setStateImpl(newState));\n    } else {\n      setStateImpl(newState);\n    }\n  }, [setStateImpl, v7_startTransition]);\n\n  // Need to use a layout effect here so we are subscribed early enough to\n  // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)\n  React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n  React.useEffect(() => {\n    process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`<RouterProvider fallbackElement>` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n    // Only log this once on initial mount\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n  let navigator = React.useMemo(() => {\n    return {\n      createHref: router.createHref,\n      encodeLocation: router.encodeLocation,\n      go: n => router.navigate(n),\n      push: (to, state, opts) => router.navigate(to, {\n        state,\n        preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n      }),\n      replace: (to, state, opts) => router.navigate(to, {\n        replace: true,\n        state,\n        preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n      })\n    };\n  }, [router]);\n  let basename = router.basename || \"/\";\n  let dataRouterContext = React.useMemo(() => ({\n    router,\n    navigator,\n    static: false,\n    basename\n  }), [router, navigator, basename]);\n  React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);\n\n  // The fragment and {null} here are important!  We need them to keep React 18's\n  // useId happy when we are server-rendering since we may have a <script> here\n  // containing the hydrated server-side staticContext (from StaticRouterProvider).\n  // useId relies on the component tree structure to generate deterministic id's\n  // so we need to ensure it remains the same on the client even though\n  // we don't need the <script> tag\n  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DataRouterContext.Provider, {\n    value: dataRouterContext\n  }, /*#__PURE__*/React.createElement(DataRouterStateContext.Provider, {\n    value: state\n  }, /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    location: state.location,\n    navigationType: state.historyAction,\n    navigator: navigator,\n    future: {\n      v7_relativeSplatPath: router.future.v7_relativeSplatPath\n    }\n  }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {\n    routes: router.routes,\n    future: router.future,\n    state: state\n  }) : fallbackElement))), null);\n}\nfunction DataRoutes(_ref2) {\n  let {\n    routes,\n    future,\n    state\n  } = _ref2;\n  return useRoutesImpl(routes, undefined, state, future);\n}\n/**\n * A `<Router>` that stores all entries in memory.\n *\n * @see https://reactrouter.com/v6/router-components/memory-router\n */\nfunction MemoryRouter(_ref3) {\n  let {\n    basename,\n    children,\n    initialEntries,\n    initialIndex,\n    future\n  } = _ref3;\n  let historyRef = React.useRef();\n  if (historyRef.current == null) {\n    historyRef.current = createMemoryHistory({\n      initialEntries,\n      initialIndex,\n      v5Compat: true\n    });\n  }\n  let history = historyRef.current;\n  let [state, setStateImpl] = React.useState({\n    action: history.action,\n    location: history.location\n  });\n  let {\n    v7_startTransition\n  } = future || {};\n  let setState = React.useCallback(newState => {\n    v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState);\n  }, [setStateImpl, v7_startTransition]);\n  React.useLayoutEffect(() => history.listen(setState), [history, setState]);\n  React.useEffect(() => logV6DeprecationWarnings(future), [future]);\n  return /*#__PURE__*/React.createElement(Router, {\n    basename: basename,\n    children: children,\n    location: state.location,\n    navigationType: state.action,\n    navigator: history,\n    future: future\n  });\n}\n/**\n * Changes the current location.\n *\n * Note: This API is mostly useful in React.Component subclasses that are not\n * able to use hooks. In functional components, we recommend you use the\n * `useNavigate` hook instead.\n *\n * @see https://reactrouter.com/v6/components/navigate\n */\nfunction Navigate(_ref4) {\n  let {\n    to,\n    replace,\n    state,\n    relative\n  } = _ref4;\n  !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of\n  // the router loaded. We can help them understand how to avoid that.\n  \"<Navigate> may be used only in the context of a <Router> component.\") : UNSAFE_invariant(false) : void 0;\n  let {\n    future,\n    static: isStatic\n  } = React.useContext(NavigationContext);\n  process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(!isStatic, \"<Navigate> must not be used on the initial render in a <StaticRouter>. \" + \"This is a no-op, but you should modify your code so the <Navigate> is \" + \"only ever rendered in response to some user interaction or state change.\") : void 0;\n  let {\n    matches\n  } = React.useContext(RouteContext);\n  let {\n    pathname: locationPathname\n  } = useLocation();\n  let navigate = useNavigate();\n\n  // Resolve the path outside of the effect so that when effects run twice in\n  // StrictMode they navigate to the same place\n  let path = resolveTo(to, UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath), locationPathname, relative === \"path\");\n  let jsonPath = JSON.stringify(path);\n  React.useEffect(() => navigate(JSON.parse(jsonPath), {\n    replace,\n    state,\n    relative\n  }), [navigate, jsonPath, relative, replace, state]);\n  return null;\n}\n/**\n * Renders the child route's element, if there is one.\n *\n * @see https://reactrouter.com/v6/components/outlet\n */\nfunction Outlet(props) {\n  return useOutlet(props.context);\n}\n/**\n * Declares an element that should be rendered at a certain URL path.\n *\n * @see https://reactrouter.com/v6/components/route\n */\nfunction Route(_props) {\n  process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"A <Route> is only ever to be used as the child of <Routes> element, \" + \"never rendered directly. Please wrap your <Route> in a <Routes>.\") : UNSAFE_invariant(false) ;\n}\n/**\n * Provides location context for the rest of the app.\n *\n * Note: You usually won't render a `<Router>` directly. Instead, you'll render a\n * router that is more specific to your environment such as a `<BrowserRouter>`\n * in web browsers or a `<StaticRouter>` for server rendering.\n *\n * @see https://reactrouter.com/v6/router-components/router\n */\nfunction Router(_ref5) {\n  let {\n    basename: basenameProp = \"/\",\n    children = null,\n    location: locationProp,\n    navigationType = Action.Pop,\n    navigator,\n    static: staticProp = false,\n    future\n  } = _ref5;\n  !!useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"You cannot render a <Router> inside another <Router>.\" + \" You should never have more than one in your app.\") : UNSAFE_invariant(false) : void 0;\n\n  // Preserve trailing slashes on basename, so we can let the user control\n  // the enforcement of trailing slashes throughout the app\n  let basename = basenameProp.replace(/^\\/*/, \"/\");\n  let navigationContext = React.useMemo(() => ({\n    basename,\n    navigator,\n    static: staticProp,\n    future: _extends({\n      v7_relativeSplatPath: false\n    }, future)\n  }), [basename, future, navigator, staticProp]);\n  if (typeof locationProp === \"string\") {\n    locationProp = parsePath(locationProp);\n  }\n  let {\n    pathname = \"/\",\n    search = \"\",\n    hash = \"\",\n    state = null,\n    key = \"default\"\n  } = locationProp;\n  let locationContext = React.useMemo(() => {\n    let trailingPathname = stripBasename(pathname, basename);\n    if (trailingPathname == null) {\n      return null;\n    }\n    return {\n      location: {\n        pathname: trailingPathname,\n        search,\n        hash,\n        state,\n        key\n      },\n      navigationType\n    };\n  }, [basename, pathname, search, hash, state, key, navigationType]);\n  process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(locationContext != null, \"<Router basename=\\\"\" + basename + \"\\\"> is not able to match the URL \" + (\"\\\"\" + pathname + search + hash + \"\\\" because it does not start with the \") + \"basename, so the <Router> won't render anything.\") : void 0;\n  if (locationContext == null) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(NavigationContext.Provider, {\n    value: navigationContext\n  }, /*#__PURE__*/React.createElement(LocationContext.Provider, {\n    children: children,\n    value: locationContext\n  }));\n}\n/**\n * A container for a nested tree of `<Route>` elements that renders the branch\n * that best matches the current location.\n *\n * @see https://reactrouter.com/v6/components/routes\n */\nfunction Routes(_ref6) {\n  let {\n    children,\n    location\n  } = _ref6;\n  return useRoutes(createRoutesFromChildren(children), location);\n}\n/**\n * Component to use for rendering lazily loaded data from returning defer()\n * in a loader function\n */\nfunction Await(_ref7) {\n  let {\n    children,\n    errorElement,\n    resolve\n  } = _ref7;\n  return /*#__PURE__*/React.createElement(AwaitErrorBoundary, {\n    resolve: resolve,\n    errorElement: errorElement\n  }, /*#__PURE__*/React.createElement(ResolveAwait, null, children));\n}\nvar AwaitRenderStatus = /*#__PURE__*/function (AwaitRenderStatus) {\n  AwaitRenderStatus[AwaitRenderStatus[\"pending\"] = 0] = \"pending\";\n  AwaitRenderStatus[AwaitRenderStatus[\"success\"] = 1] = \"success\";\n  AwaitRenderStatus[AwaitRenderStatus[\"error\"] = 2] = \"error\";\n  return AwaitRenderStatus;\n}(AwaitRenderStatus || {});\nconst neverSettledPromise = new Promise(() => {});\nclass AwaitErrorBoundary extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      error: null\n    };\n  }\n  static getDerivedStateFromError(error) {\n    return {\n      error\n    };\n  }\n  componentDidCatch(error, errorInfo) {\n    console.error(\"<Await> caught the following error during render\", error, errorInfo);\n  }\n  render() {\n    let {\n      children,\n      errorElement,\n      resolve\n    } = this.props;\n    let promise = null;\n    let status = AwaitRenderStatus.pending;\n    if (!(resolve instanceof Promise)) {\n      // Didn't get a promise - provide as a resolved promise\n      status = AwaitRenderStatus.success;\n      promise = Promise.resolve();\n      Object.defineProperty(promise, \"_tracked\", {\n        get: () => true\n      });\n      Object.defineProperty(promise, \"_data\", {\n        get: () => resolve\n      });\n    } else if (this.state.error) {\n      // Caught a render error, provide it as a rejected promise\n      status = AwaitRenderStatus.error;\n      let renderError = this.state.error;\n      promise = Promise.reject().catch(() => {}); // Avoid unhandled rejection warnings\n      Object.defineProperty(promise, \"_tracked\", {\n        get: () => true\n      });\n      Object.defineProperty(promise, \"_error\", {\n        get: () => renderError\n      });\n    } else if (resolve._tracked) {\n      // Already tracked promise - check contents\n      promise = resolve;\n      status = \"_error\" in promise ? AwaitRenderStatus.error : \"_data\" in promise ? AwaitRenderStatus.success : AwaitRenderStatus.pending;\n    } else {\n      // Raw (untracked) promise - track it\n      status = AwaitRenderStatus.pending;\n      Object.defineProperty(resolve, \"_tracked\", {\n        get: () => true\n      });\n      promise = resolve.then(data => Object.defineProperty(resolve, \"_data\", {\n        get: () => data\n      }), error => Object.defineProperty(resolve, \"_error\", {\n        get: () => error\n      }));\n    }\n    if (status === AwaitRenderStatus.error && promise._error instanceof AbortedDeferredError) {\n      // Freeze the UI by throwing a never resolved promise\n      throw neverSettledPromise;\n    }\n    if (status === AwaitRenderStatus.error && !errorElement) {\n      // No errorElement, throw to the nearest route-level error boundary\n      throw promise._error;\n    }\n    if (status === AwaitRenderStatus.error) {\n      // Render via our errorElement\n      return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n        value: promise,\n        children: errorElement\n      });\n    }\n    if (status === AwaitRenderStatus.success) {\n      // Render children with resolved value\n      return /*#__PURE__*/React.createElement(AwaitContext.Provider, {\n        value: promise,\n        children: children\n      });\n    }\n\n    // Throw to the suspense boundary\n    throw promise;\n  }\n}\n\n/**\n * @private\n * Indirection to leverage useAsyncValue for a render-prop API on `<Await>`\n */\nfunction ResolveAwait(_ref8) {\n  let {\n    children\n  } = _ref8;\n  let data = useAsyncValue();\n  let toRender = typeof children === \"function\" ? children(data) : children;\n  return /*#__PURE__*/React.createElement(React.Fragment, null, toRender);\n}\n\n///////////////////////////////////////////////////////////////////////////////\n// UTILS\n///////////////////////////////////////////////////////////////////////////////\n\n/**\n * Creates a route config from a React \"children\" object, which is usually\n * either a `<Route>` element or an array of them. Used internally by\n * `<Routes>` to create a route config from its children.\n *\n * @see https://reactrouter.com/v6/utils/create-routes-from-children\n */\nfunction createRoutesFromChildren(children, parentPath) {\n  if (parentPath === void 0) {\n    parentPath = [];\n  }\n  let routes = [];\n  React.Children.forEach(children, (element, index) => {\n    if (! /*#__PURE__*/React.isValidElement(element)) {\n      // Ignore non-elements. This allows people to more easily inline\n      // conditionals in their route config.\n      return;\n    }\n    let treePath = [...parentPath, index];\n    if (element.type === React.Fragment) {\n      // Transparently support React.Fragment and its children.\n      routes.push.apply(routes, createRoutesFromChildren(element.props.children, treePath));\n      return;\n    }\n    !(element.type === Route) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"[\" + (typeof element.type === \"string\" ? element.type : element.type.name) + \"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>\") : UNSAFE_invariant(false) : void 0;\n    !(!element.props.index || !element.props.children) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"An index route cannot have child routes.\") : UNSAFE_invariant(false) : void 0;\n    let route = {\n      id: element.props.id || treePath.join(\"-\"),\n      caseSensitive: element.props.caseSensitive,\n      element: element.props.element,\n      Component: element.props.Component,\n      index: element.props.index,\n      path: element.props.path,\n      loader: element.props.loader,\n      action: element.props.action,\n      errorElement: element.props.errorElement,\n      ErrorBoundary: element.props.ErrorBoundary,\n      hasErrorBoundary: element.props.ErrorBoundary != null || element.props.errorElement != null,\n      shouldRevalidate: element.props.shouldRevalidate,\n      handle: element.props.handle,\n      lazy: element.props.lazy\n    };\n    if (element.props.children) {\n      route.children = createRoutesFromChildren(element.props.children, treePath);\n    }\n    routes.push(route);\n  });\n  return routes;\n}\n\n/**\n * Renders the result of `matchRoutes()` into a React element.\n */\nfunction renderMatches(matches) {\n  return _renderMatches(matches);\n}\n\nfunction mapRouteProperties(route) {\n  let updates = {\n    // Note: this check also occurs in createRoutesFromChildren so update\n    // there if you change this -- please and thank you!\n    hasErrorBoundary: route.ErrorBoundary != null || route.errorElement != null\n  };\n  if (route.Component) {\n    if (process.env.NODE_ENV !== \"production\") {\n      if (route.element) {\n        process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `Component` and `element` on your route - \" + \"`Component` will be used.\") : void 0;\n      }\n    }\n    Object.assign(updates, {\n      element: /*#__PURE__*/React.createElement(route.Component),\n      Component: undefined\n    });\n  }\n  if (route.HydrateFallback) {\n    if (process.env.NODE_ENV !== \"production\") {\n      if (route.hydrateFallbackElement) {\n        process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - \" + \"`HydrateFallback` will be used.\") : void 0;\n      }\n    }\n    Object.assign(updates, {\n      hydrateFallbackElement: /*#__PURE__*/React.createElement(route.HydrateFallback),\n      HydrateFallback: undefined\n    });\n  }\n  if (route.ErrorBoundary) {\n    if (process.env.NODE_ENV !== \"production\") {\n      if (route.errorElement) {\n        process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, \"You should not include both `ErrorBoundary` and `errorElement` on your route - \" + \"`ErrorBoundary` will be used.\") : void 0;\n      }\n    }\n    Object.assign(updates, {\n      errorElement: /*#__PURE__*/React.createElement(route.ErrorBoundary),\n      ErrorBoundary: undefined\n    });\n  }\n  return updates;\n}\nfunction createMemoryRouter(routes, opts) {\n  return createRouter({\n    basename: opts == null ? void 0 : opts.basename,\n    future: _extends({}, opts == null ? void 0 : opts.future, {\n      v7_prependBasename: true\n    }),\n    history: createMemoryHistory({\n      initialEntries: opts == null ? void 0 : opts.initialEntries,\n      initialIndex: opts == null ? void 0 : opts.initialIndex\n    }),\n    hydrationData: opts == null ? void 0 : opts.hydrationData,\n    routes,\n    mapRouteProperties,\n    dataStrategy: opts == null ? void 0 : opts.dataStrategy,\n    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation\n  }).initialize();\n}\n\nexport { Await, MemoryRouter, Navigate, Outlet, Route, Router, RouterProvider, Routes, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RouteContext as UNSAFE_RouteContext, logV6DeprecationWarnings as UNSAFE_logV6DeprecationWarnings, mapRouteProperties as UNSAFE_mapRouteProperties, useRouteId as UNSAFE_useRouteId, useRoutesImpl as UNSAFE_useRoutesImpl, createMemoryRouter, createRoutesFromChildren, createRoutesFromChildren as createRoutesFromElements, renderMatches, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };\n//# sourceMappingURL=index.js.map\n","export default {\n  disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n  enter: PropTypes.number,\n  exit: PropTypes.number,\n  appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n  enter: PropTypes.string,\n  exit: PropTypes.string,\n  active: PropTypes.string\n}), PropTypes.shape({\n  enter: PropTypes.string,\n  enterDone: PropTypes.string,\n  enterActive: PropTypes.string,\n  exit: PropTypes.string,\n  exitDone: PropTypes.string,\n  exitActive: PropTypes.string\n})]) : null;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n *   transition: `opacity ${duration}ms ease-in-out`,\n *   opacity: 0,\n * }\n *\n * const transitionStyles = {\n *   entering: { opacity: 1 },\n *   entered:  { opacity: 1 },\n *   exiting:  { opacity: 0 },\n *   exited:  { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n *   <Transition in={inProp} timeout={duration}>\n *     {state => (\n *       <div style={{\n *         ...defaultStyle,\n *         ...transitionStyles[state]\n *       }}>\n *         I'm a fade Transition!\n *       </div>\n *     )}\n *   </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n *  - `'entering'`\n *  - `'entered'`\n *  - `'exiting'`\n *  - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n *   const [inProp, setInProp] = useState(false);\n *   return (\n *     <div>\n *       <Transition in={inProp} timeout={500}>\n *         {state => (\n *           // ...\n *         )}\n *       </Transition>\n *       <button onClick={() => setInProp(true)}>\n *         Click to Enter\n *       </button>\n *     </div>\n *   );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n  _inheritsLoose(Transition, _React$Component);\n\n  function Transition(props, context) {\n    var _this;\n\n    _this = _React$Component.call(this, props, context) || this;\n    var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n    var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n    var initialStatus;\n    _this.appearStatus = null;\n\n    if (props.in) {\n      if (appear) {\n        initialStatus = EXITED;\n        _this.appearStatus = ENTERING;\n      } else {\n        initialStatus = ENTERED;\n      }\n    } else {\n      if (props.unmountOnExit || props.mountOnEnter) {\n        initialStatus = UNMOUNTED;\n      } else {\n        initialStatus = EXITED;\n      }\n    }\n\n    _this.state = {\n      status: initialStatus\n    };\n    _this.nextCallback = null;\n    return _this;\n  }\n\n  Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n    var nextIn = _ref.in;\n\n    if (nextIn && prevState.status === UNMOUNTED) {\n      return {\n        status: EXITED\n      };\n    }\n\n    return null;\n  } // getSnapshotBeforeUpdate(prevProps) {\n  //   let nextStatus = null\n  //   if (prevProps !== this.props) {\n  //     const { status } = this.state\n  //     if (this.props.in) {\n  //       if (status !== ENTERING && status !== ENTERED) {\n  //         nextStatus = ENTERING\n  //       }\n  //     } else {\n  //       if (status === ENTERING || status === ENTERED) {\n  //         nextStatus = EXITING\n  //       }\n  //     }\n  //   }\n  //   return { nextStatus }\n  // }\n  ;\n\n  var _proto = Transition.prototype;\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.updateStatus(true, this.appearStatus);\n  };\n\n  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n    var nextStatus = null;\n\n    if (prevProps !== this.props) {\n      var status = this.state.status;\n\n      if (this.props.in) {\n        if (status !== ENTERING && status !== ENTERED) {\n          nextStatus = ENTERING;\n        }\n      } else {\n        if (status === ENTERING || status === ENTERED) {\n          nextStatus = EXITING;\n        }\n      }\n    }\n\n    this.updateStatus(false, nextStatus);\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    this.cancelNextCallback();\n  };\n\n  _proto.getTimeouts = function getTimeouts() {\n    var timeout = this.props.timeout;\n    var exit, enter, appear;\n    exit = enter = appear = timeout;\n\n    if (timeout != null && typeof timeout !== 'number') {\n      exit = timeout.exit;\n      enter = timeout.enter; // TODO: remove fallback for next major\n\n      appear = timeout.appear !== undefined ? timeout.appear : enter;\n    }\n\n    return {\n      exit: exit,\n      enter: enter,\n      appear: appear\n    };\n  };\n\n  _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n    if (mounting === void 0) {\n      mounting = false;\n    }\n\n    if (nextStatus !== null) {\n      // nextStatus will always be ENTERING or EXITING.\n      this.cancelNextCallback();\n\n      if (nextStatus === ENTERING) {\n        if (this.props.unmountOnExit || this.props.mountOnEnter) {\n          var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n          // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n          // To make the animation happen,  we have to separate each rendering and avoid being processed as batched.\n\n          if (node) forceReflow(node);\n        }\n\n        this.performEnter(mounting);\n      } else {\n        this.performExit();\n      }\n    } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n      this.setState({\n        status: UNMOUNTED\n      });\n    }\n  };\n\n  _proto.performEnter = function performEnter(mounting) {\n    var _this2 = this;\n\n    var enter = this.props.enter;\n    var appearing = this.context ? this.context.isMounting : mounting;\n\n    var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n        maybeNode = _ref2[0],\n        maybeAppearing = _ref2[1];\n\n    var timeouts = this.getTimeouts();\n    var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n    // if we are mounting and running this it means appear _must_ be set\n\n    if (!mounting && !enter || config.disabled) {\n      this.safeSetState({\n        status: ENTERED\n      }, function () {\n        _this2.props.onEntered(maybeNode);\n      });\n      return;\n    }\n\n    this.props.onEnter(maybeNode, maybeAppearing);\n    this.safeSetState({\n      status: ENTERING\n    }, function () {\n      _this2.props.onEntering(maybeNode, maybeAppearing);\n\n      _this2.onTransitionEnd(enterTimeout, function () {\n        _this2.safeSetState({\n          status: ENTERED\n        }, function () {\n          _this2.props.onEntered(maybeNode, maybeAppearing);\n        });\n      });\n    });\n  };\n\n  _proto.performExit = function performExit() {\n    var _this3 = this;\n\n    var exit = this.props.exit;\n    var timeouts = this.getTimeouts();\n    var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n    if (!exit || config.disabled) {\n      this.safeSetState({\n        status: EXITED\n      }, function () {\n        _this3.props.onExited(maybeNode);\n      });\n      return;\n    }\n\n    this.props.onExit(maybeNode);\n    this.safeSetState({\n      status: EXITING\n    }, function () {\n      _this3.props.onExiting(maybeNode);\n\n      _this3.onTransitionEnd(timeouts.exit, function () {\n        _this3.safeSetState({\n          status: EXITED\n        }, function () {\n          _this3.props.onExited(maybeNode);\n        });\n      });\n    });\n  };\n\n  _proto.cancelNextCallback = function cancelNextCallback() {\n    if (this.nextCallback !== null) {\n      this.nextCallback.cancel();\n      this.nextCallback = null;\n    }\n  };\n\n  _proto.safeSetState = function safeSetState(nextState, callback) {\n    // This shouldn't be necessary, but there are weird race conditions with\n    // setState callbacks and unmounting in testing, so always make sure that\n    // we can cancel any pending setState callbacks after we unmount.\n    callback = this.setNextCallback(callback);\n    this.setState(nextState, callback);\n  };\n\n  _proto.setNextCallback = function setNextCallback(callback) {\n    var _this4 = this;\n\n    var active = true;\n\n    this.nextCallback = function (event) {\n      if (active) {\n        active = false;\n        _this4.nextCallback = null;\n        callback(event);\n      }\n    };\n\n    this.nextCallback.cancel = function () {\n      active = false;\n    };\n\n    return this.nextCallback;\n  };\n\n  _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n    this.setNextCallback(handler);\n    var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n    var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n    if (!node || doesNotHaveTimeoutOrListener) {\n      setTimeout(this.nextCallback, 0);\n      return;\n    }\n\n    if (this.props.addEndListener) {\n      var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n          maybeNode = _ref3[0],\n          maybeNextCallback = _ref3[1];\n\n      this.props.addEndListener(maybeNode, maybeNextCallback);\n    }\n\n    if (timeout != null) {\n      setTimeout(this.nextCallback, timeout);\n    }\n  };\n\n  _proto.render = function render() {\n    var status = this.state.status;\n\n    if (status === UNMOUNTED) {\n      return null;\n    }\n\n    var _this$props = this.props,\n        children = _this$props.children,\n        _in = _this$props.in,\n        _mountOnEnter = _this$props.mountOnEnter,\n        _unmountOnExit = _this$props.unmountOnExit,\n        _appear = _this$props.appear,\n        _enter = _this$props.enter,\n        _exit = _this$props.exit,\n        _timeout = _this$props.timeout,\n        _addEndListener = _this$props.addEndListener,\n        _onEnter = _this$props.onEnter,\n        _onEntering = _this$props.onEntering,\n        _onEntered = _this$props.onEntered,\n        _onExit = _this$props.onExit,\n        _onExiting = _this$props.onExiting,\n        _onExited = _this$props.onExited,\n        _nodeRef = _this$props.nodeRef,\n        childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n    return (\n      /*#__PURE__*/\n      // allows for nested Transitions\n      React.createElement(TransitionGroupContext.Provider, {\n        value: null\n      }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n    );\n  };\n\n  return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /**\n   * A React reference to DOM element that need to transition:\n   * https://stackoverflow.com/a/51127130/4671932\n   *\n   *   - When `nodeRef` prop is used, `node` is not passed to callback functions\n   *      (e.g. `onEnter`) because user already has direct access to the node.\n   *   - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n   *     `nodeRef` need to be provided to `Transition` with changed `key` prop\n   *     (see\n   *     [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n   */\n  nodeRef: PropTypes.shape({\n    current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n      var value = propValue[key];\n      return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n    }\n  }),\n\n  /**\n   * A `function` child can be used instead of a React element. This function is\n   * called with the current transition status (`'entering'`, `'entered'`,\n   * `'exiting'`, `'exited'`), which can be used to apply context\n   * specific props to a component.\n   *\n   * ```jsx\n   * <Transition in={this.state.in} timeout={150}>\n   *   {state => (\n   *     <MyComponent className={`fade fade-${state}`} />\n   *   )}\n   * </Transition>\n   * ```\n   */\n  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n  /**\n   * Show the component; triggers the enter or exit states\n   */\n  in: PropTypes.bool,\n\n  /**\n   * By default the child component is mounted immediately along with\n   * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n   * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n   */\n  mountOnEnter: PropTypes.bool,\n\n  /**\n   * By default the child component stays mounted after it reaches the `'exited'` state.\n   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n   */\n  unmountOnExit: PropTypes.bool,\n\n  /**\n   * By default the child component does not perform the enter transition when\n   * it first mounts, regardless of the value of `in`. If you want this\n   * behavior, set both `appear` and `in` to `true`.\n   *\n   * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n   * > only adds an additional enter transition. However, in the\n   * > `<CSSTransition>` component that first enter transition does result in\n   * > additional `.appear-*` classes, that way you can choose to style it\n   * > differently.\n   */\n  appear: PropTypes.bool,\n\n  /**\n   * Enable or disable enter transitions.\n   */\n  enter: PropTypes.bool,\n\n  /**\n   * Enable or disable exit transitions.\n   */\n  exit: PropTypes.bool,\n\n  /**\n   * The duration of the transition, in milliseconds.\n   * Required unless `addEndListener` is provided.\n   *\n   * You may specify a single timeout for all transitions:\n   *\n   * ```jsx\n   * timeout={500}\n   * ```\n   *\n   * or individually:\n   *\n   * ```jsx\n   * timeout={{\n   *  appear: 500,\n   *  enter: 300,\n   *  exit: 500,\n   * }}\n   * ```\n   *\n   * - `appear` defaults to the value of `enter`\n   * - `enter` defaults to `0`\n   * - `exit` defaults to `0`\n   *\n   * @type {number | { enter?: number, exit?: number, appear?: number }}\n   */\n  timeout: function timeout(props) {\n    var pt = timeoutsShape;\n    if (!props.addEndListener) pt = pt.isRequired;\n\n    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n\n    return pt.apply(void 0, [props].concat(args));\n  },\n\n  /**\n   * Add a custom transition end trigger. Called with the transitioning\n   * DOM node and a `done` callback. Allows for more fine grained transition end\n   * logic. Timeouts are still used as a fallback if provided.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * ```jsx\n   * addEndListener={(node, done) => {\n   *   // use the css transitionend event to mark the finish of a transition\n   *   node.addEventListener('transitionend', done, false);\n   * }}\n   * ```\n   */\n  addEndListener: PropTypes.func,\n\n  /**\n   * Callback fired before the \"entering\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool) -> void\n   */\n  onEnter: PropTypes.func,\n\n  /**\n   * Callback fired after the \"entering\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool)\n   */\n  onEntering: PropTypes.func,\n\n  /**\n   * Callback fired after the \"entered\" status is applied. An extra parameter\n   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement, isAppearing: bool) -> void\n   */\n  onEntered: PropTypes.func,\n\n  /**\n   * Callback fired before the \"exiting\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExit: PropTypes.func,\n\n  /**\n   * Callback fired after the \"exiting\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExiting: PropTypes.func,\n\n  /**\n   * Callback fired after the \"exited\" status is applied.\n   *\n   * **Note**: when `nodeRef` prop is passed, `node` is not passed\n   *\n   * @type Function(node: HtmlElement) -> void\n   */\n  onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n  in: false,\n  mountOnEnter: false,\n  unmountOnExit: false,\n  appear: false,\n  enter: true,\n  exit: true,\n  onEnter: noop,\n  onEntering: noop,\n  onEntered: noop,\n  onExit: noop,\n  onExiting: noop,\n  onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export var forceReflow = function forceReflow(node) {\n  return node.scrollTop;\n};","import React from 'react';\nexport default React.createContext(null);","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n  if (typeof type === 'string' || typeof type === 'function') {\n    return true;\n  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {\n    return true;\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n    // types supported by any Flight configuration anywhere since\n    // we don't know which Flight build this will end up being used\n    // with.\n    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n  didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n  {\n    if (hasOwnProperty.call(config, 'ref')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n  {\n    if (hasOwnProperty.call(config, 'key')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n  {\n    if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n      var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n      if (!didWarnAboutStringRefs[componentName]) {\n        error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n        didWarnAboutStringRefs[componentName] = true;\n      }\n    }\n  }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n  {\n    var warnAboutAccessingKey = function () {\n      if (!specialPropKeyWarningShown) {\n        specialPropKeyWarningShown = true;\n\n        error('%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)', displayName);\n      }\n    };\n\n    warnAboutAccessingKey.isReactWarning = true;\n    Object.defineProperty(props, 'key', {\n      get: warnAboutAccessingKey,\n      configurable: true\n    });\n  }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n  {\n    var warnAboutAccessingRef = function () {\n      if (!specialPropRefWarningShown) {\n        specialPropRefWarningShown = true;\n\n        error('%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)', displayName);\n      }\n    };\n\n    warnAboutAccessingRef.isReactWarning = true;\n    Object.defineProperty(props, 'ref', {\n      get: warnAboutAccessingRef,\n      configurable: true\n    });\n  }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n  var element = {\n    // This tag allows us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n\n    Object.defineProperty(element._store, 'validated', {\n      configurable: false,\n      enumerable: false,\n      writable: true,\n      value: false\n    }); // self and source are DEV only properties.\n\n    Object.defineProperty(element, '_self', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: self\n    }); // Two elements created in two different places should be considered\n    // equal for testing purposes and therefore we hide it from enumeration.\n\n    Object.defineProperty(element, '_source', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: source\n    });\n\n    if (Object.freeze) {\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n  {\n    var propName; // Reserved names are extracted\n\n    var props = {};\n    var key = null;\n    var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n    // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n    // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n    // but as an intermediary step, we will use jsxDEV for everything except\n    // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n    // key is explicitly declared to be undefined or not.\n\n    if (maybeKey !== undefined) {\n      {\n        checkKeyStringCoercion(maybeKey);\n      }\n\n      key = '' + maybeKey;\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    }\n\n    if (hasValidRef(config)) {\n      ref = config.ref;\n      warnIfStringRefCannotBeAutoConverted(config, self);\n    } // Remaining properties are added to a new props object\n\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        props[propName] = config[propName];\n      }\n    } // Resolve default props\n\n\n    if (type && type.defaultProps) {\n      var defaultProps = type.defaultProps;\n\n      for (propName in defaultProps) {\n        if (props[propName] === undefined) {\n          props[propName] = defaultProps[propName];\n        }\n      }\n    }\n\n    if (key || ref) {\n      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n      if (key) {\n        defineKeyPropWarningGetter(props, displayName);\n      }\n\n      if (ref) {\n        defineRefPropWarningGetter(props, displayName);\n      }\n    }\n\n    return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n  }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n    }\n  }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n  propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n  {\n    return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n  }\n}\n\nfunction getDeclarationErrorAddendum() {\n  {\n    if (ReactCurrentOwner$1.current) {\n      var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n      if (name) {\n        return '\\n\\nCheck the render method of `' + name + '`.';\n      }\n    }\n\n    return '';\n  }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n  {\n    if (source !== undefined) {\n      var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n      var lineNumber = source.lineNumber;\n      return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n    }\n\n    return '';\n  }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n  {\n    var info = getDeclarationErrorAddendum();\n\n    if (!info) {\n      var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n      if (parentName) {\n        info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n      }\n    }\n\n    return info;\n  }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n  {\n    if (!element._store || element._store.validated || element.key != null) {\n      return;\n    }\n\n    element._store.validated = true;\n    var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n      return;\n    }\n\n    ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n    // property, it may be the creator of the child that's responsible for\n    // assigning it a key.\n\n    var childOwner = '';\n\n    if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n      // Give the component that originally created this child.\n      childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n    }\n\n    setCurrentlyValidatingElement$1(element);\n\n    error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n    setCurrentlyValidatingElement$1(null);\n  }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n  {\n    if (typeof node !== 'object') {\n      return;\n    }\n\n    if (isArray(node)) {\n      for (var i = 0; i < node.length; i++) {\n        var child = node[i];\n\n        if (isValidElement(child)) {\n          validateExplicitKey(child, parentType);\n        }\n      }\n    } else if (isValidElement(node)) {\n      // This element was passed in a valid location.\n      if (node._store) {\n        node._store.validated = true;\n      }\n    } else if (node) {\n      var iteratorFn = getIteratorFn(node);\n\n      if (typeof iteratorFn === 'function') {\n        // Entry iterators used to provide implicit keys,\n        // but now we print a separate warning for them later.\n        if (iteratorFn !== node.entries) {\n          var iterator = iteratorFn.call(node);\n          var step;\n\n          while (!(step = iterator.next()).done) {\n            if (isValidElement(step.value)) {\n              validateExplicitKey(step.value, parentType);\n            }\n          }\n        }\n      }\n    }\n  }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n  {\n    var type = element.type;\n\n    if (type === null || type === undefined || typeof type === 'string') {\n      return;\n    }\n\n    var propTypes;\n\n    if (typeof type === 'function') {\n      propTypes = type.propTypes;\n    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n    // Inner props are checked in the reconciler.\n    type.$$typeof === REACT_MEMO_TYPE)) {\n      propTypes = type.propTypes;\n    } else {\n      return;\n    }\n\n    if (propTypes) {\n      // Intentionally inside to avoid triggering lazy initializers:\n      var name = getComponentNameFromType(type);\n      checkPropTypes(propTypes, element.props, 'prop', name, element);\n    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n      var _name = getComponentNameFromType(type);\n\n      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n    }\n\n    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n    }\n  }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n  {\n    var keys = Object.keys(fragment.props);\n\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n\n      if (key !== 'children' && key !== 'key') {\n        setCurrentlyValidatingElement$1(fragment);\n\n        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n        setCurrentlyValidatingElement$1(null);\n        break;\n      }\n    }\n\n    if (fragment.ref !== null) {\n      setCurrentlyValidatingElement$1(fragment);\n\n      error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n      setCurrentlyValidatingElement$1(null);\n    }\n  }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n  {\n    var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n    // succeed and there will likely be errors in render.\n\n    if (!validType) {\n      var info = '';\n\n      if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n        info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n      }\n\n      var sourceInfo = getSourceInfoErrorAddendum(source);\n\n      if (sourceInfo) {\n        info += sourceInfo;\n      } else {\n        info += getDeclarationErrorAddendum();\n      }\n\n      var typeString;\n\n      if (type === null) {\n        typeString = 'null';\n      } else if (isArray(type)) {\n        typeString = 'array';\n      } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n        typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n        info = ' Did you accidentally export a JSX literal instead of a component?';\n      } else {\n        typeString = typeof type;\n      }\n\n      error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n    }\n\n    var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n    // TODO: Drop this when these are no longer allowed as the type argument.\n\n    if (element == null) {\n      return element;\n    } // Skip key warning if the type isn't valid since our key validation logic\n    // doesn't expect a non-string/function type and can throw confusing errors.\n    // We don't want exception behavior to differ between dev and prod.\n    // (Rendering will throw with a helpful message and as soon as the type is\n    // fixed, the key warnings will appear.)\n\n\n    if (validType) {\n      var children = props.children;\n\n      if (children !== undefined) {\n        if (isStaticChildren) {\n          if (isArray(children)) {\n            for (var i = 0; i < children.length; i++) {\n              validateChildKeys(children[i], type);\n            }\n\n            if (Object.freeze) {\n              Object.freeze(children);\n            }\n          } else {\n            error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n          }\n        } else {\n          validateChildKeys(children, type);\n        }\n      }\n    }\n\n    {\n      if (hasOwnProperty.call(props, 'key')) {\n        var componentName = getComponentNameFromType(type);\n        var keys = Object.keys(props).filter(function (k) {\n          return k !== 'key';\n        });\n        var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n        if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n          var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n          error('A props object containing a \"key\" prop is being spread into JSX:\\n' + '  let props = %s;\\n' + '  <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + '  let props = %s;\\n' + '  <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n          didWarnAboutKeySpread[componentName + beforeExample] = true;\n        }\n      }\n    }\n\n    if (type === REACT_FRAGMENT_TYPE) {\n      validateFragmentProps(element);\n    } else {\n      validatePropTypes(element);\n    }\n\n    return element;\n  }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n  {\n    return jsxWithValidation(type, props, key, true);\n  }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n  {\n    return jsxWithValidation(type, props, key, false);\n  }\n}\n\nvar jsx =  jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs =  jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n  })();\n}\n","/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n\n          'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n          var ReactVersion = '18.3.1';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n  if (maybeIterable === null || typeof maybeIterable !== 'object') {\n    return null;\n  }\n\n  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if (typeof maybeIterator === 'function') {\n    return maybeIterator;\n  }\n\n  return null;\n}\n\n/**\n * Keeps track of the current dispatcher.\n */\nvar ReactCurrentDispatcher = {\n  /**\n   * @internal\n   * @type {ReactComponent}\n   */\n  current: null\n};\n\n/**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\nvar ReactCurrentBatchConfig = {\n  transition: null\n};\n\nvar ReactCurrentActQueue = {\n  current: null,\n  // Used to reproduce behavior of `batchedUpdates` in legacy mode.\n  isBatchingLegacy: false,\n  didScheduleLegacyUpdate: false\n};\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n  /**\n   * @internal\n   * @type {ReactComponent}\n   */\n  current: null\n};\n\nvar ReactDebugCurrentFrame = {};\nvar currentExtraStackFrame = null;\nfunction setExtraStackFrame(stack) {\n  {\n    currentExtraStackFrame = stack;\n  }\n}\n\n{\n  ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n    {\n      currentExtraStackFrame = stack;\n    }\n  }; // Stack implementation injected by the current renderer.\n\n\n  ReactDebugCurrentFrame.getCurrentStack = null;\n\n  ReactDebugCurrentFrame.getStackAddendum = function () {\n    var stack = ''; // Add an extra top frame while an element is being validated\n\n    if (currentExtraStackFrame) {\n      stack += currentExtraStackFrame;\n    } // Delegate to the injected renderer-specific implementation\n\n\n    var impl = ReactDebugCurrentFrame.getCurrentStack;\n\n    if (impl) {\n      stack += impl() || '';\n    }\n\n    return stack;\n  };\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar ReactSharedInternals = {\n  ReactCurrentDispatcher: ReactCurrentDispatcher,\n  ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n  ReactCurrentOwner: ReactCurrentOwner\n};\n\n{\n  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n  ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format) {\n  {\n    {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n\n      printWarning('warn', format, args);\n    }\n  }\n}\nfunction error(format) {\n  {\n    {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      printWarning('error', format, args);\n    }\n  }\n}\n\nfunction printWarning(level, format, args) {\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n    var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n    if (stack !== '') {\n      format += '%s';\n      args = args.concat([stack]);\n    } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n    var argsWithFormat = args.map(function (item) {\n      return String(item);\n    }); // Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n  }\n}\n\nvar didWarnStateUpdateForUnmountedComponent = {};\n\nfunction warnNoop(publicInstance, callerName) {\n  {\n    var _constructor = publicInstance.constructor;\n    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n    var warningKey = componentName + \".\" + callerName;\n\n    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n      return;\n    }\n\n    error(\"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.', callerName, componentName);\n\n    didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n  }\n}\n/**\n * This is the abstract API for an update queue.\n */\n\n\nvar ReactNoopUpdateQueue = {\n  /**\n   * Checks whether or not this composite component is mounted.\n   * @param {ReactClass} publicInstance The instance we want to test.\n   * @return {boolean} True if mounted, false otherwise.\n   * @protected\n   * @final\n   */\n  isMounted: function (publicInstance) {\n    return false;\n  },\n\n  /**\n   * Forces an update. This should only be invoked when it is known with\n   * certainty that we are **not** in a DOM transaction.\n   *\n   * You may want to call this when you know that some deeper aspect of the\n   * component's state has changed but `setState` was not called.\n   *\n   * This will not invoke `shouldComponentUpdate`, but it will invoke\n   * `componentWillUpdate` and `componentDidUpdate`.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} callerName name of the calling function in the public API.\n   * @internal\n   */\n  enqueueForceUpdate: function (publicInstance, callback, callerName) {\n    warnNoop(publicInstance, 'forceUpdate');\n  },\n\n  /**\n   * Replaces all of the state. Always use this or `setState` to mutate state.\n   * You should treat `this.state` as immutable.\n   *\n   * There is no guarantee that `this.state` will be immediately updated, so\n   * accessing `this.state` after calling this method may return the old value.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} completeState Next state.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} callerName name of the calling function in the public API.\n   * @internal\n   */\n  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n    warnNoop(publicInstance, 'replaceState');\n  },\n\n  /**\n   * Sets a subset of the state. This only exists because _pendingState is\n   * internal. This provides a merging strategy that is not available to deep\n   * properties which is confusing. TODO: Expose pendingState or don't use it\n   * during the merge.\n   *\n   * @param {ReactClass} publicInstance The instance that should rerender.\n   * @param {object} partialState Next partial state to be merged with state.\n   * @param {?function} callback Called after component is updated.\n   * @param {?string} Name of the calling function in the public API.\n   * @internal\n   */\n  enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n    warnNoop(publicInstance, 'setState');\n  }\n};\n\nvar assign = Object.assign;\n\nvar emptyObject = {};\n\n{\n  Object.freeze(emptyObject);\n}\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction Component(props, context, updater) {\n  this.props = props;\n  this.context = context; // If a component has string refs, we will assign a different object later.\n\n  this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n  // renderer.\n\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent = {};\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together.  You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n *        produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\nComponent.prototype.setState = function (partialState, callback) {\n  if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {\n    throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');\n  }\n\n  this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n\nComponent.prototype.forceUpdate = function (callback) {\n  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n\n{\n  var deprecatedAPIs = {\n    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n  };\n\n  var defineDeprecationWarning = function (methodName, info) {\n    Object.defineProperty(Component.prototype, methodName, {\n      get: function () {\n        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n\n        return undefined;\n      }\n    });\n  };\n\n  for (var fnName in deprecatedAPIs) {\n    if (deprecatedAPIs.hasOwnProperty(fnName)) {\n      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n    }\n  }\n}\n\nfunction ComponentDummy() {}\n\nComponentDummy.prototype = Component.prototype;\n/**\n * Convenience component with default shallow equality check for sCU.\n */\n\nfunction PureComponent(props, context, updater) {\n  this.props = props;\n  this.context = context; // If a component has string refs, we will assign a different object later.\n\n  this.refs = emptyObject;\n  this.updater = updater || ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\npureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = true;\n\n// an immutable object with a single mutable value\nfunction createRef() {\n  var refObject = {\n    current: null\n  };\n\n  {\n    Object.seal(refObject);\n  }\n\n  return refObject;\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n  return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n  {\n    // toStringTag is needed for namespaced types like Temporal.Instant\n    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n    return type;\n  }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n  {\n    try {\n      testStringCoercion(value);\n      return false;\n    } catch (e) {\n      return true;\n    }\n  }\n}\n\nfunction testStringCoercion(value) {\n  // If you ended up here by following an exception call stack, here's what's\n  // happened: you supplied an object or symbol value to React (as a prop, key,\n  // DOM attribute, CSS property, string ref, etc.) and when React tried to\n  // coerce it to a string using `'' + value`, an exception was thrown.\n  //\n  // The most common types that will cause this exception are `Symbol` instances\n  // and Temporal objects like `Temporal.Instant`. But any object that has a\n  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n  // exception. (Library authors do this to prevent users from using built-in\n  // numeric operators like `+` or comparison operators like `>=` because custom\n  // methods are needed to perform accurate arithmetic or comparison.)\n  //\n  // To fix the problem, coerce this object or symbol value to a string before\n  // passing it to React. The most reliable way is usually `String(value)`.\n  //\n  // To find which value is throwing, check the browser or debugger console.\n  // Before this exception was thrown, there should be `console.error` output\n  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n  // problem and how that type was used: key, atrribute, input value prop, etc.\n  // In most cases, this console output also shows the component and its\n  // ancestor components where the exception happened.\n  //\n  // eslint-disable-next-line react-internal/safe-string-coercion\n  return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n  {\n    if (willCoercionThrow(value)) {\n      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n    }\n  }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n  var displayName = outerType.displayName;\n\n  if (displayName) {\n    return displayName;\n  }\n\n  var functionName = innerType.displayName || innerType.name || '';\n  return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n  return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n  if (type == null) {\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if (typeof type.tag === 'number') {\n      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if (typeof type === 'function') {\n    return type.displayName || type.name || null;\n  }\n\n  if (typeof type === 'string') {\n    return type;\n  }\n\n  switch (type) {\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return 'Profiler';\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_CONTEXT_TYPE:\n        var context = type;\n        return getContextName(context) + '.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        var provider = type;\n        return getContextName(provider._context) + '.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        var outerName = type.displayName || null;\n\n        if (outerName !== null) {\n          return outerName;\n        }\n\n        return getComponentNameFromType(type.type) || 'Memo';\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            return getComponentNameFromType(init(payload));\n          } catch (x) {\n            return null;\n          }\n        }\n\n      // eslint-disable-next-line no-fallthrough\n    }\n  }\n\n  return null;\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar RESERVED_PROPS = {\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n\n{\n  didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n  {\n    if (hasOwnProperty.call(config, 'ref')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n  {\n    if (hasOwnProperty.call(config, 'key')) {\n      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n      if (getter && getter.isReactWarning) {\n        return false;\n      }\n    }\n  }\n\n  return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n  var warnAboutAccessingKey = function () {\n    {\n      if (!specialPropKeyWarningShown) {\n        specialPropKeyWarningShown = true;\n\n        error('%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)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingKey.isReactWarning = true;\n  Object.defineProperty(props, 'key', {\n    get: warnAboutAccessingKey,\n    configurable: true\n  });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n  var warnAboutAccessingRef = function () {\n    {\n      if (!specialPropRefWarningShown) {\n        specialPropRefWarningShown = true;\n\n        error('%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)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingRef.isReactWarning = true;\n  Object.defineProperty(props, 'ref', {\n    get: warnAboutAccessingRef,\n    configurable: true\n  });\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config) {\n  {\n    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n      var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n      if (!didWarnAboutStringRefs[componentName]) {\n        error('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', componentName, config.ref);\n\n        didWarnAboutStringRefs[componentName] = true;\n      }\n    }\n  }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n  var element = {\n    // This tag allows us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n\n    Object.defineProperty(element._store, 'validated', {\n      configurable: false,\n      enumerable: false,\n      writable: true,\n      value: false\n    }); // self and source are DEV only properties.\n\n    Object.defineProperty(element, '_self', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: self\n    }); // Two elements created in two different places should be considered\n    // equal for testing purposes and therefore we hide it from enumeration.\n\n    Object.defineProperty(element, '_source', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: source\n    });\n\n    if (Object.freeze) {\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n/**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\nfunction createElement(type, config, children) {\n  var propName; // Reserved names are extracted\n\n  var props = {};\n  var key = null;\n  var ref = null;\n  var self = null;\n  var source = null;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      ref = config.ref;\n\n      {\n        warnIfStringRefCannotBeAutoConverted(config);\n      }\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    }\n\n    self = config.__self === undefined ? null : config.__self;\n    source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        props[propName] = config[propName];\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength = arguments.length - 2;\n\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n\n    {\n      if (Object.freeze) {\n        Object.freeze(childArray);\n      }\n    }\n\n    props.children = childArray;\n  } // Resolve default props\n\n\n  if (type && type.defaultProps) {\n    var defaultProps = type.defaultProps;\n\n    for (propName in defaultProps) {\n      if (props[propName] === undefined) {\n        props[propName] = defaultProps[propName];\n      }\n    }\n  }\n\n  {\n    if (key || ref) {\n      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n      if (key) {\n        defineKeyPropWarningGetter(props, displayName);\n      }\n\n      if (ref) {\n        defineRefPropWarningGetter(props, displayName);\n      }\n    }\n  }\n\n  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n  return newElement;\n}\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\nfunction cloneElement(element, config, children) {\n  if (element === null || element === undefined) {\n    throw new Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n  }\n\n  var propName; // Original props are copied\n\n  var props = assign({}, element.props); // Reserved names are extracted\n\n  var key = element.key;\n  var ref = element.ref; // Self is preserved since the owner is preserved.\n\n  var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n  // transpiler, and the original source is probably a better indicator of the\n  // true owner.\n\n  var source = element._source; // Owner will be preserved, unless ref is overridden\n\n  var owner = element._owner;\n\n  if (config != null) {\n    if (hasValidRef(config)) {\n      // Silently steal the ref from the parent.\n      ref = config.ref;\n      owner = ReactCurrentOwner.current;\n    }\n\n    if (hasValidKey(config)) {\n      {\n        checkKeyStringCoercion(config.key);\n      }\n\n      key = '' + config.key;\n    } // Remaining properties override existing props\n\n\n    var defaultProps;\n\n    if (element.type && element.type.defaultProps) {\n      defaultProps = element.type.defaultProps;\n    }\n\n    for (propName in config) {\n      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n        if (config[propName] === undefined && defaultProps !== undefined) {\n          // Resolve default props\n          props[propName] = defaultProps[propName];\n        } else {\n          props[propName] = config[propName];\n        }\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength = arguments.length - 2;\n\n  if (childrenLength === 1) {\n    props.children = children;\n  } else if (childrenLength > 1) {\n    var childArray = Array(childrenLength);\n\n    for (var i = 0; i < childrenLength; i++) {\n      childArray[i] = arguments[i + 2];\n    }\n\n    props.children = childArray;\n  }\n\n  return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\nfunction isValidElement(object) {\n  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR = '.';\nvar SUBSEPARATOR = ':';\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n  var escapeRegex = /[=:]/g;\n  var escaperLookup = {\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString = key.replace(escapeRegex, function (match) {\n    return escaperLookup[match];\n  });\n  return '$' + escapedString;\n}\n/**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n\nvar didWarnAboutMaps = false;\nvar userProvidedKeyEscapeRegex = /\\/+/g;\n\nfunction escapeUserProvidedKey(text) {\n  return text.replace(userProvidedKeyEscapeRegex, '$&/');\n}\n/**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n\nfunction getElementKey(element, index) {\n  // Do some typechecking here since we call this blindly. We want to ensure\n  // that we don't block potential future ES APIs.\n  if (typeof element === 'object' && element !== null && element.key != null) {\n    // Explicit key\n    {\n      checkKeyStringCoercion(element.key);\n    }\n\n    return escape('' + element.key);\n  } // Implicit key determined by the index in the set\n\n\n  return index.toString(36);\n}\n\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n  var type = typeof children;\n\n  if (type === 'undefined' || type === 'boolean') {\n    // All of the above are perceived as null.\n    children = null;\n  }\n\n  var invokeCallback = false;\n\n  if (children === null) {\n    invokeCallback = true;\n  } else {\n    switch (type) {\n      case 'string':\n      case 'number':\n        invokeCallback = true;\n        break;\n\n      case 'object':\n        switch (children.$$typeof) {\n          case REACT_ELEMENT_TYPE:\n          case REACT_PORTAL_TYPE:\n            invokeCallback = true;\n        }\n\n    }\n  }\n\n  if (invokeCallback) {\n    var _child = children;\n    var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n    // so that it's consistent if the number of children grows:\n\n    var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n\n    if (isArray(mappedChild)) {\n      var escapedChildKey = '';\n\n      if (childKey != null) {\n        escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n      }\n\n      mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n        return c;\n      });\n    } else if (mappedChild != null) {\n      if (isValidElement(mappedChild)) {\n        {\n          // The `if` statement here prevents auto-disabling of the safe\n          // coercion ESLint rule, so we must manually disable it below.\n          // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n          if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {\n            checkKeyStringCoercion(mappedChild.key);\n          }\n        }\n\n        mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as\n        // traverseAllChildren used to do for objects as children\n        escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n        mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n        // eslint-disable-next-line react-internal/safe-string-coercion\n        escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n      }\n\n      array.push(mappedChild);\n    }\n\n    return 1;\n  }\n\n  var child;\n  var nextName;\n  var subtreeCount = 0; // Count of children found in the current subtree.\n\n  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n\n  if (isArray(children)) {\n    for (var i = 0; i < children.length; i++) {\n      child = children[i];\n      nextName = nextNamePrefix + getElementKey(child, i);\n      subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n    }\n  } else {\n    var iteratorFn = getIteratorFn(children);\n\n    if (typeof iteratorFn === 'function') {\n      var iterableChildren = children;\n\n      {\n        // Warn about using Maps as children\n        if (iteratorFn === iterableChildren.entries) {\n          if (!didWarnAboutMaps) {\n            warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n          }\n\n          didWarnAboutMaps = true;\n        }\n      }\n\n      var iterator = iteratorFn.call(iterableChildren);\n      var step;\n      var ii = 0;\n\n      while (!(step = iterator.next()).done) {\n        child = step.value;\n        nextName = nextNamePrefix + getElementKey(child, ii++);\n        subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n      }\n    } else if (type === 'object') {\n      // eslint-disable-next-line react-internal/safe-string-coercion\n      var childrenString = String(children);\n      throw new Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). \" + 'If you meant to render a collection of children, use an array ' + 'instead.');\n    }\n  }\n\n  return subtreeCount;\n}\n\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\nfunction mapChildren(children, func, context) {\n  if (children == null) {\n    return children;\n  }\n\n  var result = [];\n  var count = 0;\n  mapIntoArray(children, result, '', '', function (child) {\n    return func.call(context, child, count++);\n  });\n  return result;\n}\n/**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n\nfunction countChildren(children) {\n  var n = 0;\n  mapChildren(children, function () {\n    n++; // Don't return anything\n  });\n  return n;\n}\n\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\nfunction forEachChildren(children, forEachFunc, forEachContext) {\n  mapChildren(children, function () {\n    forEachFunc.apply(this, arguments); // Don't return anything.\n  }, forEachContext);\n}\n/**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n\nfunction toArray(children) {\n  return mapChildren(children, function (child) {\n    return child;\n  }) || [];\n}\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n\nfunction onlyChild(children) {\n  if (!isValidElement(children)) {\n    throw new Error('React.Children.only expected to receive a single React element child.');\n  }\n\n  return children;\n}\n\nfunction createContext(defaultValue) {\n  // TODO: Second argument used to be an optional `calculateChangedBits`\n  // function. Warn to reserve for future use?\n  var context = {\n    $$typeof: REACT_CONTEXT_TYPE,\n    // As a workaround to support multiple concurrent renderers, we categorize\n    // some renderers as primary and others as secondary. We only expect\n    // there to be two concurrent renderers at most: React Native (primary) and\n    // Fabric (secondary); React DOM (primary) and React ART (secondary).\n    // Secondary renderers store their context values on separate fields.\n    _currentValue: defaultValue,\n    _currentValue2: defaultValue,\n    // Used to track how many concurrent renderers this context currently\n    // supports within in a single renderer. Such as parallel server rendering.\n    _threadCount: 0,\n    // These are circular\n    Provider: null,\n    Consumer: null,\n    // Add these to use same hidden class in VM as ServerContext\n    _defaultValue: null,\n    _globalName: null\n  };\n  context.Provider = {\n    $$typeof: REACT_PROVIDER_TYPE,\n    _context: context\n  };\n  var hasWarnedAboutUsingNestedContextConsumers = false;\n  var hasWarnedAboutUsingConsumerProvider = false;\n  var hasWarnedAboutDisplayNameOnConsumer = false;\n\n  {\n    // A separate object, but proxies back to the original context object for\n    // backwards compatibility. It has a different $$typeof, so we can properly\n    // warn for the incorrect usage of Context as a Consumer.\n    var Consumer = {\n      $$typeof: REACT_CONTEXT_TYPE,\n      _context: context\n    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n    Object.defineProperties(Consumer, {\n      Provider: {\n        get: function () {\n          if (!hasWarnedAboutUsingConsumerProvider) {\n            hasWarnedAboutUsingConsumerProvider = true;\n\n            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n          }\n\n          return context.Provider;\n        },\n        set: function (_Provider) {\n          context.Provider = _Provider;\n        }\n      },\n      _currentValue: {\n        get: function () {\n          return context._currentValue;\n        },\n        set: function (_currentValue) {\n          context._currentValue = _currentValue;\n        }\n      },\n      _currentValue2: {\n        get: function () {\n          return context._currentValue2;\n        },\n        set: function (_currentValue2) {\n          context._currentValue2 = _currentValue2;\n        }\n      },\n      _threadCount: {\n        get: function () {\n          return context._threadCount;\n        },\n        set: function (_threadCount) {\n          context._threadCount = _threadCount;\n        }\n      },\n      Consumer: {\n        get: function () {\n          if (!hasWarnedAboutUsingNestedContextConsumers) {\n            hasWarnedAboutUsingNestedContextConsumers = true;\n\n            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n          }\n\n          return context.Consumer;\n        }\n      },\n      displayName: {\n        get: function () {\n          return context.displayName;\n        },\n        set: function (displayName) {\n          if (!hasWarnedAboutDisplayNameOnConsumer) {\n            warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n\n            hasWarnedAboutDisplayNameOnConsumer = true;\n          }\n        }\n      }\n    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n    context.Consumer = Consumer;\n  }\n\n  {\n    context._currentRenderer = null;\n    context._currentRenderer2 = null;\n  }\n\n  return context;\n}\n\nvar Uninitialized = -1;\nvar Pending = 0;\nvar Resolved = 1;\nvar Rejected = 2;\n\nfunction lazyInitializer(payload) {\n  if (payload._status === Uninitialized) {\n    var ctor = payload._result;\n    var thenable = ctor(); // Transition to the next state.\n    // This might throw either because it's missing or throws. If so, we treat it\n    // as still uninitialized and try again next time. Which is the same as what\n    // happens if the ctor or any wrappers processing the ctor throws. This might\n    // end up fixing it if the resolution was a concurrency bug.\n\n    thenable.then(function (moduleObject) {\n      if (payload._status === Pending || payload._status === Uninitialized) {\n        // Transition to the next state.\n        var resolved = payload;\n        resolved._status = Resolved;\n        resolved._result = moduleObject;\n      }\n    }, function (error) {\n      if (payload._status === Pending || payload._status === Uninitialized) {\n        // Transition to the next state.\n        var rejected = payload;\n        rejected._status = Rejected;\n        rejected._result = error;\n      }\n    });\n\n    if (payload._status === Uninitialized) {\n      // In case, we're still uninitialized, then we're waiting for the thenable\n      // to resolve. Set it as pending in the meantime.\n      var pending = payload;\n      pending._status = Pending;\n      pending._result = thenable;\n    }\n  }\n\n  if (payload._status === Resolved) {\n    var moduleObject = payload._result;\n\n    {\n      if (moduleObject === undefined) {\n        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n  ' + // Break up imports to avoid accidentally parsing them as dependencies.\n        'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\\n\\n\" + 'Did you accidentally put curly braces around the import?', moduleObject);\n      }\n    }\n\n    {\n      if (!('default' in moduleObject)) {\n        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n  ' + // Break up imports to avoid accidentally parsing them as dependencies.\n        'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n      }\n    }\n\n    return moduleObject.default;\n  } else {\n    throw payload._result;\n  }\n}\n\nfunction lazy(ctor) {\n  var payload = {\n    // We use these fields to store the result.\n    _status: Uninitialized,\n    _result: ctor\n  };\n  var lazyType = {\n    $$typeof: REACT_LAZY_TYPE,\n    _payload: payload,\n    _init: lazyInitializer\n  };\n\n  {\n    // In production, this would just set it on the object.\n    var defaultProps;\n    var propTypes; // $FlowFixMe\n\n    Object.defineProperties(lazyType, {\n      defaultProps: {\n        configurable: true,\n        get: function () {\n          return defaultProps;\n        },\n        set: function (newDefaultProps) {\n          error('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.');\n\n          defaultProps = newDefaultProps; // Match production behavior more closely:\n          // $FlowFixMe\n\n          Object.defineProperty(lazyType, 'defaultProps', {\n            enumerable: true\n          });\n        }\n      },\n      propTypes: {\n        configurable: true,\n        get: function () {\n          return propTypes;\n        },\n        set: function (newPropTypes) {\n          error('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.');\n\n          propTypes = newPropTypes; // Match production behavior more closely:\n          // $FlowFixMe\n\n          Object.defineProperty(lazyType, 'propTypes', {\n            enumerable: true\n          });\n        }\n      }\n    });\n  }\n\n  return lazyType;\n}\n\nfunction forwardRef(render) {\n  {\n    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n    } else if (typeof render !== 'function') {\n      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n    } else {\n      if (render.length !== 0 && render.length !== 2) {\n        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n      }\n    }\n\n    if (render != null) {\n      if (render.defaultProps != null || render.propTypes != null) {\n        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n      }\n    }\n  }\n\n  var elementType = {\n    $$typeof: REACT_FORWARD_REF_TYPE,\n    render: render\n  };\n\n  {\n    var ownName;\n    Object.defineProperty(elementType, 'displayName', {\n      enumerable: false,\n      configurable: true,\n      get: function () {\n        return ownName;\n      },\n      set: function (name) {\n        ownName = name; // The inner component shouldn't inherit this display name in most cases,\n        // because the component may be used elsewhere.\n        // But it's nice for anonymous functions to inherit the name,\n        // so that our component-stack generation logic will display their frames.\n        // An anonymous function generally suggests a pattern like:\n        //   React.forwardRef((props, ref) => {...});\n        // This kind of inner function is not used elsewhere so the side effect is okay.\n\n        if (!render.name && !render.displayName) {\n          render.displayName = name;\n        }\n      }\n    });\n  }\n\n  return elementType;\n}\n\nvar REACT_MODULE_REFERENCE;\n\n{\n  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n  if (typeof type === 'string' || typeof type === 'function') {\n    return true;\n  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {\n    return true;\n  }\n\n  if (typeof type === 'object' && type !== null) {\n    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n    // types supported by any Flight configuration anywhere since\n    // we don't know which Flight build this will end up being used\n    // with.\n    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction memo(type, compare) {\n  {\n    if (!isValidElementType(type)) {\n      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n    }\n  }\n\n  var elementType = {\n    $$typeof: REACT_MEMO_TYPE,\n    type: type,\n    compare: compare === undefined ? null : compare\n  };\n\n  {\n    var ownName;\n    Object.defineProperty(elementType, 'displayName', {\n      enumerable: false,\n      configurable: true,\n      get: function () {\n        return ownName;\n      },\n      set: function (name) {\n        ownName = name; // The inner component shouldn't inherit this display name in most cases,\n        // because the component may be used elsewhere.\n        // But it's nice for anonymous functions to inherit the name,\n        // so that our component-stack generation logic will display their frames.\n        // An anonymous function generally suggests a pattern like:\n        //   React.memo((props) => {...});\n        // This kind of inner function is not used elsewhere so the side effect is okay.\n\n        if (!type.name && !type.displayName) {\n          type.displayName = name;\n        }\n      }\n    });\n  }\n\n  return elementType;\n}\n\nfunction resolveDispatcher() {\n  var dispatcher = ReactCurrentDispatcher.current;\n\n  {\n    if (dispatcher === null) {\n      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:\\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\\n' + '2. You might be breaking the Rules of Hooks\\n' + '3. You might have more than one copy of React in the same app\\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');\n    }\n  } // Will result in a null access error if accessed outside render phase. We\n  // intentionally don't throw our own error because this is in a hot path.\n  // Also helps ensure this is inlined.\n\n\n  return dispatcher;\n}\nfunction useContext(Context) {\n  var dispatcher = resolveDispatcher();\n\n  {\n    // TODO: add a more generic warning for invalid values.\n    if (Context._context !== undefined) {\n      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n      // and nobody should be using this in existing code.\n\n      if (realContext.Consumer === Context) {\n        error('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?');\n      } else if (realContext.Provider === Context) {\n        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n      }\n    }\n  }\n\n  return dispatcher.useContext(Context);\n}\nfunction useState(initialState) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useState(initialState);\n}\nfunction useReducer(reducer, initialArg, init) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useReducer(reducer, initialArg, init);\n}\nfunction useRef(initialValue) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useRef(initialValue);\n}\nfunction useEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useEffect(create, deps);\n}\nfunction useInsertionEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useInsertionEffect(create, deps);\n}\nfunction useLayoutEffect(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useLayoutEffect(create, deps);\n}\nfunction useCallback(callback, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useCallback(callback, deps);\n}\nfunction useMemo(create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useMemo(create, deps);\n}\nfunction useImperativeHandle(ref, create, deps) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useImperativeHandle(ref, create, deps);\n}\nfunction useDebugValue(value, formatterFn) {\n  {\n    var dispatcher = resolveDispatcher();\n    return dispatcher.useDebugValue(value, formatterFn);\n  }\n}\nfunction useTransition() {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useTransition();\n}\nfunction useDeferredValue(value) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useDeferredValue(value);\n}\nfunction useId() {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useId();\n}\nfunction useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n  var dispatcher = resolveDispatcher();\n  return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n  {\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      prevLog = console.log;\n      prevInfo = console.info;\n      prevWarn = console.warn;\n      prevError = console.error;\n      prevGroup = console.group;\n      prevGroupCollapsed = console.groupCollapsed;\n      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n      var props = {\n        configurable: true,\n        enumerable: true,\n        value: disabledLog,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        info: props,\n        log: props,\n        warn: props,\n        error: props,\n        group: props,\n        groupCollapsed: props,\n        groupEnd: props\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    disabledDepth++;\n  }\n}\nfunction reenableLogs() {\n  {\n    disabledDepth--;\n\n    if (disabledDepth === 0) {\n      /* eslint-disable react-internal/no-production-logging */\n      var props = {\n        configurable: true,\n        enumerable: true,\n        writable: true\n      }; // $FlowFixMe Flow thinks console is immutable.\n\n      Object.defineProperties(console, {\n        log: assign({}, props, {\n          value: prevLog\n        }),\n        info: assign({}, props, {\n          value: prevInfo\n        }),\n        warn: assign({}, props, {\n          value: prevWarn\n        }),\n        error: assign({}, props, {\n          value: prevError\n        }),\n        group: assign({}, props, {\n          value: prevGroup\n        }),\n        groupCollapsed: assign({}, props, {\n          value: prevGroupCollapsed\n        }),\n        groupEnd: assign({}, props, {\n          value: prevGroupEnd\n        })\n      });\n      /* eslint-enable react-internal/no-production-logging */\n    }\n\n    if (disabledDepth < 0) {\n      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n    }\n  }\n}\n\nvar ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n  {\n    if (prefix === undefined) {\n      // Extract the VM specific prefix used by each line.\n      try {\n        throw Error();\n      } catch (x) {\n        var match = x.stack.trim().match(/\\n( *(at )?)/);\n        prefix = match && match[1] || '';\n      }\n    } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n    return '\\n' + prefix + name;\n  }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n  componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n  // If something asked for a stack inside a fake render, it should get ignored.\n  if ( !fn || reentry) {\n    return '';\n  }\n\n  {\n    var frame = componentFrameCache.get(fn);\n\n    if (frame !== undefined) {\n      return frame;\n    }\n  }\n\n  var control;\n  reentry = true;\n  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n  Error.prepareStackTrace = undefined;\n  var previousDispatcher;\n\n  {\n    previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n    // for warnings.\n\n    ReactCurrentDispatcher$1.current = null;\n    disableLogs();\n  }\n\n  try {\n    // This should throw.\n    if (construct) {\n      // Something should be setting the props in the constructor.\n      var Fake = function () {\n        throw Error();\n      }; // $FlowFixMe\n\n\n      Object.defineProperty(Fake.prototype, 'props', {\n        set: function () {\n          // We use a throwing setter instead of frozen or non-writable props\n          // because that won't throw in a non-strict mode function.\n          throw Error();\n        }\n      });\n\n      if (typeof Reflect === 'object' && Reflect.construct) {\n        // We construct a different control for this case to include any extra\n        // frames added by the construct call.\n        try {\n          Reflect.construct(Fake, []);\n        } catch (x) {\n          control = x;\n        }\n\n        Reflect.construct(fn, [], Fake);\n      } else {\n        try {\n          Fake.call();\n        } catch (x) {\n          control = x;\n        }\n\n        fn.call(Fake.prototype);\n      }\n    } else {\n      try {\n        throw Error();\n      } catch (x) {\n        control = x;\n      }\n\n      fn();\n    }\n  } catch (sample) {\n    // This is inlined manually because closure doesn't do it for us.\n    if (sample && control && typeof sample.stack === 'string') {\n      // This extracts the first frame from the sample that isn't also in the control.\n      // Skipping one frame that we assume is the frame that calls the two.\n      var sampleLines = sample.stack.split('\\n');\n      var controlLines = control.stack.split('\\n');\n      var s = sampleLines.length - 1;\n      var c = controlLines.length - 1;\n\n      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n        // We expect at least one stack frame to be shared.\n        // Typically this will be the root most one. However, stack frames may be\n        // cut off due to maximum stack limits. In this case, one maybe cut off\n        // earlier than the other. We assume that the sample is longer or the same\n        // and there for cut off earlier. So we should find the root most frame in\n        // the sample somewhere in the control.\n        c--;\n      }\n\n      for (; s >= 1 && c >= 0; s--, c--) {\n        // Next we find the first one that isn't the same which should be the\n        // frame that called our sample function and the control.\n        if (sampleLines[s] !== controlLines[c]) {\n          // In V8, the first line is describing the message but other VMs don't.\n          // If we're about to return the first line, and the control is also on the same\n          // line, that's a pretty good indicator that our sample threw at same line as\n          // the control. I.e. before we entered the sample frame. So we ignore this result.\n          // This can happen if you passed a class to function component, or non-function.\n          if (s !== 1 || c !== 1) {\n            do {\n              s--;\n              c--; // We may still have similar intermediate frames from the construct call.\n              // The next one that isn't the same should be our match though.\n\n              if (c < 0 || sampleLines[s] !== controlLines[c]) {\n                // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n                var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n                // but we have a user-provided \"displayName\"\n                // splice it in to make the stack more readable.\n\n\n                if (fn.displayName && _frame.includes('<anonymous>')) {\n                  _frame = _frame.replace('<anonymous>', fn.displayName);\n                }\n\n                {\n                  if (typeof fn === 'function') {\n                    componentFrameCache.set(fn, _frame);\n                  }\n                } // Return the line we found.\n\n\n                return _frame;\n              }\n            } while (s >= 1 && c >= 0);\n          }\n\n          break;\n        }\n      }\n    }\n  } finally {\n    reentry = false;\n\n    {\n      ReactCurrentDispatcher$1.current = previousDispatcher;\n      reenableLogs();\n    }\n\n    Error.prepareStackTrace = previousPrepareStackTrace;\n  } // Fallback to just using the name if we couldn't make it throw.\n\n\n  var name = fn ? fn.displayName || fn.name : '';\n  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n  {\n    if (typeof fn === 'function') {\n      componentFrameCache.set(fn, syntheticFrame);\n    }\n  }\n\n  return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n  {\n    return describeNativeComponentFrame(fn, false);\n  }\n}\n\nfunction shouldConstruct(Component) {\n  var prototype = Component.prototype;\n  return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n  if (type == null) {\n    return '';\n  }\n\n  if (typeof type === 'function') {\n    {\n      return describeNativeComponentFrame(type, shouldConstruct(type));\n    }\n  }\n\n  if (typeof type === 'string') {\n    return describeBuiltInComponentFrame(type);\n  }\n\n  switch (type) {\n    case REACT_SUSPENSE_TYPE:\n      return describeBuiltInComponentFrame('Suspense');\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return describeBuiltInComponentFrame('SuspenseList');\n  }\n\n  if (typeof type === 'object') {\n    switch (type.$$typeof) {\n      case REACT_FORWARD_REF_TYPE:\n        return describeFunctionComponentFrame(type.render);\n\n      case REACT_MEMO_TYPE:\n        // Memo may contain any component type so we recursively resolve it.\n        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n      case REACT_LAZY_TYPE:\n        {\n          var lazyComponent = type;\n          var payload = lazyComponent._payload;\n          var init = lazyComponent._init;\n\n          try {\n            // Lazy may contain any component type so we recursively resolve it.\n            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n          } catch (x) {}\n        }\n    }\n  }\n\n  return '';\n}\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n    } else {\n      ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n    }\n  }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n  {\n    // $FlowFixMe This is okay but Flow doesn't know it.\n    var has = Function.call.bind(hasOwnProperty);\n\n    for (var typeSpecName in typeSpecs) {\n      if (has(typeSpecs, typeSpecName)) {\n        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if (typeof typeSpecs[typeSpecName] !== 'function') {\n            // eslint-disable-next-line react-internal/prod-error-codes\n            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n            err.name = 'Invariant Violation';\n            throw err;\n          }\n\n          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n        } catch (ex) {\n          error$1 = ex;\n        }\n\n        if (error$1 && !(error$1 instanceof Error)) {\n          setCurrentlyValidatingElement(element);\n\n          error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n          setCurrentlyValidatingElement(null);\n        }\n\n        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error$1.message] = true;\n          setCurrentlyValidatingElement(element);\n\n          error('Failed %s type: %s', location, error$1.message);\n\n          setCurrentlyValidatingElement(null);\n        }\n      }\n    }\n  }\n}\n\nfunction setCurrentlyValidatingElement$1(element) {\n  {\n    if (element) {\n      var owner = element._owner;\n      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n      setExtraStackFrame(stack);\n    } else {\n      setExtraStackFrame(null);\n    }\n  }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n  propTypesMisspellWarningShown = false;\n}\n\nfunction getDeclarationErrorAddendum() {\n  if (ReactCurrentOwner.current) {\n    var name = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n    if (name) {\n      return '\\n\\nCheck the render method of `' + name + '`.';\n    }\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n  if (source !== undefined) {\n    var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n    var lineNumber = source.lineNumber;\n    return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendumForProps(elementProps) {\n  if (elementProps !== null && elementProps !== undefined) {\n    return getSourceInfoErrorAddendum(elementProps.__source);\n  }\n\n  return '';\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n  var info = getDeclarationErrorAddendum();\n\n  if (!info) {\n    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n    if (parentName) {\n      info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n    }\n  }\n\n  return info;\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n  if (!element._store || element._store.validated || element.key != null) {\n    return;\n  }\n\n  element._store.validated = true;\n  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n    return;\n  }\n\n  ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n  // property, it may be the creator of the child that's responsible for\n  // assigning it a key.\n\n  var childOwner = '';\n\n  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n    // Give the component that originally created this child.\n    childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n  }\n\n  {\n    setCurrentlyValidatingElement$1(element);\n\n    error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n    setCurrentlyValidatingElement$1(null);\n  }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n  if (typeof node !== 'object') {\n    return;\n  }\n\n  if (isArray(node)) {\n    for (var i = 0; i < node.length; i++) {\n      var child = node[i];\n\n      if (isValidElement(child)) {\n        validateExplicitKey(child, parentType);\n      }\n    }\n  } else if (isValidElement(node)) {\n    // This element was passed in a valid location.\n    if (node._store) {\n      node._store.validated = true;\n    }\n  } else if (node) {\n    var iteratorFn = getIteratorFn(node);\n\n    if (typeof iteratorFn === 'function') {\n      // Entry iterators used to provide implicit keys,\n      // but now we print a separate warning for them later.\n      if (iteratorFn !== node.entries) {\n        var iterator = iteratorFn.call(node);\n        var step;\n\n        while (!(step = iterator.next()).done) {\n          if (isValidElement(step.value)) {\n            validateExplicitKey(step.value, parentType);\n          }\n        }\n      }\n    }\n  }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n  {\n    var type = element.type;\n\n    if (type === null || type === undefined || typeof type === 'string') {\n      return;\n    }\n\n    var propTypes;\n\n    if (typeof type === 'function') {\n      propTypes = type.propTypes;\n    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n    // Inner props are checked in the reconciler.\n    type.$$typeof === REACT_MEMO_TYPE)) {\n      propTypes = type.propTypes;\n    } else {\n      return;\n    }\n\n    if (propTypes) {\n      // Intentionally inside to avoid triggering lazy initializers:\n      var name = getComponentNameFromType(type);\n      checkPropTypes(propTypes, element.props, 'prop', name, element);\n    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n      var _name = getComponentNameFromType(type);\n\n      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n    }\n\n    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n    }\n  }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n  {\n    var keys = Object.keys(fragment.props);\n\n    for (var i = 0; i < keys.length; i++) {\n      var key = keys[i];\n\n      if (key !== 'children' && key !== 'key') {\n        setCurrentlyValidatingElement$1(fragment);\n\n        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n        setCurrentlyValidatingElement$1(null);\n        break;\n      }\n    }\n\n    if (fragment.ref !== null) {\n      setCurrentlyValidatingElement$1(fragment);\n\n      error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n      setCurrentlyValidatingElement$1(null);\n    }\n  }\n}\nfunction createElementWithValidation(type, props, children) {\n  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n  // succeed and there will likely be errors in render.\n\n  if (!validType) {\n    var info = '';\n\n    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n      info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n    }\n\n    var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n\n    if (sourceInfo) {\n      info += sourceInfo;\n    } else {\n      info += getDeclarationErrorAddendum();\n    }\n\n    var typeString;\n\n    if (type === null) {\n      typeString = 'null';\n    } else if (isArray(type)) {\n      typeString = 'array';\n    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n      typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n      info = ' Did you accidentally export a JSX literal instead of a component?';\n    } else {\n      typeString = typeof type;\n    }\n\n    {\n      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n    }\n  }\n\n  var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n  // TODO: Drop this when these are no longer allowed as the type argument.\n\n  if (element == null) {\n    return element;\n  } // Skip key warning if the type isn't valid since our key validation logic\n  // doesn't expect a non-string/function type and can throw confusing errors.\n  // We don't want exception behavior to differ between dev and prod.\n  // (Rendering will throw with a helpful message and as soon as the type is\n  // fixed, the key warnings will appear.)\n\n\n  if (validType) {\n    for (var i = 2; i < arguments.length; i++) {\n      validateChildKeys(arguments[i], type);\n    }\n  }\n\n  if (type === REACT_FRAGMENT_TYPE) {\n    validateFragmentProps(element);\n  } else {\n    validatePropTypes(element);\n  }\n\n  return element;\n}\nvar didWarnAboutDeprecatedCreateFactory = false;\nfunction createFactoryWithValidation(type) {\n  var validatedFactory = createElementWithValidation.bind(null, type);\n  validatedFactory.type = type;\n\n  {\n    if (!didWarnAboutDeprecatedCreateFactory) {\n      didWarnAboutDeprecatedCreateFactory = true;\n\n      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n    } // Legacy hook: remove it\n\n\n    Object.defineProperty(validatedFactory, 'type', {\n      enumerable: false,\n      get: function () {\n        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n\n        Object.defineProperty(this, 'type', {\n          value: type\n        });\n        return type;\n      }\n    });\n  }\n\n  return validatedFactory;\n}\nfunction cloneElementWithValidation(element, props, children) {\n  var newElement = cloneElement.apply(this, arguments);\n\n  for (var i = 2; i < arguments.length; i++) {\n    validateChildKeys(arguments[i], newElement.type);\n  }\n\n  validatePropTypes(newElement);\n  return newElement;\n}\n\nfunction startTransition(scope, options) {\n  var prevTransition = ReactCurrentBatchConfig.transition;\n  ReactCurrentBatchConfig.transition = {};\n  var currentTransition = ReactCurrentBatchConfig.transition;\n\n  {\n    ReactCurrentBatchConfig.transition._updatedFibers = new Set();\n  }\n\n  try {\n    scope();\n  } finally {\n    ReactCurrentBatchConfig.transition = prevTransition;\n\n    {\n      if (prevTransition === null && currentTransition._updatedFibers) {\n        var updatedFibersCount = currentTransition._updatedFibers.size;\n\n        if (updatedFibersCount > 10) {\n          warn('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.');\n        }\n\n        currentTransition._updatedFibers.clear();\n      }\n    }\n  }\n}\n\nvar didWarnAboutMessageChannel = false;\nvar enqueueTaskImpl = null;\nfunction enqueueTask(task) {\n  if (enqueueTaskImpl === null) {\n    try {\n      // read require off the module object to get around the bundlers.\n      // we don't want them to detect a require and bundle a Node polyfill.\n      var requireString = ('require' + Math.random()).slice(0, 7);\n      var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's\n      // version of setImmediate, bypassing fake timers if any.\n\n      enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;\n    } catch (_err) {\n      // we're in a browser\n      // we can't use regular timers because they may still be faked\n      // so we try MessageChannel+postMessage instead\n      enqueueTaskImpl = function (callback) {\n        {\n          if (didWarnAboutMessageChannel === false) {\n            didWarnAboutMessageChannel = true;\n\n            if (typeof MessageChannel === 'undefined') {\n              error('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.');\n            }\n          }\n        }\n\n        var channel = new MessageChannel();\n        channel.port1.onmessage = callback;\n        channel.port2.postMessage(undefined);\n      };\n    }\n  }\n\n  return enqueueTaskImpl(task);\n}\n\nvar actScopeDepth = 0;\nvar didWarnNoAwaitAct = false;\nfunction act(callback) {\n  {\n    // `act` calls can be nested, so we track the depth. This represents the\n    // number of `act` scopes on the stack.\n    var prevActScopeDepth = actScopeDepth;\n    actScopeDepth++;\n\n    if (ReactCurrentActQueue.current === null) {\n      // This is the outermost `act` scope. Initialize the queue. The reconciler\n      // will detect the queue and use it instead of Scheduler.\n      ReactCurrentActQueue.current = [];\n    }\n\n    var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;\n    var result;\n\n    try {\n      // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only\n      // set to `true` while the given callback is executed, not for updates\n      // triggered during an async event, because this is how the legacy\n      // implementation of `act` behaved.\n      ReactCurrentActQueue.isBatchingLegacy = true;\n      result = callback(); // Replicate behavior of original `act` implementation in legacy mode,\n      // which flushed updates immediately after the scope function exits, even\n      // if it's an async function.\n\n      if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {\n        var queue = ReactCurrentActQueue.current;\n\n        if (queue !== null) {\n          ReactCurrentActQueue.didScheduleLegacyUpdate = false;\n          flushActQueue(queue);\n        }\n      }\n    } catch (error) {\n      popActScope(prevActScopeDepth);\n      throw error;\n    } finally {\n      ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;\n    }\n\n    if (result !== null && typeof result === 'object' && typeof result.then === 'function') {\n      var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait\n      // for it to resolve before exiting the current scope.\n\n      var wasAwaited = false;\n      var thenable = {\n        then: function (resolve, reject) {\n          wasAwaited = true;\n          thenableResult.then(function (returnValue) {\n            popActScope(prevActScopeDepth);\n\n            if (actScopeDepth === 0) {\n              // We've exited the outermost act scope. Recursively flush the\n              // queue until there's no remaining work.\n              recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n            } else {\n              resolve(returnValue);\n            }\n          }, function (error) {\n            // The callback threw an error.\n            popActScope(prevActScopeDepth);\n            reject(error);\n          });\n        }\n      };\n\n      {\n        if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {\n          // eslint-disable-next-line no-undef\n          Promise.resolve().then(function () {}).then(function () {\n            if (!wasAwaited) {\n              didWarnNoAwaitAct = true;\n\n              error('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 () => ...);');\n            }\n          });\n        }\n      }\n\n      return thenable;\n    } else {\n      var returnValue = result; // The callback is not an async function. Exit the current scope\n      // immediately, without awaiting.\n\n      popActScope(prevActScopeDepth);\n\n      if (actScopeDepth === 0) {\n        // Exiting the outermost act scope. Flush the queue.\n        var _queue = ReactCurrentActQueue.current;\n\n        if (_queue !== null) {\n          flushActQueue(_queue);\n          ReactCurrentActQueue.current = null;\n        } // Return a thenable. If the user awaits it, we'll flush again in\n        // case additional work was scheduled by a microtask.\n\n\n        var _thenable = {\n          then: function (resolve, reject) {\n            // Confirm we haven't re-entered another `act` scope, in case\n            // the user does something weird like await the thenable\n            // multiple times.\n            if (ReactCurrentActQueue.current === null) {\n              // Recursively flush the queue until there's no remaining work.\n              ReactCurrentActQueue.current = [];\n              recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n            } else {\n              resolve(returnValue);\n            }\n          }\n        };\n        return _thenable;\n      } else {\n        // Since we're inside a nested `act` scope, the returned thenable\n        // immediately resolves. The outer scope will flush the queue.\n        var _thenable2 = {\n          then: function (resolve, reject) {\n            resolve(returnValue);\n          }\n        };\n        return _thenable2;\n      }\n    }\n  }\n}\n\nfunction popActScope(prevActScopeDepth) {\n  {\n    if (prevActScopeDepth !== actScopeDepth - 1) {\n      error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');\n    }\n\n    actScopeDepth = prevActScopeDepth;\n  }\n}\n\nfunction recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n  {\n    var queue = ReactCurrentActQueue.current;\n\n    if (queue !== null) {\n      try {\n        flushActQueue(queue);\n        enqueueTask(function () {\n          if (queue.length === 0) {\n            // No additional work was scheduled. Finish.\n            ReactCurrentActQueue.current = null;\n            resolve(returnValue);\n          } else {\n            // Keep flushing work until there's none left.\n            recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n          }\n        });\n      } catch (error) {\n        reject(error);\n      }\n    } else {\n      resolve(returnValue);\n    }\n  }\n}\n\nvar isFlushing = false;\n\nfunction flushActQueue(queue) {\n  {\n    if (!isFlushing) {\n      // Prevent re-entrance.\n      isFlushing = true;\n      var i = 0;\n\n      try {\n        for (; i < queue.length; i++) {\n          var callback = queue[i];\n\n          do {\n            callback = callback(true);\n          } while (callback !== null);\n        }\n\n        queue.length = 0;\n      } catch (error) {\n        // If something throws, leave the remaining callbacks on the queue.\n        queue = queue.slice(i + 1);\n        throw error;\n      } finally {\n        isFlushing = false;\n      }\n    }\n  }\n}\n\nvar createElement$1 =  createElementWithValidation ;\nvar cloneElement$1 =  cloneElementWithValidation ;\nvar createFactory =  createFactoryWithValidation ;\nvar Children = {\n  map: mapChildren,\n  forEach: forEachChildren,\n  count: countChildren,\n  toArray: toArray,\n  only: onlyChild\n};\n\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\nexports.act = act;\nexports.cloneElement = cloneElement$1;\nexports.createContext = createContext;\nexports.createElement = createElement$1;\nexports.createFactory = createFactory;\nexports.createRef = createRef;\nexports.forwardRef = forwardRef;\nexports.isValidElement = isValidElement;\nexports.lazy = lazy;\nexports.memo = memo;\nexports.startTransition = startTransition;\nexports.unstable_act = act;\nexports.useCallback = useCallback;\nexports.useContext = useContext;\nexports.useDebugValue = useDebugValue;\nexports.useDeferredValue = useDeferredValue;\nexports.useEffect = useEffect;\nexports.useId = useId;\nexports.useImperativeHandle = useImperativeHandle;\nexports.useInsertionEffect = useInsertionEffect;\nexports.useLayoutEffect = useLayoutEffect;\nexports.useMemo = useMemo;\nexports.useReducer = useReducer;\nexports.useRef = useRef;\nexports.useState = useState;\nexports.useSyncExternalStore = useSyncExternalStore;\nexports.useTransition = useTransition;\nexports.version = ReactVersion;\n          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n        \n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react.production.min.js');\n} else {\n  module.exports = require('./cjs/react.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n  module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar compose = require('redux').compose;\n\nexports.__esModule = true;\nexports.composeWithDevTools =\n  typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n    ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n    : function () {\n        if (arguments.length === 0) return undefined;\n        if (typeof arguments[0] === 'object') return compose;\n        return compose.apply(null, arguments);\n      };\n\nexports.devToolsEnhancer =\n  typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__\n    ? window.__REDUX_DEVTOOLS_EXTENSION__\n    : function () {\n        return function (noop) {\n          return noop;\n        };\n      };\n","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t(e.reduxLogger=e.reduxLogger||{})}(this,function(e){\"use strict\";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,\"kind\",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,\"path\",{value:t,enumerable:!0})}function n(e,t,r){n.super_.call(this,\"E\",e),Object.defineProperty(this,\"lhs\",{value:t,enumerable:!0}),Object.defineProperty(this,\"rhs\",{value:r,enumerable:!0})}function o(e,t){o.super_.call(this,\"N\",e),Object.defineProperty(this,\"rhs\",{value:t,enumerable:!0})}function i(e,t){i.super_.call(this,\"D\",e),Object.defineProperty(this,\"lhs\",{value:t,enumerable:!0})}function a(e,t,r){a.super_.call(this,\"A\",e),Object.defineProperty(this,\"index\",{value:t,enumerable:!0}),Object.defineProperty(this,\"item\",{value:r,enumerable:!0})}function f(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function u(e){var t=\"undefined\"==typeof e?\"undefined\":N(e);return\"object\"!==t?t:e===Math?\"math\":null===e?\"null\":Array.isArray(e)?\"array\":\"[object Date]\"===Object.prototype.toString.call(e)?\"date\":\"function\"==typeof e.toString&&/^\\/.*\\//.test(e.toString())?\"regexp\":\"object\"}function l(e,t,r,c,s,d,p){s=s||[],p=p||[];var g=s.slice(0);if(\"undefined\"!=typeof d){if(c){if(\"function\"==typeof c&&c(g,d))return;if(\"object\"===(\"undefined\"==typeof c?\"undefined\":N(c))){if(c.prefilter&&c.prefilter(g,d))return;if(c.normalize){var h=c.normalize(g,d,e,t);h&&(e=h[0],t=h[1])}}}g.push(d)}\"regexp\"===u(e)&&\"regexp\"===u(t)&&(e=e.toString(),t=t.toString());var y=\"undefined\"==typeof e?\"undefined\":N(e),v=\"undefined\"==typeof t?\"undefined\":N(t),b=\"undefined\"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),m=\"undefined\"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!b&&m)r(new o(g,t));else if(!m&&b)r(new i(g,e));else if(u(e)!==u(t))r(new n(g,e,t));else if(\"date\"===u(e)&&e-t!==0)r(new n(g,e,t));else if(\"object\"===y&&null!==e&&null!==t)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&r(new n(g,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;e.length;for(w=0;w<e.length;w++)w>=t.length?r(new a(g,w,new i(void 0,e[w]))):l(e[w],t[w],r,c,g,w,p);for(;w<t.length;)r(new a(g,w,new o(void 0,t[w++])))}else{var x=Object.keys(e),S=Object.keys(t);x.forEach(function(n,o){var i=S.indexOf(n);i>=0?(l(e[n],t[n],r,c,g,n,p),S=f(S,i)):l(e[n],void 0,r,c,g,n,p)}),S.forEach(function(e){l(void 0,t[e],r,c,g,e,p)})}p.length=p.length-1}else e!==t&&(\"number\"===y&&isNaN(e)&&isNaN(t)||r(new n(g,e,t)))}function c(e,t,r,n){return n=n||[],l(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function s(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case\"A\":s(o[r.path[n]],r.index,r.item);break;case\"D\":delete o[r.path[n]];break;case\"E\":case\"N\":o[r.path[n]]=r.rhs}}else switch(r.kind){case\"A\":s(e[t],r.index,r.item);break;case\"D\":e=f(e,t);break;case\"E\":case\"N\":e[t]=r.rhs}return e}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,o=-1,i=r.path?r.path.length-1:0;++o<i;)\"undefined\"==typeof n[r.path[o]]&&(n[r.path[o]]=\"number\"==typeof r.path[o]?[]:{}),n=n[r.path[o]];switch(r.kind){case\"A\":s(r.path?n[r.path[o]]:n,r.index,r.item);break;case\"D\":delete n[r.path[o]];break;case\"E\":case\"N\":n[r.path[o]]=r.rhs}}}function p(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case\"A\":p(o[r.path[n]],r.index,r.item);break;case\"D\":o[r.path[n]]=r.lhs;break;case\"E\":o[r.path[n]]=r.lhs;break;case\"N\":delete o[r.path[n]]}}else switch(r.kind){case\"A\":p(e[t],r.index,r.item);break;case\"D\":e[t]=r.lhs;break;case\"E\":e[t]=r.lhs;break;case\"N\":e=f(e,t)}return e}function g(e,t,r){if(e&&t&&r&&r.kind){var n,o,i=e;for(o=r.path.length-1,n=0;n<o;n++)\"undefined\"==typeof i[r.path[n]]&&(i[r.path[n]]={}),i=i[r.path[n]];switch(r.kind){case\"A\":p(i[r.path[n]],r.index,r.item);break;case\"D\":i[r.path[n]]=r.lhs;break;case\"E\":i[r.path[n]]=r.lhs;break;case\"N\":delete i[r.path[n]]}}}function h(e,t,r){if(e&&t){var n=function(n){r&&!r(e,t,n)||d(e,t,n)};l(e,t,n)}}function y(e){return\"color: \"+F[e].color+\"; font-weight: bold\"}function v(e){var t=e.kind,r=e.path,n=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case\"E\":return[r.join(\".\"),n,\"→\",o];case\"N\":return[r.join(\".\"),o];case\"D\":return[r.join(\".\")];case\"A\":return[r.join(\".\")+\"[\"+i+\"]\",a];default:return[]}}function b(e,t,r,n){var o=c(e,t);try{n?r.groupCollapsed(\"diff\"):r.group(\"diff\")}catch(e){r.log(\"diff\")}o?o.forEach(function(e){var t=e.kind,n=v(e);r.log.apply(r,[\"%c \"+F[t].text,y(t)].concat(P(n)))}):r.log(\"—— no diff ——\");try{r.groupEnd()}catch(e){r.log(\"—— diff end —— \")}}function m(e,t,r,n){switch(\"undefined\"==typeof e?\"undefined\":N(e)){case\"object\":return\"function\"==typeof e[n]?e[n].apply(e,P(r)):e[n];case\"function\":return e(t);default:return e}}function w(e){var t=e.timestamp,r=e.duration;return function(e,n,o){var i=[\"action\"];return i.push(\"%c\"+String(e.type)),t&&i.push(\"%c@ \"+n),r&&i.push(\"%c(in \"+o.toFixed(2)+\" ms)\"),i.join(\" \")}}function x(e,t){var r=t.logger,n=t.actionTransformer,o=t.titleFormatter,i=void 0===o?w(t):o,a=t.collapsed,f=t.colors,u=t.level,l=t.diff,c=\"undefined\"==typeof t.titleFormatter;e.forEach(function(o,s){var d=o.started,p=o.startedTime,g=o.action,h=o.prevState,y=o.error,v=o.took,w=o.nextState,x=e[s+1];x&&(w=x.prevState,v=x.started-d);var S=n(g),k=\"function\"==typeof a?a(function(){return w},g,o):a,j=D(p),E=f.title?\"color: \"+f.title(S)+\";\":\"\",A=[\"color: gray; font-weight: lighter;\"];A.push(E),t.timestamp&&A.push(\"color: gray; font-weight: lighter;\"),t.duration&&A.push(\"color: gray; font-weight: lighter;\");var O=i(S,j,v);try{k?f.title&&c?r.groupCollapsed.apply(r,[\"%c \"+O].concat(A)):r.groupCollapsed(O):f.title&&c?r.group.apply(r,[\"%c \"+O].concat(A)):r.group(O)}catch(e){r.log(O)}var N=m(u,S,[h],\"prevState\"),P=m(u,S,[S],\"action\"),C=m(u,S,[y,h],\"error\"),F=m(u,S,[w],\"nextState\");if(N)if(f.prevState){var L=\"color: \"+f.prevState(h)+\"; font-weight: bold\";r[N](\"%c prev state\",L,h)}else r[N](\"prev state\",h);if(P)if(f.action){var T=\"color: \"+f.action(S)+\"; font-weight: bold\";r[P](\"%c action    \",T,S)}else r[P](\"action    \",S);if(y&&C)if(f.error){var M=\"color: \"+f.error(y,h)+\"; font-weight: bold;\";r[C](\"%c error     \",M,y)}else r[C](\"error     \",y);if(F)if(f.nextState){var _=\"color: \"+f.nextState(w)+\"; font-weight: bold\";r[F](\"%c next state\",_,w)}else r[F](\"next state\",w);l&&b(h,w,r,k);try{r.groupEnd()}catch(e){r.log(\"—— log end ——\")}})}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},L,e),r=t.logger,n=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,f=t.diffPredicate;if(\"undefined\"==typeof r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error(\"[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\\n// Logger with default options\\nimport { logger } from 'redux-logger'\\nconst store = createStore(\\n  reducer,\\n  applyMiddleware(logger)\\n)\\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\\nimport createLogger from 'redux-logger'\\nconst logger = createLogger({\\n  // ...options\\n});\\nconst store = createStore(\\n  reducer,\\n  applyMiddleware(logger)\\n)\\n\"),function(){return function(e){return function(t){return e(t)}}};var u=[];return function(e){var r=e.getState;return function(e){return function(l){if(\"function\"==typeof i&&!i(r,l))return e(l);var c={};u.push(c),c.started=O.now(),c.startedTime=new Date,c.prevState=n(r()),c.action=l;var s=void 0;if(a)try{s=e(l)}catch(e){c.error=o(e)}else s=e(l);c.took=O.now()-c.started,c.nextState=n(r());var d=t.diff&&\"function\"==typeof f?f(r,l):t.diff;if(x(u,Object.assign({},t,{diff:d})),u.length=0,c.error)throw c.error;return s}}}}var k,j,E=function(e,t){return new Array(t+1).join(e)},A=function(e,t){return E(\"0\",t-e.toString().length)+e},D=function(e){return A(e.getHours(),2)+\":\"+A(e.getMinutes(),2)+\":\"+A(e.getSeconds(),2)+\".\"+A(e.getMilliseconds(),3)},O=\"undefined\"!=typeof performance&&null!==performance&&\"function\"==typeof performance.now?performance:Date,N=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},P=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},C=[];k=\"object\"===(\"undefined\"==typeof global?\"undefined\":N(global))&&global?global:\"undefined\"!=typeof window?window:{},j=k.DeepDiff,j&&C.push(function(){\"undefined\"!=typeof j&&k.DeepDiff===c&&(k.DeepDiff=j,j=void 0)}),t(n,r),t(o,r),t(i,r),t(a,r),Object.defineProperties(c,{diff:{value:c,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:h,enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:g,enumerable:!0},isConflict:{value:function(){return\"undefined\"!=typeof j},enumerable:!0},noConflict:{value:function(){return C&&(C.forEach(function(e){e()}),C=null),c},enumerable:!0}});var F={E:{color:\"#2196F3\",text:\"CHANGED:\"},N:{color:\"#4CAF50\",text:\"ADDED:\"},D:{color:\"#F44336\",text:\"DELETED:\"},A:{color:\"#2196F3\",text:\"ARRAY:\"}},L={level:\"log\",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return\"inherit\"},prevState:function(){return\"#9E9E9E\"},action:function(){return\"#03A9F4\"},nextState:function(){return\"#4CAF50\"},error:function(){return\"#F20404\"}},diff:!1,diffPredicate:void 0,transformer:void 0},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return\"function\"==typeof t||\"function\"==typeof r?S()({dispatch:t,getState:r}):void console.error(\"\\n[redux-logger v3] BREAKING CHANGE\\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\\n[redux-logger v3] Change\\n[redux-logger v3] import createLogger from 'redux-logger'\\n[redux-logger v3] to\\n[redux-logger v3] import { createLogger } from 'redux-logger'\\n\")};e.defaults=L,e.createLogger=S,e.logger=T,e.default=T,Object.defineProperty(e,\"__esModule\",{value:!0})});\n","export var KEY_PREFIX = 'persist:';\nexport var FLUSH = 'persist/FLUSH';\nexport var REHYDRATE = 'persist/REHYDRATE';\nexport var PAUSE = 'persist/PAUSE';\nexport var PERSIST = 'persist/PERSIST';\nexport var PURGE = 'persist/PURGE';\nexport var REGISTER = 'persist/REGISTER';\nexport var DEFAULT_VERSION = -1;","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/*\n  autoMergeLevel1: \n    - merges 1 level of substate\n    - skips substate if already modified\n*/\nexport default function autoMergeLevel1(inboundState, originalState, reducedState, _ref) {\n  var debug = _ref.debug;\n\n  var newState = _objectSpread({}, reducedState); // only rehydrate if inboundState exists and is an object\n\n\n  if (inboundState && _typeof(inboundState) === 'object') {\n    Object.keys(inboundState).forEach(function (key) {\n      // ignore _persist data\n      if (key === '_persist') return; // if reducer modifies substate, skip auto rehydration\n\n      if (originalState[key] !== reducedState[key]) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist/stateReconciler: sub state for key `%s` modified, skipping.', key);\n        return;\n      } // otherwise hard set the new value\n\n\n      newState[key] = inboundState[key];\n    });\n  }\n\n  if (process.env.NODE_ENV !== 'production' && debug && inboundState && _typeof(inboundState) === 'object') console.log(\"redux-persist/stateReconciler: rehydrated keys '\".concat(Object.keys(inboundState).join(', '), \"'\"));\n  return newState;\n}","import { KEY_PREFIX, REHYDRATE } from './constants';\n// @TODO remove once flow < 0.63 support is no longer required.\nexport default function createPersistoid(config) {\n  // defaults\n  var blacklist = config.blacklist || null;\n  var whitelist = config.whitelist || null;\n  var transforms = config.transforms || [];\n  var throttle = config.throttle || 0;\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  var storage = config.storage;\n  var serialize;\n\n  if (config.serialize === false) {\n    serialize = function serialize(x) {\n      return x;\n    };\n  } else if (typeof config.serialize === 'function') {\n    serialize = config.serialize;\n  } else {\n    serialize = defaultSerialize;\n  }\n\n  var writeFailHandler = config.writeFailHandler || null; // initialize stateful values\n\n  var lastState = {};\n  var stagedState = {};\n  var keysToProcess = [];\n  var timeIterator = null;\n  var writePromise = null;\n\n  var update = function update(state) {\n    // add any changed keys to the queue\n    Object.keys(state).forEach(function (key) {\n      if (!passWhitelistBlacklist(key)) return; // is keyspace ignored? noop\n\n      if (lastState[key] === state[key]) return; // value unchanged? noop\n\n      if (keysToProcess.indexOf(key) !== -1) return; // is key already queued? noop\n\n      keysToProcess.push(key); // add key to queue\n    }); //if any key is missing in the new state which was present in the lastState,\n    //add it for processing too\n\n    Object.keys(lastState).forEach(function (key) {\n      if (state[key] === undefined && passWhitelistBlacklist(key) && keysToProcess.indexOf(key) === -1 && lastState[key] !== undefined) {\n        keysToProcess.push(key);\n      }\n    }); // start the time iterator if not running (read: throttle)\n\n    if (timeIterator === null) {\n      timeIterator = setInterval(processNextKey, throttle);\n    }\n\n    lastState = state;\n  };\n\n  function processNextKey() {\n    if (keysToProcess.length === 0) {\n      if (timeIterator) clearInterval(timeIterator);\n      timeIterator = null;\n      return;\n    }\n\n    var key = keysToProcess.shift();\n    var endState = transforms.reduce(function (subState, transformer) {\n      return transformer.in(subState, key, lastState);\n    }, lastState[key]);\n\n    if (endState !== undefined) {\n      try {\n        stagedState[key] = serialize(endState);\n      } catch (err) {\n        console.error('redux-persist/createPersistoid: error serializing state', err);\n      }\n    } else {\n      //if the endState is undefined, no need to persist the existing serialized content\n      delete stagedState[key];\n    }\n\n    if (keysToProcess.length === 0) {\n      writeStagedState();\n    }\n  }\n\n  function writeStagedState() {\n    // cleanup any removed keys just before write.\n    Object.keys(stagedState).forEach(function (key) {\n      if (lastState[key] === undefined) {\n        delete stagedState[key];\n      }\n    });\n    writePromise = storage.setItem(storageKey, serialize(stagedState)).catch(onWriteFail);\n  }\n\n  function passWhitelistBlacklist(key) {\n    if (whitelist && whitelist.indexOf(key) === -1 && key !== '_persist') return false;\n    if (blacklist && blacklist.indexOf(key) !== -1) return false;\n    return true;\n  }\n\n  function onWriteFail(err) {\n    // @TODO add fail handlers (typically storage full)\n    if (writeFailHandler) writeFailHandler(err);\n\n    if (err && process.env.NODE_ENV !== 'production') {\n      console.error('Error storing data', err);\n    }\n  }\n\n  var flush = function flush() {\n    while (keysToProcess.length !== 0) {\n      processNextKey();\n    }\n\n    return writePromise || Promise.resolve();\n  }; // return `persistoid`\n\n\n  return {\n    update: update,\n    flush: flush\n  };\n} // @NOTE in the future this may be exposed via config\n\nfunction defaultSerialize(data) {\n  return JSON.stringify(data);\n}","import { KEY_PREFIX } from './constants';\nexport default function getStoredState(config) {\n  var transforms = config.transforms || [];\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  var storage = config.storage;\n  var debug = config.debug;\n  var deserialize;\n\n  if (config.deserialize === false) {\n    deserialize = function deserialize(x) {\n      return x;\n    };\n  } else if (typeof config.deserialize === 'function') {\n    deserialize = config.deserialize;\n  } else {\n    deserialize = defaultDeserialize;\n  }\n\n  return storage.getItem(storageKey).then(function (serialized) {\n    if (!serialized) return undefined;else {\n      try {\n        var state = {};\n        var rawState = deserialize(serialized);\n        Object.keys(rawState).forEach(function (key) {\n          state[key] = transforms.reduceRight(function (subState, transformer) {\n            return transformer.out(subState, key, rawState);\n          }, deserialize(rawState[key]));\n        });\n        return state;\n      } catch (err) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log(\"redux-persist/getStoredState: Error restoring data \".concat(serialized), err);\n        throw err;\n      }\n    }\n  });\n}\n\nfunction defaultDeserialize(serial) {\n  return JSON.parse(serial);\n}","import { KEY_PREFIX } from './constants';\nexport default function purgeStoredState(config) {\n  var storage = config.storage;\n  var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n  return storage.removeItem(storageKey, warnIfRemoveError);\n}\n\nfunction warnIfRemoveError(err) {\n  if (err && process.env.NODE_ENV !== 'production') {\n    console.error('redux-persist/purgeStoredState: Error purging data stored state', err);\n  }\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { FLUSH, PAUSE, PERSIST, PURGE, REHYDRATE, DEFAULT_VERSION } from './constants';\nimport autoMergeLevel1 from './stateReconciler/autoMergeLevel1';\nimport createPersistoid from './createPersistoid';\nimport defaultGetStoredState from './getStoredState';\nimport purgeStoredState from './purgeStoredState';\nvar DEFAULT_TIMEOUT = 5000;\n/*\n  @TODO add validation / handling for:\n  - persisting a reducer which has nested _persist\n  - handling actions that fire before reydrate is called\n*/\n\nexport default function persistReducer(config, baseReducer) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (!config) throw new Error('config is required for persistReducer');\n    if (!config.key) throw new Error('key is required in persistor config');\n    if (!config.storage) throw new Error(\"redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`\");\n  }\n\n  var version = config.version !== undefined ? config.version : DEFAULT_VERSION;\n  var debug = config.debug || false;\n  var stateReconciler = config.stateReconciler === undefined ? autoMergeLevel1 : config.stateReconciler;\n  var getStoredState = config.getStoredState || defaultGetStoredState;\n  var timeout = config.timeout !== undefined ? config.timeout : DEFAULT_TIMEOUT;\n  var _persistoid = null;\n  var _purge = false;\n  var _paused = true;\n\n  var conditionalUpdate = function conditionalUpdate(state) {\n    // update the persistoid only if we are rehydrated and not paused\n    state._persist.rehydrated && _persistoid && !_paused && _persistoid.update(state);\n    return state;\n  };\n\n  return function (state, action) {\n    var _ref = state || {},\n        _persist = _ref._persist,\n        rest = _objectWithoutProperties(_ref, [\"_persist\"]); // $FlowIgnore need to update State type\n\n\n    var restState = rest;\n\n    if (action.type === PERSIST) {\n      var _sealed = false;\n\n      var _rehydrate = function _rehydrate(payload, err) {\n        // dev warning if we are already sealed\n        if (process.env.NODE_ENV !== 'production' && _sealed) console.error(\"redux-persist: rehydrate for \\\"\".concat(config.key, \"\\\" called after timeout.\"), payload, err); // only rehydrate if we are not already sealed\n\n        if (!_sealed) {\n          action.rehydrate(config.key, payload, err);\n          _sealed = true;\n        }\n      };\n\n      timeout && setTimeout(function () {\n        !_sealed && _rehydrate(undefined, new Error(\"redux-persist: persist timed out for persist key \\\"\".concat(config.key, \"\\\"\")));\n      }, timeout); // @NOTE PERSIST resumes if paused.\n\n      _paused = false; // @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set\n\n      if (!_persistoid) _persistoid = createPersistoid(config); // @NOTE PERSIST can be called multiple times, noop after the first\n\n      if (_persist) {\n        // We still need to call the base reducer because there might be nested\n        // uses of persistReducer which need to be aware of the PERSIST action\n        return _objectSpread({}, baseReducer(restState, action), {\n          _persist: _persist\n        });\n      }\n\n      if (typeof action.rehydrate !== 'function' || typeof action.register !== 'function') throw new Error('redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.');\n      action.register(config.key);\n      getStoredState(config).then(function (restoredState) {\n        var migrate = config.migrate || function (s, v) {\n          return Promise.resolve(s);\n        };\n\n        migrate(restoredState, version).then(function (migratedState) {\n          _rehydrate(migratedState);\n        }, function (migrateErr) {\n          if (process.env.NODE_ENV !== 'production' && migrateErr) console.error('redux-persist: migration error', migrateErr);\n\n          _rehydrate(undefined, migrateErr);\n        });\n      }, function (err) {\n        _rehydrate(undefined, err);\n      });\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: {\n          version: version,\n          rehydrated: false\n        }\n      });\n    } else if (action.type === PURGE) {\n      _purge = true;\n      action.result(purgeStoredState(config));\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: _persist\n      });\n    } else if (action.type === FLUSH) {\n      action.result(_persistoid && _persistoid.flush());\n      return _objectSpread({}, baseReducer(restState, action), {\n        _persist: _persist\n      });\n    } else if (action.type === PAUSE) {\n      _paused = true;\n    } else if (action.type === REHYDRATE) {\n      // noop on restState if purging\n      if (_purge) return _objectSpread({}, restState, {\n        _persist: _objectSpread({}, _persist, {\n          rehydrated: true\n        }) // @NOTE if key does not match, will continue to default else below\n\n      });\n\n      if (action.key === config.key) {\n        var reducedState = baseReducer(restState, action);\n        var inboundState = action.payload; // only reconcile state if stateReconciler and inboundState are both defined\n\n        var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState;\n\n        var _newState = _objectSpread({}, reconciledRest, {\n          _persist: _objectSpread({}, _persist, {\n            rehydrated: true\n          })\n        });\n\n        return conditionalUpdate(_newState);\n      }\n    } // if we have not already handled PERSIST, straight passthrough\n\n\n    if (!_persist) return baseReducer(state, action); // run base reducer:\n    // is state modified ? return original : return updated\n\n    var newState = baseReducer(restState, action);\n    if (newState === restState) return state;\n    return conditionalUpdate(_objectSpread({}, newState, {\n      _persist: _persist\n    }));\n  };\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/*\n  autoMergeLevel2: \n    - merges 2 level of substate\n    - skips substate if already modified\n    - this is essentially redux-perist v4 behavior\n*/\nexport default function autoMergeLevel2(inboundState, originalState, reducedState, _ref) {\n  var debug = _ref.debug;\n\n  var newState = _objectSpread({}, reducedState); // only rehydrate if inboundState exists and is an object\n\n\n  if (inboundState && _typeof(inboundState) === 'object') {\n    Object.keys(inboundState).forEach(function (key) {\n      // ignore _persist data\n      if (key === '_persist') return; // if reducer modifies substate, skip auto rehydration\n\n      if (originalState[key] !== reducedState[key]) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist/stateReconciler: sub state for key `%s` modified, skipping.', key);\n        return;\n      }\n\n      if (isPlainEnoughObject(reducedState[key])) {\n        // if object is plain enough shallow merge the new values (hence \"Level2\")\n        newState[key] = _objectSpread({}, newState[key], {}, inboundState[key]);\n        return;\n      } // otherwise hard set\n\n\n      newState[key] = inboundState[key];\n    });\n  }\n\n  if (process.env.NODE_ENV !== 'production' && debug && inboundState && _typeof(inboundState) === 'object') console.log(\"redux-persist/stateReconciler: rehydrated keys '\".concat(Object.keys(inboundState).join(', '), \"'\"));\n  return newState;\n}\n\nfunction isPlainEnoughObject(o) {\n  return o !== null && !Array.isArray(o) && _typeof(o) === 'object';\n}","import { combineReducers } from 'redux';\nimport persistReducer from './persistReducer';\nimport autoMergeLevel2 from './stateReconciler/autoMergeLevel2';\n// combineReducers + persistReducer with stateReconciler defaulted to autoMergeLevel2\nexport default function persistCombineReducers(config, reducers) {\n  config.stateReconciler = config.stateReconciler === undefined ? autoMergeLevel2 : config.stateReconciler;\n  return persistReducer(config, combineReducers(reducers));\n}","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { createStore } from 'redux';\nimport { FLUSH, PAUSE, PERSIST, PURGE, REGISTER, REHYDRATE } from './constants';\nvar initialState = {\n  registry: [],\n  bootstrapped: false\n};\n\nvar persistorReducer = function persistorReducer() {\n  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n  var action = arguments.length > 1 ? arguments[1] : undefined;\n\n  switch (action.type) {\n    case REGISTER:\n      return _objectSpread({}, state, {\n        registry: [].concat(_toConsumableArray(state.registry), [action.key])\n      });\n\n    case REHYDRATE:\n      var firstIndex = state.registry.indexOf(action.key);\n\n      var registry = _toConsumableArray(state.registry);\n\n      registry.splice(firstIndex, 1);\n      return _objectSpread({}, state, {\n        registry: registry,\n        bootstrapped: registry.length === 0\n      });\n\n    default:\n      return state;\n  }\n};\n\nexport default function persistStore(store, options, cb) {\n  // help catch incorrect usage of passing PersistConfig in as PersistorOptions\n  if (process.env.NODE_ENV !== 'production') {\n    var optionsToTest = options || {};\n    var bannedKeys = ['blacklist', 'whitelist', 'transforms', 'storage', 'keyPrefix', 'migrate'];\n    bannedKeys.forEach(function (k) {\n      if (!!optionsToTest[k]) console.error(\"redux-persist: invalid option passed to persistStore: \\\"\".concat(k, \"\\\". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.\"));\n    });\n  }\n\n  var boostrappedCb = cb || false;\n\n  var _pStore = createStore(persistorReducer, initialState, options && options.enhancer ? options.enhancer : undefined);\n\n  var register = function register(key) {\n    _pStore.dispatch({\n      type: REGISTER,\n      key: key\n    });\n  };\n\n  var rehydrate = function rehydrate(key, payload, err) {\n    var rehydrateAction = {\n      type: REHYDRATE,\n      payload: payload,\n      err: err,\n      key: key // dispatch to `store` to rehydrate and `persistor` to track result\n\n    };\n    store.dispatch(rehydrateAction);\n\n    _pStore.dispatch(rehydrateAction);\n\n    if (boostrappedCb && persistor.getState().bootstrapped) {\n      boostrappedCb();\n      boostrappedCb = false;\n    }\n  };\n\n  var persistor = _objectSpread({}, _pStore, {\n    purge: function purge() {\n      var results = [];\n      store.dispatch({\n        type: PURGE,\n        result: function result(purgeResult) {\n          results.push(purgeResult);\n        }\n      });\n      return Promise.all(results);\n    },\n    flush: function flush() {\n      var results = [];\n      store.dispatch({\n        type: FLUSH,\n        result: function result(flushResult) {\n          results.push(flushResult);\n        }\n      });\n      return Promise.all(results);\n    },\n    pause: function pause() {\n      store.dispatch({\n        type: PAUSE\n      });\n    },\n    persist: function persist() {\n      store.dispatch({\n        type: PERSIST,\n        register: register,\n        rehydrate: rehydrate\n      });\n    }\n  });\n\n  if (!(options && options.manualPersist)) {\n    persistor.persist();\n  }\n\n  return persistor;\n}","import { DEFAULT_VERSION } from './constants';\nexport default function createMigrate(migrations, config) {\n  var _ref = config || {},\n      debug = _ref.debug;\n\n  return function (state, currentVersion) {\n    if (!state) {\n      if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist: no inbound state, skipping migration');\n      return Promise.resolve(undefined);\n    }\n\n    var inboundVersion = state._persist && state._persist.version !== undefined ? state._persist.version : DEFAULT_VERSION;\n\n    if (inboundVersion === currentVersion) {\n      if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist: versions match, noop migration');\n      return Promise.resolve(state);\n    }\n\n    if (inboundVersion > currentVersion) {\n      if (process.env.NODE_ENV !== 'production') console.error('redux-persist: downgrading version is not supported');\n      return Promise.resolve(state);\n    }\n\n    var migrationKeys = Object.keys(migrations).map(function (ver) {\n      return parseInt(ver);\n    }).filter(function (key) {\n      return currentVersion >= key && key > inboundVersion;\n    }).sort(function (a, b) {\n      return a - b;\n    });\n    if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist: migrationKeys', migrationKeys);\n\n    try {\n      var migratedState = migrationKeys.reduce(function (state, versionKey) {\n        if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist: running migration for versionKey', versionKey);\n        return migrations[versionKey](state);\n      }, state);\n      return Promise.resolve(migratedState);\n    } catch (err) {\n      return Promise.reject(err);\n    }\n  };\n}","export default function createTransform( // @NOTE inbound: transform state coming from redux on its way to being serialized and stored\ninbound, // @NOTE outbound: transform state coming from storage, on its way to be rehydrated into redux\noutbound) {\n  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var whitelist = config.whitelist || null;\n  var blacklist = config.blacklist || null;\n\n  function whitelistBlacklistCheck(key) {\n    if (whitelist && whitelist.indexOf(key) === -1) return true;\n    if (blacklist && blacklist.indexOf(key) !== -1) return true;\n    return false;\n  }\n\n  return {\n    in: function _in(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && inbound ? inbound(state, key, fullState) : state;\n    },\n    out: function out(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && outbound ? outbound(state, key, fullState) : state;\n    }\n  };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.PersistGate = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n  _inherits(PersistGate, _PureComponent);\n\n  function PersistGate() {\n    var _getPrototypeOf2;\n\n    var _this;\n\n    _classCallCheck(this, PersistGate);\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n    _defineProperty(_assertThisInitialized(_this), \"state\", {\n      bootstrapped: false\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n      var persistor = _this.props.persistor;\n\n      var _persistor$getState = persistor.getState(),\n          bootstrapped = _persistor$getState.bootstrapped;\n\n      if (bootstrapped) {\n        if (_this.props.onBeforeLift) {\n          Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n            return _this.setState({\n              bootstrapped: true\n            });\n          });\n        } else {\n          _this.setState({\n            bootstrapped: true\n          });\n        }\n\n        _this._unsubscribe && _this._unsubscribe();\n      }\n    });\n\n    return _this;\n  }\n\n  _createClass(PersistGate, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n      this.handlePersistorState();\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      this._unsubscribe && this._unsubscribe();\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      if (process.env.NODE_ENV !== 'production') {\n        if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n      }\n\n      if (typeof this.props.children === 'function') {\n        return this.props.children(this.state.bootstrapped);\n      }\n\n      return this.state.bootstrapped ? this.props.children : this.props.loading;\n    }\n  }]);\n\n  return PersistGate;\n}(_react.PureComponent);\n\nexports.PersistGate = PersistGate;\n\n_defineProperty(PersistGate, \"defaultProps\", {\n  children: null,\n  loading: null\n});","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n  var storage = (0, _getStorage.default)(type);\n  return {\n    getItem: function getItem(key) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.getItem(key));\n      });\n    },\n    setItem: function setItem(key, item) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.setItem(key, item));\n      });\n    },\n    removeItem: function removeItem(key) {\n      return new Promise(function (resolve, reject) {\n        resolve(storage.removeItem(key));\n      });\n    }\n  };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n  getItem: noop,\n  setItem: noop,\n  removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n  if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n    return false;\n  }\n\n  try {\n    var storage = self[storageType];\n    var testKey = \"redux-persist \".concat(storageType, \" test\");\n    storage.setItem(testKey, 'test');\n    storage.getItem(testKey);\n    storage.removeItem(testKey);\n  } catch (e) {\n    if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n    return false;\n  }\n\n  return true;\n}\n\nfunction getStorage(type) {\n  var storageType = \"\".concat(type, \"Storage\");\n  if (hasStorage(storageType)) return self[storageType];else {\n    if (process.env.NODE_ENV !== 'production') {\n      console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n    }\n\n    return noopStorage;\n  }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","/** A function that accepts a potential \"extra argument\" value to be injected later,\r\n * and returns an instance of the thunk middleware that uses that value\r\n */\nfunction createThunkMiddleware(extraArgument) {\n  // Standard Redux middleware definition pattern:\n  // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware\n  var middleware = function middleware(_ref) {\n    var dispatch = _ref.dispatch,\n        getState = _ref.getState;\n    return function (next) {\n      return function (action) {\n        // The thunk middleware looks for any functions that were passed to `store.dispatch`.\n        // If this \"action\" is really a function, call it and return the result.\n        if (typeof action === 'function') {\n          // Inject the store's `dispatch` and `getState` methods, as well as any \"extra arg\"\n          return action(dispatch, getState, extraArgument);\n        } // Otherwise, pass the action down the middleware chain as usual\n\n\n        return next(action);\n      };\n    };\n  };\n\n  return middleware;\n}\n\nvar thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version\n// with whatever \"extra arg\" they want to inject into their thunks\n\nthunk.withExtraArgument = createThunkMiddleware;\nexport default thunk;","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n  var t = Object.keys(e);\n  if (Object.getOwnPropertySymbols) {\n    var o = Object.getOwnPropertySymbols(e);\n    r && (o = o.filter(function (r) {\n      return Object.getOwnPropertyDescriptor(e, r).enumerable;\n    })), t.push.apply(t, o);\n  }\n  return t;\n}\nfunction _objectSpread2(e) {\n  for (var r = 1; r < arguments.length; r++) {\n    var t = null != arguments[r] ? arguments[r] : {};\n    r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n      defineProperty(e, r, t[r]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n    });\n  }\n  return e;\n}\nexport { _objectSpread2 as default };","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n  return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n  return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n  return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n  INIT: \"@@redux/INIT\" + randomString(),\n  REPLACE: \"@@redux/REPLACE\" + randomString(),\n  PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n    return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n  }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n  if (typeof obj !== 'object' || obj === null) return false;\n  var proto = obj;\n\n  while (Object.getPrototypeOf(proto) !== null) {\n    proto = Object.getPrototypeOf(proto);\n  }\n\n  return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n  if (val === void 0) return 'undefined';\n  if (val === null) return 'null';\n  var type = typeof val;\n\n  switch (type) {\n    case 'boolean':\n    case 'string':\n    case 'number':\n    case 'symbol':\n    case 'function':\n      {\n        return type;\n      }\n  }\n\n  if (Array.isArray(val)) return 'array';\n  if (isDate(val)) return 'date';\n  if (isError(val)) return 'error';\n  var constructorName = ctorName(val);\n\n  switch (constructorName) {\n    case 'Symbol':\n    case 'Promise':\n    case 'WeakMap':\n    case 'WeakSet':\n    case 'Map':\n    case 'Set':\n      return constructorName;\n  } // other\n\n\n  return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n  return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n  return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n  if (val instanceof Date) return true;\n  return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n  var typeOfVal = typeof val;\n\n  if (process.env.NODE_ENV !== 'production') {\n    typeOfVal = miniKindOf(val);\n  }\n\n  return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n  var _ref2;\n\n  if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n    throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n  }\n\n  if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n    enhancer = preloadedState;\n    preloadedState = undefined;\n  }\n\n  if (typeof enhancer !== 'undefined') {\n    if (typeof enhancer !== 'function') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n    }\n\n    return enhancer(createStore)(reducer, preloadedState);\n  }\n\n  if (typeof reducer !== 'function') {\n    throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n  }\n\n  var currentReducer = reducer;\n  var currentState = preloadedState;\n  var currentListeners = [];\n  var nextListeners = currentListeners;\n  var isDispatching = false;\n  /**\n   * This makes a shallow copy of currentListeners so we can use\n   * nextListeners as a temporary list while dispatching.\n   *\n   * This prevents any bugs around consumers calling\n   * subscribe/unsubscribe in the middle of a dispatch.\n   */\n\n  function ensureCanMutateNextListeners() {\n    if (nextListeners === currentListeners) {\n      nextListeners = currentListeners.slice();\n    }\n  }\n  /**\n   * Reads the state tree managed by the store.\n   *\n   * @returns {any} The current state tree of your application.\n   */\n\n\n  function getState() {\n    if (isDispatching) {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n    }\n\n    return currentState;\n  }\n  /**\n   * Adds a change listener. It will be called any time an action is dispatched,\n   * and some part of the state tree may potentially have changed. You may then\n   * call `getState()` to read the current state tree inside the callback.\n   *\n   * You may call `dispatch()` from a change listener, with the following\n   * caveats:\n   *\n   * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n   * If you subscribe or unsubscribe while the listeners are being invoked, this\n   * will not have any effect on the `dispatch()` that is currently in progress.\n   * However, the next `dispatch()` call, whether nested or not, will use a more\n   * recent snapshot of the subscription list.\n   *\n   * 2. The listener should not expect to see all state changes, as the state\n   * might have been updated multiple times during a nested `dispatch()` before\n   * the listener is called. It is, however, guaranteed that all subscribers\n   * registered before the `dispatch()` started will be called with the latest\n   * state by the time it exits.\n   *\n   * @param {Function} listener A callback to be invoked on every dispatch.\n   * @returns {Function} A function to remove this change listener.\n   */\n\n\n  function subscribe(listener) {\n    if (typeof listener !== 'function') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n    }\n\n    if (isDispatching) {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n    }\n\n    var isSubscribed = true;\n    ensureCanMutateNextListeners();\n    nextListeners.push(listener);\n    return function unsubscribe() {\n      if (!isSubscribed) {\n        return;\n      }\n\n      if (isDispatching) {\n        throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n      }\n\n      isSubscribed = false;\n      ensureCanMutateNextListeners();\n      var index = nextListeners.indexOf(listener);\n      nextListeners.splice(index, 1);\n      currentListeners = null;\n    };\n  }\n  /**\n   * Dispatches an action. It is the only way to trigger a state change.\n   *\n   * The `reducer` function, used to create the store, will be called with the\n   * current state tree and the given `action`. Its return value will\n   * be considered the **next** state of the tree, and the change listeners\n   * will be notified.\n   *\n   * The base implementation only supports plain object actions. If you want to\n   * dispatch a Promise, an Observable, a thunk, or something else, you need to\n   * wrap your store creating function into the corresponding middleware. For\n   * example, see the documentation for the `redux-thunk` package. Even the\n   * middleware will eventually dispatch plain object actions using this method.\n   *\n   * @param {Object} action A plain object representing “what changed”. It is\n   * a good idea to keep actions serializable so you can record and replay user\n   * sessions, or use the time travelling `redux-devtools`. An action must have\n   * a `type` property which may not be `undefined`. It is a good idea to use\n   * string constants for action types.\n   *\n   * @returns {Object} For convenience, the same action object you dispatched.\n   *\n   * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n   * return something else (for example, a Promise you can await).\n   */\n\n\n  function dispatch(action) {\n    if (!isPlainObject(action)) {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n    }\n\n    if (typeof action.type === 'undefined') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n    }\n\n    if (isDispatching) {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n    }\n\n    try {\n      isDispatching = true;\n      currentState = currentReducer(currentState, action);\n    } finally {\n      isDispatching = false;\n    }\n\n    var listeners = currentListeners = nextListeners;\n\n    for (var i = 0; i < listeners.length; i++) {\n      var listener = listeners[i];\n      listener();\n    }\n\n    return action;\n  }\n  /**\n   * Replaces the reducer currently used by the store to calculate the state.\n   *\n   * You might need this if your app implements code splitting and you want to\n   * load some of the reducers dynamically. You might also need this if you\n   * implement a hot reloading mechanism for Redux.\n   *\n   * @param {Function} nextReducer The reducer for the store to use instead.\n   * @returns {void}\n   */\n\n\n  function replaceReducer(nextReducer) {\n    if (typeof nextReducer !== 'function') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n    }\n\n    currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n    // Any reducers that existed in both the new and old rootReducer\n    // will receive the previous state. This effectively populates\n    // the new state tree with any relevant data from the old one.\n\n    dispatch({\n      type: ActionTypes.REPLACE\n    });\n  }\n  /**\n   * Interoperability point for observable/reactive libraries.\n   * @returns {observable} A minimal observable of state changes.\n   * For more information, see the observable proposal:\n   * https://github.com/tc39/proposal-observable\n   */\n\n\n  function observable() {\n    var _ref;\n\n    var outerSubscribe = subscribe;\n    return _ref = {\n      /**\n       * The minimal observable subscription method.\n       * @param {Object} observer Any object that can be used as an observer.\n       * The observer object should have a `next` method.\n       * @returns {subscription} An object with an `unsubscribe` method that can\n       * be used to unsubscribe the observable from the store, and prevent further\n       * emission of values from the observable.\n       */\n      subscribe: function subscribe(observer) {\n        if (typeof observer !== 'object' || observer === null) {\n          throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n        }\n\n        function observeState() {\n          if (observer.next) {\n            observer.next(getState());\n          }\n        }\n\n        observeState();\n        var unsubscribe = outerSubscribe(observeState);\n        return {\n          unsubscribe: unsubscribe\n        };\n      }\n    }, _ref[$$observable] = function () {\n      return this;\n    }, _ref;\n  } // When a store is created, an \"INIT\" action is dispatched so that every\n  // reducer returns their initial state. This effectively populates\n  // the initial state tree.\n\n\n  dispatch({\n    type: ActionTypes.INIT\n  });\n  return _ref2 = {\n    dispatch: dispatch,\n    subscribe: subscribe,\n    getState: getState,\n    replaceReducer: replaceReducer\n  }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n  /* eslint-disable no-console */\n  if (typeof console !== 'undefined' && typeof console.error === 'function') {\n    console.error(message);\n  }\n  /* eslint-enable no-console */\n\n\n  try {\n    // This error was thrown as a convenience so that if you enable\n    // \"break on all exceptions\" in your console,\n    // it would pause the execution at this line.\n    throw new Error(message);\n  } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n  var reducerKeys = Object.keys(reducers);\n  var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n  if (reducerKeys.length === 0) {\n    return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n  }\n\n  if (!isPlainObject(inputState)) {\n    return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n  }\n\n  var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n    return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n  });\n  unexpectedKeys.forEach(function (key) {\n    unexpectedKeyCache[key] = true;\n  });\n  if (action && action.type === ActionTypes.REPLACE) return;\n\n  if (unexpectedKeys.length > 0) {\n    return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n  }\n}\n\nfunction assertReducerShape(reducers) {\n  Object.keys(reducers).forEach(function (key) {\n    var reducer = reducers[key];\n    var initialState = reducer(undefined, {\n      type: ActionTypes.INIT\n    });\n\n    if (typeof initialState === 'undefined') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n    }\n\n    if (typeof reducer(undefined, {\n      type: ActionTypes.PROBE_UNKNOWN_ACTION()\n    }) === 'undefined') {\n      throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n    }\n  });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n  var reducerKeys = Object.keys(reducers);\n  var finalReducers = {};\n\n  for (var i = 0; i < reducerKeys.length; i++) {\n    var key = reducerKeys[i];\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof reducers[key] === 'undefined') {\n        warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n      }\n    }\n\n    if (typeof reducers[key] === 'function') {\n      finalReducers[key] = reducers[key];\n    }\n  }\n\n  var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n  // keys multiple times.\n\n  var unexpectedKeyCache;\n\n  if (process.env.NODE_ENV !== 'production') {\n    unexpectedKeyCache = {};\n  }\n\n  var shapeAssertionError;\n\n  try {\n    assertReducerShape(finalReducers);\n  } catch (e) {\n    shapeAssertionError = e;\n  }\n\n  return function combination(state, action) {\n    if (state === void 0) {\n      state = {};\n    }\n\n    if (shapeAssertionError) {\n      throw shapeAssertionError;\n    }\n\n    if (process.env.NODE_ENV !== 'production') {\n      var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n      if (warningMessage) {\n        warning(warningMessage);\n      }\n    }\n\n    var hasChanged = false;\n    var nextState = {};\n\n    for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n      var _key = finalReducerKeys[_i];\n      var reducer = finalReducers[_key];\n      var previousStateForKey = state[_key];\n      var nextStateForKey = reducer(previousStateForKey, action);\n\n      if (typeof nextStateForKey === 'undefined') {\n        var actionType = action && action.type;\n        throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n      }\n\n      nextState[_key] = nextStateForKey;\n      hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n    }\n\n    hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n    return hasChanged ? nextState : state;\n  };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n  return function () {\n    return dispatch(actionCreator.apply(this, arguments));\n  };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n  if (typeof actionCreators === 'function') {\n    return bindActionCreator(actionCreators, dispatch);\n  }\n\n  if (typeof actionCreators !== 'object' || actionCreators === null) {\n    throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n  }\n\n  var boundActionCreators = {};\n\n  for (var key in actionCreators) {\n    var actionCreator = actionCreators[key];\n\n    if (typeof actionCreator === 'function') {\n      boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n    }\n  }\n\n  return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n    funcs[_key] = arguments[_key];\n  }\n\n  if (funcs.length === 0) {\n    return function (arg) {\n      return arg;\n    };\n  }\n\n  if (funcs.length === 1) {\n    return funcs[0];\n  }\n\n  return funcs.reduce(function (a, b) {\n    return function () {\n      return a(b.apply(void 0, arguments));\n    };\n  });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n  for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n    middlewares[_key] = arguments[_key];\n  }\n\n  return function (createStore) {\n    return function () {\n      var store = createStore.apply(void 0, arguments);\n\n      var _dispatch = function dispatch() {\n        throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n      };\n\n      var middlewareAPI = {\n        getState: store.getState,\n        dispatch: function dispatch() {\n          return _dispatch.apply(void 0, arguments);\n        }\n      };\n      var chain = middlewares.map(function (middleware) {\n        return middleware(middlewareAPI);\n      });\n      _dispatch = compose.apply(void 0, chain)(store.dispatch);\n      return _objectSpread(_objectSpread({}, store), {}, {\n        dispatch: _dispatch\n      });\n    };\n  };\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n","/**\n * @license React\n * scheduler.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n  (function() {\n\n          'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n          var enableSchedulerDebugging = false;\nvar enableProfiling = false;\nvar frameYieldMs = 5;\n\nfunction push(heap, node) {\n  var index = heap.length;\n  heap.push(node);\n  siftUp(heap, node, index);\n}\nfunction peek(heap) {\n  return heap.length === 0 ? null : heap[0];\n}\nfunction pop(heap) {\n  if (heap.length === 0) {\n    return null;\n  }\n\n  var first = heap[0];\n  var last = heap.pop();\n\n  if (last !== first) {\n    heap[0] = last;\n    siftDown(heap, last, 0);\n  }\n\n  return first;\n}\n\nfunction siftUp(heap, node, i) {\n  var index = i;\n\n  while (index > 0) {\n    var parentIndex = index - 1 >>> 1;\n    var parent = heap[parentIndex];\n\n    if (compare(parent, node) > 0) {\n      // The parent is larger. Swap positions.\n      heap[parentIndex] = node;\n      heap[index] = parent;\n      index = parentIndex;\n    } else {\n      // The parent is smaller. Exit.\n      return;\n    }\n  }\n}\n\nfunction siftDown(heap, node, i) {\n  var index = i;\n  var length = heap.length;\n  var halfLength = length >>> 1;\n\n  while (index < halfLength) {\n    var leftIndex = (index + 1) * 2 - 1;\n    var left = heap[leftIndex];\n    var rightIndex = leftIndex + 1;\n    var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.\n\n    if (compare(left, node) < 0) {\n      if (rightIndex < length && compare(right, left) < 0) {\n        heap[index] = right;\n        heap[rightIndex] = node;\n        index = rightIndex;\n      } else {\n        heap[index] = left;\n        heap[leftIndex] = node;\n        index = leftIndex;\n      }\n    } else if (rightIndex < length && compare(right, node) < 0) {\n      heap[index] = right;\n      heap[rightIndex] = node;\n      index = rightIndex;\n    } else {\n      // Neither child is smaller. Exit.\n      return;\n    }\n  }\n}\n\nfunction compare(a, b) {\n  // Compare sort index first, then task id.\n  var diff = a.sortIndex - b.sortIndex;\n  return diff !== 0 ? diff : a.id - b.id;\n}\n\n// TODO: Use symbols?\nvar ImmediatePriority = 1;\nvar UserBlockingPriority = 2;\nvar NormalPriority = 3;\nvar LowPriority = 4;\nvar IdlePriority = 5;\n\nfunction markTaskErrored(task, ms) {\n}\n\n/* eslint-disable no-var */\n\nvar hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\n\nif (hasPerformanceNow) {\n  var localPerformance = performance;\n\n  exports.unstable_now = function () {\n    return localPerformance.now();\n  };\n} else {\n  var localDate = Date;\n  var initialTime = localDate.now();\n\n  exports.unstable_now = function () {\n    return localDate.now() - initialTime;\n  };\n} // Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\n\n\nvar maxSigned31BitInt = 1073741823; // Times out immediately\n\nvar IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out\n\nvar USER_BLOCKING_PRIORITY_TIMEOUT = 250;\nvar NORMAL_PRIORITY_TIMEOUT = 5000;\nvar LOW_PRIORITY_TIMEOUT = 10000; // Never times out\n\nvar IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap\n\nvar taskQueue = [];\nvar timerQueue = []; // Incrementing id counter. Used to maintain insertion order.\n\nvar taskIdCounter = 1; // Pausing the scheduler is useful for debugging.\nvar currentTask = null;\nvar currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.\n\nvar isPerformingWork = false;\nvar isHostCallbackScheduled = false;\nvar isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.\n\nvar localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;\nvar localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;\nvar localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom\n\nvar isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;\n\nfunction advanceTimers(currentTime) {\n  // Check for tasks that are no longer delayed and add them to the queue.\n  var timer = peek(timerQueue);\n\n  while (timer !== null) {\n    if (timer.callback === null) {\n      // Timer was cancelled.\n      pop(timerQueue);\n    } else if (timer.startTime <= currentTime) {\n      // Timer fired. Transfer to the task queue.\n      pop(timerQueue);\n      timer.sortIndex = timer.expirationTime;\n      push(taskQueue, timer);\n    } else {\n      // Remaining timers are pending.\n      return;\n    }\n\n    timer = peek(timerQueue);\n  }\n}\n\nfunction handleTimeout(currentTime) {\n  isHostTimeoutScheduled = false;\n  advanceTimers(currentTime);\n\n  if (!isHostCallbackScheduled) {\n    if (peek(taskQueue) !== null) {\n      isHostCallbackScheduled = true;\n      requestHostCallback(flushWork);\n    } else {\n      var firstTimer = peek(timerQueue);\n\n      if (firstTimer !== null) {\n        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n      }\n    }\n  }\n}\n\nfunction flushWork(hasTimeRemaining, initialTime) {\n\n\n  isHostCallbackScheduled = false;\n\n  if (isHostTimeoutScheduled) {\n    // We scheduled a timeout but it's no longer needed. Cancel it.\n    isHostTimeoutScheduled = false;\n    cancelHostTimeout();\n  }\n\n  isPerformingWork = true;\n  var previousPriorityLevel = currentPriorityLevel;\n\n  try {\n    if (enableProfiling) {\n      try {\n        return workLoop(hasTimeRemaining, initialTime);\n      } catch (error) {\n        if (currentTask !== null) {\n          var currentTime = exports.unstable_now();\n          markTaskErrored(currentTask, currentTime);\n          currentTask.isQueued = false;\n        }\n\n        throw error;\n      }\n    } else {\n      // No catch in prod code path.\n      return workLoop(hasTimeRemaining, initialTime);\n    }\n  } finally {\n    currentTask = null;\n    currentPriorityLevel = previousPriorityLevel;\n    isPerformingWork = false;\n  }\n}\n\nfunction workLoop(hasTimeRemaining, initialTime) {\n  var currentTime = initialTime;\n  advanceTimers(currentTime);\n  currentTask = peek(taskQueue);\n\n  while (currentTask !== null && !(enableSchedulerDebugging )) {\n    if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {\n      // This currentTask hasn't expired, and we've reached the deadline.\n      break;\n    }\n\n    var callback = currentTask.callback;\n\n    if (typeof callback === 'function') {\n      currentTask.callback = null;\n      currentPriorityLevel = currentTask.priorityLevel;\n      var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;\n\n      var continuationCallback = callback(didUserCallbackTimeout);\n      currentTime = exports.unstable_now();\n\n      if (typeof continuationCallback === 'function') {\n        currentTask.callback = continuationCallback;\n      } else {\n\n        if (currentTask === peek(taskQueue)) {\n          pop(taskQueue);\n        }\n      }\n\n      advanceTimers(currentTime);\n    } else {\n      pop(taskQueue);\n    }\n\n    currentTask = peek(taskQueue);\n  } // Return whether there's additional work\n\n\n  if (currentTask !== null) {\n    return true;\n  } else {\n    var firstTimer = peek(timerQueue);\n\n    if (firstTimer !== null) {\n      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n    }\n\n    return false;\n  }\n}\n\nfunction unstable_runWithPriority(priorityLevel, eventHandler) {\n  switch (priorityLevel) {\n    case ImmediatePriority:\n    case UserBlockingPriority:\n    case NormalPriority:\n    case LowPriority:\n    case IdlePriority:\n      break;\n\n    default:\n      priorityLevel = NormalPriority;\n  }\n\n  var previousPriorityLevel = currentPriorityLevel;\n  currentPriorityLevel = priorityLevel;\n\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel = previousPriorityLevel;\n  }\n}\n\nfunction unstable_next(eventHandler) {\n  var priorityLevel;\n\n  switch (currentPriorityLevel) {\n    case ImmediatePriority:\n    case UserBlockingPriority:\n    case NormalPriority:\n      // Shift down to normal priority\n      priorityLevel = NormalPriority;\n      break;\n\n    default:\n      // Anything lower than normal priority should remain at the current level.\n      priorityLevel = currentPriorityLevel;\n      break;\n  }\n\n  var previousPriorityLevel = currentPriorityLevel;\n  currentPriorityLevel = priorityLevel;\n\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel = previousPriorityLevel;\n  }\n}\n\nfunction unstable_wrapCallback(callback) {\n  var parentPriorityLevel = currentPriorityLevel;\n  return function () {\n    // This is a fork of runWithPriority, inlined for performance.\n    var previousPriorityLevel = currentPriorityLevel;\n    currentPriorityLevel = parentPriorityLevel;\n\n    try {\n      return callback.apply(this, arguments);\n    } finally {\n      currentPriorityLevel = previousPriorityLevel;\n    }\n  };\n}\n\nfunction unstable_scheduleCallback(priorityLevel, callback, options) {\n  var currentTime = exports.unstable_now();\n  var startTime;\n\n  if (typeof options === 'object' && options !== null) {\n    var delay = options.delay;\n\n    if (typeof delay === 'number' && delay > 0) {\n      startTime = currentTime + delay;\n    } else {\n      startTime = currentTime;\n    }\n  } else {\n    startTime = currentTime;\n  }\n\n  var timeout;\n\n  switch (priorityLevel) {\n    case ImmediatePriority:\n      timeout = IMMEDIATE_PRIORITY_TIMEOUT;\n      break;\n\n    case UserBlockingPriority:\n      timeout = USER_BLOCKING_PRIORITY_TIMEOUT;\n      break;\n\n    case IdlePriority:\n      timeout = IDLE_PRIORITY_TIMEOUT;\n      break;\n\n    case LowPriority:\n      timeout = LOW_PRIORITY_TIMEOUT;\n      break;\n\n    case NormalPriority:\n    default:\n      timeout = NORMAL_PRIORITY_TIMEOUT;\n      break;\n  }\n\n  var expirationTime = startTime + timeout;\n  var newTask = {\n    id: taskIdCounter++,\n    callback: callback,\n    priorityLevel: priorityLevel,\n    startTime: startTime,\n    expirationTime: expirationTime,\n    sortIndex: -1\n  };\n\n  if (startTime > currentTime) {\n    // This is a delayed task.\n    newTask.sortIndex = startTime;\n    push(timerQueue, newTask);\n\n    if (peek(taskQueue) === null && newTask === peek(timerQueue)) {\n      // All tasks are delayed, and this is the task with the earliest delay.\n      if (isHostTimeoutScheduled) {\n        // Cancel an existing timeout.\n        cancelHostTimeout();\n      } else {\n        isHostTimeoutScheduled = true;\n      } // Schedule a timeout.\n\n\n      requestHostTimeout(handleTimeout, startTime - currentTime);\n    }\n  } else {\n    newTask.sortIndex = expirationTime;\n    push(taskQueue, newTask);\n    // wait until the next time we yield.\n\n\n    if (!isHostCallbackScheduled && !isPerformingWork) {\n      isHostCallbackScheduled = true;\n      requestHostCallback(flushWork);\n    }\n  }\n\n  return newTask;\n}\n\nfunction unstable_pauseExecution() {\n}\n\nfunction unstable_continueExecution() {\n\n  if (!isHostCallbackScheduled && !isPerformingWork) {\n    isHostCallbackScheduled = true;\n    requestHostCallback(flushWork);\n  }\n}\n\nfunction unstable_getFirstCallbackNode() {\n  return peek(taskQueue);\n}\n\nfunction unstable_cancelCallback(task) {\n  // remove from the queue because you can't remove arbitrary nodes from an\n  // array based heap, only the first one.)\n\n\n  task.callback = null;\n}\n\nfunction unstable_getCurrentPriorityLevel() {\n  return currentPriorityLevel;\n}\n\nvar isMessageLoopRunning = false;\nvar scheduledHostCallback = null;\nvar taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main\n// thread, like user events. By default, it yields multiple times per frame.\n// It does not attempt to align with frame boundaries, since most tasks don't\n// need to be frame aligned; for those that do, use requestAnimationFrame.\n\nvar frameInterval = frameYieldMs;\nvar startTime = -1;\n\nfunction shouldYieldToHost() {\n  var timeElapsed = exports.unstable_now() - startTime;\n\n  if (timeElapsed < frameInterval) {\n    // The main thread has only been blocked for a really short amount of time;\n    // smaller than a single frame. Don't yield yet.\n    return false;\n  } // The main thread has been blocked for a non-negligible amount of time. We\n\n\n  return true;\n}\n\nfunction requestPaint() {\n\n}\n\nfunction forceFrameRate(fps) {\n  if (fps < 0 || fps > 125) {\n    // Using console['error'] to evade Babel and ESLint\n    console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');\n    return;\n  }\n\n  if (fps > 0) {\n    frameInterval = Math.floor(1000 / fps);\n  } else {\n    // reset the framerate\n    frameInterval = frameYieldMs;\n  }\n}\n\nvar performWorkUntilDeadline = function () {\n  if (scheduledHostCallback !== null) {\n    var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread\n    // has been blocked.\n\n    startTime = currentTime;\n    var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the\n    // error can be observed.\n    //\n    // Intentionally not using a try-catch, since that makes some debugging\n    // techniques harder. Instead, if `scheduledHostCallback` errors, then\n    // `hasMoreWork` will remain true, and we'll continue the work loop.\n\n    var hasMoreWork = true;\n\n    try {\n      hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);\n    } finally {\n      if (hasMoreWork) {\n        // If there's more work, schedule the next message event at the end\n        // of the preceding one.\n        schedulePerformWorkUntilDeadline();\n      } else {\n        isMessageLoopRunning = false;\n        scheduledHostCallback = null;\n      }\n    }\n  } else {\n    isMessageLoopRunning = false;\n  } // Yielding to the browser will give it a chance to paint, so we can\n};\n\nvar schedulePerformWorkUntilDeadline;\n\nif (typeof localSetImmediate === 'function') {\n  // Node.js and old IE.\n  // There's a few reasons for why we prefer setImmediate.\n  //\n  // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.\n  // (Even though this is a DOM fork of the Scheduler, you could get here\n  // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)\n  // https://github.com/facebook/react/issues/20756\n  //\n  // But also, it runs earlier which is the semantic we want.\n  // If other browsers ever implement it, it's better to use it.\n  // Although both of these would be inferior to native scheduling.\n  schedulePerformWorkUntilDeadline = function () {\n    localSetImmediate(performWorkUntilDeadline);\n  };\n} else if (typeof MessageChannel !== 'undefined') {\n  // DOM and Worker environments.\n  // We prefer MessageChannel because of the 4ms setTimeout clamping.\n  var channel = new MessageChannel();\n  var port = channel.port2;\n  channel.port1.onmessage = performWorkUntilDeadline;\n\n  schedulePerformWorkUntilDeadline = function () {\n    port.postMessage(null);\n  };\n} else {\n  // We should only fallback here in non-browser environments.\n  schedulePerformWorkUntilDeadline = function () {\n    localSetTimeout(performWorkUntilDeadline, 0);\n  };\n}\n\nfunction requestHostCallback(callback) {\n  scheduledHostCallback = callback;\n\n  if (!isMessageLoopRunning) {\n    isMessageLoopRunning = true;\n    schedulePerformWorkUntilDeadline();\n  }\n}\n\nfunction requestHostTimeout(callback, ms) {\n  taskTimeoutID = localSetTimeout(function () {\n    callback(exports.unstable_now());\n  }, ms);\n}\n\nfunction cancelHostTimeout() {\n  localClearTimeout(taskTimeoutID);\n  taskTimeoutID = -1;\n}\n\nvar unstable_requestPaint = requestPaint;\nvar unstable_Profiling =  null;\n\nexports.unstable_IdlePriority = IdlePriority;\nexports.unstable_ImmediatePriority = ImmediatePriority;\nexports.unstable_LowPriority = LowPriority;\nexports.unstable_NormalPriority = NormalPriority;\nexports.unstable_Profiling = unstable_Profiling;\nexports.unstable_UserBlockingPriority = UserBlockingPriority;\nexports.unstable_cancelCallback = unstable_cancelCallback;\nexports.unstable_continueExecution = unstable_continueExecution;\nexports.unstable_forceFrameRate = forceFrameRate;\nexports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;\nexports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;\nexports.unstable_next = unstable_next;\nexports.unstable_pauseExecution = unstable_pauseExecution;\nexports.unstable_requestPaint = unstable_requestPaint;\nexports.unstable_runWithPriority = unstable_runWithPriority;\nexports.unstable_scheduleCallback = unstable_scheduleCallback;\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = unstable_wrapCallback;\n          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n    'function'\n) {\n  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n        \n  })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n  module.exports = require('./cjs/scheduler.development.js');\n}\n","'use strict';\n\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\n\n/*\n* This function traverses the list returning the node corresponding to the given key.\n*\n* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.\n* By doing so, all the recently used nodes can be accessed relatively quickly.\n*/\n/** @type {import('./list.d.ts').listGetNode} */\n// eslint-disable-next-line consistent-return\nvar listGetNode = function (list, key, isDelete) {\n\t/** @type {typeof list | NonNullable<(typeof list)['next']>} */\n\tvar prev = list;\n\t/** @type {(typeof list)['next']} */\n\tvar curr;\n\t// eslint-disable-next-line eqeqeq\n\tfor (; (curr = prev.next) != null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tif (!isDelete) {\n\t\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t\tcurr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);\n\t\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\t}\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\n/** @type {import('./list.d.ts').listGet} */\nvar listGet = function (objects, key) {\n\tif (!objects) {\n\t\treturn void undefined;\n\t}\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\n/** @type {import('./list.d.ts').listSet} */\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t});\n\t}\n};\n/** @type {import('./list.d.ts').listHas} */\nvar listHas = function (objects, key) {\n\tif (!objects) {\n\t\treturn false;\n\t}\n\treturn !!listGetNode(objects, key);\n};\n/** @type {import('./list.d.ts').listDelete} */\n// eslint-disable-next-line consistent-return\nvar listDelete = function (objects, key) {\n\tif (objects) {\n\t\treturn listGetNode(objects, key, true);\n\t}\n};\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannelList() {\n\t/** @typedef {ReturnType<typeof getSideChannelList>} Channel */\n\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\tvar deletedNode = listDelete($o, key);\n\t\t\tif (deletedNode && $o && !$o.next) {\n\t\t\t\t$o = void undefined;\n\t\t\t}\n\t\t\treturn !!deletedNode;\n\t\t},\n\t\tget: function (key) {\n\t\t\treturn listGet($o, key);\n\t\t},\n\t\thas: function (key) {\n\t\t\treturn listHas($o, key);\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$o) {\n\t\t\t\t// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head\n\t\t\t\t$o = {\n\t\t\t\t\tnext: void undefined\n\t\t\t\t};\n\t\t\t}\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\tlistSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);\n\t\t}\n\t};\n\treturn channel;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\nvar $Map = GetIntrinsic('%Map%', true);\n\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */\nvar $mapGet = callBound('Map.prototype.get', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */\nvar $mapSet = callBound('Map.prototype.set', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */\nvar $mapHas = callBound('Map.prototype.has', true);\n/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */\nvar $mapDelete = callBound('Map.prototype.delete', true);\n/** @type {<K, V>(thisArg: Map<K, V>) => number} */\nvar $mapSize = callBound('Map.prototype.size', true);\n\n/** @type {import('.')} */\nmodule.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {\n\t/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */\n\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t/** @type {Map<K, V> | undefined} */ var $m;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\tif ($m) {\n\t\t\t\tvar result = $mapDelete($m, key);\n\t\t\t\tif ($mapSize($m) === 0) {\n\t\t\t\t\t$m = void undefined;\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($m) {\n\t\t\t\treturn $mapGet($m, key);\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($m) {\n\t\t\t\treturn $mapHas($m, key);\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$m) {\n\t\t\t\t// @ts-expect-error TS can't handle narrowing a variable inside a closure\n\t\t\t\t$m = new $Map();\n\t\t\t}\n\t\t\t$mapSet($m, key, value);\n\t\t}\n\t};\n\n\t// @ts-expect-error TODO: figure out why TS is erroring here\n\treturn channel;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bound');\nvar inspect = require('object-inspect');\nvar getSideChannelMap = require('side-channel-map');\n\nvar $TypeError = require('es-errors/type');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\n\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\n/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */\nvar $weakMapDelete = callBound('WeakMap.prototype.delete', true);\n\n/** @type {import('.')} */\nmodule.exports = $WeakMap\n\t? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {\n\t\t/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */\n\t\t/** @typedef {Parameters<Channel['get']>[0]} K */\n\t\t/** @typedef {Parameters<Channel['set']>[1]} V */\n\n\t\t/** @type {WeakMap<K & object, V> | undefined} */ var $wm;\n\t\t/** @type {Channel | undefined} */ var $m;\n\n\t\t/** @type {Channel} */\n\t\tvar channel = {\n\t\t\tassert: function (key) {\n\t\t\t\tif (!channel.has(key)) {\n\t\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t\t}\n\t\t\t},\n\t\t\t'delete': function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapDelete($wm, key);\n\t\t\t\t\t}\n\t\t\t\t} else if (getSideChannelMap) {\n\t\t\t\t\tif ($m) {\n\t\t\t\t\t\treturn $m['delete'](key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\tget: function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $m && $m.get(key);\n\t\t\t},\n\t\t\thas: function (key) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif ($wm) {\n\t\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn !!$m && $m.has(key);\n\t\t\t},\n\t\t\tset: function (key, value) {\n\t\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\t\tif (!$wm) {\n\t\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t\t}\n\t\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t\t} else if (getSideChannelMap) {\n\t\t\t\t\tif (!$m) {\n\t\t\t\t\t\t$m = getSideChannelMap();\n\t\t\t\t\t}\n\t\t\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t\t\t/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// @ts-expect-error TODO: figure out why this is erroring\n\t\treturn channel;\n\t}\n\t: getSideChannelMap;\n","'use strict';\n\nvar $TypeError = require('es-errors/type');\nvar inspect = require('object-inspect');\nvar getSideChannelList = require('side-channel-list');\nvar getSideChannelMap = require('side-channel-map');\nvar getSideChannelWeakMap = require('side-channel-weakmap');\n\nvar makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannel() {\n\t/** @typedef {ReturnType<typeof getSideChannel>} Channel */\n\n\t/** @type {Channel | undefined} */ var $channelData;\n\n\t/** @type {Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tvar keyDesc = key && Object(key) === key\n\t\t\t\t\t? 'the given object key'\n\t\t\t\t\t: inspect(key);\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + keyDesc);\n\t\t\t}\n\t\t},\n\t\t'delete': function (key) {\n\t\t\treturn !!$channelData && $channelData['delete'](key);\n\t\t},\n\t\tget: function (key) {\n\t\t\treturn $channelData && $channelData.get(key);\n\t\t},\n\t\thas: function (key) {\n\t\t\treturn !!$channelData && $channelData.has(key);\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif (!$channelData) {\n\t\t\t\t$channelData = makeChannel();\n\t\t\t}\n\n\t\t\t$channelData.set(key, value);\n\t\t}\n\t};\n\n\treturn channel;\n};\n","\n      import API from \"!../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../css-loader/dist/cjs.js!./ag-grid.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../css-loader/dist/cjs.js!./ag-grid.css\";\n       export default content && content.locals ? content.locals : undefined;\n","\n      import API from \"!../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../css-loader/dist/cjs.js!./ag-theme-alpine.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../css-loader/dist/cjs.js!./ag-theme-alpine.css\";\n       export default content && content.locals ? content.locals : undefined;\n","\n      import API from \"!../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../css-loader/dist/cjs.js!./ag-theme-balham.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../css-loader/dist/cjs.js!./ag-theme-balham.css\";\n       export default content && content.locals ? content.locals : undefined;\n","\n      import API from \"!../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../css-loader/dist/cjs.js!./quill.snow.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../css-loader/dist/cjs.js!./quill.snow.css\";\n       export default content && content.locals ? content.locals : undefined;\n","\n      import API from \"!../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../css-loader/dist/cjs.js!./ReactToastify.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../css-loader/dist/cjs.js!./ReactToastify.css\";\n       export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n  var result = -1;\n  for (var i = 0; i < stylesInDOM.length; i++) {\n    if (stylesInDOM[i].identifier === identifier) {\n      result = i;\n      break;\n    }\n  }\n  return result;\n}\nfunction modulesToDom(list, options) {\n  var idCountMap = {};\n  var identifiers = [];\n  for (var i = 0; i < list.length; i++) {\n    var item = list[i];\n    var id = options.base ? item[0] + options.base : item[0];\n    var count = idCountMap[id] || 0;\n    var identifier = \"\".concat(id, \" \").concat(count);\n    idCountMap[id] = count + 1;\n    var indexByIdentifier = getIndexByIdentifier(identifier);\n    var obj = {\n      css: item[1],\n      media: item[2],\n      sourceMap: item[3],\n      supports: item[4],\n      layer: item[5]\n    };\n    if (indexByIdentifier !== -1) {\n      stylesInDOM[indexByIdentifier].references++;\n      stylesInDOM[indexByIdentifier].updater(obj);\n    } else {\n      var updater = addElementStyle(obj, options);\n      options.byIndex = i;\n      stylesInDOM.splice(i, 0, {\n        identifier: identifier,\n        updater: updater,\n        references: 1\n      });\n    }\n    identifiers.push(identifier);\n  }\n  return identifiers;\n}\nfunction addElementStyle(obj, options) {\n  var api = options.domAPI(options);\n  api.update(obj);\n  var updater = function updater(newObj) {\n    if (newObj) {\n      if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n        return;\n      }\n      api.update(obj = newObj);\n    } else {\n      api.remove();\n    }\n  };\n  return updater;\n}\nmodule.exports = function (list, options) {\n  options = options || {};\n  list = list || [];\n  var lastIdentifiers = modulesToDom(list, options);\n  return function update(newList) {\n    newList = newList || [];\n    for (var i = 0; i < lastIdentifiers.length; i++) {\n      var identifier = lastIdentifiers[i];\n      var index = getIndexByIdentifier(identifier);\n      stylesInDOM[index].references--;\n    }\n    var newLastIdentifiers = modulesToDom(newList, options);\n    for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n      var _identifier = lastIdentifiers[_i];\n      var _index = getIndexByIdentifier(_identifier);\n      if (stylesInDOM[_index].references === 0) {\n        stylesInDOM[_index].updater();\n        stylesInDOM.splice(_index, 1);\n      }\n    }\n    lastIdentifiers = newLastIdentifiers;\n  };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next  */\nfunction getTarget(target) {\n  if (typeof memo[target] === \"undefined\") {\n    var styleTarget = document.querySelector(target);\n\n    // Special case to return head of iframe instead of iframe itself\n    if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n      try {\n        // This will throw an exception if access to iframe is blocked\n        // due to cross-origin restrictions\n        styleTarget = styleTarget.contentDocument.head;\n      } catch (e) {\n        // istanbul ignore next\n        styleTarget = null;\n      }\n    }\n    memo[target] = styleTarget;\n  }\n  return memo[target];\n}\n\n/* istanbul ignore next  */\nfunction insertBySelector(insert, style) {\n  var target = getTarget(insert);\n  if (!target) {\n    throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n  }\n  target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next  */\nfunction insertStyleElement(options) {\n  var element = document.createElement(\"style\");\n  options.setAttributes(element, options.attributes);\n  options.insert(element, options.options);\n  return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next  */\nfunction setAttributesWithoutAttributes(styleElement) {\n  var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n  if (nonce) {\n    styleElement.setAttribute(\"nonce\", nonce);\n  }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next  */\nfunction apply(styleElement, options, obj) {\n  var css = \"\";\n  if (obj.supports) {\n    css += \"@supports (\".concat(obj.supports, \") {\");\n  }\n  if (obj.media) {\n    css += \"@media \".concat(obj.media, \" {\");\n  }\n  var needLayer = typeof obj.layer !== \"undefined\";\n  if (needLayer) {\n    css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n  }\n  css += obj.css;\n  if (needLayer) {\n    css += \"}\";\n  }\n  if (obj.media) {\n    css += \"}\";\n  }\n  if (obj.supports) {\n    css += \"}\";\n  }\n  var sourceMap = obj.sourceMap;\n  if (sourceMap && typeof btoa !== \"undefined\") {\n    css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n  }\n\n  // For old IE\n  /* istanbul ignore if  */\n  options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n  // istanbul ignore if\n  if (styleElement.parentNode === null) {\n    return false;\n  }\n  styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next  */\nfunction domAPI(options) {\n  if (typeof document === \"undefined\") {\n    return {\n      update: function update() {},\n      remove: function remove() {}\n    };\n  }\n  var styleElement = options.insertStyleElement(options);\n  return {\n    update: function update(obj) {\n      apply(styleElement, options, obj);\n    },\n    remove: function remove() {\n      removeStyleElement(styleElement);\n    }\n  };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next  */\nfunction styleTagTransform(css, styleElement) {\n  if (styleElement.styleSheet) {\n    styleElement.styleSheet.cssText = css;\n  } else {\n    while (styleElement.firstChild) {\n      styleElement.removeChild(styleElement.firstChild);\n    }\n    styleElement.appendChild(document.createTextNode(css));\n  }\n}\nmodule.exports = styleTagTransform;","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nexports.__esModule = true;\nvar style_to_object_1 = __importDefault(require(\"style-to-object\"));\nvar utilities_1 = require(\"./utilities\");\nfunction StyleToJS(style, options) {\n    var output = {};\n    if (!style || typeof style !== 'string') {\n        return output;\n    }\n    (0, style_to_object_1[\"default\"])(style, function (property, value) {\n        if (property && value) {\n            output[(0, utilities_1.camelCase)(property, options)] = value;\n        }\n    });\n    return output;\n}\nexports[\"default\"] = StyleToJS;\n","\"use strict\";\nexports.__esModule = true;\nexports.camelCase = void 0;\nvar CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;\nvar HYPHEN_REGEX = /-([a-z])/g;\nvar NO_HYPHEN_REGEX = /^[^-]+$/;\nvar VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;\nvar MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;\nvar skipCamelCase = function (property) {\n    return !property ||\n        NO_HYPHEN_REGEX.test(property) ||\n        CUSTOM_PROPERTY_REGEX.test(property);\n};\nvar capitalize = function (match, character) {\n    return character.toUpperCase();\n};\nvar trimHyphen = function (match, prefix) { return \"\".concat(prefix, \"-\"); };\nvar camelCase = function (property, options) {\n    if (options === void 0) { options = {}; }\n    if (skipCamelCase(property)) {\n        return property;\n    }\n    property = property.toLowerCase();\n    if (options.reactCompat) {\n        property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);\n    }\n    else {\n        property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);\n    }\n    return property.replace(HYPHEN_REGEX, capitalize);\n};\nexports.camelCase = camelCase;\n","var parse = require('inline-style-parser');\n\n/**\n * Parses inline style to object.\n *\n * @example\n * // returns { 'line-height': '42' }\n * StyleToObject('line-height: 42;');\n *\n * @param  {String}      style      - The inline style.\n * @param  {Function}    [iterator] - The iterator function.\n * @return {null|Object}\n */\nfunction StyleToObject(style, iterator) {\n  var output = null;\n  if (!style || typeof style !== 'string') {\n    return output;\n  }\n\n  var declaration;\n  var declarations = parse(style);\n  var hasIterator = typeof iterator === 'function';\n  var property;\n  var value;\n\n  for (var i = 0, len = declarations.length; i < len; i++) {\n    declaration = declarations[i];\n    property = declaration.property;\n    value = declaration.value;\n\n    if (hasIterator) {\n      iterator(property, value, declaration);\n    } else if (value) {\n      output || (output = {});\n      output[property] = value;\n    }\n  }\n\n  return output;\n}\n\nmodule.exports = StyleToObject;\nmodule.exports.default = StyleToObject; // ESM support\n","var isProduction = process.env.NODE_ENV === 'production';\nfunction warning(condition, message) {\n  if (!isProduction) {\n    if (condition) {\n      return;\n    }\n\n    var text = \"Warning: \" + message;\n\n    if (typeof console !== 'undefined') {\n      console.warn(text);\n    }\n\n    try {\n      throw Error(text);\n    } catch (x) {}\n  }\n}\n\nexport default warning;\n","\n/**\n * Topological sorting function\n *\n * @param {Array} edges\n * @returns {Array}\n */\n\nmodule.exports = function(edges) {\n  return toposort(uniqueNodes(edges), edges)\n}\n\nmodule.exports.array = toposort\n\nfunction toposort(nodes, edges) {\n  var cursor = nodes.length\n    , sorted = new Array(cursor)\n    , visited = {}\n    , i = cursor\n    // Better data structures make algorithm much faster.\n    , outgoingEdges = makeOutgoingEdges(edges)\n    , nodesHash = makeNodesHash(nodes)\n\n  // check for unknown nodes\n  edges.forEach(function(edge) {\n    if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {\n      throw new Error('Unknown node. There is an unknown node in the supplied edges.')\n    }\n  })\n\n  while (i--) {\n    if (!visited[i]) visit(nodes[i], i, new Set())\n  }\n\n  return sorted\n\n  function visit(node, i, predecessors) {\n    if(predecessors.has(node)) {\n      var nodeRep\n      try {\n        nodeRep = \", node was:\" + JSON.stringify(node)\n      } catch(e) {\n        nodeRep = \"\"\n      }\n      throw new Error('Cyclic dependency' + nodeRep)\n    }\n\n    if (!nodesHash.has(node)) {\n      throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: '+JSON.stringify(node))\n    }\n\n    if (visited[i]) return;\n    visited[i] = true\n\n    var outgoing = outgoingEdges.get(node) || new Set()\n    outgoing = Array.from(outgoing)\n\n    if (i = outgoing.length) {\n      predecessors.add(node)\n      do {\n        var child = outgoing[--i]\n        visit(child, nodesHash.get(child), predecessors)\n      } while (i)\n      predecessors.delete(node)\n    }\n\n    sorted[--cursor] = node\n  }\n}\n\nfunction uniqueNodes(arr){\n  var res = new Set()\n  for (var i = 0, len = arr.length; i < len; i++) {\n    var edge = arr[i]\n    res.add(edge[0])\n    res.add(edge[1])\n  }\n  return Array.from(res)\n}\n\nfunction makeOutgoingEdges(arr){\n  var edges = new Map()\n  for (var i = 0, len = arr.length; i < len; i++) {\n    var edge = arr[i]\n    if (!edges.has(edge[0])) edges.set(edge[0], new Set())\n    if (!edges.has(edge[1])) edges.set(edge[1], new Set())\n    edges.get(edge[0]).add(edge[1])\n  }\n  return edges\n}\n\nfunction makeNodesHash(arr){\n  var res = new Map()\n  for (var i = 0, len = arr.length; i < len; i++) {\n    res.set(arr[i], i)\n  }\n  return res\n}\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function is(x, y) {\n      return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n    }\n    function useSyncExternalStore$2(subscribe, getSnapshot) {\n      didWarnOld18Alpha ||\n        void 0 === React.startTransition ||\n        ((didWarnOld18Alpha = !0),\n        console.error(\n          \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n        ));\n      var value = getSnapshot();\n      if (!didWarnUncachedGetSnapshot) {\n        var cachedValue = getSnapshot();\n        objectIs(value, cachedValue) ||\n          (console.error(\n            \"The result of getSnapshot should be cached to avoid an infinite loop\"\n          ),\n          (didWarnUncachedGetSnapshot = !0));\n      }\n      cachedValue = useState({\n        inst: { value: value, getSnapshot: getSnapshot }\n      });\n      var inst = cachedValue[0].inst,\n        forceUpdate = cachedValue[1];\n      useLayoutEffect(\n        function () {\n          inst.value = value;\n          inst.getSnapshot = getSnapshot;\n          checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n        },\n        [subscribe, value, getSnapshot]\n      );\n      useEffect(\n        function () {\n          checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n          return subscribe(function () {\n            checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n          });\n        },\n        [subscribe]\n      );\n      useDebugValue(value);\n      return value;\n    }\n    function checkIfSnapshotChanged(inst) {\n      var latestGetSnapshot = inst.getSnapshot;\n      inst = inst.value;\n      try {\n        var nextValue = latestGetSnapshot();\n        return !objectIs(inst, nextValue);\n      } catch (error) {\n        return !0;\n      }\n    }\n    function useSyncExternalStore$1(subscribe, getSnapshot) {\n      return getSnapshot();\n    }\n    \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n      \"function\" ===\n        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n      __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n    var React = require(\"react\"),\n      objectIs = \"function\" === typeof Object.is ? Object.is : is,\n      useState = React.useState,\n      useEffect = React.useEffect,\n      useLayoutEffect = React.useLayoutEffect,\n      useDebugValue = React.useDebugValue,\n      didWarnOld18Alpha = !1,\n      didWarnUncachedGetSnapshot = !1,\n      shim =\n        \"undefined\" === typeof window ||\n        \"undefined\" === typeof window.document ||\n        \"undefined\" === typeof window.document.createElement\n          ? useSyncExternalStore$1\n          : useSyncExternalStore$2;\n    exports.useSyncExternalStore =\n      void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n    \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n      \"function\" ===\n        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n      __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n  })();\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function is(x, y) {\n      return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n    }\n    \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n      \"function\" ===\n        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n      __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n    var React = require(\"react\"),\n      shim = require(\"use-sync-external-store/shim\"),\n      objectIs = \"function\" === typeof Object.is ? Object.is : is,\n      useSyncExternalStore = shim.useSyncExternalStore,\n      useRef = React.useRef,\n      useEffect = React.useEffect,\n      useMemo = React.useMemo,\n      useDebugValue = React.useDebugValue;\n    exports.useSyncExternalStoreWithSelector = function (\n      subscribe,\n      getSnapshot,\n      getServerSnapshot,\n      selector,\n      isEqual\n    ) {\n      var instRef = useRef(null);\n      if (null === instRef.current) {\n        var inst = { hasValue: !1, value: null };\n        instRef.current = inst;\n      } else inst = instRef.current;\n      instRef = useMemo(\n        function () {\n          function memoizedSelector(nextSnapshot) {\n            if (!hasMemo) {\n              hasMemo = !0;\n              memoizedSnapshot = nextSnapshot;\n              nextSnapshot = selector(nextSnapshot);\n              if (void 0 !== isEqual && inst.hasValue) {\n                var currentSelection = inst.value;\n                if (isEqual(currentSelection, nextSnapshot))\n                  return (memoizedSelection = currentSelection);\n              }\n              return (memoizedSelection = nextSnapshot);\n            }\n            currentSelection = memoizedSelection;\n            if (objectIs(memoizedSnapshot, nextSnapshot))\n              return currentSelection;\n            var nextSelection = selector(nextSnapshot);\n            if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n              return (memoizedSnapshot = nextSnapshot), currentSelection;\n            memoizedSnapshot = nextSnapshot;\n            return (memoizedSelection = nextSelection);\n          }\n          var hasMemo = !1,\n            memoizedSnapshot,\n            memoizedSelection,\n            maybeGetServerSnapshot =\n              void 0 === getServerSnapshot ? null : getServerSnapshot;\n          return [\n            function () {\n              return memoizedSelector(getSnapshot());\n            },\n            null === maybeGetServerSnapshot\n              ? void 0\n              : function () {\n                  return memoizedSelector(maybeGetServerSnapshot());\n                }\n          ];\n        },\n        [getSnapshot, getServerSnapshot, selector, isEqual]\n      );\n      var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n      useEffect(\n        function () {\n          inst.hasValue = !0;\n          inst.value = value;\n        },\n        [value]\n      );\n      useDebugValue(value);\n      return value;\n    };\n    \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n      \"function\" ===\n        typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n      __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n  })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n  module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n  module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n  // lazy load so that environments that need to polyfill have a chance to do so\n  if (!getRandomValues) {\n    // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n    // find the complete implementation of crypto (msCrypto) on IE11.\n    getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n    if (!getRandomValues) {\n      throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n    }\n  }\n\n  return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n  return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n  byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n  var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n  // Note: Be careful editing this code!  It's been tuned for performance\n  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n  var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID.  If this throws, it's likely due to one\n  // of the following:\n  // - One or more input array values don't map to a hex octet (leading to\n  // \"undefined\" in the uuid)\n  // - Invalid input values for the RFC `version` or `variant` fields\n\n  if (!validate(uuid)) {\n    throw TypeError('Stringified UUID is invalid');\n  }\n\n  return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n  options = options || {};\n  var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n  rnds[6] = rnds[6] & 0x0f | 0x40;\n  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n  if (buf) {\n    offset = offset || 0;\n\n    for (var i = 0; i < 16; ++i) {\n      buf[offset + i] = rnds[i];\n    }\n\n    return buf;\n  }\n\n  return stringify(rnds);\n}\n\nexport default v4;","/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nmodule.exports = {\n  \"area\": true,\n  \"base\": true,\n  \"br\": true,\n  \"col\": true,\n  \"embed\": true,\n  \"hr\": true,\n  \"img\": true,\n  \"input\": true,\n  \"link\": true,\n  \"meta\": true,\n  \"param\": true,\n  \"source\": true,\n  \"track\": true,\n  \"wbr\": true\n};\n","// ES6 Map\nvar map\ntry {\n  map = Map\n} catch (_) { }\nvar set\n\n// ES6 Set\ntry {\n  set = Set\n} catch (_) { }\n\nfunction baseClone (src, circulars, clones) {\n  // Null/undefined/functions/etc\n  if (!src || typeof src !== 'object' || typeof src === 'function') {\n    return src\n  }\n\n  // DOM Node\n  if (src.nodeType && 'cloneNode' in src) {\n    return src.cloneNode(true)\n  }\n\n  // Date\n  if (src instanceof Date) {\n    return new Date(src.getTime())\n  }\n\n  // RegExp\n  if (src instanceof RegExp) {\n    return new RegExp(src)\n  }\n\n  // Arrays\n  if (Array.isArray(src)) {\n    return src.map(clone)\n  }\n\n  // ES6 Maps\n  if (map && src instanceof map) {\n    return new Map(Array.from(src.entries()))\n  }\n\n  // ES6 Sets\n  if (set && src instanceof set) {\n    return new Set(Array.from(src.values()))\n  }\n\n  // Object\n  if (src instanceof Object) {\n    circulars.push(src)\n    var obj = Object.create(src)\n    clones.push(obj)\n    for (var key in src) {\n      var idx = circulars.findIndex(function (i) {\n        return i === src[key]\n      })\n      obj[key] = idx > -1 ? clones[idx] : baseClone(src[key], circulars, clones)\n    }\n    return obj\n  }\n\n  // ???\n  return src\n}\n\nexport default function clone (src) {\n  return baseClone(src, [], [])\n}\n","const toString = Object.prototype.toString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\nconst symbolToString = typeof Symbol !== 'undefined' ? Symbol.prototype.toString : () => '';\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\n\nfunction printNumber(val) {\n  if (val != +val) return 'NaN';\n  const isNegativeZero = val === 0 && 1 / val < 0;\n  return isNegativeZero ? '-0' : '' + val;\n}\n\nfunction printSimpleValue(val, quoteStrings = false) {\n  if (val == null || val === true || val === false) return '' + val;\n  const typeOf = typeof val;\n  if (typeOf === 'number') return printNumber(val);\n  if (typeOf === 'string') return quoteStrings ? `\"${val}\"` : val;\n  if (typeOf === 'function') return '[Function ' + (val.name || 'anonymous') + ']';\n  if (typeOf === 'symbol') return symbolToString.call(val).replace(SYMBOL_REGEXP, 'Symbol($1)');\n  const tag = toString.call(val).slice(8, -1);\n  if (tag === 'Date') return isNaN(val.getTime()) ? '' + val : val.toISOString(val);\n  if (tag === 'Error' || val instanceof Error) return '[' + errorToString.call(val) + ']';\n  if (tag === 'RegExp') return regExpToString.call(val);\n  return null;\n}\n\nexport default function printValue(value, quoteStrings) {\n  let result = printSimpleValue(value, quoteStrings);\n  if (result !== null) return result;\n  return JSON.stringify(value, function (key, value) {\n    let result = printSimpleValue(this[key], quoteStrings);\n    if (result !== null) return result;\n    return value;\n  }, 2);\n}","import printValue from './util/printValue';\nexport let mixed = {\n  default: '${path} is invalid',\n  required: '${path} is a required field',\n  oneOf: '${path} must be one of the following values: ${values}',\n  notOneOf: '${path} must not be one of the following values: ${values}',\n  notType: ({\n    path,\n    type,\n    value,\n    originalValue\n  }) => {\n    let isCast = originalValue != null && originalValue !== value;\n    let msg = `${path} must be a \\`${type}\\` type, ` + `but the final value was: \\`${printValue(value, true)}\\`` + (isCast ? ` (cast from the value \\`${printValue(originalValue, true)}\\`).` : '.');\n\n    if (value === null) {\n      msg += `\\n If \"null\" is intended as an empty value be sure to mark the schema as \\`.nullable()\\``;\n    }\n\n    return msg;\n  },\n  defined: '${path} must be defined'\n};\nexport let string = {\n  length: '${path} must be exactly ${length} characters',\n  min: '${path} must be at least ${min} characters',\n  max: '${path} must be at most ${max} characters',\n  matches: '${path} must match the following: \"${regex}\"',\n  email: '${path} must be a valid email',\n  url: '${path} must be a valid URL',\n  uuid: '${path} must be a valid UUID',\n  trim: '${path} must be a trimmed string',\n  lowercase: '${path} must be a lowercase string',\n  uppercase: '${path} must be a upper case string'\n};\nexport let number = {\n  min: '${path} must be greater than or equal to ${min}',\n  max: '${path} must be less than or equal to ${max}',\n  lessThan: '${path} must be less than ${less}',\n  moreThan: '${path} must be greater than ${more}',\n  positive: '${path} must be a positive number',\n  negative: '${path} must be a negative number',\n  integer: '${path} must be an integer'\n};\nexport let date = {\n  min: '${path} field must be later than ${min}',\n  max: '${path} field must be at earlier than ${max}'\n};\nexport let boolean = {\n  isValue: '${path} field must be ${value}'\n};\nexport let object = {\n  noUnknown: '${path} field has unspecified keys: ${unknown}'\n};\nexport let array = {\n  min: '${path} field must have at least ${min} items',\n  max: '${path} field must have less than or equal to ${max} items',\n  length: '${path} must have ${length} items'\n};\nexport default Object.assign(Object.create(null), {\n  mixed,\n  string,\n  number,\n  date,\n  object,\n  array,\n  boolean\n});","const isSchema = obj => obj && obj.__isYupSchema__;\n\nexport default isSchema;","import has from 'lodash/has';\nimport isSchema from './util/isSchema';\n\nclass Condition {\n  constructor(refs, options) {\n    this.fn = void 0;\n    this.refs = refs;\n    this.refs = refs;\n\n    if (typeof options === 'function') {\n      this.fn = options;\n      return;\n    }\n\n    if (!has(options, 'is')) throw new TypeError('`is:` is required for `when()` conditions');\n    if (!options.then && !options.otherwise) throw new TypeError('either `then:` or `otherwise:` is required for `when()` conditions');\n    let {\n      is,\n      then,\n      otherwise\n    } = options;\n    let check = typeof is === 'function' ? is : (...values) => values.every(value => value === is);\n\n    this.fn = function (...args) {\n      let options = args.pop();\n      let schema = args.pop();\n      let branch = check(...args) ? then : otherwise;\n      if (!branch) return undefined;\n      if (typeof branch === 'function') return branch(schema);\n      return schema.concat(branch.resolve(options));\n    };\n  }\n\n  resolve(base, options) {\n    let values = this.refs.map(ref => ref.getValue(options == null ? void 0 : options.value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context));\n    let schema = this.fn.apply(base, values.concat(base, options));\n    if (schema === undefined || schema === base) return base;\n    if (!isSchema(schema)) throw new TypeError('conditions must return a schema object');\n    return schema.resolve(options);\n  }\n\n}\n\nexport default Condition;","export default function toArray(value) {\n  return value == null ? [] : [].concat(value);\n}","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport printValue from './util/printValue';\nimport toArray from './util/toArray';\nlet strReg = /\\$\\{\\s*(\\w+)\\s*\\}/g;\nexport default class ValidationError extends Error {\n  static formatError(message, params) {\n    const path = params.label || params.path || 'this';\n    if (path !== params.path) params = _extends({}, params, {\n      path\n    });\n    if (typeof message === 'string') return message.replace(strReg, (_, key) => printValue(params[key]));\n    if (typeof message === 'function') return message(params);\n    return message;\n  }\n\n  static isError(err) {\n    return err && err.name === 'ValidationError';\n  }\n\n  constructor(errorOrErrors, value, field, type) {\n    super();\n    this.value = void 0;\n    this.path = void 0;\n    this.type = void 0;\n    this.errors = void 0;\n    this.params = void 0;\n    this.inner = void 0;\n    this.name = 'ValidationError';\n    this.value = value;\n    this.path = field;\n    this.type = type;\n    this.errors = [];\n    this.inner = [];\n    toArray(errorOrErrors).forEach(err => {\n      if (ValidationError.isError(err)) {\n        this.errors.push(...err.errors);\n        this.inner = this.inner.concat(err.inner.length ? err.inner : err);\n      } else {\n        this.errors.push(err);\n      }\n    });\n    this.message = this.errors.length > 1 ? `${this.errors.length} errors occurred` : this.errors[0];\n    if (Error.captureStackTrace) Error.captureStackTrace(this, ValidationError);\n  }\n\n}","import ValidationError from '../ValidationError';\n\nconst once = cb => {\n  let fired = false;\n  return (...args) => {\n    if (fired) return;\n    fired = true;\n    cb(...args);\n  };\n};\n\nexport default function runTests(options, cb) {\n  let {\n    endEarly,\n    tests,\n    args,\n    value,\n    errors,\n    sort,\n    path\n  } = options;\n  let callback = once(cb);\n  let count = tests.length;\n  const nestedErrors = [];\n  errors = errors ? errors : [];\n  if (!count) return errors.length ? callback(new ValidationError(errors, value, path)) : callback(null, value);\n\n  for (let i = 0; i < tests.length; i++) {\n    const test = tests[i];\n    test(args, function finishTestRun(err) {\n      if (err) {\n        // always return early for non validation errors\n        if (!ValidationError.isError(err)) {\n          return callback(err, value);\n        }\n\n        if (endEarly) {\n          err.value = value;\n          return callback(err, value);\n        }\n\n        nestedErrors.push(err);\n      }\n\n      if (--count <= 0) {\n        if (nestedErrors.length) {\n          if (sort) nestedErrors.sort(sort); //show parent errors after the nested ones: name.first, name\n\n          if (errors.length) nestedErrors.push(...errors);\n          errors = nestedErrors;\n        }\n\n        if (errors.length) {\n          callback(new ValidationError(errors, value, path), value);\n          return;\n        }\n\n        callback(null, value);\n      }\n    });\n  }\n}","import { getter } from 'property-expr';\nconst prefixes = {\n  context: '$',\n  value: '.'\n};\nexport function create(key, options) {\n  return new Reference(key, options);\n}\nexport default class Reference {\n  constructor(key, options = {}) {\n    this.key = void 0;\n    this.isContext = void 0;\n    this.isValue = void 0;\n    this.isSibling = void 0;\n    this.path = void 0;\n    this.getter = void 0;\n    this.map = void 0;\n    if (typeof key !== 'string') throw new TypeError('ref must be a string, got: ' + key);\n    this.key = key.trim();\n    if (key === '') throw new TypeError('ref must be a non-empty string');\n    this.isContext = this.key[0] === prefixes.context;\n    this.isValue = this.key[0] === prefixes.value;\n    this.isSibling = !this.isContext && !this.isValue;\n    let prefix = this.isContext ? prefixes.context : this.isValue ? prefixes.value : '';\n    this.path = this.key.slice(prefix.length);\n    this.getter = this.path && getter(this.path, true);\n    this.map = options.map;\n  }\n\n  getValue(value, parent, context) {\n    let result = this.isContext ? context : this.isValue ? value : parent;\n    if (this.getter) result = this.getter(result || {});\n    if (this.map) result = this.map(result);\n    return result;\n  }\n  /**\n   *\n   * @param {*} value\n   * @param {Object} options\n   * @param {Object=} options.context\n   * @param {Object=} options.parent\n   */\n\n\n  cast(value, options) {\n    return this.getValue(value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context);\n  }\n\n  resolve() {\n    return this;\n  }\n\n  describe() {\n    return {\n      type: 'ref',\n      key: this.key\n    };\n  }\n\n  toString() {\n    return `Ref(${this.key})`;\n  }\n\n  static isRef(value) {\n    return value && value.__isYupRef;\n  }\n\n} // @ts-ignore\n\nReference.prototype.__isYupRef = true;","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport mapValues from 'lodash/mapValues';\nimport ValidationError from '../ValidationError';\nimport Ref from '../Reference';\nexport default function createValidation(config) {\n  function validate(_ref, cb) {\n    let {\n      value,\n      path = '',\n      label,\n      options,\n      originalValue,\n      sync\n    } = _ref,\n        rest = _objectWithoutPropertiesLoose(_ref, [\"value\", \"path\", \"label\", \"options\", \"originalValue\", \"sync\"]);\n\n    const {\n      name,\n      test,\n      params,\n      message\n    } = config;\n    let {\n      parent,\n      context\n    } = options;\n\n    function resolve(item) {\n      return Ref.isRef(item) ? item.getValue(value, parent, context) : item;\n    }\n\n    function createError(overrides = {}) {\n      const nextParams = mapValues(_extends({\n        value,\n        originalValue,\n        label,\n        path: overrides.path || path\n      }, params, overrides.params), resolve);\n      const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name);\n      error.params = nextParams;\n      return error;\n    }\n\n    let ctx = _extends({\n      path,\n      parent,\n      type: name,\n      createError,\n      resolve,\n      options,\n      originalValue\n    }, rest);\n\n    if (!sync) {\n      try {\n        Promise.resolve(test.call(ctx, value, ctx)).then(validOrError => {\n          if (ValidationError.isError(validOrError)) cb(validOrError);else if (!validOrError) cb(createError());else cb(null, validOrError);\n        }).catch(cb);\n      } catch (err) {\n        cb(err);\n      }\n\n      return;\n    }\n\n    let result;\n\n    try {\n      var _ref2;\n\n      result = test.call(ctx, value, ctx);\n\n      if (typeof ((_ref2 = result) == null ? void 0 : _ref2.then) === 'function') {\n        throw new Error(`Validation test of type: \"${ctx.type}\" returned a Promise during a synchronous validate. ` + `This test will finish after the validate call has returned`);\n      }\n    } catch (err) {\n      cb(err);\n      return;\n    }\n\n    if (ValidationError.isError(result)) cb(result);else if (!result) cb(createError());else cb(null, result);\n  }\n\n  validate.OPTIONS = config;\n  return validate;\n}","import { forEach } from 'property-expr';\n\nlet trim = part => part.substr(0, part.length - 1).substr(1);\n\nexport function getIn(schema, path, value, context = value) {\n  let parent, lastPart, lastPartDebug; // root path: ''\n\n  if (!path) return {\n    parent,\n    parentPath: path,\n    schema\n  };\n  forEach(path, (_part, isBracket, isArray) => {\n    let part = isBracket ? trim(_part) : _part;\n    schema = schema.resolve({\n      context,\n      parent,\n      value\n    });\n\n    if (schema.innerType) {\n      let idx = isArray ? parseInt(part, 10) : 0;\n\n      if (value && idx >= value.length) {\n        throw new Error(`Yup.reach cannot resolve an array item at index: ${_part}, in the path: ${path}. ` + `because there is no value at that index. `);\n      }\n\n      parent = value;\n      value = value && value[idx];\n      schema = schema.innerType;\n    } // sometimes the array index part of a path doesn't exist: \"nested.arr.child\"\n    // in these cases the current part is the next schema and should be processed\n    // in this iteration. For cases where the index signature is included this\n    // check will fail and we'll handle the `child` part on the next iteration like normal\n\n\n    if (!isArray) {\n      if (!schema.fields || !schema.fields[part]) throw new Error(`The schema does not contain the path: ${path}. ` + `(failed at: ${lastPartDebug} which is a type: \"${schema._type}\")`);\n      parent = value;\n      value = value && value[part];\n      schema = schema.fields[part];\n    }\n\n    lastPart = part;\n    lastPartDebug = isBracket ? '[' + _part + ']' : '.' + _part;\n  });\n  return {\n    schema,\n    parent,\n    parentPath: lastPart\n  };\n}\n\nconst reach = (obj, path, value, context) => getIn(obj, path, value, context).schema;\n\nexport default reach;","import Reference from '../Reference';\nexport default class ReferenceSet {\n  constructor() {\n    this.list = void 0;\n    this.refs = void 0;\n    this.list = new Set();\n    this.refs = new Map();\n  }\n\n  get size() {\n    return this.list.size + this.refs.size;\n  }\n\n  describe() {\n    const description = [];\n\n    for (const item of this.list) description.push(item);\n\n    for (const [, ref] of this.refs) description.push(ref.describe());\n\n    return description;\n  }\n\n  toArray() {\n    return Array.from(this.list).concat(Array.from(this.refs.values()));\n  }\n\n  resolveAll(resolve) {\n    return this.toArray().reduce((acc, e) => acc.concat(Reference.isRef(e) ? resolve(e) : e), []);\n  }\n\n  add(value) {\n    Reference.isRef(value) ? this.refs.set(value.key, value) : this.list.add(value);\n  }\n\n  delete(value) {\n    Reference.isRef(value) ? this.refs.delete(value.key) : this.list.delete(value);\n  }\n\n  clone() {\n    const next = new ReferenceSet();\n    next.list = new Set(this.list);\n    next.refs = new Map(this.refs);\n    return next;\n  }\n\n  merge(newItems, removeItems) {\n    const next = this.clone();\n    newItems.list.forEach(value => next.add(value));\n    newItems.refs.forEach(value => next.add(value));\n    removeItems.list.forEach(value => next.delete(value));\n    removeItems.refs.forEach(value => next.delete(value));\n    return next;\n  }\n\n}","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n// @ts-ignore\nimport cloneDeep from 'nanoclone';\nimport { mixed as locale } from './locale';\nimport Condition from './Condition';\nimport runTests from './util/runTests';\nimport createValidation from './util/createValidation';\nimport printValue from './util/printValue';\nimport Ref from './Reference';\nimport { getIn } from './util/reach';\nimport ValidationError from './ValidationError';\nimport ReferenceSet from './util/ReferenceSet';\nimport toArray from './util/toArray'; // const UNSET = 'unset' as const;\n\nexport default class BaseSchema {\n  constructor(options) {\n    this.deps = [];\n    this.tests = void 0;\n    this.transforms = void 0;\n    this.conditions = [];\n    this._mutate = void 0;\n    this._typeError = void 0;\n    this._whitelist = new ReferenceSet();\n    this._blacklist = new ReferenceSet();\n    this.exclusiveTests = Object.create(null);\n    this.spec = void 0;\n    this.tests = [];\n    this.transforms = [];\n    this.withMutation(() => {\n      this.typeError(locale.notType);\n    });\n    this.type = (options == null ? void 0 : options.type) || 'mixed';\n    this.spec = _extends({\n      strip: false,\n      strict: false,\n      abortEarly: true,\n      recursive: true,\n      nullable: false,\n      presence: 'optional'\n    }, options == null ? void 0 : options.spec);\n  } // TODO: remove\n\n\n  get _type() {\n    return this.type;\n  }\n\n  _typeCheck(_value) {\n    return true;\n  }\n\n  clone(spec) {\n    if (this._mutate) {\n      if (spec) Object.assign(this.spec, spec);\n      return this;\n    } // if the nested value is a schema we can skip cloning, since\n    // they are already immutable\n\n\n    const next = Object.create(Object.getPrototypeOf(this)); // @ts-expect-error this is readonly\n\n    next.type = this.type;\n    next._typeError = this._typeError;\n    next._whitelistError = this._whitelistError;\n    next._blacklistError = this._blacklistError;\n    next._whitelist = this._whitelist.clone();\n    next._blacklist = this._blacklist.clone();\n    next.exclusiveTests = _extends({}, this.exclusiveTests); // @ts-expect-error this is readonly\n\n    next.deps = [...this.deps];\n    next.conditions = [...this.conditions];\n    next.tests = [...this.tests];\n    next.transforms = [...this.transforms];\n    next.spec = cloneDeep(_extends({}, this.spec, spec));\n    return next;\n  }\n\n  label(label) {\n    let next = this.clone();\n    next.spec.label = label;\n    return next;\n  }\n\n  meta(...args) {\n    if (args.length === 0) return this.spec.meta;\n    let next = this.clone();\n    next.spec.meta = Object.assign(next.spec.meta || {}, args[0]);\n    return next;\n  } // withContext<TContext extends AnyObject>(): BaseSchema<\n  //   TCast,\n  //   TContext,\n  //   TOutput\n  // > {\n  //   return this as any;\n  // }\n\n\n  withMutation(fn) {\n    let before = this._mutate;\n    this._mutate = true;\n    let result = fn(this);\n    this._mutate = before;\n    return result;\n  }\n\n  concat(schema) {\n    if (!schema || schema === this) return this;\n    if (schema.type !== this.type && this.type !== 'mixed') throw new TypeError(`You cannot \\`concat()\\` schema's of different types: ${this.type} and ${schema.type}`);\n    let base = this;\n    let combined = schema.clone();\n\n    const mergedSpec = _extends({}, base.spec, combined.spec); // if (combined.spec.nullable === UNSET)\n    //   mergedSpec.nullable = base.spec.nullable;\n    // if (combined.spec.presence === UNSET)\n    //   mergedSpec.presence = base.spec.presence;\n\n\n    combined.spec = mergedSpec;\n    combined._typeError || (combined._typeError = base._typeError);\n    combined._whitelistError || (combined._whitelistError = base._whitelistError);\n    combined._blacklistError || (combined._blacklistError = base._blacklistError); // manually merge the blacklist/whitelist (the other `schema` takes\n    // precedence in case of conflicts)\n\n    combined._whitelist = base._whitelist.merge(schema._whitelist, schema._blacklist);\n    combined._blacklist = base._blacklist.merge(schema._blacklist, schema._whitelist); // start with the current tests\n\n    combined.tests = base.tests;\n    combined.exclusiveTests = base.exclusiveTests; // manually add the new tests to ensure\n    // the deduping logic is consistent\n\n    combined.withMutation(next => {\n      schema.tests.forEach(fn => {\n        next.test(fn.OPTIONS);\n      });\n    });\n    combined.transforms = [...base.transforms, ...combined.transforms];\n    return combined;\n  }\n\n  isType(v) {\n    if (this.spec.nullable && v === null) return true;\n    return this._typeCheck(v);\n  }\n\n  resolve(options) {\n    let schema = this;\n\n    if (schema.conditions.length) {\n      let conditions = schema.conditions;\n      schema = schema.clone();\n      schema.conditions = [];\n      schema = conditions.reduce((schema, condition) => condition.resolve(schema, options), schema);\n      schema = schema.resolve(options);\n    }\n\n    return schema;\n  }\n  /**\n   *\n   * @param {*} value\n   * @param {Object} options\n   * @param {*=} options.parent\n   * @param {*=} options.context\n   */\n\n\n  cast(value, options = {}) {\n    let resolvedSchema = this.resolve(_extends({\n      value\n    }, options));\n\n    let result = resolvedSchema._cast(value, options);\n\n    if (value !== undefined && options.assert !== false && resolvedSchema.isType(result) !== true) {\n      let formattedValue = printValue(value);\n      let formattedResult = printValue(result);\n      throw new TypeError(`The value of ${options.path || 'field'} could not be cast to a value ` + `that satisfies the schema type: \"${resolvedSchema._type}\". \\n\\n` + `attempted value: ${formattedValue} \\n` + (formattedResult !== formattedValue ? `result of cast: ${formattedResult}` : ''));\n    }\n\n    return result;\n  }\n\n  _cast(rawValue, _options) {\n    let value = rawValue === undefined ? rawValue : this.transforms.reduce((value, fn) => fn.call(this, value, rawValue, this), rawValue);\n\n    if (value === undefined) {\n      value = this.getDefault();\n    }\n\n    return value;\n  }\n\n  _validate(_value, options = {}, cb) {\n    let {\n      sync,\n      path,\n      from = [],\n      originalValue = _value,\n      strict = this.spec.strict,\n      abortEarly = this.spec.abortEarly\n    } = options;\n    let value = _value;\n\n    if (!strict) {\n      // this._validating = true;\n      value = this._cast(value, _extends({\n        assert: false\n      }, options)); // this._validating = false;\n    } // value is cast, we can check if it meets type requirements\n\n\n    let args = {\n      value,\n      path,\n      options,\n      originalValue,\n      schema: this,\n      label: this.spec.label,\n      sync,\n      from\n    };\n    let initialTests = [];\n    if (this._typeError) initialTests.push(this._typeError);\n    let finalTests = [];\n    if (this._whitelistError) finalTests.push(this._whitelistError);\n    if (this._blacklistError) finalTests.push(this._blacklistError);\n    runTests({\n      args,\n      value,\n      path,\n      sync,\n      tests: initialTests,\n      endEarly: abortEarly\n    }, err => {\n      if (err) return void cb(err, value);\n      runTests({\n        tests: this.tests.concat(finalTests),\n        args,\n        path,\n        sync,\n        value,\n        endEarly: abortEarly\n      }, cb);\n    });\n  }\n\n  validate(value, options, maybeCb) {\n    let schema = this.resolve(_extends({}, options, {\n      value\n    })); // callback case is for nested validations\n\n    return typeof maybeCb === 'function' ? schema._validate(value, options, maybeCb) : new Promise((resolve, reject) => schema._validate(value, options, (err, value) => {\n      if (err) reject(err);else resolve(value);\n    }));\n  }\n\n  validateSync(value, options) {\n    let schema = this.resolve(_extends({}, options, {\n      value\n    }));\n    let result;\n\n    schema._validate(value, _extends({}, options, {\n      sync: true\n    }), (err, value) => {\n      if (err) throw err;\n      result = value;\n    });\n\n    return result;\n  }\n\n  isValid(value, options) {\n    return this.validate(value, options).then(() => true, err => {\n      if (ValidationError.isError(err)) return false;\n      throw err;\n    });\n  }\n\n  isValidSync(value, options) {\n    try {\n      this.validateSync(value, options);\n      return true;\n    } catch (err) {\n      if (ValidationError.isError(err)) return false;\n      throw err;\n    }\n  }\n\n  _getDefault() {\n    let defaultValue = this.spec.default;\n\n    if (defaultValue == null) {\n      return defaultValue;\n    }\n\n    return typeof defaultValue === 'function' ? defaultValue.call(this) : cloneDeep(defaultValue);\n  }\n\n  getDefault(options) {\n    let schema = this.resolve(options || {});\n    return schema._getDefault();\n  }\n\n  default(def) {\n    if (arguments.length === 0) {\n      return this._getDefault();\n    }\n\n    let next = this.clone({\n      default: def\n    });\n    return next;\n  }\n\n  strict(isStrict = true) {\n    let next = this.clone();\n    next.spec.strict = isStrict;\n    return next;\n  }\n\n  _isPresent(value) {\n    return value != null;\n  }\n\n  defined(message = locale.defined) {\n    return this.test({\n      message,\n      name: 'defined',\n      exclusive: true,\n\n      test(value) {\n        return value !== undefined;\n      }\n\n    });\n  }\n\n  required(message = locale.required) {\n    return this.clone({\n      presence: 'required'\n    }).withMutation(s => s.test({\n      message,\n      name: 'required',\n      exclusive: true,\n\n      test(value) {\n        return this.schema._isPresent(value);\n      }\n\n    }));\n  }\n\n  notRequired() {\n    let next = this.clone({\n      presence: 'optional'\n    });\n    next.tests = next.tests.filter(test => test.OPTIONS.name !== 'required');\n    return next;\n  }\n\n  nullable(isNullable = true) {\n    let next = this.clone({\n      nullable: isNullable !== false\n    });\n    return next;\n  }\n\n  transform(fn) {\n    let next = this.clone();\n    next.transforms.push(fn);\n    return next;\n  }\n  /**\n   * Adds a test function to the schema's queue of tests.\n   * tests can be exclusive or non-exclusive.\n   *\n   * - exclusive tests, will replace any existing tests of the same name.\n   * - non-exclusive: can be stacked\n   *\n   * If a non-exclusive test is added to a schema with an exclusive test of the same name\n   * the exclusive test is removed and further tests of the same name will be stacked.\n   *\n   * If an exclusive test is added to a schema with non-exclusive tests of the same name\n   * the previous tests are removed and further tests of the same name will replace each other.\n   */\n\n\n  test(...args) {\n    let opts;\n\n    if (args.length === 1) {\n      if (typeof args[0] === 'function') {\n        opts = {\n          test: args[0]\n        };\n      } else {\n        opts = args[0];\n      }\n    } else if (args.length === 2) {\n      opts = {\n        name: args[0],\n        test: args[1]\n      };\n    } else {\n      opts = {\n        name: args[0],\n        message: args[1],\n        test: args[2]\n      };\n    }\n\n    if (opts.message === undefined) opts.message = locale.default;\n    if (typeof opts.test !== 'function') throw new TypeError('`test` is a required parameters');\n    let next = this.clone();\n    let validate = createValidation(opts);\n    let isExclusive = opts.exclusive || opts.name && next.exclusiveTests[opts.name] === true;\n\n    if (opts.exclusive) {\n      if (!opts.name) throw new TypeError('Exclusive tests must provide a unique `name` identifying the test');\n    }\n\n    if (opts.name) next.exclusiveTests[opts.name] = !!opts.exclusive;\n    next.tests = next.tests.filter(fn => {\n      if (fn.OPTIONS.name === opts.name) {\n        if (isExclusive) return false;\n        if (fn.OPTIONS.test === validate.OPTIONS.test) return false;\n      }\n\n      return true;\n    });\n    next.tests.push(validate);\n    return next;\n  }\n\n  when(keys, options) {\n    if (!Array.isArray(keys) && typeof keys !== 'string') {\n      options = keys;\n      keys = '.';\n    }\n\n    let next = this.clone();\n    let deps = toArray(keys).map(key => new Ref(key));\n    deps.forEach(dep => {\n      // @ts-ignore\n      if (dep.isSibling) next.deps.push(dep.key);\n    });\n    next.conditions.push(new Condition(deps, options));\n    return next;\n  }\n\n  typeError(message) {\n    let next = this.clone();\n    next._typeError = createValidation({\n      message,\n      name: 'typeError',\n\n      test(value) {\n        if (value !== undefined && !this.schema.isType(value)) return this.createError({\n          params: {\n            type: this.schema._type\n          }\n        });\n        return true;\n      }\n\n    });\n    return next;\n  }\n\n  oneOf(enums, message = locale.oneOf) {\n    let next = this.clone();\n    enums.forEach(val => {\n      next._whitelist.add(val);\n\n      next._blacklist.delete(val);\n    });\n    next._whitelistError = createValidation({\n      message,\n      name: 'oneOf',\n\n      test(value) {\n        if (value === undefined) return true;\n        let valids = this.schema._whitelist;\n        let resolved = valids.resolveAll(this.resolve);\n        return resolved.includes(value) ? true : this.createError({\n          params: {\n            values: valids.toArray().join(', '),\n            resolved\n          }\n        });\n      }\n\n    });\n    return next;\n  }\n\n  notOneOf(enums, message = locale.notOneOf) {\n    let next = this.clone();\n    enums.forEach(val => {\n      next._blacklist.add(val);\n\n      next._whitelist.delete(val);\n    });\n    next._blacklistError = createValidation({\n      message,\n      name: 'notOneOf',\n\n      test(value) {\n        let invalids = this.schema._blacklist;\n        let resolved = invalids.resolveAll(this.resolve);\n        if (resolved.includes(value)) return this.createError({\n          params: {\n            values: invalids.toArray().join(', '),\n            resolved\n          }\n        });\n        return true;\n      }\n\n    });\n    return next;\n  }\n\n  strip(strip = true) {\n    let next = this.clone();\n    next.spec.strip = strip;\n    return next;\n  }\n\n  describe() {\n    const next = this.clone();\n    const {\n      label,\n      meta\n    } = next.spec;\n    const description = {\n      meta,\n      label,\n      type: next.type,\n      oneOf: next._whitelist.describe(),\n      notOneOf: next._blacklist.describe(),\n      tests: next.tests.map(fn => ({\n        name: fn.OPTIONS.name,\n        params: fn.OPTIONS.params\n      })).filter((n, idx, list) => list.findIndex(c => c.name === n.name) === idx)\n    };\n    return description;\n  }\n\n} // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\n// @ts-expect-error\nBaseSchema.prototype.__isYupSchema__ = true;\n\nfor (const method of ['validate', 'validateSync']) BaseSchema.prototype[`${method}At`] = function (path, value, options = {}) {\n  const {\n    parent,\n    parentPath,\n    schema\n  } = getIn(this, path, value, options.context);\n  return schema[method](parent && parent[parentPath], _extends({}, options, {\n    parent,\n    path\n  }));\n};\n\nfor (const alias of ['equals', 'is']) BaseSchema.prototype[alias] = BaseSchema.prototype.oneOf;\n\nfor (const alias of ['not', 'nope']) BaseSchema.prototype[alias] = BaseSchema.prototype.notOneOf;\n\nBaseSchema.prototype.optional = BaseSchema.prototype.notRequired;","import BaseSchema from './schema';\nconst Mixed = BaseSchema;\nexport default Mixed;\nexport function create() {\n  return new Mixed();\n} // XXX: this is using the Base schema so that `addMethod(mixed)` works as a base class\n\ncreate.prototype = Mixed.prototype;","const isAbsent = value => value == null;\n\nexport default isAbsent;","import BaseSchema from './schema';\nimport { boolean as locale } from './locale';\nimport isAbsent from './util/isAbsent';\nexport function create() {\n  return new BooleanSchema();\n}\nexport default class BooleanSchema extends BaseSchema {\n  constructor() {\n    super({\n      type: 'boolean'\n    });\n    this.withMutation(() => {\n      this.transform(function (value) {\n        if (!this.isType(value)) {\n          if (/^(true|1)$/i.test(String(value))) return true;\n          if (/^(false|0)$/i.test(String(value))) return false;\n        }\n\n        return value;\n      });\n    });\n  }\n\n  _typeCheck(v) {\n    if (v instanceof Boolean) v = v.valueOf();\n    return typeof v === 'boolean';\n  }\n\n  isTrue(message = locale.isValue) {\n    return this.test({\n      message,\n      name: 'is-value',\n      exclusive: true,\n      params: {\n        value: 'true'\n      },\n\n      test(value) {\n        return isAbsent(value) || value === true;\n      }\n\n    });\n  }\n\n  isFalse(message = locale.isValue) {\n    return this.test({\n      message,\n      name: 'is-value',\n      exclusive: true,\n      params: {\n        value: 'false'\n      },\n\n      test(value) {\n        return isAbsent(value) || value === false;\n      }\n\n    });\n  }\n\n}\ncreate.prototype = BooleanSchema.prototype;","import { string as locale } from './locale';\nimport isAbsent from './util/isAbsent';\nimport BaseSchema from './schema'; // eslint-disable-next-line\n\nlet rEmail = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i; // eslint-disable-next-line\n\nlet rUrl = /^((https?|ftp):)?\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|[\\uE000-\\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i; // eslint-disable-next-line\n\nlet rUUID = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\nlet isTrimmed = value => isAbsent(value) || value === value.trim();\n\nlet objStringTag = {}.toString();\nexport function create() {\n  return new StringSchema();\n}\nexport default class StringSchema extends BaseSchema {\n  constructor() {\n    super({\n      type: 'string'\n    });\n    this.withMutation(() => {\n      this.transform(function (value) {\n        if (this.isType(value)) return value;\n        if (Array.isArray(value)) return value;\n        const strValue = value != null && value.toString ? value.toString() : value;\n        if (strValue === objStringTag) return value;\n        return strValue;\n      });\n    });\n  }\n\n  _typeCheck(value) {\n    if (value instanceof String) value = value.valueOf();\n    return typeof value === 'string';\n  }\n\n  _isPresent(value) {\n    return super._isPresent(value) && !!value.length;\n  }\n\n  length(length, message = locale.length) {\n    return this.test({\n      message,\n      name: 'length',\n      exclusive: true,\n      params: {\n        length\n      },\n\n      test(value) {\n        return isAbsent(value) || value.length === this.resolve(length);\n      }\n\n    });\n  }\n\n  min(min, message = locale.min) {\n    return this.test({\n      message,\n      name: 'min',\n      exclusive: true,\n      params: {\n        min\n      },\n\n      test(value) {\n        return isAbsent(value) || value.length >= this.resolve(min);\n      }\n\n    });\n  }\n\n  max(max, message = locale.max) {\n    return this.test({\n      name: 'max',\n      exclusive: true,\n      message,\n      params: {\n        max\n      },\n\n      test(value) {\n        return isAbsent(value) || value.length <= this.resolve(max);\n      }\n\n    });\n  }\n\n  matches(regex, options) {\n    let excludeEmptyString = false;\n    let message;\n    let name;\n\n    if (options) {\n      if (typeof options === 'object') {\n        ({\n          excludeEmptyString = false,\n          message,\n          name\n        } = options);\n      } else {\n        message = options;\n      }\n    }\n\n    return this.test({\n      name: name || 'matches',\n      message: message || locale.matches,\n      params: {\n        regex\n      },\n      test: value => isAbsent(value) || value === '' && excludeEmptyString || value.search(regex) !== -1\n    });\n  }\n\n  email(message = locale.email) {\n    return this.matches(rEmail, {\n      name: 'email',\n      message,\n      excludeEmptyString: true\n    });\n  }\n\n  url(message = locale.url) {\n    return this.matches(rUrl, {\n      name: 'url',\n      message,\n      excludeEmptyString: true\n    });\n  }\n\n  uuid(message = locale.uuid) {\n    return this.matches(rUUID, {\n      name: 'uuid',\n      message,\n      excludeEmptyString: false\n    });\n  } //-- transforms --\n\n\n  ensure() {\n    return this.default('').transform(val => val === null ? '' : val);\n  }\n\n  trim(message = locale.trim) {\n    return this.transform(val => val != null ? val.trim() : val).test({\n      message,\n      name: 'trim',\n      test: isTrimmed\n    });\n  }\n\n  lowercase(message = locale.lowercase) {\n    return this.transform(value => !isAbsent(value) ? value.toLowerCase() : value).test({\n      message,\n      name: 'string_case',\n      exclusive: true,\n      test: value => isAbsent(value) || value === value.toLowerCase()\n    });\n  }\n\n  uppercase(message = locale.uppercase) {\n    return this.transform(value => !isAbsent(value) ? value.toUpperCase() : value).test({\n      message,\n      name: 'string_case',\n      exclusive: true,\n      test: value => isAbsent(value) || value === value.toUpperCase()\n    });\n  }\n\n}\ncreate.prototype = StringSchema.prototype; //\n// String Interfaces\n//","import { number as locale } from './locale';\nimport isAbsent from './util/isAbsent';\nimport BaseSchema from './schema';\n\nlet isNaN = value => value != +value;\n\nexport function create() {\n  return new NumberSchema();\n}\nexport default class NumberSchema extends BaseSchema {\n  constructor() {\n    super({\n      type: 'number'\n    });\n    this.withMutation(() => {\n      this.transform(function (value) {\n        let parsed = value;\n\n        if (typeof parsed === 'string') {\n          parsed = parsed.replace(/\\s/g, '');\n          if (parsed === '') return NaN; // don't use parseFloat to avoid positives on alpha-numeric strings\n\n          parsed = +parsed;\n        }\n\n        if (this.isType(parsed)) return parsed;\n        return parseFloat(parsed);\n      });\n    });\n  }\n\n  _typeCheck(value) {\n    if (value instanceof Number) value = value.valueOf();\n    return typeof value === 'number' && !isNaN(value);\n  }\n\n  min(min, message = locale.min) {\n    return this.test({\n      message,\n      name: 'min',\n      exclusive: true,\n      params: {\n        min\n      },\n\n      test(value) {\n        return isAbsent(value) || value >= this.resolve(min);\n      }\n\n    });\n  }\n\n  max(max, message = locale.max) {\n    return this.test({\n      message,\n      name: 'max',\n      exclusive: true,\n      params: {\n        max\n      },\n\n      test(value) {\n        return isAbsent(value) || value <= this.resolve(max);\n      }\n\n    });\n  }\n\n  lessThan(less, message = locale.lessThan) {\n    return this.test({\n      message,\n      name: 'max',\n      exclusive: true,\n      params: {\n        less\n      },\n\n      test(value) {\n        return isAbsent(value) || value < this.resolve(less);\n      }\n\n    });\n  }\n\n  moreThan(more, message = locale.moreThan) {\n    return this.test({\n      message,\n      name: 'min',\n      exclusive: true,\n      params: {\n        more\n      },\n\n      test(value) {\n        return isAbsent(value) || value > this.resolve(more);\n      }\n\n    });\n  }\n\n  positive(msg = locale.positive) {\n    return this.moreThan(0, msg);\n  }\n\n  negative(msg = locale.negative) {\n    return this.lessThan(0, msg);\n  }\n\n  integer(message = locale.integer) {\n    return this.test({\n      name: 'integer',\n      message,\n      test: val => isAbsent(val) || Number.isInteger(val)\n    });\n  }\n\n  truncate() {\n    return this.transform(value => !isAbsent(value) ? value | 0 : value);\n  }\n\n  round(method) {\n    var _method;\n\n    let avail = ['ceil', 'floor', 'round', 'trunc'];\n    method = ((_method = method) == null ? void 0 : _method.toLowerCase()) || 'round'; // this exists for symemtry with the new Math.trunc\n\n    if (method === 'trunc') return this.truncate();\n    if (avail.indexOf(method.toLowerCase()) === -1) throw new TypeError('Only valid options for round() are: ' + avail.join(', '));\n    return this.transform(value => !isAbsent(value) ? Math[method](value) : value);\n  }\n\n}\ncreate.prototype = NumberSchema.prototype; //\n// Number Interfaces\n//","/* eslint-disable */\n\n/**\n *\n * Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601>\n * NON-CONFORMANT EDITION.\n * © 2011 Colin Snover <http://zetafleet.com>\n * Released under MIT license.\n */\n//              1 YYYY                 2 MM        3 DD              4 HH     5 mm        6 ss            7 msec         8 Z 9 ±    10 tzHH    11 tzmm\nvar isoReg = /^(\\d{4}|[+\\-]\\d{6})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:[ T]?(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,\\.](\\d{1,}))?)?(?:(Z)|([+\\-])(\\d{2})(?::?(\\d{2}))?)?)?$/;\nexport default function parseIsoDate(date) {\n  var numericKeys = [1, 4, 5, 6, 7, 10, 11],\n      minutesOffset = 0,\n      timestamp,\n      struct;\n\n  if (struct = isoReg.exec(date)) {\n    // avoid NaN timestamps caused by “undefined” values being passed to Date.UTC\n    for (var i = 0, k; k = numericKeys[i]; ++i) struct[k] = +struct[k] || 0; // allow undefined days and months\n\n\n    struct[2] = (+struct[2] || 1) - 1;\n    struct[3] = +struct[3] || 1; // allow arbitrary sub-second precision beyond milliseconds\n\n    struct[7] = struct[7] ? String(struct[7]).substr(0, 3) : 0; // timestamps without timezone identifiers should be considered local time\n\n    if ((struct[8] === undefined || struct[8] === '') && (struct[9] === undefined || struct[9] === '')) timestamp = +new Date(struct[1], struct[2], struct[3], struct[4], struct[5], struct[6], struct[7]);else {\n      if (struct[8] !== 'Z' && struct[9] !== undefined) {\n        minutesOffset = struct[10] * 60 + struct[11];\n        if (struct[9] === '+') minutesOffset = 0 - minutesOffset;\n      }\n\n      timestamp = Date.UTC(struct[1], struct[2], struct[3], struct[4], struct[5] + minutesOffset, struct[6], struct[7]);\n    }\n  } else timestamp = Date.parse ? Date.parse(date) : NaN;\n\n  return timestamp;\n}","// @ts-ignore\nimport isoParse from './util/isodate';\nimport { date as locale } from './locale';\nimport isAbsent from './util/isAbsent';\nimport Ref from './Reference';\nimport BaseSchema from './schema';\nlet invalidDate = new Date('');\n\nlet isDate = obj => Object.prototype.toString.call(obj) === '[object Date]';\n\nexport function create() {\n  return new DateSchema();\n}\nexport default class DateSchema extends BaseSchema {\n  constructor() {\n    super({\n      type: 'date'\n    });\n    this.withMutation(() => {\n      this.transform(function (value) {\n        if (this.isType(value)) return value;\n        value = isoParse(value); // 0 is a valid timestamp equivalent to 1970-01-01T00:00:00Z(unix epoch) or before.\n\n        return !isNaN(value) ? new Date(value) : invalidDate;\n      });\n    });\n  }\n\n  _typeCheck(v) {\n    return isDate(v) && !isNaN(v.getTime());\n  }\n\n  prepareParam(ref, name) {\n    let param;\n\n    if (!Ref.isRef(ref)) {\n      let cast = this.cast(ref);\n      if (!this._typeCheck(cast)) throw new TypeError(`\\`${name}\\` must be a Date or a value that can be \\`cast()\\` to a Date`);\n      param = cast;\n    } else {\n      param = ref;\n    }\n\n    return param;\n  }\n\n  min(min, message = locale.min) {\n    let limit = this.prepareParam(min, 'min');\n    return this.test({\n      message,\n      name: 'min',\n      exclusive: true,\n      params: {\n        min\n      },\n\n      test(value) {\n        return isAbsent(value) || value >= this.resolve(limit);\n      }\n\n    });\n  }\n\n  max(max, message = locale.max) {\n    let limit = this.prepareParam(max, 'max');\n    return this.test({\n      message,\n      name: 'max',\n      exclusive: true,\n      params: {\n        max\n      },\n\n      test(value) {\n        return isAbsent(value) || value <= this.resolve(limit);\n      }\n\n    });\n  }\n\n}\nDateSchema.INVALID_DATE = invalidDate;\ncreate.prototype = DateSchema.prototype;\ncreate.INVALID_DATE = invalidDate;","function findIndex(arr, err) {\n  let idx = Infinity;\n  arr.some((key, ii) => {\n    var _err$path;\n\n    if (((_err$path = err.path) == null ? void 0 : _err$path.indexOf(key)) !== -1) {\n      idx = ii;\n      return true;\n    }\n  });\n  return idx;\n}\n\nexport default function sortByKeyOrder(keys) {\n  return (a, b) => {\n    return findIndex(keys, a) - findIndex(keys, b);\n  };\n}","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport has from 'lodash/has';\nimport snakeCase from 'lodash/snakeCase';\nimport camelCase from 'lodash/camelCase';\nimport mapKeys from 'lodash/mapKeys';\nimport mapValues from 'lodash/mapValues';\nimport { getter } from 'property-expr';\nimport { object as locale } from './locale';\nimport sortFields from './util/sortFields';\nimport sortByKeyOrder from './util/sortByKeyOrder';\nimport runTests from './util/runTests';\nimport ValidationError from './ValidationError';\nimport BaseSchema from './schema';\n\nlet isObject = obj => Object.prototype.toString.call(obj) === '[object Object]';\n\nfunction unknown(ctx, value) {\n  let known = Object.keys(ctx.fields);\n  return Object.keys(value).filter(key => known.indexOf(key) === -1);\n}\n\nconst defaultSort = sortByKeyOrder([]);\nexport default class ObjectSchema extends BaseSchema {\n  constructor(spec) {\n    super({\n      type: 'object'\n    });\n    this.fields = Object.create(null);\n    this._sortErrors = defaultSort;\n    this._nodes = [];\n    this._excludedEdges = [];\n    this.withMutation(() => {\n      this.transform(function coerce(value) {\n        if (typeof value === 'string') {\n          try {\n            value = JSON.parse(value);\n          } catch (err) {\n            value = null;\n          }\n        }\n\n        if (this.isType(value)) return value;\n        return null;\n      });\n\n      if (spec) {\n        this.shape(spec);\n      }\n    });\n  }\n\n  _typeCheck(value) {\n    return isObject(value) || typeof value === 'function';\n  }\n\n  _cast(_value, options = {}) {\n    var _options$stripUnknown;\n\n    let value = super._cast(_value, options); //should ignore nulls here\n\n\n    if (value === undefined) return this.getDefault();\n    if (!this._typeCheck(value)) return value;\n    let fields = this.fields;\n    let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;\n\n    let props = this._nodes.concat(Object.keys(value).filter(v => this._nodes.indexOf(v) === -1));\n\n    let intermediateValue = {}; // is filled during the transform below\n\n    let innerOptions = _extends({}, options, {\n      parent: intermediateValue,\n      __validating: options.__validating || false\n    });\n\n    let isChanged = false;\n\n    for (const prop of props) {\n      let field = fields[prop];\n      let exists = has(value, prop);\n\n      if (field) {\n        let fieldValue;\n        let inputValue = value[prop]; // safe to mutate since this is fired in sequence\n\n        innerOptions.path = (options.path ? `${options.path}.` : '') + prop; // innerOptions.value = value[prop];\n\n        field = field.resolve({\n          value: inputValue,\n          context: options.context,\n          parent: intermediateValue\n        });\n        let fieldSpec = 'spec' in field ? field.spec : undefined;\n        let strict = fieldSpec == null ? void 0 : fieldSpec.strict;\n\n        if (fieldSpec == null ? void 0 : fieldSpec.strip) {\n          isChanged = isChanged || prop in value;\n          continue;\n        }\n\n        fieldValue = !options.__validating || !strict ? // TODO: use _cast, this is double resolving\n        field.cast(value[prop], innerOptions) : value[prop];\n\n        if (fieldValue !== undefined) {\n          intermediateValue[prop] = fieldValue;\n        }\n      } else if (exists && !strip) {\n        intermediateValue[prop] = value[prop];\n      }\n\n      if (intermediateValue[prop] !== value[prop]) {\n        isChanged = true;\n      }\n    }\n\n    return isChanged ? intermediateValue : value;\n  }\n\n  _validate(_value, opts = {}, callback) {\n    let errors = [];\n    let {\n      sync,\n      from = [],\n      originalValue = _value,\n      abortEarly = this.spec.abortEarly,\n      recursive = this.spec.recursive\n    } = opts;\n    from = [{\n      schema: this,\n      value: originalValue\n    }, ...from]; // this flag is needed for handling `strict` correctly in the context of\n    // validation vs just casting. e.g strict() on a field is only used when validating\n\n    opts.__validating = true;\n    opts.originalValue = originalValue;\n    opts.from = from;\n\n    super._validate(_value, opts, (err, value) => {\n      if (err) {\n        if (!ValidationError.isError(err) || abortEarly) {\n          return void callback(err, value);\n        }\n\n        errors.push(err);\n      }\n\n      if (!recursive || !isObject(value)) {\n        callback(errors[0] || null, value);\n        return;\n      }\n\n      originalValue = originalValue || value;\n\n      let tests = this._nodes.map(key => (_, cb) => {\n        let path = key.indexOf('.') === -1 ? (opts.path ? `${opts.path}.` : '') + key : `${opts.path || ''}[\"${key}\"]`;\n        let field = this.fields[key];\n\n        if (field && 'validate' in field) {\n          field.validate(value[key], _extends({}, opts, {\n            // @ts-ignore\n            path,\n            from,\n            // inner fields are always strict:\n            // 1. this isn't strict so the casting will also have cast inner values\n            // 2. this is strict in which case the nested values weren't cast either\n            strict: true,\n            parent: value,\n            originalValue: originalValue[key]\n          }), cb);\n          return;\n        }\n\n        cb(null);\n      });\n\n      runTests({\n        sync,\n        tests,\n        value,\n        errors,\n        endEarly: abortEarly,\n        sort: this._sortErrors,\n        path: opts.path\n      }, callback);\n    });\n  }\n\n  clone(spec) {\n    const next = super.clone(spec);\n    next.fields = _extends({}, this.fields);\n    next._nodes = this._nodes;\n    next._excludedEdges = this._excludedEdges;\n    next._sortErrors = this._sortErrors;\n    return next;\n  }\n\n  concat(schema) {\n    let next = super.concat(schema);\n    let nextFields = next.fields;\n\n    for (let [field, schemaOrRef] of Object.entries(this.fields)) {\n      const target = nextFields[field];\n\n      if (target === undefined) {\n        nextFields[field] = schemaOrRef;\n      } else if (target instanceof BaseSchema && schemaOrRef instanceof BaseSchema) {\n        nextFields[field] = schemaOrRef.concat(target);\n      }\n    }\n\n    return next.withMutation(() => next.shape(nextFields, this._excludedEdges));\n  }\n\n  getDefaultFromShape() {\n    let dft = {};\n\n    this._nodes.forEach(key => {\n      const field = this.fields[key];\n      dft[key] = 'default' in field ? field.getDefault() : undefined;\n    });\n\n    return dft;\n  }\n\n  _getDefault() {\n    if ('default' in this.spec) {\n      return super._getDefault();\n    } // if there is no default set invent one\n\n\n    if (!this._nodes.length) {\n      return undefined;\n    }\n\n    return this.getDefaultFromShape();\n  }\n\n  shape(additions, excludes = []) {\n    let next = this.clone();\n    let fields = Object.assign(next.fields, additions);\n    next.fields = fields;\n    next._sortErrors = sortByKeyOrder(Object.keys(fields));\n\n    if (excludes.length) {\n      // this is a convenience for when users only supply a single pair\n      if (!Array.isArray(excludes[0])) excludes = [excludes];\n      next._excludedEdges = [...next._excludedEdges, ...excludes];\n    }\n\n    next._nodes = sortFields(fields, next._excludedEdges);\n    return next;\n  }\n\n  pick(keys) {\n    const picked = {};\n\n    for (const key of keys) {\n      if (this.fields[key]) picked[key] = this.fields[key];\n    }\n\n    return this.clone().withMutation(next => {\n      next.fields = {};\n      return next.shape(picked);\n    });\n  }\n\n  omit(keys) {\n    const next = this.clone();\n    const fields = next.fields;\n    next.fields = {};\n\n    for (const key of keys) {\n      delete fields[key];\n    }\n\n    return next.withMutation(() => next.shape(fields));\n  }\n\n  from(from, to, alias) {\n    let fromGetter = getter(from, true);\n    return this.transform(obj => {\n      if (obj == null) return obj;\n      let newObj = obj;\n\n      if (has(obj, from)) {\n        newObj = _extends({}, obj);\n        if (!alias) delete newObj[from];\n        newObj[to] = fromGetter(obj);\n      }\n\n      return newObj;\n    });\n  }\n\n  noUnknown(noAllow = true, message = locale.noUnknown) {\n    if (typeof noAllow === 'string') {\n      message = noAllow;\n      noAllow = true;\n    }\n\n    let next = this.test({\n      name: 'noUnknown',\n      exclusive: true,\n      message: message,\n\n      test(value) {\n        if (value == null) return true;\n        const unknownKeys = unknown(this.schema, value);\n        return !noAllow || unknownKeys.length === 0 || this.createError({\n          params: {\n            unknown: unknownKeys.join(', ')\n          }\n        });\n      }\n\n    });\n    next.spec.noUnknown = noAllow;\n    return next;\n  }\n\n  unknown(allow = true, message = locale.noUnknown) {\n    return this.noUnknown(!allow, message);\n  }\n\n  transformKeys(fn) {\n    return this.transform(obj => obj && mapKeys(obj, (_, key) => fn(key)));\n  }\n\n  camelCase() {\n    return this.transformKeys(camelCase);\n  }\n\n  snakeCase() {\n    return this.transformKeys(snakeCase);\n  }\n\n  constantCase() {\n    return this.transformKeys(key => snakeCase(key).toUpperCase());\n  }\n\n  describe() {\n    let base = super.describe();\n    base.fields = mapValues(this.fields, value => value.describe());\n    return base;\n  }\n\n}\nexport function create(spec) {\n  return new ObjectSchema(spec);\n}\ncreate.prototype = ObjectSchema.prototype;","import has from 'lodash/has'; // @ts-expect-error\n\nimport toposort from 'toposort';\nimport { split } from 'property-expr';\nimport Ref from '../Reference';\nimport isSchema from './isSchema';\nexport default function sortFields(fields, excludedEdges = []) {\n  let edges = [];\n  let nodes = new Set();\n  let excludes = new Set(excludedEdges.map(([a, b]) => `${a}-${b}`));\n\n  function addNode(depPath, key) {\n    let node = split(depPath)[0];\n    nodes.add(node);\n    if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);\n  }\n\n  for (const key in fields) if (has(fields, key)) {\n    let value = fields[key];\n    nodes.add(key);\n    if (Ref.isRef(value) && value.isSibling) addNode(value.path, key);else if (isSchema(value) && 'deps' in value) value.deps.forEach(path => addNode(path, key));\n  }\n\n  return toposort.array(Array.from(nodes), edges).reverse();\n}","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport isAbsent from './util/isAbsent';\nimport isSchema from './util/isSchema';\nimport printValue from './util/printValue';\nimport { array as locale } from './locale';\nimport runTests from './util/runTests';\nimport ValidationError from './ValidationError';\nimport BaseSchema from './schema';\nexport function create(type) {\n  return new ArraySchema(type);\n}\nexport default class ArraySchema extends BaseSchema {\n  constructor(type) {\n    super({\n      type: 'array'\n    }); // `undefined` specifically means uninitialized, as opposed to\n    // \"no subtype\"\n\n    this.innerType = void 0;\n    this.innerType = type;\n    this.withMutation(() => {\n      this.transform(function (values) {\n        if (typeof values === 'string') try {\n          values = JSON.parse(values);\n        } catch (err) {\n          values = null;\n        }\n        return this.isType(values) ? values : null;\n      });\n    });\n  }\n\n  _typeCheck(v) {\n    return Array.isArray(v);\n  }\n\n  get _subType() {\n    return this.innerType;\n  }\n\n  _cast(_value, _opts) {\n    const value = super._cast(_value, _opts); //should ignore nulls here\n\n\n    if (!this._typeCheck(value) || !this.innerType) return value;\n    let isChanged = false;\n    const castArray = value.map((v, idx) => {\n      const castElement = this.innerType.cast(v, _extends({}, _opts, {\n        path: `${_opts.path || ''}[${idx}]`\n      }));\n\n      if (castElement !== v) {\n        isChanged = true;\n      }\n\n      return castElement;\n    });\n    return isChanged ? castArray : value;\n  }\n\n  _validate(_value, options = {}, callback) {\n    var _options$abortEarly, _options$recursive;\n\n    let errors = [];\n    let sync = options.sync;\n    let path = options.path;\n    let innerType = this.innerType;\n    let endEarly = (_options$abortEarly = options.abortEarly) != null ? _options$abortEarly : this.spec.abortEarly;\n    let recursive = (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive;\n    let originalValue = options.originalValue != null ? options.originalValue : _value;\n\n    super._validate(_value, options, (err, value) => {\n      if (err) {\n        if (!ValidationError.isError(err) || endEarly) {\n          return void callback(err, value);\n        }\n\n        errors.push(err);\n      }\n\n      if (!recursive || !innerType || !this._typeCheck(value)) {\n        callback(errors[0] || null, value);\n        return;\n      }\n\n      originalValue = originalValue || value; // #950 Ensure that sparse array empty slots are validated\n\n      let tests = new Array(value.length);\n\n      for (let idx = 0; idx < value.length; idx++) {\n        let item = value[idx];\n        let path = `${options.path || ''}[${idx}]`; // object._validate note for isStrict explanation\n\n        let innerOptions = _extends({}, options, {\n          path,\n          strict: true,\n          parent: value,\n          index: idx,\n          originalValue: originalValue[idx]\n        });\n\n        tests[idx] = (_, cb) => innerType.validate(item, innerOptions, cb);\n      }\n\n      runTests({\n        sync,\n        path,\n        value,\n        errors,\n        endEarly,\n        tests\n      }, callback);\n    });\n  }\n\n  clone(spec) {\n    const next = super.clone(spec);\n    next.innerType = this.innerType;\n    return next;\n  }\n\n  concat(schema) {\n    let next = super.concat(schema);\n    next.innerType = this.innerType;\n    if (schema.innerType) next.innerType = next.innerType ? // @ts-expect-error Lazy doesn't have concat()\n    next.innerType.concat(schema.innerType) : schema.innerType;\n    return next;\n  }\n\n  of(schema) {\n    // FIXME: this should return a new instance of array without the default to be\n    let next = this.clone();\n    if (!isSchema(schema)) throw new TypeError('`array.of()` sub-schema must be a valid yup schema not: ' + printValue(schema)); // FIXME(ts):\n\n    next.innerType = schema;\n    return next;\n  }\n\n  length(length, message = locale.length) {\n    return this.test({\n      message,\n      name: 'length',\n      exclusive: true,\n      params: {\n        length\n      },\n\n      test(value) {\n        return isAbsent(value) || value.length === this.resolve(length);\n      }\n\n    });\n  }\n\n  min(min, message) {\n    message = message || locale.min;\n    return this.test({\n      message,\n      name: 'min',\n      exclusive: true,\n      params: {\n        min\n      },\n\n      // FIXME(ts): Array<typeof T>\n      test(value) {\n        return isAbsent(value) || value.length >= this.resolve(min);\n      }\n\n    });\n  }\n\n  max(max, message) {\n    message = message || locale.max;\n    return this.test({\n      message,\n      name: 'max',\n      exclusive: true,\n      params: {\n        max\n      },\n\n      test(value) {\n        return isAbsent(value) || value.length <= this.resolve(max);\n      }\n\n    });\n  }\n\n  ensure() {\n    return this.default(() => []).transform((val, original) => {\n      // We don't want to return `null` for nullable schema\n      if (this._typeCheck(val)) return val;\n      return original == null ? [] : [].concat(original);\n    });\n  }\n\n  compact(rejector) {\n    let reject = !rejector ? v => !!v : (v, i, a) => !rejector(v, i, a);\n    return this.transform(values => values != null ? values.filter(reject) : values);\n  }\n\n  describe() {\n    let base = super.describe();\n    if (this.innerType) base.innerType = this.innerType.describe();\n    return base;\n  }\n\n  nullable(isNullable = true) {\n    return super.nullable(isNullable);\n  }\n\n  defined() {\n    return super.defined();\n  }\n\n  required(msg) {\n    return super.required(msg);\n  }\n\n}\ncreate.prototype = ArraySchema.prototype; //\n// Interfaces\n//","import isSchema from './util/isSchema';\nexport function create(builder) {\n  return new Lazy(builder);\n}\n\nclass Lazy {\n  constructor(builder) {\n    this.type = 'lazy';\n    this.__isYupSchema__ = true;\n    this.__inputType = void 0;\n    this.__outputType = void 0;\n\n    this._resolve = (value, options = {}) => {\n      let schema = this.builder(value, options);\n      if (!isSchema(schema)) throw new TypeError('lazy() functions must return a valid schema');\n      return schema.resolve(options);\n    };\n\n    this.builder = builder;\n  }\n\n  resolve(options) {\n    return this._resolve(options.value, options);\n  }\n\n  cast(value, options) {\n    return this._resolve(value, options).cast(value, options);\n  }\n\n  validate(value, options, maybeCb) {\n    // @ts-expect-error missing public callback on type\n    return this._resolve(value, options).validate(value, options, maybeCb);\n  }\n\n  validateSync(value, options) {\n    return this._resolve(value, options).validateSync(value, options);\n  }\n\n  validateAt(path, value, options) {\n    return this._resolve(value, options).validateAt(path, value, options);\n  }\n\n  validateSyncAt(path, value, options) {\n    return this._resolve(value, options).validateSyncAt(path, value, options);\n  }\n\n  describe() {\n    return null;\n  }\n\n  isValid(value, options) {\n    return this._resolve(value, options).isValid(value, options);\n  }\n\n  isValidSync(value, options) {\n    return this._resolve(value, options).isValidSync(value, options);\n  }\n\n}\n\nexport default Lazy;","import locale from './locale';\nexport default function setLocale(custom) {\n  Object.keys(custom).forEach(type => {\n    // @ts-ignore\n    Object.keys(custom[type]).forEach(method => {\n      // @ts-ignore\n      locale[type][method] = custom[type][method];\n    });\n  });\n}","import MixedSchema, { create as mixedCreate } from './mixed';\nimport BooleanSchema, { create as boolCreate } from './boolean';\nimport StringSchema, { create as stringCreate } from './string';\nimport NumberSchema, { create as numberCreate } from './number';\nimport DateSchema, { create as dateCreate } from './date';\nimport ObjectSchema, { create as objectCreate } from './object';\nimport ArraySchema, { create as arrayCreate } from './array';\nimport { create as refCreate } from './Reference';\nimport { create as lazyCreate } from './Lazy';\nimport ValidationError from './ValidationError';\nimport reach from './util/reach';\nimport isSchema from './util/isSchema';\nimport setLocale from './setLocale';\nimport BaseSchema from './schema';\n\nfunction addMethod(schemaType, name, fn) {\n  if (!schemaType || !isSchema(schemaType.prototype)) throw new TypeError('You must provide a yup schema constructor function');\n  if (typeof name !== 'string') throw new TypeError('A Method name must be provided');\n  if (typeof fn !== 'function') throw new TypeError('Method function must be provided');\n  schemaType.prototype[name] = fn;\n}\n\nexport { mixedCreate as mixed, boolCreate as bool, boolCreate as boolean, stringCreate as string, numberCreate as number, dateCreate as date, objectCreate as object, arrayCreate as array, refCreate as ref, lazyCreate as lazy, reach, isSchema, addMethod, setLocale, ValidationError };\nexport { BaseSchema, MixedSchema, BooleanSchema, StringSchema, NumberSchema, DateSchema, ObjectSchema, ArraySchema };","function _extends() {\n  return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(e) {\n  return e && e.__esModule ? e : {\n    \"default\": e\n  };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _objectWithoutPropertiesLoose(r, e) {\n  if (null == r) return {};\n  var t = {};\n  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n    if (-1 !== e.indexOf(n)) continue;\n    t[n] = r[n];\n  }\n  return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(r, a) {\n  (null == a || a > r.length) && (a = r.length);\n  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n  return n;\n}\nexport { _arrayLikeToArray as default };","function _arrayWithHoles(r) {\n  if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _assertThisInitialized(e) {\n  if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  return e;\n}\nexport { _assertThisInitialized as default };","function _classCallCheck(a, n) {\n  if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nexport { _classCallCheck as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(e, r) {\n  for (var t = 0; t < r.length; t++) {\n    var o = r[t];\n    o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n  }\n}\nfunction _createClass(e, r, t) {\n  return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n    writable: !1\n  }), e;\n}\nexport { _createClass as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n    value: t,\n    enumerable: !0,\n    configurable: !0,\n    writable: !0\n  }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","function _extends() {\n  return _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n  t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","function _iterableToArray(r) {\n  if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","function _objectWithoutPropertiesLoose(r, e) {\n  if (null == r) return {};\n  var t = {};\n  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n    if (-1 !== e.indexOf(n)) continue;\n    t[n] = r[n];\n  }\n  return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","function _setPrototypeOf(t, e) {\n  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n    return t.__proto__ = e, t;\n  }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n  var i = toPrimitive(t, \"string\");\n  return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n  if (\"object\" != _typeof(t) || !t) return t;\n  var e = t[Symbol.toPrimitive];\n  if (void 0 !== e) {\n    var i = e.call(t, r || \"default\");\n    if (\"object\" != _typeof(i)) return i;\n    throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n  }\n  return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","function _typeof(o) {\n  \"@babel/helpers - typeof\";\n\n  return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n    return typeof o;\n  } : function (o) {\n    return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n  }, _typeof(o);\n}\nexport { _typeof as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n  if (r) {\n    if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n    var t = {}.toString.call(r).slice(8, -1);\n    return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n  }\n}\nexport { _unsupportedIterableToArray as default };","'use strict';\n\n/**\n * Create a bound version of a function with a specified `this` context\n *\n * @param {Function} fn - The function to bind\n * @param {*} thisArg - The value to be passed as the `this` parameter\n * @returns {Function} A new function that will call the original function with the specified `this` context\n */\nexport default function bind(fn, thisArg) {\n  return function wrap() {\n    return fn.apply(thisArg, arguments);\n  };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst { toString } = Object.prototype;\nconst { getPrototypeOf } = Object;\nconst { iterator, toStringTag } = Symbol;\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (\n  ({ hasOwnProperty }) =>\n  (obj, prop) =>\n    hasOwnProperty.call(obj, prop)\n)(Object.prototype);\n\n/**\n * Walk the prototype chain (excluding the shared Object.prototype) looking for\n * an own `prop`. This distinguishes genuine own/inherited members — including\n * class accessors and template prototypes — from members injected via\n * Object.prototype pollution (e.g. `Object.prototype.username = '...'`), which\n * live on Object.prototype itself and are therefore never matched.\n *\n * @param {*} thing The value whose chain to inspect\n * @param {string|symbol} prop The property key to look for\n *\n * @returns {boolean} True when `prop` is owned below Object.prototype\n */\nconst hasOwnInPrototypeChain = (thing, prop) => {\n  let obj = thing;\n  const seen = [];\n\n  while (obj != null && obj !== Object.prototype) {\n    if (seen.indexOf(obj) !== -1) {\n      return false;\n    }\n    seen.push(obj);\n\n    if (hasOwnProperty(obj, prop)) {\n      return true;\n    }\n    obj = getPrototypeOf(obj);\n  }\n  return false;\n};\n\n/**\n * Read `obj[prop]` only when it is safe from Object.prototype pollution. Own\n * properties and members inherited from a non-Object.prototype source (a class\n * instance or template object) are honored; a value reachable only through a\n * polluted Object.prototype is ignored and `undefined` is returned.\n *\n * @param {*} obj The source object\n * @param {string|symbol} prop The property key to read\n *\n * @returns {*} The resolved value, or undefined when unsafe/absent\n */\nconst getSafeProp = (obj, prop) =>\n  obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;\n\nconst kindOf = ((cache) => (thing) => {\n  const str = toString.call(thing);\n  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n  type = type.toLowerCase();\n  return (thing) => kindOf(thing) === type;\n};\n\nconst typeOfTest = (type) => (thing) => typeof thing === type;\n\n/**\n * Determine if a value is a non-null object\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst { isArray } = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n  return (\n    val !== null &&\n    !isUndefined(val) &&\n    val.constructor !== null &&\n    !isUndefined(val.constructor) &&\n    isFunction(val.constructor.isBuffer) &&\n    val.constructor.isBuffer(val)\n  );\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  let result;\n  if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = val && val.buffer && isArrayBuffer(val.buffer);\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = (thing) => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n  if (!isObject(val)) {\n    return false;\n  }\n\n  const prototype = getPrototypeOf(val);\n  return (\n    (prototype === null ||\n      prototype === Object.prototype ||\n      getPrototypeOf(prototype) === null) &&\n    // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or\n    // Symbol.iterator as evidence the value is a tagged/iterable type rather\n    // than a plain object, while ignoring keys injected onto Object.prototype.\n    !hasOwnInPrototypeChain(val, toStringTag) &&\n    !hasOwnInPrototypeChain(val, iterator)\n  );\n};\n\n/**\n * Determine if a value is an empty object (safely handles Buffers)\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an empty object, otherwise false\n */\nconst isEmptyObject = (val) => {\n  // Early return for non-objects or Buffers to prevent RangeError\n  if (!isObject(val) || isBuffer(val)) {\n    return false;\n  }\n\n  try {\n    return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;\n  } catch (e) {\n    // Fallback for any other objects that might cause RangeError with Object.keys()\n    return false;\n  }\n};\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a React Native Blob\n * React Native \"blob\": an object with a `uri` attribute. Optionally, it can\n * also have a `name` and `type` attribute to specify filename and content type\n *\n * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71\n *\n * @param {*} value The value to test\n *\n * @returns {boolean} True if value is a React Native Blob, otherwise false\n */\nconst isReactNativeBlob = (value) => {\n  return !!(value && typeof value.uri !== 'undefined');\n};\n\n/**\n * Determine if environment is React Native\n * ReactNative `FormData` has a non-standard `getParts()` method\n *\n * @param {*} formData The formData to test\n *\n * @returns {boolean} True if environment is React Native, otherwise false\n */\nconst isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a FileList, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction getGlobal() {\n  if (typeof globalThis !== 'undefined') return globalThis;\n  if (typeof self !== 'undefined') return self;\n  if (typeof window !== 'undefined') return window;\n  if (typeof global !== 'undefined') return global;\n  return {};\n}\n\nconst G = getGlobal();\nconst FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;\n\nconst isFormData = (thing) => {\n  if (!thing) return false;\n  if (FormDataCtor && thing instanceof FormDataCtor) return true;\n  // Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.\n  const proto = getPrototypeOf(thing);\n  if (!proto || proto === Object.prototype) return false;\n  if (!isFunction(thing.append)) return false;\n  const kind = kindOf(thing);\n  return (\n    kind === 'formdata' ||\n    // detect form-data instance\n    (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n  );\n};\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = [\n  'ReadableStream',\n  'Request',\n  'Response',\n  'Headers',\n].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => {\n  return str.trim ? str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n};\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array<unknown>} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Object} [options]\n * @param {Boolean} [options.allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, { allOwnKeys = false } = {}) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  let i;\n  let l;\n\n  // Force an array if not already something iterable\n  if (typeof obj !== 'object') {\n    /*eslint no-param-reassign:0*/\n    obj = [obj];\n  }\n\n  if (isArray(obj)) {\n    // Iterate over array values\n    for (i = 0, l = obj.length; i < l; i++) {\n      fn.call(null, obj[i], i, obj);\n    }\n  } else {\n    // Buffer check\n    if (isBuffer(obj)) {\n      return;\n    }\n\n    // Iterate over object keys\n    const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n    const len = keys.length;\n    let key;\n\n    for (i = 0; i < len; i++) {\n      key = keys[i];\n      fn.call(null, obj[key], key, obj);\n    }\n  }\n}\n\n/**\n * Finds a key in an object, case-insensitive, returning the actual key name.\n * Returns null if the object is a Buffer or if no match is found.\n *\n * @param {Object} obj - The object to search.\n * @param {string} key - The key to find (case-insensitive).\n * @returns {?string} The actual key name if found, otherwise null.\n */\nfunction findKey(obj, key) {\n  if (isBuffer(obj)) {\n    return null;\n  }\n\n  key = key.toLowerCase();\n  const keys = Object.keys(obj);\n  let i = keys.length;\n  let _key;\n  while (i-- > 0) {\n    _key = keys[i];\n    if (key === _key.toLowerCase()) {\n      return _key;\n    }\n  }\n  return null;\n}\n\nconst _global = (() => {\n  /*eslint no-undef:0*/\n  if (typeof globalThis !== 'undefined') return globalThis;\n  return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * const result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(...objs) {\n  const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};\n  const result = {};\n  const assignValue = (val, key) => {\n    // Skip dangerous property names to prevent prototype pollution\n    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n      return;\n    }\n\n    // findKey lowercases the key, so caseless lookup only applies to strings —\n    // symbol keys are identity-matched.\n    const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;\n    // Read via own-prop only — a bare `result[targetKey]` walks the prototype\n    // chain, so a polluted Object.prototype value could surface here and get\n    // copied into the merged result.\n    const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;\n    if (isPlainObject(existing) && isPlainObject(val)) {\n      result[targetKey] = merge(existing, val);\n    } else if (isPlainObject(val)) {\n      result[targetKey] = merge({}, val);\n    } else if (isArray(val)) {\n      result[targetKey] = val.slice();\n    } else if (!skipUndefined || !isUndefined(val)) {\n      result[targetKey] = val;\n    }\n  };\n\n  for (let i = 0, l = objs.length; i < l; i++) {\n    const source = objs[i];\n    if (!source || isBuffer(source)) {\n      continue;\n    }\n\n    forEach(source, assignValue);\n\n    if (typeof source !== 'object' || isArray(source)) {\n      continue;\n    }\n\n    const symbols = Object.getOwnPropertySymbols(source);\n    for (let j = 0; j < symbols.length; j++) {\n      const symbol = symbols[j];\n      if (propertyIsEnumerable.call(source, symbol)) {\n        assignValue(source[symbol], symbol);\n      }\n    }\n  }\n  return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Object} [options]\n * @param {Boolean} [options.allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, { allOwnKeys } = {}) => {\n  forEach(\n    b,\n    (val, key) => {\n      if (thisArg && isFunction(val)) {\n        Object.defineProperty(a, key, {\n          // Null-proto descriptor so a polluted Object.prototype.get cannot\n          // hijack defineProperty's accessor-vs-data resolution.\n          __proto__: null,\n          value: bind(val, thisArg),\n          writable: true,\n          enumerable: true,\n          configurable: true,\n        });\n      } else {\n        Object.defineProperty(a, key, {\n          __proto__: null,\n          value: val,\n          writable: true,\n          enumerable: true,\n          configurable: true,\n        });\n      }\n    },\n    { allOwnKeys }\n  );\n  return a;\n};\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n  if (content.charCodeAt(0) === 0xfeff) {\n    content = content.slice(1);\n  }\n  return content;\n};\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n  constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n  Object.defineProperty(constructor.prototype, 'constructor', {\n    __proto__: null,\n    value: constructor,\n    writable: true,\n    enumerable: false,\n    configurable: true,\n  });\n  Object.defineProperty(constructor, 'super', {\n    __proto__: null,\n    value: superConstructor.prototype,\n  });\n  props && Object.assign(constructor.prototype, props);\n};\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n  let props;\n  let i;\n  let prop;\n  const merged = {};\n\n  destObj = destObj || {};\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  if (sourceObj == null) return destObj;\n\n  do {\n    props = Object.getOwnPropertyNames(sourceObj);\n    i = props.length;\n    while (i-- > 0) {\n      prop = props[i];\n      if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n        destObj[prop] = sourceObj[prop];\n        merged[prop] = true;\n      }\n    }\n    sourceObj = filter !== false && getPrototypeOf(sourceObj);\n  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n  return destObj;\n};\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n  str = String(str);\n  if (position === undefined || position > str.length) {\n    position = str.length;\n  }\n  position -= searchString.length;\n  const lastIndex = str.indexOf(searchString, position);\n  return lastIndex !== -1 && lastIndex === position;\n};\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n  if (!thing) return null;\n  if (isArray(thing)) return thing;\n  let i = thing.length;\n  if (!isNumber(i)) return null;\n  const arr = new Array(i);\n  while (i-- > 0) {\n    arr[i] = thing[i];\n  }\n  return arr;\n};\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = ((TypedArray) => {\n  // eslint-disable-next-line func-names\n  return (thing) => {\n    return TypedArray && thing instanceof TypedArray;\n  };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n  const generator = obj && obj[iterator];\n\n  const _iterator = generator.call(obj);\n\n  let result;\n\n  while ((result = _iterator.next()) && !result.done) {\n    const pair = result.value;\n    fn.call(obj, pair[0], pair[1]);\n  }\n};\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n  let matches;\n  const arr = [];\n\n  while ((matches = regExp.exec(str)) !== null) {\n    arr.push(matches);\n  }\n\n  return arr;\n};\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = (str) => {\n  return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g, function replacer(m, p1, p2) {\n    return p1.toUpperCase() + p2;\n  });\n};\n\nconst { propertyIsEnumerable } = Object.prototype;\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n  const descriptors = Object.getOwnPropertyDescriptors(obj);\n  const reducedDescriptors = {};\n\n  forEach(descriptors, (descriptor, name) => {\n    let ret;\n    if ((ret = reducer(descriptor, name, obj)) !== false) {\n      reducedDescriptors[name] = ret || descriptor;\n    }\n  });\n\n  Object.defineProperties(obj, reducedDescriptors);\n};\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n  reduceDescriptors(obj, (descriptor, name) => {\n    // skip restricted props in strict mode\n    if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {\n      return false;\n    }\n\n    const value = obj[name];\n\n    if (!isFunction(value)) return;\n\n    descriptor.enumerable = false;\n\n    if ('writable' in descriptor) {\n      descriptor.writable = false;\n      return;\n    }\n\n    if (!descriptor.set) {\n      descriptor.set = () => {\n        throw Error(\"Can not rewrite read-only method '\" + name + \"'\");\n      };\n    }\n  });\n};\n\n/**\n * Converts an array or a delimited string into an object set with values as keys and true as values.\n * Useful for fast membership checks.\n *\n * @param {Array|string} arrayOrString - The array or string to convert.\n * @param {string} delimiter - The delimiter to use if input is a string.\n * @returns {Object} An object with keys from the array or string, values set to true.\n */\nconst toObjectSet = (arrayOrString, delimiter) => {\n  const obj = {};\n\n  const define = (arr) => {\n    arr.forEach((value) => {\n      obj[value] = true;\n    });\n  };\n\n  isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n  return obj;\n};\n\nconst noop = () => {};\n\nconst toFiniteNumber = (value, defaultValue) => {\n  return value != null && Number.isFinite((value = +value)) ? value : defaultValue;\n};\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n  return !!(\n    thing &&\n    isFunction(thing.append) &&\n    thing[toStringTag] === 'FormData' &&\n    thing[iterator]\n  );\n}\n\n/**\n * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.\n *\n * @param {Object} obj - The object to convert.\n * @returns {Object} The JSON-compatible object.\n */\nconst toJSONObject = (obj) => {\n  const visited = new WeakSet();\n\n  const visit = (source) => {\n    if (isObject(source)) {\n      if (visited.has(source)) {\n        return;\n      }\n\n      //Buffer check\n      if (isBuffer(source)) {\n        return source;\n      }\n\n      if (!('toJSON' in source)) {\n        // add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).\n        visited.add(source);\n        const target = isArray(source) ? [] : {};\n\n        forEach(source, (value, key) => {\n          const reducedValue = visit(value);\n          !isUndefined(reducedValue) && (target[key] = reducedValue);\n        });\n\n        visited.delete(source);\n\n        return target;\n      }\n    }\n\n    return source;\n  };\n\n  return visit(obj);\n};\n\n/**\n * Determines if a value is an async function.\n *\n * @param {*} thing - The value to test.\n * @returns {boolean} True if value is an async function, otherwise false.\n */\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\n/**\n * Determines if a value is thenable (has then and catch methods).\n *\n * @param {*} thing - The value to test.\n * @returns {boolean} True if value is thenable, otherwise false.\n */\nconst isThenable = (thing) =>\n  thing &&\n  (isObject(thing) || isFunction(thing)) &&\n  isFunction(thing.then) &&\n  isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\n/**\n * Provides a cross-platform setImmediate implementation.\n * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.\n *\n * @param {boolean} setImmediateSupported - Whether setImmediate is supported.\n * @param {boolean} postMessageSupported - Whether postMessage is supported.\n * @returns {Function} A function to schedule a callback asynchronously.\n */\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n  if (setImmediateSupported) {\n    return setImmediate;\n  }\n\n  return postMessageSupported\n    ? ((token, callbacks) => {\n        _global.addEventListener(\n          'message',\n          ({ source, data }) => {\n            if (source === _global && data === token) {\n              callbacks.length && callbacks.shift()();\n            }\n          },\n          false\n        );\n\n        return (cb) => {\n          callbacks.push(cb);\n          _global.postMessage(token, '*');\n        };\n      })(`axios@${Math.random()}`, [])\n    : (cb) => setTimeout(cb);\n})(typeof setImmediate === 'function', isFunction(_global.postMessage));\n\n/**\n * Schedules a microtask or asynchronous callback as soon as possible.\n * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.\n *\n * @type {Function}\n */\nconst asap =\n  typeof queueMicrotask !== 'undefined'\n    ? queueMicrotask.bind(_global)\n    : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;\n\n// *********************\n\nconst isIterable = (thing) => thing != null && isFunction(thing[iterator]);\n\n/**\n * Determine if a value is iterable via an iterator that is NOT sourced solely\n * from a polluted Object.prototype. Use this instead of `isIterable` whenever\n * the iterable comes from untrusted input (e.g. user-supplied header sources),\n * so `Object.prototype[Symbol.iterator] = ...` cannot turn an ordinary object\n * into an attacker-controlled entries iterator.\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value has a non-polluted iterator\n */\nconst isSafeIterable = (thing) =>\n  thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);\n\nexport default {\n  isArray,\n  isArrayBuffer,\n  isBuffer,\n  isFormData,\n  isArrayBufferView,\n  isString,\n  isNumber,\n  isBoolean,\n  isObject,\n  isPlainObject,\n  isEmptyObject,\n  isReadableStream,\n  isRequest,\n  isResponse,\n  isHeaders,\n  isUndefined,\n  isDate,\n  isFile,\n  isReactNativeBlob,\n  isReactNative,\n  isBlob,\n  isRegExp,\n  isFunction,\n  isStream,\n  isURLSearchParams,\n  isTypedArray,\n  isFileList,\n  forEach,\n  merge,\n  extend,\n  trim,\n  stripBOM,\n  inherits,\n  toFlatObject,\n  kindOf,\n  kindOfTest,\n  endsWith,\n  toArray,\n  forEachEntry,\n  matchAll,\n  isHTMLForm,\n  hasOwnProperty,\n  hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n  hasOwnInPrototypeChain,\n  getSafeProp,\n  reduceDescriptors,\n  freezeMethods,\n  toObjectSet,\n  toCamelCase,\n  noop,\n  toFiniteNumber,\n  findKey,\n  global: _global,\n  isContextDefined,\n  isSpecCompliantForm,\n  toJSONObject,\n  isAsyncFn,\n  isThenable,\n  setImmediate: _setImmediate,\n  asap,\n  isIterable,\n  isSafeIterable,\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n  'age',\n  'authorization',\n  'content-length',\n  'content-type',\n  'etag',\n  'expires',\n  'from',\n  'host',\n  'if-modified-since',\n  'if-unmodified-since',\n  'last-modified',\n  'location',\n  'max-forwards',\n  'proxy-authorization',\n  'referer',\n  'retry-after',\n  'user-agent',\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default (rawHeaders) => {\n  const parsed = {};\n  let key;\n  let val;\n  let i;\n\n  rawHeaders &&\n    rawHeaders.split('\\n').forEach(function parser(line) {\n      i = line.indexOf(':');\n      key = line.substring(0, i).trim().toLowerCase();\n      val = line.substring(i + 1).trim();\n\n      if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n        return;\n      }\n\n      if (key === 'set-cookie') {\n        if (parsed[key]) {\n          parsed[key].push(val);\n        } else {\n          parsed[key] = [val];\n        }\n      } else {\n        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n      }\n    });\n\n  return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\nfunction trimSPorHTAB(str) {\n  let start = 0;\n  let end = str.length;\n\n  while (start < end) {\n    const code = str.charCodeAt(start);\n\n    if (code !== 0x09 && code !== 0x20) {\n      break;\n    }\n\n    start += 1;\n  }\n\n  while (end > start) {\n    const code = str.charCodeAt(end - 1);\n\n    if (code !== 0x09 && code !== 0x20) {\n      break;\n    }\n\n    end -= 1;\n  }\n\n  return start === 0 && end === str.length ? str : str.slice(start, end);\n}\n\n// The control-code ranges are intentional: header sanitization strips C0/DEL bytes.\n// eslint-disable-next-line no-control-regex\nconst INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp('[\\\\u0000-\\\\u0008\\\\u000a-\\\\u001f\\\\u007f]+', 'g');\n// eslint-disable-next-line no-control-regex\nconst INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp('[^\\\\u0009\\\\u0020-\\\\u007e\\\\u0080-\\\\u00ff]+', 'g');\n\nfunction sanitizeValue(value, invalidChars) {\n  if (utils.isArray(value)) {\n    return value.map((item) => sanitizeValue(item, invalidChars));\n  }\n\n  return trimSPorHTAB(String(value).replace(invalidChars, ''));\n}\n\nexport const sanitizeHeaderValue = (value) =>\n  sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);\n\nexport const sanitizeByteStringHeaderValue = (value) =>\n  sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);\n\nexport function toByteStringHeaderObject(headers) {\n  const byteStringHeaders = Object.create(null);\n\n  utils.forEach(headers.toJSON(), (value, header) => {\n    byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);\n  });\n\n  return byteStringHeaders;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\nimport { sanitizeHeaderValue } from '../helpers/sanitizeHeaderValue.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n  return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value == null) {\n    return value;\n  }\n\n  return utils.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));\n}\n\nfunction parseTokens(str) {\n  const tokens = Object.create(null);\n  const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n  let match;\n\n  while ((match = tokensRE.exec(str))) {\n    tokens[match[1]] = match[2];\n  }\n\n  return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n  if (utils.isFunction(filter)) {\n    return filter.call(this, value, header);\n  }\n\n  if (isHeaderNameFilter) {\n    value = header;\n  }\n\n  if (!utils.isString(value)) return;\n\n  if (utils.isString(filter)) {\n    return value.indexOf(filter) !== -1;\n  }\n\n  if (utils.isRegExp(filter)) {\n    return filter.test(value);\n  }\n}\n\nfunction formatHeader(header) {\n  return header\n    .trim()\n    .toLowerCase()\n    .replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n      return char.toUpperCase() + str;\n    });\n}\n\nfunction buildAccessors(obj, header) {\n  const accessorName = utils.toCamelCase(' ' + header);\n\n  ['get', 'set', 'has'].forEach((methodName) => {\n    Object.defineProperty(obj, methodName + accessorName, {\n      // Null-proto descriptor so a polluted Object.prototype.get cannot turn\n      // this data descriptor into an accessor descriptor on the way in.\n      __proto__: null,\n      value: function (arg1, arg2, arg3) {\n        return this[methodName].call(this, header, arg1, arg2, arg3);\n      },\n      configurable: true,\n    });\n  });\n}\n\nclass AxiosHeaders {\n  constructor(headers) {\n    headers && this.set(headers);\n  }\n\n  set(header, valueOrRewrite, rewrite) {\n    const self = this;\n\n    function setHeader(_value, _header, _rewrite) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!lHeader) {\n        return;\n      }\n\n      const key = utils.findKey(self, lHeader);\n\n      if (\n        !key ||\n        self[key] === undefined ||\n        _rewrite === true ||\n        (_rewrite === undefined && self[key] !== false)\n      ) {\n        self[key || _header] = normalizeValue(_value);\n      }\n    }\n\n    const setHeaders = (headers, _rewrite) =>\n      utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n    if (utils.isPlainObject(header) || header instanceof this.constructor) {\n      setHeaders(header, valueOrRewrite);\n    } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n      setHeaders(parseHeaders(header), valueOrRewrite);\n    } else if (utils.isObject(header) && utils.isSafeIterable(header)) {\n      let obj = Object.create(null),\n        dest,\n        key;\n      for (const entry of header) {\n        if (!utils.isArray(entry)) {\n          throw new TypeError('Object iterator must return a key-value pair');\n        }\n\n        key = entry[0];\n\n        if (utils.hasOwnProp(obj, key)) {\n          dest = obj[key];\n          obj[key] = utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];\n        } else {\n          obj[key] = entry[1];\n        }\n      }\n\n      setHeaders(obj, valueOrRewrite);\n    } else {\n      header != null && setHeader(valueOrRewrite, header, rewrite);\n    }\n\n    return this;\n  }\n\n  get(header, parser) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      if (key) {\n        const value = this[key];\n\n        if (!parser) {\n          return value;\n        }\n\n        if (parser === true) {\n          return parseTokens(value);\n        }\n\n        if (utils.isFunction(parser)) {\n          return parser.call(this, value, key);\n        }\n\n        if (utils.isRegExp(parser)) {\n          return parser.exec(value);\n        }\n\n        throw new TypeError('parser must be boolean|regexp|function');\n      }\n    }\n  }\n\n  has(header, matcher) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = utils.findKey(this, header);\n\n      return !!(\n        key &&\n        this[key] !== undefined &&\n        (!matcher || matchHeaderValue(this, this[key], key, matcher))\n      );\n    }\n\n    return false;\n  }\n\n  delete(header, matcher) {\n    const self = this;\n    let deleted = false;\n\n    function deleteHeader(_header) {\n      _header = normalizeHeader(_header);\n\n      if (_header) {\n        const key = utils.findKey(self, _header);\n\n        if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n          delete self[key];\n\n          deleted = true;\n        }\n      }\n    }\n\n    if (utils.isArray(header)) {\n      header.forEach(deleteHeader);\n    } else {\n      deleteHeader(header);\n    }\n\n    return deleted;\n  }\n\n  clear(matcher) {\n    const keys = Object.keys(this);\n    let i = keys.length;\n    let deleted = false;\n\n    while (i--) {\n      const key = keys[i];\n      if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n        delete this[key];\n        deleted = true;\n      }\n    }\n\n    return deleted;\n  }\n\n  normalize(format) {\n    const self = this;\n    const headers = {};\n\n    utils.forEach(this, (value, header) => {\n      const key = utils.findKey(headers, header);\n\n      if (key) {\n        self[key] = normalizeValue(value);\n        delete self[header];\n        return;\n      }\n\n      const normalized = format ? formatHeader(header) : String(header).trim();\n\n      if (normalized !== header) {\n        delete self[header];\n      }\n\n      self[normalized] = normalizeValue(value);\n\n      headers[normalized] = true;\n    });\n\n    return this;\n  }\n\n  concat(...targets) {\n    return this.constructor.concat(this, ...targets);\n  }\n\n  toJSON(asStrings) {\n    const obj = Object.create(null);\n\n    utils.forEach(this, (value, header) => {\n      value != null &&\n        value !== false &&\n        (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n    });\n\n    return obj;\n  }\n\n  [Symbol.iterator]() {\n    return Object.entries(this.toJSON())[Symbol.iterator]();\n  }\n\n  toString() {\n    return Object.entries(this.toJSON())\n      .map(([header, value]) => header + ': ' + value)\n      .join('\\n');\n  }\n\n  getSetCookie() {\n    return this.get('set-cookie') || [];\n  }\n\n  get [Symbol.toStringTag]() {\n    return 'AxiosHeaders';\n  }\n\n  static from(thing) {\n    return thing instanceof this ? thing : new this(thing);\n  }\n\n  static concat(first, ...targets) {\n    const computed = new this(first);\n\n    targets.forEach((target) => computed.set(target));\n\n    return computed;\n  }\n\n  static accessor(header) {\n    const internals =\n      (this[$internals] =\n      this[$internals] =\n        {\n          accessors: {},\n        });\n\n    const accessors = internals.accessors;\n    const prototype = this.prototype;\n\n    function defineAccessor(_header) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!accessors[lHeader]) {\n        buildAccessors(prototype, _header);\n        accessors[lHeader] = true;\n      }\n    }\n\n    utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n    return this;\n  }\n}\n\nAxiosHeaders.accessor([\n  'Content-Type',\n  'Content-Length',\n  'Accept',\n  'Accept-Encoding',\n  'User-Agent',\n  'Authorization',\n]);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {\n  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n  return {\n    get: () => value,\n    set(headerValue) {\n      this[mapped] = headerValue;\n    },\n  };\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst REDACTED = '[REDACTED ****]';\n\nfunction hasOwnOrPrototypeToJSON(source) {\n  if (utils.hasOwnProp(source, 'toJSON')) {\n    return true;\n  }\n\n  let prototype = Object.getPrototypeOf(source);\n\n  while (prototype && prototype !== Object.prototype) {\n    if (utils.hasOwnProp(prototype, 'toJSON')) {\n      return true;\n    }\n\n    prototype = Object.getPrototypeOf(prototype);\n  }\n\n  return false;\n}\n\n// Build a plain-object snapshot of `config` and replace the value of any key\n// (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays\n// and AxiosHeaders, and short-circuits on circular references.\nfunction redactConfig(config, redactKeys) {\n  const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));\n  const seen = [];\n\n  const visit = (source) => {\n    if (source === null || typeof source !== 'object') return source;\n    if (utils.isBuffer(source)) return source;\n    if (seen.indexOf(source) !== -1) return undefined;\n\n    if (source instanceof AxiosHeaders) {\n      source = source.toJSON();\n    }\n\n    seen.push(source);\n\n    let result;\n    if (utils.isArray(source)) {\n      result = [];\n      source.forEach((v, i) => {\n        const reducedValue = visit(v);\n        if (!utils.isUndefined(reducedValue)) {\n          result[i] = reducedValue;\n        }\n      });\n    } else {\n      if (!utils.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {\n        seen.pop();\n        return source;\n      }\n\n      result = Object.create(null);\n      for (const [key, value] of Object.entries(source)) {\n        const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);\n        if (!utils.isUndefined(reducedValue)) {\n          result[key] = reducedValue;\n        }\n      }\n    }\n\n    seen.pop();\n    return result;\n  };\n\n  return visit(config);\n}\n\nclass AxiosError extends Error {\n  static from(error, code, config, request, response, customProps) {\n    const axiosError = new AxiosError(error.message, code || error.code, config, request, response);\n    axiosError.cause = error;\n    axiosError.name = error.name;\n\n    // Preserve status from the original error if not already set from response\n    if (error.status != null && axiosError.status == null) {\n      axiosError.status = error.status;\n    }\n\n    customProps && Object.assign(axiosError, customProps);\n    return axiosError;\n  }\n\n  /**\n   * Create an Error with the specified message, config, error code, request and response.\n   *\n   * @param {string} message The error message.\n   * @param {string} [code] The error code (for example, 'ECONNABORTED').\n   * @param {Object} [config] The config.\n   * @param {Object} [request] The request.\n   * @param {Object} [response] The response.\n   *\n   * @returns {Error} The created error.\n   */\n  constructor(message, code, config, request, response) {\n    super(message);\n\n    // Make message enumerable to maintain backward compatibility\n    // The native Error constructor sets message as non-enumerable,\n    // but axios < v1.13.3 had it as enumerable\n    Object.defineProperty(this, 'message', {\n      // Null-proto descriptor so a polluted Object.prototype.get cannot turn\n      // this data descriptor into an accessor descriptor on the way in.\n      __proto__: null,\n      value: message,\n      enumerable: true,\n      writable: true,\n      configurable: true,\n    });\n\n    this.name = 'AxiosError';\n    this.isAxiosError = true;\n    code && (this.code = code);\n    config && (this.config = config);\n    request && (this.request = request);\n    if (response) {\n      this.response = response;\n      this.status = response.status;\n    }\n  }\n\n  toJSON() {\n    // Opt-in redaction: when the request config carries a `redact` array, the\n    // value of any matching key (case-insensitive, at any depth) is replaced\n    // with REDACTED in the serialized snapshot. Undefined or empty leaves the\n    // existing serialization behavior unchanged.\n    const config = this.config;\n    const redactKeys = config && utils.hasOwnProp(config, 'redact') ? config.redact : undefined;\n    const serializedConfig =\n      utils.isArray(redactKeys) && redactKeys.length > 0\n        ? redactConfig(config, redactKeys)\n        : utils.toJSONObject(config);\n\n    return {\n      // Standard\n      message: this.message,\n      name: this.name,\n      // Microsoft\n      description: this.description,\n      number: this.number,\n      // Mozilla\n      fileName: this.fileName,\n      lineNumber: this.lineNumber,\n      columnNumber: this.columnNumber,\n      stack: this.stack,\n      // Axios\n      config: serializedConfig,\n      code: this.code,\n      status: this.status,\n    };\n  }\n}\n\n// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.\nAxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';\nAxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';\nAxiosError.ECONNABORTED = 'ECONNABORTED';\nAxiosError.ETIMEDOUT = 'ETIMEDOUT';\nAxiosError.ECONNREFUSED = 'ECONNREFUSED';\nAxiosError.ERR_NETWORK = 'ERR_NETWORK';\nAxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';\nAxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';\nAxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';\nAxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';\nAxiosError.ERR_CANCELED = 'ERR_CANCELED';\nAxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';\nAxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';\nAxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n// Default nesting limit shared with the inverse transform (formDataToJSON) so\n// the FormData <-> JSON round-trip stays symmetric.\nexport const DEFAULT_FORM_DATA_MAX_DEPTH = 100;\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n  return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n  return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n  if (!path) return key;\n  return path\n    .concat(key)\n    .map(function each(token, i) {\n      // eslint-disable-next-line no-param-reassign\n      token = removeBrackets(token);\n      return !dots && i ? '[' + token + ']' : token;\n    })\n    .join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n  return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n  return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n  if (!utils.isObject(obj)) {\n    throw new TypeError('target must be an object');\n  }\n\n  // eslint-disable-next-line no-param-reassign\n  formData = formData || new (PlatformFormData || FormData)();\n\n  // eslint-disable-next-line no-param-reassign\n  options = utils.toFlatObject(\n    options,\n    {\n      metaTokens: true,\n      dots: false,\n      indexes: false,\n    },\n    false,\n    function defined(option, source) {\n      // eslint-disable-next-line no-eq-null,eqeqeq\n      return !utils.isUndefined(source[option]);\n    }\n  );\n\n  const metaTokens = options.metaTokens;\n  // eslint-disable-next-line no-use-before-define\n  const visitor = options.visitor || defaultVisitor;\n  const dots = options.dots;\n  const indexes = options.indexes;\n  const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);\n  const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;\n  const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n  const stack = [];\n\n  if (!utils.isFunction(visitor)) {\n    throw new TypeError('visitor must be a function');\n  }\n\n  function convertValue(value) {\n    if (value === null) return '';\n\n    if (utils.isDate(value)) {\n      return value.toISOString();\n    }\n\n    if (utils.isBoolean(value)) {\n      return value.toString();\n    }\n\n    if (!useBlob && utils.isBlob(value)) {\n      throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n    }\n\n    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n      return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n    }\n\n    return value;\n  }\n\n  function throwIfMaxDepthExceeded(depth) {\n    if (depth > maxDepth) {\n      throw new AxiosError(\n        'Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth,\n        AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED\n      );\n    }\n  }\n\n  function stringifyWithDepthLimit(value, depth) {\n    if (maxDepth === Infinity) {\n      return JSON.stringify(value);\n    }\n\n    const ancestors = [];\n\n    return JSON.stringify(value, function limitDepth(_key, currentValue) {\n      if (!utils.isObject(currentValue)) {\n        return currentValue;\n      }\n\n      while (ancestors.length && ancestors[ancestors.length - 1] !== this) {\n        ancestors.pop();\n      }\n\n      ancestors.push(currentValue);\n      throwIfMaxDepthExceeded(depth + ancestors.length - 1);\n\n      return currentValue;\n    });\n  }\n\n  /**\n   * Default visitor.\n   *\n   * @param {*} value\n   * @param {String|Number} key\n   * @param {Array<String|Number>} path\n   * @this {FormData}\n   *\n   * @returns {boolean} return true to visit the each prop of the value recursively\n   */\n  function defaultVisitor(value, key, path) {\n    let arr = value;\n\n    if (utils.isReactNative(formData) && utils.isReactNativeBlob(value)) {\n      formData.append(renderKey(path, key, dots), convertValue(value));\n      return false;\n    }\n\n    if (value && !path && typeof value === 'object') {\n      if (utils.endsWith(key, '{}')) {\n        // eslint-disable-next-line no-param-reassign\n        key = metaTokens ? key : key.slice(0, -2);\n        // eslint-disable-next-line no-param-reassign\n        value = stringifyWithDepthLimit(value, 1);\n      } else if (\n        (utils.isArray(value) && isFlatArray(value)) ||\n        ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)))\n      ) {\n        // eslint-disable-next-line no-param-reassign\n        key = removeBrackets(key);\n\n        arr.forEach(function each(el, index) {\n          !(utils.isUndefined(el) || el === null) &&\n            formData.append(\n              // eslint-disable-next-line no-nested-ternary\n              indexes === true\n                ? renderKey([key], index, dots)\n                : indexes === null\n                  ? key\n                  : key + '[]',\n              convertValue(el)\n            );\n        });\n        return false;\n      }\n    }\n\n    if (isVisitable(value)) {\n      return true;\n    }\n\n    formData.append(renderKey(path, key, dots), convertValue(value));\n\n    return false;\n  }\n\n  const exposedHelpers = Object.assign(predicates, {\n    defaultVisitor,\n    convertValue,\n    isVisitable,\n  });\n\n  function build(value, path, depth = 0) {\n    if (utils.isUndefined(value)) return;\n\n    throwIfMaxDepthExceeded(depth);\n\n    if (stack.indexOf(value) !== -1) {\n      throw new Error('Circular reference detected in ' + path.join('.'));\n    }\n\n    stack.push(value);\n\n    utils.forEach(value, function each(el, key) {\n      const result =\n        !(utils.isUndefined(el) || el === null) &&\n        visitor.call(formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers);\n\n      if (result === true) {\n        build(el, path ? path.concat(key) : [key], depth + 1);\n      }\n    });\n\n    stack.pop();\n  }\n\n  if (!utils.isObject(obj)) {\n    throw new TypeError('data must be an object');\n  }\n\n  build(obj);\n\n  return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n  const charMap = {\n    '!': '%21',\n    \"'\": '%27',\n    '(': '%28',\n    ')': '%29',\n    '~': '%7E',\n    '%20': '+',\n  };\n  return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {\n    return charMap[match];\n  });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n  this._pairs = [];\n\n  params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n  this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n  const _encode = encoder\n    ? function (value) {\n        return encoder.call(this, value, encode);\n      }\n    : encode;\n\n  return this._pairs\n    .map(function each(pair) {\n      return _encode(pair[0]) + '=' + _encode(pair[1]);\n    }, '')\n    .join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from './AxiosURLSearchParams.js';\n\n/**\n * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with\n * their plain counterparts (`:`, `$`, `,`, `+`).\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nexport function encode(val) {\n  return encodeURIComponent(val)\n    .replace(/%3A/gi, ':')\n    .replace(/%24/g, '$')\n    .replace(/%2C/gi, ',')\n    .replace(/%20/g, '+');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n  if (!params) {\n    return url;\n  }\n\n  const _options = utils.isFunction(options)\n    ? {\n        serialize: options,\n      }\n    : options;\n\n  // Read serializer options pollution-safely: own properties and methods on a\n  // class/template prototype are honored, but values injected onto a polluted\n  // Object.prototype are ignored.\n  const _encode = utils.getSafeProp(_options, 'encode') || encode;\n  const serializeFn = utils.getSafeProp(_options, 'serialize');\n\n  let serializedParams;\n\n  if (serializeFn) {\n    serializedParams = serializeFn(params, _options);\n  } else {\n    serializedParams = utils.isURLSearchParams(params)\n      ? params.toString()\n      : new AxiosURLSearchParams(params, _options).toString(_encode);\n  }\n\n  if (serializedParams) {\n    const hashmarkIndex = url.indexOf('#');\n\n    if (hashmarkIndex !== -1) {\n      url = url.slice(0, hashmarkIndex);\n    }\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\nclass InterceptorManager {\n  constructor() {\n    this.handlers = [];\n  }\n\n  /**\n   * Add a new interceptor to the stack\n   *\n   * @param {Function} fulfilled The function to handle `then` for a `Promise`\n   * @param {Function} rejected The function to handle `reject` for a `Promise`\n   * @param {Object} options The options for the interceptor, synchronous and runWhen\n   *\n   * @return {Number} An ID used to remove interceptor later\n   */\n  use(fulfilled, rejected, options) {\n    this.handlers.push({\n      fulfilled,\n      rejected,\n      synchronous: options ? options.synchronous : false,\n      runWhen: options ? options.runWhen : null,\n    });\n    return this.handlers.length - 1;\n  }\n\n  /**\n   * Remove an interceptor from the stack\n   *\n   * @param {Number} id The ID that was returned by `use`\n   *\n   * @returns {void}\n   */\n  eject(id) {\n    if (this.handlers[id]) {\n      this.handlers[id] = null;\n    }\n  }\n\n  /**\n   * Clear all interceptors from the stack\n   *\n   * @returns {void}\n   */\n  clear() {\n    if (this.handlers) {\n      this.handlers = [];\n    }\n  }\n\n  /**\n   * Iterate over all the registered interceptors\n   *\n   * This method is particularly useful for skipping over any\n   * interceptors that may have become `null` calling `eject`.\n   *\n   * @param {Function} fn The function to call for each interceptor\n   *\n   * @returns {void}\n   */\n  forEach(fn) {\n    utils.forEach(this.handlers, function forEachHandler(h) {\n      if (h !== null) {\n        fn(h);\n      }\n    });\n  }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n  silentJSONParsing: true,\n  forcedJSONParsing: true,\n  clarifyTimeoutError: false,\n  legacyInterceptorReqResOrdering: true,\n  advertiseZstdAcceptEncoding: false,\n  validateStatusUndefinedResolves: true,\n};\n","import URLSearchParams from './classes/URLSearchParams.js';\nimport FormData from './classes/FormData.js';\nimport Blob from './classes/Blob.js';\n\nexport default {\n  isBrowser: true,\n  classes: {\n    URLSearchParams,\n    FormData,\n    Blob,\n  },\n  protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict';\n\nexport default typeof Blob !== 'undefined' ? Blob : null;\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = (typeof navigator === 'object' && navigator) || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n *  typeof window -> undefined\n *  typeof document -> undefined\n *\n * react-native:\n *  navigator.product -> 'ReactNative'\n * nativescript\n *  navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv =\n  hasBrowserEnv &&\n  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n  return (\n    typeof WorkerGlobalScope !== 'undefined' &&\n    // eslint-disable-next-line no-undef\n    self instanceof WorkerGlobalScope &&\n    typeof self.importScripts === 'function'\n  );\n})();\n\nconst origin = (hasBrowserEnv && window.location.href) || 'http://localhost';\n\nexport {\n  hasBrowserEnv,\n  hasStandardBrowserWebWorkerEnv,\n  hasStandardBrowserEnv,\n  _navigator as navigator,\n  origin,\n};\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n  ...utils,\n  ...platform,\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport { DEFAULT_FORM_DATA_MAX_DEPTH } from './toFormData.js';\n\nconst MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;\n\nfunction throwIfDepthExceeded(index) {\n  if (index > MAX_DEPTH) {\n    throw new AxiosError(\n      'FormData field is too deeply nested (' + index + ' levels). Max depth: ' + MAX_DEPTH,\n      AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED\n    );\n  }\n}\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n  // foo[x][y][z]\n  // foo.x.y.z\n  // foo-x-y-z\n  // foo x y z\n  const path = [];\n  const pattern = /\\w+|\\[(\\w*)]/g;\n  let match;\n\n  while ((match = pattern.exec(name)) !== null) {\n    throwIfDepthExceeded(path.length);\n    path.push(match[0] === '[]' ? '' : match[1] || match[0]);\n  }\n\n  return path;\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n  const obj = {};\n  const keys = Object.keys(arr);\n  let i;\n  const len = keys.length;\n  let key;\n  for (i = 0; i < len; i++) {\n    key = keys[i];\n    obj[key] = arr[key];\n  }\n  return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n  function buildPath(path, value, target, index) {\n    throwIfDepthExceeded(index);\n\n    let name = path[index++];\n\n    if (name === '__proto__') return true;\n\n    const isNumericKey = Number.isFinite(+name);\n    const isLast = index >= path.length;\n    name = !name && utils.isArray(target) ? target.length : name;\n\n    if (isLast) {\n      if (utils.hasOwnProp(target, name)) {\n        target[name] = utils.isArray(target[name])\n          ? target[name].concat(value)\n          : [target[name], value];\n      } else {\n        target[name] = value;\n      }\n\n      return !isNumericKey;\n    }\n\n    if (!utils.hasOwnProp(target, name) || !utils.isObject(target[name])) {\n      target[name] = [];\n    }\n\n    const result = buildPath(path, value, target[name], index);\n\n    if (result && utils.isArray(target[name])) {\n      target[name] = arrayToObject(target[name]);\n    }\n\n    return !isNumericKey;\n  }\n\n  if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n    const obj = {};\n\n    utils.forEachEntry(formData, (name, value) => {\n      buildPath(parsePropPath(name), value, obj, 0);\n    });\n\n    return obj;\n  }\n\n  return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\nconst own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ? obj[key] : undefined);\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n  if (utils.isString(rawValue)) {\n    try {\n      (parser || JSON.parse)(rawValue);\n      return utils.trim(rawValue);\n    } catch (e) {\n      if (e.name !== 'SyntaxError') {\n        throw e;\n      }\n    }\n  }\n\n  return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n  transitional: transitionalDefaults,\n\n  adapter: ['xhr', 'http', 'fetch'],\n\n  transformRequest: [\n    function transformRequest(data, headers) {\n      const contentType = headers.getContentType() || '';\n      const hasJSONContentType = contentType.indexOf('application/json') > -1;\n      const isObjectPayload = utils.isObject(data);\n\n      if (isObjectPayload && utils.isHTMLForm(data)) {\n        data = new FormData(data);\n      }\n\n      const isFormData = utils.isFormData(data);\n\n      if (isFormData) {\n        return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n      }\n\n      if (\n        utils.isArrayBuffer(data) ||\n        utils.isBuffer(data) ||\n        utils.isStream(data) ||\n        utils.isFile(data) ||\n        utils.isBlob(data) ||\n        utils.isReadableStream(data)\n      ) {\n        return data;\n      }\n      if (utils.isArrayBufferView(data)) {\n        return data.buffer;\n      }\n      if (utils.isURLSearchParams(data)) {\n        headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n        return data.toString();\n      }\n\n      let isFileList;\n\n      if (isObjectPayload) {\n        const formSerializer = own(this, 'formSerializer');\n        if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n          return toURLEncodedForm(data, formSerializer).toString();\n        }\n\n        if (\n          (isFileList = utils.isFileList(data)) ||\n          contentType.indexOf('multipart/form-data') > -1\n        ) {\n          const env = own(this, 'env');\n          const _FormData = env && env.FormData;\n\n          return toFormData(\n            isFileList ? { 'files[]': data } : data,\n            _FormData && new _FormData(),\n            formSerializer\n          );\n        }\n      }\n\n      if (isObjectPayload || hasJSONContentType) {\n        headers.setContentType('application/json', false);\n        return stringifySafely(data);\n      }\n\n      return data;\n    },\n  ],\n\n  transformResponse: [\n    function transformResponse(data) {\n      const transitional = own(this, 'transitional') || defaults.transitional;\n      const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n      const responseType = own(this, 'responseType');\n      const JSONRequested = responseType === 'json';\n\n      if (utils.isResponse(data) || utils.isReadableStream(data)) {\n        return data;\n      }\n\n      if (\n        data &&\n        utils.isString(data) &&\n        ((forcedJSONParsing && !responseType) || JSONRequested)\n      ) {\n        const silentJSONParsing = transitional && transitional.silentJSONParsing;\n        const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n        try {\n          return JSON.parse(data, own(this, 'parseReviver'));\n        } catch (e) {\n          if (strictJSONParsing) {\n            if (e.name === 'SyntaxError') {\n              throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, 'response'));\n            }\n            throw e;\n          }\n        }\n      }\n\n      return data;\n    },\n  ],\n\n  /**\n   * A timeout in milliseconds to abort a request. If set to 0 (default) a\n   * timeout is not created.\n   */\n  timeout: 0,\n\n  xsrfCookieName: 'XSRF-TOKEN',\n  xsrfHeaderName: 'X-XSRF-TOKEN',\n\n  maxContentLength: -1,\n  maxBodyLength: -1,\n\n  env: {\n    FormData: platform.classes.FormData,\n    Blob: platform.classes.Blob,\n  },\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  },\n\n  headers: {\n    common: {\n      Accept: 'application/json, text/plain, */*',\n      'Content-Type': undefined,\n    },\n  },\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {\n  defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n  return toFormData(data, new platform.classes.URLSearchParams(), {\n    visitor: function (value, key, path, helpers) {\n      if (platform.isNode && utils.isBuffer(value)) {\n        this.append(key, value.toString('base64'));\n        return false;\n      }\n\n      return helpers.defaultVisitor.apply(this, arguments);\n    },\n    ...options,\n  });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n  const config = this || defaults;\n  const context = response || config;\n  const headers = AxiosHeaders.from(context.headers);\n  let data = context.data;\n\n  utils.forEach(fns, function transform(fn) {\n    data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n  });\n\n  headers.normalize();\n\n  return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n  return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\n\nclass CanceledError extends AxiosError {\n  /**\n   * A `CanceledError` is an object that is thrown when an operation is canceled.\n   *\n   * @param {string=} message The message.\n   * @param {Object=} config The config.\n   * @param {Object=} request The request.\n   *\n   * @returns {CanceledError} The created error.\n   */\n  constructor(message, config, request) {\n    super(message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n    this.name = 'CanceledError';\n    this.__CANCEL__ = true;\n  }\n}\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n  const validateStatus = response.config.validateStatus;\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(new AxiosError(\n      'Request failed with status code ' + response.status,\n      response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE,\n      response.config,\n      response.request,\n      response\n    ));\n  }\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n  samplesCount = samplesCount || 10;\n  const bytes = new Array(samplesCount);\n  const timestamps = new Array(samplesCount);\n  let head = 0;\n  let tail = 0;\n  let firstSampleTS;\n\n  min = min !== undefined ? min : 1000;\n\n  return function push(chunkLength) {\n    const now = Date.now();\n\n    const startedAt = timestamps[tail];\n\n    if (!firstSampleTS) {\n      firstSampleTS = now;\n    }\n\n    bytes[head] = chunkLength;\n    timestamps[head] = now;\n\n    let i = tail;\n    let bytesCount = 0;\n\n    while (i !== head) {\n      bytesCount += bytes[i++];\n      i = i % samplesCount;\n    }\n\n    head = (head + 1) % samplesCount;\n\n    if (head === tail) {\n      tail = (tail + 1) % samplesCount;\n    }\n\n    if (now - firstSampleTS < min) {\n      return;\n    }\n\n    const passed = startedAt && now - startedAt;\n\n    return passed ? Math.round((bytesCount * 1000) / passed) : undefined;\n  };\n}\n\nexport default speedometer;\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n  let timestamp = 0;\n  let threshold = 1000 / freq;\n  let lastArgs;\n  let timer;\n\n  const invoke = (args, now = Date.now()) => {\n    timestamp = now;\n    lastArgs = null;\n    if (timer) {\n      clearTimeout(timer);\n      timer = null;\n    }\n    fn(...args);\n  };\n\n  const throttled = (...args) => {\n    const now = Date.now();\n    const passed = now - timestamp;\n    if (passed >= threshold) {\n      invoke(args, now);\n    } else {\n      lastArgs = args;\n      if (!timer) {\n        timer = setTimeout(() => {\n          timer = null;\n          invoke(lastArgs);\n        }, threshold - passed);\n      }\n    }\n  };\n\n  const flush = () => lastArgs && invoke(lastArgs);\n\n  return [throttled, flush];\n}\n\nexport default throttle;\n","import speedometer from './speedometer.js';\nimport throttle from './throttle.js';\nimport utils from '../utils.js';\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n  let bytesNotified = 0;\n  const _speedometer = speedometer(50, 250);\n\n  return throttle((e) => {\n    if (!e || typeof e.loaded !== 'number') {\n      return;\n    }\n    const rawLoaded = e.loaded;\n    const total = e.lengthComputable ? e.total : undefined;\n    const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;\n    const progressBytes = Math.max(0, loaded - bytesNotified);\n    const rate = _speedometer(progressBytes);\n\n    bytesNotified = Math.max(bytesNotified, loaded);\n\n    const data = {\n      loaded,\n      total,\n      progress: total ? loaded / total : undefined,\n      bytes: progressBytes,\n      rate: rate ? rate : undefined,\n      estimated: rate && total ? (total - loaded) / rate : undefined,\n      event: e,\n      lengthComputable: total != null,\n      [isDownloadStream ? 'download' : 'upload']: true,\n    };\n\n    listener(data);\n  }, freq);\n};\n\nexport const progressEventDecorator = (total, throttled) => {\n  const lengthComputable = total != null;\n\n  return [\n    (loaded) =>\n      throttled[0]({\n        lengthComputable,\n        total,\n        loaded,\n      }),\n    throttled[1],\n  ];\n};\n\nexport const asyncDecorator =\n  (fn) =>\n  (...args) =>\n    utils.asap(() => fn(...args));\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n  ? ((origin, isMSIE) => (url) => {\n      url = new URL(url, platform.origin);\n\n      return (\n        origin.protocol === url.protocol &&\n        origin.host === url.host &&\n        (isMSIE || origin.port === url.port)\n      );\n    })(\n      new URL(platform.origin),\n      platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n    )\n  : () => true;\n","import utils from '../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n  ? // Standard browser envs support document.cookie\n    {\n      write(name, value, expires, path, domain, secure, sameSite) {\n        if (typeof document === 'undefined') return;\n\n        const cookie = [`${name}=${encodeURIComponent(value)}`];\n\n        if (utils.isNumber(expires)) {\n          cookie.push(`expires=${new Date(expires).toUTCString()}`);\n        }\n        if (utils.isString(path)) {\n          cookie.push(`path=${path}`);\n        }\n        if (utils.isString(domain)) {\n          cookie.push(`domain=${domain}`);\n        }\n        if (secure === true) {\n          cookie.push('secure');\n        }\n        if (utils.isString(sameSite)) {\n          cookie.push(`SameSite=${sameSite}`);\n        }\n\n        document.cookie = cookie.join('; ');\n      },\n\n      read(name) {\n        if (typeof document === 'undefined') return null;\n        // Match name=value by splitting on the semicolon separator instead of building a\n        // RegExp from `name` — interpolating an unescaped string into a RegExp would let\n        // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or\n        // match the wrong cookie. Browsers may serialize cookie pairs as either \";\" or\n        // \"; \", so ignore optional whitespace before each cookie name.\n        const cookies = document.cookie.split(';');\n        for (let i = 0; i < cookies.length; i++) {\n          const cookie = cookies[i].replace(/^\\s+/, '');\n          const eq = cookie.indexOf('=');\n          if (eq !== -1 && cookie.slice(0, eq) === name) {\n            return decodeURIComponent(cookie.slice(eq + 1));\n          }\n        }\n        return null;\n      },\n\n      remove(name) {\n        this.write(name, '', Date.now() - 86400000, '/');\n      },\n    }\n  : // Non-standard browser env (web workers, react-native) lack needed support.\n    {\n      write() {},\n      read() {\n        return null;\n      },\n      remove() {},\n    };\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\nconst malformedHttpProtocol = /^https?:(?!\\/\\/)/i;\nconst httpProtocolControlCharacters = /[\\t\\n\\r]/g;\n\nfunction stripLeadingC0ControlOrSpace(url) {\n  let i = 0;\n  while (i < url.length && url.charCodeAt(i) <= 0x20) {\n    i++;\n  }\n  return url.slice(i);\n}\n\nfunction normalizeURLForProtocolCheck(url) {\n  return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, '');\n}\n\nfunction assertValidHttpProtocolURL(url, config) {\n  if (typeof url === 'string' && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) {\n    throw new AxiosError(\n      'Invalid URL: missing \"//\" after protocol',\n      AxiosError.ERR_INVALID_URL,\n      config\n    );\n  }\n}\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {\n  assertValidHttpProtocolURL(requestedURL, config);\n  let isRelativeUrl = !isAbsoluteURL(requestedURL);\n  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {\n    assertValidHttpProtocolURL(baseURL, config);\n    return combineURLs(baseURL, requestedURL);\n  }\n  return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n  // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n  // by any combination of letters, digits, plus, period, or hyphen.\n  if (typeof url !== 'string') {\n    return false;\n  }\n\n  return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst headersToObject = (thing) => (thing instanceof AxiosHeaders ? { ...thing } : thing);\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n  // eslint-disable-next-line no-param-reassign\n  config2 = config2 || {};\n\n  // Use a null-prototype object so that downstream reads such as `config.auth`\n  // or `config.baseURL` cannot inherit polluted values from Object.prototype.\n  // `hasOwnProperty` is restored as a non-enumerable own slot to preserve\n  // ergonomics for user code that relies on it.\n  const config = Object.create(null);\n  Object.defineProperty(config, 'hasOwnProperty', {\n    // Null-proto descriptor so a polluted Object.prototype.get cannot turn\n    // this data descriptor into an accessor descriptor on the way in.\n    __proto__: null,\n    value: Object.prototype.hasOwnProperty,\n    enumerable: false,\n    writable: true,\n    configurable: true,\n  });\n\n  function getMergedValue(target, source, prop, caseless) {\n    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n      return utils.merge.call({ caseless }, target, source);\n    } else if (utils.isPlainObject(source)) {\n      return utils.merge({}, source);\n    } else if (utils.isArray(source)) {\n      return source.slice();\n    }\n    return source;\n  }\n\n  function mergeDeepProperties(a, b, prop, caseless) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(a, b, prop, caseless);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a, prop, caseless);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function valueFromConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function defaultToConfig2(a, b) {\n    if (!utils.isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    } else if (!utils.isUndefined(a)) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  function getMergedTransitionalOption(prop) {\n    const transitional2 = utils.hasOwnProp(config2, 'transitional') ? config2.transitional : undefined;\n\n    if (!utils.isUndefined(transitional2)) {\n      if (utils.isPlainObject(transitional2)) {\n        if (utils.hasOwnProp(transitional2, prop)) {\n          return transitional2[prop];\n        }\n      } else {\n        return undefined;\n      }\n    }\n\n    const transitional1 = utils.hasOwnProp(config1, 'transitional') ? config1.transitional : undefined;\n\n    if (utils.isPlainObject(transitional1) && utils.hasOwnProp(transitional1, prop)) {\n      return transitional1[prop];\n    }\n\n    return undefined;\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDirectKeys(a, b, prop) {\n    if (utils.hasOwnProp(config2, prop)) {\n      return getMergedValue(a, b);\n    } else if (utils.hasOwnProp(config1, prop)) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  const mergeMap = {\n    url: valueFromConfig2,\n    method: valueFromConfig2,\n    data: valueFromConfig2,\n    baseURL: defaultToConfig2,\n    transformRequest: defaultToConfig2,\n    transformResponse: defaultToConfig2,\n    paramsSerializer: defaultToConfig2,\n    timeout: defaultToConfig2,\n    timeoutMessage: defaultToConfig2,\n    withCredentials: defaultToConfig2,\n    withXSRFToken: defaultToConfig2,\n    adapter: defaultToConfig2,\n    responseType: defaultToConfig2,\n    xsrfCookieName: defaultToConfig2,\n    xsrfHeaderName: defaultToConfig2,\n    onUploadProgress: defaultToConfig2,\n    onDownloadProgress: defaultToConfig2,\n    decompress: defaultToConfig2,\n    maxContentLength: defaultToConfig2,\n    maxBodyLength: defaultToConfig2,\n    beforeRedirect: defaultToConfig2,\n    transport: defaultToConfig2,\n    httpAgent: defaultToConfig2,\n    httpsAgent: defaultToConfig2,\n    cancelToken: defaultToConfig2,\n    socketPath: defaultToConfig2,\n    allowedSocketPaths: defaultToConfig2,\n    responseEncoding: defaultToConfig2,\n    validateStatus: mergeDirectKeys,\n    headers: (a, b, prop) =>\n      mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),\n  };\n\n  utils.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {\n    if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;\n    const merge = utils.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;\n    const a = utils.hasOwnProp(config1, prop) ? config1[prop] : undefined;\n    const b = utils.hasOwnProp(config2, prop) ? config2[prop] : undefined;\n    const configValue = merge(a, b, prop);\n    (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n  });\n\n  if (\n    utils.hasOwnProp(config2, 'validateStatus') &&\n    utils.isUndefined(config2.validateStatus) &&\n    getMergedTransitionalOption('validateStatusUndefinedResolves') === false\n  ) {\n    if (utils.hasOwnProp(config1, 'validateStatus')) {\n      config.validateStatus = getMergedValue(undefined, config1.validateStatus);\n    } else {\n      delete config.validateStatus;\n    }\n  }\n\n  return config;\n}\n","import platform from '../platform/index.js';\nimport utils from '../utils.js';\nimport isURLSameOrigin from './isURLSameOrigin.js';\nimport cookies from './cookies.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport mergeConfig from '../core/mergeConfig.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport buildURL from './buildURL.js';\n\nconst FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];\n\nfunction setFormDataHeaders(headers, formHeaders, policy) {\n  if (policy !== 'content-only') {\n    headers.set(formHeaders);\n    return;\n  }\n\n  Object.entries(formHeaders).forEach(([key, val]) => {\n    if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {\n      headers.set(key, val);\n    }\n  });\n}\n\n/**\n * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().\n * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.\n *\n * @param {string} str The string to encode\n *\n * @returns {string} UTF-8 bytes as a Latin-1 string\n */\nconst encodeUTF8 = (str) =>\n  encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>\n    String.fromCharCode(parseInt(hex, 16))\n  );\n\nfunction resolveConfig(config) {\n  const newConfig = mergeConfig({}, config);\n\n  // Read only own properties to prevent prototype pollution gadgets\n  // (e.g. Object.prototype.baseURL = 'https://evil.com').\n  const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);\n\n  const data = own('data');\n  let withXSRFToken = own('withXSRFToken');\n  const xsrfHeaderName = own('xsrfHeaderName');\n  const xsrfCookieName = own('xsrfCookieName');\n  let headers = own('headers');\n  const auth = own('auth');\n  const baseURL = own('baseURL');\n  const allowAbsoluteUrls = own('allowAbsoluteUrls');\n  const url = own('url');\n\n  newConfig.headers = headers = AxiosHeaders.from(headers);\n\n  newConfig.url = buildURL(\n    buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig),\n    own('params'),\n    own('paramsSerializer')\n  );\n\n  // HTTP basic authentication\n  if (auth) {\n    const username = utils.getSafeProp(auth, 'username') || '';\n    const password = utils.getSafeProp(auth, 'password') || '';\n\n    headers.set(\n      'Authorization',\n      'Basic ' + btoa(username + ':' + (password ? encodeUTF8(password) : ''))\n    );\n  }\n\n  if (utils.isFormData(data)) {\n    if (\n      platform.hasStandardBrowserEnv ||\n      platform.hasStandardBrowserWebWorkerEnv ||\n      utils.isReactNative(data)\n    ) {\n      headers.setContentType(undefined); // browser/web worker/RN handles it\n    } else if (utils.isFunction(data.getHeaders)) {\n      // Node.js FormData (like form-data package)\n      setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));\n    }\n  }\n\n  // Add xsrf header\n  // This is only done if running in a standard browser environment.\n  // Specifically not if we're in a web worker, or react-native.\n\n  if (platform.hasStandardBrowserEnv) {\n    if (utils.isFunction(withXSRFToken)) {\n      withXSRFToken = withXSRFToken(newConfig);\n    }\n\n    // Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)\n    // and misconfigurations (e.g. \"false\") from short-circuiting the same-origin check and leaking\n    // the XSRF token cross-origin.\n    const shouldSendXSRF =\n      withXSRFToken === true || (withXSRFToken == null && isURLSameOrigin(newConfig.url));\n\n    if (shouldSendXSRF) {\n      const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n      if (xsrfValue) {\n        headers.set(xsrfHeaderName, xsrfValue);\n      }\n    }\n  }\n\n  return newConfig;\n}\n\nexport default resolveConfig;\n","import utils from '../utils.js';\nimport settle from '../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport { progressEventReducer } from '../helpers/progressEventReducer.js';\nimport resolveConfig from '../helpers/resolveConfig.js';\nimport { toByteStringHeaderObject } from '../helpers/sanitizeHeaderValue.js';\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported &&\n  function (config) {\n    return new Promise(function dispatchXhrRequest(resolve, reject) {\n      const _config = resolveConfig(config);\n      let requestData = _config.data;\n      const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n      let { responseType, onUploadProgress, onDownloadProgress } = _config;\n      let onCanceled;\n      let uploadThrottled, downloadThrottled;\n      let flushUpload, flushDownload;\n\n      function done() {\n        flushUpload && flushUpload(); // flush events\n        flushDownload && flushDownload(); // flush events\n\n        _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n        _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n      }\n\n      let request = new XMLHttpRequest();\n\n      request.open(_config.method.toUpperCase(), _config.url, true);\n\n      // Set the request timeout in MS\n      request.timeout = _config.timeout;\n\n      function onloadend() {\n        if (!request) {\n          return;\n        }\n        // Prepare the response\n        const responseHeaders = AxiosHeaders.from(\n          'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n        );\n        const responseData =\n          !responseType || responseType === 'text' || responseType === 'json'\n            ? request.responseText\n            : request.response;\n        const response = {\n          data: responseData,\n          status: request.status,\n          statusText: request.statusText,\n          headers: responseHeaders,\n          config,\n          request,\n        };\n\n        settle(\n          function _resolve(value) {\n            resolve(value);\n            done();\n          },\n          function _reject(err) {\n            reject(err);\n            done();\n          },\n          response\n        );\n\n        // Clean up request\n        request = null;\n      }\n\n      if ('onloadend' in request) {\n        // Use onloadend if available\n        request.onloadend = onloadend;\n      } else {\n        // Listen for ready state to emulate onloadend\n        request.onreadystatechange = function handleLoad() {\n          if (!request || request.readyState !== 4) {\n            return;\n          }\n\n          // The request errored out and we didn't get a response, this will be\n          // handled by onerror instead\n          // With one exception: request that using file: protocol, most browsers\n          // will return status as 0 even though it's a successful request\n          if (\n            request.status === 0 &&\n            !(request.responseURL && request.responseURL.startsWith('file:'))\n          ) {\n            return;\n          }\n          // readystate handler is calling before onerror or ontimeout handlers,\n          // so we should call onloadend on the next 'tick'\n          setTimeout(onloadend);\n        };\n      }\n\n      // Handle browser request cancellation (as opposed to a manual cancellation)\n      request.onabort = function handleAbort() {\n        if (!request) {\n          return;\n        }\n\n        reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n        done();\n\n        // Clean up request\n        request = null;\n      };\n\n      // Handle low level network errors\n      request.onerror = function handleError(event) {\n        // Browsers deliver a ProgressEvent in XHR onerror\n        // (message may be empty; when present, surface it)\n        // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event\n        const msg = event && event.message ? event.message : 'Network Error';\n        const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);\n        // attach the underlying event for consumers who want details\n        err.event = event || null;\n        reject(err);\n        done();\n        request = null;\n      };\n\n      // Handle timeout\n      request.ontimeout = function handleTimeout() {\n        let timeoutErrorMessage = _config.timeout\n          ? 'timeout of ' + _config.timeout + 'ms exceeded'\n          : 'timeout exceeded';\n        const transitional = _config.transitional || transitionalDefaults;\n        if (_config.timeoutErrorMessage) {\n          timeoutErrorMessage = _config.timeoutErrorMessage;\n        }\n        reject(\n          new AxiosError(\n            timeoutErrorMessage,\n            transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n            config,\n            request\n          )\n        );\n        done();\n\n        // Clean up request\n        request = null;\n      };\n\n      // Remove Content-Type if data is undefined\n      requestData === undefined && requestHeaders.setContentType(null);\n\n      // Add headers to the request\n      if ('setRequestHeader' in request) {\n        utils.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {\n          request.setRequestHeader(key, val);\n        });\n      }\n\n      // Add withCredentials to request if needed\n      if (!utils.isUndefined(_config.withCredentials)) {\n        request.withCredentials = !!_config.withCredentials;\n      }\n\n      // Add responseType to request if needed\n      if (responseType && responseType !== 'json') {\n        request.responseType = _config.responseType;\n      }\n\n      // Handle progress if needed\n      if (onDownloadProgress) {\n        [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);\n        request.addEventListener('progress', downloadThrottled);\n      }\n\n      // Not all browsers support upload events\n      if (onUploadProgress && request.upload) {\n        [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);\n\n        request.upload.addEventListener('progress', uploadThrottled);\n\n        request.upload.addEventListener('loadend', flushUpload);\n      }\n\n      if (_config.cancelToken || _config.signal) {\n        // Handle cancellation\n        // eslint-disable-next-line func-names\n        onCanceled = (cancel) => {\n          if (!request) {\n            return;\n          }\n          reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n          request.abort();\n          done();\n          request = null;\n        };\n\n        _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n        if (_config.signal) {\n          _config.signal.aborted\n            ? onCanceled()\n            : _config.signal.addEventListener('abort', onCanceled);\n        }\n      }\n\n      const protocol = parseProtocol(_config.url);\n\n      if (protocol && !platform.protocols.includes(protocol)) {\n        reject(\n          new AxiosError(\n            'Unsupported protocol ' + protocol + ':',\n            AxiosError.ERR_BAD_REQUEST,\n            config\n          )\n        );\n        return;\n      }\n\n      // Send the request\n      request.send(requestData || null);\n    });\n  };\n","'use strict';\n\nexport default function parseProtocol(url) {\n  const match = /^([-+\\w]{1,25}):(?:\\/\\/)?/.exec(url);\n  return (match && match[1]) || '';\n}\n","import CanceledError from '../cancel/CanceledError.js';\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n  signals = signals ? signals.filter(Boolean) : [];\n\n  if (!timeout && !signals.length) {\n    return;\n  }\n\n  const controller = new AbortController();\n\n  let aborted = false;\n\n  const onabort = function (reason) {\n    if (!aborted) {\n      aborted = true;\n      unsubscribe();\n      const err = reason instanceof Error ? reason : this.reason;\n      controller.abort(\n        err instanceof AxiosError\n          ? err\n          : new CanceledError(err instanceof Error ? err.message : err)\n      );\n    }\n  };\n\n  let timer =\n    timeout &&\n    setTimeout(() => {\n      timer = null;\n      onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));\n    }, timeout);\n\n  const unsubscribe = () => {\n    if (!signals) { return; }\n    timer && clearTimeout(timer);\n    timer = null;\n    signals.forEach((signal) => {\n      signal.unsubscribe\n        ? signal.unsubscribe(onabort)\n        : signal.removeEventListener('abort', onabort);\n    });\n    signals = null;\n  };\n\n  signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n  const { signal } = controller;\n\n  signal.unsubscribe = () => utils.asap(unsubscribe);\n\n  return signal;\n};\n\nexport default composeSignals;\n","export const streamChunk = function* (chunk, chunkSize) {\n  let len = chunk.byteLength;\n\n  if (!chunkSize || len < chunkSize) {\n    yield chunk;\n    return;\n  }\n\n  let pos = 0;\n  let end;\n\n  while (pos < len) {\n    end = pos + chunkSize;\n    yield chunk.slice(pos, end);\n    pos = end;\n  }\n};\n\nexport const readBytes = async function* (iterable, chunkSize) {\n  for await (const chunk of readStream(iterable)) {\n    yield* streamChunk(chunk, chunkSize);\n  }\n};\n\nconst readStream = async function* (stream) {\n  if (stream[Symbol.asyncIterator]) {\n    yield* stream;\n    return;\n  }\n\n  const reader = stream.getReader();\n  try {\n    for (;;) {\n      const { done, value } = await reader.read();\n      if (done) {\n        break;\n      }\n      yield value;\n    }\n  } finally {\n    await reader.cancel();\n  }\n};\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n  const iterator = readBytes(stream, chunkSize);\n\n  let bytes = 0;\n  let done;\n  let _onFinish = (e) => {\n    if (!done) {\n      done = true;\n      onFinish && onFinish(e);\n    }\n  };\n\n  return new ReadableStream(\n    {\n      async pull(controller) {\n        try {\n          const { done, value } = await iterator.next();\n\n          if (done) {\n            _onFinish();\n            controller.close();\n            return;\n          }\n\n          let len = value.byteLength;\n          if (onProgress) {\n            let loadedBytes = (bytes += len);\n            onProgress(loadedBytes);\n          }\n          controller.enqueue(new Uint8Array(value));\n        } catch (err) {\n          _onFinish(err);\n          throw err;\n        }\n      },\n      cancel(reason) {\n        _onFinish(reason);\n        return iterator.return();\n      },\n    },\n    {\n      highWaterMark: 2,\n    }\n  );\n};\n","/**\n * Estimate decoded byte length of a data:// URL *without* allocating large buffers.\n * - For base64: compute exact decoded size using length and padding;\n *               handle %XX at the character-count level (no string allocation).\n * - For non-base64: compute the exact percent-decoded UTF-8 byte length.\n *\n * @param {string} url\n * @returns {number}\n */\nconst isHexDigit = (charCode) =>\n  (charCode >= 48 && charCode <= 57) ||\n  (charCode >= 65 && charCode <= 70) ||\n  (charCode >= 97 && charCode <= 102);\n\nconst isPercentEncodedByte = (str, i, len) =>\n  i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));\n\nexport default function estimateDataURLDecodedBytes(url) {\n  if (!url || typeof url !== 'string') return 0;\n  if (!url.startsWith('data:')) return 0;\n\n  const comma = url.indexOf(',');\n  if (comma < 0) return 0;\n\n  const meta = url.slice(5, comma);\n  const body = url.slice(comma + 1);\n  const isBase64 = /;base64/i.test(meta);\n\n  if (isBase64) {\n    let effectiveLen = body.length;\n    const len = body.length; // cache length\n\n    for (let i = 0; i < len; i++) {\n      if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {\n        const a = body.charCodeAt(i + 1);\n        const b = body.charCodeAt(i + 2);\n        const isHex = isHexDigit(a) && isHexDigit(b);\n\n        if (isHex) {\n          effectiveLen -= 2;\n          i += 2;\n        }\n      }\n    }\n\n    let pad = 0;\n    let idx = len - 1;\n\n    const tailIsPct3D = (j) =>\n      j >= 2 &&\n      body.charCodeAt(j - 2) === 37 && // '%'\n      body.charCodeAt(j - 1) === 51 && // '3'\n      (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'\n\n    if (idx >= 0) {\n      if (body.charCodeAt(idx) === 61 /* '=' */) {\n        pad++;\n        idx--;\n      } else if (tailIsPct3D(idx)) {\n        pad++;\n        idx -= 3;\n      }\n    }\n\n    if (pad === 1 && idx >= 0) {\n      if (body.charCodeAt(idx) === 61 /* '=' */) {\n        pad++;\n      } else if (tailIsPct3D(idx)) {\n        pad++;\n      }\n    }\n\n    const groups = Math.floor(effectiveLen / 4);\n    const bytes = groups * 3 - (pad || 0);\n    return bytes > 0 ? bytes : 0;\n  }\n\n  // Compute UTF-8 byte length directly from UTF-16 code units without allocating\n  // a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).\n  // Valid %XX triplets count as one decoded byte; this matches the bytes that\n  // decodeURIComponent(body) would produce before Buffer re-encodes the string.\n  let bytes = 0;\n  for (let i = 0, len = body.length; i < len; i++) {\n    const c = body.charCodeAt(i);\n    if (c === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {\n      bytes += 1;\n      i += 2;\n    } else if (c < 0x80) {\n      bytes += 1;\n    } else if (c < 0x800) {\n      bytes += 2;\n    } else if (c >= 0xd800 && c <= 0xdbff && i + 1 < len) {\n      const next = body.charCodeAt(i + 1);\n      if (next >= 0xdc00 && next <= 0xdfff) {\n        bytes += 4;\n        i++;\n      } else {\n        bytes += 3;\n      }\n    } else {\n      bytes += 3;\n    }\n  }\n  return bytes;\n}\n","export const VERSION = \"1.18.0\";","import platform from '../platform/index.js';\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport composeSignals from '../helpers/composeSignals.js';\nimport { trackStream } from '../helpers/trackStream.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {\n  progressEventReducer,\n  progressEventDecorator,\n  asyncDecorator,\n} from '../helpers/progressEventReducer.js';\nimport resolveConfig from '../helpers/resolveConfig.js';\nimport settle from '../core/settle.js';\nimport estimateDataURLDecodedBytes from '../helpers/estimateDataURLDecodedBytes.js';\nimport { VERSION } from '../env/data.js';\nimport { toByteStringHeaderObject } from '../helpers/sanitizeHeaderValue.js';\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst { isFunction } = utils;\n\n/**\n * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().\n * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.\n *\n * @param {string} str The string to encode\n *\n * @returns {string} UTF-8 bytes as a Latin-1 string\n */\nconst encodeUTF8 = (str) =>\n  encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>\n    String.fromCharCode(parseInt(hex, 16))\n  );\n\n// Node's WHATWG URL parser returns `username` and `password` percent-encoded.\n// Decode before composing the `auth` option so credentials such as\n// `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the\n// original value for malformed input so a bad encoding never throws.\nconst decodeURIComponentSafe = (value) => {\n  if (!utils.isString(value)) {\n    return value;\n  }\n\n  try {\n    return decodeURIComponent(value);\n  } catch (error) {\n    return value;\n  }\n};\n\nconst test = (fn, ...args) => {\n  try {\n    return !!fn(...args);\n  } catch (e) {\n    return false;\n  }\n};\n\nconst maybeWithAuthCredentials = (url) => {\n  const protocolIndex = url.indexOf('://');\n  let urlToCheck = url;\n  if (protocolIndex !== -1) {\n    urlToCheck = urlToCheck.slice(protocolIndex + 3);\n  }\n  return urlToCheck.includes('@') || urlToCheck.includes(':');\n};\n\nconst factory = (env) => {\n  const globalObject =\n    utils.global !== undefined && utils.global !== null\n      ? utils.global\n      : globalThis;\n  const { ReadableStream, TextEncoder } = globalObject;\n\n  env = utils.merge.call(\n    {\n      skipUndefined: true,\n    },\n    {\n      Request: globalObject.Request,\n      Response: globalObject.Response,\n    },\n    env\n  );\n\n  const { fetch: envFetch, Request, Response } = env;\n  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';\n  const isRequestSupported = isFunction(Request);\n  const isResponseSupported = isFunction(Response);\n\n  if (!isFetchSupported) {\n    return false;\n  }\n\n  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);\n\n  const encodeText =\n    isFetchSupported &&\n    (typeof TextEncoder === 'function'\n      ? (\n          (encoder) => (str) =>\n            encoder.encode(str)\n        )(new TextEncoder())\n      : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));\n\n  const supportsRequestStream =\n    isRequestSupported &&\n    isReadableStreamSupported &&\n    test(() => {\n      let duplexAccessed = false;\n\n      const request = new Request(platform.origin, {\n        body: new ReadableStream(),\n        method: 'POST',\n        get duplex() {\n          duplexAccessed = true;\n          return 'half';\n        },\n      });\n\n      const hasContentType = request.headers.has('Content-Type');\n\n      if (request.body != null) {\n        request.body.cancel();\n      }\n\n      return duplexAccessed && !hasContentType;\n    });\n\n  const supportsResponseStream =\n    isResponseSupported &&\n    isReadableStreamSupported &&\n    test(() => utils.isReadableStream(new Response('').body));\n\n  const resolvers = {\n    stream: supportsResponseStream && ((res) => res.body),\n  };\n\n  isFetchSupported &&\n    (() => {\n      ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {\n        !resolvers[type] &&\n          (resolvers[type] = (res, config) => {\n            let method = res && res[type];\n\n            if (method) {\n              return method.call(res);\n            }\n\n            throw new AxiosError(\n              `Response type '${type}' is not supported`,\n              AxiosError.ERR_NOT_SUPPORT,\n              config\n            );\n          });\n      });\n    })();\n\n  const getBodyLength = async (body) => {\n    if (body == null) {\n      return 0;\n    }\n\n    if (utils.isBlob(body)) {\n      return body.size;\n    }\n\n    if (utils.isSpecCompliantForm(body)) {\n      const _request = new Request(platform.origin, {\n        method: 'POST',\n        body,\n      });\n      return (await _request.arrayBuffer()).byteLength;\n    }\n\n    if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n      return body.byteLength;\n    }\n\n    if (utils.isURLSearchParams(body)) {\n      body = body + '';\n    }\n\n    if (utils.isString(body)) {\n      return (await encodeText(body)).byteLength;\n    }\n  };\n\n  const resolveBodyLength = async (headers, body) => {\n    const length = utils.toFiniteNumber(headers.getContentLength());\n\n    return length == null ? getBodyLength(body) : length;\n  };\n\n  return async (config) => {\n    let {\n      url,\n      method,\n      data,\n      signal,\n      cancelToken,\n      timeout,\n      onDownloadProgress,\n      onUploadProgress,\n      responseType,\n      headers,\n      withCredentials = 'same-origin',\n      fetchOptions,\n      maxContentLength,\n      maxBodyLength,\n    } = resolveConfig(config);\n\n    const hasMaxContentLength = utils.isNumber(maxContentLength) && maxContentLength > -1;\n    const hasMaxBodyLength = utils.isNumber(maxBodyLength) && maxBodyLength > -1;\n    const own = (key) => (utils.hasOwnProp(config, key) ? config[key] : undefined);\n\n    let _fetch = envFetch || fetch;\n\n    responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n    let composedSignal = composeSignals(\n      [signal, cancelToken && cancelToken.toAbortSignal()],\n      timeout\n    );\n\n    let request = null;\n\n    const unsubscribe =\n      composedSignal &&\n      composedSignal.unsubscribe &&\n      (() => {\n        composedSignal.unsubscribe();\n      });\n\n    let requestContentLength;\n\n    // AxiosError we raise while the request body is being streamed. Captured\n    // by identity so the catch block can surface it directly, regardless of\n    // how the runtime wraps the resulting fetch rejection (undici exposes it\n    // as `err.cause`; some browsers drop the original error entirely).\n    let pendingBodyError = null;\n\n    const maxBodyLengthError = () =>\n      new AxiosError(\n        'Request body larger than maxBodyLength limit',\n        AxiosError.ERR_BAD_REQUEST,\n        config,\n        request\n      );\n\n    try {\n      // HTTP basic authentication\n      let auth = undefined;\n      const configAuth = own('auth');\n\n      if (configAuth) {\n        const username = utils.getSafeProp(configAuth, 'username') || '';\n        const password = utils.getSafeProp(configAuth, 'password') || '';\n        auth = {\n          username,\n          password\n        };\n      }\n\n      if (maybeWithAuthCredentials(url)) {\n        const parsedURL = new URL(url, platform.origin);\n\n        if (!auth && (parsedURL.username || parsedURL.password)) {\n          const urlUsername = decodeURIComponentSafe(parsedURL.username);\n          const urlPassword = decodeURIComponentSafe(parsedURL.password);\n          auth = {\n            username: urlUsername,\n            password: urlPassword\n          };\n        }\n\n        if (parsedURL.username || parsedURL.password) {\n          parsedURL.username = '';\n          parsedURL.password = '';\n          url = parsedURL.href;\n        }\n      }\n\n      if (auth) {\n        headers.delete('authorization');\n        headers.set(\n          'Authorization',\n          'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))\n        );\n      }\n\n      // Enforce maxContentLength for data: URLs up-front so we never materialize\n      // an oversized payload. The HTTP adapter applies the same check (see http.js\n      // \"if (protocol === 'data:')\" branch).\n      if (hasMaxContentLength && typeof url === 'string' && url.startsWith('data:')) {\n        const estimated = estimateDataURLDecodedBytes(url);\n        if (estimated > maxContentLength) {\n          throw new AxiosError(\n            'maxContentLength size of ' + maxContentLength + ' exceeded',\n            AxiosError.ERR_BAD_RESPONSE,\n            config,\n            request\n          );\n        }\n      }\n\n      // Enforce maxBodyLength against known-size bodies before dispatch using\n      // the body's *actual* size — never a caller-declared Content-Length,\n      // which could under-report to slip an oversized body past the check.\n      // Unknown-size streams return undefined here and are counted per-chunk\n      // below as fetch consumes them.\n      if (hasMaxBodyLength && method !== 'get' && method !== 'head') {\n        const outboundLength = await getBodyLength(data);\n        if (typeof outboundLength === 'number' && isFinite(outboundLength)) {\n          requestContentLength = outboundLength;\n          if (outboundLength > maxBodyLength) {\n            throw maxBodyLengthError();\n          }\n        }\n      }\n\n      // A streamed body under maxBodyLength must be counted as fetch consumes\n      // it; its size is never trusted from a caller-declared Content-Length.\n      const mustEnforceStreamBody =\n        hasMaxBodyLength && (utils.isReadableStream(data) || utils.isStream(data));\n\n      const trackRequestStream = (stream, onProgress, flush) =>\n        trackStream(\n          stream,\n          DEFAULT_CHUNK_SIZE,\n          (loadedBytes) => {\n            if (hasMaxBodyLength && loadedBytes > maxBodyLength) {\n              throw (pendingBodyError = maxBodyLengthError());\n            }\n            onProgress && onProgress(loadedBytes);\n          },\n          flush\n        );\n\n      if (\n        supportsRequestStream &&\n        method !== 'get' &&\n        method !== 'head' &&\n        (onUploadProgress || mustEnforceStreamBody)\n      ) {\n        requestContentLength =\n          requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;\n\n        // A declared length of 0 is only trusted to skip the wrap when we are\n        // not enforcing a stream limit (which must not rely on that header).\n        if (requestContentLength !== 0 || mustEnforceStreamBody) {\n          let _request = new Request(url, {\n            method: 'POST',\n            body: data,\n            duplex: 'half',\n          });\n\n          let contentTypeHeader;\n\n          if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n            headers.setContentType(contentTypeHeader);\n          }\n\n          if (_request.body) {\n            const [onProgress, flush] =\n              (onUploadProgress &&\n                progressEventDecorator(\n                  requestContentLength,\n                  progressEventReducer(asyncDecorator(onUploadProgress))\n                )) ||\n              [];\n\n            data = trackRequestStream(_request.body, onProgress, flush);\n          }\n        }\n      } else if (\n        mustEnforceStreamBody &&\n        !isRequestSupported &&\n        isReadableStreamSupported &&\n        method !== 'get' &&\n        method !== 'head'\n      ) {\n        data = trackRequestStream(data);\n      } else if (\n        mustEnforceStreamBody &&\n        isRequestSupported &&\n        !supportsRequestStream &&\n        method !== 'get' &&\n        method !== 'head'\n      ) {\n        throw new AxiosError(\n          'Stream request bodies are not supported by the current fetch implementation',\n          AxiosError.ERR_NOT_SUPPORT,\n          config,\n          request\n        );\n      }\n\n      if (!utils.isString(withCredentials)) {\n        withCredentials = withCredentials ? 'include' : 'omit';\n      }\n\n      // Cloudflare Workers throws when credentials are defined\n      // see https://github.com/cloudflare/workerd/issues/902\n      const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;\n\n      // If data is FormData and Content-Type is multipart/form-data without boundary,\n      // delete it so fetch can set it correctly with the boundary\n      if (utils.isFormData(data)) {\n        const contentType = headers.getContentType();\n        if (\n          contentType &&\n          /^multipart\\/form-data/i.test(contentType) &&\n          !/boundary=/i.test(contentType)\n        ) {\n          headers.delete('content-type');\n        }\n      }\n\n      // Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)\n      headers.set('User-Agent', 'axios/' + VERSION, false);\n\n      const resolvedOptions = {\n        ...fetchOptions,\n        signal: composedSignal,\n        method: method.toUpperCase(),\n        headers: toByteStringHeaderObject(headers.normalize()),\n        body: data,\n        duplex: 'half',\n        credentials: isCredentialsSupported ? withCredentials : undefined,\n      };\n\n      request = isRequestSupported && new Request(url, resolvedOptions);\n\n      let response = await (isRequestSupported\n        ? _fetch(request, fetchOptions)\n        : _fetch(url, resolvedOptions));\n\n      const responseHeaders = AxiosHeaders.from(response.headers);\n\n      // Cheap pre-check: if the server honestly declares a content-length that\n      // already exceeds the cap, reject before we start streaming.\n      if (hasMaxContentLength) {\n        const declaredLength = utils.toFiniteNumber(responseHeaders.getContentLength());\n        if (declaredLength != null && declaredLength > maxContentLength) {\n          throw new AxiosError(\n            'maxContentLength size of ' + maxContentLength + ' exceeded',\n            AxiosError.ERR_BAD_RESPONSE,\n            config,\n            request\n          );\n        }\n      }\n\n      const isStreamResponse =\n        supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n      if (\n        supportsResponseStream &&\n        response.body &&\n        (onDownloadProgress || hasMaxContentLength || (isStreamResponse && unsubscribe))\n      ) {\n        const options = {};\n\n        ['status', 'statusText', 'headers'].forEach((prop) => {\n          options[prop] = response[prop];\n        });\n\n        const responseContentLength = utils.toFiniteNumber(responseHeaders.getContentLength());\n\n        const [onProgress, flush] =\n          (onDownloadProgress &&\n            progressEventDecorator(\n              responseContentLength,\n              progressEventReducer(asyncDecorator(onDownloadProgress), true)\n            )) ||\n          [];\n\n        let bytesRead = 0;\n        const onChunkProgress = (loadedBytes) => {\n          if (hasMaxContentLength) {\n            bytesRead = loadedBytes;\n            if (bytesRead > maxContentLength) {\n              throw new AxiosError(\n                'maxContentLength size of ' + maxContentLength + ' exceeded',\n                AxiosError.ERR_BAD_RESPONSE,\n                config,\n                request\n              );\n            }\n          }\n          onProgress && onProgress(loadedBytes);\n        };\n\n        response = new Response(\n          trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {\n            flush && flush();\n            unsubscribe && unsubscribe();\n          }),\n          options\n        );\n      }\n\n      responseType = responseType || 'text';\n\n      let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](\n        response,\n        config\n      );\n\n      // Fallback enforcement for environments without ReadableStream support\n      // (legacy runtimes). Detect materialized size from typed output; skip\n      // streams/Response passthrough since the user will read those themselves.\n      if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {\n        let materializedSize;\n        if (responseData != null) {\n          if (typeof responseData.byteLength === 'number') {\n            materializedSize = responseData.byteLength;\n          } else if (typeof responseData.size === 'number') {\n            materializedSize = responseData.size;\n          } else if (typeof responseData === 'string') {\n            materializedSize =\n              typeof TextEncoder === 'function'\n                ? new TextEncoder().encode(responseData).byteLength\n                : responseData.length;\n          }\n        }\n        if (typeof materializedSize === 'number' && materializedSize > maxContentLength) {\n          throw new AxiosError(\n            'maxContentLength size of ' + maxContentLength + ' exceeded',\n            AxiosError.ERR_BAD_RESPONSE,\n            config,\n            request\n          );\n        }\n      }\n\n      !isStreamResponse && unsubscribe && unsubscribe();\n\n      return await new Promise((resolve, reject) => {\n        settle(resolve, reject, {\n          data: responseData,\n          headers: AxiosHeaders.from(response.headers),\n          status: response.status,\n          statusText: response.statusText,\n          config,\n          request,\n        });\n      });\n    } catch (err) {\n      unsubscribe && unsubscribe();\n\n      // Safari can surface fetch aborts as a DOMException-like object whose\n      // branded getters throw. Prefer our composed signal reason before reading\n      // the caught error, preserving timeout vs cancellation semantics.\n      if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {\n        const canceledError = composedSignal.reason;\n        canceledError.config = config;\n        request && (canceledError.request = request);\n        err !== canceledError && (canceledError.cause = err);\n        throw canceledError;\n      }\n\n      // Surface a maxBodyLength violation we raised while the request body was\n      // being streamed. Matching by identity (rather than reading\n      // `err.cause.isAxiosError`) keeps the error deterministic across runtimes\n      // and avoids both prototype-pollution reads and mis-attributing a foreign\n      // AxiosError that merely happened to land in `err.cause`.\n      if (pendingBodyError) {\n        request && !pendingBodyError.request && (pendingBodyError.request = request);\n        throw pendingBodyError;\n      }\n\n      // Re-throw AxiosErrors we raised synchronously (data: URL / content-length\n      // pre-checks, response size enforcement) without re-wrapping them.\n      if (err instanceof AxiosError) {\n        request && !err.request && (err.request = request);\n        throw err;\n      }\n\n      if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {\n        throw Object.assign(\n          new AxiosError(\n            'Network Error',\n            AxiosError.ERR_NETWORK,\n            config,\n            request,\n            err && err.response\n          ),\n          {\n            cause: err.cause || err,\n          }\n        );\n      }\n\n      throw AxiosError.from(err, err && err.code, config, request, err && err.response);\n    }\n  };\n};\n\nconst seedCache = new Map();\n\nexport const getFetch = (config) => {\n  let env = (config && config.env) || {};\n  const { fetch, Request, Response } = env;\n  const seeds = [Request, Response, fetch];\n\n  let len = seeds.length,\n    i = len,\n    seed,\n    target,\n    map = seedCache;\n\n  while (i--) {\n    seed = seeds[i];\n    target = map.get(seed);\n\n    target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));\n\n    map = target;\n  }\n\n  return target;\n};\n\nconst adapter = getFetch();\n\nexport default adapter;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport * as fetchAdapter from './fetch.js';\nimport AxiosError from '../core/AxiosError.js';\n\n/**\n * Known adapters mapping.\n * Provides environment-specific adapters for Axios:\n * - `http` for Node.js\n * - `xhr` for browsers\n * - `fetch` for fetch API-based requests\n *\n * @type {Object<string, Function|Object>}\n */\nconst knownAdapters = {\n  http: httpAdapter,\n  xhr: xhrAdapter,\n  fetch: {\n    get: fetchAdapter.getFetch,\n  },\n};\n\n// Assign adapter names for easier debugging and identification\nutils.forEach(knownAdapters, (fn, value) => {\n  if (fn) {\n    try {\n      // Null-proto descriptors so a polluted Object.prototype.get cannot turn\n      // these data descriptors into accessor descriptors on the way in.\n      Object.defineProperty(fn, 'name', { __proto__: null, value });\n    } catch (e) {\n      // eslint-disable-next-line no-empty\n    }\n    Object.defineProperty(fn, 'adapterName', { __proto__: null, value });\n  }\n});\n\n/**\n * Render a rejection reason string for unknown or unsupported adapters\n *\n * @param {string} reason\n * @returns {string}\n */\nconst renderReason = (reason) => `- ${reason}`;\n\n/**\n * Check if the adapter is resolved (function, null, or false)\n *\n * @param {Function|null|false} adapter\n * @returns {boolean}\n */\nconst isResolvedHandle = (adapter) =>\n  utils.isFunction(adapter) || adapter === null || adapter === false;\n\n/**\n * Get the first suitable adapter from the provided list.\n * Tries each adapter in order until a supported one is found.\n * Throws an AxiosError if no adapter is suitable.\n *\n * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.\n * @param {Object} config - Axios request configuration\n * @throws {AxiosError} If no suitable adapter is available\n * @returns {Function} The resolved adapter function\n */\nfunction getAdapter(adapters, config) {\n  adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n  const { length } = adapters;\n  let nameOrAdapter;\n  let adapter;\n\n  const rejectedReasons = {};\n\n  for (let i = 0; i < length; i++) {\n    nameOrAdapter = adapters[i];\n    let id;\n\n    adapter = nameOrAdapter;\n\n    if (!isResolvedHandle(nameOrAdapter)) {\n      adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n      if (adapter === undefined) {\n        throw new AxiosError(`Unknown adapter '${id}'`);\n      }\n    }\n\n    if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) {\n      break;\n    }\n\n    rejectedReasons[id || '#' + i] = adapter;\n  }\n\n  if (!adapter) {\n    const reasons = Object.entries(rejectedReasons).map(\n      ([id, state]) =>\n        `adapter ${id} ` +\n        (state === false ? 'is not supported by the environment' : 'is not available in the build')\n    );\n\n    let s = length\n      ? reasons.length > 1\n        ? 'since :\\n' + reasons.map(renderReason).join('\\n')\n        : ' ' + renderReason(reasons[0])\n      : 'as no adapter specified';\n\n    throw new AxiosError(\n      `There is no suitable adapter to dispatch the request ` + s,\n      'ERR_NOT_SUPPORT'\n    );\n  }\n\n  return adapter;\n}\n\n/**\n * Exports Axios adapters and utility to resolve an adapter\n */\nexport default {\n  /**\n   * Resolve an adapter from a list of adapter names or functions.\n   * @type {Function}\n   */\n  getAdapter,\n\n  /**\n   * Exposes all known adapters\n   * @type {Object<string, Function|Object>}\n   */\n  adapters: knownAdapters,\n};\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from '../adapters/adapters.js';\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n\n  if (config.signal && config.signal.aborted) {\n    throw new CanceledError(null, config);\n  }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  config.headers = AxiosHeaders.from(config.headers);\n\n  // Transform request data\n  config.data = transformData.call(config, config.transformRequest);\n\n  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n    config.headers.setContentType('application/x-www-form-urlencoded', false);\n  }\n\n  const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);\n\n  return adapter(config).then(\n    function onAdapterResolution(response) {\n      throwIfCancellationRequested(config);\n\n      // Expose the current response on config so that transformResponse can\n      // attach it to any AxiosError it throws (e.g. on JSON parse failure).\n      // We clean it up afterwards to avoid polluting the config object.\n      config.response = response;\n      try {\n        response.data = transformData.call(config, config.transformResponse, response);\n      } finally {\n        delete config.response;\n      }\n\n      response.headers = AxiosHeaders.from(response.headers);\n\n      return response;\n    },\n    function onAdapterRejection(reason) {\n      if (!isCancel(reason)) {\n        throwIfCancellationRequested(config);\n\n        // Transform response data\n        if (reason && reason.response) {\n          config.response = reason.response;\n          try {\n            reason.response.data = transformData.call(\n              config,\n              config.transformResponse,\n              reason.response\n            );\n          } finally {\n            delete config.response;\n          }\n          reason.response.headers = AxiosHeaders.from(reason.response.headers);\n        }\n      }\n\n      return Promise.reject(reason);\n    }\n  );\n}\n","'use strict';\n\nimport { VERSION } from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n  validators[type] = function validator(thing) {\n    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n  };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n  function formatMessage(opt, desc) {\n    return (\n      '[Axios v' +\n      VERSION +\n      \"] Transitional option '\" +\n      opt +\n      \"'\" +\n      desc +\n      (message ? '. ' + message : '')\n    );\n  }\n\n  // eslint-disable-next-line func-names\n  return (value, opt, opts) => {\n    if (validator === false) {\n      throw new AxiosError(\n        formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n        AxiosError.ERR_DEPRECATED\n      );\n    }\n\n    if (version && !deprecatedWarnings[opt]) {\n      deprecatedWarnings[opt] = true;\n      // eslint-disable-next-line no-console\n      console.warn(\n        formatMessage(\n          opt,\n          ' has been deprecated since v' + version + ' and will be removed in the near future'\n        )\n      );\n    }\n\n    return validator ? validator(value, opt, opts) : true;\n  };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n  return (value, opt) => {\n    // eslint-disable-next-line no-console\n    console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n    return true;\n  };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n  if (typeof options !== 'object') {\n    throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n  }\n  const keys = Object.keys(options);\n  let i = keys.length;\n  while (i-- > 0) {\n    const opt = keys[i];\n    // Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply\n    // a non-function validator and cause a TypeError.\n    const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;\n    if (validator) {\n      const value = options[opt];\n      const result = value === undefined || validator(value, opt, options);\n      if (result !== true) {\n        throw new AxiosError(\n          'option ' + opt + ' must be ' + result,\n          AxiosError.ERR_BAD_OPTION_VALUE\n        );\n      }\n      continue;\n    }\n    if (allowUnknown !== true) {\n      throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n    }\n  }\n}\n\nexport default {\n  assertOptions,\n  validators,\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\nimport transitionalDefaults from '../defaults/transitional.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n  constructor(instanceConfig) {\n    this.defaults = instanceConfig || {};\n    this.interceptors = {\n      request: new InterceptorManager(),\n      response: new InterceptorManager(),\n    };\n  }\n\n  /**\n   * Dispatch a request\n   *\n   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n   * @param {?Object} config\n   *\n   * @returns {Promise} The Promise to be fulfilled\n   */\n  async request(configOrUrl, config) {\n    try {\n      return await this._request(configOrUrl, config);\n    } catch (err) {\n      if (err instanceof Error) {\n        let dummy = {};\n\n        Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n        // slice off the Error: ... line\n        const stack = (() => {\n          if (!dummy.stack) {\n            return '';\n          }\n\n          const firstNewlineIndex = dummy.stack.indexOf('\\n');\n\n          return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);\n        })();\n        try {\n          if (!err.stack) {\n            err.stack = stack;\n            // match without the 2 top stack lines\n          } else if (stack) {\n            const firstNewlineIndex = stack.indexOf('\\n');\n            const secondNewlineIndex =\n              firstNewlineIndex === -1 ? -1 : stack.indexOf('\\n', firstNewlineIndex + 1);\n            const stackWithoutTwoTopLines =\n              secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);\n\n            if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {\n              err.stack += '\\n' + stack;\n            }\n          }\n        } catch (e) {\n          // ignore the case where \"stack\" is an un-writable property\n        }\n      }\n\n      throw err;\n    }\n  }\n\n  _request(configOrUrl, config) {\n    /*eslint no-param-reassign:0*/\n    // Allow for axios('example/url'[, config]) a la fetch API\n    if (typeof configOrUrl === 'string') {\n      config = config || {};\n      config.url = configOrUrl;\n    } else {\n      config = configOrUrl || {};\n    }\n\n    config = mergeConfig(this.defaults, config);\n\n    const { transitional, paramsSerializer, headers } = config;\n\n    if (transitional !== undefined) {\n      validator.assertOptions(\n        transitional,\n        {\n          silentJSONParsing: validators.transitional(validators.boolean),\n          forcedJSONParsing: validators.transitional(validators.boolean),\n          clarifyTimeoutError: validators.transitional(validators.boolean),\n          legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),\n          advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),\n          validateStatusUndefinedResolves: validators.transitional(validators.boolean),\n        },\n        false\n      );\n    }\n\n    if (paramsSerializer != null) {\n      if (utils.isFunction(paramsSerializer)) {\n        config.paramsSerializer = {\n          serialize: paramsSerializer,\n        };\n      } else {\n        validator.assertOptions(\n          paramsSerializer,\n          {\n            encode: validators.function,\n            serialize: validators.function,\n          },\n          true\n        );\n      }\n    }\n\n    // Set config.allowAbsoluteUrls\n    if (config.allowAbsoluteUrls !== undefined) {\n      // do nothing\n    } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n      config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n    } else {\n      config.allowAbsoluteUrls = true;\n    }\n\n    validator.assertOptions(\n      config,\n      {\n        baseUrl: validators.spelling('baseURL'),\n        withXsrfToken: validators.spelling('withXSRFToken'),\n      },\n      true\n    );\n\n    // Set config.method\n    config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n    // Flatten headers\n    let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);\n\n    headers &&\n      utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], (method) => {\n        delete headers[method];\n      });\n\n    config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n    // filter out skipped interceptors\n    const requestInterceptorChain = [];\n    let synchronousRequestInterceptors = true;\n    this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n      if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n        return;\n      }\n\n      synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n      const transitional = config.transitional || transitionalDefaults;\n      const legacyInterceptorReqResOrdering =\n        transitional && transitional.legacyInterceptorReqResOrdering;\n\n      if (legacyInterceptorReqResOrdering) {\n        requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n      } else {\n        requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n      }\n    });\n\n    const responseInterceptorChain = [];\n    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n      responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    let promise;\n    let i = 0;\n    let len;\n\n    if (!synchronousRequestInterceptors) {\n      const chain = [dispatchRequest.bind(this), undefined];\n      chain.unshift(...requestInterceptorChain);\n      chain.push(...responseInterceptorChain);\n      len = chain.length;\n\n      promise = Promise.resolve(config);\n\n      while (i < len) {\n        promise = promise.then(chain[i++], chain[i++]);\n      }\n\n      return promise;\n    }\n\n    len = requestInterceptorChain.length;\n\n    let newConfig = config;\n\n    while (i < len) {\n      const onFulfilled = requestInterceptorChain[i++];\n      const onRejected = requestInterceptorChain[i++];\n      try {\n        newConfig = onFulfilled(newConfig);\n      } catch (error) {\n        onRejected.call(this, error);\n        break;\n      }\n    }\n\n    try {\n      promise = dispatchRequest.call(this, newConfig);\n    } catch (error) {\n      return Promise.reject(error);\n    }\n\n    i = 0;\n    len = responseInterceptorChain.length;\n\n    while (i < len) {\n      promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n    }\n\n    return promise;\n  }\n\n  getUri(config) {\n    config = mergeConfig(this.defaults, config);\n    const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);\n    return buildURL(fullPath, config.params, config.paramsSerializer);\n  }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function (url, config) {\n    return this.request(\n      mergeConfig(config || {}, {\n        method,\n        url,\n        data: config && utils.hasOwnProp(config, 'data') ? config.data : undefined,\n      })\n    );\n  };\n});\n\nutils.forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {\n  function generateHTTPMethod(isForm) {\n    return function httpMethod(url, data, config) {\n      return this.request(\n        mergeConfig(config || {}, {\n          method,\n          headers: isForm\n            ? {\n                'Content-Type': 'multipart/form-data',\n              }\n            : {},\n          url,\n          data,\n        })\n      );\n    };\n  }\n\n  Axios.prototype[method] = generateHTTPMethod();\n\n  // QUERY is a safe/idempotent read method; multipart form bodies don't fit\n  // its semantics, so no queryForm shorthand is generated.\n  if (method !== 'query') {\n    Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n  }\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n  constructor(executor) {\n    if (typeof executor !== 'function') {\n      throw new TypeError('executor must be a function.');\n    }\n\n    let resolvePromise;\n\n    this.promise = new Promise(function promiseExecutor(resolve) {\n      resolvePromise = resolve;\n    });\n\n    const token = this;\n\n    // eslint-disable-next-line func-names\n    this.promise.then((cancel) => {\n      if (!token._listeners) return;\n\n      let i = token._listeners.length;\n\n      while (i-- > 0) {\n        token._listeners[i](cancel);\n      }\n      token._listeners = null;\n    });\n\n    // eslint-disable-next-line func-names\n    this.promise.then = (onfulfilled) => {\n      let _resolve;\n      // eslint-disable-next-line func-names\n      const promise = new Promise((resolve) => {\n        token.subscribe(resolve);\n        _resolve = resolve;\n      }).then(onfulfilled);\n\n      promise.cancel = function reject() {\n        token.unsubscribe(_resolve);\n      };\n\n      return promise;\n    };\n\n    executor(function cancel(message, config, request) {\n      if (token.reason) {\n        // Cancellation has already been requested\n        return;\n      }\n\n      token.reason = new CanceledError(message, config, request);\n      resolvePromise(token.reason);\n    });\n  }\n\n  /**\n   * Throws a `CanceledError` if cancellation has been requested.\n   */\n  throwIfRequested() {\n    if (this.reason) {\n      throw this.reason;\n    }\n  }\n\n  /**\n   * Subscribe to the cancel signal\n   */\n\n  subscribe(listener) {\n    if (this.reason) {\n      listener(this.reason);\n      return;\n    }\n\n    if (this._listeners) {\n      this._listeners.push(listener);\n    } else {\n      this._listeners = [listener];\n    }\n  }\n\n  /**\n   * Unsubscribe from the cancel signal\n   */\n\n  unsubscribe(listener) {\n    if (!this._listeners) {\n      return;\n    }\n    const index = this._listeners.indexOf(listener);\n    if (index !== -1) {\n      this._listeners.splice(index, 1);\n    }\n  }\n\n  toAbortSignal() {\n    const controller = new AbortController();\n\n    const abort = (err) => {\n      controller.abort(err);\n    };\n\n    this.subscribe(abort);\n\n    controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n    return controller.signal;\n  }\n\n  /**\n   * Returns an object that contains a new `CancelToken` and a function that, when called,\n   * cancels the `CancelToken`.\n   */\n  static source() {\n    let cancel;\n    const token = new CancelToken(function executor(c) {\n      cancel = c;\n    });\n    return {\n      token,\n      cancel,\n    };\n  }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n  Continue: 100,\n  SwitchingProtocols: 101,\n  Processing: 102,\n  EarlyHints: 103,\n  Ok: 200,\n  Created: 201,\n  Accepted: 202,\n  NonAuthoritativeInformation: 203,\n  NoContent: 204,\n  ResetContent: 205,\n  PartialContent: 206,\n  MultiStatus: 207,\n  AlreadyReported: 208,\n  ImUsed: 226,\n  MultipleChoices: 300,\n  MovedPermanently: 301,\n  Found: 302,\n  SeeOther: 303,\n  NotModified: 304,\n  UseProxy: 305,\n  Unused: 306,\n  TemporaryRedirect: 307,\n  PermanentRedirect: 308,\n  BadRequest: 400,\n  Unauthorized: 401,\n  PaymentRequired: 402,\n  Forbidden: 403,\n  NotFound: 404,\n  MethodNotAllowed: 405,\n  NotAcceptable: 406,\n  ProxyAuthenticationRequired: 407,\n  RequestTimeout: 408,\n  Conflict: 409,\n  Gone: 410,\n  LengthRequired: 411,\n  PreconditionFailed: 412,\n  PayloadTooLarge: 413,\n  UriTooLong: 414,\n  UnsupportedMediaType: 415,\n  RangeNotSatisfiable: 416,\n  ExpectationFailed: 417,\n  ImATeapot: 418,\n  MisdirectedRequest: 421,\n  UnprocessableEntity: 422,\n  Locked: 423,\n  FailedDependency: 424,\n  TooEarly: 425,\n  UpgradeRequired: 426,\n  PreconditionRequired: 428,\n  TooManyRequests: 429,\n  RequestHeaderFieldsTooLarge: 431,\n  UnavailableForLegalReasons: 451,\n  InternalServerError: 500,\n  NotImplemented: 501,\n  BadGateway: 502,\n  ServiceUnavailable: 503,\n  GatewayTimeout: 504,\n  HttpVersionNotSupported: 505,\n  VariantAlsoNegotiates: 506,\n  InsufficientStorage: 507,\n  LoopDetected: 508,\n  NotExtended: 510,\n  NetworkAuthenticationRequired: 511,\n  WebServerIsDown: 521,\n  ConnectionTimedOut: 522,\n  OriginIsUnreachable: 523,\n  TimeoutOccurred: 524,\n  SslHandshakeFailed: 525,\n  InvalidSslCertificate: 526,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n  HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport { VERSION } from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from './core/AxiosHeaders.js';\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  const context = new Axios(defaultConfig);\n  const instance = bind(Axios.prototype.request, context);\n\n  // Copy axios.prototype to instance\n  utils.extend(instance, Axios.prototype, context, { allOwnKeys: true });\n\n  // Copy context to instance\n  utils.extend(instance, context, null, { allOwnKeys: true });\n\n  // Factory for creating new instances\n  instance.create = function create(instanceConfig) {\n    return createInstance(mergeConfig(defaultConfig, instanceConfig));\n  };\n\n  return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = (thing) => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n *  ```js\n *  function f(x, y, z) {}\n *  const args = [1, 2, 3];\n *  f.apply(null, args);\n *  ```\n *\n * With `spread` this example can be re-written.\n *\n *  ```js\n *  spread(function(x, y, z) {})([1, 2, 3]);\n *  ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n  return utils.isObject(payload) && payload.isAxiosError === true;\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/// <reference types=\"../types/index.d.ts\" />\n\n// (c) 2020-present Andrea Giammarchi\n\nconst {parse: $parse, stringify: $stringify} = JSON;\nconst {keys} = Object;\n\nconst Primitive = String;   // it could be Number\nconst primitive = 'string'; // it could be 'number'\n\nconst ignore = {};\nconst object = 'object';\n\nconst noop = (_, value) => value;\n\nconst primitives = value => (\n  value instanceof Primitive ? Primitive(value) : value\n);\n\nconst Primitives = (_, value) => (\n  typeof value === primitive ? new Primitive(value) : value\n);\n\nconst resolver = (input, lazy, parsed, $) => output => {\n  for (let ke = keys(output), {length} = ke, y = 0; y < length; y++) {\n    const k = ke[y];\n    const value = output[k];\n    if (value instanceof Primitive) {\n      const tmp = input[+value];\n      if (typeof tmp === object && !parsed.has(tmp)) {\n        parsed.add(tmp);\n        output[k] = ignore;\n        lazy.push({ o: output, k, r: tmp });\n      }\n      else\n        output[k] = $.call(output, k, tmp);\n    }\n    else if (output[k] !== ignore)\n      output[k] = $.call(output, k, value);\n  }\n  return output;\n};\n\nconst set = (known, input, value) => {\n  const index = Primitive(input.push(value) - 1);\n  known.set(value, index);\n  return index;\n};\n\n/**\n * Converts a specialized flatted string into a JS value.\n * @param {string} text\n * @param {(this: any, key: string, value: any) => any} [reviver]\n * @returns {any}\n */\nexport const parse = (text, reviver) => {\n  const input = $parse(text, Primitives).map(primitives);\n  const $ = reviver || noop;\n\n  let value = input[0];\n\n  if (typeof value === object && value) {\n    const lazy = [];\n    const revive = resolver(input, lazy, new Set, $);\n    value = revive(value);\n\n    let i = 0;\n    while (i < lazy.length) {\n      // it could be a lazy.shift() but that's costly\n      const {o, k, r} = lazy[i++];\n      o[k] = $.call(o, k, revive(r));\n    }\n  }\n\n  return $.call({'': value}, '', value);\n};\n\n/**\n * Converts a JS value into a specialized flatted string.\n * @param {any} value\n * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer]\n * @param {string | number | undefined} [space]\n * @returns {string}\n */\nexport const stringify = (value, replacer, space) => {\n  const $ = replacer && typeof replacer === object ?\n            (k, v) => (k === '' || -1 < replacer.indexOf(k) ? v : void 0) :\n            (replacer || noop);\n  const known = new Map;\n  const input = [];\n  const output = [];\n  let i = +set(known, input, $.call({'': value}, '', value));\n  let firstRun = !i;\n  while (i < input.length) {\n    firstRun = true;\n    output[i] = $stringify(input[i++], replace, space);\n  }\n  return '[' + output.join(',') + ']';\n  function replace(key, value) {\n    if (firstRun) {\n      firstRun = !firstRun;\n      return value;\n    }\n    const after = $.call(this, key, value);\n    switch (typeof after) {\n      case object:\n        if (after === null) return after;\n      case primitive:\n        return known.get(after) || set(known, input, after);\n    }\n    return after;\n  }\n};\n\n/**\n * Converts a generic value into a JSON serializable object without losing recursion.\n * @param {any} value\n * @returns {any}\n */\nexport const toJSON = value => $parse(stringify(value));\n\n/**\n * Converts a previously serialized object with recursion into a recursive one.\n * @param {any} value\n * @returns {any}\n */\nexport const fromJSON = value => parse($stringify(value));\n","import HTMLReactParser from './index.js';\n\nexport var domToReact = HTMLReactParser.domToReact;\nexport var htmlToDOM = HTMLReactParser.htmlToDOM;\nexport var attributesToProps = HTMLReactParser.attributesToProps;\n\n// domhandler\nexport var Comment = HTMLReactParser.Comment;\nexport var Element = HTMLReactParser.Element;\nexport var ProcessingInstruction = HTMLReactParser.ProcessingInstruction;\nexport var Text = HTMLReactParser.Text;\n\nexport default HTMLReactParser;\n","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n  if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n  t.prototype = Object.create(e && e.prototype, {\n    constructor: {\n      value: t,\n      writable: !0,\n      configurable: !0\n    }\n  }), Object.defineProperty(t, \"prototype\", {\n    writable: !1\n  }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n  if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n  if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n  return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };","function _getPrototypeOf(t) {\n  return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n    return t.__proto__ || Object.getPrototypeOf(t);\n  }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","import _typeof from '@babel/runtime/helpers/esm/typeof';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';\nimport _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport _toArray from '@babel/runtime/helpers/esm/toArray';\n\nfunction ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nvar consoleLogger = {\n  type: 'logger',\n  log: function log(args) {\n    this.output('log', args);\n  },\n  warn: function warn(args) {\n    this.output('warn', args);\n  },\n  error: function error(args) {\n    this.output('error', args);\n  },\n  output: function output(type, args) {\n    if (console && console[type]) console[type].apply(console, args);\n  }\n};\nvar Logger = function () {\n  function Logger(concreteLogger) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    _classCallCheck(this, Logger);\n    this.init(concreteLogger, options);\n  }\n  _createClass(Logger, [{\n    key: \"init\",\n    value: function init(concreteLogger) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      this.prefix = options.prefix || 'i18next:';\n      this.logger = concreteLogger || consoleLogger;\n      this.options = options;\n      this.debug = options.debug;\n    }\n  }, {\n    key: \"setDebug\",\n    value: function setDebug(bool) {\n      this.debug = bool;\n    }\n  }, {\n    key: \"log\",\n    value: function log() {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      return this.forward(args, 'log', '', true);\n    }\n  }, {\n    key: \"warn\",\n    value: function warn() {\n      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n      return this.forward(args, 'warn', '', true);\n    }\n  }, {\n    key: \"error\",\n    value: function error() {\n      for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n        args[_key3] = arguments[_key3];\n      }\n      return this.forward(args, 'error', '');\n    }\n  }, {\n    key: \"deprecate\",\n    value: function deprecate() {\n      for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n        args[_key4] = arguments[_key4];\n      }\n      return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n    }\n  }, {\n    key: \"forward\",\n    value: function forward(args, lvl, prefix, debugOnly) {\n      if (debugOnly && !this.debug) return null;\n      if (typeof args[0] === 'string') args[0] = \"\".concat(prefix).concat(this.prefix, \" \").concat(args[0]);\n      return this.logger[lvl](args);\n    }\n  }, {\n    key: \"create\",\n    value: function create(moduleName) {\n      return new Logger(this.logger, _objectSpread$6(_objectSpread$6({}, {\n        prefix: \"\".concat(this.prefix, \":\").concat(moduleName, \":\")\n      }), this.options));\n    }\n  }, {\n    key: \"clone\",\n    value: function clone(options) {\n      options = options || this.options;\n      options.prefix = options.prefix || this.prefix;\n      return new Logger(this.logger, options);\n    }\n  }]);\n  return Logger;\n}();\nvar baseLogger = new Logger();\n\nvar EventEmitter = function () {\n  function EventEmitter() {\n    _classCallCheck(this, EventEmitter);\n    this.observers = {};\n  }\n  _createClass(EventEmitter, [{\n    key: \"on\",\n    value: function on(events, listener) {\n      var _this = this;\n      events.split(' ').forEach(function (event) {\n        _this.observers[event] = _this.observers[event] || [];\n        _this.observers[event].push(listener);\n      });\n      return this;\n    }\n  }, {\n    key: \"off\",\n    value: function off(event, listener) {\n      if (!this.observers[event]) return;\n      if (!listener) {\n        delete this.observers[event];\n        return;\n      }\n      this.observers[event] = this.observers[event].filter(function (l) {\n        return l !== listener;\n      });\n    }\n  }, {\n    key: \"emit\",\n    value: function emit(event) {\n      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        args[_key - 1] = arguments[_key];\n      }\n      if (this.observers[event]) {\n        var cloned = [].concat(this.observers[event]);\n        cloned.forEach(function (observer) {\n          observer.apply(void 0, args);\n        });\n      }\n      if (this.observers['*']) {\n        var _cloned = [].concat(this.observers['*']);\n        _cloned.forEach(function (observer) {\n          observer.apply(observer, [event].concat(args));\n        });\n      }\n    }\n  }]);\n  return EventEmitter;\n}();\n\nfunction defer() {\n  var res;\n  var rej;\n  var promise = new Promise(function (resolve, reject) {\n    res = resolve;\n    rej = reject;\n  });\n  promise.resolve = res;\n  promise.reject = rej;\n  return promise;\n}\nfunction makeString(object) {\n  if (object == null) return '';\n  return '' + object;\n}\nfunction copy(a, s, t) {\n  a.forEach(function (m) {\n    if (s[m]) t[m] = s[m];\n  });\n}\nfunction getLastOfPath(object, path, Empty) {\n  function cleanKey(key) {\n    return key && key.indexOf('###') > -1 ? key.replace(/###/g, '.') : key;\n  }\n  function canNotTraverseDeeper() {\n    return !object || typeof object === 'string';\n  }\n  var stack = typeof path !== 'string' ? [].concat(path) : path.split('.');\n  while (stack.length > 1) {\n    if (canNotTraverseDeeper()) return {};\n    var key = cleanKey(stack.shift());\n    if (!object[key] && Empty) object[key] = new Empty();\n    if (Object.prototype.hasOwnProperty.call(object, key)) {\n      object = object[key];\n    } else {\n      object = {};\n    }\n  }\n  if (canNotTraverseDeeper()) return {};\n  return {\n    obj: object,\n    k: cleanKey(stack.shift())\n  };\n}\nfunction setPath(object, path, newValue) {\n  var _getLastOfPath = getLastOfPath(object, path, Object),\n    obj = _getLastOfPath.obj,\n    k = _getLastOfPath.k;\n  obj[k] = newValue;\n}\nfunction pushPath(object, path, newValue, concat) {\n  var _getLastOfPath2 = getLastOfPath(object, path, Object),\n    obj = _getLastOfPath2.obj,\n    k = _getLastOfPath2.k;\n  obj[k] = obj[k] || [];\n  if (concat) obj[k] = obj[k].concat(newValue);\n  if (!concat) obj[k].push(newValue);\n}\nfunction getPath(object, path) {\n  var _getLastOfPath3 = getLastOfPath(object, path),\n    obj = _getLastOfPath3.obj,\n    k = _getLastOfPath3.k;\n  if (!obj) return undefined;\n  return obj[k];\n}\nfunction getPathWithDefaults(data, defaultData, key) {\n  var value = getPath(data, key);\n  if (value !== undefined) {\n    return value;\n  }\n  return getPath(defaultData, key);\n}\nfunction deepExtend(target, source, overwrite) {\n  for (var prop in source) {\n    if (prop !== '__proto__' && prop !== 'constructor') {\n      if (prop in target) {\n        if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {\n          if (overwrite) target[prop] = source[prop];\n        } else {\n          deepExtend(target[prop], source[prop], overwrite);\n        }\n      } else {\n        target[prop] = source[prop];\n      }\n    }\n  }\n  return target;\n}\nfunction regexEscape(str) {\n  return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n}\nvar _entityMap = {\n  '&': '&amp;',\n  '<': '&lt;',\n  '>': '&gt;',\n  '\"': '&quot;',\n  \"'\": '&#39;',\n  '/': '&#x2F;'\n};\nfunction escape(data) {\n  if (typeof data === 'string') {\n    return data.replace(/[&<>\"'\\/]/g, function (s) {\n      return _entityMap[s];\n    });\n  }\n  return data;\n}\nvar isIE10 = typeof window !== 'undefined' && window.navigator && typeof window.navigator.userAgentData === 'undefined' && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;\nvar chars = [' ', ',', '?', '!', ';'];\nfunction looksLikeObjectPath(key, nsSeparator, keySeparator) {\n  nsSeparator = nsSeparator || '';\n  keySeparator = keySeparator || '';\n  var possibleChars = chars.filter(function (c) {\n    return nsSeparator.indexOf(c) < 0 && keySeparator.indexOf(c) < 0;\n  });\n  if (possibleChars.length === 0) return true;\n  var r = new RegExp(\"(\".concat(possibleChars.map(function (c) {\n    return c === '?' ? '\\\\?' : c;\n  }).join('|'), \")\"));\n  var matched = !r.test(key);\n  if (!matched) {\n    var ki = key.indexOf(keySeparator);\n    if (ki > 0 && !r.test(key.substring(0, ki))) {\n      matched = true;\n    }\n  }\n  return matched;\n}\nfunction deepFind(obj, path) {\n  var keySeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';\n  if (!obj) return undefined;\n  if (obj[path]) return obj[path];\n  var paths = path.split(keySeparator);\n  var current = obj;\n  for (var i = 0; i < paths.length; ++i) {\n    if (!current) return undefined;\n    if (typeof current[paths[i]] === 'string' && i + 1 < paths.length) {\n      return undefined;\n    }\n    if (current[paths[i]] === undefined) {\n      var j = 2;\n      var p = paths.slice(i, i + j).join(keySeparator);\n      var mix = current[p];\n      while (mix === undefined && paths.length > i + j) {\n        j++;\n        p = paths.slice(i, i + j).join(keySeparator);\n        mix = current[p];\n      }\n      if (mix === undefined) return undefined;\n      if (mix === null) return null;\n      if (path.endsWith(p)) {\n        if (typeof mix === 'string') return mix;\n        if (p && typeof mix[p] === 'string') return mix[p];\n      }\n      var joinedPath = paths.slice(i + j).join(keySeparator);\n      if (joinedPath) return deepFind(mix, joinedPath, keySeparator);\n      return undefined;\n    }\n    current = current[paths[i]];\n  }\n  return current;\n}\n\nfunction ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$3() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar ResourceStore = function (_EventEmitter) {\n  _inherits(ResourceStore, _EventEmitter);\n  var _super = _createSuper$3(ResourceStore);\n  function ResourceStore(data) {\n    var _this;\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n      ns: ['translation'],\n      defaultNS: 'translation'\n    };\n    _classCallCheck(this, ResourceStore);\n    _this = _super.call(this);\n    if (isIE10) {\n      EventEmitter.call(_assertThisInitialized(_this));\n    }\n    _this.data = data || {};\n    _this.options = options;\n    if (_this.options.keySeparator === undefined) {\n      _this.options.keySeparator = '.';\n    }\n    if (_this.options.ignoreJSONStructure === undefined) {\n      _this.options.ignoreJSONStructure = true;\n    }\n    return _this;\n  }\n  _createClass(ResourceStore, [{\n    key: \"addNamespaces\",\n    value: function addNamespaces(ns) {\n      if (this.options.ns.indexOf(ns) < 0) {\n        this.options.ns.push(ns);\n      }\n    }\n  }, {\n    key: \"removeNamespaces\",\n    value: function removeNamespaces(ns) {\n      var index = this.options.ns.indexOf(ns);\n      if (index > -1) {\n        this.options.ns.splice(index, 1);\n      }\n    }\n  }, {\n    key: \"getResource\",\n    value: function getResource(lng, ns, key) {\n      var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n      var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n      var ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n      var path = [lng, ns];\n      if (key && typeof key !== 'string') path = path.concat(key);\n      if (key && typeof key === 'string') path = path.concat(keySeparator ? key.split(keySeparator) : key);\n      if (lng.indexOf('.') > -1) {\n        path = lng.split('.');\n      }\n      var result = getPath(this.data, path);\n      if (result || !ignoreJSONStructure || typeof key !== 'string') return result;\n      return deepFind(this.data && this.data[lng] && this.data[lng][ns], key, keySeparator);\n    }\n  }, {\n    key: \"addResource\",\n    value: function addResource(lng, ns, key, value) {\n      var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n        silent: false\n      };\n      var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n      var path = [lng, ns];\n      if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n      if (lng.indexOf('.') > -1) {\n        path = lng.split('.');\n        value = ns;\n        ns = path[1];\n      }\n      this.addNamespaces(ns);\n      setPath(this.data, path, value);\n      if (!options.silent) this.emit('added', lng, ns, key, value);\n    }\n  }, {\n    key: \"addResources\",\n    value: function addResources(lng, ns, resources) {\n      var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n        silent: false\n      };\n      for (var m in resources) {\n        if (typeof resources[m] === 'string' || Object.prototype.toString.apply(resources[m]) === '[object Array]') this.addResource(lng, ns, m, resources[m], {\n          silent: true\n        });\n      }\n      if (!options.silent) this.emit('added', lng, ns, resources);\n    }\n  }, {\n    key: \"addResourceBundle\",\n    value: function addResourceBundle(lng, ns, resources, deep, overwrite) {\n      var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {\n        silent: false\n      };\n      var path = [lng, ns];\n      if (lng.indexOf('.') > -1) {\n        path = lng.split('.');\n        deep = resources;\n        resources = ns;\n        ns = path[1];\n      }\n      this.addNamespaces(ns);\n      var pack = getPath(this.data, path) || {};\n      if (deep) {\n        deepExtend(pack, resources, overwrite);\n      } else {\n        pack = _objectSpread$5(_objectSpread$5({}, pack), resources);\n      }\n      setPath(this.data, path, pack);\n      if (!options.silent) this.emit('added', lng, ns, resources);\n    }\n  }, {\n    key: \"removeResourceBundle\",\n    value: function removeResourceBundle(lng, ns) {\n      if (this.hasResourceBundle(lng, ns)) {\n        delete this.data[lng][ns];\n      }\n      this.removeNamespaces(ns);\n      this.emit('removed', lng, ns);\n    }\n  }, {\n    key: \"hasResourceBundle\",\n    value: function hasResourceBundle(lng, ns) {\n      return this.getResource(lng, ns) !== undefined;\n    }\n  }, {\n    key: \"getResourceBundle\",\n    value: function getResourceBundle(lng, ns) {\n      if (!ns) ns = this.options.defaultNS;\n      if (this.options.compatibilityAPI === 'v1') return _objectSpread$5(_objectSpread$5({}, {}), this.getResource(lng, ns));\n      return this.getResource(lng, ns);\n    }\n  }, {\n    key: \"getDataByLanguage\",\n    value: function getDataByLanguage(lng) {\n      return this.data[lng];\n    }\n  }, {\n    key: \"hasLanguageSomeTranslations\",\n    value: function hasLanguageSomeTranslations(lng) {\n      var data = this.getDataByLanguage(lng);\n      var n = data && Object.keys(data) || [];\n      return !!n.find(function (v) {\n        return data[v] && Object.keys(data[v]).length > 0;\n      });\n    }\n  }, {\n    key: \"toJSON\",\n    value: function toJSON() {\n      return this.data;\n    }\n  }]);\n  return ResourceStore;\n}(EventEmitter);\n\nvar postProcessor = {\n  processors: {},\n  addPostProcessor: function addPostProcessor(module) {\n    this.processors[module.name] = module;\n  },\n  handle: function handle(processors, value, key, options, translator) {\n    var _this = this;\n    processors.forEach(function (processor) {\n      if (_this.processors[processor]) value = _this.processors[processor].process(value, key, options, translator);\n    });\n    return value;\n  }\n};\n\nfunction ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar checkedLoadedFor = {};\nvar Translator = function (_EventEmitter) {\n  _inherits(Translator, _EventEmitter);\n  var _super = _createSuper$2(Translator);\n  function Translator(services) {\n    var _this;\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    _classCallCheck(this, Translator);\n    _this = _super.call(this);\n    if (isIE10) {\n      EventEmitter.call(_assertThisInitialized(_this));\n    }\n    copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized(_this));\n    _this.options = options;\n    if (_this.options.keySeparator === undefined) {\n      _this.options.keySeparator = '.';\n    }\n    _this.logger = baseLogger.create('translator');\n    return _this;\n  }\n  _createClass(Translator, [{\n    key: \"changeLanguage\",\n    value: function changeLanguage(lng) {\n      if (lng) this.language = lng;\n    }\n  }, {\n    key: \"exists\",\n    value: function exists(key) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        interpolation: {}\n      };\n      if (key === undefined || key === null) {\n        return false;\n      }\n      var resolved = this.resolve(key, options);\n      return resolved && resolved.res !== undefined;\n    }\n  }, {\n    key: \"extractFromKey\",\n    value: function extractFromKey(key, options) {\n      var nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator;\n      if (nsSeparator === undefined) nsSeparator = ':';\n      var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n      var namespaces = options.ns || this.options.defaultNS || [];\n      var wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;\n      var seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !options.keySeparator && !this.options.userDefinedNsSeparator && !options.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);\n      if (wouldCheckForNsInKey && !seemsNaturalLanguage) {\n        var m = key.match(this.interpolator.nestingRegexp);\n        if (m && m.length > 0) {\n          return {\n            key: key,\n            namespaces: namespaces\n          };\n        }\n        var parts = key.split(nsSeparator);\n        if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();\n        key = parts.join(keySeparator);\n      }\n      if (typeof namespaces === 'string') namespaces = [namespaces];\n      return {\n        key: key,\n        namespaces: namespaces\n      };\n    }\n  }, {\n    key: \"translate\",\n    value: function translate(keys, options, lastKey) {\n      var _this2 = this;\n      if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {\n        options = this.options.overloadTranslationOptionHandler(arguments);\n      }\n      if (_typeof(options) === 'object') options = _objectSpread$4({}, options);\n      if (!options) options = {};\n      if (keys === undefined || keys === null) return '';\n      if (!Array.isArray(keys)) keys = [String(keys)];\n      var returnDetails = options.returnDetails !== undefined ? options.returnDetails : this.options.returnDetails;\n      var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n      var _this$extractFromKey = this.extractFromKey(keys[keys.length - 1], options),\n        key = _this$extractFromKey.key,\n        namespaces = _this$extractFromKey.namespaces;\n      var namespace = namespaces[namespaces.length - 1];\n      var lng = options.lng || this.language;\n      var appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n      if (lng && lng.toLowerCase() === 'cimode') {\n        if (appendNamespaceToCIMode) {\n          var nsSeparator = options.nsSeparator || this.options.nsSeparator;\n          if (returnDetails) {\n            return {\n              res: \"\".concat(namespace).concat(nsSeparator).concat(key),\n              usedKey: key,\n              exactUsedKey: key,\n              usedLng: lng,\n              usedNS: namespace\n            };\n          }\n          return \"\".concat(namespace).concat(nsSeparator).concat(key);\n        }\n        if (returnDetails) {\n          return {\n            res: key,\n            usedKey: key,\n            exactUsedKey: key,\n            usedLng: lng,\n            usedNS: namespace\n          };\n        }\n        return key;\n      }\n      var resolved = this.resolve(keys, options);\n      var res = resolved && resolved.res;\n      var resUsedKey = resolved && resolved.usedKey || key;\n      var resExactUsedKey = resolved && resolved.exactUsedKey || key;\n      var resType = Object.prototype.toString.apply(res);\n      var noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n      var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;\n      var handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n      var handleAsObject = typeof res !== 'string' && typeof res !== 'boolean' && typeof res !== 'number';\n      if (handleAsObjectInI18nFormat && res && handleAsObject && noObject.indexOf(resType) < 0 && !(typeof joinArrays === 'string' && resType === '[object Array]')) {\n        if (!options.returnObjects && !this.options.returnObjects) {\n          if (!this.options.returnedObjectHandler) {\n            this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n          }\n          var r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, res, _objectSpread$4(_objectSpread$4({}, options), {}, {\n            ns: namespaces\n          })) : \"key '\".concat(key, \" (\").concat(this.language, \")' returned an object instead of string.\");\n          if (returnDetails) {\n            resolved.res = r;\n            return resolved;\n          }\n          return r;\n        }\n        if (keySeparator) {\n          var resTypeIsArray = resType === '[object Array]';\n          var copy = resTypeIsArray ? [] : {};\n          var newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n          for (var m in res) {\n            if (Object.prototype.hasOwnProperty.call(res, m)) {\n              var deepKey = \"\".concat(newKeyToUse).concat(keySeparator).concat(m);\n              copy[m] = this.translate(deepKey, _objectSpread$4(_objectSpread$4({}, options), {\n                joinArrays: false,\n                ns: namespaces\n              }));\n              if (copy[m] === deepKey) copy[m] = res[m];\n            }\n          }\n          res = copy;\n        }\n      } else if (handleAsObjectInI18nFormat && typeof joinArrays === 'string' && resType === '[object Array]') {\n        res = res.join(joinArrays);\n        if (res) res = this.extendTranslation(res, keys, options, lastKey);\n      } else {\n        var usedDefault = false;\n        var usedKey = false;\n        var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';\n        var hasDefaultValue = Translator.hasDefaultValue(options);\n        var defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : '';\n        var defaultValue = options[\"defaultValue\".concat(defaultValueSuffix)] || options.defaultValue;\n        if (!this.isValidLookup(res) && hasDefaultValue) {\n          usedDefault = true;\n          res = defaultValue;\n        }\n        if (!this.isValidLookup(res)) {\n          usedKey = true;\n          res = key;\n        }\n        var missingKeyNoValueFallbackToKey = options.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;\n        var resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;\n        var updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n        if (usedKey || usedDefault || updateMissing) {\n          this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n          if (keySeparator) {\n            var fk = this.resolve(key, _objectSpread$4(_objectSpread$4({}, options), {}, {\n              keySeparator: false\n            }));\n            if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n          }\n          var lngs = [];\n          var fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);\n          if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n            for (var i = 0; i < fallbackLngs.length; i++) {\n              lngs.push(fallbackLngs[i]);\n            }\n          } else if (this.options.saveMissingTo === 'all') {\n            lngs = this.languageUtils.toResolveHierarchy(options.lng || this.language);\n          } else {\n            lngs.push(options.lng || this.language);\n          }\n          var send = function send(l, k, specificDefaultValue) {\n            var defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;\n            if (_this2.options.missingKeyHandler) {\n              _this2.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, options);\n            } else if (_this2.backendConnector && _this2.backendConnector.saveMissing) {\n              _this2.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, options);\n            }\n            _this2.emit('missingKey', l, namespace, k, res);\n          };\n          if (this.options.saveMissing) {\n            if (this.options.saveMissingPlurals && needsPluralHandling) {\n              lngs.forEach(function (language) {\n                _this2.pluralResolver.getSuffixes(language, options).forEach(function (suffix) {\n                  send([language], key + suffix, options[\"defaultValue\".concat(suffix)] || defaultValue);\n                });\n              });\n            } else {\n              send(lngs, key, defaultValue);\n            }\n          }\n        }\n        res = this.extendTranslation(res, keys, options, resolved, lastKey);\n        if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = \"\".concat(namespace, \":\").concat(key);\n        if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {\n          if (this.options.compatibilityAPI !== 'v1') {\n            res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? \"\".concat(namespace, \":\").concat(key) : key, usedDefault ? res : undefined);\n          } else {\n            res = this.options.parseMissingKeyHandler(res);\n          }\n        }\n      }\n      if (returnDetails) {\n        resolved.res = res;\n        return resolved;\n      }\n      return res;\n    }\n  }, {\n    key: \"extendTranslation\",\n    value: function extendTranslation(res, key, options, resolved, lastKey) {\n      var _this3 = this;\n      if (this.i18nFormat && this.i18nFormat.parse) {\n        res = this.i18nFormat.parse(res, _objectSpread$4(_objectSpread$4({}, this.options.interpolation.defaultVariables), options), resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n          resolved: resolved\n        });\n      } else if (!options.skipInterpolation) {\n        if (options.interpolation) this.interpolator.init(_objectSpread$4(_objectSpread$4({}, options), {\n          interpolation: _objectSpread$4(_objectSpread$4({}, this.options.interpolation), options.interpolation)\n        }));\n        var skipOnVariables = typeof res === 'string' && (options && options.interpolation && options.interpolation.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);\n        var nestBef;\n        if (skipOnVariables) {\n          var nb = res.match(this.interpolator.nestingRegexp);\n          nestBef = nb && nb.length;\n        }\n        var data = options.replace && typeof options.replace !== 'string' ? options.replace : options;\n        if (this.options.interpolation.defaultVariables) data = _objectSpread$4(_objectSpread$4({}, this.options.interpolation.defaultVariables), data);\n        res = this.interpolator.interpolate(res, data, options.lng || this.language, options);\n        if (skipOnVariables) {\n          var na = res.match(this.interpolator.nestingRegexp);\n          var nestAft = na && na.length;\n          if (nestBef < nestAft) options.nest = false;\n        }\n        if (!options.lng && this.options.compatibilityAPI !== 'v1' && resolved && resolved.res) options.lng = resolved.usedLng;\n        if (options.nest !== false) res = this.interpolator.nest(res, function () {\n          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n            args[_key] = arguments[_key];\n          }\n          if (lastKey && lastKey[0] === args[0] && !options.context) {\n            _this3.logger.warn(\"It seems you are nesting recursively key: \".concat(args[0], \" in key: \").concat(key[0]));\n            return null;\n          }\n          return _this3.translate.apply(_this3, args.concat([key]));\n        }, options);\n        if (options.interpolation) this.interpolator.reset();\n      }\n      var postProcess = options.postProcess || this.options.postProcess;\n      var postProcessorNames = typeof postProcess === 'string' ? [postProcess] : postProcess;\n      if (res !== undefined && res !== null && postProcessorNames && postProcessorNames.length && options.applyPostProcessor !== false) {\n        res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? _objectSpread$4({\n          i18nResolved: resolved\n        }, options) : options, this);\n      }\n      return res;\n    }\n  }, {\n    key: \"resolve\",\n    value: function resolve(keys) {\n      var _this4 = this;\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var found;\n      var usedKey;\n      var exactUsedKey;\n      var usedLng;\n      var usedNS;\n      if (typeof keys === 'string') keys = [keys];\n      keys.forEach(function (k) {\n        if (_this4.isValidLookup(found)) return;\n        var extracted = _this4.extractFromKey(k, options);\n        var key = extracted.key;\n        usedKey = key;\n        var namespaces = extracted.namespaces;\n        if (_this4.options.fallbackNS) namespaces = namespaces.concat(_this4.options.fallbackNS);\n        var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';\n        var needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0 && _this4.pluralResolver.shouldUseIntlApi();\n        var needsContextHandling = options.context !== undefined && (typeof options.context === 'string' || typeof options.context === 'number') && options.context !== '';\n        var codes = options.lngs ? options.lngs : _this4.languageUtils.toResolveHierarchy(options.lng || _this4.language, options.fallbackLng);\n        namespaces.forEach(function (ns) {\n          if (_this4.isValidLookup(found)) return;\n          usedNS = ns;\n          if (!checkedLoadedFor[\"\".concat(codes[0], \"-\").concat(ns)] && _this4.utils && _this4.utils.hasLoadedNamespace && !_this4.utils.hasLoadedNamespace(usedNS)) {\n            checkedLoadedFor[\"\".concat(codes[0], \"-\").concat(ns)] = true;\n            _this4.logger.warn(\"key \\\"\".concat(usedKey, \"\\\" for languages \\\"\").concat(codes.join(', '), \"\\\" won't get resolved as namespace \\\"\").concat(usedNS, \"\\\" was not yet loaded\"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n          }\n          codes.forEach(function (code) {\n            if (_this4.isValidLookup(found)) return;\n            usedLng = code;\n            var finalKeys = [key];\n            if (_this4.i18nFormat && _this4.i18nFormat.addLookupKeys) {\n              _this4.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options);\n            } else {\n              var pluralSuffix;\n              if (needsPluralHandling) pluralSuffix = _this4.pluralResolver.getSuffix(code, options.count, options);\n              var zeroSuffix = \"\".concat(_this4.options.pluralSeparator, \"zero\");\n              if (needsPluralHandling) {\n                finalKeys.push(key + pluralSuffix);\n                if (needsZeroSuffixLookup) {\n                  finalKeys.push(key + zeroSuffix);\n                }\n              }\n              if (needsContextHandling) {\n                var contextKey = \"\".concat(key).concat(_this4.options.contextSeparator).concat(options.context);\n                finalKeys.push(contextKey);\n                if (needsPluralHandling) {\n                  finalKeys.push(contextKey + pluralSuffix);\n                  if (needsZeroSuffixLookup) {\n                    finalKeys.push(contextKey + zeroSuffix);\n                  }\n                }\n              }\n            }\n            var possibleKey;\n            while (possibleKey = finalKeys.pop()) {\n              if (!_this4.isValidLookup(found)) {\n                exactUsedKey = possibleKey;\n                found = _this4.getResource(code, ns, possibleKey, options);\n              }\n            }\n          });\n        });\n      });\n      return {\n        res: found,\n        usedKey: usedKey,\n        exactUsedKey: exactUsedKey,\n        usedLng: usedLng,\n        usedNS: usedNS\n      };\n    }\n  }, {\n    key: \"isValidLookup\",\n    value: function isValidLookup(res) {\n      return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n    }\n  }, {\n    key: \"getResource\",\n    value: function getResource(code, ns, key) {\n      var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n      if (this.i18nFormat && this.i18nFormat.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n      return this.resourceStore.getResource(code, ns, key, options);\n    }\n  }], [{\n    key: \"hasDefaultValue\",\n    value: function hasDefaultValue(options) {\n      var prefix = 'defaultValue';\n      for (var option in options) {\n        if (Object.prototype.hasOwnProperty.call(options, option) && prefix === option.substring(0, prefix.length) && undefined !== options[option]) {\n          return true;\n        }\n      }\n      return false;\n    }\n  }]);\n  return Translator;\n}(EventEmitter);\n\nfunction capitalize(string) {\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}\nvar LanguageUtil = function () {\n  function LanguageUtil(options) {\n    _classCallCheck(this, LanguageUtil);\n    this.options = options;\n    this.supportedLngs = this.options.supportedLngs || false;\n    this.logger = baseLogger.create('languageUtils');\n  }\n  _createClass(LanguageUtil, [{\n    key: \"getScriptPartFromCode\",\n    value: function getScriptPartFromCode(code) {\n      if (!code || code.indexOf('-') < 0) return null;\n      var p = code.split('-');\n      if (p.length === 2) return null;\n      p.pop();\n      if (p[p.length - 1].toLowerCase() === 'x') return null;\n      return this.formatLanguageCode(p.join('-'));\n    }\n  }, {\n    key: \"getLanguagePartFromCode\",\n    value: function getLanguagePartFromCode(code) {\n      if (!code || code.indexOf('-') < 0) return code;\n      var p = code.split('-');\n      return this.formatLanguageCode(p[0]);\n    }\n  }, {\n    key: \"formatLanguageCode\",\n    value: function formatLanguageCode(code) {\n      if (typeof code === 'string' && code.indexOf('-') > -1) {\n        var specialCases = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab'];\n        var p = code.split('-');\n        if (this.options.lowerCaseLng) {\n          p = p.map(function (part) {\n            return part.toLowerCase();\n          });\n        } else if (p.length === 2) {\n          p[0] = p[0].toLowerCase();\n          p[1] = p[1].toUpperCase();\n          if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());\n        } else if (p.length === 3) {\n          p[0] = p[0].toLowerCase();\n          if (p[1].length === 2) p[1] = p[1].toUpperCase();\n          if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase();\n          if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());\n          if (specialCases.indexOf(p[2].toLowerCase()) > -1) p[2] = capitalize(p[2].toLowerCase());\n        }\n        return p.join('-');\n      }\n      return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n    }\n  }, {\n    key: \"isSupportedCode\",\n    value: function isSupportedCode(code) {\n      if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n        code = this.getLanguagePartFromCode(code);\n      }\n      return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1;\n    }\n  }, {\n    key: \"getBestMatchFromCodes\",\n    value: function getBestMatchFromCodes(codes) {\n      var _this = this;\n      if (!codes) return null;\n      var found;\n      codes.forEach(function (code) {\n        if (found) return;\n        var cleanedLng = _this.formatLanguageCode(code);\n        if (!_this.options.supportedLngs || _this.isSupportedCode(cleanedLng)) found = cleanedLng;\n      });\n      if (!found && this.options.supportedLngs) {\n        codes.forEach(function (code) {\n          if (found) return;\n          var lngOnly = _this.getLanguagePartFromCode(code);\n          if (_this.isSupportedCode(lngOnly)) return found = lngOnly;\n          found = _this.options.supportedLngs.find(function (supportedLng) {\n            if (supportedLng === lngOnly) return supportedLng;\n            if (supportedLng.indexOf('-') < 0 && lngOnly.indexOf('-') < 0) return;\n            if (supportedLng.indexOf(lngOnly) === 0) return supportedLng;\n          });\n        });\n      }\n      if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n      return found;\n    }\n  }, {\n    key: \"getFallbackCodes\",\n    value: function getFallbackCodes(fallbacks, code) {\n      if (!fallbacks) return [];\n      if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n      if (typeof fallbacks === 'string') fallbacks = [fallbacks];\n      if (Object.prototype.toString.apply(fallbacks) === '[object Array]') return fallbacks;\n      if (!code) return fallbacks[\"default\"] || [];\n      var found = fallbacks[code];\n      if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n      if (!found) found = fallbacks[this.formatLanguageCode(code)];\n      if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n      if (!found) found = fallbacks[\"default\"];\n      return found || [];\n    }\n  }, {\n    key: \"toResolveHierarchy\",\n    value: function toResolveHierarchy(code, fallbackCode) {\n      var _this2 = this;\n      var fallbackCodes = this.getFallbackCodes(fallbackCode || this.options.fallbackLng || [], code);\n      var codes = [];\n      var addCode = function addCode(c) {\n        if (!c) return;\n        if (_this2.isSupportedCode(c)) {\n          codes.push(c);\n        } else {\n          _this2.logger.warn(\"rejecting language code not found in supportedLngs: \".concat(c));\n        }\n      };\n      if (typeof code === 'string' && code.indexOf('-') > -1) {\n        if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n        if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n        if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n      } else if (typeof code === 'string') {\n        addCode(this.formatLanguageCode(code));\n      }\n      fallbackCodes.forEach(function (fc) {\n        if (codes.indexOf(fc) < 0) addCode(_this2.formatLanguageCode(fc));\n      });\n      return codes;\n    }\n  }]);\n  return LanguageUtil;\n}();\n\nvar sets = [{\n  lngs: ['ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'tl', 'ti', 'tr', 'uz', 'wa'],\n  nr: [1, 2],\n  fc: 1\n}, {\n  lngs: ['af', 'an', 'ast', 'az', 'bg', 'bn', 'ca', 'da', 'de', 'dev', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fi', 'fo', 'fur', 'fy', 'gl', 'gu', 'ha', 'hi', 'hu', 'hy', 'ia', 'it', 'kk', 'kn', 'ku', 'lb', 'mai', 'ml', 'mn', 'mr', 'nah', 'nap', 'nb', 'ne', 'nl', 'nn', 'no', 'nso', 'pa', 'pap', 'pms', 'ps', 'pt-PT', 'rm', 'sco', 'se', 'si', 'so', 'son', 'sq', 'sv', 'sw', 'ta', 'te', 'tk', 'ur', 'yo'],\n  nr: [1, 2],\n  fc: 2\n}, {\n  lngs: ['ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],\n  nr: [1],\n  fc: 3\n}, {\n  lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'],\n  nr: [1, 2, 5],\n  fc: 4\n}, {\n  lngs: ['ar'],\n  nr: [0, 1, 2, 3, 11, 100],\n  fc: 5\n}, {\n  lngs: ['cs', 'sk'],\n  nr: [1, 2, 5],\n  fc: 6\n}, {\n  lngs: ['csb', 'pl'],\n  nr: [1, 2, 5],\n  fc: 7\n}, {\n  lngs: ['cy'],\n  nr: [1, 2, 3, 8],\n  fc: 8\n}, {\n  lngs: ['fr'],\n  nr: [1, 2],\n  fc: 9\n}, {\n  lngs: ['ga'],\n  nr: [1, 2, 3, 7, 11],\n  fc: 10\n}, {\n  lngs: ['gd'],\n  nr: [1, 2, 3, 20],\n  fc: 11\n}, {\n  lngs: ['is'],\n  nr: [1, 2],\n  fc: 12\n}, {\n  lngs: ['jv'],\n  nr: [0, 1],\n  fc: 13\n}, {\n  lngs: ['kw'],\n  nr: [1, 2, 3, 4],\n  fc: 14\n}, {\n  lngs: ['lt'],\n  nr: [1, 2, 10],\n  fc: 15\n}, {\n  lngs: ['lv'],\n  nr: [1, 2, 0],\n  fc: 16\n}, {\n  lngs: ['mk'],\n  nr: [1, 2],\n  fc: 17\n}, {\n  lngs: ['mnk'],\n  nr: [0, 1, 2],\n  fc: 18\n}, {\n  lngs: ['mt'],\n  nr: [1, 2, 11, 20],\n  fc: 19\n}, {\n  lngs: ['or'],\n  nr: [2, 1],\n  fc: 2\n}, {\n  lngs: ['ro'],\n  nr: [1, 2, 20],\n  fc: 20\n}, {\n  lngs: ['sl'],\n  nr: [5, 1, 2, 3],\n  fc: 21\n}, {\n  lngs: ['he', 'iw'],\n  nr: [1, 2, 20, 21],\n  fc: 22\n}];\nvar _rulesPluralsTypes = {\n  1: function _(n) {\n    return Number(n > 1);\n  },\n  2: function _(n) {\n    return Number(n != 1);\n  },\n  3: function _(n) {\n    return 0;\n  },\n  4: function _(n) {\n    return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n  },\n  5: function _(n) {\n    return Number(n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);\n  },\n  6: function _(n) {\n    return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);\n  },\n  7: function _(n) {\n    return Number(n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n  },\n  8: function _(n) {\n    return Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3);\n  },\n  9: function _(n) {\n    return Number(n >= 2);\n  },\n  10: function _(n) {\n    return Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4);\n  },\n  11: function _(n) {\n    return Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3);\n  },\n  12: function _(n) {\n    return Number(n % 10 != 1 || n % 100 == 11);\n  },\n  13: function _(n) {\n    return Number(n !== 0);\n  },\n  14: function _(n) {\n    return Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3);\n  },\n  15: function _(n) {\n    return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n  },\n  16: function _(n) {\n    return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);\n  },\n  17: function _(n) {\n    return Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1);\n  },\n  18: function _(n) {\n    return Number(n == 0 ? 0 : n == 1 ? 1 : 2);\n  },\n  19: function _(n) {\n    return Number(n == 1 ? 0 : n == 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3);\n  },\n  20: function _(n) {\n    return Number(n == 1 ? 0 : n == 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2);\n  },\n  21: function _(n) {\n    return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);\n  },\n  22: function _(n) {\n    return Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);\n  }\n};\nvar deprecatedJsonVersions = ['v1', 'v2', 'v3'];\nvar suffixesOrder = {\n  zero: 0,\n  one: 1,\n  two: 2,\n  few: 3,\n  many: 4,\n  other: 5\n};\nfunction createRules() {\n  var rules = {};\n  sets.forEach(function (set) {\n    set.lngs.forEach(function (l) {\n      rules[l] = {\n        numbers: set.nr,\n        plurals: _rulesPluralsTypes[set.fc]\n      };\n    });\n  });\n  return rules;\n}\nvar PluralResolver = function () {\n  function PluralResolver(languageUtils) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    _classCallCheck(this, PluralResolver);\n    this.languageUtils = languageUtils;\n    this.options = options;\n    this.logger = baseLogger.create('pluralResolver');\n    if ((!this.options.compatibilityJSON || this.options.compatibilityJSON === 'v4') && (typeof Intl === 'undefined' || !Intl.PluralRules)) {\n      this.options.compatibilityJSON = 'v3';\n      this.logger.error('Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.');\n    }\n    this.rules = createRules();\n  }\n  _createClass(PluralResolver, [{\n    key: \"addRule\",\n    value: function addRule(lng, obj) {\n      this.rules[lng] = obj;\n    }\n  }, {\n    key: \"getRule\",\n    value: function getRule(code) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      if (this.shouldUseIntlApi()) {\n        try {\n          return new Intl.PluralRules(code, {\n            type: options.ordinal ? 'ordinal' : 'cardinal'\n          });\n        } catch (_unused) {\n          return;\n        }\n      }\n      return this.rules[code] || this.rules[this.languageUtils.getLanguagePartFromCode(code)];\n    }\n  }, {\n    key: \"needsPlural\",\n    value: function needsPlural(code) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var rule = this.getRule(code, options);\n      if (this.shouldUseIntlApi()) {\n        return rule && rule.resolvedOptions().pluralCategories.length > 1;\n      }\n      return rule && rule.numbers.length > 1;\n    }\n  }, {\n    key: \"getPluralFormsOfKey\",\n    value: function getPluralFormsOfKey(code, key) {\n      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      return this.getSuffixes(code, options).map(function (suffix) {\n        return \"\".concat(key).concat(suffix);\n      });\n    }\n  }, {\n    key: \"getSuffixes\",\n    value: function getSuffixes(code) {\n      var _this = this;\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      var rule = this.getRule(code, options);\n      if (!rule) {\n        return [];\n      }\n      if (this.shouldUseIntlApi()) {\n        return rule.resolvedOptions().pluralCategories.sort(function (pluralCategory1, pluralCategory2) {\n          return suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2];\n        }).map(function (pluralCategory) {\n          return \"\".concat(_this.options.prepend).concat(pluralCategory);\n        });\n      }\n      return rule.numbers.map(function (number) {\n        return _this.getSuffix(code, number, options);\n      });\n    }\n  }, {\n    key: \"getSuffix\",\n    value: function getSuffix(code, count) {\n      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      var rule = this.getRule(code, options);\n      if (rule) {\n        if (this.shouldUseIntlApi()) {\n          return \"\".concat(this.options.prepend).concat(rule.select(count));\n        }\n        return this.getSuffixRetroCompatible(rule, count);\n      }\n      this.logger.warn(\"no plural rule found for: \".concat(code));\n      return '';\n    }\n  }, {\n    key: \"getSuffixRetroCompatible\",\n    value: function getSuffixRetroCompatible(rule, count) {\n      var _this2 = this;\n      var idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count));\n      var suffix = rule.numbers[idx];\n      if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {\n        if (suffix === 2) {\n          suffix = 'plural';\n        } else if (suffix === 1) {\n          suffix = '';\n        }\n      }\n      var returnSuffix = function returnSuffix() {\n        return _this2.options.prepend && suffix.toString() ? _this2.options.prepend + suffix.toString() : suffix.toString();\n      };\n      if (this.options.compatibilityJSON === 'v1') {\n        if (suffix === 1) return '';\n        if (typeof suffix === 'number') return \"_plural_\".concat(suffix.toString());\n        return returnSuffix();\n      } else if (this.options.compatibilityJSON === 'v2') {\n        return returnSuffix();\n      } else if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {\n        return returnSuffix();\n      }\n      return this.options.prepend && idx.toString() ? this.options.prepend + idx.toString() : idx.toString();\n    }\n  }, {\n    key: \"shouldUseIntlApi\",\n    value: function shouldUseIntlApi() {\n      return !deprecatedJsonVersions.includes(this.options.compatibilityJSON);\n    }\n  }]);\n  return PluralResolver;\n}();\n\nfunction ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction deepFindWithDefaults(data, defaultData, key) {\n  var keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';\n  var ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n  var path = getPathWithDefaults(data, defaultData, key);\n  if (!path && ignoreJSONStructure && typeof key === 'string') {\n    path = deepFind(data, key, keySeparator);\n    if (path === undefined) path = deepFind(defaultData, key, keySeparator);\n  }\n  return path;\n}\nvar Interpolator = function () {\n  function Interpolator() {\n    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    _classCallCheck(this, Interpolator);\n    this.logger = baseLogger.create('interpolator');\n    this.options = options;\n    this.format = options.interpolation && options.interpolation.format || function (value) {\n      return value;\n    };\n    this.init(options);\n  }\n  _createClass(Interpolator, [{\n    key: \"init\",\n    value: function init() {\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      if (!options.interpolation) options.interpolation = {\n        escapeValue: true\n      };\n      var iOpts = options.interpolation;\n      this.escape = iOpts.escape !== undefined ? iOpts.escape : escape;\n      this.escapeValue = iOpts.escapeValue !== undefined ? iOpts.escapeValue : true;\n      this.useRawValueToEscape = iOpts.useRawValueToEscape !== undefined ? iOpts.useRawValueToEscape : false;\n      this.prefix = iOpts.prefix ? regexEscape(iOpts.prefix) : iOpts.prefixEscaped || '{{';\n      this.suffix = iOpts.suffix ? regexEscape(iOpts.suffix) : iOpts.suffixEscaped || '}}';\n      this.formatSeparator = iOpts.formatSeparator ? iOpts.formatSeparator : iOpts.formatSeparator || ',';\n      this.unescapePrefix = iOpts.unescapeSuffix ? '' : iOpts.unescapePrefix || '-';\n      this.unescapeSuffix = this.unescapePrefix ? '' : iOpts.unescapeSuffix || '';\n      this.nestingPrefix = iOpts.nestingPrefix ? regexEscape(iOpts.nestingPrefix) : iOpts.nestingPrefixEscaped || regexEscape('$t(');\n      this.nestingSuffix = iOpts.nestingSuffix ? regexEscape(iOpts.nestingSuffix) : iOpts.nestingSuffixEscaped || regexEscape(')');\n      this.nestingOptionsSeparator = iOpts.nestingOptionsSeparator ? iOpts.nestingOptionsSeparator : iOpts.nestingOptionsSeparator || ',';\n      this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000;\n      this.alwaysFormat = iOpts.alwaysFormat !== undefined ? iOpts.alwaysFormat : false;\n      this.resetRegExp();\n    }\n  }, {\n    key: \"reset\",\n    value: function reset() {\n      if (this.options) this.init(this.options);\n    }\n  }, {\n    key: \"resetRegExp\",\n    value: function resetRegExp() {\n      var regexpStr = \"\".concat(this.prefix, \"(.+?)\").concat(this.suffix);\n      this.regexp = new RegExp(regexpStr, 'g');\n      var regexpUnescapeStr = \"\".concat(this.prefix).concat(this.unescapePrefix, \"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);\n      this.regexpUnescape = new RegExp(regexpUnescapeStr, 'g');\n      var nestingRegexpStr = \"\".concat(this.nestingPrefix, \"(.+?)\").concat(this.nestingSuffix);\n      this.nestingRegexp = new RegExp(nestingRegexpStr, 'g');\n    }\n  }, {\n    key: \"interpolate\",\n    value: function interpolate(str, data, lng, options) {\n      var _this = this;\n      var match;\n      var value;\n      var replaces;\n      var defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n      function regexSafe(val) {\n        return val.replace(/\\$/g, '$$$$');\n      }\n      var handleFormat = function handleFormat(key) {\n        if (key.indexOf(_this.formatSeparator) < 0) {\n          var path = deepFindWithDefaults(data, defaultData, key, _this.options.keySeparator, _this.options.ignoreJSONStructure);\n          return _this.alwaysFormat ? _this.format(path, undefined, lng, _objectSpread$3(_objectSpread$3(_objectSpread$3({}, options), data), {}, {\n            interpolationkey: key\n          })) : path;\n        }\n        var p = key.split(_this.formatSeparator);\n        var k = p.shift().trim();\n        var f = p.join(_this.formatSeparator).trim();\n        return _this.format(deepFindWithDefaults(data, defaultData, k, _this.options.keySeparator, _this.options.ignoreJSONStructure), f, lng, _objectSpread$3(_objectSpread$3(_objectSpread$3({}, options), data), {}, {\n          interpolationkey: k\n        }));\n      };\n      this.resetRegExp();\n      var missingInterpolationHandler = options && options.missingInterpolationHandler || this.options.missingInterpolationHandler;\n      var skipOnVariables = options && options.interpolation && options.interpolation.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;\n      var todos = [{\n        regex: this.regexpUnescape,\n        safeValue: function safeValue(val) {\n          return regexSafe(val);\n        }\n      }, {\n        regex: this.regexp,\n        safeValue: function safeValue(val) {\n          return _this.escapeValue ? regexSafe(_this.escape(val)) : regexSafe(val);\n        }\n      }];\n      todos.forEach(function (todo) {\n        replaces = 0;\n        while (match = todo.regex.exec(str)) {\n          var matchedVar = match[1].trim();\n          value = handleFormat(matchedVar);\n          if (value === undefined) {\n            if (typeof missingInterpolationHandler === 'function') {\n              var temp = missingInterpolationHandler(str, match, options);\n              value = typeof temp === 'string' ? temp : '';\n            } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {\n              value = '';\n            } else if (skipOnVariables) {\n              value = match[0];\n              continue;\n            } else {\n              _this.logger.warn(\"missed to pass in variable \".concat(matchedVar, \" for interpolating \").concat(str));\n              value = '';\n            }\n          } else if (typeof value !== 'string' && !_this.useRawValueToEscape) {\n            value = makeString(value);\n          }\n          var safeValue = todo.safeValue(value);\n          str = str.replace(match[0], safeValue);\n          if (skipOnVariables) {\n            todo.regex.lastIndex += value.length;\n            todo.regex.lastIndex -= match[0].length;\n          } else {\n            todo.regex.lastIndex = 0;\n          }\n          replaces++;\n          if (replaces >= _this.maxReplaces) {\n            break;\n          }\n        }\n      });\n      return str;\n    }\n  }, {\n    key: \"nest\",\n    value: function nest(str, fc) {\n      var _this2 = this;\n      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      var match;\n      var value;\n      var clonedOptions;\n      function handleHasOptions(key, inheritedOptions) {\n        var sep = this.nestingOptionsSeparator;\n        if (key.indexOf(sep) < 0) return key;\n        var c = key.split(new RegExp(\"\".concat(sep, \"[ ]*{\")));\n        var optionsString = \"{\".concat(c[1]);\n        key = c[0];\n        optionsString = this.interpolate(optionsString, clonedOptions);\n        var matchedSingleQuotes = optionsString.match(/'/g);\n        var matchedDoubleQuotes = optionsString.match(/\"/g);\n        if (matchedSingleQuotes && matchedSingleQuotes.length % 2 === 0 && !matchedDoubleQuotes || matchedDoubleQuotes.length % 2 !== 0) {\n          optionsString = optionsString.replace(/'/g, '\"');\n        }\n        try {\n          clonedOptions = JSON.parse(optionsString);\n          if (inheritedOptions) clonedOptions = _objectSpread$3(_objectSpread$3({}, inheritedOptions), clonedOptions);\n        } catch (e) {\n          this.logger.warn(\"failed parsing options string in nesting for key \".concat(key), e);\n          return \"\".concat(key).concat(sep).concat(optionsString);\n        }\n        delete clonedOptions.defaultValue;\n        return key;\n      }\n      while (match = this.nestingRegexp.exec(str)) {\n        var formatters = [];\n        clonedOptions = _objectSpread$3({}, options);\n        clonedOptions = clonedOptions.replace && typeof clonedOptions.replace !== 'string' ? clonedOptions.replace : clonedOptions;\n        clonedOptions.applyPostProcessor = false;\n        delete clonedOptions.defaultValue;\n        var doReduce = false;\n        if (match[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match[1])) {\n          var r = match[1].split(this.formatSeparator).map(function (elem) {\n            return elem.trim();\n          });\n          match[1] = r.shift();\n          formatters = r;\n          doReduce = true;\n        }\n        value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n        if (value && match[0] === str && typeof value !== 'string') return value;\n        if (typeof value !== 'string') value = makeString(value);\n        if (!value) {\n          this.logger.warn(\"missed to resolve \".concat(match[1], \" for nesting \").concat(str));\n          value = '';\n        }\n        if (doReduce) {\n          value = formatters.reduce(function (v, f) {\n            return _this2.format(v, f, options.lng, _objectSpread$3(_objectSpread$3({}, options), {}, {\n              interpolationkey: match[1].trim()\n            }));\n          }, value.trim());\n        }\n        str = str.replace(match[0], value);\n        this.regexp.lastIndex = 0;\n      }\n      return str;\n    }\n  }]);\n  return Interpolator;\n}();\n\nfunction ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction parseFormatStr(formatStr) {\n  var formatName = formatStr.toLowerCase().trim();\n  var formatOptions = {};\n  if (formatStr.indexOf('(') > -1) {\n    var p = formatStr.split('(');\n    formatName = p[0].toLowerCase().trim();\n    var optStr = p[1].substring(0, p[1].length - 1);\n    if (formatName === 'currency' && optStr.indexOf(':') < 0) {\n      if (!formatOptions.currency) formatOptions.currency = optStr.trim();\n    } else if (formatName === 'relativetime' && optStr.indexOf(':') < 0) {\n      if (!formatOptions.range) formatOptions.range = optStr.trim();\n    } else {\n      var opts = optStr.split(';');\n      opts.forEach(function (opt) {\n        if (!opt) return;\n        var _opt$split = opt.split(':'),\n          _opt$split2 = _toArray(_opt$split),\n          key = _opt$split2[0],\n          rest = _opt$split2.slice(1);\n        var val = rest.join(':').trim().replace(/^'+|'+$/g, '');\n        if (!formatOptions[key.trim()]) formatOptions[key.trim()] = val;\n        if (val === 'false') formatOptions[key.trim()] = false;\n        if (val === 'true') formatOptions[key.trim()] = true;\n        if (!isNaN(val)) formatOptions[key.trim()] = parseInt(val, 10);\n      });\n    }\n  }\n  return {\n    formatName: formatName,\n    formatOptions: formatOptions\n  };\n}\nfunction createCachedFormatter(fn) {\n  var cache = {};\n  return function invokeFormatter(val, lng, options) {\n    var key = lng + JSON.stringify(options);\n    var formatter = cache[key];\n    if (!formatter) {\n      formatter = fn(lng, options);\n      cache[key] = formatter;\n    }\n    return formatter(val);\n  };\n}\nvar Formatter = function () {\n  function Formatter() {\n    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    _classCallCheck(this, Formatter);\n    this.logger = baseLogger.create('formatter');\n    this.options = options;\n    this.formats = {\n      number: createCachedFormatter(function (lng, opt) {\n        var formatter = new Intl.NumberFormat(lng, _objectSpread$2({}, opt));\n        return function (val) {\n          return formatter.format(val);\n        };\n      }),\n      currency: createCachedFormatter(function (lng, opt) {\n        var formatter = new Intl.NumberFormat(lng, _objectSpread$2(_objectSpread$2({}, opt), {}, {\n          style: 'currency'\n        }));\n        return function (val) {\n          return formatter.format(val);\n        };\n      }),\n      datetime: createCachedFormatter(function (lng, opt) {\n        var formatter = new Intl.DateTimeFormat(lng, _objectSpread$2({}, opt));\n        return function (val) {\n          return formatter.format(val);\n        };\n      }),\n      relativetime: createCachedFormatter(function (lng, opt) {\n        var formatter = new Intl.RelativeTimeFormat(lng, _objectSpread$2({}, opt));\n        return function (val) {\n          return formatter.format(val, opt.range || 'day');\n        };\n      }),\n      list: createCachedFormatter(function (lng, opt) {\n        var formatter = new Intl.ListFormat(lng, _objectSpread$2({}, opt));\n        return function (val) {\n          return formatter.format(val);\n        };\n      })\n    };\n    this.init(options);\n  }\n  _createClass(Formatter, [{\n    key: \"init\",\n    value: function init(services) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        interpolation: {}\n      };\n      var iOpts = options.interpolation;\n      this.formatSeparator = iOpts.formatSeparator ? iOpts.formatSeparator : iOpts.formatSeparator || ',';\n    }\n  }, {\n    key: \"add\",\n    value: function add(name, fc) {\n      this.formats[name.toLowerCase().trim()] = fc;\n    }\n  }, {\n    key: \"addCached\",\n    value: function addCached(name, fc) {\n      this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);\n    }\n  }, {\n    key: \"format\",\n    value: function format(value, _format, lng) {\n      var _this = this;\n      var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n      var formats = _format.split(this.formatSeparator);\n      var result = formats.reduce(function (mem, f) {\n        var _parseFormatStr = parseFormatStr(f),\n          formatName = _parseFormatStr.formatName,\n          formatOptions = _parseFormatStr.formatOptions;\n        if (_this.formats[formatName]) {\n          var formatted = mem;\n          try {\n            var valOptions = options && options.formatParams && options.formatParams[options.interpolationkey] || {};\n            var l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;\n            formatted = _this.formats[formatName](mem, l, _objectSpread$2(_objectSpread$2(_objectSpread$2({}, formatOptions), options), valOptions));\n          } catch (error) {\n            _this.logger.warn(error);\n          }\n          return formatted;\n        } else {\n          _this.logger.warn(\"there was no format function for \".concat(formatName));\n        }\n        return mem;\n      }, value);\n      return result;\n    }\n  }]);\n  return Formatter;\n}();\n\nfunction ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction removePending(q, name) {\n  if (q.pending[name] !== undefined) {\n    delete q.pending[name];\n    q.pendingCount--;\n  }\n}\nvar Connector = function (_EventEmitter) {\n  _inherits(Connector, _EventEmitter);\n  var _super = _createSuper$1(Connector);\n  function Connector(backend, store, services) {\n    var _this;\n    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n    _classCallCheck(this, Connector);\n    _this = _super.call(this);\n    if (isIE10) {\n      EventEmitter.call(_assertThisInitialized(_this));\n    }\n    _this.backend = backend;\n    _this.store = store;\n    _this.services = services;\n    _this.languageUtils = services.languageUtils;\n    _this.options = options;\n    _this.logger = baseLogger.create('backendConnector');\n    _this.waitingReads = [];\n    _this.maxParallelReads = options.maxParallelReads || 10;\n    _this.readingCalls = 0;\n    _this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;\n    _this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;\n    _this.state = {};\n    _this.queue = [];\n    if (_this.backend && _this.backend.init) {\n      _this.backend.init(services, options.backend, options);\n    }\n    return _this;\n  }\n  _createClass(Connector, [{\n    key: \"queueLoad\",\n    value: function queueLoad(languages, namespaces, options, callback) {\n      var _this2 = this;\n      var toLoad = {};\n      var pending = {};\n      var toLoadLanguages = {};\n      var toLoadNamespaces = {};\n      languages.forEach(function (lng) {\n        var hasAllNamespaces = true;\n        namespaces.forEach(function (ns) {\n          var name = \"\".concat(lng, \"|\").concat(ns);\n          if (!options.reload && _this2.store.hasResourceBundle(lng, ns)) {\n            _this2.state[name] = 2;\n          } else if (_this2.state[name] < 0) ; else if (_this2.state[name] === 1) {\n            if (pending[name] === undefined) pending[name] = true;\n          } else {\n            _this2.state[name] = 1;\n            hasAllNamespaces = false;\n            if (pending[name] === undefined) pending[name] = true;\n            if (toLoad[name] === undefined) toLoad[name] = true;\n            if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true;\n          }\n        });\n        if (!hasAllNamespaces) toLoadLanguages[lng] = true;\n      });\n      if (Object.keys(toLoad).length || Object.keys(pending).length) {\n        this.queue.push({\n          pending: pending,\n          pendingCount: Object.keys(pending).length,\n          loaded: {},\n          errors: [],\n          callback: callback\n        });\n      }\n      return {\n        toLoad: Object.keys(toLoad),\n        pending: Object.keys(pending),\n        toLoadLanguages: Object.keys(toLoadLanguages),\n        toLoadNamespaces: Object.keys(toLoadNamespaces)\n      };\n    }\n  }, {\n    key: \"loaded\",\n    value: function loaded(name, err, data) {\n      var s = name.split('|');\n      var lng = s[0];\n      var ns = s[1];\n      if (err) this.emit('failedLoading', lng, ns, err);\n      if (data) {\n        this.store.addResourceBundle(lng, ns, data);\n      }\n      this.state[name] = err ? -1 : 2;\n      var loaded = {};\n      this.queue.forEach(function (q) {\n        pushPath(q.loaded, [lng], ns);\n        removePending(q, name);\n        if (err) q.errors.push(err);\n        if (q.pendingCount === 0 && !q.done) {\n          Object.keys(q.loaded).forEach(function (l) {\n            if (!loaded[l]) loaded[l] = {};\n            var loadedKeys = q.loaded[l];\n            if (loadedKeys.length) {\n              loadedKeys.forEach(function (n) {\n                if (loaded[l][n] === undefined) loaded[l][n] = true;\n              });\n            }\n          });\n          q.done = true;\n          if (q.errors.length) {\n            q.callback(q.errors);\n          } else {\n            q.callback();\n          }\n        }\n      });\n      this.emit('loaded', loaded);\n      this.queue = this.queue.filter(function (q) {\n        return !q.done;\n      });\n    }\n  }, {\n    key: \"read\",\n    value: function read(lng, ns, fcName) {\n      var _this3 = this;\n      var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n      var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;\n      var callback = arguments.length > 5 ? arguments[5] : undefined;\n      if (!lng.length) return callback(null, {});\n      if (this.readingCalls >= this.maxParallelReads) {\n        this.waitingReads.push({\n          lng: lng,\n          ns: ns,\n          fcName: fcName,\n          tried: tried,\n          wait: wait,\n          callback: callback\n        });\n        return;\n      }\n      this.readingCalls++;\n      var resolver = function resolver(err, data) {\n        _this3.readingCalls--;\n        if (_this3.waitingReads.length > 0) {\n          var next = _this3.waitingReads.shift();\n          _this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);\n        }\n        if (err && data && tried < _this3.maxRetries) {\n          setTimeout(function () {\n            _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);\n          }, wait);\n          return;\n        }\n        callback(err, data);\n      };\n      var fc = this.backend[fcName].bind(this.backend);\n      if (fc.length === 2) {\n        try {\n          var r = fc(lng, ns);\n          if (r && typeof r.then === 'function') {\n            r.then(function (data) {\n              return resolver(null, data);\n            })[\"catch\"](resolver);\n          } else {\n            resolver(null, r);\n          }\n        } catch (err) {\n          resolver(err);\n        }\n        return;\n      }\n      return fc(lng, ns, resolver);\n    }\n  }, {\n    key: \"prepareLoading\",\n    value: function prepareLoading(languages, namespaces) {\n      var _this4 = this;\n      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      var callback = arguments.length > 3 ? arguments[3] : undefined;\n      if (!this.backend) {\n        this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n        return callback && callback();\n      }\n      if (typeof languages === 'string') languages = this.languageUtils.toResolveHierarchy(languages);\n      if (typeof namespaces === 'string') namespaces = [namespaces];\n      var toLoad = this.queueLoad(languages, namespaces, options, callback);\n      if (!toLoad.toLoad.length) {\n        if (!toLoad.pending.length) callback();\n        return null;\n      }\n      toLoad.toLoad.forEach(function (name) {\n        _this4.loadOne(name);\n      });\n    }\n  }, {\n    key: \"load\",\n    value: function load(languages, namespaces, callback) {\n      this.prepareLoading(languages, namespaces, {}, callback);\n    }\n  }, {\n    key: \"reload\",\n    value: function reload(languages, namespaces, callback) {\n      this.prepareLoading(languages, namespaces, {\n        reload: true\n      }, callback);\n    }\n  }, {\n    key: \"loadOne\",\n    value: function loadOne(name) {\n      var _this5 = this;\n      var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n      var s = name.split('|');\n      var lng = s[0];\n      var ns = s[1];\n      this.read(lng, ns, 'read', undefined, undefined, function (err, data) {\n        if (err) _this5.logger.warn(\"\".concat(prefix, \"loading namespace \").concat(ns, \" for language \").concat(lng, \" failed\"), err);\n        if (!err && data) _this5.logger.log(\"\".concat(prefix, \"loaded namespace \").concat(ns, \" for language \").concat(lng), data);\n        _this5.loaded(name, err, data);\n      });\n    }\n  }, {\n    key: \"saveMissing\",\n    value: function saveMissing(languages, namespace, key, fallbackValue, isUpdate) {\n      var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};\n      var clb = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : function () {};\n      if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(namespace)) {\n        this.logger.warn(\"did not save key \\\"\".concat(key, \"\\\" as the namespace \\\"\").concat(namespace, \"\\\" was not yet loaded\"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n        return;\n      }\n      if (key === undefined || key === null || key === '') return;\n      if (this.backend && this.backend.create) {\n        var opts = _objectSpread$1(_objectSpread$1({}, options), {}, {\n          isUpdate: isUpdate\n        });\n        var fc = this.backend.create.bind(this.backend);\n        if (fc.length < 6) {\n          try {\n            var r;\n            if (fc.length === 5) {\n              r = fc(languages, namespace, key, fallbackValue, opts);\n            } else {\n              r = fc(languages, namespace, key, fallbackValue);\n            }\n            if (r && typeof r.then === 'function') {\n              r.then(function (data) {\n                return clb(null, data);\n              })[\"catch\"](clb);\n            } else {\n              clb(null, r);\n            }\n          } catch (err) {\n            clb(err);\n          }\n        } else {\n          fc(languages, namespace, key, fallbackValue, clb, opts);\n        }\n      }\n      if (!languages || !languages[0]) return;\n      this.store.addResource(languages[0], namespace, key, fallbackValue);\n    }\n  }]);\n  return Connector;\n}(EventEmitter);\n\nfunction get() {\n  return {\n    debug: false,\n    initImmediate: true,\n    ns: ['translation'],\n    defaultNS: ['translation'],\n    fallbackLng: ['dev'],\n    fallbackNS: false,\n    supportedLngs: false,\n    nonExplicitSupportedLngs: false,\n    load: 'all',\n    preload: false,\n    simplifyPluralSuffix: true,\n    keySeparator: '.',\n    nsSeparator: ':',\n    pluralSeparator: '_',\n    contextSeparator: '_',\n    partialBundledLanguages: false,\n    saveMissing: false,\n    updateMissing: false,\n    saveMissingTo: 'fallback',\n    saveMissingPlurals: true,\n    missingKeyHandler: false,\n    missingInterpolationHandler: false,\n    postProcess: false,\n    postProcessPassResolved: false,\n    returnNull: true,\n    returnEmptyString: true,\n    returnObjects: false,\n    joinArrays: false,\n    returnedObjectHandler: false,\n    parseMissingKeyHandler: false,\n    appendNamespaceToMissingKey: false,\n    appendNamespaceToCIMode: false,\n    overloadTranslationOptionHandler: function handle(args) {\n      var ret = {};\n      if (_typeof(args[1]) === 'object') ret = args[1];\n      if (typeof args[1] === 'string') ret.defaultValue = args[1];\n      if (typeof args[2] === 'string') ret.tDescription = args[2];\n      if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {\n        var options = args[3] || args[2];\n        Object.keys(options).forEach(function (key) {\n          ret[key] = options[key];\n        });\n      }\n      return ret;\n    },\n    interpolation: {\n      escapeValue: true,\n      format: function format(value, _format, lng, options) {\n        return value;\n      },\n      prefix: '{{',\n      suffix: '}}',\n      formatSeparator: ',',\n      unescapePrefix: '-',\n      nestingPrefix: '$t(',\n      nestingSuffix: ')',\n      nestingOptionsSeparator: ',',\n      maxReplaces: 1000,\n      skipOnVariables: true\n    }\n  };\n}\nfunction transformOptions(options) {\n  if (typeof options.ns === 'string') options.ns = [options.ns];\n  if (typeof options.fallbackLng === 'string') options.fallbackLng = [options.fallbackLng];\n  if (typeof options.fallbackNS === 'string') options.fallbackNS = [options.fallbackNS];\n  if (options.supportedLngs && options.supportedLngs.indexOf('cimode') < 0) {\n    options.supportedLngs = options.supportedLngs.concat(['cimode']);\n  }\n  return options;\n}\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction noop() {}\nfunction bindMemberFunctions(inst) {\n  var mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));\n  mems.forEach(function (mem) {\n    if (typeof inst[mem] === 'function') {\n      inst[mem] = inst[mem].bind(inst);\n    }\n  });\n}\nvar I18n = function (_EventEmitter) {\n  _inherits(I18n, _EventEmitter);\n  var _super = _createSuper(I18n);\n  function I18n() {\n    var _this;\n    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    var callback = arguments.length > 1 ? arguments[1] : undefined;\n    _classCallCheck(this, I18n);\n    _this = _super.call(this);\n    if (isIE10) {\n      EventEmitter.call(_assertThisInitialized(_this));\n    }\n    _this.options = transformOptions(options);\n    _this.services = {};\n    _this.logger = baseLogger;\n    _this.modules = {\n      external: []\n    };\n    bindMemberFunctions(_assertThisInitialized(_this));\n    if (callback && !_this.isInitialized && !options.isClone) {\n      if (!_this.options.initImmediate) {\n        _this.init(options, callback);\n        return _possibleConstructorReturn(_this, _assertThisInitialized(_this));\n      }\n      setTimeout(function () {\n        _this.init(options, callback);\n      }, 0);\n    }\n    return _this;\n  }\n  _createClass(I18n, [{\n    key: \"init\",\n    value: function init() {\n      var _this2 = this;\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      var callback = arguments.length > 1 ? arguments[1] : undefined;\n      if (typeof options === 'function') {\n        callback = options;\n        options = {};\n      }\n      if (!options.defaultNS && options.defaultNS !== false && options.ns) {\n        if (typeof options.ns === 'string') {\n          options.defaultNS = options.ns;\n        } else if (options.ns.indexOf('translation') < 0) {\n          options.defaultNS = options.ns[0];\n        }\n      }\n      var defOpts = get();\n      this.options = _objectSpread(_objectSpread(_objectSpread({}, defOpts), this.options), transformOptions(options));\n      if (this.options.compatibilityAPI !== 'v1') {\n        this.options.interpolation = _objectSpread(_objectSpread({}, defOpts.interpolation), this.options.interpolation);\n      }\n      if (options.keySeparator !== undefined) {\n        this.options.userDefinedKeySeparator = options.keySeparator;\n      }\n      if (options.nsSeparator !== undefined) {\n        this.options.userDefinedNsSeparator = options.nsSeparator;\n      }\n      function createClassOnDemand(ClassOrObject) {\n        if (!ClassOrObject) return null;\n        if (typeof ClassOrObject === 'function') return new ClassOrObject();\n        return ClassOrObject;\n      }\n      if (!this.options.isClone) {\n        if (this.modules.logger) {\n          baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n        } else {\n          baseLogger.init(null, this.options);\n        }\n        var formatter;\n        if (this.modules.formatter) {\n          formatter = this.modules.formatter;\n        } else if (typeof Intl !== 'undefined') {\n          formatter = Formatter;\n        }\n        var lu = new LanguageUtil(this.options);\n        this.store = new ResourceStore(this.options.resources, this.options);\n        var s = this.services;\n        s.logger = baseLogger;\n        s.resourceStore = this.store;\n        s.languageUtils = lu;\n        s.pluralResolver = new PluralResolver(lu, {\n          prepend: this.options.pluralSeparator,\n          compatibilityJSON: this.options.compatibilityJSON,\n          simplifyPluralSuffix: this.options.simplifyPluralSuffix\n        });\n        if (formatter && (!this.options.interpolation.format || this.options.interpolation.format === defOpts.interpolation.format)) {\n          s.formatter = createClassOnDemand(formatter);\n          s.formatter.init(s, this.options);\n          this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n        }\n        s.interpolator = new Interpolator(this.options);\n        s.utils = {\n          hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n        };\n        s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n        s.backendConnector.on('*', function (event) {\n          for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n            args[_key - 1] = arguments[_key];\n          }\n          _this2.emit.apply(_this2, [event].concat(args));\n        });\n        if (this.modules.languageDetector) {\n          s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n          if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n        }\n        if (this.modules.i18nFormat) {\n          s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n          if (s.i18nFormat.init) s.i18nFormat.init(this);\n        }\n        this.translator = new Translator(this.services, this.options);\n        this.translator.on('*', function (event) {\n          for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n            args[_key2 - 1] = arguments[_key2];\n          }\n          _this2.emit.apply(_this2, [event].concat(args));\n        });\n        this.modules.external.forEach(function (m) {\n          if (m.init) m.init(_this2);\n        });\n      }\n      this.format = this.options.interpolation.format;\n      if (!callback) callback = noop;\n      if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n        var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n        if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n      }\n      if (!this.services.languageDetector && !this.options.lng) {\n        this.logger.warn('init: no languageDetector is used and no lng is defined');\n      }\n      var storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n      storeApi.forEach(function (fcName) {\n        _this2[fcName] = function () {\n          var _this2$store;\n          return (_this2$store = _this2.store)[fcName].apply(_this2$store, arguments);\n        };\n      });\n      var storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n      storeApiChained.forEach(function (fcName) {\n        _this2[fcName] = function () {\n          var _this2$store2;\n          (_this2$store2 = _this2.store)[fcName].apply(_this2$store2, arguments);\n          return _this2;\n        };\n      });\n      var deferred = defer();\n      var load = function load() {\n        var finish = function finish(err, t) {\n          if (_this2.isInitialized && !_this2.initializedStoreOnce) _this2.logger.warn('init: i18next is already initialized. You should call init just once!');\n          _this2.isInitialized = true;\n          if (!_this2.options.isClone) _this2.logger.log('initialized', _this2.options);\n          _this2.emit('initialized', _this2.options);\n          deferred.resolve(t);\n          callback(err, t);\n        };\n        if (_this2.languages && _this2.options.compatibilityAPI !== 'v1' && !_this2.isInitialized) return finish(null, _this2.t.bind(_this2));\n        _this2.changeLanguage(_this2.options.lng, finish);\n      };\n      if (this.options.resources || !this.options.initImmediate) {\n        load();\n      } else {\n        setTimeout(load, 0);\n      }\n      return deferred;\n    }\n  }, {\n    key: \"loadResources\",\n    value: function loadResources(language) {\n      var _this3 = this;\n      var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n      var usedCallback = callback;\n      var usedLng = typeof language === 'string' ? language : this.language;\n      if (typeof language === 'function') usedCallback = language;\n      if (!this.options.resources || this.options.partialBundledLanguages) {\n        if (usedLng && usedLng.toLowerCase() === 'cimode') return usedCallback();\n        var toLoad = [];\n        var append = function append(lng) {\n          if (!lng) return;\n          var lngs = _this3.services.languageUtils.toResolveHierarchy(lng);\n          lngs.forEach(function (l) {\n            if (toLoad.indexOf(l) < 0) toLoad.push(l);\n          });\n        };\n        if (!usedLng) {\n          var fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n          fallbacks.forEach(function (l) {\n            return append(l);\n          });\n        } else {\n          append(usedLng);\n        }\n        if (this.options.preload) {\n          this.options.preload.forEach(function (l) {\n            return append(l);\n          });\n        }\n        this.services.backendConnector.load(toLoad, this.options.ns, function (e) {\n          if (!e && !_this3.resolvedLanguage && _this3.language) _this3.setResolvedLanguage(_this3.language);\n          usedCallback(e);\n        });\n      } else {\n        usedCallback(null);\n      }\n    }\n  }, {\n    key: \"reloadResources\",\n    value: function reloadResources(lngs, ns, callback) {\n      var deferred = defer();\n      if (!lngs) lngs = this.languages;\n      if (!ns) ns = this.options.ns;\n      if (!callback) callback = noop;\n      this.services.backendConnector.reload(lngs, ns, function (err) {\n        deferred.resolve();\n        callback(err);\n      });\n      return deferred;\n    }\n  }, {\n    key: \"use\",\n    value: function use(module) {\n      if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n      if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n      if (module.type === 'backend') {\n        this.modules.backend = module;\n      }\n      if (module.type === 'logger' || module.log && module.warn && module.error) {\n        this.modules.logger = module;\n      }\n      if (module.type === 'languageDetector') {\n        this.modules.languageDetector = module;\n      }\n      if (module.type === 'i18nFormat') {\n        this.modules.i18nFormat = module;\n      }\n      if (module.type === 'postProcessor') {\n        postProcessor.addPostProcessor(module);\n      }\n      if (module.type === 'formatter') {\n        this.modules.formatter = module;\n      }\n      if (module.type === '3rdParty') {\n        this.modules.external.push(module);\n      }\n      return this;\n    }\n  }, {\n    key: \"setResolvedLanguage\",\n    value: function setResolvedLanguage(l) {\n      if (!l || !this.languages) return;\n      if (['cimode', 'dev'].indexOf(l) > -1) return;\n      for (var li = 0; li < this.languages.length; li++) {\n        var lngInLngs = this.languages[li];\n        if (['cimode', 'dev'].indexOf(lngInLngs) > -1) continue;\n        if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n          this.resolvedLanguage = lngInLngs;\n          break;\n        }\n      }\n    }\n  }, {\n    key: \"changeLanguage\",\n    value: function changeLanguage(lng, callback) {\n      var _this4 = this;\n      this.isLanguageChangingTo = lng;\n      var deferred = defer();\n      this.emit('languageChanging', lng);\n      var setLngProps = function setLngProps(l) {\n        _this4.language = l;\n        _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);\n        _this4.resolvedLanguage = undefined;\n        _this4.setResolvedLanguage(l);\n      };\n      var done = function done(err, l) {\n        if (l) {\n          setLngProps(l);\n          _this4.translator.changeLanguage(l);\n          _this4.isLanguageChangingTo = undefined;\n          _this4.emit('languageChanged', l);\n          _this4.logger.log('languageChanged', l);\n        } else {\n          _this4.isLanguageChangingTo = undefined;\n        }\n        deferred.resolve(function () {\n          return _this4.t.apply(_this4, arguments);\n        });\n        if (callback) callback(err, function () {\n          return _this4.t.apply(_this4, arguments);\n        });\n      };\n      var setLng = function setLng(lngs) {\n        if (!lng && !lngs && _this4.services.languageDetector) lngs = [];\n        var l = typeof lngs === 'string' ? lngs : _this4.services.languageUtils.getBestMatchFromCodes(lngs);\n        if (l) {\n          if (!_this4.language) {\n            setLngProps(l);\n          }\n          if (!_this4.translator.language) _this4.translator.changeLanguage(l);\n          if (_this4.services.languageDetector && _this4.services.languageDetector.cacheUserLanguage) _this4.services.languageDetector.cacheUserLanguage(l);\n        }\n        _this4.loadResources(l, function (err) {\n          done(err, l);\n        });\n      };\n      if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n        setLng(this.services.languageDetector.detect());\n      } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n        if (this.services.languageDetector.detect.length === 0) {\n          this.services.languageDetector.detect().then(setLng);\n        } else {\n          this.services.languageDetector.detect(setLng);\n        }\n      } else {\n        setLng(lng);\n      }\n      return deferred;\n    }\n  }, {\n    key: \"getFixedT\",\n    value: function getFixedT(lng, ns, keyPrefix) {\n      var _this5 = this;\n      var fixedT = function fixedT(key, opts) {\n        var options;\n        if (_typeof(opts) !== 'object') {\n          for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {\n            rest[_key3 - 2] = arguments[_key3];\n          }\n          options = _this5.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n        } else {\n          options = _objectSpread({}, opts);\n        }\n        options.lng = options.lng || fixedT.lng;\n        options.lngs = options.lngs || fixedT.lngs;\n        options.ns = options.ns || fixedT.ns;\n        options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix;\n        var keySeparator = _this5.options.keySeparator || '.';\n        var resultKey;\n        if (options.keyPrefix && Array.isArray(key)) {\n          resultKey = key.map(function (k) {\n            return \"\".concat(options.keyPrefix).concat(keySeparator).concat(k);\n          });\n        } else {\n          resultKey = options.keyPrefix ? \"\".concat(options.keyPrefix).concat(keySeparator).concat(key) : key;\n        }\n        return _this5.t(resultKey, options);\n      };\n      if (typeof lng === 'string') {\n        fixedT.lng = lng;\n      } else {\n        fixedT.lngs = lng;\n      }\n      fixedT.ns = ns;\n      fixedT.keyPrefix = keyPrefix;\n      return fixedT;\n    }\n  }, {\n    key: \"t\",\n    value: function t() {\n      var _this$translator;\n      return this.translator && (_this$translator = this.translator).translate.apply(_this$translator, arguments);\n    }\n  }, {\n    key: \"exists\",\n    value: function exists() {\n      var _this$translator2;\n      return this.translator && (_this$translator2 = this.translator).exists.apply(_this$translator2, arguments);\n    }\n  }, {\n    key: \"setDefaultNamespace\",\n    value: function setDefaultNamespace(ns) {\n      this.options.defaultNS = ns;\n    }\n  }, {\n    key: \"hasLoadedNamespace\",\n    value: function hasLoadedNamespace(ns) {\n      var _this6 = this;\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n      if (!this.isInitialized) {\n        this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n        return false;\n      }\n      if (!this.languages || !this.languages.length) {\n        this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n        return false;\n      }\n      var lng = options.lng || this.resolvedLanguage || this.languages[0];\n      var fallbackLng = this.options ? this.options.fallbackLng : false;\n      var lastLng = this.languages[this.languages.length - 1];\n      if (lng.toLowerCase() === 'cimode') return true;\n      var loadNotPending = function loadNotPending(l, n) {\n        var loadState = _this6.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n        return loadState === -1 || loadState === 2;\n      };\n      if (options.precheck) {\n        var preResult = options.precheck(this, loadNotPending);\n        if (preResult !== undefined) return preResult;\n      }\n      if (this.hasResourceBundle(lng, ns)) return true;\n      if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n      if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n      return false;\n    }\n  }, {\n    key: \"loadNamespaces\",\n    value: function loadNamespaces(ns, callback) {\n      var _this7 = this;\n      var deferred = defer();\n      if (!this.options.ns) {\n        if (callback) callback();\n        return Promise.resolve();\n      }\n      if (typeof ns === 'string') ns = [ns];\n      ns.forEach(function (n) {\n        if (_this7.options.ns.indexOf(n) < 0) _this7.options.ns.push(n);\n      });\n      this.loadResources(function (err) {\n        deferred.resolve();\n        if (callback) callback(err);\n      });\n      return deferred;\n    }\n  }, {\n    key: \"loadLanguages\",\n    value: function loadLanguages(lngs, callback) {\n      var deferred = defer();\n      if (typeof lngs === 'string') lngs = [lngs];\n      var preloaded = this.options.preload || [];\n      var newLngs = lngs.filter(function (lng) {\n        return preloaded.indexOf(lng) < 0;\n      });\n      if (!newLngs.length) {\n        if (callback) callback();\n        return Promise.resolve();\n      }\n      this.options.preload = preloaded.concat(newLngs);\n      this.loadResources(function (err) {\n        deferred.resolve();\n        if (callback) callback(err);\n      });\n      return deferred;\n    }\n  }, {\n    key: \"dir\",\n    value: function dir(lng) {\n      if (!lng) lng = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language);\n      if (!lng) return 'rtl';\n      var rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n      var languageUtils = this.services && this.services.languageUtils || new LanguageUtil(get());\n      return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng)) > -1 || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n    }\n  }, {\n    key: \"cloneInstance\",\n    value: function cloneInstance() {\n      var _this8 = this;\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n      var mergedOptions = _objectSpread(_objectSpread(_objectSpread({}, this.options), options), {\n        isClone: true\n      });\n      var clone = new I18n(mergedOptions);\n      if (options.debug !== undefined || options.prefix !== undefined) {\n        clone.logger = clone.logger.clone(options);\n      }\n      var membersToCopy = ['store', 'services', 'language'];\n      membersToCopy.forEach(function (m) {\n        clone[m] = _this8[m];\n      });\n      clone.services = _objectSpread({}, this.services);\n      clone.services.utils = {\n        hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n      };\n      clone.translator = new Translator(clone.services, clone.options);\n      clone.translator.on('*', function (event) {\n        for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n          args[_key4 - 1] = arguments[_key4];\n        }\n        clone.emit.apply(clone, [event].concat(args));\n      });\n      clone.init(mergedOptions, callback);\n      clone.translator.options = clone.options;\n      clone.translator.backendConnector.services.utils = {\n        hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n      };\n      return clone;\n    }\n  }, {\n    key: \"toJSON\",\n    value: function toJSON() {\n      return {\n        options: this.options,\n        store: this.store,\n        language: this.language,\n        languages: this.languages,\n        resolvedLanguage: this.resolvedLanguage\n      };\n    }\n  }]);\n  return I18n;\n}(EventEmitter);\n_defineProperty(I18n, \"createInstance\", function () {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var callback = arguments.length > 1 ? arguments[1] : undefined;\n  return new I18n(options, callback);\n});\nvar instance = I18n.createInstance();\ninstance.createInstance = I18n.createInstance;\n\nvar createInstance = instance.createInstance;\nvar dir = instance.dir;\nvar init = instance.init;\nvar loadResources = instance.loadResources;\nvar reloadResources = instance.reloadResources;\nvar use = instance.use;\nvar changeLanguage = instance.changeLanguage;\nvar getFixedT = instance.getFixedT;\nvar t = instance.t;\nvar exists = instance.exists;\nvar setDefaultNamespace = instance.setDefaultNamespace;\nvar hasLoadedNamespace = instance.hasLoadedNamespace;\nvar loadNamespaces = instance.loadNamespaces;\nvar loadLanguages = instance.loadLanguages;\n\nexport { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };\n","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _toArray(r) {\n  return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest();\n}\nexport { _toArray as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n  if (null == e) return {};\n  var o,\n    r,\n    i = objectWithoutPropertiesLoose(e, t);\n  if (Object.getOwnPropertySymbols) {\n    var n = Object.getOwnPropertySymbols(e);\n    for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n  }\n  return i;\n}\nexport { _objectWithoutProperties as default };","import e from\"void-elements\";var t=/\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g;function n(n){var r={type:\"tag\",name:\"\",voidElement:!1,attrs:{},children:[]},i=n.match(/<\\/?([^\\s]+?)[/\\s>]/);if(i&&(r.name=i[1],(e[i[1]]||\"/\"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith(\"!--\"))){var s=n.indexOf(\"--\\x3e\");return{type:\"comment\",comment:-1!==s?n.slice(4,s):\"\"}}for(var a=new RegExp(t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,\"\"];o.indexOf(\"=\")>-1&&(l=o.split(\"=\")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g,i=/^\\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case\"text\":return e+t.content;case\"tag\":return e+=\"<\"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'=\"'+e[n]+'\"');return t.length?\" \"+t.join(\" \"):\"\"}(t.attrs):\"\")+(t.voidElement?\"/>\":\">\"),t.voidElement?e:e+t.children.reduce(a,\"\")+\"</\"+t.name+\">\";case\"comment\":return e+\"\\x3c!--\"+t.comment+\"--\\x3e\"}}var c={parse:function(e,t){t||(t={}),t.components||(t.components=s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf(\"<\")){var u=e.indexOf(\"<\");c.push({type:\"text\",content:-1===u?e:e.substring(0,u)})}return e.replace(r,function(r,s){if(m){if(r!==\"</\"+a.name+\">\")return;m=!1}var u,f=\"/\"!==r.charAt(1),h=r.startsWith(\"\\x3c!--\"),p=s+r.length,d=e.charAt(p);if(h){var v=n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,\"tag\"===(a=n(r)).type&&t.components[a.name]&&(a.type=\"component\",m=!0),a.voidElement||m||!d||\"<\"===d||a.children.push({type:\"text\",content:e.slice(p,e.indexOf(\"<\",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&\"<\"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf(\"<\",p),g=e.slice(p,-1===x?void 0:x);i.test(g)&&(g=\" \"),(x>-1&&l+u.length>=0||\" \"!==g)&&u.push({type:\"text\",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a(\"\",t)},\"\")}};export default c;\n//# sourceMappingURL=html-parse-stringify.module.js.map\n","export function warn() {\n  if (console && console.warn) {\n    var _console;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    if (typeof args[0] === 'string') args[0] = \"react-i18next:: \".concat(args[0]);\n\n    (_console = console).warn.apply(_console, args);\n  }\n}\nvar alreadyWarned = {};\nexport function warnOnce() {\n  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n    args[_key2] = arguments[_key2];\n  }\n\n  if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;\n  if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();\n  warn.apply(void 0, args);\n}\n\nvar loadedClb = function loadedClb(i18n, cb) {\n  return function () {\n    if (i18n.isInitialized) {\n      cb();\n    } else {\n      var initialized = function initialized() {\n        setTimeout(function () {\n          i18n.off('initialized', initialized);\n        }, 0);\n        cb();\n      };\n\n      i18n.on('initialized', initialized);\n    }\n  };\n};\n\nexport function loadNamespaces(i18n, ns, cb) {\n  i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n}\nexport function loadLanguages(i18n, lng, ns, cb) {\n  if (typeof ns === 'string') ns = [ns];\n  ns.forEach(function (n) {\n    if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n  });\n  i18n.loadLanguages(lng, loadedClb(i18n, cb));\n}\n\nfunction oldI18nextHasLoadedNamespace(ns, i18n) {\n  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var lng = i18n.languages[0];\n  var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;\n  var lastLng = i18n.languages[i18n.languages.length - 1];\n  if (lng.toLowerCase() === 'cimode') return true;\n\n  var loadNotPending = function loadNotPending(l, n) {\n    var loadState = i18n.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n    return loadState === -1 || loadState === 2;\n  };\n\n  if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;\n  if (i18n.hasResourceBundle(lng, ns)) return true;\n  if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;\n  if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n  return false;\n}\n\nexport function hasLoadedNamespace(ns, i18n) {\n  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n  if (!i18n.languages || !i18n.languages.length) {\n    warnOnce('i18n.languages were undefined or empty', i18n.languages);\n    return true;\n  }\n\n  var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;\n\n  if (!isNewerI18next) {\n    return oldI18nextHasLoadedNamespace(ns, i18n, options);\n  }\n\n  return i18n.hasLoadedNamespace(ns, {\n    lng: options.lng,\n    precheck: function precheck(i18nInstance, loadNotPending) {\n      if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n    }\n  });\n}\nexport function getDisplayName(Component) {\n  return Component.displayName || Component.name || (typeof Component === 'string' && Component.length > 0 ? Component : 'Unknown');\n}","var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nvar htmlEntities = {\n  '&amp;': '&',\n  '&#38;': '&',\n  '&lt;': '<',\n  '&#60;': '<',\n  '&gt;': '>',\n  '&#62;': '>',\n  '&apos;': \"'\",\n  '&#39;': \"'\",\n  '&quot;': '\"',\n  '&#34;': '\"',\n  '&nbsp;': ' ',\n  '&#160;': ' ',\n  '&copy;': '©',\n  '&#169;': '©',\n  '&reg;': '®',\n  '&#174;': '®',\n  '&hellip;': '…',\n  '&#8230;': '…',\n  '&#x2F;': '/',\n  '&#47;': '/'\n};\n\nvar unescapeHtmlEntity = function unescapeHtmlEntity(m) {\n  return htmlEntities[m];\n};\n\nexport var unescape = function unescape(text) {\n  return text.replace(matchHtmlEntity, unescapeHtmlEntity);\n};","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { unescape } from './unescape.js';\nvar defaultOptions = {\n  bindI18n: 'languageChanged',\n  bindI18nStore: '',\n  transEmptyNodeValue: '',\n  transSupportBasicHtmlNodes: true,\n  transWrapTextNodes: '',\n  transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n  useSuspense: true,\n  unescape: unescape\n};\nexport function setDefaults() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  defaultOptions = _objectSpread(_objectSpread({}, defaultOptions), options);\n}\nexport function getDefaults() {\n  return defaultOptions;\n}","var i18nInstance;\nexport function setI18n(instance) {\n  i18nInstance = instance;\n}\nexport function getI18n() {\n  return i18nInstance;\n}","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"format\"],\n    _excluded2 = [\"children\", \"count\", \"parent\", \"i18nKey\", \"context\", \"tOptions\", \"values\", \"defaults\", \"components\", \"ns\", \"i18n\", \"t\", \"shouldUnescape\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { isValidElement, cloneElement, createElement } from 'react';\nimport HTML from 'html-parse-stringify';\nimport { warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\n\nfunction hasChildren(node, checkLength) {\n  if (!node) return false;\n  var base = node.props ? node.props.children : node.children;\n  if (checkLength) return base.length > 0;\n  return !!base;\n}\n\nfunction getChildren(node) {\n  if (!node) return [];\n  return node.props ? node.props.children : node.children;\n}\n\nfunction hasValidReactChildren(children) {\n  if (Object.prototype.toString.call(children) !== '[object Array]') return false;\n  return children.every(function (child) {\n    return isValidElement(child);\n  });\n}\n\nfunction getAsArray(data) {\n  return Array.isArray(data) ? data : [data];\n}\n\nfunction mergeProps(source, target) {\n  var newTarget = _objectSpread({}, target);\n\n  newTarget.props = Object.assign(source.props, target.props);\n  return newTarget;\n}\n\nexport function nodesToString(children, i18nOptions) {\n  if (!children) return '';\n  var stringNode = '';\n  var childrenArray = getAsArray(children);\n  var keepArray = i18nOptions.transSupportBasicHtmlNodes && i18nOptions.transKeepBasicHtmlNodesFor ? i18nOptions.transKeepBasicHtmlNodesFor : [];\n  childrenArray.forEach(function (child, childIndex) {\n    if (typeof child === 'string') {\n      stringNode += \"\".concat(child);\n    } else if (isValidElement(child)) {\n      var childPropsCount = Object.keys(child.props).length;\n      var shouldKeepChild = keepArray.indexOf(child.type) > -1;\n      var childChildren = child.props.children;\n\n      if (!childChildren && shouldKeepChild && childPropsCount === 0) {\n        stringNode += \"<\".concat(child.type, \"/>\");\n      } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {\n        stringNode += \"<\".concat(childIndex, \"></\").concat(childIndex, \">\");\n      } else if (child.props.i18nIsDynamicList) {\n        stringNode += \"<\".concat(childIndex, \"></\").concat(childIndex, \">\");\n      } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === 'string') {\n        stringNode += \"<\".concat(child.type, \">\").concat(childChildren, \"</\").concat(child.type, \">\");\n      } else {\n        var content = nodesToString(childChildren, i18nOptions);\n        stringNode += \"<\".concat(childIndex, \">\").concat(content, \"</\").concat(childIndex, \">\");\n      }\n    } else if (child === null) {\n      warn(\"Trans: the passed in value is invalid - seems you passed in a null child.\");\n    } else if (_typeof(child) === 'object') {\n      var format = child.format,\n          clone = _objectWithoutProperties(child, _excluded);\n\n      var keys = Object.keys(clone);\n\n      if (keys.length === 1) {\n        var value = format ? \"\".concat(keys[0], \", \").concat(format) : keys[0];\n        stringNode += \"{{\".concat(value, \"}}\");\n      } else {\n        warn(\"react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.\", child);\n      }\n    } else {\n      warn(\"Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.\", child);\n    }\n  });\n  return stringNode;\n}\n\nfunction renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {\n  if (targetString === '') return [];\n  var keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n  var emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.join('|')).test(targetString);\n  if (!children && !emptyChildrenButNeedsHandling) return [targetString];\n  var data = {};\n\n  function getData(childs) {\n    var childrenArray = getAsArray(childs);\n    childrenArray.forEach(function (child) {\n      if (typeof child === 'string') return;\n      if (hasChildren(child)) getData(getChildren(child));else if (_typeof(child) === 'object' && !isValidElement(child)) Object.assign(data, child);\n    });\n  }\n\n  getData(children);\n  var ast = HTML.parse(\"<0>\".concat(targetString, \"</0>\"));\n\n  var opts = _objectSpread(_objectSpread({}, data), combinedTOpts);\n\n  function renderInner(child, node, rootReactNode) {\n    var childs = getChildren(child);\n    var mappedChildren = mapAST(childs, node.children, rootReactNode);\n    return hasValidReactChildren(childs) && mappedChildren.length === 0 ? childs : mappedChildren;\n  }\n\n  function pushTranslatedJSX(child, inner, mem, i, isVoid) {\n    if (child.dummy) child.children = inner;\n    mem.push(cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {\n      key: i\n    }), isVoid ? undefined : inner));\n  }\n\n  function mapAST(reactNode, astNode, rootReactNode) {\n    var reactNodes = getAsArray(reactNode);\n    var astNodes = getAsArray(astNode);\n    return astNodes.reduce(function (mem, node, i) {\n      var translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n\n      if (node.type === 'tag') {\n        var tmp = reactNodes[parseInt(node.name, 10)];\n        if (!tmp && rootReactNode.length === 1 && rootReactNode[0][node.name]) tmp = rootReactNode[0][node.name];\n        if (!tmp) tmp = {};\n        var child = Object.keys(node.attrs).length !== 0 ? mergeProps({\n          props: node.attrs\n        }, tmp) : tmp;\n        var isElement = isValidElement(child);\n        var isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n        var isEmptyTransWithHTML = emptyChildrenButNeedsHandling && _typeof(child) === 'object' && child.dummy && !isElement;\n        var isKnownComponent = _typeof(children) === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);\n\n        if (typeof child === 'string') {\n          var value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n          mem.push(value);\n        } else if (hasChildren(child) || isValidTranslationWithChildren) {\n            var inner = renderInner(child, node, rootReactNode);\n            pushTranslatedJSX(child, inner, mem, i);\n          } else if (isEmptyTransWithHTML) {\n          var _inner = mapAST(reactNodes, node.children, rootReactNode);\n\n          mem.push(cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {\n            key: i\n          }), _inner));\n        } else if (Number.isNaN(parseFloat(node.name))) {\n          if (isKnownComponent) {\n            var _inner2 = renderInner(child, node, rootReactNode);\n\n            pushTranslatedJSX(child, _inner2, mem, i, node.voidElement);\n          } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n            if (node.voidElement) {\n              mem.push(createElement(node.name, {\n                key: \"\".concat(node.name, \"-\").concat(i)\n              }));\n            } else {\n              var _inner3 = mapAST(reactNodes, node.children, rootReactNode);\n\n              mem.push(createElement(node.name, {\n                key: \"\".concat(node.name, \"-\").concat(i)\n              }, _inner3));\n            }\n          } else if (node.voidElement) {\n            mem.push(\"<\".concat(node.name, \" />\"));\n          } else {\n            var _inner4 = mapAST(reactNodes, node.children, rootReactNode);\n\n            mem.push(\"<\".concat(node.name, \">\").concat(_inner4, \"</\").concat(node.name, \">\"));\n          }\n        } else if (_typeof(child) === 'object' && !isElement) {\n          var content = node.children[0] ? translationContent : null;\n          if (content) mem.push(content);\n        } else if (node.children.length === 1 && translationContent) {\n          mem.push(cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {\n            key: i\n          }), translationContent));\n        } else {\n          mem.push(cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {\n            key: i\n          })));\n        }\n      } else if (node.type === 'text') {\n        var wrapTextNodes = i18nOptions.transWrapTextNodes;\n\n        var _content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n\n        if (wrapTextNodes) {\n          mem.push(createElement(wrapTextNodes, {\n            key: \"\".concat(node.name, \"-\").concat(i)\n          }, _content));\n        } else {\n          mem.push(_content);\n        }\n      }\n\n      return mem;\n    }, []);\n  }\n\n  var result = mapAST([{\n    dummy: true,\n    children: children || []\n  }], ast, getAsArray(children || []));\n  return getChildren(result[0]);\n}\n\nexport function Trans(_ref) {\n  var children = _ref.children,\n      count = _ref.count,\n      parent = _ref.parent,\n      i18nKey = _ref.i18nKey,\n      context = _ref.context,\n      _ref$tOptions = _ref.tOptions,\n      tOptions = _ref$tOptions === void 0 ? {} : _ref$tOptions,\n      values = _ref.values,\n      defaults = _ref.defaults,\n      components = _ref.components,\n      ns = _ref.ns,\n      i18nFromProps = _ref.i18n,\n      tFromProps = _ref.t,\n      shouldUnescape = _ref.shouldUnescape,\n      additionalProps = _objectWithoutProperties(_ref, _excluded2);\n\n  var i18n = i18nFromProps || getI18n();\n\n  if (!i18n) {\n    warnOnce('You will need to pass in an i18next instance by using i18nextReactModule');\n    return children;\n  }\n\n  var t = tFromProps || i18n.t.bind(i18n) || function (k) {\n    return k;\n  };\n\n  if (context) tOptions.context = context;\n\n  var reactI18nextOptions = _objectSpread(_objectSpread({}, getDefaults()), i18n.options && i18n.options.react);\n\n  var namespaces = ns || t.ns || i18n.options && i18n.options.defaultNS;\n  namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n  var defaultValue = defaults || nodesToString(children, reactI18nextOptions) || reactI18nextOptions.transEmptyNodeValue || i18nKey;\n  var hashTransKey = reactI18nextOptions.hashTransKey;\n  var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);\n  var interpolationOverride = values ? tOptions.interpolation : {\n    interpolation: _objectSpread(_objectSpread({}, tOptions.interpolation), {}, {\n      prefix: '#$?',\n      suffix: '?$#'\n    })\n  };\n\n  var combinedTOpts = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, tOptions), {}, {\n    count: count\n  }, values), interpolationOverride), {}, {\n    defaultValue: defaultValue,\n    ns: namespaces\n  });\n\n  var translation = key ? t(key, combinedTOpts) : defaultValue;\n  var content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);\n  var useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;\n  return useAsParent ? createElement(useAsParent, additionalProps, content) : content;\n}","import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport var initReactI18next = {\n  type: '3rdParty',\n  init: function init(instance) {\n    setDefaults(instance.options.react);\n    setI18n(instance);\n  }\n};","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport var I18nContext = createContext();\nexport var ReportNamespaces = function () {\n  function ReportNamespaces() {\n    _classCallCheck(this, ReportNamespaces);\n\n    this.usedNamespaces = {};\n  }\n\n  _createClass(ReportNamespaces, [{\n    key: \"addUsedNamespaces\",\n    value: function addUsedNamespaces(namespaces) {\n      var _this = this;\n\n      namespaces.forEach(function (ns) {\n        if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;\n      });\n    }\n  }, {\n    key: \"getUsedNamespaces\",\n    value: function getUsedNamespaces() {\n      return Object.keys(this.usedNamespaces);\n    }\n  }]);\n\n  return ReportNamespaces;\n}();\nexport function composeInitialProps(ForComponent) {\n  return function (ctx) {\n    return new Promise(function (resolve) {\n      var i18nInitialProps = getInitialProps();\n\n      if (ForComponent.getInitialProps) {\n        ForComponent.getInitialProps(ctx).then(function (componentsInitialProps) {\n          resolve(_objectSpread(_objectSpread({}, componentsInitialProps), i18nInitialProps));\n        });\n      } else {\n        resolve(i18nInitialProps);\n      }\n    });\n  };\n}\nexport function getInitialProps() {\n  var i18n = getI18n();\n  var namespaces = i18n.reportNamespaces ? i18n.reportNamespaces.getUsedNamespaces() : [];\n  var ret = {};\n  var initialI18nStore = {};\n  i18n.languages.forEach(function (l) {\n    initialI18nStore[l] = {};\n    namespaces.forEach(function (ns) {\n      initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n    });\n  });\n  ret.initialI18nStore = initialI18nStore;\n  ret.initialLanguage = i18n.language;\n  return ret;\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\", \"count\", \"parent\", \"i18nKey\", \"context\", \"tOptions\", \"values\", \"defaults\", \"components\", \"ns\", \"i18n\", \"t\", \"shouldUnescape\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans(_ref) {\n  var children = _ref.children,\n      count = _ref.count,\n      parent = _ref.parent,\n      i18nKey = _ref.i18nKey,\n      context = _ref.context,\n      _ref$tOptions = _ref.tOptions,\n      tOptions = _ref$tOptions === void 0 ? {} : _ref$tOptions,\n      values = _ref.values,\n      defaults = _ref.defaults,\n      components = _ref.components,\n      ns = _ref.ns,\n      i18nFromProps = _ref.i18n,\n      tFromProps = _ref.t,\n      shouldUnescape = _ref.shouldUnescape,\n      additionalProps = _objectWithoutProperties(_ref, _excluded);\n\n  var _ref2 = useContext(I18nContext) || {},\n      i18nFromContext = _ref2.i18n,\n      defaultNSFromContext = _ref2.defaultNS;\n\n  var i18n = i18nFromProps || i18nFromContext || getI18n();\n  var t = tFromProps || i18n && i18n.t.bind(i18n);\n  return TransWithoutContext(_objectSpread({\n    children: children,\n    count: count,\n    parent: parent,\n    i18nKey: i18nKey,\n    context: context,\n    tOptions: tOptions,\n    values: values,\n    defaults: defaults,\n    components: components,\n    ns: ns || t && t.ns || defaultNSFromContext || i18n && i18n.options && i18n.options.defaultNS,\n    i18n: i18n,\n    t: tFromProps,\n    shouldUnescape: shouldUnescape\n  }, additionalProps));\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n  return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","function _iterableToArrayLimit(r, l) {\n  var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n  if (null != t) {\n    var e,\n      n,\n      i,\n      u,\n      a = [],\n      f = !0,\n      o = !1;\n    try {\n      if (i = (t = t.call(r)).next, 0 === l) {\n        if (Object(t) !== t) return;\n        f = !1;\n      } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n    } catch (r) {\n      o = !0, n = r;\n    } finally {\n      try {\n        if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n      } finally {\n        if (o) throw n;\n      }\n    }\n    return a;\n  }\n}\nexport { _iterableToArrayLimit as default };","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { useState, useEffect, useContext, useRef } from 'react';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace } from './utils.js';\n\nvar usePrevious = function usePrevious(value, ignore) {\n  var ref = useRef();\n  useEffect(function () {\n    ref.current = ignore ? ref.current : value;\n  }, [value, ignore]);\n  return ref.current;\n};\n\nexport function useTranslation(ns) {\n  var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var i18nFromProps = props.i18n;\n\n  var _ref = useContext(I18nContext) || {},\n      i18nFromContext = _ref.i18n,\n      defaultNSFromContext = _ref.defaultNS;\n\n  var i18n = i18nFromProps || i18nFromContext || getI18n();\n  if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n\n  if (!i18n) {\n    warnOnce('You will need to pass in an i18next instance by using initReactI18next');\n\n    var notReadyT = function notReadyT(k, optsOrDefaultValue) {\n      if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;\n      if (optsOrDefaultValue && _typeof(optsOrDefaultValue) === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;\n      return Array.isArray(k) ? k[k.length - 1] : k;\n    };\n\n    var retNotReady = [notReadyT, {}, false];\n    retNotReady.t = notReadyT;\n    retNotReady.i18n = {};\n    retNotReady.ready = false;\n    return retNotReady;\n  }\n\n  if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n\n  var i18nOptions = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), i18n.options.react), props);\n\n  var useSuspense = i18nOptions.useSuspense,\n      keyPrefix = i18nOptions.keyPrefix;\n  var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n  namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n  if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);\n  var ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(function (n) {\n    return hasLoadedNamespace(n, i18n, i18nOptions);\n  });\n\n  function getT() {\n    return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n  }\n\n  var _useState = useState(getT),\n      _useState2 = _slicedToArray(_useState, 2),\n      t = _useState2[0],\n      setT = _useState2[1];\n\n  var joinedNS = namespaces.join();\n  if (props.lng) joinedNS = \"\".concat(props.lng).concat(joinedNS);\n  var previousJoinedNS = usePrevious(joinedNS);\n  var isMounted = useRef(true);\n  useEffect(function () {\n    var bindI18n = i18nOptions.bindI18n,\n        bindI18nStore = i18nOptions.bindI18nStore;\n    isMounted.current = true;\n\n    if (!ready && !useSuspense) {\n      if (props.lng) {\n        loadLanguages(i18n, props.lng, namespaces, function () {\n          if (isMounted.current) setT(getT);\n        });\n      } else {\n        loadNamespaces(i18n, namespaces, function () {\n          if (isMounted.current) setT(getT);\n        });\n      }\n    }\n\n    if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n      setT(getT);\n    }\n\n    function boundReset() {\n      if (isMounted.current) setT(getT);\n    }\n\n    if (bindI18n && i18n) i18n.on(bindI18n, boundReset);\n    if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);\n    return function () {\n      isMounted.current = false;\n      if (bindI18n && i18n) bindI18n.split(' ').forEach(function (e) {\n        return i18n.off(e, boundReset);\n      });\n      if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {\n        return i18n.store.off(e, boundReset);\n      });\n    };\n  }, [i18n, joinedNS]);\n  var isInitial = useRef(true);\n  useEffect(function () {\n    if (isMounted.current && !isInitial.current) {\n      setT(getT);\n    }\n\n    isInitial.current = false;\n  }, [i18n, keyPrefix]);\n  var ret = [t, i18n, ready];\n  ret.t = t;\n  ret.i18n = i18n;\n  ret.ready = ready;\n  if (ready) return ret;\n  if (!ready && !useSuspense) return ret;\n  throw new Promise(function (resolve) {\n    if (props.lng) {\n      loadLanguages(i18n, props.lng, namespaces, function () {\n        return resolve();\n      });\n    } else {\n      loadNamespaces(i18n, namespaces, function () {\n        return resolve();\n      });\n    }\n  });\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"forwardedRef\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { createElement, forwardRef as forwardRefReact } from 'react';\nimport { useTranslation } from './useTranslation.js';\nimport { getDisplayName } from './utils.js';\nexport function withTranslation(ns) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  return function Extend(WrappedComponent) {\n    function I18nextWithTranslation(_ref) {\n      var forwardedRef = _ref.forwardedRef,\n          rest = _objectWithoutProperties(_ref, _excluded);\n\n      var _useTranslation = useTranslation(ns, _objectSpread(_objectSpread({}, rest), {}, {\n        keyPrefix: options.keyPrefix\n      })),\n          _useTranslation2 = _slicedToArray(_useTranslation, 3),\n          t = _useTranslation2[0],\n          i18n = _useTranslation2[1],\n          ready = _useTranslation2[2];\n\n      var passDownProps = _objectSpread(_objectSpread({}, rest), {}, {\n        t: t,\n        i18n: i18n,\n        tReady: ready\n      });\n\n      if (options.withRef && forwardedRef) {\n        passDownProps.ref = forwardedRef;\n      } else if (!options.withRef && forwardedRef) {\n        passDownProps.forwardedRef = forwardedRef;\n      }\n\n      return createElement(WrappedComponent, passDownProps);\n    }\n\n    I18nextWithTranslation.displayName = \"withI18nextTranslation(\".concat(getDisplayName(WrappedComponent), \")\");\n    I18nextWithTranslation.WrappedComponent = WrappedComponent;\n\n    var forwardRef = function forwardRef(props, ref) {\n      return createElement(I18nextWithTranslation, Object.assign({}, props, {\n        forwardedRef: ref\n      }));\n    };\n\n    return options.withRef ? forwardRefReact(forwardRef) : I18nextWithTranslation;\n  };\n}","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"ns\", \"children\"];\nimport { useTranslation } from './useTranslation.js';\nexport function Translation(props) {\n  var ns = props.ns,\n      children = props.children,\n      options = _objectWithoutProperties(props, _excluded);\n\n  var _useTranslation = useTranslation(ns, options),\n      _useTranslation2 = _slicedToArray(_useTranslation, 3),\n      t = _useTranslation2[0],\n      i18n = _useTranslation2[1],\n      ready = _useTranslation2[2];\n\n  return children(t, {\n    i18n: i18n,\n    lng: i18n.language\n  }, ready);\n}","import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context.js';\nexport function I18nextProvider(_ref) {\n  var i18n = _ref.i18n,\n      defaultNS = _ref.defaultNS,\n      children = _ref.children;\n  var value = useMemo(function () {\n    return {\n      i18n: i18n,\n      defaultNS: defaultNS\n    };\n  }, [i18n, defaultNS]);\n  return createElement(I18nContext.Provider, {\n    value: value\n  }, children);\n}","import { useContext } from 'react';\nimport { getI18n, I18nContext } from './context.js';\nexport function useSSR(initialI18nStore, initialLanguage) {\n  var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var i18nFromProps = props.i18n;\n\n  var _ref = useContext(I18nContext) || {},\n      i18nFromContext = _ref.i18n;\n\n  var i18n = i18nFromProps || i18nFromContext || getI18n();\n  if (i18n.options && i18n.options.isClone) return;\n\n  if (initialI18nStore && !i18n.initializedStoreOnce) {\n    i18n.services.resourceStore.data = initialI18nStore;\n    i18n.options.ns = Object.values(initialI18nStore).reduce(function (mem, lngResources) {\n      Object.keys(lngResources).forEach(function (ns) {\n        if (mem.indexOf(ns) < 0) mem.push(ns);\n      });\n      return mem;\n    }, i18n.options.ns);\n    i18n.initializedStoreOnce = true;\n    i18n.isInitialized = true;\n  }\n\n  if (initialLanguage && !i18n.initializedLanguageOnce) {\n    i18n.changeLanguage(initialLanguage);\n    i18n.initializedLanguageOnce = true;\n  }\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"initialI18nStore\", \"initialLanguage\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { createElement } from 'react';\nimport { useSSR } from './useSSR.js';\nimport { composeInitialProps } from './context.js';\nimport { getDisplayName } from './utils.js';\nexport function withSSR() {\n  return function Extend(WrappedComponent) {\n    function I18nextWithSSR(_ref) {\n      var initialI18nStore = _ref.initialI18nStore,\n          initialLanguage = _ref.initialLanguage,\n          rest = _objectWithoutProperties(_ref, _excluded);\n\n      useSSR(initialI18nStore, initialLanguage);\n      return createElement(WrappedComponent, _objectSpread({}, rest));\n    }\n\n    I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);\n    I18nextWithSSR.displayName = \"withI18nextSSR(\".concat(getDisplayName(WrappedComponent), \")\");\n    I18nextWithSSR.WrappedComponent = WrappedComponent;\n    return I18nextWithSSR;\n  };\n}","export { Trans } from './Trans.js';\nexport { Trans as TransWithoutContext } from './TransWithoutContext.js';\nexport { useTranslation } from './useTranslation.js';\nexport { withTranslation } from './withTranslation.js';\nexport { Translation } from './Translation.js';\nexport { I18nextProvider } from './I18nextProvider.js';\nexport { withSSR } from './withSSR.js';\nexport { useSSR } from './useSSR.js';\nexport { initReactI18next } from './initReactI18next.js';\nexport { setDefaults, getDefaults } from './defaults.js';\nexport { setI18n, getI18n } from './i18nInstance.js';\nexport { I18nContext, composeInitialProps, getInitialProps } from './context.js';\nexport var date = function date() {\n  return '';\n};\nexport var time = function time() {\n  return '';\n};\nexport var number = function number() {\n  return '';\n};\nexport var select = function select() {\n  return '';\n};\nexport var plural = function plural() {\n  return '';\n};\nexport var selectOrdinal = function selectOrdinal() {\n  return '';\n};","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","'use client';\nimport t,{isValidElement as e,useRef as n,useLayoutEffect as o,useEffect as s,cloneElement as a,useReducer as r,useState as i,forwardRef as l}from\"react\";import c from\"clsx\";const u=t=>\"number\"==typeof t&&!isNaN(t),d=t=>\"string\"==typeof t,p=t=>\"function\"==typeof t,m=t=>d(t)||p(t)?t:null,f=t=>e(t)||d(t)||p(t)||u(t);function g(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=t;requestAnimationFrame(()=>{s.minHeight=\"initial\",s.height=o+\"px\",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height=\"0\",s.padding=\"0\",s.margin=\"0\",setTimeout(e,n)})})}function h(e){let{enter:a,exit:r,appendPosition:i=!1,collapse:l=!0,collapseDuration:c=300}=e;return function(e){let{children:u,position:d,preventExitTransition:p,done:m,nodeRef:f,isIn:h}=e;const y=i?`${a}--${d}`:a,v=i?`${r}--${d}`:r,T=n(0);return o(()=>{const t=f.current,e=y.split(\" \"),n=o=>{o.target===f.current&&(t.dispatchEvent(new Event(\"d\")),t.removeEventListener(\"animationend\",n),t.removeEventListener(\"animationcancel\",n),0===T.current&&\"animationcancel\"!==o.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener(\"animationend\",n),t.addEventListener(\"animationcancel\",n)},[]),s(()=>{const t=f.current,e=()=>{t.removeEventListener(\"animationend\",e),l?g(t,m,c):m()};h||(p?e():(T.current=1,t.className+=` ${v}`,t.addEventListener(\"animationend\",e)))},[h]),t.createElement(t.Fragment,null,u)}}function y(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const v={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(t=>t!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},T=e=>{let{theme:n,type:o,...s}=e;return t.createElement(\"svg\",{viewBox:\"0 0 24 24\",width:\"100%\",height:\"100%\",fill:\"colored\"===n?\"currentColor\":`var(--toastify-icon-color-${o})`,...s})},E={info:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z\"}))},warning:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z\"}))},success:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z\"}))},error:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z\"}))},spinner:function(){return t.createElement(\"div\",{className:\"Toastify__spinner\"})}};function C(t){const[,o]=r(t=>t+1,0),[l,c]=i([]),g=n(null),h=n(new Map).current,T=t=>-1!==l.indexOf(t),C=n({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:T,getToast:t=>h.get(t)}).current;function b(t){let{containerId:e}=t;const{limit:n}=C.props;!n||e&&C.containerId!==e||(C.count-=C.queue.length,C.queue=[])}function I(t){c(e=>null==t?[]:e.filter(e=>e!==t))}function _(){const{toastContent:t,toastProps:e,staleId:n}=C.queue.shift();O(t,e,n)}function L(t,n){let{delay:s,staleId:r,...i}=n;if(!f(t)||function(t){return!g.current||C.props.enableMultiContainer&&t.containerId!==C.props.containerId||h.has(t.toastId)&&null==t.updateId}(i))return;const{toastId:l,updateId:c,data:T}=i,{props:b}=C,L=()=>I(l),N=null==c;N&&C.count++;const M={...b,style:b.toastStyle,key:C.toastKey++,...Object.fromEntries(Object.entries(i).filter(t=>{let[e,n]=t;return null!=n})),toastId:l,updateId:c,data:T,closeToast:L,isIn:!1,className:m(i.className||b.toastClassName),bodyClassName:m(i.bodyClassName||b.bodyClassName),progressClassName:m(i.progressClassName||b.progressClassName),autoClose:!i.isLoading&&(R=i.autoClose,w=b.autoClose,!1===R||u(R)&&R>0?R:w),deleteToast(){const t=y(h.get(l),\"removed\");h.delete(l),v.emit(4,t);const e=C.queue.length;if(C.count=null==l?C.count-C.displayedToast:C.count-1,C.count<0&&(C.count=0),e>0){const t=null==l?C.props.limit:1;if(1===e||1===t)C.displayedToast++,_();else{const n=t>e?e:t;C.displayedToast=n;for(let t=0;t<n;t++)_()}}else o()}};var R,w;M.iconOut=function(t){let{theme:n,type:o,isLoading:s,icon:r}=t,i=null;const l={theme:n,type:o};return!1===r||(p(r)?i=r(l):e(r)?i=a(r,l):d(r)||u(r)?i=r:s?i=E.spinner():(t=>t in E)(o)&&(i=E[o](l))),i}(M),p(i.onOpen)&&(M.onOpen=i.onOpen),p(i.onClose)&&(M.onClose=i.onClose),M.closeButton=b.closeButton,!1===i.closeButton||f(i.closeButton)?M.closeButton=i.closeButton:!0===i.closeButton&&(M.closeButton=!f(b.closeButton)||b.closeButton);let x=t;e(t)&&!d(t.type)?x=a(t,{closeToast:L,toastProps:M,data:T}):p(t)&&(x=t({closeToast:L,toastProps:M,data:T})),b.limit&&b.limit>0&&C.count>b.limit&&N?C.queue.push({toastContent:x,toastProps:M,staleId:r}):u(s)?setTimeout(()=>{O(x,M,r)},s):O(x,M,r)}function O(t,e,n){const{toastId:o}=e;n&&h.delete(n);const s={content:t,props:e};h.set(o,s),c(t=>[...t,o].filter(t=>t!==n)),v.emit(4,y(s,null==s.props.updateId?\"added\":\"updated\"))}return s(()=>(C.containerId=t.containerId,v.cancelEmit(3).on(0,L).on(1,t=>g.current&&I(t)).on(5,b).emit(2,C),()=>{h.clear(),v.emit(3,C)}),[]),s(()=>{C.props=t,C.isToastActive=T,C.displayedToast=l.length}),{getToastToRender:function(e){const n=new Map,o=Array.from(h.values());return t.newestOnTop&&o.reverse(),o.forEach(t=>{const{position:e}=t.props;n.has(e)||n.set(e,[]),n.get(e).push(t)}),Array.from(n,t=>e(t[0],t[1]))},containerRef:g,isToastActive:T}}function b(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function I(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function _(t){const[o,a]=i(!1),[r,l]=i(!1),c=n(null),u=n({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=n(t),{autoClose:m,pauseOnHover:f,closeToast:g,onClick:h,closeOnClick:y}=t;function v(e){if(t.draggable){\"touchstart\"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener(\"mousemove\",_),document.addEventListener(\"mouseup\",L),document.addEventListener(\"touchmove\",_),document.addEventListener(\"touchend\",L);const n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition=\"\",u.x=b(e.nativeEvent),u.y=I(e.nativeEvent),\"x\"===t.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function T(e){if(u.boundingRect){const{top:n,bottom:o,left:s,right:a}=u.boundingRect;\"touchend\"!==e.nativeEvent.type&&t.pauseOnHover&&u.x>=s&&u.x<=a&&u.y>=n&&u.y<=o?C():E()}}function E(){a(!0)}function C(){a(!1)}function _(e){const n=c.current;u.canDrag&&n&&(u.didMove=!0,o&&C(),u.x=b(e),u.y=I(e),u.delta=\"x\"===t.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,n.style.opacity=\"\"+(1-Math.abs(u.delta/u.removalDistance)))}function L(){document.removeEventListener(\"mousemove\",_),document.removeEventListener(\"mouseup\",L),document.removeEventListener(\"touchmove\",_),document.removeEventListener(\"touchend\",L);const e=c.current;if(u.canDrag&&u.didMove&&e){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return l(!0),void t.closeToast();e.style.transition=\"transform 0.2s, opacity 0.2s\",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity=\"1\"}}s(()=>{d.current=t}),s(()=>(c.current&&c.current.addEventListener(\"d\",E,{once:!0}),p(t.onOpen)&&t.onOpen(e(t.children)&&t.children.props),()=>{const t=d.current;p(t.onClose)&&t.onClose(e(t.children)&&t.children.props)}),[]),s(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener(\"focus\",E),window.addEventListener(\"blur\",C)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener(\"focus\",E),window.removeEventListener(\"blur\",C))}),[t.pauseOnFocusLoss]);const O={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return m&&f&&(O.onMouseEnter=C,O.onMouseLeave=E),y&&(O.onClick=t=>{h&&h(t),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:C,isRunning:o,preventExitTransition:r,toastRef:c,eventHandlers:O}}function L(e){let{closeToast:n,theme:o,ariaLabel:s=\"close\"}=e;return t.createElement(\"button\",{className:`Toastify__close-button Toastify__close-button--${o}`,type:\"button\",onClick:t=>{t.stopPropagation(),n(t)},\"aria-label\":s},t.createElement(\"svg\",{\"aria-hidden\":\"true\",viewBox:\"0 0 14 16\"},t.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z\"})))}function O(e){let{delay:n,isRunning:o,closeToast:s,type:a=\"default\",hide:r,className:i,style:l,controlledProgress:u,progress:d,rtl:m,isIn:f,theme:g}=e;const h=r||u&&0===d,y={...l,animationDuration:`${n}ms`,animationPlayState:o?\"running\":\"paused\",opacity:h?0:1};u&&(y.transform=`scaleX(${d})`);const v=c(\"Toastify__progress-bar\",u?\"Toastify__progress-bar--controlled\":\"Toastify__progress-bar--animated\",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{\"Toastify__progress-bar--rtl\":m}),T=p(i)?i({rtl:m,type:a,defaultClassName:v}):c(v,i);return t.createElement(\"div\",{role:\"progressbar\",\"aria-hidden\":h?\"true\":\"false\",\"aria-label\":\"notification timer\",className:T,style:y,[u&&d>=1?\"onTransitionEnd\":\"onAnimationEnd\"]:u&&d<1?null:()=>{f&&s()}})}const N=n=>{const{isRunning:o,preventExitTransition:s,toastRef:r,eventHandlers:i}=_(n),{closeButton:l,children:u,autoClose:d,onClick:m,type:f,hideProgressBar:g,closeToast:h,transition:y,position:v,className:T,style:E,bodyClassName:C,bodyStyle:b,progressClassName:I,progressStyle:N,updateId:M,role:R,progress:w,rtl:x,toastId:$,deleteToast:k,isIn:P,isLoading:B,iconOut:D,closeOnClick:A,theme:z}=n,F=c(\"Toastify__toast\",`Toastify__toast-theme--${z}`,`Toastify__toast--${f}`,{\"Toastify__toast--rtl\":x},{\"Toastify__toast--close-on-click\":A}),H=p(T)?T({rtl:x,position:v,type:f,defaultClassName:F}):c(F,T),S=!!w||!d,q={closeToast:h,type:f,theme:z};let Q=null;return!1===l||(Q=p(l)?l(q):e(l)?a(l,q):L(q)),t.createElement(y,{isIn:P,done:k,position:v,preventExitTransition:s,nodeRef:r},t.createElement(\"div\",{id:$,onClick:m,className:H,...i,style:E,ref:r},t.createElement(\"div\",{...P&&{role:R},className:p(C)?C({type:f}):c(\"Toastify__toast-body\",C),style:b},null!=D&&t.createElement(\"div\",{className:c(\"Toastify__toast-icon\",{\"Toastify--animate-icon Toastify__zoom-enter\":!B})},D),t.createElement(\"div\",null,u)),Q,t.createElement(O,{...M&&!S?{key:`pb-${M}`}:{},rtl:x,theme:z,delay:d,isRunning:o,isIn:P,closeToast:h,hide:g,type:f,style:N,className:I,controlledProgress:S,progress:w||0})))},M=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},R=h(M(\"bounce\",!0)),w=h(M(\"slide\",!0)),x=h(M(\"zoom\")),$=h(M(\"flip\")),k=l((e,n)=>{const{getToastToRender:o,containerRef:a,isToastActive:r}=C(e),{className:i,style:l,rtl:u,containerId:d}=e;function f(t){const e=c(\"Toastify__toast-container\",`Toastify__toast-container--${t}`,{\"Toastify__toast-container--rtl\":u});return p(i)?i({position:t,rtl:u,defaultClassName:e}):c(e,m(i))}return s(()=>{n&&(n.current=a.current)},[]),t.createElement(\"div\",{ref:a,className:\"Toastify\",id:d},o((e,n)=>{const o=n.length?{...l}:{...l,pointerEvents:\"none\"};return t.createElement(\"div\",{className:f(e),style:o,key:`container-${e}`},n.map((e,o)=>{let{content:s,props:a}=e;return t.createElement(N,{...a,isIn:r(a.toastId),style:{...a.style,\"--nth\":o+1,\"--len\":n.length},key:`toast-${a.key}`},s)}))}))});k.displayName=\"ToastContainer\",k.defaultProps={position:\"top-right\",transition:R,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:\"x\",role:\"alert\",theme:\"light\"};let P,B=new Map,D=[],A=1;function z(){return\"\"+A++}function F(t){return t&&(d(t.toastId)||u(t.toastId))?t.toastId:z()}function H(t,e){return B.size>0?v.emit(0,t,e):D.push({content:t,options:e}),e.toastId}function S(t,e){return{...e,type:e&&e.type||t,toastId:F(e)}}function q(t){return(e,n)=>H(e,S(t,n))}function Q(t,e){return H(t,S(\"default\",e))}Q.loading=(t,e)=>H(t,S(\"default\",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q.promise=function(t,e,n){let o,{pending:s,error:a,success:r}=e;s&&(o=d(s)?Q.loading(s,n):Q.loading(s.render,{...n,...s}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(t,e,s)=>{if(null==e)return void Q.dismiss(o);const a={type:t,...i,...n,data:s},r=d(e)?{render:e}:e;return o?Q.update(o,{...a,...r}):Q(r.render,{...a,...r}),s},c=p(t)?t():t;return c.then(t=>l(\"success\",r,t)).catch(t=>l(\"error\",a,t)),c},Q.success=q(\"success\"),Q.info=q(\"info\"),Q.error=q(\"error\"),Q.warning=q(\"warning\"),Q.warn=Q.warning,Q.dark=(t,e)=>H(t,S(\"default\",{theme:\"dark\",...e})),Q.dismiss=t=>{B.size>0?v.emit(1,t):D=D.filter(e=>null!=t&&e.options.toastId!==t)},Q.clearWaitingQueue=function(t){return void 0===t&&(t={}),v.emit(5,t)},Q.isActive=t=>{let e=!1;return B.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Q.update=function(t,e){void 0===e&&(e={}),setTimeout(()=>{const n=function(t,e){let{containerId:n}=e;const o=B.get(n||P);return o&&o.getToast(t)}(t,e);if(n){const{props:o,content:s}=n,a={delay:100,...o,...e,toastId:e.toastId||t,updateId:z()};a.toastId!==t&&(a.staleId=t);const r=a.render||s;delete a.render,H(r,a)}},0)},Q.done=t=>{Q.update(t,{progress:1})},Q.onChange=t=>(v.on(4,t),()=>{v.off(4,t)}),Q.POSITION={TOP_LEFT:\"top-left\",TOP_RIGHT:\"top-right\",TOP_CENTER:\"top-center\",BOTTOM_LEFT:\"bottom-left\",BOTTOM_RIGHT:\"bottom-right\",BOTTOM_CENTER:\"bottom-center\"},Q.TYPE={INFO:\"info\",SUCCESS:\"success\",WARNING:\"warning\",ERROR:\"error\",DEFAULT:\"default\"},v.on(2,t=>{P=t.containerId||t,B.set(P,t),D.forEach(t=>{v.emit(0,t.content,t.options)}),D=[]}).on(3,t=>{B.delete(t.containerId||t),0===B.size&&v.off(0).off(1).off(5)});export{R as Bounce,$ as Flip,E as Icons,w as Slide,k as ToastContainer,x as Zoom,g as collapseToast,h as cssTransition,Q as toast,_ as useToast,C as useToastContainer};\n//# sourceMappingURL=react-toastify.esm.mjs.map\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\n\n// src/index.ts\nimport qs from \"qs\";\nfunction urlcat(baseUrlOrTemplate, pathTemplateOrParams, maybeParams = {}, config = {}) {\n  if (typeof pathTemplateOrParams === \"string\") {\n    const baseUrl = baseUrlOrTemplate;\n    const pathTemplate = pathTemplateOrParams;\n    const params = maybeParams;\n    return urlcatImpl(pathTemplate, params, baseUrl, config);\n  } else {\n    const baseTemplate = baseUrlOrTemplate;\n    const params = pathTemplateOrParams;\n    return urlcatImpl(baseTemplate, params, void 0, config);\n  }\n}\nfunction configure(rootConfig) {\n  return (baseUrlOrTemplate, pathTemplateOrParams, maybeParams = {}, config = {}) => urlcat(baseUrlOrTemplate, pathTemplateOrParams, maybeParams, __spreadValues(__spreadValues({}, rootConfig), config));\n}\nfunction joinFullUrl(renderedPath, baseUrl, pathAndQuery) {\n  if (renderedPath.length) {\n    return join(baseUrl, \"/\", pathAndQuery);\n  } else {\n    return join(baseUrl, \"?\", pathAndQuery);\n  }\n}\nfunction urlcatImpl(pathTemplate, params, baseUrl, config) {\n  const { renderedPath, remainingParams } = path(pathTemplate, params);\n  const cleanParams = removeNullOrUndef(remainingParams);\n  const renderedQuery = query(cleanParams, config);\n  const pathAndQuery = join(renderedPath, \"?\", renderedQuery);\n  return baseUrl ? joinFullUrl(renderedPath, baseUrl, pathAndQuery) : pathAndQuery;\n}\nfunction query(params, config) {\n  var _a, _b;\n  if (Object.keys(params).length < 1) {\n    return \"\";\n  }\n  const qsConfiguration = {\n    format: (_b = (_a = config == null ? void 0 : config.objectFormat) == null ? void 0 : _a.format) != null ? _b : \"RFC1738\",\n    arrayFormat: config == null ? void 0 : config.arrayFormat\n  };\n  return qs.stringify(params, qsConfiguration);\n}\nfunction subst(template, params) {\n  const { renderedPath } = path(template, params);\n  return renderedPath;\n}\nfunction path(template, params) {\n  const remainingParams = __spreadValues({}, params);\n  const renderedPath = template.replace(/:[_A-Za-z]+[_A-Za-z0-9]*/g, (p) => {\n    const key = p.slice(1);\n    validatePathParam(params, key);\n    delete remainingParams[key];\n    return encodeURIComponent(params[key]);\n  });\n  return { renderedPath, remainingParams };\n}\nfunction validatePathParam(params, key) {\n  const allowedTypes = [\"boolean\", \"string\", \"number\"];\n  if (!Object.prototype.hasOwnProperty.call(params, key)) {\n    throw new Error(`Missing value for path parameter ${key}.`);\n  }\n  if (!allowedTypes.includes(typeof params[key])) {\n    throw new TypeError(\n      `Path parameter ${key} cannot be of type ${typeof params[key]}. Allowed types are: ${allowedTypes.join(\", \")}.`\n    );\n  }\n  if (typeof params[key] === \"string\" && params[key].trim() === \"\") {\n    throw new Error(`Path parameter ${key} cannot be an empty string.`);\n  }\n}\nfunction join(part1, separator, part2) {\n  const p1 = part1.endsWith(separator) ? part1.slice(0, -separator.length) : part1;\n  const p2 = part2.startsWith(separator) ? part2.slice(separator.length) : part2;\n  return p1 === \"\" || p2 === \"\" ? p1 + p2 : p1 + separator + p2;\n}\nfunction removeNullOrUndef(params) {\n  return Object.keys(params).filter((k) => notNullOrUndefined(params[k])).reduce((result, k) => {\n    result[k] = params[k];\n    return result;\n  }, {});\n}\nfunction notNullOrUndefined(v) {\n  return v !== void 0 && v !== null;\n}\nexport {\n  configure,\n  urlcat as default,\n  join,\n  query,\n  subst\n};\n"],"names":[],"sourceRoot":""}